(()=>{var TW=Object.create;var{getPrototypeOf:wW,defineProperty:JJ,getOwnPropertyNames:zK,getOwnPropertyDescriptor:fW}=Object,LK=Object.prototype.hasOwnProperty;var hW=(Q,Z,$)=>{$=Q!=null?TW(wW(Q)):{};let J=Z||!Q||!Q.__esModule?JJ($,"default",{value:Q,enumerable:!0}):$;for(let K of zK(Q))if(!LK.call(J,K))JJ(J,K,{get:()=>Q[K],enumerable:!0});return J},UK=new WeakMap,oH=(Q)=>{var Z=UK.get(Q),$;if(Z)return Z;if(Z=JJ({},"__esModule",{value:!0}),Q&&typeof Q==="object"||typeof Q==="function")zK(Q).map((J)=>!LK.call(Z,J)&&JJ(Z,J,{get:()=>Q[J],enumerable:!($=fW(Q,J))||$.enumerable}));return UK.set(Q,Z),Z},xW=(Q,Z)=>()=>(Z||Q((Z={exports:{}}).exports,Z),Z.exports);var w0=(Q,Z)=>{for(var $ in Z)JJ(Q,$,{get:Z[$],enumerable:!0,configurable:!0,set:(J)=>Z[$]=()=>J})};var T6=xW((bJ,C7)=>{/*! * matter-js 0.20.0 by @liabru * http://brm.io/matter-js/ * License MIT * * The MIT License (MIT) * * Copyright (c) Liam Brummitt and contributors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */(function(Z,$){if(typeof bJ==="object"&&typeof C7==="object")C7.exports=$();else if(typeof define==="function"&&define.amd)define("Matter",[],$);else if(typeof bJ==="object")bJ.Matter=$();else Z.Matter=$()})(bJ,function(){return function(Q){var Z={};function $(J){if(Z[J])return Z[J].exports;var K=Z[J]={i:J,l:!1,exports:{}};return Q[J].call(K.exports,K,K.exports,$),K.l=!0,K.exports}return $.m=Q,$.c=Z,$.d=function(J,K,W){if(!$.o(J,K))Object.defineProperty(J,K,{enumerable:!0,get:W})},$.r=function(J){if(typeof Symbol<"u"&&Symbol.toStringTag)Object.defineProperty(J,Symbol.toStringTag,{value:"Module"});Object.defineProperty(J,"__esModule",{value:!0})},$.t=function(J,K){if(K&1)J=$(J);if(K&8)return J;if(K&4&&typeof J==="object"&&J&&J.__esModule)return J;var W=Object.create(null);if($.r(W),Object.defineProperty(W,"default",{enumerable:!0,value:J}),K&2&&typeof J!="string")for(var G in J)$.d(W,G,function(H){return J[H]}.bind(null,G));return W},$.n=function(J){var K=J&&J.__esModule?function(){return J.default}:function(){return J};return $.d(K,"a",K),K},$.o=function(J,K){return Object.prototype.hasOwnProperty.call(J,K)},$.p="",$($.s=20)}([function(Q,Z){var $={};Q.exports=$,function(){$._baseDelta=16.666666666666668,$._nextId=0,$._seed=0,$._nowStartTime=+new Date,$._warnedOnce={},$._decomp=null,$.extend=function(K,W){var G,H,z;if(typeof W==="boolean")G=2,z=W;else G=1,z=!0;for(var L=G;L0;W--){var G=Math.floor($.random()*(W+1)),H=K[W];K[W]=K[G],K[G]=H}return K},$.choose=function(K){return K[Math.floor($.random()*K.length)]},$.isElement=function(K){if(typeof HTMLElement<"u")return K instanceof HTMLElement;return!!(K&&K.nodeType&&K.nodeName)},$.isArray=function(K){return Object.prototype.toString.call(K)==="[object Array]"},$.isFunction=function(K){return typeof K==="function"},$.isPlainObject=function(K){return typeof K==="object"&&K.constructor===Object},$.isString=function(K){return toString.call(K)==="[object String]"},$.clamp=function(K,W,G){if(KG)return G;return K},$.sign=function(K){return K<0?-1:1},$.now=function(){if(typeof window<"u"&&window.performance){if(window.performance.now)return window.performance.now();else if(window.performance.webkitNow)return window.performance.webkitNow()}if(Date.now)return Date.now();return new Date-$._nowStartTime},$.random=function(K,W){return K=typeof K<"u"?K:0,W=typeof W<"u"?W:1,K+J()*(W-K)};var J=function(){return $._seed=($._seed*9301+49297)%233280,$._seed/233280};$.colorToNumber=function(K){if(K=K.replace("#",""),K.length==3)K=K.charAt(0)+K.charAt(0)+K.charAt(1)+K.charAt(1)+K.charAt(2)+K.charAt(2);return parseInt(K,16)},$.logLevel=1,$.log=function(){if(console&&$.logLevel>0&&$.logLevel<=3)console.log.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},$.info=function(){if(console&&$.logLevel>0&&$.logLevel<=2)console.info.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},$.warn=function(){if(console&&$.logLevel>0&&$.logLevel<=3)console.warn.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},$.warnOnce=function(){var K=Array.prototype.slice.call(arguments).join(" ");if(!$._warnedOnce[K])$.warn(K),$._warnedOnce[K]=!0},$.deprecated=function(K,W,G){K[W]=$.chain(function(){$.warnOnce("\uD83D\uDD05 deprecated \uD83D\uDD05",G)},K[W])},$.nextId=function(){return $._nextId++},$.indexOf=function(K,W){if(K.indexOf)return K.indexOf(W);for(var G=0;GJ.max.x)J.max.x=H.x;if(H.xJ.max.y)J.max.y=H.y;if(H.y0)J.max.x+=W.x;else J.min.x+=W.x;if(W.y>0)J.max.y+=W.y;else J.min.y+=W.y}},$.contains=function(J,K){return K.x>=J.min.x&&K.x<=J.max.x&&K.y>=J.min.y&&K.y<=J.max.y},$.overlaps=function(J,K){return J.min.x<=K.max.x&&J.max.x>=K.min.x&&J.max.y>=K.min.y&&J.min.y<=K.max.y},$.translate=function(J,K){J.min.x+=K.x,J.max.x+=K.x,J.min.y+=K.y,J.max.y+=K.y},$.shift=function(J,K){var W=J.max.x-J.min.x,G=J.max.y-J.min.y;J.min.x=K.x,J.max.x=K.x+W,J.min.y=K.y,J.max.y=K.y+G}}()},function(Q,Z){var $={};Q.exports=$,function(){$.create=function(J,K){return{x:J||0,y:K||0}},$.clone=function(J){return{x:J.x,y:J.y}},$.magnitude=function(J){return Math.sqrt(J.x*J.x+J.y*J.y)},$.magnitudeSquared=function(J){return J.x*J.x+J.y*J.y},$.rotate=function(J,K,W){var G=Math.cos(K),H=Math.sin(K);if(!W)W={};var z=J.x*G-J.y*H;return W.y=J.x*H+J.y*G,W.x=z,W},$.rotateAbout=function(J,K,W,G){var H=Math.cos(K),z=Math.sin(K);if(!G)G={};var L=W.x+((J.x-W.x)*H-(J.y-W.y)*z);return G.y=W.y+((J.x-W.x)*z+(J.y-W.y)*H),G.x=L,G},$.normalise=function(J){var K=$.magnitude(J);if(K===0)return{x:0,y:0};return{x:J.x/K,y:J.y/K}},$.dot=function(J,K){return J.x*K.x+J.y*K.y},$.cross=function(J,K){return J.x*K.y-J.y*K.x},$.cross3=function(J,K,W){return(K.x-J.x)*(W.y-J.y)-(K.y-J.y)*(W.x-J.x)},$.add=function(J,K,W){if(!W)W={};return W.x=J.x+K.x,W.y=J.y+K.y,W},$.sub=function(J,K,W){if(!W)W={};return W.x=J.x-K.x,W.y=J.y-K.y,W},$.mult=function(J,K){return{x:J.x*K,y:J.y*K}},$.div=function(J,K){return{x:J.x/K,y:J.y/K}},$.perp=function(J,K){return K=K===!0?-1:1,{x:K*-J.y,y:K*J.x}},$.neg=function(J){return{x:-J.x,y:-J.y}},$.angle=function(J,K){return Math.atan2(K.y-J.y,K.x-J.x)},$._temp=[$.create(),$.create(),$.create(),$.create(),$.create(),$.create()]}()},function(Q,Z,$){var J={};Q.exports=J;var K=$(2),W=$(0);(function(){J.create=function(G,H){var z=[];for(var L=0;L0)return!1;U=q}return!0},J.scale=function(G,H,z,L){if(H===1&&z===1)return G;L=L||J.centre(G);var N,U;for(var q=0;q=0?q-1:G.length-1],M=G[q],X=G[(q+1)%G.length],E=H[q0)H|=2;if(H===3)return!1}if(H!==0)return!0;else return null},J.hull=function(G){var H=[],z=[],L,N;G=G.slice(0),G.sort(function(U,q){var F=U.x-q.x;return F!==0?F:U.y-q.y});for(N=0;N=2&&K.cross3(z[z.length-2],z[z.length-1],L)<=0)z.pop();z.push(L)}for(N=G.length-1;N>=0;N-=1){L=G[N];while(H.length>=2&&K.cross3(H[H.length-2],H[H.length-1],L)<=0)H.pop();H.push(L)}return H.pop(),z.pop(),H.concat(z)}})()},function(Q,Z,$){var J={};Q.exports=J;var K=$(3),W=$(2),G=$(7),H=$(0),z=$(1),L=$(11);(function(){J._timeCorrection=!0,J._inertiaScale=4,J._nextCollidingGroupId=1,J._nextNonCollidingGroupId=-1,J._nextCategory=1,J._baseDelta=16.666666666666668,J.create=function(U){var q={id:H.nextId(),type:"body",label:"Body",parts:[],plugin:{},angle:0,vertices:K.fromPath("L 0 0 L 40 0 L 40 40 L 0 40"),position:{x:0,y:0},force:{x:0,y:0},torque:0,positionImpulse:{x:0,y:0},constraintImpulse:{x:0,y:0,angle:0},totalContacts:0,speed:0,angularSpeed:0,velocity:{x:0,y:0},angularVelocity:0,isSensor:!1,isStatic:!1,isSleeping:!1,motion:0,sleepThreshold:60,density:0.001,restitution:0,friction:0.1,frictionStatic:0.5,frictionAir:0.01,collisionFilter:{category:1,mask:4294967295,group:0},slop:0.05,timeScale:1,render:{visible:!0,opacity:1,strokeStyle:null,fillStyle:null,lineWidth:null,sprite:{xScale:1,yScale:1,xOffset:0,yOffset:0}},events:null,bounds:null,chamfer:null,circleRadius:0,positionPrev:null,anglePrev:0,parent:null,axes:null,area:0,mass:0,inertia:0,deltaTime:16.666666666666668,_original:null},F=H.extend(q,U);return N(F,U),F},J.nextGroup=function(U){if(U)return J._nextNonCollidingGroupId--;return J._nextCollidingGroupId++},J.nextCategory=function(){return J._nextCategory=J._nextCategory<<1,J._nextCategory};var N=function(U,q){q=q||{},J.set(U,{bounds:U.bounds||z.create(U.vertices),positionPrev:U.positionPrev||W.clone(U.position),anglePrev:U.anglePrev||U.angle,vertices:U.vertices,parts:U.parts||[U],isStatic:U.isStatic,isSleeping:U.isSleeping,parent:U.parent||U}),K.rotate(U.vertices,U.angle,U.position),L.rotate(U.axes,U.angle),z.update(U.bounds,U.vertices,U.velocity),J.set(U,{axes:q.axes||U.axes,area:q.area||U.area,mass:q.mass||U.mass,inertia:q.inertia||U.inertia});var F=U.isStatic?"#14151f":H.choose(["#f19648","#f5d259","#f55a3c","#063e7b","#ececd1"]),M=U.isStatic?"#555":"#ccc",X=U.isStatic&&U.render.fillStyle===null?1:0;U.render.fillStyle=U.render.fillStyle||F,U.render.strokeStyle=U.render.strokeStyle||M,U.render.lineWidth=U.render.lineWidth||X,U.render.sprite.xOffset+=-(U.bounds.min.x-U.position.x)/(U.bounds.max.x-U.bounds.min.x),U.render.sprite.yOffset+=-(U.bounds.min.y-U.position.y)/(U.bounds.max.y-U.bounds.min.y)};J.set=function(U,q,F){var M;if(typeof q==="string")M=q,q={},q[M]=F;for(M in q){if(!Object.prototype.hasOwnProperty.call(q,M))continue;switch(F=q[M],M){case"isStatic":J.setStatic(U,F);break;case"isSleeping":G.set(U,F);break;case"mass":J.setMass(U,F);break;case"density":J.setDensity(U,F);break;case"inertia":J.setInertia(U,F);break;case"vertices":J.setVertices(U,F);break;case"position":J.setPosition(U,F);break;case"angle":J.setAngle(U,F);break;case"velocity":J.setVelocity(U,F);break;case"angularVelocity":J.setAngularVelocity(U,F);break;case"speed":J.setSpeed(U,F);break;case"angularSpeed":J.setAngularSpeed(U,F);break;case"parts":J.setParts(U,F);break;case"centre":J.setCentre(U,F);break;default:U[M]=F}}},J.setStatic=function(U,q){for(var F=0;F0)W.rotateAbout(E.position,M,U.position,E.position)}},J.setVelocity=function(U,q){var F=U.deltaTime/J._baseDelta;U.positionPrev.x=U.position.x-q.x*F,U.positionPrev.y=U.position.y-q.y*F,U.velocity.x=(U.position.x-U.positionPrev.x)/F,U.velocity.y=(U.position.y-U.positionPrev.y)/F,U.speed=W.magnitude(U.velocity)},J.getVelocity=function(U){var q=J._baseDelta/U.deltaTime;return{x:(U.position.x-U.positionPrev.x)*q,y:(U.position.y-U.positionPrev.y)*q}},J.getSpeed=function(U){return W.magnitude(J.getVelocity(U))},J.setSpeed=function(U,q){J.setVelocity(U,W.mult(W.normalise(J.getVelocity(U)),q))},J.setAngularVelocity=function(U,q){var F=U.deltaTime/J._baseDelta;U.anglePrev=U.angle-q*F,U.angularVelocity=(U.angle-U.anglePrev)/F,U.angularSpeed=Math.abs(U.angularVelocity)},J.getAngularVelocity=function(U){return(U.angle-U.anglePrev)*J._baseDelta/U.deltaTime},J.getAngularSpeed=function(U){return Math.abs(J.getAngularVelocity(U))},J.setAngularSpeed=function(U,q){J.setAngularVelocity(U,H.sign(J.getAngularVelocity(U))*q)},J.translate=function(U,q,F){J.setPosition(U,W.add(U.position,q),F)},J.rotate=function(U,q,F,M){if(!F)J.setAngle(U,U.angle+q,M);else{var X=Math.cos(q),E=Math.sin(q),V=U.position.x-F.x,I=U.position.y-F.y;J.setPosition(U,{x:F.x+(V*X-I*E),y:F.y+(V*E+I*X)},M),J.setAngle(U,U.angle+q,M)}},J.scale=function(U,q,F,M){var X=0,E=0;M=M||U.position;for(var V=0;V0)X+=I.area,E+=I.inertia;I.position.x=M.x+(I.position.x-M.x)*q,I.position.y=M.y+(I.position.y-M.y)*F,z.update(I.bounds,I.vertices,U.velocity)}if(U.parts.length>1){if(U.area=X,!U.isStatic)J.setMass(U,U.density*X),J.setInertia(U,E)}if(U.circleRadius)if(q===F)U.circleRadius*=q;else U.circleRadius=null},J.update=function(U,q){q=(typeof q<"u"?q:16.666666666666668)*U.timeScale;var F=q*q,M=J._timeCorrection?q/(U.deltaTime||q):1,X=1-U.frictionAir*(q/H._baseDelta),E=(U.position.x-U.positionPrev.x)*M,V=(U.position.y-U.positionPrev.y)*M;U.velocity.x=E*X+U.force.x/U.mass*F,U.velocity.y=V*X+U.force.y/U.mass*F,U.positionPrev.x=U.position.x,U.positionPrev.y=U.position.y,U.position.x+=U.velocity.x,U.position.y+=U.velocity.y,U.deltaTime=q,U.angularVelocity=(U.angle-U.anglePrev)*X*M+U.torque/U.inertia*F,U.anglePrev=U.angle,U.angle+=U.angularVelocity;for(var I=0;I0)O.position.x+=U.velocity.x,O.position.y+=U.velocity.y;if(U.angularVelocity!==0){if(K.rotate(O.vertices,U.angularVelocity,U.position),L.rotate(O.axes,U.angularVelocity),I>0)W.rotateAbout(O.position,U.angularVelocity,U.position,O.position)}z.update(O.bounds,O.vertices,U.velocity)}},J.updateVelocities=function(U){var q=J._baseDelta/U.deltaTime,F=U.velocity;F.x=(U.position.x-U.positionPrev.x)*q,F.y=(U.position.y-U.positionPrev.y)*q,U.speed=Math.sqrt(F.x*F.x+F.y*F.y),U.angularVelocity=(U.angle-U.anglePrev)*q,U.angularSpeed=Math.abs(U.angularVelocity)},J.applyForce=function(U,q,F){var M={x:q.x-U.position.x,y:q.y-U.position.y};U.force.x+=F.x,U.force.y+=F.y,U.torque+=M.x*F.y-M.y*F.x},J._totalProperties=function(U){var q={mass:0,area:0,inertia:0,centre:{x:0,y:0}};for(var F=U.parts.length===1?0:1;F0){if(!H)H={};z=G.split(" ");for(var F=0;F0&&q.motion=q.sleepThreshold/L)J.set(q,!0)}else if(q.sleepCounter>0)q.sleepCounter-=1}},J.afterCollisions=function(H){var z=J._motionSleepThreshold;for(var L=0;Lz)J.set(M,!1)}}},J.set=function(H,z){var L=H.isSleeping;if(z){if(H.isSleeping=!0,H.sleepCounter=H.sleepThreshold,H.positionImpulse.x=0,H.positionImpulse.y=0,H.positionPrev.x=H.position.x,H.positionPrev.y=H.position.y,H.anglePrev=H.angle,H.speed=0,H.angularSpeed=0,H.motion=0,!L)W.trigger(H,"sleepStart")}else if(H.isSleeping=!1,H.sleepCounter=0,L)W.trigger(H,"sleepEnd")}})()},function(Q,Z,$){var J={};Q.exports=J;var K=$(3),W=$(9);(function(){var G=[],H={overlap:0,axis:null},z={overlap:0,axis:null};J.create=function(L,N){return{pair:null,collided:!1,bodyA:L,bodyB:N,parentA:L.parent,parentB:N.parent,depth:0,normal:{x:0,y:0},tangent:{x:0,y:0},penetration:{x:0,y:0},supports:[null,null],supportCount:0}},J.collides=function(L,N,U){if(J._overlapAxes(H,L.vertices,N.vertices,L.axes),H.overlap<=0)return null;if(J._overlapAxes(z,N.vertices,L.vertices,N.axes),z.overlap<=0)return null;var q=U&&U.table[W.id(L,N)],F;if(!q)F=J.create(L,N),F.collided=!0,F.bodyA=L.id=0)R=-R,D=-D;X.x=R,X.y=D,E.x=-D,E.y=R,V.x=R*O,V.y=D*O,F.depth=O;var B=J._findSupports(L,N,X,1),k=0;if(K.contains(L.vertices,B[0]))I[k++]=B[0];if(K.contains(L.vertices,B[1]))I[k++]=B[1];if(k<2){var A=J._findSupports(N,L,X,-1);if(K.contains(N.vertices,A[0]))I[k++]=A[0];if(k<2&&K.contains(N.vertices,A[1]))I[k++]=A[1]}if(k===0)I[k++]=B[0];return F.supportCount=k,F},J._overlapAxes=function(L,N,U,q){var F=N.length,M=U.length,X=N[0].x,E=N[0].y,V=U[0].x,I=U[0].y,O=q.length,Y=Number.MAX_VALUE,R=0,D,j,C,B,k,A;for(k=0;kb)b=B;else if(B_)_=B;else if(Bq.frictionStatic?U.frictionStatic:q.frictionStatic,W.restitution=U.restitution>q.restitution?U.restitution:q.restitution,W.slop=U.slop>q.slop?U.slop:q.slop,W.contactCount=L,G.pair=W;var F=z[0],M=N[0],X=z[1],E=N[1];if(E.vertex===F||M.vertex===X)N[1]=M,N[0]=M=E,E=N[1];M.vertex=F,E.vertex=X},J.setActive=function(W,G,H){if(G)W.isActive=!0,W.timeUpdated=H;else W.isActive=!1,W.contactCount=0},J.id=function(W,G){return W.id0?1:0.7),U.damping=U.damping||0,U.angularStiffness=U.angularStiffness||0,U.angleA=U.bodyA?U.bodyA.angle:U.angleA,U.angleB=U.bodyB?U.bodyB.angle:U.angleB,U.plugin={};var X={visible:!0,lineWidth:2,strokeStyle:"#ffffff",type:"line",anchors:!0};if(U.length===0&&U.stiffness>0.1)X.type="pin",X.anchors=!1;else if(U.stiffness<0.9)X.type="spring";return U.render=L.extend(X,U.render),U},J.preSolveAll=function(N){for(var U=0;U=1||N.length===0,D=R?N.stiffness*U:N.stiffness*U*U,j=N.damping*U,C=W.mult(I,Y*D),B=(q?q.inverseMass:0)+(F?F.inverseMass:0),k=(q?q.inverseInertia:0)+(F?F.inverseInertia:0),A=B+k,P,T,h,f,x;if(j>0){var b=W.create();h=W.div(I,O),x=W.sub(F&&W.sub(F.position,F.positionPrev)||b,q&&W.sub(q.position,q.positionPrev)||b),f=W.dot(h,x)}if(q&&!q.isStatic){if(T=q.inverseMass/B,q.constraintImpulse.x-=C.x*T,q.constraintImpulse.y-=C.y*T,q.position.x-=C.x*T,q.position.y-=C.y*T,j>0)q.positionPrev.x-=j*h.x*f*T,q.positionPrev.y-=j*h.y*f*T;P=W.cross(M,C)/A*J._torqueDampen*q.inverseInertia*(1-N.angularStiffness),q.constraintImpulse.angle-=P,q.angle-=P}if(F&&!F.isStatic){if(T=F.inverseMass/B,F.constraintImpulse.x+=C.x*T,F.constraintImpulse.y+=C.y*T,F.position.x+=C.x*T,F.position.y+=C.y*T,j>0)F.positionPrev.x+=j*h.x*f*T,F.positionPrev.y+=j*h.y*f*T;P=W.cross(X,C)/A*J._torqueDampen*F.inverseInertia*(1-N.angularStiffness),F.constraintImpulse.angle+=P,F.angle+=P}},J.postSolveAll=function(N){for(var U=0;U0)X.position.x+=F.x,X.position.y+=F.y;if(F.angle!==0){if(K.rotate(X.vertices,F.angle,q.position),z.rotate(X.axes,F.angle),M>0)W.rotateAbout(X.position,F.angle,q.position,X.position)}H.update(X.bounds,X.vertices,q.velocity)}F.angle*=J._warming,F.x*=J._warming,F.y*=J._warming}},J.pointAWorld=function(N){return{x:(N.bodyA?N.bodyA.position.x:0)+(N.pointA?N.pointA.x:0),y:(N.bodyA?N.bodyA.position.y:0)+(N.pointA?N.pointA.y:0)}},J.pointBWorld=function(N){return{x:(N.bodyB?N.bodyB.position.x:0)+(N.pointB?N.pointB.x:0),y:(N.bodyB?N.bodyB.position.y:0)+(N.pointB?N.pointB.y:0)}},J.currentLength=function(N){var U=(N.bodyA?N.bodyA.position.x:0)+(N.pointA?N.pointA.x:0),q=(N.bodyA?N.bodyA.position.y:0)+(N.pointA?N.pointA.y:0),F=(N.bodyB?N.bodyB.position.x:0)+(N.pointB?N.pointB.x:0),M=(N.bodyB?N.bodyB.position.y:0)+(N.pointB?N.pointB.y:0),X=U-F,E=q-M;return Math.sqrt(X*X+E*E)}})()},function(Q,Z,$){var J={};Q.exports=J;var K=$(2),W=$(0);(function(){J.fromVertices=function(G){var H={};for(var z=0;z=1)W.warn("Bodies.trapezoid: slope parameter must be < 1.");F*=0.5;var X=(1-F*2)*U,E=U*F,V=E+X,I=V+E,O;if(F<0.5)O="L 0 0 L "+E+" "+-q+" L "+V+" "+-q+" L "+I+" 0";else O="L 0 0 L "+V+" "+-q+" L "+I+" 0";var Y={label:"Trapezoid Body",position:{x:L,y:N},vertices:K.fromPath(O)};if(M.chamfer){var R=M.chamfer;Y.vertices=K.chamfer(Y.vertices,R.radius,R.quality,R.qualityMin,R.qualityMax),delete M.chamfer}return G.create(W.extend({},Y,M))},J.circle=function(L,N,U,q,F){q=q||{};var M={label:"Circle Body",circleRadius:U};F=F||25;var X=Math.ceil(Math.max(10,Math.min(F,U)));if(X%2===1)X+=1;return J.polygon(L,N,X,U,W.extend({},M,q))},J.polygon=function(L,N,U,q,F){if(F=F||{},U<3)return J.circle(L,N,q,F);var M=2*Math.PI/U,X="",E=M*0.5;for(var V=0;V0&&K.area(x)1)return O=G.create(W.extend({parts:Y.slice(0)},q)),G.setPosition(O,{x:L,y:N}),O;else return Y[0]}})()},function(Q,Z,$){var J={};Q.exports=J;var K=$(0),W=$(8);(function(){J.create=function(G){var H={bodies:[],collisions:[],pairs:null};return K.extend(H,G)},J.setBodies=function(G,H){G.bodies=H.slice(0)},J.clear=function(G){G.bodies=[],G.collisions=[]},J.collisions=function(G){var{pairs:H,bodies:z}=G,L=z.length,N=J.canCollide,U=W.collides,q=G.collisions,F=0,M,X;z.sort(J._compareBoundsX);for(M=0;MI)break;if(OB.max.y)continue;if(R&&(C.isStatic||C.isSleeping))continue;if(!N(E.collisionFilter,C.collisionFilter))continue;var k=C.parts.length;if(j&&k===1){var A=U(E,C,H);if(A)q[F++]=A}else{var P=D>1?1:0,T=k>1?1:0;for(var h=P;hB.max.x||V.max.xB.max.y)continue;var A=U(f,b,H);if(A)q[F++]=A}}}}}if(q.length!==F)q.length=F;return q},J.canCollide=function(G,H){if(G.group===H.group&&G.group!==0)return G.group>0;return(G.mask&H.category)!==0&&(H.mask&G.category)!==0},J._compareBoundsX=function(G,H){return G.bounds.min.x-H.bounds.min.x}})()},function(Q,Z,$){var J={};Q.exports=J;var K=$(0);(function(){J.create=function(W){var G={};if(!W)K.log("Mouse.create: element was undefined, defaulting to document.body","warn");return G.element=W||document.body,G.absolute={x:0,y:0},G.position={x:0,y:0},G.mousedownPosition={x:0,y:0},G.mouseupPosition={x:0,y:0},G.offset={x:0,y:0},G.scale={x:1,y:1},G.wheelDelta=0,G.button=-1,G.pixelRatio=parseInt(G.element.getAttribute("data-pixel-ratio"),10)||1,G.sourceEvents={mousemove:null,mousedown:null,mouseup:null,mousewheel:null},G.mousemove=function(H){var z=J._getRelativeMousePosition(H,G.element,G.pixelRatio),L=H.changedTouches;if(L)G.button=0,H.preventDefault();G.absolute.x=z.x,G.absolute.y=z.y,G.position.x=G.absolute.x*G.scale.x+G.offset.x,G.position.y=G.absolute.y*G.scale.y+G.offset.y,G.sourceEvents.mousemove=H},G.mousedown=function(H){var z=J._getRelativeMousePosition(H,G.element,G.pixelRatio),L=H.changedTouches;if(L)G.button=0,H.preventDefault();else G.button=H.button;G.absolute.x=z.x,G.absolute.y=z.y,G.position.x=G.absolute.x*G.scale.x+G.offset.x,G.position.y=G.absolute.y*G.scale.y+G.offset.y,G.mousedownPosition.x=G.position.x,G.mousedownPosition.y=G.position.y,G.sourceEvents.mousedown=H},G.mouseup=function(H){var z=J._getRelativeMousePosition(H,G.element,G.pixelRatio),L=H.changedTouches;if(L)H.preventDefault();G.button=-1,G.absolute.x=z.x,G.absolute.y=z.y,G.position.x=G.absolute.x*G.scale.x+G.offset.x,G.position.y=G.absolute.y*G.scale.y+G.offset.y,G.mouseupPosition.x=G.position.x,G.mouseupPosition.y=G.position.y,G.sourceEvents.mouseup=H},G.mousewheel=function(H){G.wheelDelta=Math.max(-1,Math.min(1,H.wheelDelta||-H.detail)),H.preventDefault(),G.sourceEvents.mousewheel=H},J.setElement(G,G.element),G},J.setElement=function(W,G){W.element=G,G.addEventListener("mousemove",W.mousemove,{passive:!0}),G.addEventListener("mousedown",W.mousedown,{passive:!0}),G.addEventListener("mouseup",W.mouseup,{passive:!0}),G.addEventListener("wheel",W.mousewheel,{passive:!1}),G.addEventListener("touchmove",W.mousemove,{passive:!1}),G.addEventListener("touchstart",W.mousedown,{passive:!1}),G.addEventListener("touchend",W.mouseup,{passive:!1})},J.clearSourceEvents=function(W){W.sourceEvents.mousemove=null,W.sourceEvents.mousedown=null,W.sourceEvents.mouseup=null,W.sourceEvents.mousewheel=null,W.wheelDelta=0},J.setOffset=function(W,G){W.offset.x=G.x,W.offset.y=G.y,W.position.x=W.absolute.x*W.scale.x+W.offset.x,W.position.y=W.absolute.y*W.scale.y+W.offset.y},J.setScale=function(W,G){W.scale.x=G.x,W.scale.y=G.y,W.position.x=W.absolute.x*W.scale.x+W.offset.x,W.position.y=W.absolute.y*W.scale.y+W.offset.y},J._getRelativeMousePosition=function(W,G,H){var z=G.getBoundingClientRect(),L=document.documentElement||document.body.parentNode||document.body,N=window.pageXOffset!==void 0?window.pageXOffset:L.scrollLeft,U=window.pageYOffset!==void 0?window.pageYOffset:L.scrollTop,q=W.changedTouches,F,M;if(q)F=q[0].pageX-z.left-N,M=q[0].pageY-z.top-U;else F=W.pageX-z.left-N,M=W.pageY-z.top-U;return{x:F/(G.clientWidth/(G.width||G.clientWidth)*H),y:M/(G.clientHeight/(G.height||G.clientHeight)*H)}}})()},function(Q,Z,$){var J={};Q.exports=J;var K=$(0);(function(){J._registry={},J.register=function(W){if(!J.isPlugin(W))K.warn("Plugin.register:",J.toString(W),"does not implement all required fields.");if(W.name in J._registry){var G=J._registry[W.name],H=J.versionParse(W.version).number,z=J.versionParse(G.version).number;if(H>z)K.warn("Plugin.register:",J.toString(G),"was upgraded to",J.toString(W)),J._registry[W.name]=W;else if(H-1},J.isFor=function(W,G){var H=W.for&&J.dependencyParse(W.for);return!W.for||G.name===H.name&&J.versionSatisfies(G.version,H.range)},J.use=function(W,G){if(W.uses=(W.uses||[]).concat(G||[]),W.uses.length===0){K.warn("Plugin.use:",J.toString(W),"does not specify any dependencies to install.");return}var H=J.dependencies(W),z=K.topologicalSort(H),L=[];for(var N=0;N0)K.info(L.join(" "))},J.dependencies=function(W,G){var H=J.dependencyParse(W),z=H.name;if(G=G||{},z in G)return;W=J.resolve(W)||W,G[z]=K.map(W.uses||[],function(N){if(J.isPlugin(N))J.register(N);var U=J.dependencyParse(N),q=J.resolve(N);if(q&&!J.versionSatisfies(q.version,U.range))K.warn("Plugin.dependencies:",J.toString(q),"does not satisfy",J.toString(U),"used by",J.toString(H)+"."),q._warned=!0,W._warned=!0;else if(!q)K.warn("Plugin.dependencies:",J.toString(N),"used by",J.toString(H),"could not be resolved."),W._warned=!0;return U.name});for(var L=0;L=|>)?\s*((\d+)\.(\d+)\.(\d+))(-[0-9A-Za-z-+]+)?$/;if(!G.test(W))K.warn("Plugin.versionParse:",W,"is not a valid version or range.");var H=G.exec(W),z=Number(H[4]),L=Number(H[5]),N=Number(H[6]);return{isRange:Boolean(H[1]||H[2]),version:H[3],range:W,operator:H[1]||H[2]||"",major:z,minor:L,patch:N,parts:[z,L,N],prerelease:H[7],number:z*1e8+L*1e4+N}},J.versionSatisfies=function(W,G){G=G||"*";var H=J.versionParse(G),z=J.versionParse(W);if(H.isRange){if(H.operator==="*"||W==="*")return!0;if(H.operator===">")return z.number>H.number;if(H.operator===">=")return z.number>=H.number;if(H.operator==="~")return z.major===H.major&&z.minor===H.minor&&z.patch>=H.patch;if(H.operator==="^"){if(H.major>0)return z.major===H.major&&z.number>=H.number;if(H.minor>0)return z.minor===H.minor&&z.patch>=H.patch;return z.patch===H.patch}}return W===G||W==="*"}})()},function(Q,Z){var $={};Q.exports=$,function(){$.create=function(J){return{vertex:J,normalImpulse:0,tangentImpulse:0}}}()},function(Q,Z,$){var J={};Q.exports=J;var K=$(7),W=$(18),G=$(13),H=$(19),z=$(5),L=$(6),N=$(10),U=$(0),q=$(4);(function(){J._deltaMax=16.666666666666668,J.create=function(F){F=F||{};var M={positionIterations:6,velocityIterations:4,constraintIterations:2,enableSleeping:!1,events:[],plugin:{},gravity:{x:0,y:1,scale:0.001},timing:{timestamp:0,timeScale:1,lastDelta:0,lastElapsed:0,lastUpdatesPerFrame:0}},X=U.extend(M,F);return X.world=F.world||L.create({label:"World"}),X.pairs=F.pairs||H.create(),X.detector=F.detector||G.create(),X.detector.pairs=X.pairs,X.grid={buckets:[]},X.world.gravity=X.gravity,X.broadphase=X.grid,X.metrics={},X},J.update=function(F,M){var X=U.now(),E=F.world,V=F.detector,I=F.pairs,O=F.timing,Y=O.timestamp,R;if(M>J._deltaMax)U.warnOnce("Matter.Engine.update: delta argument is recommended to be less than or equal to",J._deltaMax.toFixed(3),"ms.");M=typeof M<"u"?M:U._baseDelta,M*=O.timeScale,O.timestamp+=M,O.lastDelta=M;var D={timestamp:O.timestamp,delta:M};z.trigger(F,"beforeUpdate",D);var j=L.allBodies(E),C=L.allConstraints(E);if(E.isModified)G.setBodies(V,j),L.setModified(E,!1,!1,!0);if(F.enableSleeping)K.update(j,M);if(J._bodiesApplyGravity(j,F.gravity),M>0)J._bodiesUpdate(j,M);z.trigger(F,"beforeSolve",D),N.preSolveAll(j);for(R=0;R0)z.trigger(F,"collisionStart",{pairs:I.collisionStart,timestamp:O.timestamp,delta:M});var k=U.clamp(20/F.positionIterations,0,1);W.preSolvePosition(I.list);for(R=0;R0)z.trigger(F,"collisionActive",{pairs:I.collisionActive,timestamp:O.timestamp,delta:M});if(I.collisionEnd.length>0)z.trigger(F,"collisionEnd",{pairs:I.collisionEnd,timestamp:O.timestamp,delta:M});return J._bodiesClearForces(j),z.trigger(F,"afterUpdate",D),F.timing.lastElapsed=U.now()-X,F},J.merge=function(F,M){if(U.extend(F,M),M.world){F.world=M.world,J.clear(F);var X=L.allBodies(F.world);for(var E=0;En1){if(I=w>0?w:-w,V=R.friction*(w>0?1:-1)*U,V<-I)V=-I;else if(V>I)V=I}else V=w,I=X;var Y0=$0*k-N0*B,x1=F0*k-L0*B,o1=b/(T+j.inverseInertia*Y0*Y0+C.inverseInertia*x1*x1),b1=(1+R.restitution)*s0*o1;if(V*=o1,s00)d.normalImpulse=0;b1=d.normalImpulse-h0}if(w<-F||w>F)d.tangentImpulse=0;else{var K9=d.tangentImpulse;if(d.tangentImpulse+=V,d.tangentImpulse<-I)d.tangentImpulse=-I;if(d.tangentImpulse>I)d.tangentImpulse=I;V=d.tangentImpulse-K9}var O0=B*b1+A*V,Z1=k*b1+P*V;if(!(j.isStatic||j.isSleeping))j.positionPrev.x+=O0*j.inverseMass,j.positionPrev.y+=Z1*j.inverseMass,j.anglePrev+=($0*Z1-N0*O0)*j.inverseInertia;if(!(C.isStatic||C.isSleeping))C.positionPrev.x-=O0*C.inverseMass,C.positionPrev.y-=Z1*C.inverseMass,C.anglePrev-=(F0*Z1-L0*O0)*C.inverseInertia}}}})()},function(Q,Z,$){var J={};Q.exports=J;var K=$(9),W=$(0);(function(){J.create=function(G){return W.extend({table:{},list:[],collisionStart:[],collisionActive:[],collisionEnd:[]},G)},J.update=function(G,H,z){var{update:L,create:N,setActive:U}=K,q=G.table,F=G.list,M=F.length,X=M,E=G.collisionStart,V=G.collisionEnd,I=G.collisionActive,O=H.length,Y=0,R=0,D=0,j,C,B;for(B=0;B=z)F[X++]=C;else if(U(C,!1,z),C.collision.bodyA.sleepCounter>0&&C.collision.bodyB.sleepCounter>0)F[X++]=C;else V[R++]=C,delete q[C.id];if(F.length!==X)F.length=X;if(E.length!==Y)E.length=Y;if(V.length!==R)V.length=R;if(I.length!==D)I.length=D},J.clear=function(G){return G.table={},G.list.length=0,G.collisionStart.length=0,G.collisionActive.length=0,G.collisionEnd.length=0,G}})()},function(Q,Z,$){var J=Q.exports=$(21);J.Axes=$(11),J.Bodies=$(12),J.Body=$(4),J.Bounds=$(1),J.Collision=$(8),J.Common=$(0),J.Composite=$(6),J.Composites=$(22),J.Constraint=$(10),J.Contact=$(16),J.Detector=$(13),J.Engine=$(17),J.Events=$(5),J.Grid=$(23),J.Mouse=$(14),J.MouseConstraint=$(24),J.Pair=$(9),J.Pairs=$(19),J.Plugin=$(15),J.Query=$(25),J.Render=$(26),J.Resolver=$(18),J.Runner=$(27),J.SAT=$(28),J.Sleeping=$(7),J.Svg=$(29),J.Vector=$(2),J.Vertices=$(3),J.World=$(30),J.Engine.run=J.Runner.run,J.Common.deprecated(J.Engine,"run","Engine.run ➤ use Matter.Runner.run(engine) instead")},function(Q,Z,$){var J={};Q.exports=J;var K=$(15),W=$(0);(function(){J.name="matter-js",J.version="0.20.0",J.uses=[],J.used=[],J.use=function(){K.use(J,Array.prototype.slice.call(arguments))},J.before=function(G,H){return G=G.replace(/^Matter./,""),W.chainPathBefore(J,G,H)},J.after=function(G,H){return G=G.replace(/^Matter./,""),W.chainPathAfter(J,G,H)}})()},function(Q,Z,$){var J={};Q.exports=J;var K=$(6),W=$(10),G=$(0),H=$(4),z=$(12),L=G.deprecated;(function(){J.stack=function(N,U,q,F,M,X,E){var V=K.create({label:"Stack"}),I=N,O=U,Y,R=0;for(var D=0;Dj)j=k;H.translate(B,{x:A*0.5,y:k*0.5}),I=B.bounds.max.x+M,K.addBody(V,B),Y=B,R+=1}else I+=M}O+=j+X,I=N}return V},J.chain=function(N,U,q,F,M,X){var E=N.bodies;for(var V=1;V0)for(V=0;V0)Y=X[V-1+(E-1)*U],K.addConstraint(N,W.create(G.extend({bodyA:Y,bodyB:O},M)));if(F&&Vj)return;Y=j-Y;var B=Y,k=q-1-Y;if(Ok)return;if(D===1)H.translate(R,{x:(O+(q%2===1?1:-1))*C,y:0});var A=R?O*C:0;return E(N+A+O*M,I,O,Y,R,D)})},J.newtonsCradle=function(N,U,q,F,M){var X=K.create({label:"Newtons Cradle"});for(var E=0;EM.bounds.max.x||O.bounds.max.yM.bounds.max.y))continue;var Y=J._getRegion(H,O);if(!O.region||Y.id!==O.region.id||N){if(!O.region||N)O.region=Y;var R=J._regionUnion(Y,O.region);for(q=R.startCol;q<=R.endCol;q++)for(F=R.startRow;F<=R.endRow;F++){V=J._getBucketId(q,F),E=X[V];var D=q>=Y.startCol&&q<=Y.endCol&&F>=Y.startRow&&F<=Y.endRow,j=q>=O.region.startCol&&q<=O.region.endCol&&F>=O.region.startRow&&F<=O.region.endRow;if(!D&&j){if(j){if(E)J._bucketRemoveBody(H,E,O)}}if(O.region===Y||D&&!j||N){if(!E)E=J._createBucket(X,V);J._bucketAddBody(H,E,O)}}O.region=Y,I=!0}}if(I)H.pairsList=J._createActivePairsList(H)},G(J,"update","Grid.update ➤ replaced by Matter.Detector"),J.clear=function(H){H.buckets={},H.pairs={},H.pairsList=[]},G(J,"clear","Grid.clear ➤ replaced by Matter.Detector"),J._regionUnion=function(H,z){var L=Math.min(H.startCol,z.startCol),N=Math.max(H.endCol,z.endCol),U=Math.min(H.startRow,z.startRow),q=Math.max(H.endRow,z.endRow);return J._createRegion(L,N,U,q)},J._getRegion=function(H,z){var L=z.bounds,N=Math.floor(L.min.x/H.bucketWidth),U=Math.floor(L.max.x/H.bucketWidth),q=Math.floor(L.min.y/H.bucketHeight),F=Math.floor(L.max.y/H.bucketHeight);return J._createRegion(N,U,q,F)},J._createRegion=function(H,z,L,N){return{id:H+","+z+","+L+","+N,startCol:H,endCol:z,startRow:L,endRow:N}},J._getBucketId=function(H,z){return"C"+H+"R"+z},J._createBucket=function(H,z){var L=H[z]=[];return L},J._bucketAddBody=function(H,z,L){var N=H.pairs,U=K.id,q=z.length,F;for(F=0;F0)q.push(z);else delete L[N[F]];return q}})()},function(Q,Z,$){var J={};Q.exports=J;var K=$(3),W=$(7),G=$(14),H=$(5),z=$(13),L=$(10),N=$(6),U=$(0),q=$(1);(function(){J.create=function(F,M){var X=(F?F.mouse:null)||(M?M.mouse:null);if(!X)if(F&&F.render&&F.render.canvas)X=G.create(F.render.canvas);else if(M&&M.element)X=G.create(M.element);else X=G.create(),U.warn("MouseConstraint.create: options.mouse was undefined, options.element was undefined, may not function as expected");var E=L.create({label:"Mouse Constraint",pointA:X.position,pointB:{x:0,y:0},length:0.01,stiffness:0.1,angularStiffness:1,render:{strokeStyle:"#90EE90",lineWidth:3}}),V={type:"mouseConstraint",mouse:X,element:null,body:null,constraint:E,collisionFilter:{category:1,mask:4294967295,group:0}},I=U.extend(V,M);return H.on(F,"beforeUpdate",function(){var O=N.allBodies(F.world);J.update(I,O),J._triggerEvents(I)}),I},J.update=function(F,M){var{mouse:X,constraint:E,body:V}=F;if(X.button===0)if(!E.bodyB){for(var I=0;I1?1:0;Oj.max.x)j.max.x=A.x;if(k.yj.max.y)j.max.y=A.y}}var P=j.max.x-j.min.x+2*R.x,T=j.max.y-j.min.y+2*R.y,h=O.canvas.height,f=O.canvas.width,x=f/h,b=P/T,_=1,m=1;if(b>x)m=b/x;else _=x/b;if(O.options.hasBounds=!0,O.bounds.min.x=j.min.x,O.bounds.max.x=j.min.x+P*_,O.bounds.min.y=j.min.y,O.bounds.max.y=j.min.y+T*m,D)O.bounds.min.x+=P*0.5-P*_*0.5,O.bounds.max.x+=P*0.5-P*_*0.5,O.bounds.min.y+=T*0.5-T*m*0.5,O.bounds.max.y+=T*0.5-T*m*0.5;if(O.bounds.min.x-=R.x,O.bounds.max.x-=R.x,O.bounds.min.y-=R.y,O.bounds.max.y-=R.y,O.mouse)N.setScale(O.mouse,{x:(O.bounds.max.x-O.bounds.min.x)/O.canvas.width,y:(O.bounds.max.y-O.bounds.min.y)/O.canvas.height}),N.setOffset(O.mouse,O.bounds.min)},J.startViewTransform=function(O){var Y=O.bounds.max.x-O.bounds.min.x,R=O.bounds.max.y-O.bounds.min.y,D=Y/O.options.width,j=R/O.options.height;O.context.setTransform(O.options.pixelRatio/D,0,0,O.options.pixelRatio/j,0,0),O.context.translate(-O.bounds.min.x,-O.bounds.min.y)},J.endViewTransform=function(O){O.context.setTransform(O.options.pixelRatio,0,0,O.options.pixelRatio,0,0)},J.world=function(O,Y){var R=W.now(),D=O.engine,j=D.world,C=O.canvas,B=O.context,k=O.options,A=O.timing,P=G.allBodies(j),T=G.allConstraints(j),h=k.wireframes?k.wireframeBackground:k.background,f=[],x=[],b,_={timestamp:D.timing.timestamp};if(z.trigger(O,"beforeRender",_),O.currentBackground!==h)I(O,h);if(B.globalCompositeOperation="source-in",B.fillStyle="transparent",B.fillRect(0,0,C.width,C.height),B.globalCompositeOperation="source-over",k.hasBounds){for(b=0;b1?1:0;T1?1:0;P1?1:0;B1?1:0;P1?1:0;A1?1:0;A1?1:0;C0){var b=C.contacts[0].vertex.x,_=C.contacts[0].vertex.y;if(C.contactCount===2)b=(C.contacts[0].vertex.x+C.contacts[1].vertex.x)/2,_=(C.contacts[0].vertex.y+C.contacts[1].vertex.y)/2;if(B.bodyB===B.supports[0].body||B.bodyA.isStatic===!0)D.moveTo(b-B.normal.x*8,_-B.normal.y*8);else D.moveTo(b+B.normal.x*8,_+B.normal.y*8);D.lineTo(b,_)}}if(j.wireframes)D.strokeStyle="rgba(255,165,0,0.7)";else D.strokeStyle="orange";D.lineWidth=1,D.stroke()},J.separations=function(O,Y,R){var D=R,j=O.options,C,B,k,A,P,T,h;D.beginPath();for(T=0;TMath.max(J._maxFrameDelta,z.maxFrameTime))M=z.frameDelta||J._frameDeltaFallback;if(z.frameDeltaSmoothing){z.frameDeltaHistory.push(M),z.frameDeltaHistory=z.frameDeltaHistory.slice(-z.frameDeltaHistorySize);var X=z.frameDeltaHistory.slice(0).sort(),E=z.frameDeltaHistory.slice(X.length*J._smoothingLowerBound,X.length*J._smoothingUpperBound),V=H(E);M=V||M}if(z.frameDeltaSnapping)M=1000/Math.round(1000/M);z.frameDelta=M,z.timeLastTick=N,z.timeBuffer+=z.frameDelta,z.timeBuffer=G.clamp(z.timeBuffer,0,z.frameDelta+q*J._timeBufferMargin),z.lastUpdatesDeferred=0;var I=z.maxUpdates||Math.ceil(z.maxFrameTime/q),O={timestamp:L.timing.timestamp};K.trigger(z,"beforeTick",O),K.trigger(z,"tick",O);var Y=G.now();while(q>0&&z.timeBuffer>=q*J._timeBufferMargin){K.trigger(z,"beforeUpdate",O),W.update(L,q),K.trigger(z,"afterUpdate",O),z.timeBuffer-=q,F+=1;var R=G.now()-U,D=G.now()-Y,j=R+J._elapsedNextEstimate*D/F;if(F>=I||j>z.maxFrameTime){z.lastUpdatesDeferred=Math.round(Math.max(0,z.timeBuffer/q-J._timeBufferMargin));break}}if(L.timing.lastUpdatesPerFrame=F,K.trigger(z,"afterTick",O),z.frameDeltaHistory.length>=100){if(z.lastUpdatesDeferred&&Math.round(z.frameDelta/q)>I)G.warnOnce("Matter.Runner: runner reached runner.maxUpdates, see docs.");else if(z.lastUpdatesDeferred)G.warnOnce("Matter.Runner: runner reached runner.maxFrameTime, see docs.");if(typeof z.isFixed<"u")G.warnOnce("Matter.Runner: runner.isFixed is now redundant, see docs.");if(z.deltaMin||z.deltaMax)G.warnOnce("Matter.Runner: runner.deltaMin and runner.deltaMax were removed, see docs.");if(z.fps!==0)G.warnOnce("Matter.Runner: runner.fps was replaced by runner.delta, see docs.")}},J.stop=function(z){J._cancelNextFrame(z)},J._onNextFrame=function(z,L){if(typeof window<"u"&&window.requestAnimationFrame)z.frameRequestId=window.requestAnimationFrame(L);else throw Error("Matter.Runner: missing required global window.requestAnimationFrame.");return z.frameRequestId},J._cancelNextFrame=function(z){if(typeof window<"u"&&window.cancelAnimationFrame)window.cancelAnimationFrame(z.frameRequestId);else throw Error("Matter.Runner: missing required global window.cancelAnimationFrame.")};var H=function(z){var L=0,N=z.length;for(var U=0;U1;if(!E||k!=E.x||A!=E.y){if(E&&T)O=E.x,Y=E.y;else O=0,Y=0;var h={x:O+k,y:Y+A};if(T||!E)E=h;I.push(h),D=O+k,j=Y+A}},B=function(k){var A=k.pathSegTypeAsLetter.toUpperCase();if(A==="Z")return;switch(A){case"M":case"L":case"T":case"C":case"S":case"Q":D=k.x,j=k.y;break;case"H":D=k.x;break;case"V":j=k.y;break}C(D,j,k.pathSegType)};J._svgPathToAbsolute(G),N=G.getTotalLength(),F=[];for(z=0;z{let $=this.groups.find((L)=>{return Array.from(L.elements.keys()).includes(Z.target)});if(!$)return;let J=Z.target,K=$.elements.get(J);if(!K)return;let{isIntersecting:W,intersectionRatio:G,boundingClientRect:H}=Z,z=-1;if(K.lastDirection!==void 0)z=W?H.top>0?1:-1:H.top>0?-1:1;if(K.lastDirection=z,W){if(K.callbacks.isIn?.({entry:Z,direction:z}),K.callbacks.callback?.({entry:Z,direction:z,isIn:!0}),K.once)this.removeElement(J)}else K.callbacks.isOut?.({entry:Z,direction:z}),K.callbacks.callback?.({entry:Z,direction:z,isIn:!1})})}addElement(Q,Z,$){this.removeElement(Q);let J=this.groups.find((K)=>this.configsMatch(K.config,Z));if(!J){let K=new IntersectionObserver((W)=>this.handleIntersection(W),{...Z,threshold:[0]});J={config:Z,observer:K,elements:new Map},this.groups.push(J)}return J.elements.set(Q,{callbacks:$,once:Z.once||!1,lastDirection:void 0}),J.observer.observe(Q),J}removeElement(Q){let Z=this.groups.find(($)=>$.elements.has(Q));if(!Z)return;if(Z.observer.unobserve(Q),Z.elements.delete(Q),Z.elements.size===0)Z.observer.disconnect(),this.groups=this.groups.filter(($)=>$!==Z)}}class ZJ{element;#J;#$;isIn(Q){}isOut(Q){}inView;callback;#Z=null;#K=null;constructor(Q,Z={root:null,rootMargin:"0px",threshold:0,autoStart:!1,once:!1,callback:void 0}){if(this.element=Q,this.#J=Z,this.inView=!1,this.callback=Z.callback||(()=>{}),Z.autoStart)this.start()}start(){this.#$=r9.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(){r9.getInstance().removeElement(this.element)}destroy(){this.stop(),this.#Z=null,this.#K=null}}var bW="1.3.11";function qK(Q,Z,$){return Math.max(Q,Math.min(Z,$))}function vW(Q,Z,$){return(1-$)*Q+$*Z}function yW(Q,Z,$,J){return vW(Q,Z,1-Math.exp(-$*J))}function _W(Q,Z){return(Q%Z+Z)%Z}var gW=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(Q){if(!this.isRunning)return;let Z=!1;if(this.duration&&this.easing){this.currentTime+=Q;let $=qK(0,this.currentTime/this.duration,1);Z=$>=1;let J=Z?1:this.easing($);this.value=this.from+(this.to-this.from)*J}else if(this.lerp){if(this.value=yW(this.value,this.to,this.lerp*60,Q),Math.round(this.value)===this.to)this.value=this.to,Z=!0}else this.value=this.to,Z=!0;if(Z)this.stop();this.onUpdate?.(this.value,Z)}stop(){this.isRunning=!1}fromTo(Q,Z,{lerp:$,duration:J,easing:K,onStart:W,onUpdate:G}){this.from=this.value=Q,this.to=Z,this.lerp=$,this.duration=J,this.easing=K,this.currentTime=0,this.isRunning=!0,W?.(),this.onUpdate=G}};function uW(Q,Z){let $;return function(...J){let K=this;clearTimeout($),$=setTimeout(()=>{$=void 0,Q.apply(K,J)},Z)}}var mW=class{constructor(Q,Z,{autoResize:$=!0,debounce:J=250}={}){if(this.wrapper=Q,this.content=Z,$){if(this.debouncedResize=uW(this.resize,J),this.wrapper instanceof Window)window.addEventListener("resize",this.debouncedResize,!1);else this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper);this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)}this.resize()}width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;destroy(){if(this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize)window.removeEventListener("resize",this.debouncedResize,!1)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{if(this.wrapper instanceof Window)this.width=window.innerWidth,this.height=window.innerHeight;else this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight};onContentResize=()=>{if(this.wrapper instanceof Window)this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth;else this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},MK=class{events={};emit(Q,...Z){let $=this.events[Q]||[];for(let J=0,K=$.length;J{this.events[Q]=this.events[Q]?.filter(($)=>Z!==$)}}off(Q,Z){this.events[Q]=this.events[Q]?.filter(($)=>Z!==$)}destroy(){this.events={}}},NK=16.666666666666668,f9={passive:!1},dW=class{constructor(Q,Z={wheelMultiplier:1,touchMultiplier:1}){this.element=Q,this.options=Z,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,f9),this.element.addEventListener("touchstart",this.onTouchStart,f9),this.element.addEventListener("touchmove",this.onTouchMove,f9),this.element.addEventListener("touchend",this.onTouchEnd,f9)}touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new MK;on(Q,Z){return this.emitter.on(Q,Z)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,f9),this.element.removeEventListener("touchstart",this.onTouchStart,f9),this.element.removeEventListener("touchmove",this.onTouchMove,f9),this.element.removeEventListener("touchend",this.onTouchEnd,f9)}onTouchStart=(Q)=>{let{clientX:Z,clientY:$}=Q.targetTouches?Q.targetTouches[0]:Q;this.touchStart.x=Z,this.touchStart.y=$,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:Q})};onTouchMove=(Q)=>{let{clientX:Z,clientY:$}=Q.targetTouches?Q.targetTouches[0]:Q,J=-(Z-this.touchStart.x)*this.options.touchMultiplier,K=-($-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=Z,this.touchStart.y=$,this.lastDelta={x:J,y:K},this.emitter.emit("scroll",{deltaX:J,deltaY:K,event:Q})};onTouchEnd=(Q)=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:Q})};onWheel=(Q)=>{let{deltaX:Z,deltaY:$,deltaMode:J}=Q,K=J===1?NK:J===2?this.window.width:1,W=J===1?NK:J===2?this.window.height:1;Z*=K,$*=W,Z*=this.options.wheelMultiplier,$*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:Z,deltaY:$,event:Q})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}},FK=(Q)=>Math.min(1,1.001-Math.pow(2,-10*Q)),XK=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;__rafID=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new gW;emitter=new MK;dimensions;virtualScroll;constructor({wrapper:Q=window,content:Z=document.documentElement,eventsTarget:$=Q,smoothWheel:J=!0,syncTouch:K=!1,syncTouchLerp:W=0.075,touchInertiaExponent:G=1.7,duration:H,easing:z,lerp:L=0.1,infinite:N=!1,orientation:U="vertical",gestureOrientation:q=U==="horizontal"?"both":"vertical",touchMultiplier:F=1,wheelMultiplier:M=1,autoResize:X=!0,prevent:E,virtualScroll:V,overscroll:I=!0,autoRaf:O=!1,anchors:Y=!1,autoToggle:R=!1,allowNestedScroll:D=!1,__experimental__naiveDimensions:j=!1}={}){if(window.lenisVersion=bW,!Q||Q===document.documentElement)Q=window;if(typeof H==="number"&&typeof z!=="function")z=FK;else if(typeof z==="function"&&typeof H!=="number")H=1;if(this.options={wrapper:Q,content:Z,eventsTarget:$,smoothWheel:J,syncTouch:K,syncTouchLerp:W,touchInertiaExponent:G,duration:H,easing:z,lerp:L,infinite:N,gestureOrientation:q,orientation:U,touchMultiplier:F,wheelMultiplier:M,autoResize:X,prevent:E,virtualScroll:V,overscroll:I,autoRaf:O,anchors:Y,autoToggle:R,allowNestedScroll:D,__experimental__naiveDimensions:j},this.dimensions=new mW(Q,Z,{autoResize:X}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.anchors&&this.options.wrapper===window)this.options.wrapper.addEventListener("click",this.onClick,!1);if(this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new dW($,{touchMultiplier:F,wheelMultiplier:M}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle)this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0});if(this.options.autoRaf)this.__rafID=requestAnimationFrame(this.raf)}destroy(){if(this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),this.options.anchors&&this.options.wrapper===window)this.options.wrapper.removeEventListener("click",this.onClick,!1);if(this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this.__rafID)cancelAnimationFrame(this.__rafID)}on(Q,Z){return this.emitter.on(Q,Z)}off(Q,Z){return this.emitter.off(Q,Z)}onScrollEnd=(Q)=>{if(!(Q instanceof CustomEvent)){if(this.isScrolling==="smooth"||this.isScrolling===!1)Q.stopPropagation()}};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};onTransitionEnd=(Q)=>{if(Q.propertyName.includes("overflow")){let Z=this.isHorizontal?"overflow-x":"overflow-y",$=getComputedStyle(this.rootElement)[Z];if(["hidden","clip"].includes($))this.internalStop();else this.internalStart()}};setScroll(Q){if(this.isHorizontal)this.options.wrapper.scrollTo({left:Q,behavior:"instant"});else this.options.wrapper.scrollTo({top:Q,behavior:"instant"})}onClick=(Q)=>{let $=Q.composedPath().find((J)=>J instanceof HTMLAnchorElement&&(J.getAttribute("href")?.startsWith("#")||J.getAttribute("href")?.startsWith("/#")||J.getAttribute("href")?.startsWith("./#")));if($){let J=$.getAttribute("href");if(J){let K=typeof this.options.anchors==="object"&&this.options.anchors?this.options.anchors:void 0,W=`#${J.split("#")[1]}`;if(["#","/#","./#","#top","/#top","./#top"].includes(J))W=0;this.scrollTo(W,K)}}};onPointerDown=(Q)=>{if(Q.button===1)this.reset()};onVirtualScroll=(Q)=>{if(typeof this.options.virtualScroll==="function"&&this.options.virtualScroll(Q)===!1)return;let{deltaX:Z,deltaY:$,event:J}=Q;if(this.emitter.emit("virtual-scroll",{deltaX:Z,deltaY:$,event:J}),J.ctrlKey)return;if(J.lenisStopPropagation)return;let K=J.type.includes("touch"),W=J.type.includes("wheel");this.isTouching=J.type==="touchstart"||J.type==="touchmove";let G=Z===0&&$===0;if(this.options.syncTouch&&K&&J.type==="touchstart"&&G&&!this.isStopped&&!this.isLocked){this.reset();return}let z=this.options.gestureOrientation==="vertical"&&$===0||this.options.gestureOrientation==="horizontal"&&Z===0;if(G||z)return;let L=J.composedPath();L=L.slice(0,L.indexOf(this.rootElement));let N=this.options.prevent;if(L.find((E)=>E instanceof HTMLElement&&(typeof N==="function"&&N?.(E)||E.hasAttribute?.("data-lenis-prevent")||K&&E.hasAttribute?.("data-lenis-prevent-touch")||W&&E.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.checkNestedScroll(E,{deltaX:Z,deltaY:$}))))return;if(this.isStopped||this.isLocked){if(J.cancelable)J.preventDefault();return}if(!(this.options.syncTouch&&K||this.options.smoothWheel&&W)){this.isScrolling="native",this.animate.stop(),J.lenisStopPropagation=!0;return}let q=$;if(this.options.gestureOrientation==="both")q=Math.abs($)>Math.abs(Z)?$:Z;else if(this.options.gestureOrientation==="horizontal")q=Z;if(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll0||this.animatedScroll===this.limit&&$<0))J.lenisStopPropagation=!0;if(J.cancelable)J.preventDefault();let F=K&&this.options.syncTouch,X=K&&J.type==="touchend";if(X)q=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent);this.scrollTo(this.targetScroll+q,{programmatic:!1,...F?{lerp:X?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=()=>{if(this._resetVelocityTimeout!==null)clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null;if(this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){let Q=this.animatedScroll;if(this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-Q,this.direction=Math.sign(this.animatedScroll-Q),!this.isStopped)this.isScrolling="native";if(this.emit(),this.velocity!==0)this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400)}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(!this.isStopped)return;if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}internalStart(){if(!this.isStopped)return;this.reset(),this.isStopped=!1,this.emit()}stop(){if(this.isStopped)return;if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}internalStop(){if(this.isStopped)return;this.reset(),this.isStopped=!0,this.emit()}raf=(Q)=>{let Z=Q-(this.time||Q);if(this.time=Q,this.animate.advance(Z*0.001),this.options.autoRaf)this.__rafID=requestAnimationFrame(this.raf)};scrollTo(Q,{offset:Z=0,immediate:$=!1,lock:J=!1,duration:K=this.options.duration,easing:W=this.options.easing,lerp:G=this.options.lerp,onStart:H,onComplete:z,force:L=!1,programmatic:N=!0,userData:U}={}){if((this.isStopped||this.isLocked)&&!L)return;if(typeof Q==="string"&&["top","left","start"].includes(Q))Q=0;else if(typeof Q==="string"&&["bottom","right","end"].includes(Q))Q=this.limit;else{let q;if(typeof Q==="string")q=document.querySelector(Q);else if(Q instanceof HTMLElement&&Q?.nodeType)q=Q;if(q){if(this.options.wrapper!==window){let M=this.rootElement.getBoundingClientRect();Z-=this.isHorizontal?M.left:M.top}let F=q.getBoundingClientRect();Q=(this.isHorizontal?F.left:F.top)+this.animatedScroll}}if(typeof Q!=="number")return;if(Q+=Z,Q=Math.round(Q),this.options.infinite){if(N){this.targetScroll=this.animatedScroll=this.scroll;let q=Q-this.animatedScroll;if(q>this.limit/2)Q=Q-this.limit;else if(q<-this.limit/2)Q=Q+this.limit}}else Q=qK(0,Q,this.limit);if(Q===this.targetScroll){H?.(this),z?.(this);return}if(this.userData=U??{},$){this.animatedScroll=this.targetScroll=Q,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),z?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}if(!N)this.targetScroll=Q;if(typeof K==="number"&&typeof W!=="function")W=FK;else if(typeof W==="function"&&typeof K!=="number")K=1;this.animate.fromTo(this.animatedScroll,Q,{duration:K,easing:W,lerp:G,onStart:()=>{if(J)this.isLocked=!0;this.isScrolling="smooth",H?.(this)},onUpdate:(q,F)=>{if(this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=q-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=q,this.setScroll(this.scroll),N)this.targetScroll=q;if(!F)this.emit();if(F)this.reset(),this.emit(),z?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent()}})}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(Q,{deltaX:Z,deltaY:$}){let J=Date.now(),K=Q._lenis??={},W,G,H,z,L,N,U,q,F=this.options.gestureOrientation;if(J-(K.time??0)>2000){K.time=Date.now();let R=window.getComputedStyle(Q);K.computedStyle=R;let{overflowX:D,overflowY:j}=R;if(W=["auto","overlay","scroll"].includes(D),G=["auto","overlay","scroll"].includes(j),K.hasOverflowX=W,K.hasOverflowY=G,!W&&!G)return!1;if(F==="vertical"&&!G)return!1;if(F==="horizontal"&&!W)return!1;L=Q.scrollWidth,N=Q.scrollHeight,U=Q.clientWidth,q=Q.clientHeight,H=L>U,z=N>q,K.isScrollableX=H,K.isScrollableY=z,K.scrollWidth=L,K.scrollHeight=N,K.clientWidth=U,K.clientHeight=q}else H=K.isScrollableX,z=K.isScrollableY,W=K.hasOverflowX,G=K.hasOverflowY,L=K.scrollWidth,N=K.scrollHeight,U=K.clientWidth,q=K.clientHeight;if(!W&&!G||!H&&!z)return!1;if(F==="vertical"&&(!G||!z))return!1;if(F==="horizontal"&&(!W||!H))return!1;let M;if(F==="horizontal")M="x";else if(F==="vertical")M="y";else{let R=Z!==0,D=$!==0;if(R&&W&&H)M="x";if(D&&G&&z)M="y"}if(!M)return!1;let X,E,V,I,O;if(M==="x")X=Q.scrollLeft,E=L-U,V=Z,I=W,O=H;else if(M==="y")X=Q.scrollTop,E=N-q,V=$,I=G,O=z;else return!1;return(V>0?X0)&&I&&O}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){if(this.options.__experimental__naiveDimensions)if(this.isHorizontal)return this.rootElement.scrollWidth-this.rootElement.clientWidth;else return this.rootElement.scrollHeight-this.rootElement.clientHeight;else return this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){let Q=this.options.wrapper;return this.isHorizontal?Q.scrollX??Q.scrollLeft:Q.scrollY??Q.scrollTop}get scroll(){return this.options.infinite?_W(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(Q){if(this._isScrolling!==Q)this._isScrolling=Q,this.updateClassName()}get isStopped(){return this._isStopped}set isStopped(Q){if(this._isStopped!==Q)this._isStopped=Q,this.updateClassName()}get isLocked(){return this._isLocked}set isLocked(Q){if(this._isLocked!==Q)this._isLocked=Q,this.updateClassName()}get isSmooth(){return this.isScrolling==="smooth"}get className(){let Q="lenis";if(this.options.autoToggle)Q+=" lenis-autoToggle";if(this.isStopped)Q+=" lenis-stopped";if(this.isLocked)Q+=" lenis-locked";if(this.isScrolling)Q+=" lenis-scrolling";if(this.isScrolling==="smooth")Q+=" lenis-smooth";return Q}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};function E9(Q){if(Q===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return Q}function jK(Q,Z){Q.prototype=Object.create(Z.prototype),Q.prototype.constructor=Q,Q.__proto__=Z}/*! * GSAP 3.13.0 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var V1={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},k8={duration:0.5,overwrite:!1,delay:0},E$,a0,I0,_1=1e8,X0=1/_1,G$=Math.PI*2,cW=G$/4,pW=0,BK=Math.sqrt,lW=Math.cos,sW=Math.sin,g0=function(Z){return typeof Z==="string"},k0=function(Z){return typeof Z==="function"},D9=function(Z){return typeof Z==="number"},ZZ=function(Z){return typeof Z>"u"},z9=function(Z){return typeof Z==="object"},I1=function(Z){return Z!==!1},Y$=function(){return typeof window<"u"},sJ=function(Z){return k0(Z)||g0(Z)},CK=typeof ArrayBuffer==="function"&&ArrayBuffer.isView||function(){},W1=Array.isArray,H$=/(?:-?\.?\d|\.)+/gi,D$=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Z8=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,eZ=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,R$=/[+-]=-?[.\d]+/,kK=/[^,'"\[\]\s]+/gi,iW=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,j0,H9,U$,I$,P1={},aJ={},AK,SK=function(Z){return(aJ=A8(Z,P1))&&G1},$Z=function(Z,$){return console.warn("Invalid property",Z,"set to",$,"Missing plugin? gsap.registerPlugin()")},HJ=function(Z,$){return!$&&console.warn(Z)},PK=function(Z,$){return Z&&(P1[Z]=$)&&aJ&&(aJ[Z]=$)||P1},UJ=function(){return 0},nW={suppressEvents:!0,isStart:!0,kill:!1},iJ={suppressEvents:!0,kill:!1},oW={suppressEvents:!0},V$={},x9=[],z$={},TK,D1={},J$={},OK=30,nJ=[],j$="",B$=function(Z){var $=Z[0],J,K;if(z9($)||k0($)||(Z=[Z]),!(J=($._gsap||{}).harness)){K=nJ.length;while(K--&&!nJ[K].targetTest($));J=nJ[K]}K=Z.length;while(K--)Z[K]&&(Z[K]._gsap||(Z[K]._gsap=new S$(Z[K],J)))||Z.splice(K,1);return Z},b9=function(Z){return Z._gsap||B$(g1(Z))[0]._gsap},C$=function(Z,$,J){return(J=Z[$])&&k0(J)?Z[$]():ZZ(J)&&Z.getAttribute&&Z.getAttribute($)||J},N1=function(Z,$){return(Z=Z.split(",")).forEach($)||Z},A0=function(Z){return Math.round(Z*1e5)/1e5||0},b0=function(Z){return Math.round(Z*1e7)/1e7||0},$8=function(Z,$){var J=$.charAt(0),K=parseFloat($.substr(2));return Z=parseFloat(Z),J==="+"?Z+K:J==="-"?Z-K:J==="*"?Z*K:Z/K},aW=function(Z,$){var J=$.length,K=0;for(;Z.indexOf($[K])<0&&++KH)G=G._prev}if(G)$._next=G._next,G._next=$;else $._next=Z[J],Z[J]=$;if($._next)$._next._prev=$;else Z[K]=$;return $._prev=G,$.parent=$._dp=Z,$},NJ=function(Z,$,J,K){if(J===void 0)J="_first";if(K===void 0)K="_last";var{_prev:W,_next:G}=$;if(W)W._next=G;else if(Z[J]===$)Z[J]=G;if(G)G._prev=W;else if(Z[K]===$)Z[K]=W;$._next=$._prev=$.parent=null},v9=function(Z,$){Z.parent&&(!$||Z.parent.autoRemoveChildren)&&Z.parent.remove&&Z.parent.remove(Z),Z._act=0},t9=function(Z,$){if(Z&&(!$||$._end>Z._dur||$._start<0)){var J=Z;while(J)J._dirty=1,J=J.parent}return Z},eW=function(Z){var $=Z.parent;while($&&$.parent)$._dirty=1,$.totalDuration(),$=$.parent;return Z},L$=function(Z,$,J,K){return Z._startAt&&(a0?Z._startAt.revert(iJ):Z.vars.immediateRender&&!Z.vars.autoRevert||Z._startAt.render($,!0,K))},JG=function Q(Z){return!Z||Z._ts&&Q(Z.parent)},YK=function(Z){return Z._repeat?S8(Z._tTime,Z=Z.duration()+Z._rDelay)*Z:0},S8=function(Z,$){var J=Math.floor(Z=b0(Z/$));return Z&&J===Z?J-1:J},eJ=function(Z,$){return(Z-$._start)*$._ts+($._ts>=0?0:$._dirty?$.totalDuration():$._tDur)},KZ=function(Z){return Z._end=b0(Z._start+(Z._tDur/Math.abs(Z._ts||Z._rts||X0)||0))},QZ=function(Z,$){var J=Z._dp;if(J&&J.smoothChildTiming&&Z._ts)Z._start=b0(J._time-(Z._ts>0?$/Z._ts:((Z._dirty?Z.totalDuration():Z._tDur)-$)/-Z._ts)),KZ(Z),J._dirty||t9(J,Z);return Z},bK=function(Z,$){var J;if($._time||!$._dur&&$._initted||$._startX0)$.render(J,!0)}if(t9(Z,$)._dp&&Z._initted&&Z._time>=Z._dur&&Z._ts){if(Z._dur=0&&J.totalTime(J._tTime),J=J._dp}Z._zTime=-X0}},U9=function(Z,$,J,K){return $.parent&&v9($),$._start=b0((D9(J)?J:J||Z!==j0?y1(Z,J,$):Z._time)+$._delay),$._end=b0($._start+($.totalDuration()/Math.abs($.timeScale())||0)),xK(Z,$,"_first","_last",Z._sort?"_start":0),N$($)||(Z._recent=$),K||bK(Z,$),Z._ts<0&&QZ(Z,Z._tTime),Z},vK=function(Z,$){return(P1.ScrollTrigger||$Z("scrollTrigger",$))&&P1.ScrollTrigger.create($,Z)},yK=function(Z,$,J,K,W){if(w$(Z,$,W),!Z._initted)return 1;if(!J&&Z._pt&&!a0&&(Z._dur&&Z.vars.lazy!==!1||!Z._dur&&Z.vars.lazy)&&TK!==R1.frame)return x9.push(Z),Z._lazy=[W,K],1},ZG=function Q(Z){var $=Z.parent;return $&&$._ts&&$._initted&&!$._lock&&($.rawTime()<0||Q($))},N$=function(Z){var $=Z.data;return $==="isFromStart"||$==="isStart"},$G=function(Z,$,J,K){var W=Z.ratio,G=$<0||!$&&(!Z._start&&ZG(Z)&&!(!Z._initted&&N$(Z))||(Z._ts<0||Z._dp._ts<0)&&!N$(Z))?0:1,H=Z._rDelay,z=0,L,N,U;if(H&&Z._repeat){if(z=FJ(0,Z._tDur,$),N=S8(z,H),Z._yoyo&&N&1&&(G=1-G),N!==S8(Z._tTime,H))W=1-G,Z.vars.repeatRefresh&&Z._initted&&Z.invalidate()}if(G!==W||a0||K||Z._zTime===X0||!$&&Z._zTime){if(!Z._initted&&yK(Z,$,K,J,z))return;U=Z._zTime,Z._zTime=$||(J?X0:0),J||(J=$&&!U),Z.ratio=G,Z._from&&(G=1-G),Z._time=0,Z._tTime=z,L=Z._pt;while(L)L.r(G,L.d),L=L._next;if($<0&&L$(Z,$,J,!0),Z._onUpdate&&!J&&S1(Z,"onUpdate"),z&&Z._repeat&&!J&&Z.parent&&S1(Z,"onRepeat"),($>=Z._tDur||$<0)&&Z.ratio===G){if(G&&v9(Z,1),!J&&!a0)S1(Z,G?"onComplete":"onReverseComplete",!0),Z._prom&&Z._prom()}}else if(!Z._zTime)Z._zTime=$},KG=function(Z,$,J){var K;if(J>$){K=Z._first;while(K&&K._start<=J){if(K.data==="isPause"&&K._start>$)return K;K=K._next}}else{K=Z._last;while(K&&K._start>=J){if(K.data==="isPause"&&K._start<$)return K;K=K._prev}}},P8=function(Z,$,J,K){var W=Z._repeat,G=b0($)||0,H=Z._tTime/Z._tDur;return H&&!K&&(Z._time*=G/Z._dur),Z._dur=G,Z._tDur=!W?G:W<0?10000000000:b0(G*(W+1)+Z._rDelay*W),H>0&&!K&&QZ(Z,Z._tTime=Z._tDur*H),Z.parent&&KZ(Z),J||t9(Z.parent,Z),Z},DK=function(Z){return Z instanceof o0?t9(Z):P8(Z,Z._dur)},QG={_start:0,endTime:UJ,totalDuration:UJ},y1=function Q(Z,$,J){var K=Z.labels,W=Z._recent||QG,G=Z.duration()>=_1?W.endTime(!1):Z._dur,H,z,L;if(g0($)&&(isNaN($)||($ in K))){if(z=$.charAt(0),L=$.substr(-1)==="%",H=$.indexOf("="),z==="<"||z===">")return H>=0&&($=$.replace(/=/,"")),(z==="<"?W._start:W.endTime(W._repeat>=0))+(parseFloat($.substr(1))||0)*(L?(H<0?W:J).totalDuration()/100:1);if(H<0)return $ in K||(K[$]=G),K[$];if(z=parseFloat($.charAt(H-1)+$.substr(H+1)),L&&J)z=z/100*(W1(J)?J[0]:J).totalDuration();return H>1?Q(Z,$.substr(0,H-1),J)+z:G+z}return $==null?G:+$},WJ=function(Z,$,J){var K=D9($[1]),W=(K?2:1)+(Z<2?0:1),G=$[W],H,z;if(K&&(G.duration=$[1]),G.parent=J,Z){H=G,z=J;while(z&&!("immediateRender"in H))H=z.vars.defaults||{},z=I1(z.vars.inherit)&&z.parent;G.immediateRender=I1(H.immediateRender),Z<2?G.runBackwards=1:G.startAt=$[W-1]}return new f0($[0],G,$[W+1])},y9=function(Z,$){return Z||Z===0?$(Z):$},FJ=function(Z,$,J){return J$?$:J},r0=function(Z,$){return!g0(Z)||!($=iW.exec(Z))?"":$[1]},WG=function(Z,$,J){return y9(J,function(K){return FJ(Z,$,K)})},F$=[].slice,_K=function(Z,$){return Z&&z9(Z)&&"length"in Z&&(!$&&!Z.length||(Z.length-1 in Z)&&z9(Z[0]))&&!Z.nodeType&&Z!==H9},GG=function(Z,$,J){if(J===void 0)J=[];return Z.forEach(function(K){var W;return g0(K)&&!$||_K(K,1)?(W=J).push.apply(W,g1(K)):J.push(K)})||J},g1=function(Z,$,J){return I0&&!$&&I0.selector?I0.selector(Z):g0(Z)&&!J&&(U$||!T8())?F$.call(($||I$).querySelectorAll(Z),0):W1(Z)?GG(Z,J):_K(Z)?F$.call(Z,0):Z?[Z]:[]},q$=function(Z){return Z=g1(Z)[0]||HJ("Invalid scope")||{},function($){var J=Z.current||Z.nativeElement||Z;return g1($,J.querySelectorAll?J:J===Z?HJ("Invalid scope")||I$.createElement("div"):Z)}},gK=function(Z){return Z.sort(function(){return 0.5-Math.random()})},uK=function(Z){if(k0(Z))return Z;var $=z9(Z)?Z:{each:Z},J=e9($.ease),K=$.from||0,W=parseFloat($.base)||0,G={},H=K>0&&K<1,z=isNaN(K)||H,L=$.axis,N=K,U=K;if(g0(K))N=U={center:0.5,edges:0.5,end:1}[K]||0;else if(!H&&z)N=K[0],U=K[1];return function(q,F,M){var X=(M||$).length,E=G[X],V,I,O,Y,R,D,j,C,B;if(!E){if(B=$.grid==="auto"?0:($.grid||[1,_1])[1],!B){j=-_1;while(j<(j=M[B++].getBoundingClientRect().left)&&Bj&&(j=R),RX?X-1:!L?Math.max(B,X/B):L==="y"?X/B:B)||0)*(K==="edges"?-1:1),E.b=X<0?W-X:W,E.u=r0($.amount||$.each)||0,J=J&&X<0?oK(J):J}return X=(E[q]-E.min)/E.max||0,b0(E.b+(J?J(X):X)*E.v)+E.u}},M$=function(Z){var $=Math.pow(10,((Z+"").split(".")[1]||"").length);return function(J){var K=b0(Math.round(parseFloat(J)/Z)*Z*$);return(K-K%1)/$+(D9(J)?0:r0(J))}},mK=function(Z,$){var J=W1(Z),K,W;if(!J&&z9(Z))if(K=J=Z.radius||_1,Z.values){if(Z=g1(Z.values),W=!D9(Z[0]))K*=K}else Z=M$(Z.increment);return y9($,!J?M$(Z):k0(Z)?function(G){return W=Z(G),Math.abs(W-G)<=K?W:G}:function(G){var H=parseFloat(W?G.x:G),z=parseFloat(W?G.y:0),L=_1,N=0,U=Z.length,q,F;while(U--){if(W)q=Z[U].x-H,F=Z[U].y-z,q=q*q+F*F;else q=Math.abs(Z[U]-H);if(qK?W-G:G)})},w8=function(Z){var $=0,J="",K,W,G,H;while(~(K=Z.indexOf("random(",$)))G=Z.indexOf(")",K),H=Z.charAt(K+7)==="[",W=Z.substr(K+7,G-K-7).match(H?kK:H$),J+=Z.substr($,K-$)+dK(H?W:+W[0],H?0:+W[1],+W[2]||0.00001),$=G+1;return J+Z.substr($,Z.length-$)},pK=function(Z,$,J,K,W){var G=$-Z,H=K-J;return y9(W,function(z){return J+((z-Z)/G*H||0)})},FG=function Q(Z,$,J,K){var W=isNaN(Z+$)?0:function(F){return(1-F)*Z+F*$};if(!W){var G=g0(Z),H={},z,L,N,U,q;if(J===!0&&(K=1)&&(J=null),G)Z={p:Z},$={p:$};else if(W1(Z)&&!W1($)){N=[],U=Z.length,q=U-2;for(L=1;L(H=Math.abs(H)))z=G,W=H;return z},S1=function(Z,$,J){var K=Z.vars,W=K[$],G=I0,H=Z._ctx,z,L,N;if(!W)return;return z=K[$+"Params"],L=K.callbackScope||Z,J&&x9.length&&rJ(),H&&(I0=H),N=z?W.apply(L,z):W.call(L),I0=G,N},$J=function(Z){return v9(Z),Z.scrollTrigger&&Z.scrollTrigger.kill(!!a0),Z.progress()<1&&S1(Z,"onInterrupt"),Z},C8,lK=[],sK=function(Z){if(!Z)return;if(Z=!Z.name&&Z.default||Z,Y$()||Z.headless){var $=Z.name,J=k0(Z),K=$&&!J&&Z.init?function(){this._props=[]}:Z,W={init:UJ,render:x$,add:P$,kill:SG,modifier:AG,rawVars:0},G={targetTest:0,get:0,getSetter:WZ,aliases:{},register:0};if(T8(),Z!==K){if(D1[$])return;if(j1(K,j1(tJ(Z,W),G)),A8(K.prototype,A8(W,tJ(Z,G))),D1[K.prop=$]=K,Z.targetTest)nJ.push(K),V$[$]=1;$=($==="css"?"CSS":$.charAt(0).toUpperCase()+$.substr(1))+"Plugin"}PK($,K),Z.register&&Z.register(G1,K,F1)}else lK.push(Z)},M0=255,KJ={aqua:[0,M0,M0],lime:[0,M0,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,M0],navy:[0,0,128],white:[M0,M0,M0],olive:[128,128,0],yellow:[M0,M0,0],orange:[M0,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[M0,0,0],pink:[M0,192,203],cyan:[0,M0,M0],transparent:[M0,M0,M0,0]},Z$=function(Z,$,J){return Z+=Z<0?1:Z>1?-1:0,(Z*6<1?$+(J-$)*Z*6:Z<0.5?J:Z*3<2?$+(J-$)*(0.6666666666666666-Z)*6:$)*M0+0.5|0},iK=function(Z,$,J){var K=!Z?KJ.black:D9(Z)?[Z>>16,Z>>8&M0,Z&M0]:0,W,G,H,z,L,N,U,q,F,M;if(!K){if(Z.substr(-1)===",")Z=Z.substr(0,Z.length-1);if(KJ[Z])K=KJ[Z];else if(Z.charAt(0)==="#"){if(Z.length<6)W=Z.charAt(1),G=Z.charAt(2),H=Z.charAt(3),Z="#"+W+W+G+G+H+H+(Z.length===5?Z.charAt(4)+Z.charAt(4):"");if(Z.length===9)return K=parseInt(Z.substr(1,6),16),[K>>16,K>>8&M0,K&M0,parseInt(Z.substr(7),16)/255];Z=parseInt(Z.substr(1),16),K=[Z>>16,Z>>8&M0,Z&M0]}else if(Z.substr(0,3)==="hsl"){if(K=M=Z.match(H$),!$)z=+K[0]%360/360,L=+K[1]/100,N=+K[2]/100,G=N<=0.5?N*(L+1):N+L-N*L,W=N*2-G,K.length>3&&(K[3]*=1),K[0]=Z$(z+0.3333333333333333,W,G),K[1]=Z$(z,W,G),K[2]=Z$(z-0.3333333333333333,W,G);else if(~Z.indexOf("="))return K=Z.match(D$),J&&K.length<4&&(K[3]=1),K}else K=Z.match(H$)||KJ.transparent;K=K.map(Number)}if($&&!M){if(W=K[0]/M0,G=K[1]/M0,H=K[2]/M0,U=Math.max(W,G,H),q=Math.min(W,G,H),N=(U+q)/2,U===q)z=L=0;else F=U-q,L=N>0.5?F/(2-U-q):F/(U+q),z=U===W?(G-H)/F+(GZ||V<0)&&(J+=V-$),K+=V,R=K-J,O=R-G,O>0||I)D=++U.frame,q=R-U.time*1000,U.time=R=R/1000,G+=O+(O>=W?4:W-O),Y=1;if(I||(z=L(X)),Y)for(F=0;F=V&&F--},_listeners:H},U}(),T8=function(){return!zJ&&R1.wake()},W0={},MG=/^[\d.\-M][\d.\-,\s]/,XG=/["']/g,OG=function(Z){var $={},J=Z.substr(1,Z.length-3).split(":"),K=J[0],W=1,G=J.length,H,z,L;for(;W1&&J.config?J.config.apply(null,~Z.indexOf("{")?[OG($[1])]:EG(Z).split(",").map(fK)):W0._CE&&MG.test(Z)?W0._CE("",Z):J},oK=function(Z){return function($){return 1-Z(1-$)}},aK=function Q(Z,$){var J=Z._first,K;while(J){if(J instanceof o0)Q(J,$);else if(J.vars.yoyoEase&&(!J._yoyo||!J._repeat)&&J._yoyo!==$)if(J.timeline)Q(J.timeline,$);else K=J._ease,J._ease=J._yEase,J._yEase=K,J._yoyo=$;J=J._next}},e9=function(Z,$){return!Z?$:(k0(Z)?Z:W0[Z]||YG(Z))||$},K8=function(Z,$,J,K){if(J===void 0)J=function(z){return 1-$(1-z)};if(K===void 0)K=function(z){return z<0.5?$(z*2)/2:1-$((1-z)*2)/2};var W={easeIn:$,easeOut:J,easeInOut:K},G;return N1(Z,function(H){W0[H]=P1[H]=W,W0[G=H.toLowerCase()]=J;for(var z in W)W0[G+(z==="easeIn"?".in":z==="easeOut"?".out":".inOut")]=W0[H+"."+z]=W[z]}),W},rK=function(Z){return function($){return $<0.5?(1-Z(1-$*2))/2:0.5+Z(($-0.5)*2)/2}},$$=function Q(Z,$,J){var K=$>=1?$:1,W=(J||(Z?0.3:0.45))/($<1?$:1),G=W/G$*(Math.asin(1/K)||0),H=function(N){return N===1?1:K*Math.pow(2,-10*N)*sW((N-G)*W)+1},z=Z==="out"?H:Z==="in"?function(L){return 1-H(1-L)}:rK(H);return W=G$/W,z.config=function(L,N){return Q(Z,L,N)},z},K$=function Q(Z,$){if($===void 0)$=1.70158;var J=function(G){return G?--G*G*(($+1)*G+$)+1:0},K=Z==="out"?J:Z==="in"?function(W){return 1-J(1-W)}:rK(J);return K.config=function(W){return Q(Z,W)},K};N1("Linear,Quad,Cubic,Quart,Quint,Strong",function(Q,Z){var $=Z<5?Z+1:Z;K8(Q+",Power"+($-1),Z?function(J){return Math.pow(J,$)}:function(J){return J},function(J){return 1-Math.pow(1-J,$)},function(J){return J<0.5?Math.pow(J*2,$)/2:1-Math.pow((1-J)*2,$)/2})});W0.Linear.easeNone=W0.none=W0.Linear.easeIn;K8("Elastic",$$("in"),$$("out"),$$());(function(Q,Z){var $=1/Z,J=2*$,K=2.5*$,W=function(H){return H<$?Q*H*H:H0?J+(J+this._rDelay)*this._repeat:J):this.totalDuration()&&this._dur},Z.totalDuration=function(J){if(!arguments.length)return this._tDur;return this._dirty=0,P8(this,this._repeat<0?J:(J-this._repeat*this._rDelay)/(this._repeat+1))},Z.totalTime=function(J,K){if(T8(),!arguments.length)return this._tTime;var W=this._dp;if(W&&W.smoothChildTiming&&this._ts){QZ(this,J),!W._dp||W.parent||bK(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&&J0||!this._tDur&&!J))U9(this._dp,this,this._start-this._delay)}if(this._tTime!==J||!this._dur&&!K||this._initted&&Math.abs(this._zTime)===X0||!J&&!this._initted&&(this.add||this._ptLookup))this._ts||(this._pTime=J),wK(this,J,K);return this},Z.time=function(J,K){return arguments.length?this.totalTime(Math.min(this.totalDuration(),J+YK(this))%(this._dur+this._rDelay)||(J?this._dur:0),K):this._time},Z.totalProgress=function(J,K){return arguments.length?this.totalTime(this.totalDuration()*J,K):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},Z.progress=function(J,K){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-J:J)+YK(this),K):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},Z.iteration=function(J,K){var W=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(J-1)*W,K):this._repeat?S8(this._tTime,W)+1:1},Z.timeScale=function(J,K){if(!arguments.length)return this._rts===-X0?0:this._rts;if(this._rts===J)return this;var W=this.parent&&this._ts?eJ(this.parent._time,this):this._tTime;return this._rts=+J||0,this._ts=this._ps||J===-X0?0:this._rts,this.totalTime(FJ(-Math.abs(this._delay),this.totalDuration(),W),K!==!1),KZ(this),eW(this)},Z.paused=function(J){if(!arguments.length)return this._ps;if(this._ps!==J)if(this._ps=J,J)this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0;else T8(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==X0&&(this._tTime-=X0));return this},Z.startTime=function(J){if(arguments.length){this._start=J;var K=this.parent||this._dp;return K&&(K._sort||!this.parent)&&U9(K,this,J-this._delay),this}return this._start},Z.endTime=function(J){return this._start+(I1(J)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},Z.rawTime=function(J){var K=this.parent||this._dp;return!K?this._tTime:J&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):!this._ts?this._tTime:eJ(K.rawTime(J),this)},Z.revert=function(J){if(J===void 0)J=oW;var K=a0;if(a0=J,k$(this))this.timeline&&this.timeline.revert(J),this.totalTime(-0.01,J.suppressEvents);return this.data!=="nested"&&J.kill!==!1&&this.kill(),a0=K,this},Z.globalTime=function(J){var K=this,W=arguments.length?J:K.rawTime();while(K)W=K._start+W/(Math.abs(K._ts)||1),K=K._dp;return!this.parent&&this._sat?this._sat.globalTime(J):W},Z.repeat=function(J){if(arguments.length)return this._repeat=J===1/0?-2:J,DK(this);return this._repeat===-2?1/0:this._repeat},Z.repeatDelay=function(J){if(arguments.length){var K=this._time;return this._rDelay=J,DK(this),K?this.time(K):this}return this._rDelay},Z.yoyo=function(J){if(arguments.length)return this._yoyo=J,this;return this._yoyo},Z.seek=function(J,K){return this.totalTime(y1(this,J),I1(K))},Z.restart=function(J,K){return this.play().totalTime(J?-this._delay:0,I1(K)),this._dur||(this._zTime=-X0),this},Z.play=function(J,K){return J!=null&&this.seek(J,K),this.reversed(!1).paused(!1)},Z.reverse=function(J,K){return J!=null&&this.seek(J||this.totalDuration(),K),this.reversed(!0).paused(!1)},Z.pause=function(J,K){return J!=null&&this.seek(J,K),this.paused(!0)},Z.resume=function(){return this.paused(!1)},Z.reversed=function(J){if(arguments.length)return!!J!==this.reversed()&&this.timeScale(-this._rts||(J?-X0:0)),this;return this._rts<0},Z.invalidate=function(){return this._initted=this._act=0,this._zTime=-X0,this},Z.isActive=function(){var J=this.parent||this._dp,K=this._start,W;return!!(!J||this._ts&&this._initted&&J.isActive()&&(W=J.rawTime(!0))>=K&&W1){if(!K)delete G[J];else G[J]=K,W&&(G[J+"Params"]=W),J==="onUpdate"&&(this._onUpdate=K);return this}return G[J]},Z.then=function(J){var K=this;return new Promise(function(W){var G=k0(J)?J:hK,H=function(){var L=K.then;K.then=null,k0(G)&&(G=G(K))&&(G.then||G===K)&&(K.then=L),W(G),K.then=L};if(K._initted&&K.totalProgress()===1&&K._ts>=0||!K._tTime&&K._ts<0)H();else K._prom=H})},Z.kill=function(){$J(this)},Q}();j1(LJ.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:-X0,_prom:0,_ps:!1,_rts:1});var o0=function(Q){jK(Z,Q);function Z(J,K){var W;if(J===void 0)J={};return W=Q.call(this,J)||this,W.labels={},W.smoothChildTiming=!!J.smoothChildTiming,W.autoRemoveChildren=!!J.autoRemoveChildren,W._sort=I1(J.sortChildren),j0&&U9(J.parent||j0,E9(W),K),J.reversed&&W.reverse(),J.paused&&W.paused(!0),J.scrollTrigger&&vK(E9(W),J.scrollTrigger),W}var $=Z.prototype;return $.to=function(K,W,G){return WJ(0,arguments,this),this},$.from=function(K,W,G){return WJ(1,arguments,this),this},$.fromTo=function(K,W,G,H){return WJ(2,arguments,this),this},$.set=function(K,W,G){return W.duration=0,W.parent=this,QJ(W).repeatDelay||(W.repeat=0),W.immediateRender=!!W.immediateRender,new f0(K,W,y1(this,G),1),this},$.call=function(K,W,G){return U9(this,f0.delayedCall(0,K,W),G)},$.staggerTo=function(K,W,G,H,z,L,N){return G.duration=W,G.stagger=G.stagger||H,G.onComplete=L,G.onCompleteParams=N,G.parent=this,new f0(K,G,y1(this,z)),this},$.staggerFrom=function(K,W,G,H,z,L,N){return G.runBackwards=1,QJ(G).immediateRender=I1(G.immediateRender),this.staggerTo(K,W,G,H,z,L,N)},$.staggerFromTo=function(K,W,G,H,z,L,N,U){return H.startAt=G,QJ(H).immediateRender=I1(H.immediateRender),this.staggerTo(K,W,H,z,L,N,U)},$.render=function(K,W,G){var H=this._time,z=this._dirty?this.totalDuration():this._tDur,L=this._dur,N=K<=0?0:b0(K),U=this._zTime<0!==K<0&&(this._initted||!L),q,F,M,X,E,V,I,O,Y,R,D,j;if(this!==j0&&N>z&&K>=0&&(N=z),N!==this._tTime||G||U){if(H!==this._time&&L)N+=this._time-H,K+=this._time-H;if(q=N,Y=this._start,O=this._ts,V=!O,U)L||(H=this._zTime),(K||!W)&&(this._zTime=K);if(this._repeat){if(D=this._yoyo,E=L+this._rDelay,this._repeat<-1&&K<0)return this.totalTime(E*100+K,W,G);if(q=b0(N%E),N===z)X=this._repeat,q=L;else{if(R=b0(N/E),X=~~R,X&&X===R)q=L,X--;q>L&&(q=L)}if(R=S8(this._tTime,E),!H&&this._tTime&&R!==X&&this._tTime-R*E-this._dur<=0&&(R=X),D&&X&1)q=L-q,j=1;if(X!==R&&!this._lock){var C=D&&R&1,B=C===(D&&X&1);if(X=H&&K>=0){F=this._first;while(F){if(M=F._next,(F._act||q>=F._start)&&F._ts&&I!==F){if(F.parent!==this)return this.render(K,W,G);if(F.render(F._ts>0?(q-F._start)*F._ts:(F._dirty?F.totalDuration():F._tDur)+(q-F._start)*F._ts,W,G),q!==this._time||!this._ts&&!V){I=0,M&&(N+=this._zTime=-X0);break}}F=M}}else{F=this._last;var k=K<0?K:q;while(F){if(M=F._prev,(F._act||k<=F._end)&&F._ts&&I!==F){if(F.parent!==this)return this.render(K,W,G);if(F.render(F._ts>0?(k-F._start)*F._ts:(F._dirty?F.totalDuration():F._tDur)+(k-F._start)*F._ts,W,G||a0&&k$(F)),q!==this._time||!this._ts&&!V){I=0,M&&(N+=this._zTime=k?-X0:X0);break}}F=M}}if(I&&!W){if(this.pause(),I.render(q>=H?0:-X0)._zTime=q>=H?1:-1,this._ts)return this._start=Y,KZ(this),this.render(K,W,G)}if(this._onUpdate&&!W&&S1(this,"onUpdate",!0),N===z&&this._tTime>=this.totalDuration()||!N&&H){if(Y===this._start||Math.abs(O)!==Math.abs(this._ts)){if(!this._lock){if((K||!L)&&(N===z&&this._ts>0||!N&&this._ts<0)&&v9(this,1),!W&&!(K<0&&!H)&&(N||H||!z))S1(this,N===z&&K>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(N0)&&this._prom()}}}}return this},$.add=function(K,W){var G=this;if(D9(W)||(W=y1(this,W,K)),!(K instanceof LJ)){if(W1(K))return K.forEach(function(H){return G.add(H,W)}),this;if(g0(K))return this.addLabel(K,W);if(k0(K))K=f0.delayedCall(0,K);else return this}return this!==K?U9(this,K,W):this},$.getChildren=function(K,W,G,H){if(K===void 0)K=!0;if(W===void 0)W=!0;if(G===void 0)G=!0;if(H===void 0)H=-_1;var z=[],L=this._first;while(L){if(L._start>=H)if(L instanceof f0)W&&z.push(L);else G&&z.push(L),K&&z.push.apply(z,L.getChildren(!0,W,G));L=L._next}return z},$.getById=function(K){var W=this.getChildren(1,1,1),G=W.length;while(G--)if(W[G].vars.id===K)return W[G]},$.remove=function(K){if(g0(K))return this.removeLabel(K);if(k0(K))return this.killTweensOf(K);if(K.parent===this&&NJ(this,K),K===this._recent)this._recent=this._last;return t9(this)},$.totalTime=function(K,W){if(!arguments.length)return this._tTime;if(this._forcing=1,!this._dp&&this._ts)this._start=b0(R1.time-(this._ts>0?K/this._ts:(this.totalDuration()-K)/-this._ts));return Q.prototype.totalTime.call(this,K,W),this._forcing=0,this},$.addLabel=function(K,W){return this.labels[K]=y1(this,W),this},$.removeLabel=function(K){return delete this.labels[K],this},$.addPause=function(K,W,G){var H=f0.delayedCall(0,W||UJ,G);return H.data="isPause",this._hasPause=1,U9(this,H,y1(this,K))},$.removePause=function(K){var W=this._first;K=y1(this,K);while(W){if(W._start===K&&W.data==="isPause")v9(W);W=W._next}},$.killTweensOf=function(K,W,G){var H=this.getTweensOf(K,G),z=H.length;while(z--)h9!==H[z]&&H[z].kill(K,W);return this},$.getTweensOf=function(K,W){var G=[],H=g1(K),z=this._first,L=D9(W),N;while(z){if(z instanceof f0){if(aW(z._targets,H)&&(L?(!h9||z._initted&&z._ts)&&z.globalTime(0)<=W&&z.globalTime(z.totalDuration())>W:!W||z.isActive()))G.push(z)}else if((N=z.getTweensOf(H,W)).length)G.push.apply(G,N);z=z._next}return G},$.tweenTo=function(K,W){W=W||{};var G=this,H=y1(G,K),z=W,L=z.startAt,N=z.onStart,U=z.onStartParams,q=z.immediateRender,F,M=f0.to(G,j1({ease:W.ease||"none",lazy:!1,immediateRender:!1,time:H,overwrite:"auto",duration:W.duration||Math.abs((H-(L&&"time"in L?L.time:G._time))/G.timeScale())||X0,onStart:function(){if(G.pause(),!F){var E=W.duration||Math.abs((H-(L&&"time"in L?L.time:G._time))/G.timeScale());M._dur!==E&&P8(M,E,0,1).render(M._time,!0,!0),F=1}N&&N.apply(M,U||[])}},W));return q?M.render(0):M},$.tweenFromTo=function(K,W,G){return this.tweenTo(W,j1({startAt:{time:y1(this,K)}},G))},$.recent=function(){return this._recent},$.nextLabel=function(K){if(K===void 0)K=this._time;return RK(this,y1(this,K))},$.previousLabel=function(K){if(K===void 0)K=this._time;return RK(this,y1(this,K),1)},$.currentLabel=function(K){return arguments.length?this.seek(K,!0):this.previousLabel(this._time+X0)},$.shiftChildren=function(K,W,G){if(G===void 0)G=0;var H=this._first,z=this.labels,L;while(H){if(H._start>=G)H._start+=K,H._end+=K;H=H._next}if(W){for(L in z)if(z[L]>=G)z[L]+=K}return t9(this)},$.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)},$.clear=function(K){if(K===void 0)K=!0;var W=this._first,G;while(W)G=W._next,this.remove(W),W=G;return this._dp&&(this._time=this._tTime=this._pTime=0),K&&(this.labels={}),t9(this)},$.totalDuration=function(K){var W=0,G=this,H=G._last,z=_1,L,N,U;if(arguments.length)return G.timeScale((G._repeat<0?G.duration():G.totalDuration())/(G.reversed()?-K:K));if(G._dirty){U=G.parent;while(H){if(L=H._prev,H._dirty&&H.totalDuration(),N=H._start,N>z&&G._sort&&H._ts&&!G._lock)G._lock=1,U9(G,H,N-H._delay,1)._lock=0;else z=N;if(N<0&&H._ts){if(W-=N,!U&&!G._dp||U&&U.smoothChildTiming)G._start+=N/G._ts,G._time-=N,G._tTime-=N;G.shiftChildren(-N,!1,-1/0),z=0}H._end>W&&H._ts&&(W=H._end),H=L}P8(G,G===j0&&G._time>W?G._time:W,1,1),G._dirty=0}return G._tDur},Z.updateRoot=function(K){if(j0._ts)wK(j0,eJ(K,j0)),TK=R1.frame;if(R1.frame>=OK){OK+=V1.autoSleep||120;var W=j0._first;if(!W||!W._ts){if(V1.autoSleep&&R1._listeners.length<2){while(W&&!W._ts)W=W._next;W||R1.sleep()}}}},Z}(LJ);j1(o0.prototype,{_lock:0,_hasPause:0,_forcing:0});var DG=function(Z,$,J,K,W,G,H){var z=new F1(this._pt,Z,$,0,1,h$,null,W),L=0,N=0,U,q,F,M,X,E,V,I;if(z.b=J,z.e=K,J+="",K+="",V=~K.indexOf("random("))K=w8(K);if(G)I=[J,K],G(I,Z,$),J=I[0],K=I[1];q=J.match(eZ)||[];while(U=eZ.exec(K)){if(M=U[0],X=K.substring(L,U.index),F)F=(F+1)%5;else if(X.substr(-5)==="rgba(")F=1;if(M!==q[N++])E=parseFloat(q[N-1])||0,z._pt={_next:z._pt,p:X||N===1?X:",",s:E,c:M.charAt(1)==="="?$8(E,M)-E:parseFloat(M)-E,m:F&&F<4?Math.round:0},L=eZ.lastIndex}if(z.c=L")}),Y.duration();else{D={};for(C in M)C==="ease"||C==="easeEach"||jG(C,M[C],D,M.easeEach);for(C in D){T=D[C].sort(function(x,b){return x.t-b.t}),P=0;for(R=0;Rz-X0&&!N?z:KL)q=L;if(V=this._yoyo&&M&1,V)Y=this._yEase,q=L-q;if(E=S8(this._tTime,X),q===H&&!G&&this._initted&&M===E)return this._tTime=U,this;if(M!==E){if(O&&this._yEase&&aK(O,V),this.vars.repeatRefresh&&!V&&!this._lock&&q!==X&&this._initted)this._lock=G=1,this.render(b0(X*M),!0).invalidate()._lock=0}}if(!this._initted){if(yK(this,N?K:q,G,W,U))return this._tTime=0,this;if(H!==this._time&&!(G&&this.vars.repeatRefresh&&M!==E))return this;if(L!==this._dur)return this.render(K,W,G)}if(this._tTime=U,this._time=q,!this._act&&this._ts)this._act=1,this._lazy=0;if(this.ratio=I=(Y||this._ease)(q/L),this._from)this.ratio=I=1-I;if(!H&&U&&!W&&!E){if(S1(this,"onStart"),this._tTime!==U)return this}F=this._pt;while(F)F.r(I,F.d),F=F._next;if(O&&O.render(K<0?K:O._dur*O._ease(q/this._dur),W,G)||this._startAt&&(this._zTime=K),this._onUpdate&&!W)N&&L$(this,K,W,G),S1(this,"onUpdate");if(this._repeat&&M!==E&&this.vars.onRepeat&&!W&&this.parent&&S1(this,"onRepeat"),(U===this._tDur||!U)&&this._tTime===U){if(N&&!this._onUpdate&&L$(this,K,!0,!0),(K||!L)&&(U===this._tDur&&this._ts>0||!U&&this._ts<0)&&v9(this,1),!W&&!(N&&!H)&&(U||H||V))S1(this,U===z?"onComplete":"onReverseComplete",!0),this._prom&&!(U0)&&this._prom()}}return this},$.targets=function(){return this._targets},$.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)},$.resetTo=function(K,W,G,H,z){zJ||R1.wake(),this._ts||this.play();var L=Math.min(this._dur,(this._dp._time-this._start)*this._ts),N;if(this._initted||w$(this,L),N=this._ease(L/this._dur),IG(this,K,W,G,H,N,L,z))return this.resetTo(K,W,G,H,1);return QZ(this,0),this.parent||xK(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0)},$.kill=function(K,W){if(W===void 0)W="all";if(!K&&(!W||W==="all"))return this._lazy=this._pt=0,this.parent?$J(this):this.scrollTrigger&&this.scrollTrigger.kill(!!a0),this;if(this.timeline){var G=this.timeline.totalDuration();return this.timeline.killTweensOf(K,W,h9&&h9.vars.overwrite!==!0)._first||$J(this),this.parent&&G!==this.timeline.totalDuration()&&P8(this,this._dur*this.timeline._tDur/G,0,1),this}var H=this._targets,z=K?g1(K):H,L=this._ptLookup,N=this._pt,U,q,F,M,X,E,V;if((!W||W==="all")&&tW(H,z))return W==="all"&&(this._pt=0),$J(this);if(U=this._op=this._op||[],W!=="all"){if(g0(W))X={},N1(W,function(I){return X[I]=1}),W=X;W=VG(H,W)}V=H.length;while(V--)if(~z.indexOf(H[V])){if(q=L[V],W==="all")U[V]=W,M=q,F={};else F=U[V]=U[V]||{},M=W;for(X in M){if(E=q&&q[X],E){if(!("kill"in E.d)||E.d.kill(X)===!0)NJ(this,E,"_pt");delete q[X]}if(F!=="all")F[X]=1}}return this._initted&&!this._pt&&N&&$J(this),this},Z.to=function(K,W){return new Z(K,W,arguments[2])},Z.from=function(K,W){return WJ(1,arguments)},Z.delayedCall=function(K,W,G,H){return new Z(W,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:K,onComplete:W,onReverseComplete:W,onCompleteParams:G,onReverseCompleteParams:G,callbackScope:H})},Z.fromTo=function(K,W,G){return WJ(2,arguments)},Z.set=function(K,W){return W.duration=0,W.repeatDelay||(W.repeat=0),new Z(K,W)},Z.killTweensOf=function(K,W,G){return j0.killTweensOf(K,W,G)},Z}(LJ);j1(f0.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});N1("staggerTo,staggerFrom,staggerFromTo",function(Q){f0[Q]=function(){var Z=new o0,$=F$.call(arguments,0);return $.splice(Q==="staggerFromTo"?5:4,0,0),Z[Q].apply(Z,$)}});var f$=function(Z,$,J){return Z[$]=J},JQ=function(Z,$,J){return Z[$](J)},BG=function(Z,$,J,K){return Z[$](K.fp,J)},CG=function(Z,$,J){return Z.setAttribute($,J)},WZ=function(Z,$){return k0(Z[$])?JQ:ZZ(Z[$])&&Z.setAttribute?CG:f$},ZQ=function(Z,$){return $.set($.t,$.p,Math.round(($.s+$.c*Z)*1e6)/1e6,$)},kG=function(Z,$){return $.set($.t,$.p,!!($.s+$.c*Z),$)},h$=function(Z,$){var J=$._pt,K="";if(!Z&&$.b)K=$.b;else if(Z===1&&$.e)K=$.e;else{while(J)K=J.p+(J.m?J.m(J.s+J.c*Z):Math.round((J.s+J.c*Z)*1e4)/1e4)+K,J=J._next;K+=$.c}$.set($.t,$.p,K,$)},x$=function(Z,$){var J=$._pt;while(J)J.r(Z,J.d),J=J._next},AG=function(Z,$,J,K){var W=this._pt,G;while(W)G=W._next,W.p===K&&W.modifier(Z,$,J),W=G},SG=function(Z){var $=this._pt,J,K;while($){if(K=$._next,$.p===Z&&!$.op||$.op===Z)NJ(this,$,"_pt");else if(!$.dep)J=1;$=K}return!J},PG=function(Z,$,J,K){K.mSet(Z,$,K.m.call(K.tween,J,K.mt),K)},b$=function(Z){var $=Z._pt,J,K,W,G;while($){J=$._next,K=W;while(K&&K.pr>$.pr)K=K._next;if($._prev=K?K._prev:G)$._prev._next=$;else W=$;if($._next=K)K._prev=$;else G=$;$=J}Z._pt=W},F1=function(){function Q($,J,K,W,G,H,z,L,N){if(this.t=J,this.s=W,this.c=G,this.p=K,this.r=H||ZQ,this.d=z||this,this.set=L||f$,this.pr=N||0,this._next=$,$)$._prev=this}var Z=Q.prototype;return Z.modifier=function(J,K,W){this.mSet=this.mSet||this.set,this.set=PG,this.m=J,this.mt=W,this.tween=K},Q}();N1(j$+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(Q){return V$[Q]=1});P1.TweenMax=P1.TweenLite=f0;P1.TimelineLite=P1.TimelineMax=o0;j0=new o0({sortChildren:!1,defaults:k8,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});V1.stringFilter=A$;var J8=[],oJ={},TG=[],VK=0,wG=0,Q$=function(Z){return(oJ[Z]||TG).map(function($){return $()})},O$=function(){var Z=Date.now(),$=[];if(Z-VK>2)Q$("matchMediaInit"),J8.forEach(function(J){var{queries:K,conditions:W}=J,G,H,z,L;for(H in K)if(G=H9.matchMedia(K[H]).matches,G&&(z=1),G!==W[H])W[H]=G,L=1;if(L)J.revert(),z&&$.push(J)}),Q$("matchMediaRevert"),$.forEach(function(J){return J.onMatch(J,function(K){return J.add(null,K)})}),VK=Z,Q$("matchMedia")},$Q=function(){function Q($,J){this.selector=J&&q$(J),this.data=[],this._r=[],this.isReverted=!1,this.id=wG++,$&&this.add($)}var Z=Q.prototype;return Z.add=function(J,K,W){if(k0(J))W=K,K=J,J=k0;var G=this,H=function(){var L=I0,N=G.selector,U;return L&&L!==G&&L.data.push(G),W&&(G.selector=q$(W)),I0=G,U=K.apply(G,arguments),k0(U)&&G._r.push(U),I0=L,G.selector=N,G.isReverted=!1,U};return G.last=H,J===k0?H(G,function(z){return G.add(null,z)}):J?G[J]=H:H},Z.ignore=function(J){var K=I0;I0=null,J(this),I0=K},Z.getTweens=function(){var J=[];return this.data.forEach(function(K){return K instanceof Q?J.push.apply(J,K.getTweens()):K instanceof f0&&!(K.parent&&K.parent.data==="nested")&&J.push(K)}),J},Z.clear=function(){this._r.length=this.data.length=0},Z.kill=function(J,K){var W=this;if(J)(function(){var H=W.getTweens(),z=W.data.length,L;while(z--)if(L=W.data[z],L.data==="isFlip")L.revert(),L.getChildren(!0,!0,!1).forEach(function(N){return H.splice(H.indexOf(N),1)});H.map(function(N){return{g:N._dur||N._delay||N._sat&&!N._sat.vars.immediateRender?N.globalTime(0):-1/0,t:N}}).sort(function(N,U){return U.g-N.g||-1/0}).forEach(function(N){return N.t.revert(J)}),z=W.data.length;while(z--)if(L=W.data[z],L instanceof o0){if(L.data!=="nested")L.scrollTrigger&&L.scrollTrigger.revert(),L.kill()}else!(L instanceof f0)&&L.revert&&L.revert(J);W._r.forEach(function(N){return N(J,W)}),W.isReverted=!0})();else this.data.forEach(function(H){return H.kill&&H.kill()});if(this.clear(),K){var G=J8.length;while(G--)J8[G].id===this.id&&J8.splice(G,1)}},Z.revert=function(J){this.kill(J||{})},Q}(),fG=function(){function Q($){this.contexts=[],this.scope=$,I0&&I0.data.push(this)}var Z=Q.prototype;return Z.add=function(J,K,W){z9(J)||(J={matches:J});var G=new $Q(0,W||this.scope),H=G.conditions={},z,L,N;I0&&!G.selector&&(G.selector=I0.selector),this.contexts.push(G),K=G.add("onMatch",K),G.queries=J;for(L in J)if(L==="all")N=1;else if(z=H9.matchMedia(J[L]),z)J8.indexOf(G)<0&&J8.push(G),(H[L]=z.matches)&&(N=1),z.addListener?z.addListener(O$):z.addEventListener("change",O$);return N&&K(G,function(U){return G.add(null,U)}),this},Z.revert=function(J){this.kill(J||{})},Z.kill=function(J){this.contexts.forEach(function(K){return K.kill(J,!0)})},Q}(),JZ={registerPlugin:function(){for(var Z=arguments.length,$=Array(Z),J=0;J1){var K=Z.map(function(N){return G1.quickSetter(N,$,J)}),W=K.length;return function(N){var U=W;while(U--)K[U](N)}}Z=Z[0]||{};var G=D1[$],H=b9(Z),z=H.harness&&(H.harness.aliases||{})[$]||$,L=G?function(N){var U=new G;C8._pt=0,U.init(Z,J?N+J:N,C8,0,[Z]),U.render(1,U),C8._pt&&x$(1,C8)}:H.set(Z,z);return G?L:function(N){return L(Z,z,J?N+J:N,H,1)}},quickTo:function(Z,$,J){var K,W=G1.to(Z,j1((K={},K[$]="+=0.1",K.paused=!0,K.stagger=0,K),J||{})),G=function(z,L,N){return W.resetTo($,z,L,N)};return G.tween=W,G},isTweening:function(Z){return j0.getTweensOf(Z,!0).length>0},defaults:function(Z){return Z&&Z.ease&&(Z.ease=e9(Z.ease,k8.ease)),EK(k8,Z||{})},config:function(Z){return EK(V1,Z||{})},registerEffect:function(Z){var{name:$,effect:J,plugins:K,defaults:W,extendTimeline:G}=Z;if((K||"").split(",").forEach(function(H){return H&&!D1[H]&&!P1[H]&&HJ($+" effect requires "+H+" plugin.")}),J$[$]=function(H,z,L){return J(g1(H),j1(z||{},W),L)},G)o0.prototype[$]=function(H,z,L){return this.add(J$[$](H,z9(z)?z:(L=z)&&{},this),L)}},registerEase:function(Z,$){W0[Z]=e9($)},parseEase:function(Z,$){return arguments.length?e9(Z,$):W0},getById:function(Z){return j0.getById(Z)},exportRoot:function(Z,$){if(Z===void 0)Z={};var J=new o0(Z),K,W;J.smoothChildTiming=I1(Z.smoothChildTiming),j0.remove(J),J._dp=0,J._time=J._tTime=j0._time,K=j0._first;while(K){if(W=K._next,$||!(!K._dur&&K instanceof f0&&K.vars.onComplete===K._targets[0]))U9(J,K,K._start-K._delay);K=W}return U9(j0,J,0),J},context:function(Z,$){return Z?new $Q(Z,$):I0},matchMedia:function(Z){return new fG(Z)},matchMediaRefresh:function(){return J8.forEach(function(Z){var $=Z.conditions,J,K;for(K in $)if($[K])$[K]=!1,J=1;J&&Z.revert()})||O$()},addEventListener:function(Z,$){var J=oJ[Z]||(oJ[Z]=[]);~J.indexOf($)||J.push($)},removeEventListener:function(Z,$){var J=oJ[Z],K=J&&J.indexOf($);K>=0&&J.splice(K,1)},utils:{wrap:LG,wrapYoyo:NG,distribute:uK,random:dK,snap:mK,normalize:zG,getUnit:r0,clamp:WG,splitColor:iK,toArray:g1,selector:q$,mapRange:pK,pipe:HG,unitize:UG,interpolate:FG,shuffle:gK},install:SK,effects:J$,ticker:R1,updateRoot:o0.updateRoot,plugins:D1,globalTimeline:j0,core:{PropTween:F1,globals:PK,Tween:f0,Timeline:o0,Animation:LJ,getCache:b9,_removeLinkedListItem:NJ,reverting:function(){return a0},context:function(Z){if(Z&&I0)I0.data.push(Z),Z._ctx=I0;return I0},suppressOverwrites:function(Z){return E$=Z}}};N1("to,from,fromTo,delayedCall,set,killTweensOf",function(Q){return JZ[Q]=f0[Q]});R1.add(o0.updateRoot);C8=JZ.to({},{duration:0});var hG=function(Z,$){var J=Z._pt;while(J&&J.p!==$&&J.op!==$&&J.fp!==$)J=J._next;return J},xG=function(Z,$){var J=Z._targets,K,W,G;for(K in $){W=J.length;while(W--)if(G=Z._ptLookup[W][K],G&&(G=G.d)){if(G._pt)G=hG(G,K);G&&G.modifier&&G.modifier($[K],Z,J[W],K)}}},W$=function(Z,$){return{name:Z,headless:1,rawVars:1,init:function(K,W,G){G._onInit=function(H){var z,L;if(g0(W))z={},N1(W,function(N){return z[N]=1}),W=z;if($){z={};for(L in W)z[L]=$(W[L]);W=z}xG(H,W)}}}},G1=JZ.registerPlugin({name:"attr",init:function(Z,$,J,K,W){var G,H,z;this.tween=J;for(G in $)z=Z.getAttribute(G)||"",H=this.add(Z,"setAttribute",(z||0)+"",$[G],K,W,0,0,G),H.op=G,H.b=z,this._props.push(G)},render:function(Z,$){var J=$._pt;while(J)a0?J.set(J.t,J.p,J.b,J):J.r(Z,J.d),J=J._next}},{name:"endArray",headless:1,init:function(Z,$){var J=$.length;while(J--)this.add(Z,J,Z[J]||0,$[J],0,0,0,0,0,1)}},W$("roundProps",M$),W$("modifiers"),W$("snap",mK))||JZ;f0.version=o0.version=G1.version="3.13.0";AK=1;Y$()&&T8();var{Power0:bG,Power1:vG,Power2:yG,Power3:_G,Power4:gG,Linear:uG,Quad:mG,Cubic:dG,Quart:cG,Quint:pG,Strong:lG,Elastic:sG,Back:iG,SteppedEase:nG,Bounce:oG,Sine:aG,Expo:rG,Circ:tG}=W0;/*! * CSSPlugin 3.13.0 * https://gsap.com * * Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var KQ,_9,h8,m$,H8,eG,QQ,d$,J5=function(){return typeof window<"u"},I9={},G8=180/Math.PI,x8=Math.PI/180,f8=Math.atan2,WQ=1e8,c$=/([A-Z])/g,Z5=/(left|right|width|margin|padding|x)/i,$5=/[\s,\(]\S/,L9={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},y$=function(Z,$){return $.set($.t,$.p,Math.round(($.s+$.c*Z)*1e4)/1e4+$.u,$)},K5=function(Z,$){return $.set($.t,$.p,Z===1?$.e:Math.round(($.s+$.c*Z)*1e4)/1e4+$.u,$)},Q5=function(Z,$){return $.set($.t,$.p,Z?Math.round(($.s+$.c*Z)*1e4)/1e4+$.u:$.b,$)},W5=function(Z,$){var J=$.s+$.c*Z;$.set($.t,$.p,~~(J+(J<0?-0.5:0.5))+$.u,$)},qQ=function(Z,$){return $.set($.t,$.p,Z?$.e:$.b,$)},MQ=function(Z,$){return $.set($.t,$.p,Z!==1?$.b:$.e,$)},G5=function(Z,$,J){return Z.style[$]=J},H5=function(Z,$,J){return Z.style.setProperty($,J)},U5=function(Z,$,J){return Z._gsap[$]=J},z5=function(Z,$,J){return Z._gsap.scaleX=Z._gsap.scaleY=J},L5=function(Z,$,J,K,W){var G=Z._gsap;G.scaleX=G.scaleY=J,G.renderTransform(W,G)},N5=function(Z,$,J,K,W){var G=Z._gsap;G[$]=J,G.renderTransform(W,G)},B0="transform",B1=B0+"Origin",F5=function Q(Z,$){var J=this,K=this.target,W=K.style,G=K._gsap;if(Z in I9&&W){if(this.tfm=this.tfm||{},Z!=="transform")Z=L9[Z]||Z,~Z.indexOf(",")?Z.split(",").forEach(function(H){return J.tfm[H]=R9(K,H)}):this.tfm[Z]=G.x?G[Z]:R9(K,Z),Z===B1&&(this.tfm.zOrigin=G.zOrigin);else return L9.transform.split(",").forEach(function(H){return Q.call(J,H,$)});if(this.props.indexOf(B0)>=0)return;if(G.svg)this.svgo=K.getAttribute("data-svg-origin"),this.props.push(B1,$,"");Z=B0}(W||$)&&this.props.push(Z,$,W[Z])},XQ=function(Z){if(Z.translate)Z.removeProperty("translate"),Z.removeProperty("scale"),Z.removeProperty("rotate")},q5=function(){var Z=this.props,$=this.target,J=$.style,K=$._gsap,W,G;for(W=0;W=0?GQ[G]:"")+Z},g$=function(){if(J5()&&window.document)KQ=window,_9=KQ.document,h8=_9.documentElement,H8=_$("div")||{style:{}},eG=_$("div"),B0=b8(B0),B1=B0+"Origin",H8.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",EQ=!!b8("perspective"),d$=G1.core.reverting,m$=1},HQ=function(Z){var $=Z.ownerSVGElement,J=_$("svg",$&&$.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),K=Z.cloneNode(!0),W;K.style.display="block",J.appendChild(K),h8.appendChild(J);try{W=K.getBBox()}catch(G){}return J.removeChild(K),h8.removeChild(J),W},UQ=function(Z,$){var J=$.length;while(J--)if(Z.hasAttribute($[J]))return Z.getAttribute($[J])},YQ=function(Z){var $,J;try{$=Z.getBBox()}catch(K){$=HQ(Z),J=1}return $&&($.width||$.height)||J||($=HQ(Z)),$&&!$.width&&!$.x&&!$.y?{x:+UQ(Z,["x","cx","x1"])||0,y:+UQ(Z,["y","cy","y1"])||0,width:0,height:0}:$},DQ=function(Z){return!!(Z.getCTM&&(!Z.parentNode||Z.ownerSVGElement)&&YQ(Z))},U8=function(Z,$){if($){var J=Z.style,K;if($ in I9&&$!==B1)$=B0;if(J.removeProperty){if(K=$.substr(0,2),K==="ms"||$.substr(0,6)==="webkit")$="-"+$;J.removeProperty(K==="--"?$:$.replace(c$,"-$1").toLowerCase())}else J.removeAttribute($)}},g9=function(Z,$,J,K,W,G){var H=new F1(Z._pt,$,J,0,1,G?MQ:qQ);return Z._pt=H,H.b=K,H.e=W,Z._props.push(J),H},zQ={deg:1,rad:1,turn:1},M5={grid:1,flex:1},u9=function Q(Z,$,J,K){var W=parseFloat(J)||0,G=(J+"").trim().substr((W+"").length)||"px",H=H8.style,z=Z5.test($),L=Z.tagName.toLowerCase()==="svg",N=(L?"client":"offset")+(z?"Width":"Height"),U=100,q=K==="px",F=K==="%",M,X,E,V;if(K===G||!W||zQ[K]||zQ[G])return W;if(G!=="px"&&!q&&(W=Q(Z,$,J,"px")),V=Z.getCTM&&DQ(Z),(F||G==="%")&&(I9[$]||~$.indexOf("adius")))return M=V?Z.getBBox()[z?"width":"height"]:Z[N],A0(F?W/M*U:W/100*M);if(H[z?"width":"height"]=U+(q?G:K),X=K!=="rem"&&~$.indexOf("adius")||K==="em"&&Z.appendChild&&!L?Z:Z.parentNode,V)X=(Z.ownerSVGElement||{}).parentNode;if(!X||X===_9||!X.appendChild)X=_9.body;if(E=X._gsap,E&&F&&E.width&&z&&E.time===R1.time&&!E.uncache)return A0(W/E.width*U);else{if(F&&($==="height"||$==="width")){var I=Z.style[$];Z.style[$]=U+K,M=Z[N],I?Z.style[$]=I:U8(Z,$)}else(F||G==="%")&&!M5[u1(X,"display")]&&(H.position=u1(Z,"position")),X===Z&&(H.position="static"),X.appendChild(H8),M=H8[N],X.removeChild(H8),H.position="absolute";if(z&&F)E=b9(X),E.time=R1.time,E.width=X[N]}return A0(q?M*W/U:M&&W?U/M*W:0)},R9=function(Z,$,J,K){var W;if(m$||g$(),$ in L9&&$!=="transform"){if($=L9[$],~$.indexOf(","))$=$.split(",")[0]}if(I9[$]&&$!=="transform")W=XJ(Z,K),W=$!=="transformOrigin"?W[$]:W.svg?W.origin:HZ(u1(Z,B1))+" "+W.zOrigin+"px";else if(W=Z.style[$],!W||W==="auto"||K||~(W+"").indexOf("calc("))W=GZ[$]&&GZ[$](Z,$,J)||u1(Z,$)||C$(Z,$)||($==="opacity"?1:0);return J&&!~(W+"").trim().indexOf(" ")?u9(Z,$,W,J)+J:W},X5=function(Z,$,J,K){if(!J||J==="none"){var W=b8($,Z,1),G=W&&u1(Z,W,1);if(G&&G!==J)$=W,J=G;else if($==="borderColor")J=u1(Z,"borderTopColor")}var H=new F1(this._pt,Z.style,$,0,1,h$),z=0,L=0,N,U,q,F,M,X,E,V,I,O,Y,R;if(H.b=J,H.e=K,J+="",K+="",K.substring(0,6)==="var(--")K=u1(Z,K.substring(4,K.indexOf(")")));if(K==="auto")X=Z.style[$],Z.style[$]=K,K=u1(Z,$)||K,X?Z.style[$]=X:U8(Z,$);if(N=[J,K],A$(N),J=N[0],K=N[1],q=J.match(Z8)||[],R=K.match(Z8)||[],R.length){while(U=Z8.exec(K)){if(E=U[0],I=K.substring(z,U.index),M)M=(M+1)%5;else if(I.substr(-5)==="rgba("||I.substr(-5)==="hsla(")M=1;if(E!==(X=q[L++]||"")){if(F=parseFloat(X)||0,Y=X.substr((F+"").length),E.charAt(1)==="="&&(E=$8(F,E)+Y),V=parseFloat(E),O=E.substr((V+"").length),z=Z8.lastIndex-O.length,!O){if(O=O||V1.units[$]||Y,z===K.length)K+=O,H.e+=O}if(Y!==O)F=u9(Z,$,X,O)||0;H._pt={_next:H._pt,p:I||L===1?I:",",s:F,c:V-F,m:M&&M<4||$==="zIndex"?Math.round:0}}}H.c=z-1){if(H=W[L],I9[H])z=1,H=H==="transformOrigin"?B1:B0;U8(J,H)}}if(z){if(U8(J,B0),G)G.svg&&J.removeAttribute("transform"),K.scale=K.rotate=K.translate="none",XJ(J,1),G.uncache=1,XQ(K)}}},GZ={clearProps:function(Z,$,J,K,W){if(W.data!=="isFromStart"){var G=Z._pt=new F1(Z._pt,$,J,0,0,E5);return G.u=K,G.pr=-10,G.tween=W,Z._props.push(J),1}}},MJ=[1,0,0,1,0,0],RQ={},IQ=function(Z){return Z==="matrix(1, 0, 0, 1, 0, 0)"||Z==="none"||!Z},NQ=function(Z){var $=u1(Z,B0);return IQ($)?MJ:$.substr(7).match(D$).map(A0)},p$=function(Z,$){var J=Z._gsap||b9(Z),K=Z.style,W=NQ(Z),G,H,z,L;if(J.svg&&Z.getAttribute("transform"))return z=Z.transform.baseVal.consolidate().matrix,W=[z.a,z.b,z.c,z.d,z.e,z.f],W.join(",")==="1,0,0,1,0,0"?MJ:W;else if(W===MJ&&!Z.offsetParent&&Z!==h8&&!J.svg){if(z=K.display,K.display="block",G=Z.parentNode,!G||!Z.offsetParent&&!Z.getBoundingClientRect().width)L=1,H=Z.nextElementSibling,h8.appendChild(Z);if(W=NQ(Z),z?K.display=z:U8(Z,"display"),L)H?G.insertBefore(Z,H):G?G.appendChild(Z):h8.removeChild(Z)}return $&&W.length>6?[W[0],W[1],W[4],W[5],W[12],W[13]]:W},u$=function(Z,$,J,K,W,G){var H=Z._gsap,z=W||p$(Z,!0),L=H.xOrigin||0,N=H.yOrigin||0,U=H.xOffset||0,q=H.yOffset||0,F=z[0],M=z[1],X=z[2],E=z[3],V=z[4],I=z[5],O=$.split(" "),Y=parseFloat(O[0])||0,R=parseFloat(O[1])||0,D,j,C,B;if(!J)D=YQ(Z),Y=D.x+(~O[0].indexOf("%")?Y/100*D.width:Y),R=D.y+(~(O[1]||O[0]).indexOf("%")?R/100*D.height:R);else if(z!==MJ&&(j=F*E-M*X))C=Y*(E/j)+R*(-X/j)+(X*I-E*V)/j,B=Y*(-M/j)+R*(F/j)-(F*I-M*V)/j,Y=C,R=B;if(K||K!==!1&&H.smooth)V=Y-L,I=R-N,H.xOffset=U+(V*F+I*X)-V,H.yOffset=q+(V*M+I*E)-I;else H.xOffset=H.yOffset=0;if(H.xOrigin=Y,H.yOrigin=R,H.smooth=!!K,H.origin=$,H.originIsAbsolute=!!J,Z.style[B1]="0px 0px",G)g9(G,H,"xOrigin",L,Y),g9(G,H,"yOrigin",N,R),g9(G,H,"xOffset",U,H.xOffset),g9(G,H,"yOffset",q,H.yOffset);Z.setAttribute("data-svg-origin",Y+" "+R)},XJ=function(Z,$){var J=Z._gsap||new S$(Z);if("x"in J&&!$&&!J.uncache)return J;var K=Z.style,W=J.scaleX<0,G="px",H="deg",z=getComputedStyle(Z),L=u1(Z,B1)||"0",N,U,q,F,M,X,E,V,I,O,Y,R,D,j,C,B,k,A,P,T,h,f,x,b,_,m,S,c,t,o,d,G0;if(N=U=q=X=E=V=I=O=Y=0,F=M=1,J.svg=!!(Z.getCTM&&DQ(Z)),z.translate){if(z.translate!=="none"||z.scale!=="none"||z.rotate!=="none")K[B0]=(z.translate!=="none"?"translate3d("+(z.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(z.rotate!=="none"?"rotate("+z.rotate+") ":"")+(z.scale!=="none"?"scale("+z.scale.split(" ").join(",")+") ":"")+(z[B0]!=="none"?z[B0]:"");K.scale=K.rotate=K.translate="none"}if(j=p$(Z,J.svg),J.svg){if(J.uncache)_=Z.getBBox(),L=J.xOrigin-_.x+"px "+(J.yOrigin-_.y)+"px",b="";else b=!$&&Z.getAttribute("data-svg-origin");u$(Z,b||L,!!b||J.originIsAbsolute,J.smooth!==!1,j)}if(R=J.xOrigin||0,D=J.yOrigin||0,j!==MJ){if(A=j[0],P=j[1],T=j[2],h=j[3],N=f=j[4],U=x=j[5],j.length===6){if(F=Math.sqrt(A*A+P*P),M=Math.sqrt(h*h+T*T),X=A||P?f8(P,A)*G8:0,I=T||h?f8(T,h)*G8+X:0,I&&(M*=Math.abs(Math.cos(I*x8))),J.svg)N-=R-(R*A+D*T),U-=D-(R*P+D*h)}else{if(G0=j[6],o=j[7],S=j[8],c=j[9],t=j[10],d=j[11],N=j[12],U=j[13],q=j[14],C=f8(G0,t),E=C*G8,C)B=Math.cos(-C),k=Math.sin(-C),b=f*B+S*k,_=x*B+c*k,m=G0*B+t*k,S=f*-k+S*B,c=x*-k+c*B,t=G0*-k+t*B,d=o*-k+d*B,f=b,x=_,G0=m;if(C=f8(-T,t),V=C*G8,C)B=Math.cos(-C),k=Math.sin(-C),b=A*B-S*k,_=P*B-c*k,m=T*B-t*k,d=h*k+d*B,A=b,P=_,T=m;if(C=f8(P,A),X=C*G8,C)B=Math.cos(C),k=Math.sin(C),b=A*B+P*k,_=f*B+x*k,P=P*B-A*k,x=x*B-f*k,A=b,f=_;if(E&&Math.abs(E)+Math.abs(X)>359.9)E=X=0,V=180-V;F=A0(Math.sqrt(A*A+P*P+T*T)),M=A0(Math.sqrt(x*x+G0*G0)),C=f8(f,x),I=Math.abs(C)>0.0002?C*G8:0,Y=d?1/(d<0?-d:d):0}if(J.svg)b=Z.getAttribute("transform"),J.forceCSS=Z.setAttribute("transform","")||!IQ(u1(Z,B0)),b&&Z.setAttribute("transform",b)}if(Math.abs(I)>90&&Math.abs(I)<270)if(W)F*=-1,I+=X<=0?180:-180,X+=X<=0?180:-180;else M*=-1,I+=I<=0?180:-180;if($=$||J.uncache,J.x=N-((J.xPercent=N&&(!$&&J.xPercent||(Math.round(Z.offsetWidth/2)===Math.round(-N)?-50:0)))?Z.offsetWidth*J.xPercent/100:0)+G,J.y=U-((J.yPercent=U&&(!$&&J.yPercent||(Math.round(Z.offsetHeight/2)===Math.round(-U)?-50:0)))?Z.offsetHeight*J.yPercent/100:0)+G,J.z=q+G,J.scaleX=A0(F),J.scaleY=A0(M),J.rotation=A0(X)+H,J.rotationX=A0(E)+H,J.rotationY=A0(V)+H,J.skewX=I+H,J.skewY=O+H,J.transformPerspective=Y+G,J.zOrigin=parseFloat(L.split(" ")[2])||!$&&J.zOrigin||0)K[B1]=HZ(L);return J.xOffset=J.yOffset=0,J.force3D=V1.force3D,J.renderTransform=J.svg?D5:EQ?VQ:Y5,J.uncache=0,J},HZ=function(Z){return(Z=Z.split(" "))[0]+" "+Z[1]},v$=function(Z,$,J){var K=r0($);return A0(parseFloat($)+parseFloat(u9(Z,"x",J+"px",K)))+K},Y5=function(Z,$){$.z="0px",$.rotationY=$.rotationX="0deg",$.force3D=0,VQ(Z,$)},Q8="0deg",qJ="0px",W8=") ",VQ=function(Z,$){var J=$||this,K=J.xPercent,W=J.yPercent,G=J.x,H=J.y,z=J.z,L=J.rotation,N=J.rotationY,U=J.rotationX,q=J.skewX,F=J.skewY,M=J.scaleX,X=J.scaleY,E=J.transformPerspective,V=J.force3D,I=J.target,O=J.zOrigin,Y="",R=V==="auto"&&Z&&Z!==1||V===!0;if(O&&(U!==Q8||N!==Q8)){var D=parseFloat(N)*x8,j=Math.sin(D),C=Math.cos(D),B;D=parseFloat(U)*x8,B=Math.cos(D),G=v$(I,G,j*B*-O),H=v$(I,H,-Math.sin(D)*-O),z=v$(I,z,C*B*-O+O)}if(E!==qJ)Y+="perspective("+E+W8;if(K||W)Y+="translate("+K+"%, "+W+"%) ";if(R||G!==qJ||H!==qJ||z!==qJ)Y+=z!==qJ||R?"translate3d("+G+", "+H+", "+z+") ":"translate("+G+", "+H+W8;if(L!==Q8)Y+="rotate("+L+W8;if(N!==Q8)Y+="rotateY("+N+W8;if(U!==Q8)Y+="rotateX("+U+W8;if(q!==Q8||F!==Q8)Y+="skew("+q+", "+F+W8;if(M!==1||X!==1)Y+="scale("+M+", "+X+W8;I.style[B0]=Y||"translate(0, 0)"},D5=function(Z,$){var J=$||this,K=J.xPercent,W=J.yPercent,G=J.x,H=J.y,z=J.rotation,L=J.skewX,N=J.skewY,U=J.scaleX,q=J.scaleY,F=J.target,M=J.xOrigin,X=J.yOrigin,E=J.xOffset,V=J.yOffset,I=J.forceCSS,O=parseFloat(G),Y=parseFloat(H),R,D,j,C,B;if(z=parseFloat(z),L=parseFloat(L),N=parseFloat(N),N)N=parseFloat(N),L+=N,z+=N;if(z||L){if(z*=x8,L*=x8,R=Math.cos(z)*U,D=Math.sin(z)*U,j=Math.sin(z-L)*-q,C=Math.cos(z-L)*q,L){if(N*=x8,B=Math.tan(L-N),B=Math.sqrt(1+B*B),j*=B,C*=B,N)B=Math.tan(N),B=Math.sqrt(1+B*B),R*=B,D*=B}R=A0(R),D=A0(D),j=A0(j),C=A0(C)}else R=U,C=q,D=j=0;if(O&&!~(G+"").indexOf("px")||Y&&!~(H+"").indexOf("px"))O=u9(F,"x",G,"px"),Y=u9(F,"y",H,"px");if(M||X||E||V)O=A0(O+M-(M*R+X*j)+E),Y=A0(Y+X-(M*D+X*C)+V);if(K||W)B=F.getBBox(),O=A0(O+K/100*B.width),Y=A0(Y+W/100*B.height);B="matrix("+R+","+D+","+j+","+C+","+O+","+Y+")",F.setAttribute("transform",B),I&&(F.style[B0]=B)},R5=function(Z,$,J,K,W){var G=360,H=g0(W),z=parseFloat(W)*(H&&~W.indexOf("rad")?G8:1),L=z-K,N=K+L+"deg",U,q;if(H){if(U=W.split("_")[1],U==="short"){if(L%=G,L!==L%(G/2))L+=L<0?G:-G}if(U==="cw"&&L<0)L=(L+G*WQ)%G-~~(L/G)*G;else if(U==="ccw"&&L>0)L=(L-G*WQ)%G-~~(L/G)*G}return Z._pt=q=new F1(Z._pt,$,J,K,L,K5),q.e=N,q.u="deg",Z._props.push(J),q},FQ=function(Z,$){for(var J in $)Z[J]=$[J];return Z},I5=function(Z,$,J){var K=FQ({},J._gsap),W="perspective,force3D,transformOrigin,svgOrigin",G=J.style,H,z,L,N,U,q,F,M;if(K.svg)L=J.getAttribute("transform"),J.setAttribute("transform",""),G[B0]=$,H=XJ(J,1),U8(J,B0),J.setAttribute("transform",L);else L=getComputedStyle(J)[B0],G[B0]=$,H=XJ(J,1),G[B0]=L;for(z in I9)if(L=K[z],N=H[z],L!==N&&W.indexOf(z)<0)F=r0(L),M=r0(N),U=F!==M?u9(J,z,L,M):parseFloat(L),q=parseFloat(N),Z._pt=new F1(Z._pt,H,z,U,q-U,y$),Z._pt.u=M||0,Z._props.push(z);FQ(H,K)};N1("padding,margin,Width,Radius",function(Q,Z){var $="Top",J="Right",K="Bottom",W="Left",G=(Z<3?[$,J,K,W]:[$+W,$+J,K+J,K+W]).map(function(H){return Z<2?Q+H:"border"+H+Q});GZ[Z>1?"border"+Q:Q]=function(H,z,L,N,U){var q,F;if(arguments.length<4)return q=G.map(function(M){return R9(H,M,L)}),F=q.join(" "),F.split(q[0]).length===5?q[0]:F;q=(N+"").split(" "),F={},G.forEach(function(M,X){return F[M]=q[X]=q[X]||q[(X-1)/2|0]}),H.init(z,F,U)}});var l$={name:"css",register:g$,targetTest:function(Z){return Z.style&&Z.nodeType},init:function(Z,$,J,K,W){var G=this._props,H=Z.style,z=J.vars.startAt,L,N,U,q,F,M,X,E,V,I,O,Y,R,D,j,C;m$||g$(),this.styles=this.styles||OQ(Z),C=this.styles.props,this.tween=J;for(X in $){if(X==="autoRound")continue;if(N=$[X],D1[X]&&T$(X,$,J,K,Z,W))continue;if(F=typeof N,M=GZ[X],F==="function")N=N.call(J,K,Z,W),F=typeof N;if(F==="string"&&~N.indexOf("random("))N=w8(N);if(M)M(this,Z,X,N,J)&&(j=1);else if(X.substr(0,2)==="--"){if(L=(getComputedStyle(Z).getPropertyValue(X)+"").trim(),N+="",Y9.lastIndex=0,!Y9.test(L))E=r0(L),V=r0(N);V?E!==V&&(L=u9(Z,X,L,V)+V):E&&(N+=E),this.add(H,"setProperty",L,N,K,W,0,0,X),G.push(X),C.push(X,0,H[X])}else if(F!=="undefined"){if(z&&X in z)L=typeof z[X]==="function"?z[X].call(J,K,Z,W):z[X],g0(L)&&~L.indexOf("random(")&&(L=w8(L)),r0(L+"")||L==="auto"||(L+=V1.units[X]||r0(R9(Z,X))||""),(L+"").charAt(1)==="="&&(L=R9(Z,X));else L=R9(Z,X);if(q=parseFloat(L),I=F==="string"&&N.charAt(1)==="="&&N.substr(0,2),I&&(N=N.substr(2)),U=parseFloat(N),X in L9){if(X==="autoAlpha"){if(q===1&&R9(Z,"visibility")==="hidden"&&U)q=0;C.push("visibility",0,H.visibility),g9(this,H,"visibility",q?"inherit":"hidden",U?"inherit":"hidden",!U)}if(X!=="scale"&&X!=="transform")X=L9[X],~X.indexOf(",")&&(X=X.split(",")[0])}if(O=X in I9,O){if(this.styles.save(X),F==="string"&&N.substring(0,6)==="var(--")N=u1(Z,N.substring(4,N.indexOf(")"))),U=parseFloat(N);if(!Y)R=Z._gsap,R.renderTransform&&!$.parseTransform||XJ(Z,$.parseTransform),D=$.smoothOrigin!==!1&&R.smooth,Y=this._pt=new F1(this._pt,H,B0,0,1,R.renderTransform,R,0,-1),Y.dep=1;if(X==="scale")this._pt=new F1(this._pt,R,"scaleY",R.scaleY,(I?$8(R.scaleY,I+U):U)-R.scaleY||0,y$),this._pt.u=0,G.push("scaleY",X),X+="X";else if(X==="transformOrigin"){if(C.push(B1,0,H[B1]),N=O5(N),R.svg)u$(Z,N,0,D,0,this);else V=parseFloat(N.split(" ")[2])||0,V!==R.zOrigin&&g9(this,R,"zOrigin",R.zOrigin,V),g9(this,H,X,HZ(L),HZ(N));continue}else if(X==="svgOrigin"){u$(Z,N,1,D,0,this);continue}else if(X in RQ){R5(this,R,X,q,I?$8(q,I+N):N);continue}else if(X==="smoothOrigin"){g9(this,R,"smooth",R.smooth,N);continue}else if(X==="force3D"){R[X]=N;continue}else if(X==="transform"){I5(this,N,Z);continue}}else if(!(X in H))X=b8(X)||X;if(O||(U||U===0)&&(q||q===0)&&!$5.test(N)&&X in H){if(E=(L+"").substr((q+"").length),U||(U=0),V=r0(N)||(X in V1.units?V1.units[X]:E),E!==V&&(q=u9(Z,X,L,V)),this._pt=new F1(this._pt,O?R:H,X,q,(I?$8(q,I+U):U)-q,!O&&(V==="px"||X==="zIndex")&&$.autoRound!==!1?W5:y$),this._pt.u=V||0,E!==V&&V!=="%")this._pt.b=L,this._pt.r=Q5}else if(!(X in H)){if(X in Z)this.add(Z,X,L||Z[X],I?I+N:N,K,W);else if(X!=="parseTransform"){$Z(X,N);continue}}else X5.call(this,Z,X,L,I?I+N:N);O||(X in H?C.push(X,0,H[X]):typeof Z[X]==="function"?C.push(X,2,Z[X]()):C.push(X,1,L||Z[X])),G.push(X)}}j&&b$(this)},render:function(Z,$){if($.tween._time||!d$()){var J=$._pt;while(J)J.r(Z,J.d),J=J._next}else $.styles.revert()},get:R9,aliases:L9,getSetter:function(Z,$,J){var K=L9[$];return K&&K.indexOf(",")<0&&($=K),$ in I9&&$!==B1&&(Z._gsap.x||R9(Z,"x"))?J&&QQ===J?$==="scale"?z5:U5:(QQ=J||{})&&($==="scale"?L5:N5):Z.style&&!ZZ(Z.style[$])?G5:~$.indexOf("-")?H5:WZ(Z,$)},core:{_removeProperty:U8,_getMatrix:p$}};G1.utils.checkPrefix=b8;G1.core.getStyleSaver=OQ;(function(Q,Z,$,J){var K=N1(Q+","+Z+","+$,function(W){I9[W]=1});N1(Z,function(W){V1.units[W]="deg",RQ[W]=1}),L9[K[13]]=Q+","+Z,N1(J,function(W){var G=W.split(":");L9[G[1]]=K[G[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");N1("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(Q){V1.units[Q]="px"});G1.registerPlugin(l$);var g=G1.registerPlugin(l$)||G1,zU=g.core.Tween;function jQ(Q,Z){for(var $=0;$z)W=K,K=M,H=G,G=E;else if(J)K+=M;else K=W+(M-W)/(E-H)*(G-H)},U=function(){W=K=J?0:K,H=G=0},q=function(M){var X=H,E=W,V=YJ();return(M||M===0)&&M!==K&&N(M),G===H||V-H>L?0:(K+(J?E:-E))/((J?V:G)-X)*1000};return{update:N,reset:U,getVelocity:q}},OJ=function(Z,$){return $&&!Z._gsapAllow&&Z.preventDefault(),Z.changedTouches?Z.changedTouches[0]:Z},BQ=function(Z){var $=Math.max.apply(Math,Z),J=Math.min.apply(Math,Z);return Math.abs($)>=Math.abs(J)?$:J},TQ=function(){EJ=t0.core.globals().ScrollTrigger,EJ&&EJ.core&&B5()},wQ=function(Z){if(t0=Z||SQ(),!LZ&&t0&&typeof document<"u"&&document.body)T1=window,m9=document,d9=m9.documentElement,y8=m9.body,kQ=[T1,m9,d9,y8],j5=t0.utils.clamp,AQ=t0.core.context||function(){},z8="onpointerenter"in y8?"pointer":"mouse",CQ=S0.isTouch=T1.matchMedia&&T1.matchMedia("(hover: none), (pointer: coarse)").matches?1:("ontouchstart"in T1)||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,J9=S0.eventTypes=("ontouchstart"in d9?"touchstart,touchmove,touchcancel,touchend":!("onpointerdown"in d9)?"mousedown,mousemove,mouseup,mouseup":"pointerdown,pointermove,pointercancel,pointerup").split(","),setTimeout(function(){return PQ=0},500),TQ(),LZ=1;return LZ};H1.op=v0;a.cache=0;var S0=function(){function Q($){this.init($)}var Z=Q.prototype;return Z.init=function(J){LZ||wQ(t0)||console.warn("Please gsap.registerPlugin(Observer)"),EJ||TQ();var{tolerance:K,dragMinimum:W,type:G,target:H,lineHeight:z,debounce:L,preventDefault:N,onStop:U,onStopDelay:q,ignore:F,wheelSpeed:M,event:X,onDragStart:E,onDragEnd:V,onDrag:I,onPress:O,onRelease:Y,onRight:R,onLeft:D,onUp:j,onDown:C,onChangeX:B,onChangeY:k,onChange:A,onToggleX:P,onToggleY:T,onHover:h,onHoverEnd:f,onMove:x,ignoreCheck:b,isNormalizer:_,onGestureStart:m,onGestureEnd:S,onWheel:c,onEnable:t,onDisable:o,onClick:d,scrollSpeed:G0,capture:$0,allowClicks:N0,lockAxis:F0,onLockAxis:L0}=J;this.target=H=X1(H)||d9,this.vars=J,F&&(F=t0.utils.toArray(F)),K=K||0.000000001,W=W||0,M=M||1,G0=G0||1,G=G||"wheel,touch,pointer",L=L!==!1,z||(z=parseFloat(T1.getComputedStyle(y8).lineHeight)||22);var J0,p0,e0,K0,D0,l0,s0,w=this,J1=0,k1=0,n1=J.passive||!N&&J.passive!==!1,Y0=j9(H,H1),x1=j9(H,v0),o1=Y0(),b1=x1(),h0=~G.indexOf("touch")&&!~G.indexOf("pointer")&&J9[0]==="pointerdown",K9=DJ(H),O0=H.ownerDocument||m9,Z1=[0,0,0],v1=[0,0,0],M9=0,a8=function(){return M9=YJ()},x0=function(l,H0){return(w.event=l)&&F&&C5(l.target,F)||H0&&h0&&l.pointerType!=="touch"||b&&b(l,H0)},cJ=function(){w._vx.reset(),w._vy.reset(),p0.pause(),U&&U(w)},X9=function(){var l=w.deltaX=BQ(Z1),H0=w.deltaY=BQ(v1),v=Math.abs(l)>=K,s=Math.abs(H0)>=K;if(A&&(v||s)&&A(w,l,H0,Z1,v1),v)R&&w.deltaX>0&&R(w),D&&w.deltaX<0&&D(w),B&&B(w),P&&w.deltaX<0!==J1<0&&P(w),J1=w.deltaX,Z1[0]=Z1[1]=Z1[2]=0;if(s)C&&w.deltaY>0&&C(w),j&&w.deltaY<0&&j(w),k&&k(w),T&&w.deltaY<0!==k1<0&&T(w),k1=w.deltaY,v1[0]=v1[1]=v1[2]=0;if(K0||e0){if(x&&x(w),e0)E&&e0===1&&E(w),I&&I(w),e0=0;K0=!1}if(l0&&!(l0=!1)&&L0&&L0(w),D0)c(w),D0=!1;J0=0},V8=function(l,H0,v){Z1[v]+=l,v1[v]+=H0,w._vx.update(l),w._vy.update(H0),L?J0||(J0=requestAnimationFrame(X9)):X9()},j8=function(l,H0){if(F0&&!s0)w.axis=s0=Math.abs(l)>Math.abs(H0)?"x":"y",l0=!0;if(s0!=="y")Z1[2]+=l,w._vx.update(l,!0);if(s0!=="x")v1[2]+=H0,w._vy.update(H0,!0);L?J0||(J0=requestAnimationFrame(X9)):X9()},T9=function(l){if(x0(l,1))return;l=OJ(l,N);var{clientX:H0,clientY:v}=l,s=H0-w.x,p=v-w.y,i=w.isDragging;if(w.x=H0,w.y=v,i||(s||p)&&(Math.abs(w.startX-H0)>=W||Math.abs(w.startY-v)>=W))e0=i?2:1,i||(w.isDragging=!0),j8(s,p)},i9=w.onPress=function(n){if(x0(n,1)||n&&n.button)return;w.axis=s0=null,p0.pause(),w.isPressed=!0,n=OJ(n),J1=k1=0,w.startX=w.x=n.clientX,w.startY=w.y=n.clientY,w._vx.reset(),w._vy.reset(),M1(_?H:O0,J9[1],T9,n1,!0),w.deltaX=w.deltaY=0,O&&O(w)},Z0=w.onRelease=function(n){if(x0(n,1))return;q1(_?H:O0,J9[1],T9,!0);var l=!isNaN(w.y-w.startY),H0=w.isDragging,v=H0&&(Math.abs(w.x-w.startX)>3||Math.abs(w.y-w.startY)>3),s=OJ(n);if(!v&&l){if(w._vx.reset(),w._vy.reset(),N&&N0)t0.delayedCall(0.08,function(){if(YJ()-M9>300&&!n.defaultPrevented){if(n.target.click)n.target.click();else if(O0.createEvent){var p=O0.createEvent("MouseEvents");p.initMouseEvent("click",!0,!0,T1,1,s.screenX,s.screenY,s.clientX,s.clientY,!1,!1,!1,!1,0,null),n.target.dispatchEvent(p)}}})}w.isDragging=w.isGesturing=w.isPressed=!1,U&&H0&&!_&&p0.restart(!0),e0&&X9(),V&&H0&&V(w),Y&&Y(w,v)},n9=function(l){return l.touches&&l.touches.length>1&&(w.isGesturing=!0)&&m(l,w.isDragging)},a1=function(){return(w.isGesturing=!1)||S(w)},r1=function(l){if(x0(l))return;var H0=Y0(),v=x1();V8((H0-o1)*G0,(v-b1)*G0,1),o1=H0,b1=v,U&&p0.restart(!0)},t1=function(l){if(x0(l))return;l=OJ(l,N),c&&(D0=!0);var H0=(l.deltaMode===1?z:l.deltaMode===2?T1.innerHeight:1)*M;V8(l.deltaX*H0,l.deltaY*H0,0),U&&!_&&p0.restart(!0)},o9=function(l){if(x0(l))return;var{clientX:H0,clientY:v}=l,s=H0-w.x,p=v-w.y;w.x=H0,w.y=v,K0=!0,U&&p0.restart(!0),(s||p)&&j8(s,p)},B8=function(l){w.event=l,h(w)},O9=function(l){w.event=l,f(w)},r8=function(l){return x0(l)||OJ(l,N)&&d(w)};p0=w._dc=t0.delayedCall(q||0.25,cJ).pause(),w.deltaX=w.deltaY=0,w._vx=FZ(0,50,!0),w._vy=FZ(0,50,!0),w.scrollX=Y0,w.scrollY=x1,w.isDragging=w.isGesturing=w.isPressed=!1,AQ(this),w.enable=function(n){if(!w.isEnabled){if(M1(K9?O0:H,"scroll",i$),G.indexOf("scroll")>=0&&M1(K9?O0:H,"scroll",r1,n1,$0),G.indexOf("wheel")>=0&&M1(H,"wheel",t1,n1,$0),G.indexOf("touch")>=0&&CQ||G.indexOf("pointer")>=0)M1(H,J9[0],i9,n1,$0),M1(O0,J9[2],Z0),M1(O0,J9[3],Z0),N0&&M1(H,"click",a8,!0,!0),d&&M1(H,"click",r8),m&&M1(O0,"gesturestart",n9),S&&M1(O0,"gestureend",a1),h&&M1(H,z8+"enter",B8),f&&M1(H,z8+"leave",O9),x&&M1(H,z8+"move",o9);w.isEnabled=!0,w.isDragging=w.isGesturing=w.isPressed=K0=e0=!1,w._vx.reset(),w._vy.reset(),o1=Y0(),b1=x1(),n&&n.type&&i9(n),t&&t(w)}return w},w.disable=function(){if(w.isEnabled){if(v8.filter(function(n){return n!==w&&DJ(n.target)}).length||q1(K9?O0:H,"scroll",i$),w.isPressed)w._vx.reset(),w._vy.reset(),q1(_?H:O0,J9[1],T9,!0);q1(K9?O0:H,"scroll",r1,$0),q1(H,"wheel",t1,$0),q1(H,J9[0],i9,$0),q1(O0,J9[2],Z0),q1(O0,J9[3],Z0),q1(H,"click",a8,!0),q1(H,"click",r8),q1(O0,"gesturestart",n9),q1(O0,"gestureend",a1),q1(H,z8+"enter",B8),q1(H,z8+"leave",O9),q1(H,z8+"move",o9),w.isEnabled=w.isPressed=w.isDragging=!1,o&&o(w)}},w.kill=w.revert=function(){w.disable();var n=v8.indexOf(w);n>=0&&v8.splice(n,1),V9===w&&(V9=0)},v8.push(w),_&&DJ(H)&&(V9=w),w.enable(X)},V5(Q,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),Q}();S0.version="3.13.0";S0.create=function(Q){return new S0(Q)};S0.register=wQ;S0.getAll=function(){return v8.slice()};S0.getById=function(Q){return v8.filter(function(Z){return Z.vars.id===Q})[0]};SQ()&&t0.registerPlugin(S0);/*! * ScrollTrigger 3.13.0 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var u,u8,e,E0,h1,z0,U7,SZ,fJ,kJ,IJ,qZ,U1,fZ,Z7,E1,fQ,hQ,m8,oQ,n$,aQ,O1,$7,rQ,tQ,c9,K7,z7,d8,L7,PZ,Q7,o$,MZ=1,z1=Date.now,a$=z1(),c1=0,VJ=0,xQ=function(Z,$,J){var K=f1(Z)&&(Z.substr(0,6)==="clamp("||Z.indexOf("max")>-1);return J["_"+$+"Clamp"]=K,K?Z.substr(6,Z.length-7):Z},bQ=function(Z,$){return $&&(!f1(Z)||Z.substr(0,6)!=="clamp(")?"clamp("+Z+")":Z},k5=function Q(){return VJ&&requestAnimationFrame(Q)},vQ=function(){return fZ=1},yQ=function(){return fZ=0},N9=function(Z){return Z},jJ=function(Z){return Math.round(Z*1e5)/1e5||0},eQ=function(){return typeof window<"u"},J6=function(){return u||eQ()&&(u=window.gsap)&&u.registerPlugin&&u},X8=function(Z){return!!~U7.indexOf(Z)},Z6=function(Z){return(Z==="Height"?L7:e["inner"+Z])||h1["client"+Z]||z0["client"+Z]},$6=function(Z){return B9(Z,"getBoundingClientRect")||(X8(Z)?function(){return AZ.width=e.innerWidth,AZ.height=L7,AZ}:function(){return C9(Z)})},A5=function(Z,$,J){var{d:K,d2:W,a:G}=J;return(G=B9(Z,"getBoundingClientRect"))?function(){return G()[K]}:function(){return($?Z6(W):Z["client"+W])||0}},S5=function(Z,$){return!$||~Z9.indexOf(Z)?$6(Z):function(){return AZ}},F9=function(Z,$){var{s:J,d2:K,d:W,a:G}=$;return Math.max(0,(J="scroll"+K)&&(G=B9(Z,J))?G()-$6(Z)()[W]:X8(Z)?(h1[J]||z0[J])-Z6(K):Z[J]-Z["offset"+K])},XZ=function(Z,$){for(var J=0;J0){K-=G;for(H=0;H=K)return J[H];return J[H-1]}else{H=J.length,K+=G;while(H--)if(J[H]<=K)return J[H]}return J[0]}:function(K,W,G){if(G===void 0)G=0.001;var H=$(K);return!W||Math.abs(H-K)J&&(K*=$/100),Z=Z.substr(0,J-1);Z=K+(Z in wZ?wZ[Z]*$:~Z.indexOf("%")?parseFloat(Z)*$/100:parseFloat(Z)||0)}return Z},DZ=function(Z,$,J,K,W,G,H,z){var{startColor:L,endColor:N,fontSize:U,indent:q,fontWeight:F}=W,M=E0.createElement("div"),X=X8(J)||B9(J,"pinType")==="fixed",E=Z.indexOf("scroller")!==-1,V=X?z0:J,I=Z.indexOf("start")!==-1,O=I?L:N,Y="border-color:"+O+";font-size:"+U+";color:"+O+";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 Y+="position:"+((E||z)&&X?"fixed;":"absolute;"),(E||z||!X)&&(Y+=(K===v0?N7:F7)+":"+(G+parseFloat(q))+"px;"),H&&(Y+="box-sizing:border-box;text-align:left;width:"+H.offsetWidth+"px;"),M._isStart=I,M.setAttribute("class","gsap-marker-"+Z+($?" marker-"+$:"")),M.style.cssText=Y,M.innerText=$||$===0?Z+"-"+$:Z,V.children[0]?V.insertBefore(M,V.children[0]):V.appendChild(M),M._offset=M["offset"+K.op.d2],BZ(M,0,K,I),M},BZ=function(Z,$,J,K){var W={display:"block"},G=J[K?"os2":"p2"],H=J[K?"p2":"os2"];Z._isFlipped=K,W[J.a+"Percent"]=K?-100:0,W[J.a]=K?"1px":0,W["border"+G+p8]=1,W["border"+H+p8]=0,W[J.p]=$+"px",u.set(Z,W)},r=[],W7={},hJ,uQ=function(){return z1()-c1>34&&(hJ||(hJ=requestAnimationFrame(k9)))},g8=function(){if(!O1||!O1.isPressed||O1.startX>z0.clientWidth){if(a.cache++,O1)hJ||(hJ=requestAnimationFrame(k9));else k9();c1||E8("scrollStart"),c1=z1()}},t$=function(){tQ=e.innerWidth,rQ=e.innerHeight},CJ=function(Z){a.cache++,(Z===!0||!U1&&!aQ&&!E0.fullscreenElement&&!E0.webkitFullscreenElement&&(!$7||tQ!==e.innerWidth||Math.abs(e.innerHeight-rQ)>e.innerHeight*0.25))&&SZ.restart(!0)},O8={},f5=[],G6=function Q(){return d0(y,"scrollEnd",Q)||N8(!0)},E8=function(Z){return O8[Z]&&O8[Z].map(function($){return $()})||f5},w1=[],H6=function(Z){for(var $=0;$W,H=K._startClamp&&K.start>=W;(G||H)&&K.setPositions(H?W-1:K.start,G?Math.max(H?W:K.start+1,W):K.end,!0)}),dQ(!1),Q7=0,J.forEach(function(K){return K&&K.render&&K.render(-1)}),a.forEach(function(K){if(L1(K))K.smooth&&requestAnimationFrame(function(){return K.target.style.scrollBehavior="smooth"}),K.rec&&K(K.rec)}),U6(z7,1),SZ.pause(),M8++,Y1=2,k9(2),r.forEach(function(K){return L1(K.vars.onRefresh)&&K.vars.onRefresh(K)}),Y1=y.isRefreshing=!1,E8("refresh")},G7=0,CZ=1,wJ,k9=function(Z){if(Z===2||!Y1&&!PZ){y.isUpdating=!0,wJ&&wJ.update(0);var $=r.length,J=z1(),K=J-a$>=50,W=$&&r[0].scroll();if(CZ=G7>W?-1:1,Y1||(G7=W),K){if(c1&&!fZ&&J-c1>200)c1=0,E8("scrollEnd");IJ=a$,a$=J}if(CZ<0){E1=$;while(E1-- >0)r[E1]&&r[E1].update(0,K);CZ=1}else for(E1=0;E1<$;E1++)r[E1]&&r[E1].update(0,K);y.isUpdating=!1}hJ=0},H7=[K6,Q6,F7,N7,m1+TJ,m1+AJ,m1+PJ,m1+SJ,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],kZ=H7.concat([F8,q8,"boxSizing","max"+p8,"max"+q7,"position",m1,y0,y0+PJ,y0+AJ,y0+TJ,y0+SJ]),x5=function(Z,$,J){c8(J);var K=Z._gsap;if(K.spacerIsNative)c8(K.spacerState);else if(Z._gsap.swappedIn){var W=$.parentNode;if(W)W.insertBefore(Z,$),W.removeChild($)}Z._gsap.swappedIn=!1},e$=function(Z,$,J,K){if(!Z._gsap.swappedIn){var W=H7.length,G=$.style,H=Z.style,z;while(W--)z=H7[W],G[z]=J[z];if(G.position=J.position==="absolute"?"absolute":"relative",J.display==="inline"&&(G.display="inline-block"),H[F7]=H[N7]="auto",G.flexBasis=J.flexBasis||"auto",G.overflow="visible",G.boxSizing="border-box",G[F8]=TZ(Z,H1)+u0,G[q8]=TZ(Z,v0)+u0,G[y0]=H[m1]=H[Q6]=H[K6]="0",c8(K),H[F8]=H["max"+p8]=J[F8],H[q8]=H["max"+q7]=J[q8],H[y0]=J[y0],Z.parentNode!==$)Z.parentNode.insertBefore($,Z),$.appendChild(Z);Z._gsap.swappedIn=!0}},b5=/([A-Z])/g,c8=function(Z){if(Z){var $=Z.t.style,J=Z.length,K=0,W,G;(Z.t._gsap||u.core.getCache(Z.t)).uncache=1;for(;K20),J-=J-D}else F&&(Z=u.utils.mapRange(F.scrollTrigger.start,F.scrollTrigger.end,0,q,Z)),H&&BZ(H,J,K,!0);if(M)z[M]=Z||-0.001,Z<0&&(Z=0);if(G){var C=Z+J,B=G._isStart;if(E="scroll"+K.d2,BZ(G,C,K,B&&C>20||!B&&(U?Math.max(z0[E],h1[E]):G.parentNode[E])<=C+1),U)L=C9(H),U&&(G.style[K.op.p]=L[K.op.p]-K.op.m-G._offset+u0)}if(F&&I)E=C9(I),F.seek(q),V=C9(I),F._caScrollDist=E[K.p]-V[K.p],Z=Z/F._caScrollDist*q;return F&&F.seek(X),F?Z:Math.round(Z)},y5=/(webkit|moz|length|cssText|inset)/i,pQ=function(Z,$,J,K){if(Z.parentNode!==$){var W=Z.style,G,H;if($===z0){Z._stOrig=W.cssText,H=d1(Z);for(G in H)if(!+G&&!y5.test(G)&&H[G]&&typeof W[G]==="string"&&G!=="0")W[G]=H[G];W.top=J,W.left=K}else W.cssText=Z._stOrig;u.core.getCache(Z).uncache=1,$.appendChild(Z)}},L6=function(Z,$,J){var K=$,W=K;return function(G){var H=Math.round(Z());if(H!==K&&H!==W&&Math.abs(H-K)>3&&Math.abs(H-W)>3)G=H,J&&J();return W=K,K=Math.round(G),K}},IZ=function(Z,$,J){var K={};K[$.p]="+="+J,u.set(Z,K)},lQ=function(Z,$){var J=j9(Z,$),K="_scroll"+$.p2,W=function G(H,z,L,N,U){var q=G.tween,F=z.onComplete,M={};L=L||J();var X=L6(J,L,function(){q.kill(),G.tween=0});return U=N&&U||0,N=N||H-L,q&&q.kill(),z[K]=H,z.inherit=!1,z.modifiers=M,M[K]=function(){return X(L+N*q.ratio+U*q.ratio*q.ratio)},z.onUpdate=function(){a.cache++,G.tween&&k9()},z.onComplete=function(){G.tween=0,F&&F.call(q)},q=G.tween=u.to(Z,z),q};return Z[K]=J,J.wheelHandler=function(){return W.tween&&W.tween.kill()&&(W.tween=0)},c0(Z,"wheel",J.wheelHandler),y.isTouch&&c0(Z,"touchmove",J.wheelHandler),W},y=function(){function Q($,J){u8||Q.register(u)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),K7(this),this.init($,J)}var Z=Q.prototype;return Z.init=function(J,K){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!VJ){this.update=this.refresh=this.kill=N9;return}J=_Q(f1(J)||BJ(J)||J.nodeType?{trigger:J}:J,YZ);var W=J,G=W.onUpdate,H=W.toggleClass,z=W.id,L=W.onToggle,N=W.onRefresh,U=W.scrub,q=W.trigger,F=W.pin,M=W.pinSpacing,X=W.invalidateOnRefresh,E=W.anticipatePin,V=W.onScrubComplete,I=W.onSnapComplete,O=W.once,Y=W.snap,R=W.pinReparent,D=W.pinSpacer,j=W.containerAnimation,C=W.fastScrollEnd,B=W.preventOverlaps,k=J.horizontal||J.containerAnimation&&J.horizontal!==!1?H1:v0,A=!U&&U!==0,P=X1(J.scroller||e),T=u.core.getCache(P),h=X8(P),f=("pinType"in J?J.pinType:B9(P,"pinType")||h&&"fixed")==="fixed",x=[J.onEnter,J.onLeave,J.onEnterBack,J.onLeaveBack],b=A&&J.toggleActions.split(" "),_="markers"in J?J.markers:YZ.markers,m=h?0:parseFloat(d1(P)["border"+k.p2+p8])||0,S=this,c=J.onRefreshInit&&function(){return J.onRefreshInit(S)},t=A5(P,h,k),o=S5(P,h),d=0,G0=0,$0=0,N0=j9(P,k),F0,L0,J0,p0,e0,K0,D0,l0,s0,w,J1,k1,n1,Y0,x1,o1,b1,h0,K9,O0,Z1,v1,M9,a8,x0,cJ,X9,V8,j8,T9,i9,Z0,n9,a1,r1,t1,o9,B8,O9;if(S._startClamp=S._endClamp=!1,S._dir=k,E*=45,S.scroller=P,S.scroll=j?j.time.bind(j):N0,p0=N0(),S.vars=J,K=K||J.animation,"refreshPriority"in J)oQ=1,J.refreshPriority===-9999&&(wJ=S);if(T.tweenScroll=T.tweenScroll||{top:lQ(P,v0),left:lQ(P,H1)},S.tweenTo=F0=T.tweenScroll[k.p],S.scrubDuration=function(v){if(n9=BJ(v)&&v,!n9)Z0&&Z0.progress(1).kill(),Z0=0;else Z0?Z0.duration(v):Z0=u.to(K,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:n9,paused:!0,onComplete:function(){return V&&V(S)}})},K)K.vars.lazy=!1,K._initted&&!S.isReverted||K.vars.immediateRender!==!1&&J.immediateRender!==!1&&K.duration()&&K.render(0,!0,!0),S.animation=K.pause(),K.scrollTrigger=S,S.scrubDuration(U),T9=0,z||(z=K.vars.id);if(Y){if(!L8(Y)||Y.push)Y={snapTo:Y};"scrollBehavior"in z0.style&&u.set(h?[z0,h1]:P,{scrollBehavior:"auto"}),a.forEach(function(v){return L1(v)&&v.target===(h?E0.scrollingElement||h1:P)&&(v.smooth=!1)}),J0=L1(Y.snapTo)?Y.snapTo:Y.snapTo==="labels"?T5(K):Y.snapTo==="labelsDirectional"?w5(K):Y.directional!==!1?function(v,s){return M7(Y.snapTo)(v,z1()-G0<500?0:s.direction)}:u.utils.snap(Y.snapTo),a1=Y.duration||{min:0.1,max:2},a1=L8(a1)?kJ(a1.min,a1.max):kJ(a1,a1),r1=u.delayedCall(Y.delay||n9/2||0.1,function(){var v=N0(),s=z1()-G0<500,p=F0.tween;if((s||Math.abs(S.getVelocity())<10)&&!p&&!fZ&&d!==v){var i=(v-K0)/Y0,m0=K&&!A?K.totalProgress():i,Q0=s?0:(m0-i9)/(z1()-IJ)*1000||0,T0=u.utils.clamp(-i,1-i,_8(Q0/2)*Q0/0.185),$1=i+(Y.inertia===!1?0:T0),C0,R0,q0=Y,e1=q0.onStart,V0=q0.onInterrupt,A1=q0.onComplete;if(C0=J0($1,S),BJ(C0)||(C0=$1),R0=Math.max(0,Math.round(K0+C0*Y0)),v<=D0&&v>=K0&&R0!==v){if(p&&!p._initted&&p.data<=_8(R0-v))return;if(Y.inertia===!1)T0=C0-i;F0(R0,{duration:a1(_8(Math.max(_8($1-m0),_8(C0-m0))*0.185/Q0/0.05||0)),ease:Y.ease||"power3",data:_8(R0-v),onInterrupt:function(){return r1.restart(!0)&&V0&&V0(S)},onComplete:function(){if(S.update(),d=N0(),K&&!A)Z0?Z0.resetTo("totalProgress",C0,K._tTime/K._tDur):K.progress(C0);T9=i9=K&&!A?K.totalProgress():S.progress,I&&I(S),A1&&A1(S)}},v,T0*Y0,R0-v-T0*Y0),e1&&e1(S,F0.tween)}}else if(S.isActive&&d!==v)r1.restart(!0)}).pause()}if(z&&(W7[z]=S),q=S.trigger=X1(q||F!==!0&&F),O9=q&&q._gsap&&q._gsap.stRevert,O9&&(O9=O9(S)),F=F===!0?q:X1(F),f1(H)&&(H={targets:q,className:H}),F){if(M===!1||M===m1||(M=!M&&F.parentNode&&F.parentNode.style&&d1(F.parentNode).display==="flex"?!1:y0),S.pin=F,L0=u.core.getCache(F),!L0.spacer){if(D)D=X1(D),D&&!D.nodeType&&(D=D.current||D.nativeElement),L0.spacerIsNative=!!D,D&&(L0.spacerState=RZ(D));L0.spacer=h0=D||E0.createElement("div"),h0.classList.add("pin-spacer"),z&&h0.classList.add("pin-spacer-"+z),L0.pinState=x1=RZ(F)}else x1=L0.pinState;J.force3D!==!1&&u.set(F,{force3D:!0}),S.spacer=h0=L0.spacer,j8=d1(F),a8=j8[M+k.os2],O0=u.getProperty(F),Z1=u.quickSetter(F,k.a,u0),e$(F,h0,j8),b1=RZ(F)}if(_){k1=L8(_)?_Q(_,gQ):gQ,w=DZ("scroller-start",z,P,k,k1,0),J1=DZ("scroller-end",z,P,k,k1,0,w),K9=w["offset"+k.op.d2];var r8=X1(B9(P,"content")||P);if(l0=this.markerStart=DZ("start",z,r8,k,k1,K9,0,j),s0=this.markerEnd=DZ("end",z,r8,k,k1,K9,0,j),j&&(B8=u.quickSetter([l0,s0],k.a,u0)),!f&&!(Z9.length&&B9(P,"fixedMarkers")===!0))P5(h?z0:P),u.set([w,J1],{force3D:!0}),cJ=u.quickSetter(w,k.a,u0),V8=u.quickSetter(J1,k.a,u0)}if(j){var n=j.vars.onUpdate,l=j.vars.onUpdateParams;j.eventCallback("onUpdate",function(){S.update(0,0,1),n&&n.apply(j,l||[])})}if(S.previous=function(){return r[r.indexOf(S)-1]},S.next=function(){return r[r.indexOf(S)+1]},S.revert=function(v,s){if(!s)return S.kill(!0);var p=v!==!1||!S.enabled,i=U1;if(p!==S.isReverted){if(p)t1=Math.max(N0(),S.scroll.rec||0),$0=S.progress,o9=K&&K.progress();if(l0&&[l0,s0,w,J1].forEach(function(m0){return m0.style.display=p?"none":"block"}),p)U1=S,S.update(p);if(F&&(!R||!S.isActive))if(p)x5(F,h0,x1);else e$(F,h0,d1(F),x0);p||S.update(p),U1=i,S.isReverted=p}},S.refresh=function(v,s,p,i){if((U1||!S.enabled)&&!s)return;if(F&&v&&c1){c0(Q,"scrollEnd",G6);return}if(!Y1&&c&&c(S),U1=S,F0.tween&&!p)F0.tween.kill(),F0.tween=0;if(Z0&&Z0.pause(),X&&K)K.revert({kill:!1}).invalidate(),K.getChildren&&K.getChildren(!0,!0,!1).forEach(function(w9){return w9.vars.immediateRender&&w9.render(0,!0,!0)});S.isReverted||S.revert(!0,!0),S._subPinOffset=!1;var m0=t(),Q0=o(),T0=j?j.duration():F9(P,k),$1=Y0<=0.01||!Y0,C0=0,R0=i||0,q0=L8(p)?p.end:J.end,e1=J.endTrigger||q,V0=L8(p)?p.start:J.start||(J.start===0||!q?0:F?"0 0":"0 100%"),A1=S.pinnedContainer=J.pinnedContainer&&X1(J.pinnedContainer,S),Q9=q&&Math.max(0,r.indexOf(S))||0,i0=Q9,n0,K1,a9,pJ,Q1,_0,W9,tZ,HK,t8,G9,e8,lJ;if(_&&L8(p))e8=u.getProperty(w,k.p),lJ=u.getProperty(J1,k.p);while(i0-- >0){if(_0=r[i0],_0.end||_0.refresh(0,1)||(U1=S),W9=_0.pin,W9&&(W9===q||W9===F||W9===A1)&&!_0.isReverted)t8||(t8=[]),t8.unshift(_0),_0.revert(!0,!0);if(_0!==r[i0])Q9--,i0--}if(L1(V0)&&(V0=V0(S)),V0=xQ(V0,"start",S),K0=cQ(V0,q,m0,k,N0(),l0,w,S,Q0,m,f,T0,j,S._startClamp&&"_startClamp")||(F?-0.001:0),L1(q0)&&(q0=q0(S)),f1(q0)&&!q0.indexOf("+="))if(~q0.indexOf(" "))q0=(f1(V0)?V0.split(" ")[0]:"")+q0;else C0=jZ(q0.substr(2),m0),q0=f1(V0)?V0:(j?u.utils.mapRange(0,j.duration(),j.scrollTrigger.start,j.scrollTrigger.end,K0):K0)+C0,e1=q;q0=xQ(q0,"end",S),D0=Math.max(K0,cQ(q0||(e1?"100% 0":T0),e1,m0,k,N0()+C0,s0,J1,S,Q0,m,f,T0,j,S._endClamp&&"_endClamp"))||-0.001,C0=0,i0=Q9;while(i0--)if(_0=r[i0],W9=_0.pin,W9&&_0.start-_0._pinPush<=K0&&!j&&_0.end>0){if(n0=_0.end-(S._startClamp?Math.max(0,_0.start):_0.start),(W9===q&&_0.start-_0._pinPush=F9(P,k))){if(n0=d1(F),pJ=k===v0,a9=N0(),v1=parseFloat(O0(k.a))+R0,!T0&&D0>1){if(G9=(h?E0.scrollingElement||h1:P).style,G9={style:G9,value:G9["overflow"+k.a.toUpperCase()]},h&&d1(z0)["overflow"+k.a.toUpperCase()]!=="scroll")G9.style["overflow"+k.a.toUpperCase()]="scroll"}if(e$(F,h0,n0),b1=RZ(F),K1=C9(F,!0),tZ=f&&j9(P,pJ?H1:v0)(),M){if(x0=[M+k.os2,Y0+R0+u0],x0.t=h0,i0=M===y0?TZ(F,k)+Y0+R0:0,i0)x0.push(k.d,i0+u0),h0.style.flexBasis!=="auto"&&(h0.style.flexBasis=i0+u0);if(c8(x0),A1)r.forEach(function(w9){if(w9.pin===A1&&w9.vars.pinSpacing!==!1)w9._subPinOffset=!0});f&&N0(t1)}else i0=TZ(F,k),i0&&h0.style.flexBasis!=="auto"&&(h0.style.flexBasis=i0+u0);if(f)Q1={top:K1.top+(pJ?a9-K0:tZ)+u0,left:K1.left+(pJ?tZ:a9-K0)+u0,boxSizing:"border-box",position:"fixed"},Q1[F8]=Q1["max"+p8]=Math.ceil(K1.width)+u0,Q1[q8]=Q1["max"+q7]=Math.ceil(K1.height)+u0,Q1[m1]=Q1[m1+PJ]=Q1[m1+AJ]=Q1[m1+TJ]=Q1[m1+SJ]="0",Q1[y0]=n0[y0],Q1[y0+PJ]=n0[y0+PJ],Q1[y0+AJ]=n0[y0+AJ],Q1[y0+TJ]=n0[y0+TJ],Q1[y0+SJ]=n0[y0+SJ],o1=v5(x1,Q1,R),Y1&&N0(0);if(K)HK=K._initted,n$(1),K.render(K.duration(),!0,!0),M9=O0(k.a)-v1+Y0+R0,X9=Math.abs(Y0-M9)>1,f&&X9&&o1.splice(o1.length-2,2),K.render(0,!0,!0),HK||K.invalidate(!0),K.parent||K.totalTime(K.totalTime()),n$(0);else M9=Y0;G9&&(G9.value?G9.style["overflow"+k.a.toUpperCase()]=G9.value:G9.style.removeProperty("overflow-"+k.a))}else if(q&&N0()&&!j){K1=q.parentNode;while(K1&&K1!==z0){if(K1._pinOffset)K0-=K1._pinOffset,D0-=K1._pinOffset;K1=K1.parentNode}}if(t8&&t8.forEach(function(w9){return w9.revert(!1,!0)}),S.start=K0,S.end=D0,p0=e0=Y1?t1:N0(),!j&&!Y1)p00?r.slice(0,s).reverse():r.slice(s+1);return(f1(v)?p.filter(function(i){return i.vars.preventOverlaps===v}):p).filter(function(i){return S.direction>0?i.end<=K0:i.start>=D0})},S.update=function(v,s,p){if(j&&!p&&!v)return;var i=Y1===!0?t1:S.scroll(),m0=v?0:(i-K0)/Y0,Q0=m0<0?0:m0>1?1:m0||0,T0=S.progress,$1,C0,R0,q0,e1,V0,A1,Q9;if(s){if(e0=p0,p0=j?N0():i,Y)i9=T9,T9=K&&!A?K.totalProgress():Q0}if(E&&F&&!U1&&!MZ&&c1){if(!Q0&&K0i+(i-e0)/(z1()-IJ)*E)Q0=0.9999}if(Q0!==T0&&S.enabled){if($1=S.isActive=!!Q0&&Q0<1,C0=!!T0&&T0<1,V0=$1!==C0,e1=V0||!!Q0!==!!T0,S.direction=Q0>T0?1:-1,S.progress=Q0,e1&&!U1){if(R0=Q0&&!T0?0:Q0===1?1:T0===1?2:3,A)q0=!V0&&b[R0+1]!=="none"&&b[R0+1]||b[R0],Q9=K&&(q0==="complete"||q0==="reset"||(q0 in K))}if(B&&(V0||Q9)&&(Q9||U||!K)&&(L1(B)?B(S):S.getTrailing(B).forEach(function(a9){return a9.endAnimation()})),!A){if(Z0&&!U1&&!MZ)if(Z0._dp._time-Z0._start!==Z0._time&&Z0.render(Z0._dp._time-Z0._start),Z0.resetTo)Z0.resetTo("totalProgress",Q0,K._tTime/K._tDur);else Z0.vars.totalProgress=Q0,Z0.invalidate().restart();else if(K)K.totalProgress(Q0,!!(U1&&(G0||v)))}if(F){if(v&&M&&(h0.style[M+k.os2]=a8),!f)Z1(jJ(v1+M9*Q0));else if(e1){if(A1=!v&&Q0>T0&&D0+1>i&&i+1>=F9(P,k),R)if(!v&&($1||A1)){var i0=C9(F,!0),n0=i-K0;pQ(F,z0,i0.top+(k===v0?n0:0)+u0,i0.left+(k===v0?0:n0)+u0)}else pQ(F,h0);c8($1||A1?o1:b1),X9&&Q0<1&&$1||Z1(v1+(Q0===1&&!A1?M9:0))}}if(Y&&!F0.tween&&!U1&&!MZ&&r1.restart(!0),H&&(V0||O&&Q0&&(Q0<1||!o$))&&fJ(H.targets).forEach(function(a9){return a9.classList[$1||O?"add":"remove"](H.className)}),G&&!A&&!v&&G(S),e1&&!U1){if(A){if(Q9)if(q0==="complete")K.pause().totalProgress(1);else if(q0==="reset")K.restart(!0).pause();else if(q0==="restart")K.restart(!0);else K[q0]();G&&G(S)}if(V0||!o$){if(L&&V0&&r$(S,L),x[R0]&&r$(S,x[R0]),O&&(Q0===1?S.kill(!1,1):x[R0]=0),!V0)R0=Q0===1?1:3,x[R0]&&r$(S,x[R0])}if(C&&!$1&&Math.abs(S.getVelocity())>(BJ(C)?C:2500))RJ(S.callbackAnimation),Z0?Z0.progress(1):RJ(K,q0==="reverse"?1:!Q0,1)}else if(A&&G&&!U1)G(S)}if(V8){var K1=j?i/j.duration()*(j._caScrollDist||0):i;cJ(K1+(w._isFlipped?1:0)),V8(K1)}B8&&B8(-i/j.duration()*(j._caScrollDist||0))},S.enable=function(v,s){if(!S.enabled){if(S.enabled=!0,c0(P,"resize",CJ),h||c0(P,"scroll",g8),c&&c0(Q,"refreshInit",c),v!==!1)S.progress=$0=0,p0=e0=d=N0();s!==!1&&S.refresh()}},S.getTween=function(v){return v&&F0?F0.tween:Z0},S.setPositions=function(v,s,p,i){if(j){var m0=j.scrollTrigger,Q0=j.duration(),T0=m0.end-m0.start;v=m0.start+T0*v/Q0,s=m0.start+T0*s/Q0}S.refresh(!1,!1,{start:bQ(v,p&&!!S._startClamp),end:bQ(s,p&&!!S._endClamp)},i),S.update()},S.adjustPinSpacing=function(v){if(x0&&v){var s=x0.indexOf(k.d)+1;x0[s]=parseFloat(x0[s])+v+u0,x0[1]=parseFloat(x0[1])+v+u0,c8(x0)}},S.disable=function(v,s){if(S.enabled){if(v!==!1&&S.revert(!0,!0),S.enabled=S.isActive=!1,s||Z0&&Z0.pause(),t1=0,L0&&(L0.uncache=1),c&&d0(Q,"refreshInit",c),r1)r1.pause(),F0.tween&&F0.tween.kill()&&(F0.tween=0);if(!h){var p=r.length;while(p--)if(r[p].scroller===P&&r[p]!==S)return;d0(P,"resize",CJ),h||d0(P,"scroll",g8)}}},S.kill=function(v,s){S.disable(v,s),Z0&&!s&&Z0.kill(),z&&delete W7[z];var p=r.indexOf(S);if(p>=0&&r.splice(p,1),p===E1&&CZ>0&&E1--,p=0,r.forEach(function(i){return i.scroller===S.scroller&&(p=1)}),p||Y1||(S.scroll.rec=0),K)K.scrollTrigger=null,v&&K.revert({kill:!1}),s||K.kill();if(l0&&[l0,s0,w,J1].forEach(function(i){return i.parentNode&&i.parentNode.removeChild(i)}),wJ===S&&(wJ=0),F)L0&&(L0.uncache=1),p=0,r.forEach(function(i){return i.pin===F&&p++}),p||(L0.spacer=0);J.onKill&&J.onKill(S)},r.push(S),S.enable(!1,!1),O9&&O9(S),K&&K.add&&!Y0){var H0=S.update;S.update=function(){S.update=H0,a.cache++,K0||D0||S.refresh()},u.delayedCall(0.01,S.update),Y0=0.01,K0=D0=0}else S.refresh();F&&h5()},Q.register=function(J){if(!u8)u=J||J6(),eQ()&&window.document&&Q.enable(),u8=VJ;return u8},Q.defaults=function(J){if(J)for(var K in J)YZ[K]=J[K];return YZ},Q.disable=function(J,K){VJ=0,r.forEach(function(G){return G[K?"kill":"disable"](J)}),d0(e,"wheel",g8),d0(E0,"scroll",g8),clearInterval(qZ),d0(E0,"touchcancel",N9),d0(z0,"touchstart",N9),OZ(d0,E0,"pointerdown,touchstart,mousedown",vQ),OZ(d0,E0,"pointerup,touchend,mouseup",yQ),SZ.kill(),XZ(d0);for(var W=0;W0&&G.left+H0&&G.top+H=0&&w1.splice($,5),w1.push(Z,Z.style.cssText,Z.getBBox&&Z.getAttribute("transform"),u.core.getCache(Z),K7())}}):w1};y.revert=function(Q,Z){return X7(!Q,Z)};y.create=function(Q,Z){return new y(Q,Z)};y.refresh=function(Q){return Q?CJ(!0):(u8||y.register())&&N8(!0)};y.update=function(Q){return++a.cache&&k9(Q===!0?2:0)};y.clearScrollMemory=U6;y.maxScroll=function(Q,Z){return F9(Q,Z?H1:v0)};y.getScrollFunc=function(Q,Z){return j9(X1(Q),Z?H1:v0)};y.getById=function(Q){return W7[Q]};y.getAll=function(){return r.filter(function(Q){return Q.vars.id!=="ScrollSmoother"})};y.isScrolling=function(){return!!c1};y.snapDirectional=M7;y.addEventListener=function(Q,Z){var $=O8[Q]||(O8[Q]=[]);~$.indexOf(Z)||$.push(Z)};y.removeEventListener=function(Q,Z){var $=O8[Q],J=$&&$.indexOf(Z);J>=0&&$.splice(J,1)};y.batch=function(Q,Z){var $=[],J={},K=Z.interval||0.016,W=Z.batchMax||1e9,G=function(L,N){var U=[],q=[],F=u.delayedCall(K,function(){N(U,q),U=[],q=[]}).pause();return function(M){U.length||F.restart(!0),U.push(M.trigger),q.push(M),W<=U.length&&F.progress(1)}},H;for(H in Z)J[H]=H.substr(0,2)==="on"&&L1(Z[H])&&H!=="onRefreshInit"?G(H,Z[H]):Z[H];if(L1(W))W=W(),c0(y,"refresh",function(){return W=Z.batchMax()});return fJ(Q).forEach(function(z){var L={};for(H in J)L[H]=J[H];L.trigger=z,$.push(y.create(L))}),$};var sQ=function(Z,$,J,K){return $>K?Z(K):$<0&&Z(0),J>K?(K-$)/(J-$):J<0?$/($-J):1},J7=function Q(Z,$){if($===!0)Z.style.removeProperty("touch-action");else Z.style.touchAction=$===!0?"auto":$?"pan-"+$+(S0.isTouch?" pinch-zoom":""):"none";Z===h1&&Q(z0,$)},VZ={auto:1,scroll:1},_5=function(Z){var{event:$,target:J,axis:K}=Z,W=($.changedTouches?$.changedTouches[0]:$).target,G=W._gsap||u.core.getCache(W),H=z1(),z;if(!G._isScrollT||H-G._isScrollT>2000){while(W&&W!==z0&&(W.scrollHeight<=W.clientHeight&&W.scrollWidth<=W.clientWidth||!(VZ[(z=d1(W)).overflowY]||VZ[z.overflowX])))W=W.parentNode;G._isScroll=W&&W!==J&&!X8(W)&&(VZ[(z=d1(W)).overflowY]||VZ[z.overflowX]),G._isScrollT=H}if(G._isScroll||K==="x")$.stopPropagation(),$._gsapAllow=!0},N6=function(Z,$,J,K){return S0.create({target:Z,capture:!0,debounce:!1,lockAxis:!0,type:$,onWheel:K=K&&_5,onPress:K,onDrag:K,onScroll:K,onEnable:function(){return J&&c0(E0,S0.eventTypes[0],nQ,!1,!0)},onDisable:function(){return d0(E0,S0.eventTypes[0],nQ,!0)}})},g5=/(input|label|select|textarea)/i,iQ,nQ=function(Z){var $=g5.test(Z.target.tagName);if($||iQ)Z._gsapAllow=!0,iQ=$},u5=function(Z){L8(Z)||(Z={}),Z.preventDefault=Z.isNormalizer=Z.allowClicks=!0,Z.type||(Z.type="wheel,touch"),Z.debounce=!!Z.debounce,Z.id=Z.id||"normalizer";var $=Z,J=$.normalizeScrollX,K=$.momentum,W=$.allowNestedScroll,G=$.onRelease,H,z,L=X1(Z.target)||h1,N=u.core.globals().ScrollSmoother,U=N&&N.get(),q=c9&&(Z.content&&X1(Z.content)||U&&Z.content!==!1&&!U.smooth()&&U.content()),F=j9(L,v0),M=j9(L,H1),X=1,E=(S0.isTouch&&e.visualViewport?e.visualViewport.scale*e.visualViewport.width:e.outerWidth)/e.innerWidth,V=0,I=L1(K)?function(){return K(H)}:function(){return K||2.8},O,Y,R=N6(L,Z.type,!0,W),D=function(){return Y=!1},j=N9,C=N9,B=function(){z=F9(L,v0),C=kJ(c9?1:0,z),J&&(j=kJ(0,F9(L,H1))),O=M8},k=function(){q._gsap.y=jJ(parseFloat(q._gsap.y)+F.offset)+"px",q.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(q._gsap.y)+", 0, 1)",F.offset=F.cacheID=0},A=function(){if(Y){requestAnimationFrame(D);var _=jJ(H.deltaY/2),m=C(F.v-_);if(q&&m!==F.v+F.offset){F.offset=m-F.v;var S=jJ((parseFloat(q&&q._gsap.y)||0)-F.offset);q.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+S+", 0, 1)",q._gsap.y=S+"px",F.cacheID=a.cache,k9()}return!0}F.offset&&k(),Y=!0},P,T,h,f,x=function(){if(B(),P.isActive()&&P.vars.scrollY>z)F()>z?P.progress(1)&&F(z):P.resetTo("scrollY",z)};return q&&u.set(q,{y:"+=0"}),Z.ignoreCheck=function(b){return c9&&b.type==="touchmove"&&A(b)||X>1.05&&b.type!=="touchstart"||H.isGesturing||b.touches&&b.touches.length>1},Z.onPress=function(){Y=!1;var b=X;X=jJ((e.visualViewport&&e.visualViewport.scale||1)/E),P.pause(),b!==X&&J7(L,X>1.01?!0:J?!1:"x"),T=M(),h=F(),B(),O=M8},Z.onRelease=Z.onGestureStart=function(b,_){if(F.offset&&k(),!_)f.restart(!0);else{a.cache++;var m=I(),S,c;if(J)S=M(),c=S+m*0.05*-b.velocityX/0.227,m*=sQ(M,S,c,F9(L,H1)),P.vars.scrollX=j(c);if(S=F(),c=S+m*0.05*-b.velocityY/0.227,m*=sQ(F,S,c,F9(L,v0)),P.vars.scrollY=C(c),P.invalidate().duration(m).play(0.01),c9&&P.vars.scrollY>=z||S>=z-1)u.to({},{onUpdate:x,duration:m})}G&&G(b)},Z.onWheel=function(){if(P._ts&&P.pause(),z1()-V>1000)O=0,V=z1()},Z.onChange=function(b,_,m,S,c){if(M8!==O&&B(),_&&J&&M(j(S[2]===_?T+(b.startX-b.x):M()+_-S[1])),m){F.offset&&k();var t=c[2]===m,o=t?h+b.startY-b.y:F()+m-c[1],d=C(o);t&&o!==d&&(h+=d-o),F(d)}(m||_)&&k9()},Z.onEnable=function(){if(J7(L,J?!1:"x"),y.addEventListener("refresh",x),c0(e,"resize",x),F.smooth)F.target.style.scrollBehavior="auto",F.smooth=M.smooth=!1;R.enable()},Z.onDisable=function(){J7(L,!0),d0(e,"resize",x),y.removeEventListener("refresh",x),R.kill()},Z.lockAxis=Z.lockAxis!==!1,H=new S0(Z),H.iOS=c9,c9&&!F()&&F(1),c9&&u.ticker.add(N9),f=H._dc,P=u.to(H,{ease:"power4",paused:!0,inherit:!1,scrollX:J?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:L6(F,F(),function(){return P.pause()})},onUpdate:k9,onComplete:f.vars.onComplete}),H};y.sort=function(Q){if(L1(Q))return r.sort(Q);var Z=e.pageYOffset||0;return y.getAll().forEach(function($){return $._sortY=$.trigger?Z+$.trigger.getBoundingClientRect().top:$.start+e.innerHeight}),r.sort(Q||function($,J){return($.vars.refreshPriority||0)*-1e6+($.vars.containerAnimation?1e6:$._sortY)-((J.vars.containerAnimation?1e6:J._sortY)+(J.vars.refreshPriority||0)*-1e6)})};y.observe=function(Q){return new S0(Q)};y.normalizeScroll=function(Q){if(typeof Q>"u")return O1;if(Q===!0&&O1)return O1.enable();if(Q===!1){O1&&O1.kill(),O1=Q;return}var Z=Q instanceof S0?Q:u5(Q);return O1&&O1.target===Z.target&&O1.kill(),X8(Z.target)&&(O1=Z),Z};y.core={_getVelocityProp:FZ,_inputObserver:N6,_scrollers:a,_proxies:Z9,bridge:{ss:function(){c1||E8("scrollStart"),c1=z1()},ref:function(){return U1}}};J6()&&u.registerPlugin(y);var F6=()=>{return window.matchMedia("(prefers-reduced-motion: reduce)").matches};g.registerPlugin(y);var m5={ease:"expo.out",duration:1.2};g.defaults(m5);var YU=F6(),p1=g;function q6(Q=null){let Z=()=>{let W=document.body.firstElementChild;return W instanceof HTMLElement&&W.classList.contains("w-editor-publish-node")},$=Z(),J=$;if(new MutationObserver((W)=>{W.forEach((G)=>{if(G.type==="childList"){let H=Z();if(H!==$){if(console.log("Editor state changed to:",H),Q)Q(H);$=H}}})}).observe(document.body,{childList:!0,subtree:!1}),Q)Q(J);return J}var d5={infinite:!1,lerp:0.1,smoothWheel:!0,touchMultiplier:2};class M6 extends XK{#J=p1.ticker.add((Q)=>this.raf(Q*1000));constructor(){super(d5);this.on("scroll",this.#$.bind(this))}#$(Q){this.notify(Q)}toTop(){this.scrollTo(0,{immediate:!0})}#Z=[];add(Q,Z=0,$=Symbol()){let J=this.#Z.findIndex((K)=>K.priority>Z);if(J===-1)this.#Z.push({fn:Q,priority:Z,id:$});else this.#Z.splice(J,0,{fn:Q,priority:Z,id:$});return()=>this.remove($)}remove(Q){this.#Z=this.#Z.filter((Z)=>Z.id!==Q)}notify(Q){if(this.#Z.length<1)return;this.#Z.forEach((Z)=>Z.fn(Q))}}var P0=new M6;q6((Q)=>{if(Q)P0.destroy();else P0.start()});class O7{#J=[];add(Q,Z=0,$=Symbol()){let J=this.#J.findIndex((K)=>K.priority>Z);if(J===-1)this.#J.push({fn:Q,priority:Z,id:$});else this.#J.splice(J,0,{fn:Q,priority:Z,id:$});return()=>this.remove($)}remove(Q){this.#J=this.#J.filter((Z)=>Z.id!==Q)}notify(Q){if(this.#J.length<1)return;this.#J.forEach((Z)=>Z.fn(Q))}}class X6 extends O7{constructor(){super();p1.ticker.add(this.update.bind(this))}update(Q,Z){this.notify({deltaTime:Q,time:Z*0.01})}}class O6 extends O7{width=window.innerWidth;height=window.innerHeight;timeoutId=null;debounceDelay=100;constructor(){super();window.addEventListener("resize",this.update.bind(this))}update(){if(this.timeoutId)window.clearTimeout(this.timeoutId);console.log("update"),this.timeoutId=window.setTimeout(()=>{let{innerWidth:Q,innerHeight:Z}=window;if(Q!==this.width||Z!==this.height)this.width=Q,this.height=Z,this.notify({width:this.width,height:this.height});this.timeoutId=null},this.debounceDelay)}}var c5=new X6,l1=new O6;var E6=(Q)=>{let Z=Q.getBoundingClientRect();return{top:Z.top+P0.scroll,bottom:Z.bottom+P0.scroll,width:Z.width,height:Z.height,left:Z.left,right:Z.right,wh:l1.height,ww:l1.width,offset:Z.top+P0.scroll,centery:l1.height/2-Z.height/2-Z.top-P0.scroll,centerx:-l1.width/2+Z.left+Z.width/2}};function Y6(Q,Z,$,J,K){return J+(K-J)*(Q-Z)/($-Z)}function D6(Q,Z,$){return Math.min(Math.max($,Q),Z)}var p5={bounds:[0,1],top:"bottom",bottom:"top",callback:void 0};class R6 extends ZJ{value=0;init=!1;isIn(Q){this.#K()}isOut(Q){}bounds;config;resize;handleScroll;#J;#$;constructor(Q,Z={}){super(Q,{autoStart:!0,once:!1,threshold:0});this.element=Q,this.config={...p5,...Z},this.#Z(),this.#J=P0.add(this.#K.bind(this)),this.#$=l1.add(this.#Z.bind(this)),this.init=!0,this.#K()}#Z=()=>{this.bounds=l5(this.element,this.config),this.resize?.(this.bounds),this.#K()};#K(){if(!this.inView||!this.init)return;this.value=D6(0,1,Y6(P0.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 l5(Q,Z){let $=E6(Q),{top:J,bottom:K,wh:W}=$,G=W/2;return $.top=J-(Z.top==="center"?G:Z.top==="bottom"?W:0),$.bottom=K-(Z.bottom==="center"?G:Z.bottom==="bottom"?W:0),$}var s5=[],E7=[];function hZ(Q){E7.push(Q)}function xJ(Q){s5.push(Q)}function V6(){E7.forEach((Q)=>Q()),E7.length=0}var I6=[],Y7=[];function j6(Q,{element:Z}={}){if(Z)I6.push(async()=>{let $=Z.getBoundingClientRect();return $.top0?await Q():Promise.resolve()});else I6.push(Q)}function B6(Q){Y7.push(Q)}async function C6(){await Promise.allSettled(Y7.map((Q)=>Q())),Y7.length=0,document.documentElement.classList.add("is-ready"),document.fonts.ready.then(function(){document.documentElement.classList.add("fonts-loaded")})}function k6(Q,{root:Z,rootMargin:$,threshold:J,autoStart:K,once:W,callback:G}){let H=new ZJ(Q,{root:Z,rootMargin:$,threshold:J,autoStart:K,once:W,callback:G});return xJ(()=>{H.destroy()}),H}var D7={};w0(D7,{Accordion:()=>xZ});g.registerPlugin(y);class xZ{constructor(){this.isInitialized=!1,this.accordions=new Map}init(){if(this.isInitialized)return;this.initAccordions(),this.isInitialized=!0}initAccordions(){document.querySelectorAll(".accordion_wrap").forEach((Q,Z)=>{if(this.accordions.has(Q))this.destroyAccordion(Q);let $=new A6(Q,Z);this.accordions.set(Q,$)})}destroyAccordion(Q){let Z=this.accordions.get(Q);if(Z)Z.destroy(),this.accordions.delete(Q)}destroy(){this.accordions.forEach((Q,Z)=>{this.destroyAccordion(Z)}),this.isInitialized=!1}}class A6{constructor(Q,Z){this.container=Q,this.index=Z,this.timelines=[],this.closeFunctions=[],this.previousIndex=null,this.closePrevious=Q.getAttribute("data-close-previous")!=="false",this.closeOnSecondClick=Q.getAttribute("data-close-on-second-click")!=="false",this.openOnHover=Q.getAttribute("data-open-on-hover")==="true";let $=Q.getAttribute("data-open-by-default");this.openByDefault=$!==null&&!isNaN(+$)?+$:!1,this.list=Q.querySelector(".accordion_list"),this.init()}init(){this.removeCMSList(),this.setupAccordionItems()}removeCMSList(){if(!this.list)return;let Q=Array.from(this.list.children).find((J)=>J.classList.contains("w-dyn-list"));if(!Q)return;let Z=Q?.firstElementChild?.children;if(!Z)return;let $=[...this.list.children];[...Z].forEach((J)=>{if(J.firstElementChild)this.list.appendChild(J.firstElementChild)}),$.forEach((J)=>J.remove())}setupAccordionItems(){this.container.querySelectorAll(".accordion_component").forEach((Q,Z)=>{Q.style.setProperty("--_state---false","0");let $=Q.querySelector(".accordion_toggle_button"),J=Q.querySelector(".accordion_content_wrap");if(!$||!J){console.warn("Missing elements:",Q);return}this.setupAccordionItem(Q,$,J,Z)})}setupAccordionItem(Q,Z,$,J){let K=`accordion_button_${this.index}_${J}`,W=`accordion_content_${this.index}_${J}`;Z.setAttribute("aria-expanded","false"),Z.setAttribute("id",K),Z.setAttribute("aria-controls",W),$.setAttribute("id",W),$.setAttribute("aria-labelledby",K),$.style.display="none";let G=()=>{if(H.invalidate(),typeof y<"u")y.refresh()},H=g.timeline({paused:!0,defaults:{duration:0.3,ease:"power1.inOut"},onComplete:G,onReverseComplete:G});H.set($,{display:"block"}),H.fromTo($,{height:0},{height:"auto"}),this.timelines.push(H);let z=()=>{if(Q.classList.contains("is-active"))Q.classList.remove("is-active"),H.reverse(),Z.setAttribute("aria-expanded","false"),Q.style.setProperty("--_state---false","0")};this.closeFunctions[J]=z;let L=(N=!1)=>{if(this.closePrevious&&this.previousIndex!==null&&this.previousIndex!==J)this.closeFunctions[this.previousIndex]?.();if(this.previousIndex=J,Z.setAttribute("aria-expanded","true"),Q.classList.add("is-active"),Q.style.setProperty("--_state---false","1"),N)H.progress(1);else H.play()};if(this.openByDefault===J+1)L(!0);if(Z.addEventListener("click",()=>{if(window.dispatchEvent(new CustomEvent("accordion:toggle",{detail:{force:15}})),Q.classList.contains("is-active")&&this.closeOnSecondClick)z(),this.previousIndex=null;else L()}),this.openOnHover)Z.addEventListener("mouseenter",()=>L())}destroy(){this.timelines.forEach((Q)=>{if(Q)Q.kill()}),this.timelines=[],this.closeFunctions=[]}}var V7={};w0(V7,{default:()=>S6,BlogTOC:()=>I7});var p9={richText:"#postContent",toc:"#postTOC",progressBar:"#scroll-progress",headings:"h2, h3",activeOffset:0.95,scrollOffset:-100,mobileScrollOffset:-460,mobileBreakpoint:768};function i5(Q=""){return Q.toLowerCase().replace(/[^\w\s-]/g,"").trim().replace(/\s+/g,"-").replace(/-+/g,"-")}function n5(Q){let Z=Q||"section",$=2;while(document.getElementById(Z))Z=`${Q||"section"}-${$++}`;return Z}function bZ(Q,Z){if(Q===void 0)return Z;let $=Number(Q);return Number.isFinite($)?$:Z}function R7(Q,Z){if(!Z)return null;if(Q.matches?.(Z))return Q;return Q.querySelector(Z)||document.querySelector(Z)}class I7{constructor(Q,Z={}){this.element=Q,this.dataset=Z,this.config={richText:Z.richText||p9.richText,toc:Z.toc||p9.toc,progressBar:Z.progressBar||p9.progressBar,headings:Z.headings||p9.headings,activeOffset:bZ(Z.activeOffset,p9.activeOffset),scrollOffset:bZ(Z.scrollOffset,p9.scrollOffset),mobileScrollOffset:bZ(Z.mobileScrollOffset,p9.mobileScrollOffset),mobileBreakpoint:bZ(Z.mobileBreakpoint,p9.mobileBreakpoint)},this.tocLinks=[],this.sections=[],this.toggleButton=null,this.isOpen=!1,this.cleanupScroll=null,this.cleanupResize=null,this.linkListeners=[],this.imageListeners=[],this.contentResizeObserver=null,this.refreshFrame=0,this.handleScroll=this.handleScroll.bind(this),this.handleResize=this.handleResize.bind(this),this.refreshLayout=this.refreshLayout.bind(this),this.handleOutsideClick=this.handleOutsideClick.bind(this)}init(){if(!this.element)return;if(this.richText=R7(this.element,this.config.richText),this.tocElement=R7(this.element,this.config.toc),!this.richText||!this.tocElement)return;this.progressBar=R7(this.element,this.config.progressBar),this.buildTOC(),this.setupLinkNavigation(),this.setupContentObservers(),this.updateScrollState({scroll:P0.scroll,limit:P0.limit,progress:P0.progress}),this.cleanupScroll=P0.add(this.handleScroll),this.cleanupResize=l1.add(this.handleResize)}buildTOC(){let Q=Array.from(this.richText.querySelectorAll(this.config.headings));if(!Q.length){this.tocElement.style.display="none",this.tocElement.replaceChildren(),this.tocLinks=[],this.sections=[];return}this.tocElement.style.display="",Q.forEach((H)=>{if(!H.id)H.id=n5(i5(H.textContent||""))});let Z=Q.some((H)=>H.tagName==="H2"),$=(H)=>!Z||H.tagName==="H2",J=[],K=null;Q.forEach((H)=>{if($(H)||!K){K={el:H,children:[]},J.push(K);return}K.children.push(H)});let W=document.createElement("ul");W.className="toc-nav";let G=0;if(J.forEach((H)=>{G+=1,W.appendChild(this.createItem(H.el,String(G).padStart(2,"0"))),H.children.forEach((z)=>{W.appendChild(this.createItem(z,"↳","sub"))})}),!this.toggleButton)this.toggleButton=document.createElement("button"),this.toggleButton.className="toc-toggle",this.toggleButton.setAttribute("aria-expanded","false"),this.toggleButton.innerHTML='Table of Contents',this.toggleButton.addEventListener("click",()=>this.toggle());this.tocElement.replaceChildren(this.toggleButton,W),this.tocLinks=Array.from(W.querySelectorAll("a[data-id]")),this.sections=this.tocLinks.map((H)=>document.getElementById(H.dataset.id||"")).filter(Boolean)}createItem(Q,Z,$=""){let J=document.createElement("li");if($)J.className=$;let K=document.createElement("a");K.href=`#${Q.id}`,K.dataset.id=Q.id;let W=document.createElement("span");return W.className="num",W.innerHTML=Z,K.append(W,document.createTextNode(Q.textContent||"")),J.appendChild(K),J}setupLinkNavigation(){this.linkListeners.forEach(({element:Q,handler:Z})=>{Q.removeEventListener("click",Z)}),this.linkListeners=[],this.tocLinks.forEach((Q)=>{let Z=($)=>{let J=Q.dataset.id;if(!J)return;if($.preventDefault(),$.stopPropagation(),window.location.hash!==`#${J}`)history.pushState(null,"",`#${J}`);this.scrollToHeading(J),this.close(),this.updateActiveTOC()};Q.addEventListener("click",Z),this.linkListeners.push({element:Q,handler:Z})})}toggle(){this.isOpen?this.close():this.open()}open(){this.isOpen=!0,this.tocElement.classList.add("toc-open"),this.toggleButton?.setAttribute("aria-expanded","true"),document.addEventListener("click",this.handleOutsideClick)}close(){if(!this.isOpen)return;this.isOpen=!1,this.tocElement.classList.remove("toc-open"),this.toggleButton?.setAttribute("aria-expanded","false"),document.removeEventListener("click",this.handleOutsideClick)}handleOutsideClick(Q){if(!this.tocElement.contains(Q.target))this.close()}scrollToHeading(Q){let Z=document.getElementById(Q);if(!Z)return;let J=window.innerWidth{this.refreshLayout()}),this.contentResizeObserver.observe(this.richText);Array.from(this.richText.querySelectorAll("img")).forEach((Z)=>{if(Z.complete)return;let $=()=>{this.refreshLayout()};Z.addEventListener("load",$,{passive:!0}),Z.addEventListener("error",$,{passive:!0}),this.imageListeners.push({element:Z,handler:$})})}handleScroll(Q={}){this.updateScrollState(Q)}handleResize(){this.refreshLayout()}refreshLayout(){if(this.refreshFrame)return;this.refreshFrame=window.requestAnimationFrame(()=>{this.refreshFrame=0,P0.resize?.(),this.updateScrollState({scroll:P0.scroll,limit:P0.limit,progress:P0.progress})})}updateScrollState(Q={}){this.updateProgressBar(Q),this.updateActiveTOC()}updateProgressBar(Q={}){if(!this.progressBar)return;let Z=Number.isFinite(Q.scroll)?Q.scroll:P0.scroll,$=Number.isFinite(Q.limit)?Q.limit:P0.limit,J=Number.isFinite(Q.progress)?Q.progress:$>0?Z/$:0;this.progressBar.style.transform=`scaleX(${J})`}updateActiveTOC(){if(!this.sections.length||!this.tocLinks.length)return;let Q=window.innerHeight*this.config.activeOffset,Z=this.sections[0];for(let $ of this.sections){if($.getBoundingClientRect().top<=Q){Z=$;continue}break}this.tocLinks.forEach(($)=>{let J=$.dataset.id===Z.id;if($.classList.toggle("active",J),J&&this.toggleButton){let K=this.toggleButton.querySelector(".toc-toggle-label")}})}destroy(){if(this.close(),this.cleanupScroll?.(),this.cleanupResize?.(),this.cleanupScroll=null,this.cleanupResize=null,this.linkListeners.forEach(({element:Q,handler:Z})=>{Q.removeEventListener("click",Z)}),this.linkListeners=[],this.imageListeners.forEach(({element:Q,handler:Z})=>{Q.removeEventListener("load",Z),Q.removeEventListener("error",Z)}),this.imageListeners=[],this.contentResizeObserver?.disconnect(),this.contentResizeObserver=null,this.refreshFrame)window.cancelAnimationFrame(this.refreshFrame),this.refreshFrame=0}}function S6(Q,Z){let $=new I7(Q,Z);return $.init(),xJ(()=>{$.destroy()}),$}var j7={};w0(j7,{CardBorder:()=>vZ});class vZ{constructor(){this.isInitialized=!1,this.cards=new Map,this.prefersReducedMotion=!1}init(){if(this.isInitialized)return;this.prefersReducedMotion=window.matchMedia("(prefers-reduced-motion: reduce)").matches,this.initCards(),this.isInitialized=!0}initCards(){document.querySelectorAll("[data-card-border]").forEach((Q,Z)=>{if(this.cards.has(Q))this.destroyCard(Q);let $=new P6(Q,Z,{prefersReducedMotion:this.prefersReducedMotion});this.cards.set(Q,$)})}destroyCard(Q){let Z=this.cards.get(Q);if(Z)Z.destroy(),this.cards.delete(Q)}destroy(){this.cards.forEach((Q,Z)=>{this.destroyCard(Z)}),this.isInitialized=!1}}class P6{constructor(Q,Z,$={}){this.container=Q,this.index=Z,this.options=$,this.boundMouseMove=null,this.boundRecalc=null,this.rect=null,this.init()}init(){if(this.options.prefersReducedMotion)return;this.recalculateRect(),this.setupTracking(),this.setupResizeObserver()}recalculateRect(){this.rect=this.container.getBoundingClientRect()}setupResizeObserver(){this.boundRecalc=()=>this.recalculateRect(),window.addEventListener("resize",this.boundRecalc),window.addEventListener("scroll",this.boundRecalc,{passive:!0})}setupTracking(){this.boundMouseMove=this.handleMouseMove.bind(this),this.container.addEventListener("mousemove",this.boundMouseMove,{passive:!0})}handleMouseMove(Q){if(!this.rect)return;let Z=(Q.clientX-this.rect.left)/this.rect.width*100,$=(Q.clientY-this.rect.top)/this.rect.height*100;this.container.style.setProperty("--_x",Math.round(Z)+"%"),this.container.style.setProperty("--_y",Math.round($)+"%")}destroy(){if(this.boundMouseMove)this.container.removeEventListener("mousemove",this.boundMouseMove),this.boundMouseMove=null;if(this.boundRecalc)window.removeEventListener("resize",this.boundRecalc),window.removeEventListener("scroll",this.boundRecalc),this.boundRecalc=null;this.container.style.removeProperty("--_x"),this.container.style.removeProperty("--_y")}}var B7={};w0(B7,{CoinsAnimation:()=>yZ});var o5=(()=>{let Q=document.currentScript?.src;if(!Q)return window.location.origin;return new URL(Q).origin})(),a5=new URL("/public/rive-canvas-lite-loader.js",o5).href;class yZ{constructor(Q,Z,$=0.8,J="top 0%",K="bottom top"){this.canvasId=Q,this.sectionId=Z,this.rive=null,this.canvas=null,this.speedProperty=null,this.baseSpeed=$,this.currentSpeed=$,this.targetSpeed=$,this.lastScrollTime=Date.now(),this.observer=null,this.isVisible=!1,this.animationFrameId=null,this.startTrigger=J,this.endTrigger=K,this.isDestroyed=!1,this.scrollTrigger=null}init(){if(this.isDestroyed=!1,g.registerPlugin(y),this.canvas=document.getElementById(this.canvasId),!this.canvas)return console.warn(`Canvas #${this.canvasId} not found`),!1;return this.setupHighDPICanvas(),this.setupRive().catch((Q)=>{console.warn(`Failed to initialize Rive canvas #${this.canvasId}`,Q)}),this.setupIntersectionObserver(),!0}setupHighDPICanvas(){this.canvas.style.width="100%",this.canvas.style.height="100%",this.canvas.style.display="block",this.canvas.style.objectFit="contain"}setupIntersectionObserver(){this.observer=new IntersectionObserver((Q)=>{Q.forEach((Z)=>{if(this.isVisible=Z.isIntersecting,this.rive)if(Z.isIntersecting)this.rive.play();else this.rive.pause()})},{threshold:0.1}),this.observer.observe(this.canvas)}async setupRive(){let{loadRive:Q}=await import(a5),Z=await Q();if(this.isDestroyed||!this.canvas)return;this.rive=new Z.Rive({src:"https://cdn.prod.website-files.com/68da6f24db5fedbdab2e7d56/68e1788e590408f8a05d1655_threshold_10.riv",canvas:this.canvas,layoutScaleFactor:1,artboard:"main",stateMachines:"stateMachine",autoplay:!0,autoBind:!0,useOffscreenRenderer:!0,layout:new Z.Layout({fit:Z.Fit.Contain,alignment:"center"}),onLoad:()=>{if(this.isDestroyed||!this.rive)return;this.rive.resizeDrawingSurfaceToCanvas();let $=this.rive.viewModelInstance;this.speedProperty=$.number("speed"),this.speedProperty.value=this.baseSpeed,this.setupScrollTrigger(),this.startSpeedLerp()}})}setupScrollTrigger(){this.scrollTrigger=y.create({trigger:`#${this.sectionId}`,start:this.startTrigger,end:this.endTrigger,scrub:1,onUpdate:(Q)=>{let Z=Q.getVelocity();if(Math.abs(Z)>10){this.lastScrollTime=Date.now();let $=0.01;this.targetSpeed=this.baseSpeed+Z*$;let J=-3,K=3;this.targetSpeed=Math.max(J,Math.min(K,this.targetSpeed))}}})}startSpeedLerp(){let Q=()=>{if(!this.speedProperty||!this.isVisible){this.animationFrameId=requestAnimationFrame(Q);return}if(Date.now()-this.lastScrollTime>100)this.targetSpeed=this.baseSpeed;let J=0.1;this.currentSpeed+=(this.targetSpeed-this.currentSpeed)*J,this.speedProperty.value=this.currentSpeed,this.animationFrameId=requestAnimationFrame(Q)};Q()}destroy(){if(this.isDestroyed=!0,this.animationFrameId)cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null;if(this.observer)this.observer.disconnect(),this.observer=null;if(this.rive)this.rive.cleanup(),this.rive=null;if(this.scrollTrigger)this.scrollTrigger.kill(),this.scrollTrigger=null}}var k7={};w0(k7,{CoinsGravity:()=>w6});var A9=hW(T6());class w6{constructor(){this.isInitialized=!1,this.gravities=new Map,this.prefersReducedMotion=!1}init(){if(this.isInitialized)return;this.prefersReducedMotion=window.matchMedia("(prefers-reduced-motion: reduce)").matches;let Q=window.innerWidth<=768;this.initGravities(Q),this.isInitialized=!0}initGravities(Q){document.querySelectorAll("[data-gravity]").forEach(($,J)=>{if(this.gravities.has($))this.destroyGravity($);let K=new f6($,J,{prefersReducedMotion:this.prefersReducedMotion,isMobile:Q});this.gravities.set($,K)})}triggerJump(Q){this.gravities.forEach((Z)=>{Z.jump(Q)})}destroyGravity(Q){let Z=this.gravities.get(Q);if(Z)Z.destroy(),this.gravities.delete(Q)}destroy(){this.gravities.forEach((Q,Z)=>{this.destroyGravity(Z)}),this.isInitialized=!1}}class f6{constructor(Q,Z,$={}){this.container=Q,this.index=Z,this.options=$,this.engine=null,this.render=null,this.runner=null,this.world=null,this.mouse=null,this.mouseConstraint=null,this.boundaries=[],this.coinBodies=[],this.oldWidth=0,this.oldHeight=0,this.isVisible=!1,this.hasInitialized=!1,this.handleResize=this.handleResize.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onMouseMove=this.onMouseMove.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.click=!1,this.config=this.getConfiguration(),this.setupIntersectionObserver()}getConfiguration(){let Q=parseFloat(this.container.getAttribute("data-gravity-x"))||0,Z=parseFloat(this.container.getAttribute("data-gravity-y"))||2,$=parseFloat(this.container.getAttribute("data-duplication-factor"))||2.5;return{gravityX:Q,gravityY:Z,duplicationFactor:$,baseCoins:this.getBaseCoins()}}getBaseCoins(){let Q=this.options.isMobile||!1,Z=Q?100:144,$=Q?102:146;return[this.createCoin("TBTC",Z,Z,"https://cdn.prod.website-files.com/68da6f24db5fedbdab2e7d56/68dc0f20cc3fcd96decab7f7_tbtc.svg"),this.createCoin("BTC",$,$,"https://cdn.prod.website-files.com/68da6f24db5fedbdab2e7d56/68dc0dca7fd5ce90b30e8acb_btc.svg")]}createCoin(Q,Z,$,J){return{text:Q,width:Z,height:$,url:J}}setupIntersectionObserver(){let Q={root:null,rootMargin:"0px",threshold:0.4};this.observer=new IntersectionObserver((Z)=>{Z.forEach(($)=>{if($.isIntersecting&&!this.hasInitialized)this.isVisible=!0,this.init(),this.hasInitialized=!0;else if($.isIntersecting&&this.hasInitialized)this.isVisible=!0,this.resume();else this.isVisible=!1,this.pause()})},Q),this.observer.observe(this.container)}pause(){if(this.runner&&this.engine)this.runner.enabled=!1}resume(){if(this.runner&&this.engine)this.runner.enabled=!0}init(){if(this.options.prefersReducedMotion)return;let{Engine:Q,Render:Z,MouseConstraint:$,Mouse:J,World:K,Bodies:W,Runner:G}=A9.default;this.engine=Q.create(),this.world=this.engine.world,this.engine.gravity.x=this.config.gravityX,this.engine.gravity.y=this.config.gravityY,this.engine.positionIterations=10,this.engine.velocityIterations=8,this.engine.constraintIterations=4;let H=this.container.clientWidth,z=this.container.clientHeight;if(H===0||z===0){console.error("Container has no dimensions!");return}this.oldWidth=H,this.oldHeight=z,this.render=Z.create({element:this.container,engine:this.engine,options:{width:H,height:z,pixelRatio:2,background:"transparent",wireframes:!1}}),this.createBoundaries();let L=this.prepareCoins();this.preloadImages(L).then(()=>{this.createCoinBodies(L),this.runner=G.create(),G.run(this.runner,this.engine),Z.run(this.render)}).catch((N)=>{console.error("Failed to load images:",N)}),this.setupMouseInteraction(),window.addEventListener("resize",this.handleResize),document.addEventListener("mousedown",this.onMouseDown),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp)}createBoundaries(){let{World:Q,Bodies:Z}=A9.default,$=this.container.clientWidth,J=this.container.clientHeight;this.boundaries.forEach((N)=>Q.remove(this.world,N)),this.boundaries=[];let K=(N,U,q,F,M={})=>{return Z.rectangle(N,U,q,F,{isStatic:!0,restitution:0.3,friction:0.1,...M})},W=100,G=K($/2,J+W/2,$+W*2,W,{render:{fillStyle:"transparent"}}),H=K(-W/2,J/2,W,J+W*2,{render:{fillStyle:"transparent"}}),z=K($+W/2,J/2,W,J+W*2,{render:{fillStyle:"transparent"}}),L=K($/2,-W/2,$+W*2,W,{render:{fillStyle:"transparent"}});this.boundaries.push(G,H,z,L),Q.add(this.world,this.boundaries)}prepareCoins(){let Q=[];for(let Z=0;Z{Q.push({...$})});return Q}preloadImages(Q){return Promise.all(Q.map((Z)=>new Promise(($,J)=>{let K=new Image;K.onload=()=>$(K),K.onerror=()=>{console.error(`Failed to load image: ${Z.url}`),J(Error(`Image load error for ${Z.url}`))},K.src=Z.url})))}createCoinBodies(Q){let{World:Z,Bodies:$}=A9.default,J=this.container.clientWidth,K=this.container.clientHeight;this.coinBodies=Q.map((W)=>{let G=this.getRandomPosition(J,K/2),H=this.getRandomVelocity(),z=144,L=W.width/144,N=$.rectangle(G.x,G.y,W.width,W.height,{chamfer:{radius:20},render:{sprite:{texture:W.url,xScale:L,yScale:L}},restitution:0.6,friction:0.05,frictionAir:0.02,density:0.001,slop:0.05});return A9.default.Body.setVelocity(N,H),N}),Z.add(this.world,this.coinBodies)}getRandomPosition(Q,Z){return{x:Math.random()*Q,y:Math.random()*Z}}getRandomVelocity(){return{x:(Math.random()-0.5)*4,y:(Math.random()-0.5)*4}}setupMouseInteraction(){let{MouseConstraint:Q,Mouse:Z,World:$}=A9.default;this.mouse=Z.create(this.render.canvas),this.mouseConstraint=Q.create(this.engine,{mouse:this.mouse,constraint:{stiffness:0.2,render:{visible:!1}}}),$.add(this.world,this.mouseConstraint),this.render.mouse=this.mouse,this.removeDefaultMouseEvents()}removeDefaultMouseEvents(){if(this.mouse&&this.mouse.element)this.mouse.element.removeEventListener("mousewheel",this.mouse.mousewheel),this.mouse.element.removeEventListener("DOMMouseScroll",this.mouse.mousewheel)}onMouseDown(){this.click=!0}onMouseMove(){this.click=!1}onMouseUp(){}handleResize(){this.resizeCanvas(),this.scaleBodiesToFit(),this.createBoundaries()}resizeCanvas(){this.oldWidth=this.render.options.width,this.oldHeight=this.render.options.height;let Q=this.container.clientWidth,Z=this.container.clientHeight;this.render.canvas.width=Q*this.render.options.pixelRatio,this.render.canvas.height=Z*this.render.options.pixelRatio,this.render.canvas.style.width=`${Q}px`,this.render.canvas.style.height=`${Z}px`,this.render.options.width=Q,this.render.options.height=Z}scaleBodiesToFit(){let{Body:Q}=A9.default;if(!this.oldWidth||!this.oldHeight)return;let Z=this.container.clientWidth,$=this.container.clientHeight,J=Z/this.oldWidth,K=$/this.oldHeight;this.coinBodies.forEach((W)=>{Q.scale(W,J,K);let G=W.position.x*J,H=W.position.y*K;Q.setPosition(W,{x:G,y:H})})}jump(Q=15){if(!this.engine||!this.coinBodies.length)return;let{Body:Z}=A9.default;this.coinBodies.forEach(($)=>{let J=(Math.random()-0.5)*15;Z.setVelocity($,{x:$.velocity.x+J,y:-Q})})}destroy(){let{World:Q,Render:Z,Runner:$,Engine:J}=A9.default;if(this.observer)this.observer.disconnect(),this.observer=null;if(window.removeEventListener("resize",this.handleResize),document.removeEventListener("mousedown",this.onMouseDown),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),this.removeDefaultMouseEvents(),this.runner)$.stop(this.runner),this.runner=null;if(this.render){if(Z.stop(this.render),this.render.canvas)this.render.canvas.remove();this.render=null}if(this.world)Q.clear(this.world,!1),this.world=null;if(this.engine)J.clear(this.engine),this.engine=null;this.coinBodies=[],this.boundaries=[],this.mouse=null,this.mouseConstraint=null}}var A7={};w0(A7,{Counter:()=>h6});g.registerPlugin(y);class h6{constructor(){this.isInitialized=!1,this.counters=[]}init(){if(this.isInitialized)return;let Q=document.querySelectorAll("[data-counter]");if(Q.length===0)return;Q.forEach((Z,$)=>{this.setupCounter(Z,$)}),this.isInitialized=!0}setupCounter(Q,Z){let $=Q.textContent.trim();if(!this.isValidNumber($))return;let J={element:Q,finalNumber:$,originalValue:this.parseNumberValue($),currentValue:0,hasDecimal:$.includes("."),decimalPlaces:this.getDecimalPlaces($),scrollTrigger:null};if(J.hasDecimal)J.element.textContent=0 .toFixed(J.decimalPlaces);else{let K=Math.floor(J.originalValue).toString().length;J.element.textContent=this.formatNumberWithLeadingZeros(0,K)}this.counters.push(J),this.setupScrollTrigger(J,Z)}isValidNumber(Q){return/^[\d,\.+]+$/.test(Q)}getDecimalPlaces(Q){let Z=Q.split(".");return Z.length>1?Z[1].replace(/,/g,"").length:0}parseNumberValue(Q){let Z=Q.replace(/[,+]/g,"");return parseFloat(Z)}formatNumberWithLeadingZeros(Q,Z){return Q.toString().padStart(Z,"0").replace(/\B(?=(\d{3})+(?!\d))/g,",")}setupScrollTrigger(Q,Z){Q.scrollTrigger=y.create({trigger:Q.element,start:"top 80%",markers:!1,onEnter:()=>this.animateCounter(Q),once:!0})}animateCounter(Q){Q.currentValue=0,g.to(Q,{currentValue:Q.originalValue,duration:2,ease:"power2.out",onUpdate:()=>{if(Q.hasDecimal)Q.element.textContent=Q.currentValue.toFixed(Q.decimalPlaces);else{let Z=Math.floor(Q.currentValue),$=Math.floor(Q.originalValue).toString().length;Q.element.textContent=this.formatNumberWithLeadingZeros(Z,$)}}})}destroy(){this.counters.forEach((Q)=>{if(Q.scrollTrigger)Q.scrollTrigger.kill(),Q.scrollTrigger=null;Q.element.textContent=Q.finalNumber}),this.counters=[],this.isInitialized=!1}refresh(){y.refresh()}toggle(Q=!0){this.counters.forEach((Z)=>{if(Z.scrollTrigger)if(Q)Z.scrollTrigger.enable();else Z.scrollTrigger.disable()})}}var S7={};w0(S7,{default:()=>b6});class x6{events;constructor(){this.events={}}on(Q,Z){if(!this.events[Q])this.events[Q]=[];this.events[Q].push(Z)}once(Q,Z){let $=(J)=>{Z(J),this.off(Q,$)};this.on(Q,$)}off(Q,Z){if(!this.events[Q])return;this.events[Q]=this.events[Q].filter(($)=>$!==Z)}emit(Q,Z){if(!this.events[Q])return;this.events[Q].forEach(($)=>$(Z))}}class q9{static emitter=new x6;static state={};static createProxy(Q){return new Proxy(Q,{set:function(Z,$,J,K){return q9.emitter.emit($.toString(),J),Reflect.set(Z,$,J,K)}})}static proxy=new Proxy(q9.state,{set:function(Q,Z,$,J){if(typeof $==="object"&&$!==null)$=q9.createProxy($);return q9.emitter.emit(Z.toString(),$),Reflect.set(Q,Z,$,J)}});static on(Q,Z){this.emitter.on(Q,Z)}static once(Q,Z){this.emitter.once(Q,Z)}static off(Q,Z){this.emitter.off(Q,Z)}}var r5={get(Q,Z){if(typeof Z==="string"&&Z in q9)return q9[Z].bind(q9);return Q[Z]},set(Q,Z,$,J){return Reflect.set(q9.proxy,Z,$,J)}},_Z=new Proxy(q9.proxy,r5);function b6(Q,Z){_Z.on("SOMETHING",($)=>{console.log("something",$)}),B6(async()=>{await p1.to(Q,{duration:0.2,backgroundColor:"green"})}),j6(async()=>{await p1.to(Q,{duration:1,backgroundColor:"blue"}),await p1.to(Q,{duration:1,autoAlpha:0})},{element:Q}),hZ(()=>{}),xJ(()=>{})}var d7={};w0(d7,{DotsAnimation:()=>KW});/*! * paths 3.13.0 * https://gsap.com * * Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var t5=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,e5=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,JH=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,ZH=/(^[#\.][a-z]|[a-y][a-z])/i,$H=Math.PI/180,KH=180/Math.PI,gZ=Math.sin,uZ=Math.cos,s1=Math.abs,S9=Math.sqrt,QH=Math.atan2,P7=1e8,v6=function(Z){return typeof Z==="string"},m6=function(Z){return typeof Z==="number"},WH=function(Z){return typeof Z>"u"},GH={},HH={},mZ=1e5,d6=function(Z){return Math.round((Z+P7)%1*mZ)/mZ||(Z<0?0:1)},U0=function(Z){return Math.round(Z*mZ)/mZ||0},y6=function(Z){return Math.round(Z*10000000000)/10000000000||0},_6=function(Z,$,J,K){var W=Z[$],G=K===1?6:T7(W,J,K);if((G||!K)&&G+J+2$){while(--W&&Z[W]>$);W<0&&(W=0)}else while(Z[++W]<$&&W element or an SVG path data string"):v6(Q)?Y8(Q):m6(Q[0])?[Q]:Q}function LH(Q){var Z=[],$=0;for(;$-1)if(G=K[W].nodeName.toLowerCase(),$.indexOf(","+G+",")<0)J.setAttributeNS(null,G,K[W].nodeValue);return J},qH={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"},MH=function(Z,$){var J=$?$.split(","):[],K={},W=J.length;while(--W>-1)K[J[W]]=+Z.getAttribute(J[W])||0;return K};function p6(Q,Z){var $=Q.tagName.toLowerCase(),J=0.552284749831,K,W,G,H,z,L,N,U,q,F,M,X,E,V,I,O,Y,R,D,j,C,B;if($==="path"||!Q.getBBox)return Q;if(L=FH(Q,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),B=MH(Q,qH[$]),$==="rect")if(H=B.rx,z=B.ry||H,W=B.x,G=B.y,F=B.width-H*2,M=B.height-z*2,H||z)X=W+H*(1-J),E=W+H,V=E+F,I=V+H*J,O=V+H,Y=G+z*(1-J),R=G+z,D=R+M,j=D+z*J,C=D+z,K="M"+O+","+R+" V"+D+" C"+[O,j,I,C,V,C,V-(V-E)/3,C,E+(V-E)/3,C,E,C,X,C,W,j,W,D,W,D-(D-R)/3,W,R+(D-R)/3,W,R,W,Y,X,G,E,G,E+(V-E)/3,G,V-(V-E)/3,G,V,G,I,G,O,Y,O,R].join(",")+"z";else K="M"+(W+F)+","+G+" v"+M+" h"+-F+" v"+-M+" h"+F+"z";else if($==="circle"||$==="ellipse"){if($==="circle")H=z=B.r,U=H*J;else H=B.rx,z=B.ry,U=z*J;W=B.cx,G=B.cy,N=H*J,K="M"+(W+H)+","+G+" C"+[W+H,G+U,W+N,G+z,W,G+z,W-N,G+z,W-H,G+U,W-H,G,W-H,G-U,W-N,G-z,W,G-z,W+N,G-z,W+H,G-U,W+H,G].join(",")+"z"}else if($==="line")K="M"+B.x1+","+B.y1+" L"+B.x2+","+B.y2;else if($==="polyline"||$==="polygon"){if(q=(Q.getAttribute("points")+"").match(e5)||[],W=q.shift(),G=q.shift(),K="M"+W+","+G+" L"+q.join(","),$==="polygon")K+=","+W+","+G+"z"}if(L.setAttribute("d",yJ(L._gsRawPath=Y8(K))),Z&&Q.parentNode)Q.parentNode.insertBefore(L,Q),Q.parentNode.removeChild(Q);return L}function l6(Q,Z,$){var J=Q[Z],K=Q[Z+2],W=Q[Z+4],G;return J+=(K-J)*$,K+=(W-K)*$,J+=(K-J)*$,G=K+(W+(Q[Z+6]-W)*$-K)*$-J,J=Q[Z+1],K=Q[Z+3],W=Q[Z+5],J+=(K-J)*$,K+=(W-K)*$,J+=(K-J)*$,U0(QH(K+(W+(Q[Z+7]-W)*$-K)*$-J,G)*KH)}function w7(Q,Z,$){$=WH($)?1:y6($)||0,Z=y6(Z)||0;var J=Math.max(0,~~(s1($-Z)-0.00000001)),K=LH(Q);if(Z>$)Z=1-Z,$=1-$,UH(K),K.totalLength=0;if(Z<0||$<0){var W=Math.abs(~~Math.min(Z,$))+1;Z+=W,$+=W}K.totalLength||l9(K);var G=$>1,H=u6(K,Z,GH,!0),z=u6(K,$,HH),L=z.segment,N=H.segment,U=z.segIndex,q=H.segIndex,F=z.i,M=H.i,X=q===U,E=F===M&&X,V,I,O,Y,R,D,j,C;if(G||J){if(V=UU)&&K.splice(Y,1)}else L.angle=l6(L,F+O,0),F+=O,H=L[F],z=L[F+1],L.length=L.totalLength=0,L.totalPoints=K.totalPoints=8,L.push(H,z,H,z,H,z,H,z);return K.totalLength=0,K}function XH(Q,Z,$){if(Z=Z||0,!Q.samples)Q.samples=[],Q.lookup=[];var J=~~Q.resolution||12,K=1/J,W=$?Z+$*6+1:Q.length,G=Q[Z],H=Q[Z+1],z=Z?Z/6*J:0,L=Q.samples,N=Q.lookup,U=(Z?Q.minLength:P7)||P7,q=L[z+$*J-1],F=Z?L[z-1]:0,M,X,E,V,I,O,Y,R,D,j,C,B,k,A,P,T,h;L.length=N.length=0;for(X=Z+2;X8)Q.splice(X,6),X-=6,W-=6}else for(M=1;M<=J;M++){if(A=K*M,k=1-A,O=Y-(Y=(A*A*E+3*k*(A*V+k*I))*A),C=B-(B=(A*A*R+3*k*(A*D+k*j))*A),T=S9(C*C+O*O),T=1)return 0;var J=Q[Z],K=Q[Z+1],W=Q[Z+2],G=Q[Z+3],H=Q[Z+4],z=Q[Z+5],L=Q[Z+6],N=Q[Z+7],U=J+(W-J)*$,q=W+(H-W)*$,F=K+(G-K)*$,M=G+(z-G)*$,X=U+(q-U)*$,E=F+(M-F)*$,V=H+(L-H)*$,I=z+(N-z)*$;return q+=(V-q)*$,M+=(I-M)*$,Q.splice(Z+2,4,U0(U),U0(F),U0(X),U0(E),U0(X+(q-X)*$),U0(E+(M-E)*$),U0(q),U0(M),U0(V),U0(I)),Q.samples&&Q.samples.splice(Z/6*Q.resolution|0,0,0,0,0,0,0,0),6}function u6(Q,Z,$,J){if($=$||{},Q.totalLength||l9(Q),Z<0||Z>1)Z=d6(Z);var K=0,W=Q[0],G,H,z,L,N,U,q;if(!Z)q=U=K=0,W=Q[0];else if(Z===1)q=1,K=Q.length-1,W=Q[K],U=W.length-8;else{if(Q.length>1){z=Q.totalLength*Z,N=U=0;while((N+=Q[U++].totalLength)1)Z=d6(Z);if(K.lookup||l9(Q),Q.length>1){z=Q.totalLength*Z,N=U=0;while((N+=Q[U++].totalLength)=1?0.999999999:q?q:0.000000001):K.angle||0;return W}function s9(Q,Z,$,J,K,W,G){var H=Q.length,z,L,N,U,q;while(--H>-1){z=Q[H],L=z.length;for(N=0;N1)$=S9(Y)*$,J=S9(Y)*J;var R=$*$,D=J*J,j=(R*D-R*O-D*I)/(R*O+D*I);if(j<0)j=0;var C=(W===G?-1:1)*S9(j),B=C*($*V/J),k=C*-(J*E/$),A=(Q+H)/2,P=(Z+z)/2,T=A+(N*B-U*k),h=P+(U*B+N*k),f=(E-B)/$,x=(V-k)/J,b=(-E-B)/$,_=(-V-k)/J,m=f*f+x*x,S=(x<0?-1:1)*Math.acos(f/S9(m)),c=(f*_-x*b<0?-1:1)*Math.acos((f*b+x*_)/S9(m*(b*b+_*_)));if(isNaN(c)&&(c=q),!G&&c>0)c-=F;else if(G&&c<0)c+=F;S%=F,c%=F;var t=Math.ceil(s1(c)/(F/4)),o=[],d=c/t,G0=1.3333333333333333*gZ(d/2)/(1+uZ(d/2)),$0=N*$,N0=U*$,F0=U*-J,L0=N*J,J0;for(J0=0;J0-0.0001?0:k}).match(t5)||[],$=[],J=0,K=0,W=0.6666666666666666,G=Z.length,H=0,z="ERROR: malformed path: "+Q,L,N,U,q,F,M,X,E,V,I,O,Y,R,D,j,C=function(k,A,P,T){I=(P-k)/3,O=(T-A)/3,X.push(k+I,A+O,P-I,T-O,P,T)};if(!Q||!isNaN(Z[0])||isNaN(Z[1]))return console.log(z),$;for(L=0;L0.5||s1(K-q)>0.5){if(C(J,K,U,q),F==="L")L+=2}J=U,K=q}else if(F==="A"){if(D=Z[L+4],j=Z[L+5],I=Z[L+6],O=Z[L+7],N=7,D.length>1){if(D.length<3)O=I,I=j,N--;else O=j,I=D.substr(2),N-=2;j=D.charAt(1),D=D.charAt(0)}if(Y=OH(J,K,+Z[L+1],+Z[L+2],+Z[L+3],+D,+j,(M?J:0)+I*1,(M?K:0)+O*1),L+=N,Y)for(N=0;N1?IH(L):L.getItem(0).matrix,U=L.a*N.x+L.c*N.y,q=L.b*N.x+L.d*N.y;else L=new uJ,U=q=0;if($&&Z.tagName.toLowerCase()==="g")U=q=0;(K?J:G).appendChild(z),z.setAttribute("transform","matrix("+L.a+","+L.b+","+L.c+","+L.d+","+(L.e+U)+","+(L.f+q)+")")}else{if(U=q=0,i6){L=Z.offsetParent,N=Z;while(N&&(N=N.parentNode)&&N!==L&&N.parentNode)if((D8.getComputedStyle(N)[$9]+"").length>4)U=N.offsetLeft,q=N.offsetTop,N=0}if(F=D8.getComputedStyle(Z),F.position!=="absolute"&&F.position!=="fixed"){L=Z.offsetParent;while(G&&G!==L)U+=G.scrollLeft||0,q+=G.scrollTop||0,G=G.parentNode}N=z.style,N.top=Z.offsetTop-q+"px",N.left=Z.offsetLeft-U+"px",N[$9]=F[$9],N[b7]=F[b7],N.position=F.position==="fixed"?"fixed":"absolute",H.appendChild(z)}return z},x7=function(Z,$,J,K,W,G,H){return Z.a=$,Z.b=J,Z.c=K,Z.d=W,Z.e=G,Z.f=H,Z},uJ=function(){function Q($,J,K,W,G,H){if($===void 0)$=1;if(J===void 0)J=0;if(K===void 0)K=0;if(W===void 0)W=1;if(G===void 0)G=0;if(H===void 0)H=0;x7(this,$,J,K,W,G,H)}var Z=Q.prototype;return Z.inverse=function(){var J=this.a,K=this.b,W=this.c,G=this.d,H=this.e,z=this.f,L=J*G-K*W||0.0000000001;return x7(this,G/L,-K/L,-W/L,J/L,(W*z-G*H)/L,-(J*z-K*H)/L)},Z.multiply=function(J){var K=this.a,W=this.b,G=this.c,H=this.d,z=this.e,L=this.f,N=J.a,U=J.c,q=J.b,F=J.d,M=J.e,X=J.f;return x7(this,N*K+q*G,N*W+q*H,U*K+F*G,U*W+F*H,z+M*K+X*G,L+M*W+X*H)},Z.clone=function(){return new Q(this.a,this.b,this.c,this.d,this.e,this.f)},Z.equals=function(J){var K=this.a,W=this.b,G=this.c,H=this.d,z=this.e,L=this.f;return K===J.a&&W===J.b&&G===J.c&&H===J.d&&z===J.e&&L===J.f},Z.apply=function(J,K){if(K===void 0)K={};var{x:W,y:G}=J,H=this.a,z=this.b,L=this.c,N=this.d,U=this.e,q=this.f;return K.x=W*H+G*L+U||0,K.y=W*z+G*N+q||0,K},Q}();function R8(Q,Z,$,J){if(!Q||!Q.parentNode||(P9||n6(Q)).documentElement===Q)return new uJ;var K=EH(Q),W=y7(Q),G=W?o6:a6,H=jH(Q,$),z=G[0].getBoundingClientRect(),L=G[1].getBoundingClientRect(),N=G[2].getBoundingClientRect(),U=H.parentNode,q=!J&&RH(Q),F=new uJ((L.left-z.left)/100,(L.top-z.top)/100,(N.left-z.left)/100,(N.top-z.top)/100,z.left+(q?0:DH()),z.top+(q?0:YH()));if(U.removeChild(H),K){z=K.length;while(z--)L=K[z],L.scaleX=L.scaleY=0,L.renderTransform(1,L)}return Z?F.inverse():F}/*! * MotionPathPlugin 3.13.0 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var BH="x,translateX,left,marginLeft,xPercent".split(","),CH="y,translateY,top,marginTop,yPercent".split(","),kH=Math.PI/180,i1,JW,l8,g7,_7,r6,AH=function(){return i1||typeof window<"u"&&(i1=window.gsap)&&i1.registerPlugin&&i1},mJ=function(Z,$,J,K){var W=$.length,G=K===2?0:K,H=0,z;for(;H1)Z=1;else if(Z<0)Z=0;while(K--)f7(J[K],Z,!K&&$.rotate,J[K]);while(W)W.set(W.t,W.p,W.path[W.pp]+W.u,W.d,Z),W=W._next;$.rotate&&$.rSet($.target,$.rProp,J[0].angle*($.radians?kH:1)+$.rOffset+$.ru,$,Z)}else $.styles.revert()},getLength:function(Z){return l9(vJ(Z)).totalLength},sliceRawPath:w7,getRawPath:vJ,pointsToSegment:dZ,stringToRawPath:Y8,rawPathToString:yJ,transformRawPath:s9,getGlobalMatrix:R8,getPositionOnPath:f7,cacheRawPathMeasurements:l9,convertToPath:function(Z,$){return g7(Z).map(function(J){return p6(J,$!==!1)})},convertCoordinates:function(Z,$,J){var K=R8($,!0,!0).multiply(R8(Z));return J?K.apply(J):K},getAlignMatrix:u7,getRelativePosition:function(Z,$,J,K){var W=u7(Z,$,J,K);return{x:W.e,y:W.f}},arrayToRawPath:function(Z,$){$=$||{};var J=mJ(mJ([],Z,$.x||"x",0),Z,$.y||"y",1);return $.relative&&ZW(J),[$.type==="cubic"?J:dZ(J,$.curviness)]}};AH()&&i1.registerPlugin(m7);g.registerPlugin(m7);class KW{constructor(Q="[data-dots]"){this.isInitialized=!1,this.dots=new Map,this.prefersReducedMotion=!1,this.selector=Q}init(){if(this.isInitialized)return;this.prefersReducedMotion=window.matchMedia("(prefers-reduced-motion: reduce)").matches,this.initDots(),this.isInitialized=!0}initDots(){document.querySelectorAll(this.selector).forEach((Q,Z)=>{if(this.dots.has(Q))this.destroyDot(Q);let $=new QW(Q,Z,{prefersReducedMotion:this.prefersReducedMotion});this.dots.set(Q,$)})}destroyDot(Q){let Z=this.dots.get(Q);if(Z)Z.destroy(),this.dots.delete(Q)}destroy(){this.dots.forEach((Q,Z)=>{this.destroyDot(Z)}),this.isInitialized=!1}}class QW{constructor(Q,Z,$={}){this.container=Q,this.index=Z,this.options=$,this.timelines=[],this.svgElements=[],this.circles=this.getDefaultCircles(),this.colors=["#7D00FF","#7D00FF"],this.numDots=5,this.init()}init(){if(this.options.prefersReducedMotion)return;let Q=this.container.getAttribute("data-dots-count");if(Q)this.numDots=parseInt(Q,10);let Z=this.container.getAttribute("data-dots-colors");if(Z)this.colors=Z.split(",").map((J)=>J.trim());let $=this.container.getAttribute("data-dots-circles");if($)try{this.circles=JSON.parse($)}catch(J){console.warn("Invalid circles data, using defaults")}this.setupDots()}getDefaultCircles(){return[{cx:690.183,cy:690.183,r:513.183},{cx:689.496,cy:689.496,r:466.496},{cx:690.421,cy:690.421,r:428.421},{cx:690.406,cy:690.406,r:392.406},{cx:689.896,cy:689.896,r:356.896},{cx:689.954,cy:689.954,r:316.954},{cx:690.305,cy:690.305,r:280.305},{cx:690.293,cy:690.293,r:242.293},{cx:689.958,cy:689.958,r:208.958},{cx:690.345,cy:690.345,r:167.345},{cx:689.94,cy:689.94,r:129.94},{cx:690.259,cy:690.259,r:95.2588},{cx:689.758,cy:689.758,r:65.7582},{cx:690.089,cy:690.089,r:40.0886},{cx:690.178,cy:690.178,r:14.178},{cx:689.643,cy:689.643,r:587.643},{cx:690.372,cy:690.372,r:621.372},{cx:689.846,cy:689.846,r:654.846},{cx:689.944,cy:689.944,r:689.944},{cx:689.53,cy:689.53,r:552.53}]}setupDots(){let Q=this.container.querySelector("svg");if(!Q){console.warn("No SVG element found in container");return}this.revealCircles(Q).then(()=>{this.createDotElements(Q)})}revealCircles(Q){return new Promise((Z)=>{let $=Array.from(Q.querySelectorAll("circle"));if($.length===0){Z();return}let J=$.map((W)=>({element:W,radius:parseFloat(W.getAttribute("r"))||0})).sort((W,G)=>W.radius-G.radius);J.forEach(({element:W})=>{let G=parseFloat(W.getAttribute("cx"))||0,H=parseFloat(W.getAttribute("cy"))||0;g.set(W,{transformOrigin:`${G}px ${H}px`,scale:0,opacity:0})});let K=g.timeline({onComplete:Z});J.forEach(({element:W},G)=>{K.to(W,{scale:1,opacity:1,duration:1.6,ease:"expo.out"},G*0.04)}),this.timelines.push(K)})}createDotElements(Q){let Z=Q.querySelector("[data-dots-container]");if(!Z)Z=document.createElementNS("http://www.w3.org/2000/svg","g"),Z.setAttribute("data-dots-container",""),Q.appendChild(Z);this.selectRandomCircles(this.numDots).forEach((J,K)=>{this.createDot(Z,J,K)})}selectRandomCircles(Q){let Z=this.circles.map((K,W)=>({...K,originalIndex:W})).filter((K)=>K.r>300),$=[],J=new Set;while($.length{if(Q)Q.kill()}),this.timelines=[],this.svgElements.forEach((Q)=>{if(Q&&Q.parentNode)Q.parentNode.removeChild(Q)}),this.svgElements=[]}}var c7={};w0(c7,{default:()=>GW});function WW(){let Q=window.Webflow||[];if(Q.length>0)Q.forEach((Z)=>{Z.destroy(),Z.ready()});console.log(Q)}function GW(Q,Z){console.log("form",Q),hZ(()=>{WW()})}var p7={};w0(p7,{GhostPosts:()=>HW});class HW{constructor(Q={}){this.isInitialized=!1,this.ghostUrl="https://threshold-network.ghost.io/blog",this.apiKey="92bf2e734c4713627111f5976c",this.blogCards=this.getBlogCards(),this.blogCardWrapper=document.querySelector(".blog_card_wrap")?.parentElement?.parentElement,this.posts=[],this.loading=!0}getBlogCards(){let Q=document.querySelectorAll(".blog_card_wrap");return Array.from(Q).map((Z)=>{let $=Z.closest("[class*='blog_card']")||Z.parentElement;return{container:$,tagWrap:$.querySelector(".blog_card_tag_wrap"),tag:$.querySelector(".blog_card_tag"),image:$.querySelector(".blog_card_image"),title:$.querySelector(".blog_card_title"),excerpt:$.querySelector(".blog_card_excerpt"),date:$.querySelector(".blog_card_date"),readtime:$.querySelector(".blog_card_readtime"),link:$.querySelector(".blog_card_link a")||$.querySelector("a")}})}init(){if(this.isInitialized)return;this.showLoading(),this.fetchPosts(),this.isInitialized=!0}async fetchPosts(){try{let Q=this.blogCards.length||5,Z=`${this.ghostUrl}/ghost/api/content/posts/?key=${this.apiKey}&include=authors,tags&limit=${Q}`,$=await fetch(Z,{method:"GET",headers:{"Accept-Version":"v5.0"}});if(!$.ok)throw Error(`HTTP error! status: ${$.status}`);let J=await $.json();this.posts=J.posts||[],await this.renderPosts(),this.hideLoading()}catch(Q){console.error("Error fetching posts:",Q),this.hideLoading()}}async renderPosts(){let Q=[];this.blogCards.forEach((Z,$)=>{let J=this.posts[$];if(!J){Z.container?.classList.add("is-hidden");return}Z.container?.classList.remove("is-hidden");let K=J.primary_tag?.name||J.tags?.[0]?.name;if(K&&Z.tag)Z.tag.textContent=K,Z.tagWrap?.classList.remove("is-hidden");else Z.tagWrap?.classList.add("is-hidden");if(Z.image&&J.feature_image)if(Z.image.tagName==="IMG"){let W=new Promise((G)=>{if(Z.image.complete)G();else Z.image.onload=G,Z.image.onerror=G});Q.push(W),Z.image.src=J.feature_image,Z.image.alt=J.title}else Z.image.style.backgroundImage=`url(${J.feature_image})`;if(Z.title)Z.title.textContent=J.title;if(Z.excerpt)Z.excerpt.textContent=J.custom_excerpt||J.excerpt||"";if(Z.date)Z.date.textContent=this.formatDate(J.published_at);if(Z.readtime)Z.readtime.textContent=`${J.reading_time} min read`;if(Z.link)Z.link.href=J.url,Z.link.target="_blank",Z.link.rel="noopener noreferrer"}),await Promise.all(Q),window.dispatchEvent(new Event("resize"))}formatDate(Q){return new Date(Q).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}showLoading(){this.loading=!0,this.blogCardWrapper?.classList.add("is-loading")}hideLoading(){this.loading=!1,this.blogCardWrapper?.classList.remove("is-loading")}destroy(){this.posts=[],this.loading=!1,this.isInitialized=!1}}var l7={};w0(l7,{InfrastructureCard:()=>iZ});class iZ{constructor(){this.isInitialized=!1,this.resizeHandler=null,this.hoverTimelines=[],this.infrastructureCardWraps=g.utils.toArray(".infrastructure_card_wrap")}init(){if(this.isInitialized)return;if(!(window.innerWidth<992))this.initDesktopAnimation();else this.infrastructureCardLogosWraps=document.querySelector(".infrastructure_card_logos_wrap"),this.infrastructureCardPlus=document.querySelectorAll(".infrastructure_card_plus"),this.initMobileAnimation();this.bindResize(),this.isInitialized=!0}initDesktopAnimation(){this.cleanup(),this.infrastructureCardWraps.forEach((Q)=>{let Z=Q.querySelectorAll(".infrastructure_card_logos"),$=g.timeline({paused:!0}).fromTo(Z,{y:"0%",opacity:0},{y:"10%",opacity:1,duration:0.6,stagger:{each:0.02,from:"center"},ease:"power2.out"}),J=()=>$.timeScale(1).play(),K=()=>$.timeScale(1.5).reverse();Q.addEventListener("mouseenter",J),Q.addEventListener("mouseleave",K),this.hoverTimelines.push({tl:$,wrap:Q,hoverIn:J,hoverOut:K})})}initMobileAnimation(){this.cleanup(),this.mobileClickHandlers=[],this.infrastructureCardWraps.forEach((Q)=>{let Z=Q.querySelector(".infrastructure_card_logos_wrap"),$=Q.querySelector(".infrastructure_card_plus");if(!Z||!$)return;let J=$.querySelector("svg"),K=J?J.querySelector("path:nth-child(2)"):null;g.set(Z,{height:0});let W=()=>{let G=$.getAttribute("aria-expanded")==="true";if(g.to(Z,{height:G?0:"auto",duration:0.3,ease:"power2.inOut"}),g.to(J,{rotation:G?0:180,duration:0.3,ease:"power2.inOut"}),K)g.to(K,{opacity:G?1:0,duration:0.3,ease:"power2.inOut"});$.setAttribute("aria-expanded",G?"false":"true")};$.addEventListener("click",W),this.mobileClickHandlers.push({cardPlus:$,clickHandler:W})})}bindResize(){this.resizeHandler=this.debounceResize(()=>{this.init()},250),window.addEventListener("resize",this.resizeHandler)}debounceResize(Q,Z){let $=innerWidth,J;return function(...K){clearTimeout(J),J=setTimeout(()=>{if(innerWidth!==$)$=innerWidth,Q.apply(this,K)},Z)}}cleanup(){if(this.hoverTimelines.forEach(({tl:Q,wrap:Z,hoverIn:$,hoverOut:J})=>{Q.kill(),Z.removeEventListener("mouseenter",$),Z.removeEventListener("mouseleave",J)}),this.hoverTimelines=[],this.mobileClickHandlers)this.mobileClickHandlers.forEach(({cardPlus:Q,clickHandler:Z})=>{Q.removeEventListener("click",Z)}),this.mobileClickHandlers=[]}destroy(){if(this.cleanup(),this.resizeHandler)window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null;this.isInitialized=!1}}var s7={};w0(s7,{LiquidityProgress:()=>UW});class UW{constructor(){this.isInitialized=!1,this.scrollTrigger=null,this.timeline=null,this.resizeHandler=null,this.isMobile=!1,this.animatedLines=document.querySelector(".animated-lines"),this.animatedTags=document.querySelector(".animated-tags"),this.tagGroups=g.utils.toArray(".animated-tags > g"),this.mobileLines=document.querySelector("#liquidityLinesMobile"),this.mobileGroups=g.utils.toArray("#liquidityLinesMobile > g")}init(){if(this.isInitialized)return;g.registerPlugin(y),this.checkViewport(),this.initAnimation(),this.bindResize(),this.isInitialized=!0}checkViewport(){this.isMobile=window.innerWidth<=479}initAnimation(){if(this.cleanup(),this.checkViewport(),this.isMobile)this.initMobileAnimation();else this.initDesktopAnimation()}initDesktopAnimation(){if(!this.animatedLines)return;this.timeline=g.timeline().fromTo(this.animatedLines,{webkitMaskPosition:"0% 100%",maskPosition:"0% 100%"},{webkitMaskPosition:"0% 0%",maskPosition:"0% 0%",duration:1,ease:"power2.inOut"}),this.scrollTrigger=y.create({trigger:"#liquiditySection",start:"top 100%",end:"bottom 40%",scrub:1,animation:this.timeline})}initMobileAnimation(){let Q=document.querySelector(".liquidity_mobile_mask");if(!Q)return;this.timeline=g.timeline().fromTo(Q,{clipPath:"inset(0% 0% 100% 0%)"},{clipPath:"inset(0% 0% 0% 0%)",duration:1,ease:"power2.inOut"}),this.scrollTrigger=y.create({trigger:"#liquiditySection",start:"top 50%",end:"bottom 80%",scrub:1,animation:this.timeline})}bindResize(){this.resizeHandler=this.debounceResize(()=>{let Q=this.isMobile;if(this.checkViewport(),Q!==this.isMobile)y.refresh(),this.initAnimation()},250),window.addEventListener("resize",this.resizeHandler)}debounceResize(Q,Z){let $=innerWidth,J;return function(...K){clearTimeout(J),J=setTimeout(()=>{if(innerWidth!==$)$=innerWidth,Q.apply(this,K)},Z)}}cleanup(){if(this.scrollTrigger)this.scrollTrigger.kill(),this.scrollTrigger=null;if(this.timeline)this.timeline.kill(),this.timeline=null}destroy(){if(this.cleanup(),this.resizeHandler)window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null;this.isInitialized=!1}}var i7={};w0(i7,{LogosWheel:()=>zW});g.registerPlugin(y);class zW{constructor(){this.isInitialized=!1,this.scrollTrigger=null,this.timeline=null,this.resizeHandler=null,this.wheelCards=g.utils.toArray(".wheel_card_wrap"),this.currentBreakpoint=null}init(){if(this.isInitialized)return;this.initAnimation(),this.bindResize(),this.isInitialized=!0}initAnimation(){this.cleanup();let Z=window.innerWidth<=768?"mobile":"desktop";if(this.currentBreakpoint===Z&&this.timeline)return;this.currentBreakpoint=Z;let $=document.querySelector("#wheelPath"),J=document.querySelector("#wheelSection");if(!$||!J){console.warn("wheelPath or wheelSection not found");return}requestAnimationFrame(()=>{let K=$.getBBox(),W=$.ownerSVGElement,G=W.getBoundingClientRect(),H=J.getBoundingClientRect(),z=W.viewBox.baseVal,L=G.width/z.width,N=G.height/z.height,U=K.width/2*L,q=(K.x+K.width/2)*L+(G.left-H.left),F=(K.y+K.height/2)*N+(G.top-H.top),M=this.wheelCards.length,X=-Math.PI/2,E=(V,I)=>{let O=V/M*Math.PI*2+X+I;return{x:Math.cos(O)*U+q,y:Math.sin(O)*U+F}};requestAnimationFrame(()=>{g.set(this.wheelCards,{position:"absolute",left:0,top:0,xPercent:-50,yPercent:-50,rotation:0,force3D:!0}),this.wheelCards.forEach((I,O)=>{let Y=E(O,0);g.set(I,{x:Y.x,y:Y.y,force3D:!0})}),this.timeline=g.timeline({defaults:{ease:"none"}});let V=36;for(let I=1;I<=V;I++){let O=I/V*Math.PI*2;this.timeline.to(this.wheelCards,{duration:1/V,x:(Y)=>E(Y,O).x,y:(Y)=>E(Y,O).y,force3D:!0})}this.scrollTrigger=y.create({trigger:"#wheelSection",start:"top 50%",end:"bottom top",scrub:2,animation:this.timeline,fastScrollEnd:!0})})})}bindResize(){this.resizeHandler=this.debounceResize(()=>{let Z=window.innerWidth<=768?"mobile":"desktop";if(this.currentBreakpoint!==Z)this.initAnimation();else y.refresh()},250),window.addEventListener("resize",this.resizeHandler,{passive:!0})}debounceResize(Q,Z){let $=innerWidth,J;return function(...K){clearTimeout(J),J=setTimeout(()=>{if(innerWidth!==$)$=innerWidth,Q.apply(this,K)},Z)}}cleanup(){if(this.scrollTrigger)this.scrollTrigger.kill(),this.scrollTrigger=null;if(this.timeline)this.timeline.kill(),this.timeline=null;g.set(this.wheelCards,{clearProps:"all"})}destroy(){if(this.cleanup(),this.resizeHandler)window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null;this.isInitialized=!1,this.currentBreakpoint=null}}var n7={};w0(n7,{MarketsProgress:()=>nZ});class nZ{constructor(){this.isInitialized=!1,this.scrollTrigger=null,this.timeline=null,this.resizeHandler=null,this.marketsSVGs=g.utils.toArray(".card_markets_svg"),this.marketsContents=g.utils.toArray(".card_markets_content"),this.marketsDot=document.querySelector(".card_markets_dot")}init(){if(this.isInitialized)return;g.registerPlugin(y),this.initAnimation(),this.bindResize(),this.isInitialized=!0}initAnimation(){this.cleanup();let Q=window.innerWidth<992;this.timeline=g.timeline().set(this.marketsSVGs,{color:"#DFDFDF"}).set(this.marketsContents,{opacity:0.5}).fromTo(".card_market_line",Q?{height:"0%",width:"1px"}:{width:"0%",height:"1px"},{...Q?{height:"100%",width:"1px"}:{width:"100%",height:"1px"},transformOrigin:Q?"top center":"left center",duration:1,ease:"power1.out"}).to(this.marketsSVGs[0],{backgroundColor:"var(--swatch--brand-500)",duration:0.2,ease:"power2.out"},0).to(this.marketsContents[0],{opacity:1,duration:0.2,ease:"power2.out"},"<").to(this.marketsSVGs[1],{backgroundColor:"var(--swatch--brand-500)",duration:0.2,ease:"power2.out"},0.25).to(this.marketsContents[1],{opacity:1,duration:0.2,ease:"power2.out"},"<").to(this.marketsSVGs[2],{backgroundColor:"var(--swatch--brand-500)",duration:0.2,ease:"power2.out"},0.6).to(this.marketsContents[2],{opacity:1,duration:0.2,ease:"power2.out"},"<").to(this.marketsDot,{scale:0,marginLeft:Q?"0rem":"-1rem",marginTop:Q?"-.2rem":"0rem",duration:0.2,ease:"power2.out"},">");let Z=y.create({trigger:"#marketsSection",start:Q?"top 50%":"0% 60%",end:"bottom center",scrub:!0,animation:this.timeline})}bindResize(){this.resizeHandler=this.debounceResize(()=>{y.refresh(),this.initAnimation()},250),window.addEventListener("resize",this.resizeHandler)}debounceResize(Q,Z){let $=innerWidth,J;return function(...K){clearTimeout(J),J=setTimeout(()=>{if(innerWidth!==$)$=innerWidth,Q.apply(this,K)},Z)}}cleanup(){if(this.scrollTrigger)this.scrollTrigger.kill(),this.scrollTrigger=null;if(this.timeline)this.timeline.kill(),this.timeline=null}destroy(){if(this.cleanup(),this.resizeHandler)window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null;this.isInitialized=!1}}var o7={};w0(o7,{Marquee:()=>LW});class LW{constructor(){this.isInitialized=!1,this.resizeHandler=null,this.marquees=new Map,this.prefersReducedMotion=!1,this.isMobile=!1}init(){if(this.isInitialized)return;this.prefersReducedMotion=window.matchMedia("(prefers-reduced-motion: reduce)").matches,this.isMobile=window.innerWidth<=768||/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.resizeHandler=this.debounceOnWidthChange(()=>{this.isMobile=window.innerWidth<=768,this.initMarquees()},250),this.initMarquees(),window.addEventListener("resize",this.resizeHandler),this.isInitialized=!0}initMarquees(){document.querySelectorAll("[data-marquee]").forEach((Q,Z)=>{if(this.marquees.has(Q))this.destroyMarquee(Q);let $=this.isMobile?100:0;setTimeout(()=>{let J=new NW(Q,Z,{prefersReducedMotion:this.prefersReducedMotion,isMobile:this.isMobile});this.marquees.set(Q,J)},$)})}destroyMarquee(Q){let Z=this.marquees.get(Q);if(Z)Z.destroy(),this.marquees.delete(Q)}debounceOnWidthChange(Q,Z){let $=innerWidth,J;return function(...K){clearTimeout(J),J=setTimeout(()=>{if(innerWidth!==$)$=innerWidth,Q.apply(this,K)},Z)}}destroy(){if(this.marquees.forEach((Q,Z)=>{this.destroyMarquee(Z)}),this.resizeHandler)window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null;this.isInitialized=!1}}class NW{constructor(Q,Z,$={}){this.container=Q,this.list=Q.querySelector("[data-marquee-list]"),this.index=Z,this.options=$,this.timeline=null,this.originalItems=[],this.init()}init(){if(this.options.prefersReducedMotion)return;this.setupMarquee()}setupMarquee(){if(!this.list)return;if(this.container.offsetHeight,this.originalItems=Array.from(this.list.querySelectorAll("[data-marquee-item]")),this.originalItems.length===0)return;this.createSeamlessLoop()}createSeamlessLoop(){Array.from(this.list.querySelectorAll("[data-marquee-item]")).forEach((G)=>{if(G.getAttribute("data-marquee-duplicate")==="true")G.remove()});let Z=this.container.getBoundingClientRect().width,$=0;this.originalItems.forEach((G)=>{let H=G.getBoundingClientRect(),z=getComputedStyle(G),L=parseFloat(z.marginLeft)||0,N=parseFloat(z.marginRight)||0;$+=H.width+L+N});let J=this.options.isMobile?Z*4:Z*3,K=Math.max(1,Math.ceil(J/$));for(let G=0;G{let z=H.cloneNode(!0);z.setAttribute("data-marquee-duplicate","true"),this.list.appendChild(z)});let W=Array.from(this.list.querySelectorAll("[data-marquee-item]"));this.createSimpleAnimation(W,$)}createSimpleAnimation(Q,Z){let J=parseFloat(this.container.getAttribute("data-marquee-speed"))||1;if(this.options.isMobile)J*=0.5;let K=Z/100/J;if(this.timeline)this.timeline.kill();g.set(this.list,{x:0}),this.timeline=g.to(this.list,{x:-Z,duration:K,ease:"none",repeat:-1,onRepeat:()=>{g.set(this.list,{x:0})}})}destroy(){if(this.timeline)this.timeline.kill(),this.timeline=null;if(this.list)g.set(this.list,{x:0}),Array.from(this.list.querySelectorAll("[data-marquee-item]")).forEach((Z)=>{if(Z.getAttribute("data-marquee-duplicate")==="true")Z.remove()});this.originalItems=[]}}var a7={};w0(a7,{default:()=>FW});function FW(Q,Z){_Z.on("PAGE",($)=>{console.log("page changed")})}var r7={};w0(r7,{PurposeProgress:()=>qW});class qW{constructor(){this.isInitialized=!1,this.scrollTrigger=null,this.timeline=null,this.resizeHandler=null,this.purposeSVGs=g.utils.toArray(".purpose_card_svg"),this.purposeContents=g.utils.toArray(".purpose_card_content"),this.purposeDot=document.querySelector(".purpose_progress_dot")}init(){if(this.isInitialized)return;g.registerPlugin(y),this.initAnimation(),this.bindResize(),this.isInitialized=!0}initAnimation(){this.cleanup(),this.timeline=g.timeline().set(this.purposeSVGs,{color:"#DFDFDF"}).set(this.purposeContents,{opacity:0.5}).fromTo(".purpose_progress_line",{height:"0%"},{height:"100%",transformOrigin:"top center",duration:1,ease:"power1.out"}).to(this.purposeSVGs[0],{color:"var(--swatch--brand-500)",duration:0.2,ease:"power2.out"},0).to(this.purposeSVGs[0].querySelector("path"),{stroke:"#FFFFFF",duration:0.2,ease:"power2.out"},0).to(this.purposeContents[0],{opacity:1,duration:0.2,ease:"power2.out"},"<").to(this.purposeSVGs[1],{color:"var(--swatch--brand-500)",duration:0.2,ease:"power2.out"},0.1).to(this.purposeSVGs[1].querySelector("path"),{stroke:"#FFFFFF",duration:0.2,ease:"power2.out"},"<").to(this.purposeContents[1],{opacity:1,duration:0.2,ease:"power2.out"},"<").to(this.purposeSVGs[2],{color:"var(--swatch--brand-500)",duration:0.2,ease:"power2.out"},0.4).to(this.purposeSVGs[2].querySelector("path"),{stroke:"#FFFFFF",duration:0.2,ease:"power2.out"},"<").to(this.purposeContents[2],{opacity:1,duration:0.2,ease:"power2.out"},"<").to(this.purposeDot,{scale:0,marginTop:"-1rem",duration:0.2,ease:"power2.out"},">.1");let Q=y.create({trigger:".purpose_progress_wrap",start:"top 55%",end:"bottom center",scrub:!0,animation:this.timeline})}bindResize(){this.resizeHandler=this.debounceResize(()=>{y.refresh(),this.initAnimation()},250),window.addEventListener("resize",this.resizeHandler)}debounceResize(Q,Z){let $=innerWidth,J;return function(...K){clearTimeout(J),J=setTimeout(()=>{if(innerWidth!==$)$=innerWidth,Q.apply(this,K)},Z)}}cleanup(){if(this.scrollTrigger)this.scrollTrigger.kill(),this.scrollTrigger=null;if(this.timeline)this.timeline.kill(),this.timeline=null}destroy(){if(this.cleanup(),this.resizeHandler)window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null;this.isInitialized=!1}}var $K={};w0($K,{default:()=>VW});/*! * SplitText 3.13.0 * https://gsap.com * * @license Copyright 2025, GreenSock. All rights reserved. Subject to the terms at https://gsap.com/standard-license. * @author: Jack Doyle */var dJ,i8,e7,wH=()=>e7||o8.register(window.gsap),MW=typeof Intl<"u"?new Intl.Segmenter:0,oZ=(Q)=>typeof Q==="string"?oZ(document.querySelectorAll(Q)):("length"in Q)?Array.from(Q):[Q],XW=(Q)=>oZ(Q).filter((Z)=>Z instanceof HTMLElement),JK=[],t7=function(){},fH=/\s+/g,OW=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"),EW={left:0,top:0,width:0,height:0},YW=(Q,Z)=>{if(Z){let $=new Set(Q.join("").match(Z)||JK),J=Q.length,K,W,G,H;if($.size)while(--J>-1){W=Q[J];for(G of $)if(G.startsWith(W)&&G.length>W.length){K=0,H=W;while(G.startsWith(H+=Q[J+ ++K])&&H.lengthwindow.getComputedStyle(Q).display==="inline"&&(Q.style.display="inline-block"),n8=(Q,Z,$)=>Z.insertBefore(typeof Q==="string"?document.createTextNode(Q):Q,$),ZK=(Q,Z,$)=>{let J=Z[Q+"sClass"]||"",{tag:K="div",aria:W="auto",propIndex:G=!1}=Z,H=Q==="line"?"block":"inline-block",z=J.indexOf("++")>-1,L=(N)=>{let U=document.createElement(K),q=$.length+1;if(J&&(U.className=J+(z?" "+J+q:"")),G&&U.style.setProperty("--"+Q,q+""),W!=="none"&&U.setAttribute("aria-hidden","true"),K!=="span")U.style.position="relative",U.style.display=H;return U.textContent=N,$.push(U),U};return z&&(J=J.replace("++","")),L.collection=$,L},hH=(Q,Z,$,J)=>{let K=ZK("line",$,J),W=window.getComputedStyle(Q).textAlign||"left";return(G,H)=>{let z=K("");z.style.textAlign=W,Q.insertBefore(z,Z[G]);for(;G{var N;let U=Array.from(Q.childNodes),q=0,{wordDelimiter:F,reduceWhiteSpace:M=!0,prepareText:X}=Z,E=Q.getBoundingClientRect(),V=E,I=!M&&window.getComputedStyle(Q).whiteSpace.substring(0,3)==="pre",O=0,Y=$.collection,R,D,j,C,B,k,A,P,T,h,f,x,b,_,m,S,c,t;if(typeof F==="object")j=F.delimiter||F,D=F.replaceWith||"";else D=F===""?"":F||" ";R=D!==" ";for(;q-1)k=Y[Y.length-1],k.appendChild(document.createTextNode(J?"":S));else k=$(J?"":S),n8(k,Q,C),O&&T===1&&!A&&k.insertBefore(O,k.firstChild);if(J){f=MW?YW([...MW.segment(S)].map((o)=>o.segment),z):S.match(H)||JK;for(t=0;tV.top&&h.left<=V.left){x=Q.cloneNode(),b=Q.childNodes[0];while(b&&b!==k)_=b,b=b.nextSibling,x.appendChild(_);Q.parentNode.insertBefore(x,Q),K&&DW(x)}V=h}if(T=B.length?" ":R&&S.slice(-1)===" "?" "+D:D,Q,C)}}Q.removeChild(C),O=0}else if(C.nodeType===1){if(G&&G.indexOf(C)>-1)Y.indexOf(C.previousSibling)>-1&&Y[Y.length-1].appendChild(C),O=C;else RW(C,Z,$,J,K,W,G,H,z,!0),O=0;K&&DW(C)}},IW=class Q{constructor(Z,$){this.isSplit=!1,wH(),this.elements=XW(Z),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=$,this._split=()=>this.isSplit&&this.split(this.vars);let J=[],K,W=()=>{let G=J.length,H;while(G--){H=J[G];let z=H.element.offsetWidth;if(z!==H.width){H.width=z,this._split();return}}};this._data={orig:J,obs:typeof ResizeObserver<"u"&&new ResizeObserver(()=>{clearTimeout(K),K=setTimeout(W,200)})},t7(this),this.split($)}split(Z){this.isSplit&&this.revert(),this.vars=Z=Z||this.vars||{};let{type:$="chars,words,lines",aria:J="auto",deepSlice:K=!0,smartWrap:W,onSplit:G,autoSplit:H=!1,specialChars:z,mask:L}=this.vars,N=$.indexOf("lines")>-1,U=$.indexOf("chars")>-1,q=$.indexOf("words")>-1,F=U&&!q&&!N,M=z&&("push"in z?new RegExp("(?:"+z.join("|")+")","gu"):z),X=M?new RegExp(M.source+"|"+OW.source,"gu"):OW,E=!!Z.ignore&&XW(Z.ignore),{orig:V,animTime:I,obs:O}=this._data,Y;if(U||q||N)this.elements.forEach((R,D)=>{V[D]={element:R,html:R.innerHTML,ariaL:R.getAttribute("aria-label"),ariaH:R.getAttribute("aria-hidden")},J==="auto"?R.setAttribute("aria-label",(R.textContent||"").trim()):J==="hidden"&&R.setAttribute("aria-hidden","true");let j=[],C=[],B=[],k=U?ZK("char",Z,j):null,A=ZK("word",Z,C),P,T,h,f;if(RW(R,Z,A,k,F,K&&(N||F),E,X,M,!1),N){let x=oZ(R.childNodes),b=hH(R,x,Z,B),_,m=[],S=0,c=x.map((o)=>o.nodeType===1?o.getBoundingClientRect():EW),t=EW;for(P=0;Pt.top&&c[P].left<=t.left)b(S,P),S=P;t=c[P]}S{var d;return(d=o.parentNode)==null?void 0:d.removeChild(o)})}if(!q){for(P=0;P{let D=R.cloneNode();return R.replaceWith(D),D.appendChild(R),R.className&&(D.className=R.className.replace(/(\b\w+\b)/g,"$1-mask")),D.style.overflow="clip",D}));if(this.isSplit=!0,i8&&(H?i8.addEventListener("loadingdone",this._split):i8.status==="loading"&&console.warn("SplitText called before fonts loaded")),(Y=G&&G(this))&&Y.totalTime)this._data.anim=I?Y.totalTime(I):Y;return N&&H&&this.elements.forEach((R,D)=>{V[D].width=R.offsetWidth,O&&O.observe(R)}),this}revert(){var Z,$;let{orig:J,anim:K,obs:W}=this._data;if(W&&W.disconnect(),J.forEach(({element:G,html:H,ariaL:z,ariaH:L})=>{G.innerHTML=H,z?G.setAttribute("aria-label",z):G.removeAttribute("aria-label"),L?G.setAttribute("aria-hidden",L):G.removeAttribute("aria-hidden")}),this.chars.length=this.words.length=this.lines.length=J.length=this.masks.length=0,this.isSplit=!1,i8==null||i8.removeEventListener("loadingdone",this._split),K)this._data.animTime=K.totalTime(),K.revert();return($=(Z=this.vars).onRevert)==null||$.call(Z,this),this}static create(Z,$){return new Q(Z,$)}static register(Z){if(dJ=dJ||Z||window.gsap,dJ)oZ=dJ.utils.toArray,t7=dJ.core.context||t7;if(!e7&&window.innerWidth>0)i8=document.fonts,e7=!0}};IW.version="3.13.0";var o8=IW;function xH(Q){Q.setAttribute("aria-hidden","true"),Q.style.position="absolute",Q.style.left="-9999px",Q.style.top="-9999px",Q.style.width="1px"}var bH=(Q)=>{let Z=Q.textContent;Q.textContent="";let $=document.createElement("span");$.textContent=Z,Q.appendChild($),xH($);let J=document.createElement("span");return J.setAttribute("data-css","overflow-clip"),J.textContent=Z,J.setAttribute("aria-hidden","true"),Q.appendChild(J),new o8(J,{type:"chars"})};function VW(Q){let Z=bH(Q);k6(Q,{autoStart:!0,callback:({isIn:$})=>{if($)p1.to(Z.chars,{yPercent:0,stagger:0.02});else p1.killTweensOf(Z.chars),p1.set(Z.chars,{yPercent:100})}})}var KK={};w0(KK,{Tabs:()=>jW});g.registerPlugin(y);class jW{constructor(){this.isInitialized=!1,this.tabs=new Map}init(){if(this.isInitialized)return;this.initTabs(),this.isInitialized=!0}initTabs(){document.querySelectorAll(".tab_wrap").forEach((Q,Z)=>{if(this.tabs.has(Q))this.destroyTab(Q);let $=new BW(Q,Z);this.tabs.set(Q,$)})}destroyTab(Q){let Z=this.tabs.get(Q);if(Z)Z.destroy(),this.tabs.delete(Q)}destroy(){this.tabs.forEach((Q,Z)=>{this.destroyTab(Z)}),this.isInitialized=!1}}class BW{constructor(Q,Z){this.container=Q,this.index=Z,this.activeIndex=0,this.animating=!1,this.canPlay=!0,this.autoplayTl=null,this.timelines=[],this.eventListeners=[],this.loopControls=Q.getAttribute("data-loop-controls")==="true",this.slideTabs=Q.getAttribute("data-slide-tabs")==="true",this.pauseOnHover=Q.getAttribute("data-pause-on-hover")==="true",this.autoplay=Number(Q.getAttribute("data-autoplay-duration"))||0,this.duration=Number(Q.getAttribute("data-duration"))||0.3,this.buttonList=Q.querySelector(".tab_button_list"),this.panelList=Q.querySelector(".tab_content_list"),this.previousButton=Q.querySelector('[data-tab="previous"] button'),this.nextButton=Q.querySelector('[data-tab="next"] button'),this.toggleWrap=Q.querySelector('[data-tab-button="toggle"]'),this.toggleButton=Q.querySelector('[data-tab-button="toggle"] button'),this.init()}init(){if(this.container.dataset.scriptInitialized)return;if(this.container.dataset.scriptInitialized="true",this.removeCMSList(this.buttonList),this.removeCMSList(this.panelList),this.buttonItems=Array.from(this.buttonList.children),this.panelItems=Array.from(this.panelList.children),!this.buttonList||!this.panelList||!this.buttonItems.length||!this.panelItems.length){console.warn("Missing elements in:",this.container);return}this.setupAccessibility(),this.setupTabs(),this.makeActive(0,!1,!1),this.setupNavigation(),this.setupAutoplay()}removeCMSList(Q){if(!Q)return;let Z=Array.from(Q.children).find((K)=>K.classList.contains("w-dyn-list"));if(!Z)return;let $=Z?.firstElementChild?.children;if(!$)return;let J=[...Q.children];[...$].forEach((K)=>{if(K.firstElementChild)Q.appendChild(K.firstElementChild)}),J.forEach((K)=>K.remove())}setupAccessibility(){this.panelItems.forEach((Q)=>{Q.style.display="none",Q.setAttribute("role","tabpanel")}),this.panelList.removeAttribute("role"),this.buttonList.setAttribute("role","tablist"),this.buttonItems.forEach((Q)=>{Q.setAttribute("role","tab")})}setupTabs(){this.buttonItems.forEach((Q,Z)=>{let $=this.container.getAttribute("data-tab-component-id");$=$?$.toLowerCase().replaceAll(" ","-"):this.index+1;let J=Q.getAttribute("data-tab-item-id");if(J=J?J.toLowerCase().replaceAll(" ","-"):Z+1,Q.setAttribute("id",`tab-button-${$}-${J}`),Q.setAttribute("aria-controls",`tab-panel-${$}-${J}`),this.panelItems[Z]?.setAttribute("id",`tab-panel-${$}-${J}`),this.panelItems[Z]?.setAttribute("aria-labelledby",Q.id),new URLSearchParams(location.search).get("tab-id")===`${$}-${J}`)this.makeActive(Z),this.autoplay=0,this.container.scrollIntoView({behavior:"smooth",block:"start"}),history.replaceState({},"",((G)=>(G.searchParams.delete("tab-id"),G))(new URL(location.href)));let K=()=>this.makeActive(Z),W=(G)=>{if(["ArrowRight","ArrowDown"].includes(G.key))this.updateIndex(1,!0);else if(["ArrowLeft","ArrowUp"].includes(G.key))this.updateIndex(-1,!0)};Q.addEventListener("click",K),Q.addEventListener("keydown",W),this.eventListeners.push({element:Q,type:"click",handler:K},{element:Q,type:"keydown",handler:W})})}setupNavigation(){if(this.nextButton){let Q=()=>this.updateIndex(1);this.nextButton.addEventListener("click",Q),this.eventListeners.push({element:this.nextButton,type:"click",handler:Q})}if(this.previousButton){let Q=()=>this.updateIndex(-1);this.previousButton.addEventListener("click",Q),this.eventListeners.push({element:this.previousButton,type:"click",handler:Q})}}setupAutoplay(){if(this.autoplay===0||typeof g>"u")return;this.autoplayTl=g.timeline({repeat:-1}).fromTo(this.container,{"--progress":0},{onComplete:()=>this.updateIndex(1,!1,!1),"--progress":1,ease:"none",duration:this.autoplay});let Q=!1,Z=!1,$=!1,J=!0,K=()=>{if($||!J||this.canPlay||Q||Z)this.autoplayTl.pause();else this.autoplayTl.play()},W=()=>{if(this.canPlay=!this.canPlay,this.toggleButton?.setAttribute("aria-pressed",!this.canPlay?"true":"false"),this.toggleWrap?.classList.toggle("is-pressed",!this.canPlay),!this.canPlay)Q=Z=$=!1;K()};if(W(),this.toggleButton){let N=()=>W();this.toggleButton.addEventListener("click",N),this.eventListeners.push({element:this.toggleButton,type:"click",handler:N})}let G=(N)=>{$=N.matches,K(),this.canPlay=!N.matches,W()},H=window.matchMedia("(prefers-reduced-motion: reduce)");if(G(H),H.addEventListener("change",G),this.pauseOnHover){let N=()=>{Q=!0,K()},U=()=>{Z=!1,Q=!1,K()};this.container.addEventListener("mouseenter",N),this.container.addEventListener("mouseleave",U),this.eventListeners.push({element:this.container,type:"mouseenter",handler:N},{element:this.container,type:"mouseleave",handler:U})}let z=()=>{Z=!0,K()},L=(N)=>{if(!N.relatedTarget||!this.container.contains(N.relatedTarget))Z=!1,K()};this.container.addEventListener("focusin",z),this.container.addEventListener("focusout",L),this.eventListeners.push({element:this.container,type:"focusin",handler:z},{element:this.container,type:"focusout",handler:L}),this.intersectionObserver=new IntersectionObserver((N)=>{J=N[0].isIntersecting,K()},{threshold:0}),this.intersectionObserver.observe(this.container)}makeActive(Q,Z=!1,$=!0,J=!0){if(this.animating)return;if(this.buttonItems.forEach((H,z)=>{H.classList.toggle("is-active",z===Q),H.setAttribute("aria-selected",z===Q?"true":"false"),H.setAttribute("tabindex",z===Q?"0":"-1")}),this.panelItems.forEach((H,z)=>{H.classList.toggle("is-active",z===Q)}),typeof y<"u")y.refresh();if(this.nextButton)this.nextButton.disabled=Q===this.buttonItems.length-1&&!this.loopControls;if(this.previousButton)this.previousButton.disabled=Q===0&&!this.loopControls;if(Z)this.buttonItems[Q].focus();let K=this.panelItems[this.activeIndex],W=this.panelItems[Q],G=this.activeIndex>Q?-1:1;if(typeof g<"u"&&$&&this.activeIndex!==Q){if(this.autoplayTl&&!this.canPlay&&typeof this.autoplayTl.restart==="function")this.autoplayTl.restart();this.animating=!0;let H=g.timeline({onComplete:()=>this.animating=!1,defaults:{duration:this.duration,ease:"power1.out"}});if(this.timelines.push(H),this.slideTabs){if(H.set(W,{display:"block",position:"relative"}),K)H.set(K,{position:"absolute",top:0,left:0,width:"100%"}),H.fromTo(K,{xPercent:0},{xPercent:-120*G});if(H.fromTo(W,{xPercent:120*G},{xPercent:0},"<"),K)H.set(K,{display:"none"})}else{if(K)H.to(K,{opacity:0}),H.set(K,{display:"none"});H.set(W,{display:"block"}),H.fromTo(W,{opacity:0},{opacity:1})}}else{if(K)K.style.display="none";if(W)W.style.display="block"}this.buttonList.scrollTo({left:this.buttonItems[Q].offsetLeft-this.buttonList.clientWidth/2,behavior:"smooth"}),this.activeIndex=Q}updateIndex(Q,Z=!1,$=!0){let J=(this.activeIndex+Q+this.buttonItems.length)%this.buttonItems.length;this.makeActive(J,Z,!0,$)}destroy(){if(this.autoplayTl)this.autoplayTl.kill(),this.autoplayTl=null;if(this.timelines.forEach((Q)=>{if(Q)Q.kill()}),this.timelines=[],this.eventListeners.forEach(({element:Q,type:Z,handler:$})=>{Q.removeEventListener(Z,$)}),this.eventListeners=[],this.intersectionObserver)this.intersectionObserver.disconnect(),this.intersectionObserver=null;delete this.container.dataset.scriptInitialized}}var QK={};w0(QK,{default:()=>CW});function CW(Q,Z){}var WK={};w0(WK,{TextAnimations:()=>rZ});/*! * CustomEase 3.13.0 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var C1,AW,SW=function(){return C1||typeof window<"u"&&(C1=window.gsap)&&C1.registerPlugin&&C1},kW=function(){if(C1=SW(),C1)C1.registerEase("_CE",I8.create),AW=1;else console.warn("Please gsap.registerPlugin(CustomEase)")},vH=100000000000000000000,aZ=function(Z){return~~(Z*1000+(Z<0?-0.5:0.5))/1000},yH=1,_H=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,gH=/[cLlsSaAhHvVtTqQ]/g,uH=function(Z){var $=Z.length,J=vH,K;for(K=1;K<$;K+=6)+Z[K]L*(C*C+B*B))P=N.length,Q(Z,$,q,F,I,O,D,j,L,N,U),Q(D,j,Y,R,E,V,H,z,L,N,U+1+(N.length-P));return N},I8=function(){function Q($,J,K){AW||kW(),this.id=$,yH&&this.setData(J,K)}var Z=Q.prototype;return Z.setData=function(J,K){K=K||{},J=J||"0,0,1,1";var W=J.match(_H),G=1,H=[],z=[],L=K.precision||1,N=L<=1,U,q,F,M,X,E,V,I,O;if(this.data=J,gH.test(J)||~J.indexOf("M")&&J.indexOf("C")<0)W=Y8(J)[0];if(U=W.length,U===4)W.unshift(0,0),W.push(1,1),U=8;else if((U-2)%6)throw"Invalid CustomEase";if(+W[0]!==0||+W[U-2]!==1)mH(W,K.height,K.originY);this.segment=W;for(M=2;MI.x||I.y!==V.y&&I.x===V.x||V===I)&&V.x<=1){if(I.cx=V.x-I.x,I.cy=V.y-I.y,I.n=V,I.nx=V.x,N&&M>1&&Math.abs(I.cy/I.cx-H[M-2].cy/H[M-2].cx)>2)N=0;if(I.cxV||q===E-1)N.push(I,O),U=(X-O)/(M-I);I=M,O=X}N="M"+N.join(",")}return L&&L.setAttribute("d",N),N},Q}();I8.version="3.13.0";I8.headless=!0;SW()&&C1.registerPlugin(I8);g.registerPlugin(y,o8,I8);class rZ{constructor(Q="[data-split-inview]"){this.isInitialized=!1,this.scrollTriggers=[],this.splitInstances=new WeakMap,this.selector=Q,I8.create("smooth","0.215, 0.61, 0.355, 1")}async init(){if(this.isInitialized)return;await document.fonts.ready,this.initSplitInview(),this.isInitialized=!0}destroy(){this.scrollTriggers.forEach((Q)=>Q.kill()),this.scrollTriggers=[];for(let[Q,Z]of this.splitInstances.entries())Z.revert(),this.splitInstances.delete(Q);this.isInitialized=!1}refresh(){y.refresh()}initSplitInview(){let Q=document.querySelectorAll(this.selector);if(!Q.length)return;let Z=[];if(Q.forEach((J)=>{if(J.dataset.splitInviewInitialized==="true")return;Array.from(J.children).forEach((W)=>{if(W.classList.contains("u-sr-only"))return;if(W.tagName.toLowerCase()==="ul")return;if(W.tagName.toLowerCase()==="p")this.addAccessibleFallback(W);Z.push(W)}),J.dataset.splitInviewInitialized="true"}),!Z.length)return;let $=new Map;Z.forEach((J)=>{$.set(J,J.getBoundingClientRect())}),Promise.resolve().then(()=>{Z.forEach((J)=>{let K=J.tagName.toLowerCase(),W=this.getAnimationParams(K);if(this.splitInstances.has(J))this.splitInstances.get(J).revert();let G=o8.create(J,{type:"lines",mask:"lines",tag:"span",linesClass:"split-line",aria:"hidden"});this.splitInstances.set(J,G),this.setupViewportAnimations(J,G,W)})})}getAnimationParams(Q){if(Q.startsWith("h"))return{y:-120,duration:0.6,stagger:0.072,ease:"smooth"};if(Q==="p")return{y:120,duration:0.6,stagger:0.072,ease:"smooth"};return{y:100,duration:0.55,stagger:0.06,ease:"smooth"}}setupViewportAnimations(Q,Z,$){let J=g.matchMedia();J.add("(min-width: 992px)",()=>{let K=g.timeline({scrollTrigger:{trigger:Q,toggleClass:"is-inview",start:"top 85%",once:!0}});return K.fromTo(Z.lines,{y:$.y},{y:0,duration:$.duration,stagger:$.stagger,ease:$.ease}),this.scrollTriggers.push(K.scrollTrigger),()=>{g.set(Z.lines,{clearProps:"all"})}}),J.add("(max-width: 991px)",()=>{return g.set(Z.lines,{y:0}),()=>g.set(Z.lines,{clearProps:"all"})})}addAccessibleFallback(Q){let Z=Q.textContent.trim();if(!Z)return;let $=document.createElement("span");$.className="u-sr-only",$.textContent=Z,Q.parentNode.insertBefore($,Q),Q.setAttribute("aria-hidden","true")}}var GK={"./../accordion.js":D7,"./../blog-toc.js":V7,"./../card-border.js":j7,"./../coins-animation.js":B7,"./../coins-gravity.js":k7,"./../counter.js":A7,"./../cycle.ts":S7,"./../dots-animation.js":d7,"./../form.ts":c7,"./../ghost-posts.js":p7,"./../infrastructure-card.js":l7,"./../liquidity-progress.js":s7,"./../logos-wheel.js":i7,"./../markets-progress.js":n7,"./../marquee.js":o7,"./../nav.ts":a7,"./../purpose-progress.js":r7,"./../split.ts":$K,"./../tab.js":KK,"./../test.ts":QK,"./../text-animations.js":WK};function PW(Q="module"){return Array.from(document.querySelectorAll(`[data-${Q}]`)).map((Z)=>{let $=Z,J=$.dataset[Q];if($._moduleInitialized)return null;let K=GK[`./../${J}.ts`]?`./../${J}.ts`:`./../${J}.js`;if(GK[K]){let W=GK[K].default;if(typeof W==="function")try{return $._moduleInitialized=!0,W($,$.dataset)}catch(G){return delete $._moduleInitialized,console.warn(`Failed to call default function for ${Q} "${J}":`,G),null}else return console.warn(`Default export is not a function for ${Q} "${J}"`),null}else return console.warn(`${Q} not found: "${J}"`),null}).filter((Z)=>Z!==null)}PW();C6();V6();var cH=new rZ;cH.init();var pH=new xZ;pH.init();var lH=new vZ;lH.init();var sH=new yZ("riveFooter","footerSection",-0.8,"top bottom","bottom 20%");sH.init();var iH=new nZ;iH.init();var nH=new iZ;nH.init();history.scrollRestoration="manual";window.scrollTo(0,0);})(); //# debugId=FB19C1C5FEDF4CEC64756E2164756E21