31 lines
166 KiB
JavaScript
31 lines
166 KiB
JavaScript
var gl=Object.defineProperty;var ml=(o,e,i)=>e in o?gl(o,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[e]=i;var G=(o,e,i)=>ml(o,typeof e!="symbol"?e+"":e,i);function mi(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function $o(o,e){o.prototype=Object.create(e.prototype),o.prototype.constructor=o,o.__proto__=e}/*!
|
|
* GSAP 3.15.0
|
|
* https://gsap.com
|
|
*
|
|
* @license Copyright 2008-2026, GreenSock. All rights reserved.
|
|
* Subject to the terms at https://gsap.com/standard-license
|
|
* @author: Jack Doyle, jack@greensock.com
|
|
*/var Vt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Zr={duration:.5,overwrite:!1,delay:0},Ls,ct,Ae,Zt=1e8,Pe=1/Zt,cs=Math.PI*2,vl=cs/4,xl=0,Go=Math.sqrt,yl=Math.cos,bl=Math.sin,it=function(e){return typeof e=="string"},Be=function(e){return typeof e=="function"},wi=function(e){return typeof e=="number"},zs=function(e){return typeof e>"u"},gi=function(e){return typeof e=="object"},Ot=function(e){return e!==!1},Fs=function(){return typeof window<"u"},hn=function(e){return Be(e)||it(e)},jo=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},xt=Array.isArray,wl=/random\([^)]+\)/g,Sl=/,\s*/g,ao=/(?:-?\.?\d|\.)+/gi,Ko=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,hr=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Kn=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Qo=/[+-]=-?[.\d]+/,Tl=/[^,'"\[\]\s]+/gi,Cl=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ie,ci,fs,Is,qt={},Ln={},Zo,Jo=function(e){return(Ln=wr(e,qt))&&Lt},Ns=function(e,i){return console.warn("Invalid property",e,"set to",i,"Missing plugin? gsap.registerPlugin()")},Jr=function(e,i){return!i&&console.warn(e)},ea=function(e,i){return e&&(qt[e]=i)&&Ln&&(Ln[e]=i)||qt},en=function(){return 0},El={suppressEvents:!0,isStart:!0,kill:!1},Cn={suppressEvents:!0,kill:!1},kl={suppressEvents:!0},Hs={},Di=[],hs={},ta,Nt={},Qn={},lo=30,En=[],Ws="",Bs=function(e){var i=e[0],t,r;if(gi(i)||Be(i)||(e=[e]),!(t=(i._gsap||{}).harness)){for(r=En.length;r--&&!En[r].targetTest(i););t=En[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new Sa(e[r],t)))||e.splice(r,1);return e},ji=function(e){return e._gsap||Bs(Jt(e))[0]._gsap},ia=function(e,i,t){return(t=e[i])&&Be(t)?e[i]():zs(t)&&e.getAttribute&&e.getAttribute(i)||t},Rt=function(e,i){return(e=e.split(",")).forEach(i)||e},Xe=function(e){return Math.round(e*1e5)/1e5||0},Fe=function(e){return Math.round(e*1e7)/1e7||0},_r=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},Pl=function(e,i){for(var t=i.length,r=0;e.indexOf(i[r])<0&&++r<t;);return r<t},zn=function(){var e=Di.length,i=Di.slice(0),t,r;for(hs={},Di.length=0,t=0;t<e;t++)r=i[t],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},Ys=function(e){return!!(e._initted||e._startAt||e.add)},ra=function(e,i,t,r){Di.length&&!ct&&zn(),e.render(i,t,!!(ct&&i<0&&Ys(e))),Di.length&&!ct&&zn()},na=function(e){var i=parseFloat(e);return(i||i===0)&&(e+"").match(Tl).length<2?i:it(e)?e.trim():e},sa=function(e){return e},Ut=function(e,i){for(var t in i)t in e||(e[t]=i[t]);return e},Ml=function(e){return function(i,t){for(var r in t)r in i||r==="duration"&&e||r==="ease"||(i[r]=t[r])}},wr=function(e,i){for(var t in i)e[t]=i[t];return e},uo=function o(e,i){for(var t in i)t!=="__proto__"&&t!=="constructor"&&t!=="prototype"&&(e[t]=gi(i[t])?o(e[t]||(e[t]={}),i[t]):i[t]);return e},Fn=function(e,i){var t={},r;for(r in e)r in i||(t[r]=e[r]);return t},Wr=function(e){var i=e.parent||Ie,t=e.keyframes?Ml(xt(e.keyframes)):Ut;if(Ot(e.inherit))for(;i;)t(e,i.vars.defaults),i=i.parent||i._dp;return e},Ol=function(e,i){for(var t=e.length,r=t===i.length;r&&t--&&e[t]===i[t];);return t<0},oa=function(e,i,t,r,n){var s=e[r],a;if(n)for(a=i[n];s&&s[n]>a;)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},qn=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},Fi=function(e,i){e.parent&&(!i||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Ki=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},Rl=function(e){for(var i=e.parent;i&&i.parent;)i._dirty=1,i.totalDuration(),i=i.parent;return e},ds=function(e,i,t,r){return e._startAt&&(ct?e._startAt.revert(Cn):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(i,!0,r))},Al=function o(e){return!e||e._ts&&o(e.parent)},co=function(e){return e._repeat?Sr(e._tTime,e=e.duration()+e._rDelay)*e:0},Sr=function(e,i){var t=Math.floor(e=Fe(e/i));return e&&t===e?t-1:t},In=function(e,i){return(e-i._start)*i._ts+(i._ts>=0?0:i._dirty?i.totalDuration():i._tDur)},Un=function(e){return e._end=Fe(e._start+(e._tDur/Math.abs(e._ts||e._rts||Pe)||0))},$n=function(e,i){var t=e._dp;return t&&t.smoothChildTiming&&e._ts&&(e._start=Fe(t._time-(e._ts>0?i/e._ts:((e._dirty?e.totalDuration():e._tDur)-i)/-e._ts)),Un(e),t._dirty||Ki(t,e)),e},aa=function(e,i){var t;if((i._time||!i._dur&&i._initted||i._start<e._time&&(i._dur||!i.add))&&(t=In(e.rawTime(),i),(!i._dur||un(0,i.totalDuration(),t)-i._tTime>Pe)&&i.render(t,!0)),Ki(e,i)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(t=e;t._dp;)t.rawTime()>=0&&t.totalTime(t._tTime),t=t._dp;e._zTime=-Pe}},hi=function(e,i,t,r){return i.parent&&Fi(i),i._start=Fe((wi(t)?t:t||e!==Ie?jt(e,t,i):e._time)+i._delay),i._end=Fe(i._start+(i.totalDuration()/Math.abs(i.timeScale())||0)),oa(e,i,"_first","_last",e._sort?"_start":0),ps(i)||(e._recent=i),r||aa(e,i),e._ts<0&&$n(e,e._tTime),e},la=function(e,i){return(qt.ScrollTrigger||Ns("scrollTrigger",i))&&qt.ScrollTrigger.create(i,e)},ua=function(e,i,t,r,n){if(Vs(e,i,n),!e._initted)return 1;if(!t&&e._pt&&!ct&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&ta!==Wt.frame)return Di.push(e),e._lazy=[n,r],1},Dl=function o(e){var i=e.parent;return i&&i._ts&&i._initted&&!i._lock&&(i.rawTime()<0||o(i))},ps=function(e){var i=e.data;return i==="isFromStart"||i==="isStart"},Ll=function(e,i,t,r){var n=e.ratio,s=i<0||!i&&(!e._start&&Dl(e)&&!(!e._initted&&ps(e))||(e._ts<0||e._dp._ts<0)&&!ps(e))?0:1,a=e._rDelay,l=0,u,c,p;if(a&&e._repeat&&(l=un(0,e._tDur,i),c=Sr(l,a),e._yoyo&&c&1&&(s=1-s),c!==Sr(e._tTime,a)&&(n=1-s,e.vars.repeatRefresh&&e._initted&&e.invalidate())),s!==n||ct||r||e._zTime===Pe||!i&&e._zTime){if(!e._initted&&ua(e,i,r,t,l))return;for(p=e._zTime,e._zTime=i||(t?Pe:0),t||(t=i&&!p),e.ratio=s,e._from&&(s=1-s),e._time=0,e._tTime=l,u=e._pt;u;)u.r(s,u.d),u=u._next;i<0&&ds(e,i,t,!0),e._onUpdate&&!t&&Yt(e,"onUpdate"),l&&e._repeat&&!t&&e.parent&&Yt(e,"onRepeat"),(i>=e._tDur||i<0)&&e.ratio===s&&(s&&Fi(e,1),!t&&!ct&&(Yt(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=i)},zl=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._start<i)return r;r=r._prev}},Tr=function(e,i,t,r){var n=e._repeat,s=Fe(i)||0,a=e._tTime/e._tDur;return a&&!r&&(e._time*=s/e._dur),e._dur=s,e._tDur=n?n<0?1e10:Fe(s*(n+1)+e._rDelay*n):s,a>0&&!r&&$n(e,e._tTime=e._tDur*a),e.parent&&Un(e),t||Ki(e.parent,e),e},fo=function(e){return e instanceof Mt?Ki(e):Tr(e,e._dur)},Fl={_start:0,endTime:en,totalDuration:en},jt=function o(e,i,t){var r=e.labels,n=e._recent||Fl,s=e.duration()>=Zt?n.endTime(!1):e._dur,a,l,u;return it(i)&&(isNaN(i)||i in r)?(l=i.charAt(0),u=i.substr(-1)==="%",a=i.indexOf("="),l==="<"||l===">"?(a>=0&&(i=i.replace(/=/,"")),(l==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(i.substr(1))||0)*(u?(a<0?n:t).totalDuration()/100:1)):a<0?(i in r||(r[i]=s),r[i]):(l=parseFloat(i.charAt(a-1)+i.substr(a+1)),u&&t&&(l=l/100*(xt(t)?t[0]:t).totalDuration()),a>1?o(e,i.substr(0,a-1),t)+l:s+l)):i==null?s:+i},Br=function(e,i,t){var r=wi(i[1]),n=(r?2:1)+(e<2?0:1),s=i[n],a,l;if(r&&(s.duration=i[1]),s.parent=t,e){for(a=s,l=t;l&&!("immediateRender"in a);)a=l.vars.defaults||{},l=Ot(l.vars.inherit)&&l.parent;s.immediateRender=Ot(a.immediateRender),e<2?s.runBackwards=1:s.startAt=i[n-1]}return new Ue(i[0],s,i[n+1])},Wi=function(e,i){return e||e===0?i(e):i},un=function(e,i,t){return t<e?e:t>i?i:t},mt=function(e,i){return!it(e)||!(i=Cl.exec(e))?"":i[1]},Il=function(e,i,t){return Wi(t,function(r){return un(e,i,r)})},_s=[].slice,ca=function(e,i){return e&&gi(e)&&"length"in e&&(!i&&!e.length||e.length-1 in e&&gi(e[0]))&&!e.nodeType&&e!==ci},Nl=function(e,i,t){return t===void 0&&(t=[]),e.forEach(function(r){var n;return it(r)&&!i||ca(r,1)?(n=t).push.apply(n,Jt(r)):t.push(r)})||t},Jt=function(e,i,t){return Ae&&!i&&Ae.selector?Ae.selector(e):it(e)&&!t&&(fs||!Cr())?_s.call((i||Is).querySelectorAll(e),0):xt(e)?Nl(e,t):ca(e)?_s.call(e,0):e?[e]:[]},gs=function(e){return e=Jt(e)[0]||Jr("Invalid scope")||{},function(i){var t=e.current||e.nativeElement||e;return Jt(i,t.querySelectorAll?t:t===e?Jr("Invalid scope")||Is.createElement("div"):e)}},fa=function(e){return e.sort(function(){return .5-Math.random()})},ha=function(e){if(Be(e))return e;var i=gi(e)?e:{each:e},t=Qi(i.ease),r=i.from||0,n=parseFloat(i.base)||0,s={},a=r>0&&r<1,l=isNaN(r)||a,u=i.axis,c=r,p=r;return it(r)?c=p={center:.5,edges:.5,end:1}[r]||0:!a&&l&&(c=r[0],p=r[1]),function(h,f,_){var d=(_||i).length,v=s[d],S,y,k,b,P,z,E,N,L;if(!v){if(L=i.grid==="auto"?0:(i.grid||[1,Zt])[1],!L){for(E=-Zt;E<(E=_[L++].getBoundingClientRect().left)&&L<d;);L<d&&L--}for(v=s[d]=[],S=l?Math.min(L,d)*c-.5:r%L,y=L===Zt?0:l?d*p/L-.5:r/L|0,E=0,N=Zt,z=0;z<d;z++)k=z%L-S,b=y-(z/L|0),v[z]=P=u?Math.abs(u==="y"?b:k):Go(k*k+b*b),P>E&&(E=P),P<N&&(N=P);r==="random"&&fa(v),v.max=E-N,v.min=N,v.v=d=(parseFloat(i.amount)||parseFloat(i.each)*(L>d?d-1:u?u==="y"?d/L:L:Math.max(L,d/L))||0)*(r==="edges"?-1:1),v.b=d<0?n-d:n,v.u=mt(i.amount||i.each)||0,t=t&&d<0?Ql(t):t}return d=(v[h]-v.min)/v.max||0,Fe(v.b+(t?t(d):d)*v.v)+v.u}},ms=function(e){var i=Math.pow(10,((e+"").split(".")[1]||"").length);return function(t){var r=Fe(Math.round(parseFloat(t)/e)*e*i);return(r-r%1)/i+(wi(t)?0:mt(t))}},da=function(e,i){var t=xt(e),r,n;return!t&&gi(e)&&(r=t=e.radius||Zt,e.values?(e=Jt(e.values),(n=!wi(e[0]))&&(r*=r)):e=ms(e.increment)),Wi(i,t?Be(e)?function(s){return n=e(s),Math.abs(n-s)<=r?n:s}:function(s){for(var a=parseFloat(n?s.x:s),l=parseFloat(n?s.y:0),u=Zt,c=0,p=e.length,h,f;p--;)n?(h=e[p].x-a,f=e[p].y-l,h=h*h+f*f):h=Math.abs(e[p]-a),h<u&&(u=h,c=p);return c=!r||u<=r?e[c]:s,n||c===s||wi(s)?c:c+mt(s)}:ms(e))},pa=function(e,i,t,r){return Wi(xt(e)?!i:t===!0?!!(t=0):!r,function(){return xt(e)?e[~~(Math.random()*e.length)]:(t=t||1e-5)&&(r=t<1?Math.pow(10,(t+"").length-2):1)&&Math.floor(Math.round((e-t/2+Math.random()*(i-e+t*.99))/t)*t*r)/r})},Hl=function(){for(var e=arguments.length,i=new Array(e),t=0;t<e;t++)i[t]=arguments[t];return function(r){return i.reduce(function(n,s){return s(n)},r)}},Wl=function(e,i){return function(t){return e(parseFloat(t))+(i||mt(t))}},Bl=function(e,i,t){return ga(e,i,0,1,t)},_a=function(e,i,t){return Wi(t,function(r){return e[~~i(r)]})},Yl=function o(e,i,t){var r=i-e;return xt(e)?_a(e,o(0,e.length),i):Wi(t,function(n){return(r+(n-e)%r)%r+e})},Xl=function o(e,i,t){var r=i-e,n=r*2;return xt(e)?_a(e,o(0,e.length-1),i):Wi(t,function(s){return s=(n+(s-e)%n)%n||0,e+(s>r?n-s:s)})},tn=function(e){return e.replace(wl,function(i){var t=i.indexOf("[")+1,r=i.substring(t||7,t?i.indexOf("]"):i.length-1).split(Sl);return pa(t?r:+r[0],t?0:+r[1],+r[2]||1e-5)})},ga=function(e,i,t,r,n){var s=i-e,a=r-t;return Wi(n,function(l){return t+((l-e)/s*a||0)})},Vl=function o(e,i,t,r){var n=isNaN(e+i)?0:function(f){return(1-f)*e+f*i};if(!n){var s=it(e),a={},l,u,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,u=1;u<p;u++)c.push(o(e[u-1],e[u]));p--,n=function(_){_*=p;var d=Math.min(h,~~_);return c[d](_-d)},t=i}else r||(e=wr(xt(e)?[]:{},e));if(!c){for(l in i)Xs.call(a,e,l,"get",i[l]);n=function(_){return $s(_,a)||(s?e.p:e)}}}return Wi(t,n)},ho=function(e,i,t){var r=e.labels,n=Zt,s,a,l;for(s in r)a=r[s]-i,a<0==!!t&&a&&n>(a=Math.abs(a))&&(l=s,n=a);return l},Yt=function(e,i,t){var r=e.vars,n=r[i],s=Ae,a=e._ctx,l,u,c;if(n)return l=r[i+"Params"],u=r.callbackScope||e,t&&Di.length&&zn(),a&&(Ae=a),c=l?n.apply(u,l):n.call(u),Ae=s,c},Dr=function(e){return Fi(e),e.scrollTrigger&&e.scrollTrigger.kill(!!ct),e.progress()<1&&Yt(e,"onInterrupt"),e},dr,ma=[],va=function(e){if(e)if(e=!e.name&&e.default||e,Fs()||e.headless){var i=e.name,t=Be(e),r=i&&!t&&e.init?function(){this._props=[]}:e,n={init:en,render:$s,add:Xs,kill:au,modifier:ou,rawVars:0},s={targetTest:0,get:0,getSetter:Us,aliases:{},register:0};if(Cr(),e!==r){if(Nt[i])return;Ut(r,Ut(Fn(e,n),s)),wr(r.prototype,wr(n,Fn(e,s))),Nt[r.prop=i]=r,e.targetTest&&(En.push(r),Hs[i]=1),i=(i==="css"?"CSS":i.charAt(0).toUpperCase()+i.substr(1))+"Plugin"}ea(i,r),e.register&&e.register(Lt,r,At)}else ma.push(e)},ke=255,Lr={aqua:[0,ke,ke],lime:[0,ke,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ke],navy:[0,0,128],white:[ke,ke,ke],olive:[128,128,0],yellow:[ke,ke,0],orange:[ke,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ke,0,0],pink:[ke,192,203],cyan:[0,ke,ke],transparent:[ke,ke,ke,0]},Zn=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)*ke+.5|0},xa=function(e,i,t){var r=e?wi(e)?[e>>16,e>>8&ke,e&ke]:0:Lr.black,n,s,a,l,u,c,p,h,f,_;if(!r){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Lr[e])r=Lr[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&ke,r&ke,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&ke,e&ke]}else if(e.substr(0,3)==="hsl"){if(r=_=e.match(ao),!i)l=+r[0]%360/360,u=+r[1]/100,c=+r[2]/100,s=c<=.5?c*(u+1):c+u-c*u,n=c*2-s,r.length>3&&(r[3]*=1),r[0]=Zn(l+1/3,n,s),r[1]=Zn(l,n,s),r[2]=Zn(l-1/3,n,s);else if(~e.indexOf("="))return r=e.match(Ko),t&&r.length<4&&(r[3]=1),r}else r=e.match(ao)||Lr.transparent;r=r.map(Number)}return i&&!_&&(n=r[0]/ke,s=r[1]/ke,a=r[2]/ke,p=Math.max(n,s,a),h=Math.min(n,s,a),c=(p+h)/2,p===h?l=u=0:(f=p-h,u=c>.5?f/(2-p-h):f/(p+h),l=p===n?(s-a)/f+(s<a?6:0):p===s?(a-n)/f+2:(n-s)/f+4,l*=60),r[0]=~~(l+.5),r[1]=~~(u*100+.5),r[2]=~~(c*100+.5)),t&&r.length<4&&(r[3]=1),r},ya=function(e){var i=[],t=[],r=-1;return e.split(Li).forEach(function(n){var s=n.match(hr)||[];i.push.apply(i,s),t.push(r+=s.length+1)}),i.c=t,i},po=function(e,i,t){var r="",n=(e+r).match(Li),s=i?"hsla(":"rgba(",a=0,l,u,c,p;if(!n)return e;if(n=n.map(function(h){return(h=xa(h,i,1))&&s+(i?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),t&&(c=ya(e),l=t.c,l.join(r)!==c.c.join(r)))for(u=e.replace(Li,"1").split(hr),p=u.length-1;a<p;a++)r+=u[a]+(~l.indexOf(a)?n.shift()||s+"0,0,0,0)":(c.length?c:n.length?n:t).shift());if(!u)for(u=e.split(Li),p=u.length-1;a<p;a++)r+=u[a]+n[a];return r+u[p]},Li=function(){var o="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in Lr)o+="|"+e+"\\b";return new RegExp(o+")","gi")}(),ql=/hsl[a]?\(/,ba=function(e){var i=e.join(" "),t;if(Li.lastIndex=0,Li.test(i))return t=ql.test(i),e[1]=po(e[1],t),e[0]=po(e[0],t,ya(e[1])),!0},rn,Wt=function(){var o=Date.now,e=500,i=33,t=o(),r=t,n=1e3/240,s=n,a=[],l,u,c,p,h,f,_=function d(v){var S=o()-r,y=v===!0,k,b,P,z;if((S>e||S<0)&&(t+=S-i),r+=S,P=r-t,k=P-s,(k>0||y)&&(z=++p.frame,h=P-p.time*1e3,p.time=P=P/1e3,s+=k+(k>=n?4:n-k),b=1),y||(l=u(d)),b)for(f=0;f<a.length;f++)a[f](P,h,z,v)};return p={time:0,frame:0,tick:function(){_(!0)},deltaRatio:function(v){return h/(1e3/(v||60))},wake:function(){Zo&&(!fs&&Fs()&&(ci=fs=window,Is=ci.document||{},qt.gsap=Lt,(ci.gsapVersions||(ci.gsapVersions=[])).push(Lt.version),Jo(Ln||ci.GreenSockGlobals||!ci.gsap&&ci||{}),ma.forEach(va)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&p.sleep(),u=c||function(v){return setTimeout(v,s-p.time*1e3+1|0)},rn=1,_(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(l),rn=0,u=en},lagSmoothing:function(v,S){e=v||1/0,i=Math.min(S||33,e)},fps:function(v){n=1e3/(v||240),s=p.time*1e3+n},add:function(v,S,y){var k=S?function(b,P,z,E){v(b,P,z,E),p.remove(k)}:v;return p.remove(v),a[y?"unshift":"push"](k),Cr(),k},remove:function(v,S){~(S=a.indexOf(v))&&a.splice(S,1)&&f>=S&&f--},_listeners:a},p}(),Cr=function(){return!rn&&Wt.wake()},xe={},Ul=/^[\d.\-M][\d.\-,\s]/,$l=/["']/g,Gl=function(e){for(var i={},t=e.substr(1,e.length-3).split(":"),r=t[0],n=1,s=t.length,a,l,u;n<s;n++)l=t[n],a=n!==s-1?l.lastIndexOf(","):l.length,u=l.substr(0,a),i[r]=isNaN(u)?u.replace($l,"").trim():+u,r=l.substr(a+1).trim();return i},jl=function(e){var i=e.indexOf("(")+1,t=e.indexOf(")"),r=e.indexOf("(",i);return e.substring(i,~r&&r<t?e.indexOf(")",t+1):t)},Kl=function(e){var i=(e+"").split("("),t=xe[i[0]];return t&&i.length>1&&t.config?t.config.apply(null,~e.indexOf("{")?[Gl(i[1])]:jl(e).split(",").map(na)):xe._CE&&Ul.test(e)?xe._CE("",e):t},Ql=function(e){return function(i){return 1-e(1-i)}},Qi=function(e,i){return e&&(Be(e)?e:xe[e]||Kl(e))||i},sr=function(e,i,t,r){t===void 0&&(t=function(l){return 1-i(1-l)}),r===void 0&&(r=function(l){return l<.5?i(l*2)/2:1-i((1-l)*2)/2});var n={easeIn:i,easeOut:t,easeInOut:r},s;return Rt(e,function(a){xe[a]=qt[a]=n,xe[s=a.toLowerCase()]=t;for(var l in n)xe[s+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=xe[a+"."+l]=n[l]}),n},wa=function(e){return function(i){return i<.5?(1-e(1-i*2))/2:.5+e((i-.5)*2)/2}},Jn=function o(e,i,t){var r=i>=1?i:1,n=(t||(e?.3:.45))/(i<1?i:1),s=n/cs*(Math.asin(1/r)||0),a=function(c){return c===1?1:r*Math.pow(2,-10*c)*bl((c-s)*n)+1},l=e==="out"?a:e==="in"?function(u){return 1-a(1-u)}:wa(a);return n=cs/n,l.config=function(u,c){return o(e,u,c)},l},es=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)}:wa(t);return r.config=function(n){return o(e,n)},r};Rt("Linear,Quad,Cubic,Quart,Quint,Strong",function(o,e){var i=e<5?e+1:e;sr(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})});xe.Linear.easeNone=xe.none=xe.Linear.easeIn;sr("Elastic",Jn("in"),Jn("out"),Jn());(function(o,e){var i=1/e,t=2*i,r=2.5*i,n=function(a){return a<i?o*a*a:a<t?o*Math.pow(a-1.5/e,2)+.75:a<r?o*(a-=2.25/e)*a+.9375:o*Math.pow(a-2.625/e,2)+.984375};sr("Bounce",function(s){return 1-n(1-s)},n)})(7.5625,2.75);sr("Expo",function(o){return Math.pow(2,10*(o-1))*o+o*o*o*o*o*o*(1-o)});sr("Circ",function(o){return-(Go(1-o*o)-1)});sr("Sine",function(o){return o===1?1:-yl(o*vl)+1});sr("Back",es("in"),es("out"),es());xe.SteppedEase=xe.steps=qt.SteppedEase={config:function(e,i){e===void 0&&(e=1);var t=1/e,r=e+(i?0:1),n=i?1:0,s=1-Pe;return function(a){return((r*un(0,s,a)|0)+n)*t}}};Zr.ease=xe["quad.out"];Rt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(o){return Ws+=o+","+o+"Params,"});var Sa=function(e,i){this.id=xl++,e._gsap=this,this.target=e,this.harness=i,this.get=i?i.get:ia,this.set=i?i.getSetter:Us},nn=function(){function o(i){this.vars=i,this._delay=+i.delay||0,(this._repeat=i.repeat===1/0?-2:i.repeat||0)&&(this._rDelay=i.repeatDelay||0,this._yoyo=!!i.yoyo||!!i.yoyoEase),this._ts=1,Tr(this,+i.duration,1,1),this.data=i.data,Ae&&(this._ctx=Ae,Ae.data.push(this)),rn||Wt.wake()}var e=o.prototype;return e.delay=function(t){return t||t===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Tr(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,r){if(Cr(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for($n(this,t),!n._dp||n.parent||aa(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&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&hi(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===Pe||!this._initted&&this._dur&&t||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),ra(this,t,r)),this},e.time=function(t,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+co(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&&this._initted?1:0},e.progress=function(t,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-t:t)+co(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?Sr(this._tTime,n)+1:1},e.timeScale=function(t,r){if(!arguments.length)return this._rts===-Pe?0:this._rts;if(this._rts===t)return this;var n=this.parent&&this._ts?In(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-Pe?0:this._rts,this.totalTime(un(-Math.abs(this._delay),this.totalDuration(),n),r!==!1),Un(this),Rl(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):(Cr(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Pe&&(this._tTime-=Pe)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=Fe(t);var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&hi(r,this,this._start-this._delay),this}return this._start},e.endTime=function(t){return this._start+(Ot(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?In(r.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){t===void 0&&(t=kl);var r=ct;return ct=t,Ys(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),this.data!=="nested"&&t.kill!==!1&&this.kill(),ct=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,fo(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var r=this._time;return this._rDelay=t,fo(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(jt(this,t),Ot(r))},e.restart=function(t,r){return this.play().totalTime(t?-this._delay:0,Ot(r)),this._dur||(this._zTime=-Pe),this},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?-Pe:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Pe,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&&n<this.endTime(!0)-Pe)},e.eventCallback=function(t,r,n){var s=this.vars;return arguments.length>1?(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,n=r._prom;return new Promise(function(s){var a=Be(t)?t:sa,l=function(){var c=r.then;r.then=null,n&&n(),Be(a)&&(a=a(r))&&(a.then||a===r)&&(r.then=c),s(a),r.then=c};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?l():r._prom=l})},e.kill=function(){Dr(this)},o}();Ut(nn.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:-Pe,_prom:0,_ps:!1,_rts:1});var Mt=function(o){$o(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=Ot(t.sortChildren),Ie&&hi(t.parent||Ie,mi(n),r),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&la(mi(n),t.scrollTrigger),n}var i=e.prototype;return i.to=function(r,n,s){return Br(0,arguments,this),this},i.from=function(r,n,s){return Br(1,arguments,this),this},i.fromTo=function(r,n,s,a){return Br(2,arguments,this),this},i.set=function(r,n,s){return n.duration=0,n.parent=this,Wr(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new Ue(r,n,jt(this,s),1),this},i.call=function(r,n,s){return hi(this,Ue.delayedCall(0,r,n),s)},i.staggerTo=function(r,n,s,a,l,u,c){return s.duration=n,s.stagger=s.stagger||a,s.onComplete=u,s.onCompleteParams=c,s.parent=this,new Ue(r,s,jt(this,l)),this},i.staggerFrom=function(r,n,s,a,l,u,c){return s.runBackwards=1,Wr(s).immediateRender=Ot(s.immediateRender),this.staggerTo(r,n,s,a,l,u,c)},i.staggerFromTo=function(r,n,s,a,l,u,c,p){return a.startAt=s,Wr(a).immediateRender=Ot(a.immediateRender),this.staggerTo(r,n,a,l,u,c,p)},i.render=function(r,n,s){var a=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,c=r<=0?0:Fe(r),p=this._zTime<0!=r<0&&(this._initted||!u),h,f,_,d,v,S,y,k,b,P,z,E;if(this!==Ie&&c>l&&r>=0&&(c=l),c!==this._tTime||s||p){if(a!==this._time&&u&&(c+=this._time-a,r+=this._time-a),h=c,b=this._start,k=this._ts,S=!k,p&&(u||(a=this._zTime),(r||!n)&&(this._zTime=r)),this._repeat){if(z=this._yoyo,v=u+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(v*100+r,n,s);if(h=Fe(c%v),c===l?(d=this._repeat,h=u):(P=Fe(c/v),d=~~P,d&&d===P&&(h=u,d--),h>u&&(h=u)),P=Sr(this._tTime,v),!a&&this._tTime&&P!==d&&this._tTime-P*v-this._dur<=0&&(P=d),z&&d&1&&(h=u-h,E=1),d!==P&&!this._lock){var N=z&&P&1,L=N===(z&&d&1);if(d<P&&(N=!N),a=N?0:c%u?u:c,this._lock=1,this.render(a||(E?0:Fe(d*v)),n,!u)._lock=0,this._tTime=c,!n&&this.parent&&Yt(this,"onRepeat"),this.vars.repeatRefresh&&!E&&(this.invalidate()._lock=1,P=d),a&&a!==this._time||S!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,l=this._tDur,L&&(this._lock=2,a=N?u:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!E&&this.invalidate()),this._lock=0,!this._ts&&!S)return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(y=zl(this,Fe(a),Fe(h)),y&&(c-=h-(h=y._start))),this._tTime=c,this._time=h,this._act=!!k,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=r,a=0),!a&&c&&u&&!n&&!P&&(Yt(this,"onStart"),this._tTime!==c))return this;if(h>=a&&r>=0)for(f=this._first;f;){if(_=f._next,(f._act||h>=f._start)&&f._ts&&y!==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&&!S){y=0,_&&(c+=this._zTime=-Pe);break}}f=_}else{f=this._last;for(var A=r<0?r:h;f;){if(_=f._prev,(f._act||A<=f._end)&&f._ts&&y!==f){if(f.parent!==this)return this.render(r,n,s);if(f.render(f._ts>0?(A-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(A-f._start)*f._ts,n,s||ct&&Ys(f)),h!==this._time||!this._ts&&!S){y=0,_&&(c+=this._zTime=A?-Pe:Pe);break}}f=_}}if(y&&!n&&(this.pause(),y.render(h>=a?0:-Pe)._zTime=h>=a?1:-1,this._ts))return this._start=b,Un(this),this.render(r,n,s);this._onUpdate&&!n&&Yt(this,"onUpdate",!0),(c===l&&this._tTime>=this.totalDuration()||!c&&a)&&(b===this._start||Math.abs(k)!==Math.abs(this._ts))&&(this._lock||((r||!u)&&(c===l&&this._ts>0||!c&&this._ts<0)&&Fi(this,1),!n&&!(r<0&&!a)&&(c||a||!l)&&(Yt(this,c===l&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<l&&this.timeScale()>0)&&this._prom())))}return this},i.add=function(r,n){var s=this;if(wi(n)||(n=jt(this,n,r)),!(r instanceof nn)){if(xt(r))return r.forEach(function(a){return s.add(a,n)}),this;if(it(r))return this.addLabel(r,n);if(Be(r))r=Ue.delayedCall(0,r);else return this}return this!==r?hi(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=-Zt);for(var l=[],u=this._first;u;)u._start>=a&&(u instanceof Ue?n&&l.push(u):(s&&l.push(u),r&&l.push.apply(l,u.getChildren(!0,n,s)))),u=u._next;return l},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 it(r)?this.removeLabel(r):Be(r)?this.killTweensOf(r):(r.parent===this&&qn(this,r),r===this._recent&&(this._recent=this._last),Ki(this))},i.totalTime=function(r,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Fe(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]=jt(this,n),this},i.removeLabel=function(r){return delete this.labels[r],this},i.addPause=function(r,n,s){var a=Ue.delayedCall(0,n||en,s);return a.data="isPause",this._hasPause=1,hi(this,a,jt(this,r))},i.removePause=function(r){var n=this._first;for(r=jt(this,r);n;)n._start===r&&n.data==="isPause"&&Fi(n),n=n._next},i.killTweensOf=function(r,n,s){for(var a=this.getTweensOf(r,s),l=a.length;l--;)Pi!==a[l]&&a[l].kill(r,n);return this},i.getTweensOf=function(r,n){for(var s=[],a=Jt(r),l=this._first,u=wi(n),c;l;)l instanceof Ue?Pl(l._targets,a)&&(u?(!Pi||l._initted&&l._ts)&&l.globalTime(0)<=n&&l.globalTime(l.totalDuration())>n:!n||l.isActive())&&s.push(l):(c=l.getTweensOf(a,n)).length&&s.push.apply(s,c),l=l._next;return s},i.tweenTo=function(r,n){n=n||{};var s=this,a=jt(s,r),l=n,u=l.startAt,c=l.onStart,p=l.onStartParams,h=l.immediateRender,f,_=Ue.to(s,Ut({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:n.duration||Math.abs((a-(u&&"time"in u?u.time:s._time))/s.timeScale())||Pe,onStart:function(){if(s.pause(),!f){var v=n.duration||Math.abs((a-(u&&"time"in u?u.time:s._time))/s.timeScale());_._dur!==v&&Tr(_,v,0,1).render(_._time,!0,!0),f=1}c&&c.apply(_,p||[])}},n));return h?_.render(0):_},i.tweenFromTo=function(r,n,s){return this.tweenTo(n,Ut({startAt:{time:jt(this,r)}},s))},i.recent=function(){return this._recent},i.nextLabel=function(r){return r===void 0&&(r=this._time),ho(this,jt(this,r))},i.previousLabel=function(r){return r===void 0&&(r=this._time),ho(this,jt(this,r),1)},i.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+Pe)},i.shiftChildren=function(r,n,s){s===void 0&&(s=0);var a=this._first,l=this.labels,u;for(r=Fe(r);a;)a._start>=s&&(a._start+=r,a._end+=r),a=a._next;if(n)for(u in l)l[u]>=s&&(l[u]+=r);return Ki(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={}),Ki(this)},i.totalDuration=function(r){var n=0,s=this,a=s._last,l=Zt,u,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;)u=a._prev,a._dirty&&a.totalDuration(),c=a._start,c>l&&s._sort&&a._ts&&!s._lock?(s._lock=1,hi(s,a,c-a._delay,1)._lock=0):l=c,c<0&&a._ts&&(n-=c,(!p&&!s._dp||p&&p.smoothChildTiming)&&(s._start+=Fe(c/s._ts),s._time-=c,s._tTime-=c),s.shiftChildren(-c,!1,-1/0),l=0),a._end>n&&a._ts&&(n=a._end),a=u;Tr(s,s===Ie&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(r){if(Ie._ts&&(ra(Ie,In(r,Ie)),ta=Wt.frame),Wt.frame>=lo){lo+=Vt.autoSleep||120;var n=Ie._first;if((!n||!n._ts)&&Vt.autoSleep&&Wt._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||Wt.sleep()}}},e}(nn);Ut(Mt.prototype,{_lock:0,_hasPause:0,_forcing:0});var Zl=function(e,i,t,r,n,s,a){var l=new At(this._pt,e,i,0,1,Ma,null,n),u=0,c=0,p,h,f,_,d,v,S,y;for(l.b=t,l.e=r,t+="",r+="",(S=~r.indexOf("random("))&&(r=tn(r)),s&&(y=[t,r],s(y,e,i),t=y[0],r=y[1]),h=t.match(Kn)||[];p=Kn.exec(r);)_=p[0],d=r.substring(u,p.index),f?f=(f+1)%5:d.substr(-5)==="rgba("&&(f=1),_!==h[c++]&&(v=parseFloat(h[c-1])||0,l._pt={_next:l._pt,p:d||c===1?d:",",s:v,c:_.charAt(1)==="="?_r(v,_)-v:parseFloat(_)-v,m:f&&f<4?Math.round:0},u=Kn.lastIndex);return l.c=u<r.length?r.substring(u,r.length):"",l.fp=a,(Qo.test(r)||S)&&(l.e=0),this._pt=l,l},Xs=function(e,i,t,r,n,s,a,l,u,c){Be(r)&&(r=r(n||0,e,s));var p=e[i],h=t!=="get"?t:Be(p)?u?e[i.indexOf("set")||!Be(e["get"+i.substr(3)])?i:"get"+i.substr(3)](u):e[i]():p,f=Be(p)?u?ru:ka:qs,_;if(it(r)&&(~r.indexOf("random(")&&(r=tn(r)),r.charAt(1)==="="&&(_=_r(h,r)+(mt(h)||0),(_||_===0)&&(r=_))),!c||h!==r||vs)return!isNaN(h*r)&&r!==""?(_=new At(this._pt,e,i,+h||0,r-(h||0),typeof p=="boolean"?su:Pa,0,f),u&&(_.fp=u),a&&_.modifier(a,this,e),this._pt=_):(!p&&!(i in e)&&Ns(i,r),Zl.call(this,e,i,h,r,f,l||Vt.stringFilter,u))},Jl=function(e,i,t,r,n){if(Be(e)&&(e=Yr(e,n,i,t,r)),!gi(e)||e.style&&e.nodeType||xt(e)||jo(e))return it(e)?Yr(e,n,i,t,r):e;var s={},a;for(a in e)s[a]=Yr(e[a],n,i,t,r);return s},Ta=function(e,i,t,r,n,s){var a,l,u,c;if(Nt[e]&&(a=new Nt[e]).init(n,a.rawVars?i[e]:Jl(i[e],r,n,s,t),t,r,s)!==!1&&(t._pt=l=new At(t._pt,n,e,0,1,a.render,a,0,a.priority),t!==dr))for(u=t._ptLookup[t._targets.indexOf(n)],c=a._props.length;c--;)u[a._props[c]]=l;return a},Pi,vs,Vs=function o(e,i,t){var r=e.vars,n=r.ease,s=r.startAt,a=r.immediateRender,l=r.lazy,u=r.onUpdate,c=r.runBackwards,p=r.yoyoEase,h=r.keyframes,f=r.autoRevert,_=e._dur,d=e._startAt,v=e._targets,S=e.parent,y=S&&S.data==="nested"?S.vars.targets:v,k=e._overwrite==="auto"&&!Ls,b=e.timeline,P=r.easeReverse||p,z,E,N,L,A,se,Y,oe,ee,J,ue,Z,me;if(b&&(!h||!n)&&(n="none"),e._ease=Qi(n,Zr.ease),e._rEase=P&&(Qi(P)||e._ease),e._from=!b&&!!r.runBackwards,e._from&&(e.ratio=1),!b||h&&!r.stagger){if(oe=v[0]?ji(v[0]).harness:0,Z=oe&&r[oe.prop],z=Fn(r,Hs),d&&(d._zTime<0&&d.progress(1),i<0&&c&&a&&!f?d.render(-1,!0):d.revert(c&&_?Cn:El),d._lazy=0),s){if(Fi(e._startAt=Ue.set(v,Ut({data:"isStart",overwrite:!1,parent:S,immediateRender:!0,lazy:!d&&Ot(l),startAt:null,delay:0,onUpdate:u&&function(){return Yt(e,"onUpdate")},stagger:0},s))),e._startAt._dp=0,e._startAt._sat=e,i<0&&(ct||!a&&!f)&&e._startAt.revert(Cn),a&&_&&i<=0&&t<=0){i&&(e._zTime=i);return}}else if(c&&_&&!d){if(i&&(a=!1),N=Ut({overwrite:!1,data:"isFromStart",lazy:a&&!d&&Ot(l),immediateRender:a,stagger:0,parent:S},z),Z&&(N[oe.prop]=Z),Fi(e._startAt=Ue.set(v,N)),e._startAt._dp=0,e._startAt._sat=e,i<0&&(ct?e._startAt.revert(Cn):e._startAt.render(-1,!0)),e._zTime=i,!a)o(e._startAt,Pe,Pe);else if(!i)return}for(e._pt=e._ptCache=0,l=_&&Ot(l)||l&&!_,E=0;E<v.length;E++){if(A=v[E],Y=A._gsap||Bs(v)[E]._gsap,e._ptLookup[E]=J={},hs[Y.id]&&Di.length&&zn(),ue=y===v?E:y.indexOf(A),oe&&(ee=new oe).init(A,Z||z,e,ue,y)!==!1&&(e._pt=L=new At(e._pt,A,ee.name,0,1,ee.render,ee,0,ee.priority),ee._props.forEach(function(we){J[we]=L}),ee.priority&&(se=1)),!oe||Z)for(N in z)Nt[N]&&(ee=Ta(N,z,e,ue,A,y))?ee.priority&&(se=1):J[N]=L=Xs.call(e,A,N,"get",z[N],ue,y,0,r.stringFilter);e._op&&e._op[E]&&e.kill(A,e._op[E]),k&&e._pt&&(Pi=e,Ie.killTweensOf(A,J,e.globalTime(i)),me=!e.parent,Pi=0),e._pt&&l&&(hs[Y.id]=1)}se&&Oa(e),e._onInit&&e._onInit(e)}e._onUpdate=u,e._initted=(!e._op||e._pt)&&!me,h&&i<=0&&b.render(Zt,!0,!0)},eu=function(e,i,t,r,n,s,a,l){var u=(e._pt&&e._ptCache||(e._ptCache={}))[i],c,p,h,f;if(!u)for(u=e._ptCache[i]=[],h=e._ptLookup,f=e._targets.length;f--;){if(c=h[f][i],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==i&&c.fp!==i;)c=c._next;if(!c)return vs=1,e.vars[i]="+=0",Vs(e,a),vs=0,l?Jr(i+" not eligible for reset. Try splitting into individual properties"):1;u.push(c)}for(f=u.length;f--;)p=u[f],c=p._pt||p,c.s=(r||r===0)&&!n?r:c.s+(r||0)+s*c.c,c.c=t-c.s,p.e&&(p.e=Xe(t)+mt(p.e)),p.b&&(p.b=c.s+mt(p.b))},tu=function(e,i){var t=e[0]?ji(e[0]).harness:0,r=t&&t.aliases,n,s,a,l;if(!r)return i;n=wr({},i);for(s in r)if(s in n)for(l=r[s].split(","),a=l.length;a--;)n[l[a]]=n[s];return n},iu=function(e,i,t,r){var n=i.ease||r||"power1.inOut",s,a;if(xt(i))a=t[e]||(t[e]=[]),i.forEach(function(l,u){return a.push({t:u/(i.length-1)*100,v:l,e:n})});else for(s in i)a=t[s]||(t[s]=[]),s==="ease"||a.push({t:parseFloat(e),v:i[s],e:n})},Yr=function(e,i,t,r,n){return Be(e)?e.call(i,t,r,n):it(e)&&~e.indexOf("random(")?tn(e):e},Ca=Ws+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",Ea={};Rt(Ca+",id,stagger,delay,duration,paused,scrollTrigger",function(o){return Ea[o]=1});var Ue=function(o){$o(e,o);function e(t,r,n,s){var a;typeof r=="number"&&(n.duration=r,r=n,n=null),a=o.call(this,s?r:Wr(r))||this;var l=a.vars,u=l.duration,c=l.delay,p=l.immediateRender,h=l.stagger,f=l.overwrite,_=l.keyframes,d=l.defaults,v=l.scrollTrigger,S=r.parent||Ie,y=(xt(t)||jo(t)?wi(t[0]):"length"in r)?[t]:Jt(t),k,b,P,z,E,N,L,A;if(a._targets=y.length?Bs(y):Jr("GSAP target "+t+" not found. https://gsap.com",!Vt.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=f,_||h||hn(u)||hn(c)){r=a.vars;var se=r.easeReverse||r.yoyoEase;if(k=a.timeline=new Mt({data:"nested",defaults:d||{},targets:S&&S.data==="nested"?S.vars.targets:y}),k.kill(),k.parent=k._dp=mi(a),k._start=0,h||hn(u)||hn(c)){if(z=y.length,L=h&&ha(h),gi(h))for(E in h)~Ca.indexOf(E)&&(A||(A={}),A[E]=h[E]);for(b=0;b<z;b++)P=Fn(r,Ea),P.stagger=0,se&&(P.easeReverse=se),A&&wr(P,A),N=y[b],P.duration=+Yr(u,mi(a),b,N,y),P.delay=(+Yr(c,mi(a),b,N,y)||0)-a._delay,!h&&z===1&&P.delay&&(a._delay=c=P.delay,a._start+=c,P.delay=0),k.to(N,P,L?L(b,N,y):0),k._ease=xe.none;k.duration()?u=c=0:a.timeline=0}else if(_){Wr(Ut(k.vars.defaults,{ease:"none"})),k._ease=Qi(_.ease||r.ease||"none");var Y=0,oe,ee,J;if(xt(_))_.forEach(function(ue){return k.to(y,ue,">")}),k.duration();else{P={};for(E in _)E==="ease"||E==="easeEach"||iu(E,_[E],P,_.easeEach);for(E in P)for(oe=P[E].sort(function(ue,Z){return ue.t-Z.t}),Y=0,b=0;b<oe.length;b++)ee=oe[b],J={ease:ee.e,duration:(ee.t-(b?oe[b-1].t:0))/100*u},J[E]=ee.v,k.to(y,J,Y),Y+=J.duration;k.duration()<u&&k.to({},{duration:u-k.duration()})}}u||a.duration(u=k.duration())}else a.timeline=0;return f===!0&&!Ls&&(Pi=mi(a),Ie.killTweensOf(y),Pi=0),hi(S,mi(a),n),r.reversed&&a.reverse(),r.paused&&a.paused(!0),(p||!u&&!_&&a._start===Fe(S._time)&&Ot(p)&&Al(mi(a))&&S.data!=="nested")&&(a._tTime=-Pe,a.render(Math.max(0,-c)||0)),v&&la(mi(a),v),a}var i=e.prototype;return i.render=function(r,n,s){var a=this._time,l=this._tDur,u=this._dur,c=r<0,p=r>l-Pe&&!c?l:r<Pe?0:r,h,f,_,d,v,S,y,k;if(!u)Ll(this,r,n,s);else if(p!==this._tTime||!r||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c||this._lazy){if(h=p,k=this.timeline,this._repeat){if(d=u+this._rDelay,this._repeat<-1&&c)return this.totalTime(d*100+r,n,s);if(h=Fe(p%d),p===l?(_=this._repeat,h=u):(v=Fe(p/d),_=~~v,_&&_===v?(h=u,_--):h>u&&(h=u)),S=this._yoyo&&_&1,S&&(h=u-h),v=Sr(this._tTime,d),h===a&&!s&&this._initted&&_===v)return this._tTime=p,this;_!==v&&this.vars.repeatRefresh&&!S&&!this._lock&&h!==d&&this._initted&&(this._lock=s=1,this.render(Fe(d*_),!0).invalidate()._lock=0)}if(!this._initted){if(ua(this,c?r:h,s,n,p))return this._tTime=0,this;if(a!==this._time&&!(s&&this.vars.repeatRefresh&&_!==v))return this;if(u!==this._dur)return this.render(r,n,s)}if(this._rEase){var b=h<a;if(b!==this._inv){var P=b?a:u-a;this._inv=b,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=a,this._invRecip=P?(b?-1:1)/P:0,this._invScale=b?-this.ratio:1-this.ratio,this._invEase=b?this._rEase:this._ease}this.ratio=y=this._invRatio+this._invScale*this._invEase((h-this._invTime)*this._invRecip)}else this.ratio=y=this._ease(h/u);if(this._from&&(this.ratio=y=1-y),this._tTime=p,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),!a&&p&&!n&&!v&&(Yt(this,"onStart"),this._tTime!==p))return this;for(f=this._pt;f;)f.r(y,f.d),f=f._next;k&&k.render(r<0?r:k._dur*k._ease(h/this._dur),n,s)||this._startAt&&(this._zTime=r),this._onUpdate&&!n&&(c&&ds(this,r,n,s),Yt(this,"onUpdate")),this._repeat&&_!==v&&this.vars.onRepeat&&!n&&this.parent&&Yt(this,"onRepeat"),(p===this._tDur||!p)&&this._tTime===p&&(c&&!this._onUpdate&&ds(this,r,!0,!0),(r||!u)&&(p===this._tDur&&this._ts>0||!p&&this._ts<0)&&Fi(this,1),!n&&!(c&&!a)&&(p||a||S)&&(Yt(this,p===l?"onComplete":"onReverseComplete",!0),this._prom&&!(p<l&&this.timeScale()>0)&&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,l){rn||Wt.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Vs(this,u),c=this._ease(u/this._dur),eu(this,r,n,s,a,c,u,l)?this.resetTo(r,n,s,a,1):($n(this,0),this.parent||oa(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?Dr(this):this.scrollTrigger&&this.scrollTrigger.kill(!!ct),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(r,n,Pi&&Pi.vars.overwrite!==!0)._first||Dr(this),this.parent&&s!==this.timeline.totalDuration()&&Tr(this,this._dur*this.timeline._tDur/s,0,1),this}var a=this._targets,l=r?Jt(r):a,u=this._ptLookup,c=this._pt,p,h,f,_,d,v,S;if((!n||n==="all")&&Ol(a,l))return n==="all"&&(this._pt=0),Dr(this);for(p=this._op=this._op||[],n!=="all"&&(it(n)&&(d={},Rt(n,function(y){return d[y]=1}),n=d),n=tu(a,n)),S=a.length;S--;)if(~l.indexOf(a[S])){h=u[S],n==="all"?(p[S]=n,_=h,f={}):(f=p[S]=p[S]||{},_=n);for(d in _)v=h&&h[d],v&&((!("kill"in v.d)||v.d.kill(d)===!0)&&qn(this,v,"_pt"),delete h[d]),f!=="all"&&(f[d]=1)}return this._initted&&!this._pt&&c&&Dr(this),this},e.to=function(r,n){return new e(r,n,arguments[2])},e.from=function(r,n){return Br(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 Br(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 Ie.killTweensOf(r,n,s)},e}(nn);Ut(Ue.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Rt("staggerTo,staggerFrom,staggerFromTo",function(o){Ue[o]=function(){var e=new Mt,i=_s.call(arguments,0);return i.splice(o==="staggerFromTo"?5:4,0,0),e[o].apply(e,i)}});var qs=function(e,i,t){return e[i]=t},ka=function(e,i,t){return e[i](t)},ru=function(e,i,t,r){return e[i](r.fp,t)},nu=function(e,i,t){return e.setAttribute(i,t)},Us=function(e,i){return Be(e[i])?ka:zs(e[i])&&e.setAttribute?nu:qs},Pa=function(e,i){return i.set(i.t,i.p,Math.round((i.s+i.c*e)*1e6)/1e6,i)},su=function(e,i){return i.set(i.t,i.p,!!(i.s+i.c*e),i)},Ma=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)},$s=function(e,i){for(var t=i._pt;t;)t.r(e,t.d),t=t._next},ou=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},au=function(e){for(var i=this._pt,t,r;i;)r=i._next,i.p===e&&!i.op||i.op===e?qn(this,i,"_pt"):i.dep||(t=1),i=r;return!t},lu=function(e,i,t,r){r.mSet(e,i,r.m.call(r.tween,t,r.mt),r)},Oa=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},At=function(){function o(i,t,r,n,s,a,l,u,c){this.t=t,this.s=n,this.c=s,this.p=r,this.r=a||Pa,this.d=l||this,this.set=u||qs,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=lu,this.m=t,this.mt=n,this.tween=r},o}();Rt(Ws+"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,easeReverse",function(o){return Hs[o]=1});qt.TweenMax=qt.TweenLite=Ue;qt.TimelineLite=qt.TimelineMax=Mt;Ie=new Mt({sortChildren:!1,defaults:Zr,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Vt.stringFilter=ba;var Zi=[],kn={},uu=[],_o=0,cu=0,ts=function(e){return(kn[e]||uu).map(function(i){return i()})},xs=function(){var e=Date.now(),i=[];e-_o>2&&(ts("matchMediaInit"),Zi.forEach(function(t){var r=t.queries,n=t.conditions,s,a,l,u;for(a in r)s=ci.matchMedia(r[a]).matches,s&&(l=1),s!==n[a]&&(n[a]=s,u=1);u&&(t.revert(),l&&i.push(t))}),ts("matchMediaRevert"),i.forEach(function(t){return t.onMatch(t,function(r){return t.add(null,r)})}),_o=e,ts("matchMedia"))},Ra=function(){function o(i,t){this.selector=t&&gs(t),this.data=[],this._r=[],this.isReverted=!1,this.id=cu++,i&&this.add(i)}var e=o.prototype;return e.add=function(t,r,n){Be(t)&&(n=r,r=t,t=Be);var s=this,a=function(){var u=Ae,c=s.selector,p;return u&&u!==s&&u.data.push(s),n&&(s.selector=gs(n)),Ae=s,p=r.apply(s,arguments),Be(p)&&s._r.push(p),Ae=u,s.selector=c,s.isReverted=!1,p};return s.last=a,t===Be?a(s,function(l){return s.add(null,l)}):t?s[t]=a:a},e.ignore=function(t){var r=Ae;Ae=null,t(this),Ae=r},e.getTweens=function(){var t=[];return this.data.forEach(function(r){return r instanceof o?t.push.apply(t,r.getTweens()):r instanceof Ue&&!(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(),l=n.data.length,u;l--;)u=n.data[l],u.data==="isFlip"&&(u.revert(),u.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)}),l=n.data.length;l--;)u=n.data[l],u instanceof Mt?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof Ue)&&u.revert&&u.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=Zi.length;s--;)Zi[s].id===this.id&&Zi.splice(s,1)},e.revert=function(t){this.kill(t||{})},o}(),fu=function(){function o(i){this.contexts=[],this.scope=i,Ae&&Ae.data.push(this)}var e=o.prototype;return e.add=function(t,r,n){gi(t)||(t={matches:t});var s=new Ra(0,n||this.scope),a=s.conditions={},l,u,c;Ae&&!s.selector&&(s.selector=Ae.selector),this.contexts.push(s),r=s.add("onMatch",r),s.queries=t;for(u in t)u==="all"?c=1:(l=ci.matchMedia(t[u]),l&&(Zi.indexOf(s)<0&&Zi.push(s),(a[u]=l.matches)&&(c=1),l.addListener?l.addListener(xs):l.addEventListener("change",xs)));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}(),Nn={registerPlugin:function(){for(var e=arguments.length,i=new Array(e),t=0;t<e;t++)i[t]=arguments[t];i.forEach(function(r){return va(r)})},timeline:function(e){return new Mt(e)},getTweensOf:function(e,i){return Ie.getTweensOf(e,i)},getProperty:function(e,i,t,r){it(e)&&(e=Jt(e)[0]);var n=ji(e||{}).get,s=t?sa:na;return t==="native"&&(t=""),e&&(i?s((Nt[i]&&Nt[i].get||n)(e,i,t,r)):function(a,l,u){return s((Nt[a]&&Nt[a].get||n)(e,a,l,u))})},quickSetter:function(e,i,t){if(e=Jt(e),e.length>1){var r=e.map(function(c){return Lt.quickSetter(c,i,t)}),n=r.length;return function(c){for(var p=n;p--;)r[p](c)}}e=e[0]||{};var s=Nt[i],a=ji(e),l=a.harness&&(a.harness.aliases||{})[i]||i,u=s?function(c){var p=new s;dr._pt=0,p.init(e,t?c+t:c,dr,0,[e]),p.render(1,p),dr._pt&&$s(1,dr)}:a.set(e,l);return s?u:function(c){return u(e,l,t?c+t:c,a,1)}},quickTo:function(e,i,t){var r,n=Lt.to(e,Ut((r={},r[i]="+=0.1",r.paused=!0,r.stagger=0,r),t||{})),s=function(l,u,c){return n.resetTo(i,l,u,c)};return s.tween=n,s},isTweening:function(e){return Ie.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Qi(e.ease,Zr.ease)),uo(Zr,e||{})},config:function(e){return uo(Vt,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&&!Nt[a]&&!qt[a]&&Jr(i+" effect requires "+a+" plugin.")}),Qn[i]=function(a,l,u){return t(Jt(a),Ut(l||{},n),u)},s&&(Mt.prototype[i]=function(a,l,u){return this.add(Qn[i](a,gi(l)?l:(u=l)&&{},this),u)})},registerEase:function(e,i){xe[e]=Qi(i)},parseEase:function(e,i){return arguments.length?Qi(e,i):xe},getById:function(e){return Ie.getById(e)},exportRoot:function(e,i){e===void 0&&(e={});var t=new Mt(e),r,n;for(t.smoothChildTiming=Ot(e.smoothChildTiming),Ie.remove(t),t._dp=0,t._time=t._tTime=Ie._time,r=Ie._first;r;)n=r._next,(i||!(!r._dur&&r instanceof Ue&&r.vars.onComplete===r._targets[0]))&&hi(t,r,r._start-r._delay),r=n;return hi(Ie,t,0),t},context:function(e,i){return e?new Ra(e,i):Ae},matchMedia:function(e){return new fu(e)},matchMediaRefresh:function(){return Zi.forEach(function(e){var i=e.conditions,t,r;for(r in i)i[r]&&(i[r]=!1,t=1);t&&e.revert()})||xs()},addEventListener:function(e,i){var t=kn[e]||(kn[e]=[]);~t.indexOf(i)||t.push(i)},removeEventListener:function(e,i){var t=kn[e],r=t&&t.indexOf(i);r>=0&&t.splice(r,1)},utils:{wrap:Yl,wrapYoyo:Xl,distribute:ha,random:pa,snap:da,normalize:Bl,getUnit:mt,clamp:Il,splitColor:xa,toArray:Jt,selector:gs,mapRange:ga,pipe:Hl,unitize:Wl,interpolate:Vl,shuffle:fa},install:Jo,effects:Qn,ticker:Wt,updateRoot:Mt.updateRoot,plugins:Nt,globalTimeline:Ie,core:{PropTween:At,globals:ea,Tween:Ue,Timeline:Mt,Animation:nn,getCache:ji,_removeLinkedListItem:qn,reverting:function(){return ct},context:function(e){return e&&Ae&&(Ae.data.push(e),e._ctx=Ae),Ae},suppressOverwrites:function(e){return Ls=e}}};Rt("to,from,fromTo,delayedCall,set,killTweensOf",function(o){return Nn[o]=Ue[o]});Wt.add(Mt.updateRoot);dr=Nn.to({},{duration:0});var hu=function(e,i){for(var t=e._pt;t&&t.p!==i&&t.op!==i&&t.fp!==i;)t=t._next;return t},du=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=hu(s,r)),s&&s.modifier&&s.modifier(i[r],e,t[n],r))},is=function(e,i){return{name:e,headless:1,rawVars:1,init:function(r,n,s){s._onInit=function(a){var l,u;if(it(n)&&(l={},Rt(n,function(c){return l[c]=1}),n=l),i){l={};for(u in n)l[u]=i(n[u]);n=l}du(a,n)}}}},Lt=Nn.registerPlugin({name:"attr",init:function(e,i,t,r,n){var s,a,l;this.tween=t;for(s in i)l=e.getAttribute(s)||"",a=this.add(e,"setAttribute",(l||0)+"",i[s],r,n,0,0,s),a.op=s,a.b=l,this._props.push(s)},render:function(e,i){for(var t=i._pt;t;)ct?t.set(t.t,t.p,t.b,t):t.r(e,t.d),t=t._next}},{name:"endArray",headless:1,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)}},is("roundProps",ms),is("modifiers"),is("snap",da))||Nn;Ue.version=Mt.version=Lt.version="3.15.0";Zo=1;Fs()&&Cr();xe.Power0;xe.Power1;xe.Power2;xe.Power3;xe.Power4;xe.Linear;xe.Quad;xe.Cubic;xe.Quart;xe.Quint;xe.Strong;xe.Elastic;xe.Back;xe.SteppedEase;xe.Bounce;xe.Sine;xe.Expo;xe.Circ;/*!
|
|
* CSSPlugin 3.15.0
|
|
* https://gsap.com
|
|
*
|
|
* Copyright 2008-2026, GreenSock. All rights reserved.
|
|
* Subject to the terms at https://gsap.com/standard-license
|
|
* @author: Jack Doyle, jack@greensock.com
|
|
*/var go,Mi,gr,Gs,$i,mo,js,pu=function(){return typeof window<"u"},Si={},Vi=180/Math.PI,mr=Math.PI/180,or=Math.atan2,vo=1e8,Ks=/([A-Z])/g,_u=/(left|right|width|margin|padding|x)/i,gu=/[\s,\(]\S/,di={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},ys=function(e,i){return i.set(i.t,i.p,Math.round((i.s+i.c*e)*1e4)/1e4+i.u,i)},mu=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)},vu=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)},xu=function(e,i){return i.set(i.t,i.p,e===1?i.e:e?Math.round((i.s+i.c*e)*1e4)/1e4+i.u:i.b,i)},yu=function(e,i){var t=i.s+i.c*e;i.set(i.t,i.p,~~(t+(t<0?-.5:.5))+i.u,i)},Aa=function(e,i){return i.set(i.t,i.p,e?i.e:i.b,i)},Da=function(e,i){return i.set(i.t,i.p,e!==1?i.b:i.e,i)},bu=function(e,i,t){return e.style[i]=t},wu=function(e,i,t){return e.style.setProperty(i,t)},Su=function(e,i,t){return e._gsap[i]=t},Tu=function(e,i,t){return e._gsap.scaleX=e._gsap.scaleY=t},Cu=function(e,i,t,r,n){var s=e._gsap;s.scaleX=s.scaleY=t,s.renderTransform(n,s)},Eu=function(e,i,t,r,n){var s=e._gsap;s[i]=t,s.renderTransform(n,s)},Ne="transform",Dt=Ne+"Origin",ku=function o(e,i){var t=this,r=this.target,n=r.style,s=r._gsap;if(e in Si&&n){if(this.tfm=this.tfm||{},e!=="transform")e=di[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return t.tfm[a]=vi(r,a)}):this.tfm[e]=s.x?s[e]:vi(r,e),e===Dt&&(this.tfm.zOrigin=s.zOrigin);else return di.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(Dt,i,"")),e=Ne}(n||i)&&this.props.push(e,i,n[e])},La=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},Pu=function(){var e=this.props,i=this.target,t=i.style,r=i._gsap,n,s;for(n=0;n<e.length;n+=3)e[n+1]?e[n+1]===2?i[e[n]](e[n+2]):i[e[n]]=e[n+2]:e[n+2]?t[e[n]]=e[n+2]:t.removeProperty(e[n].substr(0,2)==="--"?e[n]:e[n].replace(Ks,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)r[s]=this.tfm[s];r.svg&&(r.renderTransform(),i.setAttribute("data-svg-origin",this.svgo||"")),n=js(),(!n||!n.isStart)&&!t[Ne]&&(La(t),r.zOrigin&&t[Dt]&&(t[Dt]+=" "+r.zOrigin+"px",r.zOrigin=0,r.renderTransform()),r.uncache=1)}},za=function(e,i){var t={target:e,props:[],revert:Pu,save:ku};return e._gsap||Lt.core.getCache(e),i&&e.style&&e.nodeType&&i.split(",").forEach(function(r){return t.save(r)}),t},Fa,bs=function(e,i){var t=Mi.createElementNS?Mi.createElementNS((i||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Mi.createElement(e);return t&&t.style?t:Mi.createElement(e)},Xt=function o(e,i,t){var r=getComputedStyle(e);return r[i]||r.getPropertyValue(i.replace(Ks,"-$1").toLowerCase())||r.getPropertyValue(i)||!t&&o(e,Er(i)||i,1)||""},xo="O,Moz,ms,Ms,Webkit".split(","),Er=function(e,i,t){var r=i||$i,n=r.style,s=5;if(e in n&&!t)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);s--&&!(xo[s]+e in n););return s<0?null:(s===3?"ms":s>=0?xo[s]:"")+e},ws=function(){pu()&&window.document&&(go=window,Mi=go.document,gr=Mi.documentElement,$i=bs("div")||{style:{}},bs("div"),Ne=Er(Ne),Dt=Ne+"Origin",$i.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Fa=!!Er("perspective"),js=Lt.core.reverting,Gs=1)},yo=function(e){var i=e.ownerSVGElement,t=bs("svg",i&&i.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=e.cloneNode(!0),n;r.style.display="block",t.appendChild(r),gr.appendChild(t);try{n=r.getBBox()}catch{}return t.removeChild(r),gr.removeChild(t),n},bo=function(e,i){for(var t=i.length;t--;)if(e.hasAttribute(i[t]))return e.getAttribute(i[t])},Ia=function(e){var i,t;try{i=e.getBBox()}catch{i=yo(e),t=1}return i&&(i.width||i.height)||t||(i=yo(e)),i&&!i.width&&!i.x&&!i.y?{x:+bo(e,["x","cx","x1"])||0,y:+bo(e,["y","cy","y1"])||0,width:0,height:0}:i},Na=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Ia(e))},Ii=function(e,i){if(i){var t=e.style,r;i in Si&&i!==Dt&&(i=Ne),t.removeProperty?(r=i.substr(0,2),(r==="ms"||i.substr(0,6)==="webkit")&&(i="-"+i),t.removeProperty(r==="--"?i:i.replace(Ks,"-$1").toLowerCase())):t.removeAttribute(i)}},Oi=function(e,i,t,r,n,s){var a=new At(e._pt,i,t,0,1,s?Da:Aa);return e._pt=a,a.b=r,a.e=n,e._props.push(t),a},wo={deg:1,rad:1,turn:1},Mu={grid:1,flex:1},Ni=function o(e,i,t,r){var n=parseFloat(t)||0,s=(t+"").trim().substr((n+"").length)||"px",a=$i.style,l=_u.test(i),u=e.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),p=100,h=r==="px",f=r==="%",_,d,v,S;if(r===s||!n||wo[r]||wo[s])return n;if(s!=="px"&&!h&&(n=o(e,i,t,"px")),S=e.getCTM&&Na(e),(f||s==="%")&&(Si[i]||~i.indexOf("adius")))return _=S?e.getBBox()[l?"width":"height"]:e[c],Xe(f?n/_*p:n/100*_);if(a[l?"width":"height"]=p+(h?s:r),d=r!=="rem"&&~i.indexOf("adius")||r==="em"&&e.appendChild&&!u?e:e.parentNode,S&&(d=(e.ownerSVGElement||{}).parentNode),(!d||d===Mi||!d.appendChild)&&(d=Mi.body),v=d._gsap,v&&f&&v.width&&l&&v.time===Wt.time&&!v.uncache)return Xe(n/v.width*p);if(f&&(i==="height"||i==="width")){var y=e.style[i];e.style[i]=p+r,_=e[c],y?e.style[i]=y:Ii(e,i)}else(f||s==="%")&&!Mu[Xt(d,"display")]&&(a.position=Xt(e,"position")),d===e&&(a.position="static"),d.appendChild($i),_=$i[c],d.removeChild($i),a.position="absolute";return l&&f&&(v=ji(d),v.time=Wt.time,v.width=d[c]),Xe(h?_*n/p:_&&n?p/_*n:0)},vi=function(e,i,t,r){var n;return Gs||ws(),i in di&&i!=="transform"&&(i=di[i],~i.indexOf(",")&&(i=i.split(",")[0])),Si[i]&&i!=="transform"?(n=on(e,r),n=i!=="transformOrigin"?n[i]:n.svg?n.origin:Wn(Xt(e,Dt))+" "+n.zOrigin+"px"):(n=e.style[i],(!n||n==="auto"||r||~(n+"").indexOf("calc("))&&(n=Hn[i]&&Hn[i](e,i,t)||Xt(e,i)||ia(e,i)||(i==="opacity"?1:0))),t&&!~(n+"").trim().indexOf(" ")?Ni(e,i,n,t)+t:n},Ou=function(e,i,t,r){if(!t||t==="none"){var n=Er(i,e,1),s=n&&Xt(e,n,1);s&&s!==t?(i=n,t=s):i==="borderColor"&&(t=Xt(e,"borderTopColor"))}var a=new At(this._pt,e.style,i,0,1,Ma),l=0,u=0,c,p,h,f,_,d,v,S,y,k,b,P;if(a.b=t,a.e=r,t+="",r+="",r.substring(0,6)==="var(--"&&(r=Xt(e,r.substring(4,r.indexOf(")")))),r==="auto"&&(d=e.style[i],e.style[i]=r,r=Xt(e,i)||r,d?e.style[i]=d:Ii(e,i)),c=[t,r],ba(c),t=c[0],r=c[1],h=t.match(hr)||[],P=r.match(hr)||[],P.length){for(;p=hr.exec(r);)v=p[0],y=r.substring(l,p.index),_?_=(_+1)%5:(y.substr(-5)==="rgba("||y.substr(-5)==="hsla(")&&(_=1),v!==(d=h[u++]||"")&&(f=parseFloat(d)||0,b=d.substr((f+"").length),v.charAt(1)==="="&&(v=_r(f,v)+b),S=parseFloat(v),k=v.substr((S+"").length),l=hr.lastIndex-k.length,k||(k=k||Vt.units[i]||b,l===r.length&&(r+=k,a.e+=k)),b!==k&&(f=Ni(e,i,d,k)||0),a._pt={_next:a._pt,p:y||u===1?y:",",s:f,c:S-f,m:_&&_<4||i==="zIndex"?Math.round:0});a.c=l<r.length?r.substring(l,r.length):""}else a.r=i==="display"&&r==="none"?Da:Aa;return Qo.test(r)&&(a.e=0),this._pt=a,a},So={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Ru=function(e){var i=e.split(" "),t=i[0],r=i[1]||"50%";return(t==="top"||t==="bottom"||r==="left"||r==="right")&&(e=t,t=r,r=e),i[0]=So[t]||t,i[1]=So[r]||r,i.join(" ")},Au=function(e,i){if(i.tween&&i.tween._time===i.tween._dur){var t=i.t,r=t.style,n=i.u,s=t._gsap,a,l,u;if(n==="all"||n===!0)r.cssText="",l=1;else for(n=n.split(","),u=n.length;--u>-1;)a=n[u],Si[a]&&(l=1,a=a==="transformOrigin"?Dt:Ne),Ii(t,a);l&&(Ii(t,Ne),s&&(s.svg&&t.removeAttribute("transform"),r.scale=r.rotate=r.translate="none",on(t,1),s.uncache=1,La(r)))}},Hn={clearProps:function(e,i,t,r,n){if(n.data!=="isFromStart"){var s=e._pt=new At(e._pt,i,t,0,0,Au);return s.u=r,s.pr=-10,s.tween=n,e._props.push(t),1}}},sn=[1,0,0,1,0,0],Ha={},Wa=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},To=function(e){var i=Xt(e,Ne);return Wa(i)?sn:i.substr(7).match(Ko).map(Xe)},Qs=function(e,i){var t=e._gsap||ji(e),r=e.style,n=To(e),s,a,l,u;return t.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,n=[l.a,l.b,l.c,l.d,l.e,l.f],n.join(",")==="1,0,0,1,0,0"?sn:n):(n===sn&&!e.offsetParent&&e!==gr&&!t.svg&&(l=r.display,r.display="block",s=e.parentNode,(!s||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,a=e.nextElementSibling,gr.appendChild(e)),n=To(e),l?r.display=l:Ii(e,"display"),u&&(a?s.insertBefore(e,a):s?s.appendChild(e):gr.removeChild(e))),i&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},Ss=function(e,i,t,r,n,s){var a=e._gsap,l=n||Qs(e,!0),u=a.xOrigin||0,c=a.yOrigin||0,p=a.xOffset||0,h=a.yOffset||0,f=l[0],_=l[1],d=l[2],v=l[3],S=l[4],y=l[5],k=i.split(" "),b=parseFloat(k[0])||0,P=parseFloat(k[1])||0,z,E,N,L;t?l!==sn&&(E=f*v-_*d)&&(N=b*(v/E)+P*(-d/E)+(d*y-v*S)/E,L=b*(-_/E)+P*(f/E)-(f*y-_*S)/E,b=N,P=L):(z=Ia(e),b=z.x+(~k[0].indexOf("%")?b/100*z.width:b),P=z.y+(~(k[1]||k[0]).indexOf("%")?P/100*z.height:P)),r||r!==!1&&a.smooth?(S=b-u,y=P-c,a.xOffset=p+(S*f+y*d)-S,a.yOffset=h+(S*_+y*v)-y):a.xOffset=a.yOffset=0,a.xOrigin=b,a.yOrigin=P,a.smooth=!!r,a.origin=i,a.originIsAbsolute=!!t,e.style[Dt]="0px 0px",s&&(Oi(s,a,"xOrigin",u,b),Oi(s,a,"yOrigin",c,P),Oi(s,a,"xOffset",p,a.xOffset),Oi(s,a,"yOffset",h,a.yOffset)),e.setAttribute("data-svg-origin",b+" "+P)},on=function(e,i){var t=e._gsap||new Sa(e);if("x"in t&&!i&&!t.uncache)return t;var r=e.style,n=t.scaleX<0,s="px",a="deg",l=getComputedStyle(e),u=Xt(e,Dt)||"0",c,p,h,f,_,d,v,S,y,k,b,P,z,E,N,L,A,se,Y,oe,ee,J,ue,Z,me,we,x,Ce,rt,yt,Me,$e;return c=p=h=d=v=S=y=k=b=0,f=_=1,t.svg=!!(e.getCTM&&Na(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(r[Ne]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[Ne]!=="none"?l[Ne]:"")),r.scale=r.rotate=r.translate="none"),E=Qs(e,t.svg),t.svg&&(t.uncache?(me=e.getBBox(),u=t.xOrigin-me.x+"px "+(t.yOrigin-me.y)+"px",Z=""):Z=!i&&e.getAttribute("data-svg-origin"),Ss(e,Z||u,!!Z||t.originIsAbsolute,t.smooth!==!1,E)),P=t.xOrigin||0,z=t.yOrigin||0,E!==sn&&(se=E[0],Y=E[1],oe=E[2],ee=E[3],c=J=E[4],p=ue=E[5],E.length===6?(f=Math.sqrt(se*se+Y*Y),_=Math.sqrt(ee*ee+oe*oe),d=se||Y?or(Y,se)*Vi:0,y=oe||ee?or(oe,ee)*Vi+d:0,y&&(_*=Math.abs(Math.cos(y*mr))),t.svg&&(c-=P-(P*se+z*oe),p-=z-(P*Y+z*ee))):($e=E[6],yt=E[7],x=E[8],Ce=E[9],rt=E[10],Me=E[11],c=E[12],p=E[13],h=E[14],N=or($e,rt),v=N*Vi,N&&(L=Math.cos(-N),A=Math.sin(-N),Z=J*L+x*A,me=ue*L+Ce*A,we=$e*L+rt*A,x=J*-A+x*L,Ce=ue*-A+Ce*L,rt=$e*-A+rt*L,Me=yt*-A+Me*L,J=Z,ue=me,$e=we),N=or(-oe,rt),S=N*Vi,N&&(L=Math.cos(-N),A=Math.sin(-N),Z=se*L-x*A,me=Y*L-Ce*A,we=oe*L-rt*A,Me=ee*A+Me*L,se=Z,Y=me,oe=we),N=or(Y,se),d=N*Vi,N&&(L=Math.cos(N),A=Math.sin(N),Z=se*L+Y*A,me=J*L+ue*A,Y=Y*L-se*A,ue=ue*L-J*A,se=Z,J=me),v&&Math.abs(v)+Math.abs(d)>359.9&&(v=d=0,S=180-S),f=Xe(Math.sqrt(se*se+Y*Y+oe*oe)),_=Xe(Math.sqrt(ue*ue+$e*$e)),N=or(J,ue),y=Math.abs(N)>2e-4?N*Vi:0,b=Me?1/(Me<0?-Me:Me):0),t.svg&&(Z=e.getAttribute("transform"),t.forceCSS=e.setAttribute("transform","")||!Wa(Xt(e,Ne)),Z&&e.setAttribute("transform",Z))),Math.abs(y)>90&&Math.abs(y)<270&&(n?(f*=-1,y+=d<=0?180:-180,d+=d<=0?180:-180):(_*=-1,y+=y<=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=Xe(f),t.scaleY=Xe(_),t.rotation=Xe(d)+a,t.rotationX=Xe(v)+a,t.rotationY=Xe(S)+a,t.skewX=y+a,t.skewY=k+a,t.transformPerspective=b+s,(t.zOrigin=parseFloat(u.split(" ")[2])||!i&&t.zOrigin||0)&&(r[Dt]=Wn(u)),t.xOffset=t.yOffset=0,t.force3D=Vt.force3D,t.renderTransform=t.svg?Lu:Fa?Ba:Du,t.uncache=0,t},Wn=function(e){return(e=e.split(" "))[0]+" "+e[1]},rs=function(e,i,t){var r=mt(i);return Xe(parseFloat(i)+parseFloat(Ni(e,"x",t+"px",r)))+r},Du=function(e,i){i.z="0px",i.rotationY=i.rotationX="0deg",i.force3D=0,Ba(e,i)},Yi="0deg",Or="0px",Xi=") ",Ba=function(e,i){var t=i||this,r=t.xPercent,n=t.yPercent,s=t.x,a=t.y,l=t.z,u=t.rotation,c=t.rotationY,p=t.rotationX,h=t.skewX,f=t.skewY,_=t.scaleX,d=t.scaleY,v=t.transformPerspective,S=t.force3D,y=t.target,k=t.zOrigin,b="",P=S==="auto"&&e&&e!==1||S===!0;if(k&&(p!==Yi||c!==Yi)){var z=parseFloat(c)*mr,E=Math.sin(z),N=Math.cos(z),L;z=parseFloat(p)*mr,L=Math.cos(z),s=rs(y,s,E*L*-k),a=rs(y,a,-Math.sin(z)*-k),l=rs(y,l,N*L*-k+k)}v!==Or&&(b+="perspective("+v+Xi),(r||n)&&(b+="translate("+r+"%, "+n+"%) "),(P||s!==Or||a!==Or||l!==Or)&&(b+=l!==Or||P?"translate3d("+s+", "+a+", "+l+") ":"translate("+s+", "+a+Xi),u!==Yi&&(b+="rotate("+u+Xi),c!==Yi&&(b+="rotateY("+c+Xi),p!==Yi&&(b+="rotateX("+p+Xi),(h!==Yi||f!==Yi)&&(b+="skew("+h+", "+f+Xi),(_!==1||d!==1)&&(b+="scale("+_+", "+d+Xi),y.style[Ne]=b||"translate(0, 0)"},Lu=function(e,i){var t=i||this,r=t.xPercent,n=t.yPercent,s=t.x,a=t.y,l=t.rotation,u=t.skewX,c=t.skewY,p=t.scaleX,h=t.scaleY,f=t.target,_=t.xOrigin,d=t.yOrigin,v=t.xOffset,S=t.yOffset,y=t.forceCSS,k=parseFloat(s),b=parseFloat(a),P,z,E,N,L;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=mr,u*=mr,P=Math.cos(l)*p,z=Math.sin(l)*p,E=Math.sin(l-u)*-h,N=Math.cos(l-u)*h,u&&(c*=mr,L=Math.tan(u-c),L=Math.sqrt(1+L*L),E*=L,N*=L,c&&(L=Math.tan(c),L=Math.sqrt(1+L*L),P*=L,z*=L)),P=Xe(P),z=Xe(z),E=Xe(E),N=Xe(N)):(P=p,N=h,z=E=0),(k&&!~(s+"").indexOf("px")||b&&!~(a+"").indexOf("px"))&&(k=Ni(f,"x",s,"px"),b=Ni(f,"y",a,"px")),(_||d||v||S)&&(k=Xe(k+_-(_*P+d*E)+v),b=Xe(b+d-(_*z+d*N)+S)),(r||n)&&(L=f.getBBox(),k=Xe(k+r/100*L.width),b=Xe(b+n/100*L.height)),L="matrix("+P+","+z+","+E+","+N+","+k+","+b+")",f.setAttribute("transform",L),y&&(f.style[Ne]=L)},zu=function(e,i,t,r,n){var s=360,a=it(n),l=parseFloat(n)*(a&&~n.indexOf("rad")?Vi:1),u=l-r,c=r+u+"deg",p,h;return a&&(p=n.split("_")[1],p==="short"&&(u%=s,u!==u%(s/2)&&(u+=u<0?s:-s)),p==="cw"&&u<0?u=(u+s*vo)%s-~~(u/s)*s:p==="ccw"&&u>0&&(u=(u-s*vo)%s-~~(u/s)*s)),e._pt=h=new At(e._pt,i,t,r,u,mu),h.e=c,h.u="deg",e._props.push(t),h},Co=function(e,i){for(var t in i)e[t]=i[t];return e},Fu=function(e,i,t){var r=Co({},t._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=t.style,a,l,u,c,p,h,f,_;r.svg?(u=t.getAttribute("transform"),t.setAttribute("transform",""),s[Ne]=i,a=on(t,1),Ii(t,Ne),t.setAttribute("transform",u)):(u=getComputedStyle(t)[Ne],s[Ne]=i,a=on(t,1),s[Ne]=u);for(l in Si)u=r[l],c=a[l],u!==c&&n.indexOf(l)<0&&(f=mt(u),_=mt(c),p=f!==_?Ni(t,l,u,_):parseFloat(u),h=parseFloat(c),e._pt=new At(e._pt,a,l,p,h-p,ys),e._pt.u=_||0,e._props.push(l));Co(a,r)};Rt("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});Hn[e>1?"border"+o:o]=function(a,l,u,c,p){var h,f;if(arguments.length<4)return h=s.map(function(_){return vi(a,_,u)}),f=h.join(" "),f.split(h[0]).length===5?h[0]:f;h=(c+"").split(" "),f={},s.forEach(function(_,d){return f[_]=h[d]=h[d]||h[(d-1)/2|0]}),a.init(l,f,p)}});var Ya={name:"css",register:ws,targetTest:function(e){return e.style&&e.nodeType},init:function(e,i,t,r,n){var s=this._props,a=e.style,l=t.vars.startAt,u,c,p,h,f,_,d,v,S,y,k,b,P,z,E,N,L;Gs||ws(),this.styles=this.styles||za(e),N=this.styles.props,this.tween=t;for(d in i)if(d!=="autoRound"&&(c=i[d],!(Nt[d]&&Ta(d,i,t,r,e,n)))){if(f=typeof c,_=Hn[d],f==="function"&&(c=c.call(t,r,e,n),f=typeof c),f==="string"&&~c.indexOf("random(")&&(c=tn(c)),_)_(this,e,d,c,t)&&(E=1);else if(d.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(d)+"").trim(),c+="",Li.lastIndex=0,Li.test(u)||(v=mt(u),S=mt(c),S?v!==S&&(u=Ni(e,d,u,S)+S):v&&(c+=v)),this.add(a,"setProperty",u,c,r,n,0,0,d),s.push(d),N.push(d,0,a[d]);else if(f!=="undefined"){if(l&&d in l?(u=typeof l[d]=="function"?l[d].call(t,r,e,n):l[d],it(u)&&~u.indexOf("random(")&&(u=tn(u)),mt(u+"")||u==="auto"||(u+=Vt.units[d]||mt(vi(e,d))||""),(u+"").charAt(1)==="="&&(u=vi(e,d))):u=vi(e,d),h=parseFloat(u),y=f==="string"&&c.charAt(1)==="="&&c.substr(0,2),y&&(c=c.substr(2)),p=parseFloat(c),d in di&&(d==="autoAlpha"&&(h===1&&vi(e,"visibility")==="hidden"&&p&&(h=0),N.push("visibility",0,a.visibility),Oi(this,a,"visibility",h?"inherit":"hidden",p?"inherit":"hidden",!p)),d!=="scale"&&d!=="transform"&&(d=di[d],~d.indexOf(",")&&(d=d.split(",")[0]))),k=d in Si,k){if(this.styles.save(d),L=c,f==="string"&&c.substring(0,6)==="var(--"){if(c=Xt(e,c.substring(4,c.indexOf(")"))),c.substring(0,5)==="calc("){var A=e.style.perspective;e.style.perspective=c,c=Xt(e,"perspective"),A?e.style.perspective=A:Ii(e,"perspective")}p=parseFloat(c)}if(b||(P=e._gsap,P.renderTransform&&!i.parseTransform||on(e,i.parseTransform),z=i.smoothOrigin!==!1&&P.smooth,b=this._pt=new At(this._pt,a,Ne,0,1,P.renderTransform,P,0,-1),b.dep=1),d==="scale")this._pt=new At(this._pt,P,"scaleY",P.scaleY,(y?_r(P.scaleY,y+p):p)-P.scaleY||0,ys),this._pt.u=0,s.push("scaleY",d),d+="X";else if(d==="transformOrigin"){N.push(Dt,0,a[Dt]),c=Ru(c),P.svg?Ss(e,c,0,z,0,this):(S=parseFloat(c.split(" ")[2])||0,S!==P.zOrigin&&Oi(this,P,"zOrigin",P.zOrigin,S),Oi(this,a,d,Wn(u),Wn(c)));continue}else if(d==="svgOrigin"){Ss(e,c,1,z,0,this);continue}else if(d in Ha){zu(this,P,d,h,y?_r(h,y+c):c);continue}else if(d==="smoothOrigin"){Oi(this,P,"smooth",P.smooth,c);continue}else if(d==="force3D"){P[d]=c;continue}else if(d==="transform"){Fu(this,c,e);continue}}else d in a||(d=Er(d)||d);if(k||(p||p===0)&&(h||h===0)&&!gu.test(c)&&d in a)v=(u+"").substr((h+"").length),p||(p=0),S=mt(c)||(d in Vt.units?Vt.units[d]:v),v!==S&&(h=Ni(e,d,u,S)),this._pt=new At(this._pt,k?P:a,d,h,(y?_r(h,y+p):p)-h,!k&&(S==="px"||d==="zIndex")&&i.autoRound!==!1?yu:ys),this._pt.u=S||0,k&&L!==c?(this._pt.b=u,this._pt.e=L,this._pt.r=xu):v!==S&&S!=="%"&&(this._pt.b=u,this._pt.r=vu);else if(d in a)Ou.call(this,e,d,u,y?y+c:c);else if(d in e)this.add(e,d,u||e[d],y?y+c:c,r,n);else if(d!=="parseTransform"){Ns(d,c);continue}k||(d in a?N.push(d,0,a[d]):typeof e[d]=="function"?N.push(d,2,e[d]()):N.push(d,1,u||e[d])),s.push(d)}}E&&Oa(this)},render:function(e,i){if(i.tween._time||!js())for(var t=i._pt;t;)t.r(e,t.d),t=t._next;else i.styles.revert()},get:vi,aliases:di,getSetter:function(e,i,t){var r=di[i];return r&&r.indexOf(",")<0&&(i=r),i in Si&&i!==Dt&&(e._gsap.x||vi(e,"x"))?t&&mo===t?i==="scale"?Tu:Su:(mo=t||{})&&(i==="scale"?Cu:Eu):e.style&&!zs(e.style[i])?bu:~i.indexOf("-")?wu:Us(e,i)},core:{_removeProperty:Ii,_getMatrix:Qs}};Lt.utils.checkPrefix=Er;Lt.core.getStyleSaver=za;(function(o,e,i,t){var r=Rt(o+","+e+","+i,function(n){Si[n]=1});Rt(e,function(n){Vt.units[n]="deg",Ha[n]=1}),di[r[13]]=o+","+e,Rt(t,function(n){var s=n.split(":");di[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");Rt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(o){Vt.units[o]="px"});Lt.registerPlugin(Ya);var ki=Lt.registerPlugin(Ya)||Lt;ki.core.Tween;function Iu(o,e){for(var i=0;i<e.length;i++){var t=e[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(o,t.key,t)}}function Nu(o,e,i){return e&&Iu(o.prototype,e),o}/*!
|
|
* Observer 3.15.0
|
|
* https://gsap.com
|
|
*
|
|
* @license Copyright 2008-2026, GreenSock. All rights reserved.
|
|
* Subject to the terms at https://gsap.com/standard-license
|
|
* @author: Jack Doyle, jack@greensock.com
|
|
*/var ut,Pn,Bt,Ri,Ai,vr,Xa,qi,xr,Va,yi,ri,qa,Ua=function(){return ut||typeof window<"u"&&(ut=window.gsap)&&ut.registerPlugin&&ut},$a=1,pr=[],ge=[],_i=[],Xr=Date.now,Ts=function(e,i){return i},Hu=function(){var e=xr.core,i=e.bridge||{},t=e._scrollers,r=e._proxies;t.push.apply(t,ge),r.push.apply(r,_i),ge=t,_i=r,Ts=function(s,a){return i[s](a)}},zi=function(e,i){return~_i.indexOf(e)&&_i[_i.indexOf(e)+1][i]},Vr=function(e){return!!~Va.indexOf(e)},St=function(e,i,t,r,n){return e.addEventListener(i,t,{passive:r!==!1,capture:!!n})},wt=function(e,i,t,r){return e.removeEventListener(i,t,!!r)},dn="scrollLeft",pn="scrollTop",Cs=function(){return yi&&yi.isPressed||ge.cache++},Bn=function(e,i){var t=function r(n){if(n||n===0){$a&&(Bt.history.scrollRestoration="manual");var s=yi&&yi.isPressed;n=r.v=Math.round(n)||(yi&&yi.iOS?1:0),e(n),r.cacheID=ge.cache,s&&Ts("ss",n)}else(i||ge.cache!==r.cacheID||Ts("ref"))&&(r.cacheID=ge.cache,r.v=e());return r.v+r.offset};return t.offset=0,e&&t},kt={s:dn,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Bn(function(o){return arguments.length?Bt.scrollTo(o,Ke.sc()):Bt.pageXOffset||Ri[dn]||Ai[dn]||vr[dn]||0})},Ke={s:pn,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:kt,sc:Bn(function(o){return arguments.length?Bt.scrollTo(kt.sc(),o):Bt.pageYOffset||Ri[pn]||Ai[pn]||vr[pn]||0})},Pt=function(e,i){return(i&&i._ctx&&i._ctx.selector||ut.utils.toArray)(e)[0]||(typeof e=="string"&&ut.config().nullTargetWarn!==!1?console.warn("Element not found:",e):null)},Wu=function(e,i){for(var t=i.length;t--;)if(i[t]===e||i[t].contains(e))return!0;return!1},Hi=function(e,i){var t=i.s,r=i.sc;Vr(e)&&(e=Ri.scrollingElement||Ai);var n=ge.indexOf(e),s=r===Ke.sc?1:2;!~n&&(n=ge.push(e)-1),ge[n+s]||St(e,"scroll",Cs);var a=ge[n+s],l=a||(ge[n+s]=Bn(zi(e,t),!0)||(Vr(e)?r:Bn(function(u){return arguments.length?e[t]=u:e[t]})));return l.target=e,a||(l.smooth=ut.getProperty(e,"scrollBehavior")==="smooth"),l},Es=function(e,i,t){var r=e,n=e,s=Xr(),a=s,l=i||50,u=Math.max(500,l*3),c=function(_,d){var v=Xr();d||v-s>l?(n=r,r=_,a=s,s=v):t?r+=_:r=n+(_-n)/(v-a)*(s-a)},p=function(){n=r=t?0:r,a=s=0},h=function(_){var d=a,v=n,S=Xr();return(_||_===0)&&_!==r&&c(_),s===a||S-a>u?0:(r+(t?v:-v))/((t?S:s)-d)*1e3};return{update:c,reset:p,getVelocity:h}},Rr=function(e,i){return i&&!e._gsapAllow&&e.cancelable!==!1&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},Eo=function(e){var i=Math.max.apply(Math,e),t=Math.min.apply(Math,e);return Math.abs(i)>=Math.abs(t)?i:t},Ga=function(){xr=ut.core.globals().ScrollTrigger,xr&&xr.core&&Hu()},ja=function(e){return ut=e||Ua(),!Pn&&ut&&typeof document<"u"&&document.body&&(Bt=window,Ri=document,Ai=Ri.documentElement,vr=Ri.body,Va=[Bt,Ri,Ai,vr],ut.utils.clamp,qa=ut.core.context||function(){},qi="onpointerenter"in vr?"pointer":"mouse",Xa=Ve.isTouch=Bt.matchMedia&&Bt.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Bt||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,ri=Ve.eventTypes=("ontouchstart"in Ai?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Ai?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return $a=0},500),Pn=1),xr||Ga(),Pn};kt.op=Ke;ge.cache=0;var Ve=function(){function o(i){this.init(i)}var e=o.prototype;return e.init=function(t){Pn||ja(ut)||console.warn("Please gsap.registerPlugin(Observer)"),xr||Ga();var r=t.tolerance,n=t.dragMinimum,s=t.type,a=t.target,l=t.lineHeight,u=t.debounce,c=t.preventDefault,p=t.onStop,h=t.onStopDelay,f=t.ignore,_=t.wheelSpeed,d=t.event,v=t.onDragStart,S=t.onDragEnd,y=t.onDrag,k=t.onPress,b=t.onRelease,P=t.onRight,z=t.onLeft,E=t.onUp,N=t.onDown,L=t.onChangeX,A=t.onChangeY,se=t.onChange,Y=t.onToggleX,oe=t.onToggleY,ee=t.onHover,J=t.onHoverEnd,ue=t.onMove,Z=t.ignoreCheck,me=t.isNormalizer,we=t.onGestureStart,x=t.onGestureEnd,Ce=t.onWheel,rt=t.onEnable,yt=t.onDisable,Me=t.onClick,$e=t.scrollSpeed,Qe=t.capture,De=t.allowClicks,nt=t.lockAxis,Ze=t.onLockAxis;this.target=a=Pt(a)||Ai,this.vars=t,f&&(f=ut.utils.toArray(f)),r=r||1e-9,n=n||0,_=_||1,$e=$e||1,s=s||"wheel,touch,pointer",u=u!==!1,l||(l=parseFloat(Bt.getComputedStyle(vr).lineHeight)||22);var ni,st,Je,ve,Le,ft,ot,T=this,bt=0,$t=0,si=t.passive||!c&&t.passive!==!1,Oe=Hi(a,kt),ti=Hi(a,Ke),Gt=Oe(),oi=ti(),g=~s.indexOf("touch")&&!~s.indexOf("pointer")&&ri[0]==="pointerdown",m=Vr(a),C=a.ownerDocument||Ri,w=[0,0,0],O=[0,0,0],I=0,D=function(){return I=Xr()},M=function(B,ce){return(T.event=B)&&f&&Wu(B.target,f)||ce&&g&&B.pointerType!=="touch"||Z&&Z(B,ce)},F=function(){T._vx.reset(),T._vy.reset(),st.pause(),p&&p(T)},U=function(){var B=T.deltaX=Eo(w),ce=T.deltaY=Eo(O),H=Math.abs(B)>=r,re=Math.abs(ce)>=r;se&&(H||re)&&se(T,B,ce,w,O),H&&(P&&T.deltaX>0&&P(T),z&&T.deltaX<0&&z(T),L&&L(T),Y&&T.deltaX<0!=bt<0&&Y(T),bt=T.deltaX,w[0]=w[1]=w[2]=0),re&&(N&&T.deltaY>0&&N(T),E&&T.deltaY<0&&E(T),A&&A(T),oe&&T.deltaY<0!=$t<0&&oe(T),$t=T.deltaY,O[0]=O[1]=O[2]=0),(ve||Je)&&(ue&&ue(T),Je&&(v&&Je===1&&v(T),y&&y(T),Je=0),ve=!1),ft&&!(ft=!1)&&Ze&&Ze(T),Le&&(Ce(T),Le=!1),ni=0},R=function(B,ce,H){w[H]+=B,O[H]+=ce,T._vx.update(B),T._vy.update(ce),u?ni||(ni=requestAnimationFrame(U)):U()},X=function(B,ce){nt&&!ot&&(T.axis=ot=Math.abs(B)>Math.abs(ce)?"x":"y",ft=!0),ot!=="y"&&(w[2]+=B,T._vx.update(B,!0)),ot!=="x"&&(O[2]+=ce,T._vy.update(ce,!0)),u?ni||(ni=requestAnimationFrame(U)):U()},V=function(B){if(!M(B,1)){B=Rr(B,c);var ce=B.clientX,H=B.clientY,re=ce-T.x,j=H-T.y,ne=T.isDragging;T.x=ce,T.y=H,(ne||(re||j)&&(Math.abs(T.startX-ce)>=n||Math.abs(T.startY-H)>=n))&&(Je||(Je=ne?2:1),ne||(T.isDragging=!0),X(re,j))}},Q=T.onPress=function(K){M(K,1)||K&&K.button||(T.axis=ot=null,st.pause(),T.isPressed=!0,K=Rr(K),bt=$t=0,T.startX=T.x=K.clientX,T.startY=T.y=K.clientY,T._vx.reset(),T._vy.reset(),St(me?a:C,ri[1],V,si,!0),T.deltaX=T.deltaY=0,k&&k(T))},W=T.onRelease=function(K){if(!M(K,1)){wt(me?a:C,ri[1],V,!0);var B=!isNaN(T.y-T.startY),ce=T.isDragging,H=ce&&(Math.abs(T.x-T.startX)>3||Math.abs(T.y-T.startY)>3),re=Rr(K);!H&&B&&(T._vx.reset(),T._vy.reset(),c&&De&&ut.delayedCall(.08,function(){if(Xr()-I>300&&!K.defaultPrevented){if(K.target.click)K.target.click();else if(C.createEvent){var j=C.createEvent("MouseEvents");j.initMouseEvent("click",!0,!0,Bt,1,re.screenX,re.screenY,re.clientX,re.clientY,!1,!1,!1,!1,0,null),K.target.dispatchEvent(j)}}})),T.isDragging=T.isGesturing=T.isPressed=!1,p&&ce&&!me&&st.restart(!0),Je&&U(),S&&ce&&S(T),b&&b(T,H)}},ae=function(B){return B.touches&&B.touches.length>1&&(T.isGesturing=!0)&&we(B,T.isDragging)},te=function(){return(T.isGesturing=!1)||x(T)},q=function(B){if(!M(B)){var ce=Oe(),H=ti();R((ce-Gt)*$e,(H-oi)*$e,1),Gt=ce,oi=H,p&&st.restart(!0)}},ie=function(B){if(!M(B)){B=Rr(B,c),Ce&&(Le=!0);var ce=(B.deltaMode===1?l:B.deltaMode===2?Bt.innerHeight:1)*_;R(B.deltaX*ce,B.deltaY*ce,0),p&&!me&&st.restart(!0)}},ye=function(B){if(!M(B)){var ce=B.clientX,H=B.clientY,re=ce-T.x,j=H-T.y;T.x=ce,T.y=H,ve=!0,p&&st.restart(!0),(re||j)&&X(re,j)}},le=function(B){T.event=B,ee(T)},de=function(B){T.event=B,J(T)},Te=function(B){return M(B)||Rr(B,c)&&Me(T)};st=T._dc=ut.delayedCall(h||.25,F).pause(),T.deltaX=T.deltaY=0,T._vx=Es(0,50,!0),T._vy=Es(0,50,!0),T.scrollX=Oe,T.scrollY=ti,T.isDragging=T.isGesturing=T.isPressed=!1,qa(this),T.enable=function(K){return T.isEnabled||(St(m?C:a,"scroll",Cs),s.indexOf("scroll")>=0&&St(m?C:a,"scroll",q,si,Qe),s.indexOf("wheel")>=0&&St(a,"wheel",ie,si,Qe),(s.indexOf("touch")>=0&&Xa||s.indexOf("pointer")>=0)&&(St(a,ri[0],Q,si,Qe),St(C,ri[2],W),St(C,ri[3],W),De&&St(a,"click",D,!0,!0),Me&&St(a,"click",Te),we&&St(C,"gesturestart",ae),x&&St(C,"gestureend",te),ee&&St(a,qi+"enter",le),J&&St(a,qi+"leave",de),ue&&St(a,qi+"move",ye)),T.isEnabled=!0,T.isDragging=T.isGesturing=T.isPressed=ve=Je=!1,T._vx.reset(),T._vy.reset(),Gt=Oe(),oi=ti(),K&&K.type&&Q(K),rt&&rt(T)),T},T.disable=function(){T.isEnabled&&(pr.filter(function(K){return K!==T&&Vr(K.target)}).length||wt(m?C:a,"scroll",Cs),T.isPressed&&(T._vx.reset(),T._vy.reset(),wt(me?a:C,ri[1],V,!0)),wt(m?C:a,"scroll",q,Qe),wt(a,"wheel",ie,Qe),wt(a,ri[0],Q,Qe),wt(C,ri[2],W),wt(C,ri[3],W),wt(a,"click",D,!0),wt(a,"click",Te),wt(C,"gesturestart",ae),wt(C,"gestureend",te),wt(a,qi+"enter",le),wt(a,qi+"leave",de),wt(a,qi+"move",ye),T.isEnabled=T.isPressed=T.isDragging=!1,yt&&yt(T))},T.kill=T.revert=function(){T.disable();var K=pr.indexOf(T);K>=0&&pr.splice(K,1),yi===T&&(yi=0)},pr.push(T),me&&Vr(a)&&(yi=T),T.enable(d)},Nu(o,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),o}();Ve.version="3.15.0";Ve.create=function(o){return new Ve(o)};Ve.register=ja;Ve.getAll=function(){return pr.slice()};Ve.getById=function(o){return pr.filter(function(e){return e.vars.id===o})[0]};Ua()&&ut.registerPlugin(Ve);/*!
|
|
* ScrollTrigger 3.15.0
|
|
* https://gsap.com
|
|
*
|
|
* @license Copyright 2008-2026, GreenSock. All rights reserved.
|
|
* Subject to the terms at https://gsap.com/standard-license
|
|
* @author: Jack Doyle, jack@greensock.com
|
|
*/var $,cr,_e,Se,Ht,be,Zs,Yn,an,qr,zr,_n,_t,Gn,ks,Ct,ko,Po,fr,Ka,ns,Qa,Tt,Ps,Za,Ja,Ei,Ms,Js,yr,eo,Ur,Os,ss,gn=1,gt=Date.now,os=gt(),ei=0,Fr=0,Mo=function(e,i,t){var r=It(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return t["_"+i+"Clamp"]=r,r?e.substr(6,e.length-7):e},Oo=function(e,i){return i&&(!It(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},Bu=function o(){return Fr&&requestAnimationFrame(o)},Ro=function(){return Gn=1},Ao=function(){return Gn=0},fi=function(e){return e},Ir=function(e){return Math.round(e*1e5)/1e5||0},el=function(){return typeof window<"u"},tl=function(){return $||el()&&($=window.gsap)&&$.registerPlugin&&$},ir=function(e){return!!~Zs.indexOf(e)},il=function(e){return(e==="Height"?eo:_e["inner"+e])||Ht["client"+e]||be["client"+e]},rl=function(e){return zi(e,"getBoundingClientRect")||(ir(e)?function(){return Dn.width=_e.innerWidth,Dn.height=eo,Dn}:function(){return xi(e)})},Yu=function(e,i,t){var r=t.d,n=t.d2,s=t.a;return(s=zi(e,"getBoundingClientRect"))?function(){return s()[r]}:function(){return(i?il(n):e["client"+n])||0}},Xu=function(e,i){return!i||~_i.indexOf(e)?rl(e):function(){return Dn}},pi=function(e,i){var t=i.s,r=i.d2,n=i.d,s=i.a;return Math.max(0,(t="scroll"+r)&&(s=zi(e,t))?s()-rl(e)()[n]:ir(e)?(Ht[t]||be[t])-il(r):e[t]-e["offset"+r])},mn=function(e,i){for(var t=0;t<fr.length;t+=3)(!i||~i.indexOf(fr[t+1]))&&e(fr[t],fr[t+1],fr[t+2])},It=function(e){return typeof e=="string"},vt=function(e){return typeof e=="function"},Nr=function(e){return typeof e=="number"},Ui=function(e){return typeof e=="object"},Ar=function(e,i,t){return e&&e.progress(i?0:1)&&t&&e.pause()},ar=function(e,i,t){if(e.enabled){var r=e._ctx?e._ctx.add(function(){return i(e,t)}):i(e,t);r&&r.totalTime&&(e.callbackAnimation=r)}},lr=Math.abs,nl="left",sl="top",to="right",io="bottom",Ji="width",er="height",$r="Right",Gr="Left",jr="Top",Kr="Bottom",qe="padding",Kt="margin",kr="Width",ro="Height",je="px",Qt=function(e){return _e.getComputedStyle(e.nodeType===Node.DOCUMENT_NODE?e.scrollingElement:e)},Vu=function(e){var i=Qt(e).position;e.style.position=i==="absolute"||i==="fixed"?i:"relative"},Do=function(e,i){for(var t in i)t in e||(e[t]=i[t]);return e},xi=function(e,i){var t=i&&Qt(e)[ks]!=="matrix(1, 0, 0, 1, 0, 0)"&&$.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),r=e.getBoundingClientRect?e.getBoundingClientRect():e.scrollingElement.getBoundingClientRect();return t&&t.progress(0).kill(),r},Xn=function(e,i){var t=i.d2;return e["offset"+t]||e["client"+t]||0},ol=function(e){var i=[],t=e.labels,r=e.duration(),n;for(n in t)i.push(t[n]/r);return i},qu=function(e){return function(i){return $.utils.snap(ol(e),i)}},no=function(e){var i=$.utils.snap(e),t=Array.isArray(e)&&e.slice(0).sort(function(r,n){return r-n});return t?function(r,n,s){s===void 0&&(s=.001);var a;if(!n)return i(r);if(n>0){for(r-=s,a=0;a<t.length;a++)if(t[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)<s||a-r<0==n<0?a:i(n<0?r-e:r+e)}},Uu=function(e){return function(i,t){return no(ol(e))(i,t.direction)}},vn=function(e,i,t,r){return t.split(",").forEach(function(n){return e(i,n,r)})},tt=function(e,i,t,r,n){return e.addEventListener(i,t,{passive:!r,capture:!!n})},et=function(e,i,t,r){return e.removeEventListener(i,t,!!r)},xn=function(e,i,t){t=t&&t.wheelHandler,t&&(e(i,"wheel",t),e(i,"touchmove",t))},Lo={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},yn={toggleActions:"play",anticipatePin:0},Vn={top:0,left:0,center:.5,bottom:1,right:1},Mn=function(e,i){if(It(e)){var t=e.indexOf("="),r=~t?+(e.charAt(t-1)+1)*parseFloat(e.substr(t+1)):0;~t&&(e.indexOf("%")>t&&(r*=i/100),e=e.substr(0,t-1)),e=r+(e in Vn?Vn[e]*i:~e.indexOf("%")?parseFloat(e)*i/100:parseFloat(e)||0)}return e},bn=function(e,i,t,r,n,s,a,l){var u=n.startColor,c=n.endColor,p=n.fontSize,h=n.indent,f=n.fontWeight,_=Se.createElement("div"),d=ir(t)||zi(t,"pinType")==="fixed",v=e.indexOf("scroller")!==-1,S=d?be:t.tagName==="IFRAME"?t.contentDocument.body:t,y=e.indexOf("start")!==-1,k=y?u:c,b="border-color:"+k+";font-size:"+p+";color:"+k+";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 b+="position:"+((v||l)&&d?"fixed;":"absolute;"),(v||l||!d)&&(b+=(r===Ke?to:io)+":"+(s+parseFloat(h))+"px;"),a&&(b+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),_._isStart=y,_.setAttribute("class","gsap-marker-"+e+(i?" marker-"+i:"")),_.style.cssText=b,_.innerText=i||i===0?e+"-"+i:e,S.children[0]?S.insertBefore(_,S.children[0]):S.appendChild(_),_._offset=_["offset"+r.op.d2],On(_,0,r,y),_},On=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+kr]=1,n["border"+a+kr]=0,n[t.p]=i+"px",$.set(e,n)},fe=[],Rs={},ln,zo=function(){return gt()-ei>34&&(ln||(ln=requestAnimationFrame(bi)))},ur=function(){(!Tt||!Tt.isPressed||Tt.startX>be.clientWidth)&&(ge.cache++,Tt?ln||(ln=requestAnimationFrame(bi)):bi(),ei||nr("scrollStart"),ei=gt())},as=function(){Ja=_e.innerWidth,Za=_e.innerHeight},Hr=function(e){ge.cache++,(e===!0||!_t&&!Qa&&!Se.fullscreenElement&&!Se.webkitFullscreenElement&&(!Ps||Ja!==_e.innerWidth||Math.abs(_e.innerHeight-Za)>_e.innerHeight*.25))&&Yn.restart(!0)},rr={},$u=[],al=function o(){return et(he,"scrollEnd",o)||Gi(!0)},nr=function(e){return rr[e]&&rr[e].map(function(i){return i()})||$u},Ft=[],ll=function(e){for(var i=0;i<Ft.length;i+=5)(!e||Ft[i+4]&&Ft[i+4].query===e)&&(Ft[i].style.cssText=Ft[i+1],Ft[i].getBBox&&Ft[i].setAttribute("transform",Ft[i+2]||""),Ft[i+3].uncache=1)},ul=function(){return ge.forEach(function(e){return vt(e)&&++e.cacheID&&(e.rec=e())})},so=function(e,i){var t;for(Ct=0;Ct<fe.length;Ct++)t=fe[Ct],t&&(!i||t._ctx===i)&&(e?t.kill(1):t.revert(!0,!0));Ur=!0,i&&ll(i),i||nr("revert")},cl=function(e,i){ge.cache++,(i||!Et)&&ge.forEach(function(t){return vt(t)&&t.cacheID++&&(t.rec=0)}),It(e)&&(_e.history.scrollRestoration=Js=e)},Et,tr=0,Fo,Gu=function(){if(Fo!==tr){var e=Fo=tr;requestAnimationFrame(function(){return e===tr&&Gi(!0)})}},fl=function(){be.appendChild(yr),eo=!Tt&&yr.offsetHeight||_e.innerHeight,be.removeChild(yr)},Io=function(e){return an(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(i){return i.style.display=e?"none":"block"})},Gi=function(e,i){if(Ht=Se.documentElement,be=Se.body,Zs=[_e,Se,Ht,be],ei&&!e&&!Ur){tt(he,"scrollEnd",al);return}fl(),Et=he.isRefreshing=!0,Ur||ul();var t=nr("refreshInit");Ka&&he.sort(),i||so(),ge.forEach(function(r){vt(r)&&(r.smooth&&(r.target.style.scrollBehavior="auto"),r(0))}),fe.slice(0).forEach(function(r){return r.refresh()}),Ur=!1,fe.forEach(function(r){if(r._subPinOffset&&r.pin){var n=r.vars.horizontal?"offsetWidth":"offsetHeight",s=r.pin[n];r.revert(!0,1),r.adjustPinSpacing(r.pin[n]-s),r.refresh()}}),Os=1,Io(!0),fe.forEach(function(r){var n=pi(r.scroller,r._dir),s=r.vars.end==="max"||r._endClamp&&r.end>n,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)}),Io(!1),Os=0,t.forEach(function(r){return r&&r.render&&r.render(-1)}),ge.forEach(function(r){vt(r)&&(r.smooth&&requestAnimationFrame(function(){return r.target.style.scrollBehavior="smooth"}),r.rec&&r(r.rec))}),cl(Js,1),Yn.pause(),tr++,Et=2,bi(2),fe.forEach(function(r){return vt(r.vars.onRefresh)&&r.vars.onRefresh(r)}),Et=he.isRefreshing=!1,nr("refresh")},As=0,Rn=1,Qr,bi=function(e){if(e===2||!Et&&!Ur){he.isUpdating=!0,Qr&&Qr.update(0);var i=fe.length,t=gt(),r=t-os>=50,n=i&&fe[0].scroll();if(Rn=As>n?-1:1,Et||(As=n),r&&(ei&&!Gn&&t-ei>200&&(ei=0,nr("scrollEnd")),zr=os,os=t),Rn<0){for(Ct=i;Ct-- >0;)fe[Ct]&&fe[Ct].update(0,r);Rn=1}else for(Ct=0;Ct<i;Ct++)fe[Ct]&&fe[Ct].update(0,r);he.isUpdating=!1}ln=0},Ds=[nl,sl,io,to,Kt+Kr,Kt+$r,Kt+jr,Kt+Gr,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],An=Ds.concat([Ji,er,"boxSizing","max"+kr,"max"+ro,"position",Kt,qe,qe+jr,qe+$r,qe+Kr,qe+Gr]),ju=function(e,i,t){br(t);var r=e._gsap;if(r.spacerIsNative)br(r.spacerState);else if(e._gsap.swappedIn){var n=i.parentNode;n&&(n.insertBefore(e,i),n.removeChild(i))}e._gsap.swappedIn=!1},ls=function(e,i,t,r){if(!e._gsap.swappedIn){for(var n=Ds.length,s=i.style,a=e.style,l;n--;)l=Ds[n],s[l]=t[l];s.position=t.position==="absolute"?"absolute":"relative",t.display==="inline"&&(s.display="inline-block"),a[io]=a[to]="auto",s.flexBasis=t.flexBasis||"auto",s.overflow="visible",s.boxSizing="border-box",s[Ji]=Xn(e,kt)+je,s[er]=Xn(e,Ke)+je,s[qe]=a[Kt]=a[sl]=a[nl]="0",br(r),a[Ji]=a["max"+kr]=t[Ji],a[er]=a["max"+ro]=t[er],a[qe]=t[qe],e.parentNode!==i&&(e.parentNode.insertBefore(i,e),i.appendChild(e)),e._gsap.swappedIn=!0}},Ku=/([A-Z])/g,br=function(e){if(e){var i=e.t.style,t=e.length,r=0,n,s;for((e.t._gsap||$.core.getCache(e.t)).uncache=1;r<t;r+=2)s=e[r+1],n=e[r],s?i[n]=s:i[n]&&i.removeProperty(n.replace(Ku,"-$1").toLowerCase())}},wn=function(e){for(var i=An.length,t=e.style,r=[],n=0;n<i;n++)r.push(An[n],t[An[n]]);return r.t=e,r},Qu=function(e,i,t){for(var r=[],n=e.length,s=t?8:0,a;s<n;s+=2)a=e[s],r.push(a,a in i?i[a]:e[s+1]);return r.t=e.t,r},Dn={left:0,top:0},No=function(e,i,t,r,n,s,a,l,u,c,p,h,f,_){vt(e)&&(e=e(l)),It(e)&&e.substr(0,3)==="max"&&(e=h+(e.charAt(4)==="="?Mn("0"+e.substr(3),t):0));var d=f?f.time():0,v,S,y;if(f&&f.seek(0),isNaN(e)||(e=+e),Nr(e))f&&(e=$.utils.mapRange(f.scrollTrigger.start,f.scrollTrigger.end,0,h,e)),a&&On(a,t,r,!0);else{vt(i)&&(i=i(l));var k=(e||"0").split(" "),b,P,z,E;y=Pt(i,l)||be,b=xi(y)||{},(!b||!b.left&&!b.top)&&Qt(y).display==="none"&&(E=y.style.display,y.style.display="block",b=xi(y),E?y.style.display=E:y.style.removeProperty("display")),P=Mn(k[0],b[r.d]),z=Mn(k[1]||"0",t),e=b[r.p]-u[r.p]-c+P+n-z,a&&On(a,z,r,t-z<20||a._isStart&&z>20),t-=t-z}if(_&&(l[_]=e||-.001,e<0&&(e=0)),s){var N=e+t,L=s._isStart;v="scroll"+r.d2,On(s,N,r,L&&N>20||!L&&(p?Math.max(be[v],Ht[v]):s.parentNode[v])<=N+1),p&&(u=xi(a),p&&(s.style[r.op.p]=u[r.op.p]-r.op.m-s._offset+je))}return f&&y&&(v=xi(y),f.seek(h),S=xi(y),f._caScrollDist=v[r.p]-S[r.p],e=e/f._caScrollDist*h),f&&f.seek(d),f?e:Math.round(e)},Zu=/(webkit|moz|length|cssText|inset)/i,Ho=function(e,i,t,r){if(e.parentNode!==i){var n=e.style,s,a;if(i===be){e._stOrig=n.cssText,a=Qt(e);for(s in a)!+s&&!Zu.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)}},hl=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=Math.round(s),r}},Sn=function(e,i,t){var r={};r[i.p]="+="+t,$.set(e,r)},Wo=function(e,i){var t=Hi(e,i),r="_scroll"+i.p2,n=function s(a,l,u,c,p){var h=s.tween,f=l.onComplete,_={};u=u||t();var d=hl(t,u,function(){h.kill(),s.tween=0});return p=c&&p||0,c=c||a-u,h&&h.kill(),l[r]=a,l.inherit=!1,l.modifiers=_,_[r]=function(){return d(u+c*h.ratio+p*h.ratio*h.ratio)},l.onUpdate=function(){ge.cache++,s.tween&&bi()},l.onComplete=function(){s.tween=0,f&&f.call(h)},h=s.tween=$.to(e,l),h};return e[r]=t,t.wheelHandler=function(){return n.tween&&n.tween.kill()&&(n.tween=0)},tt(e,"wheel",t.wheelHandler),he.isTouch&&tt(e,"touchmove",t.wheelHandler),n},he=function(){function o(i,t){cr||o.register($)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),Ms(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),!Fr){this.update=this.refresh=this.kill=fi;return}t=Do(It(t)||Nr(t)||t.nodeType?{trigger:t}:t,yn);var n=t,s=n.onUpdate,a=n.toggleClass,l=n.id,u=n.onToggle,c=n.onRefresh,p=n.scrub,h=n.trigger,f=n.pin,_=n.pinSpacing,d=n.invalidateOnRefresh,v=n.anticipatePin,S=n.onScrubComplete,y=n.onSnapComplete,k=n.once,b=n.snap,P=n.pinReparent,z=n.pinSpacer,E=n.containerAnimation,N=n.fastScrollEnd,L=n.preventOverlaps,A=t.horizontal||t.containerAnimation&&t.horizontal!==!1?kt:Ke,se=!p&&p!==0,Y=Pt(t.scroller||_e),oe=$.core.getCache(Y),ee=ir(Y),J=("pinType"in t?t.pinType:zi(Y,"pinType")||ee&&"fixed")==="fixed",ue=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],Z=se&&t.toggleActions.split(" "),me="markers"in t?t.markers:yn.markers,we=ee?0:parseFloat(Qt(Y)["border"+A.p2+kr])||0,x=this,Ce=t.onRefreshInit&&function(){return t.onRefreshInit(x)},rt=Yu(Y,ee,A),yt=Xu(Y,ee),Me=0,$e=0,Qe=0,De=Hi(Y,A),nt,Ze,ni,st,Je,ve,Le,ft,ot,T,bt,$t,si,Oe,ti,Gt,oi,g,m,C,w,O,I,D,M,F,U,R,X,V,Q,W,ae,te,q,ie,ye,le,de;if(x._startClamp=x._endClamp=!1,x._dir=A,v*=45,x.scroller=Y,x.scroll=E?E.time.bind(E):De,st=De(),x.vars=t,r=r||t.animation,"refreshPriority"in t&&(Ka=1,t.refreshPriority===-9999&&(Qr=x)),oe.tweenScroll=oe.tweenScroll||{top:Wo(Y,Ke),left:Wo(Y,kt)},x.tweenTo=nt=oe.tweenScroll[A.p],x.scrubDuration=function(H){ae=Nr(H)&&H,ae?W?W.duration(H):W=$.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:ae,paused:!0,onComplete:function(){return S&&S(x)}}):(W&&W.progress(1).kill(),W=0)},r&&(r.vars.lazy=!1,r._initted&&!x.isReverted||r.vars.immediateRender!==!1&&t.immediateRender!==!1&&r.duration()&&r.render(0,!0,!0),x.animation=r.pause(),r.scrollTrigger=x,x.scrubDuration(p),V=0,l||(l=r.vars.id)),b&&((!Ui(b)||b.push)&&(b={snapTo:b}),"scrollBehavior"in be.style&&$.set(ee?[be,Ht]:Y,{scrollBehavior:"auto"}),ge.forEach(function(H){return vt(H)&&H.target===(ee?Se.scrollingElement||Ht:Y)&&(H.smooth=!1)}),ni=vt(b.snapTo)?b.snapTo:b.snapTo==="labels"?qu(r):b.snapTo==="labelsDirectional"?Uu(r):b.directional!==!1?function(H,re){return no(b.snapTo)(H,gt()-$e<500?0:re.direction)}:$.utils.snap(b.snapTo),te=b.duration||{min:.1,max:2},te=Ui(te)?qr(te.min,te.max):qr(te,te),q=$.delayedCall(b.delay||ae/2||.1,function(){var H=De(),re=gt()-$e<500,j=nt.tween;if((re||Math.abs(x.getVelocity())<10)&&!j&&!Gn&&Me!==H){var ne=(H-ve)/Oe,He=r&&!se?r.totalProgress():ne,pe=re?0:(He-Q)/(gt()-zr)*1e3||0,Ye=$.utils.clamp(-ne,1-ne,lr(pe/2)*pe/.185),ht=ne+(b.inertia===!1?0:Ye),We,Re,Ee=b,ii=Ee.onStart,ze=Ee.onInterrupt,zt=Ee.onComplete;if(We=ni(ht,x),Nr(We)||(We=ht),Re=Math.max(0,Math.round(ve+We*Oe)),H<=Le&&H>=ve&&Re!==H){if(j&&!j._initted&&j.data<=lr(Re-H))return;b.inertia===!1&&(Ye=We-ne),nt(Re,{duration:te(lr(Math.max(lr(ht-He),lr(We-He))*.185/pe/.05||0)),ease:b.ease||"power3",data:lr(Re-H),onInterrupt:function(){return q.restart(!0)&&ze&&ar(x,ze)},onComplete:function(){x.update(),Me=De(),r&&!se&&(W?W.resetTo("totalProgress",We,r._tTime/r._tDur):r.progress(We)),V=Q=r&&!se?r.totalProgress():x.progress,y&&y(x),zt&&ar(x,zt)}},H,Ye*Oe,Re-H-Ye*Oe),ii&&ar(x,ii,nt.tween)}}else x.isActive&&Me!==H&&q.restart(!0)}).pause()),l&&(Rs[l]=x),h=x.trigger=Pt(h||f!==!0&&f),de=h&&h._gsap&&h._gsap.stRevert,de&&(de=de(x)),f=f===!0?h:Pt(f),It(a)&&(a={targets:h,className:a}),f&&(_===!1||_===Kt||(_=!_&&f.parentNode&&f.parentNode.style&&Qt(f.parentNode).display==="flex"?!1:qe),x.pin=f,Ze=$.core.getCache(f),Ze.spacer?ti=Ze.pinState:(z&&(z=Pt(z),z&&!z.nodeType&&(z=z.current||z.nativeElement),Ze.spacerIsNative=!!z,z&&(Ze.spacerState=wn(z))),Ze.spacer=g=z||Se.createElement("div"),g.classList.add("pin-spacer"),l&&g.classList.add("pin-spacer-"+l),Ze.pinState=ti=wn(f)),t.force3D!==!1&&$.set(f,{force3D:!0}),x.spacer=g=Ze.spacer,X=Qt(f),D=X[_+A.os2],C=$.getProperty(f),w=$.quickSetter(f,A.a,je),ls(f,g,X),oi=wn(f)),me){$t=Ui(me)?Do(me,Lo):Lo,T=bn("scroller-start",l,Y,A,$t,0),bt=bn("scroller-end",l,Y,A,$t,0,T),m=T["offset"+A.op.d2];var Te=Pt(zi(Y,"content")||Y);ft=this.markerStart=bn("start",l,Te,A,$t,m,0,E),ot=this.markerEnd=bn("end",l,Te,A,$t,m,0,E),E&&(le=$.quickSetter([ft,ot],A.a,je)),!J&&!(_i.length&&zi(Y,"fixedMarkers")===!0)&&(Vu(ee?be:Y),$.set([T,bt],{force3D:!0}),F=$.quickSetter(T,A.a,je),R=$.quickSetter(bt,A.a,je))}if(E){var K=E.vars.onUpdate,B=E.vars.onUpdateParams;E.eventCallback("onUpdate",function(){x.update(0,0,1),K&&K.apply(E,B||[])})}if(x.previous=function(){return fe[fe.indexOf(x)-1]},x.next=function(){return fe[fe.indexOf(x)+1]},x.revert=function(H,re){if(!re)return x.kill(!0);var j=H!==!1||!x.enabled,ne=_t;j!==x.isReverted&&(j&&(ie=Math.max(De(),x.scroll.rec||0),Qe=x.progress,ye=r&&r.progress()),ft&&[ft,ot,T,bt].forEach(function(He){return He.style.display=j?"none":"block"}),j&&(_t=x,x.update(j)),f&&(!P||!x.isActive)&&(j?ju(f,g,ti):ls(f,g,Qt(f),M)),j||x.update(j),_t=ne,x.isReverted=j)},x.refresh=function(H,re,j,ne){if(!((_t||!x.enabled)&&!re)){if(f&&H&&ei){tt(o,"scrollEnd",al);return}!Et&&Ce&&Ce(x),_t=x,nt.tween&&!j&&(nt.tween.kill(),nt.tween=0),W&&W.pause(),d&&r&&(r.revert({kill:!1}).invalidate(),r.getChildren?r.getChildren(!0,!0,!1).forEach(function(Ti){return Ti.vars.immediateRender&&Ti.render(0,!0,!0)}):r.vars.immediateRender&&r.render(0,!0,!0)),x.isReverted||x.revert(!0,!0),x._subPinOffset=!1;var He=rt(),pe=yt(),Ye=E?E.duration():pi(Y,A),ht=Oe<=.01||!Oe,We=0,Re=ne||0,Ee=Ui(j)?j.end:t.end,ii=t.endTrigger||h,ze=Ui(j)?j.start:t.start||(t.start===0||!h?0:f?"0 0":"0 100%"),zt=x.pinnedContainer=t.pinnedContainer&&Pt(t.pinnedContainer,x),ai=h&&Math.max(0,fe.indexOf(x))||0,at=ai,lt,dt,Bi,cn,pt,Ge,li,jn,oo,Pr,ui,Mr,fn;for(me&&Ui(j)&&(Mr=$.getProperty(T,A.p),fn=$.getProperty(bt,A.p));at-- >0;)Ge=fe[at],Ge.end||Ge.refresh(0,1)||(_t=x),li=Ge.pin,li&&(li===h||li===f||li===zt)&&!Ge.isReverted&&(Pr||(Pr=[]),Pr.unshift(Ge),Ge.revert(!0,!0)),Ge!==fe[at]&&(ai--,at--);for(vt(ze)&&(ze=ze(x)),ze=Mo(ze,"start",x),ve=No(ze,h,He,A,De(),ft,T,x,pe,we,J,Ye,E,x._startClamp&&"_startClamp")||(f?-.001:0),vt(Ee)&&(Ee=Ee(x)),It(Ee)&&!Ee.indexOf("+=")&&(~Ee.indexOf(" ")?Ee=(It(ze)?ze.split(" ")[0]:"")+Ee:(We=Mn(Ee.substr(2),He),Ee=It(ze)?ze:(E?$.utils.mapRange(0,E.duration(),E.scrollTrigger.start,E.scrollTrigger.end,ve):ve)+We,ii=h)),Ee=Mo(Ee,"end",x),Le=Math.max(ve,No(Ee||(ii?"100% 0":Ye),ii,He,A,De()+We,ot,bt,x,pe,we,J,Ye,E,x._endClamp&&"_endClamp"))||-.001,We=0,at=ai;at--;)Ge=fe[at]||{},li=Ge.pin,li&&Ge.start-Ge._pinPush<=ve&&!E&&Ge.end>0&&(lt=Ge.end-(x._startClamp?Math.max(0,Ge.start):Ge.start),(li===h&&Ge.start-Ge._pinPush<ve||li===zt)&&isNaN(ze)&&(We+=lt*(1-Ge.progress)),li===f&&(Re+=lt));if(ve+=We,Le+=We,x._startClamp&&(x._startClamp+=We),x._endClamp&&!Et&&(x._endClamp=Le||-.001,Le=Math.min(Le,pi(Y,A))),Oe=Le-ve||(ve-=.01)&&.001,ht&&(Qe=$.utils.clamp(0,1,$.utils.normalize(ve,Le,ie))),x._pinPush=Re,ft&&We&&(lt={},lt[A.a]="+="+We,zt&&(lt[A.p]="-="+De()),$.set([ft,ot],lt)),f&&!(Os&&x.end>=pi(Y,A)))lt=Qt(f),cn=A===Ke,Bi=De(),O=parseFloat(C(A.a))+Re,!Ye&&Le>1&&(ui=(ee?Se.scrollingElement||Ht:Y).style,ui={style:ui,value:ui["overflow"+A.a.toUpperCase()]},ee&&Qt(be)["overflow"+A.a.toUpperCase()]!=="scroll"&&(ui.style["overflow"+A.a.toUpperCase()]="scroll")),ls(f,g,lt),oi=wn(f),dt=xi(f,!0),jn=J&&Hi(Y,cn?kt:Ke)(),_?(M=[_+A.os2,Oe+Re+je],M.t=g,at=_===qe?Xn(f,A)+Oe+Re:0,at&&(M.push(A.d,at+je),g.style.flexBasis!=="auto"&&(g.style.flexBasis=at+je)),br(M),zt&&fe.forEach(function(Ti){Ti.pin===zt&&Ti.vars.pinSpacing!==!1&&(Ti._subPinOffset=!0)}),J&&De(ie)):(at=Xn(f,A),at&&g.style.flexBasis!=="auto"&&(g.style.flexBasis=at+je)),J&&(pt={top:dt.top+(cn?Bi-ve:jn)+je,left:dt.left+(cn?jn:Bi-ve)+je,boxSizing:"border-box",position:"fixed"},pt[Ji]=pt["max"+kr]=Math.ceil(dt.width)+je,pt[er]=pt["max"+ro]=Math.ceil(dt.height)+je,pt[Kt]=pt[Kt+jr]=pt[Kt+$r]=pt[Kt+Kr]=pt[Kt+Gr]="0",pt[qe]=lt[qe],pt[qe+jr]=lt[qe+jr],pt[qe+$r]=lt[qe+$r],pt[qe+Kr]=lt[qe+Kr],pt[qe+Gr]=lt[qe+Gr],Gt=Qu(ti,pt,P),Et&&De(0)),r?(oo=r._initted,ns(1),r.render(r.duration(),!0,!0),I=C(A.a)-O+Oe+Re,U=Math.abs(Oe-I)>1,J&&U&&Gt.splice(Gt.length-2,2),r.render(0,!0,!0),oo||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),ns(0)):I=Oe,ui&&(ui.value?ui.style["overflow"+A.a.toUpperCase()]=ui.value:ui.style.removeProperty("overflow-"+A.a));else if(h&&De()&&!E)for(dt=h.parentNode;dt&&dt!==be;)dt._pinOffset&&(ve-=dt._pinOffset,Le-=dt._pinOffset),dt=dt.parentNode;Pr&&Pr.forEach(function(Ti){return Ti.revert(!1,!0)}),x.start=ve,x.end=Le,st=Je=Et?ie:De(),!E&&!Et&&(st<ie&&De(ie),x.scroll.rec=0),x.revert(!1,!0),$e=gt(),q&&(Me=-1,q.restart(!0)),_t=0,r&&se&&(r._initted||ye)&&r.progress()!==ye&&r.progress(ye||0,!0).render(r.time(),!0,!0),(ht||Qe!==x.progress||E||d||r&&!r._initted)&&(r&&!se&&(r._initted||Qe||r.vars.immediateRender!==!1)&&r.totalProgress(E&&ve<-.001&&!Qe?$.utils.normalize(ve,Le,0):Qe,!0),x.progress=ht||(st-ve)/Oe===Qe?0:Qe),f&&_&&(g._pinOffset=Math.round(x.progress*I)),W&&W.invalidate(),isNaN(Mr)||(Mr-=$.getProperty(T,A.p),fn-=$.getProperty(bt,A.p),Sn(T,A,Mr),Sn(ft,A,Mr-(ne||0)),Sn(bt,A,fn),Sn(ot,A,fn-(ne||0))),ht&&!Et&&x.update(),c&&!Et&&!si&&(si=!0,c(x),si=!1)}},x.getVelocity=function(){return(De()-Je)/(gt()-zr)*1e3||0},x.endAnimation=function(){Ar(x.callbackAnimation),r&&(W?W.progress(1):r.paused()?se||Ar(r,x.direction<0,1):Ar(r,r.reversed()))},x.labelToScroll=function(H){return r&&r.labels&&(ve||x.refresh()||ve)+r.labels[H]/r.duration()*Oe||0},x.getTrailing=function(H){var re=fe.indexOf(x),j=x.direction>0?fe.slice(0,re).reverse():fe.slice(re+1);return(It(H)?j.filter(function(ne){return ne.vars.preventOverlaps===H}):j).filter(function(ne){return x.direction>0?ne.end<=ve:ne.start>=Le})},x.update=function(H,re,j){if(!(E&&!j&&!H)){var ne=Et===!0?ie:x.scroll(),He=H?0:(ne-ve)/Oe,pe=He<0?0:He>1?1:He||0,Ye=x.progress,ht,We,Re,Ee,ii,ze,zt,ai;if(re&&(Je=st,st=E?De():ne,b&&(Q=V,V=r&&!se?r.totalProgress():pe)),v&&f&&!_t&&!gn&&ei&&(!pe&&ve<ne+(ne-Je)/(gt()-zr)*v?pe=1e-4:pe===1&&Le>ne+(ne-Je)/(gt()-zr)*v&&(pe=.9999)),pe!==Ye&&x.enabled){if(ht=x.isActive=!!pe&&pe<1,We=!!Ye&&Ye<1,ze=ht!==We,ii=ze||!!pe!=!!Ye,x.direction=pe>Ye?1:-1,x.progress=pe,ii&&!_t&&(Re=pe&&!Ye?0:pe===1?1:Ye===1?2:3,se&&(Ee=!ze&&Z[Re+1]!=="none"&&Z[Re+1]||Z[Re],ai=r&&(Ee==="complete"||Ee==="reset"||Ee in r))),L&&(ze||ai)&&(ai||p||!r)&&(vt(L)?L(x):x.getTrailing(L).forEach(function(Bi){return Bi.endAnimation()})),se||(W&&!_t&&!gn?(W._dp._time-W._start!==W._time&&W.render(W._dp._time-W._start),W.resetTo?W.resetTo("totalProgress",pe,r._tTime/r._tDur):(W.vars.totalProgress=pe,W.invalidate().restart())):r&&r.totalProgress(pe,!!(_t&&($e||H)))),f){if(H&&_&&(g.style[_+A.os2]=D),!J)w(Ir(O+I*pe));else if(ii){if(zt=!H&&pe>Ye&&Le+1>ne&&ne+1>=pi(Y,A),P)if(!H&&(ht||zt)){var at=xi(f,!0),lt=ne-ve;Ho(f,be,at.top+(A===Ke?lt:0)+je,at.left+(A===Ke?0:lt)+je)}else Ho(f,g);br(ht||zt?Gt:oi),U&&pe<1&&ht||w(O+(pe===1&&!zt?I:0))}}b&&!nt.tween&&!_t&&!gn&&q.restart(!0),a&&(ze||k&&pe&&(pe<1||!ss))&&an(a.targets).forEach(function(Bi){return Bi.classList[ht||k?"add":"remove"](a.className)}),s&&!se&&!H&&s(x),ii&&!_t?(se&&(ai&&(Ee==="complete"?r.pause().totalProgress(1):Ee==="reset"?r.restart(!0).pause():Ee==="restart"?r.restart(!0):r[Ee]()),s&&s(x)),(ze||!ss)&&(u&&ze&&ar(x,u),ue[Re]&&ar(x,ue[Re]),k&&(pe===1?x.kill(!1,1):ue[Re]=0),ze||(Re=pe===1?1:3,ue[Re]&&ar(x,ue[Re]))),N&&!ht&&Math.abs(x.getVelocity())>(Nr(N)?N:2500)&&(Ar(x.callbackAnimation),W?W.progress(1):Ar(r,Ee==="reverse"?1:!pe,1))):se&&s&&!_t&&s(x)}if(R){var dt=E?ne/E.duration()*(E._caScrollDist||0):ne;F(dt+(T._isFlipped?1:0)),R(dt)}le&&le(-ne/E.duration()*(E._caScrollDist||0))}},x.enable=function(H,re){x.enabled||(x.enabled=!0,tt(Y,"resize",Hr),ee||tt(Y,"scroll",ur),Ce&&tt(o,"refreshInit",Ce),H!==!1&&(x.progress=Qe=0,st=Je=Me=De()),re!==!1&&x.refresh())},x.getTween=function(H){return H&&nt?nt.tween:W},x.setPositions=function(H,re,j,ne){if(E){var He=E.scrollTrigger,pe=E.duration(),Ye=He.end-He.start;H=He.start+Ye*H/pe,re=He.start+Ye*re/pe}x.refresh(!1,!1,{start:Oo(H,j&&!!x._startClamp),end:Oo(re,j&&!!x._endClamp)},ne),x.update()},x.adjustPinSpacing=function(H){if(M&&H){var re=M.indexOf(A.d)+1;M[re]=parseFloat(M[re])+H+je,M[1]=parseFloat(M[1])+H+je,br(M)}},x.disable=function(H,re){if(H!==!1&&x.revert(!0,!0),x.enabled&&(x.enabled=x.isActive=!1,re||W&&W.pause(),ie=0,Ze&&(Ze.uncache=1),Ce&&et(o,"refreshInit",Ce),q&&(q.pause(),nt.tween&&nt.tween.kill()&&(nt.tween=0)),!ee)){for(var j=fe.length;j--;)if(fe[j].scroller===Y&&fe[j]!==x)return;et(Y,"resize",Hr),ee||et(Y,"scroll",ur)}},x.kill=function(H,re){x.disable(H,re),W&&!re&&W.kill(),l&&delete Rs[l];var j=fe.indexOf(x);j>=0&&fe.splice(j,1),j===Ct&&Rn>0&&Ct--,j=0,fe.forEach(function(ne){return ne.scroller===x.scroller&&(j=1)}),j||Et||(x.scroll.rec=0),r&&(r.scrollTrigger=null,H&&r.revert({kill:!1}),re||r.kill()),ft&&[ft,ot,T,bt].forEach(function(ne){return ne.parentNode&&ne.parentNode.removeChild(ne)}),Qr===x&&(Qr=0),f&&(Ze&&(Ze.uncache=1),j=0,fe.forEach(function(ne){return ne.pin===f&&j++}),j||(Ze.spacer=0)),t.onKill&&t.onKill(x)},fe.push(x),x.enable(!1,!1),de&&de(x),r&&r.add&&!Oe){var ce=x.update;x.update=function(){x.update=ce,ge.cache++,ve||Le||x.refresh()},$.delayedCall(.01,x.update),Oe=.01,ve=Le=0}else x.refresh();f&&Gu()},o.register=function(t){return cr||($=t||tl(),el()&&window.document&&o.enable(),cr=Fr),cr},o.defaults=function(t){if(t)for(var r in t)yn[r]=t[r];return yn},o.disable=function(t,r){Fr=0,fe.forEach(function(s){return s[r?"kill":"disable"](t)}),et(_e,"wheel",ur),et(Se,"scroll",ur),clearInterval(_n),et(Se,"touchcancel",fi),et(be,"touchstart",fi),vn(et,Se,"pointerdown,touchstart,mousedown",Ro),vn(et,Se,"pointerup,touchend,mouseup",Ao),Yn.kill(),mn(et);for(var n=0;n<ge.length;n+=3)xn(et,ge[n],ge[n+1]),xn(et,ge[n],ge[n+2])},o.enable=function(){if(_e=window,Se=document,Ht=Se.documentElement,be=Se.body,$){if(an=$.utils.toArray,qr=$.utils.clamp,Ms=$.core.context||fi,ns=$.core.suppressOverwrites||fi,Js=_e.history.scrollRestoration||"auto",As=_e.pageYOffset||0,$.core.globals("ScrollTrigger",o),be){Fr=1,yr=document.createElement("div"),yr.style.height="100vh",yr.style.position="absolute",fl(),Bu(),Ve.register($),o.isTouch=Ve.isTouch,Ei=Ve.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),Ps=Ve.isTouch===1,tt(_e,"wheel",ur),Zs=[_e,Se,Ht,be],$.matchMedia?(o.matchMedia=function(c){var p=$.matchMedia(),h;for(h in c)p.add(h,c[h]);return p},$.addEventListener("matchMediaInit",function(){ul(),so()}),$.addEventListener("matchMediaRevert",function(){return ll()}),$.addEventListener("matchMedia",function(){Gi(0,1),nr("matchMedia")}),$.matchMedia().add("(orientation: portrait)",function(){return as(),as})):console.warn("Requires GSAP 3.11.0 or later"),as(),tt(Se,"scroll",ur);var t=be.hasAttribute("style"),r=be.style,n=r.borderTopStyle,s=$.core.Animation.prototype,a,l;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),r.borderTopStyle="solid",a=xi(be),Ke.m=Math.round(a.top+Ke.sc())||0,kt.m=Math.round(a.left+kt.sc())||0,n?r.borderTopStyle=n:r.removeProperty("border-top-style"),t||(be.setAttribute("style",""),be.removeAttribute("style")),_n=setInterval(zo,250),$.delayedCall(.5,function(){return gn=0}),tt(Se,"touchcancel",fi),tt(be,"touchstart",fi),vn(tt,Se,"pointerdown,touchstart,mousedown",Ro),vn(tt,Se,"pointerup,touchend,mouseup",Ao),ks=$.utils.checkPrefix("transform"),An.push(ks),cr=gt(),Yn=$.delayedCall(.2,Gi).pause(),fr=[Se,"visibilitychange",function(){var c=_e.innerWidth,p=_e.innerHeight;Se.hidden?(ko=c,Po=p):(ko!==c||Po!==p)&&Hr()},Se,"DOMContentLoaded",Gi,_e,"load",Gi,_e,"resize",Hr],mn(tt),fe.forEach(function(c){return c.enable(0,1)}),l=0;l<ge.length;l+=3)xn(et,ge[l],ge[l+1]),xn(et,ge[l],ge[l+2])}else if(Se){var u=function c(){o.enable(),Se.removeEventListener("DOMContentLoaded",c)};Se.addEventListener("DOMContentLoaded",u)}}},o.config=function(t){"limitCallbacks"in t&&(ss=!!t.limitCallbacks);var r=t.syncInterval;r&&clearInterval(_n)||(_n=r)&&setInterval(zo,r),"ignoreMobileResize"in t&&(Ps=o.isTouch===1&&t.ignoreMobileResize),"autoRefreshEvents"in t&&(mn(et)||mn(tt,t.autoRefreshEvents||"none"),Qa=(t.autoRefreshEvents+"").indexOf("resize")===-1)},o.scrollerProxy=function(t,r){var n=Pt(t),s=ge.indexOf(n),a=ir(n);~s&&ge.splice(s,a?6:2),r&&(a?_i.unshift(_e,r,be,r,Ht,r):_i.unshift(n,r))},o.clearMatchMedia=function(t){fe.forEach(function(r){return r._ctx&&r._ctx.query===t&&r._ctx.kill(!0,!0)})},o.isInViewport=function(t,r,n){var s=(It(t)?Pt(t):t).getBoundingClientRect(),a=s[n?Ji:er]*r||0;return n?s.right-a>0&&s.left+a<_e.innerWidth:s.bottom-a>0&&s.top+a<_e.innerHeight},o.positionInViewport=function(t,r,n){It(t)&&(t=Pt(t));var s=t.getBoundingClientRect(),a=s[n?Ji:er],l=r==null?a/2:r in Vn?Vn[r]*a:~r.indexOf("%")?parseFloat(r)*a/100:parseFloat(r)||0;return n?(s.left+l)/_e.innerWidth:(s.top+l)/_e.innerHeight},o.killAll=function(t){if(fe.slice(0).forEach(function(n){return n.vars.id!=="ScrollSmoother"&&n.kill()}),t!==!0){var r=rr.killAll||[];rr={},r.forEach(function(n){return n()})}},o}();he.version="3.15.0";he.saveStyles=function(o){return o?an(o).forEach(function(e){if(e&&e.style){var i=Ft.indexOf(e);i>=0&&Ft.splice(i,5),Ft.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),$.core.getCache(e),Ms())}}):Ft};he.revert=function(o,e){return so(!o,e)};he.create=function(o,e){return new he(o,e)};he.refresh=function(o){return o?Hr(!0):(cr||he.register())&&Gi(!0)};he.update=function(o){return++ge.cache&&bi(o===!0?2:0)};he.clearScrollMemory=cl;he.maxScroll=function(o,e){return pi(o,e?kt:Ke)};he.getScrollFunc=function(o,e){return Hi(Pt(o),e?kt:Ke)};he.getById=function(o){return Rs[o]};he.getAll=function(){return fe.filter(function(o){return o.vars.id!=="ScrollSmoother"})};he.isScrolling=function(){return!!ei};he.snapDirectional=no;he.addEventListener=function(o,e){var i=rr[o]||(rr[o]=[]);~i.indexOf(e)||i.push(e)};he.removeEventListener=function(o,e){var i=rr[o],t=i&&i.indexOf(e);t>=0&&i.splice(t,1)};he.batch=function(o,e){var i=[],t={},r=e.interval||.016,n=e.batchMax||1e9,s=function(u,c){var p=[],h=[],f=$.delayedCall(r,function(){c(p,h),p=[],h=[]}).pause();return function(_){p.length||f.restart(!0),p.push(_.trigger),h.push(_),n<=p.length&&f.progress(1)}},a;for(a in e)t[a]=a.substr(0,2)==="on"&&vt(e[a])&&a!=="onRefreshInit"?s(a,e[a]):e[a];return vt(n)&&(n=n(),tt(he,"refresh",function(){return n=e.batchMax()})),an(o).forEach(function(l){var u={};for(a in t)u[a]=t[a];u.trigger=l,i.push(he.create(u))}),i};var Bo=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},us=function o(e,i){i===!0?e.style.removeProperty("touch-action"):e.style.touchAction=i===!0?"auto":i?"pan-"+i+(Ve.isTouch?" pinch-zoom":""):"none",e===Ht&&o(be,i)},Tn={auto:1,scroll:1},Ju=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=gt(),l;if(!s._isScrollT||a-s._isScrollT>2e3){for(;n&&n!==be&&(n.scrollHeight<=n.clientHeight&&n.scrollWidth<=n.clientWidth||!(Tn[(l=Qt(n)).overflowY]||Tn[l.overflowX]));)n=n.parentNode;s._isScroll=n&&n!==t&&!ir(n)&&(Tn[(l=Qt(n)).overflowY]||Tn[l.overflowX]),s._isScrollT=a}(s._isScroll||r==="x")&&(i.stopPropagation(),i._gsapAllow=!0)},dl=function(e,i,t,r){return Ve.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:i,onWheel:r=r&&Ju,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return t&&tt(Se,Ve.eventTypes[0],Xo,!1,!0)},onDisable:function(){return et(Se,Ve.eventTypes[0],Xo,!0)}})},ec=/(input|label|select|textarea)/i,Yo,Xo=function(e){var i=ec.test(e.target.tagName);(i||Yo)&&(e._gsapAllow=!0,Yo=i)},tc=function(e){Ui(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,l,u=Pt(e.target)||Ht,c=$.core.globals().ScrollSmoother,p=c&&c.get(),h=Ei&&(e.content&&Pt(e.content)||p&&e.content!==!1&&!p.smooth()&&p.content()),f=Hi(u,Ke),_=Hi(u,kt),d=1,v=(Ve.isTouch&&_e.visualViewport?_e.visualViewport.scale*_e.visualViewport.width:_e.outerWidth)/_e.innerWidth,S=0,y=vt(r)?function(){return r(a)}:function(){return r||2.8},k,b,P=dl(u,e.type,!0,n),z=function(){return b=!1},E=fi,N=fi,L=function(){l=pi(u,Ke),N=qr(Ei?1:0,l),t&&(E=qr(0,pi(u,kt))),k=tr},A=function(){h._gsap.y=Ir(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},se=function(){if(b){requestAnimationFrame(z);var me=Ir(a.deltaY/2),we=N(f.v-me);if(h&&we!==f.v+f.offset){f.offset=we-f.v;var x=Ir((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, "+x+", 0, 1)",h._gsap.y=x+"px",f.cacheID=ge.cache,bi()}return!0}f.offset&&A(),b=!0},Y,oe,ee,J,ue=function(){L(),Y.isActive()&&Y.vars.scrollY>l&&(f()>l?Y.progress(1)&&f(l):Y.resetTo("scrollY",l))};return h&&$.set(h,{y:"+=0"}),e.ignoreCheck=function(Z){return Ei&&Z.type==="touchmove"&&se()||d>1.05&&Z.type!=="touchstart"||a.isGesturing||Z.touches&&Z.touches.length>1},e.onPress=function(){b=!1;var Z=d;d=Ir((_e.visualViewport&&_e.visualViewport.scale||1)/v),Y.pause(),Z!==d&&us(u,d>1.01?!0:t?!1:"x"),oe=_(),ee=f(),L(),k=tr},e.onRelease=e.onGestureStart=function(Z,me){if(f.offset&&A(),!me)J.restart(!0);else{ge.cache++;var we=y(),x,Ce;t&&(x=_(),Ce=x+we*.05*-Z.velocityX/.227,we*=Bo(_,x,Ce,pi(u,kt)),Y.vars.scrollX=E(Ce)),x=f(),Ce=x+we*.05*-Z.velocityY/.227,we*=Bo(f,x,Ce,pi(u,Ke)),Y.vars.scrollY=N(Ce),Y.invalidate().duration(we).play(.01),(Ei&&Y.vars.scrollY>=l||x>=l-1)&&$.to({},{onUpdate:ue,duration:we})}s&&s(Z)},e.onWheel=function(){Y._ts&&Y.pause(),gt()-S>1e3&&(k=0,S=gt())},e.onChange=function(Z,me,we,x,Ce){if(tr!==k&&L(),me&&t&&_(E(x[2]===me?oe+(Z.startX-Z.x):_()+me-x[1])),we){f.offset&&A();var rt=Ce[2]===we,yt=rt?ee+Z.startY-Z.y:f()+we-Ce[1],Me=N(yt);rt&&yt!==Me&&(ee+=Me-yt),f(Me)}(we||me)&&bi()},e.onEnable=function(){us(u,t?!1:"x"),he.addEventListener("refresh",ue),tt(_e,"resize",ue),f.smooth&&(f.target.style.scrollBehavior="auto",f.smooth=_.smooth=!1),P.enable()},e.onDisable=function(){us(u,!0),et(_e,"resize",ue),he.removeEventListener("refresh",ue),P.kill()},e.lockAxis=e.lockAxis!==!1,a=new Ve(e),a.iOS=Ei,Ei&&!f()&&f(1),Ei&&$.ticker.add(fi),J=a._dc,Y=$.to(a,{ease:"power4",paused:!0,inherit:!1,scrollX:t?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:hl(f,f(),function(){return Y.pause()})},onUpdate:bi,onComplete:J.vars.onComplete}),a};he.sort=function(o){if(vt(o))return fe.sort(o);var e=_e.pageYOffset||0;return he.getAll().forEach(function(i){return i._sortY=i.trigger?e+i.trigger.getBoundingClientRect().top:i.start+_e.innerHeight}),fe.sort(o||function(i,t){return(i.vars.refreshPriority||0)*-1e6+(i.vars.containerAnimation?1e6:i._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+(t.vars.refreshPriority||0)*-1e6)})};he.observe=function(o){return new Ve(o)};he.normalizeScroll=function(o){if(typeof o>"u")return Tt;if(o===!0&&Tt)return Tt.enable();if(o===!1){Tt&&Tt.kill(),Tt=o;return}var e=o instanceof Ve?o:tc(o);return Tt&&Tt.target===e.target&&Tt.kill(),ir(e.target)&&(Tt=e),e};he.core={_getVelocityProp:Es,_inputObserver:dl,_scrollers:ge,_proxies:_i,bridge:{ss:function(){ei||nr("scrollStart"),ei=gt()},ref:function(){return _t}}};tl()&&$.registerPlugin(he);var Vo="1.3.26";function pl(o,e,i){return Math.max(o,Math.min(e,i))}function ic(o,e,i){return(1-i)*o+i*e}function rc(o,e,i,t){return ic(o,e,1-Math.exp(-i*t))}function nc(o,e){return(o%e+e)%e}var sc=class{constructor(){G(this,"isRunning",!1);G(this,"value",0);G(this,"from",0);G(this,"to",0);G(this,"currentTime",0);G(this,"lerp");G(this,"duration");G(this,"easing");G(this,"onUpdate")}advance(o){var i;if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=o;const t=pl(0,this.currentTime/this.duration,1);e=t>=1;const r=e?1:this.easing(t);this.value=this.from+(this.to-this.from)*r}else this.lerp?(this.value=rc(this.value,this.to,this.lerp*60,o),Math.round(this.value)===Math.round(this.to)&&(this.value=this.to,e=!0)):(this.value=this.to,e=!0);e&&this.stop(),(i=this.onUpdate)==null||i.call(this,this.value,e)}stop(){this.isRunning=!1}fromTo(o,e,{lerp:i,duration:t,easing:r,onStart:n,onUpdate:s}){this.from=this.value=o,this.to=e,this.lerp=i,this.duration=t,this.easing=r,this.currentTime=0,this.isRunning=!0,n==null||n(),this.onUpdate=s}};function oc(o,e){let i;return function(...t){clearTimeout(i),i=setTimeout(()=>{i=void 0,o.apply(this,t)},e)}}var ac=class{constructor(o,e,{autoResize:i=!0,debounce:t=250}={}){G(this,"width",0);G(this,"height",0);G(this,"scrollHeight",0);G(this,"scrollWidth",0);G(this,"debouncedResize");G(this,"wrapperResizeObserver");G(this,"contentResizeObserver");G(this,"resize",()=>{this.onWrapperResize(),this.onContentResize()});G(this,"onWrapperResize",()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)});G(this,"onContentResize",()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)});this.wrapper=o,this.content=e,i&&(this.debouncedResize=oc(this.resize,t),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){var o,e;(o=this.wrapperResizeObserver)==null||o.disconnect(),(e=this.contentResizeObserver)==null||e.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},_l=class{constructor(){G(this,"events",{})}emit(o,...e){var t;const i=this.events[o]||[];for(let r=0,n=i.length;r<n;r++)(t=i[r])==null||t.call(i,...e)}on(o,e){return this.events[o]?this.events[o].push(e):this.events[o]=[e],()=>{var i;this.events[o]=(i=this.events[o])==null?void 0:i.filter(t=>e!==t)}}off(o,e){var i;this.events[o]=(i=this.events[o])==null?void 0:i.filter(t=>e!==t)}destroy(){this.events={}}};const lc=100/6,Ci={passive:!1};function qo(o,e){return o===1?lc:o===2?e:1}var uc=class{constructor(o,e={wheelMultiplier:1,touchMultiplier:1}){G(this,"touchStart",{x:0,y:0});G(this,"lastDelta",{x:0,y:0});G(this,"window",{width:0,height:0});G(this,"emitter",new _l);G(this,"onTouchStart",o=>{const{clientX:e,clientY:i}=o.targetTouches?o.targetTouches[0]:o;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:o})});G(this,"onTouchMove",o=>{const{clientX:e,clientY:i}=o.targetTouches?o.targetTouches[0]:o,t=-(e-this.touchStart.x)*this.options.touchMultiplier,r=-(i-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:t,y:r},this.emitter.emit("scroll",{deltaX:t,deltaY:r,event:o})});G(this,"onTouchEnd",o=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:o})});G(this,"onWheel",o=>{let{deltaX:e,deltaY:i,deltaMode:t}=o;const r=qo(t,this.window.width),n=qo(t,this.window.height);e*=r,i*=n,e*=this.options.wheelMultiplier,i*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:i,event:o})});G(this,"onWindowResize",()=>{this.window={width:window.innerWidth,height:window.innerHeight}});this.element=o,this.options=e,window.addEventListener("resize",this.onWindowResize),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,Ci),this.element.addEventListener("touchstart",this.onTouchStart,Ci),this.element.addEventListener("touchmove",this.onTouchMove,Ci),this.element.addEventListener("touchend",this.onTouchEnd,Ci)}on(o,e){return this.emitter.on(o,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize),this.element.removeEventListener("wheel",this.onWheel,Ci),this.element.removeEventListener("touchstart",this.onTouchStart,Ci),this.element.removeEventListener("touchmove",this.onTouchMove,Ci),this.element.removeEventListener("touchend",this.onTouchEnd,Ci)}};const Uo=o=>Math.min(1,1.001-2**(-10*o));var cc=class{constructor({wrapper:o=window,content:e=document.documentElement,eventsTarget:i=o,smoothWheel:t=!0,syncTouch:r=!1,syncTouchLerp:n=.075,touchInertiaExponent:s=1.7,duration:a,easing:l,lerp:u=.1,infinite:c=!1,orientation:p="vertical",gestureOrientation:h=p==="horizontal"?"both":"vertical",touchMultiplier:f=1,wheelMultiplier:_=1,autoResize:d=!0,prevent:v,virtualScroll:S,overscroll:y=!0,autoRaf:k=!1,anchors:b=!1,autoToggle:P=!1,allowNestedScroll:z=!1,__experimental__naiveDimensions:E=!1,naiveDimensions:N=E,stopInertiaOnNavigate:L=!1,respectReducedMotion:A=!0}={}){G(this,"_isScrolling",!1);G(this,"_isStopped",!1);G(this,"_isLocked",!1);G(this,"_preventNextNativeScrollEvent",!1);G(this,"_resetVelocityTimeout",null);G(this,"_rafId",null);G(this,"_isDraggingSelection",!1);G(this,"reducedMotionMediaQuery",window.matchMedia("(prefers-reduced-motion: reduce)"));G(this,"isTouching");G(this,"isIos");G(this,"time",0);G(this,"userData",{});G(this,"lastVelocity",0);G(this,"velocity",0);G(this,"direction",0);G(this,"options");G(this,"targetScroll");G(this,"animatedScroll");G(this,"animate",new sc);G(this,"emitter",new _l);G(this,"dimensions");G(this,"virtualScroll");G(this,"onScrollEnd",o=>{o instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&o.stopPropagation()});G(this,"dispatchScrollendEvent",()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))});G(this,"onTransitionEnd",o=>{var e;(e=o.propertyName)!=null&&e.includes("overflow")&&o.target===this.rootElement&&this.checkOverflow()});G(this,"onClick",o=>{const e=o.composedPath().filter(t=>t instanceof HTMLAnchorElement&&t.href).map(t=>new URL(t.href)),i=new URL(window.location.href);if(this.options.anchors){const t=e.find(r=>i.host===r.host&&i.pathname===r.pathname&&r.hash);if(t){const r=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0,n=decodeURIComponent(t.hash);this.scrollTo(n,r);return}}if(this.options.stopInertiaOnNavigate&&e.some(t=>i.host===t.host&&i.pathname!==t.pathname)){this.reset();return}});G(this,"onPointerDown",o=>{o.button===1&&this.reset()});G(this,"onVirtualScroll",o=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(o)===!1)return;const{deltaX:e,deltaY:i,event:t}=o;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:i,event:t}),t.ctrlKey||t.lenisStopPropagation)return;const r=t.type.includes("touch"),n=t.type.includes("wheel");if(r&&this.isIos&&(t.type==="touchstart"&&(this._isDraggingSelection=this.isTouchOnSelectionHandle(t)),this._isDraggingSelection)){t.type==="touchend"&&(this._isDraggingSelection=!1);return}this.isTouching=t.type==="touchstart"||t.type==="touchmove";const s=e===0&&i===0;if(this.options.syncTouch&&r&&t.type==="touchstart"&&s&&!this.isStopped&&!this.isLocked){this.reset();return}const a=this.options.gestureOrientation==="vertical"&&i===0||this.options.gestureOrientation==="horizontal"&&e===0;if(s||a)return;let l=t.composedPath();l=l.slice(0,l.indexOf(this.rootElement));const u=this.options.prevent,c=Math.abs(e)>=Math.abs(i)?"horizontal":"vertical";if(l.find(_=>{var d,v,S,y,k;return _ instanceof HTMLElement&&(typeof u=="function"&&(u==null?void 0:u(_))||((d=_.hasAttribute)==null?void 0:d.call(_,"data-lenis-prevent"))||c==="vertical"&&((v=_.hasAttribute)==null?void 0:v.call(_,"data-lenis-prevent-vertical"))||c==="horizontal"&&((S=_.hasAttribute)==null?void 0:S.call(_,"data-lenis-prevent-horizontal"))||r&&((y=_.hasAttribute)==null?void 0:y.call(_,"data-lenis-prevent-touch"))||n&&((k=_.hasAttribute)==null?void 0:k.call(_,"data-lenis-prevent-wheel"))||this.options.allowNestedScroll&&this.hasNestedScroll(_,{deltaX:e,deltaY:i}))}))return;if(this.isStopped||this.isLocked){t.cancelable&&t.preventDefault();return}if(!(this.options.syncTouch&&r||this.options.smoothWheel&&n)){this.isScrolling="native",this.animate.stop(),t.lenisStopPropagation=!0;return}let p=i;this.options.gestureOrientation==="both"?p=Math.abs(i)>Math.abs(e)?i:e:this.options.gestureOrientation==="horizontal"&&(p=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&i>0||this.animatedScroll===this.limit&&i<0))&&(t.lenisStopPropagation=!0),t.cancelable&&t.preventDefault();const h=r&&this.options.syncTouch,f=r&&t.type==="touchend";f&&(p=Math.sign(p)*Math.abs(this.velocity)**this.options.touchInertiaExponent),this.scrollTo(this.targetScroll+p,{programmatic:!1,...h?{lerp:f?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})});G(this,"onNativeScroll",()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){const o=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-o,this.direction=Math.sign(this.animatedScroll-o),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}});G(this,"raf",o=>{const e=o-(this.time||o);this.time=o,this.animate.advance(e*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))});window.lenisVersion=Vo,window.lenis||(window.lenis={}),window.lenis.version=Vo,p==="horizontal"&&(window.lenis.horizontal=!0),r===!0&&(window.lenis.touch=!0),this.isIos=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),(!o||o===document.documentElement)&&(o=window),typeof a=="number"&&typeof l!="function"?l=Uo:typeof l=="function"&&typeof a!="number"&&(a=1),this.options={wrapper:o,content:e,eventsTarget:i,smoothWheel:t,syncTouch:r,syncTouchLerp:n,touchInertiaExponent:s,duration:a,easing:l,lerp:u,infinite:c,gestureOrientation:h,orientation:p,touchMultiplier:f,wheelMultiplier:_,autoResize:d,prevent:v,virtualScroll:S,overscroll:y,autoRaf:k,anchors:b,autoToggle:P,allowNestedScroll:z,naiveDimensions:N,stopInertiaOnNavigate:L,respectReducedMotion:A},this.dimensions=new ac(o,e,{autoResize:d}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown),this.virtualScroll=new uc(i,{touchMultiplier:f,wheelMultiplier:_}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd)),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(o,e){return this.emitter.on(o,e)}off(o,e){return this.emitter.off(o,e)}get overflow(){const o=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[o]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}setScroll(o){this.isHorizontal?this.options.wrapper.scrollTo({left:o,behavior:"instant"}):this.options.wrapper.scrollTo({top:o,behavior:"instant"})}isTouchOnSelectionHandle(o){const e=window.getSelection();if(!e||e.isCollapsed||e.rangeCount===0)return!1;const i=o.targetTouches[0]??o.changedTouches[0];if(!i)return!1;const t=e.getRangeAt(0).getClientRects();if(t.length===0)return!1;const r=t[0],n=t[t.length-1],s=40,a=Math.hypot(i.clientX-r.left,i.clientY-r.top)<=s,l=Math.hypot(i.clientX-n.right,i.clientY-n.bottom)<=s;return a||l}resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}scrollTo(o,{offset:e=0,immediate:i=!1,lock:t=!1,programmatic:r=!0,lerp:n=r?this.options.lerp:void 0,duration:s=r?this.options.duration:void 0,easing:a=r?this.options.easing:void 0,onStart:l,onComplete:u,force:c=!1,userData:p}={}){if(this.prefersReducedMotion&&(r?i=!0:(n=1,s=void 0,a=void 0)),(this.isStopped||this.isLocked)&&!c)return;let h=o,f=e;if(typeof h=="string"&&["top","left","start","#"].includes(h))h=0;else if(typeof h=="string"&&["bottom","right","end"].includes(h))h=this.limit;else{let _=null;if(typeof h=="string"?(_=h.startsWith("#")?document.getElementById(h.slice(1)):document.querySelector(h),_||(h==="#top"?h=0:console.warn("Lenis: Target not found",h))):h instanceof HTMLElement&&(h!=null&&h.nodeType)&&(_=h),_){if(this.options.wrapper!==window){const b=this.rootElement.getBoundingClientRect();f-=this.isHorizontal?b.left:b.top}const d=_.getBoundingClientRect(),v=getComputedStyle(_),S=this.isHorizontal?Number.parseFloat(v.scrollMarginLeft):Number.parseFloat(v.scrollMarginTop),y=getComputedStyle(this.rootElement),k=this.isHorizontal?Number.parseFloat(y.scrollPaddingLeft):Number.parseFloat(y.scrollPaddingTop);h=(this.isHorizontal?d.left:d.top)+this.animatedScroll-(Number.isNaN(S)?0:S)-(Number.isNaN(k)?0:k)}}if(typeof h=="number"){if(h+=f,this.options.infinite){if(r){this.targetScroll=this.animatedScroll=this.scroll;const _=h-this.animatedScroll;_>this.limit/2?h-=this.limit:_<-this.limit/2&&(h+=this.limit)}}else h=pl(0,h,this.limit);if(h===this.targetScroll){l==null||l(this),u==null||u(this);return}if(this.userData=p??{},i){this.animatedScroll=this.targetScroll=h,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),u==null||u(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}r||(this.targetScroll=h),typeof s=="number"&&typeof a!="function"?a=Uo:typeof a=="function"&&typeof s!="number"&&(s=1),this.animate.fromTo(this.animatedScroll,h,{duration:s,easing:a,lerp:n,onStart:()=>{t&&(this.isLocked=!0),this.isScrolling="smooth",l==null||l(this)},onUpdate:(_,d)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=_-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=_,this.setScroll(this.scroll),r&&(this.targetScroll=_),d||this.emit(),d&&(this.reset(),this.emit(),u==null||u(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}hasNestedScroll(o,{deltaX:e,deltaY:i}){const t=Date.now();o._lenis||(o._lenis={});const r=o._lenis;let n,s,a,l,u,c,p,h,f,_;if(t-(r.time??0)>2e3){r.time=Date.now();const z=window.getComputedStyle(o);if(r.computedStyle=z,n=["auto","overlay","scroll"].includes(z.overflowX),s=["auto","overlay","scroll"].includes(z.overflowY),u=["auto"].includes(z.overscrollBehaviorX),c=["auto"].includes(z.overscrollBehaviorY),r.hasOverflowX=n,r.hasOverflowY=s,!(n||s))return!1;p=o.scrollWidth,h=o.scrollHeight,f=o.clientWidth,_=o.clientHeight,a=p>f,l=h>_,r.isScrollableX=a,r.isScrollableY=l,r.scrollWidth=p,r.scrollHeight=h,r.clientWidth=f,r.clientHeight=_,r.hasOverscrollBehaviorX=u,r.hasOverscrollBehaviorY=c}else a=r.isScrollableX,l=r.isScrollableY,n=r.hasOverflowX,s=r.hasOverflowY,p=r.scrollWidth,h=r.scrollHeight,f=r.clientWidth,_=r.clientHeight,u=r.hasOverscrollBehaviorX,c=r.hasOverscrollBehaviorY;if(!(n&&a||s&&l))return!1;const d=Math.abs(e)>=Math.abs(i)?"horizontal":"vertical";let v,S,y,k,b,P;if(d==="horizontal")v=Math.round(o.scrollLeft),S=p-f,y=e,k=n,b=a,P=u;else if(d==="vertical")v=Math.round(o.scrollTop),S=h-_,y=i,k=s,b=l,P=c;else return!1;return!P&&(v>=S||v<=0)?!0:(y>0?v<S:v>0)&&k&&b}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){const o=this.options.wrapper;return this.isHorizontal?o.scrollX??o.scrollLeft:o.scrollY??o.scrollTop}get scroll(){return this.options.infinite?nc(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(o){this._isScrolling!==o&&(this._isScrolling=o,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(o){this._isStopped!==o&&(this._isStopped=o,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(o){this._isLocked!==o&&(this._isLocked=o,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get prefersReducedMotion(){return this.options.respectReducedMotion&&this.reducedMotionMediaQuery.matches}get className(){let o="lenis";return this.options.autoToggle&&(o+=" lenis-autoToggle"),this.isStopped&&(o+=" lenis-stopped"),this.isLocked&&(o+=" lenis-locked"),this.isScrolling&&(o+=" lenis-scrolling"),this.isScrolling==="smooth"&&(o+=" lenis-smooth"),o}updateClassName(){this.cleanUpClassName(),this.className.split(" ").forEach(o=>{this.rootElement.classList.add(o)})}cleanUpClassName(){for(const o of Array.from(this.rootElement.classList))(o==="lenis"||o.startsWith("lenis-"))&&this.rootElement.classList.remove(o)}},fc={exports:{}};(function(o,e){(function(i,t){o.exports=t()})(window,function(){return function(i){var t={};function r(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return i[n].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return r.m=i,r.c=t,r.d=function(n,s,a){r.o(n,s)||Object.defineProperty(n,s,{enumerable:!0,get:a})},r.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,s){if(1&s&&(n=r(n)),8&s||4&s&&typeof n=="object"&&n&&n.__esModule)return n;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:n}),2&s&&typeof n!="string")for(var l in n)r.d(a,l,(function(u){return n[u]}).bind(null,l));return a},r.n=function(n){var s=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(s,"a",s),s},r.o=function(n,s){return Object.prototype.hasOwnProperty.call(n,s)},r.p="",r(r.s=0)}([function(i,t,r){r.r(t);var n,s="fslightbox-",a="".concat(s,"styles"),l="".concat(s,"cursor-grabbing"),u="".concat(s,"full-dimension"),c="".concat(s,"flex-centered"),p="".concat(s,"open"),h="".concat(s,"transform-transition"),f="".concat(s,"absoluted"),_="".concat(s,"slide-btn"),d="".concat(_,"-container"),v="".concat(s,"fade-in"),S="".concat(s,"fade-out"),y=v+"-strong",k=S+"-strong",b="".concat(s,"opacity-"),P="".concat(b,"1"),z="".concat(s,"source");function E(g){return(E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m})(g)}function N(g){var m=g.stageIndexes,C=g.core.stageManager,w=g.props.sources.length-1;C.getPreviousSlideIndex=function(){return m.current===0?w:m.current-1},C.getNextSlideIndex=function(){return m.current===w?0:m.current+1},C.updateStageIndexes=w===0?function(){}:w===1?function(){m.current===0?(m.next=1,delete m.previous):(m.previous=0,delete m.next)}:function(){m.previous=C.getPreviousSlideIndex(),m.next=C.getNextSlideIndex()},C.i=w<=2?function(){return!0}:function(O){var I=m.current;if(I===0&&O===w||I===w&&O===0)return!0;var D=I-O;return D===-1||D===0||D===1}}(typeof window>"u"?"undefined":E(window))==="object"&&((n=document.createElement("style")).className=a,n.appendChild(document.createTextNode(".fslightbox-absoluted{position:absolute;top:0;left:0}.fslightbox-fade-in{animation:fslightbox-fade-in .3s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out{animation:fslightbox-fade-out .3s ease}.fslightbox-fade-in-strong{animation:fslightbox-fade-in-strong .3s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out-strong{animation:fslightbox-fade-out-strong .3s ease}@keyframes fslightbox-fade-in{from{opacity:.65}to{opacity:1}}@keyframes fslightbox-fade-out{from{opacity:.35}to{opacity:0}}@keyframes fslightbox-fade-in-strong{from{opacity:.3}to{opacity:1}}@keyframes fslightbox-fade-out-strong{from{opacity:1}to{opacity:0}}.fslightbox-cursor-grabbing{cursor:grabbing}.fslightbox-full-dimension{width:100%;height:100%}.fslightbox-open{overflow:hidden;height:100%}.fslightbox-flex-centered{display:flex;justify-content:center;align-items:center}.fslightbox-opacity-0{opacity:0!important}.fslightbox-opacity-1{opacity:1!important}.fslightbox-scrollbarfix{padding-right:17px}.fslightbox-transform-transition{transition:transform .3s}.fslightbox-container::backdrop{display:none}.fslightbox-container{font-family:Arial,sans-serif;position:fixed;top:0;left:0;padding:0;border:0;max-width:none;max-height:none;background:linear-gradient(rgba(30,30,30,.9),#000 1810%);touch-action:pinch-zoom;overflow:hidden;z-index:1000000000;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.fslightbox-container *{box-sizing:border-box}.fslightbox-svg{width:20px;height:20px}.fslightbox-svgp{transition:fill .15s ease;fill:#ddd}.fslightbox-nav{height:45px;width:100%;position:absolute;top:0;left:0}.fslightboxsn{z-index:0;display:flex;align-items:center;margin:14px 0 0 11px;font-size:15px;color:#d7d7d7}.fslightboxsn span{display:inline;vertical-align:middle}.fslightboxsl{display:inline-block!important;margin:0 5px;width:1px;height:12px;transform:rotate(15deg);background:white}.fslightbox-toolbar{position:absolute;z-index:3;right:0;top:0;height:100%;display:flex}.fslightbox-toolbar-button{width:45px;height:100%}.fslightbox-fsx{width:24px;height:24px}.fslightboxb{border:0;background:rgba(35,35,35,.65);cursor:pointer}.fslightboxb:focus{outline:0}.fslightboxb:focus .fslightbox-svgp{fill:#fff}.fslightboxb:hover .fslightbox-svgp{fill:#fff}.fslightbox-slide-btn-container{display:flex;align-items:center;padding:12px 12px 12px 6px;position:absolute;top:50%;cursor:pointer;z-index:3;transform:translateY(-50%)}.fslightbox-slide-btn-container-next{right:0;padding-left:12px;padding-right:3px}@media (min-width:476px){.fslightbox-slide-btn-container{padding:22px 22px 22px 6px}.fslightbox-slide-btn-container-next{padding-right:6px!important;padding-left:22px}}@media (min-width:768px){.fslightbox-slide-btn-container{padding:30px 30px 30px 6px}.fslightbox-slide-btn-container-next{padding-left:30px}.fslightbox-slide-btn{padding:10px}}.fslightbox-slide-btn-container:hover .fslightbox-svgp{fill:#fff}.fslightbox-slide-btn{padding:9px}.fslightbox-slide-btn-container-previous{left:0}@media (max-width:475.99px){.fslightbox-slide-btn-container-previous{padding-left:3px}}.fslightbox-down-event-detector{position:absolute;z-index:1}.fslightbox-slide-swiping-hoverer{z-index:4}.fslightbox-invalid-file-wrapper{font-size:22px;color:#eaebeb;margin:auto}.fslightboxv{object-fit:cover}.fslightbox-youtube-iframe{border:0}.fslightboxl{display:block;margin:auto;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:67px;height:67px}.fslightboxl div{box-sizing:border-box;display:block;position:absolute;width:54px;height:54px;margin:6px;border:5px solid;border-color:#999 transparent transparent transparent;border-radius:50%;animation:fslightboxl 1.2s cubic-bezier(.5,0,.5,1) infinite}.fslightboxl div:nth-child(1){animation-delay:-.45s}.fslightboxl div:nth-child(2){animation-delay:-.3s}.fslightboxl div:nth-child(3){animation-delay:-.15s}@keyframes fslightboxl{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.fslightbox-source{position:relative;z-index:2;opacity:0}@media (min-width:1200px){.fslightboxsn{margin:15px 0 0 12px;font-size:16px;display:block}.fslightboxsl{margin:0 6px 1px 6px;height:14px}.fslightbox-slide-btn{padding:11px}.fslightbox-svg{width:22px;height:22px}.fslightbox-fsx{width:26px;height:26px}.fslightbox-fso{width:22px;height:22px}.fslightboxl div{width:60px;height:60px;border-width:6px;border-color:#999 transparent transparent transparent;border-radius:50%}}@media (min-width:1600px){.fslightbox-nav{height:50px}.fslightboxsn{display:flex;margin:19px 0 0 16px;font-size:20px}.fslightboxsl{margin:0 7px 1px 7px;height:16px;width:2px;background:#d7d7d7}.fslightbox-toolbar-button{width:50px}.fslightbox-slide-btn{padding:12px}.fslightbox-svg{width:24px;height:24px}.fslightbox-fsx{width:28px;height:28px}.fslightbox-fso{width:24px;height:24px}}")),document.head.appendChild(n));function L(g){var m,C=g.props,w=0,O={};this.getSourceTypeFromLocalStorageByUrl=function(D){return m[D]?m[D]:I(D)},this.handleReceivedSourceTypeForUrl=function(D,M){if(O[M]===!1&&(w--,D!=="invalid"?O[M]=D:delete O[M],w===0)){(function(F,U){for(var R in U)F[R]=U[R]})(m,O);try{localStorage.setItem("fslightbox-types",JSON.stringify(m))}catch{}}};var I=function(D){w++,O[D]=!1};if(C.disableLocalStorage)this.getSourceTypeFromLocalStorageByUrl=function(){},this.handleReceivedSourceTypeForUrl=function(){};else{try{m=JSON.parse(localStorage.getItem("fslightbox-types"))}catch{}m||(m={},this.getSourceTypeFromLocalStorageByUrl=I)}}function A(g,m,C,w){g.data;var O=g.elements.sources,I=C/w,D=0;this.adjustSize=function(){if((D=g.mw/I)<g.mh)return C<g.mw&&(D=w),M();D=w>g.mh?g.mh:w,M()};var M=function(){O[m].style.width=D*I+"px",O[m].style.height=D+"px"}}function se(g,m){var C=this,w=g.collections.sourceSizers,O=g.elements,I=O.sourceAnimationWrappers,D=O.sources,M=g.isl,F=g.props.onSourceLoad,U=g.resolve;function R(X,V){w[m]=U(A,[m,X,V]),w[m].adjustSize()}this.b=function(X,V){D[m].classList.add(P),C.a(),R(X,V),C.b=R},this.a=function(){M[m]=!0,I[m].classList.add(y),I[m].removeChild(I[m].firstChild),F&&F(g,D[m],m)}}function Y(g,m){var C,w=this,O=g.elements.sources,I=g.props,D=(0,g.resolve)(se,[m]);this.handleImageLoad=function(M){var F=M.target,U=F.naturalWidth,R=F.naturalHeight;D.b(U,R)},this.handleVideoLoad=function(M){var F=M.target,U=F.videoWidth,R=F.videoHeight;C=!0,D.b(U,R)},this.handleNotMetaDatedVideoLoad=function(){C||w.handleYoutubeLoad()},this.handleYoutubeLoad=function(M,F){M||(M=1920,F=1080),I.maxYoutubeDimensions&&(M=I.maxYoutubeDimensions.width,F=I.maxYoutubeDimensions.height),D.b(M,F)},this.handleCustomLoad=function(){var M=O[m],F=M.offsetWidth,U=M.offsetHeight;F&&U?D.b(F,U):setTimeout(w.handleCustomLoad)}}function oe(g,m,C){var w=g.elements.sources,O=g.props.customClasses,I=O[m]?O[m]:"";w[m].className=C+" "+I}function ee(g,m){var C=g.elements.sources,w=g.props.customAttributes;for(var O in w[m])C[m].setAttribute(O,w[m][O])}function J(g,m){var C=g.collections.sourceLoadHandlers,w=g.elements,O=w.sources,I=w.sourceAnimationWrappers,D=g.props.sources;O[m]=document.createElement("img"),oe(g,m,z),O[m].src=D[m],O[m].onload=C[m].handleImageLoad,ee(g,m),I[m].appendChild(O[m])}function ue(g,m){var C=g.ap,w=g.collections.sourceLoadHandlers,O=g.elements,I=O.sources,D=O.sourceAnimationWrappers,M=g.props,F=M.sources,U=M.videosPosters,R=document.createElement("video"),X=document.createElement("source");I[m]=R,oe(g,m,"".concat(z," fslightboxv")),R.src=F[m],R.onloadedmetadata=function(V){return w[m].handleVideoLoad(V)},R.controls=!0,R.autoplay=C.i(m),ee(g,m),U[m]&&(I[m].poster=U[m]),X.src=F[m],R.appendChild(X),setTimeout(w[m].handleNotMetaDatedVideoLoad,3e3),D[m].appendChild(I[m])}function Z(g,m){var C=g.ap,w=g.collections.sourceLoadHandlers,O=g.elements,I=O.sources,D=O.sourceAnimationWrappers,M=g.props.sources[m],F=M.split("?")[1],U=document.createElement("iframe");I[m]=U,oe(g,m,"".concat(z," ").concat(s,"youtube-iframe")),U.src="https://www.youtube.com/embed/".concat(M.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/)[2],"?").concat(F||"").concat(C.i(m)?"&mute=1&autoplay=1":"","&enablejsapi=1"),U.allowFullscreen=!0,ee(g,m),D[m].appendChild(U),w[m].handleYoutubeLoad(parseInt(U.width),parseInt(U.height))}function me(g,m){var C=g.collections.sourceLoadHandlers,w=g.elements,O=w.sources,I=w.sourceAnimationWrappers,D=g.props.sources;O[m]=D[m],oe(g,m,"".concat(O[m].className," ").concat(z)),I[m].appendChild(O[m]),C[m].handleCustomLoad()}function we(g,m){var C=g.elements,w=C.sources,O=C.sourceAnimationWrappers;g.props.sources,w[m]=document.createElement("div"),w[m].className="".concat(s,"invalid-file-wrapper ").concat(c),w[m].innerHTML="Invalid source",O[m].appendChild(w[m]),new se(g,m).a()}function x(g){var m=g.collections,C=m.sourceLoadHandlers,w=m.sourcesRenderFunctions,O=g.core.sourceDisplayFacade,I=g.resolve;this.runActionsForSourceTypeAndIndex=function(D,M){var F;switch(D!=="invalid"&&(C[M]=I(Y,[M])),D){case"image":F=J;break;case"video":F=ue;break;case"youtube":F=Z;break;case"custom":F=me;break;default:F=we}w[M]=function(){return F(g,M)},O.displaySourcesWhichShouldBeDisplayed()}}function Ce(g,m,C){var w=g.props,O=w.types,I=w.type,D=w.sources;this.getTypeSetByClientForIndex=function(M){var F;return O&&O[M]?F=O[M]:I&&(F=I),F},this.retrieveTypeWithXhrForIndex=function(M){(function(F,U){var R=document.createElement("a");R.href=F;var X=R.hostname;if(X==="www.youtube.com"||X==="youtu.be")return U("youtube");var V=new XMLHttpRequest;V.onreadystatechange=function(){if(V.readyState!==4){if(V.readyState===2){var Q,W=V.getResponseHeader("content-type");switch(W.slice(0,W.indexOf("/"))){case"image":Q="image";break;case"video":Q="video";break;default:Q="invalid"}V.onreadystatechange=null,V.abort(),U(Q)}}else U("invalid")},V.open("GET",F),V.send()})(D[M],function(F){m.handleReceivedSourceTypeForUrl(F,D[M]),C.runActionsForSourceTypeAndIndex(F,M)})}}function rt(g,m){var C=g.core.stageManager,w=g.elements,O=w.smw,I=w.sourceWrappersContainer,D=g.props,M=0,F=document.createElement("div");function U(X){F.style.transform="translateX(".concat(X+M,"px)"),M=0}function R(){return(1+D.slideDistance)*innerWidth}F.className="".concat(f," ").concat(u," ").concat(c),F.s=function(){F.style.display="flex"},F.h=function(){F.style.display="none"},F.a=function(){F.classList.add(h)},F.d=function(){F.classList.remove(h)},F.n=function(){F.style.removeProperty("transform")},F.v=function(X){return M=X,F},F.ne=function(){U(-R())},F.z=function(){U(0)},F.p=function(){U(R())},C.i(m)||F.h(),O[m]=F,I.appendChild(F),function(X,V){var Q=X.elements,W=Q.smw,ae=Q.sourceAnimationWrappers,te=document.createElement("div"),q=document.createElement("div");q.className="fslightboxl";for(var ie=0;ie<3;ie++){var ye=document.createElement("div");q.appendChild(ye)}te.appendChild(q),W[V].appendChild(te),ae[V]=te}(g,m)}function yt(g,m,C){var w=document.createElementNS("http://www.w3.org/2000/svg","svg"),O="".concat(s,"svg");w.setAttributeNS(null,"class","".concat(O)),w.setAttributeNS(null,"viewBox",m);var I=document.createElementNS("http://www.w3.org/2000/svg","path");return I.setAttributeNS(null,"class","".concat(O,"p")),I.setAttributeNS(null,"d",C),w.appendChild(I),g.appendChild(w),w}function Me(g,m){var C=document.createElement("button");return C.className="fslightboxb ".concat(s,"toolbar-button ").concat(c),C.title=m,g.appendChild(C),C}function $e(g,m){var C=document.createElement("div");C.className="".concat(s,"toolbar"),m.appendChild(C),function(w,O){if(!w.hfs){var I="M4.5 11H3v4h4v-1.5H4.5V11zM3 7h1.5V4.5H7V3H3v4zm10.5 6.5H11V15h4v-4h-1.5v2.5zM11 3v1.5h2.5V7H15V3h-4z",D=Me(O);D.title="Enter fullscreen";var M=yt(D,"0 0 18 18",I);w.fso=function(){w.ifs=1,D.title="Exit fullscreen",M.classList.add("".concat(s,"fsx")),M.setAttributeNS(null,"viewBox","0 0 950 1024"),M.firstChild.setAttributeNS(null,"d","M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z")},w.fsx=function(){w.ifs=0,D.title="Enter fullscreen",M.classList.remove("".concat(s,"fsx")),M.setAttributeNS(null,"viewBox","0 0 18 18"),M.firstChild.setAttributeNS(null,"d",I)},D.onclick=w.fs.t}}(g,C),function(w,O){var I=Me(O,"Close");I.onclick=w.core.lightboxCloser.closeLightbox,yt(I,"0 0 24 24","M 4.7070312 3.2929688 L 3.2929688 4.7070312 L 10.585938 12 L 3.2929688 19.292969 L 4.7070312 20.707031 L 12 13.414062 L 19.292969 20.707031 L 20.707031 19.292969 L 13.414062 12 L 20.707031 4.7070312 L 19.292969 3.2929688 L 12 10.585938 L 4.7070312 3.2929688 z")}(g,C)}function Qe(g){var m=g.props.sources,C=g.elements.container,w=document.createElement("div");w.className="".concat(s,"nav"),C.appendChild(w),$e(g,w),m.length>1&&function(O,I){var D=O.props.sources,M=(O.stageIndexes,document.createElement("div")),F=document.createElement("span"),U=document.createElement("span"),R=document.createElement("span");M.className="fslightboxsn",O.sn=function(X){return F.innerHTML=X},U.className="fslightboxsl",R.innerHTML=D.length,M.appendChild(F),M.appendChild(U),M.appendChild(R),I.appendChild(M)}(g,w)}function De(g,m,C,w){var O=g.elements.container,I=C.charAt(0).toUpperCase()+C.slice(1),D=document.createElement("div");D.className="".concat(d," ").concat(d,"-").concat(C),D.title="".concat(I," slide"),D.onclick=m,function(M,F){var U=document.createElement("button");U.className="fslightboxb ".concat(_," ").concat(c),yt(U,"0 0 20 20",F),M.appendChild(U)}(D,w),O.appendChild(D)}function nt(g){var m=g.core,C=m.lightboxCloser,w=m.slideChangeFacade,O=g.fs;this.listener=function(I){switch(I.key){case"Escape":C.closeLightbox();break;case"ArrowLeft":w.changeToPrevious();break;case"ArrowRight":w.changeToNext();break;case"F11":I.preventDefault(),O.t()}}}function Ze(g){var m=g.elements,C=g.sourcePointerProps,w=g.stageIndexes;function O(I,D){m.smw[I].v(C.swipedX)[D]()}this.runActionsForEvent=function(I){var D,M,F;m.container.contains(m.slideSwipingHoverer)||m.container.appendChild(m.slideSwipingHoverer),D=m.container,M=l,(F=D.classList).contains(M)||F.add(M),C.swipedX=I.screenX-C.downScreenX;var U=w.previous,R=w.next;O(w.current,"z"),U!==void 0&&C.swipedX>0?O(U,"ne"):R!==void 0&&C.swipedX<0&&O(R,"p")}}function ni(g){var m=g.dss,C=g.props.sources,w=g.resolve,O=g.sourcePointerProps,I=w(Ze);C.length===1||m?this.listener=function(){O.swipedX=1}:this.listener=function(D){O.isPointering&&I.runActionsForEvent(D)}}function st(g){var m=g.core.slideIndexChanger,C=g.elements.smw,w=g.stageIndexes,O=g.sws;function I(M){var F=C[w.current];F.a(),F[M]()}function D(M,F){M!==void 0&&(C[M].s(),C[M][F]())}this.runPositiveSwipedXActions=function(){var M=w.previous;if(M===void 0)I("z");else{I("p");var F=w.next;m.changeTo(M);var U=w.previous;O.d(U),O.b(F),I("z"),D(U,"ne")}},this.runNegativeSwipedXActions=function(){var M=w.next;if(M===void 0)I("z");else{I("ne");var F=w.previous;m.changeTo(M);var U=w.next;O.d(U),O.b(F),I("z"),D(U,"p")}}}function Je(g,m){g.contains(m)&&g.removeChild(m)}function ve(g){var m=g.core.lightboxCloser,C=g.dss,w=g.elements,O=g.props,I=g.resolve,D=g.sourcePointerProps,M=I(st);this.runNoSwipeActions=function(){Je(w.container,w.slideSwipingHoverer),D.isSourceDownEventTarget||O.disableBackgroundClose||m.closeLightbox(),D.isPointering=!1},this.runActions=function(){C||(D.swipedX>0?M.runPositiveSwipedXActions():M.runNegativeSwipedXActions()),Je(w.container,w.slideSwipingHoverer),w.container.classList.remove(l),D.isPointering=!1}}function Le(g){var m=g.resolve,C=g.sourcePointerProps,w=m(ve);this.listener=function(){C.isPointering&&(C.swipedX?w.runActions():w.runNoSwipeActions())}}function ft(g){var m=this,C=g.core,w=C.globalEventsController,O=C.scrollbarRecompensor,I=(g.data,g.e),D=g.elements,M=g.fs,F=g.props,U=g.sourcePointerProps,R=g.ud;this.runActions=function(){m.i=1,D.container.classList.add(k),w.removeListeners(),F.exitFullscreenOnClose&&g.ifs&&M.x(),setTimeout(function(){m.i=0,U.isPointering=!1,D.container.classList.remove(k),document.documentElement.classList.remove(p),O.removeRecompense(),R&&D.container.close(),document.body.removeChild(D.container),I("onClose")},270)}}function ot(g,m){var C=g.classList;C.contains(m)&&C.remove(m)}function T(g){var m,C,w,O,I,D,M,F,U;(function(R){var X=R.ap,V=R.elements.sources,Q=R.props,W=Q.autoplay,ae=Q.autoplays;function te(q,ie){if(ie!="play"||X.i(q)){var ye=V[q];if(ye){var le=ye.tagName;if(le=="VIDEO")ye[ie]();else if(le=="IFRAME"){var de=ye.contentWindow;de&&de.postMessage('{"event":"command","func":"'.concat(ie,'Video","args":""}'),"*")}}}}X.i=function(q){return ae[q]||W&&ae[q]!=0},X.p=function(q){te(q,"play")},X.c=function(q,ie){te(q,"pause"),te(ie,"play")}})(g),function(R){R.data;var X=R.fs,V=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],Q=document.documentElement,W=Q.requestFullscreen;function ae(q){for(var ie=0;ie<V.length;ie++)document[q](V[ie],te)}function te(){document.fullscreenElement||document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement?R.fso():R.fsx()}X.i=function(){if(W||(W=Q.mozRequestFullScreen),W||(W=Q.webkitRequestFullscreen),W||(W=Q.msRequestFullscreen),!W)return R.hfs=1,X.o=function(){},X.x=function(){},X.t=function(){},X.l=function(){},void(X.q=function(){});X.o=function(){R.fso();var q=document.documentElement;q.requestFullscreen?q.requestFullscreen():q.mozRequestFullScreen?q.mozRequestFullScreen():q.webkitRequestFullscreen?q.webkitRequestFullscreen():q.msRequestFullscreen&&q.msRequestFullscreen()},X.x=function(){R.fsx(),document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},X.t=function(){R.ifs?X.x():X.o()},X.l=function(){ae("addEventListener")},X.q=function(){ae("removeEventListener")}}}(g),C=(m=g).core,w=C.globalEventsController,O=C.windowResizeActioner,I=m.fs,D=m.resolve,M=D(nt),F=D(ni),U=D(Le),w.attachListeners=function(){document.addEventListener("pointermove",F.listener),document.addEventListener("pointerup",U.listener),addEventListener("resize",O.runActions),document.addEventListener("keydown",M.listener),I.l()},w.removeListeners=function(){document.removeEventListener("pointermove",F.listener),document.removeEventListener("pointerup",U.listener),removeEventListener("resize",O.runActions),document.removeEventListener("keydown",M.listener),I.q()},function(R){var X=R.core.lightboxCloser,V=(0,R.resolve)(ft);X.closeLightbox=function(){V.isLightboxFadingOut||V.runActions()}}(g),function(R){var X=R.data,V=R.core.scrollbarRecompensor;function Q(){document.body.offsetHeight>innerHeight&&(document.body.style.marginRight=X.scrollbarWidth+"px")}V.addRecompense=function(){document.readyState==="complete"?Q():addEventListener("load",function(){Q(),V.addRecompense=Q})},V.removeRecompense=function(){document.body.style.removeProperty("margin-right")}}(g),function(R){var X=R.core,V=X.slideChangeFacade,Q=X.slideIndexChanger,W=X.stageManager;R.props.sources.length>1?(V.changeToPrevious=function(){Q.jumpTo(W.getPreviousSlideIndex())},V.changeToNext=function(){Q.jumpTo(W.getNextSlideIndex())}):(V.changeToPrevious=function(){},V.changeToNext=function(){})}(g),function(R){var X=R.ap,V=(R.componentsServices,R.core),Q=V.slideIndexChanger,W=V.sourceDisplayFacade,ae=V.stageManager,te=R.elements,q=te.smw,ie=te.sourceAnimationWrappers,ye=R.isl,le=R.stageIndexes,de=R.sws;Q.changeTo=function(Te){X.c(le.current,Te),le.current=Te,ae.updateStageIndexes(),R.sn(Te+1),W.displaySourcesWhichShouldBeDisplayed()},Q.jumpTo=function(Te){var K=le.previous,B=le.current,ce=le.next,H=ye[B],re=ye[Te];Q.changeTo(Te);for(var j=0;j<q.length;j++)q[j].d();de.d(B),de.c(),requestAnimationFrame(function(){requestAnimationFrame(function(){var ne=le.previous,He=le.next;function pe(){ae.i(B)?B===le.previous?q[B].ne():B===le.next&&q[B].p():(q[B].h(),q[B].n())}H&&ie[B].classList.add(S),re&&ie[le.current].classList.add(v),de.a(),ne!==void 0&&ne!==B&&q[ne].ne(),q[le.current].n(),He!==void 0&&He!==B&&q[He].p(),de.b(K),de.b(ce),ye[B]?setTimeout(pe,260):pe()})})}}(g),function(R){var X=R.core.sourcesPointerDown,V=R.elements,Q=V.smw,W=V.sources,ae=R.sourcePointerProps,te=R.stageIndexes;X.listener=function(q){q.target.tagName!=="VIDEO"&&q.preventDefault(),ae.isPointering=!0,ae.downScreenX=q.screenX,ae.swipedX=0;var ie=W[te.current];ie&&ie.contains(q.target)?ae.isSourceDownEventTarget=!0:ae.isSourceDownEventTarget=!1;for(var ye=0;ye<Q.length;ye++)Q[ye].d()}}(g),function(R){var X=R.collections.sourcesRenderFunctions,V=R.core.sourceDisplayFacade,Q=R.loc,W=R.stageIndexes;function ae(te){X[te]&&(X[te](),delete X[te])}V.displaySourcesWhichShouldBeDisplayed=function(){if(Q)ae(W.current);else for(var te in W)ae(W[te])}}(g),function(R){var X=R.core.stageManager,V=R.elements,Q=V.smw,W=V.sourceAnimationWrappers,ae=R.isl,te=R.stageIndexes,q=R.sws;q.a=function(){for(var ie in te)Q[te[ie]].s()},q.b=function(ie){ie===void 0||X.i(ie)||(Q[ie].h(),Q[ie].n())},q.c=function(){for(var ie in te)q.d(te[ie])},q.d=function(ie){if(ae[ie]){var ye=W[ie];ot(ye,y),ot(ye,v),ot(ye,S)}}}(g),function(R){var X=R.collections.sourceSizers,V=R.core.windowResizeActioner,Q=(R.data,R.elements.smw),W=R.props.sourceMargin,ae=R.stageIndexes,te=1-2*W;V.runActions=function(){innerWidth>992?R.mw=te*innerWidth:R.mw=innerWidth,R.mh=te*innerHeight;for(var q=0;q<Q.length;q++)Q[q].d(),X[q]&&X[q].adjustSize();var ie=ae.previous,ye=ae.next;ie!==void 0&&Q[ie].ne(),ye!==void 0&&Q[ye].p()}}(g)}function bt(g){var m=g.ap,C=(g.componentsServices,g.core),w=C.globalEventsController,O=C.scrollbarRecompensor,I=C.sourceDisplayFacade,D=C.stageManager,M=C.windowResizeActioner,F=g.data,U=g.e,R=g.elements,X=(g.props,g.stageIndexes),V=g.sws,Q=0;function W(){var ae,te,q=g.props,ie=q.autoplay,ye=q.autoplays;Q=!0,function(le){var de=le.props,Te=de.autoplays;le.c=de.sources.length;for(var K=0;K<le.c;K++)Te[K]==="false"&&(Te[K]=0),Te[K]===""&&(Te[K]=1);le.dss=de.disableSlideSwiping,le.loc=de.loadOnlyCurrentSource,le.ud=de.useDialog&&typeof HTMLDialogElement=="function"}(g),F.scrollbarWidth=function(){var le=document.createElement("div"),de=le.style,Te=document.createElement("div");de.visibility="hidden",de.width="100px",de.msOverflowStyle="scrollbar",de.overflow="scroll",Te.style.width="100%",document.body.appendChild(le);var K=le.offsetWidth;le.appendChild(Te);var B=Te.offsetWidth;return document.body.removeChild(le),K-B}(),(ie||ye.length>0)&&(g.loc=1),T(g),g.fs.i(),R.container=document.createElement(g.ud?"dialog":"div"),R.container.className="".concat(s,"container ").concat(u," ").concat(y),R.container.setAttribute("tabindex","0"),function(le){var de=le.elements;de.slideSwipingHoverer=document.createElement("div"),de.slideSwipingHoverer.className="".concat(s,"slide-swiping-hoverer ").concat(u," ").concat(f)}(g),Qe(g),function(le){var de=le.core.sourcesPointerDown,Te=le.elements,K=le.props.sources,B=document.createElement("div");B.className="".concat(f," ").concat(u),Te.container.appendChild(B),B.addEventListener("pointerdown",de.listener),Te.sourceWrappersContainer=B;for(var ce=0;ce<K.length;ce++)rt(le,ce)}(g),g.props.sources.length>1&&(te=(ae=g).core.slideChangeFacade,De(ae,te.changeToPrevious,"previous","M18.271,9.212H3.615l4.184-4.184c0.306-0.306,0.306-0.801,0-1.107c-0.306-0.306-0.801-0.306-1.107,0L1.21,9.403C1.194,9.417,1.174,9.421,1.158,9.437c-0.181,0.181-0.242,0.425-0.209,0.66c0.005,0.038,0.012,0.071,0.022,0.109c0.028,0.098,0.075,0.188,0.142,0.271c0.021,0.026,0.021,0.061,0.045,0.085c0.015,0.016,0.034,0.02,0.05,0.033l5.484,5.483c0.306,0.307,0.801,0.307,1.107,0c0.306-0.305,0.306-0.801,0-1.105l-4.184-4.185h14.656c0.436,0,0.788-0.353,0.788-0.788S18.707,9.212,18.271,9.212z"),De(ae,te.changeToNext,"next","M1.729,9.212h14.656l-4.184-4.184c-0.307-0.306-0.307-0.801,0-1.107c0.305-0.306,0.801-0.306,1.106,0l5.481,5.482c0.018,0.014,0.037,0.019,0.053,0.034c0.181,0.181,0.242,0.425,0.209,0.66c-0.004,0.038-0.012,0.071-0.021,0.109c-0.028,0.098-0.075,0.188-0.143,0.271c-0.021,0.026-0.021,0.061-0.045,0.085c-0.015,0.016-0.034,0.02-0.051,0.033l-5.483,5.483c-0.306,0.307-0.802,0.307-1.106,0c-0.307-0.305-0.307-0.801,0-1.105l4.184-4.185H1.729c-0.436,0-0.788-0.353-0.788-0.788S1.293,9.212,1.729,9.212z")),function(le){for(var de=le.props.sources,Te=le.resolve,K=Te(L),B=Te(x),ce=Te(Ce,[K,B]),H=0;H<de.length;H++)if(typeof de[H]=="string"){var re=ce.getTypeSetByClientForIndex(H);if(re)B.runActionsForSourceTypeAndIndex(re,H);else{var j=K.getSourceTypeFromLocalStorageByUrl(de[H]);j?B.runActionsForSourceTypeAndIndex(j,H):ce.retrieveTypeWithXhrForIndex(H)}}else B.runActionsForSourceTypeAndIndex("custom",H)}(g),U("onInit")}g.open=function(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,te=X.previous,q=X.current,ie=X.next;X.current=ae,Q||N(g),D.updateStageIndexes(),Q?(V.c(),V.a(),V.b(te),V.b(q),V.b(ie),U("onShow")):W(),I.displaySourcesWhichShouldBeDisplayed(),g.sn(ae+1),document.body.appendChild(R.container),g.ud&&R.container.showModal(),R.container.focus(),document.documentElement.classList.add(p),O.addRecompense(),w.attachListeners(),M.runActions(),R.smw[ae].n(),m.p(ae),U("onOpen")}}function $t(g,m,C){return($t=si()?Reflect.construct.bind():function(w,O,I){var D=[null];D.push.apply(D,O);var M=new(Function.bind.apply(w,D));return I&&Oe(M,I.prototype),M}).apply(null,arguments)}function si(){if(typeof Reflect>"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 Oe(g,m){return(Oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,w){return C.__proto__=w,C})(g,m)}function ti(g){return function(m){if(Array.isArray(m))return Gt(m)}(g)||function(m){if(typeof Symbol<"u"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}(g)||function(m,C){if(m){if(typeof m=="string")return Gt(m,C);var w=Object.prototype.toString.call(m).slice(8,-1);if(w==="Object"&&m.constructor&&(w=m.constructor.name),w==="Map"||w==="Set")return Array.from(m);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return Gt(m,C)}}(g)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Gt(g,m){(m==null||m>g.length)&&(m=g.length);for(var C=0,w=new Array(m);C<m;C++)w[C]=g[C];return w}function oi(){for(var g=document.getElementsByTagName("a"),m=function(O){if(!g[O].hasAttribute("data-fslightbox"))return"continue";var I=g[O].hasAttribute("data-href")?g[O].getAttribute("data-href"):g[O].getAttribute("href");if(!I)return console.warn('The "data-fslightbox" attribute was set without the "href" attribute.'),"continue";var D=g[O].getAttribute("data-fslightbox");fsLightboxInstances[D]||(fsLightboxInstances[D]=new FsLightbox);var M=null;I.charAt(0)==="#"?(M=document.getElementById(I.substring(1)).cloneNode(!0)).removeAttribute("id"):M=I,fsLightboxInstances[D].props.sources.push(M),fsLightboxInstances[D].elements.a.push(g[O]);var F=fsLightboxInstances[D].props.sources.length-1;g[O].onclick=function(ae){ae.preventDefault(),fsLightboxInstances[D].open(F)},W("types","data-type"),W("videosPosters","data-video-poster"),W("customClasses","data-class"),W("customClasses","data-custom-class"),W("autoplays","data-autoplay");for(var U=["href","data-fslightbox","data-href","data-type","data-video-poster","data-class","data-custom-class","data-autoplay"],R=g[O].attributes,X=fsLightboxInstances[D].props.customAttributes,V=0;V<R.length;V++)if(U.indexOf(R[V].name)===-1&&R[V].name.substr(0,5)==="data-"){X[F]||(X[F]={});var Q=R[V].name.substr(5);X[F][Q]=R[V].value}function W(ae,te){g[O].hasAttribute(te)&&(fsLightboxInstances[D].props[ae][F]=g[O].getAttribute(te))}},C=0;C<g.length;C++)m(C);var w=Object.keys(fsLightboxInstances);window.fsLightbox=fsLightboxInstances[w[w.length-1]]}window.FsLightbox=function(){var g=this;this.props={sources:[],customAttributes:[],customClasses:[],autoplays:[],types:[],videosPosters:[],exitFullscreenOnClose:1,sourceMargin:.05,slideDistance:.3},this.data={isFullscreenOpen:!1,scrollbarWidth:0},this.isl=[],this.sourcePointerProps={downScreenX:null,isPointering:!1,isSourceDownEventTarget:!1,swipedX:0},this.stageIndexes={},this.elements={a:[],container:null,slideSwipingHoverer:null,smw:[],sourceWrappersContainer:null,sources:[],sourceAnimationWrappers:[]},this.sn=function(){},this.resolve=function(m){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.unshift(g),$t(m,ti(C))},this.collections={sourceLoadHandlers:[],sourcesRenderFunctions:[],sourceSizers:[]},this.core={globalEventsController:{},lightboxCloser:{},lightboxUpdater:{},scrollbarRecompensor:{},slideChangeFacade:{},slideIndexChanger:{},sourcesPointerDown:{},sourceDisplayFacade:{},stageManager:{},windowResizeActioner:{}},this.ap={},this.fs={},this.sws={},this.e=function(m){g.props[m]&&g.props[m](g)},bt(this),this.close=function(){return g.core.lightboxCloser.closeLightbox()}},window.fsLightboxInstances={},oi(),window.refreshFsLightbox=function(){for(var g in fsLightboxInstances){var m=fsLightboxInstances[g].props;fsLightboxInstances[g]=new FsLightbox,fsLightboxInstances[g].props=m,fsLightboxInstances[g].props.sources=[],fsLightboxInstances[g].elements.a=[]}oi()}}])})})(fc);ki.registerPlugin(he);(function(o,e){(function(){e.path.isFront,console.log("drupalSettings",e);const t=document.querySelector('main[role="main"]'),r=ki.matchMedia();console.log("gsap_mm",r);let n=null;function s(){console.log("LeShedTheme init()"),console.log("deploy test to delete"),a(),l(),u(),p(),c()}function a(){document.getElementById("burger-btn").parentElement.addEventListener("click",function(f){this.firstElementChild.toggleAttribute("opened"),this.firstElementChild.nextElementSibling.toggleAttribute("opened")})}function l(){const h=document.querySelector('main[role="main"]'),f=h&&h.querySelector(".layout-content");if(!(!h||!f))return n=new cc({wrapper:h,content:f,duration:1.2,smoothWheel:!0}),n.on("scroll",he.update),ki.ticker.add(_=>n.raf(_*1e3)),ki.ticker.lagSmoothing(0),n}function u(){console.log("initHomeColumnScrollSync");const h=document.querySelector(".layout--twocol-section--50-50 .layout__region--first"),f=document.querySelector(".layout--twocol-section--50-50 .layout__region--second");console.log(t,h,f),!(!t||!h||!f)&&r.add("(min-width: 768px)",()=>([h,f].forEach(_=>{ki.to(_,{y:()=>{const d=t.clientHeight,v=t.scrollHeight-t.clientHeight,S=Math.max(0,_.offsetHeight-d);return v-S},ease:"none",scrollTrigger:{scroller:t,start:0,end:"max",scrub:!0,invalidateOnRefresh:!0}})}),()=>{}))}function c(){console.log("initPageFull");const h=.4,f=document.querySelector("article.node-type-projet.view-mode-full .cols, article.node-type-evenement.view-mode-full .cols"),_=f&&f.querySelector(".col.left"),d=f&&f.querySelector(".col.right .field_images"),v=_&&_.querySelector(".spacer"),S=v&&parseFloat(getComputedStyle(v).height)||0,y=document.querySelector(" article.node-type-projet.view-mode-full .cols>.col.left>header, article.node-type-evenement.view-mode-full .cols>.col.left>header ");console.log("pageHeader",y),!(!y&&!(f&&_))&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{r.add("(min-width: 768px)",()=>{const k=()=>t.clientHeight,b=()=>y?y.offsetHeight*(1-h):0,P=()=>v?Math.max(0,(parseFloat(getComputedStyle(v).height)||0)-S):0,z=()=>_?_.offsetHeight-P():0,E=()=>{if(!d)return 0;let J=0;return d.querySelectorAll(".field-item").forEach(ue=>{J+=ue.offsetHeight}),J},N=()=>{if(!d)return 0;const J=d.querySelector(".field-item:last-child");return J?J.offsetHeight:0},L=()=>{if(!v||!y)return;const J=b();if(t.scrollHeight-t.clientHeight<J){const Z=Math.max(0,J+k()-z());v.style.height=S+Z+"px",t.offsetHeight}},A=()=>{if(!d)return;const J=Math.max(0,_.offsetHeight-E(),k()-N());d.style.setProperty("--sticky-extent",J+"px")},se=()=>{L(),A(),t.offsetHeight,n&&n.resize()},Y=()=>Math.max(0,z()-k(),b());se(),y&&ki.to(y,{scale:h,y:b,ease:"none",scrollTrigger:{scroller:t,start:0,end:b,scrub:!0,invalidateOnRefresh:!0}}),f&&_&&ki.fromTo(_,{y:0},{y:()=>t.scrollHeight-t.clientHeight-Y(),ease:"none",scrollTrigger:{scroller:t,start:Y,end:"max",scrub:!0,invalidateOnRefresh:!0}});const oe=()=>{se(),he.refresh()},ee=d?Array.from(d.querySelectorAll("img")):[];return ee.forEach(J=>{J.complete||J.addEventListener("load",oe)}),window.addEventListener("load",oe),document.fonts&&document.fonts.ready&&document.fonts.ready.then(oe),()=>{ee.forEach(J=>J.removeEventListener("load",oe)),window.removeEventListener("load",oe),v&&(v.style.height=""),d&&d.style.removeProperty("--sticky-extent")}})})})}function p(){console.log("initFsLightbox");let h=document.querySelectorAll("article.node-type-projet.view-mode-full .field_images.multiple .field-item a");for(const f of h)f.setAttribute("data-fslightbox","gallery");window.refreshFsLightbox()}s()})()})(Drupal,drupalSettings);
|