cheryglsljs 1.1.9 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cherry.js
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
/*! For license information please see cherry.js.LICENSE.txt */
|
2
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Cherryglsl",[],e):"object"==typeof exports?exports.Cherryglsl=e():t.Cherryglsl=e()}(this,(()=>(()=>{"use strict";var t={d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{default:()=>Jn});function r(t=400,e=400){const r=new THREE.Scene,n=new THREE.PerspectiveCamera(75,window.innerWidth/window.innerHeight,.1,1e3),i=new THREE.WebGLRenderer({alpha:!1});return i.setSize(t,e),{Scene:r,camera:n,renderer:i}}function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var s,a,o,u,h,l,f,c,d,p,_,m,g,v,y,T,w,x={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},b={duration:.5,overwrite:!1,delay:0},M=1e8,O=1e-8,S=2*Math.PI,k=S/4,E=0,C=Math.sqrt,A=Math.cos,P=Math.sin,R=function(t){return"string"==typeof t},D=function(t){return"function"==typeof t},z=function(t){return"number"==typeof t},F=function(t){return void 0===t},L=function(t){return"object"==typeof t},I=function(t){return!1!==t},B=function(){return"undefined"!=typeof window},Y=function(t){return D(t)||R(t)},U="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},H=Array.isArray,N=/(?:-?\.?\d|\.)+/gi,X=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,j=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,q=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,V=/[+-]=-?[.\d]+/,W=/[^,'"\[\]\s]+/gi,G=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Q={},Z={},$=function(t){return(Z=kt(t,Q))&&Er},J=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},K=function(t,e){return!e&&console.warn(t)},tt=function(t,e){return t&&(Q[t]=e)&&Z&&(Z[t]=e)||Q},et=function(){return 0},rt={suppressEvents:!0,isStart:!0,kill:!1},nt={suppressEvents:!0,kill:!1},it={suppressEvents:!0},st={},at=[],ot={},ut={},ht={},lt=30,ft=[],ct="",dt=function(t){var e,r,n=t[0];if(L(n)||D(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=ft.length;r--&&!ft[r].targetTest(n););e=ft[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Ne(t[r],e)))||t.splice(r,1);return t},pt=function(t){return t._gsap||dt(se(t))[0]._gsap},_t=function(t,e,r){return(r=t[e])&&D(r)?t[e]():F(r)&&t.getAttribute&&t.getAttribute(e)||r},mt=function(t,e){return(t=t.split(",")).forEach(e)||t},gt=function(t){return Math.round(1e5*t)/1e5||0},vt=function(t){return Math.round(1e7*t)/1e7||0},yt=function(t,e){var r=e.charAt(0),n=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+n:"-"===r?t-n:"*"===r?t*n:t/n},Tt=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r},wt=function(){var t,e,r=at.length,n=at.slice(0);for(ot={},at.length=0,t=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},xt=function(t){return!!(t._initted||t._startAt||t.add)},bt=function(t,e,r,n){at.length&&!a&&wt(),t.render(e,r,n||!!(a&&e<0&&xt(t))),at.length&&!a&&wt()},Mt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(W).length<2?e:R(t)?t.trim():t},Ot=function(t){return t},St=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},kt=function(t,e){for(var r in e)t[r]=e[r];return t},Et=function t(e,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=L(r[n])?t(e[n]||(e[n]={}),r[n]):r[n]);return e},Ct=function(t,e){var r,n={};for(r in t)r in e||(n[r]=t[r]);return n},At=function(t){var e,r=t.parent||u,n=t.keyframes?(e=H(t.keyframes),function(t,r){for(var n in r)n in t||"duration"===n&&e||"ease"===n||(t[n]=r[n])}):St;if(I(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},Pt=function(t,e,r,n,i){void 0===r&&(r="_first"),void 0===n&&(n="_last");var s,a=t[n];if(i)for(s=e[i];a&&a[i]>s;)a=a._prev;return a?(e._next=a._next,a._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[n]=e,e._prev=a,e.parent=e._dp=t,e},Rt=function(t,e,r,n){void 0===r&&(r="_first"),void 0===n&&(n="_last");var i=e._prev,s=e._next;i?i._next=s:t[r]===e&&(t[r]=s),s?s._prev=i:t[n]===e&&(t[n]=i),e._next=e._prev=e.parent=null},Dt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},zt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t},Ft=function(t,e,r,n){return t._startAt&&(a?t._startAt.revert(nt):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},Lt=function t(e){return!e||e._ts&&t(e.parent)},It=function(t){return t._repeat?Bt(t._tTime,t=t.duration()+t._rDelay)*t:0},Bt=function(t,e){var r=Math.floor(t=vt(t/e));return t&&r===t?r-1:r},Yt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Ut=function(t){return t._end=vt(t._start+(t._tDur/Math.abs(t._ts||t._rts||O)||0))},Ht=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=vt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Ut(t),r._dirty||zt(r,t)),t},Nt=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=Yt(t.rawTime(),e),(!e._dur||te(0,e.totalDuration(),r)-e._tTime>O)&&e.render(r,!0)),zt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-1e-8}},Xt=function(t,e,r,n){return e.parent&&Dt(e),e._start=vt((z(r)?r:r||t!==u?$t(t,r,e):t._time)+e._delay),e._end=vt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Pt(t,e,"_first","_last",t._sort?"_start":0),Wt(e)||(t._recent=e),n||Nt(t,e),t._ts<0&&Ht(t,t._tTime),t},jt=function(t,e){return(Q.ScrollTrigger||J("scrollTrigger",e))&&Q.ScrollTrigger.create(e,t)},qt=function(t,e,r,n,i){return Ze(t,e,i),t._initted?!r&&t._pt&&!a&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&d!==Ce.frame?(at.push(t),t._lazy=[i,n],1):void 0:1},Vt=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},Wt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Gt=function(t,e,r,n){var i=t._repeat,s=vt(e)||0,a=t._tTime/t._tDur;return a&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=i?i<0?1e10:vt(s*(i+1)+t._rDelay*i):s,a>0&&!n&&Ht(t,t._tTime=t._tDur*a),t.parent&&Ut(t),r||zt(t.parent,t),t},Qt=function(t){return t instanceof je?zt(t):Gt(t,t._dur)},Zt={_start:0,endTime:et,totalDuration:et},$t=function t(e,r,n){var i,s,a,o=e.labels,u=e._recent||Zt,h=e.duration()>=M?u.endTime(!1):e._dur;return R(r)&&(isNaN(r)||r in o)?(s=r.charAt(0),a="%"===r.substr(-1),i=r.indexOf("="),"<"===s||">"===s?(i>=0&&(r=r.replace(/=/,"")),("<"===s?u._start:u.endTime(u._repeat>=0))+(parseFloat(r.substr(1))||0)*(a?(i<0?u:n).totalDuration()/100:1)):i<0?(r in o||(o[r]=h),o[r]):(s=parseFloat(r.charAt(i-1)+r.substr(i+1)),a&&n&&(s=s/100*(H(n)?n[0]:n).totalDuration()),i>1?t(e,r.substr(0,i-1),n)+s:h+s)):null==r?h:+r},Jt=function(t,e,r){var n,i,s=z(e[1]),a=(s?2:1)+(t<2?0:1),o=e[a];if(s&&(o.duration=e[1]),o.parent=r,t){for(n=o,i=r;i&&!("immediateRender"in n);)n=i.vars.defaults||{},i=I(i.vars.inherit)&&i.parent;o.immediateRender=I(n.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new er(e[0],o,e[a+1])},Kt=function(t,e){return t||0===t?e(t):e},te=function(t,e,r){return r<t?t:r>e?e:r},ee=function(t,e){return R(t)&&(e=G.exec(t))?e[1]:""},re=[].slice,ne=function(t,e){return t&&L(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&L(t[0]))&&!t.nodeType&&t!==h},ie=function(t,e,r){return void 0===r&&(r=[]),t.forEach((function(t){var n;return R(t)&&!e||ne(t,1)?(n=r).push.apply(n,se(t)):r.push(t)}))||r},se=function(t,e,r){return o&&!e&&o.selector?o.selector(t):!R(t)||r||!l&&Ae()?H(t)?ie(t,r):ne(t)?re.call(t,0):t?[t]:[]:re.call((e||f).querySelectorAll(t),0)},ae=function(t){return t=se(t)[0]||K("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return se(e,r.querySelectorAll?r:r===t?K("Invalid scope")||f.createElement("div"):t)}},oe=function(t){return t.sort((function(){return.5-Math.random()}))},ue=function(t){if(D(t))return t;var e=L(t)?t:{each:t},r=Ie(e.ease),n=e.from||0,i=parseFloat(e.base)||0,s={},a=n>0&&n<1,o=isNaN(n)||a,u=e.axis,h=n,l=n;return R(n)?h=l={center:.5,edges:.5,end:1}[n]||0:!a&&o&&(h=n[0],l=n[1]),function(t,a,f){var c,d,p,_,m,g,v,y,T,w=(f||e).length,x=s[w];if(!x){if(!(T="auto"===e.grid?0:(e.grid||[1,M])[1])){for(v=-M;v<(v=f[T++].getBoundingClientRect().left)&&T<w;);T<w&&T--}for(x=s[w]=[],c=o?Math.min(T,w)*h-.5:n%T,d=T===M?0:o?w*l/T-.5:n/T|0,v=0,y=M,g=0;g<w;g++)p=g%T-c,_=d-(g/T|0),x[g]=m=u?Math.abs("y"===u?_:p):C(p*p+_*_),m>v&&(v=m),m<y&&(y=m);"random"===n&&oe(x),x.max=v-y,x.min=y,x.v=w=(parseFloat(e.amount)||parseFloat(e.each)*(T>w?w-1:u?"y"===u?w/T:T:Math.max(T,w/T))||0)*("edges"===n?-1:1),x.b=w<0?i-w:i,x.u=ee(e.amount||e.each)||0,r=r&&w<0?Fe(r):r}return w=(x[t]-x.min)/x.max||0,vt(x.b+(r?r(w):w)*x.v)+x.u}},he=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var n=vt(Math.round(parseFloat(r)/t)*t*e);return(n-n%1)/e+(z(r)?0:ee(r))}},le=function(t,e){var r,n,i=H(t);return!i&&L(t)&&(r=i=t.radius||M,t.values?(t=se(t.values),(n=!z(t[0]))&&(r*=r)):t=he(t.increment)),Kt(e,i?D(t)?function(e){return n=t(e),Math.abs(n-e)<=r?n:e}:function(e){for(var i,s,a=parseFloat(n?e.x:e),o=parseFloat(n?e.y:0),u=M,h=0,l=t.length;l--;)(i=n?(i=t[l].x-a)*i+(s=t[l].y-o)*s:Math.abs(t[l]-a))<u&&(u=i,h=l);return h=!r||u<=r?t[h]:e,n||h===e||z(e)?h:h+ee(e)}:he(t))},fe=function(t,e,r,n){return Kt(H(t)?!e:!0===r?!!(r=0):!n,(function(){return H(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(n=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+.99*r))/r)*r*n)/n}))},ce=function(t,e,r){return Kt(r,(function(r){return t[~~e(r)]}))},de=function(t){for(var e,r,n,i,s=0,a="";~(e=t.indexOf("random(",s));)n=t.indexOf(")",e),i="["===t.charAt(e+7),r=t.substr(e+7,n-e-7).match(i?W:N),a+=t.substr(s,e-s)+fe(i?r:+r[0],i?0:+r[1],+r[2]||1e-5),s=n+1;return a+t.substr(s,t.length-s)},pe=function(t,e,r,n,i){var s=e-t,a=n-r;return Kt(i,(function(e){return r+((e-t)/s*a||0)}))},_e=function(t,e,r){var n,i,s,a=t.labels,o=M;for(n in a)(i=a[n]-e)<0==!!r&&i&&o>(i=Math.abs(i))&&(s=n,o=i);return s},me=function(t,e,r){var n,i,s,a=t.vars,u=a[e],h=o,l=t._ctx;if(u)return n=a[e+"Params"],i=a.callbackScope||t,r&&at.length&&wt(),l&&(o=l),s=n?u.apply(i,n):u.call(i),o=h,s},ge=function(t){return Dt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!a),t.progress()<1&&me(t,"onInterrupt"),t},ve=[],ye=function(t){if(t)if(t=!t.name&&t.default||t,B()||t.headless){var e=t.name,r=D(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:et,render:lr,add:Ge,kill:cr,modifier:fr,rawVars:0},s={targetTest:0,get:0,getSetter:ar,aliases:{},register:0};if(Ae(),t!==n){if(ut[e])return;St(n,St(Ct(t,i),s)),kt(n.prototype,kt(i,Ct(t,s))),ut[n.prop=e]=n,t.targetTest&&(ft.push(n),st[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}tt(e,n),t.register&&t.register(Er,n,_r)}else ve.push(t)},Te=255,we={aqua:[0,Te,Te],lime:[0,Te,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Te],navy:[0,0,128],white:[Te,Te,Te],olive:[128,128,0],yellow:[Te,Te,0],orange:[Te,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Te,0,0],pink:[Te,192,203],cyan:[0,Te,Te],transparent:[Te,Te,Te,0]},xe=function(t,e,r){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*Te+.5|0},be=function(t,e,r){var n,i,s,a,o,u,h,l,f,c,d=t?z(t)?[t>>16,t>>8&Te,t&Te]:0:we.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),we[t])d=we[t];else if("#"===t.charAt(0)){if(t.length<6&&(n=t.charAt(1),i=t.charAt(2),s=t.charAt(3),t="#"+n+n+i+i+s+s+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(d=parseInt(t.substr(1,6),16))>>16,d>>8&Te,d&Te,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&Te,t&Te]}else if("hsl"===t.substr(0,3))if(d=c=t.match(N),e){if(~t.indexOf("="))return d=t.match(X),r&&d.length<4&&(d[3]=1),d}else a=+d[0]%360/360,o=+d[1]/100,n=2*(u=+d[2]/100)-(i=u<=.5?u*(o+1):u+o-u*o),d.length>3&&(d[3]*=1),d[0]=xe(a+1/3,n,i),d[1]=xe(a,n,i),d[2]=xe(a-1/3,n,i);else d=t.match(N)||we.transparent;d=d.map(Number)}return e&&!c&&(n=d[0]/Te,i=d[1]/Te,s=d[2]/Te,u=((h=Math.max(n,i,s))+(l=Math.min(n,i,s)))/2,h===l?a=o=0:(f=h-l,o=u>.5?f/(2-h-l):f/(h+l),a=h===n?(i-s)/f+(i<s?6:0):h===i?(s-n)/f+2:(n-i)/f+4,a*=60),d[0]=~~(a+.5),d[1]=~~(100*o+.5),d[2]=~~(100*u+.5)),r&&d.length<4&&(d[3]=1),d},Me=function(t){var e=[],r=[],n=-1;return t.split(Se).forEach((function(t){var i=t.match(j)||[];e.push.apply(e,i),r.push(n+=i.length+1)})),e.c=r,e},Oe=function(t,e,r){var n,i,s,a,o="",u=(t+o).match(Se),h=e?"hsla(":"rgba(",l=0;if(!u)return t;if(u=u.map((function(t){return(t=be(t,e,1))&&h+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),r&&(s=Me(t),(n=r.c).join(o)!==s.c.join(o)))for(a=(i=t.replace(Se,"1").split(j)).length-1;l<a;l++)o+=i[l]+(~n.indexOf(l)?u.shift()||h+"0,0,0,0)":(s.length?s:u.length?u:r).shift());if(!i)for(a=(i=t.split(Se)).length-1;l<a;l++)o+=i[l]+u[l];return o+i[a]},Se=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in we)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),ke=/hsl[a]?\(/,Ee=function(t){var e,r=t.join(" ");if(Se.lastIndex=0,Se.test(r))return e=ke.test(r),t[1]=Oe(t[1],e),t[0]=Oe(t[0],e,Me(t[1])),!0},Ce=function(){var t,e,r,n,i,s,a=Date.now,o=500,u=33,d=a(),p=d,m=1e3/240,g=m,v=[],y=function r(h){var l,f,c,_,y=a()-p,T=!0===h;if((y>o||y<0)&&(d+=y-u),((l=(c=(p+=y)-d)-g)>0||T)&&(_=++n.frame,i=c-1e3*n.time,n.time=c/=1e3,g+=l+(l>=m?4:m-l),f=1),T||(t=e(r)),f)for(s=0;s<v.length;s++)v[s](c,i,_,h)};return n={time:0,frame:0,tick:function(){y(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){c&&(!l&&B()&&(h=l=window,f=h.document||{},Q.gsap=Er,(h.gsapVersions||(h.gsapVersions=[])).push(Er.version),$(Z||h.GreenSockGlobals||!h.gsap&&h||{}),ve.forEach(ye)),r="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&n.sleep(),e=r||function(t){return setTimeout(t,g-1e3*n.time+1|0)},_=1,y(2))},sleep:function(){(r?cancelAnimationFrame:clearTimeout)(t),_=0,e=et},lagSmoothing:function(t,e){o=t||1/0,u=Math.min(e||33,o)},fps:function(t){m=1e3/(t||240),g=1e3*n.time+m},add:function(t,e,r){var i=e?function(e,r,s,a){t(e,r,s,a),n.remove(i)}:t;return n.remove(t),v[r?"unshift":"push"](i),Ae(),i},remove:function(t,e){~(e=v.indexOf(t))&&v.splice(e,1)&&s>=e&&s--},_listeners:v}}(),Ae=function(){return!_&&Ce.wake()},Pe={},Re=/^[\d.\-M][\d.\-,\s]/,De=/["']/g,ze=function(t){for(var e,r,n,i={},s=t.substr(1,t.length-3).split(":"),a=s[0],o=1,u=s.length;o<u;o++)r=s[o],e=o!==u-1?r.lastIndexOf(","):r.length,n=r.substr(0,e),i[a]=isNaN(n)?n.replace(De,"").trim():+n,a=r.substr(e+1).trim();return i},Fe=function(t){return function(e){return 1-t(1-e)}},Le=function t(e,r){for(var n,i=e._first;i;)i instanceof je?t(i,r):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===r||(i.timeline?t(i.timeline,r):(n=i._ease,i._ease=i._yEase,i._yEase=n,i._yoyo=r)),i=i._next},Ie=function(t,e){return t&&(D(t)?t:Pe[t]||function(t){var e,r,n,i,s=(t+"").split("("),a=Pe[s[0]];return a&&s.length>1&&a.config?a.config.apply(null,~t.indexOf("{")?[ze(s[1])]:(e=t,r=e.indexOf("(")+1,n=e.indexOf(")"),i=e.indexOf("(",r),e.substring(r,~i&&i<n?e.indexOf(")",n+1):n)).split(",").map(Mt)):Pe._CE&&Re.test(t)?Pe._CE("",t):a}(t))||e},Be=function(t,e,r,n){void 0===r&&(r=function(t){return 1-e(1-t)}),void 0===n&&(n=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,s={easeIn:e,easeOut:r,easeInOut:n};return mt(t,(function(t){for(var e in Pe[t]=Q[t]=s,Pe[i=t.toLowerCase()]=r,s)Pe[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Pe[t+"."+e]=s[e]})),s},Ye=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Ue=function t(e,r,n){var i=r>=1?r:1,s=(n||(e?.3:.45))/(r<1?r:1),a=s/S*(Math.asin(1/i)||0),o=function(t){return 1===t?1:i*Math.pow(2,-10*t)*P((t-a)*s)+1},u="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:Ye(o);return s=S/s,u.config=function(r,n){return t(e,r,n)},u},He=function t(e,r){void 0===r&&(r=1.70158);var n=function(t){return t?--t*t*((r+1)*t+r)+1:0},i="out"===e?n:"in"===e?function(t){return 1-n(1-t)}:Ye(n);return i.config=function(r){return t(e,r)},i};mt("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var r=e<5?e+1:e;Be(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},(function(t){return 1-Math.pow(1-t,r)}),(function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2}))})),Pe.Linear.easeNone=Pe.none=Pe.Linear.easeIn,Be("Elastic",Ue("in"),Ue("out"),Ue()),m=7.5625,y=2*(v=1/(g=2.75)),T=2.5*v,Be("Bounce",(function(t){return 1-w(1-t)}),w=function(t){return t<v?m*t*t:t<y?m*Math.pow(t-1.5/g,2)+.75:t<T?m*(t-=2.25/g)*t+.9375:m*Math.pow(t-2.625/g,2)+.984375}),Be("Expo",(function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)})),Be("Circ",(function(t){return-(C(1-t*t)-1)})),Be("Sine",(function(t){return 1===t?1:1-A(t*k)})),Be("Back",He("in"),He("out"),He()),Pe.SteppedEase=Pe.steps=Q.SteppedEase={config:function(t,e){void 0===t&&(t=1);var r=1/t,n=t+(e?0:1),i=e?1:0;return function(t){return((n*te(0,.99999999,t)|0)+i)*r}}},b.ease=Pe["quad.out"],mt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return ct+=t+","+t+"Params,"}));var Ne=function(t,e){this.id=E++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:_t,this.set=e?e.getSetter:ar},Xe=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,Gt(this,+t.duration,1,1),this.data=t.data,o&&(this._ctx=o,o.data.push(this)),_||Ce.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Gt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Ae(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Ht(this,t),!r._dp||r.parent||Nt(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&Xt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===O||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),bt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+It(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+It(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?Bt(this._tTime,r)+1:1},e.timeScale=function(t,e){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var r=this.parent&&this._ts?Yt(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(te(-Math.abs(this._delay),this.totalDuration(),r),!1!==e),Ut(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ae(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==O&&(this._tTime-=O)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Xt(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(I(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Yt(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=it);var e=a;return a=t,xt(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),a=e,this},e.globalTime=function(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):r},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,Qt(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Qt(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime($t(this,t),I(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,I(e)),this._dur||(this._zTime=-1e-8),this},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,r=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=r&&t<this.endTime(!0)-O))},e.eventCallback=function(t,e,r){var n=this.vars;return arguments.length>1?(e?(n[t]=e,r&&(n[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete n[t],this):n[t]},e.then=function(t){var e=this;return new Promise((function(r){var n=D(t)?t:Ot,i=function(){var t=e.then;e.then=null,D(n)&&(n=n(e))&&(n.then||n===e)&&(e.then=t),r(n),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i}))},e.kill=function(){ge(this)},t}();St(Xe.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:-1e-8,_prom:0,_ps:!1,_rts:1});var je=function(t){function e(e,r){var i;return void 0===e&&(e={}),(i=t.call(this,e)||this).labels={},i.smoothChildTiming=!!e.smoothChildTiming,i.autoRemoveChildren=!!e.autoRemoveChildren,i._sort=I(e.sortChildren),u&&Xt(e.parent||u,n(i),r),e.reversed&&i.reverse(),e.paused&&i.paused(!0),e.scrollTrigger&&jt(n(i),e.scrollTrigger),i}i(e,t);var r=e.prototype;return r.to=function(t,e,r){return Jt(0,arguments,this),this},r.from=function(t,e,r){return Jt(1,arguments,this),this},r.fromTo=function(t,e,r,n){return Jt(2,arguments,this),this},r.set=function(t,e,r){return e.duration=0,e.parent=this,At(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new er(t,e,$t(this,r),1),this},r.call=function(t,e,r){return Xt(this,er.delayedCall(0,t,e),r)},r.staggerTo=function(t,e,r,n,i,s,a){return r.duration=e,r.stagger=r.stagger||n,r.onComplete=s,r.onCompleteParams=a,r.parent=this,new er(t,r,$t(this,i)),this},r.staggerFrom=function(t,e,r,n,i,s,a){return r.runBackwards=1,At(r).immediateRender=I(r.immediateRender),this.staggerTo(t,e,r,n,i,s,a)},r.staggerFromTo=function(t,e,r,n,i,s,a,o){return n.startAt=r,At(n).immediateRender=I(n.immediateRender),this.staggerTo(t,e,n,i,s,a,o)},r.render=function(t,e,r){var n,i,s,o,h,l,f,c,d,p,_,m,g=this._time,v=this._dirty?this.totalDuration():this._tDur,y=this._dur,T=t<=0?0:vt(t),w=this._zTime<0!=t<0&&(this._initted||!y);if(this!==u&&T>v&&t>=0&&(T=v),T!==this._tTime||r||w){if(g!==this._time&&y&&(T+=this._time-g,t+=this._time-g),n=T,d=this._start,l=!(c=this._ts),w&&(y||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(_=this._yoyo,h=y+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*h+t,e,r);if(n=vt(T%h),T===v?(o=this._repeat,n=y):((o=~~(p=vt(T/h)))&&o===p&&(n=y,o--),n>y&&(n=y)),p=Bt(this._tTime,h),!g&&this._tTime&&p!==o&&this._tTime-p*h-this._dur<=0&&(p=o),_&&1&o&&(n=y-n,m=1),o!==p&&!this._lock){var x=_&&1&p,b=x===(_&&1&o);if(o<p&&(x=!x),g=x?0:T%y?y:T,this._lock=1,this.render(g||(m?0:vt(o*h)),e,!y)._lock=0,this._tTime=T,!e&&this.parent&&me(this,"onRepeat"),this.vars.repeatRefresh&&!m&&(this.invalidate()._lock=1),g&&g!==this._time||l!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(y=this._dur,v=this._tDur,b&&(this._lock=2,g=x?y:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!m&&this.invalidate()),this._lock=0,!this._ts&&!l)return this;Le(this,m)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(f=function(t,e,r){var n;if(r>e)for(n=t._first;n&&n._start<=r;){if("isPause"===n.data&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=r;){if("isPause"===n.data&&n._start<e)return n;n=n._prev}}(this,vt(g),vt(n)),f&&(T-=n-(n=f._start))),this._tTime=T,this._time=n,this._act=!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,g=0),!g&&T&&!e&&!p&&(me(this,"onStart"),this._tTime!==T))return this;if(n>=g&&t>=0)for(i=this._first;i;){if(s=i._next,(i._act||n>=i._start)&&i._ts&&f!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(n-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(n-i._start)*i._ts,e,r),n!==this._time||!this._ts&&!l){f=0,s&&(T+=this._zTime=-1e-8);break}}i=s}else{i=this._last;for(var M=t<0?t:n;i;){if(s=i._prev,(i._act||M<=i._end)&&i._ts&&f!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(M-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(M-i._start)*i._ts,e,r||a&&xt(i)),n!==this._time||!this._ts&&!l){f=0,s&&(T+=this._zTime=M?-1e-8:O);break}}i=s}}if(f&&!e&&(this.pause(),f.render(n>=g?0:-1e-8)._zTime=n>=g?1:-1,this._ts))return this._start=d,Ut(this),this.render(t,e,r);this._onUpdate&&!e&&me(this,"onUpdate",!0),(T===v&&this._tTime>=this.totalDuration()||!T&&g)&&(d!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!y)&&(T===v&&this._ts>0||!T&&this._ts<0)&&Dt(this,1),e||t<0&&!g||!T&&!g&&v||(me(this,T===v&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(T<v&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(t,e){var r=this;if(z(e)||(e=$t(this,e,t)),!(t instanceof Xe)){if(H(t))return t.forEach((function(t){return r.add(t,e)})),this;if(R(t))return this.addLabel(t,e);if(!D(t))return this;t=er.delayedCall(0,t)}return this!==t?Xt(this,t,e):this},r.getChildren=function(t,e,r,n){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===n&&(n=-M);for(var i=[],s=this._first;s;)s._start>=n&&(s instanceof er?e&&i.push(s):(r&&i.push(s),t&&i.push.apply(i,s.getChildren(!0,e,r)))),s=s._next;return i},r.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},r.remove=function(t){return R(t)?this.removeLabel(t):D(t)?this.killTweensOf(t):(t.parent===this&&Rt(this,t),t===this._recent&&(this._recent=this._last),zt(this))},r.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=vt(Ce.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,r),this._forcing=0,this):this._tTime},r.addLabel=function(t,e){return this.labels[t]=$t(this,e),this},r.removeLabel=function(t){return delete this.labels[t],this},r.addPause=function(t,e,r){var n=er.delayedCall(0,e||et,r);return n.data="isPause",this._hasPause=1,Xt(this,n,$t(this,t))},r.removePause=function(t){var e=this._first;for(t=$t(this,t);e;)e._start===t&&"isPause"===e.data&&Dt(e),e=e._next},r.killTweensOf=function(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)qe!==n[i]&&n[i].kill(t,e);return this},r.getTweensOf=function(t,e){for(var r,n=[],i=se(t),s=this._first,a=z(e);s;)s instanceof er?Tt(s._targets,i)&&(a?(!qe||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())&&n.push(s):(r=s.getTweensOf(i,e)).length&&n.push.apply(n,r),s=s._next;return n},r.tweenTo=function(t,e){e=e||{};var r,n=this,i=$t(n,t),s=e,a=s.startAt,o=s.onStart,u=s.onStartParams,h=s.immediateRender,l=er.to(n,St({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(a&&"time"in a?a.time:n._time))/n.timeScale())||O,onStart:function(){if(n.pause(),!r){var t=e.duration||Math.abs((i-(a&&"time"in a?a.time:n._time))/n.timeScale());l._dur!==t&&Gt(l,t,0,1).render(l._time,!0,!0),r=1}o&&o.apply(l,u||[])}},e));return h?l.render(0):l},r.tweenFromTo=function(t,e,r){return this.tweenTo(e,St({startAt:{time:$t(this,t)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(t){return void 0===t&&(t=this._time),_e(this,$t(this,t))},r.previousLabel=function(t){return void 0===t&&(t=this._time),_e(this,$t(this,t),1)},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+O)},r.shiftChildren=function(t,e,r){void 0===r&&(r=0);for(var n,i=this._first,s=this.labels;i;)i._start>=r&&(i._start+=t,i._end+=t),i=i._next;if(e)for(n in s)s[n]>=r&&(s[n]+=t);return zt(this)},r.invalidate=function(e){var r=this._first;for(this._lock=0;r;)r.invalidate(e),r=r._next;return t.prototype.invalidate.call(this,e)},r.clear=function(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),zt(this)},r.totalDuration=function(t){var e,r,n,i=0,s=this,a=s._last,o=M;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(n=s.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),(r=a._start)>o&&s._sort&&a._ts&&!s._lock?(s._lock=1,Xt(s,a,r-a._delay,1)._lock=0):o=r,r<0&&a._ts&&(i-=r,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=r/s._ts,s._time-=r,s._tTime-=r),s.shiftChildren(-r,!1,-Infinity),o=0),a._end>i&&a._ts&&(i=a._end),a=e;Gt(s,s===u&&s._time>i?s._time:i,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(t){if(u._ts&&(bt(u,Yt(t,u)),d=Ce.frame),Ce.frame>=lt){lt+=x.autoSleep||120;var e=u._first;if((!e||!e._ts)&&x.autoSleep&&Ce._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Ce.sleep()}}},e}(Xe);St(je.prototype,{_lock:0,_hasPause:0,_forcing:0});var qe,Ve,We=function(t,e,r,n,i,s,a){var o,u,h,l,f,c,d,p,_=new _r(this._pt,t,e,0,1,hr,null,i),m=0,g=0;for(_.b=r,_.e=n,r+="",(d=~(n+="").indexOf("random("))&&(n=de(n)),s&&(s(p=[r,n],t,e),r=p[0],n=p[1]),u=r.match(q)||[];o=q.exec(n);)l=o[0],f=n.substring(m,o.index),h?h=(h+1)%5:"rgba("===f.substr(-5)&&(h=1),l!==u[g++]&&(c=parseFloat(u[g-1])||0,_._pt={_next:_._pt,p:f||1===g?f:",",s:c,c:"="===l.charAt(1)?yt(c,l)-c:parseFloat(l)-c,m:h&&h<4?Math.round:0},m=q.lastIndex);return _.c=m<n.length?n.substring(m,n.length):"",_.fp=a,(V.test(n)||d)&&(_.e=0),this._pt=_,_},Ge=function(t,e,r,n,i,s,a,o,u,h){D(n)&&(n=n(i||0,t,s));var l,f=t[e],c="get"!==r?r:D(f)?u?t[e.indexOf("set")||!D(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():f,d=D(f)?u?ir:nr:rr;if(R(n)&&(~n.indexOf("random(")&&(n=de(n)),"="===n.charAt(1)&&((l=yt(c,n)+(ee(c)||0))||0===l)&&(n=l)),!h||c!==n||Ve)return isNaN(c*n)||""===n?(!f&&!(e in t)&&J(e,n),We.call(this,t,e,c,n,d,o||x.stringFilter,u)):(l=new _r(this._pt,t,e,+c||0,n-(c||0),"boolean"==typeof f?ur:or,0,d),u&&(l.fp=u),a&&l.modifier(a,this,t),this._pt=l)},Qe=function(t,e,r,n,i,s){var a,o,u,h;if(ut[t]&&!1!==(a=new ut[t]).init(i,a.rawVars?e[t]:function(t,e,r,n,i){if(D(t)&&(t=Je(t,i,e,r,n)),!L(t)||t.style&&t.nodeType||H(t)||U(t))return R(t)?Je(t,i,e,r,n):t;var s,a={};for(s in t)a[s]=Je(t[s],i,e,r,n);return a}(e[t],n,i,s,r),r,n,s)&&(r._pt=o=new _r(r._pt,i,t,0,1,a.render,a,0,a.priority),r!==p))for(u=r._ptLookup[r._targets.indexOf(i)],h=a._props.length;h--;)u[a._props[h]]=o;return a},Ze=function t(e,r,n){var i,o,h,l,f,c,d,p,_,m,g,v,y,T=e.vars,w=T.ease,x=T.startAt,S=T.immediateRender,k=T.lazy,E=T.onUpdate,C=T.runBackwards,A=T.yoyoEase,P=T.keyframes,R=T.autoRevert,D=e._dur,z=e._startAt,F=e._targets,L=e.parent,B=L&&"nested"===L.data?L.vars.targets:F,Y="auto"===e._overwrite&&!s,U=e.timeline;if(U&&(!P||!w)&&(w="none"),e._ease=Ie(w,b.ease),e._yEase=A?Fe(Ie(!0===A?w:A,b.ease)):0,A&&e._yoyo&&!e._repeat&&(A=e._yEase,e._yEase=e._ease,e._ease=A),e._from=!U&&!!T.runBackwards,!U||P&&!T.stagger){if(v=(p=F[0]?pt(F[0]).harness:0)&&T[p.prop],i=Ct(T,st),z&&(z._zTime<0&&z.progress(1),r<0&&C&&S&&!R?z.render(-1,!0):z.revert(C&&D?nt:rt),z._lazy=0),x){if(Dt(e._startAt=er.set(F,St({data:"isStart",overwrite:!1,parent:L,immediateRender:!0,lazy:!z&&I(k),startAt:null,delay:0,onUpdate:E&&function(){return me(e,"onUpdate")},stagger:0},x))),e._startAt._dp=0,e._startAt._sat=e,r<0&&(a||!S&&!R)&&e._startAt.revert(nt),S&&D&&r<=0&&n<=0)return void(r&&(e._zTime=r))}else if(C&&D&&!z)if(r&&(S=!1),h=St({overwrite:!1,data:"isFromStart",lazy:S&&!z&&I(k),immediateRender:S,stagger:0,parent:L},i),v&&(h[p.prop]=v),Dt(e._startAt=er.set(F,h)),e._startAt._dp=0,e._startAt._sat=e,r<0&&(a?e._startAt.revert(nt):e._startAt.render(-1,!0)),e._zTime=r,S){if(!r)return}else t(e._startAt,O,O);for(e._pt=e._ptCache=0,k=D&&I(k)||k&&!D,o=0;o<F.length;o++){if(d=(f=F[o])._gsap||dt(F)[o]._gsap,e._ptLookup[o]=m={},ot[d.id]&&at.length&&wt(),g=B===F?o:B.indexOf(f),p&&!1!==(_=new p).init(f,v||i,e,g,B)&&(e._pt=l=new _r(e._pt,f,_.name,0,1,_.render,_,0,_.priority),_._props.forEach((function(t){m[t]=l})),_.priority&&(c=1)),!p||v)for(h in i)ut[h]&&(_=Qe(h,i,e,g,f,B))?_.priority&&(c=1):m[h]=l=Ge.call(e,f,h,"get",i[h],g,B,0,T.stringFilter);e._op&&e._op[o]&&e.kill(f,e._op[o]),Y&&e._pt&&(qe=e,u.killTweensOf(f,m,e.globalTime(r)),y=!e.parent,qe=0),e._pt&&k&&(ot[d.id]=1)}c&&pr(e),e._onInit&&e._onInit(e)}e._onUpdate=E,e._initted=(!e._op||e._pt)&&!y,P&&r<=0&&U.render(M,!0,!0)},$e=function(t,e,r,n){var i,s,a=e.ease||n||"power1.inOut";if(H(e))s=r[t]||(r[t]=[]),e.forEach((function(t,r){return s.push({t:r/(e.length-1)*100,v:t,e:a})}));else for(i in e)s=r[i]||(r[i]=[]),"ease"===i||s.push({t:parseFloat(t),v:e[i],e:a})},Je=function(t,e,r,n,i){return D(t)?t.call(e,r,n,i):R(t)&&~t.indexOf("random(")?de(t):t},Ke=ct+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",tr={};mt(Ke+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return tr[t]=1}));var er=function(t){function e(e,r,i,a){var o;"number"==typeof r&&(i.duration=r,r=i,i=null);var h,l,f,c,d,p,_,m,g=(o=t.call(this,a?r:At(r))||this).vars,v=g.duration,y=g.delay,T=g.immediateRender,w=g.stagger,b=g.overwrite,M=g.keyframes,O=g.defaults,S=g.scrollTrigger,k=g.yoyoEase,E=r.parent||u,C=(H(e)||U(e)?z(e[0]):"length"in r)?[e]:se(e);if(o._targets=C.length?dt(C):K("GSAP target "+e+" not found. https://gsap.com",!x.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=b,M||w||Y(v)||Y(y)){if(r=o.vars,(h=o.timeline=new je({data:"nested",defaults:O||{},targets:E&&"nested"===E.data?E.vars.targets:C})).kill(),h.parent=h._dp=n(o),h._start=0,w||Y(v)||Y(y)){if(c=C.length,_=w&&ue(w),L(w))for(d in w)~Ke.indexOf(d)&&(m||(m={}),m[d]=w[d]);for(l=0;l<c;l++)(f=Ct(r,tr)).stagger=0,k&&(f.yoyoEase=k),m&&kt(f,m),p=C[l],f.duration=+Je(v,n(o),l,p,C),f.delay=(+Je(y,n(o),l,p,C)||0)-o._delay,!w&&1===c&&f.delay&&(o._delay=y=f.delay,o._start+=y,f.delay=0),h.to(p,f,_?_(l,p,C):0),h._ease=Pe.none;h.duration()?v=y=0:o.timeline=0}else if(M){At(St(h.vars.defaults,{ease:"none"})),h._ease=Ie(M.ease||r.ease||"none");var A,P,R,D=0;if(H(M))M.forEach((function(t){return h.to(C,t,">")})),h.duration();else{for(d in f={},M)"ease"===d||"easeEach"===d||$e(d,M[d],f,M.easeEach);for(d in f)for(A=f[d].sort((function(t,e){return t.t-e.t})),D=0,l=0;l<A.length;l++)(R={ease:(P=A[l]).e,duration:(P.t-(l?A[l-1].t:0))/100*v})[d]=P.v,h.to(C,R,D),D+=R.duration;h.duration()<v&&h.to({},{duration:v-h.duration()})}}v||o.duration(v=h.duration())}else o.timeline=0;return!0!==b||s||(qe=n(o),u.killTweensOf(C),qe=0),Xt(E,n(o),i),r.reversed&&o.reverse(),r.paused&&o.paused(!0),(T||!v&&!M&&o._start===vt(E._time)&&I(T)&&Lt(n(o))&&"nested"!==E.data)&&(o._tTime=-1e-8,o.render(Math.max(0,-y)||0)),S&&jt(n(o),S),o}i(e,t);var r=e.prototype;return r.render=function(t,e,r){var n,i,s,o,u,h,l,f,c,d=this._time,p=this._tDur,_=this._dur,m=t<0,g=t>p-O&&!m?p:t<O?0:t;if(_){if(g!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==m||this._lazy){if(n=g,f=this.timeline,this._repeat){if(o=_+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*o+t,e,r);if(n=vt(g%o),g===p?(s=this._repeat,n=_):(s=~~(u=vt(g/o)))&&s===u?(n=_,s--):n>_&&(n=_),(h=this._yoyo&&1&s)&&(c=this._yEase,n=_-n),u=Bt(this._tTime,o),n===d&&!r&&this._initted&&s===u)return this._tTime=g,this;s!==u&&(f&&this._yEase&&Le(f,h),this.vars.repeatRefresh&&!h&&!this._lock&&n!==o&&this._initted&&(this._lock=r=1,this.render(vt(o*s),!0).invalidate()._lock=0))}if(!this._initted){if(qt(this,m?t:n,r,e,g))return this._tTime=0,this;if(!(d===this._time||r&&this.vars.repeatRefresh&&s!==u))return this;if(_!==this._dur)return this.render(t,e,r)}if(this._tTime=g,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=l=(c||this._ease)(n/_),this._from&&(this.ratio=l=1-l),!d&&g&&!e&&!u&&(me(this,"onStart"),this._tTime!==g))return this;for(i=this._pt;i;)i.r(l,i.d),i=i._next;f&&f.render(t<0?t:f._dur*f._ease(n/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(m&&Ft(this,t,0,r),me(this,"onUpdate")),this._repeat&&s!==u&&this.vars.onRepeat&&!e&&this.parent&&me(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(m&&!this._onUpdate&&Ft(this,t,0,!0),(t||!_)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Dt(this,1),e||m&&!d||!(g||d||h)||(me(this,g===p?"onComplete":"onReverseComplete",!0),this._prom&&!(g<p&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,n){var i,s,o,u=t.ratio,h=e<0||!e&&(!t._start&&Vt(t)&&(t._initted||!Wt(t))||(t._ts<0||t._dp._ts<0)&&!Wt(t))?0:1,l=t._rDelay,f=0;if(l&&t._repeat&&(f=te(0,t._tDur,e),s=Bt(f,l),t._yoyo&&1&s&&(h=1-h),s!==Bt(t._tTime,l)&&(u=1-h,t.vars.repeatRefresh&&t._initted&&t.invalidate())),h!==u||a||n||t._zTime===O||!e&&t._zTime){if(!t._initted&&qt(t,e,n,r,f))return;for(o=t._zTime,t._zTime=e||(r?O:0),r||(r=e&&!o),t.ratio=h,t._from&&(h=1-h),t._time=0,t._tTime=f,i=t._pt;i;)i.r(h,i.d),i=i._next;e<0&&Ft(t,e,0,!0),t._onUpdate&&!r&&me(t,"onUpdate"),f&&t._repeat&&!r&&t.parent&&me(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===h&&(h&&Dt(t,1),r||a||(me(t,h?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},r.targets=function(){return this._targets},r.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},r.resetTo=function(t,e,r,n,i){_||Ce.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Ze(this,s),function(t,e,r,n,i,s,a,o){var u,h,l,f,c=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!c)for(c=t._ptCache[e]=[],l=t._ptLookup,f=t._targets.length;f--;){if((u=l[f][e])&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==e&&u.fp!==e;)u=u._next;if(!u)return Ve=1,t.vars[e]="+=0",Ze(t,a),Ve=0,o?K(e+" not eligible for reset"):1;c.push(u)}for(f=c.length;f--;)(u=(h=c[f])._pt||h).s=!n&&0!==n||i?u.s+(n||0)+s*u.c:n,u.c=r-u.s,h.e&&(h.e=gt(r)+ee(h.e)),h.b&&(h.b=u.s+ee(h.b))}(this,t,e,r,n,this._ease(s/this._dur),s,i)?this.resetTo(t,e,r,n,1):(Ht(this,0),this.parent||Pt(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?ge(this):this.scrollTrigger&&this.scrollTrigger.kill(!!a),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,qe&&!0!==qe.vars.overwrite)._first||ge(this),this.parent&&r!==this.timeline.totalDuration()&&Gt(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,s,o,u,h,l,f=this._targets,c=t?se(t):f,d=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function(t,e){for(var r=t.length,n=r===e.length;n&&r--&&t[r]===e[r];);return r<0}(f,c))return"all"===e&&(this._pt=0),ge(this);for(n=this._op=this._op||[],"all"!==e&&(R(e)&&(u={},mt(e,(function(t){return u[t]=1})),e=u),e=function(t,e){var r,n,i,s,a=t[0]?pt(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(n in r=kt({},e),o)if(n in r)for(i=(s=o[n].split(",")).length;i--;)r[s[i]]=r[n];return r}(f,e)),l=f.length;l--;)if(~c.indexOf(f[l]))for(u in i=d[l],"all"===e?(n[l]=e,o=i,s={}):(s=n[l]=n[l]||{},o=e),o)(h=i&&i[u])&&("kill"in h.d&&!0!==h.d.kill(u)||Rt(this,h,"_pt"),delete i[u]),"all"!==s&&(s[u]=1);return this._initted&&!this._pt&&p&&ge(this),this},e.to=function(t,r){return new e(t,r,arguments[2])},e.from=function(t,e){return Jt(1,arguments)},e.delayedCall=function(t,r,n,i){return new e(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:r,onReverseComplete:r,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:i})},e.fromTo=function(t,e,r){return Jt(2,arguments)},e.set=function(t,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new e(t,r)},e.killTweensOf=function(t,e,r){return u.killTweensOf(t,e,r)},e}(Xe);St(er.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),mt("staggerTo,staggerFrom,staggerFromTo",(function(t){er[t]=function(){var e=new je,r=re.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}}));var rr=function(t,e,r){return t[e]=r},nr=function(t,e,r){return t[e](r)},ir=function(t,e,r,n){return t[e](n.fp,r)},sr=function(t,e,r){return t.setAttribute(e,r)},ar=function(t,e){return D(t[e])?nr:F(t[e])&&t.setAttribute?sr:rr},or=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},ur=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},hr=function(t,e){var r=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+n,r=r._next;n+=e.c}e.set(e.t,e.p,n,e)},lr=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},fr=function(t,e,r,n){for(var i,s=this._pt;s;)i=s._next,s.p===n&&s.modifier(t,e,r),s=i},cr=function(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?Rt(this,n,"_pt"):n.dep||(e=1),n=r;return!e},dr=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},pr=function(t){for(var e,r,n,i,s=t._pt;s;){for(e=s._next,r=n;r&&r.pr>s.pr;)r=r._next;(s._prev=r?r._prev:i)?s._prev._next=s:n=s,(s._next=r)?r._prev=s:i=s,s=e}t._pt=n},_r=function(){function t(t,e,r,n,i,s,a,o,u){this.t=e,this.s=n,this.c=i,this.p=r,this.r=s||or,this.d=a||this,this.set=o||rr,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=dr,this.m=t,this.mt=r,this.tween=e},t}();mt(ct+"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(t){return st[t]=1})),Q.TweenMax=Q.TweenLite=er,Q.TimelineLite=Q.TimelineMax=je,u=new je({sortChildren:!1,defaults:b,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),x.stringFilter=Ee;var mr=[],gr={},vr=[],yr=0,Tr=0,wr=function(t){return(gr[t]||vr).map((function(t){return t()}))},xr=function(){var t=Date.now(),e=[];t-yr>2&&(wr("matchMediaInit"),mr.forEach((function(t){var r,n,i,s,a=t.queries,o=t.conditions;for(n in a)(r=h.matchMedia(a[n]).matches)&&(i=1),r!==o[n]&&(o[n]=r,s=1);s&&(t.revert(),i&&e.push(t))})),wr("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t,(function(e){return t.add(null,e)}))})),yr=t,wr("matchMedia"))},br=function(){function t(t,e){this.selector=e&&ae(e),this.data=[],this._r=[],this.isReverted=!1,this.id=Tr++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){D(t)&&(r=e,e=t,t=D);var n=this,i=function(){var t,i=o,s=n.selector;return i&&i!==n&&i.data.push(n),r&&(n.selector=ae(r)),o=n,t=e.apply(n,arguments),D(t)&&n._r.push(t),o=i,n.selector=s,n.isReverted=!1,t};return n.last=i,t===D?i(n,(function(t){return n.add(null,t)})):t?n[t]=i:i},e.ignore=function(t){var e=o;o=null,t(this),o=e},e.getTweens=function(){var e=[];return this.data.forEach((function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof er&&!(r.parent&&"nested"===r.parent.data)&&e.push(r)})),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var r=this;if(t?function(){for(var e,n=r.getTweens(),i=r.data.length;i--;)"isFlip"===(e=r.data[i]).data&&(e.revert(),e.getChildren(!0,!0,!1).forEach((function(t){return n.splice(n.indexOf(t),1)})));for(n.map((function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-1/0,t}})).sort((function(t,e){return e.g-t.g||-1/0})).forEach((function(e){return e.t.revert(t)})),i=r.data.length;i--;)(e=r.data[i])instanceof je?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof er)&&e.revert&&e.revert(t);r._r.forEach((function(e){return e(t,r)})),r.isReverted=!0}():this.data.forEach((function(t){return t.kill&&t.kill()})),this.clear(),e)for(var n=mr.length;n--;)mr[n].id===this.id&&mr.splice(n,1)},e.revert=function(t){this.kill(t||{})},t}(),Mr=function(){function t(t){this.contexts=[],this.scope=t,o&&o.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){L(t)||(t={matches:t});var n,i,s,a=new br(0,r||this.scope),u=a.conditions={};for(i in o&&!a.selector&&(a.selector=o.selector),this.contexts.push(a),e=a.add("onMatch",e),a.queries=t,t)"all"===i?s=1:(n=h.matchMedia(t[i]))&&(mr.indexOf(a)<0&&mr.push(a),(u[i]=n.matches)&&(s=1),n.addListener?n.addListener(xr):n.addEventListener("change",xr));return s&&e(a,(function(t){return a.add(null,t)})),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),Or={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach((function(t){return ye(t)}))},timeline:function(t){return new je(t)},getTweensOf:function(t,e){return u.getTweensOf(t,e)},getProperty:function(t,e,r,n){R(t)&&(t=se(t)[0]);var i=pt(t||{}).get,s=r?Ot:Mt;return"native"===r&&(r=""),t?e?s((ut[e]&&ut[e].get||i)(t,e,r,n)):function(e,r,n){return s((ut[e]&&ut[e].get||i)(t,e,r,n))}:t},quickSetter:function(t,e,r){if((t=se(t)).length>1){var n=t.map((function(t){return Er.quickSetter(t,e,r)})),i=n.length;return function(t){for(var e=i;e--;)n[e](t)}}t=t[0]||{};var s=ut[e],a=pt(t),o=a.harness&&(a.harness.aliases||{})[e]||e,u=s?function(e){var n=new s;p._pt=0,n.init(t,r?e+r:e,p,0,[t]),n.render(1,n),p._pt&&lr(1,p)}:a.set(t,o);return s?u:function(e){return u(t,o,r?e+r:e,a,1)}},quickTo:function(t,e,r){var n,i=Er.to(t,St(((n={})[e]="+=0.1",n.paused=!0,n.stagger=0,n),r||{})),s=function(t,r,n){return i.resetTo(e,t,r,n)};return s.tween=i,s},isTweening:function(t){return u.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ie(t.ease,b.ease)),Et(b,t||{})},config:function(t){return Et(x,t||{})},registerEffect:function(t){var e=t.name,r=t.effect,n=t.plugins,i=t.defaults,s=t.extendTimeline;(n||"").split(",").forEach((function(t){return t&&!ut[t]&&!Q[t]&&K(e+" effect requires "+t+" plugin.")})),ht[e]=function(t,e,n){return r(se(t),St(e||{},i),n)},s&&(je.prototype[e]=function(t,r,n){return this.add(ht[e](t,L(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){Pe[t]=Ie(e)},parseEase:function(t,e){return arguments.length?Ie(t,e):Pe},getById:function(t){return u.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new je(t);for(i.smoothChildTiming=I(t.smoothChildTiming),u.remove(i),i._dp=0,i._time=i._tTime=u._time,r=u._first;r;)n=r._next,!e&&!r._dur&&r instanceof er&&r.vars.onComplete===r._targets[0]||Xt(i,r,r._start-r._delay),r=n;return Xt(u,i,0),i},context:function(t,e){return t?new br(t,e):o},matchMedia:function(t){return new Mr(t)},matchMediaRefresh:function(){return mr.forEach((function(t){var e,r,n=t.conditions;for(r in n)n[r]&&(n[r]=!1,e=1);e&&t.revert()}))||xr()},addEventListener:function(t,e){var r=gr[t]||(gr[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=gr[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},utils:{wrap:function t(e,r,n){var i=r-e;return H(e)?ce(e,t(0,e.length),r):Kt(n,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,r,n){var i=r-e,s=2*i;return H(e)?ce(e,t(0,e.length-1),r):Kt(n,(function(t){return e+((t=(s+(t-e)%s)%s||0)>i?s-t:t)}))},distribute:ue,random:fe,snap:le,normalize:function(t,e,r){return pe(t,e,0,1,r)},getUnit:ee,clamp:function(t,e,r){return Kt(r,(function(r){return te(t,e,r)}))},splitColor:be,toArray:se,selector:ae,mapRange:pe,pipe:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(r){return t(parseFloat(r))+(e||ee(r))}},interpolate:function t(e,r,n,i){var s=isNaN(e+r)?0:function(t){return(1-t)*e+t*r};if(!s){var a,o,u,h,l,f=R(e),c={};if(!0===n&&(i=1)&&(n=null),f)e={p:e},r={p:r};else if(H(e)&&!H(r)){for(u=[],h=e.length,l=h-2,o=1;o<h;o++)u.push(t(e[o-1],e[o]));h--,s=function(t){t*=h;var e=Math.min(l,~~t);return u[e](t-e)},n=r}else i||(e=kt(H(e)?[]:{},e));if(!u){for(a in r)Ge.call(c,e,a,"get",r[a]);s=function(t){return lr(t,c)||(f?e.p:e)}}}return Kt(n,s)},shuffle:oe},install:$,effects:ht,ticker:Ce,updateRoot:je.updateRoot,plugins:ut,globalTimeline:u,core:{PropTween:_r,globals:tt,Tween:er,Timeline:je,Animation:Xe,getCache:pt,_removeLinkedListItem:Rt,reverting:function(){return a},context:function(t){return t&&o&&(o.data.push(t),t._ctx=o),o},suppressOverwrites:function(t){return s=t}}};mt("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return Or[t]=er[t]})),Ce.add(je.updateRoot),p=Or.to({},{duration:0});var Sr=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},kr=function(t,e){return{name:t,headless:1,rawVars:1,init:function(t,r,n){n._onInit=function(t){var n,i;if(R(r)&&(n={},mt(r,(function(t){return n[t]=1})),r=n),e){for(i in n={},r)n[i]=e(r[i]);r=n}!function(t,e){var r,n,i,s=t._targets;for(r in e)for(n=s.length;n--;)(i=t._ptLookup[n][r])&&(i=i.d)&&(i._pt&&(i=Sr(i,r)),i&&i.modifier&&i.modifier(e[r],t,s[n],r))}(t,r)}}}},Er=Or.registerPlugin({name:"attr",init:function(t,e,r,n,i){var s,a,o;for(s in this.tween=r,e)o=t.getAttribute(s)||"",(a=this.add(t,"setAttribute",(o||0)+"",e[s],n,i,0,0,s)).op=s,a.b=o,this._props.push(s)},render:function(t,e){for(var r=e._pt;r;)a?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",headless:1,init:function(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r],0,0,0,0,0,1)}},kr("roundProps",he),kr("modifiers"),kr("snap",le))||Or;er.version=je.version=Er.version="3.13.0",c=1,B()&&Ae();Pe.Power0,Pe.Power1,Pe.Power2,Pe.Power3,Pe.Power4,Pe.Linear,Pe.Quad,Pe.Cubic,Pe.Quart,Pe.Quint,Pe.Strong,Pe.Elastic,Pe.Back,Pe.SteppedEase,Pe.Bounce,Pe.Sine,Pe.Expo,Pe.Circ;var Cr,Ar,Pr,Rr,Dr,zr,Fr,Lr,Ir={},Br=180/Math.PI,Yr=Math.PI/180,Ur=Math.atan2,Hr=/([A-Z])/g,Nr=/(left|right|width|margin|padding|x)/i,Xr=/[\s,\(]\S/,jr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},qr=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Vr=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Wr=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},Gr=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},Qr=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Zr=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},$r=function(t,e,r){return t.style[e]=r},Jr=function(t,e,r){return t.style.setProperty(e,r)},Kr=function(t,e,r){return t._gsap[e]=r},tn=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},en=function(t,e,r,n,i){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(i,s)},rn=function(t,e,r,n,i){var s=t._gsap;s[e]=r,s.renderTransform(i,s)},nn="transform",sn=nn+"Origin",an=function t(e,r){var n=this,i=this.target,s=i.style,a=i._gsap;if(e in Ir&&s){if(this.tfm=this.tfm||{},"transform"===e)return jr.transform.split(",").forEach((function(e){return t.call(n,e,r)}));if(~(e=jr[e]||e).indexOf(",")?e.split(",").forEach((function(t){return n.tfm[t]=Mn(i,t)})):this.tfm[e]=a.x?a[e]:Mn(i,e),e===sn&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(nn)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(sn,r,"")),e=nn}(s||r)&&this.props.push(e,r,s[e])},on=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},un=function(){var t,e,r=this.props,n=this.target,i=n.style,s=n._gsap;for(t=0;t<r.length;t+=3)r[t+1]?2===r[t+1]?n[r[t]](r[t+2]):n[r[t]]=r[t+2]:r[t+2]?i[r[t]]=r[t+2]:i.removeProperty("--"===r[t].substr(0,2)?r[t]:r[t].replace(Hr,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)s[e]=this.tfm[e];s.svg&&(s.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),(t=Fr())&&t.isStart||i[nn]||(on(i),s.zOrigin&&i[sn]&&(i[sn]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},hn=function(t,e){var r={target:t,props:[],revert:un,save:an};return t._gsap||Er.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach((function(t){return r.save(t)})),r},ln=function(t,e){var r=Ar.createElementNS?Ar.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Ar.createElement(t);return r&&r.style?r:Ar.createElement(t)},fn=function t(e,r,n){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(Hr,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&t(e,dn(r)||r,1)||""},cn="O,Moz,ms,Ms,Webkit".split(","),dn=function(t,e,r){var n=(e||Dr).style,i=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(cn[i]+t in n););return i<0?null:(3===i?"ms":i>=0?cn[i]:"")+t},pn=function(){"undefined"!=typeof window&&window.document&&(Cr=window,Ar=Cr.document,Pr=Ar.documentElement,Dr=ln("div")||{style:{}},ln("div"),nn=dn(nn),sn=nn+"Origin",Dr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Lr=!!dn("perspective"),Fr=Er.core.reverting,Rr=1)},_n=function(t){var e,r=t.ownerSVGElement,n=ln("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0);i.style.display="block",n.appendChild(i),Pr.appendChild(n);try{e=i.getBBox()}catch(t){}return n.removeChild(i),Pr.removeChild(n),e},mn=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},gn=function(t){var e,r;try{e=t.getBBox()}catch(n){e=_n(t),r=1}return e&&(e.width||e.height)||r||(e=_n(t)),!e||e.width||e.x||e.y?e:{x:+mn(t,["x","cx","x1"])||0,y:+mn(t,["y","cy","y1"])||0,width:0,height:0}},vn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!gn(t))},yn=function(t,e){if(e){var r,n=t.style;e in Ir&&e!==sn&&(e=nn),n.removeProperty?("ms"!==(r=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty("--"===r?e:e.replace(Hr,"-$1").toLowerCase())):n.removeAttribute(e)}},Tn=function(t,e,r,n,i,s){var a=new _r(t._pt,e,r,0,1,s?Zr:Qr);return t._pt=a,a.b=n,a.e=i,t._props.push(r),a},wn={deg:1,rad:1,turn:1},xn={grid:1,flex:1},bn=function t(e,r,n,i){var s,a,o,u,h=parseFloat(n)||0,l=(n+"").trim().substr((h+"").length)||"px",f=Dr.style,c=Nr.test(r),d="svg"===e.tagName.toLowerCase(),p=(d?"client":"offset")+(c?"Width":"Height"),_=100,m="px"===i,g="%"===i;if(i===l||!h||wn[i]||wn[l])return h;if("px"!==l&&!m&&(h=t(e,r,n,"px")),u=e.getCTM&&vn(e),(g||"%"===l)&&(Ir[r]||~r.indexOf("adius")))return s=u?e.getBBox()[c?"width":"height"]:e[p],gt(g?h/s*_:h/100*s);if(f[c?"width":"height"]=_+(m?l:i),a="rem"!==i&&~r.indexOf("adius")||"em"===i&&e.appendChild&&!d?e:e.parentNode,u&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==Ar&&a.appendChild||(a=Ar.body),(o=a._gsap)&&g&&o.width&&c&&o.time===Ce.time&&!o.uncache)return gt(h/o.width*_);if(!g||"height"!==r&&"width"!==r)(g||"%"===l)&&!xn[fn(a,"display")]&&(f.position=fn(e,"position")),a===e&&(f.position="static"),a.appendChild(Dr),s=Dr[p],a.removeChild(Dr),f.position="absolute";else{var v=e.style[r];e.style[r]=_+i,s=e[p],v?e.style[r]=v:yn(e,r)}return c&&g&&((o=pt(a)).time=Ce.time,o.width=a[p]),gt(m?s*h/_:s&&h?_/s*h:0)},Mn=function(t,e,r,n){var i;return Rr||pn(),e in jr&&"transform"!==e&&~(e=jr[e]).indexOf(",")&&(e=e.split(",")[0]),Ir[e]&&"transform"!==e?(i=Fn(t,n),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Ln(fn(t,sn))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=En[e]&&En[e](t,e,r)||fn(t,e)||_t(t,e)||("opacity"===e?1:0)),r&&!~(i+"").trim().indexOf(" ")?bn(t,e,i,r)+r:i},On=function(t,e,r,n){if(!r||"none"===r){var i=dn(e,t,1),s=i&&fn(t,i,1);s&&s!==r?(e=i,r=s):"borderColor"===e&&(r=fn(t,"borderTopColor"))}var a,o,u,h,l,f,c,d,p,_,m,g=new _r(this._pt,t.style,e,0,1,hr),v=0,y=0;if(g.b=r,g.e=n,r+="","var(--"===(n+="").substring(0,6)&&(n=fn(t,n.substring(4,n.indexOf(")")))),"auto"===n&&(f=t.style[e],t.style[e]=n,n=fn(t,e)||n,f?t.style[e]=f:yn(t,e)),Ee(a=[r,n]),n=a[1],u=(r=a[0]).match(j)||[],(n.match(j)||[]).length){for(;o=j.exec(n);)c=o[0],p=n.substring(v,o.index),l?l=(l+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(l=1),c!==(f=u[y++]||"")&&(h=parseFloat(f)||0,m=f.substr((h+"").length),"="===c.charAt(1)&&(c=yt(h,c)+m),d=parseFloat(c),_=c.substr((d+"").length),v=j.lastIndex-_.length,_||(_=_||x.units[e]||m,v===n.length&&(n+=_,g.e+=_)),m!==_&&(h=bn(t,e,f,_)||0),g._pt={_next:g._pt,p:p||1===y?p:",",s:h,c:d-h,m:l&&l<4||"zIndex"===e?Math.round:0});g.c=v<n.length?n.substring(v,n.length):""}else g.r="display"===e&&"none"===n?Zr:Qr;return V.test(n)&&(g.e=0),this._pt=g,g},Sn={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},kn=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,n,i,s=e.t,a=s.style,o=e.u,u=s._gsap;if("all"===o||!0===o)a.cssText="",n=1;else for(i=(o=o.split(",")).length;--i>-1;)r=o[i],Ir[r]&&(n=1,r="transformOrigin"===r?sn:nn),yn(s,r);n&&(yn(s,nn),u&&(u.svg&&s.removeAttribute("transform"),a.scale=a.rotate=a.translate="none",Fn(s,1),u.uncache=1,on(a)))}},En={clearProps:function(t,e,r,n,i){if("isFromStart"!==i.data){var s=t._pt=new _r(t._pt,e,r,0,0,kn);return s.u=n,s.pr=-10,s.tween=i,t._props.push(r),1}}},Cn=[1,0,0,1,0,0],An={},Pn=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Rn=function(t){var e=fn(t,nn);return Pn(e)?Cn:e.substr(7).match(X).map(gt)},Dn=function(t,e){var r,n,i,s,a=t._gsap||pt(t),o=t.style,u=Rn(t);return a.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?Cn:u:(u!==Cn||t.offsetParent||t===Pr||a.svg||(i=o.display,o.display="block",(r=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(s=1,n=t.nextElementSibling,Pr.appendChild(t)),u=Rn(t),i?o.display=i:yn(t,"display"),s&&(n?r.insertBefore(t,n):r?r.appendChild(t):Pr.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},zn=function(t,e,r,n,i,s){var a,o,u,h=t._gsap,l=i||Dn(t,!0),f=h.xOrigin||0,c=h.yOrigin||0,d=h.xOffset||0,p=h.yOffset||0,_=l[0],m=l[1],g=l[2],v=l[3],y=l[4],T=l[5],w=e.split(" "),x=parseFloat(w[0])||0,b=parseFloat(w[1])||0;r?l!==Cn&&(o=_*v-m*g)&&(u=x*(-m/o)+b*(_/o)-(_*T-m*y)/o,x=x*(v/o)+b*(-g/o)+(g*T-v*y)/o,b=u):(x=(a=gn(t)).x+(~w[0].indexOf("%")?x/100*a.width:x),b=a.y+(~(w[1]||w[0]).indexOf("%")?b/100*a.height:b)),n||!1!==n&&h.smooth?(y=x-f,T=b-c,h.xOffset=d+(y*_+T*g)-y,h.yOffset=p+(y*m+T*v)-T):h.xOffset=h.yOffset=0,h.xOrigin=x,h.yOrigin=b,h.smooth=!!n,h.origin=e,h.originIsAbsolute=!!r,t.style[sn]="0px 0px",s&&(Tn(s,h,"xOrigin",f,x),Tn(s,h,"yOrigin",c,b),Tn(s,h,"xOffset",d,h.xOffset),Tn(s,h,"yOffset",p,h.yOffset)),t.setAttribute("data-svg-origin",x+" "+b)},Fn=function(t,e){var r=t._gsap||new Ne(t);if("x"in r&&!e&&!r.uncache)return r;var n,i,s,a,o,u,h,l,f,c,d,p,_,m,g,v,y,T,w,b,M,O,S,k,E,C,A,P,R,D,z,F,L=t.style,I=r.scaleX<0,B="px",Y="deg",U=getComputedStyle(t),H=fn(t,sn)||"0";return n=i=s=u=h=l=f=c=d=0,a=o=1,r.svg=!(!t.getCTM||!vn(t)),U.translate&&("none"===U.translate&&"none"===U.scale&&"none"===U.rotate||(L[nn]=("none"!==U.translate?"translate3d("+(U.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==U.rotate?"rotate("+U.rotate+") ":"")+("none"!==U.scale?"scale("+U.scale.split(" ").join(",")+") ":"")+("none"!==U[nn]?U[nn]:"")),L.scale=L.rotate=L.translate="none"),m=Dn(t,r.svg),r.svg&&(r.uncache?(E=t.getBBox(),H=r.xOrigin-E.x+"px "+(r.yOrigin-E.y)+"px",k=""):k=!e&&t.getAttribute("data-svg-origin"),zn(t,k||H,!!k||r.originIsAbsolute,!1!==r.smooth,m)),p=r.xOrigin||0,_=r.yOrigin||0,m!==Cn&&(T=m[0],w=m[1],b=m[2],M=m[3],n=O=m[4],i=S=m[5],6===m.length?(a=Math.sqrt(T*T+w*w),o=Math.sqrt(M*M+b*b),u=T||w?Ur(w,T)*Br:0,(f=b||M?Ur(b,M)*Br+u:0)&&(o*=Math.abs(Math.cos(f*Yr))),r.svg&&(n-=p-(p*T+_*b),i-=_-(p*w+_*M))):(F=m[6],D=m[7],A=m[8],P=m[9],R=m[10],z=m[11],n=m[12],i=m[13],s=m[14],h=(g=Ur(F,R))*Br,g&&(k=O*(v=Math.cos(-g))+A*(y=Math.sin(-g)),E=S*v+P*y,C=F*v+R*y,A=O*-y+A*v,P=S*-y+P*v,R=F*-y+R*v,z=D*-y+z*v,O=k,S=E,F=C),l=(g=Ur(-b,R))*Br,g&&(v=Math.cos(-g),z=M*(y=Math.sin(-g))+z*v,T=k=T*v-A*y,w=E=w*v-P*y,b=C=b*v-R*y),u=(g=Ur(w,T))*Br,g&&(k=T*(v=Math.cos(g))+w*(y=Math.sin(g)),E=O*v+S*y,w=w*v-T*y,S=S*v-O*y,T=k,O=E),h&&Math.abs(h)+Math.abs(u)>359.9&&(h=u=0,l=180-l),a=gt(Math.sqrt(T*T+w*w+b*b)),o=gt(Math.sqrt(S*S+F*F)),g=Ur(O,S),f=Math.abs(g)>2e-4?g*Br:0,d=z?1/(z<0?-z:z):0),r.svg&&(k=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!Pn(fn(t,nn)),k&&t.setAttribute("transform",k))),Math.abs(f)>90&&Math.abs(f)<270&&(I?(a*=-1,f+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,f+=f<=0?180:-180)),e=e||r.uncache,r.x=n-((r.xPercent=n&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-n)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+B,r.y=i-((r.yPercent=i&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+B,r.z=s+B,r.scaleX=gt(a),r.scaleY=gt(o),r.rotation=gt(u)+Y,r.rotationX=gt(h)+Y,r.rotationY=gt(l)+Y,r.skewX=f+Y,r.skewY=c+Y,r.transformPerspective=d+B,(r.zOrigin=parseFloat(H.split(" ")[2])||!e&&r.zOrigin||0)&&(L[sn]=Ln(H)),r.xOffset=r.yOffset=0,r.force3D=x.force3D,r.renderTransform=r.svg?Xn:Lr?Nn:Bn,r.uncache=0,r},Ln=function(t){return(t=t.split(" "))[0]+" "+t[1]},In=function(t,e,r){var n=ee(e);return gt(parseFloat(e)+parseFloat(bn(t,"x",r+"px",n)))+n},Bn=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Nn(t,e)},Yn="0deg",Un="0px",Hn=") ",Nn=function(t,e){var r=e||this,n=r.xPercent,i=r.yPercent,s=r.x,a=r.y,o=r.z,u=r.rotation,h=r.rotationY,l=r.rotationX,f=r.skewX,c=r.skewY,d=r.scaleX,p=r.scaleY,_=r.transformPerspective,m=r.force3D,g=r.target,v=r.zOrigin,y="",T="auto"===m&&t&&1!==t||!0===m;if(v&&(l!==Yn||h!==Yn)){var w,x=parseFloat(h)*Yr,b=Math.sin(x),M=Math.cos(x);x=parseFloat(l)*Yr,w=Math.cos(x),s=In(g,s,b*w*-v),a=In(g,a,-Math.sin(x)*-v),o=In(g,o,M*w*-v+v)}_!==Un&&(y+="perspective("+_+Hn),(n||i)&&(y+="translate("+n+"%, "+i+"%) "),(T||s!==Un||a!==Un||o!==Un)&&(y+=o!==Un||T?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+Hn),u!==Yn&&(y+="rotate("+u+Hn),h!==Yn&&(y+="rotateY("+h+Hn),l!==Yn&&(y+="rotateX("+l+Hn),f===Yn&&c===Yn||(y+="skew("+f+", "+c+Hn),1===d&&1===p||(y+="scale("+d+", "+p+Hn),g.style[nn]=y||"translate(0, 0)"},Xn=function(t,e){var r,n,i,s,a,o=e||this,u=o.xPercent,h=o.yPercent,l=o.x,f=o.y,c=o.rotation,d=o.skewX,p=o.skewY,_=o.scaleX,m=o.scaleY,g=o.target,v=o.xOrigin,y=o.yOrigin,T=o.xOffset,w=o.yOffset,x=o.forceCSS,b=parseFloat(l),M=parseFloat(f);c=parseFloat(c),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),c+=p),c||d?(c*=Yr,d*=Yr,r=Math.cos(c)*_,n=Math.sin(c)*_,i=Math.sin(c-d)*-m,s=Math.cos(c-d)*m,d&&(p*=Yr,a=Math.tan(d-p),i*=a=Math.sqrt(1+a*a),s*=a,p&&(a=Math.tan(p),r*=a=Math.sqrt(1+a*a),n*=a)),r=gt(r),n=gt(n),i=gt(i),s=gt(s)):(r=_,s=m,n=i=0),(b&&!~(l+"").indexOf("px")||M&&!~(f+"").indexOf("px"))&&(b=bn(g,"x",l,"px"),M=bn(g,"y",f,"px")),(v||y||T||w)&&(b=gt(b+v-(v*r+y*i)+T),M=gt(M+y-(v*n+y*s)+w)),(u||h)&&(a=g.getBBox(),b=gt(b+u/100*a.width),M=gt(M+h/100*a.height)),a="matrix("+r+","+n+","+i+","+s+","+b+","+M+")",g.setAttribute("transform",a),x&&(g.style[nn]=a)},jn=function(t,e,r,n,i){var s,a,o=360,u=R(i),h=parseFloat(i)*(u&&~i.indexOf("rad")?Br:1)-n,l=n+h+"deg";return u&&("short"===(s=i.split("_")[1])&&(h%=o)!==h%180&&(h+=h<0?o:-360),"cw"===s&&h<0?h=(h+36e9)%o-~~(h/o)*o:"ccw"===s&&h>0&&(h=(h-36e9)%o-~~(h/o)*o)),t._pt=a=new _r(t._pt,e,r,n,h,Vr),a.e=l,a.u="deg",t._props.push(r),a},qn=function(t,e){for(var r in e)t[r]=e[r];return t},Vn=function(t,e,r){var n,i,s,a,o,u,h,l=qn({},r._gsap),f=r.style;for(i in l.svg?(s=r.getAttribute("transform"),r.setAttribute("transform",""),f[nn]=e,n=Fn(r,1),yn(r,nn),r.setAttribute("transform",s)):(s=getComputedStyle(r)[nn],f[nn]=e,n=Fn(r,1),f[nn]=s),Ir)(s=l[i])!==(a=n[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(o=ee(s)!==(h=ee(a))?bn(r,i,s,h):parseFloat(s),u=parseFloat(a),t._pt=new _r(t._pt,n,i,o,u-o,qr),t._pt.u=h||0,t._props.push(i));qn(n,l)};mt("padding,margin,Width,Radius",(function(t,e){var r="Top",n="Right",i="Bottom",s="Left",a=(e<3?[r,n,i,s]:[r+s,r+n,i+n,i+s]).map((function(r){return e<2?t+r:"border"+r+t}));En[e>1?"border"+t:t]=function(t,e,r,n,i){var s,o;if(arguments.length<4)return s=a.map((function(e){return Mn(t,e,r)})),5===(o=s.join(" ")).split(s[0]).length?s[0]:o;s=(n+"").split(" "),o={},a.forEach((function(t,e){return o[t]=s[e]=s[e]||s[(e-1)/2|0]})),t.init(e,o,i)}}));var Wn,Gn,Qn,Zn={name:"css",register:pn,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,n,i){var s,a,o,u,h,l,f,c,d,p,_,m,g,v,y,T,w,b,M,O,S=this._props,k=t.style,E=r.vars.startAt;for(f in Rr||pn(),this.styles=this.styles||hn(t),T=this.styles.props,this.tween=r,e)if("autoRound"!==f&&(a=e[f],!ut[f]||!Qe(f,e,r,n,t,i)))if(h=typeof a,l=En[f],"function"===h&&(h=typeof(a=a.call(r,n,t,i))),"string"===h&&~a.indexOf("random(")&&(a=de(a)),l)l(this,t,f,a,r)&&(y=1);else if("--"===f.substr(0,2))s=(getComputedStyle(t).getPropertyValue(f)+"").trim(),a+="",Se.lastIndex=0,Se.test(s)||(c=ee(s),d=ee(a)),d?c!==d&&(s=bn(t,f,s,d)+d):c&&(a+=c),this.add(k,"setProperty",s,a,n,i,0,0,f),S.push(f),T.push(f,0,k[f]);else if("undefined"!==h){if(E&&f in E?(s="function"==typeof E[f]?E[f].call(r,n,t,i):E[f],R(s)&&~s.indexOf("random(")&&(s=de(s)),ee(s+"")||"auto"===s||(s+=x.units[f]||ee(Mn(t,f))||""),"="===(s+"").charAt(1)&&(s=Mn(t,f))):s=Mn(t,f),u=parseFloat(s),(p="string"===h&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),f in jr&&("autoAlpha"===f&&(1===u&&"hidden"===Mn(t,"visibility")&&o&&(u=0),T.push("visibility",0,k.visibility),Tn(this,k,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==f&&"transform"!==f&&~(f=jr[f]).indexOf(",")&&(f=f.split(",")[0])),_=f in Ir)if(this.styles.save(f),"string"===h&&"var(--"===a.substring(0,6)&&(a=fn(t,a.substring(4,a.indexOf(")"))),o=parseFloat(a)),m||((g=t._gsap).renderTransform&&!e.parseTransform||Fn(t,e.parseTransform),v=!1!==e.smoothOrigin&&g.smooth,(m=this._pt=new _r(this._pt,k,nn,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===f)this._pt=new _r(this._pt,g,"scaleY",g.scaleY,(p?yt(g.scaleY,p+o):o)-g.scaleY||0,qr),this._pt.u=0,S.push("scaleY",f),f+="X";else{if("transformOrigin"===f){T.push(sn,0,k[sn]),b=void 0,M=void 0,O=void 0,b=(w=a).split(" "),M=b[0],O=b[1]||"50%","top"!==M&&"bottom"!==M&&"left"!==O&&"right"!==O||(w=M,M=O,O=w),b[0]=Sn[M]||M,b[1]=Sn[O]||O,a=b.join(" "),g.svg?zn(t,a,0,v,0,this):((d=parseFloat(a.split(" ")[2])||0)!==g.zOrigin&&Tn(this,g,"zOrigin",g.zOrigin,d),Tn(this,k,f,Ln(s),Ln(a)));continue}if("svgOrigin"===f){zn(t,a,1,v,0,this);continue}if(f in An){jn(this,g,f,u,p?yt(u,p+a):a);continue}if("smoothOrigin"===f){Tn(this,g,"smooth",g.smooth,a);continue}if("force3D"===f){g[f]=a;continue}if("transform"===f){Vn(this,a,t);continue}}else f in k||(f=dn(f)||f);if(_||(o||0===o)&&(u||0===u)&&!Xr.test(a)&&f in k)o||(o=0),(c=(s+"").substr((u+"").length))!==(d=ee(a)||(f in x.units?x.units[f]:c))&&(u=bn(t,f,s,d)),this._pt=new _r(this._pt,_?g:k,f,u,(p?yt(u,p+o):o)-u,_||"px"!==d&&"zIndex"!==f||!1===e.autoRound?qr:Gr),this._pt.u=d||0,c!==d&&"%"!==d&&(this._pt.b=s,this._pt.r=Wr);else if(f in k)On.call(this,t,f,s,p?p+a:a);else if(f in t)this.add(t,f,s||t[f],p?p+a:a,n,i);else if("parseTransform"!==f){J(f,a);continue}_||(f in k?T.push(f,0,k[f]):"function"==typeof t[f]?T.push(f,2,t[f]()):T.push(f,1,s||t[f])),S.push(f)}y&&pr(this)},render:function(t,e){if(e.tween._time||!Fr())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:Mn,aliases:jr,getSetter:function(t,e,r){var n=jr[e];return n&&n.indexOf(",")<0&&(e=n),e in Ir&&e!==sn&&(t._gsap.x||Mn(t,"x"))?r&&zr===r?"scale"===e?tn:Kr:(zr=r||{})&&("scale"===e?en:rn):t.style&&!F(t.style[e])?$r:~e.indexOf("-")?Jr:ar(t,e)},core:{_removeProperty:yn,_getMatrix:Dn}};Er.utils.checkPrefix=dn,Er.core.getStyleSaver=hn,Qn=mt((Wn="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Gn="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Ir[t]=1})),mt(Gn,(function(t){x.units[t]="deg",An[t]=1})),jr[Qn[13]]=Wn+","+Gn,mt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");jr[e[1]]=Qn[e[0]]})),mt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){x.units[t]="px"})),Er.registerPlugin(Zn);var $n=Er.registerPlugin(Zn)||Er;$n.core.Tween;const Jn={CherryWave:({container:t,image:e,speed:n=.05,strength:i=.02,hover:s=!1,light:a})=>{if(!e)return void console.log("No image provided");(new THREE.TextureLoader).load(e.src,(e=>{const o={uImage:{value:e},uTime:{value:0},uStrength:{value:s?0:i},uLight:{value:a}},u=r(t.clientWidth,t.clientHeight);let h;function l(){h&&(u.Scene.remove(h),h.geometry.dispose(),h.material.dispose()),h=function(){const e=t.clientWidth/t.clientHeight*2.3,r=new THREE.PlaneGeometry(e,2.3,100,100),n=new THREE.ShaderMaterial({vertexShader:"\nprecision highp float;\n varying vec2 vUv;\n varying vec3 pos;\n uniform float uTime;\n uniform float uStrength;\n\n void main() {\n \n vUv = uv;\n \n vec3 newPosition = position;\n\n \n float waveX = uStrength * sin(10.0 * uv.y + uTime * 2.0);\n float waveY = uStrength * cos(12.0 * uv.x + uTime * 1.5);\n \n float waveZ = uStrength * sin(10.0 * uv.x + uTime * 2.5);\n\n newPosition.x += waveX;\n newPosition.y += waveY;\n newPosition.z += waveZ;\n\n pos = (modelViewMatrix * vec4(newPosition, 1.0)).xyz;\n gl_Position = projectionMatrix * modelViewMatrix * vec4(newPosition, 1.0);\n }",fragmentShader:"\nprecision highp float;\n\nvarying vec2 vUv;\nuniform sampler2D uImage;\nuniform float uTime;\n\nuniform float uStrength;\nuniform bool uLight;\n\n\nvoid main() {\n vec2 uv = vUv;\n \n\n \n \n\n // Apply wave distortion\n float waveX = sin(10.0 * uv.y + uTime * 2.0);\n float waveY = cos(10.0 * uv.x + uTime * 2.0);\n uv.x += (uStrength * 0.05) * waveX;\n uv.y += (uStrength * 0.05) * waveY;\n\n \n\n vec4 color = texture2D(uImage, uv);\n if(uLight){\n color.x+=smoothstep(0.001,0.6,sin(2.0*uTime));\n color.y+=smoothstep(0.2,0.6,sin(0.2*uTime));\n }\n \n gl_FragColor = color;\n}\n",uniforms:o,transparent:!0});return new THREE.Mesh(r,n)}(),u.mesh=h,u.Scene.add(h)}function f(){const e=t.clientWidth,r=t.clientHeight;u.renderer.setSize(e,r),u.renderer.setPixelRatio(window.devicePixelRatio),u.camera.aspect=e/r,u.camera.updateProjectionMatrix(),l()}return u.camera.fov=2*Math.atan(t.clientHeight/2/600)*(180/Math.PI),u.camera.position.z=2.8,s&&(t.addEventListener("mouseenter",(()=>{$n.to(o.uStrength,{value:i,duration:.5,ease:"power2.out"})})),t.addEventListener("mouseleave",(()=>{$n.to(o.uStrength,{value:0,duration:.5,ease:"power2.out"})}))),t.innerHTML="",t.appendChild(u.renderer.domElement),window.addEventListener("resize",f),f(),function t(){o.uTime.value+=n,u.renderer.render(u.Scene,u.camera),requestAnimationFrame(t)}(),{mesh:u.mesh,geometry:u.geometry,renderer:u.renderer,Scene:u.Scene}}))},ImageTransition1:function(t,{speed:e=.02,strength:n=.02,radius:i=.02,hover:s=!1,noise:a=.4}={}){let o=Array.from(t.querySelectorAll("img"));if(!o.length)return void console.log("No image provided");const u={uImage:{value:null},uImage2:{value:null},uTime:{value:0},uStrength:{value:s?0:n},uNoise:{value:a},uMouse:{value:new THREE.Vector2(-10,-10)},uRadius:{value:i}},h=new THREE.TextureLoader;let l,f=[];o.map(((t,e)=>{h.load(t.src,(t=>{l=0,1==e&&(u.uImage2.value=t),0==e&&(u.uImage.value=t),f.push(t)}))}));const c=r(t.clientWidth,t.clientHeight);let d;function p(){d&&(c.Scene.remove(d),d.geometry.dispose(),d.material.dispose()),d=function(){const e=t.clientWidth/t.clientHeight*2.3,r=new THREE.PlaneGeometry(e,2.3,100,100),n=new THREE.ShaderMaterial({vertexShader:"\nprecision highp float;\nvarying vec2 vUv; \n\n void main() { \n vUv = uv; \n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n }",fragmentShader:"\nprecision highp float;\nuniform vec2 uMouse;\nvarying vec2 vUv;\nuniform sampler2D uImage;\nuniform float uTime;\nuniform float uRadius;\nuniform float uStrength;\nuniform float uNoise;\nuniform bool uLight;\nuniform sampler2D uImage2;\nfloat rand(float n){return fract(sin(n) * 43758.5453123);}\nfloat rand(vec2 n){return fract(sin(dot(n, vec2(12.9898, 4.1414))) * 43758.5453123);}\n\nfloat noise(float p){\n float fl = floor(p);\n float fc = fract(p);\n return mix(rand(fl), rand(fl + 1.0), fc);\n}\n \nfloat noise(vec2 n) {\n const vec2 d = vec2(0.0, 1.0);\n vec2 b = floor(n), f = smoothstep(vec2(0.0), vec2(1.0), fract(n));\n return mix(mix(rand(b), rand(b + d.yx), f.x), mix(rand(b + d.xy), rand(b + d.yy), f.x), f.y);\n}\n\nvoid main() {\n vec2 uv = vUv;\n vec2 guv = vUv;\n guv.x -= 0.5;\n guv.y -= 0.5;\n\n // Calculate distance from mouse\n float dist = length(guv - uMouse);\n\n \n float edgeNoise = noise(guv * 10.0 + uTime * 2.0 ) * uNoise;\n\n // Create mask for area following mouse, with wobbly edge\n float inside = step(dist, uRadius *edgeNoise);\n\n // Apply noise only inside the circle\n float n = noise(guv * 0.2);\n\n vec3 circle = mix(vec3(1.0), vec3(n), inside);\n\n // Apply wave distortion\n float waveX = sin(10.0 * uv.y + uTime * 2.0);\n float waveY = cos(10.0 * uv.x + uTime * 2.0);\n uv.x += (uStrength * 0.05) * waveX;\n uv.y += (uStrength * 0.05) * waveY;\n\n \n\n vec4 color = texture2D(uImage, uv);\n \n vec4 color2 = texture2D(uImage2,uv);\n gl_FragColor = mix(color,(vec4(n)+color2),inside);\n}\n",uniforms:u,transparent:!0});return new THREE.Mesh(r,n)}(),c.mesh=d,c.Scene.add(d)}function _(){const e=t.clientWidth,r=t.clientHeight;c.renderer.setSize(e,r),c.renderer.setPixelRatio(window.devicePixelRatio),c.camera.aspect=e/r,c.camera.updateProjectionMatrix(),p()}return c.camera.fov=2*Math.atan(t.clientHeight/2/600)*(180/Math.PI),c.camera.position.z=2.8,t.addEventListener("mousemove",(function(e){const r=t.getBoundingClientRect(),n=(e.clientX-r.left)/r.width-.5,i=-(e.clientY-r.top)/r.height+.5;$n.to(u.uMouse.value,{x:n,y:i,duration:.2})})),s&&(t.addEventListener("mouseenter",(()=>{$n.to(u.uStrength,{value:n,duration:.5,ease:"power2.out"}),$n.to(u.uRadius,{value:i,duration:.2})})),t.addEventListener("mouseleave",(()=>{$n.to(u.uStrength,{value:0,duration:.5,ease:"power2.out"}),$n.to(u.uRadius,{value:-100,duration:.6})}))),t.innerHTML="",t.appendChild(c.renderer.domElement),window.addEventListener("resize",_),_(),function t(){u.uTime.value+=e,c.renderer.render(c.Scene,c.camera),requestAnimationFrame(t)}(),t.addEventListener("click",(()=>{const t=(l+1)%f.length,e=(l+2)%f.length;$n.to(u.uRadius,{value:2,duration:2,ease:"power2.inOut",onComplete:()=>{u.uImage.value=f[t],u.uImage2.value=f[e],$n.fromTo(u.uRadius,{value:0},{value:i,duration:2,ease:"power2.inOut"}),l=t}})})),{mesh:c.mesh,geometry:c.geometry,renderer:c.renderer,Scene:c.Scene,currntimageIndex:l}}};return e})()));
|
@@ -1,5 +1,8 @@
|
|
1
|
-
|
2
|
-
*
|
3
|
-
*
|
4
|
-
*
|
5
|
-
|
1
|
+
/*!
|
2
|
+
* GSAP 3.13.0
|
3
|
+
* https://gsap.com
|
4
|
+
*
|
5
|
+
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
6
|
+
* Subject to the terms at https://gsap.com/standard-license
|
7
|
+
* @author: Jack Doyle, jack@greensock.com
|
8
|
+
*/
|
package/package.json
CHANGED
package/src/cherry.js
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
import createWaveAssets from "../../utils/init.js";
|
2
2
|
import fragmentShader from "./FragementShader.glsl.js";
|
3
3
|
import vertexShader from "./VertexShader.glsl.js";
|
4
|
-
|
5
|
-
|
6
|
-
// Example: import fragmentShader from '../../shaders/FragmentShader.glsl.js';
|
4
|
+
import gsap from "gsap";
|
5
|
+
|
7
6
|
|
8
7
|
export function ImageTransition1(
|
9
8
|
container,
|
@@ -2,6 +2,7 @@
|
|
2
2
|
import createWaveAssets from '../../utils/init.js';
|
3
3
|
import fragmentShader from './FragementShader.glsl.js';
|
4
4
|
import vertexShader from './Vertexshader.glsl.js';
|
5
|
+
import gsap from 'gsap';
|
5
6
|
|
6
7
|
const CherryWave = ({ container, image, speed = 0.05, strength = 0.02, hover = false,light }) => {
|
7
8
|
if (!image) {
|