File: /home/zeusxp5/tour.kamille.us/wp-content/themes/solace/header-footer-grid/assets/js/theme.min.js
!function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function R(e,t){return e(t={exports:{}},t.exports),t.exports}function t(e){return e&&e.Math==Math&&e}function f(e){try{return!!e()}catch(e){return!0}}function k(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function i(e){if(y(e))throw fe("Can't call method on "+e);return e}function c(e){return de(i(e))}function B(e,t){return arguments.length<2?(n=v[e],x(n)?n:void 0):v[e]&&v[e][t];var n}function F(e){return Me(i(e))}function $(e){return"Symbol("+(void 0===e?"":e)+")_"+Ce(++je+Ae,36)}function s(e){return L(Ne,e)||(Ne[e]=ve&&L(_,e)?_[e]:Pe("Symbol."+e)),Ne[e]}function q(e){return e=function(e,t){if(!b(e)||be(e))return e;var n=xe(e,Re);if(n){if(n=m(n,e,t=void 0===t?"default":t),!b(n)||be(n))return n;throw De("Can't convert object to primitive value")}return Le(e,t=void 0===t?"number":t)}(e,"string"),be(e)?e:e+""}function U(e){return tt[e]||(tt[e]=$(e))}function z(e,t,n,r){var o=(r=r||{}).enumerable,i=void 0!==r.name?r.name:t;if(x(n)&&ut(n,i,r),r.global)o?e[t]=n:Te(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:I.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}}function H(u){return function(e,t,n){var r,o=c(e),i=mt(o.length),a=function(e,t){e=A(e);return e<0?dt(e+t,0):ft(e,t)}(n,i);if(u&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((u||a in o)&&o[a]===t)return u||a||0;return!u&&-1}}function W(e,t){var n,r=c(e),o=0,i=[];for(n in r)!L(nt,n)&&L(r,n)&>(i,n);for(;t.length>o;)!L(r,n=t[o++])||~ht(i,n)||gt(i,n);return i}function n(e,t){return(e=Ot[xt(e)])==_t||e!=Lt&&(x(t)?f(t):!!t)}function G(e,t){var n,r,o,i=e.target,a=e.global,u=e.stat,c=a?v:u?v[i]||Te(i,{}):(v[i]||{}).prototype;if(c)for(n in t){if(r=t[n],o=e.dontCallGetSet?(o=Mt(c,n))&&o.value:c[n],!Tt(a?n:i+(u?".":"#")+n,e.forced)&&void 0!==o){if(typeof r==typeof o)continue;for(var s=r,l=o,d=g=h=m=p=f=void 0,f=St(l),p=I.f,m=Ue.f,h=0;h<f.length;h++){var g=f[h];L(s,g)||d&&L(d,g)||p(s,g,m(l,g))}}(e.sham||o&&o.sham)&&Ve(r,"sham",!0),z(c,n,r,e)}}function E(e){if("Symbol"===Ct(e))throw TypeError("Cannot convert a Symbol value to a string");return Nt(e)}function K(){var e=M(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}function Y(){}function J(e){e.write(qt("")),e.close();var t=e.parentWindow.Object;return e=null,t}function X(e){if("Function"===g(e))return h(e)}function V(n,e,t,r){var a,o=s(n),u=!f(function(){var e={};return e[o]=function(){return 7},7!=""[n](e)}),i=u&&!f(function(){var e=!1,t=/a/;return"split"===n&&((t={constructor:{}}).constructor[rn]=function(){return t},t.flags="",t[o]=/./[o]),t.exec=function(){return e=!0,null},t[o](""),!e});u&&i&&!t||(a=X(/./[o]),i=e(o,""[n],function(e,t,n,r,o){var e=X(e),i=t.exec;return i===nn||i===on.exec?u&&!o?{done:!0,value:a(t,n,r)}:{done:!0,value:e(n,t,r)}:{done:!1}}),z(String.prototype,n,i[0]),z(on,o,i[1])),r&&Ve(on[o],"sham",!0)}function Q(o){return function(e,t){var n,e=E(i(e)),t=A(t),r=e.length;return t<0||r<=t?o?"":void 0:(n=un(e,t))<55296||56319<n||t+1===r||(r=un(e,t+1))<56320||57343<r?o?an(e,t):n:o?cn(e,t,t+2):r-56320+(n-55296<<10)+65536}}function Z(e,t,n){return t+(n?sn(e,t).length:1)}function ee(e,t){var n=e.exec;if(x(n))return null!==(n=m(n,e,t))&&M(n),n;if("RegExp"===g(e))return m(nn,e,t);throw ln("RegExp#exec called on incompatible receiver")}var r,o,a,u,te,ne,re,v=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||function(){return this}()||Function("return this")(),p=!f(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),e=!f(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),l=Function.prototype.call,m=e?l.bind(l):function(){return l.apply(l,arguments)},d={}.propertyIsEnumerable,oe=Object.getOwnPropertyDescriptor,ie={f:oe&&!d.call({1:2},1)?function(e){e=oe(this,e);return!!e&&e.enumerable}:d},d=Function.prototype,ae=d.call,d=e&&d.bind.bind(ae,ae),h=e?d:function(e){return function(){return ae.apply(e,arguments)}},ue=h({}.toString),ce=h("".slice),g=function(e){return ce(ue(e),8,-1)},se=Object,le=h("".split),de=f(function(){return!se("z").propertyIsEnumerable(0)})?function(e){return"String"==g(e)?le(e,""):se(e)}:se,y=function(e){return null==e},fe=TypeError,d="object"==typeof document&&document.all,d={all:d,IS_HTMLDDA:void 0===d&&void 0!==d},pe=d.all,x=d.IS_HTMLDDA?function(e){return"function"==typeof e||e===pe}:function(e){return"function"==typeof e},me=d.all,b=d.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:x(e)||e===me}:function(e){return"object"==typeof e?null!==e:x(e)},he=h({}.isPrototypeOf),d="undefined"!=typeof navigator&&String(navigator.userAgent)||"",w=v.process,S=v.Deno,w=w&&w.versions||S&&S.version,S=w&&w.v8,ge=j=!(j=S?0<(T=S.split("."))[0]&&T[0]<4?1:+(T[0]+T[1]):j)&&d&&(!(T=d.match(/Edge\/(\d+)/))||74<=T[1])&&(T=d.match(/Chrome\/(\d+)/))?+T[1]:j,ve=!!Object.getOwnPropertySymbols&&!f(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ge&&ge<41}),w=ve&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ye=Object,be=w?function(e){return"symbol"==typeof e}:function(e){var t=B("Symbol");return x(t)&&he(t.prototype,ye(e))},we=String,Se=function(e){try{return we(e)}catch(e){return"Object"}},Ee=TypeError,xe=function(e,t){e=e[t];if(!y(e)){t=e;if(x(t))return t;throw Ee(Se(t)+" is not a function")}},Oe=TypeError,Le=function(e,t){var n,r;if("string"===t&&x(n=e.toString)&&!b(r=m(n,e)))return r;if(x(n=e.valueOf)&&!b(r=m(n,e)))return r;if("string"!==t&&x(n=e.toString)&&!b(r=m(n,e)))return r;throw Oe("Can't convert object to primitive value")},_e=Object.defineProperty,Te=function(t,n){try{_e(v,t,{value:n,configurable:!0,writable:!0})}catch(e){v[t]=n}return n},S="__core-js_shared__",O=v[S]||Te(S,{}),d=R(function(e){(e.exports=function(e,t){return O[e]||(O[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.28.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE",source:"https://github.com/zloirock/core-js"})}),Me=Object,Ie=h({}.hasOwnProperty),L=Object.hasOwn||function(e,t){return Ie(F(e),t)},je=0,Ae=Math.random(),Ce=h(1..toString),_=v.Symbol,Ne=d("wks"),Pe=w?_.for||_:_&&_.withoutSetter||$,De=TypeError,Re=s("toPrimitive"),ke=v.document,Be=b(ke)&&b(ke.createElement),Fe=function(e){return Be?ke.createElement(e):{}},$e=!p&&!f(function(){return 7!=Object.defineProperty(Fe("div"),"a",{get:function(){return 7}}).a}),qe=Object.getOwnPropertyDescriptor,Ue={f:p?qe:function(e,t){if(e=c(e),t=q(t),$e)try{return qe(e,t)}catch(e){}if(L(e,t))return k(!m(ie.f,e,t),e[t])}},T=p&&f(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),ze=String,He=TypeError,M=function(e){if(b(e))return e;throw He(ze(e)+" is not an object")},We=TypeError,Ge=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,Ye="enumerable",Je="configurable",Xe="writable",I={f:p?T?function(e,t,n){var r;return M(e),t=q(t),M(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Xe in n&&!n[Xe]&&(r=Ke(e,t))&&r[Xe]&&(e[t]=n.value,n={configurable:(Je in n?n:r)[Je],enumerable:(Ye in n?n:r)[Ye],writable:!1}),Ge(e,t,n)}:Ge:function(e,t,n){if(M(e),t=q(t),M(n),$e)try{return Ge(e,t,n)}catch(e){}if("get"in n||"set"in n)throw We("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ve=p?function(e,t,n){return I.f(e,t,k(1,n))}:function(e,t,n){return e[t]=n,e},j=Function.prototype,S=p&&Object.getOwnPropertyDescriptor,w=L(j,"name"),Qe={EXISTS:w,PROPER:w&&"something"===function(){}.name,CONFIGURABLE:w&&(!p||S(j,"name").configurable)},Ze=h(Function.toString),et=(x(O.inspectSource)||(O.inspectSource=function(e){return Ze(e)}),O.inspectSource),w=v.WeakMap,S=x(w)&&/native code/.test(String(w)),tt=d("keys"),nt={},rt="Object already initialized",ot=v.TypeError,j=v.WeakMap,it=S||O.state?((a=O.state||(O.state=new j)).get=a.get,a.has=a.has,a.set=a.set,r=function(e,t){if(a.has(e))throw ot(rt);return t.facade=e,a.set(e,t),t},o=function(e){return a.get(e)||{}},function(e){return a.has(e)}):(u=U("state"),nt[u]=!0,r=function(e,t){if(L(e,u))throw ot(rt);return t.facade=e,Ve(e,u,t),t},o=function(e){return L(e,u)?e[u]:{}},function(e){return L(e,u)}),at={set:r,get:o,has:it,enforce:function(e){return it(e)?o(e):r(e,{})},getterFor:function(t){return function(e){if(b(e)&&(e=o(e)).type===t)return e;throw ot("Incompatible receiver, "+t+" required")}}},ut=R(function(e){var r=Qe.CONFIGURABLE,o=at.enforce,t=at.get,i=String,a=Object.defineProperty,u=h("".slice),c=h("".replace),s=h([].join),l=p&&!f(function(){return 8!==a(function(){},"length",{value:8}).length}),d=String(String).split("String"),e=e.exports=function(e,t,n){"Symbol("===u(i(t),0,7)&&(t="["+c(i(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!L(e,"name")||r&&e.name!==t)&&(p?a(e,"name",{value:t,configurable:!0}):e.name=t),l&&n&&L(n,"arity")&&e.length!==n.arity&&a(e,"length",{value:n.arity});try{n&&L(n,"constructor")&&n.constructor?p&&a(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}n=o(e);return L(n,"source")||(n.source=s(d,"string"==typeof t?t:"")),e};Function.prototype.toString=e(function(){return x(this)&&t(this).source||et(this)},"toString")}),ct=Math.ceil,st=Math.floor,lt=Math.trunc||function(e){e=+e;return(0<e?st:ct)(e)},A=function(e){e=+e;return e!=e||0==e?0:lt(e)},dt=Math.max,ft=Math.min,pt=Math.min,mt=function(e){return 0<e?pt(A(e),9007199254740991):0},w={includes:H(!0),indexOf:H(!1)},ht=w.indexOf,gt=h([].push),C=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vt=C.concat("length","prototype"),yt={f:Object.getOwnPropertyNames||function(e){return W(e,vt)}},bt={f:Object.getOwnPropertySymbols},wt=h([].concat),St=B("Reflect","ownKeys")||function(e){var t=yt.f(M(e)),n=bt.f;return n?wt(t,n(e)):t},Et=/#|\.prototype\./,xt=n.normalize=function(e){return String(e).replace(Et,".").toLowerCase()},Ot=n.data={},Lt=n.NATIVE="N",_t=n.POLYFILL="P",Tt=n,Mt=Ue.f,S={},j=(S[s("toStringTag")]="z","[object z]"===String(S)),It=s("toStringTag"),jt=Object,At="Arguments"==g(function(){return arguments}()),Ct=j?g:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=jt(e),It))?t:At?g(e):"Object"==(t=g(e))&&x(e.callee)?"Arguments":t},Nt=String,Pt=v.RegExp,S=f(function(){var e=Pt("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),j=S||f(function(){return!Pt("a","y").sticky}),j={BROKEN_CARET:S||f(function(){var e=Pt("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),MISSED_STICKY:j,UNSUPPORTED_Y:S},Dt=Object.keys||function(e){return W(e,C)},Rt={f:p&&!T?Object.defineProperties:function(e,t){M(e);for(var n,r=c(t),o=Dt(t),i=o.length,a=0;a<i;)I.f(e,n=o[a++],r[n]);return e}},kt=B("document","documentElement"),Bt="prototype",Ft="script",$t=U("IE_PROTO"),qt=function(e){return"<"+Ft+">"+e+"</"+Ft+">"},N=function(){try{te=new ActiveXObject("htmlfile")}catch(e){}N="undefined"==typeof document||document.domain&&te?J(te):(e=Fe("iframe"),t="java"+Ft+":",e.style.display="none",kt.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(qt("document.F=Object")),t.close(),t.F);for(var e,t,n=C.length;n--;)delete N[Bt][C[n]];return N()},Ut=(nt[$t]=!0,Object.create||function(e,t){var n;return null!==e?(Y[Bt]=M(e),n=new Y,Y[Bt]=null,n[$t]=e):n=N(),void 0===t?n:Rt.f(n,t)}),zt=v.RegExp,S=f(function(){var e=zt(".","s");return!e.dotAll||!e.exec("\n")||"s"!==e.flags}),Ht=v.RegExp,T=f(function(){var e=Ht("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),Wt=at.get,Gt=d("native-string-replace",String.prototype.replace),Kt=RegExp.prototype.exec,Yt=Kt,Jt=h("".charAt),Xt=h("".indexOf),Vt=h("".replace),Qt=h("".slice),Zt=(d=/b*/g,m(Kt,mn=/a/,"a"),m(Kt,d,"a"),0!==mn.lastIndex||0!==d.lastIndex),en=j.BROKEN_CARET,tn=void 0!==/()??/.exec("")[1],nn=Yt=Zt||tn||en||S||T?function(e){var t,n,r,o,i,a,u=this,c=Wt(u),e=E(e),s=c.raw;if(s)return s.lastIndex=u.lastIndex,d=m(Yt,s,e),u.lastIndex=s.lastIndex,d;var l=c.groups,s=en&&u.sticky,d=m(K,u),c=u.source,f=0,p=e;if(s&&(d=Vt(d,"y",""),-1===Xt(d,"g")&&(d+="g"),p=Qt(e,u.lastIndex),0<u.lastIndex&&(!u.multiline||u.multiline&&"\n"!==Jt(e,u.lastIndex-1))&&(c="(?: "+c+")",p=" "+p,f++),t=new RegExp("^(?:"+c+")",d)),tn&&(t=new RegExp("^"+c+"$(?!\\s)",d)),Zt&&(n=u.lastIndex),r=m(Kt,s?t:u,p),s?r?(r.input=Qt(r.input,f),r[0]=Qt(r[0],f),r.index=u.lastIndex,u.lastIndex+=r[0].length):u.lastIndex=0:Zt&&r&&(u.lastIndex=u.global?r.index+r[0].length:n),tn&&r&&1<r.length&&m(Gt,r[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r&&l)for(r.groups=i=Ut(null),o=0;o<l.length;o++)i[(a=l[o])[0]]=r[a[1]];return r}:Yt,rn=(G({target:"RegExp",proto:!0,forced:/./.exec!==nn},{exec:nn}),s("species")),on=RegExp.prototype,an=h("".charAt),un=h("".charCodeAt),cn=h("".slice),sn={codeAt:Q(!1),charAt:Q(!0)}.charAt,ln=TypeError,dn=(V("match",function(r,u,c){return[function(e){var t=i(this),n=y(e)?void 0:xe(e,r);return n?m(n,e,t):new RegExp(e)[r](E(t))},function(e){var t=M(this),n=E(e),e=c(u,t,n);if(e.done)return e.value;if(!t.global)return ee(t,n);for(var r=t.unicode,o=[],i=t.lastIndex=0;null!==(a=ee(t,n));){var a=E(a[0]);""===(o[i]=a)&&(t.lastIndex=Z(n,mt(t.lastIndex),r)),i++}return 0===i?null:o}]}),w.indexOf),fn=X([].indexOf),pn=!!fn&&1/fn([1],1,-0)<0,mn=(G({target:"Array",proto:!0,forced:pn||!(!!(re=[]["indexOf"])&&f(function(){re.call(null,ne||function(){return 1},1)}))},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return pn?fn(this,e,t)||0:dn(this,e,t)}}),Function.prototype),hn=mn.apply,gn=mn.call,vn="object"==typeof Reflect&&Reflect.apply||(e?gn.bind(hn):function(){return gn.apply(hn,arguments)}),yn=Math.floor,bn=h("".charAt),wn=h("".replace),Sn=h("".slice),En=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,xn=/\$([$&'`]|\d{1,2})/g,On=s("replace"),Ln=Math.max,_n=Math.min,Tn=h([].concat),Mn=h([].push),In=h("".indexOf),jn=h("".slice),d="$0"==="a".replace(/./,"$0"),An=!!/./[On]&&""===/./[On]("a","$0");function P(){this.options={menuToggleDuration:300},this.init()}V("replace",function(e,b,w){var S=An?"$":"$0";return[function(e,t){var n=i(this),r=y(e)?void 0:xe(e,On);return r?m(r,e,n,t):m(b,E(n),e,t)},function(e,t){var n=M(this),r=E(e);if("string"==typeof t&&-1===In(t,S)&&-1===In(t,"$<")){e=w(b,n,r,t);if(e.done)return e.value}for(var o,i=x(t),a=(i||(t=E(t)),n.global),u=(a&&(o=n.unicode,n.lastIndex=0),[]);null!==(f=ee(n,r))&&(Mn(u,f),a);)""===E(f[0])&&(n.lastIndex=Z(r,mt(n.lastIndex),o));for(var c,s="",l=0,d=0;d<u.length;d++){for(var f,p=E((f=u[d])[0]),m=Ln(_n(A(f.index),r.length),0),h=[],g=1;g<f.length;g++)Mn(h,void 0===(c=f[g])?c:String(c));var v=f.groups,y=i?(y=Tn([p],h,m,r),void 0!==v&&Mn(y,v),E(vn(t,void 0,y))):function(i,a,u,c,s,e){var l=u+i.length,d=c.length,t=xn;return void 0!==s&&(s=F(s),t=En),wn(e,t,function(e,t){var n;switch(bn(t,0)){case"$":return"$";case"&":return i;case"`":return Sn(a,0,u);case"'":return Sn(a,l);case"<":n=s[Sn(t,1,-1)];break;default:var r,o=+t;if(0==o)return e;if(d<o)return 0!==(r=yn(o/10))&&r<=d?void 0===c[r-1]?bn(t,1):c[r-1]+bn(t,1):e;n=c[o-1]}return void 0===n?"":n})}(p,r,m,h,v,t);l<=m&&(s+=jn(r,l,m)+y,l=m+p.length)}return s+jn(r,l)}]},!!f(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!d||An),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(document.documentElement.contains(t))do{if(t.matches(e))return t}while(null!==(t=t.parentElement||t.parentNode)&&1===t.nodeType);return null}),P.prototype.checkTouchScreen=function(){"ontouchstart"in document.documentElement?document.body.classList.add("ontouch-screen"):document.body.classList.add("not-touch-screen")},P.prototype.isMobile=function(){return!!(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i))},P.prototype.initMenuSidebar=function(){document.addEventListener("customize_control_sidebar",function(e){"open"===e.detail&&this.toggleMenuSidebar(!1),"close"===e.detail&&this.closeMenuSidebar()}.bind(this)),document.addEventListener("customize_section_opened",function(e){"header_sidebar"===e.detail&&this.toggleMenuSidebar(!1)}.bind(this));var e=document.querySelectorAll(".menu-mobile-toggle"),e=(this.addEvent(e,"click",function(e){e.preventDefault(),this.toggleMenuSidebar()}.bind(this)),document.querySelectorAll("#header-menu-sidebar .close-panel, .close-sidebar-panel"));this.addEvent(e,"click",function(e){e.preventDefault(),this.closeMenuSidebar()}.bind(this)),this.addEvent(document,"click",function(e){if(document.body.classList.contains("is-menu-sidebar")){var t=document.getElementById("header-menu-sidebar"),n=document.querySelectorAll(".menu-mobile-toggle"),r=!1,o=(e.target.closest("#header-menu-sidebar")||e.target===t||(r=!0),!1);if(n.length)for(var i=0;i<n.length;i++)!e.target.closest(".menu-mobile-toggle")&&e.target!==n[i]||(o=!0);r&&!o&&this.closeMenuSidebar()}}.bind(this)),this.addEvent(document,"keyup",function(e){27===e.keyCode&&this.closeMenuSidebar()}.bind(this))},P.prototype.toggleMobileSubmenu=function(e){e.preventDefault();var t=e.target.closest("li"),n=t.querySelectorAll(":scope > .sub-menu, .sub-lv-0");if(t.classList.contains("open-sub")){if(n.length)for(var r=0;r<n.length;r++)this.slideUp(n[r],this.options.menuToggleDuration,function(){t.classList.remove("open-sub")})}else if(t.classList.add("open-sub"),n.length)for(var o=0;o<n.length;o++)this.slideDown(n[o],this.options.menuToggleDuration,function(){t.classList.add("open-sub")})},P.prototype.toggleMobileSubmenuEvents=function(e){e.addEventListener("click",this.toggleMobileSubmenu.bind(this))},P.prototype.initMobileSubMenu=function(){var e=document.querySelectorAll("#header-menu-sidebar .nav-menu-mobile .menu-item-has-children");if(e.length)for(var t=0;t<e.length;t++){var n=e[t];if(!n.classList.contains("toggle--added")){n.classList.add("toggle--added");var r=n.querySelector(":scope > a"),o=r.cloneNode(!0),i=document.createElement("span"),r=(i.classList.add("nav-toggle-icon"),i.innerHTML='<i class="nav-icon-angle"></i>',r.parentNode.insertBefore(i,r),n.querySelector(":scope > .sub-menu")),a=("1"!==HFG_JS.sidebar_menu_no_duplicator&&r.prepend(o),n.querySelectorAll(":scope > .sub-menu, .sub-lv-0"));if(a.length)for(var u=0;u<a.length;u++)this.slideUp(a[u],0);"1"!==HFG_JS.sidebar_menu_no_duplicator&&(r=document.createElement("li"),o.parentNode.prepend(r),r.appendChild(o)),this.toggleMobileSubmenuEvents(i)}}},P.prototype.slideUp=function(e,t,n){"number"!=typeof t&&(t=0),e._slideDownTimeOut&&(clearTimeout(e._slideDownTimeOut),e._slideDownTimeOut=!1);var r=e.getBoundingClientRect();e.style.overflow="hidden",e.style.height=r.height+"px",e.style.transition="height "+t+"ms linear",setTimeout(function(){e.style.height="0px"},20),e._sideUpTimeOut=setTimeout(function(){e.style.transition="","function"==typeof n&&n.call(this)},t+20)},P.prototype.slideDown=function(e,t,n){"number"!=typeof t&&(t=0),e._sideUpTimeOut&&(clearTimeout(e._sideUpTimeOut),e._sideUpTimeOut=!1),e.style.height="initial",e.style.overflow="initial",e.style.transition="";var r=e.getBoundingClientRect();e.style.height="0px",e.style.overflow="hidden",e.style.transition="height "+t+"ms linear",setTimeout(function(){e.style.height=r.height+"px"},50),e._sideUpTimeOut=setTimeout(function(){e.style.height="",e.style.overflow="",e.style.transition="","function"==typeof n&&n.call(this)},t)},P.prototype.insertMenuOverlayClass=function(){var e=document.querySelector(".nav-menu-mobile");e&&(document.body.classList.contains("menu_sidebar_slide_overlay")?e.classList.add("nav-menu-overlay"):e.classList.remove("nav-menu-overlay"))},P.prototype.toggleClass=function(e,t){if(e instanceof NodeList)for(var n=0;n<e.length;n++)e[n].classList.contains(t)?e[n].classList.remove(t):e[n].classList.add(t);else(e instanceof Node||e instanceof Element)&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},P.prototype.addClass=function(e,t){if(e instanceof NodeList)for(var n=0;n<e.length;n++)e[n].classList.add(t);else(e instanceof Node||e instanceof Element)&&e.classList.add(t)},P.prototype.removeClass=function(e,t){var n=t.split(" ");if(e instanceof NodeList)for(var r=0;r<e.length;r++)for(var o=0;o<n.length;o++)e[r].classList.remove(n[o]);else if(e instanceof Node||e instanceof Element)for(var i=0;i<n.length;i++)e.classList.remove(n[i])},P.prototype.addEvent=function(e,t,n){if(e instanceof NodeList)for(var r=0;r<e.length;r++)e[r].addEventListener(t,n);else(e instanceof Node||e instanceof Element)&&e.addEventListener(t,n)},P.prototype.closeMenuSidebar=function(){document.body.classList.add("hiding-header-menu-sidebar"),document.body.classList.remove("is-menu-sidebar");var e,t=document.querySelectorAll(".menu-mobile-toggle, .menu-mobile-toggle .hamburger");this.removeClass(t,"is-active"),document.body.classList.contains("menu_sidebar_dropdown")?(this.removeClass(document.body,"hiding-header-menu-sidebar"),e=document.getElementById("header-menu-sidebar"),this.slideUp(e,300,function(){e.style.height=0,e.style.display="block"}.bind(this))):setTimeout(function(){this.removeClass(document.body,"hiding-header-menu-sidebar")}.bind(this),1e3)},P.prototype.toggleMenuSidebar=function(e){var t,n,r;void 0===e&&(e=!0),document.body.classList.remove("hiding-header-menu-sidebar"),e?this.toggleClass(document.body,"is-menu-sidebar"):document.body.classList.add("is-menu-sidebar"),document.body.classList.contains("menu_sidebar_dropdown")&&(t=document.querySelectorAll(".menu-mobile-toggle, .menu-mobile-toggle .hamburger"),e?this.toggleClass(t,"is-active"):this.addClass(t,"is-active"),document.body.classList.contains("is-menu-sidebar")?(n=document.getElementById("header-menu-sidebar"),r=document.getElementById("header-menu-sidebar-inner").getBoundingClientRect().height,this.slideDown(n,300,function(){n.style.height=r+"px"})):e&&this.closeMenuSidebar())},P.prototype.wrapper=function(e,t){void 0===t&&(t="div");t=document.createElement(t);return e.parentNode.replaceChild(t,e),t.appendChild(e),t},P.prototype.init=function(){this.checkTouchScreen(),this.insertMenuOverlayClass(),this.initMenuSidebar(),document.addEventListener("header_builder_panel_changed",function(){this.initMenuSidebar(),this.initMobileSubMenu(),this.insertMenuOverlayClass()}.bind(this)),window.addEventListener("resize",function(){this.removeClass(document.querySelectorAll(".header-search_icon-item"),"active")}.bind(this))},window.hfg_is_mobile=function(){return P.isMobile()},window.HFG=new P,window.HFG.isMobile()&&(j=.01*window.innerHeight,S=.01*window.innerWidth,document.documentElement.style.setProperty("--vh",j+"px"),document.documentElement.style.setProperty("--vw",S+"px"),window.addEventListener("resize",function(){var e=.01*window.innerHeight,t=.01*window.innerWidth;document.documentElement.style.setProperty("--vh",e+"px"),document.documentElement.style.setProperty("--vw",t+"px")}));var Cn,D,Nn,T=document.getElementById("site-navigation-main-desktop");if(T&&void 0!==(w=T.getElementsByTagName("ul")[0])){for(w.setAttribute("aria-expanded","false"),-1===w.className.indexOf("nav-menu")&&(w.className+=" nav-menu"),D=0,Nn=(Cn=w.getElementsByTagName("a")).length;D<Nn;D++)Cn[D].addEventListener("focus",kn,!0),Cn[D].addEventListener("blur",kn,!0);var Pn,Dn,Rn=T.querySelectorAll(".menu-item-has-children > a, .page_item_has_children > a");if("ontouchstart"in window)for(Pn=function(e){var t,n=this.parentNode;if(n.classList.contains("focus"))n.classList.remove("focus");else{for(e.preventDefault(),t=0;t<n.parentNode.children.length;++t)n!==n.parentNode.children[t]&&n.parentNode.children[t].classList.remove("focus");n.classList.add("focus")}},Dn=0;Dn<Rn.length;++Dn)Rn[Dn].addEventListener("touchstart",Pn,!1)}function kn(){for(var e=this;-1===e.className.indexOf("nav-menu");)"li"===e.tagName.toLowerCase()&&(-1!==e.className.indexOf("focus")?e.className=e.className.replace(" focus",""):e.className+=" focus"),e=e.parentElement}/(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(e=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(e.tagName)||(e.tabIndex=-1),e.focus())},!1)}();