import{jh as uG,kh as FW,lh as j9,mh as sZ}from"./chunk-rrt78xph.js";var hG=FW((Z$,NW)=>{(function(J,Z){if(typeof Z$==="object"&&typeof NW==="object")NW.exports=Z();else if(typeof define==="function"&&define.amd)define([],Z);else if(typeof Z$==="object")Z$.rive=Z();else J.rive=Z()})(Z$,()=>{return(()=>{var Q=[,(K,W,q)=>{q.r(W),q.d(W,{Animation:()=>H.Animation});var H=q(2)},(K,W,q)=>{q.r(W),q.d(W,{Animation:()=>H});var H=function(){function Y(B,z,L,j){this.animation=B,this.artboard=z,this.playing=j,this.loopCount=0,this.scrubTo=null,this.instance=new L.LinearAnimationInstance(B,z)}return Object.defineProperty(Y.prototype,"name",{get:function(){return this.animation.name},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"time",{get:function(){return this.instance.time},set:function(B){this.instance.time=B},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"loopValue",{get:function(){return this.animation.loopValue},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"needsScrub",{get:function(){return this.scrubTo!==null},enumerable:!1,configurable:!0}),Y.prototype.advance=function(B){if(this.scrubTo===null)this.instance.advance(B);else this.instance.time=0,this.instance.advance(this.scrubTo),this.scrubTo=null},Y.prototype.apply=function(B){this.instance.apply(B)},Y.prototype.cleanup=function(){this.instance.delete()},Y}()},(K,W,q)=>{q.r(W),q.d(W,{RuntimeLoader:()=>z});var H=q(4),Y=q(5),B=function(){return B=Object.assign||function(L){for(var j,F=1,R=arguments.length;F0)(F=L.errorCallbackQueue.shift())===null||F===void 0||F(j);L.callBackQueue=[]},L.loadRuntime=function(){var{wasmURL:j,wasmBinary:F}=L;if(L.enablePerfMarks)performance.mark("rive:wasm-init:start");H.default(B({locateFile:function(){return j}},F?{wasmBinary:F}:{})).then(function(R){var D;if(L.enablePerfMarks)performance.mark("rive:wasm-init:end"),performance.measure("rive:wasm-init","rive:wasm-init:start","rive:wasm-init:end");L.runtime=R,L.errorCallbackQueue=[];while(L.callBackQueue.length>0)(D=L.callBackQueue.shift())===null||D===void 0||D(L.runtime)}).catch(function(R){var D={message:(R===null||R===void 0?void 0:R.message)||"Unknown error",type:(R===null||R===void 0?void 0:R.name)||"Error",wasmError:R instanceof WebAssembly.CompileError||R instanceof WebAssembly.RuntimeError,originalError:R};console.debug("Rive WASM load error details:",D);var M=L.wasmFallbackURL,A=M!==null&&j.toLowerCase()===M.toLowerCase();if(M!==null&&!A)console.warn("Failed to load WASM from ".concat(j," (").concat(D.message,"), trying fallback URL: ").concat(M)),L.wasmBinary=null,L.setWasmUrl(M),L.loadRuntime();else{var I=A?"the configured WASM URL or its fallback (".concat(M,")"):j,S=["Could not load Rive WASM file from ".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(D.type),"- Message: ".concat(D.message),"- WebAssembly-specific error: ".concat(D.wasmError),` To resolve, you may need to:`,"1. Check your network connection","2. Set a new WASM source via RuntimeLoader.setWasmUrl()","3. Call RuntimeLoader.awaitInstance() again"].join(` `);console.error(S),L.notifyError(Error(S))}})},L.getInstance=function(j,F){if(!L.isLoading)L.isLoading=!0,L.loadRuntime();if(!L.runtime){if(L.callBackQueue.push(j),F)L.errorCallbackQueue.push(F)}else j(L.runtime)},L.awaitInstance=function(){return new Promise(function(j,F){return L.getInstance(j,F)})},L.setWasmUrl=function(j){L.wasmURL=j},L.getWasmUrl=function(){return L.wasmURL},L.setWasmFallbackUrl=function(j){L.wasmFallbackURL=j},L.getWasmFallbackUrl=function(){return L.wasmFallbackURL},L.setWasmBinary=function(j){if(j instanceof ArrayBuffer||j===null){L.wasmBinary=j;return}console.error("setWasmBinary expects an ArrayBuffer or null")},L.getWasmBinary=function(){return L.wasmBinary},L.isLoading=!1,L.callBackQueue=[],L.wasmURL="https://unpkg.com/".concat(Y.name,"@").concat(Y.version,"/rive.wasm"),L.wasmFallbackURL="https://cdn.jsdelivr.net/npm/".concat(Y.name,"@").concat(Y.version,"/rive_fallback.wasm"),L.wasmBinary=null,L.errorCallbackQueue=[],L.enablePerfMarks=!1,L}()},(K,W,q)=>{q.r(W),q.d(W,{default:()=>Y});var H=(()=>{var B=typeof document<"u"?document.currentScript?.src:void 0;return function(z={}){var L,j=z,F,R,D=new Promise((G,U)=>{F=G,R=U}),M=typeof window=="object",A=typeof importScripts=="function";function I(){function G(u){let g=C;O=U=0,C=new Map,g.forEach((r)=>{try{r(u)}catch(s){console.error(s)}}),this.ob(),k&&k.Rb()}let U=0,O=0,C=new Map,k=null,P=null;this.requestAnimationFrame=function(u){U||=requestAnimationFrame(G.bind(this));let g=++O;return C.set(g,u),g},this.cancelAnimationFrame=function(u){C.delete(u),U&&C.size==0&&(cancelAnimationFrame(U),U=0)},this.Pb=function(u){P&&(document.body.remove(P),P=null),u||(P=document.createElement("div"),P.style.backgroundColor="black",P.style.position="fixed",P.style.right=0,P.style.top=0,P.style.color="white",P.style.padding="4px",P.innerHTML="RIVE FPS",u=function(g){P.innerHTML="RIVE FPS "+g.toFixed(1)},document.body.appendChild(P)),k=new function(){let g=0,r=0;this.Rb=function(){var s=performance.now();r?(++g,s-=r,1000>G,U.has(C)&&clearTimeout(U.get(C)),U.set(C,setTimeout(function(){U.delete(C),U.length==0?O=-1/0:C==O&&(O=Math.max(...U.keys()),console.assert(O{let u=j.ptrToFileAsset(P);return u.isImage?j.ptrToImageAsset(P):u.isFont?j.ptrToFontAsset(P):u.isAudio?j.ptrToAudioAsset(P):u},j.CustomFileAssetLoader=C.extend("CustomFileAssetLoader",{__construct:function({loadContents:P}){this.__parent.__construct.call(this),this.Eb=P},loadContents:function(P,u){return P=j.ptrToAsset(P),this.Eb(P,u)}}),j.CDNFileAssetLoader=C.extend("CDNFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this)},loadContents:function(P){let u=j.ptrToAsset(P);if(P=u.cdnUuid,P==="")return!1;return function(g,r){var s=new XMLHttpRequest;s.responseType="arraybuffer",s.onreadystatechange=function(){s.readyState==4&&s.status==200&&r(s)},s.open("GET",g,!0),s.send(null)}(u.cdnBaseUrl+"/"+P,(g)=>{u.decode(new Uint8Array(g.response))}),!0}}),j.FallbackFileAssetLoader=C.extend("FallbackFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this),this.kb=[]},addLoader:function(P){this.kb.push(P)},loadContents:function(P,u){for(let g of this.kb)if(g.loadContents(P,u))return!0;return!1}});let k=j.computeAlignment;j.computeAlignment=function(P,u,g,r,s=1){return k.call(this,P,u,g,r,s)}};let y="createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "),v=new function(){function G(){if(!U){let p0=function(W1,V0,O1){if(V0=W0.createShader(V0),W0.shaderSource(V0,O1),W0.compileShader(V0),O1=W0.getShaderInfoLog(V0),0<(O1||"").length)throw O1;W0.attachShader(W1,V0)};var m=document.createElement("canvas"),Y0={alpha:1,depth:0,stencil:0,antialias:0,premultipliedAlpha:1,preserveDrawingBuffer:0,powerPreference:"high-performance",failIfMajorPerformanceCaveat:0,enableExtensionsByDefault:1,explicitSwapControl:1,renderViaOffscreenBackBuffer:1};let W0;if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){if(W0=m.getContext("webgl",Y0),O=1,!W0)return console.log("No WebGL support. Image mesh will not be drawn."),!1}else if(W0=m.getContext("webgl2",Y0))O=2;else if(W0=m.getContext("webgl",Y0))O=1;else return console.log("No WebGL support. Image mesh will not be drawn."),!1;if(W0=new Proxy(W0,{get(W1,V0){if(W1.isContextLost()){if(r||(console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ",V0),r=!0),typeof W1[V0]==="function")return function(){}}else return typeof W1[V0]==="function"?function(...O1){return W1[V0].apply(W1,O1)}:W1[V0]},set(W1,V0,O1){if(W1.isContextLost())r||(console.error("Cannot render the mesh because the GL Context was lost. Tried to set property "+V0),r=!0);else return W1[V0]=O1,!0}}),C=Math.min(W0.getParameter(W0.MAX_RENDERBUFFER_SIZE),W0.getParameter(W0.MAX_TEXTURE_SIZE)),m=W0.createProgram(),p0(m,W0.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); }`),p0(m,W0.FRAGMENT_SHADER,`precision highp float; uniform sampler2D image; varying vec2 st; void main() { gl_FragColor = texture2D(image, st); }`),W0.bindAttribLocation(m,0,"vertex"),W0.bindAttribLocation(m,1,"uv"),W0.linkProgram(m),Y0=W0.getProgramInfoLog(m),0<(Y0||"").trim().length)throw Y0;k=W0.getUniformLocation(m,"mat"),P=W0.getUniformLocation(m,"translate"),W0.useProgram(m),W0.bindBuffer(W0.ARRAY_BUFFER,W0.createBuffer()),W0.enableVertexAttribArray(0),W0.enableVertexAttribArray(1),W0.bindBuffer(W0.ELEMENT_ARRAY_BUFFER,W0.createBuffer()),W0.uniform1i(W0.getUniformLocation(m,"image"),0),W0.pixelStorei(W0.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),U=W0}return!0}let U=null,O=0,C=0,k=null,P=null,u=0,g=0,r=!1;G(),this.cc=function(){return G(),C},this.Lb=function(m){U.deleteTexture&&U.deleteTexture(m)},this.Kb=function(m){if(!G())return null;let Y0=U.createTexture();if(!Y0)return null;return U.bindTexture(U.TEXTURE_2D,Y0),U.texImage2D(U.TEXTURE_2D,0,U.RGBA,U.RGBA,U.UNSIGNED_BYTE,m),U.texParameteri(U.TEXTURE_2D,U.TEXTURE_WRAP_S,U.CLAMP_TO_EDGE),U.texParameteri(U.TEXTURE_2D,U.TEXTURE_WRAP_T,U.CLAMP_TO_EDGE),U.texParameteri(U.TEXTURE_2D,U.TEXTURE_MAG_FILTER,U.LINEAR),O==2?(U.texParameteri(U.TEXTURE_2D,U.TEXTURE_MIN_FILTER,U.LINEAR_MIPMAP_LINEAR),U.generateMipmap(U.TEXTURE_2D)):U.texParameteri(U.TEXTURE_2D,U.TEXTURE_MIN_FILTER,U.LINEAR),Y0};let s=new S(8),H0=new S(8),M0=new S(10),A0=new S(10);this.Ob=function(m,Y0,W0,p0,W1){if(G()){var V0=s.push(m),O1=H0.push(Y0);if(U.canvas){if(U.canvas.width!=V0||U.canvas.height!=O1)U.canvas.width=V0,U.canvas.height=O1;U.viewport(0,O1-Y0,m,Y0),U.disable(U.SCISSOR_TEST),U.clearColor(0,0,0,0),U.clear(U.COLOR_BUFFER_BIT),U.enable(U.SCISSOR_TEST),W0.sort((U1,x8)=>x8.vb-U1.vb),V0=M0.push(p0),u!=V0&&(U.bufferData(U.ARRAY_BUFFER,8*V0,U.DYNAMIC_DRAW),u=V0),V0=0;for(var W9 of W0)U.bufferSubData(U.ARRAY_BUFFER,V0,W9.Ta),V0+=4*W9.Ta.length;console.assert(V0==4*p0);for(var a9 of W0)U.bufferSubData(U.ARRAY_BUFFER,V0,a9.Bb),V0+=4*a9.Bb.length;console.assert(V0==8*p0),V0=A0.push(W1),g!=V0&&(U.bufferData(U.ELEMENT_ARRAY_BUFFER,2*V0,U.DYNAMIC_DRAW),g=V0),W9=0;for(var yJ of W0)U.bufferSubData(U.ELEMENT_ARRAY_BUFFER,W9,yJ.indices),W9+=2*yJ.indices.length;console.assert(W9==2*W1),yJ=0,a9=!0,V0=W9=0;for(let U1 of W0){U1.image.Ja!=yJ&&(U.bindTexture(U.TEXTURE_2D,U1.image.Ia||null),yJ=U1.image.Ja),U1.ic?(U.scissor(U1.Za,O1-U1.$a-U1.jb,U1.vc,U1.jb),a9=!0):a9&&(U.scissor(0,O1-Y0,m,Y0),a9=!1),W0=2/m;let x8=-2/Y0;U.uniform4f(k,U1.ha[0]*W0*U1.Aa,U1.ha[1]*x8*U1.Ba,U1.ha[2]*W0*U1.Aa,U1.ha[3]*x8*U1.Ba),U.uniform2f(P,U1.ha[4]*W0*U1.Aa+W0*(U1.Za-U1.dc*U1.Aa)-1,U1.ha[5]*x8*U1.Ba+x8*(U1.$a-U1.ec*U1.Ba)+1),U.vertexAttribPointer(0,2,U.FLOAT,!1,0,V0),U.vertexAttribPointer(1,2,U.FLOAT,!1,0,V0+4*p0),U.drawElements(U.TRIANGLES,U1.indices.length,U.UNSIGNED_SHORT,W9),V0+=4*U1.Ta.length,W9+=2*U1.indices.length}console.assert(V0==4*p0),console.assert(W9==2*W1)}}},this.canvas=function(){return G()&&U.canvas}},w=j.onRuntimeInitialized;j.onRuntimeInitialized=function(){function G($0){switch($0){case s.srcOver:return"source-over";case s.screen:return"screen";case s.overlay:return"overlay";case s.darken:return"darken";case s.lighten:return"lighten";case s.colorDodge:return"color-dodge";case s.colorBurn:return"color-burn";case s.hardLight:return"hard-light";case s.softLight:return"soft-light";case s.difference:return"difference";case s.exclusion:return"exclusion";case s.multiply:return"multiply";case s.hue:return"hue";case s.saturation:return"saturation";case s.color:return"color";case s.luminosity:return"luminosity"}}function U($0){return"rgba("+((16711680&$0)>>>16)+","+((65280&$0)>>>8)+","+((255&$0)>>>0)+","+((4278190080&$0)>>>24)/255+")"}function O(){0$0)throw"restore() called without matching save().";this.T.splice($0),this.G.pop(),this.I.push(this.B.restore.bind(this.B))},transform:function($0,N0,q1,$1,u0,Q1){let l0=this.T,V1=l0.length-6;l0.splice(V1,6,l0[V1]*$0+l0[V1+2]*N0,l0[V1+1]*$0+l0[V1+3]*N0,l0[V1]*q1+l0[V1+2]*$1,l0[V1+1]*q1+l0[V1+3]*$1,l0[V1]*u0+l0[V1+2]*Q1+l0[V1+4],l0[V1+1]*u0+l0[V1+3]*Q1+l0[V1+5]),this.I.push(this.B.transform.bind(this.B,$0,N0,q1,$1,u0,Q1))},rotate:function($0){let N0=Math.sin($0);$0=Math.cos($0),this.transform($0,N0,-N0,$0,0,0)},modulateOpacity:function($0){this.G[this.G.length-1]*=$0},_drawPath:function($0,N0){this.I.push(N0.draw.bind(N0,this.B,$0.U,$0.Va===A0?"evenodd":"nonzero",Math.max(0,this.G[this.G.length-1])))},_drawRiveImage:function($0,N0,q1,$1){var u0=$0.Db;if(u0){var Q1=this.B,l0=G(q1),V1=Math.max(0,$1*this.G[this.G.length-1]);this.I.push(function(){Q1.globalCompositeOperation=l0,Q1.globalAlpha=V1,Q1.drawImage(u0,0,0),Q1.globalAlpha=1})}},_getMatrix:function($0){let N0=this.T,q1=N0.length-6;for(let $1=0;6>$1;++$1)$0[$1]=N0[q1+$1]},_drawImageMesh:function($0,N0,q1,$1,u0,Q1,l0,V1,L7,T9,F8,i8,R8,h8){let Tq,Sq,wq;try{Tq=j.HEAPF32.slice(u0>>2,(u0>>2)+Q1),Sq=j.HEAPF32.slice(l0>>2,(l0>>2)+V1),wq=j.HEAPU16.slice(L7>>1,(L7>>1)+T9)}catch(LK){console.error("[Rive] _drawImageMesh: failed to read mesh data from WASM heap. Mesh skipped for this frame.");return}N0=this.B.canvas.width,u0=this.B.canvas.height,l0=R8-F8,V1=h8-i8,F8=Math.max(F8,0),i8=Math.max(i8,0),R8=Math.min(R8,N0),h8=Math.min(h8,u0);let JZ=R8-F8,ZZ=h8-i8;if(console.assert(JZ<=Math.min(l0,N0)),console.assert(ZZ<=Math.min(V1,u0)),!(0>=JZ||0>=ZZ)){R8=JZu0&&(h8*=u0/_J,_J=u0),uJ>u0&&(N0*=u0/uJ,uJ=u0),V0||(V0=new j.DynamicRectanizer(u0),V0.reset(512,512)),u0=V0.addRect(_J,uJ),0>u0&&(O(),W1.add(this),u0=V0.addRect(_J,uJ),console.assert(0<=u0));var bq=u0&65535,xq=u0>>16;O1.push({ha:this.T.slice(this.T.length-6),image:$0,Za:bq,$a:xq,dc:F8,ec:i8,vc:_J,jb:uJ,Aa:h8,Ba:N0,Ta:Tq,Bb:Sq,indices:wq,ic:R8,vb:$0.Ja<<1|(R8?1:0)}),W9+=Q1,a9+=T9;var O7=this.B,dX=G(q1),mX=Math.max(0,$1*this.G[this.G.length-1]);this.I.push(function(){O7.save(),O7.resetTransform(),O7.globalCompositeOperation=dX,O7.globalAlpha=mX;let LK=v.canvas();LK&&O7.drawImage(LK,bq,xq,_J,uJ,F8,i8,JZ,ZZ),O7.restore()})}},_clipPath:function($0){this.I.push(this.B.clip.bind(this.B,$0.U,$0.Va===A0?"evenodd":"nonzero"))},clear:function(){W1.add(this),this.I.push(this.B.clearRect.bind(this.B,0,0,this.Ua.width,this.Ua.height))},flush:function(){},translate:function($0,N0){this.transform(1,0,0,1,$0,N0)}});j.makeRenderer=function($0){let N0=new yJ($0),q1=N0.B;return new Proxy(N0,{get($1,u0){if(typeof $1[u0]==="function")return function(...Q1){return $1[u0].apply($1,Q1)};if(typeof q1[u0]==="function"){if(-1{q1[u0]=Q1}),!0}})},j.decodeImage=function($0,N0){new Y0({la:N0}).decode($0)},j.renderFactory={makeRenderPaint:function(){return new p0},makeRenderPath:function(){return new W0},makeRenderImage:function(){let $0=x8;return new Y0({wa:()=>{$0.total++},la:()=>{if($0.loaded++,$0.loaded===$0.total){let N0=$0.ready;N0&&(N0(),$0.ready=null)}}})}};let U1=j.load,x8=null;j.load=function($0,N0,q1=!0){let $1=new j.FallbackFileAssetLoader;return N0!==void 0&&$1.addLoader(N0),q1&&(N0=new j.CDNFileAssetLoader,$1.addLoader(N0)),new Promise(function(u0){let Q1=null;x8={total:0,loaded:0,ready:function(){u0(Q1)}},Q1=U1($0,$1),x8.total==0&&u0(Q1)})};let gX=j.RendererWrapper.prototype.align;j.RendererWrapper.prototype.align=function($0,N0,q1,$1,u0=1){gX.call(this,$0,N0,q1,$1,u0)},C=new I,j.requestAnimationFrame=C.requestAnimationFrame.bind(C),j.cancelAnimationFrame=C.cancelAnimationFrame.bind(C),j.enableFPSCounter=C.Pb.bind(C),j.disableFPSCounter=C.Mb,C.ob=O,j.resolveAnimationFrame=O,j.cleanup=function(){V0&&V0.delete()}};var b=Object.assign({},j),f="./this.program",T="",n,l;if(M||A)A?T=self.location.href:typeof document<"u"&&document.currentScript&&(T=document.currentScript.src),B&&(T=B),T.startsWith("blob:")?T="":T=T.substr(0,T.replace(/[?#].*/,"").lastIndexOf("/")+1),A&&(l=(G)=>{var U=new XMLHttpRequest;return U.open("GET",G,!1),U.responseType="arraybuffer",U.send(null),new Uint8Array(U.response)}),n=(G,U,O)=>{if(K1(G)){var C=new XMLHttpRequest;C.open("GET",G,!0),C.responseType="arraybuffer",C.onload=()=>{C.status==200||C.status==0&&C.response?U(C.response):O()},C.onerror=O,C.send(null)}else fetch(G,{credentials:"same-origin"}).then((k)=>k.ok?k.arrayBuffer():Promise.reject(Error(k.status+" : "+k.url))).then(U,O)};var Q0=j.print||console.log.bind(console),c=j.printErr||console.error.bind(console);Object.assign(j,b),b=null,j.thisProgram&&(f=j.thisProgram);var p;j.wasmBinary&&(p=j.wasmBinary);var i,Z0=!1,a,J0,x,q0,e,U0,R0,D0;function L0(){var G=i.buffer;j.HEAP8=a=new Int8Array(G),j.HEAP16=x=new Int16Array(G),j.HEAPU8=J0=new Uint8Array(G),j.HEAPU16=q0=new Uint16Array(G),j.HEAP32=e=new Int32Array(G),j.HEAPU32=U0=new Uint32Array(G),j.HEAPF32=R0=new Float32Array(G),j.HEAPF64=D0=new Float64Array(G)}var T0=[],P0=[],_0=[];function x0(){var G=j.preRun.shift();T0.unshift(G)}var k0=0,X0=null,G0=null;function C0(G){throw j.onAbort?.(G),G="Aborted("+G+")",c(G),Z0=!0,G=new WebAssembly.RuntimeError(G+". Build with -sASSERTIONS for more info."),R(G),G}var m0=(G)=>G.startsWith("data:application/octet-stream;base64,"),K1=(G)=>G.startsWith("file://"),o;function t0(G){if(G==o&&p)return new Uint8Array(p);if(l)return l(G);throw"both async and sync fetching of the wasm failed"}function s0(G){return p?Promise.resolve().then(()=>t0(G)):new Promise((U,O)=>{n(G,(C)=>U(new Uint8Array(C)),()=>{try{U(t0(G))}catch(C){O(C)}})})}function N1(G,U,O){return s0(G).then((C)=>WebAssembly.instantiate(C,U)).then(O,(C)=>{c(`failed to asynchronously prepare wasm: ${C}`),C0(C)})}function i0(G,U){var O=o;return p||typeof WebAssembly.instantiateStreaming!="function"||m0(O)||K1(O)||typeof fetch!="function"?N1(O,G,U):fetch(O,{credentials:"same-origin"}).then((C)=>WebAssembly.instantiateStreaming(C,G).then(U,function(k){return c(`wasm streaming compile failed: ${k}`),c("falling back to ArrayBuffer instantiation"),N1(O,G,U)}))}var B0,f0,V={485917:(G,U,O,C,k)=>{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=G,window.h.J.capture=U,window.h.J.Ka=O,window.h.ga={},window.h.ga.stopped=C,window.h.ga.wb=k;let P=window.h;P.D=[],P.tc=function(u){for(var g=0;g{Vq(g.pb)},(r)=>{console.error("Failed to resume audiocontext",r)})}P.Sa.map(function(r){document.removeEventListener(r,P.unlock,!0)})},P.Sa.map(function(u){document.addEventListener(u,P.unlock,!0)})}return window.h.za+=1,1},488095:()=>{typeof window.h<"u"&&(window.h.Sa.map(function(G){document.removeEventListener(G,window.h.unlock,!0)}),--window.h.za,window.h.za===0&&delete window.h)},488399:()=>navigator.mediaDevices!==void 0&&navigator.mediaDevices.getUserMedia!==void 0,488503:()=>{try{var G=new(window.AudioContext||window.webkitAudioContext),U=G.sampleRate;return G.close(),U}catch(O){return 0}},488674:(G,U,O,C,k,P)=>{if(typeof window.h>"u")return-1;var u={},g={};return G==window.h.J.xa&&O!=0&&(g.sampleRate=O),u.L=new(window.AudioContext||window.webkitAudioContext)(g),u.L.suspend(),u.state=window.h.ga.stopped,O=0,G!=window.h.J.xa&&(O=U),u.Z=u.L.createScriptProcessor(C,O,U),u.Z.onaudioprocess=function(r){if(u.ra==null||u.ra.length==0)u.ra=new Float32Array(R0.buffer,k,C*U);if(G==window.h.J.capture||G==window.h.J.Ka){for(var s=0;swindow.h.qa(G).L.sampleRate,491624:(G)=>{G=window.h.qa(G),G.Z!==void 0&&(G.Z.onaudioprocess=function(){},G.Z.disconnect(),G.Z=void 0),G.Ca!==void 0&&(G.Ca.disconnect(),G.Ca=void 0),G.L.close(),G.L=void 0,G.pb=void 0},492024:(G)=>{window.h.Ab(G)},492074:(G)=>{G=window.h.qa(G),G.L.resume(),G.state=window.h.ga.wb},492213:(G)=>{G=window.h.qa(G),G.L.suspend(),G.state=window.h.ga.stopped}},X=(G)=>{for(;0>2];return o7+=4,G}var E=(G,U)=>{for(var O=0,C=G.length-1;0<=C;C--){var k=G[C];k==="."?G.splice(C,1):k===".."?(G.splice(C,1),O++):O&&(G.splice(C,1),O--)}if(U)for(;O;O--)G.unshift("..");return G},_=(G)=>{var U=G.charAt(0)==="/",O=G.substr(-1)==="/";return(G=E(G.split("/").filter((C)=>!!C),!U).join("/"))||U||(G="."),G&&O&&(G+="/"),(U?"/":"")+G},d=(G)=>{var U=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(G).slice(1);if(G=U[0],U=U[1],!G&&!U)return".";return U&&=U.substr(0,U.length-1),G+U},t=(G)=>{if(G==="/")return"/";G=_(G),G=G.replace(/\/$/,"");var U=G.lastIndexOf("/");return U===-1?G:G.substr(U+1)},F0=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return(G)=>crypto.getRandomValues(G);C0("initRandomDevice")},j0=(G)=>(j0=F0())(G),z0=(...G)=>{for(var U="",O=!1,C=G.length-1;-1<=C&&!O;C--){if(O=0<=C?G[C]:"/",typeof O!="string")throw TypeError("Arguments to path.resolve must be strings");if(!O)return"";U=O+"/"+U,O=O.charAt(0)==="/"}return U=E(U.split("/").filter((k)=>!!k),!O).join("/"),(O?"/":"")+U||"."},I0=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,c0=(G,U,O)=>{var C=U+O;for(O=U;G[O]&&!(O>=C);)++O;if(16k?C+=String.fromCharCode(k):(k-=65536,C+=String.fromCharCode(55296|k>>10,56320|k&1023))}}else C+=String.fromCharCode(k)}return C},F1=[],H1=(G)=>{for(var U=0,O=0;O=C?U++:2047>=C?U+=2:55296<=C&&57343>=C?(U+=4,++O):U+=3}return U},L1=(G,U,O,C)=>{if(!(0=u){var g=G.charCodeAt(++P);u=65536+((u&1023)<<10)|g&1023}if(127>=u){if(O>=C)break;U[O++]=u}else{if(2047>=u){if(O+1>=C)break;U[O++]=192|u>>6}else{if(65535>=u){if(O+2>=C)break;U[O++]=224|u>>12}else{if(O+3>=C)break;U[O++]=240|u>>18,U[O++]=128|u>>12&63}U[O++]=128|u>>6&63}U[O++]=128|u&63}}return U[O]=0,O-k};function S0(G,U){var O=Array(H1(G)+1);return G=L1(G,O,0,O.length),U&&(O.length=G),O}var s1=[];function k1(G,U){s1[G]={input:[],H:[],W:U},UJ(G,R1)}var R1={open(G){var U=s1[G.node.ya];if(!U)throw new K0(43);G.s=U,G.seekable=!1},close(G){G.s.W.pa(G.s)},pa(G){G.s.W.pa(G.s)},read(G,U,O,C){if(!G.s||!G.s.W.ib)throw new K0(60);for(var k=0,P=0;P=U||(U=Math.max(U,O*(1048576>O?2:1.125)>>>0),O!=0&&(U=Math.max(U,256)),O=G.l,G.l=new Uint8Array(U),0=G.node.v)return 0;if(G=Math.min(G.node.v-k,C),8U)throw new K0(28);return U},Ya(G,U,O){N9(G.node,U+O),G.node.v=Math.max(G.node.v,U+O)},lb(G,U,O,C,k){if((G.node.mode&61440)!==32768)throw new K0(43);if(G=G.node.l,k&2||G.buffer!==a.buffer){if(0{var O=0;return G&&(O|=365),U&&(O|=146),O},v0=null,h0={},J1=[],O0=1,y0=null,w0=!0,K0=class{constructor(G){this.name="ErrnoError",this.aa=G}},d1={},Z1=class{constructor(){this.h={},this.node=null}get flags(){return this.h.flags}set flags(G){this.h.flags=G}get position(){return this.h.position}set position(G){this.h.position=G}},h1=class{constructor(G,U,O,C){G||=this,this.parent=G,this.V=G.V,this.va=null,this.id=O0++,this.name=U,this.mode=O,this.j={},this.m={},this.ya=C}get read(){return(this.mode&365)===365}set read(G){G?this.mode|=365:this.mode&=-366}get write(){return(this.mode&146)===146}set write(G){G?this.mode|=146:this.mode&=-147}};function w1(G,U={}){if(G=z0(G),!G)return{path:"",node:null};if(U=Object.assign({hb:!0,Pa:0},U),8!!u);for(var O=v0,C="/",k=0;k>>0)%y0.length}function Y1(G,U){var O=(G.mode&61440)===16384?(O=Q9(G,"x"))?O:G.j.ka?0:2:54;if(O)throw new K0(O);for(O=y0[D1(G.id,U)];O;O=O.hc){var C=O.name;if(O.parent.id===G.id&&C===U)return O}return G.j.ka(G,U)}function u9(G,U,O,C){return G=new h1(G,U,O,C),U=D1(G.parent.id,G.name),G.hc=y0[U],y0[U]=G}function A1(G){var U=["r","w","rw"][G&3];return G&512&&(U+="w"),U}function Q9(G,U){if(w0)return 0;if(!U.includes("r")||G.mode&292){if(U.includes("w")&&!(G.mode&146)||U.includes("x")&&!(G.mode&73))return 2}else return 2;return 0}function n9(G,U){try{return Y1(G,U),20}catch(O){}return Q9(G,"wx")}function I1(G){if(G=J1[G],!G)throw new K0(8);return G}function r1(G,U=-1){if(G=Object.assign(new Z1,G),U==-1)J:{for(U=0;4096>=U;U++)if(!J1[U])break J;throw new K0(33)}return G.X=U,J1[U]=G}function K9(G,U=-1){return G=r1(G,U),G.m?.Kc?.(G),G}var c8={open(G){G.m=h0[G.node.ya].m,G.m.open?.(G)},ba(){throw new K0(70)}};function UJ(G,U){h0[G]={m:U}}function J9(G,U){var O=U==="/";if(O&&v0)throw new K0(10);if(!O&&U){var C=w1(U,{hb:!1});if(U=C.path,C=C.node,C.va)throw new K0(10);if((C.mode&61440)!==16384)throw new K0(54)}U={type:G,Tc:{},mb:U,fc:[]},G=G.V(U),G.V=U,U.root=G,O?v0=G:C&&(C.va=U,C.V&&C.V.fc.push(U))}function f1(G,U,O){var C=w1(G,{parent:!0}).node;if(G=t(G),!G||G==="."||G==="..")throw new K0(28);var k=n9(C,G);if(k)throw new K0(k);if(!C.j.ua)throw new K0(63);return C.j.ua(C,G,U,O)}function a1(G){return f1(G,16895,0)}function XJ(G,U,O){typeof O>"u"&&(O=U,U=438),f1(G,U|8192,O)}function Y7(G,U){if(!z0(G))throw new K0(44);var O=w1(U,{parent:!0}).node;if(!O)throw new K0(44);U=t(U);var C=n9(O,U);if(C)throw new K0(C);if(!O.j.Da)throw new K0(63);O.j.Da(O,U,G)}function bJ(G){if(G=w1(G).node,!G)throw new K0(44);if(!G.j.ma)throw new K0(28);return z0(P1(G.parent),G.j.ma(G))}function P9(G,U,O){if(G==="")throw new K0(44);if(typeof U=="string"){var C={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[U];if(typeof C>"u")throw Error(`Unknown file open mode: ${U}`);U=C}if(O=U&64?(typeof O>"u"?438:O)&4095|32768:0,typeof G=="object")var k=G;else{G=_(G);try{k=w1(G,{gb:!(U&131072)}).node}catch(P){}}if(C=!1,U&64)if(k){if(U&128)throw new K0(20)}else k=f1(G,O,0),C=!0;if(!k)throw new K0(44);if((k.mode&61440)===8192&&(U&=-513),U&65536&&(k.mode&61440)!==16384)throw new K0(54);if(!C&&(O=k?(k.mode&61440)===40960?32:(k.mode&61440)===16384&&(A1(U)!=="r"||U&512)?31:Q9(k,A1(U)):44))throw new K0(O);if(U&512&&!C){if(O=k,O=typeof O=="string"?w1(O,{gb:!0}).node:O,!O.j.R)throw new K0(63);if((O.mode&61440)===16384)throw new K0(31);if((O.mode&61440)!==32768)throw new K0(28);if(C=Q9(O,"w"))throw new K0(C);O.j.R(O,{size:0,timestamp:Date.now()})}return U&=-131713,k=r1({node:k,path:P1(k),flags:U,seekable:!0,position:0,m:k.m,uc:[],error:!1}),k.m.open&&k.m.open(k),!j.logReadFiles||U&1||(tQ||={},(G in tQ)||(tQ[G]=1)),k}function YJ(G,U,O){if(G.X===null)throw new K0(8);if(!G.seekable||!G.m.ba)throw new K0(70);if(O!=0&&O!=1&&O!=2)throw new K0(28);G.position=G.m.ba(G,U,O),G.uc=[]}var xJ;function v9(G,U,O){G=_("/dev/"+G);var C=e0(!!U,!!O);$q||=64;var k=$q++<<8|0;UJ(k,{open(P){P.seekable=!1},close(){O?.buffer?.length&&O(10)},read(P,u,g,r){for(var s=0,H0=0;H0Object.defineProperty(U,"name",{value:G}),eQ=[],p8=[],g0,N8=(G)=>{if(!G)throw new g0("Cannot use deleted val. handle = "+G);return p8[G]},w8=(G)=>{switch(G){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:let U=eQ.pop()||p8.length;return p8[U]=G,p8[U+1]=1,U}},Qq=(G)=>{var U=Error,O=B7(G,function(C){this.name=G,this.message=C,C=Error(C).stack,C!==void 0&&(this.stack=this.toString()+` `+C.replace(/^Error(:[^\n]*)?\n/,""))});return O.prototype=Object.create(U.prototype),O.prototype.constructor=O,O.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},O},Kq,Wq,i1=(G)=>{for(var U="";J0[G];)U+=Wq[J0[G++]];return U},s7=[],JK=()=>{for(;s7.length;){var G=s7.pop();G.g.fa=!1,G.delete()}},i7,l8={},ZK=(G,U)=>{if(U===void 0)throw new g0("ptr should not be undefined");for(;G.C;)U=G.na(U),G=G.C;return U},fJ={},qq=(G)=>{G=Cq(G);var U=i1(G);return s8(G),U},n7=(G,U)=>{var O=fJ[G];if(O===void 0)throw G=`${U} has unknown type ${qq(G)}`,new g0(G);return O},B$=()=>{},$K=!1,Hq=(G,U,O)=>{if(U===O)return G;if(O.C===void 0)return null;return G=Hq(G,U,O.C),G===null?null:O.Nb(G)},Gq={},jX=(G,U)=>{return U=ZK(G,U),l8[U]},r7,j$=(G,U)=>{if(!U.u||!U.o)throw new r7("makeClassHandle requires ptr and ptrType");if(!!U.K!==!!U.F)throw new r7("Both smartPtrType and smartPtr must be specified");return U.count={value:1},j7(Object.create(G,{g:{value:U,writable:!0}}))},j7=(G)=>{if(typeof FinalizationRegistry>"u")return j7=(U)=>U,G;return $K=new FinalizationRegistry((U)=>{U=U.g,--U.count.value,U.count.value===0&&(U.F?U.K.P(U.F):U.u.i.P(U.o))}),j7=(U)=>{var O=U.g;return O.F&&$K.register(U,{g:O},U),U},B$=(U)=>{$K.unregister(U)},j7(G)},z$={},a7=(G)=>{for(;G.length;){var U=G.pop();G.pop()(U)}};function t7(G){return this.fromWireType(U0[G>>2])}var z7={},L$={},r9=(G,U,O)=>{function C(g){if(g=O(g),g.length!==G.length)throw new r7("Mismatched type converter count");for(var r=0;r{fJ.hasOwnProperty(g)?k[r]=fJ[g]:(P.push(g),z7.hasOwnProperty(g)||(z7[g]=[]),z7[g].push(()=>{k[r]=fJ[g],++u,u===P.length&&C(k)}))}),P.length===0&&C(k)};function zX(G,U,O={}){var C=U.name;if(!G)throw new g0(`type "${C}" must have a positive integer typeid pointer`);if(fJ.hasOwnProperty(G)){if(O.Xb)return;throw new g0(`Cannot register type '${C}' twice`)}fJ[G]=U,delete L$[G],z7.hasOwnProperty(G)&&(U=z7[G],delete z7[G],U.forEach((k)=>k()))}function b8(G,U,O={}){if(!("argPackAdvance"in U))throw TypeError("registerType registeredInstance requires argPackAdvance");return zX(G,U,O)}var QK=(G)=>{throw new g0(G.g.u.i.name+" instance already deleted")};function O$(){}var KK=(G,U,O)=>{if(G[U].A===void 0){var C=G[U];G[U]=function(...k){if(!G[U].A.hasOwnProperty(k.length))throw new g0(`Function '${O}' called with an invalid number of arguments (${k.length}) - expects one of (${G[U].A})!`);return G[U].A[k.length].apply(this,k)},G[U].A=[],G[U].A[C.ea]=C}},WK=(G,U,O)=>{if(j.hasOwnProperty(G)){if(O===void 0||j[G].A!==void 0&&j[G].A[O]!==void 0)throw new g0(`Cannot register public name '${G}' twice`);if(KK(j,G,G),j.hasOwnProperty(O))throw new g0(`Cannot register multiple overloads of a function with the same number of arguments (${O})!`);j[G].A[O]=U}else j[G]=U,O!==void 0&&(j[G].Sc=O)},LX=(G)=>{if(G===void 0)return"_unknown";G=G.replace(/[^a-zA-Z0-9_]/g,"$");var U=G.charCodeAt(0);return 48<=U&&57>=U?`_${G}`:G};function OX(G,U,O,C,k,P,u,g){this.name=G,this.constructor=U,this.N=O,this.P=C,this.C=k,this.Sb=P,this.na=u,this.Nb=g,this.qb=[]}var N$=(G,U,O)=>{for(;U!==O;){if(!U.na)throw new g0(`Expected null or instance of ${O.name}, got an instance of ${U.name}`);G=U.na(G),U=U.C}return G};function NX(G,U){if(U===null){if(this.Ma)throw new g0(`null is not a valid ${this.name}`);return 0}if(!U.g)throw new g0(`Cannot pass "${UK(U)}" as a ${this.name}`);if(!U.g.o)throw new g0(`Cannot pass deleted object as a pointer of type ${this.name}`);return N$(U.g.o,U.g.u.i,this.i)}function FX(G,U){if(U===null){if(this.Ma)throw new g0(`null is not a valid ${this.name}`);if(this.ta){var O=this.Oa();return G!==null&&G.push(this.P,O),O}return 0}if(!U||!U.g)throw new g0(`Cannot pass "${UK(U)}" as a ${this.name}`);if(!U.g.o)throw new g0(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.sa&&U.g.u.sa)throw new g0(`Cannot convert argument of type ${U.g.K?U.g.K.name:U.g.u.name} to parameter type ${this.name}`);if(O=N$(U.g.o,U.g.u.i,this.i),this.ta){if(U.g.F===void 0)throw new g0("Passing raw pointer to smart pointer is illegal");switch(this.oc){case 0:if(U.g.K===this)O=U.g.F;else throw new g0(`Cannot convert argument of type ${U.g.K?U.g.K.name:U.g.u.name} to parameter type ${this.name}`);break;case 1:O=U.g.F;break;case 2:if(U.g.K===this)O=U.g.F;else{var C=U.clone();O=this.kc(O,w8(()=>C.delete())),G!==null&&G.push(this.P,O)}break;default:throw new g0("Unsupporting sharing policy")}}return O}function RX(G,U){if(U===null){if(this.Ma)throw new g0(`null is not a valid ${this.name}`);return 0}if(!U.g)throw new g0(`Cannot pass "${UK(U)}" as a ${this.name}`);if(!U.g.o)throw new g0(`Cannot pass deleted object as a pointer of type ${this.name}`);if(U.g.u.sa)throw new g0(`Cannot convert argument of type ${U.g.u.name} to parameter type ${this.name}`);return N$(U.g.o,U.g.u.i,this.i)}function F$(G,U,O,C,k,P,u,g,r,s,H0){this.name=G,this.i=U,this.Ma=O,this.sa=C,this.ta=k,this.jc=P,this.oc=u,this.rb=g,this.Oa=r,this.kc=s,this.P=H0,k||U.C!==void 0?this.toWireType=FX:(this.toWireType=C?NX:RX,this.M=null)}var Uq=(G,U,O)=>{if(!j.hasOwnProperty(G))throw new r7("Replacing nonexistent public symbol");j[G].A!==void 0&&O!==void 0?j[G].A[O]=U:(j[G]=U,j[G].ea=O)},R$=[],Xq,qK=(G)=>{var U=R$[G];return U||(G>=R$.length&&(R$.length=G+1),R$[G]=U=Xq.get(G)),U},DX=(G,U,O=[])=>{return G.includes("j")?(G=G.replace(/p/g,"i"),U=(0,j["dynCall_"+G])(U,...O)):U=qK(U)(...O),U},CX=(G,U)=>(...O)=>DX(G,U,O),F9=(G,U)=>{G=i1(G);var O=G.includes("j")?CX(G,U):qK(U);if(typeof O!="function")throw new g0(`unknown function pointer with signature ${G}: ${U}`);return O},Yq,o8=(G,U)=>{function O(P){k[P]||fJ[P]||(L$[P]?L$[P].forEach(O):(C.push(P),k[P]=!0))}var C=[],k={};throw U.forEach(O),new Yq(`${G}: `+C.map(qq).join([", "]))};function VX(G){for(var U=1;UP)throw new g0("argTypes array size mismatch! Must at least get return value and 'this' types!");var u=U[1]!==null&&O!==null,g=VX(U),r=U[0].name!=="void",s=P-2,H0=Array(s),M0=[],A0=[];return B7(G,function(...m){if(m.length!==s)throw new g0(`function ${G} called with ${m.length} arguments, expected ${s}`);if(A0.length=0,M0.length=u?2:1,M0[0]=k,u){var Y0=U[1].toWireType(A0,this);M0[1]=Y0}for(var W0=0;W0{for(var O=[],C=0;C>2]);return O},HK=(G)=>{G=G.trim();let U=G.indexOf("(");return U!==-1?G.substr(0,U):G},Bq=(G,U,O)=>{if(!(G instanceof Object))throw new g0(`${O} with invalid "this": ${G}`);if(!(G instanceof U.i.constructor))throw new g0(`${O} incompatible with "this" of type ${G.constructor.name}`);if(!G.g.o)throw new g0(`cannot call emscripten binding method ${O} on deleted object`);return N$(G.g.o,G.g.u.i,U.i)},GK=(G)=>{9{var U=N8(G);return GK(G),U},toWireType:(G,U)=>w8(U),argPackAdvance:8,readValueFromPointer:t7,M:null},EX=(G,U,O)=>{switch(U){case 1:return O?function(C){return this.fromWireType(a[C])}:function(C){return this.fromWireType(J0[C])};case 2:return O?function(C){return this.fromWireType(x[C>>1])}:function(C){return this.fromWireType(q0[C>>1])};case 4:return O?function(C){return this.fromWireType(e[C>>2])}:function(C){return this.fromWireType(U0[C>>2])};default:throw TypeError(`invalid integer width (${U}): ${G}`)}},UK=(G)=>{if(G===null)return"null";var U=typeof G;return U==="object"||U==="array"||U==="function"?G.toString():""+G},kX=(G,U)=>{switch(U){case 4:return function(O){return this.fromWireType(R0[O>>2])};case 8:return function(O){return this.fromWireType(D0[O>>3])};default:throw TypeError(`invalid float width (${U}): ${G}`)}},AX=(G,U,O)=>{switch(U){case 1:return O?(C)=>a[C]:(C)=>J0[C];case 2:return O?(C)=>x[C>>1]:(C)=>q0[C>>1];case 4:return O?(C)=>e[C>>2]:(C)=>U0[C>>2];default:throw TypeError(`invalid integer width (${U}): ${G}`)}},jq=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,IX=(G,U)=>{var O=G>>1;for(var C=O+U/2;!(O>=C)&&q0[O];)++O;if(O<<=1,32=U/2);++C){var k=x[G+2*C>>1];if(k==0)break;O+=String.fromCharCode(k)}return O},PX=(G,U,O)=>{if(O??=2147483647,2>O)return 0;O-=2;var C=U;O=O<2*G.length?O/2:G.length;for(var k=0;k>1]=G.charCodeAt(k),U+=2;return x[U>>1]=0,U-C},TX=(G)=>2*G.length,SX=(G,U)=>{for(var O=0,C="";!(O>=U/4);){var k=e[G+4*O>>2];if(k==0)break;++O,65536<=k?(k-=65536,C+=String.fromCharCode(55296|k>>10,56320|k&1023)):C+=String.fromCharCode(k)}return C},wX=(G,U,O)=>{if(O??=2147483647,4>O)return 0;var C=U;O=C+O-4;for(var k=0;k=P){var u=G.charCodeAt(++k);P=65536+((P&1023)<<10)|u&1023}if(e[U>>2]=P,U+=4,U+4>O)break}return e[U>>2]=0,U-C},bX=(G)=>{for(var U=0,O=0;O=C&&++O,U+=4}return U},zq=(G,U,O)=>{var C=[];return G=G.toWireType(C,O),C.length&&(U0[U>>2]=w8(C)),G},V$=[],xX={},XK=(G)=>{var U=xX[G];return U===void 0?i1(G):U},hX=(G)=>{var U=V$.length;return V$.push(G),U},fX=(G,U)=>{for(var O=Array(G),C=0;C>2],"parameter "+C);return O},yX=Reflect.construct,e7=(G)=>G%4===0&&(G%100!==0||G%400===0),_X=[0,31,60,91,121,152,182,213,244,274,305,335],uX=[0,31,59,90,120,151,181,212,243,273,304,334],YK=[],BK={},Lq=()=>{if(!jK){var G={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",_:f||"./this.program"},U;for(U in BK)BK[U]===void 0?delete G[U]:G[U]=BK[U];var O=[];for(U in G)O.push(`${U}=${G[U]}`);jK=O}return jK},jK,Oq=[31,29,31,30,31,30,31,31,30,31,30,31],Nq=[31,28,31,30,31,30,31,31,30,31,30,31],Fq=(G,U,O,C)=>{function k(m,Y0,W0){for(m=typeof m=="number"?m.toString():m||"";m.lengthW1?-1:0p0-m.getDate())Y0-=p0-m.getDate()+1,m.setDate(1),11>W0?m.setMonth(W0+1):(m.setMonth(0),m.setFullYear(m.getFullYear()+1));else{m.setDate(m.getDate()+Y0);break}}return W0=new Date(m.getFullYear()+1,0,4),Y0=g(new Date(m.getFullYear(),0,4)),W0=g(W0),0>=u(Y0,m)?0>=u(W0,m)?m.getFullYear()+1:m.getFullYear():m.getFullYear()-1}var s=U0[C+40>>2];C={rc:e[C>>2],qc:e[C+4>>2],Ea:e[C+8>>2],Ra:e[C+12>>2],Fa:e[C+16>>2],da:e[C+20>>2],S:e[C+24>>2],ca:e[C+28>>2],Vc:e[C+32>>2],pc:e[C+36>>2],sc:s?s?c0(J0,s):"":""},O=O?c0(J0,O):"",s={"%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 H0 in s)O=O.replace(new RegExp(H0,"g"),s[H0]);var M0="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),A0="January February March April May June July August September October November December".split(" ");s={"%a":(m)=>M0[m.S].substring(0,3),"%A":(m)=>M0[m.S],"%b":(m)=>A0[m.Fa].substring(0,3),"%B":(m)=>A0[m.Fa],"%C":(m)=>P((m.da+1900)/100|0,2),"%d":(m)=>P(m.Ra,2),"%e":(m)=>k(m.Ra,2," "),"%g":(m)=>r(m).toString().substring(2),"%G":r,"%H":(m)=>P(m.Ea,2),"%I":(m)=>{return m=m.Ea,m==0?m=12:12{for(var Y0=0,W0=0;W0<=m.Fa-1;Y0+=(e7(m.da+1900)?Oq:Nq)[W0++]);return P(m.Ra+Y0,3)},"%m":(m)=>P(m.Fa+1,2),"%M":(m)=>P(m.qc,2),"%n":()=>` `,"%p":(m)=>0<=m.Ea&&12>m.Ea?"AM":"PM","%S":(m)=>P(m.rc,2),"%t":()=>"\t","%u":(m)=>m.S||7,"%U":(m)=>P(Math.floor((m.ca+7-m.S)/7),2),"%V":(m)=>{var Y0=Math.floor((m.ca+7-(m.S+6)%7)/7);if(2>=(m.S+371-m.ca-2)%7&&Y0++,Y0)Y0==53&&(W0=(m.S+371-m.ca)%7,W0==4||W0==3&&e7(m.da)||(Y0=1));else{Y0=52;var W0=(m.S+7-m.ca-1)%7;(W0==4||W0==5&&e7(m.da%400-1))&&Y0++}return P(Y0,2)},"%w":(m)=>m.S,"%W":(m)=>P(Math.floor((m.ca+7-(m.S+6)%7)/7),2),"%y":(m)=>(m.da+1900).toString().substring(2),"%Y":(m)=>m.da+1900,"%z":(m)=>{m=m.pc;var Y0=0<=m;return m=Math.abs(m)/60,(Y0?"+":"-")+String("0000"+(m/60*100+m%60)).slice(-4)},"%Z":(m)=>m.sc,"%%":()=>"%"},O=O.replace(/%%/g,"\x00\x00");for(H0 in s)O.includes(H0)&&(O=O.replace(new RegExp(H0,"g"),s[H0](C)));if(O=O.replace(/\0\0/g,"%"),H0=S0(O,!1),H0.length>U)return 0;return a.set(H0,G),H0.length-1};[44].forEach((G)=>{d1[G]=new K0(G),d1[G].stack=""}),y0=Array(4096),J9(b0,"/"),a1("/tmp"),a1("/home"),a1("/home/web_user"),function(){a1("/dev"),UJ(259,{read:()=>0,write:(C,k,P,u)=>u}),XJ("/dev/null",259),k1(1280,B1),k1(1536,g1),XJ("/dev/tty",1280),XJ("/dev/tty1",1536);var G=new Uint8Array(1024),U=0,O=()=>{return U===0&&(U=j0(G).byteLength),G[--U]};v9("random",O),v9("urandom",O),a1("/dev/shm"),a1("/dev/shm/tmp")}(),function(){a1("/proc");var G=a1("/proc/self");a1("/proc/self/fd"),J9({V(){var U=u9(G,"fd",16895,73);return U.j={ka(O,C){var k=I1(+C);return O={parent:null,V:{mb:"fake"},j:{ma:()=>k.path}},O.parent=O}},U}},"/proc/self/fd")}(),g0=j.BindingError=class extends Error{constructor(G){super(G);this.name="BindingError"}},p8.push(0,1,void 0,1,null,1,!0,1,!1,1),j.count_emval_handles=()=>p8.length/2-5-eQ.length,Kq=j.PureVirtualError=Qq("PureVirtualError");for(var Rq=Array(256),M$=0;256>M$;++M$)Rq[M$]=String.fromCharCode(M$);Wq=Rq,j.getInheritedInstanceCount=()=>Object.keys(l8).length,j.getLiveInheritedInstances=()=>{var G=[],U;for(U in l8)l8.hasOwnProperty(U)&&G.push(l8[U]);return G},j.flushPendingDeletes=JK,j.setDelayFunction=(G)=>{i7=G,s7.length&&i7&&i7(JK)},r7=j.InternalError=class extends Error{constructor(G){super(G);this.name="InternalError"}},Object.assign(O$.prototype,{isAliasOf:function(G){if(!(this instanceof O$&&G instanceof O$))return!1;var U=this.g.u.i,O=this.g.o;G.g=G.g;var C=G.g.u.i;for(G=G.g.o;U.C;)O=U.na(O),U=U.C;for(;C.C;)G=C.na(G),C=C.C;return U===C&&O===G},clone:function(){if(this.g.o||QK(this),this.g.ia)return this.g.count.value+=1,this;var G=j7,U=Object,O=U.create,C=Object.getPrototypeOf(this),k=this.g;return G=G(O.call(U,C,{g:{value:{count:k.count,fa:k.fa,ia:k.ia,o:k.o,u:k.u,F:k.F,K:k.K}}})),G.g.count.value+=1,G.g.fa=!1,G},["delete"](){if(this.g.o||QK(this),this.g.fa&&!this.g.ia)throw new g0("Object already scheduled for deletion");B$(this);var G=this.g;--G.count.value,G.count.value===0&&(G.F?G.K.P(G.F):G.u.i.P(G.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||QK(this),this.g.fa&&!this.g.ia)throw new g0("Object already scheduled for deletion");return s7.push(this),s7.length===1&&i7&&i7(JK),this.g.fa=!0,this}}),Object.assign(F$.prototype,{Tb(G){return this.rb&&(G=this.rb(G)),G},bb(G){this.P?.(G)},argPackAdvance:8,readValueFromPointer:t7,fromWireType:function(G){function U(){return this.ta?j$(this.i.N,{u:this.jc,o:O,K:this,F:G}):j$(this.i.N,{u:this,o:G})}var O=this.Tb(G);if(!O)return this.bb(G),null;var C=jX(this.i,O);if(C!==void 0){if(C.g.count.value===0)return C.g.o=O,C.g.F=G,C.clone();return C=C.clone(),this.bb(G),C}if(C=this.i.Sb(O),C=Gq[C],!C)return U.call(this);C=this.sa?C.Jb:C.pointerType;var k=Hq(O,this.i,C.i);return k===null?U.call(this):this.ta?j$(C.i.N,{u:C,o:k,K:this,F:G}):j$(C.i.N,{u:C,o:k})}}),Yq=j.UnboundTypeError=Qq("UnboundTypeError");var Dq={__syscall_fcntl64:function(G,U,O){o7=O;try{var C=I1(G);switch(U){case 0:var k=N();if(0>k)break;for(;J1[k];)k++;return K9(C,k).X;case 1:case 2:return 0;case 3:return C.flags;case 4:return k=N(),C.flags|=k,0;case 12:return k=N(),x[k+0>>1]=2,0;case 13:case 14:return 0}return-28}catch(P){if(typeof hJ>"u"||P.name!=="ErrnoError")throw P;return-P.aa}},__syscall_ioctl:function(G,U,O){o7=O;try{var C=I1(G);switch(U){case 21509:return C.s?0:-59;case 21505:if(!C.s)return-59;if(C.s.W.Zb){G=[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 k=N();e[k>>2]=25856,e[k+4>>2]=5,e[k+8>>2]=191,e[k+12>>2]=35387;for(var P=0;32>P;P++)a[k+P+17]=G[P]||0}return 0;case 21510:case 21511:case 21512:return C.s?0:-59;case 21506:case 21507:case 21508:if(!C.s)return-59;if(C.s.W.$b)for(k=N(),G=[],P=0;32>P;P++)G.push(a[k+P+17]);return 0;case 21519:if(!C.s)return-59;return k=N(),e[k>>2]=0;case 21520:return C.s?-28:-59;case 21531:if(k=N(),!C.m.Yb)throw new K0(59);return C.m.Yb(C,U,k);case 21523:if(!C.s)return-59;return C.s.W.ac&&(P=[24,80],k=N(),x[k>>1]=P[0],x[k+2>>1]=P[1]),0;case 21524:return C.s?0:-59;case 21515:return C.s?0:-59;default:return-28}}catch(u){if(typeof hJ>"u"||u.name!=="ErrnoError")throw u;return-u.aa}},__syscall_openat:function(G,U,O,C){o7=C;try{U=U?c0(J0,U):"";var k=U;if(k.charAt(0)==="/")U=k;else{var P=G===-100?"/":I1(G).path;if(k.length==0)throw new K0(44);U=_(P+"/"+k)}var u=C?N():0;return P9(U,O,u).X}catch(g){if(typeof hJ>"u"||g.name!=="ErrnoError")throw g;return-g.aa}},_abort_js:()=>{C0("")},_embind_create_inheriting_constructor:(G,U,O)=>{G=i1(G),U=n7(U,"wrapper"),O=N8(O);var C=U.i,k=C.N,P=C.C.N,u=C.C.constructor;return G=B7(G,function(...g){C.C.qb.forEach(function(r){if(this[r]===P[r])throw new Kq(`Pure virtual function ${r} must be implemented in JavaScript`)}.bind(this)),Object.defineProperty(this,"__parent",{value:k}),this.__construct(...g)}),k.__construct=function(...g){if(this===k)throw new g0("Pass correct 'this' to __construct");g=u.implement(this,...g),B$(g);var r=g.g;if(g.notifyOnDestruction(),r.ia=!0,Object.defineProperties(this,{g:{value:r}}),j7(this),g=r.o,g=ZK(C,g),l8.hasOwnProperty(g))throw new g0(`Tried to register registered instance: ${g}`);l8[g]=this},k.__destruct=function(){if(this===k)throw new g0("Pass correct 'this' to __destruct");B$(this);var g=this.g.o;if(g=ZK(C,g),l8.hasOwnProperty(g))delete l8[g];else throw new g0(`Tried to unregister unregistered instance: ${g}`)},G.prototype=Object.create(k),Object.assign(G.prototype,O),w8(G)},_embind_finalize_value_object:(G)=>{var U=z$[G];delete z$[G];var{Oa:O,P:C,fb:k}=U,P=k.map((u)=>u.Wb).concat(k.map((u)=>u.mc));r9([G],P,(u)=>{var g={};return k.forEach((r,s)=>{var H0=u[s],M0=r.Ub,A0=r.Vb,m=u[s+k.length],Y0=r.lc,W0=r.nc;g[r.Qb]={read:(p0)=>H0.fromWireType(M0(A0,p0)),write:(p0,W1)=>{var V0=[];Y0(W0,p0,m.toWireType(V0,W1)),a7(V0)}}}),[{name:U.name,fromWireType:(r)=>{var s={},H0;for(H0 in g)s[H0]=g[H0].read(r);return C(r),s},toWireType:(r,s)=>{for(var H0 in g)if(!(H0 in s))throw TypeError(`Missing field: "${H0}"`);var M0=O();for(H0 in g)g[H0].write(M0,s[H0]);return r!==null&&r.push(C,M0),M0},argPackAdvance:8,readValueFromPointer:t7,M:C}]})},_embind_register_bigint:()=>{},_embind_register_bool:(G,U,O,C)=>{U=i1(U),b8(G,{name:U,fromWireType:function(k){return!!k},toWireType:function(k,P){return P?O:C},argPackAdvance:8,readValueFromPointer:function(k){return this.fromWireType(J0[k])},M:null})},_embind_register_class:(G,U,O,C,k,P,u,g,r,s,H0,M0,A0)=>{H0=i1(H0),P=F9(k,P),g&&=F9(u,g),s&&=F9(r,s),A0=F9(M0,A0);var m=LX(H0);WK(m,function(){o8(`Cannot construct ${H0} due to unbound types`,[C])}),r9([G,U,O],C?[C]:[],(Y0)=>{if(Y0=Y0[0],C)var W0=Y0.i,p0=W0.N;else p0=O$.prototype;Y0=B7(H0,function(...W9){if(Object.getPrototypeOf(this)!==W1)throw new g0("Use 'new' to construct "+H0);if(V0.$===void 0)throw new g0(H0+" has no accessible constructor");var a9=V0.$[W9.length];if(a9===void 0)throw new g0(`Tried to invoke ctor of ${H0} with invalid number of parameters (${W9.length}) - expected (${Object.keys(V0.$).toString()}) parameters instead!`);return a9.apply(this,W9)});var W1=Object.create(p0,{constructor:{value:Y0}});Y0.prototype=W1;var V0=new OX(H0,Y0,W1,A0,W0,P,g,s);if(V0.C){var O1;(O1=V0.C).oa??(O1.oa=[]),V0.C.oa.push(V0)}return W0=new F$(H0,V0,!0,!1,!1),O1=new F$(H0+"*",V0,!1,!1,!1),p0=new F$(H0+" const*",V0,!1,!0,!1),Gq[G]={pointerType:O1,Jb:p0},Uq(m,Y0),[W0,O1,p0]})},_embind_register_class_class_function:(G,U,O,C,k,P,u)=>{var g=C$(O,C);U=i1(U),U=HK(U),P=F9(k,P),r9([],[G],(r)=>{function s(){o8(`Cannot call ${H0} due to unbound types`,g)}r=r[0];var H0=`${r.name}.${U}`;U.startsWith("@@")&&(U=Symbol[U.substring(2)]);var M0=r.i.constructor;return M0[U]===void 0?(s.ea=O-1,M0[U]=s):(KK(M0,U,H0),M0[U].A[O-1]=s),r9([],g,(A0)=>{if(A0=D$(H0,[A0[0],null].concat(A0.slice(1)),null,P,u),M0[U].A===void 0?(A0.ea=O-1,M0[U]=A0):M0[U].A[O-1]=A0,r.i.oa)for(let m of r.i.oa)m.constructor.hasOwnProperty(U)||(m.constructor[U]=A0);return[]}),[]})},_embind_register_class_class_property:(G,U,O,C,k,P,u,g)=>{U=i1(U),P=F9(k,P),r9([],[G],(r)=>{r=r[0];var s=`${r.name}.${U}`,H0={get(){o8(`Cannot access ${s} due to unbound types`,[O])},enumerable:!0,configurable:!0};return H0.set=g?()=>{o8(`Cannot access ${s} due to unbound types`,[O])}:()=>{throw new g0(`${s} is a read-only property`)},Object.defineProperty(r.i.constructor,U,H0),r9([],[O],(M0)=>{M0=M0[0];var A0={get(){return M0.fromWireType(P(C))},enumerable:!0};return g&&(g=F9(u,g),A0.set=(m)=>{var Y0=[];g(C,M0.toWireType(Y0,m)),a7(Y0)}),Object.defineProperty(r.i.constructor,U,A0),[]}),[]})},_embind_register_class_constructor:(G,U,O,C,k,P)=>{var u=C$(U,O);k=F9(C,k),r9([],[G],(g)=>{g=g[0];var r=`constructor ${g.name}`;if(g.i.$===void 0&&(g.i.$=[]),g.i.$[U-1]!==void 0)throw new g0(`Cannot register multiple constructors with identical number of parameters (${U-1}) for class '${g.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return g.i.$[U-1]=()=>{o8(`Cannot construct ${g.name} due to unbound types`,u)},r9([],u,(s)=>{return s.splice(1,0,null),g.i.$[U-1]=D$(r,s,null,k,P),[]}),[]})},_embind_register_class_function:(G,U,O,C,k,P,u,g)=>{var r=C$(O,C);U=i1(U),U=HK(U),P=F9(k,P),r9([],[G],(s)=>{function H0(){o8(`Cannot call ${M0} due to unbound types`,r)}s=s[0];var M0=`${s.name}.${U}`;U.startsWith("@@")&&(U=Symbol[U.substring(2)]),g&&s.i.qb.push(U);var A0=s.i.N,m=A0[U];return m===void 0||m.A===void 0&&m.className!==s.name&&m.ea===O-2?(H0.ea=O-2,H0.className=s.name,A0[U]=H0):(KK(A0,U,M0),A0[U].A[O-2]=H0),r9([],r,(Y0)=>{return Y0=D$(M0,Y0,s,P,u),A0[U].A===void 0?(Y0.ea=O-2,A0[U]=Y0):A0[U].A[O-2]=Y0,[]}),[]})},_embind_register_class_property:(G,U,O,C,k,P,u,g,r,s)=>{U=i1(U),k=F9(C,k),r9([],[G],(H0)=>{H0=H0[0];var M0=`${H0.name}.${U}`,A0={get(){o8(`Cannot access ${M0} due to unbound types`,[O,u])},enumerable:!0,configurable:!0};return A0.set=r?()=>o8(`Cannot access ${M0} due to unbound types`,[O,u]):()=>{throw new g0(M0+" is a read-only property")},Object.defineProperty(H0.i.N,U,A0),r9([],r?[O,u]:[O],(m)=>{var Y0=m[0],W0={get(){var W1=Bq(this,H0,M0+" getter");return Y0.fromWireType(k(P,W1))},enumerable:!0};if(r){r=F9(g,r);var p0=m[1];W0.set=function(W1){var V0=Bq(this,H0,M0+" setter"),O1=[];r(s,V0,p0.toWireType(O1,W1)),a7(O1)}}return Object.defineProperty(H0.i.N,U,W0),[]}),[]})},_embind_register_emval:(G)=>b8(G,MX),_embind_register_enum:(G,U,O,C)=>{function k(){}U=i1(U),k.values={},b8(G,{name:U,constructor:k,fromWireType:function(P){return this.constructor.values[P]},toWireType:(P,u)=>u.value,argPackAdvance:8,readValueFromPointer:EX(U,O,C),M:null}),WK(U,k)},_embind_register_enum_value:(G,U,O)=>{var C=n7(G,"enum");U=i1(U),G=C.constructor,C=Object.create(C.constructor.prototype,{value:{value:O},constructor:{value:B7(`${C.name}_${U}`,function(){})}}),G.values[O]=C,G[U]=C},_embind_register_float:(G,U,O)=>{U=i1(U),b8(G,{name:U,fromWireType:(C)=>C,toWireType:(C,k)=>k,argPackAdvance:8,readValueFromPointer:kX(U,O),M:null})},_embind_register_function:(G,U,O,C,k,P)=>{var u=C$(U,O);G=i1(G),G=HK(G),k=F9(C,k),WK(G,function(){o8(`Cannot call ${G} due to unbound types`,u)},U-1),r9([],u,(g)=>{return Uq(G,D$(G,[g[0],null].concat(g.slice(1)),null,k,P),U-1),[]})},_embind_register_integer:(G,U,O,C,k)=>{if(U=i1(U),k===-1&&(k=4294967295),k=(g)=>g,C===0){var P=32-8*O;k=(g)=>g<

>>P}var u=U.includes("unsigned")?function(g,r){return r>>>0}:function(g,r){return r};b8(G,{name:U,fromWireType:k,toWireType:u,argPackAdvance:8,readValueFromPointer:AX(U,O,C!==0),M:null})},_embind_register_memory_view:(G,U,O)=>{function C(P){return new k(a.buffer,U0[P+4>>2],U0[P>>2])}var k=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][U];O=i1(O),b8(G,{name:O,fromWireType:C,argPackAdvance:8,readValueFromPointer:C},{Xb:!0})},_embind_register_std_string:(G,U)=>{U=i1(U);var O=U==="std::string";b8(G,{name:U,fromWireType:function(C){var k=U0[C>>2],P=C+4;if(O)for(var u=P,g=0;g<=k;++g){var r=P+g;if(g==k||J0[r]==0){if(u=u?c0(J0,u,r-u):"",s===void 0)var s=u;else s+=String.fromCharCode(0),s+=u;u=r+1}}else{s=Array(k);for(g=0;g>2]=u,O&&P)L1(k,J0,r,u+1);else if(P)for(P=0;P{if(O=i1(O),U===2)var C=IX,k=PX,P=TX,u=(g)=>q0[g>>1];else U===4&&(C=SX,k=wX,P=bX,u=(g)=>U0[g>>2]);b8(G,{name:O,fromWireType:(g)=>{for(var r=U0[g>>2],s,H0=g+4,M0=0;M0<=r;++M0){var A0=g+4+M0*U;if(M0==r||u(A0)==0)H0=C(H0,A0-H0),s===void 0?s=H0:(s+=String.fromCharCode(0),s+=H0),H0=A0+U}return s8(g),s},toWireType:(g,r)=>{if(typeof r!="string")throw new g0(`Cannot pass non-string to C++ string type ${O}`);var s=P(r),H0=zK(4+s+U);return U0[H0>>2]=s/U,k(r,H0+4,s+U),g!==null&&g.push(s8,H0),H0},argPackAdvance:8,readValueFromPointer:t7,M(g){s8(g)}})},_embind_register_value_object:(G,U,O,C,k,P)=>{z$[G]={name:i1(U),Oa:F9(O,C),P:F9(k,P),fb:[]}},_embind_register_value_object_field:(G,U,O,C,k,P,u,g,r,s)=>{z$[G].fb.push({Qb:i1(U),Wb:O,Ub:F9(C,k),Vb:P,mc:u,lc:F9(g,r),nc:s})},_embind_register_void:(G,U)=>{U=i1(U),b8(G,{Oc:!0,name:U,argPackAdvance:0,fromWireType:()=>{},toWireType:()=>{}})},_emscripten_get_now_is_monotonic:()=>1,_emscripten_memcpy_js:(G,U,O)=>J0.copyWithin(G,U,U+O),_emscripten_throw_longjmp:()=>{throw 1/0},_emval_as:(G,U,O)=>{return G=N8(G),U=n7(U,"emval::as"),zq(U,O,G)},_emval_call:(G,U,O,C)=>{return G=V$[G],U=N8(U),G(null,U,O,C)},_emval_call_method:(G,U,O,C,k)=>{return G=V$[G],U=N8(U),O=XK(O),G(U,U[O],C,k)},_emval_decref:GK,_emval_get_method_caller:(G,U,O)=>{var C=fX(G,U),k=C.shift();G--;var P=Array(G);return U=`methodCaller<(${C.map((u)=>u.name).join(", ")}) => ${k.name}>`,hX(B7(U,(u,g,r,s)=>{for(var H0=0,M0=0;M0{return G=XK(G),w8(j[G])},_emval_get_property:(G,U)=>{return G=N8(G),U=N8(U),w8(G[U])},_emval_incref:(G)=>{9w8([]),_emval_new_cstring:(G)=>w8(XK(G)),_emval_new_object:()=>w8({}),_emval_run_destructors:(G)=>{var U=N8(G);a7(U),GK(G)},_emval_set_property:(G,U,O)=>{G=N8(G),U=N8(U),O=N8(O),G[U]=O},_emval_take_value:(G,U)=>{return G=n7(G,"_emval_take_value"),G=G.readValueFromPointer(U),w8(G)},_gmtime_js:function(G,U,O){G=new Date(1000*(U+2097152>>>0<4194305-!!G?(G>>>0)+4294967296*U:NaN)),e[O>>2]=G.getUTCSeconds(),e[O+4>>2]=G.getUTCMinutes(),e[O+8>>2]=G.getUTCHours(),e[O+12>>2]=G.getUTCDate(),e[O+16>>2]=G.getUTCMonth(),e[O+20>>2]=G.getUTCFullYear()-1900,e[O+24>>2]=G.getUTCDay(),e[O+28>>2]=(G.getTime()-Date.UTC(G.getUTCFullYear(),0,1,0,0,0,0))/86400000|0},_localtime_js:function(G,U,O){G=new Date(1000*(U+2097152>>>0<4194305-!!G?(G>>>0)+4294967296*U:NaN)),e[O>>2]=G.getSeconds(),e[O+4>>2]=G.getMinutes(),e[O+8>>2]=G.getHours(),e[O+12>>2]=G.getDate(),e[O+16>>2]=G.getMonth(),e[O+20>>2]=G.getFullYear()-1900,e[O+24>>2]=G.getDay(),e[O+28>>2]=(e7(G.getFullYear())?_X:uX)[G.getMonth()]+G.getDate()-1|0,e[O+36>>2]=-(60*G.getTimezoneOffset()),U=new Date(G.getFullYear(),6,1).getTimezoneOffset();var C=new Date(G.getFullYear(),0,1).getTimezoneOffset();e[O+32>>2]=(U!=C&&G.getTimezoneOffset()==Math.min(C,U))|0},_tzset_js:(G,U,O,C)=>{var k=new Date().getFullYear(),P=new Date(k,0,1),u=new Date(k,6,1);k=P.getTimezoneOffset();var g=u.getTimezoneOffset();U0[G>>2]=60*Math.max(k,g),e[U>>2]=Number(k!=g),G=(r)=>r.toLocaleTimeString(void 0,{hour12:!1,timeZoneName:"short"}).split(" ")[1],P=G(P),u=G(u),g{YK.length=0;for(var C;C=J0[U++];){var k=C!=105;k&=C!=112,O+=k&&O%8?4:0,YK.push(C==112?U0[O>>2]:C==105?e[O>>2]:D0[O>>3]),O+=k?8:4}return V[G](...YK)},emscripten_date_now:()=>Date.now(),emscripten_get_now:()=>performance.now(),emscripten_resize_heap:(G)=>{var U=J0.length;if(G>>>=0,2147483648=O;O*=2){var C=U*(1+0.2/O);C=Math.min(C,G+100663296);var k=Math;C=Math.max(G,C);J:{k=(k.min.call(k,2147483648,C+(65536-C%65536)%65536)-i.buffer.byteLength+65535)/65536;try{i.grow(k),L0();var P=1;break J}catch(u){}P=void 0}if(P)return!0}return!1},environ_get:(G,U)=>{var O=0;return Lq().forEach((C,k)=>{var P=U+O;k=U0[G+4*k>>2]=P;for(P=0;P{var O=Lq();U0[G>>2]=O.length;var C=0;return O.forEach((k)=>C+=k.length+1),U0[U>>2]=C,0},fd_close:function(G){try{var U=I1(G);if(U.X===null)throw new K0(8);U.La&&(U.La=null);try{U.m.close&&U.m.close(U)}catch(O){throw O}finally{J1[U.X]=null}return U.X=null,0}catch(O){if(typeof hJ>"u"||O.name!=="ErrnoError")throw O;return O.aa}},fd_read:function(G,U,O,C){try{J:{var k=I1(G);G=U;for(var P,u=U=0;u>2],r=U0[G+4>>2];G+=8;var s=k,H0=P,M0=a;if(0>r||0>H0)throw new K0(28);if(s.X===null)throw new K0(8);if((s.flags&2097155)===1)throw new K0(8);if((s.node.mode&61440)===16384)throw new K0(31);if(!s.m.read)throw new K0(28);var A0=typeof H0<"u";if(!A0)H0=s.position;else if(!s.seekable)throw new K0(70);var m=s.m.read(s,M0,g,r,H0);A0||(s.position+=m);var Y0=m;if(0>Y0){var W0=-1;break J}if(U+=Y0,Y0>2]=W0,0}catch(p0){if(typeof hJ>"u"||p0.name!=="ErrnoError")throw p0;return p0.aa}},fd_seek:function(G,U,O,C,k){U=O+2097152>>>0<4194305-!!U?(U>>>0)+4294967296*O:NaN;try{if(isNaN(U))return 61;var P=I1(G);return YJ(P,U,C),f0=[P.position>>>0,(B0=P.position,1<=+Math.abs(B0)?0>>0:~~+Math.ceil((B0-+(~~B0>>>0))/4294967296)>>>0:0)],e[k>>2]=f0[0],e[k+4>>2]=f0[1],P.La&&U===0&&C===0&&(P.La=null),0}catch(u){if(typeof hJ>"u"||u.name!=="ErrnoError")throw u;return u.aa}},fd_write:function(G,U,O,C){try{J:{var k=I1(G);G=U;for(var P,u=U=0;u>2],r=U0[G+4>>2];G+=8;var s=k,H0=g,M0=r,A0=P,m=a;if(0>M0||0>A0)throw new K0(28);if(s.X===null)throw new K0(8);if((s.flags&2097155)===0)throw new K0(8);if((s.node.mode&61440)===16384)throw new K0(31);if(!s.m.write)throw new K0(28);s.seekable&&s.flags&1024&&YJ(s,0,2);var Y0=typeof A0<"u";if(!Y0)A0=s.position;else if(!s.seekable)throw new K0(70);var W0=s.m.write(s,m,H0,M0,A0,void 0);Y0||(s.position+=W0);var p0=W0;if(0>p0){var W1=-1;break J}U+=p0,typeof P<"u"&&(P+=p0)}W1=U}return U0[C>>2]=W1,0}catch(V0){if(typeof hJ>"u"||V0.name!=="ErrnoError")throw V0;return V0.aa}},invoke_vii:vX,isWindowsBrowser:function(){return-1Fq(G,U,O,C),wasm_start_image_decode:function(G,U,O){U=j.HEAP8.subarray(U,U+O),O=new Uint8Array(O),O.set(U),createImageBitmap(new Blob([O])).then(function(C){var k=new OffscreenCanvas(C.width,C.height).getContext("2d");k.drawImage(C,0,0),k=k.getImageData(0,0,C.width,C.height);var P=k.data.length,u=j.Fb(P);j.wc.set(k.data,u),j.yc(G,C.width,C.height,u,P)}).catch(function(C){C=C.message||"decode failed";var k=j.Pc(C)+1,P=j.Fb(k);j.Uc(C,P,k),j.zc(G,P),j.xc(P)})}},C1=function(){function G(O){return C1=O.exports,i=C1.memory,L0(),Xq=C1.__indirect_function_table,P0.unshift(C1.__wasm_call_ctors),k0--,j.monitorRunDependencies?.(k0),k0==0&&(X0!==null&&(clearInterval(X0),X0=null),G0&&(O=G0,G0=null,O())),C1}var U={env:Dq,wasi_snapshot_preview1:Dq};if(k0++,j.monitorRunDependencies?.(k0),j.instantiateWasm)try{return j.instantiateWasm(U,G)}catch(O){c(`Module.instantiateWasm callback failed with error: ${O}`),R(O)}return o||=m0("canvas_advanced.wasm")?"canvas_advanced.wasm":j.locateFile?j.locateFile("canvas_advanced.wasm",T):T+"canvas_advanced.wasm",i0(U,function(O){G(O.instance)}).catch(R),{}}(),s8=(G)=>(s8=C1.free)(G),zK=(G)=>(zK=C1.malloc)(G),Cq=(G)=>(Cq=C1.__getTypeName)(G);j._wasm_image_decode_complete=(G,U,O,C,k)=>(j._wasm_image_decode_complete=C1.wasm_image_decode_complete)(G,U,O,C,k),j._wasm_image_decode_error=(G,U)=>(j._wasm_image_decode_error=C1.wasm_image_decode_error)(G,U);var Vq=j._ma_device__on_notification_unlocked=(G)=>(Vq=j._ma_device__on_notification_unlocked=C1.ma_device__on_notification_unlocked)(G);j._ma_malloc_emscripten=(G,U)=>(j._ma_malloc_emscripten=C1.ma_malloc_emscripten)(G,U),j._ma_free_emscripten=(G,U)=>(j._ma_free_emscripten=C1.ma_free_emscripten)(G,U);var Mq=j._ma_device_process_pcm_frames_capture__webaudio=(G,U,O)=>(Mq=j._ma_device_process_pcm_frames_capture__webaudio=C1.ma_device_process_pcm_frames_capture__webaudio)(G,U,O),Eq=j._ma_device_process_pcm_frames_playback__webaudio=(G,U,O)=>(Eq=j._ma_device_process_pcm_frames_playback__webaudio=C1.ma_device_process_pcm_frames_playback__webaudio)(G,U,O),kq=(G,U)=>(kq=C1.setThrew)(G,U),Aq=(G)=>(Aq=C1._emscripten_stack_restore)(G),Iq=()=>(Iq=C1.emscripten_stack_get_current)();j.dynCall_iiji=(G,U,O,C,k)=>(j.dynCall_iiji=C1.dynCall_iiji)(G,U,O,C,k),j.dynCall_jiji=(G,U,O,C,k)=>(j.dynCall_jiji=C1.dynCall_jiji)(G,U,O,C,k),j.dynCall_iiiji=(G,U,O,C,k,P)=>(j.dynCall_iiiji=C1.dynCall_iiiji)(G,U,O,C,k,P),j.dynCall_iij=(G,U,O,C)=>(j.dynCall_iij=C1.dynCall_iij)(G,U,O,C),j.dynCall_jii=(G,U,O)=>(j.dynCall_jii=C1.dynCall_jii)(G,U,O),j.dynCall_viijii=(G,U,O,C,k,P,u)=>(j.dynCall_viijii=C1.dynCall_viijii)(G,U,O,C,k,P,u),j.dynCall_iiiiij=(G,U,O,C,k,P,u)=>(j.dynCall_iiiiij=C1.dynCall_iiiiij)(G,U,O,C,k,P,u),j.dynCall_iiiiijj=(G,U,O,C,k,P,u,g,r)=>(j.dynCall_iiiiijj=C1.dynCall_iiiiijj)(G,U,O,C,k,P,u,g,r),j.dynCall_iiiiiijj=(G,U,O,C,k,P,u,g,r,s)=>(j.dynCall_iiiiiijj=C1.dynCall_iiiiiijj)(G,U,O,C,k,P,u,g,r,s);function vX(G,U,O){var C=Iq();try{qK(G)(U,O)}catch(k){if(Aq(C),k!==k+0)throw k;kq(1,0)}}var E$;G0=function G(){E$||Pq(),E$||(G0=G)};function Pq(){function G(){if(!E$&&(E$=!0,j.calledRun=!0,!Z0)){if(j.noFSInit||xJ||(xJ=!0,j.stdin=j.stdin,j.stdout=j.stdout,j.stderr=j.stderr,j.stdin?v9("stdin",j.stdin):Y7("/dev/tty","/dev/stdin"),j.stdout?v9("stdout",null,j.stdout):Y7("/dev/tty","/dev/stdout"),j.stderr?v9("stderr",null,j.stderr):Y7("/dev/tty1","/dev/stderr"),P9("/dev/stdin",0),P9("/dev/stdout",1),P9("/dev/stderr",1)),w0=!1,X(P0),F(j),j.onRuntimeInitialized)j.onRuntimeInitialized();if(j.postRun)for(typeof j.postRun=="function"&&(j.postRun=[j.postRun]);j.postRun.length;){var U=j.postRun.shift();_0.unshift(U)}X(_0)}}if(!(0{K.exports=JSON.parse(`{"name":"@rive-app/canvas","version":"2.38.3","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","runtimeLoader.d.ts","utils"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}`)},(K,W,q)=>{q.r(W),q.d(W,{AudioAssetWrapper:()=>z.AudioAssetWrapper,AudioWrapper:()=>z.AudioWrapper,BLANK_URL:()=>B.BLANK_URL,CustomFileAssetLoaderWrapper:()=>z.CustomFileAssetLoaderWrapper,FileAssetWrapper:()=>z.FileAssetWrapper,FileFinalizer:()=>z.FileFinalizer,FocusSessionState:()=>Y.FocusSessionState,FontAssetWrapper:()=>z.FontAssetWrapper,FontWrapper:()=>z.FontWrapper,ImageAssetWrapper:()=>z.ImageAssetWrapper,ImageWrapper:()=>z.ImageWrapper,KeyboardInteractions:()=>Y.KeyboardInteractions,RiveFont:()=>L.RiveFont,createFinalization:()=>z.createFinalization,finalizationRegistry:()=>z.finalizationRegistry,registerTouchInteractions:()=>H.registerTouchInteractions,sanitizeUrl:()=>B.sanitizeUrl});var H=q(7),Y=q(8),B=q(9),z=q(10),L=q(11)},(K,W,q)=>{q.r(W),q.d(W,{registerTouchInteractions:()=>z});var H=void 0,Y=function(L,j,F){var R,D=[];if(j)for(var M=0;M"u")return null;var Q0=null,c=!1,p=null,i=function(J0){var x;if(c&&J0 instanceof MouseEvent){if(J0.type=="mouseup")c=!1;return}c=y&&J0.type==="touchend"&&Q0==="touchstart",Q0=J0.type;var q0=J0.currentTarget.getBoundingClientRect();if(!f&&J0.type==="touchstart"&&p===null){var e=(x=J0.changedTouches)===null||x===void 0?void 0:x[0];if(e)p=e.identifier}var U0=B(J0,y,f,f?null:p),R0=A.computeAlignment(I,S,{minX:0,minY:0,maxX:q0.width,maxY:q0.height},F.bounds,n),D0=new A.Mat2D;switch(R0.invert(D0),U0.forEach(function(B0){var{clientX:f0,clientY:V}=B0;if(!f0&&!V)return;var X=f0-q0.left,N=V-q0.top,E=new A.Vec2D(X,N),_=A.mapXY(D0,E),d=_.x(),t=_.y();B0.transformedX=d,B0.transformedY=t,_.delete(),E.delete()}),D0.delete(),R0.delete(),J0.type){case"mouseout":var L0=function(B0){if(w)U0.forEach(function(f0){B0.pointerExit(f0.transformedX,f0.transformedY,f0.identifier)});else U0.forEach(function(f0){B0.pointerMove(f0.transformedX,f0.transformedY,f0.identifier)})};for(var T0=0,P0=D;T0{q.r(W),q.d(W,{FocusSessionState:()=>H,KeyboardInteractions:()=>Y});var H;(function(B){B.NotFocused="notFocused",B.EntryPending="entryPending",B.RiveFocused="riveFocused"})(H||(H={}));var Y=function(){function B(z){var{canvas:L,stateMachine:j,hasFocusNodes:F}=z,R=this;this.focusSessionState=H.NotFocused,this.onCanvasFocus=function(D){if(!R.hasFocusNodes)return;if(R.mainSm.focusState().hasFocus)return;if(R.focusSessionState=H.EntryPending,!R.isKeyboardDrivenFocus())return;var M=R.cameFromBeforeCanvas(D.relatedTarget);if(M?R.mainSm.focusNext():R.mainSm.focusPrevious())R.focusSessionState=H.RiveFocused},this.onCanvasBlur=function(D){R.focusSessionState=H.NotFocused},this.onKeyDown=function(D){if(R.focusSessionState===H.NotFocused)return;if(D.code==="Tab"&&R.hasFocusNodes){var M=!D.shiftKey,A=M?R.mainSm.focusNext():R.mainSm.focusPrevious();if(A)R.focusSessionState=H.RiveFocused,D.preventDefault();else R.focusSessionState=H.NotFocused}},this.canvas=L,this.mainSm=j,this.hasFocusNodes=F,L.addEventListener("focus",this.onCanvasFocus),L.addEventListener("blur",this.onCanvasBlur),L.addEventListener("keydown",this.onKeyDown)}return B.prototype.setFocusSessionState=function(z){this.focusSessionState=z},B.prototype.notifyRiveFocused=function(){this.focusSessionState=H.RiveFocused},B.prototype.isKeyboardDrivenFocus=function(){try{return this.canvas.matches(":focus-visible")}catch(z){return!1}},B.prototype.cameFromBeforeCanvas=function(z){if(!z)return!0;var L=this.canvas.compareDocumentPosition(z);if(L&Node.DOCUMENT_POSITION_PRECEDING)return!0;if(L&Node.DOCUMENT_POSITION_FOLLOWING)return!1;return!0},B.prototype.cleanup=function(){this.canvas.removeEventListener("focus",this.onCanvasFocus),this.canvas.removeEventListener("blur",this.onCanvasBlur),this.canvas.removeEventListener("keydown",this.onKeyDown)},B}()},(K,W,q)=>{q.r(W),q.d(W,{BLANK_URL:()=>F,sanitizeUrl:()=>M});var H=/^([^\w]*)(javascript|data|vbscript)/im,Y=/&#(\w+)(^\w|;)?/g,B=/&(newline|tab);/gi,z=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,L=/^.+(:|:)/gim,j=[".","/"],F="about:blank";function R(A){return j.indexOf(A[0])>-1}function D(A){var I=A.replace(z,"");return I.replace(Y,function(S,h){return String.fromCharCode(h)})}function M(A){if(!A)return F;var I=D(A).replace(B,"").replace(z,"").trim();if(!I)return F;if(R(I))return I;var S=I.match(L);if(!S)return I;var h=S[0];if(H.test(h))return F;return I}},(K,W,q)=>{q.r(W),q.d(W,{AudioAssetWrapper:()=>A,AudioWrapper:()=>j,CustomFileAssetLoaderWrapper:()=>R,FileAssetWrapper:()=>D,FileFinalizer:()=>Y,FontAssetWrapper:()=>I,FontWrapper:()=>F,ImageAssetWrapper:()=>M,ImageWrapper:()=>L,createFinalization:()=>v,finalizationRegistry:()=>y});var H=function(){var w=function(b,f){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,n){T.__proto__=n}||function(T,n){for(var l in n)if(Object.prototype.hasOwnProperty.call(n,l))T[l]=n[l]},w(b,f)};return function(b,f){if(typeof f!=="function"&&f!==null)throw TypeError("Class extends value "+String(f)+" is not a constructor or null");w(b,f);function T(){this.constructor=b}b.prototype=f===null?Object.create(f):(T.prototype=f.prototype,new T)}}(),Y=function(){function w(b){this.selfUnref=!1,this._file=b}return w.prototype.unref=function(){if(this._file)this._file.unref()},w}(),B=function(){function w(b){this._finalizableObject=b}return w.prototype.unref=function(){this._finalizableObject.unref()},w}(),z=function(){function w(){this.selfUnref=!1}return w.prototype.unref=function(){},w}(),L=function(w){H(b,w);function b(f){var T=w.call(this)||this;return T._nativeImage=f,T}return Object.defineProperty(b.prototype,"nativeImage",{get:function(){return this._nativeImage},enumerable:!1,configurable:!0}),b.prototype.unref=function(){if(this.selfUnref)this._nativeImage.unref()},b}(z),j=function(w){H(b,w);function b(f){var T=w.call(this)||this;return T._nativeAudio=f,T}return Object.defineProperty(b.prototype,"nativeAudio",{get:function(){return this._nativeAudio},enumerable:!1,configurable:!0}),b.prototype.unref=function(){if(this.selfUnref)this._nativeAudio.unref()},b}(z),F=function(w){H(b,w);function b(f){var T=w.call(this)||this;return T._nativeFont=f,T}return Object.defineProperty(b.prototype,"nativeFont",{get:function(){return this._nativeFont},enumerable:!1,configurable:!0}),b.prototype.unref=function(){if(this.selfUnref)this._nativeFont.unref()},b}(z),R=function(){function w(b,f){this._assetLoaderCallback=f,this.assetLoader=new b.CustomFileAssetLoader({loadContents:this.loadContents.bind(this)})}return w.prototype.loadContents=function(b,f){var T;if(b.isImage)T=new M(b);else if(b.isAudio)T=new A(b);else if(b.isFont)T=new I(b);else return!1;return this._assetLoaderCallback(T,f)},w}(),D=function(){function w(b){this._nativeFileAsset=b}return w.prototype.decode=function(b){this._nativeFileAsset.decode(b)},Object.defineProperty(w.prototype,"name",{get:function(){return this._nativeFileAsset.name},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"fileExtension",{get:function(){return this._nativeFileAsset.fileExtension},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"uniqueFilename",{get:function(){return this._nativeFileAsset.uniqueFilename},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"isAudio",{get:function(){return this._nativeFileAsset.isAudio},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"isImage",{get:function(){return this._nativeFileAsset.isImage},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"isFont",{get:function(){return this._nativeFileAsset.isFont},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"cdnUuid",{get:function(){return this._nativeFileAsset.cdnUuid},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"nativeFileAsset",{get:function(){return this._nativeFileAsset},enumerable:!1,configurable:!0}),w}(),M=function(w){H(b,w);function b(){return w!==null&&w.apply(this,arguments)||this}return b.prototype.setRenderImage=function(f){this._nativeFileAsset.setRenderImage(f.nativeImage)},b}(D),A=function(w){H(b,w);function b(){return w!==null&&w.apply(this,arguments)||this}return b.prototype.setAudioSource=function(f){this._nativeFileAsset.setAudioSource(f.nativeAudio)},b}(D),I=function(w){H(b,w);function b(){return w!==null&&w.apply(this,arguments)||this}return b.prototype.setFont=function(f){this._nativeFileAsset.setFont(f.nativeFont)},b}(D),S=function(){function w(b){}return w.prototype.register=function(b){b.selfUnref=!0},w.prototype.unregister=function(b){},w}(),h=typeof FinalizationRegistry<"u"?FinalizationRegistry:S,y=new h(function(w){w===null||w===void 0||w.unref()}),v=function(w,b){var f=new B(b);y.register(w,f)}},(K,W,q)=>{q.r(W),q.d(W,{RiveFont:()=>Y});var H=q(3),Y=function(){function B(){}return B.setFallbackFontCallback=function(z){B._fallbackFontCallback=z!==null&&z!==void 0?z:null,B._wireFallbackProc()},B._fontToPtr=function(z){var L;if(z==null)return null;var j=z.nativeFont,F=(L=j===null||j===void 0?void 0:j.ptr)===null||L===void 0?void 0:L.call(j);return F!==null&&F!==void 0?F:null},B._getFallbackPtr=function(z,L){if(L<0||L>=z.length)return null;return B._fontToPtr(z[L])},B._wireFallbackProc=function(){H.RuntimeLoader.getInstance(function(z){var L=B._fallbackFontCallback;if(L)z.setFallbackFontCallback(function(j,F,R){var D=L(j,R);if(D){if(Array.isArray(D))return B._getFallbackPtr(D,F);return F===0?B._fontToPtr(D):null}return null});else z.setFallbackFontCallback(null)})},B._fallbackFontCallback=null,B}()}],J={};function Z(K){var W=J[K];if(W!==void 0)return W.exports;var q=J[K]={exports:{}};return Q[K](q,q.exports,Z),q.exports}(()=>{Z.d=(K,W)=>{for(var q in W)if(Z.o(W,q)&&!Z.o(K,q))Object.defineProperty(K,q,{enumerable:!0,get:W[q]})}})(),(()=>{Z.o=(K,W)=>Object.prototype.hasOwnProperty.call(K,W)})(),(()=>{Z.r=(K)=>{if(typeof Symbol<"u"&&Symbol.toStringTag)Object.defineProperty(K,Symbol.toStringTag,{value:"Module"});Object.defineProperty(K,"__esModule",{value:!0})}})();var $={};return(()=>{Z.r($),Z.d($,{Alignment:()=>D,DataEnum:()=>D0,DataType:()=>U0,DrawOptimizationOptions:()=>M,EventType:()=>T,Fit:()=>R,Layout:()=>A,LoopType:()=>n,Rive:()=>e,RiveEventType:()=>h,RiveFile:()=>q0,RiveFont:()=>q.RiveFont,RuntimeLoader:()=>W.RuntimeLoader,StateMachineInput:()=>S,StateMachineInputType:()=>I,Testing:()=>N1,ViewModel:()=>R0,ViewModelInstance:()=>T0,ViewModelInstanceArtboard:()=>o,ViewModelInstanceAssetImage:()=>K1,ViewModelInstanceBoolean:()=>k0,ViewModelInstanceColor:()=>m0,ViewModelInstanceEnum:()=>G0,ViewModelInstanceList:()=>C0,ViewModelInstanceNumber:()=>x0,ViewModelInstanceString:()=>_0,ViewModelInstanceTrigger:()=>X0,ViewModelInstanceValue:()=>P0,decodeAudio:()=>i0,decodeFont:()=>f0,decodeImage:()=>B0});var K=Z(1),W=Z(3),q=Z(6),H=function(){var V=function(X,N){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,_){E.__proto__=_}||function(E,_){for(var d in _)if(Object.prototype.hasOwnProperty.call(_,d))E[d]=_[d]},V(X,N)};return function(X,N){if(typeof N!=="function"&&N!==null)throw TypeError("Class extends value "+String(N)+" is not a constructor or null");V(X,N);function E(){this.constructor=X}X.prototype=N===null?Object.create(N):(E.prototype=N.prototype,new E)}}(),Y=function(){return Y=Object.assign||function(V){for(var X,N=1,E=arguments.length;N0&&d[d.length-1]))&&(z0[0]===6||z0[0]===2)){N=0;continue}if(z0[0]===3&&(!d||z0[1]>d[0]&&z0[1]=0||j0>=0)if(F0>=0)this.animations[F0].playing=N;else this.stateMachines[j0].playing=N;else{var z0=this.artboard.animationByName(X[t]);if(z0){var I0=new K.Animation(z0,this.artboard,this.runtime,N);I0.advance(0),I0.apply(1),this.animations.push(I0)}else{var c0=this.artboard.stateMachineByName(X[t]);if(c0){var F1=new b(c0,this.runtime,N,this.artboard);this.stateMachines.push(F1)}}}}}if(E)if(N)this.eventManager.fire({type:T.Play,data:this.playing});else this.eventManager.fire({type:T.Pause,data:this.paused});return N?this.playing:this.paused},V.prototype.initLinearAnimations=function(X,N,E){if(E===void 0)E=!1;var _=this.animations.map(function(I0){return I0.name});for(var d=0;d=0)this.animations[t].playing=N;else{var F0=this.artboard.animationByName(X[d]);if(F0){var j0=new K.Animation(F0,this.artboard,this.runtime,N);j0.advance(0),j0.apply(1),this.animations.push(j0)}else if(E){var z0="State Machine with name ".concat(X[d]," not found");throw new j(z0)}else console.error("Animation with name ".concat(X[d]," not found."))}}},V.prototype.initStateMachines=function(X,N){var E=this.stateMachines.map(function(j0){return j0.name});for(var _=0;_=0)this.stateMachines[d].playing=N;else{var t=this.artboard.stateMachineByName(X[_]);if(t){var F0=new b(t,this.runtime,N,this.artboard);this.stateMachines.push(F0)}else console.warn("State Machine with name ".concat(X[_]," not found. Falling back to find an animation with the same name.")),this.initLinearAnimations([X[_]],N,!0)}}},V.prototype.play=function(X){return this.add(X,!0)},V.prototype.advanceIfPaused=function(){this.stateMachines.forEach(function(X){if(!X.playing)X.advanceAndApply(0)})},V.prototype.pause=function(X){return this.add(X,!1)},V.prototype.scrub=function(X,N){var E=this.animations.filter(function(_){return X.includes(_.name)});return E.forEach(function(_){return _.scrubTo=N}),E.map(function(_){return _.name})},Object.defineProperty(V.prototype,"playing",{get:function(){return this.animations.filter(function(X){return X.playing}).map(function(X){return X.name}).concat(this.stateMachines.filter(function(X){return X.playing}).map(function(X){return X.name}))},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"paused",{get:function(){return this.animations.filter(function(X){return!X.playing}).map(function(X){return X.name}).concat(this.stateMachines.filter(function(X){return!X.playing}).map(function(X){return X.name}))},enumerable:!1,configurable:!0}),V.prototype.stop=function(X){var N=this;X=s0(X);var E=[];if(X.length===0)E=this.animations.map(function(t){return t.name}).concat(this.stateMachines.map(function(t){return t.name})),this.animations.forEach(function(t){return t.cleanup()}),this.stateMachines.forEach(function(t){return t.cleanup()}),this.animations.splice(0,this.animations.length),this.stateMachines.splice(0,this.stateMachines.length);else{var _=this.animations.filter(function(t){return X.includes(t.name)});_.forEach(function(t){t.cleanup(),N.animations.splice(N.animations.indexOf(t),1)});var d=this.stateMachines.filter(function(t){return X.includes(t.name)});d.forEach(function(t){t.cleanup(),N.stateMachines.splice(N.stateMachines.indexOf(t),1)}),E=_.map(function(t){return t.name}).concat(d.map(function(t){return t.name}))}return this.eventManager.fire({type:T.Stop,data:E}),E},Object.defineProperty(V.prototype,"isPlaying",{get:function(){return this.animations.reduce(function(X,N){return X||N.playing},!1)||this.stateMachines.reduce(function(X,N){return X||N.playing},!1)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"isPaused",{get:function(){return!this.isPlaying&&(this.animations.length>0||this.stateMachines.length>0)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"isStopped",{get:function(){return this.animations.length===0&&this.stateMachines.length===0},enumerable:!1,configurable:!0}),V.prototype.atLeastOne=function(X,N){if(N===void 0)N=!0;var E;if(this.animations.length===0&&this.stateMachines.length===0){if(this.artboard.animationCount()>0)this.add([E=this.artboard.animationByIndex(0).name],X,N);else if(this.artboard.stateMachineCount()>0)this.add([E=this.artboard.stateMachineByIndex(0).name],X,N)}return E},V.prototype.handleLooping=function(){for(var X=0,N=this.animations.filter(function(_){return _.playing});X1)this.eventManager.fire({type:T.Loop,data:{animation:E.name,type:n.PingPong}}),E.loopCount=0}},V.prototype.handleStateChanges=function(){var X=[];for(var N=0,E=this.stateMachines.filter(function(d){return d.playing});N0)this.eventManager.fire({type:T.StateChange,data:X})},V.prototype.handleAdvancing=function(X){this.eventManager.fire({type:T.Advance,data:X})},V}(),T;(function(V){V.Load="load",V.LoadError="loaderror",V.Play="play",V.Pause="pause",V.Stop="stop",V.Loop="loop",V.Draw="draw",V.Advance="advance",V.StateChange="statechange",V.RiveEvent="riveevent",V.AudioStatusChange="audiostatuschange"})(T||(T={}));var n;(function(V){V.OneShot="oneshot",V.Loop="loop",V.PingPong="pingpong"})(n||(n={}));var l=function(){function V(X){if(X===void 0)X=[];this.listeners=X}return V.prototype.getListeners=function(X){return this.listeners.filter(function(N){return N.type===X})},V.prototype.add=function(X){if(!this.listeners.includes(X))this.listeners.push(X)},V.prototype.remove=function(X){for(var N=0;N0){var X=this.queue.shift();if(X===null||X===void 0?void 0:X.action)X.action();if(X===null||X===void 0?void 0:X.event)this.eventManager.fire(X.event)}},V}(),c;(function(V){V[V.AVAILABLE=0]="AVAILABLE",V[V.UNAVAILABLE=1]="UNAVAILABLE"})(c||(c={}));var p=function(V){H(X,V);function X(){var N=V!==null&&V.apply(this,arguments)||this;return N._started=!1,N._enabled=!1,N._status=c.UNAVAILABLE,N}return X.prototype.delay=function(N){return B(this,void 0,void 0,function(){return z(this,function(E){return[2,new Promise(function(_){return setTimeout(_,N)})]})})},X.prototype.timeout=function(){return B(this,void 0,void 0,function(){return z(this,function(N){return[2,new Promise(function(E,_){return setTimeout(_,50)})]})})},X.prototype.reportToListeners=function(){this.fire({type:T.AudioStatusChange}),this.removeAll()},X.prototype.enableAudio=function(){return B(this,void 0,void 0,function(){return z(this,function(N){if(!this._enabled)this._enabled=!0,this._status=c.AVAILABLE,this.reportToListeners();return[2]})})},X.prototype.testAudio=function(){return B(this,void 0,void 0,function(){var N;return z(this,function(E){switch(E.label){case 0:if(!(this._status===c.UNAVAILABLE&&this._audioContext!==null))return[3,4];E.label=1;case 1:return E.trys.push([1,3,,4]),[4,Promise.race([this._audioContext.resume(),this.timeout()])];case 2:return E.sent(),this.enableAudio(),[3,4];case 3:return N=E.sent(),[3,4];case 4:return[2]}})})},X.prototype._establishAudio=function(){return B(this,void 0,void 0,function(){return z(this,function(N){switch(N.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(),N.label=2;case 2:if(this._status!==c.UNAVAILABLE)return[3,5];return[4,this.testAudio()];case 3:return N.sent(),[4,this.delay(1000)];case 4:return N.sent(),[3,2];case 5:return[2]}})})},X.prototype.listenForUserAction=function(){var N=this,E=function(){return B(N,void 0,void 0,function(){return z(this,function(_){return this.enableAudio(),[2]})})};document.addEventListener("pointerdown",E,{once:!0})},X.prototype.establishAudio=function(){return B(this,void 0,void 0,function(){return z(this,function(N){return this._establishAudio(),[2]})})},Object.defineProperty(X.prototype,"systemVolume",{get:function(){if(this._status===c.UNAVAILABLE)return this.testAudio(),0;return 1},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),X}(l),i=new p,Z0=function(){function V(){}return V.prototype.observe=function(){},V.prototype.unobserve=function(){},V.prototype.disconnect=function(){},V}(),a=globalThis.ResizeObserver||Z0,J0=function(){function V(){var X=this;this._elementsMap=new Map,this._onObservedEntry=function(N){var E=X._elementsMap.get(N.target);if(E!==null)E.onResize(N.target.clientWidth==0||N.target.clientHeight==0);else X._resizeObserver.unobserve(N.target)},this._onObserved=function(N){N.forEach(X._onObservedEntry)},this._resizeObserver=new a(this._onObserved)}return V.prototype.add=function(X,N){var E={onResize:N,element:X};return this._elementsMap.set(X,E),this._resizeObserver.observe(X),E},V.prototype.remove=function(X){this._resizeObserver.unobserve(X.element),this._elementsMap.delete(X.element)},V}(),x=new J0,q0=function(){function V(X){if(this.enableRiveAssetCDN=!0,this.enablePerfMarks=!1,this.referenceCount=0,this.destroyed=!1,this.selfUnref=!1,this.bindableArtboards=[],this.src=X.src,this.buffer=X.buffer,X.assetLoader)this.assetLoader=X.assetLoader;if(this.enableRiveAssetCDN=typeof X.enableRiveAssetCDN=="boolean"?X.enableRiveAssetCDN:!0,this.enablePerfMarks=!!X.enablePerfMarks,this.enablePerfMarks)W.RuntimeLoader.enablePerfMarks=!0;if(this.eventManager=new l,X.onLoad)this.on(T.Load,X.onLoad);if(X.onLoadError)this.on(T.LoadError,X.onLoadError)}return V.prototype.releaseFile=function(){var X;if(this.selfUnref)(X=this.file)===null||X===void 0||X.unref();this.file=null},V.prototype.releaseBindableArtboards=function(){this.bindableArtboards.forEach(function(X){return X.destroy()})},V.prototype.initData=function(){return B(this,void 0,void 0,function(){var X,N,E,_,d,t;return z(this,function(F0){switch(F0.label){case 0:if(!(this.src&&!this.buffer))return[3,4];F0.label=1;case 1:return F0.trys.push([1,3,,4]),X=this,[4,t0(this.src)];case 2:return X.buffer=F0.sent(),[3,4];case 3:if(N=F0.sent(),N instanceof Error)throw N;throw new j(V.fileLoadErrorMessage);case 4:if(this.destroyed)return[2];if(this.assetLoader)_=new q.CustomFileAssetLoaderWrapper(this.runtime,this.assetLoader),E=_.assetLoader;if(this.enablePerfMarks)performance.mark("rive:file-load:start");return d=this,[4,this.runtime.load(new Uint8Array(this.buffer),E,this.enableRiveAssetCDN)];case 5:if(d.file=F0.sent(),this.enablePerfMarks)performance.mark("rive:file-load:end"),performance.measure("rive:file-load","rive:file-load:start","rive:file-load:end");if(t=new q.FileFinalizer(this.file),q.finalizationRegistry.register(this,t),this.destroyed)return this.releaseFile(),[2];if(this.file!==null)this.eventManager.fire({type:T.Load,data:this});else this.fireLoadError(V.fileLoadErrorMessage);return[2]}})})},V.prototype.loadRiveFileBytes=function(){return B(this,void 0,void 0,function(){var X;return z(this,function(N){if(this.enablePerfMarks)performance.mark("rive:fetch-riv:start");if(X=this.src?t0(this.src):Promise.resolve(this.buffer),this.enablePerfMarks&&this.src)X.then(function(){performance.mark("rive:fetch-riv:end"),performance.measure("rive:fetch-riv","rive:fetch-riv:start","rive:fetch-riv:end")});return[2,X]})})},V.prototype.loadRuntime=function(){return B(this,void 0,void 0,function(){var X;return z(this,function(N){if(this.enablePerfMarks)performance.mark("rive:await-wasm:start");if(X=W.RuntimeLoader.awaitInstance(),this.enablePerfMarks)X.then(function(){performance.mark("rive:await-wasm:end"),performance.measure("rive:await-wasm","rive:await-wasm:start","rive:await-wasm:end")});return[2,X]})})},V.prototype.init=function(){return B(this,void 0,void 0,function(){var X,N,E,_;return z(this,function(d){switch(d.label){case 0:if(!this.src&&!this.buffer)return this.fireLoadError(V.missingErrorMessage),[2];d.label=1;case 1:return d.trys.push([1,4,,5]),[4,Promise.all([this.loadRiveFileBytes(),this.loadRuntime()])];case 2:if(X=d.sent(),N=X[0],E=X[1],this.destroyed)return[2];if(this.buffer=N,this.runtime=E,this.enablePerfMarks)performance.mark("rive:init-data:start");return[4,this.initData()];case 3:if(d.sent(),this.enablePerfMarks)performance.mark("rive:init-data:end"),performance.measure("rive:init-data","rive:init-data:start","rive:init-data:end");return[3,5];case 4:return _=d.sent(),this.fireLoadError(_ instanceof Error?_.message:V.fileLoadErrorMessage),[3,5];case 5:return[2]}})})},V.prototype.fireLoadError=function(X){throw this.eventManager.fire({type:T.LoadError,data:X}),new j(X)},V.prototype.on=function(X,N){this.eventManager.add({type:X,callback:N})},V.prototype.off=function(X,N){this.eventManager.remove({type:X,callback:N})},V.prototype.cleanup=function(){if(this.referenceCount-=1,this.referenceCount<=0)this.removeAllRiveEventListeners(),this.releaseFile(),this.releaseBindableArtboards(),this.destroyed=!0},V.prototype.removeAllRiveEventListeners=function(X){this.eventManager.removeAll(X)},V.prototype.getInstance=function(){if(this.file!==null)return this.referenceCount+=1,this.file},V.prototype.destroyIfUnused=function(){if(this.referenceCount<=0)this.cleanup()},V.prototype.createBindableArtboard=function(X){if(X!=null){var N=new w(X);return(0,q.createFinalization)(N,N.nativeArtboard),this.bindableArtboards.push(N),N}return null},V.prototype.getArtboard=function(X){var N=this.file.artboardByName(X);if(N!=null)return new v(N,this)},V.prototype.getBindableArtboard=function(X){var N=this.file.bindableArtboardByName(X);return this.createBindableArtboard(N)},V.prototype.getDefaultBindableArtboard=function(){var X=this.file.bindableArtboardDefault();return this.createBindableArtboard(X)},V.prototype.internalBindableArtboardFromArtboard=function(X){var N=this.file.internalBindableArtboardFromArtboard(X);return this.createBindableArtboard(N)},V.prototype.viewModelByName=function(X){var N=this.file.viewModelByName(X);if(N!==null)return new R0(N);return null},V.missingErrorMessage="Rive source file or data buffer required",V.fileLoadErrorMessage="The file failed to load",V}(),e=function(){function V(X){var N=this,E,_,d;if(this.loaded=!1,this.destroyed=!1,this._observed=null,this.readyForPlaying=!1,this.artboard=null,this.eventCleanup=null,this._keyboardInteractions=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._currentCanvasWidth=0,this._currentCanvasHeight=0,this._audioEventListener=null,this._boundDraw=null,this._pageVisibilityHandler=null,this._explicitlyStoppedRendering=!1,this._viewModelInstance=null,this._dataEnums=null,this._tabIndex=null,this._prevHasFocus=!1,this._focusOptions={allowFocusInterrupt:!1},this.drawOptimization=M.DrawOnChanged,this.enablePerfMarks=!1,this.durations=[],this.frameTimes=[],this.frameCount=0,this.isTouchScrollEnabled=!1,this.onCanvasResize=function(t){var F0=N._hasZeroSize!==t;if(N._hasZeroSize=t,!t){if(F0)N.resizeDrawingSurfaceToCanvas()}else if(!N._layout.maxX||!N._layout.maxY)N.resizeToCanvas()},this.frameRequestId=null,this.renderSecondTimer=0,this._boundDraw=this.draw.bind(this),typeof document<"u")this._pageVisibilityHandler=this._onPageVisibilityChange.bind(this),document.addEventListener("visibilitychange",this._pageVisibilityHandler);if(this.canvas=X.canvas,X.canvas.constructor===HTMLCanvasElement)this._observed=x.add(this.canvas,this.onCanvasResize);if(this._currentCanvasWidth=this.canvas.width,this._currentCanvasHeight=this.canvas.height,this.src=X.src,this.buffer=X.buffer,this.riveFile=X.riveFile,this.layout=(E=X.layout)!==null&&E!==void 0?E:new A,this.shouldDisableRiveListeners=!!X.shouldDisableRiveListeners,this.isTouchScrollEnabled=!!X.isTouchScrollEnabled,this.automaticallyHandleEvents=!!X.automaticallyHandleEvents,this.dispatchPointerExit=X.dispatchPointerExit===!1?X.dispatchPointerExit:this.dispatchPointerExit,this.enableMultiTouch=!!X.enableMultiTouch,this.drawOptimization=(_=X.drawingOptions)!==null&&_!==void 0?_:this.drawOptimization,this.enableRiveAssetCDN=X.enableRiveAssetCDN===void 0?!0:X.enableRiveAssetCDN,this.enablePerfMarks=!!X.enablePerfMarks,this.enablePerfMarks)W.RuntimeLoader.enablePerfMarks=!0;if(this._focusOptions=(d=X.focusOptions)!==null&&d!==void 0?d:this._focusOptions,this.eventManager=new l,X.onLoad)this.on(T.Load,X.onLoad);if(X.onLoadError)this.on(T.LoadError,X.onLoadError);if(X.onPlay)this.on(T.Play,X.onPlay);if(X.onPause)this.on(T.Pause,X.onPause);if(X.onStop)this.on(T.Stop,X.onStop);if(X.onLoop)this.on(T.Loop,X.onLoop);if(X.onStateChange)this.on(T.StateChange,X.onStateChange);if(X.onAdvance)this.on(T.Advance,X.onAdvance);if(X.onload&&!X.onLoad)this.on(T.Load,X.onload);if(X.onloaderror&&!X.onLoadError)this.on(T.LoadError,X.onloaderror);if(X.onplay&&!X.onPlay)this.on(T.Play,X.onplay);if(X.onpause&&!X.onPause)this.on(T.Pause,X.onpause);if(X.onstop&&!X.onStop)this.on(T.Stop,X.onstop);if(X.onloop&&!X.onLoop)this.on(T.Loop,X.onloop);if(X.onstatechange&&!X.onStateChange)this.on(T.StateChange,X.onstatechange);if(X.assetLoader)this.assetLoader=X.assetLoader;this.taskQueue=new Q0(this.eventManager),this.init({src:this.src,buffer:this.buffer,riveFile:this.riveFile,autoplay:X.autoplay,autoBind:X.autoBind,animations:X.animations,stateMachines:X.stateMachines,artboard:X.artboard,useOffscreenRenderer:X.useOffscreenRenderer,tabIndex:X.tabIndex})}return Object.defineProperty(V.prototype,"viewModelCount",{get:function(){return this.file.viewModelCount()},enumerable:!1,configurable:!0}),V.new=function(X){return console.warn("This function is deprecated: please use `new Rive({})` instead"),new V(X)},V.prototype.onSystemAudioChanged=function(){this.volume=this._volume},V.prototype.init=function(X){var N=this,E=X.src,_=X.buffer,d=X.riveFile,t=X.animations,F0=X.stateMachines,j0=X.artboard,z0=X.autoplay,I0=z0===void 0?!1:z0,c0=X.useOffscreenRenderer,F1=c0===void 0?!1:c0,H1=X.autoBind,L1=H1===void 0?!1:H1,S0=X.tabIndex;if(this.destroyed)return;if(this.src=E,this.buffer=_,this.riveFile=d,this._tabIndex=S0!==null&&S0!==void 0?S0:null,!this.src&&!this.buffer&&!this.riveFile)throw new j(V.missingErrorMessage);var s1=s0(t),k1=s0(F0);this.loaded=!1,this.readyForPlaying=!1,W.RuntimeLoader.awaitInstance().then(function(R1){if(N.destroyed)return;if(N.runtime=R1,N.removeRiveListeners(),N.deleteRiveRenderer(),N.enablePerfMarks)performance.mark("rive:make-renderer:start");try{if(N.renderer=N.runtime.makeRenderer(N.canvas,F1),!N.renderer)throw Error("Renderer is null, cannot render Rive on the canvas.")}catch(B1){throw console.error(B1),new j("Unable to create the renderer, your environment may not support WebGL. Try the @rive-app/canvas runtime as an alternative.")}if(N.enablePerfMarks)performance.mark("rive:make-renderer:end"),performance.measure("rive:make-renderer","rive:make-renderer:start","rive:make-renderer:end");if(!(N.canvas.width||N.canvas.height))N.resizeDrawingSurfaceToCanvas();N.initData(j0,s1,k1,I0,L1).then(function(B1){if(B1)return N.setupRiveListeners()}).catch(function(B1){console.error(B1)})}).catch(function(R1){N.eventManager.fire({type:T.LoadError,data:R1.message})})},V.prototype.setupRiveListeners=function(X){var N=this;if(this.eventCleanup)this.eventCleanup();if(this.cleanupKeyboardInteractions(),!this.shouldDisableRiveListeners){var E=this.animator.stateMachines.filter(function(I0){return I0.playing}),_=E.filter(function(I0){return N.runtime.hasListeners(I0.instance)}).map(function(I0){return I0.instance}),d=this.isTouchScrollEnabled,t=this.dispatchPointerExit,F0=this.enableMultiTouch;if(X&&"isTouchScrollEnabled"in X)d=X.isTouchScrollEnabled;this.eventCleanup=(0,q.registerTouchInteractions)({canvas:this.canvas,artboard:this.artboard,stateMachines:_,renderer:this.renderer,rive:this.runtime,fit:this._layout.runtimeFit(this.runtime),alignment:this._layout.runtimeAlignment(this.runtime),isTouchScrollEnabled:d,dispatchPointerExit:t,enableMultiTouch:F0,layoutScaleFactor:this._layout.layoutScaleFactor,advanceAndDrain:this.advanceAndReportChanges.bind(this)});var j0=E.filter(function(I0){return I0.hasFocusNodes});if(j0.length){var z0=this.canvas.tabIndex;if(z0===-1||isNaN(z0))this.canvas.tabIndex=this._tabIndex!==null?this._tabIndex:0;if(typeof window<"u")this._keyboardInteractions=new q.KeyboardInteractions({canvas:this.canvas,stateMachine:j0[0].instance,hasFocusNodes:!0})}}},V.prototype.cleanupKeyboardInteractions=function(){if(this._keyboardInteractions)this._keyboardInteractions.cleanup(),this._keyboardInteractions=null},V.prototype.removeRiveListeners=function(){if(this.eventCleanup)this.eventCleanup(),this.eventCleanup=null;this.cleanupKeyboardInteractions()},V.prototype.initializeAudio=function(){var X=this,N;if(i.status==c.UNAVAILABLE){if(this.file.hasAudio||((N=this.artboard)===null||N===void 0?void 0:N.hasAudio)&&this._audioEventListener===null)this._audioEventListener={type:T.AudioStatusChange,callback:function(){return X.onSystemAudioChanged()}},i.add(this._audioEventListener),i.establishAudio()}},V.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},V.prototype.initData=function(X,N,E,_,d){return B(this,void 0,void 0,function(){var t,F0,j0,z0;return z(this,function(I0){switch(I0.label){case 0:if(I0.trys.push([0,3,,4]),this.riveFile!=null)return[3,2];return t=new q0({src:this.src,buffer:this.buffer,enableRiveAssetCDN:this.enableRiveAssetCDN,assetLoader:this.assetLoader,enablePerfMarks:this.enablePerfMarks}),this.riveFile=t,[4,t.init()];case 1:if(I0.sent(),this.destroyed)return t.destroyIfUnused(),[2,!1];I0.label=2;case 2:this.file=this.riveFile.getInstance(),this.initArtboard(X,N,E,_,d),this.initArtboardSize(),this.initializeAudio();try{this.loaded=!0,this.eventManager.fire({type:T.Load,data:(z0=this.src)!==null&&z0!==void 0?z0:"buffer"})}catch(c0){console.error(c0)}return this.animator.advanceIfPaused(),this.readyForPlaying=!0,this.taskQueue.process(),this.drawFrame(),[2,!0];case 3:return F0=I0.sent(),j0=F(F0),this.eventManager.fire({type:T.LoadError,data:j0}),[2,Promise.reject(j0)];case 4:return[2]}})})},V.prototype.initArtboard=function(X,N,E,_,d){if(!this.file)return;var t=X?this.file.artboardByName(X):this.file.defaultArtboard();if(!t)throw new j("Invalid artboard name or no default artboard");this.artboard=t,t.volume=this._volume*i.systemVolume,this.animator=new f(this.runtime,this.artboard,this.eventManager);var F0;if(N.length>0||E.length>0)F0=N.concat(E),this.animator.initLinearAnimations(N,_),this.animator.initStateMachines(E,_);else F0=[this.animator.atLeastOne(_,!1)];if(this.taskQueue.add({event:{type:_?T.Play:T.Pause,data:F0}}),d){var j0=this.file.defaultArtboardViewModel(t);if(j0!==null){var z0=j0.defaultInstance();if(z0!==null){var I0=new T0(z0,null);(0,q.createFinalization)(I0,I0.runtimeInstance),this.bindViewModelInstance(I0)}}}},V.prototype.drawFrame=function(){var X,N;if((X=document===null||document===void 0?void 0:document.timeline)===null||X===void 0?void 0:X.currentTime){if(this.loaded&&this.artboard&&!this.frameRequestId)this._boundDraw(document.timeline.currentTime),(N=this.runtime)===null||N===void 0||N.resolveAnimationFrame()}else this.scheduleRendering()},V.prototype._canvasSizeChanged=function(){var X=!1;if(this.canvas){if(this.canvas.width!==this._currentCanvasWidth)this._currentCanvasWidth=this.canvas.width,X=!0;if(this.canvas.height!==this._currentCanvasHeight)this._currentCanvasHeight=this.canvas.height,X=!0}return X},V.prototype.pollFocusState=function(){if(!this._keyboardInteractions){this._prevHasFocus=!1;return}var X=this.animator.stateMachines.find(function(E){return E.playing&&E.hasFocusNodes});if(!X){this._prevHasFocus=!1;return}if(this.canvas instanceof HTMLCanvasElement){var N=X.focusState().hasFocus;if(N){if(this._keyboardInteractions.notifyRiveFocused(),!this._prevHasFocus){if(this.canvas!==document.activeElement&&this._focusOptions.allowFocusInterrupt)this.canvas.focus();this._prevHasFocus=!0}return}if(this._prevHasFocus=!1,this._keyboardInteractions.focusSessionState===q.FocusSessionState.RiveFocused)this._keyboardInteractions.setFocusSessionState(q.FocusSessionState.NotFocused)}},V.prototype.advanceAndReportChanges=function(X){var N,E=this.animator.animations.filter(function(g1){return g1.playing||g1.needsScrub}).sort(function(g1){return g1.needsScrub?-1:1});for(var _=0,d=E;_=0)performance.mark("rive:sm-advance:start:f".concat(j0));if(c0.advanceAndApply(X),j0>=0)performance.mark("rive:sm-advance:end:f".concat(j0)),performance.measure("rive:sm-advance:f".concat(j0),"rive:sm-advance:start:f".concat(j0),"rive:sm-advance:end:f".concat(j0))}if(this.animator.stateMachines.length==0)this.artboard.advance(X);this.animator.handleLooping(),this.animator.handleStateChanges(),this.animator.handleAdvancing(X),this.pollFocusState(),(N=this._viewModelInstance)===null||N===void 0||N.handleCallbacks()},V.prototype.draw=function(X,N){this.frameRequestId=null;var E=performance.now(),_=this.enablePerfMarks&&this.frameCount<3?this.frameCount:-1;if(!this.lastRenderTime)this.lastRenderTime=X;if(this.renderSecondTimer+=X-this.lastRenderTime,this.renderSecondTimer>5000)this.renderSecondTimer=0,N===null||N===void 0||N();var d=(X-this.lastRenderTime)/1000;this.lastRenderTime=X,this.advanceAndReportChanges(d);var t=this.renderer;if(!this._hasZeroSize){if(this.drawOptimization==M.AlwaysDraw||this.artboard.didChange()||this._needsRedraw||this._canvasSizeChanged()){if(t.clear(),t.save(),_>=0)performance.mark("rive:align-renderer:start:f".concat(_));if(this.alignRenderer(),_>=0)performance.mark("rive:align-renderer:end:f".concat(_)),performance.measure("rive:align-renderer:f".concat(_),"rive:align-renderer:start:f".concat(_),"rive:align-renderer:end:f".concat(_));if(_>=0)performance.mark("rive:artboard-draw:start:f".concat(_));if(this.artboard.draw(t),_>=0)performance.mark("rive:artboard-draw:end:f".concat(_)),performance.measure("rive:artboard-draw:f".concat(_),"rive:artboard-draw:start:f".concat(_),"rive:artboard-draw:end:f".concat(_));if(t.restore(),_>=0)performance.mark("rive:renderer-flush:start:f".concat(_));if(t.flush(),_>=0)performance.mark("rive:renderer-flush:end:f".concat(_)),performance.measure("rive:renderer-flush:f".concat(_),"rive:renderer-flush:start:f".concat(_),"rive:renderer-flush:end:f".concat(_));this._needsRedraw=!1}}this.frameCount++;var F0=performance.now();this.frameTimes.push(F0),this.durations.push(F0-E);while(this.frameTimes[0]<=F0-1000)this.frameTimes.shift(),this.durations.shift();if(this.animator.isPlaying)this.scheduleRendering();else if(this.animator.isPaused)this.lastRenderTime=0;else if(this.animator.isStopped)this.lastRenderTime=0},V.prototype.alignRenderer=function(){var X=this,N=X.renderer,E=X.runtime,_=X._layout,d=X.artboard;N.align(_.runtimeFit(E),_.runtimeAlignment(E),{minX:_.minX,minY:_.minY,maxX:_.maxX,maxY:_.maxY},d.bounds,this._devicePixelRatioUsed*_.layoutScaleFactor)},Object.defineProperty(V.prototype,"fps",{get:function(){return this.durations.length},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"frameTime",{get:function(){if(this.durations.length===0)return 0;return(this.durations.reduce(function(X,N){return X+N},0)/this.durations.length).toFixed(4)},enumerable:!1,configurable:!0}),V.prototype.cleanup=function(){var X,N,E,_;if(this.destroyed=!0,this.stopRendering(),(N=(X=this.renderer)===null||X===void 0?void 0:X.bindContext)===null||N===void 0||N.call(X),this.cleanupInstances(),this._observed!==null)x.remove(this._observed);if(this.removeRiveListeners(),this.file)(E=this.riveFile)===null||E===void 0||E.cleanup(),this.file=null;if(this.riveFile=null,this.deleteRiveRenderer(),this._audioEventListener!==null)i.remove(this._audioEventListener),this._audioEventListener=null;if(this._pageVisibilityHandler)document.removeEventListener("visibilitychange",this._pageVisibilityHandler),this._pageVisibilityHandler=null;(_=this._viewModelInstance)===null||_===void 0||_.cleanup(),this._viewModelInstance=null,this._dataEnums=null},V.prototype.deleteRiveRenderer=function(){var X;(X=this.renderer)===null||X===void 0||X.delete(),this.renderer=null},V.prototype.cleanupInstances=function(){if(this.eventCleanup!==null)this.eventCleanup();if(this.cleanupKeyboardInteractions(),this.stop(),this.artboard)this.artboard.delete(),this.artboard=null},V.prototype.retrieveTextRun=function(X){var N;if(!X){console.warn("No text run name provided");return}if(!this.artboard){console.warn("Tried to access text run, but the Artboard is null");return}var E=this.artboard.textRun(X);if(!E){console.warn("Could not access a text run with name '".concat(X,"' in the '").concat((N=this.artboard)===null||N===void 0?void 0:N.name,"' Artboard. Note that you must rename a text run node in the Rive editor to make it queryable at runtime."));return}return E},V.prototype.getTextRunValue=function(X){var N=this.retrieveTextRun(X);return N?N.text:void 0},V.prototype.setTextRunValue=function(X,N){var E=this.retrieveTextRun(X);if(E)E.text=N},V.prototype.play=function(X,N){var E=this;if(X=s0(X),!this.readyForPlaying){this.taskQueue.add({action:function(){return E.play(X,N)}});return}if(this.animator.play(X),this.eventCleanup)this.eventCleanup();this.cleanupKeyboardInteractions(),this.setupRiveListeners(),this.startRendering()},V.prototype.pause=function(X){var N=this;if(X=s0(X),!this.readyForPlaying){this.taskQueue.add({action:function(){return N.pause(X)}});return}if(this.eventCleanup)this.eventCleanup();this.cleanupKeyboardInteractions(),this.animator.pause(X)},V.prototype.scrub=function(X,N){var E=this;if(X=s0(X),!this.readyForPlaying){this.taskQueue.add({action:function(){return E.scrub(X,N)}});return}this.animator.scrub(X,N||0),this.drawFrame()},V.prototype.stop=function(X){var N=this;if(X=s0(X),!this.readyForPlaying){this.taskQueue.add({action:function(){return N.stop(X)}});return}if(this.animator)this.animator.stop(X);if(this.eventCleanup)this.eventCleanup();this.cleanupKeyboardInteractions()},V.prototype.reset=function(X){var N,E,_=X===null||X===void 0?void 0:X.artboard,d=s0(X===null||X===void 0?void 0:X.animations),t=s0(X===null||X===void 0?void 0:X.stateMachines),F0=(N=X===null||X===void 0?void 0:X.autoplay)!==null&&N!==void 0?N:!1,j0=(E=X===null||X===void 0?void 0:X.autoBind)!==null&&E!==void 0?E:!1;this.cleanupInstances(),this.initArtboard(_,d,t,F0,j0),this.taskQueue.process()},V.prototype.load=function(X){this.file=null,this.stop(),this.init(X)},Object.defineProperty(V.prototype,"layout",{get:function(){return this._layout},set:function(X){if(this._layout=X,!X.maxX||!X.maxY)this.resizeToCanvas();if(this.loaded&&!this.animator.isPlaying)this.drawFrame()},enumerable:!1,configurable:!0}),V.prototype.resizeToCanvas=function(){this._layout=this.layout.copyWith({minX:0,minY:0,maxX:this.canvas.width,maxY:this.canvas.height})},V.prototype.resizeDrawingSurfaceToCanvas=function(X){if(this.canvas instanceof HTMLCanvasElement&&!!window){var N=this.canvas.getBoundingClientRect(),E=N.width,_=N.height,d=X||window.devicePixelRatio||1;if(this.devicePixelRatioUsed=d,this.canvas.width=d*E,this.canvas.height=d*_,this._needsRedraw=!0,this.resizeToCanvas(),this.drawFrame(),this.layout.fit===R.Layout){var t=this._layout.layoutScaleFactor;this.artboard.width=E/t,this.artboard.height=_/t}}},Object.defineProperty(V.prototype,"source",{get:function(){return this.src},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"activeArtboard",{get:function(){return this.artboard?this.artboard.name:""},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"animationNames",{get:function(){if(!this.loaded||!this.artboard)return[];var X=[];for(var N=0;N0)this.animator.stateMachines.forEach(function(E){return E.bindViewModelInstance(X)});else this.artboard.bindViewModelInstance(X.runtimeInstance)}},Object.defineProperty(V.prototype,"viewModelInstance",{get:function(){return this._viewModelInstance},enumerable:!1,configurable:!0}),V.prototype.viewModelByIndex=function(X){var N=this.file.viewModelByIndex(X);if(N!==null)return new R0(N);return null},V.prototype.viewModelByName=function(X){var N;return(N=this.riveFile)===null||N===void 0?void 0:N.viewModelByName(X)},V.prototype.enums=function(){if(this._dataEnums===null){var X=this.file.enums();this._dataEnums=X.map(function(N){return new D0(N)})}return this._dataEnums},V.prototype.defaultViewModel=function(){if(this.artboard){var X=this.file.defaultArtboardViewModel(this.artboard);if(X)return new R0(X)}return null},V.prototype.getArtboard=function(X){var N,E;return(E=(N=this.riveFile)===null||N===void 0?void 0:N.getArtboard(X))!==null&&E!==void 0?E:null},V.prototype.getBindableArtboard=function(X){var N,E;return(E=(N=this.riveFile)===null||N===void 0?void 0:N.getBindableArtboard(X))!==null&&E!==void 0?E:null},V.prototype.getDefaultBindableArtboard=function(){var X,N;return(N=(X=this.riveFile)===null||X===void 0?void 0:X.getDefaultBindableArtboard())!==null&&N!==void 0?N:null},V.prototype.clearFocus=function(){var X=this.animator.stateMachines.filter(function(N){return N.playing&&N.hasFocusNodes});X.forEach(function(N){return N.clearFocus()})},V.missingErrorMessage="Rive source file or data buffer required",V.cleanupErrorMessage="Attempt to use file after calling cleanup.",V}(),U0;(function(V){V.none="none",V.string="string",V.number="number",V.boolean="boolean",V.color="color",V.list="list",V.enumType="enumType",V.trigger="trigger",V.viewModel="viewModel",V.integer="integer",V.listIndex="listIndex",V.image="image",V.artboard="artboard"})(U0||(U0={}));var R0=function(){function V(X){this._viewModel=X}return Object.defineProperty(V.prototype,"instanceCount",{get:function(){return this._viewModel.instanceCount},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"name",{get:function(){return this._viewModel.name},enumerable:!1,configurable:!0}),V.prototype.instanceByIndex=function(X){var N=this._viewModel.instanceByIndex(X);if(N!==null){var E=new T0(N,null);return(0,q.createFinalization)(E,N),E}return null},V.prototype.instanceByName=function(X){var N=this._viewModel.instanceByName(X);if(N!==null){var E=new T0(N,null);return(0,q.createFinalization)(E,N),E}return null},V.prototype.defaultInstance=function(){var X=this._viewModel.defaultInstance();if(X!==null){var N=new T0(X,null);return(0,q.createFinalization)(N,X),N}return null},V.prototype.instance=function(){var X=this._viewModel.instance();if(X!==null){var N=new T0(X,null);return(0,q.createFinalization)(N,X),N}return null},Object.defineProperty(V.prototype,"properties",{get:function(){return this._viewModel.getProperties()},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"instanceNames",{get:function(){return this._viewModel.getInstanceNames()},enumerable:!1,configurable:!0}),V}(),D0=function(){function V(X){this._dataEnum=X}return Object.defineProperty(V.prototype,"name",{get:function(){return this._dataEnum.name},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"values",{get:function(){return this._dataEnum.values},enumerable:!1,configurable:!0}),V}(),L0;(function(V){V.Number="number",V.String="string",V.Boolean="boolean",V.Color="color",V.Trigger="trigger",V.Enum="enum",V.List="list",V.Image="image",V.Artboard="artboard"})(L0||(L0={}));var T0=function(){function V(X,N){if(this._parents=[],this._children=[],this._viewModelInstances=new Map,this._propertiesWithCallbacks=[],this._referenceCount=0,this.selfUnref=!1,this._runtimeInstance=X,N!==null)this._parents.push(N)}return Object.defineProperty(V.prototype,"runtimeInstance",{get:function(){return this._runtimeInstance},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"nativeInstance",{get:function(){return this._runtimeInstance},enumerable:!1,configurable:!0}),V.prototype.handleCallbacks=function(){if(this._propertiesWithCallbacks.length!==0)this._propertiesWithCallbacks.forEach(function(X){X.handleCallbacks()}),this._propertiesWithCallbacks.forEach(function(X){X.clearChanges()});this._children.forEach(function(X){return X.handleCallbacks()})},V.prototype.addParent=function(X){if(!this._parents.includes(X)){if(this._parents.push(X),this._propertiesWithCallbacks.length>0||this._children.length>0)X.addToViewModelCallbacks(this)}},V.prototype.removeParent=function(X){var N=this._parents.indexOf(X);if(N!==-1){var E=this._parents[N];E.removeFromViewModelCallbacks(this),this._parents.splice(N,1)}},V.prototype.addToPropertyCallbacks=function(X){var N=this;if(!this._propertiesWithCallbacks.includes(X)){if(this._propertiesWithCallbacks.push(X),this._propertiesWithCallbacks.length>0)this._parents.forEach(function(E){E.addToViewModelCallbacks(N)})}},V.prototype.removeFromPropertyCallbacks=function(X){var N=this;if(this._propertiesWithCallbacks.includes(X)){if(this._propertiesWithCallbacks=this._propertiesWithCallbacks.filter(function(E){return E!==X}),this._children.length===0&&this._propertiesWithCallbacks.length===0)this._parents.forEach(function(E){E.removeFromViewModelCallbacks(N)})}},V.prototype.addToViewModelCallbacks=function(X){var N=this;if(!this._children.includes(X))this._children.push(X),this._parents.forEach(function(E){E.addToViewModelCallbacks(N)})},V.prototype.removeFromViewModelCallbacks=function(X){var N=this;if(this._children.includes(X)){if(this._children=this._children.filter(function(E){return E!==X}),this._children.length===0&&this._propertiesWithCallbacks.length===0)this._parents.forEach(function(E){E.removeFromViewModelCallbacks(N)})}},V.prototype.clearCallbacks=function(){this._propertiesWithCallbacks.forEach(function(X){X.clearCallbacks()})},V.prototype.propertyFromPath=function(X,N){var E=X.split("/");return this.propertyFromPathSegments(E,0,N)},V.prototype.viewModelFromPathSegments=function(X,N){var E=this.internalViewModelInstance(X[N]);if(E!==null)if(N==X.length-1)return E;else return E.viewModelFromPathSegments(X,N++);return null},V.prototype.propertyFromPathSegments=function(X,N,E){var _,d,t,F0,j0,z0,I0,c0,F1,H1,L1,S0,s1,k1,R1,B1,g1,N9;if(N1?this.viewModelFromPathSegments(N.slice(0,N.length-1),0):this;if(E!=null)return E.internalViewModelInstance(N[N.length-1]);return null},V.prototype.internalReplaceViewModel=function(X,N){var E;if(N.runtimeInstance!==null){var _=((E=this._runtimeInstance)===null||E===void 0?void 0:E.replaceViewModel(X,N.runtimeInstance))||!1;if(_){N.internalIncrementReferenceCount();var d=this.internalViewModelInstance(X);if(d!==null){if(d.removeParent(this),this._children.includes(d))this._children=this._children.filter(function(t){return t!==d});d.cleanup()}this._viewModelInstances.set(X,N),N.addParent(this)}return _}return!1},V.prototype.replaceViewModel=function(X,N){var E,_=X.split("/"),d=_.length>1?this.viewModelFromPathSegments(_.slice(0,_.length-1),0):this;return(E=d===null||d===void 0?void 0:d.internalReplaceViewModel(_[_.length-1],N))!==null&&E!==void 0?E:!1},V.prototype.incrementReferenceCount=function(){var X;this._referenceCount++,(X=this._runtimeInstance)===null||X===void 0||X.incrementReferenceCount()},V.prototype.decrementReferenceCount=function(){var X;this._referenceCount--,(X=this._runtimeInstance)===null||X===void 0||X.decrementReferenceCount()},Object.defineProperty(V.prototype,"properties",{get:function(){var X;return((X=this._runtimeInstance)===null||X===void 0?void 0:X.getProperties().map(function(N){return Y({},N)}))||[]},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"viewModelName",{get:function(){var X,N;return(N=(X=this._runtimeInstance)===null||X===void 0?void 0:X.getViewModelName())!==null&&N!==void 0?N:""},enumerable:!1,configurable:!0}),V.prototype.internalIncrementReferenceCount=function(){this._referenceCount++},V.prototype.cleanup=function(){var X=this,N;if(this._referenceCount--,this._referenceCount<=0){if(this.selfUnref)(N=this._runtimeInstance)===null||N===void 0||N.unref();this._runtimeInstance=null,this.clearCallbacks(),this._propertiesWithCallbacks=[],this._viewModelInstances.forEach(function(d){d.cleanup()}),this._viewModelInstances.clear();var E=L([],this._children,!0);this._children.length=0;var _=L([],this._parents,!0);this._parents.length=0,E.forEach(function(d){d.removeParent(X)}),_.forEach(function(d){d.removeFromViewModelCallbacks(X)})}},V}(),P0=function(){function V(X,N){this.callbacks=[],this._viewModelInstanceValue=X,this._parentViewModel=N}return V.prototype.on=function(X){if(this.callbacks.length===0)this._viewModelInstanceValue.clearChanges();if(!this.callbacks.includes(X))this.callbacks.push(X),this._parentViewModel.addToPropertyCallbacks(this)},V.prototype.off=function(X){if(!X)this.callbacks.length=0;else this.callbacks=this.callbacks.filter(function(N){return N!==X});if(this.callbacks.length===0)this._parentViewModel.removeFromPropertyCallbacks(this)},V.prototype.internalHandleCallback=function(X){},V.prototype.handleCallbacks=function(){var X=this;if(this._viewModelInstanceValue.hasChanged)this.callbacks.forEach(function(N){X.internalHandleCallback(N)})},V.prototype.clearChanges=function(){this._viewModelInstanceValue.clearChanges()},V.prototype.clearCallbacks=function(){this.callbacks.length=0},Object.defineProperty(V.prototype,"name",{get:function(){return this._viewModelInstanceValue.name},enumerable:!1,configurable:!0}),V}(),_0=function(V){H(X,V);function X(N,E){return V.call(this,N,E)||this}return Object.defineProperty(X.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(N){this._viewModelInstanceValue.value=N},enumerable:!1,configurable:!0}),X.prototype.internalHandleCallback=function(N){N(this.value)},X}(P0),x0=function(V){H(X,V);function X(N,E){return V.call(this,N,E)||this}return Object.defineProperty(X.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(N){this._viewModelInstanceValue.value=N},enumerable:!1,configurable:!0}),X.prototype.internalHandleCallback=function(N){N(this.value)},X}(P0),k0=function(V){H(X,V);function X(N,E){return V.call(this,N,E)||this}return Object.defineProperty(X.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(N){this._viewModelInstanceValue.value=N},enumerable:!1,configurable:!0}),X.prototype.internalHandleCallback=function(N){N(this.value)},X}(P0),X0=function(V){H(X,V);function X(N,E){return V.call(this,N,E)||this}return X.prototype.trigger=function(){return this._viewModelInstanceValue.trigger()},X.prototype.internalHandleCallback=function(N){N()},X}(P0),G0=function(V){H(X,V);function X(N,E){return V.call(this,N,E)||this}return Object.defineProperty(X.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(N){this._viewModelInstanceValue.value=N},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"valueIndex",{get:function(){return this._viewModelInstanceValue.valueIndex},set:function(N){this._viewModelInstanceValue.valueIndex=N},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"values",{get:function(){return this._viewModelInstanceValue.values},enumerable:!1,configurable:!0}),X.prototype.internalHandleCallback=function(N){N(this.value)},X}(P0),C0=function(V){H(X,V);function X(N,E){return V.call(this,N,E)||this}return Object.defineProperty(X.prototype,"length",{get:function(){return this._viewModelInstanceValue.size},enumerable:!1,configurable:!0}),X.prototype.addInstance=function(N){if(N.runtimeInstance!=null)this._viewModelInstanceValue.addInstance(N.runtimeInstance),N.addParent(this._parentViewModel)},X.prototype.addInstanceAt=function(N,E){if(N.runtimeInstance!=null){if(this._viewModelInstanceValue.addInstanceAt(N.runtimeInstance,E))return N.addParent(this._parentViewModel),!0}return!1},X.prototype.removeInstance=function(N){if(N.runtimeInstance!=null)this._viewModelInstanceValue.removeInstance(N.runtimeInstance),N.removeParent(this._parentViewModel)},X.prototype.removeInstanceAt=function(N){this._viewModelInstanceValue.removeInstanceAt(N)},X.prototype.instanceAt=function(N){var E=this._viewModelInstanceValue.instanceAt(N);if(E!=null){var _=new T0(E,this._parentViewModel);return(0,q.createFinalization)(_,E),_}return null},X.prototype.swap=function(N,E){this._viewModelInstanceValue.swap(N,E)},X.prototype.internalHandleCallback=function(N){N()},X}(P0),m0=function(V){H(X,V);function X(N,E){return V.call(this,N,E)||this}return Object.defineProperty(X.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(N){this._viewModelInstanceValue.value=N},enumerable:!1,configurable:!0}),X.prototype.rgb=function(N,E,_){this._viewModelInstanceValue.rgb(N,E,_)},X.prototype.rgba=function(N,E,_,d){this._viewModelInstanceValue.argb(d,N,E,_)},X.prototype.argb=function(N,E,_,d){this._viewModelInstanceValue.argb(N,E,_,d)},X.prototype.alpha=function(N){this._viewModelInstanceValue.alpha(N)},X.prototype.opacity=function(N){this._viewModelInstanceValue.alpha(Math.round(Math.max(0,Math.min(1,N))*255))},X.prototype.internalHandleCallback=function(N){N(this.value)},X}(P0),K1=function(V){H(X,V);function X(N,E){return V.call(this,N,E)||this}return Object.defineProperty(X.prototype,"value",{set:function(N){var E;this._viewModelInstanceValue.value((E=N===null||N===void 0?void 0:N.nativeImage)!==null&&E!==void 0?E:null)},enumerable:!1,configurable:!0}),X.prototype.internalHandleCallback=function(N){N()},X}(P0),o=function(V){H(X,V);function X(N,E){return V.call(this,N,E)||this}return Object.defineProperty(X.prototype,"value",{set:function(N){var E,_,d;if(N.isBindableArtboard)d=N;else d=N.file.internalBindableArtboardFromArtboard(N.nativeArtboard);if(this._viewModelInstanceValue.value((E=d===null||d===void 0?void 0:d.nativeArtboard)!==null&&E!==void 0?E:null),d===null||d===void 0?void 0:d.nativeViewModel)this._viewModelInstanceValue.viewModelInstance((_=d===null||d===void 0?void 0:d.nativeViewModel)!==null&&_!==void 0?_:null)},enumerable:!1,configurable:!0}),X.prototype.internalHandleCallback=function(N){N()},X}(P0),t0=function(V){return B(void 0,void 0,void 0,function(){var X,N,E;return z(this,function(_){switch(_.label){case 0:return X=new Request(V),[4,fetch(X)];case 1:if(N=_.sent(),!N.ok)throw Error("Failed to fetch the Rive file: HTTP ".concat(N.status));return[4,N.arrayBuffer()];case 2:return E=_.sent(),[2,E]}})})},s0=function(V){if(typeof V==="string")return[V];else if(V instanceof Array)return V;return[]},N1={EventManager:l,TaskQueueManager:Q0},i0=function(V){return B(void 0,void 0,void 0,function(){var X,N,E;return z(this,function(_){switch(_.label){case 0:return X=new Promise(function(d){return W.RuntimeLoader.getInstance(function(t){t.decodeAudio(V,d)})}),[4,X];case 1:return N=_.sent(),E=new q.AudioWrapper(N),q.finalizationRegistry.register(E,N),[2,E]}})})},B0=function(V){return B(void 0,void 0,void 0,function(){var X,N,E;return z(this,function(_){switch(_.label){case 0:return X=new Promise(function(d){return W.RuntimeLoader.getInstance(function(t){t.decodeImage(V,d)})}),[4,X];case 1:return N=_.sent(),E=new q.ImageWrapper(N),q.finalizationRegistry.register(E,N),[2,E]}})})},f0=function(V){return B(void 0,void 0,void 0,function(){var X,N,E;return z(this,function(_){switch(_.label){case 0:return X=new Promise(function(d){return W.RuntimeLoader.getInstance(function(t){t.decodeFont(V,d)})}),[4,X];case 1:return N=_.sent(),E=new q.FontWrapper(N),q.finalizationRegistry.register(E,N),[2,E]}})})}})(),$})()})});var lG=FW((pG,yQ)=>{(function(Q,J){if(typeof yQ=="object"&&yQ.exports)yQ.exports=J();else Q.EvEmitter=J()})(typeof window<"u"?window:pG,function(){function Q(){}let J=Q.prototype;return J.on=function(Z,$){if(!Z||!$)return this;let K=this._events=this._events||{},W=K[Z]=K[Z]||[];if(!W.includes($))W.push($);return this},J.once=function(Z,$){if(!Z||!$)return this;this.on(Z,$);let K=this._onceEvents=this._onceEvents||{},W=K[Z]=K[Z]||{};return W[$]=!0,this},J.off=function(Z,$){let K=this._events&&this._events[Z];if(!K||!K.length)return this;let W=K.indexOf($);if(W!=-1)K.splice(W,1);return this},J.emitEvent=function(Z,$){let K=this._events&&this._events[Z];if(!K||!K.length)return this;K=K.slice(0),$=$||[];let W=this._onceEvents&&this._onceEvents[Z];for(let q of K){if(W&&W[q])this.off(Z,q),delete W[q];q.apply(this,$)}return this},J.allOff=function(){return delete this._events,delete this._onceEvents,this},Q})});var sG=FW((oG,_Q)=>{/*! * imagesLoaded v5.0.0 * JavaScript is all like "You images are done yet or what?" * MIT License */(function(Q,J){if(typeof _Q=="object"&&_Q.exports)_Q.exports=J(Q,lG());else Q.imagesLoaded=J(Q,Q.EvEmitter)})(typeof window<"u"?window:oG,function(J,Z){let{jQuery:$,console:K}=J;function W(L){if(Array.isArray(L))return L;if(typeof L=="object"&&typeof L.length=="number")return[...L];return[L]}function q(L,j,F){if(!(this instanceof q))return new q(L,j,F);let R=L;if(typeof L=="string")R=document.querySelectorAll(L);if(!R){K.error(`Bad element for imagesLoaded ${R||L}`);return}if(this.elements=W(R),this.options={},typeof j=="function")F=j;else Object.assign(this.options,j);if(F)this.on("always",F);if(this.getImages(),$)this.jqDeferred=new $.Deferred;setTimeout(this.check.bind(this))}q.prototype=Object.create(Z.prototype),q.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};let H=[1,9,11];q.prototype.addElementImages=function(L){if(L.nodeName==="IMG")this.addImage(L);if(this.options.background===!0)this.addElementBackgroundImages(L);let{nodeType:j}=L;if(!j||!H.includes(j))return;let F=L.querySelectorAll("img");for(let R of F)this.addImage(R);if(typeof this.options.background=="string"){let R=L.querySelectorAll(this.options.background);for(let D of R)this.addElementBackgroundImages(D)}};let Y=/url\((['"])?(.*?)\1\)/gi;q.prototype.addElementBackgroundImages=function(L){let j=getComputedStyle(L);if(!j)return;let F=Y.exec(j.backgroundImage);while(F!==null){let R=F&&F[2];if(R)this.addBackground(R,L);F=Y.exec(j.backgroundImage)}},q.prototype.addImage=function(L){let j=new B(L);this.images.push(j)},q.prototype.addBackground=function(L,j){let F=new z(L,j);this.images.push(F)},q.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length){this.complete();return}let L=(j,F,R)=>{setTimeout(()=>{this.progress(j,F,R)})};this.images.forEach(function(j){j.once("progress",L),j.check()})},q.prototype.progress=function(L,j,F){if(this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!L.isLoaded,this.emitEvent("progress",[this,L,j]),this.jqDeferred&&this.jqDeferred.notify)this.jqDeferred.notify(this,L);if(this.progressedCount===this.images.length)this.complete();if(this.options.debug&&K)K.log(`progress: ${F}`,L,j)},q.prototype.complete=function(){let L=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(L,[this]),this.emitEvent("always",[this]),this.jqDeferred){let j=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[j](this)}};function B(L){this.img=L}B.prototype=Object.create(Z.prototype),B.prototype.check=function(){if(this.getIsImageComplete()){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}if(this.proxyImage=new Image,this.img.crossOrigin)this.proxyImage.crossOrigin=this.img.crossOrigin;this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src},B.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},B.prototype.confirm=function(L,j){this.isLoaded=L;let{parentNode:F}=this.img,R=F.nodeName==="PICTURE"?F:this.img;this.emitEvent("progress",[this,R,j])},B.prototype.handleEvent=function(L){let j="on"+L.type;if(this[j])this[j](L)},B.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},B.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},B.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)};function z(L,j){this.url=L,this.element=j,this.img=new Image}return z.prototype=Object.create(B.prototype),z.prototype.check=function(){if(this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete())this.confirm(this.img.naturalWidth!==0,"naturalWidth"),this.unbindEvents()},z.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},z.prototype.confirm=function(L,j){this.isLoaded=L,this.emitEvent("progress",[this,this.element,j])},q.makeJQueryPlugin=function(L){if(L=L||J.jQuery,!L)return;$=L,$.fn.imagesLoaded=function(j,F){return new q(this,j,F).jqDeferred.promise($(this))}},q.makeJQueryPlugin(),q})});function n8(Q){if(Q===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return Q}function mq(Q,J){Q.prototype=Object.create(J.prototype),Q.prototype.constructor=Q,Q.__proto__=J}/*! * GSAP 3.15.0 * https://gsap.com * * @license Copyright 2008-2026, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var c9={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},HZ={duration:0.5,overwrite:!1,delay:0},xK,U9,b1,U8=1e8,E1=1/U8,MK=Math.PI*2,cX=MK/4,pX=0,cq=Math.sqrt,lX=Math.cos,oX=Math.sin,Z9=function(J){return typeof J==="string"},m1=function(J){return typeof J==="function"},a8=function(J){return typeof J==="number"},h$=function(J){return typeof J>"u"},_8=function(J){return typeof J==="object"},m9=function(J){return J!==!1},hK=function(){return typeof window<"u"},k$=function(J){return m1(J)||Z9(J)},pq=typeof ArrayBuffer==="function"&&ArrayBuffer.isView||function(){},D9=Array.isArray,sX=/random\([^)]+\)/g,iX=/,\s*/g,hq=/(?:-?\.?\d|\.)+/gi,fK=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,mJ=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,OK=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,yK=/[+-]=-?[.\d]+/,nX=/[^,'"\[\]\s]+/gi,rX=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,_1,f8,EK,_K,e9={},T$={},lq,oq=function(J){return(T$=F7(J,e9))&&C9},f$=function(J,Z){return console.warn("Invalid property",J,"set to",Z,"Missing plugin? gsap.registerPlugin()")},GZ=function(J,Z){return!Z&&console.warn(J)},sq=function(J,Z){return J&&(e9[J]=Z)&&T$&&(T$[J]=Z)||e9},UZ=function(){return 0},aX={suppressEvents:!0,isStart:!0,kill:!1},A$={suppressEvents:!0,kill:!1},tX={suppressEvents:!0},uK={},jJ=[],kK={},iq,g9={},NK={},fq=30,I$=[],vK="",gK=function(J){var Z=J[0],$,K;if(_8(Z)||m1(Z)||(J=[J]),!($=(Z._gsap||{}).harness)){K=I$.length;while(K--&&!I$[K].targetTest(Z));$=I$[K]}K=J.length;while(K--)J[K]&&(J[K]._gsap||(J[K]._gsap=new pK(J[K],$)))||J.splice(K,1);return J},zJ=function(J){return J._gsap||gK(X8(J))[0]._gsap},dK=function(J,Z,$){return($=J[Z])&&m1($)?J[Z]():h$($)&&J.getAttribute&&J.getAttribute(Z)||$},S9=function(J,Z){return(J=J.split(",")).forEach(Z)||J},c1=function(J){return Math.round(J*1e5)/1e5||0},y1=function(J){return Math.round(J*1e7)/1e7||0},cJ=function(J,Z){var $=Z.charAt(0),K=parseFloat(Z.substr(2));return J=parseFloat(J),$==="+"?J+K:$==="-"?J-K:$==="*"?J*K:J/K},eX=function(J,Z){var $=Z.length,K=0;for(;J.indexOf(Z[K])<0&&++K<$;);return K<$},S$=function(){var J=jJ.length,Z=jJ.slice(0),$,K;kK={},jJ.length=0;for($=0;$H)q=q._prev}if(q)Z._next=q._next,q._next=Z;else Z._next=J[$],J[$]=Z;if(Z._next)Z._next._prev=Z;else J[K]=Z;return Z._prev=q,Z.parent=Z._dp=J,Z},BZ=function(J,Z,$,K){if($===void 0)$="_first";if(K===void 0)K="_last";var{_prev:W,_next:q}=Z;if(W)W._next=q;else if(J[$]===Z)J[$]=q;if(q)q._prev=W;else if(J[K]===Z)J[K]=W;Z._next=Z._prev=Z.parent=null},LJ=function(J,Z){J.parent&&(!Z||J.parent.autoRemoveChildren)&&J.parent.remove&&J.parent.remove(J),J._act=0},vJ=function(J,Z){if(J&&(!Z||Z._end>J._dur||Z._start<0)){var $=J;while($)$._dirty=1,$=$.parent}return J},$4=function(J){var Z=J.parent;while(Z&&Z.parent)Z._dirty=1,Z.totalDuration(),Z=Z.parent;return J},AK=function(J,Z,$,K){return J._startAt&&(U9?J._startAt.revert(A$):J.vars.immediateRender&&!J.vars.autoRevert||J._startAt.render(Z,!0,K))},Q4=function Q(J){return!J||J._ts&&Q(J.parent)},_q=function(J){return J._repeat?R7(J._tTime,J=J.duration()+J._rDelay)*J:0},R7=function(J,Z){var $=Math.floor(J=y1(J/Z));return J&&$===J?$-1:$},b$=function(J,Z){return(J-Z._start)*Z._ts+(Z._ts>=0?0:Z._dirty?Z.totalDuration():Z._tDur)},y$=function(J){return J._end=y1(J._start+(J._tDur/Math.abs(J._ts||J._rts||E1)||0))},_$=function(J,Z){var $=J._dp;if($&&$.smoothChildTiming&&J._ts)J._start=y1($._time-(J._ts>0?Z/J._ts:((J._dirty?J.totalDuration():J._tDur)-Z)/-J._ts)),y$(J),$._dirty||vJ($,J);return J},eq=function(J,Z){var $;if(Z._time||!Z._dur&&Z._initted||Z._startE1)Z.render($,!0)}if(vJ(J,Z)._dp&&J._initted&&J._time>=J._dur&&J._ts){if(J._dur=0&&$.totalTime($._tTime),$=$._dp}J._zTime=-E1}},y8=function(J,Z,$,K){return Z.parent&&LJ(Z),Z._start=y1((a8($)?$:$||J!==_1?G8(J,$,Z):J._time)+Z._delay),Z._end=y1(Z._start+(Z.totalDuration()/Math.abs(Z.timeScale())||0)),tq(J,Z,"_first","_last",J._sort?"_start":0),IK(Z)||(J._recent=Z),K||eq(J,Z),J._ts<0&&_$(J,J._tTime),J},J5=function(J,Z){return(e9.ScrollTrigger||f$("scrollTrigger",Z))&&e9.ScrollTrigger.create(Z,J)},Z5=function(J,Z,$,K,W){if(sK(J,Z,W),!J._initted)return 1;if(!$&&J._pt&&!U9&&(J._dur&&J.vars.lazy!==!1||!J._dur&&J.vars.lazy)&&iq!==d9.frame)return jJ.push(J),J._lazy=[W,K],1},K4=function Q(J){var Z=J.parent;return Z&&Z._ts&&Z._initted&&!Z._lock&&(Z.rawTime()<0||Q(Z))},IK=function(J){var Z=J.data;return Z==="isFromStart"||Z==="isStart"},W4=function(J,Z,$,K){var W=J.ratio,q=Z<0||!Z&&(!J._start&&K4(J)&&!(!J._initted&&IK(J))||(J._ts<0||J._dp._ts<0)&&!IK(J))?0:1,H=J._rDelay,Y=0,B,z,L;if(H&&J._repeat){if(Y=jZ(0,J._tDur,Z),z=R7(Y,H),J._yoyo&&z&1&&(q=1-q),z!==R7(J._tTime,H))W=1-q,J.vars.repeatRefresh&&J._initted&&J.invalidate()}if(q!==W||U9||K||J._zTime===E1||!Z&&J._zTime){if(!J._initted&&Z5(J,Z,K,$,Y))return;L=J._zTime,J._zTime=Z||($?E1:0),$||($=Z&&!L),J.ratio=q,J._from&&(q=1-q),J._time=0,J._tTime=Y,B=J._pt;while(B)B.r(q,B.d),B=B._next;if(Z<0&&AK(J,Z,$,!0),J._onUpdate&&!$&&t9(J,"onUpdate"),Y&&J._repeat&&!$&&J.parent&&t9(J,"onRepeat"),(Z>=J._tDur||Z<0)&&J.ratio===q){if(q&&LJ(J,1),!$&&!U9)t9(J,q?"onComplete":"onReverseComplete",!0),J._prom&&J._prom()}}else if(!J._zTime)J._zTime=Z},q4=function(J,Z,$){var K;if($>Z){K=J._first;while(K&&K._start<=$){if(K.data==="isPause"&&K._start>Z)return K;K=K._next}}else{K=J._last;while(K&&K._start>=$){if(K.data==="isPause"&&K._start0&&!K&&_$(J,J._tTime=J._tDur*H),J.parent&&y$(J),$||vJ(J.parent,J),J},uq=function(J){return J instanceof R9?vJ(J):D7(J,J._dur)},H4={_start:0,endTime:UZ,totalDuration:UZ},G8=function Q(J,Z,$){var K=J.labels,W=J._recent||H4,q=J.duration()>=U8?W.endTime(!1):J._dur,H,Y,B;if(Z9(Z)&&(isNaN(Z)||(Z in K))){if(Y=Z.charAt(0),B=Z.substr(-1)==="%",H=Z.indexOf("="),Y==="<"||Y===">")return H>=0&&(Z=Z.replace(/=/,"")),(Y==="<"?W._start:W.endTime(W._repeat>=0))+(parseFloat(Z.substr(1))||0)*(B?(H<0?W:$).totalDuration()/100:1);if(H<0)return Z in K||(K[Z]=q),K[Z];if(Y=parseFloat(Z.charAt(H-1)+Z.substr(H+1)),B&&$)Y=Y/100*(D9($)?$[0]:$).totalDuration();return H>1?Q(J,Z.substr(0,H-1),$)+Y:q+Y}return Z==null?q:+Z},WZ=function(J,Z,$){var K=a8(Z[1]),W=(K?2:1)+(J<2?0:1),q=Z[W],H,Y;if(K&&(q.duration=Z[1]),q.parent=$,J){H=q,Y=$;while(Y&&!("immediateRender"in H))H=Y.vars.defaults||{},Y=m9(Y.vars.inherit)&&Y.parent;q.immediateRender=m9(H.immediateRender),J<2?q.runBackwards=1:q.startAt=Z[W-1]}return new n1(Z[0],q,Z[W+1])},OJ=function(J,Z){return J||J===0?Z(J):Z},jZ=function(J,Z,$){return $Z?Z:$},X9=function(J,Z){return!Z9(J)||!(Z=rX.exec(J))?"":Z[1]},G4=function(J,Z,$){return OJ($,function(K){return jZ(J,Z,K)})},PK=[].slice,$5=function(J,Z){return J&&_8(J)&&"length"in J&&(!Z&&!J.length||(J.length-1 in J)&&_8(J[0]))&&!J.nodeType&&J!==f8},U4=function(J,Z,$){if($===void 0)$=[];return J.forEach(function(K){var W;return Z9(K)&&!Z||$5(K,1)?(W=$).push.apply(W,X8(K)):$.push(K)})||$},X8=function(J,Z,$){return b1&&!Z&&b1.selector?b1.selector(J):Z9(J)&&!$&&(EK||!C7())?PK.call((Z||_K).querySelectorAll(J),0):D9(J)?U4(J,$):$5(J)?PK.call(J,0):J?[J]:[]},TK=function(J){return J=X8(J)[0]||GZ("Invalid scope")||{},function(Z){var $=J.current||J.nativeElement||J;return X8(Z,$.querySelectorAll?$:$===J?GZ("Invalid scope")||_K.createElement("div"):J)}},Q5=function(J){return J.sort(function(){return 0.5-Math.random()})},K5=function(J){if(m1(J))return J;var Z=_8(J)?J:{each:J},$=gJ(Z.ease),K=Z.from||0,W=parseFloat(Z.base)||0,q={},H=K>0&&K<1,Y=isNaN(K)||H,B=Z.axis,z=K,L=K;if(Z9(K))z=L={center:0.5,edges:0.5,end:1}[K]||0;else if(!H&&Y)z=K[0],L=K[1];return function(j,F,R){var D=(R||Z).length,M=q[D],A,I,S,h,y,v,w,b,f;if(!M){if(f=Z.grid==="auto"?0:(Z.grid||[1,U8])[1],!f){w=-U8;while(w<(w=R[f++].getBoundingClientRect().left)&&fw&&(w=y),yD?D-1:!B?Math.max(f,D/f):B==="y"?D/f:f)||0)*(K==="edges"?-1:1),M.b=D<0?W-D:W,M.u=X9(Z.amount||Z.each)||0,$=$&&D<0?V4($):$}return D=(M[j]-M.min)/M.max||0,y1(M.b+($?$(D):D)*M.v)+M.u}},SK=function(J){var Z=Math.pow(10,((J+"").split(".")[1]||"").length);return function($){var K=y1(Math.round(parseFloat($)/J)*J*Z);return(K-K%1)/Z+(a8($)?0:X9($))}},W5=function(J,Z){var $=D9(J),K,W;if(!$&&_8(J))if(K=$=J.radius||U8,J.values){if(J=X8(J.values),W=!a8(J[0]))K*=K}else J=SK(J.increment);return OJ(Z,!$?SK(J):m1(J)?function(q){return W=J(q),Math.abs(W-q)<=K?W:q}:function(q){var H=parseFloat(W?q.x:q),Y=parseFloat(W?q.y:0),B=U8,z=0,L=J.length,j,F;while(L--){if(W)j=J[L].x-H,F=J[L].y-Y,j=j*j+F*F;else j=Math.abs(J[L]-H);if(jK?W-q:q)})},V7=function(J){return J.replace(sX,function(Z){var $=Z.indexOf("[")+1,K=Z.substring($||7,$?Z.indexOf("]"):Z.length-1).split(iX);return q5($?K:+K[0],$?0:+K[1],+K[2]||0.00001)})},G5=function(J,Z,$,K,W){var q=Z-J,H=K-$;return OJ(W,function(Y){return $+((Y-J)/q*H||0)})},L4=function Q(J,Z,$,K){var W=isNaN(J+Z)?0:function(F){return(1-F)*J+F*Z};if(!W){var q=Z9(J),H={},Y,B,z,L,j;if($===!0&&(K=1)&&($=null),q)J={p:J},Z={p:Z};else if(D9(J)&&!D9(Z)){z=[],L=J.length,j=L-2;for(B=1;B(H=Math.abs(H)))Y=q,W=H;return Y},t9=function(J,Z,$){var K=J.vars,W=K[Z],q=b1,H=J._ctx,Y,B,z;if(!W)return;return Y=K[Z+"Params"],B=K.callbackScope||J,$&&jJ.length&&S$(),H&&(b1=H),z=Y?W.apply(B,Y):W.call(B),b1=q,z},$Z=function(J){return LJ(J),J.scrollTrigger&&J.scrollTrigger.kill(!!U9),J.progress()<1&&t9(J,"onInterrupt"),J},N7,U5=[],X5=function(J){if(!J)return;if(J=!J.name&&J.default||J,hK()||J.headless){var Z=J.name,$=m1(J),K=Z&&!$&&J.init?function(){this._props=[]}:J,W={init:UZ,render:rK,add:lK,kill:b4,modifier:w4,rawVars:0},q={targetTest:0,get:0,getSetter:u$,aliases:{},register:0};if(C7(),J!==K){if(g9[Z])return;if(p9(K,p9(w$(J,W),q)),F7(K.prototype,F7(W,w$(J,q))),g9[K.prop=Z]=K,J.targetTest)I$.push(K),uK[Z]=1;Z=(Z==="css"?"CSS":Z.charAt(0).toUpperCase()+Z.substr(1))+"Plugin"}sq(Z,K),J.register&&J.register(C9,K,w9)}else U5.push(J)},M1=255,QZ={aqua:[0,M1,M1],lime:[0,M1,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,M1],navy:[0,0,128],white:[M1,M1,M1],olive:[128,128,0],yellow:[M1,M1,0],orange:[M1,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[M1,0,0],pink:[M1,192,203],cyan:[0,M1,M1],transparent:[M1,M1,M1,0]},FK=function(J,Z,$){return J+=J<0?1:J>1?-1:0,(J*6<1?Z+($-Z)*J*6:J<0.5?$:J*3<2?Z+($-Z)*(0.6666666666666666-J)*6:Z)*M1+0.5|0},Y5=function(J,Z,$){var K=!J?QZ.black:a8(J)?[J>>16,J>>8&M1,J&M1]:0,W,q,H,Y,B,z,L,j,F,R;if(!K){if(J.substr(-1)===",")J=J.substr(0,J.length-1);if(QZ[J])K=QZ[J];else if(J.charAt(0)==="#"){if(J.length<6)W=J.charAt(1),q=J.charAt(2),H=J.charAt(3),J="#"+W+W+q+q+H+H+(J.length===5?J.charAt(4)+J.charAt(4):"");if(J.length===9)return K=parseInt(J.substr(1,6),16),[K>>16,K>>8&M1,K&M1,parseInt(J.substr(7),16)/255];J=parseInt(J.substr(1),16),K=[J>>16,J>>8&M1,J&M1]}else if(J.substr(0,3)==="hsl"){if(K=R=J.match(hq),!Z)Y=+K[0]%360/360,B=+K[1]/100,z=+K[2]/100,q=z<=0.5?z*(B+1):z+B-z*B,W=z*2-q,K.length>3&&(K[3]*=1),K[0]=FK(Y+0.3333333333333333,W,q),K[1]=FK(Y,W,q),K[2]=FK(Y-0.3333333333333333,W,q);else if(~J.indexOf("="))return K=J.match(fK),$&&K.length<4&&(K[3]=1),K}else K=J.match(hq)||QZ.transparent;K=K.map(Number)}if(Z&&!R){if(W=K[0]/M1,q=K[1]/M1,H=K[2]/M1,L=Math.max(W,q,H),j=Math.min(W,q,H),z=(L+j)/2,L===j)Y=B=0;else F=L-j,B=z>0.5?F/(2-L-j):F/(L+j),Y=L===W?(q-H)/F+(qJ||A<0)&&($+=A-Z),K+=A,y=K-$,S=y-q,S>0||I)v=++L.frame,j=y-L.time*1000,L.time=y=y/1000,q+=S+(S>=W?4:W-S),h=1;if(I||(Y=B(D)),h)for(F=0;F=A&&F--},_listeners:H},L}(),C7=function(){return!XZ&&d9.wake()},G1={},N4=/^[\d.\-M][\d.\-,\s]/,F4=/["']/g,R4=function(J){var Z={},$=J.substr(1,J.length-3).split(":"),K=$[0],W=1,q=$.length,H,Y,B;for(;W1&&$.config?$.config.apply(null,~J.indexOf("{")?[R4(Z[1])]:D4(J).split(",").map(rq)):G1._CE&&N4.test(J)?G1._CE("",J):$},V4=function(J){return function(Z){return 1-J(1-Z)}},gJ=function(J,Z){return!J?Z:(m1(J)?J:G1[J]||C4(J))||Z},pJ=function(J,Z,$,K){if($===void 0)$=function(Y){return 1-Z(1-Y)};if(K===void 0)K=function(Y){return Y<0.5?Z(Y*2)/2:1-Z((1-Y)*2)/2};var W={easeIn:Z,easeOut:$,easeInOut:K},q;return S9(J,function(H){G1[H]=e9[H]=W,G1[q=H.toLowerCase()]=$;for(var Y in W)G1[q+(Y==="easeIn"?".in":Y==="easeOut"?".out":".inOut")]=G1[H+"."+Y]=W[Y]}),W},j5=function(J){return function(Z){return Z<0.5?(1-J(1-Z*2))/2:0.5+J((Z-0.5)*2)/2}},RK=function Q(J,Z,$){var K=Z>=1?Z:1,W=($||(J?0.3:0.45))/(Z<1?Z:1),q=W/MK*(Math.asin(1/K)||0),H=function(z){return z===1?1:K*Math.pow(2,-10*z)*oX((z-q)*W)+1},Y=J==="out"?H:J==="in"?function(B){return 1-H(1-B)}:j5(H);return W=MK/W,Y.config=function(B,z){return Q(J,B,z)},Y},DK=function Q(J,Z){if(Z===void 0)Z=1.70158;var $=function(q){return q?--q*q*((Z+1)*q+Z)+1:0},K=J==="out"?$:J==="in"?function(W){return 1-$(1-W)}:j5($);return K.config=function(W){return Q(J,W)},K};S9("Linear,Quad,Cubic,Quart,Quint,Strong",function(Q,J){var Z=J<5?J+1:J;pJ(Q+",Power"+(Z-1),J?function($){return Math.pow($,Z)}:function($){return $},function($){return 1-Math.pow(1-$,Z)},function($){return $<0.5?Math.pow($*2,Z)/2:1-Math.pow((1-$)*2,Z)/2})});G1.Linear.easeNone=G1.none=G1.Linear.easeIn;pJ("Elastic",RK("in"),RK("out"),RK());(function(Q,J){var Z=1/J,$=2*Z,K=2.5*Z,W=function(H){return H0?$+($+this._rDelay)*this._repeat:$):this.totalDuration()&&this._dur},J.totalDuration=function($){if(!arguments.length)return this._tDur;return this._dirty=0,D7(this,this._repeat<0?$:($-this._repeat*this._rDelay)/(this._repeat+1))},J.totalTime=function($,K){if(C7(),!arguments.length)return this._tTime;var W=this._dp;if(W&&W.smoothChildTiming&&this._ts){_$(this,$),!W._dp||W.parent||eq(W,this);while(W&&W.parent){if(W.parent._time!==W._start+(W._ts>=0?W._tTime/W._ts:(W.totalDuration()-W._tTime)/-W._ts))W.totalTime(W._tTime,!0);W=W.parent}if(!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&$0||!this._tDur&&!$))y8(this._dp,this,this._start-this._delay)}if(this._tTime!==$||!this._dur&&!K||this._initted&&Math.abs(this._zTime)===E1||!this._initted&&this._dur&&$||!$&&!this._initted&&(this.add||this._ptLookup))this._ts||(this._pTime=$),nq(this,$,K);return this},J.time=function($,K){return arguments.length?this.totalTime(Math.min(this.totalDuration(),$+_q(this))%(this._dur+this._rDelay)||($?this._dur:0),K):this._time},J.totalProgress=function($,K){return arguments.length?this.totalTime(this.totalDuration()*$,K):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},J.progress=function($,K){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-$:$)+_q(this),K):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},J.iteration=function($,K){var W=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+($-1)*W,K):this._repeat?R7(this._tTime,W)+1:1},J.timeScale=function($,K){if(!arguments.length)return this._rts===-E1?0:this._rts;if(this._rts===$)return this;var W=this.parent&&this._ts?b$(this.parent._time,this):this._tTime;return this._rts=+$||0,this._ts=this._ps||$===-E1?0:this._rts,this.totalTime(jZ(-Math.abs(this._delay),this.totalDuration(),W),K!==!1),y$(this),$4(this)},J.paused=function($){if(!arguments.length)return this._ps;if(this._ps!==$)if(this._ps=$,$)this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0;else C7(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==E1&&(this._tTime-=E1));return this},J.startTime=function($){if(arguments.length){this._start=y1($);var K=this.parent||this._dp;return K&&(K._sort||!this.parent)&&y8(K,this,this._start-this._delay),this}return this._start},J.endTime=function($){return this._start+(m9($)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},J.rawTime=function($){var K=this.parent||this._dp;return!K?this._tTime:$&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):!this._ts?this._tTime:b$(K.rawTime($),this)},J.revert=function($){if($===void 0)$=tX;var K=U9;if(U9=$,mK(this))this.timeline&&this.timeline.revert($),this.totalTime(-0.01,$.suppressEvents);return this.data!=="nested"&&$.kill!==!1&&this.kill(),U9=K,this},J.globalTime=function($){var K=this,W=arguments.length?$:K.rawTime();while(K)W=K._start+W/(Math.abs(K._ts)||1),K=K._dp;return!this.parent&&this._sat?this._sat.globalTime($):W},J.repeat=function($){if(arguments.length)return this._repeat=$===1/0?-2:$,uq(this);return this._repeat===-2?1/0:this._repeat},J.repeatDelay=function($){if(arguments.length){var K=this._time;return this._rDelay=$,uq(this),K?this.time(K):this}return this._rDelay},J.yoyo=function($){if(arguments.length)return this._yoyo=$,this;return this._yoyo},J.seek=function($,K){return this.totalTime(G8(this,$),m9(K))},J.restart=function($,K){return this.play().totalTime($?-this._delay:0,m9(K)),this._dur||(this._zTime=-E1),this},J.play=function($,K){return $!=null&&this.seek($,K),this.reversed(!1).paused(!1)},J.reverse=function($,K){return $!=null&&this.seek($||this.totalDuration(),K),this.reversed(!0).paused(!1)},J.pause=function($,K){return $!=null&&this.seek($,K),this.paused(!0)},J.resume=function(){return this.paused(!1)},J.reversed=function($){if(arguments.length)return!!$!==this.reversed()&&this.timeScale(-this._rts||($?-E1:0)),this;return this._rts<0},J.invalidate=function(){return this._initted=this._act=0,this._zTime=-E1,this},J.isActive=function(){var $=this.parent||this._dp,K=this._start,W;return!!(!$||this._ts&&this._initted&&$.isActive()&&(W=$.rawTime(!0))>=K&&W1){if(!K)delete q[$];else q[$]=K,W&&(q[$+"Params"]=W),$==="onUpdate"&&(this._onUpdate=K);return this}return q[$]},J.then=function($){var K=this,W=K._prom;return new Promise(function(q){var H=m1($)?$:aq,Y=function(){var z=K.then;K.then=null,W&&W(),m1(H)&&(H=H(K))&&(H.then||H===K)&&(K.then=z),q(H),K.then=z};if(K._initted&&K.totalProgress()===1&&K._ts>=0||!K._tTime&&K._ts<0)Y();else K._prom=Y})},J.kill=function(){$Z(this)},Q}();p9(YZ.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:-E1,_prom:0,_ps:!1,_rts:1});var R9=function(Q){mq(J,Q);function J($,K){var W;if($===void 0)$={};return W=Q.call(this,$)||this,W.labels={},W.smoothChildTiming=!!$.smoothChildTiming,W.autoRemoveChildren=!!$.autoRemoveChildren,W._sort=m9($.sortChildren),_1&&y8($.parent||_1,n8(W),K),$.reversed&&W.reverse(),$.paused&&W.paused(!0),$.scrollTrigger&&J5(n8(W),$.scrollTrigger),W}var Z=J.prototype;return Z.to=function(K,W,q){return WZ(0,arguments,this),this},Z.from=function(K,W,q){return WZ(1,arguments,this),this},Z.fromTo=function(K,W,q,H){return WZ(2,arguments,this),this},Z.set=function(K,W,q){return W.duration=0,W.parent=this,KZ(W).repeatDelay||(W.repeat=0),W.immediateRender=!!W.immediateRender,new n1(K,W,G8(this,q),1),this},Z.call=function(K,W,q){return y8(this,n1.delayedCall(0,K,W),q)},Z.staggerTo=function(K,W,q,H,Y,B,z){return q.duration=W,q.stagger=q.stagger||H,q.onComplete=B,q.onCompleteParams=z,q.parent=this,new n1(K,q,G8(this,Y)),this},Z.staggerFrom=function(K,W,q,H,Y,B,z){return q.runBackwards=1,KZ(q).immediateRender=m9(q.immediateRender),this.staggerTo(K,W,q,H,Y,B,z)},Z.staggerFromTo=function(K,W,q,H,Y,B,z,L){return H.startAt=q,KZ(H).immediateRender=m9(H.immediateRender),this.staggerTo(K,W,H,Y,B,z,L)},Z.render=function(K,W,q){var H=this._time,Y=this._dirty?this.totalDuration():this._tDur,B=this._dur,z=K<=0?0:y1(K),L=this._zTime<0!==K<0&&(this._initted||!B),j,F,R,D,M,A,I,S,h,y,v,w;if(this!==_1&&z>Y&&K>=0&&(z=Y),z!==this._tTime||q||L){if(H!==this._time&&B)z+=this._time-H,K+=this._time-H;if(j=z,h=this._start,S=this._ts,A=!S,L)B||(H=this._zTime),(K||!W)&&(this._zTime=K);if(this._repeat){if(v=this._yoyo,M=B+this._rDelay,this._repeat<-1&&K<0)return this.totalTime(M*100+K,W,q);if(j=y1(z%M),z===Y)D=this._repeat,j=B;else{if(y=y1(z/M),D=~~y,D&&D===y)j=B,D--;j>B&&(j=B)}if(y=R7(this._tTime,M),!H&&this._tTime&&y!==D&&this._tTime-y*M-this._dur<=0&&(y=D),v&&D&1)j=B-j,w=1;if(D!==y&&!this._lock){var b=v&&y&1,f=b===(v&&D&1);if(D=H&&K>=0){F=this._first;while(F){if(R=F._next,(F._act||j>=F._start)&&F._ts&&I!==F){if(F.parent!==this)return this.render(K,W,q);if(F.render(F._ts>0?(j-F._start)*F._ts:(F._dirty?F.totalDuration():F._tDur)+(j-F._start)*F._ts,W,q),j!==this._time||!this._ts&&!A){I=0,R&&(z+=this._zTime=-E1);break}}F=R}}else{F=this._last;var T=K<0?K:j;while(F){if(R=F._prev,(F._act||T<=F._end)&&F._ts&&I!==F){if(F.parent!==this)return this.render(K,W,q);if(F.render(F._ts>0?(T-F._start)*F._ts:(F._dirty?F.totalDuration():F._tDur)+(T-F._start)*F._ts,W,q||U9&&mK(F)),j!==this._time||!this._ts&&!A){I=0,R&&(z+=this._zTime=T?-E1:E1);break}}F=R}}if(I&&!W){if(this.pause(),I.render(j>=H?0:-E1)._zTime=j>=H?1:-1,this._ts)return this._start=h,y$(this),this.render(K,W,q)}if(this._onUpdate&&!W&&t9(this,"onUpdate",!0),z===Y&&this._tTime>=this.totalDuration()||!z&&H){if(h===this._start||Math.abs(S)!==Math.abs(this._ts)){if(!this._lock){if((K||!B)&&(z===Y&&this._ts>0||!z&&this._ts<0)&&LJ(this,1),!W&&!(K<0&&!H)&&(z||H||!Y))t9(this,z===Y&&K>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(z0)&&this._prom()}}}}return this},Z.add=function(K,W){var q=this;if(a8(W)||(W=G8(this,W,K)),!(K instanceof YZ)){if(D9(K))return K.forEach(function(H){return q.add(H,W)}),this;if(Z9(K))return this.addLabel(K,W);if(m1(K))K=n1.delayedCall(0,K);else return this}return this!==K?y8(this,K,W):this},Z.getChildren=function(K,W,q,H){if(K===void 0)K=!0;if(W===void 0)W=!0;if(q===void 0)q=!0;if(H===void 0)H=-U8;var Y=[],B=this._first;while(B){if(B._start>=H)if(B instanceof n1)W&&Y.push(B);else q&&Y.push(B),K&&Y.push.apply(Y,B.getChildren(!0,W,q));B=B._next}return Y},Z.getById=function(K){var W=this.getChildren(1,1,1),q=W.length;while(q--)if(W[q].vars.id===K)return W[q]},Z.remove=function(K){if(Z9(K))return this.removeLabel(K);if(m1(K))return this.killTweensOf(K);if(K.parent===this&&BZ(this,K),K===this._recent)this._recent=this._last;return vJ(this)},Z.totalTime=function(K,W){if(!arguments.length)return this._tTime;if(this._forcing=1,!this._dp&&this._ts)this._start=y1(d9.time-(this._ts>0?K/this._ts:(this.totalDuration()-K)/-this._ts));return Q.prototype.totalTime.call(this,K,W),this._forcing=0,this},Z.addLabel=function(K,W){return this.labels[K]=G8(this,W),this},Z.removeLabel=function(K){return delete this.labels[K],this},Z.addPause=function(K,W,q){var H=n1.delayedCall(0,W||UZ,q);return H.data="isPause",this._hasPause=1,y8(this,H,G8(this,K))},Z.removePause=function(K){var W=this._first;K=G8(this,K);while(W){if(W._start===K&&W.data==="isPause")LJ(W);W=W._next}},Z.killTweensOf=function(K,W,q){var H=this.getTweensOf(K,q),Y=H.length;while(Y--)BJ!==H[Y]&&H[Y].kill(K,W);return this},Z.getTweensOf=function(K,W){var q=[],H=X8(K),Y=this._first,B=a8(W),z;while(Y){if(Y instanceof n1){if(eX(Y._targets,H)&&(B?(!BJ||Y._initted&&Y._ts)&&Y.globalTime(0)<=W&&Y.globalTime(Y.totalDuration())>W:!W||Y.isActive()))q.push(Y)}else if((z=Y.getTweensOf(H,W)).length)q.push.apply(q,z);Y=Y._next}return q},Z.tweenTo=function(K,W){W=W||{};var q=this,H=G8(q,K),Y=W,B=Y.startAt,z=Y.onStart,L=Y.onStartParams,j=Y.immediateRender,F,R=n1.to(q,p9({ease:W.ease||"none",lazy:!1,immediateRender:!1,time:H,overwrite:"auto",duration:W.duration||Math.abs((H-(B&&"time"in B?B.time:q._time))/q.timeScale())||E1,onStart:function(){if(q.pause(),!F){var M=W.duration||Math.abs((H-(B&&"time"in B?B.time:q._time))/q.timeScale());R._dur!==M&&D7(R,M,0,1).render(R._time,!0,!0),F=1}z&&z.apply(R,L||[])}},W));return j?R.render(0):R},Z.tweenFromTo=function(K,W,q){return this.tweenTo(W,p9({startAt:{time:G8(this,K)}},q))},Z.recent=function(){return this._recent},Z.nextLabel=function(K){if(K===void 0)K=this._time;return vq(this,G8(this,K))},Z.previousLabel=function(K){if(K===void 0)K=this._time;return vq(this,G8(this,K),1)},Z.currentLabel=function(K){return arguments.length?this.seek(K,!0):this.previousLabel(this._time+E1)},Z.shiftChildren=function(K,W,q){if(q===void 0)q=0;var H=this._first,Y=this.labels,B;K=y1(K);while(H){if(H._start>=q)H._start+=K,H._end+=K;H=H._next}if(W){for(B in Y)if(Y[B]>=q)Y[B]+=K}return vJ(this)},Z.invalidate=function(K){var W=this._first;this._lock=0;while(W)W.invalidate(K),W=W._next;return Q.prototype.invalidate.call(this,K)},Z.clear=function(K){if(K===void 0)K=!0;var W=this._first,q;while(W)q=W._next,this.remove(W),W=q;return this._dp&&(this._time=this._tTime=this._pTime=0),K&&(this.labels={}),vJ(this)},Z.totalDuration=function(K){var W=0,q=this,H=q._last,Y=U8,B,z,L;if(arguments.length)return q.timeScale((q._repeat<0?q.duration():q.totalDuration())/(q.reversed()?-K:K));if(q._dirty){L=q.parent;while(H){if(B=H._prev,H._dirty&&H.totalDuration(),z=H._start,z>Y&&q._sort&&H._ts&&!q._lock)q._lock=1,y8(q,H,z-H._delay,1)._lock=0;else Y=z;if(z<0&&H._ts){if(W-=z,!L&&!q._dp||L&&L.smoothChildTiming)q._start+=y1(z/q._ts),q._time-=z,q._tTime-=z;q.shiftChildren(-z,!1,-1/0),Y=0}H._end>W&&H._ts&&(W=H._end),H=B}D7(q,q===_1&&q._time>W?q._time:W,1,1),q._dirty=0}return q._tDur},J.updateRoot=function(K){if(_1._ts)nq(_1,b$(K,_1)),iq=d9.frame;if(d9.frame>=fq){fq+=c9.autoSleep||120;var W=_1._first;if(!W||!W._ts){if(c9.autoSleep&&d9._listeners.length<2){while(W&&!W._ts)W=W._next;W||d9.sleep()}}}},J}(YZ);p9(R9.prototype,{_lock:0,_hasPause:0,_forcing:0});var M4=function(J,Z,$,K,W,q,H){var Y=new w9(this._pt,J,Z,0,1,nK,null,W),B=0,z=0,L,j,F,R,D,M,A,I;if(Y.b=$,Y.e=K,$+="",K+="",A=~K.indexOf("random("))K=V7(K);if(q)I=[$,K],q(I,J,Z),$=I[0],K=I[1];j=$.match(OK)||[];while(L=OK.exec(K)){if(R=L[0],D=K.substring(B,L.index),F)F=(F+1)%5;else if(D.substr(-5)==="rgba(")F=1;if(R!==j[z++])M=parseFloat(j[z-1])||0,Y._pt={_next:Y._pt,p:D||z===1?D:",",s:M,c:R.charAt(1)==="="?cJ(M,R)-M:parseFloat(R)-M,m:F&&F<4?Math.round:0},B=OK.lastIndex}if(Y.c=B")}),S.duration();else{y={};for(w in R)w==="ease"||w==="easeEach"||I4(w,R[w],y,R.easeEach);for(w in y){Q0=y[w].sort(function(i,Z0){return i.t-Z0.t}),l=0;for(h=0;hY-E1&&!z?Y:KB)j=B;if(A=this._yoyo&&R&1,A)j=B-j;if(M=R7(this._tTime,D),j===H&&!q&&this._initted&&R===M)return this._tTime=L,this;if(R!==M){if(this.vars.repeatRefresh&&!A&&!this._lock&&j!==D&&this._initted)this._lock=q=1,this.render(y1(D*R),!0).invalidate()._lock=0}}if(!this._initted){if(Z5(this,z?K:j,q,W,L))return this._tTime=0,this;if(H!==this._time&&!(q&&this.vars.repeatRefresh&&R!==M))return this;if(B!==this._dur)return this.render(K,W,q)}if(this._rEase){var h=j0||!L&&this._ts<0)&&LJ(this,1),!W&&!(z&&!H)&&(L||H||A))t9(this,L===Y?"onComplete":"onReverseComplete",!0),this._prom&&!(L0)&&this._prom()}}return this},Z.targets=function(){return this._targets},Z.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),Q.prototype.invalidate.call(this,K)},Z.resetTo=function(K,W,q,H,Y){XZ||d9.wake(),this._ts||this.play();var B=Math.min(this._dur,(this._dp._time-this._start)*this._ts),z;if(this._initted||sK(this,B),z=this._ease(B/this._dur),k4(this,K,W,q,H,z,B,Y))return this.resetTo(K,W,q,H,1);return _$(this,0),this.parent||tq(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0)},Z.kill=function(K,W){if(W===void 0)W="all";if(!K&&(!W||W==="all"))return this._lazy=this._pt=0,this.parent?$Z(this):this.scrollTrigger&&this.scrollTrigger.kill(!!U9),this;if(this.timeline){var q=this.timeline.totalDuration();return this.timeline.killTweensOf(K,W,BJ&&BJ.vars.overwrite!==!0)._first||$Z(this),this.parent&&q!==this.timeline.totalDuration()&&D7(this,this._dur*this.timeline._tDur/q,0,1),this}var H=this._targets,Y=K?X8(K):H,B=this._ptLookup,z=this._pt,L,j,F,R,D,M,A;if((!W||W==="all")&&Z4(H,Y))return W==="all"&&(this._pt=0),$Z(this);if(L=this._op=this._op||[],W!=="all"){if(Z9(W))D={},S9(W,function(I){return D[I]=1}),W=D;W=A4(H,W)}A=H.length;while(A--)if(~Y.indexOf(H[A])){if(j=B[A],W==="all")L[A]=W,R=j,F={};else F=L[A]=L[A]||{},R=W;for(D in R){if(M=j&&j[D],M){if(!("kill"in M.d)||M.d.kill(D)===!0)BZ(this,M,"_pt");delete j[D]}if(F!=="all")F[D]=1}}return this._initted&&!this._pt&&z&&$Z(this),this},J.to=function(K,W){return new J(K,W,arguments[2])},J.from=function(K,W){return WZ(1,arguments)},J.delayedCall=function(K,W,q,H){return new J(W,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:K,onComplete:W,onReverseComplete:W,onCompleteParams:q,onReverseCompleteParams:q,callbackScope:H})},J.fromTo=function(K,W,q){return WZ(2,arguments)},J.set=function(K,W){return W.duration=0,W.repeatDelay||(W.repeat=0),new J(K,W)},J.killTweensOf=function(K,W,q){return _1.killTweensOf(K,W,q)},J}(YZ);p9(n1.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});S9("staggerTo,staggerFrom,staggerFromTo",function(Q){n1[Q]=function(){var J=new R9,Z=PK.call(arguments,0);return Z.splice(Q==="staggerFromTo"?5:4,0,0),J[Q].apply(J,Z)}});var iK=function(J,Z,$){return J[Z]=$},O5=function(J,Z,$){return J[Z]($)},P4=function(J,Z,$,K){return J[Z](K.fp,$)},T4=function(J,Z,$){return J.setAttribute(Z,$)},u$=function(J,Z){return m1(J[Z])?O5:h$(J[Z])&&J.setAttribute?T4:iK},N5=function(J,Z){return Z.set(Z.t,Z.p,Math.round((Z.s+Z.c*J)*1e6)/1e6,Z)},S4=function(J,Z){return Z.set(Z.t,Z.p,!!(Z.s+Z.c*J),Z)},nK=function(J,Z){var $=Z._pt,K="";if(!J&&Z.b)K=Z.b;else if(J===1&&Z.e)K=Z.e;else{while($)K=$.p+($.m?$.m($.s+$.c*J):Math.round(($.s+$.c*J)*1e4)/1e4)+K,$=$._next;K+=Z.c}Z.set(Z.t,Z.p,K,Z)},rK=function(J,Z){var $=Z._pt;while($)$.r(J,$.d),$=$._next},w4=function(J,Z,$,K){var W=this._pt,q;while(W)q=W._next,W.p===K&&W.modifier(J,Z,$),W=q},b4=function(J){var Z=this._pt,$,K;while(Z){if(K=Z._next,Z.p===J&&!Z.op||Z.op===J)BZ(this,Z,"_pt");else if(!Z.dep)$=1;Z=K}return!$},x4=function(J,Z,$,K){K.mSet(J,Z,K.m.call(K.tween,$,K.mt),K)},aK=function(J){var Z=J._pt,$,K,W,q;while(Z){$=Z._next,K=W;while(K&&K.pr>Z.pr)K=K._next;if(Z._prev=K?K._prev:q)Z._prev._next=Z;else W=Z;if(Z._next=K)K._prev=Z;else q=Z;Z=$}J._pt=W},w9=function(){function Q(Z,$,K,W,q,H,Y,B,z){if(this.t=$,this.s=W,this.c=q,this.p=K,this.r=H||N5,this.d=Y||this,this.set=B||iK,this.pr=z||0,this._next=Z,Z)Z._prev=this}var J=Q.prototype;return J.modifier=function($,K,W){this.mSet=this.mSet||this.set,this.set=x4,this.m=$,this.mt=W,this.tween=K},Q}();S9(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,easeReverse",function(Q){return uK[Q]=1});e9.TweenMax=e9.TweenLite=n1;e9.TimelineLite=e9.TimelineMax=R9;_1=new R9({sortChildren:!1,defaults:HZ,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});c9.stringFilter=cK;var dJ=[],P$={},h4=[],dq=0,f4=0,CK=function(J){return(P$[J]||h4).map(function(Z){return Z()})},bK=function(){var J=Date.now(),Z=[];if(J-dq>2)CK("matchMediaInit"),dJ.forEach(function($){var{queries:K,conditions:W}=$,q,H,Y,B;for(H in K)if(q=f8.matchMedia(K[H]).matches,q&&(Y=1),q!==W[H])W[H]=q,B=1;if(B)$.revert(),Y&&Z.push($)}),CK("matchMediaRevert"),Z.forEach(function($){return $.onMatch($,function(K){return $.add(null,K)})}),dq=J,CK("matchMedia")},F5=function(){function Q(Z,$){this.selector=$&&TK($),this.data=[],this._r=[],this.isReverted=!1,this.id=f4++,Z&&this.add(Z)}var J=Q.prototype;return J.add=function($,K,W){if(m1($))W=K,K=$,$=m1;var q=this,H=function(){var B=b1,z=q.selector,L;return B&&B!==q&&B.data.push(q),W&&(q.selector=TK(W)),b1=q,L=K.apply(q,arguments),m1(L)&&q._r.push(L),b1=B,q.selector=z,q.isReverted=!1,L};return q.last=H,$===m1?H(q,function(Y){return q.add(null,Y)}):$?q[$]=H:H},J.ignore=function($){var K=b1;b1=null,$(this),b1=K},J.getTweens=function(){var $=[];return this.data.forEach(function(K){return K instanceof Q?$.push.apply($,K.getTweens()):K instanceof n1&&!(K.parent&&K.parent.data==="nested")&&$.push(K)}),$},J.clear=function(){this._r.length=this.data.length=0},J.kill=function($,K){var W=this;if($)(function(){var H=W.getTweens(),Y=W.data.length,B;while(Y--)if(B=W.data[Y],B.data==="isFlip")B.revert(),B.getChildren(!0,!0,!1).forEach(function(z){return H.splice(H.indexOf(z),1)});H.map(function(z){return{g:z._dur||z._delay||z._sat&&!z._sat.vars.immediateRender?z.globalTime(0):-1/0,t:z}}).sort(function(z,L){return L.g-z.g||-1/0}).forEach(function(z){return z.t.revert($)}),Y=W.data.length;while(Y--)if(B=W.data[Y],B instanceof R9){if(B.data!=="nested")B.scrollTrigger&&B.scrollTrigger.revert(),B.kill()}else!(B instanceof n1)&&B.revert&&B.revert($);W._r.forEach(function(z){return z($,W)}),W.isReverted=!0})();else this.data.forEach(function(H){return H.kill&&H.kill()});if(this.clear(),K){var q=dJ.length;while(q--)dJ[q].id===this.id&&dJ.splice(q,1)}},J.revert=function($){this.kill($||{})},Q}(),y4=function(){function Q(Z){this.contexts=[],this.scope=Z,b1&&b1.data.push(this)}var J=Q.prototype;return J.add=function($,K,W){_8($)||($={matches:$});var q=new F5(0,W||this.scope),H=q.conditions={},Y,B,z;b1&&!q.selector&&(q.selector=b1.selector),this.contexts.push(q),K=q.add("onMatch",K),q.queries=$;for(B in $)if(B==="all")z=1;else if(Y=f8.matchMedia($[B]),Y)dJ.indexOf(q)<0&&dJ.push(q),(H[B]=Y.matches)&&(z=1),Y.addListener?Y.addListener(bK):Y.addEventListener("change",bK);return z&&K(q,function(L){return q.add(null,L)}),this},J.revert=function($){this.kill($||{})},J.kill=function($){this.contexts.forEach(function(K){return K.kill($,!0)})},Q}(),x$={registerPlugin:function(){for(var J=arguments.length,Z=Array(J),$=0;$1){var K=J.map(function(z){return C9.quickSetter(z,Z,$)}),W=K.length;return function(z){var L=W;while(L--)K[L](z)}}J=J[0]||{};var q=g9[Z],H=zJ(J),Y=H.harness&&(H.harness.aliases||{})[Z]||Z,B=q?function(z){var L=new q;N7._pt=0,L.init(J,$?z+$:z,N7,0,[J]),L.render(1,L),N7._pt&&rK(1,N7)}:H.set(J,Y);return q?B:function(z){return B(J,Y,$?z+$:z,H,1)}},quickTo:function(J,Z,$){var K,W=C9.to(J,p9((K={},K[Z]="+=0.1",K.paused=!0,K.stagger=0,K),$||{})),q=function(Y,B,z){return W.resetTo(Z,Y,B,z)};return q.tween=W,q},isTweening:function(J){return _1.getTweensOf(J,!0).length>0},defaults:function(J){return J&&J.ease&&(J.ease=gJ(J.ease,HZ.ease)),yq(HZ,J||{})},config:function(J){return yq(c9,J||{})},registerEffect:function(J){var{name:Z,effect:$,plugins:K,defaults:W,extendTimeline:q}=J;if((K||"").split(",").forEach(function(H){return H&&!g9[H]&&!e9[H]&&GZ(Z+" effect requires "+H+" plugin.")}),NK[Z]=function(H,Y,B){return $(X8(H),p9(Y||{},W),B)},q)R9.prototype[Z]=function(H,Y,B){return this.add(NK[Z](H,_8(Y)?Y:(B=Y)&&{},this),B)}},registerEase:function(J,Z){G1[J]=gJ(Z)},parseEase:function(J,Z){return arguments.length?gJ(J,Z):G1},getById:function(J){return _1.getById(J)},exportRoot:function(J,Z){if(J===void 0)J={};var $=new R9(J),K,W;$.smoothChildTiming=m9(J.smoothChildTiming),_1.remove($),$._dp=0,$._time=$._tTime=_1._time,K=_1._first;while(K){if(W=K._next,Z||!(!K._dur&&K instanceof n1&&K.vars.onComplete===K._targets[0]))y8($,K,K._start-K._delay);K=W}return y8(_1,$,0),$},context:function(J,Z){return J?new F5(J,Z):b1},matchMedia:function(J){return new y4(J)},matchMediaRefresh:function(){return dJ.forEach(function(J){var Z=J.conditions,$,K;for(K in Z)if(Z[K])Z[K]=!1,$=1;$&&J.revert()})||bK()},addEventListener:function(J,Z){var $=P$[J]||(P$[J]=[]);~$.indexOf(Z)||$.push(Z)},removeEventListener:function(J,Z){var $=P$[J],K=$&&$.indexOf(Z);K>=0&&$.splice(K,1)},utils:{wrap:j4,wrapYoyo:z4,distribute:K5,random:q5,snap:W5,normalize:B4,getUnit:X9,clamp:G4,splitColor:Y5,toArray:X8,selector:TK,mapRange:G5,pipe:X4,unitize:Y4,interpolate:L4,shuffle:Q5},install:oq,effects:NK,ticker:d9,updateRoot:R9.updateRoot,plugins:g9,globalTimeline:_1,core:{PropTween:w9,globals:sq,Tween:n1,Timeline:R9,Animation:YZ,getCache:zJ,_removeLinkedListItem:BZ,reverting:function(){return U9},context:function(J){if(J&&b1)b1.data.push(J),J._ctx=b1;return b1},suppressOverwrites:function(J){return xK=J}}};S9("to,from,fromTo,delayedCall,set,killTweensOf",function(Q){return x$[Q]=n1[Q]});d9.add(R9.updateRoot);N7=x$.to({},{duration:0});var _4=function(J,Z){var $=J._pt;while($&&$.p!==Z&&$.op!==Z&&$.fp!==Z)$=$._next;return $},u4=function(J,Z){var $=J._targets,K,W,q;for(K in Z){W=$.length;while(W--)if(q=J._ptLookup[W][K],q&&(q=q.d)){if(q._pt)q=_4(q,K);q&&q.modifier&&q.modifier(Z[K],J,$[W],K)}}},VK=function(J,Z){return{name:J,headless:1,rawVars:1,init:function(K,W,q){q._onInit=function(H){var Y,B;if(Z9(W))Y={},S9(W,function(z){return Y[z]=1}),W=Y;if(Z){Y={};for(B in W)Y[B]=Z(W[B]);W=Y}u4(H,W)}}}},C9=x$.registerPlugin({name:"attr",init:function(J,Z,$,K,W){var q,H,Y;this.tween=$;for(q in Z)Y=J.getAttribute(q)||"",H=this.add(J,"setAttribute",(Y||0)+"",Z[q],K,W,0,0,q),H.op=q,H.b=Y,this._props.push(q)},render:function(J,Z){var $=Z._pt;while($)U9?$.set($.t,$.p,$.b,$):$.r(J,$.d),$=$._next}},{name:"endArray",headless:1,init:function(J,Z){var $=Z.length;while($--)this.add(J,$,J[$]||0,Z[$],0,0,0,0,0,1)}},VK("roundProps",SK),VK("modifiers"),VK("snap",W5))||x$;n1.version=R9.version=C9.version="3.15.0";lq=1;hK()&&C7();var{Power0:v4,Power1:g4,Power2:d4,Power3:m4,Power4:c4,Linear:p4,Quad:l4,Cubic:o4,Quart:s4,Quint:i4,Strong:n4,Elastic:r4,Back:a4,SteppedEase:t4,Bounce:e4,Sine:JY,Expo:ZY,Circ:$Y}=G1;/*! * CSSPlugin 3.15.0 * https://gsap.com * * Copyright 2008-2026, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var R5,NJ,E7,Q6,iJ,QY,D5,K6,KY=function(){return typeof window<"u"},e8={},sJ=180/Math.PI,k7=Math.PI/180,M7=Math.atan2,C5=1e8,W6=/([A-Z])/g,WY=/(left|right|width|margin|padding|x)/i,qY=/[\s,\(]\S/,u8={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},eK=function(J,Z){return Z.set(Z.t,Z.p,Math.round((Z.s+Z.c*J)*1e4)/1e4+Z.u,Z)},HY=function(J,Z){return Z.set(Z.t,Z.p,J===1?Z.e:Math.round((Z.s+Z.c*J)*1e4)/1e4+Z.u,Z)},GY=function(J,Z){return Z.set(Z.t,Z.p,J?Math.round((Z.s+Z.c*J)*1e4)/1e4+Z.u:Z.b,Z)},UY=function(J,Z){return Z.set(Z.t,Z.p,J===1?Z.e:J?Math.round((Z.s+Z.c*J)*1e4)/1e4+Z.u:Z.b,Z)},XY=function(J,Z){var $=Z.s+Z.c*J;Z.set(Z.t,Z.p,~~($+($<0?-0.5:0.5))+Z.u,Z)},T5=function(J,Z){return Z.set(Z.t,Z.p,J?Z.e:Z.b,Z)},S5=function(J,Z){return Z.set(Z.t,Z.p,J!==1?Z.b:Z.e,Z)},YY=function(J,Z,$){return J.style[Z]=$},BY=function(J,Z,$){return J.style.setProperty(Z,$)},jY=function(J,Z,$){return J._gsap[Z]=$},zY=function(J,Z,$){return J._gsap.scaleX=J._gsap.scaleY=$},LY=function(J,Z,$,K,W){var q=J._gsap;q.scaleX=q.scaleY=$,q.renderTransform(W,q)},OY=function(J,Z,$,K,W){var q=J._gsap;q[Z]=$,q.renderTransform(W,q)},u1="transform",l9=u1+"Origin",NY=function Q(J,Z){var $=this,K=this.target,W=K.style,q=K._gsap;if(J in e8&&W){if(this.tfm=this.tfm||{},J!=="transform")J=u8[J]||J,~J.indexOf(",")?J.split(",").forEach(function(H){return $.tfm[H]=t8(K,H)}):this.tfm[J]=q.x?q[J]:t8(K,J),J===l9&&(this.tfm.zOrigin=q.zOrigin);else return u8.transform.split(",").forEach(function(H){return Q.call($,H,Z)});if(this.props.indexOf(u1)>=0)return;if(q.svg)this.svgo=K.getAttribute("data-svg-origin"),this.props.push(l9,Z,"");J=u1}(W||Z)&&this.props.push(J,Z,W[J])},w5=function(J){if(J.translate)J.removeProperty("translate"),J.removeProperty("scale"),J.removeProperty("rotate")},FY=function(){var J=this.props,Z=this.target,$=Z.style,K=Z._gsap,W,q;for(W=0;W=0?V5[q]:"")+J},Z6=function(){if(KY()&&window.document)R5=window,NJ=R5.document,E7=NJ.documentElement,iJ=J6("div")||{style:{}},QY=J6("div"),u1=A7(u1),l9=u1+"Origin",iJ.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",x5=!!A7("perspective"),K6=C9.core.reverting,Q6=1},M5=function(J){var Z=J.ownerSVGElement,$=J6("svg",Z&&Z.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),K=J.cloneNode(!0),W;K.style.display="block",$.appendChild(K),E7.appendChild($);try{W=K.getBBox()}catch(q){}return $.removeChild(K),E7.removeChild($),W},E5=function(J,Z){var $=Z.length;while($--)if(J.hasAttribute(Z[$]))return J.getAttribute(Z[$])},h5=function(J){var Z,$;try{Z=J.getBBox()}catch(K){Z=M5(J),$=1}return Z&&(Z.width||Z.height)||$||(Z=M5(J)),Z&&!Z.width&&!Z.x&&!Z.y?{x:+E5(J,["x","cx","x1"])||0,y:+E5(J,["y","cy","y1"])||0,width:0,height:0}:Z},f5=function(J){return!!(J.getCTM&&(!J.parentNode||J.ownerSVGElement)&&h5(J))},RJ=function(J,Z){if(Z){var $=J.style,K;if(Z in e8&&Z!==l9)Z=u1;if($.removeProperty){if(K=Z.substr(0,2),K==="ms"||Z.substr(0,6)==="webkit")Z="-"+Z;$.removeProperty(K==="--"?Z:Z.replace(W6,"-$1").toLowerCase())}else $.removeAttribute(Z)}},FJ=function(J,Z,$,K,W,q){var H=new w9(J._pt,Z,$,0,1,q?S5:T5);return J._pt=H,H.b=K,H.e=W,J._props.push($),H},k5={deg:1,rad:1,turn:1},RY={grid:1,flex:1},DJ=function Q(J,Z,$,K){var W=parseFloat($)||0,q=($+"").trim().substr((W+"").length)||"px",H=iJ.style,Y=WY.test(Z),B=J.tagName.toLowerCase()==="svg",z=(B?"client":"offset")+(Y?"Width":"Height"),L=100,j=K==="px",F=K==="%",R,D,M,A;if(K===q||!W||k5[K]||k5[q])return W;if(q!=="px"&&!j&&(W=Q(J,Z,$,"px")),A=J.getCTM&&f5(J),(F||q==="%")&&(e8[Z]||~Z.indexOf("adius")))return R=A?J.getBBox()[Y?"width":"height"]:J[z],c1(F?W/R*L:W/100*R);if(H[Y?"width":"height"]=L+(j?q:K),D=K!=="rem"&&~Z.indexOf("adius")||K==="em"&&J.appendChild&&!B?J:J.parentNode,A)D=(J.ownerSVGElement||{}).parentNode;if(!D||D===NJ||!D.appendChild)D=NJ.body;if(M=D._gsap,M&&F&&M.width&&Y&&M.time===d9.time&&!M.uncache)return c1(W/M.width*L);else{if(F&&(Z==="height"||Z==="width")){var I=J.style[Z];J.style[Z]=L+K,R=J[z],I?J.style[Z]=I:RJ(J,Z)}else(F||q==="%")&&!RY[J8(D,"display")]&&(H.position=J8(J,"position")),D===J&&(H.position="static"),D.appendChild(iJ),R=iJ[z],D.removeChild(iJ),H.position="absolute";if(Y&&F)M=zJ(D),M.time=d9.time,M.width=D[z]}return c1(j?R*W/L:R&&W?L/R*W:0)},t8=function(J,Z,$,K){var W;if(Q6||Z6(),Z in u8&&Z!=="transform"){if(Z=u8[Z],~Z.indexOf(","))Z=Z.split(",")[0]}if(e8[Z]&&Z!=="transform")W=OZ(J,K),W=Z!=="transformOrigin"?W[Z]:W.svg?W.origin:g$(J8(J,l9))+" "+W.zOrigin+"px";else if(W=J.style[Z],!W||W==="auto"||K||~(W+"").indexOf("calc("))W=v$[Z]&&v$[Z](J,Z,$)||J8(J,Z)||dK(J,Z)||(Z==="opacity"?1:0);return $&&!~(W+"").trim().indexOf(" ")?DJ(J,Z,W,$)+$:W},DY=function(J,Z,$,K){if(!$||$==="none"){var W=A7(Z,J,1),q=W&&J8(J,W,1);if(q&&q!==$)Z=W,$=q;else if(Z==="borderColor")$=J8(J,"borderTopColor")}var H=new w9(this._pt,J.style,Z,0,1,nK),Y=0,B=0,z,L,j,F,R,D,M,A,I,S,h,y;if(H.b=$,H.e=K,$+="",K+="",K.substring(0,6)==="var(--")K=J8(J,K.substring(4,K.indexOf(")")));if(K==="auto")D=J.style[Z],J.style[Z]=K,K=J8(J,Z)||K,D?J.style[Z]=D:RJ(J,Z);if(z=[$,K],cK(z),$=z[0],K=z[1],j=$.match(mJ)||[],y=K.match(mJ)||[],y.length){while(L=mJ.exec(K)){if(M=L[0],I=K.substring(Y,L.index),R)R=(R+1)%5;else if(I.substr(-5)==="rgba("||I.substr(-5)==="hsla(")R=1;if(M!==(D=j[B++]||"")){if(F=parseFloat(D)||0,h=D.substr((F+"").length),M.charAt(1)==="="&&(M=cJ(F,M)+h),A=parseFloat(M),S=M.substr((A+"").length),Y=mJ.lastIndex-S.length,!S){if(S=S||c9.units[Z]||h,Y===K.length)K+=S,H.e+=S}if(h!==S)F=DJ(J,Z,D,S)||0;H._pt={_next:H._pt,p:I||B===1?I:",",s:F,c:A-F,m:R&&R<4||Z==="zIndex"?Math.round:0}}}H.c=Y-1){if(H=W[B],e8[H])Y=1,H=H==="transformOrigin"?l9:u1;RJ($,H)}}if(Y){if(RJ($,u1),q)q.svg&&$.removeAttribute("transform"),K.scale=K.rotate=K.translate="none",OZ($,1),q.uncache=1,w5(K)}}},v$={clearProps:function(J,Z,$,K,W){if(W.data!=="isFromStart"){var q=J._pt=new w9(J._pt,Z,$,0,0,VY);return q.u=K,q.pr=-10,q.tween=W,J._props.push($),1}}},LZ=[1,0,0,1,0,0],y5={},_5=function(J){return J==="matrix(1, 0, 0, 1, 0, 0)"||J==="none"||!J},I5=function(J){var Z=J8(J,u1);return _5(Z)?LZ:Z.substr(7).match(fK).map(c1)},q6=function(J,Z){var $=J._gsap||zJ(J),K=J.style,W=I5(J),q,H,Y,B;if($.svg&&J.getAttribute("transform"))return Y=J.transform.baseVal.consolidate().matrix,W=[Y.a,Y.b,Y.c,Y.d,Y.e,Y.f],W.join(",")==="1,0,0,1,0,0"?LZ:W;else if(W===LZ&&!J.offsetParent&&J!==E7&&!$.svg){if(Y=K.display,K.display="block",q=J.parentNode,!q||!J.offsetParent&&!J.getBoundingClientRect().width)B=1,H=J.nextElementSibling,E7.appendChild(J);if(W=I5(J),Y?K.display=Y:RJ(J,"display"),B)H?q.insertBefore(J,H):q?q.appendChild(J):E7.removeChild(J)}return Z&&W.length>6?[W[0],W[1],W[4],W[5],W[12],W[13]]:W},$6=function(J,Z,$,K,W,q){var H=J._gsap,Y=W||q6(J,!0),B=H.xOrigin||0,z=H.yOrigin||0,L=H.xOffset||0,j=H.yOffset||0,F=Y[0],R=Y[1],D=Y[2],M=Y[3],A=Y[4],I=Y[5],S=Z.split(" "),h=parseFloat(S[0])||0,y=parseFloat(S[1])||0,v,w,b,f;if(!$)v=h5(J),h=v.x+(~S[0].indexOf("%")?h/100*v.width:h),y=v.y+(~(S[1]||S[0]).indexOf("%")?y/100*v.height:y);else if(Y!==LZ&&(w=F*M-R*D))b=h*(M/w)+y*(-D/w)+(D*I-M*A)/w,f=h*(-R/w)+y*(F/w)-(F*I-R*A)/w,h=b,y=f;if(K||K!==!1&&H.smooth)A=h-B,I=y-z,H.xOffset=L+(A*F+I*D)-A,H.yOffset=j+(A*R+I*M)-I;else H.xOffset=H.yOffset=0;if(H.xOrigin=h,H.yOrigin=y,H.smooth=!!K,H.origin=Z,H.originIsAbsolute=!!$,J.style[l9]="0px 0px",q)FJ(q,H,"xOrigin",B,h),FJ(q,H,"yOrigin",z,y),FJ(q,H,"xOffset",L,H.xOffset),FJ(q,H,"yOffset",j,H.yOffset);J.setAttribute("data-svg-origin",h+" "+y)},OZ=function(J,Z){var $=J._gsap||new pK(J);if("x"in $&&!Z&&!$.uncache)return $;var K=J.style,W=$.scaleX<0,q="px",H="deg",Y=getComputedStyle(J),B=J8(J,l9)||"0",z,L,j,F,R,D,M,A,I,S,h,y,v,w,b,f,T,n,l,Q0,c,p,i,Z0,a,J0,x,q0,e,U0,R0,D0;if(z=L=j=D=M=A=I=S=h=0,F=R=1,$.svg=!!(J.getCTM&&f5(J)),Y.translate){if(Y.translate!=="none"||Y.scale!=="none"||Y.rotate!=="none")K[u1]=(Y.translate!=="none"?"translate3d("+(Y.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(Y.rotate!=="none"?"rotate("+Y.rotate+") ":"")+(Y.scale!=="none"?"scale("+Y.scale.split(" ").join(",")+") ":"")+(Y[u1]!=="none"?Y[u1]:"");K.scale=K.rotate=K.translate="none"}if(w=q6(J,$.svg),$.svg){if($.uncache)a=J.getBBox(),B=$.xOrigin-a.x+"px "+($.yOrigin-a.y)+"px",Z0="";else Z0=!Z&&J.getAttribute("data-svg-origin");$6(J,Z0||B,!!Z0||$.originIsAbsolute,$.smooth!==!1,w)}if(y=$.xOrigin||0,v=$.yOrigin||0,w!==LZ){if(n=w[0],l=w[1],Q0=w[2],c=w[3],z=p=w[4],L=i=w[5],w.length===6){if(F=Math.sqrt(n*n+l*l),R=Math.sqrt(c*c+Q0*Q0),D=n||l?M7(l,n)*sJ:0,I=Q0||c?M7(Q0,c)*sJ+D:0,I&&(R*=Math.abs(Math.cos(I*k7))),$.svg)z-=y-(y*n+v*Q0),L-=v-(y*l+v*c)}else{if(D0=w[6],U0=w[7],x=w[8],q0=w[9],e=w[10],R0=w[11],z=w[12],L=w[13],j=w[14],b=M7(D0,e),M=b*sJ,b)f=Math.cos(-b),T=Math.sin(-b),Z0=p*f+x*T,a=i*f+q0*T,J0=D0*f+e*T,x=p*-T+x*f,q0=i*-T+q0*f,e=D0*-T+e*f,R0=U0*-T+R0*f,p=Z0,i=a,D0=J0;if(b=M7(-Q0,e),A=b*sJ,b)f=Math.cos(-b),T=Math.sin(-b),Z0=n*f-x*T,a=l*f-q0*T,J0=Q0*f-e*T,R0=c*T+R0*f,n=Z0,l=a,Q0=J0;if(b=M7(l,n),D=b*sJ,b)f=Math.cos(b),T=Math.sin(b),Z0=n*f+l*T,a=p*f+i*T,l=l*f-n*T,i=i*f-p*T,n=Z0,p=a;if(M&&Math.abs(M)+Math.abs(D)>359.9)M=D=0,A=180-A;F=c1(Math.sqrt(n*n+l*l+Q0*Q0)),R=c1(Math.sqrt(i*i+D0*D0)),b=M7(p,i),I=Math.abs(b)>0.0002?b*sJ:0,h=R0?1/(R0<0?-R0:R0):0}if($.svg)Z0=J.getAttribute("transform"),$.forceCSS=J.setAttribute("transform","")||!_5(J8(J,u1)),Z0&&J.setAttribute("transform",Z0)}if(Math.abs(I)>90&&Math.abs(I)<270)if(W)F*=-1,I+=D<=0?180:-180,D+=D<=0?180:-180;else R*=-1,I+=I<=0?180:-180;if(Z=Z||$.uncache,$.x=z-(($.xPercent=z&&(!Z&&$.xPercent||(Math.round(J.offsetWidth/2)===Math.round(-z)?-50:0)))?J.offsetWidth*$.xPercent/100:0)+q,$.y=L-(($.yPercent=L&&(!Z&&$.yPercent||(Math.round(J.offsetHeight/2)===Math.round(-L)?-50:0)))?J.offsetHeight*$.yPercent/100:0)+q,$.z=j+q,$.scaleX=c1(F),$.scaleY=c1(R),$.rotation=c1(D)+H,$.rotationX=c1(M)+H,$.rotationY=c1(A)+H,$.skewX=I+H,$.skewY=S+H,$.transformPerspective=h+q,$.zOrigin=parseFloat(B.split(" ")[2])||!Z&&$.zOrigin||0)K[l9]=g$(B);return $.xOffset=$.yOffset=0,$.force3D=c9.force3D,$.renderTransform=$.svg?EY:x5?u5:MY,$.uncache=0,$},g$=function(J){return(J=J.split(" "))[0]+" "+J[1]},tK=function(J,Z,$){var K=X9(Z);return c1(parseFloat(Z)+parseFloat(DJ(J,"x",$+"px",K)))+K},MY=function(J,Z){Z.z="0px",Z.rotationY=Z.rotationX="0deg",Z.force3D=0,u5(J,Z)},lJ="0deg",zZ="0px",oJ=") ",u5=function(J,Z){var $=Z||this,K=$.xPercent,W=$.yPercent,q=$.x,H=$.y,Y=$.z,B=$.rotation,z=$.rotationY,L=$.rotationX,j=$.skewX,F=$.skewY,R=$.scaleX,D=$.scaleY,M=$.transformPerspective,A=$.force3D,I=$.target,S=$.zOrigin,h="",y=A==="auto"&&J&&J!==1||A===!0;if(S&&(L!==lJ||z!==lJ)){var v=parseFloat(z)*k7,w=Math.sin(v),b=Math.cos(v),f;v=parseFloat(L)*k7,f=Math.cos(v),q=tK(I,q,w*f*-S),H=tK(I,H,-Math.sin(v)*-S),Y=tK(I,Y,b*f*-S+S)}if(M!==zZ)h+="perspective("+M+oJ;if(K||W)h+="translate("+K+"%, "+W+"%) ";if(y||q!==zZ||H!==zZ||Y!==zZ)h+=Y!==zZ||y?"translate3d("+q+", "+H+", "+Y+") ":"translate("+q+", "+H+oJ;if(B!==lJ)h+="rotate("+B+oJ;if(z!==lJ)h+="rotateY("+z+oJ;if(L!==lJ)h+="rotateX("+L+oJ;if(j!==lJ||F!==lJ)h+="skew("+j+", "+F+oJ;if(R!==1||D!==1)h+="scale("+R+", "+D+oJ;I.style[u1]=h||"translate(0, 0)"},EY=function(J,Z){var $=Z||this,K=$.xPercent,W=$.yPercent,q=$.x,H=$.y,Y=$.rotation,B=$.skewX,z=$.skewY,L=$.scaleX,j=$.scaleY,F=$.target,R=$.xOrigin,D=$.yOrigin,M=$.xOffset,A=$.yOffset,I=$.forceCSS,S=parseFloat(q),h=parseFloat(H),y,v,w,b,f;if(Y=parseFloat(Y),B=parseFloat(B),z=parseFloat(z),z)z=parseFloat(z),B+=z,Y+=z;if(Y||B){if(Y*=k7,B*=k7,y=Math.cos(Y)*L,v=Math.sin(Y)*L,w=Math.sin(Y-B)*-j,b=Math.cos(Y-B)*j,B){if(z*=k7,f=Math.tan(B-z),f=Math.sqrt(1+f*f),w*=f,b*=f,z)f=Math.tan(z),f=Math.sqrt(1+f*f),y*=f,v*=f}y=c1(y),v=c1(v),w=c1(w),b=c1(b)}else y=L,b=j,v=w=0;if(S&&!~(q+"").indexOf("px")||h&&!~(H+"").indexOf("px"))S=DJ(F,"x",q,"px"),h=DJ(F,"y",H,"px");if(R||D||M||A)S=c1(S+R-(R*y+D*w)+M),h=c1(h+D-(R*v+D*b)+A);if(K||W)f=F.getBBox(),S=c1(S+K/100*f.width),h=c1(h+W/100*f.height);f="matrix("+y+","+v+","+w+","+b+","+S+","+h+")",F.setAttribute("transform",f),I&&(F.style[u1]=f)},kY=function(J,Z,$,K,W){var q=360,H=Z9(W),Y=parseFloat(W)*(H&&~W.indexOf("rad")?sJ:1),B=Y-K,z=K+B+"deg",L,j;if(H){if(L=W.split("_")[1],L==="short"){if(B%=q,B!==B%(q/2))B+=B<0?q:-q}if(L==="cw"&&B<0)B=(B+q*C5)%q-~~(B/q)*q;else if(L==="ccw"&&B>0)B=(B-q*C5)%q-~~(B/q)*q}return J._pt=j=new w9(J._pt,Z,$,K,B,HY),j.e=z,j.u="deg",J._props.push($),j},P5=function(J,Z){for(var $ in Z)J[$]=Z[$];return J},AY=function(J,Z,$){var K=P5({},$._gsap),W="perspective,force3D,transformOrigin,svgOrigin",q=$.style,H,Y,B,z,L,j,F,R;if(K.svg)B=$.getAttribute("transform"),$.setAttribute("transform",""),q[u1]=Z,H=OZ($,1),RJ($,u1),$.setAttribute("transform",B);else B=getComputedStyle($)[u1],q[u1]=Z,H=OZ($,1),q[u1]=B;for(Y in e8)if(B=K[Y],z=H[Y],B!==z&&W.indexOf(Y)<0)F=X9(B),R=X9(z),L=F!==R?DJ($,Y,B,R):parseFloat(B),j=parseFloat(z),J._pt=new w9(J._pt,H,Y,L,j-L,eK),J._pt.u=R||0,J._props.push(Y);P5(H,K)};S9("padding,margin,Width,Radius",function(Q,J){var Z="Top",$="Right",K="Bottom",W="Left",q=(J<3?[Z,$,K,W]:[Z+W,Z+$,K+$,K+W]).map(function(H){return J<2?Q+H:"border"+H+Q});v$[J>1?"border"+Q:Q]=function(H,Y,B,z,L){var j,F;if(arguments.length<4)return j=q.map(function(R){return t8(H,R,B)}),F=j.join(" "),F.split(j[0]).length===5?j[0]:F;j=(z+"").split(" "),F={},q.forEach(function(R,D){return F[R]=j[D]=j[D]||j[(D-1)/2|0]}),H.init(Y,F,L)}});var H6={name:"css",register:Z6,targetTest:function(J){return J.style&&J.nodeType},init:function(J,Z,$,K,W){var q=this._props,H=J.style,Y=$.vars.startAt,B,z,L,j,F,R,D,M,A,I,S,h,y,v,w,b,f;Q6||Z6(),this.styles=this.styles||b5(J),b=this.styles.props,this.tween=$;for(D in Z){if(D==="autoRound")continue;if(z=Z[D],g9[D]&&oK(D,Z,$,K,J,W))continue;if(F=typeof z,R=v$[D],F==="function")z=z.call($,K,J,W),F=typeof z;if(F==="string"&&~z.indexOf("random("))z=V7(z);if(R)R(this,J,D,z,$)&&(w=1);else if(D.substr(0,2)==="--"){if(B=(getComputedStyle(J).getPropertyValue(D)+"").trim(),z+="",r8.lastIndex=0,!r8.test(B))M=X9(B),A=X9(z),A?M!==A&&(B=DJ(J,D,B,A)+A):M&&(z+=M);this.add(H,"setProperty",B,z,K,W,0,0,D),q.push(D),b.push(D,0,H[D])}else if(F!=="undefined"){if(Y&&D in Y)B=typeof Y[D]==="function"?Y[D].call($,K,J,W):Y[D],Z9(B)&&~B.indexOf("random(")&&(B=V7(B)),X9(B+"")||B==="auto"||(B+=c9.units[D]||X9(t8(J,D))||""),(B+"").charAt(1)==="="&&(B=t8(J,D));else B=t8(J,D);if(j=parseFloat(B),I=F==="string"&&z.charAt(1)==="="&&z.substr(0,2),I&&(z=z.substr(2)),L=parseFloat(z),D in u8){if(D==="autoAlpha"){if(j===1&&t8(J,"visibility")==="hidden"&&L)j=0;b.push("visibility",0,H.visibility),FJ(this,H,"visibility",j?"inherit":"hidden",L?"inherit":"hidden",!L)}if(D!=="scale"&&D!=="transform")D=u8[D],~D.indexOf(",")&&(D=D.split(",")[0])}if(S=D in e8,S){if(this.styles.save(D),f=z,F==="string"&&z.substring(0,6)==="var(--"){if(z=J8(J,z.substring(4,z.indexOf(")"))),z.substring(0,5)==="calc("){var T=J.style.perspective;J.style.perspective=z,z=J8(J,"perspective"),T?J.style.perspective=T:RJ(J,"perspective")}L=parseFloat(z)}if(!h)y=J._gsap,y.renderTransform&&!Z.parseTransform||OZ(J,Z.parseTransform),v=Z.smoothOrigin!==!1&&y.smooth,h=this._pt=new w9(this._pt,H,u1,0,1,y.renderTransform,y,0,-1),h.dep=1;if(D==="scale")this._pt=new w9(this._pt,y,"scaleY",y.scaleY,(I?cJ(y.scaleY,I+L):L)-y.scaleY||0,eK),this._pt.u=0,q.push("scaleY",D),D+="X";else if(D==="transformOrigin"){if(b.push(l9,0,H[l9]),z=CY(z),y.svg)$6(J,z,0,v,0,this);else A=parseFloat(z.split(" ")[2])||0,A!==y.zOrigin&&FJ(this,y,"zOrigin",y.zOrigin,A),FJ(this,H,D,g$(B),g$(z));continue}else if(D==="svgOrigin"){$6(J,z,1,v,0,this);continue}else if(D in y5){kY(this,y,D,j,I?cJ(j,I+z):z);continue}else if(D==="smoothOrigin"){FJ(this,y,"smooth",y.smooth,z);continue}else if(D==="force3D"){y[D]=z;continue}else if(D==="transform"){AY(this,z,J);continue}}else if(!(D in H))D=A7(D)||D;if(S||(L||L===0)&&(j||j===0)&&!qY.test(z)&&D in H){if(M=(B+"").substr((j+"").length),L||(L=0),A=X9(z)||(D in c9.units?c9.units[D]:M),M!==A&&(j=DJ(J,D,B,A)),this._pt=new w9(this._pt,S?y:H,D,j,(I?cJ(j,I+L):L)-j,!S&&(A==="px"||D==="zIndex")&&Z.autoRound!==!1?XY:eK),this._pt.u=A||0,S&&f!==z)this._pt.b=B,this._pt.e=f,this._pt.r=UY;else if(M!==A&&A!=="%")this._pt.b=B,this._pt.r=GY}else if(!(D in H)){if(D in J)this.add(J,D,B||J[D],I?I+z:z,K,W);else if(D!=="parseTransform"){f$(D,z);continue}}else DY.call(this,J,D,B,I?I+z:z);S||(D in H?b.push(D,0,H[D]):typeof J[D]==="function"?b.push(D,2,J[D]()):b.push(D,1,B||J[D])),q.push(D)}}w&&aK(this)},render:function(J,Z){if(Z.tween._time||!K6()){var $=Z._pt;while($)$.r(J,$.d),$=$._next}else Z.styles.revert()},get:t8,aliases:u8,getSetter:function(J,Z,$){var K=u8[Z];return K&&K.indexOf(",")<0&&(Z=K),Z in e8&&Z!==l9&&(J._gsap.x||t8(J,"x"))?$&&D5===$?Z==="scale"?zY:jY:(D5=$||{})&&(Z==="scale"?LY:OY):J.style&&!h$(J.style[Z])?YY:~Z.indexOf("-")?BY:u$(J,Z)},core:{_removeProperty:RJ,_getMatrix:q6}};C9.utils.checkPrefix=A7;C9.core.getStyleSaver=b5;(function(Q,J,Z,$){var K=S9(Q+","+J+","+Z,function(W){e8[W]=1});S9(J,function(W){c9.units[W]="deg",y5[W]=1}),u8[K[13]]=Q+","+J,S9($,function(W){var q=W.split(":");u8[q[1]]=K[q[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");S9("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(Q){c9.units[Q]="px"});C9.registerPlugin(H6);var D8=C9.registerPlugin(H6)||C9,ez=D8.core.Tween;function v5(Q,J){for(var Z=0;ZY)W=K,K=R,H=q,q=M;else if($)K+=R;else K=W+(R-W)/(M-H)*(q-H)},L=function(){W=K=$?0:K,H=q=0},j=function(R){var D=H,M=W,A=FZ();return(R||R===0)&&R!==K&&z(R),q===H||A-H>B?0:(K+($?M:-M))/(($?A:q)-D)*1000};return{update:z,reset:L,getVelocity:j}},NZ=function(J,Z){return Z&&!J._gsapAllow&&J.cancelable!==!1&&J.preventDefault(),J.changedTouches?J.changedTouches[0]:J},g5=function(J){var Z=Math.max.apply(Math,J),$=Math.min.apply(Math,J);return Math.abs(Z)>=Math.abs($)?Z:$},o5=function(){T7=Y9.core.globals().ScrollTrigger,T7&&T7.core&&TY()},s5=function(J){if(Y9=J||p5(),!c$&&Y9&&typeof document<"u"&&document.body)Z8=window,CJ=document,VJ=CJ.documentElement,P7=CJ.body,m5=[Z8,CJ,VJ,P7],PY=Y9.utils.clamp,c5=Y9.core.context||function(){},nJ="onpointerenter"in P7?"pointer":"mouse",d5=p1.isTouch=Z8.matchMedia&&Z8.matchMedia("(hover: none), (pointer: coarse)").matches?1:("ontouchstart"in Z8)||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,C8=p1.eventTypes=("ontouchstart"in VJ?"touchstart,touchmove,touchcancel,touchend":!("onpointerdown"in VJ)?"mousedown,mousemove,mouseup,mouseup":"pointerdown,pointermove,pointercancel,pointerup").split(","),setTimeout(function(){return l5=0},500),c$=1;return T7||o5(),c$};V9.op=t1;n0.cache=0;var p1=function(){function Q(Z){this.init(Z)}var J=Q.prototype;return J.init=function($){c$||s5(Y9)||console.warn("Please gsap.registerPlugin(Observer)"),T7||o5();var{tolerance:K,dragMinimum:W,type:q,target:H,lineHeight:Y,debounce:B,preventDefault:z,onStop:L,onStopDelay:j,ignore:F,wheelSpeed:R,event:D,onDragStart:M,onDragEnd:A,onDrag:I,onPress:S,onRelease:h,onRight:y,onLeft:v,onUp:w,onDown:b,onChangeX:f,onChangeY:T,onChange:n,onToggleX:l,onToggleY:Q0,onHover:c,onHoverEnd:p,onMove:i,ignoreCheck:Z0,isNormalizer:a,onGestureStart:J0,onGestureEnd:x,onWheel:q0,onEnable:e,onDisable:U0,onClick:R0,scrollSpeed:D0,capture:L0,allowClicks:T0,lockAxis:P0,onLockAxis:_0}=$;this.target=H=h9(H)||VJ,this.vars=$,F&&(F=Y9.utils.toArray(F)),K=K||0.000000001,W=W||0,R=R||1,D0=D0||1,q=q||"wheel,touch,pointer",B=B!==!1,Y||(Y=parseFloat(Z8.getComputedStyle(P7).lineHeight)||22);var x0,k0,X0,G0,C0,m0,K1,o=this,t0=0,s0=0,N1=$.passive||!z&&$.passive!==!1,i0=ZJ(H,V9),B0=ZJ(H,t1),f0=i0(),V=B0(),X=~q.indexOf("touch")&&!~q.indexOf("pointer")&&C8[0]==="pointerdown",N=RZ(H),E=H.ownerDocument||CJ,_=[0,0,0],d=[0,0,0],t=0,F0=function(){return t=FZ()},j0=function(h0,J1){return(o.event=h0)&&F&&SY(h0.target,F)||J1&&X&&h0.pointerType!=="touch"||Z0&&Z0(h0,J1)},z0=function(){o._vx.reset(),o._vy.reset(),k0.pause(),L&&L(o)},I0=function(){var h0=o.deltaX=g5(_),J1=o.deltaY=g5(d),O0=Math.abs(h0)>=K,y0=Math.abs(J1)>=K;if(n&&(O0||y0)&&n(o,h0,J1,_,d),O0)y&&o.deltaX>0&&y(o),v&&o.deltaX<0&&v(o),f&&f(o),l&&o.deltaX<0!==t0<0&&l(o),t0=o.deltaX,_[0]=_[1]=_[2]=0;if(y0)b&&o.deltaY>0&&b(o),w&&o.deltaY<0&&w(o),T&&T(o),Q0&&o.deltaY<0!==s0<0&&Q0(o),s0=o.deltaY,d[0]=d[1]=d[2]=0;if(G0||X0){if(i&&i(o),X0)M&&X0===1&&M(o),I&&I(o),X0=0;G0=!1}if(m0&&!(m0=!1)&&_0&&_0(o),C0)q0(o),C0=!1;x0=0},c0=function(h0,J1,O0){_[O0]+=h0,d[O0]+=J1,o._vx.update(h0),o._vy.update(J1),B?x0||(x0=requestAnimationFrame(I0)):I0()},F1=function(h0,J1){if(P0&&!K1)o.axis=K1=Math.abs(h0)>Math.abs(J1)?"x":"y",m0=!0;if(K1!=="y")_[2]+=h0,o._vx.update(h0,!0);if(K1!=="x")d[2]+=J1,o._vy.update(J1,!0);B?x0||(x0=requestAnimationFrame(I0)):I0()},H1=function(h0){if(j0(h0,1))return;h0=NZ(h0,z);var{clientX:J1,clientY:O0}=h0,y0=J1-o.x,w0=O0-o.y,K0=o.isDragging;if(o.x=J1,o.y=O0,K0||(y0||w0)&&(Math.abs(o.startX-J1)>=W||Math.abs(o.startY-O0)>=W))X0||(X0=K0?2:1),K0||(o.isDragging=!0),F1(y0,w0)},L1=o.onPress=function(v0){if(j0(v0,1)||v0&&v0.button)return;o.axis=K1=null,k0.pause(),o.isPressed=!0,v0=NZ(v0),t0=s0=0,o.startX=o.x=v0.clientX,o.startY=o.y=v0.clientY,o._vx.reset(),o._vy.reset(),x9(a?H:E,C8[1],H1,N1,!0),o.deltaX=o.deltaY=0,S&&S(o)},S0=o.onRelease=function(v0){if(j0(v0,1))return;b9(a?H:E,C8[1],H1,!0);var h0=!isNaN(o.y-o.startY),J1=o.isDragging,O0=J1&&(Math.abs(o.x-o.startX)>3||Math.abs(o.y-o.startY)>3),y0=NZ(v0);if(!O0&&h0){if(o._vx.reset(),o._vy.reset(),z&&T0)Y9.delayedCall(0.08,function(){if(FZ()-t>300&&!v0.defaultPrevented){if(v0.target.click)v0.target.click();else if(E.createEvent){var w0=E.createEvent("MouseEvents");w0.initMouseEvent("click",!0,!0,Z8,1,y0.screenX,y0.screenY,y0.clientX,y0.clientY,!1,!1,!1,!1,0,null),v0.target.dispatchEvent(w0)}}})}o.isDragging=o.isGesturing=o.isPressed=!1,L&&J1&&!a&&k0.restart(!0),X0&&I0(),A&&J1&&A(o),h&&h(o,O0)},s1=function(h0){return h0.touches&&h0.touches.length>1&&(o.isGesturing=!0)&&J0(h0,o.isDragging)},k1=function(){return(o.isGesturing=!1)||x(o)},R1=function(h0){if(j0(h0))return;var J1=i0(),O0=B0();c0((J1-f0)*D0,(O0-V)*D0,1),f0=J1,V=O0,L&&k0.restart(!0)},B1=function(h0){if(j0(h0))return;h0=NZ(h0,z),q0&&(C0=!0);var J1=(h0.deltaMode===1?Y:h0.deltaMode===2?Z8.innerHeight:1)*R;c0(h0.deltaX*J1,h0.deltaY*J1,0),L&&!a&&k0.restart(!0)},g1=function(h0){if(j0(h0))return;var{clientX:J1,clientY:O0}=h0,y0=J1-o.x,w0=O0-o.y;o.x=J1,o.y=O0,G0=!0,L&&k0.restart(!0),(y0||w0)&&F1(y0,w0)},N9=function(h0){o.event=h0,c(o)},b0=function(h0){o.event=h0,p(o)},e0=function(h0){return j0(h0)||NZ(h0,z)&&R0(o)};k0=o._dc=Y9.delayedCall(j||0.25,z0).pause(),o.deltaX=o.deltaY=0,o._vx=l$(0,50,!0),o._vy=l$(0,50,!0),o.scrollX=i0,o.scrollY=B0,o.isDragging=o.isGesturing=o.isPressed=!1,c5(this),o.enable=function(v0){if(!o.isEnabled){if(x9(N?E:H,"scroll",U6),q.indexOf("scroll")>=0&&x9(N?E:H,"scroll",R1,N1,L0),q.indexOf("wheel")>=0&&x9(H,"wheel",B1,N1,L0),q.indexOf("touch")>=0&&d5||q.indexOf("pointer")>=0)x9(H,C8[0],L1,N1,L0),x9(E,C8[2],S0),x9(E,C8[3],S0),T0&&x9(H,"click",F0,!0,!0),R0&&x9(H,"click",e0),J0&&x9(E,"gesturestart",s1),x&&x9(E,"gestureend",k1),c&&x9(H,nJ+"enter",N9),p&&x9(H,nJ+"leave",b0),i&&x9(H,nJ+"move",g1);o.isEnabled=!0,o.isDragging=o.isGesturing=o.isPressed=G0=X0=!1,o._vx.reset(),o._vy.reset(),f0=i0(),V=B0(),v0&&v0.type&&L1(v0),e&&e(o)}return o},o.disable=function(){if(o.isEnabled){if(I7.filter(function(v0){return v0!==o&&RZ(v0.target)}).length||b9(N?E:H,"scroll",U6),o.isPressed)o._vx.reset(),o._vy.reset(),b9(a?H:E,C8[1],H1,!0);b9(N?E:H,"scroll",R1,L0),b9(H,"wheel",B1,L0),b9(H,C8[0],L1,L0),b9(E,C8[2],S0),b9(E,C8[3],S0),b9(H,"click",F0,!0),b9(H,"click",e0),b9(E,"gesturestart",s1),b9(E,"gestureend",k1),b9(H,nJ+"enter",N9),b9(H,nJ+"leave",b0),b9(H,nJ+"move",g1),o.isEnabled=o.isPressed=o.isDragging=!1,U0&&U0(o)}},o.kill=o.revert=function(){o.disable();var v0=I7.indexOf(o);v0>=0&&I7.splice(v0,1),JJ===o&&(JJ=0)},I7.push(o),a&&RZ(H)&&(JJ=o),o.enable(D)},IY(Q,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),Q}();p1.version="3.15.0";p1.create=function(Q){return new p1(Q)};p1.register=s5;p1.getAll=function(){return I7.slice()};p1.getById=function(Q){return I7.filter(function(J){return J.vars.id===Q})[0]};p5()&&Y9.registerPlugin(p1);/*! * ScrollTrigger 3.15.0 * https://gsap.com * * @license Copyright 2008-2026, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var E0,x7,a0,z1,K8,j1,M6,HQ,xZ,AZ,CZ,o$,M9,XQ,O6,y9,i5,n5,h7,YH,X6,BH,f9,N6,jH,zH,MJ,F6,E6,f7,k6,IZ,R6,Y6,s$=1,E9=Date.now,B6=E9(),j8=0,VZ=0,r5=function(J,Z,$){var K=Q8(J)&&(J.substr(0,6)==="clamp("||J.indexOf("max")>-1);return $["_"+Z+"Clamp"]=K,K?J.substr(6,J.length-7):J},a5=function(J,Z){return Z&&(!Q8(J)||J.substr(0,6)!=="clamp(")?"clamp("+J+")":J},wY=function Q(){return VZ&&requestAnimationFrame(Q)},t5=function(){return XQ=1},e5=function(){return XQ=0},v8=function(J){return J},MZ=function(J){return Math.round(J*1e5)/1e5||0},LH=function(){return typeof window<"u"},OH=function(){return E0||LH()&&(E0=window.gsap)&&E0.registerPlugin&&E0},Z7=function(J){return!!~M6.indexOf(J)},NH=function(J){return(J==="Height"?k6:a0["inner"+J])||K8["client"+J]||j1["client"+J]},FH=function(J){return $J(J,"getBoundingClientRect")||(Z7(J)?function(){return qQ.width=a0.innerWidth,qQ.height=k6,qQ}:function(){return QJ(J)})},bY=function(J,Z,$){var{d:K,d2:W,a:q}=$;return(q=$J(J,"getBoundingClientRect"))?function(){return q()[K]}:function(){return(Z?NH(W):J["client"+W])||0}},xY=function(J,Z){return!Z||~V8.indexOf(J)?FH(J):function(){return qQ}},g8=function(J,Z){var{s:$,d2:K,d:W,a:q}=Z;return Math.max(0,($="scroll"+K)&&(q=$J(J,$))?q()-FH(J)()[W]:Z7(J)?(K8[$]||j1[$])-NH(K):J[$]-J["offset"+K])},i$=function(J,Z){for(var $=0;$0){K-=q;for(H=0;H<$.length;H++)if($[H]>=K)return $[H];return $[H-1]}else{H=$.length,K+=q;while(H--)if($[H]<=K)return $[H]}return $[0]}:function(K,W,q){if(q===void 0)q=0.001;var H=Z(K);return!W||Math.abs(H-K)$&&(K*=Z/100),J=J.substr(0,$-1);J=K+(J in UQ?UQ[J]*Z:~J.indexOf("%")?parseFloat(J)*Z/100:parseFloat(J)||0)}return J},t$=function(J,Z,$,K,W,q,H,Y){var{startColor:B,endColor:z,fontSize:L,indent:j,fontWeight:F}=W,R=z1.createElement("div"),D=Z7($)||$J($,"pinType")==="fixed",M=J.indexOf("scroller")!==-1,A=D?j1:$.tagName==="IFRAME"?$.contentDocument.body:$,I=J.indexOf("start")!==-1,S=I?B:z,h="border-color:"+S+";font-size:"+L+";color:"+S+";font-weight:"+F+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return h+="position:"+((M||Y)&&D?"fixed;":"absolute;"),(M||Y||!D)&&(h+=(K===t1?A6:I6)+":"+(q+parseFloat(j))+"px;"),H&&(h+="box-sizing:border-box;text-align:left;width:"+H.offsetWidth+"px;"),R._isStart=I,R.setAttribute("class","gsap-marker-"+J+(Z?" marker-"+Z:"")),R.style.cssText=h,R.innerText=Z||Z===0?J+"-"+Z:J,A.children[0]?A.insertBefore(R,A.children[0]):A.appendChild(R),R._offset=R["offset"+K.op.d2],QQ(R,0,K,I),R},QQ=function(J,Z,$,K){var W={display:"block"},q=$[K?"os2":"p2"],H=$[K?"p2":"os2"];J._isFlipped=K,W[$.a+"Percent"]=K?-100:0,W[$.a]=K?"1px":0,W["border"+q+_7]=1,W["border"+H+_7]=0,W[$.p]=Z+"px",E0.set(J,W)},r0=[],D6={},hZ,$H=function(){return E9()-j8>34&&(hZ||(hZ=requestAnimationFrame(KJ)))},b7=function(){if(!f9||!f9.isPressed||f9.startX>j1.clientWidth){if(n0.cache++,f9)hZ||(hZ=requestAnimationFrame(KJ));else KJ();j8||Q7("scrollStart"),j8=E9()}},j6=function(){zH=a0.innerWidth,jH=a0.innerHeight},kZ=function(J){n0.cache++,(J===!0||!M9&&!BH&&!z1.fullscreenElement&&!z1.webkitFullscreenElement&&(!N6||zH!==a0.innerWidth||Math.abs(a0.innerHeight-jH)>a0.innerHeight*0.25))&&HQ.restart(!0)},$7={},_Y=[],VH=function Q(){return q9(o0,"scrollEnd",Q)||aJ(!0)},Q7=function(J){return $7[J]&&$7[J].map(function(Z){return Z()})||_Y},$8=[],MH=function(J){for(var Z=0;Z<$8.length;Z+=5)if(!J||$8[Z+4]&&$8[Z+4].query===J)$8[Z].style.cssText=$8[Z+1],$8[Z].getBBox&&$8[Z].setAttribute("transform",$8[Z+2]||""),$8[Z+3].uncache=1},EH=function(){return n0.forEach(function(J){return k9(J)&&++J.cacheID&&(J.rec=J())})},S6=function(J,Z){var $;for(y9=0;y9W,H=K._startClamp&&K.start>=W;(q||H)&&K.setPositions(H?W-1:K.start,q?Math.max(H?W:K.start+1,W):K.end,!0)}),KH(!1),R6=0,$.forEach(function(K){return K&&K.render&&K.render(-1)}),n0.forEach(function(K){if(k9(K))K.smooth&&requestAnimationFrame(function(){return K.target.style.scrollBehavior="smooth"}),K.rec&&K(K.rec)}),kH(E6,1),HQ.pause(),J7++,_9=2,KJ(2),r0.forEach(function(K){return k9(K.vars.onRefresh)&&K.vars.onRefresh(K)}),_9=o0.isRefreshing=!1,Q7("refresh")},C6=0,KQ=1,bZ,KJ=function(J){if(J===2||!_9&&!IZ){o0.isUpdating=!0,bZ&&bZ.update(0);var Z=r0.length,$=E9(),K=$-B6>=50,W=Z&&r0[0].scroll();if(KQ=C6>W?-1:1,_9||(C6=W),K){if(j8&&!XQ&&$-j8>200)j8=0,Q7("scrollEnd");CZ=B6,B6=$}if(KQ<0){y9=Z;while(y9-- >0)r0[y9]&&r0[y9].update(0,K);KQ=1}else for(y9=0;y920),$-=$-v}else F&&(J=E0.utils.mapRange(F.scrollTrigger.start,F.scrollTrigger.end,0,j,J)),H&&QQ(H,$,K,!0);if(R)Y[R]=J||-0.001,J<0&&(J=0);if(q){var b=J+$,f=q._isStart;if(M="scroll"+K.d2,QQ(q,b,K,f&&b>20||!f&&(L?Math.max(j1[M],K8[M]):q.parentNode[M])<=b+1),L)B=QJ(H),L&&(q.style[K.op.p]=B[K.op.p]-K.op.m-q._offset+$9)}if(F&&I)M=QJ(I),F.seek(j),A=QJ(I),F._caScrollDist=M[K.p]-A[K.p],J=J/F._caScrollDist*j;return F&&F.seek(D),F?J:Math.round(J)},mY=/(webkit|moz|length|cssText|inset)/i,qH=function(J,Z,$,K){if(J.parentNode!==Z){var W=J.style,q,H;if(Z===j1){J._stOrig=W.cssText,H=B8(J);for(q in H)if(!+q&&!mY.test(q)&&H[q]&&typeof W[q]==="string"&&q!=="0")W[q]=H[q];W.top=$,W.left=K}else W.cssText=J._stOrig;E0.core.getCache(J).uncache=1,Z.appendChild(J)}},IH=function(J,Z,$){var K=Z,W=K;return function(q){var H=Math.round(J());if(H!==K&&H!==W&&Math.abs(H-K)>3&&Math.abs(H-W)>3)q=H,$&&$();return W=K,K=Math.round(q),K}},JQ=function(J,Z,$){var K={};K[Z.p]="+="+$,E0.set(J,K)},HH=function(J,Z){var $=ZJ(J,Z),K="_scroll"+Z.p2,W=function q(H,Y,B,z,L){var j=q.tween,F=Y.onComplete,R={};B=B||$();var D=IH($,B,function(){j.kill(),q.tween=0});return L=z&&L||0,z=z||H-B,j&&j.kill(),Y[K]=H,Y.inherit=!1,Y.modifiers=R,R[K]=function(){return D(B+z*j.ratio+L*j.ratio*j.ratio)},Y.onUpdate=function(){n0.cache++,q.tween&&KJ()},Y.onComplete=function(){q.tween=0,F&&F.call(j)},j=q.tween=E0.to(J,Y),j};return J[K]=$,$.wheelHandler=function(){return W.tween&&W.tween.kill()&&(W.tween=0)},H9(J,"wheel",$.wheelHandler),o0.isTouch&&H9(J,"touchmove",$.wheelHandler),W},o0=function(){function Q(Z,$){x7||Q.register(E0)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),F6(this),this.init(Z,$)}var J=Q.prototype;return J.init=function($,K){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!VZ){this.update=this.refresh=this.kill=v8;return}$=JH(Q8($)||EZ($)||$.nodeType?{trigger:$}:$,a$);var W=$,q=W.onUpdate,H=W.toggleClass,Y=W.id,B=W.onToggle,z=W.onRefresh,L=W.scrub,j=W.trigger,F=W.pin,R=W.pinSpacing,D=W.invalidateOnRefresh,M=W.anticipatePin,A=W.onScrubComplete,I=W.onSnapComplete,S=W.once,h=W.snap,y=W.pinReparent,v=W.pinSpacer,w=W.containerAnimation,b=W.fastScrollEnd,f=W.preventOverlaps,T=$.horizontal||$.containerAnimation&&$.horizontal!==!1?V9:t1,n=!L&&L!==0,l=h9($.scroller||a0),Q0=E0.core.getCache(l),c=Z7(l),p=("pinType"in $?$.pinType:$J(l,"pinType")||c&&"fixed")==="fixed",i=[$.onEnter,$.onLeave,$.onEnterBack,$.onLeaveBack],Z0=n&&$.toggleActions.split(" "),a="markers"in $?$.markers:a$.markers,J0=c?0:parseFloat(B8(l)["border"+T.p2+_7])||0,x=this,q0=$.onRefreshInit&&function(){return $.onRefreshInit(x)},e=bY(l,c,T),U0=xY(l,c),R0=0,D0=0,L0=0,T0=ZJ(l,T),P0,_0,x0,k0,X0,G0,C0,m0,K1,o,t0,s0,N1,i0,B0,f0,V,X,N,E,_,d,t,F0,j0,z0,I0,c0,F1,H1,L1,S0,s1,k1,R1,B1,g1,N9,b0;if(x._startClamp=x._endClamp=!1,x._dir=T,M*=45,x.scroller=l,x.scroll=w?w.time.bind(w):T0,k0=T0(),x.vars=$,K=K||$.animation,"refreshPriority"in $)YH=1,$.refreshPriority===-9999&&(bZ=x);if(Q0.tweenScroll=Q0.tweenScroll||{top:HH(l,t1),left:HH(l,V9)},x.tweenTo=P0=Q0.tweenScroll[T.p],x.scrubDuration=function(O0){if(s1=EZ(O0)&&O0,!s1)S0&&S0.progress(1).kill(),S0=0;else S0?S0.duration(O0):S0=E0.to(K,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:s1,paused:!0,onComplete:function(){return A&&A(x)}})},K)K.vars.lazy=!1,K._initted&&!x.isReverted||K.vars.immediateRender!==!1&&$.immediateRender!==!1&&K.duration()&&K.render(0,!0,!0),x.animation=K.pause(),K.scrollTrigger=x,x.scrubDuration(L),H1=0,Y||(Y=K.vars.id);if(h){if(!rJ(h)||h.push)h={snapTo:h};"scrollBehavior"in j1.style&&E0.set(c?[j1,K8]:l,{scrollBehavior:"auto"}),n0.forEach(function(O0){return k9(O0)&&O0.target===(c?z1.scrollingElement||K8:l)&&(O0.smooth=!1)}),x0=k9(h.snapTo)?h.snapTo:h.snapTo==="labels"?fY(K):h.snapTo==="labelsDirectional"?yY(K):h.directional!==!1?function(O0,y0){return T6(h.snapTo)(O0,E9()-D0<500?0:y0.direction)}:E0.utils.snap(h.snapTo),k1=h.duration||{min:0.1,max:2},k1=rJ(k1)?AZ(k1.min,k1.max):AZ(k1,k1),R1=E0.delayedCall(h.delay||s1/2||0.1,function(){var O0=T0(),y0=E9()-D0<500,w0=P0.tween;if((y0||Math.abs(x.getVelocity())<10)&&!w0&&!XQ&&R0!==O0){var K0=(O0-G0)/i0,d1=K&&!n?K.totalProgress():K0,Z1=y0?0:(d1-L1)/(E9()-CZ)*1000||0,h1=E0.utils.clamp(-K0,1-K0,w7(Z1/2)*Z1/0.185),w1=K0+(h.inertia===!1?0:h1),P1,D1,Y1=h,u9=Y1.onStart,A1=Y1.onInterrupt,Q9=Y1.onComplete;if(P1=x0(w1,x),EZ(P1)||(P1=w1),D1=Math.max(0,Math.round(G0+P1*i0)),O0<=C0&&O0>=G0&&D1!==O0){if(w0&&!w0._initted&&w0.data<=w7(D1-O0))return;if(h.inertia===!1)h1=P1-K0;P0(D1,{duration:k1(w7(Math.max(w7(w1-d1),w7(P1-d1))*0.185/Z1/0.05||0)),ease:h.ease||"power3",data:w7(D1-O0),onInterrupt:function(){return R1.restart(!0)&&A1&&S7(x,A1)},onComplete:function(){if(x.update(),R0=T0(),K&&!n)S0?S0.resetTo("totalProgress",P1,K._tTime/K._tDur):K.progress(P1);H1=L1=K&&!n?K.totalProgress():x.progress,I&&I(x),Q9&&S7(x,Q9)}},O0,h1*i0,D1-O0-h1*i0),u9&&S7(x,u9,P0.tween)}}else if(x.isActive&&R0!==O0)R1.restart(!0)}).pause()}if(Y&&(D6[Y]=x),j=x.trigger=h9(j||F!==!0&&F),b0=j&&j._gsap&&j._gsap.stRevert,b0&&(b0=b0(x)),F=F===!0?j:h9(F),Q8(H)&&(H={targets:j,className:H}),F){if(R===!1||R===Y8||(R=!R&&F.parentNode&&F.parentNode.style&&B8(F.parentNode).display==="flex"?!1:e1),x.pin=F,_0=E0.core.getCache(F),!_0.spacer){if(v)v=h9(v),v&&!v.nodeType&&(v=v.current||v.nativeElement),_0.spacerIsNative=!!v,v&&(_0.spacerState=e$(v));_0.spacer=X=v||z1.createElement("div"),X.classList.add("pin-spacer"),Y&&X.classList.add("pin-spacer-"+Y),_0.pinState=B0=e$(F)}else B0=_0.pinState;$.force3D!==!1&&E0.set(F,{force3D:!0}),x.spacer=X=_0.spacer,F1=B8(F),F0=F1[R+T.os2],E=E0.getProperty(F),_=E0.quickSetter(F,T.a,$9),z6(F,X,F1),V=e$(F)}if(a){s0=rJ(a)?JH(a,ZH):ZH,o=t$("scroller-start",Y,l,T,s0,0),t0=t$("scroller-end",Y,l,T,s0,0,o),N=o["offset"+T.op.d2];var e0=h9($J(l,"content")||l);if(m0=this.markerStart=t$("start",Y,e0,T,s0,N,0,w),K1=this.markerEnd=t$("end",Y,e0,T,s0,N,0,w),w&&(N9=E0.quickSetter([m0,K1],T.a,$9)),!p&&!(V8.length&&$J(l,"fixedMarkers")===!0))hY(c?j1:l),E0.set([o,t0],{force3D:!0}),z0=E0.quickSetter(o,T.a,$9),c0=E0.quickSetter(t0,T.a,$9)}if(w){var v0=w.vars.onUpdate,h0=w.vars.onUpdateParams;w.eventCallback("onUpdate",function(){x.update(0,0,1),v0&&v0.apply(w,h0||[])})}if(x.previous=function(){return r0[r0.indexOf(x)-1]},x.next=function(){return r0[r0.indexOf(x)+1]},x.revert=function(O0,y0){if(!y0)return x.kill(!0);var w0=O0!==!1||!x.enabled,K0=M9;if(w0!==x.isReverted){if(w0)B1=Math.max(T0(),x.scroll.rec||0),L0=x.progress,g1=K&&K.progress();if(m0&&[m0,K1,o,t0].forEach(function(d1){return d1.style.display=w0?"none":"block"}),w0)M9=x,x.update(w0);if(F&&(!y||!x.isActive))if(w0)vY(F,X,B0);else z6(F,X,B8(F),j0);w0||x.update(w0),M9=K0,x.isReverted=w0}},x.refresh=function(O0,y0,w0,K0){if((M9||!x.enabled)&&!y0)return;if(F&&O0&&j8){H9(Q,"scrollEnd",VH);return}if(!_9&&q0&&q0(x),M9=x,P0.tween&&!w0)P0.tween.kill(),P0.tween=0;if(S0&&S0.pause(),D&&K)K.revert({kill:!1}).invalidate(),K.getChildren?K.getChildren(!0,!0,!1).forEach(function(v9){return v9.vars.immediateRender&&v9.render(0,!0,!0)}):K.vars.immediateRender&&K.render(0,!0,!0);x.isReverted||x.revert(!0,!0),x._subPinOffset=!1;var d1=e(),Z1=U0(),h1=w?w.duration():g8(l,T),w1=i0<=0.01||!i0,P1=0,D1=K0||0,Y1=rJ(w0)?w0.end:$.end,u9=$.endTrigger||j,A1=rJ(w0)?w0.start:$.start||($.start===0||!j?0:F?"0 0":"0 100%"),Q9=x.pinnedContainer=$.pinnedContainer&&h9($.pinnedContainer,x),n9=j&&Math.max(0,r0.indexOf(x))||0,I1=n9,r1,K9,c8,UJ,J9,f1,a1,XJ,Y7,bJ,P9,YJ,xJ;if(a&&rJ(w0))YJ=E0.getProperty(o,T.p),xJ=E0.getProperty(t0,T.p);while(I1-- >0){if(f1=r0[I1],f1.end||f1.refresh(0,1)||(M9=x),a1=f1.pin,a1&&(a1===j||a1===F||a1===Q9)&&!f1.isReverted)bJ||(bJ=[]),bJ.unshift(f1),f1.revert(!0,!0);if(f1!==r0[I1])n9--,I1--}if(k9(A1)&&(A1=A1(x)),A1=r5(A1,"start",x),G0=WH(A1,j,d1,T,T0(),m0,o,x,Z1,J0,p,h1,w,x._startClamp&&"_startClamp")||(F?-0.001:0),k9(Y1)&&(Y1=Y1(x)),Q8(Y1)&&!Y1.indexOf("+="))if(~Y1.indexOf(" "))Y1=(Q8(A1)?A1.split(" ")[0]:"")+Y1;else P1=$Q(Y1.substr(2),d1),Y1=Q8(A1)?A1:(w?E0.utils.mapRange(0,w.duration(),w.scrollTrigger.start,w.scrollTrigger.end,G0):G0)+P1,u9=j;Y1=r5(Y1,"end",x),C0=Math.max(G0,WH(Y1||(u9?"100% 0":h1),u9,d1,T,T0()+P1,K1,t0,x,Z1,J0,p,h1,w,x._endClamp&&"_endClamp"))||-0.001,P1=0,I1=n9;while(I1--)if(f1=r0[I1]||{},a1=f1.pin,a1&&f1.start-f1._pinPush<=G0&&!w&&f1.end>0){if(r1=f1.end-(x._startClamp?Math.max(0,f1.start):f1.start),(a1===j&&f1.start-f1._pinPush=g8(l,T))){if(r1=B8(F),UJ=T===t1,c8=T0(),d=parseFloat(E(T.a))+D1,!h1&&C0>1){if(P9=(c?z1.scrollingElement||K8:l).style,P9={style:P9,value:P9["overflow"+T.a.toUpperCase()]},c&&B8(j1)["overflow"+T.a.toUpperCase()]!=="scroll")P9.style["overflow"+T.a.toUpperCase()]="scroll"}if(z6(F,X,r1),V=e$(F),K9=QJ(F,!0),XJ=p&&ZJ(l,UJ?V9:t1)(),R){if(j0=[R+T.os2,i0+D1+$9],j0.t=X,I1=R===e1?GQ(F,T)+i0+D1:0,I1)j0.push(T.d,I1+$9),X.style.flexBasis!=="auto"&&(X.style.flexBasis=I1+$9);if(y7(j0),Q9)r0.forEach(function(v9){if(v9.pin===Q9&&v9.vars.pinSpacing!==!1)v9._subPinOffset=!0});p&&T0(B1)}else I1=GQ(F,T),I1&&X.style.flexBasis!=="auto"&&(X.style.flexBasis=I1+$9);if(p)J9={top:K9.top+(UJ?c8-G0:XJ)+$9,left:K9.left+(UJ?XJ:c8-G0)+$9,boxSizing:"border-box",position:"fixed"},J9[tJ]=J9["max"+_7]=Math.ceil(K9.width)+$9,J9[eJ]=J9["max"+P6]=Math.ceil(K9.height)+$9,J9[Y8]=J9[Y8+SZ]=J9[Y8+PZ]=J9[Y8+wZ]=J9[Y8+TZ]="0",J9[e1]=r1[e1],J9[e1+SZ]=r1[e1+SZ],J9[e1+PZ]=r1[e1+PZ],J9[e1+wZ]=r1[e1+wZ],J9[e1+TZ]=r1[e1+TZ],f0=dY(B0,J9,y),_9&&T0(0);if(K)Y7=K._initted,X6(1),K.render(K.duration(),!0,!0),t=E(T.a)-d+i0+D1,I0=Math.abs(i0-t)>1,p&&I0&&f0.splice(f0.length-2,2),K.render(0,!0,!0),Y7||K.invalidate(!0),K.parent||K.totalTime(K.totalTime()),X6(0);else t=i0;P9&&(P9.value?P9.style["overflow"+T.a.toUpperCase()]=P9.value:P9.style.removeProperty("overflow-"+T.a))}else if(j&&T0()&&!w){K9=j.parentNode;while(K9&&K9!==j1){if(K9._pinOffset)G0-=K9._pinOffset,C0-=K9._pinOffset;K9=K9.parentNode}}if(bJ&&bJ.forEach(function(v9){return v9.revert(!1,!0)}),x.start=G0,x.end=C0,k0=X0=_9?B1:T0(),!w&&!_9)k00?r0.slice(0,y0).reverse():r0.slice(y0+1);return(Q8(O0)?w0.filter(function(K0){return K0.vars.preventOverlaps===O0}):w0).filter(function(K0){return x.direction>0?K0.end<=G0:K0.start>=C0})},x.update=function(O0,y0,w0){if(w&&!w0&&!O0)return;var K0=_9===!0?B1:x.scroll(),d1=O0?0:(K0-G0)/i0,Z1=d1<0?0:d1>1?1:d1||0,h1=x.progress,w1,P1,D1,Y1,u9,A1,Q9,n9;if(y0){if(X0=k0,k0=w?T0():K0,h)L1=H1,H1=K&&!n?K.totalProgress():Z1}if(M&&F&&!M9&&!s$&&j8){if(!Z1&&G0K0+(K0-X0)/(E9()-CZ)*M)Z1=0.9999}if(Z1!==h1&&x.enabled){if(w1=x.isActive=!!Z1&&Z1<1,P1=!!h1&&h1<1,A1=w1!==P1,u9=A1||!!Z1!==!!h1,x.direction=Z1>h1?1:-1,x.progress=Z1,u9&&!M9){if(D1=Z1&&!h1?0:Z1===1?1:h1===1?2:3,n)Y1=!A1&&Z0[D1+1]!=="none"&&Z0[D1+1]||Z0[D1],n9=K&&(Y1==="complete"||Y1==="reset"||(Y1 in K))}if(f&&(A1||n9)&&(n9||L||!K)&&(k9(f)?f(x):x.getTrailing(f).forEach(function(c8){return c8.endAnimation()})),!n){if(S0&&!M9&&!s$)if(S0._dp._time-S0._start!==S0._time&&S0.render(S0._dp._time-S0._start),S0.resetTo)S0.resetTo("totalProgress",Z1,K._tTime/K._tDur);else S0.vars.totalProgress=Z1,S0.invalidate().restart();else if(K)K.totalProgress(Z1,!!(M9&&(D0||O0)))}if(F){if(O0&&R&&(X.style[R+T.os2]=F0),!p)_(MZ(d+t*Z1));else if(u9){if(Q9=!O0&&Z1>h1&&C0+1>K0&&K0+1>=g8(l,T),y)if(!O0&&(w1||Q9)){var I1=QJ(F,!0),r1=K0-G0;qH(F,j1,I1.top+(T===t1?r1:0)+$9,I1.left+(T===t1?0:r1)+$9)}else qH(F,X);y7(w1||Q9?f0:V),I0&&Z1<1&&w1||_(d+(Z1===1&&!Q9?t:0))}}if(h&&!P0.tween&&!M9&&!s$&&R1.restart(!0),H&&(A1||S&&Z1&&(Z1<1||!Y6))&&xZ(H.targets).forEach(function(c8){return c8.classList[w1||S?"add":"remove"](H.className)}),q&&!n&&!O0&&q(x),u9&&!M9){if(n){if(n9)if(Y1==="complete")K.pause().totalProgress(1);else if(Y1==="reset")K.restart(!0).pause();else if(Y1==="restart")K.restart(!0);else K[Y1]();q&&q(x)}if(A1||!Y6){if(B&&A1&&S7(x,B),i[D1]&&S7(x,i[D1]),S&&(Z1===1?x.kill(!1,1):i[D1]=0),!A1)D1=Z1===1?1:3,i[D1]&&S7(x,i[D1])}if(b&&!w1&&Math.abs(x.getVelocity())>(EZ(b)?b:2500))DZ(x.callbackAnimation),S0?S0.progress(1):DZ(K,Y1==="reverse"?1:!Z1,1)}else if(n&&q&&!M9)q(x)}if(c0){var K9=w?K0/w.duration()*(w._caScrollDist||0):K0;z0(K9+(o._isFlipped?1:0)),c0(K9)}N9&&N9(-K0/w.duration()*(w._caScrollDist||0))},x.enable=function(O0,y0){if(!x.enabled){if(x.enabled=!0,H9(l,"resize",kZ),c||H9(l,"scroll",b7),q0&&H9(Q,"refreshInit",q0),O0!==!1)x.progress=L0=0,k0=X0=R0=T0();y0!==!1&&x.refresh()}},x.getTween=function(O0){return O0&&P0?P0.tween:S0},x.setPositions=function(O0,y0,w0,K0){if(w){var d1=w.scrollTrigger,Z1=w.duration(),h1=d1.end-d1.start;O0=d1.start+h1*O0/Z1,y0=d1.start+h1*y0/Z1}x.refresh(!1,!1,{start:a5(O0,w0&&!!x._startClamp),end:a5(y0,w0&&!!x._endClamp)},K0),x.update()},x.adjustPinSpacing=function(O0){if(j0&&O0){var y0=j0.indexOf(T.d)+1;j0[y0]=parseFloat(j0[y0])+O0+$9,j0[1]=parseFloat(j0[1])+O0+$9,y7(j0)}},x.disable=function(O0,y0){if(O0!==!1&&x.revert(!0,!0),x.enabled){if(x.enabled=x.isActive=!1,y0||S0&&S0.pause(),B1=0,_0&&(_0.uncache=1),q0&&q9(Q,"refreshInit",q0),R1)R1.pause(),P0.tween&&P0.tween.kill()&&(P0.tween=0);if(!c){var w0=r0.length;while(w0--)if(r0[w0].scroller===l&&r0[w0]!==x)return;q9(l,"resize",kZ),c||q9(l,"scroll",b7)}}},x.kill=function(O0,y0){x.disable(O0,y0),S0&&!y0&&S0.kill(),Y&&delete D6[Y];var w0=r0.indexOf(x);if(w0>=0&&r0.splice(w0,1),w0===y9&&KQ>0&&y9--,w0=0,r0.forEach(function(K0){return K0.scroller===x.scroller&&(w0=1)}),w0||_9||(x.scroll.rec=0),K)K.scrollTrigger=null,O0&&K.revert({kill:!1}),y0||K.kill();if(m0&&[m0,K1,o,t0].forEach(function(K0){return K0.parentNode&&K0.parentNode.removeChild(K0)}),bZ===x&&(bZ=0),F)_0&&(_0.uncache=1),w0=0,r0.forEach(function(K0){return K0.pin===F&&w0++}),w0||(_0.spacer=0);$.onKill&&$.onKill(x)},r0.push(x),x.enable(!1,!1),b0&&b0(x),K&&K.add&&!i0){var J1=x.update;x.update=function(){x.update=J1,n0.cache++,G0||C0||x.refresh()},E0.delayedCall(0.01,x.update),i0=0.01,G0=C0=0}else x.refresh();F&&uY()},Q.register=function($){if(!x7)E0=$||OH(),LH()&&window.document&&Q.enable(),x7=VZ;return x7},Q.defaults=function($){if($)for(var K in $)a$[K]=$[K];return a$},Q.disable=function($,K){VZ=0,r0.forEach(function(q){return q[K?"kill":"disable"]($)}),q9(a0,"wheel",b7),q9(z1,"scroll",b7),clearInterval(o$),q9(z1,"touchcancel",v8),q9(j1,"touchstart",v8),n$(q9,z1,"pointerdown,touchstart,mousedown",t5),n$(q9,z1,"pointerup,touchend,mouseup",e5),HQ.kill(),i$(q9);for(var W=0;W0&&q.left+H0&&q.top+H=0&&$8.splice(Z,5),$8.push(J,J.style.cssText,J.getBBox&&J.getAttribute("transform"),E0.core.getCache(J),F6())}}):$8};o0.revert=function(Q,J){return S6(!Q,J)};o0.create=function(Q,J){return new o0(Q,J)};o0.refresh=function(Q){return Q?kZ(!0):(x7||o0.register())&&aJ(!0)};o0.update=function(Q){return++n0.cache&&KJ(Q===!0?2:0)};o0.clearScrollMemory=kH;o0.maxScroll=function(Q,J){return g8(Q,J?V9:t1)};o0.getScrollFunc=function(Q,J){return ZJ(h9(Q),J?V9:t1)};o0.getById=function(Q){return D6[Q]};o0.getAll=function(){return r0.filter(function(Q){return Q.vars.id!=="ScrollSmoother"})};o0.isScrolling=function(){return!!j8};o0.snapDirectional=T6;o0.addEventListener=function(Q,J){var Z=$7[Q]||($7[Q]=[]);~Z.indexOf(J)||Z.push(J)};o0.removeEventListener=function(Q,J){var Z=$7[Q],$=Z&&Z.indexOf(J);$>=0&&Z.splice($,1)};o0.batch=function(Q,J){var Z=[],$={},K=J.interval||0.016,W=J.batchMax||1e9,q=function(B,z){var L=[],j=[],F=E0.delayedCall(K,function(){z(L,j),L=[],j=[]}).pause();return function(R){L.length||F.restart(!0),L.push(R.trigger),j.push(R),W<=L.length&&F.progress(1)}},H;for(H in J)$[H]=H.substr(0,2)==="on"&&k9(J[H])&&H!=="onRefreshInit"?q(H,J[H]):J[H];if(k9(W))W=W(),H9(o0,"refresh",function(){return W=J.batchMax()});return xZ(Q).forEach(function(Y){var B={};for(H in $)B[H]=$[H];B.trigger=Y,Z.push(o0.create(B))}),Z};var GH=function(J,Z,$,K){return Z>K?J(K):Z<0&&J(0),$>K?(K-Z)/($-Z):$<0?Z/(Z-$):1},L6=function Q(J,Z){if(Z===!0)J.style.removeProperty("touch-action");else J.style.touchAction=Z===!0?"auto":Z?"pan-"+Z+(p1.isTouch?" pinch-zoom":""):"none";J===K8&&Q(j1,Z)},ZQ={auto:1,scroll:1},cY=function(J){var{event:Z,target:$,axis:K}=J,W=(Z.changedTouches?Z.changedTouches[0]:Z).target,q=W._gsap||E0.core.getCache(W),H=E9(),Y;if(!q._isScrollT||H-q._isScrollT>2000){while(W&&W!==j1&&(W.scrollHeight<=W.clientHeight&&W.scrollWidth<=W.clientWidth||!(ZQ[(Y=B8(W)).overflowY]||ZQ[Y.overflowX])))W=W.parentNode;q._isScroll=W&&W!==$&&!Z7(W)&&(ZQ[(Y=B8(W)).overflowY]||ZQ[Y.overflowX]),q._isScrollT=H}if(q._isScroll||K==="x")Z.stopPropagation(),Z._gsapAllow=!0},PH=function(J,Z,$,K){return p1.create({target:J,capture:!0,debounce:!1,lockAxis:!0,type:Z,onWheel:K=K&&cY,onPress:K,onDrag:K,onScroll:K,onEnable:function(){return $&&H9(z1,p1.eventTypes[0],XH,!1,!0)},onDisable:function(){return q9(z1,p1.eventTypes[0],XH,!0)}})},pY=/(input|label|select|textarea)/i,UH,XH=function(J){var Z=pY.test(J.target.tagName);if(Z||UH)J._gsapAllow=!0,UH=Z},lY=function(J){rJ(J)||(J={}),J.preventDefault=J.isNormalizer=J.allowClicks=!0,J.type||(J.type="wheel,touch"),J.debounce=!!J.debounce,J.id=J.id||"normalizer";var Z=J,$=Z.normalizeScrollX,K=Z.momentum,W=Z.allowNestedScroll,q=Z.onRelease,H,Y,B=h9(J.target)||K8,z=E0.core.globals().ScrollSmoother,L=z&&z.get(),j=MJ&&(J.content&&h9(J.content)||L&&J.content!==!1&&!L.smooth()&&L.content()),F=ZJ(B,t1),R=ZJ(B,V9),D=1,M=(p1.isTouch&&a0.visualViewport?a0.visualViewport.scale*a0.visualViewport.width:a0.outerWidth)/a0.innerWidth,A=0,I=k9(K)?function(){return K(H)}:function(){return K||2.8},S,h,y=PH(B,J.type,!0,W),v=function(){return h=!1},w=v8,b=v8,f=function(){Y=g8(B,t1),b=AZ(MJ?1:0,Y),$&&(w=AZ(0,g8(B,V9))),S=J7},T=function(){j._gsap.y=MZ(parseFloat(j._gsap.y)+F.offset)+"px",j.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(j._gsap.y)+", 0, 1)",F.offset=F.cacheID=0},n=function(){if(h){requestAnimationFrame(v);var a=MZ(H.deltaY/2),J0=b(F.v-a);if(j&&J0!==F.v+F.offset){F.offset=J0-F.v;var x=MZ((parseFloat(j&&j._gsap.y)||0)-F.offset);j.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+x+", 0, 1)",j._gsap.y=x+"px",F.cacheID=n0.cache,KJ()}return!0}F.offset&&T(),h=!0},l,Q0,c,p,i=function(){if(f(),l.isActive()&&l.vars.scrollY>Y)F()>Y?l.progress(1)&&F(Y):l.resetTo("scrollY",Y)};return j&&E0.set(j,{y:"+=0"}),J.ignoreCheck=function(Z0){return MJ&&Z0.type==="touchmove"&&n(Z0)||D>1.05&&Z0.type!=="touchstart"||H.isGesturing||Z0.touches&&Z0.touches.length>1},J.onPress=function(){h=!1;var Z0=D;D=MZ((a0.visualViewport&&a0.visualViewport.scale||1)/M),l.pause(),Z0!==D&&L6(B,D>1.01?!0:$?!1:"x"),Q0=R(),c=F(),f(),S=J7},J.onRelease=J.onGestureStart=function(Z0,a){if(F.offset&&T(),!a)p.restart(!0);else{n0.cache++;var J0=I(),x,q0;if($)x=R(),q0=x+J0*0.05*-Z0.velocityX/0.227,J0*=GH(R,x,q0,g8(B,V9)),l.vars.scrollX=w(q0);if(x=F(),q0=x+J0*0.05*-Z0.velocityY/0.227,J0*=GH(F,x,q0,g8(B,t1)),l.vars.scrollY=b(q0),l.invalidate().duration(J0).play(0.01),MJ&&l.vars.scrollY>=Y||x>=Y-1)E0.to({},{onUpdate:i,duration:J0})}q&&q(Z0)},J.onWheel=function(){if(l._ts&&l.pause(),E9()-A>1000)S=0,A=E9()},J.onChange=function(Z0,a,J0,x,q0){if(J7!==S&&f(),a&&$&&R(w(x[2]===a?Q0+(Z0.startX-Z0.x):R()+a-x[1])),J0){F.offset&&T();var e=q0[2]===J0,U0=e?c+Z0.startY-Z0.y:F()+J0-q0[1],R0=b(U0);e&&U0!==R0&&(c+=R0-U0),F(R0)}(J0||a)&&KJ()},J.onEnable=function(){if(L6(B,$?!1:"x"),o0.addEventListener("refresh",i),H9(a0,"resize",i),F.smooth)F.target.style.scrollBehavior="auto",F.smooth=R.smooth=!1;y.enable()},J.onDisable=function(){L6(B,!0),q9(a0,"resize",i),o0.removeEventListener("refresh",i),y.kill()},J.lockAxis=J.lockAxis!==!1,H=new p1(J),H.iOS=MJ,MJ&&!F()&&F(1),MJ&&E0.ticker.add(v8),p=H._dc,l=E0.to(H,{ease:"power4",paused:!0,inherit:!1,scrollX:$?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:IH(F,F(),function(){return l.pause()})},onUpdate:KJ,onComplete:p.vars.onComplete}),H};o0.sort=function(Q){if(k9(Q))return r0.sort(Q);var J=a0.pageYOffset||0;return o0.getAll().forEach(function(Z){return Z._sortY=Z.trigger?J+Z.trigger.getBoundingClientRect().top:Z.start+a0.innerHeight}),r0.sort(Q||function(Z,$){return(Z.vars.refreshPriority||0)*-1e6+(Z.vars.containerAnimation?1e6:Z._sortY)-(($.vars.containerAnimation?1e6:$._sortY)+($.vars.refreshPriority||0)*-1e6)})};o0.observe=function(Q){return new p1(Q)};o0.normalizeScroll=function(Q){if(typeof Q>"u")return f9;if(Q===!0&&f9)return f9.enable();if(Q===!1){f9&&f9.kill(),f9=Q;return}var J=Q instanceof p1?Q:lY(Q);return f9&&f9.target===J.target&&f9.kill(),Z7(J.target)&&(f9=J),J};o0.core={_getVelocityProp:l$,_inputObserver:PH,_scrollers:n0,_proxies:V8,bridge:{ss:function(){j8||Q7("scrollStart"),j8=E9()},ref:function(){return M9}}};OH()&&E0.registerPlugin(o0);/*! * SplitText 3.15.0 * https://gsap.com * * @license Copyright 2026, GreenSock. All rights reserved. Subject to the terms at https://gsap.com/standard-license. * @author: Jack Doyle */var fZ,yZ,TH=typeof Symbol==="function"?Symbol():"_split",b6,oY=()=>b6||EJ.register(window.gsap),SH=typeof Intl<"u"&&"Segmenter"in Intl?new Intl.Segmenter:0,_Z=(Q)=>!Q?[]:typeof Q==="string"?_Z(document.querySelectorAll(Q)):("length"in Q)?Array.from(Q).reduce((J,Z)=>{return typeof Z==="string"?J.push(..._Z(Z)):J.push(Z),J},[]):[Q],wH=(Q)=>_Z(Q).filter((J)=>J&&J.nodeType===1),x6=[],w6=function(){},sY={add:(Q)=>Q()},iY=/\s+/g,bH=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"),YQ={left:0,top:0,width:0,height:0},nY=(Q,J)=>{while(++J{Q.innerHTML=J,Z?Q.setAttribute("aria-label",Z):Q.removeAttribute("aria-label"),$?Q.setAttribute("aria-hidden",$):Q.removeAttribute("aria-hidden")},hH=(Q,J)=>{if(J){let Z=new Set(Q.join("").match(J)||x6),$=Q.length,K,W,q,H;if(Z.size)while(--$>-1){W=Q[$];for(q of Z)if(q.startsWith(W)&&q.length>W.length){K=0,H=W;while(q.startsWith(H+=Q[$+ ++K])&&H.lengthwindow.getComputedStyle(Q).display==="inline"&&(Q.style.display="inline-block"),u7=(Q,J,Z)=>J.insertBefore(typeof Q==="string"?document.createTextNode(Q):Q,Z),h6=(Q,J,Z)=>{let $=J[Q+"sClass"]||"",{tag:K="div",aria:W="auto",propIndex:q=!1}=J,H=Q==="line"?"block":"inline-block",Y=$.indexOf("++")>-1,B=(z)=>{let L=document.createElement(K),j=Z.length+1;if($&&(L.className=$+(Y?" "+$+j:"")),q&&L.style.setProperty("--"+Q,j+""),W!=="none"&&L.setAttribute("aria-hidden","true"),K!=="span")L.style.position="relative",L.style.display=H;return L.textContent=z,Z.push(L),L};return Y&&($=$.replace("++","")),B.collection=Z,B},rY=(Q,J,Z,$)=>{let K=h6("line",Z,$),W=window.getComputedStyle(Q).textAlign||"left";return(q,H)=>{let Y=K("");Y.style.textAlign=W,Q.insertBefore(Y,J[q]);for(;q{var z;let L=Array.from(Q.childNodes),j=0,{wordDelimiter:F,reduceWhiteSpace:R=!0,prepareText:D}=J,M=Q.getBoundingClientRect(),A=M,I=!R&&window.getComputedStyle(Q).whiteSpace.substring(0,3)==="pre",S=0,h=Z.collection,y,v,w,b,f,T,n,l,Q0,c,p,i,Z0,a,J0,x,q0,e;if(typeof F==="object")w=F.delimiter||F,v=F.replaceWith||"";else v=F===""?"":F||" ";y=v!==" ";for(;j-1)T=h[h.length-1],T.appendChild(document.createTextNode($?"":x));else T=Z($?"":x),u7(T,Q,b),S&&Q0===1&&!n&&T.insertBefore(S,T.firstChild);if($){p=SH?hH([...SH.segment(x)].map((U0)=>U0.segment),Y):x.match(H)||x6;for(e=0;eA.top&&c.left<=A.left){i=Q.cloneNode(),Z0=Q.childNodes[0];while(Z0&&Z0!==T)a=Z0,Z0=Z0.nextSibling,i.appendChild(a);Q.parentNode.insertBefore(i,Q),K&&fH(i)}A=c}if(Q0=f.length?" ":y&&x.slice(-1)===" "?" "+v:v,Q,b)}}Q.removeChild(b),S=0}else if(b.nodeType===1){if(q&&q.indexOf(b)>-1)h.indexOf(b.previousSibling)>-1&&h[h.length-1].appendChild(b),S=b;else yH(b,J,Z,$,K,W,q,H,Y,!0),S=0;K&&fH(b)}},_H=class Q{constructor(J,Z){this.isSplit=!1,oY(),this.elements=wH(J),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=Z,this.elements.forEach((q)=>{var H;Z.overwrite!==!1&&((H=q[TH])==null||H._data.orig.filter(({element:Y})=>Y===q).forEach(xH)),q[TH]=this}),this._split=()=>this.isSplit&&this.split(this.vars);let $=[],K,W=()=>{let q=$.length,H;while(q--){H=$[q];let Y=H.element.offsetWidth;if(Y!==H.width){H.width=Y,this._split();return}}};this._data={orig:$,obs:typeof ResizeObserver<"u"&&new ResizeObserver(()=>{clearTimeout(K),K=setTimeout(W,200)})},w6(this),this.split(Z)}split(J){return(this._ctx||sY).add(()=>{this.isSplit&&this.revert(),this.vars=J=J||this.vars||{};let{type:Z="chars,words,lines",aria:$="auto",deepSlice:K=!0,smartWrap:W,onSplit:q,autoSplit:H=!1,specialChars:Y,mask:B}=this.vars,z=Z.indexOf("lines")>-1,L=Z.indexOf("chars")>-1,j=Z.indexOf("words")>-1,F=L&&!j&&!z,R=Y&&("push"in Y?new RegExp("(?:"+Y.join("|")+")","gu"):Y),D=R?new RegExp(R.source+"|"+bH.source,"gu"):bH,M=!!J.ignore&&wH(J.ignore),{orig:A,animTime:I,obs:S}=this._data,h;if(L||j||z)this.elements.forEach((y,v)=>{A[v]={element:y,html:y.innerHTML,ariaL:y.getAttribute("aria-label"),ariaH:y.getAttribute("aria-hidden")},$==="auto"?y.setAttribute("aria-label",(y.textContent||"").trim()):$==="hidden"&&y.setAttribute("aria-hidden","true");let w=[],b=[],f=[],T=L?h6("char",J,w):null,n=h6("word",J,b),l,Q0,c,p;if(yH(y,J,n,T,F,K&&(z||F),M,D,R,!1),z){let i=_Z(y.childNodes),Z0=rY(y,i,J,f),a,J0=[],x=0,q0=i.map((R0)=>R0.nodeType===1?R0.getBoundingClientRect():YQ),e=YQ,U0;for(l=0;le.top&&U0.left{var D0;return(D0=R0.parentNode)==null?void 0:D0.removeChild(R0)})}if(!j){for(l=0;l{let v=y.cloneNode();return y.replaceWith(v),v.appendChild(y),y.className&&(v.className=y.className.trim().split(" ").map((w)=>w+"-mask").join(" ")),v.style.overflow="clip",v}));if(this.isSplit=!0,yZ&&z&&H&&yZ.addEventListener("loadingdone",this._split),(h=q&&q(this))&&h.totalTime)this._data.anim=I?h.totalTime(I):h;z&&H&&this.elements.forEach((y,v)=>{A[v].width=y.offsetWidth,S&&S.observe(y)})}),this}kill(){let{obs:J}=this._data;J&&J.disconnect(),yZ==null||yZ.removeEventListener("loadingdone",this._split)}revert(){var J,Z;if(this.isSplit){let{orig:$,anim:K}=this._data;if(this.kill(),$.forEach(xH),this.chars.length=this.words.length=this.lines.length=$.length=this.masks.length=0,this.isSplit=!1,K)this._data.animTime=K.totalTime(),K.revert();(Z=(J=this.vars).onRevert)==null||Z.call(J,this)}return this}static create(J,Z){return new Q(J,Z)}static register(J){if(fZ=fZ||J||window.gsap,fZ)_Z=fZ.utils.toArray,w6=fZ.core.context||w6;if(!b6&&window.innerWidth>0)yZ=document.fonts,b6=!0}};_H.version="3.15.0";var EJ=_H;/*! * strings: 3.15.0 * https://gsap.com * * Copyright 2008-2026, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var aY=/(?:^\s+|\s+$)/g,tY=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2642\u2640]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDD27\uDCBC\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCC\uDFCB]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function BQ(Q){var J=Q.nodeType,Z="";if(J===1||J===9||J===11)if(typeof Q.textContent==="string")return Q.textContent;else for(Q=Q.firstChild;Q;Q=Q.nextSibling)Z+=BQ(Q);else if(J===3||J===4)return Q.nodeValue;return Z}function M8(Q,J,Z,$,K){if(Q+="",Z&&(Q=Q.trim?Q.trim():Q.replace(aY,"")),J&&J!=="")return Q.replace(/>/g,">").replace(/=55296&&B.charCodeAt(0)<=56319||Q.charCodeAt(H+1)>=65024&&Q.charCodeAt(H+1)<=65039)Y=((Q.substr(H,12).split(tY)||[])[1]||"").length||2,B=Q.substr(H,Y),W.emoji=1,H+=Y-1;W.push(K?B:B===">"?">":B==="<"?"<":$&&B===" "&&(Q.charAt(H-1)===" "||Q.charAt(H+1)===" ")?" ":B)}return W}/*! * ScrambleTextPlugin 3.15.0 * https://gsap.com * * @license Copyright 2008-2026, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var jQ=function(){function Q(Z){this.chars=M8(Z),this.sets=[],this.length=50;for(var $=0;$<20;$++)this.sets[$]=vH(80,this.chars)}var J=Q.prototype;return J.grow=function($){for(var K=0;K<20;K++)this.sets[K]+=vH($-this.length,this.chars);this.length=$},Q}(),K7,mH,cH=function(){return K7||typeof window<"u"&&(K7=window.gsap)&&K7.registerPlugin&&K7},eY=1,uH=/\s+/g,vH=function(J,Z){var $=Z.length,K="";while(--J>-1)K+=Z[~~(Math.random()*$)];return K},f6="ABCDEFGHIJKLMNOPQRSTUVWXYZ",gH=f6.toLowerCase(),JB={upperCase:new jQ(f6),lowerCase:new jQ(gH),upperAndLowerCase:new jQ(f6+gH)},dH=function(){mH=K7=cH()},uZ={version:"3.15.0",name:"scrambleText",register:function(J,Z,$){K7=J,dH()},init:function(J,Z,$,K,W){if(mH||dH(),this.prop="innerHTML"in J?"innerHTML":("textContent"in J)?"textContent":0,!this.prop)return;if(this.target=J,typeof Z!=="object")Z={text:Z};var q=Z.text||Z.value||"",H=Z.trim!==!1,Y=this,B,z,L,j;if(Y.delimiter=B=Z.delimiter||"",Y.original=M8(BQ(J).replace(uH," ").split(" ").join(""),B,H),q==="{original}"||q===!0||q==null)q=Y.original.join(B);if(Y.text=M8((q||"").replace(uH," "),B,H),Y.hasClass=!!(Z.newClass||Z.oldClass),Y.newClass=Z.newClass,Y.oldClass=Z.oldClass,j=B==="",Y.textHasEmoji=j&&!!Y.text.emoji,Y.charsHaveEmoji=!!Z.chars&&!!M8(Z.chars).emoji,Y.length=j?Y.original.length:Y.original.join(B).length,Y.lengthDif=(j?Y.text.length:Y.text.join(B).length)-Y.length,Y.fillChar=Z.fillChar||Z.chars&&~Z.chars.indexOf(" ")?" ":"",Y.charSet=L=JB[Z.chars||"upperCase"]||new jQ(Z.chars),Y.speed=0.05/(Z.speed||1),Y.prevScrambleTime=0,Y.setIndex=Math.random()*20|0,z=Y.length+Math.max(Y.lengthDif,0),z>L.length)L.grow(z);return Y.chars=L.sets[Y.setIndex],Y.revealDelay=Z.revealDelay||0,Y.tweenLength=Z.tweenLength!==!1,Y.tween=$,Y.rightToLeft=!!Z.rightToLeft,Y._props.push("scrambleText","text"),eY},render:function(J,Z){var{target:$,prop:K,text:W,delimiter:q,tween:H,prevScrambleTime:Y,revealDelay:B,setIndex:z,chars:L,charSet:j,length:F,textHasEmoji:R,charsHaveEmoji:D,lengthDif:M,tweenLength:A,oldClass:I,newClass:S,rightToLeft:h,fillChar:y,speed:v,original:w,hasClass:b}=Z,f=W.length,T=H._time,n=T-Y,l,Q0,c,p,i,Z0,a,J0,x,q0,e;if(B){if(H._from)T=H._dur-T;J=T===0?0:T1)J=1;if(h)J=1-J;if(l=~~(J*f+0.5),J){if(n>v||n<-v)Z.setIndex=z=(z+(Math.random()*19|0))%20,Z.chars=j.sets[z],Z.prevScrambleTime+=n;p=L}else p=w.join(q);if(e=H._from?J:1-J,q0=F+(A?H._from?e*e*e:1-e*e*e:1)*M,h)if(J===1&&(H._from||H.data==="isFromStart"))c="",p=w.join(q);else{if(a=W.slice(l).join(q),D)c=M8(p).slice(0,q0-(R?M8(a):a).length+0.5|0).join("");else c=p.substr(0,q0-(R?M8(a):a).length+0.5|0);p=a}else if(c=W.slice(0,l).join(q),Q0=(R?M8(c):c).length,D)p=M8(p).slice(Q0,q0+0.5|0).join("");else p=p.substr(Q0,q0-Q0+0.5|0);if(b)J0=h?I:S,x=h?S:I,i=J0&&l!==0,Z0=x&&l!==f,a=(i?"":"")+c+(i?"":"")+(Z0?"":"")+q+p+(Z0?"":"");else a=c+q+p;$[K]=y===" "&&~a.indexOf(" ")?a.split(" ").join("  "):a}};uZ.emojiSafeSplit=M8;uZ.getText=BQ;cH()&&K7.registerPlugin(uZ);/*! * paths 3.15.0 * https://gsap.com * * Copyright 2008-2026, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var ZB=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig;var $B=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig;var QB=Math.PI/180,GL=180/Math.PI,zQ=Math.sin,LQ=Math.cos,gZ=Math.abs,vZ=Math.sqrt;var KB=function(J){return typeof J==="number"};var pH=1e5;var kJ=function(J){return Math.round(J*pH)/pH||0};var lH=function(J){return J.closed=Math.abs(J[0]-J[J.length-2])<0.001&&Math.abs(J[1]-J[J.length-1])<0.001};function oH(Q,J,Z,$,K,W,q){var H=Q.length,Y,B,z,L,j;while(--H>-1){Y=Q[H],B=Y.length;for(z=0;z1)Z=vZ(h)*Z,$=vZ(h)*$;var y=Z*Z,v=$*$,w=(y*v-y*S-v*I)/(y*S+v*I);if(w<0)w=0;var b=(W===q?-1:1)*vZ(w),f=b*(Z*A/$),T=b*-($*M/Z),n=(Q+H)/2,l=(J+Y)/2,Q0=n+(z*f-L*T),c=l+(L*f+z*T),p=(M-f)/Z,i=(A-T)/$,Z0=(-M-f)/Z,a=(-A-T)/$,J0=p*p+i*i,x=(i<0?-1:1)*Math.acos(p/vZ(J0)),q0=(p*a-i*Z0<0?-1:1)*Math.acos((p*Z0+i*a)/vZ(J0*(Z0*Z0+a*a)));if(isNaN(q0)&&(q0=j),!q&&q0>0)q0-=F;else if(q&&q0<0)q0+=F;x%=F,q0%=F;var e=Math.ceil(gZ(q0)/(F/4)),U0=[],R0=q0/e,D0=1.3333333333333333*zQ(R0/2)/(1+LQ(R0/2)),L0=z*Z,T0=L*Z,P0=L*-$,_0=z*$,x0;for(x0=0;x0-0.0001?0:T}).match(ZB)||[],Z=[],$=0,K=0,W=0.6666666666666666,q=J.length,H=0,Y="ERROR: malformed path: "+Q,B,z,L,j,F,R,D,M,A,I,S,h,y,v,w,b=function(T,n,l,Q0){I=(l-T)/3,S=(Q0-n)/3,D.push(T+I,n+S,l-I,Q0-S,l,Q0)};if(!Q||!isNaN(J[0])||isNaN(J[1]))return console.log(Y),Z;for(B=0;B0.5||gZ(K-j)>0.5){if(b($,K,L,j),F==="L")B+=2}$=L,K=j}else if(F==="A"){if(v=J[B+4],w=J[B+5],I=J[B+6],S=J[B+7],z=7,v.length>1){if(v.length<3)S=I,I=w,z--;else S=w,I=v.substr(2),z-=2;w=v.charAt(1),v=v.charAt(0)}if(h=WB($,K,+J[B+1],+J[B+2],+J[B+3],+v,+w,(R?$:0)+I*1,(R?K:0)+S*1),B+=z,h)for(z=0;zB*(b*b+f*f))l=z.length,Q(J,Z,j,F,I,S,v,w,B,z,L),Q(v,w,h,y,M,A,H,Y,B,z,L+1+(z.length-l));return z},d8=function(){function Q(Z,$,K){rH||nH(),this.id=Z,HB&&this.setData($,K)}var J=Q.prototype;return J.setData=function($,K){K=K||{},$=$||"0,0,1,1";var W=$.match(GB),q=1,H=[],Y=[],B=K.precision||1,z=B<=1,L,j,F,R,D,M,A,I,S;if(this.data=$,UB.test($)||~$.indexOf("M")&&$.indexOf("C")<0)W=sH($)[0];if(L=W.length,L===4)W.unshift(0,0),W.push(1,1),L=8;else if((L-2)%6)throw"Invalid CustomEase";if(+W[0]!==0||+W[L-2]!==1)YB(W,K.height,K.originY);this.segment=W;for(R=2;RI.x||I.y!==A.y&&I.x===A.x||A===I)&&A.x<=1){if(I.cx=A.x-I.x,I.cy=A.y-I.y,I.n=A,I.nx=A.x,z&&R>1&&Math.abs(I.cy/I.cx-H[R-2].cy/H[R-2].cx)>2)z=0;if(I.cxA||j===M-1)z.push(I,S),L=(D-S)/(R-I);I=R,S=D}z="M"+z.join(",")}return B&&B.setAttribute("d",z),z},Q}();d8.version="3.15.0";d8.headless=!0;aH()&&o9.registerPlugin(d8);/*! * matrix 3.15.0 * https://gsap.com * * Copyright 2008-2026, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var WJ,W7,v6,RQ,dZ,NQ,FQ,mZ,E8="transform",u6=E8+"Origin",tH,DQ=function(J){var Z=J.ownerDocument||J;if(!(E8 in J.style)&&"msTransform"in J.style)E8="msTransform",u6=E8+"Origin";while(Z.parentNode&&(Z=Z.parentNode));if(W7=window,FQ=new AJ,Z){WJ=Z,v6=Z.documentElement,RQ=Z.body,mZ=WJ.createElementNS("http://www.w3.org/2000/svg","g"),mZ.style.transform="none";var $=Z.createElement("div"),K=Z.createElement("div"),W=Z&&(Z.body||Z.firstElementChild);if(W&&W.appendChild)W.appendChild($),$.appendChild(K),$.style.position="static",$.style.transform="translate3d(0,0,1px)",tH=K.offsetParent!==$,W.removeChild($)}return Z},jB=function(J){var Z,$;while(J&&J!==RQ){if($=J._gsap,$&&$.uncache&&$.get(J,"x"),$&&!$.scaleX&&!$.scaleY&&$.renderTransform)$.scaleX=$.scaleY=0.0001,$.renderTransform(1,$),Z?Z.push($):Z=[$];J=J.parentNode}return Z},eH=[],JG=[],CQ=function(){return W7.pageYOffset||WJ.scrollTop||v6.scrollTop||RQ.scrollTop||0},VQ=function(){return W7.pageXOffset||WJ.scrollLeft||v6.scrollLeft||RQ.scrollLeft||0},g6=function(J){return J.ownerSVGElement||((J.tagName+"").toLowerCase()==="svg"?J:null)},zB=function Q(J){if(W7.getComputedStyle(J).position==="fixed")return!0;if(J=J.parentNode,J&&J.nodeType===1)return Q(J)},y6=function Q(J,Z){if(J.parentNode&&(WJ||DQ(J))){var $=g6(J),K=$?$.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",W=$?Z?"rect":"g":"div",q=Z!==2?0:100,H=Z===3?100:0,Y={position:"absolute",display:"block",pointerEvents:"none",margin:"0",padding:"0"},B=WJ.createElementNS?WJ.createElementNS(K.replace(/^https/,"http"),W):WJ.createElement(W);if(Z)if(!$){if(!dZ)dZ=Q(J),Object.assign(dZ.style,Y);Object.assign(B.style,Y,{width:"0.1px",height:"0.1px",top:H+"px",left:q+"px"}),dZ.appendChild(B)}else NQ||(NQ=Q(J)),B.setAttribute("width",0.01),B.setAttribute("height",0.01),B.setAttribute("transform","translate("+q+","+H+")"),B.setAttribute("fill","transparent"),NQ.appendChild(B);return B}throw"Need document and parent."},LB=function(J){var Z=new AJ,$=0;for(;$1?LB(B):B.getItem(0).matrix,L=B.a*z.x+B.c*z.y,j=B.b*z.x+B.d*z.y;else B=new AJ,L=j=0;if(Z&&J.tagName.toLowerCase()==="g")L=j=0;(K||!J.getBoundingClientRect().width?$:q).appendChild(Y),Y.setAttribute("transform","matrix("+B.a+","+B.b+","+B.c+","+B.d+","+(B.e+L)+","+(B.f+j)+")")}else{if(L=j=0,tH){B=J.offsetParent,z=J;while(z&&(z=z.parentNode)&&z!==B&&z.parentNode)if((W7.getComputedStyle(z)[E8]+"").length>4)L=z.offsetLeft,j=z.offsetTop,z=0}if(F=W7.getComputedStyle(J),F.position!=="absolute"&&F.position!=="fixed"){B=J.offsetParent;while(q&&q!==B)L+=q.scrollLeft||0,j+=q.scrollTop||0,q=q.parentNode}z=Y.style,z.top=J.offsetTop-j+"px",z.left=J.offsetLeft-L+"px",z[E8]=F[E8],z[u6]=F[u6],z.position=F.position==="fixed"?"fixed":"absolute",H.appendChild(Y)}return Y},_6=function(J,Z,$,K,W,q,H){return J.a=Z,J.b=$,J.c=K,J.d=W,J.e=q,J.f=H,J},AJ=function(){function Q(Z,$,K,W,q,H){if(Z===void 0)Z=1;if($===void 0)$=0;if(K===void 0)K=0;if(W===void 0)W=1;if(q===void 0)q=0;if(H===void 0)H=0;_6(this,Z,$,K,W,q,H)}var J=Q.prototype;return J.inverse=function(){var $=this.a,K=this.b,W=this.c,q=this.d,H=this.e,Y=this.f,B=$*q-K*W||0.0000000001;return _6(this,q/B,-K/B,-W/B,$/B,(W*Y-q*H)/B,-($*Y-K*H)/B)},J.multiply=function($){var K=this.a,W=this.b,q=this.c,H=this.d,Y=this.e,B=this.f,z=$.a,L=$.c,j=$.b,F=$.d,R=$.e,D=$.f;return _6(this,z*K+j*q,z*W+j*H,L*K+F*q,L*W+F*H,Y+R*K+D*q,B+R*W+D*H)},J.clone=function(){return new Q(this.a,this.b,this.c,this.d,this.e,this.f)},J.equals=function($){var K=this.a,W=this.b,q=this.c,H=this.d,Y=this.e,B=this.f;return K===$.a&&W===$.b&&q===$.c&&H===$.d&&Y===$.e&&B===$.f},J.apply=function($,K){if(K===void 0)K={};var{x:W,y:q}=$,H=this.a,Y=this.b,B=this.c,z=this.d,L=this.e,j=this.f;return K.x=W*H+q*B+L||0,K.y=W*Y+q*z+j||0,K},Q}();function k8(Q,J,Z,$){if(!Q||!Q.parentNode||(WJ||DQ(Q)).documentElement===Q)return new AJ;var K=jB(Q),W=g6(Q),q=W?eH:JG,H=OB(Q,Z),Y=q[0].getBoundingClientRect(),B=q[1].getBoundingClientRect(),z=q[2].getBoundingClientRect(),L=H.parentNode,j=!$&&zB(Q),F=new AJ((B.left-Y.left)/100,(B.top-Y.top)/100,(z.left-Y.left)/100,(z.top-Y.top)/100,Y.left+(j?0:VQ()),Y.top+(j?0:CQ()));if(L.removeChild(H),K){Y=K.length;while(Y--)B=K[Y],B.scaleX=B.scaleY=0,B.renderTransform(1,B)}return J?F.inverse():F}/*! * Flip 3.15.0 * https://gsap.com * * @license Copyright 2008-2026, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var NB=1,m7,B9,T1,cZ,IJ,qJ,i6,ZG=function(J,Z){return J.actions.forEach(function($){return $.vars[Z]&&$.vars[Z]($)})},n6={},$G=180/Math.PI,FB=Math.PI/180,kQ={},QG={},PQ={},a6=function(J){return typeof J==="string"?J.split(" ").join("").split(","):J},RB=a6("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),TQ=a6("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),pZ=function(J){return m7(J)[0]||console.warn("Element not found:",J)},v7=function(J){return Math.round(J*1e4)/1e4||0},m6=function(J,Z,$){return J.forEach(function(K){return K.classList[$](Z)})},KG={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},XG={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},YG=function(J){return J.replace(/([A-Z])/g,"-$1").toLowerCase()},g7=function(J,Z){var $={},K;for(K in J)Z[K]||($[K]=J[K]);return $},t6={},BG=function(J){var Z=t6[J]=a6(J);return PQ[J]=Z.concat(TQ),Z},DB=function(J){var Z=J._gsap||B9.core.getCache(J);if(Z.gmCache===B9.ticker.frame)return Z.gMatrix;return Z.gmCache=B9.ticker.frame,Z.gMatrix=k8(J,!0,!1,!0)},CB=function Q(J,Z,$){if($===void 0)$=0;var K=J.parentNode,W=1000*Math.pow(10,$)*(Z?-1:1),q=Z?-W*900:0;while(J)q+=W,J=J.previousSibling;return K?q+Q(K,Z,$+1):q},AQ=function(J,Z,$){return J.forEach(function(K){return K.d=CB($?K.element:K.t,Z)}),J.sort(function(K,W){return K.d-W.d}),J},lZ=function(J,Z){var $=J.element.style,K=J.css=J.css||[],W=Z.length,q,H;while(W--)q=Z[W],H=$[q]||$.getPropertyValue(q),K.push(H?q:QG[q]||(QG[q]=YG(q)),H);return $},IQ=function(J){var Z=J.css,$=J.element.style,K=0;J.cache.uncache=1;for(;K0&&y)D0.style.opacity=J0?G0.opacity-C0.opacity:"0";d7(G0,C0,h,f),I&&L0.sd<0&&t0.push(D0.getAttribute("style"))}else if(C0.isVisible!==G0.isVisible){if(!C0.isVisible)G0.isVisible&&Q0.push(G0),p.splice(R0--,1);else if(!G0.isVisible)C0.css=G0.css,c.push(C0),p.splice(R0--,1),B&&I&&d7(G0,C0,h,f)}if(!h)D0.style.maxWidth=Math.max(G0.width,C0.width)+"px",D0.style.maxHeight=Math.max(G0.height,C0.height)+"px",D0.style.minWidth=Math.min(G0.width,C0.width)+"px",D0.style.minHeight=Math.min(G0.height,C0.height)+"px";I&&A&&D0.classList.add(A)}_0.push(G0)}var s0;if(A)s0=_0.map(function(B0){return B0.element}),I&&s0.forEach(function(B0){return B0.classList.remove(A)});if(GG(!1),h)T.scaleX=function(B0){return p[B0].a.scaleX},T.scaleY=function(B0){return p[B0].a.scaleY};else T.width=function(B0){return p[B0].a.width+"px"},T.height=function(B0){return p[B0].a.height+"px"},T.autoRound=$.autoRound||!1;if(T.x=function(B0){return p[B0].a.x+"px"},T.y=function(B0){return p[B0].a.y+"px"},T.rotation=function(B0){return p[B0].a.rotation+(w?a(B0,P0[B0],P0)*360:0)},T.skewX=function(B0){return p[B0].a.skewX},P0=p.map(function(B0){return B0.t}),S||S===0)T.modifiers={zIndex:function(){return S}},T.zIndex=S,T.immediateRender=$.immediateRender!==!1;if(y&&(T.opacity=function(B0){return p[B0].sd<0?0:p[B0].sd>0?p[B0].a.opacity:"+=0"}),i.length){v=B9.utils.distribute(v);var N1=P0.slice(i.length);T.stagger=function(B0,f0){return v(~i.indexOf(f0)?P0.indexOf(p[B0].swap.t):B0,f0,N1)}}if(RB.forEach(function(B0){return $[B0]&&n.eventCallback(B0,$[B0],$[B0+"Params"])}),L&&P0.length){if(l=g7(T,KG),"scale"in L)L.scaleX=L.scaleY=L.scale,delete L.scale;for(e in L)q0=g7(L[e],XG),q0[e]=T[e],!("duration"in q0)&&"duration"in T&&(q0.duration=T.duration),q0.stagger=T.stagger,x.call(n,P0,q0,0),delete l[e]}if(P0.length||c.length||Q0.length)A&&n.add(function(){return m6(s0,A,n._zTime<0?"remove":"add")},0)&&!F&&m6(s0,A,"add"),P0.length&&x.call(n,P0,l,0);HG(H,Q0,n),HG(Y,c,n);var i0=T1&&T1.timeline;if(i0)i0.add(n,0),T1._final.push(function(){return WG(p,!q)});U0=n.duration(),n.call(function(){var B0=n.time()>=U0;B0&&!i0&&WG(p,!q),A&&m6(s0,A,B0?"remove":"add")})},z&&(B=p.filter(function(o){return!o.sd&&!o.a.isVisible&&o.b.isVisible}).map(function(o){return o.a.element})),T1){var m0;B&&(m0=T1._abs).push.apply(m0,qG(p,B)),T1._run.push(X0)}else B&&jG(qG(p,B)),X0();var K1=T1?T1.timeline:n;return K1.revert=function(){return JW(K1,1,1)},K1},kB=function Q(J){J.vars.onInterrupt&&J.vars.onInterrupt.apply(J,J.vars.onInterruptParams||[]),J.getChildren(!0,!1,!0).forEach(Q)},JW=function(J,Z,$){if(J&&J.progress()<1&&(!J.paused()||$)){if(Z)kB(J),Z<2&&J.progress(1),J.kill();return!0}},EQ=function(J){var Z=J.idLookup={},$=J.alt={},K=J.elementStates,W=K.length,q;while(W--)q=K[W],Z[q.id]?$[q.id]=q:Z[q.id]=q},A8=function(){function Q(Z,$,K){if(this.props=$&&$.props,this.simple=!!($&&$.simple),K)this.targets=LG(Z),this.elementStates=Z,EQ(this);else{this.targets=m7(Z);var W=$&&($.kill===!1||$.batch&&!$.kill);T1&&!W&&T1._kill.push(this),this.update(W||!!T1)}}var J=Q.prototype;return J.update=function($){var K=this;return this.elementStates=this.targets.map(function(W){return new q7(W,K.props,K.simple)}),EQ(this),this.interrupt($),this.recordInlineStyles(),this},J.clear=function(){return this.targets.length=this.elementStates.length=0,EQ(this),this},J.fit=function($,K,W){var q=AQ(this.elementStates.slice(0),!1,!0),H=($||this).idLookup,Y=0,B,z;for(;Y=0&&this.actions.splice(K,1),this},J.getState=function($){var K=this,W=T1,q=cZ;return T1=this,this.state.clear(),this._kill.length=0,this.actions.forEach(function(H){if(H.vars.getState)H.states.length=0,cZ=H,H.state=H.vars.getState(H);$&&H.states.forEach(function(Y){return K.state.add(Y)})}),cZ=q,T1=W,this.killConflicts(),this},J.animate=function(){var $=this,K=T1,W=this.timeline,q=this.actions.length,H,Y;T1=this,W.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(function(B){B.vars.animate&&B.vars.animate(B);var z=B.vars.onEnter,L=B.vars.onLeave,j=B.targets,F,R;if(j&&j.length&&(z||L))F=new A8,B.states.forEach(function(D){return F.add(D)}),R=F.compare(oZ.getState(j)),R.enter.length&&z&&z(R.enter),R.leave.length&&L&&L(R.leave)}),jG(this._abs),this._run.forEach(function(B){return B()}),Y=W.duration(),H=this._final.slice(0),W.add(function(){if(Y<=W.time())H.forEach(function(B){return B()}),ZG($,"onComplete")}),T1=K;while(q--)this.actions[q].vars.once&&this.actions[q].kill();return ZG(this,"onStart"),W.restart(),this},J.loadState=function($){$||($=function(){return 0});var K=[];return this.actions.forEach(function(W){if(W.vars.loadState){var q,H=function Y(B){if(B&&(W.targets=B),q=K.indexOf(Y),~q)K.splice(q,1),K.length||$()};K.push(H),W.vars.loadState(H)}}),K.length||$(),this},J.setState=function(){return this.actions.forEach(function($){return $.targets=$.vars.setState&&$.vars.setState($)}),this},J.killConflicts=function($){return this.state.interrupt($),this._kill.forEach(function(K){return K.interrupt($)}),this},J.run=function($,K){var W=this;if(this!==T1)$||this.getState(K),this.loadState(function(){if(!W._killed)W.setState(),W.animate()});return this},J.clear=function($){this.state.clear(),$||(this.actions.length=0)},J.getStateById=function($){var K=this.actions.length,W;while(K--)if(W=this.actions[K].getStateById($),W)return W;return this.state.idLookup[$]&&this.state},J.kill=function(){this._killed=1,this.clear(),delete n6[this.id]},Q}(),oZ=function(){function Q(){}return Q.getState=function(Z,$){var K=p6(Z,$);return cZ&&cZ.states.push(K),$&&$.batch&&Q.batch($.batch).state.add(K),K},Q.from=function(Z,$){return $=$||{},"clearProps"in $||($.clearProps=!0),s6(Z,p6($.targets||Z.targets,{props:$.props||Z.props,simple:$.simple,kill:!!$.kill}),$,-1)},Q.to=function(Z,$){return s6(Z,p6($.targets||Z.targets,{props:$.props||Z.props,simple:$.simple,kill:!!$.kill}),$,1)},Q.fromTo=function(Z,$,K){return s6(Z,$,K)},Q.fit=function(Z,$,K){var W=K?g7(K,XG):{},q=K||W,H=q.absolute,Y=q.scale,B=q.getVars,z=q.props,L=q.runBackwards,j=q.onComplete,F=q.simple,R=K&&K.fitChild&&pZ(K.fitChild),D=r6($,z,F,Z),M=r6(Z,0,F,D),A=z?PQ[z]:TQ,I=B9.context();if(z&&zG(W,D.props),lZ(M,A),L)"immediateRender"in W||(W.immediateRender=!0),W.onComplete=function(){IQ(M),j&&j.apply(this,arguments)};return H&&e6(M,D),W=d7(M,D,Y||R,!W.duration&&z,R,W.duration||B?W:0),typeof K==="object"&&"zIndex"in K&&(W.zIndex=K.zIndex),I&&!B&&I.add(function(){return function(){return IQ(M)}}),B?W:W.duration?B9.to(M.element,W):null},Q.makeAbsolute=function(Z,$){return(Z instanceof A8?Z:new A8(Z,$)).makeAbsolute()},Q.batch=function(Z){return Z||(Z="default"),n6[Z]||(n6[Z]=new IB(Z))},Q.killFlipsOf=function(Z,$){(Z instanceof A8?Z.targets:m7(Z)).forEach(function(K){return K&&JW(K._flip,$!==!1?1:2)})},Q.isFlipping=function(Z){var $=Q.getByTarget(Z);return!!$&&$.isActive()},Q.getByTarget=function(Z){return(pZ(Z)||kQ)._flip},Q.getElementState=function(Z,$){return new q7(pZ(Z),$)},Q.convertCoordinates=function(Z,$,K){var W=k8($,!0,!0).multiply(k8(Z));return K?W.apply(K):W},Q.register=function(Z){if(IJ=typeof document<"u"&&document.body,IJ){B9=Z,DQ(IJ),m7=B9.utils.toArray,i6=B9.core.getStyleSaver;var $=B9.utils.snap(0.1);qJ=function(W,q){return $(parseFloat(W)+q)}}},Q}();oZ.version="3.15.0";typeof window<"u"&&window.gsap&&window.gsap.registerPlugin(oZ);var s9=()=>{return window.matchMedia("(prefers-reduced-motion: reduce)").matches};D8.registerPlugin(o0,EJ,uZ,d8,oZ);var SQ={ease:"custom.ease",easeCustom:"custom.easeCustom",easeBounceSmooth:"custom.easeBounceSmooth",easeBounceSoft:"custom.easeBounceSoft"};d8.create(SQ.ease,"M0,0 C0.645,0 0,1 1,1");d8.create(SQ.easeCustom,"M0,0 C0.215,0.61 0.355,1 1,1");d8.create(SQ.easeBounceSmooth,"M0,0 C0.5,1.8 0.62,1 1,1");d8.create(SQ.easeBounceSoft,"M0,0 C0.4,1.65 0.3,1 1,1");var PB={ease:"expo.out",duration:0.25};D8.defaults(PB);var ZW=s9();var NG={to:(Q,J)=>{if(ZW)return D8.set(Q,J),Promise.resolve();return D8.to(Q,J)},from:(Q,J)=>{if(ZW)return D8.set(Q,J),Promise.resolve();return D8.from(Q,J)},fromTo:(Q,J,Z)=>{if(ZW)return D8.set(Q,Z),Promise.resolve();return D8.fromTo(Q,J,Z)}},G9=D8;function $W(){let Q=document.body.firstElementChild;return Q instanceof HTMLElement&&Q.classList.contains("w-editor-publish-node")}function TB(Q){let J=$W(),Z=new MutationObserver(($)=>{$.forEach((K)=>{if(K.type!=="childList")return;let W=$W();if(W===J)return;J=W,Q(W)})});return Z.observe(document.body,{childList:!0,subtree:!1}),Q(J),()=>Z.disconnect()}function l1(Q=null){let J=$W();if(Q)TB(Q);return J}var I8=[],PJ=0,wQ=4,SB=globalThis.nanostoresGlobal||={epoch:0},FG=(Q)=>{let J=[],Z={get(){if(!Z.lc)Z.listen(()=>{})();return Z.value},init:Q,lc:0,listen($){return Z.lc=J.push($),()=>{for(let W=PJ+wQ;W{let J=FG(Q);return J.setKey=function(Z,$){let K=J.value;if(typeof $>"u"&&Z in J.value)J.value={...J.value},delete J.value[Z],J.notify(K,Z);else if(J.value[Z]!==$)J.value={...J.value,[Z]:$},J.notify(K,Z)},J};class RG{#J=null;#$=!1;#Z=QW({width:typeof window<"u"?window.innerWidth:0,height:typeof window<"u"?window.innerHeight:0,breakpoint:null,variant:"desktop"});#Q={sm:479,md:768,lg:992};init(){if(typeof window>"u")return;if(this.#$)return;this.#$=!0,this.#q({emitViewportEvent:!1}),this.#K(),this.#H()}#K(){this.#J=new ResizeObserver(()=>{this.#G()}),this.#J.observe(document.documentElement)}#G(){this.#q(),this.#H()}#W(Q){let J="xs";if(Q>=this.#Q.lg)J="lg";else if(Q>=this.#Q.md)J="md";else if(Q>=this.#Q.sm)J="sm";else J="xs";return J}#U(Q){return!window.matchMedia("(any-pointer: coarse)").matches&&Q>=this.#Q.md?"desktop":"mobile"}#q({emitViewportEvent:Q=!0}={}){let{innerWidth:J,innerHeight:Z}=window,$=this.#W(J),K=this.#U(J),W=this.#Z.get(),q=J!==W.width||Z!==W.height||K!==W.variant,H=$!==W.breakpoint;if(q||H)this.#Z.set({...W,width:J,height:Z,breakpoint:$,variant:K});if(H)window.dispatchEvent(new CustomEvent("breakpoint:change",{detail:{from:W.breakpoint,to:$}}));if(Q&&(q||H))window.dispatchEvent(new CustomEvent("viewport:change",{detail:this.#Z.get()}))}#H(){let Q=window.innerWidth*0.01,J=window.innerHeight*0.01;document.documentElement.style.setProperty("--vw",`${Q}px`),document.documentElement.style.setProperty("--vh",`${J}px`)}get store(){return this.#Z}get state(){return this.#Z.get()}get width(){return this.#Z.get().width}get height(){return this.#Z.get().height}get breakpoint(){return this.#Z.get().breakpoint}get variant(){return this.#Z.get().variant}is(Q){return this.#Z.get().breakpoint===Q}isAtLeast(Q){let J=["xs","sm","md","lg"],Z=J.indexOf(this.breakpoint),$=J.indexOf(Q);return Z>=$}get isMobile(){return this.#Z.get().variant==="mobile"}get isDesktop(){return this.#Z.get().variant==="desktop"}destroy(){this.#J?.disconnect(),this.#J=null,this.#$=!1}}var d0=new RG;class DG{#J=null;#$=[];#Z=null;#Q=0;#K=0;#G=null;#W=!1;#U=!1;#q=!1;#H=!0;#Y=!0;#X={breakpoint:null,variant:"desktop"};#B=!1;constructor(){if(typeof window>"u")return;if(document.readyState==="complete"){this.#O();return}if(this.#B)return;this.#B=!0,window.addEventListener("load",()=>{this.#O()},{once:!0})}#D(){if(typeof window>"u")return;if(window.location.hash)return;if("scrollRestoration"in history)history.scrollRestoration="manual";window.scrollTo(0,0),document.documentElement.scrollTop=0,document.body.scrollTop=0}async#O(){if(this.#J){console.warn("Scroll already initialized");return}this.#B=!1,this.#D(),this.#j(document);let{default:Q}=await import("./chunk-p3rky5ea.js");if(this.#J)return;if(this.#J=new Q({lenisOptions:{lerp:0.1,smoothWheel:!0,touchMultiplier:2},initCustomTicker:(J)=>{G9.ticker.add(J)},destroyCustomTicker:(J)=>{G9.ticker.remove(J)},scrollCallback:(J)=>this.#M(J)}),G9.ticker.lagSmoothing(0),this.#Y)this.#J.start();else this.#J.stop();this.#C()}#C(){this.#Z=d0.store.subscribe(()=>{let Q=d0.breakpoint,J=d0.variant;if(Q===this.#X.breakpoint&&J===this.#X.variant)return;this.#X.breakpoint=Q,this.#X.variant=J,this.#j(document),this.#J?.resize?.()})}#j(Q=document){let J=d0.breakpoint,Z=d0.variant;this.#X.breakpoint=J,this.#X.variant=Z;let $=["[data-scroll-speed-mobile]","[data-scroll-speed-desktop]","[data-scroll-speed-xs]","[data-scroll-speed-sm]","[data-scroll-speed-md]","[data-scroll-speed-lg]"].join(",");Q.querySelectorAll($).forEach((K)=>{let W=this.#V(K,{breakpoint:J,variant:Z});if(W==null)return;K.setAttribute("data-scroll-speed",String(W))})}#V(Q,{breakpoint:J,variant:Z}){if(J){let W=Q.getAttribute(`data-scroll-speed-${J}`);if(W!=null&&W!=="")return W}let $=Q.getAttribute(`data-scroll-speed-${Z}`);if($!=null&&$!=="")return $;let K=Q.getAttribute("data-scroll-speed");if(K!=null&&K!=="")return K;return null}#M(Q){let{scroll:J,limit:Z,velocity:$,direction:K,progress:W}=Q,q=document.documentElement;if(typeof J==="number"){let H=J<10,Y=J<80;if(q.classList.toggle("is-scroll-top",Y),typeof W==="number"){if(W>this.#Q)this.#K=1,this.#H=!1,q.classList.remove("is-scrolling-up"),q.classList.add("is-scrolling-down");else if(W{this.#L(!0)};#F=()=>{this.#k()};#R=()=>{this.#A()};#L(Q=!0){let J=this.#z();if(!J)return;let Z=Q!==!1;if(this.#U===Z||this.#q)return;J.setAttribute("aria-hidden",String(!Z)),J.classList.toggle("is-sticky",Z),this.#U=Z}#k(){this.#L(!0),this.#q=!0}#A(){this.#q=!1}get scroll(){return this.#J?.lenisInstance?.scroll??0}get limit(){return this.#J?.lenisInstance?.limit??0}get velocity(){return this.#J?.lenisInstance?.velocity??0}get progress(){return this.#J?.lenisInstance?.progress??0}toTop(){if(!this.#J)return;this.#J.scrollTo(0,{immediate:!0})}scrollTo(Q,J){if(!this.#J)return;this.#J.scrollTo(Q,J)}start(){if(this.#Y=!0,!this.#J)return;this.#J.start()}stop(){if(this.#Y=!1,!this.#J)return;this.#J.stop()}resize(){if(!this.#J)return;this.#J.resize()}destroy(){if(!this.#J)return;this.#Z?.(),this.#Z=null;let Q=this.#z();if(Q&&this.#W)Q.removeEventListener("mousemove",this.#N),Q.removeEventListener("mouseenter",this.#F),Q.removeEventListener("mouseleave",this.#R),this.#W=!1;this.#J.destroy(),this.#J=null}addElements(Q){if(!this.#J)return;this.#j(Q),this.#J.addScrollElements(Q)}removeElements(Q){if(!this.#J)return;this.#J.removeScrollElements(Q)}add(Q,J=0,Z=Symbol()){let $=this.#$.findIndex((K)=>K.priority>J);if($===-1)this.#$.push({fn:Q,priority:J,id:Z});else this.#$.splice($,0,{fn:Q,priority:J,id:Z});return()=>this.remove(Z)}remove(Q){this.#$=this.#$.filter((J)=>J.id!==Q)}notify(Q){if(this.#$.length<1)return;this.#$.forEach((J)=>J.fn(Q))}}var o1=new DG;l1((Q)=>{if(Q)o1.destroy();else o1.start()});var wB=[],KW=[];function x1(Q){KW.push(Q)}function X1(Q){wB.push(Q)}function CG(){KW.forEach((Q)=>Q()),KW.length=0}function VG(Q,{root:J,rootMargin:Z,threshold:$,autoStart:K,once:W,callback:q,offset:H}){let Y=(()=>{if(Z)return Z;if(H===void 0||H===null||H==="")return;if(typeof H==="number"&&Number.isFinite(H))return`0px 0px -${Math.abs(H)}px 0px`;let z=String(H).trim();if(!z)return;if(z.includes(" "))return z;if(/^-?\d*\.?\d+$/.test(z))return`0px 0px -${Math.abs(Number(z))}px 0px`;return`0px 0px ${z.startsWith("-")?z:`-${z}`} 0px`})(),B=new iZ(Q,{root:J,rootMargin:Y,threshold:$,autoStart:K,once:W,callback:q});return X1(()=>{B.destroy()}),B}function bQ(Q,J={}){let Z=new WW(Q,J);return X1(()=>{Z.destroy()}),Z}var LW={};j9(LW,{default:()=>bG});function GW(Q){return typeof Q==="number"}function qW(Q){return typeof Q==="string"}function xQ(Q){return typeof Q==="boolean"}function MG(Q){return Object.prototype.toString.call(Q)==="[object Object]"}function v1(Q){return Math.abs(Q)}function UW(Q){return Math.sign(Q)}function rZ(Q,J){return v1(Q-J)}function bB(Q,J){if(Q===0||J===0)return 0;if(v1(Q)<=v1(J))return 0;let Z=rZ(v1(Q),v1(J));return v1(Z/Q)}function xB(Q){return Math.round(Q*100)/100}function aZ(Q){return tZ(Q).map(Number)}function P8(Q){return Q[J$(Q)]}function J$(Q){return Math.max(0,Q.length-1)}function XW(Q,J){return J===J$(Q)}function EG(Q,J=0){return Array.from(Array(Q),(Z,$)=>J+$)}function tZ(Q){return Object.keys(Q)}function kG(Q,J){return[Q,J].reduce((Z,$)=>{return tZ($).forEach((K)=>{let W=Z[K],q=$[K],H=MG(W)&&MG(q);Z[K]=H?kG(W,q):q}),Z},{})}function HW(Q,J){return typeof J.MouseEvent<"u"&&Q instanceof J.MouseEvent}function hB(Q,J){let Z={start:$,center:K,end:W};function $(){return 0}function K(Y){return W(Y)/2}function W(Y){return J-Y}function q(Y,B){if(qW(Q))return Z[Q](Y);return Q(J,Y,B)}return{measure:q}}function eZ(){let Q=[];function J(K,W,q,H={passive:!0}){let Y;if("addEventListener"in K)K.addEventListener(W,q,H),Y=()=>K.removeEventListener(W,q,H);else{let B=K;B.addListener(q),Y=()=>B.removeListener(q)}return Q.push(Y),$}function Z(){Q=Q.filter((K)=>K())}let $={add:J,clear:Z};return $}function fB(Q,J,Z,$){let K=eZ(),W=16.666666666666668,q=null,H=0,Y=0;function B(){K.add(Q,"visibilitychange",()=>{if(Q.hidden)R()})}function z(){F(),K.clear()}function L(M){if(!Y)return;if(!q)q=M,Z(),Z();let A=M-q;q=M,H+=A;while(H>=16.666666666666668)Z(),H-=16.666666666666668;let I=H/16.666666666666668;if($(I),Y)Y=J.requestAnimationFrame(L)}function j(){if(Y)return;Y=J.requestAnimationFrame(L)}function F(){J.cancelAnimationFrame(Y),q=null,H=0,Y=0}function R(){q=null,H=0}return{init:B,destroy:z,start:j,stop:F,update:Z,render:$}}function yB(Q,J){let Z=J==="rtl",$=Q==="y",K=$?"y":"x",W=$?"x":"y",q=!$&&Z?-1:1,H=z(),Y=L();function B(R){let{height:D,width:M}=R;return $?D:M}function z(){if($)return"top";return Z?"right":"left"}function L(){if($)return"bottom";return Z?"left":"right"}function j(R){return R*q}return{scroll:K,cross:W,startEdge:H,endEdge:Y,measureSize:B,direction:j}}function H7(Q=0,J=0){let Z=v1(Q-J);function $(B){return BJ}function W(B){return $(B)||K(B)}function q(B){if(!W(B))return B;return $(B)?Q:J}function H(B){if(!Z)return B;return B-Z*Math.ceil((B-J)/Z)}return{length:Z,max:J,min:Q,constrain:q,reachedAny:W,reachedMax:K,reachedMin:$,removeOffset:H}}function AG(Q,J,Z){let{constrain:$}=H7(0,Q),K=Q+1,W=q(J);function q(j){return!Z?$(j):v1((K+j)%K)}function H(){return W}function Y(j){return W=q(j),L}function B(j){return z().set(H()+j)}function z(){return AG(Q,H(),Z)}let L={get:H,set:Y,add:B,clone:z};return L}function _B(Q,J,Z,$,K,W,q,H,Y,B,z,L,j,F,R,D,M,A,I){let{cross:S,direction:h}=Q,y=["INPUT","SELECT","TEXTAREA"],v={passive:!1},w=eZ(),b=eZ(),f=H7(50,225).constrain(F.measure(20)),T={mouse:300,touch:400},n={mouse:500,touch:600},l=R?43:25,Q0=!1,c=0,p=0,i=!1,Z0=!1,a=!1,J0=!1;function x(X0){if(!I)return;function G0(m0){if(xQ(I)||I(X0,m0))L0(m0)}let C0=J;w.add(C0,"dragstart",(m0)=>m0.preventDefault(),v).add(C0,"touchmove",()=>{return},v).add(C0,"touchend",()=>{return}).add(C0,"touchstart",G0).add(C0,"mousedown",G0).add(C0,"touchcancel",P0).add(C0,"contextmenu",P0).add(C0,"click",_0,!0)}function q0(){w.clear(),b.clear()}function e(){let X0=J0?Z:J;b.add(X0,"touchmove",T0,v).add(X0,"touchend",P0).add(X0,"mousemove",T0,v).add(X0,"mouseup",P0)}function U0(X0){let G0=X0.nodeName||"";return y.includes(G0)}function R0(){return(R?n:T)[J0?"mouse":"touch"]}function D0(X0,G0){let C0=L.add(UW(X0)*-1),m0=z.byDistance(X0,!R).distance;if(R||v1(X0)=2,G0&&X0.button!==0)return;if(U0(X0.target))return;i=!0,W.pointerDown(X0),B.useFriction(0).useDuration(0),K.set(q),e(),c=W.readPoint(X0),p=W.readPoint(X0,S),j.emit("pointerDown")}function T0(X0){if(!HW(X0,$)&&X0.touches.length>=2)return P0(X0);let C0=W.readPoint(X0),m0=W.readPoint(X0,S),K1=rZ(C0,c),o=rZ(m0,p);if(!Z0&&!J0){if(!X0.cancelable)return P0(X0);if(Z0=K1>o,!Z0)return P0(X0)}let t0=W.pointerMove(X0);if(K1>D)a=!0;B.useFriction(0.3).useDuration(0.75),H.start(),K.add(h(t0)),X0.preventDefault()}function P0(X0){let C0=z.byDistance(0,!1).index!==L.get(),m0=W.pointerUp(X0)*R0(),K1=D0(h(m0),C0),o=bB(m0,K1),t0=l-10*o,s0=A+o/50;Z0=!1,i=!1,b.clear(),B.useDuration(t0).useFriction(s0),Y.distance(K1,!R),J0=!1,j.emit("pointerUp")}function _0(X0){if(a)X0.stopPropagation(),X0.preventDefault(),a=!1}function x0(){return i}return{init:x,destroy:q0,pointerDown:x0}}function uB(Q,J){let $,K;function W(L){return L.timeStamp}function q(L,j){let R=`client${(j||Q.scroll)==="x"?"X":"Y"}`;return(HW(L,J)?L:L.touches[0])[R]}function H(L){return $=L,K=L,q(L)}function Y(L){let j=q(L)-q(K),F=W(L)-W($)>170;if(K=L,F)$=L;return j}function B(L){if(!$||!K)return 0;let j=q(K)-q($),F=W(L)-W($),R=W(L)-W(K)>170,D=j/F;return F&&!R&&v1(D)>0.1?D:0}return{pointerDown:H,pointerMove:Y,pointerUp:B,readPoint:q}}function vB(){function Q(Z){let{offsetTop:$,offsetLeft:K,offsetWidth:W,offsetHeight:q}=Z;return{top:$,right:K+W,bottom:$+q,left:K,width:W,height:q}}return{measure:Q}}function gB(Q){function J($){return Q*($/100)}return{measure:J}}function dB(Q,J,Z,$,K,W,q){let H=[Q].concat($),Y,B,z=[],L=!1;function j(M){return K.measureSize(q.measure(M))}function F(M){if(!W)return;B=j(Q),z=$.map(j);function A(I){for(let S of I){if(L)return;let h=S.target===Q,y=$.indexOf(S.target),v=h?B:z[y],w=j(h?Q:$[y]);if(v1(w-v)>=0.5){M.reInit(),J.emit("resize");break}}}Y=new ResizeObserver((I)=>{if(xQ(W)||W(M,I))A(I)}),Z.requestAnimationFrame(()=>{H.forEach((I)=>Y.observe(I))})}function R(){if(L=!0,Y)Y.disconnect()}return{init:F,destroy:R}}function mB(Q,J,Z,$,K,W){let q=0,H=0,Y=K,B=W,z=Q.get(),L=0;function j(){let v=$.get()-Q.get(),w=!Y,b=0;if(w)q=0,Z.set($),Q.set($),b=v;else Z.set(Q),q+=v/Y,q*=B,z+=q,Q.add(q),b=z-L;return H=UW(b),L=z,y}function F(){let v=$.get()-J.get();return v1(v)<0.001}function R(){return Y}function D(){return H}function M(){return q}function A(){return S(K)}function I(){return h(W)}function S(v){return Y=v,y}function h(v){return B=v,y}let y={direction:D,duration:R,velocity:M,seek:j,settled:F,useBaseFriction:I,useBaseDuration:A,useFriction:h,useDuration:S};return y}function cB(Q,J,Z,$,K){let W=K.measure(10),q=K.measure(50),H=H7(0.1,0.99),Y=!1;function B(){if(Y)return!1;if(!Q.reachedAny(Z.get()))return!1;if(!Q.reachedAny(J.get()))return!1;return!0}function z(F){if(!B())return;let R=Q.reachedMin(J.get())?"min":"max",D=v1(Q[R]-J.get()),M=Z.get()-J.get(),A=H.constrain(D/q);if(Z.subtract(M*A),!F&&v1(M){let{min:M,max:A}=W,I=W.constrain(R),S=!D,h=XW(Z,D);if(S)return A;if(h)return M;if(B(M,I))return M;if(B(A,I))return A;return I}).map((R)=>parseFloat(R.toFixed(3)))}function j(){if(J<=Q+K)return[W.max];if($==="keepSnaps")return q;let{min:R,max:D}=H;return q.slice(R,D)}return{snapsContained:Y,scrollContainLimit:H}}function lB(Q,J,Z){let $=J[0],K=Z?$-Q:P8(J);return{limit:H7(K,$)}}function oB(Q,J,Z,$){let W=J.min+0.1,q=J.max+0.1,{reachedMin:H,reachedMax:Y}=H7(W,q);function B(j){if(j===1)return Y(Z.get());if(j===-1)return H(Z.get());return!1}function z(j){if(!B(j))return;let F=Q*(j*-1);$.forEach((R)=>R.add(F))}return{loop:z}}function sB(Q){let{max:J,length:Z}=Q;function $(W){let q=W-J;return Z?q/-Z:0}return{get:$}}function iB(Q,J,Z,$,K){let{startEdge:W,endEdge:q}=Q,{groupSlides:H}=K,Y=L().map(J.measure),B=j(),z=F();function L(){return H($).map((D)=>P8(D)[q]-D[0][W]).map(v1)}function j(){return $.map((D)=>Z[W]-D[W]).map((D)=>-v1(D))}function F(){return H(B).map((D)=>D[0]).map((D,M)=>D+Y[M])}return{snaps:B,snapsAligned:z}}function nB(Q,J,Z,$,K,W){let{groupSlides:q}=K,{min:H,max:Y}=$,B=z();function z(){let j=q(W),F=!Q||J==="keepSnaps";if(Z.length===1)return[W];if(F)return j;return j.slice(H,Y).map((R,D,M)=>{let A=!D,I=XW(M,D);if(A){let S=P8(M[0])+1;return EG(S)}if(I){let S=J$(W)-P8(M)[0]+1;return EG(S,P8(M)[0])}return R})}return{slideRegistry:B}}function rB(Q,J,Z,$,K){let{reachedAny:W,removeOffset:q,constrain:H}=$;function Y(R){return R.concat().sort((D,M)=>v1(D)-v1(M))[0]}function B(R){let D=Q?q(R):H(R),M=J.map((I,S)=>({diff:z(I-D,0),index:S})).sort((I,S)=>v1(I.diff)-v1(S.diff)),{index:A}=M[0];return{index:A,distance:D}}function z(R,D){let M=[R,R+Z,R-Z];if(!Q)return R;if(!D)return Y(M);let A=M.filter((I)=>UW(I)===D);if(A.length)return Y(A);return P8(M)-Z}function L(R,D){let M=J[R]-K.get(),A=z(M,D);return{index:R,distance:A}}function j(R,D){let M=K.get()+R,{index:A,distance:I}=B(M),S=!Q&&W(M);if(!D||S)return{index:A,distance:R};let h=J[A]-I,y=R+z(h,0);return{index:A,distance:y}}return{byDistance:j,byIndex:L,shortcut:z}}function aB(Q,J,Z,$,K,W,q){function H(L){let j=L.distance,F=L.index!==J.get();if(W.add(j),j)if($.duration())Q.start();else Q.update(),Q.render(1),Q.update();if(F)Z.set(J.get()),J.set(L.index),q.emit("select")}function Y(L,j){let F=K.byDistance(L,j);H(F)}function B(L,j){let F=J.clone().set(L),R=K.byIndex(F.get(),j);H(R)}return{distance:Y,index:B}}function tB(Q,J,Z,$,K,W,q,H){let Y={passive:!0,capture:!0},B=0;function z(F){if(!H)return;function R(D){if(new Date().getTime()-B>10)return;q.emit("slideFocusStart"),Q.scrollLeft=0;let I=Z.findIndex((S)=>S.includes(D));if(!GW(I))return;K.useDuration(0),$.index(I,0),q.emit("slideFocus")}W.add(document,"keydown",L,!1),J.forEach((D,M)=>{W.add(D,"focus",(A)=>{if(xQ(H)||H(F,A))R(M)},Y)})}function L(F){if(F.code==="Tab")B=new Date().getTime()}return{init:z}}function nZ(Q){let J=Q;function Z(){return J}function $(Y){J=q(Y)}function K(Y){J+=q(Y)}function W(Y){J-=q(Y)}function q(Y){return GW(Y)?Y:Y.get()}return{get:Z,set:$,add:K,subtract:W}}function IG(Q,J){let Z=Q.scroll==="x"?q:H,$=J.style,K=null,W=!1;function q(j){return`translate3d(${j}px,0px,0px)`}function H(j){return`translate3d(0px,${j}px,0px)`}function Y(j){if(W)return;let F=xB(Q.direction(j));if(F===K)return;$.transform=Z(F),K=F}function B(j){W=!j}function z(){if(W)return;if($.transform="",!J.getAttribute("style"))J.removeAttribute("style")}return{clear:z,to:Y,toggleActive:B}}function eB(Q,J,Z,$,K,W,q,H,Y){let z=aZ(K),L=aZ(K).reverse(),j=A().concat(I());function F(w,b){return w.reduce((f,T)=>{return f-K[T]},b)}function R(w,b){return w.reduce((f,T)=>{return F(f,b)>0?f.concat([T]):f},[])}function D(w){return W.map((b,f)=>({start:b-$[f]+0.5+w,end:b+J-0.5+w}))}function M(w,b,f){let T=D(b);return w.map((n)=>{let l=f?0:-Z,Q0=f?Z:0,c=f?"end":"start",p=T[n][c];return{index:n,loopPoint:p,slideLocation:nZ(-1),translate:IG(Q,Y[n]),target:()=>H.get()>p?l:Q0}})}function A(){let w=q[0],b=R(L,w);return M(b,Z,!1)}function I(){let w=J-q[0]-1,b=R(z,w);return M(b,-Z,!0)}function S(){return j.every(({index:w})=>{let b=z.filter((f)=>f!==w);return F(b,J)<=0.1})}function h(){j.forEach((w)=>{let{target:b,translate:f,slideLocation:T}=w,n=b();if(n===T.get())return;f.to(n),T.set(n)})}function y(){j.forEach((w)=>w.translate.clear())}return{canLoop:S,clear:y,loop:h,loopPoints:j}}function Jj(Q,J,Z){let $,K=!1;function W(Y){if(!Z)return;function B(z){for(let L of z)if(L.type==="childList"){Y.reInit(),J.emit("slidesChanged");break}}$=new MutationObserver((z)=>{if(K)return;if(xQ(Z)||Z(Y,z))B(z)}),$.observe(Q,{childList:!0})}function q(){if($)$.disconnect();K=!0}return{init:W,destroy:q}}function Zj(Q,J,Z,$){let K={},W=null,q=null,H,Y=!1;function B(){H=new IntersectionObserver((R)=>{if(Y)return;R.forEach((D)=>{let M=J.indexOf(D.target);K[M]=D}),W=null,q=null,Z.emit("slidesInView")},{root:Q.parentElement,threshold:$}),J.forEach((R)=>H.observe(R))}function z(){if(H)H.disconnect();Y=!0}function L(R){return tZ(K).reduce((D,M)=>{let A=parseInt(M),{isIntersecting:I}=K[A];if(R&&I||!R&&!I)D.push(A);return D},[])}function j(R=!0){if(R&&W)return W;if(!R&&q)return q;let D=L(R);if(R)W=D;if(!R)q=D;return D}return{init:B,destroy:z,get:j}}function $j(Q,J,Z,$,K,W){let{measureSize:q,startEdge:H,endEdge:Y}=Q,B=Z[0]&&K,z=R(),L=D(),j=Z.map(q),F=M();function R(){if(!B)return 0;let I=Z[0];return v1(J[H]-I[H])}function D(){if(!B)return 0;let I=W.getComputedStyle(P8($));return parseFloat(I.getPropertyValue(`margin-${Y}`))}function M(){return Z.map((I,S,h)=>{let y=!S,v=XW(h,S);if(y)return j[S]+z;if(v)return j[S]+L;return h[S+1][H]-I[H]}).map(v1)}return{slideSizes:j,slideSizesWithGaps:F,startGap:z,endGap:L}}function Qj(Q,J,Z,$,K,W,q,H,Y){let{startEdge:B,endEdge:z,direction:L}=Q,j=GW(Z);function F(A,I){return aZ(A).filter((S)=>S%I===0).map((S)=>A.slice(S,S+I))}function R(A){if(!A.length)return[];return aZ(A).reduce((I,S,h)=>{let y=P8(I)||0,v=y===0,w=S===J$(A),b=K[B]-W[y][B],f=K[B]-W[S][z],T=!$&&v?L(q):0,n=!$&&w?L(H):0,l=v1(f-n-(b+T));if(h&&l>J+Y)I.push(S);if(w)I.push(A.length);return I},[]).map((I,S,h)=>{let y=Math.max(h[S-1]||0);return A.slice(y,I)})}function D(A){return j?F(A,Z):R(A)}return{groupSlides:D}}function Kj(Q,J,Z,$,K,W,q){let{align:H,axis:Y,direction:B,startIndex:z,loop:L,duration:j,dragFree:F,dragThreshold:R,inViewThreshold:D,slidesToScroll:M,skipSnaps:A,containScroll:I,watchResize:S,watchSlides:h,watchDrag:y,watchFocus:v}=W,w=2,b=vB(),f=b.measure(J),T=Z.map(b.measure),n=yB(Y,B),l=n.measureSize(f),Q0=gB(l),c=hB(H,l),p=!L&&!!I,i=L||!!I,{slideSizes:Z0,slideSizesWithGaps:a,startGap:J0,endGap:x}=$j(n,f,T,Z,i,K),q0=Qj(n,l,M,L,f,T,J0,x,2),{snaps:e,snapsAligned:U0}=iB(n,c,f,T,q0),R0=-P8(e)+P8(a),{snapsContained:D0,scrollContainLimit:L0}=pB(l,R0,U0,I,2),T0=p?D0:U0,{limit:P0}=lB(R0,T0,L),_0=AG(J$(T0),z,L),x0=_0.clone(),k0=aZ(Z),X0=({dragHandler:t,scrollBody:F0,scrollBounds:j0,options:{loop:z0}})=>{if(!z0)j0.constrain(t.pointerDown());F0.seek()},G0=({scrollBody:t,translate:F0,location:j0,offsetLocation:z0,previousLocation:I0,scrollLooper:c0,slideLooper:F1,dragHandler:H1,animation:L1,eventHandler:S0,scrollBounds:s1,options:{loop:k1}},R1)=>{let B1=t.settled(),g1=!s1.shouldConstrain(),N9=k1?B1:B1&&g1,b0=N9&&!H1.pointerDown();if(b0)L1.stop();let e0=j0.get()*R1+I0.get()*(1-R1);if(z0.set(e0),k1)c0.loop(t.direction()),F1.loop();if(F0.to(z0.get()),b0)S0.emit("settle");if(!N9)S0.emit("scroll")},C0=fB($,K,()=>X0(d),(t)=>G0(d,t)),m0=0.68,K1=T0[_0.get()],o=nZ(K1),t0=nZ(K1),s0=nZ(K1),N1=nZ(K1),i0=mB(o,s0,t0,N1,j,0.68),B0=rB(L,T0,R0,P0,N1),f0=aB(C0,_0,x0,i0,B0,N1,q),V=sB(P0),X=eZ(),N=Zj(J,Z,q,D),{slideRegistry:E}=nB(p,I,T0,L0,q0,k0),_=tB(Q,Z,E,f0,i0,X,q,v),d={ownerDocument:$,ownerWindow:K,eventHandler:q,containerRect:f,slideRects:T,animation:C0,axis:n,dragHandler:_B(n,Q,$,K,N1,uB(n,K),o,C0,f0,i0,B0,_0,q,Q0,F,R,A,0.68,y),eventStore:X,percentOfView:Q0,index:_0,indexPrevious:x0,limit:P0,location:o,offsetLocation:s0,previousLocation:t0,options:W,resizeHandler:dB(J,q,K,Z,n,S,b),scrollBody:i0,scrollBounds:cB(P0,s0,N1,i0,Q0),scrollLooper:oB(R0,P0,s0,[o,s0,t0,N1]),scrollProgress:V,scrollSnapList:T0.map(V.get),scrollSnaps:T0,scrollTarget:B0,scrollTo:f0,slideLooper:eB(n,l,R0,Z0,a,e,T0,s0,Z),slideFocus:_,slidesHandler:Jj(J,q,h),slidesInView:N,slideIndexes:k0,slideRegistry:E,slidesToScroll:q0,target:N1,translate:IG(n,J)};return d}function Wj(){let Q={},J;function Z(B){J=B}function $(B){return Q[B]||[]}function K(B){return $(B).forEach((z)=>z(J,B)),Y}function W(B,z){return Q[B]=$(B).concat([z]),Y}function q(B,z){return Q[B]=$(B).filter((L)=>L!==z),Y}function H(){Q={}}let Y={init:Z,emit:K,off:q,on:W,clear:H};return Y}var qj={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Hj(Q){function J(W,q){return kG(W,q||{})}function Z(W){let q=W.breakpoints||{},H=tZ(q).filter((Y)=>Q.matchMedia(Y).matches).map((Y)=>q[Y]).reduce((Y,B)=>J(Y,B),{});return J(W,H)}function $(W){return W.map((q)=>tZ(q.breakpoints||{})).reduce((q,H)=>q.concat(H),[]).map(Q.matchMedia)}return{mergeOptions:J,optionsAtMedia:Z,optionsMediaQueries:$}}function Gj(Q){let J=[];function Z(W,q){return J=q.filter(({options:H})=>Q.optionsAtMedia(H).active!==!1),J.forEach((H)=>H.init(W,Q)),q.reduce((H,Y)=>Object.assign(H,{[Y.name]:Y}),{})}function $(){J=J.filter((W)=>W.destroy())}return{init:Z,destroy:$}}function hQ(Q,J,Z){let $=Q.ownerDocument,K=$.defaultView,W=Hj(K),q=Gj(W),H=eZ(),Y=Wj(),{mergeOptions:B,optionsAtMedia:z,optionsMediaQueries:L}=W,{on:j,off:F,emit:R}=Y,D=n,M=!1,A,I=B(qj,hQ.globalOptions),S=B(I),h=[],y,v,w;function b(){let{container:k0,slides:X0}=S;v=(qW(k0)?Q.querySelector(k0):k0)||Q.children[0];let C0=qW(X0)?v.querySelectorAll(X0):X0;w=[].slice.call(C0||v.children)}function f(k0){let X0=Kj(Q,v,w,$,K,k0,Y);if(k0.loop&&!X0.slideLooper.canLoop()){let G0=Object.assign({},k0,{loop:!1});return f(G0)}return X0}function T(k0,X0){if(M)return;if(I=B(I,k0),S=z(I),h=X0||h,b(),A=f(S),L([I,...h.map(({options:G0})=>G0)]).forEach((G0)=>H.add(G0,"change",n)),!S.active)return;if(A.translate.to(A.location.get()),A.animation.init(),A.slidesInView.init(),A.slideFocus.init(x0),A.eventHandler.init(x0),A.resizeHandler.init(x0),A.slidesHandler.init(x0),A.options.loop)A.slideLooper.loop();if(v.offsetParent&&w.length)A.dragHandler.init(x0);y=q.init(x0,h)}function n(k0,X0){let G0=q0();l(),T(B({startIndex:G0},k0),X0),Y.emit("reInit")}function l(){A.dragHandler.destroy(),A.eventStore.clear(),A.translate.clear(),A.slideLooper.clear(),A.resizeHandler.destroy(),A.slidesHandler.destroy(),A.slidesInView.destroy(),A.animation.destroy(),q.destroy(),H.clear()}function Q0(){if(M)return;M=!0,H.clear(),l(),Y.emit("destroy"),Y.clear()}function c(k0,X0,G0){if(!S.active||M)return;A.scrollBody.useBaseFriction().useDuration(X0===!0?0:S.duration),A.scrollTo.index(k0,G0||0)}function p(k0){let X0=A.index.add(1).get();c(X0,k0,-1)}function i(k0){let X0=A.index.add(-1).get();c(X0,k0,1)}function Z0(){return A.index.add(1).get()!==q0()}function a(){return A.index.add(-1).get()!==q0()}function J0(){return A.scrollSnapList}function x(){return A.scrollProgress.get(A.offsetLocation.get())}function q0(){return A.index.get()}function e(){return A.indexPrevious.get()}function U0(){return A.slidesInView.get()}function R0(){return A.slidesInView.get(!1)}function D0(){return y}function L0(){return A}function T0(){return Q}function P0(){return v}function _0(){return w}let x0={canScrollNext:Z0,canScrollPrev:a,containerNode:P0,internalEngine:L0,destroy:Q0,off:F,on:j,emit:R,plugins:D0,previousScrollSnap:e,reInit:D,rootNode:T0,scrollNext:p,scrollPrev:i,scrollProgress:x,scrollSnapList:J0,scrollTo:c,selectedScrollSnap:q0,slideNodes:_0,slidesInView:U0,slidesNotInView:R0};return T(J,Z),setTimeout(()=>Y.emit("init"),0),x0}hQ.globalOptions=void 0;var Uj={active:!0,breakpoints:{},delay:4000,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function Xj(Q,J){let Z=Q.scrollSnapList();if(typeof J==="number")return Z.map(()=>J);return J(Z,Q)}function Yj(Q,J){let Z=Q.rootNode();return J&&J(Z)||Z}function fQ(Q={}){let J,Z,$,K,W=null,q=0,H=!1,Y=!1,B=!1,z=!1;function L(c,p){Z=c;let{mergeOptions:i,optionsAtMedia:Z0}=p,a=i(Uj,fQ.globalOptions),J0=i(a,Q);if(J=Z0(J0),Z.scrollSnapList().length<=1)return;z=J.jump,$=!1,K=Xj(Z,J.delay);let{eventStore:x,ownerDocument:q0}=Z.internalEngine(),e=!!Z.internalEngine().options.watchDrag,U0=Yj(Z,J.rootNode);if(x.add(q0,"visibilitychange",A),e)Z.on("pointerDown",S);if(e&&!J.stopOnInteraction)Z.on("pointerUp",h);if(J.stopOnMouseEnter)x.add(U0,"mouseenter",y);if(J.stopOnMouseEnter&&!J.stopOnInteraction)x.add(U0,"mouseleave",v);if(J.stopOnFocusIn)Z.on("slideFocusStart",M);if(J.stopOnFocusIn&&!J.stopOnInteraction)x.add(Z.containerNode(),"focusout",D);if(J.playOnInit)D()}function j(){Z.off("pointerDown",S).off("pointerUp",h).off("slideFocusStart",M),M(),$=!0,H=!1}function F(){let{ownerWindow:c}=Z.internalEngine();c.clearTimeout(q),q=c.setTimeout(n,K[Z.selectedScrollSnap()]),W=new Date().getTime(),Z.emit("autoplay:timerset")}function R(){let{ownerWindow:c}=Z.internalEngine();c.clearTimeout(q),q=0,W=null,Z.emit("autoplay:timerstopped")}function D(){if($)return;if(I()){B=!0;return}if(!H)Z.emit("autoplay:play");F(),H=!0}function M(){if($)return;if(H)Z.emit("autoplay:stop");R(),H=!1}function A(){if(I())return B=H,M();if(B)D()}function I(){let{ownerDocument:c}=Z.internalEngine();return c.visibilityState==="hidden"}function S(){if(!Y)M()}function h(){if(!Y)D()}function y(){Y=!0,M()}function v(){Y=!1,D()}function w(c){if(typeof c<"u")z=c;D()}function b(){if(H)M()}function f(){if(H)D()}function T(){return H}function n(){let{index:c}=Z.internalEngine(),p=c.clone().add(1).get(),i=Z.scrollSnapList().length-1,Z0=J.stopOnLastSnap&&p===i;if(Z.canScrollNext())Z.scrollNext(z);else Z.scrollTo(0,z);if(Z.emit("autoplay:select"),Z0)return M();D()}function l(){if(!W)return null;let c=K[Z.selectedScrollSnap()],p=new Date().getTime()-W;return c-p}return{name:"autoplay",options:Q,init:L,destroy:j,play:w,stop:b,reset:f,isPlaying:T,timeUntilNext:l}}fQ.globalOptions=void 0;function PG(Q,J,Z){return Math.min(Math.max(Q,J),Z)}function YW(Q){return typeof Q==="number"&&!isNaN(Q)}function BW(Q={}){let K,W=[],q,H=0,Y=0,B=0,z=!1,L,j;function F(c){K=c;let p=K.selectedScrollSnap(),{scrollBody:i,containerRect:Z0,axis:a}=K.internalEngine(),J0=a.measureSize(Z0);q=PG(J0*0.75,200,500),z=!1,W=K.scrollSnapList().map((x,q0)=>q0===p?1:0),L=i.settled,j=K.scrollProgress,i.settled=n,K.scrollProgress=l,K.on("select",I).on("slideFocus",D).on("pointerDown",A).on("pointerUp",M),h(),D()}function R(){let{scrollBody:c}=K.internalEngine();c.settled=L,K.scrollProgress=j,K.off("select",I).off("slideFocus",D).off("pointerDown",A).off("pointerUp",M),K.slideNodes().forEach((p)=>{let i=p.style;if(i.opacity="",i.transform="",i.pointerEvents="",!p.getAttribute("style"))p.removeAttribute("style")})}function D(){let c=K.selectedScrollSnap();v(c,1)}function M(){z=!1}function A(){z=!1,H=0,Y=0}function I(){let c=K.internalEngine().scrollBody.duration();if(Y=c?0:1,z=!0,!c)D()}function S(c){let{axis:p}=K.internalEngine();return`translate${p.scroll.toUpperCase()}(${p.direction(c)}px)`}function h(){let{translate:c,slideLooper:p}=K.internalEngine();c.clear(),c.toggleActive(!1),p.loopPoints.forEach(({translate:i})=>{i.clear(),i.toggleActive(!1)})}function y(c){let{scrollSnaps:p,location:i,target:Z0}=K.internalEngine();if(!YW(c)||W[c]<0.5)return;i.set(p[c]),Z0.set(i)}function v(c,p){K.scrollSnapList().forEach((Z0,a)=>{let J0=Math.abs(p),x=W[a],q0=a===c,e=q0?x+J0:x-J0,U0=PG(e,0,1);W[a]=U0;let R0=q0&&z,D0=K.previousScrollSnap();if(R0)W[D0]=1-U0;if(q0)b(c,U0);w(a)})}function w(c){let p=K.internalEngine().slideRegistry[c],{scrollSnaps:i,containerRect:Z0}=K.internalEngine(),a=W[c];p.forEach((J0)=>{let x=K.slideNodes()[J0].style,q0=parseFloat(a.toFixed(2)),e=q0>0,U0=e?i[c]:Z0.width+2,R0=S(U0);if(e)x.transform=R0;if(x.opacity=q0.toString(),x.pointerEvents=a>0.5?"auto":"none",!e)x.transform=R0})}function b(c,p){let{index:i,dragHandler:Z0,scrollSnaps:a}=K.internalEngine(),J0=Z0.pointerDown(),x=1/(a.length-1),q0=c,e=J0?K.selectedScrollSnap():K.previousScrollSnap();if(J0&&q0===e){let D0=Math.sign(H)*-1;q0=e,e=i.clone().set(e).add(D0).get()}let U0=e*x,R0=(q0-e)*x;B=U0+R0*p}function f(){let{dragHandler:c,index:p,scrollBody:i}=K.internalEngine(),Z0=K.selectedScrollSnap();if(!c.pointerDown())return Z0;let a=Math.sign(i.velocity()),J0=Math.sign(H),x=p.clone().set(Z0).add(a*-1).get();if(!a||!J0)return null;return J0===a?x:Z0}function T(c){let{dragHandler:p,scrollBody:i}=c.internalEngine(),Z0=p.pointerDown(),a=i.velocity(),J0=i.duration(),x=f(),q0=!YW(x);if(Z0){if(!a)return;H+=a,Y=Math.abs(a/q),y(x)}if(!Z0){if(!J0||q0)return;Y+=(1-W[x])/J0,Y*=0.68}if(q0)return;v(x,Y)}function n(){let{target:c,location:p}=K.internalEngine(),i=c.get()-p.get(),Z0=Math.abs(i)>=1,a=f(),J0=!YW(a);if(T(K),J0||Z0)return!1;return W[a]>0.999}function l(){return B}return{name:"fade",options:Q,init:F,destroy:R}}BW.globalOptions=void 0;var z8=(Q,J=document)=>J.querySelector(Q),HJ=(Q,J=document)=>Array.from(J.querySelectorAll(Q));var A9={root:".embla, [data-embla]",viewport:".embla__viewport, [data-embla-viewport]",container:".embla__container, [data-embla-container]",slide:".embla__slide, [data-embla-slide]",customerVideo:".carousel_customers_video video, video.carousel_customers_video",prev:"[data-embla-prev]",next:"[data-embla-next]",pagination:"[data-embla-pagination]",wrapperScope:"[data-embla-wrapper]"},T8=(Q,J)=>{if(Q==null)return J;if(Q==="")return!0;let Z=String(Q).trim().toLowerCase();if(["1","true","yes","on"].includes(Z))return!0;if(["0","false","no","off"].includes(Z))return!1;return J},G7=(Q,J)=>{if(Q==null||Q==="")return J;let Z=Number.parseFloat(Q);return Number.isFinite(Z)?Z:J},jW=(Q,J)=>{if(Q==null||Q==="")return J;let Z=String(Q).trim().toLowerCase();if(Z==="auto")return"auto";let $=Number.parseFloat(Z);return Number.isFinite($)?$:J},Bj=(Q,J=0)=>{if(Q==="auto")return"auto";let Z=Number(Q);if(!Number.isFinite(Z)||Z<=0)return"auto";if(J>0)return`calc(${(100/Z).toFixed(4)}% - ${J}px)`;return`${(100/Z).toFixed(4)}%`},jj=3,TG=0.001,zj=3,zW="(min-width: 768px)",Lj={news:{variant:"news",align:"center",sizing:"css",drag:!1},dashboard:{variant:"slide",align:"start",containScroll:"trimSnaps",dragFree:!1,drag:!0,loop:!1,slidesToScroll:1,slidesPerView:{mobile:1,desktop:"auto"},mobileOnly:!0},customers:{variant:"slide",align:"start",containScroll:!1,dragFree:!1,drag:!0,inViewThreshold:0.7,loop:!1,slidesToScroll:1,sizing:"css",breakpoints:{[zW]:{watchDrag:!1}}}},SG=(Q,J,Z)=>Math.min(Math.max(Q,J),Z),W8=(Q,J)=>{if(!J)return 0;return(Q%J+J)%J};class wG{constructor(Q,J={}){this.element=Q,this.dataset=J,this.emblaRoot=null,this.emblaScope=null,this.emblaContainer=null,this.prevButton=null,this.nextButton=null,this.paginationEl=null,this.paginationDots=null,this.paginationSnapPoints=null,this.embla=null,this.config=null,this.typeClassName="",this.smoothPagination=!1,this.isLooping=!1,this.slides=null,this._onPrevClick=null,this._onNextClick=null,this._onResize=null,this._paginationScrollFrame=0,this._resizeTimer=null,this._transitionStateTimer=null}collectElements(){let Q=this.element.matches(A9.viewport)?this.element:z8(A9.viewport,this.element),J=this.element.matches(A9.root)?this.element:z8(A9.root,this.element);if(this.emblaScope=J||Q||this.element,this.emblaRoot=Q||J,!(this.emblaRoot instanceof HTMLElement))return!1;if(this.emblaContainer=z8(A9.container,this.emblaRoot),!(this.emblaContainer instanceof HTMLElement))this.emblaContainer=this.emblaRoot.firstElementChild;if(!(this.emblaContainer instanceof HTMLElement))return!1;let Z=this.element.closest(A9.wrapperScope);return this.prevButton=z8(A9.prev,this.element)||(Z?z8(A9.prev,Z):null),this.nextButton=z8(A9.next,this.element)||(Z?z8(A9.next,Z):null),this.paginationEl=z8(A9.pagination,this.element)||(Z?z8(A9.pagination,Z):null),this.emblaRoot.style.overflow=this.emblaRoot.style.overflow||"visible",this.emblaContainer.style.display="flex",!0}getDefaultGap(){let Q=getComputedStyle(document.documentElement),J=Number.parseFloat(Q.getPropertyValue("--grid-gutter"))||Number.parseFloat(Q.getPropertyValue("--_components---container--gutter"));return Number.isFinite(J)?J:0}resolveOptions(){let Q=this.dataset,J=s9(),Z=String(Q.emblaType||"").trim().toLowerCase(),$=Lj[Z]||null,K=($?.variant||Q.emblaEffect||(J?"fade":"slide")).trim().toLowerCase(),W=$?.slidesPerView||{},q=jW(Q.emblaSlidesPerView,W.default??"auto"),H=jW(Q.emblaSlidesPerViewMobile,W.mobile??q),Y=jW(Q.emblaSlidesPerViewDesktop,W.desktop??(Q.emblaSlidesPerView!=null?q:"auto")),B=this.getDefaultGap()*16,z=G7(Q.emblaGapMobile,G7(Q.emblaGap,B)),L=G7(Q.emblaGapDesktop,z),j=T8(Q.emblaBreakpoints,!0),F=T8(Q.emblaLoop,null),R=J?0:Math.max(0,G7(Q.emblaDuration,25)),D=(Q.emblaAlign||"start").trim().toLowerCase(),M=T8(Q.emblaDrag,$?.drag??!0),A=T8(Q.emblaDragFree,$?.dragFree??!1),I=K==="news",S=String(Q.emblaSlidesToScroll??$?.slidesToScroll??1).trim().toLowerCase(),h=S==="auto"?"auto":Math.max(1,Math.round(G7(S,1))),y=SG(G7(Q.emblaInViewThreshold,$?.inViewThreshold??0),0,1),v={loop:$?.loop??F,align:$?.align||(I?"center":D),duration:R,dragFree:A,inViewThreshold:y,skipSnaps:!1,slidesToScroll:h,containScroll:$?.containScroll??(K==="fade"?!1:I?"trimSnaps":F?!1:"trimSnaps"),watchDrag:M};if($?.breakpoints)v.breakpoints={...$.breakpoints};if($?.mobileOnly)v.breakpoints={...v.breakpoints,[zW]:{...v.breakpoints?.[zW]||{},active:!1}};return{emblaOptions:v,type:Z,variant:K,reducedMotion:J,slidesPerView:{mobile:H,desktop:Y},gap:{mobile:z,desktop:L},useBreakpoints:j,sizing:$?.sizing||null}}resolvePlugins(){let Q=this.dataset,J=[];if(this.config.variant==="fade")J.push(BW());if(T8(Q.emblaAutoplay,!1)){let Z=Math.max(500,G7(Q.emblaAutoplayDelay,3000));J.push(fQ({delay:Z,stopOnInteraction:!0,stopOnMouseEnter:!0}))}return J}applySlideSizing(){let{slidesPerView:Q,gap:J}=this.config,Z=this.config.variant==="news",$=this.config.type==="customers",K=this.config.sizing==="css",W=this.config.useBreakpoints&&d0.isAtLeast("md"),q=K&&this.dataset.emblaSlidesPerView==null&&this.dataset.emblaSlidesPerViewMobile==null&&this.dataset.emblaSlidesPerViewDesktop==null,H=W?Q.desktop:Q.mobile,Y=Z||$?0:W?J.desktop:J.mobile;if(q)this.emblaRoot.style.removeProperty("--embla-slide-size");else this.emblaRoot.style.setProperty("--embla-slide-size",Bj(H,0));if(this.emblaRoot.style.setProperty("--embla-slide-gap",`${Y}px`),this.emblaScope?.classList.toggle("is-type-news",Z),this.typeClassName)this.emblaScope?.classList.remove(this.typeClassName),this.typeClassName="";if(this.config.type)this.typeClassName=`is-type-${this.config.type}`,this.emblaScope?.classList.add(this.typeClassName);this.emblaContainer.style.marginLeft=Z||$?"0":"calc(var(--embla-slide-gap, 0px) * -1)",HJ(A9.slide,this.emblaContainer).forEach((B)=>{B.style.flex=q?"":"0 0 var(--embla-slide-size, 100%)",B.style.boxSizing="border-box",B.style.minWidth="0",B.style.paddingLeft=Z||$?"0":"var(--embla-slide-gap, 0px)",B.style.marginLeft="0"})}queueReInit(Q=0){if(!this.embla)return;if(this._resizeTimer)window.clearTimeout(this._resizeTimer);this._resizeTimer=window.setTimeout(()=>{this._resizeTimer=null,this.embla?.reInit()},Q)}setupResizeReInit(){if(this._onResize)return;this._onResize=()=>{this.queueReInit(120)},window.addEventListener("resize",this._onResize)}setSelectedSlideClass(){if(!this.embla||!this.slides?.length)return;let Q=this.embla.slideNodes(),J=Q.length,Z=W8(this.embla.selectedScrollSnap(),J),$=d0.isAtLeast("lg"),K=this.config?.variant==="news"&&!$?zj:5,W=new Map([["is-selected",Z],["is-prev",Z-1],["is-next",Z+1]]);if(K>3)W.set("is-prev-2",Z-2),W.set("is-next-2",Z+2);if(this.slides.forEach((q)=>q.classList.remove("is-expanded","is-selected","is-prev","is-next","is-prev-2","is-next-2")),W.forEach((q,H)=>{if(!J)return;Q[W8(q,J)]?.classList.add(H)}),this.config?.type==="customers")Q[Z]?.classList.add("is-expanded");this.syncCustomerVideos()}syncCustomerVideos(){if(this.config?.type!=="customers"||!this.slides?.length)return;this.slides.forEach((Q)=>{let J=Q.classList.contains("is-expanded");HJ(A9.customerVideo,Q).forEach((Z)=>{if(!(Z instanceof HTMLVideoElement))return;if(J){Z.playsInline=!0;let $=!1;if(HJ("source[data-src]",Z).forEach((W)=>{W.src=W.dataset.src,delete W.dataset.src,$=!0}),$)Z.load();let K=Z.play();if(K&&typeof K.catch==="function")K.catch(()=>{});return}Z.pause()})})}buildRoleIndexMap(Q,J){return new Map([["is-selected",W8(Q,J)],["is-prev",W8(Q-1,J)],["is-next",W8(Q+1,J)],["is-prev-2",W8(Q-2,J)],["is-next-2",W8(Q+2,J)]])}clearTransitionState(){if(this._transitionStateTimer)window.clearTimeout(this._transitionStateTimer),this._transitionStateTimer=null;this.emblaScope?.classList.remove("is-moving-prev","is-moving-next"),this.slides?.forEach((Q)=>Q.classList.remove("is-entering","is-leaving","is-entering-prev-2","is-leaving-prev-2","is-entering-next-2","is-leaving-next-2"))}prepareTransitionTo(Q){if(this.config?.variant!=="news"||!this.embla||!this.slides?.length)return;let J=this.embla.slideNodes(),Z=J.length,$=W8(this.embla.selectedScrollSnap(),Z),K=W8(Q,Z);if(K===$)return;let W=this.buildRoleIndexMap($,Z),q=this.buildRoleIndexMap(K,Z),H=W8(K-$,Z),Y=W8($-K,Z),B=H<=Y;this.clearTransitionState(),this.emblaScope?.classList.add(B?"is-moving-next":"is-moving-prev"),J[$]?.classList.add("is-leaving"),J[K]?.classList.add("is-entering");let z=W.get("is-prev-2"),L=q.get("is-prev-2"),j=W.get("is-next-2"),F=q.get("is-next-2");if(typeof z==="number"&&z!==L)J[z]?.classList.add("is-leaving-prev-2");if(typeof L==="number"&&L!==z)J[L]?.classList.add("is-entering-prev-2");if(typeof j==="number"&&j!==F)J[j]?.classList.add("is-leaving-next-2");if(typeof F==="number"&&F!==j)J[F]?.classList.add("is-entering-next-2")}scheduleTransitionStateClear(Q=220){if(this._transitionStateTimer)window.clearTimeout(this._transitionStateTimer);this._transitionStateTimer=window.setTimeout(()=>{this._transitionStateTimer=null,this.clearTransitionState()},Q)}setupNavigation(){let Q=Boolean(this.prevButton||this.nextButton);if(!T8(this.dataset.emblaNavigation,Q))return;if(this.prevButton)this._onPrevClick=()=>{if(this.embla)this.prepareTransitionTo(this.embla.selectedScrollSnap()-1);this.embla?.scrollPrev()},this.prevButton.addEventListener("click",this._onPrevClick);if(this.nextButton)this._onNextClick=()=>{if(this.embla)this.prepareTransitionTo(this.embla.selectedScrollSnap()+1);this.embla?.scrollNext()},this.nextButton.addEventListener("click",this._onNextClick);this.updateNavigationState()}updateNavigationState(){if(!this.embla)return;if(this.prevButton){let Q=this.embla.canScrollPrev();this.prevButton.toggleAttribute("disabled",!Q),this.prevButton.classList.toggle("is-disabled",!Q)}if(this.nextButton){let Q=this.embla.canScrollNext();this.nextButton.toggleAttribute("disabled",!Q),this.nextButton.classList.toggle("is-disabled",!Q)}}setupPagination(){let Q=Boolean(this.paginationEl);if(!T8(this.dataset.emblaPagination,Q)||!this.paginationEl||!this.embla)return;let Z=T8(this.dataset.emblaPaginationClickable,!0),$=this.config?.variant==="news"||this.config?.type==="customers"?this._originalSlideCount||this.embla.scrollSnapList().length:this.getPaginationDotCount(this.embla.scrollSnapList().length);this.smoothPagination=T8(this.dataset.emblaPaginationSmooth,!this.config?.reducedMotion&&this.config?.variant!=="fade"&&this.config?.variant!=="news"),this.paginationEl.classList.toggle("is-smooth",this.smoothPagination),this.paginationEl.innerHTML="",this.paginationDots=[],this.paginationSnapPoints=this.embla.scrollSnapList().slice(0,$);for(let K=0;K<$;K++){let W=document.createElement("button");if(W.type="button",W.classList.add("embla__dot"),W.setAttribute("role","tab"),W.setAttribute("aria-label",`Go to slide ${K+1}`),W.setAttribute("aria-selected","false"),W.style.setProperty("--dot-progress","0"),Z)W.addEventListener("click",()=>{this.prepareTransitionTo(K),this.embla?.scrollTo(K)});this.paginationEl.appendChild(W),this.paginationDots.push(W)}this.updatePaginationState()}updatePaginationState(){if(!this.paginationDots?.length||!this.embla)return;let Q=W8(this.embla.selectedScrollSnap(),this.paginationDots.length);if(this.paginationDots.forEach((J,Z)=>{J.classList.toggle("is-active",Z===Q),J.setAttribute("aria-current",Z===Q?"true":"false"),J.setAttribute("aria-selected",Z===Q?"true":"false")}),!this.smoothPagination)this.setPaginationProgress(Q)}getPaginationDotCount(Q){if(this.config?.paginationMode!=="pages"||this.config?.emblaOptions?.loop||!this.emblaRoot||!this.slides?.length)return Q;let J=this.emblaRoot.getBoundingClientRect().width;if(!(J>0))return Q;let Z=0,$=0;if(this.slides.forEach((K)=>{let W=K.getBoundingClientRect().width;if(!(W>0))return;if(Z===0||$+W<=J+1)$+=W,Z+=1}),Z<=0)return Q;return Math.max(1,this.slides.length-Z+1)}setPaginationProgress(Q,J=null,Z=0){if(!this.paginationDots?.length)return;let $=SG(Z,0,1);this.paginationDots.forEach((K,W)=>{let q=0;if(W===Q)q=J===null?1:1-$;else if(W===J)q=$;K.style.setProperty("--dot-progress",q.toFixed(jj))})}updatePaginationProgress(){if(!this.smoothPagination||!this.paginationDots?.length||!this.embla)return;let Q=this.paginationSnapPoints;if(!Q?.length){this.updatePaginationState();return}let J=this.embla.scrollProgress(),Z=this.isLooping?W8(J,1):J,$=Q.map((Y,B)=>{let z=Math.abs(Y-Z),L=this.isLooping?Math.min(z,1-z):z;return{index:B,distance:L}}).sort((Y,B)=>Y.distance-B.distance),K=$[0],W=$[1];if(!K)return;if(!W||K.distance<=TG||W.distance<=TG){this.setPaginationProgress(K.index);return}let q=K.distance+W.distance,H=q===0?0:K.distance/q;this.setPaginationProgress(K.index,W.index,H)}schedulePaginationProgressUpdate(){if(!this.smoothPagination||this._paginationScrollFrame)return;this._paginationScrollFrame=window.requestAnimationFrame(()=>{this._paginationScrollFrame=0,this.updatePaginationProgress()})}resolveUpdateCallback(){let Q=String(this.dataset.emblaUpdateCallback||"").trim();if(!Q)return;let J=typeof window<"u"?window[Q]:void 0;if(typeof J!=="function")return;return(...Z)=>J(...Z)}setupSlideVisibility(){if(!T8(this.dataset.emblaFadeSlides,!1)||!this.embla)return;let Q=this.dataset.emblaFadeDuration||"var(--transition-duration, 0.45s)",J=this.dataset.emblaFadeEasing||"var(--ease-custom, ease)";this.slides=this.embla.slideNodes(),this.slides.forEach((Z)=>{Z.style.opacity="0",Z.style.transition=`opacity ${Q} ${J}`}),this._updateSlideVisibility=()=>{let Z=this.emblaRoot.getBoundingClientRect(),$=Z.left,K=Z.right,q=Z.width*0.15;this.slides.forEach((H)=>{let Y=H.getBoundingClientRect(),B=Y.left+Y.width/2;if(B<$-Y.width/2||B>K+Y.width/2){H.style.opacity="0";return}let z=1;if(B<$+q)z=Math.max(0,(B-$)/q);else if(B>K-q)z=Math.max(0,(K-B)/q);H.style.opacity=String(z.toFixed(3))})},this.embla.on("scroll",this._updateSlideVisibility),this.embla.on("reInit",this._updateSlideVisibility),this._updateSlideVisibility()}bindEvents(){if(!this.embla)return;let Q=this.config.variant==="news",J=Boolean(this.config.type);if(this.embla.on("select",()=>{if(this.updateNavigationState(),this.updatePaginationState(),this.updatePaginationProgress(),J)this.setSelectedSlideClass();if(Q)this.scheduleTransitionStateClear()}),this.smoothPagination)this.embla.on("scroll",()=>{this.schedulePaginationProgressUpdate()});this.embla.on("reInit",()=>{if(this.clearTransitionState(),this.applySlideSizing(),this.updateNavigationState(),this.setupPagination(),this.updatePaginationProgress(),J)this.setSelectedSlideClass();let Z=this.resolveUpdateCallback();if(Z)Z(this.embla)})}init(){if(!this.collectElements())return;this.config=this.resolveOptions();let Q=this.resolvePlugins();this.slides=HJ(A9.slide,this.emblaContainer),this._originalSlideCount=this.slides.length;let J={...this.config.emblaOptions};if(J.loop===null)J.loop=this.slides.length>1;this.isLooping=Boolean(J.loop),this.applySlideSizing();try{this.embla=hQ(this.emblaRoot,J,Q)}catch($){console.error("[carousel-embla] Embla init failed.",$,this.element),this.embla=null;return}if(this.setupNavigation(),this.setupPagination(),this.updatePaginationProgress(),this.setupSlideVisibility(),this.setupResizeReInit(),this.config.type)this.setSelectedSlideClass();this.bindEvents();let Z=this.resolveUpdateCallback();if(Z)Z(this.embla);if(T8(this.dataset.emblaAutoplayPause,!1))this.embla.plugins()?.autoplay?.stop();this.queueReInit(0)}destroy(){if(this.prevButton&&this._onPrevClick)this.prevButton.removeEventListener("click",this._onPrevClick);if(this.nextButton&&this._onNextClick)this.nextButton.removeEventListener("click",this._onNextClick);if(this.paginationEl)this.paginationEl.classList.remove("is-smooth"),this.paginationEl.innerHTML="";if(this.paginationDots=null,this.paginationSnapPoints=null,this.smoothPagination=!1,this.clearTransitionState(),this.slides?.length)this.slides.forEach((Q)=>Q.classList.remove("is-expanded","is-selected","is-prev","is-next","is-prev-2","is-next-2"));if(this.syncCustomerVideos(),this.emblaRoot){if(this.emblaScope?.classList.remove("is-type-news"),this.typeClassName)this.emblaScope?.classList.remove(this.typeClassName),this.typeClassName="";this.emblaRoot.style.removeProperty("--embla-slide-size"),this.emblaRoot.style.removeProperty("--embla-slide-gap")}if(this.emblaContainer)this.emblaContainer.style.marginLeft="";if(this.emblaContainer)HJ(A9.slide,this.emblaContainer).forEach((Q)=>{Q.style.flex="",Q.style.boxSizing="",Q.style.paddingLeft="",Q.style.marginLeft=""});if(this._paginationScrollFrame)window.cancelAnimationFrame(this._paginationScrollFrame),this._paginationScrollFrame=0;if(this._resizeTimer)window.clearTimeout(this._resizeTimer),this._resizeTimer=null;if(this._transitionStateTimer)window.clearTimeout(this._transitionStateTimer),this._transitionStateTimer=null;if(this._onResize)window.removeEventListener("resize",this._onResize),this._onResize=null;this.embla?.destroy(),this.embla=null,this.emblaScope=null,this.slides=null}}function bG(Q,J={}){if(!Q)return;if(typeof window>"u")return;let Z=new wG(Q,J);return x1(()=>{Z.init()}),X1(()=>{Z.destroy()}),Z}var OW={};j9(OW,{default:()=>xG});function xG(Q,J){x1(async()=>{await NG.to(Q,{duration:0.2,backgroundColor:"green"})}),X1(()=>{})}var RW={};j9(RW,{getRiveInstance:()=>Mj,default:()=>vG});var z9=uG(hG(),1);var fG={modules:"https://cdn.prod.website-files.com/69a58e01105bad8de44f03c2/6a0300418d75c5b4e0e6e8a1_halo_7.riv"},Oj={"cursor-pointer-on":"pointer","cursor-pointer-off":"off"},Nj="hover",Fj=!0,Rj={contain:z9.Fit.Contain,cover:z9.Fit.Cover,fill:z9.Fit.Fill,fitwidth:z9.Fit.FitWidth,fitheight:z9.Fit.FitHeight,none:z9.Fit.None,scaledown:z9.Fit.ScaleDown};function Dj(Q){let J=Rj[(Q||"").toLowerCase()]||z9.Fit.Contain;return new z9.Layout({fit:J,alignment:z9.Alignment.Center})}function yG(){return!d0.isAtLeast("lg")}function Cj(){return!d0.isAtLeast("sm")&&d0.height>d0.width}function _G(Q,J){if(Q.style.display="block",Q.style.width="100%",J)Q.style.aspectRatio=J,Q.style.height="auto";else Q.style.height="100%"}var $$=new WeakMap;function Vj(Q){let J=Q?.data?.name||Q?.name||Q?.data?.properties?.name,Z=Oj[J];if(Z)document.documentElement?.setAttribute("data-cursor",Z)}function Mj(Q){return $$.get(Q)||null}function vG(Q,J={}){if(typeof window>"u"||!Q)return null;if(Cj())return null;let Z=J.riveFile||"modules",$=J.riveLayout||"contain",K=J.riveCleanup!=="false",W=J.riveCursor!=="false",q=Q.getAttribute?.("data-rive-src")||J.riveSrc||J.riveFileUrl||fG[Z]||fG.modules,H=Dj($),Y=[...Q.tagName==="CANVAS"?[Q]:[],...Q.querySelectorAll("canvas[id], [data-rive-artboard], [data-rive-src]")],B=Array.from(new Set(Y));if(!B.length)return null;let z=[],L=(R)=>{let D=$$.get(R);if(D?.cleanup)D.cleanup();else if(D?.rive)try{D.rive.cleanup()}catch{}let M=R.getAttribute("data-rive-src")||R.dataset.riveSrc||q,A=R.getAttribute("data-rive-artboard")||R.id||J.riveArtboard||"",I=R.getAttribute("data-rive-state-machine")||R.getAttribute("data-rive-statemachine")||"",S=R.getAttribute("data-rive-view-model")||"",h=R.getAttribute("data-rive-view-model-instance")||"",y=R.getAttribute("data-rive-aspect-ratio")||"",w=R.hasAttribute("data-rive-state-machine")||R.hasAttribute("data-rive-statemachine")?R.getAttribute("data-rive-autobind")!=="false":R.getAttribute("data-rive-autobind")==="true";if(!yG())_G(R,y);let b=null,f=null,T=null,n=()=>{try{b?.()}catch{}b=null;try{f?.()}catch{}if(f=null,T)try{T.cleanup()}catch{}$$.delete(R)},l={src:M,canvas:R,layout:H,renderer:"auto",fallbackRenderer:"canvas",autoplay:!0,autoBind:!1,useOffscreenRenderer:!0,onLoad:()=>{if(!y&&!yG()){let i=T.bounds,Z0=i?i.maxX-i.minX:0,a=i?i.maxY-i.minY:0;if(Z0>0&&a>0)_G(R,`${Z0} / ${a}`)}T.resizeDrawingSurfaceToCanvas();let c=A||T.activeArtboard?.name,p=null;if(w)try{let i=S?T.viewModelByName(S):T.defaultViewModel?.();if(p=i?h&&i.instanceByName?.(h)||i.defaultInstance?.()||i.instanceByIndex?.(0)||i.instance?.():null,p)T.bindViewModelInstance(p)}catch(i){console.warn("[dashboard] ViewModel bind failed:",i)}if(W&&p)try{let i=p.boolean?.(Nj);if(i){let Z0=()=>{document.documentElement?.setAttribute("data-cursor",i.value?"pointer":"off")};Z0();let a=i.on?.(Z0);if(typeof a==="function")f=a}}catch(i){console.warn("[dashboard] hover binding failed:",i)}if(VG(R,{autoStart:!0,threshold:0,callback:({isIn:i})=>{try{if(i)Q0?T.play(I):T.play();else Q0?T.pause(I):T.pause()}catch{}}}),W&&typeof T.on==="function"){let i=z9.EventType?.RiveEvent||"riveEvent";b=T.on(i,Vj)}$$.set(R,{rive:T,artboard:c,stateMachine:I,fileType:Z,cleanup:n})}},Q0=I&&(!Fj||w);if(A)l.artboard=A;if(Q0)l.stateMachines=I;T=new z9.Rive(l),z.push(n)};B.forEach(L);let j=()=>{B.forEach((R)=>{let D=$$.get(R);if(D?.rive)try{D.rive.resizeDrawingSurfaceToCanvas()}catch{}})},F=d0.store.subscribe(j);if(K)X1(()=>{F?.(),z.forEach((R)=>R())});return{canvases:B}}var DW={};j9(DW,{default:()=>dG});function gG(){let Q=window.Webflow||[];if(Q.length>0)Q.forEach((J)=>{J.destroy(),J.ready()});console.log(Q)}function dG(Q,J){console.log("form",Q),x1(()=>{setTimeout(()=>{gG()},500)})}var CW={};j9(CW,{default:()=>cG});var Ej="2.3.0";class mG{constructor(Q){this.element=Q,this.iframe=Q.querySelector("iframe"),this.isActive=!1,this.isEditor=!1,this.onMouseEnter=this.onMouseEnter.bind(this),this.onOutsidePointerDown=this.onOutsidePointerDown.bind(this)}init(){if(this.isEditor=l1(),this.isEditor||!this.iframe)return;console.log(`[iframe-embed] v${Ej} active`),this.iframe.style.pointerEvents="none",this.element.addEventListener("mouseenter",this.onMouseEnter),document.addEventListener("pointerdown",this.onOutsidePointerDown,!0)}activate(){if(this.isActive)return;console.log("[iframe-embed] active"),this.isActive=!0,this.element.setAttribute("data-iframe-embed-active",""),this.iframe.style.setProperty("pointer-events","auto","important")}reset(){if(!this.isActive)return;this.isActive=!1,this.element.removeAttribute("data-iframe-embed-active"),this.iframe.style.pointerEvents="none"}onMouseEnter(){this.activate()}onOutsidePointerDown(Q){if(!this.isActive)return;if(this.element.contains(Q.target))return;this.reset()}destroy(){this.element.removeEventListener("mouseenter",this.onMouseEnter),document.removeEventListener("pointerdown",this.onOutsidePointerDown,!0),this.element.removeAttribute("data-iframe-embed-active"),this.iframe.style.pointerEvents="",this.reset()}}function cG(Q){let J=new mG(Q);return J.init(),X1(()=>{J.destroy()}),J}var VW={};j9(VW,{default:()=>rG});var iG=uG(sG(),1);function nG(Q=document,J={}){return new Promise((Z,$)=>{let K=iG.default(Q,J,()=>{Z(K)});K.on("fail",()=>{$(Error("Some images failed to load"))})})}function rG(Q,J){let Z=J.preload||"default",$=J.background==="true",K=J.showProgress==="true",W=null;x1(async()=>{Q.classList.remove("images-loaded","images-error");try{if(K)console.log(`[images:${Z}] Starting preload...`);if(W=await nG(Q,{background:$}),K)console.log(`[images:${Z}] Loaded ${W.images.length} images`);Q.classList.add("images-loaded"),Q.dispatchEvent(new CustomEvent("images:loaded",{detail:{category:Z,count:W.images.length},bubbles:!0}))}catch(q){console.error(`[images:${Z}] Failed to load:`,q),Q.classList.add("images-error"),Q.dispatchEvent(new CustomEvent("images:error",{detail:{category:Z,error:q},bubbles:!0}))}}),X1(()=>{if(W&&typeof W.off==="function")W.off("progress"),W.off("fail"),W.off("done");if(W=null,K)console.log(`[images:${Z}] Destroyed`)})}var MW={};j9(MW,{default:()=>ZU});var kj=250,Aj=100,Ij=0.2,Pj=0.5,Tj=4,Sj=3,wj="0px 0px",aG=1.6,bj=5,xj=5,hj=0.2,tG=0.01;class eG{constructor(Q){this.root=Q||document,this.isInitialized=!1,this.viewportResizeHandler=null,this.unsubscribeViewport=null,this.motionMediaQuery=null,this.motionPreferenceHandler=null,this.marquees=new Map,this.prefersReducedMotion=!1,this.isMobile=!1,this.pendingTimers=new Set}init(){if(this.isInitialized)return;if(this.motionMediaQuery=window.matchMedia("(prefers-reduced-motion: reduce)"),this.prefersReducedMotion=this.motionMediaQuery.matches,this.motionPreferenceHandler=(Q)=>{if(this.prefersReducedMotion=Q.matches,this.prefersReducedMotion){this.stopMarquees();return}this.isMobile=!d0.isAtLeast("md"),this.initMarquees()},this.addMotionPreferenceListener(),this.isMobile=!d0.isAtLeast("md"),this.viewportResizeHandler=this.debounceOnWidthChange(()=>{if(this.isMobile=!d0.isAtLeast("md"),this.prefersReducedMotion){this.stopMarquees();return}this.initMarquees()},kj),!this.prefersReducedMotion)this.initMarquees();this.unsubscribeViewport=d0.store.subscribe(()=>{this.viewportResizeHandler?.(d0.width)}),this.isInitialized=!0}getContainers(){let Q=new Set;if(this.root?.matches?.("[data-marquee]"))Q.add(this.root);return(this.root instanceof HTMLElement?this.root:document).querySelectorAll("[data-marquee]").forEach((Z)=>Q.add(Z)),Array.from(Q)}initMarquees(){this.stopMarquees(),this.getContainers().forEach((J,Z)=>{let $=this.isMobile?Aj:0,K=window.setTimeout(()=>{try{if(!J.isConnected||this.prefersReducedMotion)return;let W=new JU(J,Z,{prefersReducedMotion:this.prefersReducedMotion,isMobile:this.isMobile});this.marquees.set(J,W)}finally{this.pendingTimers.delete(K)}},$);this.pendingTimers.add(K)})}destroyMarquee(Q){let J=this.marquees.get(Q);if(J)J.destroy(),this.marquees.delete(Q)}clearPendingTimers(){this.pendingTimers.forEach((Q)=>clearTimeout(Q)),this.pendingTimers.clear()}stopMarquees(){this.clearPendingTimers(),Array.from(this.marquees.keys()).forEach((Q)=>this.destroyMarquee(Q))}addMotionPreferenceListener(){if(!this.motionMediaQuery||!this.motionPreferenceHandler)return;if(typeof this.motionMediaQuery.addEventListener==="function"){this.motionMediaQuery.addEventListener("change",this.motionPreferenceHandler);return}if(typeof this.motionMediaQuery.addListener==="function")this.motionMediaQuery.addListener(this.motionPreferenceHandler)}removeMotionPreferenceListener(){if(!this.motionMediaQuery||!this.motionPreferenceHandler)return;if(typeof this.motionMediaQuery.removeEventListener==="function"){this.motionMediaQuery.removeEventListener("change",this.motionPreferenceHandler);return}if(typeof this.motionMediaQuery.removeListener==="function")this.motionMediaQuery.removeListener(this.motionPreferenceHandler)}debounceOnWidthChange(Q,J){let Z=d0.width,$;return(K,...W)=>{clearTimeout($),$=setTimeout(()=>{if(K!==Z)Z=K,Q.apply(this,[K,...W])},J)}}destroy(){this.stopMarquees(),this.unsubscribeViewport?.(),this.unsubscribeViewport=null,this.viewportResizeHandler=null,this.removeMotionPreferenceListener(),this.motionPreferenceHandler=null,this.motionMediaQuery=null,this.isInitialized=!1}}class JU{constructor(Q,J,Z={}){this.container=Q,this.list=Q.querySelector("[data-marquee-list]"),this.index=J,this.options=Z,this.timeline=null,this.visibilityObserver=null,this.visibilityHandler=null,this.scrollVelocityUnsub=null,this.isInViewport=!0,this.scrollVelocityFactor=aG,this.currentTimeScale=1,this.originalItems=[],this.init()}init(){if(this.options.prefersReducedMotion)return;this.setupViewportTracking(),this.setupMarquee()}setupViewportTracking(){if(typeof document<"u")this.visibilityHandler=()=>this.updatePlaybackState(),document.addEventListener("visibilitychange",this.visibilityHandler,{passive:!0});if(typeof window>"u"||typeof window.IntersectionObserver!=="function")return;this.visibilityObserver=new window.IntersectionObserver((Q)=>{let J=Q[0];if(!J)return;this.isInViewport=J.isIntersecting,this.updatePlaybackState()},{root:null,rootMargin:wj,threshold:0}),this.visibilityObserver.observe(this.container)}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((q)=>{if(q.getAttribute("data-marquee-duplicate")==="true")q.remove()});let J=this.container.getBoundingClientRect().width,Z=0;if(this.originalItems.forEach((q)=>{let H=q.getBoundingClientRect(),Y=getComputedStyle(q),B=parseFloat(Y.marginLeft)||0,z=parseFloat(Y.marginRight)||0;Z+=H.width+B+z}),!(Z>0))return;let $=this.options.isMobile?Tj:Sj,K=J*$,W=Math.max(1,Math.ceil(K/Z));for(let q=0;q{let Y=H.cloneNode(!0);Y.setAttribute("data-marquee-duplicate","true"),Y.setAttribute("aria-hidden","true"),this.list.appendChild(Y)});this.createAnimation(Z)}createAnimation(Q){let J=this.container.getAttribute("data-marquee-speed"),Z=Number.parseFloat(J??""),$=this.container.getAttribute("data-marquee-velocity-factor"),K=Number.parseFloat($??""),q=(this.container.getAttribute("data-marquee-direction")||this.container.dataset?.marqueeDirection)?.toLowerCase()==="right"?1:-1;this.scrollVelocityFactor=Number.isFinite(K)&&K>=0?K:aG;let Y=Number.isFinite(Z)&&Z>0?Z:Ij;if(this.options.isMobile)Y*=Pj;let B=Q/100/Y;if(!Number.isFinite(B)||B<=0)return;let z=q===1?-Q:0,L=q===1?0:-Q;if(this.timeline)this.timeline.kill();G9.set(this.list,{x:z}),this.timeline=G9.to(this.list,{x:L,duration:B,ease:"none",repeat:-1,onRepeat:()=>{G9.set(this.list,{x:z})}}),this.bindScrollVelocity(),this.updatePlaybackState()}bindScrollVelocity(){if(this.scrollVelocityUnsub)this.scrollVelocityUnsub(),this.scrollVelocityUnsub=null;if(this.currentTimeScale=1,this.timeline?.timeScale(1),this.scrollVelocityFactor<=0)return;this.scrollVelocityUnsub=o1.add((Q)=>{let J=Number.isFinite(Q?.velocity)&&Q.velocity!==null?Math.abs(Q.velocity):Math.abs(o1.velocity),Z=Math.min(bj,J),K=1+Math.min(xj,Z*this.scrollVelocityFactor);if(this.currentTimeScale+=(K-this.currentTimeScale)*hj,Z{if(J.getAttribute("data-marquee-duplicate")==="true")J.remove()});if(this.visibilityObserver)this.visibilityObserver.disconnect(),this.visibilityObserver=null;if(this.scrollVelocityUnsub)this.scrollVelocityUnsub(),this.scrollVelocityUnsub=null;if(this.visibilityHandler)document.removeEventListener("visibilitychange",this.visibilityHandler),this.visibilityHandler=null;this.originalItems=[]}}function ZU(Q){if(typeof window>"u")return null;let J=new eG(Q||document);return J.init(),X1(()=>J.destroy()),J}var kW={};j9(kW,{default:()=>WU});var EW={svg:"[data-orbit-svg], .orbit_svg, .orbit-svg, svg",path:"[data-orbit-path]",logo:"[data-orbit-logo], .orbit_item, .logo-item"},q8={viewBoxWidth:1430,viewBoxHeight:700,speed:0.00008,direction:1,minScale:0.65,scaleRange:0.55,maxBlur:1.2,minOpacity:0.45,opacityRange:0.55,samples:200},fj=(Q,J,Z)=>Math.min(Math.max(Q,J),Z),$U=(Q,J=1)=>{if(!J)return 0;return(Q%J+J)%J},QU=(Q,J)=>{if(Q==null)return J;if(Q==="")return!0;let Z=String(Q).trim().toLowerCase();if(["1","true","yes","on"].includes(Z))return!0;if(["0","false","no","off"].includes(Z))return!1;return J},Q$=(Q,J)=>{if(Q==null||Q==="")return J;let Z=Number.parseFloat(Q);return Number.isFinite(Z)?Z:J},yj=(Q,J)=>{if(!Q)return;if(typeof Q.addEventListener==="function"){Q.addEventListener("change",J);return}if(typeof Q.addListener==="function")Q.addListener(J)},_j=(Q,J)=>{if(!Q)return;if(typeof Q.removeEventListener==="function"){Q.removeEventListener("change",J);return}if(typeof Q.removeListener==="function")Q.removeListener(J)};class KU{constructor(Q,J={}){this.element=Q,this.dataset=J,this.svg=null,this.orbits=[],this.isEditor=!1,this.shouldUseOpacity=QU(J.orbitUseOpacity,!1),this.respectReducedMotion=QU(J.orbitRespectReducedMotion,!0),this.scaleX=1,this.scaleY=1,this.offsetX=0,this.offsetY=0,this.viewBoxWidth=q8.viewBoxWidth,this.viewBoxHeight=q8.viewBoxHeight,this.rafId=0,this.resizeRafId=0,this.lastTime=null,this.unsubscribeViewport=null,this.resizeObserver=null,this.motionQuery=null,this.animate=this.animate.bind(this),this.onResize=this.onResize.bind(this),this.onVisibilityChange=this.onVisibilityChange.bind(this),this.onReducedMotionChange=this.onReducedMotionChange.bind(this)}collectElements(){if(this.svg=this.element instanceof SVGSVGElement?this.element:z8(EW.svg,this.element),!(this.svg instanceof SVGSVGElement))return!1;let Q=HJ(EW.path,this.svg).filter((J)=>J instanceof SVGPathElement);return this.orbits=Q.map((J,Z)=>this.createOrbit(J,Z)).filter((J)=>J&&J.logos.length>0),this.orbits.length>0}createOrbit(Q,J){let Z=this.getOrbitName(Q,J);if(!Z)return null;let $=0;try{$=Q.getTotalLength()}catch(q){return console.error(`Orbit path "${Z}" could not be measured:`,q),null}let K=HJ(EW.logo,this.element).filter((q)=>this.getLogoTarget(q)===Z);return{name:Z,pathEl:Q,totalLength:$,speed:Q$(Q.dataset.orbitSpeed,q8.speed),direction:Q$(Q.dataset.orbitDirection,q8.direction)>=0?1:-1,minY:0,maxY:0,cachedCTM:null,usesViewportCoordinates:!1,pathPoints:[],logos:K.map((q,H)=>({el:q,progress:this.resolveStartOffset(q.dataset.orbitStart,H,K.length)}))}}getOrbitName(Q,J=0){let Z=String(Q.dataset.orbitPath||"").trim();if(Z)return Z;let $=String(Q.id||"").trim();if($)return $;return`orbit-${J+1}`}getLogoTarget(Q){let J=String(Q.dataset.orbitTarget||"").trim();if(J)return J;let Z=String(Q.dataset.orbitLogo||"").trim();if(Z)return Z;return""}resolveStartOffset(Q,J,Z){let $=Q$(Q,Number.NaN);if(Number.isFinite($))return $U($,1);if(!Z)return 0;return J/Z}resolveViewBox(){let Q=this.svg?.viewBox?.baseVal;this.viewBoxWidth=Q?.width||Q$(this.dataset.orbitViewboxWidth,q8.viewBoxWidth),this.viewBoxHeight=Q?.height||Q$(this.dataset.orbitViewboxHeight,q8.viewBoxHeight)}init(){if(!this.collectElements())return;this.isEditor=l1(),this.motionQuery=window.matchMedia("(prefers-reduced-motion: reduce)"),this.resolveViewBox(),this.refreshMetrics(),this.render(!1),this.bindEvents(),this.updatePlaybackState()}bindEvents(){if(this.unsubscribeViewport=d0.store.subscribe(()=>{this.onResize()}),"ResizeObserver"in window)this.resizeObserver=new ResizeObserver(()=>{this.onResize()}),this.resizeObserver.observe(this.element);document.addEventListener("visibilitychange",this.onVisibilityChange),yj(this.motionQuery,this.onReducedMotionChange)}onResize(){if(this.resizeRafId)return;this.resizeRafId=window.requestAnimationFrame(()=>{this.resizeRafId=0,this.resolveViewBox(),this.refreshMetrics(),this.render(!1)})}onVisibilityChange(){this.updatePlaybackState()}onReducedMotionChange(){this.updatePlaybackState()}refreshMetrics(){let Q=this.element.getBoundingClientRect(),J=this.svg.getBoundingClientRect();this.offsetX=J.left-Q.left,this.offsetY=J.top-Q.top,this.scaleX=J.width>0?J.width/this.viewBoxWidth:1,this.scaleY=J.height>0?J.height/this.viewBoxHeight:1,this.orbits.forEach((Z)=>{Z.cachedCTM=Z.pathEl.getCTM(),Z.usesViewportCoordinates=Boolean(Z.cachedCTM),Z.pathPoints=[];for(let W=0;W<=q8.samples;W++){let q=W/q8.samples*Z.totalLength;Z.pathPoints.push(this.samplePoint(Z.pathEl,q,Z.cachedCTM))}let{minY:$,maxY:K}=this.measureDepthRange(Z.pathPoints);Z.minY=$,Z.maxY=K})}measureDepthRange(Q){let{POSITIVE_INFINITY:J,NEGATIVE_INFINITY:Z}=Number;for(let $ of Q)J=Math.min(J,$.y),Z=Math.max(Z,$.y);if(!Number.isFinite(J)||!Number.isFinite(Z))return{minY:0,maxY:this.viewBoxHeight};if(Math.abs(Z-J)<0.001)return{minY:J,maxY:J+1};return{minY:J,maxY:Z}}samplePoint(Q,J,Z){let $=Q.getPointAtLength(J);if(!Z)return{x:$.x,y:$.y};if(typeof DOMPoint==="function"){let K=new DOMPoint($.x,$.y).matrixTransform(Z);return{x:K.x,y:K.y}}return{x:$.x*Z.a+$.y*Z.c+Z.e,y:$.x*Z.b+$.y*Z.d+Z.f}}shouldAnimate(){if(document.hidden)return!1;if(this.isEditor)return!1;if(this.respectReducedMotion&&s9())return!1;return!0}updatePlaybackState(){if(this.shouldAnimate()){this.start();return}this.stop(),this.render(!1)}start(){if(this.rafId)return;this.lastTime=null,this.rafId=window.requestAnimationFrame(this.animate)}stop(){if(this.rafId)window.cancelAnimationFrame(this.rafId),this.rafId=0;this.lastTime=null}animate(Q){if(!this.shouldAnimate()){this.stop();return}if(this.lastTime==null)this.lastTime=Q;let J=Q-this.lastTime;this.lastTime=Q,this.render(!0,J),this.rafId=window.requestAnimationFrame(this.animate)}render(Q=!1,J=0){this.orbits.forEach((Z)=>{let $=Z.pathPoints,K=$.length-1;Z.logos.forEach((W)=>{if(Q)W.progress=$U(W.progress+Z.speed*Z.direction*J,1);let q=W.progress*K,H=Math.floor(q),Y=Math.min(H+1,K),B=q-H,z=$[H],L=$[Y],j={x:z.x+(L.x-z.x)*B,y:z.y+(L.y-z.y)*B},F=fj((j.y-Z.minY)/(Z.maxY-Z.minY),0,1),R=q8.minScale+F*q8.scaleRange,D=(1-F)*q8.maxBlur,M=q8.minOpacity+F*q8.opacityRange,A=Z.usesViewportCoordinates?1:this.scaleX,I=Z.usesViewportCoordinates?1:this.scaleY,S=this.offsetX+j.x*A,h=this.offsetY+j.y*I;if(W.el.style.transform=`translate3d(${S}px, ${h}px, 0) translate3d(-50%, -50%, 0) scale(${R})`,W.el.style.filter=`blur(${D}px)`,this.shouldUseOpacity)W.el.style.opacity=M.toFixed(3)})})}resetStyles(){this.orbits.forEach((Q)=>{Q.logos.forEach((J)=>{if(J.el.style.transform="",J.el.style.filter="",J.el.style.zIndex="",this.shouldUseOpacity)J.el.style.opacity=""})})}destroy(){if(this.stop(),this.resizeRafId)window.cancelAnimationFrame(this.resizeRafId),this.resizeRafId=0;this.unsubscribeViewport?.(),this.unsubscribeViewport=null,this.resizeObserver?.disconnect(),this.resizeObserver=null,document.removeEventListener("visibilitychange",this.onVisibilityChange),_j(this.motionQuery,this.onReducedMotionChange),this.motionQuery=null,this.resetStyles(),this.orbits=[],this.svg=null}}function WU(Q,J){let Z=new KU(Q,J);return x1(()=>{Z.init()}),X1(()=>{Z.destroy()}),Z}var IW={};j9(IW,{default:()=>BU});var AW={path:"[data-shape-path]",fill:"[data-shape-fill]"},uj="shape:progress",qU=[[0,753,0,0,0,0],[0,0,960,0,960,0],[960,0,1920,0,1920,0],[1920,0,1920,753,1920,753]],vj=[[0,753,0,310,0,310],[250.47,50,596.94,0,960,0],[1323.06,0,1669.53,50,1920,310],[1920,310,1920,753,1920,753]],HU=[0,753],GU=[0,753],UU=(Q,J,Z)=>Math.min(Math.max(Q,J),Z),TJ=(Q,J,Z)=>Q+(J-Q)*Z,SJ=(Q)=>Q.toFixed(3),gj=(Q,J)=>{if(Q==null)return J;if(Q==="")return!0;let Z=String(Q).trim().toLowerCase();if(["1","true","yes","on"].includes(Z))return!0;if(["0","false","no","off"].includes(Z))return!1;return J},dj=(Q,J)=>{if(Q==null||Q==="")return J;let Z=Number.parseFloat(Q);return Number.isFinite(Z)?Z:J},mj=(Q)=>{let J=String(Q||"").trim().toLowerCase();return J==="arc"||J==="1"||J==="true"?1:0},XU=0;function cj(Q){let J=TJ(HU[0],GU[0],Q),Z=TJ(HU[1],GU[1],Q),$=`M ${SJ(J)} ${SJ(Z)}`;for(let K=0;K{Z.init()}),X1(()=>{Z.destroy()}),Z}var PW={};j9(PW,{default:()=>jU});var pj=["lines","words","chars"],lj=/(\s+|[-\u2010-\u2015])/,oj=/[\s\u200B-\u200D\uFEFF]/g,sj=new Set(["p","h1","h2","h3","h4","h5","h6","blockquote","figcaption"]);function ij(Q){let J=(Q?.splitType||"lines").toLowerCase().trim();return pj.includes(J)?J:"lines"}function uQ(Q){return Boolean(Q?.replace(oj,""))}function nj(Q){let J=[];for(let Z of Array.from(Q.children)){if(!(Z instanceof HTMLElement))continue;let $=Z.tagName.toLowerCase();if($==="ul"||$==="ol"){for(let K of Array.from(Z.children))if(K instanceof HTMLElement&&K.tagName.toLowerCase()==="li"&&uQ(K.textContent))J.push(K);continue}if(sj.has($)&&uQ(Z.textContent))J.push(Z)}if(J.length===0&&uQ(Q.textContent))J.push(Q);return J}var rj=(Q,J)=>{switch(J){case"lines":return Q.lines;case"words":return Q.words;case"chars":return Q.chars}};function jU(Q,J){if(l1())return;if(!uQ(Q.textContent))return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let Z=ij(J),K=Z==="lines"&&Q.children.length>0?nj(Q):[Q];if(K.length===0)return;let W=[],q=!1;K.forEach((z)=>z.setAttribute("data-split-wrapper",""));let H={type:Z,tag:"span",aria:"auto",...Z==="lines"?{autoSplit:!0,wordDelimiter:lj}:{},onSplit(z){let L=rj(z,Z),j=`--${Z.slice(0,-1)}-index`;L?.forEach((F,R)=>{let D=F;D.style.setProperty(j,R.toString()),D.style.position="relative",D.style.display=Z==="lines"?"block":"inline-block",D.setAttribute("data-split-item","")})}},Y=()=>{W.forEach((z)=>z.revert()),W=[],K.forEach((z)=>z.removeAttribute("data-split-wrapper"))},B=()=>{if(q||W.length)return;try{W=K.map((z)=>EJ.create(z,H))}catch(z){console.warn("[split] SplitText.create failed",z),Y()}};if("fonts"in document&&document.fonts.status!=="loaded")document.fonts.ready.then(B);else B();X1(()=>{q=!0,Y()})}var TW={};j9(TW,{default:()=>zU});var aj=["lines","words","chars"],tj=/(\s+|[-\u2010-\u2015])/,ej=/[\s\u200B-\u200D\uFEFF]/g;function Jz(Q){let J=(Q?.splitType||"lines").toLowerCase().trim();return aj.includes(J)?J:"lines"}function Zz(Q){Q.style.position="absolute",Q.style.width="1px",Q.style.height="1px",Q.style.padding="0",Q.style.margin="-1px",Q.style.overflow="hidden",Q.style.clip="rect(0, 0, 0, 0)",Q.style.whiteSpace="nowrap",Q.style.border="0",Q.style.left="0",Q.style.top="0"}function vQ(Q){return Boolean(Q?.replace(ej,""))}function $z(Q){let J=[];for(let Z of Array.from(Q.children)){if(!(Z instanceof HTMLElement))continue;let $=Z.tagName.toLowerCase();if($==="ul"||$==="ol"){for(let K of Array.from(Z.children))if(K instanceof HTMLElement&&K.tagName.toLowerCase()==="li"&&vQ(K.textContent))J.push(K);continue}if(["p","h1","h2","h3","h4","h5","h6","blockquote","figcaption"].includes($)&&vQ(Z.textContent))J.push(Z)}if(J.length===0&&vQ(Q.textContent))J.push(Q);return J}var Qz=(Q,J)=>{switch(J){case"lines":return Q.lines;case"words":return Q.words;case"chars":return Q.chars}};function zU(Q,J){let Z=Jz(J),$=Q.textContent??"",K=Q.innerHTML,W=Z==="lines"&&Q.children.length>0,q=null,H=[],Y=!1,B=!1,z=null,L=null,j=null,F=new Set,R=0,D=!1,M=Q,A=Q,I=[];if(!vQ($))return;if(W){if(I=$z(Q),I.length===0)return;I.forEach((f)=>{f.setAttribute("data-split-wrapper","")})}else{Q.textContent="";let f=document.createElement("span");f.textContent=$,Q.appendChild(f),Zz(f);let T=document.createElement("span");T.setAttribute("data-split-wrapper",""),T.textContent=$,T.setAttribute("aria-hidden","true"),Q.appendChild(T),M=T,A=T}let S=()=>({type:Z,tag:"span",aria:"none",...Z==="lines"?{wordDelimiter:tj}:{},onSplit(f){let T=Qz(f,Z),n=`--${Z.slice(0,-1)}-index`;T?.forEach((l,Q0)=>{let c=l;c.style.setProperty(n,Q0.toString()),c.style.position="relative",c.style.display=Z==="lines"?"block":"inline-block",c.setAttribute("data-split-item","")}),F=new Set(Array.from(A.querySelectorAll("[data-split-item]")))}}),h=()=>{if(z)clearTimeout(z),z=null;if(L)L(),L=null},y=()=>{if(j)j(),j=null;R=0,D=!1},v=()=>{if(console.log("cleanup"),B)return;if(B=!0,y(),h(),q)q.revert(),q=null;if(H.length)H.forEach((f)=>f.revert()),H=[];if(W)Q.innerHTML=K;else Q.textContent=$},w=()=>{if(j)return;let f=(l)=>l instanceof HTMLElement&&F.has(l),T=(l)=>{if(Y||B||!f(l.target))return;D=!0,R+=1},n=(l)=>{if(Y||B||!f(l.target))return;if(R>0)R-=1;if(D&&R===0)y()};M.addEventListener("animationstart",T),M.addEventListener("animationend",n),M.addEventListener("animationcancel",n),j=()=>{M.removeEventListener("animationstart",T),M.removeEventListener("animationend",n),M.removeEventListener("animationcancel",n)}},b=()=>{if(Y||q||H.length)return;try{if(W)H=I.map((f)=>EJ.create(f,S()));else q=EJ.create(A,S())}catch{v();return}if(w(),window.matchMedia("(prefers-reduced-motion: reduce)").matches){requestAnimationFrame(()=>{if(!Y&&!B)v()});return}};if("fonts"in document&&document.fonts.status!=="loaded")document.fonts.ready.then(b);else b();X1(()=>{if(Y=!0,y(),h(),q)q.revert(),q=null;if(H.length)H.forEach((f)=>f.revert()),H=[]})}var SW={};j9(SW,{default:()=>OU});var Kz={item:"[data-switcher-item]"};class LU{constructor(Q){this.element=Q,this.items=[],this.currentIndex=null,this.isEditor=!1,this.metrics={widths:[],offsets:[]},this.unsubscribeViewport=null,this.handleFontReady=null,this.onResize=this.onResize.bind(this),this.onItemClick=this.onItemClick.bind(this)}init(){if(this.items=Array.from(this.element.querySelectorAll(Kz.item)),!this.items.length)return;this.isEditor=l1(),this.currentIndex=this.getDefaultIndex(),this.bindEvents(),this.refresh(this.currentIndex)}bindEvents(){if(this.items.forEach((Q)=>{if(!this.isEditor)Q.addEventListener("click",this.onItemClick)}),this.unsubscribeViewport=d0.store.subscribe(()=>{this.onResize()}),"fonts"in document&&document.fonts.status!=="loaded")this.handleFontReady=()=>{this.refresh(this.currentIndex)},document.fonts.ready.then(this.handleFontReady)}getDefaultIndex(){let Q=this.items.findIndex((J)=>J.classList.contains("is-active")||J.getAttribute("aria-pressed")==="true"||J instanceof HTMLButtonElement&&J.disabled);return Q>=0?Q:0}onResize(){this.refresh(this.currentIndex)}onItemClick(Q){Q.preventDefault();let J=Q.currentTarget,Z=this.items.indexOf(J);if(Z<0)return;this.setActiveItem(Z),this.applyValues(Z),this.scrollItemIntoView(Z)}refresh(Q=this.currentIndex){this.computeMetrics(),this.setActiveItem(Q),this.applyValues(Q)}computeMetrics(){let Q=0;this.items.forEach((J,Z)=>{let $=J.clientWidth;this.metrics.widths[Z]=$,this.metrics.offsets[Z]=Q,Q+=$})}setActiveItem(Q=null){this.items.forEach((J,Z)=>{let $=Q!==null&&Z===Q;if(J.classList.toggle("is-active",$),J.setAttribute("aria-pressed",String($)),J instanceof HTMLButtonElement)J.disabled=this.isEditor?!1:$}),this.currentIndex=Q}scrollItemIntoView(Q){if(!this.items[Q])return;let Z=this.element;if(Z.scrollWidth<=Z.clientWidth)return;let $=this.metrics.offsets[Q]??0,K=$+(this.metrics.widths[Q]??0),W=Z.scrollLeft,q=W+Z.clientWidth,H;if($q)H=K-Z.clientWidth;else return;Z.scrollTo({left:H,behavior:"smooth"})}isMobileLayout(){return!d0.isAtLeast("md")}clearPillValues(){this.element.style.removeProperty("--button-width"),this.element.style.removeProperty("--button-offset")}applyValues(Q=this.currentIndex){if(!this.items.length)return;if(this.isMobileLayout()){this.clearPillValues();return}let J=typeof Q==="number"&&Q>=0&&Q{Q.removeEventListener("click",this.onItemClick)}),this.unsubscribeViewport?.(),this.unsubscribeViewport=null,this.handleFontReady=null,this.clearPillValues(),this.items=[],this.metrics.widths=[],this.metrics.offsets=[]}}function OU(Q){let J=new LU(Q);return x1(()=>{J.init()}),X1(()=>{J.destroy()}),J}var wW={};j9(wW,{default:()=>FU});var Wz={item:"[data-switcher-item]"},qz=120,Hz=100;class NU{constructor(Q){this.element=Q,this.items=[],this.currentIndex=null,this.isEditor=!1,this.hoverIntentTimeout=null,this.metrics={widths:[],offsets:[]},this.unsubscribeViewport=null,this.handleFontReady=null,this.onResize=this.onResize.bind(this),this.onItemClick=this.onItemClick.bind(this),this.onItemEnter=this.onItemEnter.bind(this),this.onItemLeave=this.onItemLeave.bind(this)}init(){if(this.items=Array.from(this.element.querySelectorAll(Wz.item)),!this.items.length)return;this.isEditor=l1(),this.currentIndex=this.getDefaultIndex(),this.bindEvents(),this.refresh(this.currentIndex)}bindEvents(){if(this.items.forEach((Q)=>{if(!this.isEditor)Q.addEventListener("mouseenter",this.onItemEnter),Q.addEventListener("mouseleave",this.onItemLeave),Q.addEventListener("click",this.onItemClick)}),this.unsubscribeViewport=d0.store.subscribe(()=>{this.onResize()}),"fonts"in document&&document.fonts.status!=="loaded")this.handleFontReady=()=>{this.refresh(this.currentIndex)},document.fonts.ready.then(this.handleFontReady)}getDefaultIndex(){let Q=this.items.findIndex((J)=>J.classList.contains("is-active")||J.getAttribute("aria-pressed")==="true"||J instanceof HTMLButtonElement&&J.disabled);return Q>=0?Q:0}onResize(){this.refresh(this.currentIndex)}onItemClick(Q){Q.preventDefault();let J=Q.currentTarget,Z=this.items.indexOf(J);if(Z<0)return;this.clearHoverIntent(),this.setActiveItem(Z),this.applyValues(Z),this.scrollItemIntoView(Z)}onItemEnter(Q){let J=Q.currentTarget,Z=this.items.indexOf(J);if(Z<0)return;this.clearHoverIntent(),this.hoverIntentTimeout=window.setTimeout(()=>{this.hoverIntentTimeout=null,this.applyValues(Z)},qz)}onItemLeave(){this.clearHoverIntent(),this.hoverIntentTimeout=window.setTimeout(()=>{this.hoverIntentTimeout=null,this.applyValues(this.currentIndex)},Hz)}clearHoverIntent(){if(this.hoverIntentTimeout!==null)window.clearTimeout(this.hoverIntentTimeout),this.hoverIntentTimeout=null}refresh(Q=this.currentIndex){this.computeMetrics(),this.setActiveItem(Q),this.applyValues(Q)}computeMetrics(){let Q=0;this.items.forEach((J,Z)=>{let $=J.clientWidth;this.metrics.widths[Z]=$,this.metrics.offsets[Z]=Q,Q+=$})}setActiveItem(Q=null){this.items.forEach((J,Z)=>{let $=Q!==null&&Z===Q;if(J.classList.toggle("is-active",$),J.setAttribute("aria-pressed",String($)),J instanceof HTMLButtonElement)J.disabled=this.isEditor?!1:$}),this.currentIndex=Q}scrollItemIntoView(Q){if(!this.items[Q])return;let Z=this.element;if(Z.scrollWidth<=Z.clientWidth)return;let $=this.metrics.offsets[Q]??0,K=$+(this.metrics.widths[Q]??0),W=Z.scrollLeft,q=W+Z.clientWidth,H;if($q)H=K-Z.clientWidth;else return;Z.scrollTo({left:H,behavior:"smooth"})}applyValues(Q=this.currentIndex){if(!this.items.length)return;let J=typeof Q==="number"&&Q>=0&&Q{Q.removeEventListener("mouseenter",this.onItemEnter),Q.removeEventListener("mouseleave",this.onItemLeave),Q.removeEventListener("click",this.onItemClick)}),this.unsubscribeViewport?.(),this.unsubscribeViewport=null,this.handleFontReady=null,this.items=[],this.metrics.widths=[],this.metrics.offsets=[]}}function FU(Q){let J=new NU(Q);return x1(()=>{J.init()}),X1(()=>{J.destroy()}),J}var xW={};j9(xW,{default:()=>MU});var RU=(Q,J,Z=window)=>{return Z.dispatchEvent(new CustomEvent(Q,{detail:J,bubbles:!0,cancelable:!0}))};var U7={tab:"[data-tab]",panel:'[role="tabpanel"], .tabs_panel',progress:"[data-tabs-progress]",prev:"[data-tabs-prev]",next:"[data-tabs-next]",textReveal:'[data-module="split"][data-split-inview]'},DU=0,CU=5000,Gz="webgl:tabs-change",bW=(Q,J=!1)=>{if(Q==null)return J;if(Q==="")return!0;let Z=String(Q).trim().toLowerCase();if(["1","true","yes","on"].includes(Z))return!0;if(["0","false","no","off"].includes(Z))return!1;return J},Uz=(Q,J)=>{let Z=Number.parseFloat(Q);return Number.isFinite(Z)&&Z>0?Z:J};class VU{constructor(Q){this.element=Q,this.tabs=[],this.panels=[],this.firstTab=null,this.lastTab=null,this.currentTab=null,this.prevButton=null,this.nextButton=null,this.previousPanel=null,this.defaultTab=null,this.rafId=null,this.textRevealRafId=null,this.baseId="",this.isEditor=!1,this.isAutoEnabled=!1,this.hasAutoStarted=!1,this.isInAutoRange=!1,this.autoDelay=CU,this.pauseOnHover=!0,this.pauseOnFocus=!0,this.autoRafId=null,this.autoStartTime=0,this.autoElapsed=0,this.isAutoPaused=!1,this.isPointerInside=!1,this.isFocusWithin=!1,this.isDocumentHidden=!1,this.onKeydown=this.onKeydown.bind(this),this.onClick=this.onClick.bind(this),this.onPrevClick=this.onPrevClick.bind(this),this.onNextClick=this.onNextClick.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.onFocusIn=this.onFocusIn.bind(this),this.onFocusOut=this.onFocusOut.bind(this),this.onVisibilityChange=this.onVisibilityChange.bind(this),this.runAutoTabs=this.runAutoTabs.bind(this)}init(){if(this.tabs=Array.from(this.element.querySelectorAll(U7.tab)),this.prevButton=this.element.querySelector(U7.prev),this.nextButton=this.element.querySelector(U7.next),!this.tabs.length)return;this.isEditor=l1(),this.setupAutoMode(),this.setupTabs(),this.selectTab(this.getDefaultTab(),{firstLoad:!0}),this.bindEvents(),this.setupAutoTrack()}setupAutoMode(){this.isAutoEnabled=!this.isEditor&&!s9()&&bW(this.element.dataset.tabsAuto,!1),this.autoDelay=Uz(this.element.dataset.tabsDelay,CU),this.pauseOnHover=bW(this.element.dataset.tabsPauseOnHover,!0),this.pauseOnFocus=bW(this.element.dataset.tabsPauseOnFocus,!0)}setupTabs(){this.panels=[],this.firstTab=null,this.lastTab=null,this.defaultTab=null,this.baseId=this.resolveBaseId();let Q=Array.from(this.element.querySelectorAll(U7.panel));this.tabs.forEach((J,Z)=>{let $=J.getAttribute("aria-controls"),W=($?document.getElementById($):null)||Q[Z]||null,q=J.id||`${this.baseId}-tab-${Z+1}`,H=W?.id||`${this.baseId}-panel-${Z+1}`;if(J.id=q,J.setAttribute("role","tab"),!this.defaultTab&&(J.getAttribute("aria-selected")==="true"||J.classList.contains("is-active")))this.defaultTab=J;if(this.panels[Z]=W,J.tabIndex=-1,J.setAttribute("aria-selected","false"),J.setAttribute("aria-controls",H),W)W.id=H,W.setAttribute("role","tabpanel"),W.setAttribute("aria-labelledby",q);if(!this.firstTab)this.firstTab=J,W?.setAttribute("data-default-tab","");this.lastTab=J})}resolveBaseId(){return DU+=1,this.element.id||`tabs-${DU}`}bindEvents(){if(this.tabs.forEach((Q)=>{Q.addEventListener("keydown",this.onKeydown),Q.addEventListener("click",this.onClick)}),this.prevButton?.addEventListener("click",this.onPrevClick),this.nextButton?.addEventListener("click",this.onNextClick),this.updateNavigationState(),!this.isAutoEnabled)return;if(this.pauseOnHover)this.element.addEventListener("mouseenter",this.onMouseEnter),this.element.addEventListener("mouseleave",this.onMouseLeave);if(this.pauseOnFocus)this.element.addEventListener("focusin",this.onFocusIn),this.element.addEventListener("focusout",this.onFocusOut);document.addEventListener("visibilitychange",this.onVisibilityChange)}setupAutoTrack(){if(!this.isAutoEnabled){this.updateProgressState(0);return}bQ(this.element,{top:"center",bottom:"center",callback:(Q)=>{let J=Q>0&&Q<1;if(this.isInAutoRange=J,J&&!this.hasAutoStarted)this.hasAutoStarted=!0,this.startAutoTabs();this.syncAutoPlayback()}})}getDefaultTab(){return this.defaultTab||this.firstTab}onKeydown(Q){let J=Q.currentTarget,Z=!1;switch(Q.key){case"ArrowLeft":this.moveFocusToPreviousTab(J),Z=!0;break;case"ArrowRight":this.moveFocusToNextTab(J),Z=!0;break;case"Home":this.moveFocusToTab(this.firstTab),Z=!0;break;case"End":this.moveFocusToTab(this.lastTab),Z=!0;break;default:break}if(!Z)return;Q.preventDefault(),Q.stopPropagation()}onClick(Q){let J=Q.currentTarget;if(J===this.currentTab){this.resetAutoTabs();return}this.selectTab(J,{resetAuto:!0,revealText:!0})}onPrevClick(Q){Q.preventDefault(),this.moveToPreviousTab()}onNextClick(Q){Q.preventDefault(),this.moveToNextTab()}onMouseEnter(){this.isPointerInside=!0,this.syncAutoPlayback()}onMouseLeave(){this.isPointerInside=!1,this.syncAutoPlayback()}onFocusIn(){this.isFocusWithin=!0,this.syncAutoPlayback()}onFocusOut(){requestAnimationFrame(()=>{this.isFocusWithin=this.element.contains(document.activeElement),this.syncAutoPlayback()})}onVisibilityChange(){this.isDocumentHidden=document.hidden,this.syncAutoPlayback()}selectTab(Q,{firstLoad:J=!1,resetAuto:Z=!1,revealText:$=!1}={}){if(!Q){this.hideAllPanels();return}if(Q.getAttribute("aria-selected")==="true")return;let K=this.currentTab;this.currentTab=Q;let W=this.tabs.indexOf(Q),q=this.panels[W]||null;if(K){let H=this.tabs.indexOf(K);this.previousPanel=this.panels[H]||null}else this.previousPanel=null;if(this.tabs.forEach((H,Y)=>{let B=this.panels[Y],z=Y===W;if(H.setAttribute("aria-selected",String(z)),H.tabIndex=z?0:-1,H.classList.toggle("is-active",z),!B)return;B.classList.toggle("is-hidden",!z),B.classList.toggle("is-active",!1),B.tabIndex=z?0:-1,B.setAttribute("aria-hidden",String(!z))}),this.updateNavigationState(),!q)return;if(this.rafId)cancelAnimationFrame(this.rafId);if(this.rafId=requestAnimationFrame(()=>{if(q.classList.add("is-active"),$)this.revealPanelText(q);this.rafId=null}),!J&&this.previousPanel&&this.previousPanel!==q)this.previousPanel.classList.add("is-hidden"),this.previousPanel.classList.remove("is-active"),this.previousPanel.tabIndex=-1,this.previousPanel.setAttribute("aria-hidden","true");if(Z)this.resetAutoTabs();RU(Gz,{index:W,element:this.element},window)}getPanelTextRevealElements(Q){if(!Q)return[];let J=[];if(Q.matches?.(U7.textReveal))J.push(Q);return J.push(...Q.querySelectorAll(U7.textReveal)),J}revealPanelText(Q){if(this.textRevealRafId)cancelAnimationFrame(this.textRevealRafId),this.textRevealRafId=null;let J=this.getPanelTextRevealElements(Q).filter((Z)=>!Z.classList.contains("is-inview"));if(!J.length)return;this.textRevealRafId=requestAnimationFrame(()=>{J.forEach((Z)=>{Z.classList.add("is-inview")}),this.textRevealRafId=null})}hideAllPanels(){this.tabs.forEach((Q,J)=>{let Z=this.panels[J];if(Q.setAttribute("aria-selected","false"),Q.tabIndex=-1,Q.classList.remove("is-active"),!Z)return;Z.classList.add("is-hidden"),Z.classList.remove("is-active"),Z.tabIndex=-1,Z.setAttribute("aria-hidden","true")})}moveFocusToTab(Q){Q?.focus()}moveFocusToPreviousTab(Q){if(!Q)return;if(Q===this.firstTab){this.moveFocusToTab(this.lastTab);return}let J=this.tabs.indexOf(Q);this.moveFocusToTab(this.tabs[J-1])}moveFocusToNextTab(Q){if(!Q)return;if(Q===this.lastTab){this.moveFocusToTab(this.firstTab);return}let J=this.tabs.indexOf(Q);this.moveFocusToTab(this.tabs[J+1])}moveToNextTab(){if(!this.tabs.length)return;let Q=this.currentTab?this.tabs.indexOf(this.currentTab):-1,J=Q>=0?(Q+1)%this.tabs.length:0;this.selectTab(this.tabs[J],{resetAuto:!0,revealText:!0})}moveToPreviousTab(){if(!this.tabs.length)return;let Q=this.currentTab?this.tabs.indexOf(this.currentTab):-1,J=Q>=0?(Q-1+this.tabs.length)%this.tabs.length:this.tabs.length-1;this.selectTab(this.tabs[J],{resetAuto:!0,revealText:!0})}updateNavigationState(){let Q=this.tabs.length>1;if(this.prevButton)this.prevButton.toggleAttribute("disabled",!Q),this.prevButton.classList.toggle("is-disabled",!Q),this.prevButton.setAttribute("aria-disabled",String(!Q));if(this.nextButton)this.nextButton.toggleAttribute("disabled",!Q),this.nextButton.classList.toggle("is-disabled",!Q),this.nextButton.setAttribute("aria-disabled",String(!Q))}startAutoTabs(){if(!this.isAutoEnabled||this.tabs.length<2){this.updateProgressState(0);return}this.stopAutoTabs(),this.isAutoPaused=!1,this.autoElapsed=0,this.autoStartTime=performance.now(),this.autoRafId=requestAnimationFrame(this.runAutoTabs)}syncAutoPlayback(){if(!this.isAutoEnabled)return;if(!this.isInAutoRange||this.isDocumentHidden||this.pauseOnHover&&this.isPointerInside||this.pauseOnFocus&&this.isFocusWithin){this.pauseAutoTabs();return}this.resumeAutoTabs()}stopAutoTabs(){if(this.autoRafId)cancelAnimationFrame(this.autoRafId),this.autoRafId=null;this.autoStartTime=0}pauseAutoTabs(){if(!this.isAutoEnabled||this.isAutoPaused)return;if(this.isAutoPaused=!0,this.autoStartTime)this.autoElapsed+=performance.now()-this.autoStartTime;this.stopAutoTabs()}resumeAutoTabs(){if(!this.isAutoEnabled||!this.isAutoPaused)return;this.isAutoPaused=!1,this.autoStartTime=performance.now(),this.autoRafId=requestAnimationFrame(this.runAutoTabs)}restartAutoTabs(){if(!this.isAutoEnabled||this.isAutoPaused)return;this.autoElapsed=0,this.stopAutoTabs(),this.autoStartTime=performance.now(),this.autoRafId=requestAnimationFrame(this.runAutoTabs)}resetAutoTabs(){if(!this.isAutoEnabled||!this.hasAutoStarted){this.updateProgressState(0);return}if(this.autoElapsed=0,this.updateProgressState(0),this.isAutoPaused){this.stopAutoTabs();return}this.restartAutoTabs()}runAutoTabs(Q){if(!this.isAutoEnabled||this.isAutoPaused)return;if(!this.autoStartTime)this.autoStartTime=Q;let J=this.autoElapsed+(Q-this.autoStartTime),Z=Math.min(J/this.autoDelay,1);if(this.updateProgressState(Z),J>=this.autoDelay){this.moveToNextTab();return}this.autoRafId=requestAnimationFrame(this.runAutoTabs)}updateProgressState(Q=0){let J=this.currentTab?this.tabs.indexOf(this.currentTab):-1,Z=Math.max(0,Math.min(Q,1));this.tabs.forEach(($,K)=>{let W=K===J&&this.isAutoEnabled?Z:0,q=W.toFixed(4);$.style.setProperty("--tabs-progress",q),$.setAttribute("data-tabs-progress-active",W>0?"true":"false"),$.querySelectorAll(U7.progress).forEach((Y)=>{Y.style.setProperty("--tabs-progress",q)})})}destroy(){if(this.tabs.forEach((Q)=>{Q.removeEventListener("keydown",this.onKeydown),Q.removeEventListener("click",this.onClick)}),this.prevButton?.removeEventListener("click",this.onPrevClick),this.nextButton?.removeEventListener("click",this.onNextClick),this.rafId)cancelAnimationFrame(this.rafId),this.rafId=null;if(this.textRevealRafId)cancelAnimationFrame(this.textRevealRafId),this.textRevealRafId=null;this.stopAutoTabs(),this.element.removeEventListener("mouseenter",this.onMouseEnter),this.element.removeEventListener("mouseleave",this.onMouseLeave),this.element.removeEventListener("focusin",this.onFocusIn),this.element.removeEventListener("focusout",this.onFocusOut),document.removeEventListener("visibilitychange",this.onVisibilityChange),this.tabs=[],this.panels=[],this.firstTab=null,this.lastTab=null,this.currentTab=null,this.prevButton=null,this.nextButton=null,this.previousPanel=null,this.hasAutoStarted=!1,this.isInAutoRange=!1,this.isPointerInside=!1,this.isFocusWithin=!1,this.isDocumentHidden=!1}}function MU(Q){let J=new VU(Q);return x1(()=>{J.init()}),X1(()=>{J.destroy()}),J}var hW={};j9(hW,{default:()=>AU});var Xz="theme:call",gQ="data-theme",Yz="exit",EU=0,m8=(Q)=>String(Q||"").trim();class kU{constructor(Q,J={}){this.element=Q,this.dataset=J,this.root=document.body,this.isEditor=!1,this.isListening=!1,this.unsubscribeViewport=null,this.initialRootTheme=this.root.getAttribute(gQ),this.topTheme=this.resolveThemeValue({datasetKey:"themeTop",attributeNames:["data-theme-top","data-trigger-top"]}),this.bottomTheme=this.resolveThemeValue({datasetKey:"themeBottom",attributeNames:["data-theme-bottom","data-trigger-bottom"]}),this.callEventName=this.resolveCallEventName(),this.onScrollCall=this.onScrollCall.bind(this),this.onViewportChange=this.onViewportChange.bind(this)}resolveThemeValue({datasetKey:Q,attributeNames:J=[]}){let Z=m8(this.dataset?.[Q]);if(Z)return Z;for(let $ of J){let K=m8(this.element.getAttribute($));if(K)return K}return""}resolveCallEventName(){let Q=m8(this.element.getAttribute("data-scroll-call"));if(Q)return Q;let J=m8(this.dataset.themeCall);if(J)return J;return EU+=1,`${Xz}:${EU}`}prepareScrollAttributes(){if(!this.element.hasAttribute("data-scroll"))this.element.setAttribute("data-scroll","");if(!this.element.hasAttribute("data-scroll-call"))this.element.setAttribute("data-scroll-call",this.callEventName);if(!this.element.hasAttribute("data-scroll-repeat"))this.element.setAttribute("data-scroll-repeat","")}init(){if(this.isEditor=l1(),this.isEditor)return;if(!this.topTheme&&!this.bottomTheme)return;this.onViewportChange(),this.unsubscribeViewport=d0.store.subscribe(this.onViewportChange)}isDesktop(){return d0.isAtLeast("lg")}onViewportChange(){if(this.isDesktop()){this.enable();return}this.disable({restoreTheme:!0})}enable(){if(this.isListening)return;this.prepareScrollAttributes(),window.addEventListener(this.callEventName,this.onScrollCall),this.isListening=!0}disable({restoreTheme:Q=!1}={}){if(this.isListening)window.removeEventListener(this.callEventName,this.onScrollCall),this.isListening=!1;if(Q)this.restoreInitialTheme()}restoreInitialTheme(){if(this.initialRootTheme){this.root.setAttribute(gQ,this.initialRootTheme);return}this.root.removeAttribute(gQ)}applyTheme(Q){let J=m8(Q);if(!J)return;this.root.setAttribute(gQ,J)}resolveEventTarget(Q){return Q?.target||Q?.$el||Q?.obj?.el||null}resolveEventWay(Q){return m8(Q?.way||Q?.mode).toLowerCase()}resolveEventDirection(Q){let J=m8(Q?.direction).toLowerCase();if(J)return J;return m8(this.root.getAttribute("data-direction")).toLowerCase()}isEnteringFromTop(Q){let J=this.resolveEventWay(Q),Z=m8(Q?.from).toLowerCase(),$=this.resolveEventDirection(Q);if(J!=="enter")return!1;if($==="down"||$==="right")return!0;return Z==="start"}isLeavingToTop(Q){let J=this.resolveEventWay(Q),Z=m8(Q?.from).toLowerCase(),$=this.resolveEventDirection(Q);if(J!=="leave"&&J!==Yz)return!1;if($==="up"||$==="left")return!0;return Z==="start"}onScrollCall(Q){let J=Q?.detail||{};if(this.resolveEventTarget(J)!==this.element)return;if(this.isEnteringFromTop(J)){this.applyTheme(this.bottomTheme);return}if(this.isLeavingToTop(J))this.applyTheme(this.topTheme)}destroy(){this.unsubscribeViewport?.(),this.unsubscribeViewport=null,this.disable()}}function AU(Q,J){let Z=new kU(Q,J);return x1(()=>{Z.init()}),X1(()=>{Z.destroy()}),Z}var uW={};j9(uW,{default:()=>bU});var dQ={"ring-3d":{orbit:[0,90,3.5],introDistance:6,parallax:[5,3],smoothing:0.05,exposure:1.25,fov:30,intro:{fade:!0,duration:1.8,delay:0.15,ease:"power2.out"}},star:{orbit:[20,82,1.15],fit:!0,parallax:[8,5],smoothing:0.06,exposure:1.4,fov:30,intro:{fade:!0,scaleFrom:0.8,duration:2.2,delay:0.15,ease:"expo.out"}}},fW="ring-3d";var IU=(Q,J)=>{if(Q==null)return J;if(Q==="")return!0;let Z=Q.trim().toLowerCase();if(["1","true","yes","on"].includes(Z))return!0;if(["0","false","no","off"].includes(Z))return!1;return J},K$=(Q,J)=>{let Z=Number.parseFloat(Q??"");return Number.isFinite(Z)?Z:J},Bz=(Q,J)=>{if(!Q)return J;let Z=Q.trim().split(/\s+/).map(($)=>Number.parseFloat($));return[Number.isFinite(Z[0])?Z[0]:J[0],Number.isFinite(Z[1])?Z[1]:J[1],Number.isFinite(Z[2])?Z[2]:J[2]]},yW=null;function jz(){if(!yW)yW=Promise.all([import("./chunk-3ad825q1.js"),import("./chunk-50a3kg53.js"),import("./chunk-ah5c4ypv.js")]).then(([Q,J,Z])=>({THREE:Q,GLTFLoader:J.GLTFLoader,RoomEnvironment:Z.RoomEnvironment}));return yW}var _W=new Map;function zz(Q,J){let Z=_W.get(Q);if(!Z)Z=new J.GLTFLoader().loadAsync(Q).then((K)=>K.scene),Z.catch(()=>_W.delete(Q)),_W.set(Q,Z);return Z}var c7={x:0,y:0},mQ=!1,PU=(Q)=>{c7.x=(Q.clientX/window.innerWidth-0.5)*2,c7.y=(Q.clientY/window.innerHeight-0.5)*2},TU=()=>{c7.x=0,c7.y=0};function Lz(){if(mQ)return;mQ=!0,window.addEventListener("mousemove",PU,{passive:!0}),document.addEventListener("mouseleave",TU,{passive:!0})}function Oz(){if(!mQ)return;mQ=!1,window.removeEventListener("mousemove",PU),document.removeEventListener("mouseleave",TU)}var cQ=new Set,pQ=!1,SU=()=>{cQ.forEach((Q)=>Q.update())};function Nz(Q){if(cQ.add(Q),Lz(),!pQ)pQ=!0,G9.ticker.add(SU)}function Fz(Q){if(cQ.delete(Q),cQ.size>0)return;if(pQ)pQ=!1,G9.ticker.remove(SU);Oz()}class wU{element;dataset;preset=dQ[fW];modelUrl="";motion=!0;baseTheta=0;basePhi=90;finalDistance=3.5;introDistance=null;parallaxX=0;parallaxY=0;smoothing=0.05;exposure=1.25;fov=30;fit=!1;modelRadius=1;fitDistance=1;currentTheta=0;currentPhi=90;targetTheta=0;targetPhi=90;distance=3.5;bundle=null;renderer=null;scene=null;camera=null;model=null;envMap=null;observer=null;resizeObserver=null;buildStarted=!1;ready=!1;visible=!1;destroyed=!1;constructor(Q,J){this.element=Q,this.dataset=J,this.update=this.update.bind(this),this.resize=this.resize.bind(this),this.onIntersect=this.onIntersect.bind(this)}init(){if(l1())return;if(this.modelUrl=this.dataset.modelUrl?.trim()??"",!this.modelUrl){console.warn("[webgl-other] Missing data-model-url. Add the .glb URL to the element.");return}let Q=this.dataset.type?.trim()??"";if(this.preset=dQ[Q]??dQ[fW],Q&&!dQ[Q])console.warn(`[webgl-other] Unknown data-type "${Q}". Falling back to "${fW}".`);this.motion=!(IU(this.dataset.respectReducedMotion,!0)&&s9());let J=Bz(this.dataset.orbit,this.preset.orbit);this.baseTheta=J[0],this.basePhi=J[1],this.finalDistance=K$(this.dataset.distance,J[2]);let Z=K$(this.dataset.distanceFrom,this.preset.introDistance??this.finalDistance);this.introDistance=this.preset.introDistance!=null||this.dataset.distanceFrom!=null?Z:null;let $=K$(this.dataset.parallax,1);this.parallaxX=this.motion?this.preset.parallax[0]*$:0,this.parallaxY=this.motion?this.preset.parallax[1]*$:0,this.smoothing=this.preset.smoothing,this.exposure=K$(this.dataset.exposure,this.preset.exposure),this.fov=K$(this.dataset.fov,this.preset.fov),this.fit=IU(this.dataset.fit,this.preset.fit??!1),this.currentTheta=this.targetTheta=this.baseTheta,this.currentPhi=this.targetPhi=this.basePhi,this.observer=new IntersectionObserver(this.onIntersect,{threshold:0.01}),this.observer.observe(this.element),this.resizeObserver=new ResizeObserver(this.resize),this.resizeObserver.observe(this.element)}onIntersect(Q){let J=Q[0];if(!J)return;if(this.visible=J.isIntersecting,J.isIntersecting&&!this.buildStarted)this.buildStarted=!0,this.build()}async build(){let Q=await jz();if(this.destroyed)return;this.bundle=Q;let{THREE:J}=Q,Z=new J.WebGLRenderer({alpha:!0,antialias:!0,powerPreference:"high-performance"});Z.setClearAlpha(0),Z.setPixelRatio(Math.min(window.devicePixelRatio||1,2)),Z.toneMapping=J.ACESFilmicToneMapping,Z.toneMappingExposure=this.exposure,this.renderer=Z;let $=Z.domElement;$.style.width="100%",$.style.height="100%",$.style.display="block",$.style.pointerEvents="none",$.style.opacity=this.motion&&this.preset.intro.fade?"0":"1",this.element.appendChild($),this.scene=new J.Scene,this.camera=new J.PerspectiveCamera(this.fov,1,0.01,100);let K=new J.PMREMGenerator(Z),W=new Q.RoomEnvironment;this.envMap=K.fromScene(W,0.04).texture,this.scene.environment=this.envMap,K.dispose(),this.disposeObject(W);let q;try{q=await zz(this.modelUrl,Q)}catch(z){console.error(`[webgl-other] Failed to load model: ${this.modelUrl}`,z);return}if(this.destroyed)return;this.model=q.clone(!0);let H=new J.Box3().setFromObject(this.model),Y=H.getCenter(new J.Vector3);this.model.position.sub(Y),this.scene.add(this.model);let B=H.getBoundingSphere(new J.Sphere).radius||1;if(this.fit)this.model.scale.setScalar(1/B),this.modelRadius=1;else this.modelRadius=B;if(this.distance=this.motion&&this.introDistance!=null?this.introDistance:this.finalDistance,this.resize(),this.positionCamera(),this.ready=!0,this.motion)this.playIntro(),Nz(this);else this.renderFrame()}playIntro(){if(!this.renderer)return;let{intro:Q}=this.preset,J=this.renderer.domElement;if(this.introDistance!=null&&this.introDistance!==this.finalDistance)G9.to(this,{distance:this.finalDistance,duration:Q.duration,delay:Q.delay,ease:Q.ease,overwrite:"auto"});if(Q.fade||Q.scaleFrom!=null){let Z={},$={duration:Q.duration,delay:Q.delay,ease:Q.ease,overwrite:"auto"};if(Q.fade)Z.opacity=0,$.opacity=1;if(Q.scaleFrom!=null)Z.scale=Q.scaleFrom,$.scale=1;G9.fromTo(J,Z,$)}}update(){if(!this.ready||!this.visible)return;this.targetTheta=this.baseTheta-c7.x*this.parallaxX,this.targetPhi=this.basePhi-c7.y*this.parallaxY,this.currentTheta+=(this.targetTheta-this.currentTheta)*this.smoothing,this.currentPhi+=(this.targetPhi-this.currentPhi)*this.smoothing,this.positionCamera(),this.renderFrame()}positionCamera(){if(!this.bundle||!this.camera)return;let Q=this.bundle.THREE.MathUtils.degToRad(this.currentTheta),J=this.bundle.THREE.MathUtils.degToRad(this.currentPhi),Z=this.fit?this.fitDistance*this.distance:this.distance,$=Math.sin(J);this.camera.position.set(Z*$*Math.sin(Q),Z*Math.cos(J),Z*$*Math.cos(Q)),this.camera.lookAt(0,0,0)}renderFrame(){if(!this.renderer||!this.scene||!this.camera)return;this.renderer.render(this.scene,this.camera)}resize(){if(!this.bundle||!this.renderer||!this.camera)return;let Q=this.element.clientWidth||1,J=this.element.clientHeight||1;if(this.renderer.setSize(Q,J,!1),this.camera.aspect=Q/J,this.camera.updateProjectionMatrix(),this.fit){let Z=this.bundle.THREE.MathUtils.degToRad(this.camera.fov),$=this.modelRadius/Math.sin(Z/2),K=2*Math.atan(Math.tan(Z/2)*this.camera.aspect),W=this.modelRadius/Math.sin(K/2);this.fitDistance=Math.max($,W)}if(!this.motion&&this.ready)this.positionCamera(),this.renderFrame()}disposeObject(Q){Q.traverse((J)=>{let Z=J;Z.geometry?.dispose?.();let $=Z.material;if(Array.isArray($))$.forEach((K)=>K.dispose?.());else $?.dispose?.()})}destroy(){if(this.destroyed=!0,Fz(this),this.observer?.disconnect(),this.observer=null,this.resizeObserver?.disconnect(),this.resizeObserver=null,this.renderer)G9.killTweensOf(this.renderer.domElement);if(G9.killTweensOf(this),this.envMap?.dispose(),this.envMap=null,this.renderer)this.renderer.dispose(),this.renderer.domElement.remove(),this.renderer=null;this.scene=null,this.camera=null,this.model=null,this.bundle=null,this.ready=!1}}function bU(Q,J){let Z=new wU(Q,J);return x1(()=>{Z.init()}),X1(()=>{Z.destroy()}),Z}var mW={};j9(mW,{default:()=>gU});var Rz=/localhost:6545|127\.0\.0\.1:6545/;function W$(){if(typeof import.meta>"u"||typeof import.meta.url!=="string")return!1;return Rz.test(import.meta.url)}function xU(){if(!W$()||document.getElementById("local-dev-banner"))return;let Q=document.createElement("div");Q.id="local-dev-banner",Q.textContent="LOCAL DEV",Q.setAttribute("aria-hidden","true"),Object.assign(Q.style,{position:"fixed",bottom:"12px",left:"12px",zIndex:"2147483647",padding:"6px 10px",background:"#00ff88",color:"#000",font:"600 11px/1 system-ui, sans-serif",borderRadius:"4px",pointerEvents:"none",letterSpacing:"0.04em"}),document.body.appendChild(Q)}var Dz=()=>{try{return import.meta.env||{}}catch{return{}}},vW=Dz(),hU=W$(),L9={IS_DEV:hU||vW.DEV===!0||!1,IS_PROD:!hU&&(vW.PROD===!0||!0),MODE:vW.MODE??"production"??"development",IS_MOBILE:typeof window<"u"&&window.matchMedia("(any-pointer: coarse)").matches,IS_DESKTOP:typeof window<"u"&&!window.matchMedia("(any-pointer: coarse)").matches,SUPPORTS_MODERN_VH:typeof window<"u"&&"CSS"in window&&"supports"in window.CSS&&window.CSS.supports("height: 100svh")&&window.CSS.supports("height: 100dvh")&&window.CSS.supports("height: 100lvh"),IS_TOUCH:typeof window<"u"&&(("ontouchstart"in window)||navigator.maxTouchPoints>0)};var wJ=Object.freeze({LOADING:"is-loading",FIRST_LOADED:"is-first-loaded",LOADED:"is-loaded",READY:"is-ready",FONTS_LOADED:"fonts-loaded",HAS_SCROLLED:"has-scrolled",SCROLLING:"is-scrolling",HAS_MODAL_OPEN:"has-modal-open",LAZY_CONTAINER:"c-lazy",LAZY_LOADED:"-lazy-loaded"}),Cz=Object.freeze({APP_READY:"app:ready",APP_DESTROYED:"app:destroyed",SCROLL_UPDATE:"scroll:update",VIEWPORT_CHANGE:"viewport:change",BREAKPOINT_CHANGE:"breakpoint:change",MODAL_OPEN:"modal:open",MODAL_CLOSE:"modal:close"});var q$=Object.freeze({EAGER:[{family:"Centrano 2",style:"normal",weight:400},{family:"Centrano 2",style:"normal",weight:500},{family:"Centrano 2",style:"normal",weight:700}],OPTIONS:{timeout:5000,display:"swap"}});var gW="[data-webgl-scene]",Vz="/public/webgl/halo.glb",Mz="https://halo-kohl-three.vercel.app",uU=0.2,Ez=["hero","tabs","banner"],fU="webgl:tabs-change",dW=(Q,J,Z)=>Math.min(Math.max(Q,J),Z),kz=(Q,J)=>{if(Q==null)return J;if(Q==="")return!0;let Z=Q.trim().toLowerCase();if(["1","true","yes","on"].includes(Z))return!0;if(["0","false","no","off"].includes(Z))return!1;return J},Az=(Q)=>{let J=Number.parseFloat(Q||"");return Number.isFinite(J)?dW(J,0,1):uU},yU=(Q)=>Ez.includes(Q),Iz=(Q)=>{if(typeof window>"u")return Q;if(L9.IS_DEV)return new URL(Q,import.meta.url).href;return new URL(Q,Mz).href},_U=()=>Iz(Vz);class vU{element;dataset;app=null;appLoadPromise=null;scenes=[];observer=null;visibleScenes=new Set;activeSceneKey=null;rafId=0;destroyed=!1;modelUrl=_U();visibilityThreshold=uU;activeTabsIndex=0;constructor(Q,J){this.element=Q,this.dataset=J,this.tick=this.tick.bind(this),this.onSceneIntersect=this.onSceneIntersect.bind(this),this.onTabsChange=this.onTabsChange.bind(this)}init(){if(l1())return;if(kz(this.dataset.webglRespectReducedMotion,!0)&&s9())return;if(this.modelUrl=this.dataset.webglModel?.trim()||_U(),this.visibilityThreshold=Az(this.dataset.webglThreshold),this.scenes=this.collectScenes(),!this.scenes.length){console.warn('[webgl] No scenes found. Add elements with data-webgl-scene="hero|tabs|banner".');return}window.addEventListener(fU,this.onTabsChange),this.observeScenes()}ensureApp(){if(this.app)return Promise.resolve();if(this.appLoadPromise)return this.appLoadPromise;return this.appLoadPromise=import("./chunk-brp81ybj.js").then(({WebglApp:Q})=>{if(this.destroyed)return;return this.app=new Q({modelUrl:this.modelUrl}),this.app.ready}).then(()=>{if(this.destroyed||!this.app)return;this.setupHeroProgress(),this.startRafLoop()}).catch((Q)=>{this.appLoadPromise=null,console.error("[webgl] Failed to initialize WebGL app:",Q)}),this.appLoadPromise}collectScenes(){let Q=this.element.matches(gW)?[this.element,...Array.from(this.element.querySelectorAll(gW))]:Array.from(this.element.querySelectorAll(gW)),J=new Set;return Q.reduce((Z,$)=>{let K=$.dataset.webglScene?.trim();if(!K)return Z;if(!yU(K))return console.warn(`[webgl] Ignoring unsupported scene "${K}".`),Z;if(J.has(K))return console.warn(`[webgl] Duplicate scene "${K}" found. Only the first instance is used.`),Z;return J.add(K),Z.push({key:K,element:$}),Z},[])}resolveSceneElement(Q){return this.scenes.find((J)=>J.key===Q)?.element||null}resolveHeroProgressTarget(Q){let J=Q.dataset.webglProgressTarget?.trim();if(J){let Z=this.element.querySelector(J);if(Z)return Z;let $=Q.closest(J);if($)return $;let K=document.querySelector(J);if(K)return K}return Q.parentElement instanceof HTMLElement?Q.parentElement:Q}setupHeroProgress(){let Q=this.resolveSceneElement("hero");if(!Q)return;let J=this.resolveHeroProgressTarget(Q);this.app?.progress(0),bQ(J,{top:"top",bottom:"bottom",callback:(Z)=>{this.app?.progress(dW(Z,0,1))}})}observeScenes(){this.observer=new IntersectionObserver(this.onSceneIntersect,{threshold:this.visibilityThreshold}),this.scenes.forEach((Q)=>{this.observer?.observe(Q.element)})}onTabsChange(Q){let Z=Number(Q.detail?.index);if(!Number.isFinite(Z))return;if(this.activeTabsIndex=dW(Math.round(Z),0,3),this.activeSceneKey==="tabs")this.app?.animateTabs(this.activeTabsIndex)}onSceneIntersect(Q){Q.forEach((J)=>{let Z=J.target;if(!(Z instanceof HTMLElement))return;let $=Z.dataset.webglScene?.trim();if(!$||!yU($))return;if(J.isIntersecting){this.visibleScenes.add($),this.ensureApp().then(()=>{if(!this.destroyed)this.activateScene($)});return}if(this.visibleScenes.delete($),this.activeSceneKey!==$)return;let K=this.scenes.find((W)=>this.visibleScenes.has(W.key));if(K){this.activateScene(K.key);return}this.activeSceneKey=null,this.app?.stopTicker()})}activateScene(Q){if(!this.app||this.activeSceneKey===Q)return;let J=this.resolveSceneElement(Q);if(!J)return;if(this.activeSceneKey=Q,this.app.setScene(Q,J),Q==="tabs")this.app.startTabsIntro(),this.app.animateTabs(this.activeTabsIndex);else if(Q!=="hero")this.app.progress(0);this.app.startTicker()}startRafLoop(){if(this.rafId)return;this.rafId=window.requestAnimationFrame(this.tick)}tick(Q){if(this.destroyed)return;this.app?.tick(Q),this.rafId=window.requestAnimationFrame(this.tick)}destroy(){if(this.destroyed=!0,this.rafId)window.cancelAnimationFrame(this.rafId),this.rafId=0;this.observer?.disconnect(),this.observer=null,this.visibleScenes.clear(),this.activeSceneKey=null,window.removeEventListener(fU,this.onTabsChange),this.app?.destroy(),this.app=null}}function gU(Q,J){let Z=new vU(Q,J);return x1(()=>{Z.init()}),X1(()=>{Z.destroy()}),Z}var cW={"./../carousel-embla.js":LW,"./../cycle.ts":OW,"./../dashboard.js":RW,"./../form.ts":DW,"./../iframe-embed.js":CW,"./../images.ts":VW,"./../marquee.js":MW,"./../orbit.js":kW,"./../shape.js":IW,"./../split.ts":PW,"./../split_old.ts":TW,"./../switcher.js":SW,"./../switcher_hover.js":wW,"./../tabs.js":xW,"./../theme.js":hW,"./../webgl-other.ts":uW,"./../webgl.ts":mW};function dU(Q="module",J){return Array.from((J||document).querySelectorAll(`[data-${Q}]`)).map((K)=>{let W=K,q=W.dataset[Q];if(W._moduleInitialized)return null;let H=cW[`./../${q}.ts`]?`./../${q}.ts`:`./../${q}.js`;if(cW[H]){let Y=cW[H].default;if(typeof Y==="function")try{return W._moduleInitialized=!0,Y(W,W.dataset)}catch(B){return delete W._moduleInitialized,console.error(`Failed to initialize module "${q}":`,B),null}else return console.error(`Module "${q}" does not export a default function`),null}else return console.error(`Module not found: "${q}"`),null}).filter((K)=>K!==null)}class X7{static instance;groups=[];constructor(){}static getInstance(){if(!X7.instance)X7.instance=new X7;return X7.instance}configsMatch(Q,J){let Z=Array.isArray(Q.threshold)?Q.threshold.join(","):String(Q.threshold??0),$=Array.isArray(J.threshold)?J.threshold.join(","):String(J.threshold??0);return Q.root===J.root&&Q.rootMargin===J.rootMargin&&Z===$}handleIntersection(Q){Q.forEach((J)=>{let Z=this.groups.find((B)=>{return Array.from(B.elements.keys()).includes(J.target)});if(!Z)return;let $=J.target,K=Z.elements.get($);if(!K)return;let{isIntersecting:W,intersectionRatio:q,boundingClientRect:H}=J,Y=-1;if(K.lastDirection!==void 0)Y=W?H.top>0?1:-1:H.top>0?-1:1;if(K.lastDirection=Y,W){if(K.callbacks.isIn?.({entry:J,direction:Y}),K.callbacks.callback?.({entry:J,direction:Y,isIn:!0}),K.once)this.removeElement($)}else K.callbacks.isOut?.({entry:J,direction:Y}),K.callbacks.callback?.({entry:J,direction:Y,isIn:!1})})}addElement(Q,J,Z){this.removeElement(Q);let $=this.groups.find((K)=>this.configsMatch(K.config,J));if(!$){let K=new IntersectionObserver((W)=>this.handleIntersection(W),{root:J.root??null,rootMargin:J.rootMargin??"0px",threshold:J.threshold??0});$={config:J,observer:K,elements:new Map},this.groups.push($)}return $.elements.set(Q,{callbacks:Z,once:J.once||!1,lastDirection:void 0}),$.observer.observe(Q),$}removeElement(Q){let J=this.groups.find((Z)=>Z.elements.has(Q));if(!J)return;if(J.observer.unobserve(Q),J.elements.delete(Q),J.elements.size===0)J.observer.disconnect(),this.groups=this.groups.filter((Z)=>Z!==J)}}class iZ{element;#J;#$;isIn(Q){}isOut(Q){}inView;callback;#Z=null;#Q=null;constructor(Q,J={root:null,rootMargin:"0px",threshold:0,autoStart:!1,once:!1,callback:void 0}){if(this.element=Q,this.#J=J,this.inView=!1,this.callback=J.callback||(()=>{}),J.autoStart)this.start()}start(){this.#$=X7.getInstance().addElement(this.element,this.#J,{isIn:(Q)=>{this.inView=!0,this.isIn?.(Q)},isOut:(Q)=>{this.inView=!1,this.isOut?.(Q)},callback:this.callback})}stop(){X7.getInstance().removeElement(this.element)}destroy(){this.stop(),this.#Z=null,this.#Q=null}}var mU=(Q)=>{let J=Q.getBoundingClientRect();return{top:J.top+o1.scroll,bottom:J.bottom+o1.scroll,width:J.width,height:J.height,left:J.left,right:J.right,wh:d0.height,ww:d0.width,offset:J.top+o1.scroll,centery:d0.height/2-J.height/2-J.top-o1.scroll,centerx:-d0.width/2+J.left+J.width/2}};function cU(Q,J,Z,$,K){return $+(K-$)*(Q-J)/(Z-J)}function pU(Q,J,Z){return Math.min(Math.max(Z,Q),J)}var Pz={bounds:[0,1],top:"bottom",bottom:"top",callback:void 0};class WW extends iZ{value=0;init=!1;isIn(Q){this.#Q()}isOut(Q){}bounds;config;resize;handleScroll;#J;#$;constructor(Q,J={}){super(Q,{autoStart:!0,once:!1,threshold:0});this.element=Q,this.config={...Pz,...J},this.#Z(),this.#J=o1.add(this.#Q.bind(this)),this.#$=d0.store.subscribe(()=>{this.#Z()}),this.init=!0,this.#Q()}#Z=()=>{this.bounds=Tz(this.element,this.config),this.resize?.(this.bounds),this.#Q()};#Q(){if(!this.inView||!this.init)return;this.value=pU(0,1,cU(o1.scroll,this.bounds.top,this.bounds.bottom,this.config.bounds[0],this.config.bounds[1])),this.handleScroll?.(this.value),this.config.callback?.(this.value)}destroy(){this.config.callback=void 0,this.#J(),this.#$(),super.destroy()}}function Tz(Q,J){let Z=mU(Q),{top:$,bottom:K,wh:W}=Z,q=W/2;return Z.top=$-(J.top==="center"?q:J.top==="bottom"?W:0),Z.bottom=K-(J.bottom==="center"?q:J.bottom==="bottom"?W:0),Z}function lU(){dU("module"),CG(),oU(),o1.resize()}function oU(){let Q=window.location.pathname;document.querySelectorAll('a[aria-current="page"], a.w--current').forEach((J)=>{J.removeAttribute("aria-current"),J.classList.remove("w--current")}),document.querySelectorAll(`a[href="${Q}"]`).forEach((J)=>{J.setAttribute("aria-current","page"),J.classList.add("w--current")})}class sU{navigate(Q){window.location.assign(Q)}updateNavigation(){oU()}destroy(){}}var pW=new sU;var Sz=".nav-menu_btn, .w-nav-button",wz="w--open";class iU{#J=null;#$=null;#Z=!1;init(){if(typeof document>"u"||this.#$)return;if(this.#J=document.querySelector(Sz),!this.#J)return;this.#Q(),this.#$=new MutationObserver(()=>this.#Q()),this.#$.observe(this.#J,{attributes:!0,attributeFilter:["class"]})}destroy(){if(this.#$?.disconnect(),this.#$=null,this.#Z)o1.start(),this.#Z=!1;this.#J=null}#Q(){if(!this.#J)return;let Q=this.#J.classList.contains(wz);if(Q===this.#Z)return;if(this.#Z=Q,Q)o1.stop();else o1.start()}}var nU=new iU;var I9=L9.IS_DEV,rU=typeof window<"u"&&window.TICK_FIRST_HIT?window.TICK_FIRST_HIT:null,nW=performance.now(),lW=rU?nW-rU:null,bz=performance.timeOrigin||(performance.timing&&performance.timing.navigationStart?performance.timing.navigationStart:Date.now()),rW=performance.now(),aU=rW,tU=!0,sQ=null,iQ=null,$X=()=>{sQ=performance.now()};if(typeof document<"u"){if(document.readyState==="complete"||document.readyState==="interactive")sQ=performance.now();else document.addEventListener("DOMContentLoaded",$X);if(I9&&"PerformanceObserver"in window)try{new PerformanceObserver((J)=>{for(let Z of J.getEntries()){let $=Z;if($.name==="first-contentful-paint"&&!iQ)iQ=$.startTime}}).observe({entryTypes:["paint"]})}catch(Q){}}var xz=null;async function hz(){if(typeof Worker>"u")return null;try{let J=new Blob([` function calculateTBT(longTaskDurations) { return longTaskDurations .filter((duration) => duration > 50) .reduce((sum, duration) => sum + (duration - 50), 0); } self.addEventListener('message', (e) => { const { type, data } = e.data; if (type === 'CALCULATE_TBT') { const tbt = calculateTBT(data); self.postMessage({ type: 'TBT_CALCULATED', data: tbt }); } }); `],{type:"application/javascript"}),Z=URL.createObjectURL(J),$=new Worker(Z);return $.onmessage=(K)=>{let{type:W,data:q}=K.data;if(W==="TBT_CALCULATED")O9.tbt=q},$}catch(Q){return null}}hz().then((Q)=>{xz=Q});var O9={fcp:null,lcp:null,fid:null,cls:0,tbt:0,tti:null,fmp:null};function O8(Q,J){if(Q<=J.good)return"#10b981";if(Q<=J.poor)return"#f59e0b";return"#ef4444"}function S8(Q,J){if(Q<=J.good)return"good";if(Q<=J.poor)return"needs-improvement";return"poor"}if(I9)try{performance.getEntriesByType("paint").forEach((J)=>{if(J.name==="first-contentful-paint")O9.fcp=J.startTime})}catch(Q){}if(I9)try{performance.getEntriesByType("paint").forEach((J)=>{if(J.name==="first-paint")O9.fmp=J.startTime})}catch(Q){}var aW=null;if(I9&&"PerformanceObserver"in window&&"observe"in PerformanceObserver.prototype)try{aW=new PerformanceObserver((Q)=>{let J=Q.getEntries(),Z=J[J.length-1];if(Z&&Z.renderTime)O9.lcp=Z.renderTime||Z.loadTime}),aW.observe({entryTypes:["largest-contentful-paint"]})}catch(Q){}var tW=null;if(I9&&"PerformanceObserver"in window)try{tW=new PerformanceObserver((Q)=>{for(let J of Q.getEntries()){let Z=J;if(!Z.hadRecentInput&&Z.value)O9.cls+=Z.value}}),tW.observe({entryTypes:["layout-shift"]})}catch(Q){}var lQ=null;if(I9&&"PerformanceObserver"in window)try{lQ=new PerformanceObserver((Q)=>{for(let J of Q.getEntries()){let Z=J;if(Z.processingStart&&Z.startTime)O9.fid=Z.processingStart-Z.startTime,lQ?.disconnect()}}),lQ.observe({entryTypes:["first-input"]})}catch(Q){}var eW=null,eU=[];if(I9&&"PerformanceObserver"in window)try{eW=new PerformanceObserver((Q)=>{for(let J of Q.getEntries()){let Z=J;if(Z.duration>50){let $=Z.duration-50;eU.push($),O9.tbt=eU.reduce((K,W)=>K+W,0)}}}),eW.observe({entryTypes:["longtask"]})}catch(Q){}if(I9)try{if(performance.timing){let Q=performance.timing,J=Q.domInteractive-Q.navigationStart,Z=Q.domContentLoadedEventEnd-Q.navigationStart;O9.tti=J>0?J:Z>0?Z:null}else if(performance.getEntriesByType){let Q=performance.getEntriesByType("navigation");if(Q.length>0){let J=Q[0];O9.tti=J.domInteractive>0?J.domInteractive:J.domContentLoadedEventEnd}}}catch(Q){}var fz=16.67;var nQ=fz,QX=50,S1={fps:0,avgFps:0,minFps:1/0,maxFps:0,frameTime:0,avgFrameTime:0,minFrameTime:1/0,maxFrameTime:0,droppedFrames:0,frameBudgetCompliance:100,smoothnessScore:100,memoryUsed:null,memoryTotal:null,totalFrames:0,longFrames:0},L8=[],yz=120,oW=null,U$=!1,G$=[],_z=50,H$=null,sW=0,X$=!1,Y$=!1,rQ=new Map;function KX(){if("memory"in performance&&typeof performance.memory<"u"){let Q=performance.memory;S1.memoryUsed=Q.usedJSHeapSize/1048576,S1.memoryTotal=Q.totalJSHeapSize/1048576}}function uz(){if(!X$)return;let Q=performance.now();if(H$===null){H$=Q,sW=0;return}let J=Q-H$;sW++;let Z=nQ*1.5;if(J>Z)vz(J,sW);H$=Q}function vz(Q,J){let Z={frameTime:Q,timestamp:performance.now(),frameNumber:J,slowFunctions:[],performanceMarks:[]};try{let $=performance.getEntriesByType("mark"),K=performance.getEntriesByType("measure"),W=performance.now()-100,q=$.filter((Y)=>Y.startTime>=W),H=K.filter((Y)=>Y.startTime>=W);if(H.sort((Y,B)=>B.duration-Y.duration),Z.performanceMarks=H.slice(0,10).map((Y)=>({name:Y.name,startTime:Y.startTime,duration:Y.duration})),Y$){let Y=Array.from(rQ.entries()).map(([B,z])=>({name:B,avgTime:z.totalTime/Math.max(z.callCount,1),maxTime:z.maxTime,callCount:z.callCount})).filter((B)=>B.maxTime>5).sort((B,z)=>z.maxTime-B.maxTime).slice(0,5);Z.slowFunctions=Y.map((B)=>({name:B.name,duration:B.maxTime}))}try{throw Error()}catch(Y){if(Y.stack)Z.stackTrace=Y.stack}}catch($){}if(G$.push(Z),G$.length>_z)G$.shift();if(I9&&X$){if(console.warn(`%c⚠️ Frame Drop Detected%c Frame #${J} took ${Q.toFixed(2)}ms (budget: ${nQ.toFixed(2)}ms)`,"background: #ef4444; color: white; padding: 4px 8px; border-radius: 4px; font-weight: bold;","color: #ef4444; font-weight: bold; margin-left: 8px;"),Z.performanceMarks.length>0)console.group("Slow Functions (Performance Marks):"),Z.performanceMarks.forEach(($,K)=>{let W=$.duration>16?"#ef4444":$.duration>8?"#f59e0b":"#6b7280";console.log(`%c${K+1}. ${$.name}%c ${$.duration.toFixed(2)}ms`,`color: ${W}; font-weight: bold;`,`color: ${W};`)}),console.groupEnd();if(Z.slowFunctions.length>0)console.group("Slow Functions (Instrumented):"),Z.slowFunctions.forEach(($,K)=>{let W=$.duration>16?"#ef4444":$.duration>8?"#f59e0b":"#6b7280";console.log(`%c${K+1}. ${$.name}%c ${$.duration.toFixed(2)}ms`,`color: ${W}; font-weight: bold;`,`color: ${W};`)}),console.groupEnd()}}function WX(Q,J){if(!Y$)return Q;let Z={original:Q,callCount:0,totalTime:0,maxTime:0,minTime:1/0};return rQ.set(J,Z),(...$)=>{let K=performance.now(),W=`fn:${J}`;try{performance.mark(`${W}:start`);let q=Q(...$);performance.mark(`${W}:end`),performance.measure(W,`${W}:start`,`${W}:end`);let H=performance.now()-K;Z.callCount++,Z.totalTime+=H,Z.maxTime=Math.max(Z.maxTime,H),Z.minTime=Math.min(Z.minTime,H);try{performance.clearMarks(`${W}:start`),performance.clearMarks(`${W}:end`),performance.clearMeasures(W)}catch(Y){}return q}catch(q){let H=performance.now()-K;throw Z.callCount++,Z.totalTime+=H,q}}}function gz(Q,J=""){if(!Y$)return;Object.getOwnPropertyNames(Object.getPrototypeOf(Q)).forEach((Z)=>{let $=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Q),Z);if($&&typeof $.value==="function"&&Z!=="constructor"){let K=Q[Z];Q[Z]=WX(K.bind(Q),`${J}.${Z}`)}})}var H8=null,GJ=!0,qX="fps-display-visible",p7=0,l7=0;function HX(){let Q=document.createElement("div");return Q.textContent="FPS: --",Q.style.position="fixed",Q.style.bottom="0",Q.style.left="0",Q.style.backgroundColor="black",Q.style.color="white",Q.style.padding="8px 12px",Q.style.fontFamily="monospace",Q.style.fontSize="8px",Q.style.zIndex="999999",Q.style.pointerEvents="none",Q.style.display=GJ?"block":"none",document.body.appendChild(Q),Q}function GX(){let Q=localStorage.getItem(qX);if(Q!==null)GJ=Q==="true"}function dz(){localStorage.setItem(qX,String(GJ))}function oQ(){if(GJ=!GJ,H8)H8.style.display=GJ?"block":"none";dz()}function mz(){if(!H8||!GJ)return;p7++;let Q=performance.now();if(l7===0){l7=Q;return}let J=Q-l7;if(p7>=10&&J>0){let Z=Math.round(1000*p7/J);if(Z>0)H8.textContent=`FPS: ${Z}`;p7=0,l7=Q}}var UX=(Q)=>{if(Q.shiftKey&&(Q.key==="F"||Q.key==="f"))Q.preventDefault(),oQ()};function JX(){if(typeof document>"u"||!document.body)return;GX(),H8=HX(),window.addEventListener("keydown",UX)}function cz(){if(typeof document>"u"||!document.body)return;if(!I9)return;if(!H8||!H8.parentNode)GX(),H8=HX(),l7=performance.now(),p7=0;if(!U$)aQ()}if(I9&&typeof document<"u")if(document.body)JX();else document.addEventListener("DOMContentLoaded",JX);function aQ(){if(U$)return;U$=!0,l7=performance.now(),p7=0,G9.ticker.add((Q,J,Z)=>{if(X$)uz();let $=J/1000,K=J;if(S1.minFrameTime=Math.min(S1.minFrameTime,K),S1.maxFrameTime=Math.max(S1.maxFrameTime,K),S1.minFps=Math.min(S1.minFps,S1.fps),S1.maxFps=Math.max(S1.maxFps,S1.fps),K>nQ)S1.droppedFrames++;if(K>QX)S1.longFrames++;if(L8.push(K),L8.length>yz)L8.shift();if(L8.length>0){let q=L8.reduce((H,Y)=>H+Y,0);S1.avgFrameTime=q/L8.length,S1.avgFps=Math.round(1000/S1.avgFrameTime)}let W=L8.filter((q)=>q<=nQ).length;if(S1.frameBudgetCompliance=W/L8.length*100,L8.length>=30){let q=L8.reduce((Y,B)=>{let z=B-S1.avgFrameTime;return Y+z*z},0)/L8.length,H=Math.sqrt(q);S1.smoothnessScore=Math.max(0,Math.min(100,100-H/5*50))}if(S1.totalFrames++,mz(),S1.totalFrames%60===0)KX()})}function ZX(){if(oW!==null)oW(),oW=null;U$=!1,H$=null}if(I9)aQ();function pz(){S1={fps:0,avgFps:0,minFps:1/0,maxFps:0,frameTime:0,avgFrameTime:0,minFrameTime:1/0,maxFrameTime:0,droppedFrames:0,frameBudgetCompliance:100,smoothnessScore:100,memoryUsed:null,memoryTotal:null,totalFrames:0,longFrames:0},L8.length=0,KX()}function lz(){if(!I9)return;let Q=S1,J=O8(Q.avgFps,{good:55,poor:30}),Z=S8(Q.avgFps,{good:55,poor:30});console.log(`%cFPS%c ${Q.avgFps} (${Q.fps} current, ${Q.minFps}-${Q.maxFps} range) %c(${Z})`,"background: #8b5cf6; color: white; padding: 2px 6px; border-radius: 3px; font-weight: bold; font-size: 0.85em;",`color: ${J}; font-weight: bold; font-size: 0.85em;`,`color: ${J}; font-size: 0.85em;`);let $=O8(Q.avgFrameTime,{good:20,poor:33.33}),K=S8(Q.avgFrameTime,{good:20,poor:33.33});console.log(`%cFrame Time%c ${Q.avgFrameTime.toFixed(2)}ms (${Q.minFrameTime.toFixed(2)}-${Q.maxFrameTime.toFixed(2)}ms) %c(${K})`,"background: #8b5cf6; color: white; padding: 2px 6px; border-radius: 3px; font-weight: bold; font-size: 0.85em;",`color: ${$}; font-weight: bold; font-size: 0.85em;`,`color: ${$}; font-size: 0.85em;`);let W=Q.totalFrames>0?Q.droppedFrames/Q.totalFrames*100:0,q=O8(W,{good:5,poor:20}),H=S8(W,{good:5,poor:20});console.log(`%cDropped Frames%c ${Q.droppedFrames} (${W.toFixed(1)}%) %c(${H})`,"background: #8b5cf6; color: white; padding: 2px 6px; border-radius: 3px; font-weight: bold; font-size: 0.85em;",`color: ${q}; font-weight: bold; font-size: 0.85em;`,`color: ${q}; font-size: 0.85em;`);let Y=O8(100-Q.frameBudgetCompliance,{good:5,poor:20}),B=S8(100-Q.frameBudgetCompliance,{good:5,poor:20});console.log(`%cBudget Compliance%c ${Q.frameBudgetCompliance.toFixed(1)}% %c(${B})`,"background: #8b5cf6; color: white; padding: 2px 6px; border-radius: 3px; font-weight: bold; font-size: 0.85em;",`color: ${Y}; font-weight: bold; font-size: 0.85em;`,`color: ${Y}; font-size: 0.85em;`);let z=O8(100-Q.smoothnessScore,{good:10,poor:30}),L=S8(100-Q.smoothnessScore,{good:10,poor:30});if(console.log(`%cSmoothness%c ${Q.smoothnessScore.toFixed(1)}/100 %c(${L})`,"background: #8b5cf6; color: white; padding: 2px 6px; border-radius: 3px; font-weight: bold; font-size: 0.85em;",`color: ${z}; font-weight: bold; font-size: 0.85em;`,`color: ${z}; font-size: 0.85em;`),Q.longFrames>0){let j=Q.totalFrames>0?Q.longFrames/Q.totalFrames*100:0,F=O8(j,{good:1,poor:5}),R=S8(j,{good:1,poor:5});console.log(`%cLong Frames%c ${Q.longFrames} (${j.toFixed(1)}%, >${QX}ms) %c(${R})`,"background: #8b5cf6; color: white; padding: 2px 6px; border-radius: 3px; font-weight: bold; font-size: 0.85em;",`color: ${F}; font-weight: bold; font-size: 0.85em;`,`color: ${F}; font-size: 0.85em;`)}if(Q.memoryUsed!==null&&Q.memoryTotal!==null){let j=Q.memoryUsed/Q.memoryTotal*100,F=O8(j,{good:50,poor:80});console.log(`%cMemory%c ${Q.memoryUsed.toFixed(1)}MB / ${Q.memoryTotal.toFixed(1)}MB (${j.toFixed(1)}%)`,"background: #8b5cf6; color: white; padding: 2px 6px; border-radius: 3px; font-weight: bold; font-size: 0.85em;",`color: ${F}; font-weight: bold; font-size: 0.85em;`)}console.log(`%cTotal Frames Tracked%c ${Q.totalFrames}`,"background: #8b5cf6; color: white; padding: 2px 6px; border-radius: 3px; font-weight: bold; font-size: 0.85em;","color: #6b7280; font-size: 0.85em;")}function iW(){if(!I9)return;let{fcp:Q,lcp:J,fid:Z,cls:$,tbt:K}=O9;if(Q!==null){let H=O8(Q,{good:1800,poor:3000}),Y=S8(Q,{good:1800,poor:3000});console.log(`%cFCP%c ${Q.toFixed(0)}ms %c(${Y})`,"background: #6366f1; color: white; padding: 2px 6px; border-radius: 3px; font-weight: bold; font-size: 0.85em;",`color: ${H}; font-weight: bold; font-size: 0.85em;`,`color: ${H}; font-size: 0.85em;`)}if(J!==null){let H=O8(J,{good:2500,poor:4000}),Y=S8(J,{good:2500,poor:4000});console.log(`%cLCP%c ${J.toFixed(0)}ms %c(${Y})`,"background: #6366f1; color: white; padding: 2px 6px; border-radius: 3px; font-weight: bold; font-size: 0.85em;",`color: ${H}; font-weight: bold; font-size: 0.85em;`,`color: ${H}; font-size: 0.85em;`)}if(Z!==null){let H=O8(Z,{good:100,poor:300}),Y=S8(Z,{good:100,poor:300});console.log(`%cFID%c ${Z.toFixed(2)}ms %c(${Y})`,"background: #6366f1; color: white; padding: 2px 6px; border-radius: 3px; font-weight: bold; font-size: 0.85em;",`color: ${H}; font-weight: bold; font-size: 0.85em;`,`color: ${H}; font-size: 0.85em;`)}let W=O8($,{good:0.1,poor:0.25}),q=S8($,{good:0.1,poor:0.25});if(console.log(`%cCLS%c ${$.toFixed(3)} %c(${q})`,"background: #6366f1; color: white; padding: 2px 6px; border-radius: 3px; font-weight: bold; font-size: 0.85em;",`color: ${W}; font-weight: bold; font-size: 0.85em;`,`color: ${W}; font-size: 0.85em;`),K>0){let H=O8(K,{good:200,poor:600}),Y=S8(K,{good:200,poor:600});console.log(`%cTBT%c ${K.toFixed(0)}ms %c(${Y})`,"background: #6366f1; color: white; padding: 2px 6px; border-radius: 3px; font-weight: bold; font-size: 0.85em;",`color: ${H}; font-weight: bold; font-size: 0.85em;`,`color: ${H}; font-size: 0.85em;`)}}var i9={getJsLoadDelay(){return nW},getTimeSincePageLoad(){return performance.timeOrigin+performance.now()-bz},getWebVitals(){return{...O9}},showWebVitals(){iW()},getAnimationMetrics(){return{...S1}},showAnimationMetrics(){lz()},resetAnimationMetrics(){pz()},startFrameTracking(){aQ()},stopFrameTracking(){ZX()},enableFrameDropDetection(Q=!0){if(X$=Q,Q&&!U$)aQ()},disableFrameDropDetection(){X$=!1},enableFunctionInstrumentation(Q=!0){Y$=Q},disableFunctionInstrumentation(){Y$=!1},instrumentFunction(Q,J){return WX(Q,J)},instrumentObjectMethods(Q,J=""){gz(Q,J)},getFrameDropHistory(){return[...G$]},getInstrumentedFunctionStats(){return Array.from(rQ.entries()).map(([Q,J])=>({name:Q,callCount:J.callCount,avgTime:J.totalTime/Math.max(J.callCount,1),maxTime:J.maxTime,minTime:J.minTime===1/0?0:J.minTime,totalTime:J.totalTime}))},clearFrameDropHistory(){G$.length=0},clearInstrumentedFunctionStats(){rQ.clear()},toggleFpsDisplay(){oQ()},showFpsDisplay(){if(!GJ)oQ()},hideFpsDisplay(){if(GJ)oQ()},restoreFpsDisplay(){cz()},add(Q,J=!1){if(!I9)return;let Z=performance.now(),$=((Z-rW)/1000).toFixed(2),K=((Z-aU)/1000).toFixed(2);if(tU){let W=(nW/1000).toFixed(2),q=[];if(q.push(`js → ${W}s`),lW!==null&&lW>0){let H=(lW/1000).toFixed(2);q.push(`eval → ${H}s`)}if(sQ!==null){let H=((sQ-rW)/1000).toFixed(2);q.push(`DOM → ${H}s`)}if(iQ!==null){let H=(iQ/1000).toFixed(2);q.push(`render → ${H}s`)}else if(O9.fcp!==null){let H=(O9.fcp/1000).toFixed(2);q.push(`render → ${H}s`)}if(console.log(`%c⏱%c${Q}%c→ ${$}s%c ${q.join(` `)}`,"background: #6366f1; color: white; padding: 2px 6px; border-radius: 3px; font-weight: bold;","background: #374151; color: #e5e7eb; padding: 2px 6px; border-radius: 3px; font-weight: 500;","color: #10b981; font-weight: bold;","color: #9ca3af; font-size: 0.85em; font-style: italic;"),J)setTimeout(()=>{iW()},1000);tU=!1}else if(console.log(`%c⏱%c${Q}%c→ ${$}s%c (Δ ${K}s)`,"background: #6366f1; color: white; padding: 2px 6px; border-radius: 3px; font-weight: bold;","background: #374151; color: #e5e7eb; padding: 2px 6px; border-radius: 3px; font-weight: 500;","color: #10b981; font-weight: bold;","color: #6b7280; font-size: 0.9em;"),J)iW();aU=Z},cleanup(){if(aW?.disconnect(),tW?.disconnect(),lQ?.disconnect(),eW?.disconnect(),ZX(),H8&&H8.parentNode)H8.parentNode.removeChild(H8),H8=null;document.removeEventListener("DOMContentLoaded",$X),window.removeEventListener("keydown",UX)}};if(I9)i9.add("start",!0);class Jq{static async load(Q){if(!("fonts"in document))return console.warn("Font Loading API not supported in this browser"),[];if(!Q||Q.length===0)return[];let J=Q.map((Z)=>{let K=`${Z.style||"normal"} ${Z.weight} 1em "${Z.family}"`;return document.fonts.load(K)});try{let Z=await Promise.all(J);if(document.documentElement.classList.add(wJ.FONTS_LOADED),L9.IS_DEV)console.log(`✅ Loaded ${Q.length} font(s)`);return Z.flat()}catch(Z){throw console.error("Font loading failed:",Z),Error(`Font loading failed: ${Z}`)}}static async loadWithTimeout(Q,J=5000){let Z=new Promise(($,K)=>{setTimeout(()=>{K(Error(`Font loading timeout after ${J}ms`))},J)});try{return await Promise.race([this.load(Q),Z])}catch($){if(document.documentElement.classList.add(wJ.FONTS_LOADED),L9.IS_DEV)console.warn("⚠️ Font loading timeout - continuing anyway");return[]}}static check(Q,J=400){if(!("fonts"in document))return!1;return document.fonts.check(`${J} 1em "${Q}"`)}static async ready(){if(!("fonts"in document))return;await document.fonts.ready,document.documentElement.classList.add(wJ.FONTS_LOADED)}static get status(){if(!("fonts"in document))return"unsupported";return document.fonts.status}}function XX({gutterCssVar:Q="--grid-gutter",marginCssVar:J="--grid-margin",rgbaColor:Z="color-mix(in srgb, currentColor 10%, transparent)"}={}){let $=document.createElement("div");document.body.append($),YX($,Z),$.classList.add("grid_helper"),oz($,Z)}function YX(Q,J){Q.innerHTML="";let Z=Number(window.getComputedStyle(Q).getPropertyValue("--_layout---grid--columns")),$;for(var K=0;KYX(Q,J));let Z=!1,$=!1;document.addEventListener("keydown",(K)=>{if(K.key=="Control")Z=!0;else if(Z&&K.key=="g"){if($)Q.classList.remove("is-active");else Q.classList.add("is-active");$=!$}}),document.addEventListener("keyup",(K)=>{if(K.key=="Control")Z=!1})}class Zq{async init(){try{XX({}),console.log("✅ DevTools initialized")}catch(Q){throw console.warn("⚠️ DevTools initialization failed:",Q),Q}}destroy(){}static logPerformance(Q,J){let Z=(performance.now()-J).toFixed(2);console.log(`⚡ ${Q}: ${Z}ms`)}static logModule(Q,J,Z){let $=J==="success"?"✅":J==="warning"?"⚠️":"❌",K=Z?`: ${Z}`:"";console.log(`${$} ${Q}${K}`)}}class BX{#J=new Map;#$="idle";#Z=null;constructor(){if(this.#Z=performance.now(),L9.IS_DEV)console.log("\uD83D\uDE80 App initializing...");this.#Q()}async#Q(){if(this.#$!=="idle")throw Error("App already initialized");this.#$="initializing";try{this.#K(),this.#G(),this.#J.set("scroll",o1),this.#J.set("pages",pW),await this.#W(),lU(),nU.init(),this.#$="ready",this.#U(),this.#q()}catch(Q){this.#$="failed",this.#H(Q)}}async#K(){if(q$.EAGER.length===0){if(L9.IS_DEV)console.log("⏭️ Font loading skipped (no eager fonts configured)");document.documentElement.classList.add(wJ.FONTS_LOADED);return}try{if(await Jq.loadWithTimeout(q$.EAGER,q$.OPTIONS.timeout),L9.IS_DEV)console.log("✅ Fonts loaded")}catch(Q){console.warn("⚠️ Font loading failed:",Q)}}#G(){try{if(d0.init(),this.#J.set("viewport",d0),L9.IS_DEV)console.log("✅ Viewport initialized")}catch(Q){throw console.error("❌ Viewport initialization failed:",Q),Q}}async#W(){if(L9.IS_PROD)return;try{let Q=new Zq;await Q.init(),this.#J.set("devTools",Q)}catch(Q){console.warn("⚠️ DevTools initialization failed:",Q)}}#U(){if(document.documentElement.classList.add(wJ.READY),W$())xU(),console.info("[halo] Local dev bundle active:",import.meta.url.replace(/\/[^/]+$/,""));i9.add("app-ready",!0),window.dispatchEvent(new CustomEvent("app:ready",{detail:{status:this.#$,modules:Array.from(this.#J.keys()),initTime:this.initTime}}))}#q(){if(!this.#Z)return;let Q=(performance.now()-this.#Z).toFixed(2);if(L9.IS_DEV)console.log(`✅ App ready in ${Q}ms`)}get initTime(){return this.#Z?performance.now()-this.#Z:0}#H(Q){if(console.error("❌ App initialization failed:",Q),document.documentElement.classList.add("app-error"),window.dispatchEvent(new CustomEvent("app:error",{detail:{error:Q}})),L9.IS_DEV)this.#Y(Q)}#Y(Q){let J=Q instanceof Error?Q.message:String(Q),Z=Q instanceof Error?Q.stack:"",$=`

⚠️ App Initialization Failed

${J}

${Z?`
${Z}
`:""}
`;document.body.insertAdjacentHTML("beforeend",$)}get(Q){let J=this.#J.get(Q);if(!J&&L9.IS_DEV)console.warn(`⚠️ Module "${Q}" not found`);return J}get status(){return this.#$}get isReady(){return this.#$==="ready"}get scroll(){return o1}get viewport(){return d0}get pages(){return pW}destroy(){console.log("\uD83E\uDDF9 Cleaning up app..."),this.#J.forEach((Q,J)=>{try{if(typeof Q.destroy==="function")Q.destroy(),console.log(`✅ ${J} destroyed`)}catch(Z){console.error(`❌ Failed to destroy ${J}:`,Z)}}),i9.cleanup(),this.#J.clear(),this.#$="idle",this.#Z=null}get performance(){return{getWebVitals:()=>i9.getWebVitals(),showWebVitals:()=>i9.showWebVitals(),getAnimationMetrics:()=>i9.getAnimationMetrics(),showAnimationMetrics:()=>i9.showAnimationMetrics(),resetAnimationMetrics:()=>i9.resetAnimationMetrics(),enableFrameDropDetection:()=>i9.enableFrameDropDetection(),disableFrameDropDetection:()=>i9.disableFrameDropDetection(),getFrameDropHistory:()=>i9.getFrameDropHistory(),toggleFpsDisplay:()=>i9.toggleFpsDisplay()}}}var sz=new BX;if(typeof window<"u")window.app=sz,window.tick=i9;export{sz as App};