var astraGetParents=function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),a=t.length;0<=--a&&t.item(a)!==this;);return-1 .menu-link, ul.main-header-menu .ast-menu-toggle");else n=e[a].querySelectorAll("ul.main-header-menu .ast-menu-toggle");if(0 #ast-mobile-header .main-header-bar-navigation");r=document.querySelectorAll("#masthead > #ast-mobile-header .main-header-menu-toggle");var a="0";if(null!==this.closest("#ast-fixed-header")&&(t=document.querySelectorAll("#ast-fixed-header > #ast-mobile-header .main-header-bar-navigation"),r=document.querySelectorAll("#ast-fixed-header .main-header-menu-toggle"),a="0"),void 0===t[a])return!1;for(var n=t[a].querySelectorAll(".menu-item-has-children"),s=0;s #ast-desktop-header"),s=i.querySelector("#masthead > #ast-mobile-header");if(t<=a){if("mobile"===S)return;e&&E&&(s&&i.removeChild(s),i.appendChild(E)),e&&n&&(E=n.cloneNode(!0)),S="mobile",n&&i.removeChild(n)}else{if("desktop"===S)return;e&&E&&(n&&i.removeChild(n),i.appendChild(E)),e&&s&&(E=s.cloneNode(!0)),S="desktop",s&&i.removeChild(s)}}}window.addEventListener("load",function(){w(!0)}),document.addEventListener("astPartialContentRendered",function(){w()}),window.addEventListener("resize",function(){clearTimeout(L),L=setTimeout(function(){w(!0),n(),document.dispatchEvent(new CustomEvent("astLayoutWidthChanged",{detail:{response:""}}))},50)})}();