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