(()=>{var Pi=Object.create;var fe=Object.defineProperty;var Mi=Object.getOwnPropertyDescriptor;var Hi=Object.getOwnPropertyNames;var zi=Object.getPrototypeOf,$i=Object.prototype.hasOwnProperty;var Ri=t=>fe(t,"__esModule",{value:!0});var _i=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Je=(t,e)=>{for(var n in e)fe(t,n,{get:e[n],enumerable:!0})},qi=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Hi(e))!$i.call(t,r)&&(n||r!=="default")&&fe(t,r,{get:()=>e[r],enumerable:!(o=Mi(e,r))||o.enumerable});return t},Di=(t,e)=>qi(Ri(fe(t!=null?Pi(zi(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var So=_i(()=>{Array.prototype.flat||Object.defineProperty(Array.prototype,"flat",{configurable:!0,value:function t(){var e=isNaN(arguments[0])?1:Number(arguments[0]);return e?Array.prototype.reduce.call(this,function(n,o){return Array.isArray(o)?n.push.apply(n,t.call(o,e-1)):n.push(o),n},[]):Array.prototype.slice.call(this)},writable:!0}),Array.prototype.flatMap||Object.defineProperty(Array.prototype,"flatMap",{configurable:!0,value:function(t){return Array.prototype.map.apply(this,arguments).flat()},writable:!0})});var Ln={};Je(Ln,{attach:()=>b,debug:()=>Jt,defineRivetArchetype:()=>st,drive:()=>Kt,registerAction:()=>yt,registerBehavior:()=>vt,registerEvent:()=>F,registerInnate:()=>Zt,registerMacro:()=>Cn,registerObserver:()=>et,store:()=>J,util:()=>S});var S={};Je(S,{NON_PASSIVE_ARGS:()=>Nt,PASSIVE_ARGS:()=>H,SCROLLBAR_ACTIVE_VAR_NAME:()=>jt,SCROLLBAR_ACTIVE_VAR_STRING:()=>gn,SCROLLBAR_VAR_NAME:()=>hn,SCROLLBAR_VAR_STRING:()=>Ys,absVector:()=>Ji,addClass:()=>hs,addVectors:()=>ji,animateToElement:()=>Qs,animateTopOffset:()=>js,appendHtmlString:()=>ws,balanceFromDifference:()=>ns,ceil:()=>Wi,clamp:()=>Dt,clampVector:()=>Yi,debounce:()=>bt,defer:()=>os,dispatch:()=>Ms,distanceInRange:()=>Ke,divideVectors:()=>ts,doOnce:()=>Wt,elementAttributes:()=>Tt,elementIndex:()=>vs,elementIsVisibleInViewport:()=>Po,elementMeta:()=>cn,ensureNumber:()=>X,ensureString:()=>qt,evaluateCondition:()=>sa,expandElementValue:()=>ht,farthest:()=>bs,floor:()=>Ni,fontCompress:()=>Bs,forceOpaque:()=>Xs,getCachedAttribute:()=>At,getCachedJsonAttribute:()=>zs,getDurations:()=>sn,getEasing:()=>pt,getJsonAttrContent:()=>nn,getOuterHeight:()=>Ts,getPrecisionLength:()=>Vi,getPrecisionLengthWithCommas:()=>Gi,getStateValue:()=>$o,getTransitionDuration:()=>Cs,getTransitionTimingMS:()=>As,hasClass:()=>Ft,intersect:()=>Us,isMobile:()=>pn,isScalar:()=>Bi,lerp:()=>es,listener:()=>tt,listenerPassive:()=>G,lockMotion:()=>Ho,makeAlternatingSynchronizer:()=>Es,makeDirectionalEasing:()=>ms,makeElementWeakMap:()=>Gt,makeFindClosest:()=>rn,makeGetComputedFloatValues:()=>Ds,makeGetComputedStyle:()=>qs,makeGetComputedStyles:()=>dn,makeMotionLockedUpdate:()=>zo,makeRafLoop:()=>ge,makeSortByKey:()=>Fi,makeStateSynchronizer:()=>wo,makeTreeWalker:()=>me,memoize:()=>tn,multiplyVectors:()=>Xi,normalizeCondition:()=>wn,normalizeTeardown:()=>Vt,offsetFromTop:()=>he,onLoad:()=>U,onPageVisibilityChange:()=>an,onPercentScrolled:()=>Rs,onResize:()=>Ut,onResizeOrScan:()=>ve,onScan:()=>ye,onScanLazy:()=>_s,onScroll:()=>ln,onScrollOrResize:()=>Eo,onScrollRaw:()=>un,onViewportChange:()=>Co,once:()=>Ao,oncePassive:()=>St,parseHTML:()=>on,parseTime:()=>mt,removeClass:()=>gs,rivetDispatch:()=>Ps,rivetListener:()=>Is,round:()=>po,roundVector:()=>Zi,runAnimation:()=>ta,scrollOffset:()=>Ss,scrollingDisable:()=>Js,scrollingEnable:()=>Zs,siblings:()=>vo,subtractVectors:()=>Ki,teardown:()=>Q,throttle:()=>Xe,toggleClass:()=>ys,transitionEnd:()=>Hs,triggerScan:()=>$s,tween:()=>Os,unwrapHtmlTemplate:()=>xs,updateStateKey:()=>ra,vectorsEq:()=>Qi,watchElementIsVisible:()=>Ks,waypoint:()=>Ws,wrapNumber:()=>Ze,wrapVector:()=>Ui});function X(t){if(typeof t=="function")return X(t());if(typeof t=="number")return t;let e=Number.parseFloat(t);return Number.isNaN(e)?0:e}var qt=t=>typeof t=="function"?qt(t()):typeof t=="string"?t:"";function Bi(t){var e=typeof t;return e==="string"||e==="number"||e==="boolean"||e==="symbol"||t==null||t instanceof Symbol||t instanceof String||t instanceof Number||t instanceof Boolean}var Fi=t=>(e,n)=>e[t]-n[t];var Wi=(t,e=100)=>Math.ceil(t*e)/e,Ni=(t,e=100)=>Math.floor(t*e)/e,po=(t,e=100)=>Math.round((t+Number.EPSILON)*e)/e,Vi=t=>{var e,n;return(n=(e=t.toString().split(/\./)[1])==null?void 0:e.length)!=null?n:0},Gi=t=>{var e,n;return(n=(e=t.toString().split(/,/)[1])==null?void 0:e.length)!=null?n:0},Ze=(t,e)=>(e+t)%e,Ui=([t,e],[n,o])=>[Ze(t,n),Ze([e,o])],Dt=(t,e,n)=>Math.min(Math.max(t,e),n),Yi=([t,e],n,o)=>[Dt(t,n,o),Dt(e,n,o)],ji=([t,e],[n,o])=>[t+n,e+o],Qi=([t,e],[n,o])=>t===n&&e===o,Ji=t=>t.map(Math.abs),Zi=(t,e)=>t.map(n=>po(n,e)),Ki=([t,e],[n,o])=>[t-n,e-o],Xi=([t,e],[n,o])=>[t*n,e*o],ts=([t,e],[n,o])=>[t/n,e/o],Ke=(t,e,n)=>(t-e+n)%n,es=(t,e,n)=>t+n*(e-t),ns=(t,e,n)=>{let o=Ke(t,e,n),r=Ke(e,t,n);return o===r?0:o>r?-1:1};function os(t){return setTimeout(t,0)}function Xe(t,e,n={}){var o=!0,r=!0;return o="leading"in n?!!n.leading:o,r="trailing"in n?!!n.trailing:r,bt(t,e,{leading:o,maxWait:e,trailing:r})}function bt(t,e=0,n={}){var o,r,i,s,a,c,u=0,p=!1,f=!1,d=!0;p=!!n.leading,f="maxWait"in n,i=f?Math.max(n.maxWait||0,e):i,d="trailing"in n?!!n.trailing:d;function l(x){var T=o,E=r;return o=r=void 0,u=x,s=t.apply(E,T),s}function m(x){return u=x,a=setTimeout(g,e),p?l(x):s}function h(x){var T=x-c,E=x-u,q=e-T;return f?Math.min(q,i-E):q}function y(x){var T=x-c,E=x-u;return c===void 0||T>=e||T<0||f&&E>=i}function g(){var x=window.Date.now();if(y(x))return v(x);a=setTimeout(g,h(x))}function v(x){return a=void 0,d&&o?l(x):(o=r=void 0,s)}function w(){a!==void 0&&clearTimeout(a),u=0,o=c=r=a=void 0}function C(){return a===void 0?s:v(window.Date.now())}function L(){var x=window.Date.now(),T=y(x);if(o=arguments,r=this,c=x,T){if(a===void 0)return m(c),()=>void w();if(f)return clearTimeout(a),a=setTimeout(g,e),l(c),()=>void w()}return a===void 0&&(a=setTimeout(g,e)),()=>void w()}return L.cancel=w,L.flush=C,L}function tn(t,e){let n=new Map;return function(...o){let r=e?e.apply(this,o):o[0];if(n.has(r))return n.get(r);let i=t.apply(this,o);return n.set(r,i),i}}var rs=4,is=.001,ss=1e-7,as=10,Bt=11,de=1/(Bt-1),cs=typeof Float32Array=="function";function mo(t,e){return 1-3*e+3*t}function ho(t,e){return 3*e-6*t}function go(t){return 3*t}function pe(t,e,n){return((mo(e,n)*t+ho(e,n))*t+go(e))*t}function yo(t,e,n){return 3*mo(e,n)*t*t+2*ho(e,n)*t+go(e)}function ls(t,e,n,o,r){var i,s,a=0;do s=e+(n-e)/2,i=pe(s,o,r)-t,i>0?n=s:e=s;while(Math.abs(i)>ss&&++a=is?us(a,d,t,n):l===0?d:ls(a,c,c+de,t,n)}return function(c){return c===0||c===1?c:pe(s(c),e,o)}}var ds=t=>{switch(t){case"linear":return"cubic-bezier(0.0, 0.0, 1.0, 1.0)";case"ease-in":return"cubic-bezier(0.42, 0, 1.0, 1.0)";case"ease-out":return"cubic-bezier(0, 0, 0.58, 1.0)";case"ease-in-out":return"cubic-bezier(0.42, 0, 0.58, 1.0)";case"ease":default:return"cubic-bezier(0.25, 0.1, 0.25, 1.0)"}},O=tn(t=>{let e=ds(t);try{let[,n]=e.match(/cubic-bezier\((.*)\)/);return en(...n.split(",").map(o=>Number(o.trim())))}catch{console.warn("unable to parse easing function",e)}return O("ease")}),ps={easeInQuad:O("cubic-bezier(0.550, 0.085, 0.680, 0.530)"),easeInCubic:O("cubic-bezier(0.550, 0.055, 0.675, 0.190)"),easeInQuart:O("cubic-bezier(0.895, 0.030, 0.685, 0.220)"),easeInQuint:O("cubic-bezier(0.755, 0.050, 0.855, 0.060)"),easeInSine:O("cubic-bezier(0.470, 0.000, 0.745, 0.715)"),easeInExpo:O("cubic-bezier(0.950, 0.050, 0.795, 0.035)"),easeInCirc:O("cubic-bezier(0.600, 0.040, 0.980, 0.335)"),easeInBack:O("cubic-bezier(0.600, -0.280, 0.735, 0.045)"),easeOutQuad:O("cubic-bezier(0.250, 0.460, 0.450, 0.940)"),easeOutCubic:O("cubic-bezier(0.215, 0.610, 0.355, 1.000)"),easeOutQuart:O("cubic-bezier(0.165, 0.840, 0.440, 1.000)"),easeOutQuint:O("cubic-bezier(0.230, 1.000, 0.320, 1.000)"),easeOutSine:O("cubic-bezier(0.390, 0.575, 0.565, 1.000)"),easeOutExpo:O("cubic-bezier(0.190, 1.000, 0.220, 1.000)"),easeOutCirc:O("cubic-bezier(0.075, 0.820, 0.165, 1.000)"),easeOutBack:O("cubic-bezier(0.175, 0.885, 0.320, 1.275)"),easeInOutQuad:O("cubic-bezier(0.455, 0.030, 0.515, 0.955)"),easeInOutCubic:O("cubic-bezier(0.645, 0.045, 0.355, 1.000)"),easeInOutQuart:O("cubic-bezier(0.770, 0.000, 0.175, 1.000)"),easeInOutQuint:O("cubic-bezier(0.860, 0.000, 0.070, 1.000)"),easeInOutSine:O("cubic-bezier(0.445, 0.050, 0.550, 0.950)"),easeInOutExpo:O("cubic-bezier(1.000, 0.000, 0.000, 1.000)"),easeInOutCirc:O("cubic-bezier(0.785, 0.135, 0.150, 0.860)"),easeInOutBack:O("cubic-bezier(0.680, -0.550, 0.265, 1.550)"),materialStand:O("cubic-bezier(0.400, 0.000, 0.200, 1.000)"),materialDecel:O("cubic-bezier(0.000, 0.000, 0.200, 1.000)"),materialAccel:O("cubic-bezier(0.400, 0.000, 1.000, 1.000)"),materialSharp:O("cubic-bezier(0.400, 0.000, 0.600, 1.000)")};function pt(t){return ps[t]||O(t)}var ms=t=>{let e=pt(t);return n=>{let o=(-1*n+1)/2,r=Math.min(1,Math.max(0,o));return(e(r)-.5)*2}};var Ft=(t,e)=>{var n;return(n=t==null?void 0:t.classList)==null?void 0:n.contains(e)},hs=(t,e)=>{var n;return(n=t==null?void 0:t.classList)==null?void 0:n.add(e)},gs=(t,e)=>{var n;return(n=t==null?void 0:t.classList)==null?void 0:n.remove(e)},ys=(t,e,n)=>{var o;return(o=t==null?void 0:t.classList)==null?void 0:o.toggle(e,n)};function vs(t){if(!t)return-1;for(var e=0;t=t.previousElementSibling;)e++;return e}function nn(t,e){let n=t.getAttribute(e);if(n===null)return{};if(typeof n=="string")try{return JSON.parse(n)}catch{try{return JSON.parse(n.replace(/"/g,'"'))}catch{}}return n}var on=t=>{let e=document.implementation.createHTMLDocument("");return e.body.innerHTML=t,e.body.children},ws=(t,e)=>{Array.from(on(e)).forEach(n=>{t.append(n)})},xs=t=>{Array.from(on(t.innerHTML)).forEach(e=>{t.insertAdjacentElement("afterend",e)}),t.remove()};function bs(t,e){let n=t,o;for(;n&&n.parentElement;)n=n.parentElement.closest(e),n&&(o=n);return o}var vo=t=>t&&t.parentElement?Array.from(t.parentElement.children).filter(e=>e!==t):[],me=(t,e)=>n=>{let o=new Set,r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:()=>NodeFilter.FILTER_ACCEPT});for(;r.nextNode();)if(t(r.currentNode)){if(e)return r.currentNode;o.add(r.currentNode)}return e?null:Array.from(o)},he=t=>t?t.offsetParent?t.offsetTop+he(t.offsetParent):t.offsetTop:0,Ss=t=>{let e=t.getBoundingClientRect(),{top:n,left:o,height:r}=e;return{top:n+window.scrollY,bottom:n+r+window.scrollY,left:o+window.scrollX}},Ts=t=>{var r;if(!t)return 0;let e=Math.max(t.scrollHeight,t.offsetHeight),n=(r=t.getAttribute("style"))!=null?r:"";t.style.display="block",t.style.position="absolute",t.style.visibility="hidden";let o=Math.max(0,e,t.scrollHeight,t.offsetHeight);return t.setAttribute("style",n),o},rn=t=>{let e=me(t,!0),n=r=>{let i=r;for(;i;){if(t(i))return i;i=i.parentElement}},o=r=>{let i=r;for(;i;){let s;if(vo(i).find(a=>(s=t(a)?a:e(a),s)),s)return s;i=i.parentElement}};return r=>n(r)||o(r)||null};function As(t){if(!t)return 0;let n=window.getComputedStyle(t)["transition-duration"]||"";return parseFloat(n.replace("s",""))*1e3}var wo=(t,{pending:e=()=>{},delay:n=10,initialState:o=null}={})=>{let r=o,i=o,s=[],a=!1,c=()=>{r!==i&&(a=!0,e(!0),r=i,t(r,(...p)=>{a=!1,e(!1),s=p,c()},...s))},u=bt(p=>{i=p,a||c()},n);return u.reset=()=>{r=!1,i=!1,s=[]},u},Es=(t,e,n)=>wo((o,r,i)=>{o&&t(()=>void r(e)),i&&i(r)},{delay:n,initialState:!1}),Wt=t=>{let e=!1;return(...n)=>{if(!e)return e=!0,t(...n)}},mt=(t,e=0)=>{if(typeof t=="number")return t;let n=typeof t=="string"?t:"",[,o,r=""]=n.match(/(\d*.?\d+)(\w*)/)||[],i=parseFloat(o);return Number.isNaN(i)?e:r.toLowerCase()==="s"?i*1e3:i};function Cs(t,e){return mt(t&&window.getComputedStyle(t).getPropertyValue("transition-duration"),e)}function sn(t){let e=window.getComputedStyle(t);e.getPropertyValue("transition-duration");let n=mt(e.getPropertyValue("transition-duration"),0),o=mt(e.getPropertyValue("transition-delay"),0),r=mt(e.getPropertyValue("animation-duration"),0),i=mt(e.getPropertyValue("animation-delay"),0);return{transitionDuration:n,transitionDelay:o,animationDuration:r,animationDelay:i,transitionTime:n+o,animationTime:r+i}}var ge=t=>{let e,n,o=r=>{typeof e=="undefined"&&(e=r);let i=r-e;t(i,r)!==!1&&(n=requestAnimationFrame(o))};return n=requestAnimationFrame(o),()=>void cancelAnimationFrame(n)},Ls=({setup:t=()=>{},update:e=()=>{},complete:n=()=>{},cancel:o=()=>{},duration:r,easing:i})=>{let s=mt(r,500),a=pt(i);t();let c=ge(u=>{if(u{o(),c()}},ks=(t,e,n)=>e===n?n:n>e?e+(n-e)*t:e+(e-n)*(t*-1),xo=t=>Object.keys(t).reduce((e,n)=>(e[n]=parseFloat(t[n]),e),{}),bo=(t,{update:e,interpolate:n=ks,...o})=>{let r=xo(t);return(i={})=>{let s=xo(i);return Ls({update:a=>{e(Object.keys(s).reduce((c,u)=>(c[u]=n(a,r[u],s[u]),c),{}))},...o})}},Os=(t,e)=>{let n=typeof t=="object"?bo(t,e):bo({from:t},{...e,update:({from:o})=>e.update(o)});return o=>n(typeof o=="object"?o:{from:o})};Promise.resolve().then(()=>Di(So()));var To="rvt",H={passive:!0},Nt={passive:!1};function Is(t,e,n){return tt(t,`${To}-${e}`,n)}function Ps(t,e){t.dispatchEvent(new CustomEvent(`${To}-${e}`))}function Ms(t,e,n={},o=!0){t.dispatchEvent(new CustomEvent(e),{bubbles:o,detail:n})}function tt(t,e,n,o={}){return t?(typeof o.passive=="undefined"&&(o.passive=!1),t.addEventListener(e,n,o),()=>void t.removeEventListener(e,n,o)):()=>{}}function G(t,e,n){return tt(t,e,n,H)}function U(t){let e=()=>void t();return document.readyState==="complete"?(e(),()=>{}):G(document,"readystatechange",function(){document.readyState==="complete"&&setTimeout(e,0)})}function Ao(t,e,n,o=Nt){let r=function(){t.removeEventListener(e,r),n()};return t.addEventListener(e,r,o),()=>void t.removeEventListener(e,r)}function St(t,e,n){return Ao(t,e,n,H)}var Vt=t=>(Array.isArray(t)?t.map(Vt):[t]).flat().filter(e=>typeof e=="function"),Q=t=>{let e=Vt(t);return()=>e.forEach(n=>n())};function Hs(t,e){let o=window.getComputedStyle(t)["transition-duration"];if(o=o?parseFloat(o.replace("s","")):0,o===0){e();return}let r=Wt(e),i=setTimeout(function(){r()},o*1e3+500),s=St(t,"transitionend",r);return function(){clearTimeout(i),s()}}var an=(t,e)=>(e&&t(document.visibilityState==="visible"),Q([tt(window,"pagehide",()=>{t(!1)}),tt(window.document,"visibilitychange",()=>{t(document.visibilityState==="visible")})]));function D(t,e){let n,o=null;return function(r){if(n){o=r;return}n=setTimeout(function(){t(o),n=null},e)}}var Gt=(t={})=>{let e,n=()=>{e=new WeakMap},o=c=>e.has(c),r=c=>e.delete(c),i=c=>e.has(c)?e.get(c):t,s=(c,u)=>void e.set(c,u),a=(c,u)=>void s(c,u(i(c)));return n(),{get:i,del:r,set:s,has:o,update:a,reset:n,cache:()=>e}},cn=Gt(),Tt=Gt();function At(t,e){return Tt.has(t)||Tt.set(t,new Map),Tt.get(t).has(e)||Tt.get(t).set(e,nn(t,e)),Tt.get(t).get(e)}function zs(t,e){if(!t)return{};let n=At(t,e);return typeof n=="object"?n:{}}var $s=()=>window.dispatchEvent(new CustomEvent("rvt-scan")),ye=t=>tt(window,"rvt-scan",()=>t()),Ut=(t,e=!1)=>{e&&t();let n=D(t,100);return Q([G(window,"resize",n,H),tt(screen.orientation,"change",n)])},ln=(t,e=!1)=>{e&&t();let n=D(t,40);return G(window,"scroll",n)},un=(t,e=!1)=>(e&&t(),G(window,"scroll",t)),Eo=(t,e=!1)=>Q([ln(t,e),ve(t,e)]),ve=(t,e)=>Q([ye(t),Ut(t,e)]),Co=(t,e)=>Q([ye(t),U(t),an(t,!1),Ut(t,e)]),Rs=(t,e,n=!1)=>{let o,r,i=Eo(()=>{let s=document.body.offsetHeight,c=1-(s-(window.scrollY+window.innerHeight))/s>=t;c!==r&&(e(c),c&&n&&(o=!0,i()),r=c)},!0);return()=>{o||i()}},_s=(t,{throttle:e=50}={})=>{let n,r=Xe(()=>{n=requestAnimationFrame(()=>void t())},e,{trailing:!0}),i=bt(r,450);return[U(i),Ut(i),ye(r),()=>cancelAnimationFrame(n)]},fn,Lo;Co(()=>{fn=new WeakMap,Lo=new WeakMap},!0);ln(()=>{Lo=new WeakMap},!0);var ko=t=>{let e=fn.get(t);return e||(e=new WeakMap,fn.set(t,e)),e};function dn(t,e){let n=function(o){let r=ko(n).get(o);if(!r){let i=getComputedStyle(o);r=t.reduce((s,a)=>(s[a]=typeof e=="function"?e(i[a],a):i[a],s),{}),ko(n).set(o,r)}return r};return n}function qs(t){let e=dn([t]);return n=>e(n)[t]}function Ds(t){return dn(t,e=>parseFloat(e))}function Bs(t,{c:e=1,min:n=Number.NEGATIVE_INFINITY,max:o=Number.POSITIVE_INFINITY}){let r=X(n),i=X(o);return Ut(()=>{let s=Dt(parseFloat(getComputedStyle(t,null).width)/(e*10),r,i);t.style.setProperty("font-size",`${s}px`)},!0)}var Fs="ontouchstart"in document.documentElement;function pn(){return window.innerWidth<=978.98&&Fs}var Oo=0,Et={};function A(t){if(!t)throw new Error("No options passed to Waypoint constructor");if(!t.element)throw new Error("No element option passed to Waypoint constructor");if(!t.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+Oo,this.options=A.Adapter.extend({},A.defaults,t),this.element=this.options.element,this.adapter=new A.Adapter(this.element),this.callback=t.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=A.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=A.Context.findOrCreateByElement(this.options.context),A.offsetAliases[this.options.offset]&&(this.options.offset=A.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),Et[this.key]=this,Oo+=1}A.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)};A.prototype.trigger=function(t){!this.enabled||this.callback&&this.callback.apply(this,t)};A.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete Et[this.key]};A.prototype.disable=function(){return this.enabled=!1,this};A.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this};A.prototype.next=function(){return this.group.next(this)};A.prototype.previous=function(){return this.group.previous(this)};A.invokeAll=function(t){var e=[];for(var n in Et)e.push(Et[n]);for(var o=0,r=e.length;oa.oldScroll,u=c?a.forward:a.backward;for(var p in this.waypoints[s]){var f=this.waypoints[s][p];if(f.triggerPoint!==null){var d=a.oldScroll=f.triggerPoint,m=d&&l,h=!d&&!l;(m||h)&&(f.queueTrigger(u),r[f.group.id]=f.group)}}}for(var y in r)r[y].flushTriggers();this.oldScroll={x:i.horizontal.newScroll,y:i.vertical.newScroll}},o.prototype.innerHeight=function(){return this.element==this.element.window?A.viewportHeight():this.adapter.innerHeight()},o.prototype.remove=function(r){delete this.waypoints[r.axis][r.key],this.checkEmpty()},o.prototype.innerWidth=function(){return this.element==this.element.window?A.viewportWidth():this.adapter.innerWidth()},o.prototype.destroy=function(){var r=[];for(var i in this.waypoints)for(var s in this.waypoints[i])r.push(this.waypoints[i][s]);for(var a=0,c=r.length;a-1&&(d=Math.ceil(u.contextDimension*d/100))),y=u.contextScroll-u.contextOffset,f.triggerPoint=Math.floor(m+y-d),g=l=u.oldScroll,w=g&&v,C=!g&&!v,!h&&w?(f.queueTrigger(u.backward),s[f.group.id]=f.group):(!h&&C||h&&u.oldScroll>=f.triggerPoint)&&(f.queueTrigger(u.forward),s[f.group.id]=f.group)}}return requestAnimationFrame(function(){for(var L in s)s[L].flushTriggers()}),this},o.findOrCreateByElement=function(r){return o.findByElement(r)||new o(r)},o.refreshAll=function(){for(var r in e)e[r].refresh()},o.findByElement=function(r){return e[r.waypointContextKey]},window.onload=function(){n&&n(),o.refreshAll()},A.Context=o})();(function(){"use strict";function t(r,i){return r.triggerPoint-i.triggerPoint}function e(r,i){return i.triggerPoint-r.triggerPoint}var n={vertical:{},horizontal:{}};function o(r){this.name=r.name,this.axis=r.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),n[this.axis][this.name]=this}o.prototype.add=function(r){this.waypoints.push(r)},o.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},o.prototype.flushTriggers=function(){for(var r in this.triggerQueues){var i=this.triggerQueues[r],s=r==="up"||r==="left";i.sort(s?e:t);for(var a=0,c=i.length;a-1&&this.waypoints.splice(i,1)},o.prototype.first=function(){return this.waypoints[0]},o.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},o.findOrCreate=function(r){return n[r.axis][r.name]||new o(r)},A.Group=o})();(function(){"use strict";function t(o){return o===o.window}function e(o){return t(o)?o:o.defaultView}function n(o){this.element=o,this.handlers={}}n.prototype.innerHeight=function(){var o=t(this.element);return o?this.element.innerHeight:this.element.clientHeight},n.prototype.innerWidth=function(){var o=t(this.element);return o?this.element.innerWidth:this.element.clientWidth},n.prototype.off=function(o,r){function i(d,l,m){for(var h=0,y=l.length-1;h{e(...s),o&&i()},offset:n}),i=()=>r&&void r.destroy();return i}var Yt=new Map,Ns=({threshold:t=.5,top:e="0px",bottom:n="0px"}={})=>{let o=Number.parseFloat(t);return{key:`${e}:${n}:${o}`,options:{root:null,rootMargin:`${e} 0px ${n} 0px`,_threshold:o}}},Vs=(t,e)=>new IntersectionObserver((n,o)=>{let{subscribers:r}=Yt.get(t);n.forEach(i=>{let s=r.get(i.target);if(s)for(let a of s.values())a(i)})},e),Gs=t=>{let{key:e,options:n}=Ns(t);return Yt.has(e)||Yt.set(e,{observer:Vs(e,n),subscribers:new Map,key:e}),Yt.get(e)},Us=(t,e,n)=>{if(typeof window.IntersectionObserver=="undefined")return function(){};let{observer:o,subscribers:r,key:i}=Gs(n);return r.has(t)||(r.set(t,new Set),o.observe(t)),r.get(t).add(e),()=>{r.get(t).delete(e),r.get(t).size<=0&&(r.delete(t),o.unobserve(t)),r.size<=0&&(o.disconnect(),Yt.delete(i))}};var mn=0,hn="--x-body-scroll-bar-size",Ys=`var(${hn}, 0)`,jt="--x-body-scroll-active-bar-size",gn=`var(${jt}, 0)`,js=(t=0,e=850,n=null,o=()=>{},r=window)=>{let i=X(typeof t=="function"?t(0):t),s=pt(n),a=X(e),c=r.scrollY||document.documentElement.scrollTop;return Mo(r,c,s,a,o,i)},Qs=(t,e=0,n=850,o=null,r=()=>{},i=window)=>{let s=pt(o),a=X(n),c=i.scrollY||document.documentElement.scrollTop;return Mo(i,c,s,a,r,function(){return he(t)+X(typeof e=="function"?e(0):e)})},we="auto",xe=!1,be=t=>{t.target&&t.target.closest&&(t.target.closest("[data-x-scrollbar]")||t.target.closest(".x-off-canvas")||t.target.closest(".x-modal"))||(t.preventDefault(),t.stopPropagation())},Js=()=>{if(xe)return;xe=!0;let{adminBarOffset:t}=window.csGlobal;we=document.body.style.touchAction==="none"?we:document.body.style.touchAction,document.body.style.touchAction="none";let e=window.scrollY-t();document.body.style.top=-e+"px",document.body.classList.add("x-body-scroll-disabled"),window.addEventListener("wheel",be,Nt),window.addEventListener("scroll",be,Nt),Se(jt,mn+"px")},Zs=()=>{if(!xe)return;xe=!1;let{adminBarOffset:t}=window.csGlobal;document.body.style.touchAction=we==="none"?"auto":we,document.body.classList.remove("x-body-scroll-disabled");let e=-(parseFloat(document.body.style.top)-t());document.body.style.top="",window.scrollTo({top:e}),setTimeout(function(){window.dispatchEvent(new CustomEvent("resize"))},250),window.removeEventListener("wheel",be),window.removeEventListener("scroll",be),Se(jt,"0px")},Ks=(t,e=0,n=0,o)=>{let r=D(function(){o(Po(t,e,n))},25);return window.addEventListener("scroll",r,H),window.addEventListener("resize",r,H),()=>{window.removeEventListener("scroll",r),window.removeEventListener("resize",r)}},Po=(t,e=0,n=0)=>{e===0&&(e=.01),n===0&&(n=.01);let{top:o,left:r,bottom:i,right:s}=t.getBoundingClientRect(),{innerHeight:a,innerWidth:c}=window,u=e?a*(1-parseFloat(e)/100):0,p=n?a*(parseFloat(n)/100):a;return o<=u&&r>=0&&i>=p&&s<=c};U(function(){mn=window.innerWidth-document.body.offsetWidth,Se(hn,mn+"px"),Se(jt,"0px")});function Se(t,e){document.querySelector(":root").style.setProperty(t,e)}function Mo(t,e,n,o,r,i=null){let s=t===window;return ge(a=>{let c=typeof i=="function"?i():i;if(a{t.offsetHeight,t.style.removeProperty(e?"transition-property":"transition"),t.style.removeProperty("animation")}}var zo=(t,e)=>(n,{after:o}={})=>{t(n);let r=Ho(n);return()=>{e(n),r(),typeof o=="function"&&o()}},Xs=zo(t=>t.style.setProperty("opacity",1,"important"),t=>t.style.removeProperty("opacity")),ta=(t,{animation:e,className:n,timeout:o,remove:r},i=()=>{})=>{if(!e)return;n&&!t.classList.contains(n)&&t.classList.add(n),t.style.removeProperty("animation-duration"),t.style.setProperty("animation-name",e);let s=o?sn(t).animationTime:0;t.csAnimationEndingTimeout&&clearTimeout(t.csAnimationEndingTimeout);let a=Wt(()=>{r&&(t.csAnimationEndingTimeout=setTimeout(function(){t.style.animationName===e&&t.style.setProperty("animation-name","")},250)),i()});St(t,"animationend",a),o&&setTimeout(a,s)};function ea(t,e,n){e=typeof e=="number"?Ct(e.toString()):typeof e=="string"?Ct(e):e;let o=(r,i,s,a)=>{let c,u=i[a];if(i.length>a){if(Array.isArray(r))try{u=yn(u,r),c=r.slice()}catch(p){if(r.length===0)c={};else throw new Error(p)}else c=Object.assign({},r);return c[u]=o(r[u]!==void 0?r[u]:{},i,s,a+1),c}return typeof s=="function"?s(r):s};return o(t,e,n,0)}function na(t,e,n){e=typeof e=="number"?Ct(e.toString()):typeof e=="string"?Ct(e):e;for(var o=0;o{let s,a=r[i];return o===null||typeof o!="object"||!Array.isArray(o)&&o[a]===void 0?o:r.length-1>i?(Array.isArray(o)?(a=yn(a,o),s=o.slice()):s=Object.assign({},o),s[a]=n(o[a],r,i+1),s):(Array.isArray(o)?(a=yn(a,o),s=[].concat(o.slice(0,a),o.slice(a+1))):(s=Object.assign({},o),delete s[a]),s)};return n(t,e,0)}function yn(t,e){if(t==="$end"&&(t=Math.max(e.length-1,0)),!/^\+?\d+$/.test(t))throw new Error(`Array index '${t}' has to be an integer`);return parseInt(t)}function Ct(t){return t.split(".").reduce((e,n,o,r)=>{let i=o>0&&r[o-1];if(i&&/(?:^|[^\\])\\$/.test(i)){let s=e.pop();e.push(s.slice(0,-1)+"."+n)}else e.push(n);return e},[])}var vn={get:na,set:ea,deleteProperty:oa};var $o=(t,e)=>e&&typeof t=="object"?vn.get(t,qt(e)):t,ra=(t,e,n)=>e&&typeof t=="object"?{...t,[qt(e)]:n}:n;function ht(t,e){if(Array.isArray(e))return e.map(i=>ht(t,i));if(typeof e=="function")return ht(t,e(t));if(typeof e=="object")return Object.keys(e).reduce((i,s)=>(i[s]=ht(t,e[s]),i),{});if(typeof e!="string")return e;let n,o=()=>(n||(n=window.getComputedStyle(t)),n),r=cn.get(t);return e.replace(/var\(([\w-]+)(?:\s*,\s*(.+?))?\)/g,(i,s,a="")=>o().getPropertyValue(s)||a).replace(/attr\(([\w-]+)(?:\s*,\s*(.+?))?\)/g,(i,s,a="")=>t.getAttribute(s)||a).replace(/meta\(([.\w-]+)(?:\s*,\s*(.+?))?\)/g,(i,s,a="")=>{let c=vn.get(r,s);return typeof c=="undefined"?a:c})}var ia=(t,e,n)=>{let o=t,r=e;return n==="IN"?o.includes(r):n==="NOT IN"?!o.includes(r):((typeof o=="boolean"||typeof r=="boolean")&&(o=!!o,r=!!r),n===">"||n==="<"?o>r:n===">="||n==="<="?o>=r:n==="="||n==="=="?o==r:n==="!="?o!=r:n=="==="?o===r:n=="!=="?o!==r:!0)},wn=(t,e)=>{if(typeof t=="undefined")return null;if(!Array.isArray(t))return wn([t,"==",e]);let[n,o,r]=t;return t.length<=0?null:[n,o,r||e]},sa=(t,e,n,o)=>{try{let r=wn(e,o);if(!r)return!0;let[i,s,a]=r;return ia($o(n,ht(t,a)),ht(t,i),ht(t,s))}catch(r){console.warn("Failed to check condition. Make sure your state contains the key you are checking",r,{el:t,condition:e,state:n})}return!1};var Qt=new Map,xn=new Map,Te=(...t)=>void console.warn(...t),st=(t,e)=>{if(Qt.has(t))return Te("Rivet archetypes can not be redefined");xn.set(t,typeof e=="function"?e:(n,...o)=>n(...o))},gt=(t,e,n,o={})=>{if(Qt.has(e))return Te(`Rivet ${e} already registered`);if(!xn.has(t))return Te("Rivet archetype unknown",t);Qt.set(e,{archetype:t,handler:n,config:o})};function Ae({el:t,handle:e,handles:n,defaultOption:o,options:r}){var l;let i=n||[e],s=i.find(({type:m})=>m&&Qt.has(m));if(!s)return Te(`Unknown rivet type: ${(l=i[0])==null?void 0:l.type}`,t);let{handler:a,config:{defaultOption:c,priority:u=0,...p}={},archetype:f}=Qt.get(s.type),d=c&&o?{[c]:o}:{};return[u,()=>xn.get(f)(a,t,{...d,...r||{}},s.name,p)]}function Ee(t){return t.sort(([e],[n])=>e-n)}var bn="data-rvt";function Ro(t=window.document.body){return me(Sn)(t)}function Sn(t){if(t.hasAttributes()){let e=t.attributes;for(let n=e.length-1;n>=0;n--)if(e[n].name.indexOf(bn)===0)return!0}return!1}function aa(t,e){let n=At(t,e);return typeof n!="object"&&typeof n!="undefined"&&n!==""?{defaultOption:n,options:{}}:{options:n}}function ca(t){let e=new Set;for(let n=t.attributes.length-1;n>=0;n--){let o=t.attributes[n].name;if(o.indexOf(bn)!==0)continue;let r=o.substr(bn.length+1),i=r.split("-");e.add({el:t,handles:[{type:r,name:"default"},{name:i.pop(),type:i.join("-")}],...aa(t,o)})}return e}function Tn(t){return Q(Ee(Array.from(ca(t)).map(e=>Ae(e)).filter(e=>!!e)).map(([,e])=>e()))}function _o(t,e){try{return t&&t.matches&&t.matches(e)}catch{}return!1}function Ce(t){try{return window.document.querySelectorAll(t)}catch(e){console.warn(e)}return[]}var qo=!1,Do=null,Bo,An=new Set,En=new Set,Le=new WeakMap,Lt=new WeakMap;function b(t,e,n=0){if(typeof t!="string"){console.warn("Rivet selector must be a string",t),console.trace();return}if(typeof e!="function"){console.warn("Rivet handler must be a function",e),console.trace();return}let o={handler:e,selector:t,priority:n};An.add(o),qo&&la(o)}function la(t){clearTimeout(Bo),En.add(t),Bo=setTimeout(()=>{let e=Array.from(En.values());En.clear(),Fo(e)},0)}function Fo(t){t.sort(({priority:e},{priority:n})=>e-n),t.forEach(({selector:e,handler:n})=>{Array.from(Ce(e)).forEach(o=>{ke(o,n,Wo(e,o))})})}function Wo(t,e){let n=t.match(/(data-[\w-]+)/g)||[];return n&&n.length?n=n.pop():n=null,n?At(e,n):null}function ke(t,e,n){try{if(ua(t,e)||!document.body.contains(t))return;fa(t,e);let o=Vt(e.call(window,t,n));Array.isArray(o)&&o.map(r=>{No(t,r)}),typeof o=="function"&&No(t,o)}catch(o){console.warn("Failed to attach handler to element",t,e,n,o)}}function No(t,e){Le.get(t)||Le.set(t,new Set),Le.get(t).add(e)}function ua(t,e){return Lt.get(t)&&Lt.get(t).get(e)}function fa(t,e){Lt.get(t)||Lt.set(t,new WeakMap),Lt.get(t).set(e,!0)}window.document.addEventListener("DOMContentLoaded",()=>{Ro().forEach(t=>{ke(t,e=>Tn(e))}),Fo(Array.from(An.values())),Do=new MutationObserver(function(t){t.reduce((e,n)=>{for(let o=0;o0)for(let o=0;oTn(o)),An.forEach(({selector:o,handler:r})=>{n&&_o(n,o)&&ke(n,r,Wo(o,n))})}}),t.reduce((e,n)=>{for(let o=0;o0)for(let r=0;rk,initState:()=>ba,makeDetectStateChange:()=>Go,makeDispatch:()=>ga,makeInspect:()=>ha,subscribe:()=>ya});var k={providers:new Map,subscribers:new Map,relationships:new Map,providerIndex:new WeakMap,subscriberIndex:new WeakMap},Vo=(()=>{let t=0;return()=>t++})();function Go(t){let e={};return n=>{let o=t.filter(r=>e[r]!==n[r]);return t.forEach(r=>{e[r]=n[r]}),o}}var Uo=(t,e)=>{var n,o;return(o=(n=k.subscriberIndex.get(t))==null?void 0:n.get(e))==null?void 0:o.id},Yo=t=>k.providers.get(k.relationships.get(t)),jo=(t,e)=>Yo(Uo(t,e)),da=(t,e)=>k.providerIndex.has(t)&&k.providerIndex.get(t).has(e),Qo=(t,e)=>{let n=rn(o=>da(o,e))(t);return n?k.providerIndex.get(n).get(e):null},kt=new WeakMap;window.addEventListener("rvt-store-provider",()=>{kt=new WeakMap});var Jo=(t,e)=>(kt.get(t)||kt.set(t,{}),kt.get(t).name||(kt.get(t).name=k.providers.get(Qo(t,e))),kt.get(t).name),Zo=(t,e=!1)=>{let n=Yo(t);if(!n)return;let o=k.subscribers.get(t);if(!!o)for(let r of o.values()){let[i,s]=r;i(n.state,s(n.state),e)}},pa=(t,e,n)=>{let o,r=()=>{let s=k.relationships.get(t),a=Qo(e,n);s!==a&&(k.relationships.set(t,a),clearTimeout(o),o=setTimeout(()=>Zo(t,!0),10))},i=tt(window,"rvt-store-provider",r);return r(),()=>{clearTimeout(o),i()}},ma=(t,e)=>[typeof t=="function"?t:()=>{},Go(Array.isArray(e)?e:[])],ha=(t,e)=>()=>{var n;return(n=Jo(t,e))==null?void 0:n.state},ga=(t,e)=>n=>{var o;return(o=Jo(t,e))==null?void 0:o.dispatch(n)},ya=(t,e,n=()=>{},o=[])=>{let r=ma(n,o);if(k.subscriberIndex.has(t)||k.subscriberIndex.set(t,new Map),!k.subscriberIndex.get(t).has(e)){let s=Vo();k.subscribers.set(s,new Set),k.subscriberIndex.get(t).set(e,{id:s,teardown:pa(s,t,e)})}return k.subscribers.get(Uo(t,e)).add(r),{unsubscribe:()=>{let{id:s,teardown:a}=k.subscriberIndex.get(t).get(e),c=k.subscribers.get(s);c.delete(r),c.size===0&&(k.subscribers.delete(s),k.relationships.delete(s),k.subscriberIndex.get(t).delete(e),a())},getState:()=>{var s,a;return(a=(s=jo(t,e))==null?void 0:s.state)!=null?a:{}},dispatch:s=>{var a;return(a=jo(t,e))==null?void 0:a.dispatch(s)}}},va=t=>typeof t!="function"?e=>e:(...e)=>t(...e),wa=t=>{let e;return n=>{let{state:o,...r}=k.providers.get(t);k.providers.set(t,{...r,state:r.reducer(n(o))}),cancelAnimationFrame(e),e=requestAnimationFrame(()=>{for(let[i,s]of k.relationships)s===t&&Zo(i)})}},xa=(t,e,{_reducer:n,...o})=>{if(k.providerIndex.get(t)||k.providerIndex.set(t,new Map),k.providerIndex.get(t).has(e))return;let r=va(n),i=Vo();return k.providers.set(i,{reducer:r,state:r(o),dispatch:wa(i)}),k.providerIndex.get(t).set(e,i),window.dispatchEvent(new CustomEvent("rvt-store-provider")),()=>{k.providers.delete(i),k.providerIndex.get(t).delete(e)}},ba=(t,e={},n=window.document.documentElement)=>{if(!t){console.warn("States must set an ID",t,e,n);return}return xa(n,t,e)};var Ko=Gt(!1);function Jt(t){return Ko.has(t)}Jt.enable=function(t){Ko.set(t,!0)};var yt=(...t)=>gt("action",...t),et=(...t)=>gt("observer",...t),vt=(...t)=>gt("behavior",...t),Zt=(...t)=>gt("innate",...t),Cn=(...t)=>gt("macro",...t),F=(...t)=>gt("event",...t);function Sa(t,e,n={},o="default"){let r={el:t,handle:{type:e,name:o}};return typeof n=="string"?(r.defaultOption=n,r.options={}):r.options=n,Ae(r)}function Kt(t){return Q(Ee(t.filter(e=>!!e).map(e=>Sa(...e)).filter(e=>!!e)).map(([,e])=>e()))}var{rivetListener:Ta,rivetDispatch:Aa,expandElementValue:Xo,onScanLazy:Ea}=S;st("behavior");st("innate");st("macro",(t,e,n,o)=>t(e,Kt,n,o));st("action",(t,e,n,o)=>{let r=()=>void t(e,Xo(e,n));return Ta(e,o,i=>{n.defer?setTimeout(r,0):r()})});st("event",(t,e,n,o)=>t(()=>Aa(e,o),Xo(e,n),e));st("observer",(t,e,n,o="",{scan:r})=>{let[i,s=[]]=(typeof t=="function"?[t]:t)||[],a=i(e,n),[c,u]=Array.isArray(a)?a:[a,()=>{}],{unsubscribe:p,getState:f}=J.subscribe(e,o,c,s),d=r?Ea(()=>c(f(),[],!1,!0)):()=>{};return[p,u,d]});var{expandElementValue:Ca,getStateValue:La}=S;et("outlet",(t,{key:e})=>{let n=t.innerHTML;return o=>{try{let r=La(o,Ca(t,e));t.innerHTML=typeof r=="undefined"?n:r}catch(r){console.warn("Unable to update Rivet outlet",r,{key:e,state:o,el:t})}}},{defaultOption:"key"});var{listener:tr}=S,ka=["click","focus","focusin","focusout","blur"];ka.forEach(t=>{F(`on${t}`,(e,{preventDefault:n=!0,stopPropagation:o=!1,once:r=!1},i)=>{let s;return tr(i,t,a=>{r&&s||(s=!0,n&&a.preventDefault(),o&&a.stopPropagation(),e())})})});var Oa=["keydown","keyup"];Oa.forEach(t=>{F(`on${t}`,(e,{key:n,preventDefault:o=!0,stopPropagation:r=!1,once:i=!1},s)=>{let a;return tr(document,t,c=>{i&&a||(a=!0,c.key===n&&(o&&c.preventDefault(),r&&c.stopPropagation(),e()))})},{defaultOption:"key"})});var{throttle:Ia,debounce:Pa,onLoad:Ma,onScanLazy:Ha,triggerScan:za,listener:Oe}=S;F("onready",t=>{setTimeout(()=>void t(),0)});F("onload",t=>Ma(t));F("onexit",(t,{delay:e=1e3,repeat:n=!1})=>{let o,r=!1;return Oe(document,"mouseout",i=>{clearTimeout(o),!i.toElement&&!i.relatedTarget&&!r&&(o=setTimeout(()=>void t(),e),n||(r=!0))})},{defaultOption:"delay"});F("onresize",(t,{throttle:e=50})=>Oe(window,"resize",Ia(t,e,{trailing:!0}),H),{defaultOption:"throttle"});F("onresized",(t,{debounce:e=500})=>Oe(window,"resize",Pa(t,e,{trailing:!0}),H),{defaultOption:"debounce"});F("onscan",(t,e)=>Ha(t,e),{defaultOption:"throttle"});b("img",t=>Oe(t,"load",()=>void za()));var{animateTopOffset:$a,makeDirectionalEasing:Ra,intersect:_a}=S,er,nr,Ie=!1,Pe=new Map;function or(){er=window.innerHeight}window.addEventListener("resize",or);or();function qa(t,{prop:e,easingFn:n}){let{top:o,height:r}=t.getBoundingClientRect(),i=o+r/2,s=er/2;t.style.setProperty(e,n((i-s)/s))}function rr(){if(!!Ie){for(let[t,e]of Pe)qa(t,e);nr=requestAnimationFrame(rr)}}var Da=(t,e)=>{Pe.set(t,e),!Ie&&(Ie=!0,nr=requestAnimationFrame(rr))},ir=t=>{Pe.delete(t),Pe.size<=0&&(Ie=!1)};vt("intersect",(t,{easing:e="linear",prop:n="--rvt-intersect"})=>[_a(t,({isIntersecting:r})=>{r?Da(t,{easingFn:Ra(e),prop:n}):ir(t)},{threshold:0,top:"0px",bottom:"0px"}),()=>void ir(t)],{defaultOption:"prop"});yt("scroll-to-top",(t,{offset:e,speed:n,easing:o="easeInOutExpo"})=>{$a(e,n,o)},{defaultOption:"offset"});Cn("scroll-top",(t,e)=>e([[t,"onclick"],[t,"scroll-to-top"]]));var{ensureNumber:sr,updateStateKey:ar,getStateValue:Ba,expandElementValue:Me}=S;Zt("define",(t,e={},n)=>{if(!n.match(/^\w+$/)){console.warn("Rivet state keys must be alphanumeric");return}let{_reducer:o,...r}=e.__value||e||{};J.initState(n,{_reducer:o,...Me(t,r)},t)},{defaultOption:"__value",priority:-1});yt("set",(t,{state:e,key:n,value:o})=>{J.makeDispatch(t,e)(r=>ar(r,Me(t,n),o))});var Fa=(t,e,n)=>{let o=t.includes(e);return n&&o?t.filter(r=>r!==e):o?t:[...t,e]};yt("list",(t,{state:e,key:n,value:o,toggle:r=!0})=>{J.makeDispatch(t,e)(s=>{let a=Me(t,n),c=Ba(s,a);return Array.isArray(c)?ar(s,a,Fa(c,o,r)):s})});yt("inc",(t,{state:e,key:n,amount:o=1,min:r=null,max:i=null,wrap:s=!1})=>{let a=J.makeDispatch(t,e),c=u=>sr(u)+sr(o);a(u=>{let p=Me(t,n);return p?{...u||{},[p]:c(u[p])}:c(u)})},{defaultOption:"state"});Zt("debug",t=>{Jt.enable(t),t.removeAttribute("data-rvt-debug")},{defaultOption:"message"});var{isScalar:cr,getTransitionDuration:Wa,getStateValue:kn,expandElementValue:He,evaluateCondition:ze,listener:Na,fontCompress:Va,addClass:lr,removeClass:Ga}=S,Ua=(t,e)=>{let n=t||"$v";return cr(n)?cr(e)?`${n}`.replace("$v",e):n==="$v"?"":n:""};et("classname",(t,{key:e,classname:n,condition:o})=>{let r="";return i=>{let s=kn(i,He(t,e)),c=ze(t,o,i,e)?Ua(n,s):"";c!==r&&(r&&t.classList.contains(r)&&t.classList.remove(r),c&&!t.classList.contains(c)&&t.classList.add(c)),r=c}},{defaultOption:"classname"});et("prop",(t,{key:e,prop:n,value:o,condition:r})=>{let i=null;return s=>{let a=kn(s,He(t,e));ze(t,r,s,e)?a!==i&&t.style.setProperty(n,typeof o=="undefined"?a:o):a!==i&&t.style.removeProperty(n),i=a}},{defaultOption:"key"});et("attr",(t,{key:e,attr:n,value:o,condition:r})=>{let i=null;return s=>{let a=kn(s,He(t,e));ze(t,r,s,e)?a!==i&&t.setAttribute(n,typeof o=="undefined"?a:o):a!==i&&t.removeAttribute(n),i=a}},{defaultOption:"key"});et("height",(t,{key:e,condition:n,selector:o})=>{let r,i;return(s,a,c,u)=>{if(e&&!u){let f=He(t,e);if(s[f]===r)return;r=s[f]}let p=ze(t,n,s,e);setTimeout(()=>{if(p){let[f,...d]=Array.from(t.querySelectorAll(o)).map(l=>l.offsetHeight).sort((l,m)=>m-l);f&&f!==i&&(t.style.setProperty("height",`${f}px`,"important"),i=f)}else t.style.removeProperty("height"),i=null})}},{defaultOption:"selector",scan:!0});window.offscreenTemplates||(window.offscreenTemplates=new WeakMap);vt("offscreen-reset",(t,{mode:e="default"})=>{let n=t.closest("[data-x-toggleable]");if(window.offscreenTemplates.get(t))return;try{let c=document.createElement("textarea");c.innerHTML=t.querySelector('script[type="text/rvt-template"]').textContent;let u=document.createElement("div");u.innerHTML=c.innerText,window.offscreenTemplates.set(t,[c.innerText,u])}catch(c){return console.warn("Unable to locate content template",c),()=>{}}let o,r=()=>{try{let[c,u]=window.offscreenTemplates.get(t);Array.from(u.querySelectorAll("[data-x-toggleable]")).map(f=>f.getAttribute("data-x-toggleable")).forEach(f=>{window.xToggleDelete(f)}),t.innerHTML=c}catch(c){console.warn("Unable to reset offscreen content",c)}},i=()=>{t.innerHTML=""},s=()=>{o=setTimeout(()=>{i(),e==="close"&&r()},Wa(n,300)+100)},a=c=>{clearTimeout(o),c?(e==="open"&&i(),r()):e!=="open"&&s()};return e==="close"&&r(),Na(n,"tco-toggle",({detail:{state:c}={}})=>void a(c))},{defaultOption:"mode"});vt("font-compress",(t,e)=>Va(t,e));var Ya=(t,e)=>{try{if(e)return Array.from(t.querySelectorAll(e))}catch{}return t};vt("inner-wrap",(t,{selector:e="",tag:n="span",class:o=""})=>Ya(t,e).map(r=>{let i=document.createElement(n);lr(i,"has-been-tagged"),o&&lr(i,o),Array.from(r.childNodes).forEach(s=>{i.appendChild(s)}),r.append(i),i.offsetHeight,Ga(i,"has-been-tagged")}),{defaultOption:"selector"});var On={...Ln};var{toggleClass:ur,listener:Vf,PASSIVE_ARGS:ja}=S;b("[data-x-bar]",(t,{scrollButtons:e})=>{if(!e)return;let n=t.querySelector(".x-bar-scroll-inner"),o=t.querySelector(".x-bar-content"),r=t.querySelector('[data-x-bar-scroll-button="bck"]'),i=t.querySelector('[data-x-bar-scroll-button="fwd"]'),s=0,a=0,c=0,u=0,p=()=>{let h=parseInt(window.getComputedStyle(n).width),y=parseInt(window.getComputedStyle(n,":before").width),g=parseInt(window.getComputedStyle(o).width);s=h,a=h-y*2,c=g,u=n.scrollLeft;let v=u<=0,w=c-u-a<=0;ur(r,"is-active",!v),ur(i,"is-active",!w)},f=h=>n.scrollTo({top:0,left:h,behavior:"smooth"}),d=()=>{f(Math.max(u-s,0))},l=()=>{f(Math.min(u+s,c-a))};p();let m=D(p,50);window.addEventListener("resize",m),n.addEventListener("scroll",m,ja),r.addEventListener("mouseup",function(){d()}),i.addEventListener("mouseup",function(){l()})});var Ot={},It={};function Qa(t,e){Ot[t]||(Ot[t]=[]),Ot[t].push(typeof e=="function"?e:()=>e)}function Ja(t,e){It[t]||(It[t]=[]),It[t].push(e)}function Za(){let t=[...arguments],e=t.shift(),n=t.shift(),o=Ot[e]?Ot[e]:[];return(It[e]?It[e]:[]).forEach(i=>i.call(this,n,...t)),o.reduce((i,s)=>s.call(this,i,...t),n)}var R={filter:Qa,action:Ja,apply:Za,filters:Ot,actions:It};var{animateTopOffset:Ka,scrollOffset:Xa}=S,Pt,fr=!1,In;function dr(){if(!fr){Pt=0;let t=D(dr,50);window.addEventListener("resize",t,H),In=document.querySelector("#wpadminbar"),fr=!0}if(In){let{position:t,height:e}=window.getComputedStyle(In);Pt=t==="fixed"?parseInt(e):0}return Pt}var W=()=>Pt!=null?Pt:dr(),Mt=()=>R.apply("fixed_top_offset",0),tc=(t,e,n)=>{if(t instanceof Element){let{bottom:o,top:r}=Xa(t);return e?o-n:r+n}return(typeof t=="number"?t:parseFloat(t))+n},pr=(t,{offsetTop:e=!0,duration:n,easing:o,bottom:r=!1}={})=>{Ka(()=>tc(t,r,e?Mt():0),n,o)};window.csGlobal=window.csGlobal||{};window.csJsData=window.csJsData||{};window.csGlobal.rivet=On;window.csGlobal._=window.csGlobal.rivet.util;window.csGlobal.everinit=On.attach;window.csGlobal.adminBarOffset=W;window.csGlobal.fixedTopOffset=Mt;window.csGlobal.scrollTo=pr;window.csGlobal.csHooks=R;window.document.documentElement.classList.remove("no-js");window.document.documentElement.classList.add("js");var{onScrollRaw:ec,onResize:nc,oncePassive:mr,elementIndex:hr,addClass:Pn,removeClass:Mn,toggleClass:ld,hasClass:Ht}=S,gr=t=>getComputedStyle(t).display!=="none",yr=0,vr=!1,Hn=!1;function wr(t){var d,l,m;let e=document.querySelector(".x-site");if(!e){t.style.width="100%";return}var n=window.getComputedStyle(t);if(n.position!=="fixed"){t.style.width="",t.style.maxWidth="";return}var o=[];xr(n["margin-left"])||o.push(n["margin-left"]),xr(n["margin-right"])||o.push(n["margin-right"]);var r="";o.length>0&&(r=o.length===1?o[0]:"("+o.join(" + ")+")");let i=(m=(l=(d=document.querySelector("body.x-stack-icon .x-sidebar .max.width:not(.x-container)"))==null?void 0:d.parentElement)==null?void 0:l.offsetWidth)!=null?m:0,s=Array.from(document.querySelectorAll(".x-bar-space-v")).reduce((h,y)=>h+y.offsetWidth,i),a=Array.from(document.querySelectorAll(".x-bar-left")).reduce((h,y)=>h+y.offsetWidth,i),c="";a&&(c="calc(0px + "+a+"px)");var u="";s>0&&(u+=" - "+s+"px"),r&&(u+=" - "+r),u+=" - "+gn,t.style.width="calc(100%"+u+")",t.style.left=c;var p=window.getComputedStyle(e),f=p["max-width"];f&&f!=="none"&&(t.style.maxWidth=r?"calc("+f+" - "+r+")":f)}function xr(t){return t.trim().split(" ").filter(e=>!e.match(/^0[a-zA-Z%]+|0$|none$/)).length===0}b("[data-x-bar]",function(t,e){if(e.region==="top"||e.region==="bottom")return S.onViewportChange(()=>{wr(t)},!0)});var $e=/__cs_debug/.test(location.href),br=!1,zt=[],nt=[],Xt=[],zn,te=!1;function Re(t){let e=zt.map(r=>r.id),n=!1,o=zt.filter(({el:r,id:i})=>{let s=e.indexOf(i);return s!==e.lastIndexOf(i)?(n=!0,e.splice(s,1),!1):window.document.body.contains(r)?!0:(n=!0,!1)});return(n||t)&&(o=o.sort((r,i)=>hr(r.el)-hr(i.el))),n?(zt=o,nt=zt,setTimeout($n,0),!0):!1}function $n(){if(Re()||!W)return;nt=zt.filter(({el:r})=>gr(r));let t=W(),e=0,n=0,o=0;sc(),nt.forEach(r=>{var{height:i}=r.el.getBoundingClientRect();r.height=i=Math.round(i),r.goal&&r.space&&(r.space.style.height=i+"px"),r.goal||(r.shrinkHeight=Tr(i,r.props.shrink)),r.triggerOffset=parseInt(r.props.triggerOffset),isNaN(r.triggerOffset)&&(r.triggerOffset=0)}),Xt=nt.map((r,i)=>{let{el:s,props:a,height:c,shrinkHeight:u,triggerOffset:p,goal:f}=r,d=o++===0,l=a.zStack&&!d,{marginTop:m}=getComputedStyle(s);var h=parseFloat(m),y=a.keepMargin?h:0,{top:g,bottom:v}=s.getBoundingClientRect();let w=0,L=s.parentNode.getBoundingClientRect().top-W();L+=window.scrollY;let x=s.parentNode.childNodes;for(let V=0;V0&&(T+=p+c);l?T+=u:T-=y;let M=W()+e;Rn(T,"red");let _=t+n;a.keepMargin||(_+=h,M-=h),T=Math.floor(T),Rn(T,"green"),t=T,l?(M-=u+y,M=Math.max(M,W())):e+=u+y;let B=a.hideInitially||qt>=s&&(!a||n)?c:i,-1),r=!1;nt.forEach((i,s)=>{let a=i.goal;i.goal=o>=s,a!==i.goal&&(r=!0)}),r&&requestAnimationFrame(Sr),Hn=!1}function Sr(){if(te)return;let t=oc();t?(te=!0,t(()=>{te=!1,Sr()})):(te=!1,setTimeout(_e,0))}function oc(){let t=-1,e=nt.map(({goal:n,el:o})=>({goal:n,fixed:Ht(o,"x-bar-fixed")}));if(e.forEach(({goal:n,fixed:o},r)=>{let i=n===o;!i&&t===-1&&(t=r),!i&&r>0&&e[r-1].fixed&&Xt[r].slide&&(t=r)}),t!==-1){let n=nt[t],o=n.goal;if(!o&&!Ht(n.el,"x-bar-fixed"))return!1;let r=o?rc:ic;return i=>r(nt[t],Xt[t],{st:window.scrollY,done:i})}return!1}function rc({el:t,space:e,content:n,shrinkHeight:o,height:r},{top:i,slide:s,elOffset:a,translateY:c,firstBar:u,only_show_on_scroll_up:p},{st:f,done:d}){let l={top:`${i}px`},m=s||!u&&a+od();if(Object.entries(l).forEach(([v,w])=>{t.style.setProperty(v,w)}),e){e.style.display="";let v=r+"px";v!==e.style.height&&(e.style.height=v)}zn.forEach(v=>void Pn(t,v)),Mn(t,"x-bar-is-initially-hidden"),wr(t);let g=window.getComputedStyle(t)["transition-duration"];g=g?parseFloat(g.replace("s","")):0,m?(Pn(t,"x-bar-is-visible"),t.style.transform="",g!==0?mr(t,"transitionend",h):d()):d()}function ic({el:t,space:e,props:n,content:o,shrinkHeight:r},{top:i,slide:s,elOffset:a,translateY:c,firstBar:u,only_show_on_scroll_up:p},{st:f,done:d}){let l=parseFloat(n.shrink),m=!1,h=s||!u&&a+rMn(t,v)),Mn(t,"x-bar-is-visible"),d())}h?(t.style.transform=`translate3d( 0, ${c}, 0)`,y()):!isNaN(l)&&l<1?(o.style.height="",t.style.height="",y()):g()}function sc(){!$e||Ce(".cs-sticky-bar-waypoint-debug").forEach(function(t){t.remove()})}function Rn(t,e="red",n="white"){if(!$e)return;let o=`
${t}
`,r=document.createElement("div");r.innerHTML=o,document.body.appendChild(r.childNodes[0])}function ac(){let t=0;return nt.forEach(function(e){var n;t+=e.goal&&!((n=e.props)==null?void 0:n.zStack)&&e.props.scrollOffset?e.height:0}),t}R.filter("fixed_top_offset",t=>Math.max(t,ac()+W()));var _n=()=>{Re(!0)||$n()},qn=()=>{Re(!0),$n()};function cc(){if(typeof window.ResizeObserver=="undefined")return;let t=window.document.body.clientHeight;new ResizeObserver(D(function(n){!n||document.body.classList.contains("x-body-scroll-disabled")||t!==window.document.body.clientHeight&&(t=window.document.body.clientHeight,_n())},100)).observe(document.body)}b("[data-x-bar]",(t,e)=>{br||(zn=(Ht(document.body,"x-boxed-layout-active")?"x-bar-fixed x-container max width":"x-bar-fixed").split(" "),U(_n),nc(_n),ec(_e),cc(),br=!0);let{id:n,region:o}=e;if(!Ht(t,"x-bar-is-sticky")||o!=="top")return;var{top:r,height:i}=t.getBoundingClientRect();i=Math.round(i);let s=document.querySelector(`.${n}.x-bar-space`);return s&&(s.style.height=i+"px"),zt.push({id:n,el:t,props:e,height:i,topOffset:i,shrinkHeight:Tr(i,e.shrink),space:s,scrollOffset:e.scrollOffset,content:t.querySelector(".x-bar-content"),visible:gr(t),startingRectTop:r}),qn(),setTimeout(function(){qn()},1e3),function(){qn(),_e()}});function Tr(t,e){return!isNaN(e)&&e>0?e*t:t}var{listener:lc,oncePassive:uc}=S;b('.x-alert [data-dismiss="alert"]',t=>lc(t,"click",e=>{e.preventDefault();let n=t.parentElement;n.classList.remove("in"),n.classList.remove("x-effect-enter"),uc(n,"transitionend",()=>{if(window.csGlobal&&window.csGlobal.isPreview){n.style.display="none";return}n.remove()})}));var{util:fc}=window.csGlobal.rivet,{addClass:ee,removeClass:ne,hasClass:qe}=fc;function $t(t,e){if(e){if(!t||qe(t,"x-anchor-layered-back"))return;ee(t,"x-active")}else ne(t,"x-active")}function Dn(t,e){if(e){if(!t||qe(t,"x-active")||qe(t,"x-currently-active"))return;ee(t,"x-currently-active")}else ne(t,"x-currently-active")}function Ar(t){setTimeout(()=>{let e=t.closest(".x-menu");e.addEventListener("transitionend",function(n){let o=e.getBoundingClientRect().top;if(o<0&&n.propertyName==="height"){let r=0,i=t.closest(".x-bar-v .x-bar-scroll-inner, .x-off-canvas-content, .x-modal")||window;if(i===window){let s=window.pageYOffset,a=parseInt(window.getComputedStyle(document.documentElement).marginTop),c=parseInt(window.getComputedStyle(e).fontSize);r=Math.max(0,o+s-a-c)}i.scrollTo({top:r,left:0,behavior:"smooth"})}})},0)}function dc(t){var e=t.offsetHeight,n=getComputedStyle(t);return e+=parseInt(n.marginTop)+parseInt(n.marginBottom),e}var Er=t=>Math.max(t.offsetHeight,Array.from(t.children).reduce((e,n)=>e+dc(n)||0,0)),Cr=(t,e)=>{let n=t.closest("[data-x-toggle-layered-root]");n&&(n.style.height=`${e}px`)};function pc(t){Cr(t,Er(t));let e=t.closest(`ul:not([data-x-toggleable="${t.getAttribute("data-x-toggleable")}"])`);ne(e,"x-current-layer"),ee(e,"x-prev-layer"),ee(t,"x-current-layer"),Ar(t)}function mc(t){let e=t.closest(`ul:not([data-x-toggleable="${t.getAttribute("data-x-toggleable")}"])`);!qe(e,"x-prev-layer")||(Cr(t,Er(e)),ne(t,"x-current-layer"),ee(e,"x-current-layer"),ne(e,"x-prev-layer"),Ar(t))}function Lr(t,e){return e?pc(t):mc(t)}function kr(t,e,n){var o,r,i,s,a=!1,c=!1,u={},p=0,f=0,d={sensitivity:7,interval:100,timeout:0,handleFocus:!1};function l(x,T){return f&&(f=clearTimeout(f)),p=0,c?void 0:n.call(x,T)}function m(x){o=x.clientX,r=x.clientY}function h(x,T){if(f&&(f=clearTimeout(f)),Math.abs(i-o)+Math.abs(s-r)gc(e=>{t.setAttribute("aria-hidden","false");let n=Or(t);Fn(t,"x-collapsed"),Bn(t,"x-collapsing"),t.offsetHeight,t.style.height=`${n}px`,Ir(t,"transitionend",()=>{Fn(t,"x-collapsing"),t.style.height="",e()})},e=>{t.setAttribute("aria-hidden","true"),t.style.height=`${Or(t)}px`,Bn(t,"x-collapsing"),t.offsetHeight,t.style.height="",Ir(t,"transitionend",()=>{Fn(t,"x-collapsing"),Bn(t,"x-collapsed"),e()})}),Wn=new WeakMap,vc=t=>(Wn.has(t)||Wn.set(t,yc(t)),Wn.get(t));function Pr(t,e){vc(t)(e)}var{util:Mr}=window.csGlobal.rivet,{listener:wc,debounce:Hr,addClass:xc,removeClass:bc,hasClass:ct,toggleClass:Z,oncePassive:zr,scrollingDisable:Sc,scrollingEnable:$r}=Mr,De=null,Be=t=>document.querySelector(`[data-x-toggleable="${t}"][data-x-toggle]`),Tc=t=>document.querySelector(`[data-x-toggleable="${t}"]:not([data-x-toggle])`),Rr=t=>t?t.parentElement.matches(".x-nav-tabs-item")?"classic-tab":t.getAttribute("data-x-toggle"):null,Ac=t=>["tab","classic-tab"].includes(Rr(t)),Nn=t=>t&&t.getAttribute("data-x-toggle-group"),Ec=t=>!!document.querySelector(`[data-x-toggle-group="${t||""}"].x-active`),lt=(t,e)=>t&&(t.matches(e)?t:t.closest(e)),Cc=(t,e)=>t&&(t.matches(e)?t:t.find(e)),Lc=t=>lt(t,"[data-x-toggle]"),kc=t=>lt(t,"[data-x-toggleable]"),K=t=>t&&t.getAttribute("data-x-toggleable"),Fe=t=>t&&t.getAttribute("data-x-toggle-hash"),Oc=t=>t&&t.matches(".mce-content-body"),Ic=t=>{let{marginTop:e,marginBottom:n}=getComputedStyle(t);return t.offsetHeight+parseInt(e)+parseInt(n)},oe=()=>window.location.hash.replace("#",""),_r=t=>document.querySelectorAll(`[data-x-toggle-group="${Nn(t)}"]:not([data-x-toggleable="${K(t)}"])`),Pc=t=>document.querySelectorAll(`[data-x-toggle-group="${Nn(t)}"].x-active`);Mr.toggle={getOthersInGroup:_r,getActiveInGroup:Pc};var Mc=t=>{let e=Lc(t);return[e,K(e)]},qr=t=>Array.from(document.querySelectorAll("[data-x-toggle-hash]")).filter(e=>Fe(e)===t).map(K),re=t=>lt(t,"[data-x-toggleable]:not([data-x-toggle])"),We=(t,e)=>{let n=[],o,r=t;for(;o=r&&re(r);){let i=K(o);r=Be(i),n.push(i)}return e&&n.shift(),n};window.TCOToggleStates||(window.TCOToggleStates=new Map,window.TCOToggleScrollBlocking=new Map);var Hc=!1,ut=window.TCOToggleStates,Vn=window.TCOToggleScrollBlocking,ft=!1;function zc(){let t=[];for(let[e,n]of ut){let o=Tc(e);n&&Vn.has(e)&&t.push(e),o||ut.delete(e)}t.find(e=>!ut.has(e))&&requestAnimationFrame($r)}window.integrityCheckTimeout||(window.integrityCheckTimeout=null);var $c=function(){clearTimeout(window.integrityCheckTimeout),window.integrityCheckTimeout=setTimeout(zc,500)};window.xToggleIntegrityCheck||(window.xToggleIntegrityCheck=$c);function Rc(t){let e=Be(t);switch(Rr(e)){case"collapse":case 1:case"layered":return e.matches(".x-active");case"tab":return Ec(Nn(e));case"classic-tab":return e.parentElement.matches(".active");case"collapse-b":return!e.matches(".collapsed")}return e?e.classList&&e.classList.contains("x-active"):null}function Rt(t){return ut.has(t)||ut.set(t,Rc(t)),ut.get(t)}function Y({id:t,state:e,_triggeringGroup:n,force:o,hashUpdate:r=!window.csGlobal.isPreview}){let i=Rt(t);typeof e=="undefined"&&(e=!i);let s=Be(t);!o&&!n&&(Oc(s)||!e&&Ac(s))||(ut.set(t,e),(i!==e||o)&&(_c(t,e),r&&Nc(s,e)),n||_r(s).forEach(a=>{Y({force:o,id:K(a),state:!1,_triggeringGroup:!0,hashUpdate:r})}))}window.xToggleGetState=t=>Rt(t);window.xToggleGetStateFromNode=t=>Rt(K(t));window.xToggleUpdate=(t,e)=>Y({id:t,state:e});window.xToggleDelete=t=>ut.delete(t);window.xToggleGetId=K;var Dr=!1;window.xToggleTempUnlock=()=>{Dr=!!ft,ft=!1};window.xToggleTempRelock=()=>{ft=Dr};window.xToggleSetLocking=t=>{ft=!!t};function _c(t,e){Array.from(document.querySelectorAll(`[data-x-toggleable="${t}"]`)).forEach(n=>{n.dispatchEvent(new CustomEvent("tco-toggle",{bubbles:!1,detail:{state:e,id:t}}))})}function Br(t){return wc(t,"tco-toggle",({currentTarget:e,detail:{state:n,id:o}})=>{var r;if(t.hasAttribute("data-x-toggle-overlay")&&(n?((r=document.querySelector(`[data-x-toggleable=${o}][role="dialog"]`))==null?void 0:r.hasAttribute("data-x-disable-body-scroll"))&&(requestAnimationFrame(Sc),Vn.set(o,!0)):n||(Vn.delete(o),requestAnimationFrame($r))),t.hasAttribute("aria-hidden")&&t.setAttribute("aria-hidden",!n),t.hasAttribute("aria-expanded")&&t.setAttribute("aria-expanded",n),t.hasAttribute("aria-selected")&&t.setAttribute("aria-selected",n),t.hasAttribute("data-x-toggle-collapse")?Pr(t,n):t.hasAttribute("data-x-toggle-layered")?Lr(t,n):ct(t,"x-anchor")?$t(t,n):t.getAttribute("data-x-toggle")==="collapse-b"?Z(t,"collapsed",!n):ct(t.parentElement,"x-nav-tabs-item")?Z(t.parentElement,"active",n):ct(t,"x-tab-pane")?Z(t,"active",n):ct(t,"x-dropdown")?Ne(t,n):Z(t,"x-active",n),n&&ct(t,"x-modal")&&setTimeout(function(){window.dispatchEvent(new Event("resize"))},150),t.matches("[data-x-toggle]")){if(Z(t.querySelector(".x-toggle"),"x-active",n),Hc)return;Array.from(t.querySelectorAll("[data-x-toggle-anim]")).forEach(i=>{ct(i,"x-running")||zr(i,"animationiteration",()=>{bc(i,"x-running"),ct(t,"x-active")||i.removeAttribute("style")}),xc(i,"x-running"),ct(t,"x-active")&&(i.style.animationName=i.getAttribute("data-x-toggle-anim"))})}if(n&&!window.csGlobal.isPreview)if(e.querySelector("[data-x-search][data-x-search-autofocus]")){let i=e.querySelector("[data-x-search][data-x-search-autofocus] input");if(Vc(i,350),!pn())return;zr(e,"transitionend",function(){i.scrollIntoView(!0)})}else{let i=t.querySelector('[tabindex="-1"]');i&&i.focus&&(i.focus(),setTimeout(function(){i.focus()},250))}})}var qc=t=>{let e=re(t);return!!(e&&(e.matches(".x-modal")&&!t.closest(".x-modal-content")||e.matches(".x-off-canvas")&&!t.closest(".x-off-canvas-content")))},Dc=(t,{exclude:e=[]}={})=>{if(ft)return;let n=[...We(t,qc(t)),...e].filter(o=>!!o);Array.from(document.querySelectorAll("[data-x-toggleable].x-dropdown, [data-x-toggleable].x-off-canvas, [data-x-toggleable].x-modal")).map(o=>o.getAttribute("data-x-toggleable")).filter(o=>!n.includes(o)).forEach(o=>Y({id:o,state:!1}))};function Gn(){qr(oe()).forEach(e=>{Y({id:e,state:!0})})}var Bc=(t,e,n)=>{if(!t||e.isContentEditable)return!1;if(t.matches("[data-x-toggle-hover]")){if(ft)return!0;if(n)return!1}let o=t.querySelector("[data-x-toggle-nested-trigger]");return o?lt(e,"[data-x-toggle-nested-trigger]")===o:lt(e,"[data-x-toggle]")===t};var Un=({ignoreHoverToggle:t=!0}={})=>e=>{let[n,o]=Mc(e.target);Bc(n,e.target,t)&&(lt(e.target,"a[href]")&&e.preventDefault(),Y({id:o}));let r=!o&<(e.target,"[data-x-toggle-close]"),i=r&&K(kc(r));i&&Y({id:i});let s=lt(e.target,"a[href]"),a=s?s.getAttribute("href").replace("#","").trim():"",u=a&&a===oe()?qr(oe()):[];u.length>0&&u.forEach(p=>{Y({id:p,state:!0})}),Dc(e.target,{exclude:[o,i,...u]})},z={},Fc=t=>e=>{Y({id:t,state:!0})},Wc=t=>e=>(z[t].canHoverLeave=!1,Y({id:t,state:!1}),()=>{});function Fr(t){let e=K(t),n=Be(e);if(!n)return;let o=t.getAttribute("data-x-hoverintent");o=JSON.parse(o||"{}");let{interval:r=100,timeout:i=100}=o;return z[e]={canHoverLeave:!1,cancelEnter:()=>{},cancelLeave:()=>{},hasHoverToggle:()=>!!document.querySelector(`[data-x-toggleable="${e}"][data-x-toggle-hover]`),onEnter:Hr(Fc(e),r),onLeave:Hr(Wc(e),i)},[G(n,"mouseenter",()=>{z[e].hasHoverToggle()&&(z[e].canHoverLeave=!0,z[e].cancelLeave(),Rt(e)||(z[e].cancelEnter=z[e].onEnter()))}),G(n,"mouseleave",()=>{z[e].canHoverLeave&&(ft||(z[e].cancelLeave=z[e].onLeave()))}),G(t,"mouseenter",()=>{let s=[e,...We(re(t))];setTimeout(()=>{s.forEach(a=>{z[a]&&z[a].cancelLeave()})})}),G(t,"mouseleave",({toElement:s})=>{[e,...We(re(t))].forEach(u=>{z[u]&&z[u].canHoverLeave&&(ft||(z[u].cancelLeave=z[u].onLeave()))}),We(re(s)).forEach(u=>{z[u]&&z[u].cancelLeave()})})]}function Ne(t,e){let o=window.getComputedStyle(t)["transition-duration"];if(o=o?parseFloat(o.replace("s","")):0,De&&(De(),De=null),!o){Z(t,"x-active",e),Z(t,"x-active-animate",e);return}let r=o*1e3,i=e?"x-active":"x-active-animate",s=e?"x-active-animate":"x-active",a=e?15:r;requestAnimationFrame(function(){Z(t,i,e),window.dispatchEvent(new CustomEvent("resize"))});let c=setTimeout(function(){requestAnimationFrame(function(){Z(t,s,e)})},a);return De=function(){!c||(clearTimeout(c),Z(t,"x-active",e),Z(t,"x-active-animate",e))}}function Wr(t){if(t.tagName==="BUTTON")return;let e=Un({ignoreHoverToggle:!1});t.addEventListener("keydown",n=>{n.key==="Enter"&&e(n)})}function Nr(t){let e=function(){let o=Cc(t,".x-current-layer"),r=Array.from(o.children).filter(i=>i.matches("li")).reduce((i,s)=>i+Ic(s),0);t.style.height=`${r}px`};e();let n=D(e,50);window.addEventListener("resize",n)}function Nc(t,e){let n=Fe(t);if(!n)return;let o=e?n:"";!e&&`#${n}`!==window.location.hash||(history.pushState(null,null,"#"+o),window.dispatchEvent(new CustomEvent("hashchange")))}function Vc(t,e){if(e||(e=100),t){var n=document.createElement("input");n.style.position="fixed",n.style.top=t.offsetTop+7+"px",n.style.left=t.offsetLeft+"px",n.style.height=0,n.style.opacity=0,document.body.appendChild(n),n.focus(),setTimeout(function(){t.focus(),t.click(),document.body.removeChild(n)},e)}}var{addClass:Yn,siblings:kd,once:Gc,removeClass:Ve,hasClass:ie,listener:se,makeGetComputedStyle:Vr,makeGetComputedFloatValues:Uc}=S,Yc={interval:25,timeout:25,sensitivity:9};function Gr(t){Zc(t),Kc()}var jn=t=>t?t.getBoundingClientRect():null,jc=Vr("position"),Qc=Vr("direction"),Jc=Uc(["paddingLeft","paddingTop","paddingRight","paddingBottom","borderTopWidth","borderBottomWidth"]);function Zc(t){t=Object.assign({selectors:[],indicatingSelector:"a",rootElementEvents:!1,transitionTimeout:null,requireClick(){return!1},toggleOnFocus:!0,activate(r){t.indicatingSelector?Yn(r.querySelector(t.indicatingSelector),t.activeClass):Yn(r,t.activeClass);let i=r.querySelector(t.nestedSelector);if(ie(i,"x-dropdown")){t.transitionTimeout&&t.transitionTimeout(),t.transitionTimeout=Ne(i,!0);return}Yn(i,t.activeClass)},deactivate(r){t.indicatingSelector?Ve(r.querySelector(t.indicatingSelector),t.activeClass):Ve(r,t.activeClass);let i=r.querySelector(t.nestedSelector);if(ie(i,"x-dropdown")){t.transitionTimeout&&t.transitionTimeout(),t.transitionTimeout=Ne(i,!1);return}Ve(i,t.activeClass)},isActive(r){return t.indicatingSelector?ie(r.querySelector(t.indicatingSelector),t.activeClass):ie(r,t.activeClass)},deactivateChildren(r,i){Array.from(r.querySelectorAll(t.nestedSelector)).forEach(s=>{!ie(s,t.activeClass)||(Ve(s,t.activeClass),typeof i=="function"&&i(s))})},deactivateChild:null,activeClass:"x-active",nestedSelector:".sub-menu",findSiblings:null,closeSiblings:!0},typeof t=="object"?t:{});function e(r){var i=!1;r._stemAllowFocusIn=!0;let s=r.closest("[data-x-hoverintent]"),a=s&&s.getAttribute("data-x-hoverintent"),c=a?JSON.parse(a):Yc,u=t.rootElementEvents?r:r.querySelector(t.indicatingSelector)||r,p=se(u,"mousedown",h),f=se(u,"touch",h),d=[p,f];if(d.push(se(u,"touchstart",()=>{r._stemAllowFocusIn=!1})),t.toggleOnFocus&&(d.push(se(u,"focusin",l)),d.push(se(r,"focusout",m))),!t.requireClick(r)){d.push(St(u,"touchstart",()=>{i=!0}));let y=kr(r,function(){i||(p(),f(),n(r,!0))},function(){i||n(r,!1)});try{y.options(c)}catch{}d.push(()=>y.remove())}function l(){r._stemAllowFocusIn&&o(r,n(r,!0))}function m(){setTimeout(()=>{r.contains(document.activeElement)||o(r,n(r,!1))},0)}function h(y){y.type==="mousedown"&&Gc(y.currentTarget,"click",v=>void v.preventDefault()),y.preventDefault(),y.stopPropagation();let g=n(r);if(o(r,g),g&&t.closeSiblings){let v=typeof t.findSiblings=="function"?t.findSiblings(r):v(r);v.forEach(w=>{n(w,!1),o(w,!1)})}}return d}t.selectors.forEach(r=>{b(r,e)});function n(r,i){return r._stemAllowFocusIn=!0,typeof i=="undefined"&&(i=!t.isActive(r)),i?(typeof t.beforeActivate=="function"&&t.beforeActivate(r),t.activate(r),typeof t.afterActivate=="function"&&t.afterActivate(r)):(typeof t.beforeDeactivate=="function"&&t.beforeDeactivate(r),t.deactivate(r),typeof t.afterDeactivate=="function"&&t.afterDeactivate(r)),t.isActive(r)}function o(r,i){typeof t.deactivateChildren=="function"&&(clearTimeout(r._stemCloseChildrenTimer),i||(r._stemCloseChildrenTimer=setTimeout(function(){t.deactivateChildren(r,t.deactivateChild)},1e3)))}}function Kc(){function t(l){var m=[];function h(g,v){if(!v&&g.hasAttribute("data-x-stem")){m.push(g),t(g);return}if(g.children)for(var w=0;w{m.forEach(n)},0)};l.addEventListener("x-stem:update",y,!1)}let e=[];function n(l){l&&l.dispatchEvent(new CustomEvent("x-stem:update"))}b("[data-x-stem-menu-top], [data-x-stem-root]",l=>{requestAnimationFrame(()=>{t(l),n(l),e.push(l)})});let o=D(function(){e.forEach(n)},50);window.addEventListener("tco-toggle",({detail:{state:l}={}})=>{l&&o()},H),window.addEventListener("resize",o,H),window.addEventListener("scroll",o,H),U(o);function r(l){if(!l)return;let m=d(l);if(!m)return;let h=jn(m),y=a(l),g=y==="data-x-stem-root"?jn(document.querySelector(`[data-x-toggleable="${l.getAttribute("data-x-toggleable")}"][data-x-toggle]`)):h;if(!g)return;let v=l.getAttribute("data-x-stem-force");if(v){let B=v.indexOf("d")!==-1,N=v.indexOf("r")!==-1;l.setAttribute("data-x-stem",v),y==="data-x-stem-root"&&i(l,h,g,N,B),y||p(l,N,B);return}let w=jn(l),{top:C,left:L,bottom:x,right:T}=s(w,g,y),{x:E,y:q}=c(l,y),M=u(E,window.innerWidth-T,L),_=u(q,window.innerHeight-x,C);l.setAttribute("data-x-stem",(_?"d":"u")+(M?"r":"l")),y==="data-x-stem-root"&&i(l,h,g,M,_),y||p(l,M,_)}function i(l,m,{top:h,left:y,bottom:g,right:v,height:w,width:C},L,x){let T=l.getAttribute("data-x-stem-root").indexOf("h")!==-1;if(L){let E=y-m.left;l.style.left=`${T?E+C:E}px`,l.style.right="auto"}else{let E=m.right-v;l.style.right=`${T?E+C:E}px`,l.style.left="auto"}if(x){let E=h-m.top;l.style.top=`${T?E:E+w}px`,l.style.bottom="auto"}else{let E=m.bottom-g;l.style.bottom=`${T?E:E+w}px`,l.style.top="auto"}}function s({height:l,width:m},h,y){let g={top:h.top-l,right:h.left+h.width+m,bottom:h.top+l,left:h.left-m};return y&&(g.right+=h.width,g.bottom+=h.height),g}function a(l){return l.hasAttribute("data-x-stem-menu-top")?"data-x-stem-menu-top":l.hasAttribute("data-x-stem-root")?"data-x-stem-root":null}function c(l,m){if(m){var h=Qc(l)==="ltr",y=l.getAttribute(m).indexOf("r")!==-1;return{y:!0,x:!!(h^y)}}let g=f(l);return{y:g.indexOf("d")!==-1,x:g.indexOf("r")!==-1}}function u(l,m,h){if(l&&m<0){if(mt.match(/#[a-zA-Z]/);Gr({selectors:[".x-menu-inline .menu-item-has-children",".x-menu-dropdown .menu-item-has-children"],beforeActivate:t=>$t(t.querySelector("a"),!0),beforeDeactivate:t=>$t(t.querySelector("a"),!1),deactivateChild:t=>$t(t.querySelector("a"),!1)});Ur(()=>{let{selector:t,duration:e,easing:n,initialMove:o,before:r,after:i,allowScroll:s}=R.apply("hash_scrolling_config",{selector:window.csJsData.linkSelector,easing:"ease-out",duration:500,initialMove:!0,before:f=>R.apply("hash_scrolling_before",f),after:f=>R.apply("hash_scrolling_before",f),allowScroll:(...f)=>R.apply("hash_scrolling_allow",!0,...f)});function a(f){try{return document.querySelector(f)}catch{}return null}function c(){let f=!1;return Jr(document.body,"touchstart",()=>{f=!1}),Jr(document.body,"touchmove",()=>{f=!0}),()=>f}let u=(f,d=!0,l)=>{Xc(f,()=>Mt()*-1,d?e:0,n,l)},p=c();o&&window.location.hash&&(u(a(window.location.hash),!1),setTimeout(()=>u(a(window.location.hash),!1),300)),Qr(document.body,"click",f=>{let d=f.target.matches(t)?f.target:f.target.closest(t);if(!d||f.tcoAbortScroll)return;let l=d.getAttribute("href"),m=l.split("#");if(!m[1])return;let h=m[0].replace(location.origin,""),y=`#${m[1]}`;if(p()||h&&h!==location.pathname||!Zr(l)||!s(d,f,y))return;let g=a(y);!g||(window.history.pushState&&(window.history.pushState(null,null,y),window.dispatchEvent(new CustomEvent("tcoHistoryPush"))),f.preventDefault(),r({anchor:d,target:g,hash:y}),u(g,!0,()=>void i({anchor:d,target:g,hash:y})))})});Ur(()=>{let t=!1,e,n=new Map,o=new Map,r=[],i=jr(()=>{var f,d;let p=[];for(let[l,m]of o){let h=((d=(f=m.getBoundingClientRect())==null?void 0:f.top)!=null?d:0)+window.scrollY;p.push({y:h,href:l})}r=p.sort((l,m)=>m.y-l.y)},100),s=p=>{if(e!==p){for(let[f,d]of n)if(f===p)for(let l of d)Yr(l,"x-anchor")&&Dn(l,!0),R.apply("scrollspy_activate",l);else for(let l of d)Yr(l,"x-anchor")&&Dn(l,!1),R.apply("scrollspy_deactivate",l);e=p}};b(window.csJsData.linkSelector,p=>{let f=R.apply("scrollspy_ignore_patterns",["#/","#wp-toolbar"]),d=`#${p.getAttribute("href").trim().split("#").pop()}`;if(!(!Zr(d)||f.find(l=>l.match(d))))return n.has(d)||n.set(d,new Set),n.get(d).add(p),[b(d,l=>(o.has(d)||o.set(d,l),i(),()=>{o.has(d)&&o.delete(d)})),()=>{var l;(l=n.get(d))==null||l.delete(p)},Qr(p,"click",()=>{t=!0,s(d)},{capture:!0})]}),el(i);let a=()=>{var f,d;let p=window.scrollY+Mt()+W()+1;return Math.ceil(window.innerHeight+window.scrollY)>=Math.floor(document.body.offsetHeight)?(d=(f=r.map((l,m)=>({...l,i:m})).sort((l,m)=>m.y-p-(l.y-p))[0])==null?void 0:f.i)!=null?d:-1:r.findIndex(({y:l})=>p>=l)},c=()=>{t=!1;let p=a();s(p===-1?"":r[p].href)},u=jr(c,250);u(),window.addEventListener("hashchange",function(p){s(window.location.hash)},nl),tl(()=>{r.length<=0||(t?u():c())})});var{transitionEnd:ol,addClass:Qn,removeClass:Jn,farthest:Kr,getCachedJsonAttribute:Xr,oncePassive:qd,listenerPassive:rl,evaluateCondition:il,expandElementValue:ti,makeAlternatingSynchronizer:Zn,makeElementWeakMap:Kn,getDurations:sl,lockMotion:ei,forceOpaque:al,runAnimation:ni,elementMeta:cl,waypoint:oi,parseTime:ll}=S,wt="x-effect-enter",Xn="x-effect-entering",ot="x-effect-exit",to="x-effect-exiting",Ge="x-effect-animated",Ue="x-effect-holding",ul="x-effect-opacity";b("[data-x-single-anim]",(t,e)=>{if(!t.classList.contains("x-always-active"))return rl(t.closest(".x-anchor, .x-text"),"mouseenter",()=>void ni(t,{animation:e,remove:!0}))});var ri=Kn({scrollEffects:!1}),fl=()=>{let{get:t,set:e,has:n}=Kn();return o=>(n(o)||e(o,{effects:[],particles:[]}),t(o))},Ye=fl(),ii=Kn(0),si=t=>{ii.set(t,sl(t))},ai=(t,e="transitionTime")=>{var n,o;return(o=(n=ii.get(t))==null?void 0:n[e])!=null?o:0},ci=(t,{from:e,to:n,trans:o,record:r=!1},i=()=>{})=>(t.classList.remove(e),t.classList.add(o),t.classList.add(n),r&&si(t),t.csAnimationEndingTimeout&&clearTimeout(t.csAnimationEndingTimeout),()=>{t.csAnimationEndingTimeout=setTimeout(function(){t.classList.remove(o)},250),i()}),li=(t,e,n=()=>{})=>ni(t,{className:Ge,animation:e,remove:!0,timeout:!0},n),dl=(t,e)=>{t.classList.contains(ot)||(t.classList.contains(Ge)||t.classList.add(Ge),t.style.setProperty("animation-duration","0ms","important"),t.style.setProperty("animation-name",e))},ui=(t,e,n)=>ol(t,ci(t,e,n)),fi=(t,e,n,o)=>li(t,e,ci(t,n,o)),pl=(t,e,n)=>fi(t,e,{from:ot,to:wt,trans:Xn,record:!0},n),di=(t,e,n)=>fi(t,e,{from:wt,to:ot,trans:to},n),ml=(t,e)=>ui(t,{from:ot,to:wt,trans:Xn,record:!0},e),pi=(t,e)=>ui(t,{from:wt,to:ot,trans:to},e),hl=(t,e,n)=>{Qn(t,Ue),setTimeout(al(t,{after:()=>{Jn(t,Ue),n()}}),e)},mi=(t,e,n)=>{let o=ei(t,e==="fade"?"opacity":null);t.style.setProperty("opacity",e==="fade"?0:1,"important");let r=ai(t);Qn(t,Ue),setTimeout(()=>{Jn(t,wt),Jn(t,Ue),Qn(t,ot),t.style.removeProperty("opacity"),o(),n()},r)};function gl(t,e,n){let o,r=0,i,s,{durationBase:a,animationAlt:c}=Xr(t,"data-x-effect"),u=ll(a),p=()=>{window.removeEventListener("mousemove",y),c?n(()=>{f()}):(n(),u?setTimeout(()=>{f()},u):f())},f=()=>{t.addEventListener("mouseenter",m)},d=()=>{let{top:v,left:w,width:C,height:L}=t.getBoundingClientRect();o.push({top:v+window.scrollY,left:w+window.scrollX,width:C,height:L})},l=v=>{r=0,o=[],d(),e(),u?(clearTimeout(i),i=setTimeout(()=>{d()},u)):d()},m=v=>{clearTimeout(s),window.addEventListener("mousemove",y),l(v)},h=v=>{r++,r>10&&o.length===o.filter(C=>g(C,v.clientX,v.clientY,window.scrollX,window.scrollY)).length&&p()},y=v=>{h(v),clearTimeout(s),s=setTimeout(()=>{h(v)},300)},g=({top:v,left:w,height:C,width:L},x,T,E,q)=>{let M=v-q,_=w-E,B=x>_&&x<_+L,N=T>M&&T{e.split(" ").filter(o=>!Kr(t,`[data-x-effect-provider*="${o}"]`)).length>0&&eo(t)});function eo(t){let e=Ye(t);e.registered||gl(t,()=>{let{registered:n,...o}=Ye(t);Object.keys(o).forEach(r=>{o[r].forEach(({setup:i})=>{i&&i()})})},()=>{let{registered:n,...o}=Ye(t);Object.keys(o).forEach(r=>{o[r].forEach(({teardown:i})=>{i&&i()})})}),e.registered=!0}function hi(t,e,n=()=>{},o=()=>{},r=!0){let i=Kr(e,`[data-x-effect-provider*="${t}"]`),s=r?i||e:i;return s?(Ye(s)[t].push({el:e,setup:n,teardown:o}),e===s):!1}b(".x-anchor",t=>{hi("particles",t)&&eo(t)});b("[data-x-effect]",(t,e)=>{try{return hi("effects",t,()=>{e.animationAlt&&li(t,e.animationAlt)},()=>{},!t.matches("x-anchor"))&&eo(t),Al(t,e)}catch(n){console.warn(n)}},1e3);var yl=(t,e)=>Zn(n=>ml(t,n),n=>e==="transform"?pi(t,n):mi(t,e,n)),vl=(t,e,{animationEnter:n,animationExit:o})=>Zn(r=>pl(t,n,r),r=>e==="animation"?di(t,o,r):mi(t,e,r)),wl=(t,e,n)=>Zn(o=>{if(si(t),["transform","animation"].includes(e)){e==="animation"&&(t.classList.remove(Ge),t.style.setProperty("opacity",0,"important"),t.style.removeProperty("animation-name"),t.offsetHeight,t.style.removeProperty("opacity"));let r=ei(t,"opacity");t.classList.remove(ot),r()}o()},o=>{switch(e){case"none":return hl(t,ai(t),o);case"transform":return pi(t,o);case"animation":return di(t,n.animationExit,o);default:o()}}),gi=(t,e,n)=>{let o=Xr(t,"data-x-effect");if(o.scroll){let r=a=>a==="effect"?o.animationEnter&&o.animationExit?"animation":"transform":a;e!=="effect"&&n!=="effect"&&(t.classList.add("x-no-at"),t.classList.remove("x-effect-exit"),setTimeout(()=>{t.classList.remove("x-no-at")}));let i=r(e),s=r(n);switch(s==="animation"&&dl(t,o.animationExit),e==="effect"&&["fade","none"].includes(n)&&t.classList.add(ul),i){case"animation":return vl(t,r(n),o);case"transform":return yl(t,s,o);case"fade":return wl(t,s,o)}}return!1};et("effects",(t,{key:e,condition:n,enter:o,exit:r})=>{ri.set(t,{scrollEffects:"managed"});let i=gi(t,ti(t,o),ti(t,r));return i?s=>void i(il(t,n,s,e)):()=>{}});var xl=(t,{behaviorScroll:e})=>{let n=gi(t,"effect","effect"),o=!1;return r=>{let[i,s]=r.split(":");e==="reset"&&i==="exit"&&s==="down"||e==="fire-once"&&o||(i==="enter"&&(o=!0),n(i==="enter"))}},bl=t=>{let e=parseInt(t);return t.includes("px")?()=>e:()=>window.innerHeight*e/100},Sl=t=>{let e=parseInt(t);return t.includes("px")?()=>window.innerHeight-e:()=>window.innerHeight-window.innerHeight*(parseInt(e)/100)};function Tl(t,e){let n,o=()=>{},r=()=>{let{effectRivet:i}=cl.get(e);i?o=Kt([[t,...i]]):setTimeout(r,10)};return r(),()=>{clearTimeout(n),o()}}function Al(t,e){let n=t.closest("[data-x-slide], [data-x-slide-goto]");if(n&&t!==n)return Tl(t,n);if(!e.scroll||ri.get(t).scrollEffects==="managed")return;if(window.csGlobal.isPreview&&t.classList.add(ot),e.forceScrollEffect){t.classList.remove(wt),t.classList.remove(Xn),t.classList.remove(ot),t.classList.remove(to),e.forceScrollEffect==="in"&&t.classList.add(wt),e.forceScrollEffect==="out"&&t.classList.add(ot);return}let o=xl(t,e),{offsetTop:r="10%",offsetBottom:i="10%"}=e;oi(t,s=>void o(`${s==="up"?"enter":"exit"}:${s}`),bl(r),!1),oi(t,s=>void o(`${s!=="up"?"enter":"exit"}:${s}`),Sl(i),!1)}var{defer:El,addClass:yi,toggleClass:Cl,removeClass:Ll,listenerPassive:_t}=S;b("[data-x-search]",function(t){let e=t.querySelector("input"),n=()=>El(()=>e.focus()),o=()=>Cl(t,"x-search-has-content",!!e.value);return[_t(e,"input",o),_t(t,"mousedown",()=>{yi(t,"x-search-focused"),n()}),_t(t,"focusin",()=>void yi(t,"x-search-focused")),_t(t,"focusout",()=>void Ll(t,"x-search-focused")),_t(t.querySelector("[data-x-search-clear]"),"click",()=>{e.value="",e.focus(),o()}),_t(t.querySelector("[data-x-search-submit]"),"click",()=>{window.csGlobal.isPreview||t.submit()})]});b("[data-x-element-bg-layer]",(t,{parallaxDir:e="v",parallaxRev:n=!1,parallaxSize:o=""})=>{let r=t.closest(".x-bg"),i=e==="h";t.style.opacity="1",i?(n||(t.style.left="auto",t.style.right="0"),t.style.width=o):(n||(t.style.top="auto",t.style.bottom="0"),t.style.height=o);let s=!1;function a(){if(s)return;s=!0;let{width:u,height:p,top:f,bottom:d}=r.getBoundingClientRect();if(f<=window.innerHeight&&d>=0){let{width:l,height:m}=t.getBoundingClientRect(),h=n?-1:1,y=i?l-u:m-p,g=1-d/(window.innerHeight+p),v=`${parseInt(g*y*h,10)}px`,w=i?`translate3d(${v}, 0, 0)`:`translate3d(0, ${v}, 0)`;t.style.transform=w}s=!1}function c(){requestAnimationFrame(a)}return[un(c),ve(c),U(c)]});U(function(){b("[data-x-scroll-link]",function(t,e){let n=document.querySelector(e);return G(t,"wheel",function(o){n.scrollTop+=o.deltaY})})});var{addClass:kl,removeClass:vi,hasClass:Ol,listenerPassive:ae}=S;function no(t,e){(e!=null?e:!Ol(t,"is-active"))?(vi(t,"has-not-flipped"),kl(t,"is-active")):vi(t,"is-active")}var je=!1;b("[data-x-element-card]",t=>[ae(t,"touchstart",()=>{je=!0}),ae(t,"click",({target:e})=>{t.contains(e.closest("a"))||no(t)}),ae(t,"pointerenter",()=>{setTimeout(function(){je||no(t,!0)},15)}),ae(t,"pointerleave",()=>{je||no(t,!1)}),ae(t,"touchend",()=>{setTimeout(function(){je=!1},100)})]);var{makeRafLoop:Il}=S;function Pl(t,e){let n=`${t}`;for(;n.length{let P=Math.abs(I),$=parseInt(P/86400);P%=86400;let it=parseInt(P/3600);P%=3600;let xt=parseInt(P/60);P%=60;let fo=parseInt(P);return g||(it+=$*24),v||(xt+=it*60),w||(fo+=xt*60),{diffDays:$,diffHours:it,diffMinutes:xt,diffSeconds:fo}},M=()=>{if(Object.keys(y).forEach(V),f){t.style.display="none",E(t,"");return}if(!u)return;let I=document.createElement(c);I.innerHTML=u,p&&I.classList.add(p),t.append(I),t.classList.add(s)},_=I=>(o?Pl(I,2):I.toString()).split("").map($=>`${$}`).join(""),B=(I,P)=>{if(!I||!L[I])return;let $=L[I];E($,(P?l:m)[I])},N=({diffDays:I,diffHours:P,diffMinutes:$,diffSeconds:it})=>{g&&(E(g,_(I)),B("d",I===1)),v&&(E(v,_(P)),B("h",P===1)),w&&(E(w,_($)),B("m",$===1)),C&&(E(C,_(it)),B("s",it===1))},ue=({diffDays:I,diffHours:P,diffMinutes:$,diffSeconds:it})=>{let xt=t.querySelector(d.aria);xt&&E(xt,h.replace(/{{d}}/g,I).replace(/{{h}}/g,P).replace(/{{m}}/g,$).replace(/{{s}}/g,it))},V=I=>{if(!y[I])return;let P=y[I].closest(d.parent);P&&(P.remove(),y[I]=null)},rt=({diffDays:I,diffHours:P,diffMinutes:$})=>{I===0&&V("days"),I===0&&P===0&&V("hours"),I===0&&P===0&&$===0&&V("minutes")},Ii=T+new Date().getTime();return Il(I=>{let P=Ii+I;if(P>x)return M(),!1;let $=q((P-x)/1e3);r&&rt($),N($),ue($),I===0&&t.classList.remove(i)})}b("[data-x-element-countdown]",(t,e={})=>wi({el:t,...e}));var{waypoint:Hl,tween:zl,getPrecisionLength:$l,getPrecisionLengthWithCommas:Rl,round:_l}=S,ql=",",xi=".",Dl=/(-)?(\d+)(\.\d+)?/;function Bl({el:t,from:e,to:n,commaSeparatedDecimal:o=!1,...r}){let i=typeof e=="undefined"?t.textContent:e,s=typeof n=="undefined"?t.textContent:n,a=o?xi:ql,c=s.toString().includes(a)||i.toString().includes(a),u=o?Rl:$l,p=Math.max(u(s),u(i)),f=m=>{if(!m)return console.warn("Input invalid",m),"";let[,h="",y="",g=""]=m.match(Dl),v=y.split("").reverse(),w=[];for(;v.length;)w.push(v.splice(0,3).reverse().join(""));return`${h}${w.reverse().join(a)}${g}`},d=bi(i,a),l=bi(s,a);zl(d,{...r,update:m=>{let h=_l(m,Math.pow(10,p)).toFixed(p),y=c?f(h):h;t.textContent=o?y.replace(/\.(\d+)$/,",$1"):y}})(l)}function bi(t,e){let n=0;return e===xi&&(n=t.split(",")||[],n=n[1]||0,n&&n.length&&(n=n/Math.pow(10,n.length))),parseFloat(t.replace(new RegExp("\\"+e,"g"),""))+n}b("[data-x-element-counter]",(t,{to:e,speed:n,selector:o=".x-counter-number",commaSeparatedDecimal:r})=>Hl(t,()=>void Bl({el:t.querySelector(o),to:e,commaSeparatedDecimal:r,duration:n}),"85%"));function Si(t,e={}){try{return JSON.parse(t)}catch{}return e}var{intersect:Fl,hasClass:at,addClass:Wl,removeClass:oo,unwrapHtmlTemplate:Nl,dispatch:Ti,listener:Qe,onResize:Vl,elementIsVisibleInViewport:Gl}=S,Ul=["playpause","progress"],Yl=["playpause","current","progress","duration","tracks","volume","fullscreen"];b("[data-x-element-mejs]",(t,{poster:e,options:n={}})=>{let o=at(t,"bg")||at(t,"x-video-bg"),r=at(t,"vimeo")||at(t,"youtube"),i=t.getAttribute("data-x-video-options")||n;i=typeof i=="string"?Si(i):i||{};let s=[];if(o&&(e&&(Wl(t,"poster"),t.style.backgroundImage=`url(${e})`,setTimeout(()=>void oo(t,"transparent"),500)),Nl(t.querySelector('script[type="text/template"]')),s.push(Qe(t,"xmejs-start",()=>{oo(t.querySelector(".transparent"),"transparent"),oo(t,"transparent")}))),!window.mejs)return;let a=t.querySelector(".x-mejs");if(!a||at(a.parentElement,"mejs-mediaelement"))return;let c=d=>{console.warn("MEJS media error.",d),d.stopPropagation()},u=at(a,"advanced-controls")?Yl:Ul;u=window.csGlobal.csHooks.apply("cs_mejs_video_features",u,t);try{window.jQuery(a).mediaelementplayer({pluginPath:window._wpmejsSettings.pluginPath,startVolume:1,features:o?[]:u,audioWidth:"100%",audioHeight:32,audioVolume:"vertical",videoWidth:"100%",videoHeight:"100%",videoVolume:"vertical",pauseOtherPlayers:!1,alwaysShowControls:!0,setDimensions:!1,stretching:"responsive",autoRewind:!1,success:p,error(d){c(d)}})}catch(d){c(d)}function p(d,l,m){let h=!0,y=!0;at(t,"autoplay")&&(!i.pause_out_of_view||Gl(t))&&(l.setAttribute("autoplay",!0),setTimeout(()=>{l.play()},100));let g=()=>{l.attributes.hasOwnProperty("autoplay")&&h&&(d.play(),h=!1),l.attributes.hasOwnProperty("muted")&&y&&(d.setMuted(!0),y=!1),d.removeEventListener("canplay",g)};d.addEventListener("canplay",g);let v=m.controls[0].querySelector(".mejs-volume-button");d.addEventListener("volumechange",()=>d.setVolume(at(v,"mejs-mute")?1:0)),d.addEventListener("ended",()=>{l.attributes.hasOwnProperty("loop")&&d.play()}),o||d.addEventListener("playing",()=>{Object.keys(window.mejs.players).filter(w=>w!==m.id&&!window.mejs.players[w].xIsVideoBG).map(w=>window.mejs.players[w]).forEach(w=>w.pause())}),m.isVideo===!0&&(m.xIsVideoBG=o,f(d,l,m))}function f(d,l,{container:m,controls:h}){if(d.addEventListener("timeupdate",function g(){Ti(t,"xmejs-start"),d.removeEventListener("timeupdate",g)}),Qe(m[0],"fullscreenchange",()=>{document.fullscreenElement||d.removeAttribute("style")}),r&&s.push(Qe(t,"xmejs-start",()=>{var g;(g=t.querySelector("video.x-mejs"))==null||g.removeAttribute("poster")})),o)d.addEventListener("playing",()=>{d.setMuted(!0),Ti(t,"xmejs-bgvideoready")}),s.push(Qe(t,"xmejs-bgvideoready",y)),s.push(Vl(y));else{let g=()=>h.stop().animate({opacity:1},150),v=()=>h.stop().animate({opacity:0},150);d.addEventListener("playing",()=>m.on("mouseenter",g).on("mouseleave",v)),d.addEventListener("pause",()=>{m.off("mouseenter mouseleave"),g()})}i.pause_out_of_view&&s.push(jl(t,d));function y(){let g=t.querySelector(r?".me-plugin":"video"),v=l.videoWidth,w=l.videoHeight,C=r||v===0?1280:v,L=r||w===0?720:w,x=t.offsetWidth||0,T=t.offsetHeight||0,E=x/C,q=T/L,M=E>q?E:q,_=Math.ceil(M*C+20),B=Math.ceil(M*L+20),N=Math.ceil((_-x)/2),ue=Math.ceil((B-T)/2);g.style.width=`${_}px`,g.style.height=`${B}px`}}return s});function jl(t,e){let n=at(t,"autoplay");return Fl(t,function(o){if(o.isIntersecting){n&&e.play();return}e.pause()})}var{waypoint:Ql}=S;b("[data-x-element-statbar]",(t,{triggerOffset:e}={})=>{Ql(t,()=>{Array.from(t.querySelectorAll(".x-statbar-bar, .x-statbar-label")).forEach(n=>{n.classList.add("x-active")})},e)});var{listener:Xd,onLoad:Jl,onResize:Zl,getOuterHeight:Kl}=S;b("[data-x-element-tabs]",(t,{equalPanelHeight:e})=>{if(!e)return;let n=Array.from(t.querySelectorAll(".x-tabs-panels")),o=()=>{let r=n.reduce((i,s)=>Math.max(i,Kl(s)),0);n.forEach(i=>{i.style.height=`${r}px`})};return o(),[Jl(o),Zl(o)]});window.addEventListener("load",function(){if(window.jQuery){let e=function(n){let o='';t(n).find(".button").removeClass("button").addClass("x-anchor").wrapInner(o)},t=window.jQuery;b(".x-mini-cart",n=>{e(n)}),t(document).on("added_to_cart wc_fragments_loaded wc_fragments_refreshed","body",()=>{Array.from(document.querySelectorAll(".x-mini-cart")).forEach(e)}),t(document).on("wc_cart_button_updated",(n,o)=>{o.hasClass("x-anchor-button")&&o.parent().find(".added_to_cart").remove()}),t(()=>{b(".x-preview-woocommerce-product-gallery",n=>{let o=t(n);o.addClass("woocommerce-product-gallery").removeClass("x-woocommerce-product-gallery"),o.trigger("wc-product-gallery-before-init",[n,window.wc_single_product_params]),o.wc_product_gallery(window.wc_single_product_params),o.trigger("wc-product-gallery-after-init",[n,window.wc_single_product_params])})})}},H);b("script[data-cs-late-style]",function(t){let e=document.createElement("style");e.setAttribute("id",`cs-late-css-${t.getAttribute("data-cs-late-style")}`),e.appendChild(window.document.createTextNode(t.textContent)),window.document.head.appendChild(e),t.remove()});var{listener:Ai,PASSIVE_ARGS:Xl}=S;b("[data-x-toggleable]",t=>Br(t));var ro=!1,Ei=!1;document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&!Ei&&(Ei=!0,window.document.body.addEventListener("click",Un()),b("[data-x-toggleable]",t=>{let e=K(t),n=Fe(t);(Rt(e)||n&&n===oe())&&(window.csGlobal.isPreview&&(ro=!0,t.setAttribute("data-x-disable-animation",!0)),Y({id:e,state:!0,force:!0,hashUpdate:!1}),ro&&(ro=!1,setTimeout(()=>{t.removeAttribute("data-x-disable-animation")},60)))}))},Xl);b("[data-x-toggleable]:not([data-x-toggle])",Fr);b("[data-x-toggle]",Wr);b("[data-x-toggle-layered-root]",Nr);R.filter("hash_scrolling_allow",(t,e,n)=>n.target.hasAttribute("data-x-toggle-nested-trigger")||n.target.hasAttribute("data-x-skip-scroll")?!1:t);R.action("hash_scrolling_before",({anchor:t})=>{let e=t.closest(".x-modal.x-active, .x-off-canvas.x-active");e&&!(t.hasAttribute("data-x-toggleable")&&!t.querySelector("[data-x-toggle-nested-trigger]"))&&Y({id:e.getAttribute("data-x-toggleable"),state:!1})});F("ontoggleclose",(t,e,n)=>Ai(n.closest("[data-x-toggleable]"),"tco-toggle",o=>{o.detail.state&&t()}),{defaultOption:"throttle"});F("ontoggleopen",(t,e,n)=>Ai(n.closest("[data-x-toggleable]"),"tco-toggle",o=>{o.detail.state||t()}),{defaultOption:"throttle"});window.addEventListener("tcoHistoryPush",Gn,!1);window.addEventListener("hashchange",Gn,!1);var{onScroll:tu,onResize:Ci,addClass:io,removeClass:so,toggleClass:eu,onLoad:ao,tween:Li,getOuterHeight:co,scrollOffset:lo,listener:dt,oncePassive:ki,getCachedJsonAttribute:uo,waypoint:ce,fontCompress:nu}=S;function j(t,e){b(`[data-x-element="${t}"]`,n=>void e.call(n,n,uo(n,"data-x-params")))}b("[data-x-element-responsive-text]",(t,{selector:e,compression:n,minFontSize:o,maxFontSize:r})=>{e&&Array.from(document.querySelectorAll(e)).forEach(i=>nu(i,{c:n,min:o,max:r}))});var ou=()=>!!(/Android|webOS|Opera Mini|windows phone/i.test(navigator.userAgent)||/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);function Oi(t){if(!Ft(t,"parallax"))return;if(ou()){t.style.backgroundAttachment="scroll",t.style.backgroundSize="cover",t.style.backgroundPosition="center";return}let e=0;Ft(t,"bg-image")&&(e=.1),Ft(t,"bg-pattern")&&(e=.3);let n=lo(t).top,o=document.readyState==="complete",r=()=>{let{top:i}=lo(t);i+t.offsetHeightwindow.scrollY+window.innerHeight||(t.style.backgroundPosition=`50% ${Math.floor((n-window.scrollY)*e)}px`)};return o&&r(),[tu(r),Ci(()=>{n=lo(t).top}),ao(()=>{o=!0,r()})]}j("section",Oi);j("content_band",Oi);j("column",(t,e)=>{!e.fade||ce(t.parentElement,()=>{t.style.opacity="1",t.style.transform="translate(0, 0)"},"65%")});j("classic_card",function(t){function e(h){h.target.tagName!=="A"&&eu(t,"flipped")}function n(){io(t,"flipped")}function o(){so(t,"flipped")}let r=dt(t,"click",e),i=dt(t,"mouseenter",n),s=dt(t,"mouseleave",o),a;dt(t,"touchstart",()=>{a&&a(),a=dt(t,"touchend",e)}),dt(t,"touchmove",()=>{a&&a()}),ki(t,"touchstart",()=>{r(),i(),s()});let c=t.querySelector(".x-card-inner"),u=t.querySelector(".x-face-outer.front"),p=u.querySelector(".x-face-content"),f=t.querySelector(".x-face-outer.back"),d=u.querySelector(".x-face-content"),l=h=>{let{borderTopWidth:y,borderBottomWidth:g}=getComputedStyle(f);return parseFloat(y)+parseFloat(g)};function m(){let h=Math.max(co(p)+l(f),co(d)+l(u));c.style.height=`${h}px`}return[ao(m),Ci(m,!0)]});j("skill_bar",(t,e)=>{let n=t.querySelector(".bar");ce(t,()=>{Li(0,{duration:750,update:o=>{n.style.width=`${o}%`}})(parseFloat(e.percent))},"95%")});j("recent_posts",function(t,{fade:e}){if(!e)return;let n=Array.from(t.querySelectorAll("a"));ce(t,()=>{n.forEach((o,r)=>{setTimeout(()=>{Li(0,{duration:750,update:i=>{o.style.opacity=`${i}`}})(1)},r*90)}),setTimeout(()=>{io(t,"complete")},n*90+400)},"75%")});j("creative_cta",function(t,e){let n=t.querySelector(".graphic");n.style.transform="translate(-50%, -50%) scale(0)";let o=()=>{n.style.transform="translate(-50%, -50%) scale(0)",t.style.backgroundColor=e.bg_color};return o(),[dt(t,"mouseenter",()=>{t.style.backgroundColor=e.bg_color_hover,n.style.transform="translate(-50%, -50%) scale(1)"}),dt(t,"mouseleave",o)]});j("feature_box",function(t,e){e.child!==!0&&e.graphicAnimation!=="none"&&ce(t,()=>{setTimeout(()=>{le(t.querySelector(".x-feature-box-graphic-outer"),"animated "+e.graphicAnimation)},e.graphicAnimationDelay)},e.graphicAnimationOffset+"%")});j("feature_list",function(t,e){var n=uo(t.querySelector(".x-feature-box"),"data-x-params"),o=0;if(n.graphicAnimation!=="none"||n.connectorAnimation!=="none"){let r=Array.from(t.children);ce(t,function(){setTimeout(function(){r.forEach((i,s)=>{var c;if(n.graphicAnimation!=="none"&&le(i.querySelector(".x-feature-box-graphic-outer"),"animated "+n.graphicAnimation,o++,e.animationDelayBetween),n.connectorAnimation!=="none"){var a="animated "+n.connectorAnimation;let u=i.querySelector(".lower");u&&le(u,a,o,e.animationDelayBetween);let p=(c=r[s+1])==null?void 0:c.querySelector(".upper");p&&le(p,a,o,e.animationDelayBetween);let f=i.querySelector(".full");f&&le(f,a,o++,e.animationDelayBetween)}})},e.animationDelayInitial)},e.animationOffset+"%")}});j("tab_nav",function(t,{orientation:e}){e==="vertical"&&(t.style.minHeight=`${co(t.nextElementSibling)}px`)});function le(t,e,n=0,o=0){let r=e.split(" ").map(i=>i.trim()).filter(i=>!!i);setTimeout(()=>{so(t,"animated-hide"),r.forEach(i=>void io(t,i)),ki(t,"animationend",()=>{r.forEach(i=>void so(t,i))})},n*o)}j("google_map",function(t,e){if(!window.google||!window.google.maps)return;function n(h){var y=[],g=[];Array.from(t.querySelectorAll(".x-google-map-marker")).forEach(function(v,w){var C=uo(v,"data-x-params"),L=new window.google.maps.Marker({map:h,position:new window.google.maps.LatLng(C.lat,C.lng),infoWindowIndex:w,icon:C.image});if(y[w]=L,C.markerInfo!==""){var x=new window.google.maps.InfoWindow({content:C.markerInfo,maxWidth:200});g[w]=x,C.startOpen&&x.open(h,L),window.google.maps.event.addListener(y[w],"click",function(){x.open(h,this)})}})}var o=t.querySelector(".x-google-map-inner"),r=e.lat,i=e.lng,s=new window.google.maps.LatLng(r,i),a=e.drag,c=parseInt(e.zoom),u=e.zoomControl,p=e.hue,f=[{featureType:"all",elementType:"all",stylers:[{hue:p||null}]},{featureType:"water",elementType:"all",stylers:[{hue:p||null},{saturation:0},{lightness:50}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]}],d={scrollwheel:!1,draggable:a===!0,zoomControl:u===!0,disableDoubleClickZoom:!1,disableDefaultUI:!0,zoom:c,center:s,mapTypeId:window.google.maps.MapTypeId.ROADMAP},l=new window.google.maps.StyledMapType(f,{name:"Styled Map"}),m=new window.google.maps.Map(o,d);m.mapTypes.set("map_style",l),m.setMapTypeId("map_style"),n.call(this,m)});ao(()=>{let t=window.jQuery;if(!t)return;let e={animation:!0,placement:"top",template:'',trigger:"hover focus",title:"",container:!1},n={placement:"right",trigger:"click",content:"",template:''};class o{constructor(i,{type:s="tooltip",...a}){this.type=s,this.options={...s==="popover"?n:e,...a},this.hoverState=null,this.$element=null,this.enter=()=>{this.hoverState="in",this.show()},this.leave=()=>{this.hoverState="out",this.hide()},this.toggle=()=>{this.tip().hasClass("in")?this.leave():this.enter()},this.el=i,this.$element=t(i),this.$body=t("body");for(var c=this.options.trigger.split(" "),u=c.length;u--;){var p=c[u];if(p=="click")this.$element.on("click."+this.type,!1,this.toggle);else{var f=p=="hover"?"mouseenter":"focusin",d=p=="hover"?"mouseleave":"focusout";this.$element.on(f+"."+this.type,!1,this.enter),this.$element.on(d+"."+this.type,!1,this.leave)}}(this.$element.attr("title")||typeof this.$element.attr("data-original-title")!="string")&&this.$element.attr("data-original-title",this.$element.attr("title")||"").attr("title","")}show(){var i=t.Event("show.bs."+this.type);if(this.getTitle()||this.getContent()){this.$element.trigger(i);var s=t.contains(document.documentElement,this.$element[0]);if(i.isDefaultPrevented()||!s)return;var a=this,c=this.tip(),u=this.getUID(this.type);this.setContent(),c.attr("id",u),this.$element.attr("aria-describedby",u),this.options.animation&&c.addClass("fade");var p=typeof this.options.placement=="function"?this.options.placement.call(this,c[0],this.$element[0]):this.options.placement,f=/\s?auto?\s?/i,d=f.test(p);d&&(p=p.replace(f,"")||"top"),c.detach().css({top:0,left:0,display:"block"}).addClass(p).data("bs."+this.type,this),this.options.container?c.appendTo(this.options.container):c.insertAfter(this.$element);var l=this.getElementPosition(this.el),m=c[0].offsetWidth,h=c[0].offsetHeight;if(d){var y=p,g=this.getElementPosition(this.el.parentElement);p=p=="bottom"&&l.top+l.height+h-g.scroll>g.height?"top":p=="top"&&l.top-g.scroll-h<0?"bottom":p=="right"&&l.right+m>g.width?"left":p=="left"&&l.left-mp.top+p.height&&(u.top=p.top+p.height-d)}else{var l=s.left,m=s.left+a;lp.width&&(u.left=p.left+p.width-m)}return u}getTitle(){return this.$element.attr("data-original-title")||this.getTitleOption()||this.type!=="popover"&&this.getContentOption()}getTitleOption(){return typeof this.options.title=="function"?this.options.title.call(this.$element[0]):this.options.title||""}getContentOption(){return typeof this.options.content=="function"?this.options.content.call(this.$element[0]):this.options.content||""}getUID(i){do i+=~~(Math.random()*1e6);while(document.getElementById(i));return i}tip(){return this.$tip=this.$tip||t(this.options.template)}arrow(){return this.$arrow||(this.$arrow=this.tip().find(this.type==="popover"?".arrow":".tooltip-arrow")),this.$arrow}validate(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)}}j("extra",(r,i)=>void new o(r,i))});var Lp=window.csGlobal;})();