1?(e?(r[t]=e,i&&(r[t+"Params"]=i),"onUpdate"===t&&(this._onUpdate=e)):delete r[t],this):r[t]},e.then=function(t){var e=this;return new Promise((function(i){var r=X(t)?t:Ct,n=function(){var t=e.then;e.then=null,X(r)&&(r=r(e))&&(r.then||r===e)&&(e.then=t),i(r),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?n():e._prom=n}))},e.kill=function(){we(this)},t}();St(Xe.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var We=function(t){function e(e,i){var r;return void 0===e&&(e={}),(r=t.call(this,e)||this).labels={},r.smoothChildTiming=!!e.smoothChildTiming,r.autoRemoveChildren=!!e.autoRemoveChildren,r._sort=G(e.sortChildren),u&&Gt(e.parent||u,s(r),i),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&Ht(s(r),e.scrollTrigger),r}a(e,t);var i=e.prototype;return i.to=function(t,e,i){return re(0,arguments,this),this},i.from=function(t,e,i){return re(1,arguments,this),this},i.fromTo=function(t,e,i,r){return re(2,arguments,this),this},i.set=function(t,e,i){return e.duration=0,e.parent=this,zt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new ti(t,e,ie(this,i),1),this},i.call=function(t,e,i){return Gt(this,ti.delayedCall(0,t,e),i)},i.staggerTo=function(t,e,i,r,n,s,a){return i.duration=e,i.stagger=i.stagger||r,i.onComplete=s,i.onCompleteParams=a,i.parent=this,new ti(t,i,ie(this,n)),this},i.staggerFrom=function(t,e,i,r,n,s,a){return i.runBackwards=1,zt(i).immediateRender=G(i.immediateRender),this.staggerTo(t,e,i,r,n,s,a)},i.staggerFromTo=function(t,e,i,r,n,s,a,o){return r.startAt=i,zt(r).immediateRender=G(r.immediateRender),this.staggerTo(t,e,r,n,s,a,o)},i.render=function(t,e,i){var r,n,s,a,o,h,l,f,c,p,d,_,m=this._time,g=this._dirty?this.totalDuration():this._tDur,v=this._dur,y=this!==u&&t>g-1e-8&&t>=0?g:t<1e-8?0:t,w=this._zTime<0!=t<0&&(this._initted||!v);if(y!==this._tTime||i||w){if(m!==this._time&&v&&(y+=this._time-m,t+=this._time-m),r=y,c=this._start,h=!(f=this._ts),w&&(v||(m=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(d=this._yoyo,o=v+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,i);if(r=Mt(y%o),y===g?(a=this._repeat,r=v):((a=~~(y/o))&&a===y/o&&(r=v,a--),r>v&&(r=v)),p=Yt(this._tTime,o),!m&&this._tTime&&p!==a&&(p=a),d&&1&a&&(r=v-r,_=1),a!==p&&!this._lock){var b=d&&1&p,x=b===(d&&1&a);if(ae)for(r=t._first;r&&r._start<=i;){if(!r._dur&&"isPause"===r.data&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=i;){if(!r._dur&&"isPause"===r.data&&r._start=m&&t>=0)for(n=this._first;n;){if(s=n._next,(n._act||r>=n._start)&&n._ts&&l!==n){if(n.parent!==this)return this.render(t,e,i);if(n.render(n._ts>0?(r-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(r-n._start)*n._ts,e,i),r!==this._time||!this._ts&&!h){l=0,s&&(y+=this._zTime=-1e-8);break}}n=s}else{n=this._last;for(var T=t<0?t:r;n;){if(s=n._prev,(n._act||T<=n._end)&&n._ts&&l!==n){if(n.parent!==this)return this.render(t,e,i);if(n.render(n._ts>0?(T-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(T-n._start)*n._ts,e,i),r!==this._time||!this._ts&&!h){l=0,s&&(y+=this._zTime=T?-1e-8:1e-8);break}}n=s}}if(l&&!e&&(this.pause(),l.render(r>=m?0:-1e-8)._zTime=r>=m?1:-1,this._ts))return this._start=c,Wt(this),this.render(t,e,i);this._onUpdate&&!e&&ye(this,"onUpdate",!0),(y===g&&g>=this.totalDuration()||!y&&m)&&(c!==this._start&&Math.abs(f)===Math.abs(this._ts)||this._lock||((t||!v)&&(y===g&&this._ts>0||!y&&this._ts<0)&&Bt(this,1),e||t<0&&!m||!y&&!m&&g||(ye(this,y===g&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(y0)&&this._prom())))}return this},i.add=function(t,e){var i=this;if(W(e)||(e=ie(this,e,t)),!(t instanceof Xe)){if($(t))return t.forEach((function(t){return i.add(t,e)})),this;if(Y(t))return this.addLabel(t,e);if(!X(t))return this;t=ti.delayedCall(0,t)}return this!==t?Gt(this,t,e):this},i.getChildren=function(t,e,i,r){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===i&&(i=!0),void 0===r&&(r=-1e8);for(var n=[],s=this._first;s;)s._start>=r&&(s instanceof ti?e&&n.push(s):(i&&n.push(s),t&&n.push.apply(n,s.getChildren(!0,e,i)))),s=s._next;return n},i.getById=function(t){for(var e=this.getChildren(1,1,1),i=e.length;i--;)if(e[i].vars.id===t)return e[i]},i.remove=function(t){return Y(t)?this.removeLabel(t):X(t)?this.killTweensOf(t):(Ft(this,t),t===this._recent&&(this._recent=this._last),qt(this))},i.totalTime=function(e,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Mt(Ce.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,i),this._forcing=0,this):this._tTime},i.addLabel=function(t,e){return this.labels[t]=ie(this,e),this},i.removeLabel=function(t){return delete this.labels[t],this},i.addPause=function(t,e,i){var r=ti.delayedCall(0,e||ct,i);return r.data="isPause",this._hasPause=1,Gt(this,r,ie(this,t))},i.removePause=function(t){var e=this._first;for(t=ie(this,t);e;)e._start===t&&"isPause"===e.data&&Bt(e),e=e._next},i.killTweensOf=function(t,e,i){for(var r=this.getTweensOf(t,i),n=r.length;n--;)Ve!==r[n]&&r[n].kill(t,e);return this},i.getTweensOf=function(t,e){for(var i,r=[],n=he(t),s=this._first,a=W(e);s;)s instanceof ti?Dt(s._targets,n)&&(a?(!Ve||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())&&r.push(s):(i=s.getTweensOf(n,e)).length&&r.push.apply(r,i),s=s._next;return r},i.tweenTo=function(t,e){e=e||{};var i,r=this,n=ie(r,t),s=e,a=s.startAt,o=s.onStart,u=s.onStartParams,h=s.immediateRender,l=ti.to(r,St({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(a&&"time"in a?a.time:r._time))/r.timeScale())||1e-8,onStart:function(){if(r.pause(),!i){var t=e.duration||Math.abs((n-(a&&"time"in a?a.time:r._time))/r.timeScale());l._dur!==t&&Kt(l,t,0,1).render(l._time,!0,!0),i=1}o&&o.apply(l,u||[])}},e));return h?l.render(0):l},i.tweenFromTo=function(t,e,i){return this.tweenTo(e,St({startAt:{time:ie(this,t)}},i))},i.recent=function(){return this._recent},i.nextLabel=function(t){return void 0===t&&(t=this._time),ve(this,ie(this,t))},i.previousLabel=function(t){return void 0===t&&(t=this._time),ve(this,ie(this,t),1)},i.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+1e-8)},i.shiftChildren=function(t,e,i){void 0===i&&(i=0);for(var r,n=this._first,s=this.labels;n;)n._start>=i&&(n._start+=t,n._end+=t),n=n._next;if(e)for(r in s)s[r]>=i&&(s[r]+=t);return qt(this)},i.invalidate=function(){var e=this._first;for(this._lock=0;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},i.clear=function(t){void 0===t&&(t=!0);for(var e,i=this._first;i;)e=i._next,this.remove(i),i=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),qt(this)},i.totalDuration=function(t){var e,i,r,n=0,s=this,a=s._last,o=1e8;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(r=s.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),(i=a._start)>o&&s._sort&&a._ts&&!s._lock?(s._lock=1,Gt(s,a,i-a._delay,1)._lock=0):o=i,i<0&&a._ts&&(n-=i,(!r&&!s._dp||r&&r.smoothChildTiming)&&(s._start+=i/s._ts,s._time-=i,s._tTime-=i),s.shiftChildren(-i,!1,-1/0),o=0),a._end>n&&a._ts&&(n=a._end),a=e;Kt(s,s===u&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(t){if(u._ts&&(At(u,Xt(t,u)),p=Ce.frame),Ce.frame>=vt){vt+=R.autoSleep||120;var e=u._first;if((!e||!e._ts)&&R.autoSleep&&Ce._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Ce.sleep()}}},e}(Xe);St(We.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ve,Qe=function(t,e,i,r,n,s,a){var o,u,h,l,f,c,p,d,_=new di(this._pt,t,e,0,1,ui,null,n),m=0,g=0;for(_.b=i,_.e=r,i+="",(p=~(r+="").indexOf("random("))&&(r=me(r)),s&&(s(d=[i,r],t,e),i=d[0],r=d[1]),u=i.match(it)||[];o=it.exec(r);)l=o[0],f=r.substring(m,o.index),h?h=(h+1)%5:"rgba("===f.substr(-5)&&(h=1),l!==u[g++]&&(c=parseFloat(u[g-1])||0,_._pt={_next:_._pt,p:f||1===g?f:",",s:c,c:"="===l.charAt(1)?parseFloat(l.substr(2))*("-"===l.charAt(0)?-1:1):parseFloat(l)-c,m:h&&h<4?Math.round:0},m=it.lastIndex);return _.c=m0&&!E&&(e._startAt=0),C&&i<=0)return void(i&&(e._zTime=i))}else!1===E&&(e._startAt=0);else if(D&&C)if(S)!E&&(e._startAt=0);else if(i&&(b=!1),s=St({overwrite:!1,data:"isFromStart",lazy:b&&G(x),immediateRender:b,stagger:0,parent:I},r),m&&(s[c.prop]=m),Bt(e._startAt=ti.set(P,s)),i<0&&e._startAt.render(-1,!0),b){if(!i)return}else t(e._startAt,1e-8);for(e._pt=0,x=C&&G(x)||x&&!C,n=0;n":e*b)}))})):T.forEach((function(t){return h.to(A,t,">")}));else{if(c=A.length,_=b?fe(b):ct,Q(b))for(p in b)~$e.indexOf(p)&&(m||(m={}),m[p]=b[p]);for(l=0;lp-1e-8&&t>=0?p:t<1e-8?0:t;if(d){if(_!==this._tTime||!t||i||!this._initted&&this._tTime||this._startAt&&this._zTime<0!=t<0){if(r=_,l=this.timeline,this._repeat){if(a=d+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*a+t,e,i);if(r=Mt(_%a),_===p?(s=this._repeat,r=d):((s=~~(_/a))&&s===_/a&&(r=d,s--),r>d&&(r=d)),(u=this._yoyo&&1&s)&&(f=this._yEase,r=d-r),o=Yt(this._tTime,a),r===c&&!i&&this._initted)return this;s!==o&&(l&&this._yEase&&Fe(l,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=i=1,this.render(Mt(a*s),!0).invalidate()._lock=0))}if(!this._initted){if(Zt(this,t<0?t:r,i,e))return this._tTime=0,this;if(d!==this._dur)return this.render(t,e,i)}if(this._tTime=_,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=h=(f||this._ease)(r/d),this._from&&(this.ratio=h=1-h),r&&!c&&!e&&(ye(this,"onStart"),this._tTime!==_))return this;for(n=this._pt;n;)n.r(h,n.d),n=n._next;l&&l.render(t<0?t:!r&&u?-1e-8:l._dur*h,e,i)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,i),ye(this,"onUpdate")),this._repeat&&s!==o&&this.vars.onRepeat&&!e&&this.parent&&ye(this,"onRepeat"),_!==this._tDur&&_||this._tTime!==_||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,!0),(t||!d)&&(_===this._tDur&&this._ts>0||!_&&this._ts<0)&&Bt(this,1),e||t<0&&!c||!_&&!c||(ye(this,_===p?"onComplete":"onReverseComplete",!0),this._prom&&!(_0)&&this._prom()))}}else!function(t,e,i,r){var n,s,a,o=t.ratio,u=e<0||!e&&(!t._start&&Jt(t)&&(t._initted||!$t(t))||(t._ts<0||t._dp._ts<0)&&!$t(t))?0:1,h=t._rDelay,l=0;if(h&&t._repeat&&(l=se(0,t._tDur,e),s=Yt(l,h),a=Yt(t._tTime,h),t._yoyo&&1&s&&(u=1-u),s!==a&&(o=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==o||r||1e-8===t._zTime||!e&&t._zTime){if(!t._initted&&Zt(t,e,r,i))return;for(a=t._zTime,t._zTime=e||(i?1e-8:0),i||(i=e&&!a),t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=l,n=t._pt;n;)n.r(u,n.d),n=n._next;t._startAt&&e<0&&t._startAt.render(e,!0,!0),t._onUpdate&&!i&&ye(t,"onUpdate"),l&&t._repeat&&!i&&t.parent&&ye(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&Bt(t,1),i||(ye(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,i);return this},i.targets=function(){return this._targets},i.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)},i.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?we(this):this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Ve&&!0!==Ve.vars.overwrite)._first||we(this),this.parent&&i!==this.timeline.totalDuration()&&Kt(this,this._dur*this.timeline._tDur/i,0,1),this}var r,n,s,a,o,u,h,l=this._targets,f=t?he(t):l,c=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function(t,e){for(var i=t.length,r=i===e.length;r&&i--&&t[i]===e[i];);return i<0}(l,f))return"all"===e&&(this._pt=0),we(this);for(r=this._op=this._op||[],"all"!==e&&(Y(e)&&(o={},Ot(e,(function(t){return o[t]=1})),e=o),e=function(t,e){var i,r,n,s,a=t[0]?xt(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(r in i=It({},e),o)if(r in i)for(n=(s=o[r].split(",")).length;n--;)i[s[n]]=i[r];return i}(l,e)),h=l.length;h--;)if(~f.indexOf(l[h]))for(o in n=c[h],"all"===e?(r[h]=e,a=n,s={}):(s=r[h]=r[h]||{},a=e),a)(u=n&&n[o])&&("kill"in u.d&&!0!==u.d.kill(o)||Ft(this,u,"_pt"),delete n[o]),"all"!==s&&(s[o]=1);return this._initted&&!this._pt&&p&&we(this),this},e.to=function(t,i){return new e(t,i,arguments[2])},e.from=function(t,e){return re(1,arguments)},e.delayedCall=function(t,i,r,n){return new e(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:i,onReverseComplete:i,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:n})},e.fromTo=function(t,e,i){return re(2,arguments)},e.set=function(t,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new e(t,i)},e.killTweensOf=function(t,e,i){return u.killTweensOf(t,e,i)},e}(Xe);St(ti.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Ot("staggerTo,staggerFrom,staggerFromTo",(function(t){ti[t]=function(){var e=new We,i=oe.call(arguments,0);return i.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,i)}}));var ei=function(t,e,i){return t[e]=i},ii=function(t,e,i){return t[e](i)},ri=function(t,e,i,r){return t[e](r.fp,i)},ni=function(t,e,i){return t.setAttribute(e,i)},si=function(t,e){return X(t[e])?ii:V(t[e])&&t.setAttribute?ni:ei},ai=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},oi=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},ui=function(t,e){var i=e._pt,r="";if(!t&&e.b)r=e.b;else if(1===t&&e.e)r=e.e;else{for(;i;)r=i.p+(i.m?i.m(i.s+i.c*t):Math.round(1e4*(i.s+i.c*t))/1e4)+r,i=i._next;r+=e.c}e.set(e.t,e.p,r,e)},hi=function(t,e){for(var i=e._pt;i;)i.r(t,i.d),i=i._next},li=function(t,e,i,r){for(var n,s=this._pt;s;)n=s._next,s.p===r&&s.modifier(t,e,i),s=n},fi=function(t){for(var e,i,r=this._pt;r;)i=r._next,r.p===t&&!r.op||r.op===t?Ft(this,r,"_pt"):r.dep||(e=1),r=i;return!e},ci=function(t,e,i,r){r.mSet(t,e,r.m.call(r.tween,i,r.mt),r)},pi=function(t){for(var e,i,r,n,s=t._pt;s;){for(e=s._next,i=r;i&&i.pr>s.pr;)i=i._next;(s._prev=i?i._prev:n)?s._prev._next=s:r=s,(s._next=i)?i._prev=s:n=s,s=e}t._pt=r},di=function(){function t(t,e,i,r,n,s,a,o,u){this.t=e,this.s=r,this.c=n,this.p=i,this.r=s||ai,this.d=a||this,this.set=o||ei,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,i){this.mSet=this.mSet||this.set,this.set=ci,this.m=t,this.mt=i,this.tween=e},t}();Ot(wt+"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 pt[t]=1})),at.TweenMax=at.TweenLite=ti,at.TimelineLite=at.TimelineMax=We,u=new We({sortChildren:!1,defaults:z,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),R.stringFilter=Ee;var _i={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),i=0;i1){var r=t.map((function(t){return vi.quickSetter(t,e,i)})),n=r.length;return function(t){for(var e=n;e--;)r[e](t)}}t=t[0]||{};var s=mt[e],a=xt(t),o=a.harness&&(a.harness.aliases||{})[e]||e,u=s?function(e){var r=new s;d._pt=0,r.init(t,i?e+i:e,d,0,[t]),r.render(1,r),d._pt&&hi(1,d)}:a.set(t,o);return s?u:function(e){return u(t,o,i?e+i:e,a,1)}},isTweening:function(t){return u.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Be(t.ease,z.ease)),Lt(z,t||{})},config:function(t){return Lt(R,t||{})},registerEffect:function(t){var e=t.name,i=t.effect,r=t.plugins,n=t.defaults,s=t.extendTimeline;(r||"").split(",").forEach((function(t){return t&&!mt[t]&&!at[t]&<(e+" effect requires "+t+" plugin.")})),gt[e]=function(t,e,r){return i(he(t),St(e||{},n),r)},s&&(We.prototype[e]=function(t,i,r){return this.add(gt[e](t,Q(i)?i:(r=i)&&{},this),r)})},registerEase:function(t,e){Pe[t]=Be(e)},parseEase:function(t,e){return arguments.length?Be(t,e):Pe},getById:function(t){return u.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var i,r,n=new We(t);for(n.smoothChildTiming=G(t.smoothChildTiming),u.remove(n),n._dp=0,n._time=n._tTime=u._time,i=u._first;i;)r=i._next,!e&&!i._dur&&i instanceof ti&&i.vars.onComplete===i._targets[0]||Gt(n,i,i._start-i._delay),i=r;return Gt(u,n,0),n},utils:{wrap:function t(e,i,r){var n=i-e;return $(e)?_e(e,t(0,e.length),i):ne(r,(function(t){return(n+(t-e)%n)%n+e}))},wrapYoyo:function t(e,i,r){var n=i-e,s=2*n;return $(e)?_e(e,t(0,e.length-1),i):ne(r,(function(t){return e+((t=(s+(t-e)%s)%s||0)>n?s-t:t)}))},distribute:fe,random:de,snap:pe,normalize:function(t,e,i){return ge(t,e,0,1,i)},getUnit:ae,clamp:function(t,e,i){return ne(i,(function(i){return se(t,e,i)}))},splitColor:Oe,toArray:he,selector:function(t){return t=he(t)[0]||lt("Invalid scope")||{},function(e){var i=t.current||t.nativeElement||t;return he(e,i.querySelectorAll?i:i===t?lt("Invalid scope")||f.createElement("div"):t)}},mapRange:ge,pipe:function(){for(var t=arguments.length,e=new Array(t),i=0;i=0?Zi[n]:"")+t},$i=function(){"undefined"!=typeof window&&window.document&&(yi=window,wi=yi.document,bi=wi.documentElement,Ti=Gi("div")||{style:{}},Gi("div"),Vi=Ji(Vi),Qi=Vi+"Origin",Ti.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Mi=!!Ji("perspective"),xi=1)},Ki=function t(e){var i,r=Gi("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,s=this.nextSibling,a=this.style.cssText;if(bi.appendChild(r),r.appendChild(this),this.style.display="block",e)try{i=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(i=this._gsapBBox());return n&&(s?n.insertBefore(this,s):n.appendChild(this)),bi.removeChild(r),this.style.cssText=a,i},tr=function(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},er=function(t){var e;try{e=t.getBBox()}catch(i){e=Ki.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Ki||(e=Ki.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+tr(t,["x","cx","x1"])||0,y:+tr(t,["y","cy","y1"])||0,width:0,height:0}},ir=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!er(t))},rr=function(t,e){if(e){var i=t.style;e in Di&&e!==Qi&&(e=Vi),i.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),i.removeProperty(e.replace(Ci,"-$1").toLowerCase())):i.removeAttribute(e)}},nr=function(t,e,i,r,n,s){var a=new di(t._pt,e,i,0,1,s?qi:Bi);return t._pt=a,a.b=r,a.e=n,t._props.push(i),a},sr={deg:1,rad:1,turn:1},ar=function t(e,i,r,n){var s,a,o,u,h=parseFloat(r)||0,l=(r+"").trim().substr((h+"").length)||"px",f=Ti.style,c=Si.test(i),p="svg"===e.tagName.toLowerCase(),d=(p?"client":"offset")+(c?"Width":"Height"),_=100,m="px"===n,g="%"===n;return n===l||!h||sr[n]||sr[l]?h:("px"!==l&&!m&&(h=t(e,i,r,"px")),u=e.getCTM&&ir(e),!g&&"%"!==l||!Di[i]&&!~i.indexOf("adius")?(f[c?"width":"height"]=_+(m?l:n),a=~i.indexOf("adius")||"em"===n&&e.appendChild&&!p?e:e.parentNode,u&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==wi&&a.appendChild||(a=wi.body),(o=a._gsap)&&g&&o.width&&c&&o.time===Ce.time?Mt(h/o.width*_):((g||"%"===l)&&(f.position=Hi(e,"position")),a===e&&(f.position="static"),a.appendChild(Ti),s=Ti[d],a.removeChild(Ti),f.position="absolute",c&&g&&((o=xt(a)).time=Ce.time,o.width=a[d]),Mt(m?s*h/_:s&&h?_/s*h:0))):(s=u?e.getBBox()[c?"width":"height"]:e[d],Mt(g?h/s*_:h/100*s)))},or=function(t,e,i,r){var n;return xi||$i(),e in Ii&&"transform"!==e&&~(e=Ii[e]).indexOf(",")&&(e=e.split(",")[0]),Di[e]&&"transform"!==e?(n=vr(t,r),n="transformOrigin"!==e?n[e]:n.svg?n.origin:yr(Hi(t,Qi))+" "+n.zOrigin+"px"):(!(n=t.style[e])||"auto"===n||r||~(n+"").indexOf("calc("))&&(n=fr[e]&&fr[e](t,e,i)||Hi(t,e)||Tt(t,e)||("opacity"===e?1:0)),i&&!~(n+"").trim().indexOf(" ")?ar(t,e,n,i)+i:n},ur=function(t,e,i,r){if(!i||"none"===i){var n=Ji(e,t,1),s=n&&Hi(t,n,1);s&&s!==i?(e=n,i=s):"borderColor"===e&&(i=Hi(t,"borderTopColor"))}var a,o,u,h,l,f,c,p,d,_,m,g,v=new di(this._pt,t.style,e,0,1,ui),y=0,w=0;if(v.b=i,v.e=r,i+="","auto"===(r+="")&&(t.style[e]=r,r=Hi(t,e)||r,t.style[e]=i),Ee(a=[i,r]),r=a[1],u=(i=a[0]).match(et)||[],(r.match(et)||[]).length){for(;o=et.exec(r);)c=o[0],d=r.substring(y,o.index),l?l=(l+1)%5:"rgba("!==d.substr(-5)&&"hsla("!==d.substr(-5)||(l=1),c!==(f=u[w++]||"")&&(h=parseFloat(f)||0,m=f.substr((h+"").length),(g="="===c.charAt(1)?+(c.charAt(0)+"1"):0)&&(c=c.substr(2)),p=parseFloat(c),_=c.substr((p+"").length),y=et.lastIndex-_.length,_||(_=_||R.units[e]||m,y===r.length&&(r+=_,v.e+=_)),m!==_&&(h=ar(t,e,f,_)||0),v._pt={_next:v._pt,p:d||1===w?d:",",s:h,c:g?g*p:p-h,m:l&&l<4||"zIndex"===e?Math.round:0});v.c=y-1;)i=o[n],Di[i]&&(r=1,i="transformOrigin"===i?Qi:Vi),rr(s,i);r&&(rr(s,Vi),u&&(u.svg&&s.removeAttribute("transform"),vr(s,1),u.uncache=1))}},fr={clearProps:function(t,e,i,r,n){if("isFromStart"!==n.data){var s=t._pt=new di(t._pt,e,i,0,0,lr);return s.u=r,s.pr=-10,s.tween=n,t._props.push(i),1}}},cr=[1,0,0,1,0,0],pr={},dr=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},_r=function(t){var e=Hi(t,Vi);return dr(e)?cr:e.substr(7).match(tt).map(Mt)},mr=function(t,e){var i,r,n,s,a=t._gsap||xt(t),o=t.style,u=_r(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(",")?cr:u:(u!==cr||t.offsetParent||t===bi||a.svg||(n=o.display,o.display="block",(i=t.parentNode)&&t.offsetParent||(s=1,r=t.nextSibling,bi.appendChild(t)),u=_r(t),n?o.display=n:rr(t,"display"),s&&(r?i.insertBefore(t,r):i?i.appendChild(t):bi.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},gr=function(t,e,i,r,n,s){var a,o,u,h=t._gsap,l=n||mr(t,!0),f=h.xOrigin||0,c=h.yOrigin||0,p=h.xOffset||0,d=h.yOffset||0,_=l[0],m=l[1],g=l[2],v=l[3],y=l[4],w=l[5],b=e.split(" "),x=parseFloat(b[0])||0,T=parseFloat(b[1])||0;i?l!==cr&&(o=_*v-m*g)&&(u=x*(-m/o)+T*(_/o)-(_*w-m*y)/o,x=x*(v/o)+T*(-g/o)+(g*w-v*y)/o,T=u):(x=(a=er(t)).x+(~b[0].indexOf("%")?x/100*a.width:x),T=a.y+(~(b[1]||b[0]).indexOf("%")?T/100*a.height:T)),r||!1!==r&&h.smooth?(y=x-f,w=T-c,h.xOffset=p+(y*_+w*g)-y,h.yOffset=d+(y*m+w*v)-w):h.xOffset=h.yOffset=0,h.xOrigin=x,h.yOrigin=T,h.smooth=!!r,h.origin=e,h.originIsAbsolute=!!i,t.style[Qi]="0px 0px",s&&(nr(s,h,"xOrigin",f,x),nr(s,h,"yOrigin",c,T),nr(s,h,"xOffset",p,h.xOffset),nr(s,h,"yOffset",d,h.yOffset)),t.setAttribute("data-svg-origin",x+" "+T)},vr=function(t,e){var i=t._gsap||new Ye(t);if("x"in i&&!e&&!i.uncache)return i;var r,n,s,a,o,u,h,l,f,c,p,d,_,m,g,v,y,w,b,x,T,O,M,D,k,A,E,C,S,P,I,L,z=t.style,F=i.scaleX<0,B="px",q="deg",j=Hi(t,Qi)||"0";return r=n=s=u=h=l=f=c=p=0,a=o=1,i.svg=!(!t.getCTM||!ir(t)),m=mr(t,i.svg),i.svg&&(D=(!i.uncache||"0px 0px"===j)&&!e&&t.getAttribute("data-svg-origin"),gr(t,D||j,!!D||i.originIsAbsolute,!1!==i.smooth,m)),d=i.xOrigin||0,_=i.yOrigin||0,m!==cr&&(w=m[0],b=m[1],x=m[2],T=m[3],r=O=m[4],n=M=m[5],6===m.length?(a=Math.sqrt(w*w+b*b),o=Math.sqrt(T*T+x*x),u=w||b?Ei(b,w)*ki:0,(f=x||T?Ei(x,T)*ki+u:0)&&(o*=Math.abs(Math.cos(f*Ai))),i.svg&&(r-=d-(d*w+_*x),n-=_-(d*b+_*T))):(L=m[6],P=m[7],E=m[8],C=m[9],S=m[10],I=m[11],r=m[12],n=m[13],s=m[14],h=(g=Ei(L,S))*ki,g&&(D=O*(v=Math.cos(-g))+E*(y=Math.sin(-g)),k=M*v+C*y,A=L*v+S*y,E=O*-y+E*v,C=M*-y+C*v,S=L*-y+S*v,I=P*-y+I*v,O=D,M=k,L=A),l=(g=Ei(-x,S))*ki,g&&(v=Math.cos(-g),I=T*(y=Math.sin(-g))+I*v,w=D=w*v-E*y,b=k=b*v-C*y,x=A=x*v-S*y),u=(g=Ei(b,w))*ki,g&&(D=w*(v=Math.cos(g))+b*(y=Math.sin(g)),k=O*v+M*y,b=b*v-w*y,M=M*v-O*y,w=D,O=k),h&&Math.abs(h)+Math.abs(u)>359.9&&(h=u=0,l=180-l),a=Mt(Math.sqrt(w*w+b*b+x*x)),o=Mt(Math.sqrt(M*M+L*L)),g=Ei(O,M),f=Math.abs(g)>2e-4?g*ki:0,p=I?1/(I<0?-I:I):0),i.svg&&(D=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!dr(Hi(t,Vi)),D&&t.setAttribute("transform",D))),Math.abs(f)>90&&Math.abs(f)<270&&(F?(a*=-1,f+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,f+=f<=0?180:-180)),i.x=r-((i.xPercent=r&&(i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+B,i.y=n-((i.yPercent=n&&(i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-n)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+B,i.z=s+B,i.scaleX=Mt(a),i.scaleY=Mt(o),i.rotation=Mt(u)+q,i.rotationX=Mt(h)+q,i.rotationY=Mt(l)+q,i.skewX=f+q,i.skewY=c+q,i.transformPerspective=p+B,(i.zOrigin=parseFloat(j.split(" ")[2])||0)&&(z[Qi]=yr(j)),i.xOffset=i.yOffset=0,i.force3D=R.force3D,i.renderTransform=i.svg?Tr:Mi?xr:br,i.uncache=0,i},yr=function(t){return(t=t.split(" "))[0]+" "+t[1]},wr=function(t,e,i){var r=ae(e);return Mt(parseFloat(e)+parseFloat(ar(t,"x",i+"px",r)))+r},br=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,xr(t,e)},xr=function(t,e){var i=e||this,r=i.xPercent,n=i.yPercent,s=i.x,a=i.y,o=i.z,u=i.rotation,h=i.rotationY,l=i.rotationX,f=i.skewX,c=i.skewY,p=i.scaleX,d=i.scaleY,_=i.transformPerspective,m=i.force3D,g=i.target,v=i.zOrigin,y="",w="auto"===m&&t&&1!==t||!0===m;if(v&&("0deg"!==l||"0deg"!==h)){var b,x=parseFloat(h)*Ai,T=Math.sin(x),O=Math.cos(x);x=parseFloat(l)*Ai,b=Math.cos(x),s=wr(g,s,T*b*-v),a=wr(g,a,-Math.sin(x)*-v),o=wr(g,o,O*b*-v+v)}"0px"!==_&&(y+="perspective("+_+") "),(r||n)&&(y+="translate("+r+"%, "+n+"%) "),(w||"0px"!==s||"0px"!==a||"0px"!==o)&&(y+="0px"!==o||w?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+") "),"0deg"!==u&&(y+="rotate("+u+") "),"0deg"!==h&&(y+="rotateY("+h+") "),"0deg"!==l&&(y+="rotateX("+l+") "),"0deg"===f&&"0deg"===c||(y+="skew("+f+", "+c+") "),1===p&&1===d||(y+="scale("+p+", "+d+") "),g.style[Vi]=y||"translate(0, 0)"},Tr=function(t,e){var i,r,n,s,a,o=e||this,u=o.xPercent,h=o.yPercent,l=o.x,f=o.y,c=o.rotation,p=o.skewX,d=o.skewY,_=o.scaleX,m=o.scaleY,g=o.target,v=o.xOrigin,y=o.yOrigin,w=o.xOffset,b=o.yOffset,x=o.forceCSS,T=parseFloat(l),O=parseFloat(f);c=parseFloat(c),p=parseFloat(p),(d=parseFloat(d))&&(p+=d=parseFloat(d),c+=d),c||p?(c*=Ai,p*=Ai,i=Math.cos(c)*_,r=Math.sin(c)*_,n=Math.sin(c-p)*-m,s=Math.cos(c-p)*m,p&&(d*=Ai,a=Math.tan(p-d),n*=a=Math.sqrt(1+a*a),s*=a,d&&(a=Math.tan(d),i*=a=Math.sqrt(1+a*a),r*=a)),i=Mt(i),r=Mt(r),n=Mt(n),s=Mt(s)):(i=_,s=m,r=n=0),(T&&!~(l+"").indexOf("px")||O&&!~(f+"").indexOf("px"))&&(T=ar(g,"x",l,"px"),O=ar(g,"y",f,"px")),(v||y||w||b)&&(T=Mt(T+v-(v*i+y*n)+w),O=Mt(O+y-(v*r+y*s)+b)),(u||h)&&(a=g.getBBox(),T=Mt(T+u/100*a.width),O=Mt(O+h/100*a.height)),a="matrix("+i+","+r+","+n+","+s+","+T+","+O+")",g.setAttribute("transform",a),x&&(g.style[Vi]=a)},Or=function(t,e,i,r,n,s){var a,o,u=360,h=Y(n),l=parseFloat(n)*(h&&~n.indexOf("rad")?ki:1),f=s?l*s:l-r,c=r+f+"deg";return h&&("short"===(a=n.split("_")[1])&&(f%=u)!==f%180&&(f+=f<0?u:-360),"cw"===a&&f<0?f=(f+36e9)%u-~~(f/u)*u:"ccw"===a&&f>0&&(f=(f-36e9)%u-~~(f/u)*u)),t._pt=o=new di(t._pt,e,i,r,f,Ri),o.e=c,o.u="deg",t._props.push(i),o},Mr=function(t,e){for(var i in e)t[i]=e[i];return t},Dr=function(t,e,i){var r,n,s,a,o,u,h,l=Mr({},i._gsap),f=i.style;for(n in l.svg?(s=i.getAttribute("transform"),i.setAttribute("transform",""),f[Vi]=e,r=vr(i,1),rr(i,Vi),i.setAttribute("transform",s)):(s=getComputedStyle(i)[Vi],f[Vi]=e,r=vr(i,1),f[Vi]=s),Di)(s=l[n])!==(a=r[n])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(n)<0&&(o=ae(s)!==(h=ae(a))?ar(i,n,s,h):parseFloat(s),u=parseFloat(a),t._pt=new di(t._pt,r,n,o,u-o,Li),t._pt.u=h||0,t._props.push(n));Mr(r,l)};Ot("padding,margin,Width,Radius",(function(t,e){var i="Top",r="Right",n="Bottom",s="Left",a=(e<3?[i,r,n,s]:[i+s,i+r,n+r,n+s]).map((function(i){return e<2?t+i:"border"+i+t}));fr[e>1?"border"+t:t]=function(t,e,i,r,n){var s,o;if(arguments.length<4)return s=a.map((function(e){return or(t,e,i)})),5===(o=s.join(" ")).split(s[0]).length?s[0]:o;s=(r+"").split(" "),o={},a.forEach((function(t,e){return o[t]=s[e]=s[e]||s[(e-1)/2|0]})),t.init(e,o,n)}}));var kr,Ar,Er,Cr={name:"css",register:$i,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,i,r,n){var s,a,o,u,h,l,f,c,p,d,_,m,g,v,y,w,b,x,T,O=this._props,M=t.style,D=i.vars.startAt;for(f in xi||$i(),e)if("autoRound"!==f&&(a=e[f],!mt[f]||!He(f,e,i,r,t,n)))if(h=typeof a,l=fr[f],"function"===h&&(h=typeof(a=a.call(i,r,t,n))),"string"===h&&~a.indexOf("random(")&&(a=me(a)),l)l(this,t,f,a,i)&&(y=1);else if("--"===f.substr(0,2))s=(getComputedStyle(t).getPropertyValue(f)+"").trim(),a+="",ke.lastIndex=0,ke.test(s)||(c=ae(s),p=ae(a)),p?c!==p&&(s=ar(t,f,s,p)+p):c&&(a+=c),this.add(M,"setProperty",s,a,r,n,0,0,f),O.push(f);else if("undefined"!==h){if(D&&f in D?(s="function"==typeof D[f]?D[f].call(i,r,t,n):D[f],f in R.units&&!ae(s)&&(s+=R.units[f]),"="===(s+"").charAt(1)&&(s=or(t,f))):s=or(t,f),u=parseFloat(s),(d="string"===h&&"="===a.charAt(1)?+(a.charAt(0)+"1"):0)&&(a=a.substr(2)),o=parseFloat(a),f in Ii&&("autoAlpha"===f&&(1===u&&"hidden"===or(t,"visibility")&&o&&(u=0),nr(this,M,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==f&&"transform"!==f&&~(f=Ii[f]).indexOf(",")&&(f=f.split(",")[0])),_=f in Di)if(m||((g=t._gsap).renderTransform&&!e.parseTransform||vr(t,e.parseTransform),v=!1!==e.smoothOrigin&&g.smooth,(m=this._pt=new di(this._pt,M,Vi,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===f)this._pt=new di(this._pt,g,"scaleY",g.scaleY,(d?d*o:o-g.scaleY)||0),O.push("scaleY",f),f+="X";else{if("transformOrigin"===f){b=void 0,x=void 0,T=void 0,b=(w=a).split(" "),x=b[0],T=b[1]||"50%","top"!==x&&"bottom"!==x&&"left"!==T&&"right"!==T||(w=x,x=T,T=w),b[0]=hr[x]||x,b[1]=hr[T]||T,a=b.join(" "),g.svg?gr(t,a,0,v,0,this):((p=parseFloat(a.split(" ")[2])||0)!==g.zOrigin&&nr(this,g,"zOrigin",g.zOrigin,p),nr(this,M,f,yr(s),yr(a)));continue}if("svgOrigin"===f){gr(t,a,1,v,0,this);continue}if(f in pr){Or(this,g,f,u,a,d);continue}if("smoothOrigin"===f){nr(this,g,"smooth",g.smooth,a);continue}if("force3D"===f){g[f]=a;continue}if("transform"===f){Dr(this,a,t);continue}}else f in M||(f=Ji(f)||f);if(_||(o||0===o)&&(u||0===u)&&!Pi.test(a)&&f in M)o||(o=0),(c=(s+"").substr((u+"").length))!==(p=ae(a)||(f in R.units?R.units[f]:c))&&(u=ar(t,f,s,p)),this._pt=new di(this._pt,_?g:M,f,u,d?d*o:o-u,_||"px"!==p&&"zIndex"!==f||!1===e.autoRound?Li:Fi),this._pt.u=p||0,c!==p&&(this._pt.b=s,this._pt.r=zi);else if(f in M)ur.call(this,t,f,s,a);else{if(!(f in t)){ht(f,a);continue}this.add(t,f,s||t[f],a,r,n)}O.push(f)}y&&pi(this)},get:or,aliases:Ii,getSetter:function(t,e,i){var r=Ii[e];return r&&r.indexOf(",")<0&&(e=r),e in Di&&e!==Qi&&(t._gsap.x||or(t,"x"))?i&&Oi===i?"scale"===e?Yi:Ui:(Oi=i||{},"scale"===e?Xi:Wi):t.style&&!V(t.style[e])?ji:~e.indexOf("-")?Ni:si(t,e)},core:{_removeProperty:rr,_getMatrix:mr}};vi.utils.checkPrefix=Ji,Er=Ot((kr="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Ar="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Di[t]=1})),Ot(Ar,(function(t){R.units[t]="deg",pr[t]=1})),Ii[Er[13]]=kr+","+Ar,Ot("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");Ii[e[1]]=Er[e[0]]})),Ot("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){R.units[t]="px"})),vi.registerPlugin(Cr);var Sr=vi.registerPlugin(Cr)||vi;Sr.core.Tween;const Pr=getComputedStyle(document.body).getPropertyValue("--type-line-opacity");class Ir{DOM={el:null,imageWrap:null,image:null,number:null,title:null,intro:null,description:null};constructor(t){this.DOM.el=t,this.DOM.imageWrap=this.DOM.el.querySelector(".article__img-wrap"),this.DOM.image=this.DOM.el.querySelector(".article__img"),this.DOM.number=this.DOM.el.querySelector(".article__number"),this.DOM.title=this.DOM.el.querySelector(".article__title"),this.DOM.intro=this.DOM.el.querySelector(".article__intro"),this.DOM.description=this.DOM.el.querySelector(".article__description")}}class Lr{DOM={el:null,image:null,title:null,description:null,article:null};article;constructor(t){this.DOM.el=t,this.DOM.image=this.DOM.el.querySelector(".item__img"),this.DOM.title=this.DOM.el.querySelector(".item__caption-title"),this.DOM.description=this.DOM.el.querySelector(".item__caption-description"),this.DOM.article=document.getElementById(this.DOM.el.dataset.article),this.article=new Ir(this.DOM.article);const e={duration:1,ease:"expo"};this.DOM.el.addEventListener("mouseenter",(()=>{vi.timeline({defaults:e}).to([this.DOM.image,this.DOM.title,this.DOM.description],{y:t=>8*t-4})})),this.DOM.el.addEventListener("mouseleave",(()=>{vi.timeline({defaults:e}).to([this.DOM.image,this.DOM.title,this.DOM.description],{y:0})}))}}((t="img")=>new Promise((e=>{n(document.querySelectorAll(t),{background:!0},e)})))(".item__img, .article__img").then((()=>document.body.classList.remove("loading")));const Rr=new class{DOM={};constructor(t){this.DOM.el=t,this.DOM.lines=[...document.querySelectorAll(".type__line")]}in(){return Sr.timeline({paused:!0}).to(this.DOM.el,{duration:1.4,ease:"power2.inOut",scale:2.7,rotate:-90}).to(this.DOM.lines,{keyframes:[{x:"20%",duration:1,ease:"power1.inOut"},{x:"-200%",duration:1.5,ease:"power1.in"}],stagger:.04},0).to(this.DOM.lines,{keyframes:[{opacity:1,duration:1,ease:"power1.in"},{opacity:0,duration:1.5,ease:"power1.in"}]},0)}out(){return Sr.timeline({paused:!0}).to(this.DOM.el,{duration:1.4,ease:"power2.inOut",scale:1,rotate:0},1.2).to(this.DOM.lines,{duration:2.3,ease:"back",x:"0%",stagger:-.04},0).to(this.DOM.lines,{keyframes:[{opacity:1,duration:1,ease:"power1.in"},{opacity:Pr,duration:1.5,ease:"power1.in"}]},0)}}(document.querySelector("[data-type-transition]"));let zr=!1;const Fr=document.querySelector(".frame");let Br=[],qr=-1;const jr=document.querySelector(".item-wrap");[...jr.querySelectorAll(".item")].forEach((t=>{const e=new Lr(t);Br.push(e),e.DOM.el.addEventListener("click",(()=>Nr(e)))}));const Nr=t=>{if(zr)return;zr=!0,qr=Br.indexOf(t);const e=vi.timeline({onComplete:()=>zr=!1});e.addLabel("start",0).addLabel("typeTransition",.3).addLabel("articleOpening",.75*Rr.in().totalDuration()+e.labels.typeTransition).to(Br.map((t=>t.DOM.el)),{duration:.8,ease:"power2.inOut",opacity:0,y:t=>t%2?"25%":"-25%"},"start").to(Fr,{duration:.8,ease:"power3",opacity:0,onComplete:()=>vi.set(Fr,{pointerEvents:"none"})},"start").add(Rr.in().play(),"typeTransition").add((()=>{vi.set(Ur,{pointerEvents:"auto"}),vi.set(jr,{pointerEvents:"none"}),Br[qr].DOM.article.classList.add("article--current")}),"articleOpening").to(Ur,{duration:.7,opacity:1},"articleOpening").set([t.article.DOM.title,t.article.DOM.number,t.article.DOM.intro,t.article.DOM.description],{opacity:0,y:"50%"},"articleOpening").set(t.article.DOM.imageWrap,{y:"100%"},2).set(t.article.DOM.image,{y:"-100%"},2).to([t.article.DOM.title,t.article.DOM.number,t.article.DOM.intro,t.article.DOM.description],{duration:1,ease:"expo",opacity:1,y:"0%",stagger:.04},"articleOpening").to([t.article.DOM.imageWrap,t.article.DOM.image],{duration:1,ease:"expo",y:"0%"},"articleOpening")},Ur=document.querySelector(".back");Ur.addEventListener("click",(()=>(()=>{if(zr)return;zr=!0;const t=Br[qr],e=vi.timeline({onComplete:()=>zr=!1});e.addLabel("start",0).addLabel("typeTransition",.5).addLabel("showItems",.7*Rr.out().totalDuration()+e.labels.typeTransition).to(Ur,{duration:.7,ease:"power1",opacity:0},"start").to([t.article.DOM.title,t.article.DOM.number,t.article.DOM.intro,t.article.DOM.description],{duration:1,ease:"power4.in",opacity:0,y:"50%",stagger:-.04},"start").to(t.article.DOM.imageWrap,{duration:1,ease:"power4.in",y:"100%"},"start").to(t.article.DOM.image,{duration:1,ease:"power4.in",y:"-100%"},"start").add((()=>{vi.set(Ur,{pointerEvents:"none"}),vi.set(jr,{pointerEvents:"auto"}),t.DOM.article.classList.remove("article--current")})).add(Rr.out().play(),"typeTransition").to(Fr,{duration:.8,ease:"power3",opacity:1,onStart:()=>vi.set(Fr,{pointerEvents:"auto"})},"showItems").to(Br.map((t=>t.DOM.el)),{duration:1,ease:"power3.inOut",opacity:1,y:"0%"},"showItems")})()));
--------------------------------------------------------------------------------