var getParents=function(a,b){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(a){for(var b=(this.document||this.ownerDocument).querySelectorAll(a),c=b.length;--c>=0&&b.item(c)!==this;);return c>-1});for(var c=[];a&&a!==document;a=a.parentNode)b?a.matches(b)&&c.push(a):c.push(a);return c},toggleClass=function(a,b){a.classList.contains(b)?a.classList.remove(b):a.classList.add(b)};!function(){function a(){for(var a=this;-1===a.className.indexOf("nav-menu");)"li"===a.tagName.toLowerCase()&&(-1!==a.className.indexOf("focus")?a.className=a.className.replace(" focus",""):a.className+=" focus"),a=a.parentElement}var b=document.querySelector(".main-header-bar-navigation"),c=document.querySelector(".main-header-menu-toggle");null!=c&&c.addEventListener("click",function(a){a.preventDefault();for(var d=document.getElementsByClassName("menu-item-has-children"),e=0;eparseInt(d))&&(g=!0),g&&!b[c].classList.contains("ast-left-align-sub-menu")&&b[c].classList.add("ast-left-align-sub-menu"),f<240&&b[c].classList.add("ast-sub-menu-goes-outside")}},AstMenuAlignment("ul.main-header-menu li");var h,i,j,k,l,e,m;if(h=document.getElementById("site-navigation"),h&&(i=h.getElementsByTagName("button")[0],"undefined"!=typeof i)){if(j=h.getElementsByTagName("ul")[0],"undefined"==typeof j)return void(i.style.display="none");for(j.setAttribute("aria-expanded","false"),-1===j.className.indexOf("nav-menu")&&(j.className+=" nav-menu"),i.onclick=function(){-1!==h.className.indexOf("toggled")?(h.className=h.className.replace(" toggled",""),i.setAttribute("aria-expanded","false"),j.setAttribute("aria-expanded","false")):(h.className+=" toggled",i.setAttribute("aria-expanded","true"),j.setAttribute("aria-expanded","true"))},k=j.getElementsByTagName("a"),l=j.getElementsByTagName("ul"),e=0,m=l.length;e a, .page_item_has_children > a");if("ontouchstart"in window)for(b=function(a){var b,c=this.parentNode;if(c.classList.contains("focus"))c.classList.remove("focus");else{for(a.preventDefault(),b=0;b