!function(){const e=document.querySelector("#wpex-searchform-overlay");if(!e)return;let t=!1,r=!1,s=!1,a=!1,o=!1;const n=e.querySelector('input[type="search"]'),c=()=>t?l():i(),i=()=>{t||o||(t=!0,s=!1,o=!0,document.body.classList.add("header-search-is-open"),e.classList.add("active"),e.classList.remove("wpex-invisible","wpex-opacity-0"),wpex.htmlNoScroll("add"),r&&(r.setAttribute("aria-expanded","true"),r.closest("li")?.classList.add("active")),"function"==typeof jQuery&&jQuery(document).trigger("show.wpex.menuSearch"),e.addEventListener("transitionend",(function t(){a=wpex.focusOnElement(e,n),o=!1,e.removeEventListener("transitionend",t)})),document.addEventListener("click",d),e.addEventListener("keydown",v))},l=()=>{t&&!o&&(t=!1,o=!0,document.body.classList.remove("header-search-is-open"),e.classList.remove("active"),e.classList.add("wpex-invisible","wpex-opacity-0"),r&&(r.setAttribute("aria-expanded","false"),r.closest("li")?.classList.remove("active"),s&&r.focus({preventScroll:!0,focusVisible:!1})),e.addEventListener("transitionend",(function t(){wpex.htmlNoScroll("remove"),o=!1,e.removeEventListener("transitionend",t)})),document.removeEventListener("click",d),e.removeEventListener("keydown",v),a&&(a(),a=null))},d=e=>{t&&!e.target.closest(".searchform--overlay,a.search-overlay-toggle,a.mobile-menu-search,li.search-overlay-toggle > a,.wpex-header-search-icon button")&&l()},v=e=>{"Escape"===e.key?(s=!0,l()):!e.target.closest(".wpex-fs-overlay__close")||" "!==e.key&&"Enter"!==e.key||(s=!0)};document.querySelectorAll('a.search-overlay-toggle,a.mobile-menu-search,li.search-overlay-toggle > a,[aria-controls="wpex-searchform-overlay"]').forEach((e=>{e.addEventListener("click",(t=>{r=e,t.preventDefault(),c()})),e.addEventListener("keydown",(t=>{" "===t.key&&(r=e,t.preventDefault(),c())}))}))}();
!function(t){const e=document.querySelector("#site-navigation-wrap.fixed-nav");if(!e)return;let n=!1,i=!1,s=!1;const o=()=>{let t=window.scrollY||0;return t<0&&(t=0),t},c=t=>!!t&&!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length),d=t=>{const e=t.getBoundingClientRect();return{top:e.top+o(),left:e.left+o(),bottom:e.bottom+o()}},r=()=>{let e=0;return document.querySelectorAll(".wpex-sticky-el-offset,#wpadminbar,.wpex-top-bar-sticky").forEach((t=>{const n=window.getComputedStyle(t).position;c(t)&&((t,e)=>{if("wpadminbar"===t.id)return!0;if(!t||!e)return;return 4===t.compareDocumentPosition(e)})(t,s)&&(t.closest(".wpex-can-sticky")||"fixed"===n||"sticky"===n)&&(e+=t.getBoundingClientRect().height)})),t.offset&&(e+=parseInt(t.offset)),e},a=()=>{let t=e.getBoundingClientRect().height;return Math.round(t)!==t&&(t=t.toFixed(2)),t},l=()=>{if(n)return;const t=a();s.style.height=`${t}px`,s.classList.remove("not-sticky"),s.classList.add("is-sticky"),e.style.top=r()+"px",e.style.width=s.getBoundingClientRect().width+"px";const i=document.querySelector("#site-header");i&&i.classList.remove("dyn-styles"),n=!0},p=()=>{if(!n)return;s.style.height="",s.classList.remove("is-sticky"),s.classList.add("not-sticky"),e.style.top="",e.style.width="";const t=document.querySelector("#site-header");t&&t.classList.add("dyn-styles"),n=!1},y=()=>{if(!c(e)||(()=>{let t="inner",e=window;return"innerWidth"in window||(t="client",e=document.documentElement||document.body),e[t+"Width"]})()<=t.breakpoint)return s.classList.contains("wpex-can-sticky")&&(s.classList.remove("wpex-can-sticky"),document.body.style.removeProperty("--wpex-sticky-main-nav-height")),p();s.classList.add("wpex-can-sticky");const y=a();let w=!1;if(i!==y&&(w=!0,i=y),!w&&document.body.style.getPropertyValue("--wpex-sticky-main-nav-height")||document.body.style.setProperty("--wpex-sticky-main-nav-height",`${i}px`),n)w&&(s.style.height=`${i}px`),e.style.top=r()+"px",e.style.width=s.getBoundingClientRect().width+"px";else{const t=o();0!==t&&t>=d(s).top-r()?l():p()}},w=()=>{if(!s.classList.contains("wpex-can-sticky"))return;const t=o();0!==t&&t>=d(s).top-r()?l():p()},u=()=>{p(),y()},h=()=>{s=document.createElement("div"),s.id="site-navigation-sticky-wrapper",s.className="wpex-sticky-navigation-holder not-sticky",e.childNodes||(e=[e]),e.nextSibling?e.parentNode.insertBefore(s,e.nextSibling):e.parentNode.appendChild(s),s.appendChild(e),y(),window.addEventListener("scroll",w,{passive:!0}),window.addEventListener("resize",y),window.addEventListener("orientationchange",u),s.classList.contains("wpex-can-sticky")&&window.addEventListener("load",(()=>{setTimeout((()=>{const t=a();i!==t&&(i=t,document.body.style.setProperty("--wpex-sticky-main-nav-height",`${i}px`),s.style.height=`${i}px`)}),0)}))};t.runOnWindowLoad?window.addEventListener("load",(()=>{h()})):h()}(wpex_sticky_main_nav_params);
!function(){"use strict";var e={name:"sidr",speed:200,side:"left",source:null,renaming:!0,body:"body",displace:!0,timing:"ease",method:"toggle",bind:"click",onOpen:function(){},onClose:function(){},onOpenEnd:function(){},onCloseEnd:function(){}},t={},n=function(e,n){t[e]=n},i=function(e){return t[e]},s=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e};function o(e,t){const n=e.getAttribute(t);if("string"==typeof n&&""!==n&&"sidr-inner"!==n)if("class"===t){const t=n.split(" "),i=["nav-no-click","hide-at-mm-breakpoint","wpex-text-current","wpex-inherit-color"];let s="";for(let n=0;n<t.length;n++)i.includes(t[n])||t[n].startsWith("wpex")&&e.closest(".mobile-menu-searchform,.sidr-class-mobile-menu-searchform")?s+=` ${t[n]}`:s+=` sidr-class-${t[n]}`;s&&e.setAttribute("class",s.trim())}else e.setAttribute(t,n.replace(/([A-Za-z0-9_.-]+)/g,"sidr-"+t+"-$1"))}var r={id:function(e){return document.getElementById(e)},qs:function(e){return document.querySelector(e)},qsa:function(e){return document.querySelectorAll(e)},createElement:function(e){var t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},getHTMLContent:function(e){for(var t="",n=this.qsa(e),i=0;i<n.length;i++)t+='<div class="sidr-inner">'+n[i].innerHTML+"</div>";return t},addPrefixes:function(e){var t=document.createElement("div");t.innerHTML=e;for(var n=t.querySelectorAll("*"),i=0;i<n.length;i++){let e=n[i];o(e,"id"),e.removeAttribute("style"),e.closest(".ticon")||e.closest(".wpex-icon")||e.closest(".fa")||e.closest(".fas")||e.closest(".wpex-cart-link")||e.closest(".wpex-no-renaming")||e.closest(".wpex-hidden")||e.classList.contains("show-at-mm-breakpoint")||e.classList.contains("screen-reader-text")||o(e,"class")}return t.innerHTML},transitions:function(){var e=(document.body||document.documentElement).style,t=!1,n="transition",i="transition",s="transitionend";if(n in e)t=!0;else{var o=function(e,t){for(var n=void 0,i=["moz","webkit","o","ms"],s=0;s<i.length;s++)if((n=i[s])+e in t)return n;return!1}(n=n.charAt(0).toUpperCase()+n.substr(1),e);i=(t=!!o)?o+n:null,n=t?"-"+o+"-"+n.toLowerCase():null,"webkit"===o?s="webkitTransitionEnd":"0"===o&&(s="oTransitionEnd")}return{cssProperty:i,supported:t,property:n,event:s}}()},l=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),c=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t};function d(e,t,n){for(var i=n.split(" "),s=0;s<i.length;s++){var o=i[s].trim();e.classList[t](o)}}function p(e,t,n){e[t]=n}function m(e,t,n){return e[t]}var h=function(){function e(t){l(this,e),this.element=t}return a(e,[{key:"bind",value:function(e,t){this.element.addEventListener(e,t,!1)}},{key:"unbind",value:function(e,t){this.element.removeEventListener(e,t,!1)}},{key:"style",value:function(e,t){if("string"==typeof e)this.element.style[e]=t;else for(var n in e)e.hasOwnProperty(n)&&(this.element.style[n]=e[n])}},{key:"addClass",value:function(e){d(this.element,"add",e)}},{key:"removeClass",value:function(e){d(this.element,"remove",e)}},{key:"html",value:function(e){if(!e)return m(this.element,"innerHTML");p(this.element,"innerHTML",e)}},{key:"scrollTop",value:function(e){if(!e)return m(this.element,"scrollTop");p(this.element,"scrollTop",e)}},{key:"offsetWidth",value:function(){return this.element.offsetWidth}}]),e}(),f="sidr-animating",v="open";function b(e){return"BODY"===e.tagName}function y(e){var t="sidr-open";return"sidr"!==e&&(t+=" "+e+"-open"),t}for(var w=function(e){function t(e,n){l(this,t);var i=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r.qs(e.body)));return i.name=e.name,i.side=e.side,i.speed=e.speed,i.timing=e.timing,i.displace=e.displace,i.menuWidth=n,i}return c(t,e),a(t,[{key:"prepare",value:function(e){var t=e===v?"hidden":"";if(b(this.element)){var n=new h(r.qs("html")),i=n.scrollTop();n.style("overflowX",t),n.scrollTop(i)}}},{key:"unprepare",value:function(){b(this.element)&&new h(r.qs("html")).style("overflowX","")}},{key:"move",value:function(e){this.addClass(f),e===v?this.open():this.close()}},{key:"open",value:function(){var e=this;if(this.displace){var t=r.transitions,n={width:this.offsetWidth()+"px",position:"absolute"};this.style(this.side,"0"),this.style(t.cssProperty,this.side+" "+this.speed/1e3+"s "+this.timing),this.style(n),setTimeout((function(){return e.style(e.side,e.menuWidth+"px")}),1)}}},{key:"onClose",value:function(){var e=r.transitions,t={width:"",position:"",right:"",left:""};t[e.cssProperty]="",this.style(t),this.unbind(e.event,this.temporalCallback)}},{key:"close",value:function(){if(this.displace){var e=r.transitions;this.style(this.side,0);var t=this;this.temporalCallback=function(){t.onClose()},this.bind(e.event,this.temporalCallback)}}},{key:"removeAnimationClass",value:function(){this.removeClass(f)}},{key:"removeOpenClass",value:function(){this.removeClass(y(this.name))}},{key:"addOpenClass",value:function(){this.addClass(y(this.name))}}]),t}(h),x={moving:!1,opened:!1},g=function(e){function t(e){l(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r.id(e.name)));return n.name=e.name,n.speed=e.speed,n.side=e.side,n.displace=e.displace,n.source=e.source,n.timing=e.timing,n.method=e.method,n.renaming=e.renaming,n.onOpenCallback=e.onOpen,n.onCloseCallback=e.onClose,n.onOpenEndCallback=e.onOpenEnd,n.onCloseEndCallback=e.onCloseEnd,n.init(e),n}return c(t,e),a(t,[{key:"init",value:function(e){this.element||(this.element=r.createElement(this.name)),this.style(r.transitions.cssProperty,this.side+" "+this.speed/1e3+"s "+this.timing),this.addClass("sidr sidr-"+this.side),this.body=new w(e,this.offsetWidth()),this.reload()}},{key:"reload",value:function(){if("string"==typeof this.source){var e=r.getHTMLContent(this.source);this.renaming&&(e=r.addPrefixes(e)),this.html(e)}else null!==this.source&&console.error("Invalid Sidr Source")}},{key:"move",value:function(e,t){x.moving=!0,this.body.prepare(e),this.body.move(e),this.moveMenu(e,t)}},{key:"open",value:function(e){var t=this;x.opened===this.name||x.moving||(!1===x.opened?(this.move("open",e),this.onOpenCallback()):i(x.opened).close((function(){t.open(e)})))}},{key:"close",value:function(e){x.opened!==this.name||x.moving||(this.move("close",e),this.onCloseCallback())}},{key:"toggle",value:function(e){x.opened===this.name?this.close(e):this.open(e)}},{key:"onOpenMenu",value:function(e){var t=this.name;x.moving=!1,x.opened=t,this.unbind(r.transitions.event,this.temporalOpenMenuCallback),this.body.removeAnimationClass(),this.body.addOpenClass(),this.onOpenEndCallback(),"function"==typeof e&&e(t)}},{key:"openMenu",value:function(e){var t=this;this.style(this.side,0),this.temporalOpenMenuCallback=function(){t.onOpenMenu(e)},this.bind(r.transitions.event,this.temporalOpenMenuCallback)}},{key:"onCloseMenu",value:function(e){this.unbind(r.transitions.event,this.temporalCloseMenuCallback),this.style({left:"",right:""}),this.body.unprepare(),x.moving=!1,x.opened=!1,this.body.removeAnimationClass(),this.body.removeOpenClass(),this.onCloseEndCallback(),"function"==typeof e&&e(name)}},{key:"closeMenu",value:function(e){var t=this;this.style(this.side,""),this.temporalCloseMenuCallback=function(){t.onCloseMenu(e)},this.bind(r.transitions.event,this.temporalCloseMenuCallback)}},{key:"moveMenu",value:function(e,t){"open"===e?this.openMenu(t):this.closeMenu(t)}}]),t}(h),k=function(e){return function(t,n){"function"==typeof t?(n=t,t="sidr"):t||(t="sidr"),i(t)[e](n)}},L={},C=["open","close","toggle","reload"],S=0;S<C.length;S++){var E=C[S];L[E]=k(E)}function A(e){return"status"===e?x:L[e]?L[e].apply(this,Array.prototype.slice.call(arguments,1)):"function"!=typeof e&&"string"!=typeof e&&e?void console.error("Method "+e+" does not exist on sidr"):L.toggle.apply(this,arguments)}var q=function(e){function t(e,n){l(this,t);var i=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.init(n),i}return c(t,e),a(t,[{key:"init",value:function(e){if(!this.element.getAttribute("data-sidr")){var t=e.name,n=e.method,i=e.bind;this.element.setAttribute("data-sidr",t),this.bind(i,(function(e){e.preventDefault(),A(n,t)}))}}}]),t}(h),_={new:function(t,i){var o=s(e,i),l=r.qsa(t);n(o.name,new g(o));for(var a=0;a<l.length;a++)new q(l[a],o)},status:function(){return A.apply(void 0,["status"].concat(Array.prototype.slice.call(arguments)))},reload:function(){return A.apply(void 0,["reload"].concat(Array.prototype.slice.call(arguments)))},close:function(){return A.apply(void 0,["close"].concat(Array.prototype.slice.call(arguments)))},open:function(){return A.apply(void 0,["open"].concat(Array.prototype.slice.call(arguments)))},toggle:function(){return A.apply(void 0,["toggle"].concat(Array.prototype.slice.call(arguments)))}};window.wpexSidr=_}(),function(e){let t=!1,n=!1,i=!1,s=!1;const o=()=>{wpexSidr.close("sidr-main")},r=()=>{const t=document.querySelector(".wpex-sidr-overlay");wpexSidr.new("a.mobile-menu-toggle, button.mobile-menu-toggle, li.mobile-menu-toggle > a",{name:"sidr-main",source:e.source,side:e.side,timing:"ease-in-out",displace:e.displace,speed:window.matchMedia("(prefers-reduced-motion: reduce)").matches?10:parseInt(e.speed),renaming:!0,bind:"click",onOpen:function(){if(i=!1,e.displace||wpex.htmlNoScroll("add"),document.body.classList.add("mobile-menu-is-open"),s){s.setAttribute("aria-expanded","true"),s.classList.add("wpex-active");const e=s.querySelector(".wpex-hamburger-icon");e&&wpex.setHamburgerIconState(e)}t&&t.classList.remove("wpex-hidden"),o.setAttribute("tabIndex","0"),n=wpex.focusOnElement(o,o),o.addEventListener("keydown",a),o.querySelector(".wpex-mobile-menu__close")?.addEventListener("click",l),o.addEventListener("click",p),t&&t.addEventListener("click",l),e.breakpoint&&"9999"!==e.breakpoint&&window.addEventListener("resize",u),document.addEventListener("wpex:beforeScrollTo",c)},onClose:function(){if(e.displace||wpex.htmlNoScroll("remove"),document.body.classList.remove("mobile-menu-is-open"),s){s.setAttribute("aria-expanded","false"),s.classList.remove("wpex-active");const e=s.querySelector(".wpex-hamburger-icon");e&&wpex.setHamburgerIconState(e)}t&&t.classList.add("wpex-hidden"),o.removeEventListener("keydown",a),o.querySelector(".wpex-mobile-menu__close")?.removeEventListener("click",l),o.removeEventListener("click",p),t&&t.removeEventListener("click",l),e.breakpoint&&"9999"!==e.breakpoint&&window.removeEventListener("resize",u),n&&(n(),n=!1),document.removeEventListener("wpex:beforeScrollTo",c)},onCloseEnd:function(){e.displace&&"function"==typeof window.vc_rowBehaviour&&setTimeout(window.vc_rowBehaviour),document.querySelector("#sidr-main").removeAttribute("tabIndex"),i&&s&&s.focus()}});const o=document.querySelector("#sidr-main");e.aria_label&&o.setAttribute("aria-label",e.aria_label),("string"!=typeof e.dark_surface||e.dark_surface)&&o.classList.add("wpex-surface-dark"),e.class&&Array.isArray(e.class)?o.classList.add(...e.class):o.classList.add("wpex-mobile-menu"),o.querySelectorAll(".sidr-class-megamenu__inner-ul").forEach((e=>{e.classList.add("sidr-class-sub-menu")})),o.querySelectorAll(".sidr-class-menu-item-logo,.sidr-class-nav-arrow,.sidr-class-wpex-menu-extra,#sidr-id-searchform-dropdown,#searchform-header-replace-close,.hide-at-mm-breakpoint").forEach((e=>{e.remove()}));const r=o.querySelector('.sidr-class-mobile-menu-searchform label[for="mobile-menu-search-input"]');r&&r.setAttribute("for","sidr-id-mobile-menu-search-input");const d=document.querySelector(".wpex-mobile-menu-top");if(d){const e=document.createElement("div");e.className="sidr-inner",e.appendChild(d),o.insertBefore(e,o.querySelector(".sidr-inner")||o.firstChild),d.classList.remove("wpex-hidden")}const m=document.querySelector(".wpex-mobile-menu-bottom");if(m){const e=document.createElement("div");e.className="sidr-inner",e.appendChild(m),o.appendChild(e),m.classList.remove("wpex-hidden")}const h=document.querySelector("#wpex-template-sidr-mobile-menu-top");if(h){const e=h.content.cloneNode(!0);o.insertBefore(e,o.firstChild),h.remove()}o.querySelectorAll(".sidr-class-main-navigation-ul, .sidr-class-main-navigation-dev-ul").forEach((e=>{e.classList.add("sidr-class-dropdown-menu")})),o.querySelectorAll(".sidr-class-dropdown-menu").forEach((t=>{t.classList.add("wpex-list-none","wpex-m-0","wpex-p-0"),t.classList.add("sidr-mobile-nav-menu"),t.querySelectorAll("ul").forEach((e=>{e.classList.add("wpex-list-none","wpex-m-0","wpex-p-0")})),t.querySelectorAll("li").forEach((e=>{e.classList.add("sidr-mobile-nav-menu__item"),e.querySelectorAll("ul").forEach((e=>{e.classList.add("sidr-mobile-nav-menu__sub-menu","wpex-hidden")}))})),t.querySelectorAll("a").forEach((e=>{e.classList.add("sidr-mobile-nav-menu__link","wpex-block","wpex-relative"),document.documentElement.classList.contains("classic-style")||e.classList.add("wpex-py-15","wpex-px-20"),e.closest("li").classList.contains("nav-no-click")&&e.setAttribute("tabIndex","-1");const t=document.createElement("span");t.classList.add("sidr-mobile-nav-menu__link-wrap","wpex-block","wpex-relative"),e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t.appendChild(e);const n=e.querySelector(".sidr-class-link-inner");n&&(n.classList.add("sidr-mobile-nav-menu__link-inner","wpex-inline-block"),n.querySelectorAll(".wpex-icon").forEach((e=>{e.classList.contains("wpex-m-0")||e.closest(".wpex-no-renaming")||e.classList.add("wpex-icon--w","wpex-mr-10")})))})),(e=>{e.querySelectorAll("li.sidr-class-megamenu.sidr-class-hide-headings:not(.sidr-class-show-headings-mobile)").forEach((e=>{const t=e.querySelector("ul");t&&t.querySelectorAll(":scope > li").forEach((e=>{e.classList.remove("menu-item-has-children"),e.querySelectorAll(":scope > ul > li").forEach((e=>{t.appendChild(e)})),e.remove()}))}))})(t),t.querySelectorAll(".sidr-class-sub-menu > li .sidr-class-link-inner").forEach((e=>{e.classList.add("wpex-inline-block","wpex-ml-20")})),t.querySelectorAll(".sidr-class-sub-menu .sidr-class-sub-menu > li .sidr-class-link-inner").forEach((e=>{e.classList.remove("wpex-ml-20"),e.classList.add("wpex-ml-40")})),t.querySelectorAll(".sidr-class-sub-menu .sidr-class-sub-menu .sidr-class-sub-menu > li .sidr-class-link-inner").forEach((e=>{e.classList.remove("wpex-ml-40"),e.classList.add("wpex-ml-60")})),t.querySelectorAll(".sidr-class-menu-item-has-children").forEach((t=>{const n=t.querySelector("a");if(!n)return;const i=n.closest("span"),s=document.createElement("button");if(s.className="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",s.setAttribute("aria-haspopup","true"),s.setAttribute("aria-expanded","false"),s.setAttribute("aria-label",e.i18n.openSubmenu.replace("%s",n.innerText.trim())),e.openSubmenuIcon){const t=document.createElement("div");t.innerHTML=e.openSubmenuIcon,s.appendChild(t.firstChild)}if(e.openSubmenuIconActive){const t=document.createElement("div");t.innerHTML=e.openSubmenuIconActive,s.appendChild(t.firstChild)}i?i.appendChild(s):n.appendChild(s),n.classList.add("wpex-pr-50")}))}));const f=document.querySelector("#mobile-menu-alternative");f&&f.parentNode.removeChild(f)};document.querySelectorAll("a.mobile-menu-toggle,button.mobile-menu-toggle,li.mobile-menu-toggle > a").forEach((e=>{e.addEventListener("click",(n=>{s=e,t||(r(),t=!0,n.preventDefault(),document.dispatchEvent(new CustomEvent("wpex:mobileMenuRendered",{detail:""})),wpexSidr.open("sidr-main"))})),e.addEventListener("keydown",(t=>{" "===t.key&&(s=e,t.preventDefault(),wpexSidr.open("sidr-main"))}))}));const l=e=>{o(),e.preventDefault()},a=e=>{const t=e.key;if("Escape"===t)return i=!0,o();!e.target.closest("#sidr-main .wpex-mobile-menu__close")||" "!==t&&"Enter"!==t||(i=!0,e.preventDefault(),o())},c=e=>{o()},u=((e,t)=>{let n;return(...i)=>{const s=this;clearTimeout(n),n=setTimeout((()=>{e.apply(s,i)}),t)}})((()=>{(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)>=e.breakpoint&&o()}),100);let d=!1;const p=t=>{const n=t.target.closest(".wpex-open-submenu");if(!n)return;if(t.preventDefault(),t.stopPropagation(),d)return;const i=t=>{const n=t.closest("li.active"),i=n.querySelector(".wpex-open-submenu");n.classList.remove("active"),i.setAttribute("aria-expanded","false"),i.setAttribute("aria-label",e.i18n.openSubmenu.replace("%s",n.querySelector("a").innerText.trim()));const s=i.querySelector(".wpex-open-submenu__icon");if(s){const e=i.querySelector(".wpex-open-submenu__icon--open");e?(s.classList.remove("wpex-hidden"),e.classList.add("wpex-hidden")):s.classList.remove("wpex-rotate-180")}d=!0,wpex.slideUp(t,null,(function(){d=!1}))},s=n.closest("li");if(s.classList.contains("active"))i(s.querySelector("ul")),s.querySelectorAll("li.active > ul").forEach((e=>{i(e)}));else{n.setAttribute("aria-expanded","true"),n.setAttribute("aria-label",e.i18n.closeSubmenu.replace("%s",s.querySelector("a").innerText.trim()));const t=n.querySelector(".wpex-open-submenu__icon");if(t){const e=n.querySelector(".wpex-open-submenu__icon--open");e?(t.classList.add("wpex-hidden"),e.classList.remove("wpex-hidden")):t.classList.add("wpex-rotate-180")}d=!0,wpex.slideDown(s.querySelector("ul"),null,(function(){d=!1})),s.classList.add("active")}}}(wpex_mobile_menu_sidr_params);
window.addComment=function(e){var t,n,i,r=e.document,d={commentReplyClass:"comment-reply-link",commentReplyTitleId:"reply-title",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},o=e.MutationObserver||e.WebKitMutationObserver||e.MozMutationObserver,l="querySelector"in r&&"addEventListener"in e,a=!!r.documentElement.dataset;function m(){c(),function(){if(!o)return;var e={childList:!0,subtree:!0};new o(y).observe(r.body,e)}()}function c(e){if(l&&(t=f(d.cancelReplyId),n=f(d.commentFormId),t)){t.addEventListener("click",s);var i=function(e){if((e.metaKey||e.ctrlKey)&&"Enter"===e.key)return n.removeEventListener("keydown",i),e.preventDefault(),n.submit.click(),!1};n&&n.addEventListener("keydown",i);for(var o=function(e){var t,n=d.commentReplyClass;e&&e.childNodes||(e=r);t=r.getElementsByClassName?e.getElementsByClassName(n):e.querySelectorAll("."+n);return t}(e),a=0,m=o.length;a<m;a++)o[a].addEventListener("click",p)}}function s(e){var t=f(d.temporaryFormId);if(t&&i){f(d.parentIdFieldId).value="0";var n=t.textContent;t.parentNode.replaceChild(i,t),this.style.display="none";var r=f(d.commentReplyTitleId),o=r&&r.firstChild,l=o&&o.nextSibling;o&&o.nodeType===Node.TEXT_NODE&&n&&(l&&"A"===l.nodeName&&l.id!==d.cancelReplyId&&(l.style.display=""),o.textContent=n),e.preventDefault()}}function p(t){var n=f(d.commentReplyTitleId),i=n&&n.firstChild.textContent,r=this,o=u(r,"belowelement"),l=u(r,"commentid"),a=u(r,"respondelement"),m=u(r,"postid"),c=u(r,"replyto")||i;o&&l&&a&&m&&(c&&c.includes("<span")&&(c=c.split("<span")[0]),!1===e.addComment.moveForm(o,l,a,m,c)&&t.preventDefault())}function y(e){for(var t=e.length;t--;)if(e[t].addedNodes.length)return void c()}function u(e,t){return a?e.dataset[t]:e.getAttribute("data-"+t)}function f(e){return r.getElementById(e)}return l&&"loading"!==r.readyState?m():l&&e.addEventListener("DOMContentLoaded",m,!1),{init:c,moveForm:function(o,l,a,m,c){var s=f(o);i=f(a);var p,y,u,v=f(d.parentIdFieldId),I=f(d.postIdFieldId),C=f(d.commentReplyTitleId),h=C&&C.firstChild,E=h&&h.nextSibling;if(s&&i&&v){void 0===c&&(c=h&&h.textContent),function(e){var t=d.temporaryFormId,n=f(t),i=f(d.commentReplyTitleId),o=i?i.firstChild.textContent:"";if(n)return;(n=r.createElement("div")).id=t,n.style.display="none",n.textContent=o,e.parentNode.insertBefore(n,e)}(i),m&&I&&(I.value=m),v.value=l,t.style.display="",s.parentNode.insertBefore(i,s.nextSibling),h&&h.nodeType===Node.TEXT_NODE&&(E&&"A"===E.nodeName&&E.id!==d.cancelReplyId&&(E.style.display="none"),h.textContent=c),t.onclick=function(){return!1};try{for(var b=0;b<n.elements.length;b++)if(p=n.elements[b],y=!1,"getComputedStyle"in e?u=e.getComputedStyle(p):r.documentElement.currentStyle&&(u=p.currentStyle),(p.offsetWidth<=0&&p.offsetHeight<=0||"hidden"===u.visibility)&&(y=!0),"hidden"!==p.type&&!p.disabled&&!y){p.focus();break}}catch(e){}return!1}}}}(window);
!function(){wpex.offCanvas={instances:{},getInstance:function(e){const t="string"==typeof e?document.querySelector(e):e;if(t){const e=t.id;if(this.instances[e])return this.instances[e]}return null},getOrCreateInstance:function(t){const s=this.getInstance(t);if(!s){const s="string"==typeof t?document.querySelector(t):t;if(s){const t=new e(s);return this.instances[s.id]=t,t}}return s},open:function(e){const t=this.getInstance(e);t&&t.open()},close:function(e){const t=this.getInstance(e);t&&t.close()},closeAll:function(){for(const e in this.instances)this.instances.hasOwnProperty(e)&&this.instances[e].close()}};class e{constructor(e){this.offCanvasElement=e,this.cleanupFocusTrap=!1,this.toggle=!1,this.isOpen=!1,this.speed=window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:parseInt(e.getAttribute("data-wpex-off-canvas-speed")),this.isUnderHeader=this.offCanvasElement.classList.contains("wpex-off-canvas--under-header"),this.visibilityClass=this.offCanvasElement.getAttribute("data-wpex-off-canvas-visibility"),this.hasBackdrop="false"!==this.offCanvasElement.getAttribute("data-wpex-off-canvas-backdrop"),this.closeButton=this.offCanvasElement.querySelector(".wpex-off-canvas__close"),this.#e(),this.hasBackdrop&&this.#t(),this.#s(),this.#i(),this.closeButton&&(this.handleCloseClick=this.#n.bind(this)),this.isUnderHeader&&(this.handleClickOutside=this.#o.bind(this)),this.handleOnResize=function(e,t){let s;return function(...i){clearTimeout(s),s=setTimeout((()=>e.apply(this,i)),t)}}(this.#a.bind(this),300),this.handleKeydown=this.#c.bind(this),this.handleWpexBeforeScrollTo=this.#l.bind(this)}#s(){this.offCanvasElement.querySelectorAll("template").forEach((e=>{e.parentElement.append(e.content),e.remove()}))}#e(){const e=document.getElementById("outer-wrap");if(e&&e.contains(this.offCanvasElement)){if(!this.visibilityClass&&!document.body.classList.contains("compose-mode")){const e=this.offCanvasElement.closest(".vc_row");if(e){const t=["hidden-desktop-large","hidden-desktop","visible-phone","visible-phone-small"];for(const s of t)if(e.classList.contains(s)){this.visibilityClass=s,this.offCanvasElement.classList.add(s);break}}}e.parentNode.insertBefore(this.offCanvasElement,e.nextSibling)}}#t(){const e=document.createElement("div");if(e.id=`${this.offCanvasElement.id}-backdrop`,e.className="wpex-off-canvas-backdrop wpex-fixed wpex-inset-0 wpex-bg-backdrop wpex-z-backdrop wpex-invisible wpex-opacity-0",this.isUnderHeader&&e.classList.add("wpex-off-canvas-backdrop--under-header"),this.visibilityClass&&e.classList.add(this.visibilityClass),this.speed){[75,100,150,200,250,300,350,400,500,600,700,1e3].includes(this.speed)?e.classList.add(`wpex-duration-${this.speed}`):e.style.transitionDuration=`${this.speed}ms`}document.body.appendChild(e),this.backdrop=e}#i(){document.addEventListener("click",(e=>{const t=e.target;t===this.backdrop&&this.close();const s=t.closest(`[data-wpex-toggle="off-canvas"][aria-controls="${this.offCanvasElement.id}"]`);s&&(e.preventDefault(),this.toggle=s,this.toggleState())})),document.addEventListener("keydown",(e=>{if(" "===e.key){const t=e.target.closest(`[data-wpex-toggle="off-canvas"][aria-controls="${this.offCanvasElement.id}"]`);t&&(e.preventDefault(),this.toggle=t,this.open())}}))}#r(){this.closeButton&&this.closeButton.addEventListener("click",this.handleCloseClick),this.isUnderHeader&&document.addEventListener("click",this.handleClickOutside),window.addEventListener("resize",this.handleOnResize),this.offCanvasElement.addEventListener("keydown",this.handleKeydown),document.addEventListener("wpex:beforeScrollTo",this.handleWpexBeforeScrollTo)}#d(){this.closeButton&&this.closeButton.removeEventListener("click",this.handleCloseClick),this.isUnderHeader&&document.removeEventListener("click",this.handleClickOutside),window.removeEventListener("resize",this.handleOnResize),this.offCanvasElement.removeEventListener("keydown",this.handleKeydown),document.removeEventListener("wpex:beforeScrollTo",this.handleWpexBeforeScrollTo)}#n(e){this.close()}#o(e){if(this.isOpen&&this.isUnderHeader){const t=e.target;t.closest(`[data-wpex-toggle="off-canvas"][aria-controls="${this.offCanvasElement.id}"]`)||this.offCanvasElement.contains(t)||this.close()}}#a(e){this.isUnderHeader&&this.setTopOffset(),this.isOpen&&"function"==typeof this.offCanvasElement.checkVisibility&&!this.offCanvasElement.checkVisibility()&&this.close()}#c(e){"Escape"===e.key&&this.close()}#l(e){this.offCanvasElement.contains(e.detail)||this.close()}setTopOffset(){const e=document.querySelector("#site-header");if(e){const t=e.getBoundingClientRect().bottom;document.body.style.setProperty("--wpex-off-canvas-top-offset",`${t}px`)}}open(){if(!this.isOpen){if(this.isUnderHeader?this.setTopOffset():document.body.style.setProperty("--wpex-off-canvas-top-offset",""),this.isOpen=!0,document.body.classList.add("wpex-off-canvas-is-open"),this.offCanvasElement.classList.add("wpex-off-canvas--open"),this.offCanvasElement.classList.remove("wpex-invisible"),this.offCanvasElement.style.transform="none",this.backdrop&&(this.backdrop.classList.remove("wpex-invisible","wpex-opacity-0"),this.backdrop.classList.add("wpex-opacity-100")),this.toggle){const e=this.toggle.querySelector(".wpex-hamburger-icon--animate");e&&(e.classList.remove("wpex-hamburger-icon--innactive"),e.classList.add("wpex-hamburger-icon--active")),this.toggle.setAttribute("aria-expanded","true")}if(wpex.htmlNoScroll("add"),this.speed){const e=t=>{this.setFocus(),this.offCanvasElement.removeEventListener("transitionend",e)};this.offCanvasElement.addEventListener("transitionend",e)}else this.setFocus();this.#r()}}close(){if(this.isOpen){if(this.isOpen=!1,document.body.classList.remove("wpex-off-canvas-is-open"),this.offCanvasElement.classList.remove("wpex-off-canvas--open"),this.offCanvasElement.classList.add("wpex-invisible"),this.offCanvasElement.style.transform="",this.backdrop&&(this.backdrop.classList.add("wpex-opacity-0","wpex-invisible"),this.backdrop.classList.remove("wpex-opacity-100")),this.toggle){const e=this.toggle.querySelector(".wpex-hamburger-icon--animate");e&&(e.classList.add("wpex-hamburger-icon--innactive"),e.classList.remove("wpex-hamburger-icon--active")),this.toggle.setAttribute("aria-expanded","false"),this.toggle.focus({preventScroll:!0,focusVisible:!1}),this.toggle=!1}wpex.htmlNoScroll("remove"),this.cleanupFocusTrap&&(this.cleanupFocusTrap(),this.cleanupFocusTrap=!1),this.#d()}}setFocus(){let e="";this.offCanvasElement.hasAttribute("data-wpex-off-canvas-open-focus")&&(e=this.offCanvasElement.querySelector(this.offCanvasElement.getAttribute("data-wpex-off-canvas-open-focus"))),this.cleanupFocusTrap=wpex.focusOnElement(this.offCanvasElement,e)}toggleState(){this.isOpen?this.close():this.open()}}document.querySelectorAll(".wpex-off-canvas").forEach((e=>{wpex.offCanvas.getOrCreateInstance(e)}))}();
!function(e,o){o.auto_open&&1===parseInt(o.auto_open)&&(e("body").on("added_to_cart",(function(){wpex.offCanvas.open(document.querySelector("#wpex-off-canvas-cart"))})),o.open_on_load&&1===parseInt(o.open_on_load)&&e(document).ready((function(){wpex.offCanvas.open(document.querySelector("#wpex-off-canvas-cart"))}))),document.addEventListener("click",(e=>{const o=e.target.closest("#wpex-off-canvas-cart .remove_from_cart_button");if(o){o.closest(".wpex-mini-cart__items-list").classList.add("wpex-mini-cart__items-list--disabled")}}))}(jQuery,wpex_wc_cart_off_canvas_params);