z-flux-react 1.0.0
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/README.md +1 -0
- package/dist/index.d.ts +131 -0
- package/dist/index.js +55 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +55 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +64 -0
- package/rollup.config.js +50 -0
- package/tsconfig.json +58 -0
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import e,{useRef as r,useLayoutEffect as n,useEffect as i,useState as s}from"react";function a(t,e,r,n){return new(r||(r=Promise))(function(i,s){function a(t){try{u(n.next(t))}catch(t){s(t)}}function o(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(a,o)}u((n=n.apply(t,e||[])).next())})}function o(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
|
|
2
|
+
/*!
|
|
3
|
+
* GSAP 3.15.0
|
|
4
|
+
* https://gsap.com
|
|
5
|
+
*
|
|
6
|
+
* @license Copyright 2008-2026, GreenSock. All rights reserved.
|
|
7
|
+
* Subject to the terms at https://gsap.com/standard-license
|
|
8
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
9
|
+
*/"function"==typeof SuppressedError&&SuppressedError;var l,c,f,h,p,d,g,_,m,v,y,x,b,w,T,k,C,O={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},E={duration:.5,overwrite:!1,delay:0},M=1e8,S=1e-8,A=2*Math.PI,P=A/4,R=0,D=Math.sqrt,z=Math.cos,F=Math.sin,I=function(t){return"string"==typeof t},N=function(t){return"function"==typeof t},B=function(t){return"number"==typeof t},L=function(t){return void 0===t},Y=function(t){return"object"==typeof t},X=function(t){return!1!==t},j=function(){return"undefined"!=typeof window},W=function(t){return N(t)||I(t)},q="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},H=Array.isArray,U=/random\([^)]+\)/g,V=/,\s*/g,G=/(?:-?\.?\d|\.)+/gi,$=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Q=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Z=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,K=/[+-]=-?[.\d]+/,J=/[^,'"\[\]\s]+/gi,tt=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,et={},rt={},nt=function(t){return(rt=Dt(t,et))&&Dr},it=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},st=function(t,e){return!e&&console.warn(t)},at=function(t,e){return t&&(et[t]=e)&&rt&&(rt[t]=e)||et},ot=function(){return 0},ut={suppressEvents:!0,isStart:!0,kill:!1},lt={suppressEvents:!0,kill:!1},ct={suppressEvents:!0},ft={},ht=[],pt={},dt={},gt={},_t=30,mt=[],vt="",yt=function(t){var e,r,n=t[0];if(Y(n)||N(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=mt.length;r--&&!mt[r].targetTest(n););e=mt[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Ve(t[r],e)))||t.splice(r,1);return t},xt=function(t){return t._gsap||yt(fe(t))[0]._gsap},bt=function(t,e,r){return(r=t[e])&&N(r)?t[e]():L(r)&&t.getAttribute&&t.getAttribute(e)||r},wt=function(t,e){return(t=t.split(",")).forEach(e)||t},Tt=function(t){return Math.round(1e5*t)/1e5||0},kt=function(t){return Math.round(1e7*t)/1e7||0},Ct=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},Ot=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r},Et=function(){var t,e,r=ht.length,n=ht.slice(0);for(pt={},ht.length=0,t=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},Mt=function(t){return!!(t._initted||t._startAt||t.add)},St=function(t,e,r,n){ht.length&&!c&&Et(),t.render(e,r,n||!!(c&&e<0&&Mt(t))),ht.length&&!c&&Et()},At=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(J).length<2?e:I(t)?t.trim():t},Pt=function(t){return t},Rt=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},Dt=function(t,e){for(var r in e)t[r]=e[r];return t},zt=function t(e,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=Y(r[n])?t(e[n]||(e[n]={}),r[n]):r[n]);return e},Ft=function(t,e){var r,n={};for(r in t)r in e||(n[r]=t[r]);return n},It=function(t){var e,r=t.parent||h,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])}):Rt;if(X(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},Nt=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},Bt=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},Lt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Yt=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},Xt=function(t,e,r,n){return t._startAt&&(c?t._startAt.revert(lt):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},jt=function t(e){return!e||e._ts&&t(e.parent)},Wt=function(t){return t._repeat?qt(t._tTime,t=t.duration()+t._rDelay)*t:0},qt=function(t,e){var r=Math.floor(t=kt(t/e));return t&&r===t?r-1:r},Ht=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=kt(t._start+(t._tDur/Math.abs(t._ts||t._rts||S)||0))},Vt=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=kt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Ut(t),r._dirty||Yt(r,t)),t},Gt=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=Ht(t.rawTime(),e),(!e._dur||ae(0,e.totalDuration(),r)-e._tTime>S)&&e.render(r,!0)),Yt(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}},$t=function(t,e,r,n){return e.parent&&Lt(e),e._start=kt((B(r)?r:r||t!==h?ne(t,r,e):t._time)+e._delay),e._end=kt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Nt(t,e,"_first","_last",t._sort?"_start":0),Jt(e)||(t._recent=e),n||Gt(t,e),t._ts<0&&Vt(t,t._tTime),t},Qt=function(t,e){return(et.ScrollTrigger||it("scrollTrigger",e))&&et.ScrollTrigger.create(e,t)},Zt=function(t,e,r,n,i){return er(t,e,i),t._initted?!r&&t._pt&&!c&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&m!==Fe.frame?(ht.push(t),t._lazy=[i,n],1):void 0:1},Kt=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},Jt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},te=function(t,e,r,n){var i=t._repeat,s=kt(e)||0,a=t._tTime/t._tDur;return a&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=i?i<0?1e10:kt(s*(i+1)+t._rDelay*i):s,a>0&&!n&&Vt(t,t._tTime=t._tDur*a),t.parent&&Ut(t),r||Yt(t.parent,t),t},ee=function(t){return t instanceof $e?Yt(t):te(t,t._dur)},re={_start:0,endTime:ot,totalDuration:ot},ne=function t(e,r,n){var i,s,a,o=e.labels,u=e._recent||re,l=e.duration()>=M?u.endTime(!1):e._dur;return I(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]=l),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:l+s)):null==r?l:+r},ie=function(t,e,r){var n,i,s=B(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=X(i.vars.inherit)&&i.parent;o.immediateRender=X(n.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new ar(e[0],o,e[a+1])},se=function(t,e){return t||0===t?e(t):e},ae=function(t,e,r){return r<t?t:r>e?e:r},oe=function(t,e){return I(t)&&(e=tt.exec(t))?e[1]:""},ue=[].slice,le=function(t,e){return t&&Y(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&Y(t[0]))&&!t.nodeType&&t!==p},ce=function(t,e,r){return void 0===r&&(r=[]),t.forEach(function(t){var n;return I(t)&&!e||le(t,1)?(n=r).push.apply(n,fe(t)):r.push(t)})||r},fe=function(t,e,r){return f&&!e&&f.selector?f.selector(t):!I(t)||r||!d&&Ie()?H(t)?ce(t,r):le(t)?ue.call(t,0):t?[t]:[]:ue.call((e||g).querySelectorAll(t),0)},he=function(t){return t=fe(t)[0]||st("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return fe(e,r.querySelectorAll?r:r===t?st("Invalid scope")||g.createElement("div"):t)}},pe=function(t){return t.sort(function(){return.5-Math.random()})},de=function(t){if(N(t))return t;var e=Y(t)?t:{each:t},r=je(e.ease),n=e.from||0,i=parseFloat(e.base)||0,s={},a=n>0&&n<1,o=isNaN(n)||a,u=e.axis,l=n,c=n;return I(n)?l=c={center:.5,edges:.5,end:1}[n]||0:!a&&o&&(l=n[0],c=n[1]),function(t,a,f){var h,p,d,g,_,m,v,y,x,b=(f||e).length,w=s[b];if(!w){if(!(x="auto"===e.grid?0:(e.grid||[1,M])[1])){for(v=-1e8;v<(v=f[x++].getBoundingClientRect().left)&&x<b;);x<b&&x--}for(w=s[b]=[],h=o?Math.min(x,b)*l-.5:n%x,p=x===M?0:o?b*c/x-.5:n/x|0,v=0,y=M,m=0;m<b;m++)d=m%x-h,g=p-(m/x|0),w[m]=_=u?Math.abs("y"===u?g:d):D(d*d+g*g),_>v&&(v=_),_<y&&(y=_);"random"===n&&pe(w),w.max=v-y,w.min=y,w.v=b=(parseFloat(e.amount)||parseFloat(e.each)*(x>b?b-1:u?"y"===u?b/x:x:Math.max(x,b/x))||0)*("edges"===n?-1:1),w.b=b<0?i-b:i,w.u=oe(e.amount||e.each)||0,r=r&&b<0?Xe(r):r}return b=(w[t]-w.min)/w.max||0,kt(w.b+(r?r(b):b)*w.v)+w.u}},ge=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var n=kt(Math.round(parseFloat(r)/t)*t*e);return(n-n%1)/e+(B(r)?0:oe(r))}},_e=function(t,e){var r,n,i=H(t);return!i&&Y(t)&&(r=i=t.radius||M,t.values?(t=fe(t.values),(n=!B(t[0]))&&(r*=r)):t=ge(t.increment)),se(e,i?N(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,l=0,c=t.length;c--;)(i=n?(i=t[c].x-a)*i+(s=t[c].y-o)*s:Math.abs(t[c]-a))<u&&(u=i,l=c);return l=!r||u<=r?t[l]:e,n||l===e||B(e)?l:l+oe(e)}:ge(t))},me=function(t,e,r,n){return se(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})},ve=function(t,e,r){return se(r,function(r){return t[~~e(r)]})},ye=function(t){return t.replace(U,function(t){var e=t.indexOf("[")+1,r=t.substring(e||7,e?t.indexOf("]"):t.length-1).split(V);return me(e?r:+r[0],e?0:+r[1],+r[2]||1e-5)})},xe=function(t,e,r,n,i){var s=e-t,a=n-r;return se(i,function(e){return r+((e-t)/s*a||0)})},be=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},we=function(t,e,r){var n,i,s,a=t.vars,o=a[e],u=f,l=t._ctx;if(o)return n=a[e+"Params"],i=a.callbackScope||t,r&&ht.length&&Et(),l&&(f=l),s=n?o.apply(i,n):o.call(i),f=u,s},Te=function(t){return Lt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!c),t.progress()<1&&we(t,"onInterrupt"),t},ke=[],Ce=function(t){if(t)if(t=!t.name&&t.default||t,j()||t.headless){var e=t.name,r=N(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:ot,render:gr,add:Je,kill:mr,modifier:_r,rawVars:0},s={targetTest:0,get:0,getSetter:fr,aliases:{},register:0};if(Ie(),t!==n){if(dt[e])return;Rt(n,Rt(Ft(t,i),s)),Dt(n.prototype,Dt(i,Ft(t,s))),dt[n.prop=e]=n,t.targetTest&&(mt.push(n),ft[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}at(e,n),t.register&&t.register(Dr,n,xr)}else ke.push(t)},Oe=255,Ee={aqua:[0,Oe,Oe],lime:[0,Oe,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Oe],navy:[0,0,128],white:[Oe,Oe,Oe],olive:[128,128,0],yellow:[Oe,Oe,0],orange:[Oe,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Oe,0,0],pink:[Oe,192,203],cyan:[0,Oe,Oe],transparent:[Oe,Oe,Oe,0]},Me=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)*Oe+.5|0},Se=function(t,e,r){var n,i,s,a,o,u,l,c,f,h,p=t?B(t)?[t>>16,t>>8&Oe,t&Oe]:0:Ee.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Ee[t])p=Ee[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[(p=parseInt(t.substr(1,6),16))>>16,p>>8&Oe,p&Oe,parseInt(t.substr(7),16)/255];p=[(t=parseInt(t.substr(1),16))>>16,t>>8&Oe,t&Oe]}else if("hsl"===t.substr(0,3))if(p=h=t.match(G),e){if(~t.indexOf("="))return p=t.match($),r&&p.length<4&&(p[3]=1),p}else a=+p[0]%360/360,o=+p[1]/100,n=2*(u=+p[2]/100)-(i=u<=.5?u*(o+1):u+o-u*o),p.length>3&&(p[3]*=1),p[0]=Me(a+1/3,n,i),p[1]=Me(a,n,i),p[2]=Me(a-1/3,n,i);else p=t.match(G)||Ee.transparent;p=p.map(Number)}return e&&!h&&(n=p[0]/Oe,i=p[1]/Oe,s=p[2]/Oe,u=((l=Math.max(n,i,s))+(c=Math.min(n,i,s)))/2,l===c?a=o=0:(f=l-c,o=u>.5?f/(2-l-c):f/(l+c),a=l===n?(i-s)/f+(i<s?6:0):l===i?(s-n)/f+2:(n-i)/f+4,a*=60),p[0]=~~(a+.5),p[1]=~~(100*o+.5),p[2]=~~(100*u+.5)),r&&p.length<4&&(p[3]=1),p},Ae=function(t){var e=[],r=[],n=-1;return t.split(Re).forEach(function(t){var i=t.match(Q)||[];e.push.apply(e,i),r.push(n+=i.length+1)}),e.c=r,e},Pe=function(t,e,r){var n,i,s,a,o="",u=(t+o).match(Re),l=e?"hsla(":"rgba(",c=0;if(!u)return t;if(u=u.map(function(t){return(t=Se(t,e,1))&&l+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(s=Ae(t),(n=r.c).join(o)!==s.c.join(o)))for(a=(i=t.replace(Re,"1").split(Q)).length-1;c<a;c++)o+=i[c]+(~n.indexOf(c)?u.shift()||l+"0,0,0,0)":(s.length?s:u.length?u:r).shift());if(!i)for(a=(i=t.split(Re)).length-1;c<a;c++)o+=i[c]+u[c];return o+i[a]},Re=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Ee)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),De=/hsl[a]?\(/,ze=function(t){var e,r=t.join(" ");if(Re.lastIndex=0,Re.test(r))return e=De.test(r),t[1]=Pe(t[1],e),t[0]=Pe(t[0],e,Ae(t[1])),!0},Fe=function(){var t,e,r,n,i,s,a=Date.now,o=500,u=33,l=a(),c=l,f=1e3/240,h=f,m=[],v=function r(p){var d,g,_,v,y=a()-c,x=!0===p;if((y>o||y<0)&&(l+=y-u),((d=(_=(c+=y)-l)-h)>0||x)&&(v=++n.frame,i=_-1e3*n.time,n.time=_/=1e3,h+=d+(d>=f?4:f-d),g=1),x||(t=e(r)),g)for(s=0;s<m.length;s++)m[s](_,i,v,p)};return n={time:0,frame:0,tick:function(){v(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){_&&(!d&&j()&&(p=d=window,g=p.document||{},et.gsap=Dr,(p.gsapVersions||(p.gsapVersions=[])).push(Dr.version),nt(rt||p.GreenSockGlobals||!p.gsap&&p||{}),ke.forEach(Ce)),r="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&n.sleep(),e=r||function(t){return setTimeout(t,h-1e3*n.time+1|0)},y=1,v(2))},sleep:function(){(r?cancelAnimationFrame:clearTimeout)(t),y=0,e=ot},lagSmoothing:function(t,e){o=t||1/0,u=Math.min(e||33,o)},fps:function(t){f=1e3/(t||240),h=1e3*n.time+f},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),m[r?"unshift":"push"](i),Ie(),i},remove:function(t,e){~(e=m.indexOf(t))&&m.splice(e,1)&&s>=e&&s--},_listeners:m}}(),Ie=function(){return!y&&Fe.wake()},Ne={},Be=/^[\d.\-M][\d.\-,\s]/,Le=/["']/g,Ye=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(Le,"").trim():+n,a=r.substr(e+1).trim();return i},Xe=function(t){return function(e){return 1-t(1-e)}},je=function(t,e){return t&&(N(t)?t:Ne[t]||function(t){var e,r,n,i,s=(t+"").split("("),a=Ne[s[0]];return a&&s.length>1&&a.config?a.config.apply(null,~t.indexOf("{")?[Ye(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(At)):Ne._CE&&Be.test(t)?Ne._CE("",t):a}(t))||e},We=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 wt(t,function(t){for(var e in Ne[t]=et[t]=s,Ne[i=t.toLowerCase()]=r,s)Ne[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ne[t+"."+e]=s[e]}),s},qe=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},He=function t(e,r,n){var i=r>=1?r:1,s=(n||(e?.3:.45))/(r<1?r:1),a=s/A*(Math.asin(1/i)||0),o=function(t){return 1===t?1:i*Math.pow(2,-10*t)*F((t-a)*s)+1},u="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:qe(o);return s=A/s,u.config=function(r,n){return t(e,r,n)},u},Ue=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)}:qe(n);return i.config=function(r){return t(e,r)},i};wt("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;We(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})}),Ne.Linear.easeNone=Ne.none=Ne.Linear.easeIn,We("Elastic",He("in"),He("out"),He()),x=7.5625,T=2*(w=1/(b=2.75)),k=2.5*w,We("Bounce",function(t){return 1-C(1-t)},C=function(t){return t<w?x*t*t:t<T?x*Math.pow(t-1.5/b,2)+.75:t<k?x*(t-=2.25/b)*t+.9375:x*Math.pow(t-2.625/b,2)+.984375}),We("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}),We("Circ",function(t){return-(D(1-t*t)-1)}),We("Sine",function(t){return 1===t?1:1-z(t*P)}),We("Back",Ue("in"),Ue("out"),Ue()),Ne.SteppedEase=Ne.steps=et.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*ae(0,.99999999,t)|0)+i)*r}}},E.ease=Ne["quad.out"],wt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return vt+=t+","+t+"Params,"});var Ve=function(t,e){this.id=R++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:bt,this.set=e?e.getSetter:fr},Ge=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,te(this,+t.duration,1,1),this.data=t.data,f&&(this._ctx=f,f.data.push(this)),y||Fe.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,te(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Ie(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Vt(this,t),!r._dp||r.parent||Gt(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)&&$t(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===S||!this._initted&&this._dur&&t||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),St(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Wt(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)+Wt(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?qt(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?Ht(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(ae(-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):(Ie(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==S&&(this._tTime-=S)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=kt(t);var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&$t(e,this,this._start-this._delay),this}return this._start},e.endTime=function(t){return this._start+(X(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?Ht(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=ct);var e=c;return c=t,Mt(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),c=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,ee(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,ee(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(ne(this,t),X(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,X(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)-S))},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,r=e._prom;return new Promise(function(n){var i=N(t)?t:Pt,s=function(){var t=e.then;e.then=null,r&&r(),N(i)&&(i=i(e))&&(i.then||i===e)&&(e.then=t),n(i),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?s():e._prom=s})},e.kill=function(){Te(this)},t}();Rt(Ge.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 $e=function(t){function e(e,r){var n;return void 0===e&&(e={}),(n=t.call(this,e)||this).labels={},n.smoothChildTiming=!!e.smoothChildTiming,n.autoRemoveChildren=!!e.autoRemoveChildren,n._sort=X(e.sortChildren),h&&$t(e.parent||h,o(n),r),e.reversed&&n.reverse(),e.paused&&n.paused(!0),e.scrollTrigger&&Qt(o(n),e.scrollTrigger),n}u(e,t);var r=e.prototype;return r.to=function(t,e,r){return ie(0,arguments,this),this},r.from=function(t,e,r){return ie(1,arguments,this),this},r.fromTo=function(t,e,r,n){return ie(2,arguments,this),this},r.set=function(t,e,r){return e.duration=0,e.parent=this,It(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new ar(t,e,ne(this,r),1),this},r.call=function(t,e,r){return $t(this,ar.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 ar(t,r,ne(this,i)),this},r.staggerFrom=function(t,e,r,n,i,s,a){return r.runBackwards=1,It(r).immediateRender=X(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,It(n).immediateRender=X(n.immediateRender),this.staggerTo(t,e,n,i,s,a,o)},r.render=function(t,e,r){var n,i,s,a,o,u,l,f,p,d,g,_,m=this._time,v=this._dirty?this.totalDuration():this._tDur,y=this._dur,x=t<=0?0:kt(t),b=this._zTime<0!=t<0&&(this._initted||!y);if(this!==h&&x>v&&t>=0&&(x=v),x!==this._tTime||r||b){if(m!==this._time&&y&&(x+=this._time-m,t+=this._time-m),n=x,p=this._start,u=!(f=this._ts),b&&(y||(m=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(g=this._yoyo,o=y+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,r);if(n=kt(x%o),x===v?(a=this._repeat,n=y):((a=~~(d=kt(x/o)))&&a===d&&(n=y,a--),n>y&&(n=y)),d=qt(this._tTime,o),!m&&this._tTime&&d!==a&&this._tTime-d*o-this._dur<=0&&(d=a),g&&1&a&&(n=y-n,_=1),a!==d&&!this._lock){var w=g&&1&d,T=w===(g&&1&a);if(a<d&&(w=!w),m=w?0:x%y?y:x,this._lock=1,this.render(m||(_?0:kt(a*o)),e,!y)._lock=0,this._tTime=x,!e&&this.parent&&we(this,"onRepeat"),this.vars.repeatRefresh&&!_&&(this.invalidate()._lock=1,d=a),m&&m!==this._time||u!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(y=this._dur,v=this._tDur,T&&(this._lock=2,m=w?y:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!_&&this.invalidate()),this._lock=0,!this._ts&&!u)return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(l=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,kt(m),kt(n)),l&&(x-=n-(n=l._start))),this._tTime=x,this._time=n,this._act=!!f,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,m=0),!m&&x&&y&&!e&&!d&&(we(this,"onStart"),this._tTime!==x))return this;if(n>=m&&t>=0)for(i=this._first;i;){if(s=i._next,(i._act||n>=i._start)&&i._ts&&l!==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&&!u){l=0,s&&(x+=this._zTime=-1e-8);break}}i=s}else{i=this._last;for(var k=t<0?t:n;i;){if(s=i._prev,(i._act||k<=i._end)&&i._ts&&l!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(k-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(k-i._start)*i._ts,e,r||c&&Mt(i)),n!==this._time||!this._ts&&!u){l=0,s&&(x+=this._zTime=k?-1e-8:S);break}}i=s}}if(l&&!e&&(this.pause(),l.render(n>=m?0:-1e-8)._zTime=n>=m?1:-1,this._ts))return this._start=p,Ut(this),this.render(t,e,r);this._onUpdate&&!e&&we(this,"onUpdate",!0),(x===v&&this._tTime>=this.totalDuration()||!x&&m)&&(p!==this._start&&Math.abs(f)===Math.abs(this._ts)||this._lock||((t||!y)&&(x===v&&this._ts>0||!x&&this._ts<0)&&Lt(this,1),e||t<0&&!m||!x&&!m&&v||(we(this,x===v&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(x<v&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(t,e){var r=this;if(B(e)||(e=ne(this,e,t)),!(t instanceof Ge)){if(H(t))return t.forEach(function(t){return r.add(t,e)}),this;if(I(t))return this.addLabel(t,e);if(!N(t))return this;t=ar.delayedCall(0,t)}return this!==t?$t(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=-1e8);for(var i=[],s=this._first;s;)s._start>=n&&(s instanceof ar?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 I(t)?this.removeLabel(t):N(t)?this.killTweensOf(t):(t.parent===this&&Bt(this,t),t===this._recent&&(this._recent=this._last),Yt(this))},r.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=kt(Fe.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]=ne(this,e),this},r.removeLabel=function(t){return delete this.labels[t],this},r.addPause=function(t,e,r){var n=ar.delayedCall(0,e||ot,r);return n.data="isPause",this._hasPause=1,$t(this,n,ne(this,t))},r.removePause=function(t){var e=this._first;for(t=ne(this,t);e;)e._start===t&&"isPause"===e.data&&Lt(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=fe(t),s=this._first,a=B(e);s;)s instanceof ar?Ot(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=ne(n,t),s=e,a=s.startAt,o=s.onStart,u=s.onStartParams,l=s.immediateRender,c=ar.to(n,Rt({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())||S,onStart:function(){if(n.pause(),!r){var t=e.duration||Math.abs((i-(a&&"time"in a?a.time:n._time))/n.timeScale());c._dur!==t&&te(c,t,0,1).render(c._time,!0,!0),r=1}o&&o.apply(c,u||[])}},e));return l?c.render(0):c},r.tweenFromTo=function(t,e,r){return this.tweenTo(e,Rt({startAt:{time:ne(this,t)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(t){return void 0===t&&(t=this._time),be(this,ne(this,t))},r.previousLabel=function(t){return void 0===t&&(t=this._time),be(this,ne(this,t),1)},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+S)},r.shiftChildren=function(t,e,r){void 0===r&&(r=0);var n,i=this._first,s=this.labels;for(t=kt(t);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 Yt(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={}),Yt(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,$t(s,a,r-a._delay,1)._lock=0):o=r,r<0&&a._ts&&(i-=r,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=kt(r/s._ts),s._time-=r,s._tTime-=r),s.shiftChildren(-r,!1,-1/0),o=0),a._end>i&&a._ts&&(i=a._end),a=e;te(s,s===h&&s._time>i?s._time:i,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(t){if(h._ts&&(St(h,Ht(t,h)),m=Fe.frame),Fe.frame>=_t){_t+=O.autoSleep||120;var e=h._first;if((!e||!e._ts)&&O.autoSleep&&Fe._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Fe.sleep()}}},e}(Ge);Rt($e.prototype,{_lock:0,_hasPause:0,_forcing:0});var Qe,Ze,Ke=function(t,e,r,n,i,s,a){var o,u,l,c,f,h,p,d,g=new xr(this._pt,t,e,0,1,dr,null,i),_=0,m=0;for(g.b=r,g.e=n,r+="",(p=~(n+="").indexOf("random("))&&(n=ye(n)),s&&(s(d=[r,n],t,e),r=d[0],n=d[1]),u=r.match(Z)||[];o=Z.exec(n);)c=o[0],f=n.substring(_,o.index),l?l=(l+1)%5:"rgba("===f.substr(-5)&&(l=1),c!==u[m++]&&(h=parseFloat(u[m-1])||0,g._pt={_next:g._pt,p:f||1===m?f:",",s:h,c:"="===c.charAt(1)?Ct(h,c)-h:parseFloat(c)-h,m:l&&l<4?Math.round:0},_=Z.lastIndex);return g.c=_<n.length?n.substring(_,n.length):"",g.fp=a,(K.test(n)||p)&&(g.e=0),this._pt=g,g},Je=function(t,e,r,n,i,s,a,o,u,l){N(n)&&(n=n(i||0,t,s));var c,f=t[e],h="get"!==r?r:N(f)?u?t[e.indexOf("set")||!N(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():f,p=N(f)?u?lr:ur:or;if(I(n)&&(~n.indexOf("random(")&&(n=ye(n)),"="===n.charAt(1)&&((c=Ct(h,n)+(oe(h)||0))||0===c)&&(n=c)),!l||h!==n||Ze)return isNaN(h*n)||""===n?(!f&&!(e in t)&&it(e,n),Ke.call(this,t,e,h,n,p,o||O.stringFilter,u)):(c=new xr(this._pt,t,e,+h||0,n-(h||0),"boolean"==typeof f?pr:hr,0,p),u&&(c.fp=u),a&&c.modifier(a,this,t),this._pt=c)},tr=function(t,e,r,n,i,s){var a,o,u,l;if(dt[t]&&!1!==(a=new dt[t]).init(i,a.rawVars?e[t]:function(t,e,r,n,i){if(N(t)&&(t=nr(t,i,e,r,n)),!Y(t)||t.style&&t.nodeType||H(t)||q(t))return I(t)?nr(t,i,e,r,n):t;var s,a={};for(s in t)a[s]=nr(t[s],i,e,r,n);return a}(e[t],n,i,s,r),r,n,s)&&(r._pt=o=new xr(r._pt,i,t,0,1,a.render,a,0,a.priority),r!==v))for(u=r._ptLookup[r._targets.indexOf(i)],l=a._props.length;l--;)u[a._props[l]]=o;return a},er=function t(e,r,n){var i,s,a,o,u,f,p,d,g,_,m,v,y,x=e.vars,b=x.ease,w=x.startAt,T=x.immediateRender,k=x.lazy,C=x.onUpdate,O=x.runBackwards,A=x.yoyoEase,P=x.keyframes,R=x.autoRevert,D=e._dur,z=e._startAt,F=e._targets,I=e.parent,N=I&&"nested"===I.data?I.vars.targets:F,B="auto"===e._overwrite&&!l,L=e.timeline,Y=x.easeReverse||A;if(L&&(!P||!b)&&(b="none"),e._ease=je(b,E.ease),e._rEase=Y&&(je(Y)||e._ease),e._from=!L&&!!x.runBackwards,e._from&&(e.ratio=1),!L||P&&!x.stagger){if(v=(d=F[0]?xt(F[0]).harness:0)&&x[d.prop],i=Ft(x,ft),z&&(z._zTime<0&&z.progress(1),r<0&&O&&T&&!R?z.render(-1,!0):z.revert(O&&D?lt:ut),z._lazy=0),w){if(Lt(e._startAt=ar.set(F,Rt({data:"isStart",overwrite:!1,parent:I,immediateRender:!0,lazy:!z&&X(k),startAt:null,delay:0,onUpdate:C&&function(){return we(e,"onUpdate")},stagger:0},w))),e._startAt._dp=0,e._startAt._sat=e,r<0&&(c||!T&&!R)&&e._startAt.revert(lt),T&&D&&r<=0&&n<=0)return void(r&&(e._zTime=r))}else if(O&&D&&!z)if(r&&(T=!1),a=Rt({overwrite:!1,data:"isFromStart",lazy:T&&!z&&X(k),immediateRender:T,stagger:0,parent:I},i),v&&(a[d.prop]=v),Lt(e._startAt=ar.set(F,a)),e._startAt._dp=0,e._startAt._sat=e,r<0&&(c?e._startAt.revert(lt):e._startAt.render(-1,!0)),e._zTime=r,T){if(!r)return}else t(e._startAt,S,S);for(e._pt=e._ptCache=0,k=D&&X(k)||k&&!D,s=0;s<F.length;s++){if(p=(u=F[s])._gsap||yt(F)[s]._gsap,e._ptLookup[s]=_={},pt[p.id]&&ht.length&&Et(),m=N===F?s:N.indexOf(u),d&&!1!==(g=new d).init(u,v||i,e,m,N)&&(e._pt=o=new xr(e._pt,u,g.name,0,1,g.render,g,0,g.priority),g._props.forEach(function(t){_[t]=o}),g.priority&&(f=1)),!d||v)for(a in i)dt[a]&&(g=tr(a,i,e,m,u,N))?g.priority&&(f=1):_[a]=o=Je.call(e,u,a,"get",i[a],m,N,0,x.stringFilter);e._op&&e._op[s]&&e.kill(u,e._op[s]),B&&e._pt&&(Qe=e,h.killTweensOf(u,_,e.globalTime(r)),y=!e.parent,Qe=0),e._pt&&k&&(pt[p.id]=1)}f&&yr(e),e._onInit&&e._onInit(e)}e._onUpdate=C,e._initted=(!e._op||e._pt)&&!y,P&&r<=0&&L.render(M,!0,!0)},rr=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})},nr=function(t,e,r,n,i){return N(t)?t.call(e,r,n,i):I(t)&&~t.indexOf("random(")?ye(t):t},ir=vt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",sr={};wt(ir+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return sr[t]=1});var ar=function(t){function e(e,r,n,i){var s;"number"==typeof r&&(n.duration=r,r=n,n=null);var a,u,c,f,p,d,g,_,m=(s=t.call(this,i?r:It(r))||this).vars,v=m.duration,y=m.delay,x=m.immediateRender,b=m.stagger,w=m.overwrite,T=m.keyframes,k=m.defaults,C=m.scrollTrigger,E=r.parent||h,M=(H(e)||q(e)?B(e[0]):"length"in r)?[e]:fe(e);if(s._targets=M.length?yt(M):st("GSAP target "+e+" not found. https://gsap.com",!O.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=w,T||b||W(v)||W(y)){var S=(r=s.vars).easeReverse||r.yoyoEase;if((a=s.timeline=new $e({data:"nested",defaults:k||{},targets:E&&"nested"===E.data?E.vars.targets:M})).kill(),a.parent=a._dp=o(s),a._start=0,b||W(v)||W(y)){if(f=M.length,g=b&&de(b),Y(b))for(p in b)~ir.indexOf(p)&&(_||(_={}),_[p]=b[p]);for(u=0;u<f;u++)(c=Ft(r,sr)).stagger=0,S&&(c.easeReverse=S),_&&Dt(c,_),d=M[u],c.duration=+nr(v,o(s),u,d,M),c.delay=(+nr(y,o(s),u,d,M)||0)-s._delay,!b&&1===f&&c.delay&&(s._delay=y=c.delay,s._start+=y,c.delay=0),a.to(d,c,g?g(u,d,M):0),a._ease=Ne.none;a.duration()?v=y=0:s.timeline=0}else if(T){It(Rt(a.vars.defaults,{ease:"none"})),a._ease=je(T.ease||r.ease||"none");var A,P,R,D=0;if(H(T))T.forEach(function(t){return a.to(M,t,">")}),a.duration();else{for(p in c={},T)"ease"===p||"easeEach"===p||rr(p,T[p],c,T.easeEach);for(p in c)for(A=c[p].sort(function(t,e){return t.t-e.t}),D=0,u=0;u<A.length;u++)(R={ease:(P=A[u]).e,duration:(P.t-(u?A[u-1].t:0))/100*v})[p]=P.v,a.to(M,R,D),D+=R.duration;a.duration()<v&&a.to({},{duration:v-a.duration()})}}v||s.duration(v=a.duration())}else s.timeline=0;return!0!==w||l||(Qe=o(s),h.killTweensOf(M),Qe=0),$t(E,o(s),n),r.reversed&&s.reverse(),r.paused&&s.paused(!0),(x||!v&&!T&&s._start===kt(E._time)&&X(x)&&jt(o(s))&&"nested"!==E.data)&&(s._tTime=-1e-8,s.render(Math.max(0,-y)||0)),C&&Qt(o(s),C),s}u(e,t);var r=e.prototype;return r.render=function(t,e,r){var n,i,s,a,o,u,l,f,h=this._time,p=this._tDur,d=this._dur,g=t<0,_=t>p-S&&!g?p:t<S?0:t;if(d){if(_!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==g||this._lazy){if(n=_,f=this.timeline,this._repeat){if(a=d+this._rDelay,this._repeat<-1&&g)return this.totalTime(100*a+t,e,r);if(n=kt(_%a),_===p?(s=this._repeat,n=d):(s=~~(o=kt(_/a)))&&s===o?(n=d,s--):n>d&&(n=d),(u=this._yoyo&&1&s)&&(n=d-n),o=qt(this._tTime,a),n===h&&!r&&this._initted&&s===o)return this._tTime=_,this;s!==o&&this.vars.repeatRefresh&&!u&&!this._lock&&n!==a&&this._initted&&(this._lock=r=1,this.render(kt(a*s),!0).invalidate()._lock=0)}if(!this._initted){if(Zt(this,g?t:n,r,e,_))return this._tTime=0,this;if(!(h===this._time||r&&this.vars.repeatRefresh&&s!==o))return this;if(d!==this._dur)return this.render(t,e,r)}if(this._rEase){var m=n<h;if(m!==this._inv){var v=m?h:d-h;this._inv=m,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=h,this._invRecip=v?(m?-1:1)/v:0,this._invScale=m?-this.ratio:1-this.ratio,this._invEase=m?this._rEase:this._ease}this.ratio=l=this._invRatio+this._invScale*this._invEase((n-this._invTime)*this._invRecip)}else this.ratio=l=this._ease(n/d);if(this._from&&(this.ratio=l=1-l),this._tTime=_,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),!h&&_&&!e&&!o&&(we(this,"onStart"),this._tTime!==_))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&&(g&&Xt(this,t,0,r),we(this,"onUpdate")),this._repeat&&s!==o&&this.vars.onRepeat&&!e&&this.parent&&we(this,"onRepeat"),_!==this._tDur&&_||this._tTime!==_||(g&&!this._onUpdate&&Xt(this,t,0,!0),(t||!d)&&(_===this._tDur&&this._ts>0||!_&&this._ts<0)&&Lt(this,1),e||g&&!h||!(_||h||u)||(we(this,_===p?"onComplete":"onReverseComplete",!0),this._prom&&!(_<p&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,n){var i,s,a,o=t.ratio,u=e<0||!e&&(!t._start&&Kt(t)&&(t._initted||!Jt(t))||(t._ts<0||t._dp._ts<0)&&!Jt(t))?0:1,l=t._rDelay,f=0;if(l&&t._repeat&&(f=ae(0,t._tDur,e),s=qt(f,l),t._yoyo&&1&s&&(u=1-u),s!==qt(t._tTime,l)&&(o=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==o||c||n||t._zTime===S||!e&&t._zTime){if(!t._initted&&Zt(t,e,n,r,f))return;for(a=t._zTime,t._zTime=e||(r?S:0),r||(r=e&&!a),t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=f,i=t._pt;i;)i.r(u,i.d),i=i._next;e<0&&Xt(t,e,0,!0),t._onUpdate&&!r&&we(t,"onUpdate"),f&&t._repeat&&!r&&t.parent&&we(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&Lt(t,1),r||c||(we(t,u?"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){y||Fe.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||er(this,s),function(t,e,r,n,i,s,a,o){var u,l,c,f,h=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!h)for(h=t._ptCache[e]=[],c=t._ptLookup,f=t._targets.length;f--;){if((u=c[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 Ze=1,t.vars[e]="+=0",er(t,a),Ze=0,o?st(e+" not eligible for reset. Try splitting into individual properties"):1;h.push(u)}for(f=h.length;f--;)(u=(l=h[f])._pt||l).s=!n&&0!==n||i?u.s+(n||0)+s*u.c:n,u.c=r-u.s,l.e&&(l.e=Tt(r)+oe(l.e)),l.b&&(l.b=u.s+oe(l.b))}(this,t,e,r,n,this._ease(s/this._dur),s,i)?this.resetTo(t,e,r,n,1):(Vt(this,0),this.parent||Nt(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?Te(this):this.scrollTrigger&&this.scrollTrigger.kill(!!c),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Qe&&!0!==Qe.vars.overwrite)._first||Te(this),this.parent&&r!==this.timeline.totalDuration()&&te(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,s,a,o,u,l,f=this._targets,h=t?fe(t):f,p=this._ptLookup,d=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,h))return"all"===e&&(this._pt=0),Te(this);for(n=this._op=this._op||[],"all"!==e&&(I(e)&&(o={},wt(e,function(t){return o[t]=1}),e=o),e=function(t,e){var r,n,i,s,a=t[0]?xt(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(n in r=Dt({},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(~h.indexOf(f[l]))for(o in i=p[l],"all"===e?(n[l]=e,a=i,s={}):(s=n[l]=n[l]||{},a=e),a)(u=i&&i[o])&&("kill"in u.d&&!0!==u.d.kill(o)||Bt(this,u,"_pt"),delete i[o]),"all"!==s&&(s[o]=1);return this._initted&&!this._pt&&d&&Te(this),this},e.to=function(t,r){return new e(t,r,arguments[2])},e.from=function(t,e){return ie(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 ie(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 h.killTweensOf(t,e,r)},e}(Ge);Rt(ar.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),wt("staggerTo,staggerFrom,staggerFromTo",function(t){ar[t]=function(){var e=new $e,r=ue.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}});var or=function(t,e,r){return t[e]=r},ur=function(t,e,r){return t[e](r)},lr=function(t,e,r,n){return t[e](n.fp,r)},cr=function(t,e,r){return t.setAttribute(e,r)},fr=function(t,e){return N(t[e])?ur:L(t[e])&&t.setAttribute?cr:or},hr=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},pr=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},dr=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)},gr=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},_r=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},mr=function(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?Bt(this,n,"_pt"):n.dep||(e=1),n=r;return!e},vr=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},yr=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},xr=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||hr,this.d=a||this,this.set=o||or,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=vr,this.m=t,this.mt=r,this.tween=e},t}();wt(vt+"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,easeReverse",function(t){return ft[t]=1}),et.TweenMax=et.TweenLite=ar,et.TimelineLite=et.TimelineMax=$e,h=new $e({sortChildren:!1,defaults:E,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),O.stringFilter=ze;var br=[],wr={},Tr=[],kr=0,Cr=0,Or=function(t){return(wr[t]||Tr).map(function(t){return t()})},Er=function(){var t=Date.now(),e=[];t-kr>2&&(Or("matchMediaInit"),br.forEach(function(t){var r,n,i,s,a=t.queries,o=t.conditions;for(n in a)(r=p.matchMedia(a[n]).matches)&&(i=1),r!==o[n]&&(o[n]=r,s=1);s&&(t.revert(),i&&e.push(t))}),Or("matchMediaRevert"),e.forEach(function(t){return t.onMatch(t,function(e){return t.add(null,e)})}),kr=t,Or("matchMedia"))},Mr=function(){function t(t,e){this.selector=e&&he(e),this.data=[],this._r=[],this.isReverted=!1,this.id=Cr++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){N(t)&&(r=e,e=t,t=N);var n=this,i=function(){var t,i=f,s=n.selector;return i&&i!==n&&i.data.push(n),r&&(n.selector=he(r)),f=n,t=e.apply(n,arguments),N(t)&&n._r.push(t),f=i,n.selector=s,n.isReverted=!1,t};return n.last=i,t===N?i(n,function(t){return n.add(null,t)}):t?n[t]=i:i},e.ignore=function(t){var e=f;f=null,t(this),f=e},e.getTweens=function(){var e=[];return this.data.forEach(function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof ar&&!(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: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 $e?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof ar)&&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=br.length;n--;)br[n].id===this.id&&br.splice(n,1)},e.revert=function(t){this.kill(t||{})},t}(),Sr=function(){function t(t){this.contexts=[],this.scope=t,f&&f.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){Y(t)||(t={matches:t});var n,i,s,a=new Mr(0,r||this.scope),o=a.conditions={};for(i in f&&!a.selector&&(a.selector=f.selector),this.contexts.push(a),e=a.add("onMatch",e),a.queries=t,t)"all"===i?s=1:(n=p.matchMedia(t[i]))&&(br.indexOf(a)<0&&br.push(a),(o[i]=n.matches)&&(s=1),n.addListener?n.addListener(Er):n.addEventListener("change",Er));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}(),Ar={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 Ce(t)})},timeline:function(t){return new $e(t)},getTweensOf:function(t,e){return h.getTweensOf(t,e)},getProperty:function(t,e,r,n){I(t)&&(t=fe(t)[0]);var i=xt(t||{}).get,s=r?Pt:At;return"native"===r&&(r=""),t?e?s((dt[e]&&dt[e].get||i)(t,e,r,n)):function(e,r,n){return s((dt[e]&&dt[e].get||i)(t,e,r,n))}:t},quickSetter:function(t,e,r){if((t=fe(t)).length>1){var n=t.map(function(t){return Dr.quickSetter(t,e,r)}),i=n.length;return function(t){for(var e=i;e--;)n[e](t)}}t=t[0]||{};var s=dt[e],a=xt(t),o=a.harness&&(a.harness.aliases||{})[e]||e,u=s?function(e){var n=new s;v._pt=0,n.init(t,r?e+r:e,v,0,[t]),n.render(1,n),v._pt&&gr(1,v)}: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=Dr.to(t,Rt(((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 h.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=je(t.ease,E.ease)),zt(E,t||{})},config:function(t){return zt(O,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&&!dt[t]&&!et[t]&&st(e+" effect requires "+t+" plugin.")}),gt[e]=function(t,e,n){return r(fe(t),Rt(e||{},i),n)},s&&($e.prototype[e]=function(t,r,n){return this.add(gt[e](t,Y(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){Ne[t]=je(e)},parseEase:function(t,e){return arguments.length?je(t,e):Ne},getById:function(t){return h.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new $e(t);for(i.smoothChildTiming=X(t.smoothChildTiming),h.remove(i),i._dp=0,i._time=i._tTime=h._time,r=h._first;r;)n=r._next,!e&&!r._dur&&r instanceof ar&&r.vars.onComplete===r._targets[0]||$t(i,r,r._start-r._delay),r=n;return $t(h,i,0),i},context:function(t,e){return t?new Mr(t,e):f},matchMedia:function(t){return new Sr(t)},matchMediaRefresh:function(){return br.forEach(function(t){var e,r,n=t.conditions;for(r in n)n[r]&&(n[r]=!1,e=1);e&&t.revert()})||Er()},addEventListener:function(t,e){var r=wr[t]||(wr[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=wr[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)?ve(e,t(0,e.length),r):se(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)?ve(e,t(0,e.length-1),r):se(n,function(t){return e+((t=(s+(t-e)%s)%s||0)>i?s-t:t)})},distribute:de,random:me,snap:_e,normalize:function(t,e,r){return xe(t,e,0,1,r)},getUnit:oe,clamp:function(t,e,r){return se(r,function(r){return ae(t,e,r)})},splitColor:Se,toArray:fe,selector:he,mapRange:xe,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||oe(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,l,c,f=I(e),h={};if(!0===n&&(i=1)&&(n=null),f)e={p:e},r={p:r};else if(H(e)&&!H(r)){for(u=[],l=e.length,c=l-2,o=1;o<l;o++)u.push(t(e[o-1],e[o]));l--,s=function(t){t*=l;var e=Math.min(c,~~t);return u[e](t-e)},n=r}else i||(e=Dt(H(e)?[]:{},e));if(!u){for(a in r)Je.call(h,e,a,"get",r[a]);s=function(t){return gr(t,h)||(f?e.p:e)}}}return se(n,s)},shuffle:pe},install:nt,effects:gt,ticker:Fe,updateRoot:$e.updateRoot,plugins:dt,globalTimeline:h,core:{PropTween:xr,globals:at,Tween:ar,Timeline:$e,Animation:Ge,getCache:xt,_removeLinkedListItem:Bt,reverting:function(){return c},context:function(t){return t&&f&&(f.data.push(t),t._ctx=f),f},suppressOverwrites:function(t){return l=t}}};wt("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Ar[t]=ar[t]}),Fe.add($e.updateRoot),v=Ar.to({},{duration:0});var Pr=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},Rr=function(t,e){return{name:t,headless:1,rawVars:1,init:function(t,r,n){n._onInit=function(t){var n,i;if(I(r)&&(n={},wt(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=Pr(i,r)),i&&i.modifier&&i.modifier(e[r],t,s[n],r))}(t,r)}}}},Dr=Ar.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;)c?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)}},Rr("roundProps",ge),Rr("modifiers"),Rr("snap",_e))||Ar;ar.version=$e.version=Dr.version="3.15.0",_=1,j()&&Ie(),Ne.Power0,Ne.Power1,Ne.Power2,Ne.Power3,Ne.Power4,Ne.Linear,Ne.Quad,Ne.Cubic,Ne.Quart,Ne.Quint,Ne.Strong,Ne.Elastic,Ne.Back,Ne.SteppedEase,Ne.Bounce,Ne.Sine,Ne.Expo,Ne.Circ;
|
|
10
|
+
/*!
|
|
11
|
+
* CSSPlugin 3.15.0
|
|
12
|
+
* https://gsap.com
|
|
13
|
+
*
|
|
14
|
+
* Copyright 2008-2026, GreenSock. All rights reserved.
|
|
15
|
+
* Subject to the terms at https://gsap.com/standard-license
|
|
16
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
17
|
+
*/
|
|
18
|
+
var zr,Fr,Ir,Nr,Br,Lr,Yr,Xr,jr={},Wr=180/Math.PI,qr=Math.PI/180,Hr=Math.atan2,Ur=/([A-Z])/g,Vr=/(left|right|width|margin|padding|x)/i,Gr=/[\s,\(]\S/,$r={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)},Zr=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)},Kr=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)},Jr=function(t,e){return e.set(e.t,e.p,1===t?e.e:t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},tn=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},en=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},rn=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},nn=function(t,e,r){return t.style[e]=r},sn=function(t,e,r){return t.style.setProperty(e,r)},an=function(t,e,r){return t._gsap[e]=r},on=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},un=function(t,e,r,n,i){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(i,s)},ln=function(t,e,r,n,i){var s=t._gsap;s[e]=r,s.renderTransform(i,s)},cn="transform",fn=cn+"Origin",hn=function t(e,r){var n=this,i=this.target,s=i.style,a=i._gsap;if(e in jr&&s){if(this.tfm=this.tfm||{},"transform"===e)return $r.transform.split(",").forEach(function(e){return t.call(n,e,r)});if(~(e=$r[e]||e).indexOf(",")?e.split(",").forEach(function(t){return n.tfm[t]=An(i,t)}):this.tfm[e]=a.x?a[e]:An(i,e),e===fn&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(cn)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(fn,r,"")),e=cn}(s||r)&&this.props.push(e,r,s[e])},pn=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},dn=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(Ur,"-$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=Yr())&&t.isStart||i[cn]||(pn(i),s.zOrigin&&i[fn]&&(i[fn]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},gn=function(t,e){var r={target:t,props:[],revert:dn,save:hn};return t._gsap||Dr.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(t){return r.save(t)}),r},_n=function(t,e){var r=Fr.createElementNS?Fr.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Fr.createElement(t);return r&&r.style?r:Fr.createElement(t)},mn=function t(e,r,n){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(Ur,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&t(e,yn(r)||r,1)||""},vn="O,Moz,ms,Ms,Webkit".split(","),yn=function(t,e,r){var n=(e||Br).style,i=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(vn[i]+t in n););return i<0?null:(3===i?"ms":i>=0?vn[i]:"")+t},xn=function(){"undefined"!=typeof window&&window.document&&(zr=window,Fr=zr.document,Ir=Fr.documentElement,Br=_n("div")||{style:{}},_n("div"),cn=yn(cn),fn=cn+"Origin",Br.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Xr=!!yn("perspective"),Yr=Dr.core.reverting,Nr=1)},bn=function(t){var e,r=t.ownerSVGElement,n=_n("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0);i.style.display="block",n.appendChild(i),Ir.appendChild(n);try{e=i.getBBox()}catch(t){}return n.removeChild(i),Ir.removeChild(n),e},wn=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},Tn=function(t){var e,r;try{e=t.getBBox()}catch(n){e=bn(t),r=1}return e&&(e.width||e.height)||r||(e=bn(t)),!e||e.width||e.x||e.y?e:{x:+wn(t,["x","cx","x1"])||0,y:+wn(t,["y","cy","y1"])||0,width:0,height:0}},kn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Tn(t))},Cn=function(t,e){if(e){var r,n=t.style;e in jr&&e!==fn&&(e=cn),n.removeProperty?("ms"!==(r=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty("--"===r?e:e.replace(Ur,"-$1").toLowerCase())):n.removeAttribute(e)}},On=function(t,e,r,n,i,s){var a=new xr(t._pt,e,r,0,1,s?rn:en);return t._pt=a,a.b=n,a.e=i,t._props.push(r),a},En={deg:1,rad:1,turn:1},Mn={grid:1,flex:1},Sn=function t(e,r,n,i){var s,a,o,u,l=parseFloat(n)||0,c=(n+"").trim().substr((l+"").length)||"px",f=Br.style,h=Vr.test(r),p="svg"===e.tagName.toLowerCase(),d=(p?"client":"offset")+(h?"Width":"Height"),g=100,_="px"===i,m="%"===i;if(i===c||!l||En[i]||En[c])return l;if("px"!==c&&!_&&(l=t(e,r,n,"px")),u=e.getCTM&&kn(e),(m||"%"===c)&&(jr[r]||~r.indexOf("adius")))return s=u?e.getBBox()[h?"width":"height"]:e[d],Tt(m?l/s*g:l/100*s);if(f[h?"width":"height"]=g+(_?c:i),a="rem"!==i&&~r.indexOf("adius")||"em"===i&&e.appendChild&&!p?e:e.parentNode,u&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==Fr&&a.appendChild||(a=Fr.body),(o=a._gsap)&&m&&o.width&&h&&o.time===Fe.time&&!o.uncache)return Tt(l/o.width*g);if(!m||"height"!==r&&"width"!==r)(m||"%"===c)&&!Mn[mn(a,"display")]&&(f.position=mn(e,"position")),a===e&&(f.position="static"),a.appendChild(Br),s=Br[d],a.removeChild(Br),f.position="absolute";else{var v=e.style[r];e.style[r]=g+i,s=e[d],v?e.style[r]=v:Cn(e,r)}return h&&m&&((o=xt(a)).time=Fe.time,o.width=a[d]),Tt(_?s*l/g:s&&l?g/s*l:0)},An=function(t,e,r,n){var i;return Nr||xn(),e in $r&&"transform"!==e&&~(e=$r[e]).indexOf(",")&&(e=e.split(",")[0]),jr[e]&&"transform"!==e?(i=jn(t,n),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Wn(mn(t,fn))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=Fn[e]&&Fn[e](t,e,r)||mn(t,e)||bt(t,e)||("opacity"===e?1:0)),r&&!~(i+"").trim().indexOf(" ")?Sn(t,e,i,r)+r:i},Pn=function(t,e,r,n){if(!r||"none"===r){var i=yn(e,t,1),s=i&&mn(t,i,1);s&&s!==r?(e=i,r=s):"borderColor"===e&&(r=mn(t,"borderTopColor"))}var a,o,u,l,c,f,h,p,d,g,_,m=new xr(this._pt,t.style,e,0,1,dr),v=0,y=0;if(m.b=r,m.e=n,r+="","var(--"===(n+="").substring(0,6)&&(n=mn(t,n.substring(4,n.indexOf(")")))),"auto"===n&&(f=t.style[e],t.style[e]=n,n=mn(t,e)||n,f?t.style[e]=f:Cn(t,e)),ze(a=[r,n]),n=a[1],u=(r=a[0]).match(Q)||[],(n.match(Q)||[]).length){for(;o=Q.exec(n);)h=o[0],d=n.substring(v,o.index),c?c=(c+1)%5:"rgba("!==d.substr(-5)&&"hsla("!==d.substr(-5)||(c=1),h!==(f=u[y++]||"")&&(l=parseFloat(f)||0,_=f.substr((l+"").length),"="===h.charAt(1)&&(h=Ct(l,h)+_),p=parseFloat(h),g=h.substr((p+"").length),v=Q.lastIndex-g.length,g||(g=g||O.units[e]||_,v===n.length&&(n+=g,m.e+=g)),_!==g&&(l=Sn(t,e,f,g)||0),m._pt={_next:m._pt,p:d||1===y?d:",",s:l,c:p-l,m:c&&c<4||"zIndex"===e?Math.round:0});m.c=v<n.length?n.substring(v,n.length):""}else m.r="display"===e&&"none"===n?rn:en;return K.test(n)&&(m.e=0),this._pt=m,m},Rn={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Dn=function(t){var e=t.split(" "),r=e[0],n=e[1]||"50%";return"top"!==r&&"bottom"!==r&&"left"!==n&&"right"!==n||(t=r,r=n,n=t),e[0]=Rn[r]||r,e[1]=Rn[n]||n,e.join(" ")},zn=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],jr[r]&&(n=1,r="transformOrigin"===r?fn:cn),Cn(s,r);n&&(Cn(s,cn),u&&(u.svg&&s.removeAttribute("transform"),a.scale=a.rotate=a.translate="none",jn(s,1),u.uncache=1,pn(a)))}},Fn={clearProps:function(t,e,r,n,i){if("isFromStart"!==i.data){var s=t._pt=new xr(t._pt,e,r,0,0,zn);return s.u=n,s.pr=-10,s.tween=i,t._props.push(r),1}}},In=[1,0,0,1,0,0],Nn={},Bn=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Ln=function(t){var e=mn(t,cn);return Bn(e)?In:e.substr(7).match($).map(Tt)},Yn=function(t,e){var r,n,i,s,a=t._gsap||xt(t),o=t.style,u=Ln(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(",")?In:u:(u!==In||t.offsetParent||t===Ir||a.svg||(i=o.display,o.display="block",(r=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(s=1,n=t.nextElementSibling,Ir.appendChild(t)),u=Ln(t),i?o.display=i:Cn(t,"display"),s&&(n?r.insertBefore(t,n):r?r.appendChild(t):Ir.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Xn=function(t,e,r,n,i,s){var a,o,u,l=t._gsap,c=i||Yn(t,!0),f=l.xOrigin||0,h=l.yOrigin||0,p=l.xOffset||0,d=l.yOffset||0,g=c[0],_=c[1],m=c[2],v=c[3],y=c[4],x=c[5],b=e.split(" "),w=parseFloat(b[0])||0,T=parseFloat(b[1])||0;r?c!==In&&(o=g*v-_*m)&&(u=w*(-_/o)+T*(g/o)-(g*x-_*y)/o,w=w*(v/o)+T*(-m/o)+(m*x-v*y)/o,T=u):(w=(a=Tn(t)).x+(~b[0].indexOf("%")?w/100*a.width:w),T=a.y+(~(b[1]||b[0]).indexOf("%")?T/100*a.height:T)),n||!1!==n&&l.smooth?(y=w-f,x=T-h,l.xOffset=p+(y*g+x*m)-y,l.yOffset=d+(y*_+x*v)-x):l.xOffset=l.yOffset=0,l.xOrigin=w,l.yOrigin=T,l.smooth=!!n,l.origin=e,l.originIsAbsolute=!!r,t.style[fn]="0px 0px",s&&(On(s,l,"xOrigin",f,w),On(s,l,"yOrigin",h,T),On(s,l,"xOffset",p,l.xOffset),On(s,l,"yOffset",d,l.yOffset)),t.setAttribute("data-svg-origin",w+" "+T)},jn=function(t,e){var r=t._gsap||new Ve(t);if("x"in r&&!e&&!r.uncache)return r;var n,i,s,a,o,u,l,c,f,h,p,d,g,_,m,v,y,x,b,w,T,k,C,E,M,S,A,P,R,D,z,F,I=t.style,N=r.scaleX<0,B="px",L="deg",Y=getComputedStyle(t),X=mn(t,fn)||"0";return n=i=s=u=l=c=f=h=p=0,a=o=1,r.svg=!(!t.getCTM||!kn(t)),Y.translate&&("none"===Y.translate&&"none"===Y.scale&&"none"===Y.rotate||(I[cn]=("none"!==Y.translate?"translate3d("+(Y.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==Y.rotate?"rotate("+Y.rotate+") ":"")+("none"!==Y.scale?"scale("+Y.scale.split(" ").join(",")+") ":"")+("none"!==Y[cn]?Y[cn]:"")),I.scale=I.rotate=I.translate="none"),_=Yn(t,r.svg),r.svg&&(r.uncache?(M=t.getBBox(),X=r.xOrigin-M.x+"px "+(r.yOrigin-M.y)+"px",E=""):E=!e&&t.getAttribute("data-svg-origin"),Xn(t,E||X,!!E||r.originIsAbsolute,!1!==r.smooth,_)),d=r.xOrigin||0,g=r.yOrigin||0,_!==In&&(x=_[0],b=_[1],w=_[2],T=_[3],n=k=_[4],i=C=_[5],6===_.length?(a=Math.sqrt(x*x+b*b),o=Math.sqrt(T*T+w*w),u=x||b?Hr(b,x)*Wr:0,(f=w||T?Hr(w,T)*Wr+u:0)&&(o*=Math.abs(Math.cos(f*qr))),r.svg&&(n-=d-(d*x+g*w),i-=g-(d*b+g*T))):(F=_[6],D=_[7],A=_[8],P=_[9],R=_[10],z=_[11],n=_[12],i=_[13],s=_[14],l=(m=Hr(F,R))*Wr,m&&(E=k*(v=Math.cos(-m))+A*(y=Math.sin(-m)),M=C*v+P*y,S=F*v+R*y,A=k*-y+A*v,P=C*-y+P*v,R=F*-y+R*v,z=D*-y+z*v,k=E,C=M,F=S),c=(m=Hr(-w,R))*Wr,m&&(v=Math.cos(-m),z=T*(y=Math.sin(-m))+z*v,x=E=x*v-A*y,b=M=b*v-P*y,w=S=w*v-R*y),u=(m=Hr(b,x))*Wr,m&&(E=x*(v=Math.cos(m))+b*(y=Math.sin(m)),M=k*v+C*y,b=b*v-x*y,C=C*v-k*y,x=E,k=M),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,c=180-c),a=Tt(Math.sqrt(x*x+b*b+w*w)),o=Tt(Math.sqrt(C*C+F*F)),m=Hr(k,C),f=Math.abs(m)>2e-4?m*Wr:0,p=z?1/(z<0?-z:z):0),r.svg&&(E=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!Bn(mn(t,cn)),E&&t.setAttribute("transform",E))),Math.abs(f)>90&&Math.abs(f)<270&&(N?(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=Tt(a),r.scaleY=Tt(o),r.rotation=Tt(u)+L,r.rotationX=Tt(l)+L,r.rotationY=Tt(c)+L,r.skewX=f+L,r.skewY=h+L,r.transformPerspective=p+B,(r.zOrigin=parseFloat(X.split(" ")[2])||!e&&r.zOrigin||0)&&(I[fn]=Wn(X)),r.xOffset=r.yOffset=0,r.force3D=O.force3D,r.renderTransform=r.svg?Qn:Xr?$n:Hn,r.uncache=0,r},Wn=function(t){return(t=t.split(" "))[0]+" "+t[1]},qn=function(t,e,r){var n=oe(e);return Tt(parseFloat(e)+parseFloat(Sn(t,"x",r+"px",n)))+n},Hn=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,$n(t,e)},Un="0deg",Vn="0px",Gn=") ",$n=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,l=r.rotationY,c=r.rotationX,f=r.skewX,h=r.skewY,p=r.scaleX,d=r.scaleY,g=r.transformPerspective,_=r.force3D,m=r.target,v=r.zOrigin,y="",x="auto"===_&&t&&1!==t||!0===_;if(v&&(c!==Un||l!==Un)){var b,w=parseFloat(l)*qr,T=Math.sin(w),k=Math.cos(w);w=parseFloat(c)*qr,b=Math.cos(w),s=qn(m,s,T*b*-v),a=qn(m,a,-Math.sin(w)*-v),o=qn(m,o,k*b*-v+v)}g!==Vn&&(y+="perspective("+g+Gn),(n||i)&&(y+="translate("+n+"%, "+i+"%) "),(x||s!==Vn||a!==Vn||o!==Vn)&&(y+=o!==Vn||x?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+Gn),u!==Un&&(y+="rotate("+u+Gn),l!==Un&&(y+="rotateY("+l+Gn),c!==Un&&(y+="rotateX("+c+Gn),f===Un&&h===Un||(y+="skew("+f+", "+h+Gn),1===p&&1===d||(y+="scale("+p+", "+d+Gn),m.style[cn]=y||"translate(0, 0)"},Qn=function(t,e){var r,n,i,s,a,o=e||this,u=o.xPercent,l=o.yPercent,c=o.x,f=o.y,h=o.rotation,p=o.skewX,d=o.skewY,g=o.scaleX,_=o.scaleY,m=o.target,v=o.xOrigin,y=o.yOrigin,x=o.xOffset,b=o.yOffset,w=o.forceCSS,T=parseFloat(c),k=parseFloat(f);h=parseFloat(h),p=parseFloat(p),(d=parseFloat(d))&&(p+=d=parseFloat(d),h+=d),h||p?(h*=qr,p*=qr,r=Math.cos(h)*g,n=Math.sin(h)*g,i=Math.sin(h-p)*-_,s=Math.cos(h-p)*_,p&&(d*=qr,a=Math.tan(p-d),i*=a=Math.sqrt(1+a*a),s*=a,d&&(a=Math.tan(d),r*=a=Math.sqrt(1+a*a),n*=a)),r=Tt(r),n=Tt(n),i=Tt(i),s=Tt(s)):(r=g,s=_,n=i=0),(T&&!~(c+"").indexOf("px")||k&&!~(f+"").indexOf("px"))&&(T=Sn(m,"x",c,"px"),k=Sn(m,"y",f,"px")),(v||y||x||b)&&(T=Tt(T+v-(v*r+y*i)+x),k=Tt(k+y-(v*n+y*s)+b)),(u||l)&&(a=m.getBBox(),T=Tt(T+u/100*a.width),k=Tt(k+l/100*a.height)),a="matrix("+r+","+n+","+i+","+s+","+T+","+k+")",m.setAttribute("transform",a),w&&(m.style[cn]=a)},Zn=function(t,e,r,n,i){var s,a,o=360,u=I(i),l=parseFloat(i)*(u&&~i.indexOf("rad")?Wr:1)-n,c=n+l+"deg";return u&&("short"===(s=i.split("_")[1])&&(l%=o)!==l%180&&(l+=l<0?o:-360),"cw"===s&&l<0?l=(l+36e9)%o-~~(l/o)*o:"ccw"===s&&l>0&&(l=(l-36e9)%o-~~(l/o)*o)),t._pt=a=new xr(t._pt,e,r,n,l,Zr),a.e=c,a.u="deg",t._props.push(r),a},Kn=function(t,e){for(var r in e)t[r]=e[r];return t},Jn=function(t,e,r){var n,i,s,a,o,u,l,c=Kn({},r._gsap),f=r.style;for(i in c.svg?(s=r.getAttribute("transform"),r.setAttribute("transform",""),f[cn]=e,n=jn(r,1),Cn(r,cn),r.setAttribute("transform",s)):(s=getComputedStyle(r)[cn],f[cn]=e,n=jn(r,1),f[cn]=s),jr)(s=c[i])!==(a=n[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(o=oe(s)!==(l=oe(a))?Sn(r,i,s,l):parseFloat(s),u=parseFloat(a),t._pt=new xr(t._pt,n,i,o,u-o,Qr),t._pt.u=l||0,t._props.push(i));Kn(n,c)};wt("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});Fn[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 An(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 ti,ei,ri,ni={name:"css",register:xn,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,n,i){var s,a,o,u,l,c,f,h,p,d,g,_,m,v,y,x,b,w=this._props,T=t.style,k=r.vars.startAt;for(f in Nr||xn(),this.styles=this.styles||gn(t),x=this.styles.props,this.tween=r,e)if("autoRound"!==f&&(a=e[f],!dt[f]||!tr(f,e,r,n,t,i)))if(l=typeof a,c=Fn[f],"function"===l&&(l=typeof(a=a.call(r,n,t,i))),"string"===l&&~a.indexOf("random(")&&(a=ye(a)),c)c(this,t,f,a,r)&&(y=1);else if("--"===f.substr(0,2))s=(getComputedStyle(t).getPropertyValue(f)+"").trim(),a+="",Re.lastIndex=0,Re.test(s)||(h=oe(s),(p=oe(a))?h!==p&&(s=Sn(t,f,s,p)+p):h&&(a+=h)),this.add(T,"setProperty",s,a,n,i,0,0,f),w.push(f),x.push(f,0,T[f]);else if("undefined"!==l){if(k&&f in k?(s="function"==typeof k[f]?k[f].call(r,n,t,i):k[f],I(s)&&~s.indexOf("random(")&&(s=ye(s)),oe(s+"")||"auto"===s||(s+=O.units[f]||oe(An(t,f))||""),"="===(s+"").charAt(1)&&(s=An(t,f))):s=An(t,f),u=parseFloat(s),(d="string"===l&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),f in $r&&("autoAlpha"===f&&(1===u&&"hidden"===An(t,"visibility")&&o&&(u=0),x.push("visibility",0,T.visibility),On(this,T,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==f&&"transform"!==f&&~(f=$r[f]).indexOf(",")&&(f=f.split(",")[0])),g=f in jr){if(this.styles.save(f),b=a,"string"===l&&"var(--"===a.substring(0,6)){if("calc("===(a=mn(t,a.substring(4,a.indexOf(")")))).substring(0,5)){var C=t.style.perspective;t.style.perspective=a,a=mn(t,"perspective"),C?t.style.perspective=C:Cn(t,"perspective")}o=parseFloat(a)}if(_||((m=t._gsap).renderTransform&&!e.parseTransform||jn(t,e.parseTransform),v=!1!==e.smoothOrigin&&m.smooth,(_=this._pt=new xr(this._pt,T,cn,0,1,m.renderTransform,m,0,-1)).dep=1),"scale"===f)this._pt=new xr(this._pt,m,"scaleY",m.scaleY,(d?Ct(m.scaleY,d+o):o)-m.scaleY||0,Qr),this._pt.u=0,w.push("scaleY",f),f+="X";else{if("transformOrigin"===f){x.push(fn,0,T[fn]),a=Dn(a),m.svg?Xn(t,a,0,v,0,this):((p=parseFloat(a.split(" ")[2])||0)!==m.zOrigin&&On(this,m,"zOrigin",m.zOrigin,p),On(this,T,f,Wn(s),Wn(a)));continue}if("svgOrigin"===f){Xn(t,a,1,v,0,this);continue}if(f in Nn){Zn(this,m,f,u,d?Ct(u,d+a):a);continue}if("smoothOrigin"===f){On(this,m,"smooth",m.smooth,a);continue}if("force3D"===f){m[f]=a;continue}if("transform"===f){Jn(this,a,t);continue}}}else f in T||(f=yn(f)||f);if(g||(o||0===o)&&(u||0===u)&&!Gr.test(a)&&f in T)o||(o=0),(h=(s+"").substr((u+"").length))!==(p=oe(a)||(f in O.units?O.units[f]:h))&&(u=Sn(t,f,s,p)),this._pt=new xr(this._pt,g?m:T,f,u,(d?Ct(u,d+o):o)-u,g||"px"!==p&&"zIndex"!==f||!1===e.autoRound?Qr:tn),this._pt.u=p||0,g&&b!==a?(this._pt.b=s,this._pt.e=b,this._pt.r=Jr):h!==p&&"%"!==p&&(this._pt.b=s,this._pt.r=Kr);else if(f in T)Pn.call(this,t,f,s,d?d+a:a);else if(f in t)this.add(t,f,s||t[f],d?d+a:a,n,i);else if("parseTransform"!==f){it(f,a);continue}g||(f in T?x.push(f,0,T[f]):"function"==typeof t[f]?x.push(f,2,t[f]()):x.push(f,1,s||t[f])),w.push(f)}y&&yr(this)},render:function(t,e){if(e.tween._time||!Yr())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:An,aliases:$r,getSetter:function(t,e,r){var n=$r[e];return n&&n.indexOf(",")<0&&(e=n),e in jr&&e!==fn&&(t._gsap.x||An(t,"x"))?r&&Lr===r?"scale"===e?on:an:(Lr=r||{})&&("scale"===e?un:ln):t.style&&!L(t.style[e])?nn:~e.indexOf("-")?sn:fr(t,e)},core:{_removeProperty:Cn,_getMatrix:Yn}};Dr.utils.checkPrefix=yn,Dr.core.getStyleSaver=gn,ri=wt((ti="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(ei="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){jr[t]=1}),wt(ei,function(t){O.units[t]="deg",Nn[t]=1}),$r[ri[13]]=ti+","+ei,wt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");$r[e[1]]=ri[e[0]]}),wt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){O.units[t]="px"}),Dr.registerPlugin(ni);var ii=Dr.registerPlugin(ni)||Dr;ii.core.Tween;
|
|
19
|
+
/*!
|
|
20
|
+
* @gsap/react 2.1.2
|
|
21
|
+
* https://gsap.com
|
|
22
|
+
*
|
|
23
|
+
* Copyright 2008-2025, GreenSock. All rights reserved.
|
|
24
|
+
* Subject to the terms at https://gsap.com/standard-license or for
|
|
25
|
+
* Club GSAP members, the agreement issued with that membership.
|
|
26
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
27
|
+
*/
|
|
28
|
+
let si="undefined"!=typeof document?n:i,ai=t=>t&&!Array.isArray(t)&&"object"==typeof t,oi=[],ui={},li=ii;const ci=(t,e=oi)=>{let n=ui;ai(t)?(n=t,t=null,e="dependencies"in n?n.dependencies:oi):ai(e)&&(n=e,e="dependencies"in n?n.dependencies:oi),t&&"function"!=typeof t&&console.warn("First parameter must be a function or config object");const{scope:i,revertOnUpdate:s}=n,a=r(!1),o=r(li.context(()=>{},i)),u=r(t=>o.current.add(null,t)),l=e&&e.length&&!s;return l&&si(()=>(a.current=!0,()=>o.current.revert()),oi),si(()=>{if(t&&o.current.add(t,i),!l||!a.current)return()=>o.current.revert()},e),{context:o.current,contextSafe:u.current}};function fi(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}ci.register=t=>{li=t},ci.headless=!0;
|
|
29
|
+
/*!
|
|
30
|
+
* Observer 3.15.0
|
|
31
|
+
* https://gsap.com
|
|
32
|
+
*
|
|
33
|
+
* @license Copyright 2008-2026, GreenSock. All rights reserved.
|
|
34
|
+
* Subject to the terms at https://gsap.com/standard-license
|
|
35
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
36
|
+
*/
|
|
37
|
+
var hi,pi,di,gi,_i,mi,vi,yi,xi,bi,wi,Ti,ki,Ci=function(){return hi||"undefined"!=typeof window&&(hi=window.gsap)&&hi.registerPlugin&&hi},Oi=1,Ei=[],Mi=[],Si=[],Ai=Date.now,Pi=function(t,e){return e},Ri=function(t,e){return~Si.indexOf(t)&&Si[Si.indexOf(t)+1][e]},Di=function(t){return!!~bi.indexOf(t)},zi=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!1!==n,capture:!!i})},Fi=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},Ii="scrollLeft",Ni="scrollTop",Bi=function(){return wi&&wi.isPressed||Mi.cache++},Li=function(t,e){var r=function r(n){if(n||0===n){Oi&&(di.history.scrollRestoration="manual");var i=wi&&wi.isPressed;n=r.v=Math.round(n)||(wi&&wi.iOS?1:0),t(n),r.cacheID=Mi.cache,i&&Pi("ss",n)}else(e||Mi.cache!==r.cacheID||Pi("ref"))&&(r.cacheID=Mi.cache,r.v=t());return r.v+r.offset};return r.offset=0,t&&r},Yi={s:Ii,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Li(function(t){return arguments.length?di.scrollTo(t,Xi.sc()):di.pageXOffset||gi[Ii]||_i[Ii]||mi[Ii]||0})},Xi={s:Ni,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Yi,sc:Li(function(t){return arguments.length?di.scrollTo(Yi.sc(),t):di.pageYOffset||gi[Ni]||_i[Ni]||mi[Ni]||0})},ji=function(t,e){return(e&&e._ctx&&e._ctx.selector||hi.utils.toArray)(t)[0]||("string"==typeof t&&!1!==hi.config().nullTargetWarn?console.warn("Element not found:",t):null)},Wi=function(t,e){var r=e.s,n=e.sc;Di(t)&&(t=gi.scrollingElement||_i);var i=Mi.indexOf(t),s=n===Xi.sc?1:2;!~i&&(i=Mi.push(t)-1),Mi[i+s]||zi(t,"scroll",Bi);var a=Mi[i+s],o=a||(Mi[i+s]=Li(Ri(t,r),!0)||(Di(t)?n:Li(function(e){return arguments.length?t[r]=e:t[r]})));return o.target=t,a||(o.smooth="smooth"===hi.getProperty(t,"scrollBehavior")),o},qi=function(t,e,r){var n=t,i=t,s=Ai(),a=s,o=e||50,u=Math.max(500,3*o),l=function(t,e){var u=Ai();e||u-s>o?(i=n,n=t,a=s,s=u):r?n+=t:n=i+(t-i)/(u-a)*(s-a)};return{update:l,reset:function(){i=n=r?0:n,a=s=0},getVelocity:function(t){var e=a,o=i,c=Ai();return(t||0===t)&&t!==n&&l(t),s===a||c-a>u?0:(n+(r?o:-o))/((r?c:s)-e)*1e3}}},Hi=function(t,e){return e&&!t._gsapAllow&&!1!==t.cancelable&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},Ui=function(t){var e=Math.max.apply(Math,t),r=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(r)?e:r},Vi=function(){var t,e,r,n;(xi=hi.core.globals().ScrollTrigger)&&xi.core&&(t=xi.core,e=t.bridge||{},r=t._scrollers,n=t._proxies,r.push.apply(r,Mi),n.push.apply(n,Si),Mi=r,Si=n,Pi=function(t,r){return e[t](r)})},Gi=function(t){return hi=t||Ci(),!pi&&hi&&"undefined"!=typeof document&&document.body&&(di=window,gi=document,_i=gi.documentElement,mi=gi.body,bi=[di,gi,_i,mi],hi.utils.clamp,ki=hi.core.context||function(){},yi="onpointerenter"in mi?"pointer":"mouse",vi=$i.isTouch=di.matchMedia&&di.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in di||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Ti=$i.eventTypes=("ontouchstart"in _i?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in _i?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return Oi=0},500),pi=1),xi||Vi(),pi};Yi.op=Xi,Mi.cache=0;var $i=function(){function t(t){this.init(t)}var e,r,n;return t.prototype.init=function(t){pi||Gi(hi)||console.warn("Please gsap.registerPlugin(Observer)"),xi||Vi();var e=t.tolerance,r=t.dragMinimum,n=t.type,i=t.target,s=t.lineHeight,a=t.debounce,o=t.preventDefault,u=t.onStop,l=t.onStopDelay,c=t.ignore,f=t.wheelSpeed,h=t.event,p=t.onDragStart,d=t.onDragEnd,g=t.onDrag,_=t.onPress,m=t.onRelease,v=t.onRight,y=t.onLeft,x=t.onUp,b=t.onDown,w=t.onChangeX,T=t.onChangeY,k=t.onChange,C=t.onToggleX,O=t.onToggleY,E=t.onHover,M=t.onHoverEnd,S=t.onMove,A=t.ignoreCheck,P=t.isNormalizer,R=t.onGestureStart,D=t.onGestureEnd,z=t.onWheel,F=t.onEnable,I=t.onDisable,N=t.onClick,B=t.scrollSpeed,L=t.capture,Y=t.allowClicks,X=t.lockAxis,j=t.onLockAxis;this.target=i=ji(i)||_i,this.vars=t,c&&(c=hi.utils.toArray(c)),e=e||1e-9,r=r||0,f=f||1,B=B||1,n=n||"wheel,touch,pointer",a=!1!==a,s||(s=parseFloat(di.getComputedStyle(mi).lineHeight)||22);var W,q,H,U,V,G,$,Q=this,Z=0,K=0,J=t.passive||!o&&!1!==t.passive,tt=Wi(i,Yi),et=Wi(i,Xi),rt=tt(),nt=et(),it=~n.indexOf("touch")&&!~n.indexOf("pointer")&&"pointerdown"===Ti[0],st=Di(i),at=i.ownerDocument||gi,ot=[0,0,0],ut=[0,0,0],lt=0,ct=function(){return lt=Ai()},ft=function(t,e){return(Q.event=t)&&c&&function(t,e){for(var r=e.length;r--;)if(e[r]===t||e[r].contains(t))return!0;return!1}(t.target,c)||e&&it&&"touch"!==t.pointerType||A&&A(t,e)},ht=function(){var t=Q.deltaX=Ui(ot),r=Q.deltaY=Ui(ut),n=Math.abs(t)>=e,i=Math.abs(r)>=e;k&&(n||i)&&k(Q,t,r,ot,ut),n&&(v&&Q.deltaX>0&&v(Q),y&&Q.deltaX<0&&y(Q),w&&w(Q),C&&Q.deltaX<0!=Z<0&&C(Q),Z=Q.deltaX,ot[0]=ot[1]=ot[2]=0),i&&(b&&Q.deltaY>0&&b(Q),x&&Q.deltaY<0&&x(Q),T&&T(Q),O&&Q.deltaY<0!=K<0&&O(Q),K=Q.deltaY,ut[0]=ut[1]=ut[2]=0),(U||H)&&(S&&S(Q),H&&(p&&1===H&&p(Q),g&&g(Q),H=0),U=!1),G&&!(G=!1)&&j&&j(Q),V&&(z(Q),V=!1),W=0},pt=function(t,e,r){ot[r]+=t,ut[r]+=e,Q._vx.update(t),Q._vy.update(e),a?W||(W=requestAnimationFrame(ht)):ht()},dt=function(t,e){X&&!$&&(Q.axis=$=Math.abs(t)>Math.abs(e)?"x":"y",G=!0),"y"!==$&&(ot[2]+=t,Q._vx.update(t,!0)),"x"!==$&&(ut[2]+=e,Q._vy.update(e,!0)),a?W||(W=requestAnimationFrame(ht)):ht()},gt=function(t){if(!ft(t,1)){var e=(t=Hi(t,o)).clientX,n=t.clientY,i=e-Q.x,s=n-Q.y,a=Q.isDragging;Q.x=e,Q.y=n,(a||(i||s)&&(Math.abs(Q.startX-e)>=r||Math.abs(Q.startY-n)>=r))&&(H||(H=a?2:1),a||(Q.isDragging=!0),dt(i,s))}},_t=Q.onPress=function(t){ft(t,1)||t&&t.button||(Q.axis=$=null,q.pause(),Q.isPressed=!0,t=Hi(t),Z=K=0,Q.startX=Q.x=t.clientX,Q.startY=Q.y=t.clientY,Q._vx.reset(),Q._vy.reset(),zi(P?i:at,Ti[1],gt,J,!0),Q.deltaX=Q.deltaY=0,_&&_(Q))},mt=Q.onRelease=function(t){if(!ft(t,1)){Fi(P?i:at,Ti[1],gt,!0);var e=!isNaN(Q.y-Q.startY),r=Q.isDragging,n=r&&(Math.abs(Q.x-Q.startX)>3||Math.abs(Q.y-Q.startY)>3),s=Hi(t);!n&&e&&(Q._vx.reset(),Q._vy.reset(),o&&Y&&hi.delayedCall(.08,function(){if(Ai()-lt>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(at.createEvent){var e=at.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,di,1,s.screenX,s.screenY,s.clientX,s.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}})),Q.isDragging=Q.isGesturing=Q.isPressed=!1,u&&r&&!P&&q.restart(!0),H&&ht(),d&&r&&d(Q),m&&m(Q,n)}},vt=function(t){return t.touches&&t.touches.length>1&&(Q.isGesturing=!0)&&R(t,Q.isDragging)},yt=function(){return(Q.isGesturing=!1)||D(Q)},xt=function(t){if(!ft(t)){var e=tt(),r=et();pt((e-rt)*B,(r-nt)*B,1),rt=e,nt=r,u&&q.restart(!0)}},bt=function(t){if(!ft(t)){t=Hi(t,o),z&&(V=!0);var e=(1===t.deltaMode?s:2===t.deltaMode?di.innerHeight:1)*f;pt(t.deltaX*e,t.deltaY*e,0),u&&!P&&q.restart(!0)}},wt=function(t){if(!ft(t)){var e=t.clientX,r=t.clientY,n=e-Q.x,i=r-Q.y;Q.x=e,Q.y=r,U=!0,u&&q.restart(!0),(n||i)&&dt(n,i)}},Tt=function(t){Q.event=t,E(Q)},kt=function(t){Q.event=t,M(Q)},Ct=function(t){return ft(t)||Hi(t,o)&&N(Q)};q=Q._dc=hi.delayedCall(l||.25,function(){Q._vx.reset(),Q._vy.reset(),q.pause(),u&&u(Q)}).pause(),Q.deltaX=Q.deltaY=0,Q._vx=qi(0,50,!0),Q._vy=qi(0,50,!0),Q.scrollX=tt,Q.scrollY=et,Q.isDragging=Q.isGesturing=Q.isPressed=!1,ki(this),Q.enable=function(t){return Q.isEnabled||(zi(st?at:i,"scroll",Bi),n.indexOf("scroll")>=0&&zi(st?at:i,"scroll",xt,J,L),n.indexOf("wheel")>=0&&zi(i,"wheel",bt,J,L),(n.indexOf("touch")>=0&&vi||n.indexOf("pointer")>=0)&&(zi(i,Ti[0],_t,J,L),zi(at,Ti[2],mt),zi(at,Ti[3],mt),Y&&zi(i,"click",ct,!0,!0),N&&zi(i,"click",Ct),R&&zi(at,"gesturestart",vt),D&&zi(at,"gestureend",yt),E&&zi(i,yi+"enter",Tt),M&&zi(i,yi+"leave",kt),S&&zi(i,yi+"move",wt)),Q.isEnabled=!0,Q.isDragging=Q.isGesturing=Q.isPressed=U=H=!1,Q._vx.reset(),Q._vy.reset(),rt=tt(),nt=et(),t&&t.type&&_t(t),F&&F(Q)),Q},Q.disable=function(){Q.isEnabled&&(Ei.filter(function(t){return t!==Q&&Di(t.target)}).length||Fi(st?at:i,"scroll",Bi),Q.isPressed&&(Q._vx.reset(),Q._vy.reset(),Fi(P?i:at,Ti[1],gt,!0)),Fi(st?at:i,"scroll",xt,L),Fi(i,"wheel",bt,L),Fi(i,Ti[0],_t,L),Fi(at,Ti[2],mt),Fi(at,Ti[3],mt),Fi(i,"click",ct,!0),Fi(i,"click",Ct),Fi(at,"gesturestart",vt),Fi(at,"gestureend",yt),Fi(i,yi+"enter",Tt),Fi(i,yi+"leave",kt),Fi(i,yi+"move",wt),Q.isEnabled=Q.isPressed=Q.isDragging=!1,I&&I(Q))},Q.kill=Q.revert=function(){Q.disable();var t=Ei.indexOf(Q);t>=0&&Ei.splice(t,1),wi===Q&&(wi=0)},Ei.push(Q),P&&Di(i)&&(wi=Q),Q.enable(h)},e=t,(r=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&fi(e.prototype,r),n&&fi(e,n),t}();$i.version="3.15.0",$i.create=function(t){return new $i(t)},$i.register=Gi,$i.getAll=function(){return Ei.slice()},$i.getById=function(t){return Ei.filter(function(e){return e.vars.id===t})[0]},Ci()&&hi.registerPlugin($i);
|
|
38
|
+
/*!
|
|
39
|
+
* ScrollTrigger 3.15.0
|
|
40
|
+
* https://gsap.com
|
|
41
|
+
*
|
|
42
|
+
* @license Copyright 2008-2026, GreenSock. All rights reserved.
|
|
43
|
+
* Subject to the terms at https://gsap.com/standard-license
|
|
44
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
45
|
+
*/
|
|
46
|
+
var Qi,Zi,Ki,Ji,ts,es,rs,ns,is,ss,as,os,us,ls,cs,fs,hs,ps,ds,gs,_s,ms,vs,ys,xs,bs,ws,Ts,ks,Cs,Os,Es,Ms,Ss,As,Ps,Rs,Ds,zs=1,Fs=Date.now,Is=Fs(),Ns=0,Bs=0,Ls=function(t,e,r){var n=Js(t)&&("clamp("===t.substr(0,6)||t.indexOf("max")>-1);return r["_"+e+"Clamp"]=n,n?t.substr(6,t.length-7):t},Ys=function(t,e){return!e||Js(t)&&"clamp("===t.substr(0,6)?t:"clamp("+t+")"},Xs=function t(){return Bs&&requestAnimationFrame(t)},js=function(){return ls=1},Ws=function(){return ls=0},qs=function(t){return t},Hs=function(t){return Math.round(1e5*t)/1e5||0},Us=function(){return"undefined"!=typeof window},Vs=function(){return Qi||Us()&&(Qi=window.gsap)&&Qi.registerPlugin&&Qi},Gs=function(t){return!!~rs.indexOf(t)},$s=function(t){return("Height"===t?Os:Ki["inner"+t])||ts["client"+t]||es["client"+t]},Qs=function(t){return Ri(t,"getBoundingClientRect")||(Gs(t)?function(){return co.width=Ki.innerWidth,co.height=Os,co}:function(){return wa(t)})},Zs=function(t,e){var r=e.s,n=e.d2,i=e.d,s=e.a;return Math.max(0,(r="scroll"+n)&&(s=Ri(t,r))?s()-Qs(t)()[i]:Gs(t)?(ts[r]||es[r])-$s(n):t[r]-t["offset"+n])},Ks=function(t,e){for(var r=0;r<ds.length;r+=3)(!e||~e.indexOf(ds[r+1]))&&t(ds[r],ds[r+1],ds[r+2])},Js=function(t){return"string"==typeof t},ta=function(t){return"function"==typeof t},ea=function(t){return"number"==typeof t},ra=function(t){return"object"==typeof t},na=function(t,e,r){return t&&t.progress(e?0:1)&&r&&t.pause()},ia=function(t,e,r){if(t.enabled){var n=t._ctx?t._ctx.add(function(){return e(t,r)}):e(t,r);n&&n.totalTime&&(t.callbackAnimation=n)}},sa=Math.abs,aa="left",oa="right",ua="bottom",la="width",ca="height",fa="Right",ha="Left",pa="Top",da="Bottom",ga="padding",_a="margin",ma="Width",va="Height",ya="px",xa=function(t){return Ki.getComputedStyle(t.nodeType===Node.DOCUMENT_NODE?t.scrollingElement:t)},ba=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},wa=function(t,e){var r=e&&"matrix(1, 0, 0, 1, 0, 0)"!==xa(t)[cs]&&Qi.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=t.getBoundingClientRect?t.getBoundingClientRect():t.scrollingElement.getBoundingClientRect();return r&&r.progress(0).kill(),n},Ta=function(t,e){var r=e.d2;return t["offset"+r]||t["client"+r]||0},ka=function(t){var e,r=[],n=t.labels,i=t.duration();for(e in n)r.push(n[e]/i);return r},Ca=function(t){var e=Qi.utils.snap(t),r=Array.isArray(t)&&t.slice(0).sort(function(t,e){return t-e});return r?function(t,n,i){var s;if(void 0===i&&(i=.001),!n)return e(t);if(n>0){for(t-=i,s=0;s<r.length;s++)if(r[s]>=t)return r[s];return r[s-1]}for(s=r.length,t+=i;s--;)if(r[s]<=t)return r[s];return r[0]}:function(r,n,i){void 0===i&&(i=.001);var s=e(r);return!n||Math.abs(s-r)<i||s-r<0==n<0?s:e(n<0?r-t:r+t)}},Oa=function(t,e,r,n){return r.split(",").forEach(function(r){return t(e,r,n)})},Ea=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!n,capture:!!i})},Ma=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},Sa=function(t,e,r){(r=r&&r.wheelHandler)&&(t(e,"wheel",r),t(e,"touchmove",r))},Aa={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Pa={toggleActions:"play",anticipatePin:0},Ra={top:0,left:0,center:.5,bottom:1,right:1},Da=function(t,e){if(Js(t)){var r=t.indexOf("="),n=~r?+(t.charAt(r-1)+1)*parseFloat(t.substr(r+1)):0;~r&&(t.indexOf("%")>r&&(n*=e/100),t=t.substr(0,r-1)),t=n+(t in Ra?Ra[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},za=function(t,e,r,n,i,s,a,o){var u=i.startColor,l=i.endColor,c=i.fontSize,f=i.indent,h=i.fontWeight,p=Ji.createElement("div"),d=Gs(r)||"fixed"===Ri(r,"pinType"),g=-1!==t.indexOf("scroller"),_=d?es:"IFRAME"===r.tagName?r.contentDocument.body:r,m=-1!==t.indexOf("start"),v=m?u:l,y="border-color:"+v+";font-size:"+c+";color:"+v+";font-weight:"+h+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((g||o)&&d?"fixed;":"absolute;"),(g||o||!d)&&(y+=(n===Xi?oa:ua)+":"+(s+parseFloat(f))+"px;"),a&&(y+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=m,p.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),p.style.cssText=y,p.innerText=e||0===e?t+"-"+e:t,_.children[0]?_.insertBefore(p,_.children[0]):_.appendChild(p),p._offset=p["offset"+n.op.d2],Fa(p,0,n,m),p},Fa=function(t,e,r,n){var i={display:"block"},s=r[n?"os2":"p2"],a=r[n?"p2":"os2"];t._isFlipped=n,i[r.a+"Percent"]=n?-100:0,i[r.a]=n?"1px":0,i["border"+s+ma]=1,i["border"+a+ma]=0,i[r.p]=e+"px",Qi.set(t,i)},Ia=[],Na={},Ba=function(){return Fs()-Ns>34&&(As||(As=requestAnimationFrame(no)))},La=function(){(!vs||!vs.isPressed||vs.startX>es.clientWidth)&&(Mi.cache++,vs?As||(As=requestAnimationFrame(no)):no(),Ns||Ha("scrollStart"),Ns=Fs())},Ya=function(){bs=Ki.innerWidth,xs=Ki.innerHeight},Xa=function(t){Mi.cache++,(!0===t||!us&&!ms&&!Ji.fullscreenElement&&!Ji.webkitFullscreenElement&&(!ys||bs!==Ki.innerWidth||Math.abs(Ki.innerHeight-xs)>.25*Ki.innerHeight))&&ns.restart(!0)},ja={},Wa=[],qa=function t(){return Ma(vo,"scrollEnd",t)||to(!0)},Ha=function(t){return ja[t]&&ja[t].map(function(t){return t()})||Wa},Ua=[],Va=function(t){for(var e=0;e<Ua.length;e+=5)(!t||Ua[e+4]&&Ua[e+4].query===t)&&(Ua[e].style.cssText=Ua[e+1],Ua[e].getBBox&&Ua[e].setAttribute("transform",Ua[e+2]||""),Ua[e+3].uncache=1)},Ga=function(){return Mi.forEach(function(t){return ta(t)&&++t.cacheID&&(t.rec=t())})},$a=function(t,e){var r;for(fs=0;fs<Ia.length;fs++)!(r=Ia[fs])||e&&r._ctx!==e||(t?r.kill(1):r.revert(!0,!0));Es=!0,e&&Va(e),e||Ha("revert")},Qa=function(t,e){Mi.cache++,(e||!Ps)&&Mi.forEach(function(t){return ta(t)&&t.cacheID++&&(t.rec=0)}),Js(t)&&(Ki.history.scrollRestoration=ks=t)},Za=0,Ka=function(){es.appendChild(Cs),Os=!vs&&Cs.offsetHeight||Ki.innerHeight,es.removeChild(Cs)},Ja=function(t){return is(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(e){return e.style.display=t?"none":"block"})},to=function(t,e){if(ts=Ji.documentElement,es=Ji.body,rs=[Ki,Ji,ts,es],!Ns||t||Es){Ka(),Ps=vo.isRefreshing=!0,Es||Ga();var r=Ha("refreshInit");gs&&vo.sort(),e||$a(),Mi.forEach(function(t){ta(t)&&(t.smooth&&(t.target.style.scrollBehavior="auto"),t(0))}),Ia.slice(0).forEach(function(t){return t.refresh()}),Es=!1,Ia.forEach(function(t){if(t._subPinOffset&&t.pin){var e=t.vars.horizontal?"offsetWidth":"offsetHeight",r=t.pin[e];t.revert(!0,1),t.adjustPinSpacing(t.pin[e]-r),t.refresh()}}),Ms=1,Ja(!0),Ia.forEach(function(t){var e=Zs(t.scroller,t._dir),r="max"===t.vars.end||t._endClamp&&t.end>e,n=t._startClamp&&t.start>=e;(r||n)&&t.setPositions(n?e-1:t.start,r?Math.max(n?e:t.start+1,e):t.end,!0)}),Ja(!1),Ms=0,r.forEach(function(t){return t&&t.render&&t.render(-1)}),Mi.forEach(function(t){ta(t)&&(t.smooth&&requestAnimationFrame(function(){return t.target.style.scrollBehavior="smooth"}),t.rec&&t(t.rec))}),Qa(ks,1),ns.pause(),Za++,Ps=2,no(2),Ia.forEach(function(t){return ta(t.vars.onRefresh)&&t.vars.onRefresh(t)}),Ps=vo.isRefreshing=!1,Ha("refresh")}else Ea(vo,"scrollEnd",qa)},eo=0,ro=1,no=function(t){if(2===t||!Ps&&!Es){vo.isUpdating=!0,Ds&&Ds.update(0);var e=Ia.length,r=Fs(),n=r-Is>=50,i=e&&Ia[0].scroll();if(ro=eo>i?-1:1,Ps||(eo=i),n&&(Ns&&!ls&&r-Ns>200&&(Ns=0,Ha("scrollEnd")),as=Is,Is=r),ro<0){for(fs=e;fs-- >0;)Ia[fs]&&Ia[fs].update(0,n);ro=1}else for(fs=0;fs<e;fs++)Ia[fs]&&Ia[fs].update(0,n);vo.isUpdating=!1}As=0},io=[aa,"top",ua,oa,_a+da,_a+fa,_a+pa,_a+ha,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],so=io.concat([la,ca,"boxSizing","max"+ma,"max"+va,"position",_a,ga,ga+pa,ga+fa,ga+da,ga+ha]),ao=function(t,e,r,n){if(!t._gsap.swappedIn){for(var i,s=io.length,a=e.style,o=t.style;s--;)a[i=io[s]]=r[i];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),o[ua]=o[oa]="auto",a.flexBasis=r.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[la]=Ta(t,Yi)+ya,a[ca]=Ta(t,Xi)+ya,a[ga]=o[_a]=o.top=o[aa]="0",uo(n),o[la]=o["max"+ma]=r[la],o[ca]=o["max"+va]=r[ca],o[ga]=r[ga],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},oo=/([A-Z])/g,uo=function(t){if(t){var e,r,n=t.t.style,i=t.length,s=0;for((t.t._gsap||Qi.core.getCache(t.t)).uncache=1;s<i;s+=2)r=t[s+1],e=t[s],r?n[e]=r:n[e]&&n.removeProperty(e.replace(oo,"-$1").toLowerCase())}},lo=function(t){for(var e=so.length,r=t.style,n=[],i=0;i<e;i++)n.push(so[i],r[so[i]]);return n.t=t,n},co={left:0,top:0},fo=function(t,e,r,n,i,s,a,o,u,l,c,f,h,p){ta(t)&&(t=t(o)),Js(t)&&"max"===t.substr(0,3)&&(t=f+("="===t.charAt(4)?Da("0"+t.substr(3),r):0));var d,g,_,m=h?h.time():0;if(h&&h.seek(0),isNaN(t)||(t=+t),ea(t))h&&(t=Qi.utils.mapRange(h.scrollTrigger.start,h.scrollTrigger.end,0,f,t)),a&&Fa(a,r,n,!0);else{ta(e)&&(e=e(o));var v,y,x,b,w=(t||"0").split(" ");_=ji(e,o)||es,(v=wa(_)||{})&&(v.left||v.top)||"none"!==xa(_).display||(b=_.style.display,_.style.display="block",v=wa(_),b?_.style.display=b:_.style.removeProperty("display")),y=Da(w[0],v[n.d]),x=Da(w[1]||"0",r),t=v[n.p]-u[n.p]-l+y+i-x,a&&Fa(a,x,n,r-x<20||a._isStart&&x>20),r-=r-x}if(p&&(o[p]=t||-.001,t<0&&(t=0)),s){var T=t+r,k=s._isStart;d="scroll"+n.d2,Fa(s,T,n,k&&T>20||!k&&(c?Math.max(es[d],ts[d]):s.parentNode[d])<=T+1),c&&(u=wa(a),c&&(s.style[n.op.p]=u[n.op.p]-n.op.m-s._offset+ya))}return h&&_&&(d=wa(_),h.seek(f),g=wa(_),h._caScrollDist=d[n.p]-g[n.p],t=t/h._caScrollDist*f),h&&h.seek(m),h?t:Math.round(t)},ho=/(webkit|moz|length|cssText|inset)/i,po=function(t,e,r,n){if(t.parentNode!==e){var i,s,a=t.style;if(e===es){for(i in t._stOrig=a.cssText,s=xa(t))+i||ho.test(i)||!s[i]||"string"!=typeof a[i]||"0"===i||(a[i]=s[i]);a.top=r,a.left=n}else a.cssText=t._stOrig;Qi.core.getCache(t).uncache=1,e.appendChild(t)}},go=function(t,e,r){var n=e,i=n;return function(e){var s=Math.round(t());return s!==n&&s!==i&&Math.abs(s-n)>3&&Math.abs(s-i)>3&&(e=s,r&&r()),i=n,n=Math.round(e)}},_o=function(t,e,r){var n={};n[e.p]="+="+r,Qi.set(t,n)},mo=function(t,e){var r=Wi(t,e),n="_scroll"+e.p2,i=function e(i,s,a,o,u){var l=e.tween,c=s.onComplete,f={};a=a||r();var h=go(r,a,function(){l.kill(),e.tween=0});return u=o&&u||0,o=o||i-a,l&&l.kill(),s[n]=i,s.inherit=!1,s.modifiers=f,f[n]=function(){return h(a+o*l.ratio+u*l.ratio*l.ratio)},s.onUpdate=function(){Mi.cache++,e.tween&&no()},s.onComplete=function(){e.tween=0,c&&c.call(l)},l=e.tween=Qi.to(t,s)};return t[n]=r,r.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},Ea(t,"wheel",r.wheelHandler),vo.isTouch&&Ea(t,"touchmove",r.wheelHandler),i},vo=function(){function t(e,r){Zi||t.register(Qi)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),Ts(this),this.init(e,r)}return t.prototype.init=function(e,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Bs){var n,i,s,a,o,u,l,c,f,h,p,d,g,_,m,v,y,x,b,w,T,k,C,O,E,M,S,A,P,R,D,z,F,I,N,B,L,Y,X,j,W,q,H=e=ba(Js(e)||ea(e)||e.nodeType?{trigger:e}:e,Pa),U=H.onUpdate,V=H.toggleClass,G=H.id,$=H.onToggle,Q=H.onRefresh,Z=H.scrub,K=H.trigger,J=H.pin,tt=H.pinSpacing,et=H.invalidateOnRefresh,rt=H.anticipatePin,nt=H.onScrubComplete,it=H.onSnapComplete,st=H.once,at=H.snap,ot=H.pinReparent,ut=H.pinSpacer,lt=H.containerAnimation,ct=H.fastScrollEnd,ft=H.preventOverlaps,ht=e.horizontal||e.containerAnimation&&!1!==e.horizontal?Yi:Xi,pt=!Z&&0!==Z,dt=ji(e.scroller||Ki),gt=Qi.core.getCache(dt),_t=Gs(dt),mt="fixed"===("pinType"in e?e.pinType:Ri(dt,"pinType")||_t&&"fixed"),vt=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],yt=pt&&e.toggleActions.split(" "),xt="markers"in e?e.markers:Pa.markers,bt=_t?0:parseFloat(xa(dt)["border"+ht.p2+ma])||0,wt=this,Tt=e.onRefreshInit&&function(){return e.onRefreshInit(wt)},kt=function(t,e,r){var n=r.d,i=r.d2,s=r.a;return(s=Ri(t,"getBoundingClientRect"))?function(){return s()[n]}:function(){return(e?$s(i):t["client"+i])||0}}(dt,_t,ht),Ct=function(t,e){return!e||~Si.indexOf(t)?Qs(t):function(){return co}}(dt,_t),Ot=0,Et=0,Mt=0,St=Wi(dt,ht);if(wt._startClamp=wt._endClamp=!1,wt._dir=ht,rt*=45,wt.scroller=dt,wt.scroll=lt?lt.time.bind(lt):St,a=St(),wt.vars=e,r=r||e.animation,"refreshPriority"in e&&(gs=1,-9999===e.refreshPriority&&(Ds=wt)),gt.tweenScroll=gt.tweenScroll||{top:mo(dt,Xi),left:mo(dt,Yi)},wt.tweenTo=n=gt.tweenScroll[ht.p],wt.scrubDuration=function(t){(F=ea(t)&&t)?z?z.duration(t):z=Qi.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:F,paused:!0,onComplete:function(){return nt&&nt(wt)}}):(z&&z.progress(1).kill(),z=0)},r&&(r.vars.lazy=!1,r._initted&&!wt.isReverted||!1!==r.vars.immediateRender&&!1!==e.immediateRender&&r.duration()&&r.render(0,!0,!0),wt.animation=r.pause(),r.scrollTrigger=wt,wt.scrubDuration(Z),R=0,G||(G=r.vars.id)),at&&(ra(at)&&!at.push||(at={snapTo:at}),"scrollBehavior"in es.style&&Qi.set(_t?[es,ts]:dt,{scrollBehavior:"auto"}),Mi.forEach(function(t){return ta(t)&&t.target===(_t?Ji.scrollingElement||ts:dt)&&(t.smooth=!1)}),s=ta(at.snapTo)?at.snapTo:"labels"===at.snapTo?function(t){return function(e){return Qi.utils.snap(ka(t),e)}}(r):"labelsDirectional"===at.snapTo?(j=r,function(t,e){return Ca(ka(j))(t,e.direction)}):!1!==at.directional?function(t,e){return Ca(at.snapTo)(t,Fs()-Et<500?0:e.direction)}:Qi.utils.snap(at.snapTo),I=at.duration||{min:.1,max:2},I=ra(I)?ss(I.min,I.max):ss(I,I),N=Qi.delayedCall(at.delay||F/2||.1,function(){var t=St(),e=Fs()-Et<500,i=n.tween;if(!(e||Math.abs(wt.getVelocity())<10)||i||ls||Ot===t)wt.isActive&&Ot!==t&&N.restart(!0);else{var a,o,c=(t-u)/_,f=r&&!pt?r.totalProgress():c,h=e?0:(f-D)/(Fs()-as)*1e3||0,p=Qi.utils.clamp(-c,1-c,sa(h/2)*h/.185),d=c+(!1===at.inertia?0:p),g=at,m=g.onStart,v=g.onInterrupt,y=g.onComplete;if(a=s(d,wt),ea(a)||(a=d),o=Math.max(0,Math.round(u+a*_)),t<=l&&t>=u&&o!==t){if(i&&!i._initted&&i.data<=sa(o-t))return;!1===at.inertia&&(p=a-c),n(o,{duration:I(sa(.185*Math.max(sa(d-f),sa(a-f))/h/.05||0)),ease:at.ease||"power3",data:sa(o-t),onInterrupt:function(){return N.restart(!0)&&v&&ia(wt,v)},onComplete:function(){wt.update(),Ot=St(),r&&!pt&&(z?z.resetTo("totalProgress",a,r._tTime/r._tDur):r.progress(a)),R=D=r&&!pt?r.totalProgress():wt.progress,it&&it(wt),y&&ia(wt,y)}},t,p*_,o-t-p*_),m&&ia(wt,m,n.tween)}}}).pause()),G&&(Na[G]=wt),(X=(K=wt.trigger=ji(K||!0!==J&&J))&&K._gsap&&K._gsap.stRevert)&&(X=X(wt)),J=!0===J?K:ji(J),Js(V)&&(V={targets:K,className:V}),J&&(!1===tt||tt===_a||(tt=!(!tt&&J.parentNode&&J.parentNode.style&&"flex"===xa(J.parentNode).display)&&ga),wt.pin=J,(i=Qi.core.getCache(J)).spacer?m=i.pinState:(ut&&((ut=ji(ut))&&!ut.nodeType&&(ut=ut.current||ut.nativeElement),i.spacerIsNative=!!ut,ut&&(i.spacerState=lo(ut))),i.spacer=x=ut||Ji.createElement("div"),x.classList.add("pin-spacer"),G&&x.classList.add("pin-spacer-"+G),i.pinState=m=lo(J)),!1!==e.force3D&&Qi.set(J,{force3D:!0}),wt.spacer=x=i.spacer,P=xa(J),O=P[tt+ht.os2],w=Qi.getProperty(J),T=Qi.quickSetter(J,ht.a,ya),ao(J,x,P),y=lo(J)),xt){d=ra(xt)?ba(xt,Aa):Aa,h=za("scroller-start",G,dt,ht,d,0),p=za("scroller-end",G,dt,ht,d,0,h),b=h["offset"+ht.op.d2];var At=ji(Ri(dt,"content")||dt);c=this.markerStart=za("start",G,At,ht,d,b,0,lt),f=this.markerEnd=za("end",G,At,ht,d,b,0,lt),lt&&(Y=Qi.quickSetter([c,f],ht.a,ya)),mt||Si.length&&!0===Ri(dt,"fixedMarkers")||(q=xa(W=_t?es:dt).position,W.style.position="absolute"===q||"fixed"===q?q:"relative",Qi.set([h,p],{force3D:!0}),M=Qi.quickSetter(h,ht.a,ya),A=Qi.quickSetter(p,ht.a,ya))}if(lt){var Pt=lt.vars.onUpdate,Rt=lt.vars.onUpdateParams;lt.eventCallback("onUpdate",function(){wt.update(0,0,1),Pt&&Pt.apply(lt,Rt||[])})}if(wt.previous=function(){return Ia[Ia.indexOf(wt)-1]},wt.next=function(){return Ia[Ia.indexOf(wt)+1]},wt.revert=function(t,e){if(!e)return wt.kill(!0);var n=!1!==t||!wt.enabled,i=us;n!==wt.isReverted&&(n&&(B=Math.max(St(),wt.scroll.rec||0),Mt=wt.progress,L=r&&r.progress()),c&&[c,f,h,p].forEach(function(t){return t.style.display=n?"none":"block"}),n&&(us=wt,wt.update(n)),!J||ot&&wt.isActive||(n?function(t,e,r){uo(r);var n=t._gsap;if(n.spacerIsNative)uo(n.spacerState);else if(t._gsap.swappedIn){var i=e.parentNode;i&&(i.insertBefore(t,e),i.removeChild(e))}t._gsap.swappedIn=!1}(J,x,m):ao(J,x,xa(J),E)),n||wt.update(n),us=i,wt.isReverted=n)},wt.refresh=function(i,s,d,b){if(!us&&wt.enabled||s)if(J&&i&&Ns)Ea(t,"scrollEnd",qa);else{!Ps&&Tt&&Tt(wt),us=wt,n.tween&&!d&&(n.tween.kill(),n.tween=0),z&&z.pause(),et&&r&&(r.revert({kill:!1}).invalidate(),r.getChildren?r.getChildren(!0,!0,!1).forEach(function(t){return t.vars.immediateRender&&t.render(0,!0,!0)}):r.vars.immediateRender&&r.render(0,!0,!0)),wt.isReverted||wt.revert(!0,!0),wt._subPinOffset=!1;var T,O,M,A,P,R,D,F,I,Y,X,j,W,q=kt(),H=Ct(),U=lt?lt.duration():Zs(dt,ht),V=_<=.01||!_,G=0,$=b||0,Z=ra(d)?d.end:e.end,rt=e.endTrigger||K,nt=ra(d)?d.start:e.start||(0!==e.start&&K?J?"0 0":"0 100%":0),it=wt.pinnedContainer=e.pinnedContainer&&ji(e.pinnedContainer,wt),st=K&&Math.max(0,Ia.indexOf(wt))||0,at=st;for(xt&&ra(d)&&(j=Qi.getProperty(h,ht.p),W=Qi.getProperty(p,ht.p));at-- >0;)(R=Ia[at]).end||R.refresh(0,1)||(us=wt),!(D=R.pin)||D!==K&&D!==J&&D!==it||R.isReverted||(Y||(Y=[]),Y.unshift(R),R.revert(!0,!0)),R!==Ia[at]&&(st--,at--);for(ta(nt)&&(nt=nt(wt)),nt=Ls(nt,"start",wt),u=fo(nt,K,q,ht,St(),c,h,wt,H,bt,mt,U,lt,wt._startClamp&&"_startClamp")||(J?-.001:0),ta(Z)&&(Z=Z(wt)),Js(Z)&&!Z.indexOf("+=")&&(~Z.indexOf(" ")?Z=(Js(nt)?nt.split(" ")[0]:"")+Z:(G=Da(Z.substr(2),q),Z=Js(nt)?nt:(lt?Qi.utils.mapRange(0,lt.duration(),lt.scrollTrigger.start,lt.scrollTrigger.end,u):u)+G,rt=K)),Z=Ls(Z,"end",wt),l=Math.max(u,fo(Z||(rt?"100% 0":U),rt,q,ht,St()+G,f,p,wt,H,bt,mt,U,lt,wt._endClamp&&"_endClamp"))||-.001,G=0,at=st;at--;)(D=(R=Ia[at]||{}).pin)&&R.start-R._pinPush<=u&&!lt&&R.end>0&&(T=R.end-(wt._startClamp?Math.max(0,R.start):R.start),(D===K&&R.start-R._pinPush<u||D===it)&&isNaN(nt)&&(G+=T*(1-R.progress)),D===J&&($+=T));if(u+=G,l+=G,wt._startClamp&&(wt._startClamp+=G),wt._endClamp&&!Ps&&(wt._endClamp=l||-.001,l=Math.min(l,Zs(dt,ht))),_=l-u||(u-=.01)&&.001,V&&(Mt=Qi.utils.clamp(0,1,Qi.utils.normalize(u,l,B))),wt._pinPush=$,c&&G&&((T={})[ht.a]="+="+G,it&&(T[ht.p]="-="+St()),Qi.set([c,f],T)),!J||Ms&&wt.end>=Zs(dt,ht)){if(K&&St()&&!lt)for(O=K.parentNode;O&&O!==es;)O._pinOffset&&(u-=O._pinOffset,l-=O._pinOffset),O=O.parentNode}else T=xa(J),A=ht===Xi,M=St(),k=parseFloat(w(ht.a))+$,!U&&l>1&&(X={style:X=(_t?Ji.scrollingElement||ts:dt).style,value:X["overflow"+ht.a.toUpperCase()]},_t&&"scroll"!==xa(es)["overflow"+ht.a.toUpperCase()]&&(X.style["overflow"+ht.a.toUpperCase()]="scroll")),ao(J,x,T),y=lo(J),O=wa(J,!0),F=mt&&Wi(dt,A?Yi:Xi)(),tt?((E=[tt+ht.os2,_+$+ya]).t=x,(at=tt===ga?Ta(J,ht)+_+$:0)&&(E.push(ht.d,at+ya),"auto"!==x.style.flexBasis&&(x.style.flexBasis=at+ya)),uo(E),it&&Ia.forEach(function(t){t.pin===it&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)}),mt&&St(B)):(at=Ta(J,ht))&&"auto"!==x.style.flexBasis&&(x.style.flexBasis=at+ya),mt&&((P={top:O.top+(A?M-u:F)+ya,left:O.left+(A?F:M-u)+ya,boxSizing:"border-box",position:"fixed"})[la]=P["max"+ma]=Math.ceil(O.width)+ya,P[ca]=P["max"+va]=Math.ceil(O.height)+ya,P[_a]=P[_a+pa]=P[_a+fa]=P[_a+da]=P[_a+ha]="0",P[ga]=T[ga],P[ga+pa]=T[ga+pa],P[ga+fa]=T[ga+fa],P[ga+da]=T[ga+da],P[ga+ha]=T[ga+ha],v=function(t,e,r){for(var n,i=[],s=t.length,a=r?8:0;a<s;a+=2)n=t[a],i.push(n,n in e?e[n]:t[a+1]);return i.t=t.t,i}(m,P,ot),Ps&&St(0)),r?(I=r._initted,_s(1),r.render(r.duration(),!0,!0),C=w(ht.a)-k+_+$,S=Math.abs(_-C)>1,mt&&S&&v.splice(v.length-2,2),r.render(0,!0,!0),I||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),_s(0)):C=_,X&&(X.value?X.style["overflow"+ht.a.toUpperCase()]=X.value:X.style.removeProperty("overflow-"+ht.a));Y&&Y.forEach(function(t){return t.revert(!1,!0)}),wt.start=u,wt.end=l,a=o=Ps?B:St(),lt||Ps||(a<B&&St(B),wt.scroll.rec=0),wt.revert(!1,!0),Et=Fs(),N&&(Ot=-1,N.restart(!0)),us=0,r&&pt&&(r._initted||L)&&r.progress()!==L&&r.progress(L||0,!0).render(r.time(),!0,!0),(V||Mt!==wt.progress||lt||et||r&&!r._initted)&&(r&&!pt&&(r._initted||Mt||!1!==r.vars.immediateRender)&&r.totalProgress(lt&&u<-.001&&!Mt?Qi.utils.normalize(u,l,0):Mt,!0),wt.progress=V||(a-u)/_===Mt?0:Mt),J&&tt&&(x._pinOffset=Math.round(wt.progress*C)),z&&z.invalidate(),isNaN(j)||(j-=Qi.getProperty(h,ht.p),W-=Qi.getProperty(p,ht.p),_o(h,ht,j),_o(c,ht,j-(b||0)),_o(p,ht,W),_o(f,ht,W-(b||0))),V&&!Ps&&wt.update(),!Q||Ps||g||(g=!0,Q(wt),g=!1)}},wt.getVelocity=function(){return(St()-o)/(Fs()-as)*1e3||0},wt.endAnimation=function(){na(wt.callbackAnimation),r&&(z?z.progress(1):r.paused()?pt||na(r,wt.direction<0,1):na(r,r.reversed()))},wt.labelToScroll=function(t){return r&&r.labels&&(u||wt.refresh()||u)+r.labels[t]/r.duration()*_||0},wt.getTrailing=function(t){var e=Ia.indexOf(wt),r=wt.direction>0?Ia.slice(0,e).reverse():Ia.slice(e+1);return(Js(t)?r.filter(function(e){return e.vars.preventOverlaps===t}):r).filter(function(t){return wt.direction>0?t.end<=u:t.start>=l})},wt.update=function(t,e,i){if(!lt||i||t){var s,c,f,p,d,g,m,b=!0===Ps?B:wt.scroll(),w=t?0:(b-u)/_,E=w<0?0:w>1?1:w||0,P=wt.progress;if(e&&(o=a,a=lt?St():b,at&&(D=R,R=r&&!pt?r.totalProgress():E)),rt&&J&&!us&&!zs&&Ns&&(!E&&u<b+(b-o)/(Fs()-as)*rt?E=1e-4:1===E&&l>b+(b-o)/(Fs()-as)*rt&&(E=.9999)),E!==P&&wt.enabled){if(p=(d=(s=wt.isActive=!!E&&E<1)!==(!!P&&P<1))||!!E!=!!P,wt.direction=E>P?1:-1,wt.progress=E,p&&!us&&(c=E&&!P?0:1===E?1:1===P?2:3,pt&&(f=!d&&"none"!==yt[c+1]&&yt[c+1]||yt[c],m=r&&("complete"===f||"reset"===f||f in r))),ft&&(d||m)&&(m||Z||!r)&&(ta(ft)?ft(wt):wt.getTrailing(ft).forEach(function(t){return t.endAnimation()})),pt||(!z||us||zs?r&&r.totalProgress(E,!(!us||!Et&&!t)):(z._dp._time-z._start!==z._time&&z.render(z._dp._time-z._start),z.resetTo?z.resetTo("totalProgress",E,r._tTime/r._tDur):(z.vars.totalProgress=E,z.invalidate().restart()))),J)if(t&&tt&&(x.style[tt+ht.os2]=O),mt){if(p){if(g=!t&&E>P&&l+1>b&&b+1>=Zs(dt,ht),ot)if(t||!s&&!g)po(J,x);else{var F=wa(J,!0),I=b-u;po(J,es,F.top+(ht===Xi?I:0)+ya,F.left+(ht===Xi?0:I)+ya)}uo(s||g?v:y),S&&E<1&&s||T(k+(1!==E||g?0:C))}}else T(Hs(k+C*E));at&&!n.tween&&!us&&!zs&&N.restart(!0),V&&(d||st&&E&&(E<1||!Ss))&&is(V.targets).forEach(function(t){return t.classList[s||st?"add":"remove"](V.className)}),U&&!pt&&!t&&U(wt),p&&!us?(pt&&(m&&("complete"===f?r.pause().totalProgress(1):"reset"===f?r.restart(!0).pause():"restart"===f?r.restart(!0):r[f]()),U&&U(wt)),!d&&Ss||($&&d&&ia(wt,$),vt[c]&&ia(wt,vt[c]),st&&(1===E?wt.kill(!1,1):vt[c]=0),d||vt[c=1===E?1:3]&&ia(wt,vt[c])),ct&&!s&&Math.abs(wt.getVelocity())>(ea(ct)?ct:2500)&&(na(wt.callbackAnimation),z?z.progress(1):na(r,"reverse"===f?1:!E,1))):pt&&U&&!us&&U(wt)}if(A){var L=lt?b/lt.duration()*(lt._caScrollDist||0):b;M(L+(h._isFlipped?1:0)),A(L)}Y&&Y(-b/lt.duration()*(lt._caScrollDist||0))}},wt.enable=function(e,r){wt.enabled||(wt.enabled=!0,Ea(dt,"resize",Xa),_t||Ea(dt,"scroll",La),Tt&&Ea(t,"refreshInit",Tt),!1!==e&&(wt.progress=Mt=0,a=o=Ot=St()),!1!==r&&wt.refresh())},wt.getTween=function(t){return t&&n?n.tween:z},wt.setPositions=function(t,e,r,n){if(lt){var i=lt.scrollTrigger,s=lt.duration(),a=i.end-i.start;t=i.start+a*t/s,e=i.start+a*e/s}wt.refresh(!1,!1,{start:Ys(t,r&&!!wt._startClamp),end:Ys(e,r&&!!wt._endClamp)},n),wt.update()},wt.adjustPinSpacing=function(t){if(E&&t){var e=E.indexOf(ht.d)+1;E[e]=parseFloat(E[e])+t+ya,E[1]=parseFloat(E[1])+t+ya,uo(E)}},wt.disable=function(e,r){if(!1!==e&&wt.revert(!0,!0),wt.enabled&&(wt.enabled=wt.isActive=!1,r||z&&z.pause(),B=0,i&&(i.uncache=1),Tt&&Ma(t,"refreshInit",Tt),N&&(N.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!_t)){for(var s=Ia.length;s--;)if(Ia[s].scroller===dt&&Ia[s]!==wt)return;Ma(dt,"resize",Xa),_t||Ma(dt,"scroll",La)}},wt.kill=function(t,n){wt.disable(t,n),z&&!n&&z.kill(),G&&delete Na[G];var s=Ia.indexOf(wt);s>=0&&Ia.splice(s,1),s===fs&&ro>0&&fs--,s=0,Ia.forEach(function(t){return t.scroller===wt.scroller&&(s=1)}),s||Ps||(wt.scroll.rec=0),r&&(r.scrollTrigger=null,t&&r.revert({kill:!1}),n||r.kill()),c&&[c,f,h,p].forEach(function(t){return t.parentNode&&t.parentNode.removeChild(t)}),Ds===wt&&(Ds=0),J&&(i&&(i.uncache=1),s=0,Ia.forEach(function(t){return t.pin===J&&s++}),s||(i.spacer=0)),e.onKill&&e.onKill(wt)},Ia.push(wt),wt.enable(!1,!1),X&&X(wt),r&&r.add&&!_){var Dt=wt.update;wt.update=function(){wt.update=Dt,Mi.cache++,u||l||wt.refresh()},Qi.delayedCall(.01,wt.update),_=.01,u=l=0}else wt.refresh();J&&function(){if(Rs!==Za){var t=Rs=Za;requestAnimationFrame(function(){return t===Za&&to(!0)})}}()}else this.update=this.refresh=this.kill=qs},t.register=function(e){return Zi||(Qi=e||Vs(),Us()&&window.document&&t.enable(),Zi=Bs),Zi},t.defaults=function(t){if(t)for(var e in t)Pa[e]=t[e];return Pa},t.disable=function(t,e){Bs=0,Ia.forEach(function(r){return r[e?"kill":"disable"](t)}),Ma(Ki,"wheel",La),Ma(Ji,"scroll",La),clearInterval(os),Ma(Ji,"touchcancel",qs),Ma(es,"touchstart",qs),Oa(Ma,Ji,"pointerdown,touchstart,mousedown",js),Oa(Ma,Ji,"pointerup,touchend,mouseup",Ws),ns.kill(),Ks(Ma);for(var r=0;r<Mi.length;r+=3)Sa(Ma,Mi[r],Mi[r+1]),Sa(Ma,Mi[r],Mi[r+2])},t.enable=function(){if(Ki=window,Ji=document,ts=Ji.documentElement,es=Ji.body,Qi)if(is=Qi.utils.toArray,ss=Qi.utils.clamp,Ts=Qi.core.context||qs,_s=Qi.core.suppressOverwrites||qs,ks=Ki.history.scrollRestoration||"auto",eo=Ki.pageYOffset||0,Qi.core.globals("ScrollTrigger",t),es){Bs=1,(Cs=document.createElement("div")).style.height="100vh",Cs.style.position="absolute",Ka(),Xs(),$i.register(Qi),t.isTouch=$i.isTouch,ws=$i.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),ys=1===$i.isTouch,Ea(Ki,"wheel",La),rs=[Ki,Ji,ts,es],Qi.matchMedia?(t.matchMedia=function(t){var e,r=Qi.matchMedia();for(e in t)r.add(e,t[e]);return r},Qi.addEventListener("matchMediaInit",function(){Ga(),$a()}),Qi.addEventListener("matchMediaRevert",function(){return Va()}),Qi.addEventListener("matchMedia",function(){to(0,1),Ha("matchMedia")}),Qi.matchMedia().add("(orientation: portrait)",function(){return Ya(),Ya})):console.warn("Requires GSAP 3.11.0 or later"),Ya(),Ea(Ji,"scroll",La);var e,r,n=es.hasAttribute("style"),i=es.style,s=i.borderTopStyle,a=Qi.core.Animation.prototype;for(a.revert||Object.defineProperty(a,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",e=wa(es),Xi.m=Math.round(e.top+Xi.sc())||0,Yi.m=Math.round(e.left+Yi.sc())||0,s?i.borderTopStyle=s:i.removeProperty("border-top-style"),n||(es.setAttribute("style",""),es.removeAttribute("style")),os=setInterval(Ba,250),Qi.delayedCall(.5,function(){return zs=0}),Ea(Ji,"touchcancel",qs),Ea(es,"touchstart",qs),Oa(Ea,Ji,"pointerdown,touchstart,mousedown",js),Oa(Ea,Ji,"pointerup,touchend,mouseup",Ws),cs=Qi.utils.checkPrefix("transform"),so.push(cs),Zi=Fs(),ns=Qi.delayedCall(.2,to).pause(),ds=[Ji,"visibilitychange",function(){var t=Ki.innerWidth,e=Ki.innerHeight;Ji.hidden?(hs=t,ps=e):hs===t&&ps===e||Xa()},Ji,"DOMContentLoaded",to,Ki,"load",to,Ki,"resize",Xa],Ks(Ea),Ia.forEach(function(t){return t.enable(0,1)}),r=0;r<Mi.length;r+=3)Sa(Ma,Mi[r],Mi[r+1]),Sa(Ma,Mi[r],Mi[r+2])}else if(Ji){Ji.addEventListener("DOMContentLoaded",function e(){t.enable(),Ji.removeEventListener("DOMContentLoaded",e)})}},t.config=function(e){"limitCallbacks"in e&&(Ss=!!e.limitCallbacks);var r=e.syncInterval;r&&clearInterval(os)||(os=r)&&setInterval(Ba,r),"ignoreMobileResize"in e&&(ys=1===t.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Ks(Ma)||Ks(Ea,e.autoRefreshEvents||"none"),ms=-1===(e.autoRefreshEvents+"").indexOf("resize"))},t.scrollerProxy=function(t,e){var r=ji(t),n=Mi.indexOf(r),i=Gs(r);~n&&Mi.splice(n,i?6:2),e&&(i?Si.unshift(Ki,e,es,e,ts,e):Si.unshift(r,e))},t.clearMatchMedia=function(t){Ia.forEach(function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)})},t.isInViewport=function(t,e,r){var n=(Js(t)?ji(t):t).getBoundingClientRect(),i=n[r?la:ca]*e||0;return r?n.right-i>0&&n.left+i<Ki.innerWidth:n.bottom-i>0&&n.top+i<Ki.innerHeight},t.positionInViewport=function(t,e,r){Js(t)&&(t=ji(t));var n=t.getBoundingClientRect(),i=n[r?la:ca],s=null==e?i/2:e in Ra?Ra[e]*i:~e.indexOf("%")?parseFloat(e)*i/100:parseFloat(e)||0;return r?(n.left+s)/Ki.innerWidth:(n.top+s)/Ki.innerHeight},t.killAll=function(t){if(Ia.slice(0).forEach(function(t){return"ScrollSmoother"!==t.vars.id&&t.kill()}),!0!==t){var e=ja.killAll||[];ja={},e.forEach(function(t){return t()})}},t}();vo.version="3.15.0",vo.saveStyles=function(t){return t?is(t).forEach(function(t){if(t&&t.style){var e=Ua.indexOf(t);e>=0&&Ua.splice(e,5),Ua.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),Qi.core.getCache(t),Ts())}}):Ua},vo.revert=function(t,e){return $a(!t,e)},vo.create=function(t,e){return new vo(t,e)},vo.refresh=function(t){return t?Xa(!0):(Zi||vo.register())&&to(!0)},vo.update=function(t){return++Mi.cache&&no(!0===t?2:0)},vo.clearScrollMemory=Qa,vo.maxScroll=function(t,e){return Zs(t,e?Yi:Xi)},vo.getScrollFunc=function(t,e){return Wi(ji(t),e?Yi:Xi)},vo.getById=function(t){return Na[t]},vo.getAll=function(){return Ia.filter(function(t){return"ScrollSmoother"!==t.vars.id})},vo.isScrolling=function(){return!!Ns},vo.snapDirectional=Ca,vo.addEventListener=function(t,e){var r=ja[t]||(ja[t]=[]);~r.indexOf(e)||r.push(e)},vo.removeEventListener=function(t,e){var r=ja[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},vo.batch=function(t,e){var r,n=[],i={},s=e.interval||.016,a=e.batchMax||1e9,o=function(t,e){var r=[],n=[],i=Qi.delayedCall(s,function(){e(r,n),r=[],n=[]}).pause();return function(t){r.length||i.restart(!0),r.push(t.trigger),n.push(t),a<=r.length&&i.progress(1)}};for(r in e)i[r]="on"===r.substr(0,2)&&ta(e[r])&&"onRefreshInit"!==r?o(0,e[r]):e[r];return ta(a)&&(a=a(),Ea(vo,"refresh",function(){return a=e.batchMax()})),is(t).forEach(function(t){var e={};for(r in i)e[r]=i[r];e.trigger=t,n.push(vo.create(e))}),n};var yo,xo=function(t,e,r,n){return e>n?t(n):e<0&&t(0),r>n?(n-e)/(r-e):r<0?e/(e-r):1},bo=function t(e,r){!0===r?e.style.removeProperty("touch-action"):e.style.touchAction=!0===r?"auto":r?"pan-"+r+($i.isTouch?" pinch-zoom":""):"none",e===ts&&t(es,r)},wo={auto:1,scroll:1},To=function(t){var e,r=t.event,n=t.target,i=t.axis,s=(r.changedTouches?r.changedTouches[0]:r).target,a=s._gsap||Qi.core.getCache(s),o=Fs();if(!a._isScrollT||o-a._isScrollT>2e3){for(;s&&s!==es&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!wo[(e=xa(s)).overflowY]&&!wo[e.overflowX]);)s=s.parentNode;a._isScroll=s&&s!==n&&!Gs(s)&&(wo[(e=xa(s)).overflowY]||wo[e.overflowX]),a._isScrollT=o}(a._isScroll||"x"===i)&&(r.stopPropagation(),r._gsapAllow=!0)},ko=function(t,e,r,n){return $i.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:n=n&&To,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&Ea(Ji,$i.eventTypes[0],Oo,!1,!0)},onDisable:function(){return Ma(Ji,$i.eventTypes[0],Oo,!0)}})},Co=/(input|label|select|textarea)/i,Oo=function(t){var e=Co.test(t.target.tagName);(e||yo)&&(t._gsapAllow=!0,yo=e)},Eo=function(t){ra(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var e,r,n,i,s,a,o,u,l=t,c=l.normalizeScrollX,f=l.momentum,h=l.allowNestedScroll,p=l.onRelease,d=ji(t.target)||ts,g=Qi.core.globals().ScrollSmoother,_=g&&g.get(),m=ws&&(t.content&&ji(t.content)||_&&!1!==t.content&&!_.smooth()&&_.content()),v=Wi(d,Xi),y=Wi(d,Yi),x=1,b=($i.isTouch&&Ki.visualViewport?Ki.visualViewport.scale*Ki.visualViewport.width:Ki.outerWidth)/Ki.innerWidth,w=0,T=ta(f)?function(){return f(e)}:function(){return f||2.8},k=ko(d,t.type,!0,h),C=function(){return i=!1},O=qs,E=qs,M=function(){r=Zs(d,Xi),E=ss(ws?1:0,r),c&&(O=ss(0,Zs(d,Yi))),n=Za},S=function(){m._gsap.y=Hs(parseFloat(m._gsap.y)+v.offset)+"px",m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(m._gsap.y)+", 0, 1)",v.offset=v.cacheID=0},A=function(){M(),s.isActive()&&s.vars.scrollY>r&&(v()>r?s.progress(1)&&v(r):s.resetTo("scrollY",r))};return m&&Qi.set(m,{y:"+=0"}),t.ignoreCheck=function(t){return ws&&"touchmove"===t.type&&function(){if(i){requestAnimationFrame(C);var t=Hs(e.deltaY/2),r=E(v.v-t);if(m&&r!==v.v+v.offset){v.offset=r-v.v;var n=Hs((parseFloat(m&&m._gsap.y)||0)-v.offset);m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+n+", 0, 1)",m._gsap.y=n+"px",v.cacheID=Mi.cache,no()}return!0}v.offset&&S(),i=!0}()||x>1.05&&"touchstart"!==t.type||e.isGesturing||t.touches&&t.touches.length>1},t.onPress=function(){i=!1;var t=x;x=Hs((Ki.visualViewport&&Ki.visualViewport.scale||1)/b),s.pause(),t!==x&&bo(d,x>1.01||!c&&"x"),a=y(),o=v(),M(),n=Za},t.onRelease=t.onGestureStart=function(t,e){if(v.offset&&S(),e){Mi.cache++;var n,i,a=T();c&&(i=(n=y())+.05*a*-t.velocityX/.227,a*=xo(y,n,i,Zs(d,Yi)),s.vars.scrollX=O(i)),i=(n=v())+.05*a*-t.velocityY/.227,a*=xo(v,n,i,Zs(d,Xi)),s.vars.scrollY=E(i),s.invalidate().duration(a).play(.01),(ws&&s.vars.scrollY>=r||n>=r-1)&&Qi.to({},{onUpdate:A,duration:a})}else u.restart(!0);p&&p(t)},t.onWheel=function(){s._ts&&s.pause(),Fs()-w>1e3&&(n=0,w=Fs())},t.onChange=function(t,e,r,i,s){if(Za!==n&&M(),e&&c&&y(O(i[2]===e?a+(t.startX-t.x):y()+e-i[1])),r){v.offset&&S();var u=s[2]===r,l=u?o+t.startY-t.y:v()+r-s[1],f=E(l);u&&l!==f&&(o+=f-l),v(f)}(r||e)&&no()},t.onEnable=function(){bo(d,!c&&"x"),vo.addEventListener("refresh",A),Ea(Ki,"resize",A),v.smooth&&(v.target.style.scrollBehavior="auto",v.smooth=y.smooth=!1),k.enable()},t.onDisable=function(){bo(d,!0),Ma(Ki,"resize",A),vo.removeEventListener("refresh",A),k.kill()},t.lockAxis=!1!==t.lockAxis,(e=new $i(t)).iOS=ws,ws&&!v()&&v(1),ws&&Qi.ticker.add(qs),u=e._dc,s=Qi.to(e,{ease:"power4",paused:!0,inherit:!1,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:go(v,v(),function(){return s.pause()})},onUpdate:no,onComplete:u.vars.onComplete}),e};vo.sort=function(t){if(ta(t))return Ia.sort(t);var e=Ki.pageYOffset||0;return vo.getAll().forEach(function(t){return t._sortY=t.trigger?e+t.trigger.getBoundingClientRect().top:t.start+Ki.innerHeight}),Ia.sort(t||function(t,e){return-1e6*(t.vars.refreshPriority||0)+(t.vars.containerAnimation?1e6:t._sortY)-((e.vars.containerAnimation?1e6:e._sortY)+-1e6*(e.vars.refreshPriority||0))})},vo.observe=function(t){return new $i(t)},vo.normalizeScroll=function(t){if(void 0===t)return vs;if(!0===t&&vs)return vs.enable();if(!1===t)return vs&&vs.kill(),void(vs=t);var e=t instanceof $i?t:Eo(t);return vs&&vs.target===e.target&&vs.kill(),Gs(e.target)&&(vs=e),e},vo.core={_getVelocityProp:qi,_inputObserver:ko,_scrollers:Mi,_proxies:Si,bridge:{ss:function(){Ns||Ha("scrollStart"),Ns=Fs()},ref:function(){return us}}},Vs()&&Qi.registerPlugin(vo);
|
|
47
|
+
/*!
|
|
48
|
+
* SplitText 3.15.0
|
|
49
|
+
* https://gsap.com
|
|
50
|
+
*
|
|
51
|
+
* @license Copyright 2026, GreenSock. All rights reserved. Subject to the terms at https://gsap.com/standard-license.
|
|
52
|
+
* @author: Jack Doyle
|
|
53
|
+
*/
|
|
54
|
+
let Mo,So,Ao,Po="function"==typeof Symbol?Symbol():"_split",Ro="undefined"!=typeof Intl&&"Segmenter"in Intl?new Intl.Segmenter:0,Do=t=>t?"string"==typeof t?Do(document.querySelectorAll(t)):"length"in t?Array.from(t).reduce((t,e)=>("string"==typeof e?t.push(...Do(e)):t.push(e),t),[]):[t]:[],zo=t=>Do(t).filter(t=>t&&1===t.nodeType),Fo=[],Io=function(){},No={add:t=>t()},Bo=/\s+/g,Lo=new RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.","gu"),Yo={left:0,top:0,width:0,height:0},Xo=(t,e)=>{for(;++e<t.length&&t[e]===Yo;);return t[e]||Yo},jo=({element:t,html:e,ariaL:r,ariaH:n})=>{t.innerHTML=e,r?t.setAttribute("aria-label",r):t.removeAttribute("aria-label"),n?t.setAttribute("aria-hidden",n):t.removeAttribute("aria-hidden")},Wo=(t,e)=>{if(e){let r,n,i,s,a=new Set(t.join("").match(e)||Fo),o=t.length;if(a.size)for(;--o>-1;)for(i of(n=t[o],a))if(i.startsWith(n)&&i.length>n.length){for(r=0,s=n;i.startsWith(s+=t[o+ ++r])&&s.length<i.length;);if(r&&s.length===i.length){t[o]=i,t.splice(o+1,r);break}}}return t},qo=t=>"inline"===window.getComputedStyle(t).display&&(t.style.display="inline-block"),Ho=(t,e,r)=>e.insertBefore("string"==typeof t?document.createTextNode(t):t,r),Uo=(t,e,r)=>{let n=e[t+"sClass"]||"",{tag:i="div",aria:s="auto",propIndex:a=!1}=e,o="line"===t?"block":"inline-block",u=n.indexOf("++")>-1,l=e=>{let l=document.createElement(i),c=r.length+1;return n&&(l.className=n+(u?" "+n+c:"")),a&&l.style.setProperty("--"+t,c+""),"none"!==s&&l.setAttribute("aria-hidden","true"),"span"!==i&&(l.style.position="relative",l.style.display=o),l.textContent=e,r.push(l),l};return u&&(n=n.replace("++","")),l.collection=r,l},Vo=(t,e,r,n,i,s,a,o,u,l)=>{var c;let f,h,p,d,g,_,m,v,y,x,b,w,T,k,C,O,E,M,S=Array.from(t.childNodes),A=0,{wordDelimiter:P,reduceWhiteSpace:R=!0,prepareText:D}=e,z=t.getBoundingClientRect(),F=z,I=!R&&"pre"===window.getComputedStyle(t).whiteSpace.substring(0,3),N=0,B=r.collection;for("object"==typeof P?(p=P.delimiter||P,h=P.replaceWith||""):h=""===P?"":P||" ",f=" "!==h;A<S.length;A++)if(d=S[A],3===d.nodeType){for(C=d.textContent||"",R?C=C.replace(Bo," "):I&&(C=C.replace(/\n/g,h+"\n")),D&&(C=D(C,t)),d.textContent=C,g=h||p?C.split(p||h):C.match(o)||Fo,E=g[g.length-1],v=f?" "===E.slice(-1):!E,E||g.pop(),F=z,m=f?" "===g[0].charAt(0):!g[0],m&&Ho(" ",t,d),g[0]||g.shift(),Wo(g,u),s&&l||(d.textContent=""),y=1;y<=g.length;y++)if(O=g[y-1],!R&&I&&"\n"===O.charAt(0)&&(null==(c=d.previousSibling)||c.remove(),Ho(document.createElement("br"),t,d),O=O.slice(1)),R||""!==O)if(" "===O)t.insertBefore(document.createTextNode(" "),d);else{if(f&&" "===O.charAt(0)&&Ho(" ",t,d),N&&1===y&&!m&&B.indexOf(N.parentNode)>-1?(_=B[B.length-1],_.appendChild(document.createTextNode(n?"":O))):(_=r(n?"":O),Ho(_,t,d),N&&1===y&&!m&&_.insertBefore(N,_.firstChild)),n)for(b=Ro?Wo([...Ro.segment(O)].map(t=>t.segment),u):O.match(o)||Fo,M=0;M<b.length;M++)_.appendChild(" "===b[M]?document.createTextNode(" "):n(b[M]));if(s&&l){if(C=d.textContent=C.substring(O.length+1,C.length),x=_.getBoundingClientRect(),x.top>F.top&&x.left<=F.left){for(w=t.cloneNode(),T=t.childNodes[0];T&&T!==_;)k=T,T=T.nextSibling,w.appendChild(k);t.parentNode.insertBefore(w,t),i&&qo(w)}F=x}(y<g.length||v)&&Ho(y>=g.length?" ":f&&" "===O.slice(-1)?" "+h:h,t,d)}else Ho(h,t,d);t.removeChild(d),N=0}else 1===d.nodeType&&(a&&a.indexOf(d)>-1?(B.indexOf(d.previousSibling)>-1&&B[B.length-1].appendChild(d),N=d):(Vo(d,e,r,n,i,s,a,o,u,!0),N=0),i&&qo(d))};const Go=class t{constructor(t,e){this.isSplit=!1,Ao||$o.register(window.gsap),this.elements=zo(t),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=e,this.elements.forEach(t=>{var r;!1!==e.overwrite&&(null==(r=t[Po])||r._data.orig.filter(({element:e})=>e===t).forEach(jo)),t[Po]=this}),this._split=()=>this.isSplit&&this.split(this.vars);let r,n=[],i=()=>{let t,e=n.length;for(;e--;){t=n[e];let r=t.element.offsetWidth;if(r!==t.width)return t.width=r,void this._split()}};this._data={orig:n,obs:"undefined"!=typeof ResizeObserver&&new ResizeObserver(()=>{clearTimeout(r),r=setTimeout(i,200)})},Io(this),this.split(e)}split(t){return(this._ctx||No).add(()=>{this.isSplit&&this.revert(),this.vars=t=t||this.vars||{};let e,{type:r="chars,words,lines",aria:n="auto",deepSlice:i=!0,smartWrap:s,onSplit:a,autoSplit:o=!1,specialChars:u,mask:l}=this.vars,c=r.indexOf("lines")>-1,f=r.indexOf("chars")>-1,h=r.indexOf("words")>-1,p=f&&!h&&!c,d=u&&("push"in u?new RegExp("(?:"+u.join("|")+")","gu"):u),g=d?new RegExp(d.source+"|"+Lo.source,"gu"):Lo,_=!!t.ignore&&zo(t.ignore),{orig:m,animTime:v,obs:y}=this._data;(f||h||c)&&(this.elements.forEach((e,r)=>{m[r]={element:e,html:e.innerHTML,ariaL:e.getAttribute("aria-label"),ariaH:e.getAttribute("aria-hidden")},"auto"===n?e.setAttribute("aria-label",(e.textContent||"").trim()):"hidden"===n&&e.setAttribute("aria-hidden","true");let a,o,u,l,v=[],y=[],x=[],b=f?Uo("char",t,v):null,w=Uo("word",t,y);if(Vo(e,t,w,b,p,i&&(c||p),_,g,d,!1),c){let r,n,i=Do(e.childNodes),s=((t,e,r,n)=>{let i=Uo("line",r,n),s=window.getComputedStyle(t).textAlign||"left";return(r,n)=>{let a=i("");for(a.style.textAlign=s,t.insertBefore(a,e[r]);r<n;r++)a.appendChild(e[r]);a.normalize()}})(e,i,t,x),o=[],u=0,l=i.map(t=>1===t.nodeType?t.getBoundingClientRect():Yo),c=Yo;for(a=0;a<i.length;a++)r=i[a],1===r.nodeType&&("BR"===r.nodeName?(a&&"BR"===i[a-1].nodeName||(o.push(r),s(u,a+1)),u=a+1,c=Xo(l,a)):(n=l[a],a&&n.top>c.top&&n.left<c.left+c.width-1&&(s(u,a),u=a),c=n));u<a&&s(u,a),o.forEach(t=>{var e;return null==(e=t.parentNode)?void 0:e.removeChild(t)})}if(!h){for(a=0;a<y.length;a++)if(o=y[a],f||!o.nextSibling||3!==o.nextSibling.nodeType)if(s&&!c){for(u=document.createElement("span"),u.style.whiteSpace="nowrap";o.firstChild;)u.appendChild(o.firstChild);o.replaceWith(u)}else o.replaceWith(...o.childNodes);else l=o.nextSibling,l&&3===l.nodeType&&(l.textContent=(o.textContent||"")+(l.textContent||""),o.remove());y.length=0,e.normalize()}this.lines.push(...x),this.words.push(...y),this.chars.push(...v)}),l&&this[l]&&this.masks.push(...this[l].map(t=>{let e=t.cloneNode();return t.replaceWith(e),e.appendChild(t),t.className&&(e.className=t.className.trim().split(" ").map(t=>t+"-mask").join(" ")),e.style.overflow="clip",e}))),this.isSplit=!0,So&&c&&o&&So.addEventListener("loadingdone",this._split),(e=a&&a(this))&&e.totalTime&&(this._data.anim=v?e.totalTime(v):e),c&&o&&this.elements.forEach((t,e)=>{m[e].width=t.offsetWidth,y&&y.observe(t)})}),this}kill(){let{obs:t}=this._data;t&&t.disconnect(),null==So||So.removeEventListener("loadingdone",this._split)}revert(){var t,e;if(this.isSplit){let{orig:r,anim:n}=this._data;this.kill(),r.forEach(jo),this.chars.length=this.words.length=this.lines.length=r.length=this.masks.length=0,this.isSplit=!1,n&&(this._data.animTime=n.totalTime(),n.revert()),null==(e=(t=this.vars).onRevert)||e.call(t,this)}return this}static create(e,r){return new t(e,r)}static register(t){Mo=Mo||t||window.gsap,Mo&&(Do=Mo.utils.toArray,Io=Mo.core.context||Io),!Ao&&window.innerWidth>0&&(So=document.fonts,Ao=!0)}};Go.version="3.15.0";let $o=Go;function Qo(n){const{text:o,scrollingElement:u,progression:l="char",style:c,className:f,children:h,playOnScroll:p=!1,playInView:d=!1,delay:g=0,timeline:_,speed:m,gsapScrollTrigger:v,defaultAnimation:y,extendAnimation:x,watch:b=!1}=n,w=r(null),[T,k]=s(0),[C,O]=s(!1);return i(()=>{!function(){if(!b)return;("string"==typeof b?document.querySelector(b):window).addEventListener("resize",()=>{k(t=>t+1)})}()},[]),i(()=>{if("loaded"===document.fonts.status)O(!0);else{function t(){return a(this,void 0,void 0,function*(){yield document.fonts.ready.then(()=>{O(!0)}).catch(()=>{O(!0)})})}t()}},[]),ci(function(){const t=w.current;if(!t||!C)return;const e=u?document.querySelector(`${u}`):function(t){let e=document.querySelector(t);for(;e;){const{overflowY:t}=getComputedStyle(e);if(("auto"===t||"scroll"===t)&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement}return document.scrollingElement}(".fade_textation_x"),r=$o.create(t,{type:"lines,words,chars",linesClass:"line",wordsClass:"word",charsClass:"char",autoSplit:!0}),{chars:n,lines:i,words:s}=r,a=function(){let t=n;if("char_line"===l){const e=i.flatMap(t=>{const e=n.filter(e=>t.contains(e));return e.map((t,e)=>({char:t,charIndexInLine:e}))});t=e}else if("word_line"===l){const e=i.flatMap((t,e)=>{const r=s.filter(e=>t.contains(e));return r.map((t,e)=>({char:t,charIndexInLine:e}))});t=e}else t="char"==l?n:"word"==l?s:"line"==l?i:n;return{set:"char"==l?n:"word"==l?s:"line"==l?i:"char_line"==l?n:"word_line"==l?s:n,animate:t,speed_0:m||("char"==l?p?.005:.1:"word"==l?.35:"line"==l?.9:"char_line"==l?.08:"word_line"==l?.5:.08)}}();function o(t,e){const r="object"==typeof t?t:{},n=Object.entries(r).map(t=>{const[e,r]=t;return{key:e,val:r}}),i={};for(let t=0;t<n.length;t++){const r=n[t].key,s=n[t].val,a="from"==e?s[0]:"to"==e?s[1]:"";null!==a&&(i[r]=a)}return i}const c=!(!p&&!d),f=_||ii.timeline({paused:c,delay:g});f.set(a.set,Object.assign(Object.assign({opacity:0},o(y,"from")),o(x,"from")));const h=function(){if("object"==typeof v)return v;if("function"==typeof v)return v(f)||{};return{}}();return(t=>{t&&a.animate.forEach((e,r)=>{let n="char_line"===l||"word_line"===l,i=n?e.char:e;const s=n?e.charIndexInLine:r;t.to(i,Object.assign(Object.assign({opacity:1,ease:"power3.out"},o(y,"to")),o(x,"to")),s*a.speed_0)})})(f),p?vo.create(Object.assign({trigger:t,scroller:e,start:"top 85%",end:"top 35%",scrub:p,animation:f},h)):d&&vo.create(Object.assign({trigger:t,scroller:e,start:"top bottom",onEnter:()=>f.restart(),onLeaveBack:()=>f.pause()},h)),()=>{r.revert(),f.kill(),vo.getAll().forEach(e=>{e.trigger===t&&e.kill()})}},{dependencies:[C,T],scope:w}),e.isValidElement(h)?e.cloneElement(h,{ref:w,style:Object.assign(Object.assign({visibility:C?"visible":"hidden"},c),h.props.style),className:["fade_textation_x",h.props.className,f].filter(Boolean).join(" ")}):t("p",{className:`fade_textation_x ${f}`,style:Object.assign({visibility:C?"visible":"hidden"},c),ref:w,children:o})}ii.registerPlugin($o,vo);const Zo={TextEngine:Qo,TextFade:function(e){return t(Qo,Object.assign({defaultAnimation:{opacity:[0,1]}},e))},TextFadeSkew:function(e){return t(Qo,Object.assign({defaultAnimation:{opacity:[0,1],x:[100,0],skewX:[100,0]}},e))},TextFadeSkew_2:function(e){return t(Qo,Object.assign({defaultAnimation:{opacity:[0,1],x:[100,0],y:[100,0],skewX:[-100,0]}},e))},TextFadeDown:function(e){return t(Qo,Object.assign({defaultAnimation:{opacity:[0,1],y:["100%","0%"],duration:[null,1],stagger:[null,.1]}},e))},TextFadeOverlay:function(e){return t(Qo,Object.assign({defaultAnimation:{opacity:[.2,1]}},e))}};function Ko({name:t}){console.log("Hey!!! Hello ",t,". Package is updated!!!")}const{TextEngine:Jo,TextFade:tu,TextFadeDown:eu,TextFadeSkew:ru,TextFadeSkew_2:nu,TextFadeOverlay:iu}=Zo;export{Jo as TextEngine,tu as TextFade,eu as TextFadeDown,iu as TextFadeOverlay,ru as TextFadeSkew,nu as TextFadeSkew_2,Ko as justSayHello};
|
|
55
|
+
//# sourceMappingURL=index.mjs.map
|