diff --git a/dist/global.js b/dist/global.js index 0d1867a..0c9df98 100644 --- a/dist/global.js +++ b/dist/global.js @@ -6,7 +6,7 @@ var Dh=Object.defineProperty;var vh=(o,e,i)=>e in o?Dh(o,e,{enumerable:!0,config * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com -*/var jt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},un={duration:.5,overwrite:!1,delay:0},Sa,wt,Me,ti=1e8,Te=1/ti,Xo=Math.PI*2,yh=Xo/4,wh=0,gl=Math.sqrt,xh=Math.cos,bh=Math.sin,lt=function(e){return typeof e=="string"},He=function(e){return typeof e=="function"},$i=function(e){return typeof e=="number"},ka=function(e){return typeof e>"u"},Pi=function(e){return typeof e=="object"},Lt=function(e){return e!==!1},Ta=function(){return typeof window<"u"},ls=function(e){return He(e)||lt(e)},ml=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},xt=Array.isArray,Wo=/(?:-?\.?\d|\.)+/gi,_l=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Wr=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,_o=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Dl=/[+-]=-?[.\d]+/,vl=/[^,'"\[\]\s]+/gi,Ch=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Re,vi,Uo,Fa,Kt={},qs={},yl,wl=function(e){return(qs=Ar(e,Kt))&&Rt},Pa=function(e,i){return console.warn("Invalid property",e,"set to",i,"Missing plugin? gsap.registerPlugin()")},Gn=function(e,i){return!i&&console.warn(e)},xl=function(e,i){return e&&(Kt[e]=i)&&qs&&(qs[e]=i)||Kt},jn=function(){return 0},Eh={suppressEvents:!0,isStart:!0,kill:!1},Ts={suppressEvents:!0,kill:!1},Sh={suppressEvents:!0},Aa={},ir=[],Go={},bl,Yt={},Do={},cu=30,Fs=[],Oa="",La=function(e){var i=e[0],t,r;if(Pi(i)||He(i)||(e=[e]),!(t=(i._gsap||{}).harness)){for(r=Fs.length;r--&&!Fs[r].targetTest(i););t=Fs[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new Ul(e[r],t)))||e.splice(r,1);return e},wr=function(e){return e._gsap||La(ii(e))[0]._gsap},Cl=function(e,i,t){return(t=e[i])&&He(t)?e[i]():ka(t)&&e.getAttribute&&e.getAttribute(i)||t},Mt=function(e,i){return(e=e.split(",")).forEach(i)||e},Ue=function(e){return Math.round(e*1e5)/1e5||0},ut=function(e){return Math.round(e*1e7)/1e7||0},en=function(e,i){var t=i.charAt(0),r=parseFloat(i.substr(2));return e=parseFloat(e),t==="+"?e+r:t==="-"?e-r:t==="*"?e*r:e/r},kh=function(e,i){for(var t=i.length,r=0;e.indexOf(i[r])<0&&++ra;)s=s._prev;return s?(i._next=s._next,s._next=i):(i._next=e[t],e[t]=i),i._next?i._next._prev=i:e[r]=i,i._prev=s,i.parent=i._dp=e,i},so=function(e,i,t,r){t===void 0&&(t="_first"),r===void 0&&(r="_last");var n=i._prev,s=i._next;n?n._next=s:e[t]===i&&(e[t]=s),s?s._prev=n:e[r]===i&&(e[r]=n),i._next=i._prev=i.parent=null},sr=function(e,i){e.parent&&(!i||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},xr=function(e,i){if(e&&(!i||i._end>e._dur||i._start<0))for(var t=e;t;)t._dirty=1,t=t.parent;return e},Ph=function(e){for(var i=e.parent;i&&i.parent;)i._dirty=1,i.totalDuration(),i=i.parent;return e},jo=function(e,i,t,r){return e._startAt&&(wt?e._startAt.revert(Ts):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(i,!0,r))},Ah=function o(e){return!e||e._ts&&o(e.parent)},fu=function(e){return e._repeat?ln(e._tTime,e=e.duration()+e._rDelay)*e:0},ln=function(e,i){var t=Math.floor(e/=i);return e&&t===e?t-1:t},Ys=function(e,i){return(e-i._start)*i._ts+(i._ts>=0?0:i._dirty?i.totalDuration():i._tDur)},oo=function(e){return e._end=ut(e._start+(e._tDur/Math.abs(e._ts||e._rts||Te)||0))},ao=function(e,i){var t=e._dp;return t&&t.smoothChildTiming&&e._ts&&(e._start=ut(t._time-(e._ts>0?i/e._ts:((e._dirty?e.totalDuration():e._tDur)-i)/-e._ts)),oo(e),t._dirty||xr(t,e)),e},Fl=function(e,i){var t;if((i._time||!i._dur&&i._initted||i._startTe)&&i.render(t,!0)),xr(e,i)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&t.totalTime(t._tTime),t=t._dp;e._zTime=-Te}},xi=function(e,i,t,r){return i.parent&&sr(i),i._start=ut(($i(t)?t:t||e!==Re?Zt(e,t,i):e._time)+i._delay),i._end=ut(i._start+(i.totalDuration()/Math.abs(i.timeScale())||0)),Tl(e,i,"_first","_last",e._sort?"_start":0),Ko(i)||(e._recent=i),r||Fl(e,i),e._ts<0&&ao(e,e._tTime),e},Pl=function(e,i){return(Kt.ScrollTrigger||Pa("scrollTrigger",i))&&Kt.ScrollTrigger.create(i,e)},Al=function(e,i,t,r,n){if(Ba(e,i,n),!e._initted)return 1;if(!t&&e._pt&&!wt&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&bl!==Wt.frame)return ir.push(e),e._lazy=[n,r],1},Oh=function o(e){var i=e.parent;return i&&i._ts&&i._initted&&!i._lock&&(i.rawTime()<0||o(i))},Ko=function(e){var i=e.data;return i==="isFromStart"||i==="isStart"},Lh=function(e,i,t,r){var n=e.ratio,s=i<0||!i&&(!e._start&&Oh(e)&&!(!e._initted&&Ko(e))||(e._ts<0||e._dp._ts<0)&&!Ko(e))?0:1,a=e._rDelay,u=0,l,c,p;if(a&&e._repeat&&(u=os(0,e._tDur,i),c=ln(u,a),e._yoyo&&c&1&&(s=1-s),c!==ln(e._tTime,a)&&(n=1-s,e.vars.repeatRefresh&&e._initted&&e.invalidate())),s!==n||wt||r||e._zTime===Te||!i&&e._zTime){if(!e._initted&&Al(e,i,r,t,u))return;for(p=e._zTime,e._zTime=i||(t?Te:0),t||(t=i&&!p),e.ratio=s,e._from&&(s=1-s),e._time=0,e._tTime=u,l=e._pt;l;)l.r(s,l.d),l=l._next;i<0&&jo(e,i,t,!0),e._onUpdate&&!t&&Gt(e,"onUpdate"),u&&e._repeat&&!t&&e.parent&&Gt(e,"onRepeat"),(i>=e._tDur||i<0)&&e.ratio===s&&(s&&sr(e,1),!t&&!wt&&(Gt(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=i)},Mh=function(e,i,t){var r;if(t>i)for(r=e._first;r&&r._start<=t;){if(r.data==="isPause"&&r._start>i)return r;r=r._next}else for(r=e._last;r&&r._start>=t;){if(r.data==="isPause"&&r._start0&&!r&&ao(e,e._tTime=e._tDur*a),e.parent&&oo(e),t||xr(e.parent,e),e},du=function(e){return e instanceof Ft?xr(e):cn(e,e._dur)},Bh={_start:0,endTime:jn,totalDuration:jn},Zt=function o(e,i,t){var r=e.labels,n=e._recent||Bh,s=e.duration()>=ti?n.endTime(!1):e._dur,a,u,l;return lt(i)&&(isNaN(i)||i in r)?(u=i.charAt(0),l=i.substr(-1)==="%",a=i.indexOf("="),u==="<"||u===">"?(a>=0&&(i=i.replace(/=/,"")),(u==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(i.substr(1))||0)*(l?(a<0?n:t).totalDuration()/100:1)):a<0?(i in r||(r[i]=s),r[i]):(u=parseFloat(i.charAt(a-1)+i.substr(a+1)),l&&t&&(u=u/100*(xt(t)?t[0]:t).totalDuration()),a>1?o(e,i.substr(0,a-1),t)+u:s+u)):i==null?s:+i},Mn=function(e,i,t){var r=$i(i[1]),n=(r?2:1)+(e<2?0:1),s=i[n],a,u;if(r&&(s.duration=i[1]),s.parent=t,e){for(a=s,u=t;u&&!("immediateRender"in a);)a=u.vars.defaults||{},u=Lt(u.vars.inherit)&&u.parent;s.immediateRender=Lt(a.immediateRender),e<2?s.runBackwards=1:s.startAt=i[n-1]}return new Qe(i[0],s,i[n+1])},ur=function(e,i){return e||e===0?i(e):i},os=function(e,i,t){return ti?i:t},yt=function(e,i){return!lt(e)||!(i=Ch.exec(e))?"":i[1]},Ih=function(e,i,t){return ur(t,function(r){return os(e,i,r)})},Qo=[].slice,Ol=function(e,i){return e&&Pi(e)&&"length"in e&&(!i&&!e.length||e.length-1 in e&&Pi(e[0]))&&!e.nodeType&&e!==vi},Rh=function(e,i,t){return t===void 0&&(t=[]),e.forEach(function(r){var n;return lt(r)&&!i||Ol(r,1)?(n=t).push.apply(n,ii(r)):t.push(r)})||t},ii=function(e,i,t){return Me&&!i&&Me.selector?Me.selector(e):lt(e)&&!t&&(Uo||!hn())?Qo.call((i||Fa).querySelectorAll(e),0):xt(e)?Rh(e,t):Ol(e)?Qo.call(e,0):e?[e]:[]},Zo=function(e){return e=ii(e)[0]||Gn("Invalid scope")||{},function(i){var t=e.current||e.nativeElement||e;return ii(i,t.querySelectorAll?t:t===e?Gn("Invalid scope")||Fa.createElement("div"):e)}},Ll=function(e){return e.sort(function(){return .5-Math.random()})},Ml=function(e){if(He(e))return e;var i=Pi(e)?e:{each:e},t=br(i.ease),r=i.from||0,n=parseFloat(i.base)||0,s={},a=r>0&&r<1,u=isNaN(r)||a,l=i.axis,c=r,p=r;return lt(r)?c=p={center:.5,edges:.5,end:1}[r]||0:!a&&u&&(c=r[0],p=r[1]),function(h,f,g){var d=(g||i).length,m=s[d],_,C,w,D,E,F,x,O,T;if(!m){if(T=i.grid==="auto"?0:(i.grid||[1,ti])[1],!T){for(x=-ti;x<(x=g[T++].getBoundingClientRect().left)&&Tx&&(x=E),Ed?d-1:l?l==="y"?d/T:T:Math.max(T,d/T))||0)*(r==="edges"?-1:1),m.b=d<0?n-d:n,m.u=yt(i.amount||i.each)||0,t=t&&d<0?Yl(t):t}return d=(m[h]-m.min)/m.max||0,ut(m.b+(t?t(d):d)*m.v)+m.u}},Jo=function(e){var i=Math.pow(10,((e+"").split(".")[1]||"").length);return function(t){var r=ut(Math.round(parseFloat(t)/e)*e*i);return(r-r%1)/i+($i(t)?0:yt(t))}},Bl=function(e,i){var t=xt(e),r,n;return!t&&Pi(e)&&(r=t=e.radius||ti,e.values?(e=ii(e.values),(n=!$i(e[0]))&&(r*=r)):e=Jo(e.increment)),ur(i,t?He(e)?function(s){return n=e(s),Math.abs(n-s)<=r?n:s}:function(s){for(var a=parseFloat(n?s.x:s),u=parseFloat(n?s.y:0),l=ti,c=0,p=e.length,h,f;p--;)n?(h=e[p].x-a,f=e[p].y-u,h=h*h+f*f):h=Math.abs(e[p]-a),hr?n-s:s)})},Kn=function(e){for(var i=0,t="",r,n,s,a;~(r=e.indexOf("random(",i));)s=e.indexOf(")",r),a=e.charAt(r+7)==="[",n=e.substr(r+7,s-r-7).match(a?vl:Wo),t+=e.substr(i,r-i)+Il(a?n:+n[0],a?0:+n[1],+n[2]||1e-5),i=s+1;return t+e.substr(i,e.length-i)},Nl=function(e,i,t,r,n){var s=i-e,a=r-t;return ur(n,function(u){return t+((u-e)/s*a||0)})},Hh=function o(e,i,t,r){var n=isNaN(e+i)?0:function(f){return(1-f)*e+f*i};if(!n){var s=lt(e),a={},u,l,c,p,h;if(t===!0&&(r=1)&&(t=null),s)e={p:e},i={p:i};else if(xt(e)&&!xt(i)){for(c=[],p=e.length,h=p-2,l=1;l(a=Math.abs(a))&&(u=s,n=a);return u},Gt=function(e,i,t){var r=e.vars,n=r[i],s=Me,a=e._ctx,u,l,c;if(n)return u=r[i+"Params"],l=r.callbackScope||e,t&&ir.length&&$s(),a&&(Me=a),c=u?n.apply(l,u):n.call(l),Me=s,c},Cn=function(e){return sr(e),e.scrollTrigger&&e.scrollTrigger.kill(!!wt),e.progress()<1&&Gt(e,"onInterrupt"),e},Ur,zl=[],Vl=function(e){if(e)if(e=!e.name&&e.default||e,Ta()||e.headless){var i=e.name,t=He(e),r=i&&!t&&e.init?function(){this._props=[]}:e,n={init:jn,render:Na,add:Ma,kill:of,modifier:sf,rawVars:0},s={targetTest:0,get:0,getSetter:Ra,aliases:{},register:0};if(hn(),e!==r){if(Yt[i])return;ni(r,ni(Hs(e,n),s)),Ar(r.prototype,Ar(n,Hs(e,s))),Yt[r.prop=i]=r,e.targetTest&&(Fs.push(r),Aa[i]=1),i=(i==="css"?"CSS":i.charAt(0).toUpperCase()+i.substr(1))+"Plugin"}xl(i,r),e.register&&e.register(Rt,r,Bt)}else zl.push(e)},Se=255,En={aqua:[0,Se,Se],lime:[0,Se,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Se],navy:[0,0,128],white:[Se,Se,Se],olive:[128,128,0],yellow:[Se,Se,0],orange:[Se,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Se,0,0],pink:[Se,192,203],cyan:[0,Se,Se],transparent:[Se,Se,Se,0]},vo=function(e,i,t){return e+=e<0?1:e>1?-1:0,(e*6<1?i+(t-i)*e*6:e<.5?t:e*3<2?i+(t-i)*(2/3-e)*6:i)*Se+.5|0},ql=function(e,i,t){var r=e?$i(e)?[e>>16,e>>8&Se,e&Se]:0:En.black,n,s,a,u,l,c,p,h,f,g;if(!r){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),En[e])r=En[e];else if(e.charAt(0)==="#"){if(e.length<6&&(n=e.charAt(1),s=e.charAt(2),a=e.charAt(3),e="#"+n+n+s+s+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&Se,r&Se,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&Se,e&Se]}else if(e.substr(0,3)==="hsl"){if(r=g=e.match(Wo),!i)u=+r[0]%360/360,l=+r[1]/100,c=+r[2]/100,s=c<=.5?c*(l+1):c+l-c*l,n=c*2-s,r.length>3&&(r[3]*=1),r[0]=vo(u+1/3,n,s),r[1]=vo(u,n,s),r[2]=vo(u-1/3,n,s);else if(~e.indexOf("="))return r=e.match(_l),t&&r.length<4&&(r[3]=1),r}else r=e.match(Wo)||En.transparent;r=r.map(Number)}return i&&!g&&(n=r[0]/Se,s=r[1]/Se,a=r[2]/Se,p=Math.max(n,s,a),h=Math.min(n,s,a),c=(p+h)/2,p===h?u=l=0:(f=p-h,l=c>.5?f/(2-p-h):f/(p+h),u=p===n?(s-a)/f+(se||_<0)&&(t+=_-i),r+=_,E=r-t,w=E-s,(w>0||C)&&(F=++p.frame,h=E-p.time*1e3,p.time=E=E/1e3,s+=w+(w>=n?4:n-w),D=1),C||(u=l(d)),D)for(f=0;f=_&&f--},_listeners:a},p}(),hn=function(){return!Qn&&Wt.wake()},De={},Xh=/^[\d.\-M][\d.\-,\s]/,Wh=/["']/g,Uh=function(e){for(var i={},t=e.substr(1,e.length-3).split(":"),r=t[0],n=1,s=t.length,a,u,l;n1&&t.config?t.config.apply(null,~e.indexOf("{")?[Uh(i[1])]:Gh(e).split(",").map(Sl)):De._CE&&Xh.test(e)?De._CE("",e):t},Yl=function(e){return function(i){return 1-e(1-i)}},Xl=function o(e,i){for(var t=e._first,r;t;)t instanceof Ft?o(t,i):t.vars.yoyoEase&&(!t._yoyo||!t._repeat)&&t._yoyo!==i&&(t.timeline?o(t.timeline,i):(r=t._ease,t._ease=t._yEase,t._yEase=r,t._yoyo=i)),t=t._next},br=function(e,i){return e&&(He(e)?e:De[e]||jh(e))||i},zr=function(e,i,t,r){t===void 0&&(t=function(u){return 1-i(1-u)}),r===void 0&&(r=function(u){return u<.5?i(u*2)/2:1-i((1-u)*2)/2});var n={easeIn:i,easeOut:t,easeInOut:r},s;return Mt(e,function(a){De[a]=Kt[a]=n,De[s=a.toLowerCase()]=t;for(var u in n)De[s+(u==="easeIn"?".in":u==="easeOut"?".out":".inOut")]=De[a+"."+u]=n[u]}),n},Wl=function(e){return function(i){return i<.5?(1-e(1-i*2))/2:.5+e((i-.5)*2)/2}},yo=function o(e,i,t){var r=i>=1?i:1,n=(t||(e?.3:.45))/(i<1?i:1),s=n/Xo*(Math.asin(1/r)||0),a=function(c){return c===1?1:r*Math.pow(2,-10*c)*bh((c-s)*n)+1},u=e==="out"?a:e==="in"?function(l){return 1-a(1-l)}:Wl(a);return n=Xo/n,u.config=function(l,c){return o(e,l,c)},u},wo=function o(e,i){i===void 0&&(i=1.70158);var t=function(s){return s?--s*s*((i+1)*s+i)+1:0},r=e==="out"?t:e==="in"?function(n){return 1-t(1-n)}:Wl(t);return r.config=function(n){return o(e,n)},r};Mt("Linear,Quad,Cubic,Quart,Quint,Strong",function(o,e){var i=e<5?e+1:e;zr(o+",Power"+(i-1),e?function(t){return Math.pow(t,i)}:function(t){return t},function(t){return 1-Math.pow(1-t,i)},function(t){return t<.5?Math.pow(t*2,i)/2:1-Math.pow((1-t)*2,i)/2})});De.Linear.easeNone=De.none=De.Linear.easeIn;zr("Elastic",yo("in"),yo("out"),yo());(function(o,e){var i=1/e,t=2*i,r=2.5*i,n=function(a){return a0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,cn(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,r){if(hn(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(ao(this,t),!n._dp||n.parent||Fl(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t0||!this._tDur&&!t)&&xi(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===Te||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),El(this,t,r)),this},e.time=function(t,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+fu(this))%(this._dur+this._rDelay)||(t?this._dur:0),r):this._time},e.totalProgress=function(t,r){return arguments.length?this.totalTime(this.totalDuration()*t,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(t,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-t:t)+fu(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,r){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,r):this._repeat?ln(this._tTime,n)+1:1},e.timeScale=function(t,r){if(!arguments.length)return this._rts===-Te?0:this._rts;if(this._rts===t)return this;var n=this.parent&&this._ts?Ys(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-Te?0:this._rts,this.totalTime(os(-Math.abs(this._delay),this._tDur,n),r!==!1),oo(this),Ph(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(hn(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Te&&(this._tTime-=Te)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&xi(r,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(Lt(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var r=this.parent||this._dp;return r?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ys(r.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){t===void 0&&(t=Sh);var r=wt;return wt=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),this.data!=="nested"&&t.kill!==!1&&this.kill(),wt=r,this},e.globalTime=function(t){for(var r=this,n=arguments.length?t:r.rawTime();r;)n=r._start+n/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(t):n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,du(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var r=this._time;return this._rDelay=t,du(this),r?this.time(r):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,r){return this.totalTime(Zt(this,t),Lt(r))},e.restart=function(t,r){return this.play().totalTime(t?-this._delay:0,Lt(r))},e.play=function(t,r){return t!=null&&this.seek(t,r),this.reversed(!1).paused(!1)},e.reverse=function(t,r){return t!=null&&this.seek(t||this.totalDuration(),r),this.reversed(!0).paused(!1)},e.pause=function(t,r){return t!=null&&this.seek(t,r),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-Te:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Te,this},e.isActive=function(){var t=this.parent||this._dp,r=this._start,n;return!!(!t||this._ts&&this._initted&&t.isActive()&&(n=t.rawTime(!0))>=r&&n1?(r?(s[t]=r,n&&(s[t+"Params"]=n),t==="onUpdate"&&(this._onUpdate=r)):delete s[t],this):s[t]},e.then=function(t){var r=this;return new Promise(function(n){var s=He(t)?t:kl,a=function(){var l=r.then;r.then=null,He(s)&&(s=s(r))&&(s.then||s===r)&&(r.then=l),n(s),r.then=l};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?a():r._prom=a})},e.kill=function(){Cn(this)},o}();ni(Zn.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:-Te,_prom:0,_ps:!1,_rts:1});var Ft=function(o){pl(e,o);function e(t,r){var n;return t===void 0&&(t={}),n=o.call(this,t)||this,n.labels={},n.smoothChildTiming=!!t.smoothChildTiming,n.autoRemoveChildren=!!t.autoRemoveChildren,n._sort=Lt(t.sortChildren),Re&&xi(t.parent||Re,Li(n),r),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&Pl(Li(n),t.scrollTrigger),n}var i=e.prototype;return i.to=function(r,n,s){return Mn(0,arguments,this),this},i.from=function(r,n,s){return Mn(1,arguments,this),this},i.fromTo=function(r,n,s,a){return Mn(2,arguments,this),this},i.set=function(r,n,s){return n.duration=0,n.parent=this,Ln(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new Qe(r,n,Zt(this,s),1),this},i.call=function(r,n,s){return xi(this,Qe.delayedCall(0,r,n),s)},i.staggerTo=function(r,n,s,a,u,l,c){return s.duration=n,s.stagger=s.stagger||a,s.onComplete=l,s.onCompleteParams=c,s.parent=this,new Qe(r,s,Zt(this,u)),this},i.staggerFrom=function(r,n,s,a,u,l,c){return s.runBackwards=1,Ln(s).immediateRender=Lt(s.immediateRender),this.staggerTo(r,n,s,a,u,l,c)},i.staggerFromTo=function(r,n,s,a,u,l,c,p){return a.startAt=s,Ln(a).immediateRender=Lt(a.immediateRender),this.staggerTo(r,n,a,u,l,c,p)},i.render=function(r,n,s){var a=this._time,u=this._dirty?this.totalDuration():this._tDur,l=this._dur,c=r<=0?0:ut(r),p=this._zTime<0!=r<0&&(this._initted||!l),h,f,g,d,m,_,C,w,D,E,F,x;if(this!==Re&&c>u&&r>=0&&(c=u),c!==this._tTime||s||p){if(a!==this._time&&l&&(c+=this._time-a,r+=this._time-a),h=c,D=this._start,w=this._ts,_=!w,p&&(l||(a=this._zTime),(r||!n)&&(this._zTime=r)),this._repeat){if(F=this._yoyo,m=l+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(m*100+r,n,s);if(h=ut(c%m),c===u?(d=this._repeat,h=l):(d=~~(c/m),d&&d===c/m&&(h=l,d--),h>l&&(h=l)),E=ln(this._tTime,m),!a&&this._tTime&&E!==d&&this._tTime-E*m-this._dur<=0&&(E=d),F&&d&1&&(h=l-h,x=1),d!==E&&!this._lock){var O=F&&E&1,T=O===(F&&d&1);if(d=a&&r>=0)for(f=this._first;f;){if(g=f._next,(f._act||h>=f._start)&&f._ts&&C!==f){if(f.parent!==this)return this.render(r,n,s);if(f.render(f._ts>0?(h-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(h-f._start)*f._ts,n,s),h!==this._time||!this._ts&&!_){C=0,g&&(c+=this._zTime=-Te);break}}f=g}else{f=this._last;for(var y=r<0?r:h;f;){if(g=f._prev,(f._act||y<=f._end)&&f._ts&&C!==f){if(f.parent!==this)return this.render(r,n,s);if(f.render(f._ts>0?(y-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(y-f._start)*f._ts,n,s||wt&&(f._initted||f._startAt)),h!==this._time||!this._ts&&!_){C=0,g&&(c+=this._zTime=y?-Te:Te);break}}f=g}}if(C&&!n&&(this.pause(),C.render(h>=a?0:-Te)._zTime=h>=a?1:-1,this._ts))return this._start=D,oo(this),this.render(r,n,s);this._onUpdate&&!n&&Gt(this,"onUpdate",!0),(c===u&&this._tTime>=this.totalDuration()||!c&&a)&&(D===this._start||Math.abs(w)!==Math.abs(this._ts))&&(this._lock||((r||!l)&&(c===u&&this._ts>0||!c&&this._ts<0)&&sr(this,1),!n&&!(r<0&&!a)&&(c||a||!u)&&(Gt(this,c===u&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c0)&&this._prom())))}return this},i.add=function(r,n){var s=this;if($i(n)||(n=Zt(this,n,r)),!(r instanceof Zn)){if(xt(r))return r.forEach(function(a){return s.add(a,n)}),this;if(lt(r))return this.addLabel(r,n);if(He(r))r=Qe.delayedCall(0,r);else return this}return this!==r?xi(this,r,n):this},i.getChildren=function(r,n,s,a){r===void 0&&(r=!0),n===void 0&&(n=!0),s===void 0&&(s=!0),a===void 0&&(a=-ti);for(var u=[],l=this._first;l;)l._start>=a&&(l instanceof Qe?n&&u.push(l):(s&&u.push(l),r&&u.push.apply(u,l.getChildren(!0,n,s)))),l=l._next;return u},i.getById=function(r){for(var n=this.getChildren(1,1,1),s=n.length;s--;)if(n[s].vars.id===r)return n[s]},i.remove=function(r){return lt(r)?this.removeLabel(r):He(r)?this.killTweensOf(r):(so(this,r),r===this._recent&&(this._recent=this._last),xr(this))},i.totalTime=function(r,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ut(Wt.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),o.prototype.totalTime.call(this,r,n),this._forcing=0,this):this._tTime},i.addLabel=function(r,n){return this.labels[r]=Zt(this,n),this},i.removeLabel=function(r){return delete this.labels[r],this},i.addPause=function(r,n,s){var a=Qe.delayedCall(0,n||jn,s);return a.data="isPause",this._hasPause=1,xi(this,a,Zt(this,r))},i.removePause=function(r){var n=this._first;for(r=Zt(this,r);n;)n._start===r&&n.data==="isPause"&&sr(n),n=n._next},i.killTweensOf=function(r,n,s){for(var a=this.getTweensOf(r,s),u=a.length;u--;)Qi!==a[u]&&a[u].kill(r,n);return this},i.getTweensOf=function(r,n){for(var s=[],a=ii(r),u=this._first,l=$i(n),c;u;)u instanceof Qe?kh(u._targets,a)&&(l?(!Qi||u._initted&&u._ts)&&u.globalTime(0)<=n&&u.globalTime(u.totalDuration())>n:!n||u.isActive())&&s.push(u):(c=u.getTweensOf(a,n)).length&&s.push.apply(s,c),u=u._next;return s},i.tweenTo=function(r,n){n=n||{};var s=this,a=Zt(s,r),u=n,l=u.startAt,c=u.onStart,p=u.onStartParams,h=u.immediateRender,f,g=Qe.to(s,ni({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:n.duration||Math.abs((a-(l&&"time"in l?l.time:s._time))/s.timeScale())||Te,onStart:function(){if(s.pause(),!f){var m=n.duration||Math.abs((a-(l&&"time"in l?l.time:s._time))/s.timeScale());g._dur!==m&&cn(g,m,0,1).render(g._time,!0,!0),f=1}c&&c.apply(g,p||[])}},n));return h?g.render(0):g},i.tweenFromTo=function(r,n,s){return this.tweenTo(n,ni({startAt:{time:Zt(this,r)}},s))},i.recent=function(){return this._recent},i.nextLabel=function(r){return r===void 0&&(r=this._time),pu(this,Zt(this,r))},i.previousLabel=function(r){return r===void 0&&(r=this._time),pu(this,Zt(this,r),1)},i.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+Te)},i.shiftChildren=function(r,n,s){s===void 0&&(s=0);for(var a=this._first,u=this.labels,l;a;)a._start>=s&&(a._start+=r,a._end+=r),a=a._next;if(n)for(l in u)u[l]>=s&&(u[l]+=r);return xr(this)},i.invalidate=function(r){var n=this._first;for(this._lock=0;n;)n.invalidate(r),n=n._next;return o.prototype.invalidate.call(this,r)},i.clear=function(r){r===void 0&&(r=!0);for(var n=this._first,s;n;)s=n._next,this.remove(n),n=s;return this._dp&&(this._time=this._tTime=this._pTime=0),r&&(this.labels={}),xr(this)},i.totalDuration=function(r){var n=0,s=this,a=s._last,u=ti,l,c,p;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-r:r));if(s._dirty){for(p=s.parent;a;)l=a._prev,a._dirty&&a.totalDuration(),c=a._start,c>u&&s._sort&&a._ts&&!s._lock?(s._lock=1,xi(s,a,c-a._delay,1)._lock=0):u=c,c<0&&a._ts&&(n-=c,(!p&&!s._dp||p&&p.smoothChildTiming)&&(s._start+=c/s._ts,s._time-=c,s._tTime-=c),s.shiftChildren(-c,!1,-1/0),u=0),a._end>n&&a._ts&&(n=a._end),a=l;cn(s,s===Re&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(r){if(Re._ts&&(El(Re,Ys(r,Re)),bl=Wt.frame),Wt.frame>=cu){cu+=jt.autoSleep||120;var n=Re._first;if((!n||!n._ts)&&jt.autoSleep&&Wt._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||Wt.sleep()}}},e}(Zn);ni(Ft.prototype,{_lock:0,_hasPause:0,_forcing:0});var Kh=function(e,i,t,r,n,s,a){var u=new Bt(this._pt,e,i,0,1,Jl,null,n),l=0,c=0,p,h,f,g,d,m,_,C;for(u.b=t,u.e=r,t+="",r+="",(_=~r.indexOf("random("))&&(r=Kn(r)),s&&(C=[t,r],s(C,e,i),t=C[0],r=C[1]),h=t.match(_o)||[];p=_o.exec(r);)g=p[0],d=r.substring(l,p.index),f?f=(f+1)%5:d.substr(-5)==="rgba("&&(f=1),g!==h[c++]&&(m=parseFloat(h[c-1])||0,u._pt={_next:u._pt,p:d||c===1?d:",",s:m,c:g.charAt(1)==="="?en(m,g)-m:parseFloat(g)-m,m:f&&f<4?Math.round:0},l=_o.lastIndex);return u.c=l")}),D.duration();else{F={};for(O in g)O==="ease"||O==="easeEach"||ef(O,g[O],F,g.easeEach);for(O in F)for(N=F[O].sort(function(z,V){return z.t-V.t}),P=0,E=0;Eu-Te&&!c?u:rl&&(h=l)),_=this._yoyo&&g&1,_&&(D=this._yEase,h=l-h),m=ln(this._tTime,d),h===a&&!s&&this._initted&&g===m)return this._tTime=p,this;g!==m&&(w&&this._yEase&&Xl(w,_),this.vars.repeatRefresh&&!_&&!this._lock&&this._time!==d&&this._initted&&(this._lock=s=1,this.render(ut(d*g),!0).invalidate()._lock=0))}if(!this._initted){if(Al(this,c?r:h,s,n,p))return this._tTime=0,this;if(a!==this._time&&!(s&&this.vars.repeatRefresh&&g!==m))return this;if(l!==this._dur)return this.render(r,n,s)}if(this._tTime=p,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=C=(D||this._ease)(h/l),this._from&&(this.ratio=C=1-C),h&&!a&&!n&&!g&&(Gt(this,"onStart"),this._tTime!==p))return this;for(f=this._pt;f;)f.r(C,f.d),f=f._next;w&&w.render(r<0?r:w._dur*w._ease(h/this._dur),n,s)||this._startAt&&(this._zTime=r),this._onUpdate&&!n&&(c&&jo(this,r,n,s),Gt(this,"onUpdate")),this._repeat&&g!==m&&this.vars.onRepeat&&!n&&this.parent&&Gt(this,"onRepeat"),(p===this._tDur||!p)&&this._tTime===p&&(c&&!this._onUpdate&&jo(this,r,!0,!0),(r||!l)&&(p===this._tDur&&this._ts>0||!p&&this._ts<0)&&sr(this,1),!n&&!(c&&!a)&&(p||a||_)&&(Gt(this,p===u?"onComplete":"onReverseComplete",!0),this._prom&&!(p0)&&this._prom()))}return this},i.targets=function(){return this._targets},i.invalidate=function(r){return(!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),o.prototype.invalidate.call(this,r)},i.resetTo=function(r,n,s,a,u){Qn||Wt.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Ba(this,l),c=this._ease(l/this._dur),Zh(this,r,n,s,a,c,l,u)?this.resetTo(r,n,s,a,1):(ao(this,0),this.parent||Tl(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},i.kill=function(r,n){if(n===void 0&&(n="all"),!r&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?Cn(this):this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(r,n,Qi&&Qi.vars.overwrite!==!0)._first||Cn(this),this.parent&&s!==this.timeline.totalDuration()&&cn(this,this._dur*this.timeline._tDur/s,0,1),this}var a=this._targets,u=r?ii(r):a,l=this._ptLookup,c=this._pt,p,h,f,g,d,m,_;if((!n||n==="all")&&Fh(a,u))return n==="all"&&(this._pt=0),Cn(this);for(p=this._op=this._op||[],n!=="all"&&(lt(n)&&(d={},Mt(n,function(C){return d[C]=1}),n=d),n=Jh(a,n)),_=a.length;_--;)if(~u.indexOf(a[_])){h=l[_],n==="all"?(p[_]=n,g=h,f={}):(f=p[_]=p[_]||{},g=n);for(d in g)m=h&&h[d],m&&((!("kill"in m.d)||m.d.kill(d)===!0)&&so(this,m,"_pt"),delete h[d]),f!=="all"&&(f[d]=1)}return this._initted&&!this._pt&&c&&Cn(this),this},e.to=function(r,n){return new e(r,n,arguments[2])},e.from=function(r,n){return Mn(1,arguments)},e.delayedCall=function(r,n,s,a){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:r,onComplete:n,onReverseComplete:n,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:a})},e.fromTo=function(r,n,s){return Mn(2,arguments)},e.set=function(r,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(r,n)},e.killTweensOf=function(r,n,s){return Re.killTweensOf(r,n,s)},e}(Zn);ni(Qe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Mt("staggerTo,staggerFrom,staggerFromTo",function(o){Qe[o]=function(){var e=new Ft,i=Qo.call(arguments,0);return i.splice(o==="staggerFromTo"?5:4,0,0),e[o].apply(e,i)}});var Ia=function(e,i,t){return e[i]=t},Ql=function(e,i,t){return e[i](t)},tf=function(e,i,t,r){return e[i](r.fp,t)},rf=function(e,i,t){return e.setAttribute(i,t)},Ra=function(e,i){return He(e[i])?Ql:ka(e[i])&&e.setAttribute?rf:Ia},Zl=function(e,i){return i.set(i.t,i.p,Math.round((i.s+i.c*e)*1e6)/1e6,i)},nf=function(e,i){return i.set(i.t,i.p,!!(i.s+i.c*e),i)},Jl=function(e,i){var t=i._pt,r="";if(!e&&i.b)r=i.b;else if(e===1&&i.e)r=i.e;else{for(;t;)r=t.p+(t.m?t.m(t.s+t.c*e):Math.round((t.s+t.c*e)*1e4)/1e4)+r,t=t._next;r+=i.c}i.set(i.t,i.p,r,i)},Na=function(e,i){for(var t=i._pt;t;)t.r(e,t.d),t=t._next},sf=function(e,i,t,r){for(var n=this._pt,s;n;)s=n._next,n.p===r&&n.modifier(e,i,t),n=s},of=function(e){for(var i=this._pt,t,r;i;)r=i._next,i.p===e&&!i.op||i.op===e?so(this,i,"_pt"):i.dep||(t=1),i=r;return!t},af=function(e,i,t,r){r.mSet(e,i,r.m.call(r.tween,t,r.mt),r)},ec=function(e){for(var i=e._pt,t,r,n,s;i;){for(t=i._next,r=n;r&&r.pr>i.pr;)r=r._next;(i._prev=r?r._prev:s)?i._prev._next=i:n=i,(i._next=r)?r._prev=i:s=i,i=t}e._pt=n},Bt=function(){function o(i,t,r,n,s,a,u,l,c){this.t=t,this.s=n,this.c=s,this.p=r,this.r=a||Zl,this.d=u||this,this.set=l||Ia,this.pr=c||0,this._next=i,i&&(i._prev=this)}var e=o.prototype;return e.modifier=function(t,r,n){this.mSet=this.mSet||this.set,this.set=af,this.m=t,this.mt=n,this.tween=r},o}();Mt(Oa+"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(o){return Aa[o]=1});Kt.TweenMax=Kt.TweenLite=Qe;Kt.TimelineLite=Kt.TimelineMax=Ft;Re=new Ft({sortChildren:!1,defaults:un,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});jt.stringFilter=Hl;var Cr=[],Ps={},uf=[],mu=0,lf=0,xo=function(e){return(Ps[e]||uf).map(function(i){return i()})},ta=function(){var e=Date.now(),i=[];e-mu>2&&(xo("matchMediaInit"),Cr.forEach(function(t){var r=t.queries,n=t.conditions,s,a,u,l;for(a in r)s=vi.matchMedia(r[a]).matches,s&&(u=1),s!==n[a]&&(n[a]=s,l=1);l&&(t.revert(),u&&i.push(t))}),xo("matchMediaRevert"),i.forEach(function(t){return t.onMatch(t,function(r){return t.add(null,r)})}),mu=e,xo("matchMedia"))},tc=function(){function o(i,t){this.selector=t&&Zo(t),this.data=[],this._r=[],this.isReverted=!1,this.id=lf++,i&&this.add(i)}var e=o.prototype;return e.add=function(t,r,n){He(t)&&(n=r,r=t,t=He);var s=this,a=function(){var l=Me,c=s.selector,p;return l&&l!==s&&l.data.push(s),n&&(s.selector=Zo(n)),Me=s,p=r.apply(s,arguments),He(p)&&s._r.push(p),Me=l,s.selector=c,s.isReverted=!1,p};return s.last=a,t===He?a(s,function(u){return s.add(null,u)}):t?s[t]=a:a},e.ignore=function(t){var r=Me;Me=null,t(this),Me=r},e.getTweens=function(){var t=[];return this.data.forEach(function(r){return r instanceof o?t.push.apply(t,r.getTweens()):r instanceof Qe&&!(r.parent&&r.parent.data==="nested")&&t.push(r)}),t},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,r){var n=this;if(t?function(){for(var a=n.getTweens(),u=n.data.length,l;u--;)l=n.data[u],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(c){return a.splice(a.indexOf(c),1)}));for(a.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,p){return p.g-c.g||-1/0}).forEach(function(c){return c.t.revert(t)}),u=n.data.length;u--;)l=n.data[u],l instanceof Ft?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof Qe)&&l.revert&&l.revert(t);n._r.forEach(function(c){return c(t,n)}),n.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),r)for(var s=Cr.length;s--;)Cr[s].id===this.id&&Cr.splice(s,1)},e.revert=function(t){this.kill(t||{})},o}(),cf=function(){function o(i){this.contexts=[],this.scope=i,Me&&Me.data.push(this)}var e=o.prototype;return e.add=function(t,r,n){Pi(t)||(t={matches:t});var s=new tc(0,n||this.scope),a=s.conditions={},u,l,c;Me&&!s.selector&&(s.selector=Me.selector),this.contexts.push(s),r=s.add("onMatch",r),s.queries=t;for(l in t)l==="all"?c=1:(u=vi.matchMedia(t[l]),u&&(Cr.indexOf(s)<0&&Cr.push(s),(a[l]=u.matches)&&(c=1),u.addListener?u.addListener(ta):u.addEventListener("change",ta)));return c&&r(s,function(p){return s.add(null,p)}),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach(function(r){return r.kill(t,!0)})},o}(),Xs={registerPlugin:function(){for(var e=arguments.length,i=new Array(e),t=0;t1){var r=e.map(function(c){return Rt.quickSetter(c,i,t)}),n=r.length;return function(c){for(var p=n;p--;)r[p](c)}}e=e[0]||{};var s=Yt[i],a=wr(e),u=a.harness&&(a.harness.aliases||{})[i]||i,l=s?function(c){var p=new s;Ur._pt=0,p.init(e,t?c+t:c,Ur,0,[e]),p.render(1,p),Ur._pt&&Na(1,Ur)}:a.set(e,u);return s?l:function(c){return l(e,u,t?c+t:c,a,1)}},quickTo:function(e,i,t){var r,n=Rt.to(e,Ar((r={},r[i]="+=0.1",r.paused=!0,r),t||{})),s=function(u,l,c){return n.resetTo(i,u,l,c)};return s.tween=n,s},isTweening:function(e){return Re.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=br(e.ease,un.ease)),hu(un,e||{})},config:function(e){return hu(jt,e||{})},registerEffect:function(e){var i=e.name,t=e.effect,r=e.plugins,n=e.defaults,s=e.extendTimeline;(r||"").split(",").forEach(function(a){return a&&!Yt[a]&&!Kt[a]&&Gn(i+" effect requires "+a+" plugin.")}),Do[i]=function(a,u,l){return t(ii(a),ni(u||{},n),l)},s&&(Ft.prototype[i]=function(a,u,l){return this.add(Do[i](a,Pi(u)?u:(l=u)&&{},this),l)})},registerEase:function(e,i){De[e]=br(i)},parseEase:function(e,i){return arguments.length?br(e,i):De},getById:function(e){return Re.getById(e)},exportRoot:function(e,i){e===void 0&&(e={});var t=new Ft(e),r,n;for(t.smoothChildTiming=Lt(e.smoothChildTiming),Re.remove(t),t._dp=0,t._time=t._tTime=Re._time,r=Re._first;r;)n=r._next,(i||!(!r._dur&&r instanceof Qe&&r.vars.onComplete===r._targets[0]))&&xi(t,r,r._start-r._delay),r=n;return xi(Re,t,0),t},context:function(e,i){return e?new tc(e,i):Me},matchMedia:function(e){return new cf(e)},matchMediaRefresh:function(){return Cr.forEach(function(e){var i=e.conditions,t,r;for(r in i)i[r]&&(i[r]=!1,t=1);t&&e.revert()})||ta()},addEventListener:function(e,i){var t=Ps[e]||(Ps[e]=[]);~t.indexOf(i)||t.push(i)},removeEventListener:function(e,i){var t=Ps[e],r=t&&t.indexOf(i);r>=0&&t.splice(r,1)},utils:{wrap:qh,wrapYoyo:$h,distribute:Ml,random:Il,snap:Bl,normalize:Vh,getUnit:yt,clamp:Ih,splitColor:ql,toArray:ii,selector:Zo,mapRange:Nl,pipe:Nh,unitize:zh,interpolate:Hh,shuffle:Ll},install:wl,effects:Do,ticker:Wt,updateRoot:Ft.updateRoot,plugins:Yt,globalTimeline:Re,core:{PropTween:Bt,globals:xl,Tween:Qe,Timeline:Ft,Animation:Zn,getCache:wr,_removeLinkedListItem:so,reverting:function(){return wt},context:function(e){return e&&Me&&(Me.data.push(e),e._ctx=Me),Me},suppressOverwrites:function(e){return Sa=e}}};Mt("to,from,fromTo,delayedCall,set,killTweensOf",function(o){return Xs[o]=Qe[o]});Wt.add(Ft.updateRoot);Ur=Xs.to({},{duration:0});var hf=function(e,i){for(var t=e._pt;t&&t.p!==i&&t.op!==i&&t.fp!==i;)t=t._next;return t},ff=function(e,i){var t=e._targets,r,n,s;for(r in i)for(n=t.length;n--;)s=e._ptLookup[n][r],s&&(s=s.d)&&(s._pt&&(s=hf(s,r)),s&&s.modifier&&s.modifier(i[r],e,t[n],r))},bo=function(e,i){return{name:e,rawVars:1,init:function(r,n,s){s._onInit=function(a){var u,l;if(lt(n)&&(u={},Mt(n,function(c){return u[c]=1}),n=u),i){u={};for(l in n)u[l]=i(n[l]);n=u}ff(a,n)}}}},Rt=Xs.registerPlugin({name:"attr",init:function(e,i,t,r,n){var s,a,u;this.tween=t;for(s in i)u=e.getAttribute(s)||"",a=this.add(e,"setAttribute",(u||0)+"",i[s],r,n,0,0,s),a.op=s,a.b=u,this._props.push(s)},render:function(e,i){for(var t=i._pt;t;)wt?t.set(t.t,t.p,t.b,t):t.r(e,t.d),t=t._next}},{name:"endArray",init:function(e,i){for(var t=i.length;t--;)this.add(e,t,e[t]||0,i[t],0,0,0,0,0,1)}},bo("roundProps",Jo),bo("modifiers"),bo("snap",Bl))||Xs;Qe.version=Ft.version=Rt.version="3.12.5";yl=1;Ta()&&hn();De.Power0;De.Power1;De.Power2;De.Power3;De.Power4;De.Linear;De.Quad;De.Cubic;De.Quart;De.Quint;De.Strong;De.Elastic;De.Back;De.SteppedEase;De.Bounce;De.Sine;De.Expo;De.Circ;/*! +*/var jt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},un={duration:.5,overwrite:!1,delay:0},Sa,wt,Me,ti=1e8,Te=1/ti,Xo=Math.PI*2,yh=Xo/4,wh=0,gl=Math.sqrt,xh=Math.cos,bh=Math.sin,lt=function(e){return typeof e=="string"},He=function(e){return typeof e=="function"},qi=function(e){return typeof e=="number"},ka=function(e){return typeof e>"u"},Pi=function(e){return typeof e=="object"},Lt=function(e){return e!==!1},Ta=function(){return typeof window<"u"},ls=function(e){return He(e)||lt(e)},_l=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},xt=Array.isArray,Wo=/(?:-?\.?\d|\.)+/gi,ml=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Wr=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,mo=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Dl=/[+-]=-?[.\d]+/,vl=/[^,'"\[\]\s]+/gi,Ch=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Re,vi,Uo,Fa,Kt={},qs={},yl,wl=function(e){return(qs=Pr(e,Kt))&&Rt},Pa=function(e,i){return console.warn("Invalid property",e,"set to",i,"Missing plugin? gsap.registerPlugin()")},Gn=function(e,i){return!i&&console.warn(e)},xl=function(e,i){return e&&(Kt[e]=i)&&qs&&(qs[e]=i)||Kt},jn=function(){return 0},Eh={suppressEvents:!0,isStart:!0,kill:!1},Ts={suppressEvents:!0,kill:!1},Sh={suppressEvents:!0},Aa={},tr=[],Go={},bl,Yt={},Do={},cu=30,Fs=[],Oa="",La=function(e){var i=e[0],t,r;if(Pi(i)||He(i)||(e=[e]),!(t=(i._gsap||{}).harness)){for(r=Fs.length;r--&&!Fs[r].targetTest(i););t=Fs[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new Ul(e[r],t)))||e.splice(r,1);return e},yr=function(e){return e._gsap||La(ii(e))[0]._gsap},Cl=function(e,i,t){return(t=e[i])&&He(t)?e[i]():ka(t)&&e.getAttribute&&e.getAttribute(i)||t},Mt=function(e,i){return(e=e.split(",")).forEach(i)||e},Ue=function(e){return Math.round(e*1e5)/1e5||0},ut=function(e){return Math.round(e*1e7)/1e7||0},en=function(e,i){var t=i.charAt(0),r=parseFloat(i.substr(2));return e=parseFloat(e),t==="+"?e+r:t==="-"?e-r:t==="*"?e*r:e/r},kh=function(e,i){for(var t=i.length,r=0;e.indexOf(i[r])<0&&++ra;)s=s._prev;return s?(i._next=s._next,s._next=i):(i._next=e[t],e[t]=i),i._next?i._next._prev=i:e[r]=i,i._prev=s,i.parent=i._dp=e,i},so=function(e,i,t,r){t===void 0&&(t="_first"),r===void 0&&(r="_last");var n=i._prev,s=i._next;n?n._next=s:e[t]===i&&(e[t]=s),s?s._prev=n:e[r]===i&&(e[r]=n),i._next=i._prev=i.parent=null},nr=function(e,i){e.parent&&(!i||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},wr=function(e,i){if(e&&(!i||i._end>e._dur||i._start<0))for(var t=e;t;)t._dirty=1,t=t.parent;return e},Ph=function(e){for(var i=e.parent;i&&i.parent;)i._dirty=1,i.totalDuration(),i=i.parent;return e},jo=function(e,i,t,r){return e._startAt&&(wt?e._startAt.revert(Ts):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(i,!0,r))},Ah=function o(e){return!e||e._ts&&o(e.parent)},fu=function(e){return e._repeat?ln(e._tTime,e=e.duration()+e._rDelay)*e:0},ln=function(e,i){var t=Math.floor(e/=i);return e&&t===e?t-1:t},Ys=function(e,i){return(e-i._start)*i._ts+(i._ts>=0?0:i._dirty?i.totalDuration():i._tDur)},oo=function(e){return e._end=ut(e._start+(e._tDur/Math.abs(e._ts||e._rts||Te)||0))},ao=function(e,i){var t=e._dp;return t&&t.smoothChildTiming&&e._ts&&(e._start=ut(t._time-(e._ts>0?i/e._ts:((e._dirty?e.totalDuration():e._tDur)-i)/-e._ts)),oo(e),t._dirty||wr(t,e)),e},Fl=function(e,i){var t;if((i._time||!i._dur&&i._initted||i._startTe)&&i.render(t,!0)),wr(e,i)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&t.totalTime(t._tTime),t=t._dp;e._zTime=-Te}},xi=function(e,i,t,r){return i.parent&&nr(i),i._start=ut((qi(t)?t:t||e!==Re?Zt(e,t,i):e._time)+i._delay),i._end=ut(i._start+(i.totalDuration()/Math.abs(i.timeScale())||0)),Tl(e,i,"_first","_last",e._sort?"_start":0),Ko(i)||(e._recent=i),r||Fl(e,i),e._ts<0&&ao(e,e._tTime),e},Pl=function(e,i){return(Kt.ScrollTrigger||Pa("scrollTrigger",i))&&Kt.ScrollTrigger.create(i,e)},Al=function(e,i,t,r,n){if(Ba(e,i,n),!e._initted)return 1;if(!t&&e._pt&&!wt&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&bl!==Wt.frame)return tr.push(e),e._lazy=[n,r],1},Oh=function o(e){var i=e.parent;return i&&i._ts&&i._initted&&!i._lock&&(i.rawTime()<0||o(i))},Ko=function(e){var i=e.data;return i==="isFromStart"||i==="isStart"},Lh=function(e,i,t,r){var n=e.ratio,s=i<0||!i&&(!e._start&&Oh(e)&&!(!e._initted&&Ko(e))||(e._ts<0||e._dp._ts<0)&&!Ko(e))?0:1,a=e._rDelay,u=0,l,c,p;if(a&&e._repeat&&(u=os(0,e._tDur,i),c=ln(u,a),e._yoyo&&c&1&&(s=1-s),c!==ln(e._tTime,a)&&(n=1-s,e.vars.repeatRefresh&&e._initted&&e.invalidate())),s!==n||wt||r||e._zTime===Te||!i&&e._zTime){if(!e._initted&&Al(e,i,r,t,u))return;for(p=e._zTime,e._zTime=i||(t?Te:0),t||(t=i&&!p),e.ratio=s,e._from&&(s=1-s),e._time=0,e._tTime=u,l=e._pt;l;)l.r(s,l.d),l=l._next;i<0&&jo(e,i,t,!0),e._onUpdate&&!t&&Gt(e,"onUpdate"),u&&e._repeat&&!t&&e.parent&&Gt(e,"onRepeat"),(i>=e._tDur||i<0)&&e.ratio===s&&(s&&nr(e,1),!t&&!wt&&(Gt(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=i)},Mh=function(e,i,t){var r;if(t>i)for(r=e._first;r&&r._start<=t;){if(r.data==="isPause"&&r._start>i)return r;r=r._next}else for(r=e._last;r&&r._start>=t;){if(r.data==="isPause"&&r._start0&&!r&&ao(e,e._tTime=e._tDur*a),e.parent&&oo(e),t||wr(e.parent,e),e},du=function(e){return e instanceof Ft?wr(e):cn(e,e._dur)},Bh={_start:0,endTime:jn,totalDuration:jn},Zt=function o(e,i,t){var r=e.labels,n=e._recent||Bh,s=e.duration()>=ti?n.endTime(!1):e._dur,a,u,l;return lt(i)&&(isNaN(i)||i in r)?(u=i.charAt(0),l=i.substr(-1)==="%",a=i.indexOf("="),u==="<"||u===">"?(a>=0&&(i=i.replace(/=/,"")),(u==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(i.substr(1))||0)*(l?(a<0?n:t).totalDuration()/100:1)):a<0?(i in r||(r[i]=s),r[i]):(u=parseFloat(i.charAt(a-1)+i.substr(a+1)),l&&t&&(u=u/100*(xt(t)?t[0]:t).totalDuration()),a>1?o(e,i.substr(0,a-1),t)+u:s+u)):i==null?s:+i},Mn=function(e,i,t){var r=qi(i[1]),n=(r?2:1)+(e<2?0:1),s=i[n],a,u;if(r&&(s.duration=i[1]),s.parent=t,e){for(a=s,u=t;u&&!("immediateRender"in a);)a=u.vars.defaults||{},u=Lt(u.vars.inherit)&&u.parent;s.immediateRender=Lt(a.immediateRender),e<2?s.runBackwards=1:s.startAt=i[n-1]}return new Qe(i[0],s,i[n+1])},ar=function(e,i){return e||e===0?i(e):i},os=function(e,i,t){return ti?i:t},yt=function(e,i){return!lt(e)||!(i=Ch.exec(e))?"":i[1]},Ih=function(e,i,t){return ar(t,function(r){return os(e,i,r)})},Qo=[].slice,Ol=function(e,i){return e&&Pi(e)&&"length"in e&&(!i&&!e.length||e.length-1 in e&&Pi(e[0]))&&!e.nodeType&&e!==vi},Rh=function(e,i,t){return t===void 0&&(t=[]),e.forEach(function(r){var n;return lt(r)&&!i||Ol(r,1)?(n=t).push.apply(n,ii(r)):t.push(r)})||t},ii=function(e,i,t){return Me&&!i&&Me.selector?Me.selector(e):lt(e)&&!t&&(Uo||!hn())?Qo.call((i||Fa).querySelectorAll(e),0):xt(e)?Rh(e,t):Ol(e)?Qo.call(e,0):e?[e]:[]},Zo=function(e){return e=ii(e)[0]||Gn("Invalid scope")||{},function(i){var t=e.current||e.nativeElement||e;return ii(i,t.querySelectorAll?t:t===e?Gn("Invalid scope")||Fa.createElement("div"):e)}},Ll=function(e){return e.sort(function(){return .5-Math.random()})},Ml=function(e){if(He(e))return e;var i=Pi(e)?e:{each:e},t=xr(i.ease),r=i.from||0,n=parseFloat(i.base)||0,s={},a=r>0&&r<1,u=isNaN(r)||a,l=i.axis,c=r,p=r;return lt(r)?c=p={center:.5,edges:.5,end:1}[r]||0:!a&&u&&(c=r[0],p=r[1]),function(h,f,g){var d=(g||i).length,_=s[d],m,C,w,D,E,F,x,O,T;if(!_){if(T=i.grid==="auto"?0:(i.grid||[1,ti])[1],!T){for(x=-ti;x<(x=g[T++].getBoundingClientRect().left)&&Tx&&(x=E),Ed?d-1:l?l==="y"?d/T:T:Math.max(T,d/T))||0)*(r==="edges"?-1:1),_.b=d<0?n-d:n,_.u=yt(i.amount||i.each)||0,t=t&&d<0?Yl(t):t}return d=(_[h]-_.min)/_.max||0,ut(_.b+(t?t(d):d)*_.v)+_.u}},Jo=function(e){var i=Math.pow(10,((e+"").split(".")[1]||"").length);return function(t){var r=ut(Math.round(parseFloat(t)/e)*e*i);return(r-r%1)/i+(qi(t)?0:yt(t))}},Bl=function(e,i){var t=xt(e),r,n;return!t&&Pi(e)&&(r=t=e.radius||ti,e.values?(e=ii(e.values),(n=!qi(e[0]))&&(r*=r)):e=Jo(e.increment)),ar(i,t?He(e)?function(s){return n=e(s),Math.abs(n-s)<=r?n:s}:function(s){for(var a=parseFloat(n?s.x:s),u=parseFloat(n?s.y:0),l=ti,c=0,p=e.length,h,f;p--;)n?(h=e[p].x-a,f=e[p].y-u,h=h*h+f*f):h=Math.abs(e[p]-a),hr?n-s:s)})},Kn=function(e){for(var i=0,t="",r,n,s,a;~(r=e.indexOf("random(",i));)s=e.indexOf(")",r),a=e.charAt(r+7)==="[",n=e.substr(r+7,s-r-7).match(a?vl:Wo),t+=e.substr(i,r-i)+Il(a?n:+n[0],a?0:+n[1],+n[2]||1e-5),i=s+1;return t+e.substr(i,e.length-i)},Nl=function(e,i,t,r,n){var s=i-e,a=r-t;return ar(n,function(u){return t+((u-e)/s*a||0)})},Hh=function o(e,i,t,r){var n=isNaN(e+i)?0:function(f){return(1-f)*e+f*i};if(!n){var s=lt(e),a={},u,l,c,p,h;if(t===!0&&(r=1)&&(t=null),s)e={p:e},i={p:i};else if(xt(e)&&!xt(i)){for(c=[],p=e.length,h=p-2,l=1;l(a=Math.abs(a))&&(u=s,n=a);return u},Gt=function(e,i,t){var r=e.vars,n=r[i],s=Me,a=e._ctx,u,l,c;if(n)return u=r[i+"Params"],l=r.callbackScope||e,t&&tr.length&&$s(),a&&(Me=a),c=u?n.apply(l,u):n.call(l),Me=s,c},Cn=function(e){return nr(e),e.scrollTrigger&&e.scrollTrigger.kill(!!wt),e.progress()<1&&Gt(e,"onInterrupt"),e},Ur,zl=[],Vl=function(e){if(e)if(e=!e.name&&e.default||e,Ta()||e.headless){var i=e.name,t=He(e),r=i&&!t&&e.init?function(){this._props=[]}:e,n={init:jn,render:Na,add:Ma,kill:of,modifier:sf,rawVars:0},s={targetTest:0,get:0,getSetter:Ra,aliases:{},register:0};if(hn(),e!==r){if(Yt[i])return;ni(r,ni(Hs(e,n),s)),Pr(r.prototype,Pr(n,Hs(e,s))),Yt[r.prop=i]=r,e.targetTest&&(Fs.push(r),Aa[i]=1),i=(i==="css"?"CSS":i.charAt(0).toUpperCase()+i.substr(1))+"Plugin"}xl(i,r),e.register&&e.register(Rt,r,Bt)}else zl.push(e)},Se=255,En={aqua:[0,Se,Se],lime:[0,Se,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Se],navy:[0,0,128],white:[Se,Se,Se],olive:[128,128,0],yellow:[Se,Se,0],orange:[Se,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Se,0,0],pink:[Se,192,203],cyan:[0,Se,Se],transparent:[Se,Se,Se,0]},vo=function(e,i,t){return e+=e<0?1:e>1?-1:0,(e*6<1?i+(t-i)*e*6:e<.5?t:e*3<2?i+(t-i)*(2/3-e)*6:i)*Se+.5|0},ql=function(e,i,t){var r=e?qi(e)?[e>>16,e>>8&Se,e&Se]:0:En.black,n,s,a,u,l,c,p,h,f,g;if(!r){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),En[e])r=En[e];else if(e.charAt(0)==="#"){if(e.length<6&&(n=e.charAt(1),s=e.charAt(2),a=e.charAt(3),e="#"+n+n+s+s+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&Se,r&Se,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&Se,e&Se]}else if(e.substr(0,3)==="hsl"){if(r=g=e.match(Wo),!i)u=+r[0]%360/360,l=+r[1]/100,c=+r[2]/100,s=c<=.5?c*(l+1):c+l-c*l,n=c*2-s,r.length>3&&(r[3]*=1),r[0]=vo(u+1/3,n,s),r[1]=vo(u,n,s),r[2]=vo(u-1/3,n,s);else if(~e.indexOf("="))return r=e.match(ml),t&&r.length<4&&(r[3]=1),r}else r=e.match(Wo)||En.transparent;r=r.map(Number)}return i&&!g&&(n=r[0]/Se,s=r[1]/Se,a=r[2]/Se,p=Math.max(n,s,a),h=Math.min(n,s,a),c=(p+h)/2,p===h?u=l=0:(f=p-h,l=c>.5?f/(2-p-h):f/(p+h),u=p===n?(s-a)/f+(se||m<0)&&(t+=m-i),r+=m,E=r-t,w=E-s,(w>0||C)&&(F=++p.frame,h=E-p.time*1e3,p.time=E=E/1e3,s+=w+(w>=n?4:n-w),D=1),C||(u=l(d)),D)for(f=0;f=m&&f--},_listeners:a},p}(),hn=function(){return!Qn&&Wt.wake()},De={},Xh=/^[\d.\-M][\d.\-,\s]/,Wh=/["']/g,Uh=function(e){for(var i={},t=e.substr(1,e.length-3).split(":"),r=t[0],n=1,s=t.length,a,u,l;n1&&t.config?t.config.apply(null,~e.indexOf("{")?[Uh(i[1])]:Gh(e).split(",").map(Sl)):De._CE&&Xh.test(e)?De._CE("",e):t},Yl=function(e){return function(i){return 1-e(1-i)}},Xl=function o(e,i){for(var t=e._first,r;t;)t instanceof Ft?o(t,i):t.vars.yoyoEase&&(!t._yoyo||!t._repeat)&&t._yoyo!==i&&(t.timeline?o(t.timeline,i):(r=t._ease,t._ease=t._yEase,t._yEase=r,t._yoyo=i)),t=t._next},xr=function(e,i){return e&&(He(e)?e:De[e]||jh(e))||i},zr=function(e,i,t,r){t===void 0&&(t=function(u){return 1-i(1-u)}),r===void 0&&(r=function(u){return u<.5?i(u*2)/2:1-i((1-u)*2)/2});var n={easeIn:i,easeOut:t,easeInOut:r},s;return Mt(e,function(a){De[a]=Kt[a]=n,De[s=a.toLowerCase()]=t;for(var u in n)De[s+(u==="easeIn"?".in":u==="easeOut"?".out":".inOut")]=De[a+"."+u]=n[u]}),n},Wl=function(e){return function(i){return i<.5?(1-e(1-i*2))/2:.5+e((i-.5)*2)/2}},yo=function o(e,i,t){var r=i>=1?i:1,n=(t||(e?.3:.45))/(i<1?i:1),s=n/Xo*(Math.asin(1/r)||0),a=function(c){return c===1?1:r*Math.pow(2,-10*c)*bh((c-s)*n)+1},u=e==="out"?a:e==="in"?function(l){return 1-a(1-l)}:Wl(a);return n=Xo/n,u.config=function(l,c){return o(e,l,c)},u},wo=function o(e,i){i===void 0&&(i=1.70158);var t=function(s){return s?--s*s*((i+1)*s+i)+1:0},r=e==="out"?t:e==="in"?function(n){return 1-t(1-n)}:Wl(t);return r.config=function(n){return o(e,n)},r};Mt("Linear,Quad,Cubic,Quart,Quint,Strong",function(o,e){var i=e<5?e+1:e;zr(o+",Power"+(i-1),e?function(t){return Math.pow(t,i)}:function(t){return t},function(t){return 1-Math.pow(1-t,i)},function(t){return t<.5?Math.pow(t*2,i)/2:1-Math.pow((1-t)*2,i)/2})});De.Linear.easeNone=De.none=De.Linear.easeIn;zr("Elastic",yo("in"),yo("out"),yo());(function(o,e){var i=1/e,t=2*i,r=2.5*i,n=function(a){return a0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,cn(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,r){if(hn(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(ao(this,t),!n._dp||n.parent||Fl(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t0||!this._tDur&&!t)&&xi(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===Te||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),El(this,t,r)),this},e.time=function(t,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+fu(this))%(this._dur+this._rDelay)||(t?this._dur:0),r):this._time},e.totalProgress=function(t,r){return arguments.length?this.totalTime(this.totalDuration()*t,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(t,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-t:t)+fu(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,r){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,r):this._repeat?ln(this._tTime,n)+1:1},e.timeScale=function(t,r){if(!arguments.length)return this._rts===-Te?0:this._rts;if(this._rts===t)return this;var n=this.parent&&this._ts?Ys(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-Te?0:this._rts,this.totalTime(os(-Math.abs(this._delay),this._tDur,n),r!==!1),oo(this),Ph(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(hn(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Te&&(this._tTime-=Te)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&xi(r,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(Lt(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var r=this.parent||this._dp;return r?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ys(r.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){t===void 0&&(t=Sh);var r=wt;return wt=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),this.data!=="nested"&&t.kill!==!1&&this.kill(),wt=r,this},e.globalTime=function(t){for(var r=this,n=arguments.length?t:r.rawTime();r;)n=r._start+n/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(t):n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,du(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var r=this._time;return this._rDelay=t,du(this),r?this.time(r):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,r){return this.totalTime(Zt(this,t),Lt(r))},e.restart=function(t,r){return this.play().totalTime(t?-this._delay:0,Lt(r))},e.play=function(t,r){return t!=null&&this.seek(t,r),this.reversed(!1).paused(!1)},e.reverse=function(t,r){return t!=null&&this.seek(t||this.totalDuration(),r),this.reversed(!0).paused(!1)},e.pause=function(t,r){return t!=null&&this.seek(t,r),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-Te:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Te,this},e.isActive=function(){var t=this.parent||this._dp,r=this._start,n;return!!(!t||this._ts&&this._initted&&t.isActive()&&(n=t.rawTime(!0))>=r&&n1?(r?(s[t]=r,n&&(s[t+"Params"]=n),t==="onUpdate"&&(this._onUpdate=r)):delete s[t],this):s[t]},e.then=function(t){var r=this;return new Promise(function(n){var s=He(t)?t:kl,a=function(){var l=r.then;r.then=null,He(s)&&(s=s(r))&&(s.then||s===r)&&(r.then=l),n(s),r.then=l};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?a():r._prom=a})},e.kill=function(){Cn(this)},o}();ni(Zn.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:-Te,_prom:0,_ps:!1,_rts:1});var Ft=function(o){pl(e,o);function e(t,r){var n;return t===void 0&&(t={}),n=o.call(this,t)||this,n.labels={},n.smoothChildTiming=!!t.smoothChildTiming,n.autoRemoveChildren=!!t.autoRemoveChildren,n._sort=Lt(t.sortChildren),Re&&xi(t.parent||Re,Li(n),r),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&Pl(Li(n),t.scrollTrigger),n}var i=e.prototype;return i.to=function(r,n,s){return Mn(0,arguments,this),this},i.from=function(r,n,s){return Mn(1,arguments,this),this},i.fromTo=function(r,n,s,a){return Mn(2,arguments,this),this},i.set=function(r,n,s){return n.duration=0,n.parent=this,Ln(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new Qe(r,n,Zt(this,s),1),this},i.call=function(r,n,s){return xi(this,Qe.delayedCall(0,r,n),s)},i.staggerTo=function(r,n,s,a,u,l,c){return s.duration=n,s.stagger=s.stagger||a,s.onComplete=l,s.onCompleteParams=c,s.parent=this,new Qe(r,s,Zt(this,u)),this},i.staggerFrom=function(r,n,s,a,u,l,c){return s.runBackwards=1,Ln(s).immediateRender=Lt(s.immediateRender),this.staggerTo(r,n,s,a,u,l,c)},i.staggerFromTo=function(r,n,s,a,u,l,c,p){return a.startAt=s,Ln(a).immediateRender=Lt(a.immediateRender),this.staggerTo(r,n,a,u,l,c,p)},i.render=function(r,n,s){var a=this._time,u=this._dirty?this.totalDuration():this._tDur,l=this._dur,c=r<=0?0:ut(r),p=this._zTime<0!=r<0&&(this._initted||!l),h,f,g,d,_,m,C,w,D,E,F,x;if(this!==Re&&c>u&&r>=0&&(c=u),c!==this._tTime||s||p){if(a!==this._time&&l&&(c+=this._time-a,r+=this._time-a),h=c,D=this._start,w=this._ts,m=!w,p&&(l||(a=this._zTime),(r||!n)&&(this._zTime=r)),this._repeat){if(F=this._yoyo,_=l+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(_*100+r,n,s);if(h=ut(c%_),c===u?(d=this._repeat,h=l):(d=~~(c/_),d&&d===c/_&&(h=l,d--),h>l&&(h=l)),E=ln(this._tTime,_),!a&&this._tTime&&E!==d&&this._tTime-E*_-this._dur<=0&&(E=d),F&&d&1&&(h=l-h,x=1),d!==E&&!this._lock){var O=F&&E&1,T=O===(F&&d&1);if(d=a&&r>=0)for(f=this._first;f;){if(g=f._next,(f._act||h>=f._start)&&f._ts&&C!==f){if(f.parent!==this)return this.render(r,n,s);if(f.render(f._ts>0?(h-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(h-f._start)*f._ts,n,s),h!==this._time||!this._ts&&!m){C=0,g&&(c+=this._zTime=-Te);break}}f=g}else{f=this._last;for(var y=r<0?r:h;f;){if(g=f._prev,(f._act||y<=f._end)&&f._ts&&C!==f){if(f.parent!==this)return this.render(r,n,s);if(f.render(f._ts>0?(y-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(y-f._start)*f._ts,n,s||wt&&(f._initted||f._startAt)),h!==this._time||!this._ts&&!m){C=0,g&&(c+=this._zTime=y?-Te:Te);break}}f=g}}if(C&&!n&&(this.pause(),C.render(h>=a?0:-Te)._zTime=h>=a?1:-1,this._ts))return this._start=D,oo(this),this.render(r,n,s);this._onUpdate&&!n&&Gt(this,"onUpdate",!0),(c===u&&this._tTime>=this.totalDuration()||!c&&a)&&(D===this._start||Math.abs(w)!==Math.abs(this._ts))&&(this._lock||((r||!l)&&(c===u&&this._ts>0||!c&&this._ts<0)&&nr(this,1),!n&&!(r<0&&!a)&&(c||a||!u)&&(Gt(this,c===u&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c0)&&this._prom())))}return this},i.add=function(r,n){var s=this;if(qi(n)||(n=Zt(this,n,r)),!(r instanceof Zn)){if(xt(r))return r.forEach(function(a){return s.add(a,n)}),this;if(lt(r))return this.addLabel(r,n);if(He(r))r=Qe.delayedCall(0,r);else return this}return this!==r?xi(this,r,n):this},i.getChildren=function(r,n,s,a){r===void 0&&(r=!0),n===void 0&&(n=!0),s===void 0&&(s=!0),a===void 0&&(a=-ti);for(var u=[],l=this._first;l;)l._start>=a&&(l instanceof Qe?n&&u.push(l):(s&&u.push(l),r&&u.push.apply(u,l.getChildren(!0,n,s)))),l=l._next;return u},i.getById=function(r){for(var n=this.getChildren(1,1,1),s=n.length;s--;)if(n[s].vars.id===r)return n[s]},i.remove=function(r){return lt(r)?this.removeLabel(r):He(r)?this.killTweensOf(r):(so(this,r),r===this._recent&&(this._recent=this._last),wr(this))},i.totalTime=function(r,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ut(Wt.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),o.prototype.totalTime.call(this,r,n),this._forcing=0,this):this._tTime},i.addLabel=function(r,n){return this.labels[r]=Zt(this,n),this},i.removeLabel=function(r){return delete this.labels[r],this},i.addPause=function(r,n,s){var a=Qe.delayedCall(0,n||jn,s);return a.data="isPause",this._hasPause=1,xi(this,a,Zt(this,r))},i.removePause=function(r){var n=this._first;for(r=Zt(this,r);n;)n._start===r&&n.data==="isPause"&&nr(n),n=n._next},i.killTweensOf=function(r,n,s){for(var a=this.getTweensOf(r,s),u=a.length;u--;)Ki!==a[u]&&a[u].kill(r,n);return this},i.getTweensOf=function(r,n){for(var s=[],a=ii(r),u=this._first,l=qi(n),c;u;)u instanceof Qe?kh(u._targets,a)&&(l?(!Ki||u._initted&&u._ts)&&u.globalTime(0)<=n&&u.globalTime(u.totalDuration())>n:!n||u.isActive())&&s.push(u):(c=u.getTweensOf(a,n)).length&&s.push.apply(s,c),u=u._next;return s},i.tweenTo=function(r,n){n=n||{};var s=this,a=Zt(s,r),u=n,l=u.startAt,c=u.onStart,p=u.onStartParams,h=u.immediateRender,f,g=Qe.to(s,ni({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:n.duration||Math.abs((a-(l&&"time"in l?l.time:s._time))/s.timeScale())||Te,onStart:function(){if(s.pause(),!f){var _=n.duration||Math.abs((a-(l&&"time"in l?l.time:s._time))/s.timeScale());g._dur!==_&&cn(g,_,0,1).render(g._time,!0,!0),f=1}c&&c.apply(g,p||[])}},n));return h?g.render(0):g},i.tweenFromTo=function(r,n,s){return this.tweenTo(n,ni({startAt:{time:Zt(this,r)}},s))},i.recent=function(){return this._recent},i.nextLabel=function(r){return r===void 0&&(r=this._time),pu(this,Zt(this,r))},i.previousLabel=function(r){return r===void 0&&(r=this._time),pu(this,Zt(this,r),1)},i.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+Te)},i.shiftChildren=function(r,n,s){s===void 0&&(s=0);for(var a=this._first,u=this.labels,l;a;)a._start>=s&&(a._start+=r,a._end+=r),a=a._next;if(n)for(l in u)u[l]>=s&&(u[l]+=r);return wr(this)},i.invalidate=function(r){var n=this._first;for(this._lock=0;n;)n.invalidate(r),n=n._next;return o.prototype.invalidate.call(this,r)},i.clear=function(r){r===void 0&&(r=!0);for(var n=this._first,s;n;)s=n._next,this.remove(n),n=s;return this._dp&&(this._time=this._tTime=this._pTime=0),r&&(this.labels={}),wr(this)},i.totalDuration=function(r){var n=0,s=this,a=s._last,u=ti,l,c,p;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-r:r));if(s._dirty){for(p=s.parent;a;)l=a._prev,a._dirty&&a.totalDuration(),c=a._start,c>u&&s._sort&&a._ts&&!s._lock?(s._lock=1,xi(s,a,c-a._delay,1)._lock=0):u=c,c<0&&a._ts&&(n-=c,(!p&&!s._dp||p&&p.smoothChildTiming)&&(s._start+=c/s._ts,s._time-=c,s._tTime-=c),s.shiftChildren(-c,!1,-1/0),u=0),a._end>n&&a._ts&&(n=a._end),a=l;cn(s,s===Re&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(r){if(Re._ts&&(El(Re,Ys(r,Re)),bl=Wt.frame),Wt.frame>=cu){cu+=jt.autoSleep||120;var n=Re._first;if((!n||!n._ts)&&jt.autoSleep&&Wt._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||Wt.sleep()}}},e}(Zn);ni(Ft.prototype,{_lock:0,_hasPause:0,_forcing:0});var Kh=function(e,i,t,r,n,s,a){var u=new Bt(this._pt,e,i,0,1,Jl,null,n),l=0,c=0,p,h,f,g,d,_,m,C;for(u.b=t,u.e=r,t+="",r+="",(m=~r.indexOf("random("))&&(r=Kn(r)),s&&(C=[t,r],s(C,e,i),t=C[0],r=C[1]),h=t.match(mo)||[];p=mo.exec(r);)g=p[0],d=r.substring(l,p.index),f?f=(f+1)%5:d.substr(-5)==="rgba("&&(f=1),g!==h[c++]&&(_=parseFloat(h[c-1])||0,u._pt={_next:u._pt,p:d||c===1?d:",",s:_,c:g.charAt(1)==="="?en(_,g)-_:parseFloat(g)-_,m:f&&f<4?Math.round:0},l=mo.lastIndex);return u.c=l")}),D.duration();else{F={};for(O in g)O==="ease"||O==="easeEach"||ef(O,g[O],F,g.easeEach);for(O in F)for(N=F[O].sort(function(z,V){return z.t-V.t}),P=0,E=0;Eu-Te&&!c?u:rl&&(h=l)),m=this._yoyo&&g&1,m&&(D=this._yEase,h=l-h),_=ln(this._tTime,d),h===a&&!s&&this._initted&&g===_)return this._tTime=p,this;g!==_&&(w&&this._yEase&&Xl(w,m),this.vars.repeatRefresh&&!m&&!this._lock&&this._time!==d&&this._initted&&(this._lock=s=1,this.render(ut(d*g),!0).invalidate()._lock=0))}if(!this._initted){if(Al(this,c?r:h,s,n,p))return this._tTime=0,this;if(a!==this._time&&!(s&&this.vars.repeatRefresh&&g!==_))return this;if(l!==this._dur)return this.render(r,n,s)}if(this._tTime=p,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=C=(D||this._ease)(h/l),this._from&&(this.ratio=C=1-C),h&&!a&&!n&&!g&&(Gt(this,"onStart"),this._tTime!==p))return this;for(f=this._pt;f;)f.r(C,f.d),f=f._next;w&&w.render(r<0?r:w._dur*w._ease(h/this._dur),n,s)||this._startAt&&(this._zTime=r),this._onUpdate&&!n&&(c&&jo(this,r,n,s),Gt(this,"onUpdate")),this._repeat&&g!==_&&this.vars.onRepeat&&!n&&this.parent&&Gt(this,"onRepeat"),(p===this._tDur||!p)&&this._tTime===p&&(c&&!this._onUpdate&&jo(this,r,!0,!0),(r||!l)&&(p===this._tDur&&this._ts>0||!p&&this._ts<0)&&nr(this,1),!n&&!(c&&!a)&&(p||a||m)&&(Gt(this,p===u?"onComplete":"onReverseComplete",!0),this._prom&&!(p0)&&this._prom()))}return this},i.targets=function(){return this._targets},i.invalidate=function(r){return(!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),o.prototype.invalidate.call(this,r)},i.resetTo=function(r,n,s,a,u){Qn||Wt.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Ba(this,l),c=this._ease(l/this._dur),Zh(this,r,n,s,a,c,l,u)?this.resetTo(r,n,s,a,1):(ao(this,0),this.parent||Tl(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},i.kill=function(r,n){if(n===void 0&&(n="all"),!r&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?Cn(this):this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(r,n,Ki&&Ki.vars.overwrite!==!0)._first||Cn(this),this.parent&&s!==this.timeline.totalDuration()&&cn(this,this._dur*this.timeline._tDur/s,0,1),this}var a=this._targets,u=r?ii(r):a,l=this._ptLookup,c=this._pt,p,h,f,g,d,_,m;if((!n||n==="all")&&Fh(a,u))return n==="all"&&(this._pt=0),Cn(this);for(p=this._op=this._op||[],n!=="all"&&(lt(n)&&(d={},Mt(n,function(C){return d[C]=1}),n=d),n=Jh(a,n)),m=a.length;m--;)if(~u.indexOf(a[m])){h=l[m],n==="all"?(p[m]=n,g=h,f={}):(f=p[m]=p[m]||{},g=n);for(d in g)_=h&&h[d],_&&((!("kill"in _.d)||_.d.kill(d)===!0)&&so(this,_,"_pt"),delete h[d]),f!=="all"&&(f[d]=1)}return this._initted&&!this._pt&&c&&Cn(this),this},e.to=function(r,n){return new e(r,n,arguments[2])},e.from=function(r,n){return Mn(1,arguments)},e.delayedCall=function(r,n,s,a){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:r,onComplete:n,onReverseComplete:n,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:a})},e.fromTo=function(r,n,s){return Mn(2,arguments)},e.set=function(r,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(r,n)},e.killTweensOf=function(r,n,s){return Re.killTweensOf(r,n,s)},e}(Zn);ni(Qe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Mt("staggerTo,staggerFrom,staggerFromTo",function(o){Qe[o]=function(){var e=new Ft,i=Qo.call(arguments,0);return i.splice(o==="staggerFromTo"?5:4,0,0),e[o].apply(e,i)}});var Ia=function(e,i,t){return e[i]=t},Ql=function(e,i,t){return e[i](t)},tf=function(e,i,t,r){return e[i](r.fp,t)},rf=function(e,i,t){return e.setAttribute(i,t)},Ra=function(e,i){return He(e[i])?Ql:ka(e[i])&&e.setAttribute?rf:Ia},Zl=function(e,i){return i.set(i.t,i.p,Math.round((i.s+i.c*e)*1e6)/1e6,i)},nf=function(e,i){return i.set(i.t,i.p,!!(i.s+i.c*e),i)},Jl=function(e,i){var t=i._pt,r="";if(!e&&i.b)r=i.b;else if(e===1&&i.e)r=i.e;else{for(;t;)r=t.p+(t.m?t.m(t.s+t.c*e):Math.round((t.s+t.c*e)*1e4)/1e4)+r,t=t._next;r+=i.c}i.set(i.t,i.p,r,i)},Na=function(e,i){for(var t=i._pt;t;)t.r(e,t.d),t=t._next},sf=function(e,i,t,r){for(var n=this._pt,s;n;)s=n._next,n.p===r&&n.modifier(e,i,t),n=s},of=function(e){for(var i=this._pt,t,r;i;)r=i._next,i.p===e&&!i.op||i.op===e?so(this,i,"_pt"):i.dep||(t=1),i=r;return!t},af=function(e,i,t,r){r.mSet(e,i,r.m.call(r.tween,t,r.mt),r)},ec=function(e){for(var i=e._pt,t,r,n,s;i;){for(t=i._next,r=n;r&&r.pr>i.pr;)r=r._next;(i._prev=r?r._prev:s)?i._prev._next=i:n=i,(i._next=r)?r._prev=i:s=i,i=t}e._pt=n},Bt=function(){function o(i,t,r,n,s,a,u,l,c){this.t=t,this.s=n,this.c=s,this.p=r,this.r=a||Zl,this.d=u||this,this.set=l||Ia,this.pr=c||0,this._next=i,i&&(i._prev=this)}var e=o.prototype;return e.modifier=function(t,r,n){this.mSet=this.mSet||this.set,this.set=af,this.m=t,this.mt=n,this.tween=r},o}();Mt(Oa+"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(o){return Aa[o]=1});Kt.TweenMax=Kt.TweenLite=Qe;Kt.TimelineLite=Kt.TimelineMax=Ft;Re=new Ft({sortChildren:!1,defaults:un,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});jt.stringFilter=Hl;var br=[],Ps={},uf=[],_u=0,lf=0,xo=function(e){return(Ps[e]||uf).map(function(i){return i()})},ta=function(){var e=Date.now(),i=[];e-_u>2&&(xo("matchMediaInit"),br.forEach(function(t){var r=t.queries,n=t.conditions,s,a,u,l;for(a in r)s=vi.matchMedia(r[a]).matches,s&&(u=1),s!==n[a]&&(n[a]=s,l=1);l&&(t.revert(),u&&i.push(t))}),xo("matchMediaRevert"),i.forEach(function(t){return t.onMatch(t,function(r){return t.add(null,r)})}),_u=e,xo("matchMedia"))},tc=function(){function o(i,t){this.selector=t&&Zo(t),this.data=[],this._r=[],this.isReverted=!1,this.id=lf++,i&&this.add(i)}var e=o.prototype;return e.add=function(t,r,n){He(t)&&(n=r,r=t,t=He);var s=this,a=function(){var l=Me,c=s.selector,p;return l&&l!==s&&l.data.push(s),n&&(s.selector=Zo(n)),Me=s,p=r.apply(s,arguments),He(p)&&s._r.push(p),Me=l,s.selector=c,s.isReverted=!1,p};return s.last=a,t===He?a(s,function(u){return s.add(null,u)}):t?s[t]=a:a},e.ignore=function(t){var r=Me;Me=null,t(this),Me=r},e.getTweens=function(){var t=[];return this.data.forEach(function(r){return r instanceof o?t.push.apply(t,r.getTweens()):r instanceof Qe&&!(r.parent&&r.parent.data==="nested")&&t.push(r)}),t},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,r){var n=this;if(t?function(){for(var a=n.getTweens(),u=n.data.length,l;u--;)l=n.data[u],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(c){return a.splice(a.indexOf(c),1)}));for(a.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,p){return p.g-c.g||-1/0}).forEach(function(c){return c.t.revert(t)}),u=n.data.length;u--;)l=n.data[u],l instanceof Ft?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof Qe)&&l.revert&&l.revert(t);n._r.forEach(function(c){return c(t,n)}),n.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),r)for(var s=br.length;s--;)br[s].id===this.id&&br.splice(s,1)},e.revert=function(t){this.kill(t||{})},o}(),cf=function(){function o(i){this.contexts=[],this.scope=i,Me&&Me.data.push(this)}var e=o.prototype;return e.add=function(t,r,n){Pi(t)||(t={matches:t});var s=new tc(0,n||this.scope),a=s.conditions={},u,l,c;Me&&!s.selector&&(s.selector=Me.selector),this.contexts.push(s),r=s.add("onMatch",r),s.queries=t;for(l in t)l==="all"?c=1:(u=vi.matchMedia(t[l]),u&&(br.indexOf(s)<0&&br.push(s),(a[l]=u.matches)&&(c=1),u.addListener?u.addListener(ta):u.addEventListener("change",ta)));return c&&r(s,function(p){return s.add(null,p)}),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach(function(r){return r.kill(t,!0)})},o}(),Xs={registerPlugin:function(){for(var e=arguments.length,i=new Array(e),t=0;t1){var r=e.map(function(c){return Rt.quickSetter(c,i,t)}),n=r.length;return function(c){for(var p=n;p--;)r[p](c)}}e=e[0]||{};var s=Yt[i],a=yr(e),u=a.harness&&(a.harness.aliases||{})[i]||i,l=s?function(c){var p=new s;Ur._pt=0,p.init(e,t?c+t:c,Ur,0,[e]),p.render(1,p),Ur._pt&&Na(1,Ur)}:a.set(e,u);return s?l:function(c){return l(e,u,t?c+t:c,a,1)}},quickTo:function(e,i,t){var r,n=Rt.to(e,Pr((r={},r[i]="+=0.1",r.paused=!0,r),t||{})),s=function(u,l,c){return n.resetTo(i,u,l,c)};return s.tween=n,s},isTweening:function(e){return Re.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=xr(e.ease,un.ease)),hu(un,e||{})},config:function(e){return hu(jt,e||{})},registerEffect:function(e){var i=e.name,t=e.effect,r=e.plugins,n=e.defaults,s=e.extendTimeline;(r||"").split(",").forEach(function(a){return a&&!Yt[a]&&!Kt[a]&&Gn(i+" effect requires "+a+" plugin.")}),Do[i]=function(a,u,l){return t(ii(a),ni(u||{},n),l)},s&&(Ft.prototype[i]=function(a,u,l){return this.add(Do[i](a,Pi(u)?u:(l=u)&&{},this),l)})},registerEase:function(e,i){De[e]=xr(i)},parseEase:function(e,i){return arguments.length?xr(e,i):De},getById:function(e){return Re.getById(e)},exportRoot:function(e,i){e===void 0&&(e={});var t=new Ft(e),r,n;for(t.smoothChildTiming=Lt(e.smoothChildTiming),Re.remove(t),t._dp=0,t._time=t._tTime=Re._time,r=Re._first;r;)n=r._next,(i||!(!r._dur&&r instanceof Qe&&r.vars.onComplete===r._targets[0]))&&xi(t,r,r._start-r._delay),r=n;return xi(Re,t,0),t},context:function(e,i){return e?new tc(e,i):Me},matchMedia:function(e){return new cf(e)},matchMediaRefresh:function(){return br.forEach(function(e){var i=e.conditions,t,r;for(r in i)i[r]&&(i[r]=!1,t=1);t&&e.revert()})||ta()},addEventListener:function(e,i){var t=Ps[e]||(Ps[e]=[]);~t.indexOf(i)||t.push(i)},removeEventListener:function(e,i){var t=Ps[e],r=t&&t.indexOf(i);r>=0&&t.splice(r,1)},utils:{wrap:qh,wrapYoyo:$h,distribute:Ml,random:Il,snap:Bl,normalize:Vh,getUnit:yt,clamp:Ih,splitColor:ql,toArray:ii,selector:Zo,mapRange:Nl,pipe:Nh,unitize:zh,interpolate:Hh,shuffle:Ll},install:wl,effects:Do,ticker:Wt,updateRoot:Ft.updateRoot,plugins:Yt,globalTimeline:Re,core:{PropTween:Bt,globals:xl,Tween:Qe,Timeline:Ft,Animation:Zn,getCache:yr,_removeLinkedListItem:so,reverting:function(){return wt},context:function(e){return e&&Me&&(Me.data.push(e),e._ctx=Me),Me},suppressOverwrites:function(e){return Sa=e}}};Mt("to,from,fromTo,delayedCall,set,killTweensOf",function(o){return Xs[o]=Qe[o]});Wt.add(Ft.updateRoot);Ur=Xs.to({},{duration:0});var hf=function(e,i){for(var t=e._pt;t&&t.p!==i&&t.op!==i&&t.fp!==i;)t=t._next;return t},ff=function(e,i){var t=e._targets,r,n,s;for(r in i)for(n=t.length;n--;)s=e._ptLookup[n][r],s&&(s=s.d)&&(s._pt&&(s=hf(s,r)),s&&s.modifier&&s.modifier(i[r],e,t[n],r))},bo=function(e,i){return{name:e,rawVars:1,init:function(r,n,s){s._onInit=function(a){var u,l;if(lt(n)&&(u={},Mt(n,function(c){return u[c]=1}),n=u),i){u={};for(l in n)u[l]=i(n[l]);n=u}ff(a,n)}}}},Rt=Xs.registerPlugin({name:"attr",init:function(e,i,t,r,n){var s,a,u;this.tween=t;for(s in i)u=e.getAttribute(s)||"",a=this.add(e,"setAttribute",(u||0)+"",i[s],r,n,0,0,s),a.op=s,a.b=u,this._props.push(s)},render:function(e,i){for(var t=i._pt;t;)wt?t.set(t.t,t.p,t.b,t):t.r(e,t.d),t=t._next}},{name:"endArray",init:function(e,i){for(var t=i.length;t--;)this.add(e,t,e[t]||0,i[t],0,0,0,0,0,1)}},bo("roundProps",Jo),bo("modifiers"),bo("snap",Bl))||Xs;Qe.version=Ft.version=Rt.version="3.12.5";yl=1;Ta()&&hn();De.Power0;De.Power1;De.Power2;De.Power3;De.Power4;De.Linear;De.Quad;De.Cubic;De.Quart;De.Quint;De.Strong;De.Elastic;De.Back;De.SteppedEase;De.Bounce;De.Sine;De.Expo;De.Circ;/*! * CSSPlugin 3.12.5 * https://gsap.com * @@ -14,7 +14,7 @@ var Dh=Object.defineProperty;var vh=(o,e,i)=>e in o?Dh(o,e,{enumerable:!0,config * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com -*/var _u,Zi,tn,za,_r,Du,Va,df=function(){return typeof window<"u"},Hi={},fr=180/Math.PI,rn=Math.PI/180,Vr=Math.atan2,vu=1e8,qa=/([A-Z])/g,pf=/(left|right|width|margin|padding|x)/i,gf=/[\s,\(]\S/,bi={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},ia=function(e,i){return i.set(i.t,i.p,Math.round((i.s+i.c*e)*1e4)/1e4+i.u,i)},mf=function(e,i){return i.set(i.t,i.p,e===1?i.e:Math.round((i.s+i.c*e)*1e4)/1e4+i.u,i)},_f=function(e,i){return i.set(i.t,i.p,e?Math.round((i.s+i.c*e)*1e4)/1e4+i.u:i.b,i)},Df=function(e,i){var t=i.s+i.c*e;i.set(i.t,i.p,~~(t+(t<0?-.5:.5))+i.u,i)},ic=function(e,i){return i.set(i.t,i.p,e?i.e:i.b,i)},rc=function(e,i){return i.set(i.t,i.p,e!==1?i.b:i.e,i)},vf=function(e,i,t){return e.style[i]=t},yf=function(e,i,t){return e.style.setProperty(i,t)},wf=function(e,i,t){return e._gsap[i]=t},xf=function(e,i,t){return e._gsap.scaleX=e._gsap.scaleY=t},bf=function(e,i,t,r,n){var s=e._gsap;s.scaleX=s.scaleY=t,s.renderTransform(n,s)},Cf=function(e,i,t,r,n){var s=e._gsap;s[i]=t,s.renderTransform(n,s)},Ne="transform",It=Ne+"Origin",Ef=function o(e,i){var t=this,r=this.target,n=r.style,s=r._gsap;if(e in Hi&&n){if(this.tfm=this.tfm||{},e!=="transform")e=bi[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return t.tfm[a]=Mi(r,a)}):this.tfm[e]=s.x?s[e]:Mi(r,e),e===It&&(this.tfm.zOrigin=s.zOrigin);else return bi.transform.split(",").forEach(function(a){return o.call(t,a,i)});if(this.props.indexOf(Ne)>=0)return;s.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(It,i,"")),e=Ne}(n||i)&&this.props.push(e,i,n[e])},nc=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},Sf=function(){var e=this.props,i=this.target,t=i.style,r=i._gsap,n,s;for(n=0;n=0?yu[s]:"")+e},na=function(){df()&&window.document&&(_u=window,Zi=_u.document,tn=Zi.documentElement,_r=ra("div")||{style:{}},ra("div"),Ne=fn(Ne),It=Ne+"Origin",_r.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",oc=!!fn("perspective"),Va=Rt.core.reverting,za=1)},Co=function o(e){var i=ra("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),t=this.parentNode,r=this.nextSibling,n=this.style.cssText,s;if(tn.appendChild(i),i.appendChild(this),this.style.display="block",e)try{s=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=o}catch{}else this._gsapBBox&&(s=this._gsapBBox());return t&&(r?t.insertBefore(this,r):t.appendChild(this)),tn.removeChild(i),this.style.cssText=n,s},wu=function(e,i){for(var t=i.length;t--;)if(e.hasAttribute(i[t]))return e.getAttribute(i[t])},ac=function(e){var i;try{i=e.getBBox()}catch{i=Co.call(e,!0)}return i&&(i.width||i.height)||e.getBBox===Co||(i=Co.call(e,!0)),i&&!i.width&&!i.x&&!i.y?{x:+wu(e,["x","cx","x1"])||0,y:+wu(e,["y","cy","y1"])||0,width:0,height:0}:i},uc=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&ac(e))},Or=function(e,i){if(i){var t=e.style,r;i in Hi&&i!==It&&(i=Ne),t.removeProperty?(r=i.substr(0,2),(r==="ms"||i.substr(0,6)==="webkit")&&(i="-"+i),t.removeProperty(r==="--"?i:i.replace(qa,"-$1").toLowerCase())):t.removeAttribute(i)}},Ji=function(e,i,t,r,n,s){var a=new Bt(e._pt,i,t,0,1,s?rc:ic);return e._pt=a,a.b=r,a.e=n,e._props.push(t),a},xu={deg:1,rad:1,turn:1},kf={grid:1,flex:1},or=function o(e,i,t,r){var n=parseFloat(t)||0,s=(t+"").trim().substr((n+"").length)||"px",a=_r.style,u=pf.test(i),l=e.tagName.toLowerCase()==="svg",c=(l?"client":"offset")+(u?"Width":"Height"),p=100,h=r==="px",f=r==="%",g,d,m,_;if(r===s||!n||xu[r]||xu[s])return n;if(s!=="px"&&!h&&(n=o(e,i,t,"px")),_=e.getCTM&&uc(e),(f||s==="%")&&(Hi[i]||~i.indexOf("adius")))return g=_?e.getBBox()[u?"width":"height"]:e[c],Ue(f?n/g*p:n/100*g);if(a[u?"width":"height"]=p+(h?s:r),d=~i.indexOf("adius")||r==="em"&&e.appendChild&&!l?e:e.parentNode,_&&(d=(e.ownerSVGElement||{}).parentNode),(!d||d===Zi||!d.appendChild)&&(d=Zi.body),m=d._gsap,m&&f&&m.width&&u&&m.time===Wt.time&&!m.uncache)return Ue(n/m.width*p);if(f&&(i==="height"||i==="width")){var C=e.style[i];e.style[i]=p+r,g=e[c],C?e.style[i]=C:Or(e,i)}else(f||s==="%")&&!kf[ki(d,"display")]&&(a.position=ki(e,"position")),d===e&&(a.position="static"),d.appendChild(_r),g=_r[c],d.removeChild(_r),a.position="absolute";return u&&f&&(m=wr(d),m.time=Wt.time,m.width=d[c]),Ue(h?g*n/p:g&&n?p/g*n:0)},Mi=function(e,i,t,r){var n;return za||na(),i in bi&&i!=="transform"&&(i=bi[i],~i.indexOf(",")&&(i=i.split(",")[0])),Hi[i]&&i!=="transform"?(n=es(e,r),n=i!=="transformOrigin"?n[i]:n.svg?n.origin:Us(ki(e,It))+" "+n.zOrigin+"px"):(n=e.style[i],(!n||n==="auto"||r||~(n+"").indexOf("calc("))&&(n=Ws[i]&&Ws[i](e,i,t)||ki(e,i)||Cl(e,i)||(i==="opacity"?1:0))),t&&!~(n+"").trim().indexOf(" ")?or(e,i,n,t)+t:n},Tf=function(e,i,t,r){if(!t||t==="none"){var n=fn(i,e,1),s=n&&ki(e,n,1);s&&s!==t?(i=n,t=s):i==="borderColor"&&(t=ki(e,"borderTopColor"))}var a=new Bt(this._pt,e.style,i,0,1,Jl),u=0,l=0,c,p,h,f,g,d,m,_,C,w,D,E;if(a.b=t,a.e=r,t+="",r+="",r==="auto"&&(d=e.style[i],e.style[i]=r,r=ki(e,i)||r,d?e.style[i]=d:Or(e,i)),c=[t,r],Hl(c),t=c[0],r=c[1],h=t.match(Wr)||[],E=r.match(Wr)||[],E.length){for(;p=Wr.exec(r);)m=p[0],C=r.substring(u,p.index),g?g=(g+1)%5:(C.substr(-5)==="rgba("||C.substr(-5)==="hsla(")&&(g=1),m!==(d=h[l++]||"")&&(f=parseFloat(d)||0,D=d.substr((f+"").length),m.charAt(1)==="="&&(m=en(f,m)+D),_=parseFloat(m),w=m.substr((_+"").length),u=Wr.lastIndex-w.length,w||(w=w||jt.units[i]||D,u===r.length&&(r+=w,a.e+=w)),D!==w&&(f=or(e,i,d,w)||0),a._pt={_next:a._pt,p:C||l===1?C:",",s:f,c:_-f,m:g&&g<4||i==="zIndex"?Math.round:0});a.c=u-1;)a=n[l],Hi[a]&&(u=1,a=a==="transformOrigin"?It:Ne),Or(t,a);u&&(Or(t,Ne),s&&(s.svg&&t.removeAttribute("transform"),es(t,1),s.uncache=1,nc(r)))}},Ws={clearProps:function(e,i,t,r,n){if(n.data!=="isFromStart"){var s=e._pt=new Bt(e._pt,i,t,0,0,Pf);return s.u=r,s.pr=-10,s.tween=n,e._props.push(t),1}}},Jn=[1,0,0,1,0,0],lc={},cc=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Cu=function(e){var i=ki(e,Ne);return cc(i)?Jn:i.substr(7).match(_l).map(Ue)},$a=function(e,i){var t=e._gsap||wr(e),r=e.style,n=Cu(e),s,a,u,l;return t.svg&&e.getAttribute("transform")?(u=e.transform.baseVal.consolidate().matrix,n=[u.a,u.b,u.c,u.d,u.e,u.f],n.join(",")==="1,0,0,1,0,0"?Jn:n):(n===Jn&&!e.offsetParent&&e!==tn&&!t.svg&&(u=r.display,r.display="block",s=e.parentNode,(!s||!e.offsetParent)&&(l=1,a=e.nextElementSibling,tn.appendChild(e)),n=Cu(e),u?r.display=u:Or(e,"display"),l&&(a?s.insertBefore(e,a):s?s.appendChild(e):tn.removeChild(e))),i&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},sa=function(e,i,t,r,n,s){var a=e._gsap,u=n||$a(e,!0),l=a.xOrigin||0,c=a.yOrigin||0,p=a.xOffset||0,h=a.yOffset||0,f=u[0],g=u[1],d=u[2],m=u[3],_=u[4],C=u[5],w=i.split(" "),D=parseFloat(w[0])||0,E=parseFloat(w[1])||0,F,x,O,T;t?u!==Jn&&(x=f*m-g*d)&&(O=D*(m/x)+E*(-d/x)+(d*C-m*_)/x,T=D*(-g/x)+E*(f/x)-(f*C-g*_)/x,D=O,E=T):(F=ac(e),D=F.x+(~w[0].indexOf("%")?D/100*F.width:D),E=F.y+(~(w[1]||w[0]).indexOf("%")?E/100*F.height:E)),r||r!==!1&&a.smooth?(_=D-l,C=E-c,a.xOffset=p+(_*f+C*d)-_,a.yOffset=h+(_*g+C*m)-C):a.xOffset=a.yOffset=0,a.xOrigin=D,a.yOrigin=E,a.smooth=!!r,a.origin=i,a.originIsAbsolute=!!t,e.style[It]="0px 0px",s&&(Ji(s,a,"xOrigin",l,D),Ji(s,a,"yOrigin",c,E),Ji(s,a,"xOffset",p,a.xOffset),Ji(s,a,"yOffset",h,a.yOffset)),e.setAttribute("data-svg-origin",D+" "+E)},es=function(e,i){var t=e._gsap||new Ul(e);if("x"in t&&!i&&!t.uncache)return t;var r=e.style,n=t.scaleX<0,s="px",a="deg",u=getComputedStyle(e),l=ki(e,It)||"0",c,p,h,f,g,d,m,_,C,w,D,E,F,x,O,T,y,B,P,N,L,I,z,V,G,k,v,Q,ne,Ve,Z,Y;return c=p=h=d=m=_=C=w=D=0,f=g=1,t.svg=!!(e.getCTM&&uc(e)),u.translate&&((u.translate!=="none"||u.scale!=="none"||u.rotate!=="none")&&(r[Ne]=(u.translate!=="none"?"translate3d("+(u.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(u.rotate!=="none"?"rotate("+u.rotate+") ":"")+(u.scale!=="none"?"scale("+u.scale.split(" ").join(",")+") ":"")+(u[Ne]!=="none"?u[Ne]:"")),r.scale=r.rotate=r.translate="none"),x=$a(e,t.svg),t.svg&&(t.uncache?(G=e.getBBox(),l=t.xOrigin-G.x+"px "+(t.yOrigin-G.y)+"px",V=""):V=!i&&e.getAttribute("data-svg-origin"),sa(e,V||l,!!V||t.originIsAbsolute,t.smooth!==!1,x)),E=t.xOrigin||0,F=t.yOrigin||0,x!==Jn&&(B=x[0],P=x[1],N=x[2],L=x[3],c=I=x[4],p=z=x[5],x.length===6?(f=Math.sqrt(B*B+P*P),g=Math.sqrt(L*L+N*N),d=B||P?Vr(P,B)*fr:0,C=N||L?Vr(N,L)*fr+d:0,C&&(g*=Math.abs(Math.cos(C*rn))),t.svg&&(c-=E-(E*B+F*N),p-=F-(E*P+F*L))):(Y=x[6],Ve=x[7],v=x[8],Q=x[9],ne=x[10],Z=x[11],c=x[12],p=x[13],h=x[14],O=Vr(Y,ne),m=O*fr,O&&(T=Math.cos(-O),y=Math.sin(-O),V=I*T+v*y,G=z*T+Q*y,k=Y*T+ne*y,v=I*-y+v*T,Q=z*-y+Q*T,ne=Y*-y+ne*T,Z=Ve*-y+Z*T,I=V,z=G,Y=k),O=Vr(-N,ne),_=O*fr,O&&(T=Math.cos(-O),y=Math.sin(-O),V=B*T-v*y,G=P*T-Q*y,k=N*T-ne*y,Z=L*y+Z*T,B=V,P=G,N=k),O=Vr(P,B),d=O*fr,O&&(T=Math.cos(O),y=Math.sin(O),V=B*T+P*y,G=I*T+z*y,P=P*T-B*y,z=z*T-I*y,B=V,I=G),m&&Math.abs(m)+Math.abs(d)>359.9&&(m=d=0,_=180-_),f=Ue(Math.sqrt(B*B+P*P+N*N)),g=Ue(Math.sqrt(z*z+Y*Y)),O=Vr(I,z),C=Math.abs(O)>2e-4?O*fr:0,D=Z?1/(Z<0?-Z:Z):0),t.svg&&(V=e.getAttribute("transform"),t.forceCSS=e.setAttribute("transform","")||!cc(ki(e,Ne)),V&&e.setAttribute("transform",V))),Math.abs(C)>90&&Math.abs(C)<270&&(n?(f*=-1,C+=d<=0?180:-180,d+=d<=0?180:-180):(g*=-1,C+=C<=0?180:-180)),i=i||t.uncache,t.x=c-((t.xPercent=c&&(!i&&t.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-c)?-50:0)))?e.offsetWidth*t.xPercent/100:0)+s,t.y=p-((t.yPercent=p&&(!i&&t.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-p)?-50:0)))?e.offsetHeight*t.yPercent/100:0)+s,t.z=h+s,t.scaleX=Ue(f),t.scaleY=Ue(g),t.rotation=Ue(d)+a,t.rotationX=Ue(m)+a,t.rotationY=Ue(_)+a,t.skewX=C+a,t.skewY=w+a,t.transformPerspective=D+s,(t.zOrigin=parseFloat(l.split(" ")[2])||!i&&t.zOrigin||0)&&(r[It]=Us(l)),t.xOffset=t.yOffset=0,t.force3D=jt.force3D,t.renderTransform=t.svg?Of:oc?hc:Af,t.uncache=0,t},Us=function(e){return(e=e.split(" "))[0]+" "+e[1]},Eo=function(e,i,t){var r=yt(i);return Ue(parseFloat(i)+parseFloat(or(e,"x",t+"px",r)))+r},Af=function(e,i){i.z="0px",i.rotationY=i.rotationX="0deg",i.force3D=0,hc(e,i)},cr="0deg",Dn="0px",hr=") ",hc=function(e,i){var t=i||this,r=t.xPercent,n=t.yPercent,s=t.x,a=t.y,u=t.z,l=t.rotation,c=t.rotationY,p=t.rotationX,h=t.skewX,f=t.skewY,g=t.scaleX,d=t.scaleY,m=t.transformPerspective,_=t.force3D,C=t.target,w=t.zOrigin,D="",E=_==="auto"&&e&&e!==1||_===!0;if(w&&(p!==cr||c!==cr)){var F=parseFloat(c)*rn,x=Math.sin(F),O=Math.cos(F),T;F=parseFloat(p)*rn,T=Math.cos(F),s=Eo(C,s,x*T*-w),a=Eo(C,a,-Math.sin(F)*-w),u=Eo(C,u,O*T*-w+w)}m!==Dn&&(D+="perspective("+m+hr),(r||n)&&(D+="translate("+r+"%, "+n+"%) "),(E||s!==Dn||a!==Dn||u!==Dn)&&(D+=u!==Dn||E?"translate3d("+s+", "+a+", "+u+") ":"translate("+s+", "+a+hr),l!==cr&&(D+="rotate("+l+hr),c!==cr&&(D+="rotateY("+c+hr),p!==cr&&(D+="rotateX("+p+hr),(h!==cr||f!==cr)&&(D+="skew("+h+", "+f+hr),(g!==1||d!==1)&&(D+="scale("+g+", "+d+hr),C.style[Ne]=D||"translate(0, 0)"},Of=function(e,i){var t=i||this,r=t.xPercent,n=t.yPercent,s=t.x,a=t.y,u=t.rotation,l=t.skewX,c=t.skewY,p=t.scaleX,h=t.scaleY,f=t.target,g=t.xOrigin,d=t.yOrigin,m=t.xOffset,_=t.yOffset,C=t.forceCSS,w=parseFloat(s),D=parseFloat(a),E,F,x,O,T;u=parseFloat(u),l=parseFloat(l),c=parseFloat(c),c&&(c=parseFloat(c),l+=c,u+=c),u||l?(u*=rn,l*=rn,E=Math.cos(u)*p,F=Math.sin(u)*p,x=Math.sin(u-l)*-h,O=Math.cos(u-l)*h,l&&(c*=rn,T=Math.tan(l-c),T=Math.sqrt(1+T*T),x*=T,O*=T,c&&(T=Math.tan(c),T=Math.sqrt(1+T*T),E*=T,F*=T)),E=Ue(E),F=Ue(F),x=Ue(x),O=Ue(O)):(E=p,O=h,F=x=0),(w&&!~(s+"").indexOf("px")||D&&!~(a+"").indexOf("px"))&&(w=or(f,"x",s,"px"),D=or(f,"y",a,"px")),(g||d||m||_)&&(w=Ue(w+g-(g*E+d*x)+m),D=Ue(D+d-(g*F+d*O)+_)),(r||n)&&(T=f.getBBox(),w=Ue(w+r/100*T.width),D=Ue(D+n/100*T.height)),T="matrix("+E+","+F+","+x+","+O+","+w+","+D+")",f.setAttribute("transform",T),C&&(f.style[Ne]=T)},Lf=function(e,i,t,r,n){var s=360,a=lt(n),u=parseFloat(n)*(a&&~n.indexOf("rad")?fr:1),l=u-r,c=r+l+"deg",p,h;return a&&(p=n.split("_")[1],p==="short"&&(l%=s,l!==l%(s/2)&&(l+=l<0?s:-s)),p==="cw"&&l<0?l=(l+s*vu)%s-~~(l/s)*s:p==="ccw"&&l>0&&(l=(l-s*vu)%s-~~(l/s)*s)),e._pt=h=new Bt(e._pt,i,t,r,l,mf),h.e=c,h.u="deg",e._props.push(t),h},Eu=function(e,i){for(var t in i)e[t]=i[t];return e},Mf=function(e,i,t){var r=Eu({},t._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=t.style,a,u,l,c,p,h,f,g;r.svg?(l=t.getAttribute("transform"),t.setAttribute("transform",""),s[Ne]=i,a=es(t,1),Or(t,Ne),t.setAttribute("transform",l)):(l=getComputedStyle(t)[Ne],s[Ne]=i,a=es(t,1),s[Ne]=l);for(u in Hi)l=r[u],c=a[u],l!==c&&n.indexOf(u)<0&&(f=yt(l),g=yt(c),p=f!==g?or(t,u,l,g):parseFloat(l),h=parseFloat(c),e._pt=new Bt(e._pt,a,u,p,h-p,ia),e._pt.u=g||0,e._props.push(u));Eu(a,r)};Mt("padding,margin,Width,Radius",function(o,e){var i="Top",t="Right",r="Bottom",n="Left",s=(e<3?[i,t,r,n]:[i+n,i+t,r+t,r+n]).map(function(a){return e<2?o+a:"border"+a+o});Ws[e>1?"border"+o:o]=function(a,u,l,c,p){var h,f;if(arguments.length<4)return h=s.map(function(g){return Mi(a,g,l)}),f=h.join(" "),f.split(h[0]).length===5?h[0]:f;h=(c+"").split(" "),f={},s.forEach(function(g,d){return f[g]=h[d]=h[d]||h[(d-1)/2|0]}),a.init(u,f,p)}});var fc={name:"css",register:na,targetTest:function(e){return e.style&&e.nodeType},init:function(e,i,t,r,n){var s=this._props,a=e.style,u=t.vars.startAt,l,c,p,h,f,g,d,m,_,C,w,D,E,F,x,O;za||na(),this.styles=this.styles||sc(e),O=this.styles.props,this.tween=t;for(d in i)if(d!=="autoRound"&&(c=i[d],!(Yt[d]&&Gl(d,i,t,r,e,n)))){if(f=typeof c,g=Ws[d],f==="function"&&(c=c.call(t,r,e,n),f=typeof c),f==="string"&&~c.indexOf("random(")&&(c=Kn(c)),g)g(this,e,d,c,t)&&(x=1);else if(d.substr(0,2)==="--")l=(getComputedStyle(e).getPropertyValue(d)+"").trim(),c+="",rr.lastIndex=0,rr.test(l)||(m=yt(l),_=yt(c)),_?m!==_&&(l=or(e,d,l,_)+_):m&&(c+=m),this.add(a,"setProperty",l,c,r,n,0,0,d),s.push(d),O.push(d,0,a[d]);else if(f!=="undefined"){if(u&&d in u?(l=typeof u[d]=="function"?u[d].call(t,r,e,n):u[d],lt(l)&&~l.indexOf("random(")&&(l=Kn(l)),yt(l+"")||l==="auto"||(l+=jt.units[d]||yt(Mi(e,d))||""),(l+"").charAt(1)==="="&&(l=Mi(e,d))):l=Mi(e,d),h=parseFloat(l),C=f==="string"&&c.charAt(1)==="="&&c.substr(0,2),C&&(c=c.substr(2)),p=parseFloat(c),d in bi&&(d==="autoAlpha"&&(h===1&&Mi(e,"visibility")==="hidden"&&p&&(h=0),O.push("visibility",0,a.visibility),Ji(this,a,"visibility",h?"inherit":"hidden",p?"inherit":"hidden",!p)),d!=="scale"&&d!=="transform"&&(d=bi[d],~d.indexOf(",")&&(d=d.split(",")[0]))),w=d in Hi,w){if(this.styles.save(d),D||(E=e._gsap,E.renderTransform&&!i.parseTransform||es(e,i.parseTransform),F=i.smoothOrigin!==!1&&E.smooth,D=this._pt=new Bt(this._pt,a,Ne,0,1,E.renderTransform,E,0,-1),D.dep=1),d==="scale")this._pt=new Bt(this._pt,E,"scaleY",E.scaleY,(C?en(E.scaleY,C+p):p)-E.scaleY||0,ia),this._pt.u=0,s.push("scaleY",d),d+="X";else if(d==="transformOrigin"){O.push(It,0,a[It]),c=Ff(c),E.svg?sa(e,c,0,F,0,this):(_=parseFloat(c.split(" ")[2])||0,_!==E.zOrigin&&Ji(this,E,"zOrigin",E.zOrigin,_),Ji(this,a,d,Us(l),Us(c)));continue}else if(d==="svgOrigin"){sa(e,c,1,F,0,this);continue}else if(d in lc){Lf(this,E,d,h,C?en(h,C+c):c);continue}else if(d==="smoothOrigin"){Ji(this,E,"smooth",E.smooth,c);continue}else if(d==="force3D"){E[d]=c;continue}else if(d==="transform"){Mf(this,c,e);continue}}else d in a||(d=fn(d)||d);if(w||(p||p===0)&&(h||h===0)&&!gf.test(c)&&d in a)m=(l+"").substr((h+"").length),p||(p=0),_=yt(c)||(d in jt.units?jt.units[d]:m),m!==_&&(h=or(e,d,l,_)),this._pt=new Bt(this._pt,w?E:a,d,h,(C?en(h,C+p):p)-h,!w&&(_==="px"||d==="zIndex")&&i.autoRound!==!1?Df:ia),this._pt.u=_||0,m!==_&&_!=="%"&&(this._pt.b=l,this._pt.r=_f);else if(d in a)Tf.call(this,e,d,l,C?C+c:c);else if(d in e)this.add(e,d,l||e[d],C?C+c:c,r,n);else if(d!=="parseTransform"){Pa(d,c);continue}w||(d in a?O.push(d,0,a[d]):O.push(d,1,l||e[d])),s.push(d)}}x&&ec(this)},render:function(e,i){if(i.tween._time||!Va())for(var t=i._pt;t;)t.r(e,t.d),t=t._next;else i.styles.revert()},get:Mi,aliases:bi,getSetter:function(e,i,t){var r=bi[i];return r&&r.indexOf(",")<0&&(i=r),i in Hi&&i!==It&&(e._gsap.x||Mi(e,"x"))?t&&Du===t?i==="scale"?xf:wf:(Du=t||{})&&(i==="scale"?bf:Cf):e.style&&!ka(e.style[i])?vf:~i.indexOf("-")?yf:Ra(e,i)},core:{_removeProperty:Or,_getMatrix:$a}};Rt.utils.checkPrefix=fn;Rt.core.getStyleSaver=sc;(function(o,e,i,t){var r=Mt(o+","+e+","+i,function(n){Hi[n]=1});Mt(e,function(n){jt.units[n]="deg",lc[n]=1}),bi[r[13]]=o+","+e,Mt(t,function(n){var s=n.split(":");bi[s[1]]=r[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Mt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(o){jt.units[o]="px"});Rt.registerPlugin(fc);var M=Rt.registerPlugin(fc)||Rt;M.core.Tween;const Bf={isDevelopment:!1,isProduction:!0,mode:"production"};M.config({nullTargetWarn:Bf.isDevelopment});function If(o,e){for(var i=0;i"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function aa(o,e,i){return aa=Rf()?Reflect.construct.bind():function(t,r,n){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(t,s));return n&&ts(a,n.prototype),a},aa.apply(null,arguments)}function ua(o){var e=typeof Map=="function"?new Map:void 0;return ua=function(i){if(i===null||Function.toString.call(i).indexOf("[native code]")===-1)return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(i))return e.get(i);e.set(i,t)}function t(){return aa(i,arguments,oa(this).constructor)}return t.prototype=Object.create(i.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),ts(t,i)},ua(o)}function Nf(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}var Gi,zf=function(){this.before=void 0,this.beforeLeave=void 0,this.leave=void 0,this.afterLeave=void 0,this.beforeEnter=void 0,this.enter=void 0,this.afterEnter=void 0,this.after=void 0};(function(o){o[o.off=0]="off",o[o.error=1]="error",o[o.warning=2]="warning",o[o.info=3]="info",o[o.debug=4]="debug"})(Gi||(Gi={}));var Su=Gi.off,Dr=function(){function o(i){this.t=void 0,this.t=i}o.getLevel=function(){return Su},o.setLevel=function(i){return Su=Gi[i]};var e=o.prototype;return e.error=function(){this.i(console.error,Gi.error,[].slice.call(arguments))},e.warn=function(){this.i(console.warn,Gi.warning,[].slice.call(arguments))},e.info=function(){this.i(console.info,Gi.info,[].slice.call(arguments))},e.debug=function(){this.i(console.log,Gi.debug,[].slice.call(arguments))},e.i=function(i,t,r){t<=o.getLevel()&&i.apply(console,["["+this.t+"] "].concat(r))},o}();function qr(o){return o.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function ku(o){return o&&o.sensitive?"":"i"}var Ti={container:"container",history:"history",namespace:"namespace",prefix:"data-barba",prevent:"prevent",wrapper:"wrapper"},vr=new(function(){function o(){this.o=Ti,this.u=void 0,this.h={after:null,before:null,parent:null}}var e=o.prototype;return e.toString=function(i){return i.outerHTML},e.toDocument=function(i){return this.u||(this.u=new DOMParser),this.u.parseFromString(i,"text/html")},e.toElement=function(i){var t=document.createElement("div");return t.innerHTML=i,t},e.getHtml=function(i){return i===void 0&&(i=document),this.toString(i.documentElement)},e.getWrapper=function(i){return i===void 0&&(i=document),i.querySelector("["+this.o.prefix+'="'+this.o.wrapper+'"]')},e.getContainer=function(i){return i===void 0&&(i=document),i.querySelector("["+this.o.prefix+'="'+this.o.container+'"]')},e.removeContainer=function(i){document.body.contains(i)&&(this.v(i),i.parentNode.removeChild(i))},e.addContainer=function(i,t){var r=this.getContainer()||this.h.before;r?this.l(i,r):this.h.after?this.h.after.parentNode.insertBefore(i,this.h.after):this.h.parent?this.h.parent.appendChild(i):t.appendChild(i)},e.getSibling=function(){return this.h},e.getNamespace=function(i){i===void 0&&(i=document);var t=i.querySelector("["+this.o.prefix+"-"+this.o.namespace+"]");return t?t.getAttribute(this.o.prefix+"-"+this.o.namespace):null},e.getHref=function(i){if(i.tagName&&i.tagName.toLowerCase()==="a"){if(typeof i.href=="string")return i.href;var t=i.getAttribute("href")||i.getAttribute("xlink:href");if(t)return this.resolveUrl(t.baseVal||t)}return null},e.resolveUrl=function(){var i=[].slice.call(arguments).length;if(i===0)throw new Error("resolveUrl requires at least one argument; got none.");var t=document.createElement("base");if(t.href=arguments[0],i===1)return t.href;var r=document.getElementsByTagName("head")[0];r.insertBefore(t,r.firstChild);for(var n,s=document.createElement("a"),a=1;a1?i>0?"forward":"back":i===0?"popstate":i>0?"back":"forward"},Ha(o,[{key:"current",get:function(){return this.m[this.P]}},{key:"previous",get:function(){return this.P<1?null:this.m[this.P-1]}},{key:"size",get:function(){return this.m.length}}]),o}(),dc=new Vf,Gs=function(o,e){try{var i=function(){if(!e.next.html)return Promise.resolve(o).then(function(t){var r=e.next;if(t){var n=vr.toElement(t.html);r.namespace=vr.getNamespace(n),r.container=vr.getContainer(n),r.url=t.url,r.html=t.html,dc.update({ns:r.namespace});var s=vr.toDocument(t.html);document.title=s.title}})}();return Promise.resolve(i&&i.then?i.then(function(){}):void 0)}catch(t){return Promise.reject(t)}},pc=function o(e,i,t){return e instanceof RegExp?function(r,n){if(!n)return r;for(var s=/\((?:\?<(.*?)>)?(?!\?)/g,a=0,u=s.exec(r.source);u;)n.push({name:u[1]||a++,prefix:"",suffix:"",modifier:"",pattern:""}),u=s.exec(r.source);return r}(e,i):Array.isArray(e)?function(r,n,s){var a=r.map(function(u){return o(u,n,s).source});return new RegExp("(?:".concat(a.join("|"),")"),ku(s))}(e,i,t):function(r,n,s){return function(a,u,l){l===void 0&&(l={});for(var c=l.strict,p=c!==void 0&&c,h=l.start,f=h===void 0||h,g=l.end,d=g===void 0||g,m=l.encode,_=m===void 0?function(z){return z}:m,C=l.delimiter,w=C===void 0?"/#?":C,D=l.endsWith,E="[".concat(qr(D===void 0?"":D),"]|$"),F="[".concat(qr(w),"]"),x=f?"^":"",O=0,T=a;O-1:L===void 0;p||(x+="(?:".concat(F,"(?=").concat(E,"))?")),I||(x+="(?=".concat(F,"|").concat(E,")"))}return new RegExp(x,ku(l))}(function(a,u){u===void 0&&(u={});for(var l=function(P){for(var N=[],L=0;L=48&&v<=57||v>=65&&v<=90||v>=97&&v<=122||v===95))break;G+=P[k++]}if(!G)throw new TypeError("Missing parameter name at ".concat(L));N.push({type:"NAME",index:L,value:G}),L=k}else N.push({type:"CLOSE",index:L,value:P[L++]});else N.push({type:"OPEN",index:L,value:P[L++]});else N.push({type:"ESCAPED_CHAR",index:L++,value:P[L++]});else N.push({type:"MODIFIER",index:L,value:P[L++]})}return N.push({type:"END",index:L,value:""}),N}(a),c=u.prefixes,p=c===void 0?"./":c,h="[^".concat(qr(u.delimiter||"/#?"),"]+?"),f=[],g=0,d=0,m="",_=function(P){if(d=0&&(r=n.slice(a+1),n=n.slice(0,a));var u=n.indexOf("?");return u>=0&&(s=mc(n.slice(u+1)),n=n.slice(0,u)),{hash:r,path:n,port:e,query:s}},mc=function(o){return o.split("&").reduce(function(e,i){var t=i.split("=");return e[t[0]]=t[1],e},{})},la=function(o){return o===void 0&&(o=window.location.href),o.replace(/(\/#.*|\/|#.*)$/,"")},$f={__proto__:null,getHref:function(){return window.location.href},getAbsoluteHref:function(o,e){return e===void 0&&(e=document.baseURI),new URL(o,e).href},getOrigin:gc,getPort:is,getPath:function(o){return o===void 0&&(o=window.location.href),ji(o).path},getQuery:function(o,e){return e===void 0&&(e=!1),e?JSON.stringify(ji(o).query):ji(o).query},getHash:function(o){return ji(o).hash},parse:ji,parseQuery:mc,clean:la};function Hf(o,e,i,t,r){return e===void 0&&(e=2e3),new Promise(function(n,s){var a=new XMLHttpRequest;a.onreadystatechange=function(){if(a.readyState===XMLHttpRequest.DONE){if(a.status===200){var u=a.responseURL!==""&&a.responseURL!==o?a.responseURL:o;n({html:a.responseText,url:Ci({href:u},ji(u))}),t.update(o,{status:"fulfilled",target:u})}else if(a.status){var l={status:a.status,statusText:a.statusText};i(o,l),s(l),t.update(o,{status:"rejected"})}}},a.ontimeout=function(){var u=new Error("Timeout error ["+e+"]");i(o,u),s(u),t.update(o,{status:"rejected"})},a.onerror=function(){var u=new Error("Fetch error");i(o,u),s(u),t.update(o,{status:"rejected"})},a.open("GET",o),a.timeout=e,a.setRequestHeader("Accept","text/html,application/xhtml+xml,application/xml"),a.setRequestHeader("x-barba","yes"),r.all().forEach(function(u,l){a.setRequestHeader(l,u)}),a.send()})}function Yf(o){return!!o&&(typeof o=="object"||typeof o=="function")&&typeof o.then=="function"}function Gr(o,e){return e===void 0&&(e={}),function(){var i=arguments,t=!1,r=new Promise(function(n,s){e.async=function(){return t=!0,function(u,l){u?s(u):n(l)}};var a=o.apply(e,[].slice.call(i));t||(Yf(a)?a.then(n,s):n(a))});return r}}var Ui=new(function(o){function e(){var t;return(t=o.call(this)||this).logger=new Dr("@barba/core"),t.all=["ready","page","reset","currentAdded","currentRemoved","nextAdded","nextRemoved","beforeOnce","once","afterOnce","before","beforeLeave","leave","afterLeave","beforeEnter","enter","afterEnter","after"],t.registered=new Map,t.init(),t}uo(e,o);var i=e.prototype;return i.init=function(){var t=this;this.registered.clear(),this.all.forEach(function(r){t[r]||(t[r]=function(n,s){t.registered.has(r)||t.registered.set(r,new Set),t.registered.get(r).add({ctx:s||{},fn:n})})})},i.do=function(t){var r=arguments,n=this;if(this.registered.has(t)){var s=Promise.resolve();return this.registered.get(t).forEach(function(a){s=s.then(function(){return Gr(a.fn,a.ctx).apply(void 0,[].slice.call(r,1))})}),s.catch(function(a){n.logger.debug("Hook error ["+t+"]"),n.logger.error(a)})}return Promise.resolve()},i.clear=function(){var t=this;this.all.forEach(function(r){delete t[r]}),this.init()},i.help=function(){this.logger.info("Available hooks: "+this.all.join(","));var t=[];this.registered.forEach(function(r,n){return t.push(n)}),this.logger.info("Registered hooks: "+t.join(","))},e}(zf)),_c=function(){function o(e){if(this.k=void 0,this.O=[],typeof e=="boolean")this.k=e;else{var i=Array.isArray(e)?e:[e];this.O=i.map(function(t){return pc(t)})}}return o.prototype.checkHref=function(e){if(typeof this.k=="boolean")return this.k;var i=ji(e).path;return this.O.some(function(t){return t.exec(i)!==null})},o}(),Xf=function(o){function e(t){var r;return(r=o.call(this,t)||this).T=new Map,r}uo(e,o);var i=e.prototype;return i.set=function(t,r,n,s,a){return this.T.set(t,{action:n,request:r,status:s,target:a??t}),{action:n,request:r,status:s,target:a}},i.get=function(t){return this.T.get(t)},i.getRequest=function(t){return this.T.get(t).request},i.getAction=function(t){return this.T.get(t).action},i.getStatus=function(t){return this.T.get(t).status},i.getTarget=function(t){return this.T.get(t).target},i.has=function(t){return!this.checkHref(t)&&this.T.has(t)},i.delete=function(t){return this.T.delete(t)},i.update=function(t,r){var n=Ci({},this.T.get(t),r);return this.T.set(t,n),n},e}(_c),Wf=function(){function o(){this.A=new Map}var e=o.prototype;return e.set=function(i,t){return this.A.set(i,t),{name:t}},e.get=function(i){return this.A.get(i)},e.all=function(){return this.A},e.has=function(i){return this.A.has(i)},e.delete=function(i){return this.A.delete(i)},e.clear=function(){return this.A.clear()},o}(),Uf=function(){return!window.history.pushState},Gf=function(o){return!o.el||!o.href},jf=function(o){var e=o.event;return e.which>1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey},Kf=function(o){var e=o.el;return e.hasAttribute("target")&&e.target==="_blank"},Qf=function(o){var e=o.el;return e.protocol!==void 0&&window.location.protocol!==e.protocol||e.hostname!==void 0&&window.location.hostname!==e.hostname},Zf=function(o){var e=o.el;return e.port!==void 0&&is()!==is(e.href)},Jf=function(o){var e=o.el;return e.getAttribute&&typeof e.getAttribute("download")=="string"},ed=function(o){return o.el.hasAttribute(Ti.prefix+"-"+Ti.prevent)},td=function(o){return!!o.el.closest("["+Ti.prefix+"-"+Ti.prevent+'="all"]')},id=function(o){var e=o.href;return la(e)===la()&&is(e)===is()},rd=function(o){function e(t){var r;return(r=o.call(this,t)||this).suite=[],r.tests=new Map,r.init(),r}uo(e,o);var i=e.prototype;return i.init=function(){this.add("pushState",Uf),this.add("exists",Gf),this.add("newTab",jf),this.add("blank",Kf),this.add("corsDomain",Qf),this.add("corsPort",Zf),this.add("download",Jf),this.add("preventSelf",ed),this.add("preventAll",td),this.add("sameUrl",id,!1)},i.add=function(t,r,n){n===void 0&&(n=!0),this.tests.set(t,r),n&&this.suite.push(t)},i.run=function(t,r,n,s){return this.tests.get(t)({el:r,event:n,href:s})},i.checkLink=function(t,r,n){var s=this;return this.suite.some(function(a){return s.run(a,t,r,n)})},e}(_c),So=function(o){function e(i,t){var r;return t===void 0&&(t="Barba error"),(r=o.call.apply(o,[this].concat([].slice.call(arguments,2)))||this).error=void 0,r.label=void 0,r.error=i,r.label=t,Error.captureStackTrace&&Error.captureStackTrace(Nf(r),e),r.name="BarbaError",r}return uo(e,o),e}(ua(Error)),nd=function(){function o(i){i===void 0&&(i=[]),this.logger=new Dr("@barba/core"),this.all=[],this.page=[],this.once=[],this.j=[{name:"namespace",type:"strings"},{name:"custom",type:"function"}],i&&(this.all=this.all.concat(i)),this.update()}var e=o.prototype;return e.add=function(i,t){i==="rule"?this.j.splice(t.position||0,0,t.value):this.all.push(t),this.update()},e.resolve=function(i,t){var r=this;t===void 0&&(t={});var n=t.once?this.once:this.page;n=n.filter(t.self?function(h){return h.name&&h.name==="self"}:function(h){return!h.name||h.name!=="self"});var s=new Map,a=n.find(function(h){var f=!0,g={};return t.self&&h.name==="self"?(s.set(h,g),!0):(r.j.reverse().forEach(function(d){f&&(f=r.M(h,d,i,g),h.from&&h.to&&(f=r.M(h,d,i,g,"from")&&r.M(h,d,i,g,"to")),h.from&&!h.to&&(f=r.M(h,d,i,g,"from")),!h.from&&h.to&&(f=r.M(h,d,i,g,"to")))}),s.set(h,g),f)}),u=s.get(a),l=[];if(l.push(t.once?"once":"page"),t.self&&l.push("self"),u){var c,p=[a];Object.keys(u).length>0&&p.push(u),(c=this.logger).info.apply(c,["Transition found ["+l.join(",")+"]"].concat(p))}else this.logger.info("No transition found ["+l.join(",")+"]");return a},e.update=function(){var i=this;this.all=this.all.map(function(t){return i.N(t)}).sort(function(t,r){return t.priority-r.priority}).reverse().map(function(t){return delete t.priority,t}),this.page=this.all.filter(function(t){return t.leave!==void 0||t.enter!==void 0}),this.once=this.all.filter(function(t){return t.once!==void 0})},e.M=function(i,t,r,n,s){var a=!0,u=!1,l=i,c=t.name,p=c,h=c,f=c,g=s?l[s]:l,d=s==="to"?r.next:r.current;if(s?g&&g[c]:g[c]){switch(t.type){case"strings":default:var m=Array.isArray(g[p])?g[p]:[g[p]];d[p]&&m.indexOf(d[p])!==-1&&(u=!0),m.indexOf(d[p])===-1&&(a=!1);break;case"object":var _=Array.isArray(g[h])?g[h]:[g[h]];d[h]?(d[h].name&&_.indexOf(d[h].name)!==-1&&(u=!0),_.indexOf(d[h].name)===-1&&(a=!1)):a=!1;break;case"function":g[f](r)?u=!0:a=!1}u&&(s?(n[s]=n[s]||{},n[s][c]=l[s][c]):n[c]=l[c])}return a},e.S=function(i,t,r){var n=0;return(i[t]||i.from&&i.from[t]||i.to&&i.to[t])&&(n+=Math.pow(10,r),i.from&&i.from[t]&&(n+=1),i.to&&i.to[t]&&(n+=2)),n},e.N=function(i){var t=this;i.priority=0;var r=0;return this.j.forEach(function(n,s){r+=t.S(i,n.name,s+1)}),i.priority=r,i},o}();function vn(o,e){try{var i=o()}catch(t){return e(t)}return i&&i.then?i.then(void 0,e):i}var sd=function(){function o(i){i===void 0&&(i=[]),this.logger=new Dr("@barba/core"),this.store=void 0,this.C=!1,this.store=new nd(i)}var e=o.prototype;return e.get=function(i,t){return this.store.resolve(i,t)},e.doOnce=function(i){var t=i.data,r=i.transition;try{var n=function(){s.C=!1},s=this,a=r||{};s.C=!0;var u=vn(function(){return Promise.resolve(s.L("beforeOnce",t,a)).then(function(){return Promise.resolve(s.once(t,a)).then(function(){return Promise.resolve(s.L("afterOnce",t,a)).then(function(){})})})},function(l){s.C=!1,s.logger.debug("Transition error [before/after/once]"),s.logger.error(l)});return Promise.resolve(u&&u.then?u.then(n):n())}catch(l){return Promise.reject(l)}},e.doPage=function(i){var t=i.data,r=i.transition,n=i.page,s=i.wrapper;try{var a=function(h){u.C=!1},u=this,l=r||{},c=l.sync===!0||!1;u.C=!0;var p=vn(function(){function h(){return Promise.resolve(u.L("before",t,l)).then(function(){function g(m){return Promise.resolve(u.remove(t)).then(function(){return Promise.resolve(u.L("after",t,l)).then(function(){})})}var d=function(){if(c)return vn(function(){return Promise.resolve(u.add(t,s)).then(function(){return Promise.resolve(u.L("beforeLeave",t,l)).then(function(){return Promise.resolve(u.L("beforeEnter",t,l)).then(function(){return Promise.resolve(Promise.all([u.leave(t,l),u.enter(t,l)])).then(function(){return Promise.resolve(u.L("afterLeave",t,l)).then(function(){return Promise.resolve(u.L("afterEnter",t,l)).then(function(){})})})})})})},function(w){if(u.H(w))throw new So(w,"Transition error [sync]")});var m=function(w){return vn(function(){var D=function(){if(_!==!1)return Promise.resolve(u.add(t,s)).then(function(){return Promise.resolve(u.L("beforeEnter",t,l)).then(function(){return Promise.resolve(u.enter(t,l,_)).then(function(){return Promise.resolve(u.L("afterEnter",t,l)).then(function(){})})})})}();if(D&&D.then)return D.then(function(){})},function(D){if(u.H(D))throw new So(D,"Transition error [before/after/enter]")})},_=!1,C=vn(function(){return Promise.resolve(u.L("beforeLeave",t,l)).then(function(){return Promise.resolve(Promise.all([u.leave(t,l),Gs(n,t)]).then(function(w){return w[0]})).then(function(w){return _=w,Promise.resolve(u.L("afterLeave",t,l)).then(function(){})})})},function(w){if(u.H(w))throw new So(w,"Transition error [before/after/leave]")});return C&&C.then?C.then(m):m()}();return d&&d.then?d.then(g):g()})}var f=function(){if(c)return Promise.resolve(Gs(n,t)).then(function(){})}();return f&&f.then?f.then(h):h()},function(h){throw u.C=!1,h.name&&h.name==="BarbaError"?(u.logger.debug(h.label),u.logger.error(h.error),h):(u.logger.debug("Transition error [page]"),u.logger.error(h),h)});return Promise.resolve(p&&p.then?p.then(a):a())}catch(h){return Promise.reject(h)}},e.once=function(i,t){try{return Promise.resolve(Ui.do("once",i,t)).then(function(){return t.once?Gr(t.once,t)(i):Promise.resolve()})}catch(r){return Promise.reject(r)}},e.leave=function(i,t){try{return Promise.resolve(Ui.do("leave",i,t)).then(function(){return t.leave?Gr(t.leave,t)(i):Promise.resolve()})}catch(r){return Promise.reject(r)}},e.enter=function(i,t,r){try{return Promise.resolve(Ui.do("enter",i,t)).then(function(){return t.enter?Gr(t.enter,t)(i,r):Promise.resolve()})}catch(n){return Promise.reject(n)}},e.add=function(i,t){try{return vr.addContainer(i.next.container,t),Ui.do("nextAdded",i),Promise.resolve()}catch(r){return Promise.reject(r)}},e.remove=function(i){try{return vr.removeContainer(i.current.container),Ui.do("currentRemoved",i),Promise.resolve()}catch(t){return Promise.reject(t)}},e.H=function(i){return i.message?!/Timeout error|Fetch error/.test(i.message):!i.status},e.L=function(i,t,r){try{return Promise.resolve(Ui.do(i,t,r)).then(function(){return r[i]?Gr(r[i],r)(t):Promise.resolve()})}catch(n){return Promise.reject(n)}},Ha(o,[{key:"isRunning",get:function(){return this.C},set:function(i){this.C=i}},{key:"hasOnce",get:function(){return this.store.once.length>0}},{key:"hasSelf",get:function(){return this.store.all.some(function(i){return i.name==="self"})}},{key:"shouldWait",get:function(){return this.store.all.some(function(i){return i.to&&!i.to.route||i.sync})}}]),o}(),od=function(){function o(e){var i=this;this.names=["beforeLeave","afterLeave","beforeEnter","afterEnter"],this.byNamespace=new Map,e.length!==0&&(e.forEach(function(t){i.byNamespace.set(t.namespace,t)}),this.names.forEach(function(t){Ui[t](i._(t))}))}return o.prototype._=function(e){var i=this;return function(t){var r=e.match(/enter/i)?t.next:t.current,n=i.byNamespace.get(r.namespace);return n&&n[e]?Gr(n[e],n)(t):Promise.resolve()}},o}();Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(o){var e=this;do{if(e.matches(o))return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null});var ad={container:null,html:"",namespace:"",url:{hash:"",href:"",path:"",port:null,query:{}}},cs=new(function(){function o(){this.version="2.10.3",this.schemaPage=ad,this.Logger=Dr,this.logger=new Dr("@barba/core"),this.plugins=[],this.timeout=void 0,this.cacheIgnore=void 0,this.cacheFirstPage=void 0,this.prefetchIgnore=void 0,this.preventRunning=void 0,this.hooks=Ui,this.cache=void 0,this.headers=void 0,this.prevent=void 0,this.transitions=void 0,this.views=void 0,this.dom=vr,this.helpers=qf,this.history=dc,this.request=Hf,this.url=$f,this.D=void 0,this.B=void 0,this.q=void 0,this.F=void 0}var e=o.prototype;return e.use=function(i,t){var r=this.plugins;r.indexOf(i)>-1?this.logger.warn("Plugin ["+i.name+"] already installed."):typeof i.install=="function"?(i.install(this,t),r.push(i)):this.logger.warn("Plugin ["+i.name+'] has no "install" method.')},e.init=function(i){var t=i===void 0?{}:i,r=t.transitions,n=r===void 0?[]:r,s=t.views,a=s===void 0?[]:s,u=t.schema,l=u===void 0?Ti:u,c=t.requestError,p=t.timeout,h=p===void 0?2e3:p,f=t.cacheIgnore,g=f!==void 0&&f,d=t.cacheFirstPage,m=d!==void 0&&d,_=t.prefetchIgnore,C=_!==void 0&&_,w=t.preventRunning,D=w!==void 0&&w,E=t.prevent,F=E===void 0?null:E,x=t.debug,O=t.logLevel;if(Dr.setLevel((x!==void 0&&x)===!0?"debug":O===void 0?"off":O),this.logger.info(this.version),Object.keys(l).forEach(function(B){Ti[B]&&(Ti[B]=l[B])}),this.B=c,this.timeout=h,this.cacheIgnore=g,this.cacheFirstPage=m,this.prefetchIgnore=C,this.preventRunning=D,this.q=this.dom.getWrapper(),!this.q)throw new Error("[@barba/core] No Barba wrapper found");this.I();var T=this.data.current;if(!T.container)throw new Error("[@barba/core] No Barba container found");if(this.cache=new Xf(g),this.headers=new Wf,this.prevent=new rd(C),this.transitions=new sd(n),this.views=new od(a),F!==null){if(typeof F!="function")throw new Error("[@barba/core] Prevent should be a function");this.prevent.add("preventCustom",F)}this.history.init(T.url.href,T.namespace),m&&this.cache.set(T.url.href,Promise.resolve({html:T.html,url:T.url}),"init","fulfilled"),this.U=this.U.bind(this),this.$=this.$.bind(this),this.X=this.X.bind(this),this.G(),this.plugins.forEach(function(B){return B.init()});var y=this.data;y.trigger="barba",y.next=y.current,y.current=Ci({},this.schemaPage),this.hooks.do("ready",y),this.once(y),this.I()},e.destroy=function(){this.I(),this.J(),this.history.clear(),this.hooks.clear(),this.plugins=[]},e.force=function(i){window.location.assign(i)},e.go=function(i,t,r){var n;if(t===void 0&&(t="barba"),this.F=null,this.transitions.isRunning)this.force(i);else if(!(n=t==="popstate"?this.history.current&&this.url.getPath(this.history.current.url)===this.url.getPath(i)&&this.url.getQuery(this.history.current.url,!0)===this.url.getQuery(i,!0):this.prevent.run("sameUrl",null,null,i))||this.transitions.hasSelf)return t=this.history.change(this.cache.has(i)?this.cache.get(i).target:i,t,r),r&&(r.stopPropagation(),r.preventDefault()),this.page(i,t,r??void 0,n)},e.once=function(i){try{var t=this;return Promise.resolve(t.hooks.do("beforeEnter",i)).then(function(){function r(){return Promise.resolve(t.hooks.do("afterEnter",i)).then(function(){})}var n=function(){if(t.transitions.hasOnce){var s=t.transitions.get(i,{once:!0});return Promise.resolve(t.transitions.doOnce({transition:s,data:i})).then(function(){})}}();return n&&n.then?n.then(r):r()})}catch(r){return Promise.reject(r)}},e.page=function(i,t,r,n){try{var s,a=function(){var p=u.data;return Promise.resolve(u.hooks.do("page",p)).then(function(){var h=function(f,g){try{var d=(m=u.transitions.get(p,{once:!1,self:n}),Promise.resolve(u.transitions.doPage({data:p,page:s,transition:m,wrapper:u.q})).then(function(){u.I()}))}catch{return g()}var m;return d&&d.then?d.then(void 0,g):d}(0,function(){Dr.getLevel()===0&&u.force(p.next.url.href)});if(h&&h.then)return h.then(function(){})})},u=this;if(u.data.next.url=Ci({href:i},u.url.parse(i)),u.data.trigger=t,u.data.event=r,u.cache.has(i))s=u.cache.update(i,{action:"click"}).request;else{var l=u.request(i,u.timeout,u.onRequestError.bind(u,t),u.cache,u.headers);l.then(function(p){p.url.href!==i&&u.history.add(p.url.href,t,"replace")}),s=u.cache.set(i,l,"click","pending").request}var c=function(){if(u.transitions.shouldWait)return Promise.resolve(Gs(s,u.data)).then(function(){})}();return Promise.resolve(c&&c.then?c.then(a):a())}catch(p){return Promise.reject(p)}},e.onRequestError=function(i){this.transitions.isRunning=!1;var t=[].slice.call(arguments,1),r=t[0],n=t[1],s=this.cache.getAction(r);return this.cache.delete(r),this.B&&this.B(i,s,r,n)===!1||s==="click"&&this.force(r),!1},e.prefetch=function(i){var t=this;i=this.url.getAbsoluteHref(i),this.cache.has(i)||this.cache.set(i,this.request(i,this.timeout,this.onRequestError.bind(this,"barba"),this.cache,this.headers).catch(function(r){t.logger.error(r)}),"prefetch","pending")},e.G=function(){this.prefetchIgnore!==!0&&(document.addEventListener("mouseover",this.U),document.addEventListener("touchstart",this.U)),document.addEventListener("click",this.$),window.addEventListener("popstate",this.X)},e.J=function(){this.prefetchIgnore!==!0&&(document.removeEventListener("mouseover",this.U),document.removeEventListener("touchstart",this.U)),document.removeEventListener("click",this.$),window.removeEventListener("popstate",this.X)},e.U=function(i){var t=this,r=this.W(i);if(r){var n=this.url.getAbsoluteHref(this.dom.getHref(r));this.prevent.checkHref(n)||this.cache.has(n)||this.cache.set(n,this.request(n,this.timeout,this.onRequestError.bind(this,r),this.cache,this.headers).catch(function(s){t.logger.error(s)}),"enter","pending")}},e.$=function(i){var t=this.W(i);if(t){if(this.transitions.isRunning&&this.preventRunning)return i.preventDefault(),void i.stopPropagation();this.F=i,this.go(this.dom.getHref(t),t,i)}},e.X=function(i){this.go(this.url.getHref(),"popstate",i)},e.W=function(i){for(var t=i.target;t&&!this.dom.getHref(t);)t=t.parentNode;if(t&&!this.prevent.checkLink(t,i,this.dom.getHref(t)))return t},e.I=function(){var i=this.url.getHref(),t={container:this.dom.getContainer(),html:this.dom.getHtml(),namespace:this.dom.getNamespace(),url:Ci({href:i},this.url.parse(i))};this.D={current:t,event:void 0,next:Ci({},this.schemaPage),trigger:void 0},this.hooks.do("reset",this.data)},Ha(o,[{key:"data",get:function(){return this.D}},{key:"wrapper",get:function(){return this.q}}]),o}());function ud(o,e){for(var i=0;i=0)return;s.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(It,i,"")),e=Ne}(n||i)&&this.props.push(e,i,n[e])},nc=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},Sf=function(){var e=this.props,i=this.target,t=i.style,r=i._gsap,n,s;for(n=0;n=0?yu[s]:"")+e},na=function(){df()&&window.document&&(mu=window,Qi=mu.document,tn=Qi.documentElement,_r=ra("div")||{style:{}},ra("div"),Ne=fn(Ne),It=Ne+"Origin",_r.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",oc=!!fn("perspective"),Va=Rt.core.reverting,za=1)},Co=function o(e){var i=ra("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),t=this.parentNode,r=this.nextSibling,n=this.style.cssText,s;if(tn.appendChild(i),i.appendChild(this),this.style.display="block",e)try{s=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=o}catch{}else this._gsapBBox&&(s=this._gsapBBox());return t&&(r?t.insertBefore(this,r):t.appendChild(this)),tn.removeChild(i),this.style.cssText=n,s},wu=function(e,i){for(var t=i.length;t--;)if(e.hasAttribute(i[t]))return e.getAttribute(i[t])},ac=function(e){var i;try{i=e.getBBox()}catch{i=Co.call(e,!0)}return i&&(i.width||i.height)||e.getBBox===Co||(i=Co.call(e,!0)),i&&!i.width&&!i.x&&!i.y?{x:+wu(e,["x","cx","x1"])||0,y:+wu(e,["y","cy","y1"])||0,width:0,height:0}:i},uc=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&ac(e))},Ar=function(e,i){if(i){var t=e.style,r;i in $i&&i!==It&&(i=Ne),t.removeProperty?(r=i.substr(0,2),(r==="ms"||i.substr(0,6)==="webkit")&&(i="-"+i),t.removeProperty(r==="--"?i:i.replace(qa,"-$1").toLowerCase())):t.removeAttribute(i)}},Zi=function(e,i,t,r,n,s){var a=new Bt(e._pt,i,t,0,1,s?rc:ic);return e._pt=a,a.b=r,a.e=n,e._props.push(t),a},xu={deg:1,rad:1,turn:1},kf={grid:1,flex:1},sr=function o(e,i,t,r){var n=parseFloat(t)||0,s=(t+"").trim().substr((n+"").length)||"px",a=_r.style,u=pf.test(i),l=e.tagName.toLowerCase()==="svg",c=(l?"client":"offset")+(u?"Width":"Height"),p=100,h=r==="px",f=r==="%",g,d,_,m;if(r===s||!n||xu[r]||xu[s])return n;if(s!=="px"&&!h&&(n=o(e,i,t,"px")),m=e.getCTM&&uc(e),(f||s==="%")&&($i[i]||~i.indexOf("adius")))return g=m?e.getBBox()[u?"width":"height"]:e[c],Ue(f?n/g*p:n/100*g);if(a[u?"width":"height"]=p+(h?s:r),d=~i.indexOf("adius")||r==="em"&&e.appendChild&&!l?e:e.parentNode,m&&(d=(e.ownerSVGElement||{}).parentNode),(!d||d===Qi||!d.appendChild)&&(d=Qi.body),_=d._gsap,_&&f&&_.width&&u&&_.time===Wt.time&&!_.uncache)return Ue(n/_.width*p);if(f&&(i==="height"||i==="width")){var C=e.style[i];e.style[i]=p+r,g=e[c],C?e.style[i]=C:Ar(e,i)}else(f||s==="%")&&!kf[ki(d,"display")]&&(a.position=ki(e,"position")),d===e&&(a.position="static"),d.appendChild(_r),g=_r[c],d.removeChild(_r),a.position="absolute";return u&&f&&(_=yr(d),_.time=Wt.time,_.width=d[c]),Ue(h?g*n/p:g&&n?p/g*n:0)},Mi=function(e,i,t,r){var n;return za||na(),i in bi&&i!=="transform"&&(i=bi[i],~i.indexOf(",")&&(i=i.split(",")[0])),$i[i]&&i!=="transform"?(n=es(e,r),n=i!=="transformOrigin"?n[i]:n.svg?n.origin:Us(ki(e,It))+" "+n.zOrigin+"px"):(n=e.style[i],(!n||n==="auto"||r||~(n+"").indexOf("calc("))&&(n=Ws[i]&&Ws[i](e,i,t)||ki(e,i)||Cl(e,i)||(i==="opacity"?1:0))),t&&!~(n+"").trim().indexOf(" ")?sr(e,i,n,t)+t:n},Tf=function(e,i,t,r){if(!t||t==="none"){var n=fn(i,e,1),s=n&&ki(e,n,1);s&&s!==t?(i=n,t=s):i==="borderColor"&&(t=ki(e,"borderTopColor"))}var a=new Bt(this._pt,e.style,i,0,1,Jl),u=0,l=0,c,p,h,f,g,d,_,m,C,w,D,E;if(a.b=t,a.e=r,t+="",r+="",r==="auto"&&(d=e.style[i],e.style[i]=r,r=ki(e,i)||r,d?e.style[i]=d:Ar(e,i)),c=[t,r],Hl(c),t=c[0],r=c[1],h=t.match(Wr)||[],E=r.match(Wr)||[],E.length){for(;p=Wr.exec(r);)_=p[0],C=r.substring(u,p.index),g?g=(g+1)%5:(C.substr(-5)==="rgba("||C.substr(-5)==="hsla(")&&(g=1),_!==(d=h[l++]||"")&&(f=parseFloat(d)||0,D=d.substr((f+"").length),_.charAt(1)==="="&&(_=en(f,_)+D),m=parseFloat(_),w=_.substr((m+"").length),u=Wr.lastIndex-w.length,w||(w=w||jt.units[i]||D,u===r.length&&(r+=w,a.e+=w)),D!==w&&(f=sr(e,i,d,w)||0),a._pt={_next:a._pt,p:C||l===1?C:",",s:f,c:m-f,m:g&&g<4||i==="zIndex"?Math.round:0});a.c=u-1;)a=n[l],$i[a]&&(u=1,a=a==="transformOrigin"?It:Ne),Ar(t,a);u&&(Ar(t,Ne),s&&(s.svg&&t.removeAttribute("transform"),es(t,1),s.uncache=1,nc(r)))}},Ws={clearProps:function(e,i,t,r,n){if(n.data!=="isFromStart"){var s=e._pt=new Bt(e._pt,i,t,0,0,Pf);return s.u=r,s.pr=-10,s.tween=n,e._props.push(t),1}}},Jn=[1,0,0,1,0,0],lc={},cc=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Cu=function(e){var i=ki(e,Ne);return cc(i)?Jn:i.substr(7).match(ml).map(Ue)},$a=function(e,i){var t=e._gsap||yr(e),r=e.style,n=Cu(e),s,a,u,l;return t.svg&&e.getAttribute("transform")?(u=e.transform.baseVal.consolidate().matrix,n=[u.a,u.b,u.c,u.d,u.e,u.f],n.join(",")==="1,0,0,1,0,0"?Jn:n):(n===Jn&&!e.offsetParent&&e!==tn&&!t.svg&&(u=r.display,r.display="block",s=e.parentNode,(!s||!e.offsetParent)&&(l=1,a=e.nextElementSibling,tn.appendChild(e)),n=Cu(e),u?r.display=u:Ar(e,"display"),l&&(a?s.insertBefore(e,a):s?s.appendChild(e):tn.removeChild(e))),i&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},sa=function(e,i,t,r,n,s){var a=e._gsap,u=n||$a(e,!0),l=a.xOrigin||0,c=a.yOrigin||0,p=a.xOffset||0,h=a.yOffset||0,f=u[0],g=u[1],d=u[2],_=u[3],m=u[4],C=u[5],w=i.split(" "),D=parseFloat(w[0])||0,E=parseFloat(w[1])||0,F,x,O,T;t?u!==Jn&&(x=f*_-g*d)&&(O=D*(_/x)+E*(-d/x)+(d*C-_*m)/x,T=D*(-g/x)+E*(f/x)-(f*C-g*m)/x,D=O,E=T):(F=ac(e),D=F.x+(~w[0].indexOf("%")?D/100*F.width:D),E=F.y+(~(w[1]||w[0]).indexOf("%")?E/100*F.height:E)),r||r!==!1&&a.smooth?(m=D-l,C=E-c,a.xOffset=p+(m*f+C*d)-m,a.yOffset=h+(m*g+C*_)-C):a.xOffset=a.yOffset=0,a.xOrigin=D,a.yOrigin=E,a.smooth=!!r,a.origin=i,a.originIsAbsolute=!!t,e.style[It]="0px 0px",s&&(Zi(s,a,"xOrigin",l,D),Zi(s,a,"yOrigin",c,E),Zi(s,a,"xOffset",p,a.xOffset),Zi(s,a,"yOffset",h,a.yOffset)),e.setAttribute("data-svg-origin",D+" "+E)},es=function(e,i){var t=e._gsap||new Ul(e);if("x"in t&&!i&&!t.uncache)return t;var r=e.style,n=t.scaleX<0,s="px",a="deg",u=getComputedStyle(e),l=ki(e,It)||"0",c,p,h,f,g,d,_,m,C,w,D,E,F,x,O,T,y,M,P,N,L,B,z,V,G,k,v,Q,ne,Ve,Z,Y;return c=p=h=d=_=m=C=w=D=0,f=g=1,t.svg=!!(e.getCTM&&uc(e)),u.translate&&((u.translate!=="none"||u.scale!=="none"||u.rotate!=="none")&&(r[Ne]=(u.translate!=="none"?"translate3d("+(u.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(u.rotate!=="none"?"rotate("+u.rotate+") ":"")+(u.scale!=="none"?"scale("+u.scale.split(" ").join(",")+") ":"")+(u[Ne]!=="none"?u[Ne]:"")),r.scale=r.rotate=r.translate="none"),x=$a(e,t.svg),t.svg&&(t.uncache?(G=e.getBBox(),l=t.xOrigin-G.x+"px "+(t.yOrigin-G.y)+"px",V=""):V=!i&&e.getAttribute("data-svg-origin"),sa(e,V||l,!!V||t.originIsAbsolute,t.smooth!==!1,x)),E=t.xOrigin||0,F=t.yOrigin||0,x!==Jn&&(M=x[0],P=x[1],N=x[2],L=x[3],c=B=x[4],p=z=x[5],x.length===6?(f=Math.sqrt(M*M+P*P),g=Math.sqrt(L*L+N*N),d=M||P?Vr(P,M)*hr:0,C=N||L?Vr(N,L)*hr+d:0,C&&(g*=Math.abs(Math.cos(C*rn))),t.svg&&(c-=E-(E*M+F*N),p-=F-(E*P+F*L))):(Y=x[6],Ve=x[7],v=x[8],Q=x[9],ne=x[10],Z=x[11],c=x[12],p=x[13],h=x[14],O=Vr(Y,ne),_=O*hr,O&&(T=Math.cos(-O),y=Math.sin(-O),V=B*T+v*y,G=z*T+Q*y,k=Y*T+ne*y,v=B*-y+v*T,Q=z*-y+Q*T,ne=Y*-y+ne*T,Z=Ve*-y+Z*T,B=V,z=G,Y=k),O=Vr(-N,ne),m=O*hr,O&&(T=Math.cos(-O),y=Math.sin(-O),V=M*T-v*y,G=P*T-Q*y,k=N*T-ne*y,Z=L*y+Z*T,M=V,P=G,N=k),O=Vr(P,M),d=O*hr,O&&(T=Math.cos(O),y=Math.sin(O),V=M*T+P*y,G=B*T+z*y,P=P*T-M*y,z=z*T-B*y,M=V,B=G),_&&Math.abs(_)+Math.abs(d)>359.9&&(_=d=0,m=180-m),f=Ue(Math.sqrt(M*M+P*P+N*N)),g=Ue(Math.sqrt(z*z+Y*Y)),O=Vr(B,z),C=Math.abs(O)>2e-4?O*hr:0,D=Z?1/(Z<0?-Z:Z):0),t.svg&&(V=e.getAttribute("transform"),t.forceCSS=e.setAttribute("transform","")||!cc(ki(e,Ne)),V&&e.setAttribute("transform",V))),Math.abs(C)>90&&Math.abs(C)<270&&(n?(f*=-1,C+=d<=0?180:-180,d+=d<=0?180:-180):(g*=-1,C+=C<=0?180:-180)),i=i||t.uncache,t.x=c-((t.xPercent=c&&(!i&&t.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-c)?-50:0)))?e.offsetWidth*t.xPercent/100:0)+s,t.y=p-((t.yPercent=p&&(!i&&t.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-p)?-50:0)))?e.offsetHeight*t.yPercent/100:0)+s,t.z=h+s,t.scaleX=Ue(f),t.scaleY=Ue(g),t.rotation=Ue(d)+a,t.rotationX=Ue(_)+a,t.rotationY=Ue(m)+a,t.skewX=C+a,t.skewY=w+a,t.transformPerspective=D+s,(t.zOrigin=parseFloat(l.split(" ")[2])||!i&&t.zOrigin||0)&&(r[It]=Us(l)),t.xOffset=t.yOffset=0,t.force3D=jt.force3D,t.renderTransform=t.svg?Of:oc?hc:Af,t.uncache=0,t},Us=function(e){return(e=e.split(" "))[0]+" "+e[1]},Eo=function(e,i,t){var r=yt(i);return Ue(parseFloat(i)+parseFloat(sr(e,"x",t+"px",r)))+r},Af=function(e,i){i.z="0px",i.rotationY=i.rotationX="0deg",i.force3D=0,hc(e,i)},lr="0deg",Dn="0px",cr=") ",hc=function(e,i){var t=i||this,r=t.xPercent,n=t.yPercent,s=t.x,a=t.y,u=t.z,l=t.rotation,c=t.rotationY,p=t.rotationX,h=t.skewX,f=t.skewY,g=t.scaleX,d=t.scaleY,_=t.transformPerspective,m=t.force3D,C=t.target,w=t.zOrigin,D="",E=m==="auto"&&e&&e!==1||m===!0;if(w&&(p!==lr||c!==lr)){var F=parseFloat(c)*rn,x=Math.sin(F),O=Math.cos(F),T;F=parseFloat(p)*rn,T=Math.cos(F),s=Eo(C,s,x*T*-w),a=Eo(C,a,-Math.sin(F)*-w),u=Eo(C,u,O*T*-w+w)}_!==Dn&&(D+="perspective("+_+cr),(r||n)&&(D+="translate("+r+"%, "+n+"%) "),(E||s!==Dn||a!==Dn||u!==Dn)&&(D+=u!==Dn||E?"translate3d("+s+", "+a+", "+u+") ":"translate("+s+", "+a+cr),l!==lr&&(D+="rotate("+l+cr),c!==lr&&(D+="rotateY("+c+cr),p!==lr&&(D+="rotateX("+p+cr),(h!==lr||f!==lr)&&(D+="skew("+h+", "+f+cr),(g!==1||d!==1)&&(D+="scale("+g+", "+d+cr),C.style[Ne]=D||"translate(0, 0)"},Of=function(e,i){var t=i||this,r=t.xPercent,n=t.yPercent,s=t.x,a=t.y,u=t.rotation,l=t.skewX,c=t.skewY,p=t.scaleX,h=t.scaleY,f=t.target,g=t.xOrigin,d=t.yOrigin,_=t.xOffset,m=t.yOffset,C=t.forceCSS,w=parseFloat(s),D=parseFloat(a),E,F,x,O,T;u=parseFloat(u),l=parseFloat(l),c=parseFloat(c),c&&(c=parseFloat(c),l+=c,u+=c),u||l?(u*=rn,l*=rn,E=Math.cos(u)*p,F=Math.sin(u)*p,x=Math.sin(u-l)*-h,O=Math.cos(u-l)*h,l&&(c*=rn,T=Math.tan(l-c),T=Math.sqrt(1+T*T),x*=T,O*=T,c&&(T=Math.tan(c),T=Math.sqrt(1+T*T),E*=T,F*=T)),E=Ue(E),F=Ue(F),x=Ue(x),O=Ue(O)):(E=p,O=h,F=x=0),(w&&!~(s+"").indexOf("px")||D&&!~(a+"").indexOf("px"))&&(w=sr(f,"x",s,"px"),D=sr(f,"y",a,"px")),(g||d||_||m)&&(w=Ue(w+g-(g*E+d*x)+_),D=Ue(D+d-(g*F+d*O)+m)),(r||n)&&(T=f.getBBox(),w=Ue(w+r/100*T.width),D=Ue(D+n/100*T.height)),T="matrix("+E+","+F+","+x+","+O+","+w+","+D+")",f.setAttribute("transform",T),C&&(f.style[Ne]=T)},Lf=function(e,i,t,r,n){var s=360,a=lt(n),u=parseFloat(n)*(a&&~n.indexOf("rad")?hr:1),l=u-r,c=r+l+"deg",p,h;return a&&(p=n.split("_")[1],p==="short"&&(l%=s,l!==l%(s/2)&&(l+=l<0?s:-s)),p==="cw"&&l<0?l=(l+s*vu)%s-~~(l/s)*s:p==="ccw"&&l>0&&(l=(l-s*vu)%s-~~(l/s)*s)),e._pt=h=new Bt(e._pt,i,t,r,l,_f),h.e=c,h.u="deg",e._props.push(t),h},Eu=function(e,i){for(var t in i)e[t]=i[t];return e},Mf=function(e,i,t){var r=Eu({},t._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=t.style,a,u,l,c,p,h,f,g;r.svg?(l=t.getAttribute("transform"),t.setAttribute("transform",""),s[Ne]=i,a=es(t,1),Ar(t,Ne),t.setAttribute("transform",l)):(l=getComputedStyle(t)[Ne],s[Ne]=i,a=es(t,1),s[Ne]=l);for(u in $i)l=r[u],c=a[u],l!==c&&n.indexOf(u)<0&&(f=yt(l),g=yt(c),p=f!==g?sr(t,u,l,g):parseFloat(l),h=parseFloat(c),e._pt=new Bt(e._pt,a,u,p,h-p,ia),e._pt.u=g||0,e._props.push(u));Eu(a,r)};Mt("padding,margin,Width,Radius",function(o,e){var i="Top",t="Right",r="Bottom",n="Left",s=(e<3?[i,t,r,n]:[i+n,i+t,r+t,r+n]).map(function(a){return e<2?o+a:"border"+a+o});Ws[e>1?"border"+o:o]=function(a,u,l,c,p){var h,f;if(arguments.length<4)return h=s.map(function(g){return Mi(a,g,l)}),f=h.join(" "),f.split(h[0]).length===5?h[0]:f;h=(c+"").split(" "),f={},s.forEach(function(g,d){return f[g]=h[d]=h[d]||h[(d-1)/2|0]}),a.init(u,f,p)}});var fc={name:"css",register:na,targetTest:function(e){return e.style&&e.nodeType},init:function(e,i,t,r,n){var s=this._props,a=e.style,u=t.vars.startAt,l,c,p,h,f,g,d,_,m,C,w,D,E,F,x,O;za||na(),this.styles=this.styles||sc(e),O=this.styles.props,this.tween=t;for(d in i)if(d!=="autoRound"&&(c=i[d],!(Yt[d]&&Gl(d,i,t,r,e,n)))){if(f=typeof c,g=Ws[d],f==="function"&&(c=c.call(t,r,e,n),f=typeof c),f==="string"&&~c.indexOf("random(")&&(c=Kn(c)),g)g(this,e,d,c,t)&&(x=1);else if(d.substr(0,2)==="--")l=(getComputedStyle(e).getPropertyValue(d)+"").trim(),c+="",ir.lastIndex=0,ir.test(l)||(_=yt(l),m=yt(c)),m?_!==m&&(l=sr(e,d,l,m)+m):_&&(c+=_),this.add(a,"setProperty",l,c,r,n,0,0,d),s.push(d),O.push(d,0,a[d]);else if(f!=="undefined"){if(u&&d in u?(l=typeof u[d]=="function"?u[d].call(t,r,e,n):u[d],lt(l)&&~l.indexOf("random(")&&(l=Kn(l)),yt(l+"")||l==="auto"||(l+=jt.units[d]||yt(Mi(e,d))||""),(l+"").charAt(1)==="="&&(l=Mi(e,d))):l=Mi(e,d),h=parseFloat(l),C=f==="string"&&c.charAt(1)==="="&&c.substr(0,2),C&&(c=c.substr(2)),p=parseFloat(c),d in bi&&(d==="autoAlpha"&&(h===1&&Mi(e,"visibility")==="hidden"&&p&&(h=0),O.push("visibility",0,a.visibility),Zi(this,a,"visibility",h?"inherit":"hidden",p?"inherit":"hidden",!p)),d!=="scale"&&d!=="transform"&&(d=bi[d],~d.indexOf(",")&&(d=d.split(",")[0]))),w=d in $i,w){if(this.styles.save(d),D||(E=e._gsap,E.renderTransform&&!i.parseTransform||es(e,i.parseTransform),F=i.smoothOrigin!==!1&&E.smooth,D=this._pt=new Bt(this._pt,a,Ne,0,1,E.renderTransform,E,0,-1),D.dep=1),d==="scale")this._pt=new Bt(this._pt,E,"scaleY",E.scaleY,(C?en(E.scaleY,C+p):p)-E.scaleY||0,ia),this._pt.u=0,s.push("scaleY",d),d+="X";else if(d==="transformOrigin"){O.push(It,0,a[It]),c=Ff(c),E.svg?sa(e,c,0,F,0,this):(m=parseFloat(c.split(" ")[2])||0,m!==E.zOrigin&&Zi(this,E,"zOrigin",E.zOrigin,m),Zi(this,a,d,Us(l),Us(c)));continue}else if(d==="svgOrigin"){sa(e,c,1,F,0,this);continue}else if(d in lc){Lf(this,E,d,h,C?en(h,C+c):c);continue}else if(d==="smoothOrigin"){Zi(this,E,"smooth",E.smooth,c);continue}else if(d==="force3D"){E[d]=c;continue}else if(d==="transform"){Mf(this,c,e);continue}}else d in a||(d=fn(d)||d);if(w||(p||p===0)&&(h||h===0)&&!gf.test(c)&&d in a)_=(l+"").substr((h+"").length),p||(p=0),m=yt(c)||(d in jt.units?jt.units[d]:_),_!==m&&(h=sr(e,d,l,m)),this._pt=new Bt(this._pt,w?E:a,d,h,(C?en(h,C+p):p)-h,!w&&(m==="px"||d==="zIndex")&&i.autoRound!==!1?Df:ia),this._pt.u=m||0,_!==m&&m!=="%"&&(this._pt.b=l,this._pt.r=mf);else if(d in a)Tf.call(this,e,d,l,C?C+c:c);else if(d in e)this.add(e,d,l||e[d],C?C+c:c,r,n);else if(d!=="parseTransform"){Pa(d,c);continue}w||(d in a?O.push(d,0,a[d]):O.push(d,1,l||e[d])),s.push(d)}}x&&ec(this)},render:function(e,i){if(i.tween._time||!Va())for(var t=i._pt;t;)t.r(e,t.d),t=t._next;else i.styles.revert()},get:Mi,aliases:bi,getSetter:function(e,i,t){var r=bi[i];return r&&r.indexOf(",")<0&&(i=r),i in $i&&i!==It&&(e._gsap.x||Mi(e,"x"))?t&&Du===t?i==="scale"?xf:wf:(Du=t||{})&&(i==="scale"?bf:Cf):e.style&&!ka(e.style[i])?vf:~i.indexOf("-")?yf:Ra(e,i)},core:{_removeProperty:Ar,_getMatrix:$a}};Rt.utils.checkPrefix=fn;Rt.core.getStyleSaver=sc;(function(o,e,i,t){var r=Mt(o+","+e+","+i,function(n){$i[n]=1});Mt(e,function(n){jt.units[n]="deg",lc[n]=1}),bi[r[13]]=o+","+e,Mt(t,function(n){var s=n.split(":");bi[s[1]]=r[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Mt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(o){jt.units[o]="px"});Rt.registerPlugin(fc);var R=Rt.registerPlugin(fc)||Rt;R.core.Tween;const Bf={isDevelopment:!1,isProduction:!0,mode:"production"};R.config({nullTargetWarn:Bf.isDevelopment});function If(o,e){for(var i=0;i"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function aa(o,e,i){return aa=Rf()?Reflect.construct.bind():function(t,r,n){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(t,s));return n&&ts(a,n.prototype),a},aa.apply(null,arguments)}function ua(o){var e=typeof Map=="function"?new Map:void 0;return ua=function(i){if(i===null||Function.toString.call(i).indexOf("[native code]")===-1)return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(i))return e.get(i);e.set(i,t)}function t(){return aa(i,arguments,oa(this).constructor)}return t.prototype=Object.create(i.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),ts(t,i)},ua(o)}function Nf(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}var Ui,zf=function(){this.before=void 0,this.beforeLeave=void 0,this.leave=void 0,this.afterLeave=void 0,this.beforeEnter=void 0,this.enter=void 0,this.afterEnter=void 0,this.after=void 0};(function(o){o[o.off=0]="off",o[o.error=1]="error",o[o.warning=2]="warning",o[o.info=3]="info",o[o.debug=4]="debug"})(Ui||(Ui={}));var Su=Ui.off,mr=function(){function o(i){this.t=void 0,this.t=i}o.getLevel=function(){return Su},o.setLevel=function(i){return Su=Ui[i]};var e=o.prototype;return e.error=function(){this.i(console.error,Ui.error,[].slice.call(arguments))},e.warn=function(){this.i(console.warn,Ui.warning,[].slice.call(arguments))},e.info=function(){this.i(console.info,Ui.info,[].slice.call(arguments))},e.debug=function(){this.i(console.log,Ui.debug,[].slice.call(arguments))},e.i=function(i,t,r){t<=o.getLevel()&&i.apply(console,["["+this.t+"] "].concat(r))},o}();function qr(o){return o.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function ku(o){return o&&o.sensitive?"":"i"}var Ti={container:"container",history:"history",namespace:"namespace",prefix:"data-barba",prevent:"prevent",wrapper:"wrapper"},Dr=new(function(){function o(){this.o=Ti,this.u=void 0,this.h={after:null,before:null,parent:null}}var e=o.prototype;return e.toString=function(i){return i.outerHTML},e.toDocument=function(i){return this.u||(this.u=new DOMParser),this.u.parseFromString(i,"text/html")},e.toElement=function(i){var t=document.createElement("div");return t.innerHTML=i,t},e.getHtml=function(i){return i===void 0&&(i=document),this.toString(i.documentElement)},e.getWrapper=function(i){return i===void 0&&(i=document),i.querySelector("["+this.o.prefix+'="'+this.o.wrapper+'"]')},e.getContainer=function(i){return i===void 0&&(i=document),i.querySelector("["+this.o.prefix+'="'+this.o.container+'"]')},e.removeContainer=function(i){document.body.contains(i)&&(this.v(i),i.parentNode.removeChild(i))},e.addContainer=function(i,t){var r=this.getContainer()||this.h.before;r?this.l(i,r):this.h.after?this.h.after.parentNode.insertBefore(i,this.h.after):this.h.parent?this.h.parent.appendChild(i):t.appendChild(i)},e.getSibling=function(){return this.h},e.getNamespace=function(i){i===void 0&&(i=document);var t=i.querySelector("["+this.o.prefix+"-"+this.o.namespace+"]");return t?t.getAttribute(this.o.prefix+"-"+this.o.namespace):null},e.getHref=function(i){if(i.tagName&&i.tagName.toLowerCase()==="a"){if(typeof i.href=="string")return i.href;var t=i.getAttribute("href")||i.getAttribute("xlink:href");if(t)return this.resolveUrl(t.baseVal||t)}return null},e.resolveUrl=function(){var i=[].slice.call(arguments).length;if(i===0)throw new Error("resolveUrl requires at least one argument; got none.");var t=document.createElement("base");if(t.href=arguments[0],i===1)return t.href;var r=document.getElementsByTagName("head")[0];r.insertBefore(t,r.firstChild);for(var n,s=document.createElement("a"),a=1;a1?i>0?"forward":"back":i===0?"popstate":i>0?"back":"forward"},Ha(o,[{key:"current",get:function(){return this.m[this.P]}},{key:"previous",get:function(){return this.P<1?null:this.m[this.P-1]}},{key:"size",get:function(){return this.m.length}}]),o}(),dc=new Vf,Gs=function(o,e){try{var i=function(){if(!e.next.html)return Promise.resolve(o).then(function(t){var r=e.next;if(t){var n=Dr.toElement(t.html);r.namespace=Dr.getNamespace(n),r.container=Dr.getContainer(n),r.url=t.url,r.html=t.html,dc.update({ns:r.namespace});var s=Dr.toDocument(t.html);document.title=s.title}})}();return Promise.resolve(i&&i.then?i.then(function(){}):void 0)}catch(t){return Promise.reject(t)}},pc=function o(e,i,t){return e instanceof RegExp?function(r,n){if(!n)return r;for(var s=/\((?:\?<(.*?)>)?(?!\?)/g,a=0,u=s.exec(r.source);u;)n.push({name:u[1]||a++,prefix:"",suffix:"",modifier:"",pattern:""}),u=s.exec(r.source);return r}(e,i):Array.isArray(e)?function(r,n,s){var a=r.map(function(u){return o(u,n,s).source});return new RegExp("(?:".concat(a.join("|"),")"),ku(s))}(e,i,t):function(r,n,s){return function(a,u,l){l===void 0&&(l={});for(var c=l.strict,p=c!==void 0&&c,h=l.start,f=h===void 0||h,g=l.end,d=g===void 0||g,_=l.encode,m=_===void 0?function(z){return z}:_,C=l.delimiter,w=C===void 0?"/#?":C,D=l.endsWith,E="[".concat(qr(D===void 0?"":D),"]|$"),F="[".concat(qr(w),"]"),x=f?"^":"",O=0,T=a;O-1:L===void 0;p||(x+="(?:".concat(F,"(?=").concat(E,"))?")),B||(x+="(?=".concat(F,"|").concat(E,")"))}return new RegExp(x,ku(l))}(function(a,u){u===void 0&&(u={});for(var l=function(P){for(var N=[],L=0;L=48&&v<=57||v>=65&&v<=90||v>=97&&v<=122||v===95))break;G+=P[k++]}if(!G)throw new TypeError("Missing parameter name at ".concat(L));N.push({type:"NAME",index:L,value:G}),L=k}else N.push({type:"CLOSE",index:L,value:P[L++]});else N.push({type:"OPEN",index:L,value:P[L++]});else N.push({type:"ESCAPED_CHAR",index:L++,value:P[L++]});else N.push({type:"MODIFIER",index:L,value:P[L++]})}return N.push({type:"END",index:L,value:""}),N}(a),c=u.prefixes,p=c===void 0?"./":c,h="[^".concat(qr(u.delimiter||"/#?"),"]+?"),f=[],g=0,d=0,_="",m=function(P){if(d=0&&(r=n.slice(a+1),n=n.slice(0,a));var u=n.indexOf("?");return u>=0&&(s=_c(n.slice(u+1)),n=n.slice(0,u)),{hash:r,path:n,port:e,query:s}},_c=function(o){return o.split("&").reduce(function(e,i){var t=i.split("=");return e[t[0]]=t[1],e},{})},la=function(o){return o===void 0&&(o=window.location.href),o.replace(/(\/#.*|\/|#.*)$/,"")},$f={__proto__:null,getHref:function(){return window.location.href},getAbsoluteHref:function(o,e){return e===void 0&&(e=document.baseURI),new URL(o,e).href},getOrigin:gc,getPort:is,getPath:function(o){return o===void 0&&(o=window.location.href),Gi(o).path},getQuery:function(o,e){return e===void 0&&(e=!1),e?JSON.stringify(Gi(o).query):Gi(o).query},getHash:function(o){return Gi(o).hash},parse:Gi,parseQuery:_c,clean:la};function Hf(o,e,i,t,r){return e===void 0&&(e=2e3),new Promise(function(n,s){var a=new XMLHttpRequest;a.onreadystatechange=function(){if(a.readyState===XMLHttpRequest.DONE){if(a.status===200){var u=a.responseURL!==""&&a.responseURL!==o?a.responseURL:o;n({html:a.responseText,url:Ci({href:u},Gi(u))}),t.update(o,{status:"fulfilled",target:u})}else if(a.status){var l={status:a.status,statusText:a.statusText};i(o,l),s(l),t.update(o,{status:"rejected"})}}},a.ontimeout=function(){var u=new Error("Timeout error ["+e+"]");i(o,u),s(u),t.update(o,{status:"rejected"})},a.onerror=function(){var u=new Error("Fetch error");i(o,u),s(u),t.update(o,{status:"rejected"})},a.open("GET",o),a.timeout=e,a.setRequestHeader("Accept","text/html,application/xhtml+xml,application/xml"),a.setRequestHeader("x-barba","yes"),r.all().forEach(function(u,l){a.setRequestHeader(l,u)}),a.send()})}function Yf(o){return!!o&&(typeof o=="object"||typeof o=="function")&&typeof o.then=="function"}function Gr(o,e){return e===void 0&&(e={}),function(){var i=arguments,t=!1,r=new Promise(function(n,s){e.async=function(){return t=!0,function(u,l){u?s(u):n(l)}};var a=o.apply(e,[].slice.call(i));t||(Yf(a)?a.then(n,s):n(a))});return r}}var Wi=new(function(o){function e(){var t;return(t=o.call(this)||this).logger=new mr("@barba/core"),t.all=["ready","page","reset","currentAdded","currentRemoved","nextAdded","nextRemoved","beforeOnce","once","afterOnce","before","beforeLeave","leave","afterLeave","beforeEnter","enter","afterEnter","after"],t.registered=new Map,t.init(),t}uo(e,o);var i=e.prototype;return i.init=function(){var t=this;this.registered.clear(),this.all.forEach(function(r){t[r]||(t[r]=function(n,s){t.registered.has(r)||t.registered.set(r,new Set),t.registered.get(r).add({ctx:s||{},fn:n})})})},i.do=function(t){var r=arguments,n=this;if(this.registered.has(t)){var s=Promise.resolve();return this.registered.get(t).forEach(function(a){s=s.then(function(){return Gr(a.fn,a.ctx).apply(void 0,[].slice.call(r,1))})}),s.catch(function(a){n.logger.debug("Hook error ["+t+"]"),n.logger.error(a)})}return Promise.resolve()},i.clear=function(){var t=this;this.all.forEach(function(r){delete t[r]}),this.init()},i.help=function(){this.logger.info("Available hooks: "+this.all.join(","));var t=[];this.registered.forEach(function(r,n){return t.push(n)}),this.logger.info("Registered hooks: "+t.join(","))},e}(zf)),mc=function(){function o(e){if(this.k=void 0,this.O=[],typeof e=="boolean")this.k=e;else{var i=Array.isArray(e)?e:[e];this.O=i.map(function(t){return pc(t)})}}return o.prototype.checkHref=function(e){if(typeof this.k=="boolean")return this.k;var i=Gi(e).path;return this.O.some(function(t){return t.exec(i)!==null})},o}(),Xf=function(o){function e(t){var r;return(r=o.call(this,t)||this).T=new Map,r}uo(e,o);var i=e.prototype;return i.set=function(t,r,n,s,a){return this.T.set(t,{action:n,request:r,status:s,target:a??t}),{action:n,request:r,status:s,target:a}},i.get=function(t){return this.T.get(t)},i.getRequest=function(t){return this.T.get(t).request},i.getAction=function(t){return this.T.get(t).action},i.getStatus=function(t){return this.T.get(t).status},i.getTarget=function(t){return this.T.get(t).target},i.has=function(t){return!this.checkHref(t)&&this.T.has(t)},i.delete=function(t){return this.T.delete(t)},i.update=function(t,r){var n=Ci({},this.T.get(t),r);return this.T.set(t,n),n},e}(mc),Wf=function(){function o(){this.A=new Map}var e=o.prototype;return e.set=function(i,t){return this.A.set(i,t),{name:t}},e.get=function(i){return this.A.get(i)},e.all=function(){return this.A},e.has=function(i){return this.A.has(i)},e.delete=function(i){return this.A.delete(i)},e.clear=function(){return this.A.clear()},o}(),Uf=function(){return!window.history.pushState},Gf=function(o){return!o.el||!o.href},jf=function(o){var e=o.event;return e.which>1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey},Kf=function(o){var e=o.el;return e.hasAttribute("target")&&e.target==="_blank"},Qf=function(o){var e=o.el;return e.protocol!==void 0&&window.location.protocol!==e.protocol||e.hostname!==void 0&&window.location.hostname!==e.hostname},Zf=function(o){var e=o.el;return e.port!==void 0&&is()!==is(e.href)},Jf=function(o){var e=o.el;return e.getAttribute&&typeof e.getAttribute("download")=="string"},ed=function(o){return o.el.hasAttribute(Ti.prefix+"-"+Ti.prevent)},td=function(o){return!!o.el.closest("["+Ti.prefix+"-"+Ti.prevent+'="all"]')},id=function(o){var e=o.href;return la(e)===la()&&is(e)===is()},rd=function(o){function e(t){var r;return(r=o.call(this,t)||this).suite=[],r.tests=new Map,r.init(),r}uo(e,o);var i=e.prototype;return i.init=function(){this.add("pushState",Uf),this.add("exists",Gf),this.add("newTab",jf),this.add("blank",Kf),this.add("corsDomain",Qf),this.add("corsPort",Zf),this.add("download",Jf),this.add("preventSelf",ed),this.add("preventAll",td),this.add("sameUrl",id,!1)},i.add=function(t,r,n){n===void 0&&(n=!0),this.tests.set(t,r),n&&this.suite.push(t)},i.run=function(t,r,n,s){return this.tests.get(t)({el:r,event:n,href:s})},i.checkLink=function(t,r,n){var s=this;return this.suite.some(function(a){return s.run(a,t,r,n)})},e}(mc),So=function(o){function e(i,t){var r;return t===void 0&&(t="Barba error"),(r=o.call.apply(o,[this].concat([].slice.call(arguments,2)))||this).error=void 0,r.label=void 0,r.error=i,r.label=t,Error.captureStackTrace&&Error.captureStackTrace(Nf(r),e),r.name="BarbaError",r}return uo(e,o),e}(ua(Error)),nd=function(){function o(i){i===void 0&&(i=[]),this.logger=new mr("@barba/core"),this.all=[],this.page=[],this.once=[],this.j=[{name:"namespace",type:"strings"},{name:"custom",type:"function"}],i&&(this.all=this.all.concat(i)),this.update()}var e=o.prototype;return e.add=function(i,t){i==="rule"?this.j.splice(t.position||0,0,t.value):this.all.push(t),this.update()},e.resolve=function(i,t){var r=this;t===void 0&&(t={});var n=t.once?this.once:this.page;n=n.filter(t.self?function(h){return h.name&&h.name==="self"}:function(h){return!h.name||h.name!=="self"});var s=new Map,a=n.find(function(h){var f=!0,g={};return t.self&&h.name==="self"?(s.set(h,g),!0):(r.j.reverse().forEach(function(d){f&&(f=r.M(h,d,i,g),h.from&&h.to&&(f=r.M(h,d,i,g,"from")&&r.M(h,d,i,g,"to")),h.from&&!h.to&&(f=r.M(h,d,i,g,"from")),!h.from&&h.to&&(f=r.M(h,d,i,g,"to")))}),s.set(h,g),f)}),u=s.get(a),l=[];if(l.push(t.once?"once":"page"),t.self&&l.push("self"),u){var c,p=[a];Object.keys(u).length>0&&p.push(u),(c=this.logger).info.apply(c,["Transition found ["+l.join(",")+"]"].concat(p))}else this.logger.info("No transition found ["+l.join(",")+"]");return a},e.update=function(){var i=this;this.all=this.all.map(function(t){return i.N(t)}).sort(function(t,r){return t.priority-r.priority}).reverse().map(function(t){return delete t.priority,t}),this.page=this.all.filter(function(t){return t.leave!==void 0||t.enter!==void 0}),this.once=this.all.filter(function(t){return t.once!==void 0})},e.M=function(i,t,r,n,s){var a=!0,u=!1,l=i,c=t.name,p=c,h=c,f=c,g=s?l[s]:l,d=s==="to"?r.next:r.current;if(s?g&&g[c]:g[c]){switch(t.type){case"strings":default:var _=Array.isArray(g[p])?g[p]:[g[p]];d[p]&&_.indexOf(d[p])!==-1&&(u=!0),_.indexOf(d[p])===-1&&(a=!1);break;case"object":var m=Array.isArray(g[h])?g[h]:[g[h]];d[h]?(d[h].name&&m.indexOf(d[h].name)!==-1&&(u=!0),m.indexOf(d[h].name)===-1&&(a=!1)):a=!1;break;case"function":g[f](r)?u=!0:a=!1}u&&(s?(n[s]=n[s]||{},n[s][c]=l[s][c]):n[c]=l[c])}return a},e.S=function(i,t,r){var n=0;return(i[t]||i.from&&i.from[t]||i.to&&i.to[t])&&(n+=Math.pow(10,r),i.from&&i.from[t]&&(n+=1),i.to&&i.to[t]&&(n+=2)),n},e.N=function(i){var t=this;i.priority=0;var r=0;return this.j.forEach(function(n,s){r+=t.S(i,n.name,s+1)}),i.priority=r,i},o}();function vn(o,e){try{var i=o()}catch(t){return e(t)}return i&&i.then?i.then(void 0,e):i}var sd=function(){function o(i){i===void 0&&(i=[]),this.logger=new mr("@barba/core"),this.store=void 0,this.C=!1,this.store=new nd(i)}var e=o.prototype;return e.get=function(i,t){return this.store.resolve(i,t)},e.doOnce=function(i){var t=i.data,r=i.transition;try{var n=function(){s.C=!1},s=this,a=r||{};s.C=!0;var u=vn(function(){return Promise.resolve(s.L("beforeOnce",t,a)).then(function(){return Promise.resolve(s.once(t,a)).then(function(){return Promise.resolve(s.L("afterOnce",t,a)).then(function(){})})})},function(l){s.C=!1,s.logger.debug("Transition error [before/after/once]"),s.logger.error(l)});return Promise.resolve(u&&u.then?u.then(n):n())}catch(l){return Promise.reject(l)}},e.doPage=function(i){var t=i.data,r=i.transition,n=i.page,s=i.wrapper;try{var a=function(h){u.C=!1},u=this,l=r||{},c=l.sync===!0||!1;u.C=!0;var p=vn(function(){function h(){return Promise.resolve(u.L("before",t,l)).then(function(){function g(_){return Promise.resolve(u.remove(t)).then(function(){return Promise.resolve(u.L("after",t,l)).then(function(){})})}var d=function(){if(c)return vn(function(){return Promise.resolve(u.add(t,s)).then(function(){return Promise.resolve(u.L("beforeLeave",t,l)).then(function(){return Promise.resolve(u.L("beforeEnter",t,l)).then(function(){return Promise.resolve(Promise.all([u.leave(t,l),u.enter(t,l)])).then(function(){return Promise.resolve(u.L("afterLeave",t,l)).then(function(){return Promise.resolve(u.L("afterEnter",t,l)).then(function(){})})})})})})},function(w){if(u.H(w))throw new So(w,"Transition error [sync]")});var _=function(w){return vn(function(){var D=function(){if(m!==!1)return Promise.resolve(u.add(t,s)).then(function(){return Promise.resolve(u.L("beforeEnter",t,l)).then(function(){return Promise.resolve(u.enter(t,l,m)).then(function(){return Promise.resolve(u.L("afterEnter",t,l)).then(function(){})})})})}();if(D&&D.then)return D.then(function(){})},function(D){if(u.H(D))throw new So(D,"Transition error [before/after/enter]")})},m=!1,C=vn(function(){return Promise.resolve(u.L("beforeLeave",t,l)).then(function(){return Promise.resolve(Promise.all([u.leave(t,l),Gs(n,t)]).then(function(w){return w[0]})).then(function(w){return m=w,Promise.resolve(u.L("afterLeave",t,l)).then(function(){})})})},function(w){if(u.H(w))throw new So(w,"Transition error [before/after/leave]")});return C&&C.then?C.then(_):_()}();return d&&d.then?d.then(g):g()})}var f=function(){if(c)return Promise.resolve(Gs(n,t)).then(function(){})}();return f&&f.then?f.then(h):h()},function(h){throw u.C=!1,h.name&&h.name==="BarbaError"?(u.logger.debug(h.label),u.logger.error(h.error),h):(u.logger.debug("Transition error [page]"),u.logger.error(h),h)});return Promise.resolve(p&&p.then?p.then(a):a())}catch(h){return Promise.reject(h)}},e.once=function(i,t){try{return Promise.resolve(Wi.do("once",i,t)).then(function(){return t.once?Gr(t.once,t)(i):Promise.resolve()})}catch(r){return Promise.reject(r)}},e.leave=function(i,t){try{return Promise.resolve(Wi.do("leave",i,t)).then(function(){return t.leave?Gr(t.leave,t)(i):Promise.resolve()})}catch(r){return Promise.reject(r)}},e.enter=function(i,t,r){try{return Promise.resolve(Wi.do("enter",i,t)).then(function(){return t.enter?Gr(t.enter,t)(i,r):Promise.resolve()})}catch(n){return Promise.reject(n)}},e.add=function(i,t){try{return Dr.addContainer(i.next.container,t),Wi.do("nextAdded",i),Promise.resolve()}catch(r){return Promise.reject(r)}},e.remove=function(i){try{return Dr.removeContainer(i.current.container),Wi.do("currentRemoved",i),Promise.resolve()}catch(t){return Promise.reject(t)}},e.H=function(i){return i.message?!/Timeout error|Fetch error/.test(i.message):!i.status},e.L=function(i,t,r){try{return Promise.resolve(Wi.do(i,t,r)).then(function(){return r[i]?Gr(r[i],r)(t):Promise.resolve()})}catch(n){return Promise.reject(n)}},Ha(o,[{key:"isRunning",get:function(){return this.C},set:function(i){this.C=i}},{key:"hasOnce",get:function(){return this.store.once.length>0}},{key:"hasSelf",get:function(){return this.store.all.some(function(i){return i.name==="self"})}},{key:"shouldWait",get:function(){return this.store.all.some(function(i){return i.to&&!i.to.route||i.sync})}}]),o}(),od=function(){function o(e){var i=this;this.names=["beforeLeave","afterLeave","beforeEnter","afterEnter"],this.byNamespace=new Map,e.length!==0&&(e.forEach(function(t){i.byNamespace.set(t.namespace,t)}),this.names.forEach(function(t){Wi[t](i._(t))}))}return o.prototype._=function(e){var i=this;return function(t){var r=e.match(/enter/i)?t.next:t.current,n=i.byNamespace.get(r.namespace);return n&&n[e]?Gr(n[e],n)(t):Promise.resolve()}},o}();Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(o){var e=this;do{if(e.matches(o))return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null});var ad={container:null,html:"",namespace:"",url:{hash:"",href:"",path:"",port:null,query:{}}},cs=new(function(){function o(){this.version="2.10.3",this.schemaPage=ad,this.Logger=mr,this.logger=new mr("@barba/core"),this.plugins=[],this.timeout=void 0,this.cacheIgnore=void 0,this.cacheFirstPage=void 0,this.prefetchIgnore=void 0,this.preventRunning=void 0,this.hooks=Wi,this.cache=void 0,this.headers=void 0,this.prevent=void 0,this.transitions=void 0,this.views=void 0,this.dom=Dr,this.helpers=qf,this.history=dc,this.request=Hf,this.url=$f,this.D=void 0,this.B=void 0,this.q=void 0,this.F=void 0}var e=o.prototype;return e.use=function(i,t){var r=this.plugins;r.indexOf(i)>-1?this.logger.warn("Plugin ["+i.name+"] already installed."):typeof i.install=="function"?(i.install(this,t),r.push(i)):this.logger.warn("Plugin ["+i.name+'] has no "install" method.')},e.init=function(i){var t=i===void 0?{}:i,r=t.transitions,n=r===void 0?[]:r,s=t.views,a=s===void 0?[]:s,u=t.schema,l=u===void 0?Ti:u,c=t.requestError,p=t.timeout,h=p===void 0?2e3:p,f=t.cacheIgnore,g=f!==void 0&&f,d=t.cacheFirstPage,_=d!==void 0&&d,m=t.prefetchIgnore,C=m!==void 0&&m,w=t.preventRunning,D=w!==void 0&&w,E=t.prevent,F=E===void 0?null:E,x=t.debug,O=t.logLevel;if(mr.setLevel((x!==void 0&&x)===!0?"debug":O===void 0?"off":O),this.logger.info(this.version),Object.keys(l).forEach(function(M){Ti[M]&&(Ti[M]=l[M])}),this.B=c,this.timeout=h,this.cacheIgnore=g,this.cacheFirstPage=_,this.prefetchIgnore=C,this.preventRunning=D,this.q=this.dom.getWrapper(),!this.q)throw new Error("[@barba/core] No Barba wrapper found");this.I();var T=this.data.current;if(!T.container)throw new Error("[@barba/core] No Barba container found");if(this.cache=new Xf(g),this.headers=new Wf,this.prevent=new rd(C),this.transitions=new sd(n),this.views=new od(a),F!==null){if(typeof F!="function")throw new Error("[@barba/core] Prevent should be a function");this.prevent.add("preventCustom",F)}this.history.init(T.url.href,T.namespace),_&&this.cache.set(T.url.href,Promise.resolve({html:T.html,url:T.url}),"init","fulfilled"),this.U=this.U.bind(this),this.$=this.$.bind(this),this.X=this.X.bind(this),this.G(),this.plugins.forEach(function(M){return M.init()});var y=this.data;y.trigger="barba",y.next=y.current,y.current=Ci({},this.schemaPage),this.hooks.do("ready",y),this.once(y),this.I()},e.destroy=function(){this.I(),this.J(),this.history.clear(),this.hooks.clear(),this.plugins=[]},e.force=function(i){window.location.assign(i)},e.go=function(i,t,r){var n;if(t===void 0&&(t="barba"),this.F=null,this.transitions.isRunning)this.force(i);else if(!(n=t==="popstate"?this.history.current&&this.url.getPath(this.history.current.url)===this.url.getPath(i)&&this.url.getQuery(this.history.current.url,!0)===this.url.getQuery(i,!0):this.prevent.run("sameUrl",null,null,i))||this.transitions.hasSelf)return t=this.history.change(this.cache.has(i)?this.cache.get(i).target:i,t,r),r&&(r.stopPropagation(),r.preventDefault()),this.page(i,t,r??void 0,n)},e.once=function(i){try{var t=this;return Promise.resolve(t.hooks.do("beforeEnter",i)).then(function(){function r(){return Promise.resolve(t.hooks.do("afterEnter",i)).then(function(){})}var n=function(){if(t.transitions.hasOnce){var s=t.transitions.get(i,{once:!0});return Promise.resolve(t.transitions.doOnce({transition:s,data:i})).then(function(){})}}();return n&&n.then?n.then(r):r()})}catch(r){return Promise.reject(r)}},e.page=function(i,t,r,n){try{var s,a=function(){var p=u.data;return Promise.resolve(u.hooks.do("page",p)).then(function(){var h=function(f,g){try{var d=(_=u.transitions.get(p,{once:!1,self:n}),Promise.resolve(u.transitions.doPage({data:p,page:s,transition:_,wrapper:u.q})).then(function(){u.I()}))}catch{return g()}var _;return d&&d.then?d.then(void 0,g):d}(0,function(){mr.getLevel()===0&&u.force(p.next.url.href)});if(h&&h.then)return h.then(function(){})})},u=this;if(u.data.next.url=Ci({href:i},u.url.parse(i)),u.data.trigger=t,u.data.event=r,u.cache.has(i))s=u.cache.update(i,{action:"click"}).request;else{var l=u.request(i,u.timeout,u.onRequestError.bind(u,t),u.cache,u.headers);l.then(function(p){p.url.href!==i&&u.history.add(p.url.href,t,"replace")}),s=u.cache.set(i,l,"click","pending").request}var c=function(){if(u.transitions.shouldWait)return Promise.resolve(Gs(s,u.data)).then(function(){})}();return Promise.resolve(c&&c.then?c.then(a):a())}catch(p){return Promise.reject(p)}},e.onRequestError=function(i){this.transitions.isRunning=!1;var t=[].slice.call(arguments,1),r=t[0],n=t[1],s=this.cache.getAction(r);return this.cache.delete(r),this.B&&this.B(i,s,r,n)===!1||s==="click"&&this.force(r),!1},e.prefetch=function(i){var t=this;i=this.url.getAbsoluteHref(i),this.cache.has(i)||this.cache.set(i,this.request(i,this.timeout,this.onRequestError.bind(this,"barba"),this.cache,this.headers).catch(function(r){t.logger.error(r)}),"prefetch","pending")},e.G=function(){this.prefetchIgnore!==!0&&(document.addEventListener("mouseover",this.U),document.addEventListener("touchstart",this.U)),document.addEventListener("click",this.$),window.addEventListener("popstate",this.X)},e.J=function(){this.prefetchIgnore!==!0&&(document.removeEventListener("mouseover",this.U),document.removeEventListener("touchstart",this.U)),document.removeEventListener("click",this.$),window.removeEventListener("popstate",this.X)},e.U=function(i){var t=this,r=this.W(i);if(r){var n=this.url.getAbsoluteHref(this.dom.getHref(r));this.prevent.checkHref(n)||this.cache.has(n)||this.cache.set(n,this.request(n,this.timeout,this.onRequestError.bind(this,r),this.cache,this.headers).catch(function(s){t.logger.error(s)}),"enter","pending")}},e.$=function(i){var t=this.W(i);if(t){if(this.transitions.isRunning&&this.preventRunning)return i.preventDefault(),void i.stopPropagation();this.F=i,this.go(this.dom.getHref(t),t,i)}},e.X=function(i){this.go(this.url.getHref(),"popstate",i)},e.W=function(i){for(var t=i.target;t&&!this.dom.getHref(t);)t=t.parentNode;if(t&&!this.prevent.checkLink(t,i,this.dom.getHref(t)))return t},e.I=function(){var i=this.url.getHref(),t={container:this.dom.getContainer(),html:this.dom.getHtml(),namespace:this.dom.getNamespace(),url:Ci({href:i},this.url.parse(i))};this.D={current:t,event:void 0,next:Ci({},this.schemaPage),trigger:void 0},this.hooks.do("reset",this.data)},Ha(o,[{key:"data",get:function(){return this.D}},{key:"wrapper",get:function(){return this.q}}]),o}());function ud(o,e){for(var i=0;ie in o?Dh(o,e,{enumerable:!0,config * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com -*/var ft,As,Ut,er,tr,nn,Dc,dr,In,vc,Ii,li,yc,wc=function(){return ft||typeof window<"u"&&(ft=window.gsap)&&ft.registerPlugin&&ft},xc=1,jr=[],ge=[],Fi=[],Rn=Date.now,ca=function(e,i){return i},cd=function(){var e=In.core,i=e.bridge||{},t=e._scrollers,r=e._proxies;t.push.apply(t,ge),r.push.apply(r,Fi),ge=t,Fi=r,ca=function(s,a){return i[s](a)}},nr=function(e,i){return~Fi.indexOf(e)&&Fi[Fi.indexOf(e)+1][i]},Nn=function(e){return!!~vc.indexOf(e)},Et=function(e,i,t,r,n){return e.addEventListener(i,t,{passive:r!==!1,capture:!!n})},Ct=function(e,i,t,r){return e.removeEventListener(i,t,!!r)},hs="scrollLeft",fs="scrollTop",ha=function(){return Ii&&Ii.isPressed||ge.cache++},js=function(e,i){var t=function r(n){if(n||n===0){xc&&(Ut.history.scrollRestoration="manual");var s=Ii&&Ii.isPressed;n=r.v=Math.round(n)||(Ii&&Ii.iOS?1:0),e(n),r.cacheID=ge.cache,s&&ca("ss",n)}else(i||ge.cache!==r.cacheID||ca("ref"))&&(r.cacheID=ge.cache,r.v=e());return r.v+r.offset};return t.offset=0,e&&t},Pt={s:hs,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:js(function(o){return arguments.length?Ut.scrollTo(o,rt.sc()):Ut.pageXOffset||er[hs]||tr[hs]||nn[hs]||0})},rt={s:fs,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Pt,sc:js(function(o){return arguments.length?Ut.scrollTo(Pt.sc(),o):Ut.pageYOffset||er[fs]||tr[fs]||nn[fs]||0})},Ot=function(e,i){return(i&&i._ctx&&i._ctx.selector||ft.utils.toArray)(e)[0]||(typeof e=="string"&&ft.config().nullTargetWarn!==!1?console.warn("Element not found:",e):null)},ar=function(e,i){var t=i.s,r=i.sc;Nn(e)&&(e=er.scrollingElement||tr);var n=ge.indexOf(e),s=r===rt.sc?1:2;!~n&&(n=ge.push(e)-1),ge[n+s]||Et(e,"scroll",ha);var a=ge[n+s],u=a||(ge[n+s]=js(nr(e,t),!0)||(Nn(e)?r:js(function(l){return arguments.length?e[t]=l:e[t]})));return u.target=e,a||(u.smooth=ft.getProperty(e,"scrollBehavior")==="smooth"),u},fa=function(e,i,t){var r=e,n=e,s=Rn(),a=s,u=i||50,l=Math.max(500,u*3),c=function(g,d){var m=Rn();d||m-s>u?(n=r,r=g,a=s,s=m):t?r+=g:r=n+(g-n)/(m-a)*(s-a)},p=function(){n=r=t?0:r,a=s=0},h=function(g){var d=a,m=n,_=Rn();return(g||g===0)&&g!==r&&c(g),s===a||_-a>l?0:(r+(t?m:-m))/((t?_:s)-d)*1e3};return{update:c,reset:p,getVelocity:h}},yn=function(e,i){return i&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},Tu=function(e){var i=Math.max.apply(Math,e),t=Math.min.apply(Math,e);return Math.abs(i)>=Math.abs(t)?i:t},bc=function(){In=ft.core.globals().ScrollTrigger,In&&In.core&&cd()},Cc=function(e){return ft=e||wc(),!As&&ft&&typeof document<"u"&&document.body&&(Ut=window,er=document,tr=er.documentElement,nn=er.body,vc=[Ut,er,tr,nn],ft.utils.clamp,yc=ft.core.context||function(){},dr="onpointerenter"in nn?"pointer":"mouse",Dc=ze.isTouch=Ut.matchMedia&&Ut.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Ut||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,li=ze.eventTypes=("ontouchstart"in tr?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in tr?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return xc=0},500),bc(),As=1),As};Pt.op=rt;ge.cache=0;var ze=function(){function o(i){this.init(i)}var e=o.prototype;return e.init=function(t){As||Cc(ft)||console.warn("Please gsap.registerPlugin(Observer)"),In||bc();var r=t.tolerance,n=t.dragMinimum,s=t.type,a=t.target,u=t.lineHeight,l=t.debounce,c=t.preventDefault,p=t.onStop,h=t.onStopDelay,f=t.ignore,g=t.wheelSpeed,d=t.event,m=t.onDragStart,_=t.onDragEnd,C=t.onDrag,w=t.onPress,D=t.onRelease,E=t.onRight,F=t.onLeft,x=t.onUp,O=t.onDown,T=t.onChangeX,y=t.onChangeY,B=t.onChange,P=t.onToggleX,N=t.onToggleY,L=t.onHover,I=t.onHoverEnd,z=t.onMove,V=t.ignoreCheck,G=t.isNormalizer,k=t.onGestureStart,v=t.onGestureEnd,Q=t.onWheel,ne=t.onEnable,Ve=t.onDisable,Z=t.onClick,Y=t.scrollSpeed,te=t.capture,ae=t.allowClicks,be=t.lockAxis,qe=t.onLockAxis;this.target=a=Ot(a)||tr,this.vars=t,f&&(f=ft.utils.toArray(f)),r=r||1e-9,n=n||0,g=g||1,Y=Y||1,s=s||"wheel,touch,pointer",l=l!==!1,u||(u=parseFloat(Ut.getComputedStyle(nn).lineHeight)||22);var Ye,Ce,Ze,U,he,Ge,Je,S=this,Ae=0,R=0,b=t.passive||!c,A=ar(a,Pt),W=ar(a,rt),J=A(),se=W(),fe=~s.indexOf("touch")&&!~s.indexOf("pointer")&&li[0]==="pointerdown",Xe=Nn(a),ue=a.ownerDocument||er,ke=[0,0,0],ve=[0,0,0],pe=0,et=function(){return pe=Rn()},H=function(j,ye){return(S.event=j)&&f&&~f.indexOf(j.target)||ye&&fe&&j.pointerType!=="touch"||V&&V(j,ye)},Yi=function(){S._vx.reset(),S._vy.reset(),Ce.pause(),p&&p(S)},Nt=function(){var j=S.deltaX=Tu(ke),ye=S.deltaY=Tu(ve),q=Math.abs(j)>=r,oe=Math.abs(ye)>=r;B&&(q||oe)&&B(S,j,ye,ke,ve),q&&(E&&S.deltaX>0&&E(S),F&&S.deltaX<0&&F(S),T&&T(S),P&&S.deltaX<0!=Ae<0&&P(S),Ae=S.deltaX,ke[0]=ke[1]=ke[2]=0),oe&&(O&&S.deltaY>0&&O(S),x&&S.deltaY<0&&x(S),y&&y(S),N&&S.deltaY<0!=R<0&&N(S),R=S.deltaY,ve[0]=ve[1]=ve[2]=0),(U||Ze)&&(z&&z(S),Ze&&(C(S),Ze=!1),U=!1),Ge&&!(Ge=!1)&&qe&&qe(S),he&&(Q(S),he=!1),Ye=0},zt=function(j,ye,q){ke[q]+=j,ve[q]+=ye,S._vx.update(j),S._vy.update(ye),l?Ye||(Ye=requestAnimationFrame(Nt)):Nt()},Oi=function(j,ye){be&&!Je&&(S.axis=Je=Math.abs(j)>Math.abs(ye)?"x":"y",Ge=!0),Je!=="y"&&(ke[2]+=j,S._vx.update(j,!0)),Je!=="x"&&(ve[2]+=ye,S._vy.update(ye,!0)),l?Ye||(Ye=requestAnimationFrame(Nt)):Nt()},Qt=function(j){if(!H(j,1)){j=yn(j,c);var ye=j.clientX,q=j.clientY,oe=ye-S.x,K=q-S.y,re=S.isDragging;S.x=ye,S.y=q,(re||Math.abs(S.startX-ye)>=n||Math.abs(S.startY-q)>=n)&&(C&&(Ze=!0),re||(S.isDragging=!0),Oi(oe,K),re||m&&m(S))}},si=S.onPress=function(ee){H(ee,1)||ee&&ee.button||(S.axis=Je=null,Ce.pause(),S.isPressed=!0,ee=yn(ee),Ae=R=0,S.startX=S.x=ee.clientX,S.startY=S.y=ee.clientY,S._vx.reset(),S._vy.reset(),Et(G?a:ue,li[1],Qt,b,!0),S.deltaX=S.deltaY=0,w&&w(S))},ie=S.onRelease=function(ee){if(!H(ee,1)){Ct(G?a:ue,li[1],Qt,!0);var j=!isNaN(S.y-S.startY),ye=S.isDragging,q=ye&&(Math.abs(S.x-S.startX)>3||Math.abs(S.y-S.startY)>3),oe=yn(ee);!q&&j&&(S._vx.reset(),S._vy.reset(),c&&ae&&ft.delayedCall(.08,function(){if(Rn()-pe>300&&!ee.defaultPrevented){if(ee.target.click)ee.target.click();else if(ue.createEvent){var K=ue.createEvent("MouseEvents");K.initMouseEvent("click",!0,!0,Ut,1,oe.screenX,oe.screenY,oe.clientX,oe.clientY,!1,!1,!1,!1,0,null),ee.target.dispatchEvent(K)}}})),S.isDragging=S.isGesturing=S.isPressed=!1,p&&ye&&!G&&Ce.restart(!0),_&&ye&&_(S),D&&D(S,q)}},di=function(j){return j.touches&&j.touches.length>1&&(S.isGesturing=!0)&&k(j,S.isDragging)},nt=function(){return(S.isGesturing=!1)||v(S)},xe=function(j){if(!H(j)){var ye=A(),q=W();zt((ye-J)*Y,(q-se)*Y,1),J=ye,se=q,p&&Ce.restart(!0)}},Oe=function(j){if(!H(j)){j=yn(j,c),Q&&(he=!0);var ye=(j.deltaMode===1?u:j.deltaMode===2?Ut.innerHeight:1)*g;zt(j.deltaX*ye,j.deltaY*ye,0),p&&!G&&Ce.restart(!0)}},Vt=function(j){if(!H(j)){var ye=j.clientX,q=j.clientY,oe=ye-S.x,K=q-S.y;S.x=ye,S.y=q,U=!0,p&&Ce.restart(!0),(oe||K)&&Oi(oe,K)}},oi=function(j){S.event=j,L(S)},je=function(j){S.event=j,I(S)},ai=function(j){return H(j)||yn(j,c)&&Z(S)};Ce=S._dc=ft.delayedCall(h||.25,Yi).pause(),S.deltaX=S.deltaY=0,S._vx=fa(0,50,!0),S._vy=fa(0,50,!0),S.scrollX=A,S.scrollY=W,S.isDragging=S.isGesturing=S.isPressed=!1,yc(this),S.enable=function(ee){return S.isEnabled||(Et(Xe?ue:a,"scroll",ha),s.indexOf("scroll")>=0&&Et(Xe?ue:a,"scroll",xe,b,te),s.indexOf("wheel")>=0&&Et(a,"wheel",Oe,b,te),(s.indexOf("touch")>=0&&Dc||s.indexOf("pointer")>=0)&&(Et(a,li[0],si,b,te),Et(ue,li[2],ie),Et(ue,li[3],ie),ae&&Et(a,"click",et,!0,!0),Z&&Et(a,"click",ai),k&&Et(ue,"gesturestart",di),v&&Et(ue,"gestureend",nt),L&&Et(a,dr+"enter",oi),I&&Et(a,dr+"leave",je),z&&Et(a,dr+"move",Vt)),S.isEnabled=!0,ee&&ee.type&&si(ee),ne&&ne(S)),S},S.disable=function(){S.isEnabled&&(jr.filter(function(ee){return ee!==S&&Nn(ee.target)}).length||Ct(Xe?ue:a,"scroll",ha),S.isPressed&&(S._vx.reset(),S._vy.reset(),Ct(G?a:ue,li[1],Qt,!0)),Ct(Xe?ue:a,"scroll",xe,te),Ct(a,"wheel",Oe,te),Ct(a,li[0],si,te),Ct(ue,li[2],ie),Ct(ue,li[3],ie),Ct(a,"click",et,!0),Ct(a,"click",ai),Ct(ue,"gesturestart",di),Ct(ue,"gestureend",nt),Ct(a,dr+"enter",oi),Ct(a,dr+"leave",je),Ct(a,dr+"move",Vt),S.isEnabled=S.isPressed=S.isDragging=!1,Ve&&Ve(S))},S.kill=S.revert=function(){S.disable();var ee=jr.indexOf(S);ee>=0&&jr.splice(ee,1),Ii===S&&(Ii=0)},jr.push(S),G&&Nn(a)&&(Ii=S),S.enable(d)},ld(o,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),o}();ze.version="3.12.5";ze.create=function(o){return new ze(o)};ze.register=Cc;ze.getAll=function(){return jr.slice()};ze.getById=function(o){return jr.filter(function(e){return e.vars.id===o})[0]};wc()&&ft.registerPlugin(ze);/*! +*/var ft,As,Ut,Ji,er,nn,Dc,fr,In,vc,Ii,li,yc,wc=function(){return ft||typeof window<"u"&&(ft=window.gsap)&&ft.registerPlugin&&ft},xc=1,jr=[],ge=[],Fi=[],Rn=Date.now,ca=function(e,i){return i},cd=function(){var e=In.core,i=e.bridge||{},t=e._scrollers,r=e._proxies;t.push.apply(t,ge),r.push.apply(r,Fi),ge=t,Fi=r,ca=function(s,a){return i[s](a)}},rr=function(e,i){return~Fi.indexOf(e)&&Fi[Fi.indexOf(e)+1][i]},Nn=function(e){return!!~vc.indexOf(e)},Et=function(e,i,t,r,n){return e.addEventListener(i,t,{passive:r!==!1,capture:!!n})},Ct=function(e,i,t,r){return e.removeEventListener(i,t,!!r)},hs="scrollLeft",fs="scrollTop",ha=function(){return Ii&&Ii.isPressed||ge.cache++},js=function(e,i){var t=function r(n){if(n||n===0){xc&&(Ut.history.scrollRestoration="manual");var s=Ii&&Ii.isPressed;n=r.v=Math.round(n)||(Ii&&Ii.iOS?1:0),e(n),r.cacheID=ge.cache,s&&ca("ss",n)}else(i||ge.cache!==r.cacheID||ca("ref"))&&(r.cacheID=ge.cache,r.v=e());return r.v+r.offset};return t.offset=0,e&&t},Pt={s:hs,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:js(function(o){return arguments.length?Ut.scrollTo(o,rt.sc()):Ut.pageXOffset||Ji[hs]||er[hs]||nn[hs]||0})},rt={s:fs,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Pt,sc:js(function(o){return arguments.length?Ut.scrollTo(Pt.sc(),o):Ut.pageYOffset||Ji[fs]||er[fs]||nn[fs]||0})},Ot=function(e,i){return(i&&i._ctx&&i._ctx.selector||ft.utils.toArray)(e)[0]||(typeof e=="string"&&ft.config().nullTargetWarn!==!1?console.warn("Element not found:",e):null)},or=function(e,i){var t=i.s,r=i.sc;Nn(e)&&(e=Ji.scrollingElement||er);var n=ge.indexOf(e),s=r===rt.sc?1:2;!~n&&(n=ge.push(e)-1),ge[n+s]||Et(e,"scroll",ha);var a=ge[n+s],u=a||(ge[n+s]=js(rr(e,t),!0)||(Nn(e)?r:js(function(l){return arguments.length?e[t]=l:e[t]})));return u.target=e,a||(u.smooth=ft.getProperty(e,"scrollBehavior")==="smooth"),u},fa=function(e,i,t){var r=e,n=e,s=Rn(),a=s,u=i||50,l=Math.max(500,u*3),c=function(g,d){var _=Rn();d||_-s>u?(n=r,r=g,a=s,s=_):t?r+=g:r=n+(g-n)/(_-a)*(s-a)},p=function(){n=r=t?0:r,a=s=0},h=function(g){var d=a,_=n,m=Rn();return(g||g===0)&&g!==r&&c(g),s===a||m-a>l?0:(r+(t?_:-_))/((t?m:s)-d)*1e3};return{update:c,reset:p,getVelocity:h}},yn=function(e,i){return i&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},Tu=function(e){var i=Math.max.apply(Math,e),t=Math.min.apply(Math,e);return Math.abs(i)>=Math.abs(t)?i:t},bc=function(){In=ft.core.globals().ScrollTrigger,In&&In.core&&cd()},Cc=function(e){return ft=e||wc(),!As&&ft&&typeof document<"u"&&document.body&&(Ut=window,Ji=document,er=Ji.documentElement,nn=Ji.body,vc=[Ut,Ji,er,nn],ft.utils.clamp,yc=ft.core.context||function(){},fr="onpointerenter"in nn?"pointer":"mouse",Dc=ze.isTouch=Ut.matchMedia&&Ut.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Ut||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,li=ze.eventTypes=("ontouchstart"in er?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in er?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return xc=0},500),bc(),As=1),As};Pt.op=rt;ge.cache=0;var ze=function(){function o(i){this.init(i)}var e=o.prototype;return e.init=function(t){As||Cc(ft)||console.warn("Please gsap.registerPlugin(Observer)"),In||bc();var r=t.tolerance,n=t.dragMinimum,s=t.type,a=t.target,u=t.lineHeight,l=t.debounce,c=t.preventDefault,p=t.onStop,h=t.onStopDelay,f=t.ignore,g=t.wheelSpeed,d=t.event,_=t.onDragStart,m=t.onDragEnd,C=t.onDrag,w=t.onPress,D=t.onRelease,E=t.onRight,F=t.onLeft,x=t.onUp,O=t.onDown,T=t.onChangeX,y=t.onChangeY,M=t.onChange,P=t.onToggleX,N=t.onToggleY,L=t.onHover,B=t.onHoverEnd,z=t.onMove,V=t.ignoreCheck,G=t.isNormalizer,k=t.onGestureStart,v=t.onGestureEnd,Q=t.onWheel,ne=t.onEnable,Ve=t.onDisable,Z=t.onClick,Y=t.scrollSpeed,te=t.capture,ae=t.allowClicks,be=t.lockAxis,qe=t.onLockAxis;this.target=a=Ot(a)||er,this.vars=t,f&&(f=ft.utils.toArray(f)),r=r||1e-9,n=n||0,g=g||1,Y=Y||1,s=s||"wheel,touch,pointer",l=l!==!1,u||(u=parseFloat(Ut.getComputedStyle(nn).lineHeight)||22);var Ye,Ce,Ze,U,he,Ge,Je,S=this,Ae=0,I=0,b=t.passive||!c,A=or(a,Pt),W=or(a,rt),J=A(),se=W(),fe=~s.indexOf("touch")&&!~s.indexOf("pointer")&&li[0]==="pointerdown",Xe=Nn(a),ue=a.ownerDocument||Ji,ke=[0,0,0],ve=[0,0,0],pe=0,et=function(){return pe=Rn()},H=function(j,ye){return(S.event=j)&&f&&~f.indexOf(j.target)||ye&&fe&&j.pointerType!=="touch"||V&&V(j,ye)},Hi=function(){S._vx.reset(),S._vy.reset(),Ce.pause(),p&&p(S)},Nt=function(){var j=S.deltaX=Tu(ke),ye=S.deltaY=Tu(ve),q=Math.abs(j)>=r,oe=Math.abs(ye)>=r;M&&(q||oe)&&M(S,j,ye,ke,ve),q&&(E&&S.deltaX>0&&E(S),F&&S.deltaX<0&&F(S),T&&T(S),P&&S.deltaX<0!=Ae<0&&P(S),Ae=S.deltaX,ke[0]=ke[1]=ke[2]=0),oe&&(O&&S.deltaY>0&&O(S),x&&S.deltaY<0&&x(S),y&&y(S),N&&S.deltaY<0!=I<0&&N(S),I=S.deltaY,ve[0]=ve[1]=ve[2]=0),(U||Ze)&&(z&&z(S),Ze&&(C(S),Ze=!1),U=!1),Ge&&!(Ge=!1)&&qe&&qe(S),he&&(Q(S),he=!1),Ye=0},zt=function(j,ye,q){ke[q]+=j,ve[q]+=ye,S._vx.update(j),S._vy.update(ye),l?Ye||(Ye=requestAnimationFrame(Nt)):Nt()},Oi=function(j,ye){be&&!Je&&(S.axis=Je=Math.abs(j)>Math.abs(ye)?"x":"y",Ge=!0),Je!=="y"&&(ke[2]+=j,S._vx.update(j,!0)),Je!=="x"&&(ve[2]+=ye,S._vy.update(ye,!0)),l?Ye||(Ye=requestAnimationFrame(Nt)):Nt()},Qt=function(j){if(!H(j,1)){j=yn(j,c);var ye=j.clientX,q=j.clientY,oe=ye-S.x,K=q-S.y,re=S.isDragging;S.x=ye,S.y=q,(re||Math.abs(S.startX-ye)>=n||Math.abs(S.startY-q)>=n)&&(C&&(Ze=!0),re||(S.isDragging=!0),Oi(oe,K),re||_&&_(S))}},si=S.onPress=function(ee){H(ee,1)||ee&&ee.button||(S.axis=Je=null,Ce.pause(),S.isPressed=!0,ee=yn(ee),Ae=I=0,S.startX=S.x=ee.clientX,S.startY=S.y=ee.clientY,S._vx.reset(),S._vy.reset(),Et(G?a:ue,li[1],Qt,b,!0),S.deltaX=S.deltaY=0,w&&w(S))},ie=S.onRelease=function(ee){if(!H(ee,1)){Ct(G?a:ue,li[1],Qt,!0);var j=!isNaN(S.y-S.startY),ye=S.isDragging,q=ye&&(Math.abs(S.x-S.startX)>3||Math.abs(S.y-S.startY)>3),oe=yn(ee);!q&&j&&(S._vx.reset(),S._vy.reset(),c&&ae&&ft.delayedCall(.08,function(){if(Rn()-pe>300&&!ee.defaultPrevented){if(ee.target.click)ee.target.click();else if(ue.createEvent){var K=ue.createEvent("MouseEvents");K.initMouseEvent("click",!0,!0,Ut,1,oe.screenX,oe.screenY,oe.clientX,oe.clientY,!1,!1,!1,!1,0,null),ee.target.dispatchEvent(K)}}})),S.isDragging=S.isGesturing=S.isPressed=!1,p&&ye&&!G&&Ce.restart(!0),m&&ye&&m(S),D&&D(S,q)}},di=function(j){return j.touches&&j.touches.length>1&&(S.isGesturing=!0)&&k(j,S.isDragging)},nt=function(){return(S.isGesturing=!1)||v(S)},xe=function(j){if(!H(j)){var ye=A(),q=W();zt((ye-J)*Y,(q-se)*Y,1),J=ye,se=q,p&&Ce.restart(!0)}},Oe=function(j){if(!H(j)){j=yn(j,c),Q&&(he=!0);var ye=(j.deltaMode===1?u:j.deltaMode===2?Ut.innerHeight:1)*g;zt(j.deltaX*ye,j.deltaY*ye,0),p&&!G&&Ce.restart(!0)}},Vt=function(j){if(!H(j)){var ye=j.clientX,q=j.clientY,oe=ye-S.x,K=q-S.y;S.x=ye,S.y=q,U=!0,p&&Ce.restart(!0),(oe||K)&&Oi(oe,K)}},oi=function(j){S.event=j,L(S)},je=function(j){S.event=j,B(S)},ai=function(j){return H(j)||yn(j,c)&&Z(S)};Ce=S._dc=ft.delayedCall(h||.25,Hi).pause(),S.deltaX=S.deltaY=0,S._vx=fa(0,50,!0),S._vy=fa(0,50,!0),S.scrollX=A,S.scrollY=W,S.isDragging=S.isGesturing=S.isPressed=!1,yc(this),S.enable=function(ee){return S.isEnabled||(Et(Xe?ue:a,"scroll",ha),s.indexOf("scroll")>=0&&Et(Xe?ue:a,"scroll",xe,b,te),s.indexOf("wheel")>=0&&Et(a,"wheel",Oe,b,te),(s.indexOf("touch")>=0&&Dc||s.indexOf("pointer")>=0)&&(Et(a,li[0],si,b,te),Et(ue,li[2],ie),Et(ue,li[3],ie),ae&&Et(a,"click",et,!0,!0),Z&&Et(a,"click",ai),k&&Et(ue,"gesturestart",di),v&&Et(ue,"gestureend",nt),L&&Et(a,fr+"enter",oi),B&&Et(a,fr+"leave",je),z&&Et(a,fr+"move",Vt)),S.isEnabled=!0,ee&&ee.type&&si(ee),ne&&ne(S)),S},S.disable=function(){S.isEnabled&&(jr.filter(function(ee){return ee!==S&&Nn(ee.target)}).length||Ct(Xe?ue:a,"scroll",ha),S.isPressed&&(S._vx.reset(),S._vy.reset(),Ct(G?a:ue,li[1],Qt,!0)),Ct(Xe?ue:a,"scroll",xe,te),Ct(a,"wheel",Oe,te),Ct(a,li[0],si,te),Ct(ue,li[2],ie),Ct(ue,li[3],ie),Ct(a,"click",et,!0),Ct(a,"click",ai),Ct(ue,"gesturestart",di),Ct(ue,"gestureend",nt),Ct(a,fr+"enter",oi),Ct(a,fr+"leave",je),Ct(a,fr+"move",Vt),S.isEnabled=S.isPressed=S.isDragging=!1,Ve&&Ve(S))},S.kill=S.revert=function(){S.disable();var ee=jr.indexOf(S);ee>=0&&jr.splice(ee,1),Ii===S&&(Ii=0)},jr.push(S),G&&Nn(a)&&(Ii=S),S.enable(d)},ld(o,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),o}();ze.version="3.12.5";ze.create=function(o){return new ze(o)};ze.register=Cc;ze.getAll=function(){return jr.slice()};ze.getById=function(o){return jr.filter(function(e){return e.vars.id===o})[0]};wc()&&ft.registerPlugin(ze);/*! * ScrollTrigger 3.12.5 * https://gsap.com * @@ -30,7 +30,7 @@ var Dh=Object.defineProperty;var vh=(o,e,i)=>e in o?Dh(o,e,{enumerable:!0,config * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com -*/var $,Yr,_e,Ie,ci,Fe,Ec,Ks,rs,zn,Sn,ds,mt,lo,da,kt,Fu,Pu,Xr,Sc,ko,kc,St,pa,Tc,Fc,Wi,ga,Ya,sn,Xa,Qs,ma,To,ps=1,Dt=Date.now,Fo=Dt(),ri=0,kn=0,Au=function(e,i,t){var r=Ht(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return t["_"+i+"Clamp"]=r,r?e.substr(6,e.length-7):e},Ou=function(e,i){return i&&(!Ht(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},hd=function o(){return kn&&requestAnimationFrame(o)},Lu=function(){return lo=1},Mu=function(){return lo=0},yi=function(e){return e},Tn=function(e){return Math.round(e*1e5)/1e5||0},Pc=function(){return typeof window<"u"},Ac=function(){return $||Pc()&&($=window.gsap)&&$.registerPlugin&&$},Lr=function(e){return!!~Ec.indexOf(e)},Oc=function(e){return(e==="Height"?Xa:_e["inner"+e])||ci["client"+e]||Fe["client"+e]},Lc=function(e){return nr(e,"getBoundingClientRect")||(Lr(e)?function(){return Is.width=_e.innerWidth,Is.height=Xa,Is}:function(){return Bi(e)})},fd=function(e,i,t){var r=t.d,n=t.d2,s=t.a;return(s=nr(e,"getBoundingClientRect"))?function(){return s()[r]}:function(){return(i?Oc(n):e["client"+n])||0}},dd=function(e,i){return!i||~Fi.indexOf(e)?Lc(e):function(){return Is}},Ei=function(e,i){var t=i.s,r=i.d2,n=i.d,s=i.a;return Math.max(0,(t="scroll"+r)&&(s=nr(e,t))?s()-Lc(e)()[n]:Lr(e)?(ci[t]||Fe[t])-Oc(r):e[t]-e["offset"+r])},gs=function(e,i){for(var t=0;t0){for(r-=s,a=0;a=r)return t[a];return t[a-1]}else for(a=t.length,r+=s;a--;)if(t[a]<=r)return t[a];return t[0]}:function(r,n,s){s===void 0&&(s=.001);var a=i(r);return!n||Math.abs(a-r)t&&(r*=i/100),e=e.substr(0,t-1)),e=r+(e in Js?Js[e]*i:~e.indexOf("%")?parseFloat(e)*i/100:parseFloat(e)||0)}return e},vs=function(e,i,t,r,n,s,a,u){var l=n.startColor,c=n.endColor,p=n.fontSize,h=n.indent,f=n.fontWeight,g=Ie.createElement("div"),d=Lr(t)||nr(t,"pinType")==="fixed",m=e.indexOf("scroller")!==-1,_=d?Fe:t,C=e.indexOf("start")!==-1,w=C?l:c,D="border-color:"+w+";font-size:"+p+";color:"+w+";font-weight:"+f+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return D+="position:"+((m||u)&&d?"fixed;":"absolute;"),(m||u||!d)&&(D+=(r===rt?Wa:Ua)+":"+(s+parseFloat(h))+"px;"),a&&(D+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),g._isStart=C,g.setAttribute("class","gsap-marker-"+e+(i?" marker-"+i:"")),g.style.cssText=D,g.innerText=i||i===0?e+"-"+i:e,_.children[0]?_.insertBefore(g,_.children[0]):_.appendChild(g),g._offset=g["offset"+r.op.d2],Ls(g,0,r,C),g},Ls=function(e,i,t,r){var n={display:"block"},s=t[r?"os2":"p2"],a=t[r?"p2":"os2"];e._isFlipped=r,n[t.a+"Percent"]=r?-100:0,n[t.a]=r?"1px":0,n["border"+s+dn]=1,n["border"+a+dn]=0,n[t.p]=i+"px",$.set(e,n)},de=[],_a={},ns,Ru=function(){return Dt()-ri>34&&(ns||(ns=requestAnimationFrame(qi)))},Hr=function(){(!St||!St.isPressed||St.startX>Fe.clientWidth)&&(ge.cache++,St?ns||(ns=requestAnimationFrame(qi)):qi(),ri||Br("scrollStart"),ri=Dt())},Ao=function(){Fc=_e.innerWidth,Tc=_e.innerHeight},Pn=function(){ge.cache++,!mt&&!kc&&!Ie.fullscreenElement&&!Ie.webkitFullscreenElement&&(!pa||Fc!==_e.innerWidth||Math.abs(_e.innerHeight-Tc)>_e.innerHeight*.25)&&Ks.restart(!0)},Mr={},_d=[],Rc=function o(){return ot(ce,"scrollEnd",o)||yr(!0)},Br=function(e){return Mr[e]&&Mr[e].map(function(i){return i()})||_d},$t=[],Nc=function(e){for(var i=0;i<$t.length;i+=5)(!e||$t[i+4]&&$t[i+4].query===e)&&($t[i].style.cssText=$t[i+1],$t[i].getBBox&&$t[i].setAttribute("transform",$t[i+2]||""),$t[i+3].uncache=1)},Ka=function(e,i){var t;for(kt=0;ktn,a=r._startClamp&&r.start>=n;(s||a)&&r.setPositions(a?n-1:r.start,s?Math.max(a?n:r.start+1,n):r.end,!0)}),zu(!1),ma=0,t.forEach(function(r){return r&&r.render&&r.render(-1)}),ge.forEach(function(r){At(r)&&(r.smooth&&requestAnimationFrame(function(){return r.target.style.scrollBehavior="smooth"}),r.rec&&r(r.rec))}),zc(Ya,1),Ks.pause(),kr++,Tt=2,qi(2),de.forEach(function(r){return At(r.vars.onRefresh)&&r.vars.onRefresh(r)}),Tt=ce.isRefreshing=!1,Br("refresh")},Da=0,Ms=1,Yn,qi=function(e){if(e===2||!Tt&&!Qs){ce.isUpdating=!0,Yn&&Yn.update(0);var i=de.length,t=Dt(),r=t-Fo>=50,n=i&&de[0].scroll();if(Ms=Da>n?-1:1,Tt||(Da=n),r&&(ri&&!lo&&t-ri>200&&(ri=0,Br("scrollEnd")),Sn=Fo,Fo=t),Ms<0){for(kt=i;kt-- >0;)de[kt]&&de[kt].update(0,r);Ms=1}else for(kt=0;kt20),t-=t-F}if(g&&(u[g]=e||-.001,e<0&&(e=0)),s){var O=e+t,T=s._isStart;m="scroll"+r.d2,Ls(s,O,r,T&&O>20||!T&&(p?Math.max(Fe[m],ci[m]):s.parentNode[m])<=O+1),p&&(l=Bi(a),p&&(s.style[r.op.p]=l[r.op.p]-r.op.m-s._offset+it))}return f&&C&&(m=Bi(C),f.seek(h),_=Bi(C),f._caScrollDist=m[r.p]-_[r.p],e=e/f._caScrollDist*h),f&&f.seek(d),f?e:Math.round(e)},xd=/(webkit|moz|length|cssText|inset)/i,qu=function(e,i,t,r){if(e.parentNode!==i){var n=e.style,s,a;if(i===Fe){e._stOrig=n.cssText,a=ei(e);for(s in a)!+s&&!xd.test(s)&&a[s]&&typeof n[s]=="string"&&s!=="0"&&(n[s]=a[s]);n.top=t,n.left=r}else n.cssText=e._stOrig;$.core.getCache(e).uncache=1,i.appendChild(e)}},qc=function(e,i,t){var r=i,n=r;return function(s){var a=Math.round(e());return a!==r&&a!==n&&Math.abs(a-r)>3&&Math.abs(a-n)>3&&(s=a,t&&t()),n=r,r=s,s}},ws=function(e,i,t){var r={};r[i.p]="+="+t,$.set(e,r)},$u=function(e,i){var t=ar(e,i),r="_scroll"+i.p2,n=function s(a,u,l,c,p){var h=s.tween,f=u.onComplete,g={};l=l||t();var d=qc(t,l,function(){h.kill(),s.tween=0});return p=c&&p||0,c=c||a-l,h&&h.kill(),u[r]=a,u.inherit=!1,u.modifiers=g,g[r]=function(){return d(l+c*h.ratio+p*h.ratio*h.ratio)},u.onUpdate=function(){ge.cache++,s.tween&&qi()},u.onComplete=function(){s.tween=0,f&&f.call(h)},h=s.tween=$.to(e,u),h};return e[r]=t,t.wheelHandler=function(){return n.tween&&n.tween.kill()&&(n.tween=0)},at(e,"wheel",t.wheelHandler),ce.isTouch&&at(e,"touchmove",t.wheelHandler),n},ce=function(){function o(i,t){Yr||o.register($)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),ga(this),this.init(i,t)}var e=o.prototype;return e.init=function(t,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!kn){this.update=this.refresh=this.kill=yi;return}t=Bu(Ht(t)||Fn(t)||t.nodeType?{trigger:t}:t,Ds);var n=t,s=n.onUpdate,a=n.toggleClass,u=n.id,l=n.onToggle,c=n.onRefresh,p=n.scrub,h=n.trigger,f=n.pin,g=n.pinSpacing,d=n.invalidateOnRefresh,m=n.anticipatePin,_=n.onScrubComplete,C=n.onSnapComplete,w=n.once,D=n.snap,E=n.pinReparent,F=n.pinSpacer,x=n.containerAnimation,O=n.fastScrollEnd,T=n.preventOverlaps,y=t.horizontal||t.containerAnimation&&t.horizontal!==!1?Pt:rt,B=!p&&p!==0,P=Ot(t.scroller||_e),N=$.core.getCache(P),L=Lr(P),I=("pinType"in t?t.pinType:nr(P,"pinType")||L&&"fixed")==="fixed",z=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],V=B&&t.toggleActions.split(" "),G="markers"in t?t.markers:Ds.markers,k=L?0:parseFloat(ei(P)["border"+y.p2+dn])||0,v=this,Q=t.onRefreshInit&&function(){return t.onRefreshInit(v)},ne=fd(P,L,y),Ve=dd(P,L),Z=0,Y=0,te=0,ae=ar(P,y),be,qe,Ye,Ce,Ze,U,he,Ge,Je,S,Ae,R,b,A,W,J,se,fe,Xe,ue,ke,ve,pe,et,H,Yi,Nt,zt,Oi,Qt,si,ie,di,nt,xe,Oe,Vt,oi,je;if(v._startClamp=v._endClamp=!1,v._dir=y,m*=45,v.scroller=P,v.scroll=x?x.time.bind(x):ae,Ce=ae(),v.vars=t,r=r||t.animation,"refreshPriority"in t&&(Sc=1,t.refreshPriority===-9999&&(Yn=v)),N.tweenScroll=N.tweenScroll||{top:$u(P,rt),left:$u(P,Pt)},v.tweenTo=be=N.tweenScroll[y.p],v.scrubDuration=function(q){di=Fn(q)&&q,di?ie?ie.duration(q):ie=$.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:di,paused:!0,onComplete:function(){return _&&_(v)}}):(ie&&ie.progress(1).kill(),ie=0)},r&&(r.vars.lazy=!1,r._initted&&!v.isReverted||r.vars.immediateRender!==!1&&t.immediateRender!==!1&&r.duration()&&r.render(0,!0,!0),v.animation=r.pause(),r.scrollTrigger=v,v.scrubDuration(p),Qt=0,u||(u=r.vars.id)),D&&((!pr(D)||D.push)&&(D={snapTo:D}),"scrollBehavior"in Fe.style&&$.set(L?[Fe,ci]:P,{scrollBehavior:"auto"}),ge.forEach(function(q){return At(q)&&q.target===(L?Ie.scrollingElement||ci:P)&&(q.smooth=!1)}),Ye=At(D.snapTo)?D.snapTo:D.snapTo==="labels"?gd(r):D.snapTo==="labelsDirectional"?md(r):D.directional!==!1?function(q,oe){return ja(D.snapTo)(q,Dt()-Y<500?0:oe.direction)}:$.utils.snap(D.snapTo),nt=D.duration||{min:.1,max:2},nt=pr(nt)?zn(nt.min,nt.max):zn(nt,nt),xe=$.delayedCall(D.delay||di/2||.1,function(){var q=ae(),oe=Dt()-Y<500,K=be.tween;if((oe||Math.abs(v.getVelocity())<10)&&!K&&!lo&&Z!==q){var re=(q-U)/A,st=r&&!B?r.totalProgress():re,me=oe?0:(st-si)/(Dt()-Sn)*1e3||0,We=$.utils.clamp(-re,1-re,$r(me/2)*me/.185),dt=re+(D.inertia===!1?0:We),$e,Le,Ee=D,ui=Ee.onStart,Be=Ee.onInterrupt,qt=Ee.onComplete;if($e=Ye(dt,v),Fn($e)||($e=dt),Le=Math.round(U+$e*A),q<=he&&q>=U&&Le!==q){if(K&&!K._initted&&K.data<=$r(Le-q))return;D.inertia===!1&&(We=$e-re),be(Le,{duration:nt($r(Math.max($r(dt-st),$r($e-st))*.185/me/.05||0)),ease:D.ease||"power3",data:$r(Le-q),onInterrupt:function(){return xe.restart(!0)&&Be&&Be(v)},onComplete:function(){v.update(),Z=ae(),r&&(ie?ie.resetTo("totalProgress",$e,r._tTime/r._tDur):r.progress($e)),Qt=si=r&&!B?r.totalProgress():v.progress,C&&C(v),qt&&qt(v)}},q,We*A,Le-q-We*A),ui&&ui(v,be.tween)}}else v.isActive&&Z!==q&&xe.restart(!0)}).pause()),u&&(_a[u]=v),h=v.trigger=Ot(h||f!==!0&&f),je=h&&h._gsap&&h._gsap.stRevert,je&&(je=je(v)),f=f===!0?h:Ot(f),Ht(a)&&(a={targets:h,className:a}),f&&(g===!1||g===Jt||(g=!g&&f.parentNode&&f.parentNode.style&&ei(f.parentNode).display==="flex"?!1:Ke),v.pin=f,qe=$.core.getCache(f),qe.spacer?W=qe.pinState:(F&&(F=Ot(F),F&&!F.nodeType&&(F=F.current||F.nativeElement),qe.spacerIsNative=!!F,F&&(qe.spacerState=ys(F))),qe.spacer=fe=F||Ie.createElement("div"),fe.classList.add("pin-spacer"),u&&fe.classList.add("pin-spacer-"+u),qe.pinState=W=ys(f)),t.force3D!==!1&&$.set(f,{force3D:!0}),v.spacer=fe=qe.spacer,Oi=ei(f),et=Oi[g+y.os2],ue=$.getProperty(f),ke=$.quickSetter(f,y.a,it),Oo(f,fe,Oi),se=ys(f)),G){R=pr(G)?Bu(G,Iu):Iu,S=vs("scroller-start",u,P,y,R,0),Ae=vs("scroller-end",u,P,y,R,0,S),Xe=S["offset"+y.op.d2];var ai=Ot(nr(P,"content")||P);Ge=this.markerStart=vs("start",u,ai,y,R,Xe,0,x),Je=this.markerEnd=vs("end",u,ai,y,R,Xe,0,x),x&&(oi=$.quickSetter([Ge,Je],y.a,it)),!I&&!(Fi.length&&nr(P,"fixedMarkers")===!0)&&(pd(L?Fe:P),$.set([S,Ae],{force3D:!0}),Yi=$.quickSetter(S,y.a,it),zt=$.quickSetter(Ae,y.a,it))}if(x){var ee=x.vars.onUpdate,j=x.vars.onUpdateParams;x.eventCallback("onUpdate",function(){v.update(0,0,1),ee&&ee.apply(x,j||[])})}if(v.previous=function(){return de[de.indexOf(v)-1]},v.next=function(){return de[de.indexOf(v)+1]},v.revert=function(q,oe){if(!oe)return v.kill(!0);var K=q!==!1||!v.enabled,re=mt;K!==v.isReverted&&(K&&(Oe=Math.max(ae(),v.scroll.rec||0),te=v.progress,Vt=r&&r.progress()),Ge&&[Ge,Je,S,Ae].forEach(function(st){return st.style.display=K?"none":"block"}),K&&(mt=v,v.update(K)),f&&(!E||!v.isActive)&&(K?vd(f,fe,W):Oo(f,fe,ei(f),H)),K||v.update(K),mt=re,v.isReverted=K)},v.refresh=function(q,oe,K,re){if(!((mt||!v.enabled)&&!oe)){if(f&&q&&ri){at(o,"scrollEnd",Rc);return}!Tt&&Q&&Q(v),mt=v,be.tween&&!K&&(be.tween.kill(),be.tween=0),ie&&ie.pause(),d&&r&&r.revert({kill:!1}).invalidate(),v.isReverted||v.revert(!0,!0),v._subPinOffset=!1;var st=ne(),me=Ve(),We=x?x.duration():Ei(P,y),dt=A<=.01,$e=0,Le=re||0,Ee=pr(K)?K.end:t.end,ui=t.endTrigger||h,Be=pr(K)?K.start:t.start||(t.start===0||!h?0:f?"0 0":"0 100%"),qt=v.pinnedContainer=t.pinnedContainer&&Ot(t.pinnedContainer,v),pi=h&&Math.max(0,de.indexOf(v))||0,ct=pi,ht,pt,lr,as,gt,tt,gi,mo,lu,gn,mi,mn,us;for(G&&pr(K)&&(mn=$.getProperty(S,y.p),us=$.getProperty(Ae,y.p));ct--;)tt=de[ct],tt.end||tt.refresh(0,1)||(mt=v),gi=tt.pin,gi&&(gi===h||gi===f||gi===qt)&&!tt.isReverted&&(gn||(gn=[]),gn.unshift(tt),tt.revert(!0,!0)),tt!==de[ct]&&(pi--,ct--);for(At(Be)&&(Be=Be(v)),Be=Au(Be,"start",v),U=Vu(Be,h,st,y,ae(),Ge,S,v,me,k,I,We,x,v._startClamp&&"_startClamp")||(f?-.001:0),At(Ee)&&(Ee=Ee(v)),Ht(Ee)&&!Ee.indexOf("+=")&&(~Ee.indexOf(" ")?Ee=(Ht(Be)?Be.split(" ")[0]:"")+Ee:($e=Os(Ee.substr(2),st),Ee=Ht(Be)?Be:(x?$.utils.mapRange(0,x.duration(),x.scrollTrigger.start,x.scrollTrigger.end,U):U)+$e,ui=h)),Ee=Au(Ee,"end",v),he=Math.max(U,Vu(Ee||(ui?"100% 0":We),ui,st,y,ae()+$e,Je,Ae,v,me,k,I,We,x,v._endClamp&&"_endClamp"))||-.001,$e=0,ct=pi;ct--;)tt=de[ct],gi=tt.pin,gi&&tt.start-tt._pinPush<=U&&!x&&tt.end>0&&(ht=tt.end-(v._startClamp?Math.max(0,tt.start):tt.start),(gi===h&&tt.start-tt._pinPush=Ei(P,y)))ht=ei(f),as=y===rt,lr=ae(),ve=parseFloat(ue(y.a))+Le,!We&&he>1&&(mi=(L?Ie.scrollingElement||ci:P).style,mi={style:mi,value:mi["overflow"+y.a.toUpperCase()]},L&&ei(Fe)["overflow"+y.a.toUpperCase()]!=="scroll"&&(mi.style["overflow"+y.a.toUpperCase()]="scroll")),Oo(f,fe,ht),se=ys(f),pt=Bi(f,!0),mo=I&&ar(P,as?Pt:rt)(),g?(H=[g+y.os2,A+Le+it],H.t=fe,ct=g===Ke?Zs(f,y)+A+Le:0,ct&&(H.push(y.d,ct+it),fe.style.flexBasis!=="auto"&&(fe.style.flexBasis=ct+it)),on(H),qt&&de.forEach(function(_n){_n.pin===qt&&_n.vars.pinSpacing!==!1&&(_n._subPinOffset=!0)}),I&&ae(Oe)):(ct=Zs(f,y),ct&&fe.style.flexBasis!=="auto"&&(fe.style.flexBasis=ct+it)),I&&(gt={top:pt.top+(as?lr-U:mo)+it,left:pt.left+(as?mo:lr-U)+it,boxSizing:"border-box",position:"fixed"},gt[Er]=gt["max"+dn]=Math.ceil(pt.width)+it,gt[Sr]=gt["max"+Ga]=Math.ceil(pt.height)+it,gt[Jt]=gt[Jt+$n]=gt[Jt+Vn]=gt[Jt+Hn]=gt[Jt+qn]="0",gt[Ke]=ht[Ke],gt[Ke+$n]=ht[Ke+$n],gt[Ke+Vn]=ht[Ke+Vn],gt[Ke+Hn]=ht[Ke+Hn],gt[Ke+qn]=ht[Ke+qn],J=wd(W,gt,E),Tt&&ae(0)),r?(lu=r._initted,ko(1),r.render(r.duration(),!0,!0),pe=ue(y.a)-ve+A+Le,Nt=Math.abs(A-pe)>1,I&&Nt&&J.splice(J.length-2,2),r.render(0,!0,!0),lu||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),ko(0)):pe=A,mi&&(mi.value?mi.style["overflow"+y.a.toUpperCase()]=mi.value:mi.style.removeProperty("overflow-"+y.a));else if(h&&ae()&&!x)for(pt=h.parentNode;pt&&pt!==Fe;)pt._pinOffset&&(U-=pt._pinOffset,he-=pt._pinOffset),pt=pt.parentNode;gn&&gn.forEach(function(_n){return _n.revert(!1,!0)}),v.start=U,v.end=he,Ce=Ze=Tt?Oe:ae(),!x&&!Tt&&(Ce0?de.slice(0,oe).reverse():de.slice(oe+1);return(Ht(q)?K.filter(function(re){return re.vars.preventOverlaps===q}):K).filter(function(re){return v.direction>0?re.end<=U:re.start>=he})},v.update=function(q,oe,K){if(!(x&&!K&&!q)){var re=Tt===!0?Oe:v.scroll(),st=q?0:(re-U)/A,me=st<0?0:st>1?1:st||0,We=v.progress,dt,$e,Le,Ee,ui,Be,qt,pi;if(oe&&(Ze=Ce,Ce=x?ae():re,D&&(si=Qt,Qt=r&&!B?r.totalProgress():me)),m&&f&&!mt&&!ps&&ri&&(!me&&Ure+(re-Ze)/(Dt()-Sn)*m&&(me=.9999)),me!==We&&v.enabled){if(dt=v.isActive=!!me&&me<1,$e=!!We&&We<1,Be=dt!==$e,ui=Be||!!me!=!!We,v.direction=me>We?1:-1,v.progress=me,ui&&!mt&&(Le=me&&!We?0:me===1?1:We===1?2:3,B&&(Ee=!Be&&V[Le+1]!=="none"&&V[Le+1]||V[Le],pi=r&&(Ee==="complete"||Ee==="reset"||Ee in r))),T&&(Be||pi)&&(pi||p||!r)&&(At(T)?T(v):v.getTrailing(T).forEach(function(lr){return lr.endAnimation()})),B||(ie&&!mt&&!ps?(ie._dp._time-ie._start!==ie._time&&ie.render(ie._dp._time-ie._start),ie.resetTo?ie.resetTo("totalProgress",me,r._tTime/r._tDur):(ie.vars.totalProgress=me,ie.invalidate().restart())):r&&r.totalProgress(me,!!(mt&&(Y||q)))),f){if(q&&g&&(fe.style[g+y.os2]=et),!I)ke(Tn(ve+pe*me));else if(ui){if(qt=!q&&me>We&&he+1>re&&re+1>=Ei(P,y),E)if(!q&&(dt||qt)){var ct=Bi(f,!0),ht=re-U;qu(f,Fe,ct.top+(y===rt?ht:0)+it,ct.left+(y===rt?0:ht)+it)}else qu(f,fe);on(dt||qt?J:se),Nt&&me<1&&dt||ke(ve+(me===1&&!qt?pe:0))}}D&&!be.tween&&!mt&&!ps&&xe.restart(!0),a&&(Be||w&&me&&(me<1||!To))&&rs(a.targets).forEach(function(lr){return lr.classList[dt||w?"add":"remove"](a.className)}),s&&!B&&!q&&s(v),ui&&!mt?(B&&(pi&&(Ee==="complete"?r.pause().totalProgress(1):Ee==="reset"?r.restart(!0).pause():Ee==="restart"?r.restart(!0):r[Ee]()),s&&s(v)),(Be||!To)&&(l&&Be&&Po(v,l),z[Le]&&Po(v,z[Le]),w&&(me===1?v.kill(!1,1):z[Le]=0),Be||(Le=me===1?1:3,z[Le]&&Po(v,z[Le]))),O&&!dt&&Math.abs(v.getVelocity())>(Fn(O)?O:2500)&&(wn(v.callbackAnimation),ie?ie.progress(1):wn(r,Ee==="reverse"?1:!me,1))):B&&s&&!mt&&s(v)}if(zt){var pt=x?re/x.duration()*(x._caScrollDist||0):re;Yi(pt+(S._isFlipped?1:0)),zt(pt)}oi&&oi(-re/x.duration()*(x._caScrollDist||0))}},v.enable=function(q,oe){v.enabled||(v.enabled=!0,at(P,"resize",Pn),L||at(P,"scroll",Hr),Q&&at(o,"refreshInit",Q),q!==!1&&(v.progress=te=0,Ce=Ze=Z=ae()),oe!==!1&&v.refresh())},v.getTween=function(q){return q&&be?be.tween:ie},v.setPositions=function(q,oe,K,re){if(x){var st=x.scrollTrigger,me=x.duration(),We=st.end-st.start;q=st.start+We*q/me,oe=st.start+We*oe/me}v.refresh(!1,!1,{start:Ou(q,K&&!!v._startClamp),end:Ou(oe,K&&!!v._endClamp)},re),v.update()},v.adjustPinSpacing=function(q){if(H&&q){var oe=H.indexOf(y.d)+1;H[oe]=parseFloat(H[oe])+q+it,H[1]=parseFloat(H[1])+q+it,on(H)}},v.disable=function(q,oe){if(v.enabled&&(q!==!1&&v.revert(!0,!0),v.enabled=v.isActive=!1,oe||ie&&ie.pause(),Oe=0,qe&&(qe.uncache=1),Q&&ot(o,"refreshInit",Q),xe&&(xe.pause(),be.tween&&be.tween.kill()&&(be.tween=0)),!L)){for(var K=de.length;K--;)if(de[K].scroller===P&&de[K]!==v)return;ot(P,"resize",Pn),L||ot(P,"scroll",Hr)}},v.kill=function(q,oe){v.disable(q,oe),ie&&!oe&&ie.kill(),u&&delete _a[u];var K=de.indexOf(v);K>=0&&de.splice(K,1),K===kt&&Ms>0&&kt--,K=0,de.forEach(function(re){return re.scroller===v.scroller&&(K=1)}),K||Tt||(v.scroll.rec=0),r&&(r.scrollTrigger=null,q&&r.revert({kill:!1}),oe||r.kill()),Ge&&[Ge,Je,S,Ae].forEach(function(re){return re.parentNode&&re.parentNode.removeChild(re)}),Yn===v&&(Yn=0),f&&(qe&&(qe.uncache=1),K=0,de.forEach(function(re){return re.pin===f&&K++}),K||(qe.spacer=0)),t.onKill&&t.onKill(v)},de.push(v),v.enable(!1,!1),je&&je(v),r&&r.add&&!A){var ye=v.update;v.update=function(){v.update=ye,U||he||v.refresh()},$.delayedCall(.01,v.update),A=.01,U=he=0}else v.refresh();f&&Dd()},o.register=function(t){return Yr||($=t||Ac(),Pc()&&window.document&&o.enable(),Yr=kn),Yr},o.defaults=function(t){if(t)for(var r in t)Ds[r]=t[r];return Ds},o.disable=function(t,r){kn=0,de.forEach(function(s){return s[r?"kill":"disable"](t)}),ot(_e,"wheel",Hr),ot(Ie,"scroll",Hr),clearInterval(ds),ot(Ie,"touchcancel",yi),ot(Fe,"touchstart",yi),ms(ot,Ie,"pointerdown,touchstart,mousedown",Lu),ms(ot,Ie,"pointerup,touchend,mouseup",Mu),Ks.kill(),gs(ot);for(var n=0;n0&&s.left+a<_e.innerWidth:s.bottom-a>0&&s.top+a<_e.innerHeight},o.positionInViewport=function(t,r,n){Ht(t)&&(t=Ot(t));var s=t.getBoundingClientRect(),a=s[n?Er:Sr],u=r==null?a/2:r in Js?Js[r]*a:~r.indexOf("%")?parseFloat(r)*a/100:parseFloat(r)||0;return n?(s.left+u)/_e.innerWidth:(s.top+u)/_e.innerHeight},o.killAll=function(t){if(de.slice(0).forEach(function(n){return n.vars.id!=="ScrollSmoother"&&n.kill()}),t!==!0){var r=Mr.killAll||[];Mr={},r.forEach(function(n){return n()})}},o}();ce.version="3.12.5";ce.saveStyles=function(o){return o?rs(o).forEach(function(e){if(e&&e.style){var i=$t.indexOf(e);i>=0&&$t.splice(i,5),$t.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),$.core.getCache(e),ga())}}):$t};ce.revert=function(o,e){return Ka(!o,e)};ce.create=function(o,e){return new ce(o,e)};ce.refresh=function(o){return o?Pn():(Yr||ce.register())&&yr(!0)};ce.update=function(o){return++ge.cache&&qi(o===!0?2:0)};ce.clearScrollMemory=zc;ce.maxScroll=function(o,e){return Ei(o,e?Pt:rt)};ce.getScrollFunc=function(o,e){return ar(Ot(o),e?Pt:rt)};ce.getById=function(o){return _a[o]};ce.getAll=function(){return de.filter(function(o){return o.vars.id!=="ScrollSmoother"})};ce.isScrolling=function(){return!!ri};ce.snapDirectional=ja;ce.addEventListener=function(o,e){var i=Mr[o]||(Mr[o]=[]);~i.indexOf(e)||i.push(e)};ce.removeEventListener=function(o,e){var i=Mr[o],t=i&&i.indexOf(e);t>=0&&i.splice(t,1)};ce.batch=function(o,e){var i=[],t={},r=e.interval||.016,n=e.batchMax||1e9,s=function(l,c){var p=[],h=[],f=$.delayedCall(r,function(){c(p,h),p=[],h=[]}).pause();return function(g){p.length||f.restart(!0),p.push(g.trigger),h.push(g),n<=p.length&&f.progress(1)}},a;for(a in e)t[a]=a.substr(0,2)==="on"&&At(e[a])&&a!=="onRefreshInit"?s(a,e[a]):e[a];return At(n)&&(n=n(),at(ce,"refresh",function(){return n=e.batchMax()})),rs(o).forEach(function(u){var l={};for(a in t)l[a]=t[a];l.trigger=u,i.push(ce.create(l))}),i};var Hu=function(e,i,t,r){return i>r?e(r):i<0&&e(0),t>r?(r-i)/(t-i):t<0?i/(i-t):1},Lo=function o(e,i){i===!0?e.style.removeProperty("touch-action"):e.style.touchAction=i===!0?"auto":i?"pan-"+i+(ze.isTouch?" pinch-zoom":""):"none",e===ci&&o(Fe,i)},xs={auto:1,scroll:1},bd=function(e){var i=e.event,t=e.target,r=e.axis,n=(i.changedTouches?i.changedTouches[0]:i).target,s=n._gsap||$.core.getCache(n),a=Dt(),u;if(!s._isScrollT||a-s._isScrollT>2e3){for(;n&&n!==Fe&&(n.scrollHeight<=n.clientHeight&&n.scrollWidth<=n.clientWidth||!(xs[(u=ei(n)).overflowY]||xs[u.overflowX]));)n=n.parentNode;s._isScroll=n&&n!==t&&!Lr(n)&&(xs[(u=ei(n)).overflowY]||xs[u.overflowX]),s._isScrollT=a}(s._isScroll||r==="x")&&(i.stopPropagation(),i._gsapAllow=!0)},$c=function(e,i,t,r){return ze.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:i,onWheel:r=r&&bd,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return t&&at(Ie,ze.eventTypes[0],Xu,!1,!0)},onDisable:function(){return ot(Ie,ze.eventTypes[0],Xu,!0)}})},Cd=/(input|label|select|textarea)/i,Yu,Xu=function(e){var i=Cd.test(e.target.tagName);(i||Yu)&&(e._gsapAllow=!0,Yu=i)},Ed=function(e){pr(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var i=e,t=i.normalizeScrollX,r=i.momentum,n=i.allowNestedScroll,s=i.onRelease,a,u,l=Ot(e.target)||ci,c=$.core.globals().ScrollSmoother,p=c&&c.get(),h=Wi&&(e.content&&Ot(e.content)||p&&e.content!==!1&&!p.smooth()&&p.content()),f=ar(l,rt),g=ar(l,Pt),d=1,m=(ze.isTouch&&_e.visualViewport?_e.visualViewport.scale*_e.visualViewport.width:_e.outerWidth)/_e.innerWidth,_=0,C=At(r)?function(){return r(a)}:function(){return r||2.8},w,D,E=$c(l,e.type,!0,n),F=function(){return D=!1},x=yi,O=yi,T=function(){u=Ei(l,rt),O=zn(Wi?1:0,u),t&&(x=zn(0,Ei(l,Pt))),w=kr},y=function(){h._gsap.y=Tn(parseFloat(h._gsap.y)+f.offset)+"px",h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(h._gsap.y)+", 0, 1)",f.offset=f.cacheID=0},B=function(){if(D){requestAnimationFrame(F);var G=Tn(a.deltaY/2),k=O(f.v-G);if(h&&k!==f.v+f.offset){f.offset=k-f.v;var v=Tn((parseFloat(h&&h._gsap.y)||0)-f.offset);h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+v+", 0, 1)",h._gsap.y=v+"px",f.cacheID=ge.cache,qi()}return!0}f.offset&&y(),D=!0},P,N,L,I,z=function(){T(),P.isActive()&&P.vars.scrollY>u&&(f()>u?P.progress(1)&&f(u):P.resetTo("scrollY",u))};return h&&$.set(h,{y:"+=0"}),e.ignoreCheck=function(V){return Wi&&V.type==="touchmove"&&B()||d>1.05&&V.type!=="touchstart"||a.isGesturing||V.touches&&V.touches.length>1},e.onPress=function(){D=!1;var V=d;d=Tn((_e.visualViewport&&_e.visualViewport.scale||1)/m),P.pause(),V!==d&&Lo(l,d>1.01?!0:t?!1:"x"),N=g(),L=f(),T(),w=kr},e.onRelease=e.onGestureStart=function(V,G){if(f.offset&&y(),!G)I.restart(!0);else{ge.cache++;var k=C(),v,Q;t&&(v=g(),Q=v+k*.05*-V.velocityX/.227,k*=Hu(g,v,Q,Ei(l,Pt)),P.vars.scrollX=x(Q)),v=f(),Q=v+k*.05*-V.velocityY/.227,k*=Hu(f,v,Q,Ei(l,rt)),P.vars.scrollY=O(Q),P.invalidate().duration(k).play(.01),(Wi&&P.vars.scrollY>=u||v>=u-1)&&$.to({},{onUpdate:z,duration:k})}s&&s(V)},e.onWheel=function(){P._ts&&P.pause(),Dt()-_>1e3&&(w=0,_=Dt())},e.onChange=function(V,G,k,v,Q){if(kr!==w&&T(),G&&t&&g(x(v[2]===G?N+(V.startX-V.x):g()+G-v[1])),k){f.offset&&y();var ne=Q[2]===k,Ve=ne?L+V.startY-V.y:f()+k-Q[1],Z=O(Ve);ne&&Ve!==Z&&(L+=Z-Ve),f(Z)}(k||G)&&qi()},e.onEnable=function(){Lo(l,t?!1:"x"),ce.addEventListener("refresh",z),at(_e,"resize",z),f.smooth&&(f.target.style.scrollBehavior="auto",f.smooth=g.smooth=!1),E.enable()},e.onDisable=function(){Lo(l,!0),ot(_e,"resize",z),ce.removeEventListener("refresh",z),E.kill()},e.lockAxis=e.lockAxis!==!1,a=new ze(e),a.iOS=Wi,Wi&&!f()&&f(1),Wi&&$.ticker.add(yi),I=a._dc,P=$.to(a,{ease:"power4",paused:!0,inherit:!1,scrollX:t?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:qc(f,f(),function(){return P.pause()})},onUpdate:qi,onComplete:I.vars.onComplete}),a};ce.sort=function(o){return de.sort(o||function(e,i){return(e.vars.refreshPriority||0)*-1e6+e.start-(i.start+(i.vars.refreshPriority||0)*-1e6)})};ce.observe=function(o){return new ze(o)};ce.normalizeScroll=function(o){if(typeof o>"u")return St;if(o===!0&&St)return St.enable();if(o===!1){St&&St.kill(),St=o;return}var e=o instanceof ze?o:Ed(o);return St&&St.target===e.target&&St.kill(),Lr(e.target)&&(St=e),e};ce.core={_getVelocityProp:fa,_inputObserver:$c,_scrollers:ge,_proxies:Fi,bridge:{ss:function(){ri||Br("scrollStart"),ri=Dt()},ref:function(){return mt}}};Ac()&&$.registerPlugin(ce);function Sd(o,e){for(var i=0;i-1);return t["_"+i+"Clamp"]=r,r?e.substr(6,e.length-7):e},Ou=function(e,i){return i&&(!Ht(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},hd=function o(){return kn&&requestAnimationFrame(o)},Lu=function(){return lo=1},Mu=function(){return lo=0},yi=function(e){return e},Tn=function(e){return Math.round(e*1e5)/1e5||0},Pc=function(){return typeof window<"u"},Ac=function(){return $||Pc()&&($=window.gsap)&&$.registerPlugin&&$},Or=function(e){return!!~Ec.indexOf(e)},Oc=function(e){return(e==="Height"?Xa:me["inner"+e])||ci["client"+e]||Fe["client"+e]},Lc=function(e){return rr(e,"getBoundingClientRect")||(Or(e)?function(){return Is.width=me.innerWidth,Is.height=Xa,Is}:function(){return Bi(e)})},fd=function(e,i,t){var r=t.d,n=t.d2,s=t.a;return(s=rr(e,"getBoundingClientRect"))?function(){return s()[r]}:function(){return(i?Oc(n):e["client"+n])||0}},dd=function(e,i){return!i||~Fi.indexOf(e)?Lc(e):function(){return Is}},Ei=function(e,i){var t=i.s,r=i.d2,n=i.d,s=i.a;return Math.max(0,(t="scroll"+r)&&(s=rr(e,t))?s()-Lc(e)()[n]:Or(e)?(ci[t]||Fe[t])-Oc(r):e[t]-e["offset"+r])},gs=function(e,i){for(var t=0;t0){for(r-=s,a=0;a=r)return t[a];return t[a-1]}else for(a=t.length,r+=s;a--;)if(t[a]<=r)return t[a];return t[0]}:function(r,n,s){s===void 0&&(s=.001);var a=i(r);return!n||Math.abs(a-r)t&&(r*=i/100),e=e.substr(0,t-1)),e=r+(e in Js?Js[e]*i:~e.indexOf("%")?parseFloat(e)*i/100:parseFloat(e)||0)}return e},vs=function(e,i,t,r,n,s,a,u){var l=n.startColor,c=n.endColor,p=n.fontSize,h=n.indent,f=n.fontWeight,g=Ie.createElement("div"),d=Or(t)||rr(t,"pinType")==="fixed",_=e.indexOf("scroller")!==-1,m=d?Fe:t,C=e.indexOf("start")!==-1,w=C?l:c,D="border-color:"+w+";font-size:"+p+";color:"+w+";font-weight:"+f+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return D+="position:"+((_||u)&&d?"fixed;":"absolute;"),(_||u||!d)&&(D+=(r===rt?Wa:Ua)+":"+(s+parseFloat(h))+"px;"),a&&(D+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),g._isStart=C,g.setAttribute("class","gsap-marker-"+e+(i?" marker-"+i:"")),g.style.cssText=D,g.innerText=i||i===0?e+"-"+i:e,m.children[0]?m.insertBefore(g,m.children[0]):m.appendChild(g),g._offset=g["offset"+r.op.d2],Ls(g,0,r,C),g},Ls=function(e,i,t,r){var n={display:"block"},s=t[r?"os2":"p2"],a=t[r?"p2":"os2"];e._isFlipped=r,n[t.a+"Percent"]=r?-100:0,n[t.a]=r?"1px":0,n["border"+s+dn]=1,n["border"+a+dn]=0,n[t.p]=i+"px",$.set(e,n)},de=[],ma={},ns,Ru=function(){return Dt()-ri>34&&(ns||(ns=requestAnimationFrame(Vi)))},Hr=function(){(!St||!St.isPressed||St.startX>Fe.clientWidth)&&(ge.cache++,St?ns||(ns=requestAnimationFrame(Vi)):Vi(),ri||Mr("scrollStart"),ri=Dt())},Ao=function(){Fc=me.innerWidth,Tc=me.innerHeight},Pn=function(){ge.cache++,!_t&&!kc&&!Ie.fullscreenElement&&!Ie.webkitFullscreenElement&&(!pa||Fc!==me.innerWidth||Math.abs(me.innerHeight-Tc)>me.innerHeight*.25)&&Ks.restart(!0)},Lr={},md=[],Rc=function o(){return ot(ce,"scrollEnd",o)||vr(!0)},Mr=function(e){return Lr[e]&&Lr[e].map(function(i){return i()})||md},$t=[],Nc=function(e){for(var i=0;i<$t.length;i+=5)(!e||$t[i+4]&&$t[i+4].query===e)&&($t[i].style.cssText=$t[i+1],$t[i].getBBox&&$t[i].setAttribute("transform",$t[i+2]||""),$t[i+3].uncache=1)},Ka=function(e,i){var t;for(kt=0;ktn,a=r._startClamp&&r.start>=n;(s||a)&&r.setPositions(a?n-1:r.start,s?Math.max(a?n:r.start+1,n):r.end,!0)}),zu(!1),_a=0,t.forEach(function(r){return r&&r.render&&r.render(-1)}),ge.forEach(function(r){At(r)&&(r.smooth&&requestAnimationFrame(function(){return r.target.style.scrollBehavior="smooth"}),r.rec&&r(r.rec))}),zc(Ya,1),Ks.pause(),Sr++,Tt=2,Vi(2),de.forEach(function(r){return At(r.vars.onRefresh)&&r.vars.onRefresh(r)}),Tt=ce.isRefreshing=!1,Mr("refresh")},Da=0,Ms=1,Yn,Vi=function(e){if(e===2||!Tt&&!Qs){ce.isUpdating=!0,Yn&&Yn.update(0);var i=de.length,t=Dt(),r=t-Fo>=50,n=i&&de[0].scroll();if(Ms=Da>n?-1:1,Tt||(Da=n),r&&(ri&&!lo&&t-ri>200&&(ri=0,Mr("scrollEnd")),Sn=Fo,Fo=t),Ms<0){for(kt=i;kt-- >0;)de[kt]&&de[kt].update(0,r);Ms=1}else for(kt=0;kt20),t-=t-F}if(g&&(u[g]=e||-.001,e<0&&(e=0)),s){var O=e+t,T=s._isStart;_="scroll"+r.d2,Ls(s,O,r,T&&O>20||!T&&(p?Math.max(Fe[_],ci[_]):s.parentNode[_])<=O+1),p&&(l=Bi(a),p&&(s.style[r.op.p]=l[r.op.p]-r.op.m-s._offset+it))}return f&&C&&(_=Bi(C),f.seek(h),m=Bi(C),f._caScrollDist=_[r.p]-m[r.p],e=e/f._caScrollDist*h),f&&f.seek(d),f?e:Math.round(e)},xd=/(webkit|moz|length|cssText|inset)/i,qu=function(e,i,t,r){if(e.parentNode!==i){var n=e.style,s,a;if(i===Fe){e._stOrig=n.cssText,a=ei(e);for(s in a)!+s&&!xd.test(s)&&a[s]&&typeof n[s]=="string"&&s!=="0"&&(n[s]=a[s]);n.top=t,n.left=r}else n.cssText=e._stOrig;$.core.getCache(e).uncache=1,i.appendChild(e)}},qc=function(e,i,t){var r=i,n=r;return function(s){var a=Math.round(e());return a!==r&&a!==n&&Math.abs(a-r)>3&&Math.abs(a-n)>3&&(s=a,t&&t()),n=r,r=s,s}},ws=function(e,i,t){var r={};r[i.p]="+="+t,$.set(e,r)},$u=function(e,i){var t=or(e,i),r="_scroll"+i.p2,n=function s(a,u,l,c,p){var h=s.tween,f=u.onComplete,g={};l=l||t();var d=qc(t,l,function(){h.kill(),s.tween=0});return p=c&&p||0,c=c||a-l,h&&h.kill(),u[r]=a,u.inherit=!1,u.modifiers=g,g[r]=function(){return d(l+c*h.ratio+p*h.ratio*h.ratio)},u.onUpdate=function(){ge.cache++,s.tween&&Vi()},u.onComplete=function(){s.tween=0,f&&f.call(h)},h=s.tween=$.to(e,u),h};return e[r]=t,t.wheelHandler=function(){return n.tween&&n.tween.kill()&&(n.tween=0)},at(e,"wheel",t.wheelHandler),ce.isTouch&&at(e,"touchmove",t.wheelHandler),n},ce=function(){function o(i,t){Yr||o.register($)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),ga(this),this.init(i,t)}var e=o.prototype;return e.init=function(t,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!kn){this.update=this.refresh=this.kill=yi;return}t=Bu(Ht(t)||Fn(t)||t.nodeType?{trigger:t}:t,Ds);var n=t,s=n.onUpdate,a=n.toggleClass,u=n.id,l=n.onToggle,c=n.onRefresh,p=n.scrub,h=n.trigger,f=n.pin,g=n.pinSpacing,d=n.invalidateOnRefresh,_=n.anticipatePin,m=n.onScrubComplete,C=n.onSnapComplete,w=n.once,D=n.snap,E=n.pinReparent,F=n.pinSpacer,x=n.containerAnimation,O=n.fastScrollEnd,T=n.preventOverlaps,y=t.horizontal||t.containerAnimation&&t.horizontal!==!1?Pt:rt,M=!p&&p!==0,P=Ot(t.scroller||me),N=$.core.getCache(P),L=Or(P),B=("pinType"in t?t.pinType:rr(P,"pinType")||L&&"fixed")==="fixed",z=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],V=M&&t.toggleActions.split(" "),G="markers"in t?t.markers:Ds.markers,k=L?0:parseFloat(ei(P)["border"+y.p2+dn])||0,v=this,Q=t.onRefreshInit&&function(){return t.onRefreshInit(v)},ne=fd(P,L,y),Ve=dd(P,L),Z=0,Y=0,te=0,ae=or(P,y),be,qe,Ye,Ce,Ze,U,he,Ge,Je,S,Ae,I,b,A,W,J,se,fe,Xe,ue,ke,ve,pe,et,H,Hi,Nt,zt,Oi,Qt,si,ie,di,nt,xe,Oe,Vt,oi,je;if(v._startClamp=v._endClamp=!1,v._dir=y,_*=45,v.scroller=P,v.scroll=x?x.time.bind(x):ae,Ce=ae(),v.vars=t,r=r||t.animation,"refreshPriority"in t&&(Sc=1,t.refreshPriority===-9999&&(Yn=v)),N.tweenScroll=N.tweenScroll||{top:$u(P,rt),left:$u(P,Pt)},v.tweenTo=be=N.tweenScroll[y.p],v.scrubDuration=function(q){di=Fn(q)&&q,di?ie?ie.duration(q):ie=$.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:di,paused:!0,onComplete:function(){return m&&m(v)}}):(ie&&ie.progress(1).kill(),ie=0)},r&&(r.vars.lazy=!1,r._initted&&!v.isReverted||r.vars.immediateRender!==!1&&t.immediateRender!==!1&&r.duration()&&r.render(0,!0,!0),v.animation=r.pause(),r.scrollTrigger=v,v.scrubDuration(p),Qt=0,u||(u=r.vars.id)),D&&((!dr(D)||D.push)&&(D={snapTo:D}),"scrollBehavior"in Fe.style&&$.set(L?[Fe,ci]:P,{scrollBehavior:"auto"}),ge.forEach(function(q){return At(q)&&q.target===(L?Ie.scrollingElement||ci:P)&&(q.smooth=!1)}),Ye=At(D.snapTo)?D.snapTo:D.snapTo==="labels"?gd(r):D.snapTo==="labelsDirectional"?_d(r):D.directional!==!1?function(q,oe){return ja(D.snapTo)(q,Dt()-Y<500?0:oe.direction)}:$.utils.snap(D.snapTo),nt=D.duration||{min:.1,max:2},nt=dr(nt)?zn(nt.min,nt.max):zn(nt,nt),xe=$.delayedCall(D.delay||di/2||.1,function(){var q=ae(),oe=Dt()-Y<500,K=be.tween;if((oe||Math.abs(v.getVelocity())<10)&&!K&&!lo&&Z!==q){var re=(q-U)/A,st=r&&!M?r.totalProgress():re,_e=oe?0:(st-si)/(Dt()-Sn)*1e3||0,We=$.utils.clamp(-re,1-re,$r(_e/2)*_e/.185),dt=re+(D.inertia===!1?0:We),$e,Le,Ee=D,ui=Ee.onStart,Be=Ee.onInterrupt,qt=Ee.onComplete;if($e=Ye(dt,v),Fn($e)||($e=dt),Le=Math.round(U+$e*A),q<=he&&q>=U&&Le!==q){if(K&&!K._initted&&K.data<=$r(Le-q))return;D.inertia===!1&&(We=$e-re),be(Le,{duration:nt($r(Math.max($r(dt-st),$r($e-st))*.185/_e/.05||0)),ease:D.ease||"power3",data:$r(Le-q),onInterrupt:function(){return xe.restart(!0)&&Be&&Be(v)},onComplete:function(){v.update(),Z=ae(),r&&(ie?ie.resetTo("totalProgress",$e,r._tTime/r._tDur):r.progress($e)),Qt=si=r&&!M?r.totalProgress():v.progress,C&&C(v),qt&&qt(v)}},q,We*A,Le-q-We*A),ui&&ui(v,be.tween)}}else v.isActive&&Z!==q&&xe.restart(!0)}).pause()),u&&(ma[u]=v),h=v.trigger=Ot(h||f!==!0&&f),je=h&&h._gsap&&h._gsap.stRevert,je&&(je=je(v)),f=f===!0?h:Ot(f),Ht(a)&&(a={targets:h,className:a}),f&&(g===!1||g===Jt||(g=!g&&f.parentNode&&f.parentNode.style&&ei(f.parentNode).display==="flex"?!1:Ke),v.pin=f,qe=$.core.getCache(f),qe.spacer?W=qe.pinState:(F&&(F=Ot(F),F&&!F.nodeType&&(F=F.current||F.nativeElement),qe.spacerIsNative=!!F,F&&(qe.spacerState=ys(F))),qe.spacer=fe=F||Ie.createElement("div"),fe.classList.add("pin-spacer"),u&&fe.classList.add("pin-spacer-"+u),qe.pinState=W=ys(f)),t.force3D!==!1&&$.set(f,{force3D:!0}),v.spacer=fe=qe.spacer,Oi=ei(f),et=Oi[g+y.os2],ue=$.getProperty(f),ke=$.quickSetter(f,y.a,it),Oo(f,fe,Oi),se=ys(f)),G){I=dr(G)?Bu(G,Iu):Iu,S=vs("scroller-start",u,P,y,I,0),Ae=vs("scroller-end",u,P,y,I,0,S),Xe=S["offset"+y.op.d2];var ai=Ot(rr(P,"content")||P);Ge=this.markerStart=vs("start",u,ai,y,I,Xe,0,x),Je=this.markerEnd=vs("end",u,ai,y,I,Xe,0,x),x&&(oi=$.quickSetter([Ge,Je],y.a,it)),!B&&!(Fi.length&&rr(P,"fixedMarkers")===!0)&&(pd(L?Fe:P),$.set([S,Ae],{force3D:!0}),Hi=$.quickSetter(S,y.a,it),zt=$.quickSetter(Ae,y.a,it))}if(x){var ee=x.vars.onUpdate,j=x.vars.onUpdateParams;x.eventCallback("onUpdate",function(){v.update(0,0,1),ee&&ee.apply(x,j||[])})}if(v.previous=function(){return de[de.indexOf(v)-1]},v.next=function(){return de[de.indexOf(v)+1]},v.revert=function(q,oe){if(!oe)return v.kill(!0);var K=q!==!1||!v.enabled,re=_t;K!==v.isReverted&&(K&&(Oe=Math.max(ae(),v.scroll.rec||0),te=v.progress,Vt=r&&r.progress()),Ge&&[Ge,Je,S,Ae].forEach(function(st){return st.style.display=K?"none":"block"}),K&&(_t=v,v.update(K)),f&&(!E||!v.isActive)&&(K?vd(f,fe,W):Oo(f,fe,ei(f),H)),K||v.update(K),_t=re,v.isReverted=K)},v.refresh=function(q,oe,K,re){if(!((_t||!v.enabled)&&!oe)){if(f&&q&&ri){at(o,"scrollEnd",Rc);return}!Tt&&Q&&Q(v),_t=v,be.tween&&!K&&(be.tween.kill(),be.tween=0),ie&&ie.pause(),d&&r&&r.revert({kill:!1}).invalidate(),v.isReverted||v.revert(!0,!0),v._subPinOffset=!1;var st=ne(),_e=Ve(),We=x?x.duration():Ei(P,y),dt=A<=.01,$e=0,Le=re||0,Ee=dr(K)?K.end:t.end,ui=t.endTrigger||h,Be=dr(K)?K.start:t.start||(t.start===0||!h?0:f?"0 0":"0 100%"),qt=v.pinnedContainer=t.pinnedContainer&&Ot(t.pinnedContainer,v),pi=h&&Math.max(0,de.indexOf(v))||0,ct=pi,ht,pt,ur,as,gt,tt,gi,_o,lu,gn,_i,_n,us;for(G&&dr(K)&&(_n=$.getProperty(S,y.p),us=$.getProperty(Ae,y.p));ct--;)tt=de[ct],tt.end||tt.refresh(0,1)||(_t=v),gi=tt.pin,gi&&(gi===h||gi===f||gi===qt)&&!tt.isReverted&&(gn||(gn=[]),gn.unshift(tt),tt.revert(!0,!0)),tt!==de[ct]&&(pi--,ct--);for(At(Be)&&(Be=Be(v)),Be=Au(Be,"start",v),U=Vu(Be,h,st,y,ae(),Ge,S,v,_e,k,B,We,x,v._startClamp&&"_startClamp")||(f?-.001:0),At(Ee)&&(Ee=Ee(v)),Ht(Ee)&&!Ee.indexOf("+=")&&(~Ee.indexOf(" ")?Ee=(Ht(Be)?Be.split(" ")[0]:"")+Ee:($e=Os(Ee.substr(2),st),Ee=Ht(Be)?Be:(x?$.utils.mapRange(0,x.duration(),x.scrollTrigger.start,x.scrollTrigger.end,U):U)+$e,ui=h)),Ee=Au(Ee,"end",v),he=Math.max(U,Vu(Ee||(ui?"100% 0":We),ui,st,y,ae()+$e,Je,Ae,v,_e,k,B,We,x,v._endClamp&&"_endClamp"))||-.001,$e=0,ct=pi;ct--;)tt=de[ct],gi=tt.pin,gi&&tt.start-tt._pinPush<=U&&!x&&tt.end>0&&(ht=tt.end-(v._startClamp?Math.max(0,tt.start):tt.start),(gi===h&&tt.start-tt._pinPush=Ei(P,y)))ht=ei(f),as=y===rt,ur=ae(),ve=parseFloat(ue(y.a))+Le,!We&&he>1&&(_i=(L?Ie.scrollingElement||ci:P).style,_i={style:_i,value:_i["overflow"+y.a.toUpperCase()]},L&&ei(Fe)["overflow"+y.a.toUpperCase()]!=="scroll"&&(_i.style["overflow"+y.a.toUpperCase()]="scroll")),Oo(f,fe,ht),se=ys(f),pt=Bi(f,!0),_o=B&&or(P,as?Pt:rt)(),g?(H=[g+y.os2,A+Le+it],H.t=fe,ct=g===Ke?Zs(f,y)+A+Le:0,ct&&(H.push(y.d,ct+it),fe.style.flexBasis!=="auto"&&(fe.style.flexBasis=ct+it)),on(H),qt&&de.forEach(function(mn){mn.pin===qt&&mn.vars.pinSpacing!==!1&&(mn._subPinOffset=!0)}),B&&ae(Oe)):(ct=Zs(f,y),ct&&fe.style.flexBasis!=="auto"&&(fe.style.flexBasis=ct+it)),B&&(gt={top:pt.top+(as?ur-U:_o)+it,left:pt.left+(as?_o:ur-U)+it,boxSizing:"border-box",position:"fixed"},gt[Cr]=gt["max"+dn]=Math.ceil(pt.width)+it,gt[Er]=gt["max"+Ga]=Math.ceil(pt.height)+it,gt[Jt]=gt[Jt+$n]=gt[Jt+Vn]=gt[Jt+Hn]=gt[Jt+qn]="0",gt[Ke]=ht[Ke],gt[Ke+$n]=ht[Ke+$n],gt[Ke+Vn]=ht[Ke+Vn],gt[Ke+Hn]=ht[Ke+Hn],gt[Ke+qn]=ht[Ke+qn],J=wd(W,gt,E),Tt&&ae(0)),r?(lu=r._initted,ko(1),r.render(r.duration(),!0,!0),pe=ue(y.a)-ve+A+Le,Nt=Math.abs(A-pe)>1,B&&Nt&&J.splice(J.length-2,2),r.render(0,!0,!0),lu||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),ko(0)):pe=A,_i&&(_i.value?_i.style["overflow"+y.a.toUpperCase()]=_i.value:_i.style.removeProperty("overflow-"+y.a));else if(h&&ae()&&!x)for(pt=h.parentNode;pt&&pt!==Fe;)pt._pinOffset&&(U-=pt._pinOffset,he-=pt._pinOffset),pt=pt.parentNode;gn&&gn.forEach(function(mn){return mn.revert(!1,!0)}),v.start=U,v.end=he,Ce=Ze=Tt?Oe:ae(),!x&&!Tt&&(Ce0?de.slice(0,oe).reverse():de.slice(oe+1);return(Ht(q)?K.filter(function(re){return re.vars.preventOverlaps===q}):K).filter(function(re){return v.direction>0?re.end<=U:re.start>=he})},v.update=function(q,oe,K){if(!(x&&!K&&!q)){var re=Tt===!0?Oe:v.scroll(),st=q?0:(re-U)/A,_e=st<0?0:st>1?1:st||0,We=v.progress,dt,$e,Le,Ee,ui,Be,qt,pi;if(oe&&(Ze=Ce,Ce=x?ae():re,D&&(si=Qt,Qt=r&&!M?r.totalProgress():_e)),_&&f&&!_t&&!ps&&ri&&(!_e&&Ure+(re-Ze)/(Dt()-Sn)*_&&(_e=.9999)),_e!==We&&v.enabled){if(dt=v.isActive=!!_e&&_e<1,$e=!!We&&We<1,Be=dt!==$e,ui=Be||!!_e!=!!We,v.direction=_e>We?1:-1,v.progress=_e,ui&&!_t&&(Le=_e&&!We?0:_e===1?1:We===1?2:3,M&&(Ee=!Be&&V[Le+1]!=="none"&&V[Le+1]||V[Le],pi=r&&(Ee==="complete"||Ee==="reset"||Ee in r))),T&&(Be||pi)&&(pi||p||!r)&&(At(T)?T(v):v.getTrailing(T).forEach(function(ur){return ur.endAnimation()})),M||(ie&&!_t&&!ps?(ie._dp._time-ie._start!==ie._time&&ie.render(ie._dp._time-ie._start),ie.resetTo?ie.resetTo("totalProgress",_e,r._tTime/r._tDur):(ie.vars.totalProgress=_e,ie.invalidate().restart())):r&&r.totalProgress(_e,!!(_t&&(Y||q)))),f){if(q&&g&&(fe.style[g+y.os2]=et),!B)ke(Tn(ve+pe*_e));else if(ui){if(qt=!q&&_e>We&&he+1>re&&re+1>=Ei(P,y),E)if(!q&&(dt||qt)){var ct=Bi(f,!0),ht=re-U;qu(f,Fe,ct.top+(y===rt?ht:0)+it,ct.left+(y===rt?0:ht)+it)}else qu(f,fe);on(dt||qt?J:se),Nt&&_e<1&&dt||ke(ve+(_e===1&&!qt?pe:0))}}D&&!be.tween&&!_t&&!ps&&xe.restart(!0),a&&(Be||w&&_e&&(_e<1||!To))&&rs(a.targets).forEach(function(ur){return ur.classList[dt||w?"add":"remove"](a.className)}),s&&!M&&!q&&s(v),ui&&!_t?(M&&(pi&&(Ee==="complete"?r.pause().totalProgress(1):Ee==="reset"?r.restart(!0).pause():Ee==="restart"?r.restart(!0):r[Ee]()),s&&s(v)),(Be||!To)&&(l&&Be&&Po(v,l),z[Le]&&Po(v,z[Le]),w&&(_e===1?v.kill(!1,1):z[Le]=0),Be||(Le=_e===1?1:3,z[Le]&&Po(v,z[Le]))),O&&!dt&&Math.abs(v.getVelocity())>(Fn(O)?O:2500)&&(wn(v.callbackAnimation),ie?ie.progress(1):wn(r,Ee==="reverse"?1:!_e,1))):M&&s&&!_t&&s(v)}if(zt){var pt=x?re/x.duration()*(x._caScrollDist||0):re;Hi(pt+(S._isFlipped?1:0)),zt(pt)}oi&&oi(-re/x.duration()*(x._caScrollDist||0))}},v.enable=function(q,oe){v.enabled||(v.enabled=!0,at(P,"resize",Pn),L||at(P,"scroll",Hr),Q&&at(o,"refreshInit",Q),q!==!1&&(v.progress=te=0,Ce=Ze=Z=ae()),oe!==!1&&v.refresh())},v.getTween=function(q){return q&&be?be.tween:ie},v.setPositions=function(q,oe,K,re){if(x){var st=x.scrollTrigger,_e=x.duration(),We=st.end-st.start;q=st.start+We*q/_e,oe=st.start+We*oe/_e}v.refresh(!1,!1,{start:Ou(q,K&&!!v._startClamp),end:Ou(oe,K&&!!v._endClamp)},re),v.update()},v.adjustPinSpacing=function(q){if(H&&q){var oe=H.indexOf(y.d)+1;H[oe]=parseFloat(H[oe])+q+it,H[1]=parseFloat(H[1])+q+it,on(H)}},v.disable=function(q,oe){if(v.enabled&&(q!==!1&&v.revert(!0,!0),v.enabled=v.isActive=!1,oe||ie&&ie.pause(),Oe=0,qe&&(qe.uncache=1),Q&&ot(o,"refreshInit",Q),xe&&(xe.pause(),be.tween&&be.tween.kill()&&(be.tween=0)),!L)){for(var K=de.length;K--;)if(de[K].scroller===P&&de[K]!==v)return;ot(P,"resize",Pn),L||ot(P,"scroll",Hr)}},v.kill=function(q,oe){v.disable(q,oe),ie&&!oe&&ie.kill(),u&&delete ma[u];var K=de.indexOf(v);K>=0&&de.splice(K,1),K===kt&&Ms>0&&kt--,K=0,de.forEach(function(re){return re.scroller===v.scroller&&(K=1)}),K||Tt||(v.scroll.rec=0),r&&(r.scrollTrigger=null,q&&r.revert({kill:!1}),oe||r.kill()),Ge&&[Ge,Je,S,Ae].forEach(function(re){return re.parentNode&&re.parentNode.removeChild(re)}),Yn===v&&(Yn=0),f&&(qe&&(qe.uncache=1),K=0,de.forEach(function(re){return re.pin===f&&K++}),K||(qe.spacer=0)),t.onKill&&t.onKill(v)},de.push(v),v.enable(!1,!1),je&&je(v),r&&r.add&&!A){var ye=v.update;v.update=function(){v.update=ye,U||he||v.refresh()},$.delayedCall(.01,v.update),A=.01,U=he=0}else v.refresh();f&&Dd()},o.register=function(t){return Yr||($=t||Ac(),Pc()&&window.document&&o.enable(),Yr=kn),Yr},o.defaults=function(t){if(t)for(var r in t)Ds[r]=t[r];return Ds},o.disable=function(t,r){kn=0,de.forEach(function(s){return s[r?"kill":"disable"](t)}),ot(me,"wheel",Hr),ot(Ie,"scroll",Hr),clearInterval(ds),ot(Ie,"touchcancel",yi),ot(Fe,"touchstart",yi),_s(ot,Ie,"pointerdown,touchstart,mousedown",Lu),_s(ot,Ie,"pointerup,touchend,mouseup",Mu),Ks.kill(),gs(ot);for(var n=0;n0&&s.left+a0&&s.top+a=0&&$t.splice(i,5),$t.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),$.core.getCache(e),ga())}}):$t};ce.revert=function(o,e){return Ka(!o,e)};ce.create=function(o,e){return new ce(o,e)};ce.refresh=function(o){return o?Pn():(Yr||ce.register())&&vr(!0)};ce.update=function(o){return++ge.cache&&Vi(o===!0?2:0)};ce.clearScrollMemory=zc;ce.maxScroll=function(o,e){return Ei(o,e?Pt:rt)};ce.getScrollFunc=function(o,e){return or(Ot(o),e?Pt:rt)};ce.getById=function(o){return ma[o]};ce.getAll=function(){return de.filter(function(o){return o.vars.id!=="ScrollSmoother"})};ce.isScrolling=function(){return!!ri};ce.snapDirectional=ja;ce.addEventListener=function(o,e){var i=Lr[o]||(Lr[o]=[]);~i.indexOf(e)||i.push(e)};ce.removeEventListener=function(o,e){var i=Lr[o],t=i&&i.indexOf(e);t>=0&&i.splice(t,1)};ce.batch=function(o,e){var i=[],t={},r=e.interval||.016,n=e.batchMax||1e9,s=function(l,c){var p=[],h=[],f=$.delayedCall(r,function(){c(p,h),p=[],h=[]}).pause();return function(g){p.length||f.restart(!0),p.push(g.trigger),h.push(g),n<=p.length&&f.progress(1)}},a;for(a in e)t[a]=a.substr(0,2)==="on"&&At(e[a])&&a!=="onRefreshInit"?s(a,e[a]):e[a];return At(n)&&(n=n(),at(ce,"refresh",function(){return n=e.batchMax()})),rs(o).forEach(function(u){var l={};for(a in t)l[a]=t[a];l.trigger=u,i.push(ce.create(l))}),i};var Hu=function(e,i,t,r){return i>r?e(r):i<0&&e(0),t>r?(r-i)/(t-i):t<0?i/(i-t):1},Lo=function o(e,i){i===!0?e.style.removeProperty("touch-action"):e.style.touchAction=i===!0?"auto":i?"pan-"+i+(ze.isTouch?" pinch-zoom":""):"none",e===ci&&o(Fe,i)},xs={auto:1,scroll:1},bd=function(e){var i=e.event,t=e.target,r=e.axis,n=(i.changedTouches?i.changedTouches[0]:i).target,s=n._gsap||$.core.getCache(n),a=Dt(),u;if(!s._isScrollT||a-s._isScrollT>2e3){for(;n&&n!==Fe&&(n.scrollHeight<=n.clientHeight&&n.scrollWidth<=n.clientWidth||!(xs[(u=ei(n)).overflowY]||xs[u.overflowX]));)n=n.parentNode;s._isScroll=n&&n!==t&&!Or(n)&&(xs[(u=ei(n)).overflowY]||xs[u.overflowX]),s._isScrollT=a}(s._isScroll||r==="x")&&(i.stopPropagation(),i._gsapAllow=!0)},$c=function(e,i,t,r){return ze.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:i,onWheel:r=r&&bd,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return t&&at(Ie,ze.eventTypes[0],Xu,!1,!0)},onDisable:function(){return ot(Ie,ze.eventTypes[0],Xu,!0)}})},Cd=/(input|label|select|textarea)/i,Yu,Xu=function(e){var i=Cd.test(e.target.tagName);(i||Yu)&&(e._gsapAllow=!0,Yu=i)},Ed=function(e){dr(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var i=e,t=i.normalizeScrollX,r=i.momentum,n=i.allowNestedScroll,s=i.onRelease,a,u,l=Ot(e.target)||ci,c=$.core.globals().ScrollSmoother,p=c&&c.get(),h=Xi&&(e.content&&Ot(e.content)||p&&e.content!==!1&&!p.smooth()&&p.content()),f=or(l,rt),g=or(l,Pt),d=1,_=(ze.isTouch&&me.visualViewport?me.visualViewport.scale*me.visualViewport.width:me.outerWidth)/me.innerWidth,m=0,C=At(r)?function(){return r(a)}:function(){return r||2.8},w,D,E=$c(l,e.type,!0,n),F=function(){return D=!1},x=yi,O=yi,T=function(){u=Ei(l,rt),O=zn(Xi?1:0,u),t&&(x=zn(0,Ei(l,Pt))),w=Sr},y=function(){h._gsap.y=Tn(parseFloat(h._gsap.y)+f.offset)+"px",h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(h._gsap.y)+", 0, 1)",f.offset=f.cacheID=0},M=function(){if(D){requestAnimationFrame(F);var G=Tn(a.deltaY/2),k=O(f.v-G);if(h&&k!==f.v+f.offset){f.offset=k-f.v;var v=Tn((parseFloat(h&&h._gsap.y)||0)-f.offset);h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+v+", 0, 1)",h._gsap.y=v+"px",f.cacheID=ge.cache,Vi()}return!0}f.offset&&y(),D=!0},P,N,L,B,z=function(){T(),P.isActive()&&P.vars.scrollY>u&&(f()>u?P.progress(1)&&f(u):P.resetTo("scrollY",u))};return h&&$.set(h,{y:"+=0"}),e.ignoreCheck=function(V){return Xi&&V.type==="touchmove"&&M()||d>1.05&&V.type!=="touchstart"||a.isGesturing||V.touches&&V.touches.length>1},e.onPress=function(){D=!1;var V=d;d=Tn((me.visualViewport&&me.visualViewport.scale||1)/_),P.pause(),V!==d&&Lo(l,d>1.01?!0:t?!1:"x"),N=g(),L=f(),T(),w=Sr},e.onRelease=e.onGestureStart=function(V,G){if(f.offset&&y(),!G)B.restart(!0);else{ge.cache++;var k=C(),v,Q;t&&(v=g(),Q=v+k*.05*-V.velocityX/.227,k*=Hu(g,v,Q,Ei(l,Pt)),P.vars.scrollX=x(Q)),v=f(),Q=v+k*.05*-V.velocityY/.227,k*=Hu(f,v,Q,Ei(l,rt)),P.vars.scrollY=O(Q),P.invalidate().duration(k).play(.01),(Xi&&P.vars.scrollY>=u||v>=u-1)&&$.to({},{onUpdate:z,duration:k})}s&&s(V)},e.onWheel=function(){P._ts&&P.pause(),Dt()-m>1e3&&(w=0,m=Dt())},e.onChange=function(V,G,k,v,Q){if(Sr!==w&&T(),G&&t&&g(x(v[2]===G?N+(V.startX-V.x):g()+G-v[1])),k){f.offset&&y();var ne=Q[2]===k,Ve=ne?L+V.startY-V.y:f()+k-Q[1],Z=O(Ve);ne&&Ve!==Z&&(L+=Z-Ve),f(Z)}(k||G)&&Vi()},e.onEnable=function(){Lo(l,t?!1:"x"),ce.addEventListener("refresh",z),at(me,"resize",z),f.smooth&&(f.target.style.scrollBehavior="auto",f.smooth=g.smooth=!1),E.enable()},e.onDisable=function(){Lo(l,!0),ot(me,"resize",z),ce.removeEventListener("refresh",z),E.kill()},e.lockAxis=e.lockAxis!==!1,a=new ze(e),a.iOS=Xi,Xi&&!f()&&f(1),Xi&&$.ticker.add(yi),B=a._dc,P=$.to(a,{ease:"power4",paused:!0,inherit:!1,scrollX:t?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:qc(f,f(),function(){return P.pause()})},onUpdate:Vi,onComplete:B.vars.onComplete}),a};ce.sort=function(o){return de.sort(o||function(e,i){return(e.vars.refreshPriority||0)*-1e6+e.start-(i.start+(i.vars.refreshPriority||0)*-1e6)})};ce.observe=function(o){return new ze(o)};ce.normalizeScroll=function(o){if(typeof o>"u")return St;if(o===!0&&St)return St.enable();if(o===!1){St&&St.kill(),St=o;return}var e=o instanceof ze?o:Ed(o);return St&&St.target===e.target&&St.kill(),Or(e.target)&&(St=e),e};ce.core={_getVelocityProp:fa,_inputObserver:$c,_scrollers:ge,_proxies:Fi,bridge:{ss:function(){ri||Mr("scrollStart"),ri=Dt()},ref:function(){return _t}}};Ac()&&$.registerPlugin(ce);function Sd(o,e){for(var i=0;ie in o?Dh(o,e,{enumerable:!0,config * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com -*/var we,bs,_t,Kr,An,_i,gr,Wu,le,wi,Cs,Uu,Gu,ju,Ku,Hc=function(){return typeof window<"u"},Yc=function(){return we||Hc()&&(we=window.gsap)&&we.registerPlugin&&we},Td=function(e){return Math.round(e*1e5)/1e5||0},Xi=function(e){return le.maxScroll(e||_t)},Fd=function(e,i){var t=e.parentNode||An,r=e.getBoundingClientRect(),n=t.getBoundingClientRect(),s=n.top-r.top,a=n.bottom-r.bottom,u=(Math.abs(s)>Math.abs(a)?s:a)/(1-i),l=-u*i,c,p;return u>0&&(c=n.height/(_t.innerHeight+n.height),p=c===.5?n.height*2:Math.min(n.height,Math.abs(-u*c/(2*c-1)))*2*(i||1),l+=i?-p*i:-p/2,u+=p),{change:u,offset:l}},Pd=function(e){var i=Kr.querySelector(".ScrollSmoother-wrapper");return i||(i=Kr.createElement("div"),i.classList.add("ScrollSmoother-wrapper"),e.parentNode.insertBefore(i,e),i.appendChild(e)),i},Ir=function(){function o(e){var i=this;bs||o.register(we)||console.warn("Please gsap.registerPlugin(ScrollSmoother)"),e=this.vars=e||{},wi&&wi.kill(),wi=this,ju(this);var t=e,r=t.smoothTouch,n=t.onUpdate,s=t.onStop,a=t.smooth,u=t.onFocusIn,l=t.normalizeScroll,c=t.wholePixels,p,h,f,g,d,m,_,C,w,D,E,F,x,O,T=this,y=e.effectsPrefix||"",B=le.getScrollFunc(_t),P=le.isTouch===1?r===!0?.8:parseFloat(r)||0:a===0||a===!1?0:parseFloat(a)||.8,N=P&&+e.speed||1,L=0,I=0,z=1,V=Uu(0),G=function(){return V.update(-L)},k={y:0},v=function(){return p.style.overflow="visible"},Q,ne=function(b){b.update();var A=b.getTween();A&&(A.pause(),A._time=A._dur,A._tTime=A._tDur),Q=!1,b.animation.progress(b.progress,!0)},Ve=function(b,A){(b!==L&&!D||A)&&(c&&(b=Math.round(b)),P&&(p.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+b+", 0, 1)",p._gsap.y=b+"px"),I=b-L,L=b,le.isUpdating||o.isRefreshing||le.update())},Z=function(b){return arguments.length?(b<0&&(b=0),k.y=-b,Q=!0,D?L=-b:Ve(-b),le.isRefreshing?g.update():B(b/N),this):-L},Y=typeof ResizeObserver<"u"&&e.autoResize!==!1&&new ResizeObserver(function(){if(!le.isRefreshing){var R=Xi(h)*N;R<-L&&Z(R),Ku.restart(!0)}}),te,ae=function(b){h.scrollTop=0,!(b.target.contains&&b.target.contains(h)||u&&u(i,b)===!1)&&(le.isInViewport(b.target)||b.target===te||i.scrollTo(b.target,!1,"center center"),te=b.target)},be=function(b,A){if(b0?ue+(pe-ve):be(pe,b),H.setPositions(ue,ke,!0,(H._startClamp?Math.max(0,ue):ue)-ve),H.markerStart&&se.push(we.quickSetter([H.markerStart,H.markerEnd],"y","px")),H.pin&&H.end>0&&!W)){if(fe=H.end-H.start,Xe=b._startClamp&&H.start<0,Xe){if(b.start>0){b.setPositions(0,b.end+(b._startNative-b.start),!0),R(b,A);return}fe+=H.start,J.offset=-H.start}J.push({start:H.start,nativeStart:ve,end:H.end,distance:fe,trig:H}),b.setPositions(b.start,b.end+(Xe?-H.start:fe),!0)}},Ye=function(b,A){d.forEach(function(W){return qe(W,b,A)})},Ce=function(){v(),requestAnimationFrame(v),d&&(le.getAll().forEach(function(b){b._startNative=b.start,b._endNative=b.end}),d.forEach(function(b){var A=b._startClamp||b.start,W=b.autoSpeed?Math.min(Xi(),b.end):A+Math.abs((b.end-A)/b.ratio),J=W-b.end;if(A-=J/2,W-=J/2,A>W){var se=A;A=W,W=se}b._startClamp&&A<0?(W=b.ratio<0?Xi():b.end/b.ratio,J=W-b.end,A=0):(b.ratio<0||b._endClamp&&W>=Xi())&&(W=Xi(),A=b.ratio<0||b.ratio>1?0:W-(W-b.start)/b.ratio,J=(W-A)*b.ratio-(b.end-b.start)),b.offset=J||1e-4,b.pins.length=b.pins.offset=0,b.setPositions(A,W,!0)}),Ye(le.sort())),V.reset()},Ze=function(){return le.addEventListener("refresh",Ce)},U=function(){return d&&d.forEach(function(b){return b.vars.onRefresh(b)})},he=function(){return d&&d.forEach(function(b){return b.vars.onRefreshInit(b)}),U},Ge=function(b,A,W,J){return function(){var se=typeof A=="function"?A(W,J):A;se||se===0||(se=J.getAttribute("data-"+y+b)||(b==="speed"?1:0)),J.setAttribute("data-"+y+b,se);var fe=(se+"").substr(0,6)==="clamp(";return{clamp:fe,value:fe?se.substr(6,se.length-7):se}}},Je=function(b,A,W,J,se){se=(typeof se=="function"?se(J,b):se)||0;var fe=Ge("speed",A,J,b),Xe=Ge("lag",W,J,b),ue=we.getProperty(b,"y"),ke=b._gsap,ve,pe,et,H,Yi,Nt,zt=[],Oi=function(){A=fe(),W=parseFloat(Xe().value),ve=parseFloat(A.value)||1,et=A.value==="auto",Yi=et||pe&&pe._startClamp&&pe.start<=0||zt.offset?0:pe&&pe._endClamp&&pe.end===Xi()?1:.5,H&&H.kill(),H=W&&we.to(b,{ease:Cs,overwrite:!1,y:"+=0",duration:W}),pe&&(pe.ratio=ve,pe.autoSpeed=et)},Qt=function(){ke.y=ue+"px",ke.renderTransform(1),Oi()},si=[],ie=0,di=function(xe){if(et){Qt();var Oe=Fd(b,Wu(0,1,-xe.start/(xe.end-xe.start)));ie=Oe.change,Nt=Oe.offset}else Nt=zt.offset||0,ie=(xe.end-xe.start-Nt)*(1-ve);zt.forEach(function(Vt){return ie-=Vt.distance*(1-ve)}),xe.offset=ie||.001,xe.vars.onUpdate(xe),H&&H.progress(1)};return Oi(),(ve!==1||et||H)&&(pe=le.create({trigger:et?b.parentNode:b,start:function(){return A.clamp?"clamp(top bottom+="+se+")":"top bottom+="+se},end:function(){return A.value<0?"max":A.clamp?"clamp(bottom top-="+se+")":"bottom top-="+se},scroller:h,scrub:!0,refreshPriority:-999,onRefreshInit:Qt,onRefresh:di,onKill:function(xe){var Oe=d.indexOf(xe);Oe>=0&&d.splice(Oe,1),Qt()},onUpdate:function(xe){var Oe=ue+ie*(xe.progress-Yi),Vt=zt.length,oi=0,je,ai,ee;if(xe.offset){if(Vt){for(ai=-L,ee=xe.end;Vt--;){if(je=zt[Vt],je.trig.isActive||ai>=je.start&&ai<=je.end){H&&(je.trig.progress+=je.trig.direction<0?.001:-.001,je.trig.update(0,0,1),H.resetTo("y",parseFloat(ke.y),-I,!0),z&&H.progress(1));return}ai>je.end&&(oi+=je.distance),ee-=je.distance}Oe=ue+oi+ie*((we.utils.clamp(xe.start,xe.end,ai)-xe.start-oi)/(ee-xe.start)-Yi)}si.length&&!et&&si.forEach(function(j){return j(Oe-oi)}),Oe=Td(Oe+Nt),H?(H.resetTo("y",Oe,-I,!0),z&&H.progress(1)):(ke.y=Oe+"px",ke.renderTransform(1))}}}),di(pe),we.core.getCache(pe.trigger).stRevert=he,pe.startY=ue,pe.pins=zt,pe.markers=si,pe.ratio=ve,pe.autoSpeed=et,b.style.willChange="transform"),pe};Ze(),le.addEventListener("killAll",Ze),we.delayedCall(.5,function(){return z=0}),this.scrollTop=Z,this.scrollTo=function(R,b,A){var W=we.utils.clamp(0,Xi(),isNaN(R)?i.offset(R,A,!!b&&!D):+R);b?D?we.to(i,{duration:P,scrollTop:W,overwrite:"auto",ease:Cs}):B(W):Z(W)},this.offset=function(R,b,A){R=gr(R)[0];var W=R.style.cssText,J=le.create({trigger:R,start:b||"top top"}),se;return d&&(z?le.refresh():Ye([J],!0)),se=J.start/(A?N:1),J.kill(!1),R.style.cssText=W,we.core.getCache(R).uncache=1,se};function S(){return f=p.clientHeight,p.style.overflow="visible",_i.style.height=_t.innerHeight+(f-_t.innerHeight)/N+"px",f-_t.innerHeight}this.content=function(R){if(arguments.length){var b=gr(R||"#smooth-content")[0]||console.warn("ScrollSmoother needs a valid content element.")||_i.children[0];return b!==p&&(p=b,w=p.getAttribute("style")||"",Y&&Y.observe(p),we.set(p,{overflow:"visible",width:"100%",boxSizing:"border-box",y:"+=0"}),P||we.set(p,{clearProps:"transform"})),this}return p},this.wrapper=function(R){return arguments.length?(h=gr(R||"#smooth-wrapper")[0]||Pd(p),C=h.getAttribute("style")||"",S(),we.set(h,P?{overflow:"hidden",position:"fixed",height:"100%",width:"100%",top:0,left:0,right:0,bottom:0}:{overflow:"visible",position:"relative",width:"100%",height:"auto",top:"auto",bottom:"auto",left:"auto",right:"auto"}),this):h},this.effects=function(R,b){var A;if(d||(d=[]),!R)return d.slice(0);R=gr(R),R.forEach(function(ve){for(var pe=d.length;pe--;)d[pe].trigger===ve&&d[pe].kill()}),b=b||{};var W=b,J=W.speed,se=W.lag,fe=W.effectsPadding,Xe=[],ue,ke;for(ue=0;ueW._dp._time,F=L,k.y=0,P&&(le.isTouch===1&&(h.style.position="absolute"),h.scrollTop=0,le.isTouch===1&&(h.style.position="fixed"))}},onRefresh:function(b){b.animation.invalidate(),b.setPositions(b.start,S()/N),x||ne(b),k.y=-B()*N,Ve(k.y),z||(x&&(Q=!1),b.animation.progress(we.utils.clamp(0,1,F/N/-b.end))),x&&(b.progress-=.001,b.update()),o.isRefreshing=!1},id:"ScrollSmoother",scroller:_t,invalidateOnRefresh:!0,start:0,refreshPriority:-9999,end:function(){return S()/N},onScrubComplete:function(){V.reset(),s&&s(i)},scrub:P||!0}),this.smooth=function(R){return arguments.length&&(P=R||0,N=P&&+e.speed||1,g.scrubDuration(R)),g.getTween()?g.getTween().duration():0},g.getTween()&&(g.getTween().vars.ease=e.ease||Cs),this.scrollTrigger=g,e.effects&&this.effects(e.effects===!0?"[data-"+y+"speed], [data-"+y+"lag]":e.effects,{effectsPadding:e.effectsPadding,refresh:!1}),e.sections&&this.sections(e.sections===!0?"[data-section]":e.sections),Ae.forEach(function(R){R.vars.scroller=h,R.revert(!1,!0),R.init(R.vars,R.animation)}),this.paused=function(R,b){return arguments.length?(!!D!==R&&(R?(g.getTween()&&g.getTween().pause(),B(-L/N),V.reset(),E=le.normalizeScroll(),E&&E.disable(),D=le.observe({preventDefault:!0,type:"wheel,touch,scroll",debounce:!1,allowClicks:!0,onChangeY:function(){return Z(-L)}}),D.nested=Gu(An,"wheel,touch,scroll",!0,b!==!1)):(D.nested.kill(),D.kill(),D=0,E&&E.enable(),g.progress=(-L/N-g.start)/(g.end-g.start),ne(g))),this):!!D},this.kill=this.revert=function(){i.paused(!1),ne(g),g.kill();for(var R=(d||[]).concat(m||[]),b=R.length;b--;)R[b].kill();le.scrollerProxy(h),le.removeEventListener("killAll",Ze),le.removeEventListener("refresh",Ce),h.style.cssText=C,p.style.cssText=w;var A=le.defaults({});A&&A.scroller===h&&le.defaults({scroller:_t}),i.normalizer&&le.normalizeScroll(!1),clearInterval(_),wi=null,Y&&Y.disconnect(),_i.style.removeProperty("height"),_t.removeEventListener("focusin",ae)},this.refresh=function(R,b){return g.refresh(R,b)},l&&(this.normalizer=le.normalizeScroll(l===!0?{debounce:!0,content:!P&&p}:l)),le.config(e),"overscrollBehavior"in _t.getComputedStyle(_i)&&we.set([_i,An],{overscrollBehavior:"none"}),"scrollBehavior"in _t.getComputedStyle(_i)&&we.set([_i,An],{scrollBehavior:"auto"}),_t.addEventListener("focusin",ae),_=setInterval(G,250),Kr.readyState==="loading"||requestAnimationFrame(function(){return le.refresh()})}return o.register=function(i){return bs||(we=i||Yc(),Hc()&&window.document&&(_t=window,Kr=document,An=Kr.documentElement,_i=Kr.body),we&&(gr=we.utils.toArray,Wu=we.utils.clamp,Cs=we.parseEase("expo"),ju=we.core.context||function(){},le=we.core.globals().ScrollTrigger,we.core.globals("ScrollSmoother",o),_i&&le&&(Ku=we.delayedCall(.2,function(){return le.isRefreshing||wi&&wi.refresh()}).pause(),Uu=le.core._getVelocityProp,Gu=le.core._inputObserver,o.refresh=le.refresh,bs=1))),bs},kd(o,[{key:"progress",get:function(){return this.scrollTrigger?this.scrollTrigger.animation._time/100:0}}]),o}();Ir.version="3.12.5";Ir.create=function(o){return wi&&o&&wi.content()===gr(o.content)[0]?wi:new Ir(o)};Ir.get=function(){return wi};Yc()&&we.registerPlugin(Ir);M.registerPlugin(ce,Ir);let xn=null;const bt={init(){xn||(xn=Ir.create({content:".page",smooth:2,smoothTouch:!1}))},getInstance(){return xn||this.init(),xn},kill(){this.getInstance().kill(),xn=null}};class Ad{constructor(){X(this,"name","overlay-transition")}leave({current:e}){return M.to(".transition",{yPercent:0,onComplete:()=>M.set(e.container,{display:"none"})})}afterLeave(){bt.getInstance().scrollTo(0,!1)}enter(){const e=this.async();M.to(".transition",{duration:.3,yPercent:-100,onStart:()=>e(),onComplete:()=>M.set(".transition",{yPercent:100})})}}const Od=new Ad;/*! +*/var we,bs,mt,Kr,An,mi,pr,Wu,le,wi,Cs,Uu,Gu,ju,Ku,Hc=function(){return typeof window<"u"},Yc=function(){return we||Hc()&&(we=window.gsap)&&we.registerPlugin&&we},Td=function(e){return Math.round(e*1e5)/1e5||0},Yi=function(e){return le.maxScroll(e||mt)},Fd=function(e,i){var t=e.parentNode||An,r=e.getBoundingClientRect(),n=t.getBoundingClientRect(),s=n.top-r.top,a=n.bottom-r.bottom,u=(Math.abs(s)>Math.abs(a)?s:a)/(1-i),l=-u*i,c,p;return u>0&&(c=n.height/(mt.innerHeight+n.height),p=c===.5?n.height*2:Math.min(n.height,Math.abs(-u*c/(2*c-1)))*2*(i||1),l+=i?-p*i:-p/2,u+=p),{change:u,offset:l}},Pd=function(e){var i=Kr.querySelector(".ScrollSmoother-wrapper");return i||(i=Kr.createElement("div"),i.classList.add("ScrollSmoother-wrapper"),e.parentNode.insertBefore(i,e),i.appendChild(e)),i},Br=function(){function o(e){var i=this;bs||o.register(we)||console.warn("Please gsap.registerPlugin(ScrollSmoother)"),e=this.vars=e||{},wi&&wi.kill(),wi=this,ju(this);var t=e,r=t.smoothTouch,n=t.onUpdate,s=t.onStop,a=t.smooth,u=t.onFocusIn,l=t.normalizeScroll,c=t.wholePixels,p,h,f,g,d,_,m,C,w,D,E,F,x,O,T=this,y=e.effectsPrefix||"",M=le.getScrollFunc(mt),P=le.isTouch===1?r===!0?.8:parseFloat(r)||0:a===0||a===!1?0:parseFloat(a)||.8,N=P&&+e.speed||1,L=0,B=0,z=1,V=Uu(0),G=function(){return V.update(-L)},k={y:0},v=function(){return p.style.overflow="visible"},Q,ne=function(b){b.update();var A=b.getTween();A&&(A.pause(),A._time=A._dur,A._tTime=A._tDur),Q=!1,b.animation.progress(b.progress,!0)},Ve=function(b,A){(b!==L&&!D||A)&&(c&&(b=Math.round(b)),P&&(p.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+b+", 0, 1)",p._gsap.y=b+"px"),B=b-L,L=b,le.isUpdating||o.isRefreshing||le.update())},Z=function(b){return arguments.length?(b<0&&(b=0),k.y=-b,Q=!0,D?L=-b:Ve(-b),le.isRefreshing?g.update():M(b/N),this):-L},Y=typeof ResizeObserver<"u"&&e.autoResize!==!1&&new ResizeObserver(function(){if(!le.isRefreshing){var I=Yi(h)*N;I<-L&&Z(I),Ku.restart(!0)}}),te,ae=function(b){h.scrollTop=0,!(b.target.contains&&b.target.contains(h)||u&&u(i,b)===!1)&&(le.isInViewport(b.target)||b.target===te||i.scrollTo(b.target,!1,"center center"),te=b.target)},be=function(b,A){if(b0?ue+(pe-ve):be(pe,b),H.setPositions(ue,ke,!0,(H._startClamp?Math.max(0,ue):ue)-ve),H.markerStart&&se.push(we.quickSetter([H.markerStart,H.markerEnd],"y","px")),H.pin&&H.end>0&&!W)){if(fe=H.end-H.start,Xe=b._startClamp&&H.start<0,Xe){if(b.start>0){b.setPositions(0,b.end+(b._startNative-b.start),!0),I(b,A);return}fe+=H.start,J.offset=-H.start}J.push({start:H.start,nativeStart:ve,end:H.end,distance:fe,trig:H}),b.setPositions(b.start,b.end+(Xe?-H.start:fe),!0)}},Ye=function(b,A){d.forEach(function(W){return qe(W,b,A)})},Ce=function(){v(),requestAnimationFrame(v),d&&(le.getAll().forEach(function(b){b._startNative=b.start,b._endNative=b.end}),d.forEach(function(b){var A=b._startClamp||b.start,W=b.autoSpeed?Math.min(Yi(),b.end):A+Math.abs((b.end-A)/b.ratio),J=W-b.end;if(A-=J/2,W-=J/2,A>W){var se=A;A=W,W=se}b._startClamp&&A<0?(W=b.ratio<0?Yi():b.end/b.ratio,J=W-b.end,A=0):(b.ratio<0||b._endClamp&&W>=Yi())&&(W=Yi(),A=b.ratio<0||b.ratio>1?0:W-(W-b.start)/b.ratio,J=(W-A)*b.ratio-(b.end-b.start)),b.offset=J||1e-4,b.pins.length=b.pins.offset=0,b.setPositions(A,W,!0)}),Ye(le.sort())),V.reset()},Ze=function(){return le.addEventListener("refresh",Ce)},U=function(){return d&&d.forEach(function(b){return b.vars.onRefresh(b)})},he=function(){return d&&d.forEach(function(b){return b.vars.onRefreshInit(b)}),U},Ge=function(b,A,W,J){return function(){var se=typeof A=="function"?A(W,J):A;se||se===0||(se=J.getAttribute("data-"+y+b)||(b==="speed"?1:0)),J.setAttribute("data-"+y+b,se);var fe=(se+"").substr(0,6)==="clamp(";return{clamp:fe,value:fe?se.substr(6,se.length-7):se}}},Je=function(b,A,W,J,se){se=(typeof se=="function"?se(J,b):se)||0;var fe=Ge("speed",A,J,b),Xe=Ge("lag",W,J,b),ue=we.getProperty(b,"y"),ke=b._gsap,ve,pe,et,H,Hi,Nt,zt=[],Oi=function(){A=fe(),W=parseFloat(Xe().value),ve=parseFloat(A.value)||1,et=A.value==="auto",Hi=et||pe&&pe._startClamp&&pe.start<=0||zt.offset?0:pe&&pe._endClamp&&pe.end===Yi()?1:.5,H&&H.kill(),H=W&&we.to(b,{ease:Cs,overwrite:!1,y:"+=0",duration:W}),pe&&(pe.ratio=ve,pe.autoSpeed=et)},Qt=function(){ke.y=ue+"px",ke.renderTransform(1),Oi()},si=[],ie=0,di=function(xe){if(et){Qt();var Oe=Fd(b,Wu(0,1,-xe.start/(xe.end-xe.start)));ie=Oe.change,Nt=Oe.offset}else Nt=zt.offset||0,ie=(xe.end-xe.start-Nt)*(1-ve);zt.forEach(function(Vt){return ie-=Vt.distance*(1-ve)}),xe.offset=ie||.001,xe.vars.onUpdate(xe),H&&H.progress(1)};return Oi(),(ve!==1||et||H)&&(pe=le.create({trigger:et?b.parentNode:b,start:function(){return A.clamp?"clamp(top bottom+="+se+")":"top bottom+="+se},end:function(){return A.value<0?"max":A.clamp?"clamp(bottom top-="+se+")":"bottom top-="+se},scroller:h,scrub:!0,refreshPriority:-999,onRefreshInit:Qt,onRefresh:di,onKill:function(xe){var Oe=d.indexOf(xe);Oe>=0&&d.splice(Oe,1),Qt()},onUpdate:function(xe){var Oe=ue+ie*(xe.progress-Hi),Vt=zt.length,oi=0,je,ai,ee;if(xe.offset){if(Vt){for(ai=-L,ee=xe.end;Vt--;){if(je=zt[Vt],je.trig.isActive||ai>=je.start&&ai<=je.end){H&&(je.trig.progress+=je.trig.direction<0?.001:-.001,je.trig.update(0,0,1),H.resetTo("y",parseFloat(ke.y),-B,!0),z&&H.progress(1));return}ai>je.end&&(oi+=je.distance),ee-=je.distance}Oe=ue+oi+ie*((we.utils.clamp(xe.start,xe.end,ai)-xe.start-oi)/(ee-xe.start)-Hi)}si.length&&!et&&si.forEach(function(j){return j(Oe-oi)}),Oe=Td(Oe+Nt),H?(H.resetTo("y",Oe,-B,!0),z&&H.progress(1)):(ke.y=Oe+"px",ke.renderTransform(1))}}}),di(pe),we.core.getCache(pe.trigger).stRevert=he,pe.startY=ue,pe.pins=zt,pe.markers=si,pe.ratio=ve,pe.autoSpeed=et,b.style.willChange="transform"),pe};Ze(),le.addEventListener("killAll",Ze),we.delayedCall(.5,function(){return z=0}),this.scrollTop=Z,this.scrollTo=function(I,b,A){var W=we.utils.clamp(0,Yi(),isNaN(I)?i.offset(I,A,!!b&&!D):+I);b?D?we.to(i,{duration:P,scrollTop:W,overwrite:"auto",ease:Cs}):M(W):Z(W)},this.offset=function(I,b,A){I=pr(I)[0];var W=I.style.cssText,J=le.create({trigger:I,start:b||"top top"}),se;return d&&(z?le.refresh():Ye([J],!0)),se=J.start/(A?N:1),J.kill(!1),I.style.cssText=W,we.core.getCache(I).uncache=1,se};function S(){return f=p.clientHeight,p.style.overflow="visible",mi.style.height=mt.innerHeight+(f-mt.innerHeight)/N+"px",f-mt.innerHeight}this.content=function(I){if(arguments.length){var b=pr(I||"#smooth-content")[0]||console.warn("ScrollSmoother needs a valid content element.")||mi.children[0];return b!==p&&(p=b,w=p.getAttribute("style")||"",Y&&Y.observe(p),we.set(p,{overflow:"visible",width:"100%",boxSizing:"border-box",y:"+=0"}),P||we.set(p,{clearProps:"transform"})),this}return p},this.wrapper=function(I){return arguments.length?(h=pr(I||"#smooth-wrapper")[0]||Pd(p),C=h.getAttribute("style")||"",S(),we.set(h,P?{overflow:"hidden",position:"fixed",height:"100%",width:"100%",top:0,left:0,right:0,bottom:0}:{overflow:"visible",position:"relative",width:"100%",height:"auto",top:"auto",bottom:"auto",left:"auto",right:"auto"}),this):h},this.effects=function(I,b){var A;if(d||(d=[]),!I)return d.slice(0);I=pr(I),I.forEach(function(ve){for(var pe=d.length;pe--;)d[pe].trigger===ve&&d[pe].kill()}),b=b||{};var W=b,J=W.speed,se=W.lag,fe=W.effectsPadding,Xe=[],ue,ke;for(ue=0;ueW._dp._time,F=L,k.y=0,P&&(le.isTouch===1&&(h.style.position="absolute"),h.scrollTop=0,le.isTouch===1&&(h.style.position="fixed"))}},onRefresh:function(b){b.animation.invalidate(),b.setPositions(b.start,S()/N),x||ne(b),k.y=-M()*N,Ve(k.y),z||(x&&(Q=!1),b.animation.progress(we.utils.clamp(0,1,F/N/-b.end))),x&&(b.progress-=.001,b.update()),o.isRefreshing=!1},id:"ScrollSmoother",scroller:mt,invalidateOnRefresh:!0,start:0,refreshPriority:-9999,end:function(){return S()/N},onScrubComplete:function(){V.reset(),s&&s(i)},scrub:P||!0}),this.smooth=function(I){return arguments.length&&(P=I||0,N=P&&+e.speed||1,g.scrubDuration(I)),g.getTween()?g.getTween().duration():0},g.getTween()&&(g.getTween().vars.ease=e.ease||Cs),this.scrollTrigger=g,e.effects&&this.effects(e.effects===!0?"[data-"+y+"speed], [data-"+y+"lag]":e.effects,{effectsPadding:e.effectsPadding,refresh:!1}),e.sections&&this.sections(e.sections===!0?"[data-section]":e.sections),Ae.forEach(function(I){I.vars.scroller=h,I.revert(!1,!0),I.init(I.vars,I.animation)}),this.paused=function(I,b){return arguments.length?(!!D!==I&&(I?(g.getTween()&&g.getTween().pause(),M(-L/N),V.reset(),E=le.normalizeScroll(),E&&E.disable(),D=le.observe({preventDefault:!0,type:"wheel,touch,scroll",debounce:!1,allowClicks:!0,onChangeY:function(){return Z(-L)}}),D.nested=Gu(An,"wheel,touch,scroll",!0,b!==!1)):(D.nested.kill(),D.kill(),D=0,E&&E.enable(),g.progress=(-L/N-g.start)/(g.end-g.start),ne(g))),this):!!D},this.kill=this.revert=function(){i.paused(!1),ne(g),g.kill();for(var I=(d||[]).concat(_||[]),b=I.length;b--;)I[b].kill();le.scrollerProxy(h),le.removeEventListener("killAll",Ze),le.removeEventListener("refresh",Ce),h.style.cssText=C,p.style.cssText=w;var A=le.defaults({});A&&A.scroller===h&&le.defaults({scroller:mt}),i.normalizer&&le.normalizeScroll(!1),clearInterval(m),wi=null,Y&&Y.disconnect(),mi.style.removeProperty("height"),mt.removeEventListener("focusin",ae)},this.refresh=function(I,b){return g.refresh(I,b)},l&&(this.normalizer=le.normalizeScroll(l===!0?{debounce:!0,content:!P&&p}:l)),le.config(e),"overscrollBehavior"in mt.getComputedStyle(mi)&&we.set([mi,An],{overscrollBehavior:"none"}),"scrollBehavior"in mt.getComputedStyle(mi)&&we.set([mi,An],{scrollBehavior:"auto"}),mt.addEventListener("focusin",ae),m=setInterval(G,250),Kr.readyState==="loading"||requestAnimationFrame(function(){return le.refresh()})}return o.register=function(i){return bs||(we=i||Yc(),Hc()&&window.document&&(mt=window,Kr=document,An=Kr.documentElement,mi=Kr.body),we&&(pr=we.utils.toArray,Wu=we.utils.clamp,Cs=we.parseEase("expo"),ju=we.core.context||function(){},le=we.core.globals().ScrollTrigger,we.core.globals("ScrollSmoother",o),mi&&le&&(Ku=we.delayedCall(.2,function(){return le.isRefreshing||wi&&wi.refresh()}).pause(),Uu=le.core._getVelocityProp,Gu=le.core._inputObserver,o.refresh=le.refresh,bs=1))),bs},kd(o,[{key:"progress",get:function(){return this.scrollTrigger?this.scrollTrigger.animation._time/100:0}}]),o}();Br.version="3.12.5";Br.create=function(o){return wi&&o&&wi.content()===pr(o.content)[0]?wi:new Br(o)};Br.get=function(){return wi};Yc()&&we.registerPlugin(Br);R.registerPlugin(ce,Br);let xn=null;const bt={init(){xn||(xn=Br.create({content:".page",smooth:2,smoothTouch:!1}))},getInstance(){return xn||this.init(),xn},kill(){this.getInstance().kill(),xn=null}};class Ad{constructor(){X(this,"name","overlay-transition")}leave({current:e}){return R.to(".transition",{yPercent:0,onComplete:()=>R.set(e.container,{display:"none"})})}afterLeave(){bt.getInstance().scrollTo(0,!1)}enter(){const e=this.async();R.to(".transition",{duration:.3,yPercent:-100,onStart:()=>e(),onComplete:()=>R.set(".transition",{yPercent:100})})}}const Od=new Ad;/*! * strings: 3.12.5 * https://gsap.com * @@ -54,13 +54,13 @@ var Dh=Object.defineProperty;var vh=(o,e,i)=>e in o?Dh(o,e,{enumerable:!0,config * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com -*/var Qr,ya,Wc,bn,Uc,co,Md=/(?:\r|\n|\t\t)/g,Bd=/(?:\s\s+)/g,Id=" ",Gc=function(e){Qr=document,ya=window,bn=bn||e||ya.gsap||console.warn("Please gsap.registerPlugin(SplitText)"),bn&&(co=bn.utils.toArray,Uc=bn.core.context||function(){},Wc=1)},jc=function(e){return ya.getComputedStyle(e)},Qa=function(e){return e.position==="absolute"||e.absolute===!0},Rd=function(e,i){for(var t=i.length,r;--t>-1;)if(r=i[t],e.substr(0,r.length)===r)return r.length},Nd=" style='position:relative;display:inline-block;'",Qu=function(e,i){e===void 0&&(e="");var t=~e.indexOf("++"),r=1;return t&&(e=e.split("++").join("")),function(){return"<"+i+Nd+(e?" class='"+e+(t?r++:"")+"'>":">")}},Kc=function o(e,i,t){var r=e.nodeType;if(r===1||r===9||r===11)for(e=e.firstChild;e;e=e.nextSibling)o(e,i,t);else(r===3||r===4)&&(e.nodeValue=e.nodeValue.split(i).join(t))},Mo=function(e,i){for(var t=i.length;--t>-1;)e.push(i[t])},Zu=function(e,i,t){for(var r;e&&e!==i;){if(r=e._next||e.nextSibling,r)return r.textContent.charAt(0)===t;e=e.parentNode||e._parent}},zd=function o(e){var i=co(e.childNodes),t=i.length,r,n;for(r=0;rd&&(k.nodeName!=="BR"||z===0)&&(ne=[],x.push(ne),c=ae),y&&(k._x=k.offsetLeft,k._y=ae,k._w=k.offsetWidth,k._h=k.offsetHeight),x&&((k._isSplit&&Q||!T&&Q||O&&Q||!O&&k.parentNode.parentNode===e&&!k.parentNode._isSplit)&&(ne.push(k),k._x-=l,Zu(k,e,D)&&(k._wordEnd=!0)),k.nodeName==="BR"&&(k.nextSibling&&k.nextSibling.nodeName==="BR"||z===0)&&x.push([])));for(z=0;z-1;)N[z].parentNode.removeChild(N[z]);if(x){for(y&&(Y=Qr.createElement(E),e.appendChild(Y),te=Y.offsetWidth+"px",ae=Y.offsetParent===e?0:e.offsetLeft,e.removeChild(Y)),Z=e.style.cssText,e.style.cssText="display:none;";e.firstChild;)e.removeChild(e.firstChild);for(Ve=D===" "&&(!y||!O&&!T),z=0;ze.clientHeight&&(e.style.height=a-f+"px",e.clientHeighte.clientWidth&&(e.style.width=s-g+"px",e.clientWidth",f=1,g=i.specialChars?typeof i.specialChars=="function"?i.specialChars:Rd:null,d,m,_,C,w,D,E,F,x=Qr.createElement("div"),O=e.parentNode;for(O.insertBefore(x,e),x.textContent=e.nodeValue,O.removeChild(e),e=x,d=Xc(e),E=d.indexOf("<")!==-1,i.reduceWhiteSpace!==!1&&(d=d.replace(Bd," ").replace(Md,"")),E&&(d=d.split("<").join("{{LT}}")),w=d.length,m=(d.charAt(0)===" "?p:"")+t(),_=0;_":D,_+=F-1;else if(c(D)&&!c(d.charAt(_-1))&&_){for(m+=f?h:"",f=0;c(d.charAt(_+1));)m+=p,_++;_===w-1?m+=p:d.charAt(_+1)!==")"&&(m+=p+t(),f=1)}else D==="{"&&d.substr(_,6)==="{{LT}}"?(m+=a?r()+"{{LT}}":"{{LT}}",_+=5):D.charCodeAt(0)>=55296&&D.charCodeAt(0)<=56319||d.charCodeAt(_+1)>=65024&&d.charCodeAt(_+1)<=65039?(C=((d.substr(_,12).split(Ld)||[])[1]||"").length||2,m+=a&&D!==" "?r()+d.substr(_,C)+"":d.substr(_,C),_+=C-1):m+=a&&D!==" "?r()+D+"":D;e.outerHTML=m+(f?h:""),E&&Kc(O,"{{LT}}","<")},$d=function o(e,i,t,r){var n=co(e.childNodes),s=n.length,a=Qa(i),u,l;if(e.nodeType!==3||s>1){for(i.absolute=!1,u=0;u-1;)c=this.elements[r],this._originals[r]={html:c.innerHTML,style:c.getAttribute("style")},u=c.clientHeight,l=c.clientWidth,$d(c,t,s,a),Vd(c,t,this.chars,this.words,this.lines,l,u);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},e.revert=function(){var t=this._originals;if(!t)throw"revert() call wasn't scoped properly.";return this.elements.forEach(function(r,n){r.innerHTML=t[n].html,r.setAttribute("style",t[n].style)}),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},o.create=function(t,r){return new o(t,r)},o}();Ri.version="3.12.5";Ri.register=Gc;const ho=function(){function o(e,i={}){if(typeof e=="string")this.elements=document.querySelectorAll(e);else if(Array.isArray(e))this.elements=e.filter(t=>t instanceof Element);else if(e instanceof NodeList||e instanceof Element)this.elements=e;else{console.warn("Invalid selector or elements provided to Magnetic constructor");return}!Array.isArray(this.elements)&&!(this.elements instanceof NodeList)&&(this.elements=[this.elements]),this.options={y:.05,x:.05,s:2,rs:1.5},Array.from(this.elements).forEach(t=>{const r=t.dataset.magnetic?JSON.parse(t.dataset.magnetic):{},n={...this.options,...i,...r};t.dataset.magneticInit||(t.dataset.magneticInit="true",this.bind(t,n))})}return o.prototype.bind=function(e,i){const t=()=>{const s=e.getBoundingClientRect();this.y=s.top,this.x=s.left,this.width=s.width,this.height=s.height},r=s=>{const a=(s.clientY-this.y-this.height/2)*i.y,u=(s.clientX-this.x-this.width/2)*i.x;this.move(e,u,a,i.s)},n=()=>{this.move(e,0,0,i.rs)};e.addEventListener("mouseenter",t),e.addEventListener("mousemove",r),e.addEventListener("mouseleave",n),e.addEventListener("click",()=>{this.move(e,0,0,1.5),e.removeEventListener("mouseenter",t),e.removeEventListener("mousemove",r),e.removeEventListener("mouseleave",n)})},o.prototype.move=function(e,i,t,r){M.to(e,{y:t,x:i,force3D:!0,overwrite:"auto",duration:r,ease:"power3.out"})},{make:function(e,i){new o(e,i)}}}();/*! +*/var Qr,ya,Wc,bn,Uc,co,Md=/(?:\r|\n|\t\t)/g,Bd=/(?:\s\s+)/g,Id=" ",Gc=function(e){Qr=document,ya=window,bn=bn||e||ya.gsap||console.warn("Please gsap.registerPlugin(SplitText)"),bn&&(co=bn.utils.toArray,Uc=bn.core.context||function(){},Wc=1)},jc=function(e){return ya.getComputedStyle(e)},Qa=function(e){return e.position==="absolute"||e.absolute===!0},Rd=function(e,i){for(var t=i.length,r;--t>-1;)if(r=i[t],e.substr(0,r.length)===r)return r.length},Nd=" style='position:relative;display:inline-block;'",Qu=function(e,i){e===void 0&&(e="");var t=~e.indexOf("++"),r=1;return t&&(e=e.split("++").join("")),function(){return"<"+i+Nd+(e?" class='"+e+(t?r++:"")+"'>":">")}},Kc=function o(e,i,t){var r=e.nodeType;if(r===1||r===9||r===11)for(e=e.firstChild;e;e=e.nextSibling)o(e,i,t);else(r===3||r===4)&&(e.nodeValue=e.nodeValue.split(i).join(t))},Mo=function(e,i){for(var t=i.length;--t>-1;)e.push(i[t])},Zu=function(e,i,t){for(var r;e&&e!==i;){if(r=e._next||e.nextSibling,r)return r.textContent.charAt(0)===t;e=e.parentNode||e._parent}},zd=function o(e){var i=co(e.childNodes),t=i.length,r,n;for(r=0;rd&&(k.nodeName!=="BR"||z===0)&&(ne=[],x.push(ne),c=ae),y&&(k._x=k.offsetLeft,k._y=ae,k._w=k.offsetWidth,k._h=k.offsetHeight),x&&((k._isSplit&&Q||!T&&Q||O&&Q||!O&&k.parentNode.parentNode===e&&!k.parentNode._isSplit)&&(ne.push(k),k._x-=l,Zu(k,e,D)&&(k._wordEnd=!0)),k.nodeName==="BR"&&(k.nextSibling&&k.nextSibling.nodeName==="BR"||z===0)&&x.push([])));for(z=0;z-1;)N[z].parentNode.removeChild(N[z]);if(x){for(y&&(Y=Qr.createElement(E),e.appendChild(Y),te=Y.offsetWidth+"px",ae=Y.offsetParent===e?0:e.offsetLeft,e.removeChild(Y)),Z=e.style.cssText,e.style.cssText="display:none;";e.firstChild;)e.removeChild(e.firstChild);for(Ve=D===" "&&(!y||!O&&!T),z=0;ze.clientHeight&&(e.style.height=a-f+"px",e.clientHeighte.clientWidth&&(e.style.width=s-g+"px",e.clientWidth",f=1,g=i.specialChars?typeof i.specialChars=="function"?i.specialChars:Rd:null,d,_,m,C,w,D,E,F,x=Qr.createElement("div"),O=e.parentNode;for(O.insertBefore(x,e),x.textContent=e.nodeValue,O.removeChild(e),e=x,d=Xc(e),E=d.indexOf("<")!==-1,i.reduceWhiteSpace!==!1&&(d=d.replace(Bd," ").replace(Md,"")),E&&(d=d.split("<").join("{{LT}}")),w=d.length,_=(d.charAt(0)===" "?p:"")+t(),m=0;m":D,m+=F-1;else if(c(D)&&!c(d.charAt(m-1))&&m){for(_+=f?h:"",f=0;c(d.charAt(m+1));)_+=p,m++;m===w-1?_+=p:d.charAt(m+1)!==")"&&(_+=p+t(),f=1)}else D==="{"&&d.substr(m,6)==="{{LT}}"?(_+=a?r()+"{{LT}}":"{{LT}}",m+=5):D.charCodeAt(0)>=55296&&D.charCodeAt(0)<=56319||d.charCodeAt(m+1)>=65024&&d.charCodeAt(m+1)<=65039?(C=((d.substr(m,12).split(Ld)||[])[1]||"").length||2,_+=a&&D!==" "?r()+d.substr(m,C)+"":d.substr(m,C),m+=C-1):_+=a&&D!==" "?r()+D+"":D;e.outerHTML=_+(f?h:""),E&&Kc(O,"{{LT}}","<")},$d=function o(e,i,t,r){var n=co(e.childNodes),s=n.length,a=Qa(i),u,l;if(e.nodeType!==3||s>1){for(i.absolute=!1,u=0;u-1;)c=this.elements[r],this._originals[r]={html:c.innerHTML,style:c.getAttribute("style")},u=c.clientHeight,l=c.clientWidth,$d(c,t,s,a),Vd(c,t,this.chars,this.words,this.lines,l,u);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},e.revert=function(){var t=this._originals;if(!t)throw"revert() call wasn't scoped properly.";return this.elements.forEach(function(r,n){r.innerHTML=t[n].html,r.setAttribute("style",t[n].style)}),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},o.create=function(t,r){return new o(t,r)},o}();Ir.version="3.12.5";Ir.register=Gc;const ho=function(){function o(e,i={}){if(typeof e=="string")this.elements=document.querySelectorAll(e);else if(Array.isArray(e))this.elements=e.filter(t=>t instanceof Element);else if(e instanceof NodeList||e instanceof Element)this.elements=e;else{console.warn("Invalid selector or elements provided to Magnetic constructor");return}!Array.isArray(this.elements)&&!(this.elements instanceof NodeList)&&(this.elements=[this.elements]),this.options={y:.05,x:.05,s:2,rs:1.5},Array.from(this.elements).forEach(t=>{const r=t.dataset.magnetic?JSON.parse(t.dataset.magnetic):{},n={...this.options,...i,...r};t.dataset.magneticInit||(t.dataset.magneticInit="true",this.bind(t,n))})}return o.prototype.bind=function(e,i){const t=()=>{const s=e.getBoundingClientRect();this.y=s.top,this.x=s.left,this.width=s.width,this.height=s.height},r=s=>{const a=(s.clientY-this.y-this.height/2)*i.y,u=(s.clientX-this.x-this.width/2)*i.x;this.move(e,u,a,i.s)},n=()=>{this.move(e,0,0,i.rs)};e.addEventListener("mouseenter",t),e.addEventListener("mousemove",r),e.addEventListener("mouseleave",n),e.addEventListener("click",()=>{this.move(e,0,0,1.5),e.removeEventListener("mouseenter",t),e.removeEventListener("mousemove",r),e.removeEventListener("mouseleave",n)})},o.prototype.move=function(e,i,t,r){R.to(e,{y:t,x:i,force3D:!0,overwrite:"auto",duration:r,ease:"power3.out"})},{make:function(e,i){new o(e,i)}}}();/*! * Cuberto Mouse Follower * https://cuberto.com/ * * @version 1.1.2 * @author Cuberto, Artem Dordzhiev (Draft) - */var Qc=function(){o.registerGSAP=function(t){o.gsap=t};function o(i){i===void 0&&(i={}),this.options=Object.assign({},{el:null,container:document.body,className:"mf-cursor",innerClassName:"mf-cursor-inner",textClassName:"mf-cursor-text",mediaClassName:"mf-cursor-media",mediaBoxClassName:"mf-cursor-media-box",iconSvgClassName:"mf-svgsprite",iconSvgNamePrefix:"-",iconSvgSrc:"",dataAttr:"cursor",hiddenState:"-hidden",textState:"-text",iconState:"-icon",activeState:"-active",mediaState:"-media",stateDetection:{"-pointer":"a,button"},visible:!0,visibleOnState:!1,speed:.55,ease:"expo.out",overwrite:!0,skewing:0,skewingText:2,skewingIcon:2,skewingMedia:2,skewingDelta:.001,skewingDeltaMax:.15,stickDelta:.15,showTimeout:0,hideOnLeave:!0,hideTimeout:300,hideMediaTimeout:300,initialPos:[-window.innerWidth,-window.innerHeight]},i),this.options.visible&&i.stateDetection==null&&(this.options.stateDetection["-hidden"]="iframe"),this.gsap=o.gsap||window.gsap,this.el=typeof this.options.el=="string"?document.querySelector(this.options.el):this.options.el,this.container=typeof this.options.container=="string"?document.querySelector(this.options.container):this.options.container,this.skewing=this.options.skewing,this.pos={x:this.options.initialPos[0],y:this.options.initialPos[1]},this.vel={x:0,y:0},this.event={},this.events=[],this.init()}var e=o.prototype;return e.init=function(){this.el||this.create(),this.createSetter(),this.bind(),this.render(!0),this.ticker=this.render.bind(this,!1),this.gsap.ticker.add(this.ticker)},e.create=function(){this.el=document.createElement("div"),this.el.className=this.options.className,this.el.classList.add(this.options.hiddenState),this.inner=document.createElement("div"),this.inner.className=this.options.innerClassName,this.text=document.createElement("div"),this.text.className=this.options.textClassName,this.media=document.createElement("div"),this.media.className=this.options.mediaClassName,this.mediaBox=document.createElement("div"),this.mediaBox.className=this.options.mediaBoxClassName,this.media.appendChild(this.mediaBox),this.inner.appendChild(this.media),this.inner.appendChild(this.text),this.el.appendChild(this.inner),this.container.appendChild(this.el)},e.createSetter=function(){this.setter={x:this.gsap.quickSetter(this.el,"x","px"),y:this.gsap.quickSetter(this.el,"y","px"),rotation:this.gsap.quickSetter(this.el,"rotation","deg"),scaleX:this.gsap.quickSetter(this.el,"scaleX"),scaleY:this.gsap.quickSetter(this.el,"scaleY"),wc:this.gsap.quickSetter(this.el,"willChange"),inner:{rotation:this.gsap.quickSetter(this.inner,"rotation","deg")}}},e.bind=function(){var t=this;this.event.mouseleave=function(){return t.hide()},this.event.mouseenter=function(){return t.show()},this.event.mousedown=function(){return t.addState(t.options.activeState)},this.event.mouseup=function(){return t.removeState(t.options.activeState)},this.event.mousemoveOnce=function(){return t.show()},this.event.mousemove=function(r){t.gsap.to(t.pos,{x:t.stick?t.stick.x-(t.stick.x-r.clientX)*t.options.stickDelta:r.clientX,y:t.stick?t.stick.y-(t.stick.y-r.clientY)*t.options.stickDelta:r.clientY,overwrite:t.options.overwrite,ease:t.options.ease,duration:t.visible?t.options.speed:0,onUpdate:function(){return t.vel={x:r.clientX-t.pos.x,y:r.clientY-t.pos.y}}})},this.event.mouseover=function(r){for(var n=r.target;n&&n!==t.container&&!(r.relatedTarget&&n.contains(r.relatedTarget));n=n.parentNode){for(var s in t.options.stateDetection)n.matches(t.options.stateDetection[s])&&t.addState(s);if(t.options.dataAttr){var a=t.getFromDataset(n);a.state&&t.addState(a.state),a.text&&t.setText(a.text),a.icon&&t.setIcon(a.icon),a.img&&t.setImg(a.img),a.video&&t.setVideo(a.video),typeof a.show<"u"&&t.show(),typeof a.stick<"u"&&t.setStick(a.stick||n)}}},this.event.mouseout=function(r){for(var n=r.target;n&&n!==t.container&&!(r.relatedTarget&&n.contains(r.relatedTarget));n=n.parentNode){for(var s in t.options.stateDetection)n.matches(t.options.stateDetection[s])&&t.removeState(s);if(t.options.dataAttr){var a=t.getFromDataset(n);a.state&&t.removeState(a.state),a.text&&t.removeText(),a.icon&&t.removeIcon(),a.img&&t.removeImg(),a.video&&t.removeVideo(),typeof a.show<"u"&&t.hide(),typeof a.stick<"u"&&t.removeStick()}}},this.options.hideOnLeave&&this.container.addEventListener("mouseleave",this.event.mouseleave,{passive:!0}),this.options.visible&&this.container.addEventListener("mouseenter",this.event.mouseenter,{passive:!0}),this.options.activeState&&(this.container.addEventListener("mousedown",this.event.mousedown,{passive:!0}),this.container.addEventListener("mouseup",this.event.mouseup,{passive:!0})),this.container.addEventListener("mousemove",this.event.mousemove,{passive:!0}),this.options.visible&&this.container.addEventListener("mousemove",this.event.mousemoveOnce,{passive:!0,once:!0}),(this.options.stateDetection||this.options.dataAttr)&&(this.container.addEventListener("mouseover",this.event.mouseover,{passive:!0}),this.container.addEventListener("mouseout",this.event.mouseout,{passive:!0}))},e.render=function(t){if(t!==!0&&(this.vel.y===0||this.vel.x===0)){this.setter.wc("auto");return}if(this.trigger("render"),this.setter.wc("transform"),this.setter.x(this.pos.x),this.setter.y(this.pos.y),this.skewing){var r=Math.sqrt(Math.pow(this.vel.x,2)+Math.pow(this.vel.y,2)),n=Math.min(r*this.options.skewingDelta,this.options.skewingDeltaMax)*this.skewing,s=Math.atan2(this.vel.y,this.vel.x)*180/Math.PI;this.setter.rotation(s),this.setter.scaleX(1+n),this.setter.scaleY(1-n),this.setter.inner.rotation(-s)}},e.show=function(){var t=this;this.trigger("show"),clearInterval(this.visibleInt),this.visibleInt=setTimeout(function(){t.el.classList.remove(t.options.hiddenState),t.visible=!0,t.render(!0)},this.options.showTimeout)},e.hide=function(){var t=this;this.trigger("hide"),clearInterval(this.visibleInt),this.el.classList.add(this.options.hiddenState),this.visibleInt=setTimeout(function(){return t.visible=!1},this.options.hideTimeout)},e.toggle=function(t){t===!0||t!==!1&&!this.visible?this.show():this.hide()},e.addState=function(t){var r;if(this.trigger("addState",t),t===this.options.hiddenState)return this.hide();(r=this.el.classList).add.apply(r,t.split(" ")),this.options.visibleOnState&&this.show()},e.removeState=function(t){var r;if(this.trigger("removeState",t),t===this.options.hiddenState)return this.show();(r=this.el.classList).remove.apply(r,t.split(" ")),this.options.visibleOnState&&this.el.className===this.options.className&&this.hide()},e.toggleState=function(t,r){r===!0||r!==!1&&!this.el.classList.contains(t)?this.addState(t):this.removeState(t)},e.setSkewing=function(t){this.gsap.to(this,{skewing:t})},e.removeSkewing=function(){this.gsap.to(this,{skewing:this.options.skewing})},e.setStick=function(t){var r=typeof t=="string"?document.querySelector(t):t,n=r.getBoundingClientRect();this.stick={y:n.top+n.height/2,x:n.left+n.width/2}},e.removeStick=function(){this.stick=!1},e.setText=function(t){this.text.innerHTML=t,this.addState(this.options.textState),this.setSkewing(this.options.skewingText)},e.removeText=function(){this.removeState(this.options.textState),this.removeSkewing()},e.setIcon=function(t,r){r===void 0&&(r=""),this.text.innerHTML=""),this.addState(this.options.iconState),this.setSkewing(this.options.skewingIcon)},e.removeIcon=function(){this.removeState(this.options.iconState),this.removeSkewing()},e.setMedia=function(t){var r=this;clearTimeout(this.mediaInt),t&&(this.mediaBox.innerHTML="",this.mediaBox.appendChild(t)),this.mediaInt=setTimeout(function(){return r.addState(r.options.mediaState)},20),this.setSkewing(this.options.skewingMedia)},e.removeMedia=function(){var t=this;clearTimeout(this.mediaInt),this.removeState(this.options.mediaState),this.mediaInt=setTimeout(function(){return t.mediaBox.innerHTML=""},this.options.hideMediaTimeout),this.removeSkewing()},e.setImg=function(t){this.mediaImg||(this.mediaImg=new Image),this.mediaImg.src!==t&&(this.mediaImg.src=t),this.setMedia(this.mediaImg)},e.removeImg=function(){this.removeMedia()},e.setVideo=function(t){this.mediaVideo||(this.mediaVideo=document.createElement("video"),this.mediaVideo.muted=!0,this.mediaVideo.loop=!0,this.mediaVideo.autoplay=!0),this.mediaVideo.src!==t&&(this.mediaVideo.src=t,this.mediaVideo.load()),this.mediaVideo.play(),this.setMedia(this.mediaVideo)},e.removeVideo=function(){this.mediaVideo&&this.mediaVideo.readyState>2&&this.mediaVideo.pause(),this.removeMedia()},e.on=function(t,r){this.events[t]instanceof Array||this.off(t),this.events[t].push(r)},e.off=function(t,r){r?this.events[t]=this.events[t].filter(function(n){return n!==r}):this.events[t]=[]},e.trigger=function(t){var r=arguments,n=this;this.events[t]&&this.events[t].forEach(function(s){return s.call.apply(s,[n,n].concat([].slice.call(r,1)))})},e.getFromDataset=function(t){var r=t.dataset;return{state:r[this.options.dataAttr],show:r[this.options.dataAttr+"Show"],text:r[this.options.dataAttr+"Text"],icon:r[this.options.dataAttr+"Icon"],img:r[this.options.dataAttr+"Img"],video:r[this.options.dataAttr+"Video"],stick:r[this.options.dataAttr+"Stick"]}},e.destroy=function(){this.trigger("destroy"),this.gsap.ticker.remove(this.ticker),this.container.removeEventListener("mouseleave",this.event.mouseleave),this.container.removeEventListener("mouseenter",this.event.mouseenter),this.container.removeEventListener("mousedown",this.event.mousedown),this.container.removeEventListener("mouseup",this.event.mouseup),this.container.removeEventListener("mousemove",this.event.mousemove),this.container.removeEventListener("mousemove",this.event.mousemoveOnce),this.container.removeEventListener("mouseover",this.event.mouseover),this.container.removeEventListener("mouseout",this.event.mouseout),this.el&&(this.container.removeChild(this.el),this.el=null,this.mediaImg=null,this.mediaVideo=null)},o}();const Tr=o=>M.getProperty(document.body)(o);function Hd(){return window.matchMedia("(pointer:fine)").matches}Qc.registerGSAP(M);const Fr={_cursorInstance:{},init(){Hd()&&Object.keys(this._cursorInstance).length===0&&(this._cursorInstance=new Qc({className:"cursor",innerClassName:"cursor__inner",textClassName:"cursor__text",mediaClassName:"cursor__media",mediaBoxClassName:"cursor__media-box",iconSvgClassName:"cursor__svgsprite",dataAttr:!1,hiddenState:"cursor--hidden",textState:"cursor--text",iconState:"cursor--icon",activeState:"cursor--active",mediaState:"cursor--media",stateDetection:!1,speed:.3,ease:"expo.out",overwrite:!0,skewing:0,skewingText:0,skewingIcon:0,skewingMedia:0,skewingDelta:0,skewingDeltaMax:0}),document.body.style.cursor="none")},getInstance(){const o={get:(e,i)=>Object.keys(this._cursorInstance).length===0?typeof i=="string"?()=>{}:void 0:Reflect.get(e,i)};return new Proxy(this._cursorInstance,o)}};M.registerPlugin(ce,Ri);class Yd{constructor(){X(this,"namespace","home");X(this,"header",null);X(this,"headerName",null);X(this,"homeContentSections",null);X(this,"videoContainer",null);X(this,"videoElement",null);X(this,"beforeEnter",e=>{this.header=document.querySelector(".home-header__name"),this.headerName=document.querySelector(".header__name"),this.homeContentSections=document.querySelectorAll(".home-content__section"),M.set(".home-header, .home-content__media-container",{position:"absolute",top:0}),M.set([this.header,this.headerName,this.homeContentSections],{autoAlpha:0}),M.set(this.headerName,{autoAlpha:0})});X(this,"afterEnter",e=>{this.addVideo(),this.introAnimation(),this.setupContent()});X(this,"afterLeave",e=>{this.removeVideo()});X(this,"introAnimation",()=>{M.set([this.header,this.homeContentSections],{autoAlpha:1});const e=new Ri(this.header,{charsClass:"home-header__char"}),i=new Ri("h2.home-content__section-header",{charsClass:"home-content__section-header-char"});M.set([e.lines,i.lines],{overflow:"hidden"}),M.set([e.chars,i.chars],{paddingBottom:"0.15em"}),M.set([e.lines.slice(1),i.lines.slice(1)],{marginTop:"-0.15em"});const t=M.timeline();e.lines.forEach(r=>{t.from(r.querySelectorAll(".home-header__char"),{yPercent:100,duration:1,ease:"back.out(.5)",stagger:.02},">-75%")}),t.to(this.header,{autoAlpha:0,filter:"blur(40px)",y:-100},"+=.25"),t.fromTo(this.headerName,{autoAlpha:0,filter:"blur(40px)",y:50},{autoAlpha:1,filter:"blur(0px)",y:0},"<+25%"),t.fromTo(this.videoContainer,{autoAlpha:0,filter:"blur(60px)",scale:1.25},{autoAlpha:1,filter:"blur(0px)",scale:1},"<"),i.lines.forEach((r,n)=>{const s=n===0?">-50%":">-75%";t.from(r.querySelectorAll(".home-content__section-header-char"),{yPercent:100,duration:1,ease:"back.out(.5)",stagger:{each:.01,from:"end"}},s)})});X(this,"setupContent",()=>{const[e,i]=M.utils.toArray(".home-content__section-text"),t=new Ri("h3.home-content__section-header",{charsClass:"home-content__section-header-char"}),[r,n]=M.utils.toArray(".home-content__section");M.set([t.lines],{overflow:"hidden"}),M.set(t.chars,{paddingBottom:"0.15em"}),M.set(t.lines.slice(1),{marginTop:"-0.15em"});const s=new Ri(e,{type:"words"});M.from(s.words,{autoAlpha:0,stagger:.01,scrollTrigger:{trigger:e,start:"top 90%",toggleActions:"play none none reverse"}});const a=M.timeline({scrollTrigger:{trigger:r,start:"bottom center",toggleActions:"play none none reverse"}});a.to(r,{autoAlpha:0,filter:"blur(60px)",yPercent:-10,duration:1}),a.from(n,{autoAlpha:0,filter:"blur(60px)",yPercent:10,duration:1},"<");const u=M.utils.toArray(".home-content__section-links .button");ho.make(u),u.forEach(l=>{const c=Fr.getInstance();l.addEventListener("mouseenter",()=>c.addState("cursor--hidden")),l.addEventListener("mouseleave",()=>c.removeState("cursor--hidden"))})});X(this,"addVideo",()=>{this.videoContainer||(this.videoContainer=document.createElement("div"),this.videoContainer.classList.add("home-video"),this.videoElement=document.createElement("video"),this.videoElement.classList.add("home-video__media"),this.videoElement.muted=!0,this.videoElement.playsInline=!0,this.videoElement.preload="auto",this.videoElement.loop=!0,this.videoElement.autoplay=!0,this.videoElement.src="https://cdn.jsdelivr.net/gh/RGRMdesign/lisettewijdemans@0.0.16/dist/assets/video.mp4",M.set(this.videoContainer,{autoAlpha:0}),M.set(this.videoElement,{opacity:.2,filter:"blur(4px)",transform:"scale(1.2)"}),this.videoContainer.appendChild(this.videoElement),document.body.appendChild(this.videoContainer))});X(this,"removeVideo",()=>{this.videoContainer!==null&&(this.videoContainer.remove(),this.videoContainer=null,this.videoElement=null)})}}const Xd=new Yd;class Wd{constructor(){X(this,"namespace","artwork-overview");X(this,"artworkCards",null);X(this,"artworkImages",null);X(this,"beforeEnter",e=>{});X(this,"afterEnter",e=>{this.artworkCards=M.utils.toArray(".artwork-card"),this.artworkImages=M.utils.toArray(".artwork-card__image"),bt.getInstance().effects(this.artworkImages,{speed:"auto"}),this.artworkCards.forEach(i=>{bt.getInstance().effects(i,{lag:M.utils.random(.2,.6)})}),this.setHoverEffects(),this.enterAnimation()});X(this,"reorderCards",()=>{const e=document.querySelector(".artwork-overview__items-container"),i=Array.from(e.children),t=3,r=Array.from({length:t},()=>[]);i.forEach((n,s)=>{const a=s%t;r[a].push(n)}),e.innerHTML="",r.forEach(n=>{n.forEach(s=>{e.appendChild(s)})})});X(this,"setHoverEffects",()=>{const e=M.utils.toArray(".artwork-card");ho.make(e),e.forEach(i=>{const t=M.utils.selector(i),r=i.classList[0],n=t(`.${r}__link`);t(`.${r}__image`),M.set(n,{cursor:"none"}),M.set(i,{backgroundColor:"transparent"}),ze.create({target:n,type:"pointer",onHover:()=>{Fr.getInstance().setText("Bekijk"),M.to(i,{backgroundColor:Tr("--artwork-card--hover-background"),duration:.3})},onHoverEnd:()=>{Fr.getInstance().removeText(),M.to(i,{backgroundColor:"transparent",duration:.3})},onClick:s=>{s.disable(),Fr.getInstance().removeText()}})})});X(this,"enterAnimation",()=>{const e=M.timeline({defaults:{duration:1.5,stagger:.2,ease:"power4.out"}});e.fromTo(".artwork-card__image-container",{clipPath:"inset(0% 0 100% 0)"},{clipPath:"inset(0% 0 0% 0)"}),e.from(".artwork-card",{y:25},"<"),e.from(".artwork-card__name, .artwork-card__dimensions",{autoAlpha:0,stagger:.2},"<+25%")})}}const Ud=new Wd;class Gd{constructor(){X(this,"namespace","artwork-details");X(this,"beforeEnter",e=>{});X(this,"afterEnter",e=>{})}}const jd=new Gd;/*! + */var Qc=function(){o.registerGSAP=function(t){o.gsap=t};function o(i){i===void 0&&(i={}),this.options=Object.assign({},{el:null,container:document.body,className:"mf-cursor",innerClassName:"mf-cursor-inner",textClassName:"mf-cursor-text",mediaClassName:"mf-cursor-media",mediaBoxClassName:"mf-cursor-media-box",iconSvgClassName:"mf-svgsprite",iconSvgNamePrefix:"-",iconSvgSrc:"",dataAttr:"cursor",hiddenState:"-hidden",textState:"-text",iconState:"-icon",activeState:"-active",mediaState:"-media",stateDetection:{"-pointer":"a,button"},visible:!0,visibleOnState:!1,speed:.55,ease:"expo.out",overwrite:!0,skewing:0,skewingText:2,skewingIcon:2,skewingMedia:2,skewingDelta:.001,skewingDeltaMax:.15,stickDelta:.15,showTimeout:0,hideOnLeave:!0,hideTimeout:300,hideMediaTimeout:300,initialPos:[-window.innerWidth,-window.innerHeight]},i),this.options.visible&&i.stateDetection==null&&(this.options.stateDetection["-hidden"]="iframe"),this.gsap=o.gsap||window.gsap,this.el=typeof this.options.el=="string"?document.querySelector(this.options.el):this.options.el,this.container=typeof this.options.container=="string"?document.querySelector(this.options.container):this.options.container,this.skewing=this.options.skewing,this.pos={x:this.options.initialPos[0],y:this.options.initialPos[1]},this.vel={x:0,y:0},this.event={},this.events=[],this.init()}var e=o.prototype;return e.init=function(){this.el||this.create(),this.createSetter(),this.bind(),this.render(!0),this.ticker=this.render.bind(this,!1),this.gsap.ticker.add(this.ticker)},e.create=function(){this.el=document.createElement("div"),this.el.className=this.options.className,this.el.classList.add(this.options.hiddenState),this.inner=document.createElement("div"),this.inner.className=this.options.innerClassName,this.text=document.createElement("div"),this.text.className=this.options.textClassName,this.media=document.createElement("div"),this.media.className=this.options.mediaClassName,this.mediaBox=document.createElement("div"),this.mediaBox.className=this.options.mediaBoxClassName,this.media.appendChild(this.mediaBox),this.inner.appendChild(this.media),this.inner.appendChild(this.text),this.el.appendChild(this.inner),this.container.appendChild(this.el)},e.createSetter=function(){this.setter={x:this.gsap.quickSetter(this.el,"x","px"),y:this.gsap.quickSetter(this.el,"y","px"),rotation:this.gsap.quickSetter(this.el,"rotation","deg"),scaleX:this.gsap.quickSetter(this.el,"scaleX"),scaleY:this.gsap.quickSetter(this.el,"scaleY"),wc:this.gsap.quickSetter(this.el,"willChange"),inner:{rotation:this.gsap.quickSetter(this.inner,"rotation","deg")}}},e.bind=function(){var t=this;this.event.mouseleave=function(){return t.hide()},this.event.mouseenter=function(){return t.show()},this.event.mousedown=function(){return t.addState(t.options.activeState)},this.event.mouseup=function(){return t.removeState(t.options.activeState)},this.event.mousemoveOnce=function(){return t.show()},this.event.mousemove=function(r){t.gsap.to(t.pos,{x:t.stick?t.stick.x-(t.stick.x-r.clientX)*t.options.stickDelta:r.clientX,y:t.stick?t.stick.y-(t.stick.y-r.clientY)*t.options.stickDelta:r.clientY,overwrite:t.options.overwrite,ease:t.options.ease,duration:t.visible?t.options.speed:0,onUpdate:function(){return t.vel={x:r.clientX-t.pos.x,y:r.clientY-t.pos.y}}})},this.event.mouseover=function(r){for(var n=r.target;n&&n!==t.container&&!(r.relatedTarget&&n.contains(r.relatedTarget));n=n.parentNode){for(var s in t.options.stateDetection)n.matches(t.options.stateDetection[s])&&t.addState(s);if(t.options.dataAttr){var a=t.getFromDataset(n);a.state&&t.addState(a.state),a.text&&t.setText(a.text),a.icon&&t.setIcon(a.icon),a.img&&t.setImg(a.img),a.video&&t.setVideo(a.video),typeof a.show<"u"&&t.show(),typeof a.stick<"u"&&t.setStick(a.stick||n)}}},this.event.mouseout=function(r){for(var n=r.target;n&&n!==t.container&&!(r.relatedTarget&&n.contains(r.relatedTarget));n=n.parentNode){for(var s in t.options.stateDetection)n.matches(t.options.stateDetection[s])&&t.removeState(s);if(t.options.dataAttr){var a=t.getFromDataset(n);a.state&&t.removeState(a.state),a.text&&t.removeText(),a.icon&&t.removeIcon(),a.img&&t.removeImg(),a.video&&t.removeVideo(),typeof a.show<"u"&&t.hide(),typeof a.stick<"u"&&t.removeStick()}}},this.options.hideOnLeave&&this.container.addEventListener("mouseleave",this.event.mouseleave,{passive:!0}),this.options.visible&&this.container.addEventListener("mouseenter",this.event.mouseenter,{passive:!0}),this.options.activeState&&(this.container.addEventListener("mousedown",this.event.mousedown,{passive:!0}),this.container.addEventListener("mouseup",this.event.mouseup,{passive:!0})),this.container.addEventListener("mousemove",this.event.mousemove,{passive:!0}),this.options.visible&&this.container.addEventListener("mousemove",this.event.mousemoveOnce,{passive:!0,once:!0}),(this.options.stateDetection||this.options.dataAttr)&&(this.container.addEventListener("mouseover",this.event.mouseover,{passive:!0}),this.container.addEventListener("mouseout",this.event.mouseout,{passive:!0}))},e.render=function(t){if(t!==!0&&(this.vel.y===0||this.vel.x===0)){this.setter.wc("auto");return}if(this.trigger("render"),this.setter.wc("transform"),this.setter.x(this.pos.x),this.setter.y(this.pos.y),this.skewing){var r=Math.sqrt(Math.pow(this.vel.x,2)+Math.pow(this.vel.y,2)),n=Math.min(r*this.options.skewingDelta,this.options.skewingDeltaMax)*this.skewing,s=Math.atan2(this.vel.y,this.vel.x)*180/Math.PI;this.setter.rotation(s),this.setter.scaleX(1+n),this.setter.scaleY(1-n),this.setter.inner.rotation(-s)}},e.show=function(){var t=this;this.trigger("show"),clearInterval(this.visibleInt),this.visibleInt=setTimeout(function(){t.el.classList.remove(t.options.hiddenState),t.visible=!0,t.render(!0)},this.options.showTimeout)},e.hide=function(){var t=this;this.trigger("hide"),clearInterval(this.visibleInt),this.el.classList.add(this.options.hiddenState),this.visibleInt=setTimeout(function(){return t.visible=!1},this.options.hideTimeout)},e.toggle=function(t){t===!0||t!==!1&&!this.visible?this.show():this.hide()},e.addState=function(t){var r;if(this.trigger("addState",t),t===this.options.hiddenState)return this.hide();(r=this.el.classList).add.apply(r,t.split(" ")),this.options.visibleOnState&&this.show()},e.removeState=function(t){var r;if(this.trigger("removeState",t),t===this.options.hiddenState)return this.show();(r=this.el.classList).remove.apply(r,t.split(" ")),this.options.visibleOnState&&this.el.className===this.options.className&&this.hide()},e.toggleState=function(t,r){r===!0||r!==!1&&!this.el.classList.contains(t)?this.addState(t):this.removeState(t)},e.setSkewing=function(t){this.gsap.to(this,{skewing:t})},e.removeSkewing=function(){this.gsap.to(this,{skewing:this.options.skewing})},e.setStick=function(t){var r=typeof t=="string"?document.querySelector(t):t,n=r.getBoundingClientRect();this.stick={y:n.top+n.height/2,x:n.left+n.width/2}},e.removeStick=function(){this.stick=!1},e.setText=function(t){this.text.innerHTML=t,this.addState(this.options.textState),this.setSkewing(this.options.skewingText)},e.removeText=function(){this.removeState(this.options.textState),this.removeSkewing()},e.setIcon=function(t,r){r===void 0&&(r=""),this.text.innerHTML=""),this.addState(this.options.iconState),this.setSkewing(this.options.skewingIcon)},e.removeIcon=function(){this.removeState(this.options.iconState),this.removeSkewing()},e.setMedia=function(t){var r=this;clearTimeout(this.mediaInt),t&&(this.mediaBox.innerHTML="",this.mediaBox.appendChild(t)),this.mediaInt=setTimeout(function(){return r.addState(r.options.mediaState)},20),this.setSkewing(this.options.skewingMedia)},e.removeMedia=function(){var t=this;clearTimeout(this.mediaInt),this.removeState(this.options.mediaState),this.mediaInt=setTimeout(function(){return t.mediaBox.innerHTML=""},this.options.hideMediaTimeout),this.removeSkewing()},e.setImg=function(t){this.mediaImg||(this.mediaImg=new Image),this.mediaImg.src!==t&&(this.mediaImg.src=t),this.setMedia(this.mediaImg)},e.removeImg=function(){this.removeMedia()},e.setVideo=function(t){this.mediaVideo||(this.mediaVideo=document.createElement("video"),this.mediaVideo.muted=!0,this.mediaVideo.loop=!0,this.mediaVideo.autoplay=!0),this.mediaVideo.src!==t&&(this.mediaVideo.src=t,this.mediaVideo.load()),this.mediaVideo.play(),this.setMedia(this.mediaVideo)},e.removeVideo=function(){this.mediaVideo&&this.mediaVideo.readyState>2&&this.mediaVideo.pause(),this.removeMedia()},e.on=function(t,r){this.events[t]instanceof Array||this.off(t),this.events[t].push(r)},e.off=function(t,r){r?this.events[t]=this.events[t].filter(function(n){return n!==r}):this.events[t]=[]},e.trigger=function(t){var r=arguments,n=this;this.events[t]&&this.events[t].forEach(function(s){return s.call.apply(s,[n,n].concat([].slice.call(r,1)))})},e.getFromDataset=function(t){var r=t.dataset;return{state:r[this.options.dataAttr],show:r[this.options.dataAttr+"Show"],text:r[this.options.dataAttr+"Text"],icon:r[this.options.dataAttr+"Icon"],img:r[this.options.dataAttr+"Img"],video:r[this.options.dataAttr+"Video"],stick:r[this.options.dataAttr+"Stick"]}},e.destroy=function(){this.trigger("destroy"),this.gsap.ticker.remove(this.ticker),this.container.removeEventListener("mouseleave",this.event.mouseleave),this.container.removeEventListener("mouseenter",this.event.mouseenter),this.container.removeEventListener("mousedown",this.event.mousedown),this.container.removeEventListener("mouseup",this.event.mouseup),this.container.removeEventListener("mousemove",this.event.mousemove),this.container.removeEventListener("mousemove",this.event.mousemoveOnce),this.container.removeEventListener("mouseover",this.event.mouseover),this.container.removeEventListener("mouseout",this.event.mouseout),this.el&&(this.container.removeChild(this.el),this.el=null,this.mediaImg=null,this.mediaVideo=null)},o}();const kr=o=>R.getProperty(document.body)(o);function Hd(){return window.matchMedia("(pointer:fine)").matches}Qc.registerGSAP(R);const Tr={_cursorInstance:{},init(){Hd()&&Object.keys(this._cursorInstance).length===0&&(this._cursorInstance=new Qc({className:"cursor",innerClassName:"cursor__inner",textClassName:"cursor__text",mediaClassName:"cursor__media",mediaBoxClassName:"cursor__media-box",iconSvgClassName:"cursor__svgsprite",dataAttr:!1,hiddenState:"cursor--hidden",textState:"cursor--text",iconState:"cursor--icon",activeState:"cursor--active",mediaState:"cursor--media",stateDetection:!1,speed:.3,ease:"expo.out",overwrite:!0,skewing:0,skewingText:0,skewingIcon:0,skewingMedia:0,skewingDelta:0,skewingDeltaMax:0}),document.body.style.cursor="none")},getInstance(){const o={get:(e,i)=>Object.keys(this._cursorInstance).length===0?typeof i=="string"?()=>{}:void 0:Reflect.get(e,i)};return new Proxy(this._cursorInstance,o)}};R.registerPlugin(ce,Ir);class Yd{constructor(){X(this,"namespace","home");X(this,"introHeader",null);X(this,"logo",null);X(this,"homeContent",null);X(this,"videoContainer",null);X(this,"videoElement",null);X(this,"beforeEnter",e=>{this.introHeader=document.querySelector(".home-header__name"),this.logo=document.querySelector(".header__name"),this.homeContent=document.querySelector(".home-content"),R.set(".home-header",{position:"absolute",top:0}),R.set([this.introHeader,this.logo,this.homeContent],{autoAlpha:0})});X(this,"afterEnter",e=>{this.addVideo(),this.introAnimation()});X(this,"afterLeave",e=>{this.removeVideo()});X(this,"introAnimation",()=>{R.set([this.introHeader,this.homeContent],{autoAlpha:1});const e=new Ir(this.introHeader,{charsClass:"home-header__char"}),i=new Ir(".home-content__circle-heading",{charsClass:"home-content__circle-heading-char"});R.set([e.lines,i.lines],{overflow:"hidden"}),R.set([e.chars,i.chars],{paddingBottom:"0.15em"}),R.set([e.lines.slice(1),i.lines.slice(1)],{marginTop:"-0.15em"});const t=R.timeline();e.lines.forEach(r=>{t.from(r.querySelectorAll(".home-header__char"),{yPercent:100,duration:1,ease:"back.out(.5)",stagger:.02},">-75%")}),t.to(this.introHeader,{autoAlpha:0,filter:"blur(40px)",y:-100},"+=.25"),t.fromTo(this.logo,{autoAlpha:0,filter:"blur(40px)",y:50},{autoAlpha:1,filter:"blur(0px)",y:0},"<+25%"),t.fromTo(this.videoContainer,{autoAlpha:0,filter:"blur(60px)",scale:1.25},{autoAlpha:1,filter:"blur(0px)",scale:1},"<"),i.lines.forEach((r,n)=>{const s=n===0?">-50%":">-75%";t.from(r.querySelectorAll(".home-content__circle-heading-char"),{yPercent:100,duration:1,ease:"back.out(.5)",stagger:{each:.01,from:"end"}},s)})});X(this,"setupContent",()=>{const e=R.utils.toArray(".home-content__section-links .button");ho.make(e),e.forEach(i=>{const t=Tr.getInstance();i.addEventListener("mouseenter",()=>t.addState("cursor--hidden")),i.addEventListener("mouseleave",()=>t.removeState("cursor--hidden"))})});X(this,"addVideo",()=>{this.videoContainer||(this.videoContainer=document.createElement("div"),this.videoContainer.classList.add("home-video"),this.videoElement=document.createElement("video"),this.videoElement.classList.add("home-video__media"),this.videoElement.muted=!0,this.videoElement.playsInline=!0,this.videoElement.preload="auto",this.videoElement.loop=!0,this.videoElement.autoplay=!0,this.videoElement.src="https://cdn.jsdelivr.net/gh/RGRMdesign/lisettewijdemans@0.0.16/dist/assets/video.mp4",R.set(this.videoContainer,{autoAlpha:0}),R.set(this.videoElement,{opacity:.2,filter:"blur(4px)",transform:"scale(1.2)"}),this.videoContainer.appendChild(this.videoElement),document.body.appendChild(this.videoContainer))});X(this,"removeVideo",()=>{this.videoContainer!==null&&(this.videoContainer.remove(),this.videoContainer=null,this.videoElement=null)})}}const Xd=new Yd;class Wd{constructor(){X(this,"namespace","artwork-overview");X(this,"artworkCards",null);X(this,"artworkImages",null);X(this,"beforeEnter",e=>{});X(this,"afterEnter",e=>{this.artworkCards=R.utils.toArray(".artwork-card"),this.artworkImages=R.utils.toArray(".artwork-card__image"),bt.getInstance().effects(this.artworkImages,{speed:"auto"}),this.artworkCards.forEach(i=>{bt.getInstance().effects(i,{lag:R.utils.random(.2,.6)})}),this.setHoverEffects(),this.enterAnimation()});X(this,"reorderCards",()=>{const e=document.querySelector(".artwork-overview__items-container"),i=Array.from(e.children),t=3,r=Array.from({length:t},()=>[]);i.forEach((n,s)=>{const a=s%t;r[a].push(n)}),e.innerHTML="",r.forEach(n=>{n.forEach(s=>{e.appendChild(s)})})});X(this,"setHoverEffects",()=>{const e=R.utils.toArray(".artwork-card");ho.make(e),e.forEach(i=>{const t=R.utils.selector(i),r=i.classList[0],n=t(`.${r}__link`);t(`.${r}__image`),R.set(n,{cursor:"none"}),R.set(i,{backgroundColor:"transparent"}),ze.create({target:n,type:"pointer",onHover:()=>{Tr.getInstance().setText("Bekijk"),R.to(i,{backgroundColor:kr("--artwork-card--hover-background"),duration:.3})},onHoverEnd:()=>{Tr.getInstance().removeText(),R.to(i,{backgroundColor:"transparent",duration:.3})},onClick:s=>{s.disable(),Tr.getInstance().removeText()}})})});X(this,"enterAnimation",()=>{const e=R.timeline({defaults:{duration:1.5,stagger:.2,ease:"power4.out"}});e.fromTo(".artwork-card__image-container",{clipPath:"inset(0% 0 100% 0)"},{clipPath:"inset(0% 0 0% 0)"}),e.from(".artwork-card",{y:25},"<"),e.from(".artwork-card__name, .artwork-card__dimensions",{autoAlpha:0,stagger:.2},"<+25%")})}}const Ud=new Wd;class Gd{constructor(){X(this,"namespace","artwork-details");X(this,"beforeEnter",e=>{});X(this,"afterEnter",e=>{})}}const jd=new Gd;/*! * matrix 3.12.5 * https://gsap.com * @@ -68,7 +68,7 @@ var Dh=Object.defineProperty;var vh=(o,e,i)=>e in o?Dh(o,e,{enumerable:!0,config * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com -*/var Ni,Pr,Za,fo,On,Rs,eo,Xn,hi="transform",wa=hi+"Origin",Zc,Ja=function(e){var i=e.ownerDocument||e;for(!(hi in e.style)&&("msTransform"in e.style)&&(hi="msTransform",wa=hi+"Origin");i.parentNode&&(i=i.parentNode););if(Pr=window,eo=new Rr,i){Ni=i,Za=i.documentElement,fo=i.body,Xn=Ni.createElementNS("http://www.w3.org/2000/svg","g"),Xn.style.transform="none";var t=i.createElement("div"),r=i.createElement("div"),n=i&&(i.body||i.firstElementChild);n&&n.appendChild&&(n.appendChild(t),t.appendChild(r),t.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),Zc=r.offsetParent!==t,n.removeChild(t))}return i},Kd=function(e){for(var i,t;e&&e!==fo;)t=e._gsap,t&&t.uncache&&t.get(e,"x"),t&&!t.scaleX&&!t.scaleY&&t.renderTransform&&(t.scaleX=t.scaleY=1e-4,t.renderTransform(1,t),i?i.push(t):i=[t]),e=e.parentNode;return i},Jc=[],eh=[],eu=function(){return Pr.pageYOffset||Ni.scrollTop||Za.scrollTop||fo.scrollTop||0},tu=function(){return Pr.pageXOffset||Ni.scrollLeft||Za.scrollLeft||fo.scrollLeft||0},iu=function(e){return e.ownerSVGElement||((e.tagName+"").toLowerCase()==="svg"?e:null)},Qd=function o(e){if(Pr.getComputedStyle(e).position==="fixed")return!0;if(e=e.parentNode,e&&e.nodeType===1)return o(e)},Bo=function o(e,i){if(e.parentNode&&(Ni||Ja(e))){var t=iu(e),r=t?t.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",n=t?i?"rect":"g":"div",s=i!==2?0:100,a=i===3?100:0,u="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",l=Ni.createElementNS?Ni.createElementNS(r.replace(/^https/,"http"),n):Ni.createElement(n);return i&&(t?(Rs||(Rs=o(e)),l.setAttribute("width",.01),l.setAttribute("height",.01),l.setAttribute("transform","translate("+s+","+a+")"),Rs.appendChild(l)):(On||(On=o(e),On.style.cssText=u),l.style.cssText=u+"width:0.1px;height:0.1px;top:"+a+"px;left:"+s+"px",On.appendChild(l))),l}throw"Need document and parent."},Zd=function(e){for(var i=new Rr,t=0;t1?Zd(u):u.getItem(0).matrix:eo,c=u.a*l.x+u.c*l.y,p=u.b*l.x+u.d*l.y):(u=new Rr,c=p=0),i&&e.tagName.toLowerCase()==="g"&&(c=p=0),(r?t:s).appendChild(a),a.setAttribute("transform","matrix("+u.a+","+u.b+","+u.c+","+u.d+","+(u.e+c)+","+(u.f+p)+")");else{if(c=p=0,Zc)for(u=e.offsetParent,l=e;l&&(l=l.parentNode)&&l!==u&&l.parentNode;)(Pr.getComputedStyle(l)[hi]+"").length>4&&(c=l.offsetLeft,p=l.offsetTop,l=0);if(h=Pr.getComputedStyle(e),h.position!=="absolute"&&h.position!=="fixed")for(u=e.offsetParent;s&&s!==u;)c+=s.scrollLeft||0,p+=s.scrollTop||0,s=s.parentNode;l=a.style,l.top=e.offsetTop-p+"px",l.left=e.offsetLeft-c+"px",l[hi]=h[hi],l[wa]=h[wa],l.position=h.position==="fixed"?"fixed":"absolute",e.parentNode.appendChild(a)}return a},Io=function(e,i,t,r,n,s,a){return e.a=i,e.b=t,e.c=r,e.d=n,e.e=s,e.f=a,e},Rr=function(){function o(i,t,r,n,s,a){i===void 0&&(i=1),t===void 0&&(t=0),r===void 0&&(r=0),n===void 0&&(n=1),s===void 0&&(s=0),a===void 0&&(a=0),Io(this,i,t,r,n,s,a)}var e=o.prototype;return e.inverse=function(){var t=this.a,r=this.b,n=this.c,s=this.d,a=this.e,u=this.f,l=t*s-r*n||1e-10;return Io(this,s/l,-r/l,-n/l,t/l,(n*u-s*a)/l,-(t*u-r*a)/l)},e.multiply=function(t){var r=this.a,n=this.b,s=this.c,a=this.d,u=this.e,l=this.f,c=t.a,p=t.c,h=t.b,f=t.d,g=t.e,d=t.f;return Io(this,c*r+h*s,c*n+h*a,p*r+f*s,p*n+f*a,u+g*r+d*s,l+g*n+d*a)},e.clone=function(){return new o(this.a,this.b,this.c,this.d,this.e,this.f)},e.equals=function(t){var r=this.a,n=this.b,s=this.c,a=this.d,u=this.e,l=this.f;return r===t.a&&n===t.b&&s===t.c&&a===t.d&&u===t.e&&l===t.f},e.apply=function(t,r){r===void 0&&(r={});var n=t.x,s=t.y,a=this.a,u=this.b,l=this.c,c=this.d,p=this.e,h=this.f;return r.x=n*a+s*l+p||0,r.y=n*u+s*c+h||0,r},o}();function Ai(o,e,i,t){if(!o||!o.parentNode||(Ni||Ja(o)).documentElement===o)return new Rr;var r=Kd(o),n=iu(o),s=n?Jc:eh,a=Jd(o,i),u=s[0].getBoundingClientRect(),l=s[1].getBoundingClientRect(),c=s[2].getBoundingClientRect(),p=a.parentNode,h=!t&&Qd(o),f=new Rr((l.left-u.left)/100,(l.top-u.top)/100,(c.left-u.left)/100,(c.top-u.top)/100,u.left+(h?0:tu()),u.top+(h?0:eu()));if(p.removeChild(a),r)for(u=r.length;u--;)l=r[u],l.scaleX=l.scaleY=0,l.renderTransform(1,l);return e?f.inverse():f}/*! +*/var Ri,Fr,Za,fo,On,Rs,eo,Xn,hi="transform",wa=hi+"Origin",Zc,Ja=function(e){var i=e.ownerDocument||e;for(!(hi in e.style)&&("msTransform"in e.style)&&(hi="msTransform",wa=hi+"Origin");i.parentNode&&(i=i.parentNode););if(Fr=window,eo=new Rr,i){Ri=i,Za=i.documentElement,fo=i.body,Xn=Ri.createElementNS("http://www.w3.org/2000/svg","g"),Xn.style.transform="none";var t=i.createElement("div"),r=i.createElement("div"),n=i&&(i.body||i.firstElementChild);n&&n.appendChild&&(n.appendChild(t),t.appendChild(r),t.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),Zc=r.offsetParent!==t,n.removeChild(t))}return i},Kd=function(e){for(var i,t;e&&e!==fo;)t=e._gsap,t&&t.uncache&&t.get(e,"x"),t&&!t.scaleX&&!t.scaleY&&t.renderTransform&&(t.scaleX=t.scaleY=1e-4,t.renderTransform(1,t),i?i.push(t):i=[t]),e=e.parentNode;return i},Jc=[],eh=[],eu=function(){return Fr.pageYOffset||Ri.scrollTop||Za.scrollTop||fo.scrollTop||0},tu=function(){return Fr.pageXOffset||Ri.scrollLeft||Za.scrollLeft||fo.scrollLeft||0},iu=function(e){return e.ownerSVGElement||((e.tagName+"").toLowerCase()==="svg"?e:null)},Qd=function o(e){if(Fr.getComputedStyle(e).position==="fixed")return!0;if(e=e.parentNode,e&&e.nodeType===1)return o(e)},Bo=function o(e,i){if(e.parentNode&&(Ri||Ja(e))){var t=iu(e),r=t?t.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",n=t?i?"rect":"g":"div",s=i!==2?0:100,a=i===3?100:0,u="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",l=Ri.createElementNS?Ri.createElementNS(r.replace(/^https/,"http"),n):Ri.createElement(n);return i&&(t?(Rs||(Rs=o(e)),l.setAttribute("width",.01),l.setAttribute("height",.01),l.setAttribute("transform","translate("+s+","+a+")"),Rs.appendChild(l)):(On||(On=o(e),On.style.cssText=u),l.style.cssText=u+"width:0.1px;height:0.1px;top:"+a+"px;left:"+s+"px",On.appendChild(l))),l}throw"Need document and parent."},Zd=function(e){for(var i=new Rr,t=0;t1?Zd(u):u.getItem(0).matrix:eo,c=u.a*l.x+u.c*l.y,p=u.b*l.x+u.d*l.y):(u=new Rr,c=p=0),i&&e.tagName.toLowerCase()==="g"&&(c=p=0),(r?t:s).appendChild(a),a.setAttribute("transform","matrix("+u.a+","+u.b+","+u.c+","+u.d+","+(u.e+c)+","+(u.f+p)+")");else{if(c=p=0,Zc)for(u=e.offsetParent,l=e;l&&(l=l.parentNode)&&l!==u&&l.parentNode;)(Fr.getComputedStyle(l)[hi]+"").length>4&&(c=l.offsetLeft,p=l.offsetTop,l=0);if(h=Fr.getComputedStyle(e),h.position!=="absolute"&&h.position!=="fixed")for(u=e.offsetParent;s&&s!==u;)c+=s.scrollLeft||0,p+=s.scrollTop||0,s=s.parentNode;l=a.style,l.top=e.offsetTop-p+"px",l.left=e.offsetLeft-c+"px",l[hi]=h[hi],l[wa]=h[wa],l.position=h.position==="fixed"?"fixed":"absolute",e.parentNode.appendChild(a)}return a},Io=function(e,i,t,r,n,s,a){return e.a=i,e.b=t,e.c=r,e.d=n,e.e=s,e.f=a,e},Rr=function(){function o(i,t,r,n,s,a){i===void 0&&(i=1),t===void 0&&(t=0),r===void 0&&(r=0),n===void 0&&(n=1),s===void 0&&(s=0),a===void 0&&(a=0),Io(this,i,t,r,n,s,a)}var e=o.prototype;return e.inverse=function(){var t=this.a,r=this.b,n=this.c,s=this.d,a=this.e,u=this.f,l=t*s-r*n||1e-10;return Io(this,s/l,-r/l,-n/l,t/l,(n*u-s*a)/l,-(t*u-r*a)/l)},e.multiply=function(t){var r=this.a,n=this.b,s=this.c,a=this.d,u=this.e,l=this.f,c=t.a,p=t.c,h=t.b,f=t.d,g=t.e,d=t.f;return Io(this,c*r+h*s,c*n+h*a,p*r+f*s,p*n+f*a,u+g*r+d*s,l+g*n+d*a)},e.clone=function(){return new o(this.a,this.b,this.c,this.d,this.e,this.f)},e.equals=function(t){var r=this.a,n=this.b,s=this.c,a=this.d,u=this.e,l=this.f;return r===t.a&&n===t.b&&s===t.c&&a===t.d&&u===t.e&&l===t.f},e.apply=function(t,r){r===void 0&&(r={});var n=t.x,s=t.y,a=this.a,u=this.b,l=this.c,c=this.d,p=this.e,h=this.f;return r.x=n*a+s*l+p||0,r.y=n*u+s*c+h||0,r},o}();function Ai(o,e,i,t){if(!o||!o.parentNode||(Ri||Ja(o)).documentElement===o)return new Rr;var r=Kd(o),n=iu(o),s=n?Jc:eh,a=Jd(o,i),u=s[0].getBoundingClientRect(),l=s[1].getBoundingClientRect(),c=s[2].getBoundingClientRect(),p=a.parentNode,h=!t&&Qd(o),f=new Rr((l.left-u.left)/100,(l.top-u.top)/100,(c.left-u.left)/100,(c.top-u.top)/100,u.left+(h?0:tu()),u.top+(h?0:eu()));if(p.removeChild(a),r)for(u=r.length;u--;)l=r[u],l.scaleX=l.scaleY=0,l.renderTransform(1,l);return e?f.inverse():f}/*! * Flip 3.12.5 * https://gsap.com * @@ -76,11 +76,11 @@ var Dh=Object.defineProperty;var vh=(o,e,i)=>e in o?Dh(o,e,{enumerable:!0,config * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com -*/var ep=1,pn,vt,Pe,Wn,Ki,zi,xa,Ju=function(e,i){return e.actions.forEach(function(t){return t.vars[i]&&t.vars[i](t)})},ba={},el=180/Math.PI,tp=Math.PI/180,to={},tl={},po={},ru=function(e){return typeof e=="string"?e.split(" ").join("").split(","):e},ip=ru("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),go=ru("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),Un=function(e){return pn(e)[0]||console.warn("Element not found:",e)},Zr=function(e){return Math.round(e*1e4)/1e4||0},Ro=function(e,i,t){return e.forEach(function(r){return r.classList[t](i)})},il={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},ih={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},rh=function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()},Jr=function(e,i){var t={},r;for(r in e)i[r]||(t[r]=e[r]);return t},nu={},nh=function(e){var i=nu[e]=ru(e);return po[e]=i.concat(go),i},rp=function(e){var i=e._gsap||vt.core.getCache(e);return i.gmCache===vt.ticker.frame?i.gMatrix:(i.gmCache=vt.ticker.frame,i.gMatrix=Ai(e,!0,!1,!0))},np=function o(e,i,t){t===void 0&&(t=0);for(var r=e.parentNode,n=1e3*Math.pow(10,t)*(i?-1:1),s=i?-n*900:0;e;)s+=n,e=e.previousSibling;return r?s+o(r,i,t+1):s},io=function(e,i,t){return e.forEach(function(r){return r.d=np(t?r.element:r.t,i)}),e.sort(function(r,n){return r.d-n.d}),e},ss=function(e,i){for(var t=e.element.style,r=e.css=e.css||[],n=i.length,s,a;n--;)s=i[n],a=t[s]||t.getPropertyValue(s),r.push(a?s:tl[s]||(tl[s]=rh(s)),a);return t},ro=function(e){var i=e.css,t=e.element.style,r=0;for(e.cache.uncache=1;r0&&E&&(Y.style.opacity=k?U.opacity-he.opacity:"0"),an(U,he,D,T)):he.isVisible!==U.isVisible&&(he.isVisible?U.isVisible||(he.css=U.css,L.push(he),I.splice(Z--,1),l&&C&&an(U,he,D,T)):(U.isVisible&&N.push(U),I.splice(Z--,1))),D||(Y.style.maxWidth=Math.max(U.width,he.width)+"px",Y.style.maxHeight=Math.max(U.height,he.height)+"px",Y.style.minWidth=Math.min(U.width,he.width)+"px",Y.style.minHeight=Math.min(U.height,he.height)+"px"),C&&_&&Y.classList.add(_)),qe.push(U);var Ae;if(_&&(Ae=qe.map(function(A){return A.element}),C&&Ae.forEach(function(A){return A.classList.remove(_)})),ol(!1),D?(y.scaleX=function(A){return I[A].a.scaleX},y.scaleY=function(A){return I[A].a.scaleY}):(y.width=function(A){return I[A].a.width+"px"},y.height=function(A){return I[A].a.height+"px"},y.autoRound=t.autoRound||!1),y.x=function(A){return I[A].a.x+"px"},y.y=function(A){return I[A].a.y+"px"},y.rotation=function(A){return I[A].a.rotation+(x?G(A,be[A],be)*360:0)},y.skewX=function(A){return I[A].a.skewX},be=I.map(function(A){return A.t}),(w||w===0)&&(y.modifiers={zIndex:function(){return w}},y.zIndex=w,y.immediateRender=t.immediateRender!==!1),E&&(y.opacity=function(A){return I[A].sd<0?0:I[A].sd>0?I[A].a.opacity:"+=0"}),z.length){F=vt.utils.distribute(F);var R=be.slice(z.length);y.stagger=function(A,W){return F(~z.indexOf(W)?be.indexOf(I[A].swap.t):A,W,R)}}if(ip.forEach(function(A){return t[A]&&B.eventCallback(A,t[A],t[A+"Params"])}),p&&be.length){P=Jr(y,il),"scale"in p&&(p.scaleX=p.scaleY=p.scale,delete p.scale);for(ne in p)Q=Jr(p[ne],ih),Q[ne]=y[ne],!("duration"in Q)&&"duration"in y&&(Q.duration=y.duration),Q.stagger=y.stagger,v.call(B,be,Q,0),delete P[ne]}(be.length||L.length||N.length)&&(_&&B.add(function(){return Ro(Ae,_,B._zTime<0?"remove":"add")},0)&&!f&&Ro(Ae,_,"add"),be.length&&v.call(B,be,P,0)),sl(a,N,B),sl(u,L,B);var b=Pe&&Pe.timeline;b&&(b.add(B,0),Pe._final.push(function(){return rl(I,!s)})),Ve=B.duration(),B.call(function(){var A=B.time()>=Ve;A&&!b&&rl(I,!s),_&&Ro(Ae,_,A?"remove":"add")})},c&&(l=I.filter(function(S){return!S.sd&&!S.a.isVisible&&S.b.isVisible}).map(function(S){return S.a.element})),Pe){var Ge;l&&(Ge=Pe._abs).push.apply(Ge,nl(I,l)),Pe._run.push(Ze)}else l&&sh(nl(I,l)),Ze();var Je=Pe?Pe.timeline:B;return Je.revert=function(){return ou(Je,1,1)},Je},up=function o(e){e.vars.onInterrupt&&e.vars.onInterrupt.apply(e,e.vars.onInterruptParams||[]),e.getChildren(!0,!1,!0).forEach(o)},ou=function(e,i,t){if(e&&e.progress()<1&&(!e.paused()||t))return i&&(up(e),i<2&&e.progress(1),e.kill()),!0},Ss=function(e){for(var i=e.idLookup={},t=e.alt={},r=e.elementStates,n=r.length,s;n--;)s=r[n],i[s.id]?t[s.id]=s:i[s.id]=s},fi=function(){function o(i,t,r){if(this.props=t&&t.props,this.simple=!!(t&&t.simple),r)this.targets=ah(i),this.elementStates=i,Ss(this);else{this.targets=pn(i);var n=t&&(t.kill===!1||t.batch&&!t.kill);Pe&&!n&&Pe._kill.push(this),this.update(n||!!Pe)}}var e=o.prototype;return e.update=function(t){var r=this;return this.elementStates=this.targets.map(function(n){return new Nr(n,r.props,r.simple)}),Ss(this),this.interrupt(t),this.recordInlineStyles(),this},e.clear=function(){return this.targets.length=this.elementStates.length=0,Ss(this),this},e.fit=function(t,r,n){for(var s=io(this.elementStates.slice(0),!1,!0),a=(t||this).idLookup,u=0,l,c;u=0&&this.actions.splice(r,1),this},e.getState=function(t){var r=this,n=Pe,s=Wn;return Pe=this,this.state.clear(),this._kill.length=0,this.actions.forEach(function(a){a.vars.getState&&(a.states.length=0,Wn=a,a.state=a.vars.getState(a)),t&&a.states.forEach(function(u){return r.state.add(u)})}),Wn=s,Pe=n,this.killConflicts(),this},e.animate=function(){var t=this,r=Pe,n=this.timeline,s=this.actions.length,a,u;for(Pe=this,n.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(function(l){l.vars.animate&&l.vars.animate(l);var c=l.vars.onEnter,p=l.vars.onLeave,h=l.targets,f,g;h&&h.length&&(c||p)&&(f=new fi,l.states.forEach(function(d){return f.add(d)}),g=f.compare(Xt.getState(h)),g.enter.length&&c&&c(g.enter),g.leave.length&&p&&p(g.leave))}),sh(this._abs),this._run.forEach(function(l){return l()}),u=n.duration(),a=this._final.slice(0),n.add(function(){u<=n.time()&&(a.forEach(function(l){return l()}),Ju(t,"onComplete"))}),Pe=r;s--;)this.actions[s].vars.once&&this.actions[s].kill();return Ju(this,"onStart"),n.restart(),this},e.loadState=function(t){t||(t=function(){return 0});var r=[];return this.actions.forEach(function(n){if(n.vars.loadState){var s,a=function u(l){l&&(n.targets=l),s=r.indexOf(u),~s&&(r.splice(s,1),r.length||t())};r.push(a),n.vars.loadState(a)}}),r.length||t(),this},e.setState=function(){return this.actions.forEach(function(t){return t.targets=t.vars.setState&&t.vars.setState(t)}),this},e.killConflicts=function(t){return this.state.interrupt(t),this._kill.forEach(function(r){return r.interrupt(t)}),this},e.run=function(t,r){var n=this;return this!==Pe&&(t||this.getState(r),this.loadState(function(){n._killed||(n.setState(),n.animate())})),this},e.clear=function(t){this.state.clear(),t||(this.actions.length=0)},e.getStateById=function(t){for(var r=this.actions.length,n;r--;)if(n=this.actions[r].getStateById(t),n)return n;return this.state.idLookup[t]&&this.state},e.kill=function(){this._killed=1,this.clear(),delete ba[this.id]},o}(),Xt=function(){function o(){}return o.getState=function(i,t){var r=zo(i,t);return Wn&&Wn.states.push(r),t&&t.batch&&o.batch(t.batch).state.add(r),r},o.from=function(i,t){return t=t||{},"clearProps"in t||(t.clearProps=!0),$o(i,zo(t.targets||i.targets,{props:t.props||i.props,simple:t.simple,kill:!!t.kill}),t,-1)},o.to=function(i,t){return $o(i,zo(t.targets||i.targets,{props:t.props||i.props,simple:t.simple,kill:!!t.kill}),t,1)},o.fromTo=function(i,t,r){return $o(i,t,r)},o.fit=function(i,t,r){var n=r?Jr(r,ih):{},s=r||n,a=s.absolute,u=s.scale,l=s.getVars,c=s.props,p=s.runBackwards,h=s.onComplete,f=s.simple,g=r&&r.fitChild&&Un(r.fitChild),d=Ca(t,c,f,i),m=Ca(i,0,f,d),_=c?po[c]:go,C=vt.context();return c&&oh(n,d.props),ss(m,_),p&&("immediateRender"in n||(n.immediateRender=!0),n.onComplete=function(){ro(m),h&&h.apply(this,arguments)}),a&&su(m,d),n=an(m,d,u||g,c,g,n.duration||l?n:0),C&&!l&&C.add(function(){return function(){return ro(m)}}),l?n:n.duration?vt.to(m.element,n):null},o.makeAbsolute=function(i,t){return(i instanceof fi?i:new fi(i,t)).makeAbsolute()},o.batch=function(i){return i||(i="default"),ba[i]||(ba[i]=new cp(i))},o.killFlipsOf=function(i,t){(i instanceof fi?i.targets:pn(i)).forEach(function(r){return r&&ou(r._flip,t!==!1?1:2)})},o.isFlipping=function(i){var t=o.getByTarget(i);return!!t&&t.isActive()},o.getByTarget=function(i){return(Un(i)||to)._flip},o.getElementState=function(i,t){return new Nr(Un(i),t)},o.convertCoordinates=function(i,t,r){var n=Ai(t,!0,!0).multiply(Ai(i));return r?n.apply(r):n},o.register=function(i){if(Ki=typeof document<"u"&&document.body,Ki){vt=i,Ja(Ki),pn=vt.utils.toArray,xa=vt.core.getStyleSaver;var t=vt.utils.snap(.1);zi=function(n,s){return t(parseFloat(n)+s)}}},o}();Xt.version="3.12.5";typeof window<"u"&&window.gsap&&window.gsap.registerPlugin(Xt);M.registerPlugin(ce,ze,Xt);class hp{constructor(){X(this,"namespace","photography");X(this,"wrapper",null);X(this,"tween",null);X(this,"modal",null);X(this,"modalImage",null);X(this,"photographs",null);X(this,"activePhotograph",null);X(this,"afterEnter",e=>{this.wrapper=document.querySelector(".photography__wrapper"),this.photographs=M.utils.toArray(".photograph"),this.ensureModalExists(),this.createHorizontalScroll(),this.setupImageClickEvents()});X(this,"ensureModalExists",()=>{document.querySelector(".photograph-modal")?(this.modal=document.querySelector(".photograph-modal"),this.modalImage=this.modal.querySelector(".photograph-modal__image")):(this.modal=document.createElement("div"),this.modal.classList.add("photograph-modal"),this.modalImage=document.createElement("img"),this.modalImage.classList.add("photograph-modal__image"),this.modal.appendChild(this.modalImage),document.body.appendChild(this.modal),this.modal.addEventListener("click",this.closeModal))});X(this,"createHorizontalScroll",()=>{M.set(".photography",{overflow:"hidden"}),this.tween=M.to(this.wrapper,{x:()=>this.getScrollAmount(),ease:"none"}),ce.create({trigger:".photography",start:"top top",end:()=>`+=${this.getScrollAmount()*-1}`,pin:!0,animation:this.tween,scrub:!0,invalidateOnRefresh:!0})});X(this,"getScrollAmount",()=>-(this.wrapper.offsetWidth-window.innerWidth/2));X(this,"scrollToPhotograph",e=>{if(!e||!this.photographs.includes(e)){console.warn("Invalid photograph passed to scrollToPhotograph");return}const i=bt.getInstance();if(!i||!i.scrollTo){console.error("Scroller instance or scrollTo method not available.");return}const t=e.getBoundingClientRect(),r=this.wrapper.getBoundingClientRect(),s=t.left-r.left-(window.innerWidth/2-t.width/2);i.scrollTo(s,!0)});X(this,"setupImageClickEvents",()=>{this.photographs.forEach(e=>{e.addEventListener("click",()=>{this.openModal(e)})})});X(this,"openModal",e=>{bt.getInstance().paused(!0);const i=e.querySelector(".photograph__image");this.modalImage.src=i.src;const r=[this.photographs.filter(s=>s!==e),document.querySelector(".header"),document.querySelector(".photography__header")],n=M.timeline();n.to(r,{autoAlpha:.8,filter:"blur(30px)",y:50,duration:.3}),n.add(()=>{this.scrollToPhotograph(e)},"<"),n.add(()=>{Xt.fit(this.modalImage,i,{scale:!0});const s=Xt.getState(this.modalImage);M.set(this.modalImage,{clearProps:"all"}),Xt.from(s,{scale:!0,immediateRender:!1,onStart:()=>{M.set(this.modal,{autoAlpha:1}),M.set(e,{autoAlpha:0}),this.activePhotograph=e}})},"<")});X(this,"closeModal",()=>{const e=M.timeline(),t=[this.photographs.filter(r=>r!==this.activePhotograph),document.querySelector(".header"),document.querySelector(".photography__header")];e.to(t,{autoAlpha:1,filter:"blur(0px)",y:0,duration:.3}),e.add(()=>{const r=Xt.getState(this.modalImage);Xt.fit(this.modalImage,this.activePhotograph.querySelector(".photograph__image"),{scale:!0}),Xt.from(r,{scale:!0,immediateRender:!1,onComplete:()=>{M.set(this.modal,{autoAlpha:0}),this.modal.querySelector("img").src="",M.set(this.activePhotograph,{autoAlpha:1}),this.activePhotograph=null,bt.getInstance().paused(!1)}})},"<")})}}const fp=new hp;class dp{constructor(){X(this,"namespace","plain-page");X(this,"afterEnter",e=>{this.enterAnimation()});X(this,"enterAnimation",()=>{M.timeline({defaults:{duration:1.5,ease:"power4.out"}}).from(".container",{autoAlpha:0,y:100})})}}const pp=new dp;M.registerPlugin(Xt,ce);class gp{constructor(){X(this,"name","artwork-details-from-artwork-overview");X(this,"clickedCard");X(this,"from",{custom:({trigger:e})=>e.classList&&e.classList.contains("artwork-card__link"),namespace:["artwork-overview"]});X(this,"to",{namespace:["artwork-details"]})}leave(e){const i=M.utils.toArray(".artwork-card"),t=e.trigger;this.clickedCard=t.parentElement;const r=i.filter(p=>p!==this.clickedCard),n=this.clickedCard.getBoundingClientRect(),s=n.top+n.height/2,l=window.innerHeight/2+100-s,c=M.timeline({onStart:bt.kill()});return c.to(r,{autoAlpha:0,yPercent:0,filter:"blur(60px)",duration:1}),c.to(".artworks",{y:l,duration:1},"<"),c.to(this.clickedCard.querySelectorAll(".artwork-card__name, .artwork-card__dimensions"),{autoAlpha:0,onComplete:()=>{this.clickedCard.querySelector(".artwork-card__name").remove(),this.clickedCard.querySelector(".artwork-card__dimensions").remove()}},"<"),c.to(this.clickedCard,{backgroundColor:"transparent"},"<"),c.to(this.clickedCard.querySelector(".artwork-card__image"),{height:"100%",y:0,duration:1},"<"),c}beforeEnter(e){M.set(e.next.container,{position:"fixed",top:0,width:"100%"}),M.set(e.next.container.querySelectorAll(".artwork-details__name, .artwork-details__definitions"),{autoAlpha:0})}enter(e){const i=this.clickedCard.querySelector(".artwork-card__image-container");let t=Xt.getState(i);i.classList.replace("artwork-card__image-container","artwork-details__image-wrapper");const r=i.querySelector(".artwork-card__image");return r.classList.replace("artwork-card__image","artwork-details__image"),r.removeAttribute("style"),i.removeAttribute("style"),e.next.container.querySelector(".artwork-details__image-wrapper").replaceWith(i),Xt.from(t,{duration:1,ease:"power3.inOut"})}afterEnter(e){M.set(e.next.container,{clearProps:"all"}),M.to(e.next.container.querySelectorAll(".artwork-details__name, .artwork-details__definitions"),{autoAlpha:1,duration:1,stagger:.2}),bt.init(),bt.getInstance().scrollTo(0,!1)}}const mp=new gp;class _p{constructor(){X(this,"namespace","about");X(this,"poem",null);X(this,"afterLeave",e=>{M.set(".header",{color:Tr("--base-text-color")})});X(this,"beforeEnter",e=>{M.set(".header",{color:Tr("--color--blue-gray-500")})});X(this,"afterEnter",e=>{this.poem=document.querySelector(".about-poem")});X(this,"showPoem",()=>{M.to(this.poem,{width:"100vw"})})}}const Dp=new _p;var lh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vp(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var ch={exports:{}},Ho={exports:{}},al;function yp(){return al||(al=1,function(o){(function(e,i){o.exports?o.exports=i():e.EvEmitter=i()})(typeof window<"u"?window:lh,function(){function e(){}let i=e.prototype;return i.on=function(t,r){if(!t||!r)return this;let n=this._events=this._events||{},s=n[t]=n[t]||[];return s.includes(r)||s.push(r),this},i.once=function(t,r){if(!t||!r)return this;this.on(t,r);let n=this._onceEvents=this._onceEvents||{},s=n[t]=n[t]||{};return s[r]=!0,this},i.off=function(t,r){let n=this._events&&this._events[t];if(!n||!n.length)return this;let s=n.indexOf(r);return s!=-1&&n.splice(s,1),this},i.emitEvent=function(t,r){let n=this._events&&this._events[t];if(!n||!n.length)return this;n=n.slice(0),r=r||[];let s=this._onceEvents&&this._onceEvents[t];for(let a of n)s&&s[a]&&(this.off(t,a),delete s[a]),a.apply(this,r);return this},i.allOff=function(){return delete this._events,delete this._onceEvents,this},e})}(Ho)),Ho.exports}/*! +*/var ep=1,pn,vt,Pe,Wn,ji,Ni,xa,Ju=function(e,i){return e.actions.forEach(function(t){return t.vars[i]&&t.vars[i](t)})},ba={},el=180/Math.PI,tp=Math.PI/180,to={},tl={},po={},ru=function(e){return typeof e=="string"?e.split(" ").join("").split(","):e},ip=ru("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),go=ru("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),Un=function(e){return pn(e)[0]||console.warn("Element not found:",e)},Zr=function(e){return Math.round(e*1e4)/1e4||0},Ro=function(e,i,t){return e.forEach(function(r){return r.classList[t](i)})},il={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},ih={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},rh=function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()},Jr=function(e,i){var t={},r;for(r in e)i[r]||(t[r]=e[r]);return t},nu={},nh=function(e){var i=nu[e]=ru(e);return po[e]=i.concat(go),i},rp=function(e){var i=e._gsap||vt.core.getCache(e);return i.gmCache===vt.ticker.frame?i.gMatrix:(i.gmCache=vt.ticker.frame,i.gMatrix=Ai(e,!0,!1,!0))},np=function o(e,i,t){t===void 0&&(t=0);for(var r=e.parentNode,n=1e3*Math.pow(10,t)*(i?-1:1),s=i?-n*900:0;e;)s+=n,e=e.previousSibling;return r?s+o(r,i,t+1):s},io=function(e,i,t){return e.forEach(function(r){return r.d=np(t?r.element:r.t,i)}),e.sort(function(r,n){return r.d-n.d}),e},ss=function(e,i){for(var t=e.element.style,r=e.css=e.css||[],n=i.length,s,a;n--;)s=i[n],a=t[s]||t.getPropertyValue(s),r.push(a?s:tl[s]||(tl[s]=rh(s)),a);return t},ro=function(e){var i=e.css,t=e.element.style,r=0;for(e.cache.uncache=1;r0&&E&&(Y.style.opacity=k?U.opacity-he.opacity:"0"),an(U,he,D,T)):he.isVisible!==U.isVisible&&(he.isVisible?U.isVisible||(he.css=U.css,L.push(he),B.splice(Z--,1),l&&C&&an(U,he,D,T)):(U.isVisible&&N.push(U),B.splice(Z--,1))),D||(Y.style.maxWidth=Math.max(U.width,he.width)+"px",Y.style.maxHeight=Math.max(U.height,he.height)+"px",Y.style.minWidth=Math.min(U.width,he.width)+"px",Y.style.minHeight=Math.min(U.height,he.height)+"px"),C&&m&&Y.classList.add(m)),qe.push(U);var Ae;if(m&&(Ae=qe.map(function(A){return A.element}),C&&Ae.forEach(function(A){return A.classList.remove(m)})),ol(!1),D?(y.scaleX=function(A){return B[A].a.scaleX},y.scaleY=function(A){return B[A].a.scaleY}):(y.width=function(A){return B[A].a.width+"px"},y.height=function(A){return B[A].a.height+"px"},y.autoRound=t.autoRound||!1),y.x=function(A){return B[A].a.x+"px"},y.y=function(A){return B[A].a.y+"px"},y.rotation=function(A){return B[A].a.rotation+(x?G(A,be[A],be)*360:0)},y.skewX=function(A){return B[A].a.skewX},be=B.map(function(A){return A.t}),(w||w===0)&&(y.modifiers={zIndex:function(){return w}},y.zIndex=w,y.immediateRender=t.immediateRender!==!1),E&&(y.opacity=function(A){return B[A].sd<0?0:B[A].sd>0?B[A].a.opacity:"+=0"}),z.length){F=vt.utils.distribute(F);var I=be.slice(z.length);y.stagger=function(A,W){return F(~z.indexOf(W)?be.indexOf(B[A].swap.t):A,W,I)}}if(ip.forEach(function(A){return t[A]&&M.eventCallback(A,t[A],t[A+"Params"])}),p&&be.length){P=Jr(y,il),"scale"in p&&(p.scaleX=p.scaleY=p.scale,delete p.scale);for(ne in p)Q=Jr(p[ne],ih),Q[ne]=y[ne],!("duration"in Q)&&"duration"in y&&(Q.duration=y.duration),Q.stagger=y.stagger,v.call(M,be,Q,0),delete P[ne]}(be.length||L.length||N.length)&&(m&&M.add(function(){return Ro(Ae,m,M._zTime<0?"remove":"add")},0)&&!f&&Ro(Ae,m,"add"),be.length&&v.call(M,be,P,0)),sl(a,N,M),sl(u,L,M);var b=Pe&&Pe.timeline;b&&(b.add(M,0),Pe._final.push(function(){return rl(B,!s)})),Ve=M.duration(),M.call(function(){var A=M.time()>=Ve;A&&!b&&rl(B,!s),m&&Ro(Ae,m,A?"remove":"add")})},c&&(l=B.filter(function(S){return!S.sd&&!S.a.isVisible&&S.b.isVisible}).map(function(S){return S.a.element})),Pe){var Ge;l&&(Ge=Pe._abs).push.apply(Ge,nl(B,l)),Pe._run.push(Ze)}else l&&sh(nl(B,l)),Ze();var Je=Pe?Pe.timeline:M;return Je.revert=function(){return ou(Je,1,1)},Je},up=function o(e){e.vars.onInterrupt&&e.vars.onInterrupt.apply(e,e.vars.onInterruptParams||[]),e.getChildren(!0,!1,!0).forEach(o)},ou=function(e,i,t){if(e&&e.progress()<1&&(!e.paused()||t))return i&&(up(e),i<2&&e.progress(1),e.kill()),!0},Ss=function(e){for(var i=e.idLookup={},t=e.alt={},r=e.elementStates,n=r.length,s;n--;)s=r[n],i[s.id]?t[s.id]=s:i[s.id]=s},fi=function(){function o(i,t,r){if(this.props=t&&t.props,this.simple=!!(t&&t.simple),r)this.targets=ah(i),this.elementStates=i,Ss(this);else{this.targets=pn(i);var n=t&&(t.kill===!1||t.batch&&!t.kill);Pe&&!n&&Pe._kill.push(this),this.update(n||!!Pe)}}var e=o.prototype;return e.update=function(t){var r=this;return this.elementStates=this.targets.map(function(n){return new Nr(n,r.props,r.simple)}),Ss(this),this.interrupt(t),this.recordInlineStyles(),this},e.clear=function(){return this.targets.length=this.elementStates.length=0,Ss(this),this},e.fit=function(t,r,n){for(var s=io(this.elementStates.slice(0),!1,!0),a=(t||this).idLookup,u=0,l,c;u=0&&this.actions.splice(r,1),this},e.getState=function(t){var r=this,n=Pe,s=Wn;return Pe=this,this.state.clear(),this._kill.length=0,this.actions.forEach(function(a){a.vars.getState&&(a.states.length=0,Wn=a,a.state=a.vars.getState(a)),t&&a.states.forEach(function(u){return r.state.add(u)})}),Wn=s,Pe=n,this.killConflicts(),this},e.animate=function(){var t=this,r=Pe,n=this.timeline,s=this.actions.length,a,u;for(Pe=this,n.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(function(l){l.vars.animate&&l.vars.animate(l);var c=l.vars.onEnter,p=l.vars.onLeave,h=l.targets,f,g;h&&h.length&&(c||p)&&(f=new fi,l.states.forEach(function(d){return f.add(d)}),g=f.compare(Xt.getState(h)),g.enter.length&&c&&c(g.enter),g.leave.length&&p&&p(g.leave))}),sh(this._abs),this._run.forEach(function(l){return l()}),u=n.duration(),a=this._final.slice(0),n.add(function(){u<=n.time()&&(a.forEach(function(l){return l()}),Ju(t,"onComplete"))}),Pe=r;s--;)this.actions[s].vars.once&&this.actions[s].kill();return Ju(this,"onStart"),n.restart(),this},e.loadState=function(t){t||(t=function(){return 0});var r=[];return this.actions.forEach(function(n){if(n.vars.loadState){var s,a=function u(l){l&&(n.targets=l),s=r.indexOf(u),~s&&(r.splice(s,1),r.length||t())};r.push(a),n.vars.loadState(a)}}),r.length||t(),this},e.setState=function(){return this.actions.forEach(function(t){return t.targets=t.vars.setState&&t.vars.setState(t)}),this},e.killConflicts=function(t){return this.state.interrupt(t),this._kill.forEach(function(r){return r.interrupt(t)}),this},e.run=function(t,r){var n=this;return this!==Pe&&(t||this.getState(r),this.loadState(function(){n._killed||(n.setState(),n.animate())})),this},e.clear=function(t){this.state.clear(),t||(this.actions.length=0)},e.getStateById=function(t){for(var r=this.actions.length,n;r--;)if(n=this.actions[r].getStateById(t),n)return n;return this.state.idLookup[t]&&this.state},e.kill=function(){this._killed=1,this.clear(),delete ba[this.id]},o}(),Xt=function(){function o(){}return o.getState=function(i,t){var r=zo(i,t);return Wn&&Wn.states.push(r),t&&t.batch&&o.batch(t.batch).state.add(r),r},o.from=function(i,t){return t=t||{},"clearProps"in t||(t.clearProps=!0),$o(i,zo(t.targets||i.targets,{props:t.props||i.props,simple:t.simple,kill:!!t.kill}),t,-1)},o.to=function(i,t){return $o(i,zo(t.targets||i.targets,{props:t.props||i.props,simple:t.simple,kill:!!t.kill}),t,1)},o.fromTo=function(i,t,r){return $o(i,t,r)},o.fit=function(i,t,r){var n=r?Jr(r,ih):{},s=r||n,a=s.absolute,u=s.scale,l=s.getVars,c=s.props,p=s.runBackwards,h=s.onComplete,f=s.simple,g=r&&r.fitChild&&Un(r.fitChild),d=Ca(t,c,f,i),_=Ca(i,0,f,d),m=c?po[c]:go,C=vt.context();return c&&oh(n,d.props),ss(_,m),p&&("immediateRender"in n||(n.immediateRender=!0),n.onComplete=function(){ro(_),h&&h.apply(this,arguments)}),a&&su(_,d),n=an(_,d,u||g,c,g,n.duration||l?n:0),C&&!l&&C.add(function(){return function(){return ro(_)}}),l?n:n.duration?vt.to(_.element,n):null},o.makeAbsolute=function(i,t){return(i instanceof fi?i:new fi(i,t)).makeAbsolute()},o.batch=function(i){return i||(i="default"),ba[i]||(ba[i]=new cp(i))},o.killFlipsOf=function(i,t){(i instanceof fi?i.targets:pn(i)).forEach(function(r){return r&&ou(r._flip,t!==!1?1:2)})},o.isFlipping=function(i){var t=o.getByTarget(i);return!!t&&t.isActive()},o.getByTarget=function(i){return(Un(i)||to)._flip},o.getElementState=function(i,t){return new Nr(Un(i),t)},o.convertCoordinates=function(i,t,r){var n=Ai(t,!0,!0).multiply(Ai(i));return r?n.apply(r):n},o.register=function(i){if(ji=typeof document<"u"&&document.body,ji){vt=i,Ja(ji),pn=vt.utils.toArray,xa=vt.core.getStyleSaver;var t=vt.utils.snap(.1);Ni=function(n,s){return t(parseFloat(n)+s)}}},o}();Xt.version="3.12.5";typeof window<"u"&&window.gsap&&window.gsap.registerPlugin(Xt);R.registerPlugin(ce,ze,Xt);class hp{constructor(){X(this,"namespace","photography");X(this,"wrapper",null);X(this,"tween",null);X(this,"modal",null);X(this,"modalImage",null);X(this,"photographs",null);X(this,"activePhotograph",null);X(this,"afterEnter",e=>{this.wrapper=document.querySelector(".photography__wrapper"),this.photographs=R.utils.toArray(".photograph"),this.ensureModalExists(),this.createHorizontalScroll(),this.setupImageClickEvents()});X(this,"ensureModalExists",()=>{document.querySelector(".photograph-modal")?(this.modal=document.querySelector(".photograph-modal"),this.modalImage=this.modal.querySelector(".photograph-modal__image")):(this.modal=document.createElement("div"),this.modal.classList.add("photograph-modal"),this.modalImage=document.createElement("img"),this.modalImage.classList.add("photograph-modal__image"),this.modal.appendChild(this.modalImage),document.body.appendChild(this.modal),this.modal.addEventListener("click",this.closeModal))});X(this,"createHorizontalScroll",()=>{R.set(".photography",{overflow:"hidden"}),this.tween=R.to(this.wrapper,{x:()=>this.getScrollAmount(),ease:"none"}),ce.create({trigger:".photography",start:"top top",end:()=>`+=${this.getScrollAmount()*-1}`,pin:!0,animation:this.tween,scrub:!0,invalidateOnRefresh:!0})});X(this,"getScrollAmount",()=>-(this.wrapper.offsetWidth-window.innerWidth/2));X(this,"scrollToPhotograph",e=>{if(!e||!this.photographs.includes(e)){console.warn("Invalid photograph passed to scrollToPhotograph");return}const i=bt.getInstance();if(!i||!i.scrollTo){console.error("Scroller instance or scrollTo method not available.");return}const t=e.getBoundingClientRect(),r=this.wrapper.getBoundingClientRect(),s=t.left-r.left-(window.innerWidth/2-t.width/2);i.scrollTo(s,!0)});X(this,"setupImageClickEvents",()=>{this.photographs.forEach(e=>{e.addEventListener("click",()=>{this.openModal(e)})})});X(this,"openModal",e=>{bt.getInstance().paused(!0);const i=e.querySelector(".photograph__image");this.modalImage.src=i.src;const r=[this.photographs.filter(s=>s!==e),document.querySelector(".header"),document.querySelector(".photography__header")],n=R.timeline();n.to(r,{autoAlpha:.8,filter:"blur(30px)",y:50,duration:.3}),n.add(()=>{this.scrollToPhotograph(e)},"<"),n.add(()=>{Xt.fit(this.modalImage,i,{scale:!0});const s=Xt.getState(this.modalImage);R.set(this.modalImage,{clearProps:"all"}),Xt.from(s,{scale:!0,immediateRender:!1,onStart:()=>{R.set(this.modal,{autoAlpha:1}),R.set(e,{autoAlpha:0}),this.activePhotograph=e}})},"<")});X(this,"closeModal",()=>{const e=R.timeline(),t=[this.photographs.filter(r=>r!==this.activePhotograph),document.querySelector(".header"),document.querySelector(".photography__header")];e.to(t,{autoAlpha:1,filter:"blur(0px)",y:0,duration:.3}),e.add(()=>{const r=Xt.getState(this.modalImage);Xt.fit(this.modalImage,this.activePhotograph.querySelector(".photograph__image"),{scale:!0}),Xt.from(r,{scale:!0,immediateRender:!1,onComplete:()=>{R.set(this.modal,{autoAlpha:0}),this.modal.querySelector("img").src="",R.set(this.activePhotograph,{autoAlpha:1}),this.activePhotograph=null,bt.getInstance().paused(!1)}})},"<")})}}const fp=new hp;class dp{constructor(){X(this,"namespace","plain-page");X(this,"afterEnter",e=>{this.enterAnimation()});X(this,"enterAnimation",()=>{R.timeline({defaults:{duration:1.5,ease:"power4.out"}}).from(".container",{autoAlpha:0,y:100})})}}const pp=new dp;R.registerPlugin(Xt,ce);class gp{constructor(){X(this,"name","artwork-details-from-artwork-overview");X(this,"clickedCard");X(this,"from",{custom:({trigger:e})=>e.classList&&e.classList.contains("artwork-card__link"),namespace:["artwork-overview"]});X(this,"to",{namespace:["artwork-details"]})}leave(e){const i=R.utils.toArray(".artwork-card"),t=e.trigger;this.clickedCard=t.parentElement;const r=i.filter(p=>p!==this.clickedCard),n=this.clickedCard.getBoundingClientRect(),s=n.top+n.height/2,l=window.innerHeight/2+100-s,c=R.timeline({onStart:bt.kill()});return c.to(r,{autoAlpha:0,yPercent:0,filter:"blur(60px)",duration:1}),c.to(".artworks",{y:l,duration:1},"<"),c.to(this.clickedCard.querySelectorAll(".artwork-card__name, .artwork-card__dimensions"),{autoAlpha:0,onComplete:()=>{this.clickedCard.querySelector(".artwork-card__name").remove(),this.clickedCard.querySelector(".artwork-card__dimensions").remove()}},"<"),c.to(this.clickedCard,{backgroundColor:"transparent"},"<"),c.to(this.clickedCard.querySelector(".artwork-card__image"),{height:"100%",y:0,duration:1},"<"),c}beforeEnter(e){R.set(e.next.container,{position:"fixed",top:0,width:"100%"}),R.set(e.next.container.querySelectorAll(".artwork-details__name, .artwork-details__definitions"),{autoAlpha:0})}enter(e){const i=this.clickedCard.querySelector(".artwork-card__image-container");let t=Xt.getState(i);i.classList.replace("artwork-card__image-container","artwork-details__image-wrapper");const r=i.querySelector(".artwork-card__image");return r.classList.replace("artwork-card__image","artwork-details__image"),r.removeAttribute("style"),i.removeAttribute("style"),e.next.container.querySelector(".artwork-details__image-wrapper").replaceWith(i),Xt.from(t,{duration:1,ease:"power3.inOut"})}afterEnter(e){R.set(e.next.container,{clearProps:"all"}),R.to(e.next.container.querySelectorAll(".artwork-details__name, .artwork-details__definitions"),{autoAlpha:1,duration:1,stagger:.2}),bt.init(),bt.getInstance().scrollTo(0,!1)}}const _p=new gp;class mp{constructor(){X(this,"namespace","about");X(this,"poem",null);X(this,"afterLeave",e=>{R.set(".header",{color:kr("--base-text-color")})});X(this,"beforeEnter",e=>{R.set(".header",{color:kr("--color--blue-gray-500")})});X(this,"afterEnter",e=>{this.poem=document.querySelector(".about-poem")});X(this,"showPoem",()=>{R.to(this.poem,{width:"100vw"})})}}const Dp=new mp;var lh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vp(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var ch={exports:{}},Ho={exports:{}},al;function yp(){return al||(al=1,function(o){(function(e,i){o.exports?o.exports=i():e.EvEmitter=i()})(typeof window<"u"?window:lh,function(){function e(){}let i=e.prototype;return i.on=function(t,r){if(!t||!r)return this;let n=this._events=this._events||{},s=n[t]=n[t]||[];return s.includes(r)||s.push(r),this},i.once=function(t,r){if(!t||!r)return this;this.on(t,r);let n=this._onceEvents=this._onceEvents||{},s=n[t]=n[t]||{};return s[r]=!0,this},i.off=function(t,r){let n=this._events&&this._events[t];if(!n||!n.length)return this;let s=n.indexOf(r);return s!=-1&&n.splice(s,1),this},i.emitEvent=function(t,r){let n=this._events&&this._events[t];if(!n||!n.length)return this;n=n.slice(0),r=r||[];let s=this._onceEvents&&this._onceEvents[t];for(let a of n)s&&s[a]&&(this.off(t,a),delete s[a]),a.apply(this,r);return this},i.allOff=function(){return delete this._events,delete this._onceEvents,this},e})}(Ho)),Ho.exports}/*! * imagesLoaded v5.0.0 * JavaScript is all like "You images are done yet or what?" * MIT License - */(function(o){(function(e,i){o.exports?o.exports=i(e,yp()):e.imagesLoaded=i(e,e.EvEmitter)})(typeof window<"u"?window:lh,function(i,t){let r=i.jQuery,n=i.console;function s(h){return Array.isArray(h)?h:typeof h=="object"&&typeof h.length=="number"?[...h]:[h]}function a(h,f,g){if(!(this instanceof a))return new a(h,f,g);let d=h;if(typeof h=="string"&&(d=document.querySelectorAll(h)),!d){n.error(`Bad element for imagesLoaded ${d||h}`);return}this.elements=s(d),this.options={},typeof f=="function"?g=f:Object.assign(this.options,f),g&&this.on("always",g),this.getImages(),r&&(this.jqDeferred=new r.Deferred),setTimeout(this.check.bind(this))}a.prototype=Object.create(t.prototype),a.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const u=[1,9,11];a.prototype.addElementImages=function(h){h.nodeName==="IMG"&&this.addImage(h),this.options.background===!0&&this.addElementBackgroundImages(h);let{nodeType:f}=h;if(!f||!u.includes(f))return;let g=h.querySelectorAll("img");for(let d of g)this.addImage(d);if(typeof this.options.background=="string"){let d=h.querySelectorAll(this.options.background);for(let m of d)this.addElementBackgroundImages(m)}};const l=/url\((['"])?(.*?)\1\)/gi;a.prototype.addElementBackgroundImages=function(h){let f=getComputedStyle(h);if(!f)return;let g=l.exec(f.backgroundImage);for(;g!==null;){let d=g&&g[2];d&&this.addBackground(d,h),g=l.exec(f.backgroundImage)}},a.prototype.addImage=function(h){let f=new c(h);this.images.push(f)},a.prototype.addBackground=function(h,f){let g=new p(h,f);this.images.push(g)},a.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length){this.complete();return}let h=(f,g,d)=>{setTimeout(()=>{this.progress(f,g,d)})};this.images.forEach(function(f){f.once("progress",h),f.check()})},a.prototype.progress=function(h,f,g){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!h.isLoaded,this.emitEvent("progress",[this,h,f]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,h),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&n&&n.log(`progress: ${g}`,h,f)},a.prototype.complete=function(){let h=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(h,[this]),this.emitEvent("always",[this]),this.jqDeferred){let f=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[f](this)}};function c(h){this.img=h}c.prototype=Object.create(t.prototype),c.prototype.check=function(){if(this.getIsImageComplete()){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src},c.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},c.prototype.confirm=function(h,f){this.isLoaded=h;let{parentNode:g}=this.img,d=g.nodeName==="PICTURE"?g:this.img;this.emitEvent("progress",[this,d,f])},c.prototype.handleEvent=function(h){let f="on"+h.type;this[f]&&this[f](h)},c.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},c.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},c.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)};function p(h,f){this.url=h,this.element=f,this.img=new Image}return p.prototype=Object.create(c.prototype),p.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(this.img.naturalWidth!==0,"naturalWidth"),this.unbindEvents())},p.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},p.prototype.confirm=function(h,f){this.isLoaded=h,this.emitEvent("progress",[this,this.element,f])},a.makeJQueryPlugin=function(h){h=h||i.jQuery,h&&(r=h,r.fn.imagesLoaded=function(f,g){return new a(this,f,g).jqDeferred.promise(r(this))})},a.makeJQueryPlugin(),a})})(ch);var wp=ch.exports;const xp=vp(wp);class bp{constructor(e){X(this,"onImageLoadProgress",e=>{const i=e.progressedCount/this.numImages;this.updateProgress(this.domProgress+(1-this.domProgress)*i)});X(this,"onImagesLoaded",()=>{this.imagesLoaded=!0,this.finishLoading()});X(this,"onLoaded",()=>{this.windowLoaded=!0,this.finishLoading()});X(this,"finishLoading",()=>{if(this.imagesLoaded&&this.windowLoaded){const i=performance.now()-this.start,t=Math.max(this.MIN_TIME-i,500);document.documentElement.classList.remove("loading");const r=M.timeline({defaults:{ease:"power3.inOut",duration:.8}});r.to(".initial-loader__percentage, .initial-loader__progress",{y:100,duration:.3,ease:"power3.in",autoAlpha:0,delay:t/1e3}),r.to(".initial-loader",{yPercent:-100,onStart:()=>{this.onComplete&&this.onComplete()}},"<+25%")}});this.MIN_TIME=500,this.INITIAL_PROGRESS=.04,this.start=performance.now(),this.domProgress=0,this.numImages=0,this.imagesLoaded=!1,this.windowLoaded=!1,this.onComplete=e,this.init()}init(){this.imgLoad=new xp("body",{background:!0},this.onImagesLoaded),this.numImages=this.imgLoad.images.length,this.domProgress=this.calculateDomProgress(),this.updateProgress(this.domProgress),this.imgLoad.on("progress",this.onImageLoadProgress),document.readyState==="complete"?this.onLoaded():window.addEventListener("load",this.onLoaded)}calculateDomProgress(){return this.numImages===0?1:this.INITIAL_PROGRESS+(1-this.INITIAL_PROGRESS)/(this.numImages+1)}updateProgress(e){M.to(".initial-loader__percentage-amount",{innerText:Math.round(e*100),snap:"innerText"}),M.to(".initial-loader__progress-inner",{scaleX:e})}}class Cp{constructor(){X(this,"name","initial-loading-transition")}once(e){const i=this.async();new bp(()=>{i()})}}const Ep=new Cp;/*! + */(function(o){(function(e,i){o.exports?o.exports=i(e,yp()):e.imagesLoaded=i(e,e.EvEmitter)})(typeof window<"u"?window:lh,function(i,t){let r=i.jQuery,n=i.console;function s(h){return Array.isArray(h)?h:typeof h=="object"&&typeof h.length=="number"?[...h]:[h]}function a(h,f,g){if(!(this instanceof a))return new a(h,f,g);let d=h;if(typeof h=="string"&&(d=document.querySelectorAll(h)),!d){n.error(`Bad element for imagesLoaded ${d||h}`);return}this.elements=s(d),this.options={},typeof f=="function"?g=f:Object.assign(this.options,f),g&&this.on("always",g),this.getImages(),r&&(this.jqDeferred=new r.Deferred),setTimeout(this.check.bind(this))}a.prototype=Object.create(t.prototype),a.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const u=[1,9,11];a.prototype.addElementImages=function(h){h.nodeName==="IMG"&&this.addImage(h),this.options.background===!0&&this.addElementBackgroundImages(h);let{nodeType:f}=h;if(!f||!u.includes(f))return;let g=h.querySelectorAll("img");for(let d of g)this.addImage(d);if(typeof this.options.background=="string"){let d=h.querySelectorAll(this.options.background);for(let _ of d)this.addElementBackgroundImages(_)}};const l=/url\((['"])?(.*?)\1\)/gi;a.prototype.addElementBackgroundImages=function(h){let f=getComputedStyle(h);if(!f)return;let g=l.exec(f.backgroundImage);for(;g!==null;){let d=g&&g[2];d&&this.addBackground(d,h),g=l.exec(f.backgroundImage)}},a.prototype.addImage=function(h){let f=new c(h);this.images.push(f)},a.prototype.addBackground=function(h,f){let g=new p(h,f);this.images.push(g)},a.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length){this.complete();return}let h=(f,g,d)=>{setTimeout(()=>{this.progress(f,g,d)})};this.images.forEach(function(f){f.once("progress",h),f.check()})},a.prototype.progress=function(h,f,g){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!h.isLoaded,this.emitEvent("progress",[this,h,f]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,h),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&n&&n.log(`progress: ${g}`,h,f)},a.prototype.complete=function(){let h=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(h,[this]),this.emitEvent("always",[this]),this.jqDeferred){let f=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[f](this)}};function c(h){this.img=h}c.prototype=Object.create(t.prototype),c.prototype.check=function(){if(this.getIsImageComplete()){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src},c.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},c.prototype.confirm=function(h,f){this.isLoaded=h;let{parentNode:g}=this.img,d=g.nodeName==="PICTURE"?g:this.img;this.emitEvent("progress",[this,d,f])},c.prototype.handleEvent=function(h){let f="on"+h.type;this[f]&&this[f](h)},c.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},c.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},c.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)};function p(h,f){this.url=h,this.element=f,this.img=new Image}return p.prototype=Object.create(c.prototype),p.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(this.img.naturalWidth!==0,"naturalWidth"),this.unbindEvents())},p.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},p.prototype.confirm=function(h,f){this.isLoaded=h,this.emitEvent("progress",[this,this.element,f])},a.makeJQueryPlugin=function(h){h=h||i.jQuery,h&&(r=h,r.fn.imagesLoaded=function(f,g){return new a(this,f,g).jqDeferred.promise(r(this))})},a.makeJQueryPlugin(),a})})(ch);var wp=ch.exports;const xp=vp(wp);class bp{constructor(e){X(this,"onImageLoadProgress",e=>{const i=e.progressedCount/this.numImages;this.updateProgress(this.domProgress+(1-this.domProgress)*i)});X(this,"onImagesLoaded",()=>{this.imagesLoaded=!0,this.finishLoading()});X(this,"onLoaded",()=>{this.windowLoaded=!0,this.finishLoading()});X(this,"finishLoading",()=>{if(this.imagesLoaded&&this.windowLoaded){const i=performance.now()-this.start,t=Math.max(this.MIN_TIME-i,500);document.documentElement.classList.remove("loading");const r=R.timeline({defaults:{ease:"power3.inOut",duration:.8}});r.to(".initial-loader__percentage, .initial-loader__progress",{y:100,duration:.3,ease:"power3.in",autoAlpha:0,delay:t/1e3}),r.to(".initial-loader",{yPercent:-100,onStart:()=>{this.onComplete&&this.onComplete()}},"<+25%")}});this.MIN_TIME=500,this.INITIAL_PROGRESS=.04,this.start=performance.now(),this.domProgress=0,this.numImages=0,this.imagesLoaded=!1,this.windowLoaded=!1,this.onComplete=e,this.init()}init(){this.imgLoad=new xp("body",{background:!0},this.onImagesLoaded),this.numImages=this.imgLoad.images.length,this.domProgress=this.calculateDomProgress(),this.updateProgress(this.domProgress),this.imgLoad.on("progress",this.onImageLoadProgress),document.readyState==="complete"?this.onLoaded():window.addEventListener("load",this.onLoaded)}calculateDomProgress(){return this.numImages===0?1:this.INITIAL_PROGRESS+(1-this.INITIAL_PROGRESS)/(this.numImages+1)}updateProgress(e){R.to(".initial-loader__percentage-amount",{innerText:Math.round(e*100),snap:"innerText"}),R.to(".initial-loader__progress-inner",{scaleX:e})}}class Cp{constructor(){X(this,"name","initial-loading-transition")}once(e){const i=this.async();new bp(()=>{i()})}}const Ep=new Cp;/*! * DrawSVGPlugin 3.12.5 * https://gsap.com * @@ -88,4 +88,4 @@ var Dh=Object.defineProperty;var vh=(o,e,i)=>e in o?Dh(o,e,{enumerable:!0,config * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com -*/var Si,au,no,hh,fh,ul,Ea,dh,ph=function(){return typeof window<"u"},gh=function(){return Si||ph()&&(Si=window.gsap)&&Si.registerPlugin&&Si},Sp=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,Yo={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},mr=function(e){return Math.round(e*1e4)/1e4},Vi=function(e){return parseFloat(e)||0},ll=function(e,i){var t=Vi(e);return~e.indexOf("%")?t/100*i:t},ks=function(e,i){return Vi(e.getAttribute(i))},Ns=Math.sqrt,cl=function(e,i,t,r,n,s){return Ns(Math.pow((Vi(t)-Vi(e))*n,2)+Math.pow((Vi(r)-Vi(i))*s,2))},hl=function(e){return console.warn(e)},mh=function(e){return e.getAttribute("vector-effect")==="non-scaling-stroke"},kp=1,Tp=function(e,i,t){var r=e.indexOf(" "),n,s;return r<0?(n=t!==void 0?t+"":e,s=e):(n=e.substr(0,r),s=e.substr(r+1)),n=ll(n,i),s=ll(s,i),n>s?[s,n]:[n,s]},zs=function(e){if(e=au(e)[0],!e)return 0;var i=e.tagName.toLowerCase(),t=e.style,r=1,n=1,s,a,u,l,c,p,h;mh(e)&&(n=e.getScreenCTM(),r=Ns(n.a*n.a+n.b*n.b),n=Ns(n.d*n.d+n.c*n.c));try{a=e.getBBox()}catch{hl("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var f=a||{x:0,y:0,width:0,height:0},g=f.x,d=f.y,m=f.width,_=f.height;if((!a||!m&&!_)&&Yo[i]&&(m=ks(e,Yo[i][0]),_=ks(e,Yo[i][1]),i!=="rect"&&i!=="line"&&(m*=2,_*=2),i==="line"&&(g=ks(e,"x1"),d=ks(e,"y1"),m=Math.abs(m-g),_=Math.abs(_-d))),i==="path")l=t.strokeDasharray,t.strokeDasharray="none",s=e.getTotalLength()||0,mr(r)!==mr(n)&&!ul&&(ul=1)&&hl("Warning: length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),s*=(r+n)/2,t.strokeDasharray=l;else if(i==="rect")s=m*2*r+_*2*n;else if(i==="line")s=cl(g,d,g+m,d+_,r,n);else if(i==="polyline"||i==="polygon")for(u=e.getAttribute("points").match(Sp)||[],i==="polygon"&&u.push(u[0],u[1]),s=0,c=2;ci&&(r=i),[-n||0,r-n||0]},dl=function(){ph()&&(no=window,fh=Si=gh(),au=Si.utils.toArray,Ea=Si.core.getStyleSaver,dh=Si.core.reverting||function(){},hh=((no.navigator||{}).userAgent||"").indexOf("Edge")!==-1)},_h={version:"3.12.5",name:"drawSVG",register:function(e){Si=e,dl()},init:function(e,i,t,r,n){if(!e.getBBox)return!1;fh||dl();var s=zs(e),a,u,l;return this.styles=Ea&&Ea(e,"strokeDashoffset,strokeDasharray,strokeMiterlimit"),this.tween=t,this._style=e.style,this._target=e,i+""=="true"?i="0 100%":i?(i+"").indexOf(" ")===-1&&(i="0 "+i):i="0 0",a=fl(e,s),u=Tp(i,s,a[0]),this._length=mr(s),this._dash=mr(a[1]-a[0]),this._offset=mr(-a[0]),this._dashPT=this.add(this,"_dash",this._dash,mr(u[1]-u[0]),0,0,0,0,0,1),this._offsetPT=this.add(this,"_offset",this._offset,mr(-u[0]),0,0,0,0,0,1),hh&&(l=no.getComputedStyle(e),l.strokeLinecap!==l.strokeLinejoin&&(u=Vi(l.strokeMiterlimit),this.add(e.style,"strokeMiterlimit",u,u+.01))),this._live=mh(e)||~(i+"").indexOf("live"),this._nowrap=~(i+"").indexOf("nowrap"),this._props.push("drawSVG"),kp},render:function(e,i){if(i.tween._time||!dh()){var t=i._pt,r=i._style,n,s,a,u;if(t){for(i._live&&(n=zs(i._target),n!==i._length&&(s=n/i._length,i._length=n,i._offsetPT&&(i._offsetPT.s*=s,i._offsetPT.c*=s),i._dashPT?(i._dashPT.s*=s,i._dashPT.c*=s):i._dash*=s));t;)t.r(e,t.d),t=t._next;a=i._dash||e&&e!==1&&1e-4||0,n=i._length-a+.1,u=i._offset,a&&u&&a+Math.abs(u%i._length)>i._length-.2&&(u+=u<0?.1:-.1)&&(n+=.1),r.strokeDashoffset=a?u:u+.001,r.strokeDasharray=n<.2?"none":a?a+"px,"+(i._nowrap?999999:n)+"px":"0px, 999999px"}}else i.styles.revert()},getLength:zs,getPosition:fl};gh()&&Si.registerPlugin(_h);M.registerPlugin(_h);let Vs=!1;const uu={mainNavLinks:null,secondaryNavLinks:null,allNavLinks:null,cursor:null,navButton:null,hamburgerIcon:null,hamburgerLines:null,navOverlay:null,pageContainer:null,navWrapper:null,isAnimating:!1,header:null,headerColor:null,init(){this.setVariables(),this.prepareNavOverlay(),this.addHoverAnimation(),this.handleCursor(),this.addButtonEventListeners()},setVariables(){this.mainNavLinks=M.utils.toArray(".main-nav__link"),this.secondaryNavLinks=M.utils.toArray(".secondary-nav__link"),this.allNavLinks=[...this.mainNavLinks,...this.secondaryNavLinks],this.cursor=Fr.getInstance(),this.openButton=document.querySelector(".header__nav-open-button"),this.closeButton=document.querySelector(".header__nav-close-button"),this.hamburgerIcon=document.querySelector(".hamburger-icon"),this.hamburgerLines=this.hamburgerIcon.querySelectorAll("line"),this.navOverlay=document.querySelector(".nav"),this.navWrapper=document.querySelector(".nav__wrapper"),this.header=document.querySelector(".header"),this.headerColor=getComputedStyle(this.header).color},prepareNavOverlay(){M.set(this.navOverlay,{autoAlpha:1,yPercent:-100}),this.openButton.addEventListener("click",()=>this.openNav()),this.closeButton.addEventListener("click",()=>this.closeNav(!1))},addHoverAnimation(){ho.make(this.mainNavLinks),this.mainNavLinks.forEach(o=>{o.addEventListener("mouseenter",()=>{const e=this.mainNavLinks.filter(i=>i!==o);M.to(e,{color:Tr("--color--blue-gray-500"),duration:.3})}),o.addEventListener("mouseleave",()=>{M.to(this.mainNavLinks,{color:Tr("--color--off-white-100"),duration:.3})})})},openNav(){this.pageContainer=document.querySelector(".page__container");const o=M.timeline({onStart:()=>{Vs=!0,this.isAnimating=!0,this.cursor.removeState("cursor--hidden"),M.to(this.header,{color:Tr("--color--off-white-100")}),bt.getInstance().paused(!0)},onComplete:()=>{this.isAnimating=!1}});o.to(this.hamburgerLines,{drawSVG:"100% 100%",duration:.3,ease:"power3.inOut",stagger:.1,onComplete:()=>{M.set(this.hamburgerIcon,{display:"none"})}}),o.to(this.pageContainer,{y:200,filter:"blur(80px)",duration:.8,ease:"power3.inOut"},0),o.to(this.navOverlay,{yPercent:0},".2"),o.from(this.mainNavLinks,{autoAlpha:0,y:-50,duration:1,ease:"power3.out",stagger:{from:"end",amount:.1}},"<50%"),o.from(".close-icon line",{drawSVG:M.utils.wrap(["100% 100%","0"]),stagger:.2,onStart:()=>{M.set(this.closeButton,{display:"block"})}},"<50%")},closeNav(o=!0){const e=M.timeline({onStart:()=>{this.isAnimating=!0,this.cursor.removeState("cursor--hidden"),M.set(this.closeButton,{display:"none"})},onComplete:()=>{this.isAnimating=!1,Vs=!1,bt.getInstance().paused(!1),M.set([this.openButton,this.hamburgerIcon,this.hamburgerLines,this.mainNavLinks],{clearProps:"all"})}});e.to(this.pageContainer,{y:0,filter:"blur(0px)",duration:.8,ease:"power3.out"},"<"),o||e.to(this.header,{color:this.headerColor},"<"),e.to(this.mainNavLinks,{autoAlpha:0,y:-50,filter:"blur(5px)",duration:1,ease:"power3.out",stagger:{from:"start",amount:.1}},"<"),e.to(this.navOverlay,{yPercent:-100},"<")},navTransition(o){const e=M.timeline({onStart:()=>{this.isAnimating=!0,this.cursor.removeState("cursor--hidden"),M.set(this.closeButton,{display:"none"}),o()},onComplete:()=>{this.isAnimating=!1,Vs=!1,bt.getInstance().paused(!1),M.set([this.openButton,this.hamburgerIcon,this.hamburgerLines,this.mainNavLinks],{clearProps:"all"})}});e.to(this.header,{color:this.headerColor},"<"),e.to(this.mainNavLinks,{autoAlpha:0,y:-50,filter:"blur(5px)",duration:1,ease:"power3.out",stagger:{from:"start",amount:.1}},"<"),e.to(this.navOverlay,{yPercent:-100},"<")},handleCursor(){this.allNavLinks.forEach(o=>{o.addEventListener("mouseenter",()=>this.cursor.addState("cursor--hidden")),o.addEventListener("mouseleave",()=>this.cursor.removeState("cursor--hidden"))})},updateNavigation:()=>{const o=document.querySelectorAll(".main-nav__link");o.forEach(s=>s.classList.remove("main-nav__link--active"));const i=window.location.pathname.match(/(?:\/public)?\/([^\/]+)(?:\.html)?/),t=i?i[1]:"",r=new RegExp(`/(?:public/)?${t}(?:\\.html)?`),n=Array.from(o).find(s=>r.test(s.getAttribute("href")));n&&n.classList.add("main-nav__link--active")},addButtonEventListeners(){const o=e=>{if(this.isAnimating)return;const i=e?["20% 100%","60% 100%","40% 100%"]:"0% 100%";M.to(this.hamburgerLines,{drawSVG:M.utils.wrap(i),duration:.3,ease:"power3.inOut"})};this.openButton.addEventListener("mouseenter",()=>{this.cursor.addState("cursor--hidden"),o(!0)}),this.openButton.addEventListener("mouseleave",()=>{this.cursor.removeState("cursor--hidden"),o(!1)}),this.closeButton.addEventListener("mouseenter",()=>this.cursor.addState("cursor--hidden")),this.closeButton.addEventListener("mouseleave",()=>this.cursor.removeState("cursor--hidden"))}};class Fp{constructor(){X(this,"name","nav-transition");X(this,"from",{custom:()=>Vs})}leave({current:e}){M.set(e.container,{display:"none"})}afterLeave(){bt.getInstance().scrollTo(0,!1)}enter(){const e=this.async();uu.navTransition(e)}}const Pp=new Fp,Ap={init(){this.addTransitionElement(),this.setupBarba()},setupBarba(){cs.hooks.before(o=>{bt.getInstance().paused(!0)}),cs.hooks.beforeEnter(o=>{uu.updateNavigation()}),cs.hooks.after(()=>{bt.getInstance().paused(!1)}),cs.init({logLevel:"error",views:[Xd,Ud,jd,fp,Dp,pp],transitions:[Pp,Ep,Od,mp]})},addTransitionElement(){const o=document.createElement("div");o.classList.add("transition"),document.body.appendChild(o),M.set(o,{yPercent:100,autoAlpha:1,position:"fixed",inset:0,backgroundColor:Tr("--transition--bg-color"),zIndex:9})}};M.registerPlugin(Ri);const Op={logo:null,splitLogo:null,init(){this.logo=document.querySelector(".header__name"),this.splitLogo=new Ri(this.logo,{type:"lines, words"}),M.set([this.splitLogo.lines],{overflow:"hidden",position:"relative"}),M.set(this.splitLogo.words,{paddingBottom:"0.15em"}),M.set(this.splitLogo.lines.slice(1),{marginTop:"-0.15em"}),this.splitLogo.words.forEach(r=>{const n=r.cloneNode(!0);M.set(n,{yPercent:100,position:"absolute",top:0,left:0}),r.insertAdjacentElement("afterend",n)}),ho.make(this.logo);const o=Fr.getInstance(),e=M.timeline({paused:!0}),i=M.to(this.splitLogo.lines[1].querySelectorAll("div"),{yPercent:"-=100",ease:"none"}),t=M.to(this.splitLogo.lines[0].querySelectorAll("div"),{yPercent:"-=100",ease:"none"});e.add(i,0),e.add(t,">-25%"),this.logo.addEventListener("mouseenter",()=>{o.addState("cursor--hidden"),M.to(e,{progress:1,duration:.6,ease:"power1.inOut"})}),this.logo.addEventListener("mouseleave",()=>{o.removeState("cursor--hidden"),M.to(e,{progress:0,duration:.6,ease:"power1.out"})})}};bt.init();Fr.init();uu.init();Op.init();Ap.init(); +*/var Si,au,no,hh,fh,ul,Ea,dh,ph=function(){return typeof window<"u"},gh=function(){return Si||ph()&&(Si=window.gsap)&&Si.registerPlugin&&Si},Sp=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,Yo={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},gr=function(e){return Math.round(e*1e4)/1e4},zi=function(e){return parseFloat(e)||0},ll=function(e,i){var t=zi(e);return~e.indexOf("%")?t/100*i:t},ks=function(e,i){return zi(e.getAttribute(i))},Ns=Math.sqrt,cl=function(e,i,t,r,n,s){return Ns(Math.pow((zi(t)-zi(e))*n,2)+Math.pow((zi(r)-zi(i))*s,2))},hl=function(e){return console.warn(e)},_h=function(e){return e.getAttribute("vector-effect")==="non-scaling-stroke"},kp=1,Tp=function(e,i,t){var r=e.indexOf(" "),n,s;return r<0?(n=t!==void 0?t+"":e,s=e):(n=e.substr(0,r),s=e.substr(r+1)),n=ll(n,i),s=ll(s,i),n>s?[s,n]:[n,s]},zs=function(e){if(e=au(e)[0],!e)return 0;var i=e.tagName.toLowerCase(),t=e.style,r=1,n=1,s,a,u,l,c,p,h;_h(e)&&(n=e.getScreenCTM(),r=Ns(n.a*n.a+n.b*n.b),n=Ns(n.d*n.d+n.c*n.c));try{a=e.getBBox()}catch{hl("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var f=a||{x:0,y:0,width:0,height:0},g=f.x,d=f.y,_=f.width,m=f.height;if((!a||!_&&!m)&&Yo[i]&&(_=ks(e,Yo[i][0]),m=ks(e,Yo[i][1]),i!=="rect"&&i!=="line"&&(_*=2,m*=2),i==="line"&&(g=ks(e,"x1"),d=ks(e,"y1"),_=Math.abs(_-g),m=Math.abs(m-d))),i==="path")l=t.strokeDasharray,t.strokeDasharray="none",s=e.getTotalLength()||0,gr(r)!==gr(n)&&!ul&&(ul=1)&&hl("Warning: length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),s*=(r+n)/2,t.strokeDasharray=l;else if(i==="rect")s=_*2*r+m*2*n;else if(i==="line")s=cl(g,d,g+_,d+m,r,n);else if(i==="polyline"||i==="polygon")for(u=e.getAttribute("points").match(Sp)||[],i==="polygon"&&u.push(u[0],u[1]),s=0,c=2;ci&&(r=i),[-n||0,r-n||0]},dl=function(){ph()&&(no=window,fh=Si=gh(),au=Si.utils.toArray,Ea=Si.core.getStyleSaver,dh=Si.core.reverting||function(){},hh=((no.navigator||{}).userAgent||"").indexOf("Edge")!==-1)},mh={version:"3.12.5",name:"drawSVG",register:function(e){Si=e,dl()},init:function(e,i,t,r,n){if(!e.getBBox)return!1;fh||dl();var s=zs(e),a,u,l;return this.styles=Ea&&Ea(e,"strokeDashoffset,strokeDasharray,strokeMiterlimit"),this.tween=t,this._style=e.style,this._target=e,i+""=="true"?i="0 100%":i?(i+"").indexOf(" ")===-1&&(i="0 "+i):i="0 0",a=fl(e,s),u=Tp(i,s,a[0]),this._length=gr(s),this._dash=gr(a[1]-a[0]),this._offset=gr(-a[0]),this._dashPT=this.add(this,"_dash",this._dash,gr(u[1]-u[0]),0,0,0,0,0,1),this._offsetPT=this.add(this,"_offset",this._offset,gr(-u[0]),0,0,0,0,0,1),hh&&(l=no.getComputedStyle(e),l.strokeLinecap!==l.strokeLinejoin&&(u=zi(l.strokeMiterlimit),this.add(e.style,"strokeMiterlimit",u,u+.01))),this._live=_h(e)||~(i+"").indexOf("live"),this._nowrap=~(i+"").indexOf("nowrap"),this._props.push("drawSVG"),kp},render:function(e,i){if(i.tween._time||!dh()){var t=i._pt,r=i._style,n,s,a,u;if(t){for(i._live&&(n=zs(i._target),n!==i._length&&(s=n/i._length,i._length=n,i._offsetPT&&(i._offsetPT.s*=s,i._offsetPT.c*=s),i._dashPT?(i._dashPT.s*=s,i._dashPT.c*=s):i._dash*=s));t;)t.r(e,t.d),t=t._next;a=i._dash||e&&e!==1&&1e-4||0,n=i._length-a+.1,u=i._offset,a&&u&&a+Math.abs(u%i._length)>i._length-.2&&(u+=u<0?.1:-.1)&&(n+=.1),r.strokeDashoffset=a?u:u+.001,r.strokeDasharray=n<.2?"none":a?a+"px,"+(i._nowrap?999999:n)+"px":"0px, 999999px"}}else i.styles.revert()},getLength:zs,getPosition:fl};gh()&&Si.registerPlugin(mh);R.registerPlugin(mh);let Vs=!1;const uu={mainNavLinks:null,secondaryNavLinks:null,allNavLinks:null,cursor:null,navButton:null,hamburgerIcon:null,hamburgerLines:null,navOverlay:null,pageContainer:null,navWrapper:null,isAnimating:!1,header:null,headerColor:null,init(){this.setVariables(),this.prepareNavOverlay(),this.addHoverAnimation(),this.handleCursor(),this.addButtonEventListeners()},setVariables(){this.mainNavLinks=R.utils.toArray(".main-nav__link"),this.secondaryNavLinks=R.utils.toArray(".secondary-nav__link"),this.allNavLinks=[...this.mainNavLinks,...this.secondaryNavLinks],this.cursor=Tr.getInstance(),this.openButton=document.querySelector(".header__nav-open-button"),this.closeButton=document.querySelector(".header__nav-close-button"),this.hamburgerIcon=document.querySelector(".hamburger-icon"),this.hamburgerLines=this.hamburgerIcon.querySelectorAll("line"),this.navOverlay=document.querySelector(".nav"),this.navWrapper=document.querySelector(".nav__wrapper"),this.header=document.querySelector(".header"),this.headerColor=getComputedStyle(this.header).color},prepareNavOverlay(){R.set(this.navOverlay,{autoAlpha:1,yPercent:-100}),this.openButton.addEventListener("click",()=>this.openNav()),this.closeButton.addEventListener("click",()=>this.closeNav(!1))},addHoverAnimation(){ho.make(this.mainNavLinks),this.mainNavLinks.forEach(o=>{o.addEventListener("mouseenter",()=>{const e=this.mainNavLinks.filter(i=>i!==o);R.to(e,{color:kr("--color--blue-gray-500"),duration:.3})}),o.addEventListener("mouseleave",()=>{R.to(this.mainNavLinks,{color:kr("--color--off-white-100"),duration:.3})})})},openNav(){this.pageContainer=document.querySelector(".page__container");const o=R.timeline({onStart:()=>{Vs=!0,this.isAnimating=!0,this.cursor.removeState("cursor--hidden"),R.to(this.header,{color:kr("--color--off-white-100")}),bt.getInstance().paused(!0)},onComplete:()=>{this.isAnimating=!1}});o.to(this.hamburgerLines,{drawSVG:"100% 100%",duration:.3,ease:"power3.inOut",stagger:.1,onComplete:()=>{R.set(this.hamburgerIcon,{display:"none"})}}),o.to(this.pageContainer,{y:200,filter:"blur(80px)",duration:.8,ease:"power3.inOut"},0),o.to(this.navOverlay,{yPercent:0},".2"),o.from(this.mainNavLinks,{autoAlpha:0,y:-50,duration:1,ease:"power3.out",stagger:{from:"end",amount:.1}},"<50%"),o.from(".close-icon line",{drawSVG:R.utils.wrap(["100% 100%","0"]),stagger:.2,onStart:()=>{R.set(this.closeButton,{display:"block"})}},"<50%")},closeNav(o=!0){const e=R.timeline({onStart:()=>{this.isAnimating=!0,this.cursor.removeState("cursor--hidden"),R.set(this.closeButton,{display:"none"})},onComplete:()=>{this.isAnimating=!1,Vs=!1,bt.getInstance().paused(!1),R.set([this.openButton,this.hamburgerIcon,this.hamburgerLines,this.mainNavLinks],{clearProps:"all"})}});e.to(this.pageContainer,{y:0,filter:"blur(0px)",duration:.8,ease:"power3.out"},"<"),o||e.to(this.header,{color:this.headerColor},"<"),e.to(this.mainNavLinks,{autoAlpha:0,y:-50,filter:"blur(5px)",duration:1,ease:"power3.out",stagger:{from:"start",amount:.1}},"<"),e.to(this.navOverlay,{yPercent:-100},"<")},navTransition(o){const e=R.timeline({onStart:()=>{this.isAnimating=!0,this.cursor.removeState("cursor--hidden"),R.set(this.closeButton,{display:"none"}),o()},onComplete:()=>{this.isAnimating=!1,Vs=!1,bt.getInstance().paused(!1),R.set([this.openButton,this.hamburgerIcon,this.hamburgerLines,this.mainNavLinks],{clearProps:"all"})}});e.to(this.header,{color:this.headerColor},"<"),e.to(this.mainNavLinks,{autoAlpha:0,y:-50,filter:"blur(5px)",duration:1,ease:"power3.out",stagger:{from:"start",amount:.1}},"<"),e.to(this.navOverlay,{yPercent:-100},"<")},handleCursor(){this.allNavLinks.forEach(o=>{o.addEventListener("mouseenter",()=>this.cursor.addState("cursor--hidden")),o.addEventListener("mouseleave",()=>this.cursor.removeState("cursor--hidden"))})},updateNavigation:()=>{const o=document.querySelectorAll(".main-nav__link");o.forEach(s=>s.classList.remove("main-nav__link--active"));const i=window.location.pathname.match(/(?:\/public)?\/([^\/]+)(?:\.html)?/),t=i?i[1]:"",r=new RegExp(`/(?:public/)?${t}(?:\\.html)?`),n=Array.from(o).find(s=>r.test(s.getAttribute("href")));n&&n.classList.add("main-nav__link--active")},addButtonEventListeners(){const o=e=>{if(this.isAnimating)return;const i=e?["20% 100%","60% 100%","40% 100%"]:"0% 100%";R.to(this.hamburgerLines,{drawSVG:R.utils.wrap(i),duration:.3,ease:"power3.inOut"})};this.openButton.addEventListener("mouseenter",()=>{this.cursor.addState("cursor--hidden"),o(!0)}),this.openButton.addEventListener("mouseleave",()=>{this.cursor.removeState("cursor--hidden"),o(!1)}),this.closeButton.addEventListener("mouseenter",()=>this.cursor.addState("cursor--hidden")),this.closeButton.addEventListener("mouseleave",()=>this.cursor.removeState("cursor--hidden"))}};class Fp{constructor(){X(this,"name","nav-transition");X(this,"from",{custom:()=>Vs})}leave({current:e}){R.set(e.container,{display:"none"})}afterLeave(){bt.getInstance().scrollTo(0,!1)}enter(){const e=this.async();uu.navTransition(e)}}const Pp=new Fp,Ap={init(){this.addTransitionElement(),this.setupBarba()},setupBarba(){cs.hooks.before(o=>{bt.getInstance().paused(!0)}),cs.hooks.beforeEnter(o=>{uu.updateNavigation()}),cs.hooks.after(()=>{bt.getInstance().paused(!1)}),cs.init({logLevel:"error",views:[Xd,Ud,jd,fp,Dp,pp],transitions:[Pp,Ep,Od,_p]})},addTransitionElement(){const o=document.createElement("div");o.classList.add("transition"),document.body.appendChild(o),R.set(o,{yPercent:100,autoAlpha:1,position:"fixed",inset:0,backgroundColor:kr("--transition--bg-color"),zIndex:9})}};R.registerPlugin(Ir);const Op={logo:null,splitLogo:null,init(){this.logo=document.querySelector(".header__name"),this.splitLogo=new Ir(this.logo,{type:"lines, words"}),R.set([this.splitLogo.lines],{overflow:"hidden",position:"relative"}),R.set(this.splitLogo.words,{paddingBottom:"0.15em"}),R.set(this.splitLogo.lines.slice(1),{marginTop:"-0.15em"}),this.splitLogo.words.forEach(r=>{const n=r.cloneNode(!0);R.set(n,{yPercent:100,position:"absolute",top:0,left:0}),r.insertAdjacentElement("afterend",n)}),ho.make(this.logo);const o=Tr.getInstance(),e=R.timeline({paused:!0}),i=R.to(this.splitLogo.lines[1].querySelectorAll("div"),{yPercent:"-=100",ease:"none"}),t=R.to(this.splitLogo.lines[0].querySelectorAll("div"),{yPercent:"-=100",ease:"none"});e.add(i,0),e.add(t,">-25%"),this.logo.addEventListener("mouseenter",()=>{o.addState("cursor--hidden"),R.to(e,{progress:1,duration:.6,ease:"power1.inOut"})}),this.logo.addEventListener("mouseleave",()=>{o.removeState("cursor--hidden"),R.to(e,{progress:0,duration:.6,ease:"power1.out"})})}};bt.init();Tr.init();uu.init();Op.init();Ap.init();