!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 n=0;n=Math.abs(n)?t:n}function h(){var e,t,n,r;(C=v.core.globals().ScrollTrigger)&&C.core&&(e=C.core,t=e.bridge||{},n=e._scrollers,r=e._proxies,n.push.apply(n,A),r.push.apply(r,R),A=n,R=r,Y=function(e,n){return t[e](n)})}function g(e){return(v=e||n())&&"undefined"!=typeof document&&document.body&&(y=window,b=(x=document).documentElement,w=x.body,S=[y,x,b,w],v.utils.clamp,M=v.core.context||function(){},k="onpointerenter"in w?"pointer":"mouse",_=B.isTouch=y.matchMedia&&y.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in y||0=t,i=Math.abs(n)>=t;$&&(r||i)&&$(ze,e,n,je,Ge),r&&(U&&0Math.abs(t)?"x":"y",Ie=!0),"y"!==Xe&&(je[2]+=e,ze._vx.update(e,!0)),"x"!==Xe&&(Ge[2]+=t,ze._vy.update(t,!0)),P?Oe=Oe||requestAnimationFrame(ye):ye()}function we(e){if(!me(e,1)){var t=(e=d(e,A)).clientX,r=e.clientY,i=t-ze.x,o=r-ze.y,a=ze.isDragging;ze.x=t,ze.y=r,(a||Math.abs(ze.startX-t)>=n||Math.abs(ze.startY-r)>=n)&&(L&&(Re=!0),a||(ze.isDragging=!0),be(i,o),a||F&&F(ze))}}function _e(e){return e.touches&&1=e)return n[o];return n[o-1]}for(o=n.length,e+=i;o--;)if(n[o]<=e)return n[o];return n[0]}:function(n,r,i){void 0===i&&(i=.001);var o=t(n);return!r||Math.abs(o-n)n&&(r*=t/100),e=e.substr(0,n-1)),e=r+(e in Xt?Xt[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e}function ge(e,t,n,i,o,a,s,l){var c=o.startColor,u=o.endColor,f=o.fontSize,d=o.indent,p=o.fontWeight,h=Ie.createElement("div"),g=K(n)||"fixed"===r(n,"pinType"),v=-1!==e.indexOf("scroller"),m=g?ze:n,y=-1!==e.indexOf("start"),x=y?c:u,b="border-color:"+x+";font-size:"+f+";color:"+x+";font-weight:"+p+";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)&&g?"fixed;":"absolute;"),!v&&!l&&g||(b+=(i===N?wt:_t)+":"+(a+parseFloat(d))+"px;"),s&&(b+="box-sizing:border-box;text-align:left;width:"+s.offsetWidth+"px;"),h._isStart=y,h.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),h.style.cssText=b,h.innerText=t||0===t?e+"-"+t:e,m.children[0]?m.insertBefore(h,m.children[0]):m.appendChild(h),h._offset=h["offset"+i.op.d2],zt(h,0,i,y),h}function ve(){return 34ze.clientWidth)||(A.cache++,et?ut=ut||requestAnimationFrame(Gt):Gt(),mt||Lt("scrollStart"),mt=gt())}function ye(){rt=Ye.innerWidth,nt=Ye.innerHeight}function xe(){A.cache++,qe||Qe||Ie.fullscreenElement||Ie.webkitFullscreenElement||tt&&rt===Ye.innerWidth&&!(Math.abs(Ye.innerHeight-nt)>.25*Ye.innerHeight)||Be.restart(!0)}function be(){return de(tn,"scrollEnd",be)||Ut(!0)}function we(e){for(var t=0;tt)&&e.setPositions(e.start,Math.max(e.start+1,t),!0)}),n.forEach(function(e){return e&&e.render&&e.render(-1)}),A.forEach(function(e){ee(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior="smooth"}),e.rec&&e(e.rec))}),ke(at,1),Be.pause(),qt++,Gt(ft=2),Nt.forEach(function(e){return ee(e.vars.onRefresh)&&e.vars.onRefresh(e)}),ft=tn.isRefreshing=!1,Lt("refresh")}else fe(tn,"scrollEnd",be)},Vt=0,jt=1,Gt=function(e){if(!ft||2===e){tn.isUpdating=!0,pt&&pt.update(0);var t=Nt.length,n=gt(),r=50<=n-vt,i=t&&Nt[0].scroll();if(jt=i=f})},zt.update=function(e,r,i){if(!tt||i||e){var o,c,u,d,p,g,v,m=!0===ft?G:zt.scroll(),x=e?0:(m-l)/y,k=x<0?0:1=J(at,it),Qe)if(e||!o&&!g)Me(De,_);else{var P=Dt(De,!0),A=m-l;Me(De,ze,P.top+(it===N?A:0)+Rt,P.left+(it===N?0:A)+Rt)}Jt(o||g?b:w),D&&k<1&&o||S(T+(1!==k||g?0:E))}}else S(V(T+E*k));!Ze||n.tween||qe||ht||j.restart(!0),ye&&(p||Ke&&k&&(k<1||!ct))&&Fe(ye.targets).forEach(function(e){return e.classList[o||Ke?"add":"remove"](ye.className)}),!ve||ot||e||ve(zt),d&&!qe?(ot&&(v&&("complete"===u?t.pause().totalProgress(1):"reset"===u?t.restart(!0).pause():"restart"===u?t.restart(!0):t[u]()),ve&&ve(zt)),!p&&ct||(_e&&p&&ie(zt,_e),vt[c]&&ie(zt,vt[c]),Ke&&(1===k?zt.kill(!1,1):vt[c]=0),p||vt[c=1===k?1:3]&&ie(zt,vt[c])),nt&&!o&&Math.abs(zt.getVelocity())>(te(nt)?nt:2500)&&(re(zt.callbackAnimation),F?F.progress(1):re(t,"reverse"===u?1:!k,1))):ot&&ve&&!qe&&ve(zt)}if(Y){var R=tt?m/tt.duration()*(tt._caScrollDist||0):m;O(R+(h._isFlipped?1:0)),Y(R)}ue&&ue(-m/tt.duration()*(tt._caScrollDist||0))}},zt.enable=function(e,t){zt.enabled||(zt.enabled=!0,fe(at,"resize",xe),lt||fe(at,"scroll",me),Ft&&fe(nn,"refreshInit",Ft),!1!==e&&(zt.progress=Gt=0,a=s=Wt=Kt()),!1!==t&&zt.refresh())},zt.getTween=function(e){return e&&n?n.tween:F},zt.setPositions=function(e,t,n,r){if(tt){var i=tt.scrollTrigger,o=tt.duration(),a=i.end-i.start;e=i.start+a*e/o,t=i.start+a*t/o}zt.refresh(!1,!1,{start:L(e,n&&!!zt._startClamp),end:L(t,n&&!!zt._endClamp)},r),zt.update()},zt.adjustPinSpacing=function(e){if(P&&e){var t=P.indexOf(it.d)+1;P[t]=parseFloat(P[t])+e+Rt,P[1]=parseFloat(P[1])+e+Rt,Jt(P)}},zt.disable=function(e,t){if(zt.enabled&&(!1!==e&&zt.revert(!0,!0),zt.enabled=zt.isActive=!1,t||F&&F.pause(),G=0,i&&(i.uncache=1),Ft&&de(nn,"refreshInit",Ft),j&&(j.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!lt)){for(var r=Nt.length;r--;)if(Nt[r].scroller===at&&Nt[r]!==zt)return;de(at,"resize",xe),lt||de(at,"scroll",me)}},zt.kill=function(n,r){zt.disable(n,r),F&&!r&&F.kill(),we&&delete Bt[we];var o=Nt.indexOf(zt);0<=o&&Nt.splice(o,1),o===je&&0a&&(k()>a?f.progress(1)&&k(a):f.resetTo("scrollY",a))}ne(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 o,a,s,l,f,d,p,h,g=e.normalizeScrollX,v=e.momentum,m=e.allowNestedScroll,y=e.onRelease,x=c(e.target)||Xe,b=Re.core.globals().ScrollSmoother,w=b&&b.get(),_=it&&(e.content&&c(e.content)||w&&!1!==e.content&&!w.smooth()&&w.content()),k=u(x,N),C=u(x,z),S=1,T=(B.isTouch&&Ye.visualViewport?Ye.visualViewport.scale*Ye.visualViewport.width:Ye.outerWidth)/Ye.innerWidth,E=0,M=ee(v)?function(){return v(o)}:function(){return v||2.8},P=sn(x,e.type,!0,m),O=U,R=U;return _&&Re.set(_,{y:"+=0"}),e.ignoreCheck=function(e){return it&&"touchmove"===e.type&&function(){if(l){requestAnimationFrame(t);var e=V(o.deltaY/2),n=R(k.v-e);if(_&&n!==k.v+k.offset){k.offset=n-k.v;var i=V((parseFloat(_&&_._gsap.y)||0)-k.offset);_.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+i+", 0, 1)",_._gsap.y=i+"px",k.cacheID=A.cache,Gt()}return!0}k.offset&&r(),l=!0}()||1.05=a||a-1<=n)&&Re.to({},{onUpdate:i,duration:s})}else h.restart(!0);y&&y(e)},e.onWheel=function(){f._ts&&f.pause(),1e3