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