@webmate-studio/builder 0.2.54 → 0.2.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gsap-runtime.min.js +43 -0
- package/dist/motion-runtime.min.js +1 -0
- package/package.json +9 -3
- package/src/build.js +9 -118
- package/src/motion-runtime.js +238 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
(()=>{function rr(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function Co(a,e){a.prototype=Object.create(e.prototype),a.prototype.constructor=a,a.__proto__=e}var _t={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},ni={duration:.5,overwrite:!1,delay:0},ms,Ie,ae,Pt=1e8,re=1/Pt,os=Math.PI*2,pu=os/4,gu=0,Po=Math.sqrt,mu=Math.cos,yu=Math.sin,Pe=function(e){return typeof e=="string"},de=function(e){return typeof e=="function"},nr=function(e){return typeof e=="number"},yn=function(e){return typeof e>"u"},Ht=function(e){return typeof e=="object"},ht=function(e){return e!==!1},ys=function(){return typeof window<"u"},ln=function(e){return de(e)||Pe(e)},Oo=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Ge=Array.isArray,as=/(?:-?\.?\d|\.)+/gi,vs=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Ir=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,jn=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,xs=/[+-]=-?[.\d]+/,Mo=/[^,'"\[\]\s]+/gi,vu=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,le,Gt,us,ws,vt={},_n={},Do,Eo=function(e){return(_n=si(e,vt))&&qe},vn=function(e,r){return console.warn("Invalid property",e,"set to",r,"Missing plugin? gsap.registerPlugin()")},Ai=function(e,r){return!r&&console.warn(e)},Ao=function(e,r){return e&&(vt[e]=r)&&_n&&(_n[e]=r)||vt},Ri=function(){return 0},xu={suppressEvents:!0,isStart:!0,kill:!1},fn={suppressEvents:!0,kill:!1},wu={suppressEvents:!0},Ts={},vr=[],ls={},Ro,ft={},es={},vo=30,cn=[],bs="",Ss=function(e){var r=e[0],t,i;if(Ht(r)||de(r)||(e=[e]),!(t=(r._gsap||{}).harness)){for(i=cn.length;i--&&!cn[i].targetTest(r););t=cn[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new Os(e[i],t)))||e.splice(i,1);return e},xr=function(e){return e._gsap||Ss(Ot(e))[0]._gsap},ks=function(e,r,t){return(t=e[r])&&de(t)?e[r]():yn(t)&&e.getAttribute&&e.getAttribute(r)||t},et=function(e,r){return(e=e.split(",")).forEach(r)||e},pe=function(e){return Math.round(e*1e5)/1e5||0},be=function(e){return Math.round(e*1e7)/1e7||0},Nr=function(e,r){var t=r.charAt(0),i=parseFloat(r.substr(2));return e=parseFloat(e),t==="+"?e+i:t==="-"?e-i:t==="*"?e*i:e/i},Tu=function(e,r){for(var t=r.length,i=0;e.indexOf(r[i])<0&&++i<t;);return i<t},dn=function(){var e=vr.length,r=vr.slice(0),t,i;for(ls={},vr.length=0,t=0;t<e;t++)i=r[t],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},Cs=function(e){return!!(e._initted||e._startAt||e.add)},Fo=function(e,r,t,i){vr.length&&!Ie&&dn(),e.render(r,t,i||!!(Ie&&r<0&&Cs(e))),vr.length&&!Ie&&dn()},zo=function(e){var r=parseFloat(e);return(r||r===0)&&(e+"").match(Mo).length<2?r:Pe(e)?e.trim():e},Lo=function(e){return e},xt=function(e,r){for(var t in r)t in e||(e[t]=r[t]);return e},bu=function(e){return function(r,t){for(var i in t)i in r||i==="duration"&&e||i==="ease"||(r[i]=t[i])}},si=function(e,r){for(var t in r)e[t]=r[t];return e},xo=function a(e,r){for(var t in r)t!=="__proto__"&&t!=="constructor"&&t!=="prototype"&&(e[t]=Ht(r[t])?a(e[t]||(e[t]={}),r[t]):r[t]);return e},pn=function(e,r){var t={},i;for(i in e)i in r||(t[i]=e[i]);return t},Mi=function(e){var r=e.parent||le,t=e.keyframes?bu(Ge(e.keyframes)):xt;if(ht(e.inherit))for(;r;)t(e,r.vars.defaults),r=r.parent||r._dp;return e},Su=function(e,r){for(var t=e.length,i=t===r.length;i&&t--&&e[t]===r[t];);return t<0},Io=function(e,r,t,i,n){t===void 0&&(t="_first"),i===void 0&&(i="_last");var s=e[i],o;if(n)for(o=r[n];s&&s[n]>o;)s=s._prev;return s?(r._next=s._next,s._next=r):(r._next=e[t],e[t]=r),r._next?r._next._prev=r:e[i]=r,r._prev=s,r.parent=r._dp=e,r},xn=function(e,r,t,i){t===void 0&&(t="_first"),i===void 0&&(i="_last");var n=r._prev,s=r._next;n?n._next=s:e[t]===r&&(e[t]=s),s?s._prev=n:e[i]===r&&(e[i]=n),r._next=r._prev=r.parent=null},wr=function(e,r){e.parent&&(!r||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Fr=function(e,r){if(e&&(!r||r._end>e._dur||r._start<0))for(var t=e;t;)t._dirty=1,t=t.parent;return e},ku=function(e){for(var r=e.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return e},fs=function(e,r,t,i){return e._startAt&&(Ie?e._startAt.revert(fn):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(r,!0,i))},Cu=function a(e){return!e||e._ts&&a(e.parent)},wo=function(e){return e._repeat?oi(e._tTime,e=e.duration()+e._rDelay)*e:0},oi=function(e,r){var t=Math.floor(e=be(e/r));return e&&t===e?t-1:t},gn=function(e,r){return(e-r._start)*r._ts+(r._ts>=0?0:r._dirty?r.totalDuration():r._tDur)},wn=function(e){return e._end=be(e._start+(e._tDur/Math.abs(e._ts||e._rts||re)||0))},Tn=function(e,r){var t=e._dp;return t&&t.smoothChildTiming&&e._ts&&(e._start=be(t._time-(e._ts>0?r/e._ts:((e._dirty?e.totalDuration():e._tDur)-r)/-e._ts)),wn(e),t._dirty||Fr(t,e)),e},No=function(e,r){var t;if((r._time||!r._dur&&r._initted||r._start<e._time&&(r._dur||!r.add))&&(t=gn(e.rawTime(),r),(!r._dur||Li(0,r.totalDuration(),t)-r._tTime>re)&&r.render(t,!0)),Fr(e,r)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(t=e;t._dp;)t.rawTime()>=0&&t.totalTime(t._tTime),t=t._dp;e._zTime=-re}},qt=function(e,r,t,i){return r.parent&&wr(r),r._start=be((nr(t)?t:t||e!==le?Ct(e,t,r):e._time)+r._delay),r._end=be(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),Io(e,r,"_first","_last",e._sort?"_start":0),cs(r)||(e._recent=r),i||No(e,r),e._ts<0&&Tn(e,e._tTime),e},Bo=function(e,r){return(vt.ScrollTrigger||vn("scrollTrigger",r))&&vt.ScrollTrigger.create(r,e)},Yo=function(e,r,t,i,n){if(Es(e,r,n),!e._initted)return 1;if(!t&&e._pt&&!Ie&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Ro!==ct.frame)return vr.push(e),e._lazy=[n,i],1},Pu=function a(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||a(r))},cs=function(e){var r=e.data;return r==="isFromStart"||r==="isStart"},Ou=function(e,r,t,i){var n=e.ratio,s=r<0||!r&&(!e._start&&Pu(e)&&!(!e._initted&&cs(e))||(e._ts<0||e._dp._ts<0)&&!cs(e))?0:1,o=e._rDelay,u=0,l,f,_;if(o&&e._repeat&&(u=Li(0,e._tDur,r),f=oi(u,o),e._yoyo&&f&1&&(s=1-s),f!==oi(e._tTime,o)&&(n=1-s,e.vars.repeatRefresh&&e._initted&&e.invalidate())),s!==n||Ie||i||e._zTime===re||!r&&e._zTime){if(!e._initted&&Yo(e,r,i,t,u))return;for(_=e._zTime,e._zTime=r||(t?re:0),t||(t=r&&!_),e.ratio=s,e._from&&(s=1-s),e._time=0,e._tTime=u,l=e._pt;l;)l.r(s,l.d),l=l._next;r<0&&fs(e,r,t,!0),e._onUpdate&&!t&&yt(e,"onUpdate"),u&&e._repeat&&!t&&e.parent&&yt(e,"onRepeat"),(r>=e._tDur||r<0)&&e.ratio===s&&(s&&wr(e,1),!t&&!Ie&&(yt(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=r)},Mu=function(e,r,t){var i;if(t>r)for(i=e._first;i&&i._start<=t;){if(i.data==="isPause"&&i._start>r)return i;i=i._next}else for(i=e._last;i&&i._start>=t;){if(i.data==="isPause"&&i._start<r)return i;i=i._prev}},ai=function(e,r,t,i){var n=e._repeat,s=be(r)||0,o=e._tTime/e._tDur;return o&&!i&&(e._time*=s/e._dur),e._dur=s,e._tDur=n?n<0?1e10:be(s*(n+1)+e._rDelay*n):s,o>0&&!i&&Tn(e,e._tTime=e._tDur*o),e.parent&&wn(e),t||Fr(e.parent,e),e},To=function(e){return e instanceof Le?Fr(e):ai(e,e._dur)},Du={_start:0,endTime:Ri,totalDuration:Ri},Ct=function a(e,r,t){var i=e.labels,n=e._recent||Du,s=e.duration()>=Pt?n.endTime(!1):e._dur,o,u,l;return Pe(r)&&(isNaN(r)||r in i)?(u=r.charAt(0),l=r.substr(-1)==="%",o=r.indexOf("="),u==="<"||u===">"?(o>=0&&(r=r.replace(/=/,"")),(u==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(r.substr(1))||0)*(l?(o<0?n:t).totalDuration()/100:1)):o<0?(r in i||(i[r]=s),i[r]):(u=parseFloat(r.charAt(o-1)+r.substr(o+1)),l&&t&&(u=u/100*(Ge(t)?t[0]:t).totalDuration()),o>1?a(e,r.substr(0,o-1),t)+u:s+u)):r==null?s:+r},Di=function(e,r,t){var i=nr(r[1]),n=(i?2:1)+(e<2?0:1),s=r[n],o,u;if(i&&(s.duration=r[1]),s.parent=t,e){for(o=s,u=t;u&&!("immediateRender"in o);)o=u.vars.defaults||{},u=ht(u.vars.inherit)&&u.parent;s.immediateRender=ht(o.immediateRender),e<2?s.runBackwards=1:s.startAt=r[n-1]}return new xe(r[0],s,r[n+1])},Tr=function(e,r){return e||e===0?r(e):r},Li=function(e,r,t){return t<e?e:t>r?r:t},Ne=function(e,r){return!Pe(e)||!(r=vu.exec(e))?"":r[1]},Eu=function(e,r,t){return Tr(t,function(i){return Li(e,r,i)})},hs=[].slice,Xo=function(e,r){return e&&Ht(e)&&"length"in e&&(!r&&!e.length||e.length-1 in e&&Ht(e[0]))&&!e.nodeType&&e!==Gt},Au=function(e,r,t){return t===void 0&&(t=[]),e.forEach(function(i){var n;return Pe(i)&&!r||Xo(i,1)?(n=t).push.apply(n,Ot(i)):t.push(i)})||t},Ot=function(e,r,t){return ae&&!r&&ae.selector?ae.selector(e):Pe(e)&&!t&&(us||!ui())?hs.call((r||ws).querySelectorAll(e),0):Ge(e)?Au(e,t):Xo(e)?hs.call(e,0):e?[e]:[]},_s=function(e){return e=Ot(e)[0]||Ai("Invalid scope")||{},function(r){var t=e.current||e.nativeElement||e;return Ot(r,t.querySelectorAll?t:t===e?Ai("Invalid scope")||ws.createElement("div"):e)}},Uo=function(e){return e.sort(function(){return .5-Math.random()})},Vo=function(e){if(de(e))return e;var r=Ht(e)?e:{each:e},t=zr(r.ease),i=r.from||0,n=parseFloat(r.base)||0,s={},o=i>0&&i<1,u=isNaN(i)||o,l=r.axis,f=i,_=i;return Pe(i)?f=_={center:.5,edges:.5,end:1}[i]||0:!o&&u&&(f=i[0],_=i[1]),function(d,c,p){var h=(p||r).length,m=s[h],T,w,S,v,b,C,x,O,k;if(!m){if(k=r.grid==="auto"?0:(r.grid||[1,Pt])[1],!k){for(x=-Pt;x<(x=p[k++].getBoundingClientRect().left)&&k<h;);k<h&&k--}for(m=s[h]=[],T=u?Math.min(k,h)*f-.5:i%k,w=k===Pt?0:u?h*_/k-.5:i/k|0,x=0,O=Pt,C=0;C<h;C++)S=C%k-T,v=w-(C/k|0),m[C]=b=l?Math.abs(l==="y"?v:S):Po(S*S+v*v),b>x&&(x=b),b<O&&(O=b);i==="random"&&Uo(m),m.max=x-O,m.min=O,m.v=h=(parseFloat(r.amount)||parseFloat(r.each)*(k>h?h-1:l?l==="y"?h/k:k:Math.max(k,h/k))||0)*(i==="edges"?-1:1),m.b=h<0?n-h:n,m.u=Ne(r.amount||r.each)||0,t=t&&h<0?Jo(t):t}return h=(m[d]-m.min)/m.max||0,be(m.b+(t?t(h):h)*m.v)+m.u}},ds=function(e){var r=Math.pow(10,((e+"").split(".")[1]||"").length);return function(t){var i=be(Math.round(parseFloat(t)/e)*e*r);return(i-i%1)/r+(nr(t)?0:Ne(t))}},Wo=function(e,r){var t=Ge(e),i,n;return!t&&Ht(e)&&(i=t=e.radius||Pt,e.values?(e=Ot(e.values),(n=!nr(e[0]))&&(i*=i)):e=ds(e.increment)),Tr(r,t?de(e)?function(s){return n=e(s),Math.abs(n-s)<=i?n:s}:function(s){for(var o=parseFloat(n?s.x:s),u=parseFloat(n?s.y:0),l=Pt,f=0,_=e.length,d,c;_--;)n?(d=e[_].x-o,c=e[_].y-u,d=d*d+c*c):d=Math.abs(e[_]-o),d<l&&(l=d,f=_);return f=!i||l<=i?e[f]:s,n||f===s||nr(s)?f:f+Ne(s)}:ds(e))},Go=function(e,r,t,i){return Tr(Ge(e)?!r:t===!0?!!(t=0):!i,function(){return Ge(e)?e[~~(Math.random()*e.length)]:(t=t||1e-5)&&(i=t<1?Math.pow(10,(t+"").length-2):1)&&Math.floor(Math.round((e-t/2+Math.random()*(r-e+t*.99))/t)*t*i)/i})},Ru=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return function(i){return r.reduce(function(n,s){return s(n)},i)}},Fu=function(e,r){return function(t){return e(parseFloat(t))+(r||Ne(t))}},zu=function(e,r,t){return Ho(e,r,0,1,t)},qo=function(e,r,t){return Tr(t,function(i){return e[~~r(i)]})},Lu=function a(e,r,t){var i=r-e;return Ge(e)?qo(e,a(0,e.length),r):Tr(t,function(n){return(i+(n-e)%i)%i+e})},Iu=function a(e,r,t){var i=r-e,n=i*2;return Ge(e)?qo(e,a(0,e.length-1),r):Tr(t,function(s){return s=(n+(s-e)%n)%n||0,e+(s>i?n-s:s)})},li=function(e){for(var r=0,t="",i,n,s,o;~(i=e.indexOf("random(",r));)s=e.indexOf(")",i),o=e.charAt(i+7)==="[",n=e.substr(i+7,s-i-7).match(o?Mo:as),t+=e.substr(r,i-r)+Go(o?n:+n[0],o?0:+n[1],+n[2]||1e-5),r=s+1;return t+e.substr(r,e.length-r)},Ho=function(e,r,t,i,n){var s=r-e,o=i-t;return Tr(n,function(u){return t+((u-e)/s*o||0)})},Nu=function a(e,r,t,i){var n=isNaN(e+r)?0:function(c){return(1-c)*e+c*r};if(!n){var s=Pe(e),o={},u,l,f,_,d;if(t===!0&&(i=1)&&(t=null),s)e={p:e},r={p:r};else if(Ge(e)&&!Ge(r)){for(f=[],_=e.length,d=_-2,l=1;l<_;l++)f.push(a(e[l-1],e[l]));_--,n=function(p){p*=_;var h=Math.min(d,~~p);return f[h](p-h)},t=r}else i||(e=si(Ge(e)?[]:{},e));if(!f){for(u in r)Ms.call(o,e,u,"get",r[u]);n=function(p){return Fs(p,o)||(s?e.p:e)}}}return Tr(t,n)},bo=function(e,r,t){var i=e.labels,n=Pt,s,o,u;for(s in i)o=i[s]-r,o<0==!!t&&o&&n>(o=Math.abs(o))&&(u=s,n=o);return u},yt=function(e,r,t){var i=e.vars,n=i[r],s=ae,o=e._ctx,u,l,f;if(n)return u=i[r+"Params"],l=i.callbackScope||e,t&&vr.length&&dn(),o&&(ae=o),f=u?n.apply(l,u):n.call(l),ae=s,f},Pi=function(e){return wr(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Ie),e.progress()<1&&yt(e,"onInterrupt"),e},ii,Qo=[],Ko=function(e){if(e)if(e=!e.name&&e.default||e,ys()||e.headless){var r=e.name,t=de(e),i=r&&!t&&e.init?function(){this._props=[]}:e,n={init:Ri,render:Fs,add:Ms,kill:el,modifier:ju,rawVars:0},s={targetTest:0,get:0,getSetter:bn,aliases:{},register:0};if(ui(),e!==i){if(ft[r])return;xt(i,xt(pn(e,n),s)),si(i.prototype,si(n,pn(e,s))),ft[i.prop=r]=i,e.targetTest&&(cn.push(i),Ts[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}Ao(r,i),e.register&&e.register(qe,i,tt)}else Qo.push(e)},te=255,Oi={aqua:[0,te,te],lime:[0,te,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,te],navy:[0,0,128],white:[te,te,te],olive:[128,128,0],yellow:[te,te,0],orange:[te,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[te,0,0],pink:[te,192,203],cyan:[0,te,te],transparent:[te,te,te,0]},ts=function(e,r,t){return e+=e<0?1:e>1?-1:0,(e*6<1?r+(t-r)*e*6:e<.5?t:e*3<2?r+(t-r)*(2/3-e)*6:r)*te+.5|0},$o=function(e,r,t){var i=e?nr(e)?[e>>16,e>>8&te,e&te]:0:Oi.black,n,s,o,u,l,f,_,d,c,p;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Oi[e])i=Oi[e];else if(e.charAt(0)==="#"){if(e.length<6&&(n=e.charAt(1),s=e.charAt(2),o=e.charAt(3),e="#"+n+n+s+s+o+o+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&te,i&te,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&te,e&te]}else if(e.substr(0,3)==="hsl"){if(i=p=e.match(as),!r)u=+i[0]%360/360,l=+i[1]/100,f=+i[2]/100,s=f<=.5?f*(l+1):f+l-f*l,n=f*2-s,i.length>3&&(i[3]*=1),i[0]=ts(u+1/3,n,s),i[1]=ts(u,n,s),i[2]=ts(u-1/3,n,s);else if(~e.indexOf("="))return i=e.match(vs),t&&i.length<4&&(i[3]=1),i}else i=e.match(as)||Oi.transparent;i=i.map(Number)}return r&&!p&&(n=i[0]/te,s=i[1]/te,o=i[2]/te,_=Math.max(n,s,o),d=Math.min(n,s,o),f=(_+d)/2,_===d?u=l=0:(c=_-d,l=f>.5?c/(2-_-d):c/(_+d),u=_===n?(s-o)/c+(s<o?6:0):_===s?(o-n)/c+2:(n-s)/c+4,u*=60),i[0]=~~(u+.5),i[1]=~~(l*100+.5),i[2]=~~(f*100+.5)),t&&i.length<4&&(i[3]=1),i},Zo=function(e){var r=[],t=[],i=-1;return e.split(ir).forEach(function(n){var s=n.match(Ir)||[];r.push.apply(r,s),t.push(i+=s.length+1)}),r.c=t,r},So=function(e,r,t){var i="",n=(e+i).match(ir),s=r?"hsla(":"rgba(",o=0,u,l,f,_;if(!n)return e;if(n=n.map(function(d){return(d=$o(d,r,1))&&s+(r?d[0]+","+d[1]+"%,"+d[2]+"%,"+d[3]:d.join(","))+")"}),t&&(f=Zo(e),u=t.c,u.join(i)!==f.c.join(i)))for(l=e.replace(ir,"1").split(Ir),_=l.length-1;o<_;o++)i+=l[o]+(~u.indexOf(o)?n.shift()||s+"0,0,0,0)":(f.length?f:n.length?n:t).shift());if(!l)for(l=e.split(ir),_=l.length-1;o<_;o++)i+=l[o]+n[o];return i+l[_]},ir=function(){var a="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in Oi)a+="|"+e+"\\b";return new RegExp(a+")","gi")}(),Bu=/hsl[a]?\(/,Ps=function(e){var r=e.join(" "),t;if(ir.lastIndex=0,ir.test(r))return t=Bu.test(r),e[1]=So(e[1],t),e[0]=So(e[0],t,Zo(e[1])),!0},Fi,ct=function(){var a=Date.now,e=500,r=33,t=a(),i=t,n=1e3/240,s=n,o=[],u,l,f,_,d,c,p=function h(m){var T=a()-i,w=m===!0,S,v,b,C;if((T>e||T<0)&&(t+=T-r),i+=T,b=i-t,S=b-s,(S>0||w)&&(C=++_.frame,d=b-_.time*1e3,_.time=b=b/1e3,s+=S+(S>=n?4:n-S),v=1),w||(u=l(h)),v)for(c=0;c<o.length;c++)o[c](b,d,C,m)};return _={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(m){return d/(1e3/(m||60))},wake:function(){Do&&(!us&&ys()&&(Gt=us=window,ws=Gt.document||{},vt.gsap=qe,(Gt.gsapVersions||(Gt.gsapVersions=[])).push(qe.version),Eo(_n||Gt.GreenSockGlobals||!Gt.gsap&&Gt||{}),Qo.forEach(Ko)),f=typeof requestAnimationFrame<"u"&&requestAnimationFrame,u&&_.sleep(),l=f||function(m){return setTimeout(m,s-_.time*1e3+1|0)},Fi=1,p(2))},sleep:function(){(f?cancelAnimationFrame:clearTimeout)(u),Fi=0,l=Ri},lagSmoothing:function(m,T){e=m||1/0,r=Math.min(T||33,e)},fps:function(m){n=1e3/(m||240),s=_.time*1e3+n},add:function(m,T,w){var S=T?function(v,b,C,x){m(v,b,C,x),_.remove(S)}:m;return _.remove(m),o[w?"unshift":"push"](S),ui(),S},remove:function(m,T){~(T=o.indexOf(m))&&o.splice(T,1)&&c>=T&&c--},_listeners:o},_}(),ui=function(){return!Fi&&ct.wake()},Q={},Yu=/^[\d.\-M][\d.\-,\s]/,Xu=/["']/g,Uu=function(e){for(var r={},t=e.substr(1,e.length-3).split(":"),i=t[0],n=1,s=t.length,o,u,l;n<s;n++)u=t[n],o=n!==s-1?u.lastIndexOf(","):u.length,l=u.substr(0,o),r[i]=isNaN(l)?l.replace(Xu,"").trim():+l,i=u.substr(o+1).trim();return r},Vu=function(e){var r=e.indexOf("(")+1,t=e.indexOf(")"),i=e.indexOf("(",r);return e.substring(r,~i&&i<t?e.indexOf(")",t+1):t)},Wu=function(e){var r=(e+"").split("("),t=Q[r[0]];return t&&r.length>1&&t.config?t.config.apply(null,~e.indexOf("{")?[Uu(r[1])]:Vu(e).split(",").map(zo)):Q._CE&&Yu.test(e)?Q._CE("",e):t},Jo=function(e){return function(r){return 1-e(1-r)}},jo=function a(e,r){for(var t=e._first,i;t;)t instanceof Le?a(t,r):t.vars.yoyoEase&&(!t._yoyo||!t._repeat)&&t._yoyo!==r&&(t.timeline?a(t.timeline,r):(i=t._ease,t._ease=t._yEase,t._yEase=i,t._yoyo=r)),t=t._next},zr=function(e,r){return e&&(de(e)?e:Q[e]||Wu(e))||r},Br=function(e,r,t,i){t===void 0&&(t=function(u){return 1-r(1-u)}),i===void 0&&(i=function(u){return u<.5?r(u*2)/2:1-r((1-u)*2)/2});var n={easeIn:r,easeOut:t,easeInOut:i},s;return et(e,function(o){Q[o]=vt[o]=n,Q[s=o.toLowerCase()]=t;for(var u in n)Q[s+(u==="easeIn"?".in":u==="easeOut"?".out":".inOut")]=Q[o+"."+u]=n[u]}),n},ea=function(e){return function(r){return r<.5?(1-e(1-r*2))/2:.5+e((r-.5)*2)/2}},rs=function a(e,r,t){var i=r>=1?r:1,n=(t||(e?.3:.45))/(r<1?r:1),s=n/os*(Math.asin(1/i)||0),o=function(f){return f===1?1:i*Math.pow(2,-10*f)*yu((f-s)*n)+1},u=e==="out"?o:e==="in"?function(l){return 1-o(1-l)}:ea(o);return n=os/n,u.config=function(l,f){return a(e,l,f)},u},is=function a(e,r){r===void 0&&(r=1.70158);var t=function(s){return s?--s*s*((r+1)*s+r)+1:0},i=e==="out"?t:e==="in"?function(n){return 1-t(1-n)}:ea(t);return i.config=function(n){return a(e,n)},i};et("Linear,Quad,Cubic,Quart,Quint,Strong",function(a,e){var r=e<5?e+1:e;Br(a+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(t*2,r)/2:1-Math.pow((1-t)*2,r)/2})});Q.Linear.easeNone=Q.none=Q.Linear.easeIn;Br("Elastic",rs("in"),rs("out"),rs());(function(a,e){var r=1/e,t=2*r,i=2.5*r,n=function(o){return o<r?a*o*o:o<t?a*Math.pow(o-1.5/e,2)+.75:o<i?a*(o-=2.25/e)*o+.9375:a*Math.pow(o-2.625/e,2)+.984375};Br("Bounce",function(s){return 1-n(1-s)},n)})(7.5625,2.75);Br("Expo",function(a){return Math.pow(2,10*(a-1))*a+a*a*a*a*a*a*(1-a)});Br("Circ",function(a){return-(Po(1-a*a)-1)});Br("Sine",function(a){return a===1?1:-mu(a*pu)+1});Br("Back",is("in"),is("out"),is());Q.SteppedEase=Q.steps=vt.SteppedEase={config:function(e,r){e===void 0&&(e=1);var t=1/e,i=e+(r?0:1),n=r?1:0,s=1-re;return function(o){return((i*Li(0,s,o)|0)+n)*t}}};ni.ease=Q["quad.out"];et("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(a){return bs+=a+","+a+"Params,"});var Os=function(e,r){this.id=gu++,e._gsap=this,this.target=e,this.harness=r,this.get=r?r.get:ks,this.set=r?r.getSetter:bn},zi=function(){function a(r){this.vars=r,this._delay=+r.delay||0,(this._repeat=r.repeat===1/0?-2:r.repeat||0)&&(this._rDelay=r.repeatDelay||0,this._yoyo=!!r.yoyo||!!r.yoyoEase),this._ts=1,ai(this,+r.duration,1,1),this.data=r.data,ae&&(this._ctx=ae,ae.data.push(this)),Fi||ct.wake()}var e=a.prototype;return e.delay=function(t){return t||t===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,ai(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,i){if(ui(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Tn(this,t),!n._dp||n.parent||No(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&qt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===re||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Fo(this,t,i)),this},e.time=function(t,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+wo(this))%(this._dur+this._rDelay)||(t?this._dur:0),i):this._time},e.totalProgress=function(t,i){return arguments.length?this.totalTime(this.totalDuration()*t,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(t,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-t:t)+wo(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,i){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,i):this._repeat?oi(this._tTime,n)+1:1},e.timeScale=function(t,i){if(!arguments.length)return this._rts===-re?0:this._rts;if(this._rts===t)return this;var n=this.parent&&this._ts?gn(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-re?0:this._rts,this.totalTime(Li(-Math.abs(this._delay),this.totalDuration(),n),i!==!1),wn(this),ku(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(ui(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==re&&(this._tTime-=re)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&qt(i,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(ht(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var i=this.parent||this._dp;return i?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?gn(i.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){t===void 0&&(t=wu);var i=Ie;return Ie=t,Cs(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),this.data!=="nested"&&t.kill!==!1&&this.kill(),Ie=i,this},e.globalTime=function(t){for(var i=this,n=arguments.length?t:i.rawTime();i;)n=i._start+n/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(t):n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,To(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var i=this._time;return this._rDelay=t,To(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,i){return this.totalTime(Ct(this,t),ht(i))},e.restart=function(t,i){return this.play().totalTime(t?-this._delay:0,ht(i)),this._dur||(this._zTime=-re),this},e.play=function(t,i){return t!=null&&this.seek(t,i),this.reversed(!1).paused(!1)},e.reverse=function(t,i){return t!=null&&this.seek(t||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(t,i){return t!=null&&this.seek(t,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-re:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-re,this},e.isActive=function(){var t=this.parent||this._dp,i=this._start,n;return!!(!t||this._ts&&this._initted&&t.isActive()&&(n=t.rawTime(!0))>=i&&n<this.endTime(!0)-re)},e.eventCallback=function(t,i,n){var s=this.vars;return arguments.length>1?(i?(s[t]=i,n&&(s[t+"Params"]=n),t==="onUpdate"&&(this._onUpdate=i)):delete s[t],this):s[t]},e.then=function(t){var i=this;return new Promise(function(n){var s=de(t)?t:Lo,o=function(){var l=i.then;i.then=null,de(s)&&(s=s(i))&&(s.then||s===i)&&(i.then=l),n(s),i.then=l};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?o():i._prom=o})},e.kill=function(){Pi(this)},a}();xt(zi.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:-re,_prom:0,_ps:!1,_rts:1});var Le=function(a){Co(e,a);function e(t,i){var n;return t===void 0&&(t={}),n=a.call(this,t)||this,n.labels={},n.smoothChildTiming=!!t.smoothChildTiming,n.autoRemoveChildren=!!t.autoRemoveChildren,n._sort=ht(t.sortChildren),le&&qt(t.parent||le,rr(n),i),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&Bo(rr(n),t.scrollTrigger),n}var r=e.prototype;return r.to=function(i,n,s){return Di(0,arguments,this),this},r.from=function(i,n,s){return Di(1,arguments,this),this},r.fromTo=function(i,n,s,o){return Di(2,arguments,this),this},r.set=function(i,n,s){return n.duration=0,n.parent=this,Mi(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new xe(i,n,Ct(this,s),1),this},r.call=function(i,n,s){return qt(this,xe.delayedCall(0,i,n),s)},r.staggerTo=function(i,n,s,o,u,l,f){return s.duration=n,s.stagger=s.stagger||o,s.onComplete=l,s.onCompleteParams=f,s.parent=this,new xe(i,s,Ct(this,u)),this},r.staggerFrom=function(i,n,s,o,u,l,f){return s.runBackwards=1,Mi(s).immediateRender=ht(s.immediateRender),this.staggerTo(i,n,s,o,u,l,f)},r.staggerFromTo=function(i,n,s,o,u,l,f,_){return o.startAt=s,Mi(o).immediateRender=ht(o.immediateRender),this.staggerTo(i,n,o,u,l,f,_)},r.render=function(i,n,s){var o=this._time,u=this._dirty?this.totalDuration():this._tDur,l=this._dur,f=i<=0?0:be(i),_=this._zTime<0!=i<0&&(this._initted||!l),d,c,p,h,m,T,w,S,v,b,C,x;if(this!==le&&f>u&&i>=0&&(f=u),f!==this._tTime||s||_){if(o!==this._time&&l&&(f+=this._time-o,i+=this._time-o),d=f,v=this._start,S=this._ts,T=!S,_&&(l||(o=this._zTime),(i||!n)&&(this._zTime=i)),this._repeat){if(C=this._yoyo,m=l+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(m*100+i,n,s);if(d=be(f%m),f===u?(h=this._repeat,d=l):(b=be(f/m),h=~~b,h&&h===b&&(d=l,h--),d>l&&(d=l)),b=oi(this._tTime,m),!o&&this._tTime&&b!==h&&this._tTime-b*m-this._dur<=0&&(b=h),C&&h&1&&(d=l-d,x=1),h!==b&&!this._lock){var O=C&&b&1,k=O===(C&&h&1);if(h<b&&(O=!O),o=O?0:f%l?l:f,this._lock=1,this.render(o||(x?0:be(h*m)),n,!l)._lock=0,this._tTime=f,!n&&this.parent&&yt(this,"onRepeat"),this.vars.repeatRefresh&&!x&&(this.invalidate()._lock=1),o&&o!==this._time||T!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(l=this._dur,u=this._tDur,k&&(this._lock=2,o=O?l:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!x&&this.invalidate()),this._lock=0,!this._ts&&!T)return this;jo(this,x)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(w=Mu(this,be(o),be(d)),w&&(f-=d-(d=w._start))),this._tTime=f,this._time=d,this._act=!S,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,o=0),!o&&f&&!n&&!b&&(yt(this,"onStart"),this._tTime!==f))return this;if(d>=o&&i>=0)for(c=this._first;c;){if(p=c._next,(c._act||d>=c._start)&&c._ts&&w!==c){if(c.parent!==this)return this.render(i,n,s);if(c.render(c._ts>0?(d-c._start)*c._ts:(c._dirty?c.totalDuration():c._tDur)+(d-c._start)*c._ts,n,s),d!==this._time||!this._ts&&!T){w=0,p&&(f+=this._zTime=-re);break}}c=p}else{c=this._last;for(var P=i<0?i:d;c;){if(p=c._prev,(c._act||P<=c._end)&&c._ts&&w!==c){if(c.parent!==this)return this.render(i,n,s);if(c.render(c._ts>0?(P-c._start)*c._ts:(c._dirty?c.totalDuration():c._tDur)+(P-c._start)*c._ts,n,s||Ie&&Cs(c)),d!==this._time||!this._ts&&!T){w=0,p&&(f+=this._zTime=P?-re:re);break}}c=p}}if(w&&!n&&(this.pause(),w.render(d>=o?0:-re)._zTime=d>=o?1:-1,this._ts))return this._start=v,wn(this),this.render(i,n,s);this._onUpdate&&!n&&yt(this,"onUpdate",!0),(f===u&&this._tTime>=this.totalDuration()||!f&&o)&&(v===this._start||Math.abs(S)!==Math.abs(this._ts))&&(this._lock||((i||!l)&&(f===u&&this._ts>0||!f&&this._ts<0)&&wr(this,1),!n&&!(i<0&&!o)&&(f||o||!u)&&(yt(this,f===u&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(f<u&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(i,n){var s=this;if(nr(n)||(n=Ct(this,n,i)),!(i instanceof zi)){if(Ge(i))return i.forEach(function(o){return s.add(o,n)}),this;if(Pe(i))return this.addLabel(i,n);if(de(i))i=xe.delayedCall(0,i);else return this}return this!==i?qt(this,i,n):this},r.getChildren=function(i,n,s,o){i===void 0&&(i=!0),n===void 0&&(n=!0),s===void 0&&(s=!0),o===void 0&&(o=-Pt);for(var u=[],l=this._first;l;)l._start>=o&&(l instanceof xe?n&&u.push(l):(s&&u.push(l),i&&u.push.apply(u,l.getChildren(!0,n,s)))),l=l._next;return u},r.getById=function(i){for(var n=this.getChildren(1,1,1),s=n.length;s--;)if(n[s].vars.id===i)return n[s]},r.remove=function(i){return Pe(i)?this.removeLabel(i):de(i)?this.killTweensOf(i):(i.parent===this&&xn(this,i),i===this._recent&&(this._recent=this._last),Fr(this))},r.totalTime=function(i,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=be(ct.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),a.prototype.totalTime.call(this,i,n),this._forcing=0,this):this._tTime},r.addLabel=function(i,n){return this.labels[i]=Ct(this,n),this},r.removeLabel=function(i){return delete this.labels[i],this},r.addPause=function(i,n,s){var o=xe.delayedCall(0,n||Ri,s);return o.data="isPause",this._hasPause=1,qt(this,o,Ct(this,i))},r.removePause=function(i){var n=this._first;for(i=Ct(this,i);n;)n._start===i&&n.data==="isPause"&&wr(n),n=n._next},r.killTweensOf=function(i,n,s){for(var o=this.getTweensOf(i,s),u=o.length;u--;)yr!==o[u]&&o[u].kill(i,n);return this},r.getTweensOf=function(i,n){for(var s=[],o=Ot(i),u=this._first,l=nr(n),f;u;)u instanceof xe?Tu(u._targets,o)&&(l?(!yr||u._initted&&u._ts)&&u.globalTime(0)<=n&&u.globalTime(u.totalDuration())>n:!n||u.isActive())&&s.push(u):(f=u.getTweensOf(o,n)).length&&s.push.apply(s,f),u=u._next;return s},r.tweenTo=function(i,n){n=n||{};var s=this,o=Ct(s,i),u=n,l=u.startAt,f=u.onStart,_=u.onStartParams,d=u.immediateRender,c,p=xe.to(s,xt({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:n.duration||Math.abs((o-(l&&"time"in l?l.time:s._time))/s.timeScale())||re,onStart:function(){if(s.pause(),!c){var m=n.duration||Math.abs((o-(l&&"time"in l?l.time:s._time))/s.timeScale());p._dur!==m&&ai(p,m,0,1).render(p._time,!0,!0),c=1}f&&f.apply(p,_||[])}},n));return d?p.render(0):p},r.tweenFromTo=function(i,n,s){return this.tweenTo(n,xt({startAt:{time:Ct(this,i)}},s))},r.recent=function(){return this._recent},r.nextLabel=function(i){return i===void 0&&(i=this._time),bo(this,Ct(this,i))},r.previousLabel=function(i){return i===void 0&&(i=this._time),bo(this,Ct(this,i),1)},r.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+re)},r.shiftChildren=function(i,n,s){s===void 0&&(s=0);for(var o=this._first,u=this.labels,l;o;)o._start>=s&&(o._start+=i,o._end+=i),o=o._next;if(n)for(l in u)u[l]>=s&&(u[l]+=i);return Fr(this)},r.invalidate=function(i){var n=this._first;for(this._lock=0;n;)n.invalidate(i),n=n._next;return a.prototype.invalidate.call(this,i)},r.clear=function(i){i===void 0&&(i=!0);for(var n=this._first,s;n;)s=n._next,this.remove(n),n=s;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),Fr(this)},r.totalDuration=function(i){var n=0,s=this,o=s._last,u=Pt,l,f,_;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-i:i));if(s._dirty){for(_=s.parent;o;)l=o._prev,o._dirty&&o.totalDuration(),f=o._start,f>u&&s._sort&&o._ts&&!s._lock?(s._lock=1,qt(s,o,f-o._delay,1)._lock=0):u=f,f<0&&o._ts&&(n-=f,(!_&&!s._dp||_&&_.smoothChildTiming)&&(s._start+=f/s._ts,s._time-=f,s._tTime-=f),s.shiftChildren(-f,!1,-1/0),u=0),o._end>n&&o._ts&&(n=o._end),o=l;ai(s,s===le&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(i){if(le._ts&&(Fo(le,gn(i,le)),Ro=ct.frame),ct.frame>=vo){vo+=_t.autoSleep||120;var n=le._first;if((!n||!n._ts)&&_t.autoSleep&&ct._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||ct.sleep()}}},e}(zi);xt(Le.prototype,{_lock:0,_hasPause:0,_forcing:0});var Gu=function(e,r,t,i,n,s,o){var u=new tt(this._pt,e,r,0,1,Rs,null,n),l=0,f=0,_,d,c,p,h,m,T,w;for(u.b=t,u.e=i,t+="",i+="",(T=~i.indexOf("random("))&&(i=li(i)),s&&(w=[t,i],s(w,e,r),t=w[0],i=w[1]),d=t.match(jn)||[];_=jn.exec(i);)p=_[0],h=i.substring(l,_.index),c?c=(c+1)%5:h.substr(-5)==="rgba("&&(c=1),p!==d[f++]&&(m=parseFloat(d[f-1])||0,u._pt={_next:u._pt,p:h||f===1?h:",",s:m,c:p.charAt(1)==="="?Nr(m,p)-m:parseFloat(p)-m,m:c&&c<4?Math.round:0},l=jn.lastIndex);return u.c=l<i.length?i.substring(l,i.length):"",u.fp=o,(xs.test(i)||T)&&(u.e=0),this._pt=u,u},Ms=function(e,r,t,i,n,s,o,u,l,f){de(i)&&(i=i(n||0,e,s));var _=e[r],d=t!=="get"?t:de(_)?l?e[r.indexOf("set")||!de(e["get"+r.substr(3)])?r:"get"+r.substr(3)](l):e[r]():_,c=de(_)?l?$u:ia:As,p;if(Pe(i)&&(~i.indexOf("random(")&&(i=li(i)),i.charAt(1)==="="&&(p=Nr(d,i)+(Ne(d)||0),(p||p===0)&&(i=p))),!f||d!==i||ps)return!isNaN(d*i)&&i!==""?(p=new tt(this._pt,e,r,+d||0,i-(d||0),typeof _=="boolean"?Ju:na,0,c),l&&(p.fp=l),o&&p.modifier(o,this,e),this._pt=p):(!_&&!(r in e)&&vn(r,i),Gu.call(this,e,r,d,i,c,u||_t.stringFilter,l))},qu=function(e,r,t,i,n){if(de(e)&&(e=Ei(e,n,r,t,i)),!Ht(e)||e.style&&e.nodeType||Ge(e)||Oo(e))return Pe(e)?Ei(e,n,r,t,i):e;var s={},o;for(o in e)s[o]=Ei(e[o],n,r,t,i);return s},Ds=function(e,r,t,i,n,s){var o,u,l,f;if(ft[e]&&(o=new ft[e]).init(n,o.rawVars?r[e]:qu(r[e],i,n,s,t),t,i,s)!==!1&&(t._pt=u=new tt(t._pt,n,e,0,1,o.render,o,0,o.priority),t!==ii))for(l=t._ptLookup[t._targets.indexOf(n)],f=o._props.length;f--;)l[o._props[f]]=u;return o},yr,ps,Es=function a(e,r,t){var i=e.vars,n=i.ease,s=i.startAt,o=i.immediateRender,u=i.lazy,l=i.onUpdate,f=i.runBackwards,_=i.yoyoEase,d=i.keyframes,c=i.autoRevert,p=e._dur,h=e._startAt,m=e._targets,T=e.parent,w=T&&T.data==="nested"?T.vars.targets:m,S=e._overwrite==="auto"&&!ms,v=e.timeline,b,C,x,O,k,P,z,M,G,V,K,q,F;if(v&&(!d||!n)&&(n="none"),e._ease=zr(n,ni.ease),e._yEase=_?Jo(zr(_===!0?n:_,ni.ease)):0,_&&e._yoyo&&!e._repeat&&(_=e._yEase,e._yEase=e._ease,e._ease=_),e._from=!v&&!!i.runBackwards,!v||d&&!i.stagger){if(M=m[0]?xr(m[0]).harness:0,q=M&&i[M.prop],b=pn(i,Ts),h&&(h._zTime<0&&h.progress(1),r<0&&f&&o&&!c?h.render(-1,!0):h.revert(f&&p?fn:xu),h._lazy=0),s){if(wr(e._startAt=xe.set(m,xt({data:"isStart",overwrite:!1,parent:T,immediateRender:!0,lazy:!h&&ht(u),startAt:null,delay:0,onUpdate:l&&function(){return yt(e,"onUpdate")},stagger:0},s))),e._startAt._dp=0,e._startAt._sat=e,r<0&&(Ie||!o&&!c)&&e._startAt.revert(fn),o&&p&&r<=0&&t<=0){r&&(e._zTime=r);return}}else if(f&&p&&!h){if(r&&(o=!1),x=xt({overwrite:!1,data:"isFromStart",lazy:o&&!h&&ht(u),immediateRender:o,stagger:0,parent:T},b),q&&(x[M.prop]=q),wr(e._startAt=xe.set(m,x)),e._startAt._dp=0,e._startAt._sat=e,r<0&&(Ie?e._startAt.revert(fn):e._startAt.render(-1,!0)),e._zTime=r,!o)a(e._startAt,re,re);else if(!r)return}for(e._pt=e._ptCache=0,u=p&&ht(u)||u&&!p,C=0;C<m.length;C++){if(k=m[C],z=k._gsap||Ss(m)[C]._gsap,e._ptLookup[C]=V={},ls[z.id]&&vr.length&&dn(),K=w===m?C:w.indexOf(k),M&&(G=new M).init(k,q||b,e,K,w)!==!1&&(e._pt=O=new tt(e._pt,k,G.name,0,1,G.render,G,0,G.priority),G._props.forEach(function(Z){V[Z]=O}),G.priority&&(P=1)),!M||q)for(x in b)ft[x]&&(G=Ds(x,b,e,K,k,w))?G.priority&&(P=1):V[x]=O=Ms.call(e,k,x,"get",b[x],K,w,0,i.stringFilter);e._op&&e._op[C]&&e.kill(k,e._op[C]),S&&e._pt&&(yr=e,le.killTweensOf(k,V,e.globalTime(r)),F=!e.parent,yr=0),e._pt&&u&&(ls[z.id]=1)}P&&zs(e),e._onInit&&e._onInit(e)}e._onUpdate=l,e._initted=(!e._op||e._pt)&&!F,d&&r<=0&&v.render(Pt,!0,!0)},Hu=function(e,r,t,i,n,s,o,u){var l=(e._pt&&e._ptCache||(e._ptCache={}))[r],f,_,d,c;if(!l)for(l=e._ptCache[r]=[],d=e._ptLookup,c=e._targets.length;c--;){if(f=d[c][r],f&&f.d&&f.d._pt)for(f=f.d._pt;f&&f.p!==r&&f.fp!==r;)f=f._next;if(!f)return ps=1,e.vars[r]="+=0",Es(e,o),ps=0,u?Ai(r+" not eligible for reset"):1;l.push(f)}for(c=l.length;c--;)_=l[c],f=_._pt||_,f.s=(i||i===0)&&!n?i:f.s+(i||0)+s*f.c,f.c=t-f.s,_.e&&(_.e=pe(t)+Ne(_.e)),_.b&&(_.b=f.s+Ne(_.b))},Qu=function(e,r){var t=e[0]?xr(e[0]).harness:0,i=t&&t.aliases,n,s,o,u;if(!i)return r;n=si({},r);for(s in i)if(s in n)for(u=i[s].split(","),o=u.length;o--;)n[u[o]]=n[s];return n},Ku=function(e,r,t,i){var n=r.ease||i||"power1.inOut",s,o;if(Ge(r))o=t[e]||(t[e]=[]),r.forEach(function(u,l){return o.push({t:l/(r.length-1)*100,v:u,e:n})});else for(s in r)o=t[s]||(t[s]=[]),s==="ease"||o.push({t:parseFloat(e),v:r[s],e:n})},Ei=function(e,r,t,i,n){return de(e)?e.call(r,t,i,n):Pe(e)&&~e.indexOf("random(")?li(e):e},ta=bs+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",ra={};et(ta+",id,stagger,delay,duration,paused,scrollTrigger",function(a){return ra[a]=1});var xe=function(a){Co(e,a);function e(t,i,n,s){var o;typeof i=="number"&&(n.duration=i,i=n,n=null),o=a.call(this,s?i:Mi(i))||this;var u=o.vars,l=u.duration,f=u.delay,_=u.immediateRender,d=u.stagger,c=u.overwrite,p=u.keyframes,h=u.defaults,m=u.scrollTrigger,T=u.yoyoEase,w=i.parent||le,S=(Ge(t)||Oo(t)?nr(t[0]):"length"in i)?[t]:Ot(t),v,b,C,x,O,k,P,z;if(o._targets=S.length?Ss(S):Ai("GSAP target "+t+" not found. https://gsap.com",!_t.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=c,p||d||ln(l)||ln(f)){if(i=o.vars,v=o.timeline=new Le({data:"nested",defaults:h||{},targets:w&&w.data==="nested"?w.vars.targets:S}),v.kill(),v.parent=v._dp=rr(o),v._start=0,d||ln(l)||ln(f)){if(x=S.length,P=d&&Vo(d),Ht(d))for(O in d)~ta.indexOf(O)&&(z||(z={}),z[O]=d[O]);for(b=0;b<x;b++)C=pn(i,ra),C.stagger=0,T&&(C.yoyoEase=T),z&&si(C,z),k=S[b],C.duration=+Ei(l,rr(o),b,k,S),C.delay=(+Ei(f,rr(o),b,k,S)||0)-o._delay,!d&&x===1&&C.delay&&(o._delay=f=C.delay,o._start+=f,C.delay=0),v.to(k,C,P?P(b,k,S):0),v._ease=Q.none;v.duration()?l=f=0:o.timeline=0}else if(p){Mi(xt(v.vars.defaults,{ease:"none"})),v._ease=zr(p.ease||i.ease||"none");var M=0,G,V,K;if(Ge(p))p.forEach(function(q){return v.to(S,q,">")}),v.duration();else{C={};for(O in p)O==="ease"||O==="easeEach"||Ku(O,p[O],C,p.easeEach);for(O in C)for(G=C[O].sort(function(q,F){return q.t-F.t}),M=0,b=0;b<G.length;b++)V=G[b],K={ease:V.e,duration:(V.t-(b?G[b-1].t:0))/100*l},K[O]=V.v,v.to(S,K,M),M+=K.duration;v.duration()<l&&v.to({},{duration:l-v.duration()})}}l||o.duration(l=v.duration())}else o.timeline=0;return c===!0&&!ms&&(yr=rr(o),le.killTweensOf(S),yr=0),qt(w,rr(o),n),i.reversed&&o.reverse(),i.paused&&o.paused(!0),(_||!l&&!p&&o._start===be(w._time)&&ht(_)&&Cu(rr(o))&&w.data!=="nested")&&(o._tTime=-re,o.render(Math.max(0,-f)||0)),m&&Bo(rr(o),m),o}var r=e.prototype;return r.render=function(i,n,s){var o=this._time,u=this._tDur,l=this._dur,f=i<0,_=i>u-re&&!f?u:i<re?0:i,d,c,p,h,m,T,w,S,v;if(!l)Ou(this,i,n,s);else if(_!==this._tTime||!i||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==f||this._lazy){if(d=_,S=this.timeline,this._repeat){if(h=l+this._rDelay,this._repeat<-1&&f)return this.totalTime(h*100+i,n,s);if(d=be(_%h),_===u?(p=this._repeat,d=l):(m=be(_/h),p=~~m,p&&p===m?(d=l,p--):d>l&&(d=l)),T=this._yoyo&&p&1,T&&(v=this._yEase,d=l-d),m=oi(this._tTime,h),d===o&&!s&&this._initted&&p===m)return this._tTime=_,this;p!==m&&(S&&this._yEase&&jo(S,T),this.vars.repeatRefresh&&!T&&!this._lock&&d!==h&&this._initted&&(this._lock=s=1,this.render(be(h*p),!0).invalidate()._lock=0))}if(!this._initted){if(Yo(this,f?i:d,s,n,_))return this._tTime=0,this;if(o!==this._time&&!(s&&this.vars.repeatRefresh&&p!==m))return this;if(l!==this._dur)return this.render(i,n,s)}if(this._tTime=_,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=w=(v||this._ease)(d/l),this._from&&(this.ratio=w=1-w),!o&&_&&!n&&!m&&(yt(this,"onStart"),this._tTime!==_))return this;for(c=this._pt;c;)c.r(w,c.d),c=c._next;S&&S.render(i<0?i:S._dur*S._ease(d/this._dur),n,s)||this._startAt&&(this._zTime=i),this._onUpdate&&!n&&(f&&fs(this,i,n,s),yt(this,"onUpdate")),this._repeat&&p!==m&&this.vars.onRepeat&&!n&&this.parent&&yt(this,"onRepeat"),(_===this._tDur||!_)&&this._tTime===_&&(f&&!this._onUpdate&&fs(this,i,!0,!0),(i||!l)&&(_===this._tDur&&this._ts>0||!_&&this._ts<0)&&wr(this,1),!n&&!(f&&!o)&&(_||o||T)&&(yt(this,_===u?"onComplete":"onReverseComplete",!0),this._prom&&!(_<u&&this.timeScale()>0)&&this._prom()))}return this},r.targets=function(){return this._targets},r.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),a.prototype.invalidate.call(this,i)},r.resetTo=function(i,n,s,o,u){Fi||ct.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),f;return this._initted||Es(this,l),f=this._ease(l/this._dur),Hu(this,i,n,s,o,f,l,u)?this.resetTo(i,n,s,o,1):(Tn(this,0),this.parent||Io(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(i,n){if(n===void 0&&(n="all"),!i&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?Pi(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Ie),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(i,n,yr&&yr.vars.overwrite!==!0)._first||Pi(this),this.parent&&s!==this.timeline.totalDuration()&&ai(this,this._dur*this.timeline._tDur/s,0,1),this}var o=this._targets,u=i?Ot(i):o,l=this._ptLookup,f=this._pt,_,d,c,p,h,m,T;if((!n||n==="all")&&Su(o,u))return n==="all"&&(this._pt=0),Pi(this);for(_=this._op=this._op||[],n!=="all"&&(Pe(n)&&(h={},et(n,function(w){return h[w]=1}),n=h),n=Qu(o,n)),T=o.length;T--;)if(~u.indexOf(o[T])){d=l[T],n==="all"?(_[T]=n,p=d,c={}):(c=_[T]=_[T]||{},p=n);for(h in p)m=d&&d[h],m&&((!("kill"in m.d)||m.d.kill(h)===!0)&&xn(this,m,"_pt"),delete d[h]),c!=="all"&&(c[h]=1)}return this._initted&&!this._pt&&f&&Pi(this),this},e.to=function(i,n){return new e(i,n,arguments[2])},e.from=function(i,n){return Di(1,arguments)},e.delayedCall=function(i,n,s,o){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:n,onReverseComplete:n,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:o})},e.fromTo=function(i,n,s){return Di(2,arguments)},e.set=function(i,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(i,n)},e.killTweensOf=function(i,n,s){return le.killTweensOf(i,n,s)},e}(zi);xt(xe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});et("staggerTo,staggerFrom,staggerFromTo",function(a){xe[a]=function(){var e=new Le,r=hs.call(arguments,0);return r.splice(a==="staggerFromTo"?5:4,0,0),e[a].apply(e,r)}});var As=function(e,r,t){return e[r]=t},ia=function(e,r,t){return e[r](t)},$u=function(e,r,t,i){return e[r](i.fp,t)},Zu=function(e,r,t){return e.setAttribute(r,t)},bn=function(e,r){return de(e[r])?ia:yn(e[r])&&e.setAttribute?Zu:As},na=function(e,r){return r.set(r.t,r.p,Math.round((r.s+r.c*e)*1e6)/1e6,r)},Ju=function(e,r){return r.set(r.t,r.p,!!(r.s+r.c*e),r)},Rs=function(e,r){var t=r._pt,i="";if(!e&&r.b)i=r.b;else if(e===1&&r.e)i=r.e;else{for(;t;)i=t.p+(t.m?t.m(t.s+t.c*e):Math.round((t.s+t.c*e)*1e4)/1e4)+i,t=t._next;i+=r.c}r.set(r.t,r.p,i,r)},Fs=function(e,r){for(var t=r._pt;t;)t.r(e,t.d),t=t._next},ju=function(e,r,t,i){for(var n=this._pt,s;n;)s=n._next,n.p===i&&n.modifier(e,r,t),n=s},el=function(e){for(var r=this._pt,t,i;r;)i=r._next,r.p===e&&!r.op||r.op===e?xn(this,r,"_pt"):r.dep||(t=1),r=i;return!t},tl=function(e,r,t,i){i.mSet(e,r,i.m.call(i.tween,t,i.mt),i)},zs=function(e){for(var r=e._pt,t,i,n,s;r;){for(t=r._next,i=n;i&&i.pr>r.pr;)i=i._next;(r._prev=i?i._prev:s)?r._prev._next=r:n=r,(r._next=i)?i._prev=r:s=r,r=t}e._pt=n},tt=function(){function a(r,t,i,n,s,o,u,l,f){this.t=t,this.s=n,this.c=s,this.p=i,this.r=o||na,this.d=u||this,this.set=l||As,this.pr=f||0,this._next=r,r&&(r._prev=this)}var e=a.prototype;return e.modifier=function(t,i,n){this.mSet=this.mSet||this.set,this.set=tl,this.m=t,this.mt=n,this.tween=i},a}();et(bs+"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(a){return Ts[a]=1});vt.TweenMax=vt.TweenLite=xe;vt.TimelineLite=vt.TimelineMax=Le;le=new Le({sortChildren:!1,defaults:ni,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});_t.stringFilter=Ps;var Lr=[],hn={},rl=[],ko=0,il=0,ns=function(e){return(hn[e]||rl).map(function(r){return r()})},gs=function(){var e=Date.now(),r=[];e-ko>2&&(ns("matchMediaInit"),Lr.forEach(function(t){var i=t.queries,n=t.conditions,s,o,u,l;for(o in i)s=Gt.matchMedia(i[o]).matches,s&&(u=1),s!==n[o]&&(n[o]=s,l=1);l&&(t.revert(),u&&r.push(t))}),ns("matchMediaRevert"),r.forEach(function(t){return t.onMatch(t,function(i){return t.add(null,i)})}),ko=e,ns("matchMedia"))},sa=function(){function a(r,t){this.selector=t&&_s(t),this.data=[],this._r=[],this.isReverted=!1,this.id=il++,r&&this.add(r)}var e=a.prototype;return e.add=function(t,i,n){de(t)&&(n=i,i=t,t=de);var s=this,o=function(){var l=ae,f=s.selector,_;return l&&l!==s&&l.data.push(s),n&&(s.selector=_s(n)),ae=s,_=i.apply(s,arguments),de(_)&&s._r.push(_),ae=l,s.selector=f,s.isReverted=!1,_};return s.last=o,t===de?o(s,function(u){return s.add(null,u)}):t?s[t]=o:o},e.ignore=function(t){var i=ae;ae=null,t(this),ae=i},e.getTweens=function(){var t=[];return this.data.forEach(function(i){return i instanceof a?t.push.apply(t,i.getTweens()):i instanceof xe&&!(i.parent&&i.parent.data==="nested")&&t.push(i)}),t},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,i){var n=this;if(t?function(){for(var o=n.getTweens(),u=n.data.length,l;u--;)l=n.data[u],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(f){return o.splice(o.indexOf(f),1)}));for(o.map(function(f){return{g:f._dur||f._delay||f._sat&&!f._sat.vars.immediateRender?f.globalTime(0):-1/0,t:f}}).sort(function(f,_){return _.g-f.g||-1/0}).forEach(function(f){return f.t.revert(t)}),u=n.data.length;u--;)l=n.data[u],l instanceof Le?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof xe)&&l.revert&&l.revert(t);n._r.forEach(function(f){return f(t,n)}),n.isReverted=!0}():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),i)for(var s=Lr.length;s--;)Lr[s].id===this.id&&Lr.splice(s,1)},e.revert=function(t){this.kill(t||{})},a}(),nl=function(){function a(r){this.contexts=[],this.scope=r,ae&&ae.data.push(this)}var e=a.prototype;return e.add=function(t,i,n){Ht(t)||(t={matches:t});var s=new sa(0,n||this.scope),o=s.conditions={},u,l,f;ae&&!s.selector&&(s.selector=ae.selector),this.contexts.push(s),i=s.add("onMatch",i),s.queries=t;for(l in t)l==="all"?f=1:(u=Gt.matchMedia(t[l]),u&&(Lr.indexOf(s)<0&&Lr.push(s),(o[l]=u.matches)&&(f=1),u.addListener?u.addListener(gs):u.addEventListener("change",gs)));return f&&i(s,function(_){return s.add(null,_)}),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach(function(i){return i.kill(t,!0)})},a}(),mn={registerPlugin:function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];r.forEach(function(i){return Ko(i)})},timeline:function(e){return new Le(e)},getTweensOf:function(e,r){return le.getTweensOf(e,r)},getProperty:function(e,r,t,i){Pe(e)&&(e=Ot(e)[0]);var n=xr(e||{}).get,s=t?Lo:zo;return t==="native"&&(t=""),e&&(r?s((ft[r]&&ft[r].get||n)(e,r,t,i)):function(o,u,l){return s((ft[o]&&ft[o].get||n)(e,o,u,l))})},quickSetter:function(e,r,t){if(e=Ot(e),e.length>1){var i=e.map(function(f){return qe.quickSetter(f,r,t)}),n=i.length;return function(f){for(var _=n;_--;)i[_](f)}}e=e[0]||{};var s=ft[r],o=xr(e),u=o.harness&&(o.harness.aliases||{})[r]||r,l=s?function(f){var _=new s;ii._pt=0,_.init(e,t?f+t:f,ii,0,[e]),_.render(1,_),ii._pt&&Fs(1,ii)}:o.set(e,u);return s?l:function(f){return l(e,u,t?f+t:f,o,1)}},quickTo:function(e,r,t){var i,n=qe.to(e,xt((i={},i[r]="+=0.1",i.paused=!0,i.stagger=0,i),t||{})),s=function(u,l,f){return n.resetTo(r,u,l,f)};return s.tween=n,s},isTweening:function(e){return le.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=zr(e.ease,ni.ease)),xo(ni,e||{})},config:function(e){return xo(_t,e||{})},registerEffect:function(e){var r=e.name,t=e.effect,i=e.plugins,n=e.defaults,s=e.extendTimeline;(i||"").split(",").forEach(function(o){return o&&!ft[o]&&!vt[o]&&Ai(r+" effect requires "+o+" plugin.")}),es[r]=function(o,u,l){return t(Ot(o),xt(u||{},n),l)},s&&(Le.prototype[r]=function(o,u,l){return this.add(es[r](o,Ht(u)?u:(l=u)&&{},this),l)})},registerEase:function(e,r){Q[e]=zr(r)},parseEase:function(e,r){return arguments.length?zr(e,r):Q},getById:function(e){return le.getById(e)},exportRoot:function(e,r){e===void 0&&(e={});var t=new Le(e),i,n;for(t.smoothChildTiming=ht(e.smoothChildTiming),le.remove(t),t._dp=0,t._time=t._tTime=le._time,i=le._first;i;)n=i._next,(r||!(!i._dur&&i instanceof xe&&i.vars.onComplete===i._targets[0]))&&qt(t,i,i._start-i._delay),i=n;return qt(le,t,0),t},context:function(e,r){return e?new sa(e,r):ae},matchMedia:function(e){return new nl(e)},matchMediaRefresh:function(){return Lr.forEach(function(e){var r=e.conditions,t,i;for(i in r)r[i]&&(r[i]=!1,t=1);t&&e.revert()})||gs()},addEventListener:function(e,r){var t=hn[e]||(hn[e]=[]);~t.indexOf(r)||t.push(r)},removeEventListener:function(e,r){var t=hn[e],i=t&&t.indexOf(r);i>=0&&t.splice(i,1)},utils:{wrap:Lu,wrapYoyo:Iu,distribute:Vo,random:Go,snap:Wo,normalize:zu,getUnit:Ne,clamp:Eu,splitColor:$o,toArray:Ot,selector:_s,mapRange:Ho,pipe:Ru,unitize:Fu,interpolate:Nu,shuffle:Uo},install:Eo,effects:es,ticker:ct,updateRoot:Le.updateRoot,plugins:ft,globalTimeline:le,core:{PropTween:tt,globals:Ao,Tween:xe,Timeline:Le,Animation:zi,getCache:xr,_removeLinkedListItem:xn,reverting:function(){return Ie},context:function(e){return e&&ae&&(ae.data.push(e),e._ctx=ae),ae},suppressOverwrites:function(e){return ms=e}}};et("to,from,fromTo,delayedCall,set,killTweensOf",function(a){return mn[a]=xe[a]});ct.add(Le.updateRoot);ii=mn.to({},{duration:0});var sl=function(e,r){for(var t=e._pt;t&&t.p!==r&&t.op!==r&&t.fp!==r;)t=t._next;return t},ol=function(e,r){var t=e._targets,i,n,s;for(i in r)for(n=t.length;n--;)s=e._ptLookup[n][i],s&&(s=s.d)&&(s._pt&&(s=sl(s,i)),s&&s.modifier&&s.modifier(r[i],e,t[n],i))},ss=function(e,r){return{name:e,headless:1,rawVars:1,init:function(i,n,s){s._onInit=function(o){var u,l;if(Pe(n)&&(u={},et(n,function(f){return u[f]=1}),n=u),r){u={};for(l in n)u[l]=r(n[l]);n=u}ol(o,n)}}}},qe=mn.registerPlugin({name:"attr",init:function(e,r,t,i,n){var s,o,u;this.tween=t;for(s in r)u=e.getAttribute(s)||"",o=this.add(e,"setAttribute",(u||0)+"",r[s],i,n,0,0,s),o.op=s,o.b=u,this._props.push(s)},render:function(e,r){for(var t=r._pt;t;)Ie?t.set(t.t,t.p,t.b,t):t.r(e,t.d),t=t._next}},{name:"endArray",headless:1,init:function(e,r){for(var t=r.length;t--;)this.add(e,t,e[t]||0,r[t],0,0,0,0,0,1)}},ss("roundProps",ds),ss("modifiers"),ss("snap",Wo))||mn;xe.version=Le.version=qe.version="3.13.0";Do=1;ys()&&ui();var al=Q.Power0,ul=Q.Power1,ll=Q.Power2,fl=Q.Power3,cl=Q.Power4,hl=Q.Linear,_l=Q.Quad,dl=Q.Cubic,pl=Q.Quart,gl=Q.Quint,ml=Q.Strong,yl=Q.Elastic,vl=Q.Back,xl=Q.SteppedEase,wl=Q.Bounce,Tl=Q.Sine,bl=Q.Expo,Sl=Q.Circ;var oa,br,ci,Xs,Vr,kl,aa,Us,Cl=function(){return typeof window<"u"},or={},Ur=180/Math.PI,hi=Math.PI/180,fi=Math.atan2,ua=1e8,Vs=/([A-Z])/g,Pl=/(left|right|width|margin|padding|x)/i,Ol=/[\s,\(]\S/,Qt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Is=function(e,r){return r.set(r.t,r.p,Math.round((r.s+r.c*e)*1e4)/1e4+r.u,r)},Ml=function(e,r){return r.set(r.t,r.p,e===1?r.e:Math.round((r.s+r.c*e)*1e4)/1e4+r.u,r)},Dl=function(e,r){return r.set(r.t,r.p,e?Math.round((r.s+r.c*e)*1e4)/1e4+r.u:r.b,r)},El=function(e,r){var t=r.s+r.c*e;r.set(r.t,r.p,~~(t+(t<0?-.5:.5))+r.u,r)},ga=function(e,r){return r.set(r.t,r.p,e?r.e:r.b,r)},ma=function(e,r){return r.set(r.t,r.p,e!==1?r.b:r.e,r)},Al=function(e,r,t){return e.style[r]=t},Rl=function(e,r,t){return e.style.setProperty(r,t)},Fl=function(e,r,t){return e._gsap[r]=t},zl=function(e,r,t){return e._gsap.scaleX=e._gsap.scaleY=t},Ll=function(e,r,t,i,n){var s=e._gsap;s.scaleX=s.scaleY=t,s.renderTransform(n,s)},Il=function(e,r,t,i,n){var s=e._gsap;s[r]=t,s.renderTransform(n,s)},fe="transform",dt=fe+"Origin",Nl=function a(e,r){var t=this,i=this.target,n=i.style,s=i._gsap;if(e in or&&n){if(this.tfm=this.tfm||{},e!=="transform")e=Qt[e]||e,~e.indexOf(",")?e.split(",").forEach(function(o){return t.tfm[o]=sr(i,o)}):this.tfm[e]=s.x?s[e]:sr(i,e),e===dt&&(this.tfm.zOrigin=s.zOrigin);else return Qt.transform.split(",").forEach(function(o){return a.call(t,o,r)});if(this.props.indexOf(fe)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(dt,r,"")),e=fe}(n||r)&&this.props.push(e,r,n[e])},ya=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},Bl=function(){var e=this.props,r=this.target,t=r.style,i=r._gsap,n,s;for(n=0;n<e.length;n+=3)e[n+1]?e[n+1]===2?r[e[n]](e[n+2]):r[e[n]]=e[n+2]:e[n+2]?t[e[n]]=e[n+2]:t.removeProperty(e[n].substr(0,2)==="--"?e[n]:e[n].replace(Vs,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),n=Us(),(!n||!n.isStart)&&!t[fe]&&(ya(t),i.zOrigin&&t[dt]&&(t[dt]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},va=function(e,r){var t={target:e,props:[],revert:Bl,save:Nl};return e._gsap||qe.core.getCache(e),r&&e.style&&e.nodeType&&r.split(",").forEach(function(i){return t.save(i)}),t},xa,Ns=function(e,r){var t=br.createElementNS?br.createElementNS((r||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):br.createElement(e);return t&&t.style?t:br.createElement(e)},Mt=function a(e,r,t){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(Vs,"-$1").toLowerCase())||i.getPropertyValue(r)||!t&&a(e,_i(r)||r,1)||""},la="O,Moz,ms,Ms,Webkit".split(","),_i=function(e,r,t){var i=r||Vr,n=i.style,s=5;if(e in n&&!t)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);s--&&!(la[s]+e in n););return s<0?null:(s===3?"ms":s>=0?la[s]:"")+e},Bs=function(){Cl()&&window.document&&(oa=window,br=oa.document,ci=br.documentElement,Vr=Ns("div")||{style:{}},kl=Ns("div"),fe=_i(fe),dt=fe+"Origin",Vr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",xa=!!_i("perspective"),Us=qe.core.reverting,Xs=1)},fa=function(e){var r=e.ownerSVGElement,t=Ns("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),n;i.style.display="block",t.appendChild(i),ci.appendChild(t);try{n=i.getBBox()}catch{}return t.removeChild(i),ci.removeChild(t),n},ca=function(e,r){for(var t=r.length;t--;)if(e.hasAttribute(r[t]))return e.getAttribute(r[t])},wa=function(e){var r,t;try{r=e.getBBox()}catch{r=fa(e),t=1}return r&&(r.width||r.height)||t||(r=fa(e)),r&&!r.width&&!r.x&&!r.y?{x:+ca(e,["x","cx","x1"])||0,y:+ca(e,["y","cy","y1"])||0,width:0,height:0}:r},Ta=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&wa(e))},Wr=function(e,r){if(r){var t=e.style,i;r in or&&r!==dt&&(r=fe),t.removeProperty?(i=r.substr(0,2),(i==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),t.removeProperty(i==="--"?r:r.replace(Vs,"-$1").toLowerCase())):t.removeAttribute(r)}},Sr=function(e,r,t,i,n,s){var o=new tt(e._pt,r,t,0,1,s?ma:ga);return e._pt=o,o.b=i,o.e=n,e._props.push(t),o},ha={deg:1,rad:1,turn:1},Yl={grid:1,flex:1},kr=function a(e,r,t,i){var n=parseFloat(t)||0,s=(t+"").trim().substr((n+"").length)||"px",o=Vr.style,u=Pl.test(r),l=e.tagName.toLowerCase()==="svg",f=(l?"client":"offset")+(u?"Width":"Height"),_=100,d=i==="px",c=i==="%",p,h,m,T;if(i===s||!n||ha[i]||ha[s])return n;if(s!=="px"&&!d&&(n=a(e,r,t,"px")),T=e.getCTM&&Ta(e),(c||s==="%")&&(or[r]||~r.indexOf("adius")))return p=T?e.getBBox()[u?"width":"height"]:e[f],pe(c?n/p*_:n/100*p);if(o[u?"width":"height"]=_+(d?s:i),h=i!=="rem"&&~r.indexOf("adius")||i==="em"&&e.appendChild&&!l?e:e.parentNode,T&&(h=(e.ownerSVGElement||{}).parentNode),(!h||h===br||!h.appendChild)&&(h=br.body),m=h._gsap,m&&c&&m.width&&u&&m.time===ct.time&&!m.uncache)return pe(n/m.width*_);if(c&&(r==="height"||r==="width")){var w=e.style[r];e.style[r]=_+i,p=e[f],w?e.style[r]=w:Wr(e,r)}else(c||s==="%")&&!Yl[Mt(h,"display")]&&(o.position=Mt(e,"position")),h===e&&(o.position="static"),h.appendChild(Vr),p=Vr[f],h.removeChild(Vr),o.position="absolute";return u&&c&&(m=xr(h),m.time=ct.time,m.width=h[f]),pe(d?p*n/_:p&&n?_/p*n:0)},sr=function(e,r,t,i){var n;return Xs||Bs(),r in Qt&&r!=="transform"&&(r=Qt[r],~r.indexOf(",")&&(r=r.split(",")[0])),or[r]&&r!=="transform"?(n=Bi(e,i),n=r!=="transformOrigin"?n[r]:n.svg?n.origin:kn(Mt(e,dt))+" "+n.zOrigin+"px"):(n=e.style[r],(!n||n==="auto"||i||~(n+"").indexOf("calc("))&&(n=Sn[r]&&Sn[r](e,r,t)||Mt(e,r)||ks(e,r)||(r==="opacity"?1:0))),t&&!~(n+"").trim().indexOf(" ")?kr(e,r,n,t)+t:n},Xl=function(e,r,t,i){if(!t||t==="none"){var n=_i(r,e,1),s=n&&Mt(e,n,1);s&&s!==t?(r=n,t=s):r==="borderColor"&&(t=Mt(e,"borderTopColor"))}var o=new tt(this._pt,e.style,r,0,1,Rs),u=0,l=0,f,_,d,c,p,h,m,T,w,S,v,b;if(o.b=t,o.e=i,t+="",i+="",i.substring(0,6)==="var(--"&&(i=Mt(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(h=e.style[r],e.style[r]=i,i=Mt(e,r)||i,h?e.style[r]=h:Wr(e,r)),f=[t,i],Ps(f),t=f[0],i=f[1],d=t.match(Ir)||[],b=i.match(Ir)||[],b.length){for(;_=Ir.exec(i);)m=_[0],w=i.substring(u,_.index),p?p=(p+1)%5:(w.substr(-5)==="rgba("||w.substr(-5)==="hsla(")&&(p=1),m!==(h=d[l++]||"")&&(c=parseFloat(h)||0,v=h.substr((c+"").length),m.charAt(1)==="="&&(m=Nr(c,m)+v),T=parseFloat(m),S=m.substr((T+"").length),u=Ir.lastIndex-S.length,S||(S=S||_t.units[r]||v,u===i.length&&(i+=S,o.e+=S)),v!==S&&(c=kr(e,r,h,S)||0),o._pt={_next:o._pt,p:w||l===1?w:",",s:c,c:T-c,m:p&&p<4||r==="zIndex"?Math.round:0});o.c=u<i.length?i.substring(u,i.length):""}else o.r=r==="display"&&i==="none"?ma:ga;return xs.test(i)&&(o.e=0),this._pt=o,o},_a={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Ul=function(e){var r=e.split(" "),t=r[0],i=r[1]||"50%";return(t==="top"||t==="bottom"||i==="left"||i==="right")&&(e=t,t=i,i=e),r[0]=_a[t]||t,r[1]=_a[i]||i,r.join(" ")},Vl=function(e,r){if(r.tween&&r.tween._time===r.tween._dur){var t=r.t,i=t.style,n=r.u,s=t._gsap,o,u,l;if(n==="all"||n===!0)i.cssText="",u=1;else for(n=n.split(","),l=n.length;--l>-1;)o=n[l],or[o]&&(u=1,o=o==="transformOrigin"?dt:fe),Wr(t,o);u&&(Wr(t,fe),s&&(s.svg&&t.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Bi(t,1),s.uncache=1,ya(i)))}},Sn={clearProps:function(e,r,t,i,n){if(n.data!=="isFromStart"){var s=e._pt=new tt(e._pt,r,t,0,0,Vl);return s.u=i,s.pr=-10,s.tween=n,e._props.push(t),1}}},Ni=[1,0,0,1,0,0],ba={},Sa=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},da=function(e){var r=Mt(e,fe);return Sa(r)?Ni:r.substr(7).match(vs).map(pe)},Ws=function(e,r){var t=e._gsap||xr(e),i=e.style,n=da(e),s,o,u,l;return t.svg&&e.getAttribute("transform")?(u=e.transform.baseVal.consolidate().matrix,n=[u.a,u.b,u.c,u.d,u.e,u.f],n.join(",")==="1,0,0,1,0,0"?Ni:n):(n===Ni&&!e.offsetParent&&e!==ci&&!t.svg&&(u=i.display,i.display="block",s=e.parentNode,(!s||!e.offsetParent&&!e.getBoundingClientRect().width)&&(l=1,o=e.nextElementSibling,ci.appendChild(e)),n=da(e),u?i.display=u:Wr(e,"display"),l&&(o?s.insertBefore(e,o):s?s.appendChild(e):ci.removeChild(e))),r&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},Ys=function(e,r,t,i,n,s){var o=e._gsap,u=n||Ws(e,!0),l=o.xOrigin||0,f=o.yOrigin||0,_=o.xOffset||0,d=o.yOffset||0,c=u[0],p=u[1],h=u[2],m=u[3],T=u[4],w=u[5],S=r.split(" "),v=parseFloat(S[0])||0,b=parseFloat(S[1])||0,C,x,O,k;t?u!==Ni&&(x=c*m-p*h)&&(O=v*(m/x)+b*(-h/x)+(h*w-m*T)/x,k=v*(-p/x)+b*(c/x)-(c*w-p*T)/x,v=O,b=k):(C=wa(e),v=C.x+(~S[0].indexOf("%")?v/100*C.width:v),b=C.y+(~(S[1]||S[0]).indexOf("%")?b/100*C.height:b)),i||i!==!1&&o.smooth?(T=v-l,w=b-f,o.xOffset=_+(T*c+w*h)-T,o.yOffset=d+(T*p+w*m)-w):o.xOffset=o.yOffset=0,o.xOrigin=v,o.yOrigin=b,o.smooth=!!i,o.origin=r,o.originIsAbsolute=!!t,e.style[dt]="0px 0px",s&&(Sr(s,o,"xOrigin",l,v),Sr(s,o,"yOrigin",f,b),Sr(s,o,"xOffset",_,o.xOffset),Sr(s,o,"yOffset",d,o.yOffset)),e.setAttribute("data-svg-origin",v+" "+b)},Bi=function(e,r){var t=e._gsap||new Os(e);if("x"in t&&!r&&!t.uncache)return t;var i=e.style,n=t.scaleX<0,s="px",o="deg",u=getComputedStyle(e),l=Mt(e,dt)||"0",f,_,d,c,p,h,m,T,w,S,v,b,C,x,O,k,P,z,M,G,V,K,q,F,Z,ne,g,se,Ze,Ft,ce,Re;return f=_=d=h=m=T=w=S=v=0,c=p=1,t.svg=!!(e.getCTM&&Ta(e)),u.translate&&((u.translate!=="none"||u.scale!=="none"||u.rotate!=="none")&&(i[fe]=(u.translate!=="none"?"translate3d("+(u.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(u.rotate!=="none"?"rotate("+u.rotate+") ":"")+(u.scale!=="none"?"scale("+u.scale.split(" ").join(",")+") ":"")+(u[fe]!=="none"?u[fe]:"")),i.scale=i.rotate=i.translate="none"),x=Ws(e,t.svg),t.svg&&(t.uncache?(Z=e.getBBox(),l=t.xOrigin-Z.x+"px "+(t.yOrigin-Z.y)+"px",F=""):F=!r&&e.getAttribute("data-svg-origin"),Ys(e,F||l,!!F||t.originIsAbsolute,t.smooth!==!1,x)),b=t.xOrigin||0,C=t.yOrigin||0,x!==Ni&&(z=x[0],M=x[1],G=x[2],V=x[3],f=K=x[4],_=q=x[5],x.length===6?(c=Math.sqrt(z*z+M*M),p=Math.sqrt(V*V+G*G),h=z||M?fi(M,z)*Ur:0,w=G||V?fi(G,V)*Ur+h:0,w&&(p*=Math.abs(Math.cos(w*hi))),t.svg&&(f-=b-(b*z+C*G),_-=C-(b*M+C*V))):(Re=x[6],Ft=x[7],g=x[8],se=x[9],Ze=x[10],ce=x[11],f=x[12],_=x[13],d=x[14],O=fi(Re,Ze),m=O*Ur,O&&(k=Math.cos(-O),P=Math.sin(-O),F=K*k+g*P,Z=q*k+se*P,ne=Re*k+Ze*P,g=K*-P+g*k,se=q*-P+se*k,Ze=Re*-P+Ze*k,ce=Ft*-P+ce*k,K=F,q=Z,Re=ne),O=fi(-G,Ze),T=O*Ur,O&&(k=Math.cos(-O),P=Math.sin(-O),F=z*k-g*P,Z=M*k-se*P,ne=G*k-Ze*P,ce=V*P+ce*k,z=F,M=Z,G=ne),O=fi(M,z),h=O*Ur,O&&(k=Math.cos(O),P=Math.sin(O),F=z*k+M*P,Z=K*k+q*P,M=M*k-z*P,q=q*k-K*P,z=F,K=Z),m&&Math.abs(m)+Math.abs(h)>359.9&&(m=h=0,T=180-T),c=pe(Math.sqrt(z*z+M*M+G*G)),p=pe(Math.sqrt(q*q+Re*Re)),O=fi(K,q),w=Math.abs(O)>2e-4?O*Ur:0,v=ce?1/(ce<0?-ce:ce):0),t.svg&&(F=e.getAttribute("transform"),t.forceCSS=e.setAttribute("transform","")||!Sa(Mt(e,fe)),F&&e.setAttribute("transform",F))),Math.abs(w)>90&&Math.abs(w)<270&&(n?(c*=-1,w+=h<=0?180:-180,h+=h<=0?180:-180):(p*=-1,w+=w<=0?180:-180)),r=r||t.uncache,t.x=f-((t.xPercent=f&&(!r&&t.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-f)?-50:0)))?e.offsetWidth*t.xPercent/100:0)+s,t.y=_-((t.yPercent=_&&(!r&&t.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-_)?-50:0)))?e.offsetHeight*t.yPercent/100:0)+s,t.z=d+s,t.scaleX=pe(c),t.scaleY=pe(p),t.rotation=pe(h)+o,t.rotationX=pe(m)+o,t.rotationY=pe(T)+o,t.skewX=w+o,t.skewY=S+o,t.transformPerspective=v+s,(t.zOrigin=parseFloat(l.split(" ")[2])||!r&&t.zOrigin||0)&&(i[dt]=kn(l)),t.xOffset=t.yOffset=0,t.force3D=_t.force3D,t.renderTransform=t.svg?Gl:xa?ka:Wl,t.uncache=0,t},kn=function(e){return(e=e.split(" "))[0]+" "+e[1]},Ls=function(e,r,t){var i=Ne(r);return pe(parseFloat(r)+parseFloat(kr(e,"x",t+"px",i)))+i},Wl=function(e,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,ka(e,r)},Yr="0deg",Ii="0px",Xr=") ",ka=function(e,r){var t=r||this,i=t.xPercent,n=t.yPercent,s=t.x,o=t.y,u=t.z,l=t.rotation,f=t.rotationY,_=t.rotationX,d=t.skewX,c=t.skewY,p=t.scaleX,h=t.scaleY,m=t.transformPerspective,T=t.force3D,w=t.target,S=t.zOrigin,v="",b=T==="auto"&&e&&e!==1||T===!0;if(S&&(_!==Yr||f!==Yr)){var C=parseFloat(f)*hi,x=Math.sin(C),O=Math.cos(C),k;C=parseFloat(_)*hi,k=Math.cos(C),s=Ls(w,s,x*k*-S),o=Ls(w,o,-Math.sin(C)*-S),u=Ls(w,u,O*k*-S+S)}m!==Ii&&(v+="perspective("+m+Xr),(i||n)&&(v+="translate("+i+"%, "+n+"%) "),(b||s!==Ii||o!==Ii||u!==Ii)&&(v+=u!==Ii||b?"translate3d("+s+", "+o+", "+u+") ":"translate("+s+", "+o+Xr),l!==Yr&&(v+="rotate("+l+Xr),f!==Yr&&(v+="rotateY("+f+Xr),_!==Yr&&(v+="rotateX("+_+Xr),(d!==Yr||c!==Yr)&&(v+="skew("+d+", "+c+Xr),(p!==1||h!==1)&&(v+="scale("+p+", "+h+Xr),w.style[fe]=v||"translate(0, 0)"},Gl=function(e,r){var t=r||this,i=t.xPercent,n=t.yPercent,s=t.x,o=t.y,u=t.rotation,l=t.skewX,f=t.skewY,_=t.scaleX,d=t.scaleY,c=t.target,p=t.xOrigin,h=t.yOrigin,m=t.xOffset,T=t.yOffset,w=t.forceCSS,S=parseFloat(s),v=parseFloat(o),b,C,x,O,k;u=parseFloat(u),l=parseFloat(l),f=parseFloat(f),f&&(f=parseFloat(f),l+=f,u+=f),u||l?(u*=hi,l*=hi,b=Math.cos(u)*_,C=Math.sin(u)*_,x=Math.sin(u-l)*-d,O=Math.cos(u-l)*d,l&&(f*=hi,k=Math.tan(l-f),k=Math.sqrt(1+k*k),x*=k,O*=k,f&&(k=Math.tan(f),k=Math.sqrt(1+k*k),b*=k,C*=k)),b=pe(b),C=pe(C),x=pe(x),O=pe(O)):(b=_,O=d,C=x=0),(S&&!~(s+"").indexOf("px")||v&&!~(o+"").indexOf("px"))&&(S=kr(c,"x",s,"px"),v=kr(c,"y",o,"px")),(p||h||m||T)&&(S=pe(S+p-(p*b+h*x)+m),v=pe(v+h-(p*C+h*O)+T)),(i||n)&&(k=c.getBBox(),S=pe(S+i/100*k.width),v=pe(v+n/100*k.height)),k="matrix("+b+","+C+","+x+","+O+","+S+","+v+")",c.setAttribute("transform",k),w&&(c.style[fe]=k)},ql=function(e,r,t,i,n){var s=360,o=Pe(n),u=parseFloat(n)*(o&&~n.indexOf("rad")?Ur:1),l=u-i,f=i+l+"deg",_,d;return o&&(_=n.split("_")[1],_==="short"&&(l%=s,l!==l%(s/2)&&(l+=l<0?s:-s)),_==="cw"&&l<0?l=(l+s*ua)%s-~~(l/s)*s:_==="ccw"&&l>0&&(l=(l-s*ua)%s-~~(l/s)*s)),e._pt=d=new tt(e._pt,r,t,i,l,Ml),d.e=f,d.u="deg",e._props.push(t),d},pa=function(e,r){for(var t in r)e[t]=r[t];return e},Hl=function(e,r,t){var i=pa({},t._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=t.style,o,u,l,f,_,d,c,p;i.svg?(l=t.getAttribute("transform"),t.setAttribute("transform",""),s[fe]=r,o=Bi(t,1),Wr(t,fe),t.setAttribute("transform",l)):(l=getComputedStyle(t)[fe],s[fe]=r,o=Bi(t,1),s[fe]=l);for(u in or)l=i[u],f=o[u],l!==f&&n.indexOf(u)<0&&(c=Ne(l),p=Ne(f),_=c!==p?kr(t,u,l,p):parseFloat(l),d=parseFloat(f),e._pt=new tt(e._pt,o,u,_,d-_,Is),e._pt.u=p||0,e._props.push(u));pa(o,i)};et("padding,margin,Width,Radius",function(a,e){var r="Top",t="Right",i="Bottom",n="Left",s=(e<3?[r,t,i,n]:[r+n,r+t,i+t,i+n]).map(function(o){return e<2?a+o:"border"+o+a});Sn[e>1?"border"+a:a]=function(o,u,l,f,_){var d,c;if(arguments.length<4)return d=s.map(function(p){return sr(o,p,l)}),c=d.join(" "),c.split(d[0]).length===5?d[0]:c;d=(f+"").split(" "),c={},s.forEach(function(p,h){return c[p]=d[h]=d[h]||d[(h-1)/2|0]}),o.init(u,c,_)}});var Gs={name:"css",register:Bs,targetTest:function(e){return e.style&&e.nodeType},init:function(e,r,t,i,n){var s=this._props,o=e.style,u=t.vars.startAt,l,f,_,d,c,p,h,m,T,w,S,v,b,C,x,O;Xs||Bs(),this.styles=this.styles||va(e),O=this.styles.props,this.tween=t;for(h in r)if(h!=="autoRound"&&(f=r[h],!(ft[h]&&Ds(h,r,t,i,e,n)))){if(c=typeof f,p=Sn[h],c==="function"&&(f=f.call(t,i,e,n),c=typeof f),c==="string"&&~f.indexOf("random(")&&(f=li(f)),p)p(this,e,h,f,t)&&(x=1);else if(h.substr(0,2)==="--")l=(getComputedStyle(e).getPropertyValue(h)+"").trim(),f+="",ir.lastIndex=0,ir.test(l)||(m=Ne(l),T=Ne(f)),T?m!==T&&(l=kr(e,h,l,T)+T):m&&(f+=m),this.add(o,"setProperty",l,f,i,n,0,0,h),s.push(h),O.push(h,0,o[h]);else if(c!=="undefined"){if(u&&h in u?(l=typeof u[h]=="function"?u[h].call(t,i,e,n):u[h],Pe(l)&&~l.indexOf("random(")&&(l=li(l)),Ne(l+"")||l==="auto"||(l+=_t.units[h]||Ne(sr(e,h))||""),(l+"").charAt(1)==="="&&(l=sr(e,h))):l=sr(e,h),d=parseFloat(l),w=c==="string"&&f.charAt(1)==="="&&f.substr(0,2),w&&(f=f.substr(2)),_=parseFloat(f),h in Qt&&(h==="autoAlpha"&&(d===1&&sr(e,"visibility")==="hidden"&&_&&(d=0),O.push("visibility",0,o.visibility),Sr(this,o,"visibility",d?"inherit":"hidden",_?"inherit":"hidden",!_)),h!=="scale"&&h!=="transform"&&(h=Qt[h],~h.indexOf(",")&&(h=h.split(",")[0]))),S=h in or,S){if(this.styles.save(h),c==="string"&&f.substring(0,6)==="var(--"&&(f=Mt(e,f.substring(4,f.indexOf(")"))),_=parseFloat(f)),v||(b=e._gsap,b.renderTransform&&!r.parseTransform||Bi(e,r.parseTransform),C=r.smoothOrigin!==!1&&b.smooth,v=this._pt=new tt(this._pt,o,fe,0,1,b.renderTransform,b,0,-1),v.dep=1),h==="scale")this._pt=new tt(this._pt,b,"scaleY",b.scaleY,(w?Nr(b.scaleY,w+_):_)-b.scaleY||0,Is),this._pt.u=0,s.push("scaleY",h),h+="X";else if(h==="transformOrigin"){O.push(dt,0,o[dt]),f=Ul(f),b.svg?Ys(e,f,0,C,0,this):(T=parseFloat(f.split(" ")[2])||0,T!==b.zOrigin&&Sr(this,b,"zOrigin",b.zOrigin,T),Sr(this,o,h,kn(l),kn(f)));continue}else if(h==="svgOrigin"){Ys(e,f,1,C,0,this);continue}else if(h in ba){ql(this,b,h,d,w?Nr(d,w+f):f);continue}else if(h==="smoothOrigin"){Sr(this,b,"smooth",b.smooth,f);continue}else if(h==="force3D"){b[h]=f;continue}else if(h==="transform"){Hl(this,f,e);continue}}else h in o||(h=_i(h)||h);if(S||(_||_===0)&&(d||d===0)&&!Ol.test(f)&&h in o)m=(l+"").substr((d+"").length),_||(_=0),T=Ne(f)||(h in _t.units?_t.units[h]:m),m!==T&&(d=kr(e,h,l,T)),this._pt=new tt(this._pt,S?b:o,h,d,(w?Nr(d,w+_):_)-d,!S&&(T==="px"||h==="zIndex")&&r.autoRound!==!1?El:Is),this._pt.u=T||0,m!==T&&T!=="%"&&(this._pt.b=l,this._pt.r=Dl);else if(h in o)Xl.call(this,e,h,l,w?w+f:f);else if(h in e)this.add(e,h,l||e[h],w?w+f:f,i,n);else if(h!=="parseTransform"){vn(h,f);continue}S||(h in o?O.push(h,0,o[h]):typeof e[h]=="function"?O.push(h,2,e[h]()):O.push(h,1,l||e[h])),s.push(h)}}x&&zs(this)},render:function(e,r){if(r.tween._time||!Us())for(var t=r._pt;t;)t.r(e,t.d),t=t._next;else r.styles.revert()},get:sr,aliases:Qt,getSetter:function(e,r,t){var i=Qt[r];return i&&i.indexOf(",")<0&&(r=i),r in or&&r!==dt&&(e._gsap.x||sr(e,"x"))?t&&aa===t?r==="scale"?zl:Fl:(aa=t||{})&&(r==="scale"?Ll:Il):e.style&&!yn(e.style[r])?Al:~r.indexOf("-")?Rl:bn(e,r)},core:{_removeProperty:Wr,_getMatrix:Ws}};qe.utils.checkPrefix=_i;qe.core.getStyleSaver=va;(function(a,e,r,t){var i=et(a+","+e+","+r,function(n){or[n]=1});et(e,function(n){_t.units[n]="deg",ba[n]=1}),Qt[i[13]]=a+","+e,et(t,function(n){var s=n.split(":");Qt[s[1]]=i[s[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");et("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(a){_t.units[a]="px"});qe.registerPlugin(Gs);var Dt=qe.registerPlugin(Gs)||qe,wf=Dt.core.Tween;function Ca(a,e){for(var r=0;r<e.length;r++){var t=e[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(a,t.key,t)}}function Ql(a,e,r){return e&&Ca(a.prototype,e),r&&Ca(a,r),a}var Be,On,Kl,wt,Cr,Pr,pi,Oa,Gr,Xi,Ma,ar,Yt,Da,Ea=function(){return Be||typeof window<"u"&&(Be=window.gsap)&&Be.registerPlugin&&Be},Aa=1,di=[],Y=[],Xt=[],Ui=Date.now,qs=function(e,r){return r},$l=function(){var e=Xi.core,r=e.bridge||{},t=e._scrollers,i=e._proxies;t.push.apply(t,Y),i.push.apply(i,Xt),Y=t,Xt=i,qs=function(s,o){return r[s](o)}},lr=function(e,r){return~Xt.indexOf(e)&&Xt[Xt.indexOf(e)+1][r]},Vi=function(e){return!!~Ma.indexOf(e)},it=function(e,r,t,i,n){return e.addEventListener(r,t,{passive:i!==!1,capture:!!n})},rt=function(e,r,t,i){return e.removeEventListener(r,t,!!i)},Cn="scrollLeft",Pn="scrollTop",Hs=function(){return ar&&ar.isPressed||Y.cache++},Mn=function(e,r){var t=function i(n){if(n||n===0){Aa&&(wt.history.scrollRestoration="manual");var s=ar&&ar.isPressed;n=i.v=Math.round(n)||(ar&&ar.iOS?1:0),e(n),i.cacheID=Y.cache,s&&qs("ss",n)}else(r||Y.cache!==i.cacheID||qs("ref"))&&(i.cacheID=Y.cache,i.v=e());return i.v+i.offset};return t.offset=0,e&&t},He={s:Cn,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Mn(function(a){return arguments.length?wt.scrollTo(a,Se.sc()):wt.pageXOffset||Cr[Cn]||Pr[Cn]||pi[Cn]||0})},Se={s:Pn,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:He,sc:Mn(function(a){return arguments.length?wt.scrollTo(He.sc(),a):wt.pageYOffset||Cr[Pn]||Pr[Pn]||pi[Pn]||0})},nt=function(e,r){return(r&&r._ctx&&r._ctx.selector||Be.utils.toArray)(e)[0]||(typeof e=="string"&&Be.config().nullTargetWarn!==!1?console.warn("Element not found:",e):null)},Zl=function(e,r){for(var t=r.length;t--;)if(r[t]===e||r[t].contains(e))return!0;return!1},ur=function(e,r){var t=r.s,i=r.sc;Vi(e)&&(e=Cr.scrollingElement||Pr);var n=Y.indexOf(e),s=i===Se.sc?1:2;!~n&&(n=Y.push(e)-1),Y[n+s]||it(e,"scroll",Hs);var o=Y[n+s],u=o||(Y[n+s]=Mn(lr(e,t),!0)||(Vi(e)?i:Mn(function(l){return arguments.length?e[t]=l:e[t]})));return u.target=e,o||(u.smooth=Be.getProperty(e,"scrollBehavior")==="smooth"),u},Dn=function(e,r,t){var i=e,n=e,s=Ui(),o=s,u=r||50,l=Math.max(500,u*3),f=function(p,h){var m=Ui();h||m-s>u?(n=i,i=p,o=s,s=m):t?i+=p:i=n+(p-n)/(m-o)*(s-o)},_=function(){n=i=t?0:i,o=s=0},d=function(p){var h=o,m=n,T=Ui();return(p||p===0)&&p!==i&&f(p),s===o||T-o>l?0:(i+(t?m:-m))/((t?T:s)-h)*1e3};return{update:f,reset:_,getVelocity:d}},Yi=function(e,r){return r&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},Pa=function(e){var r=Math.max.apply(Math,e),t=Math.min.apply(Math,e);return Math.abs(r)>=Math.abs(t)?r:t},Ra=function(){Xi=Be.core.globals().ScrollTrigger,Xi&&Xi.core&&$l()},Fa=function(e){return Be=e||Ea(),!On&&Be&&typeof document<"u"&&document.body&&(wt=window,Cr=document,Pr=Cr.documentElement,pi=Cr.body,Ma=[wt,Cr,Pr,pi],Kl=Be.utils.clamp,Da=Be.core.context||function(){},Gr="onpointerenter"in pi?"pointer":"mouse",Oa=ge.isTouch=wt.matchMedia&&wt.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in wt||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Yt=ge.eventTypes=("ontouchstart"in Pr?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Pr?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return Aa=0},500),Ra(),On=1),On};He.op=Se;Y.cache=0;var ge=function(){function a(r){this.init(r)}var e=a.prototype;return e.init=function(t){On||Fa(Be)||console.warn("Please gsap.registerPlugin(Observer)"),Xi||Ra();var i=t.tolerance,n=t.dragMinimum,s=t.type,o=t.target,u=t.lineHeight,l=t.debounce,f=t.preventDefault,_=t.onStop,d=t.onStopDelay,c=t.ignore,p=t.wheelSpeed,h=t.event,m=t.onDragStart,T=t.onDragEnd,w=t.onDrag,S=t.onPress,v=t.onRelease,b=t.onRight,C=t.onLeft,x=t.onUp,O=t.onDown,k=t.onChangeX,P=t.onChangeY,z=t.onChange,M=t.onToggleX,G=t.onToggleY,V=t.onHover,K=t.onHoverEnd,q=t.onMove,F=t.ignoreCheck,Z=t.isNormalizer,ne=t.onGestureStart,g=t.onGestureEnd,se=t.onWheel,Ze=t.onEnable,Ft=t.onDisable,ce=t.onClick,Re=t.scrollSpeed,Ye=t.capture,we=t.allowClicks,Je=t.lockAxis,Xe=t.onLockAxis;this.target=o=nt(o)||Pr,this.vars=t,c&&(c=Be.utils.toArray(c)),i=i||1e-9,n=n||0,p=p||1,Re=Re||1,s=s||"wheel,touch,pointer",l=l!==!1,u||(u=parseFloat(wt.getComputedStyle(pi).lineHeight)||22);var hr,je,ut,$,me,lt,pt,y=this,gt=0,Zt=0,_r=t.passive||!f&&t.passive!==!1,he=ur(o,He),Jt=ur(o,Se),dr=he(),Mr=Jt(),Me=~s.indexOf("touch")&&!~s.indexOf("pointer")&&Yt[0]==="pointerdown",pr=Vi(o),ye=o.ownerDocument||Cr,zt=[0,0,0],kt=[0,0,0],jt=0,bi=function(){return jt=Ui()},Te=function(R,J){return(y.event=R)&&c&&Zl(R.target,c)||J&&Me&&R.pointerType!=="touch"||F&&F(R,J)},on=function(){y._vx.reset(),y._vy.reset(),je.pause(),_&&_(y)},er=function(){var R=y.deltaX=Pa(zt),J=y.deltaY=Pa(kt),D=Math.abs(R)>=i,L=Math.abs(J)>=i;z&&(D||L)&&z(y,R,J,zt,kt),D&&(b&&y.deltaX>0&&b(y),C&&y.deltaX<0&&C(y),k&&k(y),M&&y.deltaX<0!=gt<0&&M(y),gt=y.deltaX,zt[0]=zt[1]=zt[2]=0),L&&(O&&y.deltaY>0&&O(y),x&&y.deltaY<0&&x(y),P&&P(y),G&&y.deltaY<0!=Zt<0&&G(y),Zt=y.deltaY,kt[0]=kt[1]=kt[2]=0),($||ut)&&(q&&q(y),ut&&(m&&ut===1&&m(y),w&&w(y),ut=0),$=!1),lt&&!(lt=!1)&&Xe&&Xe(y),me&&(se(y),me=!1),hr=0},ei=function(R,J,D){zt[D]+=R,kt[D]+=J,y._vx.update(R),y._vy.update(J),l?hr||(hr=requestAnimationFrame(er)):er()},ti=function(R,J){Je&&!pt&&(y.axis=pt=Math.abs(R)>Math.abs(J)?"x":"y",lt=!0),pt!=="y"&&(zt[2]+=R,y._vx.update(R,!0)),pt!=="x"&&(kt[2]+=J,y._vy.update(J,!0)),l?hr||(hr=requestAnimationFrame(er)):er()},gr=function(R){if(!Te(R,1)){R=Yi(R,f);var J=R.clientX,D=R.clientY,L=J-y.x,A=D-y.y,I=y.isDragging;y.x=J,y.y=D,(I||(L||A)&&(Math.abs(y.startX-J)>=n||Math.abs(y.startY-D)>=n))&&(ut=I?2:1,I||(y.isDragging=!0),ti(L,A))}},Dr=y.onPress=function(N){Te(N,1)||N&&N.button||(y.axis=pt=null,je.pause(),y.isPressed=!0,N=Yi(N),gt=Zt=0,y.startX=y.x=N.clientX,y.startY=y.y=N.clientY,y._vx.reset(),y._vy.reset(),it(Z?o:ye,Yt[1],gr,_r,!0),y.deltaX=y.deltaY=0,S&&S(y))},W=y.onRelease=function(N){if(!Te(N,1)){rt(Z?o:ye,Yt[1],gr,!0);var R=!isNaN(y.y-y.startY),J=y.isDragging,D=J&&(Math.abs(y.x-y.startX)>3||Math.abs(y.y-y.startY)>3),L=Yi(N);!D&&R&&(y._vx.reset(),y._vy.reset(),f&&we&&Be.delayedCall(.08,function(){if(Ui()-jt>300&&!N.defaultPrevented){if(N.target.click)N.target.click();else if(ye.createEvent){var A=ye.createEvent("MouseEvents");A.initMouseEvent("click",!0,!0,wt,1,L.screenX,L.screenY,L.clientX,L.clientY,!1,!1,!1,!1,0,null),N.target.dispatchEvent(A)}}})),y.isDragging=y.isGesturing=y.isPressed=!1,_&&J&&!Z&&je.restart(!0),ut&&er(),T&&J&&T(y),v&&v(y,D)}},Er=function(R){return R.touches&&R.touches.length>1&&(y.isGesturing=!0)&&ne(R,y.isDragging)},Lt=function(){return(y.isGesturing=!1)||g(y)},It=function(R){if(!Te(R)){var J=he(),D=Jt();ei((J-dr)*Re,(D-Mr)*Re,1),dr=J,Mr=D,_&&je.restart(!0)}},Nt=function(R){if(!Te(R)){R=Yi(R,f),se&&(me=!0);var J=(R.deltaMode===1?u:R.deltaMode===2?wt.innerHeight:1)*p;ei(R.deltaX*J,R.deltaY*J,0),_&&!Z&&je.restart(!0)}},Ar=function(R){if(!Te(R)){var J=R.clientX,D=R.clientY,L=J-y.x,A=D-y.y;y.x=J,y.y=D,$=!0,_&&je.restart(!0),(L||A)&&ti(L,A)}},ri=function(R){y.event=R,V(y)},tr=function(R){y.event=R,K(y)},Si=function(R){return Te(R)||Yi(R,f)&&ce(y)};je=y._dc=Be.delayedCall(d||.25,on).pause(),y.deltaX=y.deltaY=0,y._vx=Dn(0,50,!0),y._vy=Dn(0,50,!0),y.scrollX=he,y.scrollY=Jt,y.isDragging=y.isGesturing=y.isPressed=!1,Da(this),y.enable=function(N){return y.isEnabled||(it(pr?ye:o,"scroll",Hs),s.indexOf("scroll")>=0&&it(pr?ye:o,"scroll",It,_r,Ye),s.indexOf("wheel")>=0&&it(o,"wheel",Nt,_r,Ye),(s.indexOf("touch")>=0&&Oa||s.indexOf("pointer")>=0)&&(it(o,Yt[0],Dr,_r,Ye),it(ye,Yt[2],W),it(ye,Yt[3],W),we&&it(o,"click",bi,!0,!0),ce&&it(o,"click",Si),ne&&it(ye,"gesturestart",Er),g&&it(ye,"gestureend",Lt),V&&it(o,Gr+"enter",ri),K&&it(o,Gr+"leave",tr),q&&it(o,Gr+"move",Ar)),y.isEnabled=!0,y.isDragging=y.isGesturing=y.isPressed=$=ut=!1,y._vx.reset(),y._vy.reset(),dr=he(),Mr=Jt(),N&&N.type&&Dr(N),Ze&&Ze(y)),y},y.disable=function(){y.isEnabled&&(di.filter(function(N){return N!==y&&Vi(N.target)}).length||rt(pr?ye:o,"scroll",Hs),y.isPressed&&(y._vx.reset(),y._vy.reset(),rt(Z?o:ye,Yt[1],gr,!0)),rt(pr?ye:o,"scroll",It,Ye),rt(o,"wheel",Nt,Ye),rt(o,Yt[0],Dr,Ye),rt(ye,Yt[2],W),rt(ye,Yt[3],W),rt(o,"click",bi,!0),rt(o,"click",Si),rt(ye,"gesturestart",Er),rt(ye,"gestureend",Lt),rt(o,Gr+"enter",ri),rt(o,Gr+"leave",tr),rt(o,Gr+"move",Ar),y.isEnabled=y.isPressed=y.isDragging=!1,Ft&&Ft(y))},y.kill=y.revert=function(){y.disable();var N=di.indexOf(y);N>=0&&di.splice(N,1),ar===y&&(ar=0)},di.push(y),Z&&Vi(o)&&(ar=y),y.enable(h)},Ql(a,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),a}();ge.version="3.13.0";ge.create=function(a){return new ge(a)};ge.register=Fa;ge.getAll=function(){return di.slice()};ge.getById=function(a){return di.filter(function(e){return e.vars.id===a})[0]};Ea()&&Be.registerPlugin(ge);var E,yi,U,ie,St,j,uo,qn,rn,$i,Gi,En,Qe,$n,to,ot,za,La,vi,Ja,Qs,ja,st,ro,eu,tu,Or,io,lo,xi,fo,Hn,no,Ks,An=1,Ke=Date.now,$s=Ke(),Rt=0,qi=0,Ia=function(e,r,t){var i=bt(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return t["_"+r+"Clamp"]=i,i?e.substr(6,e.length-7):e},Na=function(e,r){return r&&(!bt(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},Jl=function a(){return qi&&requestAnimationFrame(a)},Ba=function(){return $n=1},Ya=function(){return $n=0},Kt=function(e){return e},Hi=function(e){return Math.round(e*1e5)/1e5||0},ru=function(){return typeof window<"u"},iu=function(){return E||ru()&&(E=window.gsap)&&E.registerPlugin&&E},Zr=function(e){return!!~uo.indexOf(e)},nu=function(e){return(e==="Height"?fo:U["inner"+e])||St["client"+e]||j["client"+e]},su=function(e){return lr(e,"getBoundingClientRect")||(Zr(e)?function(){return Gn.width=U.innerWidth,Gn.height=fo,Gn}:function(){return fr(e)})},jl=function(e,r,t){var i=t.d,n=t.d2,s=t.a;return(s=lr(e,"getBoundingClientRect"))?function(){return s()[i]}:function(){return(r?nu(n):e["client"+n])||0}},ef=function(e,r){return!r||~Xt.indexOf(e)?su(e):function(){return Gn}},$t=function(e,r){var t=r.s,i=r.d2,n=r.d,s=r.a;return Math.max(0,(t="scroll"+i)&&(s=lr(e,t))?s()-su(e)()[n]:Zr(e)?(St[t]||j[t])-nu(i):e[t]-e["offset"+i])},Rn=function(e,r){for(var t=0;t<vi.length;t+=3)(!r||~r.indexOf(vi[t+1]))&&e(vi[t],vi[t+1],vi[t+2])},bt=function(e){return typeof e=="string"},$e=function(e){return typeof e=="function"},Qi=function(e){return typeof e=="number"},qr=function(e){return typeof e=="object"},Wi=function(e,r,t){return e&&e.progress(r?0:1)&&t&&e.pause()},Zs=function(e,r){if(e.enabled){var t=e._ctx?e._ctx.add(function(){return r(e)}):r(e);t&&t.totalTime&&(e.callbackAnimation=t)}},gi=Math.abs,ou="left",au="top",co="right",ho="bottom",Qr="width",Kr="height",Zi="Right",Ji="Left",ji="Top",en="Bottom",ke="padding",Et="margin",Ti="Width",_o="Height",Oe="px",At=function(e){return U.getComputedStyle(e)},tf=function(e){var r=At(e).position;e.style.position=r==="absolute"||r==="fixed"?r:"relative"},Xa=function(e,r){for(var t in r)t in e||(e[t]=r[t]);return e},fr=function(e,r){var t=r&&At(e)[to]!=="matrix(1, 0, 0, 1, 0, 0)"&&E.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=e.getBoundingClientRect();return t&&t.progress(0).kill(),i},Qn=function(e,r){var t=r.d2;return e["offset"+t]||e["client"+t]||0},uu=function(e){var r=[],t=e.labels,i=e.duration(),n;for(n in t)r.push(t[n]/i);return r},rf=function(e){return function(r){return E.utils.snap(uu(e),r)}},po=function(e){var r=E.utils.snap(e),t=Array.isArray(e)&&e.slice(0).sort(function(i,n){return i-n});return t?function(i,n,s){s===void 0&&(s=.001);var o;if(!n)return r(i);if(n>0){for(i-=s,o=0;o<t.length;o++)if(t[o]>=i)return t[o];return t[o-1]}else for(o=t.length,i+=s;o--;)if(t[o]<=i)return t[o];return t[0]}:function(i,n,s){s===void 0&&(s=.001);var o=r(i);return!n||Math.abs(o-i)<s||o-i<0==n<0?o:r(n<0?i-e:i+e)}},nf=function(e){return function(r,t){return po(uu(e))(r,t.direction)}},Fn=function(e,r,t,i){return t.split(",").forEach(function(n){return e(r,n,i)})},Ae=function(e,r,t,i,n){return e.addEventListener(r,t,{passive:!i,capture:!!n})},Ee=function(e,r,t,i){return e.removeEventListener(r,t,!!i)},zn=function(e,r,t){t=t&&t.wheelHandler,t&&(e(r,"wheel",t),e(r,"touchmove",t))},Ua={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Ln={toggleActions:"play",anticipatePin:0},Kn={top:0,left:0,center:.5,bottom:1,right:1},Xn=function(e,r){if(bt(e)){var t=e.indexOf("="),i=~t?+(e.charAt(t-1)+1)*parseFloat(e.substr(t+1)):0;~t&&(e.indexOf("%")>t&&(i*=r/100),e=e.substr(0,t-1)),e=i+(e in Kn?Kn[e]*r:~e.indexOf("%")?parseFloat(e)*r/100:parseFloat(e)||0)}return e},In=function(e,r,t,i,n,s,o,u){var l=n.startColor,f=n.endColor,_=n.fontSize,d=n.indent,c=n.fontWeight,p=ie.createElement("div"),h=Zr(t)||lr(t,"pinType")==="fixed",m=e.indexOf("scroller")!==-1,T=h?j:t,w=e.indexOf("start")!==-1,S=w?l:f,v="border-color:"+S+";font-size:"+_+";color:"+S+";font-weight:"+c+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return v+="position:"+((m||u)&&h?"fixed;":"absolute;"),(m||u||!h)&&(v+=(i===Se?co:ho)+":"+(s+parseFloat(d))+"px;"),o&&(v+="box-sizing:border-box;text-align:left;width:"+o.offsetWidth+"px;"),p._isStart=w,p.setAttribute("class","gsap-marker-"+e+(r?" marker-"+r:"")),p.style.cssText=v,p.innerText=r||r===0?e+"-"+r:e,T.children[0]?T.insertBefore(p,T.children[0]):T.appendChild(p),p._offset=p["offset"+i.op.d2],Un(p,0,i,w),p},Un=function(e,r,t,i){var n={display:"block"},s=t[i?"os2":"p2"],o=t[i?"p2":"os2"];e._isFlipped=i,n[t.a+"Percent"]=i?-100:0,n[t.a]=i?"1px":0,n["border"+s+Ti]=1,n["border"+o+Ti]=0,n[t.p]=r+"px",E.set(e,n)},X=[],so={},nn,Va=function(){return Ke()-Rt>34&&(nn||(nn=requestAnimationFrame(cr)))},mi=function(){(!st||!st.isPressed||st.startX>j.clientWidth)&&(Y.cache++,st?nn||(nn=requestAnimationFrame(cr)):cr(),Rt||jr("scrollStart"),Rt=Ke())},Js=function(){tu=U.innerWidth,eu=U.innerHeight},Ki=function(e){Y.cache++,(e===!0||!Qe&&!ja&&!ie.fullscreenElement&&!ie.webkitFullscreenElement&&(!ro||tu!==U.innerWidth||Math.abs(U.innerHeight-eu)>U.innerHeight*.25))&&qn.restart(!0)},Jr={},sf=[],lu=function a(){return Ee(B,"scrollEnd",a)||Hr(!0)},jr=function(e){return Jr[e]&&Jr[e].map(function(r){return r()})||sf},Tt=[],fu=function(e){for(var r=0;r<Tt.length;r+=5)(!e||Tt[r+4]&&Tt[r+4].query===e)&&(Tt[r].style.cssText=Tt[r+1],Tt[r].getBBox&&Tt[r].setAttribute("transform",Tt[r+2]||""),Tt[r+3].uncache=1)},go=function(e,r){var t;for(ot=0;ot<X.length;ot++)t=X[ot],t&&(!r||t._ctx===r)&&(e?t.kill(1):t.revert(!0,!0));Hn=!0,r&&fu(r),r||jr("revert")},cu=function(e,r){Y.cache++,(r||!at)&&Y.forEach(function(t){return $e(t)&&t.cacheID++&&(t.rec=0)}),bt(e)&&(U.history.scrollRestoration=lo=e)},at,$r=0,Wa,of=function(){if(Wa!==$r){var e=Wa=$r;requestAnimationFrame(function(){return e===$r&&Hr(!0)})}},hu=function(){j.appendChild(xi),fo=!st&&xi.offsetHeight||U.innerHeight,j.removeChild(xi)},Ga=function(e){return rn(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(r){return r.style.display=e?"none":"block"})},Hr=function(e,r){if(St=ie.documentElement,j=ie.body,uo=[U,ie,St,j],Rt&&!e&&!Hn){Ae(B,"scrollEnd",lu);return}hu(),at=B.isRefreshing=!0,Y.forEach(function(i){return $e(i)&&++i.cacheID&&(i.rec=i())});var t=jr("refreshInit");Ja&&B.sort(),r||go(),Y.forEach(function(i){$e(i)&&(i.smooth&&(i.target.style.scrollBehavior="auto"),i(0))}),X.slice(0).forEach(function(i){return i.refresh()}),Hn=!1,X.forEach(function(i){if(i._subPinOffset&&i.pin){var n=i.vars.horizontal?"offsetWidth":"offsetHeight",s=i.pin[n];i.revert(!0,1),i.adjustPinSpacing(i.pin[n]-s),i.refresh()}}),no=1,Ga(!0),X.forEach(function(i){var n=$t(i.scroller,i._dir),s=i.vars.end==="max"||i._endClamp&&i.end>n,o=i._startClamp&&i.start>=n;(s||o)&&i.setPositions(o?n-1:i.start,s?Math.max(o?n:i.start+1,n):i.end,!0)}),Ga(!1),no=0,t.forEach(function(i){return i&&i.render&&i.render(-1)}),Y.forEach(function(i){$e(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),cu(lo,1),qn.pause(),$r++,at=2,cr(2),X.forEach(function(i){return $e(i.vars.onRefresh)&&i.vars.onRefresh(i)}),at=B.isRefreshing=!1,jr("refresh")},oo=0,Vn=1,tn,cr=function(e){if(e===2||!at&&!Hn){B.isUpdating=!0,tn&&tn.update(0);var r=X.length,t=Ke(),i=t-$s>=50,n=r&&X[0].scroll();if(Vn=oo>n?-1:1,at||(oo=n),i&&(Rt&&!$n&&t-Rt>200&&(Rt=0,jr("scrollEnd")),Gi=$s,$s=t),Vn<0){for(ot=r;ot-- >0;)X[ot]&&X[ot].update(0,i);Vn=1}else for(ot=0;ot<r;ot++)X[ot]&&X[ot].update(0,i);B.isUpdating=!1}nn=0},ao=[ou,au,ho,co,Et+en,Et+Zi,Et+ji,Et+Ji,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Wn=ao.concat([Qr,Kr,"boxSizing","max"+Ti,"max"+_o,"position",Et,ke,ke+ji,ke+Zi,ke+en,ke+Ji]),af=function(e,r,t){wi(t);var i=e._gsap;if(i.spacerIsNative)wi(i.spacerState);else if(e._gsap.swappedIn){var n=r.parentNode;n&&(n.insertBefore(e,r),n.removeChild(r))}e._gsap.swappedIn=!1},js=function(e,r,t,i){if(!e._gsap.swappedIn){for(var n=ao.length,s=r.style,o=e.style,u;n--;)u=ao[n],s[u]=t[u];s.position=t.position==="absolute"?"absolute":"relative",t.display==="inline"&&(s.display="inline-block"),o[ho]=o[co]="auto",s.flexBasis=t.flexBasis||"auto",s.overflow="visible",s.boxSizing="border-box",s[Qr]=Qn(e,He)+Oe,s[Kr]=Qn(e,Se)+Oe,s[ke]=o[Et]=o[au]=o[ou]="0",wi(i),o[Qr]=o["max"+Ti]=t[Qr],o[Kr]=o["max"+_o]=t[Kr],o[ke]=t[ke],e.parentNode!==r&&(e.parentNode.insertBefore(r,e),r.appendChild(e)),e._gsap.swappedIn=!0}},uf=/([A-Z])/g,wi=function(e){if(e){var r=e.t.style,t=e.length,i=0,n,s;for((e.t._gsap||E.core.getCache(e.t)).uncache=1;i<t;i+=2)s=e[i+1],n=e[i],s?r[n]=s:r[n]&&r.removeProperty(n.replace(uf,"-$1").toLowerCase())}},Nn=function(e){for(var r=Wn.length,t=e.style,i=[],n=0;n<r;n++)i.push(Wn[n],t[Wn[n]]);return i.t=e,i},lf=function(e,r,t){for(var i=[],n=e.length,s=t?8:0,o;s<n;s+=2)o=e[s],i.push(o,o in r?r[o]:e[s+1]);return i.t=e.t,i},Gn={left:0,top:0},qa=function(e,r,t,i,n,s,o,u,l,f,_,d,c,p){$e(e)&&(e=e(u)),bt(e)&&e.substr(0,3)==="max"&&(e=d+(e.charAt(4)==="="?Xn("0"+e.substr(3),t):0));var h=c?c.time():0,m,T,w;if(c&&c.seek(0),isNaN(e)||(e=+e),Qi(e))c&&(e=E.utils.mapRange(c.scrollTrigger.start,c.scrollTrigger.end,0,d,e)),o&&Un(o,t,i,!0);else{$e(r)&&(r=r(u));var S=(e||"0").split(" "),v,b,C,x;w=nt(r,u)||j,v=fr(w)||{},(!v||!v.left&&!v.top)&&At(w).display==="none"&&(x=w.style.display,w.style.display="block",v=fr(w),x?w.style.display=x:w.style.removeProperty("display")),b=Xn(S[0],v[i.d]),C=Xn(S[1]||"0",t),e=v[i.p]-l[i.p]-f+b+n-C,o&&Un(o,C,i,t-C<20||o._isStart&&C>20),t-=t-C}if(p&&(u[p]=e||-.001,e<0&&(e=0)),s){var O=e+t,k=s._isStart;m="scroll"+i.d2,Un(s,O,i,k&&O>20||!k&&(_?Math.max(j[m],St[m]):s.parentNode[m])<=O+1),_&&(l=fr(o),_&&(s.style[i.op.p]=l[i.op.p]-i.op.m-s._offset+Oe))}return c&&w&&(m=fr(w),c.seek(d),T=fr(w),c._caScrollDist=m[i.p]-T[i.p],e=e/c._caScrollDist*d),c&&c.seek(h),c?e:Math.round(e)},ff=/(webkit|moz|length|cssText|inset)/i,Ha=function(e,r,t,i){if(e.parentNode!==r){var n=e.style,s,o;if(r===j){e._stOrig=n.cssText,o=At(e);for(s in o)!+s&&!ff.test(s)&&o[s]&&typeof n[s]=="string"&&s!=="0"&&(n[s]=o[s]);n.top=t,n.left=i}else n.cssText=e._stOrig;E.core.getCache(e).uncache=1,r.appendChild(e)}},_u=function(e,r,t){var i=r,n=i;return function(s){var o=Math.round(e());return o!==i&&o!==n&&Math.abs(o-i)>3&&Math.abs(o-n)>3&&(s=o,t&&t()),n=i,i=Math.round(s),i}},Bn=function(e,r,t){var i={};i[r.p]="+="+t,E.set(e,i)},Qa=function(e,r){var t=ur(e,r),i="_scroll"+r.p2,n=function s(o,u,l,f,_){var d=s.tween,c=u.onComplete,p={};l=l||t();var h=_u(t,l,function(){d.kill(),s.tween=0});return _=f&&_||0,f=f||o-l,d&&d.kill(),u[i]=o,u.inherit=!1,u.modifiers=p,p[i]=function(){return h(l+f*d.ratio+_*d.ratio*d.ratio)},u.onUpdate=function(){Y.cache++,s.tween&&cr()},u.onComplete=function(){s.tween=0,c&&c.call(d)},d=s.tween=E.to(e,u),d};return e[i]=t,t.wheelHandler=function(){return n.tween&&n.tween.kill()&&(n.tween=0)},Ae(e,"wheel",t.wheelHandler),B.isTouch&&Ae(e,"touchmove",t.wheelHandler),n},B=function(){function a(r,t){yi||a.register(E)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),io(this),this.init(r,t)}var e=a.prototype;return e.init=function(t,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!qi){this.update=this.refresh=this.kill=Kt;return}t=Xa(bt(t)||Qi(t)||t.nodeType?{trigger:t}:t,Ln);var n=t,s=n.onUpdate,o=n.toggleClass,u=n.id,l=n.onToggle,f=n.onRefresh,_=n.scrub,d=n.trigger,c=n.pin,p=n.pinSpacing,h=n.invalidateOnRefresh,m=n.anticipatePin,T=n.onScrubComplete,w=n.onSnapComplete,S=n.once,v=n.snap,b=n.pinReparent,C=n.pinSpacer,x=n.containerAnimation,O=n.fastScrollEnd,k=n.preventOverlaps,P=t.horizontal||t.containerAnimation&&t.horizontal!==!1?He:Se,z=!_&&_!==0,M=nt(t.scroller||U),G=E.core.getCache(M),V=Zr(M),K=("pinType"in t?t.pinType:lr(M,"pinType")||V&&"fixed")==="fixed",q=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],F=z&&t.toggleActions.split(" "),Z="markers"in t?t.markers:Ln.markers,ne=V?0:parseFloat(At(M)["border"+P.p2+Ti])||0,g=this,se=t.onRefreshInit&&function(){return t.onRefreshInit(g)},Ze=jl(M,V,P),Ft=ef(M,V),ce=0,Re=0,Ye=0,we=ur(M,P),Je,Xe,hr,je,ut,$,me,lt,pt,y,gt,Zt,_r,he,Jt,dr,Mr,Me,pr,ye,zt,kt,jt,bi,Te,on,er,ei,ti,gr,Dr,W,Er,Lt,It,Nt,Ar,ri,tr;if(g._startClamp=g._endClamp=!1,g._dir=P,m*=45,g.scroller=M,g.scroll=x?x.time.bind(x):we,je=we(),g.vars=t,i=i||t.animation,"refreshPriority"in t&&(Ja=1,t.refreshPriority===-9999&&(tn=g)),G.tweenScroll=G.tweenScroll||{top:Qa(M,Se),left:Qa(M,He)},g.tweenTo=Je=G.tweenScroll[P.p],g.scrubDuration=function(D){Er=Qi(D)&&D,Er?W?W.duration(D):W=E.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:Er,paused:!0,onComplete:function(){return T&&T(g)}}):(W&&W.progress(1).kill(),W=0)},i&&(i.vars.lazy=!1,i._initted&&!g.isReverted||i.vars.immediateRender!==!1&&t.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),g.animation=i.pause(),i.scrollTrigger=g,g.scrubDuration(_),gr=0,u||(u=i.vars.id)),v&&((!qr(v)||v.push)&&(v={snapTo:v}),"scrollBehavior"in j.style&&E.set(V?[j,St]:M,{scrollBehavior:"auto"}),Y.forEach(function(D){return $e(D)&&D.target===(V?ie.scrollingElement||St:M)&&(D.smooth=!1)}),hr=$e(v.snapTo)?v.snapTo:v.snapTo==="labels"?rf(i):v.snapTo==="labelsDirectional"?nf(i):v.directional!==!1?function(D,L){return po(v.snapTo)(D,Ke()-Re<500?0:L.direction)}:E.utils.snap(v.snapTo),Lt=v.duration||{min:.1,max:2},Lt=qr(Lt)?$i(Lt.min,Lt.max):$i(Lt,Lt),It=E.delayedCall(v.delay||Er/2||.1,function(){var D=we(),L=Ke()-Re<500,A=Je.tween;if((L||Math.abs(g.getVelocity())<10)&&!A&&!$n&&ce!==D){var I=(D-$)/he,De=i&&!z?i.totalProgress():I,H=L?0:(De-Dr)/(Ke()-Gi)*1e3||0,ve=E.utils.clamp(-I,1-I,gi(H/2)*H/.185),Ue=I+(v.inertia===!1?0:ve),_e,oe,ee=v,Bt=ee.onStart,ue=ee.onInterrupt,mt=ee.onComplete;if(_e=hr(Ue,g),Qi(_e)||(_e=Ue),oe=Math.max(0,Math.round($+_e*he)),D<=me&&D>=$&&oe!==D){if(A&&!A._initted&&A.data<=gi(oe-D))return;v.inertia===!1&&(ve=_e-I),Je(oe,{duration:Lt(gi(Math.max(gi(Ue-De),gi(_e-De))*.185/H/.05||0)),ease:v.ease||"power3",data:gi(oe-D),onInterrupt:function(){return It.restart(!0)&&ue&&ue(g)},onComplete:function(){g.update(),ce=we(),i&&!z&&(W?W.resetTo("totalProgress",_e,i._tTime/i._tDur):i.progress(_e)),gr=Dr=i&&!z?i.totalProgress():g.progress,w&&w(g),mt&&mt(g)}},D,ve*he,oe-D-ve*he),Bt&&Bt(g,Je.tween)}}else g.isActive&&ce!==D&&It.restart(!0)}).pause()),u&&(so[u]=g),d=g.trigger=nt(d||c!==!0&&c),tr=d&&d._gsap&&d._gsap.stRevert,tr&&(tr=tr(g)),c=c===!0?d:nt(c),bt(o)&&(o={targets:d,className:o}),c&&(p===!1||p===Et||(p=!p&&c.parentNode&&c.parentNode.style&&At(c.parentNode).display==="flex"?!1:ke),g.pin=c,Xe=E.core.getCache(c),Xe.spacer?Jt=Xe.pinState:(C&&(C=nt(C),C&&!C.nodeType&&(C=C.current||C.nativeElement),Xe.spacerIsNative=!!C,C&&(Xe.spacerState=Nn(C))),Xe.spacer=Me=C||ie.createElement("div"),Me.classList.add("pin-spacer"),u&&Me.classList.add("pin-spacer-"+u),Xe.pinState=Jt=Nn(c)),t.force3D!==!1&&E.set(c,{force3D:!0}),g.spacer=Me=Xe.spacer,ti=At(c),bi=ti[p+P.os2],ye=E.getProperty(c),zt=E.quickSetter(c,P.a,Oe),js(c,Me,ti),Mr=Nn(c)),Z){Zt=qr(Z)?Xa(Z,Ua):Ua,y=In("scroller-start",u,M,P,Zt,0),gt=In("scroller-end",u,M,P,Zt,0,y),pr=y["offset"+P.op.d2];var Si=nt(lr(M,"content")||M);lt=this.markerStart=In("start",u,Si,P,Zt,pr,0,x),pt=this.markerEnd=In("end",u,Si,P,Zt,pr,0,x),x&&(ri=E.quickSetter([lt,pt],P.a,Oe)),!K&&!(Xt.length&&lr(M,"fixedMarkers")===!0)&&(tf(V?j:M),E.set([y,gt],{force3D:!0}),on=E.quickSetter(y,P.a,Oe),ei=E.quickSetter(gt,P.a,Oe))}if(x){var N=x.vars.onUpdate,R=x.vars.onUpdateParams;x.eventCallback("onUpdate",function(){g.update(0,0,1),N&&N.apply(x,R||[])})}if(g.previous=function(){return X[X.indexOf(g)-1]},g.next=function(){return X[X.indexOf(g)+1]},g.revert=function(D,L){if(!L)return g.kill(!0);var A=D!==!1||!g.enabled,I=Qe;A!==g.isReverted&&(A&&(Nt=Math.max(we(),g.scroll.rec||0),Ye=g.progress,Ar=i&&i.progress()),lt&&[lt,pt,y,gt].forEach(function(De){return De.style.display=A?"none":"block"}),A&&(Qe=g,g.update(A)),c&&(!b||!g.isActive)&&(A?af(c,Me,Jt):js(c,Me,At(c),Te)),A||g.update(A),Qe=I,g.isReverted=A)},g.refresh=function(D,L,A,I){if(!((Qe||!g.enabled)&&!L)){if(c&&D&&Rt){Ae(a,"scrollEnd",lu);return}!at&&se&&se(g),Qe=g,Je.tween&&!A&&(Je.tween.kill(),Je.tween=0),W&&W.pause(),h&&i&&(i.revert({kill:!1}).invalidate(),i.getChildren&&i.getChildren(!0,!0,!1).forEach(function(mr){return mr.vars.immediateRender&&mr.render(0,!0,!0)})),g.isReverted||g.revert(!0,!0),g._subPinOffset=!1;var De=Ze(),H=Ft(),ve=x?x.duration():$t(M,P),Ue=he<=.01||!he,_e=0,oe=I||0,ee=qr(A)?A.end:t.end,Bt=t.endTrigger||d,ue=qr(A)?A.start:t.start||(t.start===0||!d?0:c?"0 0":"0 100%"),mt=g.pinnedContainer=t.pinnedContainer&&nt(t.pinnedContainer,g),Ut=d&&Math.max(0,X.indexOf(g))||0,Fe=Ut,ze,Ve,Rr,an,We,Ce,Vt,Jn,yo,ki,Wt,Ci,un;for(Z&&qr(A)&&(Ci=E.getProperty(y,P.p),un=E.getProperty(gt,P.p));Fe-- >0;)Ce=X[Fe],Ce.end||Ce.refresh(0,1)||(Qe=g),Vt=Ce.pin,Vt&&(Vt===d||Vt===c||Vt===mt)&&!Ce.isReverted&&(ki||(ki=[]),ki.unshift(Ce),Ce.revert(!0,!0)),Ce!==X[Fe]&&(Ut--,Fe--);for($e(ue)&&(ue=ue(g)),ue=Ia(ue,"start",g),$=qa(ue,d,De,P,we(),lt,y,g,H,ne,K,ve,x,g._startClamp&&"_startClamp")||(c?-.001:0),$e(ee)&&(ee=ee(g)),bt(ee)&&!ee.indexOf("+=")&&(~ee.indexOf(" ")?ee=(bt(ue)?ue.split(" ")[0]:"")+ee:(_e=Xn(ee.substr(2),De),ee=bt(ue)?ue:(x?E.utils.mapRange(0,x.duration(),x.scrollTrigger.start,x.scrollTrigger.end,$):$)+_e,Bt=d)),ee=Ia(ee,"end",g),me=Math.max($,qa(ee||(Bt?"100% 0":ve),Bt,De,P,we()+_e,pt,gt,g,H,ne,K,ve,x,g._endClamp&&"_endClamp"))||-.001,_e=0,Fe=Ut;Fe--;)Ce=X[Fe],Vt=Ce.pin,Vt&&Ce.start-Ce._pinPush<=$&&!x&&Ce.end>0&&(ze=Ce.end-(g._startClamp?Math.max(0,Ce.start):Ce.start),(Vt===d&&Ce.start-Ce._pinPush<$||Vt===mt)&&isNaN(ue)&&(_e+=ze*(1-Ce.progress)),Vt===c&&(oe+=ze));if($+=_e,me+=_e,g._startClamp&&(g._startClamp+=_e),g._endClamp&&!at&&(g._endClamp=me||-.001,me=Math.min(me,$t(M,P))),he=me-$||($-=.01)&&.001,Ue&&(Ye=E.utils.clamp(0,1,E.utils.normalize($,me,Nt))),g._pinPush=oe,lt&&_e&&(ze={},ze[P.a]="+="+_e,mt&&(ze[P.p]="-="+we()),E.set([lt,pt],ze)),c&&!(no&&g.end>=$t(M,P)))ze=At(c),an=P===Se,Rr=we(),kt=parseFloat(ye(P.a))+oe,!ve&&me>1&&(Wt=(V?ie.scrollingElement||St:M).style,Wt={style:Wt,value:Wt["overflow"+P.a.toUpperCase()]},V&&At(j)["overflow"+P.a.toUpperCase()]!=="scroll"&&(Wt.style["overflow"+P.a.toUpperCase()]="scroll")),js(c,Me,ze),Mr=Nn(c),Ve=fr(c,!0),Jn=K&&ur(M,an?He:Se)(),p?(Te=[p+P.os2,he+oe+Oe],Te.t=Me,Fe=p===ke?Qn(c,P)+he+oe:0,Fe&&(Te.push(P.d,Fe+Oe),Me.style.flexBasis!=="auto"&&(Me.style.flexBasis=Fe+Oe)),wi(Te),mt&&X.forEach(function(mr){mr.pin===mt&&mr.vars.pinSpacing!==!1&&(mr._subPinOffset=!0)}),K&&we(Nt)):(Fe=Qn(c,P),Fe&&Me.style.flexBasis!=="auto"&&(Me.style.flexBasis=Fe+Oe)),K&&(We={top:Ve.top+(an?Rr-$:Jn)+Oe,left:Ve.left+(an?Jn:Rr-$)+Oe,boxSizing:"border-box",position:"fixed"},We[Qr]=We["max"+Ti]=Math.ceil(Ve.width)+Oe,We[Kr]=We["max"+_o]=Math.ceil(Ve.height)+Oe,We[Et]=We[Et+ji]=We[Et+Zi]=We[Et+en]=We[Et+Ji]="0",We[ke]=ze[ke],We[ke+ji]=ze[ke+ji],We[ke+Zi]=ze[ke+Zi],We[ke+en]=ze[ke+en],We[ke+Ji]=ze[ke+Ji],dr=lf(Jt,We,b),at&&we(0)),i?(yo=i._initted,Qs(1),i.render(i.duration(),!0,!0),jt=ye(P.a)-kt+he+oe,er=Math.abs(he-jt)>1,K&&er&&dr.splice(dr.length-2,2),i.render(0,!0,!0),yo||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),Qs(0)):jt=he,Wt&&(Wt.value?Wt.style["overflow"+P.a.toUpperCase()]=Wt.value:Wt.style.removeProperty("overflow-"+P.a));else if(d&&we()&&!x)for(Ve=d.parentNode;Ve&&Ve!==j;)Ve._pinOffset&&($-=Ve._pinOffset,me-=Ve._pinOffset),Ve=Ve.parentNode;ki&&ki.forEach(function(mr){return mr.revert(!1,!0)}),g.start=$,g.end=me,je=ut=at?Nt:we(),!x&&!at&&(je<Nt&&we(Nt),g.scroll.rec=0),g.revert(!1,!0),Re=Ke(),It&&(ce=-1,It.restart(!0)),Qe=0,i&&z&&(i._initted||Ar)&&i.progress()!==Ar&&i.progress(Ar||0,!0).render(i.time(),!0,!0),(Ue||Ye!==g.progress||x||h||i&&!i._initted)&&(i&&!z&&(i._initted||Ye||i.vars.immediateRender!==!1)&&i.totalProgress(x&&$<-.001&&!Ye?E.utils.normalize($,me,0):Ye,!0),g.progress=Ue||(je-$)/he===Ye?0:Ye),c&&p&&(Me._pinOffset=Math.round(g.progress*jt)),W&&W.invalidate(),isNaN(Ci)||(Ci-=E.getProperty(y,P.p),un-=E.getProperty(gt,P.p),Bn(y,P,Ci),Bn(lt,P,Ci-(I||0)),Bn(gt,P,un),Bn(pt,P,un-(I||0))),Ue&&!at&&g.update(),f&&!at&&!_r&&(_r=!0,f(g),_r=!1)}},g.getVelocity=function(){return(we()-ut)/(Ke()-Gi)*1e3||0},g.endAnimation=function(){Wi(g.callbackAnimation),i&&(W?W.progress(1):i.paused()?z||Wi(i,g.direction<0,1):Wi(i,i.reversed()))},g.labelToScroll=function(D){return i&&i.labels&&($||g.refresh()||$)+i.labels[D]/i.duration()*he||0},g.getTrailing=function(D){var L=X.indexOf(g),A=g.direction>0?X.slice(0,L).reverse():X.slice(L+1);return(bt(D)?A.filter(function(I){return I.vars.preventOverlaps===D}):A).filter(function(I){return g.direction>0?I.end<=$:I.start>=me})},g.update=function(D,L,A){if(!(x&&!A&&!D)){var I=at===!0?Nt:g.scroll(),De=D?0:(I-$)/he,H=De<0?0:De>1?1:De||0,ve=g.progress,Ue,_e,oe,ee,Bt,ue,mt,Ut;if(L&&(ut=je,je=x?we():I,v&&(Dr=gr,gr=i&&!z?i.totalProgress():H)),m&&c&&!Qe&&!An&&Rt&&(!H&&$<I+(I-ut)/(Ke()-Gi)*m?H=1e-4:H===1&&me>I+(I-ut)/(Ke()-Gi)*m&&(H=.9999)),H!==ve&&g.enabled){if(Ue=g.isActive=!!H&&H<1,_e=!!ve&&ve<1,ue=Ue!==_e,Bt=ue||!!H!=!!ve,g.direction=H>ve?1:-1,g.progress=H,Bt&&!Qe&&(oe=H&&!ve?0:H===1?1:ve===1?2:3,z&&(ee=!ue&&F[oe+1]!=="none"&&F[oe+1]||F[oe],Ut=i&&(ee==="complete"||ee==="reset"||ee in i))),k&&(ue||Ut)&&(Ut||_||!i)&&($e(k)?k(g):g.getTrailing(k).forEach(function(Rr){return Rr.endAnimation()})),z||(W&&!Qe&&!An?(W._dp._time-W._start!==W._time&&W.render(W._dp._time-W._start),W.resetTo?W.resetTo("totalProgress",H,i._tTime/i._tDur):(W.vars.totalProgress=H,W.invalidate().restart())):i&&i.totalProgress(H,!!(Qe&&(Re||D)))),c){if(D&&p&&(Me.style[p+P.os2]=bi),!K)zt(Hi(kt+jt*H));else if(Bt){if(mt=!D&&H>ve&&me+1>I&&I+1>=$t(M,P),b)if(!D&&(Ue||mt)){var Fe=fr(c,!0),ze=I-$;Ha(c,j,Fe.top+(P===Se?ze:0)+Oe,Fe.left+(P===Se?0:ze)+Oe)}else Ha(c,Me);wi(Ue||mt?dr:Mr),er&&H<1&&Ue||zt(kt+(H===1&&!mt?jt:0))}}v&&!Je.tween&&!Qe&&!An&&It.restart(!0),o&&(ue||S&&H&&(H<1||!Ks))&&rn(o.targets).forEach(function(Rr){return Rr.classList[Ue||S?"add":"remove"](o.className)}),s&&!z&&!D&&s(g),Bt&&!Qe?(z&&(Ut&&(ee==="complete"?i.pause().totalProgress(1):ee==="reset"?i.restart(!0).pause():ee==="restart"?i.restart(!0):i[ee]()),s&&s(g)),(ue||!Ks)&&(l&&ue&&Zs(g,l),q[oe]&&Zs(g,q[oe]),S&&(H===1?g.kill(!1,1):q[oe]=0),ue||(oe=H===1?1:3,q[oe]&&Zs(g,q[oe]))),O&&!Ue&&Math.abs(g.getVelocity())>(Qi(O)?O:2500)&&(Wi(g.callbackAnimation),W?W.progress(1):Wi(i,ee==="reverse"?1:!H,1))):z&&s&&!Qe&&s(g)}if(ei){var Ve=x?I/x.duration()*(x._caScrollDist||0):I;on(Ve+(y._isFlipped?1:0)),ei(Ve)}ri&&ri(-I/x.duration()*(x._caScrollDist||0))}},g.enable=function(D,L){g.enabled||(g.enabled=!0,Ae(M,"resize",Ki),V||Ae(M,"scroll",mi),se&&Ae(a,"refreshInit",se),D!==!1&&(g.progress=Ye=0,je=ut=ce=we()),L!==!1&&g.refresh())},g.getTween=function(D){return D&&Je?Je.tween:W},g.setPositions=function(D,L,A,I){if(x){var De=x.scrollTrigger,H=x.duration(),ve=De.end-De.start;D=De.start+ve*D/H,L=De.start+ve*L/H}g.refresh(!1,!1,{start:Na(D,A&&!!g._startClamp),end:Na(L,A&&!!g._endClamp)},I),g.update()},g.adjustPinSpacing=function(D){if(Te&&D){var L=Te.indexOf(P.d)+1;Te[L]=parseFloat(Te[L])+D+Oe,Te[1]=parseFloat(Te[1])+D+Oe,wi(Te)}},g.disable=function(D,L){if(g.enabled&&(D!==!1&&g.revert(!0,!0),g.enabled=g.isActive=!1,L||W&&W.pause(),Nt=0,Xe&&(Xe.uncache=1),se&&Ee(a,"refreshInit",se),It&&(It.pause(),Je.tween&&Je.tween.kill()&&(Je.tween=0)),!V)){for(var A=X.length;A--;)if(X[A].scroller===M&&X[A]!==g)return;Ee(M,"resize",Ki),V||Ee(M,"scroll",mi)}},g.kill=function(D,L){g.disable(D,L),W&&!L&&W.kill(),u&&delete so[u];var A=X.indexOf(g);A>=0&&X.splice(A,1),A===ot&&Vn>0&&ot--,A=0,X.forEach(function(I){return I.scroller===g.scroller&&(A=1)}),A||at||(g.scroll.rec=0),i&&(i.scrollTrigger=null,D&&i.revert({kill:!1}),L||i.kill()),lt&&[lt,pt,y,gt].forEach(function(I){return I.parentNode&&I.parentNode.removeChild(I)}),tn===g&&(tn=0),c&&(Xe&&(Xe.uncache=1),A=0,X.forEach(function(I){return I.pin===c&&A++}),A||(Xe.spacer=0)),t.onKill&&t.onKill(g)},X.push(g),g.enable(!1,!1),tr&&tr(g),i&&i.add&&!he){var J=g.update;g.update=function(){g.update=J,Y.cache++,$||me||g.refresh()},E.delayedCall(.01,g.update),he=.01,$=me=0}else g.refresh();c&&of()},a.register=function(t){return yi||(E=t||iu(),ru()&&window.document&&a.enable(),yi=qi),yi},a.defaults=function(t){if(t)for(var i in t)Ln[i]=t[i];return Ln},a.disable=function(t,i){qi=0,X.forEach(function(s){return s[i?"kill":"disable"](t)}),Ee(U,"wheel",mi),Ee(ie,"scroll",mi),clearInterval(En),Ee(ie,"touchcancel",Kt),Ee(j,"touchstart",Kt),Fn(Ee,ie,"pointerdown,touchstart,mousedown",Ba),Fn(Ee,ie,"pointerup,touchend,mouseup",Ya),qn.kill(),Rn(Ee);for(var n=0;n<Y.length;n+=3)zn(Ee,Y[n],Y[n+1]),zn(Ee,Y[n],Y[n+2])},a.enable=function(){if(U=window,ie=document,St=ie.documentElement,j=ie.body,E&&(rn=E.utils.toArray,$i=E.utils.clamp,io=E.core.context||Kt,Qs=E.core.suppressOverwrites||Kt,lo=U.history.scrollRestoration||"auto",oo=U.pageYOffset||0,E.core.globals("ScrollTrigger",a),j)){qi=1,xi=document.createElement("div"),xi.style.height="100vh",xi.style.position="absolute",hu(),Jl(),ge.register(E),a.isTouch=ge.isTouch,Or=ge.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),ro=ge.isTouch===1,Ae(U,"wheel",mi),uo=[U,ie,St,j],E.matchMedia?(a.matchMedia=function(l){var f=E.matchMedia(),_;for(_ in l)f.add(_,l[_]);return f},E.addEventListener("matchMediaInit",function(){return go()}),E.addEventListener("matchMediaRevert",function(){return fu()}),E.addEventListener("matchMedia",function(){Hr(0,1),jr("matchMedia")}),E.matchMedia().add("(orientation: portrait)",function(){return Js(),Js})):console.warn("Requires GSAP 3.11.0 or later"),Js(),Ae(ie,"scroll",mi);var t=j.hasAttribute("style"),i=j.style,n=i.borderTopStyle,s=E.core.Animation.prototype,o,u;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",o=fr(j),Se.m=Math.round(o.top+Se.sc())||0,He.m=Math.round(o.left+He.sc())||0,n?i.borderTopStyle=n:i.removeProperty("border-top-style"),t||(j.setAttribute("style",""),j.removeAttribute("style")),En=setInterval(Va,250),E.delayedCall(.5,function(){return An=0}),Ae(ie,"touchcancel",Kt),Ae(j,"touchstart",Kt),Fn(Ae,ie,"pointerdown,touchstart,mousedown",Ba),Fn(Ae,ie,"pointerup,touchend,mouseup",Ya),to=E.utils.checkPrefix("transform"),Wn.push(to),yi=Ke(),qn=E.delayedCall(.2,Hr).pause(),vi=[ie,"visibilitychange",function(){var l=U.innerWidth,f=U.innerHeight;ie.hidden?(za=l,La=f):(za!==l||La!==f)&&Ki()},ie,"DOMContentLoaded",Hr,U,"load",Hr,U,"resize",Ki],Rn(Ae),X.forEach(function(l){return l.enable(0,1)}),u=0;u<Y.length;u+=3)zn(Ee,Y[u],Y[u+1]),zn(Ee,Y[u],Y[u+2])}},a.config=function(t){"limitCallbacks"in t&&(Ks=!!t.limitCallbacks);var i=t.syncInterval;i&&clearInterval(En)||(En=i)&&setInterval(Va,i),"ignoreMobileResize"in t&&(ro=a.isTouch===1&&t.ignoreMobileResize),"autoRefreshEvents"in t&&(Rn(Ee)||Rn(Ae,t.autoRefreshEvents||"none"),ja=(t.autoRefreshEvents+"").indexOf("resize")===-1)},a.scrollerProxy=function(t,i){var n=nt(t),s=Y.indexOf(n),o=Zr(n);~s&&Y.splice(s,o?6:2),i&&(o?Xt.unshift(U,i,j,i,St,i):Xt.unshift(n,i))},a.clearMatchMedia=function(t){X.forEach(function(i){return i._ctx&&i._ctx.query===t&&i._ctx.kill(!0,!0)})},a.isInViewport=function(t,i,n){var s=(bt(t)?nt(t):t).getBoundingClientRect(),o=s[n?Qr:Kr]*i||0;return n?s.right-o>0&&s.left+o<U.innerWidth:s.bottom-o>0&&s.top+o<U.innerHeight},a.positionInViewport=function(t,i,n){bt(t)&&(t=nt(t));var s=t.getBoundingClientRect(),o=s[n?Qr:Kr],u=i==null?o/2:i in Kn?Kn[i]*o:~i.indexOf("%")?parseFloat(i)*o/100:parseFloat(i)||0;return n?(s.left+u)/U.innerWidth:(s.top+u)/U.innerHeight},a.killAll=function(t){if(X.slice(0).forEach(function(n){return n.vars.id!=="ScrollSmoother"&&n.kill()}),t!==!0){var i=Jr.killAll||[];Jr={},i.forEach(function(n){return n()})}},a}();B.version="3.13.0";B.saveStyles=function(a){return a?rn(a).forEach(function(e){if(e&&e.style){var r=Tt.indexOf(e);r>=0&&Tt.splice(r,5),Tt.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),E.core.getCache(e),io())}}):Tt};B.revert=function(a,e){return go(!a,e)};B.create=function(a,e){return new B(a,e)};B.refresh=function(a){return a?Ki(!0):(yi||B.register())&&Hr(!0)};B.update=function(a){return++Y.cache&&cr(a===!0?2:0)};B.clearScrollMemory=cu;B.maxScroll=function(a,e){return $t(a,e?He:Se)};B.getScrollFunc=function(a,e){return ur(nt(a),e?He:Se)};B.getById=function(a){return so[a]};B.getAll=function(){return X.filter(function(a){return a.vars.id!=="ScrollSmoother"})};B.isScrolling=function(){return!!Rt};B.snapDirectional=po;B.addEventListener=function(a,e){var r=Jr[a]||(Jr[a]=[]);~r.indexOf(e)||r.push(e)};B.removeEventListener=function(a,e){var r=Jr[a],t=r&&r.indexOf(e);t>=0&&r.splice(t,1)};B.batch=function(a,e){var r=[],t={},i=e.interval||.016,n=e.batchMax||1e9,s=function(l,f){var _=[],d=[],c=E.delayedCall(i,function(){f(_,d),_=[],d=[]}).pause();return function(p){_.length||c.restart(!0),_.push(p.trigger),d.push(p),n<=_.length&&c.progress(1)}},o;for(o in e)t[o]=o.substr(0,2)==="on"&&$e(e[o])&&o!=="onRefreshInit"?s(o,e[o]):e[o];return $e(n)&&(n=n(),Ae(B,"refresh",function(){return n=e.batchMax()})),rn(a).forEach(function(u){var l={};for(o in t)l[o]=t[o];l.trigger=u,r.push(B.create(l))}),r};var Ka=function(e,r,t,i){return r>i?e(i):r<0&&e(0),t>i?(i-r)/(t-r):t<0?r/(r-t):1},eo=function a(e,r){r===!0?e.style.removeProperty("touch-action"):e.style.touchAction=r===!0?"auto":r?"pan-"+r+(ge.isTouch?" pinch-zoom":""):"none",e===St&&a(j,r)},Yn={auto:1,scroll:1},cf=function(e){var r=e.event,t=e.target,i=e.axis,n=(r.changedTouches?r.changedTouches[0]:r).target,s=n._gsap||E.core.getCache(n),o=Ke(),u;if(!s._isScrollT||o-s._isScrollT>2e3){for(;n&&n!==j&&(n.scrollHeight<=n.clientHeight&&n.scrollWidth<=n.clientWidth||!(Yn[(u=At(n)).overflowY]||Yn[u.overflowX]));)n=n.parentNode;s._isScroll=n&&n!==t&&!Zr(n)&&(Yn[(u=At(n)).overflowY]||Yn[u.overflowX]),s._isScrollT=o}(s._isScroll||i==="x")&&(r.stopPropagation(),r._gsapAllow=!0)},du=function(e,r,t,i){return ge.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:r,onWheel:i=i&&cf,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return t&&Ae(ie,ge.eventTypes[0],Za,!1,!0)},onDisable:function(){return Ee(ie,ge.eventTypes[0],Za,!0)}})},hf=/(input|label|select|textarea)/i,$a,Za=function(e){var r=hf.test(e.target.tagName);(r||$a)&&(e._gsapAllow=!0,$a=r)},_f=function(e){qr(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var r=e,t=r.normalizeScrollX,i=r.momentum,n=r.allowNestedScroll,s=r.onRelease,o,u,l=nt(e.target)||St,f=E.core.globals().ScrollSmoother,_=f&&f.get(),d=Or&&(e.content&&nt(e.content)||_&&e.content!==!1&&!_.smooth()&&_.content()),c=ur(l,Se),p=ur(l,He),h=1,m=(ge.isTouch&&U.visualViewport?U.visualViewport.scale*U.visualViewport.width:U.outerWidth)/U.innerWidth,T=0,w=$e(i)?function(){return i(o)}:function(){return i||2.8},S,v,b=du(l,e.type,!0,n),C=function(){return v=!1},x=Kt,O=Kt,k=function(){u=$t(l,Se),O=$i(Or?1:0,u),t&&(x=$i(0,$t(l,He))),S=$r},P=function(){d._gsap.y=Hi(parseFloat(d._gsap.y)+c.offset)+"px",d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(d._gsap.y)+", 0, 1)",c.offset=c.cacheID=0},z=function(){if(v){requestAnimationFrame(C);var Z=Hi(o.deltaY/2),ne=O(c.v-Z);if(d&&ne!==c.v+c.offset){c.offset=ne-c.v;var g=Hi((parseFloat(d&&d._gsap.y)||0)-c.offset);d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+g+", 0, 1)",d._gsap.y=g+"px",c.cacheID=Y.cache,cr()}return!0}c.offset&&P(),v=!0},M,G,V,K,q=function(){k(),M.isActive()&&M.vars.scrollY>u&&(c()>u?M.progress(1)&&c(u):M.resetTo("scrollY",u))};return d&&E.set(d,{y:"+=0"}),e.ignoreCheck=function(F){return Or&&F.type==="touchmove"&&z(F)||h>1.05&&F.type!=="touchstart"||o.isGesturing||F.touches&&F.touches.length>1},e.onPress=function(){v=!1;var F=h;h=Hi((U.visualViewport&&U.visualViewport.scale||1)/m),M.pause(),F!==h&&eo(l,h>1.01?!0:t?!1:"x"),G=p(),V=c(),k(),S=$r},e.onRelease=e.onGestureStart=function(F,Z){if(c.offset&&P(),!Z)K.restart(!0);else{Y.cache++;var ne=w(),g,se;t&&(g=p(),se=g+ne*.05*-F.velocityX/.227,ne*=Ka(p,g,se,$t(l,He)),M.vars.scrollX=x(se)),g=c(),se=g+ne*.05*-F.velocityY/.227,ne*=Ka(c,g,se,$t(l,Se)),M.vars.scrollY=O(se),M.invalidate().duration(ne).play(.01),(Or&&M.vars.scrollY>=u||g>=u-1)&&E.to({},{onUpdate:q,duration:ne})}s&&s(F)},e.onWheel=function(){M._ts&&M.pause(),Ke()-T>1e3&&(S=0,T=Ke())},e.onChange=function(F,Z,ne,g,se){if($r!==S&&k(),Z&&t&&p(x(g[2]===Z?G+(F.startX-F.x):p()+Z-g[1])),ne){c.offset&&P();var Ze=se[2]===ne,Ft=Ze?V+F.startY-F.y:c()+ne-se[1],ce=O(Ft);Ze&&Ft!==ce&&(V+=ce-Ft),c(ce)}(ne||Z)&&cr()},e.onEnable=function(){eo(l,t?!1:"x"),B.addEventListener("refresh",q),Ae(U,"resize",q),c.smooth&&(c.target.style.scrollBehavior="auto",c.smooth=p.smooth=!1),b.enable()},e.onDisable=function(){eo(l,!0),Ee(U,"resize",q),B.removeEventListener("refresh",q),b.kill()},e.lockAxis=e.lockAxis!==!1,o=new ge(e),o.iOS=Or,Or&&!c()&&c(1),Or&&E.ticker.add(Kt),K=o._dc,M=E.to(o,{ease:"power4",paused:!0,inherit:!1,scrollX:t?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:_u(c,c(),function(){return M.pause()})},onUpdate:cr,onComplete:K.vars.onComplete}),o};B.sort=function(a){if($e(a))return X.sort(a);var e=U.pageYOffset||0;return B.getAll().forEach(function(r){return r._sortY=r.trigger?e+r.trigger.getBoundingClientRect().top:r.start+U.innerHeight}),X.sort(a||function(r,t){return(r.vars.refreshPriority||0)*-1e6+(r.vars.containerAnimation?1e6:r._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+(t.vars.refreshPriority||0)*-1e6)})};B.observe=function(a){return new ge(a)};B.normalizeScroll=function(a){if(typeof a>"u")return st;if(a===!0&&st)return st.enable();if(a===!1){st&&st.kill(),st=a;return}var e=a instanceof ge?a:_f(a);return st&&st.target===e.target&&st.kill(),Zr(e.target)&&(st=e),e};B.core={_getVelocityProp:Dn,_inputObserver:du,_scrollers:Y,_proxies:Xt,bridge:{ss:function(){Rt||jr("scrollStart"),Rt=Ke()},ref:function(){return Qe}}};iu()&&E.registerPlugin(B);Dt.registerPlugin(B);var mo={fadeIn:(a,e={})=>Dt.from(a,{opacity:0,duration:e.duration||.8,delay:e.delay||0,ease:e.ease||"power2.out",scrollTrigger:e.trigger!==!1?{trigger:a,start:e.start||"top 80%",toggleActions:e.toggleActions||"play none none reverse"}:void 0}),slideUp:(a,e={})=>Dt.from(a,{y:e.distance||50,opacity:0,duration:e.duration||.8,delay:e.delay||0,ease:e.ease||"power2.out",scrollTrigger:e.trigger!==!1?{trigger:a,start:e.start||"top 80%",toggleActions:e.toggleActions||"play none none reverse"}:void 0}),slideDown:(a,e={})=>Dt.from(a,{y:-(e.distance||50),opacity:0,duration:e.duration||.8,delay:e.delay||0,ease:e.ease||"power2.out",scrollTrigger:e.trigger!==!1?{trigger:a,start:e.start||"top 80%",toggleActions:e.toggleActions||"play none none reverse"}:void 0}),slideLeft:(a,e={})=>Dt.from(a,{x:e.distance||50,opacity:0,duration:e.duration||.8,delay:e.delay||0,ease:e.ease||"power2.out",scrollTrigger:e.trigger!==!1?{trigger:a,start:e.start||"top 80%",toggleActions:e.toggleActions||"play none none reverse"}:void 0}),slideRight:(a,e={})=>Dt.from(a,{x:-(e.distance||50),opacity:0,duration:e.duration||.8,delay:e.delay||0,ease:e.ease||"power2.out",scrollTrigger:e.trigger!==!1?{trigger:a,start:e.start||"top 80%",toggleActions:e.toggleActions||"play none none reverse"}:void 0}),scale:(a,e={})=>Dt.from(a,{scale:e.from||.8,opacity:0,duration:e.duration||.8,delay:e.delay||0,ease:e.ease||"back.out(1.7)",scrollTrigger:e.trigger!==!1?{trigger:a,start:e.start||"top 80%",toggleActions:e.toggleActions||"play none none reverse"}:void 0}),rotate:(a,e={})=>Dt.from(a,{rotation:e.from||180,opacity:0,duration:e.duration||1,delay:e.delay||0,ease:e.ease||"back.out(1.7)",scrollTrigger:e.trigger!==!1?{trigger:a,start:e.start||"top 80%",toggleActions:e.toggleActions||"play none none reverse"}:void 0}),parallax:(a,e={})=>Dt.to(a,{y:e.distance||100,ease:"none",scrollTrigger:{trigger:e.triggerElement||a,start:e.start||"top bottom",end:e.end||"bottom top",scrub:e.scrub!==void 0?e.scrub:!0}})},Zn=class{constructor(){this.animations=[]}init(){document.querySelectorAll("[data-wm-animate]").forEach(r=>{let t=r.dataset.wmAnimate,i={duration:parseFloat(r.dataset.wmDuration)||void 0,delay:parseFloat(r.dataset.wmDelay)||void 0,distance:parseFloat(r.dataset.wmDistance)||void 0,start:r.dataset.wmStart||void 0,ease:r.dataset.wmEase||void 0,trigger:r.dataset.wmTrigger!=="false"};if(Object.keys(i).forEach(n=>{i[n]===void 0&&delete i[n]}),mo[t])try{let n=mo[t](r,i);this.animations.push(n)}catch(n){console.error(`Failed to apply animation "${t}":`,n)}else console.warn(`Unknown animation type: "${t}"`)}),this.initScrollShrink()}initScrollShrink(){document.querySelectorAll("[data-wm-scroll-shrink]").forEach(e=>{let r=parseInt(e.dataset.wmThreshold)||80,t=document.createElement("div");t.style.height=r+"px",t.style.pointerEvents="none",e.before(t),B.create({trigger:t,start:"top top",onEnter:()=>e.classList.add("wm-scrolled"),onLeaveBack:()=>e.classList.remove("wm-scrolled")})})}refresh(){B.refresh()}destroy(){this.animations.forEach(e=>{e&&e.kill&&e.kill()}),this.animations=[],B.getAll().forEach(e=>e.kill())}},sn;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{sn=new Zn,sn.init()}):(sn=new Zn,sn.init());window.gsap=Dt;window.ScrollTrigger=B;window.wmAnimations=mo;window.wmAnimationManager=sn;})();
|
|
2
|
+
/*! Bundled license information:
|
|
3
|
+
|
|
4
|
+
gsap/gsap-core.js:
|
|
5
|
+
(*!
|
|
6
|
+
* GSAP 3.13.0
|
|
7
|
+
* https://gsap.com
|
|
8
|
+
*
|
|
9
|
+
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
|
10
|
+
* Subject to the terms at https://gsap.com/standard-license
|
|
11
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
12
|
+
*)
|
|
13
|
+
|
|
14
|
+
gsap/CSSPlugin.js:
|
|
15
|
+
(*!
|
|
16
|
+
* CSSPlugin 3.13.0
|
|
17
|
+
* https://gsap.com
|
|
18
|
+
*
|
|
19
|
+
* Copyright 2008-2025, GreenSock. All rights reserved.
|
|
20
|
+
* Subject to the terms at https://gsap.com/standard-license
|
|
21
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
22
|
+
*)
|
|
23
|
+
|
|
24
|
+
gsap/Observer.js:
|
|
25
|
+
(*!
|
|
26
|
+
* Observer 3.13.0
|
|
27
|
+
* https://gsap.com
|
|
28
|
+
*
|
|
29
|
+
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
|
30
|
+
* Subject to the terms at https://gsap.com/standard-license
|
|
31
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
32
|
+
*)
|
|
33
|
+
|
|
34
|
+
gsap/ScrollTrigger.js:
|
|
35
|
+
(*!
|
|
36
|
+
* ScrollTrigger 3.13.0
|
|
37
|
+
* https://gsap.com
|
|
38
|
+
*
|
|
39
|
+
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
|
40
|
+
* Subject to the terms at https://gsap.com/standard-license
|
|
41
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
42
|
+
*)
|
|
43
|
+
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{function vr(e,t){e.indexOf(t)===-1&&e.push(t)}function de(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var B=(e,t,r)=>r>t?t:r<e?e:r;var J=()=>{},N=()=>{};var k={};var Ye=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function qe(e){return typeof e=="object"&&e!==null}var Xe=e=>/^0[^.\s]+$/u.test(e);function he(e){let t;return()=>(t===void 0&&(t=e()),t)}var I=e=>e;var gi=(e,t)=>r=>t(e(r)),ge=(...e)=>e.reduce(gi);var Q=(e,t,r)=>{let n=t-e;return n===0?1:(r-e)/n};var xe=class{constructor(){this.subscriptions=[]}add(t){return vr(this.subscriptions,t),()=>de(this.subscriptions,t)}notify(t,r,n){let o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i<o;i++){let s=this.subscriptions[i];s&&s(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var F=e=>e*1e3,R=e=>e/1e3;function ye(e,t){return t?e*(1e3/t):0}var pn=(e,t,r)=>{let n=t-e;return((r-e)%n+n)%n+e};var dn=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,xi=1e-7,yi=12;function Ti(e,t,r,n,o){let i,s,a=0;do s=t+(r-t)/2,i=dn(s,n,o)-e,i>0?r=s:t=s;while(Math.abs(i)>xi&&++a<yi);return s}function ae(e,t,r,n){if(e===t&&r===n)return I;let o=i=>Ti(i,0,1,e,r);return i=>i===0||i===1?i:dn(o(i),t,n)}var It=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var Rt=e=>t=>1-e(1-t);var Bt=ae(.33,1.53,.69,.99),De=Rt(Bt),Ze=It(De);var Je=e=>(e*=2)<1?.5*De(e):.5*(2-Math.pow(2,-10*(e-1)));var Qe=e=>1-Math.sin(Math.acos(e)),Vr=Rt(Qe),et=It(Qe);var Sr=ae(.42,0,1,1),wr=ae(0,0,.58,1),tt=ae(.42,0,.58,1);var rt=e=>Array.isArray(e)&&typeof e[0]!="number";function nt(e,t){return rt(e)?e[pn(0,e.length,t)]:e}var ot=e=>Array.isArray(e)&&typeof e[0]=="number";var hn={linear:I,easeIn:Sr,easeInOut:tt,easeOut:wr,circIn:Qe,circInOut:et,circOut:Vr,backIn:De,backInOut:Ze,backOut:Bt,anticipate:Je},bi=e=>typeof e=="string",Oe=e=>{if(ot(e)){N(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,r,n,o]=e;return ae(t,r,n,o)}else if(bi(e))return N(hn[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),hn[e];return e};var it=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var Fe={value:null,addProjectionMetrics:null};function gn(e,t){let r=new Set,n=new Set,o=!1,i=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function f(c){s.has(c)&&(m.schedule(c),e()),l++,c(a)}let m={schedule:(c,u=!1,h=!1)=>{let g=h&&o?r:n;return u&&s.add(c),g.has(c)||g.add(c),c},cancel:c=>{n.delete(c),s.delete(c)},process:c=>{if(a=c,o){i=!0;return}o=!0,[r,n]=[n,r],r.forEach(f),t&&Fe.value&&Fe.value.frameloop[t].push(l),l=0,r.clear(),o=!1,i&&(i=!1,m.process(c))}};return m}var vi=40;function kt(e,t){let r=!1,n=!0,o={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,s=it.reduce((V,S)=>(V[S]=gn(i,t?S:void 0),V),{}),{setup:a,read:l,resolveKeyframes:f,preUpdate:m,update:c,preRender:u,render:h,postRender:T}=s,g=()=>{let V=k.useManualTiming?o.timestamp:performance.now();r=!1,k.useManualTiming||(o.delta=n?1e3/60:Math.max(Math.min(V-o.timestamp,vi),1)),o.timestamp=V,o.isProcessing=!0,a.process(o),l.process(o),f.process(o),m.process(o),c.process(o),u.process(o),h.process(o),T.process(o),o.isProcessing=!1,r&&t&&(n=!1,e(g))},b=()=>{r=!0,n=!0,o.isProcessing||e(g)};return{schedule:it.reduce((V,S)=>{let d=s[S];return V[S]=(v,D=!1,x=!1)=>(r||b(),d.schedule(v,D,x)),V},{}),cancel:V=>{for(let S=0;S<it.length;S++)s[it[S]].cancel(V)},state:o,steps:s}}var{schedule:O,cancel:H,state:ee,steps:Vi}=kt(typeof requestAnimationFrame<"u"?requestAnimationFrame:I,!0);var Nt;function Si(){Nt=void 0}var P={now:()=>(Nt===void 0&&P.set(ee.isProcessing||k.useManualTiming?ee.timestamp:performance.now()),Nt),set:e=>{Nt=e,queueMicrotask(Si)}};var Pe={layout:0,mainThread:0,waapi:0};var xn=e=>t=>typeof t=="string"&&t.startsWith(e),st=xn("--"),wi=xn("var(--"),Te=e=>wi(e)?Mi.test(e.split("/*")[0].trim()):!1,Mi=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var _={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},te={..._,transform:e=>B(0,1,e)},at={..._,default:1};var le=e=>Math.round(e*1e5)/1e5;var Ie=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function yn(e){return e==null}var Tn=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Re=(e,t)=>r=>!!(typeof r=="string"&&Tn.test(r)&&r.startsWith(e)||t&&!yn(r)&&Object.prototype.hasOwnProperty.call(r,t)),Kt=(e,t,r)=>n=>{if(typeof n!="string")return n;let[o,i,s,a]=n.match(Ie);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}};var Ai=e=>B(0,255,e),Mr={..._,transform:e=>Math.round(Ai(e))},U={test:Re("rgb","red"),parse:Kt("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Mr.transform(e)+", "+Mr.transform(t)+", "+Mr.transform(r)+", "+le(te.transform(n))+")"};function Ei(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}var lt={test:Re("#"),parse:Ei,transform:U.transform};var mt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),G=mt("deg"),re=mt("%"),p=mt("px"),Ar=mt("vh"),Er=mt("vw"),Lt={...re,parse:e=>re.parse(e)/100,transform:e=>re.transform(e*100)};var me={test:Re("hsl","hue"),parse:Kt("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+re.transform(le(t))+", "+re.transform(le(r))+", "+le(te.transform(n))+")"};var C={test:e=>U.test(e)||lt.test(e)||me.test(e),parse:e=>U.test(e)?U.parse(e):me.test(e)?me.parse(e):lt.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?U.transform(e):me.transform(e),getAnimatableNone:e=>{let t=C.parse(e);return t.alpha=0,C.transform(t)}};var bn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ci(e){return isNaN(e)&&typeof e=="string"&&(e.match(Ie)?.length||0)+(e.match(bn)?.length||0)>0}var Vn="number",Sn="color",Di="var",Oi="var(",vn="${}",Fi=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function fe(e){let t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[],i=0,a=t.replace(Fi,l=>(C.test(l)?(n.color.push(i),o.push(Sn),r.push(C.parse(l))):l.startsWith(Oi)?(n.var.push(i),o.push(Di),r.push(l)):(n.number.push(i),o.push(Vn),r.push(parseFloat(l))),++i,vn)).split(vn);return{values:r,split:a,indexes:n,types:o}}function wn(e){return fe(e).values}function Mn(e){let{split:t,types:r}=fe(e),n=t.length;return o=>{let i="";for(let s=0;s<n;s++)if(i+=t[s],o[s]!==void 0){let a=r[s];a===Vn?i+=le(o[s]):a===Sn?i+=C.transform(o[s]):i+=o[s]}return i}}var Pi=e=>typeof e=="number"?0:C.test(e)?C.getAnimatableNone(e):e;function Ii(e){let t=wn(e);return Mn(e)(t.map(Pi))}var L={test:Ci,parse:wn,createTransformer:Mn,getAnimatableNone:Ii};function Cr(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function An({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,s=0;if(!t)o=i=s=r;else{let a=r<.5?r*(1+t):r+t-r*t,l=2*r-a;o=Cr(l,a,e+1/3),i=Cr(l,a,e),s=Cr(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:n}}function Be(e,t){return r=>r>0?t:e}var z=(e,t,r)=>e+(t-e)*r;var Dr=(e,t,r)=>{let n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},Ri=[lt,U,me],Bi=e=>Ri.find(t=>t.test(e));function En(e){let t=Bi(e);if(J(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===me&&(r=An(r)),r}var Or=(e,t)=>{let r=En(e),n=En(t);if(!r||!n)return Be(e,t);let o={...r};return i=>(o.red=Dr(r.red,n.red,i),o.green=Dr(r.green,n.green,i),o.blue=Dr(r.blue,n.blue,i),o.alpha=z(r.alpha,n.alpha,i),U.transform(o))};var Wt=new Set(["none","hidden"]);function Cn(e,t){return Wt.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function ki(e,t){return r=>z(e,t,r)}function Gt(e){return typeof e=="number"?ki:typeof e=="string"?Te(e)?Be:C.test(e)?Or:Li:Array.isArray(e)?Dn:typeof e=="object"?C.test(e)?Or:Ni:Be}function Dn(e,t){let r=[...e],n=r.length,o=e.map((i,s)=>Gt(i)(i,t[s]));return i=>{for(let s=0;s<n;s++)r[s]=o[s](i);return r}}function Ni(e,t){let r={...e,...t},n={};for(let o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=Gt(e[o])(e[o],t[o]));return o=>{for(let i in n)r[i]=n[i](o);return r}}function Ki(e,t){let r=[],n={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){let i=t.types[o],s=e.indexes[i][n[i]],a=e.values[s]??0;r[o]=a,n[i]++}return r}var Li=(e,t)=>{let r=L.createTransformer(t),n=fe(e),o=fe(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?Wt.has(e)&&!o.values.length||Wt.has(t)&&!n.values.length?Cn(e,t):ge(Dn(Ki(n,o),o.values),r):(J(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Be(e,t))};function zt(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?z(e,t,r):Gt(e)(e,t)}var On=e=>{let t=({timestamp:r})=>e(r);return{start:(r=!0)=>O.update(t,r),stop:()=>H(t),now:()=>ee.isProcessing?ee.timestamp:P.now()}};var jt=(e,t,r=10)=>{let n="",o=Math.max(Math.round(t/r),2);for(let i=0;i<o;i++)n+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function ke(e){let t=0,r=50,n=e.next(t);for(;!n.done&&t<2e4;)t+=r,n=e.next(t);return t>=2e4?1/0:t}function ft(e,t=100,r){let n=r({...e,keyframes:[0,t]}),o=Math.min(ke(n),2e4);return{type:"keyframes",ease:i=>n.next(o*i).value/t,duration:R(o)}}var Wi=5;function $t(e,t,r){let n=Math.max(t-Wi,0);return ye(r-e(n),t-n)}var M={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};var Pr=.001;function Fn({duration:e=M.duration,bounce:t=M.bounce,velocity:r=M.velocity,mass:n=M.mass}){let o,i;J(e<=F(M.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=B(M.minDamping,M.maxDamping,s),e=B(M.minDuration,M.maxDuration,R(e)),s<1?(o=f=>{let m=f*s,c=m*e,u=m-r,h=Ht(f,s),T=Math.exp(-c);return Pr-u/h*T},i=f=>{let c=f*s*e,u=c*r+r,h=Math.pow(s,2)*Math.pow(f,2)*e,T=Math.exp(-c),g=Ht(Math.pow(f,2),s);return(-o(f)+Pr>0?-1:1)*((u-h)*T)/g}):(o=f=>{let m=Math.exp(-f*e),c=(f-r)*e+1;return-Pr+m*c},i=f=>{let m=Math.exp(-f*e),c=(r-f)*(e*e);return m*c});let a=5/e,l=zi(o,i,a);if(e=F(e),isNaN(l))return{stiffness:M.stiffness,damping:M.damping,duration:e};{let f=Math.pow(l,2)*n;return{stiffness:f,damping:s*2*Math.sqrt(n*f),duration:e}}}var Gi=12;function zi(e,t,r){let n=r;for(let o=1;o<Gi;o++)n=n-e(n)/t(n);return n}function Ht(e,t){return e*Math.sqrt(1-t*t)}var ji=["duration","bounce"],$i=["stiffness","damping","mass"];function Pn(e,t){return t.some(r=>e[r]!==void 0)}function Hi(e){let t={velocity:M.velocity,stiffness:M.stiffness,damping:M.damping,mass:M.mass,isResolvedFromDuration:!1,...e};if(!Pn(e,$i)&&Pn(e,ji))if(e.visualDuration){let r=e.visualDuration,n=2*Math.PI/(r*1.2),o=n*n,i=2*B(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:M.mass,stiffness:o,damping:i}}else{let r=Fn(e);t={...t,...r,mass:M.mass},t.isResolvedFromDuration=!0}return t}function ne(e=M.visualDuration,t=M.bounce){let r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:n,restDelta:o}=r,i=r.keyframes[0],s=r.keyframes[r.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:f,mass:m,duration:c,velocity:u,isResolvedFromDuration:h}=Hi({...r,velocity:-R(r.velocity||0)}),T=u||0,g=f/(2*Math.sqrt(l*m)),b=s-i,y=R(Math.sqrt(l/m)),E=Math.abs(b)<5;n||(n=E?M.restSpeed.granular:M.restSpeed.default),o||(o=E?M.restDelta.granular:M.restDelta.default);let V;if(g<1){let d=Ht(y,g);V=v=>{let D=Math.exp(-g*y*v);return s-D*((T+g*y*b)/d*Math.sin(d*v)+b*Math.cos(d*v))}}else if(g===1)V=d=>s-Math.exp(-y*d)*(b+(T+y*b)*d);else{let d=y*Math.sqrt(g*g-1);V=v=>{let D=Math.exp(-g*y*v),x=Math.min(d*v,300);return s-D*((T+g*y*b)*Math.sinh(x)+d*b*Math.cosh(x))/d}}let S={calculatedDuration:h&&c||null,next:d=>{let v=V(d);if(h)a.done=d>=c;else{let D=d===0?T:0;g<1&&(D=d===0?F(T):$t(V,d,v));let x=Math.abs(D)<=n,w=Math.abs(s-v)<=o;a.done=x&&w}return a.value=a.done?s:v,a},toString:()=>{let d=Math.min(ke(S),2e4),v=jt(D=>S.next(d*D).value,d,30);return d+"ms "+v},toTransition:()=>{}};return S}ne.applyToOptions=e=>{let t=ft(e,100,ne);return e.ease=t.ease,e.duration=F(t.duration),e.type="keyframes",e};function ct({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:f=.5,restSpeed:m}){let c=e[0],u={done:!1,value:c},h=x=>a!==void 0&&x<a||l!==void 0&&x>l,T=x=>a===void 0?l:l===void 0||Math.abs(a-x)<Math.abs(l-x)?a:l,g=r*t,b=c+g,y=s===void 0?b:s(b);y!==b&&(g=y-c);let E=x=>-g*Math.exp(-x/n),V=x=>y+E(x),S=x=>{let w=E(x),K=V(x);u.done=Math.abs(w)<=f,u.value=u.done?y:K},d,v,D=x=>{h(u.value)&&(d=x,v=ne({keyframes:[u.value,T(u.value)],velocity:$t(V,x,u.value),damping:o,stiffness:i,restDelta:f,restSpeed:m}))};return D(0),{calculatedDuration:null,next:x=>{let w=!1;return!v&&d===void 0&&(w=!0,S(x),D(x)),d!==void 0&&x>=d?v.next(x-d):(!w&&S(x),u)}}}function _i(e,t,r){let n=[],o=r||k.mix||zt,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){let l=Array.isArray(t)?t[s]||I:t;a=ge(l,a)}n.push(a)}return n}function ut(e,t,{clamp:r=!0,ease:n,mixer:o}={}){let i=e.length;if(N(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=_i(t,n,o),l=a.length,f=m=>{if(s&&m<e[0])return t[0];let c=0;if(l>1)for(;c<e.length-2&&!(m<e[c+1]);c++);let u=Q(e[c],e[c+1],m);return a[c](u)};return r?m=>f(B(e[0],e[i-1],m)):f}function pt(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let o=Q(0,t,n);e.push(z(r,1,o))}}function be(e){let t=[0];return pt(t,e.length-1),t}function In(e,t){return e.map(r=>r*t)}function Ui(e,t){return e.map(()=>t||tt).splice(0,e.length-1)}function ve({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){let o=rt(n)?n.map(Oe):Oe(n),i={done:!1,value:t[0]},s=In(r&&r.length===t.length?r:be(t),e),a=ut(s,t,{ease:Array.isArray(o)?o:Ui(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}var Yi=e=>e!==null;function Ne(e,{repeat:t,repeatType:r="loop"},n,o=1){let i=e.filter(Yi),a=o<0||t&&r!=="loop"&&t%2===1?0:i.length-1;return!a||n===void 0?i[a]:n}var qi={decay:ct,inertia:ct,tween:ve,keyframes:ve,spring:ne};function _t(e){typeof e.type=="string"&&(e.type=qi[e.type])}var ce=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}};var Xi=e=>e/100,oe=class extends ce{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:r}=this.options;r&&r.updatedAt!==P.now()&&this.tick(P.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},Pe.mainThread++,this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){let{options:t}=this;_t(t);let{type:r=ve,repeat:n=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t,{keyframes:a}=t,l=r||ve;l!==ve&&typeof a[0]!="number"&&(this.mixKeyframes=ge(Xi,zt(a[0],a[1])),a=[0,100]);let f=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),f.calculatedDuration===null&&(f.calculatedDuration=ke(f));let{calculatedDuration:m}=f;this.calculatedDuration=m,this.resolvedDuration=m+o,this.totalDuration=this.resolvedDuration*(n+1)-o,this.generator=f}updateTime(t){let r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){let{generator:n,totalDuration:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return n.next(0);let{delay:f=0,keyframes:m,repeat:c,repeatType:u,repeatDelay:h,type:T,onUpdate:g,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);let y=this.currentTime-f*(this.playbackSpeed>=0?1:-1),E=this.playbackSpeed>=0?y<0:y>o;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let V=this.currentTime,S=n;if(c){let x=Math.min(this.currentTime,o)/a,w=Math.floor(x),K=x%1;!K&&x>=1&&(K=1),K===1&&w--,w=Math.min(w,c+1),!!(w%2)&&(u==="reverse"?(K=1-K,h&&(K-=h/a)):u==="mirror"&&(S=s)),V=B(0,1,K)*a}let d=E?{done:!1,value:m[0]}:S.next(V);i&&(d.value=i(d.value));let{done:v}=d;!E&&l!==null&&(v=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);let D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&v);return D&&T!==ct&&(d.value=Ne(m,this.options,b,this.speed)),g&&g(d.value),D&&this.finish(),d}then(t,r){return this.finished.then(t,r)}get duration(){return R(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+R(t)}get time(){return R(this.currentTime)}set time(t){t=F(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(P.now());let r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=R(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=On,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();let n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(P.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,Pe.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}};function Rn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Ve=e=>e*180/Math.PI,Ir=e=>{let t=Ve(Math.atan2(e[1],e[0]));return Rr(t)},Zi={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ir,rotateZ:Ir,skewX:e=>Ve(Math.atan(e[1])),skewY:e=>Ve(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Rr=e=>(e=e%360,e<0&&(e+=360),e),Bn=Ir,kn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Nn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Ji={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:kn,scaleY:Nn,scale:e=>(kn(e)+Nn(e))/2,rotateX:e=>Rr(Ve(Math.atan2(e[6],e[5]))),rotateY:e=>Rr(Ve(Math.atan2(-e[2],e[0]))),rotateZ:Bn,rotate:Bn,skewX:e=>Ve(Math.atan(e[4])),skewY:e=>Ve(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function dt(e){return e.includes("scale")?1:0}function ht(e,t){if(!e||e==="none")return dt(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),n,o;if(r)n=Ji,o=r;else{let a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Zi,o=a}if(!o)return dt(t);let i=n[t],s=o[1].split(",").map(Qi);return typeof i=="function"?i(s):s[i]}var Br=(e,t)=>{let{transform:r="none"}=getComputedStyle(e);return ht(r,t)};function Qi(e){return parseFloat(e.trim())}var j=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],W=new Set(j);var kr=e=>e===_||e===p,es=new Set(["x","y","z"]),ts=j.filter(e=>!es.has(e));function Kn(e){let t=[];return ts.forEach(r=>{let n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}var ue={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ht(t,"x"),y:(e,{transform:t})=>ht(t,"y")};ue.translateX=ue.x;ue.translateY=ue.y;var Se=new Set,Nr=!1,Kr=!1,Lr=!1;function Ln(){if(Kr){let e=Array.from(Se).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{let o=Kn(n);o.length&&(r.set(n,o),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();let o=r.get(n);o&&o.forEach(([i,s])=>{n.getValue(i)?.set(s)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Kr=!1,Nr=!1,Se.forEach(e=>e.complete(Lr)),Se.clear()}function Wn(){Se.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Kr=!0)})}function Wr(){Lr=!0,Wn(),Ln(),Lr=!1}var ie=class{constructor(t,r,n,o,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Se.add(this),Nr||(Nr=!0,O.read(Wn),O.resolveKeyframes(Ln))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:r,element:n,motionValue:o}=this;if(t[0]===null){let i=o?.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(n&&r){let a=n.readValue(r,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}Rn(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Se.delete(this)}cancel(){this.state==="scheduled"&&(Se.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var Gn=e=>e.startsWith("--");function zn(e,t,r){Gn(t)?e.style.setProperty(t,r):e.style[t]=r}var gt=he(()=>window.ScrollTimeline!==void 0);var jn={};function $n(e,t){let r=he(e);return()=>jn[t]??r()}var Ut=$n(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var we=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`;var Gr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:we([0,.65,.55,1]),circOut:we([.55,0,1,.45]),backIn:we([.31,.01,.66,-.59]),backOut:we([.33,1.53,.69,.99])};function zr(e,t){if(e)return typeof e=="function"?Ut()?jt(e,t):"ease-out":ot(e)?we(e):Array.isArray(e)?e.map(r=>zr(r,t)||Gr.easeOut):Gr[e]}function Hn(e,t,r,{delay:n=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:l}={},f=void 0){let m={[t]:r};l&&(m.offset=l);let c=zr(a,o);Array.isArray(c)&&(m.easing=c),Fe.value&&Pe.waapi++;let u={delay:n,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};f&&(u.pseudoElement=f);let h=e.animate(m,u);return Fe.value&&h.finished.finally(()=>{Pe.waapi--}),h}function Me(e){return typeof e=="function"&&"applyToOptions"in e}function _n({type:e,...t}){return Me(e)&&Ut()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var Yt=class extends ce{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:r,name:n,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,N(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let f=_n(t);this.animation=Hn(r,n,o,f,i),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let m=Ne(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(m):zn(r,n,m),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return R(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+R(t)}get time(){return R(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=F(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&>()?(this.animation.timeline=t,I):r(this)}};var Un={anticipate:Je,backInOut:Ze,circInOut:et};function rs(e){return e in Un}function Yn(e){typeof e.ease=="string"&&rs(e.ease)&&(e.ease=Un[e.ease])}var qn=10,qt=class extends Yt{constructor(t){Yn(t),_t(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:r,onUpdate:n,onComplete:o,element:i,...s}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}let a=new oe({...s,autoplay:!1}),l=F(this.finishedTime??this.time);r.setWithVelocity(a.sample(l-qn).value,a.sample(l).value,qn),a.stop()}};var jr=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(L.test(e)||e==="0")&&!e.startsWith("url("));function ns(e){let t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function Xn(e,t,r,n){let o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;let i=e[e.length-1],s=jr(o,t),a=jr(i,t);return J(s===a,`You are trying to animate ${t} from "${o}" to "${i}". "${s?i:o}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:ns(e)||(r==="spring"||Me(r))&&n}function Ke(e){e.duration=0,e.type="keyframes"}var os=new Set(["opacity","clipPath","filter","transform"]),is=he(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Zn(e){let{motionValue:t,name:r,repeatDelay:n,repeatType:o,damping:i,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:f}=t.owner.getProps();return is()&&r&&os.has(r)&&(r!=="transform"||!f)&&!l&&!n&&o!=="mirror"&&i!==0&&s!=="inertia"}var ss=40,xt=class extends ce{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:l,motionValue:f,element:m,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=P.now();let u={autoplay:t,delay:r,type:n,repeat:o,repeatDelay:i,repeatType:s,name:l,motionValue:f,element:m,...c},h=m?.KeyframeResolver||ie;this.keyframeResolver=new h(a,(T,g,b)=>this.onKeyframesResolved(T,g,u,!b),l,f,m),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,n,o){this.keyframeResolver=void 0;let{name:i,type:s,velocity:a,delay:l,isHandoff:f,onUpdate:m}=n;this.resolvedAt=P.now(),Xn(t,i,s,a)||((k.instantAnimations||!l)&&m?.(Ne(t,n,r)),t[0]=t[t.length-1],Ke(n),n.repeat=0);let u={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>ss?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:t},h=!f&&Zn(u)?new qt({...u,element:u.motionValue.owner.current}):new oe(u);h.finished.then(()=>this.notifyFinished()).catch(I),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Wr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};var Xt=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,r){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=r}attachTimeline(t){let r=this.animations.map(n=>n.attachTimeline(t));return()=>{r.forEach((n,o)=>{n&&n(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return Jn(this.animations,"duration")}get iterationDuration(){return Jn(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(r=>r[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};function Jn(e,t){let r=0;for(let n=0;n<e.length;n++){let o=e[n][t];o!==null&&o>r&&(r=o)}return r}var yt=class extends Xt{then(t,r){return this.finished.finally(t).then(()=>{})}};var as=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ls(e){let t=as.exec(e);if(!t)return[,];let[,r,n,o]=t;return[`--${r??n}`,o]}var ms=4;function $r(e,t,r=1){N(r<=ms,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,o]=ls(e);if(!n)return;let i=window.getComputedStyle(t).getPropertyValue(n);if(i){let s=i.trim();return Ye(s)?parseFloat(s):s}return Te(o)?$r(o,t,r+1):o}function Tt(e,t){return e?.[t]??e?.default??e}var bt=new Set(["width","height","top","left","right","bottom",...j]);var Qn={test:e=>e==="auto",parse:e=>e};var Zt=e=>t=>t.test(e);var Hr=[_,p,re,G,Er,Ar,Qn],_r=e=>Hr.find(Zt(e));function eo(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Xe(e):!0}var fs=new Set(["brightness","contrast","saturate","opacity"]);function cs(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[n]=r.match(Ie)||[];if(!n)return e;let o=r.replace(n,""),i=fs.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}var us=/\b([a-z-]*)\(.*?\)/gu,vt={...L,getAnimatableNone:e=>{let t=e.match(us);return t?t.map(cs).join(" "):e}};var Ur={..._,transform:Math.round};var to={rotate:G,rotateX:G,rotateY:G,rotateZ:G,scale:at,scaleX:at,scaleY:at,scaleZ:at,skew:G,skewX:G,skewY:G,distance:p,translateX:p,translateY:p,translateZ:p,x:p,y:p,z:p,perspective:p,transformPerspective:p,opacity:te,originX:Lt,originY:Lt,originZ:p};var Ae={borderWidth:p,borderTopWidth:p,borderRightWidth:p,borderBottomWidth:p,borderLeftWidth:p,borderRadius:p,radius:p,borderTopLeftRadius:p,borderTopRightRadius:p,borderBottomRightRadius:p,borderBottomLeftRadius:p,width:p,maxWidth:p,height:p,maxHeight:p,top:p,right:p,bottom:p,left:p,padding:p,paddingTop:p,paddingRight:p,paddingBottom:p,paddingLeft:p,margin:p,marginTop:p,marginRight:p,marginBottom:p,marginLeft:p,backgroundPositionX:p,backgroundPositionY:p,...to,zIndex:Ur,fillOpacity:te,strokeOpacity:te,numOctaves:Ur};var ro={...Ae,color:C,backgroundColor:C,outlineColor:C,fill:C,stroke:C,borderColor:C,borderTopColor:C,borderRightColor:C,borderBottomColor:C,borderLeftColor:C,filter:vt,WebkitFilter:vt},Vt=e=>ro[e];function St(e,t){let r=Vt(e);return r!==vt&&(r=L),r.getAnimatableNone?r.getAnimatableNone(t):void 0}var ps=new Set(["auto","none","0"]);function no(e,t,r){let n=0,o;for(;n<e.length&&!o;){let i=e[n];typeof i=="string"&&!ps.has(i)&&fe(i).values.length&&(o=e[n]),n++}if(o&&r)for(let i of t)e[i]=St(r,o)}var wt=class extends ie{constructor(t,r,n,o,i){super(t,r,n,o,i,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let f=t[l];if(typeof f=="string"&&(f=f.trim(),Te(f))){let m=$r(f,r.current);m!==void 0&&(t[l]=m),l===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!bt.has(n)||t.length!==2)return;let[o,i]=t,s=_r(o),a=_r(i);if(s!==a)if(kr(s)&&kr(a))for(let l=0;l<t.length;l++){let f=t[l];typeof f=="string"&&(t[l]=parseFloat(f))}else ue[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:r}=this,n=[];for(let o=0;o<t.length;o++)(t[o]===null||eo(t[o]))&&n.push(o);n.length&&no(t,n,r)}measureInitialState(){let{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ue[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;let o=r[r.length-1];o!==void 0&&t.getValue(n,o).jump(o,!1)}measureEndState(){let{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;let o=t.getValue(r);o&&o.jump(this.measuredOrigin,!1);let i=n.length-1,s=n[i];n[i]=ue[r](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}};function Ee(e,t,r){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;t&&(n=t.current);let o=r?.[e]??n.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}var Mt=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Yr(e){return qe(e)&&"offsetHeight"in e}var oo=30,ds=e=>!isNaN(parseFloat(e)),qr={current:void 0},Jt=class{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{let o=P.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=P.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ds(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new xe);let n=this.events[t].add(r);return t==="change"?()=>{n(),O.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return qr.current&&qr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=P.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>oo)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,oo);return ye(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Y(e,t){return new Jt(e,t)}var{schedule:Xr,cancel:hs}=kt(queueMicrotask,!1);function Ce(e){return qe(e)&&"ownerSVGElement"in e}var Qt=new WeakMap,er,io=(e,t,r)=>(n,o)=>o&&o[0]?o[0][e+"Size"]:Ce(n)&&"getBBox"in n?n.getBBox()[t]:n[r],gs=io("inline","width","offsetWidth"),xs=io("block","height","offsetHeight");function ys({target:e,borderBoxSize:t}){Qt.get(e)?.forEach(r=>{r(e,{get width(){return gs(e,t)},get height(){return xs(e,t)}})})}function Ts(e){e.forEach(ys)}function bs(){typeof ResizeObserver>"u"||(er=new ResizeObserver(Ts))}function so(e,t){er||bs();let r=Ee(e);return r.forEach(n=>{let o=Qt.get(n);o||(o=new Set,Qt.set(n,o)),o.add(t),er?.observe(n)}),()=>{r.forEach(n=>{let o=Qt.get(n);o?.delete(t),o?.size||er?.unobserve(n)})}}var tr=new Set,Le;function vs(){Le=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};tr.forEach(t=>t(e))},window.addEventListener("resize",Le)}function ao(e){return tr.add(e),Le||vs(),()=>{tr.delete(e),!tr.size&&typeof Le=="function"&&(window.removeEventListener("resize",Le),Le=void 0)}}function Zr(e,t){return typeof e=="function"?ao(e):so(e,t)}function At(e,t){let r,n=()=>{let{currentTime:o}=t,s=(o===null?0:o.value)/100;r!==s&&e(s),r=s};return O.preUpdate(n,!0),()=>H(n)}function Jr(e){return Ce(e)&&e.tagName==="svg"}function lo(e,t){if(e==="first")return 0;{let r=t-1;return e==="last"?r:r/2}}function Qr(e=.1,{startDelay:t=0,from:r=0,ease:n}={}){return(o,i)=>{let s=typeof r=="number"?r:lo(r,i),a=Math.abs(s-o),l=e*a;if(n){let f=i*e;l=Oe(n)(l/f)*f}return t+l}}var A=e=>!!(e&&e.getVelocity);var Vs=[...Hr,C,L],en=e=>Vs.find(Zt(e));function Et(e){return typeof e=="object"&&!Array.isArray(e)}function rr(e,t,r,n){return typeof e=="string"&&Et(t)?Ee(e,r,n):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function mo(e,t,r){return e*(t+1)}function tn(e,t,r,n){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?r:t.startsWith("<")?Math.max(0,r+parseFloat(t.slice(1))):n.get(t)??e}function Ss(e,t,r){for(let n=0;n<e.length;n++){let o=e[n];o.at>t&&o.at<r&&(de(e,o),n--)}}function fo(e,t,r,n,o,i){Ss(e,o,i);for(let s=0;s<t.length;s++)e.push({value:t[s],at:z(o,i,n[s]),easing:nt(r,s)})}function co(e,t){for(let r=0;r<e.length;r++)e[r]=e[r]/(t+1)}function uo(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var ws="easeInOut",Ms=20;function go(e,{defaultTransition:t={},...r}={},n,o){let i=t.duration||.3,s=new Map,a=new Map,l={},f=new Map,m=0,c=0,u=0;for(let h=0;h<e.length;h++){let T=e[h];if(typeof T=="string"){f.set(T,c);continue}else if(!Array.isArray(T)){f.set(T.name,tn(c,T.at,m,f));continue}let[g,b,y={}]=T;y.at!==void 0&&(c=tn(c,y.at,m,f));let E=0,V=(S,d,v,D=0,x=0)=>{let w=As(S),{delay:K=0,times:$=be(w),type:br="keyframes",repeat:$e,repeatType:na,repeatDelay:oa=0,...hi}=d,{ease:se=t.ease||"easeOut",duration:Z}=d,an=typeof K=="function"?K(D,x):K,ln=w.length,mn=Me(br)?br:o?.[br||"keyframes"];if(ln<=2&&mn){let He=100;if(ln===2&&Ds(w)){let _e=w[1]-w[0];He=Math.abs(_e)}let Ft={...hi};Z!==void 0&&(Ft.duration=F(Z));let Pt=ft(Ft,He,mn);se=Pt.ease,Z=Pt.duration}Z??(Z=i);let fn=c+an;$.length===1&&$[0]===0&&($[1]=1);let cn=$.length-w.length;if(cn>0&&pt($,cn),w.length===1&&w.unshift(null),$e){N($e<Ms,"Repeat count too high, must be less than 20","repeat-count-high"),Z=mo(Z,$e);let He=[...w],Ft=[...$];se=Array.isArray(se)?[...se]:[se];let Pt=[...se];for(let _e=0;_e<$e;_e++){w.push(...He);for(let Ue=0;Ue<He.length;Ue++)$.push(Ft[Ue]+(_e+1)),se.push(Ue===0?"linear":nt(Pt,Ue-1))}co($,$e)}let un=fn+Z;fo(v,w,se,$,fn,un),E=Math.max(an+Z,E),u=Math.max(un,u)};if(A(g)){let S=po(g,a);V(b,y,ho("default",S))}else{let S=rr(g,b,n,l),d=S.length;for(let v=0;v<d;v++){b=b,y=y;let D=S[v],x=po(D,a);for(let w in b)V(b[w],Es(y,w),ho(w,x),v,d)}}m=c,c+=E}return a.forEach((h,T)=>{for(let g in h){let b=h[g];b.sort(uo);let y=[],E=[],V=[];for(let d=0;d<b.length;d++){let{at:v,value:D,easing:x}=b[d];y.push(D),E.push(Q(0,u,v)),V.push(x||"easeOut")}E[0]!==0&&(E.unshift(0),y.unshift(y[0]),V.unshift(ws)),E[E.length-1]!==1&&(E.push(1),y.push(null)),s.has(T)||s.set(T,{keyframes:{},transition:{}});let S=s.get(T);S.keyframes[g]=y,S.transition[g]={...t,duration:u,ease:V,times:E,...r}}}),s}function po(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function ho(e,t){return t[e]||(t[e]=[]),t[e]}function As(e){return Array.isArray(e)?e:[e]}function Es(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Cs=e=>typeof e=="number",Ds=e=>e.every(Cs);var pe=new WeakMap;var xo=e=>Array.isArray(e);function yo(e){let t=[{},{}];return e?.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function nr(e,t,r,n){if(typeof t=="function"){let[o,i]=yo(n);t=t(r!==void 0?r:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[o,i]=yo(n);t=t(r!==void 0?r:e.custom,o,i)}return t}function To(e,t,r){let n=e.getProps();return nr(n,t,r!==void 0?r:n.custom,e)}function Os(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Y(r))}function Fs(e){return xo(e)?e[e.length-1]||0:e}function bo(e,t){let r=To(e,t),{transitionEnd:n={},transition:o={},...i}=r||{};i={...i,...n};for(let s in i){let a=Fs(i[s]);Os(e,s,a)}}function vo(e){return!!(A(e)&&e.add)}function Vo(e,t){let r=e.getValue("willChange");if(vo(r))return r.add(t);if(!r&&k.WillChange){let n=new k.WillChange("auto");e.addValue("willChange",n),n.add(t)}}var We=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var Ps="framerAppearId",So="data-"+We(Ps);function wo(e){return e.props[So]}var Is=e=>e!==null;function Mo(e,{repeat:t,repeatType:r="loop"},n){let o=e.filter(Is),i=t&&r!=="loop"&&t%2===1?0:o.length-1;return!i||n===void 0?o[i]:n}var Rs={type:"spring",stiffness:500,damping:25,restSpeed:10},Bs=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ks={type:"keyframes",duration:.8},Ns={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ao=(e,{keyframes:t})=>t.length>2?ks:W.has(e)?e.startsWith("scale")?Bs(t[1]):Rs:Ns;function Eo({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:f,...m}){return!!Object.keys(m).length}var or=(e,t,r,n={},o,i)=>s=>{let a=Tt(n,e)||{},l=a.delay||n.delay||0,{elapsed:f=0}=n;f=f-F(l);let m={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-f,onUpdate:u=>{t.set(u),a.onUpdate&&a.onUpdate(u)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};Eo(a)||Object.assign(m,Ao(e,m)),m.duration&&(m.duration=F(m.duration)),m.repeatDelay&&(m.repeatDelay=F(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let c=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(Ke(m),m.delay===0&&(c=!0)),(k.instantAnimations||k.skipAnimations)&&(c=!0,Ke(m),m.delay=0),m.allowFlatten=!a.type&&!a.ease,c&&!i&&t.get()!==void 0){let u=Mo(m.keyframes,a);if(u!==void 0){O.update(()=>{m.onUpdate(u),m.onComplete()});return}}return a.isSync?new oe(m):new xt(m)};function Ks({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function Co(e,t,{delay:r=0,transitionOverride:n,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=t;n&&(i=n);let l=[],f=o&&e.animationState&&e.animationState.getState()[o];for(let m in a){let c=e.getValue(m,e.latestValues[m]??null),u=a[m];if(u===void 0||f&&Ks(f,m))continue;let h={delay:r,...Tt(i||{},m)},T=c.get();if(T!==void 0&&!c.isAnimating&&!Array.isArray(u)&&u===T&&!h.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){let y=wo(e);if(y){let E=window.MotionHandoffAnimation(y,m,O);E!==null&&(h.startTime=E,g=!0)}}Vo(e,m),c.start(or(m,c,u,e.shouldReduceMotion&&bt.has(m)?{type:!1}:h,e,g));let b=c.animation;b&&l.push(b)}return s&&Promise.all(l).then(()=>{O.update(()=>{s&&bo(e,s)})}),l}function Do({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function Oo(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Fo(e,t){return Do(Oo(e.getBoundingClientRect(),t))}var Po={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ir={};for(let e in Po)ir[e]={isEnabled:t=>Po[e].some(r=>!!t[r])};var Io=()=>({min:0,max:0}),Ge=()=>({x:Io(),y:Io()});var Ro=typeof window<"u";var Ct={current:null},sr={current:!1};function Bo(){if(sr.current=!0,!!Ro)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ct.current=e.matches;e.addEventListener("change",t),t()}else Ct.current=!1}function ko(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function No(e){return typeof e=="string"||Array.isArray(e)}var Ls=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ko=["initial",...Ls];function rn(e){return ko(e.animate)||Ko.some(t=>No(e[t]))}function Lo(e){return!!(rn(e)||e.variants)}function Wo(e,t,r){for(let n in t){let o=t[n],i=r[n];if(A(o))e.addValue(n,o);else if(A(i))e.addValue(n,Y(o,{owner:e}));else if(i!==o)if(e.hasValue(n)){let s=e.getValue(n);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{let s=e.getStaticValue(n);e.addValue(n,Y(s!==void 0?s:o,{owner:e}))}}for(let n in r)t[n]===void 0&&e.removeValue(n);return t}var Go=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ze=class{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ie,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let u=P.now();this.renderScheduledAt<u&&(this.renderScheduledAt=u,O.render(this.render,!1,!0))};let{latestValues:l,renderState:f}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=r.initial?{...l}:{},this.renderState=f,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=rn(r),this.isVariantNode=Lo(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:m,...c}=this.scrapeMotionValuesFromProps(r,{},this);for(let u in c){let h=c[u];l[u]!==void 0&&A(h)&&h.set(l[u])}}mount(t){this.current=t,pe.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),sr.current||Bo(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ct.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),H(this.notifyUpdate),H(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=W.has(t);n&&this.onBindTransform&&this.onBindTransform();let o=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&O.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ir){let r=ir[t];if(!r)continue;let{isEnabled:n,Feature:o}=r;if(!this.features[t]&&o&&n(this.props)&&(this.features[t]=new o(this)),this.features[t]){let i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ge()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<Go.length;n++){let o=Go[n];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);let i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=Wo(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){let n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);let r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Y(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(Ye(n)||Xe(n))?n=parseFloat(n):!en(n)&&L.test(r)&&(n=St(t,r)),this.setBaseTarget(t,A(n)?n.get():n)),A(n)?n.get():n}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){let{initial:r}=this.props,n;if(typeof r=="string"||typeof r=="object"){let i=nr(this.props,r,this.presenceContext?.custom);i&&(n=i[t])}if(r&&n!==void 0)return n;let o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!A(o)?o:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new xe),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){Xr.render(this.render)}};var je=class extends ze{constructor(){super(...arguments),this.KeyframeResolver=wt}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;A(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}};var Ws={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Gs=j.length;function zo(e,t,r){let n="",o=!0;for(let i=0;i<Gs;i++){let s=j[i],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||r){let f=Mt(a,Ae[s]);if(!l){o=!1;let m=Ws[s]||s;n+=`${m}(${f}) `}r&&(t[s]=f)}}return n=n.trim(),r?n=r(t,o?"":n):o&&(n="none"),n}function ar(e,t,r){let{style:n,vars:o,transformOrigin:i}=e,s=!1,a=!1;for(let l in t){let f=t[l];if(W.has(l)){s=!0;continue}else if(st(l)){o[l]=f;continue}else{let m=Mt(f,Ae[l]);l.startsWith("origin")?(a=!0,i[l]=m):n[l]=m}}if(t.transform||(s||r?n.transform=zo(t,e.transform,r):n.transform&&(n.transform="none")),a){let{originX:l="50%",originY:f="50%",originZ:m=0}=i;n.transformOrigin=`${l} ${f} ${m}`}}function lr(e,{style:t,vars:r},n,o){let i=e.style,s;for(s in t)i[s]=t[s];o?.applyProjectionStyles(i,n);for(s in r)i.setProperty(s,r[s])}var jo={};function $o(e,{layout:t,layoutId:r}){return W.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!jo[e]||e==="opacity")}function mr(e,t,r){let{style:n}=e,o={};for(let i in n)(A(n[i])||t.style&&A(t.style[i])||$o(i,e)||r?.getValue(i)?.liveStyle!==void 0)&&(o[i]=n[i]);return o}function zs(e){return window.getComputedStyle(e)}var fr=class extends je{constructor(){super(...arguments),this.type="html",this.renderInstance=lr}readValueFromInstance(t,r){if(W.has(r))return this.projection?.isProjecting?dt(r):Br(t,r);{let n=zs(t),o=(st(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return Fo(t,r)}build(t,r,n){ar(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return mr(t,r,n)}};function js(e,t){return e in t}var cr=class extends ze{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,r){if(js(r,t)){let n=t[r];if(typeof n=="string"||typeof n=="number")return n}}getBaseTargetFromProps(){}removeValueFromRenderState(t,r){delete r.output[t]}measureInstanceViewportBox(){return Ge()}build(t,r){Object.assign(t.output,r)}renderInstance(t,{output:r}){Object.assign(t,r)}sortInstanceNodePosition(){return 0}};var $s={offset:"stroke-dashoffset",array:"stroke-dasharray"},Hs={offset:"strokeDashoffset",array:"strokeDasharray"};function Ho(e,t,r=1,n=0,o=!0){e.pathLength=1;let i=o?$s:Hs;e[i.offset]=p.transform(-n);let s=p.transform(t),a=p.transform(r);e[i.array]=`${s} ${a}`}function _o(e,{attrX:t,attrY:r,attrScale:n,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},l,f,m){if(ar(e,a,f),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:c,style:u}=e;c.transform&&(u.transform=c.transform,delete c.transform),(u.transform||c.transformOrigin)&&(u.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),u.transform&&(u.transformBox=m?.transformBox??"fill-box",delete c.transformBox),t!==void 0&&(c.x=t),r!==void 0&&(c.y=r),n!==void 0&&(c.scale=n),o!==void 0&&Ho(c,o,i,s,!1)}var ur=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var Uo=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Yo(e,t,r,n){lr(e,t,void 0,n);for(let o in t.attrs)e.setAttribute(ur.has(o)?o:We(o),t.attrs[o])}function qo(e,t,r){let n=mr(e,t,r);for(let o in e)if(A(e[o])||A(t[o])){let i=j.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;n[i]=e[o]}return n}var pr=class extends je{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ge}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(W.has(r)){let n=Vt(r);return n&&n.default||0}return r=ur.has(r)?r:We(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return qo(t,r,n)}build(t,r,n){_o(t,r,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,r,n,o){Yo(t,r,n,o)}mount(t){this.isSVGTag=Uo(t.tagName),super.mount(t)}};function Xo(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},r=Ce(e)&&!Jr(e)?new pr(t):new fr(t);r.mount(e),pe.set(e,r)}function Zo(e){let t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},r=new cr(t);r.mount(e),pe.set(e,r)}function Jo(e,t,r){let n=A(e)?e:Y(e);return n.start(or("",n,t,r)),n.animation}function _s(e,t){return A(e)||typeof e=="number"||typeof e=="string"&&!Et(t)}function dr(e,t,r,n){let o=[];if(_s(e,t))o.push(Jo(e,Et(t)&&t.default||t,r&&(r.default||r)));else{let i=rr(e,t,n),s=i.length;N(!!s,"No valid elements provided.","no-valid-elements");for(let a=0;a<s;a++){let l=i[a];N(l!==null,"You're trying to perform an animation on null. Ensure that selectors are correctly finding elements and refs are correctly hydrated.","animate-null");let f=l instanceof Element?Xo:Zo;pe.has(l)||f(l);let m=pe.get(l),c={...r};"delay"in c&&typeof c.delay=="function"&&(c.delay=c.delay(a,s)),o.push(...Co(m,{...t,transition:c},{}))}}return o}function Qo(e,t,r){let n=[];return go(e,t,r,{spring:ne}).forEach(({keyframes:i,transition:s},a)=>{n.push(...dr(a,i,s))}),n}function Us(e){return Array.isArray(e)&&e.some(Array.isArray)}function ei(e){function t(r,n,o){let i=[],s;if(Us(r))i=Qo(r,n,e);else{let{onComplete:l,...f}=o||{};typeof l=="function"&&(s=l),i=dr(r,n,f,e)}let a=new yt(i);return s&&a.finished.then(s),e&&(e.animations.push(a),a.finished.then(()=>{de(e.animations,a)})),a}return t}var q=ei();var Ys=50,ti=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),ni=()=>({time:0,x:ti(),y:ti()}),qs={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function ri(e,t,r,n){let o=r[t],{length:i,position:s}=qs[t],a=o.current,l=r.time;o.current=e[`scroll${s}`],o.scrollLength=e[`scroll${i}`]-e[`client${i}`],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=Q(0,o.scrollLength,o.current);let f=n-l;o.velocity=f>Ys?0:ye(o.current-a,f)}function oi(e,t,r){ri(e,"x",t,r),ri(e,"y",t,r),t.time=r}function ii(e,t){let r={x:0,y:0},n=e;for(;n&&n!==t;)if(Yr(n))r.x+=n.offsetLeft,r.y+=n.offsetTop,n=n.offsetParent;else if(n.tagName==="svg"){let o=n.getBoundingClientRect();n=n.parentElement;let i=n.getBoundingClientRect();r.x+=o.left-i.left,r.y+=o.top-i.top}else if(n instanceof SVGGraphicsElement){let{x:o,y:i}=n.getBBox();r.x+=o,r.y+=i;let s=null,a=n.parentNode;for(;!s;)a.tagName==="svg"&&(s=a),a=n.parentNode;n=s}else break;return r}var hr={start:0,center:.5,end:1};function nn(e,t,r=0){let n=0;if(e in hr&&(e=hr[e]),typeof e=="string"){let o=parseFloat(e);e.endsWith("px")?n=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?n=o/100*document.documentElement.clientWidth:e.endsWith("vh")?n=o/100*document.documentElement.clientHeight:e=o}return typeof e=="number"&&(n=t*e),r+n}var Xs=[0,0];function si(e,t,r,n){let o=Array.isArray(e)?e:Xs,i=0,s=0;return typeof e=="number"?o=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?o=e.split(" "):o=[e,hr[e]?e:"0"]),i=nn(o[0],r,n),s=nn(o[1],t),i-s}var ai={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]};var Zs={x:0,y:0};function Js(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function li(e,t,r){let{offset:n=ai.All}=r,{target:o=e,axis:i="y"}=r,s=i==="y"?"height":"width",a=o!==e?ii(o,e):Zs,l=o===e?{width:e.scrollWidth,height:e.scrollHeight}:Js(o),f={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let m=!t[i].interpolate,c=n.length;for(let u=0;u<c;u++){let h=si(n[u],f[s],l[s],a[i]);!m&&h!==t[i].interpolatorOffsets[u]&&(m=!0),t[i].offset[u]=h}m&&(t[i].interpolate=ut(t[i].offset,be(n),{clamp:!1}),t[i].interpolatorOffsets=[...t[i].offset]),t[i].progress=B(0,1,t[i].interpolate(t[i].current))}function Qs(e,t=e,r){if(r.x.targetOffset=0,r.y.targetOffset=0,t!==e){let n=t;for(;n&&n!==e;)r.x.targetOffset+=n.offsetLeft,r.y.targetOffset+=n.offsetTop,n=n.offsetParent}r.x.targetLength=t===e?t.scrollWidth:t.clientWidth,r.y.targetLength=t===e?t.scrollHeight:t.clientHeight,r.x.containerLength=e.clientWidth,r.y.containerLength=e.clientHeight}function mi(e,t,r,n={}){return{measure:o=>{Qs(e,n.target,r),oi(e,r,o),(n.offset||n.target)&&li(e,r,n)},notify:()=>t(r)}}var Dt=new WeakMap,fi=new WeakMap,on=new WeakMap,ci=e=>e===document.scrollingElement?window:e;function gr(e,{container:t=document.scrollingElement,...r}={}){if(!t)return I;let n=on.get(t);n||(n=new Set,on.set(t,n));let o=ni(),i=mi(t,e,o,r);if(n.add(i),!Dt.has(t)){let a=()=>{for(let c of n)c.measure(ee.timestamp);O.preUpdate(l)},l=()=>{for(let c of n)c.notify()},f=()=>O.read(a);Dt.set(t,f);let m=ci(t);window.addEventListener("resize",f,{passive:!0}),t!==document.documentElement&&fi.set(t,Zr(t,f)),m.addEventListener("scroll",f,{passive:!0}),f()}let s=Dt.get(t);return O.read(s,!1,!0),()=>{H(s);let a=on.get(t);if(!a||(a.delete(i),a.size))return;let l=Dt.get(t);Dt.delete(t),l&&(ci(t).removeEventListener("scroll",l),fi.get(t)?.(),window.removeEventListener("resize",l))}}var ui=new Map;function ea(e){let t={value:0},r=gr(n=>{t.value=n[e.axis].progress*100},e);return{currentTime:t,cancel:r}}function xr({source:e,container:t,...r}){let{axis:n}=r;e&&(t=e);let o=ui.get(t)??new Map;ui.set(t,o);let i=r.target??"self",s=o.get(i)??{},a=n+(r.offset??[]).join(",");return s[a]||(s[a]=!r.target&>()?new ScrollTimeline({source:t,axis:n}):ea({container:t,...r})),s[a]}function pi(e,t){let r=xr(t);return e.attachTimeline({timeline:t.target?void 0:r,observe:n=>(n.pause(),At(o=>{n.time=n.iterationDuration*o},r))})}function ta(e){return e.length===2}function di(e,t){return ta(e)?gr(r=>{e(r[t.axis].progress,r)},t):At(e,xr(t))}function yr(e,{axis:t="y",container:r=document.scrollingElement,...n}={}){if(!r)return I;let o={axis:t,container:r,...n};return typeof e=="function"?di(e,o):pi(e,o)}var ra={some:0,all:1};function X(e,t,{root:r,margin:n,amount:o="some"}={}){let i=Ee(e),s=new WeakMap,a=f=>{f.forEach(m=>{let c=s.get(m.target);if(m.isIntersecting!==!!c)if(m.isIntersecting){let u=t(m.target,m);typeof u=="function"?s.set(m.target,u):l.unobserve(m.target)}else typeof c=="function"&&(c(m),s.delete(m.target))})},l=new IntersectionObserver(a,{root:r,rootMargin:n,threshold:typeof o=="number"?o:ra[o]});return i.forEach(f=>l.observe(f)),()=>l.disconnect()}var sn={fadeIn:(e,t={})=>X(e,()=>{q(e,{opacity:[0,1]},{duration:t.duration||.8,delay:t.delay||0,easing:t.easing||"ease-out"})},{amount:t.amount||.25}),slideUp:(e,t={})=>X(e,()=>{q(e,{y:[t.distance||50,0],opacity:[0,1]},{duration:t.duration||.8,delay:t.delay||0,easing:t.easing||"ease-out"})},{amount:t.amount||.25}),slideDown:(e,t={})=>X(e,()=>{q(e,{y:[-(t.distance||50),0],opacity:[0,1]},{duration:t.duration||.8,delay:t.delay||0,easing:t.easing||"ease-out"})},{amount:t.amount||.25}),slideLeft:(e,t={})=>X(e,()=>{q(e,{x:[t.distance||50,0],opacity:[0,1]},{duration:t.duration||.8,delay:t.delay||0,easing:t.easing||"ease-out"})},{amount:t.amount||.25}),slideRight:(e,t={})=>X(e,()=>{q(e,{x:[-(t.distance||50),0],opacity:[0,1]},{duration:t.duration||.8,delay:t.delay||0,easing:t.easing||"ease-out"})},{amount:t.amount||.25}),scale:(e,t={})=>X(e,()=>{q(e,{scale:[t.from||.8,1],opacity:[0,1]},{duration:t.duration||.8,delay:t.delay||0,easing:t.easing||[.34,1.56,.64,1]})},{amount:t.amount||.25}),parallax:(e,t={})=>yr(q(e,{y:[0,t.distance||100]}),{target:e,offset:t.offset||["start end","end start"]})},Tr=class{constructor(){this.animations=[]}init(){document.querySelectorAll("[data-wms-animate]").forEach(t=>{let r=t.dataset.wmsAnimate,n={duration:parseFloat(t.dataset.wmsDuration)||void 0,delay:parseFloat(t.dataset.wmsDelay)||void 0,distance:parseFloat(t.dataset.wmsDistance)||void 0,amount:parseFloat(t.dataset.wmsAmount)||void 0,easing:parseFloat(t.dataset.wmsEasing)||void 0};if(Object.keys(n).forEach(o=>{n[o]===void 0&&delete n[o]}),sn[r])try{let o=sn[r](t,n);this.animations.push(o)}catch(o){console.error(`Failed to apply animation "${r}":`,o)}else console.warn(`Unknown animation type: "${r}"`)}),this.initScrollShrink()}initScrollShrink(){document.querySelectorAll("[data-wms-scroll-toggle]").forEach(t=>{let r=parseInt(t.dataset.wmsThreshold)||80,n=t.dataset.wmsScrollToggle||"wms-scrolled",o=document.createElement("div");o.style.height=r+"px",o.style.pointerEvents="none",t.before(o),X(o,()=>t.classList.remove(n),{root:null,margin:"0px 0px 0px 0px",amount:"any"}),new IntersectionObserver(s=>{s.forEach(a=>{a.isIntersecting||t.classList.add(n)})},{root:null,threshold:0}).observe(o)})}destroy(){this.animations=[]}},Ot;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{Ot=new Tr,Ot.init()}):(Ot=new Tr,Ot.init());window.motion={animate:q,inView:X,scroll:yr,stagger:Qr,presets:sn,manager:Ot};})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webmate-studio/builder",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.56",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Webmate Studio Component Builder",
|
|
6
6
|
"keywords": [
|
|
@@ -16,17 +16,22 @@
|
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
18
18
|
"src",
|
|
19
|
+
"dist",
|
|
19
20
|
"build-service.js"
|
|
20
21
|
],
|
|
21
22
|
"exports": {
|
|
22
23
|
".": "./src/index.js",
|
|
23
|
-
"./build-service.js": "./build-service.js"
|
|
24
|
+
"./build-service.js": "./build-service.js",
|
|
25
|
+
"./src/css-deduplicator.js": "./src/css-deduplicator.js",
|
|
26
|
+
"./dist/motion-runtime.min.js": "./dist/motion-runtime.min.js"
|
|
24
27
|
},
|
|
25
28
|
"bin": {
|
|
26
29
|
"wm-build-service": "./build-service.js"
|
|
27
30
|
},
|
|
28
31
|
"scripts": {
|
|
29
|
-
"service": "node build-service.js"
|
|
32
|
+
"service": "node build-service.js",
|
|
33
|
+
"build:motion": "esbuild src/motion-runtime.js --bundle --minify --format=iife --outfile=dist/motion-runtime.min.js --platform=browser",
|
|
34
|
+
"prepublishOnly": "npm run build:motion"
|
|
30
35
|
},
|
|
31
36
|
"publishConfig": {
|
|
32
37
|
"access": "public"
|
|
@@ -43,6 +48,7 @@
|
|
|
43
48
|
"jsdom": "^27.0.1",
|
|
44
49
|
"lit": "^3.3.1",
|
|
45
50
|
"marked": "^17.0.1",
|
|
51
|
+
"motion": "^12.23.24",
|
|
46
52
|
"preact": "^10.27.2",
|
|
47
53
|
"preact-custom-element": "^4.6.0",
|
|
48
54
|
"react": "^19.2.0",
|
package/src/build.js
CHANGED
|
@@ -74,107 +74,9 @@ async function installComponentDependencies(componentDir, componentName) {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
* @param {string} componentName - Name of component
|
|
81
|
-
* @returns {string} HTML with scoping attribute
|
|
82
|
-
*/
|
|
83
|
-
function addScopingAttribute(html, componentName) {
|
|
84
|
-
const scopeId = `wm-${componentName.toLowerCase().replace(/[^a-z0-9]/g, '-')}`;
|
|
85
|
-
|
|
86
|
-
// Use regex to add attribute to first HTML element
|
|
87
|
-
// This preserves the original HTML syntax (including unquoted class: directives)
|
|
88
|
-
// Pattern: Match first opening tag, capture tag name and attributes, insert our attribute
|
|
89
|
-
const match = html.match(/^(\s*)(<([a-zA-Z][a-zA-Z0-9-]*)(\s+[^>]*)?(\/?)>)/);
|
|
90
|
-
|
|
91
|
-
if (match) {
|
|
92
|
-
const whitespace = match[1];
|
|
93
|
-
const fullTag = match[2];
|
|
94
|
-
const tagName = match[3];
|
|
95
|
-
const existingAttrs = match[4] || '';
|
|
96
|
-
const selfClosing = match[5] || '';
|
|
97
|
-
|
|
98
|
-
// Insert data-wm-component attribute
|
|
99
|
-
const newTag = `<${tagName} data-wm-component="${scopeId}"${existingAttrs}${selfClosing}>`;
|
|
100
|
-
return whitespace + newTag + html.substring(match[0].length);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
return html;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Scope CSS to component using attribute selector
|
|
108
|
-
* @param {string} css - Component CSS
|
|
109
|
-
* @param {string} componentName - Name of component
|
|
110
|
-
* @returns {string} Scoped CSS
|
|
111
|
-
*/
|
|
112
|
-
function scopeCSS(css, componentName) {
|
|
113
|
-
if (!css || css.trim() === '') return '';
|
|
114
|
-
|
|
115
|
-
const scopeId = `wm-${componentName.toLowerCase().replace(/[^a-z0-9]/g, '-')}`;
|
|
116
|
-
const scopeSelector = `[data-wm-component="${scopeId}"]`;
|
|
117
|
-
|
|
118
|
-
// Split CSS into rules
|
|
119
|
-
const rules = [];
|
|
120
|
-
let currentRule = '';
|
|
121
|
-
let braceDepth = 0;
|
|
122
|
-
|
|
123
|
-
for (let i = 0; i < css.length; i++) {
|
|
124
|
-
const char = css[i];
|
|
125
|
-
currentRule += char;
|
|
126
|
-
|
|
127
|
-
if (char === '{') braceDepth++;
|
|
128
|
-
if (char === '}') {
|
|
129
|
-
braceDepth--;
|
|
130
|
-
if (braceDepth === 0) {
|
|
131
|
-
rules.push(currentRule.trim());
|
|
132
|
-
currentRule = '';
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
// Scope each rule
|
|
138
|
-
const scopedRules = rules.map(rule => {
|
|
139
|
-
// Skip @keyframes, @media, @supports, etc.
|
|
140
|
-
if (rule.startsWith('@')) {
|
|
141
|
-
// For @media, @supports, etc., scope the rules inside
|
|
142
|
-
if (rule.includes('{')) {
|
|
143
|
-
const parts = rule.split('{');
|
|
144
|
-
const atRule = parts[0] + '{';
|
|
145
|
-
const innerCSS = parts.slice(1).join('{');
|
|
146
|
-
const scopedInner = scopeCSS(innerCSS, componentName);
|
|
147
|
-
return atRule + scopedInner;
|
|
148
|
-
}
|
|
149
|
-
return rule;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
// Extract selector and declarations
|
|
153
|
-
const selectorEnd = rule.indexOf('{');
|
|
154
|
-
if (selectorEnd === -1) return rule;
|
|
155
|
-
|
|
156
|
-
const selectors = rule.substring(0, selectorEnd).trim();
|
|
157
|
-
const declarations = rule.substring(selectorEnd);
|
|
158
|
-
|
|
159
|
-
// Split multiple selectors
|
|
160
|
-
const selectorList = selectors.split(',').map(s => s.trim());
|
|
161
|
-
|
|
162
|
-
// Scope each selector
|
|
163
|
-
const scopedSelectors = selectorList.map(selector => {
|
|
164
|
-
// Skip :root, html, body
|
|
165
|
-
if (selector.match(/^(:root|html|body)(\s|$|:)/)) {
|
|
166
|
-
return selector;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
// Add scope attribute before first selector
|
|
170
|
-
return `${scopeSelector} ${selector}`;
|
|
171
|
-
});
|
|
172
|
-
|
|
173
|
-
return scopedSelectors.join(', ') + declarations;
|
|
174
|
-
});
|
|
175
|
-
|
|
176
|
-
return scopedRules.join('\n\n');
|
|
177
|
-
}
|
|
77
|
+
// Scoping system removed (2025-01-26)
|
|
78
|
+
// CSS deduplication and Tailwind v4 handle style isolation
|
|
79
|
+
// No need for data-wm-component attributes or scoped CSS
|
|
178
80
|
|
|
179
81
|
/**
|
|
180
82
|
* Build components from source to distribution
|
|
@@ -287,8 +189,6 @@ export async function build(options = {}) {
|
|
|
287
189
|
// Clean HTML (remove wm: attributes)
|
|
288
190
|
const cleanHTML = cleanComponentHTML(htmlWithoutStyles);
|
|
289
191
|
|
|
290
|
-
// Add scoping attribute to root element
|
|
291
|
-
const scopedHTML = addScopingAttribute(cleanHTML, component.name);
|
|
292
192
|
|
|
293
193
|
// Determine if this is a directory-based component
|
|
294
194
|
const isDirectoryComponent = file.endsWith('component.html');
|
|
@@ -334,22 +234,14 @@ export async function build(options = {}) {
|
|
|
334
234
|
mkdirSync(outputFileDir, { recursive: true });
|
|
335
235
|
}
|
|
336
236
|
|
|
337
|
-
// Write
|
|
338
|
-
writeFileSync(outputPath,
|
|
339
|
-
|
|
340
|
-
//
|
|
341
|
-
|
|
342
|
-
if (componentCSS) {
|
|
343
|
-
const scopedCSS = scopeCSS(componentCSS, component.name);
|
|
344
|
-
const componentCSSFileName = file.replace(/\.html$/, '.component.css');
|
|
345
|
-
const componentCSSPath = join(outputDir, componentCSSFileName);
|
|
346
|
-
writeFileSync(componentCSSPath, scopedCSS, 'utf8');
|
|
347
|
-
componentCSSFile = componentCSSFileName;
|
|
348
|
-
logger.debug(`Generated scoped CSS for ${component.name}`);
|
|
349
|
-
}
|
|
237
|
+
// Write HTML
|
|
238
|
+
writeFileSync(outputPath, cleanHTML, 'utf8');
|
|
239
|
+
|
|
240
|
+
// Note: componentCSS from <style> tags is handled by CSS deduplicator
|
|
241
|
+
// No need for scoped CSS files anymore
|
|
350
242
|
|
|
351
243
|
// Collect all HTML for Tailwind scanning (including islands)
|
|
352
|
-
let allHTML =
|
|
244
|
+
let allHTML = cleanHTML;
|
|
353
245
|
|
|
354
246
|
// For directory-based components, also scan island files for Tailwind classes
|
|
355
247
|
if (isDirectoryComponent && componentDir) {
|
|
@@ -390,7 +282,6 @@ export async function build(options = {}) {
|
|
|
390
282
|
type: component.type,
|
|
391
283
|
file: outputFile,
|
|
392
284
|
cssFile: cssFile,
|
|
393
|
-
componentCSSFile: componentCSSFile, // Scoped component CSS
|
|
394
285
|
tailwindClasses: classes,
|
|
395
286
|
props: component.props,
|
|
396
287
|
conditionals: component.conditionals,
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Webmate Motion One Runtime
|
|
3
|
+
* Global animation system for all components
|
|
4
|
+
*
|
|
5
|
+
* License: MIT (no restrictions for CMS/SaaS usage)
|
|
6
|
+
* Docs: https://motion.dev
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { animate, inView, scroll, stagger } from 'motion';
|
|
10
|
+
|
|
11
|
+
// Preset Animations für CMS-User
|
|
12
|
+
const animations = {
|
|
13
|
+
fadeIn: (el, opts = {}) => {
|
|
14
|
+
return inView(el, () => {
|
|
15
|
+
animate(el,
|
|
16
|
+
{ opacity: [0, 1] },
|
|
17
|
+
{
|
|
18
|
+
duration: opts.duration || 0.8,
|
|
19
|
+
delay: opts.delay || 0,
|
|
20
|
+
easing: opts.easing || 'ease-out'
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
}, {
|
|
24
|
+
amount: opts.amount || 0.25 // 25% visible triggers
|
|
25
|
+
});
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
slideUp: (el, opts = {}) => {
|
|
29
|
+
return inView(el, () => {
|
|
30
|
+
animate(el,
|
|
31
|
+
{
|
|
32
|
+
y: [opts.distance || 50, 0],
|
|
33
|
+
opacity: [0, 1]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
duration: opts.duration || 0.8,
|
|
37
|
+
delay: opts.delay || 0,
|
|
38
|
+
easing: opts.easing || 'ease-out'
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}, {
|
|
42
|
+
amount: opts.amount || 0.25
|
|
43
|
+
});
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
slideDown: (el, opts = {}) => {
|
|
47
|
+
return inView(el, () => {
|
|
48
|
+
animate(el,
|
|
49
|
+
{
|
|
50
|
+
y: [-(opts.distance || 50), 0],
|
|
51
|
+
opacity: [0, 1]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
duration: opts.duration || 0.8,
|
|
55
|
+
delay: opts.delay || 0,
|
|
56
|
+
easing: opts.easing || 'ease-out'
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
}, {
|
|
60
|
+
amount: opts.amount || 0.25
|
|
61
|
+
});
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
slideLeft: (el, opts = {}) => {
|
|
65
|
+
return inView(el, () => {
|
|
66
|
+
animate(el,
|
|
67
|
+
{
|
|
68
|
+
x: [opts.distance || 50, 0],
|
|
69
|
+
opacity: [0, 1]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
duration: opts.duration || 0.8,
|
|
73
|
+
delay: opts.delay || 0,
|
|
74
|
+
easing: opts.easing || 'ease-out'
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
}, {
|
|
78
|
+
amount: opts.amount || 0.25
|
|
79
|
+
});
|
|
80
|
+
},
|
|
81
|
+
|
|
82
|
+
slideRight: (el, opts = {}) => {
|
|
83
|
+
return inView(el, () => {
|
|
84
|
+
animate(el,
|
|
85
|
+
{
|
|
86
|
+
x: [-(opts.distance || 50), 0],
|
|
87
|
+
opacity: [0, 1]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
duration: opts.duration || 0.8,
|
|
91
|
+
delay: opts.delay || 0,
|
|
92
|
+
easing: opts.easing || 'ease-out'
|
|
93
|
+
}
|
|
94
|
+
);
|
|
95
|
+
}, {
|
|
96
|
+
amount: opts.amount || 0.25
|
|
97
|
+
});
|
|
98
|
+
},
|
|
99
|
+
|
|
100
|
+
scale: (el, opts = {}) => {
|
|
101
|
+
return inView(el, () => {
|
|
102
|
+
animate(el,
|
|
103
|
+
{
|
|
104
|
+
scale: [opts.from || 0.8, 1],
|
|
105
|
+
opacity: [0, 1]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
duration: opts.duration || 0.8,
|
|
109
|
+
delay: opts.delay || 0,
|
|
110
|
+
easing: opts.easing || [0.34, 1.56, 0.64, 1] // spring-like
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
}, {
|
|
114
|
+
amount: opts.amount || 0.25
|
|
115
|
+
});
|
|
116
|
+
},
|
|
117
|
+
|
|
118
|
+
parallax: (el, opts = {}) => {
|
|
119
|
+
return scroll(
|
|
120
|
+
animate(el, { y: [0, opts.distance || 100] }),
|
|
121
|
+
{
|
|
122
|
+
target: el,
|
|
123
|
+
offset: opts.offset || ['start end', 'end start']
|
|
124
|
+
}
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
// Animation Manager
|
|
130
|
+
class AnimationManager {
|
|
131
|
+
constructor() {
|
|
132
|
+
this.animations = [];
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
init() {
|
|
136
|
+
// Auto-init from data-attributes
|
|
137
|
+
document.querySelectorAll('[data-wms-animate]').forEach(el => {
|
|
138
|
+
const animationType = el.dataset.wmsAnimate;
|
|
139
|
+
|
|
140
|
+
const options = {
|
|
141
|
+
duration: parseFloat(el.dataset.wmsDuration) || undefined,
|
|
142
|
+
delay: parseFloat(el.dataset.wmsDelay) || undefined,
|
|
143
|
+
distance: parseFloat(el.dataset.wmsDistance) || undefined,
|
|
144
|
+
amount: parseFloat(el.dataset.wmsAmount) || undefined,
|
|
145
|
+
easing: parseFloat(el.dataset.wmsEasing) || undefined
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
// Remove undefined values
|
|
149
|
+
Object.keys(options).forEach(key => {
|
|
150
|
+
if (options[key] === undefined) delete options[key];
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
if (animations[animationType]) {
|
|
154
|
+
try {
|
|
155
|
+
const anim = animations[animationType](el, options);
|
|
156
|
+
this.animations.push(anim);
|
|
157
|
+
} catch (error) {
|
|
158
|
+
console.error(`Failed to apply animation "${animationType}":`, error);
|
|
159
|
+
}
|
|
160
|
+
} else {
|
|
161
|
+
console.warn(`Unknown animation type: "${animationType}"`);
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
// Scroll-shrink behavior (für Headers)
|
|
166
|
+
this.initScrollShrink();
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
initScrollShrink() {
|
|
170
|
+
document.querySelectorAll('[data-wms-scroll-toggle]').forEach(el => {
|
|
171
|
+
const threshold = parseInt(el.dataset.wmsThreshold) || 80;
|
|
172
|
+
const scrolledClass = el.dataset.wmsScrollToggle || 'wms-scrolled';
|
|
173
|
+
|
|
174
|
+
// Spacer als Intersection-Target
|
|
175
|
+
const spacer = document.createElement('div');
|
|
176
|
+
spacer.style.height = threshold + 'px';
|
|
177
|
+
spacer.style.pointerEvents = 'none';
|
|
178
|
+
el.before(spacer);
|
|
179
|
+
|
|
180
|
+
// InView für Scroll-Detection
|
|
181
|
+
inView(spacer,
|
|
182
|
+
// onEnter
|
|
183
|
+
() => el.classList.remove(scrolledClass),
|
|
184
|
+
// Config
|
|
185
|
+
{
|
|
186
|
+
root: null,
|
|
187
|
+
margin: '0px 0px 0px 0px',
|
|
188
|
+
amount: 'any'
|
|
189
|
+
}
|
|
190
|
+
);
|
|
191
|
+
|
|
192
|
+
// Reverse: wenn spacer aus Viewport geht
|
|
193
|
+
const observer = new IntersectionObserver((entries) => {
|
|
194
|
+
entries.forEach(entry => {
|
|
195
|
+
if (!entry.isIntersecting) {
|
|
196
|
+
el.classList.add(scrolledClass);
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
}, {
|
|
200
|
+
root: null,
|
|
201
|
+
threshold: 0
|
|
202
|
+
});
|
|
203
|
+
|
|
204
|
+
observer.observe(spacer);
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
destroy() {
|
|
209
|
+
// Cleanup falls nötig
|
|
210
|
+
this.animations = [];
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// Auto-init
|
|
215
|
+
let animationManager;
|
|
216
|
+
|
|
217
|
+
if (document.readyState === 'loading') {
|
|
218
|
+
document.addEventListener('DOMContentLoaded', () => {
|
|
219
|
+
animationManager = new AnimationManager();
|
|
220
|
+
animationManager.init();
|
|
221
|
+
});
|
|
222
|
+
} else {
|
|
223
|
+
animationManager = new AnimationManager();
|
|
224
|
+
animationManager.init();
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// Expose globally für Component-Entwickler
|
|
228
|
+
window.motion = {
|
|
229
|
+
animate,
|
|
230
|
+
inView,
|
|
231
|
+
scroll,
|
|
232
|
+
stagger,
|
|
233
|
+
presets: animations,
|
|
234
|
+
manager: animationManager
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
// Export für Module
|
|
238
|
+
export { animate, inView, scroll, stagger, animations, AnimationManager };
|