!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 i(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function A(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Y(t){return"string"==typeof t}function f(t){return"function"==typeof t}function C(t){return"number"==typeof t}function s(t){return void 0===t}function D(t){return"object"==typeof t}function E(t){return!1!==t}function o(){return"undefined"!=typeof window}function $(t){return f(t)||Y(t)}function u(t){return(Vt=Bt(t,a))&&l}function J(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function K(t,e){return!e&&console.warn(t)}function d(t,e){return t&&(a[t]=e)&&Vt&&(Vt[t]=e)||a}function m(){return 0}function tt(t){var e,r,i=t[0];if(D(i)||f(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=De.length;r--&&!De[r].targetTest(i););e=De[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new qe(t[r],e)))||t.splice(r,1);return t}function et(t){return t._gsap||tt(z(t))[0]._gsap}function g(t,e,r){return(r=t[e])&&f(r)?t[e]():s(r)&&t.getAttribute&&t.getAttribute(e)||r}function c(t,e){return(t=t.split(",")).forEach(e)||t}function F(t){return Math.round(1e5*t)/1e5||0}function P(t){return Math.round(1e7*t)/1e7||0}function rt(t,e){var r=e.charAt(0),e=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+e:"-"===r?t-e:"*"===r?t*e:t/e}function it(){var t,e,r=Oe.length,i=Oe.slice(0);for(ke={},t=Oe.length=0;ts;)a=a._prev;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}function M(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 L(t,e){!t.parent||e&&!t.parent.autoRemoveChildren||t.parent.remove(t),t._act=0}function O(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 k(t){return t._repeat?Lt(t._tTime,t=t.duration()+t._rDelay)*t:0}function at(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function ot(t){t._end=P(t._start+(t._tDur/Math.abs(t._ts||t._rts||q)||0))}function ut(t,e){var r=t._dp;r&&r.smoothChildTiming&&t._ts&&(t._start=P(r._time-(0q)&&e.render(r,!0),O(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur(n=Math.abs(n))&&(s=i,o=n);return s}function Ot(t){return L(t),t.scrollTrigger&&t.scrollTrigger.kill(!1),t.progress()<1&&w(t,"onInterrupt"),t}function kt(t,e,r){return(6*(t+=t<0?1:1>16,t>>8&p,t&p]:0:Re.black;if(!l){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Re[t])l=Re[t];else if("#"===t.charAt(0)){if(9===(t=t.length<6?"#"+(i=t.charAt(1))+i+(n=t.charAt(2))+n+(s=t.charAt(3))+s+(5===t.length?t.charAt(4)+t.charAt(4):""):t).length)return[(l=parseInt(t.substr(1,6),16))>>16,l>>8&p,l&p,parseInt(t.substr(7),16)/255];l=[(t=parseInt(t.substr(1),16))>>16,t>>8&p,t&p]}else if("hsl"===t.substr(0,3))if(l=h=t.match(ge),e){if(~t.indexOf("="))return l=t.match(ve),r&&l.length<4&&(l[3]=1),l}else a=+l[0]%360/360,o=l[1]/100,i=2*(u=l[2]/100)-(n=u<=.5?u*(o+1):u+o-u*o),3=N?o.endTime(!1):t._dur;return Y(e)&&(isNaN(e)||e in a)?(n=e.charAt(0),s="%"===e.substr(-1),i=e.indexOf("="),"<"===n||">"===n?(0<=i&&(e=e.replace(/=/,"")),("<"===n?o._start:o.endTime(0<=o._repeat))+(parseFloat(e.substr(1))||0)*(s?(i<0?o:r).totalDuration()/100:1)):i<0?(e in a||(a[e]=u),a[e]):(n=parseFloat(e.charAt(i-1)+e.substr(i+1)),s&&r&&(n=n/100*(R(r)?r[0]:r).totalDuration()),1=e&&te)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if("isPause"===i.data&&i._start=y._start)&&y._ts&&u!==y){if(y.parent!==this)return this.render(t,e,r);if(y.render(0=this.totalDuration()||!m&&c)||l!==this._start&&Math.abs(h)===Math.abs(this._ts)||this._lock||(!t&&d||!(m===_&&0=i&&(s instanceof H?e&&n.push(s):(r&&n.push(s),t&&n.push.apply(n,s.getChildren(!0,e,r)))),s=s._next;return n},e.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},e.remove=function(t){return Y(t)?this.removeLabel(t):f(t)?this.killTweensOf(t):(M(this,t),t===this._recent&&(this._recent=this._last),O(this))},e.totalTime=function(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=P(_.time-(0e:!e||s.isActive())&&i.push(s):(r=s.getTweensOf(n,e)).length&&i.push.apply(i,r),s=s._next;return i},e.tweenTo=function(t,e){e=e||{};var r,i=this,n=h(i,t),s=e.startAt,a=e.onStart,o=e.onStartParams,t=e.immediateRender,u=H.to(i,B({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())||q,onStart:function(){var t;i.pause(),r||(t=e.duration||Math.abs((n-(s&&"time"in s?s.time:i._time))/i.timeScale()),u._dur!==t&&pt(u,t,0,1).render(u._time,!0,!0),r=1),a&&a.apply(u,o||[])}},e));return t?u.render(0):u},e.tweenFromTo=function(t,e,r){return this.tweenTo(e,B({startAt:{time:h(this,t)}},r))},e.recent=function(){return this._recent},e.nextLabel=function(t){return void 0===t&&(t=this._time),Mt(this,h(this,t))},e.previousLabel=function(t){return void 0===t&&(t=this._time),Mt(this,h(this,t),1)},e.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+q)},e.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 O(this)},e.invalidate=function(){var t=this._first;for(this._lock=0;t;)t.invalidate(),t=t._next;return Qe.prototype.invalidate.call(this)},e.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={}),O(this)},e.totalDuration=function(t){var e,r,i,n=0,s=this,a=s._last,o=N;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,S(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;pt(s,s===I&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},He.updateRoot=function(t){if(I._ts&&(v(I,at(t,I)),Qt=_.frame),_.frame>=Ce){Ce+=U.autoSleep||120;var e=I._first;if((!e||!e._ts)&&U.autoSleep&&_._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||_.sleep()}}};var Qe,Q=He;function He(t,e){var r;return(r=Qe.call(this,t=void 0===t?{}:t)||this).labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=E(t.sortChildren),I&&S(t.parent||I,A(r),e),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&<(A(r),t.scrollTrigger),r}function Ge(t,e,r,i,n,s){var a,o,u,h;if(V[t]&&!1!==(a=new V[t]).init(n,a.rawVars?e[t]:function(t,e,r,i,n){if(!D(t=f(t)?Ze(t,n,e,r,i):t)||t.style&&t.nodeType||R(t)||me(t))return Y(t)?Ze(t,n,e,r,i):t;var s,a={};for(s in t)a[s]=Ze(t[s],n,e,r,i);return a}(e[t],i,n,s,r),r,i,s)&&(r._pt=o=new G(r._pt,n,t,0,1,a.render,a,0,a.priority),r!==yr))for(u=r._ptLookup[r._targets.indexOf(n)],h=a._props.length;h--;)u[a._props[h]]=o;return a}B(Q.prototype,{_lock:0,_hasPause:0,_forcing:0});function We(t,e){var r,i,n,s,a,o,u,h,l,f,p,c,_,d=t.vars,m=d.ease,g=d.startAt,v=d.immediateRender,y=d.lazy,T=d.onUpdate,w=d.onUpdateParams,x=d.callbackScope,b=d.runBackwards,M=d.yoyoEase,O=d.keyframes,k=d.autoRevert,A=t._dur,C=t._startAt,D=t._targets,P=t.parent,S=P&&"nested"===P.data?P.parent._targets:D,z="auto"===t._overwrite&&!Ut,R=t.timeline;if(t._ease=Xe(m=!R||O&&m?m:"none",he.ease),t._yEase=M?Ye(Xe(!0===M?m:M,he.ease)):0,M&&t._yoyo&&!t._repeat&&(M=t._yEase,t._yEase=t._ease,t._ease=M),t._from=!R&&!!d.runBackwards,!R||O&&!d.stagger){if(c=(h=D[0]?et(D[0]).harness:0)&&d[h.prop],r=nt(d,Me),C&&(L(C.render(-1,!0)),C._lazy=0),g)if(L(t._startAt=H.set(D,B({data:"isStart",overwrite:!1,parent:P,immediateRender:!0,lazy:E(y),startAt:null,delay:0,onUpdate:T,onUpdateParams:w,callbackScope:x,stagger:0},g))),e<0&&!v&&!k&&t._startAt.render(-1,!0),v){if(0=h._tDur||l<0)&&h.ratio===m&&(m&&L(h,1),f||(w(h,m?"onComplete":"onReverseComplete",!0),h._prom&&h._prom()))}}else h._zTime||(h._zTime=l)}return this},e.targets=function(){return this._targets},e.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),Ke.prototype.invalidate.call(this)},e.resetTo=function(t,e,r,i){Ht||_.wake(),this._ts||this.play();var n,s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||We(this,s),n=this._ease(s/this._dur),function(t,e,r,i,n,s,a){var o,u,h,l=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!l)for(l=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 Je=1,t.vars[e]="+=0",We(t,a),Je=0,1;l.push(o)}for(h=l.length;h--;)(o=l[h]).s=!i&&0!==i||n?o.s+(i||0)+s*o.c:i,o.c=r-o.s,o.e&&(o.e=F(r)+X(o.e)),o.b&&(o.b=o.s+X(o.b))}(this,t,e,r,i,n,s)?this.resetTo(t,e,r,i):(ut(this,0),this.parent||b(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?Ot(this):this;if(this.timeline)p=this.timeline.totalDuration(),this.timeline.killTweensOf(t,e,$e&&!0!==$e.vars.overwrite)._first||Ot(this),this.parent&&p!==this.timeline.totalDuration()&&pt(this,this._dur*this.timeline._tDur/p,0,1);else{var r,i,n,s,a,o,u,h=this._targets,l=t?z(t):h,f=this._ptLookup,p=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}(h,l))return"all"===e&&(this._pt=0),Ot(this);for(r=this._op=this._op||[],"all"!==e&&(Y(e)&&(a={},c(e,function(t){return a[t]=1}),e=a),e=function(t,e){var r,i,n,s,t=t[0]?et(t[0]).harness:0,a=t&&t.aliases;if(!a)return e;for(i in r=Bt({},e),a)if(i in r)for(n=(s=a[i].split(",")).length;n--;)r[s[n]]=r[i];return r}(h,e)),u=h.length;u--;)if(~l.indexOf(h[u]))for(a in i=f[u],"all"===e?(r[u]=e,s=i,n={}):(n=r[u]=r[u]||{},s=e),s)(o=i&&i[a])&&("kill"in o.d&&!0!==o.d.kill(a)||M(this,o,"_pt"),delete i[a]),"all"!==n&&(n[a]=1);this._initted&&!this._pt&&p&&Ot(this)}return this},n.to=function(t,e,r){return new n(t,e,r)},n.from=function(t,e){return _t(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 _t(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 I.killTweensOf(t,e,r)},n);function n(t,e,r,i){var n;"number"==typeof e&&(r.duration=e,e=r,r=null);var s,a,o,u,h,l,f,p,i=(n=Ke.call(this,i?e:st(e))||this).vars,c=i.duration,_=i.delay,d=i.immediateRender,m=i.stagger,g=i.overwrite,v=i.keyframes,y=i.defaults,T=i.scrollTrigger,w=i.yoyoEase,i=e.parent||I,x=(R(t)||me(t)?C(t[0]):"length"in e)?[t]:z(t);if(n._targets=x.length?tt(x):K("GSAP target "+t+" not found. https://greensock.com",!U.nullTargetWarn)||[],n._ptLookup=[],n._overwrite=g,v||m||$(c)||$(_)){if(e=n.vars,(s=n.timeline=new Q({data:"nested",defaults:y||{}})).kill(),s.parent=s._dp=A(n),s._start=0,m||$(c)||$(_)){if(u=x.length,f=m&&vt(m),D(m))for(h in m)~er.indexOf(h)&&((p=p||{})[h]=m[h]);for(a=0;a")});else{for(h in o={},v)"ease"!==h&&"easeEach"!==h&&function(t,r,e,i){var n,s,a=r.ease||i||"power1.inOut";if(R(r))s=e[t]||(e[t]=[]),r.forEach(function(t,e){return s.push({t:e/(r.length-1)*100,v:t,e:a})});else for(n in r)s=e[n]||(e[n]=[]),"ease"!==n&&s.push({t:parseFloat(t),v:r[n],e:a})}(h,v[h],o,v.easeEach);for(h in o)for(b=o[h].sort(function(t,e){return t.t-e.t}),a=k=0;as.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},G=(mr.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=nr,this.m=t,this.mt=r,this.tween=e},mr);function mr(t,e,r,i,n,s,a,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=s||ur,this.d=a||this,this.set=o||sr,this.pr=u||0,(this._next=t)&&(t._prev=this)}c(Pe+"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 Me[t]=1}),a.TweenMax=a.TweenLite=H,a.TimelineLite=a.TimelineMax=Q,I=new Q({sortChildren:!1,defaults:he,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),U.stringFilter=Pt;var gr={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r