PageSourceSearch

https://www.pepsico.com/_next/static/chunks/894-22d26fc5378b0e49.js

js pepsico.com collected 2026-09-24 08:23:55 UTC 299,466 bytes, 13 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[894],{9805:function(t,e,n){"use strict";n.d(e,{i:function(){return e1}});var i,r,o,s,a,l,u,c,h,d,f,p,m,g=function(){return i||"undefined"!=typeof window&&(i=window.gsap)&&i.registerPlugin&&i},v=1,y=[],w=[],x=[],b=Date.now,S=function(t,e){return e},E=function(){var t=h.core,e=t.bridge||{},n=t._scrollers,i=t._proxies;n.push.apply(n,w),i.push.apply(i,x),w=n,x=i,S=function(t,n){return e[t](n)}},P=function(t,e){return~x.indexOf(t)&&x[x.indexOf(t)+1][e]},T=function(t){return!!~d.indexOf(t)},C=function(t,e,n,i,r){return t.addEventListener(e,n,{passive:!1!==i,capture:!!r})},M=function(t,e,n,i){return t.removeEventListener(e,n,!!i)},A="scrollLeft",R="scrollTop",O=function(){return f&&f.isPressed||w.cache++},k=function(t,e){var n=function n(i){if(i||0===i){v&&(o.history.scrollRestoration="manual");var r=f&&f.isPressed;t(i=n.v=Math.round(i)||(f&&f.iOS?1:0)),n.cacheID=w.cache,r&&S("ss",i)}else(e||w.cache!==n.cacheID||S("ref"))&&(n.cacheID=w.cache,n.v=t());return n.v+n.offset};return n.offset=0,t&&n},_={s:A,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:k(function(t){return arguments.length?o.scrollTo(t,D.sc()):o.pageXOffset||s[A]||a[A]||l[A]||0})},D={s:R,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:_,sc:k(function(t){return arguments.length?o.scrollTo(_.sc(),t):o.pageYOffset||s[R]||a[R]||l[R]||0})},L=function(t,e){return(e&&e._ctx&&e._ctx.selector||i.utils.toArray)(t)[0]||("string"==typeof t&&!1!==i.config().nullTargetWarn?console.warn("Element not found:",t):null)},j=function(t,e){for(var n=e.length;n--;)if(e[n]===t||e[n].contains(t))return!0;return!1},I=function(t,e){var n=e.s,r=e.sc;T(t)&&(t=s.scrollingElement||a);var o=w.indexOf(t),l=r===D.sc?1:2;~o||(o=w.push(t)-1),w[o+l]||C(t,"scroll",O);var u=w[o+l],c=u||(w[o+l]=k(P(t,n),!0)||(T(t)?r:k(function(e){return arguments.length?t[n]=e:t[n]})));return c.target=t,u||(c.smooth="smooth"===i.getProperty(t,"scrollBehavior")),c},F=function(t,e,n){var i=t,r=t,o=b(),s=o,a=e||50,l=Math.max(500,3*a),u=function(t,e){var l=b();e||l-o>a?(r=i,i=t,s=o,o=l):n?i+=t:i=r+(t-r)/(l-s)*(o-s)};return{update:u,reset:function(){r=i=n?0:i,s=o=0},getVelocity:function(t){var e=s,a=r,c=b();return(t||0===t)&&t!==i&&u(t),o===s||c-s>l?0:(i+(n?a:-a))/((n?c:o)-e)*1e3}}},N=function(t,e){return e&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},V=function(t){var e=Math.max.apply(Math,t),n=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(n)?e:n},W=function(){(h=i.core.globals().ScrollTrigger)&&h.core&&E()},z=function(t){return i=t||g(),!r&&i&&"undefined"!=typeof document&&document.body&&(o=window,a=(s=document).documentElement,l=s.body,d=[o,s,a,l],i.utils.clamp,m=i.core.context||function(){},c="onpointerenter"in l?"pointer":"mouse",u=B.isTouch=o.matchMedia&&o.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in o||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,p=B.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),W(),r=1),r};_.op=D,w.cache=0;var B=function(){function t(t){this.init(t)}return t.prototype.init=function(t){r||z(i)||console.warn("Please gsap.registerPlugin(Observer)"),h||W();var e=t.tolerance,n=t.dragMinimum,d=t.type,g=t.target,v=t.lineHeight,w=t.debounce,x=t.preventDefault,S=t.onStop,E=t.onStopDelay,P=t.ignore,A=t.wheelSpeed,R=t.event,k=t.onDragStart,B=t.onDragEnd,$=t.onDrag,U=t.onPress,X=t.onRelease,Y=t.onRight,H=t.onLeft,q=t.onUp,K=t.onDown,Z=t.onChangeX,G=t.onChangeY,J=t.onChange,Q=t.onToggleX,tt=t.onToggleY,te=t.onHover,tn=t.onHoverEnd,ti=t.onMove,tr=t.ignoreCheck,to=t.isNormalizer,ts=t.onGestureStart,ta=t.onGestureEnd,tl=t.onWheel,tu=t.onEnable,tc=t.onDisable,th=t.onClick,td=t.scrollSpeed,tf=t.capture,tp=t.allowClicks,tm=t.lockAxis,tg=t.onLockAxis;this.target=g=L(g)||a,this.vars=t,P&&(P=i.utils.toArray(P)),e=e||1e-9,n=n||0,A=A||1,td=td||1,d=d||"wheel,touch,pointer",w=!1!==w,v||(v=parseFloat(o.getComputedStyle(l).lineHeight)||22);var tv,ty,tw,tx,tb,tS,tE,tP=this,tT=0,tC=0,tM=t.passive||!x&&!1!==t.passive,tA=I(g,_),tR=I(g,D),tO=tA(),tk=tR(),t_=~d.indexOf("touch")&&!~d.indexOf("pointer")&&"pointerdown"===p[0],tD=T(g),tL=g.ownerDocument||s,tj=[0,0,0],tI=[0,0,0],tF=0,tN=function(){return tF=b()},tV=function(t,e){return(tP.event=t)&&P&&j(t.target,P)||e&&t_&&"touch"!==t.pointerType||tr&&tr(t,e)},tW=function(){var t=tP.deltaX=V(tj),n=tP.deltaY=V(tI),i=Math.abs(t)>=e,r=Math.abs(n)>=e;J&&(i||r)&&J(tP,t,n,tj,tI),i&&(Y&&tP.deltaX>0&&Y(tP),H&&tP.deltaX<0&&H(tP),Z&&Z(tP),Q&&tP.deltaX<0!=tT<0&&Q(tP),tT=tP.deltaX,tj[0]=tj[1]=tj[2]=0),r&&(K&&tP.deltaY>0&&K(tP),q&&tP.deltaY<0&&q(tP),G&&G(tP),tt&&tP.deltaY<0!=tC<0&&tt(tP),tC=tP.deltaY,tI[0]=tI[1]=tI[2]=0),(tx||tw)&&(ti&&ti(tP),tw&&(k&&1===tw&&k(tP),$&&$(tP),tw=0),tx=!1),tS&&(tS=!1,1)&&tg&&tg(tP),tb&&(tl(tP),tb=!1),tv=0},tz=function(t,e,n){tj[n]+=t,tI[n]+=e,tP._vx.update(t),tP._vy.update(e),w?tv||(tv=requestAnimationFrame(tW)):tW()},tB=function(t,e){tm&&!tE&&(tP.axis=tE=Math.abs(t)>Math.abs(e)?"x":"y",tS=!0),"y"!==tE&&(tj[2]+=t,tP._vx.update(t,!0)),"x"!==tE&&(tI[2]+=e,tP._vy.update(e,!0)),w?tv||(tv=requestAnimationFrame(tW)):tW()},t$=function(t){if(!tV(t,1)){var e=(t=N(t,x)).clientX,i=t.clientY,r=e-tP.x,o=i-tP.y,s=tP.isDragging;tP.x=e,tP.y=i,(s||(r||o)&&(Math.abs(tP.startX-e)>=n||Math.abs(tP.startY-i)>=n))&&(tw=s?2:1,s||(tP.isDragging=!0),tB(r,o))}},tU=tP.onPress=function(t){tV(t,1)||t&&t.button||(tP.axis=tE=null,ty.pause(),tP.isPressed=!0,t=N(t),tT=tC=0,tP.startX=tP.x=t.clientX,tP.startY=tP.y=t.clientY,tP._vx.reset(),tP._vy.reset(),C(to?g:tL,p[1],t$,tM,!0),tP.deltaX=tP.deltaY=0,U&&U(tP))},tX=tP.onRelease=function(t){if(!tV(t,1)){M(to?g:tL,p[1],t$,!0);var e=!isNaN(tP.y-tP.startY),n=tP.isDragging,r=n&&(Math.abs(tP.x-tP.startX)>3||Math.abs(tP.y-tP.startY)>3),s=N(t);!r&&e&&(tP._vx.reset(),tP._vy.reset(),x&&tp&&i.delayedCall(.08,function(){if(b()-tF>300&&!t.defaultPrevented){if(t.target.click)t.target.click();else if(tL.createEvent){var e=tL.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,o,1,s.screenX,s.screenY,s.clientX,s.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}}})),tP.isDragging=tP.isGesturing=tP.isPressed=!1,S&&n&&!to&&ty.restart(!0),tw&&tW(),B&&n&&B(tP),X&&X(tP,r)}},tY=function(t){return t.touches&&t.touches.length>1&&(tP.isGesturing=!0)&&ts(t,tP.isDragging)},tH=function(){return tP.isGesturing=!1,ta(tP)},tq=function(t){if(!tV(t)){var e=tA(),n=tR();tz((e-tO)*td,(n-tk)*td,1),tO=e,tk=n,S&&ty.restart(!0)}},tK=function(t){if(!tV(t)){t=N(t,x),tl&&(tb=!0);var e=(1===t.deltaMode?v:2===t.deltaMode?o.innerHeight:1)*A;tz(t.deltaX*e,t.deltaY*e,0),S&&!to&&ty.restart(!0)}},tZ=function(t){if(!tV(t)){var e=t.clientX,n=t.clientY,i=e-tP.x,r=n-tP.y;tP.x=e,tP.y=n,tx=!0,S&&ty.restart(!0),(i||r)&&tB(i,r)}},tG=function(t){tP.event=t,te(tP)},tJ=function(t){tP.event=t,tn(tP)},tQ=function(t){return tV(t)||N(t,x)&&th(tP)};ty=tP._dc=i.delayedCall(E||.25,function(){tP._vx.reset(),tP._vy.reset(),ty.pause(),S&&S(tP)}).pause(),tP.deltaX=tP.deltaY=0,tP._vx=F(0,50,!0),tP._vy=F(0,50,!0),tP.scrollX=tA,tP.scrollY=tR,tP.isDragging=tP.isGesturing=tP.isPressed=!1,m(this),tP.enable=function(t){return!tP.isEnabled&&(C(tD?tL:g,"scroll",O),d.indexOf("scroll")>=0&&C(tD?tL:g,"scroll",tq,tM,tf),d.indexOf("wheel")>=0&&C(g,"wheel",tK,tM,tf),(d.indexOf("touch")>=0&&u||d.indexOf("pointer")>=0)&&(C(g,p[0],tU,tM,tf),C(tL,p[2],tX),C(tL,p[3],tX),tp&&C(g,"click",tN,!0,!0),th&&C(g,"click",tQ),ts&&C(tL,"gesturestart",tY),ta&&C(tL,"gestureend",tH),te&&C(g,c+"enter",tG),tn&&C(g,c+"leave",tJ),ti&&C(g,c+"move",tZ)),tP.isEnabled=!0,tP.isDragging=tP.isGesturing=tP.isPressed=tx=tw=!1,tP._vx.reset(),tP._vy.reset(),tO=tA(),tk=tR(),t&&t.type&&t
1U(t),tu&&tu(tP)),tP},tP.disable=function(){tP.isEnabled&&(y.filter(function(t){return t!==tP&&T(t.target)}).length||M(tD?tL:g,"scroll",O),tP.isPressed&&(tP._vx.reset(),tP._vy.reset(),M(to?g:tL,p[1],t$,!0)),M(tD?tL:g,"scroll",tq,tf),M(g,"wheel",tK,tf),M(g,p[0],tU,tf),M(tL,p[2],tX),M(tL,p[3],tX),M(g,"click",tN,!0),M(g,"click",tQ),M(tL,"gesturestart",tY),M(tL,"gestureend",tH),M(g,c+"enter",tG),M(g,c+"leave",tJ),M(g,c+"move",tZ),tP.isEnabled=tP.isPressed=tP.isDragging=!1,tc&&tc(tP))},tP.kill=tP.revert=function(){tP.disable();var t=y.indexOf(tP);t>=0&&y.splice(t,1),f===tP&&(f=0)},y.push(tP),to&&T(g)&&(f=tP),tP.enable(R)},function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}(t.prototype,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),t}();B.version="3.13.0",B.create=function(t){return new B(t)},B.register=z,B.getAll=function(){return y.slice()},B.getById=function(t){return y.filter(function(e){return e.vars.id===t})[0]},g()&&i.registerPlugin(B);var $,U,X,Y,H,q,K,Z,G,J,Q,tt,te,tn,ti,tr,to,ts,ta,tl,tu,tc,th,td,tf,tp,tm,tg,tv,ty,tw,tx,tb,tS,tE,tP,tT,tC,tM=1,tA=Date.now,tR=tA(),tO=0,tk=0,t_=function(t,e,n){var i=tY(t)&&("clamp("===t.substr(0,6)||t.indexOf("max")>-1);return n["_"+e+"Clamp"]=i,i?t.substr(6,t.length-7):t},tD=function(t,e){return e&&(!tY(t)||"clamp("!==t.substr(0,6))?"clamp("+t+")":t},tL=function(){return tn=1},tj=function(){return tn=0},tI=function(t){return t},tF=function(t){return Math.round(1e5*t)/1e5||0},tN=function(){return"undefined"!=typeof window},tV=function(){return $||tN()&&($=window.gsap)&&$.registerPlugin&&$},tW=function(t){return!!~K.indexOf(t)},tz=function(t){return("Height"===t?tw:X["inner"+t])||H["client"+t]||q["client"+t]},tB=function(t){return P(t,"getBoundingClientRect")||(tW(t)?function(){return eq.width=X.innerWidth,eq.height=tw,eq}:function(){return er(t)})},t$=function(t,e,n){var i=n.d,r=n.d2,o=n.a;return(o=P(t,"getBoundingClientRect"))?function(){return o()[i]}:function(){return(e?tz(r):t["client"+r])||0}},tU=function(t,e){var n=e.s,i=e.d2,r=e.d,o=e.a;return Math.max(0,(o=P(t,n="scroll"+i))?o()-tB(t)()[r]:tW(t)?(H[n]||q[n])-tz(i):t[n]-t["offset"+i])},tX=function(t,e){for(var n=0;n<ta.length;n+=3)(!e||~e.indexOf(ta[n+1]))&&t(ta[n],ta[n+1],ta[n+2])},tY=function(t){return"string"==typeof t},tH=function(t){return"function"==typeof t},tq=function(t){return"number"==typeof t},tK=function(t){return"object"==typeof t},tZ=function(t,e,n){return t&&t.progress(e?0:1)&&n&&t.pause()},tG=function(t,e){if(t.enabled){var n=t._ctx?t._ctx.add(function(){return e(t)}):e(t);n&&n.totalTime&&(t.callbackAnimation=n)}},tJ=Math.abs,tQ="left",t0="right",t1="bottom",t2="width",t4="height",t3="Right",t5="Left",t6="Bottom",t9="padding",t8="margin",t7="Width",et="Height",ee=function(t){return X.getComputedStyle(t)},en=function(t){var e=ee(t).position;t.style.position="absolute"===e||"fixed"===e?e:"relative"},ei=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},er=function(t,e){var n=e&&"matrix(1, 0, 0, 1, 0, 0)"!==ee(t)[ti]&&$.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=t.getBoundingClientRect();return n&&n.progress(0).kill(),i},eo=function(t,e){var n=e.d2;return t["offset"+n]||t["client"+n]||0},es=function(t){var e,n=[],i=t.labels,r=t.duration();for(e in i)n.push(i[e]/r);return n},ea=function(t){var e=$.utils.snap(t),n=Array.isArray(t)&&t.slice(0).sort(function(t,e){return t-e});return n?function(t,i,r){var o;if(void 0===r&&(r=.001),!i)return e(t);if(i>0){for(t-=r,o=0;o<n.length;o++)if(n[o]>=t)return n[o];return n[o-1]}for(o=n.length,t+=r;o--;)if(n[o]<=t)return n[o];return n[0]}:function(n,i,r){void 0===r&&(r=.001);var o=e(n);return!i||Math.abs(o-n)<r||o-n<0==i<0?o:e(i<0?n-t:n+t)}},el=function(t,e,n,i){return n.split(",").forEach(function(n){return t(e,n,i)})},eu=function(t,e,n,i,r){return t.addEventListener(e,n,{passive:!i,capture:!!r})},ec=function(t,e,n,i){return t.removeEventListener(e,n,!!i)},eh=function(t,e,n){(n=n&&n.wheelHandler)&&(t(e,"wheel",n),t(e,"touchmove",n))},ed={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},ef={toggleActions:"play",anticipatePin:0},ep={top:0,left:0,center:.5,bottom:1,right:1},em=function(t,e){if(tY(t)){var n=t.indexOf("="),i=~n?+(t.charAt(n-1)+1)*parseFloat(t.substr(n+1)):0;~n&&(t.indexOf("%")>n&&(i*=e/100),t=t.substr(0,n-1)),t=i+(t in ep?ep[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},eg=function(t,e,n,i,r,o,s,a){var l=r.startColor,u=r.endColor,c=r.fontSize,h=r.indent,d=r.fontWeight,f=Y.createElement("div"),p=tW(n)||"fixed"===P(n,"pinType"),m=-1!==t.indexOf("scroller"),g=p?q:n,v=-1!==t.indexOf("start"),y=v?l:u,w="border-color:"+y+";font-size:"+c+";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 w+="position:"+((m||a)&&p?"fixed;":"absolute;"),(m||a||!p)&&(w+=(i===D?t0:t1)+":"+(o+parseFloat(h))+"px;"),s&&(w+="box-sizing:border-box;text-align:left;width:"+s.offsetWidth+"px;"),f._isStart=v,f.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),f.style.cssText=w,f.innerText=e||0===e?t+"-"+e:t,g.children[0]?g.insertBefore(f,g.children[0]):g.appendChild(f),f._offset=f["offset"+i.op.d2],ev(f,0,i,v),f},ev=function(t,e,n,i){var r={display:"block"},o=n[i?"os2":"p2"],s=n[i?"p2":"os2"];t._isFlipped=i,r[n.a+"Percent"]=i?-100:0,r[n.a]=i?"1px":0,r["border"+o+t7]=1,r["border"+s+t7]=0,r[n.p]=e+"px",$.set(t,r)},ey=[],ew={},ex=function(){return tA()-tO>34&&(tE||(tE=requestAnimationFrame(eV)))},eb=function(){th&&th.isPressed&&!(th.startX>q.clientWidth)||(w.cache++,th?tE||(tE=requestAnimationFrame(eV)):eV(),tO||eM("scrollStart"),tO=tA())},eS=function(){tp=X.innerWidth,tf=X.innerHeight},eE=function(t){w.cache++,(!0===t||!te&&!tc&&!Y.fullscreenElement&&!Y.webkitFullscreenElement&&(!td||tp!==X.innerWidth||Math.abs(X.innerHeight-tf)>.25*X.innerHeight))&&Z.restart(!0)},eP={},eT=[],eC=function t(){return ec(e1,"scrollEnd",t)||eI(!0)},eM=function(t){return eP[t]&&eP[t].map(function(t){return t()})||eT},eA=[],eR=function(t){for(var e=0;e<eA.length;e+=5)(!t||eA[e+4]&&eA[e+4].query===t)&&(eA[e].style.cssText=eA[e+1],eA[e].getBBox&&eA[e].setAttribute("transform",eA[e+2]||""),eA[e+3].uncache=1)},eO=function(t,e){var n;for(tr=0;tr<ey.length;tr++)(n=ey[tr])&&(!e||n._ctx===e)&&(t?n.kill(1):n.revert(!0,!0));tx=!0,e&&eR(e),e||eM("revert")}
1,ek=function(t,e){w.cache++,(e||!tP)&&w.forEach(function(t){return tH(t)&&t.cacheID++&&(t.rec=0)}),tY(t)&&(X.history.scrollRestoration=tv=t)},e_=0,eD=function(){if(tT!==e_){var t=tT=e_;requestAnimationFrame(function(){return t===e_&&eI(!0)})}},eL=function(){q.appendChild(ty),tw=!th&&ty.offsetHeight||X.innerHeight,q.removeChild(ty)},ej=function(t){return G(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(e){return e.style.display=t?"none":"block"})},eI=function(t,e){if(H=Y.documentElement,q=Y.body,K=[X,Y,H,q],tO&&!t&&!tx){eu(e1,"scrollEnd",eC);return}eL(),tP=e1.isRefreshing=!0,w.forEach(function(t){return tH(t)&&++t.cacheID&&(t.rec=t())});var n=eM("refreshInit");tl&&e1.sort(),e||eO(),w.forEach(function(t){tH(t)&&(t.smooth&&(t.target.style.scrollBehavior="auto"),t(0))}),ey.slice(0).forEach(function(t){return t.refresh()}),tx=!1,ey.forEach(function(t){if(t._subPinOffset&&t.pin){var e=t.vars.horizontal?"offsetWidth":"offsetHeight",n=t.pin[e];t.revert(!0,1),t.adjustPinSpacing(t.pin[e]-n),t.refresh()}}),tb=1,ej(!0),ey.forEach(function(t){var e=tU(t.scroller,t._dir),n="max"===t.vars.end||t._endClamp&&t.end>e,i=t._startClamp&&t.start>=e;(n||i)&&t.setPositions(i?e-1:t.start,n?Math.max(i?e:t.start+1,e):t.end,!0)}),ej(!1),tb=0,n.forEach(function(t){return t&&t.render&&t.render(-1)}
1),w.forEach(function(t){tH(t)&&(t.smooth&&requestAnimationFrame(function(){return t.target.style.scrollBehavior="smooth"}),t.rec&&t(t.rec))}),ek(tv,1),Z.pause(),e_++,tP=2,eV(2),ey.forEach(function(t){return tH(t.vars.onRefresh)&&t.vars.onRefresh(t)}),tP=e1.isRefreshing=!1,eM("refresh")},eF=0,eN=1,eV=function(t){if(2===t||!tP&&!tx){e1.isUpdating=!0,tC&&tC.update(0);var e=ey.length,n=tA(),i=n-tR>=50,r=e&&ey[0].scroll();if(eN=eF>r?-1:1,tP||(eF=r),i&&(tO&&!tn&&n-tO>200&&(tO=0,eM("scrollEnd")),Q=tR,tR=n),eN<0){for(tr=e;tr-- >0;)ey[tr]&&ey[tr].update(0,i);eN=1}else for(tr=0;tr<e;tr++)ey[tr]&&ey[tr].update(0,i);e1.isUpdating=!1}tE=0},eW=[tQ,"top",t1,t0,t8+t6,t8+t3,t8+"Top",t8+t5,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],ez=eW.concat([t2,t4,"boxSizing","max"+t7,"max"+et,"position",t8,t9,t9+"Top",t9+t3,t9+t6,t9+t5]),eB=function(t,e,n){eX(n);var i=t._gsap;if(i.spacerIsNative)eX(i.spacerState);else if(t._gsap.swappedIn){var r=e.parentNode;r&&(r.insertBefore(t,e),r.removeChild(e))}t._gsap.swappedIn=!1},e$=function(t,e,n,i){if(!t._gsap.swappedIn){for(var r,o=eW.length,s=e.style,a=t.style;o--;)s[r=eW[o]]=n[r];s.position="absolute"===n.position?"absolute":"relative","inline"===n.display&&(s.display="inline-block"),a[t1]=a[t0]="auto",s.flexBasis=n.flexBasis||"auto",s.overflow="visible",s.boxSizing="border-box",s[t2]=eo(t,_)+"px",s[t4]=eo(t,D)+"px",s[t9]=a[t8]=a.top=a[tQ]="0",eX(i),a[t2]=a["max"+t7]=n[t2],a[t4]=a["max"+et]=n[t4],a[t9]=n[t9],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},eU=/([A-Z])/g,eX=function(t){if(t){var e,n,i=t.t.style,r=t.length,o=0;for((t.t._gsap||$.core.getCache(t.t)).uncache=1;o<r;o+=2)n=t[o+1],e=t[o],n?i[e]=n:i[e]&&i.removeProperty(e.replace(eU,"-$1").toLowerCase())}},eY=function(t){for(var e=ez.length,n=t.style,i=[],r=0;r<e;r++)i.push(ez[r],n[ez[r]]);return i.t=t,i},eH=function(t,e,n){for(var i,r=[],o=t.length,s=n?8:0;s<o;s+=2)i=t[s],r.push(i,i in e?e[i]:t[s+1]);return r.t=t.t,r},eq={left:0,top:0},eK=function(t,e,n,i,r,o,s,a,l,u,c,h,d,f){tH(t)&&(t=t(a)),tY(t)&&"max"===t.substr(0,3)&&(t=h+("="===t.charAt(4)?em("0"+t.substr(3),n):0));var p,m,g,v=d?d.time():0;if(d&&d.seek(0),isNaN(t)||(t=+t),tq(t))d&&(t=$.utils.mapRange(d.scrollTrigger.start,d.scrollTrigger.end,0,h,t)),s&&ev(s,n,i,!0);else{tH(e)&&(e=e(a));var y,w,x,b,S=(t||"0").split(" ");(y=er(g=L(e,a)||q)||{}).left||y.top||"none"!==ee(g).display||(b=g.style.display,g.style.display="block",y=er(g),b?g.style.display=b:g.style.removeProperty("display")),w=em(S[0],y[i.d]),x=em(S[1]||"0",n),t=y[i.p]-l[i.p]-u+w+r-x,s&&ev(s,x,i,n-x<20||s._isStart&&x>20),n-=n-x}if(f&&(a[f]=t||-.001,t<0&&(t=0)),o){var E=t+n,P=o._isStart;p="scroll"+i.d2,ev(o,E,i,P&&E>20||!P&&(c?Math.max(q[p],H[p]):o.parentNode[p])<=E+1),c&&(l=er(s),c&&(o.style[i.op.p]=l[i.op.p]-i.op.m-o._offset+"px"))}return d&&g&&(p=er(g),d.seek(h),m=er(g),d._caScrollDist=p[i.p]-m[i.p],t=t/d._caScrollDist*h),d&&d.seek(v),d?t:Math.round(t)},eZ=/(webkit|moz|length|cssText|inset)/i,eG=function(t,e,n,i){if(t.parentNode!==e){var r,o,s=t.style;if(e===q){for(r in t._stOrig=s.cssText,o=ee(t))+r||eZ.test(r)||!o[r]||"string"!=typeof s[r]||"0"===r||(s[r]=o[r]);s.top=n,s.left=i}else s.cssText=t._stOrig;$.core.getCache(t).uncache=1,e.appendChild(t)}},eJ=function(t,e,n){var i=e,r=i;return function(e){var o=Math.round(t());return o!==i&&o!==r&&Math.abs(o-i)>3&&Math.abs(o-r)>3&&(e=o,n&&n()),r=i,i=Math.round(e)}},eQ=function(t,e,n){var i={};i[e.p]="+="+n,$.set(t,i)},e0=function(t,e){var n=I(t,e),i="_scroll"+e.p2,r=function e(r,o,s,a,l){var u=e.tween,c=o.onComplete,h={};s=s||n();var d=eJ(n,s,function(){u.kill(),e.tween=0});return l=a&&l||0,a=a||r-s,u&&u.kill(),o[i]=r,o.inherit=!1,o.modifiers=h,h[i]=function(){return d(s+a*u.ratio+l*u.ratio*u.ratio)},o.onUpdate=function(){w.cache++,e.tween&&eV()},o.onComplete=function(){e.tween=0,c&&c.call(u)},u=e.tween=$.to(t,o)};return t[i]=n,n.wheelHandler=function(){return r.tween&&r.tween.kill()&&(r.tween=0)},eu(t,"wheel",n.wheelHandler),e1.isTouch&&eu(t,"touchmove",n.wheelHandler),r},e1=function(){function t(e,n){U||t.register($)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),tg(this),this.init(e,n)}return t.prototype.init=function(e,n){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!tk){this.update=this.refresh=this.kill=tI;return}var i,r,o,s,a,l,u,c,h,d,f,p,m,g,v,y,b,S,E,T,C,M,A,R,O,k,j,F,N,V,W,z,B,U,K,Z,tt,ti,to,ts,ta,tc=e=ei(tY(e)||tq(e)||e.nodeType?{trigger:e}:e,ef),th=tc.onUpdate,td=tc.toggleClass,tf=tc.id,tp=tc.onToggle,tm=tc.onRefresh,tg=tc.scrub,tv=tc.trigger,ty=tc.pin,tw=tc.pinSpacing,tx=tc.invalidateOnRefresh,tE=tc.anticipatePin,tT=tc.onScrubComplete,tR=tc.onSnapComplete,tL=tc.once,tj=tc.snap,tN=tc.pinReparent,tV=tc.pinSpacer,tz=tc.containerAnimation,tX=tc.fastScrollEnd,tQ=tc.preventOverlaps,t0=e.horizontal||e.containerAnimation&&!1!==e.horizontal?_:D,t1=!tg&&0!==tg,el=L(e.scroller||X),eh=$.core.getCache(el),ep=tW(el),ev=("pinType"in e?e.pinType:P(el,"pinType")||ep&&"fixed")==="fixed",ex=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],eS=t1&&e.toggleActions.split(" "),eP="markers"in e?e.markers:ef.markers,eT=ep?0:parseFloat(ee(el)["border"+t0.p2+t7])||0,eM=this,eA=e.onRefreshInit&&function(){return e.onRefreshInit(eM)},eR=t$(el,ep,t0),eO=!ep||~x.indexOf(el)?tB(el):function(){return eq},ek=0,e_=0,eL=0,ej=I(el,t0);if(eM._startClamp=eM._endClamp=!1,eM._dir=t0,tE*=45,eM.scroller=el,eM.scroll=tz?tz.time.bind(tz):ej,l=ej(),eM.vars=e,n=n||e.animation,"refreshPriority"in e&&(tl=1,-9999===e.refreshPriority&&(tC=eM)),eh.tweenScroll=eh.tweenScroll||{top:e0(el,D),left:e0(el,_)},eM.tweenTo=o=eh.tweenScroll[t0.p],eM.scrubDuration=function(t){(K=tq(t)&&t)?U?U.duration(t):U=$.to(n,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:K,paused:!0,onComplete:function(){return tT&&tT(eM)}}):(U&&U.progress(1).kill(),U=0)},n&&(n.vars.lazy=!1,n._initted&&!eM.isReverted||!1!==n.vars.immediateRender&&!1!==e.immediateRender&&n.duration()&&n.render(0,!0,!0),eM.animation=n.pause(),n.scrollTrigger=eM,eM.scrubDuration(tg),z=0,tf||(tf=n.vars.id)),tj&&((!tK(tj)||tj.push)&&(tj={snapTo:tj}),"scrollBehavior"in q.style&&$.set(ep?[q,H]:el,{scrollBehavior:"auto"}
1),w.forEach(function(t){return tH(t)&&t.target===(ep?Y.scrollingElement||H:el)&&(t.smooth=!1)}),a=tH(tj.snapTo)?tj.snapTo:"labels"===tj.snapTo?(i=n,function(t){return $.utils.snap(es(i),t)}):"labelsDirectional"===tj.snapTo?(r=n,function(t,e){return ea(es(r))(t,e.direction)}):!1!==tj.directional?function(t,e){return ea(tj.snapTo)(t,tA()-e_<500?0:e.direction)}:$.utils.snap(tj.snapTo),Z=tK(Z=tj.duration||{min:.1,max:2})?J(Z.min,Z.max):J(Z,Z),tt=$.delayedCall(tj.delay||K/2||.1,function(){var t=ej(),e=tA()-e_<500,i=o.tween;if((e||10>Math.abs(eM.getVelocity()))&&!i&&!tn&&ek!==t){var r,s,l=(t-c)/y,u=n&&!t1?n.totalProgress():l,d=e?0:(u-B)/(tA()-Q)*1e3||0,f=$.utils.clamp(-l,1-l,tJ(d/2)*d/.185),p=l+(!1===tj.inertia?0:f),m=tj,g=m.onStart,v=m.onInterrupt,w=m.onComplete;if(tq(r=a(p,eM))||(r=p),s=Math.max(0,Math.round(c+r*y)),t<=h&&t>=c&&s!==t){if(i&&!i._initted&&i.data<=tJ(s-t))return;!1===tj.inertia&&(f=r-l),o(s,{duration:Z(tJ(.185*Math.max(tJ(p-u),tJ(r-u))/d/.05||0)),ease:tj.ease||"power3",data:tJ(s-t),onInterrupt:function(){return tt.restart(!0)&&v&&v(eM)},onComplete:function(){eM.update(),ek=ej(),n&&!t1&&(U?U.resetTo("totalProgress",r,n._tTime/n._tDur):n.progress(r)),z=B=n&&!t1?n.totalProgress():eM.progress,tR&&tR(eM),w&&w(eM)}},t,f*y,s-t-f*y),g&&g(eM,o.tween)}}else eM.isActive&&ek!==t&&tt.restart(!0)}).pause()),tf&&(ew[tf]=eM),(ta=(tv=eM.trigger=L(tv||!0!==ty&&ty))&&tv._gsap&&tv._gsap.stRevert)&&(ta=ta(eM)),ty=!0===ty?tv:L(ty),tY(td)&&(td={targets:tv,className:td}),ty&&(!1===tw||tw===t8||(tw=(!!tw||!ty.parentNode||!ty.parentNode.style||"flex"!==ee(ty.parentNode).display)&&t9),eM.pin=ty,(s=$.core.getCache(ty)).spacer?b=s.pinState:(tV&&((tV=L(tV))&&!tV.nodeType&&(tV=tV.current||tV.nativeElement),s.spacerIsNative=!!tV,tV&&(s.spacerState=eY(tV))),s.spacer=T=tV||Y.createElement("div"),T.classList.add("pin-spacer"),tf&&T.classList.add("pin-spacer-"+tf),s.pinState=b=eY(ty)),!1!==e.force3D&&$.set(ty,{force3D:!0}),eM.spacer=T=s.spacer,k=(W=ee(ty))[tw+t0.os2],M=$.getProperty(ty),A=$.quickSetter(ty,t0.a,"px"),e$(ty,T,W),E=eY(ty)),eP){g=tK(eP)?ei(eP,ed):ed,p=eg("scroller-start",tf,el,t0,g,0),m=eg("scroller-end",tf,el,t0,g,0,p),C=p["offset"+t0.op.d2];var eI=L(P(el,"content")||el);d=this.markerStart=eg("start",tf,eI,t0,g,C,0,tz),f=this.markerEnd=eg("end",tf,eI,t0,g,C,0,tz),tz&&(ts=$.quickSetter([d,f],t0.a,"px")),ev||x.length&&!0===P(el,"fixedMarkers")||(en(ep?q:el),$.set([p,m],{force3D:!0}),F=$.quickSetter(p,t0.a,"px"),V=$.quickSetter(m,t0.a,"px"))}if(tz){var eF=tz.vars.onUpdate,eV=tz.vars.onUpdateParams;tz.eventCallback("onUpdate",function(){eM.update(0,0,1),eF&&eF.apply(tz,eV||[])})}if(eM.previous=function(){return ey[ey.indexOf(eM)-1]},eM.next=function(){return ey[ey.indexOf(eM)+1]},eM.revert=function(t,e){if(!e)return eM.kill(!0);var i=!1!==t||!eM.enabled,r=te;i!==eM.isReverted&&(i&&(ti=Math.max(ej(),eM.scroll.rec||0),eL=eM.progress,to=n&&n.progress()),d&&[d,f,p,m].forEach(function(t){return t.style.display=i?"none":"block"}),i&&(te=eM,eM.update(i)),!ty||tN&&eM.isActive||(i?eB(ty,T,b):e$(ty,T,ee(ty),j)),i||eM.update(i),te=r,eM.isReverted=i)},eM.refresh=function(i,r,s,a){if(!te&&eM.enabled||r){if(ty&&i&&tO){eu(t,"scrollEnd",eC);return}!tP&&eA&&eA(eM),te=eM,o.tween&&!s&&(o.tween.kill(),o.tween=0),U&&U.pause(),tx&&n&&(n.revert({kill:!1}).invalidate(),n.getChildren&&n.getChildren(!0,!0,!1).forEach(function(t){return t.vars.immediateRender&&t.render(0,!0,!0)})),eM.isReverted||eM.revert(!0,!0),eM._subPinOffset=!1;var g,w,x,P,C,A,k,F,V,W,z,B,X,K=eR(),Z=eO(),G=tz?tz.duration():tU(el,t0),J=y<=.01||!y,Q=0,tn=a||0,tr=tK(s)?s.end:e.end,ts=e.endTrigger||tv,ta=tK(s)?s.start:e.start||(0!==e.start&&tv?ty?"0 0":"0 100%":0),tl=eM.pinnedContainer=e.pinnedContainer&&L(e.pinnedContainer,eM),tc=tv&&Math.max(0,ey.indexOf(eM))||0,th=tc;for(eP&&tK(s)&&(B=$.getProperty(p,t0.p),X=$.getProperty(m,t0.p));th-- >0;)(A=ey[th]).end||A.refresh(0,1)||(te=eM),(k=A.pin)&&(k===tv||k===ty||k===tl)&&!A.isReverted&&(W||(W=[]),W.unshift(A),A.revert(!0,!0)),A!==ey[th]&&(tc--,th--);for(tH(ta)&&(ta=ta(eM)),c=eK(ta=t_(ta,"start",eM),tv,K,t0,ej(),d,p,eM,Z,eT,ev,G,tz,eM._startClamp&&"_startClamp")||(ty?-.001:0),tH(tr)&&(tr=tr(eM)),tY(tr)&&!tr.indexOf("+=")&&(~tr.indexOf(" ")?tr=(tY(ta)?ta.split(" ")[0]:"")+tr:(Q=em(tr.substr(2),K),tr=tY(ta)?ta:(tz?$.utils.mapRange(0,tz.duration(),tz.scrollTrigger.start,tz.scrollTrigger.end,c):c)+Q,ts=tv)),tr=t_(tr,"end",eM),h=Math.max(c,eK(tr||(ts?"100% 0":G),ts,K,t0,ej()+Q,f,m,eM,Z,eT,ev,G,tz,eM._endClamp&&"_endClamp"))||-.001,Q=0,th=tc;th--;)(k=(A=ey[th]).pin)&&A.start-A._pinPush<=c&&!tz&&A.end>0&&(g=A.end-(eM._startClamp?Math.max(0,A.start):A.start),(k===tv&&A.start-A._pinPush<c||k===tl)&&isNaN(ta)&&(Q+=g*(1-A.progress)),k===ty&&(tn+=g));if(c+=Q,h+=Q,eM._startClamp&&(eM._startClamp+=Q),eM._endClamp&&!tP&&(eM._endClamp=h||-.001,h=Math.min(h,tU(el,t0))),y=h-c||(c-=.01)&&.001,J&&(eL=$.utils.clamp(0,1,$.utils.normalize(c,h,ti))),eM._pinPush=tn,d&&Q&&((g={})[t0.a]="+="+Q,tl&&(g[t0.p]="-="+ej()),$.set([d,f],g)),ty&&!(tb&&eM.end>=tU(el,t0)))g=ee(ty),P=t0===D,x=ej(),R=parseFloat(M(t0.a))+tn,!G&&h>1&&(z={style:z=(ep?Y.scrollingElement||H:el).style,value:z["overflow"+t0.a.toUpperCase()]},ep&&"scroll"!==ee(q)["overflow"+t0.a.toUpperCase()]&&(z.style["overflow"+t0.a.toUpperCase()]="scroll")),e$(ty,T,g),E=eY(ty),w=er(ty,!0),F=ev&&I(el,P?_:D)(),tw?((j=[tw+t0.os2,y+tn+"px"]).t=T,(th=tw===t9?eo(ty,t0)+y+tn:0)&&(j.push(t0.d,th+"px"),"auto"!==T.style.flexBasis&&(T.style.flexBasis=th+"px")),eX(j),tl&&ey.forEac
1h(function(t){t.pin===tl&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)}),ev&&ej(ti)):(th=eo(ty,t0))&&"auto"!==T.style.flexBasis&&(T.style.flexBasis=th+"px"),ev&&((C={top:w.top+(P?x-c:F)+"px",left:w.left+(P?F:x-c)+"px",boxSizing:"border-box",position:"fixed"})[t2]=C["max"+t7]=Math.ceil(w.width)+"px",C[t4]=C["max"+et]=Math.ceil(w.height)+"px",C[t8]=C[t8+"Top"]=C[t8+t3]=C[t8+t6]=C[t8+t5]="0",C[t9]=g[t9],C[t9+"Top"]=g[t9+"Top"],C[t9+t3]=g[t9+t3],C[t9+t6]=g[t9+t6],C[t9+t5]=g[t9+t5],S=eH(b,C,tN),tP&&ej(0)),n?(V=n._initted,tu(1),n.render(n.duration(),!0,!0),O=M(t0.a)-R+y+tn,N=Math.abs(y-O)>1,ev&&N&&S.splice(S.length-2,2),n.render(0,!0,!0),V||n.invalidate(!0),n.parent||n.totalTime(n.totalTime()),tu(0)):O=y,z&&(z.value?z.style["overflow"+t0.a.toUpperCase()]=z.value:z.style.removeProperty("overflow-"+t0.a));else if(tv&&ej()&&!tz)for(w=tv.parentNode;w&&w!==q;)w._pinOffset&&(c-=w._pinOffset,h-=w._pinOffset),w=w.parentNode;W&&W.forEach(function(t){return t.revert(!1,!0)}),eM.start=c,eM.end=h,l=u=tP?ti:ej(),tz||tP||(l<ti&&ej(ti),eM.scroll.rec=0),eM.revert(!1,!0),e_=tA(),tt&&(ek=-1,tt.restart(!0)),te=0,n&&t1&&(n._initted||to)&&n.progress()!==to&&n.progress(to||0,!0).render(n.time(),!0,!0),(J||eL!==eM.progress||tz||tx||n&&!n._initted)&&(n&&!t1&&(n._initted||eL||!1!==n.vars.immediateRender)&&n.totalProgress(tz&&c<-.001&&!eL?$.utils.normalize(c,h,0):eL,!0),eM.progress=J||(l-c)/y===eL?0:eL),ty&&tw&&(T._pinOffset=Math.round(eM.progress*O)),U&&U.invalidate(),isNaN(B)||(B-=$.getProperty(p,t0.p),X-=$.getProperty(m,t0.p),eQ(p,t0,B),eQ(d,t0,B-(a||0)),eQ(m,t0,X),eQ(f,t0,X-(a||0))),J&&!tP&&eM.update(),!tm||tP||v||(v=!0,tm(eM),v=!1)}},eM.getVelocity=function(){return(ej()-u)/(tA()-Q)*1e3||0},eM.endAnimation=function(){tZ(eM.callbackAnimation),n&&(U?U.progress(1):n.paused()?t1||tZ(n,eM.direction<0,1):tZ(n,n.reversed()))},eM.labelToScroll=function(t){return n&&n.labels&&(c||eM.refresh()||c)+n.labels[t]/n.duration()*y||0},eM.getTrailing=function(t){var e=ey.indexOf(eM),n=eM.direction>0?ey.slice(0,e).reverse():ey.slice(e+1);return(tY(t)?n.filter(function(e){return e.vars.preventOverlaps===t}):n).filter(function(t){return eM.direction>0?t.end<=c:t.start>=h})},eM.update=function(t,e,i){if(!tz||i||t){var r,s,a,d,f,m,g,v=!0===tP?ti:eM.scroll(),w=t?0:(v-c)/y,x=w<0?0:w>1?1:w||0,b=eM.progress;if(e&&(u=l,l=tz?ej():v,tj&&(B=z,z=n&&!t1?n.totalProgress():x)),tE&&ty&&!te&&!tM&&tO&&(!x&&c<v+(v-u)/(tA()-Q)*tE?x=1e-4:1===x&&h>v+(v-u)/(tA()-Q)*tE&&(x=.9999)),x!==b&&eM.enabled){if(d=(f=(r=eM.isActive=!!x&&x<1)!=(!!b&&b<1))||!!x!=!!b,eM.direction=x>b?1:-1,eM.progress=x,d&&!te&&(s=x&&!b?0:1===x?1:1===b?2:3,t1&&(a=!f&&"none"!==eS[s+1]&&eS[s+1]||eS[s],g=n&&("complete"===a||"reset"===a||a in n))),tQ&&(f||g)&&(g||tg||!n)&&(tH(tQ)?tQ(eM):eM.getTrailing(tQ).forEach(function(t){return t.endAnimation()})),!t1&&(!U||te||tM?n&&n.totalProgress(x,!!(te&&(e_||t))):(U._dp._time-U._start!==U._time&&U.render(U._dp._time-U._start),U.resetTo?U.resetTo("totalProgress",x,n._tTime/n._tDur):(U.vars.totalProgress=x,U.invalidate().restart()))),ty){if(t&&tw&&(T.style[tw+t0.os2]=k),ev){if(d){if(m=!t&&x>b&&h+1>v&&v+1>=tU(el,t0),tN){if(!t&&(r||m)){var P=er(ty,!0),C=v-c;eG(ty,q,P.top+(t0===D?C:0)+"px",P.left+(t0===D?0:C)+"px")}else eG(ty,T)}eX(r||m?S:E),N&&x<1&&r||A(R+(1!==x||m?0:O))}}else A(tF(R+O*x))}!tj||o.tween||te||tM||tt.restart(!0),td&&(f||tL&&x&&(x<1||!tS))&&G(td.targets).forEach(function(t){return t.classList[r||tL?"add":"remove"](td.className)}),!th||t1||t||th(eM),d&&!te?(t1&&(g&&("complete"===a?n.pause().totalProgress(1):"reset"===a?n.restart(!0).pause():"restart"===a?n.restart(!0):n[a]()),th&&th(eM)),(f||!tS)&&(tp&&f&&tG(eM,tp),ex[s]&&tG(eM,ex[s]),tL&&(1===x?eM.kill(!1,1):ex[s]=0),!f&&ex[s=1===x?1:3]&&tG(eM,ex[s])),tX&&!r&&Math.abs(eM.getVelocity())>(tq(tX)?tX:2500)&&(tZ(eM.callbackAnimation),U?U.progress(1):tZ(n,"reverse"===a?1:!x,1))):t1&&th&&!te&&th(eM)}if(V){var M=tz?v/tz.duration()*(tz._caScrollDist||0):v;F(M+(p._isFlipped?1:0)),V(M)}ts&&ts(-v/tz.duration()*(tz._caScrollDist||0))}},eM.enable=function(e,n){eM.enabled||(eM.enabled=!0,eu(el,"resize",eE),ep||eu(el,"scroll",eb),eA&&eu(t,"refreshInit",eA),!1!==e&&(eM.progress=eL=0,l=u=ek=ej()),!1!==n&&eM.refresh())},eM.getTween=function(t){return t&&o?o.tween:U},eM.setPositions=function(t,e,n,i){if(tz){var r=tz.scrollTrigger,o=tz.duration(),s=r.end-r.start;t=r.start+s*t/o,e=r.start+s*e/o}eM.refresh(!1,!1,{start:tD(t,n&&!!eM._startClamp),end:tD(e,n&&!!eM._endClamp)},i),eM.update()},eM.adjustPinSpacing=function(t){if(j&&t){var e=j.indexOf(t0.d)+1;j[e]=parseFloat(j[e])+t+"px",j[1]=parseFloat(j[1])+t+"px",eX(j)}},eM.disable=function(e,n){if(eM.enabled&&(!1!==e&&eM.revert(!0,!0),eM.enabled=eM.isActive=!1,n||U&&U.pause(),ti=0,s&&(s.uncache=1),eA&&ec(t,"refreshInit",eA),tt&&(tt.pause(),o.tween&&o.tween.kill()&&(o.tween=0)),!ep)){for(var i=ey.length;i--;)if(ey[i].scroller===el&&ey[i]!==eM)return;ec(el,"resize",eE),ep||ec(el,"scroll",eb)}},eM.kill=function(t,i){eM.disable(t,i),U&&!i&&U.kill(),tf&&delete ew[tf];var r=ey.indexOf(eM);r>=0&&ey.splice(r,1),r===tr&&eN>
10&&tr--,r=0,ey.forEach(function(t){return t.scroller===eM.scroller&&(r=1)}),r||tP||(eM.scroll.rec=0),n&&(n.scrollTrigger=null,t&&n.revert({kill:!1}),i||n.kill()),d&&[d,f,p,m].forEach(function(t){return t.parentNode&&t.parentNode.removeChild(t)}),tC===eM&&(tC=0),ty&&(s&&(s.uncache=1),r=0,ey.forEach(function(t){return t.pin===ty&&r++}),r||(s.spacer=0)),e.onKill&&e.onKill(eM)},ey.push(eM),eM.enable(!1,!1),ta&&ta(eM),n&&n.add&&!y){var eW=eM.update;eM.update=function(){eM.update=eW,w.cache++,c||h||eM.refresh()},$.delayedCall(.01,eM.update),y=.01,c=h=0}else eM.refresh();ty&&eD()},t.register=function(e){return U||($=e||tV(),tN()&&window.document&&t.enable(),U=tk),U},t.defaults=function(t){if(t)for(var e in t)ef[e]=t[e];return ef},t.disable=function(t,e){tk=0,ey.forEach(function(n){return n[e?"kill":"disable"](t)}),ec(X,"wheel",eb),ec(Y,"scroll",eb),clearInterval(tt),ec(Y,"touchcancel",tI),ec(q,"touchstart",tI),el(ec,Y,"pointerdown,touchstart,mousedown",tL),el(ec,Y,"pointerup,touchend,mouseup",tj),Z.kill(),tX(ec);for(var n=0;n<w.length;n+=3)eh(ec,w[n],w[n+1]),eh(ec,w[n],w[n+2])},t.enable=function(){if(X=window,H=(Y=document).documentElement,q=Y.body,$&&(G=$.utils.toArray,J=$.utils.clamp,tg=$.core.context||tI,tu=$.core.suppressOverwrites||tI,tv=X.history.scrollRestoration||"auto",eF=X.pageYOffset||0,$.core.globals("ScrollTrigger",t),q)){tk=1,(ty=document.createElement("div")).style.height="100vh",ty.style.position="absolute",eL(),function t(){return tk&&requestAnimationFrame(t)}(),B.register($),t.isTouch=B.isTouch,tm=B.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),td=1===B.isTouch,eu(X,"wheel",eb),K=[X,Y,H,q],$.matchMedia?(t.matchMedia=function(t){var e,n=$.matchMedia();for(e in t)n.add(e,t[e]);return n},$.addEventListener("matchMediaInit",function(){return eO()}),$.addEventListener("matchMediaRevert",function(){return eR()}),$.addEventListener("matchMedia",function(){eI(0,1),eM("matchMedia")}),$.matchMedia().add("(orientation: portrait)",function(){return eS(),eS})):console.warn("Requires GSAP 3.11.0 or later"),eS(),eu(Y,"scroll",eb);var e,n,i=q.hasAttribute("style"),r=q.style,o=r.borderTopStyle,s=$.core.Animation.prototype;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),r.borderTopStyle="solid",e=er(q),D.m=Math.round(e.top+D.sc())||0,_.m=Math.round(e.left+_.sc())||0,o?r.borderTopStyle=o:r.removeProperty("border-top-style"),i||(q.setAttribute("style",""),q.removeAttribute("style")),tt=setInterval(ex,250),$.delayedCall(.5,function(){return tM=0}),eu(Y,"touchcancel",tI),eu(q,"touchstart",tI),el(eu,Y,"pointerdown,touchstart,mousedown",tL),el(eu,Y,"pointerup,touchend,mouseup",tj),ti=$.utils.checkPrefix("transform"),ez.push(ti),U=tA(),Z=$.delayedCall(.2,eI).pause(),ta=[Y,"visibilitychange",function(){var t=X.innerWidth,e=X.innerHeight;Y.hidden?(to=t,ts=e):(to!==t||ts!==e)&&eE()},Y,"DOMContentLoaded",eI,X,"load",eI,X,"resize",eE],tX(eu),ey.forEach(function(t){return t.enable(0,1)}),n=0;n<w.length;n+=3)eh(ec,w[n],w[n+1]),eh(ec,w[n],w[n+2])}},t.config=function(e){"limitCallbacks"in e&&(tS=!!e.limitCallbacks);var n=e.syncInterval;n&&clearInterval(tt)||(tt=n)&&setInterval(ex,n),"ignoreMobileResize"in e&&(td=1===t.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(tX(ec)||tX(eu,e.autoRefreshEvents||"none"),tc=-1===(e.autoRefreshEvents+"").indexOf("resize"))},t.scrollerProxy=function(t,e){var n=L(t),i=w.indexOf(n),r=tW(n);~i&&w.splice(i,r?6:2),e&&(r?x.unshift(X,e,q,e,H,e):x.unshift(n,e))}
1,t.clearMatchMedia=function(t){ey.forEach(function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)})},t.isInViewport=function(t,e,n){var i=(tY(t)?L(t):t).getBoundingClientRect(),r=i[n?t2:t4]*e||0;return n?i.right-r>0&&i.left+r<X.innerWidth:i.bottom-r>0&&i.top+r<X.innerHeight},t.positionInViewport=function(t,e,n){tY(t)&&(t=L(t));var i=t.getBoundingClientRect(),r=i[n?t2:t4],o=null==e?r/2:e in ep?ep[e]*r:~e.indexOf("%")?parseFloat(e)*r/100:parseFloat(e)||0;return n?(i.left+o)/X.innerWidth:(i.top+o)/X.innerHeight},t.killAll=function(t){if(ey.slice(0).forEach(function(t){return"ScrollSmoother"!==t.vars.id&&t.kill()}),!0!==t){var e=eP.killAll||[];eP={},e.forEach(function(t){return t()})}},t}();e1.version="3.13.0",e1.saveStyles=function(t){return t?G(t).forEach(function(t){if(t&&t.style){var e=eA.indexOf(t);e>=0&&eA.splice(e,5),eA.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),$.core.getCache(t),tg())}}):eA},e1.revert=function(t,e){return eO(!t,e)},e1.create=function(t,e){return new e1(t,e)},e1.refresh=function(t){return t?eE(!0):(U||e1.register())&&eI(!0)},e1.update=function(t){return++w.cache&&eV(!0===t?2:0)},e1.clearScrollMemory=ek,e1.maxScroll=function(t,e){return tU(t,e?_:D)},e1.getScrollFunc=function(t,e){return I(L(t),e?_:D)},e1.getById=function(t){return ew[t]},e1.getAll=function(){return ey.filter(function(t){return"ScrollSmoother"!==t.vars.id})},e1.isScrolling=function(){return!!tO},e1.snapDirectional=ea,e1.addEventListener=function(t,e){var n=eP[t]||(eP[t]=[]);~n.indexOf(e)||n.push(e)},e1.removeEventListener=function(t,e){var n=eP[t],i=n&&n.indexOf(e);i>=0&&n.splice(i,1)},e1.batch=function(t,e){var n,i=[],r={},o=e.interval||.016,s=e.batchMax||1e9,a=function(t,e){var n=[],i=[],r=$.delayedCall(o,function(){e(n,i),n=[],i=[]}).pause();return function(t){n.length||r.restart(!0),n.push(t.trigger),i.push(t),s<=n.length&&r.progress(1)}};for(n in e)r[n]="on"===n.substr(0,2)&&tH(e[n])&&"onRefreshInit"!==n?a(n,e[n]):e[n];return tH(s)&&(s=s(),eu(e1,"refresh",function(){return s=e.batchMax()})),G(t).forEach(function(t){var e={};for(n in r)e[n]=r[n];e.trigger=t,i.push(e1.create(e))}),i};var e2,e4=function(t,e,n,i){return e>i?t(i):e<0&&t(0),n>i?(i-e)/(n-e):n<0?e/(e-n):1},e3=function t(e,n){!0===n?e.style.removeProperty("touch-action"):e.style.touchAction=!0===n?"auto":n?"pan-"+n+(B.isTouch?" pinch-zoom":""):"none",e===H&&t(q,n)},e5={auto:1,scroll:1},e6=function(t){var e,n=t.event,i=t.target,r=t.axis,o=(n.changedTouches?n.changedTouches[0]:n).target,s=o._gsap||$.core.getCache(o),a=tA();if(!s._isScrollT||a-s._isScrollT>2e3){for(;o&&o!==q&&(o.scrollHeight<=o.clientHeight&&o.scrollWidth<=o.clientWidth||!(e5[(e=ee(o)).overflowY]||e5[e.overflowX]));)o=o.parentNode;s._isScroll=o&&o!==i&&!tW(o)&&(e5[(e=ee(o)).overflowY]||e5[e.overflowX]),s._isScrollT=a}(s._isScroll||"x"===r)&&(n.stopPropagation(),n._gsapAllow=!0)},e9=function(t,e,n,i){return B.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:i=i&&e6,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return n&&eu(Y,B.eventTypes[0],e7,!1,!0)},onDisable:function(){return ec(Y,B.eventTypes[0],e7,!0)}})},e8=/(input|label|select|textarea)/i,e7=function(t){var e=e8.test(t.target.tagName);(e||e2)&&(t._gsapAllow=!0,e2=e)},nt=function(t){tK(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var e,n,i,r,o,s,a,l,u=t,c=u.normalizeScrollX,h=u.momentum,d=u.allowNestedScroll,f=u.onRelease,p=L(t.target)||H,m=$.core.globals().ScrollSmoother,g=m&&m.get(),v=tm&&(t.content&&L(t.content)||g&&!1!==t.content&&!g.smooth()&&g.content()),y=I(p,D),x=I(p,_),b=1,S=(B.isTouch&&X.visualViewport?X.visualViewport.scale*X.visualViewport.width:X.outerWidth)/X.innerWidth,E=0,P=tH(h)?function(){return h(e)}:function(){return h||2.8},T=e9(p,t.type,!0,d),C=function(){return r=!1},M=tI,A=tI,R=function(){n=tU(p,D),A=J(tm?1:0,n),c&&(M=J(0,tU(p,_))),i=e_},O=function(){v._gsap.y=tF(parseFloat(v._gsap.y)+y.offset)+"px",v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(v._gsap.y)+", 0, 1)",y.offset=y.cacheID=0},k=function(){if(r){requestAnimationFrame(C);var t=tF(e.deltaY/2),n=A(y.v-t);if(v&&n!==y.v+y.offset){y.offset=n-y.v;var i=tF((parseFloat(v&&v._gsap.y)||0)-y.offset);v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+i+", 0, 1)",v._gsap.y=i+"px",y.cacheID=w.cache,eV()}return!0}y.offset&&O(),r=!0},j=function(){R(),o.isActive()&&o.vars.scrollY>n&&(y()>n?o.progress(1)&&y(n):o.resetTo("scrollY",n))};return v&&$.set(v,{y:"+=0"}),t.ignoreCheck=function(t){return tm&&"touchmove"===t.type&&k(t)||b>1.05&&"touchstart"!==t.type||e.isGesturing||t.touches&&t.touches.length>1},t.onPress=function(){r=!1;var t=b;
1b=tF((X.visualViewport&&X.visualViewport.scale||1)/S),o.pause(),t!==b&&e3(p,b>1.01||!c&&"x"),s=x(),a=y(),R(),i=e_},t.onRelease=t.onGestureStart=function(t,e){if(y.offset&&O(),e){w.cache++;var i,r,s=P();c&&(r=(i=x())+-(.05*s*t.velocityX)/.227,s*=e4(x,i,r,tU(p,_)),o.vars.scrollX=M(r)),r=(i=y())+-(.05*s*t.velocityY)/.227,s*=e4(y,i,r,tU(p,D)),o.vars.scrollY=A(r),o.invalidate().duration(s).play(.01),(tm&&o.vars.scrollY>=n||i>=n-1)&&$.to({},{onUpdate:j,duration:s})}else l.restart(!0);f&&f(t)},t.onWheel=function(){o._ts&&o.pause(),tA()-E>1e3&&(i=0,E=tA())},t.onChange=function(t,e,n,r,o){if(e_!==i&&R(),e&&c&&x(M(r[2]===e?s+(t.startX-t.x):x()+e-r[1])),n){y.offset&&O();var l=o[2]===n,u=l?a+t.startY-t.y:y()+n-o[1],h=A(u);l&&u!==h&&(a+=h-u),y(h)}(n||e)&&eV()},t.onEnable=function(){e3(p,!c&&"x"),e1.addEventListener("refresh",j),eu(X,"resize",j),y.smooth&&(y.target.style.scrollBehavior="auto",y.smooth=x.smooth=!1),T.enable()},t.onDisable=function(){e3(p,!0),ec(X,"resize",j),e1.removeEventListener("refresh",j),T.kill()},t.lockAxis=!1!==t.lockAxis,(e=new B(t)).iOS=tm,tm&&!y()&&y(1),tm&&$.ticker.add(tI),l=e._dc,o=$.to(e,{ease:"power4",paused:!0,inherit:!1,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:eJ(y,y(),function(){return o.pause()})},onUpdate:eV,onComplete:l.vars.onComplete}),e};e1.sort=function(t){if(tH(t))return ey.sort(t);var e=X.pageYOffset||0;return e1.getAll().forEach(function(t){return t._sortY=t.trigger?e+t.trigger.getBoundingClientRect().top:t.start+X.innerHeight}),ey.sort(t||function(t,e){return -1e6*(t.vars.refreshPriority||0)+(t.vars.containerAnimation?1e6:t._sortY)-((e.vars.containerAnimation?1e6:e._sortY)+-1e6*(e.vars.refreshPriority||0))})},e1.observe=function(t){return new B(t)},e1.normalizeScroll=function(t){if(void 0===t)return th;if(!0===t&&th)return th.enable();if(!1===t){th&&th.kill(),th=t;return}var e=t instanceof B?t:nt(t);return th&&th.target===e.target&&th.kill(),tW(e.target)&&(th=e),e},e1.core={_getVelocityProp:F,_inputObserver:e9,_scrollers:w,_proxies:x,bridge:{ss:function(){tO||eM("scrollStart"),tO=tA()},ref:function(){return te}}},tV()&&$.registerPlugin(e1)},990:function(t,e,n){"use strict";n.d(e,{ZP:function(){return tP},p8:function(){return tP}});var i,r,o,s,a,l,u,c,h,d,f,p=n(5317),m={},g=180/Math.PI,v=Math.PI/180,y=Math.atan2,w=/([A-Z])/g,x=/(left|right|width|margin|padding|x)/i,b=/[\s,\(]\S/,S={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},E=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},P=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},T=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},C=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},M=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},A=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},R=function(t,e,n){return t.style[e]=n},O=function(t,e,n){return t.style.setProperty(e,n)},k=function(t,e,n){return t._gsap[e]=n},_=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},D=function(t,e,n,i,r){var o=t._gsap;o.scaleX=o.scaleY=n,o.renderTransform(r,o)},L=function(t,e,n,i,r){var o=t._gsap;o[e]=n,o.renderTransform(r,o)},j="transform",I=j+"Origin",F=function t(e,n){var i=this,r=this.target,o=r.style,s=r._gsap;if(e in m&&o){if(this.tfm=this.tfm||{},"transform"===e)return S.transform.split(",").forEach(function(e){return t.call(i,e,n)});if(~(e=S[e]||e).indexOf(",")?e.split(",").forEach(function(t){return i.tfm[t]=te(r,t)}):this.tfm[e]=s.x?s[e]:te(r,e),e===I&&(this.tfm.zOrigin=s.zOrigin),this.props.indexOf(j)>=0)return;s.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(I,n,"")),e=j}(o||n)&&this.props.push(e,n,o[e])},N=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},V=function(){var t,e,n=this.props,i=this.target,r=i.style,o=i._gsap;for(t=0;t<n.length;t+=3)n[t+1]?2===n[t+1]?i[n[t]](n[t+2]):i[n[t]]=n[t+2]:n[t+2]?r[n[t]]=n[t+2]:r.removeProperty("--"===n[t].substr(0,2)?n[t]:n[t].replace(w,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)o[e]=this.tfm[e];
1o.svg&&(o.renderTransform(),i.setAttribute("data-svg-origin",this.svgo||"")),(t=d())&&t.isStart||r[j]||(N(r),o.zOrigin&&r[I]&&(r[I]+=" "+o.zOrigin+"px",o.zOrigin=0,o.renderTransform()),o.uncache=1)}},W=function(t,e){var n={target:t,props:[],revert:V,save:F};return t._gsap||p.p8.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(t){return n.save(t)}),n},z=function(t,e){var n=a.createElementNS?a.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):a.createElement(t);return n&&n.style?n:a.createElement(t)},B=function t(e,n,i){var r=getComputedStyle(e);return r[n]||r.getPropertyValue(n.replace(w,"-$1").toLowerCase())||r.getPropertyValue(n)||!i&&t(e,U(n)||n,1)||""},$="O,Moz,ms,Ms,Webkit".split(","),U=function(t,e,n){var i=(e||c).style,r=5;if(t in i&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);r--&&!($[r]+t in i););return r<0?null:(3===r?"ms":r>=0?$[r]:"")+t},X=function(){"undefined"!=typeof window&&window.document&&(l=(a=window.document).documentElement,c=z("div")||{style:{}},z("div"),I=(j=U(j))+"Origin",c.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",f=!!U("perspective"),d=p.p8.core.reverting,u=1)},Y=function(t){var e,n=t.ownerSVGElement,i=z("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=t.cloneNode(!0);r.style.display="block",i.appendChild(r),l.appendChild(i);try{e=r.getBBox()}catch(t){}return i.removeChild(r),l.removeChild(i),e},H=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},q=function(t){var e,n;try{e=t.getBBox()}catch(i){e=Y(t),n=1}return e&&(e.width||e.height)||n||(e=Y(t)),!e||e.width||e.x||e.y?e:{x:+H(t,["x","cx","x1"])||0,y:+H(t,["y","cy","y1"])||0,width:0,height:0}},K=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&q(t))},Z=function(t,e){if(e){var n,i=t.style;e in m&&e!==I&&(e=j),i.removeProperty?(("ms"===(n=e.substr(0,2))||"webkit"===e.substr(0,6))&&(e="-"+e),i.removeProperty("--"===n?e:e.replace(w,"-$1").toLowerCase())):i.removeAttribute(e)}},G=function(t,e,n,i,r,o){var s=new p.Fo(t._pt,e,n,0,1,o?A:M);return t._pt=s,s.b=i,s.e=r,t._props.push(n),s},J={deg:1,rad:1,turn:1},Q={grid:1,flex:1},tt=function t(e,n,i,r){var o,s,l,u,h=parseFloat(i)||0,d=(i+"").trim().substr((h+"").length)||"px",f=c.style,g=x.test(n),v="svg"===e.tagName.toLowerCase(),y=(v?"client":"offset")+(g?"Width":"Height"),w="px"===r,b="%"===r;if(r===d||!h||J[r]||J[d])return h;if("px"===d||w||(h=t(e,n,i,"px")),u=e.getCTM&&K(e),(b||"%"===d)&&(m[n]||~n.indexOf("adius")))return o=u?e.getBBox()[g?"width":"height"]:e[y],(0,p.Pr)(b?h/o*100:h/100*o);if(f[g?"width":"height"]=100+(w?d:r),s="rem"!==r&&~n.indexOf("adius")||"em"===r&&e.appendChild&&!v?e:e.parentNode,u&&(s=(e.ownerSVGElement||{}).parentNode),s&&s!==a&&s.appendChild||(s=a.body),(l=s._gsap)&&b&&l.width&&g&&l.time===p.xr.time&&!l.uncache)return(0,p.Pr)(h/l.width*100);if(b&&("height"===n||"width"===n)){var S=e.style[n];e.style[n]=100+r,o=e[y],S?e.style[n]=S:Z(e,n)}else(b||"%"===d)&&!Q[B(s,"display")]&&(f.position=B(e,"position")),s===e&&(f.position="static"),s.appendChild(c),o=c[y],s.removeChild(c),f.position="absolute";return g&&b&&((l=(0,p.DY)(s)).time=p.xr.time,l.width=s[y]),(0,p.Pr)(w?o*h/100:o&&h?100/o*h:0)},te=function(t,e,n,i){var r;return u||X(),e in S&&"transform"!==e&&~(e=S[e]).indexOf(",")&&(e=e.split(",")[0]),m[e]&&"transform"!==e?(r=tf(t,i),r="transformOrigin"!==e?r[e]:r.svg?r.origin:tp(B(t,I))+" "+r.zOrigin+"px"):(!(r=t.style[e])||"auto"===r||i||~(r+"").indexOf("calc("))&&(r=ts[e]&&ts[e](t,e,n)||B(t,e)||(0,p.Ok)(t,e)||("opacity"===e?1:0)),n&&!~(r+"").trim().indexOf(" ")?tt(t,e,r,n)+n:r},tn=function(t,e,n,i){if(!n||"none"===n){var r=U(e,t,1),o=r&&B(t,r,1);o&&o!==n?(e=r,n=o):"borderColor"===e&&(n=B(t,"borderTopColor"))}var s,a,l,u,c,h,d,f,m,g,v,y=new p.Fo(this._pt,t.style,e,0,1,p.Ks),w=0,x=0;if(y.b=n,y.e=i,n+="","var(--"===(i+="").substring(0,6)&&(i=B(t,i.substring(4,i.indexOf(")")))),"auto"===i&&(h=t.style[e],t.style[e]=i,i=B(t,e)||i,h?t.style[e]=h:Z(t,e)),s=[n,i],(0,p.kr)(s),n=s[0],i=s[1],l=n.match(p.d4)||[],(i.match(p.d4)||[]).length){for(;a=p.d4.exec(i);)d=a[0],m=i.substring(w,a.index),c?c=(c+1)%5:("rgba("===m.substr(-5)||"hsla("===m.substr(-5))&&(c=1),d!==(h=l[x++]||"")&&(u=parseFloat(h)||0,v=h.substr((u+"").length),"="===d.charAt(1)&&(d=(0,p.cy)(u,d)+v),f=parseFloat(d),g=d.substr((f+"").length),w=p.d4.lastIndex-g.length,g||(g=g||p.Fc.units[e]||v,w!==i.length||(i+=g,y.e
1+=g)),v!==g&&(u=tt(t,e,h,g)||0),y._pt={_next:y._pt,p:m||1===x?m:",",s:u,c:f-u,m:c&&c<4||"zIndex"===e?Math.round:0});y.c=w<i.length?i.substring(w,i.length):""}else y.r="display"===e&&"none"===i?A:M;return p.bQ.test(i)&&(y.e=0),this._pt=y,y},ti={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},tr=function(t){var e=t.split(" "),n=e[0],i=e[1]||"50%";return("top"===n||"bottom"===n||"left"===i||"right"===i)&&(t=n,n=i,i=t),e[0]=ti[n]||n,e[1]=ti[i]||i,e.join(" ")},to=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n,i,r,o=e.t,s=o.style,a=e.u,l=o._gsap;if("all"===a||!0===a)s.cssText="",i=1;else for(r=(a=a.split(",")).length;--r>-1;)m[n=a[r]]&&(i=1,n="transformOrigin"===n?I:j),Z(o,n);i&&(Z(o,j),l&&(l.svg&&o.removeAttribute("transform"),s.scale=s.rotate=s.translate="none",tf(o,1),l.uncache=1,N(s)))}},ts={clearProps:function(t,e,n,i,r){if("isFromStart"!==r.data){var o=t._pt=new p.Fo(t._pt,e,n,0,0,to);return o.u=i,o.pr=-10,o.tween=r,t._props.push(n),1}}},ta=[1,0,0,1,0,0],tl={},tu=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},tc=function(t){var e=B(t,j);return tu(e)?ta:e.substr(7).match(p.SI).map(p.Pr)},th=function(t,e){var n,i,r,o,s=t._gsap||(0,p.DY)(t),a=t.style,u=tc(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(r=t.transform.baseVal.consolidate().matrix).a,r.b,r.c,r.d,r.e,r.f]).join(",")?ta:u:(u!==ta||t.offsetParent||t===l||s.svg||(r=a.display,a.display="block",(n=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(o=1,i=t.nextElementSibling,l.appendChild(t)),u=tc(t),r?a.display=r:Z(t,"display"),o&&(i?n.insertBefore(t,i):n?n.appendChild(t):l.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},td=function(t,e,n,i,r,o){var s,a,l,u,c=t._gsap,h=r||th(t,!0),d=c.xOrigin||0,f=c.yOrigin||0,p=c.xOffset||0,m=c.yOffset||0,g=h[0],v=h[1],y=h[2],w=h[3],x=h[4],b=h[5],S=e.split(" "),E=parseFloat(S[0])||0,P=parseFloat(S[1])||0;n?h!==ta&&(a=g*w-v*y)&&(l=w/a*E+-y/a*P+(y*b-w*x)/a,u=-v/a*E+g/a*P-(g*b-v*x)/a,E=l,P=u):(E=(s=q(t)).x+(~S[0].indexOf("%")?E/100*s.width:E),P=s.y+(~(S[1]||S[0]).indexOf("%")?P/100*s.height:P)),i||!1!==i&&c.smooth?(x=E-d,b=P-f,c.xOffset=p+(x*g+b*y)-x,c.yOffset=m+(x*v+b*w)-b):c.xOffset=c.yOffset=0,c.xOrigin=E,c.yOrigin=P,c.smooth=!!i,c.origin=e,c.originIsAbsolute=!!n,t.style[I]="0px 0px",o&&(G(o,c,"xOrigin",d,E),G(o,c,"yOrigin",f,P),G(o,c,"xOffset",p,c.xOffset),G(o,c,"yOffset",m,c.yOffset)),t.setAttribute("data-svg-origin",E+" "+P)},tf=function(t,e){var n=t._gsap||new p.l1(t);if("x"in n&&!e&&!n.uncache)return n;var i,r,o,s,a,l,u,c,h,d,m,w,x,b,S,E,P,T,C,M,A,R,O,k,_,D,L,F,N,V,W,z,$=t.style,U=n.scaleX<0,X=getComputedStyle(t),Y=B(t,I)||"0";return i=r=o=l=u=c=h=d=m=0,s=a=1,n.svg=!!(t.getCTM&&K(t)),X.translate&&(("none"!==X.translate||"none"!==X.scale||"none"!==X.rotate)&&($[j]=("none"!==X.translate?"translate3d("+(X.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==X.rotate?"rotate("+X.rotate+") ":"")+("none"!==X.scale?"scale("+X.scale.split(" ").join(",")+") ":"")+("none"!==X[j]?X[j]:"")),$.scale=$.rotate=$.translate="none"),b=th(t,n.svg),n.svg&&(n.uncache?(_=t.getBBox(),Y=n.xOrigin-_.x+"px "+(n.yOrigin-_.y)+"px",k=""):k=!e&&t.getAttribute("data-svg-origin"),td(t,k||Y,!!k||n.originIsAbsolute,!1!==n.smooth,b)),w=n.xOrigin||0,x=n.yOrigin||0,b!==ta&&(T=b[0],C=b[1],M=b[2],A=b[3],i=R=b[4],r=O=b[5],6===b.length?(s=Math.sqrt(T*T+C*C),a=Math.sqrt(A*A+M*M),l=T||C?y(C,T)*g:0,(h=M||A?y(M,A)*g+l:0)&&(a*=Math.abs(Math.cos(h*v))),n.svg&&(i-=w-(w*T+x*M),r-=x-(w*C+x*A))):(z=b[6],V=b[7],L=b[8],F=b[9],N=b[10],W=b[11],i=b[12],r=b[13],o=b[14],u=(S=y(z,N))*g,S&&(k=R*(E=Math.cos(-S))+L*(P=Math.sin(-S)),_=O*E+F*P,D=z*E+N*P,L=-(R*P)+L*E,F=-(O*P)+F*E,N=-(z*P)+N*E,W=-(V*P)+W*E,R=k,O=_,z=D),c=(S=y(-M,N))*g,S&&(k=T*(E=Math.cos(-S))-L*(P=Math.sin(-S)),_=C*E-F*P,D=M*E-N*P,W=A*P+W*E,T=k,C=_,M=D),l=(S=y(C,T))*g,S&&(k=T*(E=Math.cos(S))+C*(P=Math.sin(S)),_=R*E+O*P,C=C*E-T*P,O=O*E-R*P,T=k,R=_),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),s=(0,p.Pr)(Math.sqrt(T*T+C*C+M*M)),a=(0,p.Pr)(Math.sqrt(O*O+z*z)),h=Math.abs(S=y(R,O))>2e-4?S*g:0,m=W?1/(W<0?-W:W):0),n.svg&&(k=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!tu(B(t,j)),k&&t.setAttribute("transform",k))),Math.abs(h)>90&&270>Math.abs(h)&&(U?(s*=-1,h+=l<=0?180:-180,l+=l<=0?180:-180):(a*=-1,h+=h<=0?180:-180)),e=e||n.uncache,n.x=i-((n.xPercent=i&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-i)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+"px",n.y=r-((n.yPercent=r&&(!e&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-r)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+"px",n.z=o+"px",n.scaleX=(0,p.Pr)(s),n.scaleY=(0,p.Pr)(a),n.rotation=(0,p.Pr)(l)+"deg",n.rotationX=(0,p.Pr)(u)+"deg",n.rotationY=(0,p.Pr)(c)+"deg",n.skewX=h+"deg",n.skewY=d+"deg",n.transformPerspective=m+"px",(n.zOrigin=parseFloat(Y.split(" ")[2])||!e&&n.zOrigin||0)&&($[I]=tp(Y)),n.xOffset=n.yOffset=0,n.force3D=p.Fc.force3D,n.renderTransform=n.svg?tw:f?ty:tg,n.uncache=0,n},tp=function(t){return(t=t.split(" "))[0]+" "+t[1]},tm=function(t,e,n){var i=(0,p.Wy)(e);return(0,p.Pr)(parseFloat(e)+parseFloat(tt(t,"x",n+"px",i)))+i},tg=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,ty(t,e)},tv="0deg",ty=function(t,e){var n=e||this,i=n.xPercent,r=n.yPercent,o=n.x,s=n.y,a=n.z,l=n.rotation,u=n.rotationY,c=n.rotationX,h=n.skewX,d=n.skewY,f=n.scaleX,p=n.scaleY,m=n.transformPerspective,g=n.force3D,y=n.target,w=n.zOrigin,x="",b="auto"===g&&t&&1!==t||!0===g;
1if(w&&(c!==tv||u!==tv)){var S,E=parseFloat(u)*v,P=Math.sin(E),T=Math.cos(E);o=tm(y,o,-(P*(S=Math.cos(E=parseFloat(c)*v))*w)),s=tm(y,s,-(-Math.sin(E)*w)),a=tm(y,a,-(T*S*w)+w)}"0px"!==m&&(x+="perspective("+m+") "),(i||r)&&(x+="translate("+i+"%, "+r+"%) "),(b||"0px"!==o||"0px"!==s||"0px"!==a)&&(x+="0px"!==a||b?"translate3d("+o+", "+s+", "+a+") ":"translate("+o+", "+s+") "),l!==tv&&(x+="rotate("+l+") "),u!==tv&&(x+="rotateY("+u+") "),c!==tv&&(x+="rotateX("+c+") "),(h!==tv||d!==tv)&&(x+="skew("+h+", "+d+") "),(1!==f||1!==p)&&(x+="scale("+f+", "+p+") "),y.style[j]=x||"translate(0, 0)"},tw=function(t,e){var n,i,r,o,s,a=e||this,l=a.xPercent,u=a.yPercent,c=a.x,h=a.y,d=a.rotation,f=a.skewX,m=a.skewY,g=a.scaleX,y=a.scaleY,w=a.target,x=a.xOrigin,b=a.yOrigin,S=a.xOffset,E=a.yOffset,P=a.forceCSS,T=parseFloat(c),C=parseFloat(h);d=parseFloat(d),f=parseFloat(f),(m=parseFloat(m))&&(f+=m=parseFloat(m),d+=m),d||f?(d*=v,f*=v,n=Math.cos(d)*g,i=Math.sin(d)*g,r=-(Math.sin(d-f)*y),o=Math.cos(d-f)*y,f&&(m*=v,r*=s=Math.sqrt(1+(s=Math.tan(f-m))*s),o*=s,m&&(n*=s=Math.sqrt(1+(s=Math.tan(m))*s),i*=s)),n=(0,p.Pr)(n),i=(0,p.Pr)(i),r=(0,p.Pr)(r),o=(0,p.Pr)(o)):(n=g,o=y,i=r=0),(T&&!~(c+"").indexOf("px")||C&&!~(h+"").indexOf("px"))&&(T=tt(w,"x",c,"px"),C=tt(w,"y",h,"px")),(x||b||S||E)&&(T=(0,p.Pr)(T+x-(x*n+b*r)+S),C=(0,p.Pr)(C+b-(x*i+b*o)+E)),(l||u)&&(s=w.getBBox(),T=(0,p.Pr)(T+l/100*s.width),C=(0,p.Pr)(C+u/100*s.height)),s="matrix("+n+","+i+","+r+","+o+","+T+","+C+")",w.setAttribute("transform",s),P&&(w.style[j]=s)},tx=function(t,e,n,i,r){var o,s,a=(0,p.r9)(r),l=parseFloat(r)*(a&&~r.indexOf("rad")?g:1)-i,u=i+l+"deg";return a&&("short"===(o=r.split("_")[1])&&(l%=360)!=l%180&&(l+=l<0?360:-360),"cw"===o&&l<0?l=(l+36e9)%360-360*~~(l/360):"ccw"===o&&l>0&&(l=(l-36e9)%360-360*~~(l/360))),t._pt=s=new p.Fo(t._pt,e,n,i,l,P),s.e=u,s.u="deg",t._props.push(n),s},tb=function(t,e){for(var n in e)t[n]=e[n];return t},tS=function(t,e,n){var i,r,o,s,a,l,u,c=tb({},n._gsap),h=n.style;for(r in c.svg?(o=n.getAttribute("transform"),n.setAttribute("transform",""),h[j]=e,i=tf(n,1),Z(n,j),n.setAttribute("transform",o)):(o=getComputedStyle(n)[j],h[j]=e,i=tf(n,1),h[j]=o),m)(o=c[r])!==(s=i[r])&&0>"perspective,force3D,transformOrigin,svgOrigin".indexOf(r)&&(a=(0,p.Wy)(o)!==(u=(0,p.Wy)(s))?tt(n,r,o,u):parseFloat(o),l=parseFloat(s),t._pt=new p.Fo(t._pt,i,r,a,l-a,E),t._pt.u=u||0,t._props.push(r));tb(i,c)};(0,p.fS)("padding,margin,Width,Radius",function(t,e){var n="Right",i="Bottom",r="Left",o=(e<3?["Top",n,i,r]:["Top"+r,"Top"+n,i+n,i+r]).map(function(n){return e<2?t+n:"border"+n+t});ts[e>1?"border"+t:t]=function(t,e,n,i,r){var s,a;if(arguments.length<4)return 5===(a=(s=o.map(function(e){return te(t,e,n)})).join(" ")).split(s[0]).length?s[0]:a;s=(i+"").split(" "),a={},o.forEach(function(t,e){return a[t]=s[e]=s[e]||s[(e-1)/2|0]}),t.init(e,a,r)}});var tE={name:"css",register:X,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,i,r){var o,s,a,l,c,h,d,f,g,v,y,w,x,P,M,A,R=this._props,O=t.style,k=n.vars.startAt;for(d in u||X(),this.styles=this.styles||W(t),A=this.styles.props,this.tween=n,e)if("autoRound"!==d&&(s=e[d],!(p.$i[d]&&(0,p.if)(d,e,n,i,t,r)))){if(c=typeof s,h=ts[d],"function"===c&&(c=typeof(s=s.call(n,i,t,r))),"string"===c&&~s.indexOf("random(")&&(s=(0,p.UI)(s)),h)h(this,t,d,s,n)&&(M=1);else if("--"===d.substr(0,2))o=(getComputedStyle(t).getPropertyValue(d)+"").trim(),s+="",p.GN.lastIndex=0,p.GN.test(o)||(f=(0,p.Wy)(o),g=(0,p.Wy)(s)),g?f!==g&&(o=tt(t,d,o,g)+g):f&&(s+=f),this.add(O,"setProperty",o,s,i,r,0,0,d),R.push(d),A.push(d,0,O[d]);else if("undefined"!==c){if(k&&d in k?(o="function"==typeof k[d]?k[d].call(n,i,t,r):k[d],(0,p.r9)(o)&&~o.indexOf("random(")&&(o=(0,p.UI)(o)),(0,p.Wy)(o+"")||"auto"===o||(o+=p.Fc.units[d]||(0,p.Wy)(te(t,d))||""),"="===(o+"").charAt(1)&&(o=te(t,d))):o=te(t,d),l=parseFloat(o),(v="string"===c&&"="===s.charAt(1)&&s.substr(0,2))&&(s=s.substr(2)),a=parseFloat(s),d in S&&("autoAlpha"===d&&(1===l&&"hidden"===te(t,"visibility")&&a&&(l=0),A.push("visibility",0,O.visibility),G(this,O,"visibility",l?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==d&&"transform"!==d&&~(d=S[d]).indexOf(",")&&(d=d.split(",")[0])),y=d in m){if(this.styles.save(d),"string"===c&&"var(--"===s.substring(0,6)&&
1(a=parseFloat(s=B(t,s.substring(4,s.indexOf(")"))))),w||((x=t._gsap).renderTransform&&!e.parseTransform||tf(t,e.parseTransform),P=!1!==e.smoothOrigin&&x.smooth,(w=this._pt=new p.Fo(this._pt,O,j,0,1,x.renderTransform,x,0,-1)).dep=1),"scale"===d)this._pt=new p.Fo(this._pt,x,"scaleY",x.scaleY,(v?(0,p.cy)(x.scaleY,v+a):a)-x.scaleY||0,E),this._pt.u=0,R.push("scaleY",d),d+="X";else if("transformOrigin"===d){A.push(I,0,O[I]),s=tr(s),x.svg?td(t,s,0,P,0,this):((g=parseFloat(s.split(" ")[2])||0)!==x.zOrigin&&G(this,x,"zOrigin",x.zOrigin,g),G(this,O,d,tp(o),tp(s)));continue}else if("svgOrigin"===d){td(t,s,1,P,0,this);continue}else if(d in tl){tx(this,x,d,l,v?(0,p.cy)(l,v+s):s);continue}else if("smoothOrigin"===d){G(this,x,"smooth",x.smooth,s);continue}else if("force3D"===d){x[d]=s;continue}else if("transform"===d){tS(this,s,t);continue}}else d in O||(d=U(d)||d);if(y||(a||0===a)&&(l||0===l)&&!b.test(s)&&d in O)f=(o+"").substr((l+"").length),a||(a=0),g=(0,p.Wy)(s)||(d in p.Fc.units?p.Fc.units[d]:f),f!==g&&(l=tt(t,d,o,g)),this._pt=new p.Fo(this._pt,y?x:O,d,l,(v?(0,p.cy)(l,v+a):a)-l,y||"px"!==g&&"zIndex"!==d||!1===e.autoRound?E:C),this._pt.u=g||0,f!==g&&"%"!==g&&(this._pt.b=o,this._pt.r=T);else if(d in O)tn.call(this,t,d,o,v?v+s:s);else if(d in t)this.add(t,d,o||t[d],v?v+s:s,i,r);else if("parseTransform"!==d){(0,p.lC)(d,s);continue}y||(d in O?A.push(d,0,O[d]):"function"==typeof t[d]?A.push(d,2,t[d]()):A.push(d,1,o||t[d])),R.push(d)}}M&&(0,p.JV)(this)},render:function(t,e){if(e.tween._time||!d())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:te,aliases:S,getSetter:function(t,e,n){var i=S[e];return i&&0>i.indexOf(",")&&(e=i),e in m&&e!==I&&(t._gsap.x||te(t,"x"))?n&&h===n?"scale"===e?_:k:(h=n||{},"scale"===e?D:L):t.style&&!(0,p.m2)(t.style[e])?R:~e.indexOf("-")?O:(0,p.S5)(t,e)},core:{_removeProperty:Z,_getMatrix:th}};p.p8.utils.checkPrefix=U,p.p8.core.getStyleSaver=W,i="x,y,z,scale,scaleX,scaleY,xPercent,yPercent",r="rotation,rotationX,rotationY,skewX,skewY",o="0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",s=(0,p.fS)(i+","+r+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){m[t]=1}),(0,p.fS)(r,function(t){p.Fc.units[t]="deg",tl[t]=1}),S[s[13]]=i+","+r,(0,p.fS)(o,function(t){var e=t.split(":");S[e[1]]=s[e[0]]}),(0,p.fS)("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){p.Fc.units[t]="px"}),p.p8.registerPlugin(tE);var tP=p.p8.registerPlugin(tE)||p.p8;tP.core.Tween},8679:function(t,e,n){"use strict";var i=n(7109),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(t){return i.isMemo(t)?s:a[t.$$typeof]||r}a[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[i.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;t.exports=function t(e,n,i){if("string"!=typeof n){if(p){var r=f(n);r&&r!==p&&t(e,r,i)}var s=c(n);h&&(s=s.concat(h(n)));for(var a=l(e),m=l(n),g=0;g<s.length;++g){var v=s[g];if(!o[v]&&!(i&&i[v])&&!(m&&m[v])&&!(a&&a[v])){var y=d(n,v);try{u(e,v,y)}catch(t){}}}}return e}},6103:function(t,e){"use strict";var n="function"==typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,h=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case i:switch(t=t.type){case c:case h:case o:case a:case s:case f:return t;default:switch(t=t&&t.$$typeof){case u:case d:case g:case m:case l:return t;default:return e}}case r:return e}}}function S(t){return b(t)===h}e.AsyncMode=c,e.ConcurrentMode=h,e.ContextConsumer=u,e.ContextProvider=l,e.Element=i,e.ForwardRef=d,e.Fragment=o,e.Lazy=g,e.Memo=m,e.Portal=r,e.Profiler=a,e.StrictMode=s,e.Suspense=f,e.isAsyncMode=function(t){return S(t)||b(t)===c},e.isConcurrentMode=S,e.isContextConsumer=function(t){return b(t)===u},e.isContextProvider=function(t){return b(t)===l},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===i},e.isForwardRef=function(t){return b(t)===d},e.isFragment=function(t){return b(t)===o},e.isLazy=function(t){return b(t)===g},e.isMemo=function(t){return b(t)===m},e.isPortal=function(t){return b(t)===r},e.isProfiler=function(t){return b(t)===a},e.isStrictMode=function(t){return b(t)===s},e.isSuspense=function(t){return b(t)===f},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===h||t===a||t===s||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===g||t.$$typeof===m||t.$$typeof===l||t.$$typeof===u||t.$$typeof===d||t.$$typeof===y||t.$$typeof===w||t.$$typeof===x||t.$$typeof===v)},e.typeOf=b},7109:function(t,e,n){"use strict";
1t.exports=n(6103)},1296:function(t,e,n){var i=0/0,r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,h=u||c||Function("return this")(),d=Object.prototype.toString,f=Math.max,p=Math.min,m=function(){return h.Date.now()};function g(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function v(t){if("number"==typeof t)return t;if("symbol"==typeof(e=t)||e&&"object"==typeof e&&"[object Symbol]"==d.call(e))return i;if(g(t)){var e,n="function"==typeof t.valueOf?t.valueOf():t;t=g(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(r,"");var u=s.test(t);return u||a.test(t)?l(t.slice(2),u?2:8):o.test(t)?i:+t}t.exports=function(t,e,n){var i,r,o,s,a,l,u=0,c=!1,h=!1,d=!0;if("function"!=typeof t)throw TypeError("Expected a function");function y(e){var n=i,o=r;return i=r=void 0,u=e,s=t.apply(o,n)}function w(t){var n=t-l,i=t-u;return void 0===l||n>=e||n<0||h&&i>=o}function x(){var t,n,i,r=m();if(w(r))return b(r);a=setTimeout(x,(t=r-l,n=r-u,i=e-t,h?p(i,o-n):i))}function b(t){return(a=void 0,d&&i)?y(t):(i=r=void 0,s)}function S(){var t,n=m(),o=w(n);if(i=arguments,r=this,l=n,o){if(void 0===a)return u=t=l,a=setTimeout(x,e),c?y(t):s;if(h)return a=setTimeout(x,e),y(l)}return void 0===a&&(a=setTimeout(x,e)),s}return e=v(e)||0,g(n)&&(c=!!n.leading,o=(h="maxWait"in n)?f(v(n.maxWait)||0,e):o,d="trailing"in n?!!n.trailing:d),S.cancel=function(){void 0!==a&&clearTimeout(a),u=0,i=l=r=a=void 0},S.flush=function(){return void 0===a?s:b(m())},S}},7415:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"actionAsyncStorage",{enumerable:!0,get:function(){return i}});let i=(0,n(4991).createAsyncLocalStorage)();("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},3781:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"actionAsyncStorage",{enumerable:!0,get:function(){return i.actionAsyncStorage}});let i=n(7415);("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},4991:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class i{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let r=globalThis.AsyncLocalStorage;function o(){return r?new r:new i}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},4906:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{ReadonlyURLSearchParams:function(){return l.ReadonlyURLSearchParams},RedirectType:function(){return l.RedirectType},ServerInsertedHTMLContext:function(){return u.ServerInsertedHTMLContext},notFound:function(){return l.notFound},permanentRedirect:function(){return l.permanentRedirect},redirect:function(){return l.redirect},useParams:function(){return f},usePathname:function(){return h},useRouter:function(){return d},useSearchParams:function(){return c},useSelectedLayoutSegment:function(){return m},useSelectedLayoutSegments:function(){return p},useServerInsertedHTML:function(){return u.useServerInsertedHTML}});let i=n(7294),r=n(6555),o=n(5948),s=n(9749),a=n(9418),l=n(9066),u=n(4515);function c(){let t=(0,i.useContext)(o.SearchParamsContext);return(0,i.useMemo)(()=>t?new l.ReadonlyURLSearchParams(t):null,[t])}function h(){return(0,i.useContext)(o.PathnameContext)}function d(){let t=(0,i.useContext)(r.AppRouterContext);if(null===t)throw Error("invariant expected app router to be mou
1nted");return t}function f(){return(0,i.useContext)(o.PathParamsContext)}function p(t){void 0===t&&(t="children");let e=(0,i.useContext)(r.LayoutRouterContext);return e?function t(e,n,i,r){let o;if(void 0===i&&(i=!0),void 0===r&&(r=[]),i)o=e[1][n];else{var l;let t=e[1];o=null!=(l=t.children)?l:Object.values(t)[0]}if(!o)return r;let u=o[0],c=(0,s.getSegmentValue)(u);return!c||c.startsWith(a.PAGE_SEGMENT_KEY)?r:(r.push(c),t(o,n,!1,r))}(e.tree,t):null}function m(t){void 0===t&&(t="children");let e=p(t);if(!e||0===e.length)return null;let n="children"===t?e[0]:e[e.length-1];return n===a.DEFAULT_SEGMENT_KEY?null:n}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},9066:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{ReadonlyURLSearchParams:function(){return s},RedirectType:function(){return i.RedirectType},notFound:function(){return r.notFound},permanentRedirect:function(){return i.permanentRedirect},redirect:function(){return i.redirect}});let i=n(3249),r=n(6788);class o extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class s extends URLSearchParams{append(){throw new o}delete(){throw new o}set(){throw new o}sort(){throw new o}}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},6788:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{isNotFoundError:function(){return r},notFound:function(){return i}});let n="NEXT_NOT_FOUND";function i(){let t=Error(n);throw t.digest=n,t}function r(t){return"object"==typeof t&&null!==t&&"digest"in t&&t.digest===n}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},6554:function(t,e){"use strict";var n,i;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RedirectStatusCode",{enumerable:!0,get:function(){return n}}),(i=n||(n={}))[i.SeeOther=303]="SeeOther",i[i.TemporaryRedirect=307]="TemporaryRedirect",i[i.PermanentRedirect=308]="PermanentRedirect",("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},3249:function(t,e,n){"use strict";var i,r;Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{RedirectType:function(){return i},getRedirectError:function(){return u},getRedirectStatusCodeFromError:function(){return m},getRedirectTypeFromError:function(){return p},getURLFromRedirectError:function(){return f},isRedirectError:function(){return d},permanentRedirect:function(){return h},redirect:function(){return c}});let o=n(9826),s=n(3781),a=n(6554),l="NEXT_REDIRECT";function u(t,e,n){void 0===n&&(n=a.RedirectStatusCode.TemporaryRedirect);let i=Error(l);i.digest=l+";"+e+";"+t+";"+n+";";let r=o.requestAsyncStorage.getStore();return r&&(i.mutableCookies=r.mutableCookies),i}function c(t,e){void 0===e&&(e="replace");let n=s.actionAsyncStorage.getStore();throw u(t,e,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.TemporaryRedirect)}function h(t,e){void 0===e&&(e="replace");let n=s.actionAsyncStorage.getStore();throw u(t,e,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.PermanentRedirect)}function d(t){if("object"!=typeof t||null===t||!("digest"in t)||"string"!=typeof t.digest)return!1;let[e,n,i,r]=t.digest.split(";",4),o=Number(r);
1return e===l&&("replace"===n||"push"===n)&&"string"==typeof i&&!isNaN(o)&&o in a.RedirectStatusCode}function f(t){return d(t)?t.digest.split(";",3)[2]:null}function p(t){if(!d(t))throw Error("Not a redirect error");return t.digest.split(";",2)[1]}function m(t){if(!d(t))throw Error("Not a redirect error");return Number(t.digest.split(";",4)[3])}(r=i||(i={})).push="push",r.replace="replace",("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},1549:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"requestAsyncStorage",{enumerable:!0,get:function(){return i}});let i=(0,n(4991).createAsyncLocalStorage)();("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},9826:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{getExpectedRequestStore:function(){return r},requestAsyncStorage:function(){return i.requestAsyncStorage}});let i=n(1549);function r(t){let e=i.requestAsyncStorage.getStore();if(e)return e;throw Error("`"+t+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},9749:function(t,e){"use strict";function n(t){return Array.isArray(t)?t[1]:t}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},4515:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{ServerInsertedHTMLContext:function(){return r},useServerInsertedHTML:function(){return o}});let i=n(1757)._(n(7294)),r=i.default.createContext(null);function o(t){let e=(0,i.useContext)(r);e&&e(t)}},1399:function(){},9332:function(t,e,n){t.exports=n(4906)},4853:function(t,e,n){"use strict";n.d(e,{Z:function(){return x}});var i,r,o=n(7294),s=n(5697),a=n.n(s),l=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function u(){return(u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function c(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}
1function h(t,e){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var d=function(t){function e(){var e;return(e=t.call(this)||this).handleExpired=e.handleExpired.bind(c(e)),e.handleErrored=e.handleErrored.bind(c(e)),e.handleChange=e.handleChange.bind(c(e)),e.handleRecaptchaRef=e.handleRecaptchaRef.bind(c(e)),e}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,h(e,t);var n=e.prototype;return n.getCaptchaFunction=function(t){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[t]:this.props.grecaptcha[t]:null},n.getValue=function(){var t=this.getCaptchaFunction("getResponse");return t&&void 0!==this._widgetId?t(this._widgetId):null},n.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},n.execute=function(){var t=this.getCaptchaFunction("execute");if(t&&void 0!==this._widgetId)return t(this._widgetId);this._executeRequested=!0},n.executeAsync=function(){var t=this;return new Promise(function(e,n){t.executionResolve=e,t.executionReject=n,t.execute()})},n.reset=function(){var t=this.getCaptchaFunction("reset");t&&void 0!==this._widgetId&&t(this._widgetId)},n.forceReset=function(){var t=this.getCaptchaFunction("reset");t&&t()},n.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},n.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},n.handleChange=function(t){this.props.onChange&&this.props.onChange(t),this.executionResolve&&(this.executionResolve(t),delete this.executionReject,delete this.executionResolve)},n.explicitRender=function(){var t=this.getCaptchaFunction("render");if(t&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=t(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},n.componentDidMount=function(){this.explicitRender()},n.componentDidUpdate=function(){this.explicitRender()},n.handleRecaptchaRef=function(t){this.captcha=t},n.render=function(){var t=this.props,e=(t.sitekey,t.onChange,t.theme,t.type,t.tabindex,t.onExpired,t.onErrored,t.size,t.stoken,t.grecaptcha,t.badge,t.hl,t.isolated,function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,l));return o.createElement("div",u({},e,{ref:this.handleRecaptchaRef}))},e}(o.Component);d.displayName="ReCAPTCHA",d.propTypes={sitekey:a().string.isRequired,onChange:a().func,grecaptcha:a().object,theme:a().oneOf(["dark","light"]),type:a().oneOf(["image","audio"]),tabindex:a().number,onExpired:a().func,onErrored:a().func,size:a().oneOf(["compact","normal","invisible"]),stoken:a().string,hl:a().string,badge:a().oneOf(["bottomright","bottomleft","inline"]),isolated:a().bool},d.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var f=n(8679),p=n.n(f);function m(){return(m=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var g={},v=0,y="onloadcallback";function w(){return"undefined"!=typeof window&&window.recaptchaOptions||{}}var x=(i=function(){var t=w(),e=t.useRecaptchaNet?"recaptcha.net":"www.google.com";return t.enterprise?"https://"+e+"/recaptcha/enterprise.js?onload="+y+"&render=explicit":"https://"+e+"/recaptcha/api.js?onload="+y+"&render=explicit"},r=(r={callbackName:y,globalName:"grecaptcha",attributes:w().nonce?{nonce:w().nonce}:{}})||{},function(t){var e=t.displayName||t.name||"Component",n=function(e){function n(t,n){var i;return(i=e.call(this,t,n)||this).state={},i.__scriptURL="",i}n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e;var s=n.prototype;return s.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+v++),this.__scriptLoaderID},s.setupScriptURL=function(){return this.__scriptURL="function"==typeof i?i():i,this.__scriptURL},s.asyncScriptLoaderHandleLoad=function(t){var e=this;this.setState(t,function(){return e.props.asyncScriptOnLoad&&e.props.asyncScriptOnLoad(e.state)})},s.asyncScriptLoaderTriggerOnScriptLoaded=function(){var t=g[this.__scriptURL];if(!t||!t.loaded)throw Error("Script is not loaded.");for(var e in t.observers)t.observers[e](t);delete window[r.callbackName]},s.componentDidMount=function(){var t=this,e=this.setupScriptURL(),n=this.asyncScriptLoaderGetScriptLoaderID(),i=r,o=i.globalName,s=i.callbackName,a=i.scriptId;if(o&&void 0!==window[o]&&(g[e]={loaded:!0,observers:{}}),g[e]){var l=g[e];if(l&&(l.loaded||l.errored)){this.asyncScriptLoaderHandleLoad(l);return}l.observers[n]=function(e){return t.asyncScriptLoaderHandleLoad(e)};return}var u={};u[n]=function(e){return t.asyncScriptLoaderHandleLoad(e)},g[e]={loaded:!1,observers:u};var c=document.createElement("script");for(var h in c.src=e,c.async=!0,r.attributes)c.setAttribute(h,r.attributes[h]);a&&(c.id=a);var d=function(t){if(g[e]){var n=g[e].observers;for(var i in n)t(n[i])&&delete n[i]}};s&&"undefined"!=typeof window&&(window[s]=function(){return t.asyncScriptLoaderTriggerOnScriptLoaded()}),c.onload=function(){var t=g[e];t&&(t.loaded=!0,d(function(e){return!s&&(e(t),!0)}))},c.onerror=function(){var t=g[e];t&&(t.errored=!0,d(function(e){return e(t),!0}))},document.body.appendChild(c)},s.componentWillUnmount=function(){var t=this.__scriptURL;if(!0===r.removeOnUnmount)for(var e=document.getElementsByTagName("script"),n=0;n<e.length;n+=1)e[n].src.indexOf(t)>-1&&e[n].parentNode&&e[n].parentNode.removeChild(e[n]);var i=g[t];i&&(delete i.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===r.removeOnUnmount&&delete g[t])},s.render=function(){var e=r.globalName,n=this.props,i=(n.asyncScriptOnLoad,n.forwardedRef),s=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e.indexOf(n=o[i])>=0||(r[n]=t[n]);return r}(n,["asyncScriptOnLoad","forwardedRef"]);return e&&"undefined"!=typeof window&&(s[e]=void 0!==window[e]?window[e]:void 0),s.ref=i,(0,o.createElement)(t,s)},n}(o.Component),s=(0,o.forwardRef)(function(t,e){return(0,o.createElement)(n,m({},t,{forwardedRef:e}))});return s.displayName="AsyncScriptLoader("+e+")",s.propTypes={asyncScriptOnLoad:a().func},p()(s,t)})(d)},6574:function(t,e,n){"use strict";let i;n.d(e,{VY:function(){return eh},dk:function(){return ef},$N:function(){return t8},aV:function(){return ec},h_:function(){return eu},fC:function(){return el},Dx:function(){return ed}});var r,o,s,a,l,u,c,h,d=n(7294),f=n.t(d,2);function p(t,e,{checkForDefaultPrevented:n=!0}={}){return function(i){if(t?.(i),!1===n||!i.defaultPrevented)return e?.(i)}}function m(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}function g(...t){return e=>{let n=!1,i=t.map(t=>{let i=m(t,e);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let e=0;e<i.length;e++){let n=i[e];"function"==typeof n?n():m(t[e],null)}}}}function v(...t){return d.useCallback(g(...t),t)}"undefined"!=typeof window&&window.document&&window.document.createElement;var y=n(5893),w=globalThis?.document?d.useLayoutEffect:()=>{},x=f[" useId ".trim().toString()]||(()=>void 0),b=0;
1function S(t){let[e,n]=d.useState(x());return w(()=>{t||n(t=>t??String(b++))},[t]),t||(e?`radix-${e}`:"")}var E=f[" useInsertionEffect ".trim().toString()]||w;Symbol("RADIX:SYNC_STATE");var P=n(3935);function T(t){let e=function(t){let e=d.forwardRef((t,e)=>{let{children:n,...i}=t;if(d.isValidElement(n)){let t,r;let o=(t=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?n.ref:(t=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?n.props.ref:n.props.ref||n.ref,s=function(t,e){let n={...e};for(let i in e){let r=t[i],o=e[i];/^on[A-Z]/.test(i)?r&&o?n[i]=(...t)=>{let e=o(...t);return r(...t),e}:r&&(n[i]=r):"style"===i?n[i]={...r,...o}:"className"===i&&(n[i]=[r,o].filter(Boolean).join(" "))}return{...t,...n}}(i,n.props);return n.type!==d.Fragment&&(s.ref=e?g(e,o):o),d.cloneElement(n,s)}return d.Children.count(n)>1?d.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}(t),n=d.forwardRef((t,n)=>{let{children:i,...r}=t,o=d.Children.toArray(i),s=o.find(M);if(s){let t=s.props.children,i=o.map(e=>e!==s?e:d.Children.count(t)>1?d.Children.only(null):d.isValidElement(t)?t.props.children:null);return(0,y.jsx)(e,{...r,ref:n,children:d.isValidElement(t)?d.cloneElement(t,void 0,i):null})}return(0,y.jsx)(e,{...r,ref:n,children:i})});return n.displayName=`${t}.Slot`,n}var C=Symbol("radix.slottable");function M(t){return d.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===C}var A=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,e)=>{let n=T(`Primitive.${e}`),i=d.forwardRef((t,i)=>{let{asChild:r,...o}=t,s=r?n:e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,y.jsx)(s,{...o,ref:i}
1)});return i.displayName=`Primitive.${e}`,{...t,[e]:i}},{});function R(t){let e=d.useRef(t);return d.useEffect(()=>{e.current=t}),d.useMemo(()=>(...t)=>e.current?.(...t),[])}var O="dismissableLayer.update",k=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_=d.forwardRef((t,e)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:r,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...l}=t,u=d.useContext(k),[h,f]=d.useState(null),m=h?.ownerDocument??globalThis?.document,[,g]=d.useState({}),w=v(e,t=>f(t)),x=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),S=x.indexOf(b),E=h?x.indexOf(h):-1,P=u.layersWithOutsidePointerEventsDisabled.size>0,T=E>=S,C=function(t,e=globalThis?.document){let n=R(t),i=d.useRef(!1),r=d.useRef(()=>{});return d.useEffect(()=>{let t=t=>{if(t.target&&!i.current){let i=function(){L("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})},o={originalEvent:t};"touch"===t.pointerType?(e.removeEventListener("click",r.current),r.current=i,e.addEventListener("click",r.current,{once:!0})):i()}else e.removeEventListener("click",r.current);i.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",t)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",t),e.removeEventListener("click",r.current)}},[e,n]),{onPointerDownCapture:()=>i.current=!0}}(t=>{let e=t.target,n=[...u.branches].some(t=>t.contains(e));!T||n||(r?.(t),s?.(t),t.defaultPrevented||a?.())},m),M=function(t,e=globalThis?.document){let n=R(t),i=d.useRef(!1);return d.useEffect(()=>{let t=t=>{t.target&&!i.current&&L("dismissableLayer.focusOutside",n,{originalEvent:t},{discrete:!1})};return e.addEventListener("focusin",t),()=>e.removeEventListener("focusin",t)},[e,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(t=>{let e=t.target;[...u.branches].some(t=>t.contains(e))||(o?.(t),s?.(t),t.defaultPrevented||a?.())},m);return!function(t,e=globalThis?.document){let n=R(t);d.useEffect(()=>{let t=t=>{"Escape"===t.key&&n(t)};return e.addEventListener("keydown",t,{capture:!0}),()=>e.removeEventListener("keydown",t,{capture:!0})},[n,e])}(t=>{E!==u.layers.size-1||(i?.(t),!t.defaultPrevented&&a&&(t.preventDefault(),a()))},m),d.useEffect(()=>{if(h)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(c=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),D(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=c)}},[h,m,n,u]),d.useEffect(()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),D())},[h,u]),d.useEffect(()=>{let t=()=>g({});return document.addEventListener(O,t),()=>document.removeEventListener(O,t)},[]),(0,y.jsx)(A.div,{...l,ref:w,style:{pointerEvents:P?T?"auto":"none":void 0,...t.style},onFocusCapture:p(t.onFocusCapture,M.onFocusCapture),onBlurCapture:p(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:p(t.onPointerDownCapture,C.onPointerDownCapture)})});function D(){let t=new CustomEvent(O);document.dispatchEvent(t)}function L(t,e,n,{discrete:i}){let r=n.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});(e&&r.addEventListener(t,e,{once:!0}),i)?r&&P.flushSync(()=>r.dispatchEvent(o)):r.dispatchEvent(o)}_.displayName="DismissableLayer",d.forwardRef((t,e)=>{let n=d.useContext(k),i=d.useRef(null),r=v(e,i);return d.useEffect(()=>{let t=i.current;if(t)return n.branches.add(t),()=>{n.branches.delete(t)}},[n.branches]),(0,y.jsx)(A.div,{...t,ref:r})}).displayName="DismissableLayerBranch";var j="focusScope.autoFocusOnMount",I="focusScope.autoFocusOnUnmount",F={bubbles:!1,cancelable:!0},N=d.forwardRef((t,e)=>{let{loop:n=!1,trapped:i=!1,onMountAutoFocus:r,onUnmountAutoFocus:o,...s}=t,[a,l]=d.useState(null),u=R(r),c=R(o),h=d.useRef(null),f=v(e,t=>l(t)),p=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(i){let t=function(t){if(p.paused||!a)return;let e=t.target;a.contains(e)?h.current=e:z(h.current,{select:!0})},e=function(t){if(p.paused||!a)return;let e=t.relatedTarget;null===e||a.contains(e)||z(h.current,{select:!0})};document.addEventListener("focusin",t),document.addEventListener("focusout",e);let n=new MutationObserver(function(t){if(document.activeElement===document.body)for(let e of t)e.removedNodes.length>0&&z(a)});return a&&n.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",t),document.removeEventListener("focusout",e),n.disconnect()}}},[i,a,p.paused]),d.useEffect(()=>{if(a){B.add(p);let t=document.activeElement;if(!a.contains(t)){let e=new CustomEvent(j,F);a.addEventListener(j,u),a.dispatchEvent(e),e.defaultPrevented||(function(t,{select:e=!1}={}){let n=document.activeElement;for(let i of t)if(z(i,{select:e}),document.activeElement!==n)return}(V(a).filter(t=>"A"!==t.tagName),{select:!0}),document.activeElement===t&&z(a))}return()=>{a.removeEventListener(j,u),setTimeout(()=>{let e=new CustomEvent(I,F);a.addEventListener(I,c),a.dispatchEvent(e),e.defaultPrevented||z(t??document.body,{select:!0}),a.removeEventListener(I,c),B.remove(p)}
1,0)}}},[a,u,c,p]);let m=d.useCallback(t=>{if(!n&&!i||p.paused)return;let e="Tab"===t.key&&!t.altKey&&!t.ctrlKey&&!t.metaKey,r=document.activeElement;if(e&&r){let e=t.currentTarget,[i,o]=function(t){let e=V(t);return[W(e,t),W(e.reverse(),t)]}(e);i&&o?t.shiftKey||r!==o?t.shiftKey&&r===i&&(t.preventDefault(),n&&z(o,{select:!0})):(t.preventDefault(),n&&z(i,{select:!0})):r===e&&t.preventDefault()}},[n,i,p.paused]);return(0,y.jsx)(A.div,{tabIndex:-1,...s,ref:f,onKeyDown:m})});function V(t){let e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{let e="INPUT"===t.tagName&&"hidden"===t.type;return t.disabled||t.hidden||e?NodeFilter.FILTER_SKIP:t.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function W(t,e){for(let n of t)if(!function(t,{upTo:e}){if("hidden"===getComputedStyle(t).visibility)return!0;for(;t&&(void 0===e||t!==e);){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(n,{upTo:e}))return n}function z(t,{select:e=!1}={}){if(t&&t.focus){var n;let i=document.activeElement;t.focus({preventScroll:!0}),t!==i&&(n=t)instanceof HTMLInputElement&&"select"in n&&e&&t.select()}}N.displayName="FocusScope";var B=(i=[],{add(t){let e=i[0];t!==e&&e?.pause(),(i=$(i,t)).unshift(t)},remove(t){i=$(i,t),i[0]?.resume()}});function $(t,e){let n=[...t],i=n.indexOf(e);return -1!==i&&n.splice(i,1),n}var U=d.forwardRef((t,e)=>{let{container:n,...i}=t,[r,o]=d.useState(!1);w(()=>o(!0),[]);let s=n||r&&globalThis?.document?.body;return s?P.createPortal((0,y.jsx)(A.div,{...i,ref:e}),s):null});U.displayName="Portal";var X=t=>{let e,n;let{present:i,children:r}=t,o=function(t){var e,n;let[i,r]=d.useState(),o=d.useRef(null),s=d.useRef(t),a=d.useRef("none"),[l,u]=(e=t?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},d.useReducer((t,e)=>n[t][e]??t,e));return d.useEffect(()=>{let t=Y(o.current);a.current="mounted"===l?t:"none"},[l]),w(()=>{let e=o.current,n=s.current;if(n!==t){let i=a.current,r=Y(e);t?u("MOUNT"):"none"===r||e?.display==="none"?u("UNMOUNT"):n&&i!==r?u("ANIMATION_OUT"):u("UNMOUNT"),s.current=t}},[t,u]),w(()=>{if(i){let t;let e=i.ownerDocument.defaultView??window,n=n=>{let r=Y(o.current).includes(CSS.escape(n.animationName));if(n.target===i&&r&&(u("ANIMATION_END"),!s.current)){let n=i.style.animationFillMode;i.style.animationFillMode="forwards",t=e.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=n)})}},r=t=>{t.target===i&&(a.current=Y(o.current))};return i.addEventListener("animationstart",r),i.addEventListener("animationcancel",n),i.addEventListener("animationend",n),()=>{e.clearTimeout(t),i.removeEventListener("animationstart",r),i.removeEventListener("animationcancel",n),i.removeEventListener("animationend",n)}}u("ANIMATION_END")},[i,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:d.useCallback(t=>{o.current=t?getComputedStyle(t):null,r(t)},[])}}(i),s="function"==typeof r?r({present:o.isPresent}):d.Children.only(r),a=v(o.ref,(e=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?s.ref:(e=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?s.props.ref:s.props.ref||s.ref);return"function"==typeof r||o.isPresent?d.cloneElement(s,{ref:a}):null};function Y(t){return t?.animationName||"none"}X.displayName="Presence";var H=0;function q(){let t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var K=function(){return(K=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function Z(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&0>e.indexOf(i)&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)0>e.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n}"function"==typeof SuppressedError&&SuppressedError;var G="right-scroll-bar-position",J="width-before-scroll-bar";function Q(t,e){return"function"==typeof t?t(e):t&&(t.current=e),t}var tt="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,te=ne
1w WeakMap,tn=(void 0===r&&(r={}),(void 0===o&&(o=function(t){return t}),s=[],a=!1,l={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return s.length?s[s.length-1]:null},useMedium:function(t){var e=o(t,a);return s.push(e),function(){s=s.filter(function(t){return t!==e})}},assignSyncMedium:function(t){for(a=!0;s.length;){var e=s;s=[],e.forEach(t)}s={push:function(e){return t(e)},filter:function(){return s}}},assignMedium:function(t){a=!0;var e=[];if(s.length){var n=s;s=[],n.forEach(t),e=s}var i=function(){var n=e;e=[],n.forEach(t)},r=function(){return Promise.resolve().then(i)};r(),s={push:function(t){e.push(t),r()},filter:function(t){return e=e.filter(t),s}}}}).options=K({async:!0,ssr:!1},r),l),ti=function(){},tr=d.forwardRef(function(t,e){var n,i,r,o,s=d.useRef(null),a=d.useState({onScrollCapture:ti,onWheelCapture:ti,onTouchMoveCapture:ti}),l=a[0],u=a[1],c=t.forwardProps,h=t.children,f=t.className,p=t.removeScrollBar,m=t.enabled,g=t.shards,v=t.sideCar,y=t.noRelative,w=t.noIsolation,x=t.inert,b=t.allowPinchZoom,S=t.as,E=t.gapMode,P=Z(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=(n=[s,e],i=function(t){return n.forEach(function(e){return Q(e,t)})},(r=(0,d.useState)(function(){return{value:null,callback:i,facade:{get current(){return r.value},set current(value){var t=r.value;t!==value&&(r.value=value,r.callback(value,t))}}}})[0]).callback=i,o=r.facade,tt(function(){var t=te.get(o);if(t){var e=new Set(t),i=new Set(n),r=o.current;e.forEach(function(t){i.has(t)||Q(t,null)}),i.forEach(function(t){e.has(t)||Q(t,r)})}te.set(o,n)},[n]),o),C=K(K({},P),l);return d.createElement(d.Fragment,null,m&&d.createElement(v,{sideCar:tn,removeScrollBar:p,shards:g,noRelative:y,noIsolation:w,inert:x,setCallbacks:u,allowPinchZoom:!!b,lockRef:s,gapMode:E}),c?d.cloneElement(d.Children.only(h),K(K({},C),{ref:T})):d.createElement(void 0===S?"div":S,K({},C,{className:f,ref:T}),h))});tr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tr.classNames={fullWidth:J,zeroRight:G};var to=function(t){var e=t.sideCar,n=Z(t,["sideCar"]);if(!e)throw Error("Sidecar: please provide `sideCar` property to import the right car");var i=e.read();if(!i)throw Error("Sidecar medium not found");return d.createElement(i,K({},n))};to.isSideCarExport=!0;var ts=function(){var t=0,e=null;return{add:function(i){if(0==t&&(e=function(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=h||n.nc;return e&&t.setAttribute("nonce",e),t}())){var r,o;(r=e).styleSheet?r.styleSheet.cssText=i:r.appendChild(document.createTextNode(i)),o=e,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}t++},remove:function(){--t||!e||(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},ta=function(){var t=ts();return function(e,n){d.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},tl=function(){var t=ta();return function(e){return t(e.styles,e.dynamic),null}},tu={left:0,top:0,right:0,gap:0},tc=function(t){return parseInt(t||"",10)||0},th=function(t){var e=window.getComputedStyle(document.body),n=e["padding"===t?"paddingLeft":"marginLeft"],i=e["padding"===t?"paddingTop":"marginTop"],r=e["padding"===t?"paddingRight":"marginRight"];return[tc(n),tc(i),tc(r)]},td=function(t){if(void 0===t&&(t="margin"),"undefined"==typeof window)return tu;var e=th(t),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,i-n+e[2]-e[0])}},tf=tl(),tp="data-scroll-locked",tm=function(t,e,n,i){var r=t.left,o=t.top,s=t.right,a=t.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(i,";\n   padding-right: ").concat(a,"px ").concat(i,";\n  }\n  body[").concat(tp,"] {\n    overflow: hidden ").concat(i,";\n    overscroll-behavior: contain;\n    ").concat([e&&"position: relative ".concat(i,";"),"margin"===n&&"\n    padding-left: ".concat(r,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(s,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(a,"px ").concat(i,";\n    "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(i,";
1")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(G," {\n    right: ").concat(a,"px ").concat(i,";\n  }\n  \n  .").concat(J," {\n    margin-right: ").concat(a,"px ").concat(i,";\n  }\n  \n  .").concat(G," .").concat(G," {\n    right: 0 ").concat(i,";\n  }\n  \n  .").concat(J," .").concat(J," {\n    margin-right: 0 ").concat(i,";\n  }\n  \n  body[").concat(tp,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n  }\n")},tg=function(){var t=parseInt(document.body.getAttribute(tp)||"0",10);return isFinite(t)?t:0},tv=function(){d.useEffect(function(){return document.body.setAttribute(tp,(tg()+1).toString()),function(){var t=tg()-1;t<=0?document.body.removeAttribute(tp):document.body.setAttribute(tp,t.toString())}},[])},ty=function(t){var e=t.noRelative,n=t.noImportant,i=t.gapMode,r=void 0===i?"margin":i;tv();var o=d.useMemo(function(){return td(r)},[r]);return d.createElement(tf,{styles:tm(o,!e,r,n?"":"!important")})},tw=!1;if("undefined"!=typeof window)try{var tx=Object.defineProperty({},"passive",{get:function(){return tw=!0,!0}});window.addEventListener("test",tx,tx),window.removeEventListener("test",tx,tx)}catch(t){tw=!1}var tb=!!tw&&{passive:!1},tS=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return"hidden"!==n[e]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==t.tagName&&"visible"===n[e])},tE=function(t,e){var n=e.ownerDocument,i=e;do{if("undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot&&(i=i.host),tP(t,i)){var r=tT(t,i);if(r[1]>r[2])return!0}i=i.parentNode}while(i&&i!==n.body);return!1},tP=function(t,e){return"v"===t?tS(e,"overflowY"):tS(e,"overflowX")},tT=function(t,e){return"v"===t?[e.scrollTop,e.scrollHeight,e.clientHeight]:[e.scrollLeft,e.scrollWidth,e.clientWidth]},tC=function(t,e,n,i,r){var o,s=(o=window.getComputedStyle(e).direction,"h"===t&&"rtl"===o?-1:1),a=s*i,l=n.target,u=e.contains(l),c=!1,h=a>0,d=0,f=0;do{if(!l)break;var p=tT(t,l),m=p[0],g=p[1]-p[2]-s*m;(m||g)&&tP(t,l)&&(d+=g,f+=m);var v=l.parentNode;l=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!u&&l!==document.body||u&&(e.contains(l)||e===l));return h&&(r&&1>Math.abs(d)||!r&&a>d)?c=!0:!h&&(r&&1>Math.abs(f)||!r&&-a>f)&&(c=!0),c},tM=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},tA=function(t){return[t.deltaX,t.deltaY]},tR=function(t){return t&&"current"in t?t.current:t},tO=0,tk=[],t_=(u=function(t){var e=d.useRef([]),n=d.useRef([0,0]),i=d.useRef(),r=d.useState(tO++)[0],o=d.useState(tl)[0],s=d.useRef(t);d.useEffect(function(){s.current=t},[t]),d.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(r));var e=(function(t,e,n){if(n||2==arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))})([t.lockRef.current],(t.shards||[]).map(tR),!0).filter(Boolean);return e.forEach(function(t){return t.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),e.forEach(function(t){return t.classList.remove("allow-interactivity-".concat(r))})}}},[t.inert,t.lockRef.current,t.shards]);var a=d.useCallback(function(t,e){if("touches"in t&&2===t.touches.length||"wheel"===t.type&&t.ctrlKey)return!s.current.allowPinchZoom;var r,o=tM(t),a=n.current,l="deltaX"in t?t.deltaX:a[0]-o[0],u="deltaY"in t?t.deltaY:a[1]-o[1],c=t.target,h=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in t&&"h"===h&&"range"===c.type)return!1;var d=tE(h,c);if(!d)return!0;if(d?r=h:(r="v"===h?"h":"v",d=tE(h,c)),!d)return!1;if(!i.current&&"changedTouches"in t&&(l||u)&&(i.current=r),!r)return!0;var f=i.current||r;return tC(f,e,t,"h"===f?l:u,!0)},[]),l=d.useCallback(function(t){if(tk.length&&tk[tk.length-1]===o){var n="deltaY"in t?tA(t):tM(t),i=e.current.filter(function(e){var i;return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(i=e.delta)[0]===n[0]&&i[1]===n[1]})[0];if(i&&i.should){t.cancelable&&t.preventDefault();return}
1if(!i){var r=(s.current.shards||[]).map(tR).filter(Boolean).filter(function(e){return e.contains(t.target)});(r.length>0?a(t,r[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),u=d.useCallback(function(t,n,i,r){var o={name:t,delta:n,target:i,should:r,shadowParent:function(t){for(var e=null;null!==t;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}(i)};e.current.push(o),setTimeout(function(){e.current=e.current.filter(function(t){return t!==o})},1)},[]),c=d.useCallback(function(t){n.current=tM(t),i.current=void 0},[]),h=d.useCallback(function(e){u(e.type,tA(e),e.target,a(e,t.lockRef.current))},[]),f=d.useCallback(function(e){u(e.type,tM(e),e.target,a(e,t.lockRef.current))},[]);d.useEffect(function(){return tk.push(o),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",l,tb),document.addEventListener("touchmove",l,tb),document.addEventListener("touchstart",c,tb),function(){tk=tk.filter(function(t){return t!==o}),document.removeEventListener("wheel",l,tb),document.removeEventListener("touchmove",l,tb),document.removeEventListener("touchstart",c,tb)}},[]);var p=t.removeScrollBar,m=t.inert;return d.createElement(d.Fragment,null,m?d.createElement(o,{styles:"\n  .block-interactivity-".concat(r," {pointer-events: none;}\n  .allow-interactivity-").concat(r," {pointer-events: all;}\n")}):null,p?d.createElement(ty,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},tn.useMedium(u),to),tD=d.forwardRef(function(t,e){return d.createElement(tr,K({},t,{ref:e,sideCar:t_}))});tD.classNames=tr.classNames;var tL=new WeakMap,tj=new WeakMap,tI={},tF=0,tN=function(t){return t&&(t.host||tN(t.parentNode))},tV=function(t,e,n,i){var r=(Array.isArray(t)?t:[t]).map(function(t){if(e.contains(t))return t;var n=tN(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t});tI[n]||(tI[n]=new WeakMap);var o=tI[n],s=[],a=new Set,l=new Set(r),u=function(t){!t||a.has(t)||(a.add(t),u(t.parentNode))};r.forEach(u);var c=function(t){!t||l.has(t)||Array.prototype.forEach.call(t.children,function(t){if(a.has(t))c(t);else try{var e=t.getAttribute(i),r=null!==e&&"false"!==e,l=(tL.get(t)||0)+1,u=(o.get(t)||0)+1;tL.set(t,l),o.set(t,u),s.push(t),1===l&&r&&tj.set(t,!0),1===u&&t.setAttribute(n,"true"),r||t.setAttribute(i,"true")}catch(e){console.error("aria-hidden: cannot operate on ",t,e)}})};return c(e),a.clear(),tF++,function(){s.forEach(function(t){var e=tL.get(t)-1,r=o.get(t)-1;tL.set(t,e),o.set(t,r),e||(tj.has(t)||t.removeAttribute(i),tj.delete(t)),r||t.removeAttribute(n)}),--tF||(tL=new WeakMap,tL=new WeakMap,tj=new WeakMap,tI={})}},tW=function(t,e,n){void 0===n&&(n="data-aria-hidden");var i=Array.from(Array.isArray(t)?t:[t]),r=e||("undefined"==typeof document?null:(Array.isArray(t)?t[0]:t).ownerDocument.body);return r?(i.push.apply(i,Array.from(r.querySelectorAll("[aria-live], script"))),tV(i,r,n,"aria-hidden")):function(){return null}},tz="Dialog",[tB,t$]=function(t,e=[]){let n=[],i=()=>{let e=n.map(t=>d.createContext(t));return function(n){let i=n?.[t]||e;return d.useMemo(()=>({[`__scope${t}`]:{...n,[t]:i}}),[n,i])}};return i.scopeName=t,[function(e,i){let r=d.createContext(i),o=n.length;n=[...n,i];let s=e=>{let{scope:n,children:i,...s}=e,a=n?.[t]?.[o]||r,l=d.useMemo(()=>s,Object.values(s));return(0,y.jsx)(a.Provider,{value:l,children:i})};return s.displayName=e+"Provider",[s,function(n,s){let a=s?.[t]?.[o]||r,l=d.useContext(a);if(l)return l;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${e}\``)}]},function(...t){let e=t[0];if(1===t.length)return e;let n=()=>{let n=t.map(t=>({useScope:t(),scopeName:t.scopeName}));return function(t){let i=n.reduce((e,{useScope:n,scopeName:i})=>{let r=n(t)[`__scope${i}`];return{...e,...r}},{});return d.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return n.scopeName=e.scopeName,n}(i,...e)]}(tz),[tU,tX]=tB(tz),tY=t=>{let{__scopeDialog:e,children:n,open:i,defaultOpen:r,onOpenChange:o,modal:s=!0}=t,a=d.useRef(null),l=d.useRef(null),[u,c]=function({prop:t,defaultProp:e,onChange:n=()=>{},caller:i}){let[r,o,s]=function({defaultProp:t,onChange:e}
1){let[n,i]=d.useState(t),r=d.useRef(n),o=d.useRef(e);return E(()=>{o.current=e},[e]),d.useEffect(()=>{r.current!==n&&(o.current?.(n),r.current=n)},[n,r]),[n,i,o]}({defaultProp:e,onChange:n}),a=void 0!==t,l=a?t:r;{let e=d.useRef(void 0!==t);d.useEffect(()=>{let t=e.current;if(t!==a){let e=a?"controlled":"uncontrolled";console.warn(`${i} is changing from ${t?"controlled":"uncontrolled"} to ${e}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}e.current=a},[a,i])}return[l,d.useCallback(e=>{if(a){let n="function"==typeof e?e(t):e;n!==t&&s.current?.(n)}else o(e)},[a,t,o,s])]}({prop:i,defaultProp:r??!1,onChange:o,caller:tz});return(0,y.jsx)(tU,{scope:e,triggerRef:a,contentRef:l,contentId:S(),titleId:S(),descriptionId:S(),open:u,onOpenChange:c,onOpenToggle:d.useCallback(()=>c(t=>!t),[c]),modal:s,children:n})};tY.displayName=tz;var tH="DialogTrigger";d.forwardRef((t,e)=>{let{__scopeDialog:n,...i}=t,r=tX(tH,n),o=v(e,r.triggerRef);return(0,y.jsx)(A.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":en(r.open),...i,ref:o,onClick:p(t.onClick,r.onOpenToggle)})}).displayName=tH;var tq="DialogPortal",[tK,tZ]=tB(tq,{forceMount:void 0}),tG=t=>{let{__scopeDialog:e,forceMount:n,children:i,container:r}=t,o=tX(tq,e);return(0,y.jsx)(tK,{scope:e,forceMount:n,children:d.Children.map(i,t=>(0,y.jsx)(X,{present:n||o.open,children:(0,y.jsx)(U,{asChild:!0,container:r,children:t})}))})};tG.displayName=tq;var tJ="DialogOverlay",tQ=d.forwardRef((t,e)=>{let n=tZ(tJ,t.__scopeDialog),{forceMount:i=n.forceMount,...r}=t,o=tX(tJ,t.__scopeDialog);return o.modal?(0,y.jsx)(X,{present:i||o.open,children:(0,y.jsx)(t1,{...r,ref:e})}):null});tQ.displayName=tJ;var t0=T("DialogOverlay.RemoveScroll"),t1=d.forwardRef((t,e)=>{let{__scopeDialog:n,...i}=t,r=tX(tJ,n);return(0,y.jsx)(tD,{as:t0,allowPinchZoom:!0,shards:[r.contentRef],children:(0,y.jsx)(A.div,{"data-state":en(r.open),...i,ref:e,style:{pointerEvents:"auto",...i.style}})})}),t2="DialogContent",t4=d.forwardRef((t,e)=>{let n=tZ(t2,t.__scopeDialog),{forceMount:i=n.forceMount,...r}=t,o=tX(t2,t.__scopeDialog);return(0,y.jsx)(X,{present:i||o.open,children:o.modal?(0,y.jsx)(t3,{...r,ref:e}):(0,y.jsx)(t5,{...r,ref:e})})});t4.displayName=t2;var t3=d.forwardRef((t,e)=>{let n=tX(t2,t.__scopeDialog),i=d.useRef(null),r=v(e,n.contentRef,i);return d.useEffect(()=>{let t=i.current;if(t)return tW(t)},[]),(0,y.jsx)(t6,{...t,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:p(t.onCloseAutoFocus,t=>{t.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:p(t.onPointerDownOutside,t=>{let e=t.detail.originalEvent,n=0===e.button&&!0===e.ctrlKey;(2===e.button||n)&&t.preventDefault()}),onFocusOutside:p(t.onFocusOutside,t=>t.preventDefault())})}),t5=d.forwardRef((t,e)=>{let n=tX(t2,t.__scopeDialog),i=d.useRef(!1),r=d.useRef(!1);return(0,y.jsx)(t6,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(i.current||n.triggerRef.current?.focus(),e.preventDefault()),i.current=!1,r.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(i.current=!0,"pointerdown"!==e.detail.originalEvent.type||(r.current=!0));let o=e.target;n.triggerRef.current?.contains(o)&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&r.current&&e.preventDefault()}})}),t6=d.forwardRef((t,e)=>{let{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:r,onCloseAutoFocus:o,...s}=t,a=tX(t2,n),l=d.useRef(null),u=v(e,l);return d.useEffect(()=>{let t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??q()),document.body.insertAdjacentElement("beforeend",t[1]??q()),H++,()=>{1===H&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),H--}},[]),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(N,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:r,onUnmountAutoFocus:o,children:(0,y.jsx)(_,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":en(a.open),...s,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(es,{titleId:a.titleId}),(0,y.jsx)(ea,{contentRef:l,descriptionId:a.descriptionId})]})]})}),t9="DialogTitle",t8=d.forwardRef((t,e)=>{let{__scopeDialog:n,...i}=t,r=tX(t9,n);return(0,y.jsx)(A.h2,{id:r.titleId,...i,ref:e})});t8.displayName=t9;var t7="DialogDescription",et=d.forwardRef((t,e)=>{let{__scopeDialog:n,...i}=t,r=tX(t7,n);
1return(0,y.jsx)(A.p,{id:r.descriptionId,...i,ref:e})});et.displayName=t7;var ee="DialogClose";function en(t){return t?"open":"closed"}d.forwardRef((t,e)=>{let{__scopeDialog:n,...i}=t,r=tX(ee,n);return(0,y.jsx)(A.button,{type:"button",...i,ref:e,onClick:p(t.onClick,()=>r.onOpenChange(!1))})}).displayName=ee;var ei="DialogTitleWarning",[er,eo]=function(t,e){let n=d.createContext(e),i=t=>{let{children:e,...i}=t,r=d.useMemo(()=>i,Object.values(i));return(0,y.jsx)(n.Provider,{value:r,children:e})};return i.displayName=t+"Provider",[i,function(i){let r=d.useContext(n);if(r)return r;if(void 0!==e)return e;throw Error(`\`${i}\` must be used within \`${t}\``)}]}(ei,{contentName:t2,titleName:t9,docsSlug:"dialog"}),es=({titleId:t})=>{let e=eo(ei),n=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
2
3If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
4
5For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return d.useEffect(()=>{t&&!document.getElementById(t)&&console.error(n)},[n,t]),null},ea=({contentRef:t,descriptionId:e})=>{let n=eo("DialogDescriptionWarning"),i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n.contentName}}.`;return d.useEffect(()=>{let n=t.current?.getAttribute("aria-describedby");e&&n&&!document.getElementById(e)&&console.warn(i)},[i,t,e]),null},el=tY,eu=tG,ec=tQ,eh=t4,ed=t8,ef=et},9382:function(t,e,n){"use strict";n.d(e,{Z:function(){return T}});var i=n(7294);function r(t){return"[object Object]"===Object.prototype.toString.call(t)||Array.isArray(t)}function o(t,e){let n=Object.keys(t),i=Object.keys(e);return n.length===i.length&&JSON.stringify(Object.keys(t.breakpoints||{}))===JSON.stringify(Object.keys(e.breakpoints||{}))&&n.every(n=>{let i=t[n],s=e[n];return"function"==typeof i?`${i}`==`${s}`:r(i)&&r(s)?o(i,s):i===s})}function s(t){return t.concat().sort((t,e)=>t.name>e.name?1:-1).map(t=>t.options)}function a(t){return"number"==typeof t}function l(t){return"string"==typeof t}function u(t){return"boolean"==typeof t}function c(t){return"[object Object]"===Object.prototype.toString.call(t)}function h(t){return Math.abs(t)}function d(t){return Math.sign(t)}function f(t){return v(t).map(Number)}function p(t){return t[m(t)]}function m(t){return Math.max(0,t.length-1)}function g(t,e=0){return Array.from(Array(t),(t,n)=>e+n)}function v(t){return Object.keys(t)}function y(t,e){return void 0!==e.MouseEvent&&t instanceof e.MouseEvent}function w(){let t=[],e={add:function(n,i,r,o={passive:!0}){let s;return"addEventListener"in n?(n.addEventListener(i,r,o),s=()=>n.removeEventListener(i,r,o)):(n.addListener(r),s=()=>n.removeListener(r)),t.push(s),e},clear:function(){t=t.filter(t=>t())}};return e}function x(t=0,e=0){let n=h(t-e);function i(n){return n<t||n>e}return{length:n,max:e,min:t,constrain:function(n){return i(n)?n<t?t:e:n},reachedAny:i,reachedMax:function(t){return t>e},reachedMin:function(e){return e<t},removeOffset:function(t){return n?t-n*Math.ceil((t-e)/n):t}}}function b(t){let e=t;function n(t){return a(t)?t:t.get()}return{get:function(){return e},set:function(t){e=n(t)},add:function(t){e+=n(t)},subtract:function(t){e-=n(t)}}}function S(t,e){let n="x"===t.scroll?function(t){return`translate3d(${t}px,0px,0px)`}:function(t){return`translate3d(0px,${t}px,0px)`},i=e.style,r=null,o=!1;return{clear:function(){o||(i.transform="",e.getAttribute("style")||e.removeAttribute("style"))},to:function(e){if(o)return;let s=Math.round(100*t.direction(e))/100;s!==r&&(i.transform=n(s),r=s)},toggleActive:function(t){o=!t}}}let E={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function P(t,e,n){let i,r,o,s,T;let C=t.ownerDocument,M=C.defaultView,A=function(t){function e(t,e){return function t(e,n){return[e,n].reduce((e,n)=>
5(v(n).forEach(i=>{let r=e[i],o=n[i],s=c(r)&&c(o);e[i]=s?t(r,o):o}),e),{})}(t,e||{})}return{mergeOptions:e,optionsAtMedia:function(n){let i=n.breakpoints||{},r=v(i).filter(e=>t.matchMedia(e).matches).map(t=>i[t]).reduce((t,n)=>e(t,n),{});return e(n,r)},optionsMediaQueries:function(e){return e.map(t=>v(t.breakpoints||{})).reduce((t,e)=>t.concat(e),[]).map(t.matchMedia)}}}(M),R=(T=[],{init:function(t,e){return(T=e.filter(({options:t})=>!1!==A.optionsAtMedia(t).active)).forEach(e=>e.init(t,A)),e.reduce((t,e)=>Object.assign(t,{[e.name]:e}),{})},destroy:function(){T=T.filter(t=>t.destroy())}}),O=w(),k=function(){let t,e={},n={init:function(e){t=e},emit:function(i){return(e[i]||[]).forEach(e=>e(t,i)),n},off:function(t,i){return e[t]=(e[t]||[]).filter(t=>t!==i),n},on:function(t,i){return e[t]=(e[t]||[]).concat([i]),n},clear:function(){e={}}};return n}(),{mergeOptions:_,optionsAtMedia:D,optionsMediaQueries:L}=A,{on:j,off:I,emit:F}=k,N=!1,V=_(E,P.globalOptions),W=_(V),z=[];function B(e,n){!N&&(W=D(V=_(V,e)),z=n||z,function(){let{container:e,slides:n}=W;o=(l(e)?t.querySelector(e):e)||t.children[0];let i=l(n)?o.querySelectorAll(n):n;s=[].slice.call(i||o.children)}(),i=function e(n){let i=function(t,e,n,i,r,o,s){let c,E;let{align:P,axis:T,direction:C,startIndex:M,loop:A,duration:R,dragFree:O,dragThreshold:k,inViewThreshold:_,slidesToScroll:D,skipSnaps:L,containScroll:j,watchResize:I,watchSlides:F,watchDrag:N,watchFocus:V}=o,W={measure:function(t){let{offsetTop:e,offsetLeft:n,offsetWidth:i,offsetHeight:r}=t;return{top:e,right:n+i,bottom:e+r,left:n,width:i,height:r}}},z=W.measure(e),B=n.map(W.measure),$=function(t,e){let n="rtl"===e,i="y"===t,r=!i&&n?-1:1;return{scroll:i?"y":"x",cross:i?"x":"y",startEdge:i?"top":n?"right":"left",endEdge:i?"bottom":n?"left":"right",measureSize:function(t){let{height:e,width:n}=t;return i?e:n},direction:function(t){return t*r}}}(T,C),U=$.measureSize(z),X={measure:function(t){return t/100*U}},Y=function(t,e){let n={start:function(){return 0},center:function(t){return(e-t)/2},end:function(t){return e-t}};return{measure:function(i,r){return l(t)?n[t](i):t(e,i,r)}}}(P,U),H=!A&&!!j,{slideSizes:q,slideSizesWithGaps:K,startGap:Z,endGap:G}=function(t,e,n,i,r,o){let{measureSize:s,startEdge:a,endEdge:l}=t,u=n[0]&&r,c=function(){if(!u)return 0;let t=n[0];return h(e[a]-t[a])}(),d=u?parseFloat(o.getComputedStyle(p(i)).getPropertyValue(`margin-${l}`)):0,f=n.map(s),g=n.map((t,e,n)=>{let i=e===m(n);return e?i?f[e]+d:n[e+1][a]-t[a]:f[e]+c}).map(h);return{slideSizes:f,slideSizesWithGaps:g,startGap:c,endGap:d}}($,z,B,n,A||!!j,r),J=function(t,e,n,i,r,o,s,l,u){let{startEdge:c,endEdge:d,direction:g}=t,v=a(n);return{groupSlides:function(t){return v?f(t).filter(t=>t%n==0).map(e=>t.slice(e,e+n)):t.length?f(t).reduce((n,a,u)=>{let f=p(n)||0,v=a===m(t),y=r[c]-o[f][c],w=r[c]-o[a][d],x=i||0!==f?0:g(s),b=h(w-(!i&&v?g(l):0)-(y+x));return u&&b>e+2&&n.push(a),v&&n.push(t.length),n},[]).map((e,n,i)=>{let r=Math.max(i[n-1]||0);return t.slice(r,e)}):[]}}}($,U,D,A,z,B,Z,G,0),{snaps:Q,snapsAligned:tt}=function(t,e,n,i,r){let{startEdge:o,endEdge:s}=t,{groupSlides:a}=r,l=a(i).map(t=>p(t)[s]-t[0][o]).map(h).map(e.measure),u=i.map(t=>n[o]-t[o]).map(t=>-h(t)),c=a(u).map(t=>t[0]).map((t,e)=>t+l[e]);return{snaps:u,snapsAligned:c}}($,Y,z,B,J),te=-p(Q)+p(K),{snapsContained:tn,scrollContainLimit:ti}=function(t,e,n,i,r){let o=x(-e+t,0),s=n.map((t,e)=>{let{min:i,max:r}=o,s=o.constrain(t),a=e===m(n);return e?a||1>=h(i-s)?i:1>=h(r-s)?r:s:r}).map(t=>parseFloat(t.toFixed(3))),a=function(){let t=s[0],e=p(s);return x(s.lastIndexOf(t),s.indexOf(e)+1)}();return{snapsContained:function(){if(e<=t+2)return[o.max];if("keepSnaps"===i)return s;let{min:n,max:r}=a;return s.slice(n,r)}(),scrollContainLimit:a}}(U,te,tt,j,0),tr=H?tn:tt,{limit:to}=function(t,e,n){let i=e[0];return{limit:x(n?i-t:p(e),i)}}(te,tr,A),ts=function t(e,n,i){let{constrain:r}=x(0,e),o=e+1,s=a(n);function a(t){return i?h((o+t)%o):r(t)}function l(){return t(e,s,i)}let u={get:function(){return s},set:function(t){return s=a(t),u},add:function(t){return l().set(s+t)},clone:l};return u}(m(tr),M,A),ta=ts.clone(),tl=f(n),tu=({dragHandler:t,scrollBody:e,scrollBounds:n,options:{loop:i}})=>{i||n.constrain(t.pointerDown()),e.seek()},tc=({scrollBody:t,translate:e,location:n,offsetLocation:i,previousLocation:r,scrollLooper:o,slideLooper:s,dragHandler:a,animation:l,eventHandler:u,scrollBounds:c,options:{loop:h}},d)=>{let f=t.settled(),p=!c.shouldConstrain(),m=h?f:f&&p,g=m&&!a.pointerDown();g&&l.stop();let v=n.get()*d+r.get()*(1-d);i.set(v),h&&(o.loop(t.direction()),s.loop()),e.to(i.get()),g&&u.emit("settle"),m||u.emit("scroll")},th=function(t,e,n,i){let r=w(),o=1e3/60,s=null,a=0,l=0;function u(t){if(!l)return;s||(s=t,n(),n());let r=t-s;for(s=t,a+=r;a>=o;)n(),a-=o;i(a/o),l&&(l=e.requestAnimationFrame(u))}function c(){e.cancelAnimationFrame(l),s=null,a=0,l=0}return{init:function(){r.add(t,"visibilitychange",()=>{t.hidden&&(s=null,a=0)})},destroy:function(){c(),r.clear()},start:function(){l||(l=e.requestAnimationFrame(u))},stop:c,update:n,render:i}}(i,r,()=>tu(tT),t=>
5tc(tT,t)),td=tr[ts.get()],tf=b(td),tp=b(td),tm=b(td),tg=b(td),tv=function(t,e,n,i,r,o){let s=0,a=0,l=r,u=.68,c=t.get(),f=0;function p(t){return l=t,g}function m(t){return u=t,g}let g={direction:function(){return a},duration:function(){return l},velocity:function(){return s},seek:function(){let e=i.get()-t.get(),r=0;return l?(n.set(t),s+=e/l,s*=u,c+=s,t.add(s),r=c-f):(s=0,n.set(i),t.set(i),r=e),a=d(r),f=c,g},settled:function(){return .001>h(i.get()-e.get())},useBaseFriction:function(){return m(.68)},useBaseDuration:function(){return p(r)},useFriction:m,useDuration:p};return g}(tf,tm,tp,tg,R,0),ty=function(t,e,n,i,r){let{reachedAny:o,removeOffset:s,constrain:a}=i;function l(t){return t.concat().sort((t,e)=>h(t)-h(e))[0]}function u(e,i){let r=[e,e+n,e-n];if(!t)return e;if(!i)return l(r);let o=r.filter(t=>d(t)===i);return o.length?l(o):p(r)-n}return{byDistance:function(n,i){let l=r.get()+n,{index:c,distance:d}=function(n){let i=t?s(n):a(n),{index:r}=e.map((t,e)=>({diff:u(t-i,0),index:e})).sort((t,e)=>h(t.diff)-h(e.diff))[0];return{index:r,distance:i}}(l),f=!t&&o(l);if(!i||f)return{index:c,distance:n};let p=n+u(e[c]-d,0);return{index:c,distance:p}},byIndex:function(t,n){let i=u(e[t]-r.get(),n);return{index:t,distance:i}},shortcut:u}}(A,tr,te,to,tg),tw=function(t,e,n,i,r,o,s){function a(r){let a=r.distance,l=r.index!==e.get();o.add(a),a&&(i.duration()?t.start():(t.update(),t.render(1),t.update())),l&&(n.set(e.get()),e.set(r.index),s.emit("select"))}return{distance:function(t,e){a(r.byDistance(t,e))},index:function(t,n){let i=e.clone().set(t);a(r.byIndex(i.get(),n))}}}(th,ts,ta,tv,ty,tg,s),tx=function(t){let{max:e,length:n}=t;return{get:function(t){return n?-((t-e)/n):0}}}(to),tb=w(),tS=function(t,e,n,i){let r;let o={},s=null,a=null,l=!1;return{init:function(){r=new IntersectionObserver(t=>{l||(t.forEach(t=>{o[e.indexOf(t.target)]=t}),s=null,a=null,n.emit("slidesInView"))},{root:t.parentElement,threshold:i}),e.forEach(t=>r.observe(t))},destroy:function(){r&&r.disconnect(),l=!0},get:function(t=!0){if(t&&s)return s;if(!t&&a)return a;let e=v(o).reduce((e,n)=>{let i=parseInt(n),{isIntersecting:r}=o[i];return(t&&r||!t&&!r)&&e.push(i),e},[]);return t&&(s=e),t||(a=e),e}}}(e,n,s,_),{slideRegistry:tE}=function(t,e,n,i,r,o){let{groupSlides:s}=r,{min:a,max:l}=i;return{slideRegistry:function(){let i=s(o);return 1===n.length?[o]:t&&"keepSnaps"!==e?i.slice(a,l).map((t,e,n)=>{let i=e===m(n);return e?i?g(m(o)-p(n)[0]+1,p(n)[0]):t:g(p(n[0])+1)}):i}()}}(H,j,tr,ti,J,tl),tP=function(t,e,n,i,r,o,s,l){let c={passive:!0,capture:!0},h=0;function d(t){"Tab"===t.code&&(h=new Date().getTime())}return{init:function(f){l&&(o.add(document,"keydown",d,!1),e.forEach((e,d)=>{o.add(e,"focus",e=>{(u(l)||l(f,e))&&function(e){if(new Date().getTime()-h>10)return;s.emit("slideFocusStart"),t.scrollLeft=0;let o=n.findIndex(t=>t.includes(e));a(o)&&(r.useDuration(0),i.index(o,0),s.emit("slideFocus"))}(d)},c)}))}}}(t,n,tE,tw,tv,tb,s,V),tT={ownerDocument:i,ownerWindow:r,eventHandler:s,containerRect:z,slideRects:B,animation:th,axis:$,dragHandler:function(t,e,n,i,r,o,s,a,l,c,f,p,m,g,v,b,S,E,P){let{cross:T,direction:C}=t,M=["INPUT","SELECT","TEXTAREA"],A={passive:!1},R=w(),O=w(),k=x(50,225).constrain(g.measure(20)),_={mouse:300,touch:400},D={mouse:500,touch:600},L=v?43:25,j=!1,I=0,F=0,N=!1,V=!1,W=!1,z=!1;function B(t){if(!y(t,i)&&t.touches.length>=2)return $(t);let e=o.readPoint(t),n=o.readPoint(t,T),s=h(e-I),l=h(n-F);if(!V&&!z&&(!t.cancelable||!(V=s>l)))return $(t);let u=o.pointerMove(t);s>b&&(W=!0),c.useFriction(.3).useDuration(.75),a.start(),r.add(C(u)),t.preventDefault()}function $(t){let e=f.byDistance(0,!1).index!==p.get(),n=o.pointerUp(t)*(v?D:_)[z?"mouse":"touch"],i=function(t,e){let n=p.add(-1*d(t)),i=f.byDistance(t,!v).distance;return v||h(t)<k?i:S&&e?.5*i:f.byIndex(n.get(),0).distance}(C(n),e),r=function(t,e){var n,i;if(0===t||0===e||h(t)<=h(e))return 0;let r=(n=h(t),i=h(e),h(n-i));return h(r/t)}(n,i);V=!1,N=!1,O.clear(),c.useDuration(L-10*r).useFriction(.68+r/50),l.distance(i,!v),z=!1,m.emit("pointerUp")}function U(t){W&&(t.stopPropagation(),t.preventDefault(),W=!1)}return{init:function(t){P&&R.add(e,"dragstart",t=>t.preventDefault(),A).add(e,"touchmove",()=>void 0,A).add(e,"touchend",()=>void 0).add(e,"touchstart",a).add(e,"mousedown",a).add(e,"touchcancel",$).add(e,"contextmenu",$).add(e,"click",U,!0);function a(a){(u(P)||P(t,a))&&function(t){let a=y(t,i);z=a,W=v&&a&&!t.buttons&&j,j=h(r.get()-s.get())>=2,a&&0!==t.button||function(t){let e=t.nodeName||"";return M.includes(e)}(t.target)||(N=!0,o.pointerDown(t),c.useFriction(0).useDuration(0),r.set(s),function(){let t=z?n:e;O.add(t,"touchmove",B,A).add(t,"touchend",$).add(t,"mousemove",B,A).add(t,"mouseup",$)}(),I=o.readPoint(t),F=o.readPoint(t,T),m.emit("pointerDown"))}(a)}},destroy:function(){R.clear(),O.clear()},pointerDown:function(){return N}}}($,t,i,r,tg,function(t,e){let n,i;function r(t){return t.timeStamp}function o(n,i){let r=i||t.scroll,o=`client${"x"===r?"X":"Y"}`;return(y(n,e)?n:n.touches[0])[o]}return{pointerDown:function(t){return n=t,i=t,o(t)},pointerMove:function(t){let e=o(t)-o(i),s=r(t)-r(n)>170;return i=t,s&&(n=t),e},pointerUp:function(t){if(!n||!i)return 0;let e=o(i)-o(n),s=r(t)-r(n),a=r(t)-r(i)>170,l=e/s;return s&&!a&&h(l)>.1?l:0},readPoint:o}}($,r),tf,th,tw,tv,ty,ts,s,X,O,k,L,0,N),eventStore:tb,percentOfView:X,index:ts,indexPrevious:ta,limit:to,location:tf,offsetLocation:tm,previousLocation:tp,options:o,resizeHandler:function(t,e,n,i,r,o,s){let a,l;
5let c=[t].concat(i),d=[],f=!1;function p(t){return r.measureSize(s.measure(t))}return{init:function(r){o&&(l=p(t),d=i.map(p),a=new ResizeObserver(n=>{(u(o)||o(r,n))&&function(n){for(let o of n){if(f)return;let n=o.target===t,s=i.indexOf(o.target),a=n?l:d[s];if(h(p(n?t:i[s])-a)>=.5){r.reInit(),e.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{c.forEach(t=>a.observe(t))}))},destroy:function(){f=!0,a&&a.disconnect()}}}(e,s,r,n,$,I,W),scrollBody:tv,scrollBounds:function(t,e,n,i,r){let o=r.measure(10),s=r.measure(50),a=x(.1,.99),l=!1;function u(){return!!(!l&&t.reachedAny(n.get())&&t.reachedAny(e.get()))}return{shouldConstrain:u,constrain:function(r){if(!u())return;let l=t.reachedMin(e.get())?"min":"max",c=h(t[l]-e.get()),d=n.get()-e.get(),f=a.constrain(c/s);n.subtract(d*f),!r&&h(d)<o&&(n.set(t.constrain(n.get())),i.useDuration(25).useBaseFriction())},toggleActive:function(t){l=!t}}}(to,tm,tg,tv,X),scrollLooper:function(t,e,n,i){let{reachedMin:r,reachedMax:o}=x(e.min+.1,e.max+.1);return{loop:function(e){if(!(1===e?o(n.get()):-1===e&&r(n.get())))return;let s=-1*e*t;i.forEach(t=>t.add(s))}}}(te,to,tm,[tf,tm,tp,tg]),scrollProgress:tx,scrollSnapList:tr.map(tx.get),scrollSnaps:tr,scrollTarget:ty,scrollTo:tw,slideLooper:function(t,e,n,i,r,o,s,a,l){let u=f(r),c=p(d(f(r).reverse(),s[0]),n,!1).concat(p(d(u,e-s[0]-1),-n,!0));function h(t,e){return t.reduce((t,e)=>t-r[e],e)}function d(t,e){return t.reduce((t,n)=>h(t,e)>0?t.concat([n]):t,[])}function p(r,s,u){let c=o.map((t,n)=>({start:t-i[n]+.5+s,end:t+e-.5+s}));return r.map(e=>{let i=u?0:-n,r=u?n:0,o=c[e][u?"end":"start"];return{index:e,loopPoint:o,slideLocation:b(-1),translate:S(t,l[e]),target:()=>a.get()>o?i:r}})}return{canLoop:function(){return c.every(({index:t})=>.1>=h(u.filter(e=>e!==t),e))},clear:function(){c.forEach(t=>t.translate.clear())},loop:function(){c.forEach(t=>{let{target:e,translate:n,slideLocation:i}=t,r=e();r!==i.get()&&(n.to(r),i.set(r))})},loopPoints:c}}($,U,te,q,K,Q,tr,tm,n),slideFocus:tP,slidesHandler:(E=!1,{init:function(t){F&&(c=new MutationObserver(e=>{!E&&(u(F)||F(t,e))&&function(e){for(let n of e)if("childList"===n.type){t.reInit(),s.emit("slidesChanged");break}}(e)})).observe(e,{childList:!0})},destroy:function(){c&&c.disconnect(),E=!0}}),slidesInView:tS,slideIndexes:tl,slideRegistry:tE,slidesToScroll:J,target:tg,translate:S($,e)};return tT}(t,o,s,C,M,n,k);return n.loop&&!i.slideLooper.canLoop()?e(Object.assign({},n,{loop:!1})):i}(W),L([V,...z.map(({options:t})=>t)]).forEach(t=>O.add(t,"change",$)),W.active&&(i.translate.to(i.location.get()),i.animation.init(),i.slidesInView.init(),i.slideFocus.init(H),i.eventHandler.init(H),i.resizeHandler.init(H),i.slidesHandler.init(H),i.options.loop&&i.slideLooper.loop(),o.offsetParent&&s.length&&i.dragHandler.init(H),r=R.init(H,z)))}function $(t,e){let n=Y();U(),B(_({startIndex:n},t),e),k.emit("reInit")}function U(){i.dragHandler.destroy(),i.eventStore.clear(),i.translate.clear(),i.slideLooper.clear(),i.resizeHandler.destroy(),i.slidesHandler.destroy(),i.slidesInView.destroy(),i.animation.destroy(),R.destroy(),O.clear()}function X(t,e,n){W.active&&!N&&(i.scrollBody.useBaseFriction().useDuration(!0===e?0:W.duration),i.scrollTo.index(t,n||0))}function Y(){return i.index.get()}let H={canScrollNext:function(){return i.index.add(1).get()!==Y()},canScrollPrev:function(){return i.index.add(-1).get()!==Y()},containerNode:function(){return o},internalEngine:function(){return i},destroy:function(){N||(N=!0,O.clear(),U(),k.emit("destroy"),k.clear())},off:I,on:j,emit:F,plugins:function(){return r},previousScrollSnap:function(){return i.indexPrevious.get()},reInit:$,rootNode:function(){return t},scrollNext:function(t){X(i.index.add(1).get(),t,-1)},scrollPrev:function(t){X(i.index.add(-1).get(),t,1)},scrollProgress:function(){return i.scrollProgress.get(i.offsetLocation.get())},scrollSnapList:function(){return i.scrollSnapList},scrollTo:X,selectedScrollSnap:Y,slideNodes:function(){return s},slidesInView:function(){return i.slidesInView.get()},slidesNotInView:function(){return i.slidesInView.get(!1)}};return B(e,n),setTimeout(()=>k.emit("init"),0),H}function T(t={},e=[]){let n=(0,i.useRef)(t),r=(0,i.useRef)(e),[a,l]=(0,i.useState)(),[u,c]=(0,i.useState)(),h=(0,i.useCallback)(()=>{a&&a.reInit(n.current,r.current)},[a]);return(0,i.useEffect)(()=>{o(n.current,t)||(n.current=t,h())},[t,h]),(0,i.useEffect)(()=>{!function(t,e){if(t.length!==e.length)return!1;let n=s(t),i=s(e);return n.every((t,e)=>o(t,i[e]))}(r.current,e)&&(r.current=e,h())},[e,h]),(0,i.useEffect)(()=>
5{if("undefined"!=typeof window&&window.document&&window.document.createElement&&u){P.globalOptions=T.globalOptions;let t=P(u,n.current,r.current);return l(t),()=>t.destroy()}l(void 0)},[u,l]),[c,a]}P.globalOptions=void 0,T.globalOptions=void 0},3114:function(t,e,n){"use strict";n.d(e,{M:function(){return y}});var i=n(5893),r=n(7294),o=n(5364),s=n(6681),a=n(8868),l=n(240),u=n(3243),c=n(6014);class h extends r.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,n=(0,u.R)(t)&&t.offsetWidth||0,i=this.props.sizeRef.current;i.height=e.offsetHeight||0,i.width=e.offsetWidth||0,i.top=e.offsetTop,i.left=e.offsetLeft,i.right=n-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function d({children:t,isPresent:e,anchorX:n,root:o}){let s=(0,r.useId)(),a=(0,r.useRef)(null),l=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=(0,r.useContext)(c._);return(0,r.useInsertionEffect)(()=>{let{width:t,height:i,top:r,left:c,right:h}=l.current;if(e||!a.current||!t||!i)return;let d="left"===n?`left: ${c}`:`right: ${h}`;a.current.dataset.motionPopId=s;let f=document.createElement("style");u&&(f.nonce=u);let p=o??document.head;return p.appendChild(f),f.sheet&&f.sheet.insertRule(`
6          [data-motion-pop-id="${s}"] {
7            position: absolute !important;
8            width: ${t}px !important;
9            height: ${i}px !important;
10            ${d}px !important;
11            top: ${r}px !important;
12          }
13        `),()=>{p.contains(f)&&p.removeChild(f)}},[e]),(0,i.jsx)(h,{isPresent:e,childRef:a,sizeRef:l,children:r.cloneElement(t,{ref:a})})}let f=({children:t,initial:e,isPresent:n,onExitComplete:o,custom:a,presenceAffectsLayout:u,mode:c,anchorX:h,root:f})=>{let m=(0,s.h)(p),g=(0,r.useId)(),v=!0,y=(0,r.useMemo)(()=>(v=!1,{id:g,initial:e,isPresent:n,custom:a,onExitComplete:t=>
13{for(let e of(m.set(t,!0),m.values()))if(!e)return;o&&o()},register:t=>(m.set(t,!1),()=>m.delete(t))}),[n,m,o]);return u&&v&&(y={...y}),(0,r.useMemo)(()=>{m.forEach((t,e)=>m.set(e,!1))},[n]),r.useEffect(()=>{n||m.size||!o||o()},[n]),"popLayout"===c&&(t=(0,i.jsx)(d,{isPresent:n,anchorX:h,root:f,children:t})),(0,i.jsx)(l.O.Provider,{value:y,children:t})};function p(){return new Map}var m=n(5947);let g=t=>t.key||"";function v(t){let e=[];return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}let y=({children:t,custom:e,initial:n=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:c="sync",propagate:h=!1,anchorX:d="left",root:p})=>{let[y,w]=(0,m.oO)(h),x=(0,r.useMemo)(()=>v(t),[t]),b=h&&!y?[]:x.map(g),S=(0,r.useRef)(!0),E=(0,r.useRef)(x),P=(0,s.h)(()=>new Map),[T,C]=(0,r.useState)(x),[M,A]=(0,r.useState)(x);(0,a.L)(()=>{S.current=!1,E.current=x;for(let t=0;t<M.length;t++){let e=g(M[t]);b.includes(e)?P.delete(e):!0!==P.get(e)&&P.set(e,!1)}},[M,b.length,b.join("-")]);let R=[];if(x!==T){let t=[...x];for(let e=0;e<M.length;e++){let n=M[e],i=g(n);b.includes(i)||(t.splice(e,0,n),R.push(n))}return"wait"===c&&R.length&&(t=R),A(v(t)),C(x),null}let{forceRender:O}=(0,r.useContext)(o.p);return(0,i.jsx)(i.Fragment,{children:M.map(t=>{let r=g(t),o=(!h||!!y)&&(x===M||b.includes(r));return(0,i.jsx)(f,{isPresent:o,initial:(!S.current||!!n)&&void 0,custom:e,presenceAffectsLayout:u,mode:c,root:p,onExitComplete:o?void 0:()=>{if(!P.has(r))return;P.set(r,!0);let t=!0;P.forEach(e=>{e||(t=!1)}),t&&(O?.(),A(E.current),h&&w?.(),l&&l())},anchorX:d,children:t},r)})})}},5947:function(t,e,n){"use strict";n.d(e,{oO:function(){return o}});var i=n(7294),r=n(240);function o(t=!0){let e=(0,i.useContext)(r.O);if(null===e)return[!0,null];let{isPresent:n,onExitComplete:o,register:s}=e,a=(0,i.useId)();(0,i.useEffect)(()=>{if(t)return s(a)},[t]);let l=(0,i.useCallback)(()=>t&&o&&o(a),[a,o,t]);return!n&&o?[!1,l]:[!0]}},5364:function(t,e,n){"use strict";n.d(e,{p:function(){return i}});let i=(0,n(7294).createContext)({})},6014:function(t,e,n){"use strict";n.d(e,{_:function(){return i}});let i=(0,n(7294).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},240:function(t,e,n){"use strict";n.d(e,{O:function(){return i}});let i=(0,n(7294).createContext)(null)},2588:function(t,e,n){"use strict";n.d(e,{E:function(){return rB}});var i,r=n(7294);let o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set(o),a=t=>180*t/Math.PI,l=t=>c(a(Math.atan2(t[1],t[0]))),u={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:l,rotateZ:l,skewX:t=>a(Math.atan(t[1])),skewY:t=>a(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},c=t=>((t%=360)<0&&(t+=360),t),h=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),d=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),f={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:h,scaleY:d,scale:t=>(h(t)+d(t))/2,rotateX:t=>c(a(Math.atan2(t[6],t[5]))),rotateY:t=>c(a(Math.atan2(-t[2],t[0]))),rotateZ:l,rotate:l,skewX:t=>a(Math.atan(t[4])),skewY:t=>a(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function p(t){return t.includes("scale")?1:0}function m(t,e){let n,i;if(!t||"none"===t)return p(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)n=f,i=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=u,i=e}if(!i)return p(e);let o=n[e],s=i[1].split(",").map(v);return"function"==typeof o?o(s):s[o]}let g=(t,e)=>{let{transform:n="none"}=getComputedStyle(t);return m(n,e)};function v(t){return parseFloat(t.trim())}var y=n(1219);function w({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}var x=n(2659);function b(t){return void 0===t||1===t}function S({scale:t,scaleX:e,scaleY:n}){return!b(t)||!b(e)||!b(n)}function E(t){return S(t)||P(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function P(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}function T(t,e,n,i,r){return void 0!==r&&(t=i+r*(t-i)),i+n*(t-i)+e}function C(t,e=0,n=1,i,r){t.min=T(t.min,e,n,i,r),t.max=T(t.max,e,n,i,r)}function M(t,{x:e,y:n}){C(t.x,e.translate,e.scale,e.originPoint),C(t.y,n.translate,n.scale,n.originPoint)}function A(t,e){t.min=t.min+e,t.max=t.max+e}function R(t,e,n,i,r=.5){let o=(0,x.t)(t.min,t.max,r);C(t,e,n,o,i)}function O(t,e){R(t.x,e.x,e.scaleX,e.scale,e.originX),R(t.y,e.y,e.scaleY,e.scale,e.originY)}function k(t,e){return w(function(t,e){if(!e)return t;let n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}let _=new Set(["width","height","top","left","right","bottom",...o]);var D=n(7958),L=n(7259);let j=t=>e=>e.test(t),I=[D.Rx,L.px,L.aQ,L.RW,L.vw,L.vh,{test:t=>"auto"===t,parse:t=>t}],F=t=>I.find(j(t));var N=n(5386);let V=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),W=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,z=t=>t===D.Rx||t===L.px,B=new Set(["x","y","z"]),$=o.filter(t=>!B.has(t)),U={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>m(e,"x"),y:(t,{transform:e})=>m(e,"y")};U.translateX=U.x,U.translateY=U.y;var X=n(2866);let Y=new Set,H=!1,q=!1,K=!1;function Z(){if(q){let t=Array.from(Y).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),n=new Map;e.forEach(t=>{let e=function(t){let e=[];return $.forEach(n=>{let i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}(t);e.length&&(n.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=n.get(t);e&&e.forEach(([e,n])=>{t.getValue(e)?.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}q=!1,H=!1,Y.forEach(t=>t.complete(K)),Y.clear()}function G(){Y.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(q=!0)})}class J{constructor(t,e,n,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Y.add(this),H||(H=!0,X.Wi.read(G),X.Wi.resolveKeyframes(Z))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;if(null===t[0]){let r=i?.get(),o=t[t.length-1];if(void 0!==r)t[0]=r;else if(n&&e){let i=n.readValue(e,o);null!=i&&(t[0]=i)}void 0===t[0]&&(t[0]=o),i&&void 0===r&&i.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Y.delete(this)}cancel(){"scheduled"===this.state&&(Y.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let Q=t=>/^0[^.\s]+$/u.test(t);var tt=n(8094),te=n(7159);let tn=new Set(["brightness","contrast","saturate","opacity"]);function ti(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[i]=n.match(te.K)||[];if(!i)return t;let r=n.replace(i,""),o=tn.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+r+")"}let tr=/\b([a-z-]*)\(.*?\)/gu,to={...tt.P,getAnimatableNone:t=>{let e=t.match(tr);return e?e.map(ti).join(" "):t}};var ts=n(7167);let ta={...D.Rx,transform:Math.round},tl={rotate:L.RW,rotateX:L.RW,rotateY:L.RW,rotateZ:L.RW,scale:D.bA,scaleX:D.bA,scaleY:D.bA,scaleZ:D.bA,skew:L.RW,skewX:L.RW,skewY:L.RW,distance:L.px,translateX:L.px,translateY:L.px,translateZ:L.px,x:L.px,y:L.px,z:L.px,perspective:L.px,transformPerspective:L.px,opacity:D.Fq,originX:L.$C,originY:L.$C,originZ:L.px},tu={borderWidth:L.px,borderTopWidth:L.px,borderRightWidth:L.px,borderBottomWidth:L.px,borderLeftWidth:L.px,borderRadius:L.px,radius:L.px,borderTopLeftRadius:L.px,borderTopRightRadius:L.px,borderBottomRightRadius:L.px,borderBottomLeftRadius:L.px,width:L.px,maxWidth:L.px,height:L.px,maxHeight:L.px,top:L.px,right:L.px,bottom:L.px,left:L.px,padding:L.px,paddingTop:L.px,paddingRight:L.px,paddingBottom:L.px,paddingLeft:L.px,margin:L.px,marginTop:L.px,marginRight:L.px,marginBottom:L.px,marginLeft:L.px,backgroundPositionX:L.px,backgroundPositionY:L.px,...tl,zIndex:ta,fillOpacity:D.Fq,strokeOpacity:D.Fq,numOctaves:ta},tc={...tu,color:ts.$,backgroundColor:ts.$,outlineColor:ts.$,fill:ts.$,stroke:ts.$,borderColor:ts.$,borderTopColor:ts.$,borderRightColor:ts.$,borderBottomColor:ts.$,borderLeftColor:ts.$,filter:to,WebkitFilter:to},th=t=>tc[t];function td(t,e){let n=th(t);return n!==to&&(n=tt.P),n.getAnimatableNone?n.getAnimatableNone(e):void 0}
13let tf=new Set(["auto","none","0"]);class tp extends J{constructor(t,e,n,i,r){super(t,e,n,i,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let n=0;n<t.length;n++){let i=t[n];if("string"==typeof i&&(i=i.trim(),(0,y.t)(i))){let r=function t(e,n,i=1){(0,N.k)(i<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,o]=function(t){let e=W.exec(t);if(!e)return[,];let[,n,i,r]=e;return[`--${n??i}`,r]}(e);if(!r)return;let s=window.getComputedStyle(n).getPropertyValue(r);if(s){let t=s.trim();return V(t)?parseFloat(t):t}return(0,y.t)(o)?t(o,n,i+1):o}(i,e.current);void 0!==r&&(t[n]=r),n===t.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!_.has(n)||2!==t.length)return;let[i,r]=t,o=F(i),s=F(r);if(o!==s){if(z(o)&&z(s))for(let e=0;e<t.length;e++){let n=t[e];"string"==typeof n&&(t[e]=parseFloat(n))}else U[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,n=[];for(let e=0;e<t.length;e++){var i;(null===t[e]||("number"==typeof(i=t[e])?0===i:null===i||"none"===i||"0"===i||Q(i)))&&n.push(e)}n.length&&function(t,e,n){let i,r=0;for(;r<t.length&&!i;){let e=t[r];"string"==typeof e&&!tf.has(e)&&(0,tt.V)(e).values.length&&(i=t[r]),r++}if(i&&n)for(let r of e)t[r]=td(n,i)}(t,n,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=U[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:n}=this;if(!t||!t.current)return;let i=t.getValue(e);i&&i.jump(this.measuredOrigin,!1);let r=n.length-1,o=n[r];n[r]=U[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
13h(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}let tm=t=>!!(t&&t.getVelocity);var tg=n(7245),tv=n(8486);let ty=[...I,ts.$,tt.P],tw=t=>ty.find(j(t)),{schedule:tx,cancel:tb}=(0,n(3674).Z)(queueMicrotask,!1);var tS=n(8449);let tE={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},tP={};for(let t in tE)tP[t]={isEnabled:e=>tE[t].some(t=>!!e[t])};let tT=()=>({translate:0,scale:1,origin:0,originPoint:0}),tC=()=>({x:tT(),y:tT()}),tM=()=>({min:0,max:0}),tA=()=>({x:tM(),y:tM()});var tR=n(270),tO=n(9609);let tk=new WeakMap;function t_(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function tD(t){return"string"==typeof t||Array.isArray(t)}let tL=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tj=["initial",...tL];function tI(t){return t_(t.animate)||tj.some(e=>tD(t[e]))}function tF(t){return!!(tI(t)||t.variants)}function tN(t){let e=[{},{}];return t?.values.forEach((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()}),e}function tV(t,e,n,i){if("function"==typeof e){let[r,o]=tN(i);e=e(void 0!==n?n:t.custom,r,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,o]=tN(i);e=e(void 0!==n?n:t.custom,r,o)}return e}let tW=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class tz{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=J,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=tg.X.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,X.Wi.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!r,this.isControllingVariants=tI(e),this.isVariantNode=tF(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in c){let e=c[t];void 0!==a[t]&&tm(e)&&e.set(a[t])}}mount(t){this.current=t,tk.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),tO.O.current||(0,tR.A)(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||tO.n.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,X.Pn)(this.notifyUpdate),(0,X.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let n;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let i=s.has(t);i&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&X.Wi.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),n&&n(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in tP){let e=tP[t];if(!e)continue;let{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){let e=this.features[t];
13e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):tA()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<tW.length;e++){let n=tW[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(t,e,n){for(let i in e){let r=e[i],o=n[i];if(tm(r))t.addValue(i,r);else if(tm(o))t.addValue(i,(0,tv.BX)(r,{owner:t}));else if(o!==r){if(t.hasValue(i)){let e=t.getValue(i);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(i);t.addValue(i,(0,tv.BX)(void 0!==e?e:r,{owner:t}))}}}for(let i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=(0,tv.BX)(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){let n=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=n&&("string"==typeof n&&(V(n)||Q(n))?n=parseFloat(n):!tw(n)&&tt.P.test(e)&&(n=td(t,e)),this.setBaseTarget(t,tm(n)?n.get():n)),tm(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let i=tV(this.props,n,this.presenceContext?.custom);i&&(e=i[t])}if(n&&void 0!==e)return e;let i=this.getBaseTargetFromProps(this.props,t);return void 0===i||tm(i)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new tS.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){tx.render(this.render)}}class tB extends tz{constructor(){super(...arguments),this.KeyframeResolver=tp}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;tm(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}let t$=(t,e)=>e&&"number"==typeof t?e.transform(t):t,tU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tX=o.length;function tY(t,e,n){let{style:i,vars:r,transformOrigin:a}=t,l=!1,u=!1;for(let t in e){let n=e[t];if(s.has(t)){l=!0;continue}if((0,y.f)(t)){r[t]=n;continue}{let e=t$(n,tu[t]);t.startsWith("origin")?(u=!0,a[t]=e):i[t]=e}}if(!e.transform&&(l||n?i.transform=function(t,e,n){let i="",r=!0;for(let s=0;s<tX;s++){let a=o[s],l=t[a];if(void 0===l)continue;let u=!0;if(!(u="number"==typeof l?l===(a.startsWith("scale")?1:0):0===parseFloat(l))||n){let t=t$(l,tu[a]);if(!u){r=!1;let e=tU[a]||a;i+=`${e}(${t}) `}n&&(e[a]=t)}}return i=i.trim(),n?i=n(e,r?"":i):r&&(i="none"),i}(e,t.transform,n):i.transform&&(i.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:n=0}=a;i.transformOrigin=`${t} ${e} ${n}`}}function tH(t,{style:e,vars:n},i,r){let o;let s=t.style;for(o in e)s[o]=e[o];for(o in r?.applyProjectionStyles(s,i),n)s.setProperty(o,n[o])}let tq={};function tK(t,{layout:e,layoutId:n}){return s.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!tq[t]||"opacity"===t)}function tZ(t,e,n){let{style:i}=t,r={};for(let o in i)(tm(i[o])||e.style&&tm(e.style[o])||tK(o,t)||n?.getValue(o)?.liveStyle!==void 0)&&(r[o]=i[o]);return r}class tG extends tB{constructor(){super(...arguments),this.type="html",this.renderInstance=tH}readValueFromInstance(t,e){if(s.has(e))return this.projection?.isProjecting?p(e):g(t,e);{let n=window.getComputedStyle(t),i=((0,y.f)(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:e}){return k(t,e)}build(t,e,n){tY(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return tZ(t,e,n)}}let tJ=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tQ={offset:"stroke-dashoffset",array:"stroke-dasharray"},t0={offset:"strokeDashoffset",array:"strokeDasharray"};function t1(t,{attrX:e,attrY:n,attrScale:i,pathLength:r,pathSpacing:o=1,pathOffset:s=0,...a}
13,l,u,c){if(tY(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:h,style:d}=t;h.transform&&(d.transform=h.transform,delete h.transform),(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=c?.transformBox??"fill-box",delete h.transformBox),void 0!==e&&(h.x=e),void 0!==n&&(h.y=n),void 0!==i&&(h.scale=i),void 0!==r&&function(t,e,n=1,i=0,r=!0){t.pathLength=1;let o=r?tQ:t0;t[o.offset]=L.px.transform(-i);let s=L.px.transform(e),a=L.px.transform(n);t[o.array]=`${s} ${a}`}(h,r,o,s,!1)}let t2=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),t4=t=>"string"==typeof t&&"svg"===t.toLowerCase();function t3(t,e,n){let i=tZ(t,e,n);for(let n in t)(tm(t[n])||tm(e[n]))&&(i[-1!==o.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]);return i}class t5 extends tB{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tA}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(s.has(e)){let t=th(e);return t&&t.default||0}return e=t2.has(e)?e:tJ(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return t3(t,e,n)}
13build(t,e,n){t1(t,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,e,n,i){!function(t,e,n,i){for(let n in tH(t,e,void 0,i),e.attrs)t.setAttribute(t2.has(n)?n:tJ(n),e.attrs[n])}(t,e,0,i)}mount(t){this.isSVGTag=t4(t.tagName),super.mount(t)}}let t6=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function t9(t){if("string"!=typeof t||t.includes("-"));else if(t6.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var t8=n(5893),t7=n(5364);let et=(0,r.createContext)({strict:!1});var ee=n(6014);let en=(0,r.createContext)({});function ei(t){return Array.isArray(t)?t.join(" "):t}let er=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eo(t,e,n){for(let i in e)tm(e[i])||tK(i,n)||(t[i]=e[i])}let es=()=>({...er(),attrs:{}}),ea=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function el(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ea.has(t)}let eu=t=>!el(t);try{i=require("@emotion/is-prop-valid").default,"function"==typeof i&&(eu=t=>t.startsWith("on")?!el(t):i(t))}catch{}var ec=n(240),eh=n(6681);function ed(t){return tm(t)?t.get():t}let ef=t=>(e,n)=>{let i=(0,r.useContext)(en),o=(0,r.useContext)(ec.O),s=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,r){return{latestValues:function(t,e,n,i){let r={},o=i(t,{});for(let t in o)r[t]=ed(o[t]);let{initial:s,animate:a}=t,l=tI(t),u=tF(t);e&&u&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial,h=(c=c||!1===s)?a:s;if(h&&"boolean"!=typeof h&&!t_(h)){let e=Array.isArray(h)?h:[h];for(let n=0;n<e.length;n++){let i=tV(t,e[n]);if(i){let{transitionEnd:t,transition:e,...n}=i;for(let t in n){let e=n[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(n,i,r,t),renderState:e()}})(t,e,i,o);return n?s():(0,eh.h)(s)},ep=ef({scrapeMotionValuesFromProps:tZ,createRenderState:er}),em=ef({scrapeMotionValuesFromProps:t3,createRenderState:es});var eg=n(1741);let ev=Symbol.for("motionComponentSymbol");function ey(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let ew="data-"+tJ("framerAppearId"),ex=(0,r.createContext)({});var eb=n(8868);function eS(t,{forwardMotionProps:e=!1}={},n,i){n&&function(t){for(let e in t)tP[e]={...tP[e],...t[e]}}(n);let o=t9(t)?em:ep;function s(n,s){var a;let l;let u={...(0,r.useContext)(ee._),...n,layoutId:function({layoutId:t}){let e=(0,r.useContext)(t7.p).id;return e&&void 0!==t?e+"-"+t:t}(n)},{isStatic:c}=u,h=function(t){let{initial:e,animate:n}=function(t,e){if(tI(t)){let{initial:e,animate:n}=t;return{initial:!1===e||tD(e)?e:void 0,animate:tD(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,r.useContext)(en));return(0,r.useMemo)(()=>({initial:e,animate:n}),[ei(e),ei(n)])}(n),d=o(n,c);if(!c&&eg.j){(0,r.useContext)(et).strict;let e=function(t){let{drag:e,layout:n}=tP;if(!e&&!n)return{};let i={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(u);l=e.MeasureLayout,h.visualElement=function(t,e,n,i,o){let{visualElement:s}=(0,r.useContext)(en),a=(0,r.useContext)(et),l=(0,r.useContext)(ec.O),u=(0,r.useContext)(ee._).reducedMotion,c=(0,r.useRef)(null);i=i||a.renderer,!c.current&&i&&(c.current=i(t,{visualState:e,parent:s,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u}));let h=c.current,d=(0,r.useContext)(ex);h&&!h.projection&&o&&("html"===h.type||"svg"===h.type)&&function(t,e,n,i){let{layoutId:r,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||a&&ey(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,crossfade:c,layoutScroll:l,layoutRoot:u})}(c.current,n,o,d);let f=(0,r.useRef)(!1);(0,r.useInsertionEffect)(()=>{h&&f.current&&h.update(n,l)});let p=n[ew],m=(0,r.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return(0,eb.L)(()=>{h&&(f.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),m.current&&h.animationState&&h.animationState.animateChanges())}),(0,r.useEffect)(()=>{h&&(!m.current&&h.animationState&&h.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),m.current=!1),h.enteringChildren=void 0)}),h}(t,d,u,i,e.ProjectionNode)}return(0,t8.jsxs)(en.Provider,{value:h,children:[l&&h.visualElement?(0,t8.jsx)(l,{visualElement:h.visualElement,...u}):null,function(t,e,n,{latestValues:i},o,s=!1){let a=(t9(t)?function(t,e,n,i){let o=(0,r.useMemo)(()=>{let n=es();return t1(n,e,t4(i),t.transformTemplate,t.style),{...n.attrs,style:{...n.style}}},[e]);if(t.style){let e={};eo(e,t.style,t),o.style={...e,...o.style}}return o}:function(t,e){let n={},i=function(t,e){let n=t.style||{},i={};return eo(i,n,t),Object.assign(i,function({transformTemplate:t},e){return(0,r.useMemo)(()=>{let n=er();return tY(n,e,t),Object.assign({},n.vars,n.style)},[e])}(t,e)),i}(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n})(e,i,o,t),l=function(t,e,n){let i={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(eu(r)||!0===n&&el(r)||!e&&!el(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}(e,"string"==typeof t,s),u=t!==r.Fragment?{...l,...a,ref:n}:{},{children:c}=e,h=(0,r.useMemo)(()=>tm(c)?c.get():c,[c]);return(0,r.createElement)(t,{...u,children:h})}(t,n,(a=h.visualElement,(0,r.useCallback)(t=>{t&&d.onMount&&d.onMount(t),a&&(t?a.mount(t):a.unmount()),s&&("function"==typeof s?s(t):ey(s)&&(s.current=t))},[a])),d,c,e)]})}s.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let a=(0,r.forwardRef)(s);return a[ev]=t,a}function eE(t,e,n){let i=t.getProps();return tV(i,e,void 0!==n?n:i.custom,t)}function eP(t,e){return t?.[e]??t?.default??t}let eT=t=>Array.isArray(t);var eC=n(2218);function eM(t,e){let n=t.getValue("willChange");if(tm(n)&&n.add)return n.add(e);if(!n&&eC.c.WillChange){let n=new eC.c.WillChange("auto");t.addValue("willChange",n),n.add(e)}}function eA(t){t.duration=0,t.type}var eR=n(377),eO=n(488);let ek=t=>1e3*t,e_=t=>t/1e3,eD={layout:0,mainThread:0,waapi:0};var eL=n(8712);let ej=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>X.Wi.update(e,t),stop:()=>
13(0,X.Pn)(e),now:()=>X.frameData.isProcessing?X.frameData.timestamp:tg.X.now()}},eI=(t,e,n=10)=>{let i="",r=Math.max(Math.round(e/n),2);for(let e=0;e<r;e++)i+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`};function eF(t){let e=0,n=t.next(e);for(;!n.done&&e<2e4;)e+=50,n=t.next(e);return e>=2e4?1/0:e}var eN=n(7142);function eV(t,e,n){let i=Math.max(e-5,0);return(0,eN.R)(n-t(i),e-i)}let eW={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function ez(t,e){return t*Math.sqrt(1-e*e)}let eB=["duration","bounce"],e$=["stiffness","damping","mass"];function eU(t,e){return e.some(e=>void 0!==t[e])}function eX(t=eW.visualDuration,e=eW.bounce){let n;let i="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:o}=i,s=i.keyframes[0],a=i.keyframes[i.keyframes.length-1],l={done:!1,value:s},{stiffness:u,damping:c,mass:h,duration:d,velocity:f,isResolvedFromDuration:p}=function(t){let e={velocity:eW.velocity,stiffness:eW.stiffness,damping:eW.damping,mass:eW.mass,isResolvedFromDuration:!1,...t};if(!eU(t,e$)&&eU(t,eB)){if(t.visualDuration){let n=2*Math.PI/(1.2*t.visualDuration),i=n*n,r=2*(0,eO.u)(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:eW.mass,stiffness:i,damping:r}}else{let n=function({duration:t=eW.duration,bounce:e=eW.bounce,velocity:n=eW.velocity,mass:i=eW.mass}){let r,o;(0,N.K)(t<=ek(eW.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-e;s=(0,eO.u)(eW.minDamping,eW.maxDamping,s),t=(0,eO.u)(eW.minDuration,eW.maxDuration,e_(t)),s<1?(r=e=>{let i=e*s,r=i*t;return .001-(i-n)/ez(e,s)*Math.exp(-r)},o=e=>{let i=e*s*t,o=Math.pow(s,2)*Math.pow(e,2)*t,a=Math.exp(-i),l=ez(Math.pow(e,2),s);return(i*n+n-o)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-n)*t+1),o=e=>t*t*(n-e)*Math.exp(-e*t));let a=function(t,e,n){let i=n;for(let n=1;n<12;n++)i-=t(i)/e(i);return i}(r,o,5/t);if(t=ek(t),isNaN(a))return{stiffness:eW.stiffness,damping:eW.damping,duration:t};{let e=Math.pow(a,2)*i;return{stiffness:e,damping:2*s*Math.sqrt(i*e),duration:t}}}(t);(e={...e,...n,mass:eW.mass}).isResolvedFromDuration=!0}}return e}({...i,velocity:-e_(i.velocity||0)}),m=f||0,g=c/(2*Math.sqrt(u*h)),v=a-s,y=e_(Math.sqrt(u/h)),w=5>Math.abs(v);if(r||(r=w?eW.restSpeed.granular:eW.restSpeed.default),o||(o=w?eW.restDelta.granular:eW.restDelta.default),g<1){let t=ez(y,g);n=e=>a-Math.exp(-g*y*e)*((m+g*y*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===g)n=t=>a-Math.exp(-y*t)*(v+(m+y*v)*t);else{let t=y*Math.sqrt(g*g-1);n=e=>{let n=Math.exp(-g*y*e),i=Math.min(t*e,300);return a-n*((m+g*y*v)*Math.sinh(i)+t*v*Math.cosh(i))/t}}let x={calculatedDuration:p&&d||null,next:t=>{let e=n(t);if(p)l.done=t>=d;else{let i=0===t?m:0;g<1&&(i=0===t?ek(m):eV(n,t,e));let s=Math.abs(i)<=r,u=Math.abs(a-e)<=o;l.done=s&&u}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(eF(x),2e4),e=eI(e=>x.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return x}function eY({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let h,d;let f=t[0],p={done:!1,value:f},m=t=>void 0!==a&&t<a||void 0!==l&&t>l,g=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,v=n*e,y=f+v,w=void 0===s?y:s(y);w!==y&&(v=w-f);let x=t=>-v*Math.exp(-t/i),b=t=>w+x(t),S=t=>{let e=x(t),n=b(t);p.done=Math.abs(e)<=u,p.value=p.done?w:n},E=t=>{m(p.value)&&(h=t,d=eX({keyframes:[p.value,g(p.value)],velocity:eV(b,t,p.value),damping:r,stiffness:o,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==h||(e=!0,S(t),E(t)),void 0!==h&&t>=h)?d.next(t-h):(e||S(t),p)}}}eX.applyToOptions=t=>{let e=function(t,e=100,n){let i=n({...t,keyframes:[0,e]}),r=Math.min(eF(i),2e4);return{type:"keyframes",ease:t=>i.next(r*t).value/e,duration:e_(r)}}(t,100,eX);return t.ease=e.ease,t.duration=ek(e.duration),t.type="keyframes",t};var eH=n(7726);let eq=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function eK(t,e,n,i){if(t===e&&n===i)return eH.Z;let r=e=>(function(t,e,n,i,r){let o,s;let a=0;do(o=eq(s=e+(n-e)/2,i,r)-t)>0?n=s:e=s;while(Math.abs(o)>1e-7&&++a<12);return s})(e,0,1,t,n);return t=>0===t||1===t?t:eq(r(t),e,i)}let eZ=eK(.42,0,1,1),eG=eK(0,0,.58,1),eJ=eK(.42,0,.58,1),eQ=t=>Array.isArray(t)&&"number"!=typeof t[0],e0=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,e1=t=>e=>1-t(1-e),e2=eK(.33,1.53,.69,.99),e4=e1(e2),e3=e0(e4),e5=t=>(t*=2)<1?.5*e4(t):.5*(2-Math.pow(2,-10*(t-1))),e6=t=>1-Math.sin(Math.acos(t)),e9=e1(e6),e8=e0(e6),e7=t=>Array.isArray(t)&&"number"==typeof t[0],nt={linear:eH.Z,easeIn:eZ,easeInOut:eJ,easeOut:eG,circIn:e6,circInOut:e8,circOut:e9,backIn:e4,backInOut:e3,backOut:e2,anticipate:e5},ne=t=>"string"==typeof t,nn=t=>{if(e7(t)){(0,N.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,n,i,r]=t;return eK(e,n,i,r)}return ne(t)?((0,N.k)(void 0!==nt[t],`Invalid easing type '${t}
13'`,"invalid-easing-type"),nt[t]):t};var ni=n(8098),nr=n(7790);function no({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){let r=eQ(i)?i.map(nn):nn(i),o={done:!1,value:e[0]},s=(n&&n.length===e.length?n:(0,nr.Y)(e)).map(e=>e*t),a=(0,ni.s)(s,e,{ease:Array.isArray(r)?r:e.map(()=>r||eJ).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}let ns=t=>null!==t;function na(t,{repeat:e,repeatType:n="loop"},i,r=1){let o=t.filter(ns),s=r<0||e&&"loop"!==n&&e%2==1?0:o.length-1;return s&&void 0!==i?i:o[s]}let nl={decay:eY,inertia:eY,tween:no,keyframes:no,spring:eX};function nu(t){"string"==typeof t.type&&(t.type=nl[t.type])}class nc{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let nh=t=>t/100;class nd extends nc{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==tg.X.now()&&this.tick(tg.X.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},eD.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;nu(t);let{type:e=no,repeat:n=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=t,{keyframes:s}=t,a=e||no;a!==no&&"number"!=typeof s[0]&&(this.mixKeyframes=(0,eR.z)(nh,(0,eL.C)(s[0],s[1])),s=[0,100]);let l=a({...t,keyframes:s});"mirror"===r&&(this.mirroredGenerator=a({...t,keyframes:[...s].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=eF(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:n,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:a}=this;if(null===this.startTime)return n.next(0);let{delay:l=0,keyframes:u,repeat:c,repeatType:h,repeatDelay:d,type:f,onUpdate:p,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let y=this.currentTime,w=n;if(c){let t=Math.min(this.currentTime,i)/s,e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,(e=Math.min(e,c+1))%2&&("reverse"===h?(n=1-n,d&&(n-=d/s)):"mirror"===h&&(w=o)),y=(0,eO.u)(0,1,n)*s}let x=v?{done:!1,value:u[0]}:w.next(y);r&&(x.value=r(x.value));let{done:b}=x;v||null===a||(b=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return S&&f!==eY&&(x.value=na(u,this.options,m,this.speed)),p&&p(x.value),S&&this.finish(),x}then(t,e){return this.finished.then(t,e)}get duration(){return e_(this.calculatedDuration)}get time(){return e_(this.currentTime)}set time(t){t=ek(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(tg.X.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=e_(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=ej,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=e??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tg.X.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,eD.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let nf=t=>t.startsWith("--");var np=n(4548),nm=n(7275),ng=n(942);let nv={},ny=function(t,e){let n=(0,ng.X)(t);return()=>nv[e]??n()}(()=>{try{document.createElement("div").animate({opacity:0}
13,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),nw=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,nx={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nw([0,.65,.55,1]),circOut:nw([.55,0,1,.45]),backIn:nw([.31,.01,.66,-.59]),backOut:nw([.33,1.53,.69,.99])};function nb(t){return"function"==typeof t&&"applyToOptions"in t}class nS extends nc{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:e,name:n,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:s,onComplete:a}=t;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=t,(0,N.k)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:t,...e}){return nb(t)&&ny()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u){let c={[e]:n};l&&(c.offset=l);let h=function t(e,n){if(e)return"function"==typeof e?ny()?eI(e,n):"ease-out":e7(e)?nw(e):Array.isArray(e)?e.map(e=>t(e,n)||nx.easeOut):nx[e]}(a,r);Array.isArray(h)&&(c.easing=h),nm.f.value&&eD.waapi++;let d={delay:i,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"};u&&(d.pseudoElement=u);let f=t.animate(c,d);return nm.f.value&&f.finished.finally(()=>{eD.waapi--}),f}(e,n,i,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=na(i,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(t):nf(n)?e.style.setProperty(n,t):e.style[n]=t,this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return e_(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get time(){return e_(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ek(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&(0,np.t)())?(this.animation.timeline=t,eH.Z):e(this)}}let nE={anticipate:e5,backInOut:e3,circInOut:e8};class nP extends nS{constructor(t){"string"==typeof t.ease&&t.ease in nE&&(t.ease=nE[t.ease]),nu(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:n,onComplete:i,element:r,...o}=this.options;if(!e)return;if(void 0!==t){e.set(t);return}let s=new nd({...o,autoplay:!1}),a=ek(this.finishedTime??this.time);e.setWithVelocity(s.sample(a-10).value,s.sample(a).value,10),s.stop()}}let nT=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tt.P.test(t)||"0"===t)&&!t.startsWith("url(")),nC=new Set(["opacity","clipPath","filter","transform"]),nM=(0,ng.X)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nA extends nc{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:s,name:a,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tg.X.now();let h={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:r,repeatType:
13o,name:a,motionValue:l,element:u,...c},d=u?.KeyframeResolver||J;this.keyframeResolver=new d(s,(t,e,n)=>this.onKeyframesResolved(t,e,h,!n),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,n,i){this.keyframeResolver=void 0;let{name:r,type:o,velocity:s,delay:a,isHandoff:l,onUpdate:u}=n;this.resolvedAt=tg.X.now(),!function(t,e,n,i){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let o=t[t.length-1],s=nT(r,e),a=nT(o,e);return(0,N.K)(s===a,`You are trying to animate ${e} from "${r}" to "${o}". "${s?o:r}" is not an animatable value.`,"value-not-animatable"),!!s&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||nb(n))&&i)}(t,r,o,s)&&((eC.c.instantAnimations||!a)&&u?.(na(t,n,e)),t[0]=t[t.length-1],eA(n),n.repeat=0);let c={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...n,keyframes:t},h=!l&&function(t){let{motionValue:e,name:n,repeatDelay:i,repeatType:r,damping:o,type:s}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return nM()&&n&&nC.has(n)&&("transform"!==n||!l)&&!a&&!i&&"mirror"!==r&&0!==o&&"inertia"!==s}(c)?new nP({...c,element:c.motionValue.owner.current}):new nd(c);h.finished.then(()=>this.notifyFinished()).catch(eH.Z),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),K=!0,G(),Z(),K=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nR=t=>null!==t,nO={type:"spring",stiffness:500,damping:25,restSpeed:10},nk=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),n_={type:"keyframes",duration:.8},nD={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nL=(t,{keyframes:e})=>e.length>2?n_:s.has(t)?t.startsWith("scale")?nk(e[1]):nO:nD,nj=(t,e,n,i={},r,o)=>s=>{let a=eP(i,t)||{},l=a.delay||i.delay||0,{elapsed:u=0}=i;u-=ek(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:r};!function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(a)&&Object.assign(c,nL(t,c)),c.duration&&(c.duration=ek(c.duration)),c.repeatDelay&&(c.repeatDelay=ek(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let h=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(eA(c),0!==c.delay||(h=!0)),(eC.c.instantAnimations||eC.c.skipAnimations)&&(h=!0,eA(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,h&&!o&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:n="loop"},i){let r=t.filter(nR),o=e&&"loop"!==n&&e%2==1?0:r.length-1;return r[o]}(c.keyframes,a);if(void 0!==t){X.Wi.update(()=>{c.onUpdate(t),c.onComplete()});return}}return a.isSync?new nd(c):new nA(c)};function nI(t,e,{delay:n=0,transitionOverride:i,type:r}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:s,...a}=e;i&&(o=i);let l=[],u=r&&t.animationState&&t.animationState.getState()[r];for(let e in a){let i=t.getValue(e,t.latestValues[e]??null),r=a[e];if(void 0===r||u&&function({protectedKeys:t,needsAnimating:e},n){let i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}(u,e))continue;let s={delay:n,...eP(o||{},e)},c=i.get();if(void 0!==c&&!i.isAnimating&&!Array.isArray(r)&&r===c&&!s.velocity)continue;let h=!1;if(window.MotionHandoffAnimation){let n=t.props[ew];if(n){let t=window.MotionHandoffAnimation(n,e,X.Wi);null!==t&&(s.startTime=t,h=!0)}}eM(t,e),i.start(nj(e,i,r,t.shouldReduceMotion&&_.has(e)?{type:!1}:s,t,h));let d=i.animation;d&&l.push(d)}return s&&Promise.all(l).then(()=>{X.Wi.update(()=>{s&&function(t,e){let{transitionEnd:n={},transition:i={},...r}=eE(t,e)||{};for(let e in r={...r,...n}){var o;let n=eT(o=r[e])?o[o.length-1]||0:o;t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,tv.BX)(n))}}(t,s)})}),l}function nF(t,e,n,i=0,r=1){let o=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),s=t.size,a=(s-1)*i;return"function"==typeof n?n(o,s):1===r?o*i:a-o*i}function nN(t,e,n={}){let i=eE(t,e,"exit"===n.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=i||{};
13n.transitionOverride&&(r=n.transitionOverride);let o=i?()=>Promise.all(nI(t,i,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(i=0)=>{let{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=r;return function(t,e,n=0,i=0,r=0,o=1,s){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(nN(l,e,{...s,delay:n+("function"==typeof i?0:i)+nF(t.variantChildren,l,i,r,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,i,o,s,a,n)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([o(),s(n.delay)]);{let[t,e]="beforeChildren"===a?[o,s]:[s,o];return t().then(()=>e())}}function nV(t,e){if(!Array.isArray(e))return!1;let n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}let nW=tj.length,nz=[...tL].reverse(),nB=tL.length;function n$(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nU(){return{animate:n$(!0),whileInView:n$(),whileHover:n$(),whileTap:n$(),whileDrag:n$(),whileFocus:n$(),exit:n$()}}class nX{constructor(t){this.isMounted=!1,this.node=t}update(){}}class nY extends nX{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:n})=>(function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e))i=Promise.all(e.map(e=>nN(t,e,n)));else if("string"==typeof e)i=nN(t,e,n);else{let r="function"==typeof e?eE(t,e,n.custom):e;i=Promise.all(nI(t,r,n))}return i.then(()=>{t.notify("AnimationComplete",e)})})(t,e,n))),n=nU(),i=!0,r=e=>(n,i)=>{let r=eE(t,i,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...i}=r;n={...n,...i,...e}}return n};function o(o){let{props:s}=t,a=function t(e){if(!e)return;if(!e.isControllingVariants){let n=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(n.initial=e.props.initial),n}let n={};for(let t=0;t<nW;t++){let i=tj[t],r=e.props[i];(tD(r)||!1===r)&&(n[i]=r)}return n}(t.parent)||{},l=[],u=new Set,c={},h=1/0;for(let e=0;e<nB;e++){var d;let f=nz[e],p=n[f],m=void 0!==s[f]?s[f]:a[f],g=tD(m),v=f===o?p.isActive:null;!1===v&&(h=e);let y=m===a[f]&&m!==s[f]&&g;if(y&&i&&t.manuallyAnimateOnMount&&(y=!1),p.protectedKeys={...c},!p.isActive&&null===v||!m&&!p.prevProp||t_(m)||"boolean"==typeof m)continue;let w=(d=p.prevProp,"string"==typeof m?m!==d:!!Array.isArray(m)&&!nV(m,d)),x=w||f===o&&p.isActive&&!y&&g||e>h&&g,b=!1,S=Array.isArray(m)?m:[m],E=S.reduce(r(f),{});!1===v&&(E={});let{prevResolvedValues:P={}}=p,T={...P,...E},C=e=>{x=!0,u.has(e)&&(b=!0,u.delete(e)),p.needsAnimating[e]=!0;let n=t.getValue(e);n&&(n.liveStyle=!1)};for(let t in T){let e=E[t],n=P[t];if(!c.hasOwnProperty(t))(eT(e)&&eT(n)?nV(e,n):e===n)?void 0!==e&&u.has(t)?C(t):p.protectedKeys[t]=!0:null!=e?C(t):u.add(t)}p.prevProp=m,p.prevResolvedValues=E,p.isActive&&(c={...c,...E}),i&&t.blockInitialAnimation&&(x=!1);let M=y&&w,A=!M||b;x&&A&&l.push(...S.map(e=>{let n={type:f};if("string"==typeof e&&i&&!M&&t.manuallyAnimateOnMount&&t.parent){let{parent:i}=t,r=eE(i,e);if(i.enteringChildren&&r){let{delayChildren:e}=r.transition||{};n.delay=nF(i.enteringChildren,t,e)}}return{animation:e,options:n}}))}if(u.size){let e={};if("boolean"!=typeof s.initial){let n=eE(t,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(e.transition=n.transition)}u.forEach(n=>{let i=t.getBaseTarget(n),r=t.getValue(n);r&&(r.liveStyle=!0),e[n]=i??null}),l.push({animation:e})}let f=!!l.length;return i&&(!1===s.initial||s.initial===s.animate)&&!t.manuallyAnimateOnMount&&(f=!1),i=!1,f?e(l):Promise.resolve()}return{animateChanges:o,setActive:function(e,i){if(n[e].isActive===i)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,i)),n[e].isActive=i;let r=o(e);for(let t in n)n[t].protectedKeys={};return r},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=nU(),i=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();t_(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let nH=0;class nq extends nX{constructor(){super(...arguments),this.id=nH++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;let i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>
13{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let nK={x:!1,y:!1};function nZ(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}let nG=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function nJ(t){return{point:{x:t.pageX,y:t.pageY}}}let nQ=t=>e=>nG(e)&&t(e,nJ(e));function n0(t,e,n,i){return nZ(t,e,nQ(n),i)}function n1(t){return t.max-t.min}function n2(t,e,n,i=.5){t.origin=i,t.originPoint=(0,x.t)(e.min,e.max,t.origin),t.scale=n1(n)/n1(e),t.translate=(0,x.t)(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function n4(t,e,n,i){n2(t.x,e.x,n.x,i?i.originX:void 0),n2(t.y,e.y,n.y,i?i.originY:void 0)}function n3(t,e,n){t.min=n.min+e.min,t.max=t.min+n1(e)}function n5(t,e,n){t.min=e.min-n.min,t.max=t.min+n1(e)}function n6(t,e,n){n5(t.x,e.x,n.x),n5(t.y,e.y,n.y)}function n9(t){return[t("x"),t("y")]}let n8=({current:t})=>t?t.ownerDocument.defaultView:null,n7=(t,e)=>Math.abs(t-e);class it{constructor(t,e,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=ir(this.lastMoveEventInfo,this.history),i=null!==this.startEvent,r=(t=n.offset,e={x:0,y:0},Math.sqrt(n7(t.x,e.x)**2+n7(t.y,e.y)**2)>=this.distanceThreshold);if(!i&&!r)return;let{point:o}=n,{timestamp:s}=X.frameData;this.history.push({...o,timestamp:s});let{onStart:a,onMove:l}=this.handlers;
13i||(a&&a(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=ie(e,this.transformPagePoint),X.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:n,onSessionEnd:i,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=ir("pointercancel"===t.type?this.lastMoveEventInfo:ie(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!nG(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=i||window;let s=ie(nJ(t),this.transformPagePoint),{point:a}=s,{timestamp:l}=X.frameData;this.history=[{...a,timestamp:l}];let{onSessionStart:u}=e;u&&u(t,ir(s,this.history)),this.removeListeners=(0,eR.z)(n0(this.contextWindow,"pointermove",this.handlePointerMove),n0(this.contextWindow,"pointerup",this.handlePointerUp),n0(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,X.Pn)(this.updatePoint)}}function ie(t,e){return e?{point:e(t.point)}:t}function ii(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ir({point:t},e){return{point:t,delta:ii(t,io(e)),offset:ii(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null,r=io(t);for(;n>=0&&(i=t[n],!(r.timestamp-i.timestamp>ek(.1)));)n--;if(!i)return{x:0,y:0};let o=e_(r.timestamp-i.timestamp);if(0===o)return{x:0,y:0};let s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e,0)}}function io(t){return t[t.length-1]}var is=n(8946);function ia(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function il(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function iu(t,e,n){return{min:ic(t,e),max:ic(t,n)}}function ic(t,e){return"number"==typeof t?t:t[e]||0}let ih=new WeakMap;class id{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=tA(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:n}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new it(t,{onSessionStart:t=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(nJ(t).point)},onStart:(t,e)=>{let{drag:n,dragPropagation:i,onDragStart:r}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===n||"y"===n?nK[n]?null:(nK[n]=!0,()=>{nK[n]=!1}):nK.x||nK.y?null:(nK.x=nK.y=!0,()=>{nK.x=nK.y=!1}),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),n9(t=>{let e=this.getAxisMotionValue(t).get()||0;if(L.aQ.test(e)){let{projection:n}=this.visualElement;if(n&&n.layout){let i=n.layout.layoutBox[t];if(i){let t=n1(i);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&X.Wi.postRender(()=>r(t,e)),eM(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:r,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:s}=e;if(i&&null===this.currentDirection){this.currentDirection=function(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}(s),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>n9(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,distanceThreshold:n,contextWindow:n8(this.visualElement)})}stop(t,e){let n=t||this.latestPointerEvent,i=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!n)return;let{velocity:o}=i;this.startAnimation(o);let{onDragEnd:s}=this.getProps();s&&X.Wi.postRender(()=>s(n,i))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){let{drag:i}=this.getProps();if(!n||!ip(t,i,this.currentDirection))return;let r=this.getAxisMotionValue(t),o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?(0,x.t)(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?(0,x.t)(n,t,i.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),r.set(o)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&ey(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=function(t,{top:e,left:n,bottom:i,right:r}){return{x:ia(t.x,n,r),y:ia(t.y,e,i)}}(n.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:iu(t,"left","right"),y:iu(t,"top","bottom")}}(e),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&n9(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!ey(e))return!1;let i=e.current;(0,N.k)(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let o=function(t,e,n){let i=k(t,n),{scroll:r}=e;return r&&(A(i.x,r.offset.x),A(i.y,r.offset.y)),i}(i,r.root,this.visualElement.getTransformPagePoint()),s={x:il((t=r.layout.layoutBox).x,o.x),y:il(t.y,o.y)};if(n){let t=n(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(s));this.hasMutatedConstraints=!!t,t&&(s=w(t))}return s}startAnimation(t){let{drag:e,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(n9(s=>{if(!ip(s,e,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?t[s]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(t,e){let n=this.getAxisMotionValue(t);return eM(this.visualElement,t),n.start(nj(t,n,0,e,this.visualElement,!1))}stopAnimation(){n9(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){n9(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps();return n[e]||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){n9(e=>{let{drag:n}=this.getProps();if(!ip(e,n,this.currentDirection))return;let{projection:i}=this.visualElement,r=this.getAxisMotionValue(e);if(i&&i.layout){let{min:n,max:o}=i.layout.layoutBox[e];r.set(t[e]-(0,x.t)(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!ey(e)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};n9(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let n=e.get();i[t]=function(t,e){let n=.5,i=n1(t),r=n1(e);return r>i?n=(0,is.Y)(e.min,e.max-i,t.min):i>r&&(n=(0,is.Y)(t.min,t.max-r,e.min)),(0,eO.u)(0,1,n)}({min:n,max:n},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),n9(e=>{if(!ip(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];n.set((0,x.t)(r,o,i[e]))})}addListeners(){if(!this.visualElement.current)return;ih.set(this.visualElement,this);let t=n0(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:n=!0}
13=this.getProps();e&&n&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();ey(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),X.Wi.read(e);let r=nZ(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(n9(e=>{let n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),i(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=.35,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:s}}}function ip(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}class im extends nX{constructor(t){super(t),this.removeGroupControls=eH.Z,this.removeListeners=eH.Z,this.controls=new id(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eH.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let ig=t=>(e,n)=>{t&&X.Wi.postRender(()=>t(e,n))};class iv extends nX{constructor(){super(...arguments),this.removePointerDownListener=eH.Z}onPointerDown(t){this.session=new it(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:n8(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:ig(t),onStart:ig(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&X.Wi.postRender(()=>i(t,e))}}}mount(){this.removePointerDownListener=n0(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var iy=n(5947);let iw={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ix(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let ib={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!L.px.test(t))return t;t=parseFloat(t)}let n=ix(t,e.target.x),i=ix(t,e.target.y);return`${n}% ${i}%`}},iS=!1;class iE extends r.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:r}=t;!function(t){for(let e in t)tq[e]=t[e],(0,y.f)(e)&&(tq[e].isCSSVariable=!0)}(iT),r&&(e.group&&e.group.add(r),n&&n.register&&i&&n.register(r),iS&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),iw.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:n,drag:i,isPresent:r}=this.props,{projection:o}=n;return o&&(o.isPresent=r,iS=!0,i||t.layoutDependency!==e||void 0===e||t.isPresent!==r?o.willUpdate():this.safeToRemove(),t.isPresent===r||(r?o.promote():o.relegate()||X.Wi.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tx.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;iS=!0,i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function iP(t){let[e,n]=(0,iy.oO)(),i=(0,r.useContext)(t7.p);return(0,t8.jsx)(iE,{...t,layoutGroup:i,switchLayoutGroup:(0,r.useContext)(ex),isPresent:e,safeToRemove:n})}let iT={borderRadius:{...ib,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ib,borderTopRightRadius:ib,borderBottomLeftRadius:ib,borderBottomRightRadius:ib,boxShadow:{correct:(t,{treeScale:e,projectionDelta:n})=>{let i=tt.P.parse(t);if(i.length>5)return t;let r=tt.P.createTransformer(t),o="number"!=typeof i[0]?1:0,s=n.x.scale*e.x,a=n.y.scale*e.y;i[0+o]/=s,i[1+o]/=a;let l=(0,x.t)(s,a,.5);return"number"==typeof i[2+o]&&(i[2+o]/=l),"number"==typeof i[3+o]&&(i[3+o]/=l),r(i)}}};var iC=n(678),iM=n(5774);let iA=(t,e)=>t.depth-e.depth;class iR{constructor(){this.children=[],this.isDirty=!1}add(t){(0,iM.y4)(this.children,t),this.isDirty=!0}remove(t){(0,iM.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(iA),this.isDirty=!1,this.children.forEac
13h(t)}}let iO=["TopLeft","TopRight","BottomLeft","BottomRight"],ik=iO.length,i_=t=>"string"==typeof t?parseFloat(t):t,iD=t=>"number"==typeof t||L.px.test(t);function iL(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let ij=iF(0,.5,e9),iI=iF(.5,.95,eH.Z);function iF(t,e,n){return i=>i<t?0:i>e?1:n((0,is.Y)(t,e,i))}function iN(t,e){t.min=e.min,t.max=e.max}function iV(t,e){iN(t.x,e.x),iN(t.y,e.y)}function iW(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function iz(t,e,n,i,r){return t-=e,t=i+1/n*(t-i),void 0!==r&&(t=i+1/r*(t-i)),t}function iB(t,e,[n,i,r],o,s){!function(t,e=0,n=1,i=.5,r,o=t,s=t){if(L.aQ.test(e)&&(e=parseFloat(e),e=(0,x.t)(s.min,s.max,e/100)-s.min),"number"!=typeof e)return;let a=(0,x.t)(o.min,o.max,i);t===o&&(a-=e),t.min=iz(t.min,e,n,a,r),t.max=iz(t.max,e,n,a,r)}(t,e[n],e[i],e[r],e.scale,o,s)}let i$=["x","scaleX","originX"],iU=["y","scaleY","originY"];function iX(t,e,n,i){iB(t.x,e,i$,n?n.x:void 0,i?i.x:void 0),iB(t.y,e,iU,n?n.y:void 0,i?i.y:void 0)}function iY(t){return 0===t.translate&&1===t.scale}function iH(t){return iY(t.x)&&iY(t.y)}function iq(t,e){return t.min===e.min&&t.max===e.max}function iK(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function iZ(t,e){return iK(t.x,e.x)&&iK(t.y,e.y)}function iG(t){return n1(t.x)/n1(t.y)}function iJ(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class iQ{constructor(){this.members=[]}add(t){(0,iM.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,iM.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let n=this.members.findIndex(e=>t===e);if(0===n)return!1;for(let t=n;t>=0;t--){let n=this.members[t];if(!1!==n.isPresent){e=n;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let i0={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},i1=["","X","Y","Z"],i2=0;function i4(t,e,n,i){let{latestValues:r}=e;r[t]&&(n[t]=r[t],e.setStaticValue(t,0),i&&(i[t]=0))}function i3({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(t={},n=e?.()){this.id=i2++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,nm.f.value&&(i0.nodes=i0.calculatedTargetDeltas=i0.calculatedProjections=0),this.nodes.forEach(i9),this.nodes.forEach(rr),this.nodes.forEach(ro),this.nodes.forEach(i8),nm.f.addProjectionMetrics&&nm.f.addProjectionMetrics(i0)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new iR)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tS.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=(0,iC.v)(e)&&(!(0,iC.v)(e)||"svg"!==e.tagName),this.instance=e;let{layoutId:n,layout:i,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(i||n)&&(this.isLayoutDirty=!0),t){let n;let i=0,r=()=>this.root.updateBlockedByResize=!1;X.Wi.read(()=>{i=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==i&&(i=t,this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){let n=tg.X.now(),i=({timestamp:e})=>{let r=e-n;r>
13=250&&((0,X.Pn)(i),t(r-250))};return X.Wi.setup(i,!0),()=>(0,X.Pn)(i)}(r,0),iw.hasAnimatedSinceResize&&(iw.hasAnimatedSinceResize=!1,this.nodes.forEach(ri)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&r&&(n||i)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||r.getDefaultTransition()||rh,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!iZ(this.targetLayout,i),u=!e&&n;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...eP(o,"layout"),onPlay:s,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||ri(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,X.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(rs),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:n}=e.options;if(!n)return;let i=n.props[ew];if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:t,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(i,"transform",X.Wi,!(t||n))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;let i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rt);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(re);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rn),this.nodes.forEach(i5),this.nodes.forEach(i6)):this.nodes.forEach(re),this.clearAllSnapshots();let t=tg.X.now();X.frameData.delta=(0,eO.u)(0,1e3/60,t-X.frameData.timestamp),X.frameData.timestamp=t,X.frameData.isProcessing=!0,X.yL.update.process(X.frameData),X.yL.preRender.process(X.frameData),X.yL.render.process(X.frameData),X.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tx.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(i7),this.sharedNodes.forEach(ra)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,X.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){X.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||n1(this.snapshot.measuredBox.x)||n1(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=tA(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=i(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!iH(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;t&&this.instance&&(e||E(this.latestValues)||o)&&(r(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let n=this.measurePageBox(),i=this.removeElementScroll(n);return t&&(i=this.removeTransform(i)),rp((e=i).x),rp(e.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return tA();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rg))){let{scroll:t}=this.root;t&&(A(e.x,t.offset.x),A(e.y,t.offset.y))}return e}removeElementScroll(t){let e=tA();if(iV(e,t),this.scroll?.wasRoot)return e;for(let n=0;n<this.path.length;n++){let i=this.path[n],{scroll:r,options:o}=i;i!==this.root&&r&&o.layoutScroll&&(r.wasRoot&&iV(e,t),A(e.x,r.offset.x),A(e.y,r.offset.y))}return e}applyTransform(t,e=!1){let n=tA();iV(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&O(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),E(i.latestValues)&&O(n,i.latestValues)}return E(this.latestValues)&&O(n,this.latestValues),n}removeTransform(t){let e=tA();iV(e,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];if(!n.instance||!E(n.latestValues))continue;S(n.latestValues)&&n.updateSnapshot();let i=tA();iV(i,n.measurePageBox()),iX(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,i)}return E(this.latestValues)&&iX(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==X.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==e;if(!(t||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:i,layoutId:r}=this.options;if(this.layout&&(i||r)){if(this.resolvedRelativeTargetAt=X.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tA(),this.relativeTargetOrigin=tA(),n6(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),iV(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=tA(),this.targetWithTransforms=tA()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,s,a;this.forceRelativeParentToResolveTarget(),o=this.target,s=this.relativeTarget,a=this.relativeParent.target,n3(o.x,s.x,a.x),n3(o.y,s.y,a.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):iV(this.target,this.layout.layoutBox),M(this.target,this.targetDelta)):iV(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tA(),this.relativeTargetOrigin=tA(),n6(this.relativeTargetOrigin,this.target,t.target),iV(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}nm.f.value&&i0.calculatedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||S(this.parent.latestValues)||P(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,n=!0;
13if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===X.frameData.timestamp&&(n=!1),n)return;let{layout:i,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||r))return;iV(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,s=this.treeScale.y;!function(t,e,n,i=!1){let r,o;let s=n.length;if(s){e.x=e.y=1;for(let a=0;a<s;a++){o=(r=n[a]).projectionDelta;let{visualElement:s}=r.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&O(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,M(t,o)),i&&E(r.latestValues)&&O(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=tA());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(iW(this.prevProjectionDelta.x,this.projectionDelta.x),iW(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),n4(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===s&&iJ(this.projectionDelta.x,this.prevProjectionDelta.x)&&iJ(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),nm.f.value&&i0.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=tC(),this.projectionDelta=tC(),this.projectionDeltaWithTransform=tC()}setAnimationOrigin(t,e=!1){let n;let i=this.snapshot,r=i?i.latestValues:{},o={...this.latestValues},s=tC();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=tA(),l=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,h=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(rc));this.animationProgress=0,this.mixTargetDelta=e=>{let i=e/1e3;if(rl(s.x,t.x,i),rl(s.y,t.y,i),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,f,p;n6(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,ru(f.x,p.x,a.x,i),ru(f.y,p.y,a.y,i),n&&(u=this.relativeTarget,d=n,iq(u.x,d.x)&&iq(u.y,d.y))&&(this.isProjectionDirty=!1),n||(n=tA()),iV(n,this.relativeTarget)}l&&(this.animationValues=o,function(t,e,n,i,r,o){r?(t.opacity=(0,x.t)(0,n.opacity??1,ij(i)),t.opacityExit=(0,x.t)(e.opacity??1,0,iI(i))):o&&(t.opacity=(0,x.t)(e.opacity??1,n.opacity??1,i));for(let r=0;r<ik;r++){let o=`border${iO[r]}Radius`,s=iL(e,o),a=iL(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||iD(s)===iD(a)?(t[o]=Math.max((0,x.t)(i_(s),i_(a),i),0),(L.aQ.test(a)||L.aQ.test(s))&&(t[o]+="%")):t[o]=a)}(e.rotate||n.rotate)&&(t.rotate=(0,x.t)(e.rotate||0,n.rotate||0,i))}(o,r,this.latestValues,i,h,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,X.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.Wi.update(()=>{iw.hasAnimatedSinceResize=!0,eD.layout++,this.motionValue||(this.motionValue=(0,tv.BX)(0)),this.currentAnimation=function(t,e,n){let i=tm(t)?t:(0,tv.BX)(t);return i.start(nj("",i,e,n)),i.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{eD.layout--},onComplete:()=>{eD.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:n,layout:i,latestValues:r}=t;
13if(e&&n&&i){if(this!==t&&this.layout&&i&&rm(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||tA();let e=n1(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;let i=n1(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}iV(e,n),O(e,r),n4(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new iQ),this.sharedNodes.get(t).add(e);let n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){let i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;let i={};n.z&&i4("z",t,i,this.animationValues);for(let e=0;e<i1.length;e++)i4(`rotate${i1[e]}`,t,i,this.animationValues),i4(`skew${i1[e]}`,t,i,this.animationValues);for(let e in t.render(),i)t.setStaticValue(e,i[e]),this.animationValues&&(this.animationValues[e]=i[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=ed(e?.pointerEvents)||"",t.transform=n?n(this.latestValues,""):"none";return}let i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=ed(e?.pointerEvents)||""),this.hasProjected&&!E(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=i.animationValues||i.latestValues;this.applyTransformsToTarget();let o=function(t,e,n){let i="",r=t.x.translate/e.x,o=t.y.translate/e.y,s=n?.z||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),(1!==e.x||1!==e.y)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:o,skewX:s,skewY:a}=n;t&&(i=`perspective(${t}px) ${i}`),e&&(i+=`rotate(${e}deg) `),r&&(i+=`rotateX(${r}deg) `),o&&(i+=`rotateY(${o}deg) `),s&&(i+=`skewX(${s}deg) `),a&&(i+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);n&&(o=n(r,o)),t.transform=o;let{x:s,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*s.origin}% ${100*a.origin}% 0`,i.animationValues?t.opacity=i===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=i===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,tq){if(void 0===r[e])continue;let{correct:n,applyTo:s,isCSSVariable:a}=tq[e],l="none"===o?r[e]:n(r[e],i);if(s){let e=s.length;for(let n=0;n<e;n++)t[s[n]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=i===this?ed(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(rt),this.root.sharedNodes.clear()}}}function i5(t){t.updateLayout()}function i6(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:i}=t.layout,{animationType:r}=t.options,o=e.source!==t.layout.source;"size"===r?n9(t=>{let i=o?e.measuredBox[t]:e.layoutBox[t],r=n1(i);i.min=n[t].min,i.max=i.min+r}):rm(r,e.layoutBox,n)&&n9(i=>{let r=o?e.measuredBox[i]:e.layoutBox[i],s=n1(n[i]);r.max=r.min+s,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+s)});let s=tC();n4(s,n,e.layoutBox);let a=tC();o?n4(a,t.applyTransform(i,!0),e.measuredBox):n4(a,n,e.layoutBox);let l=!iH(s),u=!1;if(!t.resumeFrom){let i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:r,layout:o}=i;if(r&&o){let s=tA();n6(s,e.layoutBox,r.layoutBox);let a=tA();n6(a,n,o.layoutBox),iZ(s,a)||(u=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=s,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function i9(t){nm.f.value&&i0.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
13isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function i8(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function i7(t){t.clearSnapshot()}function rt(t){t.clearMeasurements()}function re(t){t.isLayoutDirty=!1}function rn(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ri(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rr(t){t.resolveTargetDelta()}function ro(t){t.calcProjection()}function rs(t){t.resetSkewAndRotation()}function ra(t){t.removeLeadSnapshot()}function rl(t,e,n){t.translate=(0,x.t)(e.translate,0,n),t.scale=(0,x.t)(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ru(t,e,n,i){t.min=(0,x.t)(e.min,n.min,i),t.max=(0,x.t)(e.max,n.max,i)}function rc(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rh={duration:.45,ease:[.4,0,.1,1]},rd=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rf=rd("applewebkit/")&&!rd("chrome/")?Math.round:eH.Z;function rp(t){t.min=rf(t.min),t.max=rf(t.max)}function rm(t,e,n){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(iG(e)-iG(n)))}function rg(t){return t!==t.root&&t.scroll?.wasRoot}let rv=i3({attachResizeListener:(t,e)=>nZ(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ry={current:void 0},rw=i3({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ry.current){let t=new rv({});t.mount(window),t.setOptions({layoutScroll:!0}),ry.current=t}return ry.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var rx=n(1816);function rb(t,e){let n=(0,rx.I)(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}function rS(t){return!("touch"===t.pointerType||nK.x||nK.y)}function rE(t,e,n){let{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);let r=i["onHover"+n];r&&X.Wi.postRender(()=>r(e,nJ(e)))}class rP extends nX{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,n={}){let[i,r,o]=rb(t,n),s=t=>{if(!rS(t))return;let{target:n}=t,i=e(n,t);if("function"!=typeof i||!n)return;let o=t=>{rS(t)&&(i(t),n.removeEventListener("pointerleave",o))};n.addEventListener("pointerleave",o,r)};return i.forEach(t=>{t.addEventListener("pointerenter",s,r)}),o}(t,(t,e)=>(rE(this.node,e,"Start"),t=>rE(this.node,t,"End"))))}unmount(){}}class rT extends nX{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,eR.z)(nZ(this.node.current,"focus",()=>this.onFocus()),nZ(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var rC=n(3243);let rM=(t,e)=>!!e&&(t===e||rM(t,e.parentElement)),rA=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),rR=new WeakSet;function rO(t){return e=>{"Enter"===e.key&&t(e)}}function rk(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let r_=(t,e)=>{let n=t.currentTarget;if(!n)return;let i=rO(()=>{if(rR.has(n))return;rk(n,"down");let t=rO(()=>{rk(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",()=>rk(n,"cancel"),e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function rD(t){return nG(t)&&!(nK.x||nK.y)}function rL(t,e,n){let{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);let r=i["onTap"+("End"===n?"":n)];r&&X.Wi.postRender(()=>r(e,nJ(e)))}class rj extends nX{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,n={}){let[i,r,o]=rb(t,n),s=t=>{let i=t.currentTarget;if(!rD(t))return;rR.add(i);let o=e(i,t),s=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),rR.has(i)&&rR.delete(i),rD(t)&&"function"==typeof o&&o(t,{success:e})},a=t=>{s(t,i===window||i===document||n.useGlobalTarget||rM(i,t.target))},l=t=>{s(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};
13return i.forEach(t=>{(n.useGlobalTarget?window:t).addEventListener("pointerdown",s,r),(0,rC.R)(t)&&(t.addEventListener("focus",t=>r_(t,r)),rA.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),o}(t,(t,e)=>(rL(this.node,e,"Start"),(t,{success:e})=>rL(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let rI=new WeakMap,rF=new WeakMap,rN=t=>{let e=rI.get(t.target);e&&e(t)},rV=t=>{t.forEach(rN)},rW={some:0,all:1};class rz extends nX{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:r}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:rW[i]};return function(t,e,n){let i=function({root:t,...e}){let n=t||document;rF.has(n)||rF.set(n,{});let i=rF.get(n),r=JSON.stringify(e);return i[r]||(i[r]=new IntersectionObserver(rV,{root:t,...e})),i[r]}(e);return rI.set(t,n),i.observe(t),()=>{rI.delete(t),i.unobserve(t)}}(this.node.current,o,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}let rB=function(t,e){if("undefined"==typeof Proxy)return eS;let n=new Map,i=(n,i)=>eS(n,i,t,e);return new Proxy((t,e)=>i(t,e),{get:(r,o)=>"create"===o?i:(n.has(o)||n.set(o,eS(o,void 0,t,e)),n.get(o))})}({animation:{Feature:nY},exit:{Feature:nq},inView:{Feature:rz},tap:{Feature:rj},focus:{Feature:rT},hover:{Feature:rP},pan:{Feature:iv},drag:{Feature:im,ProjectionNode:rw,MeasureLayout:iP},layout:{ProjectionNode:rw,MeasureLayout:iP}},(t,e)=>t9(t)?new t5(e):new tG(e,{allowProjection:t!==r.Fragment}))},1741:function(t,e,n){"use strict";n.d(e,{j:function(){return i}});let i="undefined"!=typeof window},270:function(t,e,n){"use strict";n.d(e,{A:function(){return o}});var i=n(1741),r=n(9609);function o(){if(r.O.current=!0,i.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>r.n.current=t.matches;t.addEventListener("change",e),e()}else r.n.current=!1}}},9609:function(t,e,n){"use strict";n.d(e,{O:function(){return r},n:function(){return i}});let i={current:null},r={current:!1}},3302:function(t,e,n){"use strict";n.d(e,{J:function(){return s}});var i=n(7294),r=n(270),o=n(9609);function s(){o.O.current||(0,r.A)();let[t]=(0,i.useState)(o.n.current);return t}},6681:function(t,e,n){"use strict";n.d(e,{h:function(){return r}});var i=n(7294);function r(t){let e=(0,i.useRef)(null);return null===e.current&&(e.current=t()),e.current}},8868:function(t,e,n){"use strict";n.d(e,{L:function(){return r}});var i=n(7294);let r=n(1741).j?i.useLayoutEffect:i.useEffect},4025:function(t,e,n){"use strict";n.d(e,{W:function(){return r}});var i=n(7294);function r(t,e,n){(0,i.useInsertionEffect)(()=>t.on(e,n),[t,e,n])}},4960:function(t,e,n){"use strict";n.d(e,{c:function(){return a}});var i=n(8486),r=n(7294),o=n(6014),s=n(6681);function a(t){let e=(0,s.h)(()=>(0,i.BX)(t)),{isStatic:n}=(0,r.useContext)(o._);if(n){let[,n]=(0,r.useState)(t);(0,r.useEffect)(()=>e.on("change",n),[])}return e}},4424:function(t,e,n){"use strict";let i,r;n.d(e,{v:function(){return H}});var o=n(8486),s=n(5386),a=n(7294),l=n(7726),u=n(2866);function c(t,e){let n;let i=()=>{let{currentTime:i}=e,r=(null===i?0:i.value)/100;n!==r&&t(r),n=r};return u.Wi.preUpdate(i,!0),()=>(0,u.Pn)(i)}var h=n(4548),d=n(678),f=n(1816);let p=new WeakMap,m=(t,e,n)=>(i,r)=>r&&r[0]?r[0][t+"Size"]:(0,d.v)(i)&&"getBBox"in i?i.getBBox()[e]:i[n],g=m("inline","width","offsetWidth"),v=m("block","height","offsetHeight");function y({target:t,borderBoxSize:e}){p.get(t)?.forEach(n=>{n(t,{get width(){return g(t,e)},get height(){return v(t,e)}})})}function w(t){t.forEach(y)}let x=new Set;var b=n(8946),S=n(7142);let E=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),P=()=>({time:0,x:E(),y:E()}),T={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function C(t,e,n,i){let r=n[e],{length:o,position:s}=T[e],a=r.current,l=n.time;r.current=t[`scroll${s}`],r.scrollLength=t[`scroll${o}`]-t[`client${o}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=(0,b.Y)(0,r.scrollLength,r.current);let u=i-l;r.velocity=u>50?0:(0,S.R)(r.current-a,u)}var M=n(8098),A=n(7790),R=n(488),O=n(3243);let k={start:0,center:.5,end:1};function _(t,e,n=0){let i=0;if(t in k&&(t=k[t]),"string"==typeof t){let e=parseFloat(t);t.endsWith("px")?i=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?i=e/100*document.documentElement.clientWidth:t.endsWith("vh")?i=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(i=e*t),n+i}let D=[0,0],L=[[0,0],[1,1]],j={x:0,y:0},I=new WeakMap,F=new WeakMap,N=new WeakMap,V=t=>t===document.scrollingElement?window:t;function W(t,{container:e=document.scrollingElement,...n}={}){if(!e)return l.Z;let o=N.get(e);
13o||(o=new Set,N.set(e,o));let s=function(t,e,n,i={}){return{measure:e=>{!function(t,e=t,n){if(n.x.targetOffset=0,n.y.targetOffset=0,e!==t){let i=e;for(;i&&i!==t;)n.x.targetOffset+=i.offsetLeft,n.y.targetOffset+=i.offsetTop,i=i.offsetParent}n.x.targetLength=e===t?e.scrollWidth:e.clientWidth,n.y.targetLength=e===t?e.scrollHeight:e.clientHeight,n.x.containerLength=t.clientWidth,n.y.containerLength=t.clientHeight}(t,i.target,n),C(t,"x",n,e),C(t,"y",n,e),n.time=e,(i.offset||i.target)&&function(t,e,n){let{offset:i=L}=n,{target:r=t,axis:o="y"}=n,s="y"===o?"height":"width",a=r!==t?function(t,e){let n={x:0,y:0},i=t;for(;i&&i!==e;)if((0,O.R)(i))n.x+=i.offsetLeft,n.y+=i.offsetTop,i=i.offsetParent;else if("svg"===i.tagName){let t=i.getBoundingClientRect(),e=(i=i.parentElement).getBoundingClientRect();n.x+=t.left-e.left,n.y+=t.top-e.top}else if(i instanceof SVGGraphicsElement){let{x:t,y:e}=i.getBBox();n.x+=t,n.y+=e;let r=null,o=i.parentNode;for(;!r;)"svg"===o.tagName&&(r=o),o=i.parentNode;i=r}else break;return n}(r,t):j,l=r===t?{width:t.scrollWidth,height:t.scrollHeight}:"getBBox"in r&&"svg"!==r.tagName?r.getBBox():{width:r.clientWidth,height:r.clientHeight},u={width:t.clientWidth,height:t.clientHeight};e[o].offset.length=0;let c=!e[o].interpolate,h=i.length;for(let t=0;t<h;t++){let n=function(t,e,n,i){let r=Array.isArray(t)?t:D,o=0;return"number"==typeof t?r=[t,t]:"string"==typeof t&&(r=(t=t.trim()).includes(" ")?t.split(" "):[t,k[t]?t:"0"]),_(r[0],n,i)-_(r[1],e)}(i[t],u[s],l[s],a[o]);c||n===e[o].interpolatorOffsets[t]||(c=!0),e[o].offset[t]=n}c&&(e[o].interpolate=(0,M.s)(e[o].offset,(0,A.Y)(i),{clamp:!1}),e[o].interpolatorOffsets=[...e[o].offset]),e[o].progress=(0,R.u)(0,1,e[o].interpolate(e[o].current))}(t,n,i)},notify:()=>e(n)}}(e,t,P(),n);if(o.add(s),!I.has(e)){let t=()=>{for(let t of o)t.measure(u.frameData.timestamp);u.Wi.preUpdate(n)},n=()=>{for(let t of o)t.notify()},s=()=>u.Wi.read(t);I.set(e,s);let a=V(e);window.addEventListener("resize",s,{passive:!0}),e!==document.documentElement&&F.set(e,"function"==typeof e?(x.add(e),r||(r=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};x.forEach(e=>e(t))},window.addEventListener("resize",r)),()=>{x.delete(e),x.size||"function"!=typeof r||(window.removeEventListener("resize",r),r=void 0)}):function(t,e){i||"undefined"==typeof ResizeObserver||(i=new ResizeObserver(w));let n=(0,f.I)(t);return n.forEach(t=>{let n=p.get(t);n||(n=new Set,p.set(t,n)),n.add(e),i?.observe(t)}),()=>{n.forEach(t=>{let n=p.get(t);n?.delete(e),n?.size||i?.unobserve(t)})}}(e,s)),a.addEventListener("scroll",s,{passive:!0}),s()}let a=I.get(e);return u.Wi.read(a,!1,!0),()=>{(0,u.Pn)(a);let t=N.get(e);if(!t||(t.delete(s),t.size))return;let n=I.get(e);I.delete(e),n&&(V(e).removeEventListener("scroll",n),F.get(e)?.(),window.removeEventListener("resize",n))}}let z=new Map;function B({source:t,container:e,...n}){let{axis:i}=n;t&&(e=t);let r=z.get(e)??new Map;z.set(e,r);let o=n.target??"self",s=r.get(o)??{},a=i+(n.offset??[]).join(",");return s[a]||(s[a]=!n.target&&(0,h.t)()?new ScrollTimeline({source:e,axis:i}):function(t){let e={value:0},n=W(n=>{e.value=100*n[t.axis].progress},t);return{currentTime:e,cancel:n}}({container:e,...n})),s[a]}var $=n(6681),U=n(8868);let X=()=>({scrollX:(0,o.BX)(0),scrollY:(0,o.BX)(0),scrollXProgress:(0,o.BX)(0),scrollYProgress:(0,o.BX)(0)}),Y=t=>!!t&&!t.current;function H({container:t,target:e,...n}={}){let i=(0,$.h)(X),r=(0,a.useRef)(null),o=(0,a.useRef)(!1),u=(0,a.useCallback)(()=>(r.current=function(t,{axis:e="y",container:n=document.scrollingElement,...i}={}){if(!n)return l.Z;let r={axis:e,container:n,...i};return"function"==typeof t?2===t.length?W(e=>{t(e[r.axis].progress,e)},r):c(t,B(r)):function(t,e){let n=B(e);return t.attachTimeline({timeline:e.target?void 0:n,observe:t=>(t.pause(),c(e=>{t.time=t.duration*e},n))})}(t,r)}((t,{x:e,y:n})=>{i.scrollX.set(e.current),i.scrollXProgress.set(e.progress),i.scrollY.set(n.current),i.scrollYProgress.set(n.progress)},{...n,container:t?.current||void 0,target:e?.current||void 0}),()=>{r.current?.()}),[t,e,JSON.stringify(n.offset)]);return(0,U.L)(()=>
13{if(o.current=!1,!(Y(t)||Y(e)))return u();o.current=!0},[u]),(0,a.useEffect)(()=>o.current?((0,s.k)(!Y(t),"Container ref is defined but not hydrated","use-scroll-ref"),(0,s.k)(!Y(e),"Target ref is defined but not hydrated","use-scroll-ref"),u()):void 0,[u]),i}},1766:function(t,e,n){"use strict";n.d(e,{H:function(){return c}});var i=n(8098),r=n(6681),o=n(2866),s=n(8868),a=n(4960);function l(t,e){let n=(0,a.c)(e()),i=()=>n.set(e());return i(),(0,s.L)(()=>{let e=()=>o.Wi.preRender(i,!1,!0),n=t.map(t=>t.on("change",e));return()=>{n.forEach(t=>t()),(0,o.Pn)(i)}}),n}var u=n(8486);function c(t,e,n,r){if("function"==typeof t)return function(t){u.S1.current=[],t();let e=l(u.S1.current,t);return u.S1.current=void 0,e}(t);let o="function"==typeof e?e:function(...t){let e=!Array.isArray(t[0]),n=e?0:-1,r=t[0+n],o=t[1+n],s=t[2+n],a=t[3+n],l=(0,i.s)(o,s,a);return e?l(r):l}(e,n,r);return Array.isArray(t)?h(t,o):h([t],([t])=>o(t))}function h(t,e){let n=(0,r.h)(()=>[]);return l(t,()=>{n.length=0;let i=t.length;for(let e=0;e<i;e++)n[e]=t[e].get();return e(n)})}},6126:function(t,e,n){"use strict";function i(t,e,n){return Math.max(t,Math.min(e,n))}n.d(e,{Z:function(){return h}});var r=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(t){if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=t;let n=i(0,this.currentTime/this.duration,1),r=(e=n>=1)?1:this.easing(n);this.value=this.from+(this.to-this.from)*r}else if(this.lerp){var n,r,o;this.value=(n=this.value,r=this.to,(1-(o=1-Math.exp(-(60*this.lerp)*t)))*n+o*r),Math.round(this.value)===this.to&&(this.value=this.to,e=!0)}else this.value=this.to,e=!0;e&&this.stop(),this.onUpdate?.(this.value,e)}stop(){this.isRunning=!1}fromTo(t,e,{lerp:n,duration:i,easing:r,onStart:o,onUpdate:s}){this.from=this.value=t,this.to=e,this.lerp=n,this.duration=i,this.easing=r,this.currentTime=0,this.isRunning=!0,o?.(),this.onUpdate=s}},o=class{constructor(t,e,{autoResize:n=!0,debounce:i=250}={}){if(this.wrapper=t,this.content=e,n){var r;let t;this.debouncedResize=(r=this.resize,function(...e){let n=this;clearTimeout(t),t=setTimeout(()=>{t=void 0,r.apply(n,e)},i)}),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)}this.resize()}width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};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)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},s=class{events={};emit(t,...e){let n=this.events[t]||[];for(let t=0,i=n.length;t<i;t++)n[t]?.(...e)}on(t,e){return this.events[t]?.push(e)||(this.events[t]=[e]),()=>{this.events[t]=this.events[t]?.filter(t=>e!==t)}}off(t,e){this.events[t]=this.events[t]?.filter(t=>e!==t)}destroy(){this.events={}}},a=100/6,l={passive:!1},u=class{constructor(t,e={wheelMultiplier:1,touchMultiplier:1}){this.element=t,this.options=e,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,l),this.element.addEventListener("touchstart",this.onTouchStart,l),this.element.addEventListener("touchmove",this.onTouchMove,l),this.element.addEventListener("touchend",this.onTouchEnd,l)}touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new s;on(t,e){return this.emitter.on(t,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,l),this.element.removeEventListener("touchstart",this.onTouchStart,l),this.element.removeEventListener("touchmove",this.onTouchMove,l),this.element.removeEventListener("touchend",this.onTouchEnd,l)}onTouchStart=t=>{let{clientX:e,clientY:n}=t.targetTouches?t.targetTouches[0]:t;this.touchStart.x=e,this.touchStart.y=n,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:t})};onTouchMove=t=>{let{clientX:e,clientY:n}=t.targetTouches?t.targetTouches[0]:t,i=-(e-this.touchStart.x)*this.options.touchMultiplier,r=-(n-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=n,this.lastDelta={x:i,y:r},this.emitter.emit("scroll",{deltaX:i,deltaY:r,event:t})};onTouchEnd=t=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:t})};onWheel=t=>{let{deltaX:e,deltaY:n,deltaMode:i}=t,r=1===i?a:2===i?this.window.width:1,o=1===i?a:2===i?this.window.height:1;e*=r,n*=o,e*=this.options.wheelMultiplier,n*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:n,event:t})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}},c=t=>Math.min(1,1.001-Math.pow(2,-10*t)),h=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;__rafID=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new r;emitter=new s;dimensions;virtualScroll;constructor({wrapper:t=window,content:e=document.documentElement,eventsTarget:n=t,smoothWheel:i=!0,syncTouch:r=!1,syncTouchLerp:s=.075,touchInertiaExponent:a=1.7,duration:l,easing:h,lerp:d=.1,infinite:f=!1,orientation:p="vertical",gestureOrientation:m="horizontal"===p?"both":"vertical",touchMultiplier:g=1,wheelMultiplier:v=1,autoResize:y=!0,prevent:w,virtualScroll:x,overscroll:b=!0,autoRaf:S=!1,anchors:E=!1,autoToggle:P=!1,allowNestedScroll:T=!1,__experimental__naiveDimensions:C=!1}={}){window.lenisVersion="1.3.15",t&&t!==document.documentElement||(t=window),"number"==typeof l&&"function"!=typeof h?h=c:"function"==typeof h&&"number"!=typeof l&&(l=1),this.options={wrapper:t,content:e,eventsTarget:n,smoothWheel:i,syncTouch:r,syncTouchLerp:s,touchInertiaExponent:a,duration:l,easing:h,lerp:d,infinite:f,gestureOrientation:m,orientation:p,touchMultiplier:g,wheelMultiplier:v,autoResize:y,prevent:w,virtualScroll:x,overscroll:b,autoRaf:S,anchors:E,autoToggle:P,allowNestedScroll:T,__experimental__naiveDimensions:C},this.dimensions=new o(t,e,{autoResize:y}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=ne
13w u(n,{touchMultiplier:g,wheelMultiplier:v}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0}),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this.__rafID&&cancelAnimationFrame(this.__rafID)}on(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}onScrollEnd=t=>{t instanceof CustomEvent||"smooth"!==this.isScrolling&&!1!==this.isScrolling||t.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};onTransitionEnd=t=>{if(t.propertyName.includes("overflow")){let t=this.isHorizontal?"overflow-x":"overflow-y";["hidden","clip"].includes(getComputedStyle(this.rootElement)[t])?this.internalStop():this.internalStart()}};setScroll(t){this.isHorizontal?this.options.wrapper.scrollTo({left:t,behavior:"instant"}):this.options.wrapper.scrollTo({top:t,behavior:"instant"})}onClick=t=>{let e=t.composedPath().find(t=>t instanceof HTMLAnchorElement&&t.getAttribute("href")?.includes("#"));if(e){let t=e.getAttribute("href");if(t){let e="object"==typeof this.options.anchors&&this.options.anchors?this.options.anchors:void 0,n=`#${t.split("#")[1]}`;this.scrollTo(n,e)}}};onPointerDown=t=>{1===t.button&&this.reset()};onVirtualScroll=t=>{if("function"==typeof this.options.virtualScroll&&!1===this.options.virtualScroll(t))return;let{deltaX:e,deltaY:n,event:i}=t;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:n,event:i}),i.ctrlKey||i.lenisStopPropagation)return;let r=i.type.includes("touch"),o=i.type.includes("wheel");this.isTouching="touchstart"===i.type||"touchmove"===i.type;let s=0===e&&0===n;if(this.options.syncTouch&&r&&"touchstart"===i.type&&s&&!this.isStopped&&!this.isLocked){this.reset();return}let a="vertical"===this.options.gestureOrientation&&0===n||"horizontal"===this.options.gestureOrientation&&0===e;if(s||a)return;let l=i.composedPath();l=l.slice(0,l.indexOf(this.rootElement));let u=this.options.prevent;if(l.find(t=>t instanceof HTMLElement&&("function"==typeof u&&u?.(t)||t.hasAttribute?.("data-lenis-prevent")||r&&t.hasAttribute?.("data-lenis-prevent-touch")||o&&t.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.checkNestedScroll(t,{deltaX:e,deltaY:n}))))return;if(this.isStopped||this.isLocked){i.cancelable&&i.preventDefault();return}if(!(this.options.syncTouch&&r||this.options.smoothWheel&&o)){this.isScrolling="native",this.animate.stop(),i.lenisStopPropagation=!0;return}let c=n;"both"===this.options.gestureOrientation?c=Math.abs(n)>Math.abs(e)?n:e:"horizontal"===this.options.gestureOrientation&&(c=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||0===this.animatedScroll&&n>0||this.animatedScroll===this.limit&&n<0))&&(i.lenisStopPropagation=!0),i.cancelable&&i.preventDefault();let h=r&&this.options.syncTouch,d=r&&"touchend"===i.type;d&&(c=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent)),this.scrollTo(this.targetScroll+c,{programmatic:!1,...h?{lerp:d?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=()=>{if(null!==this._resetVelocityTimeout&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(!1===this.isScrolling||"native"===this.isScrolling){let t=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-t,this.direction=Math.sign(this.animatedScroll-t),this.isStopped||(this.isScrolling="native"),this.emit
13(),0!==this.velocity&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};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())}raf=t=>{let e=t-(this.time||t);this.time=t,this.animate.advance(.001*e),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))};scrollTo(t,{offset:e=0,immediate:n=!1,lock:r=!1,duration:o=this.options.duration,easing:s=this.options.easing,lerp:a=this.options.lerp,onStart:l,onComplete:u,force:h=!1,programmatic:d=!0,userData:f}={}){if(!this.isStopped&&!this.isLocked||h){if("string"==typeof t&&["top","left","start","#"].includes(t))t=0;else if("string"==typeof t&&["bottom","right","end"].includes(t))t=this.limit;else{let n;if("string"==typeof t?(n=document.querySelector(t))||("#top"===t?t=0:console.warn("Lenis: Target not found",t)):t instanceof HTMLElement&&t?.nodeType&&(n=t),n){if(this.options.wrapper!==window){let t=this.rootElement.getBoundingClientRect();e-=this.isHorizontal?t.left:t.top}let i=n.getBoundingClientRect();t=(this.isHorizontal?i.left:i.top)+this.animatedScroll}}if("number"==typeof t){if(t+=e,t=Math.round(t),this.options.infinite){if(d){this.targetScroll=this.animatedScroll=this.scroll;let e=t-this.animatedScroll;e>this.limit/2?t-=this.limit:e<-this.limit/2&&(t+=this.limit)}}else t=i(0,t,this.limit);if(t===this.targetScroll){l?.(this),u?.(this);return}if(this.userData=f??{},n){this.animatedScroll=this.targetScroll=t,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),u?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}d||(this.targetScroll=t),"number"==typeof o&&"function"!=typeof s?s=c:"function"==typeof s&&"number"!=typeof o&&(o=1),this.animate.fromTo(this.animatedScroll,t,{duration:o,easing:s,lerp:a,onStart:()=>{r&&(this.isLocked=!0),this.isScrolling="smooth",l?.(this)},onUpdate:(t,e)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=t-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=t,this.setScroll(this.scroll),d&&(this.targetScroll=t),e||this.emit(),e&&(this.reset(),this.emit(),u?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(t,{deltaX:e,deltaY:n}){let i,r,o,s,a,l,u,c,h,d,f,p,m,g;let v=Date.now(),y=t._lenis??={},w=this.options.gestureOrientation;if(v-(y.time??0)>2e3){y.time=Date.now();let e=window.getComputedStyle(t);y.computedStyle=e;let n=e.overflowX,h=e.overflowY;if(i=["auto","overlay","scroll"].includes(n),r=["auto","overlay","scroll"].includes(h),y.hasOverflowX=i,y.hasOverflowY=r,!i&&!r||"vertical"===w&&!r||"horizontal"===w&&!i)return!1;a=t.scrollWidth,l=t.scrollHeight,u=t.clientWidth,c=t.clientHeight,o=a>u,s=l>c,y.isScrollableX=o,y.isScrollableY=s,y.scrollWidth=a,y.scrollHeight=l,y.clientWidth=u,y.clientHeight=c}else o=y.isScrollableX,s=y.isScrollableY,i=y.hasOverflowX,r=y.hasOverflowY,a=y.scrollWidth,l=y.scrollHeight,u=y.clientWidth,c=y.clientHeight;if(!i&&!r||!o&&!s||"vertical"===w&&(!r||!s)||"horizontal"===w&&(!i||!o)||("horizontal"===w?h="x":"vertical"===w?h="y":(0!==e&&i&&o&&(h="x"),0!==n&&r&&s&&(h="y")),!h))return!1;if("x"===h)d=t.scrollLeft,f=a-u,p=e,m=i,g=o;else{if("y"!==h)return!1;d=t.scrollTop,f=l-c,p=n,m=r,g=s}return(p>0?d<f:d>0)&&m&&g}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__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"horizontal"===this.options.orientation}get actualScroll(){let t=this.options.wrapper;return this.isHorizontal?t.scrollX??t.scrollLeft:t.scrollY??t.scrollTop}get scroll(){var t;return this.options.infinite?(this.animatedScroll%(t=this.limit)+t)%t:this.animatedScroll}get progress(){return 0===this.limit?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(t){this._isScrolling!==t&&(this._isScrolling=t,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(t){this._isStopped!==t&&(this._isStopped=t,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(t){this._isLocked!==t&&(this._isLocked=t,this.updateClassName())}get isSmooth(){return"smooth"===this.isScrolling}get className(){let t="lenis";return this.options.autoToggle&&(t+=" lenis-autoToggle"),this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),"smooth"===this.isScrolling&&(t+=" lenis-smooth"),t}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}}},7790:function(t,e,n){"use strict";n.d(e,{Y:function(){return o}});var i=n(8946),r=n(2659);function o(t){let e=[0];return!function(t,e){let n=t[t.length-1];for(let o=1;o<=e;o++){let s=(0,i.Y)(0,e,o);t.push((0,r.t)(n,1,s))}}(e,t.length-1),e}},1219:function(t,e,n){"use strict";n.d(e,{f:function(){return r},t:function(){return s}});let i=t=>e=>"string"==typeof e&&e.startsWith(t),r=i("--"),o=i("var(--"),s=t=>!!o(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},3674:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var i=n(2218);let r=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var o=n(7275);function s(t,e){let n=!1,s=!0,a={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=r.reduce((t,n)=>(t[n]=function(t,e){let n=new Set,i=new Set,r=!1,s=!1,a=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},u=0;function c(e){a.has(e)&&(h.schedule(e),t()),u++,e(l)}let h={schedule:(t,e=!1,o=!1)=>{let s=o&&r?n:i;return e&&a.add(t),s.has(t)||s.add(t),t},cancel:t=>{i.delete(t),a.delete(t)},process:t=>{if(l=t,r){s=!0;return}
13r=!0,[n,i]=[i,n],n.forEach(c),e&&o.f.value&&o.f.value.frameloop[e].push(u),u=0,n.clear(),r=!1,s&&(s=!1,h.process(t))}};return h}(l,e?n:void 0),t),{}),{setup:c,read:h,resolveKeyframes:d,preUpdate:f,update:p,preRender:m,render:g,postRender:v}=u,y=()=>{let r=i.c.useManualTiming?a.timestamp:performance.now();n=!1,i.c.useManualTiming||(a.delta=s?1e3/60:Math.max(Math.min(r-a.timestamp,40),1)),a.timestamp=r,a.isProcessing=!0,c.process(a),h.process(a),d.process(a),f.process(a),p.process(a),m.process(a),g.process(a),v.process(a),a.isProcessing=!1,n&&e&&(s=!1,t(y))},w=()=>{n=!0,s=!0,a.isProcessing||t(y)};return{schedule:r.reduce((t,e)=>{let i=u[e];return t[e]=(t,e=!1,r=!1)=>(n||w(),i.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e<r.length;e++)u[r[e]].cancel(t)},state:a,steps:u}}},2866:function(t,e,n){"use strict";n.d(e,{Pn:function(){return o},Wi:function(){return r},frameData:function(){return s},yL:function(){return a}});var i=n(7726);let{schedule:r,cancel:o,state:s,steps:a}=(0,n(3674).Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:i.Z,!0)},7245:function(t,e,n){"use strict";let i;n.d(e,{X:function(){return a}});var r=n(2218),o=n(2866);function s(){i=void 0}let a={now:()=>(void 0===i&&a.set(o.frameData.isProcessing||r.c.useManualTiming?o.frameData.timestamp:performance.now()),i),set:t=>{i=t,queueMicrotask(s)}}},7275:function(t,e,n){"use strict";n.d(e,{f:function(){return i}});let i={value:null,addProjectionMetrics:null}},8098:function(t,e,n){"use strict";n.d(e,{s:function(){return c}});var i=n(2218),r=n(7726),o=n(377),s=n(5386),a=n(8946),l=n(488),u=n(8712);function c(t,e,{clamp:n=!0,ease:c,mixer:h}={}){let d=t.length;if((0,s.k)(d===e.length,"Both input and output ranges must be the same length","range-length"),1===d)return()=>e[0];if(2===d&&e[0]===e[1])return()=>e[1];let f=t[0]===t[1];t[0]>t[d-1]&&(t=[...t].reverse(),e=[...e].reverse());let p=function(t,e,n){let s=[],a=n||i.c.mix||u.C,l=t.length-1;for(let n=0;n<l;n++){let i=a(t[n],t[n+1]);if(e){let t=Array.isArray(e)?e[n]||r.Z:e;i=(0,o.z)(t,i)}s.push(i)}return s}(e,c,h),m=p.length,g=n=>{if(f&&n<t[0])return e[0];let i=0;if(m>1)for(;i<t.length-2&&!(n<t[i+1]);i++);let r=(0,a.Y)(t[i],t[i+1],n);return p[i](r)};return n?e=>g((0,l.u)(t[0],t[d-1],e)):g}},3243:function(t,e,n){"use strict";n.d(e,{R:function(){return r}});var i=n(6464);function r(t){return(0,i.K)(t)&&"offsetHeight"in t}},678:function(t,e,n){"use strict";n.d(e,{v:function(){return r}});var i=n(6464);function r(t){return(0,i.K)(t)&&"ownerSVGElement"in t}},8712:function(t,e,n){"use strict";n.d(e,{C:function(){return T}});var i=n(377),r=n(5386),o=n(1219),s=n(7167),a=n(8094),l=n(4777),u=n(6203);function c(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var h=n(6803);function d(t,e){return n=>n>0?e:t}var f=n(2659);let p=(t,e,n)=>{let i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},m=[l.$,h.m,u.J],g=t=>m.find(e=>e.test(t));function v(t){let e=g(t);if((0,r.K)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let n=e.parse(t);return e===u.J&&(n=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let r=0,o=0,s=0;if(e/=100){let i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;r=c(a,i,t+1/3),o=c(a,i,t),s=c(a,i,t-1/3)}else r=o=s=n;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}(n)),n}let y=(t,e)=>{let n=v(t),i=v(e);if(!n||!i)return d(t,e);let r={...n};return t=>(r.red=p(n.red,i.red,t),r.green=p(n.green,i.green,t),r.blue=p(n.blue,i.blue,t),r.alpha=(0,f.t)(n.alpha,i.alpha,t),h.m.transform(r))},w=new Set(["none","hidden"]);function x(t,e){return n=>(0,f.t)(t,e,n)}function b(t){return"number"==typeof t?x:"string"==typeof t?(0,o.t)(t)?d:s.$.test(t)?y:P:Array.isArray(t)?S:"object"==typeof t?s.$.test(t)?y:E:d}function S(t,e){let n=[...t],i=n.length,r=t.map((t,n)=>b(t)(t,e[n]));return t=>{for(let e=0;e<i;e++)n[e]=r[e](t);return n}}function E(t,e){let n={...t,...e},i={};for(let r in n)void 0!==t[r]&&void 0!==e[r]&&(i[r]=b(t[r])(t[r],e[r]));return t=>{for(let e in i)n[e]=i[e](t);return n}}let P=(t,e)=>{let n=a.P.createTransformer(e),o=(0,a.V)(t),s=(0,a.V)(e);return o.indexes.var.length===s.indexes.var.length&&o.indexes.color.length===s.indexes.color.length&&o.indexes.number.length>=s.indexes.number.length?w.has(t)&&!s.values.length||w.has(e)&&!o.values.length?w.has(t)?n=>n<=0?t:e:n=>n>=1?e:t:(0,i.z)(S(function(t,e){let n=[],i={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let o=e.types[r],s=t.indexes[o][i[o]],a=t.values[s]??0;n[r]=a,i[o]++}return n}(o,s),s.values),n):((0,r.K)(!0,`Complex values '${t}' and '${e}
13' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),d(t,e))};function T(t,e,n){return"number"==typeof t&&"number"==typeof e&&"number"==typeof n?(0,f.t)(t,e,n):b(t)(t,e)}},2659:function(t,e,n){"use strict";n.d(e,{t:function(){return i}});let i=(t,e,n)=>t+(e-t)*n},1816:function(t,e,n){"use strict";function i(t,e,n){if(t instanceof EventTarget)return[t];if("string"==typeof t){let i=document;e&&(i=e.current);let r=n?.[t]??i.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}n.d(e,{I:function(){return i}})},4548:function(t,e,n){"use strict";n.d(e,{t:function(){return i}});let i=(0,n(942).X)(()=>void 0!==window.ScrollTimeline)},8486:function(t,e,n){"use strict";n.d(e,{BX:function(){return c},S1:function(){return l}});var i=n(8449),r=n(7142),o=n(7245),s=n(2866);let a=t=>!isNaN(parseFloat(t)),l={current:void 0};class u{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=o.X.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=o.X.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=a(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new i.L);let n=this.events[t].add(e);return"change"===t?()=>{n(),s.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=o.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,r.R)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function c(t,e){return new u(t,e)}},4777:function(t,e,n){"use strict";n.d(e,{$:function(){return r}});var i=n(6803);let r={test:(0,n(9946).i)("#"),parse:function(t){let e="",n="",i="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}},transform:i.m.transform}},6203:function(t,e,n){"use strict";n.d(e,{J:function(){return a}});var i=n(7958),r=n(7259),o=n(6219),s=n(9946);let a={test:(0,s.i)("hsl","hue"),parse:(0,s.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+r.aQ.transform((0,o.N)(e))+", "+r.aQ.transform((0,o.N)(n))+", "+(0,o.N)(i.Fq.transform(s))+")"}},7167:function(t,e,n){"use strict";n.d(e,{$:function(){return s}});var i=n(4777),r=n(6203),o=n(6803);let s={test:t=>o.m.test(t)||i.$.test(t)||r.J.test(t),parse:t=>o.m.test(t)?o.m.parse(t):r.J.test(t)?r.J.parse(t):i.$.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?o.m.transform(t):r.J.transform(t),getAnimatableNone:t=>{let e=s.parse(t);return e.alpha=0,s.transform(e)}}},6803:function(t,e,n){"use strict";n.d(e,{m:function(){return u}});var i=n(488),r=n(7958),o=n(6219),s=n(9946);let a=t=>(0,i.u)(0,255,t),l={...r.Rx,transform:t=>Math.round(a(t))},u={test:(0,s.i)("rgb","red"),parse:(0,s.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+l.transform(t)+", "+l.transform(e)+", "+l.transform(n)+", "+(0,o.N)(r.Fq.transform(i))+")"}},9946:function(t,e,n){"use strict";n.d(e,{i:function(){return o},d:function(){return s}});var i=n(7159);let r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,o=(t,e)=>n=>!!("string"==typeof n&&r.test(n)&&n.startsWith(t)||e&&null!=n&&Object.prototype.hasOwnProperty.call(n,e)),s=(t,e,n)=>r=>{if("string"!=typeof r)return r;let[o,s,a,l]=r.match(i.K);return{[t]:parseFloat(o),[e]:parseFloat(s),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},8094:function(t,e,n){"use strict";n.d(e,{V:function(){return c},P:function(){return p}});var i=n(7167);let r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var o=n(7159),s=n(6219);let a="number",l="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function c(t){let e=t.toString(),n=[],r={color:[],number:[],var:[]}
13,o=[],s=0,c=e.replace(u,t=>(i.$.test(t)?(r.color.push(s),o.push(l),n.push(i.$.parse(t))):t.startsWith("var(")?(r.var.push(s),o.push("var"),n.push(t)):(r.number.push(s),o.push(a),n.push(parseFloat(t))),++s,"${}")).split("${}");return{values:n,split:c,indexes:r,types:o}}function h(t){return c(t).values}function d(t){let{split:e,types:n}=c(t),r=e.length;return t=>{let o="";for(let u=0;u<r;u++)if(o+=e[u],void 0!==t[u]){let e=n[u];e===a?o+=(0,s.N)(t[u]):e===l?o+=i.$.transform(t[u]):o+=t[u]}return o}}let f=t=>"number"==typeof t?0:i.$.test(t)?i.$.getAnimatableNone(t):t,p={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(o.K)?.length||0)+(t.match(r)?.length||0)>0},parse:h,createTransformer:d,getAnimatableNone:function(t){let e=h(t);return d(t)(e.map(f))}}},7958:function(t,e,n){"use strict";n.d(e,{Fq:function(){return o},Rx:function(){return r},bA:function(){return s}});var i=n(488);let r={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},o={...r,transform:t=>(0,i.u)(0,1,t)},s={...r,default:1}},7259:function(t,e,n){"use strict";n.d(e,{$C:function(){return u},RW:function(){return r},aQ:function(){return o},px:function(){return s},vh:function(){return a},vw:function(){return l}});let i=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),r=i("deg"),o=i("%"),s=i("px"),a=i("vh"),l=i("vw"),u={...o,parse:t=>o.parse(t)/100,transform:t=>o.transform(100*t)}},7159:function(t,e,n){"use strict";n.d(e,{K:function(){return i}});let i=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},6219:function(t,e,n){"use strict";n.d(e,{N:function(){return i}});let i=t=>Math.round(1e5*t)/1e5},5774:function(t,e,n){"use strict";function i(t,e){-1===t.indexOf(e)&&t.push(e)}function r(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:function(){return r},y4:function(){return i}})},488:function(t,e,n){"use strict";n.d(e,{u:function(){return i}});let i=(t,e,n)=>n>e?e:n<t?t:n},5386:function(t,e,n){"use strict";n.d(e,{K:function(){return i},k:function(){return r}});let i=()=>{},r=()=>{}},2218:function(t,e,n){"use strict";n.d(e,{c:function(){return i}});let i={}},6464:function(t,e,n){"use strict";function i(t){return"object"==typeof t&&null!==t}n.d(e,{K:function(){return i}})},942:function(t,e,n){"use strict";function i(t){let e;return()=>(void 0===e&&(e=t()),e)}n.d(e,{X:function(){return i}})},7726:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});let i=t=>t},377:function(t,e,n){"use strict";n.d(e,{z:function(){return r}});let i=(t,e)=>n=>e(t(n)),r=(...t)=>t.reduce(i)},8946:function(t,e,n){"use strict";n.d(e,{Y:function(){return i}});let i=(t,e,n)=>{let i=e-t;return 0===i?1:(n-t)/i}},8449:function(t,e,n){"use strict";n.d(e,{L:function(){return r}});var i=n(5774);class r{constructor(){this.subscriptions=[]}add(t){return(0,i.y4)(this.subscriptions,t),()=>(0,i.cl)(this.subscriptions,t)}notify(t,e,n){let i=this.subscriptions.length;if(i){if(1===i)this.subscriptions[0](t,e,n);else for(let r=0;r<i;r++){let i=this.subscriptions[r];i&&i(t,e,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},7142:function(t,e,n){"use strict";function i(t,e){return e?1e3/e*t:0}n.d(e,{R:function(){return i}})},9276:function(t,e,n){"use strict";function i(t,e,n){let i=document.createElement(e);return t&&(i.className=t),n&&n.appendChild(i),i}function r(t,e,n){t.style.width="number"==typeof e?`${e}px`:e,t.style.height="number"==typeof n?`${n}px`:n}n.d(e,{Z:function(){return g}});let o={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function s(t,e,n=document){let i=[];if(t instanceof Element)i=[t];else if(t instanceof NodeList||Array.isArray(t))i=Array.from(t);else{let r="string"==typeof t?t:e;r&&(i=Array.from(n.querySelectorAll(r)))}return i}function a(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}class l{constructor(t,e){this.type=t,this.defaultPrevented=!1,e&&Object.assign(this,e)}preventDefault(){this.defaultPrevented=!0}}class u{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(t,e,n=100){var i,r,o;this._filters[t]||(this._filters[t]=[]),null===(i=this._filters[t])||void 0===i||i.push({fn:e,priority:n}
13),null===(r=this._filters[t])||void 0===r||r.sort((t,e)=>t.priority-e.priority),null===(o=this.pswp)||void 0===o||o.addFilter(t,e,n)}removeFilter(t,e){this._filters[t]&&(this._filters[t]=this._filters[t].filter(t=>t.fn!==e)),this.pswp&&this.pswp.removeFilter(t,e)}applyFilters(t,...e){var n;return null===(n=this._filters[t])||void 0===n||n.forEach(t=>{e[0]=t.fn.apply(this,e)}),e[0]}on(t,e){var n,i;this._listeners[t]||(this._listeners[t]=[]),null===(n=this._listeners[t])||void 0===n||n.push(e),null===(i=this.pswp)||void 0===i||i.on(t,e)}off(t,e){var n;this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(t=>e!==t)),null===(n=this.pswp)||void 0===n||n.off(t,e)}dispatch(t,e){var n;if(this.pswp)return this.pswp.dispatch(t,e);let i=new l(t,e);return null===(n=this._listeners[t])||void 0===n||n.forEach(t=>{t.call(this,i)}),i}}class c{constructor(t,e){if(this.element=i("pswp__img pswp__img--placeholder",t?"img":"div",e),t){let e=this.element;e.decoding="async",e.alt="",e.src=t,e.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(t,e){if(this.element){if("IMG"===this.element.tagName){var n;let e;r(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=(e="translate3d(0px,0px,0)",n=t/250,e+=` scale3d(${n},${n},1)`)}else r(this.element,t,e)}}destroy(){var t;null!==(t=this.element)&&void 0!==t&&t.parentNode&&this.element.remove(),this.element=null}}class h{constructor(t,e,n){this.instance=e,this.data=t,this.index=n,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=o.IDLE,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(t,e){if(this.slide&&this.usePlaceholder()){if(this.placeholder){let t=this.placeholder.element;t&&!t.parentElement&&this.slide.container.prepend(t)}else{let t=this.instance.applyFilters("placeholderSrc",!!this.data.msrc&&!!this.slide.isFirstSlide&&this.data.msrc,this);this.placeholder=new c(t,this.slide.container)}}(!this.element||e)&&!this.instance.dispatch("contentLoad",{content:this,isLazy:t}).defaultPrevented&&(this.isImageContent()?(this.element=i("pswp__img","img"),this.displayedImageWidth&&this.loadImage(t)):(this.element=i("pswp__content","div"),this.element.innerHTML=this.data.html||""),e&&this.slide&&this.slide.updateContentSize(!0))}loadImage(t){var e,n;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:t}).defaultPrevented)return;let i=this.element;this.updateSrcsetSizes(),this.data.srcset&&(i.srcset=this.data.srcset),i.src=null!==(e=this.data.src)&&void 0!==e?e:"",i.alt=null!==(n=this.data.alt)&&void 0!==n?n:"",this.state=o.LOADING,i.complete?this.onLoaded():(i.onload=()=>{this.onLoaded()},i.onerror=()=>{this.onError()})}setSlide(t){this.slide=t,this.hasSlide=!0,this.instance=t.pswp}onLoaded(){this.state=o.LOADED,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===o.LOADED||this.state===o.ERROR)&&this.removePlaceholder())}onError(){this.state=o.ERROR,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===o.LOADING,this)}isError(){return this.state===o.ERROR}isImageContent(){return"image"===this.type}setDisplayedSize(t,e){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(t,e),!this.instance.dispatch("contentResize",{content:this,width:t,height:e}).defaultPrevented&&(r(this.element,t,e),this.isImageContent()&&!this.isError()))){let n=!this.displayedImageWidth&&t;this.displayedImageWidth=t,this.displayedImageHeight=e,n?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:t,height:e,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==o.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;let t=this.element,e=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!t.dataset.largestUsedSize||e>parseInt(t.dataset.largestUsedSize,10))&&(t.sizes=e+"px",t.dataset.largestUsedSize=String(e))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var t,e;let n=i("pswp__error-msg","div");n.innerText=null!==(t=null===(e=this.instance.options)||void 0===e?void 0:e.errorMsg)&&void 0!==t?t:"",n=this.instance.applyFilters("contentErrorElement",n,this),this.element=i("pswp__content pswp__error-msg-container","div"),this.element.appendChild(n),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===o.ERROR){this.displayError();return}if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;let t="decode"in this.element;this.isImageContent()?t&&this.slide&&(!this.slide.isActive||a())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){!this.instance.dispatch("contentActivate",{content:this}).defaultPrevented&&this.slide&&(this.isImageContent()&&this.isDecoding&&!a()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&!this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented&&(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===o.LOADED||this.state===o.ERROR)&&this.removePlaceholder())}}function d(t,e,n,i,r){let o=0;if(e.paddingFn)o=e.paddingFn(n,i,r)[t];else if(e.padding)o=e.padding[t];else{let n="padding"+t[0].toUpperCase()+t.slice(1);e[n]&&(o=e[n])}return Number(o)||0}class f{constructor(t,e,n,i){this.pswp=i,this.options=t,this.itemData=e,this.index=n,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(t,e,n){let i={x:t,y:e};this.elementSize=i,this.panAreaSize=n;let r=n.x/i.x,o=n.y/i.y;this.fit=Math.min(1,r<o?r:o),this.fill=Math.min(1,r>o?r:o),this.vFill=Math.min(1,o),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(t){let e=this.options[t+"ZoomLevel"];return e?"function"==typeof e?e(this):"fill"===e?this.fill:"fit"===e?this.fit:Number(e):void 0}_getSecondary(){let t=this._parseZoomLevelOption("secondary");return t||(t=Math.min(1,3*this.fit),this.elementSize&&t*this.elementSize.x>4e3&&(t=4e3/this.elementSize.x)),t}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,4*this.fit)}}function p(t,e,n){let i;let r=e.createContentFromData(t,n),{options:o}=e;if(o){let s;i=new f(o,t,-1);
13let a={x:(s=e.pswp?e.pswp.viewportSize:function(t,e){if(t.getViewportSizeFn){let n=t.getViewportSizeFn(t,e);if(n)return n}return{x:document.documentElement.clientWidth,y:window.innerHeight}}(o,e)).x-d("left",o,s,t,n)-d("right",o,s,t,n),y:s.y-d("top",o,s,t,n)-d("bottom",o,s,t,n)};i.update(r.width,r.height,a)}return r.lazyLoad(),i&&r.setDisplayedSize(Math.ceil(r.width*i.initial),Math.ceil(r.height*i.initial)),r}class m extends u{getNumItems(){var t;let e=0,n=null===(t=this.options)||void 0===t?void 0:t.dataSource;n&&"length"in n?e=n.length:n&&"gallery"in n&&(n.items||(n.items=this._getGalleryDOMElements(n.gallery)),n.items&&(e=n.items.length));let i=this.dispatch("numItems",{dataSource:n,numItems:e});return this.applyFilters("numItems",i.numItems,n)}createContentFromData(t,e){return new h(t,this,e)}getItemData(t){var e;let n=null===(e=this.options)||void 0===e?void 0:e.dataSource,i={};Array.isArray(n)?i=n[t]:n&&"gallery"in n&&(n.items||(n.items=this._getGalleryDOMElements(n.gallery)),i=n.items[t]);let r=i;r instanceof Element&&(r=this._domElementToItemData(r));let o=this.dispatch("itemData",{itemData:r||{},index:t});return this.applyFilters("itemData",o.itemData,t)}_getGalleryDOMElements(t){var e,n;return null!==(e=this.options)&&void 0!==e&&e.children||null!==(n=this.options)&&void 0!==n&&n.childSelector?s(this.options.children,this.options.childSelector,t)||[]:[t]}_domElementToItemData(t){let e={element:t},n="A"===t.tagName?t:t.querySelector("a");if(n){e.src=n.dataset.pswpSrc||n.href,n.dataset.pswpSrcset&&(e.srcset=n.dataset.pswpSrcset),e.width=n.dataset.pswpWidth?parseInt(n.dataset.pswpWidth,10):0,e.height=n.dataset.pswpHeight?parseInt(n.dataset.pswpHeight,10):0,e.w=e.width,e.h=e.height,n.dataset.pswpType&&(e.type=n.dataset.pswpType);let r=t.querySelector("img");if(r){var i;e.msrc=r.currentSrc||r.src,e.alt=null!==(i=r.getAttribute("alt"))&&void 0!==i?i:""}(n.dataset.pswpCropped||n.dataset.cropped)&&(e.thumbCropped=!0)}return this.applyFilters("domItemData",e,t,n)}lazyLoadData(t,e){return p(t,this,e)}}class g extends m{constructor(t){super(),this.options=t||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){s(this.options.gallery,this.options.gallerySelector).forEach(t=>{t.addEventListener("click",this.onThumbnailsClick,!1)})}onThumbnailsClick(t){if("button"in t&&1===t.button||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||window.pswp)return;let e={x:t.clientX,y:t.clientY};e.x||e.y||(e=null);let n=this.getClickedIndex(t);n=this.applyFilters("clickedIndex",n,t,this);let i={gallery:t.currentTarget};n>=0&&(t.preventDefault(),this.loadAndOpen(n,i,e))}getClickedIndex(t){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,t);let e=t.target,n=s(this.options.children,this.options.childSelector,t.currentTarget).findIndex(t=>t===e||t.contains(e));return -1!==n?n:this.options.children||this.options.childSelector?-1:0}loadAndOpen(t,e,n){if(window.pswp||!this.options)return!1;if(!e&&this.options.gallery&&this.options.children){let t=s(this.options.gallery);t[0]&&(e={gallery:t[0]})}return this.options.index=t,this.options.initialPointerPos=n,this.shouldOpen=!0,this.preload(t,e),!0}preload(t,e){var n;let{options:i}=this;e&&(i.dataSource=e);let r=[],o=typeof i.pswpModule;if("function"==typeof(n=i.pswpModule)&&n.prototype&&n.prototype.goTo)r.push(Promise.resolve(i.pswpModule));else if("string"===o)throw Error("pswpModule as string is no longer supported");else if("function"===o)r.push(i.pswpModule());else throw Error("pswpModule is not valid");"function"==typeof i.openPromise&&r.push(i.openPromise()),!1!==i.preloadFirstSlide&&t>=0&&(this._preloadedContent=function(t,e){let n=e.getItemData(t);if(!e.dispatch("lazyLoadSlide",{index:t,itemData:n}).defaultPrevented)return p(n,e,t)}(t,this));let s=++this._uid;Promise.all(r).then(t=>{if(this.shouldOpen){let e=t[0];this._openPhotoswipe(e,s)}})}_openPhotoswipe(t,e){if(e!==this._uid&&this.shouldOpen||(this.shouldOpen=!1,window.pswp))return;let n="object"==typeof t?new t.default(this.options):new t(this.options);
13this.pswp=n,window.pswp=n,Object.keys(this._listeners).forEach(t=>{var e;null===(e=this._listeners[t])||void 0===e||e.forEach(e=>{n.on(t,e)})}),Object.keys(this._filters).forEach(t=>{var e;null===(e=this._filters[t])||void 0===e||e.forEach(e=>{n.addFilter(t,e.fn,e.priority)})}),this._preloadedContent&&(n.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),n.on("destroy",()=>{this.pswp=void 0,delete window.pswp}),n.init()}destroy(){var t;null===(t=this.pswp)||void 0===t||t.destroy(),this.shouldOpen=!1,this._listeners={},s(this.options.gallery,this.options.gallerySelector).forEach(t=>{t.removeEventListener("click",this.onThumbnailsClick,!1)})}}},1311:function(t,e,n){"use strict";n.d(e,{Z:function(){return P}});var i=n(7294);let r=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,o=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,s=/\.(m3u8)($|\?)/i,a=/\.(mpd)($|\?)/i,l=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,u=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,c=/vimeo\.com\/(?!progressive_redirect).+/,h=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,d=/open\.spotify\.com\/(\w+)\/(\w+)/i,f=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+|(videos?\/|\?video=)\d+)($|\?)/,p=/tiktok\.com\/(?:player\/v1\/|share\/video\/|@[^/]+\/video\/)([0-9]+)/,m=(t,e)=>{if(Array.isArray(t)){for(let n of t)if("string"==typeof n&&m(n,e)||m(n.src,e))return!0;return!1}return e(t)},g=i.forwardRef((t,e)=>{let n=r.test(`${t.src}`)?"audio":"video";return i.createElement(n,{...t,ref:e},t.children)}),v=[{key:"hls",name:"hls.js",canPlay:t=>m(t,t=>s.test(t)),canEnablePIP:()=>!0,player:(0,i.lazy)(()=>Promise.all([n.e(412),n.e(778),n.e(184)]).then(n.bind(n,6746)))},{key:"dash",name:"dash.js",canPlay:t=>m(t,t=>a.test(t)),canEnablePIP:()=>!0,player:(0,i.lazy)(()=>n.e(443).then(n.bind(n,1280)))},{key:"mux",name:"Mux",canPlay:t=>l.test(t),canEnablePIP:()=>!0,player:(0,i.lazy)(()=>Promise.all([n.e(412),n.e(778),n.e(258)]).then(n.bind(n,2484)))},{key:"youtube",name:"YouTube",canPlay:t=>u.test(t),player:(0,i.lazy)(()=>n.e(439).then(n.bind(n,173)))},{key:"vimeo",name:"Vimeo",canPlay:t=>c.test(t)&&!o.test(t)&&!s.test(t),player:(0,i.lazy)(()=>n.e(743).then(n.bind(n,8072)))},{key:"wistia",name:"Wistia",canPlay:t=>h.test(t),canEnablePIP:()=>!0,player:(0,i.lazy)(()=>n.e(55).then(n.bind(n,1602)))},{key:"spotify",name:"Spotify",canPlay:t=>d.test(t),canEnablePIP:()=>!1,player:(0,i.lazy)(()=>n.e(954).then(n.bind(n,5959)))},{key:"twitch",name:"Twitch",canPlay:t=>f.test(t),canEnablePIP:()=>!1,player:(0,i.lazy)(()=>n.e(216).then(n.bind(n,3119)))}
13,{key:"tiktok",name:"TikTok",canPlay:t=>p.test(t),canEnablePIP:()=>!1,player:(0,i.lazy)(()=>n.e(491).then(n.bind(n,1309)))},{key:"html",name:"html",canPlay:t=>m(t,t=>r.test(t)||o.test(t)),canEnablePIP:()=>!0,player:g}],y={width:"320px",height:"180px",volume:1,playbackRate:1,previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}"},w=i.forwardRef((t,e)=>{let{playing:n,pip:r}=t,o=t.activePlayer,s=(0,i.useRef)(null),a=(0,i.useRef)(!0);if((0,i.useEffect)(()=>{var e,i;s.current&&(s.current.paused&&!0===n&&s.current.play(),s.current.paused||!1!==n||s.current.pause(),s.current.playbackRate=null!=(e=t.playbackRate)?e:1,s.current.volume=null!=(i=t.volume)?i:1)}),(0,i.useEffect)(()=>{var t,e,n,i,o;if(s.current&&globalThis.document){if(r&&!document.pictureInPictureElement)try{null==(e=(t=s.current).requestPictureInPicture)||e.call(t)}catch(t){}if(!r&&document.pictureInPictureElement)try{null==(i=(n=s.current).exitPictureInPicture)||i.call(n),null==(o=document.exitPictureInPicture)||o.call(document)}catch(t){}}},[r]),!o)return null;let l={},u=["onReady","onStart"];for(let e in t)e.startsWith("on")&&!u.includes(e)&&(l[e]=t[e]);return i.createElement(o,{...l,style:t.style,className:t.className,slot:t.slot,ref:(0,i.useCallback)(t=>{s.current=t,"function"==typeof e?e(t):null!==e&&(e.current=t)},[e]),src:t.src,crossOrigin:t.crossOrigin,preload:t.preload,controls:t.controls,muted:t.muted,autoPlay:t.autoPlay,loop:t.loop,playsInline:t.playsInline,config:t.config,onLoadStart:e=>{var n,i;a.current=!0,null==(n=t.onReady)||n.call(t),null==(i=t.onLoadStart)||i.call(t,e)},onPlay:e=>{var n,i;a.current&&(a.current=!1,null==(n=t.onStart)||n.call(t,e)),null==(i=t.onPlay)||i.call(t,e)}},t.children)});w.displayName="Player";let x=(0,i.lazy)(()=>n.e(664).then(n.bind(n,4183))),b=[],S=({children:t})=>t,E=v[v.length-1];var P=((t,e)=>{let n=n=>{for(let e of[...b,...t])if(n&&e.canPlay(n))return e;return e||null},r=i.forwardRef((t,e)=>{let r={...y,...t},{src:o,slot:s,className:a,style:l,width:u,height:c,fallback:h,wrapper:d}=r,[f,p]=(0,i.useState)(!!r.light);(0,i.useEffect)(()=>{r.light?p(!0):p(!1)},[r.light]);let m=t=>{var e;p(!1),null==(e=r.onClickPreview)||e.call(r,t)},g=null==d?S:d,v=!1===h?S:i.Suspense;return i.createElement(g,{slot:s,className:a,style:{width:u,height:c,...l}},i.createElement(v,{fallback:h},f?(t=>{if(!t)return null;let{light:e,playIcon:n,previewTabIndex:o,oEmbedUrl:s,previewAriaLabel:a}=r;return i.createElement(x,{src:t,light:e,playIcon:n,previewTabIndex:o,previewAriaLabel:a,oEmbedUrl:s,onClickPreview:m})})(o):(t=>{var o,l;let u=n(t);if(!u)return null;let{style:c,width:h,height:d,wrapper:f}=r,p=null==(o=r.config)?void 0:o[u.key];return i.createElement(w,{...r,ref:e,activePlayer:null!=(l=u.player)?l:u,slot:f?void 0:s,className:f?void 0:a,style:f?{display:"block",width:"100%",height:"100%"}:{display:"block",width:h,height:d,...c},config:p})})(o)))});return r.displayName="ReactPlayer",r.addCustomPlayer=t=>{b.push(t)},r.removeCustomPlayers=()=>{b.length=0},r.canPlay=e=>{if(e){for(let n of[...b,...t])if(n.canPlay(e))return!0}return!1},r.canEnablePIP=e=>{var n;if(e){for(let i of[...b,...t])if(i.canPlay(e)&&(null==(n=i.canEnablePIP)?void 0:n.call(i)))return!0}return!1},r})(v,E)},9460:function(t,e,n){"use strict";n.d(e,{LI:function(){return o},OR:function(){return s},O_:function(){return d},Pr:function(){return m},Sf:function(){return u},XI:function(){return h},ac:function(){return l},iP:function(){return v},nj:function(){return c},t$:function(){return f}});var i=n(7294),r=n(1296),o="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function s(t,e,n,r){let s=(0,i.useRef)(e);o(()=>{s.current=e},[e]),(0,i.useEffect)(()=>{let e=(null==n?void 0:n.current)??window;if(!(e&&e.addEventListener))return;let i=t=>{s.current(t)};return e.addEventListener(t,i,r),()=>{e.removeEventListener(t,i,r)}},[t,n,r])}var a="undefined"==typeof window;function l(t,{defaultValue:e=!1,initializeWithValue:n=!0}={}){let r=t=>a?e:window.matchMedia(t).matches,[s,l]=(0,i.useState)(()=>n?r(t):e);function u(){l(r(t))}return o(()=>{let e=window.matchMedia(t);return u(),e.addListener?e.addListener(u):e.addEventListener("change",u),()=>{e.removeListener?e.removeListener(u):e.removeEventListener("change",u)}},[t]),s}function u(t,e=500,n){let o=(0,i.useRef)();!function(t){let e=(0,i.useRef)(t);e.current=t,(0,i.useEffect)(()=>()=>{e.current()},[])}(()=>{o.current&&o.current.cancel()});let s=(0,i.useMemo)(()=>{let i=r(t,e,n),s=(...t)=>i(...t);return s.cancel=()=>{i.cancel()},s.isPending=()=>!!o.current,s.flush=()=>i.flush(),s},[t,e,n]);return(0,i.useEffect)(()=>{o.current=r(t,e,n)},[t,e,n]),s}function c(t,e,n){let r=(null==n?void 0:n.equalityFn)??((t,e)=>t===e),o=t instanceof Function?t():t,[s,a]=(0,i.useState)(o),l=(0,i.useRef)(o),c=u(a,e,n);return r(l.current,o)||(c(o),l.current=o),[s,c]}function h(t){let[e,n]=(0,i.useState)(!1);return s("mouseenter",()=>{n(!0)},t),s("mouseleave",()=>{n(!1)},t),e}function d(){let[t,e]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{e(!0)},[]),t}function f(t,e,n="mousedown",i={}){s(n,n=>{let i=n.target;i&&i.isConnected&&(Array.isArray(t)?t.filter(t=>!!t.current).every(t=>t.current&&!t.current.contains(i)):t.current&&!t.current.contains(i))&&e(n)},void 0,i)}var p="undefined"==typeof window;function m(t={}){let{autoLock:e=!0,lockTarget:n,widthReflow:r=!0}=t,[s,a]=(0,i.useState)(!1),l=(0,i.useRef)(null),u=(0,i.useRef)(null),c=()=>
13{if(l.current){let{overflow:t,paddingRight:e}=l.current.style;if(u.current={overflow:t,paddingRight:e},r){let t=l.current===document.body?window.innerWidth:l.current.offsetWidth,e=parseInt(window.getComputedStyle(l.current).paddingRight,10)||0,n=t-l.current.scrollWidth;l.current.style.paddingRight=`${n+e}px`}l.current.style.overflow="hidden",a(!0)}},h=()=>{l.current&&u.current&&(l.current.style.overflow=u.current.overflow,r&&(l.current.style.paddingRight=u.current.paddingRight)),a(!1)};return o(()=>{if(!p)return n&&(l.current="string"==typeof n?document.querySelector(n):n),l.current||(l.current=document.body),e&&c(),()=>{h()}},[e,n,r]),{isLocked:s,lock:c,unlock:h}}var g="undefined"==typeof window;function v(t={}){let{initializeWithValue:e=!0}=t;g&&(e=!1);let[n,r]=(0,i.useState)(()=>e?{width:window.innerWidth,height:window.innerHeight}:{width:void 0,height:void 0}),a=u(r,t.debounceDelay);function l(){(t.debounceDelay?a:r)({width:window.innerWidth,height:window.innerHeight})}return s("resize",l),o(()=>{l()},[]),n}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.