bynana-ui 2.0.0 → 2.1.1

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.
@@ -0,0 +1,23 @@
1
+ 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var react=require('react'),jsxRuntime=require('react/jsx-runtime');function mt(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function Li(u,t){u.prototype=Object.create(t.prototype),u.prototype.constructor=u,u.__proto__=t;}var et={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},qt={duration:.5,overwrite:false,delay:0},Je,W,A,ot=1e8,M=1/ot,Ye=Math.PI*2,Lr=Ye/4,Ir=0,Ii=Math.sqrt,Nr=Math.cos,Br=Math.sin,U=function(t){return typeof t=="string"},L=function(t){return typeof t=="function"},yt=function(t){return typeof t=="number"},Se=function(t){return typeof t>"u"},ct=function(t){return typeof t=="object"},tt=function(t){return t!==false},ti=function(){return typeof window<"u"},me=function(t){return L(t)||U(t)},Ni=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},$=Array.isArray,Xe=/(?:-?\.?\d|\.)+/gi,ei=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,zt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Fe=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ii=/[+-]=-?[.\d]+/,Bi=/[^,'"\[\]\s]+/gi,Vr=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,z,ht,qe,ri,nt={},ve={},Vi,Ui=function(t){return (ve=Gt(t,nt))&&H},Oe=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},oe=function(t,e){return !e&&console.warn(t)},Yi=function(t,e){return t&&(nt[t]=e)&&ve&&(ve[t]=e)||nt},ue=function(){return 0},Ur={suppressEvents:true,isStart:true,kill:false},ge={suppressEvents:true,kill:false},Yr={suppressEvents:true},ni={},wt=[],Ge={},Xi,j={},Le={},Mi=30,ye=[],si="",ai=function(t){var e=t[0],i,r;if(ct(e)||L(e)||(t=[t]),!(i=(e._gsap||{}).harness)){for(r=ye.length;r--&&!ye[r].targetTest(e););i=ye[r];}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new li(t[r],i)))||t.splice(r,1);return t},bt=function(t){return t._gsap||ai(ut(t))[0]._gsap},oi=function(t,e,i){return (i=t[e])&&L(i)?t[e]():Se(i)&&t.getAttribute&&t.getAttribute(e)||i},K=function(t,e){return (t=t.split(",")).forEach(e)||t},I=function(t){return Math.round(t*1e5)/1e5||0},V=function(t){return Math.round(t*1e7)/1e7||0},Ft=function(t,e){var i=e.charAt(0),r=parseFloat(e.substr(2));return t=parseFloat(t),i==="+"?t+r:i==="-"?t-r:i==="*"?t*r:t/r},Xr=function(t,e){for(var i=e.length,r=0;t.indexOf(e[r])<0&&++r<i;);return r<i},Te=function(){var t=wt.length,e=wt.slice(0),i,r;for(Ge={},wt.length=0,i=0;i<t;i++)r=e[i],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],true)._lazy=0);},ui=function(t){return !!(t._initted||t._startAt||t.add)},qi=function(t,e,i,r){wt.length&&!W&&Te(),t.render(e,i,!!(W&&e<0&&ui(t))),wt.length&&!W&&Te();},Gi=function(t){var e=parseFloat(t);return (e||e===0)&&(t+"").match(Bi).length<2?e:U(t)?t.trim():t},Wi=function(t){return t},st=function(t,e){for(var i in e)i in t||(t[i]=e[i]);return t},qr=function(t){return function(e,i){for(var r in i)r in e||r==="duration"&&t||r==="ease"||(e[r]=i[r]);}},Gt=function(t,e){for(var i in e)t[i]=e[i];return t},Di=function u(t,e){for(var i in e)i!=="__proto__"&&i!=="constructor"&&i!=="prototype"&&(t[i]=ct(e[i])?u(t[i]||(t[i]={}),e[i]):e[i]);return t},we=function(t,e){var i={},r;for(r in t)r in e||(i[r]=t[r]);return i},ne=function(t){var e=t.parent||z,i=t.keyframes?qr($(t.keyframes)):st;if(tt(t.inherit))for(;e;)i(t,e.vars.defaults),e=e.parent||e._dp;return t},Gr=function(t,e){for(var i=t.length,r=i===e.length;r&&i--&&t[i]===e[i];);return i<0},Qi=function(t,e,i,r,n){var s=t[r],a;if(n)for(a=e[n];s&&s[n]>a;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=t[i],t[i]=e),e._next?e._next._prev=e:t[r]=e,e._prev=s,e.parent=e._dp=t,e},Ce=function(t,e,i,r){i===void 0&&(i="_first"),r===void 0&&(r="_last");var n=e._prev,s=e._next;n?n._next=s:t[i]===e&&(t[i]=s),s?s._prev=n:t[r]===e&&(t[r]=n),e._next=e._prev=e.parent=null;},Pt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0;},Rt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var i=t;i;)i._dirty=1,i=i.parent;return t},Wr=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},We=function(t,e,i,r){return t._startAt&&(W?t._startAt.revert(ge):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,true,r))},Qr=function u(t){return !t||t._ts&&u(t.parent)},Ri=function(t){return t._repeat?Wt(t._tTime,t=t.duration()+t._rDelay)*t:0},Wt=function(t,e){var i=Math.floor(t=V(t/e));return t&&i===t?i-1:i},be=function(t,e){return (t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},ke=function(t){return t._end=V(t._start+(t._tDur/Math.abs(t._ts||t._rts||M)||0))},Me=function(t,e){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=V(i._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),ke(t),i._dirty||Rt(i,t)),t},$i=function(t,e){var i;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(i=be(t.rawTime(),e),(!e._dur||he(0,e.totalDuration(),i)-e._tTime>M)&&e.render(i,true)),Rt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(i=t;i._dp;)i.rawTime()>=0&&i.totalTime(i._tTime),i=i._dp;t._zTime=-M;}},_t=function(t,e,i,r){return e.parent&&Pt(e),e._start=V((yt(i)?i:i||t!==z?at(t,i,e):t._time)+e._delay),e._end=V(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Qi(t,e,"_first","_last",t._sort?"_start":0),Qe(e)||(t._recent=e),r||$i(t,e),t._ts<0&&Me(t,t._tTime),t},Hi=function(t,e){return (nt.ScrollTrigger||Oe("scrollTrigger",e))&&nt.ScrollTrigger.create(e,t)},Ki=function(t,e,i,r,n){if(ci(t,e,n),!t._initted)return 1;if(!i&&t._pt&&!W&&(t._dur&&t.vars.lazy!==false||!t._dur&&t.vars.lazy)&&Xi!==J.frame)return wt.push(t),t._lazy=[n,r],1},$r=function u(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||u(e))},Qe=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},Hr=function(t,e,i,r){var n=t.ratio,s=e<0||!e&&(!t._start&&$r(t)&&!(!t._initted&&Qe(t))||(t._ts<0||t._dp._ts<0)&&!Qe(t))?0:1,a=t._rDelay,o=0,f,l,_;if(a&&t._repeat&&(o=he(0,t._tDur,e),l=Wt(o,a),t._yoyo&&l&1&&(s=1-s),l!==Wt(t._tTime,a)&&(n=1-s,t.vars.repeatRefresh&&t._initted&&t.invalidate())),s!==n||W||r||t._zTime===M||!e&&t._zTime){if(!t._initted&&Ki(t,e,r,i,o))return;for(_=t._zTime,t._zTime=e||(i?M:0),i||(i=e&&!_),t.ratio=s,t._from&&(s=1-s),t._time=0,t._tTime=o,f=t._pt;f;)f.r(s,f.d),f=f._next;e<0&&We(t,e,i,true),t._onUpdate&&!i&&rt(t,"onUpdate"),o&&t._repeat&&!i&&t.parent&&rt(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===s&&(s&&Pt(t,1),!i&&!W&&(rt(t,s?"onComplete":"onReverseComplete",true),t._prom&&t._prom()));}else t._zTime||(t._zTime=e);},Kr=function(t,e,i){var r;if(i>e)for(r=t._first;r&&r._start<=i;){if(r.data==="isPause"&&r._start>e)return r;r=r._next;}else for(r=t._last;r&&r._start>=i;){if(r.data==="isPause"&&r._start<e)return r;r=r._prev;}},Qt=function(t,e,i,r){var n=t._repeat,s=V(e)||0,a=t._tTime/t._tDur;return a&&!r&&(t._time*=s/t._dur),t._dur=s,t._tDur=n?n<0?1e10:V(s*(n+1)+t._rDelay*n):s,a>0&&!r&&Me(t,t._tTime=t._tDur*a),t.parent&&ke(t),i||Rt(t.parent,t),t},Ei=function(t){return t instanceof G?Rt(t):Qt(t,t._dur)},Zr={_start:0,endTime:ue,totalDuration:ue},at=function u(t,e,i){var r=t.labels,n=t._recent||Zr,s=t.duration()>=ot?n.endTime(false):t._dur,a,o,f;return U(e)&&(isNaN(e)||e in r)?(o=e.charAt(0),f=e.substr(-1)==="%",a=e.indexOf("="),o==="<"||o===">"?(a>=0&&(e=e.replace(/=/,"")),(o==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(e.substr(1))||0)*(f?(a<0?n:i).totalDuration()/100:1)):a<0?(e in r||(r[e]=s),r[e]):(o=parseFloat(e.charAt(a-1)+e.substr(a+1)),f&&i&&(o=o/100*($(i)?i[0]:i).totalDuration()),a>1?u(t,e.substr(0,a-1),i)+o:s+o)):e==null?s:+e},se=function(t,e,i){var r=yt(e[1]),n=(r?2:1)+(t<2?0:1),s=e[n],a,o;if(r&&(s.duration=e[1]),s.parent=i,t){for(a=s,o=i;o&&!("immediateRender"in a);)a=o.vars.defaults||{},o=tt(o.vars.inherit)&&o.parent;s.immediateRender=tt(a.immediateRender),t<2?s.runBackwards=1:s.startAt=e[n-1];}return new N(e[0],s,e[n+1])},St=function(t,e){return t||t===0?e(t):e},he=function(t,e,i){return i<t?t:i>e?e:i},Q=function(t,e){return !U(t)||!(e=Vr.exec(t))?"":e[1]},jr=function(t,e,i){return St(i,function(r){return he(t,e,r)})},$e=[].slice,Zi=function(t,e){return t&&ct(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&ct(t[0]))&&!t.nodeType&&t!==ht},Jr=function(t,e,i){return i===void 0&&(i=[]),t.forEach(function(r){var n;return U(r)&&!e||Zi(r,1)?(n=i).push.apply(n,ut(r)):i.push(r)})||i},ut=function(t,e,i){return A&&!e&&A.selector?A.selector(t):U(t)&&!i&&(qe||!$t())?$e.call((e||ri).querySelectorAll(t),0):$(t)?Jr(t,i):Zi(t)?$e.call(t,0):t?[t]:[]},He=function(t){return t=ut(t)[0]||oe("Invalid scope")||{},function(e){var i=t.current||t.nativeElement||t;return ut(e,i.querySelectorAll?i:i===t?oe("Invalid scope")||ri.createElement("div"):t)}},ji=function(t){return t.sort(function(){return .5-Math.random()})},Ji=function(t){if(L(t))return t;var e=ct(t)?t:{each:t},i=Et(e.ease),r=e.from||0,n=parseFloat(e.base)||0,s={},a=r>0&&r<1,o=isNaN(r)||a,f=e.axis,l=r,_=r;return U(r)?l=_={center:.5,edges:.5,end:1}[r]||0:!a&&o&&(l=r[0],_=r[1]),function(c,d,p){var h=(p||e).length,m=s[h],y,x,v,T,g,w,P,S,b;if(!m){if(b=e.grid==="auto"?0:(e.grid||[1,ot])[1],!b){for(P=-ot;P<(P=p[b++].getBoundingClientRect().left)&&b<h;);b<h&&b--;}for(m=s[h]=[],y=o?Math.min(b,h)*l-.5:r%b,x=b===ot?0:o?h*_/b-.5:r/b|0,P=0,S=ot,w=0;w<h;w++)v=w%b-y,T=x-(w/b|0),m[w]=g=f?Math.abs(f==="y"?T:v):Ii(v*v+T*T),g>P&&(P=g),g<S&&(S=g);r==="random"&&ji(m),m.max=P-S,m.min=S,m.v=h=(parseFloat(e.amount)||parseFloat(e.each)*(b>h?h-1:f?f==="y"?h/b:b:Math.max(b,h/b))||0)*(r==="edges"?-1:1),m.b=h<0?n-h:n,m.u=Q(e.amount||e.each)||0,i=i&&h<0?ur(i):i;}return h=(m[c]-m.min)/m.max||0,V(m.b+(i?i(h):h)*m.v)+m.u}},Ke=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(i){var r=V(Math.round(parseFloat(i)/t)*t*e);return (r-r%1)/e+(yt(i)?0:Q(i))}},tr=function(t,e){var i=$(t),r,n;return !i&&ct(t)&&(r=i=t.radius||ot,t.values?(t=ut(t.values),(n=!yt(t[0]))&&(r*=r)):t=Ke(t.increment)),St(e,i?L(t)?function(s){return n=t(s),Math.abs(n-s)<=r?n:s}:function(s){for(var a=parseFloat(n?s.x:s),o=parseFloat(n?s.y:0),f=ot,l=0,_=t.length,c,d;_--;)n?(c=t[_].x-a,d=t[_].y-o,c=c*c+d*d):c=Math.abs(t[_]-a),c<f&&(f=c,l=_);return l=!r||f<=r?t[l]:s,n||l===s||yt(s)?l:l+Q(s)}:Ke(t))},er=function(t,e,i,r){return St($(t)?!e:i===true?!!(i=0):!r,function(){return $(t)?t[~~(Math.random()*t.length)]:(i=i||1e-5)&&(r=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((t-i/2+Math.random()*(e-t+i*.99))/i)*i*r)/r})},tn=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(r){return e.reduce(function(n,s){return s(n)},r)}},en=function(t,e){return function(i){return t(parseFloat(i))+(e||Q(i))}},rn=function(t,e,i){return rr(t,e,0,1,i)},ir=function(t,e,i){return St(i,function(r){return t[~~e(r)]})},nn=function u(t,e,i){var r=e-t;return $(t)?ir(t,u(0,t.length),e):St(i,function(n){return (r+(n-t)%r)%r+t})},sn=function u(t,e,i){var r=e-t,n=r*2;return $(t)?ir(t,u(0,t.length-1),e):St(i,function(s){return s=(n+(s-t)%n)%n||0,t+(s>r?n-s:s)})},Ht=function(t){for(var e=0,i="",r,n,s,a;~(r=t.indexOf("random(",e));)s=t.indexOf(")",r),a=t.charAt(r+7)==="[",n=t.substr(r+7,s-r-7).match(a?Bi:Xe),i+=t.substr(e,r-e)+er(a?n:+n[0],a?0:+n[1],+n[2]||1e-5),e=s+1;return i+t.substr(e,t.length-e)},rr=function(t,e,i,r,n){var s=e-t,a=r-i;return St(n,function(o){return i+((o-t)/s*a||0)})},an=function u(t,e,i,r){var n=isNaN(t+e)?0:function(d){return (1-d)*t+d*e};if(!n){var s=U(t),a={},o,f,l,_,c;if(i===true&&(r=1)&&(i=null),s)t={p:t},e={p:e};else if($(t)&&!$(e)){for(l=[],_=t.length,c=_-2,f=1;f<_;f++)l.push(u(t[f-1],t[f]));_--,n=function(p){p*=_;var h=Math.min(c,~~p);return l[h](p-h)},i=e;}else r||(t=Gt($(t)?[]:{},t));if(!l){for(o in e)hi.call(a,t,o,"get",e[o]);n=function(p){return mi(p,a)||(s?t.p:t)};}}return St(i,n)},Ai=function(t,e,i){var r=t.labels,n=ot,s,a,o;for(s in r)a=r[s]-e,a<0==!!i&&a&&n>(a=Math.abs(a))&&(o=s,n=a);return o},rt=function(t,e,i){var r=t.vars,n=r[e],s=A,a=t._ctx,o,f,l;if(n)return o=r[e+"Params"],f=r.callbackScope||t,i&&wt.length&&Te(),a&&(A=a),l=o?n.apply(f,o):n.call(f),A=s,l},ie=function(t){return Pt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!W),t.progress()<1&&rt(t,"onInterrupt"),t},Xt,nr=[],sr=function(t){if(t)if(t=!t.name&&t.default||t,ti()||t.headless){var e=t.name,i=L(t),r=e&&!i&&t.init?function(){this._props=[];}:t,n={init:ue,render:mi,add:hi,kill:wn,modifier:Tn,rawVars:0},s={targetTest:0,get:0,getSetter:De,aliases:{},register:0};if($t(),t!==r){if(j[e])return;st(r,st(we(t,n),s)),Gt(r.prototype,Gt(n,we(t,s))),j[r.prop=e]=r,t.targetTest&&(ye.push(r),ni[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin";}Yi(e,r),t.register&&t.register(H,r,Z);}else nr.push(t);},k=255,re={aqua:[0,k,k],lime:[0,k,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,k],navy:[0,0,128],white:[k,k,k],olive:[128,128,0],yellow:[k,k,0],orange:[k,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[k,0,0],pink:[k,192,203],cyan:[0,k,k],transparent:[k,k,k,0]},Ie=function(t,e,i){return t+=t<0?1:t>1?-1:0,(t*6<1?e+(i-e)*t*6:t<.5?i:t*3<2?e+(i-e)*(2/3-t)*6:e)*k+.5|0},ar=function(t,e,i){var r=t?yt(t)?[t>>16,t>>8&k,t&k]:0:re.black,n,s,a,o,f,l,_,c,d,p;if(!r){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),re[t])r=re[t];else if(t.charAt(0)==="#"){if(t.length<6&&(n=t.charAt(1),s=t.charAt(2),a=t.charAt(3),t="#"+n+n+s+s+a+a+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return r=parseInt(t.substr(1,6),16),[r>>16,r>>8&k,r&k,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),r=[t>>16,t>>8&k,t&k];}else if(t.substr(0,3)==="hsl"){if(r=p=t.match(Xe),!e)o=+r[0]%360/360,f=+r[1]/100,l=+r[2]/100,s=l<=.5?l*(f+1):l+f-l*f,n=l*2-s,r.length>3&&(r[3]*=1),r[0]=Ie(o+1/3,n,s),r[1]=Ie(o,n,s),r[2]=Ie(o-1/3,n,s);else if(~t.indexOf("="))return r=t.match(ei),i&&r.length<4&&(r[3]=1),r}else r=t.match(Xe)||re.transparent;r=r.map(Number);}return e&&!p&&(n=r[0]/k,s=r[1]/k,a=r[2]/k,_=Math.max(n,s,a),c=Math.min(n,s,a),l=(_+c)/2,_===c?o=f=0:(d=_-c,f=l>.5?d/(2-_-c):d/(_+c),o=_===n?(s-a)/d+(s<a?6:0):_===s?(a-n)/d+2:(n-s)/d+4,o*=60),r[0]=~~(o+.5),r[1]=~~(f*100+.5),r[2]=~~(l*100+.5)),i&&r.length<4&&(r[3]=1),r},or=function(t){var e=[],i=[],r=-1;return t.split(gt).forEach(function(n){var s=n.match(zt)||[];e.push.apply(e,s),i.push(r+=s.length+1);}),e.c=i,e},zi=function(t,e,i){var r="",n=(t+r).match(gt),s=e?"hsla(":"rgba(",a=0,o,f,l,_;if(!n)return t;if(n=n.map(function(c){return (c=ar(c,e,1))&&s+(e?c[0]+","+c[1]+"%,"+c[2]+"%,"+c[3]:c.join(","))+")"}),i&&(l=or(t),o=i.c,o.join(r)!==l.c.join(r)))for(f=t.replace(gt,"1").split(zt),_=f.length-1;a<_;a++)r+=f[a]+(~o.indexOf(a)?n.shift()||s+"0,0,0,0)":(l.length?l:n.length?n:i).shift());if(!f)for(f=t.split(gt),_=f.length-1;a<_;a++)r+=f[a]+n[a];return r+f[_]},gt=(function(){var u="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in re)u+="|"+t+"\\b";return new RegExp(u+")","gi")})(),on=/hsl[a]?\(/,fi=function(t){var e=t.join(" "),i;if(gt.lastIndex=0,gt.test(e))return i=on.test(e),t[1]=zi(t[1],i),t[0]=zi(t[0],i,or(t[1])),true},fe,J=(function(){var u=Date.now,t=500,e=33,i=u(),r=i,n=1e3/240,s=n,a=[],o,f,l,_,c,d,p=function h(m){var y=u()-r,x=m===true,v,T,g,w;if((y>t||y<0)&&(i+=y-e),r+=y,g=r-i,v=g-s,(v>0||x)&&(w=++_.frame,c=g-_.time*1e3,_.time=g=g/1e3,s+=v+(v>=n?4:n-v),T=1),x||(o=f(h)),T)for(d=0;d<a.length;d++)a[d](g,c,w,m);};return _={time:0,frame:0,tick:function(){p(true);},deltaRatio:function(m){return c/(1e3/(m||60))},wake:function(){Vi&&(!qe&&ti()&&(ht=qe=window,ri=ht.document||{},nt.gsap=H,(ht.gsapVersions||(ht.gsapVersions=[])).push(H.version),Ui(ve||ht.GreenSockGlobals||!ht.gsap&&ht||{}),nr.forEach(sr)),l=typeof requestAnimationFrame<"u"&&requestAnimationFrame,o&&_.sleep(),f=l||function(m){return setTimeout(m,s-_.time*1e3+1|0)},fe=1,p(2));},sleep:function(){(l?cancelAnimationFrame:clearTimeout)(o),fe=0,f=ue;},lagSmoothing:function(m,y){t=m||1/0,e=Math.min(y||33,t);},fps:function(m){n=1e3/(m||240),s=_.time*1e3+n;},add:function(m,y,x){var v=y?function(T,g,w,P){m(T,g,w,P),_.remove(v);}:m;return _.remove(m),a[x?"unshift":"push"](v),$t(),v},remove:function(m,y){~(y=a.indexOf(m))&&a.splice(y,1)&&d>=y&&d--;},_listeners:a},_})(),$t=function(){return !fe&&J.wake()},O={},un=/^[\d.\-M][\d.\-,\s]/,fn=/["']/g,ln=function(t){for(var e={},i=t.substr(1,t.length-3).split(":"),r=i[0],n=1,s=i.length,a,o,f;n<s;n++)o=i[n],a=n!==s-1?o.lastIndexOf(","):o.length,f=o.substr(0,a),e[r]=isNaN(f)?f.replace(fn,"").trim():+f,r=o.substr(a+1).trim();return e},hn=function(t){var e=t.indexOf("(")+1,i=t.indexOf(")"),r=t.indexOf("(",e);return t.substring(e,~r&&r<i?t.indexOf(")",i+1):i)},_n=function(t){var e=(t+"").split("("),i=O[e[0]];return i&&e.length>1&&i.config?i.config.apply(null,~t.indexOf("{")?[ln(e[1])]:hn(t).split(",").map(Gi)):O._CE&&un.test(t)?O._CE("",t):i},ur=function(t){return function(e){return 1-t(1-e)}},fr=function u(t,e){for(var i=t._first,r;i;)i instanceof G?u(i,e):i.vars.yoyoEase&&(!i._yoyo||!i._repeat)&&i._yoyo!==e&&(i.timeline?u(i.timeline,e):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=e)),i=i._next;},Et=function(t,e){return t&&(L(t)?t:O[t]||_n(t))||e},Lt=function(t,e,i,r){i===void 0&&(i=function(o){return 1-e(1-o)}),r===void 0&&(r=function(o){return o<.5?e(o*2)/2:1-e((1-o)*2)/2});var n={easeIn:e,easeOut:i,easeInOut:r},s;return K(t,function(a){O[a]=nt[a]=n,O[s=a.toLowerCase()]=i;for(var o in n)O[s+(o==="easeIn"?".in":o==="easeOut"?".out":".inOut")]=O[a+"."+o]=n[o];}),n},lr=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},Ne=function u(t,e,i){var r=e>=1?e:1,n=(i||(t?.3:.45))/(e<1?e:1),s=n/Ye*(Math.asin(1/r)||0),a=function(l){return l===1?1:r*Math.pow(2,-10*l)*Br((l-s)*n)+1},o=t==="out"?a:t==="in"?function(f){return 1-a(1-f)}:lr(a);return n=Ye/n,o.config=function(f,l){return u(t,f,l)},o},Be=function u(t,e){e===void 0&&(e=1.70158);var i=function(s){return s?--s*s*((e+1)*s+e)+1:0},r=t==="out"?i:t==="in"?function(n){return 1-i(1-n)}:lr(i);return r.config=function(n){return u(t,n)},r};K("Linear,Quad,Cubic,Quart,Quint,Strong",function(u,t){var e=t<5?t+1:t;Lt(u+",Power"+(e-1),t?function(i){return Math.pow(i,e)}:function(i){return i},function(i){return 1-Math.pow(1-i,e)},function(i){return i<.5?Math.pow(i*2,e)/2:1-Math.pow((1-i)*2,e)/2});});O.Linear.easeNone=O.none=O.Linear.easeIn;Lt("Elastic",Ne("in"),Ne("out"),Ne());(function(u,t){var e=1/t,i=2*e,r=2.5*e,n=function(a){return a<e?u*a*a:a<i?u*Math.pow(a-1.5/t,2)+.75:a<r?u*(a-=2.25/t)*a+.9375:u*Math.pow(a-2.625/t,2)+.984375};Lt("Bounce",function(s){return 1-n(1-s)},n);})(7.5625,2.75);Lt("Expo",function(u){return Math.pow(2,10*(u-1))*u+u*u*u*u*u*u*(1-u)});Lt("Circ",function(u){return -(Ii(1-u*u)-1)});Lt("Sine",function(u){return u===1?1:-Nr(u*Lr)+1});Lt("Back",Be("in"),Be("out"),Be());O.SteppedEase=O.steps=nt.SteppedEase={config:function(t,e){t===void 0&&(t=1);var i=1/t,r=t+(e?0:1),n=e?1:0,s=1-M;return function(a){return ((r*he(0,s,a)|0)+n)*i}}};qt.ease=O["quad.out"];K("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(u){return si+=u+","+u+"Params,"});var li=function(t,e){this.id=Ir++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:oi,this.set=e?e.getSetter:De;},le=(function(){function u(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,Qt(this,+e.duration,1,1),this.data=e.data,A&&(this._ctx=A,A.data.push(this)),fe||J.wake();}var t=u.prototype;return t.delay=function(i){return i||i===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+i-this._delay),this._delay=i,this):this._delay},t.duration=function(i){return arguments.length?this.totalDuration(this._repeat>0?i+(i+this._rDelay)*this._repeat:i):this.totalDuration()&&this._dur},t.totalDuration=function(i){return arguments.length?(this._dirty=0,Qt(this,this._repeat<0?i:(i-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(i,r){if($t(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Me(this,i),!n._dp||n.parent||$i(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,true),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&i<this._tDur||this._ts<0&&i>0||!this._tDur&&!i)&&_t(this._dp,this,this._start-this._delay);}return (this._tTime!==i||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===M||!i&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=i),qi(this,i,r)),this},t.time=function(i,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),i+Ri(this))%(this._dur+this._rDelay)||(i?this._dur:0),r):this._time},t.totalProgress=function(i,r){return arguments.length?this.totalTime(this.totalDuration()*i,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(i,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-i:i)+Ri(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(i,r){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(i-1)*n,r):this._repeat?Wt(this._tTime,n)+1:1},t.timeScale=function(i,r){if(!arguments.length)return this._rts===-M?0:this._rts;if(this._rts===i)return this;var n=this.parent&&this._ts?be(this.parent._time,this):this._tTime;return this._rts=+i||0,this._ts=this._ps||i===-M?0:this._rts,this.totalTime(he(-Math.abs(this._delay),this.totalDuration(),n),r!==false),ke(this),Wr(this)},t.paused=function(i){return arguments.length?(this._ps!==i&&(this._ps=i,i?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):($t(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==M&&(this._tTime-=M)))),this):this._ps},t.startTime=function(i){if(arguments.length){this._start=i;var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&_t(r,this,i-this._delay),this}return this._start},t.endTime=function(i){return this._start+(tt(i)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(i){var r=this.parent||this._dp;return r?i&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?be(r.rawTime(i),this):this._tTime:this._tTime},t.revert=function(i){i===void 0&&(i=Yr);var r=W;return W=i,ui(this)&&(this.timeline&&this.timeline.revert(i),this.totalTime(-0.01,i.suppressEvents)),this.data!=="nested"&&i.kill!==false&&this.kill(),W=r,this},t.globalTime=function(i){for(var r=this,n=arguments.length?i:r.rawTime();r;)n=r._start+n/(Math.abs(r._ts)||1),r=r._dp;return !this.parent&&this._sat?this._sat.globalTime(i):n},t.repeat=function(i){return arguments.length?(this._repeat=i===1/0?-2:i,Ei(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(i){if(arguments.length){var r=this._time;return this._rDelay=i,Ei(this),r?this.time(r):this}return this._rDelay},t.yoyo=function(i){return arguments.length?(this._yoyo=i,this):this._yoyo},t.seek=function(i,r){return this.totalTime(at(this,i),tt(r))},t.restart=function(i,r){return this.play().totalTime(i?-this._delay:0,tt(r)),this._dur||(this._zTime=-M),this},t.play=function(i,r){return i!=null&&this.seek(i,r),this.reversed(false).paused(false)},t.reverse=function(i,r){return i!=null&&this.seek(i||this.totalDuration(),r),this.reversed(true).paused(false)},t.pause=function(i,r){return i!=null&&this.seek(i,r),this.paused(true)},t.resume=function(){return this.paused(false)},t.reversed=function(i){return arguments.length?(!!i!==this.reversed()&&this.timeScale(-this._rts||(i?-M:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-M,this},t.isActive=function(){var i=this.parent||this._dp,r=this._start,n;return !!(!i||this._ts&&this._initted&&i.isActive()&&(n=i.rawTime(true))>=r&&n<this.endTime(true)-M)},t.eventCallback=function(i,r,n){var s=this.vars;return arguments.length>1?(r?(s[i]=r,n&&(s[i+"Params"]=n),i==="onUpdate"&&(this._onUpdate=r)):delete s[i],this):s[i]},t.then=function(i){var r=this;return new Promise(function(n){var s=L(i)?i:Wi,a=function(){var f=r.then;r.then=null,L(s)&&(s=s(r))&&(s.then||s===r)&&(r.then=f),n(s),r.then=f;};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?a():r._prom=a;})},t.kill=function(){ie(this);},u})();st(le.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:false,parent:null,_initted:false,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-M,_prom:0,_ps:false,_rts:1});var G=(function(u){Li(t,u);function t(i,r){var n;return i===void 0&&(i={}),n=u.call(this,i)||this,n.labels={},n.smoothChildTiming=!!i.smoothChildTiming,n.autoRemoveChildren=!!i.autoRemoveChildren,n._sort=tt(i.sortChildren),z&&_t(i.parent||z,mt(n),r),i.reversed&&n.reverse(),i.paused&&n.paused(true),i.scrollTrigger&&Hi(mt(n),i.scrollTrigger),n}var e=t.prototype;return e.to=function(r,n,s){return se(0,arguments,this),this},e.from=function(r,n,s){return se(1,arguments,this),this},e.fromTo=function(r,n,s,a){return se(2,arguments,this),this},e.set=function(r,n,s){return n.duration=0,n.parent=this,ne(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new N(r,n,at(this,s),1),this},e.call=function(r,n,s){return _t(this,N.delayedCall(0,r,n),s)},e.staggerTo=function(r,n,s,a,o,f,l){return s.duration=n,s.stagger=s.stagger||a,s.onComplete=f,s.onCompleteParams=l,s.parent=this,new N(r,s,at(this,o)),this},e.staggerFrom=function(r,n,s,a,o,f,l){return s.runBackwards=1,ne(s).immediateRender=tt(s.immediateRender),this.staggerTo(r,n,s,a,o,f,l)},e.staggerFromTo=function(r,n,s,a,o,f,l,_){return a.startAt=s,ne(a).immediateRender=tt(a.immediateRender),this.staggerTo(r,n,a,o,f,l,_)},e.render=function(r,n,s){var a=this._time,o=this._dirty?this.totalDuration():this._tDur,f=this._dur,l=r<=0?0:V(r),_=this._zTime<0!=r<0&&(this._initted||!f),c,d,p,h,m,y,x,v,T,g,w,P;if(this!==z&&l>o&&r>=0&&(l=o),l!==this._tTime||s||_){if(a!==this._time&&f&&(l+=this._time-a,r+=this._time-a),c=l,T=this._start,v=this._ts,y=!v,_&&(f||(a=this._zTime),(r||!n)&&(this._zTime=r)),this._repeat){if(w=this._yoyo,m=f+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(m*100+r,n,s);if(c=V(l%m),l===o?(h=this._repeat,c=f):(g=V(l/m),h=~~g,h&&h===g&&(c=f,h--),c>f&&(c=f)),g=Wt(this._tTime,m),!a&&this._tTime&&g!==h&&this._tTime-g*m-this._dur<=0&&(g=h),w&&h&1&&(c=f-c,P=1),h!==g&&!this._lock){var S=w&&g&1,b=S===(w&&h&1);if(h<g&&(S=!S),a=S?0:l%f?f:l,this._lock=1,this.render(a||(P?0:V(h*m)),n,!f)._lock=0,this._tTime=l,!n&&this.parent&&rt(this,"onRepeat"),this.vars.repeatRefresh&&!P&&(this.invalidate()._lock=1),a&&a!==this._time||y!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(f=this._dur,o=this._tDur,b&&(this._lock=2,a=S?f:-1e-4,this.render(a,true),this.vars.repeatRefresh&&!P&&this.invalidate()),this._lock=0,!this._ts&&!y)return this;fr(this,P);}}if(this._hasPause&&!this._forcing&&this._lock<2&&(x=Kr(this,V(a),V(c)),x&&(l-=c-(c=x._start))),this._tTime=l,this._time=c,this._act=!v,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=r,a=0),!a&&l&&!n&&!g&&(rt(this,"onStart"),this._tTime!==l))return this;if(c>=a&&r>=0)for(d=this._first;d;){if(p=d._next,(d._act||c>=d._start)&&d._ts&&x!==d){if(d.parent!==this)return this.render(r,n,s);if(d.render(d._ts>0?(c-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(c-d._start)*d._ts,n,s),c!==this._time||!this._ts&&!y){x=0,p&&(l+=this._zTime=-M);break}}d=p;}else {d=this._last;for(var C=r<0?r:c;d;){if(p=d._prev,(d._act||C<=d._end)&&d._ts&&x!==d){if(d.parent!==this)return this.render(r,n,s);if(d.render(d._ts>0?(C-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(C-d._start)*d._ts,n,s||W&&ui(d)),c!==this._time||!this._ts&&!y){x=0,p&&(l+=this._zTime=C?-M:M);break}}d=p;}}if(x&&!n&&(this.pause(),x.render(c>=a?0:-M)._zTime=c>=a?1:-1,this._ts))return this._start=T,ke(this),this.render(r,n,s);this._onUpdate&&!n&&rt(this,"onUpdate",true),(l===o&&this._tTime>=this.totalDuration()||!l&&a)&&(T===this._start||Math.abs(v)!==Math.abs(this._ts))&&(this._lock||((r||!f)&&(l===o&&this._ts>0||!l&&this._ts<0)&&Pt(this,1),!n&&!(r<0&&!a)&&(l||a||!o)&&(rt(this,l===o&&r>=0?"onComplete":"onReverseComplete",true),this._prom&&!(l<o&&this.timeScale()>0)&&this._prom())));}return this},e.add=function(r,n){var s=this;if(yt(n)||(n=at(this,n,r)),!(r instanceof le)){if($(r))return r.forEach(function(a){return s.add(a,n)}),this;if(U(r))return this.addLabel(r,n);if(L(r))r=N.delayedCall(0,r);else return this}return this!==r?_t(this,r,n):this},e.getChildren=function(r,n,s,a){r===void 0&&(r=true),n===void 0&&(n=true),s===void 0&&(s=true),a===void 0&&(a=-ot);for(var o=[],f=this._first;f;)f._start>=a&&(f instanceof N?n&&o.push(f):(s&&o.push(f),r&&o.push.apply(o,f.getChildren(true,n,s)))),f=f._next;return o},e.getById=function(r){for(var n=this.getChildren(1,1,1),s=n.length;s--;)if(n[s].vars.id===r)return n[s]},e.remove=function(r){return U(r)?this.removeLabel(r):L(r)?this.killTweensOf(r):(r.parent===this&&Ce(this,r),r===this._recent&&(this._recent=this._last),Rt(this))},e.totalTime=function(r,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=V(J.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),u.prototype.totalTime.call(this,r,n),this._forcing=0,this):this._tTime},e.addLabel=function(r,n){return this.labels[r]=at(this,n),this},e.removeLabel=function(r){return delete this.labels[r],this},e.addPause=function(r,n,s){var a=N.delayedCall(0,n||ue,s);return a.data="isPause",this._hasPause=1,_t(this,a,at(this,r))},e.removePause=function(r){var n=this._first;for(r=at(this,r);n;)n._start===r&&n.data==="isPause"&&Pt(n),n=n._next;},e.killTweensOf=function(r,n,s){for(var a=this.getTweensOf(r,s),o=a.length;o--;)Tt!==a[o]&&a[o].kill(r,n);return this},e.getTweensOf=function(r,n){for(var s=[],a=ut(r),o=this._first,f=yt(n),l;o;)o instanceof N?Xr(o._targets,a)&&(f?(!Tt||o._initted&&o._ts)&&o.globalTime(0)<=n&&o.globalTime(o.totalDuration())>n:!n||o.isActive())&&s.push(o):(l=o.getTweensOf(a,n)).length&&s.push.apply(s,l),o=o._next;return s},e.tweenTo=function(r,n){n=n||{};var s=this,a=at(s,r),o=n,f=o.startAt,l=o.onStart,_=o.onStartParams,c=o.immediateRender,d,p=N.to(s,st({ease:n.ease||"none",lazy:false,immediateRender:false,time:a,overwrite:"auto",duration:n.duration||Math.abs((a-(f&&"time"in f?f.time:s._time))/s.timeScale())||M,onStart:function(){if(s.pause(),!d){var m=n.duration||Math.abs((a-(f&&"time"in f?f.time:s._time))/s.timeScale());p._dur!==m&&Qt(p,m,0,1).render(p._time,true,true),d=1;}l&&l.apply(p,_||[]);}},n));return c?p.render(0):p},e.tweenFromTo=function(r,n,s){return this.tweenTo(n,st({startAt:{time:at(this,r)}},s))},e.recent=function(){return this._recent},e.nextLabel=function(r){return r===void 0&&(r=this._time),Ai(this,at(this,r))},e.previousLabel=function(r){return r===void 0&&(r=this._time),Ai(this,at(this,r),1)},e.currentLabel=function(r){return arguments.length?this.seek(r,true):this.previousLabel(this._time+M)},e.shiftChildren=function(r,n,s){s===void 0&&(s=0);for(var a=this._first,o=this.labels,f;a;)a._start>=s&&(a._start+=r,a._end+=r),a=a._next;if(n)for(f in o)o[f]>=s&&(o[f]+=r);return Rt(this)},e.invalidate=function(r){var n=this._first;for(this._lock=0;n;)n.invalidate(r),n=n._next;return u.prototype.invalidate.call(this,r)},e.clear=function(r){r===void 0&&(r=true);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),r&&(this.labels={}),Rt(this)},e.totalDuration=function(r){var n=0,s=this,a=s._last,o=ot,f,l,_;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-r:r));if(s._dirty){for(_=s.parent;a;)f=a._prev,a._dirty&&a.totalDuration(),l=a._start,l>o&&s._sort&&a._ts&&!s._lock?(s._lock=1,_t(s,a,l-a._delay,1)._lock=0):o=l,l<0&&a._ts&&(n-=l,(!_&&!s._dp||_&&_.smoothChildTiming)&&(s._start+=l/s._ts,s._time-=l,s._tTime-=l),s.shiftChildren(-l,false,-1/0),o=0),a._end>n&&a._ts&&(n=a._end),a=f;Qt(s,s===z&&s._time>n?s._time:n,1,1),s._dirty=0;}return s._tDur},t.updateRoot=function(r){if(z._ts&&(qi(z,be(r,z)),Xi=J.frame),J.frame>=Mi){Mi+=et.autoSleep||120;var n=z._first;if((!n||!n._ts)&&et.autoSleep&&J._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||J.sleep();}}},t})(le);st(G.prototype,{_lock:0,_hasPause:0,_forcing:0});var cn=function(t,e,i,r,n,s,a){var o=new Z(this._pt,t,e,0,1,pi,null,n),f=0,l=0,_,c,d,p,h,m,y,x;for(o.b=i,o.e=r,i+="",r+="",(y=~r.indexOf("random("))&&(r=Ht(r)),s&&(x=[i,r],s(x,t,e),i=x[0],r=x[1]),c=i.match(Fe)||[];_=Fe.exec(r);)p=_[0],h=r.substring(f,_.index),d?d=(d+1)%5:h.substr(-5)==="rgba("&&(d=1),p!==c[l++]&&(m=parseFloat(c[l-1])||0,o._pt={_next:o._pt,p:h||l===1?h:",",s:m,c:p.charAt(1)==="="?Ft(m,p)-m:parseFloat(p)-m,m:d&&d<4?Math.round:0},f=Fe.lastIndex);return o.c=f<r.length?r.substring(f,r.length):"",o.fp=a,(ii.test(r)||y)&&(o.e=0),this._pt=o,o},hi=function(t,e,i,r,n,s,a,o,f,l){L(r)&&(r=r(n||0,t,s));var _=t[e],c=i!=="get"?i:L(_)?f?t[e.indexOf("set")||!L(t["get"+e.substr(3)])?e:"get"+e.substr(3)](f):t[e]():_,d=L(_)?f?yn:cr:di,p;if(U(r)&&(~r.indexOf("random(")&&(r=Ht(r)),r.charAt(1)==="="&&(p=Ft(c,r)+(Q(c)||0),(p||p===0)&&(r=p))),!l||c!==r||Ze)return !isNaN(c*r)&&r!==""?(p=new Z(this._pt,t,e,+c||0,r-(c||0),typeof _=="boolean"?vn:dr,0,d),f&&(p.fp=f),a&&p.modifier(a,this,t),this._pt=p):(!_&&!(e in t)&&Oe(e,r),cn.call(this,t,e,c,r,d,o||et.stringFilter,f))},dn=function(t,e,i,r,n){if(L(t)&&(t=ae(t,n,e,i,r)),!ct(t)||t.style&&t.nodeType||$(t)||Ni(t))return U(t)?ae(t,n,e,i,r):t;var s={},a;for(a in t)s[a]=ae(t[a],n,e,i,r);return s},_i=function(t,e,i,r,n,s){var a,o,f,l;if(j[t]&&(a=new j[t]).init(n,a.rawVars?e[t]:dn(e[t],r,n,s,i),i,r,s)!==false&&(i._pt=o=new Z(i._pt,n,t,0,1,a.render,a,0,a.priority),i!==Xt))for(f=i._ptLookup[i._targets.indexOf(n)],l=a._props.length;l--;)f[a._props[l]]=o;return a},Tt,Ze,ci=function u(t,e,i){var r=t.vars,n=r.ease,s=r.startAt,a=r.immediateRender,o=r.lazy,f=r.onUpdate,l=r.runBackwards,_=r.yoyoEase,c=r.keyframes,d=r.autoRevert,p=t._dur,h=t._startAt,m=t._targets,y=t.parent,x=y&&y.data==="nested"?y.vars.targets:m,v=t._overwrite==="auto"&&!Je,T=t.timeline,g,w,P,S,b,C,E,D,R,q,Y,B,X;if(T&&(!c||!n)&&(n="none"),t._ease=Et(n,qt.ease),t._yEase=_?ur(Et(_===true?n:_,qt.ease)):0,_&&t._yoyo&&!t._repeat&&(_=t._yEase,t._yEase=t._ease,t._ease=_),t._from=!T&&!!r.runBackwards,!T||c&&!r.stagger){if(D=m[0]?bt(m[0]).harness:0,B=D&&r[D.prop],g=we(r,ni),h&&(h._zTime<0&&h.progress(1),e<0&&l&&a&&!d?h.render(-1,true):h.revert(l&&p?ge:Ur),h._lazy=0),s){if(Pt(t._startAt=N.set(m,st({data:"isStart",overwrite:false,parent:y,immediateRender:true,lazy:!h&&tt(o),startAt:null,delay:0,onUpdate:f&&function(){return rt(t,"onUpdate")},stagger:0},s))),t._startAt._dp=0,t._startAt._sat=t,e<0&&(W||!a&&!d)&&t._startAt.revert(ge),a&&p&&e<=0&&i<=0){e&&(t._zTime=e);return}}else if(l&&p&&!h){if(e&&(a=false),P=st({overwrite:false,data:"isFromStart",lazy:a&&!h&&tt(o),immediateRender:a,stagger:0,parent:y},g),B&&(P[D.prop]=B),Pt(t._startAt=N.set(m,P)),t._startAt._dp=0,t._startAt._sat=t,e<0&&(W?t._startAt.revert(ge):t._startAt.render(-1,true)),t._zTime=e,!a)u(t._startAt,M,M);else if(!e)return}for(t._pt=t._ptCache=0,o=p&&tt(o)||o&&!p,w=0;w<m.length;w++){if(b=m[w],E=b._gsap||ai(m)[w]._gsap,t._ptLookup[w]=q={},Ge[E.id]&&wt.length&&Te(),Y=x===m?w:x.indexOf(b),D&&(R=new D).init(b,B||g,t,Y,x)!==false&&(t._pt=S=new Z(t._pt,b,R.name,0,1,R.render,R,0,R.priority),R._props.forEach(function(lt){q[lt]=S;}),R.priority&&(C=1)),!D||B)for(P in g)j[P]&&(R=_i(P,g,t,Y,b,x))?R.priority&&(C=1):q[P]=S=hi.call(t,b,P,"get",g[P],Y,x,0,r.stringFilter);t._op&&t._op[w]&&t.kill(b,t._op[w]),v&&t._pt&&(Tt=t,z.killTweensOf(b,q,t.globalTime(e)),X=!t.parent,Tt=0),t._pt&&o&&(Ge[E.id]=1);}C&&gi(t),t._onInit&&t._onInit(t);}t._onUpdate=f,t._initted=(!t._op||t._pt)&&!X,c&&e<=0&&T.render(ot,true,true);},pn=function(t,e,i,r,n,s,a,o){var f=(t._pt&&t._ptCache||(t._ptCache={}))[e],l,_,c,d;if(!f)for(f=t._ptCache[e]=[],c=t._ptLookup,d=t._targets.length;d--;){if(l=c[d][e],l&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==e&&l.fp!==e;)l=l._next;if(!l)return Ze=1,t.vars[e]="+=0",ci(t,a),Ze=0,o?oe(e+" not eligible for reset"):1;f.push(l);}for(d=f.length;d--;)_=f[d],l=_._pt||_,l.s=(r||r===0)&&!n?r:l.s+(r||0)+s*l.c,l.c=i-l.s,_.e&&(_.e=I(i)+Q(_.e)),_.b&&(_.b=l.s+Q(_.b));},mn=function(t,e){var i=t[0]?bt(t[0]).harness:0,r=i&&i.aliases,n,s,a,o;if(!r)return e;n=Gt({},e);for(s in r)if(s in n)for(o=r[s].split(","),a=o.length;a--;)n[o[a]]=n[s];return n},gn=function(t,e,i,r){var n=e.ease||r||"power1.inOut",s,a;if($(e))a=i[t]||(i[t]=[]),e.forEach(function(o,f){return a.push({t:f/(e.length-1)*100,v:o,e:n})});else for(s in e)a=i[s]||(i[s]=[]),s==="ease"||a.push({t:parseFloat(t),v:e[s],e:n});},ae=function(t,e,i,r,n){return L(t)?t.call(e,i,r,n):U(t)&&~t.indexOf("random(")?Ht(t):t},hr=si+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",_r={};K(hr+",id,stagger,delay,duration,paused,scrollTrigger",function(u){return _r[u]=1});var N=(function(u){Li(t,u);function t(i,r,n,s){var a;typeof r=="number"&&(n.duration=r,r=n,n=null),a=u.call(this,s?r:ne(r))||this;var o=a.vars,f=o.duration,l=o.delay,_=o.immediateRender,c=o.stagger,d=o.overwrite,p=o.keyframes,h=o.defaults,m=o.scrollTrigger,y=o.yoyoEase,x=r.parent||z,v=($(i)||Ni(i)?yt(i[0]):"length"in r)?[i]:ut(i),T,g,w,P,S,b,C,E;if(a._targets=v.length?ai(v):oe("GSAP target "+i+" not found. https://gsap.com",!et.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=d,p||c||me(f)||me(l)){if(r=a.vars,T=a.timeline=new G({data:"nested",defaults:h||{},targets:x&&x.data==="nested"?x.vars.targets:v}),T.kill(),T.parent=T._dp=mt(a),T._start=0,c||me(f)||me(l)){if(P=v.length,C=c&&Ji(c),ct(c))for(S in c)~hr.indexOf(S)&&(E||(E={}),E[S]=c[S]);for(g=0;g<P;g++)w=we(r,_r),w.stagger=0,y&&(w.yoyoEase=y),E&&Gt(w,E),b=v[g],w.duration=+ae(f,mt(a),g,b,v),w.delay=(+ae(l,mt(a),g,b,v)||0)-a._delay,!c&&P===1&&w.delay&&(a._delay=l=w.delay,a._start+=l,w.delay=0),T.to(b,w,C?C(g,b,v):0),T._ease=O.none;T.duration()?f=l=0:a.timeline=0;}else if(p){ne(st(T.vars.defaults,{ease:"none"})),T._ease=Et(p.ease||r.ease||"none");var D=0,R,q,Y;if($(p))p.forEach(function(B){return T.to(v,B,">")}),T.duration();else {w={};for(S in p)S==="ease"||S==="easeEach"||gn(S,p[S],w,p.easeEach);for(S in w)for(R=w[S].sort(function(B,X){return B.t-X.t}),D=0,g=0;g<R.length;g++)q=R[g],Y={ease:q.e,duration:(q.t-(g?R[g-1].t:0))/100*f},Y[S]=q.v,T.to(v,Y,D),D+=Y.duration;T.duration()<f&&T.to({},{duration:f-T.duration()});}}f||a.duration(f=T.duration());}else a.timeline=0;return d===true&&!Je&&(Tt=mt(a),z.killTweensOf(v),Tt=0),_t(x,mt(a),n),r.reversed&&a.reverse(),r.paused&&a.paused(true),(_||!f&&!p&&a._start===V(x._time)&&tt(_)&&Qr(mt(a))&&x.data!=="nested")&&(a._tTime=-M,a.render(Math.max(0,-l)||0)),m&&Hi(mt(a),m),a}var e=t.prototype;return e.render=function(r,n,s){var a=this._time,o=this._tDur,f=this._dur,l=r<0,_=r>o-M&&!l?o:r<M?0:r,c,d,p,h,m,y,x,v,T;if(!f)Hr(this,r,n,s);else if(_!==this._tTime||!r||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==l||this._lazy){if(c=_,v=this.timeline,this._repeat){if(h=f+this._rDelay,this._repeat<-1&&l)return this.totalTime(h*100+r,n,s);if(c=V(_%h),_===o?(p=this._repeat,c=f):(m=V(_/h),p=~~m,p&&p===m?(c=f,p--):c>f&&(c=f)),y=this._yoyo&&p&1,y&&(T=this._yEase,c=f-c),m=Wt(this._tTime,h),c===a&&!s&&this._initted&&p===m)return this._tTime=_,this;p!==m&&(v&&this._yEase&&fr(v,y),this.vars.repeatRefresh&&!y&&!this._lock&&c!==h&&this._initted&&(this._lock=s=1,this.render(V(h*p),true).invalidate()._lock=0));}if(!this._initted){if(Ki(this,l?r:c,s,n,_))return this._tTime=0,this;if(a!==this._time&&!(s&&this.vars.repeatRefresh&&p!==m))return this;if(f!==this._dur)return this.render(r,n,s)}if(this._tTime=_,this._time=c,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=x=(T||this._ease)(c/f),this._from&&(this.ratio=x=1-x),!a&&_&&!n&&!m&&(rt(this,"onStart"),this._tTime!==_))return this;for(d=this._pt;d;)d.r(x,d.d),d=d._next;v&&v.render(r<0?r:v._dur*v._ease(c/this._dur),n,s)||this._startAt&&(this._zTime=r),this._onUpdate&&!n&&(l&&We(this,r,n,s),rt(this,"onUpdate")),this._repeat&&p!==m&&this.vars.onRepeat&&!n&&this.parent&&rt(this,"onRepeat"),(_===this._tDur||!_)&&this._tTime===_&&(l&&!this._onUpdate&&We(this,r,true,true),(r||!f)&&(_===this._tDur&&this._ts>0||!_&&this._ts<0)&&Pt(this,1),!n&&!(l&&!a)&&(_||a||y)&&(rt(this,_===o?"onComplete":"onReverseComplete",true),this._prom&&!(_<o&&this.timeScale()>0)&&this._prom()));}return this},e.targets=function(){return this._targets},e.invalidate=function(r){return (!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),u.prototype.invalidate.call(this,r)},e.resetTo=function(r,n,s,a,o){fe||J.wake(),this._ts||this.play();var f=Math.min(this._dur,(this._dp._time-this._start)*this._ts),l;return this._initted||ci(this,f),l=this._ease(f/this._dur),pn(this,r,n,s,a,l,f,o)?this.resetTo(r,n,s,a,1):(Me(this,0),this.parent||Qi(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(r,n){if(n===void 0&&(n="all"),!r&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?ie(this):this.scrollTrigger&&this.scrollTrigger.kill(!!W),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(r,n,Tt&&Tt.vars.overwrite!==true)._first||ie(this),this.parent&&s!==this.timeline.totalDuration()&&Qt(this,this._dur*this.timeline._tDur/s,0,1),this}var a=this._targets,o=r?ut(r):a,f=this._ptLookup,l=this._pt,_,c,d,p,h,m,y;if((!n||n==="all")&&Gr(a,o))return n==="all"&&(this._pt=0),ie(this);for(_=this._op=this._op||[],n!=="all"&&(U(n)&&(h={},K(n,function(x){return h[x]=1}),n=h),n=mn(a,n)),y=a.length;y--;)if(~o.indexOf(a[y])){c=f[y],n==="all"?(_[y]=n,p=c,d={}):(d=_[y]=_[y]||{},p=n);for(h in p)m=c&&c[h],m&&((!("kill"in m.d)||m.d.kill(h)===true)&&Ce(this,m,"_pt"),delete c[h]),d!=="all"&&(d[h]=1);}return this._initted&&!this._pt&&l&&ie(this),this},t.to=function(r,n){return new t(r,n,arguments[2])},t.from=function(r,n){return se(1,arguments)},t.delayedCall=function(r,n,s,a){return new t(n,0,{immediateRender:false,lazy:false,overwrite:false,delay:r,onComplete:n,onReverseComplete:n,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:a})},t.fromTo=function(r,n,s){return se(2,arguments)},t.set=function(r,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(r,n)},t.killTweensOf=function(r,n,s){return z.killTweensOf(r,n,s)},t})(le);st(N.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});K("staggerTo,staggerFrom,staggerFromTo",function(u){N[u]=function(){var t=new G,e=$e.call(arguments,0);return e.splice(u==="staggerFromTo"?5:4,0,0),t[u].apply(t,e)};});var di=function(t,e,i){return t[e]=i},cr=function(t,e,i){return t[e](i)},yn=function(t,e,i,r){return t[e](r.fp,i)},xn=function(t,e,i){return t.setAttribute(e,i)},De=function(t,e){return L(t[e])?cr:Se(t[e])&&t.setAttribute?xn:di},dr=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},vn=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},pi=function(t,e){var i=e._pt,r="";if(!t&&e.b)r=e.b;else if(t===1&&e.e)r=e.e;else {for(;i;)r=i.p+(i.m?i.m(i.s+i.c*t):Math.round((i.s+i.c*t)*1e4)/1e4)+r,i=i._next;r+=e.c;}e.set(e.t,e.p,r,e);},mi=function(t,e){for(var i=e._pt;i;)i.r(t,i.d),i=i._next;},Tn=function(t,e,i,r){for(var n=this._pt,s;n;)s=n._next,n.p===r&&n.modifier(t,e,i),n=s;},wn=function(t){for(var e=this._pt,i,r;e;)r=e._next,e.p===t&&!e.op||e.op===t?Ce(this,e,"_pt"):e.dep||(i=1),e=r;return !i},bn=function(t,e,i,r){r.mSet(t,e,r.m.call(r.tween,i,r.mt),r);},gi=function(t){for(var e=t._pt,i,r,n,s;e;){for(i=e._next,r=n;r&&r.pr>e.pr;)r=r._next;(e._prev=r?r._prev:s)?e._prev._next=e:n=e,(e._next=r)?r._prev=e:s=e,e=i;}t._pt=n;},Z=(function(){function u(e,i,r,n,s,a,o,f,l){this.t=i,this.s=n,this.c=s,this.p=r,this.r=a||dr,this.d=o||this,this.set=f||di,this.pr=l||0,this._next=e,e&&(e._prev=this);}var t=u.prototype;return t.modifier=function(i,r,n){this.mSet=this.mSet||this.set,this.set=bn,this.m=i,this.mt=n,this.tween=r;},u})();K(si+"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 ni[u]=1});nt.TweenMax=nt.TweenLite=N;nt.TimelineLite=nt.TimelineMax=G;z=new G({sortChildren:false,defaults:qt,autoRemoveChildren:true,id:"root",smoothChildTiming:true});et.stringFilter=fi;var At=[],xe={},Pn=[],Fi=0,Sn=0,Ve=function(t){return (xe[t]||Pn).map(function(e){return e()})},je=function(){var t=Date.now(),e=[];t-Fi>2&&(Ve("matchMediaInit"),At.forEach(function(i){var r=i.queries,n=i.conditions,s,a,o,f;for(a in r)s=ht.matchMedia(r[a]).matches,s&&(o=1),s!==n[a]&&(n[a]=s,f=1);f&&(i.revert(),o&&e.push(i));}),Ve("matchMediaRevert"),e.forEach(function(i){return i.onMatch(i,function(r){return i.add(null,r)})}),Fi=t,Ve("matchMedia"));},pr=(function(){function u(e,i){this.selector=i&&He(i),this.data=[],this._r=[],this.isReverted=false,this.id=Sn++,e&&this.add(e);}var t=u.prototype;return t.add=function(i,r,n){L(i)&&(n=r,r=i,i=L);var s=this,a=function(){var f=A,l=s.selector,_;return f&&f!==s&&f.data.push(s),n&&(s.selector=He(n)),A=s,_=r.apply(s,arguments),L(_)&&s._r.push(_),A=f,s.selector=l,s.isReverted=false,_};return s.last=a,i===L?a(s,function(o){return s.add(null,o)}):i?s[i]=a:a},t.ignore=function(i){var r=A;A=null,i(this),A=r;},t.getTweens=function(){var i=[];return this.data.forEach(function(r){return r instanceof u?i.push.apply(i,r.getTweens()):r instanceof N&&!(r.parent&&r.parent.data==="nested")&&i.push(r)}),i},t.clear=function(){this._r.length=this.data.length=0;},t.kill=function(i,r){var n=this;if(i?(function(){for(var a=n.getTweens(),o=n.data.length,f;o--;)f=n.data[o],f.data==="isFlip"&&(f.revert(),f.getChildren(true,true,false).forEach(function(l){return a.splice(a.indexOf(l),1)}));for(a.map(function(l){return {g:l._dur||l._delay||l._sat&&!l._sat.vars.immediateRender?l.globalTime(0):-1/0,t:l}}).sort(function(l,_){return _.g-l.g||-1/0}).forEach(function(l){return l.t.revert(i)}),o=n.data.length;o--;)f=n.data[o],f instanceof G?f.data!=="nested"&&(f.scrollTrigger&&f.scrollTrigger.revert(),f.kill()):!(f instanceof N)&&f.revert&&f.revert(i);n._r.forEach(function(l){return l(i,n)}),n.isReverted=true;})():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),r)for(var s=At.length;s--;)At[s].id===this.id&&At.splice(s,1);},t.revert=function(i){this.kill(i||{});},u})(),On=(function(){function u(e){this.contexts=[],this.scope=e,A&&A.data.push(this);}var t=u.prototype;return t.add=function(i,r,n){ct(i)||(i={matches:i});var s=new pr(0,n||this.scope),a=s.conditions={},o,f,l;A&&!s.selector&&(s.selector=A.selector),this.contexts.push(s),r=s.add("onMatch",r),s.queries=i;for(f in i)f==="all"?l=1:(o=ht.matchMedia(i[f]),o&&(At.indexOf(s)<0&&At.push(s),(a[f]=o.matches)&&(l=1),o.addListener?o.addListener(je):o.addEventListener("change",je)));return l&&r(s,function(_){return s.add(null,_)}),this},t.revert=function(i){this.kill(i||{});},t.kill=function(i){this.contexts.forEach(function(r){return r.kill(i,true)});},u})(),Pe={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e.forEach(function(r){return sr(r)});},timeline:function(t){return new G(t)},getTweensOf:function(t,e){return z.getTweensOf(t,e)},getProperty:function(t,e,i,r){U(t)&&(t=ut(t)[0]);var n=bt(t||{}).get,s=i?Wi:Gi;return i==="native"&&(i=""),t&&(e?s((j[e]&&j[e].get||n)(t,e,i,r)):function(a,o,f){return s((j[a]&&j[a].get||n)(t,a,o,f))})},quickSetter:function(t,e,i){if(t=ut(t),t.length>1){var r=t.map(function(l){return H.quickSetter(l,e,i)}),n=r.length;return function(l){for(var _=n;_--;)r[_](l);}}t=t[0]||{};var s=j[e],a=bt(t),o=a.harness&&(a.harness.aliases||{})[e]||e,f=s?function(l){var _=new s;Xt._pt=0,_.init(t,i?l+i:l,Xt,0,[t]),_.render(1,_),Xt._pt&&mi(1,Xt);}:a.set(t,o);return s?f:function(l){return f(t,o,i?l+i:l,a,1)}},quickTo:function(t,e,i){var r,n=H.to(t,st((r={},r[e]="+=0.1",r.paused=true,r.stagger=0,r),i||{})),s=function(o,f,l){return n.resetTo(e,o,f,l)};return s.tween=n,s},isTweening:function(t){return z.getTweensOf(t,true).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Et(t.ease,qt.ease)),Di(qt,t||{})},config:function(t){return Di(et,t||{})},registerEffect:function(t){var e=t.name,i=t.effect,r=t.plugins,n=t.defaults,s=t.extendTimeline;(r||"").split(",").forEach(function(a){return a&&!j[a]&&!nt[a]&&oe(e+" effect requires "+a+" plugin.")}),Le[e]=function(a,o,f){return i(ut(a),st(o||{},n),f)},s&&(G.prototype[e]=function(a,o,f){return this.add(Le[e](a,ct(o)?o:(f=o)&&{},this),f)});},registerEase:function(t,e){O[t]=Et(e);},parseEase:function(t,e){return arguments.length?Et(t,e):O},getById:function(t){return z.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var i=new G(t),r,n;for(i.smoothChildTiming=tt(t.smoothChildTiming),z.remove(i),i._dp=0,i._time=i._tTime=z._time,r=z._first;r;)n=r._next,(e||!(!r._dur&&r instanceof N&&r.vars.onComplete===r._targets[0]))&&_t(i,r,r._start-r._delay),r=n;return _t(z,i,0),i},context:function(t,e){return t?new pr(t,e):A},matchMedia:function(t){return new On(t)},matchMediaRefresh:function(){return At.forEach(function(t){var e=t.conditions,i,r;for(r in e)e[r]&&(e[r]=false,i=1);i&&t.revert();})||je()},addEventListener:function(t,e){var i=xe[t]||(xe[t]=[]);~i.indexOf(e)||i.push(e);},removeEventListener:function(t,e){var i=xe[t],r=i&&i.indexOf(e);r>=0&&i.splice(r,1);},utils:{wrap:nn,wrapYoyo:sn,distribute:Ji,random:er,snap:tr,normalize:rn,getUnit:Q,clamp:jr,splitColor:ar,toArray:ut,selector:He,mapRange:rr,pipe:tn,unitize:en,interpolate:an,shuffle:ji},install:Ui,effects:Le,ticker:J,updateRoot:G.updateRoot,plugins:j,globalTimeline:z,core:{PropTween:Z,globals:Yi,Tween:N,Timeline:G,Animation:le,getCache:bt,_removeLinkedListItem:Ce,reverting:function(){return W},context:function(t){return t&&A&&(A.data.push(t),t._ctx=A),A},suppressOverwrites:function(t){return Je=t}}};K("to,from,fromTo,delayedCall,set,killTweensOf",function(u){return Pe[u]=N[u]});J.add(G.updateRoot);Xt=Pe.to({},{duration:0});var Cn=function(t,e){for(var i=t._pt;i&&i.p!==e&&i.op!==e&&i.fp!==e;)i=i._next;return i},kn=function(t,e){var i=t._targets,r,n,s;for(r in e)for(n=i.length;n--;)s=t._ptLookup[n][r],s&&(s=s.d)&&(s._pt&&(s=Cn(s,r)),s&&s.modifier&&s.modifier(e[r],t,i[n],r));},Ue=function(t,e){return {name:t,headless:1,rawVars:1,init:function(r,n,s){s._onInit=function(a){var o,f;if(U(n)&&(o={},K(n,function(l){return o[l]=1}),n=o),e){o={};for(f in n)o[f]=e(n[f]);n=o;}kn(a,n);};}}},H=Pe.registerPlugin({name:"attr",init:function(t,e,i,r,n){var s,a,o;this.tween=i;for(s in e)o=t.getAttribute(s)||"",a=this.add(t,"setAttribute",(o||0)+"",e[s],r,n,0,0,s),a.op=s,a.b=o,this._props.push(s);},render:function(t,e){for(var i=e._pt;i;)W?i.set(i.t,i.p,i.b,i):i.r(t,i.d),i=i._next;}},{name:"endArray",headless:1,init:function(t,e){for(var i=e.length;i--;)this.add(t,i,t[i]||0,e[i],0,0,0,0,0,1);}},Ue("roundProps",Ke),Ue("modifiers"),Ue("snap",tr))||Pe;N.version=G.version=H.version="3.13.0";Vi=1;ti()&&$t();O.Power0;O.Power1;O.Power2;O.Power3;O.Power4;O.Linear;O.Quad;O.Cubic;O.Quart;O.Quint;O.Strong;O.Elastic;O.Back;O.SteppedEase;O.Bounce;O.Sine;O.Expo;O.Circ;var mr,Ot,Zt,bi,Vt,gr,Pi,$n=function(){return typeof window<"u"},vt={},Bt=180/Math.PI,jt=Math.PI/180,Kt=Math.atan2,yr=1e8,Si=/([A-Z])/g,Hn=/(left|right|width|margin|padding|x)/i,Kn=/[\s,\(]\S/,dt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},xi=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Zn=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},jn=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},Jn=function(t,e){var i=e.s+e.c*t;e.set(e.t,e.p,~~(i+(i<0?-0.5:.5))+e.u,e);},Or=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Cr=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},ts=function(t,e,i){return t.style[e]=i},es=function(t,e,i){return t.style.setProperty(e,i)},is=function(t,e,i){return t._gsap[e]=i},rs=function(t,e,i){return t._gsap.scaleX=t._gsap.scaleY=i},ns=function(t,e,i,r,n){var s=t._gsap;s.scaleX=s.scaleY=i,s.renderTransform(n,s);},ss=function(t,e,i,r,n){var s=t._gsap;s[e]=i,s.renderTransform(n,s);},F="transform",it=F+"Origin",as=function u(t,e){var i=this,r=this.target,n=r.style,s=r._gsap;if(t in vt&&n){if(this.tfm=this.tfm||{},t!=="transform")t=dt[t]||t,~t.indexOf(",")?t.split(",").forEach(function(a){return i.tfm[a]=xt(r,a)}):this.tfm[t]=s.x?s[t]:xt(r,t),t===it&&(this.tfm.zOrigin=s.zOrigin);else return dt.transform.split(",").forEach(function(a){return u.call(i,a,e)});if(this.props.indexOf(F)>=0)return;s.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(it,e,"")),t=F;}(n||e)&&this.props.push(t,e,n[t]);},kr=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"));},os=function(){var t=this.props,e=this.target,i=e.style,r=e._gsap,n,s;for(n=0;n<t.length;n+=3)t[n+1]?t[n+1]===2?e[t[n]](t[n+2]):e[t[n]]=t[n+2]:t[n+2]?i[t[n]]=t[n+2]:i.removeProperty(t[n].substr(0,2)==="--"?t[n]:t[n].replace(Si,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)r[s]=this.tfm[s];r.svg&&(r.renderTransform(),e.setAttribute("data-svg-origin",this.svgo||"")),n=Pi(),(!n||!n.isStart)&&!i[F]&&(kr(i),r.zOrigin&&i[it]&&(i[it]+=" "+r.zOrigin+"px",r.zOrigin=0,r.renderTransform()),r.uncache=1);}},Mr=function(t,e){var i={target:t,props:[],revert:os,save:as};return t._gsap||H.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(r){return i.save(r)}),i},Dr,vi=function(t,e){var i=Ot.createElementNS?Ot.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Ot.createElement(t);return i&&i.style?i:Ot.createElement(t)},ft=function u(t,e,i){var r=getComputedStyle(t);return r[e]||r.getPropertyValue(e.replace(Si,"-$1").toLowerCase())||r.getPropertyValue(e)||!i&&u(t,Jt(e)||e,1)||""},xr="O,Moz,ms,Ms,Webkit".split(","),Jt=function(t,e,i){var r=e||Vt,n=r.style,s=5;if(t in n&&!i)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);s--&&!(xr[s]+t in n););return s<0?null:(s===3?"ms":s>=0?xr[s]:"")+t},Ti=function(){$n()&&window.document&&(mr=window,Ot=mr.document,Zt=Ot.documentElement,Vt=vi("div")||{style:{}},vi("div"),F=Jt(F),it=F+"Origin",Vt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Dr=!!Jt("perspective"),Pi=H.core.reverting,bi=1);},vr=function(t){var e=t.ownerSVGElement,i=vi("svg",e&&e.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=t.cloneNode(true),n;r.style.display="block",i.appendChild(r),Zt.appendChild(i);try{n=r.getBBox();}catch{}return i.removeChild(r),Zt.removeChild(i),n},Tr=function(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},Rr=function(t){var e,i;try{e=t.getBBox();}catch{e=vr(t),i=1;}return e&&(e.width||e.height)||i||(e=vr(t)),e&&!e.width&&!e.x&&!e.y?{x:+Tr(t,["x","cx","x1"])||0,y:+Tr(t,["y","cy","y1"])||0,width:0,height:0}:e},Er=function(t){return !!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&Rr(t))},Ut=function(t,e){if(e){var i=t.style,r;e in vt&&e!==it&&(e=F),i.removeProperty?(r=e.substr(0,2),(r==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),i.removeProperty(r==="--"?e:e.replace(Si,"-$1").toLowerCase())):i.removeAttribute(e);}},Ct=function(t,e,i,r,n,s){var a=new Z(t._pt,e,i,0,1,s?Cr:Or);return t._pt=a,a.b=r,a.e=n,t._props.push(i),a},wr={deg:1,rad:1,turn:1},us={grid:1,flex:1},kt=function u(t,e,i,r){var n=parseFloat(i)||0,s=(i+"").trim().substr((n+"").length)||"px",a=Vt.style,o=Hn.test(e),f=t.tagName.toLowerCase()==="svg",l=(f?"client":"offset")+(o?"Width":"Height"),_=100,c=r==="px",d=r==="%",p,h,m,y;if(r===s||!n||wr[r]||wr[s])return n;if(s!=="px"&&!c&&(n=u(t,e,i,"px")),y=t.getCTM&&Er(t),(d||s==="%")&&(vt[e]||~e.indexOf("adius")))return p=y?t.getBBox()[o?"width":"height"]:t[l],I(d?n/p*_:n/100*p);if(a[o?"width":"height"]=_+(c?s:r),h=r!=="rem"&&~e.indexOf("adius")||r==="em"&&t.appendChild&&!f?t:t.parentNode,y&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===Ot||!h.appendChild)&&(h=Ot.body),m=h._gsap,m&&d&&m.width&&o&&m.time===J.time&&!m.uncache)return I(n/m.width*_);if(d&&(e==="height"||e==="width")){var x=t.style[e];t.style[e]=_+r,p=t[l],x?t.style[e]=x:Ut(t,e);}else (d||s==="%")&&!us[ft(h,"display")]&&(a.position=ft(t,"position")),h===t&&(a.position="static"),h.appendChild(Vt),p=Vt[l],h.removeChild(Vt),a.position="absolute";return o&&d&&(m=bt(h),m.time=J.time,m.width=h[l]),I(c?p*n/_:p&&n?_/p*n:0)},xt=function(t,e,i,r){var n;return bi||Ti(),e in dt&&e!=="transform"&&(e=dt[e],~e.indexOf(",")&&(e=e.split(",")[0])),vt[e]&&e!=="transform"?(n=de(t,r),n=e!=="transformOrigin"?n[e]:n.svg?n.origin:Ee(ft(t,it))+" "+n.zOrigin+"px"):(n=t.style[e],(!n||n==="auto"||r||~(n+"").indexOf("calc("))&&(n=Re[e]&&Re[e](t,e,i)||ft(t,e)||oi(t,e)||(e==="opacity"?1:0))),i&&!~(n+"").trim().indexOf(" ")?kt(t,e,n,i)+i:n},fs=function(t,e,i,r){if(!i||i==="none"){var n=Jt(e,t,1),s=n&&ft(t,n,1);s&&s!==i?(e=n,i=s):e==="borderColor"&&(i=ft(t,"borderTopColor"));}var a=new Z(this._pt,t.style,e,0,1,pi),o=0,f=0,l,_,c,d,p,h,m,y,x,v,T,g;if(a.b=i,a.e=r,i+="",r+="",r.substring(0,6)==="var(--"&&(r=ft(t,r.substring(4,r.indexOf(")")))),r==="auto"&&(h=t.style[e],t.style[e]=r,r=ft(t,e)||r,h?t.style[e]=h:Ut(t,e)),l=[i,r],fi(l),i=l[0],r=l[1],c=i.match(zt)||[],g=r.match(zt)||[],g.length){for(;_=zt.exec(r);)m=_[0],x=r.substring(o,_.index),p?p=(p+1)%5:(x.substr(-5)==="rgba("||x.substr(-5)==="hsla(")&&(p=1),m!==(h=c[f++]||"")&&(d=parseFloat(h)||0,T=h.substr((d+"").length),m.charAt(1)==="="&&(m=Ft(d,m)+T),y=parseFloat(m),v=m.substr((y+"").length),o=zt.lastIndex-v.length,v||(v=v||et.units[e]||T,o===r.length&&(r+=v,a.e+=v)),T!==v&&(d=kt(t,e,h,v)||0),a._pt={_next:a._pt,p:x||f===1?x:",",s:d,c:y-d,m:p&&p<4||e==="zIndex"?Math.round:0});a.c=o<r.length?r.substring(o,r.length):"";}else a.r=e==="display"&&r==="none"?Cr:Or;return ii.test(r)&&(a.e=0),this._pt=a,a},br={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},ls=function(t){var e=t.split(" "),i=e[0],r=e[1]||"50%";return (i==="top"||i==="bottom"||r==="left"||r==="right")&&(t=i,i=r,r=t),e[0]=br[i]||i,e[1]=br[r]||r,e.join(" ")},hs=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var i=e.t,r=i.style,n=e.u,s=i._gsap,a,o,f;if(n==="all"||n===true)r.cssText="",o=1;else for(n=n.split(","),f=n.length;--f>-1;)a=n[f],vt[a]&&(o=1,a=a==="transformOrigin"?it:F),Ut(i,a);o&&(Ut(i,F),s&&(s.svg&&i.removeAttribute("transform"),r.scale=r.rotate=r.translate="none",de(i,1),s.uncache=1,kr(r)));}},Re={clearProps:function(t,e,i,r,n){if(n.data!=="isFromStart"){var s=t._pt=new Z(t._pt,e,i,0,0,hs);return s.u=r,s.pr=-10,s.tween=n,t._props.push(i),1}}},ce=[1,0,0,1,0,0],Ar={},zr=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},Pr=function(t){var e=ft(t,F);return zr(e)?ce:e.substr(7).match(ei).map(I)},Oi=function(t,e){var i=t._gsap||bt(t),r=t.style,n=Pr(t),s,a,o,f;return i.svg&&t.getAttribute("transform")?(o=t.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"?ce:n):(n===ce&&!t.offsetParent&&t!==Zt&&!i.svg&&(o=r.display,r.display="block",s=t.parentNode,(!s||!t.offsetParent&&!t.getBoundingClientRect().width)&&(f=1,a=t.nextElementSibling,Zt.appendChild(t)),n=Pr(t),o?r.display=o:Ut(t,"display"),f&&(a?s.insertBefore(t,a):s?s.appendChild(t):Zt.removeChild(t))),e&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},wi=function(t,e,i,r,n,s){var a=t._gsap,o=n||Oi(t,true),f=a.xOrigin||0,l=a.yOrigin||0,_=a.xOffset||0,c=a.yOffset||0,d=o[0],p=o[1],h=o[2],m=o[3],y=o[4],x=o[5],v=e.split(" "),T=parseFloat(v[0])||0,g=parseFloat(v[1])||0,w,P,S,b;i?o!==ce&&(P=d*m-p*h)&&(S=T*(m/P)+g*(-h/P)+(h*x-m*y)/P,b=T*(-p/P)+g*(d/P)-(d*x-p*y)/P,T=S,g=b):(w=Rr(t),T=w.x+(~v[0].indexOf("%")?T/100*w.width:T),g=w.y+(~(v[1]||v[0]).indexOf("%")?g/100*w.height:g)),r||r!==false&&a.smooth?(y=T-f,x=g-l,a.xOffset=_+(y*d+x*h)-y,a.yOffset=c+(y*p+x*m)-x):a.xOffset=a.yOffset=0,a.xOrigin=T,a.yOrigin=g,a.smooth=!!r,a.origin=e,a.originIsAbsolute=!!i,t.style[it]="0px 0px",s&&(Ct(s,a,"xOrigin",f,T),Ct(s,a,"yOrigin",l,g),Ct(s,a,"xOffset",_,a.xOffset),Ct(s,a,"yOffset",c,a.yOffset)),t.setAttribute("data-svg-origin",T+" "+g);},de=function(t,e){var i=t._gsap||new li(t);if("x"in i&&!e&&!i.uncache)return i;var r=t.style,n=i.scaleX<0,s="px",a="deg",o=getComputedStyle(t),f=ft(t,it)||"0",l,_,c,d,p,h,m,y,x,v,T,g,w,P,S,b,C,E,D,R,q,Y,B,X,lt,pe,te,ee,Mt,ki,pt,Dt;return l=_=c=h=m=y=x=v=T=0,d=p=1,i.svg=!!(t.getCTM&&Er(t)),o.translate&&((o.translate!=="none"||o.scale!=="none"||o.rotate!=="none")&&(r[F]=(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[F]!=="none"?o[F]:"")),r.scale=r.rotate=r.translate="none"),P=Oi(t,i.svg),i.svg&&(i.uncache?(lt=t.getBBox(),f=i.xOrigin-lt.x+"px "+(i.yOrigin-lt.y)+"px",X=""):X=!e&&t.getAttribute("data-svg-origin"),wi(t,X||f,!!X||i.originIsAbsolute,i.smooth!==false,P)),g=i.xOrigin||0,w=i.yOrigin||0,P!==ce&&(E=P[0],D=P[1],R=P[2],q=P[3],l=Y=P[4],_=B=P[5],P.length===6?(d=Math.sqrt(E*E+D*D),p=Math.sqrt(q*q+R*R),h=E||D?Kt(D,E)*Bt:0,x=R||q?Kt(R,q)*Bt+h:0,x&&(p*=Math.abs(Math.cos(x*jt))),i.svg&&(l-=g-(g*E+w*R),_-=w-(g*D+w*q))):(Dt=P[6],ki=P[7],te=P[8],ee=P[9],Mt=P[10],pt=P[11],l=P[12],_=P[13],c=P[14],S=Kt(Dt,Mt),m=S*Bt,S&&(b=Math.cos(-S),C=Math.sin(-S),X=Y*b+te*C,lt=B*b+ee*C,pe=Dt*b+Mt*C,te=Y*-C+te*b,ee=B*-C+ee*b,Mt=Dt*-C+Mt*b,pt=ki*-C+pt*b,Y=X,B=lt,Dt=pe),S=Kt(-R,Mt),y=S*Bt,S&&(b=Math.cos(-S),C=Math.sin(-S),X=E*b-te*C,lt=D*b-ee*C,pe=R*b-Mt*C,pt=q*C+pt*b,E=X,D=lt,R=pe),S=Kt(D,E),h=S*Bt,S&&(b=Math.cos(S),C=Math.sin(S),X=E*b+D*C,lt=Y*b+B*C,D=D*b-E*C,B=B*b-Y*C,E=X,Y=lt),m&&Math.abs(m)+Math.abs(h)>359.9&&(m=h=0,y=180-y),d=I(Math.sqrt(E*E+D*D+R*R)),p=I(Math.sqrt(B*B+Dt*Dt)),S=Kt(Y,B),x=Math.abs(S)>2e-4?S*Bt:0,T=pt?1/(pt<0?-pt:pt):0),i.svg&&(X=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!zr(ft(t,F)),X&&t.setAttribute("transform",X))),Math.abs(x)>90&&Math.abs(x)<270&&(n?(d*=-1,x+=h<=0?180:-180,h+=h<=0?180:-180):(p*=-1,x+=x<=0?180:-180)),e=e||i.uncache,i.x=l-((i.xPercent=l&&(!e&&i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-l)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+s,i.y=_-((i.yPercent=_&&(!e&&i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-_)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+s,i.z=c+s,i.scaleX=I(d),i.scaleY=I(p),i.rotation=I(h)+a,i.rotationX=I(m)+a,i.rotationY=I(y)+a,i.skewX=x+a,i.skewY=v+a,i.transformPerspective=T+s,(i.zOrigin=parseFloat(f.split(" ")[2])||!e&&i.zOrigin||0)&&(r[it]=Ee(f)),i.xOffset=i.yOffset=0,i.force3D=et.force3D,i.renderTransform=i.svg?cs:Dr?Fr:_s,i.uncache=0,i},Ee=function(t){return (t=t.split(" "))[0]+" "+t[1]},yi=function(t,e,i){var r=Q(e);return I(parseFloat(e)+parseFloat(kt(t,"x",i+"px",r)))+r},_s=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Fr(t,e);},It="0deg",_e="0px",Nt=") ",Fr=function(t,e){var i=e||this,r=i.xPercent,n=i.yPercent,s=i.x,a=i.y,o=i.z,f=i.rotation,l=i.rotationY,_=i.rotationX,c=i.skewX,d=i.skewY,p=i.scaleX,h=i.scaleY,m=i.transformPerspective,y=i.force3D,x=i.target,v=i.zOrigin,T="",g=y==="auto"&&t&&t!==1||y===true;if(v&&(_!==It||l!==It)){var w=parseFloat(l)*jt,P=Math.sin(w),S=Math.cos(w),b;w=parseFloat(_)*jt,b=Math.cos(w),s=yi(x,s,P*b*-v),a=yi(x,a,-Math.sin(w)*-v),o=yi(x,o,S*b*-v+v);}m!==_e&&(T+="perspective("+m+Nt),(r||n)&&(T+="translate("+r+"%, "+n+"%) "),(g||s!==_e||a!==_e||o!==_e)&&(T+=o!==_e||g?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+Nt),f!==It&&(T+="rotate("+f+Nt),l!==It&&(T+="rotateY("+l+Nt),_!==It&&(T+="rotateX("+_+Nt),(c!==It||d!==It)&&(T+="skew("+c+", "+d+Nt),(p!==1||h!==1)&&(T+="scale("+p+", "+h+Nt),x.style[F]=T||"translate(0, 0)";},cs=function(t,e){var i=e||this,r=i.xPercent,n=i.yPercent,s=i.x,a=i.y,o=i.rotation,f=i.skewX,l=i.skewY,_=i.scaleX,c=i.scaleY,d=i.target,p=i.xOrigin,h=i.yOrigin,m=i.xOffset,y=i.yOffset,x=i.forceCSS,v=parseFloat(s),T=parseFloat(a),g,w,P,S,b;o=parseFloat(o),f=parseFloat(f),l=parseFloat(l),l&&(l=parseFloat(l),f+=l,o+=l),o||f?(o*=jt,f*=jt,g=Math.cos(o)*_,w=Math.sin(o)*_,P=Math.sin(o-f)*-c,S=Math.cos(o-f)*c,f&&(l*=jt,b=Math.tan(f-l),b=Math.sqrt(1+b*b),P*=b,S*=b,l&&(b=Math.tan(l),b=Math.sqrt(1+b*b),g*=b,w*=b)),g=I(g),w=I(w),P=I(P),S=I(S)):(g=_,S=c,w=P=0),(v&&!~(s+"").indexOf("px")||T&&!~(a+"").indexOf("px"))&&(v=kt(d,"x",s,"px"),T=kt(d,"y",a,"px")),(p||h||m||y)&&(v=I(v+p-(p*g+h*P)+m),T=I(T+h-(p*w+h*S)+y)),(r||n)&&(b=d.getBBox(),v=I(v+r/100*b.width),T=I(T+n/100*b.height)),b="matrix("+g+","+w+","+P+","+S+","+v+","+T+")",d.setAttribute("transform",b),x&&(d.style[F]=b);},ds=function(t,e,i,r,n){var s=360,a=U(n),o=parseFloat(n)*(a&&~n.indexOf("rad")?Bt:1),f=o-r,l=r+f+"deg",_,c;return a&&(_=n.split("_")[1],_==="short"&&(f%=s,f!==f%(s/2)&&(f+=f<0?s:-s)),_==="cw"&&f<0?f=(f+s*yr)%s-~~(f/s)*s:_==="ccw"&&f>0&&(f=(f-s*yr)%s-~~(f/s)*s)),t._pt=c=new Z(t._pt,e,i,r,f,Zn),c.e=l,c.u="deg",t._props.push(i),c},Sr=function(t,e){for(var i in e)t[i]=e[i];return t},ps=function(t,e,i){var r=Sr({},i._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=i.style,a,o,f,l,_,c,d,p;r.svg?(f=i.getAttribute("transform"),i.setAttribute("transform",""),s[F]=e,a=de(i,1),Ut(i,F),i.setAttribute("transform",f)):(f=getComputedStyle(i)[F],s[F]=e,a=de(i,1),s[F]=f);for(o in vt)f=r[o],l=a[o],f!==l&&n.indexOf(o)<0&&(d=Q(f),p=Q(l),_=d!==p?kt(i,o,f,p):parseFloat(f),c=parseFloat(l),t._pt=new Z(t._pt,a,o,_,c-_,xi),t._pt.u=p||0,t._props.push(o));Sr(a,r);};K("padding,margin,Width,Radius",function(u,t){var e="Top",i="Right",r="Bottom",n="Left",s=(t<3?[e,i,r,n]:[e+n,e+i,r+i,r+n]).map(function(a){return t<2?u+a:"border"+a+u});Re[t>1?"border"+u:u]=function(a,o,f,l,_){var c,d;if(arguments.length<4)return c=s.map(function(p){return xt(a,p,f)}),d=c.join(" "),d.split(c[0]).length===5?c[0]:d;c=(l+"").split(" "),d={},s.forEach(function(p,h){return d[p]=c[h]=c[h]||c[(h-1)/2|0]}),a.init(o,d,_);};});var Ci={name:"css",register:Ti,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,i,r,n){var s=this._props,a=t.style,o=i.vars.startAt,f,l,_,c,d,p,h,m,y,x,v,T,g,w,P,S;bi||Ti(),this.styles=this.styles||Mr(t),S=this.styles.props,this.tween=i;for(h in e)if(h!=="autoRound"&&(l=e[h],!(j[h]&&_i(h,e,i,r,t,n)))){if(d=typeof l,p=Re[h],d==="function"&&(l=l.call(i,r,t,n),d=typeof l),d==="string"&&~l.indexOf("random(")&&(l=Ht(l)),p)p(this,t,h,l,i)&&(P=1);else if(h.substr(0,2)==="--")f=(getComputedStyle(t).getPropertyValue(h)+"").trim(),l+="",gt.lastIndex=0,gt.test(f)||(m=Q(f),y=Q(l)),y?m!==y&&(f=kt(t,h,f,y)+y):m&&(l+=m),this.add(a,"setProperty",f,l,r,n,0,0,h),s.push(h),S.push(h,0,a[h]);else if(d!=="undefined"){if(o&&h in o?(f=typeof o[h]=="function"?o[h].call(i,r,t,n):o[h],U(f)&&~f.indexOf("random(")&&(f=Ht(f)),Q(f+"")||f==="auto"||(f+=et.units[h]||Q(xt(t,h))||""),(f+"").charAt(1)==="="&&(f=xt(t,h))):f=xt(t,h),c=parseFloat(f),x=d==="string"&&l.charAt(1)==="="&&l.substr(0,2),x&&(l=l.substr(2)),_=parseFloat(l),h in dt&&(h==="autoAlpha"&&(c===1&&xt(t,"visibility")==="hidden"&&_&&(c=0),S.push("visibility",0,a.visibility),Ct(this,a,"visibility",c?"inherit":"hidden",_?"inherit":"hidden",!_)),h!=="scale"&&h!=="transform"&&(h=dt[h],~h.indexOf(",")&&(h=h.split(",")[0]))),v=h in vt,v){if(this.styles.save(h),d==="string"&&l.substring(0,6)==="var(--"&&(l=ft(t,l.substring(4,l.indexOf(")"))),_=parseFloat(l)),T||(g=t._gsap,g.renderTransform&&!e.parseTransform||de(t,e.parseTransform),w=e.smoothOrigin!==false&&g.smooth,T=this._pt=new Z(this._pt,a,F,0,1,g.renderTransform,g,0,-1),T.dep=1),h==="scale")this._pt=new Z(this._pt,g,"scaleY",g.scaleY,(x?Ft(g.scaleY,x+_):_)-g.scaleY||0,xi),this._pt.u=0,s.push("scaleY",h),h+="X";else if(h==="transformOrigin"){S.push(it,0,a[it]),l=ls(l),g.svg?wi(t,l,0,w,0,this):(y=parseFloat(l.split(" ")[2])||0,y!==g.zOrigin&&Ct(this,g,"zOrigin",g.zOrigin,y),Ct(this,a,h,Ee(f),Ee(l)));continue}else if(h==="svgOrigin"){wi(t,l,1,w,0,this);continue}else if(h in Ar){ds(this,g,h,c,x?Ft(c,x+l):l);continue}else if(h==="smoothOrigin"){Ct(this,g,"smooth",g.smooth,l);continue}else if(h==="force3D"){g[h]=l;continue}else if(h==="transform"){ps(this,l,t);continue}}else h in a||(h=Jt(h)||h);if(v||(_||_===0)&&(c||c===0)&&!Kn.test(l)&&h in a)m=(f+"").substr((c+"").length),_||(_=0),y=Q(l)||(h in et.units?et.units[h]:m),m!==y&&(c=kt(t,h,f,y)),this._pt=new Z(this._pt,v?g:a,h,c,(x?Ft(c,x+_):_)-c,!v&&(y==="px"||h==="zIndex")&&e.autoRound!==false?Jn:xi),this._pt.u=y||0,m!==y&&y!=="%"&&(this._pt.b=f,this._pt.r=jn);else if(h in a)fs.call(this,t,h,f,x?x+l:l);else if(h in t)this.add(t,h,f||t[h],x?x+l:l,r,n);else if(h!=="parseTransform"){Oe(h,l);continue}v||(h in a?S.push(h,0,a[h]):typeof t[h]=="function"?S.push(h,2,t[h]()):S.push(h,1,f||t[h])),s.push(h);}}P&&gi(this);},render:function(t,e){if(e.tween._time||!Pi())for(var i=e._pt;i;)i.r(t,i.d),i=i._next;else e.styles.revert();},get:xt,aliases:dt,getSetter:function(t,e,i){var r=dt[e];return r&&r.indexOf(",")<0&&(e=r),e in vt&&e!==it&&(t._gsap.x||xt(t,"x"))?i&&gr===i?e==="scale"?rs:is:(gr=i||{})&&(e==="scale"?ns:ss):t.style&&!Se(t.style[e])?ts:~e.indexOf("-")?es:De(t,e)},core:{_removeProperty:Ut,_getMatrix:Oi}};H.utils.checkPrefix=Jt;H.core.getStyleSaver=Mr;(function(u,t,e,i){var r=K(u+","+t+","+e,function(n){vt[n]=1;});K(t,function(n){et.units[n]="deg",Ar[n]=1;}),dt[r[13]]=u+","+t,K(i,function(n){var s=n.split(":");dt[s[1]]=r[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");K("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(u){et.units[u]="px";});H.registerPlugin(Ci);var Yt=H.registerPlugin(Ci)||H;Yt.core.Tween;var ys=({firstContent:u,secondContent:t,gridSize:e=7,pixelColor:i="#000000",animationStepDuration:r=.3,className:n="",style:s={},aspectRatio:a="100%"})=>{let o=react.useRef(null),f=react.useRef(null),l=react.useRef(null),_=react.useRef(null),[c,d]=react.useState(false),p=typeof window<"u"&&("ontouchstart"in window||navigator.maxTouchPoints>0||window.matchMedia("(pointer: coarse)").matches);react.useEffect(()=>{let v=f.current;if(v){v.innerHTML="";for(let T=0;T<e;T++)for(let g=0;g<e;g++){let w=document.createElement("div");w.classList.add("pixelated-image-card__pixel"),w.style.backgroundColor=i,w.style.position="absolute",w.style.display="none";let P=100/e;w.style.width=`${P}%`,w.style.height=`${P}%`,w.style.left=`${g*P}%`,w.style.top=`${T*P}%`,v.appendChild(w);}}},[e,i]);let h=v=>{d(v);let T=f.current,g=l.current;if(!T||!g)return;let w=T.querySelectorAll(".pixelated-image-card__pixel");if(!w.length)return;Yt.killTweensOf(w),_.current&&_.current.kill(),Yt.set(w,{display:"none"});let P=w.length,S=r/P;Yt.to(w,{display:"block",duration:0,stagger:{each:S,from:"random"}}),_.current=Yt.delayedCall(r,()=>{g.style.display=v?"block":"none",g.style.pointerEvents=v?"none":"";}),Yt.to(w,{display:"none",duration:0,delay:r,stagger:{each:S,from:"random"}});},m=()=>{c||h(true);},y=()=>{c&&h(false);},x=()=>{h(!c);};return jsxRuntime.jsxs("div",{ref:o,className:`relative overflow-hidden ${n}`,style:s,onMouseEnter:p?void 0:m,onMouseLeave:p?void 0:y,onClick:p?x:void 0,children:[jsxRuntime.jsx("div",{style:{paddingTop:a}}),jsxRuntime.jsx("div",{className:"absolute inset-0",children:u}),jsxRuntime.jsx("div",{className:"absolute inset-0 hidden",ref:l,children:t}),jsxRuntime.jsx("div",{className:"absolute inset-0 pointer-events-none",ref:f})]})};var As=ys;/*! Bundled license information:
2
+
3
+ gsap/gsap-core.js:
4
+ (*!
5
+ * GSAP 3.13.0
6
+ * https://gsap.com
7
+ *
8
+ * @license Copyright 2008-2025, GreenSock. All rights reserved.
9
+ * Subject to the terms at https://gsap.com/standard-license
10
+ * @author: Jack Doyle, jack@greensock.com
11
+ *)
12
+
13
+ gsap/CSSPlugin.js:
14
+ (*!
15
+ * CSSPlugin 3.13.0
16
+ * https://gsap.com
17
+ *
18
+ * Copyright 2008-2025, GreenSock. All rights reserved.
19
+ * Subject to the terms at https://gsap.com/standard-license
20
+ * @author: Jack Doyle, jack@greensock.com
21
+ *)
22
+ */exports.PixelTransition=ys;exports.default=As;//# sourceMappingURL=index.js.map
23
+ //# sourceMappingURL=index.js.map