/*! * gsap 3.7.1 * * * @license copyright 2021, greensock. all rights reserved. * subject to the terms at 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(e){"use strict";function _inheritsloose(t,e){t.prototype=object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertthisinitialized(t){if(void 0===t)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return t}function o(t){return"string"==typeof t}function p(t){return"function"==typeof t}function q(t){return"number"==typeof t}function r(t){return void 0===t}function s(t){return"object"==typeof t}function t(t){return!1!==t}function u(){return"undefined"!=typeof window}function v(t){return p(t)||o(t)}function m(t){return(h=mt(t,ot))&&oe}function n(t,e){return console.warn("invalid property",t,"set to",e,"missing plugin? gsap.registerplugin()")}function o(t,e){return!e&&console.warn(t)}function p(t,e){return t&&(ot[t]=e)&&h&&(h[t]=e)||ot}function q(){return 0}function $(t){var e,r,i=t[0];if(s(i)||p(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=pt.length;r--&&!pt[r].targettest(i););e=pt[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new lt(t[r],e)))||t.splice(r,1);return t}function _(t){return t._gsap||$(xt(t))[0]._gsap}function aa(t,e,i){return(i=t[e])&&p(i)?t[e]():r(i)&&t.getattribute&&t.getattribute(e)||i}function ba(t,e){return(t=t.split(",")).foreach(e)||t}function ca(t){return math.round(1e5*t)/1e5||0}function da(t,e){for(var r=e.length,i=0;t.indexof(e[i])<0&&++it._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t}function va(t){return t._repeat?gt(t._ttime,t=t.duration()+t._rdelay)*t:0}function xa(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalduration():e._tdur)}function ya(t){return t._end=ca(t._start+(t._tdur/math.abs(t._ts||t._rts||u)||0))}function za(t,e){var r=t._dp;return r&&r.smoothchildtiming&&t._ts&&(t._start=ca(r._time-(0u)&&e.render(r,!0)),sa(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dura;)s=s._prev;s?(e._next=s._next,s._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=s,e.parent=e._dp=t}(t,e,"_first","_last",t._sort?"_start":0),vt(e)||(t._recent=e),i||aa(t,e),t}function ca(t,e){return(ot.scrolltrigger||n("scrolltrigger",e))&&ot.scrolltrigger.create(e,t)}function da(t,e,r,i){return ut(t,e),t._initted?!r&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&f!==st.frame?(ht.push(t),t._lazy=[e,i],1):void 0:1}function ia(t,e,r,i){var n=t._repeat,a=ca(e)||0,s=t._ttime/t._tdur;return s&&!i&&(t._time*=a/t._dur),t._dur=a,t._tdur=n?n<0?1e10:ca(a*(n+1)+t._rdelay*n):a,s&&!i?za(t,t._ttime=t._tdur*s):t.parent&&ya(t),r||sa(t.parent,t),t}function ja(t){return t instanceof qt?sa(t):ia(t,t._dur)}function ma(e,r,i){var n,a,s=q(r[1]),o=(s?2:1)+(e<2?0:1),u=r[o];if(s&&(u.duration=r[1]),u.parent=i,e){for(n=u,a=i;a&&!("immediaterender"in n);)n=a.vars.defaults||{},a=t(a.vars.inherit)&&a.parent;u.immediaterender=t(n.immediaterender),e<2?u.runbackwards=1:u.startat=r[o-1]}return new qt(r[0],u,r[1+o])}function na(t,e){return t||0===t?e(t):e}function pa(t){if("string"!=typeof t)return"";var e=st.exec(t);return e?t.substr(e.index+e[0].length):""}function sa(t,e){return t&&s(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&s(t[0]))&&!t.nodetype&&t!==i}function wa(t){return t.sort(function(){return.5-math.random()})}function xa(t){if(p(t))return t;var _=s(t)?t:{each:t},m=ft(_.ease),g=_.from||0,v=parsefloat(_.base)||0,y={},e=0(n=math.abs(n))&&(a=i,o=n);return a}function kb(t){return ra(t),t.scrolltrigger&&t.scrolltrigger.kill(!1),t.progress()<1&&pt(t,"oninterrupt"),t}function pb(t,e,r){return(6*(t=t<0?t+1:1>16,t>>8&kt,t&kt]:0:mt.black;if(!c){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),mt[t])c=mt[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&kt,c&kt,parseint(t.substr(7),16)/255];c=[(t=parseint(t.substr(1),16))>>16,t>>8&kt,t&kt]}else if("hsl"===t.substr(0,3))if(c=d=t.match(tt),e){if(~t.indexof("="))return c=t.match(et),r&&c.length<4&&(c[3]=1),c}else s=+c[0]%360/360,o=c[1]/100,i=2*(u=c[2]/100)-(n=u<=.5?u*(o+1):u+o-u*o),3=x?u.endtime(!1):t._dur;return o(e)&&(isnan(e)||e in s)?(n=e.charat(0),a="%"===e.substr(-1),i=e.indexof("="),"<"===n||">"===n?(0<=i&&(e=e.replace(/=/,"")),("<"===n?u._start:u.endtime(0<=u._repeat))+(parsefloat(e.substr(1))||0)*(a?(i<0?u:r).totalduration()/100:1)):i<0?(e in s||(s[e]=h),s[e]):(n=parsefloat(e.charat(i-1)+e.substr(i+1)),a&&r&&(n=n/100*(h(r)?r[0]:r).totalduration()),1=r&&te)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if(!i._dur&&"ispause"===i.data&&i._start=n._start)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0=this.totalduration()||!v&&_)&&(f!==this._start&&math.abs(l)===math.abs(this._ts)||this._lock||(!t&&g||!(v===m&&0=i&&(a instanceof qt?e&&n.push(a):(r&&n.push(a),t&&n.push.apply(n,a.getchildren(!0,e,r)))),a=a._next;return n},e.getbyid=function getbyid(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 remove(t){return o(t)?this.removelabel(t):p(t)?this.killtweensof(t):(qa(this,t),t===this._recent&&(this._recent=this._last),sa(this))},e.totaltime=function totaltime(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ca(st.time-(0e:!e||a.isactive())&&i.push(a):(r=a.gettweensof(n,e)).length&&i.push.apply(i,r),a=a._next;return i},e.tweento=function tweento(t,e){e=e||{};var r,i=this,n=bt(i,t),a=e.startat,s=e.onstart,o=e.onstartparams,u=e.immediaterender,h=qt.to(i,ia({ease:e.ease||"none",lazy:!1,immediaterender:!1,time:n,overwrite:"auto",duration:e.duration||math.abs((n-(a&&"time"in a?a.time:i._time))/i.timescale())||u,onstart:function onstart(){if(i.pause(),!r){var t=e.duration||math.abs((n-(a&&"time"in a?a.time:i._time))/i.timescale());h._dur!==t&&ia(h,t,0,1).render(h._time,!0,!0),r=1}s&&s.apply(h,o||[])}},e));return u?h.render(0):h},e.tweenfromto=function tweenfromto(t,e,r){return this.tweento(e,ia({startat:{time:bt(this,t)}},r))},e.recent=function recent(){return this._recent},e.nextlabel=function nextlabel(t){return void 0===t&&(t=this._time),ib(this,bt(this,t))},e.previouslabel=function previouslabel(t){return void 0===t&&(t=this._time),ib(this,bt(this,t),1)},e.currentlabel=function currentlabel(t){return arguments.length?this.seek(t,!0):this.previouslabel(this._time+u)},e.shiftchildren=function shiftchildren(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,a=this.labels;n;)n._start>=r&&(n._start+=t,n._end+=t),n=n._next;if(e)for(i in a)a[i]>=r&&(a[i]+=t);return sa(this)},e.invalidate=function invalidate(){var t=this._first;for(this._lock=0;t;)t.invalidate(),t=t._next;return n.prototype.invalidate.call(this)},e.clear=function clear(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={}),sa(this)},e.totalduration=function totalduration(t){var e,r,i,n=0,a=this,s=a._last,o=x;if(arguments.length)return a.timescale((a._repeat<0?a.duration():a.totalduration())/(a.reversed()?-t:t));if(a._dirty){for(i=a.parent;s;)e=s._prev,s._dirty&&s.totalduration(),o<(r=s._start)&&a._sort&&s._ts&&!a._lock?(a._lock=1,ba(a,s,r-s._delay,1)._lock=0):o=r,r<0&&s._ts&&(n-=r,(!i&&!a._dp||i&&i.smoothchildtiming)&&(a._start+=r/a._ts,a._time-=r,a._ttime-=r),a.shiftchildren(-r,!1,-infinity),o=0),s._end>n&&s._ts&&(n=s._end),s=e;ia(a,a===r&&a._time>n?a._time:n,1,1),a._dirty=0}return a._tdur},timeline.updateroot=function updateroot(t){if(r._ts&&(fa(r,xa(t,r)),f=st.frame),st.frame>=ct){ct+=y.autosleep||120;var e=r._first;if((!e||!e._ts)&&y.autosleep&&st._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||st.sleep()}}},timeline}(nt);ia(qt.prototype,{_lock:0,_haspause:0,_forcing:0});function sb(t,e,r,i,n,a){var u,h,l,f;if(ft[t]&&!1!==(u=new ft[t]).init(n,u.rawvars?e[t]:function _processvars(t,e,r,i,n){if(p(t)&&(t=vt(t,n,e,r,i)),!s(t)||t.style&&t.nodetype||h(t)||z(t))return o(t)?vt(t,n,e,r,i):t;var a,u={};for(a in t)u[a]=vt(t[a],n,e,r,i);return u}(e[t],i,n,a,r),r,i,a)&&(r._pt=h=new ae(r._pt,n,t,0,1,u.render,u,0,u.priority),r!==d))for(l=r._ptlookup[r._targets.indexof(n)],f=u._props.length;f--;)l[u._props[f]]=h;return u}var yt,xt=function _addproptween(t,e,r,i,n,a,s,u,h){p(i)&&(i=i(n||0,t,a));var l,f=t[e],d="get"!==r?r:p(f)?h?t[e.indexof("set")||!p(t["get"+e.substr(3)])?e:"get"+e.substr(3)](h):t[e]():f,c=p(f)?h?$t:kt:gt;if(o(i)&&(~i.indexof("random(")&&(i=fb(i)),"="===i.charat(1)&&(!(l=parsefloat(d)+parsefloat(i.substr(2))*("-"===i.charat(0)?-1:1)+(pa(d)||0))&&0!==l||(i=l))),d!==i)return isnan(d*i)||""===i?(f||e in t||n(e,i),function _addcomplexstringproptween(t,e,r,i,n,a,s){var o,u,h,l,f,d,c,p,_=new ae(this._pt,t,e,0,1,te,null,n),m=0,g=0;for(_.b=r,_.e=i,r+="",(c=~(i+="").indexof("random("))&&(i=fb(i)),a&&(a(p=[r,i],t,e),r=p[0],i=p[1]),u=r.match(it)||[];o=it.exec(i);)l=o[0],f=i.substring(m,o.index),h?h=(h+1)%5:"rgba("===f.substr(-5)&&(h=1),l!==u[g++]&&(d=parsefloat(u[g-1])||0,_._pt={_next:_._pt,p:f||1===g?f:",",s:d,c:"="===l.charat(1)?parsefloat(l.substr(2))*("-"===l.charat(0)?-1:1):parsefloat(l)-d,m:h&&h<4?math.round:0},m=it.lastindex);return _.c=m":i*b)})}):w.foreach(function(t){return o.to(a,t,">")});else{if(l=a.length,c=b?xa(b):q,s(b))for(f in b)~jt.indexof(f)&&((p=p||{})[f]=b[f]);for(u=0;u=t._tdur||e<0)&&t.ratio===u&&(u&&ra(t,1),r||(pt(t,u?"oncomplete":"onreversecomplete",!0),t._prom&&t._prom()))}else t._ztime||(t._ztime=e)}(this,t,e,r);return this},e.targets=function targets(){return this._targets},e.invalidate=function invalidate(){return this._pt=this._op=this._startat=this._onupdate=this._lazy=this.ratio=0,this._ptlookup=[],this.timeline&&this.timeline.invalidate(),c.prototype.invalidate.call(this)},e.kill=function kill(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?kb(this):this;if(this.timeline){var r=this.timeline.totalduration();return this.timeline.killtweensof(t,e,yt&&!0!==yt.vars.overwrite)._first||kb(this),this.parent&&r!==this.timeline.totalduration()&&ia(this,this._dur*this.timeline._tdur/r,0,1),this}var i,n,a,s,u,h,l,f=this._targets,d=t?xt(t):f,c=this._ptlookup,p=this._pt;if((!e||"all"===e)&&function _arraysmatch(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(f,d))return"all"===e&&(this._pt=0),kb(this);for(i=this._op=this._op||[],"all"!==e&&(o(e)&&(u={},ba(e,function(t){return u[t]=1}),e=u),e=function _addaliasestovars(t,e){var r,i,n,a,s=t[0]?_(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(i in r=mt({},e),o)if(i in r)for(n=(a=o[i].split(",")).length;n--;)r[a[n]]=r[i];return r}(f,e)),l=f.length;l--;)if(~d.indexof(f[l]))for(u in n=c[l],"all"===e?(i[l]=e,s=n,a={}):(a=i[l]=i[l]||{},s=e),s)(h=n&&n[u])&&("kill"in h.d&&!0!==h.d.kill(u)||qa(this,h,"_pt"),delete n[u]),"all"!==a&&(a[u]=1);return this._initted&&!this._pt&&p&&kb(this),this},tween.to=function to(t,e,r){return new tween(t,e,r)},tween.from=function from(t,e){return ma(1,arguments)},tween.delayedcall=function delayedcall(t,e,r,i){return new tween(e,0,{immediaterender:!1,lazy:!1,overwrite:!1,delay:t,oncomplete:e,onreversecomplete:e,oncompleteparams:r,onreversecompleteparams:r,callbackscope:i})},tween.fromto=function fromto(t,e,r){return ma(2,arguments)},tween.set=function set(t,e){return e.duration=0,e.repeatdelay||(e.repeat=0),new tween(t,e)},tween.killtweensof=function killtweensof(t,e,r){return r.killtweensof(t,e,r)},tween}(nt);ia(qt.prototype,{_targets:[],_lazy:0,_startat:0,_op:0,_oninit:0}),ba("staggerto,staggerfrom,staggerfromto",function(r){qt[r]=function(){var t=new qt,e=wt.call(arguments,0);return e.splice("staggerfromto"===r?5:4,0,0),t[r].apply(t,e)}});function bc(t,e,r){return t.setattribute(e,r)}function jc(t,e,r,i){i.mset(t,e,i.m.call(i.tween,r,i.mt),i)}var gt=function _setterplain(t,e,r){return t[e]=r},kt=function _setterfunc(t,e,r){return t[e](r)},$t=function _setterfuncwithparam(t,e,r,i){return t[e](i.fp,r)},jt=function _getsetter(t,e){return p(t[e])?kt:r(t[e])&&t.setattribute?bc:gt},zt=function _renderplain(t,e){return e.set(e.t,e.p,math.round(1e6*(e.s+e.c*t))/1e6,e)},ht=function _renderboolean(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},te=function _rendercomplexstring(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)},ee=function _renderproptweens(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},re=function _addpluginmodifier(t,e,r,i){for(var n,a=this._pt;a;)n=a._next,a.p===i&&a.modifier(t,e,r),a=n},ie=function _killproptweensof(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?qa(this,i,"_pt"):i.dep||(e=1),i=r;return!e},ne=function _sortproptweensbypriority(t){for(var e,r,i,n,a=t._pt;a;){for(e=a._next,r=i;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:n)?a._prev._next=a:i=a,(a._next=r)?r._prev=a:n=a,a=e}t._pt=i},ae=(proptween.prototype.modifier=function modifier(t,e,r){this.mset=this.mset||this.set,this.set=jc,this.m=t,this.mt=r,this.tween=e},proptween);function proptween(t,e,r,i,n,a,s,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=a||zt,this.d=s||this,this.set=o||gt,this.pr=u||0,(this._next=t)&&(t._prev=this)}ba(_t+"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 ut[t]=1}),ot.tweenmax=ot.tweenlite=qt,ot.timelinelite=ot.timelinemax=qt,r=new qt({sortchildren:!1,defaults:l,autoremovechildren:!0,id:"root",smoothchildtiming:!0}),y.stringfilter=vb;var se={registerplugin:function registerplugin(){for(var t=arguments.length,e=new array(t),r=0;r