riftt 1.0.8 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/rift.js CHANGED
@@ -1,4 +1,4 @@
1
- import{classModule as t}from"snabbdom/modules/class.js";import{attributesModule as e}from"snabbdom/modules/attributes.js";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
1
+ function t(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
2
2
  /*!
3
3
  * GSAP 3.13.0
4
4
  * https://gsap.com
@@ -6,7 +6,7 @@ import{classModule as t}from"snabbdom/modules/class.js";import{attributesModule
6
6
  * @license Copyright 2008-2025, GreenSock. All rights reserved.
7
7
  * Subject to the terms at https://gsap.com/standard-license
8
8
  * @author: Jack Doyle, jack@greensock.com
9
- */var i,s,o,a,u,l,c,h,f,d,p,m,_,g,v,y,b,w={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},T={duration:.5,overwrite:!1,delay:0},x=1e8,k=1e-8,A=2*Math.PI,O=A/4,S=0,C=Math.sqrt,M=Math.cos,E=Math.sin,D=function(t){return"string"==typeof t},P=function(t){return"function"==typeof t},R=function(t){return"number"==typeof t},z=function(t){return void 0===t},N=function(t){return"object"==typeof t},F=function(t){return!1!==t},L=function(){return"undefined"!=typeof window},B=function(t){return P(t)||D(t)},I="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},q=Array.isArray,j=/(?:-?\.?\d|\.)+/gi,$=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Y=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,W=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,U=/[+-]=-?[.\d]+/,X=/[^,'"\[\]\s]+/gi,V=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,G={},H={},J=function(t){return(H=Ot(t,G))&&Sr},K=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},Q=function(t,e){return!e&&console.warn(t)},Z=function(t,e){return t&&(G[t]=e)&&H&&(H[t]=e)||G},tt=function(){return 0},et={suppressEvents:!0,isStart:!0,kill:!1},rt={suppressEvents:!0,kill:!1},nt={suppressEvents:!0},it={},st=[],ot={},at={},ut={},lt=30,ct=[],ht="",ft=function(t){var e,r,n=t[0];if(N(n)||P(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=ct.length;r--&&!ct[r].targetTest(n););e=ct[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new je(t[r],e)))||t.splice(r,1);return t},dt=function(t){return t._gsap||ft(ie(t))[0]._gsap},pt=function(t,e,r){return(r=t[e])&&P(r)?t[e]():z(r)&&t.getAttribute&&t.getAttribute(e)||r},mt=function(t,e){return(t=t.split(",")).forEach(e)||t},_t=function(t){return Math.round(1e5*t)/1e5||0},gt=function(t){return Math.round(1e7*t)/1e7||0},vt=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},yt=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r},bt=function(){var t,e,r=st.length,n=st.slice(0);for(ot={},st.length=0,t=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},wt=function(t){return!!(t._initted||t._startAt||t.add)},Tt=function(t,e,r,n){st.length&&!s&&bt(),t.render(e,r,!!(s&&e<0&&wt(t))),st.length&&!s&&bt()},xt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(X).length<2?e:D(t)?t.trim():t},kt=function(t){return t},At=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},Ot=function(t,e){for(var r in e)t[r]=e[r];return t},St=function t(e,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=N(r[n])?t(e[n]||(e[n]={}),r[n]):r[n]);return e},Ct=function(t,e){var r,n={};for(r in t)r in e||(n[r]=t[r]);return n},Mt=function(t){var e,r=t.parent||a,n=t.keyframes?(e=q(t.keyframes),function(t,r){for(var n in r)n in t||"duration"===n&&e||"ease"===n||(t[n]=r[n])}):At;if(F(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},Et=function(t,e,r,n,i){var s,o=t[n];if(i)for(s=e[i];o&&o[i]>s;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[n]=e,e._prev=o,e.parent=e._dp=t,e},Dt=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},Pt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Rt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t},zt=function(t,e,r,n){return t._startAt&&(s?t._startAt.revert(rt):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},Nt=function t(e){return!e||e._ts&&t(e.parent)},Ft=function(t){return t._repeat?Lt(t._tTime,t=t.duration()+t._rDelay)*t:0},Lt=function(t,e){var r=Math.floor(t=gt(t/e));return t&&r===t?r-1:r},Bt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},It=function(t){return t._end=gt(t._start+(t._tDur/Math.abs(t._ts||t._rts||k)||0))},qt=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=gt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),It(t),r._dirty||Rt(r,t)),t},jt=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=Bt(t.rawTime(),e),(!e._dur||Zt(0,e.totalDuration(),r)-e._tTime>k)&&e.render(r,!0)),Rt(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&&Pt(e),e._start=gt((R(r)?r:r||t!==a?Jt(t,r,e):t._time)+e._delay),e._end=gt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Et(t,e,"_first","_last",t._sort?"_start":0),Xt(e)||(t._recent=e),n||jt(t,e),t._ts<0&&qt(t,t._tTime),t},Yt=function(t,e){return(G.ScrollTrigger||K("scrollTrigger",e))&&G.ScrollTrigger.create(e,t)},Wt=function(t,e,r,n,i){return He(t,e,i),t._initted?!r&&t._pt&&!s&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&f!==Ce.frame?(st.push(t),t._lazy=[i,n],1):void 0:1},Ut=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},Xt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Vt=function(t,e,r,n){var i=t._repeat,s=gt(e)||0,o=t._tTime/t._tDur;return o&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=i?i<0?1e10:gt(s*(i+1)+t._rDelay*i):s,o>0&&!n&&qt(t,t._tTime=t._tDur*o),t.parent&&It(t),r||Rt(t.parent,t),t},Gt=function(t){return t instanceof Ye?Rt(t):Vt(t,t._dur)},Ht={_start:0,endTime:tt,totalDuration:tt},Jt=function t(e,r,n){var i,s,o,a=e.labels,u=e._recent||Ht,l=e.duration()>=x?u.endTime(!1):e._dur;return D(r)&&(isNaN(r)||r in a)?(s=r.charAt(0),o="%"===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)*(o?(i<0?u:n).totalDuration()/100:1)):i<0?(r in a||(a[r]=l),a[r]):(s=parseFloat(r.charAt(i-1)+r.substr(i+1)),o&&n&&(s=s/100*(q(n)?n[0]:n).totalDuration()),i>1?t(e,r.substr(0,i-1),n)+s:l+s)):null==r?l:+r},Kt=function(t,e,r){var n,i,s=R(e[1]),o=(s?2:1)+(t<2?0:1),a=e[o];if(s&&(a.duration=e[1]),a.parent=r,t){for(n=a,i=r;i&&!("immediateRender"in n);)n=i.vars.defaults||{},i=F(i.vars.inherit)&&i.parent;a.immediateRender=F(n.immediateRender),t<2?a.runBackwards=1:a.startAt=e[o-1]}return new tr(e[0],a,e[o+1])},Qt=function(t,e){return t||0===t?e(t):e},Zt=function(t,e,r){return r<t?t:r>e?e:r},te=function(t,e){return D(t)&&(e=V.exec(t))?e[1]:""},ee=[].slice,re=function(t,e){return t&&N(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&N(t[0]))&&!t.nodeType&&t!==u},ne=function(t,e,r){return void 0===r&&(r=[]),t.forEach(function(t){var n;return D(t)&&!e||re(t,1)?(n=r).push.apply(n,ie(t)):r.push(t)})||r},ie=function(t,e,r){return o&&!e&&o.selector?o.selector(t):!D(t)||r||!l&&Me()?q(t)?ne(t,r):re(t)?ee.call(t,0):t?[t]:[]:ee.call((e||c).querySelectorAll(t),0)},se=function(t){return t=ie(t)[0]||Q("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return ie(e,r.querySelectorAll?r:r===t?Q("Invalid scope")||c.createElement("div"):t)}},oe=function(t){return t.sort(function(){return.5-Math.random()})},ae=function(t){if(P(t))return t;var e=N(t)?t:{each:t},r=Fe(e.ease),n=e.from||0,i=parseFloat(e.base)||0,s={},o=n>0&&n<1,a=isNaN(n)||o,u=e.axis,l=n,c=n;return D(n)?l=c={center:.5,edges:.5,end:1}[n]||0:!o&&a&&(l=n[0],c=n[1]),function(t,o,h){var f,d,p,m,_,g,v,y,b,w=(h||e).length,T=s[w];if(!T){if(!(b="auto"===e.grid?0:(e.grid||[1,x])[1])){for(v=-1e8;v<(v=h[b++].getBoundingClientRect().left)&&b<w;);b<w&&b--}for(T=s[w]=[],f=a?Math.min(b,w)*l-.5:n%b,d=b===x?0:a?w*c/b-.5:n/b|0,v=0,y=x,g=0;g<w;g++)p=g%b-f,m=d-(g/b|0),T[g]=_=u?Math.abs("y"===u?m:p):C(p*p+m*m),_>v&&(v=_),_<y&&(y=_);"random"===n&&oe(T),T.max=v-y,T.min=y,T.v=w=(parseFloat(e.amount)||parseFloat(e.each)*(b>w?w-1:u?"y"===u?w/b:b:Math.max(b,w/b))||0)*("edges"===n?-1:1),T.b=w<0?i-w:i,T.u=te(e.amount||e.each)||0,r=r&&w<0?ze(r):r}return w=(T[t]-T.min)/T.max||0,gt(T.b+(r?r(w):w)*T.v)+T.u}},ue=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var n=gt(Math.round(parseFloat(r)/t)*t*e);return(n-n%1)/e+(R(r)?0:te(r))}},le=function(t,e){var r,n,i=q(t);return!i&&N(t)&&(r=i=t.radius||x,t.values?(t=ie(t.values),(n=!R(t[0]))&&(r*=r)):t=ue(t.increment)),Qt(e,i?P(t)?function(e){return n=t(e),Math.abs(n-e)<=r?n:e}:function(e){for(var i,s,o=parseFloat(n?e.x:e),a=parseFloat(n?e.y:0),u=x,l=0,c=t.length;c--;)(i=n?(i=t[c].x-o)*i+(s=t[c].y-a)*s:Math.abs(t[c]-o))<u&&(u=i,l=c);return l=!r||u<=r?t[l]:e,n||l===e||R(e)?l:l+te(e)}:ue(t))},ce=function(t,e,r,n){return Qt(q(t)?!e:!0===r?!!(r=0):!n,function(){return q(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})},he=function(t,e,r){return Qt(r,function(r){return t[~~e(r)]})},fe=function(t){for(var e,r,n,i,s=0,o="";~(e=t.indexOf("random(",s));)n=t.indexOf(")",e),i="["===t.charAt(e+7),r=t.substr(e+7,n-e-7).match(i?X:j),o+=t.substr(s,e-s)+ce(i?r:+r[0],i?0:+r[1],+r[2]||1e-5),s=n+1;return o+t.substr(s,t.length-s)},de=function(t,e,r,n,i){var s=e-t,o=n-r;return Qt(i,function(e){return r+((e-t)/s*o||0)})},pe=function(t,e,r){var n,i,s,o=t.labels,a=x;for(n in o)(i=o[n]-e)<0==!!r&&i&&a>(i=Math.abs(i))&&(s=n,a=i);return s},me=function(t,e,r){var n,i,s,a=t.vars,u=a[e],l=o,c=t._ctx;if(u)return n=a[e+"Params"],i=a.callbackScope||t,r&&st.length&&bt(),c&&(o=c),s=n?u.apply(i,n):u.call(i),o=l,s},_e=function(t){return Pt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!s),t.progress()<1&&me(t,"onInterrupt"),t},ge=[],ve=function(t){if(t)if(t=!t.name&&t.default||t,L()||t.headless){var e=t.name,r=P(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:tt,render:lr,add:Ve,kill:hr,modifier:cr,rawVars:0},s={targetTest:0,get:0,getSetter:sr,aliases:{},register:0};if(Me(),t!==n){if(at[e])return;At(n,At(Ct(t,i),s)),Ot(n.prototype,Ot(i,Ct(t,s))),at[n.prop=e]=n,t.targetTest&&(ct.push(n),it[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}Z(e,n),t.register&&t.register(Sr,n,pr)}else ge.push(t)},ye=255,be={aqua:[0,ye,ye],lime:[0,ye,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ye],navy:[0,0,128],white:[ye,ye,ye],olive:[128,128,0],yellow:[ye,ye,0],orange:[ye,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ye,0,0],pink:[ye,192,203],cyan:[0,ye,ye],transparent:[ye,ye,ye,0]},we=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)*ye+.5|0},Te=function(t,e,r){var n,i,s,o,a,u,l,c,h,f,d=t?R(t)?[t>>16,t>>8&ye,t&ye]:0:be.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),be[t])d=be[t];else if("#"===t.charAt(0)){if(t.length<6&&(n=t.charAt(1),i=t.charAt(2),s=t.charAt(3),t="#"+n+n+i+i+s+s+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(d=parseInt(t.substr(1,6),16))>>16,d>>8&ye,d&ye,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&ye,t&ye]}else if("hsl"===t.substr(0,3))if(d=f=t.match(j),e){if(~t.indexOf("="))return d=t.match($),r&&d.length<4&&(d[3]=1),d}else o=+d[0]%360/360,a=+d[1]/100,n=2*(u=+d[2]/100)-(i=u<=.5?u*(a+1):u+a-u*a),d.length>3&&(d[3]*=1),d[0]=we(o+1/3,n,i),d[1]=we(o,n,i),d[2]=we(o-1/3,n,i);else d=t.match(j)||be.transparent;d=d.map(Number)}return e&&!f&&(n=d[0]/ye,i=d[1]/ye,s=d[2]/ye,u=((l=Math.max(n,i,s))+(c=Math.min(n,i,s)))/2,l===c?o=a=0:(h=l-c,a=u>.5?h/(2-l-c):h/(l+c),o=l===n?(i-s)/h+(i<s?6:0):l===i?(s-n)/h+2:(n-i)/h+4,o*=60),d[0]=~~(o+.5),d[1]=~~(100*a+.5),d[2]=~~(100*u+.5)),r&&d.length<4&&(d[3]=1),d},xe=function(t){var e=[],r=[],n=-1;return t.split(Ae).forEach(function(t){var i=t.match(Y)||[];e.push.apply(e,i),r.push(n+=i.length+1)}),e.c=r,e},ke=function(t,e,r){var n,i,s,o,a="",u=(t+a).match(Ae),l=e?"hsla(":"rgba(",c=0;if(!u)return t;if(u=u.map(function(t){return(t=Te(t,e,1))&&l+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(s=xe(t),(n=r.c).join(a)!==s.c.join(a)))for(o=(i=t.replace(Ae,"1").split(Y)).length-1;c<o;c++)a+=i[c]+(~n.indexOf(c)?u.shift()||l+"0,0,0,0)":(s.length?s:u.length?u:r).shift());if(!i)for(o=(i=t.split(Ae)).length-1;c<o;c++)a+=i[c]+u[c];return a+i[o]},Ae=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in be)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Oe=/hsl[a]?\(/,Se=function(t){var e,r=t.join(" ");if(Ae.lastIndex=0,Ae.test(r))return e=Oe.test(r),t[1]=ke(t[1],e),t[0]=ke(t[0],e,xe(t[1])),!0},Ce=function(){var t,e,r,n,i,s,o=Date.now,a=500,f=33,d=o(),m=d,_=1e3/240,g=_,v=[],y=function r(u){var l,c,h,p,y=o()-m,b=!0===u;if((y>a||y<0)&&(d+=y-f),((l=(h=(m+=y)-d)-g)>0||b)&&(p=++n.frame,i=h-1e3*n.time,n.time=h/=1e3,g+=l+(l>=_?4:_-l),c=1),b||(t=e(r)),c)for(s=0;s<v.length;s++)v[s](h,i,p,u)};return n={time:0,frame:0,tick:function(){y(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){h&&(!l&&L()&&(u=l=window,c=u.document||{},G.gsap=Sr,(u.gsapVersions||(u.gsapVersions=[])).push(Sr.version),J(H||u.GreenSockGlobals||!u.gsap&&u||{}),ge.forEach(ve)),r="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&n.sleep(),e=r||function(t){return setTimeout(t,g-1e3*n.time+1|0)},p=1,y(2))},sleep:function(){(r?cancelAnimationFrame:clearTimeout)(t),p=0,e=tt},lagSmoothing:function(t,e){a=t||1/0,f=Math.min(e||33,a)},fps:function(t){_=1e3/(t||240),g=1e3*n.time+_},add:function(t,e,r){var i=e?function(e,r,s,o){t(e,r,s,o),n.remove(i)}:t;return n.remove(t),v[r?"unshift":"push"](i),Me(),i},remove:function(t,e){~(e=v.indexOf(t))&&v.splice(e,1)&&s>=e&&s--},_listeners:v}}(),Me=function(){return!p&&Ce.wake()},Ee={},De=/^[\d.\-M][\d.\-,\s]/,Pe=/["']/g,Re=function(t){for(var e,r,n,i={},s=t.substr(1,t.length-3).split(":"),o=s[0],a=1,u=s.length;a<u;a++)r=s[a],e=a!==u-1?r.lastIndexOf(","):r.length,n=r.substr(0,e),i[o]=isNaN(n)?n.replace(Pe,"").trim():+n,o=r.substr(e+1).trim();return i},ze=function(t){return function(e){return 1-t(1-e)}},Ne=function t(e,r){for(var n,i=e._first;i;)i instanceof Ye?t(i,r):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===r||(i.timeline?t(i.timeline,r):(n=i._ease,i._ease=i._yEase,i._yEase=n,i._yoyo=r)),i=i._next},Fe=function(t,e){return t&&(P(t)?t:Ee[t]||function(t){var e,r,n,i,s=(t+"").split("("),o=Ee[s[0]];return o&&s.length>1&&o.config?o.config.apply(null,~t.indexOf("{")?[Re(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(xt)):Ee._CE&&De.test(t)?Ee._CE("",t):o}(t))||e},Le=function(t,e,r,n){void 0===r&&(r=function(t){return 1-e(1-t)}),void 0===n&&(n=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,s={easeIn:e,easeOut:r,easeInOut:n};return mt(t,function(t){for(var e in Ee[t]=G[t]=s,Ee[i=t.toLowerCase()]=r,s)Ee[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ee[t+"."+e]=s[e]}),s},Be=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Ie=function t(e,r,n){var i=r>=1?r:1,s=(n||(e?.3:.45))/(r<1?r:1),o=s/A*(Math.asin(1/i)||0),a=function(t){return 1===t?1:i*Math.pow(2,-10*t)*E((t-o)*s)+1},u="out"===e?a:"in"===e?function(t){return 1-a(1-t)}:Be(a);return s=A/s,u.config=function(r,n){return t(e,r,n)},u},qe=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)}:Be(n);return i.config=function(r){return t(e,r)},i};mt("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;Le(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})}),Ee.Linear.easeNone=Ee.none=Ee.Linear.easeIn,Le("Elastic",Ie("in"),Ie("out"),Ie()),m=7.5625,v=2*(g=1/(_=2.75)),y=2.5*g,Le("Bounce",function(t){return 1-b(1-t)},b=function(t){return t<g?m*t*t:t<v?m*Math.pow(t-1.5/_,2)+.75:t<y?m*(t-=2.25/_)*t+.9375:m*Math.pow(t-2.625/_,2)+.984375}),Le("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}),Le("Circ",function(t){return-(C(1-t*t)-1)}),Le("Sine",function(t){return 1===t?1:1-M(t*O)}),Le("Back",qe("in"),qe("out"),qe()),Ee.SteppedEase=Ee.steps=G.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*Zt(0,.99999999,t)|0)+i)*r}}},T.ease=Ee["quad.out"],mt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return ht+=t+","+t+"Params,"});var je=function(t,e){this.id=S++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:pt,this.set=e?e.getSetter:sr},$e=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,Vt(this,+t.duration,1,1),this.data=t.data,o&&(this._ctx=o,o.data.push(this)),p||Ce.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Vt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Me(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(qt(this,t),!r._dp||r.parent||jt(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)===k||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Tt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Ft(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)+Ft(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?Lt(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?Bt(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(Zt(-Math.abs(this._delay),this.totalDuration(),r),!1!==e),It(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):(Me(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==k&&(this._tTime-=k)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&$t(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(F(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?Bt(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=nt);var e=s;return s=t,wt(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),s=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,Gt(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Gt(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(Jt(this,t),F(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,F(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)-k))},e.eventCallback=function(t,e,r){var n=this.vars;return arguments.length>1?(e?(n[t]=e,r&&(n[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete n[t],this):n[t]},e.then=function(t){var e=this;return new Promise(function(r){var n=P(t)?t:kt,i=function(){var t=e.then;e.then=null,P(n)&&(n=n(e))&&(n.then||n===e)&&(e.then=t),r(n),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i})},e.kill=function(){_e(this)},t}();At($e.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 Ye=function(t){function e(e,n){var i;return void 0===e&&(e={}),(i=t.call(this,e)||this).labels={},i.smoothChildTiming=!!e.smoothChildTiming,i.autoRemoveChildren=!!e.autoRemoveChildren,i._sort=F(e.sortChildren),a&&$t(e.parent||a,r(i),n),e.reversed&&i.reverse(),e.paused&&i.paused(!0),e.scrollTrigger&&Yt(r(i),e.scrollTrigger),i}n(e,t);var i=e.prototype;return i.to=function(t,e,r){return Kt(0,arguments,this),this},i.from=function(t,e,r){return Kt(1,arguments,this),this},i.fromTo=function(t,e,r,n){return Kt(2,arguments,this),this},i.set=function(t,e,r){return e.duration=0,e.parent=this,Mt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new tr(t,e,Jt(this,r),1),this},i.call=function(t,e,r){return $t(this,tr.delayedCall(0,t,e),r)},i.staggerTo=function(t,e,r,n,i,s,o){return r.duration=e,r.stagger=r.stagger||n,r.onComplete=s,r.onCompleteParams=o,r.parent=this,new tr(t,r,Jt(this,i)),this},i.staggerFrom=function(t,e,r,n,i,s,o){return r.runBackwards=1,Mt(r).immediateRender=F(r.immediateRender),this.staggerTo(t,e,r,n,i,s,o)},i.staggerFromTo=function(t,e,r,n,i,s,o,a){return n.startAt=r,Mt(n).immediateRender=F(n.immediateRender),this.staggerTo(t,e,n,i,s,o,a)},i.render=function(t,e,r){var n,i,o,u,l,c,h,f,d,p,m,_,g=this._time,v=this._dirty?this.totalDuration():this._tDur,y=this._dur,b=t<=0?0:gt(t),w=this._zTime<0!=t<0&&(this._initted||!y);if(this!==a&&b>v&&t>=0&&(b=v),b!==this._tTime||r||w){if(g!==this._time&&y&&(b+=this._time-g,t+=this._time-g),n=b,d=this._start,c=!(f=this._ts),w&&(y||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(m=this._yoyo,l=y+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*l+t,e,r);if(n=gt(b%l),b===v?(u=this._repeat,n=y):((u=~~(p=gt(b/l)))&&u===p&&(n=y,u--),n>y&&(n=y)),p=Lt(this._tTime,l),!g&&this._tTime&&p!==u&&this._tTime-p*l-this._dur<=0&&(p=u),m&&1&u&&(n=y-n,_=1),u!==p&&!this._lock){var T=m&&1&p,x=T===(m&&1&u);if(u<p&&(T=!T),g=T?0:b%y?y:b,this._lock=1,this.render(g||(_?0:gt(u*l)),e,!y)._lock=0,this._tTime=b,!e&&this.parent&&me(this,"onRepeat"),this.vars.repeatRefresh&&!_&&(this.invalidate()._lock=1),g&&g!==this._time||c!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(y=this._dur,v=this._tDur,x&&(this._lock=2,g=T?y:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!_&&this.invalidate()),this._lock=0,!this._ts&&!c)return this;Ne(this,_)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(h=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,gt(g),gt(n)),h&&(b-=n-(n=h._start))),this._tTime=b,this._time=n,this._act=!f,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,g=0),!g&&b&&!e&&!p&&(me(this,"onStart"),this._tTime!==b))return this;if(n>=g&&t>=0)for(i=this._first;i;){if(o=i._next,(i._act||n>=i._start)&&i._ts&&h!==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&&!c){h=0,o&&(b+=this._zTime=-1e-8);break}}i=o}else{i=this._last;for(var A=t<0?t:n;i;){if(o=i._prev,(i._act||A<=i._end)&&i._ts&&h!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(A-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(A-i._start)*i._ts,e,r||s&&wt(i)),n!==this._time||!this._ts&&!c){h=0,o&&(b+=this._zTime=A?-1e-8:k);break}}i=o}}if(h&&!e&&(this.pause(),h.render(n>=g?0:-1e-8)._zTime=n>=g?1:-1,this._ts))return this._start=d,It(this),this.render(t,e,r);this._onUpdate&&!e&&me(this,"onUpdate",!0),(b===v&&this._tTime>=this.totalDuration()||!b&&g)&&(d!==this._start&&Math.abs(f)===Math.abs(this._ts)||this._lock||((t||!y)&&(b===v&&this._ts>0||!b&&this._ts<0)&&Pt(this,1),e||t<0&&!g||!b&&!g&&v||(me(this,b===v&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(b<v&&this.timeScale()>0)&&this._prom())))}return this},i.add=function(t,e){var r=this;if(R(e)||(e=Jt(this,e,t)),!(t instanceof $e)){if(q(t))return t.forEach(function(t){return r.add(t,e)}),this;if(D(t))return this.addLabel(t,e);if(!P(t))return this;t=tr.delayedCall(0,t)}return this!==t?$t(this,t,e):this},i.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 tr?e&&i.push(s):(r&&i.push(s),t&&i.push.apply(i,s.getChildren(!0,e,r)))),s=s._next;return i},i.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},i.remove=function(t){return D(t)?this.removeLabel(t):P(t)?this.killTweensOf(t):(t.parent===this&&Dt(this,t),t===this._recent&&(this._recent=this._last),Rt(this))},i.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=gt(Ce.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,r),this._forcing=0,this):this._tTime},i.addLabel=function(t,e){return this.labels[t]=Jt(this,e),this},i.removeLabel=function(t){return delete this.labels[t],this},i.addPause=function(t,e,r){var n=tr.delayedCall(0,e||tt,r);return n.data="isPause",this._hasPause=1,$t(this,n,Jt(this,t))},i.removePause=function(t){var e=this._first;for(t=Jt(this,t);e;)e._start===t&&"isPause"===e.data&&Pt(e),e=e._next},i.killTweensOf=function(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)We!==n[i]&&n[i].kill(t,e);return this},i.getTweensOf=function(t,e){for(var r,n=[],i=ie(t),s=this._first,o=R(e);s;)s instanceof tr?yt(s._targets,i)&&(o?(!We||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},i.tweenTo=function(t,e){e=e||{};var r,n=this,i=Jt(n,t),s=e,o=s.startAt,a=s.onStart,u=s.onStartParams,l=s.immediateRender,c=tr.to(n,At({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(o&&"time"in o?o.time:n._time))/n.timeScale())||k,onStart:function(){if(n.pause(),!r){var t=e.duration||Math.abs((i-(o&&"time"in o?o.time:n._time))/n.timeScale());c._dur!==t&&Vt(c,t,0,1).render(c._time,!0,!0),r=1}a&&a.apply(c,u||[])}},e));return l?c.render(0):c},i.tweenFromTo=function(t,e,r){return this.tweenTo(e,At({startAt:{time:Jt(this,t)}},r))},i.recent=function(){return this._recent},i.nextLabel=function(t){return void 0===t&&(t=this._time),pe(this,Jt(this,t))},i.previousLabel=function(t){return void 0===t&&(t=this._time),pe(this,Jt(this,t),1)},i.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+k)},i.shiftChildren=function(t,e,r){void 0===r&&(r=0);for(var n,i=this._first,s=this.labels;i;)i._start>=r&&(i._start+=t,i._end+=t),i=i._next;if(e)for(n in s)s[n]>=r&&(s[n]+=t);return Rt(this)},i.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)},i.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={}),Rt(this)},i.totalDuration=function(t){var e,r,n,i=0,s=this,o=s._last,u=x;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(n=s.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),(r=o._start)>u&&s._sort&&o._ts&&!s._lock?(s._lock=1,$t(s,o,r-o._delay,1)._lock=0):u=r,r<0&&o._ts&&(i-=r,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=r/s._ts,s._time-=r,s._tTime-=r),s.shiftChildren(-r,!1,-1/0),u=0),o._end>i&&o._ts&&(i=o._end),o=e;Vt(s,s===a&&s._time>i?s._time:i,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(t){if(a._ts&&(Tt(a,Bt(t,a)),f=Ce.frame),Ce.frame>=lt){lt+=w.autoSleep||120;var e=a._first;if((!e||!e._ts)&&w.autoSleep&&Ce._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Ce.sleep()}}},e}($e);At(Ye.prototype,{_lock:0,_hasPause:0,_forcing:0});var We,Ue,Xe=function(t,e,r,n,i,s,o){var a,u,l,c,h,f,d,p,m=new pr(this._pt,t,e,0,1,ur,null,i),_=0,g=0;for(m.b=r,m.e=n,r+="",(d=~(n+="").indexOf("random("))&&(n=fe(n)),s&&(s(p=[r,n],t,e),r=p[0],n=p[1]),u=r.match(W)||[];a=W.exec(n);)c=a[0],h=n.substring(_,a.index),l?l=(l+1)%5:"rgba("===h.substr(-5)&&(l=1),c!==u[g++]&&(f=parseFloat(u[g-1])||0,m._pt={_next:m._pt,p:h||1===g?h:",",s:f,c:"="===c.charAt(1)?vt(f,c)-f:parseFloat(c)-f,m:l&&l<4?Math.round:0},_=W.lastIndex);return m.c=_<n.length?n.substring(_,n.length):"",m.fp=o,(U.test(n)||d)&&(m.e=0),this._pt=m,m},Ve=function(t,e,r,n,i,s,o,a,u,l){P(n)&&(n=n(i||0,t,s));var c,h=t[e],f="get"!==r?r:P(h)?u?t[e.indexOf("set")||!P(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():h,d=P(h)?u?nr:rr:er;if(D(n)&&(~n.indexOf("random(")&&(n=fe(n)),"="===n.charAt(1)&&((c=vt(f,n)+(te(f)||0))||0===c)&&(n=c)),!l||f!==n||Ue)return isNaN(f*n)||""===n?(!h&&!(e in t)&&K(e,n),Xe.call(this,t,e,f,n,d,a||w.stringFilter,u)):(c=new pr(this._pt,t,e,+f||0,n-(f||0),"boolean"==typeof h?ar:or,0,d),u&&(c.fp=u),o&&c.modifier(o,this,t),this._pt=c)},Ge=function(t,e,r,n,i,s){var o,a,u,l;if(at[t]&&!1!==(o=new at[t]).init(i,o.rawVars?e[t]:function(t,e,r,n,i){if(P(t)&&(t=Ke(t,i,e,r,n)),!N(t)||t.style&&t.nodeType||q(t)||I(t))return D(t)?Ke(t,i,e,r,n):t;var s,o={};for(s in t)o[s]=Ke(t[s],i,e,r,n);return o}(e[t],n,i,s,r),r,n,s)&&(r._pt=a=new pr(r._pt,i,t,0,1,o.render,o,0,o.priority),r!==d))for(u=r._ptLookup[r._targets.indexOf(i)],l=o._props.length;l--;)u[o._props[l]]=a;return o},He=function t(e,r,n){var o,u,l,c,h,f,d,p,m,_,g,v,y,b=e.vars,w=b.ease,A=b.startAt,O=b.immediateRender,S=b.lazy,C=b.onUpdate,M=b.runBackwards,E=b.yoyoEase,D=b.keyframes,P=b.autoRevert,R=e._dur,z=e._startAt,N=e._targets,L=e.parent,B=L&&"nested"===L.data?L.vars.targets:N,I="auto"===e._overwrite&&!i,q=e.timeline;if(q&&(!D||!w)&&(w="none"),e._ease=Fe(w,T.ease),e._yEase=E?ze(Fe(!0===E?w:E,T.ease)):0,E&&e._yoyo&&!e._repeat&&(E=e._yEase,e._yEase=e._ease,e._ease=E),e._from=!q&&!!b.runBackwards,!q||D&&!b.stagger){if(v=(p=N[0]?dt(N[0]).harness:0)&&b[p.prop],o=Ct(b,it),z&&(z._zTime<0&&z.progress(1),r<0&&M&&O&&!P?z.render(-1,!0):z.revert(M&&R?rt:et),z._lazy=0),A){if(Pt(e._startAt=tr.set(N,At({data:"isStart",overwrite:!1,parent:L,immediateRender:!0,lazy:!z&&F(S),startAt:null,delay:0,onUpdate:C&&function(){return me(e,"onUpdate")},stagger:0},A))),e._startAt._dp=0,e._startAt._sat=e,r<0&&(s||!O&&!P)&&e._startAt.revert(rt),O&&R&&r<=0&&n<=0)return void(r&&(e._zTime=r))}else if(M&&R&&!z)if(r&&(O=!1),l=At({overwrite:!1,data:"isFromStart",lazy:O&&!z&&F(S),immediateRender:O,stagger:0,parent:L},o),v&&(l[p.prop]=v),Pt(e._startAt=tr.set(N,l)),e._startAt._dp=0,e._startAt._sat=e,r<0&&(s?e._startAt.revert(rt):e._startAt.render(-1,!0)),e._zTime=r,O){if(!r)return}else t(e._startAt,k,k);for(e._pt=e._ptCache=0,S=R&&F(S)||S&&!R,u=0;u<N.length;u++){if(d=(h=N[u])._gsap||ft(N)[u]._gsap,e._ptLookup[u]=_={},ot[d.id]&&st.length&&bt(),g=B===N?u:B.indexOf(h),p&&!1!==(m=new p).init(h,v||o,e,g,B)&&(e._pt=c=new pr(e._pt,h,m.name,0,1,m.render,m,0,m.priority),m._props.forEach(function(t){_[t]=c}),m.priority&&(f=1)),!p||v)for(l in o)at[l]&&(m=Ge(l,o,e,g,h,B))?m.priority&&(f=1):_[l]=c=Ve.call(e,h,l,"get",o[l],g,B,0,b.stringFilter);e._op&&e._op[u]&&e.kill(h,e._op[u]),I&&e._pt&&(We=e,a.killTweensOf(h,_,e.globalTime(r)),y=!e.parent,We=0),e._pt&&S&&(ot[d.id]=1)}f&&dr(e),e._onInit&&e._onInit(e)}e._onUpdate=C,e._initted=(!e._op||e._pt)&&!y,D&&r<=0&&q.render(x,!0,!0)},Je=function(t,e,r,n){var i,s,o=e.ease||n||"power1.inOut";if(q(e))s=r[t]||(r[t]=[]),e.forEach(function(t,r){return s.push({t:r/(e.length-1)*100,v:t,e:o})});else for(i in e)s=r[i]||(r[i]=[]),"ease"===i||s.push({t:parseFloat(t),v:e[i],e:o})},Ke=function(t,e,r,n,i){return P(t)?t.call(e,r,n,i):D(t)&&~t.indexOf("random(")?fe(t):t},Qe=ht+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Ze={};mt(Qe+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return Ze[t]=1});var tr=function(t){function e(e,n,s,o){var u;"number"==typeof n&&(s.duration=n,n=s,s=null);var l,c,h,f,d,p,m,_,g=(u=t.call(this,o?n:Mt(n))||this).vars,v=g.duration,y=g.delay,b=g.immediateRender,T=g.stagger,x=g.overwrite,k=g.keyframes,A=g.defaults,O=g.scrollTrigger,S=g.yoyoEase,C=n.parent||a,M=(q(e)||I(e)?R(e[0]):"length"in n)?[e]:ie(e);if(u._targets=M.length?ft(M):Q("GSAP target "+e+" not found. https://gsap.com",!w.nullTargetWarn)||[],u._ptLookup=[],u._overwrite=x,k||T||B(v)||B(y)){if(n=u.vars,(l=u.timeline=new Ye({data:"nested",defaults:A||{},targets:C&&"nested"===C.data?C.vars.targets:M})).kill(),l.parent=l._dp=r(u),l._start=0,T||B(v)||B(y)){if(f=M.length,m=T&&ae(T),N(T))for(d in T)~Qe.indexOf(d)&&(_||(_={}),_[d]=T[d]);for(c=0;c<f;c++)(h=Ct(n,Ze)).stagger=0,S&&(h.yoyoEase=S),_&&Ot(h,_),p=M[c],h.duration=+Ke(v,r(u),c,p,M),h.delay=(+Ke(y,r(u),c,p,M)||0)-u._delay,!T&&1===f&&h.delay&&(u._delay=y=h.delay,u._start+=y,h.delay=0),l.to(p,h,m?m(c,p,M):0),l._ease=Ee.none;l.duration()?v=y=0:u.timeline=0}else if(k){Mt(At(l.vars.defaults,{ease:"none"})),l._ease=Fe(k.ease||n.ease||"none");var E,D,P,z=0;if(q(k))k.forEach(function(t){return l.to(M,t,">")}),l.duration();else{for(d in h={},k)"ease"===d||"easeEach"===d||Je(d,k[d],h,k.easeEach);for(d in h)for(E=h[d].sort(function(t,e){return t.t-e.t}),z=0,c=0;c<E.length;c++)(P={ease:(D=E[c]).e,duration:(D.t-(c?E[c-1].t:0))/100*v})[d]=D.v,l.to(M,P,z),z+=P.duration;l.duration()<v&&l.to({},{duration:v-l.duration()})}}v||u.duration(v=l.duration())}else u.timeline=0;return!0!==x||i||(We=r(u),a.killTweensOf(M),We=0),$t(C,r(u),s),n.reversed&&u.reverse(),n.paused&&u.paused(!0),(b||!v&&!k&&u._start===gt(C._time)&&F(b)&&Nt(r(u))&&"nested"!==C.data)&&(u._tTime=-1e-8,u.render(Math.max(0,-y)||0)),O&&Yt(r(u),O),u}n(e,t);var o=e.prototype;return o.render=function(t,e,r){var n,i,o,a,u,l,c,h,f,d=this._time,p=this._tDur,m=this._dur,_=t<0,g=t>p-k&&!_?p:t<k?0:t;if(m){if(g!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==_||this._lazy){if(n=g,h=this.timeline,this._repeat){if(a=m+this._rDelay,this._repeat<-1&&_)return this.totalTime(100*a+t,e,r);if(n=gt(g%a),g===p?(o=this._repeat,n=m):(o=~~(u=gt(g/a)))&&o===u?(n=m,o--):n>m&&(n=m),(l=this._yoyo&&1&o)&&(f=this._yEase,n=m-n),u=Lt(this._tTime,a),n===d&&!r&&this._initted&&o===u)return this._tTime=g,this;o!==u&&(h&&this._yEase&&Ne(h,l),this.vars.repeatRefresh&&!l&&!this._lock&&n!==a&&this._initted&&(this._lock=r=1,this.render(gt(a*o),!0).invalidate()._lock=0))}if(!this._initted){if(Wt(this,_?t:n,r,e,g))return this._tTime=0,this;if(!(d===this._time||r&&this.vars.repeatRefresh&&o!==u))return this;if(m!==this._dur)return this.render(t,e,r)}if(this._tTime=g,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(f||this._ease)(n/m),this._from&&(this.ratio=c=1-c),!d&&g&&!e&&!u&&(me(this,"onStart"),this._tTime!==g))return this;for(i=this._pt;i;)i.r(c,i.d),i=i._next;h&&h.render(t<0?t:h._dur*h._ease(n/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(_&&zt(this,t,0,r),me(this,"onUpdate")),this._repeat&&o!==u&&this.vars.onRepeat&&!e&&this.parent&&me(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(_&&!this._onUpdate&&zt(this,t,0,!0),(t||!m)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Pt(this,1),e||_&&!d||!(g||d||l)||(me(this,g===p?"onComplete":"onReverseComplete",!0),this._prom&&!(g<p&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,n){var i,o,a,u=t.ratio,l=e<0||!e&&(!t._start&&Ut(t)&&(t._initted||!Xt(t))||(t._ts<0||t._dp._ts<0)&&!Xt(t))?0:1,c=t._rDelay,h=0;if(c&&t._repeat&&(h=Zt(0,t._tDur,e),o=Lt(h,c),t._yoyo&&1&o&&(l=1-l),o!==Lt(t._tTime,c)&&(u=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==u||s||n||t._zTime===k||!e&&t._zTime){if(!t._initted&&Wt(t,e,n,r,h))return;for(a=t._zTime,t._zTime=e||(r?k:0),r||(r=e&&!a),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=h,i=t._pt;i;)i.r(l,i.d),i=i._next;e<0&&zt(t,e,0,!0),t._onUpdate&&!r&&me(t,"onUpdate"),h&&t._repeat&&!r&&t.parent&&me(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&Pt(t,1),r||s||(me(t,l?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},o.targets=function(){return this._targets},o.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)},o.resetTo=function(t,e,r,n,i){p||Ce.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||He(this,s),function(t,e,r,n,i,s,o,a){var u,l,c,h,f=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!f)for(f=t._ptCache[e]=[],c=t._ptLookup,h=t._targets.length;h--;){if((u=c[h][e])&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==e&&u.fp!==e;)u=u._next;if(!u)return Ue=1,t.vars[e]="+=0",He(t,o),Ue=0,a?Q(e+" not eligible for reset"):1;f.push(u)}for(h=f.length;h--;)(u=(l=f[h])._pt||l).s=!n&&0!==n||i?u.s+(n||0)+s*u.c:n,u.c=r-u.s,l.e&&(l.e=_t(r)+te(l.e)),l.b&&(l.b=u.s+te(l.b))}(this,t,e,r,n,this._ease(s/this._dur),s,i)?this.resetTo(t,e,r,n,1):(qt(this,0),this.parent||Et(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},o.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?_e(this):this.scrollTrigger&&this.scrollTrigger.kill(!!s),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,We&&!0!==We.vars.overwrite)._first||_e(this),this.parent&&r!==this.timeline.totalDuration()&&Vt(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,o,a,u,l,c,h=this._targets,f=t?ie(t):h,d=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function(t,e){for(var r=t.length,n=r===e.length;n&&r--&&t[r]===e[r];);return r<0}(h,f))return"all"===e&&(this._pt=0),_e(this);for(n=this._op=this._op||[],"all"!==e&&(D(e)&&(u={},mt(e,function(t){return u[t]=1}),e=u),e=function(t,e){var r,n,i,s,o=t[0]?dt(t[0]).harness:0,a=o&&o.aliases;if(!a)return e;for(n in r=Ot({},e),a)if(n in r)for(i=(s=a[n].split(",")).length;i--;)r[s[i]]=r[n];return r}(h,e)),c=h.length;c--;)if(~f.indexOf(h[c]))for(u in i=d[c],"all"===e?(n[c]=e,a=i,o={}):(o=n[c]=n[c]||{},a=e),a)(l=i&&i[u])&&("kill"in l.d&&!0!==l.d.kill(u)||Dt(this,l,"_pt"),delete i[u]),"all"!==o&&(o[u]=1);return this._initted&&!this._pt&&p&&_e(this),this},e.to=function(t,r){return new e(t,r,arguments[2])},e.from=function(t,e){return Kt(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 Kt(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 a.killTweensOf(t,e,r)},e}($e);At(tr.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),mt("staggerTo,staggerFrom,staggerFromTo",function(t){tr[t]=function(){var e=new Ye,r=ee.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}});var er=function(t,e,r){return t[e]=r},rr=function(t,e,r){return t[e](r)},nr=function(t,e,r,n){return t[e](n.fp,r)},ir=function(t,e,r){return t.setAttribute(e,r)},sr=function(t,e){return P(t[e])?rr:z(t[e])&&t.setAttribute?ir:er},or=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},ar=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},ur=function(t,e){var r=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+n,r=r._next;n+=e.c}e.set(e.t,e.p,n,e)},lr=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},cr=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},hr=function(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?Dt(this,n,"_pt"):n.dep||(e=1),n=r;return!e},fr=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},dr=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},pr=function(){function t(t,e,r,n,i,s,o,a,u){this.t=e,this.s=n,this.c=i,this.p=r,this.r=s||or,this.d=o||this,this.set=a||er,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=fr,this.m=t,this.mt=r,this.tween=e},t}();mt(ht+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return it[t]=1}),G.TweenMax=G.TweenLite=tr,G.TimelineLite=G.TimelineMax=Ye,a=new Ye({sortChildren:!1,defaults:T,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),w.stringFilter=Se;var mr=[],_r={},gr=[],vr=0,yr=0,br=function(t){return(_r[t]||gr).map(function(t){return t()})},wr=function(){var t=Date.now(),e=[];t-vr>2&&(br("matchMediaInit"),mr.forEach(function(t){var r,n,i,s,o=t.queries,a=t.conditions;for(n in o)(r=u.matchMedia(o[n]).matches)&&(i=1),r!==a[n]&&(a[n]=r,s=1);s&&(t.revert(),i&&e.push(t))}),br("matchMediaRevert"),e.forEach(function(t){return t.onMatch(t,function(e){return t.add(null,e)})}),vr=t,br("matchMedia"))},Tr=function(){function t(t,e){this.selector=e&&se(e),this.data=[],this._r=[],this.isReverted=!1,this.id=yr++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){P(t)&&(r=e,e=t,t=P);var n=this,i=function(){var t,i=o,s=n.selector;return i&&i!==n&&i.data.push(n),r&&(n.selector=se(r)),o=n,t=e.apply(n,arguments),P(t)&&n._r.push(t),o=i,n.selector=s,n.isReverted=!1,t};return n.last=i,t===P?i(n,function(t){return n.add(null,t)}):t?n[t]=i:i},e.ignore=function(t){var e=o;o=null,t(this),o=e},e.getTweens=function(){var e=[];return this.data.forEach(function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof tr&&!(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 Ye?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof tr)&&e.revert&&e.revert(t);r._r.forEach(function(e){return e(t,r)}),r.isReverted=!0}():this.data.forEach(function(t){return t.kill&&t.kill()}),this.clear(),e)for(var n=mr.length;n--;)mr[n].id===this.id&&mr.splice(n,1)},e.revert=function(t){this.kill(t||{})},t}(),xr=function(){function t(t){this.contexts=[],this.scope=t,o&&o.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){N(t)||(t={matches:t});var n,i,s,a=new Tr(0,r||this.scope),l=a.conditions={};for(i in o&&!a.selector&&(a.selector=o.selector),this.contexts.push(a),e=a.add("onMatch",e),a.queries=t,t)"all"===i?s=1:(n=u.matchMedia(t[i]))&&(mr.indexOf(a)<0&&mr.push(a),(l[i]=n.matches)&&(s=1),n.addListener?n.addListener(wr):n.addEventListener("change",wr));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}(),kr={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 ve(t)})},timeline:function(t){return new Ye(t)},getTweensOf:function(t,e){return a.getTweensOf(t,e)},getProperty:function(t,e,r,n){D(t)&&(t=ie(t)[0]);var i=dt(t||{}).get,s=r?kt:xt;return"native"===r&&(r=""),t?e?s((at[e]&&at[e].get||i)(t,e,r,n)):function(e,r,n){return s((at[e]&&at[e].get||i)(t,e,r,n))}:t},quickSetter:function(t,e,r){if((t=ie(t)).length>1){var n=t.map(function(t){return Sr.quickSetter(t,e,r)}),i=n.length;return function(t){for(var e=i;e--;)n[e](t)}}t=t[0]||{};var s=at[e],o=dt(t),a=o.harness&&(o.harness.aliases||{})[e]||e,u=s?function(e){var n=new s;d._pt=0,n.init(t,r?e+r:e,d,0,[t]),n.render(1,n),d._pt&&lr(1,d)}:o.set(t,a);return s?u:function(e){return u(t,a,r?e+r:e,o,1)}},quickTo:function(t,e,r){var n,i=Sr.to(t,At(((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 a.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Fe(t.ease,T.ease)),St(T,t||{})},config:function(t){return St(w,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&&!at[t]&&!G[t]&&Q(e+" effect requires "+t+" plugin.")}),ut[e]=function(t,e,n){return r(ie(t),At(e||{},i),n)},s&&(Ye.prototype[e]=function(t,r,n){return this.add(ut[e](t,N(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){Ee[t]=Fe(e)},parseEase:function(t,e){return arguments.length?Fe(t,e):Ee},getById:function(t){return a.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new Ye(t);for(i.smoothChildTiming=F(t.smoothChildTiming),a.remove(i),i._dp=0,i._time=i._tTime=a._time,r=a._first;r;)n=r._next,!e&&!r._dur&&r instanceof tr&&r.vars.onComplete===r._targets[0]||$t(i,r,r._start-r._delay),r=n;return $t(a,i,0),i},context:function(t,e){return t?new Tr(t,e):o},matchMedia:function(t){return new xr(t)},matchMediaRefresh:function(){return mr.forEach(function(t){var e,r,n=t.conditions;for(r in n)n[r]&&(n[r]=!1,e=1);e&&t.revert()})||wr()},addEventListener:function(t,e){var r=_r[t]||(_r[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=_r[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},utils:{wrap:function t(e,r,n){var i=r-e;return q(e)?he(e,t(0,e.length),r):Qt(n,function(t){return(i+(t-e)%i)%i+e})},wrapYoyo:function t(e,r,n){var i=r-e,s=2*i;return q(e)?he(e,t(0,e.length-1),r):Qt(n,function(t){return e+((t=(s+(t-e)%s)%s||0)>i?s-t:t)})},distribute:ae,random:ce,snap:le,normalize:function(t,e,r){return de(t,e,0,1,r)},getUnit:te,clamp:function(t,e,r){return Qt(r,function(r){return Zt(t,e,r)})},splitColor:Te,toArray:ie,selector:se,mapRange:de,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||te(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 o,a,u,l,c,h=D(e),f={};if(!0===n&&(i=1)&&(n=null),h)e={p:e},r={p:r};else if(q(e)&&!q(r)){for(u=[],l=e.length,c=l-2,a=1;a<l;a++)u.push(t(e[a-1],e[a]));l--,s=function(t){t*=l;var e=Math.min(c,~~t);return u[e](t-e)},n=r}else i||(e=Ot(q(e)?[]:{},e));if(!u){for(o in r)Ve.call(f,e,o,"get",r[o]);s=function(t){return lr(t,f)||(h?e.p:e)}}}return Qt(n,s)},shuffle:oe},install:J,effects:ut,ticker:Ce,updateRoot:Ye.updateRoot,plugins:at,globalTimeline:a,core:{PropTween:pr,globals:Z,Tween:tr,Timeline:Ye,Animation:$e,getCache:dt,_removeLinkedListItem:Dt,reverting:function(){return s},context:function(t){return t&&o&&(o.data.push(t),t._ctx=o),o},suppressOverwrites:function(t){return i=t}}};mt("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return kr[t]=tr[t]}),Ce.add(Ye.updateRoot),d=kr.to({},{duration:0});var Ar=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},Or=function(t,e){return{name:t,headless:1,rawVars:1,init:function(t,r,n){n._onInit=function(t){var n,i;if(D(r)&&(n={},mt(r,function(t){return n[t]=1}),r=n),e){for(i in n={},r)n[i]=e(r[i]);r=n}!function(t,e){var r,n,i,s=t._targets;for(r in e)for(n=s.length;n--;)(i=t._ptLookup[n][r])&&(i=i.d)&&(i._pt&&(i=Ar(i,r)),i&&i.modifier&&i.modifier(e[r],t,s[n],r))}(t,r)}}}},Sr=kr.registerPlugin({name:"attr",init:function(t,e,r,n,i){var s,o,a;for(s in this.tween=r,e)a=t.getAttribute(s)||"",(o=this.add(t,"setAttribute",(a||0)+"",e[s],n,i,0,0,s)).op=s,o.b=a,this._props.push(s)},render:function(t,e){for(var r=e._pt;r;)s?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)}},Or("roundProps",ue),Or("modifiers"),Or("snap",le))||kr;tr.version=Ye.version=Sr.version="3.13.0",h=1,L()&&Me(),Ee.Power0,Ee.Power1,Ee.Power2,Ee.Power3,Ee.Power4,Ee.Linear,Ee.Quad,Ee.Cubic,Ee.Quart,Ee.Quint,Ee.Strong,Ee.Elastic,Ee.Back,Ee.SteppedEase,Ee.Bounce,Ee.Sine,Ee.Expo,Ee.Circ;
9
+ */var r,n,i,s,o,a,u,l,c,h,f,d,p,m,_,g,v,y={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},b={duration:.5,overwrite:!1,delay:0},w=1e8,T=1e-8,x=2*Math.PI,k=x/4,A=0,O=Math.sqrt,S=Math.cos,C=Math.sin,M=function(t){return"string"==typeof t},E=function(t){return"function"==typeof t},D=function(t){return"number"==typeof t},P=function(t){return void 0===t},N=function(t){return"object"==typeof t},R=function(t){return!1!==t},z=function(){return"undefined"!=typeof window},L=function(t){return E(t)||M(t)},F="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},B=Array.isArray,I=/(?:-?\.?\d|\.)+/gi,q=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,j=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,$=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Y=/[+-]=-?[.\d]+/,W=/[^,'"\[\]\s]+/gi,X=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,U={},V={},H=function(t){return(V=kt(t,U))&&Ar},G=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},J=function(t,e){return!e&&console.warn(t)},K=function(t,e){return t&&(U[t]=e)&&V&&(V[t]=e)||U},Q=function(){return 0},Z={suppressEvents:!0,isStart:!0,kill:!1},tt={suppressEvents:!0,kill:!1},et={suppressEvents:!0},rt={},nt=[],it={},st={},ot={},at=30,ut=[],lt="",ct=function(t){var e,r,n=t[0];if(N(n)||E(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=ut.length;r--&&!ut[r].targetTest(n););e=ut[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Ie(t[r],e)))||t.splice(r,1);return t},ht=function(t){return t._gsap||ct(re(t))[0]._gsap},ft=function(t,e,r){return(r=t[e])&&E(r)?t[e]():P(r)&&t.getAttribute&&t.getAttribute(e)||r},dt=function(t,e){return(t=t.split(",")).forEach(e)||t},pt=function(t){return Math.round(1e5*t)/1e5||0},mt=function(t){return Math.round(1e7*t)/1e7||0},_t=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},gt=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r},vt=function(){var t,e,r=nt.length,n=nt.slice(0);for(it={},nt.length=0,t=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},yt=function(t){return!!(t._initted||t._startAt||t.add)},bt=function(t,e,r,i){nt.length&&!n&&vt(),t.render(e,r,!!(n&&e<0&&yt(t))),nt.length&&!n&&vt()},wt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(W).length<2?e:M(t)?t.trim():t},Tt=function(t){return t},xt=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},kt=function(t,e){for(var r in e)t[r]=e[r];return t},At=function t(e,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=N(r[n])?t(e[n]||(e[n]={}),r[n]):r[n]);return e},Ot=function(t,e){var r,n={};for(r in t)r in e||(n[r]=t[r]);return n},St=function(t){var e,r=t.parent||s,n=t.keyframes?(e=B(t.keyframes),function(t,r){for(var n in r)n in t||"duration"===n&&e||"ease"===n||(t[n]=r[n])}):xt;if(R(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},Ct=function(t,e,r,n,i){var s,o=t[n];if(i)for(s=e[i];o&&o[i]>s;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[n]=e,e._prev=o,e.parent=e._dp=t,e},Mt=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},Et=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Dt=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},Pt=function(t,e,r,i){return t._startAt&&(n?t._startAt.revert(tt):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))},Nt=function t(e){return!e||e._ts&&t(e.parent)},Rt=function(t){return t._repeat?zt(t._tTime,t=t.duration()+t._rDelay)*t:0},zt=function(t,e){var r=Math.floor(t=mt(t/e));return t&&r===t?r-1:r},Lt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Ft=function(t){return t._end=mt(t._start+(t._tDur/Math.abs(t._ts||t._rts||T)||0))},Bt=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=mt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Ft(t),r._dirty||Dt(r,t)),t},It=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=Lt(t.rawTime(),e),(!e._dur||Kt(0,e.totalDuration(),r)-e._tTime>T)&&e.render(r,!0)),Dt(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}},qt=function(t,e,r,n){return e.parent&&Et(e),e._start=mt((D(r)?r:r||t!==s?Ht(t,r,e):t._time)+e._delay),e._end=mt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Ct(t,e,"_first","_last",t._sort?"_start":0),Wt(e)||(t._recent=e),n||It(t,e),t._ts<0&&Bt(t,t._tTime),t},jt=function(t,e){return(U.ScrollTrigger||G("scrollTrigger",e))&&U.ScrollTrigger.create(e,t)},$t=function(t,e,r,i,s){return Ve(t,e,s),t._initted?!r&&t._pt&&!n&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&c!==Oe.frame?(nt.push(t),t._lazy=[s,i],1):void 0:1},Yt=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},Wt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Xt=function(t,e,r,n){var i=t._repeat,s=mt(e)||0,o=t._tTime/t._tDur;return o&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=i?i<0?1e10:mt(s*(i+1)+t._rDelay*i):s,o>0&&!n&&Bt(t,t._tTime=t._tDur*o),t.parent&&Ft(t),r||Dt(t.parent,t),t},Ut=function(t){return t instanceof je?Dt(t):Xt(t,t._dur)},Vt={_start:0,endTime:Q,totalDuration:Q},Ht=function t(e,r,n){var i,s,o,a=e.labels,u=e._recent||Vt,l=e.duration()>=w?u.endTime(!1):e._dur;return M(r)&&(isNaN(r)||r in a)?(s=r.charAt(0),o="%"===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)*(o?(i<0?u:n).totalDuration()/100:1)):i<0?(r in a||(a[r]=l),a[r]):(s=parseFloat(r.charAt(i-1)+r.substr(i+1)),o&&n&&(s=s/100*(B(n)?n[0]:n).totalDuration()),i>1?t(e,r.substr(0,i-1),n)+s:l+s)):null==r?l:+r},Gt=function(t,e,r){var n,i,s=D(e[1]),o=(s?2:1)+(t<2?0:1),a=e[o];if(s&&(a.duration=e[1]),a.parent=r,t){for(n=a,i=r;i&&!("immediateRender"in n);)n=i.vars.defaults||{},i=R(i.vars.inherit)&&i.parent;a.immediateRender=R(n.immediateRender),t<2?a.runBackwards=1:a.startAt=e[o-1]}return new Qe(e[0],a,e[o+1])},Jt=function(t,e){return t||0===t?e(t):e},Kt=function(t,e,r){return r<t?t:r>e?e:r},Qt=function(t,e){return M(t)&&(e=X.exec(t))?e[1]:""},Zt=[].slice,te=function(t,e){return t&&N(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&N(t[0]))&&!t.nodeType&&t!==o},ee=function(t,e,r){return void 0===r&&(r=[]),t.forEach(function(t){var n;return M(t)&&!e||te(t,1)?(n=r).push.apply(n,re(t)):r.push(t)})||r},re=function(t,e,r){return i&&!e&&i.selector?i.selector(t):!M(t)||r||!a&&Se()?B(t)?ee(t,r):te(t)?Zt.call(t,0):t?[t]:[]:Zt.call((e||u).querySelectorAll(t),0)},ne=function(t){return t=re(t)[0]||J("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return re(e,r.querySelectorAll?r:r===t?J("Invalid scope")||u.createElement("div"):t)}},ie=function(t){return t.sort(function(){return.5-Math.random()})},se=function(t){if(E(t))return t;var e=N(t)?t:{each:t},r=Re(e.ease),n=e.from||0,i=parseFloat(e.base)||0,s={},o=n>0&&n<1,a=isNaN(n)||o,u=e.axis,l=n,c=n;return M(n)?l=c={center:.5,edges:.5,end:1}[n]||0:!o&&a&&(l=n[0],c=n[1]),function(t,o,h){var f,d,p,m,_,g,v,y,b,T=(h||e).length,x=s[T];if(!x){if(!(b="auto"===e.grid?0:(e.grid||[1,w])[1])){for(v=-1e8;v<(v=h[b++].getBoundingClientRect().left)&&b<T;);b<T&&b--}for(x=s[T]=[],f=a?Math.min(b,T)*l-.5:n%b,d=b===w?0:a?T*c/b-.5:n/b|0,v=0,y=w,g=0;g<T;g++)p=g%b-f,m=d-(g/b|0),x[g]=_=u?Math.abs("y"===u?m:p):O(p*p+m*m),_>v&&(v=_),_<y&&(y=_);"random"===n&&ie(x),x.max=v-y,x.min=y,x.v=T=(parseFloat(e.amount)||parseFloat(e.each)*(b>T?T-1:u?"y"===u?T/b:b:Math.max(b,T/b))||0)*("edges"===n?-1:1),x.b=T<0?i-T:i,x.u=Qt(e.amount||e.each)||0,r=r&&T<0?Pe(r):r}return T=(x[t]-x.min)/x.max||0,mt(x.b+(r?r(T):T)*x.v)+x.u}},oe=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var n=mt(Math.round(parseFloat(r)/t)*t*e);return(n-n%1)/e+(D(r)?0:Qt(r))}},ae=function(t,e){var r,n,i=B(t);return!i&&N(t)&&(r=i=t.radius||w,t.values?(t=re(t.values),(n=!D(t[0]))&&(r*=r)):t=oe(t.increment)),Jt(e,i?E(t)?function(e){return n=t(e),Math.abs(n-e)<=r?n:e}:function(e){for(var i,s,o=parseFloat(n?e.x:e),a=parseFloat(n?e.y:0),u=w,l=0,c=t.length;c--;)(i=n?(i=t[c].x-o)*i+(s=t[c].y-a)*s:Math.abs(t[c]-o))<u&&(u=i,l=c);return l=!r||u<=r?t[l]:e,n||l===e||D(e)?l:l+Qt(e)}:oe(t))},ue=function(t,e,r,n){return Jt(B(t)?!e:!0===r?!!(r=0):!n,function(){return B(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})},le=function(t,e,r){return Jt(r,function(r){return t[~~e(r)]})},ce=function(t){for(var e,r,n,i,s=0,o="";~(e=t.indexOf("random(",s));)n=t.indexOf(")",e),i="["===t.charAt(e+7),r=t.substr(e+7,n-e-7).match(i?W:I),o+=t.substr(s,e-s)+ue(i?r:+r[0],i?0:+r[1],+r[2]||1e-5),s=n+1;return o+t.substr(s,t.length-s)},he=function(t,e,r,n,i){var s=e-t,o=n-r;return Jt(i,function(e){return r+((e-t)/s*o||0)})},fe=function(t,e,r){var n,i,s,o=t.labels,a=w;for(n in o)(i=o[n]-e)<0==!!r&&i&&a>(i=Math.abs(i))&&(s=n,a=i);return s},de=function(t,e,r){var n,s,o,a=t.vars,u=a[e],l=i,c=t._ctx;if(u)return n=a[e+"Params"],s=a.callbackScope||t,r&&nt.length&&vt(),c&&(i=c),o=n?u.apply(s,n):u.call(s),i=l,o},pe=function(t){return Et(t),t.scrollTrigger&&t.scrollTrigger.kill(!!n),t.progress()<1&&de(t,"onInterrupt"),t},me=[],_e=function(t){if(t)if(t=!t.name&&t.default||t,z()||t.headless){var e=t.name,r=E(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:Q,render:ar,add:Xe,kill:lr,modifier:ur,rawVars:0},s={targetTest:0,get:0,getSetter:nr,aliases:{},register:0};if(Se(),t!==n){if(st[e])return;xt(n,xt(Ot(t,i),s)),kt(n.prototype,kt(i,Ot(t,s))),st[n.prop=e]=n,t.targetTest&&(ut.push(n),rt[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}K(e,n),t.register&&t.register(Ar,n,fr)}else me.push(t)},ge=255,ve={aqua:[0,ge,ge],lime:[0,ge,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ge],navy:[0,0,128],white:[ge,ge,ge],olive:[128,128,0],yellow:[ge,ge,0],orange:[ge,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ge,0,0],pink:[ge,192,203],cyan:[0,ge,ge],transparent:[ge,ge,ge,0]},ye=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)*ge+.5|0},be=function(t,e,r){var n,i,s,o,a,u,l,c,h,f,d=t?D(t)?[t>>16,t>>8&ge,t&ge]:0:ve.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),ve[t])d=ve[t];else if("#"===t.charAt(0)){if(t.length<6&&(n=t.charAt(1),i=t.charAt(2),s=t.charAt(3),t="#"+n+n+i+i+s+s+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(d=parseInt(t.substr(1,6),16))>>16,d>>8&ge,d&ge,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&ge,t&ge]}else if("hsl"===t.substr(0,3))if(d=f=t.match(I),e){if(~t.indexOf("="))return d=t.match(q),r&&d.length<4&&(d[3]=1),d}else o=+d[0]%360/360,a=+d[1]/100,n=2*(u=+d[2]/100)-(i=u<=.5?u*(a+1):u+a-u*a),d.length>3&&(d[3]*=1),d[0]=ye(o+1/3,n,i),d[1]=ye(o,n,i),d[2]=ye(o-1/3,n,i);else d=t.match(I)||ve.transparent;d=d.map(Number)}return e&&!f&&(n=d[0]/ge,i=d[1]/ge,s=d[2]/ge,u=((l=Math.max(n,i,s))+(c=Math.min(n,i,s)))/2,l===c?o=a=0:(h=l-c,a=u>.5?h/(2-l-c):h/(l+c),o=l===n?(i-s)/h+(i<s?6:0):l===i?(s-n)/h+2:(n-i)/h+4,o*=60),d[0]=~~(o+.5),d[1]=~~(100*a+.5),d[2]=~~(100*u+.5)),r&&d.length<4&&(d[3]=1),d},we=function(t){var e=[],r=[],n=-1;return t.split(xe).forEach(function(t){var i=t.match(j)||[];e.push.apply(e,i),r.push(n+=i.length+1)}),e.c=r,e},Te=function(t,e,r){var n,i,s,o,a="",u=(t+a).match(xe),l=e?"hsla(":"rgba(",c=0;if(!u)return t;if(u=u.map(function(t){return(t=be(t,e,1))&&l+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(s=we(t),(n=r.c).join(a)!==s.c.join(a)))for(o=(i=t.replace(xe,"1").split(j)).length-1;c<o;c++)a+=i[c]+(~n.indexOf(c)?u.shift()||l+"0,0,0,0)":(s.length?s:u.length?u:r).shift());if(!i)for(o=(i=t.split(xe)).length-1;c<o;c++)a+=i[c]+u[c];return a+i[o]},xe=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in ve)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),ke=/hsl[a]?\(/,Ae=function(t){var e,r=t.join(" ");if(xe.lastIndex=0,xe.test(r))return e=ke.test(r),t[1]=Te(t[1],e),t[0]=Te(t[0],e,we(t[1])),!0},Oe=function(){var t,e,r,n,i,s,c=Date.now,h=500,d=33,p=c(),m=p,_=1e3/240,g=_,v=[],y=function r(o){var a,u,l,f,y=c()-m,b=!0===o;if((y>h||y<0)&&(p+=y-d),((a=(l=(m+=y)-p)-g)>0||b)&&(f=++n.frame,i=l-1e3*n.time,n.time=l/=1e3,g+=a+(a>=_?4:_-a),u=1),b||(t=e(r)),u)for(s=0;s<v.length;s++)v[s](l,i,f,o)};return n={time:0,frame:0,tick:function(){y(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){l&&(!a&&z()&&(o=a=window,u=o.document||{},U.gsap=Ar,(o.gsapVersions||(o.gsapVersions=[])).push(Ar.version),H(V||o.GreenSockGlobals||!o.gsap&&o||{}),me.forEach(_e)),r="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&n.sleep(),e=r||function(t){return setTimeout(t,g-1e3*n.time+1|0)},f=1,y(2))},sleep:function(){(r?cancelAnimationFrame:clearTimeout)(t),f=0,e=Q},lagSmoothing:function(t,e){h=t||1/0,d=Math.min(e||33,h)},fps:function(t){_=1e3/(t||240),g=1e3*n.time+_},add:function(t,e,r){var i=e?function(e,r,s,o){t(e,r,s,o),n.remove(i)}:t;return n.remove(t),v[r?"unshift":"push"](i),Se(),i},remove:function(t,e){~(e=v.indexOf(t))&&v.splice(e,1)&&s>=e&&s--},_listeners:v}}(),Se=function(){return!f&&Oe.wake()},Ce={},Me=/^[\d.\-M][\d.\-,\s]/,Ee=/["']/g,De=function(t){for(var e,r,n,i={},s=t.substr(1,t.length-3).split(":"),o=s[0],a=1,u=s.length;a<u;a++)r=s[a],e=a!==u-1?r.lastIndexOf(","):r.length,n=r.substr(0,e),i[o]=isNaN(n)?n.replace(Ee,"").trim():+n,o=r.substr(e+1).trim();return i},Pe=function(t){return function(e){return 1-t(1-e)}},Ne=function t(e,r){for(var n,i=e._first;i;)i instanceof je?t(i,r):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===r||(i.timeline?t(i.timeline,r):(n=i._ease,i._ease=i._yEase,i._yEase=n,i._yoyo=r)),i=i._next},Re=function(t,e){return t&&(E(t)?t:Ce[t]||function(t){var e,r,n,i,s=(t+"").split("("),o=Ce[s[0]];return o&&s.length>1&&o.config?o.config.apply(null,~t.indexOf("{")?[De(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(wt)):Ce._CE&&Me.test(t)?Ce._CE("",t):o}(t))||e},ze=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 dt(t,function(t){for(var e in Ce[t]=U[t]=s,Ce[i=t.toLowerCase()]=r,s)Ce[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ce[t+"."+e]=s[e]}),s},Le=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Fe=function t(e,r,n){var i=r>=1?r:1,s=(n||(e?.3:.45))/(r<1?r:1),o=s/x*(Math.asin(1/i)||0),a=function(t){return 1===t?1:i*Math.pow(2,-10*t)*C((t-o)*s)+1},u="out"===e?a:"in"===e?function(t){return 1-a(1-t)}:Le(a);return s=x/s,u.config=function(r,n){return t(e,r,n)},u},Be=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)}:Le(n);return i.config=function(r){return t(e,r)},i};dt("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;ze(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})}),Ce.Linear.easeNone=Ce.none=Ce.Linear.easeIn,ze("Elastic",Fe("in"),Fe("out"),Fe()),d=7.5625,_=2*(m=1/(p=2.75)),g=2.5*m,ze("Bounce",function(t){return 1-v(1-t)},v=function(t){return t<m?d*t*t:t<_?d*Math.pow(t-1.5/p,2)+.75:t<g?d*(t-=2.25/p)*t+.9375:d*Math.pow(t-2.625/p,2)+.984375}),ze("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}),ze("Circ",function(t){return-(O(1-t*t)-1)}),ze("Sine",function(t){return 1===t?1:1-S(t*k)}),ze("Back",Be("in"),Be("out"),Be()),Ce.SteppedEase=Ce.steps=U.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*Kt(0,.99999999,t)|0)+i)*r}}},b.ease=Ce["quad.out"],dt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return lt+=t+","+t+"Params,"});var Ie=function(t,e){this.id=A++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:ft,this.set=e?e.getSetter:nr},qe=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,Xt(this,+t.duration,1,1),this.data=t.data,i&&(this._ctx=i,i.data.push(this)),f||Oe.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,Xt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Se(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Bt(this,t),!r._dp||r.parent||It(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)&&qt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===T||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),bt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Rt(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)+Rt(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?zt(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?Lt(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(Kt(-Math.abs(this._delay),this.totalDuration(),r),!1!==e),Ft(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):(Se(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==T&&(this._tTime-=T)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&qt(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(R(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?Lt(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=et);var e=n;return n=t,yt(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),n=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,Ut(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Ut(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(Ht(this,t),R(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,R(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)-T))},e.eventCallback=function(t,e,r){var n=this.vars;return arguments.length>1?(e?(n[t]=e,r&&(n[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete n[t],this):n[t]},e.then=function(t){var e=this;return new Promise(function(r){var n=E(t)?t:Tt,i=function(){var t=e.then;e.then=null,E(n)&&(n=n(e))&&(n.then||n===e)&&(e.then=t),r(n),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i})},e.kill=function(){pe(this)},t}();xt(qe.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var je=function(r){function i(e,n){var i;return void 0===e&&(e={}),(i=r.call(this,e)||this).labels={},i.smoothChildTiming=!!e.smoothChildTiming,i.autoRemoveChildren=!!e.autoRemoveChildren,i._sort=R(e.sortChildren),s&&qt(e.parent||s,t(i),n),e.reversed&&i.reverse(),e.paused&&i.paused(!0),e.scrollTrigger&&jt(t(i),e.scrollTrigger),i}e(i,r);var o=i.prototype;return o.to=function(t,e,r){return Gt(0,arguments,this),this},o.from=function(t,e,r){return Gt(1,arguments,this),this},o.fromTo=function(t,e,r,n){return Gt(2,arguments,this),this},o.set=function(t,e,r){return e.duration=0,e.parent=this,St(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Qe(t,e,Ht(this,r),1),this},o.call=function(t,e,r){return qt(this,Qe.delayedCall(0,t,e),r)},o.staggerTo=function(t,e,r,n,i,s,o){return r.duration=e,r.stagger=r.stagger||n,r.onComplete=s,r.onCompleteParams=o,r.parent=this,new Qe(t,r,Ht(this,i)),this},o.staggerFrom=function(t,e,r,n,i,s,o){return r.runBackwards=1,St(r).immediateRender=R(r.immediateRender),this.staggerTo(t,e,r,n,i,s,o)},o.staggerFromTo=function(t,e,r,n,i,s,o,a){return n.startAt=r,St(n).immediateRender=R(n.immediateRender),this.staggerTo(t,e,n,i,s,o,a)},o.render=function(t,e,r){var i,o,a,u,l,c,h,f,d,p,m,_,g=this._time,v=this._dirty?this.totalDuration():this._tDur,y=this._dur,b=t<=0?0:mt(t),w=this._zTime<0!=t<0&&(this._initted||!y);if(this!==s&&b>v&&t>=0&&(b=v),b!==this._tTime||r||w){if(g!==this._time&&y&&(b+=this._time-g,t+=this._time-g),i=b,d=this._start,c=!(f=this._ts),w&&(y||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(m=this._yoyo,l=y+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*l+t,e,r);if(i=mt(b%l),b===v?(u=this._repeat,i=y):((u=~~(p=mt(b/l)))&&u===p&&(i=y,u--),i>y&&(i=y)),p=zt(this._tTime,l),!g&&this._tTime&&p!==u&&this._tTime-p*l-this._dur<=0&&(p=u),m&&1&u&&(i=y-i,_=1),u!==p&&!this._lock){var x=m&&1&p,k=x===(m&&1&u);if(u<p&&(x=!x),g=x?0:b%y?y:b,this._lock=1,this.render(g||(_?0:mt(u*l)),e,!y)._lock=0,this._tTime=b,!e&&this.parent&&de(this,"onRepeat"),this.vars.repeatRefresh&&!_&&(this.invalidate()._lock=1),g&&g!==this._time||c!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(y=this._dur,v=this._tDur,k&&(this._lock=2,g=x?y:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!_&&this.invalidate()),this._lock=0,!this._ts&&!c)return this;Ne(this,_)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(h=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,mt(g),mt(i)),h&&(b-=i-(i=h._start))),this._tTime=b,this._time=i,this._act=!f,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,g=0),!g&&b&&!e&&!p&&(de(this,"onStart"),this._tTime!==b))return this;if(i>=g&&t>=0)for(o=this._first;o;){if(a=o._next,(o._act||i>=o._start)&&o._ts&&h!==o){if(o.parent!==this)return this.render(t,e,r);if(o.render(o._ts>0?(i-o._start)*o._ts:(o._dirty?o.totalDuration():o._tDur)+(i-o._start)*o._ts,e,r),i!==this._time||!this._ts&&!c){h=0,a&&(b+=this._zTime=-1e-8);break}}o=a}else{o=this._last;for(var A=t<0?t:i;o;){if(a=o._prev,(o._act||A<=o._end)&&o._ts&&h!==o){if(o.parent!==this)return this.render(t,e,r);if(o.render(o._ts>0?(A-o._start)*o._ts:(o._dirty?o.totalDuration():o._tDur)+(A-o._start)*o._ts,e,r||n&&yt(o)),i!==this._time||!this._ts&&!c){h=0,a&&(b+=this._zTime=A?-1e-8:T);break}}o=a}}if(h&&!e&&(this.pause(),h.render(i>=g?0:-1e-8)._zTime=i>=g?1:-1,this._ts))return this._start=d,Ft(this),this.render(t,e,r);this._onUpdate&&!e&&de(this,"onUpdate",!0),(b===v&&this._tTime>=this.totalDuration()||!b&&g)&&(d!==this._start&&Math.abs(f)===Math.abs(this._ts)||this._lock||((t||!y)&&(b===v&&this._ts>0||!b&&this._ts<0)&&Et(this,1),e||t<0&&!g||!b&&!g&&v||(de(this,b===v&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(b<v&&this.timeScale()>0)&&this._prom())))}return this},o.add=function(t,e){var r=this;if(D(e)||(e=Ht(this,e,t)),!(t instanceof qe)){if(B(t))return t.forEach(function(t){return r.add(t,e)}),this;if(M(t))return this.addLabel(t,e);if(!E(t))return this;t=Qe.delayedCall(0,t)}return this!==t?qt(this,t,e):this},o.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 Qe?e&&i.push(s):(r&&i.push(s),t&&i.push.apply(i,s.getChildren(!0,e,r)))),s=s._next;return i},o.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},o.remove=function(t){return M(t)?this.removeLabel(t):E(t)?this.killTweensOf(t):(t.parent===this&&Mt(this,t),t===this._recent&&(this._recent=this._last),Dt(this))},o.totalTime=function(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=mt(Oe.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),r.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},o.addLabel=function(t,e){return this.labels[t]=Ht(this,e),this},o.removeLabel=function(t){return delete this.labels[t],this},o.addPause=function(t,e,r){var n=Qe.delayedCall(0,e||Q,r);return n.data="isPause",this._hasPause=1,qt(this,n,Ht(this,t))},o.removePause=function(t){var e=this._first;for(t=Ht(this,t);e;)e._start===t&&"isPause"===e.data&&Et(e),e=e._next},o.killTweensOf=function(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)$e!==n[i]&&n[i].kill(t,e);return this},o.getTweensOf=function(t,e){for(var r,n=[],i=re(t),s=this._first,o=D(e);s;)s instanceof Qe?gt(s._targets,i)&&(o?(!$e||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},o.tweenTo=function(t,e){e=e||{};var r,n=this,i=Ht(n,t),s=e,o=s.startAt,a=s.onStart,u=s.onStartParams,l=s.immediateRender,c=Qe.to(n,xt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(o&&"time"in o?o.time:n._time))/n.timeScale())||T,onStart:function(){if(n.pause(),!r){var t=e.duration||Math.abs((i-(o&&"time"in o?o.time:n._time))/n.timeScale());c._dur!==t&&Xt(c,t,0,1).render(c._time,!0,!0),r=1}a&&a.apply(c,u||[])}},e));return l?c.render(0):c},o.tweenFromTo=function(t,e,r){return this.tweenTo(e,xt({startAt:{time:Ht(this,t)}},r))},o.recent=function(){return this._recent},o.nextLabel=function(t){return void 0===t&&(t=this._time),fe(this,Ht(this,t))},o.previousLabel=function(t){return void 0===t&&(t=this._time),fe(this,Ht(this,t),1)},o.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+T)},o.shiftChildren=function(t,e,r){void 0===r&&(r=0);for(var n,i=this._first,s=this.labels;i;)i._start>=r&&(i._start+=t,i._end+=t),i=i._next;if(e)for(n in s)s[n]>=r&&(s[n]+=t);return Dt(this)},o.invalidate=function(t){var e=this._first;for(this._lock=0;e;)e.invalidate(t),e=e._next;return r.prototype.invalidate.call(this,t)},o.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={}),Dt(this)},o.totalDuration=function(t){var e,r,n,i=0,o=this,a=o._last,u=w;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-t:t));if(o._dirty){for(n=o.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),(r=a._start)>u&&o._sort&&a._ts&&!o._lock?(o._lock=1,qt(o,a,r-a._delay,1)._lock=0):u=r,r<0&&a._ts&&(i-=r,(!n&&!o._dp||n&&n.smoothChildTiming)&&(o._start+=r/o._ts,o._time-=r,o._tTime-=r),o.shiftChildren(-r,!1,-1/0),u=0),a._end>i&&a._ts&&(i=a._end),a=e;Xt(o,o===s&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},i.updateRoot=function(t){if(s._ts&&(bt(s,Lt(t,s)),c=Oe.frame),Oe.frame>=at){at+=y.autoSleep||120;var e=s._first;if((!e||!e._ts)&&y.autoSleep&&Oe._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Oe.sleep()}}},i}(qe);xt(je.prototype,{_lock:0,_hasPause:0,_forcing:0});var $e,Ye,We=function(t,e,r,n,i,s,o){var a,u,l,c,h,f,d,p,m=new fr(this._pt,t,e,0,1,or,null,i),_=0,g=0;for(m.b=r,m.e=n,r+="",(d=~(n+="").indexOf("random("))&&(n=ce(n)),s&&(s(p=[r,n],t,e),r=p[0],n=p[1]),u=r.match($)||[];a=$.exec(n);)c=a[0],h=n.substring(_,a.index),l?l=(l+1)%5:"rgba("===h.substr(-5)&&(l=1),c!==u[g++]&&(f=parseFloat(u[g-1])||0,m._pt={_next:m._pt,p:h||1===g?h:",",s:f,c:"="===c.charAt(1)?_t(f,c)-f:parseFloat(c)-f,m:l&&l<4?Math.round:0},_=$.lastIndex);return m.c=_<n.length?n.substring(_,n.length):"",m.fp=o,(Y.test(n)||d)&&(m.e=0),this._pt=m,m},Xe=function(t,e,r,n,i,s,o,a,u,l){E(n)&&(n=n(i||0,t,s));var c,h=t[e],f="get"!==r?r:E(h)?u?t[e.indexOf("set")||!E(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():h,d=E(h)?u?er:tr:Ze;if(M(n)&&(~n.indexOf("random(")&&(n=ce(n)),"="===n.charAt(1)&&((c=_t(f,n)+(Qt(f)||0))||0===c)&&(n=c)),!l||f!==n||Ye)return isNaN(f*n)||""===n?(!h&&!(e in t)&&G(e,n),We.call(this,t,e,f,n,d,a||y.stringFilter,u)):(c=new fr(this._pt,t,e,+f||0,n-(f||0),"boolean"==typeof h?sr:ir,0,d),u&&(c.fp=u),o&&c.modifier(o,this,t),this._pt=c)},Ue=function(t,e,r,n,i,s){var o,a,u,l;if(st[t]&&!1!==(o=new st[t]).init(i,o.rawVars?e[t]:function(t,e,r,n,i){if(E(t)&&(t=Ge(t,i,e,r,n)),!N(t)||t.style&&t.nodeType||B(t)||F(t))return M(t)?Ge(t,i,e,r,n):t;var s,o={};for(s in t)o[s]=Ge(t[s],i,e,r,n);return o}(e[t],n,i,s,r),r,n,s)&&(r._pt=a=new fr(r._pt,i,t,0,1,o.render,o,0,o.priority),r!==h))for(u=r._ptLookup[r._targets.indexOf(i)],l=o._props.length;l--;)u[o._props[l]]=a;return o},Ve=function t(e,i,o){var a,u,l,c,h,f,d,p,m,_,g,v,y,x=e.vars,k=x.ease,A=x.startAt,O=x.immediateRender,S=x.lazy,C=x.onUpdate,M=x.runBackwards,E=x.yoyoEase,D=x.keyframes,P=x.autoRevert,N=e._dur,z=e._startAt,L=e._targets,F=e.parent,B=F&&"nested"===F.data?F.vars.targets:L,I="auto"===e._overwrite&&!r,q=e.timeline;if(q&&(!D||!k)&&(k="none"),e._ease=Re(k,b.ease),e._yEase=E?Pe(Re(!0===E?k:E,b.ease)):0,E&&e._yoyo&&!e._repeat&&(E=e._yEase,e._yEase=e._ease,e._ease=E),e._from=!q&&!!x.runBackwards,!q||D&&!x.stagger){if(v=(p=L[0]?ht(L[0]).harness:0)&&x[p.prop],a=Ot(x,rt),z&&(z._zTime<0&&z.progress(1),i<0&&M&&O&&!P?z.render(-1,!0):z.revert(M&&N?tt:Z),z._lazy=0),A){if(Et(e._startAt=Qe.set(L,xt({data:"isStart",overwrite:!1,parent:F,immediateRender:!0,lazy:!z&&R(S),startAt:null,delay:0,onUpdate:C&&function(){return de(e,"onUpdate")},stagger:0},A))),e._startAt._dp=0,e._startAt._sat=e,i<0&&(n||!O&&!P)&&e._startAt.revert(tt),O&&N&&i<=0&&o<=0)return void(i&&(e._zTime=i))}else if(M&&N&&!z)if(i&&(O=!1),l=xt({overwrite:!1,data:"isFromStart",lazy:O&&!z&&R(S),immediateRender:O,stagger:0,parent:F},a),v&&(l[p.prop]=v),Et(e._startAt=Qe.set(L,l)),e._startAt._dp=0,e._startAt._sat=e,i<0&&(n?e._startAt.revert(tt):e._startAt.render(-1,!0)),e._zTime=i,O){if(!i)return}else t(e._startAt,T,T);for(e._pt=e._ptCache=0,S=N&&R(S)||S&&!N,u=0;u<L.length;u++){if(d=(h=L[u])._gsap||ct(L)[u]._gsap,e._ptLookup[u]=_={},it[d.id]&&nt.length&&vt(),g=B===L?u:B.indexOf(h),p&&!1!==(m=new p).init(h,v||a,e,g,B)&&(e._pt=c=new fr(e._pt,h,m.name,0,1,m.render,m,0,m.priority),m._props.forEach(function(t){_[t]=c}),m.priority&&(f=1)),!p||v)for(l in a)st[l]&&(m=Ue(l,a,e,g,h,B))?m.priority&&(f=1):_[l]=c=Xe.call(e,h,l,"get",a[l],g,B,0,x.stringFilter);e._op&&e._op[u]&&e.kill(h,e._op[u]),I&&e._pt&&($e=e,s.killTweensOf(h,_,e.globalTime(i)),y=!e.parent,$e=0),e._pt&&S&&(it[d.id]=1)}f&&hr(e),e._onInit&&e._onInit(e)}e._onUpdate=C,e._initted=(!e._op||e._pt)&&!y,D&&i<=0&&q.render(w,!0,!0)},He=function(t,e,r,n){var i,s,o=e.ease||n||"power1.inOut";if(B(e))s=r[t]||(r[t]=[]),e.forEach(function(t,r){return s.push({t:r/(e.length-1)*100,v:t,e:o})});else for(i in e)s=r[i]||(r[i]=[]),"ease"===i||s.push({t:parseFloat(t),v:e[i],e:o})},Ge=function(t,e,r,n,i){return E(t)?t.call(e,r,n,i):M(t)&&~t.indexOf("random(")?ce(t):t},Je=lt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Ke={};dt(Je+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return Ke[t]=1});var Qe=function(i){function o(e,n,o,a){var u;"number"==typeof n&&(o.duration=n,n=o,o=null);var l,c,h,f,d,p,m,_,g=(u=i.call(this,a?n:St(n))||this).vars,v=g.duration,b=g.delay,w=g.immediateRender,T=g.stagger,x=g.overwrite,k=g.keyframes,A=g.defaults,O=g.scrollTrigger,S=g.yoyoEase,C=n.parent||s,M=(B(e)||F(e)?D(e[0]):"length"in n)?[e]:re(e);if(u._targets=M.length?ct(M):J("GSAP target "+e+" not found. https://gsap.com",!y.nullTargetWarn)||[],u._ptLookup=[],u._overwrite=x,k||T||L(v)||L(b)){if(n=u.vars,(l=u.timeline=new je({data:"nested",defaults:A||{},targets:C&&"nested"===C.data?C.vars.targets:M})).kill(),l.parent=l._dp=t(u),l._start=0,T||L(v)||L(b)){if(f=M.length,m=T&&se(T),N(T))for(d in T)~Je.indexOf(d)&&(_||(_={}),_[d]=T[d]);for(c=0;c<f;c++)(h=Ot(n,Ke)).stagger=0,S&&(h.yoyoEase=S),_&&kt(h,_),p=M[c],h.duration=+Ge(v,t(u),c,p,M),h.delay=(+Ge(b,t(u),c,p,M)||0)-u._delay,!T&&1===f&&h.delay&&(u._delay=b=h.delay,u._start+=b,h.delay=0),l.to(p,h,m?m(c,p,M):0),l._ease=Ce.none;l.duration()?v=b=0:u.timeline=0}else if(k){St(xt(l.vars.defaults,{ease:"none"})),l._ease=Re(k.ease||n.ease||"none");var E,P,z,I=0;if(B(k))k.forEach(function(t){return l.to(M,t,">")}),l.duration();else{for(d in h={},k)"ease"===d||"easeEach"===d||He(d,k[d],h,k.easeEach);for(d in h)for(E=h[d].sort(function(t,e){return t.t-e.t}),I=0,c=0;c<E.length;c++)(z={ease:(P=E[c]).e,duration:(P.t-(c?E[c-1].t:0))/100*v})[d]=P.v,l.to(M,z,I),I+=z.duration;l.duration()<v&&l.to({},{duration:v-l.duration()})}}v||u.duration(v=l.duration())}else u.timeline=0;return!0!==x||r||($e=t(u),s.killTweensOf(M),$e=0),qt(C,t(u),o),n.reversed&&u.reverse(),n.paused&&u.paused(!0),(w||!v&&!k&&u._start===mt(C._time)&&R(w)&&Nt(t(u))&&"nested"!==C.data)&&(u._tTime=-1e-8,u.render(Math.max(0,-b)||0)),O&&jt(t(u),O),u}e(o,i);var a=o.prototype;return a.render=function(t,e,r){var i,s,o,a,u,l,c,h,f,d=this._time,p=this._tDur,m=this._dur,_=t<0,g=t>p-T&&!_?p:t<T?0:t;if(m){if(g!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==_||this._lazy){if(i=g,h=this.timeline,this._repeat){if(a=m+this._rDelay,this._repeat<-1&&_)return this.totalTime(100*a+t,e,r);if(i=mt(g%a),g===p?(o=this._repeat,i=m):(o=~~(u=mt(g/a)))&&o===u?(i=m,o--):i>m&&(i=m),(l=this._yoyo&&1&o)&&(f=this._yEase,i=m-i),u=zt(this._tTime,a),i===d&&!r&&this._initted&&o===u)return this._tTime=g,this;o!==u&&(h&&this._yEase&&Ne(h,l),this.vars.repeatRefresh&&!l&&!this._lock&&i!==a&&this._initted&&(this._lock=r=1,this.render(mt(a*o),!0).invalidate()._lock=0))}if(!this._initted){if($t(this,_?t:i,r,e,g))return this._tTime=0,this;if(!(d===this._time||r&&this.vars.repeatRefresh&&o!==u))return this;if(m!==this._dur)return this.render(t,e,r)}if(this._tTime=g,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(f||this._ease)(i/m),this._from&&(this.ratio=c=1-c),!d&&g&&!e&&!u&&(de(this,"onStart"),this._tTime!==g))return this;for(s=this._pt;s;)s.r(c,s.d),s=s._next;h&&h.render(t<0?t:h._dur*h._ease(i/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(_&&Pt(this,t,0,r),de(this,"onUpdate")),this._repeat&&o!==u&&this.vars.onRepeat&&!e&&this.parent&&de(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(_&&!this._onUpdate&&Pt(this,t,0,!0),(t||!m)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Et(this,1),e||_&&!d||!(g||d||l)||(de(this,g===p?"onComplete":"onReverseComplete",!0),this._prom&&!(g<p&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,i){var s,o,a,u=t.ratio,l=e<0||!e&&(!t._start&&Yt(t)&&(t._initted||!Wt(t))||(t._ts<0||t._dp._ts<0)&&!Wt(t))?0:1,c=t._rDelay,h=0;if(c&&t._repeat&&(h=Kt(0,t._tDur,e),o=zt(h,c),t._yoyo&&1&o&&(l=1-l),o!==zt(t._tTime,c)&&(u=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==u||n||i||t._zTime===T||!e&&t._zTime){if(!t._initted&&$t(t,e,i,r,h))return;for(a=t._zTime,t._zTime=e||(r?T:0),r||(r=e&&!a),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=h,s=t._pt;s;)s.r(l,s.d),s=s._next;e<0&&Pt(t,e,0,!0),t._onUpdate&&!r&&de(t,"onUpdate"),h&&t._repeat&&!r&&t.parent&&de(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&Et(t,1),r||n||(de(t,l?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},a.targets=function(){return this._targets},a.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),i.prototype.invalidate.call(this,t)},a.resetTo=function(t,e,r,n,i){f||Oe.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Ve(this,s),function(t,e,r,n,i,s,o,a){var u,l,c,h,f=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!f)for(f=t._ptCache[e]=[],c=t._ptLookup,h=t._targets.length;h--;){if((u=c[h][e])&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==e&&u.fp!==e;)u=u._next;if(!u)return Ye=1,t.vars[e]="+=0",Ve(t,o),Ye=0,a?J(e+" not eligible for reset"):1;f.push(u)}for(h=f.length;h--;)(u=(l=f[h])._pt||l).s=!n&&0!==n||i?u.s+(n||0)+s*u.c:n,u.c=r-u.s,l.e&&(l.e=pt(r)+Qt(l.e)),l.b&&(l.b=u.s+Qt(l.b))}(this,t,e,r,n,this._ease(s/this._dur),s,i)?this.resetTo(t,e,r,n,1):(Bt(this,0),this.parent||Ct(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},a.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?pe(this):this.scrollTrigger&&this.scrollTrigger.kill(!!n),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,$e&&!0!==$e.vars.overwrite)._first||pe(this),this.parent&&r!==this.timeline.totalDuration()&&Xt(this,this._dur*this.timeline._tDur/r,0,1),this}var i,s,o,a,u,l,c,h=this._targets,f=t?re(t):h,d=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function(t,e){for(var r=t.length,n=r===e.length;n&&r--&&t[r]===e[r];);return r<0}(h,f))return"all"===e&&(this._pt=0),pe(this);for(i=this._op=this._op||[],"all"!==e&&(M(e)&&(u={},dt(e,function(t){return u[t]=1}),e=u),e=function(t,e){var r,n,i,s,o=t[0]?ht(t[0]).harness:0,a=o&&o.aliases;if(!a)return e;for(n in r=kt({},e),a)if(n in r)for(i=(s=a[n].split(",")).length;i--;)r[s[i]]=r[n];return r}(h,e)),c=h.length;c--;)if(~f.indexOf(h[c]))for(u in s=d[c],"all"===e?(i[c]=e,a=s,o={}):(o=i[c]=i[c]||{},a=e),a)(l=s&&s[u])&&("kill"in l.d&&!0!==l.d.kill(u)||Mt(this,l,"_pt"),delete s[u]),"all"!==o&&(o[u]=1);return this._initted&&!this._pt&&p&&pe(this),this},o.to=function(t,e){return new o(t,e,arguments[2])},o.from=function(t,e){return Gt(1,arguments)},o.delayedCall=function(t,e,r,n){return new o(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:n})},o.fromTo=function(t,e,r){return Gt(2,arguments)},o.set=function(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new o(t,e)},o.killTweensOf=function(t,e,r){return s.killTweensOf(t,e,r)},o}(qe);xt(Qe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),dt("staggerTo,staggerFrom,staggerFromTo",function(t){Qe[t]=function(){var e=new je,r=Zt.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}});var Ze=function(t,e,r){return t[e]=r},tr=function(t,e,r){return t[e](r)},er=function(t,e,r,n){return t[e](n.fp,r)},rr=function(t,e,r){return t.setAttribute(e,r)},nr=function(t,e){return E(t[e])?tr:P(t[e])&&t.setAttribute?rr:Ze},ir=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},sr=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},or=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)},ar=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},ur=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},lr=function(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?Mt(this,n,"_pt"):n.dep||(e=1),n=r;return!e},cr=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},hr=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},fr=function(){function t(t,e,r,n,i,s,o,a,u){this.t=e,this.s=n,this.c=i,this.p=r,this.r=s||ir,this.d=o||this,this.set=a||Ze,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=cr,this.m=t,this.mt=r,this.tween=e},t}();dt(lt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return rt[t]=1}),U.TweenMax=U.TweenLite=Qe,U.TimelineLite=U.TimelineMax=je,s=new je({sortChildren:!1,defaults:b,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),y.stringFilter=Ae;var dr=[],pr={},mr=[],_r=0,gr=0,vr=function(t){return(pr[t]||mr).map(function(t){return t()})},yr=function(){var t=Date.now(),e=[];t-_r>2&&(vr("matchMediaInit"),dr.forEach(function(t){var r,n,i,s,a=t.queries,u=t.conditions;for(n in a)(r=o.matchMedia(a[n]).matches)&&(i=1),r!==u[n]&&(u[n]=r,s=1);s&&(t.revert(),i&&e.push(t))}),vr("matchMediaRevert"),e.forEach(function(t){return t.onMatch(t,function(e){return t.add(null,e)})}),_r=t,vr("matchMedia"))},br=function(){function t(t,e){this.selector=e&&ne(e),this.data=[],this._r=[],this.isReverted=!1,this.id=gr++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){E(t)&&(r=e,e=t,t=E);var n=this,s=function(){var t,s=i,o=n.selector;return s&&s!==n&&s.data.push(n),r&&(n.selector=ne(r)),i=n,t=e.apply(n,arguments),E(t)&&n._r.push(t),i=s,n.selector=o,n.isReverted=!1,t};return n.last=s,t===E?s(n,function(t){return n.add(null,t)}):t?n[t]=s:s},e.ignore=function(t){var e=i;i=null,t(this),i=e},e.getTweens=function(){var e=[];return this.data.forEach(function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof Qe&&!(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 je?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof Qe)&&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=dr.length;n--;)dr[n].id===this.id&&dr.splice(n,1)},e.revert=function(t){this.kill(t||{})},t}(),wr=function(){function t(t){this.contexts=[],this.scope=t,i&&i.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){N(t)||(t={matches:t});var n,s,a,u=new br(0,r||this.scope),l=u.conditions={};for(s in i&&!u.selector&&(u.selector=i.selector),this.contexts.push(u),e=u.add("onMatch",e),u.queries=t,t)"all"===s?a=1:(n=o.matchMedia(t[s]))&&(dr.indexOf(u)<0&&dr.push(u),(l[s]=n.matches)&&(a=1),n.addListener?n.addListener(yr):n.addEventListener("change",yr));return a&&e(u,function(t){return u.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}(),Tr={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 _e(t)})},timeline:function(t){return new je(t)},getTweensOf:function(t,e){return s.getTweensOf(t,e)},getProperty:function(t,e,r,n){M(t)&&(t=re(t)[0]);var i=ht(t||{}).get,s=r?Tt:wt;return"native"===r&&(r=""),t?e?s((st[e]&&st[e].get||i)(t,e,r,n)):function(e,r,n){return s((st[e]&&st[e].get||i)(t,e,r,n))}:t},quickSetter:function(t,e,r){if((t=re(t)).length>1){var n=t.map(function(t){return Ar.quickSetter(t,e,r)}),i=n.length;return function(t){for(var e=i;e--;)n[e](t)}}t=t[0]||{};var s=st[e],o=ht(t),a=o.harness&&(o.harness.aliases||{})[e]||e,u=s?function(e){var n=new s;h._pt=0,n.init(t,r?e+r:e,h,0,[t]),n.render(1,n),h._pt&&ar(1,h)}:o.set(t,a);return s?u:function(e){return u(t,a,r?e+r:e,o,1)}},quickTo:function(t,e,r){var n,i=Ar.to(t,xt(((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 s.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Re(t.ease,b.ease)),At(b,t||{})},config:function(t){return At(y,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&&!st[t]&&!U[t]&&J(e+" effect requires "+t+" plugin.")}),ot[e]=function(t,e,n){return r(re(t),xt(e||{},i),n)},s&&(je.prototype[e]=function(t,r,n){return this.add(ot[e](t,N(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){Ce[t]=Re(e)},parseEase:function(t,e){return arguments.length?Re(t,e):Ce},getById:function(t){return s.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new je(t);for(i.smoothChildTiming=R(t.smoothChildTiming),s.remove(i),i._dp=0,i._time=i._tTime=s._time,r=s._first;r;)n=r._next,!e&&!r._dur&&r instanceof Qe&&r.vars.onComplete===r._targets[0]||qt(i,r,r._start-r._delay),r=n;return qt(s,i,0),i},context:function(t,e){return t?new br(t,e):i},matchMedia:function(t){return new wr(t)},matchMediaRefresh:function(){return dr.forEach(function(t){var e,r,n=t.conditions;for(r in n)n[r]&&(n[r]=!1,e=1);e&&t.revert()})||yr()},addEventListener:function(t,e){var r=pr[t]||(pr[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=pr[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},utils:{wrap:function t(e,r,n){var i=r-e;return B(e)?le(e,t(0,e.length),r):Jt(n,function(t){return(i+(t-e)%i)%i+e})},wrapYoyo:function t(e,r,n){var i=r-e,s=2*i;return B(e)?le(e,t(0,e.length-1),r):Jt(n,function(t){return e+((t=(s+(t-e)%s)%s||0)>i?s-t:t)})},distribute:se,random:ue,snap:ae,normalize:function(t,e,r){return he(t,e,0,1,r)},getUnit:Qt,clamp:function(t,e,r){return Jt(r,function(r){return Kt(t,e,r)})},splitColor:be,toArray:re,selector:ne,mapRange:he,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||Qt(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 o,a,u,l,c,h=M(e),f={};if(!0===n&&(i=1)&&(n=null),h)e={p:e},r={p:r};else if(B(e)&&!B(r)){for(u=[],l=e.length,c=l-2,a=1;a<l;a++)u.push(t(e[a-1],e[a]));l--,s=function(t){t*=l;var e=Math.min(c,~~t);return u[e](t-e)},n=r}else i||(e=kt(B(e)?[]:{},e));if(!u){for(o in r)Xe.call(f,e,o,"get",r[o]);s=function(t){return ar(t,f)||(h?e.p:e)}}}return Jt(n,s)},shuffle:ie},install:H,effects:ot,ticker:Oe,updateRoot:je.updateRoot,plugins:st,globalTimeline:s,core:{PropTween:fr,globals:K,Tween:Qe,Timeline:je,Animation:qe,getCache:ht,_removeLinkedListItem:Mt,reverting:function(){return n},context:function(t){return t&&i&&(i.data.push(t),t._ctx=i),i},suppressOverwrites:function(t){return r=t}}};dt("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Tr[t]=Qe[t]}),Oe.add(je.updateRoot),h=Tr.to({},{duration:0});var xr=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},kr=function(t,e){return{name:t,headless:1,rawVars:1,init:function(t,r,n){n._onInit=function(t){var n,i;if(M(r)&&(n={},dt(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=xr(i,r)),i&&i.modifier&&i.modifier(e[r],t,s[n],r))}(t,r)}}}},Ar=Tr.registerPlugin({name:"attr",init:function(t,e,r,n,i){var s,o,a;for(s in this.tween=r,e)a=t.getAttribute(s)||"",(o=this.add(t,"setAttribute",(a||0)+"",e[s],n,i,0,0,s)).op=s,o.b=a,this._props.push(s)},render:function(t,e){for(var r=e._pt;r;)n?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",headless:1,init:function(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r],0,0,0,0,0,1)}},kr("roundProps",oe),kr("modifiers"),kr("snap",ae))||Tr;Qe.version=je.version=Ar.version="3.13.0",l=1,z()&&Se(),Ce.Power0,Ce.Power1,Ce.Power2,Ce.Power3,Ce.Power4,Ce.Linear,Ce.Quad,Ce.Cubic,Ce.Quart,Ce.Quint,Ce.Strong,Ce.Elastic,Ce.Back,Ce.SteppedEase,Ce.Bounce,Ce.Sine,Ce.Expo,Ce.Circ;
10
10
  /*!
11
11
  * CSSPlugin 3.13.0
12
12
  * https://gsap.com
@@ -15,4 +15,4 @@ import{classModule as t}from"snabbdom/modules/class.js";import{attributesModule
15
15
  * Subject to the terms at https://gsap.com/standard-license
16
16
  * @author: Jack Doyle, jack@greensock.com
17
17
  */
18
- var Cr,Mr,Er,Dr,Pr,Rr,zr,Nr,Fr={},Lr=180/Math.PI,Br=Math.PI/180,Ir=Math.atan2,qr=/([A-Z])/g,jr=/(left|right|width|margin|padding|x)/i,$r=/[\s,\(]\S/,Yr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Wr=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Ur=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)},Xr=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)},Vr=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},Gr=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Hr=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},Jr=function(t,e,r){return t.style[e]=r},Kr=function(t,e,r){return t.style.setProperty(e,r)},Qr=function(t,e,r){return t._gsap[e]=r},Zr=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},tn=function(t,e,r,n,i){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(i,s)},en=function(t,e,r,n,i){var s=t._gsap;s[e]=r,s.renderTransform(i,s)},rn="transform",nn=rn+"Origin",sn=function t(e,r){var n=this,i=this.target,s=i.style,o=i._gsap;if(e in Fr&&s){if(this.tfm=this.tfm||{},"transform"===e)return Yr.transform.split(",").forEach(function(e){return t.call(n,e,r)});if(~(e=Yr[e]||e).indexOf(",")?e.split(",").forEach(function(t){return n.tfm[t]=xn(i,t)}):this.tfm[e]=o.x?o[e]:xn(i,e),e===nn&&(this.tfm.zOrigin=o.zOrigin),this.props.indexOf(rn)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(nn,r,"")),e=rn}(s||r)&&this.props.push(e,r,s[e])},on=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},an=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(qr,"-$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=zr())&&t.isStart||i[rn]||(on(i),s.zOrigin&&i[nn]&&(i[nn]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},un=function(t,e){var r={target:t,props:[],revert:an,save:sn};return t._gsap||Sr.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(t){return r.save(t)}),r},ln=function(t,e){var r=Mr.createElementNS?Mr.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Mr.createElement(t);return r&&r.style?r:Mr.createElement(t)},cn=function t(e,r,n){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(qr,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&t(e,fn(r)||r,1)||""},hn="O,Moz,ms,Ms,Webkit".split(","),fn=function(t,e,r){var n=(e||Pr).style,i=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(hn[i]+t in n););return i<0?null:(3===i?"ms":i>=0?hn[i]:"")+t},dn=function(){"undefined"!=typeof window&&window.document&&(Cr=window,Mr=Cr.document,Er=Mr.documentElement,Pr=ln("div")||{style:{}},ln("div"),rn=fn(rn),nn=rn+"Origin",Pr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Nr=!!fn("perspective"),zr=Sr.core.reverting,Dr=1)},pn=function(t){var e,r=t.ownerSVGElement,n=ln("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0);i.style.display="block",n.appendChild(i),Er.appendChild(n);try{e=i.getBBox()}catch(t){}return n.removeChild(i),Er.removeChild(n),e},mn=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},_n=function(t){var e,r;try{e=t.getBBox()}catch(n){e=pn(t),r=1}return e&&(e.width||e.height)||r||(e=pn(t)),!e||e.width||e.x||e.y?e:{x:+mn(t,["x","cx","x1"])||0,y:+mn(t,["y","cy","y1"])||0,width:0,height:0}},gn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!_n(t))},vn=function(t,e){if(e){var r,n=t.style;e in Fr&&e!==nn&&(e=rn),n.removeProperty?("ms"!==(r=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty("--"===r?e:e.replace(qr,"-$1").toLowerCase())):n.removeAttribute(e)}},yn=function(t,e,r,n,i,s){var o=new pr(t._pt,e,r,0,1,s?Hr:Gr);return t._pt=o,o.b=n,o.e=i,t._props.push(r),o},bn={deg:1,rad:1,turn:1},wn={grid:1,flex:1},Tn=function t(e,r,n,i){var s,o,a,u,l=parseFloat(n)||0,c=(n+"").trim().substr((l+"").length)||"px",h=Pr.style,f=jr.test(r),d="svg"===e.tagName.toLowerCase(),p=(d?"client":"offset")+(f?"Width":"Height"),m=100,_="px"===i,g="%"===i;if(i===c||!l||bn[i]||bn[c])return l;if("px"!==c&&!_&&(l=t(e,r,n,"px")),u=e.getCTM&&gn(e),(g||"%"===c)&&(Fr[r]||~r.indexOf("adius")))return s=u?e.getBBox()[f?"width":"height"]:e[p],_t(g?l/s*m:l/100*s);if(h[f?"width":"height"]=m+(_?c:i),o="rem"!==i&&~r.indexOf("adius")||"em"===i&&e.appendChild&&!d?e:e.parentNode,u&&(o=(e.ownerSVGElement||{}).parentNode),o&&o!==Mr&&o.appendChild||(o=Mr.body),(a=o._gsap)&&g&&a.width&&f&&a.time===Ce.time&&!a.uncache)return _t(l/a.width*m);if(!g||"height"!==r&&"width"!==r)(g||"%"===c)&&!wn[cn(o,"display")]&&(h.position=cn(e,"position")),o===e&&(h.position="static"),o.appendChild(Pr),s=Pr[p],o.removeChild(Pr),h.position="absolute";else{var v=e.style[r];e.style[r]=m+i,s=e[p],v?e.style[r]=v:vn(e,r)}return f&&g&&((a=dt(o)).time=Ce.time,a.width=o[p]),_t(_?s*l/m:s&&l?m/s*l:0)},xn=function(t,e,r,n){var i;return Dr||dn(),e in Yr&&"transform"!==e&&~(e=Yr[e]).indexOf(",")&&(e=e.split(",")[0]),Fr[e]&&"transform"!==e?(i=Nn(t,n),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Fn(cn(t,nn))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=Cn[e]&&Cn[e](t,e,r)||cn(t,e)||pt(t,e)||("opacity"===e?1:0)),r&&!~(i+"").trim().indexOf(" ")?Tn(t,e,i,r)+r:i},kn=function(t,e,r,n){if(!r||"none"===r){var i=fn(e,t,1),s=i&&cn(t,i,1);s&&s!==r?(e=i,r=s):"borderColor"===e&&(r=cn(t,"borderTopColor"))}var o,a,u,l,c,h,f,d,p,m,_,g=new pr(this._pt,t.style,e,0,1,ur),v=0,y=0;if(g.b=r,g.e=n,r+="","var(--"===(n+="").substring(0,6)&&(n=cn(t,n.substring(4,n.indexOf(")")))),"auto"===n&&(h=t.style[e],t.style[e]=n,n=cn(t,e)||n,h?t.style[e]=h:vn(t,e)),Se(o=[r,n]),n=o[1],u=(r=o[0]).match(Y)||[],(n.match(Y)||[]).length){for(;a=Y.exec(n);)f=a[0],p=n.substring(v,a.index),c?c=(c+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(c=1),f!==(h=u[y++]||"")&&(l=parseFloat(h)||0,_=h.substr((l+"").length),"="===f.charAt(1)&&(f=vt(l,f)+_),d=parseFloat(f),m=f.substr((d+"").length),v=Y.lastIndex-m.length,m||(m=m||w.units[e]||_,v===n.length&&(n+=m,g.e+=m)),_!==m&&(l=Tn(t,e,h,m)||0),g._pt={_next:g._pt,p:p||1===y?p:",",s:l,c:d-l,m:c&&c<4||"zIndex"===e?Math.round:0});g.c=v<n.length?n.substring(v,n.length):""}else g.r="display"===e&&"none"===n?Hr:Gr;return U.test(n)&&(g.e=0),this._pt=g,g},An={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},On=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]=An[r]||r,e[1]=An[n]||n,e.join(" ")},Sn=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,n,i,s=e.t,o=s.style,a=e.u,u=s._gsap;if("all"===a||!0===a)o.cssText="",n=1;else for(i=(a=a.split(",")).length;--i>-1;)r=a[i],Fr[r]&&(n=1,r="transformOrigin"===r?nn:rn),vn(s,r);n&&(vn(s,rn),u&&(u.svg&&s.removeAttribute("transform"),o.scale=o.rotate=o.translate="none",Nn(s,1),u.uncache=1,on(o)))}},Cn={clearProps:function(t,e,r,n,i){if("isFromStart"!==i.data){var s=t._pt=new pr(t._pt,e,r,0,0,Sn);return s.u=n,s.pr=-10,s.tween=i,t._props.push(r),1}}},Mn=[1,0,0,1,0,0],En={},Dn=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Pn=function(t){var e=cn(t,rn);return Dn(e)?Mn:e.substr(7).match($).map(_t)},Rn=function(t,e){var r,n,i,s,o=t._gsap||dt(t),a=t.style,u=Pn(t);return o.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(",")?Mn:u:(u!==Mn||t.offsetParent||t===Er||o.svg||(i=a.display,a.display="block",(r=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(s=1,n=t.nextElementSibling,Er.appendChild(t)),u=Pn(t),i?a.display=i:vn(t,"display"),s&&(n?r.insertBefore(t,n):r?r.appendChild(t):Er.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},zn=function(t,e,r,n,i,s){var o,a,u,l=t._gsap,c=i||Rn(t,!0),h=l.xOrigin||0,f=l.yOrigin||0,d=l.xOffset||0,p=l.yOffset||0,m=c[0],_=c[1],g=c[2],v=c[3],y=c[4],b=c[5],w=e.split(" "),T=parseFloat(w[0])||0,x=parseFloat(w[1])||0;r?c!==Mn&&(a=m*v-_*g)&&(u=T*(-_/a)+x*(m/a)-(m*b-_*y)/a,T=T*(v/a)+x*(-g/a)+(g*b-v*y)/a,x=u):(T=(o=_n(t)).x+(~w[0].indexOf("%")?T/100*o.width:T),x=o.y+(~(w[1]||w[0]).indexOf("%")?x/100*o.height:x)),n||!1!==n&&l.smooth?(y=T-h,b=x-f,l.xOffset=d+(y*m+b*g)-y,l.yOffset=p+(y*_+b*v)-b):l.xOffset=l.yOffset=0,l.xOrigin=T,l.yOrigin=x,l.smooth=!!n,l.origin=e,l.originIsAbsolute=!!r,t.style[nn]="0px 0px",s&&(yn(s,l,"xOrigin",h,T),yn(s,l,"yOrigin",f,x),yn(s,l,"xOffset",d,l.xOffset),yn(s,l,"yOffset",p,l.yOffset)),t.setAttribute("data-svg-origin",T+" "+x)},Nn=function(t,e){var r=t._gsap||new je(t);if("x"in r&&!e&&!r.uncache)return r;var n,i,s,o,a,u,l,c,h,f,d,p,m,_,g,v,y,b,T,x,k,A,O,S,C,M,E,D,P,R,z,N,F=t.style,L=r.scaleX<0,B="px",I="deg",q=getComputedStyle(t),j=cn(t,nn)||"0";return n=i=s=u=l=c=h=f=d=0,o=a=1,r.svg=!(!t.getCTM||!gn(t)),q.translate&&("none"===q.translate&&"none"===q.scale&&"none"===q.rotate||(F[rn]=("none"!==q.translate?"translate3d("+(q.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==q.rotate?"rotate("+q.rotate+") ":"")+("none"!==q.scale?"scale("+q.scale.split(" ").join(",")+") ":"")+("none"!==q[rn]?q[rn]:"")),F.scale=F.rotate=F.translate="none"),_=Rn(t,r.svg),r.svg&&(r.uncache?(C=t.getBBox(),j=r.xOrigin-C.x+"px "+(r.yOrigin-C.y)+"px",S=""):S=!e&&t.getAttribute("data-svg-origin"),zn(t,S||j,!!S||r.originIsAbsolute,!1!==r.smooth,_)),p=r.xOrigin||0,m=r.yOrigin||0,_!==Mn&&(b=_[0],T=_[1],x=_[2],k=_[3],n=A=_[4],i=O=_[5],6===_.length?(o=Math.sqrt(b*b+T*T),a=Math.sqrt(k*k+x*x),u=b||T?Ir(T,b)*Lr:0,(h=x||k?Ir(x,k)*Lr+u:0)&&(a*=Math.abs(Math.cos(h*Br))),r.svg&&(n-=p-(p*b+m*x),i-=m-(p*T+m*k))):(N=_[6],R=_[7],E=_[8],D=_[9],P=_[10],z=_[11],n=_[12],i=_[13],s=_[14],l=(g=Ir(N,P))*Lr,g&&(S=A*(v=Math.cos(-g))+E*(y=Math.sin(-g)),C=O*v+D*y,M=N*v+P*y,E=A*-y+E*v,D=O*-y+D*v,P=N*-y+P*v,z=R*-y+z*v,A=S,O=C,N=M),c=(g=Ir(-x,P))*Lr,g&&(v=Math.cos(-g),z=k*(y=Math.sin(-g))+z*v,b=S=b*v-E*y,T=C=T*v-D*y,x=M=x*v-P*y),u=(g=Ir(T,b))*Lr,g&&(S=b*(v=Math.cos(g))+T*(y=Math.sin(g)),C=A*v+O*y,T=T*v-b*y,O=O*v-A*y,b=S,A=C),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,c=180-c),o=_t(Math.sqrt(b*b+T*T+x*x)),a=_t(Math.sqrt(O*O+N*N)),g=Ir(A,O),h=Math.abs(g)>2e-4?g*Lr:0,d=z?1/(z<0?-z:z):0),r.svg&&(S=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!Dn(cn(t,rn)),S&&t.setAttribute("transform",S))),Math.abs(h)>90&&Math.abs(h)<270&&(L?(o*=-1,h+=u<=0?180:-180,u+=u<=0?180:-180):(a*=-1,h+=h<=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=_t(o),r.scaleY=_t(a),r.rotation=_t(u)+I,r.rotationX=_t(l)+I,r.rotationY=_t(c)+I,r.skewX=h+I,r.skewY=f+I,r.transformPerspective=d+B,(r.zOrigin=parseFloat(j.split(" ")[2])||!e&&r.zOrigin||0)&&(F[nn]=Fn(j)),r.xOffset=r.yOffset=0,r.force3D=w.force3D,r.renderTransform=r.svg?Yn:Nr?$n:Bn,r.uncache=0,r},Fn=function(t){return(t=t.split(" "))[0]+" "+t[1]},Ln=function(t,e,r){var n=te(e);return _t(parseFloat(e)+parseFloat(Tn(t,"x",r+"px",n)))+n},Bn=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,$n(t,e)},In="0deg",qn="0px",jn=") ",$n=function(t,e){var r=e||this,n=r.xPercent,i=r.yPercent,s=r.x,o=r.y,a=r.z,u=r.rotation,l=r.rotationY,c=r.rotationX,h=r.skewX,f=r.skewY,d=r.scaleX,p=r.scaleY,m=r.transformPerspective,_=r.force3D,g=r.target,v=r.zOrigin,y="",b="auto"===_&&t&&1!==t||!0===_;if(v&&(c!==In||l!==In)){var w,T=parseFloat(l)*Br,x=Math.sin(T),k=Math.cos(T);T=parseFloat(c)*Br,w=Math.cos(T),s=Ln(g,s,x*w*-v),o=Ln(g,o,-Math.sin(T)*-v),a=Ln(g,a,k*w*-v+v)}m!==qn&&(y+="perspective("+m+jn),(n||i)&&(y+="translate("+n+"%, "+i+"%) "),(b||s!==qn||o!==qn||a!==qn)&&(y+=a!==qn||b?"translate3d("+s+", "+o+", "+a+") ":"translate("+s+", "+o+jn),u!==In&&(y+="rotate("+u+jn),l!==In&&(y+="rotateY("+l+jn),c!==In&&(y+="rotateX("+c+jn),h===In&&f===In||(y+="skew("+h+", "+f+jn),1===d&&1===p||(y+="scale("+d+", "+p+jn),g.style[rn]=y||"translate(0, 0)"},Yn=function(t,e){var r,n,i,s,o,a=e||this,u=a.xPercent,l=a.yPercent,c=a.x,h=a.y,f=a.rotation,d=a.skewX,p=a.skewY,m=a.scaleX,_=a.scaleY,g=a.target,v=a.xOrigin,y=a.yOrigin,b=a.xOffset,w=a.yOffset,T=a.forceCSS,x=parseFloat(c),k=parseFloat(h);f=parseFloat(f),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),f+=p),f||d?(f*=Br,d*=Br,r=Math.cos(f)*m,n=Math.sin(f)*m,i=Math.sin(f-d)*-_,s=Math.cos(f-d)*_,d&&(p*=Br,o=Math.tan(d-p),i*=o=Math.sqrt(1+o*o),s*=o,p&&(o=Math.tan(p),r*=o=Math.sqrt(1+o*o),n*=o)),r=_t(r),n=_t(n),i=_t(i),s=_t(s)):(r=m,s=_,n=i=0),(x&&!~(c+"").indexOf("px")||k&&!~(h+"").indexOf("px"))&&(x=Tn(g,"x",c,"px"),k=Tn(g,"y",h,"px")),(v||y||b||w)&&(x=_t(x+v-(v*r+y*i)+b),k=_t(k+y-(v*n+y*s)+w)),(u||l)&&(o=g.getBBox(),x=_t(x+u/100*o.width),k=_t(k+l/100*o.height)),o="matrix("+r+","+n+","+i+","+s+","+x+","+k+")",g.setAttribute("transform",o),T&&(g.style[rn]=o)},Wn=function(t,e,r,n,i){var s,o,a=360,u=D(i),l=parseFloat(i)*(u&&~i.indexOf("rad")?Lr:1)-n,c=n+l+"deg";return u&&("short"===(s=i.split("_")[1])&&(l%=a)!==l%180&&(l+=l<0?a:-360),"cw"===s&&l<0?l=(l+36e9)%a-~~(l/a)*a:"ccw"===s&&l>0&&(l=(l-36e9)%a-~~(l/a)*a)),t._pt=o=new pr(t._pt,e,r,n,l,Ur),o.e=c,o.u="deg",t._props.push(r),o},Un=function(t,e){for(var r in e)t[r]=e[r];return t},Xn=function(t,e,r){var n,i,s,o,a,u,l,c=Un({},r._gsap),h=r.style;for(i in c.svg?(s=r.getAttribute("transform"),r.setAttribute("transform",""),h[rn]=e,n=Nn(r,1),vn(r,rn),r.setAttribute("transform",s)):(s=getComputedStyle(r)[rn],h[rn]=e,n=Nn(r,1),h[rn]=s),Fr)(s=c[i])!==(o=n[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(a=te(s)!==(l=te(o))?Tn(r,i,s,l):parseFloat(s),u=parseFloat(o),t._pt=new pr(t._pt,n,i,a,u-a,Wr),t._pt.u=l||0,t._props.push(i));Un(n,c)};mt("padding,margin,Width,Radius",function(t,e){var r="Top",n="Right",i="Bottom",s="Left",o=(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});Cn[e>1?"border"+t:t]=function(t,e,r,n,i){var s,a;if(arguments.length<4)return s=o.map(function(e){return xn(t,e,r)}),5===(a=s.join(" ")).split(s[0]).length?s[0]:a;s=(n+"").split(" "),a={},o.forEach(function(t,e){return a[t]=s[e]=s[e]||s[(e-1)/2|0]}),t.init(e,a,i)}});var Vn,Gn,Hn,Jn={name:"css",register:dn,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,n,i){var s,o,a,u,l,c,h,f,d,p,m,_,g,v,y,b,T=this._props,x=t.style,k=r.vars.startAt;for(h in Dr||dn(),this.styles=this.styles||un(t),b=this.styles.props,this.tween=r,e)if("autoRound"!==h&&(o=e[h],!at[h]||!Ge(h,e,r,n,t,i)))if(l=typeof o,c=Cn[h],"function"===l&&(l=typeof(o=o.call(r,n,t,i))),"string"===l&&~o.indexOf("random(")&&(o=fe(o)),c)c(this,t,h,o,r)&&(y=1);else if("--"===h.substr(0,2))s=(getComputedStyle(t).getPropertyValue(h)+"").trim(),o+="",Ae.lastIndex=0,Ae.test(s)||(f=te(s),d=te(o)),d?f!==d&&(s=Tn(t,h,s,d)+d):f&&(o+=f),this.add(x,"setProperty",s,o,n,i,0,0,h),T.push(h),b.push(h,0,x[h]);else if("undefined"!==l){if(k&&h in k?(s="function"==typeof k[h]?k[h].call(r,n,t,i):k[h],D(s)&&~s.indexOf("random(")&&(s=fe(s)),te(s+"")||"auto"===s||(s+=w.units[h]||te(xn(t,h))||""),"="===(s+"").charAt(1)&&(s=xn(t,h))):s=xn(t,h),u=parseFloat(s),(p="string"===l&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),a=parseFloat(o),h in Yr&&("autoAlpha"===h&&(1===u&&"hidden"===xn(t,"visibility")&&a&&(u=0),b.push("visibility",0,x.visibility),yn(this,x,"visibility",u?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==h&&"transform"!==h&&~(h=Yr[h]).indexOf(",")&&(h=h.split(",")[0])),m=h in Fr)if(this.styles.save(h),"string"===l&&"var(--"===o.substring(0,6)&&(o=cn(t,o.substring(4,o.indexOf(")"))),a=parseFloat(o)),_||((g=t._gsap).renderTransform&&!e.parseTransform||Nn(t,e.parseTransform),v=!1!==e.smoothOrigin&&g.smooth,(_=this._pt=new pr(this._pt,x,rn,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===h)this._pt=new pr(this._pt,g,"scaleY",g.scaleY,(p?vt(g.scaleY,p+a):a)-g.scaleY||0,Wr),this._pt.u=0,T.push("scaleY",h),h+="X";else{if("transformOrigin"===h){b.push(nn,0,x[nn]),o=On(o),g.svg?zn(t,o,0,v,0,this):((d=parseFloat(o.split(" ")[2])||0)!==g.zOrigin&&yn(this,g,"zOrigin",g.zOrigin,d),yn(this,x,h,Fn(s),Fn(o)));continue}if("svgOrigin"===h){zn(t,o,1,v,0,this);continue}if(h in En){Wn(this,g,h,u,p?vt(u,p+o):o);continue}if("smoothOrigin"===h){yn(this,g,"smooth",g.smooth,o);continue}if("force3D"===h){g[h]=o;continue}if("transform"===h){Xn(this,o,t);continue}}else h in x||(h=fn(h)||h);if(m||(a||0===a)&&(u||0===u)&&!$r.test(o)&&h in x)a||(a=0),(f=(s+"").substr((u+"").length))!==(d=te(o)||(h in w.units?w.units[h]:f))&&(u=Tn(t,h,s,d)),this._pt=new pr(this._pt,m?g:x,h,u,(p?vt(u,p+a):a)-u,m||"px"!==d&&"zIndex"!==h||!1===e.autoRound?Wr:Vr),this._pt.u=d||0,f!==d&&"%"!==d&&(this._pt.b=s,this._pt.r=Xr);else if(h in x)kn.call(this,t,h,s,p?p+o:o);else if(h in t)this.add(t,h,s||t[h],p?p+o:o,n,i);else if("parseTransform"!==h){K(h,o);continue}m||(h in x?b.push(h,0,x[h]):"function"==typeof t[h]?b.push(h,2,t[h]()):b.push(h,1,s||t[h])),T.push(h)}y&&dr(this)},render:function(t,e){if(e.tween._time||!zr())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:xn,aliases:Yr,getSetter:function(t,e,r){var n=Yr[e];return n&&n.indexOf(",")<0&&(e=n),e in Fr&&e!==nn&&(t._gsap.x||xn(t,"x"))?r&&Rr===r?"scale"===e?Zr:Qr:(Rr=r||{})&&("scale"===e?tn:en):t.style&&!z(t.style[e])?Jr:~e.indexOf("-")?Kr:sr(t,e)},core:{_removeProperty:vn,_getMatrix:Rn}};Sr.utils.checkPrefix=fn,Sr.core.getStyleSaver=un,Hn=mt((Vn="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Gn="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){Fr[t]=1}),mt(Gn,function(t){w.units[t]="deg",En[t]=1}),Yr[Hn[13]]=Vn+","+Gn,mt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");Yr[e[1]]=Hn[e[0]]}),mt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){w.units[t]="px"}),Sr.registerPlugin(Jn);var Kn=Sr.registerPlugin(Jn)||Sr;function Qn(t){if(Zn(t)){for(;t&&Zn(t);){t=ti(t).parent}return null!=t?t:null}return t.parentNode}function Zn(t){return 11===t.nodeType}function ti(t,e){var r,n,i;const s=t;return null!==(r=s.parent)&&void 0!==r||(s.parent=null!=e?e:null),null!==(n=s.firstChildNode)&&void 0!==n||(s.firstChildNode=t.firstChild),null!==(i=s.lastChildNode)&&void 0!==i||(s.lastChildNode=t.lastChild),s}Kn.core.Tween;const ei={createElement:function(t,e){return document.createElement(t,e)},createElementNS:function(t,e,r){return document.createElementNS(t,e,r)},createTextNode:function(t){return document.createTextNode(t)},createDocumentFragment:function(){return ti(document.createDocumentFragment())},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,r){if(Zn(t)){let e=t;for(;e&&Zn(e);){e=ti(e).parent}t=null!=e?e:t}Zn(e)&&(e=ti(e,t)),r&&Zn(r)&&(r=ti(r).firstChildNode),t.insertBefore(e,r)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){Zn(e)&&(e=ti(e,t)),t.appendChild(e)},parentNode:Qn,nextSibling:function(t){var e;if(Zn(t)){const r=ti(t),n=Qn(r);if(n&&r.lastChildNode){const t=Array.from(n.childNodes),i=t.indexOf(r.lastChildNode);return null!==(e=t[i+1])&&void 0!==e?e:null}return null}return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},getTextContent:function(t){return t.textContent},isElement:function(t){return 1===t.nodeType},isText:function(t){return 3===t.nodeType},isComment:function(t){return 8===t.nodeType},isDocumentFragment:Zn};function ri(t,e,r,n,i){return{sel:t,data:e,children:r,text:n,elm:i,key:void 0===e?void 0:e.key}}const ni=Array.isArray;function ii(t){return"string"==typeof t||"number"==typeof t||t instanceof String||t instanceof Number}const si=ri("",{},[],void 0,void 0);function oi(t,e){var r,n;const i=t.key===e.key,s=(null===(r=t.data)||void 0===r?void 0:r.is)===(null===(n=e.data)||void 0===n?void 0:n.is),o=t.sel===e.sel,a=!(!t.sel&&t.sel===e.sel)||typeof t.text==typeof e.text;return o&&i&&s&&a}function ai(t,e,r){var n;const i={};for(let s=e;s<=r;++s){const e=null===(n=t[s])||void 0===n?void 0:n.key;void 0!==e&&(i[e]=s)}return i}const ui=["create","update","remove","destroy","pre","post"];function li(t,e,r){if(t.ns="http://www.w3.org/2000/svg","foreignObject"!==r&&void 0!==e)for(let t=0;t<e.length;++t){const r=e[t];if("string"==typeof r)continue;const n=r.data;void 0!==n&&li(n,r.children,r.sel)}}function ci(t,e,r){let n,i,s,o={};if(void 0!==r?(null!==e&&(o=e),ni(r)?n=r:ii(r)?i=r.toString():r&&r.sel&&(n=[r])):null!=e&&(ni(e)?n=e:ii(e)?i=e.toString():e&&e.sel?n=[e]:o=e),void 0!==n)for(s=0;s<n.length;++s)ii(n[s])&&(n[s]=ri(void 0,void 0,void 0,n[s],void 0));return!t.startsWith("svg")||3!==t.length&&"."!==t[3]&&"#"!==t[3]||li(o,n,t),ri(t,o,n,i,void 0)}let hi,fi=t=>{let e=t;const r=new Set,n={get value(){return hi&&hi.deps.push(r.add(hi)),e},set value(t){if(t!==e){e=t;for(const t of r)t()}},peek:()=>e,toJSON:()=>n.value,then:()=>n.value,toString:()=>n.value,valueOf:()=>n.value};return n},di=t=>{let e,r;const n=()=>{e&&e.call(),r=hi,hi=n;try{e=t()}finally{hi=r}};return n.deps=[],n(),()=>{let t;for(e&&e.call();t=n.deps.pop();)t.delete(n)}},pi=t=>{const e=fi();let r;const n={get value(){return r||(r=di(()=>{e.value=t()})),e.value},peek:e.peek,toJSON:()=>n.value,then:()=>n.value,toString:()=>n.value,valueOf:()=>n.value};return n},mi=t=>t(),_i=mi;const gi=Symbol("signals"),vi=Symbol("change"),yi="__",bi=["push","pop","shift","unshift","splice"],wi=(t,e,r)=>{const n=t[e],i=n?.peek();"_"!==e[0]?n?r!==i&&(n._set?n._set(r):Array.isArray(r)&&Array.isArray(i)?i[vi]?mi(()=>{for(let t=0;t<r.length;t++)i[t]=r[t];i.length=r.length}):n.value=r:n.value=Ti(r)):t[e]=r?.peek?r:fi(Ti(r)):t[e]=r},Ti=(t,e)=>{if(!t)return t;if(t[gi]||t[Symbol.toStringTag])return t;if(t.constructor!==Object)return Array.isArray(t)?xi(t):t;const r=Object.create(e?.[gi]||{}),n=fi(Object.keys(t).length);let i;const s=new Proxy(r,{get:(t,e)=>e===vi?n:e===gi?r:e===yi?i:e in r?r[e]?.valueOf():globalThis[e],set(t,e,s){if(e===yi)return i=s,!0;const o=e in r;return wi(r,e,s),o||n.value++,!0},deleteProperty(t,e){const i=r[e];return i&&(i[Symbol.dispose]?.(),delete r[e],n.value--),!0},ownKeys:t=>(n.value,Reflect.ownKeys(r)),has:(t,e)=>!0}),o=Object.getOwnPropertyDescriptors(t);for(const e in t){const n=o[e];if(n?.get){const t=pi(n.get.bind(s));t._set=n.set?.bind(s),r[e]=t}else r[e]=null,wi(r,e,t[e])}return s},xi=t=>{let e;const r=fi(t.length),n=Array(t.length).fill(),i=new Proxy(n,{get:(i,s)=>"symbol"==typeof s?s===vi?r:s===gi?n:n[s]:"length"===s?bi.includes(e)?r.peek():r.value:(e=s,n[s]||(n[s]=fi(Ti(t[s]))),n[s].valueOf()),set(t,e,s){if("length"===e){for(let t=s;t<n.length;t++)delete i[t];return r.value=n.length=s,!0}return wi(n,e,s),e>=r.peek()&&(r.value=n.length=+e+1),!0},deleteProperty:(t,e)=>(n[e]?.[Symbol.dispose]?.(),delete n[e],!0)});return i},ki=t=>{const e=zi(`${t}=${yi}`);return(t,r)=>{t[yi]=r,e(t)}},Ai=Symbol.dispose||=Symbol("dispose"),Oi=Symbol("state"),Si=Symbol("on"),Ci=Symbol("off"),Mi={},Ei={};let Di,Pi=":";const Ri=(t,e,r=zi)=>{Mi[t]=(t,n,i,s)=>{const o=e(t,i,n,s),a=r(n,":"+s);return()=>o(a(i))}},zi=(t,e)=>{const r=t.trim();if(Ei[r])return Ei[r];let n;try{n=Di(r)}catch(t){Ni(t,e,r)}const i=t=>{try{return n(t)}catch(t){Ni(t,e,r)}};return Ei[r]=i,i},Ni=(t,e="",r="")=>{const n=r?`="${r}"\n\n`:"",i=`◆ ${t.message}\n\n${e}${n}`;throw Object.assign(t,{message:i,expr:r})},Fi=(t,e=t.attributes,r,n,i)=>{if(!e)return;let s=0;for(;s<e.length;){const o=e[s],{name:a,value:u}=o;if(a.startsWith(Pi)){t.removeAttribute(a);const e=a.slice(Pi.length).split(":");for(const s of e){const e=(Mi[s]||Mi.default)(t,u,r,s);if(n.push(e),i.push(di(e)),null===t[Oi])return}}else s++}for(const e of t.childNodes)1===e.nodeType&&Fi(e,e.attributes,r,n,i)},Li=(t=document.body,e)=>{if(t[Oi])return Object.assign(t[Oi],e);const r=Ti(e||{}),n=[],i=[];return Fi(t,t.attributes,r,i,n),Oi in t||(t[Oi]=r,t[Ci]=()=>{n.forEach(t=>t()),n.length=0},t[Si]=()=>{n.length=0,n.push(...i.map(t=>di(t)))},t[Ai]=()=>{t[Ci](),t[Ci]=null,t[Si]=null,t[Ai]=null,t[Oi]=null}),r};Li.use=t=>{var e;t.signal&&(fi=(e=t).signal,di=e.effect,pi=e.computed,mi=e.batch||mi,_i=e.untracked||_i),t.compile&&(Di=t.compile),t.prefix&&(Pi=t.prefix)};const Bi=t=>{if(!t.nodeType)return t;const e=t.content.cloneNode(!0),r=[...t.attributes],n=document.createTextNode("");e.append(n);const i=[...e.childNodes];return{childNodes:i,content:e,remove(){e.append(...i)},replaceWith(t){t!==n&&(n.before(t),e.append(...i))},attributes:r,removeAttribute(t){const e=r.findIndex(e=>e.name===t);-1!==e&&r.splice(e,1)}}},Ii=Symbol("if");Ri("if",(t,e)=>{const r=document.createTextNode("");let n,i,s,o=t.nextElementSibling;return t.replaceWith(r),i=t.content?Bi(t):t,i[Oi]=null,o?.hasAttribute(":else")?(o.removeAttribute(":else"),o.hasAttribute(":if")||(o.remove(),s=o.content?Bi(o):o,s[Oi]=null)):o=null,(a,u=(t[Ii]?null:a?i:s))=>{o&&(o[Ii]=t[Ii]||u==i),n!=u&&(n&&(n.remove(),n[Ci]?.()),(n=u)&&(r.before(n.content||n),null===n[Oi]?(delete n[Oi],Li(n,e)):n[Si]()))}}),Ri("each",(t,e,r)=>{const[n,i="$"]=r.split(/\bin\b/)[0].trim().split(/\s*,\s*/),s=document.createTextNode("");let o,a,u,l=0;const c=()=>{const r=u,c=r.length;let h=0;if(o&&!o[vi]){for(const t of o[gi]||[])t[Symbol.dispose]();o=null,l=0}if(c<l)o.length=c;else{if(o)for(;h<l;)o[h]=r[h],h++;else o=r;for(;h<c;h++){o[h]=r[h];const u=h,l=Ti({[n]:o[gi]?.[u]||o[u],[i]:a?a[u]:u},e),c=t.content?Bi(t):t.cloneNode(!0);s.before(c.content||c),Li(c,l);const f=((o[gi]||=[])[h]||={})[Symbol.dispose];o[gi][h][Symbol.dispose]=()=>{f?.(),c[Symbol.dispose]?.(),c.remove()}}}l=c};return t.replaceWith(s),t[Oi]=null,t=>{a=null,"number"==typeof t?u=Array.from({length:t},(t,e)=>e+1):t?.constructor===Object?(a=Object.keys(t),u=Object.values(t)):u=t||[];let e=0;return di(()=>{u[vi],e++||(c(),queueMicrotask(()=>{e>1&&c(),e=0}))})}},t=>zi(t.split(/\bin\b/)[1])),Ri("ref",(t,e,r)=>"function"==typeof zi(r)(e)?e=>e?.call(null,t):(ki(r)(e,t),t=>t)),Ri("with",(t,e)=>{let r;return n=>{r?Li(t,n):_i(()=>{r=Ti(n,e),Li(t,r)})}}),Ri("text",t=>{if(t.content){const e=Bi(t).childNodes[0];t.replaceWith(e),t=e}return e=>{t.textContent=e??""}}),Ri("class",t=>{let e=new Set;return r=>{const n=new Set;r&&("string"==typeof r?r.split(" ").forEach(t=>n.add(t)):Array.isArray(r)?r.forEach(t=>t&&n.add(t)):Object.entries(r).forEach(([t,e])=>e&&n.add(t)));for(const r of e)n.has(r)?n.delete(r):t.classList.remove(r);for(const e of n)t.classList.add(e);e=n}}),Ri("style",t=>{const e=t.getAttribute("style")||"";return r=>{if("string"==typeof r){const n=e&&!e.trim().endsWith(";"),i=e+(e&&n?"; ":"")+r;return void t.setAttribute("style",i)}e&&t.setAttribute("style",e);for(const e in r){const n=r[e];e.startsWith("-")?t.style.setProperty(e,n):t.style[e]=n}}}),Ri("default",(t,e,r,n)=>{if(!n.startsWith("on"))return n?e=>Wi(t,n,e):e=>{for(const r in e)Wi(t,Ui(r),e[r])};const i=n.split("..").map(e=>function(t,e){const r={evt:"",target:e,test:()=>!0};return r.evt=(t.startsWith("on")?t.slice(2):t).replace(/\.(\w+)?-?([-\w]+)?/g,(t,e,n="")=>(r.test=qi[e]?.(r,...n.split("-"))||r.test,"")),r}(e,t)),s=(t,r)=>{const{evt:n,target:i,test:s,defer:o,stop:a,prevent:u,immediate:l,...c}=r,h=r=>{try{if(!s(r))return;a&&(l?r.stopImmediatePropagation():r.stopPropagation()),u&&r.preventDefault(),t?.call(e,r)}catch(e){Ni(e,`:on${n}`,t)}},f=o?o(h):h;return i.addEventListener(n,f,c),()=>i.removeEventListener(n,f,c)};if(1===i.length)return t=>s(t,i[0]);let o,a,u,l=0;const c=t=>{u=s(e=>{u(),a=t?.(e),l=(l+1)%i.length,l?c(a):o&&c(o)},i[l])};return t=>(o=t,u||c(o),()=>{o=null})});const qi={prevent(t){t.prevent=!0},stop(t){t.stop=!0},immediate(t){t.immediate=!0},once(t){t.once=!0},passive(t){t.passive=!0},capture(t){t.capture=!0},window(t){t.target=window},document(t){t.target=document},parent(t){t.target=t.target.parentNode},throttle(t,e=108){t.defer=t=>$i(t,e)},debounce(t,e=108){t.defer=t=>Yi(t,e)},outside:t=>e=>{const r=t.target;return!r.contains(e.target)&&(!1!==e.target.isConnected&&!(r.offsetWidth<1&&r.offsetHeight<1))},self:t=>e=>e.target===t.target,ctrl:(t,...e)=>t=>ji.ctrl(t)&&e.every(e=>ji[e]?ji[e](t):t.key===e),shift:(t,...e)=>t=>ji.shift(t)&&e.every(e=>ji[e]?ji[e](t):t.key===e),alt:(t,...e)=>t=>ji.alt(t)&&e.every(e=>ji[e]?ji[e](t):t.key===e),meta:(t,...e)=>t=>ji.meta(t)&&e.every(e=>ji[e]?ji[e](t):t.key===e),arrow:()=>ji.arrow,enter:()=>ji.enter,esc:()=>ji.esc,tab:()=>ji.tab,space:()=>ji.space,delete:()=>ji.delete,digit:()=>ji.digit,letter:()=>ji.letter,char:()=>ji.char},ji={ctrl:t=>t.ctrlKey||"Control"===t.key||"Ctrl"===t.key,shift:t=>t.shiftKey||"Shift"===t.key,alt:t=>t.altKey||"Alt"===t.key,meta:t=>t.metaKey||"Meta"===t.key||"Command"===t.key,arrow:t=>t.key.startsWith("Arrow"),enter:t=>"Enter"===t.key,esc:t=>t.key.startsWith("Esc"),tab:t=>"Tab"===t.key,space:t=>" "===t.key||"Space"===t.key||" "===t.key,delete:t=>"Delete"===t.key||"Backspace"===t.key,digit:t=>/^\d$/.test(t.key),letter:t=>/^\p{L}$/gu.test(t.key),char:t=>/^\S$/.test(t.key)},$i=(t,e)=>{let r=!1,n=!1;const i=s=>{r=!0,setTimeout(()=>{r=!1,n&&(n=!1,i(s),t(s))},e)};return e=>{if(!r)return i(e),t(e);n=!0}},Yi=(t,e)=>{let r;return n=>{clearTimeout(r),r=setTimeout(()=>{r=null,t(n)},e)}},Wi=(t,e,r)=>{null==r||!1===r?t.removeAttribute(e):t.setAttribute(e,!0===r?"":"number"==typeof r||"string"==typeof r?r:"")},Ui=t=>t.replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,(t,e)=>(e?"-":"")+t.toLowerCase());Ri("value",(t,e,r)=>{const n=t.type||"",i=t.tagName,s=e=>{const r=e??"";t.value=r,t.setAttribute("value",r)},o=t=>s(t),a=e=>{const r=t.selectionStart,n=t.selectionEnd;s(e),r&&t.setSelectionRange(r,n)},u=e=>{t.checked=e,Wi(t,"checked",e)},l=e=>{t.value===e&&(t.checked=e,Wi(t,"checked",e))},c=e=>{for(const r of t.options)r.value==e?r.setAttribute("selected",""):r.removeAttribute("selected");t.value=e},h=e=>{for(const e of t.options)e.removeAttribute("selected");for(const r of e)t.querySelector(`[value="${r}"]`)?.setAttribute("selected","")},f=e=>{t.value=e},d=(()=>{if("TEXTAREA"===i)return a;switch(n){case"text":case"":return o;case"checkbox":return u;case"radio":return l;case"select-one":return c;case"select-multiple":return h;default:return f}})();try{const i=ki(r),s="checkbox"===n?()=>i(e,t.checked):"select-multiple"===n?()=>i(e,[...t.selectedOptions].map(t=>t.value)):()=>i(e,t.selectedIndex<0?null:t.value);t.oninput=t.onchange=s,n?.startsWith("select")&&(new MutationObserver(s).observe(t,{childList:!0,subtree:!0,attributes:!0}),Li(t,e)),zi(r)(e)??s()}catch{}return d}),Ri("fx",t=>t=>t),Ri("aria",t=>e=>{for(const r in e){const n=e[r];Wi(t,`aria-${Ui(r)}`,null==n?null:String(n))}}),Ri("data",t=>e=>{for(const r in e)t.dataset[r]=e[r]}),Li.use({compile:t=>Li.constructor(`with (arguments[0]) { return ${t} };`)});const Xi=Symbol("persist"),Vi=t=>{try{return JSON.stringify(t,(t,e)=>{if("function"!=typeof e&&(!e||"object"!=typeof e||e.constructor===Object||Array.isArray(e)))return e})}catch{return"{}"}},Gi=t=>{try{return JSON.parse(t)}catch{return{}}},Hi=(t,e,r={})=>{const n={key:e,storage:globalThis.localStorage,paths:null,debounce:0,serializer:Vi,deserializer:Gi,...r};if(!(t=>{try{const e="__storage_test__";return t.setItem(e,"test"),t.removeItem(e),!0}catch{return!1}})(n.storage))return console.warn(`persistence: ${n.storage===globalThis.localStorage?"localStorage":"storage"} is not available`),()=>{};let i=!1;const s=((t,e)=>{let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>t(...n),e)}})(()=>{if(!i)try{const e=((t,e)=>{const r={};if(e)for(const n of e)n in t&&(r[n]=t[n]);else{const e=t[gi];for(const n in e){const i=e[n];i&&!i._set&&"_"!==n[0]&&(r[n]=t[n])}}return r})(t,n.paths),r=n.serializer(e);n.storage.setItem(n.key,r)}catch(t){console.warn("persistence: failed to save state",t)}},n.debounce),o=()=>{try{const e=n.storage.getItem(n.key);if(!e)return;const r=n.deserializer(e);if(!r||"object"!=typeof r)return;i=!0;for(const e in r)e in t[gi]&&!t[gi][e]?._set&&(t[e]=r[e]);i=!1}catch(t){console.warn("persistence: failed to restore state",t),i=!1}};o();const a=di(()=>{if(n.paths)for(const e of n.paths)t[e];else{const e=t[gi];for(const r in e){const n=e[r];n&&!n._set&&"_"!==r[0]&&t[r]}}s()});return t[Xi]={config:n,saveState:s,restoreState:o},a},Ji=new Map,Ki={store:(t,e,r={})=>{if(void 0!==e){const n=Ti(e);if(Ji.set(t,n),!0===r||r.persist){const e=!0===r?{}:{...r};delete e.persist,((t,e,r={})=>{!0===r&&(r={}),Hi(t,e,r)})(n,t,e)}return n}const n=Ji.get(t);return n||(console.warn(`store "${t}" not found`),{})}};async function Qi(t){const e=t.querySelector("script[r-mod]"),r=t.querySelector("[r-scope]");if(!e)return;if(!r)return void console.warn("r-mod found but no r-scope element in container");t.querySelectorAll("[r-scope]").length>1&&console.warn("multiple r-scope elements found, using first one only");const n=e.textContent.trim();if(!n)return;const i=await async function(t){try{const e=`\nconst sprae = window._riftSprae;\nconst { signal, effect, computed } = window._riftSignal;\nconst store = window._riftStore;\nconst r = window.r;\n\n${t}\n`,r=`data:text/javascript;charset=utf-8,${encodeURIComponent(e)}#${Date.now()}`,n=await import(r),i={};for(const[t,e]of Object.entries(n))"default"!==t&&(i[t]=e);return i}catch(t){return console.error("module evaluation error:",t),{}}}(n),s=Li(r,i);return e.remove(),s}async function Zi(t){await Qi(t)}window.signal=fi,window.r=Ki;const ts=function(t){const e={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=ei;for(const r of ui)for(const n of t){const t=n[r];void 0!==t&&e[r].push(t)}function n(t){const e=t.id?"#"+t.id:"",n=t.getAttribute("class"),i=n?"."+n.split(" ").join("."):"";return ri(r.tagName(t).toLowerCase()+e+i,{},[],void 0,t)}function i(t){return ri(void 0,{},[],void 0,t)}function s(t,e){return function(){if(0===--e){const e=r.parentNode(t);null!==e&&r.removeChild(e,t)}}}function o(t,n){var i,s,a;let u;const l=t.data,c=null==l?void 0:l.hook;null===(i=null==c?void 0:c.init)||void 0===i||i.call(c,t);const h=t.children,f=t.sel;if("!"===f)null!==(s=t.text)&&void 0!==s||(t.text=""),t.elm=r.createComment(t.text);else if(""===f)t.elm=r.createTextNode(t.text);else if(void 0!==f){const i=f.indexOf("#"),s=f.indexOf(".",i),d=i>0?i:f.length,p=s>0?s:f.length,m=-1!==i||-1!==s?f.slice(0,Math.min(d,p)):f,_=null==l?void 0:l.ns,g=void 0===_?r.createElement(m,l):r.createElementNS(_,m,l);for(t.elm=g,d<p&&g.setAttribute("id",f.slice(d+1,p)),s>0&&g.setAttribute("class",f.slice(p+1).replace(/\./g," ")),u=0;u<e.create.length;++u)e.create[u](si,t);if(!ii(t.text)||ni(h)&&0!==h.length||r.appendChild(g,r.createTextNode(t.text)),ni(h))for(u=0;u<h.length;++u){const t=h[u];null!=t&&r.appendChild(g,o(t,n))}void 0!==c&&(null===(a=c.create)||void 0===a||a.call(c,si,t),void 0!==c.insert&&n.push(t))}else t.elm=r.createTextNode(t.text);return t.elm}function a(t,e,n,i,s,a){for(;i<=s;++i){const s=n[i];null!=s&&r.insertBefore(t,o(s,a),e)}}function u(t){var r,n;const i=t.data;if(void 0!==i){null===(n=null===(r=null==i?void 0:i.hook)||void 0===r?void 0:r.destroy)||void 0===n||n.call(r,t);for(let r=0;r<e.destroy.length;++r)e.destroy[r](t);if(void 0!==t.children)for(let e=0;e<t.children.length;++e){const r=t.children[e];null!=r&&"string"!=typeof r&&u(r)}}}function l(t,n,i,o){for(var a,c;i<=o;++i){let o;const h=n[i];if(null!=h)if(void 0!==h.sel){u(h),o=e.remove.length+1;const t=s(h.elm,o);for(let r=0;r<e.remove.length;++r)e.remove[r](h,t);const r=null===(c=null===(a=null==h?void 0:h.data)||void 0===a?void 0:a.hook)||void 0===c?void 0:c.remove;void 0!==r?r(h,t):t()}else h.children?(u(h),l(t,h.children,0,h.children.length-1)):r.removeChild(t,h.elm)}}function c(t,n,i){var s,u,h,f,d,p,m,_;const g=null===(s=n.data)||void 0===s?void 0:s.hook;null===(u=null==g?void 0:g.prepatch)||void 0===u||u.call(g,t,n);const v=n.elm=t.elm;if(t===n)return;if(void 0!==n.data||void 0!==n.text&&n.text!==t.text){null!==(h=n.data)&&void 0!==h||(n.data={}),null!==(f=t.data)&&void 0!==f||(t.data={});for(let r=0;r<e.update.length;++r)e.update[r](t,n);null===(m=null===(p=null===(d=n.data)||void 0===d?void 0:d.hook)||void 0===p?void 0:p.update)||void 0===m||m.call(p,t,n)}const y=t.children,b=n.children;void 0===n.text?void 0!==y&&void 0!==b?y!==b&&function(t,e,n,i){let s,u,h,f,d=0,p=0,m=e.length-1,_=e[0],g=e[m],v=n.length-1,y=n[0],b=n[v];for(;d<=m&&p<=v;)null==_?_=e[++d]:null==g?g=e[--m]:null==y?y=n[++p]:null==b?b=n[--v]:oi(_,y)?(c(_,y,i),_=e[++d],y=n[++p]):oi(g,b)?(c(g,b,i),g=e[--m],b=n[--v]):oi(_,b)?(c(_,b,i),r.insertBefore(t,_.elm,r.nextSibling(g.elm)),_=e[++d],b=n[--v]):oi(g,y)?(c(g,y,i),r.insertBefore(t,g.elm,_.elm),g=e[--m],y=n[++p]):(void 0===s&&(s=ai(e,d,m)),u=s[y.key],void 0===u?(r.insertBefore(t,o(y,i),_.elm),y=n[++p]):void 0===s[b.key]?(r.insertBefore(t,o(b,i),r.nextSibling(g.elm)),b=n[--v]):(h=e[u],h.sel!==y.sel?r.insertBefore(t,o(y,i),_.elm):(c(h,y,i),e[u]=void 0,r.insertBefore(t,h.elm,_.elm)),y=n[++p]));p<=v&&(f=null==n[v+1]?null:n[v+1].elm,a(t,f,n,p,v,i)),d<=m&&l(t,e,d,m)}(v,y,b,i):void 0!==b?(void 0!==t.text&&r.setTextContent(v,""),a(v,null,b,0,b.length-1,i)):void 0!==y?l(v,y,0,y.length-1):void 0!==t.text&&r.setTextContent(v,""):t.text!==n.text&&(void 0!==y&&l(v,y,0,y.length-1),r.setTextContent(v,n.text)),null===(_=null==g?void 0:g.postpatch)||void 0===_||_.call(g,t,n)}return function(t,s){let a,u,h;const f=[];for(a=0;a<e.pre.length;++a)e.pre[a]();for(!function(t,e){return t.isElement(e)}(r,t)?function(t,e){return t.isDocumentFragment(e)}(r,t)&&(t=i(t)):t=n(t),oi(t,s)?c(t,s,f):(u=t.elm,h=r.parentNode(u),o(s,f),null!==h&&(r.insertBefore(h,s.elm,r.nextSibling(u)),l(h,[t],0,0))),a=0;a<f.length;++a)f[a].data.hook.insert(f[a]);for(a=0;a<e.post.length;++a)e.post[a]();return s}}([t,e]);function es(t){const e=[],r=t.replace(/:([^/]+)/g,(t,r)=>(e.push(r),"([^/]+)"));return{regex:new RegExp(`^${r}$`),keys:e}}function rs(t,e){for(const r of e){const{regex:e,keys:n}=es(r.path),i=t.match(e);if(i){const t={};return n.forEach((e,r)=>t[e]=i[r+1]),{route:r,params:t}}}return null}function ns(t,e){const r=[],n=t.split("/").filter(Boolean);for(let t=1;t<n.length;t++){const i=`/${n.slice(0,t).join("/")}`;for(const t of e){const{regex:e,keys:n}=es(t.path),s=i.match(e);if(s){const e={};n.forEach((t,r)=>e[t]=s[r+1]),r.push({route:t,params:e});break}}}return r}function is(t){if(3===t.nodeType)return t.textContent;if(1===t.nodeType){const e={};return t.attributes&&(e.attrs={},Array.from(t.attributes).forEach(t=>{e.attrs[t.name]=t.value})),ci(t.tagName.toLowerCase(),e,Array.from(t.childNodes).map(t=>is(t)))}return null}async function ss(t,e,r,n,i=!1,s=!1){let o="function"==typeof e?e({}):e;n&&(o={...o,dataset:n});const a=await fetch(`/templates/${t}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)}).then(t=>t.text());if(s){const t=document.createElement("div");t.innerHTML=a;const e=Array.from(t.querySelectorAll("script")),n=e.map(t=>({element:t,src:t.src,content:t.textContent,attrs:Array.from(t.attributes).reduce((t,e)=>(t[e.name]=e.value,t),{})}));e.forEach(t=>t.remove());const i=ci("div",{},Array.from(t.firstChild.childNodes).map(t=>is(t))),s=r.__snabbdomVNode||is(r);r.__snabbdomVNode=ts(s,i),n.forEach(({src:t,content:e,attrs:n})=>{const i=document.createElement("script");Object.entries(n).forEach(([t,e])=>{i.setAttribute(t,e)}),t?i.src=t:i.textContent=e,r.appendChild(i)})}else r.innerHTML=a,delete r.__snabbdomVNode;await Zi(r),await hs(r,i),await us(r,i)}async function os(t,e){if(e)return new Promise(r=>{requestAnimationFrame(()=>{const n={...e,from:void 0};n.onComplete=r,e.from?Kn.fromTo(t,e.from,n):Kn.to(t,n)})})}function as(t){try{return JSON.parse(t)}catch(e){try{return Function(`"use strict"; return (${t})`)()}catch(t){throw new Error("invalid JSON syntax")}}}async function us(t,e=!1){if(e)return;const r=[];if(t.hasAttribute("r-transition-stagger-in"))try{const e=as(t.getAttribute("r-transition-stagger-in")),n=Array.from(t.children);n.length>0&&(Kn.set(n,e.from||{}),r.push(os(n,e)))}catch(t){console.warn("invalid transition data on container stagger element:",t)}const n=t.querySelectorAll("[r-transition-stagger-in]");for(const t of n)try{const e=as(t.getAttribute("r-transition-stagger-in")),n=Array.from(t.children);n.length>0&&(Kn.set(n,e.from||{}),r.push(os(n,e)))}catch(t){console.warn("invalid transition data on stagger element:",t)}if(t.hasAttribute("r-transition-in"))try{const e=as(t.getAttribute("r-transition-in"));Kn.set(t,e.from||{}),r.push(os(t,e))}catch(t){console.warn("invalid transition data on container element:",t)}const i=t.querySelectorAll("[r-transition-in]");for(const t of i){const e=t.closest("[r-transition-stagger-in]");if(!e||e===t)try{const e=as(t.getAttribute("r-transition-in"));Kn.set(t,e.from||{}),r.push(os(t,e))}catch(t){console.warn("invalid transition data on element:",t)}}Promise.all(r)}function ls(t){const e=[];if(t.hasAttribute("r-transition-stagger-in")){const r=as(t.getAttribute("r-transition-stagger-in")),n=Array.from(t.children);n.length>0&&(e.push({type:"stagger",elements:n,transition:r}),Kn.set(n,r.from||{})),t.removeAttribute("r-transition-stagger-in")}if(t.hasAttribute("r-transition-in")){const r=as(t.getAttribute("r-transition-in"));e.push({type:"individual",elements:t,transition:r}),Kn.set(t,r.from||{}),t.removeAttribute("r-transition-in")}return e}function cs(t){for(const{elements:e,transition:r}of t)os(e,r)}async function hs(t,e=!1){const r=t.querySelectorAll("[r-tpl]");for(const t of r){const r=t.getAttribute("r-tpl"),n=t.getAttribute("r-tpl-props"),i=t.getAttribute("r-dataset");let s=n?as(n):{};i&&(s={...s,dataset:i});const o=await fetch(`/templates/${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}).then(t=>t.text());t.innerHTML=o,await Zi(t),await hs(t,e),await us(t,e)}}function fs(t){const e={},r=new URLSearchParams(t);for(const[t,n]of r)e[t]=n;return e}function ds(t){let e=null;async function r({path:r,initial:n=!1,linkProps:i=null,linkTarget:s=null,linkDataset:o=null}){const[a,u=""]=r.split("?"),l=rs(a,t);if(!l)return console.error("rift: route not found:",a);const{route:c,params:h}=l,f=fs(u);let d;if(n&&document.body.classList.add("loading"),c.renders)d=c.renders;else{const n=ns(r,t),i={template:c.template,props:c.props,target:c.target};d=[...n.filter(({route:t})=>!e||!e.startsWith(`${t.path}/`)&&e!==t.path).map(({route:t,params:e})=>({template:t.template,props:t.props,target:t.target,dataset:t.dataset,params:e,skipTransition:!1})),...n.filter(({route:t})=>e?.startsWith(`${t.path}/`)).map(({route:t,params:e})=>({template:t.template,props:t.props,target:t.target,dataset:t.dataset,params:e,skipTransition:!0})),{...i,skipTransition:!1}]}for(const t of d){const e=t.params||h;let r="function"==typeof t.props?t.props(e,f):t.props;i&&(r={...r,...i});const a=s&&document.querySelector(s)||t.target&&document.querySelector(t.target)||document.getElementById("main"),u=o||t.dataset||c.dataset;a.id,Kn.killTweensOf(a),Kn.set(a,{clearProps:"all"}),a.classList.add("loading"),await ss(t.template,r,a,u,n||t.skipTransition,c.diff||!1),a.classList.remove("loading")}n&&document.body.classList.remove("loading"),e=r,n=!1,window.dispatchEvent(new CustomEvent("navigate"))}return{navigate:r,init:function(){document.addEventListener("click",t=>{const e=t.target.closest("[r-link]");if(!e)return;t.preventDefault();const n=e.getAttribute("href"),i=e.getAttribute("r-dataset"),s=e.getAttribute("r-dataset-props"),o=e.getAttribute("r-target");history.pushState({},"",n),window.dispatchEvent(new CustomEvent("navigate")),r({path:n,linkProps:s?as(s):null,linkDataset:i,linkTarget:o})}),window.addEventListener("popstate",()=>r({path:location.pathname+location.search}))},hydrateNestedTemplates:hs,processElementTransitions:us,captureGlobalTransitions:ls,runGlobalTransitions:cs,refresh:async(e={})=>{const r=async()=>{const{path:r=location.pathname+location.search,parents:n=!1}=e,[i,s=""]=r.split("?"),o=rs(i,t);if(!o)return console.error("rift: route not found:",i);const{route:a,params:u}=o,l=fs(s);if(n){const e=[...ns(r,t),{route:a,params:u}],n=new Set;for(let t=e.length-1;t>=0;t--){const r=e[t].route.target||"#main";if(!n.has(r)&&(n.add(r),t<e.length-1)){const{route:n,params:i}=e[t],s=document.querySelector(r)||document.getElementById("main"),o="function"==typeof n.props?n.props(i,l):n.props;await ss(n.template,o,s,n.dataset,!0)}}}const c=document.querySelector(a.target)||document.getElementById("main"),h="function"==typeof a.props?a.props(u,l):a.props;await ss(a.template,h,c,a.dataset,!0)};document.startViewTransition?document.startViewTransition(r):await r()},refreshTemplate:async(e,r={})=>{const n=[];document.querySelectorAll(`[r-tpl="${e}"]`).forEach(t=>{n.push(async()=>{const n=await fetch(`/templates/${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!n.ok)return console.error("failed to fetch template:",e);const i=await n.text();t.innerHTML=i,await Zi(t)})});if(t.filter(t=>t.template===e).forEach(t=>{const e=document.querySelector(t.target)||document.getElementById("main");e&&n.push(async()=>{const r=location.pathname+location.search,n=rs(r,[t]);if(n){const{params:i}=n,[,s=""]=r.split("?"),o=fs(s),a="function"==typeof t.props?t.props(i,o):t.props;await ss(t.template,a,e,t.dataset,!0)}})}),0===n.length)return console.error("no templates found with name:",e);const i=async()=>{await Promise.all(n.map(t=>t()))};document.startViewTransition?document.startViewTransition(i):await i()}}}function ps(){document.addEventListener("mousedown",t=>{const e=t.target.closest(".ripple");if(!e)return;const r=document.createElement("span");r.classList.add("ripple-effect");const n=Math.max(e.clientWidth,e.clientHeight);r.style.width=r.style.height=`${n}px`;const i=e.getBoundingClientRect();r.style.left=t.clientX-i.left-n/2+"px",r.style.top=t.clientY-i.top-n/2+"px",e.appendChild(r),r.addEventListener("animationend",()=>r.remove())})}function ms(t){window._riftRouter=t,document.addEventListener("DOMContentLoaded",async function(){const e=t.captureGlobalTransitions(document.body);await t.hydrateNestedTemplates(document.body,!0),await t.navigate({path:location.pathname+location.search,initial:!0}),document.body.classList.remove("loading"),e.length>0&&requestAnimationFrame(()=>{t.runGlobalTransitions(e)})}),t.init()}function _s(t){const e=ds(t);ps(),ms(e)}window._riftSprae=Li,window._riftSignal={signal:fi,effect:di,computed:pi},window._riftStore=Ti,window.r=Ki;export{ds as createRouter,_s as default,ps as initRipple,ms as mount,Ki as r,Ti as store};
18
+ var Or,Sr,Cr,Mr,Er,Dr,Pr,Nr,Rr={},zr=180/Math.PI,Lr=Math.PI/180,Fr=Math.atan2,Br=/([A-Z])/g,Ir=/(left|right|width|margin|padding|x)/i,qr=/[\s,\(]\S/,jr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},$r=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Yr=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Wr=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},Xr=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},Ur=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Vr=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},Hr=function(t,e,r){return t.style[e]=r},Gr=function(t,e,r){return t.style.setProperty(e,r)},Jr=function(t,e,r){return t._gsap[e]=r},Kr=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},Qr=function(t,e,r,n,i){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(i,s)},Zr=function(t,e,r,n,i){var s=t._gsap;s[e]=r,s.renderTransform(i,s)},tn="transform",en=tn+"Origin",rn=function t(e,r){var n=this,i=this.target,s=i.style,o=i._gsap;if(e in Rr&&s){if(this.tfm=this.tfm||{},"transform"===e)return jr.transform.split(",").forEach(function(e){return t.call(n,e,r)});if(~(e=jr[e]||e).indexOf(",")?e.split(",").forEach(function(t){return n.tfm[t]=wn(i,t)}):this.tfm[e]=o.x?o[e]:wn(i,e),e===en&&(this.tfm.zOrigin=o.zOrigin),this.props.indexOf(tn)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(en,r,"")),e=tn}(s||r)&&this.props.push(e,r,s[e])},nn=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},sn=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(Br,"-$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=Pr())&&t.isStart||i[tn]||(nn(i),s.zOrigin&&i[en]&&(i[en]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},on=function(t,e){var r={target:t,props:[],revert:sn,save:rn};return t._gsap||Ar.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(t){return r.save(t)}),r},an=function(t,e){var r=Sr.createElementNS?Sr.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Sr.createElement(t);return r&&r.style?r:Sr.createElement(t)},un=function t(e,r,n){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(Br,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&t(e,cn(r)||r,1)||""},ln="O,Moz,ms,Ms,Webkit".split(","),cn=function(t,e,r){var n=(e||Er).style,i=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(ln[i]+t in n););return i<0?null:(3===i?"ms":i>=0?ln[i]:"")+t},hn=function(){"undefined"!=typeof window&&window.document&&(Or=window,Sr=Or.document,Cr=Sr.documentElement,Er=an("div")||{style:{}},an("div"),tn=cn(tn),en=tn+"Origin",Er.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Nr=!!cn("perspective"),Pr=Ar.core.reverting,Mr=1)},fn=function(t){var e,r=t.ownerSVGElement,n=an("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0);i.style.display="block",n.appendChild(i),Cr.appendChild(n);try{e=i.getBBox()}catch(t){}return n.removeChild(i),Cr.removeChild(n),e},dn=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},pn=function(t){var e,r;try{e=t.getBBox()}catch(n){e=fn(t),r=1}return e&&(e.width||e.height)||r||(e=fn(t)),!e||e.width||e.x||e.y?e:{x:+dn(t,["x","cx","x1"])||0,y:+dn(t,["y","cy","y1"])||0,width:0,height:0}},mn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!pn(t))},_n=function(t,e){if(e){var r,n=t.style;e in Rr&&e!==en&&(e=tn),n.removeProperty?("ms"!==(r=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty("--"===r?e:e.replace(Br,"-$1").toLowerCase())):n.removeAttribute(e)}},gn=function(t,e,r,n,i,s){var o=new fr(t._pt,e,r,0,1,s?Vr:Ur);return t._pt=o,o.b=n,o.e=i,t._props.push(r),o},vn={deg:1,rad:1,turn:1},yn={grid:1,flex:1},bn=function t(e,r,n,i){var s,o,a,u,l=parseFloat(n)||0,c=(n+"").trim().substr((l+"").length)||"px",h=Er.style,f=Ir.test(r),d="svg"===e.tagName.toLowerCase(),p=(d?"client":"offset")+(f?"Width":"Height"),m=100,_="px"===i,g="%"===i;if(i===c||!l||vn[i]||vn[c])return l;if("px"!==c&&!_&&(l=t(e,r,n,"px")),u=e.getCTM&&mn(e),(g||"%"===c)&&(Rr[r]||~r.indexOf("adius")))return s=u?e.getBBox()[f?"width":"height"]:e[p],pt(g?l/s*m:l/100*s);if(h[f?"width":"height"]=m+(_?c:i),o="rem"!==i&&~r.indexOf("adius")||"em"===i&&e.appendChild&&!d?e:e.parentNode,u&&(o=(e.ownerSVGElement||{}).parentNode),o&&o!==Sr&&o.appendChild||(o=Sr.body),(a=o._gsap)&&g&&a.width&&f&&a.time===Oe.time&&!a.uncache)return pt(l/a.width*m);if(!g||"height"!==r&&"width"!==r)(g||"%"===c)&&!yn[un(o,"display")]&&(h.position=un(e,"position")),o===e&&(h.position="static"),o.appendChild(Er),s=Er[p],o.removeChild(Er),h.position="absolute";else{var v=e.style[r];e.style[r]=m+i,s=e[p],v?e.style[r]=v:_n(e,r)}return f&&g&&((a=ht(o)).time=Oe.time,a.width=o[p]),pt(_?s*l/m:s&&l?m/s*l:0)},wn=function(t,e,r,n){var i;return Mr||hn(),e in jr&&"transform"!==e&&~(e=jr[e]).indexOf(",")&&(e=e.split(",")[0]),Rr[e]&&"transform"!==e?(i=Nn(t,n),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Rn(un(t,en))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=On[e]&&On[e](t,e,r)||un(t,e)||ft(t,e)||("opacity"===e?1:0)),r&&!~(i+"").trim().indexOf(" ")?bn(t,e,i,r)+r:i},Tn=function(t,e,r,n){if(!r||"none"===r){var i=cn(e,t,1),s=i&&un(t,i,1);s&&s!==r?(e=i,r=s):"borderColor"===e&&(r=un(t,"borderTopColor"))}var o,a,u,l,c,h,f,d,p,m,_,g=new fr(this._pt,t.style,e,0,1,or),v=0,b=0;if(g.b=r,g.e=n,r+="","var(--"===(n+="").substring(0,6)&&(n=un(t,n.substring(4,n.indexOf(")")))),"auto"===n&&(h=t.style[e],t.style[e]=n,n=un(t,e)||n,h?t.style[e]=h:_n(t,e)),Ae(o=[r,n]),n=o[1],u=(r=o[0]).match(j)||[],(n.match(j)||[]).length){for(;a=j.exec(n);)f=a[0],p=n.substring(v,a.index),c?c=(c+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(c=1),f!==(h=u[b++]||"")&&(l=parseFloat(h)||0,_=h.substr((l+"").length),"="===f.charAt(1)&&(f=_t(l,f)+_),d=parseFloat(f),m=f.substr((d+"").length),v=j.lastIndex-m.length,m||(m=m||y.units[e]||_,v===n.length&&(n+=m,g.e+=m)),_!==m&&(l=bn(t,e,h,m)||0),g._pt={_next:g._pt,p:p||1===b?p:",",s:l,c:d-l,m:c&&c<4||"zIndex"===e?Math.round:0});g.c=v<n.length?n.substring(v,n.length):""}else g.r="display"===e&&"none"===n?Vr:Ur;return Y.test(n)&&(g.e=0),this._pt=g,g},xn={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},kn=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]=xn[r]||r,e[1]=xn[n]||n,e.join(" ")},An=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,n,i,s=e.t,o=s.style,a=e.u,u=s._gsap;if("all"===a||!0===a)o.cssText="",n=1;else for(i=(a=a.split(",")).length;--i>-1;)r=a[i],Rr[r]&&(n=1,r="transformOrigin"===r?en:tn),_n(s,r);n&&(_n(s,tn),u&&(u.svg&&s.removeAttribute("transform"),o.scale=o.rotate=o.translate="none",Nn(s,1),u.uncache=1,nn(o)))}},On={clearProps:function(t,e,r,n,i){if("isFromStart"!==i.data){var s=t._pt=new fr(t._pt,e,r,0,0,An);return s.u=n,s.pr=-10,s.tween=i,t._props.push(r),1}}},Sn=[1,0,0,1,0,0],Cn={},Mn=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},En=function(t){var e=un(t,tn);return Mn(e)?Sn:e.substr(7).match(q).map(pt)},Dn=function(t,e){var r,n,i,s,o=t._gsap||ht(t),a=t.style,u=En(t);return o.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(",")?Sn:u:(u!==Sn||t.offsetParent||t===Cr||o.svg||(i=a.display,a.display="block",(r=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(s=1,n=t.nextElementSibling,Cr.appendChild(t)),u=En(t),i?a.display=i:_n(t,"display"),s&&(n?r.insertBefore(t,n):r?r.appendChild(t):Cr.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Pn=function(t,e,r,n,i,s){var o,a,u,l=t._gsap,c=i||Dn(t,!0),h=l.xOrigin||0,f=l.yOrigin||0,d=l.xOffset||0,p=l.yOffset||0,m=c[0],_=c[1],g=c[2],v=c[3],y=c[4],b=c[5],w=e.split(" "),T=parseFloat(w[0])||0,x=parseFloat(w[1])||0;r?c!==Sn&&(a=m*v-_*g)&&(u=T*(-_/a)+x*(m/a)-(m*b-_*y)/a,T=T*(v/a)+x*(-g/a)+(g*b-v*y)/a,x=u):(T=(o=pn(t)).x+(~w[0].indexOf("%")?T/100*o.width:T),x=o.y+(~(w[1]||w[0]).indexOf("%")?x/100*o.height:x)),n||!1!==n&&l.smooth?(y=T-h,b=x-f,l.xOffset=d+(y*m+b*g)-y,l.yOffset=p+(y*_+b*v)-b):l.xOffset=l.yOffset=0,l.xOrigin=T,l.yOrigin=x,l.smooth=!!n,l.origin=e,l.originIsAbsolute=!!r,t.style[en]="0px 0px",s&&(gn(s,l,"xOrigin",h,T),gn(s,l,"yOrigin",f,x),gn(s,l,"xOffset",d,l.xOffset),gn(s,l,"yOffset",p,l.yOffset)),t.setAttribute("data-svg-origin",T+" "+x)},Nn=function(t,e){var r=t._gsap||new Ie(t);if("x"in r&&!e&&!r.uncache)return r;var n,i,s,o,a,u,l,c,h,f,d,p,m,_,g,v,b,w,T,x,k,A,O,S,C,M,E,D,P,N,R,z,L=t.style,F=r.scaleX<0,B="px",I="deg",q=getComputedStyle(t),j=un(t,en)||"0";return n=i=s=u=l=c=h=f=d=0,o=a=1,r.svg=!(!t.getCTM||!mn(t)),q.translate&&("none"===q.translate&&"none"===q.scale&&"none"===q.rotate||(L[tn]=("none"!==q.translate?"translate3d("+(q.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==q.rotate?"rotate("+q.rotate+") ":"")+("none"!==q.scale?"scale("+q.scale.split(" ").join(",")+") ":"")+("none"!==q[tn]?q[tn]:"")),L.scale=L.rotate=L.translate="none"),_=Dn(t,r.svg),r.svg&&(r.uncache?(C=t.getBBox(),j=r.xOrigin-C.x+"px "+(r.yOrigin-C.y)+"px",S=""):S=!e&&t.getAttribute("data-svg-origin"),Pn(t,S||j,!!S||r.originIsAbsolute,!1!==r.smooth,_)),p=r.xOrigin||0,m=r.yOrigin||0,_!==Sn&&(w=_[0],T=_[1],x=_[2],k=_[3],n=A=_[4],i=O=_[5],6===_.length?(o=Math.sqrt(w*w+T*T),a=Math.sqrt(k*k+x*x),u=w||T?Fr(T,w)*zr:0,(h=x||k?Fr(x,k)*zr+u:0)&&(a*=Math.abs(Math.cos(h*Lr))),r.svg&&(n-=p-(p*w+m*x),i-=m-(p*T+m*k))):(z=_[6],N=_[7],E=_[8],D=_[9],P=_[10],R=_[11],n=_[12],i=_[13],s=_[14],l=(g=Fr(z,P))*zr,g&&(S=A*(v=Math.cos(-g))+E*(b=Math.sin(-g)),C=O*v+D*b,M=z*v+P*b,E=A*-b+E*v,D=O*-b+D*v,P=z*-b+P*v,R=N*-b+R*v,A=S,O=C,z=M),c=(g=Fr(-x,P))*zr,g&&(v=Math.cos(-g),R=k*(b=Math.sin(-g))+R*v,w=S=w*v-E*b,T=C=T*v-D*b,x=M=x*v-P*b),u=(g=Fr(T,w))*zr,g&&(S=w*(v=Math.cos(g))+T*(b=Math.sin(g)),C=A*v+O*b,T=T*v-w*b,O=O*v-A*b,w=S,A=C),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,c=180-c),o=pt(Math.sqrt(w*w+T*T+x*x)),a=pt(Math.sqrt(O*O+z*z)),g=Fr(A,O),h=Math.abs(g)>2e-4?g*zr:0,d=R?1/(R<0?-R:R):0),r.svg&&(S=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!Mn(un(t,tn)),S&&t.setAttribute("transform",S))),Math.abs(h)>90&&Math.abs(h)<270&&(F?(o*=-1,h+=u<=0?180:-180,u+=u<=0?180:-180):(a*=-1,h+=h<=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=pt(o),r.scaleY=pt(a),r.rotation=pt(u)+I,r.rotationX=pt(l)+I,r.rotationY=pt(c)+I,r.skewX=h+I,r.skewY=f+I,r.transformPerspective=d+B,(r.zOrigin=parseFloat(j.split(" ")[2])||!e&&r.zOrigin||0)&&(L[en]=Rn(j)),r.xOffset=r.yOffset=0,r.force3D=y.force3D,r.renderTransform=r.svg?jn:Nr?qn:Ln,r.uncache=0,r},Rn=function(t){return(t=t.split(" "))[0]+" "+t[1]},zn=function(t,e,r){var n=Qt(e);return pt(parseFloat(e)+parseFloat(bn(t,"x",r+"px",n)))+n},Ln=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,qn(t,e)},Fn="0deg",Bn="0px",In=") ",qn=function(t,e){var r=e||this,n=r.xPercent,i=r.yPercent,s=r.x,o=r.y,a=r.z,u=r.rotation,l=r.rotationY,c=r.rotationX,h=r.skewX,f=r.skewY,d=r.scaleX,p=r.scaleY,m=r.transformPerspective,_=r.force3D,g=r.target,v=r.zOrigin,y="",b="auto"===_&&t&&1!==t||!0===_;if(v&&(c!==Fn||l!==Fn)){var w,T=parseFloat(l)*Lr,x=Math.sin(T),k=Math.cos(T);T=parseFloat(c)*Lr,w=Math.cos(T),s=zn(g,s,x*w*-v),o=zn(g,o,-Math.sin(T)*-v),a=zn(g,a,k*w*-v+v)}m!==Bn&&(y+="perspective("+m+In),(n||i)&&(y+="translate("+n+"%, "+i+"%) "),(b||s!==Bn||o!==Bn||a!==Bn)&&(y+=a!==Bn||b?"translate3d("+s+", "+o+", "+a+") ":"translate("+s+", "+o+In),u!==Fn&&(y+="rotate("+u+In),l!==Fn&&(y+="rotateY("+l+In),c!==Fn&&(y+="rotateX("+c+In),h===Fn&&f===Fn||(y+="skew("+h+", "+f+In),1===d&&1===p||(y+="scale("+d+", "+p+In),g.style[tn]=y||"translate(0, 0)"},jn=function(t,e){var r,n,i,s,o,a=e||this,u=a.xPercent,l=a.yPercent,c=a.x,h=a.y,f=a.rotation,d=a.skewX,p=a.skewY,m=a.scaleX,_=a.scaleY,g=a.target,v=a.xOrigin,y=a.yOrigin,b=a.xOffset,w=a.yOffset,T=a.forceCSS,x=parseFloat(c),k=parseFloat(h);f=parseFloat(f),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),f+=p),f||d?(f*=Lr,d*=Lr,r=Math.cos(f)*m,n=Math.sin(f)*m,i=Math.sin(f-d)*-_,s=Math.cos(f-d)*_,d&&(p*=Lr,o=Math.tan(d-p),i*=o=Math.sqrt(1+o*o),s*=o,p&&(o=Math.tan(p),r*=o=Math.sqrt(1+o*o),n*=o)),r=pt(r),n=pt(n),i=pt(i),s=pt(s)):(r=m,s=_,n=i=0),(x&&!~(c+"").indexOf("px")||k&&!~(h+"").indexOf("px"))&&(x=bn(g,"x",c,"px"),k=bn(g,"y",h,"px")),(v||y||b||w)&&(x=pt(x+v-(v*r+y*i)+b),k=pt(k+y-(v*n+y*s)+w)),(u||l)&&(o=g.getBBox(),x=pt(x+u/100*o.width),k=pt(k+l/100*o.height)),o="matrix("+r+","+n+","+i+","+s+","+x+","+k+")",g.setAttribute("transform",o),T&&(g.style[tn]=o)},$n=function(t,e,r,n,i){var s,o,a=360,u=M(i),l=parseFloat(i)*(u&&~i.indexOf("rad")?zr:1)-n,c=n+l+"deg";return u&&("short"===(s=i.split("_")[1])&&(l%=a)!==l%180&&(l+=l<0?a:-360),"cw"===s&&l<0?l=(l+36e9)%a-~~(l/a)*a:"ccw"===s&&l>0&&(l=(l-36e9)%a-~~(l/a)*a)),t._pt=o=new fr(t._pt,e,r,n,l,Yr),o.e=c,o.u="deg",t._props.push(r),o},Yn=function(t,e){for(var r in e)t[r]=e[r];return t},Wn=function(t,e,r){var n,i,s,o,a,u,l,c=Yn({},r._gsap),h=r.style;for(i in c.svg?(s=r.getAttribute("transform"),r.setAttribute("transform",""),h[tn]=e,n=Nn(r,1),_n(r,tn),r.setAttribute("transform",s)):(s=getComputedStyle(r)[tn],h[tn]=e,n=Nn(r,1),h[tn]=s),Rr)(s=c[i])!==(o=n[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(a=Qt(s)!==(l=Qt(o))?bn(r,i,s,l):parseFloat(s),u=parseFloat(o),t._pt=new fr(t._pt,n,i,a,u-a,$r),t._pt.u=l||0,t._props.push(i));Yn(n,c)};dt("padding,margin,Width,Radius",function(t,e){var r="Top",n="Right",i="Bottom",s="Left",o=(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});On[e>1?"border"+t:t]=function(t,e,r,n,i){var s,a;if(arguments.length<4)return s=o.map(function(e){return wn(t,e,r)}),5===(a=s.join(" ")).split(s[0]).length?s[0]:a;s=(n+"").split(" "),a={},o.forEach(function(t,e){return a[t]=s[e]=s[e]||s[(e-1)/2|0]}),t.init(e,a,i)}});var Xn,Un,Vn,Hn={name:"css",register:hn,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,n,i){var s,o,a,u,l,c,h,f,d,p,m,_,g,v,b,w,T=this._props,x=t.style,k=r.vars.startAt;for(h in Mr||hn(),this.styles=this.styles||on(t),w=this.styles.props,this.tween=r,e)if("autoRound"!==h&&(o=e[h],!st[h]||!Ue(h,e,r,n,t,i)))if(l=typeof o,c=On[h],"function"===l&&(l=typeof(o=o.call(r,n,t,i))),"string"===l&&~o.indexOf("random(")&&(o=ce(o)),c)c(this,t,h,o,r)&&(b=1);else if("--"===h.substr(0,2))s=(getComputedStyle(t).getPropertyValue(h)+"").trim(),o+="",xe.lastIndex=0,xe.test(s)||(f=Qt(s),d=Qt(o)),d?f!==d&&(s=bn(t,h,s,d)+d):f&&(o+=f),this.add(x,"setProperty",s,o,n,i,0,0,h),T.push(h),w.push(h,0,x[h]);else if("undefined"!==l){if(k&&h in k?(s="function"==typeof k[h]?k[h].call(r,n,t,i):k[h],M(s)&&~s.indexOf("random(")&&(s=ce(s)),Qt(s+"")||"auto"===s||(s+=y.units[h]||Qt(wn(t,h))||""),"="===(s+"").charAt(1)&&(s=wn(t,h))):s=wn(t,h),u=parseFloat(s),(p="string"===l&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),a=parseFloat(o),h in jr&&("autoAlpha"===h&&(1===u&&"hidden"===wn(t,"visibility")&&a&&(u=0),w.push("visibility",0,x.visibility),gn(this,x,"visibility",u?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==h&&"transform"!==h&&~(h=jr[h]).indexOf(",")&&(h=h.split(",")[0])),m=h in Rr)if(this.styles.save(h),"string"===l&&"var(--"===o.substring(0,6)&&(o=un(t,o.substring(4,o.indexOf(")"))),a=parseFloat(o)),_||((g=t._gsap).renderTransform&&!e.parseTransform||Nn(t,e.parseTransform),v=!1!==e.smoothOrigin&&g.smooth,(_=this._pt=new fr(this._pt,x,tn,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===h)this._pt=new fr(this._pt,g,"scaleY",g.scaleY,(p?_t(g.scaleY,p+a):a)-g.scaleY||0,$r),this._pt.u=0,T.push("scaleY",h),h+="X";else{if("transformOrigin"===h){w.push(en,0,x[en]),o=kn(o),g.svg?Pn(t,o,0,v,0,this):((d=parseFloat(o.split(" ")[2])||0)!==g.zOrigin&&gn(this,g,"zOrigin",g.zOrigin,d),gn(this,x,h,Rn(s),Rn(o)));continue}if("svgOrigin"===h){Pn(t,o,1,v,0,this);continue}if(h in Cn){$n(this,g,h,u,p?_t(u,p+o):o);continue}if("smoothOrigin"===h){gn(this,g,"smooth",g.smooth,o);continue}if("force3D"===h){g[h]=o;continue}if("transform"===h){Wn(this,o,t);continue}}else h in x||(h=cn(h)||h);if(m||(a||0===a)&&(u||0===u)&&!qr.test(o)&&h in x)a||(a=0),(f=(s+"").substr((u+"").length))!==(d=Qt(o)||(h in y.units?y.units[h]:f))&&(u=bn(t,h,s,d)),this._pt=new fr(this._pt,m?g:x,h,u,(p?_t(u,p+a):a)-u,m||"px"!==d&&"zIndex"!==h||!1===e.autoRound?$r:Xr),this._pt.u=d||0,f!==d&&"%"!==d&&(this._pt.b=s,this._pt.r=Wr);else if(h in x)Tn.call(this,t,h,s,p?p+o:o);else if(h in t)this.add(t,h,s||t[h],p?p+o:o,n,i);else if("parseTransform"!==h){G(h,o);continue}m||(h in x?w.push(h,0,x[h]):"function"==typeof t[h]?w.push(h,2,t[h]()):w.push(h,1,s||t[h])),T.push(h)}b&&hr(this)},render:function(t,e){if(e.tween._time||!Pr())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:wn,aliases:jr,getSetter:function(t,e,r){var n=jr[e];return n&&n.indexOf(",")<0&&(e=n),e in Rr&&e!==en&&(t._gsap.x||wn(t,"x"))?r&&Dr===r?"scale"===e?Kr:Jr:(Dr=r||{})&&("scale"===e?Qr:Zr):t.style&&!P(t.style[e])?Hr:~e.indexOf("-")?Gr:nr(t,e)},core:{_removeProperty:_n,_getMatrix:Dn}};Ar.utils.checkPrefix=cn,Ar.core.getStyleSaver=on,Vn=dt((Xn="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Un="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){Rr[t]=1}),dt(Un,function(t){y.units[t]="deg",Cn[t]=1}),jr[Vn[13]]=Xn+","+Un,dt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");jr[e[1]]=Vn[e[0]]}),dt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){y.units[t]="px"}),Ar.registerPlugin(Hn);var Gn=Ar.registerPlugin(Hn)||Ar;function Jn(t){if(Kn(t)){for(;t&&Kn(t);){t=Qn(t).parent}return null!=t?t:null}return t.parentNode}function Kn(t){return 11===t.nodeType}function Qn(t,e){var r,n,i;const s=t;return null!==(r=s.parent)&&void 0!==r||(s.parent=null!=e?e:null),null!==(n=s.firstChildNode)&&void 0!==n||(s.firstChildNode=t.firstChild),null!==(i=s.lastChildNode)&&void 0!==i||(s.lastChildNode=t.lastChild),s}Gn.core.Tween;const Zn={createElement:function(t,e){return document.createElement(t,e)},createElementNS:function(t,e,r){return document.createElementNS(t,e,r)},createTextNode:function(t){return document.createTextNode(t)},createDocumentFragment:function(){return Qn(document.createDocumentFragment())},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,r){if(Kn(t)){let e=t;for(;e&&Kn(e);){e=Qn(e).parent}t=null!=e?e:t}Kn(e)&&(e=Qn(e,t)),r&&Kn(r)&&(r=Qn(r).firstChildNode),t.insertBefore(e,r)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){Kn(e)&&(e=Qn(e,t)),t.appendChild(e)},parentNode:Jn,nextSibling:function(t){var e;if(Kn(t)){const r=Qn(t),n=Jn(r);if(n&&r.lastChildNode){const t=Array.from(n.childNodes),i=t.indexOf(r.lastChildNode);return null!==(e=t[i+1])&&void 0!==e?e:null}return null}return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},getTextContent:function(t){return t.textContent},isElement:function(t){return 1===t.nodeType},isText:function(t){return 3===t.nodeType},isComment:function(t){return 8===t.nodeType},isDocumentFragment:Kn};function ti(t,e,r,n,i){return{sel:t,data:e,children:r,text:n,elm:i,key:void 0===e?void 0:e.key}}const ei=Array.isArray;function ri(t){return"string"==typeof t||"number"==typeof t||t instanceof String||t instanceof Number}const ni=ti("",{},[],void 0,void 0);function ii(t,e){var r,n;const i=t.key===e.key,s=(null===(r=t.data)||void 0===r?void 0:r.is)===(null===(n=e.data)||void 0===n?void 0:n.is),o=t.sel===e.sel,a=!(!t.sel&&t.sel===e.sel)||typeof t.text==typeof e.text;return o&&i&&s&&a}function si(t,e,r){var n;const i={};for(let s=e;s<=r;++s){const e=null===(n=t[s])||void 0===n?void 0:n.key;void 0!==e&&(i[e]=s)}return i}const oi=["create","update","remove","destroy","pre","post"];function ai(t,e,r){if(t.ns="http://www.w3.org/2000/svg","foreignObject"!==r&&void 0!==e)for(let t=0;t<e.length;++t){const r=e[t];if("string"==typeof r)continue;const n=r.data;void 0!==n&&ai(n,r.children,r.sel)}}function ui(t,e,r){let n,i,s,o={};if(void 0!==r?(null!==e&&(o=e),ei(r)?n=r:ri(r)?i=r.toString():r&&r.sel&&(n=[r])):null!=e&&(ei(e)?n=e:ri(e)?i=e.toString():e&&e.sel?n=[e]:o=e),void 0!==n)for(s=0;s<n.length;++s)ri(n[s])&&(n[s]=ti(void 0,void 0,void 0,n[s],void 0));return!t.startsWith("svg")||3!==t.length&&"."!==t[3]&&"#"!==t[3]||ai(o,n,t),ti(t,o,n,i,void 0)}function li(t,e){let r;const n=e.elm;let i=t.data.attrs,s=e.data.attrs;if((i||s)&&i!==s){for(r in i=i||{},s=s||{},s){const t=s[r];i[r]!==t&&(!0===t?n.setAttribute(r,""):!1===t?n.removeAttribute(r):120!==r.charCodeAt(0)?n.setAttribute(r,t):58===r.charCodeAt(3)?n.setAttributeNS("http://www.w3.org/XML/1998/namespace",r,t):58===r.charCodeAt(5)?109===r.charCodeAt(1)?n.setAttributeNS("http://www.w3.org/2000/xmlns/",r,t):n.setAttributeNS("http://www.w3.org/1999/xlink",r,t):n.setAttribute(r,t))}for(r in i)r in s||n.removeAttribute(r)}}const ci={create:li,update:li};function hi(t,e){let r,n;const i=e.elm;let s=t.data.class,o=e.data.class;if((s||o)&&s!==o){for(n in s=s||{},o=o||{},s)s[n]&&!Object.prototype.hasOwnProperty.call(o,n)&&i.classList.remove(n);for(n in o)r=o[n],r!==s[n]&&i.classList[r?"add":"remove"](n)}}const fi={create:hi,update:hi};let di,pi=t=>{let e=t;const r=new Set,n={get value(){return di&&di.deps.push(r.add(di)),e},set value(t){if(t!==e){e=t;for(const t of r)t()}},peek:()=>e,toJSON:()=>n.value,then:()=>n.value,toString:()=>n.value,valueOf:()=>n.value};return n},mi=t=>{let e,r;const n=()=>{e&&e.call(),r=di,di=n;try{e=t()}finally{di=r}};return n.deps=[],n(),()=>{let t;for(e&&e.call();t=n.deps.pop();)t.delete(n)}},_i=t=>{const e=pi();let r;const n={get value(){return r||(r=mi(()=>{e.value=t()})),e.value},peek:e.peek,toJSON:()=>n.value,then:()=>n.value,toString:()=>n.value,valueOf:()=>n.value};return n},gi=t=>t(),vi=gi;const yi=Symbol("signals"),bi=Symbol("change"),wi="__",Ti=["push","pop","shift","unshift","splice"],xi=(t,e,r)=>{const n=t[e],i=n?.peek();"_"!==e[0]?n?r!==i&&(n._set?n._set(r):Array.isArray(r)&&Array.isArray(i)?i[bi]?gi(()=>{for(let t=0;t<r.length;t++)i[t]=r[t];i.length=r.length}):n.value=r:n.value=ki(r)):t[e]=r?.peek?r:pi(ki(r)):t[e]=r},ki=(t,e)=>{if(!t)return t;if(t[yi]||t[Symbol.toStringTag])return t;if(t.constructor!==Object)return Array.isArray(t)?Ai(t):t;const r=Object.create(e?.[yi]||{}),n=pi(Object.keys(t).length);let i;const s=new Proxy(r,{get:(t,e)=>e===bi?n:e===yi?r:e===wi?i:e in r?r[e]?.valueOf():globalThis[e],set(t,e,s){if(e===wi)return i=s,!0;const o=e in r;return xi(r,e,s),o||n.value++,!0},deleteProperty(t,e){const i=r[e];return i&&(i[Symbol.dispose]?.(),delete r[e],n.value--),!0},ownKeys:t=>(n.value,Reflect.ownKeys(r)),has:(t,e)=>!0}),o=Object.getOwnPropertyDescriptors(t);for(const e in t){const n=o[e];if(n?.get){const t=_i(n.get.bind(s));t._set=n.set?.bind(s),r[e]=t}else r[e]=null,xi(r,e,t[e])}return s},Ai=t=>{let e;const r=pi(t.length),n=Array(t.length).fill(),i=new Proxy(n,{get:(i,s)=>"symbol"==typeof s?s===bi?r:s===yi?n:n[s]:"length"===s?Ti.includes(e)?r.peek():r.value:(e=s,n[s]||(n[s]=pi(ki(t[s]))),n[s].valueOf()),set(t,e,s){if("length"===e){for(let t=s;t<n.length;t++)delete i[t];return r.value=n.length=s,!0}return xi(n,e,s),e>=r.peek()&&(r.value=n.length=+e+1),!0},deleteProperty:(t,e)=>(n[e]?.[Symbol.dispose]?.(),delete n[e],!0)});return i},Oi=t=>{const e=Li(`${t}=${wi}`);return(t,r)=>{t[wi]=r,e(t)}},Si=Symbol.dispose||=Symbol("dispose"),Ci=Symbol("state"),Mi=Symbol("on"),Ei=Symbol("off"),Di={},Pi={};let Ni,Ri=":";const zi=(t,e,r=Li)=>{Di[t]=(t,n,i,s)=>{const o=e(t,i,n,s),a=r(n,":"+s);return()=>o(a(i))}},Li=(t,e)=>{const r=t.trim();if(Pi[r])return Pi[r];let n;try{n=Ni(r)}catch(t){Fi(t,e,r)}const i=t=>{try{return n(t)}catch(t){Fi(t,e,r)}};return Pi[r]=i,i},Fi=(t,e="",r="")=>{const n=r?`="${r}"\n\n`:"",i=`◆ ${t.message}\n\n${e}${n}`;throw Object.assign(t,{message:i,expr:r})},Bi=(t,e=t.attributes,r,n,i)=>{if(!e)return;let s=0;for(;s<e.length;){const o=e[s],{name:a,value:u}=o;if(a.startsWith(Ri)){t.removeAttribute(a);const e=a.slice(Ri.length).split(":");for(const s of e){const e=(Di[s]||Di.default)(t,u,r,s);if(n.push(e),i.push(mi(e)),null===t[Ci])return}}else s++}for(const e of t.childNodes)1===e.nodeType&&Bi(e,e.attributes,r,n,i)},Ii=(t=document.body,e)=>{if(t[Ci])return Object.assign(t[Ci],e);const r=ki(e||{}),n=[],i=[];return Bi(t,t.attributes,r,i,n),Ci in t||(t[Ci]=r,t[Ei]=()=>{n.forEach(t=>t()),n.length=0},t[Mi]=()=>{n.length=0,n.push(...i.map(t=>mi(t)))},t[Si]=()=>{t[Ei](),t[Ei]=null,t[Mi]=null,t[Si]=null,t[Ci]=null}),r};Ii.use=t=>{var e;t.signal&&(pi=(e=t).signal,mi=e.effect,_i=e.computed,gi=e.batch||gi,vi=e.untracked||vi),t.compile&&(Ni=t.compile),t.prefix&&(Ri=t.prefix)};const qi=t=>{if(!t.nodeType)return t;const e=t.content.cloneNode(!0),r=[...t.attributes],n=document.createTextNode("");e.append(n);const i=[...e.childNodes];return{childNodes:i,content:e,remove(){e.append(...i)},replaceWith(t){t!==n&&(n.before(t),e.append(...i))},attributes:r,removeAttribute(t){const e=r.findIndex(e=>e.name===t);-1!==e&&r.splice(e,1)}}},ji=Symbol("if");zi("if",(t,e)=>{const r=document.createTextNode("");let n,i,s,o=t.nextElementSibling;return t.replaceWith(r),i=t.content?qi(t):t,i[Ci]=null,o?.hasAttribute(":else")?(o.removeAttribute(":else"),o.hasAttribute(":if")||(o.remove(),s=o.content?qi(o):o,s[Ci]=null)):o=null,(a,u=(t[ji]?null:a?i:s))=>{o&&(o[ji]=t[ji]||u==i),n!=u&&(n&&(n.remove(),n[Ei]?.()),(n=u)&&(r.before(n.content||n),null===n[Ci]?(delete n[Ci],Ii(n,e)):n[Mi]()))}}),zi("each",(t,e,r)=>{const[n,i="$"]=r.split(/\bin\b/)[0].trim().split(/\s*,\s*/),s=document.createTextNode("");let o,a,u,l=0;const c=()=>{const r=u,c=r.length;let h=0;if(o&&!o[bi]){for(const t of o[yi]||[])t[Symbol.dispose]();o=null,l=0}if(c<l)o.length=c;else{if(o)for(;h<l;)o[h]=r[h],h++;else o=r;for(;h<c;h++){o[h]=r[h];const u=h,l=ki({[n]:o[yi]?.[u]||o[u],[i]:a?a[u]:u},e),c=t.content?qi(t):t.cloneNode(!0);s.before(c.content||c),Ii(c,l);const f=((o[yi]||=[])[h]||={})[Symbol.dispose];o[yi][h][Symbol.dispose]=()=>{f?.(),c[Symbol.dispose]?.(),c.remove()}}}l=c};return t.replaceWith(s),t[Ci]=null,t=>{a=null,"number"==typeof t?u=Array.from({length:t},(t,e)=>e+1):t?.constructor===Object?(a=Object.keys(t),u=Object.values(t)):u=t||[];let e=0;return mi(()=>{u[bi],e++||(c(),queueMicrotask(()=>{e>1&&c(),e=0}))})}},t=>Li(t.split(/\bin\b/)[1])),zi("ref",(t,e,r)=>"function"==typeof Li(r)(e)?e=>e?.call(null,t):(Oi(r)(e,t),t=>t)),zi("with",(t,e)=>{let r;return n=>{r?Ii(t,n):vi(()=>{r=ki(n,e),Ii(t,r)})}}),zi("text",t=>{if(t.content){const e=qi(t).childNodes[0];t.replaceWith(e),t=e}return e=>{t.textContent=e??""}}),zi("class",t=>{let e=new Set;return r=>{const n=new Set;r&&("string"==typeof r?r.split(" ").forEach(t=>n.add(t)):Array.isArray(r)?r.forEach(t=>t&&n.add(t)):Object.entries(r).forEach(([t,e])=>e&&n.add(t)));for(const r of e)n.has(r)?n.delete(r):t.classList.remove(r);for(const e of n)t.classList.add(e);e=n}}),zi("style",t=>{const e=t.getAttribute("style")||"";return r=>{if("string"==typeof r){const n=e&&!e.trim().endsWith(";"),i=e+(e&&n?"; ":"")+r;return void t.setAttribute("style",i)}e&&t.setAttribute("style",e);for(const e in r){const n=r[e];e.startsWith("-")?t.style.setProperty(e,n):t.style[e]=n}}}),zi("default",(t,e,r,n)=>{if(!n.startsWith("on"))return n?e=>Ui(t,n,e):e=>{for(const r in e)Ui(t,Vi(r),e[r])};const i=n.split("..").map(e=>function(t,e){const r={evt:"",target:e,test:()=>!0};return r.evt=(t.startsWith("on")?t.slice(2):t).replace(/\.(\w+)?-?([-\w]+)?/g,(t,e,n="")=>(r.test=$i[e]?.(r,...n.split("-"))||r.test,"")),r}(e,t)),s=(t,r)=>{const{evt:n,target:i,test:s,defer:o,stop:a,prevent:u,immediate:l,...c}=r,h=r=>{try{if(!s(r))return;a&&(l?r.stopImmediatePropagation():r.stopPropagation()),u&&r.preventDefault(),t?.call(e,r)}catch(e){Fi(e,`:on${n}`,t)}},f=o?o(h):h;return i.addEventListener(n,f,c),()=>i.removeEventListener(n,f,c)};if(1===i.length)return t=>s(t,i[0]);let o,a,u,l=0;const c=t=>{u=s(e=>{u(),a=t?.(e),l=(l+1)%i.length,l?c(a):o&&c(o)},i[l])};return t=>(o=t,u||c(o),()=>{o=null})});const $i={prevent(t){t.prevent=!0},stop(t){t.stop=!0},immediate(t){t.immediate=!0},once(t){t.once=!0},passive(t){t.passive=!0},capture(t){t.capture=!0},window(t){t.target=window},document(t){t.target=document},parent(t){t.target=t.target.parentNode},throttle(t,e=108){t.defer=t=>Wi(t,e)},debounce(t,e=108){t.defer=t=>Xi(t,e)},outside:t=>e=>{const r=t.target;return!r.contains(e.target)&&(!1!==e.target.isConnected&&!(r.offsetWidth<1&&r.offsetHeight<1))},self:t=>e=>e.target===t.target,ctrl:(t,...e)=>t=>Yi.ctrl(t)&&e.every(e=>Yi[e]?Yi[e](t):t.key===e),shift:(t,...e)=>t=>Yi.shift(t)&&e.every(e=>Yi[e]?Yi[e](t):t.key===e),alt:(t,...e)=>t=>Yi.alt(t)&&e.every(e=>Yi[e]?Yi[e](t):t.key===e),meta:(t,...e)=>t=>Yi.meta(t)&&e.every(e=>Yi[e]?Yi[e](t):t.key===e),arrow:()=>Yi.arrow,enter:()=>Yi.enter,esc:()=>Yi.esc,tab:()=>Yi.tab,space:()=>Yi.space,delete:()=>Yi.delete,digit:()=>Yi.digit,letter:()=>Yi.letter,char:()=>Yi.char},Yi={ctrl:t=>t.ctrlKey||"Control"===t.key||"Ctrl"===t.key,shift:t=>t.shiftKey||"Shift"===t.key,alt:t=>t.altKey||"Alt"===t.key,meta:t=>t.metaKey||"Meta"===t.key||"Command"===t.key,arrow:t=>t.key.startsWith("Arrow"),enter:t=>"Enter"===t.key,esc:t=>t.key.startsWith("Esc"),tab:t=>"Tab"===t.key,space:t=>" "===t.key||"Space"===t.key||" "===t.key,delete:t=>"Delete"===t.key||"Backspace"===t.key,digit:t=>/^\d$/.test(t.key),letter:t=>/^\p{L}$/gu.test(t.key),char:t=>/^\S$/.test(t.key)},Wi=(t,e)=>{let r=!1,n=!1;const i=s=>{r=!0,setTimeout(()=>{r=!1,n&&(n=!1,i(s),t(s))},e)};return e=>{if(!r)return i(e),t(e);n=!0}},Xi=(t,e)=>{let r;return n=>{clearTimeout(r),r=setTimeout(()=>{r=null,t(n)},e)}},Ui=(t,e,r)=>{null==r||!1===r?t.removeAttribute(e):t.setAttribute(e,!0===r?"":"number"==typeof r||"string"==typeof r?r:"")},Vi=t=>t.replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,(t,e)=>(e?"-":"")+t.toLowerCase());zi("value",(t,e,r)=>{const n=t.type||"",i=t.tagName,s=e=>{const r=e??"";t.value=r,t.setAttribute("value",r)},o=t=>s(t),a=e=>{const r=t.selectionStart,n=t.selectionEnd;s(e),r&&t.setSelectionRange(r,n)},u=e=>{t.checked=e,Ui(t,"checked",e)},l=e=>{t.value===e&&(t.checked=e,Ui(t,"checked",e))},c=e=>{for(const r of t.options)r.value==e?r.setAttribute("selected",""):r.removeAttribute("selected");t.value=e},h=e=>{for(const e of t.options)e.removeAttribute("selected");for(const r of e)t.querySelector(`[value="${r}"]`)?.setAttribute("selected","")},f=e=>{t.value=e},d=(()=>{if("TEXTAREA"===i)return a;switch(n){case"text":case"":return o;case"checkbox":return u;case"radio":return l;case"select-one":return c;case"select-multiple":return h;default:return f}})();try{const i=Oi(r),s="checkbox"===n?()=>i(e,t.checked):"select-multiple"===n?()=>i(e,[...t.selectedOptions].map(t=>t.value)):()=>i(e,t.selectedIndex<0?null:t.value);t.oninput=t.onchange=s,n?.startsWith("select")&&(new MutationObserver(s).observe(t,{childList:!0,subtree:!0,attributes:!0}),Ii(t,e)),Li(r)(e)??s()}catch{}return d}),zi("fx",t=>t=>t),zi("aria",t=>e=>{for(const r in e){const n=e[r];Ui(t,`aria-${Vi(r)}`,null==n?null:String(n))}}),zi("data",t=>e=>{for(const r in e)t.dataset[r]=e[r]}),Ii.use({compile:t=>Ii.constructor(`with (arguments[0]) { return ${t} };`)});const Hi=Symbol("persist"),Gi=t=>{try{return JSON.stringify(t,(t,e)=>{if("function"!=typeof e&&(!e||"object"!=typeof e||e.constructor===Object||Array.isArray(e)))return e})}catch{return"{}"}},Ji=t=>{try{return JSON.parse(t)}catch{return{}}},Ki=(t,e,r={})=>{const n={key:e,storage:globalThis.localStorage,paths:null,debounce:0,serializer:Gi,deserializer:Ji,...r};if(!(t=>{try{const e="__storage_test__";return t.setItem(e,"test"),t.removeItem(e),!0}catch{return!1}})(n.storage))return console.warn(`persistence: ${n.storage===globalThis.localStorage?"localStorage":"storage"} is not available`),()=>{};let i=!1;const s=((t,e)=>{let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>t(...n),e)}})(()=>{if(!i)try{const e=((t,e)=>{const r={};if(e)for(const n of e)n in t&&(r[n]=t[n]);else{const e=t[yi];for(const n in e){const i=e[n];i&&!i._set&&"_"!==n[0]&&(r[n]=t[n])}}return r})(t,n.paths),r=n.serializer(e);n.storage.setItem(n.key,r)}catch(t){console.warn("persistence: failed to save state",t)}},n.debounce),o=()=>{try{const e=n.storage.getItem(n.key);if(!e)return;const r=n.deserializer(e);if(!r||"object"!=typeof r)return;i=!0;for(const e in r)e in t[yi]&&!t[yi][e]?._set&&(t[e]=r[e]);i=!1}catch(t){console.warn("persistence: failed to restore state",t),i=!1}};o();const a=mi(()=>{if(n.paths)for(const e of n.paths)t[e];else{const e=t[yi];for(const r in e){const n=e[r];n&&!n._set&&"_"!==r[0]&&t[r]}}s()});return t[Hi]={config:n,saveState:s,restoreState:o},a},Qi=new Map,Zi={store:(t,e,r={})=>{if(void 0!==e){const n=ki(e);if(Qi.set(t,n),!0===r||r.persist){const e=!0===r?{}:{...r};delete e.persist,((t,e,r={})=>{!0===r&&(r={}),Ki(t,e,r)})(n,t,e)}return n}const n=Qi.get(t);return n||(console.warn(`store "${t}" not found`),{})}};async function ts(t){const e=t.querySelector("script[r-mod]"),r=t.querySelector("[r-scope]");if(!e)return;if(!r)return void console.warn("r-mod found but no r-scope element in container");t.querySelectorAll("[r-scope]").length>1&&console.warn("multiple r-scope elements found, using first one only");const n=e.textContent.trim();if(!n)return;const i=await async function(t){try{const e=`\nconst sprae = window._riftSprae;\nconst { signal, effect, computed } = window._riftSignal;\nconst store = window._riftStore;\nconst r = window.r;\n\n${t}\n`,r=`data:text/javascript;charset=utf-8,${encodeURIComponent(e)}#${Date.now()}`,n=await import(r),i={};for(const[t,e]of Object.entries(n))"default"!==t&&(i[t]=e);return i}catch(t){return console.error("module evaluation error:",t),{}}}(n),s=Ii(r,i);return e.remove(),s}async function es(t){await ts(t)}window.signal=pi,window.r=Zi;const rs=function(t){const e={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=Zn;for(const r of oi)for(const n of t){const t=n[r];void 0!==t&&e[r].push(t)}function n(t){const e=t.id?"#"+t.id:"",n=t.getAttribute("class"),i=n?"."+n.split(" ").join("."):"";return ti(r.tagName(t).toLowerCase()+e+i,{},[],void 0,t)}function i(t){return ti(void 0,{},[],void 0,t)}function s(t,e){return function(){if(0===--e){const e=r.parentNode(t);null!==e&&r.removeChild(e,t)}}}function o(t,n){var i,s,a;let u;const l=t.data,c=null==l?void 0:l.hook;null===(i=null==c?void 0:c.init)||void 0===i||i.call(c,t);const h=t.children,f=t.sel;if("!"===f)null!==(s=t.text)&&void 0!==s||(t.text=""),t.elm=r.createComment(t.text);else if(""===f)t.elm=r.createTextNode(t.text);else if(void 0!==f){const i=f.indexOf("#"),s=f.indexOf(".",i),d=i>0?i:f.length,p=s>0?s:f.length,m=-1!==i||-1!==s?f.slice(0,Math.min(d,p)):f,_=null==l?void 0:l.ns,g=void 0===_?r.createElement(m,l):r.createElementNS(_,m,l);for(t.elm=g,d<p&&g.setAttribute("id",f.slice(d+1,p)),s>0&&g.setAttribute("class",f.slice(p+1).replace(/\./g," ")),u=0;u<e.create.length;++u)e.create[u](ni,t);if(!ri(t.text)||ei(h)&&0!==h.length||r.appendChild(g,r.createTextNode(t.text)),ei(h))for(u=0;u<h.length;++u){const t=h[u];null!=t&&r.appendChild(g,o(t,n))}void 0!==c&&(null===(a=c.create)||void 0===a||a.call(c,ni,t),void 0!==c.insert&&n.push(t))}else t.elm=r.createTextNode(t.text);return t.elm}function a(t,e,n,i,s,a){for(;i<=s;++i){const s=n[i];null!=s&&r.insertBefore(t,o(s,a),e)}}function u(t){var r,n;const i=t.data;if(void 0!==i){null===(n=null===(r=null==i?void 0:i.hook)||void 0===r?void 0:r.destroy)||void 0===n||n.call(r,t);for(let r=0;r<e.destroy.length;++r)e.destroy[r](t);if(void 0!==t.children)for(let e=0;e<t.children.length;++e){const r=t.children[e];null!=r&&"string"!=typeof r&&u(r)}}}function l(t,n,i,o){for(var a,c;i<=o;++i){let o;const h=n[i];if(null!=h)if(void 0!==h.sel){u(h),o=e.remove.length+1;const t=s(h.elm,o);for(let r=0;r<e.remove.length;++r)e.remove[r](h,t);const r=null===(c=null===(a=null==h?void 0:h.data)||void 0===a?void 0:a.hook)||void 0===c?void 0:c.remove;void 0!==r?r(h,t):t()}else h.children?(u(h),l(t,h.children,0,h.children.length-1)):r.removeChild(t,h.elm)}}function c(t,n,i){var s,u,h,f,d,p,m,_;const g=null===(s=n.data)||void 0===s?void 0:s.hook;null===(u=null==g?void 0:g.prepatch)||void 0===u||u.call(g,t,n);const v=n.elm=t.elm;if(t===n)return;if(void 0!==n.data||void 0!==n.text&&n.text!==t.text){null!==(h=n.data)&&void 0!==h||(n.data={}),null!==(f=t.data)&&void 0!==f||(t.data={});for(let r=0;r<e.update.length;++r)e.update[r](t,n);null===(m=null===(p=null===(d=n.data)||void 0===d?void 0:d.hook)||void 0===p?void 0:p.update)||void 0===m||m.call(p,t,n)}const y=t.children,b=n.children;void 0===n.text?void 0!==y&&void 0!==b?y!==b&&function(t,e,n,i){let s,u,h,f,d=0,p=0,m=e.length-1,_=e[0],g=e[m],v=n.length-1,y=n[0],b=n[v];for(;d<=m&&p<=v;)null==_?_=e[++d]:null==g?g=e[--m]:null==y?y=n[++p]:null==b?b=n[--v]:ii(_,y)?(c(_,y,i),_=e[++d],y=n[++p]):ii(g,b)?(c(g,b,i),g=e[--m],b=n[--v]):ii(_,b)?(c(_,b,i),r.insertBefore(t,_.elm,r.nextSibling(g.elm)),_=e[++d],b=n[--v]):ii(g,y)?(c(g,y,i),r.insertBefore(t,g.elm,_.elm),g=e[--m],y=n[++p]):(void 0===s&&(s=si(e,d,m)),u=s[y.key],void 0===u?(r.insertBefore(t,o(y,i),_.elm),y=n[++p]):void 0===s[b.key]?(r.insertBefore(t,o(b,i),r.nextSibling(g.elm)),b=n[--v]):(h=e[u],h.sel!==y.sel?r.insertBefore(t,o(y,i),_.elm):(c(h,y,i),e[u]=void 0,r.insertBefore(t,h.elm,_.elm)),y=n[++p]));p<=v&&(f=null==n[v+1]?null:n[v+1].elm,a(t,f,n,p,v,i)),d<=m&&l(t,e,d,m)}(v,y,b,i):void 0!==b?(void 0!==t.text&&r.setTextContent(v,""),a(v,null,b,0,b.length-1,i)):void 0!==y?l(v,y,0,y.length-1):void 0!==t.text&&r.setTextContent(v,""):t.text!==n.text&&(void 0!==y&&l(v,y,0,y.length-1),r.setTextContent(v,n.text)),null===(_=null==g?void 0:g.postpatch)||void 0===_||_.call(g,t,n)}return function(t,s){let a,u,h;const f=[];for(a=0;a<e.pre.length;++a)e.pre[a]();for(!function(t,e){return t.isElement(e)}(r,t)?function(t,e){return t.isDocumentFragment(e)}(r,t)&&(t=i(t)):t=n(t),ii(t,s)?c(t,s,f):(u=t.elm,h=r.parentNode(u),o(s,f),null!==h&&(r.insertBefore(h,s.elm,r.nextSibling(u)),l(h,[t],0,0))),a=0;a<f.length;++a)f[a].data.hook.insert(f[a]);for(a=0;a<e.post.length;++a)e.post[a]();return s}}([fi,ci]);function ns(t){const e=[],r=t.replace(/:([^/]+)/g,(t,r)=>(e.push(r),"([^/]+)"));return{regex:new RegExp(`^${r}$`),keys:e}}function is(t,e){for(const r of e){const{regex:e,keys:n}=ns(r.path),i=t.match(e);if(i){const t={};return n.forEach((e,r)=>t[e]=i[r+1]),{route:r,params:t}}}return null}function ss(t,e){const r=[],n=t.split("/").filter(Boolean);for(let t=1;t<n.length;t++){const i=`/${n.slice(0,t).join("/")}`;for(const t of e){const{regex:e,keys:n}=ns(t.path),s=i.match(e);if(s){const e={};n.forEach((t,r)=>e[t]=s[r+1]),r.push({route:t,params:e});break}}}return r}function os(t){if(3===t.nodeType)return t.textContent;if(1===t.nodeType){const e={};return t.attributes&&(e.attrs={},Array.from(t.attributes).forEach(t=>{e.attrs[t.name]=t.value})),ui(t.tagName.toLowerCase(),e,Array.from(t.childNodes).map(t=>os(t)))}return null}async function as(t,e,r,n,i=!1,s=!1){let o="function"==typeof e?e({}):e;n&&(o={...o,dataset:n});const a=await fetch(`/templates/${t}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)}).then(t=>t.text());if(s){const t=document.createElement("div");t.innerHTML=a;const e=Array.from(t.querySelectorAll("script")),n=e.map(t=>({element:t,src:t.src,content:t.textContent,attrs:Array.from(t.attributes).reduce((t,e)=>(t[e.name]=e.value,t),{})}));e.forEach(t=>t.remove());const i=Array.from(t.childNodes).map(t=>os(t));if(!r.__snabbdomVNode){r.innerHTML="";const t=ui(r.tagName.toLowerCase(),{attrs:Array.from(r.attributes).reduce((t,e)=>(t[e.name]=e.value,t),{})},[]);r.__snabbdomVNode=rs(r,t)}const s=ui(r.tagName.toLowerCase(),{attrs:Array.from(r.attributes).reduce((t,e)=>(t[e.name]=e.value,t),{})},i);r.__snabbdomVNode=rs(r.__snabbdomVNode,s),n.forEach(({src:t,content:e,attrs:n})=>{const i=document.createElement("script");Object.entries(n).forEach(([t,e])=>{i.setAttribute(t,e)}),t?i.src=t:i.textContent=e,r.appendChild(i)})}else r.innerHTML=a,delete r.__snabbdomVNode;await es(r),await ds(r,i),await cs(r,i)}async function us(t,e){if(e)return new Promise(r=>{requestAnimationFrame(()=>{const n={...e,from:void 0};n.onComplete=r,e.from?Gn.fromTo(t,e.from,n):Gn.to(t,n)})})}function ls(t){try{return JSON.parse(t)}catch(e){try{return Function(`"use strict"; return (${t})`)()}catch(t){throw new Error("invalid JSON syntax")}}}async function cs(t,e=!1){if(e)return;const r=[];if(t.hasAttribute("r-transition-stagger-in"))try{const e=ls(t.getAttribute("r-transition-stagger-in")),n=Array.from(t.children);n.length>0&&(Gn.set(n,e.from||{}),r.push(us(n,e)))}catch(t){console.warn("invalid transition data on container stagger element:",t)}const n=t.querySelectorAll("[r-transition-stagger-in]");for(const t of n)try{const e=ls(t.getAttribute("r-transition-stagger-in")),n=Array.from(t.children);n.length>0&&(Gn.set(n,e.from||{}),r.push(us(n,e)))}catch(t){console.warn("invalid transition data on stagger element:",t)}if(t.hasAttribute("r-transition-in"))try{const e=ls(t.getAttribute("r-transition-in"));Gn.set(t,e.from||{}),r.push(us(t,e))}catch(t){console.warn("invalid transition data on container element:",t)}const i=t.querySelectorAll("[r-transition-in]");for(const t of i){const e=t.closest("[r-transition-stagger-in]");if(!e||e===t)try{const e=ls(t.getAttribute("r-transition-in"));Gn.set(t,e.from||{}),r.push(us(t,e))}catch(t){console.warn("invalid transition data on element:",t)}}Promise.all(r)}function hs(t){const e=[];if(t.hasAttribute("r-transition-stagger-in")){const r=ls(t.getAttribute("r-transition-stagger-in")),n=Array.from(t.children);n.length>0&&(e.push({type:"stagger",elements:n,transition:r}),Gn.set(n,r.from||{})),t.removeAttribute("r-transition-stagger-in")}if(t.hasAttribute("r-transition-in")){const r=ls(t.getAttribute("r-transition-in"));e.push({type:"individual",elements:t,transition:r}),Gn.set(t,r.from||{}),t.removeAttribute("r-transition-in")}return e}function fs(t){for(const{elements:e,transition:r}of t)us(e,r)}async function ds(t,e=!1){const r=t.querySelectorAll("[r-tpl]");for(const t of r){const r=t.getAttribute("r-tpl"),n=t.getAttribute("r-tpl-props"),i=t.getAttribute("r-dataset");let s=n?ls(n):{};i&&(s={...s,dataset:i});const o=await fetch(`/templates/${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}).then(t=>t.text());t.innerHTML=o,await es(t),await ds(t,e),await cs(t,e)}}function ps(t){const e={},r=new URLSearchParams(t);for(const[t,n]of r)e[t]=n;return e}function ms(t){let e=null;async function r({path:r,initial:n=!1,linkProps:i=null,linkTarget:s=null,linkDataset:o=null}){const[a,u=""]=r.split("?"),l=is(a,t);if(!l)return console.error("rift: route not found:",a);const{route:c,params:h}=l,f=ps(u);let d;if(n&&document.body.classList.add("loading"),c.renders)d=c.renders;else{const n=ss(r,t),i={template:c.template,props:c.props,target:c.target};d=[...n.filter(({route:t})=>!e||!e.startsWith(`${t.path}/`)&&e!==t.path).map(({route:t,params:e})=>({template:t.template,props:t.props,target:t.target,dataset:t.dataset,params:e,skipTransition:!1})),...n.filter(({route:t})=>e?.startsWith(`${t.path}/`)).map(({route:t,params:e})=>({template:t.template,props:t.props,target:t.target,dataset:t.dataset,params:e,skipTransition:!0})),{...i,skipTransition:!1}]}for(const t of d){const e=t.params||h;let r="function"==typeof t.props?t.props(e,f):t.props;i&&(r={...r,...i});const a=s&&document.querySelector(s)||t.target&&document.querySelector(t.target)||document.getElementById("main"),u=o||t.dataset||c.dataset;a.id,Gn.killTweensOf(a),Gn.set(a,{clearProps:"all"}),a.classList.add("loading"),await as(t.template,r,a,u,n||t.skipTransition,c.diff||!1),a.classList.remove("loading")}n&&document.body.classList.remove("loading"),e=r,n=!1,window.dispatchEvent(new CustomEvent("navigate"))}return{navigate:r,init:function(){document.addEventListener("click",t=>{const e=t.target.closest("[r-link]");if(!e)return;t.preventDefault();const n=e.getAttribute("href"),i=e.getAttribute("r-dataset"),s=e.getAttribute("r-dataset-props"),o=e.getAttribute("r-target");history.pushState({},"",n),window.dispatchEvent(new CustomEvent("navigate")),r({path:n,linkProps:s?ls(s):null,linkDataset:i,linkTarget:o})}),window.addEventListener("popstate",()=>r({path:location.pathname+location.search}))},hydrateNestedTemplates:ds,processElementTransitions:cs,captureGlobalTransitions:hs,runGlobalTransitions:fs,refresh:async(e={})=>{const r=async()=>{const{path:r=location.pathname+location.search,parents:n=!1}=e,[i,s=""]=r.split("?"),o=is(i,t);if(!o)return console.error("rift: route not found:",i);const{route:a,params:u}=o,l=ps(s);if(n){const e=[...ss(r,t),{route:a,params:u}],n=new Set;for(let t=e.length-1;t>=0;t--){const r=e[t].route.target||"#main";if(!n.has(r)&&(n.add(r),t<e.length-1)){const{route:n,params:i}=e[t],s=document.querySelector(r)||document.getElementById("main"),o="function"==typeof n.props?n.props(i,l):n.props;await as(n.template,o,s,n.dataset,!0)}}}const c=document.querySelector(a.target)||document.getElementById("main"),h="function"==typeof a.props?a.props(u,l):a.props;await as(a.template,h,c,a.dataset,!0)};document.startViewTransition?document.startViewTransition(r):await r()},refreshTemplate:async(e,r={})=>{const n=[];document.querySelectorAll(`[r-tpl="${e}"]`).forEach(t=>{n.push(async()=>{const n=await fetch(`/templates/${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!n.ok)return console.error("failed to fetch template:",e);const i=await n.text();t.innerHTML=i,await es(t)})});if(t.filter(t=>t.template===e).forEach(t=>{const e=document.querySelector(t.target)||document.getElementById("main");e&&n.push(async()=>{const r=location.pathname+location.search,n=is(r,[t]);if(n){const{params:i}=n,[,s=""]=r.split("?"),o=ps(s),a="function"==typeof t.props?t.props(i,o):t.props;await as(t.template,a,e,t.dataset,!0)}})}),0===n.length)return console.error("no templates found with name:",e);const i=async()=>{await Promise.all(n.map(t=>t()))};document.startViewTransition?document.startViewTransition(i):await i()}}}function _s(){document.addEventListener("mousedown",t=>{const e=t.target.closest(".ripple");if(!e)return;const r=document.createElement("span");r.classList.add("ripple-effect");const n=Math.max(e.clientWidth,e.clientHeight);r.style.width=r.style.height=`${n}px`;const i=e.getBoundingClientRect();r.style.left=t.clientX-i.left-n/2+"px",r.style.top=t.clientY-i.top-n/2+"px",e.appendChild(r),r.addEventListener("animationend",()=>r.remove())})}function gs(t){window._riftRouter=t,document.addEventListener("DOMContentLoaded",async function(){const e=t.captureGlobalTransitions(document.body);await t.hydrateNestedTemplates(document.body,!0),await t.navigate({path:location.pathname+location.search,initial:!0}),document.body.classList.remove("loading"),e.length>0&&requestAnimationFrame(()=>{t.runGlobalTransitions(e)})}),t.init()}function vs(t){const e=ms(t);_s(),gs(e)}window._riftSprae=Ii,window._riftSignal={signal:pi,effect:mi,computed:_i},window._riftStore=ki,window.r=Zi;export{ms as createRouter,vs as default,_s as initRipple,gs as mount,Zi as r,ki as store};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "riftt",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "type": "module",
5
5
  "main": "dist/rift.js",
6
6
  "scripts": {
package/rollup.config.js CHANGED
@@ -1,14 +1,12 @@
1
- import { nodeResolve } from '@rollup/plugin-node-resolve';
2
- import terser from '@rollup/plugin-terser';
1
+ import { nodeResolve } from "@rollup/plugin-node-resolve";
2
+ import terser from "@rollup/plugin-terser";
3
3
 
4
4
  export default {
5
- input: 'src/index.js',
5
+ input: "src/index.js",
6
6
  output: {
7
- file: 'dist/rift.js',
8
- format: 'es'
7
+ file: "dist/rift.js",
8
+ format: "es",
9
9
  },
10
- plugins: [
11
- nodeResolve(),
12
- terser()
13
- ]
14
- };
10
+ plugins: [nodeResolve(), terser()],
11
+ };
12
+