window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var o=0;os&&(s=t)}})),s&&(n.forEach((function(e){e.style.height=s+"px"})),"undefined"!=typeof Isotope))){var i=Isotope.data(e);i&&i.layout()}}}),"undefined"!=typeof jQuery&&(jQuery.fn.wpexEqualHeights=function(){this.get()&&console.log("The jQuery wpexEqualHeights prototype has been deprecated. Please use the new wpexEqualHeights function.")});var wpex={};!function(e){"use strict";(wpex={init:function(){this.config(),this.replaceNoJsClass(),this.bindEvents()},config:function(){this.config={localScrollSections:[],passiveListeners:this.passiveListenersSupport(),html:document.querySelector("html")}},replaceNoJsClass:function(){let e=document.body.className;e=e.replace(/wpex-no-js/,"wpex-js"),document.body.className=e},bindEvents:function(){const t=this;t.setScrollBarWidth(),t.domReady((()=>{document.body.classList.add("wpex-docready"),t.retinaCheck()&&document.body.classList.add("wpex-is-retina"),t.mobileCheck()&&document.body.classList.add("wpex-is-mobile-device"),t.localScrollSections(),t.megaMenuAddClasses(),t.dropdownMenuOnclick(),t.dropdownMenuTouch(),t.inlineHeaderLogo(),t.menuSearch(),t.skipToContent(),t.backTopLink(),t.backTopButton(),t.goBackButton(),t.smoothCommentScroll(),t.dialogs(),t.toggleElements(),t.localScrollLinks(),t.customSelects(),t.hoverStyles(),t.overlaysMobileSupport(),t.accessibility()})),window.addEventListener("load",(()=>{document.body.classList.add("wpex-window-loaded"),t.megaMenusWidth(),t.megaMenusTop(),t.stickyTopBar(),t.headerOverlayOffset(),t.equalHeights(),t.localScrollHighlight(),t.stickyHeaderMenu(),t.stickyHeader(),t.stickyElements(),t.footerReveal(),t.fixedFooter(),e.scrollToHash&&window.setTimeout((function(){t.scrollToHash(t)}),parseInt(e.scrollToHashTimeout))})),window.addEventListener("resize",(()=>{t.setScrollBarWidth()}))},setScrollBarWidth:function(){const e=document.querySelectorAll(".wpex-vc-full-width-row:not(.wpex-vc-full-width-row--centered)");if(!e)return;const t=this.getScrollBarWidth();e.forEach((e=>{e.style.setProperty("--scrollbar-width",`${t}px`)}))},dropdownMenuOnclick:function(){document.addEventListener("click",(e=>{const t=e.target;if(!t.closest(".wpex-dropdown-menu--onclick .menu-item-has-children > a"))return void document.querySelectorAll(".wpex-dropdown-menu--onclick .menu-item-has-children").forEach((e=>{e.classList.remove("wpex-active")}));document.querySelectorAll(".wpex-dropdown-menu--onclick .menu-item-has-children").forEach((e=>{e.contains(t)||e.classList.remove("wpex-active")}));const o=t.closest(".menu-item-has-children"),s=t.closest("a");o.classList.contains("wpex-active")?(o.classList.remove("wpex-active"),"#"===s.getAttribute("href")&&e.preventDefault()):(o.classList.add("wpex-active"),e.preventDefault())})),document.addEventListener("keydown",(e=>{const t=e.target.closest(".wpex-dropdown-menu--onclick .menu-item-has-children.wpex-active");"Escape"===e.key&&t&&t.classList.remove("wpex-active")})),document.querySelectorAll(".wpex-dropdown-menu--onclick .sub-menu").forEach((e=>{e.addEventListener("keydown",(e=>{if("Escape"===e.key){const t=e.target.closest(".menu-item-has-children.wpex-active");if(t){t.classList.remove("wpex-active");t.querySelector("a").focus(),e.stopPropagation()}}}))}))},dropdownMenuTouch:function(){const e=this;let t=!1;document.querySelectorAll(".wpex-dropdown-menu--onhover .menu-item-has-children > a").forEach((o=>{o.addEventListener("touchend",(e=>{if(t)return;const s=o.closest(".menu-item-has-children");s.classList.contains("wpex-touched")||(e.preventDefault(),s.classList.add("wpex-touched"))})),o.addEventListener("touchmove",(e=>{t=!0}),!!e.config.passiveListeners&&{passive:!0}),o.addEventListener("touchstart",(e=>{t=!1}),!!e.config.passiveListeners&&{passive:!0})}));const o=e=>{const t=e.target;document.querySelectorAll(".menu-item-has-children.wpex-touched").forEach((e=>{e.contains(t)||e.classList.remove("wpex-touched")}))};document.addEventListener("touchstart",o,!!e.config.passiveListeners&&{passive:!0}),document.addEventListener("touchmove",o,!!e.config.passiveListeners&&{passive:!0})},megaMenuAddClasses:function(){document.querySelectorAll(".main-navigation-ul .megamenu > .sub-menu").forEach((e=>{e.querySelectorAll(".sub-menu").forEach((e=>{e.classList.add("megamenu__inner-ul")}))}))},megaMenusWidth:function(){const e=this,t=()=>{const t=document.querySelector("#site-navigation-wrap.wpex-stretch-megamenus");let o,s;if(!e.isVisible(t))return;const n=t.querySelectorAll(".megamenu:not(.no-stretch) > ul");if(!n.length)return;const i=document.querySelector("#site-header-inner.container");if(!i)return;const r=t.classList.contains("navbar-style-one"),c=i.getBoundingClientRect().width;r&&(s=parseInt(i.getBoundingClientRect().left),o=t.getBoundingClientRect().left),n.forEach((e=>{e.style.width=c+"px",r&&(e.style.marginLeft=-(o-s)+"px")}))};t(),window.addEventListener("resize",t)},megaMenusTop:function(){const e=this,t=document.querySelector("#site-header.header-one");if(!t)return;const o=t.querySelector("#site-navigation-wrap.wpex-stretch-megamenus:not(.wpex-flush-dropdowns)");if(!this.isVisible(o))return;const s=o.querySelectorAll(".megamenu > ul");if(!s)return;const n=()=>{if(!e.isVisible(o))return;const n=o.getBoundingClientRect().height,i=(t.getBoundingClientRect().height-n)/2+n;s.forEach((e=>{e.style.top=i+"px"}))};n(),window.addEventListener("scroll",n,!!e.config.passiveListeners&&{passive:!0}),window.addEventListener("resize",n),o.querySelectorAll(".megamenu > a").forEach((e=>{e.addEventListener("mouseenter",n,!1)}))},megaMenusMobile:function(e){if(!e)return;const t=e.classList.contains("sidr-class-dropdown-menu")?".sidr-class-megamenu.sidr-class-hide-headings":".megamenu.hide-headings";e.querySelectorAll(t).forEach((e=>{e.classList.contains("show-headings-mobile")||e.classList.contains("sidr-class-show-headings-mobile")||e.querySelectorAll(":scope > ul > li").forEach((e=>{const t=e.querySelector("a");t&&t.parentNode.removeChild(t);const o=e.querySelector("ul");o&&(o.outerHTML=o.innerHTML),e.classList.remove("sidr-class-menu-item-has-children"),e.classList.remove("menu-item-has-children")}))}))},menuSearch:function(){const e=document.querySelector(".header-searchform-wrap");if(!e)return;const t=e.querySelector('input[type="search"]');t&&(e&&(e.dataset.placeholder&&t.setAttribute("placeholder",e.dataset.placeholder),e.dataset.disableAutocomplete&&t.setAttribute("autocomplete","off")),this.menuSearchDropdown(),this.menuSearchOverlay(),this.menuSearchHeaderReplace())},menuSearchDropdown:function(){const e=this,t=document.querySelector("#searchform-dropdown");if(!t)return;let o=!1,s=!1,n=null;const i=t.querySelector('input[type="search"]'),r="a.search-dropdown-toggle, a.mobile-menu-search, .wpex-header-search-icon button",c=()=>{document.body.classList.remove("header-search-is-open"),t.classList.remove("show"),t.classList.add("wpex-invisible","wpex-opacity-0"),document.querySelectorAll(r).forEach((e=>{e.setAttribute("aria-expanded","false");var t=e.closest("li");t&&t.classList.remove("active")})),n&&s&&n.focus(),o=!1};document.addEventListener("click",(l=>{n=l.target.closest(r),n?(l.preventDefault(),o?c():(()=>{document.body.classList.add("header-search-is-open"),t.classList.add("show"),t.classList.remove("wpex-invisible","wpex-opacity-0"),document.querySelectorAll(r).forEach((e=>{e.setAttribute("aria-expanded","true");var t=e.closest("li");t&&t.classList.add("active")})),i.value="","function"==typeof jQuery&&jQuery(document).trigger("show.wpex.menuSearch");const n=o=>{e.focusOnElement(t,i),t.removeEventListener("transitionend",n)};t.addEventListener("transitionend",n),o=!0,s=!1})()):!l.target.closest("#searchform-dropdown")&&o&&c()})),t.addEventListener("keydown",(e=>{"Escape"===e.key&&o&&(s=!0,c())}))},menuSearchOverlay:function(){const e=this,t=document.querySelector("#wpex-searchform-overlay");if(!t)return;let o=!1,s=null,n=!1;const i=t.querySelector('input[type="search"]'),r="a.search-overlay-toggle, a.mobile-menu-search, li.search-overlay-toggle > a, .wpex-header-search-icon button",c=()=>{o=!0,n=!1,document.body.classList.add("header-search-is-open"),t.classList.add("active"),e.htmlNoScroll("add"),document.querySelectorAll(r).forEach((e=>{e.setAttribute("aria-expanded","true");const t=e.closest("li");t&&t.classList.add("active")})),i.value="","function"==typeof jQuery&&jQuery(document).trigger("show.wpex.menuSearch"),(()=>{const o=s=>{e.focusOnElement(t,i),t.removeEventListener("transitionend",o)};t.addEventListener("transitionend",o)})()},l=i=>{o=!1,document.body.classList.remove("header-search-is-open"),t.classList.remove("active"),document.querySelectorAll(r).forEach((e=>{e.setAttribute("aria-expanded","false");const t=e.closest("li");t&&t.classList.remove("active")})),s&&n&&s.focus(),setTimeout((()=>{e.htmlNoScroll("remove")}),e.getElTransitionDuration(t))};document.addEventListener("click",(e=>{const t=e.target.closest(r);t?(s=t,e.preventDefault(),o?l():c()):o&&e.target.closest("#wpex-searchform-overlay .wpex-close")&&l()})),document.addEventListener("keydown",(e=>{const t=e.key;if("Escape"===t&&o)return n=!0,l();!e.target.closest("#wpex-searchform-overlay .wpex-close")||"Space"!==t&&"Enter"!==t||(n=!0)}))},menuSearchHeaderReplace:function(){const e=this,t=document.querySelector("#searchform-header-replace");if(!t)return;let o=!1,s=!1,n=null;const i=document.querySelector("#site-header-inner"),r=t.classList.contains("-wpex-translate-y-50"),c=t.querySelector('input[type="search"]'),l="a.search-header-replace-toggle, a.mobile-menu-search, .wpex-header-search-icon button",a=()=>{document.body.classList.remove("header-search-is-open"),t.classList.remove("show"),t.classList.add("wpex-invisible","wpex-opacity-0"),i&&i.classList.remove("wpex-overflow-hidden"),r&&t.classList.add("-wpex-translate-y-50"),document.querySelectorAll(l).forEach((e=>{e.setAttribute("aria-expanded","false");const t=e.closest("li");t&&t.classList.remove("active")})),n&&s&&n.focus(),o=!1};document.addEventListener("click",(d=>{const u=d.target.closest(l);u?(n=u,d.preventDefault(),o?a():(()=>{document.body.classList.add("header-search-is-open"),t.classList.add("show"),t.classList.remove("wpex-invisible","wpex-opacity-0"),i&&i.classList.add("wpex-overflow-hidden"),r&&t.classList.remove("-wpex-translate-y-50"),document.querySelectorAll(l).forEach((e=>{e.setAttribute("aria-expanded","true");const t=e.closest("li");t&&t.classList.add("active")})),c.value="","function"==typeof jQuery&&jQuery(document).trigger("show.wpex.menuSearch");const n=o=>{e.focusOnElement(t,c),t.removeEventListener("transitionend",n)};t.addEventListener("transitionend",n),o=!0,s=!1})()):!d.target.closest("#searchform-header-replace .searchform")&&o&&a()})),t.addEventListener("keydown",(e=>{if(!o)return;const t=e.key;"Escape"===t?(s=!0,a()):!e.target.closest("#searchform-header-replace-close")||"Space"!==t&&"Enter"!==t||(s=!0)}))},headerOverlayOffset:function(){const e=document.querySelector("#site-header");if(!e||!e.classList.contains("overlay-header")||e.classList.contains("header-fixed-height"))return;const t=()=>{const t=e.getBoundingClientRect().height;document.querySelectorAll(".overlay-header-offset-div").forEach((e=>{e.style.height=t+"px"}))};t(),window.addEventListener("resize",t)},inlineHeaderLogo:function(){const t=this,o=document.querySelector("#site-header");if(!o||!o.classList.contains("header-five"))return;const s=document.querySelector("#site-header.header-five #site-header-inner > .header-five-logo"),n=document.querySelector("#site-header.header-five .navbar-style-five");let i=null;if(!s||!n)return;const r=()=>{const o=(()=>{const o=document.querySelectorAll(".navbar-style-five .main-navigation-ul > li");let s=[];for(let e=0;ee.mobileMenuBreakpoint&&(i||(i=document.createElement("li"),i.className="menu-item-logo wpex-px-40"),i.appendChild(s),o.parentNode.insertBefore(i,o.nextSibling),s.classList.add("display"))};r(),window.addEventListener("resize",(()=>{const o=document.querySelector(".menu-item-logo .header-five-logo");if(t.viewportWidth()<=e.mobileMenuBreakpoint){if(o){const e=document.querySelector("#site-header-inner");e&&e.insertBefore(o,e.firstChild),i&&i.parentNode.removeChild(i)}}else o||r()}))},skipToContent:function(){const e=this;document.addEventListener("click",(t=>{if(!t.target.classList.contains("skip-to-content"))return;const o=document.querySelector(t.target.getAttribute("href"));o&&(o.setAttribute("tabIndex","-1"),e.scrollTo(o)),t.preventDefault(),t.stopPropagation()}))},backTopLink:function(){const t=this;document.addEventListener("click",(o=>{let s=o.target;if(!s.closest("a#site-scroll-top, a.wpex-scroll-top, .wpex-scroll-top a"))return;const n=s.closest("#site-scroll-top");if(n&&(s=n),0!==window.scrollY){const o=document.querySelector('[data-ls_id="#site_top"]');o&&o.focus({preventScroll:!0,focusVisible:!1});const n=parseInt(s.dataset.scrollSpeed||parseInt(e.localScrollSpeed)),i=t.getEasing(s.dataset.scrollEasing);i&&"function"==typeof jQuery?jQuery("html, body").stop(!0,!0).animate({scrollTop:0},n,i):window.scrollTo({top:0,behavior:t.getScrollToBehavior()})}o.preventDefault(),o.stopPropagation()}))},backTopButton:function(){const e=document.querySelector("#site-scroll-top");if(!e)return;const t=parseInt(e.dataset.scrollOffset||100);if(0===t)return;window.addEventListener("scroll",(o=>{window.pageYOffset>t?(e.classList.add("show"),e.classList.remove("wpex-invisible","wpex-opacity-0")):(e.classList.remove("show"),e.classList.add("wpex-invisible","wpex-opacity-0"))}),!!this.config.passiveListeners&&{passive:!0})},goBackButton:function(){document.addEventListener("click",(e=>{e.target.closest(".wpex-go-back")&&(e.preventDefault(),history.back())}))},smoothCommentScroll:function(){const e=this;document.addEventListener("click",(t=>{if(!t.target.closest(".comments-link"))return;const o=document.querySelector("#comments");o&&(e.scrollTo(o,-20),t.preventDefault(),t.stopPropagation())}))},dialogs:function(){const e=this,t=e=>{const t=e.target;if(!t.closest(".wpex-modal__inner")){const e=t.closest("dialog");e&&o(e)}},o=e=>{e.classList.contains("wpex-modal")&&e.removeEventListener("click",t),e.close()},s=t=>{document.body.classList.remove("modal-is-open"),e.htmlNoScroll("remove")},n=()=>{document.querySelectorAll(".wpex-modal").forEach((e=>{e.addEventListener("close",s)}))};n(),document.addEventListener("click",(s=>{const n=s.target.closest(".wpex-open-modal,.wpex-open-dialog"),i=s.target.closest(".wpex-close-modal");if(n||i){if(s.preventDefault(),n){const o=n.getAttribute("aria-controls");if(o)return(o=>{if(!o)return;const s=document.querySelector(`#${o.replace("#","")}`);s&&(s.classList.contains("wpex-modal")?(s.showModal(),s.querySelector(".wpex-modal__inner")&&s.addEventListener("click",t),document.body.classList.add("modal-is-open"),e.htmlNoScroll("add")):s.show())})(o)}if(i){const e=s.target.closest("dialog");if(e)return o(e)}}})),window.addEventListener("totaltheme_loadmore_posts",n),window.addEventListener("vcexAfterAjaxSuccess",n)},toggleElements:function(){const e=this,t=(e,t)=>{t=t||document;const o=e.getAttribute("id");o&&(e.classList.remove("wpex-toggle-element--visible"),e.dispatchEvent(new CustomEvent("wpex_toggle_element_close")),t.querySelectorAll(`.wpex-toggle-element-trigger[aria-controls="${o}"]`).forEach((e=>{(e=>{e.setAttribute("aria-expanded","false"),(e.classList.contains("vcex-button")||e.classList.contains("theme-button"))&&e.classList.remove("active");const t=e.getAttribute("data-close-text"),o=e.getAttribute("data-open-text"),s=e.querySelector(".theme-button-text")||e;o&&t&&s&&(s.textContent=o)})(e)})))};document.addEventListener("click",(o=>{const s=o.target.closest("a.wpex-toggle-element-trigger,button.wpex-toggle-element-trigger");if(!s)return;const n=(e=>{const t=e.getAttribute("aria-controls");if(t)return document.querySelector(`#${t.replace("#","")}`)})(s);if(!n||!n.classList.contains("wpex-toggle-element"))return;o.preventDefault();const i=n.classList,r=s.closest(".vc_section")||s.closest(".vc_row");let c=!1;r&&r.contains(n)&&(c=!0);const l=c?r:document;l.querySelectorAll(".wpex-toggle-element--visible").forEach((e=>{e.isSameNode(n)||t(e,l)})),i.contains("wpex-toggle-element--visible")?i.contains("wpex-toggle-element--persist")||t(n,l):(((e,t)=>{t=t||document;const o=e.getAttribute("id");if(!o)return;e.classList.add("wpex-toggle-element--visible");const s=e.parentNode;s.classList.contains("wpex-toggle-element")?(s.classList.add("wpex-toggle-element--visible"),s.setAttribute("tabIndex","-1"),s.focus({preventScroll:!0,focusVisible:!1})):(e.setAttribute("tabIndex","-1"),e.focus({preventScroll:!0,focusVisible:!1})),t.querySelectorAll(`.wpex-toggle-element-trigger[aria-controls="${o}"]`).forEach((e=>{(e=>{e.setAttribute("aria-expanded","true"),(e.classList.contains("vcex-button")||e.classList.contains("theme-button"))&&e.classList.add("active");const t=e.getAttribute("data-close-text"),o=e.getAttribute("data-open-text"),s=e.querySelector(".theme-button-text")||e;o&&t&&s&&(s.textContent=t)})(e)})),window.dispatchEvent(new Event("resize")),e.dispatchEvent(new CustomEvent("wpex_toggle_element_open"))})(n,l),"true"!==s.getAttribute("data-wpex-toggle-localscroll")||s.classList.contains("local-scroll-link")||e.scrollTo(n))})),document.addEventListener("keydown",(e=>{if("Escape"!==e.key)return;const t=e.target.closest(".wpex-toggle-element--visible");if(!t)return;const o=t.getAttribute("id");if(!o)return;let s=(t.closest(".vc_row")||t.closest(".vc_section")).querySelector(`.wpex-toggle-element-trigger[aria-controls="${o}"]`);s||(s=document.querySelector(`.wpex-toggle-element-trigger[aria-controls="${o}"]`)),s&&s.focus()}))},getLocalScrollOffset:function(t){if(e.localScrollOffset)return parseInt(e.localScrollOffset);const o=this;let s=0;e.localScrollExtraOffset&&(s=parseInt(s)+parseInt(e.localScrollExtraOffset));const n=document.querySelector("#site-header-sticky-wrapper.wpex-can-sticky #site-header");return n&&(!e.hasStickyMobileHeader&&o.viewportWidth(){o.isVisible(e)&&(s=parseInt(s)+e.getBoundingClientRect().height)})),s=s?s-1:0,s},scrollTo:function(t,o=0,s){const n=this;if(!t)return;let i=null,r=!1,c=null,l=0;const a=n.getLocalScrollOffset(),d=parseInt(e.localScrollSpeed),u=document.querySelectorAll("[data-ls_id]"),p=n.getEasing();for(let e=0;e{i&&i.nodeType&&i.focus({preventScroll:!0,focusVisible:!1}),p&&"function"==typeof jQuery?jQuery("html, body").stop(!0,!0).animate({scrollTop:l},d,p):window.scrollTo({top:l,behavior:n.getScrollToBehavior()})};if(i.classList.contains("vc_tta-panel")){const e=i.closest(".vc_tta-tabs");if(e){if(i.id){const t=e.querySelector(`.vc_tta-tab:not(.vc_active) a[href="#${i.id}"]`);t&&t.click()}i=e,o=-20}}l||(l=n.offset(i).top-a+o),e.localScrollUpdateHash&&"string"==typeof t&&r&&(window.location.hash=t);const h=document.querySelector(".mobile-toggle-nav");h&&h.classList.contains("visible")?("absolute"!==window.getComputedStyle(h).position&&(l-=h.getBoundingClientRect().height),document.querySelectorAll("a.mobile-menu-toggle, button.mobile-menu-toggle, li.mobile-menu-toggle > a").forEach((e=>{e.classList.remove("wpex-active"),e.setAttribute("aria-expanded","false")})),n.setHamburgerIconState(),h.classList.contains("mobile-toggle-nav--animate")?n.slideUp(h,300,(function(){h.classList.remove("visible"),document.body.classList.remove("mobile-toggle-nav-open"),m()})):(h.classList.remove("visible"),document.body.classList.remove("mobile-toggle-nav-open"),m())):m()},scrollToHash:function(e){let t,o=location.hash;if(""!==o&&"#"!==o&&"undefined"!==o){if(("#view_comments"===o||"#comments_reply"===o)&&(t=document.querySelector("#comments"),t))return e.scrollTo(t,-20);if(-1!==o.indexOf("comment-")&&document.querySelector("#site-header.fixed-scroll")&&(t=document.querySelector(o),t))return e.scrollTo(t,-20);-1!==o.indexOf("localscroll-")&&(o=o.replace("localscroll-",""));try{const t=document.querySelector(`[data-ls_id="${o}"], ${o}`);!t||"dialog"===t.getAttribute("roles")||t.classList.contains("vcex-toggle__content")||t.classList.contains("wpex-toggle-element")||t.classList.contains("wpex-card-modal")||e.scrollTo(o)}catch(e){return!1}}},localScrollSections:function(){const t=this,o=document.querySelectorAll(e.localScrollTargets),s=[];return o.forEach((e=>{const o=e.getAttribute("href"),n=o?`#${o.replace(/^.*?(#|$)/,"")}`:null;if(!n||"#"===n)return;e.hasAttribute("data-ls_linkto")||e.setAttribute("data-ls_linkto",n);let i=document.querySelector(`[data-ls_id="${n}"]`);!i&&"string"==typeof n&&t.isSelectorValid(n)&&(i=document.querySelector(n)),i&&-1===s.indexOf(n)&&s.push(n)})),t.config.localScrollSections=s,t.config.localScrollSections},localScrollLinks:function(){const t=this;e.localScrollFindLinks&&document.querySelectorAll('a[href^="#"]:not([href="#"]):not(.local-scroll-link):not([target]):not([aria-selected]):not([aria-pressed]):not([aria-expanded]):not([data-vc-tabs]):not(.skip-to-content):not(#site-scroll-top):not([data-vc-accordion]):not([role="button"]):not(.wpex-lightbox):not(.wpex-lightbox-group-item)').forEach((e=>{if(e.closest(".local-scroll, .local-scroll-link, [aria-controls]"))return;let t=e.getAttribute("href");try{document.querySelector(`[data-ls_id="${t}"], ${t}`)&&e.classList.add("local-scroll-link")}catch(e){return!1}})),document.addEventListener("click",(o=>{const s=o.target;if(s.closest(".wpex-open-submenu"))return;const n=s.closest(e.localScrollTargets);if(!n)return;let i=n.dataset.ls_linkto||n.hash,r=!1;r=!(!t.config.localScrollSections||-1===t.config.localScrollSections.indexOf(i))||!!t.isSelectorValid(i)&&document.querySelector(`[data-ls_id="${i}"], ${i}`),r&&(n.closest(".sfHover")&&n.parentNode.classList.remove("sfHover"),n.classList.contains("wpex-toggle-element-trigger")&&"false"===n.getAttribute("aria-expanded")||(t.scrollTo(i),n.closest(".full-screen-overlay-nav-menu .local-scroll > a")||(o.preventDefault(),o.stopPropagation())))}))},localScrollHighlight:function(){const t=this,o=t.config.localScrollSections;if(!e.localScrollHighlight||!o.length)return;const s=e=>{const o=document.querySelector(`[data-ls_id="${e}"], ${e}`);if(!o)return;let s=!1;const n=t.winScrollTop(),i=t.getLocalScrollOffset(),r=t.offset(o).top-i-1,c=o.offsetHeight,l=document.querySelectorAll(`[data-ls_linkto="${e}"] `);s=n>=r&&n{e.classList.remove("current-menu-item")}))):o.classList.remove("wpex-ls-inview"),l.forEach((e=>{s?e.classList.add("active"):e.classList.remove("active");const t=e.closest("li");t&&(s?t.classList.add("current-menu-item"):t.classList.remove("current-menu-item"))}))};window.addEventListener("scroll",(()=>{for(var e=0;e{if(e.viewportWidth()<960)return void(t.classList.contains("footer-reveal")&&(t.classList.remove("footer-reveal"),t.classList.add("footer-reveal-visible"),o.style.removeProperty("margin-bottom")));let s=0,n=t.offsetHeight;const i=window.innerHeight;s=t.classList.contains("footer-reveal")?o.offsetHeight+e.getLocalScrollOffset():o.offsetHeight+e.getLocalScrollOffset()-n,i>n&&s>i?t.classList.contains("footer-reveal-visible")&&(o.style.marginBottom=n+"px",t.classList.remove("footer-reveal-visible"),t.classList.add("footer-reveal")):t.classList.contains("footer-reveal")&&(o.style.removeProperty("margin-bottom"),t.classList.remove("footer-reveal"),t.classList.remove("wpex-visible"),t.classList.add("footer-reveal-visible"))},i=()=>{t.classList.contains("footer-reveal")&&(e.scrolledToBottom(s)?t.classList.add("wpex-visible"):t.classList.remove("wpex-visible"))};n(),i(),window.addEventListener("scroll",i,!!e.config.passiveListeners&&{passive:!0}),window.addEventListener("resize",n)},fixedFooter:function(){if(!document.body.classList.contains("wpex-has-fixed-footer"))return;const e=document.querySelector("#main");if(!e)return;const t=()=>{e.style.minHeight=e.offsetHeight+(window.innerHeight-document.documentElement.offsetHeight)+"px"};t(),window.addEventListener("resize",t)},customSelects:function(t){if(!e.customSelects)return;const o=this;t&&t.childNodes||(t=document),t.querySelectorAll(e.customSelects).forEach((t=>{const s=t.parentNode;if(s.classList.contains("wpex-select-wrap")||s.classList.contains("wpex-multiselect-wrap"))return;const n=t.id;let i=!1;if(o.isVisible(t)){const s=document.createElement("div");if(t.hasAttribute("multiple")?s.className=n?`wpex-multiselect-wrap wpex-multiselect-wrap--${n} wpex-${n}`:"wpex-multiselect-wrap":(s.className=n?`wpex-select-wrap wpex-select-wrap--${n} wpex-${n}`:"wpex-select-wrap",i=!0),t=o.wrap(t,s),i&&e.selectArrowIcon){const t=document.createElement("span");t.className="wpex-select-arrow";const o=document.createDocumentFragment(),n=document.createElement("div");n.innerHTML=e.selectArrowIcon,o.appendChild(n.firstChild),t.appendChild(o),s.appendChild(t)}}}))},hoverStyles:function(){let e,t,o,s,n,i="",r={};if(e=document.querySelector(".wpex-hover-data"),e&&e.remove(),t=document.querySelectorAll("[data-wpex-hover]"),o=t.length,!o)return;const c=e=>{let o,s,n,i,c,l="",a="";if(o=t[e],s=o.dataset.wpexHover,s){s=JSON.parse(s),i=o.classList;for(let e=0;e{if(!e.classList.contains("overlay-ms")){e.querySelector(".theme-overlay")&&e.parentNode.removeChild(e)}}));const t=()=>{document.querySelectorAll(".wpex-touched").forEach((e=>{e.classList.remove("wpex-touched")}))};document.addEventListener("touchend",(o=>{let s=o.target.closest(".overlay-parent.overlay-ms.overlay-h,.vcex-image-swap,.wpex-card-touch-support");s&&(e?t():s.classList.contains("wpex-touched")?s.classList.remove("wpex-touched"):(o.preventDefault(),t(),s.classList.add("wpex-touched")))}),!1),document.addEventListener("touchmove",(o=>{const s=o.target;s.closest(".wpex-touched")||t();s.closest(".overlay-parent.overlay-ms.overlay-h,.vcex-image-swap,.wpex-card-touch-support")&&(e=!0)}),!!this.config.passiveListeners&&{passive:!0}),document.addEventListener("touchstart",(o=>{const s=o.target;s.closest(".wpex-touched")||t();s.closest(".overlay-parent.overlay-ms.overlay-h,.vcex-image-swap,.wpex-card-touch-support")&&(e=!1)}),!!this.config.passiveListeners&&{passive:!0})},stickyTopBar:function(){const t=this;let o=!1,s=0;const n=document.querySelector("#top-bar-wrap.wpex-top-bar-sticky"),i=e.stickyTopBarBreakPoint;if(!n)return;const r=document.createElement("div");r.id="top-bar-wrap-sticky-wrapper",r.className="wpex-sticky-top-bar-holder not-sticky wpex-print-hidden",t.wrap(n,r);const c=()=>(s=0,document.querySelectorAll(".wpex-sticky-el-offset,#wpadminbar").forEach((e=>{const o=window.getComputedStyle(e).position;t.isBeforeElement(e,r)&&t.isVisible(e)&&("fixed"===o||"sticky"===o)&&(s+=e.getBoundingClientRect().height)})),s),l=()=>{o||(r.style.height=n.getBoundingClientRect().height+"px",r.classList.remove("not-sticky"),r.classList.add("is-sticky"),n.classList.remove("wpex-z-99"),n.classList.add("wpex-z-999"),n.style.top=c()+"px",n.style.width=r.getBoundingClientRect().width+"px",n.style.position="fixed",o=!0)},a=()=>{o&&(r.style.height="",r.classList.remove("is-sticky"),r.classList.add("not-sticky"),n.classList.add("wpex-z-99"),n.classList.remove("wpex-z-999"),n.style.width="",n.style.top="",n.style.position="",o=!1)},d=()=>{if(!e.hasStickyTopBarMobile&&t.viewportWidth()s?l():a())};d(),window.addEventListener("scroll",(()=>{if(!r||!r.classList.contains("wpex-can-sticky"))return;const e=t.winScrollTop();0!==e&&e>=t.offset(r).top-c()?l():a()}),!!t.config.passiveListeners&&{passive:!0}),window.addEventListener("resize",d)},stickyHeaderMenu:function(){const t=this,o=document.querySelector("#site-navigation-wrap.fixed-nav");if(!o)return;let s=!1;const n=document.querySelector("#site-header"),i=document.createElement("div");i.id="site-navigation-sticky-wrapper",i.className="wpex-sticky-navigation-holder not-sticky",t.wrap(o,i);const r=()=>{let o=0;return document.querySelectorAll(".wpex-sticky-el-offset,#wpadminbar,.wpex-top-bar-sticky").forEach((e=>{const s=window.getComputedStyle(e).position;t.isVisible(e)&&t.isBeforeElement(e,i)&&("fixed"===s||"sticky"===s)&&(o+=e.getBoundingClientRect().height)})),e.addStickyHeaderOffset&&(o+=e.addStickyHeaderOffset),o},c=t.offset(i).top-r(),l=()=>{s||(i.style.height=o.getBoundingClientRect().height+"px",i.classList.remove("not-sticky"),i.classList.add("is-sticky"),o.style.top=r()+"px",o.style.width=i.getBoundingClientRect().width+"px",n&&n.classList.remove("dyn-styles"),s=!0)},a=()=>{s&&(i.style.height="",i.classList.remove("is-sticky"),i.classList.add("not-sticky"),o.style.top="",o.style.width="",n&&n.classList.add("dyn-styles"),s=!1)},d=()=>{if(t.viewportWidth()<=e.stickyNavbarBreakPoint)return a(),void i.classList.remove("wpex-can-sticky");const n=t.winScrollTop();i.classList.add("wpex-can-sticky"),s?(i.style.height=o.getBoundingClientRect().height+"px",o.style.top=r()+"px",o.style.width=i.getBoundingClientRect().width+"px"):n>=c&&0!==n?l():a()};d(),window.addEventListener("scroll",(()=>{if(!i.classList.contains("wpex-can-sticky"))return;const e=t.winScrollTop();0!==e&&e>=c?l():a()}),!!t.config.passiveListeners&&{passive:!0}),window.addEventListener("resize",d),window.addEventListener("orientationchange",(()=>{a(),d()}))},stickyHeader:function(){const t=this;let o=e.stickyHeaderStyle;if("standard"!==o&&"shrink"!==o&&"shrink_animated"!==o)return;const s=document.querySelector("#site-header.fixed-scroll");if(!s)return;const n=s.classList.contains("fixed-scroll--mobile-only");let i=!1,r=!1;const c=document.createElement("div");c.id="site-header-sticky-wrapper",c.className="wpex-sticky-header-holder not-sticky wpex-print-hidden",t.wrap(s,c);const l=()=>{let o=0;return document.querySelectorAll(".wpex-sticky-el-offset,.wpex-top-bar-sticky,#wpadminbar").forEach((e=>{const s=window.getComputedStyle(e).position;t.isVisible(e)&&t.isBeforeElement(e,c)&&("fixed"===s||"sticky"===s)&&(o+=e.getBoundingClientRect().height)})),e.addStickyHeaderOffset&&(o+=e.addStickyHeaderOffset),o},a=(()=>{let t=parseInt(e.stickyHeaderBreakPoint);return n?t-1:t})(),d=e.hasStickyMobileHeader,u=(()=>{var t=e.stickyHeaderStartPosition;if(t&&!isNaN(t))return t;var o=document.querySelector(t);return o?this.offset(o).top:0})(),p=()=>{switch(n?">":"<"){case"<":return t.viewportWidth()":return t.viewportWidth()>a}};let m=0;const h=document.querySelector("#site-header.overlay-header");function f(){return t.winScrollTop()>m}m=h&&"absolute"===window.getComputedStyle(h).position?t.offset(s).top+s.getBoundingClientRect().height:t.offset(c).top+c.getBoundingClientRect().height;const y=()=>(u||t.offset(c).top)-l(),w=()=>{i||(c.style.height=s.getBoundingClientRect().height+"px",c.classList.remove("not-sticky"),c.classList.add("is-sticky"),s.classList.remove("dyn-styles"),s.style.top=l()+"px",s.style.width=c.getBoundingClientRect().width+"px",s.classList.contains("transform-prepare")&&s.classList.add("transform-go"),i=!0)},g=()=>{let t=!0;n?t=!0:p()&&(t=!(!d||!e.hasStickyMobileHeaderShrink)),t&&f()?!r&&i&&(s.classList.add("sticky-header-shrunk"),r=!0):(s.classList.remove("sticky-header-shrunk"),r=!1)},v=()=>{if(c.classList.remove("is-sticky"),c.classList.add("not-sticky"),s.classList.contains("shrink-sticky-header")){let e=(()=>{let e=window.getComputedStyle(s).transitionDuration,t="";return e&&"0s"===e||(t=parseFloat(e)*(e.indexOf("ms")>-1?1:1e3)),t||(t=300),t})();setTimeout((function(){i||(c.style.height="")}),e)}else c.style.height="";s.classList.add("dyn-styles"),s.style.width="",s.style.top="",s.classList.remove("transform-go"),i=!1,s.classList.remove("sticky-header-shrunk"),r=!1};function x(){i&&(u?(s.classList.remove("transform-go"),r&&(s.classList.remove("sticky-header-shrunk"),r=!1)):s.classList.remove("transform-prepare"),v())}const L=()=>{let o=t.winScrollTop();if((n||!d)&&p())return x(),c.classList.remove("wpex-can-sticky"),void s.classList.remove("transform-prepare");c.classList.add("wpex-can-sticky"),i?(s.classList.contains("shrink-sticky-header")||(c.style.height=s.getBoundingClientRect().height+"px"),s.style.top=l()+"px",s.style.width=c.getBoundingClientRect().width+"px"):0!==o&&o>y()?w():x(),e.hasStickyHeaderShrink&&g()};L(),window.addEventListener("scroll",(()=>{let o=t.winScrollTop();c.classList.contains("wpex-can-sticky")&&(u&&(()=>{var e=t.winScrollTop();i&&s.classList.add("transform-go"),e<=0?s.classList.remove("transform-prepare"):f()?s.classList.add("transform-prepare"):s.classList.remove("transform-prepare")})(),0!=o&&o>=y()?w():x(),e.hasStickyHeaderShrink&&g())}),!!t.config.passiveListeners&&{passive:!0}),window.addEventListener("resize",L),window.addEventListener("orientationchange",(()=>{x(),L()}))},stickyElements:function(){const e=document.body.classList;if(e.contains("compose-mode")||e.contains("wp-admin"))return;const t=document.querySelectorAll(".wpex-js-sticky");if(!t)return;const o=this;t.forEach((e=>{let t=!1,s=e.dataset.wpexStickyEndpoint||null;const n=parseInt(e.dataset.wpexStickyBreakpoint);s&&isNaN(s)&&(s=document.querySelector(s));const i=(e=>{const t=document.createElement("div");let o="wpex-js-sticky-wrap";const s=e.dataset.wpexStickyLsOffset||!0;return"true"!=s&&"1"!=s||(o+=" wpex-ls-offset"),t.className=o,e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t.appendChild(e),t})(e),r=(e=>{const t=document.createElement("div");return t.className="wpex-js-sticky-holder",e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t.appendChild(e),t})(i),c=()=>{let t=e.dataset.wpexStickyOffset?parseInt(e.dataset.wpexStickyOffset):0;return document.querySelectorAll("#top-bar-wrap-sticky-wrapper.wpex-can-sticky #top-bar-wrap,#site-header-sticky-wrapper.wpex-can-sticky #site-header,#site-navigation-sticky-wrapper.wpex-can-sticky #site-navigation-wrap,#wpadminbar,.wpex-sticky-el-offset,.wpex-js-sticky-wrap").forEach((s=>{const n=window.getComputedStyle(s).position;e.isEqualNode(s)||!o.isVisible(s)||!o.isBeforeElement(s,e)||"fixed"!==n&&"sticky"!==n||(t+=o.elHeight(s))})),t},l=()=>{if(n&&o.viewportWidth()<=n)return u();const t=o.winScrollTop(),l=c();t>o.offset(r).top-l&&0!==t?(d(l),s&&o.isVisible(s)&&(t>o.offset(s).top-l-o.elHeight(e)?i.style.position="relative":i.style.position="fixed")):u()},a=()=>{const e=r.getBoundingClientRect().width;e&&i.style.setProperty("width",e+"px")},d=s=>{o.isVisible(e)?t?i.style.top=c()+"px":(r.style.height=o.elHeight(e)+"px",i.classList.add("wpex-z-99"),i.style.position="fixed",i.style.top=s+"px",e.classList.add("wpex-js-sticky--stuck"),a(),t=!0):u()},u=()=>{t&&(r.style.height="",i.classList.remove("wpex-z-99"),i.style.position="",i.style.top="",i.style.width="",e.classList.remove("wpex-js-sticky--stuck"),t=!1)};l(),window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",(()=>{l(),t&&(o.isVisible(e)||u(),r.style.height=o.elHeight(e)+"px",i.style.top=c()+"px",a())})),window.addEventListener("orientationchange",(()=>{u(),l()}))}))},accessibility:function(){document.querySelectorAll("#site-navigation li.nav-no-click:not(.menu-item-has-children) > a").forEach((e=>{e.setAttribute("tabIndex","-1")})),document.querySelectorAll("#site-navigation li.megamenu > ul.sub-menu > li.menu-item.menu-item-has-children > a").forEach((e=>{"#"===e.getAttribute("href")&&e.setAttribute("tabIndex","-1")})),document.querySelectorAll(".vc_toggle .vc_toggle_title").forEach((e=>{e.setAttribute("tabIndex",0),e.addEventListener("keydown",(e=>{"Enter"===e.key&&e.target.click()}))}))},domReady:function(e){if("function"!=typeof e||"undefined"==typeof document)return;const t=document.readyState;if("interactive"===t||"complete"===t)return setTimeout(e);document.addEventListener("DOMContentLoaded",e,!1)},retinaCheck:function(){return window.devicePixelRatio>1||!(!window.matchMedia||!window.matchMedia("(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)").matches)},mobileCheck:function(){if(/Android|webOS|iPhone|iPad|iPod|iPad Simulator|iPhone Simulator|iPod Simulator|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))return!0},passiveListenersSupport:function(){let e=!1;try{const t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch(e){}return e},getEasing:function(t){if(!e.localScrollEasing||"function"!=typeof jQuery||void 0===jQuery.easing||"function"!=typeof jQuery.easing.jswing)return;let o=t||e.localScrollEasing;return jQuery.easing.hasOwnProperty(o)||(o="swing"),o},viewportWidth:function(){let e="inner",t=window;return"innerWidth"in window||(e="client",t=document.documentElement||document.body),t[e+"Width"]},isSelectorValid:function(e){try{t=e,document.createDocumentFragment().querySelector(t)}catch(e){return!1}var t;return!0},slideUp:function(e,t,o){if(!e)return;if("none"===window.getComputedStyle(e).display)return;const s=window.getComputedStyle(e).transitionDuration;s&&"0s"===s||(t=parseFloat(s)*(s.indexOf("ms")>-1?1:1e3)),t||(t=300),e.classList.add("wpex-transitioning"),e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.height=e.offsetHeight+"px",e.offsetHeight,e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,setTimeout((()=>{e.style.display="none",e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property"),e.classList.remove("wpex-transitioning"),o&&o()}),t)},slideDown:function(e,t,o){if(!e)return;let s=window.getComputedStyle(e).display;if("block"===s)return;const n=window.getComputedStyle(e).transitionDuration;n&&"0s"===n||(t=parseFloat(n)*(n.indexOf("ms")>-1?1:1e3)),t||(t=300),e.classList.add("wpex-transitioning"),e.style.removeProperty("display"),"none"===s&&(s="block"),e.style.display=s,e.style.transitionProperty="none";const i=e.offsetHeight;e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,e.offsetHeight,e.style.boxSizing="border-box",e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.height=i+"px",e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),setTimeout((()=>{e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property"),e.classList.remove("wpex-transitioning"),o&&o()}),t)},focusOnElement:function(e,t){const o=this,s=e.querySelectorAll('button, [href], input, select, textarea, a,[tabindex]:not([tabindex="-1"])');if(!s.length)return;const n=[];for(let e=0;e{"Tab"!==e.key||e.shiftKey||(e.preventDefault(),i.focus())})),i.addEventListener("keydown",(e=>{"Tab"===e.key&&e.shiftKey&&(e.preventDefault(),r.focus())}))},wrap:function(e,t){e.childNodes||(e=[e]),e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t.appendChild(e)},insertAfter:function(e,t){t.parentNode.insertBefore(e,t.nextSibling)},offset:function(e){const t=e.getBoundingClientRect();return{top:t.top+this.winScrollTop(),left:t.left+this.winScrollTop(),bottom:t.bottom+this.winScrollTop()}},elHeight:function(e){return e.getBoundingClientRect().height},isVisible:function(e){return!!e&&!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},isEmpty:function(e){return!e||""===e.innerHTML},isBeforeElement:function(e,t){if("wpadminbar"===e.id)return!0;if(!e||!t)return;return 4===e.compareDocumentPosition(t)},insertExtras:function(e,t,o){if(e&&t){switch(o){case"append":t.appendChild(e);break;case"prepend":t.insertBefore(e,t.firstChild)}e.classList.remove("wpex-hidden")}},winScrollTop:function(){let e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;return e<0&&(e=0),e},scrolledToBottom:function(e){return this.winScrollTop()>=e.offsetTop+e.offsetHeight-window.innerHeight},removeClassPrefix:function(e,t,o){e.forEach((e=>{const s=e.classList;for(let n=0;n{const o=t.querySelector("a");if(!o)return;const s=o.closest("span"),i=document.createElement("button");if(i.className=n?"wpex-open-submenu wpex-unstyled-button wpex-flex wpex-items-center wpex-justify-end wpex-absolute wpex-top-0 wpex-right-0 wpex-h-100 wpex-cursor-pointer wpex-opacity-80 wpex-overflow-hidden":"wpex-open-submenu wpex-unstyled-button wpex-block",i.setAttribute("aria-haspopup","true"),i.setAttribute("aria-expanded","false"),i.setAttribute("role","button"),i.setAttribute("aria-label",e.i18n.openSubmenu.replace("%s",o.textContent.trim())),n){if(e.mobileMenuOpenSubmenuIcon){const t=document.createElement("div");t.innerHTML=e.mobileMenuOpenSubmenuIcon,i.appendChild(t.firstChild)}if(e.mobileMenuOpenSubmenuIconActive){const t=document.createElement("div");t.innerHTML=e.mobileMenuOpenSubmenuIconActive,i.appendChild(t.firstChild)}}else{const e=document.createElement("span");e.className="ticon ticon-angle-down",e.setAttribute("aria-hidden","true"),i.appendChild(e)}s?s.appendChild(i):o.appendChild(i)}));const i=t=>{const n=t.closest("li.active");n.classList.remove("active");const i=n.querySelector("a"),r=n.querySelector(".wpex-open-submenu");r.setAttribute("aria-expanded","false"),r.setAttribute("aria-label",e.i18n.openSubmenu.replace("%s",i.textContent.trim())),s=!0;const c=r.querySelector(".wpex-open-submenu__icon");if(c){const e=r.querySelector(".wpex-open-submenu__icon--open");e?(c.classList.remove("wpex-hidden"),e.classList.add("wpex-hidden")):c.classList.remove("wpex-rotate-180")}o.slideUp(t,null,(function(){s=!1}))};document.addEventListener("click",(n=>{const r=n.target.closest(".wpex-open-submenu");if(!r||!t.contains(r))return;const c=r.closest("li");if(!c)return;const l=c.querySelector("ul");if(!l)return;const a=c.querySelector("a");if(a&&(n.preventDefault(),n.stopPropagation(),!s))if(c.classList.contains("active"))c.querySelectorAll("li.active > ul").forEach((e=>{i(e)})),c.classList.remove("active"),r.setAttribute("aria-expanded","false"),r.setAttribute("aria-label",e.i18n.openSubmenu.replace("%s",a.textContent.trim())),s=!0,o.slideUp(l,null,(function(){s=!1}));else{r.setAttribute("aria-expanded","true"),r.setAttribute("aria-label",e.i18n.closeSubmenu.replace("%s",a.textContent.trim()));const n=r.querySelector(".wpex-open-submenu__icon");if(n){const e=r.querySelector(".wpex-open-submenu__icon--open");e?(n.classList.add("wpex-hidden"),e.classList.remove("wpex-hidden")):n.classList.add("wpex-rotate-180")}t.querySelectorAll("li.active > ul").forEach((e=>{e.contains(l)||i(e)})),s=!0,o.slideDown(l,null,(function(){s=!1})),c.classList.add("active")}}))},setHamburgerIconState:function(e){if(!e){const t=document.querySelector("a.mobile-menu-toggle, button.mobile-menu-toggle, li.mobile-menu-toggle > a");e=t?t.querySelector(".wpex-hamburger-icon"):null}e&&(e.classList.contains("wpex-hamburger-icon--active")?(e.classList.remove("wpex-hamburger-icon--active"),e.classList.add("wpex-hamburger-icon--inactive")):e.classList.contains("wpex-hamburger-icon--inactive")&&(e.classList.remove("wpex-hamburger-icon--inactive"),e.classList.add("wpex-hamburger-icon--active")))},getScrollBarWidth:function(){return window.innerWidth-document.body.clientWidth},getElTransitionDuration:function(e){let t=window.getComputedStyle(e).transitionDuration;return t&&"0s"===t||(t=parseFloat(t)*(t.indexOf("ms")>-1?1:1e3)),parseFloat(t)||0},htmlNoScroll:function(e,t){const o=this.config.html;switch(e){case"add":const e=this.getScrollBarWidth();o.style.setProperty("--html-noscroll-padding",`${e}px`),o.classList.add("html-noscroll");break;case"remove":o.classList.remove("html-noscroll"),o.style.setProperty("--html-noscroll-padding","")}},debounce:function(e,t=10){let o=null;return(...s)=>{window.clearTimeout(o),o=window.setTimeout((()=>{e.apply(null,s)}),t)}},getScrollToBehavior:function(){return e.scrollToBehavior||"smooth"}}).init()}(wpex_theme_params);