(()=>{var g4=Object.create;var{getPrototypeOf:c4,defineProperty:F7,getOwnPropertyNames:_5,getOwnPropertyDescriptor:m4}=Object,v5=Object.prototype.hasOwnProperty;var u5=(Z,$,J)=>{J=Z!=null?g4(c4(Z)):{};let Q=$||!Z||!Z.__esModule?F7(J,"default",{value:Z,enumerable:!0}):J;for(let K of _5(Z))if(!v5.call(Q,K))F7(Q,K,{get:()=>Z[K],enumerable:!0});return Q},h5=new WeakMap,d4=(Z)=>{var $=h5.get(Z),J;if($)return $;if($=F7({},"__esModule",{value:!0}),Z&&typeof Z==="object"||typeof Z==="function")_5(Z).map((Q)=>!v5.call($,Q)&&F7($,Q,{get:()=>Z[Q],enumerable:!(J=m4(Z,Q))||J.enumerable}));return h5.set(Z,$),$},p4=(Z,$)=>()=>($||Z(($={exports:{}}).exports,$),$.exports);var V$=(Z,$)=>{for(var J in $)F7(Z,J,{get:$[J],enumerable:!0,configurable:!0,set:(Q)=>$[J]=()=>Q})};var nq=p4((NQ,lq)=>{(function($,J){if(typeof NQ==="object"&&typeof lq==="object")lq.exports=J();else if(typeof define==="function"&&define.amd)define([],J);else if(typeof NQ==="object")NQ.rive=J();else $.rive=J()})(NQ,()=>{return(()=>{var Z=[,(K,q,U)=>{U.r(q),U.d(q,{default:()=>G});var W=(()=>{var X=typeof document<"u"?document.currentScript?.src:void 0;return function(L={}){var N,F=L,j,R,O=new Promise((H,B)=>{j=H,R=B}),C=typeof window=="object",A=typeof importScripts=="function";function E(){function H(l){let i=D;Y=B=0,D=new Map,i.forEach((K0)=>{try{K0(l)}catch(e){console.error(e)}}),this.ob(),P&&P.Qb()}let B=0,Y=0,D=new Map,P=null,y=null;this.requestAnimationFrame=function(l){B||=requestAnimationFrame(H.bind(this));let i=++Y;return D.set(i,l),i},this.cancelAnimationFrame=function(l){D.delete(l),B&&D.size==0&&(cancelAnimationFrame(B),B=0)},this.Ob=function(l){y&&(document.body.remove(y),y=null),l||(y=document.createElement("div"),y.style.backgroundColor="black",y.style.position="fixed",y.style.right=0,y.style.top=0,y.style.color="white",y.style.padding="4px",y.innerHTML="RIVE FPS",l=function(i){y.innerHTML="RIVE FPS "+i.toFixed(1)},document.body.appendChild(y)),P=new function(){let i=0,K0=0;this.Qb=function(){var e=performance.now();K0?(++i,e-=K0,1000>H,B.has(D)&&clearTimeout(B.get(D)),B.set(D,setTimeout(function(){B.delete(D),B.length==0?Y=-1/0:D==Y&&(Y=Math.max(...B.keys()),console.assert(Y{let y=F.ptrToFileAsset(P);return y.isImage?F.ptrToImageAsset(P):y.isFont?F.ptrToFontAsset(P):y.isAudio?F.ptrToAudioAsset(P):y},F.CustomFileAssetLoader=Y.extend("CustomFileAssetLoader",{__construct:function({loadContents:P}){this.__parent.__construct.call(this),this.Eb=P},loadContents:function(P,y){return P=F.ptrToAsset(P),this.Eb(P,y)}}),F.CDNFileAssetLoader=Y.extend("CDNFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this)},loadContents:function(P){let y=F.ptrToAsset(P);if(P=y.cdnUuid,P==="")return!1;return function(l,i){var K0=new XMLHttpRequest;K0.responseType="arraybuffer",K0.onreadystatechange=function(){K0.readyState==4&&K0.status==200&&i(K0)},K0.open("GET",l,!0),K0.send(null)}(y.cdnBaseUrl+"/"+P,(l)=>{y.decode(new Uint8Array(l.response))}),!0}}),F.FallbackFileAssetLoader=Y.extend("FallbackFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this),this.kb=[]},addLoader:function(P){this.kb.push(P)},loadContents:function(P,y){for(let l of this.kb)if(l.loadContents(P,y))return!0;return!1}});let D=F.computeAlignment;F.computeAlignment=function(P,y,l,i,K0=1){return D.call(this,P,y,l,i,K0)}};let T="createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "),h=new function(){function H(){if(!B){let U1=function(L1,w0,E1){if(w0=D0.createShader(w0),D0.shaderSource(w0,E1),D0.compileShader(w0),E1=D0.getShaderInfoLog(w0),0<(E1||"").length)throw E1;D0.attachShader(L1,w0)};var r=document.createElement("canvas"),x0={alpha:1,depth:0,stencil:0,antialias:0,premultipliedAlpha:1,preserveDrawingBuffer:0,powerPreference:"high-performance",failIfMajorPerformanceCaveat:0,enableExtensionsByDefault:1,explicitSwapControl:1,renderViaOffscreenBackBuffer:1};let D0;if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){if(D0=r.getContext("webgl",x0),Y=1,!D0)return console.log("No WebGL support. Image mesh will not be drawn."),!1}else if(D0=r.getContext("webgl2",x0))Y=2;else if(D0=r.getContext("webgl",x0))Y=1;else return console.log("No WebGL support. Image mesh will not be drawn."),!1;if(D0=new Proxy(D0,{get(L1,w0){if(L1.isContextLost()){if(K0||(console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ",w0),K0=!0),typeof L1[w0]==="function")return function(){}}else return typeof L1[w0]==="function"?function(...E1){return L1[w0].apply(L1,E1)}:L1[w0]},set(L1,w0,E1){if(L1.isContextLost())K0||(console.error("Cannot render the mesh because the GL Context was lost. Tried to set property "+w0),K0=!0);else return L1[w0]=E1,!0}}),D=Math.min(D0.getParameter(D0.MAX_RENDERBUFFER_SIZE),D0.getParameter(D0.MAX_TEXTURE_SIZE)),r=D0.createProgram(),U1(r,D0.VERTEX_SHADER,`attribute vec2 vertex; attribute vec2 uv; uniform vec4 mat; uniform vec2 translate; varying vec2 st; void main() { st = uv; gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1); }`),U1(r,D0.FRAGMENT_SHADER,`precision highp float; uniform sampler2D image; varying vec2 st; void main() { gl_FragColor = texture2D(image, st); }`),D0.bindAttribLocation(r,0,"vertex"),D0.bindAttribLocation(r,1,"uv"),D0.linkProgram(r),x0=D0.getProgramInfoLog(r),0<(x0||"").trim().length)throw x0;P=D0.getUniformLocation(r,"mat"),y=D0.getUniformLocation(r,"translate"),D0.useProgram(r),D0.bindBuffer(D0.ARRAY_BUFFER,D0.createBuffer()),D0.enableVertexAttribArray(0),D0.enableVertexAttribArray(1),D0.bindBuffer(D0.ELEMENT_ARRAY_BUFFER,D0.createBuffer()),D0.uniform1i(D0.getUniformLocation(r,"image"),0),D0.pixelStorei(D0.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),B=D0}return!0}let B=null,Y=0,D=0,P=null,y=null,l=0,i=0,K0=!1;H(),this.bc=function(){return H(),D},this.Kb=function(r){B.deleteTexture&&B.deleteTexture(r)},this.Jb=function(r){if(!H())return null;let x0=B.createTexture();if(!x0)return null;return B.bindTexture(B.TEXTURE_2D,x0),B.texImage2D(B.TEXTURE_2D,0,B.RGBA,B.RGBA,B.UNSIGNED_BYTE,r),B.texParameteri(B.TEXTURE_2D,B.TEXTURE_WRAP_S,B.CLAMP_TO_EDGE),B.texParameteri(B.TEXTURE_2D,B.TEXTURE_WRAP_T,B.CLAMP_TO_EDGE),B.texParameteri(B.TEXTURE_2D,B.TEXTURE_MAG_FILTER,B.LINEAR),Y==2?(B.texParameteri(B.TEXTURE_2D,B.TEXTURE_MIN_FILTER,B.LINEAR_MIPMAP_LINEAR),B.generateMipmap(B.TEXTURE_2D)):B.texParameteri(B.TEXTURE_2D,B.TEXTURE_MIN_FILTER,B.LINEAR),x0};let e=new k(8),k0=new k(8),g0=new k(10),p0=new k(10);this.Nb=function(r,x0,D0,U1,L1){if(H()){var w0=e.push(r),E1=k0.push(x0);if(B.canvas){if(B.canvas.width!=w0||B.canvas.height!=E1)B.canvas.width=w0,B.canvas.height=E1;B.viewport(0,E1-x0,r,x0),B.disable(B.SCISSOR_TEST),B.clearColor(0,0,0,0),B.clear(B.COLOR_BUFFER_BIT),B.enable(B.SCISSOR_TEST),D0.sort((D1,h9)=>h9.vb-D1.vb),w0=g0.push(U1),l!=w0&&(B.bufferData(B.ARRAY_BUFFER,8*w0,B.DYNAMIC_DRAW),l=w0),w0=0;for(var N$ of D0)B.bufferSubData(B.ARRAY_BUFFER,w0,N$.Ta),w0+=4*N$.Ta.length;console.assert(w0==4*U1);for(var Z9 of D0)B.bufferSubData(B.ARRAY_BUFFER,w0,Z9.Bb),w0+=4*Z9.Bb.length;console.assert(w0==8*U1),w0=p0.push(L1),i!=w0&&(B.bufferData(B.ELEMENT_ARRAY_BUFFER,2*w0,B.DYNAMIC_DRAW),i=w0),N$=0;for(var u8 of D0)B.bufferSubData(B.ELEMENT_ARRAY_BUFFER,N$,u8.indices),N$+=2*u8.indices.length;console.assert(N$==2*L1),u8=0,Z9=!0,w0=N$=0;for(let D1 of D0){D1.image.Ja!=u8&&(B.bindTexture(B.TEXTURE_2D,D1.image.Ia||null),u8=D1.image.Ja),D1.hc?(B.scissor(D1.Za,E1-D1.$a-D1.jb,D1.uc,D1.jb),Z9=!0):Z9&&(B.scissor(0,E1-x0,r,x0),Z9=!1),D0=2/r;let h9=-2/x0;B.uniform4f(P,D1.ha[0]*D0*D1.Aa,D1.ha[1]*h9*D1.Ba,D1.ha[2]*D0*D1.Aa,D1.ha[3]*h9*D1.Ba),B.uniform2f(y,D1.ha[4]*D0*D1.Aa+D0*(D1.Za-D1.cc*D1.Aa)-1,D1.ha[5]*h9*D1.Ba+h9*(D1.$a-D1.dc*D1.Ba)+1),B.vertexAttribPointer(0,2,B.FLOAT,!1,0,w0),B.vertexAttribPointer(1,2,B.FLOAT,!1,0,w0+4*U1),B.drawElements(B.TRIANGLES,D1.indices.length,B.UNSIGNED_SHORT,N$),w0+=4*D1.Ta.length,N$+=2*D1.indices.length}console.assert(w0==4*U1),console.assert(N$==2*L1)}}},this.canvas=function(){return H()&&B.canvas}},b=F.onRuntimeInitialized;F.onRuntimeInitialized=function(){function H(Y0){switch(Y0){case e.srcOver:return"source-over";case e.screen:return"screen";case e.overlay:return"overlay";case e.darken:return"darken";case e.lighten:return"lighten";case e.colorDodge:return"color-dodge";case e.colorBurn:return"color-burn";case e.hardLight:return"hard-light";case e.softLight:return"soft-light";case e.difference:return"difference";case e.exclusion:return"exclusion";case e.multiply:return"multiply";case e.hue:return"hue";case e.saturation:return"saturation";case e.color:return"color";case e.luminosity:return"luminosity"}}function B(Y0){return"rgba("+((16711680&Y0)>>>16)+","+((65280&Y0)>>>8)+","+((255&Y0)>>>0)+","+((4278190080&Y0)>>>24)/255+")"}function Y(){0Y0)throw"restore() called without matching save().";this.T.splice(Y0),this.G.pop(),this.I.push(this.B.restore.bind(this.B))},transform:function(Y0,_0,F1,X1,C1,N1){let z1=this.T,P1=z1.length-6;z1.splice(P1,6,z1[P1]*Y0+z1[P1+2]*_0,z1[P1+1]*Y0+z1[P1+3]*_0,z1[P1]*F1+z1[P1+2]*X1,z1[P1+1]*F1+z1[P1+3]*X1,z1[P1]*C1+z1[P1+2]*N1+z1[P1+4],z1[P1+1]*C1+z1[P1+3]*N1+z1[P1+5]),this.I.push(this.B.transform.bind(this.B,Y0,_0,F1,X1,C1,N1))},rotate:function(Y0){let _0=Math.sin(Y0);Y0=Math.cos(Y0),this.transform(Y0,_0,-_0,Y0,0,0)},modulateOpacity:function(Y0){this.G[this.G.length-1]*=Y0},_drawPath:function(Y0,_0){this.I.push(_0.draw.bind(_0,this.B,Y0.U,Y0.Va===p0?"evenodd":"nonzero",Math.max(0,this.G[this.G.length-1])))},_drawRiveImage:function(Y0,_0,F1,X1){var C1=Y0.Db;if(C1){var N1=this.B,z1=H(F1),P1=Math.max(0,X1*this.G[this.G.length-1]);this.I.push(function(){N1.globalCompositeOperation=z1,N1.globalAlpha=P1,N1.drawImage(C1,0,0),N1.globalAlpha=1})}},_getMatrix:function(Y0){let _0=this.T,F1=_0.length-6;for(let X1=0;6>X1;++X1)Y0[X1]=_0[F1+X1]},_drawImageMesh:function(Y0,_0,F1,X1,C1,N1,z1,P1,_9,Z$,K9){_0=this.B.canvas.width;var j$=this.B.canvas.height;let YJ=Z$-P1,SQ=K9-_9;P1=Math.max(P1,0),_9=Math.max(_9,0),Z$=Math.min(Z$,_0),K9=Math.min(K9,j$);let z7=Z$-P1,L7=K9-_9;if(console.assert(z7<=Math.min(YJ,_0)),console.assert(L7<=Math.min(SQ,j$)),!(0>=z7||0>=L7)){Z$=z7j$&&(K9*=j$/w8,w8=j$),g8>j$&&(_0*=j$/g8,g8=j$),w0||(w0=new F.DynamicRectanizer(j$),w0.reset(512,512)),j$=w0.addRect(w8,g8),0>j$&&(Y(),L1.add(this),j$=w0.addRect(w8,g8),console.assert(0<=j$));var x5=j$&65535,f5=j$>>16;E1.push({ha:this.T.slice(this.T.length-6),image:Y0,Za:x5,$a:f5,cc:P1,dc:_9,uc:w8,jb:g8,Aa:K9,Ba:_0,Ta:new Float32Array(C1),Bb:new Float32Array(N1),indices:new Uint16Array(z1),hc:Z$,vb:Y0.Ja<<1|(Z$?1:0)}),N$+=C1.length,Z9+=z1.length;var OJ=this.B,u4=H(F1),w4=Math.max(0,X1*this.G[this.G.length-1]);this.I.push(function(){OJ.save(),OJ.resetTransform(),OJ.globalCompositeOperation=u4,OJ.globalAlpha=w4;let y5=h.canvas();y5&&OJ.drawImage(y5,x5,f5,w8,g8,P1,_9,z7,L7),OJ.restore()})}},_clipPath:function(Y0){this.I.push(this.B.clip.bind(this.B,Y0.U,Y0.Va===p0?"evenodd":"nonzero"))},clear:function(){L1.add(this),this.I.push(this.B.clearRect.bind(this.B,0,0,this.Ua.width,this.Ua.height))},flush:function(){},translate:function(Y0,_0){this.transform(1,0,0,1,Y0,_0)}});F.makeRenderer=function(Y0){let _0=new u8(Y0),F1=_0.B;return new Proxy(_0,{get(X1,C1){if(typeof X1[C1]==="function")return function(...N1){return X1[C1].apply(X1,N1)};if(typeof F1[C1]==="function"){if(-1{F1[C1]=N1}),!0}})},F.decodeImage=function(Y0,_0){new x0({la:_0}).decode(Y0)},F.renderFactory={makeRenderPaint:function(){return new U1},makeRenderPath:function(){return new D0},makeRenderImage:function(){let Y0=h9;return new x0({wa:()=>{Y0.total++},la:()=>{if(Y0.loaded++,Y0.loaded===Y0.total){let _0=Y0.ready;_0&&(_0(),Y0.ready=null)}}})}};let D1=F.load,h9=null;F.load=function(Y0,_0,F1=!0){let X1=new F.FallbackFileAssetLoader;return _0!==void 0&&X1.addLoader(_0),F1&&(_0=new F.CDNFileAssetLoader,X1.addLoader(_0)),new Promise(function(C1){let N1=null;h9={total:0,loaded:0,ready:function(){C1(N1)}},N1=D1(Y0,X1),h9.total==0&&C1(N1)})};let v4=F.RendererWrapper.prototype.align;F.RendererWrapper.prototype.align=function(Y0,_0,F1,X1,C1=1){v4.call(this,Y0,_0,F1,X1,C1)},D=new E,F.requestAnimationFrame=D.requestAnimationFrame.bind(D),F.cancelAnimationFrame=D.cancelAnimationFrame.bind(D),F.enableFPSCounter=D.Ob.bind(D),F.disableFPSCounter=D.Lb,D.ob=Y,F.resolveAnimationFrame=Y,F.cleanup=function(){w0&&w0.delete()}};var S=Object.assign({},F),u="./this.program",f="",m,_;if(C||A)A?f=self.location.href:typeof document<"u"&&document.currentScript&&(f=document.currentScript.src),X&&(f=X),f.startsWith("blob:")?f="":f=f.substr(0,f.replace(/[?#].*/,"").lastIndexOf("/")+1),A&&(_=(H)=>{var B=new XMLHttpRequest;return B.open("GET",H,!1),B.responseType="arraybuffer",B.send(null),new Uint8Array(B.response)}),m=(H,B,Y)=>{if(I0(H)){var D=new XMLHttpRequest;D.open("GET",H,!0),D.responseType="arraybuffer",D.onload=()=>{D.status==200||D.status==0&&D.response?B(D.response):Y()},D.onerror=Y,D.send(null)}else fetch(H,{credentials:"same-origin"}).then((P)=>P.ok?P.arrayBuffer():Promise.reject(Error(P.status+" : "+P.url))).then(B,Y)};var n=F.print||console.log.bind(console),q0=F.printErr||console.error.bind(console);Object.assign(F,S),S=null,F.thisProgram&&(u=F.thisProgram);var Q0;F.wasmBinary&&(Q0=F.wasmBinary);var z0,J0=!1,o,t,v,N0,W0,C0,h0,p;function a(){var H=z0.buffer;F.HEAP8=o=new Int8Array(H),F.HEAP16=v=new Int16Array(H),F.HEAPU8=t=new Uint8Array(H),F.HEAPU16=N0=new Uint16Array(H),F.HEAP32=W0=new Int32Array(H),F.HEAPU32=C0=new Uint32Array(H),F.HEAPF32=h0=new Float32Array(H),F.HEAPF64=p=new Float64Array(H)}var G0=[],H0=[],M0=[];function B0(){var H=F.preRun.shift();G0.unshift(H)}var R0=0,S0=null,V0=null;function P0(H){throw F.onAbort?.(H),H="Aborted("+H+")",q0(H),J0=!0,H=new WebAssembly.RuntimeError(H+". Build with -sASSERTIONS for more info."),R(H),H}var A0=(H)=>H.startsWith("data:application/octet-stream;base64,"),I0=(H)=>H.startsWith("file://"),c;function f0(H){if(H==c&&Q0)return new Uint8Array(Q0);if(_)return _(H);throw"both async and sync fetching of the wasm failed"}function d0(H){return Q0?Promise.resolve().then(()=>f0(H)):new Promise((B,Y)=>{m(H,(D)=>B(new Uint8Array(D)),()=>{try{B(f0(H))}catch(D){Y(D)}})})}function n0(H,B,Y){return d0(H).then((D)=>WebAssembly.instantiate(D,B)).then(Y,(D)=>{q0(`failed to asynchronously prepare wasm: ${D}`),P0(D)})}function u0(H,B){var Y=c;return Q0||typeof WebAssembly.instantiateStreaming!="function"||A0(Y)||I0(Y)||typeof fetch!="function"?n0(Y,H,B):fetch(Y,{credentials:"same-origin"}).then((D)=>WebAssembly.instantiateStreaming(D,H).then(B,function(P){return q0(`wasm streaming compile failed: ${P}`),q0("falling back to ArrayBuffer instantiation"),n0(Y,H,B)}))}var T0,t0,W1={490114:(H,B,Y,D,P)=>{if(typeof window>"u"||(window.AudioContext||window.webkitAudioContext)===void 0)return 0;if(typeof window.h>"u"){window.h={za:0},window.h.J={},window.h.J.xa=H,window.h.J.capture=B,window.h.J.Ka=Y,window.h.ga={},window.h.ga.stopped=D,window.h.ga.wb=P;let y=window.h;y.D=[],y.sc=function(l){for(var i=0;i{k5(i.pb)},(K0)=>{console.error("Failed to resume audiocontext",K0)})}y.Sa.map(function(K0){document.removeEventListener(K0,y.unlock,!0)})},y.Sa.map(function(l){document.addEventListener(l,y.unlock,!0)})}return window.h.za+=1,1},492292:()=>{typeof window.h<"u"&&(window.h.Sa.map(function(H){document.removeEventListener(H,window.h.unlock,!0)}),--window.h.za,window.h.za===0&&delete window.h)},492596:()=>navigator.mediaDevices!==void 0&&navigator.mediaDevices.getUserMedia!==void 0,492700:()=>{try{var H=new(window.AudioContext||window.webkitAudioContext),B=H.sampleRate;return H.close(),B}catch(Y){return 0}},492871:(H,B,Y,D,P,y)=>{if(typeof window.h>"u")return-1;var l={},i={};return H==window.h.J.xa&&Y!=0&&(i.sampleRate=Y),l.L=new(window.AudioContext||window.webkitAudioContext)(i),l.L.suspend(),l.state=window.h.ga.stopped,Y=0,H!=window.h.J.xa&&(Y=B),l.Z=l.L.createScriptProcessor(D,Y,B),l.Z.onaudioprocess=function(K0){if(l.ra==null||l.ra.length==0)l.ra=new Float32Array(h0.buffer,P,D*B);if(H==window.h.J.capture||H==window.h.J.Ka){for(var e=0;ewindow.h.qa(H).L.sampleRate,495821:(H)=>{H=window.h.qa(H),H.Z!==void 0&&(H.Z.onaudioprocess=function(){},H.Z.disconnect(),H.Z=void 0),H.Ca!==void 0&&(H.Ca.disconnect(),H.Ca=void 0),H.L.close(),H.L=void 0,H.pb=void 0},496221:(H)=>{window.h.Ab(H)},496271:(H)=>{H=window.h.qa(H),H.L.resume(),H.state=window.h.ga.wb},496410:(H)=>{H=window.h.qa(H),H.L.suspend(),H.state=window.h.ga.stopped}},M=(H)=>{for(;0>2];return q7+=4,H}var V=(H,B)=>{for(var Y=0,D=H.length-1;0<=D;D--){var P=H[D];P==="."?H.splice(D,1):P===".."?(H.splice(D,1),Y++):Y&&(H.splice(D,1),Y--)}if(B)for(;Y;Y--)H.unshift("..");return H},I=(H)=>{var B=H.charAt(0)==="/",Y=H.substr(-1)==="/";return(H=V(H.split("/").filter((D)=>!!D),!B).join("/"))||B||(H="."),H&&Y&&(H+="/"),(B?"/":"")+H},g=(H)=>{var B=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(H).slice(1);if(H=B[0],B=B[1],!H&&!B)return".";return B&&=B.substr(0,B.length-1),H+B},s=(H)=>{if(H==="/")return"/";H=I(H),H=H.replace(/\/$/,"");var B=H.lastIndexOf("/");return B===-1?H:H.substr(B+1)},j0=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return(H)=>crypto.getRandomValues(H);P0("initRandomDevice")},b0=(H)=>(b0=j0())(H),o0=(...H)=>{for(var B="",Y=!1,D=H.length-1;-1<=D&&!Y;D--){if(Y=0<=D?H[D]:"/",typeof Y!="string")throw TypeError("Arguments to path.resolve must be strings");if(!Y)return"";B=Y+"/"+B,Y=Y.charAt(0)==="/"}return B=V(B.split("/").filter((P)=>!!P),!Y).join("/"),(Y?"/":"")+B||"."},y0=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,l0=(H,B,Y)=>{var D=B+Y;for(Y=B;H[Y]&&!(Y>=D);)++Y;if(16P?D+=String.fromCharCode(P):(P-=65536,D+=String.fromCharCode(55296|P>>10,56320|P&1023))}}else D+=String.fromCharCode(P)}return D},$1=[],T1=(H)=>{for(var B=0,Y=0;Y=D?B++:2047>=D?B+=2:55296<=D&&57343>=D?(B+=4,++Y):B+=3}return B},Q1=(H,B,Y,D)=>{if(!(0=l){var i=H.charCodeAt(++y);l=65536+((l&1023)<<10)|i&1023}if(127>=l){if(Y>=D)break;B[Y++]=l}else{if(2047>=l){if(Y+1>=D)break;B[Y++]=192|l>>6}else{if(65535>=l){if(Y+2>=D)break;B[Y++]=224|l>>12}else{if(Y+3>=D)break;B[Y++]=240|l>>18,B[Y++]=128|l>>12&63}B[Y++]=128|l>>6&63}B[Y++]=128|l&63}}return B[Y]=0,Y-P};function i0(H,B){var Y=Array(T1(H)+1);return H=Q1(H,Y,0,Y.length),B&&(Y.length=H),Y}var h1=[];function j1(H,B){h1[H]={input:[],H:[],W:B},z8(H,A1)}var A1={open(H){var B=h1[H.node.ya];if(!B)throw new U0(43);H.s=B,H.seekable=!1},close(H){H.s.W.pa(H.s)},pa(H){H.s.W.pa(H.s)},read(H,B,Y,D){if(!H.s||!H.s.W.ib)throw new U0(60);for(var P=0,y=0;y=B||(B=Math.max(B,Y*(1048576>Y?2:1.125)>>>0),Y!=0&&(B=Math.max(B,256)),Y=H.l,H.l=new Uint8Array(B),0=H.node.v)return 0;if(H=Math.min(H.node.v-P,D),8B)throw new U0(28);return B},Ya(H,B,Y){v0(H.node,B+Y),H.node.v=Math.max(H.node.v,B+Y)},lb(H,B,Y,D,P){if((H.node.mode&61440)!==32768)throw new U0(43);if(H=H.node.l,P&2||H.buffer!==o.buffer){if(0{var Y=0;return H&&(Y|=365),B&&(Y|=146),Y},d=null,$0={},L0=[],Z0=1,E0=null,F0=!0,U0=class{constructor(H){this.name="ErrnoError",this.aa=H}},s0={},c0=class{constructor(){this.h={},this.node=null}get flags(){return this.h.flags}set flags(H){this.h.flags=H}get position(){return this.h.position}set position(H){this.h.position=H}},J1=class{constructor(H,B,Y,D){H||=this,this.parent=H,this.V=H.V,this.va=null,this.id=Z0++,this.name=B,this.mode=Y,this.j={},this.m={},this.ya=D}get read(){return(this.mode&365)===365}set read(H){H?this.mode|=365:this.mode&=-366}get write(){return(this.mode&146)===146}set write(H){H?this.mode|=146:this.mode&=-147}};function Z1(H,B={}){if(H=o0(H),!H)return{path:"",node:null};if(B=Object.assign({hb:!0,Pa:0},B),8!!l);for(var Y=d,D="/",P=0;P>>0)%E0.length}function K1(H,B){var Y=(H.mode&61440)===16384?(Y=n1(H,"x"))?Y:H.j.ka?0:2:54;if(Y)throw new U0(Y);for(Y=E0[q1(H.id,B)];Y;Y=Y.fc){var D=Y.name;if(Y.parent.id===H.id&&D===B)return Y}return H.j.ka(H,B)}function M1(H,B,Y,D){return H=new J1(H,B,Y,D),B=q1(H.parent.id,H.name),H.fc=E0[B],E0[B]=H}function a0(H){var B=["r","w","rw"][H&3];return H&512&&(B+="w"),B}function n1(H,B){if(F0)return 0;if(!B.includes("r")||H.mode&292){if(B.includes("w")&&!(H.mode&146)||B.includes("x")&&!(H.mode&73))return 2}else return 2;return 0}function b1(H,B){try{return K1(H,B),20}catch(Y){}return n1(H,"wx")}function _1(H){if(H=L0[H],!H)throw new U0(8);return H}function J$(H,B=-1){if(H=Object.assign(new c0,H),B==-1)$:{for(B=0;4096>=B;B++)if(!L0[B])break $;throw new U0(33)}return H.X=B,L0[B]=H}function F$(H,B=-1){return H=J$(H,B),H.m?.Fc?.(H),H}var o9={open(H){H.m=$0[H.node.ya].m,H.m.open?.(H)},ba(){throw new U0(70)}};function z8(H,B){$0[H]={m:B}}function G$(H,B){var Y=B==="/";if(Y&&d)throw new U0(10);if(!Y&&B){var D=Z1(B,{hb:!1});if(B=D.path,D=D.node,D.va)throw new U0(10);if((D.mode&61440)!==16384)throw new U0(54)}B={type:H,Nc:{},mb:B,ec:[]},H=H.V(B),H.V=B,B.root=H,Y?d=H:D&&(D.va=B,D.V&&D.V.ec.push(B))}function m1(H,B,Y){var D=Z1(H,{parent:!0}).node;if(H=s(H),!H||H==="."||H==="..")throw new U0(28);var P=b1(D,H);if(P)throw new U0(P);if(!D.j.ua)throw new U0(63);return D.j.ua(D,H,B,Y)}function Q$(H){return m1(H,16895,0)}function L8(H,B,Y){typeof Y>"u"&&(Y=B,B=438),m1(H,B|8192,Y)}function LJ(H,B){if(!o0(H))throw new U0(44);var Y=Z1(B,{parent:!0}).node;if(!Y)throw new U0(44);B=s(B);var D=b1(Y,B);if(D)throw new U0(D);if(!Y.j.Da)throw new U0(63);Y.j.Da(Y,B,H)}function y8(H){if(H=Z1(H).node,!H)throw new U0(44);if(!H.j.ma)throw new U0(28);return o0(V1(H.parent),H.j.ma(H))}function _$(H,B,Y){if(H==="")throw new U0(44);if(typeof B=="string"){var D={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[B];if(typeof D>"u")throw Error(`Unknown file open mode: ${B}`);B=D}if(Y=B&64?(typeof Y>"u"?438:Y)&4095|32768:0,typeof H=="object")var P=H;else{H=I(H);try{P=Z1(H,{gb:!(B&131072)}).node}catch(y){}}if(D=!1,B&64)if(P){if(B&128)throw new U0(20)}else P=m1(H,Y,0),D=!0;if(!P)throw new U0(44);if((P.mode&61440)===8192&&(B&=-513),B&65536&&(P.mode&61440)!==16384)throw new U0(54);if(!D&&(Y=P?(P.mode&61440)===40960?32:(P.mode&61440)===16384&&(a0(B)!=="r"||B&512)?31:n1(P,a0(B)):44))throw new U0(Y);if(B&512&&!D){if(Y=P,Y=typeof Y=="string"?Z1(Y,{gb:!0}).node:Y,!Y.j.R)throw new U0(63);if((Y.mode&61440)===16384)throw new U0(31);if((Y.mode&61440)!==32768)throw new U0(28);if(D=n1(Y,"w"))throw new U0(D);Y.j.R(Y,{size:0,timestamp:Date.now()})}return B&=-131713,P=J$({node:P,path:V1(P),flags:B,seekable:!0,position:0,m:P.m,tc:[],error:!1}),P.m.open&&P.m.open(P),!F.logReadFiles||B&1||(rZ||={},(H in rZ)||(rZ[H]=1)),P}function F8(H,B,Y){if(H.X===null)throw new U0(8);if(!H.seekable||!H.m.ba)throw new U0(70);if(Y!=0&&Y!=1&&Y!=2)throw new U0(28);H.position=H.m.ba(H,B,Y),H.tc=[]}var h8;function n$(H,B,Y){H=I("/dev/"+H);var D=X0(!!B,!!Y);q5||=64;var P=q5++<<8|0;z8(P,{open(y){y.seekable=!1},close(){Y?.buffer?.length&&Y(10)},read(y,l,i,K0){for(var e=0,k0=0;k0Object.defineProperty(B,"name",{value:H}),aZ=[],l9=[],e0,x9=(H)=>{if(!H)throw new e0("Cannot use deleted val. handle = "+H);return l9[H]},f9=(H)=>{switch(H){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:let B=aZ.pop()||l9.length;return l9[B]=H,l9[B+1]=1,B}},U5=(H)=>{var B=Error,Y=FJ(H,function(D){this.name=H,this.message=D,D=Error(D).stack,D!==void 0&&(this.stack=this.toString()+` `+D.replace(/^Error(:[^\n]*)?\n/,""))});return Y.prototype=Object.create(B.prototype),Y.prototype.constructor=Y,Y.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},Y},W5,H5,a1=(H)=>{for(var B="";t[H];)B+=H5[t[H++]];return B},U7=[],tZ=()=>{for(;U7.length;){var H=U7.pop();H.g.fa=!1,H.delete()}},W7,n9={},eZ=(H,B)=>{if(B===void 0)throw new e0("ptr should not be undefined");for(;H.C;)B=H.na(B),H=H.C;return B},v8={},G5=(H)=>{H=A5(H);var B=a1(H);return s9(H),B},H7=(H,B)=>{var Y=v8[H];if(Y===void 0)throw H=`${B} has unknown type ${G5(H)}`,new e0(H);return Y},YQ=()=>{},$K=!1,j5=(H,B,Y)=>{if(B===Y)return H;if(Y.C===void 0)return null;return H=j5(H,B,Y.C),H===null?null:Y.Mb(H)},B5={},j4=(H,B)=>{return B=eZ(H,B),n9[B]},G7,OQ=(H,B)=>{if(!B.u||!B.o)throw new G7("makeClassHandle requires ptr and ptrType");if(!!B.K!==!!B.F)throw new G7("Both smartPtrType and smartPtr must be specified");return B.count={value:1},NJ(Object.create(H,{g:{value:B,writable:!0}}))},NJ=(H)=>{if(typeof FinalizationRegistry>"u")return NJ=(B)=>B,H;return $K=new FinalizationRegistry((B)=>{B=B.g,--B.count.value,B.count.value===0&&(B.F?B.K.P(B.F):B.u.i.P(B.o))}),NJ=(B)=>{var Y=B.g;return Y.F&&$K.register(B,{g:Y},B),B},YQ=(B)=>{$K.unregister(B)},NJ(H)},RQ={},j7=(H)=>{for(;H.length;){var B=H.pop();H.pop()(B)}};function B7(H){return this.fromWireType(C0[H>>2])}var VJ={},DQ={},Q9=(H,B,Y)=>{function D(i){if(i=Y(i),i.length!==H.length)throw new G7("Mismatched type converter count");for(var K0=0;K0{v8.hasOwnProperty(i)?P[K0]=v8[i]:(y.push(i),VJ.hasOwnProperty(i)||(VJ[i]=[]),VJ[i].push(()=>{P[K0]=v8[i],++l,l===y.length&&D(P)}))}),y.length===0&&D(P)};function B4(H,B,Y={}){var D=B.name;if(!H)throw new e0(`type "${D}" must have a positive integer typeid pointer`);if(v8.hasOwnProperty(H)){if(Y.Wb)return;throw new e0(`Cannot register type '${D}' twice`)}v8[H]=B,delete DQ[H],VJ.hasOwnProperty(H)&&(B=VJ[H],delete VJ[H],B.forEach((P)=>P()))}function y9(H,B,Y={}){if(!("argPackAdvance"in B))throw TypeError("registerType registeredInstance requires argPackAdvance");return B4(H,B,Y)}var JK=(H)=>{throw new e0(H.g.u.i.name+" instance already deleted")};function MQ(){}var QK=(H,B,Y)=>{if(H[B].A===void 0){var D=H[B];H[B]=function(...P){if(!H[B].A.hasOwnProperty(P.length))throw new e0(`Function '${Y}' called with an invalid number of arguments (${P.length}) - expects one of (${H[B].A})!`);return H[B].A[P.length].apply(this,P)},H[B].A=[],H[B].A[D.ea]=D}},ZK=(H,B,Y)=>{if(F.hasOwnProperty(H)){if(Y===void 0||F[H].A!==void 0&&F[H].A[Y]!==void 0)throw new e0(`Cannot register public name '${H}' twice`);if(QK(F,H,H),F.hasOwnProperty(Y))throw new e0(`Cannot register multiple overloads of a function with the same number of arguments (${Y})!`);F[H].A[Y]=B}else F[H]=B,Y!==void 0&&(F[H].Mc=Y)},X4=(H)=>{if(H===void 0)return"_unknown";H=H.replace(/[^a-zA-Z0-9_]/g,"$");var B=H.charCodeAt(0);return 48<=B&&57>=B?`_${H}`:H};function z4(H,B,Y,D,P,y,l,i){this.name=H,this.constructor=B,this.N=Y,this.P=D,this.C=P,this.Rb=y,this.na=l,this.Mb=i,this.qb=[]}var CQ=(H,B,Y)=>{for(;B!==Y;){if(!B.na)throw new e0(`Expected null or instance of ${Y.name}, got an instance of ${B.name}`);H=B.na(H),B=B.C}return H};function L4(H,B){if(B===null){if(this.Ma)throw new e0(`null is not a valid ${this.name}`);return 0}if(!B.g)throw new e0(`Cannot pass "${WK(B)}" as a ${this.name}`);if(!B.g.o)throw new e0(`Cannot pass deleted object as a pointer of type ${this.name}`);return CQ(B.g.o,B.g.u.i,this.i)}function F4(H,B){if(B===null){if(this.Ma)throw new e0(`null is not a valid ${this.name}`);if(this.ta){var Y=this.Oa();return H!==null&&H.push(this.P,Y),Y}return 0}if(!B||!B.g)throw new e0(`Cannot pass "${WK(B)}" as a ${this.name}`);if(!B.g.o)throw new e0(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.sa&&B.g.u.sa)throw new e0(`Cannot convert argument of type ${B.g.K?B.g.K.name:B.g.u.name} to parameter type ${this.name}`);if(Y=CQ(B.g.o,B.g.u.i,this.i),this.ta){if(B.g.F===void 0)throw new e0("Passing raw pointer to smart pointer is illegal");switch(this.nc){case 0:if(B.g.K===this)Y=B.g.F;else throw new e0(`Cannot convert argument of type ${B.g.K?B.g.K.name:B.g.u.name} to parameter type ${this.name}`);break;case 1:Y=B.g.F;break;case 2:if(B.g.K===this)Y=B.g.F;else{var D=B.clone();Y=this.jc(Y,f9(()=>D.delete())),H!==null&&H.push(this.P,Y)}break;default:throw new e0("Unsupporting sharing policy")}}return Y}function N4(H,B){if(B===null){if(this.Ma)throw new e0(`null is not a valid ${this.name}`);return 0}if(!B.g)throw new e0(`Cannot pass "${WK(B)}" as a ${this.name}`);if(!B.g.o)throw new e0(`Cannot pass deleted object as a pointer of type ${this.name}`);if(B.g.u.sa)throw new e0(`Cannot convert argument of type ${B.g.u.name} to parameter type ${this.name}`);return CQ(B.g.o,B.g.u.i,this.i)}function AQ(H,B,Y,D,P,y,l,i,K0,e,k0){this.name=H,this.i=B,this.Ma=Y,this.sa=D,this.ta=P,this.ic=y,this.nc=l,this.rb=i,this.Oa=K0,this.jc=e,this.P=k0,P||B.C!==void 0?this.toWireType=F4:(this.toWireType=D?L4:N4,this.M=null)}var X5=(H,B,Y)=>{if(!F.hasOwnProperty(H))throw new G7("Replacing nonexistent public symbol");F[H].A!==void 0&&Y!==void 0?F[H].A[Y]=B:(F[H]=B,F[H].ea=Y)},kQ=[],z5,KK=(H)=>{var B=kQ[H];return B||(H>=kQ.length&&(kQ.length=H+1),kQ[H]=B=z5.get(H)),B},V4=(H,B,Y=[])=>{return H.includes("j")?(H=H.replace(/p/g,"i"),B=(0,F["dynCall_"+H])(B,...Y)):B=KK(B)(...Y),B},Y4=(H,B)=>(...Y)=>V4(H,B,Y),E$=(H,B)=>{H=a1(H);var Y=H.includes("j")?Y4(H,B):KK(B);if(typeof Y!="function")throw new e0(`unknown function pointer with signature ${H}: ${B}`);return Y},L5,i9=(H,B)=>{function Y(y){P[y]||v8[y]||(DQ[y]?DQ[y].forEach(Y):(D.push(y),P[y]=!0))}var D=[],P={};throw B.forEach(Y),new L5(`${H}: `+D.map(G5).join([", "]))};function O4(H){for(var B=1;By)throw new e0("argTypes array size mismatch! Must at least get return value and 'this' types!");var l=B[1]!==null&&Y!==null,i=O4(B),K0=B[0].name!=="void",e=y-2,k0=Array(e),g0=[],p0=[];return FJ(H,function(...r){if(r.length!==e)throw new e0(`function ${H} called with ${r.length} arguments, expected ${e}`);if(p0.length=0,g0.length=l?2:1,g0[0]=P,l){var x0=B[1].toWireType(p0,this);g0[1]=x0}for(var D0=0;D0{for(var Y=[],D=0;D>2]);return Y},qK=(H)=>{H=H.trim();let B=H.indexOf("(");return B!==-1?H.substr(0,B):H},F5=(H,B,Y)=>{if(!(H instanceof Object))throw new e0(`${Y} with invalid "this": ${H}`);if(!(H instanceof B.i.constructor))throw new e0(`${Y} incompatible with "this" of type ${H.constructor.name}`);if(!H.g.o)throw new e0(`cannot call emscripten binding method ${Y} on deleted object`);return CQ(H.g.o,H.g.u.i,B.i)},UK=(H)=>{9{var B=x9(H);return UK(H),B},toWireType:(H,B)=>f9(B),argPackAdvance:8,readValueFromPointer:B7,M:null},D4=(H,B,Y)=>{switch(B){case 1:return Y?function(D){return this.fromWireType(o[D])}:function(D){return this.fromWireType(t[D])};case 2:return Y?function(D){return this.fromWireType(v[D>>1])}:function(D){return this.fromWireType(N0[D>>1])};case 4:return Y?function(D){return this.fromWireType(W0[D>>2])}:function(D){return this.fromWireType(C0[D>>2])};default:throw TypeError(`invalid integer width (${B}): ${H}`)}},WK=(H)=>{if(H===null)return"null";var B=typeof H;return B==="object"||B==="array"||B==="function"?H.toString():""+H},M4=(H,B)=>{switch(B){case 4:return function(Y){return this.fromWireType(h0[Y>>2])};case 8:return function(Y){return this.fromWireType(p[Y>>3])};default:throw TypeError(`invalid float width (${B}): ${H}`)}},C4=(H,B,Y)=>{switch(B){case 1:return Y?(D)=>o[D]:(D)=>t[D];case 2:return Y?(D)=>v[D>>1]:(D)=>N0[D>>1];case 4:return Y?(D)=>W0[D>>2]:(D)=>C0[D>>2];default:throw TypeError(`invalid integer width (${B}): ${H}`)}},N5=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,A4=(H,B)=>{var Y=H>>1;for(var D=Y+B/2;!(Y>=D)&&N0[Y];)++Y;if(Y<<=1,32=B/2);++D){var P=v[H+2*D>>1];if(P==0)break;Y+=String.fromCharCode(P)}return Y},k4=(H,B,Y)=>{if(Y??=2147483647,2>Y)return 0;Y-=2;var D=B;Y=Y<2*H.length?Y/2:H.length;for(var P=0;P>1]=H.charCodeAt(P),B+=2;return v[B>>1]=0,B-D},I4=(H)=>2*H.length,P4=(H,B)=>{for(var Y=0,D="";!(Y>=B/4);){var P=W0[H+4*Y>>2];if(P==0)break;++Y,65536<=P?(P-=65536,D+=String.fromCharCode(55296|P>>10,56320|P&1023)):D+=String.fromCharCode(P)}return D},T4=(H,B,Y)=>{if(Y??=2147483647,4>Y)return 0;var D=B;Y=D+Y-4;for(var P=0;P=y){var l=H.charCodeAt(++P);y=65536+((y&1023)<<10)|l&1023}if(W0[B>>2]=y,B+=4,B+4>Y)break}return W0[B>>2]=0,B-D},E4=(H)=>{for(var B=0,Y=0;Y=D&&++Y,B+=4}return B},V5=(H,B,Y)=>{var D=[];return H=H.toWireType(D,Y),D.length&&(C0[B>>2]=f9(D)),H},S4={},HK=(H)=>{var B=S4[H];return B===void 0?a1(H):B},GK=[],b4=(H)=>{var B=GK.length;return GK.push(H),B},x4=(H,B)=>{for(var Y=Array(H),D=0;D>2],"parameter "+D);return Y},f4=Reflect.construct,X7=(H)=>H%4===0&&(H%100!==0||H%400===0),y4=[0,31,60,91,121,152,182,213,244,274,305,335],h4=[0,31,59,90,120,151,181,212,243,273,304,334],jK=[],BK={},Y5=()=>{if(!XK){var H={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:u||"./this.program"},B;for(B in BK)BK[B]===void 0?delete H[B]:H[B]=BK[B];var Y=[];for(B in H)Y.push(`${B}=${H[B]}`);XK=Y}return XK},XK,O5=[31,29,31,30,31,30,31,31,30,31,30,31],R5=[31,28,31,30,31,30,31,31,30,31,30,31],D5=(H,B,Y,D)=>{function P(r,x0,D0){for(r=typeof r=="number"?r.toString():r||"";r.lengthL1?-1:0U1-r.getDate())x0-=U1-r.getDate()+1,r.setDate(1),11>D0?r.setMonth(D0+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1));else{r.setDate(r.getDate()+x0);break}}return D0=new Date(r.getFullYear()+1,0,4),x0=i(new Date(r.getFullYear(),0,4)),D0=i(D0),0>=l(x0,r)?0>=l(D0,r)?r.getFullYear()+1:r.getFullYear():r.getFullYear()-1}var e=C0[D+40>>2];D={qc:W0[D>>2],pc:W0[D+4>>2],Ea:W0[D+8>>2],Ra:W0[D+12>>2],Fa:W0[D+16>>2],da:W0[D+20>>2],S:W0[D+24>>2],ca:W0[D+28>>2],Oc:W0[D+32>>2],oc:W0[D+36>>2],rc:e?e?l0(t,e):"":""},Y=Y?l0(t,Y):"",e={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var k0 in e)Y=Y.replace(new RegExp(k0,"g"),e[k0]);var g0="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),p0="January February March April May June July August September October November December".split(" ");e={"%a":(r)=>g0[r.S].substring(0,3),"%A":(r)=>g0[r.S],"%b":(r)=>p0[r.Fa].substring(0,3),"%B":(r)=>p0[r.Fa],"%C":(r)=>y((r.da+1900)/100|0,2),"%d":(r)=>y(r.Ra,2),"%e":(r)=>P(r.Ra,2," "),"%g":(r)=>K0(r).toString().substring(2),"%G":K0,"%H":(r)=>y(r.Ea,2),"%I":(r)=>{return r=r.Ea,r==0?r=12:12{for(var x0=0,D0=0;D0<=r.Fa-1;x0+=(X7(r.da+1900)?O5:R5)[D0++]);return y(r.Ra+x0,3)},"%m":(r)=>y(r.Fa+1,2),"%M":(r)=>y(r.pc,2),"%n":()=>` `,"%p":(r)=>0<=r.Ea&&12>r.Ea?"AM":"PM","%S":(r)=>y(r.qc,2),"%t":()=>"\t","%u":(r)=>r.S||7,"%U":(r)=>y(Math.floor((r.ca+7-r.S)/7),2),"%V":(r)=>{var x0=Math.floor((r.ca+7-(r.S+6)%7)/7);if(2>=(r.S+371-r.ca-2)%7&&x0++,x0)x0==53&&(D0=(r.S+371-r.ca)%7,D0==4||D0==3&&X7(r.da)||(x0=1));else{x0=52;var D0=(r.S+7-r.ca-1)%7;(D0==4||D0==5&&X7(r.da%400-1))&&x0++}return y(x0,2)},"%w":(r)=>r.S,"%W":(r)=>y(Math.floor((r.ca+7-(r.S+6)%7)/7),2),"%y":(r)=>(r.da+1900).toString().substring(2),"%Y":(r)=>r.da+1900,"%z":(r)=>{r=r.oc;var x0=0<=r;return r=Math.abs(r)/60,(x0?"+":"-")+String("0000"+(r/60*100+r%60)).slice(-4)},"%Z":(r)=>r.rc,"%%":()=>"%"},Y=Y.replace(/%%/g,"\x00\x00");for(k0 in e)Y.includes(k0)&&(Y=Y.replace(new RegExp(k0,"g"),e[k0](D)));if(Y=Y.replace(/\0\0/g,"%"),k0=i0(Y,!1),k0.length>B)return 0;return o.set(k0,H),k0.length-1};[44].forEach((H)=>{s0[H]=new U0(H),s0[H].stack=""}),E0=Array(4096),G$(w,"/"),Q$("/tmp"),Q$("/home"),Q$("/home/web_user"),function(){Q$("/dev"),z8(259,{read:()=>0,write:(D,P,y,l)=>l}),L8("/dev/null",259),j1(1280,S1),j1(1536,H$),L8("/dev/tty",1280),L8("/dev/tty1",1536);var H=new Uint8Array(1024),B=0,Y=()=>{return B===0&&(B=b0(H).byteLength),H[--B]};n$("random",Y),n$("urandom",Y),Q$("/dev/shm"),Q$("/dev/shm/tmp")}(),function(){Q$("/proc");var H=Q$("/proc/self");Q$("/proc/self/fd"),G$({V(){var B=M1(H,"fd",16895,73);return B.j={ka(Y,D){var P=_1(+D);return Y={parent:null,V:{mb:"fake"},j:{ma:()=>P.path}},Y.parent=Y}},B}},"/proc/self/fd")}(),e0=F.BindingError=class extends Error{constructor(H){super(H);this.name="BindingError"}},l9.push(0,1,void 0,1,null,1,!0,1,!1,1),F.count_emval_handles=()=>l9.length/2-5-aZ.length,W5=F.PureVirtualError=U5("PureVirtualError");for(var M5=Array(256),TQ=0;256>TQ;++TQ)M5[TQ]=String.fromCharCode(TQ);H5=M5,F.getInheritedInstanceCount=()=>Object.keys(n9).length,F.getLiveInheritedInstances=()=>{var H=[],B;for(B in n9)n9.hasOwnProperty(B)&&H.push(n9[B]);return H},F.flushPendingDeletes=tZ,F.setDelayFunction=(H)=>{W7=H,U7.length&&W7&&W7(tZ)},G7=F.InternalError=class extends Error{constructor(H){super(H);this.name="InternalError"}},Object.assign(MQ.prototype,{isAliasOf:function(H){if(!(this instanceof MQ&&H instanceof MQ))return!1;var B=this.g.u.i,Y=this.g.o;H.g=H.g;var D=H.g.u.i;for(H=H.g.o;B.C;)Y=B.na(Y),B=B.C;for(;D.C;)H=D.na(H),D=D.C;return B===D&&Y===H},clone:function(){if(this.g.o||JK(this),this.g.ia)return this.g.count.value+=1,this;var H=NJ,B=Object,Y=B.create,D=Object.getPrototypeOf(this),P=this.g;return H=H(Y.call(B,D,{g:{value:{count:P.count,fa:P.fa,ia:P.ia,o:P.o,u:P.u,F:P.F,K:P.K}}})),H.g.count.value+=1,H.g.fa=!1,H},["delete"](){if(this.g.o||JK(this),this.g.fa&&!this.g.ia)throw new e0("Object already scheduled for deletion");YQ(this);var H=this.g;--H.count.value,H.count.value===0&&(H.F?H.K.P(H.F):H.u.i.P(H.o)),this.g.ia||(this.g.F=void 0,this.g.o=void 0)},isDeleted:function(){return!this.g.o},deleteLater:function(){if(this.g.o||JK(this),this.g.fa&&!this.g.ia)throw new e0("Object already scheduled for deletion");return U7.push(this),U7.length===1&&W7&&W7(tZ),this.g.fa=!0,this}}),Object.assign(AQ.prototype,{Sb(H){return this.rb&&(H=this.rb(H)),H},bb(H){this.P?.(H)},argPackAdvance:8,readValueFromPointer:B7,fromWireType:function(H){function B(){return this.ta?OQ(this.i.N,{u:this.ic,o:Y,K:this,F:H}):OQ(this.i.N,{u:this,o:H})}var Y=this.Sb(H);if(!Y)return this.bb(H),null;var D=j4(this.i,Y);if(D!==void 0){if(D.g.count.value===0)return D.g.o=Y,D.g.F=H,D.clone();return D=D.clone(),this.bb(H),D}if(D=this.i.Rb(Y),D=B5[D],!D)return B.call(this);D=this.sa?D.Ib:D.pointerType;var P=j5(Y,this.i,D.i);return P===null?B.call(this):this.ta?OQ(D.i.N,{u:D,o:P,K:this,F:H}):OQ(D.i.N,{u:D,o:P})}}),L5=F.UnboundTypeError=U5("UnboundTypeError");var C5={__syscall_fcntl64:function(H,B,Y){q7=Y;try{var D=_1(H);switch(B){case 0:var P=z();if(0>P)break;for(;L0[P];)P++;return F$(D,P).X;case 1:case 2:return 0;case 3:return D.flags;case 4:return P=z(),D.flags|=P,0;case 12:return P=z(),v[P+0>>1]=2,0;case 13:case 14:return 0}return-28}catch(y){if(typeof _8>"u"||y.name!=="ErrnoError")throw y;return-y.aa}},__syscall_ioctl:function(H,B,Y){q7=Y;try{var D=_1(H);switch(B){case 21509:return D.s?0:-59;case 21505:if(!D.s)return-59;if(D.s.W.Yb){H=[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];var P=z();W0[P>>2]=25856,W0[P+4>>2]=5,W0[P+8>>2]=191,W0[P+12>>2]=35387;for(var y=0;32>y;y++)o[P+y+17]=H[y]||0}return 0;case 21510:case 21511:case 21512:return D.s?0:-59;case 21506:case 21507:case 21508:if(!D.s)return-59;if(D.s.W.Zb)for(P=z(),H=[],y=0;32>y;y++)H.push(o[P+y+17]);return 0;case 21519:if(!D.s)return-59;return P=z(),W0[P>>2]=0;case 21520:return D.s?-28:-59;case 21531:if(P=z(),!D.m.Xb)throw new U0(59);return D.m.Xb(D,B,P);case 21523:if(!D.s)return-59;return D.s.W.$b&&(y=[24,80],P=z(),v[P>>1]=y[0],v[P+2>>1]=y[1]),0;case 21524:return D.s?0:-59;case 21515:return D.s?0:-59;default:return-28}}catch(l){if(typeof _8>"u"||l.name!=="ErrnoError")throw l;return-l.aa}},__syscall_openat:function(H,B,Y,D){q7=D;try{B=B?l0(t,B):"";var P=B;if(P.charAt(0)==="/")B=P;else{var y=H===-100?"/":_1(H).path;if(P.length==0)throw new U0(44);B=I(y+"/"+P)}var l=D?z():0;return _$(B,Y,l).X}catch(i){if(typeof _8>"u"||i.name!=="ErrnoError")throw i;return-i.aa}},_abort_js:()=>{P0("")},_embind_create_inheriting_constructor:(H,B,Y)=>{H=a1(H),B=H7(B,"wrapper"),Y=x9(Y);var D=B.i,P=D.N,y=D.C.N,l=D.C.constructor;return H=FJ(H,function(...i){D.C.qb.forEach(function(K0){if(this[K0]===y[K0])throw new W5(`Pure virtual function ${K0} must be implemented in JavaScript`)}.bind(this)),Object.defineProperty(this,"__parent",{value:P}),this.__construct(...i)}),P.__construct=function(...i){if(this===P)throw new e0("Pass correct 'this' to __construct");i=l.implement(this,...i),YQ(i);var K0=i.g;if(i.notifyOnDestruction(),K0.ia=!0,Object.defineProperties(this,{g:{value:K0}}),NJ(this),i=K0.o,i=eZ(D,i),n9.hasOwnProperty(i))throw new e0(`Tried to register registered instance: ${i}`);n9[i]=this},P.__destruct=function(){if(this===P)throw new e0("Pass correct 'this' to __destruct");YQ(this);var i=this.g.o;if(i=eZ(D,i),n9.hasOwnProperty(i))delete n9[i];else throw new e0(`Tried to unregister unregistered instance: ${i}`)},H.prototype=Object.create(P),Object.assign(H.prototype,Y),f9(H)},_embind_finalize_value_object:(H)=>{var B=RQ[H];delete RQ[H];var{Oa:Y,P:D,fb:P}=B,y=P.map((l)=>l.Vb).concat(P.map((l)=>l.lc));Q9([H],y,(l)=>{var i={};return P.forEach((K0,e)=>{var k0=l[e],g0=K0.Tb,p0=K0.Ub,r=l[e+P.length],x0=K0.kc,D0=K0.mc;i[K0.Pb]={read:(U1)=>k0.fromWireType(g0(p0,U1)),write:(U1,L1)=>{var w0=[];x0(D0,U1,r.toWireType(w0,L1)),j7(w0)}}}),[{name:B.name,fromWireType:(K0)=>{var e={},k0;for(k0 in i)e[k0]=i[k0].read(K0);return D(K0),e},toWireType:(K0,e)=>{for(var k0 in i)if(!(k0 in e))throw TypeError(`Missing field: "${k0}"`);var g0=Y();for(k0 in i)i[k0].write(g0,e[k0]);return K0!==null&&K0.push(D,g0),g0},argPackAdvance:8,readValueFromPointer:B7,M:D}]})},_embind_register_bigint:()=>{},_embind_register_bool:(H,B,Y,D)=>{B=a1(B),y9(H,{name:B,fromWireType:function(P){return!!P},toWireType:function(P,y){return y?Y:D},argPackAdvance:8,readValueFromPointer:function(P){return this.fromWireType(t[P])},M:null})},_embind_register_class:(H,B,Y,D,P,y,l,i,K0,e,k0,g0,p0)=>{k0=a1(k0),y=E$(P,y),i&&=E$(l,i),e&&=E$(K0,e),p0=E$(g0,p0);var r=X4(k0);ZK(r,function(){i9(`Cannot construct ${k0} due to unbound types`,[D])}),Q9([H,B,Y],D?[D]:[],(x0)=>{if(x0=x0[0],D)var D0=x0.i,U1=D0.N;else U1=MQ.prototype;x0=FJ(k0,function(...N$){if(Object.getPrototypeOf(this)!==L1)throw new e0("Use 'new' to construct "+k0);if(w0.$===void 0)throw new e0(k0+" has no accessible constructor");var Z9=w0.$[N$.length];if(Z9===void 0)throw new e0(`Tried to invoke ctor of ${k0} with invalid number of parameters (${N$.length}) - expected (${Object.keys(w0.$).toString()}) parameters instead!`);return Z9.apply(this,N$)});var L1=Object.create(U1,{constructor:{value:x0}});x0.prototype=L1;var w0=new z4(k0,x0,L1,p0,D0,y,i,e);if(w0.C){var E1;(E1=w0.C).oa??(E1.oa=[]),w0.C.oa.push(w0)}return D0=new AQ(k0,w0,!0,!1,!1),E1=new AQ(k0+"*",w0,!1,!1,!1),U1=new AQ(k0+" const*",w0,!1,!0,!1),B5[H]={pointerType:E1,Ib:U1},X5(r,x0),[D0,E1,U1]})},_embind_register_class_class_function:(H,B,Y,D,P,y,l)=>{var i=PQ(Y,D);B=a1(B),B=qK(B),y=E$(P,y),Q9([],[H],(K0)=>{function e(){i9(`Cannot call ${k0} due to unbound types`,i)}K0=K0[0];var k0=`${K0.name}.${B}`;B.startsWith("@@")&&(B=Symbol[B.substring(2)]);var g0=K0.i.constructor;return g0[B]===void 0?(e.ea=Y-1,g0[B]=e):(QK(g0,B,k0),g0[B].A[Y-1]=e),Q9([],i,(p0)=>{if(p0=IQ(k0,[p0[0],null].concat(p0.slice(1)),null,y,l),g0[B].A===void 0?(p0.ea=Y-1,g0[B]=p0):g0[B].A[Y-1]=p0,K0.i.oa)for(let r of K0.i.oa)r.constructor.hasOwnProperty(B)||(r.constructor[B]=p0);return[]}),[]})},_embind_register_class_class_property:(H,B,Y,D,P,y,l,i)=>{B=a1(B),y=E$(P,y),Q9([],[H],(K0)=>{K0=K0[0];var e=`${K0.name}.${B}`,k0={get(){i9(`Cannot access ${e} due to unbound types`,[Y])},enumerable:!0,configurable:!0};return k0.set=i?()=>{i9(`Cannot access ${e} due to unbound types`,[Y])}:()=>{throw new e0(`${e} is a read-only property`)},Object.defineProperty(K0.i.constructor,B,k0),Q9([],[Y],(g0)=>{g0=g0[0];var p0={get(){return g0.fromWireType(y(D))},enumerable:!0};return i&&(i=E$(l,i),p0.set=(r)=>{var x0=[];i(D,g0.toWireType(x0,r)),j7(x0)}),Object.defineProperty(K0.i.constructor,B,p0),[]}),[]})},_embind_register_class_constructor:(H,B,Y,D,P,y)=>{var l=PQ(B,Y);P=E$(D,P),Q9([],[H],(i)=>{i=i[0];var K0=`constructor ${i.name}`;if(i.i.$===void 0&&(i.i.$=[]),i.i.$[B-1]!==void 0)throw new e0(`Cannot register multiple constructors with identical number of parameters (${B-1}) for class '${i.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return i.i.$[B-1]=()=>{i9(`Cannot construct ${i.name} due to unbound types`,l)},Q9([],l,(e)=>{return e.splice(1,0,null),i.i.$[B-1]=IQ(K0,e,null,P,y),[]}),[]})},_embind_register_class_function:(H,B,Y,D,P,y,l,i)=>{var K0=PQ(Y,D);B=a1(B),B=qK(B),y=E$(P,y),Q9([],[H],(e)=>{function k0(){i9(`Cannot call ${g0} due to unbound types`,K0)}e=e[0];var g0=`${e.name}.${B}`;B.startsWith("@@")&&(B=Symbol[B.substring(2)]),i&&e.i.qb.push(B);var p0=e.i.N,r=p0[B];return r===void 0||r.A===void 0&&r.className!==e.name&&r.ea===Y-2?(k0.ea=Y-2,k0.className=e.name,p0[B]=k0):(QK(p0,B,g0),p0[B].A[Y-2]=k0),Q9([],K0,(x0)=>{return x0=IQ(g0,x0,e,y,l),p0[B].A===void 0?(x0.ea=Y-2,p0[B]=x0):p0[B].A[Y-2]=x0,[]}),[]})},_embind_register_class_property:(H,B,Y,D,P,y,l,i,K0,e)=>{B=a1(B),P=E$(D,P),Q9([],[H],(k0)=>{k0=k0[0];var g0=`${k0.name}.${B}`,p0={get(){i9(`Cannot access ${g0} due to unbound types`,[Y,l])},enumerable:!0,configurable:!0};return p0.set=K0?()=>i9(`Cannot access ${g0} due to unbound types`,[Y,l]):()=>{throw new e0(g0+" is a read-only property")},Object.defineProperty(k0.i.N,B,p0),Q9([],K0?[Y,l]:[Y],(r)=>{var x0=r[0],D0={get(){var L1=F5(this,k0,g0+" getter");return x0.fromWireType(P(y,L1))},enumerable:!0};if(K0){K0=E$(i,K0);var U1=r[1];D0.set=function(L1){var w0=F5(this,k0,g0+" setter"),E1=[];K0(e,w0,U1.toWireType(E1,L1)),j7(E1)}}return Object.defineProperty(k0.i.N,B,D0),[]}),[]})},_embind_register_emval:(H)=>y9(H,R4),_embind_register_enum:(H,B,Y,D)=>{function P(){}B=a1(B),P.values={},y9(H,{name:B,constructor:P,fromWireType:function(y){return this.constructor.values[y]},toWireType:(y,l)=>l.value,argPackAdvance:8,readValueFromPointer:D4(B,Y,D),M:null}),ZK(B,P)},_embind_register_enum_value:(H,B,Y)=>{var D=H7(H,"enum");B=a1(B),H=D.constructor,D=Object.create(D.constructor.prototype,{value:{value:Y},constructor:{value:FJ(`${D.name}_${B}`,function(){})}}),H.values[Y]=D,H[B]=D},_embind_register_float:(H,B,Y)=>{B=a1(B),y9(H,{name:B,fromWireType:(D)=>D,toWireType:(D,P)=>P,argPackAdvance:8,readValueFromPointer:M4(B,Y),M:null})},_embind_register_function:(H,B,Y,D,P,y)=>{var l=PQ(B,Y);H=a1(H),H=qK(H),P=E$(D,P),ZK(H,function(){i9(`Cannot call ${H} due to unbound types`,l)},B-1),Q9([],l,(i)=>{return X5(H,IQ(H,[i[0],null].concat(i.slice(1)),null,P,y),B-1),[]})},_embind_register_integer:(H,B,Y,D,P)=>{if(B=a1(B),P===-1&&(P=4294967295),P=(i)=>i,D===0){var y=32-8*Y;P=(i)=>i<>>y}var l=B.includes("unsigned")?function(i,K0){return K0>>>0}:function(i,K0){return K0};y9(H,{name:B,fromWireType:P,toWireType:l,argPackAdvance:8,readValueFromPointer:C4(B,Y,D!==0),M:null})},_embind_register_memory_view:(H,B,Y)=>{function D(y){return new P(o.buffer,C0[y+4>>2],C0[y>>2])}var P=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][B];Y=a1(Y),y9(H,{name:Y,fromWireType:D,argPackAdvance:8,readValueFromPointer:D},{Wb:!0})},_embind_register_std_string:(H,B)=>{B=a1(B);var Y=B==="std::string";y9(H,{name:B,fromWireType:function(D){var P=C0[D>>2],y=D+4;if(Y)for(var l=y,i=0;i<=P;++i){var K0=y+i;if(i==P||t[K0]==0){if(l=l?l0(t,l,K0-l):"",e===void 0)var e=l;else e+=String.fromCharCode(0),e+=l;l=K0+1}}else{e=Array(P);for(i=0;i>2]=l,Y&&y)Q1(P,t,K0,l+1);else if(y)for(y=0;y{if(Y=a1(Y),B===2)var D=A4,P=k4,y=I4,l=(i)=>N0[i>>1];else B===4&&(D=P4,P=T4,y=E4,l=(i)=>C0[i>>2]);y9(H,{name:Y,fromWireType:(i)=>{for(var K0=C0[i>>2],e,k0=i+4,g0=0;g0<=K0;++g0){var p0=i+4+g0*B;if(g0==K0||l(p0)==0)k0=D(k0,p0-k0),e===void 0?e=k0:(e+=String.fromCharCode(0),e+=k0),k0=p0+B}return s9(i),e},toWireType:(i,K0)=>{if(typeof K0!="string")throw new e0(`Cannot pass non-string to C++ string type ${Y}`);var e=y(K0),k0=zK(4+e+B);return C0[k0>>2]=e/B,P(K0,k0+4,e+B),i!==null&&i.push(s9,k0),k0},argPackAdvance:8,readValueFromPointer:B7,M(i){s9(i)}})},_embind_register_value_object:(H,B,Y,D,P,y)=>{RQ[H]={name:a1(B),Oa:E$(Y,D),P:E$(P,y),fb:[]}},_embind_register_value_object_field:(H,B,Y,D,P,y,l,i,K0,e)=>{RQ[H].fb.push({Pb:a1(B),Vb:Y,Tb:E$(D,P),Ub:y,lc:l,kc:E$(i,K0),mc:e})},_embind_register_void:(H,B)=>{B=a1(B),y9(H,{Jc:!0,name:B,argPackAdvance:0,fromWireType:()=>{},toWireType:()=>{}})},_emscripten_get_now_is_monotonic:()=>1,_emscripten_memcpy_js:(H,B,Y)=>t.copyWithin(H,B,B+Y),_emscripten_throw_longjmp:()=>{throw 1/0},_emval_as:(H,B,Y)=>{return H=x9(H),B=H7(B,"emval::as"),V5(B,Y,H)},_emval_call_method:(H,B,Y,D,P)=>{return H=GK[H],B=x9(B),Y=HK(Y),H(B,B[Y],D,P)},_emval_decref:UK,_emval_get_method_caller:(H,B,Y)=>{var D=x4(H,B),P=D.shift();H--;var y=Array(H);return B=`methodCaller<(${D.map((l)=>l.name).join(", ")}) => ${P.name}>`,b4(FJ(B,(l,i,K0,e)=>{for(var k0=0,g0=0;g0{return H=HK(H),f9(F[H])},_emval_get_property:(H,B)=>{return H=x9(H),B=x9(B),f9(H[B])},_emval_incref:(H)=>{9f9([]),_emval_new_cstring:(H)=>f9(HK(H)),_emval_new_object:()=>f9({}),_emval_run_destructors:(H)=>{var B=x9(H);j7(B),UK(H)},_emval_set_property:(H,B,Y)=>{H=x9(H),B=x9(B),Y=x9(Y),H[B]=Y},_emval_take_value:(H,B)=>{return H=H7(H,"_emval_take_value"),H=H.readValueFromPointer(B),f9(H)},_gmtime_js:function(H,B,Y){H=new Date(1000*(B+2097152>>>0<4194305-!!H?(H>>>0)+4294967296*B:NaN)),W0[Y>>2]=H.getUTCSeconds(),W0[Y+4>>2]=H.getUTCMinutes(),W0[Y+8>>2]=H.getUTCHours(),W0[Y+12>>2]=H.getUTCDate(),W0[Y+16>>2]=H.getUTCMonth(),W0[Y+20>>2]=H.getUTCFullYear()-1900,W0[Y+24>>2]=H.getUTCDay(),W0[Y+28>>2]=(H.getTime()-Date.UTC(H.getUTCFullYear(),0,1,0,0,0,0))/86400000|0},_localtime_js:function(H,B,Y){H=new Date(1000*(B+2097152>>>0<4194305-!!H?(H>>>0)+4294967296*B:NaN)),W0[Y>>2]=H.getSeconds(),W0[Y+4>>2]=H.getMinutes(),W0[Y+8>>2]=H.getHours(),W0[Y+12>>2]=H.getDate(),W0[Y+16>>2]=H.getMonth(),W0[Y+20>>2]=H.getFullYear()-1900,W0[Y+24>>2]=H.getDay(),W0[Y+28>>2]=(X7(H.getFullYear())?y4:h4)[H.getMonth()]+H.getDate()-1|0,W0[Y+36>>2]=-(60*H.getTimezoneOffset()),B=new Date(H.getFullYear(),6,1).getTimezoneOffset();var D=new Date(H.getFullYear(),0,1).getTimezoneOffset();W0[Y+32>>2]=(B!=D&&H.getTimezoneOffset()==Math.min(D,B))|0},_tzset_js:(H,B,Y,D)=>{var P=new Date().getFullYear(),y=new Date(P,0,1),l=new Date(P,6,1);P=y.getTimezoneOffset();var i=l.getTimezoneOffset();C0[H>>2]=60*Math.max(P,i),W0[B>>2]=Number(P!=i),H=(K0)=>K0.toLocaleTimeString(void 0,{hour12:!1,timeZoneName:"short"}).split(" ")[1],y=H(y),l=H(l),i{jK.length=0;for(var D;D=t[B++];){var P=D!=105;P&=D!=112,Y+=P&&Y%8?4:0,jK.push(D==112?C0[Y>>2]:D==105?W0[Y>>2]:p[Y>>3]),Y+=P?8:4}return W1[H](...jK)},emscripten_date_now:()=>Date.now(),emscripten_get_now:()=>performance.now(),emscripten_resize_heap:(H)=>{var B=t.length;if(H>>>=0,2147483648=Y;Y*=2){var D=B*(1+0.2/Y);D=Math.min(D,H+100663296);var P=Math;D=Math.max(H,D);$:{P=(P.min.call(P,2147483648,D+(65536-D%65536)%65536)-z0.buffer.byteLength+65535)/65536;try{z0.grow(P),a();var y=1;break $}catch(l){}y=void 0}if(y)return!0}return!1},environ_get:(H,B)=>{var Y=0;return Y5().forEach((D,P)=>{var y=B+Y;P=C0[H+4*P>>2]=y;for(y=0;y{var Y=Y5();C0[H>>2]=Y.length;var D=0;return Y.forEach((P)=>D+=P.length+1),C0[B>>2]=D,0},fd_close:function(H){try{var B=_1(H);if(B.X===null)throw new U0(8);B.La&&(B.La=null);try{B.m.close&&B.m.close(B)}catch(Y){throw Y}finally{L0[B.X]=null}return B.X=null,0}catch(Y){if(typeof _8>"u"||Y.name!=="ErrnoError")throw Y;return Y.aa}},fd_read:function(H,B,Y,D){try{$:{var P=_1(H);H=B;for(var y,l=B=0;l>2],K0=C0[H+4>>2];H+=8;var e=P,k0=y,g0=o;if(0>K0||0>k0)throw new U0(28);if(e.X===null)throw new U0(8);if((e.flags&2097155)===1)throw new U0(8);if((e.node.mode&61440)===16384)throw new U0(31);if(!e.m.read)throw new U0(28);var p0=typeof k0<"u";if(!p0)k0=e.position;else if(!e.seekable)throw new U0(70);var r=e.m.read(e,g0,i,K0,k0);p0||(e.position+=r);var x0=r;if(0>x0){var D0=-1;break $}if(B+=x0,x0>2]=D0,0}catch(U1){if(typeof _8>"u"||U1.name!=="ErrnoError")throw U1;return U1.aa}},fd_seek:function(H,B,Y,D,P){B=Y+2097152>>>0<4194305-!!B?(B>>>0)+4294967296*Y:NaN;try{if(isNaN(B))return 61;var y=_1(H);return F8(y,B,D),t0=[y.position>>>0,(T0=y.position,1<=+Math.abs(T0)?0>>0:~~+Math.ceil((T0-+(~~T0>>>0))/4294967296)>>>0:0)],W0[P>>2]=t0[0],W0[P+4>>2]=t0[1],y.La&&B===0&&D===0&&(y.La=null),0}catch(l){if(typeof _8>"u"||l.name!=="ErrnoError")throw l;return l.aa}},fd_write:function(H,B,Y,D){try{$:{var P=_1(H);H=B;for(var y,l=B=0;l>2],K0=C0[H+4>>2];H+=8;var e=P,k0=i,g0=K0,p0=y,r=o;if(0>g0||0>p0)throw new U0(28);if(e.X===null)throw new U0(8);if((e.flags&2097155)===0)throw new U0(8);if((e.node.mode&61440)===16384)throw new U0(31);if(!e.m.write)throw new U0(28);e.seekable&&e.flags&1024&&F8(e,0,2);var x0=typeof p0<"u";if(!x0)p0=e.position;else if(!e.seekable)throw new U0(70);var D0=e.m.write(e,r,k0,g0,p0,void 0);x0||(e.position+=D0);var U1=D0;if(0>U1){var L1=-1;break $}B+=U1,typeof y<"u"&&(y+=U1)}L1=B}return C0[D>>2]=L1,0}catch(w0){if(typeof _8>"u"||w0.name!=="ErrnoError")throw w0;return w0.aa}},invoke_vii:_4,isWindowsBrowser:function(){return-1D5(H,B,Y,D)},u1=function(){function H(Y){return u1=Y.exports,z0=u1.memory,a(),z5=u1.__indirect_function_table,H0.unshift(u1.__wasm_call_ctors),R0--,F.monitorRunDependencies?.(R0),R0==0&&(S0!==null&&(clearInterval(S0),S0=null),V0&&(Y=V0,V0=null,Y())),u1}var B={env:C5,wasi_snapshot_preview1:C5};if(R0++,F.monitorRunDependencies?.(R0),F.instantiateWasm)try{return F.instantiateWasm(B,H)}catch(Y){q0(`Module.instantiateWasm callback failed with error: ${Y}`),R(Y)}return c||=A0("canvas_advanced.wasm")?"canvas_advanced.wasm":F.locateFile?F.locateFile("canvas_advanced.wasm",f):f+"canvas_advanced.wasm",u0(B,function(Y){H(Y.instance)}).catch(R),{}}(),s9=(H)=>(s9=u1.free)(H),zK=(H)=>(zK=u1.malloc)(H),A5=(H)=>(A5=u1.__getTypeName)(H),k5=F._ma_device__on_notification_unlocked=(H)=>(k5=F._ma_device__on_notification_unlocked=u1.ma_device__on_notification_unlocked)(H);F._ma_malloc_emscripten=(H,B)=>(F._ma_malloc_emscripten=u1.ma_malloc_emscripten)(H,B),F._ma_free_emscripten=(H,B)=>(F._ma_free_emscripten=u1.ma_free_emscripten)(H,B);var I5=F._ma_device_process_pcm_frames_capture__webaudio=(H,B,Y)=>(I5=F._ma_device_process_pcm_frames_capture__webaudio=u1.ma_device_process_pcm_frames_capture__webaudio)(H,B,Y),P5=F._ma_device_process_pcm_frames_playback__webaudio=(H,B,Y)=>(P5=F._ma_device_process_pcm_frames_playback__webaudio=u1.ma_device_process_pcm_frames_playback__webaudio)(H,B,Y),T5=(H,B)=>(T5=u1.setThrew)(H,B),E5=(H)=>(E5=u1._emscripten_stack_restore)(H),S5=()=>(S5=u1.emscripten_stack_get_current)();F.dynCall_iiji=(H,B,Y,D,P)=>(F.dynCall_iiji=u1.dynCall_iiji)(H,B,Y,D,P),F.dynCall_jiji=(H,B,Y,D,P)=>(F.dynCall_jiji=u1.dynCall_jiji)(H,B,Y,D,P),F.dynCall_iiiji=(H,B,Y,D,P,y)=>(F.dynCall_iiiji=u1.dynCall_iiiji)(H,B,Y,D,P,y),F.dynCall_iij=(H,B,Y,D)=>(F.dynCall_iij=u1.dynCall_iij)(H,B,Y,D),F.dynCall_jii=(H,B,Y)=>(F.dynCall_jii=u1.dynCall_jii)(H,B,Y),F.dynCall_viijii=(H,B,Y,D,P,y,l)=>(F.dynCall_viijii=u1.dynCall_viijii)(H,B,Y,D,P,y,l),F.dynCall_iiiiij=(H,B,Y,D,P,y,l)=>(F.dynCall_iiiiij=u1.dynCall_iiiiij)(H,B,Y,D,P,y,l),F.dynCall_iiiiijj=(H,B,Y,D,P,y,l,i,K0)=>(F.dynCall_iiiiijj=u1.dynCall_iiiiijj)(H,B,Y,D,P,y,l,i,K0),F.dynCall_iiiiiijj=(H,B,Y,D,P,y,l,i,K0,e)=>(F.dynCall_iiiiiijj=u1.dynCall_iiiiiijj)(H,B,Y,D,P,y,l,i,K0,e);function _4(H,B,Y){var D=S5();try{KK(H)(B,Y)}catch(P){if(E5(D),P!==P+0)throw P;T5(1,0)}}var EQ;V0=function H(){EQ||b5(),EQ||(V0=H)};function b5(){function H(){if(!EQ&&(EQ=!0,F.calledRun=!0,!J0)){if(F.noFSInit||h8||(h8=!0,F.stdin=F.stdin,F.stdout=F.stdout,F.stderr=F.stderr,F.stdin?n$("stdin",F.stdin):LJ("/dev/tty","/dev/stdin"),F.stdout?n$("stdout",null,F.stdout):LJ("/dev/tty","/dev/stdout"),F.stderr?n$("stderr",null,F.stderr):LJ("/dev/tty1","/dev/stderr"),_$("/dev/stdin",0),_$("/dev/stdout",1),_$("/dev/stderr",1)),F0=!1,M(H0),j(F),F.onRuntimeInitialized)F.onRuntimeInitialized();if(F.postRun)for(typeof F.postRun=="function"&&(F.postRun=[F.postRun]);F.postRun.length;){var B=F.postRun.shift();M0.unshift(B)}M(M0)}}if(!(0{K.exports=JSON.parse(`{"name":"@rive-app/canvas","version":"2.34.0","description":"Rive's canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso (https://rive.app)","Maxwell Talbot (https://rive.app)","Arthur Vivian (https://rive.app)","Umberto Sonnino (https://rive.app)","Matthew Sullivan (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}`)},(K,q,U)=>{U.r(q),U.d(q,{Animation:()=>W.Animation});var W=U(4)},(K,q,U)=>{U.r(q),U.d(q,{Animation:()=>W});var W=function(){function G(X,L,N,F){this.animation=X,this.artboard=L,this.playing=F,this.loopCount=0,this.scrubTo=null,this.instance=new N.LinearAnimationInstance(X,L)}return Object.defineProperty(G.prototype,"name",{get:function(){return this.animation.name},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"time",{get:function(){return this.instance.time},set:function(X){this.instance.time=X},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"loopValue",{get:function(){return this.animation.loopValue},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"needsScrub",{get:function(){return this.scrubTo!==null},enumerable:!1,configurable:!0}),G.prototype.advance=function(X){if(this.scrubTo===null)this.instance.advance(X);else this.instance.time=0,this.instance.advance(this.scrubTo),this.scrubTo=null},G.prototype.apply=function(X){this.instance.apply(X)},G.prototype.cleanup=function(){this.instance.delete()},G}()},(K,q,U)=>{U.r(q),U.d(q,{AudioAssetWrapper:()=>X.AudioAssetWrapper,AudioWrapper:()=>X.AudioWrapper,BLANK_URL:()=>G.BLANK_URL,CustomFileAssetLoaderWrapper:()=>X.CustomFileAssetLoaderWrapper,FileAssetWrapper:()=>X.FileAssetWrapper,FileFinalizer:()=>X.FileFinalizer,FontAssetWrapper:()=>X.FontAssetWrapper,FontWrapper:()=>X.FontWrapper,ImageAssetWrapper:()=>X.ImageAssetWrapper,ImageWrapper:()=>X.ImageWrapper,createFinalization:()=>X.createFinalization,finalizationRegistry:()=>X.finalizationRegistry,registerTouchInteractions:()=>W.registerTouchInteractions,sanitizeUrl:()=>G.sanitizeUrl});var W=U(6),G=U(7),X=U(8)},(K,q,U)=>{U.r(q),U.d(q,{registerTouchInteractions:()=>X});var W=void 0,G=function(L,N,F){var j,R,O=[];if(["touchstart","touchmove"].indexOf(L.type)>-1&&((j=L.changedTouches)===null||j===void 0?void 0:j.length)){if(!N)L.preventDefault();var C=0,A=F?L.changedTouches.length:1;while(C"u")return null;var m=null,_=!1,n=function(Q0){if(_&&Q0 instanceof MouseEvent){if(Q0.type=="mouseup")_=!1;return}_=x&&Q0.type==="touchend"&&m==="touchstart",m=Q0.type;var z0=Q0.currentTarget.getBoundingClientRect(),J0=G(Q0,x,S),o=C.computeAlignment(A,E,{minX:0,minY:0,maxX:z0.width,maxY:z0.height},F.bounds,f),t=new C.Mat2D;switch(o.invert(t),J0.forEach(function(I0){var{clientX:c,clientY:f0}=I0;if(!c&&!f0)return;var d0=c-z0.left,n0=f0-z0.top,u0=new C.Vec2D(d0,n0),T0=C.mapXY(t,u0),t0=T0.x(),W1=T0.y();I0.transformedX=t0,I0.transformedY=W1,T0.delete(),u0.delete()}),t.delete(),o.delete(),Q0.type){case"mouseout":var v=function(I0){if(h)J0.forEach(function(c){I0.pointerExit(c.transformedX,c.transformedY,c.identifier)});else J0.forEach(function(c){I0.pointerMove(c.transformedX,c.transformedY,c.identifier)})};for(var N0=0,W0=R;N0{U.r(q),U.d(q,{BLANK_URL:()=>j,sanitizeUrl:()=>C});var W=/^([^\w]*)(javascript|data|vbscript)/im,G=/&#(\w+)(^\w|;)?/g,X=/&(newline|tab);/gi,L=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,N=/^.+(:|:)/gim,F=[".","/"],j="about:blank";function R(A){return F.indexOf(A[0])>-1}function O(A){var E=A.replace(L,"");return E.replace(G,function(k,x){return String.fromCharCode(x)})}function C(A){if(!A)return j;var E=O(A).replace(X,"").replace(L,"").trim();if(!E)return j;if(R(E))return E;var k=E.match(N);if(!k)return E;var x=k[0];if(W.test(x))return j;return E}},(K,q,U)=>{U.r(q),U.d(q,{AudioAssetWrapper:()=>A,AudioWrapper:()=>F,CustomFileAssetLoaderWrapper:()=>R,FileAssetWrapper:()=>O,FileFinalizer:()=>G,FontAssetWrapper:()=>E,FontWrapper:()=>j,ImageAssetWrapper:()=>C,ImageWrapper:()=>N,createFinalization:()=>h,finalizationRegistry:()=>T});var W=function(){var b=function(S,u){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var _ in m)if(Object.prototype.hasOwnProperty.call(m,_))f[_]=m[_]},b(S,u)};return function(S,u){if(typeof u!=="function"&&u!==null)throw TypeError("Class extends value "+String(u)+" is not a constructor or null");b(S,u);function f(){this.constructor=S}S.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}(),G=function(){function b(S){this.selfUnref=!1,this._file=S}return b.prototype.unref=function(){if(this._file)this._file.unref()},b}(),X=function(){function b(S){this._finalizableObject=S}return b.prototype.unref=function(){this._finalizableObject.unref()},b}(),L=function(){function b(){this.selfUnref=!1}return b.prototype.unref=function(){},b}(),N=function(b){W(S,b);function S(u){var f=b.call(this)||this;return f._nativeImage=u,f}return Object.defineProperty(S.prototype,"nativeImage",{get:function(){return this._nativeImage},enumerable:!1,configurable:!0}),S.prototype.unref=function(){if(this.selfUnref)this._nativeImage.unref()},S}(L),F=function(b){W(S,b);function S(u){var f=b.call(this)||this;return f._nativeAudio=u,f}return Object.defineProperty(S.prototype,"nativeAudio",{get:function(){return this._nativeAudio},enumerable:!1,configurable:!0}),S.prototype.unref=function(){if(this.selfUnref)this._nativeAudio.unref()},S}(L),j=function(b){W(S,b);function S(u){var f=b.call(this)||this;return f._nativeFont=u,f}return Object.defineProperty(S.prototype,"nativeFont",{get:function(){return this._nativeFont},enumerable:!1,configurable:!0}),S.prototype.unref=function(){if(this.selfUnref)this._nativeFont.unref()},S}(L),R=function(){function b(S,u){this._assetLoaderCallback=u,this.assetLoader=new S.CustomFileAssetLoader({loadContents:this.loadContents.bind(this)})}return b.prototype.loadContents=function(S,u){var f;if(S.isImage)f=new C(S);else if(S.isAudio)f=new A(S);else if(S.isFont)f=new E(S);return this._assetLoaderCallback(f,u)},b}(),O=function(){function b(S){this._nativeFileAsset=S}return b.prototype.decode=function(S){this._nativeFileAsset.decode(S)},Object.defineProperty(b.prototype,"name",{get:function(){return this._nativeFileAsset.name},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"fileExtension",{get:function(){return this._nativeFileAsset.fileExtension},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"uniqueFilename",{get:function(){return this._nativeFileAsset.uniqueFilename},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"isAudio",{get:function(){return this._nativeFileAsset.isAudio},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"isImage",{get:function(){return this._nativeFileAsset.isImage},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"isFont",{get:function(){return this._nativeFileAsset.isFont},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"cdnUuid",{get:function(){return this._nativeFileAsset.cdnUuid},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"nativeFileAsset",{get:function(){return this._nativeFileAsset},enumerable:!1,configurable:!0}),b}(),C=function(b){W(S,b);function S(){return b!==null&&b.apply(this,arguments)||this}return S.prototype.setRenderImage=function(u){this._nativeFileAsset.setRenderImage(u.nativeImage)},S}(O),A=function(b){W(S,b);function S(){return b!==null&&b.apply(this,arguments)||this}return S.prototype.setAudioSource=function(u){this._nativeFileAsset.setAudioSource(u.nativeAudio)},S}(O),E=function(b){W(S,b);function S(){return b!==null&&b.apply(this,arguments)||this}return S.prototype.setFont=function(u){this._nativeFileAsset.setFont(u.nativeFont)},S}(O),k=function(){function b(S){}return b.prototype.register=function(S){S.selfUnref=!0},b.prototype.unregister=function(S){},b}(),x=typeof FinalizationRegistry<"u"?FinalizationRegistry:k,T=new x(function(b){b===null||b===void 0||b.unref()}),h=function(b,S){var u=new X(S);T.register(b,u)}}],$={};function J(K){var q=$[K];if(q!==void 0)return q.exports;var U=$[K]={exports:{}};return Z[K](U,U.exports,J),U.exports}(()=>{J.d=(K,q)=>{for(var U in q)if(J.o(q,U)&&!J.o(K,U))Object.defineProperty(K,U,{enumerable:!0,get:q[U]})}})(),(()=>{J.o=(K,q)=>Object.prototype.hasOwnProperty.call(K,q)})(),(()=>{J.r=(K)=>{if(typeof Symbol<"u"&&Symbol.toStringTag)Object.defineProperty(K,Symbol.toStringTag,{value:"Module"});Object.defineProperty(K,"__esModule",{value:!0})}})();var Q={};return(()=>{J.r(Q),J.d(Q,{Alignment:()=>C,DataEnum:()=>a,DrawOptimizationOptions:()=>A,EventType:()=>_,Fit:()=>O,Layout:()=>E,LoopType:()=>n,Rive:()=>h0,RiveEventType:()=>h,RiveFile:()=>C0,RuntimeLoader:()=>k,StateMachineInput:()=>T,StateMachineInputType:()=>x,Testing:()=>u0,ViewModel:()=>p,ViewModelInstance:()=>H0,ViewModelInstanceArtboard:()=>f0,ViewModelInstanceAssetImage:()=>c,ViewModelInstanceBoolean:()=>S0,ViewModelInstanceColor:()=>I0,ViewModelInstanceEnum:()=>P0,ViewModelInstanceList:()=>A0,ViewModelInstanceNumber:()=>R0,ViewModelInstanceString:()=>B0,ViewModelInstanceTrigger:()=>V0,ViewModelInstanceValue:()=>M0,decodeAudio:()=>T0,decodeFont:()=>W1,decodeImage:()=>t0});var K=J(1),q=J(2),U=J(3),W=J(5),G=function(){var M=function(z,V){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,g){I.__proto__=g}||function(I,g){for(var s in g)if(Object.prototype.hasOwnProperty.call(g,s))I[s]=g[s]},M(z,V)};return function(z,V){if(typeof V!=="function"&&V!==null)throw TypeError("Class extends value "+String(V)+" is not a constructor or null");M(z,V);function I(){this.constructor=z}z.prototype=V===null?Object.create(V):(I.prototype=V.prototype,new I)}}(),X=function(){return X=Object.assign||function(M){for(var z,V=1,I=arguments.length;V0&&s[s.length-1]))&&(y0[0]===6||y0[0]===2)){V=0;continue}if(y0[0]===3&&(!s||y0[1]>s[0]&&y0[1]0)(V=M.callBackQueue.shift())===null||V===void 0||V(M.runtime)}).catch(function(z){var V={message:(z===null||z===void 0?void 0:z.message)||"Unknown error",type:(z===null||z===void 0?void 0:z.name)||"Error",wasmError:z instanceof WebAssembly.CompileError||z instanceof WebAssembly.RuntimeError,originalError:z};console.debug("Rive WASM load error details:",V);var I="https://cdn.jsdelivr.net/npm/".concat(q.name,"@").concat(q.version,"/rive_fallback.wasm");if(M.wasmURL.toLowerCase()!==I)console.warn("Failed to load WASM from ".concat(M.wasmURL," (").concat(V.message,"), trying jsdelivr as a backup")),M.setWasmUrl(I),M.loadRuntime();else{var g=["Could not load Rive WASM file from ".concat(M.wasmURL," or ").concat(I,"."),"Possible reasons:","- Network connection is down","- WebAssembly is not supported in this environment","- The WASM file is corrupted or incompatible",` Error details:`,"- Type: ".concat(V.type),"- Message: ".concat(V.message),"- WebAssembly-specific error: ".concat(V.wasmError),` To resolve, you may need to:`,"1. Check your network connection","2. Set a new WASM source via RuntimeLoader.setWasmUrl()","3. Call RuntimeLoader.loadRuntime() again"].join(` `);console.error(g)}})},M.getInstance=function(z){if(!M.isLoading)M.isLoading=!0,M.loadRuntime();if(!M.runtime)M.callBackQueue.push(z);else z(M.runtime)},M.awaitInstance=function(){return new Promise(function(z){return M.getInstance(function(V){return z(V)})})},M.setWasmUrl=function(z){M.wasmURL=z},M.getWasmUrl=function(){return M.wasmURL},M.isLoading=!1,M.callBackQueue=[],M.wasmURL="https://unpkg.com/".concat(q.name,"@").concat(q.version,"/rive.wasm"),M}(),x;(function(M){M[M.Number=56]="Number",M[M.Trigger=58]="Trigger",M[M.Boolean=59]="Boolean"})(x||(x={}));var T=function(){function M(z,V){this.type=z,this.runtimeInput=V}return Object.defineProperty(M.prototype,"name",{get:function(){return this.runtimeInput.name},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"value",{get:function(){return this.runtimeInput.value},set:function(z){this.runtimeInput.value=z},enumerable:!1,configurable:!0}),M.prototype.fire=function(){if(this.type===x.Trigger)this.runtimeInput.fire()},M.prototype.delete=function(){this.runtimeInput=null},M}(),h;(function(M){M[M.General=128]="General",M[M.OpenUrl=131]="OpenUrl"})(h||(h={}));var b=function(){function M(z){this.isBindableArtboard=!1,this.isBindableArtboard=z}return M}(),S=function(M){G(z,M);function z(V,I){var g=M.call(this,!1)||this;return g.nativeArtboard=V,g.file=I,g}return z}(b),u=function(M){G(z,M);function z(V){var I=M.call(this,!0)||this;return I.selfUnref=!1,I.nativeArtboard=V,I}return Object.defineProperty(z.prototype,"viewModel",{set:function(V){this.nativeViewModel=V.nativeInstance},enumerable:!1,configurable:!0}),z.prototype.destroy=function(){var V;if(this.selfUnref)this.nativeArtboard.unref(),(V=this.nativeViewModel)===null||V===void 0||V.unref()},z}(b),f=function(){function M(z,V,I,g){this.stateMachine=z,this.playing=I,this.artboard=g,this.inputs=[],this.instance=new V.StateMachineInstance(z,g),this.initInputs(V)}return Object.defineProperty(M.prototype,"name",{get:function(){return this.stateMachine.name},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"statesChanged",{get:function(){var z=[];for(var V=0;V=0||o0>=0)if(b0>=0)this.animations[b0].playing=V;else this.stateMachines[o0].playing=V;else{var y0=this.artboard.animationByName(z[j0]);if(y0){var l0=new U.Animation(y0,this.artboard,this.runtime,V);l0.advance(0),l0.apply(1),this.animations.push(l0)}else{var $1=this.artboard.stateMachineByName(z[j0]);if($1){var T1=new f($1,this.runtime,V,this.artboard);this.stateMachines.push(T1)}}}}}if(I)if(V)this.eventManager.fire({type:_.Play,data:this.playing});else this.eventManager.fire({type:_.Pause,data:this.paused});return V?this.playing:this.paused},M.prototype.initLinearAnimations=function(z,V){var I=this.animations.map(function(o0){return o0.name});for(var g=0;g=0)this.animations[s].playing=V;else{var j0=this.artboard.animationByName(z[g]);if(j0){var b0=new U.Animation(j0,this.artboard,this.runtime,V);b0.advance(0),b0.apply(1),this.animations.push(b0)}else console.error("Animation with name ".concat(z[g]," not found."))}}},M.prototype.initStateMachines=function(z,V){var I=this.stateMachines.map(function(o0){return o0.name});for(var g=0;g=0)this.stateMachines[s].playing=V;else{var j0=this.artboard.stateMachineByName(z[g]);if(j0){var b0=new f(j0,this.runtime,V,this.artboard);this.stateMachines.push(b0)}else console.warn("State Machine with name ".concat(z[g]," not found.")),this.initLinearAnimations([z[g]],V)}}},M.prototype.play=function(z){return this.add(z,!0)},M.prototype.advanceIfPaused=function(){this.stateMachines.forEach(function(z){if(!z.playing)z.advanceAndApply(0)})},M.prototype.pause=function(z){return this.add(z,!1)},M.prototype.scrub=function(z,V){var I=this.animations.filter(function(g){return z.includes(g.name)});return I.forEach(function(g){return g.scrubTo=V}),I.map(function(g){return g.name})},Object.defineProperty(M.prototype,"playing",{get:function(){return this.animations.filter(function(z){return z.playing}).map(function(z){return z.name}).concat(this.stateMachines.filter(function(z){return z.playing}).map(function(z){return z.name}))},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"paused",{get:function(){return this.animations.filter(function(z){return!z.playing}).map(function(z){return z.name}).concat(this.stateMachines.filter(function(z){return!z.playing}).map(function(z){return z.name}))},enumerable:!1,configurable:!0}),M.prototype.stop=function(z){var V=this;z=n0(z);var I=[];if(z.length===0)I=this.animations.map(function(j0){return j0.name}).concat(this.stateMachines.map(function(j0){return j0.name})),this.animations.forEach(function(j0){return j0.cleanup()}),this.stateMachines.forEach(function(j0){return j0.cleanup()}),this.animations.splice(0,this.animations.length),this.stateMachines.splice(0,this.stateMachines.length);else{var g=this.animations.filter(function(j0){return z.includes(j0.name)});g.forEach(function(j0){j0.cleanup(),V.animations.splice(V.animations.indexOf(j0),1)});var s=this.stateMachines.filter(function(j0){return z.includes(j0.name)});s.forEach(function(j0){j0.cleanup(),V.stateMachines.splice(V.stateMachines.indexOf(j0),1)}),I=g.map(function(j0){return j0.name}).concat(s.map(function(j0){return j0.name}))}return this.eventManager.fire({type:_.Stop,data:I}),I},Object.defineProperty(M.prototype,"isPlaying",{get:function(){return this.animations.reduce(function(z,V){return z||V.playing},!1)||this.stateMachines.reduce(function(z,V){return z||V.playing},!1)},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"isPaused",{get:function(){return!this.isPlaying&&(this.animations.length>0||this.stateMachines.length>0)},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"isStopped",{get:function(){return this.animations.length===0&&this.stateMachines.length===0},enumerable:!1,configurable:!0}),M.prototype.atLeastOne=function(z,V){if(V===void 0)V=!0;var I;if(this.animations.length===0&&this.stateMachines.length===0){if(this.artboard.animationCount()>0)this.add([I=this.artboard.animationByIndex(0).name],z,V);else if(this.artboard.stateMachineCount()>0)this.add([I=this.artboard.stateMachineByIndex(0).name],z,V)}return I},M.prototype.handleLooping=function(){for(var z=0,V=this.animations.filter(function(g){return g.playing});z1)this.eventManager.fire({type:_.Loop,data:{animation:I.name,type:n.PingPong}}),I.loopCount=0}},M.prototype.handleStateChanges=function(){var z=[];for(var V=0,I=this.stateMachines.filter(function(s){return s.playing});V0)this.eventManager.fire({type:_.StateChange,data:z})},M.prototype.handleAdvancing=function(z){this.eventManager.fire({type:_.Advance,data:z})},M}(),_;(function(M){M.Load="load",M.LoadError="loaderror",M.Play="play",M.Pause="pause",M.Stop="stop",M.Loop="loop",M.Draw="draw",M.Advance="advance",M.StateChange="statechange",M.RiveEvent="riveevent",M.AudioStatusChange="audiostatuschange"})(_||(_={}));var n;(function(M){M.OneShot="oneshot",M.Loop="loop",M.PingPong="pingpong"})(n||(n={}));var q0=function(){function M(z){if(z===void 0)z=[];this.listeners=z}return M.prototype.getListeners=function(z){return this.listeners.filter(function(V){return V.type===z})},M.prototype.add=function(z){if(!this.listeners.includes(z))this.listeners.push(z)},M.prototype.remove=function(z){for(var V=0;V0){var z=this.queue.shift();if(z===null||z===void 0?void 0:z.action)z.action();if(z===null||z===void 0?void 0:z.event)this.eventManager.fire(z.event)}},M}(),z0;(function(M){M[M.AVAILABLE=0]="AVAILABLE",M[M.UNAVAILABLE=1]="UNAVAILABLE"})(z0||(z0={}));var J0=function(M){G(z,M);function z(){var V=M!==null&&M.apply(this,arguments)||this;return V._started=!1,V._enabled=!1,V._status=z0.UNAVAILABLE,V}return z.prototype.delay=function(V){return L(this,void 0,void 0,function(){return N(this,function(I){return[2,new Promise(function(g){return setTimeout(g,V)})]})})},z.prototype.timeout=function(){return L(this,void 0,void 0,function(){return N(this,function(V){return[2,new Promise(function(I,g){return setTimeout(g,50)})]})})},z.prototype.reportToListeners=function(){this.fire({type:_.AudioStatusChange}),this.removeAll()},z.prototype.enableAudio=function(){return L(this,void 0,void 0,function(){return N(this,function(V){if(!this._enabled)this._enabled=!0,this._status=z0.AVAILABLE,this.reportToListeners();return[2]})})},z.prototype.testAudio=function(){return L(this,void 0,void 0,function(){var V;return N(this,function(I){switch(I.label){case 0:if(!(this._status===z0.UNAVAILABLE&&this._audioContext!==null))return[3,4];I.label=1;case 1:return I.trys.push([1,3,,4]),[4,Promise.race([this._audioContext.resume(),this.timeout()])];case 2:return I.sent(),this.enableAudio(),[3,4];case 3:return V=I.sent(),[3,4];case 4:return[2]}})})},z.prototype._establishAudio=function(){return L(this,void 0,void 0,function(){return N(this,function(V){switch(V.label){case 0:if(this._started)return[3,5];if(this._started=!0,!(typeof window>"u"))return[3,1];return this.enableAudio(),[3,5];case 1:this._audioContext=new AudioContext,this.listenForUserAction(),V.label=2;case 2:if(this._status!==z0.UNAVAILABLE)return[3,5];return[4,this.testAudio()];case 3:return V.sent(),[4,this.delay(1000)];case 4:return V.sent(),[3,2];case 5:return[2]}})})},z.prototype.listenForUserAction=function(){var V=this,I=function(){return L(V,void 0,void 0,function(){return N(this,function(g){return this.enableAudio(),[2]})})};document.addEventListener("pointerdown",I,{once:!0})},z.prototype.establishAudio=function(){return L(this,void 0,void 0,function(){return N(this,function(V){return this._establishAudio(),[2]})})},Object.defineProperty(z.prototype,"systemVolume",{get:function(){if(this._status===z0.UNAVAILABLE)return this.testAudio(),0;return 1},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),z}(q0),o=new J0,t=function(){function M(){}return M.prototype.observe=function(){},M.prototype.unobserve=function(){},M.prototype.disconnect=function(){},M}(),v=globalThis.ResizeObserver||t,N0=function(){function M(){var z=this;this._elementsMap=new Map,this._onObservedEntry=function(V){var I=z._elementsMap.get(V.target);if(I!==null)I.onResize(V.target.clientWidth==0||V.target.clientHeight==0);else z._resizeObserver.unobserve(V.target)},this._onObserved=function(V){V.forEach(z._onObservedEntry)},this._resizeObserver=new v(this._onObserved)}return M.prototype.add=function(z,V){var I={onResize:V,element:z};return this._elementsMap.set(z,I),this._resizeObserver.observe(z),I},M.prototype.remove=function(z){this._resizeObserver.unobserve(z.element),this._elementsMap.delete(z.element)},M}(),W0=new N0,C0=function(){function M(z){if(this.enableRiveAssetCDN=!0,this.referenceCount=0,this.destroyed=!1,this.selfUnref=!1,this.bindableArtboards=[],this.src=z.src,this.buffer=z.buffer,z.assetLoader)this.assetLoader=z.assetLoader;if(this.enableRiveAssetCDN=typeof z.enableRiveAssetCDN=="boolean"?z.enableRiveAssetCDN:!0,this.eventManager=new q0,z.onLoad)this.on(_.Load,z.onLoad);if(z.onLoadError)this.on(_.LoadError,z.onLoadError)}return M.prototype.releaseFile=function(){var z;if(this.selfUnref)(z=this.file)===null||z===void 0||z.unref();this.file=null},M.prototype.releaseBindableArtboards=function(){this.bindableArtboards.forEach(function(z){return z.destroy()})},M.prototype.initData=function(){return L(this,void 0,void 0,function(){var z,V,I,g,s;return N(this,function(j0){switch(j0.label){case 0:if(!this.src)return[3,2];return z=this,[4,d0(this.src)];case 1:z.buffer=j0.sent(),j0.label=2;case 2:if(this.destroyed)return[2];if(this.assetLoader)I=new W.CustomFileAssetLoaderWrapper(this.runtime,this.assetLoader),V=I.assetLoader;return g=this,[4,this.runtime.load(new Uint8Array(this.buffer),V,this.enableRiveAssetCDN)];case 3:if(g.file=j0.sent(),s=new W.FileFinalizer(this.file),W.finalizationRegistry.register(this,s),this.destroyed)return this.releaseFile(),[2];if(this.file!==null)this.eventManager.fire({type:_.Load,data:this});else this.fireLoadError(M.fileLoadErrorMessage);return[2]}})})},M.prototype.init=function(){return L(this,void 0,void 0,function(){var z,V;return N(this,function(I){switch(I.label){case 0:if(!this.src&&!this.buffer)return this.fireLoadError(M.missingErrorMessage),[2];I.label=1;case 1:return I.trys.push([1,4,,5]),z=this,[4,k.awaitInstance()];case 2:if(z.runtime=I.sent(),this.destroyed)return[2];return[4,this.initData()];case 3:return I.sent(),[3,5];case 4:return V=I.sent(),this.fireLoadError(V instanceof Error?V.message:M.fileLoadErrorMessage),[3,5];case 5:return[2]}})})},M.prototype.fireLoadError=function(z){throw this.eventManager.fire({type:_.LoadError,data:z}),Error(z)},M.prototype.on=function(z,V){this.eventManager.add({type:z,callback:V})},M.prototype.off=function(z,V){this.eventManager.remove({type:z,callback:V})},M.prototype.cleanup=function(){if(this.referenceCount-=1,this.referenceCount<=0)this.removeAllRiveEventListeners(),this.releaseFile(),this.releaseBindableArtboards(),this.destroyed=!0},M.prototype.removeAllRiveEventListeners=function(z){this.eventManager.removeAll(z)},M.prototype.getInstance=function(){if(this.file!==null)return this.referenceCount+=1,this.file},M.prototype.destroyIfUnused=function(){if(this.referenceCount<=0)this.cleanup()},M.prototype.createBindableArtboard=function(z){if(z!=null){var V=new u(z);return(0,W.createFinalization)(V,V.nativeArtboard),this.bindableArtboards.push(V),V}return null},M.prototype.getArtboard=function(z){var V=this.file.artboardByName(z);if(V!=null)return new S(V,this)},M.prototype.getBindableArtboard=function(z){var V=this.file.bindableArtboardByName(z);return this.createBindableArtboard(V)},M.prototype.getDefaultBindableArtboard=function(){var z=this.file.bindableArtboardDefault();return this.createBindableArtboard(z)},M.prototype.internalBindableArtboardFromArtboard=function(z){var V=this.file.internalBindableArtboardFromArtboard(z);return this.createBindableArtboard(V)},M.prototype.viewModelByName=function(z){var V=this.file.viewModelByName(z);if(V!==null)return new p(V);return null},M.missingErrorMessage="Rive source file or data buffer required",M.fileLoadErrorMessage="The file failed to load",M}(),h0=function(){function M(z){var V=this,I,g;if(this.loaded=!1,this.destroyed=!1,this._observed=null,this.readyForPlaying=!1,this.artboard=null,this.eventCleanup=null,this.shouldDisableRiveListeners=!1,this.automaticallyHandleEvents=!1,this.dispatchPointerExit=!0,this.enableMultiTouch=!1,this.enableRiveAssetCDN=!0,this._volume=1,this._artboardWidth=void 0,this._artboardHeight=void 0,this._devicePixelRatioUsed=1,this._hasZeroSize=!1,this._needsRedraw=!1,this._audioEventListener=null,this._boundDraw=null,this._viewModelInstance=null,this._dataEnums=null,this.drawOptimization=A.DrawOnChanged,this.durations=[],this.frameTimes=[],this.frameCount=0,this.isTouchScrollEnabled=!1,this.onCanvasResize=function(s){var j0=V._hasZeroSize!==s;if(V._hasZeroSize=s,!s){if(j0)V.resizeDrawingSurfaceToCanvas()}else if(!V._layout.maxX||!V._layout.maxY)V.resizeToCanvas()},this.renderSecondTimer=0,this._boundDraw=this.draw.bind(this),this.canvas=z.canvas,z.canvas.constructor===HTMLCanvasElement)this._observed=W0.add(this.canvas,this.onCanvasResize);if(this.src=z.src,this.buffer=z.buffer,this.riveFile=z.riveFile,this.layout=(I=z.layout)!==null&&I!==void 0?I:new E,this.shouldDisableRiveListeners=!!z.shouldDisableRiveListeners,this.isTouchScrollEnabled=!!z.isTouchScrollEnabled,this.automaticallyHandleEvents=!!z.automaticallyHandleEvents,this.dispatchPointerExit=z.dispatchPointerExit===!1?z.dispatchPointerExit:this.dispatchPointerExit,this.enableMultiTouch=!!z.enableMultiTouch,this.drawOptimization=(g=z.drawingOptions)!==null&&g!==void 0?g:this.drawOptimization,this.enableRiveAssetCDN=z.enableRiveAssetCDN===void 0?!0:z.enableRiveAssetCDN,this.eventManager=new q0,z.onLoad)this.on(_.Load,z.onLoad);if(z.onLoadError)this.on(_.LoadError,z.onLoadError);if(z.onPlay)this.on(_.Play,z.onPlay);if(z.onPause)this.on(_.Pause,z.onPause);if(z.onStop)this.on(_.Stop,z.onStop);if(z.onLoop)this.on(_.Loop,z.onLoop);if(z.onStateChange)this.on(_.StateChange,z.onStateChange);if(z.onAdvance)this.on(_.Advance,z.onAdvance);if(z.onload&&!z.onLoad)this.on(_.Load,z.onload);if(z.onloaderror&&!z.onLoadError)this.on(_.LoadError,z.onloaderror);if(z.onplay&&!z.onPlay)this.on(_.Play,z.onplay);if(z.onpause&&!z.onPause)this.on(_.Pause,z.onpause);if(z.onstop&&!z.onStop)this.on(_.Stop,z.onstop);if(z.onloop&&!z.onLoop)this.on(_.Loop,z.onloop);if(z.onstatechange&&!z.onStateChange)this.on(_.StateChange,z.onstatechange);if(z.assetLoader)this.assetLoader=z.assetLoader;this.taskQueue=new Q0(this.eventManager),this.init({src:this.src,buffer:this.buffer,riveFile:this.riveFile,autoplay:z.autoplay,autoBind:z.autoBind,animations:z.animations,stateMachines:z.stateMachines,artboard:z.artboard,useOffscreenRenderer:z.useOffscreenRenderer})}return Object.defineProperty(M.prototype,"viewModelCount",{get:function(){return this.file.viewModelCount()},enumerable:!1,configurable:!0}),M.new=function(z){return console.warn("This function is deprecated: please use `new Rive({})` instead"),new M(z)},M.prototype.onSystemAudioChanged=function(){this.volume=this._volume},M.prototype.init=function(z){var V=this,I=z.src,g=z.buffer,s=z.riveFile,j0=z.animations,b0=z.stateMachines,o0=z.artboard,y0=z.autoplay,l0=y0===void 0?!1:y0,$1=z.useOffscreenRenderer,T1=$1===void 0?!1:$1,Q1=z.autoBind,i0=Q1===void 0?!1:Q1;if(this.destroyed)return;if(this.src=I,this.buffer=g,this.riveFile=s,!this.src&&!this.buffer&&!this.riveFile)throw new j(M.missingErrorMessage);var h1=n0(j0),j1=n0(b0);this.loaded=!1,this.readyForPlaying=!1,k.awaitInstance().then(function(A1){if(V.destroyed)return;if(V.runtime=A1,V.removeRiveListeners(),V.deleteRiveRenderer(),V.renderer=V.runtime.makeRenderer(V.canvas,T1),!(V.canvas.width||V.canvas.height))V.resizeDrawingSurfaceToCanvas();V.initData(o0,h1,j1,l0,i0).then(function(S1){if(S1)return V.setupRiveListeners()}).catch(function(S1){console.error(S1)})}).catch(function(A1){console.error(A1)})},M.prototype.setupRiveListeners=function(z){var V=this;if(this.eventCleanup)this.eventCleanup();if(!this.shouldDisableRiveListeners){var I=(this.animator.stateMachines||[]).filter(function(b0){return b0.playing&&V.runtime.hasListeners(b0.instance)}).map(function(b0){return b0.instance}),g=this.isTouchScrollEnabled,s=this.dispatchPointerExit,j0=this.enableMultiTouch;if(z&&"isTouchScrollEnabled"in z)g=z.isTouchScrollEnabled;this.eventCleanup=(0,W.registerTouchInteractions)({canvas:this.canvas,artboard:this.artboard,stateMachines:I,renderer:this.renderer,rive:this.runtime,fit:this._layout.runtimeFit(this.runtime),alignment:this._layout.runtimeAlignment(this.runtime),isTouchScrollEnabled:g,dispatchPointerExit:s,enableMultiTouch:j0,layoutScaleFactor:this._layout.layoutScaleFactor})}},M.prototype.removeRiveListeners=function(){if(this.eventCleanup)this.eventCleanup(),this.eventCleanup=null},M.prototype.initializeAudio=function(){var z=this,V;if(o.status==z0.UNAVAILABLE){if(((V=this.artboard)===null||V===void 0?void 0:V.hasAudio)&&this._audioEventListener===null)this._audioEventListener={type:_.AudioStatusChange,callback:function(){return z.onSystemAudioChanged()}},o.add(this._audioEventListener),o.establishAudio()}},M.prototype.initArtboardSize=function(){if(!this.artboard)return;this._artboardWidth=this.artboard.width=this._artboardWidth||this.artboard.width,this._artboardHeight=this.artboard.height=this._artboardHeight||this.artboard.height},M.prototype.initData=function(z,V,I,g,s){return L(this,void 0,void 0,function(){var j0,b0,o0,y0;return N(this,function(l0){switch(l0.label){case 0:if(l0.trys.push([0,3,,4]),this.riveFile!=null)return[3,2];return j0=new C0({src:this.src,buffer:this.buffer,enableRiveAssetCDN:this.enableRiveAssetCDN,assetLoader:this.assetLoader}),this.riveFile=j0,[4,j0.init()];case 1:if(l0.sent(),this.destroyed)return j0.destroyIfUnused(),[2,!1];l0.label=2;case 2:return this.file=this.riveFile.getInstance(),this.initArtboard(z,V,I,g,s),this.initArtboardSize(),this.initializeAudio(),this.loaded=!0,this.eventManager.fire({type:_.Load,data:(y0=this.src)!==null&&y0!==void 0?y0:"buffer"}),this.animator.advanceIfPaused(),this.readyForPlaying=!0,this.taskQueue.process(),this.drawFrame(),[2,!0];case 3:return b0=l0.sent(),o0=R(b0),console.warn(o0),this.eventManager.fire({type:_.LoadError,data:o0}),[2,Promise.reject(o0)];case 4:return[2]}})})},M.prototype.initArtboard=function(z,V,I,g,s){if(!this.file)return;var j0=z?this.file.artboardByName(z):this.file.defaultArtboard();if(!j0){var b0="Invalid artboard name or no default artboard";console.warn(b0),this.eventManager.fire({type:_.LoadError,data:b0});return}this.artboard=j0,j0.volume=this._volume*o.systemVolume,this.animator=new m(this.runtime,this.artboard,this.eventManager);var o0;if(V.length>0||I.length>0)o0=V.concat(I),this.animator.initLinearAnimations(V,g),this.animator.initStateMachines(I,g);else o0=[this.animator.atLeastOne(g,!1)];if(this.taskQueue.add({event:{type:g?_.Play:_.Pause,data:o0}}),s){var y0=this.file.defaultArtboardViewModel(j0);if(y0!==null){var l0=y0.defaultInstance();if(l0!==null){var $1=new H0(l0,null);(0,W.createFinalization)($1,$1.runtimeInstance),this.bindViewModelInstance($1)}}}},M.prototype.drawFrame=function(){var z,V;if((z=document===null||document===void 0?void 0:document.timeline)===null||z===void 0?void 0:z.currentTime){if(this.loaded&&this.artboard&&!this.frameRequestId)this._boundDraw(document.timeline.currentTime),(V=this.runtime)===null||V===void 0||V.resolveAnimationFrame()}else this.scheduleRendering()},M.prototype.draw=function(z,V){var I;this.frameRequestId=null;var g=performance.now();if(!this.lastRenderTime)this.lastRenderTime=z;if(this.renderSecondTimer+=z-this.lastRenderTime,this.renderSecondTimer>5000)this.renderSecondTimer=0,V===null||V===void 0||V();var s=(z-this.lastRenderTime)/1000;this.lastRenderTime=z;var j0=this.animator.animations.filter(function($0){return $0.playing||$0.needsScrub}).sort(function($0){return $0.needsScrub?-1:1});for(var b0=0,o0=j0;b00)this.animator.stateMachines.forEach(function(I){return I.bindViewModelInstance(z)});else this.artboard.bindViewModelInstance(z.runtimeInstance)}},Object.defineProperty(M.prototype,"viewModelInstance",{get:function(){return this._viewModelInstance},enumerable:!1,configurable:!0}),M.prototype.viewModelByIndex=function(z){var V=this.file.viewModelByIndex(z);if(V!==null)return new p(V);return null},M.prototype.viewModelByName=function(z){var V;return(V=this.riveFile)===null||V===void 0?void 0:V.viewModelByName(z)},M.prototype.enums=function(){if(this._dataEnums===null){var z=this.file.enums();this._dataEnums=z.map(function(V){return new a(V)})}return this._dataEnums},M.prototype.defaultViewModel=function(){if(this.artboard){var z=this.file.defaultArtboardViewModel(this.artboard);if(z)return new p(z)}return null},M.prototype.getArtboard=function(z){var V,I;return(I=(V=this.riveFile)===null||V===void 0?void 0:V.getArtboard(z))!==null&&I!==void 0?I:null},M.prototype.getBindableArtboard=function(z){var V,I;return(I=(V=this.riveFile)===null||V===void 0?void 0:V.getBindableArtboard(z))!==null&&I!==void 0?I:null},M.prototype.getDefaultBindableArtboard=function(){var z,V;return(V=(z=this.riveFile)===null||z===void 0?void 0:z.getDefaultBindableArtboard())!==null&&V!==void 0?V:null},M.missingErrorMessage="Rive source file or data buffer required",M.cleanupErrorMessage="Attempt to use file after calling cleanup.",M}(),p=function(){function M(z){this._viewModel=z}return Object.defineProperty(M.prototype,"instanceCount",{get:function(){return this._viewModel.instanceCount},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"name",{get:function(){return this._viewModel.name},enumerable:!1,configurable:!0}),M.prototype.instanceByIndex=function(z){var V=this._viewModel.instanceByIndex(z);if(V!==null){var I=new H0(V,null);return(0,W.createFinalization)(I,V),I}return null},M.prototype.instanceByName=function(z){var V=this._viewModel.instanceByName(z);if(V!==null){var I=new H0(V,null);return(0,W.createFinalization)(I,V),I}return null},M.prototype.defaultInstance=function(){var z=this._viewModel.defaultInstance();if(z!==null){var V=new H0(z,null);return(0,W.createFinalization)(V,z),V}return null},M.prototype.instance=function(){var z=this._viewModel.instance();if(z!==null){var V=new H0(z,null);return(0,W.createFinalization)(V,z),V}return null},Object.defineProperty(M.prototype,"properties",{get:function(){return this._viewModel.getProperties()},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"instanceNames",{get:function(){return this._viewModel.getInstanceNames()},enumerable:!1,configurable:!0}),M}(),a=function(){function M(z){this._dataEnum=z}return Object.defineProperty(M.prototype,"name",{get:function(){return this._dataEnum.name},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"values",{get:function(){return this._dataEnum.values},enumerable:!1,configurable:!0}),M}(),G0;(function(M){M.Number="number",M.String="string",M.Boolean="boolean",M.Color="color",M.Trigger="trigger",M.Enum="enum",M.List="list",M.Image="image",M.Artboard="artboard"})(G0||(G0={}));var H0=function(){function M(z,V){if(this._parents=[],this._children=[],this._viewModelInstances=new Map,this._propertiesWithCallbacks=[],this._referenceCount=0,this.selfUnref=!1,this._runtimeInstance=z,V!==null)this._parents.push(V)}return Object.defineProperty(M.prototype,"runtimeInstance",{get:function(){return this._runtimeInstance},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"nativeInstance",{get:function(){return this._runtimeInstance},enumerable:!1,configurable:!0}),M.prototype.handleCallbacks=function(){if(this._propertiesWithCallbacks.length!==0)this._propertiesWithCallbacks.forEach(function(z){z.handleCallbacks()}),this._propertiesWithCallbacks.forEach(function(z){z.clearChanges()});this._children.forEach(function(z){return z.handleCallbacks()})},M.prototype.addParent=function(z){if(!this._parents.includes(z)){if(this._parents.push(z),this._propertiesWithCallbacks.length>0||this._children.length>0)z.addToViewModelCallbacks(this)}},M.prototype.removeParent=function(z){var V=this._parents.indexOf(z);if(V!==-1){var I=this._parents[V];I.removeFromViewModelCallbacks(this),this._parents.splice(V,1)}},M.prototype.addToPropertyCallbacks=function(z){var V=this;if(!this._propertiesWithCallbacks.includes(z)){if(this._propertiesWithCallbacks.push(z),this._propertiesWithCallbacks.length>0)this._parents.forEach(function(I){I.addToViewModelCallbacks(V)})}},M.prototype.removeFromPropertyCallbacks=function(z){var V=this;if(this._propertiesWithCallbacks.includes(z)){if(this._propertiesWithCallbacks=this._propertiesWithCallbacks.filter(function(I){return I!==z}),this._children.length===0&&this._propertiesWithCallbacks.length===0)this._parents.forEach(function(I){I.removeFromViewModelCallbacks(V)})}},M.prototype.addToViewModelCallbacks=function(z){var V=this;if(!this._children.includes(z))this._children.push(z),this._parents.forEach(function(I){I.addToViewModelCallbacks(V)})},M.prototype.removeFromViewModelCallbacks=function(z){var V=this;if(this._children.includes(z)){if(this._children=this._children.filter(function(I){return I!==z}),this._children.length===0&&this._propertiesWithCallbacks.length===0)this._parents.forEach(function(I){I.removeFromViewModelCallbacks(V)})}},M.prototype.clearCallbacks=function(){this._propertiesWithCallbacks.forEach(function(z){z.clearCallbacks()})},M.prototype.propertyFromPath=function(z,V){var I=z.split("/");return this.propertyFromPathSegments(I,0,V)},M.prototype.viewModelFromPathSegments=function(z,V){var I=this.internalViewModelInstance(z[V]);if(I!==null)if(V==z.length-1)return I;else return I.viewModelFromPathSegments(z,V++);return null},M.prototype.propertyFromPathSegments=function(z,V,I){var g,s,j0,b0,o0,y0,l0,$1,T1,Q1,i0,h1,j1,A1,S1,H$,v0,w;if(V1?this.viewModelFromPathSegments(V.slice(0,V.length-1),0):this;if(I!=null)return I.internalViewModelInstance(V[V.length-1]);return null},M.prototype.internalReplaceViewModel=function(z,V){var I;if(V.runtimeInstance!==null){var g=((I=this._runtimeInstance)===null||I===void 0?void 0:I.replaceViewModel(z,V.runtimeInstance))||!1;if(g){V.internalIncrementReferenceCount();var s=this.internalViewModelInstance(z);if(s!==null){if(s.removeParent(this),this._children.includes(s))this._children=this._children.filter(function(j0){return j0!==s});s.cleanup()}this._viewModelInstances.set(z,V),V.addParent(this)}return g}return!1},M.prototype.replaceViewModel=function(z,V){var I,g=z.split("/"),s=g.length>1?this.viewModelFromPathSegments(g.slice(0,g.length-1),0):this;return(I=s===null||s===void 0?void 0:s.internalReplaceViewModel(g[g.length-1],V))!==null&&I!==void 0?I:!1},M.prototype.incrementReferenceCount=function(){var z;this._referenceCount++,(z=this._runtimeInstance)===null||z===void 0||z.incrementReferenceCount()},M.prototype.decrementReferenceCount=function(){var z;this._referenceCount--,(z=this._runtimeInstance)===null||z===void 0||z.decrementReferenceCount()},Object.defineProperty(M.prototype,"properties",{get:function(){var z;return((z=this._runtimeInstance)===null||z===void 0?void 0:z.getProperties().map(function(V){return X({},V)}))||[]},enumerable:!1,configurable:!0}),M.prototype.internalIncrementReferenceCount=function(){this._referenceCount++},M.prototype.cleanup=function(){var z=this,V;if(this._referenceCount--,this._referenceCount<=0){if(this.selfUnref)(V=this._runtimeInstance)===null||V===void 0||V.unref();this._runtimeInstance=null,this.clearCallbacks(),this._propertiesWithCallbacks=[],this._viewModelInstances.forEach(function(s){s.cleanup()}),this._viewModelInstances.clear();var I=F([],this._children,!0);this._children.length=0;var g=F([],this._parents,!0);this._parents.length=0,I.forEach(function(s){s.removeParent(z)}),g.forEach(function(s){s.removeFromViewModelCallbacks(z)})}},M}(),M0=function(){function M(z,V){this.callbacks=[],this._viewModelInstanceValue=z,this._parentViewModel=V}return M.prototype.on=function(z){if(this.callbacks.length===0)this._viewModelInstanceValue.clearChanges();if(!this.callbacks.includes(z))this.callbacks.push(z),this._parentViewModel.addToPropertyCallbacks(this)},M.prototype.off=function(z){if(!z)this.callbacks.length=0;else this.callbacks=this.callbacks.filter(function(V){return V!==z});if(this.callbacks.length===0)this._parentViewModel.removeFromPropertyCallbacks(this)},M.prototype.internalHandleCallback=function(z){},M.prototype.handleCallbacks=function(){var z=this;if(this._viewModelInstanceValue.hasChanged)this.callbacks.forEach(function(V){z.internalHandleCallback(V)})},M.prototype.clearChanges=function(){this._viewModelInstanceValue.clearChanges()},M.prototype.clearCallbacks=function(){this.callbacks.length=0},Object.defineProperty(M.prototype,"name",{get:function(){return this._viewModelInstanceValue.name},enumerable:!1,configurable:!0}),M}(),B0=function(M){G(z,M);function z(V,I){return M.call(this,V,I)||this}return Object.defineProperty(z.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(V){this._viewModelInstanceValue.value=V},enumerable:!1,configurable:!0}),z.prototype.internalHandleCallback=function(V){V(this.value)},z}(M0),R0=function(M){G(z,M);function z(V,I){return M.call(this,V,I)||this}return Object.defineProperty(z.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(V){this._viewModelInstanceValue.value=V},enumerable:!1,configurable:!0}),z.prototype.internalHandleCallback=function(V){V(this.value)},z}(M0),S0=function(M){G(z,M);function z(V,I){return M.call(this,V,I)||this}return Object.defineProperty(z.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(V){this._viewModelInstanceValue.value=V},enumerable:!1,configurable:!0}),z.prototype.internalHandleCallback=function(V){V(this.value)},z}(M0),V0=function(M){G(z,M);function z(V,I){return M.call(this,V,I)||this}return z.prototype.trigger=function(){return this._viewModelInstanceValue.trigger()},z.prototype.internalHandleCallback=function(V){V()},z}(M0),P0=function(M){G(z,M);function z(V,I){return M.call(this,V,I)||this}return Object.defineProperty(z.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(V){this._viewModelInstanceValue.value=V},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"valueIndex",{get:function(){return this._viewModelInstanceValue.valueIndex},set:function(V){this._viewModelInstanceValue.valueIndex=V},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"values",{get:function(){return this._viewModelInstanceValue.values},enumerable:!1,configurable:!0}),z.prototype.internalHandleCallback=function(V){V(this.value)},z}(M0),A0=function(M){G(z,M);function z(V,I){return M.call(this,V,I)||this}return Object.defineProperty(z.prototype,"length",{get:function(){return this._viewModelInstanceValue.size},enumerable:!1,configurable:!0}),z.prototype.addInstance=function(V){if(V.runtimeInstance!=null)this._viewModelInstanceValue.addInstance(V.runtimeInstance),V.addParent(this._parentViewModel)},z.prototype.addInstanceAt=function(V,I){if(V.runtimeInstance!=null){if(this._viewModelInstanceValue.addInstanceAt(V.runtimeInstance,I))return V.addParent(this._parentViewModel),!0}return!1},z.prototype.removeInstance=function(V){if(V.runtimeInstance!=null)this._viewModelInstanceValue.removeInstance(V.runtimeInstance),V.removeParent(this._parentViewModel)},z.prototype.removeInstanceAt=function(V){this._viewModelInstanceValue.removeInstanceAt(V)},z.prototype.instanceAt=function(V){var I=this._viewModelInstanceValue.instanceAt(V);if(I!=null){var g=new H0(I,this._parentViewModel);return(0,W.createFinalization)(g,I),g}return null},z.prototype.swap=function(V,I){this._viewModelInstanceValue.swap(V,I)},z.prototype.internalHandleCallback=function(V){V()},z}(M0),I0=function(M){G(z,M);function z(V,I){return M.call(this,V,I)||this}return Object.defineProperty(z.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(V){this._viewModelInstanceValue.value=V},enumerable:!1,configurable:!0}),z.prototype.rgb=function(V,I,g){this._viewModelInstanceValue.rgb(V,I,g)},z.prototype.rgba=function(V,I,g,s){this._viewModelInstanceValue.argb(s,V,I,g)},z.prototype.argb=function(V,I,g,s){this._viewModelInstanceValue.argb(V,I,g,s)},z.prototype.alpha=function(V){this._viewModelInstanceValue.alpha(V)},z.prototype.opacity=function(V){this._viewModelInstanceValue.alpha(Math.round(Math.max(0,Math.min(1,V))*255))},z.prototype.internalHandleCallback=function(V){V(this.value)},z}(M0),c=function(M){G(z,M);function z(V,I){return M.call(this,V,I)||this}return Object.defineProperty(z.prototype,"value",{set:function(V){var I;this._viewModelInstanceValue.value((I=V===null||V===void 0?void 0:V.nativeImage)!==null&&I!==void 0?I:null)},enumerable:!1,configurable:!0}),z.prototype.internalHandleCallback=function(V){V()},z}(M0),f0=function(M){G(z,M);function z(V,I){return M.call(this,V,I)||this}return Object.defineProperty(z.prototype,"value",{set:function(V){var I,g,s;if(V.isBindableArtboard)s=V;else s=V.file.internalBindableArtboardFromArtboard(V.nativeArtboard);if(this._viewModelInstanceValue.value((I=s===null||s===void 0?void 0:s.nativeArtboard)!==null&&I!==void 0?I:null),s===null||s===void 0?void 0:s.nativeViewModel)this._viewModelInstanceValue.viewModelInstance((g=s===null||s===void 0?void 0:s.nativeViewModel)!==null&&g!==void 0?g:null)},enumerable:!1,configurable:!0}),z.prototype.internalHandleCallback=function(V){V()},z}(M0),d0=function(M){return L(void 0,void 0,void 0,function(){var z,V,I;return N(this,function(g){switch(g.label){case 0:return z=new Request(M),[4,fetch(z)];case 1:return V=g.sent(),[4,V.arrayBuffer()];case 2:return I=g.sent(),[2,I]}})})},n0=function(M){if(typeof M==="string")return[M];else if(M instanceof Array)return M;return[]},u0={EventManager:q0,TaskQueueManager:Q0},T0=function(M){return L(void 0,void 0,void 0,function(){var z,V,I;return N(this,function(g){switch(g.label){case 0:return z=new Promise(function(s){return k.getInstance(function(j0){j0.decodeAudio(M,s)})}),[4,z];case 1:return V=g.sent(),I=new W.AudioWrapper(V),W.finalizationRegistry.register(I,V),[2,I]}})})},t0=function(M){return L(void 0,void 0,void 0,function(){var z,V,I;return N(this,function(g){switch(g.label){case 0:return z=new Promise(function(s){return k.getInstance(function(j0){j0.decodeImage(M,s)})}),[4,z];case 1:return V=g.sent(),I=new W.ImageWrapper(V),W.finalizationRegistry.register(I,V),[2,I]}})})},W1=function(M){return L(void 0,void 0,void 0,function(){var z,V,I;return N(this,function(g){switch(g.label){case 0:return z=new Promise(function(s){return k.getInstance(function(j0){j0.decodeFont(M,s)})}),[4,z];case 1:return V=g.sent(),I=new W.FontWrapper(V),W.finalizationRegistry.register(I,V),[2,I]}})})}})(),Q})()})});var h2={};V$(h2,{App:()=>G4});var o4="1.3.17";function c5(Z,$,J){return Math.max(Z,Math.min($,J))}function l4(Z,$,J){return(1-J)*Z+J*$}function n4(Z,$,J,Q){return l4(Z,$,1-Math.exp(-J*Q))}function i4(Z,$){return(Z%$+$)%$}var s4=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(Z){if(!this.isRunning)return;let $=!1;if(this.duration&&this.easing){this.currentTime+=Z;let J=c5(0,this.currentTime/this.duration,1);$=J>=1;let Q=$?1:this.easing(J);this.value=this.from+(this.to-this.from)*Q}else if(this.lerp){if(this.value=n4(this.value,this.to,this.lerp*60,Z),Math.round(this.value)===this.to)this.value=this.to,$=!0}else this.value=this.to,$=!0;if($)this.stop();this.onUpdate?.(this.value,$)}stop(){this.isRunning=!1}fromTo(Z,$,{lerp:J,duration:Q,easing:K,onStart:q,onUpdate:U}){this.from=this.value=Z,this.to=$,this.lerp=J,this.duration=Q,this.easing=K,this.currentTime=0,this.isRunning=!0,q?.(),this.onUpdate=U}};function r4(Z,$){let J;return function(...Q){let K=this;clearTimeout(J),J=setTimeout(()=>{J=void 0,Z.apply(K,Q)},$)}}var a4=class{constructor(Z,$,{autoResize:J=!0,debounce:Q=250}={}){if(this.wrapper=Z,this.content=$,J){if(this.debouncedResize=r4(this.resize,Q),this.wrapper instanceof Window)window.addEventListener("resize",this.debouncedResize,!1);else this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper);this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)}this.resize()}width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;destroy(){if(this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize)window.removeEventListener("resize",this.debouncedResize,!1)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{if(this.wrapper instanceof Window)this.width=window.innerWidth,this.height=window.innerHeight;else this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight};onContentResize=()=>{if(this.wrapper instanceof Window)this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth;else this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},m5=class{events={};emit(Z,...$){let J=this.events[Z]||[];for(let Q=0,K=J.length;Q{this.events[Z]=this.events[Z]?.filter((J)=>$!==J)}}off(Z,$){this.events[Z]=this.events[Z]?.filter((J)=>$!==J)}destroy(){this.events={}}},w5=16.666666666666668,N8={passive:!1},t4=class{constructor(Z,$={wheelMultiplier:1,touchMultiplier:1}){this.element=Z,this.options=$,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,N8),this.element.addEventListener("touchstart",this.onTouchStart,N8),this.element.addEventListener("touchmove",this.onTouchMove,N8),this.element.addEventListener("touchend",this.onTouchEnd,N8)}touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new m5;on(Z,$){return this.emitter.on(Z,$)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,N8),this.element.removeEventListener("touchstart",this.onTouchStart,N8),this.element.removeEventListener("touchmove",this.onTouchMove,N8),this.element.removeEventListener("touchend",this.onTouchEnd,N8)}onTouchStart=(Z)=>{let{clientX:$,clientY:J}=Z.targetTouches?Z.targetTouches[0]:Z;this.touchStart.x=$,this.touchStart.y=J,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:Z})};onTouchMove=(Z)=>{let{clientX:$,clientY:J}=Z.targetTouches?Z.targetTouches[0]:Z,Q=-($-this.touchStart.x)*this.options.touchMultiplier,K=-(J-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=$,this.touchStart.y=J,this.lastDelta={x:Q,y:K},this.emitter.emit("scroll",{deltaX:Q,deltaY:K,event:Z})};onTouchEnd=(Z)=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:Z})};onWheel=(Z)=>{let{deltaX:$,deltaY:J,deltaMode:Q}=Z,K=Q===1?w5:Q===2?this.window.width:1,q=Q===1?w5:Q===2?this.window.height:1;$*=K,J*=q,$*=this.options.wheelMultiplier,J*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:$,deltaY:J,event:Z})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}},g5=(Z)=>Math.min(1,1.001-Math.pow(2,-10*Z)),d5=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new s4;emitter=new m5;dimensions;virtualScroll;constructor({wrapper:Z=window,content:$=document.documentElement,eventsTarget:J=Z,smoothWheel:Q=!0,syncTouch:K=!1,syncTouchLerp:q=0.075,touchInertiaExponent:U=1.7,duration:W,easing:G,lerp:X=0.1,infinite:L=!1,orientation:N="vertical",gestureOrientation:F=N==="horizontal"?"both":"vertical",touchMultiplier:j=1,wheelMultiplier:R=1,autoResize:O=!0,prevent:C,virtualScroll:A,overscroll:E=!0,autoRaf:k=!1,anchors:x=!1,autoToggle:T=!1,allowNestedScroll:h=!1,__experimental__naiveDimensions:b=!1,naiveDimensions:S=b,stopInertiaOnNavigate:u=!1}={}){if(window.lenisVersion=o4,!Z||Z===document.documentElement)Z=window;if(typeof W==="number"&&typeof G!=="function")G=g5;else if(typeof G==="function"&&typeof W!=="number")W=1;if(this.options={wrapper:Z,content:$,eventsTarget:J,smoothWheel:Q,syncTouch:K,syncTouchLerp:q,touchInertiaExponent:U,duration:W,easing:G,lerp:X,infinite:L,gestureOrientation:F,orientation:N,touchMultiplier:j,wheelMultiplier:R,autoResize:O,prevent:C,virtualScroll:A,overscroll:E,autoRaf:k,anchors:x,autoToggle:T,allowNestedScroll:h,naiveDimensions:S,stopInertiaOnNavigate:u},this.dimensions=new a4(Z,$,{autoResize:O}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.anchors||this.options.stopInertiaOnNavigate)this.options.wrapper.addEventListener("click",this.onClick,!1);if(this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new t4(J,{touchMultiplier:j,wheelMultiplier:R}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle)this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0});if(this.options.autoRaf)this._rafId=requestAnimationFrame(this.raf)}destroy(){if(this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),this.options.anchors||this.options.stopInertiaOnNavigate)this.options.wrapper.removeEventListener("click",this.onClick,!1);if(this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId)cancelAnimationFrame(this._rafId)}on(Z,$){return this.emitter.on(Z,$)}off(Z,$){return this.emitter.off(Z,$)}onScrollEnd=(Z)=>{if(!(Z instanceof CustomEvent)){if(this.isScrolling==="smooth"||this.isScrolling===!1)Z.stopPropagation()}};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};get overflow(){let Z=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[Z]}checkOverflow(){if(["hidden","clip"].includes(this.overflow))this.internalStop();else this.internalStart()}onTransitionEnd=(Z)=>{if(Z.propertyName.includes("overflow"))this.checkOverflow()};setScroll(Z){if(this.isHorizontal)this.options.wrapper.scrollTo({left:Z,behavior:"instant"});else this.options.wrapper.scrollTo({top:Z,behavior:"instant"})}onClick=(Z)=>{let J=Z.composedPath().filter((Q)=>Q instanceof HTMLAnchorElement&&Q.getAttribute("href"));if(this.options.anchors){let Q=J.find((K)=>K.getAttribute("href")?.includes("#"));if(Q){let K=Q.getAttribute("href");if(K){let q=typeof this.options.anchors==="object"&&this.options.anchors?this.options.anchors:void 0,U=`#${K.split("#")[1]}`;this.scrollTo(U,q)}}}if(this.options.stopInertiaOnNavigate){if(J.find((K)=>K.host===window.location.host))this.reset()}};onPointerDown=(Z)=>{if(Z.button===1)this.reset()};onVirtualScroll=(Z)=>{if(typeof this.options.virtualScroll==="function"&&this.options.virtualScroll(Z)===!1)return;let{deltaX:$,deltaY:J,event:Q}=Z;if(this.emitter.emit("virtual-scroll",{deltaX:$,deltaY:J,event:Q}),Q.ctrlKey)return;if(Q.lenisStopPropagation)return;let K=Q.type.includes("touch"),q=Q.type.includes("wheel");this.isTouching=Q.type==="touchstart"||Q.type==="touchmove";let U=$===0&&J===0;if(this.options.syncTouch&&K&&Q.type==="touchstart"&&U&&!this.isStopped&&!this.isLocked){this.reset();return}let G=this.options.gestureOrientation==="vertical"&&J===0||this.options.gestureOrientation==="horizontal"&&$===0;if(U||G)return;let X=Q.composedPath();X=X.slice(0,X.indexOf(this.rootElement));let L=this.options.prevent;if(X.find((C)=>C instanceof HTMLElement&&(typeof L==="function"&&L?.(C)||C.hasAttribute?.("data-lenis-prevent")||K&&C.hasAttribute?.("data-lenis-prevent-touch")||q&&C.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.checkNestedScroll(C,{deltaX:$,deltaY:J}))))return;if(this.isStopped||this.isLocked){if(Q.cancelable)Q.preventDefault();return}if(!(this.options.syncTouch&&K||this.options.smoothWheel&&q)){this.isScrolling="native",this.animate.stop(),Q.lenisStopPropagation=!0;return}let F=J;if(this.options.gestureOrientation==="both")F=Math.abs(J)>Math.abs($)?J:$;else if(this.options.gestureOrientation==="horizontal")F=$;if(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll0||this.animatedScroll===this.limit&&J<0))Q.lenisStopPropagation=!0;if(Q.cancelable)Q.preventDefault();let j=K&&this.options.syncTouch,O=K&&Q.type==="touchend";if(O)F=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent);this.scrollTo(this.targetScroll+F,{programmatic:!1,...j?{lerp:O?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=()=>{if(this._resetVelocityTimeout!==null)clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null;if(this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){let Z=this.animatedScroll;if(this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-Z,this.direction=Math.sign(this.animatedScroll-Z),!this.isStopped)this.isScrolling="native";if(this.emit(),this.velocity!==0)this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400)}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(!this.isStopped)return;if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}internalStart(){if(!this.isStopped)return;this.reset(),this.isStopped=!1,this.emit()}stop(){if(this.isStopped)return;if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}internalStop(){if(this.isStopped)return;this.reset(),this.isStopped=!0,this.emit()}raf=(Z)=>{let $=Z-(this.time||Z);if(this.time=Z,this.animate.advance($*0.001),this.options.autoRaf)this._rafId=requestAnimationFrame(this.raf)};scrollTo(Z,{offset:$=0,immediate:J=!1,lock:Q=!1,programmatic:K=!0,lerp:q=K?this.options.lerp:void 0,duration:U=K?this.options.duration:void 0,easing:W=K?this.options.easing:void 0,onStart:G,onComplete:X,force:L=!1,userData:N}={}){if((this.isStopped||this.isLocked)&&!L)return;if(typeof Z==="string"&&["top","left","start","#"].includes(Z))Z=0;else if(typeof Z==="string"&&["bottom","right","end"].includes(Z))Z=this.limit;else{let F;if(typeof Z==="string"){if(F=document.querySelector(Z),!F)if(Z==="#top")Z=0;else console.warn("Lenis: Target not found",Z)}else if(Z instanceof HTMLElement&&Z?.nodeType)F=Z;if(F){if(this.options.wrapper!==window){let R=this.rootElement.getBoundingClientRect();$-=this.isHorizontal?R.left:R.top}let j=F.getBoundingClientRect();Z=(this.isHorizontal?j.left:j.top)+this.animatedScroll}}if(typeof Z!=="number")return;if(Z+=$,Z=Math.round(Z),this.options.infinite){if(K){this.targetScroll=this.animatedScroll=this.scroll;let F=Z-this.animatedScroll;if(F>this.limit/2)Z=Z-this.limit;else if(F<-this.limit/2)Z=Z+this.limit}}else Z=c5(0,Z,this.limit);if(Z===this.targetScroll){G?.(this),X?.(this);return}if(this.userData=N??{},J){this.animatedScroll=this.targetScroll=Z,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),X?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}if(!K)this.targetScroll=Z;if(typeof U==="number"&&typeof W!=="function")W=g5;else if(typeof W==="function"&&typeof U!=="number")U=1;this.animate.fromTo(this.animatedScroll,Z,{duration:U,easing:W,lerp:q,onStart:()=>{if(Q)this.isLocked=!0;this.isScrolling="smooth",G?.(this)},onUpdate:(F,j)=>{if(this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=F-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=F,this.setScroll(this.scroll),K)this.targetScroll=F;if(!j)this.emit();if(j)this.reset(),this.emit(),X?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent()}})}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(Z,{deltaX:$,deltaY:J}){let Q=Date.now(),K=Z._lenis??={},q,U,W,G,X,L,N,F,j=this.options.gestureOrientation;if(Q-(K.time??0)>2000){K.time=Date.now();let T=window.getComputedStyle(Z);K.computedStyle=T;let{overflowX:h,overflowY:b}=T;if(q=["auto","overlay","scroll"].includes(h),U=["auto","overlay","scroll"].includes(b),K.hasOverflowX=q,K.hasOverflowY=U,!q&&!U)return!1;if(j==="vertical"&&!U)return!1;if(j==="horizontal"&&!q)return!1;X=Z.scrollWidth,L=Z.scrollHeight,N=Z.clientWidth,F=Z.clientHeight,W=X>N,G=L>F,K.isScrollableX=W,K.isScrollableY=G,K.scrollWidth=X,K.scrollHeight=L,K.clientWidth=N,K.clientHeight=F}else W=K.isScrollableX,G=K.isScrollableY,q=K.hasOverflowX,U=K.hasOverflowY,X=K.scrollWidth,L=K.scrollHeight,N=K.clientWidth,F=K.clientHeight;if(!q&&!U||!W&&!G)return!1;if(j==="vertical"&&(!U||!G))return!1;if(j==="horizontal"&&(!q||!W))return!1;let R;if(j==="horizontal")R="x";else if(j==="vertical")R="y";else{let T=$!==0,h=J!==0;if(T&&q&&W)R="x";if(h&&U&&G)R="y"}if(!R)return!1;let O,C,A,E,k;if(R==="x")O=Z.scrollLeft,C=X-N,A=$,E=q,k=W;else if(R==="y")O=Z.scrollTop,C=L-F,A=J,E=U,k=G;else return!1;return(A>0?O0)&&E&&k}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){if(this.options.naiveDimensions)if(this.isHorizontal)return this.rootElement.scrollWidth-this.rootElement.clientWidth;else return this.rootElement.scrollHeight-this.rootElement.clientHeight;else return this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){let Z=this.options.wrapper;return this.isHorizontal?Z.scrollX??Z.scrollLeft:Z.scrollY??Z.scrollTop}get scroll(){return this.options.infinite?i4(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(Z){if(this._isScrolling!==Z)this._isScrolling=Z,this.updateClassName()}get isStopped(){return this._isStopped}set isStopped(Z){if(this._isStopped!==Z)this._isStopped=Z,this.updateClassName()}get isLocked(){return this._isLocked}set isLocked(Z){if(this._isLocked!==Z)this._isLocked=Z,this.updateClassName()}get isSmooth(){return this.isScrolling==="smooth"}get className(){let Z="lenis";if(this.options.autoToggle)Z+=" lenis-autoToggle";if(this.isStopped)Z+=" lenis-stopped";if(this.isLocked)Z+=" lenis-locked";if(this.isScrolling)Z+=" lenis-scrolling";if(this.isScrolling==="smooth")Z+=" lenis-smooth";return Z}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};function r9(Z){if(Z===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function t5(Z,$){Z.prototype=Object.create($.prototype),Z.prototype.constructor=Z,Z.__proto__=$}/*! * GSAP 3.14.2 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var a$={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},DJ={duration:0.5,overwrite:!1,delay:0},bK,D$,g1,N9=1e8,f1=1/N9,DK=Math.PI*2,e4=DK/4,$j=0,e5=Math.sqrt,Jj=Math.cos,Qj=Math.sin,B$=function($){return typeof $==="string"},i1=function($){return typeof $==="function"},t9=function($){return typeof $==="number"},gQ=function($){return typeof $>"u"},w9=function($){return typeof $==="object"},r$=function($){return $!==!1},xK=function(){return typeof window<"u"},bQ=function($){return i1($)||B$($)},$U=typeof ArrayBuffer==="function"&&ArrayBuffer.isView||function(){},S$=Array.isArray,Zj=/random\([^)]+\)/g,Kj=/,\s*/g,p5=/(?:-?\.?\d|\.)+/gi,fK=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,p8=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,LK=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,yK=/[+-]=-?[.\d]+/,qj=/[^,'"\[\]\s]+/gi,Uj=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,p1,v9,MK,hK,U9={},hQ={},JU,QU=function($){return(hQ=MJ($,U9))&&b$},cQ=function($,J){return console.warn("Invalid property",$,"set to",J,"Missing plugin? gsap.registerPlugin()")},D7=function($,J){return!J&&console.warn($)},ZU=function($,J){return $&&(U9[$]=J)&&hQ&&(hQ[$]=J)||U9},M7=function(){return 0},Wj={suppressEvents:!0,isStart:!0,kill:!1},xQ={suppressEvents:!0,kill:!1},Hj={suppressEvents:!0},_K={},Y8=[],CK={},KU,i$={},FK={},o5=30,fQ=[],vK="",uK=function($){var J=$[0],Q,K;if(w9(J)||i1(J)||($=[$]),!(Q=(J._gsap||{}).harness)){K=fQ.length;while(K--&&!fQ[K].targetTest(J));Q=fQ[K]}K=$.length;while(K--)$[K]&&($[K]._gsap||($[K]._gsap=new mK($[K],Q)))||$.splice(K,1);return $},O8=function($){return $._gsap||uK(V9($))[0]._gsap},wK=function($,J,Q){return(Q=$[J])&&i1(Q)?$[J]():gQ(Q)&&$.getAttribute&&$.getAttribute(J)||Q},v$=function($,J){return($=$.split(",")).forEach(J)||$},s1=function($){return Math.round($*1e5)/1e5||0},d1=function($){return Math.round($*1e7)/1e7||0},o8=function($,J){var Q=J.charAt(0),K=parseFloat(J.substr(2));return $=parseFloat($),Q==="+"?$+K:Q==="-"?$-K:Q==="*"?$*K:$/K},Gj=function($,J){var Q=J.length,K=0;for(;$.indexOf(J[K])<0&&++KW)U=U._prev}if(U)J._next=U._next,U._next=J;else J._next=$[Q],$[Q]=J;if(J._next)J._next._prev=J;else $[K]=J;return J._prev=U,J.parent=J._dp=$,J},k7=function($,J,Q,K){if(Q===void 0)Q="_first";if(K===void 0)K="_last";var{_prev:q,_next:U}=J;if(q)q._next=U;else if($[Q]===J)$[Q]=U;if(U)U._prev=q;else if($[K]===J)$[K]=q;J._next=J._prev=J.parent=null},R8=function($,J){$.parent&&(!J||$.parent.autoRemoveChildren)&&$.parent.remove&&$.parent.remove($),$._act=0},c8=function($,J){if($&&(!J||J._end>$._dur||J._start<0)){var Q=$;while(Q)Q._dirty=1,Q=Q.parent}return $},Xj=function($){var J=$.parent;while(J&&J.parent)J._dirty=1,J.totalDuration(),J=J.parent;return $},AK=function($,J,Q,K){return $._startAt&&(D$?$._startAt.revert(xQ):$.vars.immediateRender&&!$.vars.autoRevert||$._startAt.render(J,!0,K))},zj=function Z($){return!$||$._ts&&Z($.parent)},n5=function($){return $._repeat?CJ($._tTime,$=$.duration()+$._rDelay)*$:0},CJ=function($,J){var Q=Math.floor($=d1($/J));return $&&Q===$?Q-1:Q},uQ=function($,J){return($-J._start)*J._ts+(J._ts>=0?0:J._dirty?J.totalDuration():J._tDur)},mQ=function($){return $._end=d1($._start+($._tDur/Math.abs($._ts||$._rts||f1)||0))},dQ=function($,J){var Q=$._dp;if(Q&&Q.smoothChildTiming&&$._ts)$._start=d1(Q._time-($._ts>0?J/$._ts:(($._dirty?$.totalDuration():$._tDur)-J)/-$._ts)),mQ($),Q._dirty||c8(Q,$);return $},GU=function($,J){var Q;if(J._time||!J._dur&&J._initted||J._start<$._time&&(J._dur||!J.add)){if(Q=uQ($.rawTime(),J),!J._dur||I7(0,J.totalDuration(),Q)-J._tTime>f1)J.render(Q,!0)}if(c8($,J)._dp&&$._initted&&$._time>=$._dur&&$._ts){if($._dur<$.duration()){Q=$;while(Q._dp)Q.rawTime()>=0&&Q.totalTime(Q._tTime),Q=Q._dp}$._zTime=-f1}},u9=function($,J,Q,K){return J.parent&&R8(J),J._start=d1((t9(Q)?Q:Q||$!==p1?F9($,Q,J):$._time)+J._delay),J._end=d1(J._start+(J.totalDuration()/Math.abs(J.timeScale())||0)),HU($,J,"_first","_last",$._sort?"_start":0),kK(J)||($._recent=J),K||GU($,J),$._ts<0&&dQ($,$._tTime),$},jU=function($,J){return(U9.ScrollTrigger||cQ("scrollTrigger",J))&&U9.ScrollTrigger.create(J,$)},BU=function($,J,Q,K,q){if(oK($,J,q),!$._initted)return 1;if(!Q&&$._pt&&!D$&&($._dur&&$.vars.lazy!==!1||!$._dur&&$.vars.lazy)&&KU!==s$.frame)return Y8.push($),$._lazy=[q,K],1},Lj=function Z($){var J=$.parent;return J&&J._ts&&J._initted&&!J._lock&&(J.rawTime()<0||Z(J))},kK=function($){var J=$.data;return J==="isFromStart"||J==="isStart"},Fj=function($,J,Q,K){var q=$.ratio,U=J<0||!J&&(!$._start&&Lj($)&&!(!$._initted&&kK($))||($._ts<0||$._dp._ts<0)&&!kK($))?0:1,W=$._rDelay,G=0,X,L,N;if(W&&$._repeat){if(G=I7(0,$._tDur,J),L=CJ(G,W),$._yoyo&&L&1&&(U=1-U),L!==CJ($._tTime,W))q=1-U,$.vars.repeatRefresh&&$._initted&&$.invalidate()}if(U!==q||D$||K||$._zTime===f1||!J&&$._zTime){if(!$._initted&&BU($,J,K,Q,G))return;N=$._zTime,$._zTime=J||(Q?f1:0),Q||(Q=J&&!N),$.ratio=U,$._from&&(U=1-U),$._time=0,$._tTime=G,X=$._pt;while(X)X.r(U,X.d),X=X._next;if(J<0&&AK($,J,Q,!0),$._onUpdate&&!Q&&q9($,"onUpdate"),G&&$._repeat&&!Q&&$.parent&&q9($,"onRepeat"),(J>=$._tDur||J<0)&&$.ratio===U){if(U&&R8($,1),!Q&&!D$)q9($,U?"onComplete":"onReverseComplete",!0),$._prom&&$._prom()}}else if(!$._zTime)$._zTime=J},Nj=function($,J,Q){var K;if(Q>J){K=$._first;while(K&&K._start<=Q){if(K.data==="isPause"&&K._start>J)return K;K=K._next}}else{K=$._last;while(K&&K._start>=Q){if(K.data==="isPause"&&K._start0&&!K&&dQ($,$._tTime=$._tDur*W),$.parent&&mQ($),Q||c8($.parent,$),$},i5=function($){return $ instanceof R$?c8($):AJ($,$._dur)},Vj={_start:0,endTime:M7,totalDuration:M7},F9=function Z($,J,Q){var K=$.labels,q=$._recent||Vj,U=$.duration()>=N9?q.endTime(!1):$._dur,W,G,X;if(B$(J)&&(isNaN(J)||(J in K))){if(G=J.charAt(0),X=J.substr(-1)==="%",W=J.indexOf("="),G==="<"||G===">")return W>=0&&(J=J.replace(/=/,"")),(G==="<"?q._start:q.endTime(q._repeat>=0))+(parseFloat(J.substr(1))||0)*(X?(W<0?q:Q).totalDuration()/100:1);if(W<0)return J in K||(K[J]=U),K[J];if(G=parseFloat(J.charAt(W-1)+J.substr(W+1)),X&&Q)G=G/100*(S$(Q)?Q[0]:Q).totalDuration();return W>1?Z($,J.substr(0,W-1),Q)+G:U+G}return J==null?U:+J},O7=function($,J,Q){var K=t9(J[1]),q=(K?2:1)+($<2?0:1),U=J[q],W,G;if(K&&(U.duration=J[1]),U.parent=Q,$){W=U,G=Q;while(G&&!("immediateRender"in W))W=G.vars.defaults||{},G=r$(G.vars.inherit)&&G.parent;U.immediateRender=r$(W.immediateRender),$<2?U.runBackwards=1:U.startAt=J[q-1]}return new t1(J[0],U,J[q+1])},D8=function($,J){return $||$===0?J($):J},I7=function($,J,Q){return Q<$?$:Q>J?J:Q},M$=function($,J){return!B$($)||!(J=Uj.exec($))?"":J[1]},Yj=function($,J,Q){return D8(Q,function(K){return I7($,J,K)})},IK=[].slice,XU=function($,J){return $&&w9($)&&"length"in $&&(!J&&!$.length||($.length-1 in $)&&w9($[0]))&&!$.nodeType&&$!==v9},Oj=function($,J,Q){if(Q===void 0)Q=[];return $.forEach(function(K){var q;return B$(K)&&!J||XU(K,1)?(q=Q).push.apply(q,V9(K)):Q.push(K)})||Q},V9=function($,J,Q){return g1&&!J&&g1.selector?g1.selector($):B$($)&&!Q&&(MK||!kJ())?IK.call((J||hK).querySelectorAll($),0):S$($)?Oj($,Q):XU($)?IK.call($,0):$?[$]:[]},PK=function($){return $=V9($)[0]||D7("Invalid scope")||{},function(J){var Q=$.current||$.nativeElement||$;return V9(J,Q.querySelectorAll?Q:Q===$?D7("Invalid scope")||hK.createElement("div"):$)}},zU=function($){return $.sort(function(){return 0.5-Math.random()})},LU=function($){if(i1($))return $;var J=w9($)?$:{each:$},Q=m8(J.ease),K=J.from||0,q=parseFloat(J.base)||0,U={},W=K>0&&K<1,G=isNaN(K)||W,X=J.axis,L=K,N=K;if(B$(K))L=N={center:0.5,edges:0.5,end:1}[K]||0;else if(!W&&G)L=K[0],N=K[1];return function(F,j,R){var O=(R||J).length,C=U[O],A,E,k,x,T,h,b,S,u;if(!C){if(u=J.grid==="auto"?0:(J.grid||[1,N9])[1],!u){b=-N9;while(b<(b=R[u++].getBoundingClientRect().left)&&ub&&(b=T),TO?O-1:!X?Math.max(u,O/u):X==="y"?O/u:u)||0)*(K==="edges"?-1:1),C.b=O<0?q-O:q,C.u=M$(J.amount||J.each)||0,Q=Q&&O<0?CU(Q):Q}return O=(C[F]-C.min)/C.max||0,d1(C.b+(Q?Q(O):O)*C.v)+C.u}},TK=function($){var J=Math.pow(10,(($+"").split(".")[1]||"").length);return function(Q){var K=d1(Math.round(parseFloat(Q)/$)*$*J);return(K-K%1)/J+(t9(Q)?0:M$(Q))}},FU=function($,J){var Q=S$($),K,q;if(!Q&&w9($))if(K=Q=$.radius||N9,$.values){if($=V9($.values),q=!t9($[0]))K*=K}else $=TK($.increment);return D8(J,!Q?TK($):i1($)?function(U){return q=$(U),Math.abs(q-U)<=K?q:U}:function(U){var W=parseFloat(q?U.x:U),G=parseFloat(q?U.y:0),X=N9,L=0,N=$.length,F,j;while(N--){if(q)F=$[N].x-W,j=$[N].y-G,F=F*F+j*j;else F=Math.abs($[N]-W);if(FK?q-U:U)})},IJ=function($){return $.replace(Zj,function(J){var Q=J.indexOf("[")+1,K=J.substring(Q||7,Q?J.indexOf("]"):J.length-1).split(Kj);return NU(Q?K:+K[0],Q?0:+K[1],+K[2]||0.00001)})},YU=function($,J,Q,K,q){var U=J-$,W=K-Q;return D8(q,function(G){return Q+((G-$)/U*W||0)})},kj=function Z($,J,Q,K){var q=isNaN($+J)?0:function(j){return(1-j)*$+j*J};if(!q){var U=B$($),W={},G,X,L,N,F;if(Q===!0&&(K=1)&&(Q=null),U)$={p:$},J={p:J};else if(S$($)&&!S$(J)){L=[],N=$.length,F=N-2;for(X=1;X(W=Math.abs(W)))G=U,q=W;return G},q9=function($,J,Q){var K=$.vars,q=K[J],U=g1,W=$._ctx,G,X,L;if(!q)return;return G=K[J+"Params"],X=K.callbackScope||$,Q&&Y8.length&&_Q(),W&&(g1=W),L=G?q.apply(X,G):q.call(X),g1=U,L},N7=function($){return R8($),$.scrollTrigger&&$.scrollTrigger.kill(!!D$),$.progress()<1&&q9($,"onInterrupt"),$},RJ,OU=[],RU=function($){if(!$)return;if($=!$.name&&$.default||$,xK()||$.headless){var J=$.name,Q=i1($),K=J&&!Q&&$.init?function(){this._props=[]}:$,q={init:M7,render:iK,add:dK,kill:cj,modifier:gj,rawVars:0},U={targetTest:0,get:0,getSetter:pQ,aliases:{},register:0};if(kJ(),$!==K){if(i$[J])return;if(t$(K,t$(vQ($,q),U)),MJ(K.prototype,MJ(q,vQ($,U))),i$[K.prop=J]=K,$.targetTest)fQ.push(K),_K[J]=1;J=(J==="css"?"CSS":J.charAt(0).toUpperCase()+J.substr(1))+"Plugin"}ZU(J,K),$.register&&$.register(b$,K,u$)}else OU.push($)},x1=255,V7={aqua:[0,x1,x1],lime:[0,x1,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,x1],navy:[0,0,128],white:[x1,x1,x1],olive:[128,128,0],yellow:[x1,x1,0],orange:[x1,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[x1,0,0],pink:[x1,192,203],cyan:[0,x1,x1],transparent:[x1,x1,x1,0]},NK=function($,J,Q){return $+=$<0?1:$>1?-1:0,($*6<1?J+(Q-J)*$*6:$<0.5?Q:$*3<2?J+(Q-J)*(0.6666666666666666-$)*6:J)*x1+0.5|0},DU=function($,J,Q){var K=!$?V7.black:t9($)?[$>>16,$>>8&x1,$&x1]:0,q,U,W,G,X,L,N,F,j,R;if(!K){if($.substr(-1)===",")$=$.substr(0,$.length-1);if(V7[$])K=V7[$];else if($.charAt(0)==="#"){if($.length<6)q=$.charAt(1),U=$.charAt(2),W=$.charAt(3),$="#"+q+q+U+U+W+W+($.length===5?$.charAt(4)+$.charAt(4):"");if($.length===9)return K=parseInt($.substr(1,6),16),[K>>16,K>>8&x1,K&x1,parseInt($.substr(7),16)/255];$=parseInt($.substr(1),16),K=[$>>16,$>>8&x1,$&x1]}else if($.substr(0,3)==="hsl"){if(K=R=$.match(p5),!J)G=+K[0]%360/360,X=+K[1]/100,L=+K[2]/100,U=L<=0.5?L*(X+1):L+X-L*X,q=L*2-U,K.length>3&&(K[3]*=1),K[0]=NK(G+0.3333333333333333,q,U),K[1]=NK(G,q,U),K[2]=NK(G-0.3333333333333333,q,U);else if(~$.indexOf("="))return K=$.match(fK),Q&&K.length<4&&(K[3]=1),K}else K=$.match(p5)||V7.transparent;K=K.map(Number)}if(J&&!R){if(q=K[0]/x1,U=K[1]/x1,W=K[2]/x1,N=Math.max(q,U,W),F=Math.min(q,U,W),L=(N+F)/2,N===F)G=X=0;else j=N-F,X=L>0.5?j/(2-N-F):j/(N+F),G=N===q?(U-W)/j+(U$||A<0)&&(Q+=A-J),K+=A,T=K-Q,k=T-U,k>0||E)h=++N.frame,F=T-N.time*1000,N.time=T=T/1000,U+=k+(k>=q?4:q-k),x=1;if(E||(G=X(O)),x)for(j=0;j=A&&j--},_listeners:W},N}(),kJ=function(){return!C7&&s$.wake()},Y1={},Pj=/^[\d.\-M][\d.\-,\s]/,Tj=/["']/g,Ej=function($){var J={},Q=$.substr(1,$.length-3).split(":"),K=Q[0],q=1,U=Q.length,W,G,X;for(;q1&&Q.config?Q.config.apply(null,~$.indexOf("{")?[Ej(J[1])]:Sj($).split(",").map(UU)):Y1._CE&&Pj.test($)?Y1._CE("",$):Q},CU=function($){return function(J){return 1-$(1-J)}},AU=function Z($,J){var Q=$._first,K;while(Q){if(Q instanceof R$)Z(Q,J);else if(Q.vars.yoyoEase&&(!Q._yoyo||!Q._repeat)&&Q._yoyo!==J)if(Q.timeline)Z(Q.timeline,J);else K=Q._ease,Q._ease=Q._yEase,Q._yEase=K,Q._yoyo=J;Q=Q._next}},m8=function($,J){return!$?J:(i1($)?$:Y1[$]||bj($))||J},l8=function($,J,Q,K){if(Q===void 0)Q=function(G){return 1-J(1-G)};if(K===void 0)K=function(G){return G<0.5?J(G*2)/2:1-J((1-G)*2)/2};var q={easeIn:J,easeOut:Q,easeInOut:K},U;return v$($,function(W){Y1[W]=U9[W]=q,Y1[U=W.toLowerCase()]=Q;for(var G in q)Y1[U+(G==="easeIn"?".in":G==="easeOut"?".out":".inOut")]=Y1[W+"."+G]=q[G]}),q},kU=function($){return function(J){return J<0.5?(1-$(1-J*2))/2:0.5+$((J-0.5)*2)/2}},VK=function Z($,J,Q){var K=J>=1?J:1,q=(Q||($?0.3:0.45))/(J<1?J:1),U=q/DK*(Math.asin(1/K)||0),W=function(L){return L===1?1:K*Math.pow(2,-10*L)*Qj((L-U)*q)+1},G=$==="out"?W:$==="in"?function(X){return 1-W(1-X)}:kU(W);return q=DK/q,G.config=function(X,L){return Z($,X,L)},G},YK=function Z($,J){if(J===void 0)J=1.70158;var Q=function(U){return U?--U*U*((J+1)*U+J)+1:0},K=$==="out"?Q:$==="in"?function(q){return 1-Q(1-q)}:kU(Q);return K.config=function(q){return Z($,q)},K};v$("Linear,Quad,Cubic,Quart,Quint,Strong",function(Z,$){var J=$<5?$+1:$;l8(Z+",Power"+(J-1),$?function(Q){return Math.pow(Q,J)}:function(Q){return Q},function(Q){return 1-Math.pow(1-Q,J)},function(Q){return Q<0.5?Math.pow(Q*2,J)/2:1-Math.pow((1-Q)*2,J)/2})});Y1.Linear.easeNone=Y1.none=Y1.Linear.easeIn;l8("Elastic",VK("in"),VK("out"),VK());(function(Z,$){var J=1/$,Q=2*J,K=2.5*J,q=function(W){return W0?Q+(Q+this._rDelay)*this._repeat:Q):this.totalDuration()&&this._dur},$.totalDuration=function(Q){if(!arguments.length)return this._tDur;return this._dirty=0,AJ(this,this._repeat<0?Q:(Q-this._repeat*this._rDelay)/(this._repeat+1))},$.totalTime=function(Q,K){if(kJ(),!arguments.length)return this._tTime;var q=this._dp;if(q&&q.smoothChildTiming&&this._ts){dQ(this,Q),!q._dp||q.parent||GU(q,this);while(q&&q.parent){if(q.parent._time!==q._start+(q._ts>=0?q._tTime/q._ts:(q.totalDuration()-q._tTime)/-q._ts))q.totalTime(q._tTime,!0);q=q.parent}if(!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&Q0||!this._tDur&&!Q))u9(this._dp,this,this._start-this._delay)}if(this._tTime!==Q||!this._dur&&!K||this._initted&&Math.abs(this._zTime)===f1||!this._initted&&this._dur&&Q||!Q&&!this._initted&&(this.add||this._ptLookup))this._ts||(this._pTime=Q),qU(this,Q,K);return this},$.time=function(Q,K){return arguments.length?this.totalTime(Math.min(this.totalDuration(),Q+n5(this))%(this._dur+this._rDelay)||(Q?this._dur:0),K):this._time},$.totalProgress=function(Q,K){return arguments.length?this.totalTime(this.totalDuration()*Q,K):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},$.progress=function(Q,K){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-Q:Q)+n5(this),K):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},$.iteration=function(Q,K){var q=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(Q-1)*q,K):this._repeat?CJ(this._tTime,q)+1:1},$.timeScale=function(Q,K){if(!arguments.length)return this._rts===-f1?0:this._rts;if(this._rts===Q)return this;var q=this.parent&&this._ts?uQ(this.parent._time,this):this._tTime;return this._rts=+Q||0,this._ts=this._ps||Q===-f1?0:this._rts,this.totalTime(I7(-Math.abs(this._delay),this.totalDuration(),q),K!==!1),mQ(this),Xj(this)},$.paused=function(Q){if(!arguments.length)return this._ps;if(this._ps!==Q)if(this._ps=Q,Q)this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0;else kJ(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==f1&&(this._tTime-=f1));return this},$.startTime=function(Q){if(arguments.length){this._start=d1(Q);var K=this.parent||this._dp;return K&&(K._sort||!this.parent)&&u9(K,this,this._start-this._delay),this}return this._start},$.endTime=function(Q){return this._start+(r$(Q)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},$.rawTime=function(Q){var K=this.parent||this._dp;return!K?this._tTime:Q&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):!this._ts?this._tTime:uQ(K.rawTime(Q),this)},$.revert=function(Q){if(Q===void 0)Q=Hj;var K=D$;if(D$=Q,gK(this))this.timeline&&this.timeline.revert(Q),this.totalTime(-0.01,Q.suppressEvents);return this.data!=="nested"&&Q.kill!==!1&&this.kill(),D$=K,this},$.globalTime=function(Q){var K=this,q=arguments.length?Q:K.rawTime();while(K)q=K._start+q/(Math.abs(K._ts)||1),K=K._dp;return!this.parent&&this._sat?this._sat.globalTime(Q):q},$.repeat=function(Q){if(arguments.length)return this._repeat=Q===1/0?-2:Q,i5(this);return this._repeat===-2?1/0:this._repeat},$.repeatDelay=function(Q){if(arguments.length){var K=this._time;return this._rDelay=Q,i5(this),K?this.time(K):this}return this._rDelay},$.yoyo=function(Q){if(arguments.length)return this._yoyo=Q,this;return this._yoyo},$.seek=function(Q,K){return this.totalTime(F9(this,Q),r$(K))},$.restart=function(Q,K){return this.play().totalTime(Q?-this._delay:0,r$(K)),this._dur||(this._zTime=-f1),this},$.play=function(Q,K){return Q!=null&&this.seek(Q,K),this.reversed(!1).paused(!1)},$.reverse=function(Q,K){return Q!=null&&this.seek(Q||this.totalDuration(),K),this.reversed(!0).paused(!1)},$.pause=function(Q,K){return Q!=null&&this.seek(Q,K),this.paused(!0)},$.resume=function(){return this.paused(!1)},$.reversed=function(Q){if(arguments.length)return!!Q!==this.reversed()&&this.timeScale(-this._rts||(Q?-f1:0)),this;return this._rts<0},$.invalidate=function(){return this._initted=this._act=0,this._zTime=-f1,this},$.isActive=function(){var Q=this.parent||this._dp,K=this._start,q;return!!(!Q||this._ts&&this._initted&&Q.isActive()&&(q=Q.rawTime(!0))>=K&&q1){if(!K)delete U[Q];else U[Q]=K,q&&(U[Q+"Params"]=q),Q==="onUpdate"&&(this._onUpdate=K);return this}return U[Q]},$.then=function(Q){var K=this,q=K._prom;return new Promise(function(U){var W=i1(Q)?Q:WU,G=function(){var L=K.then;K.then=null,q&&q(),i1(W)&&(W=W(K))&&(W.then||W===K)&&(K.then=L),U(W),K.then=L};if(K._initted&&K.totalProgress()===1&&K._ts>=0||!K._tTime&&K._ts<0)G();else K._prom=G})},$.kill=function(){N7(this)},Z}();t$(A7.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-f1,_prom:0,_ps:!1,_rts:1});var R$=function(Z){t5($,Z);function $(Q,K){var q;if(Q===void 0)Q={};return q=Z.call(this,Q)||this,q.labels={},q.smoothChildTiming=!!Q.smoothChildTiming,q.autoRemoveChildren=!!Q.autoRemoveChildren,q._sort=r$(Q.sortChildren),p1&&u9(Q.parent||p1,r9(q),K),Q.reversed&&q.reverse(),Q.paused&&q.paused(!0),Q.scrollTrigger&&jU(r9(q),Q.scrollTrigger),q}var J=$.prototype;return J.to=function(K,q,U){return O7(0,arguments,this),this},J.from=function(K,q,U){return O7(1,arguments,this),this},J.fromTo=function(K,q,U,W){return O7(2,arguments,this),this},J.set=function(K,q,U){return q.duration=0,q.parent=this,Y7(q).repeatDelay||(q.repeat=0),q.immediateRender=!!q.immediateRender,new t1(K,q,F9(this,U),1),this},J.call=function(K,q,U){return u9(this,t1.delayedCall(0,K,q),U)},J.staggerTo=function(K,q,U,W,G,X,L){return U.duration=q,U.stagger=U.stagger||W,U.onComplete=X,U.onCompleteParams=L,U.parent=this,new t1(K,U,F9(this,G)),this},J.staggerFrom=function(K,q,U,W,G,X,L){return U.runBackwards=1,Y7(U).immediateRender=r$(U.immediateRender),this.staggerTo(K,q,U,W,G,X,L)},J.staggerFromTo=function(K,q,U,W,G,X,L,N){return W.startAt=U,Y7(W).immediateRender=r$(W.immediateRender),this.staggerTo(K,q,W,G,X,L,N)},J.render=function(K,q,U){var W=this._time,G=this._dirty?this.totalDuration():this._tDur,X=this._dur,L=K<=0?0:d1(K),N=this._zTime<0!==K<0&&(this._initted||!X),F,j,R,O,C,A,E,k,x,T,h,b;if(this!==p1&&L>G&&K>=0&&(L=G),L!==this._tTime||U||N){if(W!==this._time&&X)L+=this._time-W,K+=this._time-W;if(F=L,x=this._start,k=this._ts,A=!k,N)X||(W=this._zTime),(K||!q)&&(this._zTime=K);if(this._repeat){if(h=this._yoyo,C=X+this._rDelay,this._repeat<-1&&K<0)return this.totalTime(C*100+K,q,U);if(F=d1(L%C),L===G)O=this._repeat,F=X;else{if(T=d1(L/C),O=~~T,O&&O===T)F=X,O--;F>X&&(F=X)}if(T=CJ(this._tTime,C),!W&&this._tTime&&T!==O&&this._tTime-T*C-this._dur<=0&&(T=O),h&&O&1)F=X-F,b=1;if(O!==T&&!this._lock){var S=h&&T&1,u=S===(h&&O&1);if(O=W&&K>=0){j=this._first;while(j){if(R=j._next,(j._act||F>=j._start)&&j._ts&&E!==j){if(j.parent!==this)return this.render(K,q,U);if(j.render(j._ts>0?(F-j._start)*j._ts:(j._dirty?j.totalDuration():j._tDur)+(F-j._start)*j._ts,q,U),F!==this._time||!this._ts&&!A){E=0,R&&(L+=this._zTime=-f1);break}}j=R}}else{j=this._last;var f=K<0?K:F;while(j){if(R=j._prev,(j._act||f<=j._end)&&j._ts&&E!==j){if(j.parent!==this)return this.render(K,q,U);if(j.render(j._ts>0?(f-j._start)*j._ts:(j._dirty?j.totalDuration():j._tDur)+(f-j._start)*j._ts,q,U||D$&&gK(j)),F!==this._time||!this._ts&&!A){E=0,R&&(L+=this._zTime=f?-f1:f1);break}}j=R}}if(E&&!q){if(this.pause(),E.render(F>=W?0:-f1)._zTime=F>=W?1:-1,this._ts)return this._start=x,mQ(this),this.render(K,q,U)}if(this._onUpdate&&!q&&q9(this,"onUpdate",!0),L===G&&this._tTime>=this.totalDuration()||!L&&W){if(x===this._start||Math.abs(k)!==Math.abs(this._ts)){if(!this._lock){if((K||!X)&&(L===G&&this._ts>0||!L&&this._ts<0)&&R8(this,1),!q&&!(K<0&&!W)&&(L||W||!G))q9(this,L===G&&K>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(L0)&&this._prom()}}}}return this},J.add=function(K,q){var U=this;if(t9(q)||(q=F9(this,q,K)),!(K instanceof A7)){if(S$(K))return K.forEach(function(W){return U.add(W,q)}),this;if(B$(K))return this.addLabel(K,q);if(i1(K))K=t1.delayedCall(0,K);else return this}return this!==K?u9(this,K,q):this},J.getChildren=function(K,q,U,W){if(K===void 0)K=!0;if(q===void 0)q=!0;if(U===void 0)U=!0;if(W===void 0)W=-N9;var G=[],X=this._first;while(X){if(X._start>=W)if(X instanceof t1)q&&G.push(X);else U&&G.push(X),K&&G.push.apply(G,X.getChildren(!0,q,U));X=X._next}return G},J.getById=function(K){var q=this.getChildren(1,1,1),U=q.length;while(U--)if(q[U].vars.id===K)return q[U]},J.remove=function(K){if(B$(K))return this.removeLabel(K);if(i1(K))return this.killTweensOf(K);if(K.parent===this&&k7(this,K),K===this._recent)this._recent=this._last;return c8(this)},J.totalTime=function(K,q){if(!arguments.length)return this._tTime;if(this._forcing=1,!this._dp&&this._ts)this._start=d1(s$.time-(this._ts>0?K/this._ts:(this.totalDuration()-K)/-this._ts));return Z.prototype.totalTime.call(this,K,q),this._forcing=0,this},J.addLabel=function(K,q){return this.labels[K]=F9(this,q),this},J.removeLabel=function(K){return delete this.labels[K],this},J.addPause=function(K,q,U){var W=t1.delayedCall(0,q||M7,U);return W.data="isPause",this._hasPause=1,u9(this,W,F9(this,K))},J.removePause=function(K){var q=this._first;K=F9(this,K);while(q){if(q._start===K&&q.data==="isPause")R8(q);q=q._next}},J.killTweensOf=function(K,q,U){var W=this.getTweensOf(K,U),G=W.length;while(G--)V8!==W[G]&&W[G].kill(K,q);return this},J.getTweensOf=function(K,q){var U=[],W=V9(K),G=this._first,X=t9(q),L;while(G){if(G instanceof t1){if(Gj(G._targets,W)&&(X?(!V8||G._initted&&G._ts)&&G.globalTime(0)<=q&&G.globalTime(G.totalDuration())>q:!q||G.isActive()))U.push(G)}else if((L=G.getTweensOf(W,q)).length)U.push.apply(U,L);G=G._next}return U},J.tweenTo=function(K,q){q=q||{};var U=this,W=F9(U,K),G=q,X=G.startAt,L=G.onStart,N=G.onStartParams,F=G.immediateRender,j,R=t1.to(U,t$({ease:q.ease||"none",lazy:!1,immediateRender:!1,time:W,overwrite:"auto",duration:q.duration||Math.abs((W-(X&&"time"in X?X.time:U._time))/U.timeScale())||f1,onStart:function(){if(U.pause(),!j){var C=q.duration||Math.abs((W-(X&&"time"in X?X.time:U._time))/U.timeScale());R._dur!==C&&AJ(R,C,0,1).render(R._time,!0,!0),j=1}L&&L.apply(R,N||[])}},q));return F?R.render(0):R},J.tweenFromTo=function(K,q,U){return this.tweenTo(q,t$({startAt:{time:F9(this,K)}},U))},J.recent=function(){return this._recent},J.nextLabel=function(K){if(K===void 0)K=this._time;return s5(this,F9(this,K))},J.previousLabel=function(K){if(K===void 0)K=this._time;return s5(this,F9(this,K),1)},J.currentLabel=function(K){return arguments.length?this.seek(K,!0):this.previousLabel(this._time+f1)},J.shiftChildren=function(K,q,U){if(U===void 0)U=0;var W=this._first,G=this.labels,X;K=d1(K);while(W){if(W._start>=U)W._start+=K,W._end+=K;W=W._next}if(q){for(X in G)if(G[X]>=U)G[X]+=K}return c8(this)},J.invalidate=function(K){var q=this._first;this._lock=0;while(q)q.invalidate(K),q=q._next;return Z.prototype.invalidate.call(this,K)},J.clear=function(K){if(K===void 0)K=!0;var q=this._first,U;while(q)U=q._next,this.remove(q),q=U;return this._dp&&(this._time=this._tTime=this._pTime=0),K&&(this.labels={}),c8(this)},J.totalDuration=function(K){var q=0,U=this,W=U._last,G=N9,X,L,N;if(arguments.length)return U.timeScale((U._repeat<0?U.duration():U.totalDuration())/(U.reversed()?-K:K));if(U._dirty){N=U.parent;while(W){if(X=W._prev,W._dirty&&W.totalDuration(),L=W._start,L>G&&U._sort&&W._ts&&!U._lock)U._lock=1,u9(U,W,L-W._delay,1)._lock=0;else G=L;if(L<0&&W._ts){if(q-=L,!N&&!U._dp||N&&N.smoothChildTiming)U._start+=d1(L/U._ts),U._time-=L,U._tTime-=L;U.shiftChildren(-L,!1,-1/0),G=0}W._end>q&&W._ts&&(q=W._end),W=X}AJ(U,U===p1&&U._time>q?U._time:q,1,1),U._dirty=0}return U._tDur},$.updateRoot=function(K){if(p1._ts)qU(p1,uQ(K,p1)),KU=s$.frame;if(s$.frame>=o5){o5+=a$.autoSleep||120;var q=p1._first;if(!q||!q._ts){if(a$.autoSleep&&s$._listeners.length<2){while(q&&!q._ts)q=q._next;q||s$.sleep()}}}},$}(A7);t$(R$.prototype,{_lock:0,_hasPause:0,_forcing:0});var xj=function($,J,Q,K,q,U,W){var G=new u$(this._pt,$,J,0,1,nK,null,q),X=0,L=0,N,F,j,R,O,C,A,E;if(G.b=Q,G.e=K,Q+="",K+="",A=~K.indexOf("random("))K=IJ(K);if(U)E=[Q,K],U(E,$,J),Q=E[0],K=E[1];F=Q.match(LK)||[];while(N=LK.exec(K)){if(R=N[0],O=K.substring(X,N.index),j)j=(j+1)%5;else if(O.substr(-5)==="rgba(")j=1;if(R!==F[L++])C=parseFloat(F[L-1])||0,G._pt={_next:G._pt,p:O||L===1?O:",",s:C,c:R.charAt(1)==="="?o8(C,R)-C:parseFloat(R)-C,m:j&&j<4?Math.round:0},X=LK.lastIndex}if(G.c=X")}),x.duration();else{h={};for(S in R)S==="ease"||S==="easeEach"||_j(S,R[S],h,R.easeEach);for(S in h){n=h[S].sort(function(z0,J0){return z0.t-J0.t}),_=0;for(T=0;TG-f1&&!L?G:KX)F=X;if(A=this._yoyo&&R&1,A)x=this._yEase,F=X-F;if(C=CJ(this._tTime,O),F===W&&!U&&this._initted&&R===C)return this._tTime=N,this;if(R!==C){if(k&&this._yEase&&AU(k,A),this.vars.repeatRefresh&&!A&&!this._lock&&F!==O&&this._initted)this._lock=U=1,this.render(d1(O*R),!0).invalidate()._lock=0}}if(!this._initted){if(BU(this,L?K:F,U,q,N))return this._tTime=0,this;if(W!==this._time&&!(U&&this.vars.repeatRefresh&&R!==C))return this;if(X!==this._dur)return this.render(K,q,U)}if(this._tTime=N,this._time=F,!this._act&&this._ts)this._act=1,this._lazy=0;if(this.ratio=E=(x||this._ease)(F/X),this._from)this.ratio=E=1-E;if(!W&&N&&!q&&!C){if(q9(this,"onStart"),this._tTime!==N)return this}j=this._pt;while(j)j.r(E,j.d),j=j._next;if(k&&k.render(K<0?K:k._dur*k._ease(F/this._dur),q,U)||this._startAt&&(this._zTime=K),this._onUpdate&&!q)L&&AK(this,K,q,U),q9(this,"onUpdate");if(this._repeat&&R!==C&&this.vars.onRepeat&&!q&&this.parent&&q9(this,"onRepeat"),(N===this._tDur||!N)&&this._tTime===N){if(L&&!this._onUpdate&&AK(this,K,!0,!0),(K||!X)&&(N===this._tDur&&this._ts>0||!N&&this._ts<0)&&R8(this,1),!q&&!(L&&!W)&&(N||W||A))q9(this,N===G?"onComplete":"onReverseComplete",!0),this._prom&&!(N0)&&this._prom()}}return this},J.targets=function(){return this._targets},J.invalidate=function(K){return(!K||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(K),Z.prototype.invalidate.call(this,K)},J.resetTo=function(K,q,U,W,G){C7||s$.wake(),this._ts||this.play();var X=Math.min(this._dur,(this._dp._time-this._start)*this._ts),L;if(this._initted||oK(this,X),L=this._ease(X/this._dur),yj(this,K,q,U,W,L,X,G))return this.resetTo(K,q,U,W,1);return dQ(this,0),this.parent||HU(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0)},J.kill=function(K,q){if(q===void 0)q="all";if(!K&&(!q||q==="all"))return this._lazy=this._pt=0,this.parent?N7(this):this.scrollTrigger&&this.scrollTrigger.kill(!!D$),this;if(this.timeline){var U=this.timeline.totalDuration();return this.timeline.killTweensOf(K,q,V8&&V8.vars.overwrite!==!0)._first||N7(this),this.parent&&U!==this.timeline.totalDuration()&&AJ(this,this._dur*this.timeline._tDur/U,0,1),this}var W=this._targets,G=K?V9(K):W,X=this._ptLookup,L=this._pt,N,F,j,R,O,C,A;if((!q||q==="all")&&Bj(W,G))return q==="all"&&(this._pt=0),N7(this);if(N=this._op=this._op||[],q!=="all"){if(B$(q))O={},v$(q,function(E){return O[E]=1}),q=O;q=hj(W,q)}A=W.length;while(A--)if(~G.indexOf(W[A])){if(F=X[A],q==="all")N[A]=q,R=F,j={};else j=N[A]=N[A]||{},R=q;for(O in R){if(C=F&&F[O],C){if(!("kill"in C.d)||C.d.kill(O)===!0)k7(this,C,"_pt");delete F[O]}if(j!=="all")j[O]=1}}return this._initted&&!this._pt&&L&&N7(this),this},$.to=function(K,q){return new $(K,q,arguments[2])},$.from=function(K,q){return O7(1,arguments)},$.delayedCall=function(K,q,U,W){return new $(q,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:K,onComplete:q,onReverseComplete:q,onCompleteParams:U,onReverseCompleteParams:U,callbackScope:W})},$.fromTo=function(K,q,U){return O7(2,arguments)},$.set=function(K,q){return q.duration=0,q.repeatDelay||(q.repeat=0),new $(K,q)},$.killTweensOf=function(K,q,U){return p1.killTweensOf(K,q,U)},$}(A7);t$(t1.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});v$("staggerTo,staggerFrom,staggerFromTo",function(Z){t1[Z]=function(){var $=new R$,J=IK.call(arguments,0);return J.splice(Z==="staggerFromTo"?5:4,0,0),$[Z].apply($,J)}});var lK=function($,J,Q){return $[J]=Q},TU=function($,J,Q){return $[J](Q)},vj=function($,J,Q,K){return $[J](K.fp,Q)},uj=function($,J,Q){return $.setAttribute(J,Q)},pQ=function($,J){return i1($[J])?TU:gQ($[J])&&$.setAttribute?uj:lK},EU=function($,J){return J.set(J.t,J.p,Math.round((J.s+J.c*$)*1e6)/1e6,J)},wj=function($,J){return J.set(J.t,J.p,!!(J.s+J.c*$),J)},nK=function($,J){var Q=J._pt,K="";if(!$&&J.b)K=J.b;else if($===1&&J.e)K=J.e;else{while(Q)K=Q.p+(Q.m?Q.m(Q.s+Q.c*$):Math.round((Q.s+Q.c*$)*1e4)/1e4)+K,Q=Q._next;K+=J.c}J.set(J.t,J.p,K,J)},iK=function($,J){var Q=J._pt;while(Q)Q.r($,Q.d),Q=Q._next},gj=function($,J,Q,K){var q=this._pt,U;while(q)U=q._next,q.p===K&&q.modifier($,J,Q),q=U},cj=function($){var J=this._pt,Q,K;while(J){if(K=J._next,J.p===$&&!J.op||J.op===$)k7(this,J,"_pt");else if(!J.dep)Q=1;J=K}return!Q},mj=function($,J,Q,K){K.mSet($,J,K.m.call(K.tween,Q,K.mt),K)},sK=function($){var J=$._pt,Q,K,q,U;while(J){Q=J._next,K=q;while(K&&K.pr>J.pr)K=K._next;if(J._prev=K?K._prev:U)J._prev._next=J;else q=J;if(J._next=K)K._prev=J;else U=J;J=Q}$._pt=q},u$=function(){function Z(J,Q,K,q,U,W,G,X,L){if(this.t=Q,this.s=q,this.c=U,this.p=K,this.r=W||EU,this.d=G||this,this.set=X||lK,this.pr=L||0,this._next=J,J)J._prev=this}var $=Z.prototype;return $.modifier=function(Q,K,q){this.mSet=this.mSet||this.set,this.set=mj,this.m=Q,this.mt=q,this.tween=K},Z}();v$(vK+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(Z){return _K[Z]=1});U9.TweenMax=U9.TweenLite=t1;U9.TimelineLite=U9.TimelineMax=R$;p1=new R$({sortChildren:!1,defaults:DJ,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});a$.stringFilter=cK;var d8=[],yQ={},dj=[],a5=0,pj=0,OK=function($){return(yQ[$]||dj).map(function(J){return J()})},SK=function(){var $=Date.now(),J=[];if($-a5>2)OK("matchMediaInit"),d8.forEach(function(Q){var{queries:K,conditions:q}=Q,U,W,G,X;for(W in K)if(U=v9.matchMedia(K[W]).matches,U&&(G=1),U!==q[W])q[W]=U,X=1;if(X)Q.revert(),G&&J.push(Q)}),OK("matchMediaRevert"),J.forEach(function(Q){return Q.onMatch(Q,function(K){return Q.add(null,K)})}),a5=$,OK("matchMedia")},SU=function(){function Z(J,Q){this.selector=Q&&PK(Q),this.data=[],this._r=[],this.isReverted=!1,this.id=pj++,J&&this.add(J)}var $=Z.prototype;return $.add=function(Q,K,q){if(i1(Q))q=K,K=Q,Q=i1;var U=this,W=function(){var X=g1,L=U.selector,N;return X&&X!==U&&X.data.push(U),q&&(U.selector=PK(q)),g1=U,N=K.apply(U,arguments),i1(N)&&U._r.push(N),g1=X,U.selector=L,U.isReverted=!1,N};return U.last=W,Q===i1?W(U,function(G){return U.add(null,G)}):Q?U[Q]=W:W},$.ignore=function(Q){var K=g1;g1=null,Q(this),g1=K},$.getTweens=function(){var Q=[];return this.data.forEach(function(K){return K instanceof Z?Q.push.apply(Q,K.getTweens()):K instanceof t1&&!(K.parent&&K.parent.data==="nested")&&Q.push(K)}),Q},$.clear=function(){this._r.length=this.data.length=0},$.kill=function(Q,K){var q=this;if(Q)(function(){var W=q.getTweens(),G=q.data.length,X;while(G--)if(X=q.data[G],X.data==="isFlip")X.revert(),X.getChildren(!0,!0,!1).forEach(function(L){return W.splice(W.indexOf(L),1)});W.map(function(L){return{g:L._dur||L._delay||L._sat&&!L._sat.vars.immediateRender?L.globalTime(0):-1/0,t:L}}).sort(function(L,N){return N.g-L.g||-1/0}).forEach(function(L){return L.t.revert(Q)}),G=q.data.length;while(G--)if(X=q.data[G],X instanceof R$){if(X.data!=="nested")X.scrollTrigger&&X.scrollTrigger.revert(),X.kill()}else!(X instanceof t1)&&X.revert&&X.revert(Q);q._r.forEach(function(L){return L(Q,q)}),q.isReverted=!0})();else this.data.forEach(function(W){return W.kill&&W.kill()});if(this.clear(),K){var U=d8.length;while(U--)d8[U].id===this.id&&d8.splice(U,1)}},$.revert=function(Q){this.kill(Q||{})},Z}(),oj=function(){function Z(J){this.contexts=[],this.scope=J,g1&&g1.data.push(this)}var $=Z.prototype;return $.add=function(Q,K,q){w9(Q)||(Q={matches:Q});var U=new SU(0,q||this.scope),W=U.conditions={},G,X,L;g1&&!U.selector&&(U.selector=g1.selector),this.contexts.push(U),K=U.add("onMatch",K),U.queries=Q;for(X in Q)if(X==="all")L=1;else if(G=v9.matchMedia(Q[X]),G)d8.indexOf(U)<0&&d8.push(U),(W[X]=G.matches)&&(L=1),G.addListener?G.addListener(SK):G.addEventListener("change",SK);return L&&K(U,function(N){return U.add(null,N)}),this},$.revert=function(Q){this.kill(Q||{})},$.kill=function(Q){this.contexts.forEach(function(K){return K.kill(Q,!0)})},Z}(),wQ={registerPlugin:function(){for(var $=arguments.length,J=Array($),Q=0;Q<$;Q++)J[Q]=arguments[Q];J.forEach(function(K){return RU(K)})},timeline:function($){return new R$($)},getTweensOf:function($,J){return p1.getTweensOf($,J)},getProperty:function($,J,Q,K){B$($)&&($=V9($)[0]);var q=O8($||{}).get,U=Q?WU:UU;return Q==="native"&&(Q=""),!$?$:!J?function(W,G,X){return U((i$[W]&&i$[W].get||q)($,W,G,X))}:U((i$[J]&&i$[J].get||q)($,J,Q,K))},quickSetter:function($,J,Q){if($=V9($),$.length>1){var K=$.map(function(L){return b$.quickSetter(L,J,Q)}),q=K.length;return function(L){var N=q;while(N--)K[N](L)}}$=$[0]||{};var U=i$[J],W=O8($),G=W.harness&&(W.harness.aliases||{})[J]||J,X=U?function(L){var N=new U;RJ._pt=0,N.init($,Q?L+Q:L,RJ,0,[$]),N.render(1,N),RJ._pt&&iK(1,RJ)}:W.set($,G);return U?X:function(L){return X($,G,Q?L+Q:L,W,1)}},quickTo:function($,J,Q){var K,q=b$.to($,t$((K={},K[J]="+=0.1",K.paused=!0,K.stagger=0,K),Q||{})),U=function(G,X,L){return q.resetTo(J,G,X,L)};return U.tween=q,U},isTweening:function($){return p1.getTweensOf($,!0).length>0},defaults:function($){return $&&$.ease&&($.ease=m8($.ease,DJ.ease)),l5(DJ,$||{})},config:function($){return l5(a$,$||{})},registerEffect:function($){var{name:J,effect:Q,plugins:K,defaults:q,extendTimeline:U}=$;if((K||"").split(",").forEach(function(W){return W&&!i$[W]&&!U9[W]&&D7(J+" effect requires "+W+" plugin.")}),FK[J]=function(W,G,X){return Q(V9(W),t$(G||{},q),X)},U)R$.prototype[J]=function(W,G,X){return this.add(FK[J](W,w9(G)?G:(X=G)&&{},this),X)}},registerEase:function($,J){Y1[$]=m8(J)},parseEase:function($,J){return arguments.length?m8($,J):Y1},getById:function($){return p1.getById($)},exportRoot:function($,J){if($===void 0)$={};var Q=new R$($),K,q;Q.smoothChildTiming=r$($.smoothChildTiming),p1.remove(Q),Q._dp=0,Q._time=Q._tTime=p1._time,K=p1._first;while(K){if(q=K._next,J||!(!K._dur&&K instanceof t1&&K.vars.onComplete===K._targets[0]))u9(Q,K,K._start-K._delay);K=q}return u9(p1,Q,0),Q},context:function($,J){return $?new SU($,J):g1},matchMedia:function($){return new oj($)},matchMediaRefresh:function(){return d8.forEach(function($){var J=$.conditions,Q,K;for(K in J)if(J[K])J[K]=!1,Q=1;Q&&$.revert()})||SK()},addEventListener:function($,J){var Q=yQ[$]||(yQ[$]=[]);~Q.indexOf(J)||Q.push(J)},removeEventListener:function($,J){var Q=yQ[$],K=Q&&Q.indexOf(J);K>=0&&Q.splice(K,1)},utils:{wrap:Cj,wrapYoyo:Aj,distribute:LU,random:NU,snap:FU,normalize:Mj,getUnit:M$,clamp:Yj,splitColor:DU,toArray:V9,selector:PK,mapRange:YU,pipe:Rj,unitize:Dj,interpolate:kj,shuffle:zU},install:QU,effects:FK,ticker:s$,updateRoot:R$.updateRoot,plugins:i$,globalTimeline:p1,core:{PropTween:u$,globals:ZU,Tween:t1,Timeline:R$,Animation:A7,getCache:O8,_removeLinkedListItem:k7,reverting:function(){return D$},context:function($){if($&&g1)g1.data.push($),$._ctx=g1;return g1},suppressOverwrites:function($){return bK=$}}};v$("to,from,fromTo,delayedCall,set,killTweensOf",function(Z){return wQ[Z]=t1[Z]});s$.add(R$.updateRoot);RJ=wQ.to({},{duration:0});var lj=function($,J){var Q=$._pt;while(Q&&Q.p!==J&&Q.op!==J&&Q.fp!==J)Q=Q._next;return Q},nj=function($,J){var Q=$._targets,K,q,U;for(K in J){q=Q.length;while(q--)if(U=$._ptLookup[q][K],U&&(U=U.d)){if(U._pt)U=lj(U,K);U&&U.modifier&&U.modifier(J[K],$,Q[q],K)}}},RK=function($,J){return{name:$,headless:1,rawVars:1,init:function(K,q,U){U._onInit=function(W){var G,X;if(B$(q))G={},v$(q,function(L){return G[L]=1}),q=G;if(J){G={};for(X in q)G[X]=J(q[X]);q=G}nj(W,q)}}}},b$=wQ.registerPlugin({name:"attr",init:function($,J,Q,K,q){var U,W,G;this.tween=Q;for(U in J)G=$.getAttribute(U)||"",W=this.add($,"setAttribute",(G||0)+"",J[U],K,q,0,0,U),W.op=U,W.b=G,this._props.push(U)},render:function($,J){var Q=J._pt;while(Q)D$?Q.set(Q.t,Q.p,Q.b,Q):Q.r($,Q.d),Q=Q._next}},{name:"endArray",headless:1,init:function($,J){var Q=J.length;while(Q--)this.add($,Q,$[Q]||0,J[Q],0,0,0,0,0,1)}},RK("roundProps",TK),RK("modifiers"),RK("snap",FU))||wQ;t1.version=R$.version=b$.version="3.14.2";JU=1;xK()&&kJ();var{Power0:ij,Power1:sj,Power2:rj,Power3:aj,Power4:tj,Linear:ej,Quad:$B,Cubic:JB,Quart:QB,Quint:ZB,Strong:KB,Elastic:qB,Back:UB,SteppedEase:WB,Bounce:HB,Sine:GB,Expo:jB,Circ:BB}=Y1;/*! * CSSPlugin 3.14.2 * https://gsap.com * * Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var bU,M8,TJ,J6,r8,XB,xU,Q6,zB=function(){return typeof window<"u"},$8={},s8=180/Math.PI,EJ=Math.PI/180,PJ=Math.atan2,fU=1e8,Z6=/([A-Z])/g,LB=/(left|right|width|margin|padding|x)/i,FB=/[\s,\(]\S/,g9={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},aK=function($,J){return J.set(J.t,J.p,Math.round((J.s+J.c*$)*1e4)/1e4+J.u,J)},NB=function($,J){return J.set(J.t,J.p,$===1?J.e:Math.round((J.s+J.c*$)*1e4)/1e4+J.u,J)},VB=function($,J){return J.set(J.t,J.p,$?Math.round((J.s+J.c*$)*1e4)/1e4+J.u:J.b,J)},YB=function($,J){return J.set(J.t,J.p,$===1?J.e:$?Math.round((J.s+J.c*$)*1e4)/1e4+J.u:J.b,J)},OB=function($,J){var Q=J.s+J.c*$;J.set(J.t,J.p,~~(Q+(Q<0?-0.5:0.5))+J.u,J)},cU=function($,J){return J.set(J.t,J.p,$?J.e:J.b,J)},mU=function($,J){return J.set(J.t,J.p,$!==1?J.b:J.e,J)},RB=function($,J,Q){return $.style[J]=Q},DB=function($,J,Q){return $.style.setProperty(J,Q)},MB=function($,J,Q){return $._gsap[J]=Q},CB=function($,J,Q){return $._gsap.scaleX=$._gsap.scaleY=Q},AB=function($,J,Q,K,q){var U=$._gsap;U.scaleX=U.scaleY=Q,U.renderTransform(q,U)},kB=function($,J,Q,K,q){var U=$._gsap;U[J]=Q,U.renderTransform(q,U)},o1="transform",e$=o1+"Origin",IB=function Z($,J){var Q=this,K=this.target,q=K.style,U=K._gsap;if($ in $8&&q){if(this.tfm=this.tfm||{},$!=="transform")$=g9[$]||$,~$.indexOf(",")?$.split(",").forEach(function(W){return Q.tfm[W]=e9(K,W)}):this.tfm[$]=U.x?U[$]:e9(K,$),$===e$&&(this.tfm.zOrigin=U.zOrigin);else return g9.transform.split(",").forEach(function(W){return Z.call(Q,W,J)});if(this.props.indexOf(o1)>=0)return;if(U.svg)this.svgo=K.getAttribute("data-svg-origin"),this.props.push(e$,J,"");$=o1}(q||J)&&this.props.push($,J,q[$])},dU=function($){if($.translate)$.removeProperty("translate"),$.removeProperty("scale"),$.removeProperty("rotate")},PB=function(){var $=this.props,J=this.target,Q=J.style,K=J._gsap,q,U;for(q=0;q<$.length;q+=3)if(!$[q+1])$[q+2]?Q[$[q]]=$[q+2]:Q.removeProperty($[q].substr(0,2)==="--"?$[q]:$[q].replace(Z6,"-$1").toLowerCase());else if($[q+1]===2)J[$[q]]($[q+2]);else J[$[q]]=$[q+2];if(this.tfm){for(U in this.tfm)K[U]=this.tfm[U];if(K.svg)K.renderTransform(),J.setAttribute("data-svg-origin",this.svgo||"");if(q=Q6(),(!q||!q.isStart)&&!Q[o1]){if(dU(Q),K.zOrigin&&Q[e$])Q[e$]+=" "+K.zOrigin+"px",K.zOrigin=0,K.renderTransform();K.uncache=1}}},pU=function($,J){var Q={target:$,props:[],revert:PB,save:IB};return $._gsap||b$.core.getCache($),J&&$.style&&$.nodeType&&J.split(",").forEach(function(K){return Q.save(K)}),Q},oU,tK=function($,J){var Q=M8.createElementNS?M8.createElementNS((J||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),$):M8.createElement($);return Q&&Q.style?Q:M8.createElement($)},W9=function Z($,J,Q){var K=getComputedStyle($);return K[J]||K.getPropertyValue(J.replace(Z6,"-$1").toLowerCase())||K.getPropertyValue(J)||!Q&&Z($,SJ(J)||J,1)||""},yU="O,Moz,ms,Ms,Webkit".split(","),SJ=function($,J,Q){var K=J||r8,q=K.style,U=5;if($ in q&&!Q)return $;$=$.charAt(0).toUpperCase()+$.substr(1);while(U--&&!(yU[U]+$ in q));return U<0?null:(U===3?"ms":U>=0?yU[U]:"")+$},eK=function(){if(zB()&&window.document)bU=window,M8=bU.document,TJ=M8.documentElement,r8=tK("div")||{style:{}},XB=tK("div"),o1=SJ(o1),e$=o1+"Origin",r8.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",oU=!!SJ("perspective"),Q6=b$.core.reverting,J6=1},hU=function($){var J=$.ownerSVGElement,Q=tK("svg",J&&J.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),K=$.cloneNode(!0),q;K.style.display="block",Q.appendChild(K),TJ.appendChild(Q);try{q=K.getBBox()}catch(U){}return Q.removeChild(K),TJ.removeChild(Q),q},_U=function($,J){var Q=J.length;while(Q--)if($.hasAttribute(J[Q]))return $.getAttribute(J[Q])},lU=function($){var J,Q;try{J=$.getBBox()}catch(K){J=hU($),Q=1}return J&&(J.width||J.height)||Q||(J=hU($)),J&&!J.width&&!J.x&&!J.y?{x:+_U($,["x","cx","x1"])||0,y:+_U($,["y","cy","y1"])||0,width:0,height:0}:J},nU=function($){return!!($.getCTM&&(!$.parentNode||$.ownerSVGElement)&&lU($))},A8=function($,J){if(J){var Q=$.style,K;if(J in $8&&J!==e$)J=o1;if(Q.removeProperty){if(K=J.substr(0,2),K==="ms"||J.substr(0,6)==="webkit")J="-"+J;Q.removeProperty(K==="--"?J:J.replace(Z6,"-$1").toLowerCase())}else Q.removeAttribute(J)}},C8=function($,J,Q,K,q,U){var W=new u$($._pt,J,Q,0,1,U?mU:cU);return $._pt=W,W.b=K,W.e=q,$._props.push(Q),W},vU={deg:1,rad:1,turn:1},TB={grid:1,flex:1},k8=function Z($,J,Q,K){var q=parseFloat(Q)||0,U=(Q+"").trim().substr((q+"").length)||"px",W=r8.style,G=LB.test(J),X=$.tagName.toLowerCase()==="svg",L=(X?"client":"offset")+(G?"Width":"Height"),N=100,F=K==="px",j=K==="%",R,O,C,A;if(K===U||!q||vU[K]||vU[U])return q;if(U!=="px"&&!F&&(q=Z($,J,Q,"px")),A=$.getCTM&&nU($),(j||U==="%")&&($8[J]||~J.indexOf("adius")))return R=A?$.getBBox()[G?"width":"height"]:$[L],s1(j?q/R*N:q/100*R);if(W[G?"width":"height"]=N+(F?U:K),O=K!=="rem"&&~J.indexOf("adius")||K==="em"&&$.appendChild&&!X?$:$.parentNode,A)O=($.ownerSVGElement||{}).parentNode;if(!O||O===M8||!O.appendChild)O=M8.body;if(C=O._gsap,C&&j&&C.width&&G&&C.time===s$.time&&!C.uncache)return s1(q/C.width*N);else{if(j&&(J==="height"||J==="width")){var E=$.style[J];$.style[J]=N+K,R=$[L],E?$.style[J]=E:A8($,J)}else(j||U==="%")&&!TB[W9(O,"display")]&&(W.position=W9($,"position")),O===$&&(W.position="static"),O.appendChild(r8),R=r8[L],O.removeChild(r8),W.position="absolute";if(G&&j)C=O8(O),C.time=s$.time,C.width=O[L]}return s1(F?R*q/N:R&&q?N/R*q:0)},e9=function($,J,Q,K){var q;if(J6||eK(),J in g9&&J!=="transform"){if(J=g9[J],~J.indexOf(","))J=J.split(",")[0]}if($8[J]&&J!=="transform")q=E7($,K),q=J!=="transformOrigin"?q[J]:q.svg?q.origin:lQ(W9($,e$))+" "+q.zOrigin+"px";else if(q=$.style[J],!q||q==="auto"||K||~(q+"").indexOf("calc("))q=oQ[J]&&oQ[J]($,J,Q)||W9($,J)||wK($,J)||(J==="opacity"?1:0);return Q&&!~(q+"").trim().indexOf(" ")?k8($,J,q,Q)+Q:q},EB=function($,J,Q,K){if(!Q||Q==="none"){var q=SJ(J,$,1),U=q&&W9($,q,1);if(U&&U!==Q)J=q,Q=U;else if(J==="borderColor")Q=W9($,"borderTopColor")}var W=new u$(this._pt,$.style,J,0,1,nK),G=0,X=0,L,N,F,j,R,O,C,A,E,k,x,T;if(W.b=Q,W.e=K,Q+="",K+="",K.substring(0,6)==="var(--")K=W9($,K.substring(4,K.indexOf(")")));if(K==="auto")O=$.style[J],$.style[J]=K,K=W9($,J)||K,O?$.style[J]=O:A8($,J);if(L=[Q,K],cK(L),Q=L[0],K=L[1],F=Q.match(p8)||[],T=K.match(p8)||[],T.length){while(N=p8.exec(K)){if(C=N[0],E=K.substring(G,N.index),R)R=(R+1)%5;else if(E.substr(-5)==="rgba("||E.substr(-5)==="hsla(")R=1;if(C!==(O=F[X++]||"")){if(j=parseFloat(O)||0,x=O.substr((j+"").length),C.charAt(1)==="="&&(C=o8(j,C)+x),A=parseFloat(C),k=C.substr((A+"").length),G=p8.lastIndex-k.length,!k){if(k=k||a$.units[J]||x,G===K.length)K+=k,W.e+=k}if(x!==k)j=k8($,J,O,k)||0;W._pt={_next:W._pt,p:E||X===1?E:",",s:j,c:A-j,m:R&&R<4||J==="zIndex"?Math.round:0}}}W.c=G-1){if(W=q[X],$8[W])G=1,W=W==="transformOrigin"?e$:o1;A8(Q,W)}}if(G){if(A8(Q,o1),U)U.svg&&Q.removeAttribute("transform"),K.scale=K.rotate=K.translate="none",E7(Q,1),U.uncache=1,dU(K)}}},oQ={clearProps:function($,J,Q,K,q){if(q.data!=="isFromStart"){var U=$._pt=new u$($._pt,J,Q,0,0,bB);return U.u=K,U.pr=-10,U.tween=q,$._props.push(Q),1}}},T7=[1,0,0,1,0,0],iU={},sU=function($){return $==="matrix(1, 0, 0, 1, 0, 0)"||$==="none"||!$},wU=function($){var J=W9($,o1);return sU(J)?T7:J.substr(7).match(fK).map(s1)},K6=function($,J){var Q=$._gsap||O8($),K=$.style,q=wU($),U,W,G,X;if(Q.svg&&$.getAttribute("transform"))return G=$.transform.baseVal.consolidate().matrix,q=[G.a,G.b,G.c,G.d,G.e,G.f],q.join(",")==="1,0,0,1,0,0"?T7:q;else if(q===T7&&!$.offsetParent&&$!==TJ&&!Q.svg){if(G=K.display,K.display="block",U=$.parentNode,!U||!$.offsetParent&&!$.getBoundingClientRect().width)X=1,W=$.nextElementSibling,TJ.appendChild($);if(q=wU($),G?K.display=G:A8($,"display"),X)W?U.insertBefore($,W):U?U.appendChild($):TJ.removeChild($)}return J&&q.length>6?[q[0],q[1],q[4],q[5],q[12],q[13]]:q},$6=function($,J,Q,K,q,U){var W=$._gsap,G=q||K6($,!0),X=W.xOrigin||0,L=W.yOrigin||0,N=W.xOffset||0,F=W.yOffset||0,j=G[0],R=G[1],O=G[2],C=G[3],A=G[4],E=G[5],k=J.split(" "),x=parseFloat(k[0])||0,T=parseFloat(k[1])||0,h,b,S,u;if(!Q)h=lU($),x=h.x+(~k[0].indexOf("%")?x/100*h.width:x),T=h.y+(~(k[1]||k[0]).indexOf("%")?T/100*h.height:T);else if(G!==T7&&(b=j*C-R*O))S=x*(C/b)+T*(-O/b)+(O*E-C*A)/b,u=x*(-R/b)+T*(j/b)-(j*E-R*A)/b,x=S,T=u;if(K||K!==!1&&W.smooth)A=x-X,E=T-L,W.xOffset=N+(A*j+E*O)-A,W.yOffset=F+(A*R+E*C)-E;else W.xOffset=W.yOffset=0;if(W.xOrigin=x,W.yOrigin=T,W.smooth=!!K,W.origin=J,W.originIsAbsolute=!!Q,$.style[e$]="0px 0px",U)C8(U,W,"xOrigin",X,x),C8(U,W,"yOrigin",L,T),C8(U,W,"xOffset",N,W.xOffset),C8(U,W,"yOffset",F,W.yOffset);$.setAttribute("data-svg-origin",x+" "+T)},E7=function($,J){var Q=$._gsap||new mK($);if("x"in Q&&!J&&!Q.uncache)return Q;var K=$.style,q=Q.scaleX<0,U="px",W="deg",G=getComputedStyle($),X=W9($,e$)||"0",L,N,F,j,R,O,C,A,E,k,x,T,h,b,S,u,f,m,_,n,q0,Q0,z0,J0,o,t,v,N0,W0,C0,h0,p;if(L=N=F=O=C=A=E=k=x=0,j=R=1,Q.svg=!!($.getCTM&&nU($)),G.translate){if(G.translate!=="none"||G.scale!=="none"||G.rotate!=="none")K[o1]=(G.translate!=="none"?"translate3d("+(G.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(G.rotate!=="none"?"rotate("+G.rotate+") ":"")+(G.scale!=="none"?"scale("+G.scale.split(" ").join(",")+") ":"")+(G[o1]!=="none"?G[o1]:"");K.scale=K.rotate=K.translate="none"}if(b=K6($,Q.svg),Q.svg){if(Q.uncache)o=$.getBBox(),X=Q.xOrigin-o.x+"px "+(Q.yOrigin-o.y)+"px",J0="";else J0=!J&&$.getAttribute("data-svg-origin");$6($,J0||X,!!J0||Q.originIsAbsolute,Q.smooth!==!1,b)}if(T=Q.xOrigin||0,h=Q.yOrigin||0,b!==T7){if(m=b[0],_=b[1],n=b[2],q0=b[3],L=Q0=b[4],N=z0=b[5],b.length===6){if(j=Math.sqrt(m*m+_*_),R=Math.sqrt(q0*q0+n*n),O=m||_?PJ(_,m)*s8:0,E=n||q0?PJ(n,q0)*s8+O:0,E&&(R*=Math.abs(Math.cos(E*EJ))),Q.svg)L-=T-(T*m+h*n),N-=h-(T*_+h*q0)}else{if(p=b[6],C0=b[7],v=b[8],N0=b[9],W0=b[10],h0=b[11],L=b[12],N=b[13],F=b[14],S=PJ(p,W0),C=S*s8,S)u=Math.cos(-S),f=Math.sin(-S),J0=Q0*u+v*f,o=z0*u+N0*f,t=p*u+W0*f,v=Q0*-f+v*u,N0=z0*-f+N0*u,W0=p*-f+W0*u,h0=C0*-f+h0*u,Q0=J0,z0=o,p=t;if(S=PJ(-n,W0),A=S*s8,S)u=Math.cos(-S),f=Math.sin(-S),J0=m*u-v*f,o=_*u-N0*f,t=n*u-W0*f,h0=q0*f+h0*u,m=J0,_=o,n=t;if(S=PJ(_,m),O=S*s8,S)u=Math.cos(S),f=Math.sin(S),J0=m*u+_*f,o=Q0*u+z0*f,_=_*u-m*f,z0=z0*u-Q0*f,m=J0,Q0=o;if(C&&Math.abs(C)+Math.abs(O)>359.9)C=O=0,A=180-A;j=s1(Math.sqrt(m*m+_*_+n*n)),R=s1(Math.sqrt(z0*z0+p*p)),S=PJ(Q0,z0),E=Math.abs(S)>0.0002?S*s8:0,x=h0?1/(h0<0?-h0:h0):0}if(Q.svg)J0=$.getAttribute("transform"),Q.forceCSS=$.setAttribute("transform","")||!sU(W9($,o1)),J0&&$.setAttribute("transform",J0)}if(Math.abs(E)>90&&Math.abs(E)<270)if(q)j*=-1,E+=O<=0?180:-180,O+=O<=0?180:-180;else R*=-1,E+=E<=0?180:-180;if(J=J||Q.uncache,Q.x=L-((Q.xPercent=L&&(!J&&Q.xPercent||(Math.round($.offsetWidth/2)===Math.round(-L)?-50:0)))?$.offsetWidth*Q.xPercent/100:0)+U,Q.y=N-((Q.yPercent=N&&(!J&&Q.yPercent||(Math.round($.offsetHeight/2)===Math.round(-N)?-50:0)))?$.offsetHeight*Q.yPercent/100:0)+U,Q.z=F+U,Q.scaleX=s1(j),Q.scaleY=s1(R),Q.rotation=s1(O)+W,Q.rotationX=s1(C)+W,Q.rotationY=s1(A)+W,Q.skewX=E+W,Q.skewY=k+W,Q.transformPerspective=x+U,Q.zOrigin=parseFloat(X.split(" ")[2])||!J&&Q.zOrigin||0)K[e$]=lQ(X);return Q.xOffset=Q.yOffset=0,Q.force3D=a$.force3D,Q.renderTransform=Q.svg?fB:oU?rU:xB,Q.uncache=0,Q},lQ=function($){return($=$.split(" "))[0]+" "+$[1]},rK=function($,J,Q){var K=M$(J);return s1(parseFloat(J)+parseFloat(k8($,"x",Q+"px",K)))+K},xB=function($,J){J.z="0px",J.rotationY=J.rotationX="0deg",J.force3D=0,rU($,J)},n8="0deg",P7="0px",i8=") ",rU=function($,J){var Q=J||this,K=Q.xPercent,q=Q.yPercent,U=Q.x,W=Q.y,G=Q.z,X=Q.rotation,L=Q.rotationY,N=Q.rotationX,F=Q.skewX,j=Q.skewY,R=Q.scaleX,O=Q.scaleY,C=Q.transformPerspective,A=Q.force3D,E=Q.target,k=Q.zOrigin,x="",T=A==="auto"&&$&&$!==1||A===!0;if(k&&(N!==n8||L!==n8)){var h=parseFloat(L)*EJ,b=Math.sin(h),S=Math.cos(h),u;h=parseFloat(N)*EJ,u=Math.cos(h),U=rK(E,U,b*u*-k),W=rK(E,W,-Math.sin(h)*-k),G=rK(E,G,S*u*-k+k)}if(C!==P7)x+="perspective("+C+i8;if(K||q)x+="translate("+K+"%, "+q+"%) ";if(T||U!==P7||W!==P7||G!==P7)x+=G!==P7||T?"translate3d("+U+", "+W+", "+G+") ":"translate("+U+", "+W+i8;if(X!==n8)x+="rotate("+X+i8;if(L!==n8)x+="rotateY("+L+i8;if(N!==n8)x+="rotateX("+N+i8;if(F!==n8||j!==n8)x+="skew("+F+", "+j+i8;if(R!==1||O!==1)x+="scale("+R+", "+O+i8;E.style[o1]=x||"translate(0, 0)"},fB=function($,J){var Q=J||this,K=Q.xPercent,q=Q.yPercent,U=Q.x,W=Q.y,G=Q.rotation,X=Q.skewX,L=Q.skewY,N=Q.scaleX,F=Q.scaleY,j=Q.target,R=Q.xOrigin,O=Q.yOrigin,C=Q.xOffset,A=Q.yOffset,E=Q.forceCSS,k=parseFloat(U),x=parseFloat(W),T,h,b,S,u;if(G=parseFloat(G),X=parseFloat(X),L=parseFloat(L),L)L=parseFloat(L),X+=L,G+=L;if(G||X){if(G*=EJ,X*=EJ,T=Math.cos(G)*N,h=Math.sin(G)*N,b=Math.sin(G-X)*-F,S=Math.cos(G-X)*F,X){if(L*=EJ,u=Math.tan(X-L),u=Math.sqrt(1+u*u),b*=u,S*=u,L)u=Math.tan(L),u=Math.sqrt(1+u*u),T*=u,h*=u}T=s1(T),h=s1(h),b=s1(b),S=s1(S)}else T=N,S=F,h=b=0;if(k&&!~(U+"").indexOf("px")||x&&!~(W+"").indexOf("px"))k=k8(j,"x",U,"px"),x=k8(j,"y",W,"px");if(R||O||C||A)k=s1(k+R-(R*T+O*b)+C),x=s1(x+O-(R*h+O*S)+A);if(K||q)u=j.getBBox(),k=s1(k+K/100*u.width),x=s1(x+q/100*u.height);u="matrix("+T+","+h+","+b+","+S+","+k+","+x+")",j.setAttribute("transform",u),E&&(j.style[o1]=u)},yB=function($,J,Q,K,q){var U=360,W=B$(q),G=parseFloat(q)*(W&&~q.indexOf("rad")?s8:1),X=G-K,L=K+X+"deg",N,F;if(W){if(N=q.split("_")[1],N==="short"){if(X%=U,X!==X%(U/2))X+=X<0?U:-U}if(N==="cw"&&X<0)X=(X+U*fU)%U-~~(X/U)*U;else if(N==="ccw"&&X>0)X=(X-U*fU)%U-~~(X/U)*U}return $._pt=F=new u$($._pt,J,Q,K,X,NB),F.e=L,F.u="deg",$._props.push(Q),F},gU=function($,J){for(var Q in J)$[Q]=J[Q];return $},hB=function($,J,Q){var K=gU({},Q._gsap),q="perspective,force3D,transformOrigin,svgOrigin",U=Q.style,W,G,X,L,N,F,j,R;if(K.svg)X=Q.getAttribute("transform"),Q.setAttribute("transform",""),U[o1]=J,W=E7(Q,1),A8(Q,o1),Q.setAttribute("transform",X);else X=getComputedStyle(Q)[o1],U[o1]=J,W=E7(Q,1),U[o1]=X;for(G in $8)if(X=K[G],L=W[G],X!==L&&q.indexOf(G)<0)j=M$(X),R=M$(L),N=j!==R?k8(Q,G,X,R):parseFloat(X),F=parseFloat(L),$._pt=new u$($._pt,W,G,N,F-N,aK),$._pt.u=R||0,$._props.push(G);gU(W,K)};v$("padding,margin,Width,Radius",function(Z,$){var J="Top",Q="Right",K="Bottom",q="Left",U=($<3?[J,Q,K,q]:[J+q,J+Q,K+Q,K+q]).map(function(W){return $<2?Z+W:"border"+W+Z});oQ[$>1?"border"+Z:Z]=function(W,G,X,L,N){var F,j;if(arguments.length<4)return F=U.map(function(R){return e9(W,R,X)}),j=F.join(" "),j.split(F[0]).length===5?F[0]:j;F=(L+"").split(" "),j={},U.forEach(function(R,O){return j[R]=F[O]=F[O]||F[(O-1)/2|0]}),W.init(G,j,N)}});var q6={name:"css",register:eK,targetTest:function($){return $.style&&$.nodeType},init:function($,J,Q,K,q){var U=this._props,W=$.style,G=Q.vars.startAt,X,L,N,F,j,R,O,C,A,E,k,x,T,h,b,S,u;J6||eK(),this.styles=this.styles||pU($),S=this.styles.props,this.tween=Q;for(O in J){if(O==="autoRound")continue;if(L=J[O],i$[O]&&pK(O,J,Q,K,$,q))continue;if(j=typeof L,R=oQ[O],j==="function")L=L.call(Q,K,$,q),j=typeof L;if(j==="string"&&~L.indexOf("random("))L=IJ(L);if(R)R(this,$,O,L,Q)&&(b=1);else if(O.substr(0,2)==="--"){if(X=(getComputedStyle($).getPropertyValue(O)+"").trim(),L+="",a9.lastIndex=0,!a9.test(X))C=M$(X),A=M$(L),A?C!==A&&(X=k8($,O,X,A)+A):C&&(L+=C);this.add(W,"setProperty",X,L,K,q,0,0,O),U.push(O),S.push(O,0,W[O])}else if(j!=="undefined"){if(G&&O in G)X=typeof G[O]==="function"?G[O].call(Q,K,$,q):G[O],B$(X)&&~X.indexOf("random(")&&(X=IJ(X)),M$(X+"")||X==="auto"||(X+=a$.units[O]||M$(e9($,O))||""),(X+"").charAt(1)==="="&&(X=e9($,O));else X=e9($,O);if(F=parseFloat(X),E=j==="string"&&L.charAt(1)==="="&&L.substr(0,2),E&&(L=L.substr(2)),N=parseFloat(L),O in g9){if(O==="autoAlpha"){if(F===1&&e9($,"visibility")==="hidden"&&N)F=0;S.push("visibility",0,W.visibility),C8(this,W,"visibility",F?"inherit":"hidden",N?"inherit":"hidden",!N)}if(O!=="scale"&&O!=="transform")O=g9[O],~O.indexOf(",")&&(O=O.split(",")[0])}if(k=O in $8,k){if(this.styles.save(O),u=L,j==="string"&&L.substring(0,6)==="var(--"){if(L=W9($,L.substring(4,L.indexOf(")"))),L.substring(0,5)==="calc("){var f=$.style.perspective;$.style.perspective=L,L=W9($,"perspective"),f?$.style.perspective=f:A8($,"perspective")}N=parseFloat(L)}if(!x)T=$._gsap,T.renderTransform&&!J.parseTransform||E7($,J.parseTransform),h=J.smoothOrigin!==!1&&T.smooth,x=this._pt=new u$(this._pt,W,o1,0,1,T.renderTransform,T,0,-1),x.dep=1;if(O==="scale")this._pt=new u$(this._pt,T,"scaleY",T.scaleY,(E?o8(T.scaleY,E+N):N)-T.scaleY||0,aK),this._pt.u=0,U.push("scaleY",O),O+="X";else if(O==="transformOrigin"){if(S.push(e$,0,W[e$]),L=SB(L),T.svg)$6($,L,0,h,0,this);else A=parseFloat(L.split(" ")[2])||0,A!==T.zOrigin&&C8(this,T,"zOrigin",T.zOrigin,A),C8(this,W,O,lQ(X),lQ(L));continue}else if(O==="svgOrigin"){$6($,L,1,h,0,this);continue}else if(O in iU){yB(this,T,O,F,E?o8(F,E+L):L);continue}else if(O==="smoothOrigin"){C8(this,T,"smooth",T.smooth,L);continue}else if(O==="force3D"){T[O]=L;continue}else if(O==="transform"){hB(this,L,$);continue}}else if(!(O in W))O=SJ(O)||O;if(k||(N||N===0)&&(F||F===0)&&!FB.test(L)&&O in W){if(C=(X+"").substr((F+"").length),N||(N=0),A=M$(L)||(O in a$.units?a$.units[O]:C),C!==A&&(F=k8($,O,X,A)),this._pt=new u$(this._pt,k?T:W,O,F,(E?o8(F,E+N):N)-F,!k&&(A==="px"||O==="zIndex")&&J.autoRound!==!1?OB:aK),this._pt.u=A||0,k&&u!==L)this._pt.b=X,this._pt.e=u,this._pt.r=YB;else if(C!==A&&A!=="%")this._pt.b=X,this._pt.r=VB}else if(!(O in W)){if(O in $)this.add($,O,X||$[O],E?E+L:L,K,q);else if(O!=="parseTransform"){cQ(O,L);continue}}else EB.call(this,$,O,X,E?E+L:L);k||(O in W?S.push(O,0,W[O]):typeof $[O]==="function"?S.push(O,2,$[O]()):S.push(O,1,X||$[O])),U.push(O)}}b&&sK(this)},render:function($,J){if(J.tween._time||!Q6()){var Q=J._pt;while(Q)Q.r($,Q.d),Q=Q._next}else J.styles.revert()},get:e9,aliases:g9,getSetter:function($,J,Q){var K=g9[J];return K&&K.indexOf(",")<0&&(J=K),J in $8&&J!==e$&&($._gsap.x||e9($,"x"))?Q&&xU===Q?J==="scale"?CB:MB:(xU=Q||{})&&(J==="scale"?AB:kB):$.style&&!gQ($.style[J])?RB:~J.indexOf("-")?DB:pQ($,J)},core:{_removeProperty:A8,_getMatrix:K6}};b$.utils.checkPrefix=SJ;b$.core.getStyleSaver=pU;(function(Z,$,J,Q){var K=v$(Z+","+$+","+J,function(q){$8[q]=1});v$($,function(q){a$.units[q]="deg",iU[q]=1}),g9[K[13]]=Z+","+$,v$(Q,function(q){var U=q.split(":");g9[U[1]]=K[U[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");v$("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(Z){a$.units[Z]="px"});b$.registerPlugin(q6);var c9=b$.registerPlugin(q6)||b$,i2=c9.core.Tween;function aU(Z,$){for(var J=0;J<$.length;J++){var Q=$[J];if(Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q)Q.writable=!0;Object.defineProperty(Z,Q.key,Q)}}function _B(Z,$,J){if($)aU(Z.prototype,$);if(J)aU(Z,J);return Z}/*! * Observer 3.14.2 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var C$,sQ,vB,H9,I8,P8,xJ,eU,a8,b7,$W,J8,A9,JW,QW=function(){return C$||typeof window<"u"&&(C$=window.gsap)&&C$.registerPlugin&&C$},ZW=1,bJ=[],H1=[],k9=[],x7=Date.now,U6=function($,J){return J},uB=function(){var $=b7.core,J=$.bridge||{},Q=$._scrollers,K=$._proxies;Q.push.apply(Q,H1),K.push.apply(K,k9),H1=Q,k9=K,U6=function(U,W){return J[U](W)}},Z8=function($,J){return~k9.indexOf($)&&k9[k9.indexOf($)+1][J]},f7=function($){return!!~$W.indexOf($)},g$=function($,J,Q,K,q){return $.addEventListener(J,Q,{passive:K!==!1,capture:!!q})},w$=function($,J,Q,K){return $.removeEventListener(J,Q,!!K)},nQ="scrollLeft",iQ="scrollTop",W6=function(){return J8&&J8.isPressed||H1.cache++},rQ=function($,J){var Q=function K(q){if(q||q===0){ZW&&(H9.history.scrollRestoration="manual");var U=J8&&J8.isPressed;q=K.v=Math.round(q)||(J8&&J8.iOS?1:0),$(q),K.cacheID=H1.cache,U&&U6("ss",q)}else if(J||H1.cache!==K.cacheID||U6("ref"))K.cacheID=H1.cache,K.v=$();return K.v+K.offset};return Q.offset=0,$&&Q},x$={s:nQ,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:rQ(function(Z){return arguments.length?H9.scrollTo(Z,K$.sc()):H9.pageXOffset||I8[nQ]||P8[nQ]||xJ[nQ]||0})},K$={s:iQ,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:x$,sc:rQ(function(Z){return arguments.length?H9.scrollTo(x$.sc(),Z):H9.pageYOffset||I8[iQ]||P8[iQ]||xJ[iQ]||0})},c$=function($,J){return(J&&J._ctx&&J._ctx.selector||C$.utils.toArray)($)[0]||(typeof $==="string"&&C$.config().nullTargetWarn!==!1?console.warn("Element not found:",$):null)},wB=function($,J){var Q=J.length;while(Q--)if(J[Q]===$||J[Q].contains($))return!0;return!1},Q8=function($,J){var{s:Q,sc:K}=J;f7($)&&($=I8.scrollingElement||P8);var q=H1.indexOf($),U=K===K$.sc?1:2;!~q&&(q=H1.push($)-1),H1[q+U]||g$($,"scroll",W6);var W=H1[q+U],G=W||(H1[q+U]=rQ(Z8($,Q),!0)||(f7($)?K:rQ(function(X){return arguments.length?$[Q]=X:$[Q]})));return G.target=$,W||(G.smooth=C$.getProperty($,"scrollBehavior")==="smooth"),G},aQ=function($,J,Q){var K=$,q=$,U=x7(),W=U,G=J||50,X=Math.max(500,G*3),L=function(R,O){var C=x7();if(O||C-U>G)q=K,K=R,W=U,U=C;else if(Q)K+=R;else K=q+(R-q)/(C-W)*(U-W)},N=function(){q=K=Q?0:K,W=U=0},F=function(R){var O=W,C=q,A=x7();return(R||R===0)&&R!==K&&L(R),U===W||A-W>X?0:(K+(Q?C:-C))/((Q?A:U)-O)*1000};return{update:L,reset:N,getVelocity:F}},S7=function($,J){return J&&!$._gsapAllow&&$.preventDefault(),$.changedTouches?$.changedTouches[0]:$},tU=function($){var J=Math.max.apply(Math,$),Q=Math.min.apply(Math,$);return Math.abs(J)>=Math.abs(Q)?J:Q},KW=function(){b7=C$.core.globals().ScrollTrigger,b7&&b7.core&&uB()},qW=function($){if(C$=$||QW(),!sQ&&C$&&typeof document<"u"&&document.body)H9=window,I8=document,P8=I8.documentElement,xJ=I8.body,$W=[H9,I8,P8,xJ],vB=C$.utils.clamp,JW=C$.core.context||function(){},a8="onpointerenter"in xJ?"pointer":"mouse",eU=r1.isTouch=H9.matchMedia&&H9.matchMedia("(hover: none), (pointer: coarse)").matches?1:("ontouchstart"in H9)||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,A9=r1.eventTypes=("ontouchstart"in P8?"touchstart,touchmove,touchcancel,touchend":!("onpointerdown"in P8)?"mousedown,mousemove,mouseup,mouseup":"pointerdown,pointermove,pointercancel,pointerup").split(","),setTimeout(function(){return ZW=0},500),KW(),sQ=1;return sQ};x$.op=K$;H1.cache=0;var r1=function(){function Z(J){this.init(J)}var $=Z.prototype;return $.init=function(Q){sQ||qW(C$)||console.warn("Please gsap.registerPlugin(Observer)"),b7||KW();var{tolerance:K,dragMinimum:q,type:U,target:W,lineHeight:G,debounce:X,preventDefault:L,onStop:N,onStopDelay:F,ignore:j,wheelSpeed:R,event:O,onDragStart:C,onDragEnd:A,onDrag:E,onPress:k,onRelease:x,onRight:T,onLeft:h,onUp:b,onDown:S,onChangeX:u,onChangeY:f,onChange:m,onToggleX:_,onToggleY:n,onHover:q0,onHoverEnd:Q0,onMove:z0,ignoreCheck:J0,isNormalizer:o,onGestureStart:t,onGestureEnd:v,onWheel:N0,onEnable:W0,onDisable:C0,onClick:h0,scrollSpeed:p,capture:a,allowClicks:G0,lockAxis:H0,onLockAxis:M0}=Q;this.target=W=c$(W)||P8,this.vars=Q,j&&(j=C$.utils.toArray(j)),K=K||0.000000001,q=q||0,R=R||1,p=p||1,U=U||"wheel,touch,pointer",X=X!==!1,G||(G=parseFloat(H9.getComputedStyle(xJ).lineHeight)||22);var B0,R0,S0,V0,P0,A0,I0,c=this,f0=0,d0=0,n0=Q.passive||!L&&Q.passive!==!1,u0=Q8(W,x$),T0=Q8(W,K$),t0=u0(),W1=T0(),M=~U.indexOf("touch")&&!~U.indexOf("pointer")&&A9[0]==="pointerdown",z=f7(W),V=W.ownerDocument||I8,I=[0,0,0],g=[0,0,0],s=0,j0=function(){return s=x7()},b0=function($0,L0){return(c.event=$0)&&j&&wB($0.target,j)||L0&&M&&$0.pointerType!=="touch"||J0&&J0($0,L0)},o0=function(){c._vx.reset(),c._vy.reset(),R0.pause(),N&&N(c)},y0=function(){var $0=c.deltaX=tU(I),L0=c.deltaY=tU(g),Z0=Math.abs($0)>=K,E0=Math.abs(L0)>=K;if(m&&(Z0||E0)&&m(c,$0,L0,I,g),Z0)T&&c.deltaX>0&&T(c),h&&c.deltaX<0&&h(c),u&&u(c),_&&c.deltaX<0!==f0<0&&_(c),f0=c.deltaX,I[0]=I[1]=I[2]=0;if(E0)S&&c.deltaY>0&&S(c),b&&c.deltaY<0&&b(c),f&&f(c),n&&c.deltaY<0!==d0<0&&n(c),d0=c.deltaY,g[0]=g[1]=g[2]=0;if(V0||S0){if(z0&&z0(c),S0)C&&S0===1&&C(c),E&&E(c),S0=0;V0=!1}if(A0&&!(A0=!1)&&M0&&M0(c),P0)N0(c),P0=!1;B0=0},l0=function($0,L0,Z0){I[Z0]+=$0,g[Z0]+=L0,c._vx.update($0),c._vy.update(L0),X?B0||(B0=requestAnimationFrame(y0)):y0()},$1=function($0,L0){if(H0&&!I0)c.axis=I0=Math.abs($0)>Math.abs(L0)?"x":"y",A0=!0;if(I0!=="y")I[2]+=$0,c._vx.update($0,!0);if(I0!=="x")g[2]+=L0,c._vy.update(L0,!0);X?B0||(B0=requestAnimationFrame(y0)):y0()},T1=function($0){if(b0($0,1))return;$0=S7($0,L);var{clientX:L0,clientY:Z0}=$0,E0=L0-c.x,F0=Z0-c.y,U0=c.isDragging;if(c.x=L0,c.y=Z0,U0||(E0||F0)&&(Math.abs(c.startX-L0)>=q||Math.abs(c.startY-Z0)>=q))S0||(S0=U0?2:1),U0||(c.isDragging=!0),$1(E0,F0)},Q1=c.onPress=function(d){if(b0(d,1)||d&&d.button)return;c.axis=I0=null,R0.pause(),c.isPressed=!0,d=S7(d),f0=d0=0,c.startX=c.x=d.clientX,c.startY=c.y=d.clientY,c._vx.reset(),c._vy.reset(),g$(o?W:V,A9[1],T1,n0,!0),c.deltaX=c.deltaY=0,k&&k(c)},i0=c.onRelease=function(d){if(b0(d,1))return;w$(o?W:V,A9[1],T1,!0);var $0=!isNaN(c.y-c.startY),L0=c.isDragging,Z0=L0&&(Math.abs(c.x-c.startX)>3||Math.abs(c.y-c.startY)>3),E0=S7(d);if(!Z0&&$0){if(c._vx.reset(),c._vy.reset(),L&&G0)C$.delayedCall(0.08,function(){if(x7()-s>300&&!d.defaultPrevented){if(d.target.click)d.target.click();else if(V.createEvent){var F0=V.createEvent("MouseEvents");F0.initMouseEvent("click",!0,!0,H9,1,E0.screenX,E0.screenY,E0.clientX,E0.clientY,!1,!1,!1,!1,0,null),d.target.dispatchEvent(F0)}}})}c.isDragging=c.isGesturing=c.isPressed=!1,N&&L0&&!o&&R0.restart(!0),S0&&y0(),A&&L0&&A(c),x&&x(c,Z0)},h1=function($0){return $0.touches&&$0.touches.length>1&&(c.isGesturing=!0)&&t($0,c.isDragging)},j1=function(){return(c.isGesturing=!1)||v(c)},A1=function($0){if(b0($0))return;var L0=u0(),Z0=T0();l0((L0-t0)*p,(Z0-W1)*p,1),t0=L0,W1=Z0,N&&R0.restart(!0)},S1=function($0){if(b0($0))return;$0=S7($0,L),N0&&(P0=!0);var L0=($0.deltaMode===1?G:$0.deltaMode===2?H9.innerHeight:1)*R;l0($0.deltaX*L0,$0.deltaY*L0,0),N&&!o&&R0.restart(!0)},H$=function($0){if(b0($0))return;var{clientX:L0,clientY:Z0}=$0,E0=L0-c.x,F0=Z0-c.y;c.x=L0,c.y=Z0,V0=!0,N&&R0.restart(!0),(E0||F0)&&$1(E0,F0)},v0=function($0){c.event=$0,q0(c)},w=function($0){c.event=$0,Q0(c)},X0=function($0){return b0($0)||S7($0,L)&&h0(c)};R0=c._dc=C$.delayedCall(F||0.25,o0).pause(),c.deltaX=c.deltaY=0,c._vx=aQ(0,50,!0),c._vy=aQ(0,50,!0),c.scrollX=u0,c.scrollY=T0,c.isDragging=c.isGesturing=c.isPressed=!1,JW(this),c.enable=function(d){if(!c.isEnabled){if(g$(z?V:W,"scroll",W6),U.indexOf("scroll")>=0&&g$(z?V:W,"scroll",A1,n0,a),U.indexOf("wheel")>=0&&g$(W,"wheel",S1,n0,a),U.indexOf("touch")>=0&&eU||U.indexOf("pointer")>=0)g$(W,A9[0],Q1,n0,a),g$(V,A9[2],i0),g$(V,A9[3],i0),G0&&g$(W,"click",j0,!0,!0),h0&&g$(W,"click",X0),t&&g$(V,"gesturestart",h1),v&&g$(V,"gestureend",j1),q0&&g$(W,a8+"enter",v0),Q0&&g$(W,a8+"leave",w),z0&&g$(W,a8+"move",H$);c.isEnabled=!0,c.isDragging=c.isGesturing=c.isPressed=V0=S0=!1,c._vx.reset(),c._vy.reset(),t0=u0(),W1=T0(),d&&d.type&&Q1(d),W0&&W0(c)}return c},c.disable=function(){if(c.isEnabled){if(bJ.filter(function(d){return d!==c&&f7(d.target)}).length||w$(z?V:W,"scroll",W6),c.isPressed)c._vx.reset(),c._vy.reset(),w$(o?W:V,A9[1],T1,!0);w$(z?V:W,"scroll",A1,a),w$(W,"wheel",S1,a),w$(W,A9[0],Q1,a),w$(V,A9[2],i0),w$(V,A9[3],i0),w$(W,"click",j0,!0),w$(W,"click",X0),w$(V,"gesturestart",h1),w$(V,"gestureend",j1),w$(W,a8+"enter",v0),w$(W,a8+"leave",w),w$(W,a8+"move",H$),c.isEnabled=c.isPressed=c.isDragging=!1,C0&&C0(c)}},c.kill=c.revert=function(){c.disable();var d=bJ.indexOf(c);d>=0&&bJ.splice(d,1),J8===c&&(J8=0)},bJ.push(c),o&&f7(W)&&(J8=c),c.enable(O)},_B(Z,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),Z}();r1.version="3.14.2";r1.create=function(Z){return new r1(Z)};r1.register=qW;r1.getAll=function(){return bJ.slice()};r1.getById=function(Z){return bJ.filter(function($){return $.vars.id===Z})[0]};QW()&&C$.registerPlugin(r1);/*! * ScrollTrigger 3.14.2 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var m0,hJ,B1,v1,B9,k1,M6,zZ,n7,g7,h7,tQ,f$,NZ,F6,d$,UW,WW,_J,CW,H6,AW,m$,N6,kW,IW,T8,V6,C6,vJ,A6,c7,Y6,G6,eQ=1,y$=Date.now,j6=y$(),R9=0,_7=0,HW=function($,J,Q){var K=j9($)&&($.substr(0,6)==="clamp("||$.indexOf("max")>-1);return Q["_"+J+"Clamp"]=K,K?$.substr(6,$.length-7):$},GW=function($,J){return J&&(!j9($)||$.substr(0,6)!=="clamp(")?"clamp("+$+")":$},gB=function Z(){return _7&&requestAnimationFrame(Z)},jW=function(){return NZ=1},BW=function(){return NZ=0},m9=function($){return $},v7=function($){return Math.round($*1e5)/1e5||0},PW=function(){return typeof window<"u"},TW=function(){return m0||PW()&&(m0=window.gsap)&&m0.registerPlugin&&m0},ZJ=function($){return!!~M6.indexOf($)},EW=function($){return($==="Height"?A6:B1["inner"+$])||B9["client"+$]||k1["client"+$]},SW=function($){return Z8($,"getBoundingClientRect")||(ZJ($)?function(){return XZ.width=B1.innerWidth,XZ.height=A6,XZ}:function(){return K8($)})},cB=function($,J,Q){var{d:K,d2:q,a:U}=Q;return(U=Z8($,"getBoundingClientRect"))?function(){return U()[K]}:function(){return(J?EW(q):$["client"+q])||0}},mB=function($,J){return!J||~k9.indexOf($)?SW($):function(){return XZ}},d9=function($,J){var{s:Q,d2:K,d:q,a:U}=J;return Math.max(0,(Q="scroll"+K)&&(U=Z8($,Q))?U()-SW($)()[q]:ZJ($)?(B9[Q]||k1[Q])-EW(K):$[Q]-$["offset"+K])},$Z=function($,J){for(var Q=0;Q<_J.length;Q+=3)(!J||~J.indexOf(_J[Q+1]))&&$(_J[Q],_J[Q+1],_J[Q+2])},j9=function($){return typeof $==="string"},h$=function($){return typeof $==="function"},u7=function($){return typeof $==="number"},t8=function($){return typeof $==="object"},y7=function($,J,Q){return $&&$.progress(J?0:1)&&Q&&$.pause()},B6=function($,J){if($.enabled){var Q=$._ctx?$._ctx.add(function(){return J($)}):J($);Q&&Q.totalTime&&($.callbackAnimation=Q)}},fJ=Math.abs,bW="left",xW="top",k6="right",I6="bottom",$J="width",JJ="height",m7="Right",d7="Left",p7="Top",o7="Bottom",q$="padding",Y9="margin",wJ="Width",P6="Height",X$="px",O9=function($){return B1.getComputedStyle($)},dB=function($){var J=O9($).position;$.style.position=J==="absolute"||J==="fixed"?J:"relative"},XW=function($,J){for(var Q in J)Q in $||($[Q]=J[Q]);return $},K8=function($,J){var Q=J&&O9($)[F6]!=="matrix(1, 0, 0, 1, 0, 0)"&&m0.to($,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),K=$.getBoundingClientRect();return Q&&Q.progress(0).kill(),K},LZ=function($,J){var Q=J.d2;return $["offset"+Q]||$["client"+Q]||0},fW=function($){var J=[],Q=$.labels,K=$.duration(),q;for(q in Q)J.push(Q[q]/K);return J},pB=function($){return function(J){return m0.utils.snap(fW($),J)}},T6=function($){var J=m0.utils.snap($),Q=Array.isArray($)&&$.slice(0).sort(function(K,q){return K-q});return Q?function(K,q,U){if(U===void 0)U=0.001;var W;if(!q)return J(K);if(q>0){K-=U;for(W=0;W=K)return Q[W];return Q[W-1]}else{W=Q.length,K+=U;while(W--)if(Q[W]<=K)return Q[W]}return Q[0]}:function(K,q,U){if(U===void 0)U=0.001;var W=J(K);return!q||Math.abs(W-K)Q&&(K*=J/100),$=$.substr(0,Q-1);$=K+($ in FZ?FZ[$]*J:~$.indexOf("%")?parseFloat($)*J/100:parseFloat($)||0)}return $},KZ=function($,J,Q,K,q,U,W,G){var{startColor:X,endColor:L,fontSize:N,indent:F,fontWeight:j}=q,R=v1.createElement("div"),O=ZJ(Q)||Z8(Q,"pinType")==="fixed",C=$.indexOf("scroller")!==-1,A=O?k1:Q,E=$.indexOf("start")!==-1,k=E?X:L,x="border-color:"+k+";font-size:"+N+";color:"+k+";font-weight:"+j+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return x+="position:"+((C||G)&&O?"fixed;":"absolute;"),(C||G||!O)&&(x+=(K===K$?k6:I6)+":"+(U+parseFloat(F))+"px;"),W&&(x+="box-sizing:border-box;text-align:left;width:"+W.offsetWidth+"px;"),R._isStart=E,R.setAttribute("class","gsap-marker-"+$+(J?" marker-"+J:"")),R.style.cssText=x,R.innerText=J||J===0?$+"-"+J:$,A.children[0]?A.insertBefore(R,A.children[0]):A.appendChild(R),R._offset=R["offset"+K.op.d2],GZ(R,0,K,E),R},GZ=function($,J,Q,K){var q={display:"block"},U=Q[K?"os2":"p2"],W=Q[K?"p2":"os2"];$._isFlipped=K,q[Q.a+"Percent"]=K?-100:0,q[Q.a]=K?"1px":0,q["border"+U+wJ]=1,q["border"+W+wJ]=0,q[Q.p]=J+"px",m0.set($,q)},G1=[],O6={},i7,LW=function(){return y$()-R9>34&&(i7||(i7=requestAnimationFrame(q8)))},yJ=function(){if(!m$||!m$.isPressed||m$.startX>k1.clientWidth){if(H1.cache++,m$)i7||(i7=requestAnimationFrame(q8));else q8();R9||qJ("scrollStart"),R9=y$()}},X6=function(){IW=B1.innerWidth,kW=B1.innerHeight},w7=function($){H1.cache++,($===!0||!f$&&!AW&&!v1.fullscreenElement&&!v1.webkitFullscreenElement&&(!N6||IW!==B1.innerWidth||Math.abs(B1.innerHeight-kW)>B1.innerHeight*0.25))&&zZ.restart(!0)},KJ={},lB=[],yW=function Z(){return Y$(r0,"scrollEnd",Z)||e8(!0)},qJ=function($){return KJ[$]&&KJ[$].map(function(J){return J()})||lB},G9=[],hW=function($){for(var J=0;Jq,W=K._startClamp&&K.start>=q;(U||W)&&K.setPositions(W?q-1:K.start,U?Math.max(W?q:K.start+1,q):K.end,!0)}),NW(!1),Y6=0,Q.forEach(function(K){return K&&K.render&&K.render(-1)}),H1.forEach(function(K){if(h$(K))K.smooth&&requestAnimationFrame(function(){return K.target.style.scrollBehavior="smooth"}),K.rec&&K(K.rec)}),vW(C6,1),zZ.pause(),QJ++,p$=2,q8(2),G1.forEach(function(K){return h$(K.vars.onRefresh)&&K.vars.onRefresh(K)}),p$=r0.isRefreshing=!1,qJ("refresh")},R6=0,jZ=1,l7,q8=function($){if($===2||!p$&&!c7){r0.isUpdating=!0,l7&&l7.update(0);var J=G1.length,Q=y$(),K=Q-j6>=50,q=J&&G1[0].scroll();if(jZ=R6>q?-1:1,p$||(R6=q),K){if(R9&&!NZ&&Q-R9>200)R9=0,qJ("scrollEnd");h7=j6,j6=Q}if(jZ<0){d$=J;while(d$-- >0)G1[d$]&&G1[d$].update(0,K);jZ=1}else for(d$=0;d$20),Q-=Q-h}else j&&($=m0.utils.mapRange(j.scrollTrigger.start,j.scrollTrigger.end,0,F,$)),W&&GZ(W,Q,K,!0);if(R)G[R]=$||-0.001,$<0&&($=0);if(U){var S=$+Q,u=U._isStart;if(C="scroll"+K.d2,GZ(U,S,K,u&&S>20||!u&&(N?Math.max(k1[C],B9[C]):U.parentNode[C])<=S+1),N)X=K8(W),N&&(U.style[K.op.p]=X[K.op.p]-K.op.m-U._offset+X$)}if(j&&E)C=K8(E),j.seek(F),A=K8(E),j._caScrollDist=C[K.p]-A[K.p],$=$/j._caScrollDist*F;return j&&j.seek(O),j?$:Math.round($)},aB=/(webkit|moz|length|cssText|inset)/i,YW=function($,J,Q,K){if($.parentNode!==J){var q=$.style,U,W;if(J===k1){$._stOrig=q.cssText,W=O9($);for(U in W)if(!+U&&!aB.test(U)&&W[U]&&typeof q[U]==="string"&&U!=="0")q[U]=W[U];q.top=Q,q.left=K}else q.cssText=$._stOrig;m0.core.getCache($).uncache=1,J.appendChild($)}},wW=function($,J,Q){var K=J,q=K;return function(U){var W=Math.round($());if(W!==K&&W!==q&&Math.abs(W-K)>3&&Math.abs(W-q)>3)U=W,Q&&Q();return q=K,K=Math.round(U),K}},UZ=function($,J,Q){var K={};K[J.p]="+="+Q,m0.set($,K)},OW=function($,J){var Q=Q8($,J),K="_scroll"+J.p2,q=function U(W,G,X,L,N){var F=U.tween,j=G.onComplete,R={};X=X||Q();var O=wW(Q,X,function(){F.kill(),U.tween=0});return N=L&&N||0,L=L||W-X,F&&F.kill(),G[K]=W,G.inherit=!1,G.modifiers=R,R[K]=function(){return O(X+L*F.ratio+N*F.ratio*F.ratio)},G.onUpdate=function(){H1.cache++,U.tween&&q8()},G.onComplete=function(){U.tween=0,j&&j.call(F)},F=U.tween=m0.to($,G),F};return $[K]=Q,Q.wheelHandler=function(){return q.tween&&q.tween.kill()&&(q.tween=0)},O$($,"wheel",Q.wheelHandler),r0.isTouch&&O$($,"touchmove",Q.wheelHandler),q},r0=function(){function Z(J,Q){hJ||Z.register(m0)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),V6(this),this.init(J,Q)}var $=Z.prototype;return $.init=function(Q,K){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!_7){this.update=this.refresh=this.kill=m9;return}Q=XW(j9(Q)||u7(Q)||Q.nodeType?{trigger:Q}:Q,ZZ);var q=Q,U=q.onUpdate,W=q.toggleClass,G=q.id,X=q.onToggle,L=q.onRefresh,N=q.scrub,F=q.trigger,j=q.pin,R=q.pinSpacing,O=q.invalidateOnRefresh,C=q.anticipatePin,A=q.onScrubComplete,E=q.onSnapComplete,k=q.once,x=q.snap,T=q.pinReparent,h=q.pinSpacer,b=q.containerAnimation,S=q.fastScrollEnd,u=q.preventOverlaps,f=Q.horizontal||Q.containerAnimation&&Q.horizontal!==!1?x$:K$,m=!N&&N!==0,_=c$(Q.scroller||B1),n=m0.core.getCache(_),q0=ZJ(_),Q0=("pinType"in Q?Q.pinType:Z8(_,"pinType")||q0&&"fixed")==="fixed",z0=[Q.onEnter,Q.onLeave,Q.onEnterBack,Q.onLeaveBack],J0=m&&Q.toggleActions.split(" "),o="markers"in Q?Q.markers:ZZ.markers,t=q0?0:parseFloat(O9(_)["border"+f.p2+wJ])||0,v=this,N0=Q.onRefreshInit&&function(){return Q.onRefreshInit(v)},W0=cB(_,q0,f),C0=mB(_,q0),h0=0,p=0,a=0,G0=Q8(_,f),H0,M0,B0,R0,S0,V0,P0,A0,I0,c,f0,d0,n0,u0,T0,t0,W1,M,z,V,I,g,s,j0,b0,o0,y0,l0,$1,T1,Q1,i0,h1,j1,A1,S1,H$,v0,w;if(v._startClamp=v._endClamp=!1,v._dir=f,C*=45,v.scroller=_,v.scroll=b?b.time.bind(b):G0,R0=G0(),v.vars=Q,K=K||Q.animation,"refreshPriority"in Q)CW=1,Q.refreshPriority===-9999&&(l7=v);if(n.tweenScroll=n.tweenScroll||{top:OW(_,K$),left:OW(_,x$)},v.tweenTo=H0=n.tweenScroll[f.p],v.scrubDuration=function(Z0){if(h1=u7(Z0)&&Z0,!h1)i0&&i0.progress(1).kill(),i0=0;else i0?i0.duration(Z0):i0=m0.to(K,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:h1,paused:!0,onComplete:function(){return A&&A(v)}})},K)K.vars.lazy=!1,K._initted&&!v.isReverted||K.vars.immediateRender!==!1&&Q.immediateRender!==!1&&K.duration()&&K.render(0,!0,!0),v.animation=K.pause(),K.scrollTrigger=v,v.scrubDuration(N),T1=0,G||(G=K.vars.id);if(x){if(!t8(x)||x.push)x={snapTo:x};"scrollBehavior"in k1.style&&m0.set(q0?[k1,B9]:_,{scrollBehavior:"auto"}),H1.forEach(function(Z0){return h$(Z0)&&Z0.target===(q0?v1.scrollingElement||B9:_)&&(Z0.smooth=!1)}),B0=h$(x.snapTo)?x.snapTo:x.snapTo==="labels"?pB(K):x.snapTo==="labelsDirectional"?oB(K):x.directional!==!1?function(Z0,E0){return T6(x.snapTo)(Z0,y$()-p<500?0:E0.direction)}:m0.utils.snap(x.snapTo),j1=x.duration||{min:0.1,max:2},j1=t8(j1)?g7(j1.min,j1.max):g7(j1,j1),A1=m0.delayedCall(x.delay||h1/2||0.1,function(){var Z0=G0(),E0=y$()-p<500,F0=H0.tween;if((E0||Math.abs(v.getVelocity())<10)&&!F0&&!NZ&&h0!==Z0){var U0=(Z0-V0)/u0,s0=K&&!m?K.totalProgress():U0,c0=E0?0:(s0-Q1)/(y$()-h7)*1000||0,J1=m0.utils.clamp(-U0,1-U0,fJ(c0/2)*c0/0.185),Z1=U0+(x.inertia===!1?0:J1),V1,q1,K1=x,M1=K1.onStart,a0=K1.onInterrupt,n1=K1.onComplete;if(V1=B0(Z1,v),u7(V1)||(V1=Z1),q1=Math.max(0,Math.round(V0+V1*u0)),Z0<=P0&&Z0>=V0&&q1!==Z0){if(F0&&!F0._initted&&F0.data<=fJ(q1-Z0))return;if(x.inertia===!1)J1=V1-U0;H0(q1,{duration:j1(fJ(Math.max(fJ(Z1-s0),fJ(V1-s0))*0.185/c0/0.05||0)),ease:x.ease||"power3",data:fJ(q1-Z0),onInterrupt:function(){return A1.restart(!0)&&a0&&a0(v)},onComplete:function(){if(v.update(),h0=G0(),K&&!m)i0?i0.resetTo("totalProgress",V1,K._tTime/K._tDur):K.progress(V1);T1=Q1=K&&!m?K.totalProgress():v.progress,E&&E(v),n1&&n1(v)}},Z0,J1*u0,q1-Z0-J1*u0),M1&&M1(v,H0.tween)}}else if(v.isActive&&h0!==Z0)A1.restart(!0)}).pause()}if(G&&(O6[G]=v),F=v.trigger=c$(F||j!==!0&&j),w=F&&F._gsap&&F._gsap.stRevert,w&&(w=w(v)),j=j===!0?F:c$(j),j9(W)&&(W={targets:F,className:W}),j){if(R===!1||R===Y9||(R=!R&&j.parentNode&&j.parentNode.style&&O9(j.parentNode).display==="flex"?!1:q$),v.pin=j,M0=m0.core.getCache(j),!M0.spacer){if(h)h=c$(h),h&&!h.nodeType&&(h=h.current||h.nativeElement),M0.spacerIsNative=!!h,h&&(M0.spacerState=qZ(h));M0.spacer=M=h||v1.createElement("div"),M.classList.add("pin-spacer"),G&&M.classList.add("pin-spacer-"+G),M0.pinState=T0=qZ(j)}else T0=M0.pinState;Q.force3D!==!1&&m0.set(j,{force3D:!0}),v.spacer=M=M0.spacer,$1=O9(j),j0=$1[R+f.os2],V=m0.getProperty(j),I=m0.quickSetter(j,f.a,X$),z6(j,M,$1),W1=qZ(j)}if(o){d0=t8(o)?XW(o,zW):zW,c=KZ("scroller-start",G,_,f,d0,0),f0=KZ("scroller-end",G,_,f,d0,0,c),z=c["offset"+f.op.d2];var X0=c$(Z8(_,"content")||_);if(A0=this.markerStart=KZ("start",G,X0,f,d0,z,0,b),I0=this.markerEnd=KZ("end",G,X0,f,d0,z,0,b),b&&(v0=m0.quickSetter([A0,I0],f.a,X$)),!Q0&&!(k9.length&&Z8(_,"fixedMarkers")===!0))dB(q0?k1:_),m0.set([c,f0],{force3D:!0}),o0=m0.quickSetter(c,f.a,X$),l0=m0.quickSetter(f0,f.a,X$)}if(b){var d=b.vars.onUpdate,$0=b.vars.onUpdateParams;b.eventCallback("onUpdate",function(){v.update(0,0,1),d&&d.apply(b,$0||[])})}if(v.previous=function(){return G1[G1.indexOf(v)-1]},v.next=function(){return G1[G1.indexOf(v)+1]},v.revert=function(Z0,E0){if(!E0)return v.kill(!0);var F0=Z0!==!1||!v.enabled,U0=f$;if(F0!==v.isReverted){if(F0)S1=Math.max(G0(),v.scroll.rec||0),a=v.progress,H$=K&&K.progress();if(A0&&[A0,I0,c,f0].forEach(function(s0){return s0.style.display=F0?"none":"block"}),F0)f$=v,v.update(F0);if(j&&(!T||!v.isActive))if(F0)iB(j,M,T0);else z6(j,M,O9(j),b0);F0||v.update(F0),f$=U0,v.isReverted=F0}},v.refresh=function(Z0,E0,F0,U0){if((f$||!v.enabled)&&!E0)return;if(j&&Z0&&R9){O$(Z,"scrollEnd",yW);return}if(!p$&&N0&&N0(v),f$=v,H0.tween&&!F0)H0.tween.kill(),H0.tween=0;if(i0&&i0.pause(),O&&K)K.revert({kill:!1}).invalidate(),K.getChildren?K.getChildren(!0,!0,!1).forEach(function(n$){return n$.vars.immediateRender&&n$.render(0,!0,!0)}):K.vars.immediateRender&&K.render(0,!0,!0);v.isReverted||v.revert(!0,!0),v._subPinOffset=!1;var s0=W0(),c0=C0(),J1=b?b.duration():d9(_,f),Z1=u0<=0.01||!u0,V1=0,q1=U0||0,K1=t8(F0)?F0.end:Q.end,M1=Q.endTrigger||F,a0=t8(F0)?F0.start:Q.start||(Q.start===0||!F?0:j?"0 0":"0 100%"),n1=v.pinnedContainer=Q.pinnedContainer&&c$(Q.pinnedContainer,v),b1=F&&Math.max(0,G1.indexOf(v))||0,_1=b1,J$,F$,o9,z8,G$,m1,Q$,L8,LJ,y8,_$,F8,h8;if(o&&t8(F0))F8=m0.getProperty(c,f.p),h8=m0.getProperty(f0,f.p);while(_1-- >0){if(m1=G1[_1],m1.end||m1.refresh(0,1)||(f$=v),Q$=m1.pin,Q$&&(Q$===F||Q$===j||Q$===n1)&&!m1.isReverted)y8||(y8=[]),y8.unshift(m1),m1.revert(!0,!0);if(m1!==G1[_1])b1--,_1--}if(h$(a0)&&(a0=a0(v)),a0=HW(a0,"start",v),V0=VW(a0,F,s0,f,G0(),A0,c,v,c0,t,Q0,J1,b,v._startClamp&&"_startClamp")||(j?-0.001:0),h$(K1)&&(K1=K1(v)),j9(K1)&&!K1.indexOf("+="))if(~K1.indexOf(" "))K1=(j9(a0)?a0.split(" ")[0]:"")+K1;else V1=HZ(K1.substr(2),s0),K1=j9(a0)?a0:(b?m0.utils.mapRange(0,b.duration(),b.scrollTrigger.start,b.scrollTrigger.end,V0):V0)+V1,M1=F;K1=HW(K1,"end",v),P0=Math.max(V0,VW(K1||(M1?"100% 0":J1),M1,s0,f,G0()+V1,I0,f0,v,c0,t,Q0,J1,b,v._endClamp&&"_endClamp"))||-0.001,V1=0,_1=b1;while(_1--)if(m1=G1[_1]||{},Q$=m1.pin,Q$&&m1.start-m1._pinPush<=V0&&!b&&m1.end>0){if(J$=m1.end-(v._startClamp?Math.max(0,m1.start):m1.start),(Q$===F&&m1.start-m1._pinPush=d9(_,f))){if(J$=O9(j),z8=f===K$,o9=G0(),g=parseFloat(V(f.a))+q1,!J1&&P0>1){if(_$=(q0?v1.scrollingElement||B9:_).style,_$={style:_$,value:_$["overflow"+f.a.toUpperCase()]},q0&&O9(k1)["overflow"+f.a.toUpperCase()]!=="scroll")_$.style["overflow"+f.a.toUpperCase()]="scroll"}if(z6(j,M,J$),W1=qZ(j),F$=K8(j,!0),L8=Q0&&Q8(_,z8?x$:K$)(),R){if(b0=[R+f.os2,u0+q1+X$],b0.t=M,_1=R===q$?LZ(j,f)+u0+q1:0,_1)b0.push(f.d,_1+X$),M.style.flexBasis!=="auto"&&(M.style.flexBasis=_1+X$);if(uJ(b0),n1)G1.forEach(function(n$){if(n$.pin===n1&&n$.vars.pinSpacing!==!1)n$._subPinOffset=!0});Q0&&G0(S1)}else _1=LZ(j,f),_1&&M.style.flexBasis!=="auto"&&(M.style.flexBasis=_1+X$);if(Q0)G$={top:F$.top+(z8?o9-V0:L8)+X$,left:F$.left+(z8?L8:o9-V0)+X$,boxSizing:"border-box",position:"fixed"},G$[$J]=G$["max"+wJ]=Math.ceil(F$.width)+X$,G$[JJ]=G$["max"+P6]=Math.ceil(F$.height)+X$,G$[Y9]=G$[Y9+p7]=G$[Y9+m7]=G$[Y9+o7]=G$[Y9+d7]="0",G$[q$]=J$[q$],G$[q$+p7]=J$[q$+p7],G$[q$+m7]=J$[q$+m7],G$[q$+o7]=J$[q$+o7],G$[q$+d7]=J$[q$+d7],t0=rB(T0,G$,T),p$&&G0(0);if(K)LJ=K._initted,H6(1),K.render(K.duration(),!0,!0),s=V(f.a)-g+u0+q1,y0=Math.abs(u0-s)>1,Q0&&y0&&t0.splice(t0.length-2,2),K.render(0,!0,!0),LJ||K.invalidate(!0),K.parent||K.totalTime(K.totalTime()),H6(0);else s=u0;_$&&(_$.value?_$.style["overflow"+f.a.toUpperCase()]=_$.value:_$.style.removeProperty("overflow-"+f.a))}else if(F&&G0()&&!b){F$=F.parentNode;while(F$&&F$!==k1){if(F$._pinOffset)V0-=F$._pinOffset,P0-=F$._pinOffset;F$=F$.parentNode}}if(y8&&y8.forEach(function(n$){return n$.revert(!1,!0)}),v.start=V0,v.end=P0,R0=S0=p$?S1:G0(),!b&&!p$)R00?G1.slice(0,E0).reverse():G1.slice(E0+1);return(j9(Z0)?F0.filter(function(U0){return U0.vars.preventOverlaps===Z0}):F0).filter(function(U0){return v.direction>0?U0.end<=V0:U0.start>=P0})},v.update=function(Z0,E0,F0){if(b&&!F0&&!Z0)return;var U0=p$===!0?S1:v.scroll(),s0=Z0?0:(U0-V0)/u0,c0=s0<0?0:s0>1?1:s0||0,J1=v.progress,Z1,V1,q1,K1,M1,a0,n1,b1;if(E0){if(S0=R0,R0=b?G0():U0,x)Q1=T1,T1=K&&!m?K.totalProgress():c0}if(C&&j&&!f$&&!eQ&&R9){if(!c0&&V0U0+(U0-S0)/(y$()-h7)*C)c0=0.9999}if(c0!==J1&&v.enabled){if(Z1=v.isActive=!!c0&&c0<1,V1=!!J1&&J1<1,a0=Z1!==V1,M1=a0||!!c0!==!!J1,v.direction=c0>J1?1:-1,v.progress=c0,M1&&!f$){if(q1=c0&&!J1?0:c0===1?1:J1===1?2:3,m)K1=!a0&&J0[q1+1]!=="none"&&J0[q1+1]||J0[q1],b1=K&&(K1==="complete"||K1==="reset"||(K1 in K))}if(u&&(a0||b1)&&(b1||N||!K)&&(h$(u)?u(v):v.getTrailing(u).forEach(function(o9){return o9.endAnimation()})),!m){if(i0&&!f$&&!eQ)if(i0._dp._time-i0._start!==i0._time&&i0.render(i0._dp._time-i0._start),i0.resetTo)i0.resetTo("totalProgress",c0,K._tTime/K._tDur);else i0.vars.totalProgress=c0,i0.invalidate().restart();else if(K)K.totalProgress(c0,!!(f$&&(p||Z0)))}if(j){if(Z0&&R&&(M.style[R+f.os2]=j0),!Q0)I(v7(g+s*c0));else if(M1){if(n1=!Z0&&c0>J1&&P0+1>U0&&U0+1>=d9(_,f),T)if(!Z0&&(Z1||n1)){var _1=K8(j,!0),J$=U0-V0;YW(j,k1,_1.top+(f===K$?J$:0)+X$,_1.left+(f===K$?0:J$)+X$)}else YW(j,M);uJ(Z1||n1?t0:W1),y0&&c0<1&&Z1||I(g+(c0===1&&!n1?s:0))}}if(x&&!H0.tween&&!f$&&!eQ&&A1.restart(!0),W&&(a0||k&&c0&&(c0<1||!G6))&&n7(W.targets).forEach(function(o9){return o9.classList[Z1||k?"add":"remove"](W.className)}),U&&!m&&!Z0&&U(v),M1&&!f$){if(m){if(b1)if(K1==="complete")K.pause().totalProgress(1);else if(K1==="reset")K.restart(!0).pause();else if(K1==="restart")K.restart(!0);else K[K1]();U&&U(v)}if(a0||!G6){if(X&&a0&&B6(v,X),z0[q1]&&B6(v,z0[q1]),k&&(c0===1?v.kill(!1,1):z0[q1]=0),!a0)q1=c0===1?1:3,z0[q1]&&B6(v,z0[q1])}if(S&&!Z1&&Math.abs(v.getVelocity())>(u7(S)?S:2500))y7(v.callbackAnimation),i0?i0.progress(1):y7(K,K1==="reverse"?1:!c0,1)}else if(m&&U&&!f$)U(v)}if(l0){var F$=b?U0/b.duration()*(b._caScrollDist||0):U0;o0(F$+(c._isFlipped?1:0)),l0(F$)}v0&&v0(-U0/b.duration()*(b._caScrollDist||0))},v.enable=function(Z0,E0){if(!v.enabled){if(v.enabled=!0,O$(_,"resize",w7),q0||O$(_,"scroll",yJ),N0&&O$(Z,"refreshInit",N0),Z0!==!1)v.progress=a=0,R0=S0=h0=G0();E0!==!1&&v.refresh()}},v.getTween=function(Z0){return Z0&&H0?H0.tween:i0},v.setPositions=function(Z0,E0,F0,U0){if(b){var s0=b.scrollTrigger,c0=b.duration(),J1=s0.end-s0.start;Z0=s0.start+J1*Z0/c0,E0=s0.start+J1*E0/c0}v.refresh(!1,!1,{start:GW(Z0,F0&&!!v._startClamp),end:GW(E0,F0&&!!v._endClamp)},U0),v.update()},v.adjustPinSpacing=function(Z0){if(b0&&Z0){var E0=b0.indexOf(f.d)+1;b0[E0]=parseFloat(b0[E0])+Z0+X$,b0[1]=parseFloat(b0[1])+Z0+X$,uJ(b0)}},v.disable=function(Z0,E0){if(Z0!==!1&&v.revert(!0,!0),v.enabled){if(v.enabled=v.isActive=!1,E0||i0&&i0.pause(),S1=0,M0&&(M0.uncache=1),N0&&Y$(Z,"refreshInit",N0),A1)A1.pause(),H0.tween&&H0.tween.kill()&&(H0.tween=0);if(!q0){var F0=G1.length;while(F0--)if(G1[F0].scroller===_&&G1[F0]!==v)return;Y$(_,"resize",w7),q0||Y$(_,"scroll",yJ)}}},v.kill=function(Z0,E0){v.disable(Z0,E0),i0&&!E0&&i0.kill(),G&&delete O6[G];var F0=G1.indexOf(v);if(F0>=0&&G1.splice(F0,1),F0===d$&&jZ>0&&d$--,F0=0,G1.forEach(function(U0){return U0.scroller===v.scroller&&(F0=1)}),F0||p$||(v.scroll.rec=0),K)K.scrollTrigger=null,Z0&&K.revert({kill:!1}),E0||K.kill();if(A0&&[A0,I0,c,f0].forEach(function(U0){return U0.parentNode&&U0.parentNode.removeChild(U0)}),l7===v&&(l7=0),j)M0&&(M0.uncache=1),F0=0,G1.forEach(function(U0){return U0.pin===j&&F0++}),F0||(M0.spacer=0);Q.onKill&&Q.onKill(v)},G1.push(v),v.enable(!1,!1),w&&w(v),K&&K.add&&!u0){var L0=v.update;v.update=function(){v.update=L0,H1.cache++,V0||P0||v.refresh()},m0.delayedCall(0.01,v.update),u0=0.01,V0=P0=0}else v.refresh();j&&nB()},Z.register=function(Q){if(!hJ)m0=Q||TW(),PW()&&window.document&&Z.enable(),hJ=_7;return hJ},Z.defaults=function(Q){if(Q)for(var K in Q)ZZ[K]=Q[K];return ZZ},Z.disable=function(Q,K){_7=0,G1.forEach(function(U){return U[K?"kill":"disable"](Q)}),Y$(B1,"wheel",yJ),Y$(v1,"scroll",yJ),clearInterval(tQ),Y$(v1,"touchcancel",m9),Y$(k1,"touchstart",m9),JZ(Y$,v1,"pointerdown,touchstart,mousedown",jW),JZ(Y$,v1,"pointerup,touchend,mouseup",BW),zZ.kill(),$Z(Y$);for(var q=0;q0&&U.left+W0&&U.top+W=0&&G9.splice(J,5),G9.push($,$.style.cssText,$.getBBox&&$.getAttribute("transform"),m0.core.getCache($),V6())}}):G9};r0.revert=function(Z,$){return E6(!Z,$)};r0.create=function(Z,$){return new r0(Z,$)};r0.refresh=function(Z){return Z?w7(!0):(hJ||r0.register())&&e8(!0)};r0.update=function(Z){return++H1.cache&&q8(Z===!0?2:0)};r0.clearScrollMemory=vW;r0.maxScroll=function(Z,$){return d9(Z,$?x$:K$)};r0.getScrollFunc=function(Z,$){return Q8(c$(Z),$?x$:K$)};r0.getById=function(Z){return O6[Z]};r0.getAll=function(){return G1.filter(function(Z){return Z.vars.id!=="ScrollSmoother"})};r0.isScrolling=function(){return!!R9};r0.snapDirectional=T6;r0.addEventListener=function(Z,$){var J=KJ[Z]||(KJ[Z]=[]);~J.indexOf($)||J.push($)};r0.removeEventListener=function(Z,$){var J=KJ[Z],Q=J&&J.indexOf($);Q>=0&&J.splice(Q,1)};r0.batch=function(Z,$){var J=[],Q={},K=$.interval||0.016,q=$.batchMax||1e9,U=function(X,L){var N=[],F=[],j=m0.delayedCall(K,function(){L(N,F),N=[],F=[]}).pause();return function(R){N.length||j.restart(!0),N.push(R.trigger),F.push(R),q<=N.length&&j.progress(1)}},W;for(W in $)Q[W]=W.substr(0,2)==="on"&&h$($[W])&&W!=="onRefreshInit"?U(W,$[W]):$[W];if(h$(q))q=q(),O$(r0,"refresh",function(){return q=$.batchMax()});return n7(Z).forEach(function(G){var X={};for(W in Q)X[W]=Q[W];X.trigger=G,J.push(r0.create(X))}),J};var RW=function($,J,Q,K){return J>K?$(K):J<0&&$(0),Q>K?(K-J)/(Q-J):Q<0?J/(J-Q):1},L6=function Z($,J){if(J===!0)$.style.removeProperty("touch-action");else $.style.touchAction=J===!0?"auto":J?"pan-"+J+(r1.isTouch?" pinch-zoom":""):"none";$===B9&&Z(k1,J)},WZ={auto:1,scroll:1},tB=function($){var{event:J,target:Q,axis:K}=$,q=(J.changedTouches?J.changedTouches[0]:J).target,U=q._gsap||m0.core.getCache(q),W=y$(),G;if(!U._isScrollT||W-U._isScrollT>2000){while(q&&q!==k1&&(q.scrollHeight<=q.clientHeight&&q.scrollWidth<=q.clientWidth||!(WZ[(G=O9(q)).overflowY]||WZ[G.overflowX])))q=q.parentNode;U._isScroll=q&&q!==Q&&!ZJ(q)&&(WZ[(G=O9(q)).overflowY]||WZ[G.overflowX]),U._isScrollT=W}if(U._isScroll||K==="x")J.stopPropagation(),J._gsapAllow=!0},gW=function($,J,Q,K){return r1.create({target:$,capture:!0,debounce:!1,lockAxis:!0,type:J,onWheel:K=K&&tB,onPress:K,onDrag:K,onScroll:K,onEnable:function(){return Q&&O$(v1,r1.eventTypes[0],MW,!1,!0)},onDisable:function(){return Y$(v1,r1.eventTypes[0],MW,!0)}})},eB=/(input|label|select|textarea)/i,DW,MW=function($){var J=eB.test($.target.tagName);if(J||DW)$._gsapAllow=!0,DW=J},$X=function($){t8($)||($={}),$.preventDefault=$.isNormalizer=$.allowClicks=!0,$.type||($.type="wheel,touch"),$.debounce=!!$.debounce,$.id=$.id||"normalizer";var J=$,Q=J.normalizeScrollX,K=J.momentum,q=J.allowNestedScroll,U=J.onRelease,W,G,X=c$($.target)||B9,L=m0.core.globals().ScrollSmoother,N=L&&L.get(),F=T8&&($.content&&c$($.content)||N&&$.content!==!1&&!N.smooth()&&N.content()),j=Q8(X,K$),R=Q8(X,x$),O=1,C=(r1.isTouch&&B1.visualViewport?B1.visualViewport.scale*B1.visualViewport.width:B1.outerWidth)/B1.innerWidth,A=0,E=h$(K)?function(){return K(W)}:function(){return K||2.8},k,x,T=gW(X,$.type,!0,q),h=function(){return x=!1},b=m9,S=m9,u=function(){G=d9(X,K$),S=g7(T8?1:0,G),Q&&(b=g7(0,d9(X,x$))),k=QJ},f=function(){F._gsap.y=v7(parseFloat(F._gsap.y)+j.offset)+"px",F.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(F._gsap.y)+", 0, 1)",j.offset=j.cacheID=0},m=function(){if(x){requestAnimationFrame(h);var o=v7(W.deltaY/2),t=S(j.v-o);if(F&&t!==j.v+j.offset){j.offset=t-j.v;var v=v7((parseFloat(F&&F._gsap.y)||0)-j.offset);F.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+v+", 0, 1)",F._gsap.y=v+"px",j.cacheID=H1.cache,q8()}return!0}j.offset&&f(),x=!0},_,n,q0,Q0,z0=function(){if(u(),_.isActive()&&_.vars.scrollY>G)j()>G?_.progress(1)&&j(G):_.resetTo("scrollY",G)};return F&&m0.set(F,{y:"+=0"}),$.ignoreCheck=function(J0){return T8&&J0.type==="touchmove"&&m(J0)||O>1.05&&J0.type!=="touchstart"||W.isGesturing||J0.touches&&J0.touches.length>1},$.onPress=function(){x=!1;var J0=O;O=v7((B1.visualViewport&&B1.visualViewport.scale||1)/C),_.pause(),J0!==O&&L6(X,O>1.01?!0:Q?!1:"x"),n=R(),q0=j(),u(),k=QJ},$.onRelease=$.onGestureStart=function(J0,o){if(j.offset&&f(),!o)Q0.restart(!0);else{H1.cache++;var t=E(),v,N0;if(Q)v=R(),N0=v+t*0.05*-J0.velocityX/0.227,t*=RW(R,v,N0,d9(X,x$)),_.vars.scrollX=b(N0);if(v=j(),N0=v+t*0.05*-J0.velocityY/0.227,t*=RW(j,v,N0,d9(X,K$)),_.vars.scrollY=S(N0),_.invalidate().duration(t).play(0.01),T8&&_.vars.scrollY>=G||v>=G-1)m0.to({},{onUpdate:z0,duration:t})}U&&U(J0)},$.onWheel=function(){if(_._ts&&_.pause(),y$()-A>1000)k=0,A=y$()},$.onChange=function(J0,o,t,v,N0){if(QJ!==k&&u(),o&&Q&&R(b(v[2]===o?n+(J0.startX-J0.x):R()+o-v[1])),t){j.offset&&f();var W0=N0[2]===t,C0=W0?q0+J0.startY-J0.y:j()+t-N0[1],h0=S(C0);W0&&C0!==h0&&(q0+=h0-C0),j(h0)}(t||o)&&q8()},$.onEnable=function(){if(L6(X,Q?!1:"x"),r0.addEventListener("refresh",z0),O$(B1,"resize",z0),j.smooth)j.target.style.scrollBehavior="auto",j.smooth=R.smooth=!1;T.enable()},$.onDisable=function(){L6(X,!0),Y$(B1,"resize",z0),r0.removeEventListener("refresh",z0),T.kill()},$.lockAxis=$.lockAxis!==!1,W=new r1($),W.iOS=T8,T8&&!j()&&j(1),T8&&m0.ticker.add(m9),Q0=W._dc,_=m0.to(W,{ease:"power4",paused:!0,inherit:!1,scrollX:Q?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:wW(j,j(),function(){return _.pause()})},onUpdate:q8,onComplete:Q0.vars.onComplete}),W};r0.sort=function(Z){if(h$(Z))return G1.sort(Z);var $=B1.pageYOffset||0;return r0.getAll().forEach(function(J){return J._sortY=J.trigger?$+J.trigger.getBoundingClientRect().top:J.start+B1.innerHeight}),G1.sort(Z||function(J,Q){return(J.vars.refreshPriority||0)*-1e6+(J.vars.containerAnimation?1e6:J._sortY)-((Q.vars.containerAnimation?1e6:Q._sortY)+(Q.vars.refreshPriority||0)*-1e6)})};r0.observe=function(Z){return new r1(Z)};r0.normalizeScroll=function(Z){if(typeof Z>"u")return m$;if(Z===!0&&m$)return m$.enable();if(Z===!1){m$&&m$.kill(),m$=Z;return}var $=Z instanceof r1?Z:$X(Z);return m$&&m$.target===$.target&&m$.kill(),ZJ($.target)&&(m$=$),$};r0.core={_getVelocityProp:aQ,_inputObserver:gW,_scrollers:H1,_proxies:k9,bridge:{ss:function(){R9||qJ("scrollStart"),R9=y$()},ref:function(){return f$}}};TW()&&m0.registerPlugin(r0);/*! * SplitText 3.14.2 * https://gsap.com * * @license Copyright 2025, GreenSock. All rights reserved. Subject to the terms at https://gsap.com/standard-license. * @author: Jack Doyle */var s7,gJ,cW=typeof Symbol==="function"?Symbol():"_split",b6,JX=()=>b6||YZ.register(window.gsap),mW=typeof Intl<"u"&&"Segmenter"in Intl?new Intl.Segmenter:0,r7=(Z)=>typeof Z==="string"?r7(document.querySelectorAll(Z)):("length"in Z)?Array.from(Z).reduce(($,J)=>{return typeof J==="string"?$.push(...r7(J)):$.push(J),$},[]):[Z],dW=(Z)=>r7(Z).filter(($)=>$ instanceof HTMLElement),x6=[],S6=function(){},QX={add:(Z)=>Z()},ZX=/\s+/g,pW=new RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.","gu"),VZ={left:0,top:0,width:0,height:0},KX=(Z,$)=>{while(++${Z.innerHTML=$,J?Z.setAttribute("aria-label",J):Z.removeAttribute("aria-label"),Q?Z.setAttribute("aria-hidden",Q):Z.removeAttribute("aria-hidden")},lW=(Z,$)=>{if($){let J=new Set(Z.join("").match($)||x6),Q=Z.length,K,q,U,W;if(J.size)while(--Q>-1){q=Z[Q];for(U of J)if(U.startsWith(q)&&U.length>q.length){K=0,W=q;while(U.startsWith(W+=Z[Q+ ++K])&&W.lengthwindow.getComputedStyle(Z).display==="inline"&&(Z.style.display="inline-block"),cJ=(Z,$,J)=>$.insertBefore(typeof Z==="string"?document.createTextNode(Z):Z,J),f6=(Z,$,J)=>{let Q=$[Z+"sClass"]||"",{tag:K="div",aria:q="auto",propIndex:U=!1}=$,W=Z==="line"?"block":"inline-block",G=Q.indexOf("++")>-1,X=(L)=>{let N=document.createElement(K),F=J.length+1;if(Q&&(N.className=Q+(G?" "+Q+F:"")),U&&N.style.setProperty("--"+Z,F+""),q!=="none"&&N.setAttribute("aria-hidden","true"),K!=="span")N.style.position="relative",N.style.display=W;return N.textContent=L,J.push(N),N};return G&&(Q=Q.replace("++","")),X.collection=J,X},qX=(Z,$,J,Q)=>{let K=f6("line",J,Q),q=window.getComputedStyle(Z).textAlign||"left";return(U,W)=>{let G=K("");G.style.textAlign=q,Z.insertBefore(G,$[U]);for(;U{var L;let N=Array.from(Z.childNodes),F=0,{wordDelimiter:j,reduceWhiteSpace:R=!0,prepareText:O}=$,C=Z.getBoundingClientRect(),A=C,E=!R&&window.getComputedStyle(Z).whiteSpace.substring(0,3)==="pre",k=0,x=J.collection,T,h,b,S,u,f,m,_,n,q0,Q0,z0,J0,o,t,v,N0,W0;if(typeof j==="object")b=j.delimiter||j,h=j.replaceWith||"";else h=j===""?"":j||" ";T=h!==" ";for(;F-1)f=x[x.length-1],f.appendChild(document.createTextNode(Q?"":v));else f=J(Q?"":v),cJ(f,Z,S),k&&n===1&&!m&&f.insertBefore(k,f.firstChild);if(Q){Q0=mW?lW([...mW.segment(v)].map((C0)=>C0.segment),G):v.match(W)||x6;for(W0=0;W0A.top&&q0.left<=A.left){z0=Z.cloneNode(),J0=Z.childNodes[0];while(J0&&J0!==f)o=J0,J0=J0.nextSibling,z0.appendChild(o);Z.parentNode.insertBefore(z0,Z),K&&nW(z0)}A=q0}if(n=u.length?" ":T&&v.slice(-1)===" "?" "+h:h,Z,S)}}Z.removeChild(S),k=0}else if(S.nodeType===1){if(U&&U.indexOf(S)>-1)x.indexOf(S.previousSibling)>-1&&x[x.length-1].appendChild(S),k=S;else iW(S,$,J,Q,K,q,U,W,G,!0),k=0;K&&nW(S)}},sW=class Z{constructor($,J){this.isSplit=!1,JX(),this.elements=dW($),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=J,this.elements.forEach((U)=>{var W;J.overwrite!==!1&&((W=U[cW])==null||W._data.orig.filter(({element:G})=>G===U).forEach(oW)),U[cW]=this}),this._split=()=>this.isSplit&&this.split(this.vars);let Q=[],K,q=()=>{let U=Q.length,W;while(U--){W=Q[U];let G=W.element.offsetWidth;if(G!==W.width){W.width=G,this._split();return}}};this._data={orig:Q,obs:typeof ResizeObserver<"u"&&new ResizeObserver(()=>{clearTimeout(K),K=setTimeout(q,200)})},S6(this),this.split(J)}split($){return(this._ctx||QX).add(()=>{this.isSplit&&this.revert(),this.vars=$=$||this.vars||{};let{type:J="chars,words,lines",aria:Q="auto",deepSlice:K=!0,smartWrap:q,onSplit:U,autoSplit:W=!1,specialChars:G,mask:X}=this.vars,L=J.indexOf("lines")>-1,N=J.indexOf("chars")>-1,F=J.indexOf("words")>-1,j=N&&!F&&!L,R=G&&("push"in G?new RegExp("(?:"+G.join("|")+")","gu"):G),O=R?new RegExp(R.source+"|"+pW.source,"gu"):pW,C=!!$.ignore&&dW($.ignore),{orig:A,animTime:E,obs:k}=this._data,x;if(N||F||L)this.elements.forEach((T,h)=>{A[h]={element:T,html:T.innerHTML,ariaL:T.getAttribute("aria-label"),ariaH:T.getAttribute("aria-hidden")},Q==="auto"?T.setAttribute("aria-label",(T.textContent||"").trim()):Q==="hidden"&&T.setAttribute("aria-hidden","true");let b=[],S=[],u=[],f=N?f6("char",$,b):null,m=f6("word",$,S),_,n,q0,Q0;if(iW(T,$,m,f,j,K&&(L||j),C,O,R,!1),L){let z0=r7(T.childNodes),J0=qX(T,z0,$,u),o,t=[],v=0,N0=z0.map((h0)=>h0.nodeType===1?h0.getBoundingClientRect():VZ),W0=VZ,C0;for(_=0;_W0.top&&C0.left{var p;return(p=h0.parentNode)==null?void 0:p.removeChild(h0)})}if(!F){for(_=0;_{let h=T.cloneNode();return T.replaceWith(h),h.appendChild(T),T.className&&(h.className=T.className.trim()+"-mask"),h.style.overflow="clip",h}));if(this.isSplit=!0,gJ&&L&&(W?gJ.addEventListener("loadingdone",this._split):gJ.status==="loading"&&console.warn("SplitText called before fonts loaded")),(x=U&&U(this))&&x.totalTime)this._data.anim=E?x.totalTime(E):x;L&&W&&this.elements.forEach((T,h)=>{A[h].width=T.offsetWidth,k&&k.observe(T)})}),this}kill(){let{obs:$}=this._data;$&&$.disconnect(),gJ==null||gJ.removeEventListener("loadingdone",this._split)}revert(){var $,J;if(this.isSplit){let{orig:Q,anim:K}=this._data;if(this.kill(),Q.forEach(oW),this.chars.length=this.words.length=this.lines.length=Q.length=this.masks.length=0,this.isSplit=!1,K)this._data.animTime=K.totalTime(),K.revert();(J=($=this.vars).onRevert)==null||J.call($,this)}return this}static create($,J){return new Z($,J)}static register($){if(s7=s7||$||window.gsap,s7)r7=s7.utils.toArray,S6=s7.core.context||S6;if(!b6&&window.innerWidth>0)gJ=document.fonts,b6=!0}};sW.version="3.14.2";var YZ=sW;var rW=()=>{return window.matchMedia("(prefers-reduced-motion: reduce)").matches};c9.registerPlugin(r0);var UX={ease:"expo.out",duration:1.2};c9.defaults(UX);var KF=rW(),O0=c9;function aW(Z=null){let $=()=>{let q=document.body.firstElementChild;return q instanceof HTMLElement&&q.classList.contains("w-editor-publish-node")},J=$(),Q=J;if(new MutationObserver((q)=>{q.forEach((U)=>{if(U.type==="childList"){let W=$();if(W!==J){if(console.log("Editor state changed to:",W),Z)Z(W);J=W}}})}).observe(document.body,{childList:!0,subtree:!1}),Z)Z(Q);return Q}var WX={infinite:!1,lerp:0.1,smoothWheel:!0,touchMultiplier:2,syncTouch:!0};class tW extends d5{#$=O0.ticker.add((Z)=>this.raf(Z*1000));#Q=null;#J=null;#Z=0;constructor(){super(WX);this.on("scroll",this.#q.bind(this)),this.#U()}#q(Z){this.notify(Z)}#U(){if(typeof ResizeObserver>"u")return;this.#Q=new ResizeObserver((Z)=>{for(let $ of Z)if($.target===document.body)this.#W($.contentRect.height)}),this.#Q.observe(document.body),this.#Z=document.body.offsetHeight}#W(Z){if(this.#J)clearTimeout(this.#J);this.#J=window.setTimeout(()=>{if(Z!==this.#Z)this.#Z=Z,this.resize(),this.notify({type:"resize",height:Z});this.#J=null},100)}toTop(){this.scrollTo(0,{immediate:!0})}destroy(){if(this.#Q)this.#Q.disconnect(),this.#Q=null;if(this.#J)clearTimeout(this.#J),this.#J=null;super.destroy()}#K=[];add(Z,$=0,J=Symbol()){let Q=this.#K.findIndex((K)=>K.priority>$);if(Q===-1)this.#K.push({fn:Z,priority:$,id:J});else this.#K.splice(Q,0,{fn:Z,priority:$,id:J});return()=>this.remove(J)}remove(Z){this.#K=this.#K.filter(($)=>$.id!==Z)}notify(Z){if(this.#K.length<1)return;this.#K.forEach(($)=>$.fn(Z))}}var l1=new tW;aW((Z)=>{if(Z)l1.destroy();else l1.start()});class y6{#$=[];add(Z,$=0,J=Symbol()){let Q=this.#$.findIndex((K)=>K.priority>$);if(Q===-1)this.#$.push({fn:Z,priority:$,id:J});else this.#$.splice(Q,0,{fn:Z,priority:$,id:J});return()=>this.remove(J)}remove(Z){this.#$=this.#$.filter(($)=>$.id!==Z)}notify(Z){if(this.#$.length<1)return;this.#$.forEach(($)=>$.fn(Z))}}class eW extends y6{constructor(){super();O0.ticker.add(this.update.bind(this))}update(Z,$){this.notify({deltaTime:Z,time:$*0.01})}}class $H extends y6{width=window.innerWidth;height=window.innerHeight;timeoutId=null;debounceDelay=100;constructor(){super();window.addEventListener("resize",this.update.bind(this))}update(){if(this.timeoutId)window.clearTimeout(this.timeoutId);this.timeoutId=window.setTimeout(()=>{let{innerWidth:Z,innerHeight:$}=window;if(Z!==this.width||$!==this.height)this.width=Z,this.height=$,this.notify({width:this.width,height:this.height});this.timeoutId=null},this.debounceDelay)}}var HX=new eW,U$=new $H;var h6=[],_6=[];function JH(Z){_6.push(Z)}function I1(Z){h6.push(Z)}function QH(){h6.forEach((Z)=>Z()),h6.length=0}function u6(){_6.forEach((Z)=>Z()),_6.length=0}var OZ=[],v6=[];function ZH(Z,{element:$}={}){if($)OZ.push(async()=>{let J=$.getBoundingClientRect();return J.top0?await Z():Promise.resolve()});else OZ.push(Z)}async function KH(){await Promise.allSettled(OZ.map((Z)=>Z())),OZ.length=0}function qH(Z){v6.push(Z)}async function w6(){await Promise.allSettled(v6.map((Z)=>Z())),v6.length=0}var c6={};V$(c6,{default:()=>UH});var DZ="is-active",GX="linear",jX=300;function UH(Z){let $=new Set;if(Z.matches(".accordion"))$.add(Z);if(Z.querySelectorAll(".accordion").forEach((q)=>$.add(q)),!$.size)return;let J=[],Q=new AbortController,K=[];if($.forEach((q)=>{let U=q.querySelector("details"),W=U?.querySelector("summary"),G=U?.querySelector("[data-content]");if(!U||!W||!G){console.warn("Accordion: Missing required elements (summary, details, or content)");return}let X=null,L=!1,N=!1,F={},j=()=>L||N,R=()=>U.hasAttribute("open"),O=()=>{if(X)X.cancel(),X=null},C=(_,n,q0)=>{return O(),_.animate({height:[n,q0]},{duration:jX,easing:GX})},A=()=>{U.style.overflow="hidden"},E=()=>{X=null,L=!1,N=!1,U.style.height="",U.style.overflow=""},k=(_)=>{if(_)U.setAttribute("open","");else U.removeAttribute("open");E()},x=()=>{L=!1,U.classList.add(DZ)},T=()=>{N=!1,U.classList.remove(DZ)},h=()=>{L=!0,U.style.overflow="hidden",U.classList.remove(DZ),A();let _=`${U.offsetHeight+16}px`,n=`${W.offsetHeight+16}px`;X=C(U,_,n),X.onfinish=()=>{U.removeAttribute("open"),k(!1)},X.oncancel=x},b=()=>{K.forEach((_)=>{if(_!==F&&_.isAccordionOpen&&_.isAccordionOpen())_.closeAccordion()}),N=!0,U.style.overflow="hidden",U.style.height=`${W.offsetHeight}px`,A(),U.setAttribute("open",""),window.requestAnimationFrame(()=>{let _=`${W.offsetHeight+16}px`,n=`${W.offsetHeight+G.offsetHeight+16}px`;X=C(U,_,n),X.onfinish=()=>k(!0),X.oncancel=T}),U.classList.add(DZ)},S=(_)=>{if(_.preventDefault(),j())return;if(R())h();else b()},u=()=>{if(j())return;if(R())h();else b()},f=()=>{if(!R()&&!j())b()},m=()=>{if(R()&&!j())h()};W.addEventListener("click",S,{signal:Q.signal}),F.element=q,F.toggleAccordion=u,F.openAccordion=f,F.closeAccordion=m,F.isAccordionOpen=R,F.isAccordionAnimating=j,q.toggleAccordion=u,q.openAccordion=f,q.closeAccordion=m,q.isAccordionOpen=R,q.isAccordionAnimating=j,K.push(F),J.push({cleanup:()=>{O(),delete q.toggleAccordion,delete q.openAccordion,delete q.closeAccordion,delete q.isAccordionOpen,delete q.isAccordionAnimating}})}),!J.length){Q.abort();return}I1(()=>{Q.abort(),J.forEach(({cleanup:q})=>q?.())})}var m6={};V$(m6,{default:()=>WH});var BX=(Z,$=!1)=>{if(Z===void 0||Z===null)return $;let J=Z.toString().trim().toLowerCase();if(J==="true"||J==="1"||J==="")return!0;if(J==="false"||J==="0")return!1;return $};function WH(Z){if(typeof window>"u"||!Z)return null;let $=BX(Z.dataset.accordionCloseSiblings??Z.getAttribute("data-accordion-close-siblings"),!1),J=(Q)=>{let K=Q.target?.closest?.("[data-accordion-toggle]");if(!K||!Z.contains(K))return;let q=K.closest("[data-accordion-status]");if(!q||!Z.contains(q))return;let U=q.getAttribute("data-accordion-status")==="active";if(q.setAttribute("data-accordion-status",U?"not-active":"active"),$&&!U)Z.querySelectorAll('[data-accordion-status="active"]').forEach((W)=>{if(W!==q)W.setAttribute("data-accordion-status","not-active")})};return Z.addEventListener("click",J),I1(()=>{Z.removeEventListener("click",J)}),null}var Uq={};V$(Uq,{default:()=>TH});function HH(Z){return Z!==null&&typeof Z==="object"&&"constructor"in Z&&Z.constructor===Object}function d6(Z={},$={}){let J=["__proto__","constructor","prototype"];Object.keys($).filter((Q)=>J.indexOf(Q)<0).forEach((Q)=>{if(typeof Z[Q]>"u")Z[Q]=$[Q];else if(HH($[Q])&&HH(Z[Q])&&Object.keys($[Q]).length>0)d6(Z[Q],$[Q])})}var GH={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function e1(){let Z=typeof document<"u"?document:{};return d6(Z,GH),Z}var XX={document:GH,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(Z){if(typeof setTimeout>"u")return Z(),null;return setTimeout(Z,0)},cancelAnimationFrame(Z){if(typeof setTimeout>"u")return;clearTimeout(Z)}};function c1(){let Z=typeof window<"u"?window:{};return d6(Z,XX),Z}function jH(Z=""){return Z.trim().split(" ").filter(($)=>!!$.trim())}function BH(Z){let $=Z;Object.keys($).forEach((J)=>{try{$[J]=null}catch(Q){}try{delete $[J]}catch(Q){}})}function mJ(Z,$=0){return setTimeout(Z,$)}function UJ(){return Date.now()}function zX(Z){let $=c1(),J;if($.getComputedStyle)J=$.getComputedStyle(Z,null);if(!J&&Z.currentStyle)J=Z.currentStyle;if(!J)J=Z.style;return J}function p6(Z,$="x"){let J=c1(),Q,K,q,U=zX(Z);if(J.WebKitCSSMatrix){if(K=U.transform||U.webkitTransform,K.split(",").length>6)K=K.split(", ").map((W)=>W.replace(",",".")).join(", ");q=new J.WebKitCSSMatrix(K==="none"?"":K)}else q=U.MozTransform||U.OTransform||U.MsTransform||U.msTransform||U.transform||U.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),Q=q.toString().split(",");if($==="x")if(J.WebKitCSSMatrix)K=q.m41;else if(Q.length===16)K=parseFloat(Q[12]);else K=parseFloat(Q[4]);if($==="y")if(J.WebKitCSSMatrix)K=q.m42;else if(Q.length===16)K=parseFloat(Q[13]);else K=parseFloat(Q[5]);return K||0}function a7(Z){return typeof Z==="object"&&Z!==null&&Z.constructor&&Object.prototype.toString.call(Z).slice(8,-1)==="Object"}function LX(Z){if(typeof window<"u"&&typeof window.HTMLElement<"u")return Z instanceof HTMLElement;return Z&&(Z.nodeType===1||Z.nodeType===11)}function $9(...Z){let $=Object(Z[0]),J=["__proto__","constructor","prototype"];for(let Q=1;QJ.indexOf(U)<0);for(let U=0,W=q.length;UK?"next":"prev",X=(N,F)=>{return G==="next"&&N>=F||G==="prev"&&N<=F},L=()=>{if(U=new Date().getTime(),q===null)q=U;let N=Math.max(Math.min((U-q)/W,1),0),F=0.5-Math.cos(N*Math.PI)/2,j=K+F*($-K);if(X(j,$))j=$;if(Z.wrapperEl.scrollTo({[J]:j}),X(j,$)){Z.wrapperEl.style.overflow="hidden",Z.wrapperEl.style.scrollSnapType="",setTimeout(()=>{Z.wrapperEl.style.overflow="",Z.wrapperEl.scrollTo({[J]:j})}),Q.cancelAnimationFrame(Z.cssModeFrameID);return}Z.cssModeFrameID=Q.requestAnimationFrame(L)};L()}function A$(Z,$=""){let J=c1(),Q=[...Z.children];if(J.HTMLSlotElement&&Z instanceof HTMLSlotElement)Q.push(...Z.assignedElements());if(!$)return Q;return Q.filter((K)=>K.matches($))}function FX(Z,$){let J=[$];while(J.length>0){let Q=J.shift();if(Z===Q)return!0;J.push(...Q.children,...Q.shadowRoot?Q.shadowRoot.children:[],...Q.assignedElements?Q.assignedElements():[])}}function XH(Z,$){let J=c1(),Q=$.contains(Z);if(!Q&&J.HTMLSlotElement&&$ instanceof HTMLSlotElement){if(Q=[...$.assignedElements()].includes(Z),!Q)Q=FX(Z,$)}return Q}function t7(Z){try{console.warn(Z);return}catch($){}}function I9(Z,$=[]){let J=document.createElement(Z);return J.classList.add(...Array.isArray($)?$:jH($)),J}function MZ(Z){let $=c1(),J=e1(),Q=Z.getBoundingClientRect(),K=J.body,q=Z.clientTop||K.clientTop||0,U=Z.clientLeft||K.clientLeft||0,W=Z===$?$.scrollY:Z.scrollTop,G=Z===$?$.scrollX:Z.scrollLeft;return{top:Q.top+W-q,left:Q.left+G-U}}function zH(Z,$){let J=[];while(Z.previousElementSibling){let Q=Z.previousElementSibling;if($){if(Q.matches($))J.push(Q)}else J.push(Q);Z=Q}return J}function LH(Z,$){let J=[];while(Z.nextElementSibling){let Q=Z.nextElementSibling;if($){if(Q.matches($))J.push(Q)}else J.push(Q);Z=Q}return J}function U8(Z,$){return c1().getComputedStyle(Z,null).getPropertyValue($)}function e7(Z){let $=Z,J;if($){J=0;while(($=$.previousSibling)!==null)if($.nodeType===1)J+=1;return J}return}function WJ(Z,$){let J=[],Q=Z.parentElement;while(Q){if($){if(Q.matches($))J.push(Q)}else J.push(Q);Q=Q.parentElement}return J}function CZ(Z,$,J){let Q=c1();if(J)return Z[$==="width"?"offsetWidth":"offsetHeight"]+parseFloat(Q.getComputedStyle(Z,null).getPropertyValue($==="width"?"margin-right":"margin-top"))+parseFloat(Q.getComputedStyle(Z,null).getPropertyValue($==="width"?"margin-left":"margin-bottom"));return Z.offsetWidth}function X9(Z){return(Array.isArray(Z)?Z:[Z]).filter(($)=>!!$)}function pJ(Z,$=""){if(typeof trustedTypes<"u")Z.innerHTML=trustedTypes.createPolicy("html",{createHTML:(J)=>J}).createHTML($);else Z.innerHTML=$}var l6;function NX(){let Z=c1(),$=e1();return{smoothScroll:$.documentElement&&$.documentElement.style&&"scrollBehavior"in $.documentElement.style,touch:!!(("ontouchstart"in Z)||Z.DocumentTouch&&$ instanceof Z.DocumentTouch)}}function RH(){if(!l6)l6=NX();return l6}var n6;function VX({userAgent:Z}={}){let $=RH(),J=c1(),Q=J.navigator.platform,K=Z||J.navigator.userAgent,q={ios:!1,android:!1},U=J.screen.width,W=J.screen.height,G=K.match(/(Android);?[\s\/]+([\d.]+)?/),X=K.match(/(iPad)(?!\1).*OS\s([\d_]+)/),L=K.match(/(iPod)(.*OS\s([\d_]+))?/),N=!X&&K.match(/(iPhone\sOS|iOS)\s([\d_]+)/),F=Q==="Win32",j=Q==="MacIntel",R=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];if(!X&&j&&$.touch&&R.indexOf(`${U}x${W}`)>=0){if(X=K.match(/(Version)\/([\d.]+)/),!X)X=[0,1,"13_0_0"];j=!1}if(G&&!F)q.os="android",q.android=!0;if(X||N||L)q.os="ios",q.ios=!0;return q}function DH(Z={}){if(!n6)n6=VX(Z);return n6}var i6;function YX(){let Z=c1(),$=DH(),J=!1;function Q(){let W=Z.navigator.userAgent.toLowerCase();return W.indexOf("safari")>=0&&W.indexOf("chrome")<0&&W.indexOf("android")<0}if(Q()){let W=String(Z.navigator.userAgent);if(W.includes("Version/")){let[G,X]=W.split("Version/")[1].split(" ")[0].split(".").map((L)=>Number(L));J=G<16||G===16&&X<2}}let K=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(Z.navigator.userAgent),q=Q(),U=q||K&&$.ios;return{isSafari:J||q,needPerspectiveFix:J,need3dFix:U,isWebView:K}}function MH(){if(!i6)i6=YX();return i6}function OX({swiper:Z,on:$,emit:J}){let Q=c1(),K=null,q=null,U=()=>{if(!Z||Z.destroyed||!Z.initialized)return;J("beforeResize"),J("resize")},W=()=>{if(!Z||Z.destroyed||!Z.initialized)return;K=new ResizeObserver((L)=>{q=Q.requestAnimationFrame(()=>{let{width:N,height:F}=Z,j=N,R=F;if(L.forEach(({contentBoxSize:O,contentRect:C,target:A})=>{if(A&&A!==Z.el)return;j=C?C.width:(O[0]||O).inlineSize,R=C?C.height:(O[0]||O).blockSize}),j!==N||R!==F)U()})}),K.observe(Z.el)},G=()=>{if(q)Q.cancelAnimationFrame(q);if(K&&K.unobserve&&Z.el)K.unobserve(Z.el),K=null},X=()=>{if(!Z||Z.destroyed||!Z.initialized)return;J("orientationchange")};$("init",()=>{if(Z.params.resizeObserver&&typeof Q.ResizeObserver<"u"){W();return}Q.addEventListener("resize",U),Q.addEventListener("orientationchange",X)}),$("destroy",()=>{G(),Q.removeEventListener("resize",U),Q.removeEventListener("orientationchange",X)})}function RX({swiper:Z,extendParams:$,on:J,emit:Q}){let K=[],q=c1(),U=(X,L={})=>{let F=new(q.MutationObserver||q.WebkitMutationObserver)((j)=>{if(Z.__preventObserver__)return;if(j.length===1){Q("observerUpdate",j[0]);return}let R=function(){Q("observerUpdate",j[0])};if(q.requestAnimationFrame)q.requestAnimationFrame(R);else q.setTimeout(R,0)});F.observe(X,{attributes:typeof L.attributes>"u"?!0:L.attributes,childList:Z.isElement||(typeof L.childList>"u"?!0:L).childList,characterData:typeof L.characterData>"u"?!0:L.characterData}),K.push(F)},W=()=>{if(!Z.params.observer)return;if(Z.params.observeParents){let X=WJ(Z.hostEl);for(let L=0;L{K.forEach((X)=>{X.disconnect()}),K.splice(0,K.length)};$({observer:!1,observeParents:!1,observeSlideChildren:!1}),J("init",W),J("destroy",G)}var DX={on(Z,$,J){let Q=this;if(!Q.eventsListeners||Q.destroyed)return Q;if(typeof $!=="function")return Q;let K=J?"unshift":"push";return Z.split(" ").forEach((q)=>{if(!Q.eventsListeners[q])Q.eventsListeners[q]=[];Q.eventsListeners[q][K]($)}),Q},once(Z,$,J){let Q=this;if(!Q.eventsListeners||Q.destroyed)return Q;if(typeof $!=="function")return Q;function K(...q){if(Q.off(Z,K),K.__emitterProxy)delete K.__emitterProxy;$.apply(Q,q)}return K.__emitterProxy=$,Q.on(Z,K,J)},onAny(Z,$){let J=this;if(!J.eventsListeners||J.destroyed)return J;if(typeof Z!=="function")return J;let Q=$?"unshift":"push";if(J.eventsAnyListeners.indexOf(Z)<0)J.eventsAnyListeners[Q](Z);return J},offAny(Z){let $=this;if(!$.eventsListeners||$.destroyed)return $;if(!$.eventsAnyListeners)return $;let J=$.eventsAnyListeners.indexOf(Z);if(J>=0)$.eventsAnyListeners.splice(J,1);return $},off(Z,$){let J=this;if(!J.eventsListeners||J.destroyed)return J;if(!J.eventsListeners)return J;return Z.split(" ").forEach((Q)=>{if(typeof $>"u")J.eventsListeners[Q]=[];else if(J.eventsListeners[Q])J.eventsListeners[Q].forEach((K,q)=>{if(K===$||K.__emitterProxy&&K.__emitterProxy===$)J.eventsListeners[Q].splice(q,1)})}),J},emit(...Z){let $=this;if(!$.eventsListeners||$.destroyed)return $;if(!$.eventsListeners)return $;let J,Q,K;if(typeof Z[0]==="string"||Array.isArray(Z[0]))J=Z[0],Q=Z.slice(1,Z.length),K=$;else J=Z[0].events,Q=Z[0].data,K=Z[0].context||$;return Q.unshift(K),(Array.isArray(J)?J:J.split(" ")).forEach((U)=>{if($.eventsAnyListeners&&$.eventsAnyListeners.length)$.eventsAnyListeners.forEach((W)=>{W.apply(K,[U,...Q])});if($.eventsListeners&&$.eventsListeners[U])$.eventsListeners[U].forEach((W)=>{W.apply(K,Q)})}),$}};function MX(){let Z=this,$,J,Q=Z.el;if(typeof Z.params.width<"u"&&Z.params.width!==null)$=Z.params.width;else $=Q.clientWidth;if(typeof Z.params.height<"u"&&Z.params.height!==null)J=Z.params.height;else J=Q.clientHeight;if($===0&&Z.isHorizontal()||J===0&&Z.isVertical())return;if($=$-parseInt(U8(Q,"padding-left")||0,10)-parseInt(U8(Q,"padding-right")||0,10),J=J-parseInt(U8(Q,"padding-top")||0,10)-parseInt(U8(Q,"padding-bottom")||0,10),Number.isNaN($))$=0;if(Number.isNaN(J))J=0;Object.assign(Z,{width:$,height:J,size:Z.isHorizontal()?$:J})}function CX(){let Z=this;function $(f,m){return parseFloat(f.getPropertyValue(Z.getDirectionLabel(m))||0)}let J=Z.params,{wrapperEl:Q,slidesEl:K,rtlTranslate:q,wrongRTL:U}=Z,W=Z.virtual&&J.virtual.enabled,G=W?Z.virtual.slides.length:Z.slides.length,X=A$(K,`.${Z.params.slideClass}, swiper-slide`),L=W?Z.virtual.slides.length:X.length,N=[],F=[],j=[],R=J.slidesOffsetBefore;if(typeof R==="function")R=J.slidesOffsetBefore.call(Z);let O=J.slidesOffsetAfter;if(typeof O==="function")O=J.slidesOffsetAfter.call(Z);let C=Z.snapGrid.length,A=Z.slidesGrid.length,E=Z.size-R-O,k=J.spaceBetween,x=-R,T=0,h=0;if(typeof E>"u")return;if(typeof k==="string"&&k.indexOf("%")>=0)k=parseFloat(k.replace("%",""))/100*E;else if(typeof k==="string")k=parseFloat(k);if(Z.virtualSize=-k-R-O,X.forEach((f)=>{if(q)f.style.marginLeft="";else f.style.marginRight="";f.style.marginBottom="",f.style.marginTop=""}),J.centeredSlides&&J.cssMode)dJ(Q,"--swiper-centered-offset-before",""),dJ(Q,"--swiper-centered-offset-after","");let b=J.grid&&J.grid.rows>1&&Z.grid;if(b)Z.grid.initSlides(X);else if(Z.grid)Z.grid.unsetSlides();let S,u=J.slidesPerView==="auto"&&J.breakpoints&&Object.keys(J.breakpoints).filter((f)=>{return typeof J.breakpoints[f].slidesPerView<"u"}).length>0;for(let f=0;f1)N.push(Z.virtualSize-E)}if(W&&J.loop){let f=j[0]+k;if(J.slidesPerGroup>1){let m=Math.ceil((Z.virtual.slidesBefore+Z.virtual.slidesAfter)/J.slidesPerGroup),_=f*J.slidesPerGroup;for(let n=0;n{if(!J.cssMode||J.loop)return!0;if(_===X.length-1)return!1;return!0}).forEach((m)=>{m.style[f]=`${k}px`})}if(J.centeredSlides&&J.centeredSlidesBounds){let f=0;j.forEach((_)=>{f+=_+(k||0)}),f-=k;let m=f>E?f-E:0;N=N.map((_)=>{if(_<=0)return-R;if(_>m)return m+O;return _})}if(J.centerInsufficientSlides){let f=0;j.forEach((_)=>{f+=_+(k||0)}),f-=k;let m=(R||0)+(O||0);if(f+m{N[q0]=n-_}),F.forEach((n,q0)=>{F[q0]=n+_})}}if(Object.assign(Z,{slides:X,snapGrid:N,slidesGrid:F,slidesSizesGrid:j}),J.centeredSlides&&J.cssMode&&!J.centeredSlidesBounds){dJ(Q,"--swiper-centered-offset-before",`${-N[0]}px`),dJ(Q,"--swiper-centered-offset-after",`${Z.size/2-j[j.length-1]/2}px`);let f=-Z.snapGrid[0],m=-Z.slidesGrid[0];Z.snapGrid=Z.snapGrid.map((_)=>_+f),Z.slidesGrid=Z.slidesGrid.map((_)=>_+m)}if(L!==G)Z.emit("slidesLengthChange");if(N.length!==C){if(Z.params.watchOverflow)Z.checkOverflow();Z.emit("snapGridLengthChange")}if(F.length!==A)Z.emit("slidesGridLengthChange");if(J.watchSlidesProgress)Z.updateSlidesOffset();if(Z.emit("slidesUpdated"),!W&&!J.cssMode&&(J.effect==="slide"||J.effect==="fade")){let f=`${J.containerModifierClass}backface-hidden`,m=Z.el.classList.contains(f);if(L<=J.maxBackfaceHiddenSlides){if(!m)Z.el.classList.add(f)}else if(m)Z.el.classList.remove(f)}}function AX(Z){let $=this,J=[],Q=$.virtual&&$.params.virtual.enabled,K=0,q;if(typeof Z==="number")$.setTransition(Z);else if(Z===!0)$.setTransition($.params.speed);let U=(W)=>{if(Q)return $.slides[$.getSlideIndexByData(W)];return $.slides[W]};if($.params.slidesPerView!=="auto"&&$.params.slidesPerView>1)if($.params.centeredSlides)($.visibleSlides||[]).forEach((W)=>{J.push(W)});else for(q=0;q$.slides.length&&!Q)break;J.push(U(W))}else J.push(U($.activeIndex));for(q=0;qK?W:K}if(K||K===0)$.wrapperEl.style.height=`${K}px`}function kX(){let Z=this,$=Z.slides,J=Z.isElement?Z.isHorizontal()?Z.wrapperEl.offsetLeft:Z.wrapperEl.offsetTop:0;for(let Q=0;Q<$.length;Q+=1)$[Q].swiperSlideOffset=(Z.isHorizontal()?$[Q].offsetLeft:$[Q].offsetTop)-J-Z.cssOverflowAdjustment()}var FH=(Z,$,J)=>{if($&&!Z.classList.contains(J))Z.classList.add(J);else if(!$&&Z.classList.contains(J))Z.classList.remove(J)};function IX(Z=this&&this.translate||0){let $=this,J=$.params,{slides:Q,rtlTranslate:K,snapGrid:q}=$;if(Q.length===0)return;if(typeof Q[0].swiperSlideOffset>"u")$.updateSlidesOffset();let U=-Z;if(K)U=Z;$.visibleSlidesIndexes=[],$.visibleSlides=[];let W=J.spaceBetween;if(typeof W==="string"&&W.indexOf("%")>=0)W=parseFloat(W.replace("%",""))/100*$.size;else if(typeof W==="string")W=parseFloat(W);for(let G=0;G=0&&j<=$.size-$.slidesSizesGrid[G],C=j>=0&&j<$.size-1||R>1&&R<=$.size||j<=0&&R>=$.size;if(C)$.visibleSlides.push(X),$.visibleSlidesIndexes.push(G);FH(X,C,J.slideVisibleClass),FH(X,O,J.slideFullyVisibleClass),X.progress=K?-N:N,X.originalProgress=K?-F:F}}function PX(Z){let $=this;if(typeof Z>"u"){let L=$.rtlTranslate?-1:1;Z=$&&$.translate&&$.translate*L||0}let J=$.params,Q=$.maxTranslate()-$.minTranslate(),{progress:K,isBeginning:q,isEnd:U,progressLoop:W}=$,G=q,X=U;if(Q===0)K=0,q=!0,U=!0;else{K=(Z-$.minTranslate())/Q;let L=Math.abs(Z-$.minTranslate())<1,N=Math.abs(Z-$.maxTranslate())<1;if(q=L||K<=0,U=N||K>=1,L)K=0;if(N)K=1}if(J.loop){let L=$.getSlideIndexByData(0),N=$.getSlideIndexByData($.slides.length-1),F=$.slidesGrid[L],j=$.slidesGrid[N],R=$.slidesGrid[$.slidesGrid.length-1],O=Math.abs(Z);if(O>=F)W=(O-F)/R;else W=(O+R-j)/R;if(W>1)W-=1}if(Object.assign($,{progress:K,progressLoop:W,isBeginning:q,isEnd:U}),J.watchSlidesProgress||J.centeredSlides&&J.autoHeight)$.updateSlidesProgress(Z);if(q&&!G)$.emit("reachBeginning toEdge");if(U&&!X)$.emit("reachEnd toEdge");if(G&&!q||X&&!U)$.emit("fromEdge");$.emit("progress",K)}var s6=(Z,$,J)=>{if($&&!Z.classList.contains(J))Z.classList.add(J);else if(!$&&Z.classList.contains(J))Z.classList.remove(J)};function TX(){let Z=this,{slides:$,params:J,slidesEl:Q,activeIndex:K}=Z,q=Z.virtual&&J.virtual.enabled,U=Z.grid&&J.grid&&J.grid.rows>1,W=(N)=>{return A$(Q,`.${J.slideClass}${N}, swiper-slide${N}`)[0]},G,X,L;if(q)if(J.loop){let N=K-Z.virtual.slidesBefore;if(N<0)N=Z.virtual.slides.length+N;if(N>=Z.virtual.slides.length)N-=Z.virtual.slides.length;G=W(`[data-swiper-slide-index="${N}"]`)}else G=W(`[data-swiper-slide-index="${K}"]`);else if(U)G=$.find((N)=>N.column===K),L=$.find((N)=>N.column===K+1),X=$.find((N)=>N.column===K-1);else G=$[K];if(G){if(!U){if(L=LH(G,`.${J.slideClass}, swiper-slide`)[0],J.loop&&!L)L=$[0];if(X=zH(G,`.${J.slideClass}, swiper-slide`)[0],J.loop&&!X===0)X=$[$.length-1]}}$.forEach((N)=>{s6(N,N===G,J.slideActiveClass),s6(N,N===L,J.slideNextClass),s6(N,N===X,J.slidePrevClass)}),Z.emitSlidesClasses()}var AZ=(Z,$)=>{if(!Z||Z.destroyed||!Z.params)return;let J=()=>Z.isElement?"swiper-slide":`.${Z.params.slideClass}`,Q=$.closest(J());if(Q){let K=Q.querySelector(`.${Z.params.lazyPreloaderClass}`);if(!K&&Z.isElement)if(Q.shadowRoot)K=Q.shadowRoot.querySelector(`.${Z.params.lazyPreloaderClass}`);else requestAnimationFrame(()=>{if(Q.shadowRoot){if(K=Q.shadowRoot.querySelector(`.${Z.params.lazyPreloaderClass}`),K)K.remove()}});if(K)K.remove()}},r6=(Z,$)=>{if(!Z.slides[$])return;let J=Z.slides[$].querySelector('[loading="lazy"]');if(J)J.removeAttribute("loading")},e6=(Z)=>{if(!Z||Z.destroyed||!Z.params)return;let $=Z.params.lazyPreloadPrevNext,J=Z.slides.length;if(!J||!$||$<0)return;$=Math.min($,J);let Q=Z.params.slidesPerView==="auto"?Z.slidesPerViewDynamic():Math.ceil(Z.params.slidesPerView),K=Z.activeIndex;if(Z.params.grid&&Z.params.grid.rows>1){let U=K,W=[U-$];W.push(...Array.from({length:$}).map((G,X)=>{return U+Q+X})),Z.slides.forEach((G,X)=>{if(W.includes(G.column))r6(Z,X)});return}let q=K+Q-1;if(Z.params.rewind||Z.params.loop)for(let U=K-$;U<=q+$;U+=1){let W=(U%J+J)%J;if(Wq)r6(Z,W)}else for(let U=Math.max(K-$,0);U<=Math.min(q+$,J-1);U+=1)if(U!==K&&(U>q||U=$[q]&&Q<$[q+1]-($[q+1]-$[q])/2)K=q;else if(Q>=$[q]&&Q<$[q+1])K=q+1}else if(Q>=$[q])K=q;if(J.normalizeSlideIndex){if(K<0||typeof K>"u")K=0}return K}function SX(Z){let $=this,J=$.rtlTranslate?$.translate:-$.translate,{snapGrid:Q,params:K,activeIndex:q,realIndex:U,snapIndex:W}=$,G=Z,X,L=(j)=>{let R=j-$.virtual.slidesBefore;if(R<0)R=$.virtual.slides.length+R;if(R>=$.virtual.slides.length)R-=$.virtual.slides.length;return R};if(typeof G>"u")G=EX($);if(Q.indexOf(J)>=0)X=Q.indexOf(J);else{let j=Math.min(K.slidesPerGroupSkip,G);X=j+Math.floor((G-j)/K.slidesPerGroup)}if(X>=Q.length)X=Q.length-1;if(G===q&&!$.params.loop){if(X!==W)$.snapIndex=X,$.emit("snapIndexChange");return}if(G===q&&$.params.loop&&$.virtual&&$.params.virtual.enabled){$.realIndex=L(G);return}let N=$.grid&&K.grid&&K.grid.rows>1,F;if($.virtual&&K.virtual.enabled&&K.loop)F=L(G);else if(N){let j=$.slides.find((O)=>O.column===G),R=parseInt(j.getAttribute("data-swiper-slide-index"),10);if(Number.isNaN(R))R=Math.max($.slides.indexOf(j),0);F=Math.floor(R/K.grid.rows)}else if($.slides[G]){let j=$.slides[G].getAttribute("data-swiper-slide-index");if(j)F=parseInt(j,10);else F=G}else F=G;if(Object.assign($,{previousSnapIndex:W,snapIndex:X,previousRealIndex:U,realIndex:F,previousIndex:q,activeIndex:G}),$.initialized)e6($);if($.emit("activeIndexChange"),$.emit("snapIndexChange"),$.initialized||$.params.runCallbacksOnInit){if(U!==F)$.emit("realIndexChange");$.emit("slideChange")}}function bX(Z,$){let J=this,Q=J.params,K=Z.closest(`.${Q.slideClass}, swiper-slide`);if(!K&&J.isElement&&$&&$.length>1&&$.includes(Z))[...$.slice($.indexOf(Z)+1,$.length)].forEach((W)=>{if(!K&&W.matches&&W.matches(`.${Q.slideClass}, swiper-slide`))K=W});let q=!1,U;if(K){for(let W=0;WG)L=G;else if(Q&&Zq)U="next";else if(K"u")$=q.params.speed;let O=Math.min(q.params.slidesPerGroupSkip,U),C=O+Math.floor((U-O)/q.params.slidesPerGroup);if(C>=G.length)C=G.length-1;let A=-G[C];if(W.normalizeSlideIndex)for(let b=0;b=u&&S=u&&S=u)U=b}if(q.initialized&&U!==N){if(!q.allowSlideNext&&(F?A>q.translate&&A>q.minTranslate():Aq.translate&&A>q.maxTranslate()){if((N||0)!==U)return!1}}if(U!==(L||0)&&J)q.emit("beforeSlideChangeStart");q.updateProgress(A);let E;if(U>N)E="next";else if(U0)q._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{j[b?"scrollLeft":"scrollTop"]=S});else j[b?"scrollLeft":"scrollTop"]=S;if(k)requestAnimationFrame(()=>{q.wrapperEl.style.scrollSnapType="",q._immediateVirtual=!1})}else{if(!q.support.smoothScroll)return o6({swiper:q,targetPosition:S,side:b?"left":"top"}),!0;j.scrollTo({[b?"left":"top"]:S,behavior:"smooth"})}return!0}let h=MH().isSafari;if(k&&!K&&h&&q.isElement)q.virtual.update(!1,!1,U);if(q.setTransition($),q.setTranslate(A),q.updateActiveIndex(U),q.updateSlidesClasses(),q.emit("beforeTransitionStart",$,Q),q.transitionStart(J,E),$===0)q.transitionEnd(J,E);else if(!q.animating){if(q.animating=!0,!q.onSlideToWrapperTransitionEnd)q.onSlideToWrapperTransitionEnd=function(S){if(!q||q.destroyed)return;if(S.target!==this)return;q.wrapperEl.removeEventListener("transitionend",q.onSlideToWrapperTransitionEnd),q.onSlideToWrapperTransitionEnd=null,delete q.onSlideToWrapperTransitionEnd,q.transitionEnd(J,E)};q.wrapperEl.addEventListener("transitionend",q.onSlideToWrapperTransitionEnd)}return!0}function pX(Z=0,$,J=!0,Q){if(typeof Z==="string")Z=parseInt(Z,10);let K=this;if(K.destroyed)return;if(typeof $>"u")$=K.params.speed;let q=K.grid&&K.params.grid&&K.params.grid.rows>1,U=Z;if(K.params.loop)if(K.virtual&&K.params.virtual.enabled)U=U+K.virtual.slidesBefore;else{let W;if(q){let O=U*K.params.grid.rows;W=K.slides.find((C)=>C.getAttribute("data-swiper-slide-index")*1===O).column}else W=K.getSlideIndexByData(U);let G=q?Math.ceil(K.slides.length/K.params.grid.rows):K.slides.length,{centeredSlides:X,slidesOffsetBefore:L,slidesOffsetAfter:N}=K.params,F=X||!!L||!!N,j=K.params.slidesPerView;if(j==="auto")j=K.slidesPerViewDynamic();else if(j=Math.ceil(parseFloat(K.params.slidesPerView,10)),F&&j%2===0)j=j+1;let R=G-WC.getAttribute("data-swiper-slide-index")*1===O).column}else U=K.getSlideIndexByData(U)}return requestAnimationFrame(()=>{K.slideTo(U,$,J,Q)}),K}function oX(Z,$=!0,J){let Q=this,{enabled:K,params:q,animating:U}=Q;if(!K||Q.destroyed)return Q;if(typeof Z>"u")Z=Q.params.speed;let W=q.slidesPerGroup;if(q.slidesPerView==="auto"&&q.slidesPerGroup===1&&q.slidesPerGroupAuto)W=Math.max(Q.slidesPerViewDynamic("current",!0),1);let G=Q.activeIndex{Q.slideTo(Q.activeIndex+G,Z,$,J)}),!0}if(q.rewind&&Q.isEnd)return Q.slideTo(0,Z,$,J);return Q.slideTo(Q.activeIndex+G,Z,$,J)}function lX(Z,$=!0,J){let Q=this,{params:K,snapGrid:q,slidesGrid:U,rtlTranslate:W,enabled:G,animating:X}=Q;if(!G||Q.destroyed)return Q;if(typeof Z>"u")Z=Q.params.speed;let L=Q.virtual&&K.virtual.enabled;if(K.loop){if(X&&!L&&K.loopPreventsSliding)return!1;Q.loopFix({direction:"prev"}),Q._clientLeft=Q.wrapperEl.clientLeft}let N=W?Q.translate:-Q.translate;function F(E){if(E<0)return-Math.floor(Math.abs(E));return Math.floor(E)}let j=F(N),R=q.map((E)=>F(E)),O=K.freeMode&&K.freeMode.enabled,C=q[R.indexOf(j)-1];if(typeof C>"u"&&(K.cssMode||O)){let E;if(q.forEach((k,x)=>{if(j>=k)E=x}),typeof E<"u")C=O?q[E]:q[E>0?E-1:E]}let A=0;if(typeof C<"u"){if(A=U.indexOf(C),A<0)A=Q.activeIndex-1;if(K.slidesPerView==="auto"&&K.slidesPerGroup===1&&K.slidesPerGroupAuto)A=A-Q.slidesPerViewDynamic("previous",!0)+1,A=Math.max(A,0)}if(K.rewind&&Q.isBeginning){let E=Q.params.virtual&&Q.params.virtual.enabled&&Q.virtual?Q.virtual.slides.length-1:Q.slides.length-1;return Q.slideTo(E,Z,$,J)}else if(K.loop&&Q.activeIndex===0&&K.cssMode)return requestAnimationFrame(()=>{Q.slideTo(A,Z,$,J)}),!0;return Q.slideTo(A,Z,$,J)}function nX(Z,$=!0,J){let Q=this;if(Q.destroyed)return;if(typeof Z>"u")Z=Q.params.speed;return Q.slideTo(Q.activeIndex,Z,$,J)}function iX(Z,$=!0,J,Q=0.5){let K=this;if(K.destroyed)return;if(typeof Z>"u")Z=K.params.speed;let q=K.activeIndex,U=Math.min(K.params.slidesPerGroupSkip,q),W=U+Math.floor((q-U)/K.params.slidesPerGroup),G=K.rtlTranslate?K.translate:-K.translate;if(G>=K.snapGrid[W]){let X=K.snapGrid[W],L=K.snapGrid[W+1];if(G-X>(L-X)*Q)q+=K.params.slidesPerGroup}else{let X=K.snapGrid[W-1],L=K.snapGrid[W];if(G-X<=(L-X)*Q)q-=K.params.slidesPerGroup}return q=Math.max(q,0),q=Math.min(q,K.slidesGrid.length-1),K.slideTo(q,Z,$,J)}function sX(){let Z=this;if(Z.destroyed)return;let{params:$,slidesEl:J}=Z,Q=$.slidesPerView==="auto"?Z.slidesPerViewDynamic():$.slidesPerView,K=Z.getSlideIndexWhenGrid(Z.clickedIndex),q,U=Z.isElement?"swiper-slide":`.${$.slideClass}`,W=Z.grid&&Z.params.grid&&Z.params.grid.rows>1;if($.loop){if(Z.animating)return;if(q=parseInt(Z.clickedSlide.getAttribute("data-swiper-slide-index"),10),$.centeredSlides)Z.slideToLoop(q);else if(K>(W?(Z.slides.length-Q)/2-(Z.params.grid.rows-1):Z.slides.length-Q))Z.loopFix(),K=Z.getSlideIndex(A$(J,`${U}[data-swiper-slide-index="${q}"]`)[0]),mJ(()=>{Z.slideTo(K)});else Z.slideTo(K)}else Z.slideTo(K)}var rX={slideTo:dX,slideToLoop:pX,slideNext:oX,slidePrev:lX,slideReset:nX,slideToClosest:iX,slideToClickedSlide:sX};function aX(Z,$){let J=this,{params:Q,slidesEl:K}=J;if(!Q.loop||J.virtual&&J.params.virtual.enabled)return;let q=()=>{A$(K,`.${Q.slideClass}, swiper-slide`).forEach((R,O)=>{R.setAttribute("data-swiper-slide-index",O)})},U=()=>{let j=A$(K,`.${Q.slideBlankClass}`);if(j.forEach((R)=>{R.remove()}),j.length>0)J.recalcSlides(),J.updateSlides()},W=J.grid&&Q.grid&&Q.grid.rows>1;if(Q.loopAddBlankSlides&&(Q.slidesPerGroup>1||W))U();let G=Q.slidesPerGroup*(W?Q.grid.rows:1),X=J.slides.length%G!==0,L=W&&J.slides.length%Q.grid.rows!==0,N=(j)=>{for(let R=0;R1;if(X.length"u")K=G.getSlideIndex(X.find((o)=>o.classList.contains(j.slideActiveClass)));else m=K;let _=J==="next"||!J,n=J==="prev"||!J,q0=0,Q0=0,J0=(h?X[K].column:K)+(E&&typeof Q>"u"?-k/2+0.5:0);if(J0=0;N0-=1)if(X[N0].column===v)b.push(N0)}else b.push(u-t-1)}}else if(J0+k>u-T){if(Q0=Math.max(J0-(u-T*2),x),f)Q0=Math.max(Q0,k-u+A+1);for(let o=0;o{if(v.column===t)S.push(N0)});else S.push(t)}}if(G.__preventObserver__=!0,requestAnimationFrame(()=>{G.__preventObserver__=!1}),G.params.effect==="cards"&&X.length{X[o].swiperLoopMoveDOM=!0,F.prepend(X[o]),X[o].swiperLoopMoveDOM=!1});if(_)S.forEach((o)=>{X[o].swiperLoopMoveDOM=!0,F.append(X[o]),X[o].swiperLoopMoveDOM=!1});if(G.recalcSlides(),j.slidesPerView==="auto")G.updateSlides();else if(h&&(b.length>0&&n||S.length>0&&_))G.slides.forEach((o,t)=>{G.grid.updateSlide(t,o,G.slides)});if(j.watchSlidesProgress)G.updateSlidesOffset();if($){if(b.length>0&&n){if(typeof Z>"u"){let o=G.slidesGrid[m],v=G.slidesGrid[m+q0]-o;if(W)G.setTranslate(G.translate-v);else if(G.slideTo(m+Math.ceil(q0),0,!1,!0),Q)G.touchEventsData.startTranslate=G.touchEventsData.startTranslate-v,G.touchEventsData.currentTranslate=G.touchEventsData.currentTranslate-v}else if(Q){let o=h?b.length/j.grid.rows:b.length;G.slideTo(G.activeIndex+o,0,!1,!0),G.touchEventsData.currentTranslate=G.translate}}else if(S.length>0&&_)if(typeof Z>"u"){let o=G.slidesGrid[m],v=G.slidesGrid[m-Q0]-o;if(W)G.setTranslate(G.translate-v);else if(G.slideTo(m-Q0,0,!1,!0),Q)G.touchEventsData.startTranslate=G.touchEventsData.startTranslate-v,G.touchEventsData.currentTranslate=G.touchEventsData.currentTranslate-v}else{let o=h?S.length/j.grid.rows:S.length;G.slideTo(G.activeIndex-o,0,!1,!0)}}if(G.allowSlidePrev=L,G.allowSlideNext=N,G.controller&&G.controller.control&&!U){let o={slideRealIndex:Z,direction:J,setTranslate:Q,activeSlideIndex:K,byController:!0};if(Array.isArray(G.controller.control))G.controller.control.forEach((t)=>{if(!t.destroyed&&t.params.loop)t.loopFix({...o,slideTo:t.params.slidesPerView===j.slidesPerView?$:!1})});else if(G.controller.control instanceof G.constructor&&G.controller.control.params.loop)G.controller.control.loopFix({...o,slideTo:G.controller.control.params.slidesPerView===j.slidesPerView?$:!1})}G.emit("loopFix")}function eX(){let Z=this,{params:$,slidesEl:J}=Z;if(!$.loop||!J||Z.virtual&&Z.params.virtual.enabled)return;Z.recalcSlides();let Q=[];Z.slides.forEach((K)=>{let q=typeof K.swiperSlideIndex>"u"?K.getAttribute("data-swiper-slide-index")*1:K.swiperSlideIndex;Q[q]=K}),Z.slides.forEach((K)=>{K.removeAttribute("data-swiper-slide-index")}),Q.forEach((K)=>{J.append(K)}),Z.recalcSlides(),Z.slideTo(Z.realIndex,0)}var $z={loopCreate:aX,loopFix:tX,loopDestroy:eX};function Jz(Z){let $=this;if(!$.params.simulateTouch||$.params.watchOverflow&&$.isLocked||$.params.cssMode)return;let J=$.params.touchEventsTarget==="container"?$.el:$.wrapperEl;if($.isElement)$.__preventObserver__=!0;if(J.style.cursor="move",J.style.cursor=Z?"grabbing":"grab",$.isElement)requestAnimationFrame(()=>{$.__preventObserver__=!1})}function Qz(){let Z=this;if(Z.params.watchOverflow&&Z.isLocked||Z.params.cssMode)return;if(Z.isElement)Z.__preventObserver__=!0;if(Z[Z.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",Z.isElement)requestAnimationFrame(()=>{Z.__preventObserver__=!1})}var Zz={setGrabCursor:Jz,unsetGrabCursor:Qz};function Kz(Z,$=this){function J(Q){if(!Q||Q===e1()||Q===c1())return null;if(Q.assignedSlot)Q=Q.assignedSlot;let K=Q.closest(Z);if(!K&&!Q.getRootNode)return null;return K||J(Q.getRootNode().host)}return J($)}function NH(Z,$,J){let Q=c1(),{params:K}=Z,q=K.edgeSwipeDetection,U=K.edgeSwipeThreshold;if(q&&(J<=U||J>=Q.innerWidth-U)){if(q==="prevent")return $.preventDefault(),!0;return!1}return!0}function qz(Z){let $=this,J=e1(),Q=Z;if(Q.originalEvent)Q=Q.originalEvent;let K=$.touchEventsData;if(Q.type==="pointerdown"){if(K.pointerId!==null&&K.pointerId!==Q.pointerId)return;K.pointerId=Q.pointerId}else if(Q.type==="touchstart"&&Q.targetTouches.length===1)K.touchId=Q.targetTouches[0].identifier;if(Q.type==="touchstart"){NH($,Q,Q.targetTouches[0].pageX);return}let{params:q,touches:U,enabled:W}=$;if(!W)return;if(!q.simulateTouch&&Q.pointerType==="mouse")return;if($.animating&&q.preventInteractionOnTransition)return;if(!$.animating&&q.cssMode&&q.loop)$.loopFix();let G=Q.target;if(q.touchEventsTarget==="wrapper"){if(!XH(G,$.wrapperEl))return}if("which"in Q&&Q.which===3)return;if("button"in Q&&Q.button>0)return;if(K.isTouched&&K.isMoved)return;let X=!!q.noSwipingClass&&q.noSwipingClass!=="",L=Q.composedPath?Q.composedPath():Q.path;if(X&&Q.target&&Q.target.shadowRoot&&L)G=L[0];let N=q.noSwipingSelector?q.noSwipingSelector:`.${q.noSwipingClass}`,F=!!(Q.target&&Q.target.shadowRoot);if(q.noSwiping&&(F?Kz(N,G):G.closest(N))){$.allowClick=!0;return}if(q.swipeHandler){if(!G.closest(q.swipeHandler))return}U.currentX=Q.pageX,U.currentY=Q.pageY;let{currentX:j,currentY:R}=U;if(!NH($,Q,j))return;if(Object.assign(K,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),U.startX=j,U.startY=R,K.touchStartTime=UJ(),$.allowClick=!0,$.updateSize(),$.swipeDirection=void 0,q.threshold>0)K.allowThresholdMove=!1;let O=!0;if(G.matches(K.focusableElements)){if(O=!1,G.nodeName==="SELECT")K.isTouched=!1}if(J.activeElement&&J.activeElement.matches(K.focusableElements)&&J.activeElement!==G&&(Q.pointerType==="mouse"||Q.pointerType!=="mouse"&&!G.matches(K.focusableElements)))J.activeElement.blur();let C=O&&$.allowTouchMove&&q.touchStartPreventDefault;if((q.touchStartForcePreventDefault||C)&&!G.isContentEditable)Q.preventDefault();if(q.freeMode&&q.freeMode.enabled&&$.freeMode&&$.animating&&!q.cssMode)$.freeMode.onTouchStart();$.emit("touchStart",Q)}function Uz(Z){let $=e1(),J=this,Q=J.touchEventsData,{params:K,touches:q,rtlTranslate:U,enabled:W}=J;if(!W)return;if(!K.simulateTouch&&Z.pointerType==="mouse")return;let G=Z;if(G.originalEvent)G=G.originalEvent;if(G.type==="pointermove"){if(Q.touchId!==null)return;if(G.pointerId!==Q.pointerId)return}let X;if(G.type==="touchmove"){if(X=[...G.changedTouches].find((h)=>h.identifier===Q.touchId),!X||X.identifier!==Q.touchId)return}else X=G;if(!Q.isTouched){if(Q.startMoving&&Q.isScrolling)J.emit("touchMoveOpposite",G);return}let{pageX:L,pageY:N}=X;if(G.preventedByNestedSwiper){q.startX=L,q.startY=N;return}if(!J.allowTouchMove){if(!G.target.matches(Q.focusableElements))J.allowClick=!1;if(Q.isTouched)Object.assign(q,{startX:L,startY:N,currentX:L,currentY:N}),Q.touchStartTime=UJ();return}if(K.touchReleaseOnEdges&&!K.loop){if(J.isVertical()){if(Nq.startY&&J.translate>=J.minTranslate()){Q.isTouched=!1,Q.isMoved=!1;return}}else if(U&&(L>q.startX&&-J.translate<=J.maxTranslate()||L=J.minTranslate()))return;else if(!U&&(Lq.startX&&J.translate>=J.minTranslate()))return}if($.activeElement&&$.activeElement.matches(Q.focusableElements)&&$.activeElement!==G.target&&G.pointerType!=="mouse")$.activeElement.blur();if($.activeElement){if(G.target===$.activeElement&&G.target.matches(Q.focusableElements)){Q.isMoved=!0,J.allowClick=!1;return}}if(Q.allowTouchCallbacks)J.emit("touchMove",G);q.previousX=q.currentX,q.previousY=q.currentY,q.currentX=L,q.currentY=N;let F=q.currentX-q.startX,j=q.currentY-q.startY;if(J.params.threshold&&Math.sqrt(F**2+j**2)"u"){let h;if(J.isHorizontal()&&q.currentY===q.startY||J.isVertical()&&q.currentX===q.startX)Q.isScrolling=!1;else if(F*F+j*j>=25)h=Math.atan2(Math.abs(j),Math.abs(F))*180/Math.PI,Q.isScrolling=J.isHorizontal()?h>K.touchAngle:90-h>K.touchAngle}if(Q.isScrolling)J.emit("touchMoveOpposite",G);if(typeof Q.startMoving>"u"){if(q.currentX!==q.startX||q.currentY!==q.startY)Q.startMoving=!0}if(Q.isScrolling||G.type==="touchmove"&&Q.preventTouchMoveFromPointerMove){Q.isTouched=!1;return}if(!Q.startMoving)return;if(J.allowClick=!1,!K.cssMode&&G.cancelable)G.preventDefault();if(K.touchMoveStopPropagation&&!K.nested)G.stopPropagation();let R=J.isHorizontal()?F:j,O=J.isHorizontal()?q.currentX-q.previousX:q.currentY-q.previousY;if(K.oneWayMovement)R=Math.abs(R)*(U?1:-1),O=Math.abs(O)*(U?1:-1);if(q.diff=R,R*=K.touchRatio,U)R=-R,O=-O;let C=J.touchesDirection;J.swipeDirection=R>0?"prev":"next",J.touchesDirection=O>0?"prev":"next";let A=J.params.loop&&!K.cssMode,E=J.touchesDirection==="next"&&J.allowSlideNext||J.touchesDirection==="prev"&&J.allowSlidePrev;if(!Q.isMoved){if(A&&E)J.loopFix({direction:J.swipeDirection});if(Q.startTranslate=J.getTranslate(),J.setTransition(0),J.animating){let h=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});J.wrapperEl.dispatchEvent(h)}if(Q.allowMomentumBounce=!1,K.grabCursor&&(J.allowSlideNext===!0||J.allowSlidePrev===!0))J.setGrabCursor(!0);J.emit("sliderFirstMove",G)}let k;if(new Date().getTime(),K._loopSwapReset!==!1&&Q.isMoved&&Q.allowThresholdMove&&C!==J.touchesDirection&&A&&E&&Math.abs(R)>=1){Object.assign(q,{startX:L,startY:N,currentX:L,currentY:N,startTranslate:Q.currentTranslate}),Q.loopSwapReset=!0,Q.startTranslate=Q.currentTranslate;return}J.emit("sliderMove",G),Q.isMoved=!0,Q.currentTranslate=R+Q.startTranslate;let x=!0,T=K.resistanceRatio;if(K.touchReleaseOnEdges)T=0;if(R>0){if(A&&E&&!k&&Q.allowThresholdMove&&Q.currentTranslate>(K.centeredSlides?J.minTranslate()-J.slidesSizesGrid[J.activeIndex+1]-(K.slidesPerView!=="auto"&&J.slides.length-K.slidesPerView>=2?J.slidesSizesGrid[J.activeIndex+1]+J.params.spaceBetween:0)-J.params.spaceBetween:J.minTranslate()))J.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0});if(Q.currentTranslate>J.minTranslate()){if(x=!1,K.resistance)Q.currentTranslate=J.minTranslate()-1+(-J.minTranslate()+Q.startTranslate+R)**T}}else if(R<0){if(A&&E&&!k&&Q.allowThresholdMove&&Q.currentTranslate<(K.centeredSlides?J.maxTranslate()+J.slidesSizesGrid[J.slidesSizesGrid.length-1]+J.params.spaceBetween+(K.slidesPerView!=="auto"&&J.slides.length-K.slidesPerView>=2?J.slidesSizesGrid[J.slidesSizesGrid.length-1]+J.params.spaceBetween:0):J.maxTranslate()))J.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:J.slides.length-(K.slidesPerView==="auto"?J.slidesPerViewDynamic():Math.ceil(parseFloat(K.slidesPerView,10)))});if(Q.currentTranslateQ.startTranslate)Q.currentTranslate=Q.startTranslate;if(!J.allowSlidePrev&&!J.allowSlideNext)Q.currentTranslate=Q.startTranslate;if(K.threshold>0)if(Math.abs(R)>K.threshold||Q.allowThresholdMove){if(!Q.allowThresholdMove){Q.allowThresholdMove=!0,q.startX=q.currentX,q.startY=q.currentY,Q.currentTranslate=Q.startTranslate,q.diff=J.isHorizontal()?q.currentX-q.startX:q.currentY-q.startY;return}}else{Q.currentTranslate=Q.startTranslate;return}if(!K.followFinger||K.cssMode)return;if(K.freeMode&&K.freeMode.enabled&&J.freeMode||K.watchSlidesProgress)J.updateActiveIndex(),J.updateSlidesClasses();if(K.freeMode&&K.freeMode.enabled&&J.freeMode)J.freeMode.onTouchMove();J.updateProgress(Q.currentTranslate),J.setTranslate(Q.currentTranslate)}function Wz(Z){let $=this,J=$.touchEventsData,Q=Z;if(Q.originalEvent)Q=Q.originalEvent;let K;if(!(Q.type==="touchend"||Q.type==="touchcancel")){if(J.touchId!==null)return;if(Q.pointerId!==J.pointerId)return;K=Q}else if(K=[...Q.changedTouches].find((T)=>T.identifier===J.touchId),!K||K.identifier!==J.touchId)return;if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(Q.type)){if(!(["pointercancel","contextmenu"].includes(Q.type)&&($.browser.isSafari||$.browser.isWebView)))return}J.pointerId=null,J.touchId=null;let{params:U,touches:W,rtlTranslate:G,slidesGrid:X,enabled:L}=$;if(!L)return;if(!U.simulateTouch&&Q.pointerType==="mouse")return;if(J.allowTouchCallbacks)$.emit("touchEnd",Q);if(J.allowTouchCallbacks=!1,!J.isTouched){if(J.isMoved&&U.grabCursor)$.setGrabCursor(!1);J.isMoved=!1,J.startMoving=!1;return}if(U.grabCursor&&J.isMoved&&J.isTouched&&($.allowSlideNext===!0||$.allowSlidePrev===!0))$.setGrabCursor(!1);let N=UJ(),F=N-J.touchStartTime;if($.allowClick){let T=Q.path||Q.composedPath&&Q.composedPath();if($.updateClickedSlide(T&&T[0]||Q.target,T),$.emit("tap click",Q),F<300&&N-J.lastClickTime<300)$.emit("doubleTap doubleClick",Q)}if(J.lastClickTime=UJ(),mJ(()=>{if(!$.destroyed)$.allowClick=!0}),!J.isTouched||!J.isMoved||!$.swipeDirection||W.diff===0&&!J.loopSwapReset||J.currentTranslate===J.startTranslate&&!J.loopSwapReset){J.isTouched=!1,J.isMoved=!1,J.startMoving=!1;return}J.isTouched=!1,J.isMoved=!1,J.startMoving=!1;let j;if(U.followFinger)j=G?$.translate:-$.translate;else j=-J.currentTranslate;if(U.cssMode)return;if(U.freeMode&&U.freeMode.enabled){$.freeMode.onTouchEnd({currentPos:j});return}let R=j>=-$.maxTranslate()&&!$.params.loop,O=0,C=$.slidesSizesGrid[0];for(let T=0;T=X[T]&&j=X[T])O=T,C=X[X.length-1]-X[X.length-2]}let A=null,E=null;if(U.rewind){if($.isBeginning)E=U.virtual&&U.virtual.enabled&&$.virtual?$.virtual.slides.length-1:$.slides.length-1;else if($.isEnd)A=0}let k=(j-X[O])/C,x=OU.longSwipesMs){if(!U.longSwipes){$.slideTo($.activeIndex);return}if($.swipeDirection==="next")if(k>=U.longSwipesRatio)$.slideTo(U.rewind&&$.isEnd?A:O+x);else $.slideTo(O);if($.swipeDirection==="prev")if(k>1-U.longSwipesRatio)$.slideTo(O+x);else if(E!==null&&k<0&&Math.abs(k)>U.longSwipesRatio)$.slideTo(E);else $.slideTo(O)}else{if(!U.shortSwipes){$.slideTo($.activeIndex);return}if(!($.navigation&&(Q.target===$.navigation.nextEl||Q.target===$.navigation.prevEl))){if($.swipeDirection==="next")$.slideTo(A!==null?A:O+x);if($.swipeDirection==="prev")$.slideTo(E!==null?E:O)}else if(Q.target===$.navigation.nextEl)$.slideTo(O+x);else $.slideTo(O)}}function VH(){let Z=this,{params:$,el:J}=Z;if(J&&J.offsetWidth===0)return;if($.breakpoints)Z.setBreakpoint();let{allowSlideNext:Q,allowSlidePrev:K,snapGrid:q}=Z,U=Z.virtual&&Z.params.virtual.enabled;Z.allowSlideNext=!0,Z.allowSlidePrev=!0,Z.updateSize(),Z.updateSlides(),Z.updateSlidesClasses();let W=U&&$.loop;if(($.slidesPerView==="auto"||$.slidesPerView>1)&&Z.isEnd&&!Z.isBeginning&&!Z.params.centeredSlides&&!W)Z.slideTo(Z.slides.length-1,0,!1,!0);else if(Z.params.loop&&!U)Z.slideToLoop(Z.realIndex,0,!1,!0);else Z.slideTo(Z.activeIndex,0,!1,!0);if(Z.autoplay&&Z.autoplay.running&&Z.autoplay.paused)clearTimeout(Z.autoplay.resizeTimeout),Z.autoplay.resizeTimeout=setTimeout(()=>{if(Z.autoplay&&Z.autoplay.running&&Z.autoplay.paused)Z.autoplay.resume()},500);if(Z.allowSlidePrev=K,Z.allowSlideNext=Q,Z.params.watchOverflow&&q!==Z.snapGrid)Z.checkOverflow()}function Hz(Z){let $=this;if(!$.enabled)return;if(!$.allowClick){if($.params.preventClicks)Z.preventDefault();if($.params.preventClicksPropagation&&$.animating)Z.stopPropagation(),Z.stopImmediatePropagation()}}function Gz(){let Z=this,{wrapperEl:$,rtlTranslate:J,enabled:Q}=Z;if(!Q)return;if(Z.previousTranslate=Z.translate,Z.isHorizontal())Z.translate=-$.scrollLeft;else Z.translate=-$.scrollTop;if(Z.translate===0)Z.translate=0;Z.updateActiveIndex(),Z.updateSlidesClasses();let K,q=Z.maxTranslate()-Z.minTranslate();if(q===0)K=0;else K=(Z.translate-Z.minTranslate())/q;if(K!==Z.progress)Z.updateProgress(J?-Z.translate:Z.translate);Z.emit("setTranslate",Z.translate,!1)}function jz(Z){let $=this;if(AZ($,Z.target),$.params.cssMode||$.params.slidesPerView!=="auto"&&!$.params.autoHeight)return;$.update()}function Bz(){let Z=this;if(Z.documentTouchHandlerProceeded)return;if(Z.documentTouchHandlerProceeded=!0,Z.params.touchReleaseOnEdges)Z.el.style.touchAction="auto"}var AH=(Z,$)=>{let J=e1(),{params:Q,el:K,wrapperEl:q,device:U}=Z,W=!!Q.nested,G=$==="on"?"addEventListener":"removeEventListener",X=$;if(!K||typeof K==="string")return;if(J[G]("touchstart",Z.onDocumentTouchStart,{passive:!1,capture:W}),K[G]("touchstart",Z.onTouchStart,{passive:!1}),K[G]("pointerdown",Z.onTouchStart,{passive:!1}),J[G]("touchmove",Z.onTouchMove,{passive:!1,capture:W}),J[G]("pointermove",Z.onTouchMove,{passive:!1,capture:W}),J[G]("touchend",Z.onTouchEnd,{passive:!0}),J[G]("pointerup",Z.onTouchEnd,{passive:!0}),J[G]("pointercancel",Z.onTouchEnd,{passive:!0}),J[G]("touchcancel",Z.onTouchEnd,{passive:!0}),J[G]("pointerout",Z.onTouchEnd,{passive:!0}),J[G]("pointerleave",Z.onTouchEnd,{passive:!0}),J[G]("contextmenu",Z.onTouchEnd,{passive:!0}),Q.preventClicks||Q.preventClicksPropagation)K[G]("click",Z.onClick,!0);if(Q.cssMode)q[G]("scroll",Z.onScroll);if(Q.updateOnWindowResize)Z[X](U.ios||U.android?"resize orientationchange observerUpdate":"resize observerUpdate",VH,!0);else Z[X]("observerUpdate",VH,!0);K[G]("load",Z.onLoad,{capture:!0})};function Xz(){let Z=this,{params:$}=Z;if(Z.onTouchStart=qz.bind(Z),Z.onTouchMove=Uz.bind(Z),Z.onTouchEnd=Wz.bind(Z),Z.onDocumentTouchStart=Bz.bind(Z),$.cssMode)Z.onScroll=Gz.bind(Z);Z.onClick=Hz.bind(Z),Z.onLoad=jz.bind(Z),AH(Z,"on")}function zz(){AH(this,"off")}var Lz={attachEvents:Xz,detachEvents:zz},YH=(Z,$)=>{return Z.grid&&$.grid&&$.grid.rows>1};function Fz(){let Z=this,{realIndex:$,initialized:J,params:Q,el:K}=Z,q=Q.breakpoints;if(!q||q&&Object.keys(q).length===0)return;let U=e1(),W=Q.breakpointsBase==="window"||!Q.breakpointsBase?Q.breakpointsBase:"container",G=["window","container"].includes(Q.breakpointsBase)||!Q.breakpointsBase?Z.el:U.querySelector(Q.breakpointsBase),X=Z.getBreakpoint(q,W,G);if(!X||Z.currentBreakpoint===X)return;let N=(X in q?q[X]:void 0)||Z.originalParams,F=YH(Z,Q),j=YH(Z,N),R=Z.params.grabCursor,O=N.grabCursor,C=Q.enabled;if(F&&!j)K.classList.remove(`${Q.containerModifierClass}grid`,`${Q.containerModifierClass}grid-column`),Z.emitContainerClasses();else if(!F&&j){if(K.classList.add(`${Q.containerModifierClass}grid`),N.grid.fill&&N.grid.fill==="column"||!N.grid.fill&&Q.grid.fill==="column")K.classList.add(`${Q.containerModifierClass}grid-column`);Z.emitContainerClasses()}if(R&&!O)Z.unsetGrabCursor();else if(!R&&O)Z.setGrabCursor();["navigation","pagination","scrollbar"].forEach((h)=>{if(typeof N[h]>"u")return;let b=Q[h]&&Q[h].enabled,S=N[h]&&N[h].enabled;if(b&&!S)Z[h].disable();if(!b&&S)Z[h].enable()});let A=N.direction&&N.direction!==Q.direction,E=Q.loop&&(N.slidesPerView!==Q.slidesPerView||A),k=Q.loop;if(A&&J)Z.changeDirection();$9(Z.params,N);let x=Z.params.enabled,T=Z.params.loop;if(Object.assign(Z,{allowTouchMove:Z.params.allowTouchMove,allowSlideNext:Z.params.allowSlideNext,allowSlidePrev:Z.params.allowSlidePrev}),C&&!x)Z.disable();else if(!C&&x)Z.enable();if(Z.currentBreakpoint=X,Z.emit("_beforeBreakpoint",N),J){if(E)Z.loopDestroy(),Z.loopCreate($),Z.updateSlides();else if(!k&&T)Z.loopCreate($),Z.updateSlides();else if(k&&!T)Z.loopDestroy()}Z.emit("breakpoint",N)}function Nz(Z,$="window",J){if(!Z||$==="container"&&!J)return;let Q=!1,K=c1(),q=$==="window"?K.innerHeight:J.clientHeight,U=Object.keys(Z).map((W)=>{if(typeof W==="string"&&W.indexOf("@")===0){let G=parseFloat(W.substr(1));return{value:q*G,point:W}}return{value:W,point:W}});U.sort((W,G)=>parseInt(W.value,10)-parseInt(G.value,10));for(let W=0;W{if(typeof Q==="object")Object.keys(Q).forEach((K)=>{if(Q[K])J.push($+K)});else if(typeof Q==="string")J.push($+Q)}),J}function Oz(){let Z=this,{classNames:$,params:J,rtl:Q,el:K,device:q}=Z,U=Yz(["initialized",J.direction,{"free-mode":Z.params.freeMode&&J.freeMode.enabled},{autoheight:J.autoHeight},{rtl:Q},{grid:J.grid&&J.grid.rows>1},{"grid-column":J.grid&&J.grid.rows>1&&J.grid.fill==="column"},{android:q.android},{ios:q.ios},{"css-mode":J.cssMode},{centered:J.cssMode&&J.centeredSlides},{"watch-progress":J.watchSlidesProgress}],J.containerModifierClass);$.push(...U),K.classList.add(...$),Z.emitContainerClasses()}function Rz(){let Z=this,{el:$,classNames:J}=Z;if(!$||typeof $==="string")return;$.classList.remove(...J),Z.emitContainerClasses()}var Dz={addClasses:Oz,removeClasses:Rz};function Mz(){let Z=this,{isLocked:$,params:J}=Z,{slidesOffsetBefore:Q}=J;if(Q){let K=Z.slides.length-1,q=Z.slidesGrid[K]+Z.slidesSizesGrid[K]+Q*2;Z.isLocked=Z.size>q}else Z.isLocked=Z.snapGrid.length===1;if(J.allowSlideNext===!0)Z.allowSlideNext=!Z.isLocked;if(J.allowSlidePrev===!0)Z.allowSlidePrev=!Z.isLocked;if($&&$!==Z.isLocked)Z.isEnd=!1;if($!==Z.isLocked)Z.emit(Z.isLocked?"lock":"unlock")}var Cz={checkOverflow:Mz},OH={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:0.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:0.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Az(Z,$){return function(Q={}){let K=Object.keys(Q)[0],q=Q[K];if(typeof q!=="object"||q===null){$9($,Q);return}if(Z[K]===!0)Z[K]={enabled:!0};if(K==="navigation"&&Z[K]&&Z[K].enabled&&!Z[K].prevEl&&!Z[K].nextEl)Z[K].auto=!0;if(["pagination","scrollbar"].indexOf(K)>=0&&Z[K]&&Z[K].enabled&&!Z[K].el)Z[K].auto=!0;if(!((K in Z)&&("enabled"in q))){$9($,Q);return}if(typeof Z[K]==="object"&&!("enabled"in Z[K]))Z[K].enabled=!0;if(!Z[K])Z[K]={enabled:!1};$9($,Q)}}var a6={eventsEmitter:DX,update:xX,translate:uX,transition:mX,slide:rX,loop:$z,grabCursor:Zz,events:Lz,breakpoints:Vz,checkOverflow:Cz,classes:Dz},t6={};class o${constructor(...Z){let $,J;if(Z.length===1&&Z[0].constructor&&Object.prototype.toString.call(Z[0]).slice(8,-1)==="Object")J=Z[0];else[$,J]=Z;if(!J)J={};if(J=$9({},J),$&&!J.el)J.el=$;let Q=e1();if(J.el&&typeof J.el==="string"&&Q.querySelectorAll(J.el).length>1){let W=[];return Q.querySelectorAll(J.el).forEach((G)=>{let X=$9({},J,{el:G});W.push(new o$(X))}),W}let K=this;if(K.__swiper__=!0,K.support=RH(),K.device=DH({userAgent:J.userAgent}),K.browser=MH(),K.eventsListeners={},K.eventsAnyListeners=[],K.modules=[...K.__modules__],J.modules&&Array.isArray(J.modules))K.modules.push(...J.modules);let q={};K.modules.forEach((W)=>{W({params:J,swiper:K,extendParams:Az(J,q),on:K.on.bind(K),once:K.once.bind(K),off:K.off.bind(K),emit:K.emit.bind(K)})});let U=$9({},OH,q);if(K.params=$9({},U,t6,J),K.originalParams=$9({},K.params),K.passedParams=$9({},J),K.params&&K.params.on)Object.keys(K.params.on).forEach((W)=>{K.on(W,K.params.on[W])});if(K.params&&K.params.onAny)K.onAny(K.params.onAny);if(Object.assign(K,{enabled:K.params.enabled,el:$,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return K.params.direction==="horizontal"},isVertical(){return K.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/8388608)*8388608},allowSlideNext:K.params.allowSlideNext,allowSlidePrev:K.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:K.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:K.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),K.emit("_swiper"),K.params.init)K.init();return K}getDirectionLabel(Z){if(this.isHorizontal())return Z;return{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[Z]}getSlideIndex(Z){let{slidesEl:$,params:J}=this,Q=A$($,`.${J.slideClass}, swiper-slide`),K=e7(Q[0]);return e7(Z)-K}getSlideIndexByData(Z){return this.getSlideIndex(this.slides.find(($)=>$.getAttribute("data-swiper-slide-index")*1===Z))}getSlideIndexWhenGrid(Z){if(this.grid&&this.params.grid&&this.params.grid.rows>1){if(this.params.grid.fill==="column")Z=Math.floor(Z/this.params.grid.rows);else if(this.params.grid.fill==="row")Z=Z%Math.ceil(this.slides.length/this.params.grid.rows)}return Z}recalcSlides(){let Z=this,{slidesEl:$,params:J}=Z;Z.slides=A$($,`.${J.slideClass}, swiper-slide`)}enable(){let Z=this;if(Z.enabled)return;if(Z.enabled=!0,Z.params.grabCursor)Z.setGrabCursor();Z.emit("enable")}disable(){let Z=this;if(!Z.enabled)return;if(Z.enabled=!1,Z.params.grabCursor)Z.unsetGrabCursor();Z.emit("disable")}setProgress(Z,$){let J=this;Z=Math.min(Math.max(Z,0),1);let Q=J.minTranslate(),q=(J.maxTranslate()-Q)*Z+Q;J.translateTo(q,typeof $>"u"?0:$),J.updateActiveIndex(),J.updateSlidesClasses()}emitContainerClasses(){let Z=this;if(!Z.params._emitClasses||!Z.el)return;let $=Z.el.className.split(" ").filter((J)=>{return J.indexOf("swiper")===0||J.indexOf(Z.params.containerModifierClass)===0});Z.emit("_containerClasses",$.join(" "))}getSlideClasses(Z){let $=this;if($.destroyed)return"";return Z.className.split(" ").filter((J)=>{return J.indexOf("swiper-slide")===0||J.indexOf($.params.slideClass)===0}).join(" ")}emitSlidesClasses(){let Z=this;if(!Z.params._emitClasses||!Z.el)return;let $=[];Z.slides.forEach((J)=>{let Q=Z.getSlideClasses(J);$.push({slideEl:J,classNames:Q}),Z.emit("_slideClass",J,Q)}),Z.emit("_slideClasses",$)}slidesPerViewDynamic(Z="current",$=!1){let J=this,{params:Q,slides:K,slidesGrid:q,slidesSizesGrid:U,size:W,activeIndex:G}=J,X=1;if(typeof Q.slidesPerView==="number")return Q.slidesPerView;if(Q.centeredSlides){let L=K[G]?Math.ceil(K[G].swiperSlideSize):0,N;for(let F=G+1;FW)N=!0}for(let F=G-1;F>=0;F-=1)if(K[F]&&!N){if(L+=K[F].swiperSlideSize,X+=1,L>W)N=!0}}else if(Z==="current"){for(let L=G+1;L=0;L-=1)if(q[G]-q[L]{if(q.complete)AZ(Z,q)}),Z.updateSize(),Z.updateSlides(),Z.updateProgress(),Z.updateSlidesClasses();function Q(){let q=Z.rtlTranslate?Z.translate*-1:Z.translate,U=Math.min(Math.max(q,Z.maxTranslate()),Z.minTranslate());Z.setTranslate(U),Z.updateActiveIndex(),Z.updateSlidesClasses()}let K;if(J.freeMode&&J.freeMode.enabled&&!J.cssMode){if(Q(),J.autoHeight)Z.updateAutoHeight()}else{if((J.slidesPerView==="auto"||J.slidesPerView>1)&&Z.isEnd&&!J.centeredSlides){let q=Z.virtual&&J.virtual.enabled?Z.virtual.slides:Z.slides;K=Z.slideTo(q.length-1,0,!1,!0)}else K=Z.slideTo(Z.activeIndex,0,!1,!0);if(!K)Q()}if(J.watchOverflow&&$!==Z.snapGrid)Z.checkOverflow();Z.emit("update")}changeDirection(Z,$=!0){let J=this,Q=J.params.direction;if(!Z)Z=Q==="horizontal"?"vertical":"horizontal";if(Z===Q||Z!=="horizontal"&&Z!=="vertical")return J;if(J.el.classList.remove(`${J.params.containerModifierClass}${Q}`),J.el.classList.add(`${J.params.containerModifierClass}${Z}`),J.emitContainerClasses(),J.params.direction=Z,J.slides.forEach((K)=>{if(Z==="vertical")K.style.width="";else K.style.height=""}),J.emit("changeDirection"),$)J.update();return J}changeLanguageDirection(Z){let $=this;if($.rtl&&Z==="rtl"||!$.rtl&&Z==="ltr")return;if($.rtl=Z==="rtl",$.rtlTranslate=$.params.direction==="horizontal"&&$.rtl,$.rtl)$.el.classList.add(`${$.params.containerModifierClass}rtl`),$.el.dir="rtl";else $.el.classList.remove(`${$.params.containerModifierClass}rtl`),$.el.dir="ltr";$.update()}mount(Z){let $=this;if($.mounted)return!0;let J=Z||$.params.el;if(typeof J==="string")J=document.querySelector(J);if(!J)return!1;if(J.swiper=$,J.parentNode&&J.parentNode.host&&J.parentNode.host.nodeName===$.params.swiperElementNodeName.toUpperCase())$.isElement=!0;let Q=()=>{return`.${($.params.wrapperClass||"").trim().split(" ").join(".")}`},q=(()=>{if(J&&J.shadowRoot&&J.shadowRoot.querySelector)return J.shadowRoot.querySelector(Q());return A$(J,Q())[0]})();if(!q&&$.params.createElements)q=I9("div",$.params.wrapperClass),J.append(q),A$(J,`.${$.params.slideClass}`).forEach((U)=>{q.append(U)});return Object.assign($,{el:J,wrapperEl:q,slidesEl:$.isElement&&!J.parentNode.host.slideSlots?J.parentNode.host:q,hostEl:$.isElement?J.parentNode.host:J,mounted:!0,rtl:J.dir.toLowerCase()==="rtl"||U8(J,"direction")==="rtl",rtlTranslate:$.params.direction==="horizontal"&&(J.dir.toLowerCase()==="rtl"||U8(J,"direction")==="rtl"),wrongRTL:U8(q,"display")==="-webkit-box"}),!0}init(Z){let $=this;if($.initialized)return $;if($.mount(Z)===!1)return $;if($.emit("beforeInit"),$.params.breakpoints)$.setBreakpoint();if($.addClasses(),$.updateSize(),$.updateSlides(),$.params.watchOverflow)$.checkOverflow();if($.params.grabCursor&&$.enabled)$.setGrabCursor();if($.params.loop&&$.virtual&&$.params.virtual.enabled)$.slideTo($.params.initialSlide+$.virtual.slidesBefore,0,$.params.runCallbacksOnInit,!1,!0);else $.slideTo($.params.initialSlide,0,$.params.runCallbacksOnInit,!1,!0);if($.params.loop)$.loopCreate(void 0,!0);$.attachEvents();let Q=[...$.el.querySelectorAll('[loading="lazy"]')];if($.isElement)Q.push(...$.hostEl.querySelectorAll('[loading="lazy"]'));return Q.forEach((K)=>{if(K.complete)AZ($,K);else K.addEventListener("load",(q)=>{AZ($,q.target)})}),e6($),$.initialized=!0,e6($),$.emit("init"),$.emit("afterInit"),$}destroy(Z=!0,$=!0){let J=this,{params:Q,el:K,wrapperEl:q,slides:U}=J;if(typeof J.params>"u"||J.destroyed)return null;if(J.emit("beforeDestroy"),J.initialized=!1,J.detachEvents(),Q.loop)J.loopDestroy();if($){if(J.removeClasses(),K&&typeof K!=="string")K.removeAttribute("style");if(q)q.removeAttribute("style");if(U&&U.length)U.forEach((W)=>{W.classList.remove(Q.slideVisibleClass,Q.slideFullyVisibleClass,Q.slideActiveClass,Q.slideNextClass,Q.slidePrevClass),W.removeAttribute("style"),W.removeAttribute("data-swiper-slide-index")})}if(J.emit("destroy"),Object.keys(J.eventsListeners).forEach((W)=>{J.off(W)}),Z!==!1){if(J.el&&typeof J.el!=="string")J.el.swiper=null;BH(J)}return J.destroyed=!0,null}static extendDefaults(Z){$9(t6,Z)}static get extendedDefaults(){return t6}static get defaults(){return OH}static installModule(Z){if(!o$.prototype.__modules__)o$.prototype.__modules__=[];let $=o$.prototype.__modules__;if(typeof Z==="function"&&$.indexOf(Z)<0)$.push(Z)}static use(Z){if(Array.isArray(Z))return Z.forEach(($)=>o$.installModule($)),o$;return o$.installModule(Z),o$}}Object.keys(a6).forEach((Z)=>{Object.keys(a6[Z]).forEach(($)=>{o$.prototype[$]=a6[Z][$]})});o$.use([OX,RX]);function $q({swiper:Z,extendParams:$,on:J,emit:Q}){let K=e1(),q=c1();Z.keyboard={enabled:!1},$({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function U(X){if(!Z.enabled)return;let{rtlTranslate:L}=Z,N=X;if(N.originalEvent)N=N.originalEvent;let F=N.keyCode||N.charCode,j=Z.params.keyboard.pageUpDown,R=j&&F===33,O=j&&F===34,C=F===37,A=F===39,E=F===38,k=F===40;if(!Z.allowSlideNext&&(Z.isHorizontal()&&A||Z.isVertical()&&k||O))return!1;if(!Z.allowSlidePrev&&(Z.isHorizontal()&&C||Z.isVertical()&&E||R))return!1;if(N.shiftKey||N.altKey||N.ctrlKey||N.metaKey)return;if(K.activeElement&&(K.activeElement.isContentEditable||K.activeElement.nodeName&&(K.activeElement.nodeName.toLowerCase()==="input"||K.activeElement.nodeName.toLowerCase()==="textarea")))return;if(Z.params.keyboard.onlyInViewport&&(R||O||C||A||E||k)){let x=!1;if(WJ(Z.el,`.${Z.params.slideClass}, swiper-slide`).length>0&&WJ(Z.el,`.${Z.params.slideActiveClass}`).length===0)return;let T=Z.el,h=T.clientWidth,b=T.clientHeight,S=q.innerWidth,u=q.innerHeight,f=MZ(T);if(L)f.left-=T.scrollLeft;let m=[[f.left,f.top],[f.left+h,f.top],[f.left,f.top+b],[f.left+h,f.top+b]];for(let _=0;_=0&&n[0]<=S&&n[1]>=0&&n[1]<=u){if(n[0]===0&&n[1]===0)continue;x=!0}}if(!x)return}if(Z.isHorizontal()){if(R||O||C||A)if(N.preventDefault)N.preventDefault();else N.returnValue=!1;if((O||A)&&!L||(R||C)&&L)Z.slideNext();if((R||C)&&!L||(O||A)&&L)Z.slidePrev()}else{if(R||O||E||k)if(N.preventDefault)N.preventDefault();else N.returnValue=!1;if(O||k)Z.slideNext();if(R||E)Z.slidePrev()}Q("keyPress",F);return}function W(){if(Z.keyboard.enabled)return;K.addEventListener("keydown",U),Z.keyboard.enabled=!0}function G(){if(!Z.keyboard.enabled)return;K.removeEventListener("keydown",U),Z.keyboard.enabled=!1}J("init",()=>{if(Z.params.keyboard.enabled)W()}),J("destroy",()=>{if(Z.keyboard.enabled)G()}),Object.assign(Z.keyboard,{enable:W,disable:G})}function kZ(Z,$,J,Q){if(Z.params.createElements)Object.keys(Q).forEach((K)=>{if(!J[K]&&J.auto===!0){let q=A$(Z.el,`.${Q[K]}`)[0];if(!q)q=I9("div",Q[K]),q.className=Q[K],Z.el.append(q);J[K]=q,$[K]=q}});return J}var kH='';function Jq({swiper:Z,extendParams:$,on:J,emit:Q}){$({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),Z.navigation={nextEl:null,prevEl:null,arrowSvg:kH};function K(j){let R;if(j&&typeof j==="string"&&Z.isElement){if(R=Z.el.querySelector(j)||Z.hostEl.querySelector(j),R)return R}if(j){if(typeof j==="string")R=[...document.querySelectorAll(j)];if(Z.params.uniqueNavElements&&typeof j==="string"&&R&&R.length>1&&Z.el.querySelectorAll(j).length===1)R=Z.el.querySelector(j);else if(R&&R.length===1)R=R[0]}if(j&&!R)return j;return R}function q(j,R){let O=Z.params.navigation;j=X9(j),j.forEach((C)=>{if(C){if(C.classList[R?"add":"remove"](...O.disabledClass.split(" ")),C.tagName==="BUTTON")C.disabled=R;if(Z.params.watchOverflow&&Z.enabled)C.classList[Z.isLocked?"add":"remove"](O.lockClass)}})}function U(){let{nextEl:j,prevEl:R}=Z.navigation;if(Z.params.loop){q(R,!1),q(j,!1);return}q(R,Z.isBeginning&&!Z.params.rewind),q(j,Z.isEnd&&!Z.params.rewind)}function W(j){if(j.preventDefault(),Z.isBeginning&&!Z.params.loop&&!Z.params.rewind)return;Z.slidePrev(),Q("navigationPrev")}function G(j){if(j.preventDefault(),Z.isEnd&&!Z.params.loop&&!Z.params.rewind)return;Z.slideNext(),Q("navigationNext")}function X(){let j=Z.params.navigation;if(Z.params.navigation=kZ(Z,Z.originalParams.navigation,Z.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(j.nextEl||j.prevEl))return;let R=K(j.nextEl),O=K(j.prevEl);Object.assign(Z.navigation,{nextEl:R,prevEl:O}),R=X9(R),O=X9(O);let C=(A,E)=>{if(A){if(j.addIcons&&A.matches(".swiper-button-next,.swiper-button-prev")&&!A.querySelector("svg")){let k=document.createElement("div");pJ(k,kH),A.appendChild(k.querySelector("svg")),k.remove()}A.addEventListener("click",E==="next"?G:W)}if(!Z.enabled&&A)A.classList.add(...j.lockClass.split(" "))};R.forEach((A)=>C(A,"next")),O.forEach((A)=>C(A,"prev"))}function L(){let{nextEl:j,prevEl:R}=Z.navigation;j=X9(j),R=X9(R);let O=(C,A)=>{C.removeEventListener("click",A==="next"?G:W),C.classList.remove(...Z.params.navigation.disabledClass.split(" "))};j.forEach((C)=>O(C,"next")),R.forEach((C)=>O(C,"prev"))}J("init",()=>{if(Z.params.navigation.enabled===!1)F();else X(),U()}),J("toEdge fromEdge lock unlock",()=>{U()}),J("destroy",()=>{L()}),J("enable disable",()=>{let{nextEl:j,prevEl:R}=Z.navigation;if(j=X9(j),R=X9(R),Z.enabled){U();return}[...j,...R].filter((O)=>!!O).forEach((O)=>O.classList.add(Z.params.navigation.lockClass))}),J("click",(j,R)=>{let{nextEl:O,prevEl:C}=Z.navigation;O=X9(O),C=X9(C);let A=R.target,E=C.includes(A)||O.includes(A);if(Z.isElement&&!E){let k=R.path||R.composedPath&&R.composedPath();if(k)E=k.find((x)=>O.includes(x)||C.includes(x))}if(Z.params.navigation.hideOnClick&&!E){if(Z.pagination&&Z.params.pagination&&Z.params.pagination.clickable&&(Z.pagination.el===A||Z.pagination.el.contains(A)))return;let k;if(O.length)k=O[0].classList.contains(Z.params.navigation.hiddenClass);else if(C.length)k=C[0].classList.contains(Z.params.navigation.hiddenClass);if(k===!0)Q("navigationShow");else Q("navigationHide");[...O,...C].filter((x)=>!!x).forEach((x)=>x.classList.toggle(Z.params.navigation.hiddenClass))}});let N=()=>{Z.el.classList.remove(...Z.params.navigation.navigationDisabledClass.split(" ")),X(),U()},F=()=>{Z.el.classList.add(...Z.params.navigation.navigationDisabledClass.split(" ")),L()};Object.assign(Z.navigation,{enable:N,disable:F,update:U,init:X,destroy:L})}function Qq({swiper:Z,extendParams:$,on:J,emit:Q,params:K}){Z.autoplay={running:!1,paused:!1,timeLeft:0},$({autoplay:{enabled:!1,delay:3000,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let q,U,W=K&&K.autoplay?K.autoplay.delay:3000,G=K&&K.autoplay?K.autoplay.delay:3000,X,L=new Date().getTime(),N,F,j,R,O,C,A;function E(J0){if(!Z||Z.destroyed||!Z.wrapperEl)return;if(J0.target!==Z.wrapperEl)return;if(Z.wrapperEl.removeEventListener("transitionend",E),A||J0.detail&&J0.detail.bySwiperTouchMove)return;u()}let k=()=>{if(Z.destroyed||!Z.autoplay.running)return;if(Z.autoplay.paused)N=!0;else if(N)G=X,N=!1;let J0=Z.autoplay.paused?X:L+G-new Date().getTime();Z.autoplay.timeLeft=J0,Q("autoplayTimeLeft",J0,J0/W),U=requestAnimationFrame(()=>{k()})},x=()=>{let J0;if(Z.virtual&&Z.params.virtual.enabled)J0=Z.slides.find((t)=>t.classList.contains("swiper-slide-active"));else J0=Z.slides[Z.activeIndex];if(!J0)return;return parseInt(J0.getAttribute("data-swiper-autoplay"),10)},T=(J0)=>{if(Z.destroyed||!Z.autoplay.running)return;cancelAnimationFrame(U),k();let o=typeof J0>"u"?Z.params.autoplay.delay:J0;W=Z.params.autoplay.delay,G=Z.params.autoplay.delay;let t=x();if(!Number.isNaN(t)&&t>0&&typeof J0>"u")o=t,W=t,G=t;X=o;let v=Z.params.speed,N0=()=>{if(!Z||Z.destroyed)return;if(Z.params.autoplay.reverseDirection){if(!Z.isBeginning||Z.params.loop||Z.params.rewind)Z.slidePrev(v,!0,!0),Q("autoplay");else if(!Z.params.autoplay.stopOnLastSlide)Z.slideTo(Z.slides.length-1,v,!0,!0),Q("autoplay")}else if(!Z.isEnd||Z.params.loop||Z.params.rewind)Z.slideNext(v,!0,!0),Q("autoplay");else if(!Z.params.autoplay.stopOnLastSlide)Z.slideTo(0,v,!0,!0),Q("autoplay");if(Z.params.cssMode)L=new Date().getTime(),requestAnimationFrame(()=>{T()})};if(o>0)clearTimeout(q),q=setTimeout(()=>{N0()},o);else requestAnimationFrame(()=>{N0()});return o},h=()=>{L=new Date().getTime(),Z.autoplay.running=!0,T(),Q("autoplayStart")},b=()=>{Z.autoplay.running=!1,clearTimeout(q),cancelAnimationFrame(U),Q("autoplayStop")},S=(J0,o)=>{if(Z.destroyed||!Z.autoplay.running)return;if(clearTimeout(q),!J0)C=!0;let t=()=>{if(Q("autoplayPause"),Z.params.autoplay.waitForTransition)Z.wrapperEl.addEventListener("transitionend",E);else u()};if(Z.autoplay.paused=!0,o){if(O)X=Z.params.autoplay.delay;O=!1,t();return}if(X=(X||Z.params.autoplay.delay)-(new Date().getTime()-L),Z.isEnd&&X<0&&!Z.params.loop)return;if(X<0)X=0;t()},u=()=>{if(Z.isEnd&&X<0&&!Z.params.loop||Z.destroyed||!Z.autoplay.running)return;if(L=new Date().getTime(),C)C=!1,T(X);else T();Z.autoplay.paused=!1,Q("autoplayResume")},f=()=>{if(Z.destroyed||!Z.autoplay.running)return;let J0=e1();if(J0.visibilityState==="hidden")C=!0,S(!0);if(J0.visibilityState==="visible")u()},m=(J0)=>{if(J0.pointerType!=="mouse")return;if(C=!0,A=!0,Z.animating||Z.autoplay.paused)return;S(!0)},_=(J0)=>{if(J0.pointerType!=="mouse")return;if(A=!1,Z.autoplay.paused)u()},n=()=>{if(Z.params.autoplay.pauseOnMouseEnter)Z.el.addEventListener("pointerenter",m),Z.el.addEventListener("pointerleave",_)},q0=()=>{if(Z.el&&typeof Z.el!=="string")Z.el.removeEventListener("pointerenter",m),Z.el.removeEventListener("pointerleave",_)},Q0=()=>{e1().addEventListener("visibilitychange",f)},z0=()=>{e1().removeEventListener("visibilitychange",f)};J("init",()=>{if(Z.params.autoplay.enabled)n(),Q0(),h()}),J("destroy",()=>{if(q0(),z0(),Z.autoplay.running)b()}),J("_freeModeStaticRelease",()=>{if(j||C)u()}),J("_freeModeNoMomentumRelease",()=>{if(!Z.params.autoplay.disableOnInteraction)S(!0,!0);else b()}),J("beforeTransitionStart",(J0,o,t)=>{if(Z.destroyed||!Z.autoplay.running)return;if(t||!Z.params.autoplay.disableOnInteraction)S(!0,!0);else b()}),J("sliderFirstMove",()=>{if(Z.destroyed||!Z.autoplay.running)return;if(Z.params.autoplay.disableOnInteraction){b();return}F=!0,j=!1,C=!1,R=setTimeout(()=>{C=!0,j=!0,S(!0)},200)}),J("touchEnd",()=>{if(Z.destroyed||!Z.autoplay.running||!F)return;if(clearTimeout(R),clearTimeout(q),Z.params.autoplay.disableOnInteraction){j=!1,F=!1;return}if(j&&Z.params.cssMode)u();j=!1,F=!1}),J("slideChange",()=>{if(Z.destroyed||!Z.autoplay.running)return;O=!0}),Object.assign(Z.autoplay,{start:h,stop:b,pause:S,resume:u})}var kz=4,Iz=3000,Pz=24,Tz={480:{slidesPerView:1.5,spaceBetween:16},768:{slidesPerView:2.5,spaceBetween:20},992:{slidesPerView:4,spaceBetween:24}};function TH(Z){if(typeof window>"u"||!Z)return null;let $=Z.querySelector('.swiper[data-slider="wrap"]');if(!$)return console.warn("Carousel: slider element not found"),null;let Q=$.querySelectorAll(".swiper-slide").length>kz,K=Z.querySelector('[data-swiper="prev"]'),q=Z.querySelector('[data-swiper="next"]'),U=Z?.dataset||{},W=U.autoplay==="true",G=parseInt(U.autoplayDelay)||Iz,X=parseInt(U.spaceBetween)||Pz,L=new o$($,{slidesPerView:1.5,spaceBetween:12,loop:Q,grabCursor:!0,direction:"horizontal",touchEventsTarget:"container",touchRatio:1,touchAngle:45,threshold:5,touchMoveStopPropagation:!0,passiveListeners:!1,resistanceRatio:0,navigation:K&&q?{prevEl:K,nextEl:q}:!1,keyboard:{enabled:!0,onlyInViewport:!0},autoplay:W&&Q?{delay:G,disableOnInteraction:!1,pauseOnMouseEnter:!0}:!1,breakpoints:{...Tz,1440:{slidesPerView:4,spaceBetween:X}},createElements:!1,modules:[Jq,$q,Qq]}),N=()=>{if(L&&typeof L.destroy==="function")L.destroy(!0,!0)};return I1(N),N}var Hq={};V$(Hq,{initDesignConfig:()=>gH,default:()=>cH});/*! * paths 3.14.2 * https://gsap.com * * Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var Ez=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig;var Sz=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig;var bz=Math.PI/180,$Y=180/Math.PI,PZ=Math.sin,TZ=Math.cos,QQ=Math.abs,JQ=Math.sqrt;var xz=function($){return typeof $==="number"};var EH=1e5;var E8=function($){return Math.round($*EH)/EH||0};var SH=function($){return $.closed=Math.abs($[0]-$[$.length-2])<0.001&&Math.abs($[1]-$[$.length-1])<0.001};function bH(Z,$,J,Q,K,q,U){var W=Z.length,G,X,L,N,F;while(--W>-1){G=Z[W],X=G.length;for(L=0;L1)J=JQ(x)*J,Q=JQ(x)*Q;var T=J*J,h=Q*Q,b=(T*h-T*k-h*E)/(T*k+h*E);if(b<0)b=0;var S=(q===U?-1:1)*JQ(b),u=S*(J*A/Q),f=S*-(Q*C/J),m=(Z+W)/2,_=($+G)/2,n=m+(L*u-N*f),q0=_+(N*u+L*f),Q0=(C-u)/J,z0=(A-f)/Q,J0=(-C-u)/J,o=(-A-f)/Q,t=Q0*Q0+z0*z0,v=(z0<0?-1:1)*Math.acos(Q0/JQ(t)),N0=(Q0*o-z0*J0<0?-1:1)*Math.acos((Q0*J0+z0*o)/JQ(t*(J0*J0+o*o)));if(isNaN(N0)&&(N0=F),!U&&N0>0)N0-=j;else if(U&&N0<0)N0+=j;v%=j,N0%=j;var W0=Math.ceil(QQ(N0)/(j/4)),C0=[],h0=N0/W0,p=1.3333333333333333*PZ(h0/2)/(1+TZ(h0/2)),a=L*J,G0=N*J,H0=N*-Q,M0=L*Q,B0;for(B0=0;B0-0.0001?0:f}).match(Ez)||[],J=[],Q=0,K=0,q=0.6666666666666666,U=$.length,W=0,G="ERROR: malformed path: "+Z,X,L,N,F,j,R,O,C,A,E,k,x,T,h,b,S=function(f,m,_,n){E=(_-f)/3,k=(n-m)/3,O.push(f+E,m+k,_-E,n-k,_,n)};if(!Z||!isNaN($[0])||isNaN($[1]))return console.log(G),J;for(X=0;X0.5||QQ(K-F)>0.5){if(S(Q,K,N,F),j==="L")X+=2}Q=N,K=F}else if(j==="A"){if(h=$[X+4],b=$[X+5],E=$[X+6],k=$[X+7],L=7,h.length>1){if(h.length<3)k=E,E=b,L--;else k=b,E=h.substr(2),L-=2;b=h.charAt(1),h=h.charAt(0)}if(x=fz(Q,K,+$[X+1],+$[X+2],+$[X+3],+h,+b,(R?Q:0)+E*1,(R?K:0)+k*1),X+=L,x)for(L=0;LX*(S*S+u*u))_=L.length,Z($,J,F,j,E,k,h,b,X,L,N),Z(h,b,x,T,C,A,W,G,X,L,N+1+(L.length-_));return L},D9=function(){function Z(J,Q,K){hH||yH(),this.id=J,hz&&this.setData(Q,K)}var $=Z.prototype;return $.setData=function(Q,K){K=K||{},Q=Q||"0,0,1,1";var q=Q.match(_z),U=1,W=[],G=[],X=K.precision||1,L=X<=1,N,F,j,R,O,C,A,E,k;if(this.data=Q,vz.test(Q)||~Q.indexOf("M")&&Q.indexOf("C")<0)q=xH(Q)[0];if(N=q.length,N===4)q.unshift(0,0),q.push(1,1),N=8;else if((N-2)%6)throw"Invalid CustomEase";if(+q[0]!==0||+q[N-2]!==1)wz(q,K.height,K.originY);this.segment=q;for(R=2;RE.x||E.y!==A.y&&E.x===A.x||A===E)&&A.x<=1){if(E.cx=A.x-E.x,E.cy=A.y-E.y,E.n=A,E.nx=A.x,L&&R>1&&Math.abs(E.cy/E.cx-W[R-2].cy/W[R-2].cx)>2)L=0;if(E.cxA||F===C-1)L.push(E,k),N=(O-k)/(R-E);E=R,k=O}L="M"+L.join(",")}return X&&X.setAttribute("d",L),L},Z}();D9.version="3.14.2";D9.headless=!0;_H()&&J9.registerPlugin(D9);O0.registerPlugin(D9);var Wq="configEase",cz="0.34 1.56 0.64 1",vH={1:"Move
Forwards",2:"Space for
innovation"},uH={1:"https://cdn.prod.website-files.com/69453c919a8230449bf92ad9/695a7d9077181d1002e48d57_Frame%2016806.jpg",2:"https://cdn.prod.website-files.com/66e0711541e49a7979011342/6994633d3214400195e8d60b_Temp-change.jpg"},wH=(Z,$)=>(Z||"").replace(//gi," ").trim()||$;function gH({moduleEl:Z,signal:$}={}){if(!Z)return()=>{};D9.create(Wq,cz);let J=Z.querySelectorAll("[data-config-bg], [data-config-btn], [data-config-box], [data-config-headline], [data-config-img]");if(!J.length)return()=>{};let Q=document.documentElement,K=(k)=>getComputedStyle(Q).getPropertyValue(k).trim(),q=(k,x)=>{if(!k||x==null)return;Q.style.setProperty(k,String(x).trim())},U=Array.from(Z.querySelectorAll(".design_area_headline")),W=Array.from(Z.querySelectorAll("[data-config-headline] .design_config_headline")),G=Array.from(Z.querySelectorAll(".design_area_img")),X=Array.from(Z.querySelectorAll("[data-config-img] .design_config_img")),L={1:U[0]?.innerHTML?.trim()||vH[1],2:vH[2]},N={1:wH(L[1],"Move Forwards"),2:wH(L[2],"Space for innovation")},F={1:(G[0]instanceof HTMLImageElement?G[0].getAttribute("src"):null)||uH[1],2:uH[2]},j={bg:1,btn:1,box:1,headline:1,img:1},R=(k)=>{let x=j[k]===2?"2":"1",T=`--design-area-color-${k}${x}`,h=`--design-area-color-${k}`;q(h,K(T))},O=(k)=>{if(!k.length)return;O0.fromTo(k,{opacity:0.4,filter:"blur(0.5rem)"},{opacity:1,filter:"blur(0px)",duration:0.35,ease:Wq,overwrite:"auto"})},C=()=>{if(!U.length)return;U.forEach((k)=>k.innerHTML=L[j.headline]),W.forEach((k)=>k.textContent=N[j.headline]),O([...U,...W])},A=()=>{let k=F[j.img],x=(T)=>{if(T instanceof HTMLImageElement)T.src=k;else T.style.backgroundImage=`url("${k}")`};G.forEach(x),X.forEach(x)};["bg","btn","box"].forEach(R),C(),A();let E=(k)=>{let x=k.currentTarget,T=x.hasAttribute("data-config-bg"),h=x.hasAttribute("data-config-btn"),b=x.hasAttribute("data-config-box"),S=x.hasAttribute("data-config-headline"),u=x.hasAttribute("data-config-img");O0.to(".design_area_card > *",{overwrite:"auto",keyframes:[{scale:0.9,duration:0.1,ease:"linear"},{scale:1,duration:0.25,ease:Wq}],stagger:{each:0.02,from:"random"},onStart:()=>{if(T)j.bg=j.bg===1?2:1,R("bg");if(h)j.btn=j.btn===1?2:1,R("btn");if(b)j.box=j.box===1?2:1,R("box");if(S)j.headline=j.headline===1?2:1,C();if(u)j.img=j.img===1?2:1,A()}})};if(J.forEach((k)=>{if($)k.addEventListener("click",E,{signal:$});else k.addEventListener("click",E)}),$)return()=>{};return()=>J.forEach((k)=>k.removeEventListener("click",E))}function cH(Z){if(typeof window>"u"||!Z)return null;let $=new AbortController,J=gH({moduleEl:Z,signal:$.signal});return I1(()=>{$.abort(),J?.()}),null}var gq={};V$(gq,{default:()=>SG});/*! * matrix 3.14.2 * https://gsap.com * * Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var W8,HJ,Xq,xZ,ZQ,SZ,bZ,KQ,P9="transform",Bq=P9+"Origin",mH,fZ=function($){var J=$.ownerDocument||$;if(!(P9 in $.style)&&"msTransform"in $.style)P9="msTransform",Bq=P9+"Origin";while(J.parentNode&&(J=J.parentNode));if(HJ=window,bZ=new T9,J){W8=J,Xq=J.documentElement,xZ=J.body,KQ=W8.createElementNS("http://www.w3.org/2000/svg","g"),KQ.style.transform="none";var Q=J.createElement("div"),K=J.createElement("div"),q=J&&(J.body||J.firstElementChild);if(q&&q.appendChild)q.appendChild(Q),Q.appendChild(K),Q.style.position="static",Q.style.transform="translate3d(0,0,1px)",mH=K.offsetParent!==Q,q.removeChild(Q)}return J},mz=function($){var J,Q;while($&&$!==xZ){if(Q=$._gsap,Q&&Q.uncache&&Q.get($,"x"),Q&&!Q.scaleX&&!Q.scaleY&&Q.renderTransform)Q.scaleX=Q.scaleY=0.0001,Q.renderTransform(1,Q),J?J.push(Q):J=[Q];$=$.parentNode}return J},dH=[],pH=[],yZ=function(){return HJ.pageYOffset||W8.scrollTop||Xq.scrollTop||xZ.scrollTop||0},hZ=function(){return HJ.pageXOffset||W8.scrollLeft||Xq.scrollLeft||xZ.scrollLeft||0},zq=function($){return $.ownerSVGElement||(($.tagName+"").toLowerCase()==="svg"?$:null)},dz=function Z($){if(HJ.getComputedStyle($).position==="fixed")return!0;if($=$.parentNode,$&&$.nodeType===1)return Z($)},Gq=function Z($,J){if($.parentNode&&(W8||fZ($))){var Q=zq($),K=Q?Q.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",q=Q?J?"rect":"g":"div",U=J!==2?0:100,W=J===3?100:0,G={position:"absolute",display:"block",pointerEvents:"none",margin:"0",padding:"0"},X=W8.createElementNS?W8.createElementNS(K.replace(/^https/,"http"),q):W8.createElement(q);if(J)if(!Q){if(!ZQ)ZQ=Z($),Object.assign(ZQ.style,G);Object.assign(X.style,G,{width:"0.1px",height:"0.1px",top:W+"px",left:U+"px"}),ZQ.appendChild(X)}else SZ||(SZ=Z($)),X.setAttribute("width",0.01),X.setAttribute("height",0.01),X.setAttribute("transform","translate("+U+","+W+")"),X.setAttribute("fill","transparent"),SZ.appendChild(X);return X}throw"Need document and parent."},pz=function($){var J=new T9,Q=0;for(;Q<$.numberOfItems;Q++)J.multiply($.getItem(Q).matrix);return J},Lq=function($){var J=$.getCTM(),Q;if(!J)Q=$.style[P9],$.style[P9]="none",$.appendChild(KQ),J=KQ.getCTM(),$.removeChild(KQ),Q?$.style[P9]=Q:$.style.removeProperty(P9.replace(/([A-Z])/g,"-$1").toLowerCase());return J||bZ.clone()},oz=function($,J){var Q=zq($),K=$===Q,q=Q?dH:pH,U=$.parentNode,W=U&&!Q&&U.shadowRoot&&U.shadowRoot.appendChild?U.shadowRoot:U,G,X,L,N,F,j;if($===HJ)return $;if(q.length||q.push(Gq($,1),Gq($,2),Gq($,3)),G=Q?SZ:ZQ,Q){if(K)L=Lq($),N=-L.e/L.a,F=-L.f/L.d,X=bZ;else if($.getBBox)L=$.getBBox(),X=$.transform?$.transform.baseVal:{},X=!X.numberOfItems?bZ:X.numberOfItems>1?pz(X):X.getItem(0).matrix,N=X.a*L.x+X.c*L.y,F=X.b*L.x+X.d*L.y;else X=new T9,N=F=0;if(J&&$.tagName.toLowerCase()==="g")N=F=0;(K||!$.getBoundingClientRect().width?Q:U).appendChild(G),G.setAttribute("transform","matrix("+X.a+","+X.b+","+X.c+","+X.d+","+(X.e+N)+","+(X.f+F)+")")}else{if(N=F=0,mH){X=$.offsetParent,L=$;while(L&&(L=L.parentNode)&&L!==X&&L.parentNode)if((HJ.getComputedStyle(L)[P9]+"").length>4)N=L.offsetLeft,F=L.offsetTop,L=0}if(j=HJ.getComputedStyle($),j.position!=="absolute"&&j.position!=="fixed"){X=$.offsetParent;while(U&&U!==X)N+=U.scrollLeft||0,F+=U.scrollTop||0,U=U.parentNode}L=G.style,L.top=$.offsetTop-F+"px",L.left=$.offsetLeft-N+"px",L[P9]=j[P9],L[Bq]=j[Bq],L.position=j.position==="fixed"?"fixed":"absolute",W.appendChild(G)}return G},jq=function($,J,Q,K,q,U,W){return $.a=J,$.b=Q,$.c=K,$.d=q,$.e=U,$.f=W,$},T9=function(){function Z(J,Q,K,q,U,W){if(J===void 0)J=1;if(Q===void 0)Q=0;if(K===void 0)K=0;if(q===void 0)q=1;if(U===void 0)U=0;if(W===void 0)W=0;jq(this,J,Q,K,q,U,W)}var $=Z.prototype;return $.inverse=function(){var Q=this.a,K=this.b,q=this.c,U=this.d,W=this.e,G=this.f,X=Q*U-K*q||0.0000000001;return jq(this,U/X,-K/X,-q/X,Q/X,(q*G-U*W)/X,-(Q*G-K*W)/X)},$.multiply=function(Q){var K=this.a,q=this.b,U=this.c,W=this.d,G=this.e,X=this.f,L=Q.a,N=Q.c,F=Q.b,j=Q.d,R=Q.e,O=Q.f;return jq(this,L*K+F*U,L*q+F*W,N*K+j*U,N*q+j*W,G+R*K+O*U,X+R*q+O*W)},$.clone=function(){return new Z(this.a,this.b,this.c,this.d,this.e,this.f)},$.equals=function(Q){var K=this.a,q=this.b,U=this.c,W=this.d,G=this.e,X=this.f;return K===Q.a&&q===Q.b&&U===Q.c&&W===Q.d&&G===Q.e&&X===Q.f},$.apply=function(Q,K){if(K===void 0)K={};var{x:q,y:U}=Q,W=this.a,G=this.b,X=this.c,L=this.d,N=this.e,F=this.f;return K.x=q*W+U*X+N||0,K.y=q*G+U*L+F||0,K},Z}();function z$(Z,$,J,Q){if(!Z||!Z.parentNode||(W8||fZ(Z)).documentElement===Z)return new T9;var K=mz(Z),q=zq(Z),U=q?dH:pH,W=oz(Z,J),G=U[0].getBoundingClientRect(),X=U[1].getBoundingClientRect(),L=U[2].getBoundingClientRect(),N=W.parentNode,F=!Q&&dz(Z),j=new T9((X.left-G.left)/100,(X.top-G.top)/100,(L.left-G.left)/100,(L.top-G.top)/100,G.left+(F?0:hZ()),G.top+(F?0:yZ()));if(N.removeChild(W),K){G=K.length;while(G--)X=K[G],X.scaleX=X.scaleY=0,X.renderTransform(1,X)}return $?j.inverse():j}/*! * Flip 3.14.2 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var lz=1,sJ,k$,w1,qQ,S8,H8,Dq,oH=function($,J){return $.actions.forEach(function(Q){return Q.vars[J]&&Q.vars[J](Q)})},Mq={},lH=180/Math.PI,nz=Math.PI/180,uZ={},nH={},cZ={},Aq=function($){return typeof $==="string"?$.split(" ").join("").split(","):$},iz=Aq("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),mZ=Aq("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),UQ=function($){return sJ($)[0]||console.warn("Element not found:",$)},lJ=function($){return Math.round($*1e4)/1e4||0},Fq=function($,J,Q){return $.forEach(function(K){return K.classList[Q](J)})},iH={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},$G={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},JG=function($){return $.replace(/([A-Z])/g,"-$1").toLowerCase()},nJ=function($,J){var Q={},K;for(K in $)J[K]||(Q[K]=$[K]);return Q},kq={},QG=function($){var J=kq[$]=Aq($);return cZ[$]=J.concat(mZ),J},sz=function($){var J=$._gsap||k$.core.getCache($);if(J.gmCache===k$.ticker.frame)return J.gMatrix;return J.gmCache=k$.ticker.frame,J.gMatrix=z$($,!0,!1,!0)},rz=function Z($,J,Q){if(Q===void 0)Q=0;var K=$.parentNode,q=1000*Math.pow(10,Q)*(J?-1:1),U=J?-q*900:0;while($)U+=q,$=$.previousSibling;return K?U+Z(K,J,Q+1):U},wZ=function($,J,Q){return $.forEach(function(K){return K.d=rz(Q?K.element:K.t,J)}),$.sort(function(K,q){return K.d-q.d}),$},WQ=function($,J){var Q=$.element.style,K=$.css=$.css||[],q=J.length,U,W;while(q--)U=J[q],W=Q[U]||Q.getPropertyValue(U),K.push(W?U:nH[U]||(nH[U]=JG(U)),W);return Q},gZ=function($){var J=$.css,Q=$.element.style,K=0;$.cache.uncache=1;for(;K0&&T)p.style.opacity=t?V0.opacity-P0.opacity:"0";iJ(V0,P0,x,u),E&&a.sd<0&&f0.push(p.getAttribute("style"))}else if(P0.isVisible!==V0.isVisible){if(!P0.isVisible)V0.isVisible&&n.push(V0),Q0.splice(h0--,1);else if(!V0.isVisible)P0.css=V0.css,q0.push(P0),Q0.splice(h0--,1),X&&E&&iJ(V0,P0,x,u)}if(!x)p.style.maxWidth=Math.max(V0.width,P0.width)+"px",p.style.maxHeight=Math.max(V0.height,P0.height)+"px",p.style.minWidth=Math.min(V0.width,P0.width)+"px",p.style.minHeight=Math.min(V0.height,P0.height)+"px";E&&A&&p.classList.add(A)}M0.push(V0)}var d0;if(A)d0=M0.map(function(T0){return T0.element}),E&&d0.forEach(function(T0){return T0.classList.remove(A)});if(tH(!1),x)f.scaleX=function(T0){return Q0[T0].a.scaleX},f.scaleY=function(T0){return Q0[T0].a.scaleY};else f.width=function(T0){return Q0[T0].a.width+"px"},f.height=function(T0){return Q0[T0].a.height+"px"},f.autoRound=Q.autoRound||!1;if(f.x=function(T0){return Q0[T0].a.x+"px"},f.y=function(T0){return Q0[T0].a.y+"px"},f.rotation=function(T0){return Q0[T0].a.rotation+(b?o(T0,H0[T0],H0)*360:0)},f.skewX=function(T0){return Q0[T0].a.skewX},H0=Q0.map(function(T0){return T0.t}),k||k===0)f.modifiers={zIndex:function(){return k}},f.zIndex=k,f.immediateRender=Q.immediateRender!==!1;if(T&&(f.opacity=function(T0){return Q0[T0].sd<0?0:Q0[T0].sd>0?Q0[T0].a.opacity:"+=0"}),z0.length){h=k$.utils.distribute(h);var n0=H0.slice(z0.length);f.stagger=function(T0,t0){return h(~z0.indexOf(t0)?H0.indexOf(Q0[T0].swap.t):T0,t0,n0)}}if(iz.forEach(function(T0){return Q[T0]&&m.eventCallback(T0,Q[T0],Q[T0+"Params"])}),N&&H0.length){if(_=nJ(f,iH),"scale"in N)N.scaleX=N.scaleY=N.scale,delete N.scale;for(W0 in N)N0=nJ(N[W0],$G),N0[W0]=f[W0],!("duration"in N0)&&"duration"in f&&(N0.duration=f.duration),N0.stagger=f.stagger,v.call(m,H0,N0,0),delete _[W0]}if(H0.length||q0.length||n.length)A&&m.add(function(){return Fq(d0,A,m._zTime<0?"remove":"add")},0)&&!j&&Fq(d0,A,"add"),H0.length&&v.call(m,H0,_,0);aH(W,n,m),aH(G,q0,m);var u0=w1&&w1.timeline;if(u0)u0.add(m,0),w1._final.push(function(){return sH(Q0,!U)});C0=m.duration(),m.call(function(){var T0=m.time()>=C0;T0&&!u0&&sH(Q0,!U),A&&Fq(d0,A,T0?"remove":"add")})},L&&(X=Q0.filter(function(c){return!c.sd&&!c.a.isVisible&&c.b.isVisible}).map(function(c){return c.a.element})),w1){var A0;X&&(A0=w1._abs).push.apply(A0,rH(Q0,X)),w1._run.push(S0)}else X&&ZG(rH(Q0,X)),S0();var I0=w1?w1.timeline:m;return I0.revert=function(){return Pq(I0,1,1)},I0},$L=function Z($){$.vars.onInterrupt&&$.vars.onInterrupt.apply($,$.vars.onInterruptParams||[]),$.getChildren(!0,!1,!0).forEach(Z)},Pq=function($,J,Q){if($&&$.progress()<1&&(!$.paused()||Q)){if(J)$L($),J<2&&$.progress(1),$.kill();return!0}},vZ=function($){var J=$.idLookup={},Q=$.alt={},K=$.elementStates,q=K.length,U;while(q--)U=K[q],J[U.id]?Q[U.id]=U:J[U.id]=U},E9=function(){function Z(J,Q,K){if(this.props=Q&&Q.props,this.simple=!!(Q&&Q.simple),K)this.targets=qG(J),this.elementStates=J,vZ(this);else{this.targets=sJ(J);var q=Q&&(Q.kill===!1||Q.batch&&!Q.kill);w1&&!q&&w1._kill.push(this),this.update(q||!!w1)}}var $=Z.prototype;return $.update=function(Q){var K=this;return this.elementStates=this.targets.map(function(q){return new GJ(q,K.props,K.simple)}),vZ(this),this.interrupt(Q),this.recordInlineStyles(),this},$.clear=function(){return this.targets.length=this.elementStates.length=0,vZ(this),this},$.fit=function(Q,K,q){var U=wZ(this.elementStates.slice(0),!1,!0),W=(Q||this).idLookup,G=0,X,L;for(;G=0&&this.actions.splice(K,1),this},$.getState=function(Q){var K=this,q=w1,U=qQ;return w1=this,this.state.clear(),this._kill.length=0,this.actions.forEach(function(W){if(W.vars.getState)W.states.length=0,qQ=W,W.state=W.vars.getState(W);Q&&W.states.forEach(function(G){return K.state.add(G)})}),qQ=U,w1=q,this.killConflicts(),this},$.animate=function(){var Q=this,K=w1,q=this.timeline,U=this.actions.length,W,G;w1=this,q.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(function(X){X.vars.animate&&X.vars.animate(X);var L=X.vars.onEnter,N=X.vars.onLeave,F=X.targets,j,R;if(F&&F.length&&(L||N))j=new E9,X.states.forEach(function(O){return j.add(O)}),R=j.compare(I$.getState(F)),R.enter.length&&L&&L(R.enter),R.leave.length&&N&&N(R.leave)}),ZG(this._abs),this._run.forEach(function(X){return X()}),G=q.duration(),W=this._final.slice(0),q.add(function(){if(G<=q.time())W.forEach(function(X){return X()}),oH(Q,"onComplete")}),w1=K;while(U--)this.actions[U].vars.once&&this.actions[U].kill();return oH(this,"onStart"),q.restart(),this},$.loadState=function(Q){Q||(Q=function(){return 0});var K=[];return this.actions.forEach(function(q){if(q.vars.loadState){var U,W=function G(X){if(X&&(q.targets=X),U=K.indexOf(G),~U)K.splice(U,1),K.length||Q()};K.push(W),q.vars.loadState(W)}}),K.length||Q(),this},$.setState=function(){return this.actions.forEach(function(Q){return Q.targets=Q.vars.setState&&Q.vars.setState(Q)}),this},$.killConflicts=function(Q){return this.state.interrupt(Q),this._kill.forEach(function(K){return K.interrupt(Q)}),this},$.run=function(Q,K){var q=this;if(this!==w1)Q||this.getState(K),this.loadState(function(){if(!q._killed)q.setState(),q.animate()});return this},$.clear=function(Q){this.state.clear(),Q||(this.actions.length=0)},$.getStateById=function(Q){var K=this.actions.length,q;while(K--)if(q=this.actions[K].getStateById(Q),q)return q;return this.state.idLookup[Q]&&this.state},$.kill=function(){this._killed=1,this.clear(),delete Mq[this.id]},Z}(),I$=function(){function Z(){}return Z.getState=function(J,Q){var K=Vq(J,Q);return qQ&&qQ.states.push(K),Q&&Q.batch&&Z.batch(Q.batch).state.add(K),K},Z.from=function(J,Q){return Q=Q||{},"clearProps"in Q||(Q.clearProps=!0),Rq(J,Vq(Q.targets||J.targets,{props:Q.props||J.props,simple:Q.simple,kill:!!Q.kill}),Q,-1)},Z.to=function(J,Q){return Rq(J,Vq(Q.targets||J.targets,{props:Q.props||J.props,simple:Q.simple,kill:!!Q.kill}),Q,1)},Z.fromTo=function(J,Q,K){return Rq(J,Q,K)},Z.fit=function(J,Q,K){var q=K?nJ(K,$G):{},U=K||q,W=U.absolute,G=U.scale,X=U.getVars,L=U.props,N=U.runBackwards,F=U.onComplete,j=U.simple,R=K&&K.fitChild&&UQ(K.fitChild),O=Cq(Q,L,j,J),C=Cq(J,0,j,O),A=L?cZ[L]:mZ,E=k$.context();if(L&&KG(q,O.props),WQ(C,A),N)"immediateRender"in q||(q.immediateRender=!0),q.onComplete=function(){gZ(C),F&&F.apply(this,arguments)};return W&&Iq(C,O),q=iJ(C,O,G||R,!q.duration&&L,R,q.duration||X?q:0),typeof K==="object"&&"zIndex"in K&&(q.zIndex=K.zIndex),E&&!X&&E.add(function(){return function(){return gZ(C)}}),X?q:q.duration?k$.to(C.element,q):null},Z.makeAbsolute=function(J,Q){return(J instanceof E9?J:new E9(J,Q)).makeAbsolute()},Z.batch=function(J){return J||(J="default"),Mq[J]||(Mq[J]=new QL(J))},Z.killFlipsOf=function(J,Q){(J instanceof E9?J.targets:sJ(J)).forEach(function(K){return K&&Pq(K._flip,Q!==!1?1:2)})},Z.isFlipping=function(J){var Q=Z.getByTarget(J);return!!Q&&Q.isActive()},Z.getByTarget=function(J){return(UQ(J)||uZ)._flip},Z.getElementState=function(J,Q){return new GJ(UQ(J),Q)},Z.convertCoordinates=function(J,Q,K){var q=z$(Q,!0,!0).multiply(z$(J));return K?q.apply(K):q},Z.register=function(J){if(S8=typeof document<"u"&&document.body,S8){k$=J,fZ(S8),sJ=k$.utils.toArray,Dq=k$.core.getStyleSaver;var Q=k$.utils.snap(0.1);H8=function(q,U){return Q(parseFloat(q)+U)}}},Z}();I$.version="3.14.2";typeof window<"u"&&window.gsap&&window.gsap.registerPlugin(I$);function WG(Z){if(Z===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function ZL(Z,$){Z.prototype=Object.create($.prototype),Z.prototype.constructor=Z,Z.__proto__=$}/*! * Draggable 3.14.2 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var O1,y1,L9,b9,B8,Tq,j8,fq,GQ,f8,YG,yq,LQ,uq,jQ,z9,BQ,oZ,OG,hq,nZ=0,RG=function(){return typeof window<"u"},DG=function(){return O1||RG()&&(O1=window.gsap)&&O1.registerPlugin&&O1},x8=function($){return typeof $==="function"},XQ=function($){return typeof $==="object"},S9=function($){return typeof $>"u"},lZ=function(){return!1},zQ="transform",_q="transformOrigin",l$=function($){return Math.round($*1e4)/1e4},HQ=Array.isArray,dZ=function($,J){var Q=L9.createElementNS?L9.createElementNS((J||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),$):L9.createElement($);return Q.style?Q:L9.createElement($)},HG=180/Math.PI,jJ=100000000000000000000,KL=new T9,b8=Date.now||function(){return new Date().getTime()},XJ=[],tJ={},qL=0,UL=/^(?:a|input|textarea|button|select)$/i,GG=0,rJ={},G8={},MG=function($,J){var Q={},K;for(K in $)Q[K]=J?$[K]*J:$[K];return Q},WL=function($,J){for(var Q in J)if(!(Q in $))$[Q]=J[Q];return $},jG=function Z($,J){var Q=$.length,K;while(Q--)J?$[Q].style.touchAction=J:$[Q].style.removeProperty("touch-action"),K=$[Q].children,K&&K.length&&Z(K,J)},CG=function(){return XJ.forEach(function($){return $()})},HL=function($){if(XJ.push($),XJ.length===1)O1.ticker.add(CG)},BG=function(){return!XJ.length&&O1.ticker.remove(CG)},XG=function($){var J=XJ.length;while(J--)if(XJ[J]===$)XJ.splice(J,1);O1.to(BG,{overwrite:!0,delay:15,duration:0,onComplete:BG,data:"_draggable"})},GL=function($,J){for(var Q in J)if(!(Q in $))$[Q]=J[Q];return $},L$=function($,J,Q,K){if($.addEventListener){var q=LQ[J];K=K||(YG?{passive:!1}:null),$.addEventListener(q||J,Q,K),q&&J!==q&&$.addEventListener(J,Q,K)}},W$=function($,J,Q,K){if($.removeEventListener){var q=LQ[J];$.removeEventListener(q||J,Q,K),q&&J!==q&&$.removeEventListener(J,Q,K)}},M9=function($){$.preventDefault&&$.preventDefault(),$.preventManipulation&&$.preventManipulation()},jL=function($,J){var Q=$.length;while(Q--)if($[Q].identifier===J)return!0},BL=function Z($){uq=$.touches&&nZ<$.touches.length,W$($.target,"touchend",Z)},zG=function($){uq=$.touches&&nZ<$.touches.length,L$($.target,"touchend",BL)},eJ=function($){return y1.pageYOffset||$.scrollTop||$.documentElement.scrollTop||$.body.scrollTop||0},$7=function($){return y1.pageXOffset||$.scrollLeft||$.documentElement.scrollLeft||$.body.scrollLeft||0},LG=function Z($,J){if(L$($,"scroll",J),!J7($.parentNode))Z($.parentNode,J)},FG=function Z($,J){if(W$($,"scroll",J),!J7($.parentNode))Z($.parentNode,J)},J7=function($){return!$||$===b9||$.nodeType===9||$===L9.body||$===y1||!$.nodeType||!$.parentNode},NG=function($,J){var Q=J==="x"?"Width":"Height",K="scroll"+Q,q="client"+Q;return Math.max(0,J7($)?Math.max(b9[K],B8[K])-(y1["inner"+Q]||b9[q]||B8[q]):$[K]-$[q])},Eq=function Z($,J){var Q=NG($,"x"),K=NG($,"y");if(J7($))$=G8;else Z($.parentNode,J);if($._gsMaxScrollX=Q,$._gsMaxScrollY=K,!J)$._gsScrollX=$.scrollLeft||0,$._gsScrollY=$.scrollTop||0},Sq=function($,J,Q){var K=$.style;if(!K)return;if(S9(K[J]))J=GQ(J,$)||J;if(Q==null)K.removeProperty&&K.removeProperty(J.replace(/([A-Z])/g,"-$1").toLowerCase());else K[J]=Q},FQ=function($){return y1.getComputedStyle($ instanceof Element?$:$.host||($.parentNode||{}).host||$)},BJ={},aJ=function($){if($===y1)return BJ.left=BJ.top=0,BJ.width=BJ.right=b9.clientWidth||$.innerWidth||B8.clientWidth||0,BJ.height=BJ.bottom=($.innerHeight||0)-202||b<-2)&&!h){if(X=$.scrollLeft,O1.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-X),J.onKill)J.onKill();return}if(T=-T,T<0)W=T-0.5|0,T=0;else if(T>j)W=T-j|0,T=j;else W=0;if(W||S){if(!this._skip)K[zQ]=k+-W+"px,"+-U+x;if(W+F>=0)K.paddingRight=W+F+"px"}$.scrollLeft=T|0,X=$.scrollLeft},this.top=function(T,h){if(!arguments.length)return-($.scrollTop+U);var b=$.scrollTop-G,S=U;if((b>2||b<-2)&&!h){if(G=$.scrollTop,O1.killTweensOf(this,{top:1,scrollTop:1}),this.top(-G),J.onKill)J.onKill();return}if(T=-T,T<0)U=T-0.5|0,T=0;else if(T>R)U=T-R|0,T=R;else U=0;if(U||S){if(!this._skip)K[zQ]=k+-W+"px,"+-U+x}$.scrollTop=T|0,G=$.scrollTop},this.maxScrollTop=function(){return R},this.maxScrollLeft=function(){return j},this.disable=function(){q=Q.firstChild;while(q)E=q.nextSibling,$.appendChild(q),q=E;if($===Q.parentNode)$.removeChild(Q)},this.enable=function(){if(q=$.firstChild,q===Q)return;while(q)E=q.nextSibling,Q.appendChild(q),q=E;$.appendChild(Q),this.calibrate()},this.calibrate=function(T){var h=$.clientWidth===O,b,S,u;if(G=$.scrollTop,X=$.scrollLeft,h&&$.clientHeight===C&&Q.offsetHeight===A&&L===$.scrollWidth&&N===$.scrollHeight&&!T)return;if(U||W)S=this.left(),u=this.top(),this.left(-$.scrollLeft),this.top(-$.scrollTop);if(b=FQ($),!h||T){if(K.display="block",K.width="auto",K.paddingRight="0px",F=Math.max(0,$.scrollWidth-$.clientWidth),F)F+=parseFloat(b.paddingLeft)+(vq?parseFloat(b.paddingRight):0)}if(K.display="inline-block",K.position="relative",K.overflow="visible",K.verticalAlign="top",K.boxSizing="content-box",K.width="100%",K.paddingRight=F+"px",vq)K.paddingBottom=b.paddingBottom;if(O=$.clientWidth,C=$.clientHeight,L=$.scrollWidth,N=$.scrollHeight,j=$.scrollWidth-O,R=$.scrollHeight-C,A=Q.offsetHeight,K.display="block",S||u)this.left(S),this.top(u)},this.content=Q,this.element=$,this._skip=!1,this.enable()},xq=function($){if(RG()&&document.body){var J=window&&window.navigator;y1=window,L9=document,b9=L9.documentElement,B8=L9.body,Tq=dZ("div"),oZ=!!window.PointerEvent,j8=dZ("div"),j8.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",BQ=j8.style.cursor==="grab"?"grab":"move",jQ=J&&J.userAgent.toLowerCase().indexOf("android")!==-1,yq="ontouchstart"in b9&&"orientation"in y1||J&&(J.MaxTouchPoints>0||J.msMaxTouchPoints>0),vq=function(){var Q=dZ("div"),K=dZ("div"),q=K.style,U=B8,W;return q.display="inline-block",q.position="relative",Q.style.cssText="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",Q.appendChild(K),U.appendChild(Q),W=K.offsetHeight+18>Q.scrollHeight,U.removeChild(Q),W}(),LQ=function(Q){var K=Q.split(","),q=("onpointerdown"in Tq?"pointerdown,pointermove,pointerup,pointercancel":("onmspointerdown"in Tq)?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":Q).split(","),U={},W=4;while(--W>-1)U[K[W]]=q[W],U[q[W]]=K[W];try{b9.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){YG=1}}))}catch(G){}return U}("touchstart,touchmove,touchend,touchcancel"),L$(L9,"touchcancel",lZ),L$(y1,"touchmove",lZ),B8&&B8.addEventListener("touchstart",lZ),L$(L9,"contextmenu",function(){for(var Q in tJ)if(tJ[Q].isPressed)tJ[Q].endDrag()}),O1=fq=DG()}if(O1)z9=O1.plugins.inertia,OG=O1.core.context||function(){},GQ=O1.utils.checkPrefix,zQ=GQ(zQ),_q=GQ(_q),f8=O1.utils.toArray,hq=O1.core.getStyleSaver,AG=!!GQ("perspective");else if($)console.warn("Please gsap.registerPlugin(Draggable)")},NL=function(){function Z(J){this._listeners={},this.target=J||this}var $=Z.prototype;return $.addEventListener=function(Q,K){var q=this._listeners[Q]||(this._listeners[Q]=[]);if(!~q.indexOf(K))q.push(K)},$.removeEventListener=function(Q,K){var q=this._listeners[Q],U=q&&q.indexOf(K);U>=0&&q.splice(U,1)},$.dispatchEvent=function(Q){var K=this,q;return(this._listeners[Q]||[]).forEach(function(U){return U.call(K,{type:Q,target:K.target})===!1&&(q=!1)}),q},Z}(),p9=function(Z){ZL($,Z);function $(J,Q){var K=Z.call(this)||this;if(fq||xq(1),J=f8(J)[0],K.styles=hq&&hq(J,"transform,left,top"),!z9)z9=O1.plugins.inertia;K.vars=Q=MG(Q||{}),K.target=J,K.x=K.y=K.rotation=0,K.dragResistance=parseFloat(Q.dragResistance)||0,K.edgeResistance=isNaN(Q.edgeResistance)?1:parseFloat(Q.edgeResistance)||0,K.lockAxis=Q.lockAxis,K.autoScroll=Q.autoScroll||0,K.lockedAxis=null,K.allowEventDefault=!!Q.allowEventDefault,O1.getProperty(J,"x");var q=(Q.type||"x,y").toLowerCase(),U=~q.indexOf("x")||~q.indexOf("y"),W=q.indexOf("rotation")!==-1,G=W?"rotation":U?"x":"left",X=U?"y":"top",L=!!(~q.indexOf("x")||~q.indexOf("left")||q==="scroll"),N=!!(~q.indexOf("y")||~q.indexOf("top")||q==="scroll"),F=Q.minimumMovement||2,j=WG(K),R=f8(Q.trigger||Q.handle||J),O={},C=0,A=!1,E=Q.autoScrollMarginTop||40,k=Q.autoScrollMarginRight||40,x=Q.autoScrollMarginBottom||40,T=Q.autoScrollMarginLeft||40,h=Q.clickableTest||zL,b=0,S=J._gsap||O1.core.getCache(J),u=LL(J),f=function(w,X0){return parseFloat(S.get(J,w,X0))},m=J.ownerDocument||L9,_,n,q0,Q0,z0,J0,o,t,v,N0,W0,C0,h0,p,a,G0,H0,M0,B0,R0,S0,V0,P0,A0,I0,c,f0,d0,n0,u0,T0,t0,W1,M=function(w){return M9(w),w.stopImmediatePropagation&&w.stopImmediatePropagation(),!1},z=function v0(w){if(j.autoScroll&&j.isDragging&&(A||H0)){var X0=J,d=j.autoScroll*15,$0,L0,Z0,E0,F0,U0,s0,c0;A=!1,G8.scrollTop=y1.pageYOffset!=null?y1.pageYOffset:m.documentElement.scrollTop!=null?m.documentElement.scrollTop:m.body.scrollTop,G8.scrollLeft=y1.pageXOffset!=null?y1.pageXOffset:m.documentElement.scrollLeft!=null?m.documentElement.scrollLeft:m.body.scrollLeft,E0=j.pointerX-G8.scrollLeft,F0=j.pointerY-G8.scrollTop;while(X0&&!L0){if(L0=J7(X0.parentNode),$0=L0?G8:X0.parentNode,Z0=L0?{bottom:Math.max(b9.clientHeight,y1.innerHeight||0),right:Math.max(b9.clientWidth,y1.innerWidth||0),left:0,top:0}:$0.getBoundingClientRect(),U0=s0=0,N){if(c0=$0._gsMaxScrollY-$0.scrollTop,c0<0)s0=c0;else if(F0>Z0.bottom-x&&c0)A=!0,s0=Math.min(c0,d*(1-Math.max(0,Z0.bottom-F0)/x)|0);else if(F0Z0.right-k&&c0)A=!0,U0=Math.min(c0,d*(1-Math.max(0,Z0.right-E0)/k)|0);else if(E0d?d+(L0-d)*Z0:L0-1){if(U0=w[Z0],s0=U0-L0,s0<0)s0=-s0;if(s0=X0&&U0<=d)E0=Z0,F0=s0}return w[E0]};return isNaN(w)?function(L0){return L0}:function(){return w*$0}},g=function(w,X0,d,$0,L0,Z0,E0){if(Z0=Z0&&Z0d?d+(s0-d)*U0:s0L0?L0+(c0-L0)*U0:c0<$0?$0+(c0-$0)*U0:c0,J1=w.call(j,F0),J1!==F0)F0.x=J1.x,F0.y=J1.y;if(E0!==1)F0.x*=E0,F0.y*=E0;if(Z0Z0)F0.x=s0,F0.y=c0}return F0};if(HQ(w))return function(F0){var U0=w.length,s0=0,c0=jJ,J1,Z1,V1,q1;while(--U0>-1)if(V1=w[U0],J1=V1.x-F0.x,Z1=V1.y-F0.y,q1=J1*J1+Z1*Z1,q1N0)j.minX=N0,j.maxX=N0=W0,W0=j.minX;if(h0>C0)j.minY=C0,j.maxY=C0=h0,h0=j.minY;if(W)j.minRotation=W0,j.maxRotation=N0;o=!0}if(Q.liveSnap)if(d=Q.liveSnap===!0?Q.snap||{}:Q.liveSnap,$0=HQ(d)||x8(d),W)B0=I($0?d:d.rotation,W0,N0,1),R0=null;else if(d.points)S0=g($0?d:d.points,W0,N0,h0,C0,d.radius,n?-1:1);else{if(L)B0=I($0?d:d.x||d.left||d.scrollLeft,W0,N0,n?-1:1);if(N)R0=I($0?d:d.y||d.top||d.scrollTop,h0,C0,n?-1:1)}},j0=function(){j.isThrowing=!1,$$(j,"throwcomplete","onThrowComplete")},b0=function(){j.isThrowing=!1},o0=function(w,X0){var d,$0,L0,Z0;if(w&&z9){if(w===!0)if(d=Q.snap||Q.liveSnap||{},$0=HQ(d)||x8(d),w={resistance:(Q.throwResistance||Q.resistance||1000)/(W?10:1)},W)w.rotation=bq(j,$0?d:d.rotation,N0,W0,1,X0);else{if(L)w[G]=bq(j,$0?d:d.points||d.x||d.left,N0,W0,n?-1:1,X0||j.lockedAxis==="x");if(N)w[X]=bq(j,$0?d:d.points||d.y||d.top,C0,h0,n?-1:1,X0||j.lockedAxis==="y");if(d.points||HQ(d)&&XQ(d[0]))w.linkedProps=G+","+X,w.radius=d.radius}if(j.isThrowing=!0,Z0=!isNaN(Q.overshootTolerance)?Q.overshootTolerance:Q.edgeResistance===1?0:1-j.edgeResistance+0.2,!w.duration)w.duration={max:Math.max(Q.minDuration||0,"maxDuration"in Q?Q.maxDuration:2),min:!isNaN(Q.minDuration)?Q.minDuration:Z0===0||XQ(w)&&w.resistance>1000?0:0.5,overshoot:Z0};if(j.tween=L0=O1.to(n||J,{inertia:w,data:"_draggable",inherit:!1,onComplete:j0,onInterrupt:b0,onUpdate:Q.fastMode?$$:V,onUpdateParams:Q.fastMode?[j,"onthrowupdate","onThrowUpdate"]:d&&d.radius?[!1,!0]:[]}),!Q.fastMode){if(n)n._skip=!0;if(L0.render(1e9,!0,!0),V(!0,!0),j.endX=j.x,j.endY=j.y,W)j.endRotation=j.x;if(L0.play(0),V(!0,!0),n)n._skip=!1}}else if(o)j.applyBounds()},y0=function(w){var X0=A0,d;if(A0=z$(J.parentNode,!0),w&&j.isPressed&&!A0.equals(X0||new T9))d=X0.inverse().apply({x:q0,y:Q0}),A0.apply(d,d),q0=d.x,Q0=d.y;if(A0.equals(KL))A0=null},l0=function(){var w=1-j.edgeResistance,X0=u?$7(m):0,d=u?eJ(m):0,$0,L0,Z0;if(U)S.x=f(G,"px")+"px",S.y=f(X,"px")+"px",S.renderTransform();if(y0(!1),C9.x=j.pointerX-X0,C9.y=j.pointerY-d,A0&&A0.apply(C9,C9),q0=C9.x,Q0=C9.y,H0)h1(j.pointerX,j.pointerY),z(!0);if(t0=z$(J),n)s(),J0=n.top(),z0=n.left();else{if($1())V(!0,!0),s();else j.applyBounds();if(W)$0=J.ownerSVGElement?[S.xOrigin-J.getBBox().x,S.yOrigin-J.getBBox().y]:(FQ(J)[_q]||"0 0").split(" "),G0=j.rotationOrigin=z$(J).apply({x:parseFloat($0[0])||0,y:parseFloat($0[1])||0}),V(!0,!0),L0=j.pointerX-G0.x-X0,Z0=G0.y-j.pointerY+d,z0=j.x,J0=j.y=Math.atan2(Z0,L0)*HG;else J0=f(X,"px"),z0=f(G,"px")}if(o&&w){if(z0>N0)z0=N0+(z0-N0)/w;else if(z0C0)J0=C0+(J0-C0)/w;else if(J02)?!1:L?"y":"x",T0=!c&&!j.allowEventDefault,T0)M9(w),L$(y1,"touchforcechange",M9);if(w.changedTouches)w=p=w.changedTouches[0],a=w.identifier;else if(w.pointerId)a=w.pointerId;else p=a=null;if(nZ++,HL(z),Q0=j.pointerY=w.pageY,q0=j.pointerX=w.pageX,$$(j,"pressInit","onPressInit"),c||j.autoScroll)Eq(J.parentNode);if(J.parentNode&&j.autoScroll&&!n&&!W&&J.parentNode._gsMaxScrollX&&!j8.parentNode&&!J.getBBox)j8.style.width=J.parentNode.scrollWidth+"px",J.parentNode.appendChild(j8);if(l0(),j.tween&&j.tween.kill(),j.isThrowing=!1,O1.killTweensOf(n||J,O,!0),n&&O1.killTweensOf(J,{scrollTo:1},!0),j.tween=j.lockedAxis=null,Q.zIndexBoost||!W&&!n&&Q.zIndexBoost!==!1)J.style.zIndex=$.zIndex++;if(j.isPressed=!0,t=!!(Q.onDrag||j._listeners.drag),v=!!(Q.onMove||j._listeners.move),Q.cursor!==!1||Q.activeCursor){d=R.length;while(--d>-1)O1.set(R[d],{cursor:Q.activeCursor||Q.cursor||(BQ==="grab"?"grabbing":BQ)})}$$(j,"press","onPress"),z9&&z9.track(n||J,U?"x,y":W?"rotation":"top,left")},i0=function(w){var X0=w,d,$0,L0,Z0,E0,F0;if(!_||uq||!j.isPressed||!w){T0&&w&&_&&M9(w);return}if(j.pointerEvent=w,d=w.changedTouches,d){if(w=d[0],w!==p&&w.identifier!==a){Z0=d.length;while(--Z0>-1&&(w=d[Z0]).identifier!==a&&w.target!==J);if(Z0<0)return}}else if(w.pointerId&&a&&w.pointerId!==a)return;if(P0&&c&&!f0){if(C9.x=w.pageX-(u?$7(m):0),C9.y=w.pageY-(u?eJ(m):0),A0&&A0.apply(C9,C9),$0=C9.x,L0=C9.y,E0=Math.abs($0-q0),F0=Math.abs(L0-Q0),E0!==F0&&(E0>F||F0>F)||jQ&&c===f0){if(f0=E0>F0&&L?"x":"y",c&&f0!==c)L$(y1,"touchforcechange",M9);if(j.vars.lockAxisOnTouchScroll!==!1&&L&&N)j.lockedAxis=f0==="x"?"y":"x",x8(j.vars.onLockAxis)&&j.vars.onLockAxis.call(j,X0);if(jQ&&c===f0){j1(X0);return}}}if(!j.allowEventDefault&&(!c||f0&&c!==f0)&&X0.cancelable!==!1)M9(X0),T0=!0;else if(T0)T0=!1;if(j.autoScroll)A=!0;h1(w.pageX,w.pageY,v)},h1=function(w,X0,d){var $0=1-j.dragResistance,L0=1-j.edgeResistance,Z0=j.pointerX,E0=j.pointerY,F0=J0,U0=j.x,s0=j.y,c0=j.endX,J1=j.endY,Z1=j.endRotation,V1=H0,q1,K1,M1,a0,n1,b1;if(j.pointerX=w,j.pointerY=X0,u)w-=$7(m),X0-=eJ(m);if(W){if(a0=l$(Math.atan2(G0.y-X0,w-G0.x)*HG),n1=j.y-a0,n1>180)J0-=360,j.y=a0;else if(n1<-180)J0+=360,j.y=a0;if(A0)b1=w*A0.a+X0*A0.c+A0.e,X0=w*A0.b+X0*A0.d+A0.f,w=b1;if(j.x!==z0||Math.max(Math.abs(q0-w),Math.abs(Q0-X0))>F)j.y=a0,M1=l$(z0+(J0-a0)*$0);else M1=z0}else{if(A0)b1=w*A0.a+X0*A0.c+A0.e,X0=w*A0.b+X0*A0.d+A0.f,w=b1;if(K1=X0-Q0,q1=w-q0,K1-F)K1=0;if(q1-F)q1=0;if((j.lockAxis||j.lockedAxis)&&(q1||K1)){if(b1=j.lockedAxis,!b1){if(j.lockedAxis=b1=L&&Math.abs(q1)>Math.abs(K1)?"y":N?"x":null,b1&&x8(j.vars.onLockAxis))j.vars.onLockAxis.call(j,j.pointerEvent)}if(b1==="y")K1=0;else if(b1==="x")q1=0}M1=l$(z0+q1*$0),a0=l$(J0+K1*$0)}if((B0||R0||S0)&&(j.x!==M1||j.y!==a0&&!W)){if(S0)rJ.x=M1,rJ.y=a0,b1=S0(rJ),M1=l$(b1.x),a0=l$(b1.y);if(B0)M1=l$(B0(M1));if(R0)a0=l$(R0(a0))}if(o){if(M1>N0)M1=N0+Math.round((M1-N0)*L0);else if(M1C0)a0=Math.round(C0+(a0-C0)*L0);else if(a02),Z0=O1.delayedCall(0.001,T1),E0,F0,U0,s0,c0;if(P0)W$(P0,"touchend",v0),W$(P0,"touchmove",i0),W$(P0,"touchcancel",v0),W$(m,"touchstart",zG);else W$(m,"mousemove",i0);if(W$(y1,"touchforcechange",M9),!oZ||!P0)W$(m,"mouseup",v0),w&&w.target&&W$(w.target,"mouseup",v0);if(H0=!1,$0)C=GG=b8(),j.isDragging=!1;if(XG(z),V0&&!L0){if(w)W$(w.target,"change",v0),j.pointerEvent=d;pZ(R,!1),$$(j,"release","onRelease"),$$(j,"click","onClick"),V0=!1;return}F0=R.length;while(--F0>-1)Sq(R[F0],"cursor",Q.cursor||(Q.cursor!==!1?BQ:null));if(nZ--,w){if(E0=w.changedTouches,E0){if(w=E0[0],w!==p&&w.identifier!==a){F0=E0.length;while(--F0>-1&&(w=E0[F0]).identifier!==a&&w.target!==J);if(F0<0&&!X0)return}}j.pointerEvent=d,j.pointerX=w.pageX,j.pointerY=w.pageY}if(L0&&d)M9(d),T0=!0,$$(j,"release","onRelease");else if(d&&!$0){if(T0=!1,I0&&(Q.snap||Q.bounds))o0(Q.inertia||Q.throwProps);if($$(j,"release","onRelease"),(!jQ||d.type!=="touchmove")&&d.type.indexOf("cancel")===-1){if($$(j,"click","onClick"),b8()-b<300)$$(j,"doubleclick","onDoubleClick");if(s0=d.target||J,b=b8(),c0=function(){if(b!==n0&&j.enabled()&&!j.isPressed&&!d.defaultPrevented){if(s0.click)s0.click();else if(m.createEvent)U0=m.createEvent("MouseEvents"),U0.initMouseEvent("click",!0,!0,y1,1,j.pointerEvent.screenX,j.pointerEvent.screenY,j.pointerX,j.pointerY,!1,!1,!1,!1,0,null),s0.dispatchEvent(U0)}},!jQ&&!d.defaultPrevented)O1.delayedCall(0.05,c0)}}else{if(o0(Q.inertia||Q.throwProps),!j.allowEventDefault&&d&&(Q.dragClickables!==!1||!h.call(j,d.target))&&$0&&(!c||f0&&c===f0)&&d.cancelable!==!1)T0=!0,M9(d);else T0=!1;$$(j,"release","onRelease")}return $1()&&Z0.duration(j.tween.duration()),$0&&$$(j,"dragend","onDragEnd"),!0},A1=function(w){if(w&&j.isDragging&&!n){var X0=w.target||J.parentNode,d=X0.scrollLeft-X0._gsScrollX,$0=X0.scrollTop-X0._gsScrollY;if(d||$0){if(A0)q0-=d*A0.a+$0*A0.c,Q0-=$0*A0.d+d*A0.b;else q0-=d,Q0-=$0;X0._gsScrollX+=d,X0._gsScrollY+=$0,h1(j.pointerX,j.pointerY)}}},S1=function(w){var X0=b8(),d=X0-b<100,$0=X0-C<50,L0=d&&n0===b,Z0=j.pointerEvent&&j.pointerEvent.defaultPrevented,E0=d&&u0===b,F0=w.isTrusted||w.isTrusted==null&&d&&L0;if((L0||$0&&j.vars.suppressClickOnDrag!==!1)&&w.stopImmediatePropagation)w.stopImmediatePropagation();if(d&&!(j.pointerEvent&&j.pointerEvent.defaultPrevented)&&(!L0||F0&&!E0)){if(F0&&L0)u0=b;n0=b;return}if(j.isPressed||$0||d){if(!F0||!w.detail||!d||Z0)M9(w)}if(!d&&!$0&&!W1)w&&w.target&&(j.pointerEvent=w),$$(j,"click","onClick")},H$=function(w){return A0?{x:w.x*A0.a+w.y*A0.c+A0.e,y:w.x*A0.b+w.y*A0.d+A0.f}:{x:w.x,y:w.y}};if(M0=$.get(J),M0&&M0.kill(),K.startDrag=function(v0,w){var X0,d,$0,L0;if(Q1(v0||j.pointerEvent,!0),w&&!j.hitTest(v0||j.pointerEvent))X0=aJ(v0||j.pointerEvent),d=aJ(J),$0=H$({x:X0.left+X0.width/2,y:X0.top+X0.height/2}),L0=H$({x:d.left+d.width/2,y:d.top+d.height/2}),q0-=$0.x-L0.x,Q0-=$0.y-L0.y;if(!j.isDragging)j.isDragging=W1=!0,$$(j,"dragstart","onDragStart")},K.drag=i0,K.endDrag=function(v0){return j1(v0||j.pointerEvent,!0)},K.timeSinceDrag=function(){return j.isDragging?0:(b8()-C)/1000},K.timeSinceClick=function(){return(b8()-b)/1000},K.hitTest=function(v0,w){return $.hitTest(j.target,v0,w)},K.getDirection=function(v0,w){var X0=v0==="velocity"&&z9?v0:XQ(v0)&&!W?"element":"start",d,$0,L0,Z0,E0,F0;if(X0==="element")E0=aJ(j.target),F0=aJ(v0);if(d=X0==="start"?j.x-z0:X0==="velocity"?z9.getVelocity(J,G):E0.left+E0.width/2-(F0.left+F0.width/2),W)return d<0?"counter-clockwise":"clockwise";else if(w=w||2,$0=X0==="start"?j.y-J0:X0==="velocity"?z9.getVelocity(J,X):E0.top+E0.height/2-(F0.top+F0.height/2),L0=Math.abs(d/$0),Z0=L0<1/w?"":d<0?"left":"right",L0N0)X0=N0;else if(X0C0)d=C0;else if(dZ0._gsMaxScrollY)Z0.scrollTop=Z0._gsMaxScrollY;if(L&&Z0.scrollLeft>Z0._gsMaxScrollX)Z0.scrollLeft=Z0._gsMaxScrollX;L0=Z0}}}if(j.isThrowing&&($0||j.endX>N0||j.endXC0||j.endY0.01||N&&Math.abs(E0-j.y)>0.01&&!W))l0();if(j.autoScroll)Eq(J.parentNode,j.isDragging),A=j.isDragging,z(!0),FG(J,A1),LG(J,A1);return j},K.enable=function(v0){var w={lazy:!0},X0,d,$0;if(Q.cursor!==!1)w.cursor=Q.cursor||BQ;if(O1.utils.checkPrefix("touchCallout"))w.touchCallout="none";if(v0!=="soft"){jG(R,L===N?"none":Q.allowNativeTouchScrolling&&J.scrollHeight===J.clientHeight===(J.scrollWidth===J.clientHeight)||Q.allowEventDefault?"manipulation":L?"pan-y":"pan-x"),d=R.length;while(--d>-1){if($0=R[d],oZ||L$($0,"mousedown",Q1),L$($0,"touchstart",Q1),L$($0,"click",S1,!0),O1.set($0,w),$0.getBBox&&$0.ownerSVGElement&&L!==N)O1.set($0.ownerSVGElement,{touchAction:Q.allowNativeTouchScrolling||Q.allowEventDefault?"manipulation":L?"pan-y":"pan-x"});Q.allowContextMenu||L$($0,"contextmenu",M)}pZ(R,!1)}if(LG(J,A1),_=!0,z9&&v0!=="soft")z9.track(n||J,U?"x,y":W?"rotation":"top,left");if(J._gsDragID=X0=J._gsDragID||"d"+qL++,tJ[X0]=j,n)n.enable(),n.element._gsDragID=X0;return(Q.bounds||W)&&l0(),Q.bounds&&j.applyBounds(),j},K.disable=function(v0){var w=j.isDragging,X0=R.length,d;while(--X0>-1)Sq(R[X0],"cursor",null);if(v0!=="soft"){jG(R,null),X0=R.length;while(--X0>-1)d=R[X0],Sq(d,"touchCallout",null),W$(d,"mousedown",Q1),W$(d,"touchstart",Q1),W$(d,"click",S1,!0),W$(d,"contextmenu",M);if(pZ(R,!0),P0)W$(P0,"touchcancel",j1),W$(P0,"touchend",j1),W$(P0,"touchmove",i0);W$(m,"mouseup",j1),W$(m,"mousemove",i0)}if(FG(J,A1),_=!1,z9&&v0!=="soft")z9.untrack(n||J,U?"x,y":W?"rotation":"top,left"),j.tween&&j.tween.kill();return n&&n.disable(),XG(z),j.isDragging=j.isPressed=V0=!1,w&&$$(j,"dragend","onDragEnd"),j},K.enabled=function(v0,w){return arguments.length?v0?j.enable(w):j.disable(w):_},K.kill=function(){return j.isThrowing=!1,j.tween&&j.tween.kill(),j.disable(),O1.set(R,{clearProps:"userSelect"}),delete tJ[J._gsDragID],j},K.revert=function(){this.kill(),this.styles&&this.styles.revert()},~q.indexOf("scroll"))n=K.scrollProxy=new FL(J,WL({onKill:function(){j.isPressed&&j1(null)}},Q)),J.style.overflowY=N&&!yq?"auto":"hidden",J.style.overflowX=L&&!yq?"auto":"hidden",J=n.content;if(W)O.rotation=1;else{if(L)O[G]=1;if(N)O[X]=1}return S.force3D="force3D"in Q?Q.force3D:!0,OG(WG(K)),K.enable(),K}return $.register=function(Q){O1=Q,xq()},$.create=function(Q,K){return fq||xq(!0),f8(Q).map(function(q){return new $(q,K)})},$.get=function(Q){return tJ[(f8(Q)[0]||{})._gsDragID]},$.timeSinceDrag=function(){return(b8()-GG)/1000},$.hitTest=function(Q,K,q){if(Q===K)return!1;var U=aJ(Q),W=aJ(K),G=U.top,X=U.left,L=U.right,N=U.bottom,F=U.width,j=U.height,R=W.left>L||W.rightN||W.bottom=F*j*q||C>=W.width*W.height*q;return O.width>q&&O.height>q},$}(NL);GL(p9.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1});p9.zIndex=1000;p9.version="3.14.2";DG()&&O1.registerPlugin(p9);O0.registerPlugin(I$,r0,p9);var VL=1.5333333333333334,YL=1.625,OL=220,RL=260,DL="(max-width: 992px)",ML=150,CL=6;function Z7(){return window.matchMedia(DL).matches}function PG(){return Z7()?YL:VL}function TG(){return Z7()?RL:OL}function AL(){return TG()/PG()}function kL(){return Z7()?4:8}function iZ(Z,$,J,Q,K){let q=Z.getAttribute($)??Z.getAttribute(`data-${$}`)??Z.dataset?.[J];switch(Q){case"boolean":{if(!(Z.hasAttribute($)||Z.hasAttribute(`data-${$}`)||Z.dataset?.[J]!==void 0))return K;let W=q??"";if(W==="false"||W==="0")return!1;return!0}case"number":{let U=q==null?NaN:parseFloat(q);return Number.isFinite(U)?U:K}case"string":return q??K;case"scrub":{if(!(Z.hasAttribute($)||Z.hasAttribute(`data-${$}`)||Z.dataset?.[J]!==void 0))return K;let W=(q??"").toString().trim().toLowerCase();if(W===""||W==="true")return!0;if(W==="false")return!1;let G=parseFloat(W);return Number.isFinite(G)?G:K}default:return K}}function IL(Z,$,J,Q){return iZ(Z,$,J,"boolean",Q)}function PL(Z,$,J,Q=0){return iZ(Z,$,J,"number",Q)}function TL(Z,$,J,Q){return iZ(Z,$,J,"string",Q)}function EL(Z,$,J,Q){return iZ(Z,$,J,"scrub",Q)}function EG(Z){let $=(Z??"").toString().trim();if(!$.endsWith("%"))return null;let J=parseFloat($);return Number.isFinite(J)?J:null}function Q7(Z,$){let J=(Z||"").toString().trim();if(!J)return 0;if(J.endsWith("%"))return parseFloat(J)/100*$;let Q=parseFloat(J);return Number.isFinite(Q)?Q:0}function kG(Z,$){let J=(Z??"").toString().trim();if(!J)return J;let Q=EG(J);if(Q==null)return J;return`${Q+$}%`}function SL(Z,$){let J=(Z??"").toString().trim();if(!J)return J;let Q=EG(J);if(Q==null)return J;return`${Q-$}%`}function bL(Z){let $=window.getComputedStyle(Z);return{top:($.getPropertyValue("--clip-top")||"0%").trim(),right:($.getPropertyValue("--clip-right")||"0%").trim(),bottom:($.getPropertyValue("--clip-bottom")||"0%").trim(),left:($.getPropertyValue("--clip-left")||"0%").trim()}}function wq(Z,$){(Array.isArray(Z)?Z:[Z]).forEach((Q)=>{if(!Q)return;O0.set(Q,{"--clip-top":$.top,"--clip-right":$.right,"--clip-bottom":$.bottom,"--clip-left":$.left})})}function IG(Z,$){let J=new Map($.map((Q)=>[Q.getAttribute("data-cover-id"),Q]).filter(([Q])=>Q));return Z.map((Q,K)=>{let q=Q.getAttribute("data-cover-id"),U=q&&J.get(q)||$[K]||null;return U?{box:Q,marker:U}:null}).filter(Boolean)}function SG(Z){let $=(p,a)=>TL(Z,p,p.replace(/-([a-z])/g,(G0,H0)=>H0.toUpperCase()),a),J=(p,a)=>PL(Z,p,p.replace(/-([a-z])/g,(G0,H0)=>H0.toUpperCase()),a),Q=(p,a)=>IL(Z,p,p.replace(/-([a-z])/g,(G0,H0)=>H0.toUpperCase()),a),K=(p,a)=>EL(Z,p,p.replace(/-([a-z])/g,(G0,H0)=>H0.toUpperCase()),a),q={debug:Q("cover-debug",!1),trigger:$("cover-trigger",".cover.initial"),endTrigger:$("cover-end-trigger","#uploadSection"),box:$("cover-box",".box"),secondMarker:$("cover-marker-second",".second .marker"),thirdMarker:$("cover-marker-third",".third .marker"),pinTrigger:$("cover-pin-trigger",".is-upload"),mediaBox:$("cover-media-box",".mediabox-w"),mediaLabel:$("cover-media-label",".mediabox_label-w"),mediaLabelInner:$("cover-media-label-inner",".mediabox_label"),metadataWrapper:$("cover-metadata-wrapper",".metadata-w"),scrub:K("cover-scrub",2),clipToTop:$("cover-clip-to-top","0%"),clipToRight:$("cover-clip-to-right","0%"),clipToBottom:$("cover-clip-to-bottom","0%"),clipToLeft:$("cover-clip-to-left","0%"),clipToRadius:$("cover-clip-to-radius","5px"),clipDraggable:Q("cover-clip-draggable",!0),stackStepPct:J("cover-stack-step-pct",4),hideExtraBoxesUntilSecond:Q("cover-hide-extra-boxes-until-second",!0),visibleBoxesBeforeSecond:J("cover-visible-boxes-before-second",3),enableThird:Q("cover-enable-third",!0),mediaLabelLiftYPct:J("cover-media-label-lift-y-pct",100),mediaLabelLiftDuration:J("cover-media-label-lift-duration",2),mediaLabelLiftDelay:J("cover-media-label-lift-delay",1),flipDuration:J("cover-flip-duration",8),flipEase:$("cover-flip-ease","back.out(1.2)"),flipDurationSecond:J("cover-flip-duration-second",4),flipEaseSecond:$("cover-flip-ease-second","none"),flipDurationThird:J("cover-flip-duration-third",4),flipEaseThird:$("cover-flip-ease-third","back.out(1.2)")},U={boxes:null,primaryBox:null,triggerEl:null,endTriggerEl:null,secondMarkers:null,thirdMarkers:null,mediaBox:null,mediaBoxTitle:null,mediaLabels:null,mediaBreadcrumb:null,metadataWrapper:null,metadataLoading:null,nav:null},W=null,G=null,X=null,L=null,N=!1,F=!1,j=window.scrollY||0,R=null,O=null,C=null,A=null,E=null,k=null,x=null,T=!1,h=null,b=new AbortController;if(q.debug)console.log("Cover: initialized with config",{flipDurationSecond:q.flipDurationSecond,flipDurationThird:q.flipDurationThird,timelineStart:q.timelineStart,timelineEnd:q.timelineEnd,scrub:q.scrub,pinTrigger:q.pinTrigger,uploadPinEnd:q.uploadPinEnd,coverPinEnd:q.coverPinEnd});function S(){let p=kL(),a=Array.from(Z.querySelectorAll(q.box));U.boxes=a.slice(0,p),U.primaryBox=U.boxes[0]||null,U.triggerEl=Z.querySelector(q.trigger),U.endTriggerEl=document.querySelector(q.endTrigger);let G0=Array.from(document.querySelectorAll(q.secondMarker)),H0=q.enableThird?Array.from(document.querySelectorAll(q.thirdMarker)):[];U.secondMarkers=G0.slice(0,p),U.thirdMarkers=H0.slice(0,p),U.mediaBox=document.querySelector(q.mediaBox),U.mediaBoxTitle=document.querySelector(".mediabox_title"),U.mediaLabels=Array.from(document.querySelectorAll(q.mediaLabel)),U.mediaBreadcrumb=document.querySelector(".mediabox_breadcrumb"),U.metadataWrapper=document.querySelector(q.metadataWrapper),U.metadataLoading=document.querySelector(".metadata_loading"),U.nav=document.querySelector(".nav")}function u(p){let a=p.length||1;p.forEach((G0,H0)=>{O0.set(G0,{zIndex:a-H0})})}function f(p){let a=Math.max(0,Math.floor(q.visibleBoxesBeforeSecond||0));return p.slice(a)}function m(p){if(!q.hideExtraBoxesUntilSecond)return;let a=f(p);if(!a.length)return;O0.set(a,{autoAlpha:0,pointerEvents:"none"})}function _(p,a){if(!p||!p.isConnected)return;let G0=p.getBoundingClientRect(),H0=G0.width,M0=G0.height;if(!H0||!M0)return;let B0=window.getComputedStyle(p),R0=Q7(B0.getPropertyValue("--clip-top"),M0),S0=Q7(B0.getPropertyValue("--clip-right"),H0),V0=Q7(B0.getPropertyValue("--clip-bottom"),M0),P0=Q7(B0.getPropertyValue("--clip-left"),H0),A0=Math.max(0,H0-P0-S0),I0=Math.max(0,M0-R0-V0);if(!A0||!I0)return;let c=P0+A0/2,f0=R0+I0/2,d0=Math.max(0,Math.min(c,H0-c)),n0=Math.max(0,Math.min(f0,M0-f0)),u0=d0>0?d0*2:H0,T0=n0>0?n0*2:M0,t0=PG(),W1=TG(),M=AL(),z=Math.min(W1,H0),V=Math.min(M,M0),I=Math.max(z,V*t0),g=O0.utils.clamp(I,u0,A0),s=g/t0;if(s>T0){if(s=O0.utils.clamp(V,T0,I0),g=s*t0,g>u0)g=u0,s=g/t0}if(!Number.isFinite(g)||!Number.isFinite(s))return;let j0=O0.utils.clamp(0,Math.max(0,H0-g),c-g/2),b0=O0.utils.clamp(0,Math.max(0,M0-s),f0-s/2),o0=Math.max(0,H0-g-j0),y0=Math.max(0,M0-s-b0),l0={top:`${b0/M0*100}%`,right:`${o0/H0*100}%`,bottom:`${y0/M0*100}%`,left:`${j0/H0*100}%`};wq(a?.length?a:p,l0),A=l0}function n(p){let a=p.querySelector(".clip-handle");if(!a)a=document.createElement("div"),a.className="clip-handle",p.appendChild(a);let G0=p.querySelector("[data-clip-handle-content]");if(G0&&!a.contains(G0))G0.classList.add("clip-handle__content"),a.appendChild(G0);return a}function q0(p,a){if(L){try{L.kill()}catch(B0){console.warn("Cover: failed to kill previous clip draggable",B0)}L=null}let G0=n(p),H0=document.createElement("div"),[M0]=p9.create(H0,{type:"x,y",trigger:G0,inertia:!1,allowNativeTouchScrolling:!1,onPressInit(){let B0=p.getBoundingClientRect(),R0=G0.getBoundingClientRect();O={w:R0.width,h:R0.height,boxW:B0.width,boxH:B0.height};let S0=window.getComputedStyle(p),V0=S0.getPropertyValue("--clip-left"),P0=S0.getPropertyValue("--clip-top"),A0=Q7(V0,B0.width),I0=Q7(P0,B0.height);O0.set(H0,{x:A0,y:I0}),M0.update(!0)},onDrag(){if(!G0.isConnected)return;let B0=O,R0=p.getBoundingClientRect(),S0=G0.getBoundingClientRect(),V0=B0?.w??S0.width,P0=B0?.h??S0.height,A0=B0?.boxW??R0.width,I0=B0?.boxH??R0.height,c=O0.utils.clamp(0,Math.max(0,A0-V0),M0.x),f0=O0.utils.clamp(0,Math.max(0,I0-P0),M0.y),d0=c,n0=f0,u0=Math.max(0,A0-V0-d0),T0=Math.max(0,I0-P0-n0),t0={top:`${n0/I0*100}%`,right:`${u0/A0*100}%`,bottom:`${T0/I0*100}%`,left:`${d0/A0*100}%`};wq(a,t0),A=t0}});L=M0,M0.enable()}function Q0(){if(L){try{L.kill()}catch(p){console.warn("Cover: failed to kill draggable",p)}L=null}if(x)x.abort(),x=null;if(T=!1,W){try{W.revert()}catch(p){console.warn("Cover: failed to revert context",p)}W=null,G=null}}function z0(p,a,G0,H0,M0){let{ease:B0,duration:R0}=M0;if(p.addLabel("toSecond",0),a.forEach(({box:S0,marker:V0})=>{let P0=I$.getState(V0);p.add(I$.fit(S0,P0,M0),"toSecond")}),p.addLabel("stateSecond",`toSecond+=${R0}`),q.hideExtraBoxesUntilSecond){let S0=f(G0);if(S0.length)p.to(S0,{autoAlpha:1,pointerEvents:"",ease:B0,duration:R0*0.2},`toSecond+=${R0*0.8}`)}p.to(H0,{opacity:0,filter:"blur(10px)",ease:B0,duration:R0*0.2},"toSecond"),p.to(G0,{"--clip-top":(S0)=>{let V0=S0<=2?S0:0;return SL(q.clipToTop,V0*q.stackStepPct)},"--clip-bottom":q.clipToBottom,"--clip-left":(S0)=>{let V0=S0<=2?S0:0;return kG(q.clipToLeft,V0*q.stackStepPct)},"--clip-right":(S0)=>{let V0=S0<=2?S0:0;return kG(q.clipToRight,V0*q.stackStepPct)},"--clip-radius":q.clipToRadius,ease:B0,duration:R0},"toSecond"),p.to(U.mediaBox,{backgroundColor:"transparent",outlineColor:"transparent",outlineOffset:"3em",duration:3.2,ease:"power1.out",overwrite:"auto"},">1.6"),p.from(U.mediaBreadcrumb,{autoAlpha:0,filter:"blur(10px)",ease:"none",duration:0.6},"<"),p.to(U.mediaBoxTitle,{autoAlpha:0,ease:"none",duration:0.6},">")}function J0(p,a,G0,H0){let{ease:M0,duration:B0}=H0,{mediaLabels:R0,metadataWrapper:S0,metadataLoading:V0}=U;p.addLabel("toThird","<"),a.forEach(({box:d0,marker:n0})=>{let u0=I$.getState(n0);p.add(I$.fit(d0,u0,H0),"toThird")}),p.set(G0,{"--box-after-border-style":"solid"},"toThird"),p.to(G0,{"--box-after-border-color":"#CBCBC5",ease:M0,duration:0.2},"toThird"),p.to(G0,{"--clip-top":q.clipToTop,"--clip-right":q.clipToRight,"--clip-bottom":q.clipToBottom,"--clip-left":q.clipToLeft,"--clip-radius":q.clipToRadius,ease:M0,duration:B0},"toThird");let P0=R0.length?0.25:0,A0=Math.max(0,q.mediaLabelLiftDuration||0),I0=Math.max(0,q.mediaLabelLiftDelay||0),c=0;if(R0.length)p.to(R0,{autoAlpha:1,ease:"none",duration:P0},`toThird+=${B0}`);if(R0.length&&A0>0)R0.forEach((d0)=>{let n0=Array.from(d0.querySelectorAll(q.mediaLabelInner));if(n0.length<2)return;O0.set(n0,{autoAlpha:1,yPercent:0});let u0=n0.length-1,T0=I0+u0*A0;c=Math.max(c,T0);for(let t0=0;t0-.4"),p.set(V0,{textContent:"generated.",color:"#111110"}),p.to(V0,{autoAlpha:1,duration:0.2,ease:"none",overwrite:"auto"},"<"),S0)p.to(S0,{autoAlpha:1,ease:"none",duration:0.25},`toThird+=${B0}`);let f0=Math.max(P0,c);p.addLabel("stateThird",`toThird+=${B0+f0}`),p.to(U.mediaBox,{backgroundColor:"transparent",ease:"none",duration:0.8,overwrite:"auto"},"<")}function o(p,a){let G0=p.labels.stateThird;if(!Number.isFinite(G0))return;let H0=()=>{let R0=p.time()>=G0;if(R0===T)return;if(T=R0,!T)O0.to(a,{rotation:8,duration:0.2,ease:"none",overwrite:"auto"})};H0();let M0=p.eventCallback("onUpdate");if(p.eventCallback("onUpdate",()=>{if(M0)M0.call(p);H0()}),x)x.abort();x=new AbortController;let B0=x.signal;O0.set(a,{transformOrigin:"50% 50%"}),a.forEach((R0)=>{R0.addEventListener("mouseenter",()=>{if(!T)return;O0.to(R0,{rotation:0,duration:0.8,ease:"back.out(1.2)",overwrite:"auto"})},{signal:B0}),R0.addEventListener("mouseleave",()=>{if(!T)return;O0.to(R0,{rotation:8,duration:0.3,ease:"power1.out",overwrite:"auto"})},{signal:B0})})}function t(p=!1){Q0(),S();let{boxes:a,triggerEl:G0,endTriggerEl:H0,primaryBox:M0}=U,{secondMarkers:B0,thirdMarkers:R0,mediaLabels:S0,metadataWrapper:V0}=U;if(!a?.length)return;if(!p)O0.set(a,{clearProps:"transform,x,y,scale,rotation,rotationY,width,height"}),a[0]?.offsetHeight;if(m(a),V0)O0.set(V0,{autoAlpha:0});if(!G0||!H0||!M0||a.length===0||B0.length===0||q.enableThird&&R0.length===0){console.warn("Cover: required elements not found",{trigger:q.trigger,endTrigger:q.endTrigger,box:q.box,secondMarker:q.secondMarker,thirdMarker:q.thirdMarker,enableThird:q.enableThird});return}W=O0.context(()=>{if(u(a),O0.set(a,{"--box-after-border-width":"1px","--box-after-border-style":"dotted","--box-after-border-color":"white"}),S0.length)O0.set(S0,{autoAlpha:0});if(S0.length){let t0=S0.flatMap((W1)=>Array.from(W1.querySelectorAll(q.mediaLabelInner)));if(t0.length)O0.set(t0,{yPercent:0,autoAlpha:1})}a.forEach((t0)=>{let W1=window.getComputedStyle(t0),M=W1.backgroundImage,z=W1.backgroundPosition,V=W1.backgroundRepeat;if(M&&M!=="none")O0.set(t0,{"--cover-bg-image":M,"--cover-bg-position":z,"--cover-bg-repeat":V,backgroundImage:"none"})});let P0=IG(a,B0),A0=q.enableThird?IG(a,R0):[];if(P0.length!==a.length||q.enableThird&&A0.length!==a.length)console.warn("Cover: marker/box count mismatch; mapping by index/ids where possible",{boxes:a.length,secondMarkers:B0.length,thirdMarkers:R0.length,secondPairs:P0.length,thirdPairs:A0.length,enableThird:q.enableThird});let I0=q.flipEaseSecond||q.flipEase,c=q.flipDurationSecond||q.flipDuration,f0=q.flipEaseThird||q.flipEase,d0=q.flipDurationThird||q.flipDuration,n0=Z7()?1:!0,u0=O0.timeline({scrollTrigger:{trigger:G0,start:"bottom 100%",end:"+500%",scrub:n0,onLeaveBack:()=>v()}}),T0=M0.querySelector(".clip-handle__content");if(T0)O0.set(T0,{opacity:1});if(z0(u0,P0,a,T0,{ease:I0,duration:c}),q.enableThird){if(J0(u0,A0,a,{ease:f0,duration:d0}),!Z7())o(u0,a)}G=u0},Z)}function v(){if(F)return;if(!N)return;F=!0,N=!1,T=!1,Q0(),requestAnimationFrame(()=>{if(!Z.isConnected)return;S();let{boxes:p,primaryBox:a,mediaBox:G0,mediaLabels:H0}=U;if(u(p),m(p),p.length&&A)wq(p,A);if(a)_(a,p);p.forEach((B0)=>B0.classList.remove("is-flip-active"));let M0=a?.querySelector(".clip-handle__content");if(M0)O0.set(M0,{opacity:1});if(G0)O0.set(G0,{clearProps:"backgroundColor,outlineColor"});if(H0.length){let B0=H0.flatMap((R0)=>Array.from(R0.querySelectorAll(q.mediaLabelInner)));if(B0.length)O0.set(B0,{yPercent:0,clearProps:"transform,opacity,visibility"}),O0.set(B0.slice(1),{autoAlpha:1,display:""})}F=!1,W0()})}function N0(){if(N)return;if(N=!0,R)R.abort(),R=null;if(L){try{L.disable(),L.kill()}catch(G0){console.warn("Cover: failed to disable/kill draggable",G0)}L=null}let p=Array.from(Z.querySelectorAll(q.box)),a=p[0]||null;if(u(p),m(p),a)A=bL(a);p.forEach((G0)=>G0.classList.add("is-flip-active")),t(),G?.scrollTrigger?.update?.()}function W0(){let p=Array.from(Z.querySelectorAll(q.box)),a=p[0]||null;if(!a)return;if(m(p),u(p),_(a,p),R)R.abort();if(R=new AbortController,q.clipDraggable)q0(a,p);if((window.scrollY||0)>0&&U.triggerEl){let B0=U.triggerEl.getBoundingClientRect(),R0=window.innerHeight/2;if(B0.top<=R0){N0();return}}let H0=()=>N0(),M0=R.signal;window.addEventListener("wheel",(B0)=>{if(B0.deltaY>0)H0()},{passive:!0,signal:M0}),window.addEventListener("touchstart",(B0)=>{C=B0.touches?.[0]?.clientY??null},{passive:!0,signal:M0}),window.addEventListener("touchmove",(B0)=>{let R0=B0.touches?.[0]?.clientY??null;if(R0==null||C==null)return;if(C-R0>CL)H0()},{passive:!0,signal:M0}),window.addEventListener("scroll",()=>{let B0=window.scrollY||0,R0=B0>j;if(j=B0,R0&&B0>0)H0()},{passive:!0,signal:M0}),window.addEventListener("keydown",(B0)=>{if(["ArrowDown","PageDown"," ","End"].includes(B0.key))H0()},{signal:M0})}function C0(){if(!document.querySelector(q.pinTrigger))return;let a=Z7()?"50% 50%":"50% 55%";if(E)E.kill();if(E=r0.create({trigger:"#mediaboxPin",start:a,end:"+=400%",pin:!0,pinSpacing:!0,scrub:!1,invalidateOnRefresh:!0}),k)k.kill();k=r0.create({trigger:"#mediaboxPin",start:a,end:"+=400%",pin:Z,scrub:!1,pinSpacing:!0,invalidateOnRefresh:!0})}function h0(){if(X)clearTimeout(X);X=setTimeout(()=>{if(S(),!N&&U.primaryBox)_(U.primaryBox,U.boxes);requestAnimationFrame(()=>{if(N)t(!1);r0.refresh(),requestAnimationFrame(()=>{G?.scrollTrigger?.update?.()})}),X=null},ML)}requestAnimationFrame(()=>{if(!Z.isConnected)return;if(S(),U.mediaLabels.length)O0.set(U.mediaLabels,{autoAlpha:0});W0(),C0(),h=U$.add(h0)}),I1(()=>{if(X)window.clearTimeout(X),X=null;if(b.abort(),R)R.abort(),R=null;if(Q0(),N=!1,F=!1,O=null,C=null,A=null,E)E.kill(),E=null;if(k)k.kill(),k=null;if(h)h(),h=null})}var cq={};V$(cq,{default:()=>fG});class bG{events;constructor(){this.events={}}on(Z,$){if(!this.events[Z])this.events[Z]=[];this.events[Z].push($)}once(Z,$){let J=(Q)=>{$(Q),this.off(Z,J)};this.on(Z,J)}off(Z,$){if(!this.events[Z])return;this.events[Z]=this.events[Z].filter((J)=>J!==$)}emit(Z,$){if(!this.events[Z])return;this.events[Z].forEach((J)=>J($))}}class P${static emitter=new bG;static state={};static isReady=!1;static createProxy(Z){return new Proxy(Z,{set:function($,J,Q,K){return P$.emitter.emit(J.toString(),Q),Reflect.set($,J,Q,K)}})}static proxy=new Proxy(P$.state,{set:function(Z,$,J,Q){if(typeof J==="object"&&J!==null)J=P$.createProxy(J);return P$.emitter.emit($.toString(),J),Reflect.set(Z,$,J,Q)}});static markReady(){if(P$.isReady)return;if(P$.isReady=!0,typeof document<"u")document.documentElement.classList.add("is-ready");P$.proxy.READY=!0}static onReady(Z){if(P$.isReady){Z();return}let $=()=>{Z(),P$.off("READY",$)};P$.on("READY",$)}static on(Z,$){this.emitter.on(Z,$)}static once(Z,$){this.emitter.once(Z,$)}static off(Z,$){this.emitter.off(Z,$)}}var xL={get(Z,$){if(typeof $==="string"&&$ in P$)return P$[$].bind(P$);return Z[$]},set(Z,$,J,Q){return Reflect.set(P$.proxy,$,J,Q)}},xG=new Proxy(P$.proxy,xL);if(typeof window<"u"){let Z=()=>P$.markReady();if(document.readyState==="complete")queueMicrotask(Z);else window.addEventListener("load",Z,{once:!0})}function fG(Z,$){xG.on("SOMETHING",(J)=>{console.log("something",J)}),qH(async()=>{await O0.to(Z,{duration:0.2,backgroundColor:"green"})}),ZH(async()=>{await O0.to(Z,{duration:1,backgroundColor:"blue"}),await O0.to(Z,{duration:1,autoAlpha:0})},{element:Z}),JH(()=>{}),I1(()=>{})}var mq={};V$(mq,{default:()=>hG});var fL="(max-width: 992px)";function yG(Z,$){let J=parseFloat(Z);return Number.isFinite(J)?J:$}function yL(){return window.matchMedia(fL).matches}O0.registerPlugin(I$,r0);function hG(Z){if(yL()){let q=Z.querySelector("[data-config-img]");if(q){let U=new IntersectionObserver((W)=>{W.forEach((G)=>{if(G.isIntersecting)O0.to(q,{borderColor:"black",ease:"ease",duration:0.2,clearProps:"borderColor",onComplete:()=>{q.click()}}),U.disconnect()})},{threshold:0.5});U.observe(Z)}return}let $={scrollStart:Z.dataset.designScrollStart||"50% 55%",scrollEnd:Z.dataset.designScrollEnd||"+=100%",scrollMarkers:Z.dataset.designScrollMarkers||"true",scrollRefreshPriority:yG(Z.dataset.designScrollRefreshPriority,-1)},J=new Set;if(Z.matches("[data-design-context]"))J.add(Z);if(Z.querySelectorAll("[data-design-context]").forEach((q)=>J.add(q)),!J.size)return;let Q=[],K=new AbortController;if(J.forEach((q)=>{let U={scrollStart:q.dataset.designScrollStart||$.scrollStart,scrollEnd:q.dataset.designScrollEnd||$.scrollEnd,scrollMarkers:q.dataset.designScrollMarkers==="true"||$.scrollMarkers,scrollRefreshPriority:yG(q.dataset.designScrollRefreshPriority,$.scrollRefreshPriority)},W=q.querySelector("[data-design-item]");if(!W)return;let G=q.querySelector(".figma-w")||document.querySelector(".figma-w");if(!G)return;let X=null,L=()=>{X?.revert(),X=O0.context(()=>{let{parentElement:N,nextElementSibling:F}=W,j=I$.getState(W);return G.appendChild(W),I$.fit(W,j),O0.timeline({scrollTrigger:{trigger:q,start:U.scrollStart,end:"+=200%",scrub:!0,immediateRender:!1,pin:!0,pinSpacing:!0,refreshPriority:U.scrollRefreshPriority,invalidateOnRefresh:!0}}).to(W,{x:0,y:0,scale:0.8,autoAlpha:0,filter:"blur(0.5rem)",ease:"expo.out"},"<").to(".drop_zone_label",{autoAlpha:0,ease:"none"},"<").to(".drop_zone",{outlineColor:"transparent",outlineOffset:"3em",scale:1.05,ease:"ease.out",overwrite:"auto"},"<.2").to(".drop_zone",{backgroundColor:"transparent",ease:"ease.out",overwrite:"auto"},"<.4").from(".design_area",{clipPath:"inset(70% 50% 30% 50% round 0.5rem)",ease:"expo.out"},"<.4").from(".design_area_card",{scale:1.2,ease:"expo.out",stagger:0.02},"<").from(".design_area_sidebar",{scale:0.8,transformOrigin:"left center",opacity:0,filter:"blur(0.5rem)",ease:"expo.out"},"<.4").from(".design_config",{yPercent:20,autoAlpha:0,stagger:0.02,onComplete:()=>{let O=Z.querySelector("[data-config-img]");if(O)O0.to(O,{borderColor:"black",ease:"ease",duration:0.2,clearProps:"borderColor"}),O.click()}},"<.2").to({},{duration:2}),()=>{if(N)if(F&&F.parentElement===N)N.insertBefore(W,F);else N.appendChild(W);O0.set(W,{clearProps:"all"})}},q)};L(),window.addEventListener("resize",L,{signal:K.signal}),Q.push({cleanup:()=>X?.revert()})}),!Q.length){K.abort();return}I1(()=>{K.abort(),Q.forEach(({cleanup:q})=>q?.())})}var dq={};V$(dq,{default:()=>cG});O0.registerPlugin(I$,r0,D9,YZ,p9);var _G=D9.create("assistantEase","0.34, 1.56, 0.64, 1"),vG=1.5,hL=150,uG=["Relaxed aspirational portrait|"],wG="Can you create an on-brand campaign headline?",gG="To try Frontify, book a demo \uD83D\uDC46\uD83C\uDFFD",_L="(max-width: 992px)";function X8(){return window.matchMedia(_L).matches}function vL(Z,$,J,Q){return Z.getAttribute($)??Z.getAttribute(`data-${$}`)??Z.dataset?.[J]??Q}function cG(Z){let $=(p,a)=>vL(Z,p,p.replace(/-([a-z])/g,(G0,H0)=>H0.toUpperCase()),a),J={trigger:$("engine-trigger","#engineSection"),searchWrapper:$("engine-search-wrapper",".search-w"),searchDialog:$("engine-search-dialog",".search_dialog"),searchSubmit:$("engine-search-submit",".search_submit"),assistantTrigger:$("assistant-trigger","#assistantTrigger"),dropCardSelector:$("assistant-drop-card","[data-engine-drop-card]"),dropTargetSelector:$("assistant-drop-target",".guidelines_drop-w"),dropImgSelector:$("assistant-drop-img",".guidelines_drop_img")},Q=null,K=null,q=null,U=null,W=null,G=null,X=null,L=null,N=null,F=null,j=null,R=null,O=null,C=!0,A="",E="",k="",x=!1,T=!1,h=!1,b=null,S=null,u=null,f=null,m=null,_=null,n=null,q0=null;function Q0(){[b,S,u,f].forEach((p)=>{if(p)try{p()}catch(a){console.warn("Engine: failed to cleanup handler",a)}}),b=null,S=null,u=null,f=null}function z0(){if(Q){try{Q.revert()}catch(p){console.warn("Engine: failed to revert context",p)}Q=null}if(Q0(),x=!1,C=!0,A="",E="",K=null,U=null,W=null,G=null,X=null,L=null,q=null,N){try{N.kill()}catch(p){console.warn("Engine: failed to kill guidelines draggable",p)}N=null}if(F)F.revert(),F=null;if(j)j.revert(),j=null}function J0(){if(!J.trigger)return Z;return Z.querySelector(J.trigger)||document.querySelector(J.trigger)||Z}function o(p){if(!p)return null;try{return new YZ(p,{type:"words"})}catch(a){return console.warn("Engine: SplitText failed; falling back to block animation",a),null}}function t(p,a,G0,H0){k=p.style?.opacity||window.getComputedStyle(p)?.opacity||"",E=("value"in p?p.value:p.textContent||"")||p?.getAttribute?.("placeholder")||"";let M0=(I0)=>{p.style.opacity=I0??""},B0=(I0)=>{A=I0;let c=C?`${I0}`:I0;if("value"in p)p.value=c;if("textContent"in p)p.textContent=c},R0=()=>{if(C=!1,A="",M0(k),"value"in p)p.value=E;if("textContent"in p)p.textContent=E};L=O0.to({},{duration:0.5,repeat:-1,yoyo:!0,ease:"power2.inOut",paused:!0,onStart(){C=!0,B0(A)},onRepeat(){C=!C,B0(A)},onReverseComplete(){C=!0,B0(A)}});let S0=()=>{if(h)return;if(C=!0,M0("1"),B0(A),a)a.disabled=!0;if("disabled"in p)p.disabled=!0;if(G0)G0.classList.remove("shake");if(H0)H0.textContent="Search"};return{start:S0,resume:()=>{h=!1,M0("1"),S0()},stop:()=>{h=!0,C=!1,R0()},pauseBlink:()=>{if(h=!0,C=!1,a)a.disabled=!1;if("disabled"in p)p.disabled=!1;if(p){if(p.value="",!X8())p.focus()}let I0=(f0)=>{let d0=H0?.textContent?.trim?.()==="Book a demo",n0=f0?.type==="click"&&f0?.target?.closest?.("a");if(d0&&n0)return;if(f0?.preventDefault?.(),f0?.stopPropagation?.(),p.blur(),G0)G0.classList.remove("shake"),G0.offsetWidth,G0.classList.add("shake");if(B0("To try Frontify search, book a demo \uD83D\uDC49\uD83C\uDFFD"),H0)H0.textContent="Book a demo"};if(b)b();let c=(f0)=>{if(f0.key!=="Enter")return;I0(f0)};if(p.addEventListener("keydown",c),b=()=>p.removeEventListener("keydown",c),S)S();if(a)a.addEventListener("click",I0),S=()=>a.removeEventListener("click",I0)},setDisplay:B0,setPlaceholder:R0}}function v(p,a){let{enginePin:G0,searchDialog:H0,resultCards:M0,resultCardCheck:B0,cardFronts:R0,cardBacks:S0}=p,V0=275,P0=175,A0=0.6363636363636364;if(H0)O0.set(H0,{autoAlpha:0,filter:"blur(10px)",yPercent:10,scale:0.95});if(M0.length)O0.set(M0,{rotationY:0,transformStyle:"preserve-3d"}),O0.set(R0,{rotationY:0}),O0.set(S0,{rotationY:180});if(q=O0.timeline({paused:!0}),q.eventCallback("onReverseComplete",()=>{x=!1}),H0)q.to(H0,{autoAlpha:0,filter:"blur(10px)",yPercent:10,scale:0.95,duration:0.35,ease:"power3.in",onStart:()=>{x=!0},onComplete:()=>a.pauseBlink(),onReverseComplete:()=>a.resume()},"<");if(M0.length)q.to(M0,{rotationY:180,duration:0.8,stagger:0.06,ease:"back.out(1)"},"<").fromTo(B0,{autoAlpha:0,scale:2,filter:"blur(10px)"},{autoAlpha:1,scale:1,filter:"blur(0px)",duration:0.6,ease:"back.out(1.2)",clearProps:"all"},"<.4");let I0=X8()?"center 50%":"center 55%",c=X8()?1:!0,f0=O0.timeline({scrollTrigger:{trigger:G0,start:I0,end:"+=275%",scrub:c,pin:!0,pinSpacing:!0,invalidateOnRefresh:!0,onEnter:()=>a.resume(),onLeaveBack:()=>a.stop(),onUpdate:(d0)=>{if(!q)return;let n0=d0.progress>=0.6363636363636364;if(n0===T)return;if(T=n0,n0)q.timeScale(1).play(0);else q.timeScale(2).reverse()}}});if(a.setPlaceholder(),f0.call(a.start,null,0),uG.forEach((d0,n0)=>{let u0={len:0};if(f0.to(u0,{len:d0.length,ease:"none",onUpdate(){a.setDisplay(d0.slice(0,Math.round(u0.len)))}}),n0{u0.len=d0.length,a.setDisplay(d0)}),f0.to(u0,{duration:1.5,len:0,ease:"none",immediateRender:!1,onUpdate(){a.setDisplay(d0.slice(0,Math.round(u0.len)))}})}),H0)f0.to(H0,{autoAlpha:1,filter:"blur(0px)",yPercent:0,scale:1,duration:0.4,ease:"power3.out"},"<"),f0.to({},{duration:1});return f0.eventCallback("onReverseComplete",()=>{x=!1}),f0}function N0(p){let{guidelinesSection:a,resultCardCheck:G0}=p;if(!m||!_||!q0)return null;if(O0.set(m,{clearProps:"transform",visibility:"visible"}),n)O0.set(n,{visibility:"hidden"});let H0=I$.getState(_),M0=I$.fit(m,H0,{absolute:!0,duration:1,ease:"none"}),B0=X8()?1:!0,R0=X8()?"center 100%":"center 50%",S0={trigger:a,start:"top bottom",end:R0,scrub:B0,invalidateOnRefresh:!0};if(!X8())S0.onEnter=()=>{if(O0.set(m,{visibility:"visible",pointerEvents:"none"}),n)O0.set(n,{visibility:"hidden"})},S0.onLeave=()=>{if(O0.set(m,{visibility:"hidden"}),n)O0.set(n,{visibility:"visible"})},S0.onEnterBack=()=>{if(O0.set(m,{visibility:"visible"}),n)O0.set(n,{visibility:"hidden"})},S0.onLeaveBack=()=>{if(O0.set(m,{visibility:"visible",pointerEvents:"auto"}),n)O0.set(n,{visibility:"hidden"})};let V0=O0.timeline({scrollTrigger:S0,onStart:()=>{O0.to(G0,{autoAlpha:0,filter:"blur(10px)",scale:2})},onReverseComplete:()=>{O0.to(G0,{autoAlpha:1,filter:"blur(0px)",scale:1})}});return V0.add(M0,0),V0}function W0(p){let{guidelinesSection:a,assistantSection:G0,navEl:H0,guidelinesDialog:M0,guidelinesWrapper:B0,guidelinesIntro:R0,guidelinesIntroAssistant:S0,guidelinesDialogWelcome:V0,guidelinesDialogQuestion:P0,guidelinesDialogAnswer:A0,guidelinesDialogTextarea:I0,guidelinesDialogSubmit:c,guidelinesDialogPromptWrapper:f0,guidelinesDialogCta:d0,guidelinesIntroHeading:n0,guidelinesIntroDescription:u0,guidelinesIntroAssistantHeading:T0,guidelinesIntroAssistantDescription:t0}=p;if(d0)O0.set(d0,{autoAlpha:0,scale:0.8});if(S0)O0.set(S0,{autoAlpha:0,yPercent:0});if(I0)O0.set(I0,{disabled:!0});if(F)F.revert(),F=null;if(j)j.revert(),j=null;let W1=[],M=[];if(n0)F=o(n0),W1=F?.words||[];if(T0)j=o(T0),M=j?.words||[];if(W1.length)O0.set(n0,{overflow:"hidden"}),O0.set(W1,{yPercent:0,autoAlpha:1});if(M.length)O0.set(T0,{overflow:"hidden"}),O0.set(M,{yPercent:120,autoAlpha:0});let z=()=>{if(c)O0.set(c,{opacity:1,pointerEvents:"auto"});if(f0)f0.classList.remove("shake");if(d0)O0.set(d0,{autoAlpha:0,scale:0.8})};if(M0&&B0&&!X8()){if(N){try{N.kill()}catch(g){console.warn("Engine: failed to reset guidelines draggable",g)}N=null}let[I]=p9.create(M0,{type:"x,y",bounds:B0,inertia:!1,allowNativeTouchScrolling:!0,dragClickables:!0,allowEventDefault:!0,clickableTest:(g)=>!!g?.target?.closest?.("textarea, input, select, button, a, [data-no-drag]")});N=I}let V=(I)=>{if(!I0||I0.disabled)return;if(I?.preventDefault?.(),I?.stopPropagation?.(),I0.blur?.(),f0)f0.classList.remove("shake"),f0.offsetWidth,f0.classList.add("shake");if("value"in I0)I0.value=gG;else I0.textContent=gG;if(d0)O0.to(d0,{autoAlpha:1,scale:1,duration:0.2,ease:"power2.out"})};if(I0){if(u)u();let I=(g)=>{if(g.key!=="Enter")return;V(g)};I0.addEventListener("keydown",I),u=()=>I0.removeEventListener("keydown",I)}if(c){if(f)f();c.addEventListener("click",V),f=()=>c.removeEventListener("click",V)}if(!X8()){let I=O0.timeline({paused:!0,defaults:{ease:_G},scrollTrigger:{trigger:a,start:"bottom 0%",end:"+=100%",invalidateOnRefresh:!0,onEnter:()=>{I.timeScale(1),I.play()},onEnterBack:()=>I.timeScale(1),onLeaveBack:()=>{I.timeScale(vG),I.reverse(),z()}}}).to(q0,{"--progress":1,duration:0.4},"<").fromTo(M0,{autoAlpha:0,filter:"blur(1rem)",scale:0.85},{autoAlpha:1,filter:"blur(0rem)",scale:1,duration:0.4},"<").to(W1.length?W1:R0,W1.length?{yPercent:-120,autoAlpha:0,duration:0.45,stagger:0.035}:{autoAlpha:0,yPercent:-10,duration:0.2},"<").set(S0,{autoAlpha:1},"<").addLabel("afterPrompt2").to(u0,{autoAlpha:0,yPercent:-100,filter:"blur(1rem)",duration:0.5},"<").fromTo(t0,{autoAlpha:0,yPercent:100,filter:"blur(1rem)"},{autoAlpha:1,yPercent:0,filter:"blur(0rem)",duration:0.5},"<0.05").to(M.length?M:S0,M.length?{yPercent:0,autoAlpha:1,duration:0.5,stagger:0.035}:{autoAlpha:1,yPercent:0,duration:0.2},"<0.05"),g=O0.timeline({scrollTrigger:{trigger:a,start:()=>{let j0=I?.scrollTrigger;if(!j0)return"bottom 0%";let b0=I.labels?.afterPrompt2??0,o0=I.duration()?b0/I.duration():0;return j0.start+(j0.end-j0.start)*o0},end:"+=100%",scrub:1,invalidateOnRefresh:!0}});if(g.addLabel("scrubStart",0),V0&&I0)g.fromTo(I0,{value:""},{value:"",duration:0.2,immediateRender:!1},">").to(V0,{autoAlpha:0,yPercent:-20,filter:"blur(1rem)",duration:0.6},0).addLabel("welcomeOut").to(I0,{value:wG,duration:0.2},0).addLabel("prompt1In");if(P0)g.from(P0,{autoAlpha:0,yPercent:20,filter:"blur(1rem)",duration:0.2},">.4").set(I0,{disabled:!1,value:""},"<").call(()=>I0?.focus(),null,"<.2").addLabel("questionIn");if(A0)g.from(A0,{autoAlpha:0,yPercent:10,filter:"blur(1rem)",duration:0.2},"<").addLabel("answerIn");let s=r0.create({trigger:a,start:"center 50%",end:"+=350%",pin:!0,pinSpacing:!0,anticipatePin:1,invalidateOnRefresh:!0});return{assistantTl:I,scrubTl:g,pin:s}}else{let I=O0.timeline({paused:!0,defaults:{ease:_G},scrollTrigger:{trigger:G0,start:"top 0%",end:"+=100%",invalidateOnRefresh:!0,onEnter:()=>{I.timeScale(1),I.play()},onEnterBack:()=>I.timeScale(1),onLeaveBack:()=>{I.timeScale(vG),I.reverse(),z()}}}),g=O0.timeline({scrollTrigger:{trigger:G0,start:"top 0%",end:"+=100%",scrub:1,invalidateOnRefresh:!0}});if(g.addLabel("scrubStart",0),V0&&I0)g.fromTo(I0,{value:""},{value:"",duration:0.2,immediateRender:!1},">").to(V0,{autoAlpha:0,yPercent:-20,filter:"blur(1rem)",duration:0.6},0).addLabel("welcomeOut").to(I0,{value:wG,duration:0.2},0).addLabel("prompt1In");if(P0)g.from(P0,{autoAlpha:0,yPercent:20,filter:"blur(1rem)",duration:0.2},">.2").set(I0,{disabled:!1,value:""},"<").addLabel("questionIn");if(A0)g.from(A0,{autoAlpha:0,yPercent:10,filter:"blur(1rem)",duration:0.2},"<").addLabel("answerIn");let s=r0.create({trigger:G0,start:"center 50%",end:"+=350% bottom",pin:!0,pinSpacing:!0,anticipatePin:1,invalidateOnRefresh:!0});return{assistantTl:I,scrubTl:g,pin:s}}}function C0(){z0(),Q=O0.context(()=>{if(!J0()){console.warn("Engine: trigger element not found",{trigger:J.trigger});return}let a=document.querySelector("#guidelinesSection"),G0=document.querySelector("#assistantTriggerMobile"),H0=document.querySelector(".nav"),M0=document.querySelector("#enginePin"),B0=document.querySelector(J.searchWrapper),R0=Z.querySelector(".search_input"),S0=J.searchDialog&&(Z.querySelector(J.searchDialog)||document.querySelector(J.searchDialog)),V0=J.searchSubmit&&(Z.querySelector(J.searchSubmit)||document.querySelector(J.searchSubmit)),P0=V0?.querySelector("a"),A0=Array.from(Z.querySelectorAll(".results_card")),I0=Z.querySelector(".results_card_check"),c=A0.map((d0)=>d0.querySelector(".results_card_front")).filter(Boolean),f0=A0.map((d0)=>d0.querySelector(".results_card_back")).filter(Boolean);if(q0=document.querySelector(J.assistantTrigger),m=document.querySelector(J.dropCardSelector)||A0.find((d0)=>d0.hasAttribute("data-engine-drop-card"))||A0[0],_=document.querySelector(J.dropTargetSelector),n=document.querySelector(J.dropImgSelector),m)O0.set(m,{clearProps:"transform",visibility:"visible"});if(n)O0.set(n,{visibility:"hidden"});if(R0){let d0=t(R0,V0,B0,P0);K=v({enginePin:M0,searchDialog:S0,resultCards:A0,resultCardCheck:I0,cardFronts:c,cardBacks:f0},d0)}else console.warn("Engine: typewriter targets not found");if(m&&_&&q0){U=N0({guidelinesSection:a,resultCardCheck:I0});let n0=X8()?"#assistantSection .guidelines_dialog.is-mobile":"#guidelinesSection .guidelines_dialog.is-desktop",u0=document.querySelector(n0),T0=document.querySelector("#guidelinesSection .guidelines-w"),t0=document.querySelector("#guidelinesSection .guidelines_intro"),W1=document.querySelector("#guidelinesSection .guidelines_intro.is-assistant"),M=u0?.querySelector(".guidelines_dialog_welcome"),z=u0?.querySelector(".guidelines_dialog_question"),V=u0?.querySelector(".guidelines_dialog_answer"),I=u0?.querySelector(".guidelines_dialog_textarea"),g=u0?.querySelector(".guidelines_dialog_submit-w"),s=u0?.querySelector(".guidelines_dialog_prompt-w"),j0=u0?.querySelector(".guidelines_dialog_cta"),b0=t0?.querySelector?.("h2"),o0=t0?.querySelector?.("p"),y0=W1?.querySelector?.("h2"),l0=W1?.querySelector?.("p"),$1=W0({guidelinesSection:a,assistantSection:G0,navEl:H0,guidelinesDialog:u0,guidelinesWrapper:T0,guidelinesIntro:t0,guidelinesIntroAssistant:W1,guidelinesDialogWelcome:M,guidelinesDialogQuestion:z,guidelinesDialogAnswer:V,guidelinesDialogTextarea:I,guidelinesDialogSubmit:g,guidelinesDialogPromptWrapper:s,guidelinesDialogCta:j0,guidelinesIntroHeading:b0,guidelinesIntroDescription:o0,guidelinesIntroAssistantHeading:y0,guidelinesIntroAssistantDescription:l0});G=$1.assistantTl,X=$1.scrubTl,W=$1.pin}},Z)}function h0(){if(O)clearTimeout(O);O=setTimeout(()=>{C0(),r0.refresh(),O=null},hL)}requestAnimationFrame(()=>{if(!Z.isConnected)return;C0(),r0.refresh(),R=U$.add(h0)}),I1(()=>{if(O)clearTimeout(O),O=null;if(R)R(),R=null;z0()})}var pq={};V$(pq,{default:()=>oG});var mG=768,uL=250,wL=100,gL=0.6,cL=0.5,mL=4,dL=3;class dG{constructor(Z){this.root=Z||document,this.isInitialized=!1,this.resizeHandler=null,this.marquees=new Map,this.prefersReducedMotion=!1,this.isMobile=!1,this.pendingTimers=new Set}init(){if(this.isInitialized)return;if(this.prefersReducedMotion=window.matchMedia("(prefers-reduced-motion: reduce)").matches,this.prefersReducedMotion)return;this.isMobile=window.innerWidth<=mG,this.resizeHandler=this.debounceOnWidthChange(()=>{this.isMobile=window.innerWidth<=mG,this.initMarquees()},uL),this.initMarquees(),window.addEventListener("resize",this.resizeHandler,{passive:!0}),this.isInitialized=!0}getContainers(){let Z=new Set;if(this.root?.matches?.("[data-marquee]"))Z.add(this.root);return(this.root instanceof HTMLElement?this.root:document).querySelectorAll("[data-marquee]").forEach((J)=>Z.add(J)),Array.from(Z)}initMarquees(){this.clearPendingTimers(),Array.from(this.marquees.keys()).forEach(($)=>this.destroyMarquee($)),this.getContainers().forEach(($,J)=>{let Q=this.isMobile?wL:0,K=window.setTimeout(()=>{if(!$.isConnected||this.prefersReducedMotion)return;let q=new pG($,J,{prefersReducedMotion:this.prefersReducedMotion,isMobile:this.isMobile});this.marquees.set($,q),this.pendingTimers.delete(K)},Q);this.pendingTimers.add(K)})}destroyMarquee(Z){let $=this.marquees.get(Z);if($)$.destroy(),this.marquees.delete(Z)}clearPendingTimers(){this.pendingTimers.forEach((Z)=>clearTimeout(Z)),this.pendingTimers.clear()}debounceOnWidthChange(Z,$){let J=innerWidth,Q;return(...K)=>{clearTimeout(Q),Q=setTimeout(()=>{if(innerWidth!==J)J=innerWidth,Z.apply(this,K)},$)}}destroy(){if(this.clearPendingTimers(),Array.from(this.marquees.keys()).forEach((Z)=>this.destroyMarquee(Z)),this.resizeHandler)window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null;this.isInitialized=!1}}class pG{constructor(Z,$,J={}){this.container=Z,this.list=Z.querySelector("[data-marquee-list]"),this.index=$,this.options=J,this.timeline=null,this.originalItems=[],this.init()}init(){if(this.options.prefersReducedMotion)return;this.setupMarquee()}setupMarquee(){if(!this.list)return;if(this.container.offsetHeight,this.originalItems=Array.from(this.list.querySelectorAll("[data-marquee-item]")),this.originalItems.length===0)return;this.createSeamlessLoop()}createSeamlessLoop(){Array.from(this.list.querySelectorAll("[data-marquee-item]")).forEach((W)=>{if(W.getAttribute("data-marquee-duplicate")==="true")W.remove()});let $=this.container.getBoundingClientRect().width,J=0;this.originalItems.forEach((W)=>{let G=W.getBoundingClientRect(),X=getComputedStyle(W),L=parseFloat(X.marginLeft)||0,N=parseFloat(X.marginRight)||0;J+=G.width+L+N});let Q=this.options.isMobile?mL:dL,K=$*Q,q=Math.max(1,Math.ceil(K/J));for(let W=0;W{let X=G.cloneNode(!0);X.setAttribute("data-marquee-duplicate","true"),this.list.appendChild(X)});let U=Array.from(this.list.querySelectorAll("[data-marquee-item]"));this.createAnimation(U,J)}createAnimation(Z,$){let J=parseFloat(this.container.getAttribute("data-marquee-speed")),K=(this.container.getAttribute("data-marquee-direction")||this.container.dataset?.marqueeDirection)?.toLowerCase()==="right"?1:-1,q=J||gL;if(this.options.isMobile)q*=cL;let U=$/100/q,W=K===1?-$:0,G=K===1?0:-$;if(this.timeline)this.timeline.kill();c9.set(this.list,{x:W}),this.timeline=c9.to(this.list,{x:G,duration:U,ease:"none",repeat:-1,onRepeat:()=>{c9.set(this.list,{x:W})}})}destroy(){if(this.timeline)this.timeline.kill(),this.timeline=null;if(this.list)c9.set(this.list,{x:0}),Array.from(this.list.querySelectorAll("[data-marquee-item]")).forEach(($)=>{if($.getAttribute("data-marquee-duplicate")==="true")$.remove()});this.originalItems=[]}}function oG(Z){if(typeof window>"u")return null;let $=new dG(Z||document);return $.init(),I1(()=>$.destroy()),$}var oq={};V$(oq,{default:()=>nG});var pL="[data-menu-target], a[href^='#']",oL="active",lL=-100,nL=0.5,lG=(Z,$)=>{let J=Number(Z);return Number.isFinite(J)?J:$};function nG(Z,$){if(typeof window>"u"||!Z)return null;let J=$.menuSelector||$.modulesMenuSelector||pL,Q=$.menuActiveClass||oL,K=lG($.menuOffset??$.modulesMenuOffset,lL),q=[],U=[],W=null,G=null,X=(O)=>{if(!O||O===W)return;U.forEach((C)=>C.trigger.classList.remove(Q)),O.classList.add(Q),W=O},L=(O)=>{let C=O.dataset?.menuTarget||O.getAttribute("href")||"";if(!C||C==="#")return null;let A=C.startsWith("#")?C:`#${C}`;try{return document.querySelector(A)}catch{return null}},N=(O)=>lG(O.dataset?.menuOffset,K),F=(O)=>{let C=O.currentTarget;if(!C)return;let A=L(C);if(!A)return;O.preventDefault?.(),X(C),l1.scrollTo(A,{offset:N(C)})};Array.from(Z.querySelectorAll(J)).forEach((O)=>{let C=L(O);if(!C)return;U.push({trigger:O,target:C}),O.addEventListener("click",F),q.push(()=>O.removeEventListener("click",F))});let R=()=>{if(!U.length)return;let O=window.innerHeight*nL,C=null;if(U.forEach((A)=>{let E=A.target.getBoundingClientRect(),k=E.top+E.height*0.5;if(!(E.top<=O&&E.bottom>=O))return;let T=Math.abs(k-O);if(!C||TG?.()),R(),I1(()=>{q.forEach((O)=>O())}),null}var iq={};V$(iq,{default:()=>rG});var R1=u5(nq(),1);O0.registerPlugin(r0,D9);var iL="https://cdn.prod.website-files.com/69453c919a8230449bf92ad9/697cbca35b649a0cb3acf6ce_frontify.riv",sL="#overview-hero",rL=".is-diagram",aL=".nav",tL=767,eL=1000,iG=15,$2=12,J2={contain:R1.Fit.Contain,cover:R1.Fit.Cover,fill:R1.Fit.Fill,fitheight:R1.Fit.FitHeight,fitwidth:R1.Fit.FitWidth,scaletofill:R1.Fit.ScaleToFill},Q2={center:R1.Alignment.Center,centercenter:R1.Alignment.Center,center_center:R1.Alignment.Center,centerleft:R1.Alignment.CenterLeft,center_left:R1.Alignment.CenterLeft,centerright:R1.Alignment.CenterRight,center_right:R1.Alignment.CenterRight,topleft:R1.Alignment.TopLeft,top_left:R1.Alignment.TopLeft,topcenter:R1.Alignment.TopCenter,top_center:R1.Alignment.TopCenter,topright:R1.Alignment.TopRight,top_right:R1.Alignment.TopRight,bottomleft:R1.Alignment.BottomLeft,bottom_left:R1.Alignment.BottomLeft,bottomcenter:R1.Alignment.BottomCenter,bottom_center:R1.Alignment.BottomCenter,bottomright:R1.Alignment.BottomRight,bottom_right:R1.Alignment.BottomRight},Z2=(Z)=>{let $=(Z||"").toString().trim().toLowerCase();return J2[$]||R1.Fit.Cover},K2=(Z)=>{let $=(Z||"").toString().trim().toLowerCase();return Q2[$]||R1.Alignment.Center},sG=(Z,$=[])=>Array.from(new Set([Z,...$].filter(Boolean)));function rG(Z){if(typeof window>"u"||!Z)return;let $={src:Z.dataset.riveSrc||iL,canvasSelector:Z.dataset.riveCanvas||sL,artboardDesktop:Z.dataset.riveArtboard||"overview_main",artboardMobile:Z.dataset.riveArtboardMobile||"overview_mobile",stateMachineDesktop:Z.dataset.riveStateMachine||"overview_main",stateMachineMobile:Z.dataset.riveStateMachineMobile||"overview_mobile",scrollInputName:Z.dataset.riveScrollInput||"scrollY",introInputName:Z.dataset.riveIntroInput||"intro-active",triggerSelector:Z.dataset.riveScrollTrigger||rL,scrollStart:Z.dataset.riveScrollStart||"center center",scrollEnd:Z.dataset.riveScrollEnd||"+=200%",pinHold:Z.dataset.rivePinHold||"+=100%",scrollScale:Number.parseFloat(Z.dataset.riveScrollScale)||eL,breakpoint:Number.parseFloat(Z.dataset.riveBreakpoint)||tL,fit:Z2(Z.dataset.riveFit),alignment:K2(Z.dataset.riveAlignment),aspectRatio:Z.dataset.riveAspectRatio||"1441 / 834",aspectRatioMobile:Z.dataset.riveAspectRatioMobile||"375 / 736",debug:Z.hasAttribute("data-rive-debug")||!1},J=sG($.scrollInputName,["scroll_y","scrollY"]),Q=sG($.introInputName,["intro-active","intro_active"]),K=Z.querySelector($.canvasSelector)||document.querySelector($.canvasSelector);if(!K){console.warn("OverviewHero: canvas element not found",{selector:$.canvasSelector});return}K.style.width="100%",K.style.display="block",K.style.objectFit="contain";function q(){let k=O()?$.aspectRatioMobile:$.aspectRatio;if(k)K.style.aspectRatio=k,K.style.height="auto";else K.style.height="100%"}q();let U=null,W=null,G=null,X=O(),L=null,N=null,F=(k)=>{let x=k?.data?.name||k?.name||k?.data?.properties?.name;if(!x)return;if(x==="cursor-pointer-on")document.documentElement?.setAttribute("data-cursor","pointer");else if(x==="cursor-pointer-off")document.documentElement?.setAttribute("data-cursor","off")},j=()=>{if(W)W.kill(),W=null},R=()=>{if(U){try{G?.(),G=null}catch{}U.cleanup(),U=null}};function O(){return window.innerWidth<=$.breakpoint}function C(k){j();let x=U?.viewModelInstance;if(!x){console.warn("OverviewHero: viewModelInstance not available");return}let T=null;for(let _ of J)try{if(T=x.number(_),T)break}catch{}let h=null;for(let _ of Q)try{if(h=x.boolean(_),h)break}catch{}if(h)h.value=!0;if(!T){console.warn("OverviewHero: scroll binding not found",{scrollNames:J,stateMachine:k});return}let b=O(),S=document.querySelector($.triggerSelector)||Z,u=document.querySelector(aL),f=iG+$2,m=iG/f;W=r0.create({trigger:S,start:$.scrollStart,end:`+=${f*100}vh`,pin:!0,pinSpacing:!0,scrub:b?0.5:1,snap:{snapTo:[0,m,1],duration:2,ease:"expo.inOut"},onUpdate:(_)=>{let n=Math.min(1,_.progress/m);T.value=-n*$.scrollScale},markers:$.debug})}function A(){j(),R();let k=O(),x=k?$.artboardMobile:$.artboardDesktop,T=k?$.stateMachineMobile:$.stateMachineDesktop;U=new R1.Rive({src:$.src,canvas:K,artboard:x,stateMachines:T,autoplay:!0,autoBind:!0,layout:new R1.Layout({fit:$.fit,alignment:$.alignment}),onLoad:()=>{if(U.resizeDrawingSurfaceToCanvas(),C(T),typeof U.on==="function")G=U.on(R1.EventType?.RiveEvent||"riveEvent",F)},onLoadError:(h)=>{console.warn("OverviewHero: failed to load Rive file",h)}})}let E=()=>{if(L)cancelAnimationFrame(L);L=requestAnimationFrame(()=>{L=null;let k=O();if(k!==X){X=k,q(),A();return}U?.resizeDrawingSurfaceToCanvas()})};A(),N=U$.add(E),I1(()=>{if(L)cancelAnimationFrame(L);N?.(),j(),R()})}var rq={};V$(rq,{getRiveInstance:()=>z2,default:()=>L2});var sq={};V$(sq,{createRiveModules:()=>VQ});var T$=u5(nq(),1);var q2="(max-width: 992px)",U2={contain:T$.Fit.Contain,cover:T$.Fit.Cover,fill:T$.Fit.Fill,fitwidth:T$.Fit.FitWidth,fitheight:T$.Fit.FitHeight,none:T$.Fit.None,scaledown:T$.Fit.ScaleDown};function W2(Z){let $=U2[(Z||"").toLowerCase()]||T$.Fit.Contain;return new T$.Layout({fit:$,alignment:T$.Alignment.Center})}function H2(){return window.matchMedia(q2).matches}function G2(Z){Z.style.width="100%",Z.style.height="100%",Z.style.display="block"}function VQ({riveFiles:Z={},cursorEvents:$={},stateMachineRequiresAutoBind:J=!1}={}){let Q=new WeakMap,K=(W)=>{let G=W?.data?.name||W?.name||W?.data?.properties?.name,X=$[G];if(X)document.documentElement?.setAttribute("data-cursor",X)};function q(W){return Q.get(W)||null}function U(W,G={}){if(typeof window>"u"||!W)return null;let X=G.riveFile||"modules",L=G.riveLayout||"contain",N=G.riveCleanup!=="false",F=G.riveCursor!=="false",j=W.getAttribute?.("data-rive-src")||G.riveSrc||G.riveFileUrl||Z[X]||Z.modules,R=W2(L),O=[...W.tagName==="CANVAS"?[W]:[],...W.querySelectorAll("canvas[id], [data-rive-artboard], [data-rive-src]")],C=Array.from(new Set(O));if(!C.length)return null;let A=[],E=(T)=>{let h=Q.get(T);if(h?.cleanup)h.cleanup();else if(h?.rive)try{h.rive.cleanup()}catch{}let b=T.getAttribute("data-rive-src")||T.dataset.riveSrc||j,S=T.getAttribute("data-rive-artboard")||T.id||G.riveArtboard||"",u=T.getAttribute("data-rive-state-machine")||T.getAttribute("data-rive-statemachine")||"",m=T.hasAttribute("data-rive-state-machine")||T.hasAttribute("data-rive-statemachine")?T.getAttribute("data-rive-autobind")!=="false":T.getAttribute("data-rive-autobind")==="true";if(!H2())G2(T);let _=null,n=null,q0=()=>{try{_?.()}catch{}if(_=null,n)try{n.cleanup()}catch{}Q.delete(T)},Q0={src:b,canvas:T,layout:R,renderer:"auto",fallbackRenderer:"canvas",autoplay:!0,autoBind:m,useOffscreenRenderer:!0,onLoad:()=>{n.resizeDrawingSurfaceToCanvas();let J0=S||n.activeArtboard?.name;if(F&&typeof n.on==="function"){let o=T$.EventType?.RiveEvent||"riveEvent";_=n.on(o,K)}Q.set(T,{rive:n,artboard:J0,stateMachine:u,fileType:X,cleanup:q0})}},z0=u&&(!J||m);if(S)Q0.artboard=S;if(z0)Q0.stateMachines=u;n=new T$.Rive(Q0),A.push(q0)};C.forEach(E);let k=()=>{C.forEach((T)=>{let h=Q.get(T);if(h?.rive)try{h.rive.resizeDrawingSurfaceToCanvas()}catch{}})},x=U$.add(k);if(N)I1(()=>{x(),A.forEach((T)=>T())});return{canvases:C}}return{riveModules:U,getRiveInstance:q}}var j2={modules:"https://cdn.prod.website-files.com/69453c919a8230449bf92ad9/6966255165fd90661348283a_overview-modules%20(1).riv"},B2={"cursor-pointer-on":"pointer","cursor-pointer-off":"off"},{riveModules:X2,getRiveInstance:z2}=VQ({riveFiles:j2,cursorEvents:B2,stateMachineRequiresAutoBind:!0});var L2=X2;var aq={};V$(aq,{getRiveInstance:()=>Y2,default:()=>O2});var F2={modules:"https://cdn.prod.website-files.com/69453c919a8230449bf92ad9/697b71c5b4d4bb65db213677_product.riv"},N2={"cursor-pointer-on":"pointer","cursor-pointer-off":"off","cursor-pointer-grab":"grab","cursor-pointer-grabbing":"grabbing"},{riveModules:V2,getRiveInstance:Y2}=VQ({riveFiles:F2,cursorEvents:N2,stateMachineRequiresAutoBind:!1});var O2=V2;var tq={};V$(tq,{default:()=>tG});var aG={list:".search_select_list",arrow:".search_select_arrow"},K7={duration:0.25,ease:"power2.out",stagger:0.05,listDelay:0,itemsDelay:0.1};function tG(Z){if(typeof window>"u"||!Z)return null;let $=Z.querySelector(aG.list),J=Z.querySelector(aG.arrow);if(!$&&!J)return null;let Q=$?Array.from($.children):[];if($)O0.set($,{autoAlpha:0,clipPath:"inset(0% 0% 100% 0%)"});if(Q.length)O0.set(Q,{scale:0,transformOrigin:"50% 50%"});if(J)O0.set(J,{rotation:0,transformOrigin:"50% 50%"});let K=O0.timeline({paused:!0,defaults:{duration:K7.duration,ease:K7.ease}});if($)K.to($,{autoAlpha:1,clipPath:"inset(0% 0% 0% 0%)"},K7.listDelay);if(Q.length)K.to(Q,{scale:1,stagger:K7.stagger},K7.itemsDelay);if(J)K.to(J,{rotation:180},K7.listDelay);let q=()=>K.play(),U=()=>K.reverse();return Z.addEventListener("mouseenter",q),Z.addEventListener("mouseleave",U),I1(()=>{if(Z.removeEventListener("mouseenter",q),Z.removeEventListener("mouseleave",U),K.kill(),$)O0.set($,{clearProps:"opacity,visibility"});if(J)O0.set(J,{clearProps:"transform"})}),null}var $5={};V$($5,{default:()=>$4});var R2="video",D2="[data-explainer-wrapper]",M2="[data-explainer-card]",C2=0.75,A2=0.55,k2="back.out(1.2)",I2=!0,P2=!1,T2="(max-width: 479px)";function eG(Z){if(Z==null)return null;if(typeof Z==="number"&&Number.isFinite(Z))return Z;let $=String(Z).trim();if(!$)return null;if($.includes(":")){let Q=$.split(":").map((K)=>Number.parseFloat(K));if(Q.some((K)=>!Number.isFinite(K)))return null;if(Q.length===2){let[K,q]=Q;return K*60+q}if(Q.length===3){let[K,q,U]=Q;return K*3600+q*60+U}return null}let J=Number.parseFloat($);return Number.isFinite(J)?J:null}function eq(Z,$=[],J=[],Q=null){for(let K of $)if(Z.hasAttribute(K)){let q=Z.getAttribute(K),U=eG(q);if(Number.isFinite(U))return U}for(let K of J){let q=Z.dataset?.[K];if(q!=null&&q!==""){let U=eG(q);if(Number.isFinite(U))return U}}return Q}function $4(Z){if(typeof window>"u"||!Z)return null;let $=R2,J=D2,Q=M2,K=C2,q=A2,U=k2,W=P2||Z.dataset?.explainerDebug==="true"||Z.dataset?.explainerDebug==="1",G=Z instanceof HTMLVideoElement?Z:Z.querySelector($),X=Z instanceof HTMLVideoElement?Z.parentElement:Z.querySelector(J)||Z;if(!G)return null;let L=Array.from(Z.querySelectorAll(Q));if(!L.length)return null;let N=Z.querySelector(".video_explainer_toast-w"),F=Array.from(Z.querySelectorAll(".video_explainer_toast")),j=L.map((o)=>({card:o,parent:o.parentElement,nextSibling:o.nextElementSibling})),R=L.map((o)=>{let t=eq(o,["data-start","data-explainer-start"],["start","explainerStart"],null);if(!Number.isFinite(t))return null;let v=eq(o,["data-end","data-explainer-end"],["end","explainerEnd"],null),N0=eq(o,["data-duration","data-explainer-duration"],["duration","explainerDuration"],null),W0=Number.isFinite(v)?v:Number.isFinite(N0)?t+N0:null;return{element:o,start:t,end:W0}}).filter(Boolean).sort((o,t)=>o.start-t.start);if(!R.length)return null;for(let o=0;oo.setAttribute("aria-hidden","true"));let O=-1,C=null;if(W){if(window.getComputedStyle(Z).position==="static")Z.style.position="relative";C=document.createElement("div"),C.setAttribute("data-explainer-debug",""),C.style.position="absolute",C.style.bottom="12px",C.style.left="12px",C.style.zIndex="10",C.style.padding="6px 8px",C.style.background="rgba(0, 0, 0, 0.6)",C.style.color="#fff",C.style.fontSize="12px",C.style.fontFamily="ui-monospace, SFMono-Regular, Menlo, monospace",C.style.borderRadius="6px",C.style.pointerEvents="none",C.textContent="time: 0.00s | active: none",X.appendChild(C)}let A=(o)=>{O0.killTweensOf(o),o.setAttribute("aria-hidden","false"),O0.to(o,{autoAlpha:1,filter:"blur(0rem)",yPercent:0,scale:1,duration:K,ease:U,overwrite:"auto",onStart:()=>{o.style.pointerEvents="auto"}})},E=(o)=>{O0.killTweensOf(o),O0.to(o,{autoAlpha:0,filter:"blur(0.5rem)",yPercent:10,scale:0.95,duration:q,ease:U,overwrite:"auto",onComplete:()=>{o.style.pointerEvents="none",o.setAttribute("aria-hidden","true")}})},k=()=>{L.forEach((o)=>E(o))},x=(o)=>{if(L.forEach((W0)=>{W0.classList.remove("is-active","is-next","is-next-2")}),o<0)return;let t=L[o],v=L[o+1],N0=L[o+2];if(t)t.classList.add("is-active");if(v)v.classList.add("is-next");if(N0)N0.classList.add("is-next-2")},T=(o)=>{for(let t=0;t=v&&o{if(!C)return;let o=G.currentTime||0,t=O>=0?String(O+1):"none";C.textContent=`time: ${o.toFixed(2)}s | active: ${t}`},b=()=>{let o=G.currentTime||0,t=T(o);if(t===O)return;let v=O;if(O=t,x(O),z0(O),v>=0)E(R[v].element);if(t>=0)A(R[t].element);h()},S=()=>{if(I2)O=-1,k();x(O),z0(O),h()},u=new AbortController,{signal:f}=u,m=null,_=null,n=null,q0=()=>{if(!N)return;L.forEach((o)=>N.appendChild(o))},Q0=()=>{j.forEach(({card:o,parent:t,nextSibling:v})=>{if(!t)return;if(v&&v.parentElement===t)t.insertBefore(o,v);else t.appendChild(o)})},z0=(o)=>{if(!F.length||!_?.matches)return;let t=o>=0;F.forEach((v)=>{O0.to(v,{autoAlpha:t?1:0,duration:t?K:q,yPercent:t?0:-10,delay:t?0.1*o:0,ease:U,overwrite:"auto"}),v.style.pointerEvents=t?"auto":"none"})},J0=(o)=>{Z.classList.toggle("is-paused",o)};G.addEventListener("timeupdate",b,{signal:f}),G.addEventListener("pause",()=>J0(!0),{signal:f}),G.addEventListener("play",()=>J0(!1),{signal:f}),G.addEventListener("seeking",b,{signal:f}),G.addEventListener("seeked",b,{signal:f}),G.addEventListener("loadedmetadata",b,{signal:f}),G.addEventListener("loadeddata",b,{signal:f}),G.addEventListener("ended",S,{signal:f});try{G.pause()}catch{}if(J0(!0),"IntersectionObserver"in window)m=new IntersectionObserver((o)=>{let t=o[0];if(!t)return;if(t.isIntersecting&&t.intersectionRatio>=0.85){let v=G.play();if(v&&typeof v.catch==="function")v.catch(()=>{})}else try{G.pause()}catch{}b()},{threshold:[0,0.85]}),m.observe(G);if("matchMedia"in window){_=window.matchMedia(T2);let o=(t)=>{if(t.matches)q0(),z0(O);else if(Q0(),F.length)F.forEach((v)=>{O0.set(v,{clearProps:"opacity,visibility"}),v.style.pointerEvents=""})};if(n=o,o(_),typeof _.addEventListener==="function")_.addEventListener("change",o,{signal:f});else if(typeof _.addListener==="function")_.addListener(o)}return k(),x(O),b(),h(),I1(()=>{if(u.abort(),m)m.disconnect(),m=null;if(_&&n&&typeof _.removeListener==="function")_.removeListener(n);if(C)C.remove(),C=null}),{video:G,cards:R.map((o)=>o.element)}}var J5={};V$(J5,{default:()=>J4});var E2="(hover: hover) and (pointer: fine)",S2=2;function sZ(Z,$,J,Q){let K=Z.getAttribute($)??Z.getAttribute(`data-${$}`)??Z.dataset?.[J];if(!(Z.hasAttribute($)||Z.hasAttribute(`data-${$}`)||Z.dataset?.[J]!==void 0))return Q;let U=K??"";if(U==="false"||U==="0")return!1;return!0}function b2(Z,$){let J=sZ($,"video-hover","videoHover",!1);return sZ(Z,"video-hover","videoHover",J)}function x2(Z,$){let J=sZ($,"video-desktop-only","videoDesktopOnly",!1);return sZ(Z,"video-desktop-only","videoDesktopOnly",J)}function J4(Z){if(typeof window>"u"||!Z)return null;let $=Z instanceof HTMLVideoElement?[Z]:Array.from(Z.querySelectorAll("video"));if(!$.length)return null;let J=window.matchMedia(E2).matches,Q=new AbortController,{signal:K}=Q,q=new WeakMap;return $.forEach((U)=>{if(!U.paused)try{U.pause()}catch{}if(x2(U,Z)&&!J){U.removeAttribute("src"),U.querySelectorAll("source").forEach((X)=>X.removeAttribute("src")),U.load();return}if(!b2(U,Z))return;let W=()=>{if(!q.has(U))q.set(U,U.loop);if(U.loop=!0,U.readyState{})},G=()=>{if(U.pause(),q.has(U))U.loop=q.get(U)};U.addEventListener("mouseenter",W,{signal:K}),U.addEventListener("mouseleave",G,{signal:K})}),I1(()=>{Q.abort()}),null}var Q5={"./../accordion-light.js":c6,"./../accordion.js":m6,"./../carousel.js":Uq,"./../config.js":Hq,"./../cover.js":gq,"./../cycle.ts":cq,"./../design.js":mq,"./../engine.js":dq,"./../marquee.js":pq,"./../modules-menu.js":oq,"./../overview-hero.js":iq,"./../overview-modules.js":rq,"./../product-modules.js":aq,"./../rive-modules-base.js":sq,"./../select.js":tq,"./../video-explainer.js":$5,"./../video.js":J5};function Z5(Z="module"){return Array.from(document.querySelectorAll(`[data-${Z}]`)).map(($)=>{let J=$,Q=J.dataset[Z];if(J._moduleInitialized)return null;let K=Q5[`./../${Q}.ts`]?`./../${Q}.ts`:`./../${Q}.js`;if(Q5[K]){let q=Q5[K].default;if(typeof q==="function")try{return J._moduleInitialized=!0,q(J,J.dataset)}catch(U){return delete J._moduleInitialized,console.warn(`Failed to call default function for ${Z} "${Q}":`,U),null}else return console.warn(`Default export is not a function for ${Z} "${Q}"`),null}else return console.warn(`${Z} not found: "${Q}"`),null}).filter(($)=>$!==null)}class zJ{static instance;groups=[];constructor(){}static getInstance(){if(!zJ.instance)zJ.instance=new zJ;return zJ.instance}configsMatch(Z,$){return Z.root===$.root&&Z.rootMargin===$.rootMargin}handleIntersection(Z){Z.forEach(($)=>{let J=this.groups.find((X)=>{return Array.from(X.elements.keys()).includes($.target)});if(!J)return;let Q=$.target,K=J.elements.get(Q);if(!K)return;let{isIntersecting:q,intersectionRatio:U,boundingClientRect:W}=$,G=-1;if(K.lastDirection!==void 0)G=q?W.top>0?1:-1:W.top>0?-1:1;if(K.lastDirection=G,q){if(K.callbacks.isIn?.({entry:$,direction:G}),K.callbacks.callback?.({entry:$,direction:G,isIn:!0}),K.once)this.removeElement(Q)}else K.callbacks.isOut?.({entry:$,direction:G}),K.callbacks.callback?.({entry:$,direction:G,isIn:!1})})}addElement(Z,$,J){this.removeElement(Z);let Q=this.groups.find((K)=>this.configsMatch(K.config,$));if(!Q){let K=new IntersectionObserver((q)=>this.handleIntersection(q),{...$,threshold:[0]});Q={config:$,observer:K,elements:new Map},this.groups.push(Q)}return Q.elements.set(Z,{callbacks:J,once:$.once||!1,lastDirection:void 0}),Q.observer.observe(Z),Q}removeElement(Z){let $=this.groups.find((J)=>J.elements.has(Z));if(!$)return;if($.observer.unobserve(Z),$.elements.delete(Z),$.elements.size===0)$.observer.disconnect(),this.groups=this.groups.filter((J)=>J!==$)}}class RZ{element;#$;#Q;isIn(Z){}isOut(Z){}inView;callback;#J=null;#Z=null;constructor(Z,$={root:null,rootMargin:"0px",threshold:0,autoStart:!1,once:!1,callback:void 0}){if(this.element=Z,this.#$=$,this.inView=!1,this.callback=$.callback||(()=>{}),$.autoStart)this.start()}start(){this.#Q=zJ.getInstance().addElement(this.element,this.#$,{isIn:(Z)=>{this.inView=!0,this.isIn?.(Z)},isOut:(Z)=>{this.inView=!1,this.isOut?.(Z)},callback:this.callback})}stop(){zJ.getInstance().removeElement(this.element)}destroy(){this.stop(),this.#J=null,this.#Z=null}}var Q4=(Z)=>{let $=Z.getBoundingClientRect();return{top:$.top+l1.scroll,bottom:$.bottom+l1.scroll,width:$.width,height:$.height,left:$.left,right:$.right,wh:U$.height,ww:U$.width,offset:$.top+l1.scroll,centery:U$.height/2-$.height/2-$.top-l1.scroll,centerx:-U$.width/2+$.left+$.width/2}};function Z4(Z,$,J,Q,K){return Q+(K-Q)*(Z-$)/(J-$)}function K4(Z,$,J){return Math.min(Math.max(J,Z),$)}var f2={bounds:[0,1],top:"bottom",bottom:"top",callback:void 0,useCssProgress:!1};class g6 extends RZ{value=0;init=!1;isIn(Z){this.#Z()}isOut(Z){}bounds;config;resize;handleScroll;#$;#Q;useCssProgress;constructor(Z,$={}){super(Z,{autoStart:!0,once:!1,threshold:0});if(this.element=Z,this.config={...f2,...$},this.element.hasAttribute("data-module-progress")){this.useCssProgress=!0;let Q=this.element.getAttribute("data-module-progress"),K=Q?Q.split(",").map((q)=>q.trim()):[];this.config.offsets=[K[0]||0,K[1]||0]}else this.useCssProgress=this.config.useCssProgress||this.element.hasAttribute("data-scroll-css-progress");this.#J(),this.#$=l1.add(this.#Z.bind(this)),this.#Q=U$.add(this.#J.bind(this)),this.init=!0,this.#Z()}#J=()=>{this.bounds=y2(this.element,this.config),this.resize?.(this.bounds),this.#Z()};#Z(){if(!this.inView||!this.init)return;if(this.value=K4(0,1,Z4(l1.scroll,this.bounds.top,this.bounds.bottom,this.config.bounds[0],this.config.bounds[1])),this.handleScroll?.(this.value),this.config.callback?.(this.value),this.useCssProgress)this.element.style.setProperty("--progress",this.value.toString())}destroy(){this.config.callback=void 0,this.#$(),this.#Q(),super.destroy()}}function q4(Z,$){if(typeof Z==="number")return Z;if(!Z)return 0;if(Z.endsWith("%"))return parseFloat(Z)/100*$;return parseFloat(Z)}function y2(Z,$){let J=Q4(Z),{top:Q,bottom:K,wh:q}=J,U=window.innerHeight,W=q/2,G=0,X=0;if($.offsets)G=q4($.offsets[0],U),X=q4($.offsets[1],U);if(J.top=Q-($.top==="center"?W:$.top==="bottom"?q:0)+G,J.bottom=K-($.bottom==="center"?W:$.bottom==="bottom"?q:0)-X,!Z.hasAttribute("data-scroll-ignore-fold")&&J.top{document.querySelectorAll("[data-module-progress]").forEach(($)=>new g6($))},100);function K5(){let Z=()=>{window.scrollTo(0,0),l1.toTop(),requestAnimationFrame(()=>l1.toTop())};Z(),window.addEventListener("pageshow",Z,{once:!0}),window.addEventListener("load",Z,{once:!0}),Z5(),w6(),u6()}class U4{constructor(){}async transitionOut({from:Z,trigger:$}){await Promise.allSettled([await KH()]),QH(),l1.toTop()}async transitionIn({to:Z,trigger:$}){Z5(),l1.resize(),U$.update(),await Promise.allSettled([await w6()]),u6()}}var W4=new U4;if("scrollRestoration"in history)history.scrollRestoration="manual";class H4{scroll=l1;pages=W4;constructor(){if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",()=>K5(),{once:!0});else K5()}}var G4=new H4;console.log("product");})(); //# debugId=E1AA065C3BEB092A64756E2164756E21