!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}
/*!
   * Observer 3.12.7
   * https://gsap.com
   *
   * @license Copyright 2008-2025, GreenSock. All rights reserved.
   * Subject to the terms at https://gsap.com/standard-license or for
   * Club GSAP members, the agreement issued with that membership.
   * @author: Jack Doyle, jack@greensock.com
  */
var r,n,i,o,a,s,l,c,u,f,d,p,h,g=function(){return r||"undefined"!=typeof window&&(r=window.gsap)&&r.registerPlugin&&r},v=1,m=[],y=[],x=[],b=Date.now,w=function(e,t){return t},_=function(e,t){return~x.indexOf(e)&&x[x.indexOf(e)+1][t]},k=function(e){return!!~f.indexOf(e)},C=function(e,t,r,n,i){return e.addEventListener(t,r,{passive:!1!==n,capture:!!i})},T=function(e,t,r,n){return e.removeEventListener(t,r,!!n)},E="scrollLeft",S="scrollTop",M=function(){return d&&d.isPressed||y.cache++},P=function(e,t){var r=function r(n){if(n||0===n){v&&(i.history.scrollRestoration="manual");var o=d&&d.isPressed;n=r.v=Math.round(n)||(d&&d.iOS?1:0),e(n),r.cacheID=y.cache,o&&w("ss",n)}else(t||y.cache!==r.cacheID||w("ref"))&&(r.cacheID=y.cache,r.v=e());return r.v+r.offset};return r.offset=0,e&&r},O={s:E,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:P(function(e){return arguments.length?i.scrollTo(e,A.sc()):i.pageXOffset||o[E]||a[E]||s[E]||0})},A={s:S,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:O,sc:P(function(e){return arguments.length?i.scrollTo(O.sc(),e):i.pageYOffset||o[S]||a[S]||s[S]||0})},D=function(e,t){return(t&&t._ctx&&t._ctx.selector||r.utils.toArray)(e)[0]||("string"==typeof e&&!1!==r.config().nullTargetWarn?void 0:null)},R=function(e,t){var n=t.s,i=t.sc;k(e)&&(e=o.scrollingElement||a);var s=y.indexOf(e),l=i===A.sc?1:2;!~s&&(s=y.push(e)-1),y[s+l]||C(e,"scroll",M);var c=y[s+l],u=c||(y[s+l]=P(_(e,n),!0)||(k(e)?i:P(function(t){return arguments.length?e[n]=t:e[n]})));return u.target=e,c||(u.smooth="smooth"===r.getProperty(e,"scrollBehavior")),u},Y=function(e,t,r){var n=e,i=e,o=b(),a=o,s=t||50,l=Math.max(500,3*s),c=function(e,t){var l=b();t||l-o>s?(i=n,n=e,a=o,o=l):r?n+=e:n=i+(e-i)/(l-a)*(o-a)};return{update:c,reset:function(){i=n=r?0:n,a=o=0},getVelocity:function(e){var t=a,s=i,u=b();return(e||0===e)&&e!==n&&c(e),o===a||u-a>l?0:(n+(r?s:-s))/((r?u:o)-t)*1e3}}},I=function(e,t){return t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},B=function(e){var t=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(r)?t:r},X=function(){var e,t,n,i;(u=r.core.globals().ScrollTrigger)&&u.core&&(e=u.core,t=e.bridge||{},n=e._scrollers,i=e._proxies,n.push.apply(n,y),i.push.apply(i,x),y=n,x=i,w=function(e,r){return t[e](r)})},z=function(e){return r=e||g(),!n&&r&&"undefined"!=typeof document&&document.body&&(i=window,o=document,a=o.documentElement,s=o.body,f=[i,o,a,s],r.utils.clamp,h=r.core.context||function(){},c="onpointerenter"in s?"pointer":"mouse",l=N.isTouch=i.matchMedia&&i.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in i||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,p=N.eventTypes=("ontouchstart"in a?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in a?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return v=0},500),X(),n=1),n};O.op=A,y.cache=0;var N=function(){function e(e){this.init(e)}var f,g,v;return e.prototype.init=function(e){n||z(r),u||X();var t=e.tolerance,f=e.dragMinimum,g=e.type,v=e.target,y=e.lineHeight,x=e.debounce,w=e.preventDefault,_=e.onStop,E=e.onStopDelay,S=e.ignore,P=e.wheelSpeed,N=e.event,F=e.onDragStart,H=e.onDragEnd,L=e.onDrag,W=e.onPress,q=e.onRelease,U=e.onRight,V=e.onLeft,G=e.onUp,j=e.onDown,K=e.onChangeX,Z=e.onChangeY,$=e.onChange,J=e.onToggleX,Q=e.onToggleY,ee=e.onHover,te=e.onHoverEnd,re=e.onMove,ne=e.ignoreCheck,ie=e.isNormalizer,oe=e.onGestureStart,ae=e.onGestureEnd,se=e.onWheel,le=e.onEnable,ce=e.onDisable,ue=e.onClick,fe=e.scrollSpeed,de=e.capture,pe=e.allowClicks,he=e.lockAxis,ge=e.onLockAxis;this.target=v=D(v)||a,this.vars=e,S&&(S=r.utils.toArray(S)),t=t||1e-9,f=f||0,P=P||1,fe=fe||1,g=g||"wheel,touch,pointer",x=!1!==x,y||(y=parseFloat(i.getComputedStyle(s).lineHeight)||22);var ve,me,ye,xe,be,we,_e,ke=this,Ce=0,Te=0,Ee=e.passive||!w&&!1!==e.passive,Se=R(v,O),Me=R(v,A),Pe=Se(),Oe=Me(),Ae=~g.indexOf("touch")&&!~g.indexOf("pointer")&&"pointerdown"===p[0],De=k(v),Re=v.ownerDocument||o,Ye=[0,0,0],Ie=[0,0,0],Be=0,Xe=function(){return Be=b()},ze=function(e,t){return(ke.event=e)&&S&&~S.indexOf(e.target)||t&&Ae&&"touch"!==e.pointerType||ne&&ne(e,t)},Ne=function(){var e=ke.deltaX=B(Ye),r=ke.deltaY=B(Ie),n=Math.abs(e)>=t,i=Math.abs(r)>=t;$&&(n||i)&&$(ke,e,r,Ye,Ie),n&&(U&&ke.deltaX>0&&U(ke),V&&ke.deltaX<0&&V(ke),K&&K(ke),J&&ke.deltaX<0!=Ce<0&&J(ke),Ce=ke.deltaX,Ye[0]=Ye[1]=Ye[2]=0),i&&(j&&ke.deltaY>0&&j(ke),G&&ke.deltaY<0&&G(ke),Z&&Z(ke),Q&&ke.deltaY<0!=Te<0&&Q(ke),Te=ke.deltaY,Ie[0]=Ie[1]=Ie[2]=0),(xe||ye)&&(re&&re(ke),ye&&(F&&1===ye&&F(ke),L&&L(ke),ye=0),xe=!1),we&&!(we=!1)&&ge&&ge(ke),be&&(se(ke),be=!1),ve=0},Fe=function(e,t,r){Ye[r]+=e,Ie[r]+=t,ke._vx.update(e),ke._vy.update(t),x?ve||(ve=requestAnimationFrame(Ne)):Ne()},He=function(e,t){he&&!_e&&(ke.axis=_e=Math.abs(e)>Math.abs(t)?"x":"y",we=!0),"y"!==_e&&(Ye[2]+=e,ke._vx.update(e,!0)),"x"!==_e&&(Ie[2]+=t,ke._vy.update(t,!0)),x?ve||(ve=requestAnimationFrame(Ne)):Ne()},Le=function(e){if(!ze(e,1)){var t=(e=I(e,w)).clientX,r=e.clientY,n=t-ke.x,i=r-ke.y,o=ke.isDragging;ke.x=t,ke.y=r,(o||(n||i)&&(Math.abs(ke.startX-t)>=f||Math.abs(ke.startY-r)>=f))&&(ye=o?2:1,o||(ke.isDragging=!0),He(n,i))}},We=ke.onPress=function(e){ze(e,1)||e&&e.button||(ke.axis=_e=null,me.pause(),ke.isPressed=!0,e=I(e),Ce=Te=0,ke.startX=ke.x=e.clientX,ke.startY=ke.y=e.clientY,ke._vx.reset(),ke._vy.reset(),C(ie?v:Re,p[1],Le,Ee,!0),ke.deltaX=ke.deltaY=0,W&&W(ke))},qe=ke.onRelease=function(e){if(!ze(e,1)){T(ie?v:Re,p[1],Le,!0);var t=!isNaN(ke.y-ke.startY),n=ke.isDragging,o=n&&(Math.abs(ke.x-ke.startX)>3||Math.abs(ke.y-ke.startY)>3),a=I(e);!o&&t&&(ke._vx.reset(),ke._vy.reset(),w&&pe&&r.delayedCall(.08,function(){if(b()-Be>300&&!e.defaultPrevented)if(e.target.click)e.target.click();else if(Re.createEvent){var t=Re.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,i,1,a.screenX,a.screenY,a.clientX,a.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}})),ke.isDragging=ke.isGesturing=ke.isPressed=!1,_&&n&&!ie&&me.restart(!0),ye&&Ne(),H&&n&&H(ke),q&&q(ke,o)}},Ue=function(e){return e.touches&&e.touches.length>1&&(ke.isGesturing=!0)&&oe(e,ke.isDragging)},Ve=function(){return(ke.isGesturing=!1)||ae(ke)},Ge=function(e){if(!ze(e)){var t=Se(),r=Me();Fe((t-Pe)*fe,(r-Oe)*fe,1),Pe=t,Oe=r,_&&me.restart(!0)}},je=function(e){if(!ze(e)){e=I(e,w),se&&(be=!0);var t=(1===e.deltaMode?y:2===e.deltaMode?i.innerHeight:1)*P;Fe(e.deltaX*t,e.deltaY*t,0),_&&!ie&&me.restart(!0)}},Ke=function(e){if(!ze(e)){var t=e.clientX,r=e.clientY,n=t-ke.x,i=r-ke.y;ke.x=t,ke.y=r,xe=!0,_&&me.restart(!0),(n||i)&&He(n,i)}},Ze=function(e){ke.event=e,ee(ke)},$e=function(e){ke.event=e,te(ke)},Je=function(e){return ze(e)||I(e,w)&&ue(ke)};me=ke._dc=r.delayedCall(E||.25,function(){ke._vx.reset(),ke._vy.reset(),me.pause(),_&&_(ke)}).pause(),ke.deltaX=ke.deltaY=0,ke._vx=Y(0,50,!0),ke._vy=Y(0,50,!0),ke.scrollX=Se,ke.scrollY=Me,ke.isDragging=ke.isGesturing=ke.isPressed=!1,h(this),ke.enable=function(e){return ke.isEnabled||(C(De?Re:v,"scroll",M),g.indexOf("scroll")>=0&&C(De?Re:v,"scroll",Ge,Ee,de),g.indexOf("wheel")>=0&&C(v,"wheel",je,Ee,de),(g.indexOf("touch")>=0&&l||g.indexOf("pointer")>=0)&&(C(v,p[0],We,Ee,de),C(Re,p[2],qe),C(Re,p[3],qe),pe&&C(v,"click",Xe,!0,!0),ue&&C(v,"click",Je),oe&&C(Re,"gesturestart",Ue),ae&&C(Re,"gestureend",Ve),ee&&C(v,c+"enter",Ze),te&&C(v,c+"leave",$e),re&&C(v,c+"move",Ke)),ke.isEnabled=!0,ke.isDragging=ke.isGesturing=ke.isPressed=xe=ye=!1,ke._vx.reset(),ke._vy.reset(),Pe=Se(),Oe=Me(),e&&e.type&&We(e),le&&le(ke)),ke},ke.disable=function(){ke.isEnabled&&(m.filter(function(e){return e!==ke&&k(e.target)}).length||T(De?Re:v,"scroll",M),ke.isPressed&&(ke._vx.reset(),ke._vy.reset(),T(ie?v:Re,p[1],Le,!0)),T(De?Re:v,"scroll",Ge,de),T(v,"wheel",je,de),T(v,p[0],We,de),T(Re,p[2],qe),T(Re,p[3],qe),T(v,"click",Xe,!0),T(v,"click",Je),T(Re,"gesturestart",Ue),T(Re,"gestureend",Ve),T(v,c+"enter",Ze),T(v,c+"leave",$e),T(v,c+"move",Ke),ke.isEnabled=ke.isPressed=ke.isDragging=!1,ce&&ce(ke))},ke.kill=ke.revert=function(){ke.disable();var e=m.indexOf(ke);e>=0&&m.splice(e,1),d===ke&&(d=0)},m.push(ke),ie&&k(v)&&(d=ke),ke.enable(N)},f=e,(g=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&t(f.prototype,g),v&&t(f,v),e}();N.version="3.12.7",N.create=function(e){return new N(e)},N.register=z,N.getAll=function(){return m.slice()},N.getById=function(e){return m.filter(function(t){return t.vars.id===e})[0]},g()&&r.registerPlugin(N);
/*!
   * ScrollTrigger 3.12.7
   * https://gsap.com
   *
   * @license Copyright 2008-2025, GreenSock. All rights reserved.
   * Subject to the terms at https://gsap.com/standard-license or for
   * Club GSAP members, the agreement issued with that membership.
   * @author: Jack Doyle, jack@greensock.com
  */
var F,H,L,W,q,U,V,G,j,K,Z,$,J,Q,ee,te,re,ne,ie,oe,ae,se,le,ce,ue,fe,de,pe,he,ge,ve,me,ye,xe,be,we,_e,ke,Ce=1,Te=Date.now,Ee=Te(),Se=0,Me=0,Pe=function(e,t,r){var n=We(e)&&("clamp("===e.substr(0,6)||e.indexOf("max")>-1);return r["_"+t+"Clamp"]=n,n?e.substr(6,e.length-7):e},Oe=function(e,t){return!t||We(e)&&"clamp("===e.substr(0,6)?e:"clamp("+e+")"},Ae=function e(){return Me&&requestAnimationFrame(e)},De=function(){return Q=1},Re=function(){return Q=0},Ye=function(e){return e},Ie=function(e){return Math.round(1e5*e)/1e5||0},Be=function(){return"undefined"!=typeof window},Xe=function(){return F||Be()&&(F=window.gsap)&&F.registerPlugin&&F},ze=function(e){return!!~V.indexOf(e)},Ne=function(e){return("Height"===e?ve:L["inner"+e])||q["client"+e]||U["client"+e]},Fe=function(e){return _(e,"getBoundingClientRect")||(ze(e)?function(){return Qt.width=L.innerWidth,Qt.height=ve,Qt}:function(){return dt(e)})},He=function(e,t){var r=t.s,n=t.d2,i=t.d,o=t.a;return Math.max(0,(r="scroll"+n)&&(o=_(e,r))?o()-Fe(e)()[i]:ze(e)?(q[r]||U[r])-Ne(n):e[r]-e["offset"+n])},Le=function(e,t){for(var r=0;r<ie.length;r+=3)(!t||~t.indexOf(ie[r+1]))&&e(ie[r],ie[r+1],ie[r+2])},We=function(e){return"string"==typeof e},qe=function(e){return"function"==typeof e},Ue=function(e){return"number"==typeof e},Ve=function(e){return"object"==typeof e},Ge=function(e,t,r){return e&&e.progress(t?0:1)&&r&&e.pause()},je=function(e,t){if(e.enabled){var r=e._ctx?e._ctx.add(function(){return t(e)}):t(e);r&&r.totalTime&&(e.callbackAnimation=r)}},Ke=Math.abs,Ze="left",$e="right",Je="bottom",Qe="width",et="height",tt="Right",rt="Left",nt="Top",it="Bottom",ot="padding",at="margin",st="Width",lt="Height",ct="px",ut=function(e){return L.getComputedStyle(e)},ft=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},dt=function(e,t){var r=t&&"matrix(1, 0, 0, 1, 0, 0)"!==ut(e)[ee]&&F.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=e.getBoundingClientRect();return r&&r.progress(0).kill(),n},pt=function(e,t){var r=t.d2;return e["offset"+r]||e["client"+r]||0},ht=function(e){var t,r=[],n=e.labels,i=e.duration();for(t in n)r.push(n[t]/i);return r},gt=function(e){var t=F.utils.snap(e),r=Array.isArray(e)&&e.slice(0).sort(function(e,t){return e-t});return r?function(e,n,i){var o;if(void 0===i&&(i=.001),!n)return t(e);if(n>0){for(e-=i,o=0;o<r.length;o++)if(r[o]>=e)return r[o];return r[o-1]}for(o=r.length,e+=i;o--;)if(r[o]<=e)return r[o];return r[0]}:function(r,n,i){void 0===i&&(i=.001);var o=t(r);return!n||Math.abs(o-r)<i||o-r<0==n<0?o:t(n<0?r-e:r+e)}},vt=function(e,t,r,n){return r.split(",").forEach(function(r){return e(t,r,n)})},mt=function(e,t,r,n,i){return e.addEventListener(t,r,{passive:!n,capture:!!i})},yt=function(e,t,r,n){return e.removeEventListener(t,r,!!n)},xt=function(e,t,r){(r=r&&r.wheelHandler)&&(e(t,"wheel",r),e(t,"touchmove",r))},bt={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},wt={toggleActions:"play",anticipatePin:0},_t={top:0,left:0,center:.5,bottom:1,right:1},kt=function(e,t){if(We(e)){var r=e.indexOf("="),n=~r?+(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(n*=t/100),e=e.substr(0,r-1)),e=n+(e in _t?_t[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e},Ct=function(e,t,r,n,i,o,a,s){var l=i.startColor,c=i.endColor,u=i.fontSize,f=i.indent,d=i.fontWeight,p=W.createElement("div"),h=ze(r)||"fixed"===_(r,"pinType"),g=-1!==e.indexOf("scroller"),v=h?U:r,m=-1!==e.indexOf("start"),y=m?l:c,x="border-color:"+y+";font-size:"+u+";color:"+y+";font-weight:"+d+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return x+="position:"+((g||s)&&h?"fixed;":"absolute;"),(g||s||!h)&&(x+=(n===A?$e:Je)+":"+(o+parseFloat(f))+"px;"),a&&(x+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=m,p.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),p.style.cssText=x,p.innerText=t||0===t?e+"-"+t:e,v.children[0]?v.insertBefore(p,v.children[0]):v.appendChild(p),p._offset=p["offset"+n.op.d2],Tt(p,0,n,m),p},Tt=function(e,t,r,n){var i={display:"block"},o=r[n?"os2":"p2"],a=r[n?"p2":"os2"];e._isFlipped=n,i[r.a+"Percent"]=n?-100:0,i[r.a]=n?"1px":0,i["border"+o+st]=1,i["border"+a+st]=0,i[r.p]=t+"px",F.set(e,i)},Et=[],St={},Mt=function(){return Te()-Se>34&&(be||(be=requestAnimationFrame(Vt)))},Pt=function(){(!le||!le.isPressed||le.startX>U.clientWidth)&&(y.cache++,le?be||(be=requestAnimationFrame(Vt)):Vt(),Se||It("scrollStart"),Se=Te())},Ot=function(){fe=L.innerWidth,ue=L.innerHeight},At=function(e){y.cache++,(!0===e||!J&&!se&&!W.fullscreenElement&&!W.webkitFullscreenElement&&(!ce||fe!==L.innerWidth||Math.abs(L.innerHeight-ue)>.25*L.innerHeight))&&G.restart(!0)},Dt={},Rt=[],Yt=function e(){return yt(ar,"scrollEnd",e)||Wt(!0)},It=function(e){return Dt[e]&&Dt[e].map(function(e){return e()})||Rt},Bt=[],Xt=function(e){for(var t=0;t<Bt.length;t+=5)(!e||Bt[t+4]&&Bt[t+4].query===e)&&(Bt[t].style.cssText=Bt[t+1],Bt[t].getBBox&&Bt[t].setAttribute("transform",Bt[t+2]||""),Bt[t+3].uncache=1)},zt=function(e,t){var r;for(te=0;te<Et.length;te++)!(r=Et[te])||t&&r._ctx!==t||(e?r.kill(1):r.revert(!0,!0));me=!0,t&&Xt(t),t||It("revert")},Nt=function(e,t){y.cache++,(t||!we)&&y.forEach(function(e){return qe(e)&&e.cacheID++&&(e.rec=0)}),We(e)&&(L.history.scrollRestoration=he=e)},Ft=0,Ht=function(){U.appendChild(ge),ve=!le&&ge.offsetHeight||L.innerHeight,U.removeChild(ge)},Lt=function(e){return j(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(t){return t.style.display=e?"none":"block"})},Wt=function(e,t){if(q=W.documentElement,U=W.body,V=[L,W,q,U],!Se||e||me){Ht(),we=ar.isRefreshing=!0,y.forEach(function(e){return qe(e)&&++e.cacheID&&(e.rec=e())});var r=It("refreshInit");oe&&ar.sort(),t||zt(),y.forEach(function(e){qe(e)&&(e.smooth&&(e.target.style.scrollBehavior="auto"),e(0))}),Et.slice(0).forEach(function(e){return e.refresh()}),me=!1,Et.forEach(function(e){if(e._subPinOffset&&e.pin){var t=e.vars.horizontal?"offsetWidth":"offsetHeight",r=e.pin[t];e.revert(!0,1),e.adjustPinSpacing(e.pin[t]-r),e.refresh()}}),ye=1,Lt(!0),Et.forEach(function(e){var t=He(e.scroller,e._dir),r="max"===e.vars.end||e._endClamp&&e.end>t,n=e._startClamp&&e.start>=t;(r||n)&&e.setPositions(n?t-1:e.start,r?Math.max(n?t:e.start+1,t):e.end,!0)}),Lt(!1),ye=0,r.forEach(function(e){return e&&e.render&&e.render(-1)}),y.forEach(function(e){qe(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior="smooth"}),e.rec&&e(e.rec))}),Nt(he,1),G.pause(),Ft++,we=2,Vt(2),Et.forEach(function(e){return qe(e.vars.onRefresh)&&e.vars.onRefresh(e)}),we=ar.isRefreshing=!1,It("refresh")}else mt(ar,"scrollEnd",Yt)},qt=0,Ut=1,Vt=function(e){if(2===e||!we&&!me){ar.isUpdating=!0,ke&&ke.update(0);var t=Et.length,r=Te(),n=r-Ee>=50,i=t&&Et[0].scroll();if(Ut=qt>i?-1:1,we||(qt=i),n&&(Se&&!Q&&r-Se>200&&(Se=0,It("scrollEnd")),Z=Ee,Ee=r),Ut<0){for(te=t;te-- >0;)Et[te]&&Et[te].update(0,n);Ut=1}else for(te=0;te<t;te++)Et[te]&&Et[te].update(0,n);ar.isUpdating=!1}be=0},Gt=[Ze,"top",Je,$e,at+it,at+tt,at+nt,at+rt,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],jt=Gt.concat([Qe,et,"boxSizing","max"+st,"max"+lt,"position",at,ot,ot+nt,ot+tt,ot+it,ot+rt]),Kt=function(e,t,r,n){if(!e._gsap.swappedIn){for(var i,o=Gt.length,a=t.style,s=e.style;o--;)a[i=Gt[o]]=r[i];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),s[Je]=s[$e]="auto",a.flexBasis=r.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[Qe]=pt(e,O)+ct,a[et]=pt(e,A)+ct,a[ot]=s[at]=s.top=s[Ze]="0",$t(n),s[Qe]=s["max"+st]=r[Qe],s[et]=s["max"+lt]=r[et],s[ot]=r[ot],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}},Zt=/([A-Z])/g,$t=function(e){if(e){var t,r,n=e.t.style,i=e.length,o=0;for((e.t._gsap||F.core.getCache(e.t)).uncache=1;o<i;o+=2)r=e[o+1],t=e[o],r?n[t]=r:n[t]&&n.removeProperty(t.replace(Zt,"-$1").toLowerCase())}},Jt=function(e){for(var t=jt.length,r=e.style,n=[],i=0;i<t;i++)n.push(jt[i],r[jt[i]]);return n.t=e,n},Qt={left:0,top:0},er=function(e,t,r,n,i,o,a,s,l,c,u,f,d,p){qe(e)&&(e=e(s)),We(e)&&"max"===e.substr(0,3)&&(e=f+("="===e.charAt(4)?kt("0"+e.substr(3),r):0));var h,g,v,m=d?d.time():0;if(d&&d.seek(0),isNaN(e)||(e=+e),Ue(e))d&&(e=F.utils.mapRange(d.scrollTrigger.start,d.scrollTrigger.end,0,f,e)),a&&Tt(a,r,n,!0);else{qe(t)&&(t=t(s));var y,x,b,w,_=(e||"0").split(" ");v=D(t,s)||U,(y=dt(v)||{})&&(y.left||y.top)||"none"!==ut(v).display||(w=v.style.display,v.style.display="block",y=dt(v),w?v.style.display=w:v.style.removeProperty("display")),x=kt(_[0],y[n.d]),b=kt(_[1]||"0",r),e=y[n.p]-l[n.p]-c+x+i-b,a&&Tt(a,b,n,r-b<20||a._isStart&&b>20),r-=r-b}if(p&&(s[p]=e||-.001,e<0&&(e=0)),o){var k=e+r,C=o._isStart;h="scroll"+n.d2,Tt(o,k,n,C&&k>20||!C&&(u?Math.max(U[h],q[h]):o.parentNode[h])<=k+1),u&&(l=dt(a),u&&(o.style[n.op.p]=l[n.op.p]-n.op.m-o._offset+ct))}return d&&v&&(h=dt(v),d.seek(f),g=dt(v),d._caScrollDist=h[n.p]-g[n.p],e=e/d._caScrollDist*f),d&&d.seek(m),d?e:Math.round(e)},tr=/(webkit|moz|length|cssText|inset)/i,rr=function(e,t,r,n){if(e.parentNode!==t){var i,o,a=e.style;if(t===U){for(i in e._stOrig=a.cssText,o=ut(e))+i||tr.test(i)||!o[i]||"string"!=typeof a[i]||"0"===i||(a[i]=o[i]);a.top=r,a.left=n}else a.cssText=e._stOrig;F.core.getCache(e).uncache=1,t.appendChild(e)}},nr=function(e,t,r){var n=t,i=n;return function(t){var o=Math.round(e());return o!==n&&o!==i&&Math.abs(o-n)>3&&Math.abs(o-i)>3&&(t=o,r&&r()),i=n,n=Math.round(t)}},ir=function(e,t,r){var n={};n[t.p]="+="+r,F.set(e,n)},or=function(e,t){var r=R(e,t),n="_scroll"+t.p2,i=function t(i,o,a,s,l){var c=t.tween,u=o.onComplete,f={};a=a||r();var d=nr(r,a,function(){c.kill(),t.tween=0});return l=s&&l||0,s=s||i-a,c&&c.kill(),o[n]=i,o.inherit=!1,o.modifiers=f,f[n]=function(){return d(a+s*c.ratio+l*c.ratio*c.ratio)},o.onUpdate=function(){y.cache++,t.tween&&Vt()},o.onComplete=function(){t.tween=0,u&&u.call(c)},c=t.tween=F.to(e,o)};return e[n]=r,r.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},mt(e,"wheel",r.wheelHandler),ar.isTouch&&mt(e,"touchmove",r.wheelHandler),i},ar=function(){function e(t,r){H||e.register(F),pe(this),this.init(t,r)}return e.prototype.init=function(t,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Me){var n,i,o,a,s,l,c,u,f,d,p,h,g,v,m,b,w,k,C,T,E,S,M,P,Y,I,B,X,z,N,H,V,G,$,ee,re,ne,ie,se,le,ce,ue,fe=t=ft(We(t)||Ue(t)||t.nodeType?{trigger:t}:t,wt),de=fe.onUpdate,pe=fe.toggleClass,he=fe.id,ge=fe.onToggle,ve=fe.onRefresh,me=fe.scrub,be=fe.trigger,Ee=fe.pin,Ae=fe.pinSpacing,De=fe.invalidateOnRefresh,Re=fe.anticipatePin,Be=fe.onScrubComplete,Xe=fe.onSnapComplete,Le=fe.once,Ze=fe.snap,$e=fe.pinReparent,Je=fe.pinSpacer,vt=fe.containerAnimation,xt=fe.fastScrollEnd,_t=fe.preventOverlaps,Tt=t.horizontal||t.containerAnimation&&!1!==t.horizontal?O:A,Mt=!me&&0!==me,Ot=D(t.scroller||L),Dt=F.core.getCache(Ot),Rt=ze(Ot),It="fixed"===("pinType"in t?t.pinType:_(Ot,"pinType")||Rt&&"fixed"),Bt=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],Xt=Mt&&t.toggleActions.split(" "),zt="markers"in t?t.markers:wt.markers,Nt=Rt?0:parseFloat(ut(Ot)["border"+Tt.p2+st])||0,Ht=this,Lt=t.onRefreshInit&&function(){return t.onRefreshInit(Ht)},qt=function(e,t,r){var n=r.d,i=r.d2,o=r.a;return(o=_(e,"getBoundingClientRect"))?function(){return o()[n]}:function(){return(t?Ne(i):e["client"+i])||0}}(Ot,Rt,Tt),Vt=function(e,t){return!t||~x.indexOf(e)?Fe(e):function(){return Qt}}(Ot,Rt),Gt=0,jt=0,Zt=0,tr=R(Ot,Tt);if(Ht._startClamp=Ht._endClamp=!1,Ht._dir=Tt,Re*=45,Ht.scroller=Ot,Ht.scroll=vt?vt.time.bind(vt):tr,a=tr(),Ht.vars=t,r=r||t.animation,"refreshPriority"in t&&(oe=1,-9999===t.refreshPriority&&(ke=Ht)),Dt.tweenScroll=Dt.tweenScroll||{top:or(Ot,A),left:or(Ot,O)},Ht.tweenTo=n=Dt.tweenScroll[Tt.p],Ht.scrubDuration=function(e){(G=Ue(e)&&e)?V?V.duration(e):V=F.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:G,paused:!0,onComplete:function(){return Be&&Be(Ht)}}):(V&&V.progress(1).kill(),V=0)},r&&(r.vars.lazy=!1,r._initted&&!Ht.isReverted||!1!==r.vars.immediateRender&&!1!==t.immediateRender&&r.duration()&&r.render(0,!0,!0),Ht.animation=r.pause(),r.scrollTrigger=Ht,Ht.scrubDuration(me),N=0,he||(he=r.vars.id)),Ze&&(Ve(Ze)&&!Ze.push||(Ze={snapTo:Ze}),"scrollBehavior"in U.style&&F.set(Rt?[U,q]:Ot,{scrollBehavior:"auto"}),y.forEach(function(e){return qe(e)&&e.target===(Rt?W.scrollingElement||q:Ot)&&(e.smooth=!1)}),o=qe(Ze.snapTo)?Ze.snapTo:"labels"===Ze.snapTo?function(e){return function(t){return F.utils.snap(ht(e),t)}}(r):"labelsDirectional"===Ze.snapTo?(le=r,function(e,t){return gt(ht(le))(e,t.direction)}):!1!==Ze.directional?function(e,t){return gt(Ze.snapTo)(e,Te()-jt<500?0:t.direction)}:F.utils.snap(Ze.snapTo),$=Ze.duration||{min:.1,max:2},$=Ve($)?K($.min,$.max):K($,$),ee=F.delayedCall(Ze.delay||G/2||.1,function(){var e=tr(),t=Te()-jt<500,i=n.tween;if(!(t||Math.abs(Ht.getVelocity())<10)||i||Q||Gt===e)Ht.isActive&&Gt!==e&&ee.restart(!0);else{var a,s,u=(e-l)/v,f=r&&!Mt?r.totalProgress():u,d=t?0:(f-H)/(Te()-Z)*1e3||0,p=F.utils.clamp(-u,1-u,Ke(d/2)*d/.185),h=u+(!1===Ze.inertia?0:p),g=Ze,m=g.onStart,y=g.onInterrupt,x=g.onComplete;if(a=o(h,Ht),Ue(a)||(a=h),s=Math.max(0,Math.round(l+a*v)),e<=c&&e>=l&&s!==e){if(i&&!i._initted&&i.data<=Ke(s-e))return;!1===Ze.inertia&&(p=a-u),n(s,{duration:$(Ke(.185*Math.max(Ke(h-f),Ke(a-f))/d/.05||0)),ease:Ze.ease||"power3",data:Ke(s-e),onInterrupt:function(){return ee.restart(!0)&&y&&y(Ht)},onComplete:function(){Ht.update(),Gt=tr(),r&&!Mt&&(V?V.resetTo("totalProgress",a,r._tTime/r._tDur):r.progress(a)),N=H=r&&!Mt?r.totalProgress():Ht.progress,Xe&&Xe(Ht),x&&x(Ht)}},e,p*v,s-e-p*v),m&&m(Ht,n.tween)}}}).pause()),he&&(St[he]=Ht),(se=(be=Ht.trigger=D(be||!0!==Ee&&Ee))&&be._gsap&&be._gsap.stRevert)&&(se=se(Ht)),Ee=!0===Ee?be:D(Ee),We(pe)&&(pe={targets:be,className:pe}),Ee&&(!1===Ae||Ae===at||(Ae=!(!Ae&&Ee.parentNode&&Ee.parentNode.style&&"flex"===ut(Ee.parentNode).display)&&ot),Ht.pin=Ee,(i=F.core.getCache(Ee)).spacer?m=i.pinState:(Je&&((Je=D(Je))&&!Je.nodeType&&(Je=Je.current||Je.nativeElement),i.spacerIsNative=!!Je,Je&&(i.spacerState=Jt(Je))),i.spacer=k=Je||W.createElement("div"),k.classList.add("pin-spacer"),he&&k.classList.add("pin-spacer-"+he),i.pinState=m=Jt(Ee)),!1!==t.force3D&&F.set(Ee,{force3D:!0}),Ht.spacer=k=i.spacer,z=ut(Ee),P=z[Ae+Tt.os2],T=F.getProperty(Ee),E=F.quickSetter(Ee,Tt.a,ct),Kt(Ee,k,z),w=Jt(Ee)),zt){h=Ve(zt)?ft(zt,bt):bt,d=Ct("scroller-start",he,Ot,Tt,h,0),p=Ct("scroller-end",he,Ot,Tt,h,0,d),C=d["offset"+Tt.op.d2];var nr=D(_(Ot,"content")||Ot);u=this.markerStart=Ct("start",he,nr,Tt,h,C,0,vt),f=this.markerEnd=Ct("end",he,nr,Tt,h,C,0,vt),vt&&(ie=F.quickSetter([u,f],Tt.a,ct)),It||x.length&&!0===_(Ot,"fixedMarkers")||(ue=ut(ce=Rt?U:Ot).position,ce.style.position="absolute"===ue||"fixed"===ue?ue:"relative",F.set([d,p],{force3D:!0}),I=F.quickSetter(d,Tt.a,ct),X=F.quickSetter(p,Tt.a,ct))}if(vt){var ar=vt.vars.onUpdate,sr=vt.vars.onUpdateParams;vt.eventCallback("onUpdate",function(){Ht.update(0,0,1),ar&&ar.apply(vt,sr||[])})}if(Ht.previous=function(){return Et[Et.indexOf(Ht)-1]},Ht.next=function(){return Et[Et.indexOf(Ht)+1]},Ht.revert=function(e,t){if(!t)return Ht.kill(!0);var n=!1!==e||!Ht.enabled,i=J;n!==Ht.isReverted&&(n&&(re=Math.max(tr(),Ht.scroll.rec||0),Zt=Ht.progress,ne=r&&r.progress()),u&&[u,f,d,p].forEach(function(e){return e.style.display=n?"none":"block"}),n&&(J=Ht,Ht.update(n)),!Ee||$e&&Ht.isActive||(n?function(e,t,r){$t(r);var n=e._gsap;if(n.spacerIsNative)$t(n.spacerState);else if(e._gsap.swappedIn){var i=t.parentNode;i&&(i.insertBefore(e,t),i.removeChild(t))}e._gsap.swappedIn=!1}(Ee,k,m):Kt(Ee,k,ut(Ee),Y)),n||Ht.update(n),J=i,Ht.isReverted=n)},Ht.refresh=function(i,o,h,y){if(!J&&Ht.enabled||o)if(Ee&&i&&Se)mt(e,"scrollEnd",Yt);else{!we&&Lt&&Lt(Ht),J=Ht,n.tween&&!h&&(n.tween.kill(),n.tween=0),V&&V.pause(),De&&r&&r.revert({kill:!1}).invalidate(),Ht.isReverted||Ht.revert(!0,!0),Ht._subPinOffset=!1;var x,_,C,E,P,I,X,z,N,H,L,G,j,K=qt(),Z=Vt(),$=vt?vt.duration():He(Ot,Tt),Q=v<=.01,te=0,ie=y||0,oe=Ve(h)?h.end:t.end,se=t.endTrigger||be,le=Ve(h)?h.start:t.start||(0!==t.start&&be?Ee?"0 0":"0 100%":0),ce=Ht.pinnedContainer=t.pinnedContainer&&D(t.pinnedContainer,Ht),ue=be&&Math.max(0,Et.indexOf(Ht))||0,fe=ue;for(zt&&Ve(h)&&(G=F.getProperty(d,Tt.p),j=F.getProperty(p,Tt.p));fe-- >0;)(I=Et[fe]).end||I.refresh(0,1)||(J=Ht),!(X=I.pin)||X!==be&&X!==Ee&&X!==ce||I.isReverted||(H||(H=[]),H.unshift(I),I.revert(!0,!0)),I!==Et[fe]&&(ue--,fe--);for(qe(le)&&(le=le(Ht)),le=Pe(le,"start",Ht),l=er(le,be,K,Tt,tr(),u,d,Ht,Z,Nt,It,$,vt,Ht._startClamp&&"_startClamp")||(Ee?-.001:0),qe(oe)&&(oe=oe(Ht)),We(oe)&&!oe.indexOf("+=")&&(~oe.indexOf(" ")?oe=(We(le)?le.split(" ")[0]:"")+oe:(te=kt(oe.substr(2),K),oe=We(le)?le:(vt?F.utils.mapRange(0,vt.duration(),vt.scrollTrigger.start,vt.scrollTrigger.end,l):l)+te,se=be)),oe=Pe(oe,"end",Ht),c=Math.max(l,er(oe||(se?"100% 0":$),se,K,Tt,tr()+te,f,p,Ht,Z,Nt,It,$,vt,Ht._endClamp&&"_endClamp"))||-.001,te=0,fe=ue;fe--;)(X=(I=Et[fe]).pin)&&I.start-I._pinPush<=l&&!vt&&I.end>0&&(x=I.end-(Ht._startClamp?Math.max(0,I.start):I.start),(X===be&&I.start-I._pinPush<l||X===ce)&&isNaN(le)&&(te+=x*(1-I.progress)),X===Ee&&(ie+=x));if(l+=te,c+=te,Ht._startClamp&&(Ht._startClamp+=te),Ht._endClamp&&!we&&(Ht._endClamp=c||-.001,c=Math.min(c,He(Ot,Tt))),v=c-l||(l-=.01)&&.001,Q&&(Zt=F.utils.clamp(0,1,F.utils.normalize(l,c,re))),Ht._pinPush=ie,u&&te&&((x={})[Tt.a]="+="+te,ce&&(x[Tt.p]="-="+tr()),F.set([u,f],x)),!Ee||ye&&Ht.end>=He(Ot,Tt)){if(be&&tr()&&!vt)for(_=be.parentNode;_&&_!==U;)_._pinOffset&&(l-=_._pinOffset,c-=_._pinOffset),_=_.parentNode}else x=ut(Ee),E=Tt===A,C=tr(),S=parseFloat(T(Tt.a))+ie,!$&&c>1&&(L={style:L=(Rt?W.scrollingElement||q:Ot).style,value:L["overflow"+Tt.a.toUpperCase()]},Rt&&"scroll"!==ut(U)["overflow"+Tt.a.toUpperCase()]&&(L.style["overflow"+Tt.a.toUpperCase()]="scroll")),Kt(Ee,k,x),w=Jt(Ee),_=dt(Ee,!0),z=It&&R(Ot,E?O:A)(),Ae?((Y=[Ae+Tt.os2,v+ie+ct]).t=k,(fe=Ae===ot?pt(Ee,Tt)+v+ie:0)&&(Y.push(Tt.d,fe+ct),"auto"!==k.style.flexBasis&&(k.style.flexBasis=fe+ct)),$t(Y),ce&&Et.forEach(function(e){e.pin===ce&&!1!==e.vars.pinSpacing&&(e._subPinOffset=!0)}),It&&tr(re)):(fe=pt(Ee,Tt))&&"auto"!==k.style.flexBasis&&(k.style.flexBasis=fe+ct),It&&((P={top:_.top+(E?C-l:z)+ct,left:_.left+(E?z:C-l)+ct,boxSizing:"border-box",position:"fixed"})[Qe]=P["max"+st]=Math.ceil(_.width)+ct,P[et]=P["max"+lt]=Math.ceil(_.height)+ct,P[at]=P[at+nt]=P[at+tt]=P[at+it]=P[at+rt]="0",P[ot]=x[ot],P[ot+nt]=x[ot+nt],P[ot+tt]=x[ot+tt],P[ot+it]=x[ot+it],P[ot+rt]=x[ot+rt],b=function(e,t,r){for(var n,i=[],o=e.length,a=r?8:0;a<o;a+=2)n=e[a],i.push(n,n in t?t[n]:e[a+1]);return i.t=e.t,i}(m,P,$e),we&&tr(0)),r?(N=r._initted,ae(1),r.render(r.duration(),!0,!0),M=T(Tt.a)-S+v+ie,B=Math.abs(v-M)>1,It&&B&&b.splice(b.length-2,2),r.render(0,!0,!0),N||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),ae(0)):M=v,L&&(L.value?L.style["overflow"+Tt.a.toUpperCase()]=L.value:L.style.removeProperty("overflow-"+Tt.a));H&&H.forEach(function(e){return e.revert(!1,!0)}),Ht.start=l,Ht.end=c,a=s=we?re:tr(),vt||we||(a<re&&tr(re),Ht.scroll.rec=0),Ht.revert(!1,!0),jt=Te(),ee&&(Gt=-1,ee.restart(!0)),J=0,r&&Mt&&(r._initted||ne)&&r.progress()!==ne&&r.progress(ne||0,!0).render(r.time(),!0,!0),(Q||Zt!==Ht.progress||vt||De||r&&!r._initted)&&(r&&!Mt&&r.totalProgress(vt&&l<-.001&&!Zt?F.utils.normalize(l,c,0):Zt,!0),Ht.progress=Q||(a-l)/v===Zt?0:Zt),Ee&&Ae&&(k._pinOffset=Math.round(Ht.progress*M)),V&&V.invalidate(),isNaN(G)||(G-=F.getProperty(d,Tt.p),j-=F.getProperty(p,Tt.p),ir(d,Tt,G),ir(u,Tt,G-(y||0)),ir(p,Tt,j),ir(f,Tt,j-(y||0))),Q&&!we&&Ht.update(),!ve||we||g||(g=!0,ve(Ht),g=!1)}},Ht.getVelocity=function(){return(tr()-s)/(Te()-Z)*1e3||0},Ht.endAnimation=function(){Ge(Ht.callbackAnimation),r&&(V?V.progress(1):r.paused()?Mt||Ge(r,Ht.direction<0,1):Ge(r,r.reversed()))},Ht.labelToScroll=function(e){return r&&r.labels&&(l||Ht.refresh()||l)+r.labels[e]/r.duration()*v||0},Ht.getTrailing=function(e){var t=Et.indexOf(Ht),r=Ht.direction>0?Et.slice(0,t).reverse():Et.slice(t+1);return(We(e)?r.filter(function(t){return t.vars.preventOverlaps===e}):r).filter(function(e){return Ht.direction>0?e.end<=l:e.start>=c})},Ht.update=function(e,t,i){if(!vt||i||e){var o,u,f,p,h,g,m,y=!0===we?re:Ht.scroll(),x=e?0:(y-l)/v,_=x<0?0:x>1?1:x||0,C=Ht.progress;if(t&&(s=a,a=vt?tr():y,Ze&&(H=N,N=r&&!Mt?r.totalProgress():_)),Re&&Ee&&!J&&!Ce&&Se&&(!_&&l<y+(y-s)/(Te()-Z)*Re?_=1e-4:1===_&&c>y+(y-s)/(Te()-Z)*Re&&(_=.9999)),_!==C&&Ht.enabled){if(p=(h=(o=Ht.isActive=!!_&&_<1)!==(!!C&&C<1))||!!_!=!!C,Ht.direction=_>C?1:-1,Ht.progress=_,p&&!J&&(u=_&&!C?0:1===_?1:1===C?2:3,Mt&&(f=!h&&"none"!==Xt[u+1]&&Xt[u+1]||Xt[u],m=r&&("complete"===f||"reset"===f||f in r))),_t&&(h||m)&&(m||me||!r)&&(qe(_t)?_t(Ht):Ht.getTrailing(_t).forEach(function(e){return e.endAnimation()})),Mt||(!V||J||Ce?r&&r.totalProgress(_,!(!J||!jt&&!e)):(V._dp._time-V._start!==V._time&&V.render(V._dp._time-V._start),V.resetTo?V.resetTo("totalProgress",_,r._tTime/r._tDur):(V.vars.totalProgress=_,V.invalidate().restart()))),Ee)if(e&&Ae&&(k.style[Ae+Tt.os2]=P),It){if(p){if(g=!e&&_>C&&c+1>y&&y+1>=He(Ot,Tt),$e)if(e||!o&&!g)rr(Ee,k);else{var T=dt(Ee,!0),O=y-l;rr(Ee,U,T.top+(Tt===A?O:0)+ct,T.left+(Tt===A?0:O)+ct)}$t(o||g?b:w),B&&_<1&&o||E(S+(1!==_||g?0:M))}}else E(Ie(S+M*_));Ze&&!n.tween&&!J&&!Ce&&ee.restart(!0),pe&&(h||Le&&_&&(_<1||!xe))&&j(pe.targets).forEach(function(e){return e.classList[o||Le?"add":"remove"](pe.className)}),de&&!Mt&&!e&&de(Ht),p&&!J?(Mt&&(m&&("complete"===f?r.pause().totalProgress(1):"reset"===f?r.restart(!0).pause():"restart"===f?r.restart(!0):r[f]()),de&&de(Ht)),!h&&xe||(ge&&h&&je(Ht,ge),Bt[u]&&je(Ht,Bt[u]),Le&&(1===_?Ht.kill(!1,1):Bt[u]=0),h||Bt[u=1===_?1:3]&&je(Ht,Bt[u])),xt&&!o&&Math.abs(Ht.getVelocity())>(Ue(xt)?xt:2500)&&(Ge(Ht.callbackAnimation),V?V.progress(1):Ge(r,"reverse"===f?1:!_,1))):Mt&&de&&!J&&de(Ht)}if(X){var D=vt?y/vt.duration()*(vt._caScrollDist||0):y;I(D+(d._isFlipped?1:0)),X(D)}ie&&ie(-y/vt.duration()*(vt._caScrollDist||0))}},Ht.enable=function(t,r){Ht.enabled||(Ht.enabled=!0,mt(Ot,"resize",At),Rt||mt(Ot,"scroll",Pt),Lt&&mt(e,"refreshInit",Lt),!1!==t&&(Ht.progress=Zt=0,a=s=Gt=tr()),!1!==r&&Ht.refresh())},Ht.getTween=function(e){return e&&n?n.tween:V},Ht.setPositions=function(e,t,r,n){if(vt){var i=vt.scrollTrigger,o=vt.duration(),a=i.end-i.start;e=i.start+a*e/o,t=i.start+a*t/o}Ht.refresh(!1,!1,{start:Oe(e,r&&!!Ht._startClamp),end:Oe(t,r&&!!Ht._endClamp)},n),Ht.update()},Ht.adjustPinSpacing=function(e){if(Y&&e){var t=Y.indexOf(Tt.d)+1;Y[t]=parseFloat(Y[t])+e+ct,Y[1]=parseFloat(Y[1])+e+ct,$t(Y)}},Ht.disable=function(t,r){if(Ht.enabled&&(!1!==t&&Ht.revert(!0,!0),Ht.enabled=Ht.isActive=!1,r||V&&V.pause(),re=0,i&&(i.uncache=1),Lt&&yt(e,"refreshInit",Lt),ee&&(ee.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!Rt)){for(var o=Et.length;o--;)if(Et[o].scroller===Ot&&Et[o]!==Ht)return;yt(Ot,"resize",At),Rt||yt(Ot,"scroll",Pt)}},Ht.kill=function(e,n){Ht.disable(e,n),V&&!n&&V.kill(),he&&delete St[he];var o=Et.indexOf(Ht);o>=0&&Et.splice(o,1),o===te&&Ut>0&&te--,o=0,Et.forEach(function(e){return e.scroller===Ht.scroller&&(o=1)}),o||we||(Ht.scroll.rec=0),r&&(r.scrollTrigger=null,e&&r.revert({kill:!1}),n||r.kill()),u&&[u,f,d,p].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),ke===Ht&&(ke=0),Ee&&(i&&(i.uncache=1),o=0,Et.forEach(function(e){return e.pin===Ee&&o++}),o||(i.spacer=0)),t.onKill&&t.onKill(Ht)},Et.push(Ht),Ht.enable(!1,!1),se&&se(Ht),r&&r.add&&!v){var lr=Ht.update;Ht.update=function(){Ht.update=lr,y.cache++,l||c||Ht.refresh()},F.delayedCall(.01,Ht.update),v=.01,l=c=0}else Ht.refresh();Ee&&function(){if(_e!==Ft){var e=_e=Ft;requestAnimationFrame(function(){return e===Ft&&Wt(!0)})}}()}else this.update=this.refresh=this.kill=Ye},e.register=function(t){return H||(F=t||Xe(),Be()&&window.document&&e.enable(),H=Me),H},e.defaults=function(e){if(e)for(var t in e)wt[t]=e[t];return wt},e.disable=function(e,t){Me=0,Et.forEach(function(r){return r[t?"kill":"disable"](e)}),yt(L,"wheel",Pt),yt(W,"scroll",Pt),clearInterval($),yt(W,"touchcancel",Ye),yt(U,"touchstart",Ye),vt(yt,W,"pointerdown,touchstart,mousedown",De),vt(yt,W,"pointerup,touchend,mouseup",Re),G.kill(),Le(yt);for(var r=0;r<y.length;r+=3)xt(yt,y[r],y[r+1]),xt(yt,y[r],y[r+2])},e.enable=function(){if(L=window,W=document,q=W.documentElement,U=W.body,F&&(j=F.utils.toArray,K=F.utils.clamp,pe=F.core.context||Ye,ae=F.core.suppressOverwrites||Ye,he=L.history.scrollRestoration||"auto",qt=L.pageYOffset||0,F.core.globals("ScrollTrigger",e),U)){Me=1,(ge=document.createElement("div")).style.height="100vh",ge.style.position="absolute",Ht(),Ae(),N.register(F),e.isTouch=N.isTouch,de=N.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),ce=1===N.isTouch,mt(L,"wheel",Pt),V=[L,W,q,U],F.matchMedia&&(e.matchMedia=function(e){var t,r=F.matchMedia();for(t in e)r.add(t,e[t]);return r},F.addEventListener("matchMediaInit",function(){return zt()}),F.addEventListener("matchMediaRevert",function(){return Xt()}),F.addEventListener("matchMedia",function(){Wt(0,1),It("matchMedia")}),F.matchMedia().add("(orientation: portrait)",function(){return Ot(),Ot})),Ot(),mt(W,"scroll",Pt);var t,r,n=U.hasAttribute("style"),i=U.style,o=i.borderTopStyle,a=F.core.Animation.prototype;for(a.revert||Object.defineProperty(a,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",t=dt(U),A.m=Math.round(t.top+A.sc())||0,O.m=Math.round(t.left+O.sc())||0,o?i.borderTopStyle=o:i.removeProperty("border-top-style"),n||(U.setAttribute("style",""),U.removeAttribute("style")),$=setInterval(Mt,250),F.delayedCall(.5,function(){return Ce=0}),mt(W,"touchcancel",Ye),mt(U,"touchstart",Ye),vt(mt,W,"pointerdown,touchstart,mousedown",De),vt(mt,W,"pointerup,touchend,mouseup",Re),ee=F.utils.checkPrefix("transform"),jt.push(ee),H=Te(),G=F.delayedCall(.2,Wt).pause(),ie=[W,"visibilitychange",function(){var e=L.innerWidth,t=L.innerHeight;W.hidden?(re=e,ne=t):re===e&&ne===t||At()},W,"DOMContentLoaded",Wt,L,"load",Wt,L,"resize",At],Le(mt),Et.forEach(function(e){return e.enable(0,1)}),r=0;r<y.length;r+=3)xt(yt,y[r],y[r+1]),xt(yt,y[r],y[r+2])}},e.config=function(t){"limitCallbacks"in t&&(xe=!!t.limitCallbacks);var r=t.syncInterval;r&&clearInterval($)||($=r)&&setInterval(Mt,r),"ignoreMobileResize"in t&&(ce=1===e.isTouch&&t.ignoreMobileResize),"autoRefreshEvents"in t&&(Le(yt)||Le(mt,t.autoRefreshEvents||"none"),se=-1===(t.autoRefreshEvents+"").indexOf("resize"))},e.scrollerProxy=function(e,t){var r=D(e),n=y.indexOf(r),i=ze(r);~n&&y.splice(n,i?6:2),t&&(i?x.unshift(L,t,U,t,q,t):x.unshift(r,t))},e.clearMatchMedia=function(e){Et.forEach(function(t){return t._ctx&&t._ctx.query===e&&t._ctx.kill(!0,!0)})},e.isInViewport=function(e,t,r){var n=(We(e)?D(e):e).getBoundingClientRect(),i=n[r?Qe:et]*t||0;return r?n.right-i>0&&n.left+i<L.innerWidth:n.bottom-i>0&&n.top+i<L.innerHeight},e.positionInViewport=function(e,t,r){We(e)&&(e=D(e));var n=e.getBoundingClientRect(),i=n[r?Qe:et],o=null==t?i/2:t in _t?_t[t]*i:~t.indexOf("%")?parseFloat(t)*i/100:parseFloat(t)||0;return r?(n.left+o)/L.innerWidth:(n.top+o)/L.innerHeight},e.killAll=function(e){if(Et.slice(0).forEach(function(e){return"ScrollSmoother"!==e.vars.id&&e.kill()}),!0!==e){var t=Dt.killAll||[];Dt={},t.forEach(function(e){return e()})}},e}();ar.version="3.12.7",ar.saveStyles=function(e){return e?j(e).forEach(function(e){if(e&&e.style){var t=Bt.indexOf(e);t>=0&&Bt.splice(t,5),Bt.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),F.core.getCache(e),pe())}}):Bt},ar.revert=function(e,t){return zt(!e,t)},ar.create=function(e,t){return new ar(e,t)},ar.refresh=function(e){return e?At(!0):(H||ar.register())&&Wt(!0)},ar.update=function(e){return++y.cache&&Vt(!0===e?2:0)},ar.clearScrollMemory=Nt,ar.maxScroll=function(e,t){return He(e,t?O:A)},ar.getScrollFunc=function(e,t){return R(D(e),t?O:A)},ar.getById=function(e){return St[e]},ar.getAll=function(){return Et.filter(function(e){return"ScrollSmoother"!==e.vars.id})},ar.isScrolling=function(){return!!Se},ar.snapDirectional=gt,ar.addEventListener=function(e,t){var r=Dt[e]||(Dt[e]=[]);~r.indexOf(t)||r.push(t)},ar.removeEventListener=function(e,t){var r=Dt[e],n=r&&r.indexOf(t);n>=0&&r.splice(n,1)},ar.batch=function(e,t){var r,n=[],i={},o=t.interval||.016,a=t.batchMax||1e9,s=function(e,t){var r=[],n=[],i=F.delayedCall(o,function(){t(r,n),r=[],n=[]}).pause();return function(e){r.length||i.restart(!0),r.push(e.trigger),n.push(e),a<=r.length&&i.progress(1)}};for(r in t)i[r]="on"===r.substr(0,2)&&qe(t[r])&&"onRefreshInit"!==r?s(0,t[r]):t[r];return qe(a)&&(a=a(),mt(ar,"refresh",function(){return a=t.batchMax()})),j(e).forEach(function(e){var t={};for(r in i)t[r]=i[r];t.trigger=e,n.push(ar.create(t))}),n};var sr,lr=function(e,t,r,n){return t>n?e(n):t<0&&e(0),r>n?(n-t)/(r-t):r<0?t/(t-r):1},cr=function e(t,r){!0===r?t.style.removeProperty("touch-action"):t.style.touchAction=!0===r?"auto":r?"pan-"+r+(N.isTouch?" pinch-zoom":""):"none",t===q&&e(U,r)},ur={auto:1,scroll:1},fr=function(e){var t,r=e.event,n=e.target,i=e.axis,o=(r.changedTouches?r.changedTouches[0]:r).target,a=o._gsap||F.core.getCache(o),s=Te();if(!a._isScrollT||s-a._isScrollT>2e3){for(;o&&o!==U&&(o.scrollHeight<=o.clientHeight&&o.scrollWidth<=o.clientWidth||!ur[(t=ut(o)).overflowY]&&!ur[t.overflowX]);)o=o.parentNode;a._isScroll=o&&o!==n&&!ze(o)&&(ur[(t=ut(o)).overflowY]||ur[t.overflowX]),a._isScrollT=s}(a._isScroll||"x"===i)&&(r.stopPropagation(),r._gsapAllow=!0)},dr=function(e,t,r,n){return N.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:n=n&&fr,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&mt(W,N.eventTypes[0],hr,!1,!0)},onDisable:function(){return yt(W,N.eventTypes[0],hr,!0)}})},pr=/(input|label|select|textarea)/i,hr=function(e){var t=pr.test(e.target.tagName);(t||sr)&&(e._gsapAllow=!0,sr=t)},gr=function(e){Ve(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 t,r,n,i,o,a,s,l,c=e,u=c.normalizeScrollX,f=c.momentum,d=c.allowNestedScroll,p=c.onRelease,h=D(e.target)||q,g=F.core.globals().ScrollSmoother,v=g&&g.get(),m=de&&(e.content&&D(e.content)||v&&!1!==e.content&&!v.smooth()&&v.content()),x=R(h,A),b=R(h,O),w=1,_=(N.isTouch&&L.visualViewport?L.visualViewport.scale*L.visualViewport.width:L.outerWidth)/L.innerWidth,k=0,C=qe(f)?function(){return f(t)}:function(){return f||2.8},T=dr(h,e.type,!0,d),E=function(){return i=!1},S=Ye,M=Ye,P=function(){r=He(h,A),M=K(de?1:0,r),u&&(S=K(0,He(h,O))),n=Ft},Y=function(){m._gsap.y=Ie(parseFloat(m._gsap.y)+x.offset)+"px",m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(m._gsap.y)+", 0, 1)",x.offset=x.cacheID=0},I=function(){P(),o.isActive()&&o.vars.scrollY>r&&(x()>r?o.progress(1)&&x(r):o.resetTo("scrollY",r))};return m&&F.set(m,{y:"+=0"}),e.ignoreCheck=function(e){return de&&"touchmove"===e.type&&function(){if(i){requestAnimationFrame(E);var e=Ie(t.deltaY/2),r=M(x.v-e);if(m&&r!==x.v+x.offset){x.offset=r-x.v;var n=Ie((parseFloat(m&&m._gsap.y)||0)-x.offset);m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+n+", 0, 1)",m._gsap.y=n+"px",x.cacheID=y.cache,Vt()}return!0}x.offset&&Y(),i=!0}()||w>1.05&&"touchstart"!==e.type||t.isGesturing||e.touches&&e.touches.length>1},e.onPress=function(){i=!1;var e=w;w=Ie((L.visualViewport&&L.visualViewport.scale||1)/_),o.pause(),e!==w&&cr(h,w>1.01||!u&&"x"),a=b(),s=x(),P(),n=Ft},e.onRelease=e.onGestureStart=function(e,t){if(x.offset&&Y(),t){y.cache++;var n,i,a=C();u&&(i=(n=b())+.05*a*-e.velocityX/.227,a*=lr(b,n,i,He(h,O)),o.vars.scrollX=S(i)),i=(n=x())+.05*a*-e.velocityY/.227,a*=lr(x,n,i,He(h,A)),o.vars.scrollY=M(i),o.invalidate().duration(a).play(.01),(de&&o.vars.scrollY>=r||n>=r-1)&&F.to({},{onUpdate:I,duration:a})}else l.restart(!0);p&&p(e)},e.onWheel=function(){o._ts&&o.pause(),Te()-k>1e3&&(n=0,k=Te())},e.onChange=function(e,t,r,i,o){if(Ft!==n&&P(),t&&u&&b(S(i[2]===t?a+(e.startX-e.x):b()+t-i[1])),r){x.offset&&Y();var l=o[2]===r,c=l?s+e.startY-e.y:x()+r-o[1],f=M(c);l&&c!==f&&(s+=f-c),x(f)}(r||t)&&Vt()},e.onEnable=function(){cr(h,!u&&"x"),ar.addEventListener("refresh",I),mt(L,"resize",I),x.smooth&&(x.target.style.scrollBehavior="auto",x.smooth=b.smooth=!1),T.enable()},e.onDisable=function(){cr(h,!0),yt(L,"resize",I),ar.removeEventListener("refresh",I),T.kill()},e.lockAxis=!1!==e.lockAxis,(t=new N(e)).iOS=de,de&&!x()&&x(1),de&&F.ticker.add(Ye),l=t._dc,o=F.to(t,{ease:"power4",paused:!0,inherit:!1,scrollX:u?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:nr(x,x(),function(){return o.pause()})},onUpdate:Vt,onComplete:l.vars.onComplete}),t};ar.sort=function(e){if(qe(e))return Et.sort(e);var t=L.pageYOffset||0;return ar.getAll().forEach(function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+L.innerHeight}),Et.sort(e||function(e,t){return-1e6*(e.vars.refreshPriority||0)+(e.vars.containerAnimation?1e6:e._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+-1e6*(t.vars.refreshPriority||0))})},ar.observe=function(e){return new N(e)},ar.normalizeScroll=function(e){if(void 0===e)return le;if(!0===e&&le)return le.enable();if(!1===e)return le&&le.kill(),void(le=e);var t=e instanceof N?e:gr(e);return le&&le.target===t.target&&le.kill(),ze(t.target)&&(le=t),t},ar.core={_getVelocityProp:Y,_inputObserver:dr,_scrollers:y,_proxies:x,bridge:{ss:function(){Se||It("scrollStart"),Se=Te()},ref:function(){return J}}},Xe()&&F.registerPlugin(ar),e.ScrollTrigger=ar,e.default=ar,"undefined"==typeof window||window!==e?Object.defineProperty(e,"__esModule",{value:!0}):delete window.default});