(()=>{var Qe=Object.create;var _=Object.defineProperty;var Ye=Object.getOwnPropertyDescriptor;var _e=Object.getOwnPropertyNames;var Je=Object.getPrototypeOf,Ue=Object.prototype.hasOwnProperty;var Ke=e=>_(e,"__esModule",{value:!0});var Ze=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Xe=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of _e(t))!Ue.call(e,r)&&(n||r!=="default")&&_(e,r,{get:()=>t[r],enumerable:!(o=Ye(t,r))||o.enumerable});return e},je=(e,t)=>Xe(Ke(_(e!=null?Qe(Je(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var ye=Ze(()=>{Array.prototype.flat||Object.defineProperty(Array.prototype,"flat",{configurable:!0,value:function e(){var t=isNaN(arguments[0])?1:Number(arguments[0]);return t?Array.prototype.reduce.call(this,function(n,o){return Array.isArray(o)?n.push.apply(n,e.call(o,t-1)):n.push(o),n},[]):Array.prototype.slice.call(this)},writable:!0}),Array.prototype.flatMap||Object.defineProperty(Array.prototype,"flatMap",{configurable:!0,value:function(e){return Array.prototype.map.apply(this,arguments).flat()},writable:!0})});function ne(e,t,n){var o,r,i,l,a=!1,s=!1,u={},d=0,c=0,p={sensitivity:7,interval:100,timeout:0,handleFocus:!1};function m(h,L){return c&&(c=clearTimeout(c)),d=0,s?void 0:n.call(h,L)}function y(h){o=h.clientX,r=h.clientY}function v(h,L){if(c&&(c=clearTimeout(c)),Math.abs(i-o)+Math.abs(l-r)
tt(t=>{e.setAttribute("aria-hidden","false");let n=re(e);U(e,"x-collapsed"),J(e,"x-collapsing"),e.offsetHeight,e.style.height=`${n}px`,oe(e,"transitionend",()=>{U(e,"x-collapsing"),e.style.height="",t()})},t=>{e.setAttribute("aria-hidden","true"),e.style.height=`${re(e)}px`,J(e,"x-collapsing"),e.offsetHeight,e.style.height="",oe(e,"transitionend",()=>{U(e,"x-collapsing"),J(e,"x-collapsed"),t()})}),K=new WeakMap,rt=e=>(K.has(e)||K.set(e,nt(e)),K.get(e));function ie(e,t){rt(e)(t)}var{util:ot}=window.csGlobal.rivet,{addClass:M,removeClass:F,hasClass:se}=ot;function ae(e,t){if(t){if(!e||se(e,"x-anchor-layered-back"))return;M(e,"x-active")}else F(e,"x-active")}function ce(e){setTimeout(()=>{let t=e.closest(".x-menu");t.addEventListener("transitionend",function(n){let o=t.getBoundingClientRect().top;if(o<0&&n.propertyName==="height"){let r=0,i=e.closest(".x-bar-v .x-bar-scroll-inner, .x-off-canvas-content, .x-modal")||window;if(i===window){let l=window.pageYOffset,a=parseInt(window.getComputedStyle(document.documentElement).marginTop),s=parseInt(window.getComputedStyle(t).fontSize);r=Math.max(0,o+l-a-s)}i.scrollTo({top:r,left:0,behavior:"smooth"})}})},0)}function it(e){var t=e.offsetHeight,n=getComputedStyle(e);return t+=parseInt(n.marginTop)+parseInt(n.marginBottom),t}var le=e=>Math.max(e.offsetHeight,Array.from(e.children).reduce((t,n)=>t+it(n)||0,0)),ue=(e,t)=>{let n=e.closest("[data-x-toggle-layered-root]");n&&(n.style.height=`${t}px`)};function st(e){ue(e,le(e));let t=e.closest(`ul:not([data-x-toggleable="${e.getAttribute("data-x-toggleable")}"])`);F(t,"x-current-layer"),M(t,"x-prev-layer"),M(e,"x-current-layer"),ce(e)}function at(e){let t=e.closest(`ul:not([data-x-toggleable="${e.getAttribute("data-x-toggleable")}"])`);!se(t,"x-prev-layer")||(ue(e,le(t)),F(e,"x-current-layer"),M(t,"x-current-layer"),F(t,"x-prev-layer"),ce(e))}function fe(e,t){return t?st(e):at(e)}function de(e,t){let n=new Map;return function(...o){let r=t?t.apply(this,o):o[0];if(n.has(r))return n.get(r);let i=e.apply(this,o);return n.set(r,i),i}}var ct=4,lt=.001,ut=1e-7,ft=10,z=11,D=1/(z-1),dt=typeof Float32Array=="function";function pe(e,t){return 1-3*t+3*e}function ge(e,t){return 3*t-6*e}function he(e){return 3*e}function W(e,t,n){return((pe(t,n)*e+ge(t,n))*e+he(t))*e}function me(e,t,n){return 3*pe(t,n)*e*e+2*ge(t,n)*e+he(t)}function pt(e,t,n,o,r){var i,l,a=0;do l=t+(n-t)/2,i=W(l,o,r)-e,i>0?n=l:t=l;while(Math.abs(i)>ut&&++a=lt?gt(a,p,e,n):m===0?p:pt(a,s,s+D,e,n)}return function(s){return s===0||s===1?s:W(l(s),t,o)}}var mt=e=>{switch(e){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)"}},g=de(e=>{let t=mt(e);try{let[,n]=t.match(/cubic-bezier\((.*)\)/);return Z(...n.split(",").map(o=>Number(o.trim())))}catch{console.warn("unable to parse easing function",t)}return g("ease")}),bn={easeInQuad:g("cubic-bezier(0.550, 0.085, 0.680, 0.530)"),easeInCubic:g("cubic-bezier(0.550, 0.055, 0.675, 0.190)"),easeInQuart:g("cubic-bezier(0.895, 0.030, 0.685, 0.220)"),easeInQuint:g("cubic-bezier(0.755, 0.050, 0.855, 0.060)"),easeInSine:g("cubic-bezier(0.470, 0.000, 0.745, 0.715)"),easeInExpo:g("cubic-bezier(0.950, 0.050, 0.795, 0.035)"),easeInCirc:g("cubic-bezier(0.600, 0.040, 0.980, 0.335)"),easeInBack:g("cubic-bezier(0.600, -0.280, 0.735, 0.045)"),easeOutQuad:g("cubic-bezier(0.250, 0.460, 0.450, 0.940)"),easeOutCubic:g("cubic-bezier(0.215, 0.610, 0.355, 1.000)"),easeOutQuart:g("cubic-bezier(0.165, 0.840, 0.440, 1.000)"),easeOutQuint:g("cubic-bezier(0.230, 1.000, 0.320, 1.000)"),easeOutSine:g("cubic-bezier(0.390, 0.575, 0.565, 1.000)"),easeOutExpo:g("cubic-bezier(0.190, 1.000, 0.220, 1.000)"),easeOutCirc:g("cubic-bezier(0.075, 0.820, 0.165, 1.000)"),easeOutBack:g("cubic-bezier(0.175, 0.885, 0.320, 1.275)"),easeInOutQuad:g("cubic-bezier(0.455, 0.030, 0.515, 0.955)"),easeInOutCubic:g("cubic-bezier(0.645, 0.045, 0.355, 1.000)"),easeInOutQuart:g("cubic-bezier(0.770, 0.000, 0.175, 1.000)"),easeInOutQuint:g("cubic-bezier(0.860, 0.000, 0.070, 1.000)"),easeInOutSine:g("cubic-bezier(0.445, 0.050, 0.550, 0.950)"),easeInOutExpo:g("cubic-bezier(1.000, 0.000, 0.000, 1.000)"),easeInOutCirc:g("cubic-bezier(0.785, 0.135, 0.150, 0.860)"),easeInOutBack:g("cubic-bezier(0.680, -0.550, 0.265, 1.550)"),materialStand:g("cubic-bezier(0.400, 0.000, 0.200, 1.000)"),materialDecel:g("cubic-bezier(0.000, 0.000, 0.200, 1.000)"),materialAccel:g("cubic-bezier(0.400, 0.000, 1.000, 1.000)"),materialSharp:g("cubic-bezier(0.400, 0.000, 0.600, 1.000)")};Promise.resolve().then(()=>je(ye()));var q={passive:!0};function k(e,t,n,o={}){return e?(typeof o.passive=="undefined"&&(o.passive=!1),e.addEventListener(t,n,o),()=>void e.removeEventListener(t,n,o)):()=>{}}function A(e,t,n){return k(e,t,n,q)}function V(e){let t=()=>void e();return document.readyState==="complete"?(t(),()=>{}):A(document,"readystatechange",function(){document.readyState==="complete"&&setTimeout(t,0)})}var ve=e=>(Array.isArray(e)?e.map(ve):[e]).flat().filter(t=>typeof t=="function"),B=e=>{let t=ve(e);return()=>t.forEach(n=>n())};var xe=(e,t)=>(t&&e(document.visibilityState==="visible"),B([k(window,"pagehide",()=>{e(!1)}),k(window.document,"visibilitychange",()=>{e(document.visibilityState==="visible")})]));function E(e,t){let n,o=null;return function(r){if(n){o=r;return}n=setTimeout(function(){e(o),n=null},t)}}var we=(e={})=>{let t,n=()=>{t=new WeakMap},o=s=>t.has(s),r=s=>t.delete(s),i=s=>t.has(s)?t.get(s):e,l=(s,u)=>void t.set(s,u),a=(s,u)=>void l(s,u(i(s)));return n(),{get:i,del:r,set:l,has:o,update:a,reset:n,cache:()=>t}},bt=we(),$n=we();var Tt=e=>k(window,"rvt-scan",()=>e()),be=(e,t=!1)=>{t&&e();let n=E(e,100);return B([A(window,"resize",n,q),k(screen.orientation,"change",n)])},St=(e,t=!1)=>{t&&e();let n=E(e,40);return A(window,"scroll",n)};var At=(e,t)=>B([Tt(e),V(e),xe(e,!1),be(e,t)]);var Et,Te;At(()=>{Et=new WeakMap,Te=new WeakMap},!0);St(()=>{Te=new WeakMap},!0);var Ct="ontouchstart"in document.documentElement;function Se(){return window.innerWidth<=978.98&&Ct}var Ae=0,O={};function f(e){if(!e)throw new Error("No options passed to Waypoint constructor");if(!e.element)throw new Error("No element option passed to Waypoint constructor");if(!e.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+Ae,this.options=f.Adapter.extend({},f.defaults,e),this.element=this.options.element,this.adapter=new f.Adapter(this.element),this.callback=e.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=f.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=f.Context.findOrCreateByElement(this.options.context),f.offsetAliases[this.options.offset]&&(this.options.offset=f.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),O[this.key]=this,Ae+=1}f.prototype.queueTrigger=function(e){this.group.queueTrigger(this,e)};f.prototype.trigger=function(e){!this.enabled||this.callback&&this.callback.apply(this,e)};f.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete O[this.key]};f.prototype.disable=function(){return this.enabled=!1,this};f.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this};f.prototype.next=function(){return this.group.next(this)};f.prototype.previous=function(){return this.group.previous(this)};f.invokeAll=function(e){var t=[];for(var n in O)t.push(O[n]);for(var o=0,r=t.length;oa.oldScroll,u=s?a.forward:a.backward;for(var d in this.waypoints[l]){var c=this.waypoints[l][d];if(c.triggerPoint!==null){var p=a.oldScroll=c.triggerPoint,y=p&&m,v=!p&&!m;(y||v)&&(c.queueTrigger(u),r[c.group.id]=c.group)}}}for(var w in r)r[w].flushTriggers();this.oldScroll={x:i.horizontal.newScroll,y:i.vertical.newScroll}},o.prototype.innerHeight=function(){return this.element==this.element.window?f.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?f.viewportWidth():this.adapter.innerWidth()},o.prototype.destroy=function(){var r=[];for(var i in this.waypoints)for(var l in this.waypoints[i])r.push(this.waypoints[i][l]);for(var a=0,s=r.length;a-1&&(p=Math.ceil(u.contextDimension*p/100))),w=u.contextScroll-u.contextOffset,c.triggerPoint=Math.floor(y+w-p),b=m=u.oldScroll,I=b&&C,N=!b&&!C,!v&&I?(c.queueTrigger(u.backward),l[c.group.id]=c.group):(!v&&N||v&&u.oldScroll>=c.triggerPoint)&&(c.queueTrigger(u.forward),l[c.group.id]=c.group)}}return requestAnimationFrame(function(){for(var R in l)l[R].flushTriggers()}),this},o.findOrCreateByElement=function(r){return o.findByElement(r)||new o(r)},o.refreshAll=function(){for(var r in t)t[r].refresh()},o.findByElement=function(r){return t[r.waypointContextKey]},window.onload=function(){n&&n(),o.refreshAll()},f.Context=o})();(function(){"use strict";function e(r,i){return r.triggerPoint-i.triggerPoint}function t(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],l=r==="up"||r==="left";i.sort(l?t:e);for(var a=0,s=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)},f.Group=o})();(function(){"use strict";function e(o){return o===o.window}function t(o){return e(o)?o:o.defaultView}function n(o){this.element=o,this.handlers={}}n.prototype.innerHeight=function(){var o=e(this.element);return o?this.element.innerHeight:this.element.clientHeight},n.prototype.innerWidth=function(){var o=e(this.element);return o?this.element.innerWidth:this.element.clientWidth},n.prototype.off=function(o,r){function i(p,m,y){for(var v=0,w=m.length-1;v{e.offsetHeight,e.style.removeProperty(t?"transition-property":"transition"),e.style.removeProperty("animation")}}var kt=(e,t)=>(n,{after:o}={})=>{e(n);let r=Lt(n);return()=>{t(n),r(),typeof o=="function"&&o()}},dr=kt(e=>e.style.setProperty("opacity",1,"important"),e=>e.style.removeProperty("opacity"));var{util:Ie}=window.csGlobal.rivet,{listener:Ot,debounce:Wr,addClass:It,removeClass:zt,hasClass:T,toggleClass:x,oncePassive:ze,scrollingDisable:Ht,scrollingEnable:He}=Ie,$=null,Pe=e=>document.querySelector(`[data-x-toggleable="${e}"][data-x-toggle]`),Pt=e=>document.querySelector(`[data-x-toggleable="${e}"]:not([data-x-toggle])`),Ne=e=>e?e.parentElement.matches(".x-nav-tabs-item")?"classic-tab":e.getAttribute("data-x-toggle"):null,Nt=e=>["tab","classic-tab"].includes(Ne(e)),X=e=>e&&e.getAttribute("data-x-toggle-group"),Rt=e=>!!document.querySelector(`[data-x-toggle-group="${e||""}"].x-active`);var H=e=>e&&e.getAttribute("data-x-toggleable"),Re=e=>e&&e.getAttribute("data-x-toggle-hash"),Mt=e=>e&&e.matches(".mce-content-body"),Ft=E(function(){window.dispatchEvent(new Event("resize"))},250),Dt=E(function(){window.dispatchEvent(new Event("rvt-scan"))},250);var Me=e=>document.querySelectorAll(`[data-x-toggle-group="${X(e)}"]:not([data-x-toggleable="${H(e)}"])`),Wt=e=>document.querySelectorAll(`[data-x-toggle-group="${X(e)}"].x-active`);Ie.toggle={getOthersInGroup:Me,getActiveInGroup:Wt};var qt=e=>Array.from(document.querySelectorAll("[data-x-toggle-hash]")).filter(t=>Re(t)===e).map(H);window.TCOToggleStates||(window.TCOToggleStates=new Map,window.TCOToggleScrollBlocking=new Map);var Vt=!1,S=window.TCOToggleStates,j=window.TCOToggleScrollBlocking,G=!1;function Bt(){let e=[];for(let[t,n]of S){let o=Pt(t);n&&j.has(t)&&e.push(t),o||S.delete(t)}e.find(t=>!S.has(t))&&requestAnimationFrame(He)}window.integrityCheckTimeout||(window.integrityCheckTimeout=null);var $t=function(){clearTimeout(window.integrityCheckTimeout),window.integrityCheckTimeout=setTimeout(Bt,500)};window.xToggleIntegrityCheck||(window.xToggleIntegrityCheck=$t);function Gt(e){let t=Pe(e);switch(Ne(t)){case"collapse":case 1:case"layered":return t.matches(".x-active");case"tab":return Rt(X(t));case"classic-tab":return t.parentElement.matches(".active");case"collapse-b":return!t.matches(".collapsed")}return t?t.classList&&t.classList.contains("x-active"):null}function ee(e){return S.has(e)||S.set(e,Gt(e)),S.get(e)}function Q({id:e,state:t,_triggeringGroup:n,force:o,hashUpdate:r=!window.csGlobal.isPreview}){let i=ee(e);if(typeof t=="undefined"&&(t=!i),t&&window.xLastToggleable!==e)window.xLastToggleable=e,window.xToggleStack.push(e);else if(!t){let a=window.xToggleStack.indexOf(e);a!==-1&&window.xToggleStack.splice(a,1),window.xLastToggleable===e&&(window.xLastToggleable=window.xToggleStack[window.xToggleStack.length-1])}let l=Pe(e);!o&&!n&&(Mt(l)||!t&&Nt(l))||(S.set(e,t),(i!==t||o)&&(Qt(e,t),r&&Ut(l,t)),n||Me(l).forEach(a=>{Q({force:o,id:H(a),state:!1,_triggeringGroup:!0,hashUpdate:r})}))}window.xLastToggleable="";window.xToggleStack=[];window.xToggleGetState=e=>ee(e);window.xToggleGetStateFromNode=e=>ee(H(e));window.xToggleUpdate=(e,t)=>Q({id:e,state:t});window.xToggleDelete=e=>S.delete(e);window.xToggleGetId=H;window.xGetLastToggleable=function(){return window.xLastToggleable};var Fe=!1;window.xToggleTempUnlock=()=>{Fe=!!G,G=!1};window.xToggleTempRelock=()=>{G=Fe};window.xToggleSetLocking=e=>{G=!!e};window.xToggleHashUpdate=_t;function Qt(e,t){Array.from(document.querySelectorAll(`[data-x-toggleable="${e}"]`)).forEach(n=>{n.dispatchEvent(new CustomEvent("tco-toggle",{bubbles:!1,detail:{state:t,id:e}}))})}function De(e){return Ot(e,"tco-toggle",({currentTarget:t,detail:{state:n,id:o}})=>{var r;if(n||Yt(e),e.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(Ht),j.set(o,!0)):n||(j.delete(o),requestAnimationFrame(He))),e.hasAttribute("aria-hidden")&&e.setAttribute("aria-hidden",!n),e.hasAttribute("aria-expanded")&&e.setAttribute("aria-expanded",n),e.hasAttribute("aria-selected")&&e.setAttribute("aria-selected",n),e.hasAttribute("data-x-toggle-collapse")?ie(e,n):e.hasAttribute("data-x-toggle-layered")?fe(e,n):T(e,"x-anchor")?ae(e,n):e.getAttribute("data-x-toggle")==="collapse-b"?x(e,"collapsed",!n):T(e.parentElement,"x-nav-tabs-item")?x(e.parentElement,"active",n):T(e,"x-tab-pane")?x(e,"active",n):T(e,"x-dropdown")?Jt(e,n):x(e,"x-active",n),T(e,"x-modal")&&Ft(),Dt(),e.matches("[data-x-toggle]")){if(x(e.querySelector(".x-toggle"),"x-active",n),Vt)return;Array.from(e.querySelectorAll("[data-x-toggle-anim]")).forEach(i=>{T(i,"x-running")||ze(i,"animationiteration",()=>{zt(i,"x-running"),T(e,"x-active")||i.removeAttribute("style")}),It(i,"x-running"),T(e,"x-active")&&(i.style.animationName=i.getAttribute("data-x-toggle-anim"))})}if(n&&!window.csGlobal.isPreview)if(t.querySelector("[data-x-search][data-x-search-autofocus]")){let i=t.querySelector("[data-x-search][data-x-search-autofocus] input");if(Kt(i,350),!Se())return;ze(t,"transitionend",function(){i.scrollIntoView(!0)})}else{let i=e.querySelector('[tabindex="-1"]');i&&i.focus&&(i.focus(),setTimeout(function(){i.focus()},250))}})}function Yt(e){let t=e.querySelectorAll("[data-x-toggleable]")||[];for(let n=0;n{Q({id:n,state:!0})})}function Jt(e,t){let o=window.getComputedStyle(e)["transition-duration"];if(o=o?parseFloat(o.replace("s","")):0,$&&($(),$=null),!o){x(e,"x-active",t),x(e,"x-active-animate",t);return}let r=o*1e3,i=t?"x-active":"x-active-animate",l=t?"x-active-animate":"x-active",a=t?15:r;requestAnimationFrame(function(){x(e,i,t),window.dispatchEvent(new CustomEvent("resize"))});let s=setTimeout(function(){requestAnimationFrame(function(){x(e,l,t)})},a);return $=function(){!s||(clearTimeout(s),x(e,"x-active",t),x(e,"x-active-animate",t))}}function Ut(e,t){let n=Re(e);if(!n)return;let o=t?n:"";!t&&`#${n}`!==window.location.hash||(history.pushState(null,null,"#"+o),window.dispatchEvent(new CustomEvent("hashchange")))}function Kt(e,t){if(t||(t=100),e){var n=document.createElement("input");n.style.position="fixed",n.style.top=e.offsetTop+7+"px",n.style.left=e.offsetLeft+"px",n.style.height=0,n.style.opacity=0,document.body.appendChild(n),n.focus(),setTimeout(function(){e.focus(),e.click(),document.body.removeChild(n)},t)}}var{attach:Y,util:Zt}=window.csGlobal.rivet,{scrollOffset:Xt}=Zt;window.xJsData=window.xJsData||{};var Ve,Be,$e,jt={up:(Ve=window.xJsData.icons)==null?void 0:Ve.up,down:(Be=window.xJsData.icons)==null?void 0:Be.down,subindicator:($e=window.xJsData.icons)==null?void 0:$e.subindicator};window.csGlobal||console.warn("X is running without Cornerstone.");var Ge,{csHooks:P,fixedTopOffset:$r,adminBarOffset:en,scrollTo:tn,rivet:{util:{getOuterHeight:nn,hasClass:We,toggleClass:te,addClass:rn,onPercentScrolled:on,onScroll:sn,onResize:Gr,listener:qe}={}}={}}=(Ge=window.csGlobal)!=null?Ge:{};window.jQuery&&window.jQuery.extend(window.jQuery.easing,{xEaseOutQuad:e=>csGlobal.rivet.util.getEasing("easeOutQuad")(e),xEaseInOutExpo:e=>csGlobal.rivet.util.getEasing("easeInOutExpo")(e)});function an(e){let t=()=>{un(),fn(),cn(),window.csGlobal&&e()};document.readyState!="loading"?t():document.addEventListener("DOMContentLoaded",t)}an(()=>{Y("body.x-navbar-fixed-top-active .x-navbar",e=>{let t=["x-navbar-fixed-top",...We(document.body,"x-boxed-layout-active")?["x-container","max","width"]:[]],n=document.querySelector(".x-navbar-wrap");sn(()=>{let i=window.scrollY+en()>Xt(n).top;t.forEach(l=>{te(e,l,i)})});let o=i=>l=>{l.matches(".x-nav-wrap.desktop .x-nav li > a")&&te(l.closest("li"),"current-menu-item",i)},r=window.getComputedStyle(e);P.action("scrollspy_activate",o(!0)),P.action("scrollspy_deactivate",o(!1)),P.filter("fixed_top_offset",i=>window.innerWidth<=978.98&&P.apply("x_mobile_header_not_fix",!0)&&r.getPropertyValue("position")!=="fixed"?i:Math.max(i,nn(e)))}),P.filter("hash_scrolling_allow",(e,t,n,o)=>o==="#comments"||t.hasAttribute("data-vc-accordion")||t.hasAttribute("data-vc-tabs")?!1:e),qe(window.document.body,"click",e=>{e.target.matches(".x-btn-navbar-search, .x-btn-widgetbar")&&e.preventDefault()}),Array.from(document.querySelectorAll('iframe[src*="youtube.com"]')).forEach(e=>{let t=e.getAttribute("src");e.setAttribute("wmode","Opaque"),t&&t.includes("?")?e.setAttribute("src",`${t}&wmode=transparent`):e.setAttribute("src",`${t}?wmode=transparent`)}),Y(".x-slider-container .x-slider-scroll-bottom",e=>qe(e,"click",t=>{t.preventDefault();let n=e.closest(".x-slider-container");tn(n,{bottom:!0,offsetTop:We(n,"below")})})),Y("body.x-stack-icon .x-sidebar",e=>{let t=e.querySelector(".max.width");rn(t,"x-container")}),Y(".x-scroll-top",e=>{var t;return on(parseFloat((t=xJsData.scrollTop)!=null?t:".75"),n=>{te(e,"in",n)})})});function cn(){let e=document.querySelector(".x-searchform-overlay");if(!e)return;let t=e.querySelector(".search-query");function n(){e.classList.toggle("in"),setTimeout(function(){t.value=""},350)}let o=function(r){(r.target.matches(".x-btn-navbar-search")||r.target.closest(".x-btn-navbar-search"))&&(r.preventDefault(),e.classList.toggle("in"),t.focus()),(r.target.matches(".x-searchform-overlay")||r.target.closest(".x-searchform-overlay"))&&(r.target.matches(".search-query")||n())};document.body.addEventListener("click",o),document.body.addEventListener("touchstart",o),document.addEventListener("keydown",function(r){r.key==="Escape"&&e.matches(".in")&&n()})}function ln(e){let t=!1;function n(){t=!0,typeof e=="function"&&e(),document.body.removeEventListener(n,{passive:!0,capture:!0})}return document.body.addEventListener("touchstart",n,{passive:!0,capture:!0}),()=>t}function un(){let e=document.querySelector(".desktop .x-nav");if(!e)return;let t=d=>d.matches(".desktop .x-nav li")?d:d.closest(".desktop .x-nav li"),n=d=>d&&d.matches("li.menu-item-has-children");function o(d){let c=d&&d.closest(".sub-menu, .x-nav");c&&[...c.querySelectorAll(".x-active")].forEach(p=>p.classList.remove("x-active"))}function r(d){d&&(o(d),n(d)&&d.classList.add("x-active"))}let i=!0;function l({target:d}){let c=t(d);c?(i=c,r(c)):i&&(i=!1,o(e))}document.body.addEventListener("focusin",l);let a=d=>{let c=t(d.target);n(c)&&(d.preventDefault(),d.stopPropagation(),r(c)),c||o(e)};document.body.addEventListener("touchstart",a,{passive:!1}),document.body.addEventListener("click",a,{passive:!1});let s=ln(()=>document.body.removeEventListener("focusin",l)),u;[...e.querySelectorAll("li")].forEach(d=>{ne(d,({target:c})=>{if(s())return;let p=t(c);clearTimeout(u),n(p)?r(p):u=setTimeout(()=>o(p),350),document.body.removeEventListener("touchstart",a,{passive:!1}),document.body.removeEventListener("click",a,{passive:!1})},({relatedTarget:c,toElement:p})=>{if(s())return;let m=c||p;if(!e.contains(m)){clearTimeout(u),u=setTimeout(()=>o(e),750);return}let y=t(m);y&&(clearTimeout(u),u=setTimeout(()=>o(y),350))})})}function fn(){function e(t){let n=document.createElement("div");return n.innerHTML=t.trim(),n.firstChild}[...document.querySelectorAll(".mobile .x-nav li.menu-item-has-children > a")].forEach((t,n)=>{t.appendChild(e(`${jt.subindicator}
`))}),[...document.querySelectorAll(".mobile .x-nav .sub-menu")].forEach((t,n)=>{t.setAttribute("id",`x-nav-wrap-mobile-sm-${n}`),t.setAttribute("class","x-collapsed"),t.setAttribute("data-x-toggleable",`x-nav-wrap-mobile-sm-${n}`),t.setAttribute("data-x-toggle-collapse","1"),t.setAttribute("aria-hidden","true"),De(t)})}})();