diff --git "a/assets/main-D-7ROV92.js" "b/assets/main-D-7ROV92.js" new file mode 100644--- /dev/null +++ "b/assets/main-D-7ROV92.js" @@ -0,0 +1,1045 @@ +var Sn=(u,e)=>()=>(e||u((e={exports:{}}).exports,e),e.exports);import{g as Qt,U as Gr,a as Hr,d as Kt,f as Jt,A as je,o as Rt,b as jr,p as Zr,e as Fn,G as Qr,s as Kr,c as Jr,h as Pn}from"./index-D2VBz5oZ.js";var Qa=Sn((es,Dt)=>{function Ie(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function yi(u,e){u.prototype=Object.create(e.prototype),u.prototype.constructor=u,u.__proto__=e}/*! + * GSAP 3.13.0 + * https://gsap.com + * + * @license Copyright 2008-2025, GreenSock. All rights reserved. + * Subject to the terms at https://gsap.com/standard-license + * @author: Jack Doyle, jack@greensock.com +*/var be={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},pt={duration:.5,overwrite:!1,delay:0},Mr,oe,W,Me=1e8,V=1/Me,lr=Math.PI*2,En=lr/4,On=0,vi=Math.sqrt,An=Math.cos,zn=Math.sin,ae=function(e){return typeof e=="string"},J=function(e){return typeof e=="function"},Le=function(e){return typeof e=="number"},kr=function(e){return typeof e>"u"},De=function(e){return typeof e=="object"},he=function(e){return e!==!1},Sr=function(){return typeof window<"u"},It=function(e){return J(e)||ae(e)},bi=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},ue=Array.isArray,ur=/(?:-?\.?\d|\.)+/gi,wi=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,lt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,er=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Ti=/[+-]=-?[.\d]+/,Ci=/[^,'"\[\]\s]+/gi,Dn=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,H,Oe,cr,Fr,we={},Nt={},Mi,ki=function(e){return(Nt=gt(e,we))&&_e},Pr=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},kt=function(e,t){return!t&&console.warn(e)},Si=function(e,t){return e&&(we[e]=t)&&Nt&&(Nt[e]=t)||we},St=function(){return 0},Rn={suppressEvents:!0,isStart:!0,kill:!1},Bt={suppressEvents:!0,kill:!1},In={suppressEvents:!0},Er={},Ye=[],dr={},Fi,xe={},tr={},ei=30,Lt=[],Or="",Ar=function(e){var t=e[0],r,i;if(De(t)||J(t)||(e=[e]),!(r=(t._gsap||{}).harness)){for(i=Lt.length;i--&&!Lt[i].targetTest(t););r=Lt[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new Ki(e[i],r)))||e.splice(i,1);return e},et=function(e){return e._gsap||Ar(ke(e))[0]._gsap},Pi=function(e,t,r){return(r=e[t])&&J(r)?e[t]():kr(r)&&e.getAttribute&&e.getAttribute(t)||r},fe=function(e,t){return(e=e.split(",")).forEach(t)||e},ee=function(e){return Math.round(e*1e5)/1e5||0},ne=function(e){return Math.round(e*1e7)/1e7||0},dt=function(e,t){var r=t.charAt(0),i=parseFloat(t.substr(2));return e=parseFloat(e),r==="+"?e+i:r==="-"?e-i:r==="*"?e*i:e/i},Bn=function(e,t){for(var r=t.length,i=0;e.indexOf(t[i])<0&&++is;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[r],e[r]=t),t._next?t._next._prev=t:e[i]=t,t._prev=a,t.parent=t._dp=e,t},Gt=function(e,t,r,i){r===void 0&&(r="_first"),i===void 0&&(i="_last");var n=t._prev,a=t._next;n?n._next=a:e[r]===t&&(e[r]=a),a?a._prev=n:e[i]===t&&(e[i]=n),t._next=t._prev=t.parent=null},qe=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},tt=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},Nn=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},hr=function(e,t,r,i){return e._startAt&&(oe?e._startAt.revert(Bt):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,i))},$n=function u(e){return!e||e._ts&&u(e.parent)},ri=function(e){return e._repeat?_t(e._tTime,e=e.duration()+e._rDelay)*e:0},_t=function(e,t){var r=Math.floor(e=ne(e/t));return e&&r===e?r-1:r},Yt=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Ht=function(e){return e._end=ne(e._start+(e._tDur/Math.abs(e._ts||e._rts||V)||0))},jt=function(e,t){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=ne(r._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Ht(e),r._dirty||tt(r,e)),e},Di=function(e,t){var r;if((t._time||!t._dur&&t._initted||t._startV)&&t.render(r,!0)),tt(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-V}},Ae=function(e,t,r,i){return t.parent&&qe(t),t._start=ne((Le(r)?r:r||e!==H?Ce(e,r,t):e._time)+t._delay),t._end=ne(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),zi(e,t,"_first","_last",e._sort?"_start":0),fr(t)||(e._recent=t),i||Di(e,t),e._ts<0&&jt(e,e._tTime),e},Ri=function(e,t){return(we.ScrollTrigger||Pr("scrollTrigger",t))&&we.ScrollTrigger.create(t,e)},Ii=function(e,t,r,i,n){if(Rr(e,t,n),!e._initted)return 1;if(!r&&e._pt&&!oe&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Fi!==ye.frame)return Ye.push(e),e._lazy=[n,i],1},Vn=function u(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||u(t))},fr=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},Yn=function(e,t,r,i){var n=e.ratio,a=t<0||!t&&(!e._start&&Vn(e)&&!(!e._initted&&fr(e))||(e._ts<0||e._dp._ts<0)&&!fr(e))?0:1,s=e._rDelay,o=0,l,c,d;if(s&&e._repeat&&(o=zt(0,e._tDur,t),c=_t(o,s),e._yoyo&&c&1&&(a=1-a),c!==_t(e._tTime,s)&&(n=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==n||oe||i||e._zTime===V||!t&&e._zTime){if(!e._initted&&Ii(e,t,i,r,o))return;for(d=e._zTime,e._zTime=t||(r?V:0),r||(r=t&&!d),e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=o,l=e._pt;l;)l.r(a,l.d),l=l._next;t<0&&hr(e,t,r,!0),e._onUpdate&&!r&&ve(e,"onUpdate"),o&&e._repeat&&!r&&e.parent&&ve(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&qe(e,1),!r&&!oe&&(ve(e,a?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},Xn=function(e,t,r){var i;if(r>t)for(i=e._first;i&&i._start<=r;){if(i.data==="isPause"&&i._start>t)return i;i=i._next}else for(i=e._last;i&&i._start>=r;){if(i.data==="isPause"&&i._start0&&!i&&jt(e,e._tTime=e._tDur*s),e.parent&&Ht(e),r||tt(e.parent,e),e},ii=function(e){return e instanceof ce?tt(e):mt(e,e._dur)},qn={_start:0,endTime:St,totalDuration:St},Ce=function u(e,t,r){var i=e.labels,n=e._recent||qn,a=e.duration()>=Me?n.endTime(!1):e._dur,s,o,l;return ae(t)&&(isNaN(t)||t in i)?(o=t.charAt(0),l=t.substr(-1)==="%",s=t.indexOf("="),o==="<"||o===">"?(s>=0&&(t=t.replace(/=/,"")),(o==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(t.substr(1))||0)*(l?(s<0?n:r).totalDuration()/100:1)):s<0?(t in i||(i[t]=a),i[t]):(o=parseFloat(t.charAt(s-1)+t.substr(s+1)),l&&r&&(o=o/100*(ue(r)?r[0]:r).totalDuration()),s>1?u(e,t.substr(0,s-1),r)+o:a+o)):t==null?a:+t},Ct=function(e,t,r){var i=Le(t[1]),n=(i?2:1)+(e<2?0:1),a=t[n],s,o;if(i&&(a.duration=t[1]),a.parent=r,e){for(s=a,o=r;o&&!("immediateRender"in s);)s=o.vars.defaults||{},o=he(o.vars.inherit)&&o.parent;a.immediateRender=he(s.immediateRender),e<2?a.runBackwards=1:a.startAt=t[n-1]}return new ie(t[0],a,t[n+1])},Ge=function(e,t){return e||e===0?t(e):t},zt=function(e,t,r){return rt?t:r},le=function(e,t){return!ae(e)||!(t=Dn.exec(e))?"":t[1]},Wn=function(e,t,r){return Ge(r,function(i){return zt(e,t,i)})},pr=[].slice,Bi=function(e,t){return e&&De(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&De(e[0]))&&!e.nodeType&&e!==Oe},Gn=function(e,t,r){return r===void 0&&(r=[]),e.forEach(function(i){var n;return ae(i)&&!t||Bi(i,1)?(n=r).push.apply(n,ke(i)):r.push(i)})||r},ke=function(e,t,r){return W&&!t&&W.selector?W.selector(e):ae(e)&&!r&&(cr||!xt())?pr.call((t||Fr).querySelectorAll(e),0):ue(e)?Gn(e,r):Bi(e)?pr.call(e,0):e?[e]:[]},gr=function(e){return e=ke(e)[0]||kt("Invalid scope")||{},function(t){var r=e.current||e.nativeElement||e;return ke(t,r.querySelectorAll?r:r===e?kt("Invalid scope")||Fr.createElement("div"):e)}},Li=function(e){return e.sort(function(){return .5-Math.random()})},Ui=function(e){if(J(e))return e;var t=De(e)?e:{each:e},r=rt(t.ease),i=t.from||0,n=parseFloat(t.base)||0,a={},s=i>0&&i<1,o=isNaN(i)||s,l=t.axis,c=i,d=i;return ae(i)?c=d={center:.5,edges:.5,end:1}[i]||0:!s&&o&&(c=i[0],d=i[1]),function(p,g,x){var h=(x||t).length,_=a[h],y,b,w,T,v,M,k,S,C;if(!_){if(C=t.grid==="auto"?0:(t.grid||[1,Me])[1],!C){for(k=-Me;k<(k=x[C++].getBoundingClientRect().left)&&Ck&&(k=v),vh?h-1:l?l==="y"?h/C:C:Math.max(C,h/C))||0)*(i==="edges"?-1:1),_.b=h<0?n-h:n,_.u=le(t.amount||t.each)||0,r=r&&h<0?ji(r):r}return h=(_[p]-_.min)/_.max||0,ne(_.b+(r?r(h):h)*_.v)+_.u}},_r=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var i=ne(Math.round(parseFloat(r)/e)*e*t);return(i-i%1)/t+(Le(r)?0:le(r))}},Ni=function(e,t){var r=ue(e),i,n;return!r&&De(e)&&(i=r=e.radius||Me,e.values?(e=ke(e.values),(n=!Le(e[0]))&&(i*=i)):e=_r(e.increment)),Ge(t,r?J(e)?function(a){return n=e(a),Math.abs(n-a)<=i?n:a}:function(a){for(var s=parseFloat(n?a.x:a),o=parseFloat(n?a.y:0),l=Me,c=0,d=e.length,p,g;d--;)n?(p=e[d].x-s,g=e[d].y-o,p=p*p+g*g):p=Math.abs(e[d]-s),pi?n-a:a)})},Ft=function(e){for(var t=0,r="",i,n,a,s;~(i=e.indexOf("random(",t));)a=e.indexOf(")",i),s=e.charAt(i+7)==="[",n=e.substr(i+7,a-i-7).match(s?Ci:ur),r+=e.substr(t,i-t)+$i(s?n:+n[0],s?0:+n[1],+n[2]||1e-5),t=a+1;return r+e.substr(t,e.length-t)},Yi=function(e,t,r,i,n){var a=t-e,s=i-r;return Ge(n,function(o){return r+((o-e)/a*s||0)})},Jn=function u(e,t,r,i){var n=isNaN(e+t)?0:function(g){return(1-g)*e+g*t};if(!n){var a=ae(e),s={},o,l,c,d,p;if(r===!0&&(i=1)&&(r=null),a)e={p:e},t={p:t};else if(ue(e)&&!ue(t)){for(c=[],d=e.length,p=d-2,l=1;l(s=Math.abs(s))&&(o=a,n=s);return o},ve=function(e,t,r){var i=e.vars,n=i[t],a=W,s=e._ctx,o,l,c;if(n)return o=i[t+"Params"],l=i.callbackScope||e,r&&Ye.length&&$t(),s&&(W=s),c=o?n.apply(l,o):n.call(l),W=a,c},bt=function(e){return qe(e),e.scrollTrigger&&e.scrollTrigger.kill(!!oe),e.progress()<1&&ve(e,"onInterrupt"),e},ut,Xi=[],qi=function(e){if(e)if(e=!e.name&&e.default||e,Sr()||e.headless){var t=e.name,r=J(e),i=t&&!r&&e.init?function(){this._props=[]}:e,n={init:St,render:Lr,add:Dr,kill:ga,modifier:pa,rawVars:0},a={targetTest:0,get:0,getSetter:Br,aliases:{},register:0};if(xt(),e!==i){if(xe[t])return;Te(i,Te(Vt(e,n),a)),gt(i.prototype,gt(n,Vt(e,a))),xe[i.prop=t]=i,e.targetTest&&(Lt.push(i),Er[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}Si(t,i),e.register&&e.register(_e,i,pe)}else Xi.push(e)},$=255,wt={aqua:[0,$,$],lime:[0,$,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,$],navy:[0,0,128],white:[$,$,$],olive:[128,128,0],yellow:[$,$,0],orange:[$,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[$,0,0],pink:[$,192,203],cyan:[0,$,$],transparent:[$,$,$,0]},rr=function(e,t,r){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(r-t)*e*6:e<.5?r:e*3<2?t+(r-t)*(2/3-e)*6:t)*$+.5|0},Wi=function(e,t,r){var i=e?Le(e)?[e>>16,e>>8&$,e&$]:0:wt.black,n,a,s,o,l,c,d,p,g,x;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),wt[e])i=wt[e];else if(e.charAt(0)==="#"){if(e.length<6&&(n=e.charAt(1),a=e.charAt(2),s=e.charAt(3),e="#"+n+n+a+a+s+s+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&$,i&$,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&$,e&$]}else if(e.substr(0,3)==="hsl"){if(i=x=e.match(ur),!t)o=+i[0]%360/360,l=+i[1]/100,c=+i[2]/100,a=c<=.5?c*(l+1):c+l-c*l,n=c*2-a,i.length>3&&(i[3]*=1),i[0]=rr(o+1/3,n,a),i[1]=rr(o,n,a),i[2]=rr(o-1/3,n,a);else if(~e.indexOf("="))return i=e.match(wi),r&&i.length<4&&(i[3]=1),i}else i=e.match(ur)||wt.transparent;i=i.map(Number)}return t&&!x&&(n=i[0]/$,a=i[1]/$,s=i[2]/$,d=Math.max(n,a,s),p=Math.min(n,a,s),c=(d+p)/2,d===p?o=l=0:(g=d-p,l=c>.5?g/(2-d-p):g/(d+p),o=d===n?(a-s)/g+(ae||y<0)&&(r+=y-t),i+=y,v=i-r,w=v-a,(w>0||b)&&(M=++d.frame,p=v-d.time*1e3,d.time=v=v/1e3,a+=w+(w>=n?4:n-w),T=1),b||(o=l(h)),T)for(g=0;g=y&&g--},_listeners:s},d}(),xt=function(){return!Pt&&ye.wake()},I={},ta=/^[\d.\-M][\d.\-,\s]/,ra=/["']/g,ia=function(e){for(var t={},r=e.substr(1,e.length-3).split(":"),i=r[0],n=1,a=r.length,s,o,l;n1&&r.config?r.config.apply(null,~e.indexOf("{")?[ia(t[1])]:na(e).split(",").map(Oi)):I._CE&&ta.test(e)?I._CE("",e):r},ji=function(e){return function(t){return 1-e(1-t)}},Zi=function u(e,t){for(var r=e._first,i;r;)r instanceof ce?u(r,t):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==t&&(r.timeline?u(r.timeline,t):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=t)),r=r._next},rt=function(e,t){return e&&(J(e)?e:I[e]||aa(e))||t},at=function(e,t,r,i){r===void 0&&(r=function(o){return 1-t(1-o)}),i===void 0&&(i=function(o){return o<.5?t(o*2)/2:1-t((1-o)*2)/2});var n={easeIn:t,easeOut:r,easeInOut:i},a;return fe(e,function(s){I[s]=we[s]=n,I[a=s.toLowerCase()]=r;for(var o in n)I[a+(o==="easeIn"?".in":o==="easeOut"?".out":".inOut")]=I[s+"."+o]=n[o]}),n},Qi=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},ir=function u(e,t,r){var i=t>=1?t:1,n=(r||(e?.3:.45))/(t<1?t:1),a=n/lr*(Math.asin(1/i)||0),s=function(c){return c===1?1:i*Math.pow(2,-10*c)*zn((c-a)*n)+1},o=e==="out"?s:e==="in"?function(l){return 1-s(1-l)}:Qi(s);return n=lr/n,o.config=function(l,c){return u(e,l,c)},o},nr=function u(e,t){t===void 0&&(t=1.70158);var r=function(a){return a?--a*a*((t+1)*a+t)+1:0},i=e==="out"?r:e==="in"?function(n){return 1-r(1-n)}:Qi(r);return i.config=function(n){return u(e,n)},i};fe("Linear,Quad,Cubic,Quart,Quint,Strong",function(u,e){var t=e<5?e+1:e;at(u+",Power"+(t-1),e?function(r){return Math.pow(r,t)}:function(r){return r},function(r){return 1-Math.pow(1-r,t)},function(r){return r<.5?Math.pow(r*2,t)/2:1-Math.pow((1-r)*2,t)/2})});I.Linear.easeNone=I.none=I.Linear.easeIn;at("Elastic",ir("in"),ir("out"),ir());(function(u,e){var t=1/e,r=2*t,i=2.5*t,n=function(s){return s0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,mt(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,i){if(xt(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(jt(this,r),!n._dp||n.parent||Di(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&&r0||!this._tDur&&!r)&&Ae(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===V||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),Ei(this,r,i)),this},e.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+ri(this))%(this._dur+this._rDelay)||(r?this._dur:0),i):this._time},e.totalProgress=function(r,i){return arguments.length?this.totalTime(this.totalDuration()*r,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(r,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+ri(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,i){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*n,i):this._repeat?_t(this._tTime,n)+1:1},e.timeScale=function(r,i){if(!arguments.length)return this._rts===-V?0:this._rts;if(this._rts===r)return this;var n=this.parent&&this._ts?Yt(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-V?0:this._rts,this.totalTime(zt(-Math.abs(this._delay),this.totalDuration(),n),i!==!1),Ht(this),Nn(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(xt(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==V&&(this._tTime-=V)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=r;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&Ae(i,this,r-this._delay),this}return this._start},e.endTime=function(r){return this._start+(he(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var i=this.parent||this._dp;return i?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Yt(i.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=In);var i=oe;return oe=r,zr(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),oe=i,this},e.globalTime=function(r){for(var i=this,n=arguments.length?r:i.rawTime();i;)n=i._start+n/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(r):n},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,ii(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,ii(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,i){return this.totalTime(Ce(this,r),he(i))},e.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,he(i)),this._dur||(this._zTime=-V),this},e.play=function(r,i){return r!=null&&this.seek(r,i),this.reversed(!1).paused(!1)},e.reverse=function(r,i){return r!=null&&this.seek(r||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(r,i){return r!=null&&this.seek(r,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-V:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-V,this},e.isActive=function(){var r=this.parent||this._dp,i=this._start,n;return!!(!r||this._ts&&this._initted&&r.isActive()&&(n=r.rawTime(!0))>=i&&n1?(i?(a[r]=i,n&&(a[r+"Params"]=n),r==="onUpdate"&&(this._onUpdate=i)):delete a[r],this):a[r]},e.then=function(r){var i=this;return new Promise(function(n){var a=J(r)?r:Ai,s=function(){var l=i.then;i.then=null,J(a)&&(a=a(i))&&(a.then||a===i)&&(i.then=l),n(a),i.then=l};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?s():i._prom=s})},e.kill=function(){bt(this)},u}();Te(Et.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:-V,_prom:0,_ps:!1,_rts:1});var ce=function(u){yi(e,u);function e(r,i){var n;return r===void 0&&(r={}),n=u.call(this,r)||this,n.labels={},n.smoothChildTiming=!!r.smoothChildTiming,n.autoRemoveChildren=!!r.autoRemoveChildren,n._sort=he(r.sortChildren),H&&Ae(r.parent||H,Ie(n),i),r.reversed&&n.reverse(),r.paused&&n.paused(!0),r.scrollTrigger&&Ri(Ie(n),r.scrollTrigger),n}var t=e.prototype;return t.to=function(i,n,a){return Ct(0,arguments,this),this},t.from=function(i,n,a){return Ct(1,arguments,this),this},t.fromTo=function(i,n,a,s){return Ct(2,arguments,this),this},t.set=function(i,n,a){return n.duration=0,n.parent=this,Tt(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new ie(i,n,Ce(this,a),1),this},t.call=function(i,n,a){return Ae(this,ie.delayedCall(0,i,n),a)},t.staggerTo=function(i,n,a,s,o,l,c){return a.duration=n,a.stagger=a.stagger||s,a.onComplete=l,a.onCompleteParams=c,a.parent=this,new ie(i,a,Ce(this,o)),this},t.staggerFrom=function(i,n,a,s,o,l,c){return a.runBackwards=1,Tt(a).immediateRender=he(a.immediateRender),this.staggerTo(i,n,a,s,o,l,c)},t.staggerFromTo=function(i,n,a,s,o,l,c,d){return s.startAt=a,Tt(s).immediateRender=he(s.immediateRender),this.staggerTo(i,n,s,o,l,c,d)},t.render=function(i,n,a){var s=this._time,o=this._dirty?this.totalDuration():this._tDur,l=this._dur,c=i<=0?0:ne(i),d=this._zTime<0!=i<0&&(this._initted||!l),p,g,x,h,_,y,b,w,T,v,M,k;if(this!==H&&c>o&&i>=0&&(c=o),c!==this._tTime||a||d){if(s!==this._time&&l&&(c+=this._time-s,i+=this._time-s),p=c,T=this._start,w=this._ts,y=!w,d&&(l||(s=this._zTime),(i||!n)&&(this._zTime=i)),this._repeat){if(M=this._yoyo,_=l+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(_*100+i,n,a);if(p=ne(c%_),c===o?(h=this._repeat,p=l):(v=ne(c/_),h=~~v,h&&h===v&&(p=l,h--),p>l&&(p=l)),v=_t(this._tTime,_),!s&&this._tTime&&v!==h&&this._tTime-v*_-this._dur<=0&&(v=h),M&&h&1&&(p=l-p,k=1),h!==v&&!this._lock){var S=M&&v&1,C=S===(M&&h&1);if(h=s&&i>=0)for(g=this._first;g;){if(x=g._next,(g._act||p>=g._start)&&g._ts&&b!==g){if(g.parent!==this)return this.render(i,n,a);if(g.render(g._ts>0?(p-g._start)*g._ts:(g._dirty?g.totalDuration():g._tDur)+(p-g._start)*g._ts,n,a),p!==this._time||!this._ts&&!y){b=0,x&&(c+=this._zTime=-V);break}}g=x}else{g=this._last;for(var B=i<0?i:p;g;){if(x=g._prev,(g._act||B<=g._end)&&g._ts&&b!==g){if(g.parent!==this)return this.render(i,n,a);if(g.render(g._ts>0?(B-g._start)*g._ts:(g._dirty?g.totalDuration():g._tDur)+(B-g._start)*g._ts,n,a||oe&&zr(g)),p!==this._time||!this._ts&&!y){b=0,x&&(c+=this._zTime=B?-V:V);break}}g=x}}if(b&&!n&&(this.pause(),b.render(p>=s?0:-V)._zTime=p>=s?1:-1,this._ts))return this._start=T,Ht(this),this.render(i,n,a);this._onUpdate&&!n&&ve(this,"onUpdate",!0),(c===o&&this._tTime>=this.totalDuration()||!c&&s)&&(T===this._start||Math.abs(w)!==Math.abs(this._ts))&&(this._lock||((i||!l)&&(c===o&&this._ts>0||!c&&this._ts<0)&&qe(this,1),!n&&!(i<0&&!s)&&(c||s||!o)&&(ve(this,c===o&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c0)&&this._prom())))}return this},t.add=function(i,n){var a=this;if(Le(n)||(n=Ce(this,n,i)),!(i instanceof Et)){if(ue(i))return i.forEach(function(s){return a.add(s,n)}),this;if(ae(i))return this.addLabel(i,n);if(J(i))i=ie.delayedCall(0,i);else return this}return this!==i?Ae(this,i,n):this},t.getChildren=function(i,n,a,s){i===void 0&&(i=!0),n===void 0&&(n=!0),a===void 0&&(a=!0),s===void 0&&(s=-Me);for(var o=[],l=this._first;l;)l._start>=s&&(l instanceof ie?n&&o.push(l):(a&&o.push(l),i&&o.push.apply(o,l.getChildren(!0,n,a)))),l=l._next;return o},t.getById=function(i){for(var n=this.getChildren(1,1,1),a=n.length;a--;)if(n[a].vars.id===i)return n[a]},t.remove=function(i){return ae(i)?this.removeLabel(i):J(i)?this.killTweensOf(i):(i.parent===this&&Gt(this,i),i===this._recent&&(this._recent=this._last),tt(this))},t.totalTime=function(i,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ne(ye.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),u.prototype.totalTime.call(this,i,n),this._forcing=0,this):this._tTime},t.addLabel=function(i,n){return this.labels[i]=Ce(this,n),this},t.removeLabel=function(i){return delete this.labels[i],this},t.addPause=function(i,n,a){var s=ie.delayedCall(0,n||St,a);return s.data="isPause",this._hasPause=1,Ae(this,s,Ce(this,i))},t.removePause=function(i){var n=this._first;for(i=Ce(this,i);n;)n._start===i&&n.data==="isPause"&&qe(n),n=n._next},t.killTweensOf=function(i,n,a){for(var s=this.getTweensOf(i,a),o=s.length;o--;)Ne!==s[o]&&s[o].kill(i,n);return this},t.getTweensOf=function(i,n){for(var a=[],s=ke(i),o=this._first,l=Le(n),c;o;)o instanceof ie?Bn(o._targets,s)&&(l?(!Ne||o._initted&&o._ts)&&o.globalTime(0)<=n&&o.globalTime(o.totalDuration())>n:!n||o.isActive())&&a.push(o):(c=o.getTweensOf(s,n)).length&&a.push.apply(a,c),o=o._next;return a},t.tweenTo=function(i,n){n=n||{};var a=this,s=Ce(a,i),o=n,l=o.startAt,c=o.onStart,d=o.onStartParams,p=o.immediateRender,g,x=ie.to(a,Te({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:s,overwrite:"auto",duration:n.duration||Math.abs((s-(l&&"time"in l?l.time:a._time))/a.timeScale())||V,onStart:function(){if(a.pause(),!g){var _=n.duration||Math.abs((s-(l&&"time"in l?l.time:a._time))/a.timeScale());x._dur!==_&&mt(x,_,0,1).render(x._time,!0,!0),g=1}c&&c.apply(x,d||[])}},n));return p?x.render(0):x},t.tweenFromTo=function(i,n,a){return this.tweenTo(n,Te({startAt:{time:Ce(this,i)}},a))},t.recent=function(){return this._recent},t.nextLabel=function(i){return i===void 0&&(i=this._time),ni(this,Ce(this,i))},t.previousLabel=function(i){return i===void 0&&(i=this._time),ni(this,Ce(this,i),1)},t.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+V)},t.shiftChildren=function(i,n,a){a===void 0&&(a=0);for(var s=this._first,o=this.labels,l;s;)s._start>=a&&(s._start+=i,s._end+=i),s=s._next;if(n)for(l in o)o[l]>=a&&(o[l]+=i);return tt(this)},t.invalidate=function(i){var n=this._first;for(this._lock=0;n;)n.invalidate(i),n=n._next;return u.prototype.invalidate.call(this,i)},t.clear=function(i){i===void 0&&(i=!0);for(var n=this._first,a;n;)a=n._next,this.remove(n),n=a;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),tt(this)},t.totalDuration=function(i){var n=0,a=this,s=a._last,o=Me,l,c,d;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-i:i));if(a._dirty){for(d=a.parent;s;)l=s._prev,s._dirty&&s.totalDuration(),c=s._start,c>o&&a._sort&&s._ts&&!a._lock?(a._lock=1,Ae(a,s,c-s._delay,1)._lock=0):o=c,c<0&&s._ts&&(n-=c,(!d&&!a._dp||d&&d.smoothChildTiming)&&(a._start+=c/a._ts,a._time-=c,a._tTime-=c),a.shiftChildren(-c,!1,-1/0),o=0),s._end>n&&s._ts&&(n=s._end),s=l;mt(a,a===H&&a._time>n?a._time:n,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(i){if(H._ts&&(Ei(H,Yt(i,H)),Fi=ye.frame),ye.frame>=ei){ei+=be.autoSleep||120;var n=H._first;if((!n||!n._ts)&&be.autoSleep&&ye._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||ye.sleep()}}},e}(Et);Te(ce.prototype,{_lock:0,_hasPause:0,_forcing:0});var sa=function(e,t,r,i,n,a,s){var o=new pe(this._pt,e,t,0,1,an,null,n),l=0,c=0,d,p,g,x,h,_,y,b;for(o.b=r,o.e=i,r+="",i+="",(y=~i.indexOf("random("))&&(i=Ft(i)),a&&(b=[r,i],a(b,e,t),r=b[0],i=b[1]),p=r.match(er)||[];d=er.exec(i);)x=d[0],h=i.substring(l,d.index),g?g=(g+1)%5:h.substr(-5)==="rgba("&&(g=1),x!==p[c++]&&(_=parseFloat(p[c-1])||0,o._pt={_next:o._pt,p:h||c===1?h:",",s:_,c:x.charAt(1)==="="?dt(_,x)-_:parseFloat(x)-_,m:g&&g<4?Math.round:0},l=er.lastIndex);return o.c=l")}),T.duration();else{M={};for(S in x)S==="ease"||S==="easeEach"||ca(S,x[S],M,x.easeEach);for(S in M)for(N=M[S].sort(function(G,re){return G.t-re.t}),U=0,v=0;vo-V&&!c?o:il&&(p=l)),y=this._yoyo&&x&1,y&&(T=this._yEase,p=l-p),_=_t(this._tTime,h),p===s&&!a&&this._initted&&x===_)return this._tTime=d,this;x!==_&&(w&&this._yEase&&Zi(w,y),this.vars.repeatRefresh&&!y&&!this._lock&&p!==h&&this._initted&&(this._lock=a=1,this.render(ne(h*x),!0).invalidate()._lock=0))}if(!this._initted){if(Ii(this,c?i:p,a,n,d))return this._tTime=0,this;if(s!==this._time&&!(a&&this.vars.repeatRefresh&&x!==_))return this;if(l!==this._dur)return this.render(i,n,a)}if(this._tTime=d,this._time=p,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=b=(T||this._ease)(p/l),this._from&&(this.ratio=b=1-b),!s&&d&&!n&&!_&&(ve(this,"onStart"),this._tTime!==d))return this;for(g=this._pt;g;)g.r(b,g.d),g=g._next;w&&w.render(i<0?i:w._dur*w._ease(p/this._dur),n,a)||this._startAt&&(this._zTime=i),this._onUpdate&&!n&&(c&&hr(this,i,n,a),ve(this,"onUpdate")),this._repeat&&x!==_&&this.vars.onRepeat&&!n&&this.parent&&ve(this,"onRepeat"),(d===this._tDur||!d)&&this._tTime===d&&(c&&!this._onUpdate&&hr(this,i,!0,!0),(i||!l)&&(d===this._tDur&&this._ts>0||!d&&this._ts<0)&&qe(this,1),!n&&!(c&&!s)&&(d||s||y)&&(ve(this,d===o?"onComplete":"onReverseComplete",!0),this._prom&&!(d0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.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),u.prototype.invalidate.call(this,i)},t.resetTo=function(i,n,a,s,o){Pt||ye.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Rr(this,l),c=this._ease(l/this._dur),la(this,i,n,a,s,c,l,o)?this.resetTo(i,n,a,s,1):(jt(this,0),this.parent||zi(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(i,n){if(n===void 0&&(n="all"),!i&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?bt(this):this.scrollTrigger&&this.scrollTrigger.kill(!!oe),this;if(this.timeline){var a=this.timeline.totalDuration();return this.timeline.killTweensOf(i,n,Ne&&Ne.vars.overwrite!==!0)._first||bt(this),this.parent&&a!==this.timeline.totalDuration()&&mt(this,this._dur*this.timeline._tDur/a,0,1),this}var s=this._targets,o=i?ke(i):s,l=this._ptLookup,c=this._pt,d,p,g,x,h,_,y;if((!n||n==="all")&&Un(s,o))return n==="all"&&(this._pt=0),bt(this);for(d=this._op=this._op||[],n!=="all"&&(ae(n)&&(h={},fe(n,function(b){return h[b]=1}),n=h),n=ua(s,n)),y=s.length;y--;)if(~o.indexOf(s[y])){p=l[y],n==="all"?(d[y]=n,x=p,g={}):(g=d[y]=d[y]||{},x=n);for(h in x)_=p&&p[h],_&&((!("kill"in _.d)||_.d.kill(h)===!0)&&Gt(this,_,"_pt"),delete p[h]),g!=="all"&&(g[h]=1)}return this._initted&&!this._pt&&c&&bt(this),this},e.to=function(i,n){return new e(i,n,arguments[2])},e.from=function(i,n){return Ct(1,arguments)},e.delayedCall=function(i,n,a,s){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:n,onReverseComplete:n,onCompleteParams:a,onReverseCompleteParams:a,callbackScope:s})},e.fromTo=function(i,n,a){return Ct(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,a){return H.killTweensOf(i,n,a)},e}(Et);Te(ie.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});fe("staggerTo,staggerFrom,staggerFromTo",function(u){ie[u]=function(){var e=new ce,t=pr.call(arguments,0);return t.splice(u==="staggerFromTo"?5:4,0,0),e[u].apply(e,t)}});var Ir=function(e,t,r){return e[t]=r},rn=function(e,t,r){return e[t](r)},da=function(e,t,r,i){return e[t](i.fp,r)},ha=function(e,t,r){return e.setAttribute(t,r)},Br=function(e,t){return J(e[t])?rn:kr(e[t])&&e.setAttribute?ha:Ir},nn=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},fa=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},an=function(e,t){var r=t._pt,i="";if(!e&&t.b)i=t.b;else if(e===1&&t.e)i=t.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+i,r=r._next;i+=t.c}t.set(t.t,t.p,i,t)},Lr=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},pa=function(e,t,r,i){for(var n=this._pt,a;n;)a=n._next,n.p===i&&n.modifier(e,t,r),n=a},ga=function(e){for(var t=this._pt,r,i;t;)i=t._next,t.p===e&&!t.op||t.op===e?Gt(this,t,"_pt"):t.dep||(r=1),t=i;return!r},_a=function(e,t,r,i){i.mSet(e,t,i.m.call(i.tween,r,i.mt),i)},sn=function(e){for(var t=e._pt,r,i,n,a;t;){for(r=t._next,i=n;i&&i.pr>t.pr;)i=i._next;(t._prev=i?i._prev:a)?t._prev._next=t:n=t,(t._next=i)?i._prev=t:a=t,t=r}e._pt=n},pe=function(){function u(t,r,i,n,a,s,o,l,c){this.t=r,this.s=n,this.c=a,this.p=i,this.r=s||nn,this.d=o||this,this.set=l||Ir,this.pr=c||0,this._next=t,t&&(t._prev=this)}var e=u.prototype;return e.modifier=function(r,i,n){this.mSet=this.mSet||this.set,this.set=_a,this.m=r,this.mt=n,this.tween=i},u}();fe(Or+"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(u){return Er[u]=1});we.TweenMax=we.TweenLite=ie;we.TimelineLite=we.TimelineMax=ce;H=new ce({sortChildren:!1,defaults:pt,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});be.stringFilter=Hi;var it=[],Ut={},ma=[],si=0,xa=0,ar=function(e){return(Ut[e]||ma).map(function(t){return t()})},xr=function(){var e=Date.now(),t=[];e-si>2&&(ar("matchMediaInit"),it.forEach(function(r){var i=r.queries,n=r.conditions,a,s,o,l;for(s in i)a=Oe.matchMedia(i[s]).matches,a&&(o=1),a!==n[s]&&(n[s]=a,l=1);l&&(r.revert(),o&&t.push(r))}),ar("matchMediaRevert"),t.forEach(function(r){return r.onMatch(r,function(i){return r.add(null,i)})}),si=e,ar("matchMedia"))},on=function(){function u(t,r){this.selector=r&&gr(r),this.data=[],this._r=[],this.isReverted=!1,this.id=xa++,t&&this.add(t)}var e=u.prototype;return e.add=function(r,i,n){J(r)&&(n=i,i=r,r=J);var a=this,s=function(){var l=W,c=a.selector,d;return l&&l!==a&&l.data.push(a),n&&(a.selector=gr(n)),W=a,d=i.apply(a,arguments),J(d)&&a._r.push(d),W=l,a.selector=c,a.isReverted=!1,d};return a.last=s,r===J?s(a,function(o){return a.add(null,o)}):r?a[r]=s:s},e.ignore=function(r){var i=W;W=null,r(this),W=i},e.getTweens=function(){var r=[];return this.data.forEach(function(i){return i instanceof u?r.push.apply(r,i.getTweens()):i instanceof ie&&!(i.parent&&i.parent.data==="nested")&&r.push(i)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,i){var n=this;if(r?function(){for(var s=n.getTweens(),o=n.data.length,l;o--;)l=n.data[o],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(c){return s.splice(s.indexOf(c),1)}));for(s.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,d){return d.g-c.g||-1/0}).forEach(function(c){return c.t.revert(r)}),o=n.data.length;o--;)l=n.data[o],l instanceof ce?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof ie)&&l.revert&&l.revert(r);n._r.forEach(function(c){return c(r,n)}),n.isReverted=!0}():this.data.forEach(function(s){return s.kill&&s.kill()}),this.clear(),i)for(var a=it.length;a--;)it[a].id===this.id&&it.splice(a,1)},e.revert=function(r){this.kill(r||{})},u}(),ya=function(){function u(t){this.contexts=[],this.scope=t,W&&W.data.push(this)}var e=u.prototype;return e.add=function(r,i,n){De(r)||(r={matches:r});var a=new on(0,n||this.scope),s=a.conditions={},o,l,c;W&&!a.selector&&(a.selector=W.selector),this.contexts.push(a),i=a.add("onMatch",i),a.queries=r;for(l in r)l==="all"?c=1:(o=Oe.matchMedia(r[l]),o&&(it.indexOf(a)<0&&it.push(a),(s[l]=o.matches)&&(c=1),o.addListener?o.addListener(xr):o.addEventListener("change",xr)));return c&&i(a,function(d){return a.add(null,d)}),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(i){return i.kill(r,!0)})},u}(),Xt={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),r=0;r1){var i=e.map(function(c){return _e.quickSetter(c,t,r)}),n=i.length;return function(c){for(var d=n;d--;)i[d](c)}}e=e[0]||{};var a=xe[t],s=et(e),o=s.harness&&(s.harness.aliases||{})[t]||t,l=a?function(c){var d=new a;ut._pt=0,d.init(e,r?c+r:c,ut,0,[e]),d.render(1,d),ut._pt&&Lr(1,ut)}:s.set(e,o);return a?l:function(c){return l(e,o,r?c+r:c,s,1)}},quickTo:function(e,t,r){var i,n=_e.to(e,Te((i={},i[t]="+=0.1",i.paused=!0,i.stagger=0,i),r||{})),a=function(o,l,c){return n.resetTo(t,o,l,c)};return a.tween=n,a},isTweening:function(e){return H.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=rt(e.ease,pt.ease)),ti(pt,e||{})},config:function(e){return ti(be,e||{})},registerEffect:function(e){var t=e.name,r=e.effect,i=e.plugins,n=e.defaults,a=e.extendTimeline;(i||"").split(",").forEach(function(s){return s&&!xe[s]&&!we[s]&&kt(t+" effect requires "+s+" plugin.")}),tr[t]=function(s,o,l){return r(ke(s),Te(o||{},n),l)},a&&(ce.prototype[t]=function(s,o,l){return this.add(tr[t](s,De(o)?o:(l=o)&&{},this),l)})},registerEase:function(e,t){I[e]=rt(t)},parseEase:function(e,t){return arguments.length?rt(e,t):I},getById:function(e){return H.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var r=new ce(e),i,n;for(r.smoothChildTiming=he(e.smoothChildTiming),H.remove(r),r._dp=0,r._time=r._tTime=H._time,i=H._first;i;)n=i._next,(t||!(!i._dur&&i instanceof ie&&i.vars.onComplete===i._targets[0]))&&Ae(r,i,i._start-i._delay),i=n;return Ae(H,r,0),r},context:function(e,t){return e?new on(e,t):W},matchMedia:function(e){return new ya(e)},matchMediaRefresh:function(){return it.forEach(function(e){var t=e.conditions,r,i;for(i in t)t[i]&&(t[i]=!1,r=1);r&&e.revert()})||xr()},addEventListener:function(e,t){var r=Ut[e]||(Ut[e]=[]);~r.indexOf(t)||r.push(t)},removeEventListener:function(e,t){var r=Ut[e],i=r&&r.indexOf(t);i>=0&&r.splice(i,1)},utils:{wrap:Qn,wrapYoyo:Kn,distribute:Ui,random:$i,snap:Ni,normalize:Zn,getUnit:le,clamp:Wn,splitColor:Wi,toArray:ke,selector:gr,mapRange:Yi,pipe:Hn,unitize:jn,interpolate:Jn,shuffle:Li},install:ki,effects:tr,ticker:ye,updateRoot:ce.updateRoot,plugins:xe,globalTimeline:H,core:{PropTween:pe,globals:Si,Tween:ie,Timeline:ce,Animation:Et,getCache:et,_removeLinkedListItem:Gt,reverting:function(){return oe},context:function(e){return e&&W&&(W.data.push(e),e._ctx=W),W},suppressOverwrites:function(e){return Mr=e}}};fe("to,from,fromTo,delayedCall,set,killTweensOf",function(u){return Xt[u]=ie[u]});ye.add(ce.updateRoot);ut=Xt.to({},{duration:0});var va=function(e,t){for(var r=e._pt;r&&r.p!==t&&r.op!==t&&r.fp!==t;)r=r._next;return r},ba=function(e,t){var r=e._targets,i,n,a;for(i in t)for(n=r.length;n--;)a=e._ptLookup[n][i],a&&(a=a.d)&&(a._pt&&(a=va(a,i)),a&&a.modifier&&a.modifier(t[i],e,r[n],i))},sr=function(e,t){return{name:e,headless:1,rawVars:1,init:function(i,n,a){a._onInit=function(s){var o,l;if(ae(n)&&(o={},fe(n,function(c){return o[c]=1}),n=o),t){o={};for(l in n)o[l]=t(n[l]);n=o}ba(s,n)}}}},_e=Xt.registerPlugin({name:"attr",init:function(e,t,r,i,n){var a,s,o;this.tween=r;for(a in t)o=e.getAttribute(a)||"",s=this.add(e,"setAttribute",(o||0)+"",t[a],i,n,0,0,a),s.op=a,s.b=o,this._props.push(a)},render:function(e,t){for(var r=t._pt;r;)oe?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,init:function(e,t){for(var r=t.length;r--;)this.add(e,r,e[r]||0,t[r],0,0,0,0,0,1)}},sr("roundProps",_r),sr("modifiers"),sr("snap",Ni))||Xt;ie.version=ce.version=_e.version="3.13.0";Mi=1;Sr()&&xt();I.Power0;I.Power1;I.Power2;I.Power3;I.Power4;I.Linear;I.Quad;I.Cubic;I.Quart;I.Quint;I.Strong;I.Elastic;I.Back;I.SteppedEase;I.Bounce;I.Sine;I.Expo;I.Circ;/*! + * CSSPlugin 3.13.0 + * https://gsap.com + * + * Copyright 2008-2025, GreenSock. All rights reserved. + * Subject to the terms at https://gsap.com/standard-license + * @author: Jack Doyle, jack@greensock.com +*/var oi,$e,ht,Ur,Je,li,Nr,wa=function(){return typeof window<"u"},Ue={},Ke=180/Math.PI,ft=Math.PI/180,ot=Math.atan2,ui=1e8,$r=/([A-Z])/g,Ta=/(left|right|width|margin|padding|x)/i,Ca=/[\s,\(]\S/,ze={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},yr=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Ma=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},ka=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},Sa=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},ln=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},un=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},Fa=function(e,t,r){return e.style[t]=r},Pa=function(e,t,r){return e.style.setProperty(t,r)},Ea=function(e,t,r){return e._gsap[t]=r},Oa=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},Aa=function(e,t,r,i,n){var a=e._gsap;a.scaleX=a.scaleY=r,a.renderTransform(n,a)},za=function(e,t,r,i,n){var a=e._gsap;a[t]=r,a.renderTransform(n,a)},j="transform",ge=j+"Origin",Da=function u(e,t){var r=this,i=this.target,n=i.style,a=i._gsap;if(e in Ue&&n){if(this.tfm=this.tfm||{},e!=="transform")e=ze[e]||e,~e.indexOf(",")?e.split(",").forEach(function(s){return r.tfm[s]=Be(i,s)}):this.tfm[e]=a.x?a[e]:Be(i,e),e===ge&&(this.tfm.zOrigin=a.zOrigin);else return ze.transform.split(",").forEach(function(s){return u.call(r,s,t)});if(this.props.indexOf(j)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(ge,t,"")),e=j}(n||t)&&this.props.push(e,t,n[e])},cn=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},Ra=function(){var e=this.props,t=this.target,r=t.style,i=t._gsap,n,a;for(n=0;n=0?ci[a]:"")+e},br=function(){wa()&&window.document&&(oi=window,$e=oi.document,ht=$e.documentElement,Je=vr("div")||{style:{}},vr("div"),j=yt(j),ge=j+"Origin",Je.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",hn=!!yt("perspective"),Nr=_e.core.reverting,Ur=1)},di=function(e){var t=e.ownerSVGElement,r=vr("svg",t&&t.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),n;i.style.display="block",r.appendChild(i),ht.appendChild(r);try{n=i.getBBox()}catch{}return r.removeChild(i),ht.removeChild(r),n},hi=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},fn=function(e){var t,r;try{t=e.getBBox()}catch{t=di(e),r=1}return t&&(t.width||t.height)||r||(t=di(e)),t&&!t.width&&!t.x&&!t.y?{x:+hi(e,["x","cx","x1"])||0,y:+hi(e,["y","cy","y1"])||0,width:0,height:0}:t},pn=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&fn(e))},nt=function(e,t){if(t){var r=e.style,i;t in Ue&&t!==ge&&(t=j),r.removeProperty?(i=t.substr(0,2),(i==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),r.removeProperty(i==="--"?t:t.replace($r,"-$1").toLowerCase())):r.removeAttribute(t)}},Ve=function(e,t,r,i,n,a){var s=new pe(e._pt,t,r,0,1,a?un:ln);return e._pt=s,s.b=i,s.e=n,e._props.push(r),s},fi={deg:1,rad:1,turn:1},Ia={grid:1,flex:1},We=function u(e,t,r,i){var n=parseFloat(r)||0,a=(r+"").trim().substr((n+"").length)||"px",s=Je.style,o=Ta.test(t),l=e.tagName.toLowerCase()==="svg",c=(l?"client":"offset")+(o?"Width":"Height"),d=100,p=i==="px",g=i==="%",x,h,_,y;if(i===a||!n||fi[i]||fi[a])return n;if(a!=="px"&&!p&&(n=u(e,t,r,"px")),y=e.getCTM&&pn(e),(g||a==="%")&&(Ue[t]||~t.indexOf("adius")))return x=y?e.getBBox()[o?"width":"height"]:e[c],ee(g?n/x*d:n/100*x);if(s[o?"width":"height"]=d+(p?a:i),h=i!=="rem"&&~t.indexOf("adius")||i==="em"&&e.appendChild&&!l?e:e.parentNode,y&&(h=(e.ownerSVGElement||{}).parentNode),(!h||h===$e||!h.appendChild)&&(h=$e.body),_=h._gsap,_&&g&&_.width&&o&&_.time===ye.time&&!_.uncache)return ee(n/_.width*d);if(g&&(t==="height"||t==="width")){var b=e.style[t];e.style[t]=d+i,x=e[c],b?e.style[t]=b:nt(e,t)}else(g||a==="%")&&!Ia[Se(h,"display")]&&(s.position=Se(e,"position")),h===e&&(s.position="static"),h.appendChild(Je),x=Je[c],h.removeChild(Je),s.position="absolute";return o&&g&&(_=et(h),_.time=ye.time,_.width=h[c]),ee(p?x*n/d:x&&n?d/x*n:0)},Be=function(e,t,r,i){var n;return Ur||br(),t in ze&&t!=="transform"&&(t=ze[t],~t.indexOf(",")&&(t=t.split(",")[0])),Ue[t]&&t!=="transform"?(n=At(e,i),n=t!=="transformOrigin"?n[t]:n.svg?n.origin:Wt(Se(e,ge))+" "+n.zOrigin+"px"):(n=e.style[t],(!n||n==="auto"||i||~(n+"").indexOf("calc("))&&(n=qt[t]&&qt[t](e,t,r)||Se(e,t)||Pi(e,t)||(t==="opacity"?1:0))),r&&!~(n+"").trim().indexOf(" ")?We(e,t,n,r)+r:n},Ba=function(e,t,r,i){if(!r||r==="none"){var n=yt(t,e,1),a=n&&Se(e,n,1);a&&a!==r?(t=n,r=a):t==="borderColor"&&(r=Se(e,"borderTopColor"))}var s=new pe(this._pt,e.style,t,0,1,an),o=0,l=0,c,d,p,g,x,h,_,y,b,w,T,v;if(s.b=r,s.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=Se(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(h=e.style[t],e.style[t]=i,i=Se(e,t)||i,h?e.style[t]=h:nt(e,t)),c=[r,i],Hi(c),r=c[0],i=c[1],p=r.match(lt)||[],v=i.match(lt)||[],v.length){for(;d=lt.exec(i);)_=d[0],b=i.substring(o,d.index),x?x=(x+1)%5:(b.substr(-5)==="rgba("||b.substr(-5)==="hsla(")&&(x=1),_!==(h=p[l++]||"")&&(g=parseFloat(h)||0,T=h.substr((g+"").length),_.charAt(1)==="="&&(_=dt(g,_)+T),y=parseFloat(_),w=_.substr((y+"").length),o=lt.lastIndex-w.length,w||(w=w||be.units[t]||T,o===i.length&&(i+=w,s.e+=w)),T!==w&&(g=We(e,t,h,w)||0),s._pt={_next:s._pt,p:b||l===1?b:",",s:g,c:y-g,m:x&&x<4||t==="zIndex"?Math.round:0});s.c=o-1;)s=n[l],Ue[s]&&(o=1,s=s==="transformOrigin"?ge:j),nt(r,s);o&&(nt(r,j),a&&(a.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",At(r,1),a.uncache=1,cn(i)))}},qt={clearProps:function(e,t,r,i,n){if(n.data!=="isFromStart"){var a=e._pt=new pe(e._pt,t,r,0,0,Ua);return a.u=i,a.pr=-10,a.tween=n,e._props.push(r),1}}},Ot=[1,0,0,1,0,0],gn={},_n=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},gi=function(e){var t=Se(e,j);return _n(t)?Ot:t.substr(7).match(wi).map(ee)},Vr=function(e,t){var r=e._gsap||et(e),i=e.style,n=gi(e),a,s,o,l;return r.svg&&e.getAttribute("transform")?(o=e.transform.baseVal.consolidate().matrix,n=[o.a,o.b,o.c,o.d,o.e,o.f],n.join(",")==="1,0,0,1,0,0"?Ot:n):(n===Ot&&!e.offsetParent&&e!==ht&&!r.svg&&(o=i.display,i.display="block",a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(l=1,s=e.nextElementSibling,ht.appendChild(e)),n=gi(e),o?i.display=o:nt(e,"display"),l&&(s?a.insertBefore(e,s):a?a.appendChild(e):ht.removeChild(e))),t&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},wr=function(e,t,r,i,n,a){var s=e._gsap,o=n||Vr(e,!0),l=s.xOrigin||0,c=s.yOrigin||0,d=s.xOffset||0,p=s.yOffset||0,g=o[0],x=o[1],h=o[2],_=o[3],y=o[4],b=o[5],w=t.split(" "),T=parseFloat(w[0])||0,v=parseFloat(w[1])||0,M,k,S,C;r?o!==Ot&&(k=g*_-x*h)&&(S=T*(_/k)+v*(-h/k)+(h*b-_*y)/k,C=T*(-x/k)+v*(g/k)-(g*b-x*y)/k,T=S,v=C):(M=fn(e),T=M.x+(~w[0].indexOf("%")?T/100*M.width:T),v=M.y+(~(w[1]||w[0]).indexOf("%")?v/100*M.height:v)),i||i!==!1&&s.smooth?(y=T-l,b=v-c,s.xOffset=d+(y*g+b*h)-y,s.yOffset=p+(y*x+b*_)-b):s.xOffset=s.yOffset=0,s.xOrigin=T,s.yOrigin=v,s.smooth=!!i,s.origin=t,s.originIsAbsolute=!!r,e.style[ge]="0px 0px",a&&(Ve(a,s,"xOrigin",l,T),Ve(a,s,"yOrigin",c,v),Ve(a,s,"xOffset",d,s.xOffset),Ve(a,s,"yOffset",p,s.yOffset)),e.setAttribute("data-svg-origin",T+" "+v)},At=function(e,t){var r=e._gsap||new Ki(e);if("x"in r&&!t&&!r.uncache)return r;var i=e.style,n=r.scaleX<0,a="px",s="deg",o=getComputedStyle(e),l=Se(e,ge)||"0",c,d,p,g,x,h,_,y,b,w,T,v,M,k,S,C,B,Y,U,N,te,Z,G,re,me,st,m,f,F,O,E,z;return c=d=p=h=_=y=b=w=T=0,g=x=1,r.svg=!!(e.getCTM&&pn(e)),o.translate&&((o.translate!=="none"||o.scale!=="none"||o.rotate!=="none")&&(i[j]=(o.translate!=="none"?"translate3d("+(o.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(o.rotate!=="none"?"rotate("+o.rotate+") ":"")+(o.scale!=="none"?"scale("+o.scale.split(" ").join(",")+") ":"")+(o[j]!=="none"?o[j]:"")),i.scale=i.rotate=i.translate="none"),k=Vr(e,r.svg),r.svg&&(r.uncache?(me=e.getBBox(),l=r.xOrigin-me.x+"px "+(r.yOrigin-me.y)+"px",re=""):re=!t&&e.getAttribute("data-svg-origin"),wr(e,re||l,!!re||r.originIsAbsolute,r.smooth!==!1,k)),v=r.xOrigin||0,M=r.yOrigin||0,k!==Ot&&(Y=k[0],U=k[1],N=k[2],te=k[3],c=Z=k[4],d=G=k[5],k.length===6?(g=Math.sqrt(Y*Y+U*U),x=Math.sqrt(te*te+N*N),h=Y||U?ot(U,Y)*Ke:0,b=N||te?ot(N,te)*Ke+h:0,b&&(x*=Math.abs(Math.cos(b*ft))),r.svg&&(c-=v-(v*Y+M*N),d-=M-(v*U+M*te))):(z=k[6],O=k[7],m=k[8],f=k[9],F=k[10],E=k[11],c=k[12],d=k[13],p=k[14],S=ot(z,F),_=S*Ke,S&&(C=Math.cos(-S),B=Math.sin(-S),re=Z*C+m*B,me=G*C+f*B,st=z*C+F*B,m=Z*-B+m*C,f=G*-B+f*C,F=z*-B+F*C,E=O*-B+E*C,Z=re,G=me,z=st),S=ot(-N,F),y=S*Ke,S&&(C=Math.cos(-S),B=Math.sin(-S),re=Y*C-m*B,me=U*C-f*B,st=N*C-F*B,E=te*B+E*C,Y=re,U=me,N=st),S=ot(U,Y),h=S*Ke,S&&(C=Math.cos(S),B=Math.sin(S),re=Y*C+U*B,me=Z*C+G*B,U=U*C-Y*B,G=G*C-Z*B,Y=re,Z=me),_&&Math.abs(_)+Math.abs(h)>359.9&&(_=h=0,y=180-y),g=ee(Math.sqrt(Y*Y+U*U+N*N)),x=ee(Math.sqrt(G*G+z*z)),S=ot(Z,G),b=Math.abs(S)>2e-4?S*Ke:0,T=E?1/(E<0?-E:E):0),r.svg&&(re=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!_n(Se(e,j)),re&&e.setAttribute("transform",re))),Math.abs(b)>90&&Math.abs(b)<270&&(n?(g*=-1,b+=h<=0?180:-180,h+=h<=0?180:-180):(x*=-1,b+=b<=0?180:-180)),t=t||r.uncache,r.x=c-((r.xPercent=c&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-c)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+a,r.y=d-((r.yPercent=d&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-d)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+a,r.z=p+a,r.scaleX=ee(g),r.scaleY=ee(x),r.rotation=ee(h)+s,r.rotationX=ee(_)+s,r.rotationY=ee(y)+s,r.skewX=b+s,r.skewY=w+s,r.transformPerspective=T+a,(r.zOrigin=parseFloat(l.split(" ")[2])||!t&&r.zOrigin||0)&&(i[ge]=Wt(l)),r.xOffset=r.yOffset=0,r.force3D=be.force3D,r.renderTransform=r.svg?$a:hn?mn:Na,r.uncache=0,r},Wt=function(e){return(e=e.split(" "))[0]+" "+e[1]},or=function(e,t,r){var i=le(t);return ee(parseFloat(t)+parseFloat(We(e,"x",r+"px",i)))+i},Na=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,mn(e,t)},Ze="0deg",vt="0px",Qe=") ",mn=function(e,t){var r=t||this,i=r.xPercent,n=r.yPercent,a=r.x,s=r.y,o=r.z,l=r.rotation,c=r.rotationY,d=r.rotationX,p=r.skewX,g=r.skewY,x=r.scaleX,h=r.scaleY,_=r.transformPerspective,y=r.force3D,b=r.target,w=r.zOrigin,T="",v=y==="auto"&&e&&e!==1||y===!0;if(w&&(d!==Ze||c!==Ze)){var M=parseFloat(c)*ft,k=Math.sin(M),S=Math.cos(M),C;M=parseFloat(d)*ft,C=Math.cos(M),a=or(b,a,k*C*-w),s=or(b,s,-Math.sin(M)*-w),o=or(b,o,S*C*-w+w)}_!==vt&&(T+="perspective("+_+Qe),(i||n)&&(T+="translate("+i+"%, "+n+"%) "),(v||a!==vt||s!==vt||o!==vt)&&(T+=o!==vt||v?"translate3d("+a+", "+s+", "+o+") ":"translate("+a+", "+s+Qe),l!==Ze&&(T+="rotate("+l+Qe),c!==Ze&&(T+="rotateY("+c+Qe),d!==Ze&&(T+="rotateX("+d+Qe),(p!==Ze||g!==Ze)&&(T+="skew("+p+", "+g+Qe),(x!==1||h!==1)&&(T+="scale("+x+", "+h+Qe),b.style[j]=T||"translate(0, 0)"},$a=function(e,t){var r=t||this,i=r.xPercent,n=r.yPercent,a=r.x,s=r.y,o=r.rotation,l=r.skewX,c=r.skewY,d=r.scaleX,p=r.scaleY,g=r.target,x=r.xOrigin,h=r.yOrigin,_=r.xOffset,y=r.yOffset,b=r.forceCSS,w=parseFloat(a),T=parseFloat(s),v,M,k,S,C;o=parseFloat(o),l=parseFloat(l),c=parseFloat(c),c&&(c=parseFloat(c),l+=c,o+=c),o||l?(o*=ft,l*=ft,v=Math.cos(o)*d,M=Math.sin(o)*d,k=Math.sin(o-l)*-p,S=Math.cos(o-l)*p,l&&(c*=ft,C=Math.tan(l-c),C=Math.sqrt(1+C*C),k*=C,S*=C,c&&(C=Math.tan(c),C=Math.sqrt(1+C*C),v*=C,M*=C)),v=ee(v),M=ee(M),k=ee(k),S=ee(S)):(v=d,S=p,M=k=0),(w&&!~(a+"").indexOf("px")||T&&!~(s+"").indexOf("px"))&&(w=We(g,"x",a,"px"),T=We(g,"y",s,"px")),(x||h||_||y)&&(w=ee(w+x-(x*v+h*k)+_),T=ee(T+h-(x*M+h*S)+y)),(i||n)&&(C=g.getBBox(),w=ee(w+i/100*C.width),T=ee(T+n/100*C.height)),C="matrix("+v+","+M+","+k+","+S+","+w+","+T+")",g.setAttribute("transform",C),b&&(g.style[j]=C)},Va=function(e,t,r,i,n){var a=360,s=ae(n),o=parseFloat(n)*(s&&~n.indexOf("rad")?Ke:1),l=o-i,c=i+l+"deg",d,p;return s&&(d=n.split("_")[1],d==="short"&&(l%=a,l!==l%(a/2)&&(l+=l<0?a:-a)),d==="cw"&&l<0?l=(l+a*ui)%a-~~(l/a)*a:d==="ccw"&&l>0&&(l=(l-a*ui)%a-~~(l/a)*a)),e._pt=p=new pe(e._pt,t,r,i,l,Ma),p.e=c,p.u="deg",e._props.push(r),p},_i=function(e,t){for(var r in t)e[r]=t[r];return e},Ya=function(e,t,r){var i=_i({},r._gsap),n="perspective,force3D,transformOrigin,svgOrigin",a=r.style,s,o,l,c,d,p,g,x;i.svg?(l=r.getAttribute("transform"),r.setAttribute("transform",""),a[j]=t,s=At(r,1),nt(r,j),r.setAttribute("transform",l)):(l=getComputedStyle(r)[j],a[j]=t,s=At(r,1),a[j]=l);for(o in Ue)l=i[o],c=s[o],l!==c&&n.indexOf(o)<0&&(g=le(l),x=le(c),d=g!==x?We(r,o,l,x):parseFloat(l),p=parseFloat(c),e._pt=new pe(e._pt,s,o,d,p-d,yr),e._pt.u=x||0,e._props.push(o));_i(s,i)};fe("padding,margin,Width,Radius",function(u,e){var t="Top",r="Right",i="Bottom",n="Left",a=(e<3?[t,r,i,n]:[t+n,t+r,i+r,i+n]).map(function(s){return e<2?u+s:"border"+s+u});qt[e>1?"border"+u:u]=function(s,o,l,c,d){var p,g;if(arguments.length<4)return p=a.map(function(x){return Be(s,x,l)}),g=p.join(" "),g.split(p[0]).length===5?p[0]:g;p=(c+"").split(" "),g={},a.forEach(function(x,h){return g[x]=p[h]=p[h]||p[(h-1)/2|0]}),s.init(o,g,d)}});var xn={name:"css",register:br,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,i,n){var a=this._props,s=e.style,o=r.vars.startAt,l,c,d,p,g,x,h,_,y,b,w,T,v,M,k,S;Ur||br(),this.styles=this.styles||dn(e),S=this.styles.props,this.tween=r;for(h in t)if(h!=="autoRound"&&(c=t[h],!(xe[h]&&Ji(h,t,r,i,e,n)))){if(g=typeof c,x=qt[h],g==="function"&&(c=c.call(r,i,e,n),g=typeof c),g==="string"&&~c.indexOf("random(")&&(c=Ft(c)),x)x(this,e,h,c,r)&&(k=1);else if(h.substr(0,2)==="--")l=(getComputedStyle(e).getPropertyValue(h)+"").trim(),c+="",Xe.lastIndex=0,Xe.test(l)||(_=le(l),y=le(c)),y?_!==y&&(l=We(e,h,l,y)+y):_&&(c+=_),this.add(s,"setProperty",l,c,i,n,0,0,h),a.push(h),S.push(h,0,s[h]);else if(g!=="undefined"){if(o&&h in o?(l=typeof o[h]=="function"?o[h].call(r,i,e,n):o[h],ae(l)&&~l.indexOf("random(")&&(l=Ft(l)),le(l+"")||l==="auto"||(l+=be.units[h]||le(Be(e,h))||""),(l+"").charAt(1)==="="&&(l=Be(e,h))):l=Be(e,h),p=parseFloat(l),b=g==="string"&&c.charAt(1)==="="&&c.substr(0,2),b&&(c=c.substr(2)),d=parseFloat(c),h in ze&&(h==="autoAlpha"&&(p===1&&Be(e,"visibility")==="hidden"&&d&&(p=0),S.push("visibility",0,s.visibility),Ve(this,s,"visibility",p?"inherit":"hidden",d?"inherit":"hidden",!d)),h!=="scale"&&h!=="transform"&&(h=ze[h],~h.indexOf(",")&&(h=h.split(",")[0]))),w=h in Ue,w){if(this.styles.save(h),g==="string"&&c.substring(0,6)==="var(--"&&(c=Se(e,c.substring(4,c.indexOf(")"))),d=parseFloat(c)),T||(v=e._gsap,v.renderTransform&&!t.parseTransform||At(e,t.parseTransform),M=t.smoothOrigin!==!1&&v.smooth,T=this._pt=new pe(this._pt,s,j,0,1,v.renderTransform,v,0,-1),T.dep=1),h==="scale")this._pt=new pe(this._pt,v,"scaleY",v.scaleY,(b?dt(v.scaleY,b+d):d)-v.scaleY||0,yr),this._pt.u=0,a.push("scaleY",h),h+="X";else if(h==="transformOrigin"){S.push(ge,0,s[ge]),c=La(c),v.svg?wr(e,c,0,M,0,this):(y=parseFloat(c.split(" ")[2])||0,y!==v.zOrigin&&Ve(this,v,"zOrigin",v.zOrigin,y),Ve(this,s,h,Wt(l),Wt(c)));continue}else if(h==="svgOrigin"){wr(e,c,1,M,0,this);continue}else if(h in gn){Va(this,v,h,p,b?dt(p,b+c):c);continue}else if(h==="smoothOrigin"){Ve(this,v,"smooth",v.smooth,c);continue}else if(h==="force3D"){v[h]=c;continue}else if(h==="transform"){Ya(this,c,e);continue}}else h in s||(h=yt(h)||h);if(w||(d||d===0)&&(p||p===0)&&!Ca.test(c)&&h in s)_=(l+"").substr((p+"").length),d||(d=0),y=le(c)||(h in be.units?be.units[h]:_),_!==y&&(p=We(e,h,l,y)),this._pt=new pe(this._pt,w?v:s,h,p,(b?dt(p,b+d):d)-p,!w&&(y==="px"||h==="zIndex")&&t.autoRound!==!1?Sa:yr),this._pt.u=y||0,_!==y&&y!=="%"&&(this._pt.b=l,this._pt.r=ka);else if(h in s)Ba.call(this,e,h,l,b?b+c:c);else if(h in e)this.add(e,h,l||e[h],b?b+c:c,i,n);else if(h!=="parseTransform"){Pr(h,c);continue}w||(h in s?S.push(h,0,s[h]):typeof e[h]=="function"?S.push(h,2,e[h]()):S.push(h,1,l||e[h])),a.push(h)}}k&&sn(this)},render:function(e,t){if(t.tween._time||!Nr())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:Be,aliases:ze,getSetter:function(e,t,r){var i=ze[t];return i&&i.indexOf(",")<0&&(t=i),t in Ue&&t!==ge&&(e._gsap.x||Be(e,"x"))?r&&li===r?t==="scale"?Oa:Ea:(li=r||{})&&(t==="scale"?Aa:za):e.style&&!kr(e.style[t])?Fa:~t.indexOf("-")?Pa:Br(e,t)},core:{_removeProperty:nt,_getMatrix:Vr}};_e.utils.checkPrefix=yt;_e.core.getStyleSaver=dn;(function(u,e,t,r){var i=fe(u+","+e+","+t,function(n){Ue[n]=1});fe(e,function(n){be.units[n]="deg",gn[n]=1}),ze[i[13]]=u+","+e,fe(r,function(n){var a=n.split(":");ze[a[1]]=i[a[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");fe("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(u){be.units[u]="px"});_e.registerPlugin(xn);var P=_e.registerPlugin(xn)||_e;P.core.Tween;var Dt={};(function u(e,t,r,i){var n=!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL),a=typeof Path2D=="function"&&typeof DOMMatrix=="function",s=function(){if(!e.OffscreenCanvas)return!1;var m=new OffscreenCanvas(1,1),f=m.getContext("2d");f.fillRect(0,0,1,1);var F=m.transferToImageBitmap();try{f.createPattern(F,"no-repeat")}catch{return!1}return!0}();function o(){}function l(m){var f=t.exports.Promise,F=f!==void 0?f:e.Promise;return typeof F=="function"?new F(m):(m(o,o),null)}var c=function(m,f){return{transform:function(F){if(m)return F;if(f.has(F))return f.get(F);var O=new OffscreenCanvas(F.width,F.height),E=O.getContext("2d");return E.drawImage(F,0,0),f.set(F,O),O},clear:function(){f.clear()}}}(s,new Map),d=function(){var m=Math.floor(16.666666666666668),f,F,O={},E=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(f=function(z){var D=Math.random();return O[D]=requestAnimationFrame(function A(R){E===R||E+m-1{const n=document.createElement("div");return n.className=e,n.style.cssText=t+"; display: none;",document.body.appendChild(n),n},n=>{n.style.display="none",n.style.transform="",n.style.opacity="1",n.textContent="";const a=t.split(";").reduce((s,o)=>{const l=o.split(":").map(c=>c.trim());return l.length===2&&l[0]&&l[1]&&(s[l[0]]=l[1]),s},{});Object.assign(n.style,a)},r,i)}acquire(){const e=super.acquire();return e&&(e.style.display="block"),e}release(e){e.style.display="none",super.release(e)}}class qa{cache=new Map;maxCacheSize;constructor(e=1e3){this.maxCacheSize=e}format(e,t){const r=`${e}`;if(this.cache.has(r))return this.cache.get(r);const i=t(e);if(this.cache.size>=this.maxCacheSize){const n=this.cache.keys().next().value;n!==void 0&&this.cache.delete(n)}return this.cache.set(r,i),i}clear(){this.cache.clear()}}class ct{static instance;activeAnimations=new Map;timelinePool=[];animationCounts=new Map;rafId=null;pendingUpdates=[];config={maxConcurrent:30,autoKill:!0,poolSize:20};constructor(){this.initializePool(),this.startRAFLoop()}static getInstance(){return ct.instance||(ct.instance=new ct),ct.instance}initializePool(){for(let e=0;ethis.releaseTimeline(t)});this.timelinePool.push(t)}}startRAFLoop(){const e=()=>{this.pendingUpdates.length>0&&this.pendingUpdates.splice(0,Math.min(10,this.pendingUpdates.length)).forEach(r=>r()),this.rafId=requestAnimationFrame(e)};e()}getTimeline(e){if(this.activeAnimations.size>=this.config.maxConcurrent)return null;let t=this.timelinePool.pop();if(t||(t=P.timeline({onComplete:()=>this.releaseTimeline(t)})),t.clear(),t.play(),e){const r=this.activeAnimations.get(e);r&&r.kill(),this.activeAnimations.set(e,t)}return t}releaseTimeline(e){e.pause(),e.clear(),e.progress(0);for(const[t,r]of this.activeAnimations.entries())if(r===e){this.activeAnimations.delete(t);break}this.timelinePool.lengthe.kill()),this.activeAnimations.clear()}scheduleUpdate(e){this.pendingUpdates.push(e)}canAnimate(e,t=10){const r=this.animationCounts.get(e)||0;return r>=t?!1:(this.animationCounts.set(e,r+1),window.setTimeout(()=>{const i=this.animationCounts.get(e)||0;this.animationCounts.set(e,Math.max(0,i-1))},1e3),!0)}getStats(){return{active:this.activeAnimations.size,pooled:this.timelinePool.length,pending:this.pendingUpdates.length,types:Object.fromEntries(this.animationCounts)}}destroy(){this.rafId&&cancelAnimationFrame(this.rafId),this.killAllAnimations(),this.timelinePool.forEach(e=>e.kill()),this.timelinePool=[]}}const Cr=ct.getInstance();class Wa{displayedCurrency=0;targetCurrency=0;currentTween=null;particlePool;specialEffectPool;numberFormatter;celebrationConfig={"normal-grass":{scale:1.05,duration:.1,showEffects:!1},"yellow-grass":{scale:1.1,duration:.15,showEffects:!0,particleCount:3,glowIntensity:.4},"purple-grass":{scale:1.2,duration:.2,showEffects:!0,particleCount:8,glowIntensity:.8,showRainbow:!0,showPremiumText:!0},"upgrade-purchase":{scale:1.15,duration:.2,showEffects:!0,particleCount:5,glowIntensity:.6,screenShake:!0}};constructor(){this.initializePools(),this.numberFormatter=new qa(500)}initializePools(){this.particlePool=new Tr("money-particle-pooled","position: fixed; width: 10px; height: 10px; border-radius: 50%; pointer-events: none; z-index: 10000",30,50),this.specialEffectPool=new Tr("special-effect","position: fixed; pointer-events: none; z-index: 10002; font-weight: 900",10,20)}getParticle(){return this.particlePool.acquire()}releaseParticle(e){this.particlePool.release(e)}animateMoney(e,t,r,i){const n=e-this.targetCurrency;if(n===0)return;const a=document.getElementById("currency-value");if(!a){this.displayedCurrency=Math.floor(e),this.targetCurrency=Math.floor(e);return}if(this.targetCurrency=Math.floor(e),n<0){this.currentTween&&this.currentTween.kill();const o=this.displayedCurrency,l=Math.floor(e);P.to(a,{scale:.95,duration:.08,ease:"power2.out"}),this.currentTween=P.to({},{duration:.3,ease:"power2.out",onUpdate:()=>{const c=this.currentTween?.progress()||0,d=Math.floor(o+(l-o)*c);this.displayedCurrency=d,a.textContent=this.numberFormatter.format(d,p=>p.toLocaleString())},onComplete:()=>{this.displayedCurrency=l,P.to(a,{scale:1,duration:.12,ease:"power2.inOut"})}});return}const s=this.celebrationConfig[t];s&&(this.displayedCurrency=Math.floor(e),a.textContent=this.numberFormatter.format(Math.floor(this.displayedCurrency),o=>o.toLocaleString()),P.to(a,{scale:s.scale,duration:s.duration,ease:"power2.out",yoyo:!0,repeat:1}),s.showEffects&&n>=10&&this.showCelebrationEffects(t,n,r,i))}showCelebrationEffects(e,t,r,i){if(!Cr.canAnimate("moneyEffect",8))return;const n=this.celebrationConfig[e];if(!n||!n.showEffects)return;const a=document.querySelector(".currency-container"),s=r||(a?a.getBoundingClientRect().left+a.offsetWidth/2:window.innerWidth/2),o=i||(a?a.getBoundingClientRect().top+a.offsetHeight/2:100);n.glowIntensity&&this.createGlow(n.glowIntensity),n.particleCount&&t>=30&&this.createParticles(s,o,n.particleCount),n.screenShake&&t>=100&&this.createScreenShake(2),n.showRainbow&&this.createRainbowBurst(s,o),n.showPremiumText&&this.createPremiumText()}createParticles(e,t,r){const i=["#FFD700","#FFB800","#FFA500"];for(let n=0;n{document.body.removeChild(a),this.releaseParticle(a)}})}}createGlow(e){const t=document.querySelector(".currency-container");if(!t)return;const r=20+e*15,i=`rgba(255, 184, 0, ${e})`;P.to(t,{boxShadow:`0 0 ${r}px ${i}`,duration:.2,ease:"power2.out",onComplete:()=>{P.to(t,{boxShadow:"0 0 15px rgba(255, 184, 0, 0.3), inset 0 1px 3px rgba(255, 184, 0, 0.1)",duration:.4,ease:"power2.inOut"})}})}createScreenShake(e){document.body.style.setProperty("--shake-intensity",`${e}px`),document.body.classList.add("screen-shake"),window.setTimeout(()=>{document.body.classList.remove("screen-shake")},300)}createRainbowBurst(e,t){const r=["#FFD700","#FF6B2B","#FF1E68","#4ADE80"];r.forEach((i,n)=>{const a=document.createElement("div");a.style.cssText=` + position: fixed; + width: 3px; + height: 60px; + background: linear-gradient(to bottom, ${i}, transparent); + left: ${e}px; + top: ${t}px; + transform-origin: center bottom; + z-index: 9999; + pointer-events: none; + will-change: transform, opacity; + `,document.body.appendChild(a);const s=n/r.length*360;P.to(a,{rotation:s,scale:2.5,opacity:0,duration:.8,ease:"power2.out",onComplete:()=>a.remove()})})}createPremiumText(){const e=this.specialEffectPool.acquire();e&&(document.body.appendChild(e),e.textContent="💎 PREMIUM! 💎",e.style.cssText=` + position: fixed; + top: 30%; + left: 50%; + transform: translate(-50%, -50%); + font-size: 48px; + font-weight: 900; + background: linear-gradient(45deg, #FFD700, #FF6B2B, #FF1E68); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + text-shadow: 0 0 20px rgba(255, 30, 104, 0.6); + z-index: 10001; + pointer-events: none; + `,P.fromTo(e,{scale:0,rotation:-10,opacity:0},{scale:1.2,rotation:5,opacity:1,duration:.4,ease:"back.out(2)"}),P.to(e,{y:-30,scale:.8,opacity:0,duration:.6,delay:1,ease:"power2.in",onComplete:()=>{document.body.removeChild(e),this.specialEffectPool.release(e)}}))}getCurrentValue(){return this.displayedCurrency}setInitialValue(e){this.displayedCurrency=e,this.targetCurrency=e;const t=document.getElementById("currency-value");t&&(t.textContent=this.numberFormatter.format(Math.floor(e),r=>r.toLocaleString()))}}class Ga{container;state=null;moneyAnimationManager;animatingCards=new Set;floatingTextPool;constructor(){this.container=this.createUI(),document.body.appendChild(this.container),this.moneyAnimationManager=new Wa,this.floatingTextPool=new Tr("floating-text","position: fixed; pointer-events: none; z-index: 100; font-weight: 700",30,50);const e=window;e.updateUI=()=>this.update(),e.showFloatingText=(t,r,i,n)=>this.showFloatingText(t,r,i,n),e.showSpecialEffect=(t,r,i,n)=>this.showSpecialEffect(t,r,i,n),this.container.addEventListener("mousedown",t=>t.preventDefault(),!0),P.defaults({ease:"power2.inOut"}),this.setupAutoToggle(),this.setupKeyboardControls()}setState(e){this.state=e,this.update()}createUI(){const e=document.createElement("div");return e.id="game-ui",e.innerHTML=` + + +
+
+
+ 💰 + 0 +
+
+
+ + +
+
+
+ Grass + 0/20 +
+
+ Total Earned + $0 +
+
+
+ +
+
+
🎰 UPGRADES 🎰
+
+
+
+ +
+
🎮 Controls
+
WASD to move
+
Mouse to look
+
Space to jump
+
Tab to toggle auto
+
Walk over grass to cut
+
Buy upgrades to progress
+
+ +
+
+ AUTO +
+
+
+
+
+
+ `,e}update(){if(!this.state)return;const e=Qt(this.state);this.updateCurrency(e.currency),this.updateStats(e),this.updateUpgrades(e)}updateCurrency(e){this.moneyAnimationManager.setInitialValue(Math.floor(e))}updateStats(e){const t=document.getElementById("grass-count"),r=document.getElementById("grass-max"),i=document.getElementById("total-earned");t&&(t.textContent=e.currentGrass.toString()),r&&(r.textContent=e.maxGrass.toString()),i&&(i.textContent=Math.floor(e.totalEarned).toLocaleString())}updateUpgrades(e){const t=document.getElementById("upgrade-list");t&&(t.children.length===0?this.buildUpgradeCards(e):this.updateUpgradeCards(e))}buildUpgradeCards(e){const t=document.getElementById("upgrade-list");if(!t)return;t.innerHTML="",["grassValue","spawnRate","maxGrass","moveSpeed","cutRange"].forEach((i,n)=>{const a=Gr[i],s=e.upgrades[i],o=Hr(i,s),l=e.currency>=o,c=e.currency>=o*.8&&e.currency + ${g} ${a.getName()} + Lv ${s} + +
+ ${l?"⚡":"📈"} + ${a.getDescription(s)} +
+
+
+ ${l?'
':""} +
+
${Math.floor(p)}%
+
+
+ ${l?`$${o.toLocaleString()}`:c?`💵 $${o.toLocaleString()} + 🔥 Almost there!`:`💵 $${o.toLocaleString()}`} +
+ `,this.state){const x=this.state;d.addEventListener("mouseenter",()=>{this.animatingCards.has(i)||(l?(P.to(d,{boxShadow:"0 8px 40px rgba(255, 215, 0, 0.6), inset 0 2px 0 rgba(255, 215, 0, 0.4), 0 12px 48px rgba(0, 0, 0, 0.5)",background:"linear-gradient(135deg, #1f2633 0%, #FFD700 3%, #1f2633 6%, #1a1f2a 100%)",duration:.2,ease:"power2.out",overwrite:!0}),P.to(d,{transform:"translateY(-2px)",duration:.2,overwrite:!0})):c?P.to(d,{boxShadow:"0 4px 20px rgba(255, 107, 43, 0.5), 0 8px 32px rgba(0, 0, 0, 0.4)",duration:.3,ease:"power2.out",overwrite:!0}):P.to(d,{x:-2,duration:.05,yoyo:!0,repeat:3,ease:"power2.inOut",overwrite:!0,onComplete:()=>{P.set(d,{x:0})}}))}),d.addEventListener("mouseleave",()=>{this.animatingCards.has(i)||(P.to(d,{x:0,boxShadow:l?"0 4px 20px rgba(255, 215, 0, 0.4), inset 0 1px 0 rgba(255, 215, 0, 0.3), 0 8px 32px rgba(0, 0, 0, 0.4)":c?"0 2px 12px rgba(255, 107, 43, 0.3), 0 4px 16px rgba(0, 0, 0, 0.3)":"0 2px 5px rgba(0, 0, 0, 0.3)",background:l?"linear-gradient(135deg, #1a1f2a 0%, #FFD700 2%, #1a1f2a 4%, #141820 100%)":c?"linear-gradient(135deg, #1a1f2a 0%, #14171f 100%)":"linear-gradient(135deg, #0f1318 0%, #0a0c10 100%)",duration:.3,ease:"power2.out",overwrite:!0}),l&&P.to(d,{transform:"translateY(0)",duration:.3,overwrite:!0}))});const h=_=>{if(_.preventDefault(),this.animatingCards.has(i))return;if(Zr(x,i)){this.showPurchaseEffect(d,i);const b=Qt(x);this.moneyAnimationManager.animateMoney(b.currency,"upgrade-purchase"),window.setTimeout(()=>{this.update()},100)}else this.shakeCard(d)};d._clickHandler=h,d.addEventListener("click",h)}t.appendChild(d),P.set(d,{x:100,opacity:0}),P.to(d,{x:0,opacity:1,duration:.5,delay:n*.1,ease:"back.out(1.7)",overwrite:!0})})}updateUpgradeCards(e){["grassValue","spawnRate","maxGrass","moveSpeed","cutRange"].forEach(r=>{const i=document.getElementById(`upgrade-${r}`);if(!i)return;const n=i;if(!n._clickHandler&&this.state){const y=this.state,b=w=>{if(w.preventDefault(),this.animatingCards.has(r))return;if(Zr(y,r)){this.showPurchaseEffect(i,r);const v=Qt(y);this.moneyAnimationManager.animateMoney(v.currency,"upgrade-purchase"),window.setTimeout(()=>{this.update()},100)}else this.shakeCard(i)};n._clickHandler=b,i.addEventListener("click",b)}const a=Gr[r],s=e.upgrades[r],o=Hr(r,s),l=e.currency>=o,c=e.currency>=o*.8&&e.currency.01&&P.to(d,{scaleX:w,duration:.3,ease:"power2.out",overwrite:!0}),p&&(p.textContent=`${Math.floor(y)}%`)}const g=i.querySelector(".upgrade-name");if(g){const y=l?"🎰":c?"🔥":"🔒";g.innerHTML=`${y} ${a.getName()}`}const x=i.querySelector(".upgrade-level");x&&(x.textContent=`Lv ${s}`);const h=i.querySelector(".upgrade-effect");if(h){const y=l?"⚡":"📈";h.innerHTML=` + ${y} + ${a.getDescription(s)} + `}d&&l?d.querySelector(".progress-shimmer")||(d.innerHTML='
'):d&&(d.innerHTML="");const _=i.querySelector(".upgrade-cost");_&&(l?_.innerHTML=`$${o.toLocaleString()}`:c?_.innerHTML=` + 💵 $${o.toLocaleString()} + 🔥 Almost there! + `:_.innerHTML=`💵 $${o.toLocaleString()}`)})}showPurchaseEffect(e,t){P.killTweensOf(e),this.animatingCards.delete(t),this.animatingCards.add(t),window.setTimeout(()=>{this.animatingCards.delete(t)},1e3);const r=e.getBoundingClientRect(),n=document.getElementById("currency-display")?.getBoundingClientRect(),a=Cr.getTimeline(`purchase-${t}`);a?a.to(e,{scale:1.15,rotationY:360,duration:.4,ease:"power2.out",overwrite:!0}).to(e,{scale:1,rotationY:0,duration:.3,ease:"back.out(1.5)",overwrite:!0,onComplete:()=>{this.animatingCards.delete(t)},onInterrupt:()=>{this.animatingCards.delete(t)}}):this.animatingCards.delete(t),this.createSuccessFlash(r),n&&this.createMoneyTrail(r,n),this.createPurchaseParticles(r,8),this.createCoinShower(r),this.createSuccessRipple(r),this.triggerScreenShake(),this.createConfetti(r),this.showUpgradeText()}createMoneyTrail(e,t){const i=e.left+e.width/2,n=e.top+e.height/2,a=t.left+t.width/2,s=t.top+t.height/2;for(let o=0;o<3;o++){const l=document.createElement("div");l.textContent="$",l.style.cssText=` + position: fixed; + left: 0; + top: 0; + color: #FFD700; + font-size: 24px; + font-weight: 900; + text-shadow: 0 0 10px rgba(255, 215, 0, 0.8); + pointer-events: none; + z-index: 10001; + will-change: transform, opacity; + `,document.body.appendChild(l),P.fromTo(l,{x:i,y:n,scale:1,opacity:1},{x:a,y:s,scale:.3,opacity:0,duration:.6,delay:o*.05,ease:"power2.in",onComplete:()=>l.remove()})}}createSuccessFlash(e){const t=document.createElement("div");t.style.cssText=` + position: fixed; + top: 0; + left: 0; + width: 100vw; + height: 100vh; + background: radial-gradient(circle at ${e.left+e.width/2}px ${e.top+e.height/2}px, rgba(255, 215, 0, 0.2) 0%, transparent 50%); + pointer-events: none; + z-index: 10002; + opacity: 0; + `,document.body.appendChild(t),P.to(t,{opacity:1,duration:.1,yoyo:!0,repeat:1,ease:"power2.out",onComplete:()=>t.remove()})}createPurchaseParticles(e,t=5){const r=["#FFD700","#FFA500"];for(let i=0;in.remove()})}}showUpgradeText(){const e=document.getElementById("celebrations");if(!e)return;const t=document.createElement("div");t.style.cssText=` + position: fixed; + top: 40%; + left: 50%; + transform: translate(-50%, -50%); + font-size: 72px; + font-weight: 900; + background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + text-shadow: 0 0 30px rgba(255, 184, 0, 0.8); + z-index: 10001; + pointer-events: none; + letter-spacing: 4px; + text-align: center; + `,t.textContent="UPGRADE!",e.appendChild(t),P.fromTo(t,{scale:.3,rotation:-20,opacity:0},{scale:1.2,rotation:5,opacity:1,duration:.3,ease:"back.out(3)"}),P.to(t,{scale:1,rotation:0,duration:.2,delay:.3,ease:"power2.inOut"}),P.to(t,{y:-50,scale:.8,opacity:0,duration:.8,delay:.8,ease:"power2.in",onComplete:()=>t.remove()})}shakeCard(e){P.killTweensOf(e),P.timeline().to(e,{x:-5,duration:.05,overwrite:!0}).to(e,{x:5,duration:.1,ease:"power2.inOut"}).to(e,{x:-5,duration:.1,ease:"power2.inOut"}).to(e,{x:0,duration:.05,onComplete:()=>{const r=e.style.borderColor;P.to(e,{borderColor:"#EF4444",duration:.2,yoyo:!0,repeat:1,overwrite:!0,onComplete:()=>{e.style.borderColor=r}})}})}showSpecialEffect(e,t,r,i){switch(e){case"double-money":this.showDoubleMoneyEffect(t,r);break;case"premium-grass":this.showPremiumGrassEffect(t,r,i);break;case"weather-event":this.showWeatherEvent(i);break}}showDoubleMoneyEffect(e,t){const r=document.createElement("div");r.style.cssText=` + position: fixed; + top: 0; + left: 0; + width: 100vw; + height: 100vh; + background: radial-gradient(circle at ${e}px ${t}px, rgba(255, 107, 43, 0.25) 0%, rgba(255, 184, 0, 0.15) 30%, transparent 70%); + pointer-events: none; + z-index: 10002; + `,document.body.appendChild(r),P.fromTo(r,{opacity:0},{opacity:1,duration:.2,ease:"power2.out",yoyo:!0,repeat:1,onComplete:()=>r.remove()});const i=document.createElement("div");i.textContent="2X MONEY!",i.style.cssText=` + position: fixed; + left: ${e}px; + top: ${t}px; + font-size: 32px; + font-weight: 900; + color: #FF6B2B; + text-shadow: 0 0 12px rgba(255, 107, 43, 0.6), 0 2px 4px rgba(0, 0, 0, 0.8); + z-index: 10001; + pointer-events: none; + transform: translate(-50%, -50%); + `,document.body.appendChild(i),P.fromTo(i,{scale:.3,rotation:-15,opacity:0},{scale:1.2,rotation:0,opacity:1,duration:.4,ease:"back.out(3)"}),P.to(i,{y:-50,opacity:0,duration:1,delay:.5,ease:"power2.out",onComplete:()=>i.remove()})}showPremiumGrassEffect(e,t,r){const i=["#FF1E68","#FF6B2B","#FFB800"];for(let a=0;a<12;a++){const s=document.createElement("div");s.style.cssText=` + position: fixed; + width: 8px; + height: 8px; + background: ${i[Math.floor(Math.random()*i.length)]}; + border-radius: 50%; + left: ${e}px; + top: ${t}px; + z-index: 10000; + box-shadow: 0 0 15px currentColor; + pointer-events: none; + `,document.body.appendChild(s);const o=a/12*Math.PI*2,l=40+Math.random()*30;P.to(s,{x:Math.cos(o)*l,y:Math.sin(o)*l,scale:0,opacity:0,duration:.8,delay:a*.05,ease:"power2.out",onComplete:()=>s.remove()})}const n=document.createElement("div");n.textContent=`PREMIUM! ${(r?.value??0).toFixed(1)}x`,n.style.cssText=` + position: fixed; + left: ${e}px; + top: ${t}px; + font-size: 20px; + font-weight: 900; + color: #FF1E68; + text-shadow: 0 0 10px rgba(255, 30, 104, 0.6); + z-index: 10001; + pointer-events: none; + transform: translate(-50%, -50%); + `,document.body.appendChild(n),P.fromTo(n,{scale:.5,opacity:0},{scale:1,opacity:1,duration:.3,ease:"back.out(2)"}),P.to(n,{y:-30,opacity:0,duration:1.2,delay:.3,ease:"power2.out",onComplete:()=>n.remove()})}showWeatherEvent(e){const t=document.getElementById("particles");if(!t)return;for(let i=0;i<50;i++){const n=document.createElement("div");n.style.cssText=` + position: fixed; + width: 2px; + height: 20px; + background: linear-gradient(to bottom, rgba(255, 184, 0, 0.5), rgba(255, 160, 0, 0.3)); + left: ${Math.random()*window.innerWidth}px; + top: -30px; + z-index: 9998; + border-radius: 1px; + box-shadow: 0 0 3px rgba(255, 184, 0, 0.2); + `,t.appendChild(n),P.to(n,{y:window.innerHeight+50,duration:2+Math.random()*1,ease:"none",delay:Math.random()*2,onComplete:()=>n.remove()})}const r=document.createElement("div");r.innerHTML=` +
+ 🌟 GOLDEN RAIN! 🌟 +
+
+ 2x Spawn Rate for 10 seconds! +
+ `,r.style.cssText=` + position: fixed; + top: 30%; + left: 50%; + transform: translate(-50%, -50%); + text-align: center; + font-weight: 900; + z-index: 10001; + pointer-events: none; + `,document.body.appendChild(r),P.fromTo(r,{scale:.5,opacity:0},{scale:1,opacity:1,duration:.8,ease:"back.out(2)"}),P.to(r,{opacity:0,duration:1,delay:3,ease:"power2.out",onComplete:()=>r.remove()})}showFloatingText(e,t,r,i){if(!Cr.canAnimate("floatingText",15))return;const n=this.floatingTextPool.acquire();if(!n)return;const a=document.getElementById("floating-texts");if(!a){this.floatingTextPool.release(n);return}n.textContent=`+$${r.toFixed(1)}`;const o={"normal-grass":"#FFB800","yellow-grass":"#FFD700","purple-grass":"#FF1E68","upgrade-purchase":"#FF6B2B"}[i||"normal-grass"]||"#FFB800",l=Math.min(24+Math.log10(r+1)*4,48);n.style.cssText=` + position: fixed; + left: 0; + top: 0; + pointer-events: none; + z-index: 10000; + font-family: 'Rubik', sans-serif; + font-weight: 900; + font-size: ${l}px; + color: ${o}; + text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9); + will-change: transform, opacity; + backface-visibility: hidden; + `,a.appendChild(n);const c=-60-Math.random()*30,d=(Math.random()-.5)*40,p=e+d,g=t+c;if(P.fromTo(n,{x:e,y:t,opacity:1},{x:p,y:g,opacity:0,duration:.8,ease:"power2.out",onComplete:()=>{a.removeChild(n),this.floatingTextPool.release(n)}}),i){const x=this.moneyAnimationManager.getCurrentValue();this.moneyAnimationManager.animateMoney(x+r,i,e,t)}}createCoinShower(e){for(let r=0;r<5;r++){const i=document.createElement("div");i.textContent="💰",i.style.cssText=` + position: fixed; + font-size: 20px; + left: 0; + top: 0; + transform: translate3d(${e.left+e.width/2+(Math.random()-.5)*100}px, ${e.top-20}px, 0); + z-index: 10000; + pointer-events: none; + will-change: transform, opacity; + `,document.body.appendChild(i),P.to(i,{y:150+Math.random()*50,x:(Math.random()-.5)*50,rotation:Math.random()*720,opacity:0,duration:1,delay:Math.random()*.2,ease:"power2.in",onComplete:()=>i.remove()})}}createSuccessRipple(e){const t=document.createElement("div");t.style.cssText=` + position: fixed; + width: 50px; + height: 50px; + border: 3px solid #4ADE80; + border-radius: 50%; + left: 0; + top: 0; + transform: translate3d(${e.left+e.width/2-25}px, ${e.top+e.height/2-25}px, 0); + pointer-events: none; + z-index: 9999; + will-change: transform, opacity; + `,document.body.appendChild(t),P.to(t,{scale:4,opacity:0,duration:.6,ease:"power2.out",onComplete:()=>t.remove()})}triggerScreenShake(e=2){document.body.style.setProperty("--shake-intensity",`${e}px`),document.body.classList.add("screen-shake"),window.setTimeout(()=>{document.body.classList.remove("screen-shake")},300)}createConfetti(e){try{const t=e?{x:(e.left+e.width/2)/window.innerWidth,y:(e.top+e.height/2)/window.innerHeight}:{x:.5,y:.5};typeof mi=="function"?mi({particleCount:100,spread:120,origin:t,colors:["#FFB800","#FF6B2B","#4ADE80","#4169E1","#FF1E68"],ticks:100,gravity:.8,scalar:1.5,drift:0,startVelocity:45,disableForReducedMotion:!1}):console.warn("Confetti function not available")}catch(t){console.error("Error playing confetti:",t)}}setupAutoToggle(){const e=document.querySelector(".auto-toggle-container");if(e){if(e.addEventListener("click",()=>{if(!this.state)return;const r=Kt([Jt])(this.state.world);if(r.length===0)return;const i=r[0];this.state.hasComponent(i,je)?(this.state.removeComponent(i,je),e.classList.remove("active"),this.state.hasComponent(i,Rt)||this.state.addComponent(i,Rt),P.to(e,{scale:.98,duration:.1,yoyo:!0,repeat:1,ease:"power2.inOut"})):(this.state.addComponent(i,je,{enabled:1,targetEntity:0,lastTargetUpdateTime:0,targetUpdateInterval:jr.targetUpdateInterval}),e.classList.add("active"),P.to(e,{scale:1.02,duration:.15,yoyo:!0,repeat:1,ease:"power2.out"}))}),this.state){const r=Kt([Jt])(this.state.world);if(r.length>0){const i=r[0];this.state.hasComponent(i,je)&&e.classList.add("active")}}P.fromTo(e,{y:20,opacity:0},{y:0,opacity:.7,duration:.5,delay:.3,ease:"power2.out"})}}setupKeyboardControls(){const e=t=>{t.code==="Tab"&&(t.preventDefault(),this.toggleAutoMode())};document.addEventListener("keydown",e)}toggleAutoMode(){if(!this.state)return;const t=Kt([Jt])(this.state.world);if(t.length===0)return;const r=t[0],i=document.querySelector(".auto-toggle-container");i&&(this.state.hasComponent(r,je)?(this.state.removeComponent(r,je),i.classList.remove("active"),this.state.hasComponent(r,Rt)||this.state.addComponent(r,Rt),P.to(i,{scale:.98,duration:.1,yoyo:!0,repeat:1,ease:"power2.inOut"})):(this.state.addComponent(r,je,{enabled:1,targetEntity:0,lastTargetUpdateTime:0,targetUpdateInterval:jr.targetUpdateInterval}),i.classList.add("active"),P.to(i,{scale:1.02,duration:.15,yoyo:!0,repeat:1,ease:"power2.out"})))}}function Ha(){return new Ga}let xi=!1;const ja={group:"setup",update:u=>{if(xi)return;xi=!0;const e=Ha();e.setState(u),Pn(u);const t=window;t.gameState=u,t.set=Kr,t.addCurrency=Jr,t.cheat={set:Kr,addCurrency:Jr,help:()=>{console.log("🎮 Cheat Commands:"),console.log("set(0, 10) - Set grass value to level 10"),console.log("set(1, 50) - Set spawn rate to level 50"),console.log("set(2, 10) - Set max grass to level 10"),console.log("set(3, 10) - Set move speed to level 10"),console.log("set(4, 10) - Set cut range to level 10"),console.log("addCurrency(1000) - Add $1000")}},e.update()}},Za={components:Qr.components,systems:[...Qr.systems||[],ja]};Fn(Za).run()});export default Qa(); +//# sourceMappingURL=main-D-7ROV92.js.map