Nathanwoodburn.github.io/assets/js/gsap.min.js

9 lines
62 KiB
JavaScript

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