"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[533],{63280:function(t,e,n){n.d(e,{Q:function(){return r},s:function(){return a}});var i=n(80909);function r(t){return{point:{x:t.pageX,y:t.pageY}}}let a=t=>e=>(0,i.D)(e)&&t(e,r(e))},93533:function(t,e,n){n.d(e,{H:function(){return tF}});var i=n(17076),r=n(8946);function a(t,e,n){let i=t.getProps();return(0,r.o)(i,e,void 0!==n?n:i.custom,t)}var s=n(61195),o=n(69679),l=n(13378);let u=new Set(["width","height","top","left","right","bottom",...l._]);var h=n(58002);let d=t=>Array.isArray(t);var c=n(9624),f=n(83304),m=n(92325),p=n(54687);function v(t,e,{delay:n=0,transitionOverride:i,type:r}={}){let{transition:l,transitionEnd:v,...y}=e,g=t.getDefaultTransition();l=l?(0,o.r)(l,g):g;let w=l?.reduceMotion;i&&(l=i);let b=[],x=r&&t.animationState&&t.animationState.getState()[r];for(let e in y){let i=t.getValue(e,t.latestValues[e]??null),r=y[e];if(void 0===r||x&&function({protectedKeys:t,needsAnimating:e},n){let i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}(x,e))continue;let a={delay:n,...(0,s.e)(l||{},e)},o=i.get();if(void 0!==o&&!i.isAnimating()&&!Array.isArray(r)&&r===o&&!a.velocity){p.Wi.update(()=>i.set(r));continue}let h=!1;if(window.MotionHandoffAnimation){let n=(0,f.s)(t);if(n){let t=window.MotionHandoffAnimation(n,e,p.Wi);null!==t&&(a.startTime=t,h=!0)}}(0,c.K)(t,e);let d=w??t.shouldReduceMotion;i.start((0,m.v)(e,i,r,d&&u.has(e)?{type:!1}:a,t,h));let v=i.animation;v&&b.push(v)}if(v){let e=()=>p.Wi.update(()=>{v&&function(t,e){let{transitionEnd:n={},transition:i={},...r}=a(t,e)||{};for(let e in r={...r,...n}){var s;let n=d(s=r[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,h.BX)(n))}}(t,v)});b.length?Promise.all(b).then(e):e()}return b}function y(t,e,n,i=0,r=1){let a=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),s=t.size,o=(s-1)*i;return"function"==typeof n?n(a,s):1===r?a*i:o-a*i}function g(t,e,n={}){let i=a(t,e,"exit"===n.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);let s=i?()=>Promise.all(v(t,i,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(i=0)=>{let{delayChildren:a=0,staggerChildren:s,staggerDirection:o}=r;return function(t,e,n=0,i=0,r=0,a=1,s){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(g(l,e,{...s,delay:n+("function"==typeof i?0:i)+y(t.variantChildren,l,i,r,a)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,i,a,s,o,n)}:()=>Promise.resolve(),{when:l}=r;if(!l)return Promise.all([s(),o(n.delay)]);{let[t,e]="beforeChildren"===l?[s,o]:[o,s];return t().then(()=>e())}}var w=n(5654),b=n(80500);let x=b.V.length;var T=n(97260);function S(t,e){if(!Array.isArray(e))return!1;let n=e.length;if(n!==t.length)return!1;for(let i=0;iPromise.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=>g(t,e,n)));else if("string"==typeof e)i=g(t,e,n);else{let r="function"==typeof e?a(t,e,n.custom):e;i=Promise.all(v(t,r,n))}return i.then(()=>{t.notify("AnimationComplete",e)})})(t,e,n))),n=C(),i=!0,r=!1,s=e=>(n,i)=>{let r=a(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:l}=t,u=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;tm&&x,V=!1,P=Array.isArray(b)?b:[b],D=P.reduce(s(v),{});!1===M&&(D={});let{prevResolvedValues:O={}}=g,L={...O,...D},I=e=>{E=!0,c.has(e)&&(V=!0,c.delete(e)),g.needsAnimating[e]=!0;let n=t.getValue(e);n&&(n.liveStyle=!1)};for(let t in L){let e=D[t],n=O[t];if(!f.hasOwnProperty(t))(d(e)&&d(n)?S(e,n):e===n)?void 0!==e&&c.has(t)?I(t):g.protectedKeys[t]=!0:null!=e?I(t):c.add(t)}g.prevProp=b,g.prevResolvedValues=D,g.isActive&&(f={...f,...D}),(i||r)&&t.blockInitialAnimation&&(E=!1);let F=k&&C,X=!F||V;E&&X&&h.push(...P.map(e=>{let n={type:v};if("string"==typeof e&&(i||r)&&!F&&t.manuallyAnimateOnMount&&t.parent){let{parent:i}=t,r=a(i,e);if(i.enteringChildren&&r){let{delayChildren:e}=r.transition||{};n.delay=y(i.enteringChildren,t,e)}}return{animation:e,options:n}}))}if(c.size){let e={};if("boolean"!=typeof l.initial){let n=a(t,Array.isArray(l.initial)?l.initial[0]:l.initial);n&&n.transition&&(e.transition=n.transition)}c.forEach(n=>{let i=t.getBaseTarget(n),r=t.getValue(n);r&&(r.liveStyle=!0),e[n]=i??null}),h.push({animation:e})}let v=!!h.length;return i&&(!1===l.initial||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(v=!1),i=!1,r=!1,v?e(h):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=C(),r=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,T.H)(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 V=0;class P extends i.L{constructor(){super(...arguments),this.id=V++,this.isExitComplete=!1}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;if(t&&!1===n){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t){let n=a(this.node,t,e);if(n){let{transition:t,transitionEnd:e,...i}=n;for(let t in i)this.node.getValue(t)?.jump(i[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}var D=n(57176),O=n(48036);function L(t,e){let n=(0,O.I)(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}var I=n(63280);function F(t,e,n){let{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);let r=i["onHover"+n];r&&p.Wi.postRender(()=>r(e,(0,I.Q)(e)))}class X extends i.L{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,n={}){let[i,r,a]=L(t,n);return i.forEach(t=>{let n,i=!1,a=!1,s=()=>{t.removeEventListener("pointerleave",u)},o=t=>{n&&(n(t),n=void 0),s()},l=t=>{i=!1,window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",l),a&&(a=!1,o(t))},u=t=>{if("touch"!==t.pointerType){if(i){a=!0;return}o(t)}};t.addEventListener("pointerenter",i=>{if("touch"===i.pointerType||(0,D.g)())return;a=!1;let s=e(t,i);"function"==typeof s&&(n=s,t.addEventListener("pointerleave",u,r))},r),t.addEventListener("pointerdown",()=>{i=!0,window.addEventListener("pointerup",l,r),window.addEventListener("pointercancel",l,r)},r)}),a}(t,(t,e)=>(F(this.node,e,"Start"),t=>F(this.node,t,"End"))))}unmount(){}}var R=n(1673),K=n(92112);class $ extends i.L{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,K.z)((0,R.E)(this.node.current,"focus",()=>this.onFocus()),(0,R.E)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var B=n(59306);let W=(t,e)=>!!e&&(t===e||W(t,e.parentElement));var _=n(80909),N=n(36592);let q=new WeakSet;function z(t){return e=>{"Enter"===e.key&&t(e)}}function j(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let Y=(t,e)=>{let n=t.currentTarget;if(!n)return;let i=z(()=>{if(q.has(n))return;j(n,"down");let t=z(()=>{j(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",()=>j(n,"cancel"),e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function G(t){return(0,_.D)(t)&&!(0,D.g)()}let H=new WeakSet;function U(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&&p.Wi.postRender(()=>r(e,(0,I.Q)(e)))}class Z extends i.L{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:n}=this.node.props;this.unmount=function(t,e,n={}){let[i,r,a]=L(t,n),s=t=>{let i=t.currentTarget;if(!G(t)||H.has(t))return;q.add(i),n.stopPropagation&&H.add(t);let a=e(i,t),s=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),q.has(i)&&q.delete(i),G(t)&&"function"==typeof a&&a(t,{success:e})},o=t=>{s(t,i===window||i===document||n.useGlobalTarget||W(i,t.target))},l=t=>{s(t,!1)};window.addEventListener("pointerup",o,r),window.addEventListener("pointercancel",l,r)};return i.forEach(t=>{(n.useGlobalTarget?window:t).addEventListener("pointerdown",s,r),!(0,B.R)(t)||(t.addEventListener("focus",t=>Y(t,r)),(0,N._)(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),a}(t,(t,e)=>(U(this.node,e,"Start"),(t,{success:e})=>U(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:n?.tap===!1})}unmount(){}}let J=new WeakMap,Q=new WeakMap,tt=t=>{let e=J.get(t.target);e&&e(t)},te=t=>{t.forEach(tt)},tn={some:0,all:1};class ti extends i.L{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:r}=t,a={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:tn[i]};this.stopObserver=function(t,e,n){let i=function({root:t,...e}){let n=t||document;Q.has(n)||Q.set(n,{});let i=Q.get(n),r=JSON.stringify(e);return i[r]||(i[r]=new IntersectionObserver(te,{root:t,...e})),i[r]}(e);return J.set(t,n),i.observe(t),()=>{J.delete(t),i.unobserve(t)}}(this.node.current,a,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(),a=e?n:i;a&&a(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(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}var tr=n(64092),ta=n(35919),ts=n(23273),to=n(92067),tl=n(82159),tu=n(12718),th=n(77226);let td=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var tc=n(49585),tf=n(16127),tm=n(78703),tp=n(12528);let tv=new Set(["auto","none","0"]);var ty=n(77654);class tg extends tc.e{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.getValue(e).set(n)}),this.resolveNoneKeyframes()}}var tw=n(10979);class tb extends tw.l9{constructor(){super(...arguments),this.KeyframeResolver=tg}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let n=t.style;return n?n[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;(0,ts.i)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}var tx=n(46320),tT=n(30221);let tS=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"]);var tA=n(35066);function tM(t,{style:e,vars:n},i,r){let a;let s=t.style;for(a in e)s[a]=e[a];for(a in r?.applyProjectionStyles(s,i),n)s.setProperty(a,n[a])}var tk=n(34473);class tC extends tb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ta.dO}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(l.G.has(e)){let t=(0,tr.A)(e);return t&&t.default||0}return e=tS.has(e)?e:(0,tx.D)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return(0,tk.U)(t,e,n)}build(t,e,n){(0,tT.i)(t,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,e,n,i){!function(t,e,n,i){for(let n in tM(t,e,void 0,i),e.attrs)t.setAttribute(tS.has(n)?n:(0,tx.D)(n),e.attrs[n])}(t,e,0,i)}mount(t){this.isSVGTag=(0,tA.a)(t.tagName),super.mount(t)}}var tE=n(99445),tV=n(10604),tP=n(73927),tD=n(25094);class tO extends tb{constructor(){super(...arguments),this.type="html",this.renderInstance=tM}readValueFromInstance(t,e){if(l.G.has(e))return this.projection?.isProjecting?(0,tE.E$)(e):(0,tE.RT)(t,e);{let n=window.getComputedStyle(t),i=((0,th.f9)(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,tV.J)(t,e)}build(t,e,n){(0,tP.r)(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return(0,tD.U)(t,e,n)}}var tL=n(2265),tI=n(42860);let tF={renderer:(t,e)=>e.isSVG??(0,tI.q)(t)?new tC(e):new tO(e,{allowProjection:t!==tL.Fragment}),animation:{Feature:E},exit:{Feature:P},inView:{Feature:ti},tap:{Feature:Z},focus:{Feature:$},hover:{Feature:X}}},92325:function(t,e,n){n.d(e,{v:function(){return tK}});var i=n(14757),r=n(72210),a=n(5085),s=n(99466),o=n(92112),l=n(73509),u=n(32898),h=n(82159),d=n(77226),c=n(69275),f=n(78703),m=n(17671),p=n(18243);function v(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 y=n(9351);function g(t,e){return n=>n>0?e:t}var w=n(31925);let b=(t,e,n)=>{let i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},x=[m.$,y.m,p.J],T=t=>x.find(e=>e.test(t));function S(t){let e=T(t);if((0,h.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===p.J&&(n=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let r=0,a=0,s=0;if(e/=100){let i=n<.5?n*(1+e):n+e-n*e,o=2*n-i;r=v(o,i,t+1/3),a=v(o,i,t),s=v(o,i,t-1/3)}else r=a=s=n;return{red:Math.round(255*r),green:Math.round(255*a),blue:Math.round(255*s),alpha:i}}(n)),n}let A=(t,e)=>{let n=S(t),i=S(e);if(!n||!i)return g(t,e);let r={...n};return t=>(r.red=b(n.red,i.red,t),r.green=b(n.green,i.green,t),r.blue=b(n.blue,i.blue,t),r.alpha=(0,w.t)(n.alpha,i.alpha,t),y.m.transform(r))},M=new Set(["none","hidden"]);function k(t,e){return n=>(0,w.t)(t,e,n)}function C(t){return"number"==typeof t?k:"string"==typeof t?(0,d.tm)(t)?g:c.$.test(t)?A:P:Array.isArray(t)?E:"object"==typeof t?c.$.test(t)?A:V:g}function E(t,e){let n=[...t],i=n.length,r=t.map((t,n)=>C(t)(t,e[n]));return t=>{for(let e=0;e{for(let e in i)n[e]=i[e](t);return n}}let P=(t,e)=>{let n=f.P.createTransformer(e),i=(0,f.V)(t),r=(0,f.V)(e);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?M.has(t)&&!r.values.length||M.has(e)&&!i.values.length?M.has(t)?n=>n<=0?t:e:n=>n>=1?e:t:(0,o.z)(E(function(t,e){let n=[],i={color:0,var:0,number:0};for(let r=0;r{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>O.Wi.update(e,t),stop:()=>(0,O.Pn)(e),now:()=>O.frameData.isProcessing?O.frameData.timestamp:s.X.now()}};var I=n(98537);function F(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}let X={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 R(t,e){return t*Math.sqrt(1-e*e)}let K=["duration","bounce"],$=["stiffness","damping","mass"];function B(t,e){return e.some(e=>void 0!==t[e])}function W(t=X.visualDuration,e=X.bounce){let n,r,a,s,o,u;let d="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:c,restDelta:f}=d,m=d.keyframes[0],p=d.keyframes[d.keyframes.length-1],v={done:!1,value:m},{stiffness:y,damping:g,mass:w,duration:b,velocity:x,isResolvedFromDuration:T}=function(t){let e={velocity:X.velocity,stiffness:X.stiffness,damping:X.damping,mass:X.mass,isResolvedFromDuration:!1,...t};if(!B(t,$)&&B(t,K)){if(e.velocity=0,t.visualDuration){let n=2*Math.PI/(1.2*t.visualDuration),i=n*n,r=2*(0,l.u)(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:X.mass,stiffness:i,damping:r}}else{let n=function({duration:t=X.duration,bounce:e=X.bounce,velocity:n=X.velocity,mass:r=X.mass}){let a,s;(0,h.K)(t<=(0,i.w)(X.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=(0,l.u)(X.minDamping,X.maxDamping,o),t=(0,l.u)(X.minDuration,X.maxDuration,(0,i.X)(t)),o<1?(a=e=>{let i=e*o,r=i*t;return .001-(i-n)/R(e,o)*Math.exp(-r)},s=e=>{let i=e*o*t,r=Math.pow(o,2)*Math.pow(e,2)*t,s=R(Math.pow(e,2),o);return(i*n+n-r)*Math.exp(-i)*(-a(e)+.001>0?-1:1)/s}):(a=e=>-.001+Math.exp(-e*t)*((e-n)*t+1),s=e=>t*t*(n-e)*Math.exp(-e*t));let u=function(t,e,n){let i=n;for(let n=1;n<12;n++)i-=t(i)/e(i);return i}(a,s,5/t);if(t=(0,i.w)(t),isNaN(u))return{stiffness:X.stiffness,damping:X.damping,duration:t};{let e=Math.pow(u,2)*r;return{stiffness:e,damping:2*o*Math.sqrt(r*e),duration:t}}}({...t,velocity:0});(e={...e,...n,mass:X.mass}).isResolvedFromDuration=!0}}return e}({...d,velocity:-(0,i.X)(d.velocity||0)}),S=x||0,A=g/(2*Math.sqrt(y*w)),M=p-m,k=(0,i.X)(Math.sqrt(y/w)),C=5>Math.abs(M);if(c||(c=C?X.restSpeed.granular:X.restSpeed.default),f||(f=C?X.restDelta.granular:X.restDelta.default),A<1)a=R(k,A),s=(S+A*k*M)/a,n=t=>p-Math.exp(-A*k*t)*(s*Math.sin(a*t)+M*Math.cos(a*t)),o=A*k*s+M*a,u=A*k*M-s*a,r=t=>Math.exp(-A*k*t)*(o*Math.sin(a*t)+u*Math.cos(a*t));else if(1===A){n=t=>p-Math.exp(-k*t)*(M+(S+k*M)*t);let t=S+k*M;r=e=>Math.exp(-k*e)*(k*t*e-S)}else{let t=k*Math.sqrt(A*A-1);n=e=>{let n=Math.exp(-A*k*e),i=Math.min(t*e,300);return p-n*((S+A*k*M)*Math.sinh(i)+t*M*Math.cosh(i))/t};let e=(S+A*k*M)/t,i=A*k*e-M*t,a=A*k*M-e*t;r=e=>{let n=Math.exp(-A*k*e),r=Math.min(t*e,300);return n*(i*Math.sinh(r)+a*Math.cosh(r))}}let E={calculatedDuration:T&&b||null,velocity:t=>(0,i.w)(r(t)),next:t=>{if(!T&&A<1){let e=Math.exp(-A*k*t),n=Math.sin(a*t),r=Math.cos(a*t),l=p-e*(s*n+M*r),h=(0,i.w)(e*(o*n+u*r));return v.done=Math.abs(h)<=c&&Math.abs(p-l)<=f,v.value=v.done?p:l,v}let e=n(t);if(T)v.done=t>=b;else{let n=(0,i.w)(r(t));v.done=Math.abs(n)<=c&&Math.abs(p-e)<=f}return v.value=v.done?p:e,v},toString:()=>{let t=Math.min(F(E),2e4),e=(0,I.w)(e=>E.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return E}W.applyToOptions=t=>{let e=function(t,e=100,n){let r=n({...t,keyframes:[0,e]}),a=Math.min(F(r),2e4);return{type:"keyframes",ease:t=>r.next(a*t).value/e,duration:(0,i.X)(a)}}(t,100,W);return t.ease=e.ease,t.duration=(0,i.w)(e.duration),t.type="keyframes",t};var _=n(54615);function N(t,e,n){let i=Math.max(e-5,0);return(0,_.R)(n-t(i),e-i)}function q({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:l,restDelta:u=.5,restSpeed:h}){let d,c;let f=t[0],m={done:!1,value:f},p=t=>void 0!==o&&tl,v=t=>void 0===o?l:void 0===l?o:Math.abs(o-t)-y*Math.exp(-t/i),x=t=>w+b(t),T=t=>{let e=b(t),n=x(t);m.done=Math.abs(e)<=u,m.value=m.done?w:n},S=t=>{p(m.value)&&(d=t,c=W({keyframes:[m.value,v(m.value)],velocity:N(x,t,m.value),damping:r,stiffness:a,restDelta:u,restSpeed:h}))};return S(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,T(t),S(t)),void 0!==d&&t>=d)?c.next(t-d):(e||T(t),m)}}}let z=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function j(t,e,n,i){if(t===e&&n===i)return a.Z;let r=e=>(function(t,e,n,i,r){let a,s;let o=0;do(a=z(s=e+(n-e)/2,i,r)-t)>0?n=s:e=s;while(Math.abs(a)>1e-7&&++o<12);return s})(e,0,1,t,n);return t=>0===t||1===t?t:z(r(t),e,i)}let Y=j(.42,0,1,1),G=j(0,0,.58,1),H=j(.42,0,.58,1),U=t=>Array.isArray(t)&&"number"!=typeof t[0];var Z=n(33988),J=n(10149);let Q=j(.33,1.53,.69,.99),tt=(0,J.M)(Q),te=(0,Z.o)(tt),tn=t=>t>=1?1:(t*=2)<1?.5*tt(t):.5*(2-Math.pow(2,-10*(t-1)));var ti=n(77651),tr=n(21115);let ta={linear:a.Z,easeIn:Y,easeInOut:H,easeOut:G,circIn:ti.Z7,circInOut:ti.X7,circOut:ti.Bn,backIn:tt,backInOut:te,backOut:Q,anticipate:tn},ts=t=>"string"==typeof t,to=t=>{if((0,tr.q)(t)){(0,h.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,n,i,r]=t;return j(e,n,i,r)}return ts(t)?((0,h.k)(void 0!==ta[t],`Invalid easing type '${t}'`,"invalid-easing-type"),ta[t]):t};var tl=n(91038);function tu({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){let s=U(i)?i.map(to):to(i),u={done:!1,value:e[0]},d=function(t,e,{clamp:n=!0,ease:i,mixer:s}={}){let u=t.length;if((0,h.k)(u===e.length,"Both input and output ranges must be the same length","range-length"),1===u)return()=>e[0];if(2===u&&e[0]===e[1])return()=>e[1];let d=t[0]===t[1];t[0]>t[u-1]&&(t=[...t].reverse(),e=[...e].reverse());let c=function(t,e,n){let i=[],s=n||r.c.mix||D,l=t.length-1;for(let n=0;n{if(d&&n1)for(;im((0,l.u)(t[0],t[u-1],e)):m}((n&&n.length===e.length?n:function(t){let e=[0];return function(t,e){let n=t[t.length-1];for(let i=1;i<=e;i++){let r=(0,tl.Y)(0,e,i);t.push((0,w.t)(n,1,r))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(s)?s:e.map(()=>s||H).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(u.value=d(e),u.done=e>=t,u)}}var th=n(97416);let td={decay:q,inertia:q,tween:tu,keyframes:tu,spring:W};function tc(t){"string"==typeof t.type&&(t.type=td[t.type])}var tf=n(70114);let tm=t=>t/100;class tp extends tf.T{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==s.X.now()&&this.tick(s.X.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},u.P.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;tc(t);let{type:e=tu,repeat:n=0,repeatDelay:i=0,repeatType:r,velocity:a=0}=t,{keyframes:s}=t,l=e||tu;l!==tu&&"number"!=typeof s[0]&&(this.mixKeyframes=(0,o.z)(tm,D(s[0],s[1])),s=[0,100]);let u=l({...t,keyframes:s});"mirror"===r&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=F(u));let{calculatedDuration:h}=u;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=u}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 n;let{generator:i,totalDuration:r,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:u}=this;if(null===this.startTime)return i.next(0);let{delay:h=0,keyframes:d,repeat:c,repeatType:f,repeatDelay:m,type:p,onUpdate:v,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-h*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let b=this.currentTime,x=i;if(c){let t=Math.min(this.currentTime,r)/o,e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,(e=Math.min(e,c+1))%2&&("reverse"===f?(n=1-n,m&&(n-=m/o)):"mirror"===f&&(x=s)),b=(0,l.u)(0,1,n)*o}w?(this.delayState.value=d[0],n=this.delayState):n=x.next(b),a&&!w&&(n.value=a(n.value));let{done:T}=n;w||null===u||(T=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return S&&p!==q&&(n.value=(0,th.$)(d,this.options,y,this.speed)),v&&v(n.value),S&&this.finish(),n}then(t,e){return this.finished.then(t,e)}get duration(){return(0,i.X)(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+(0,i.X)(t)}get time(){return(0,i.X)(this.currentTime)}set time(t){t=(0,i.w)(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?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return N(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(s.X.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=(0,i.X)(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=L,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(s.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,u.P.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)}}var tv=n(49585),ty=n(12927),tg=n(50487);let tw={anticipate:tn,backInOut:te,circInOut:ti.X7};class tb extends tg._{constructor(t){"string"==typeof t.ease&&t.ease in tw&&(t.ease=tw[t.ease]),tc(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:n,onComplete:i,element:r,...a}=this.options;if(!e)return;if(void 0!==t){e.set(t);return}let o=new tp({...a,autoplay:!1}),u=Math.max(10,s.X.now()-this.startTime),h=(0,l.u)(0,10,u-10),d=o.sample(u).value,{name:c}=this.options;r&&c&&(0,ty.A)(r,c,d),e.setWithVelocity(o.sample(Math.max(0,u-h)).value,d,h),o.stop()}}var tx=n(98785);let tT=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(f.P.test(t)||"0"===t)&&!t.startsWith("url("));function tS(t){t.duration=0,t.type="keyframes"}var tA=n(2474),tM=n(91015);let tk=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,tC=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),tE=(0,tA.X)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class tV extends tf.T{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:a="loop",keyframes:o,name:l,motionValue:u,element:h,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=s.X.now();let c={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:r,repeatType:a,name:l,motionValue:u,element:h,...d},f=h?.KeyframeResolver||tv.e;this.keyframeResolver=new f(o,(t,e,n)=>this.onKeyframesResolved(t,e,c,!n),l,u,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,n,i){let o;this.keyframeResolver=void 0;let{name:l,type:u,velocity:d,delay:c,isHandoff:f,onUpdate:m}=n;this.resolvedAt=s.X.now();let p=!0;!function(t,e,n,i){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let a=t[t.length-1],s=tT(r,e),o=tT(a,e);return(0,h.K)(s===o,`You are trying to animate ${e} from "${r}" to "${a}". "${s?a:r}" is not an animatable value.`,"value-not-animatable"),!!s&&!!o&&(function(t){let e=t[0];if(1===t.length)return!0;for(let n=0;n40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...n,keyframes:t},y=p&&!f&&function(t){let{motionValue:e,name:n,repeatDelay:i,repeatType:r,damping:a,type:s,keyframes:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=e.owner.getProps();return tE()&&n&&(tM.t.has(n)||tC.has(n)&&function(t){for(let e=0;e{this.notifyFinished()}).catch(a.Z),this.pendingTimeline&&(this.stopTimeline=o.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=o}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(),(0,tv.m)()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}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()}}var tP=n(61195),tD=n(13378);let tO={type:"spring",stiffness:500,damping:25,restSpeed:10},tL=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),tI={type:"keyframes",duration:.8},tF={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tX=(t,{keyframes:e})=>e.length>2?tI:tD.G.has(t)?t.startsWith("scale")?tL(e[1]):tO:tF,tR=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),tK=(t,e,n,a={},s,o)=>l=>{let u=(0,tP.e)(a,t)||{},h=u.delay||a.delay||0,{elapsed:d=0}=a;d-=(0,i.w)(h);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...u,delay:-d,onUpdate:t=>{e.set(t),u.onUpdate&&u.onUpdate(t)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:t,motionValue:e,element:o?void 0:s};!function(t){for(let e in t)if(!tR.has(e))return!0;return!1}(u)&&Object.assign(c,tX(t,c)),c.duration&&(c.duration=(0,i.w)(c.duration)),c.repeatDelay&&(c.repeatDelay=(0,i.w)(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let f=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(tS(c),0!==c.delay||(f=!0)),(r.c.instantAnimations||r.c.skipAnimations||s?.shouldSkipAnimations)&&(f=!0,tS(c),c.delay=0),c.allowFlatten=!u.type&&!u.ease,f&&!o&&void 0!==e.get()){let t=(0,th.$)(c.keyframes,u);if(void 0!==t){O.Wi.update(()=>{c.onUpdate(t),c.onComplete()});return}}return u.isSync?new tp(c):new tV(c)}},83304:function(t,e,n){n.d(e,{s:function(){return r}});var i=n(34544);function r(t){return t.props[i.M]}},61195:function(t,e,n){n.d(e,{e:function(){return r}});var i=n(69679);function r(t,e){let n=t?.[e]??t?.default??t;return n!==t?(0,i.r)(n,t):n}},69679:function(t,e,n){n.d(e,{r:function(){return i}});function i(t,e){if(t?.inherit&&e){let{inherit:n,...i}=t;return{...e,...i}}return t}},1673:function(t,e,n){n.d(e,{E:function(){return i}});function i(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}},57176:function(t,e,n){n.d(e,{g:function(){return r},r:function(){return i}});let i={x:!1,y:!1};function r(){return i.x||i.y}},36592:function(t,e,n){n.d(e,{T:function(){return s},_:function(){return r}});let i=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function r(t){return i.has(t.tagName)||!0===t.isContentEditable}let a=new Set(["INPUT","SELECT","TEXTAREA"]);function s(t){return a.has(t.tagName)||!0===t.isContentEditable}},80909:function(t,e,n){n.d(e,{D:function(){return i}});let i=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary},71865:function(t,e,n){function i({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function r({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function a(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}}n.d(e,{d7:function(){return a},i8:function(){return i},z2:function(){return r}})},51577:function(t,e,n){n.d(e,{D2:function(){return f},YY:function(){return u},am:function(){return h},o2:function(){return l},q2:function(){return a}});var i=n(31925),r=n(22883);function a(t,e,n){return n+e*(t-n)}function s(t,e,n,i,r){return void 0!==r&&(t=i+r*(t-i)),i+n*(t-i)+e}function o(t,e=0,n=1,i,r){t.min=s(t.min,e,n,i,r),t.max=s(t.max,e,n,i,r)}function l(t,{x:e,y:n}){o(t.x,e.translate,e.scale,e.originPoint),o(t.y,n.translate,n.scale,n.originPoint)}function u(t,e,n,i=!1){let a,s;let o=n.length;if(o){e.x=e.y=1;for(let u=0;u.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function h(t,e){t.min+=e,t.max+=e}function d(t,e,n,r,a=.5){let s=(0,i.t)(t.min,t.max,a);o(t,e,n,s,r)}function c(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function f(t,e,n){let i=n??t;d(t.x,c(e.x,i.x),e.scaleX,e.scale,e.originX),d(t.y,c(e.y,i.y),e.scaleY,e.scale,e.originY)}},22883:function(t,e,n){function i(t){return void 0===t||1===t}function r({scale:t,scaleX:e,scaleY:n}){return!i(t)||!i(e)||!i(n)}function a(t){return r(t)||s(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function s(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}n.d(e,{D_:function(){return s},Lj:function(){return r},ud:function(){return a}})},10604:function(t,e,n){n.d(e,{J:function(){return a},z:function(){return s}});var i=n(71865),r=n(51577);function a(t,e){return(0,i.i8)((0,i.d7)(t.getBoundingClientRect(),e))}function s(t,e,n){let i=a(t,n),{scroll:s}=e;return s&&((0,r.am)(i.x,s.offset.x),(0,r.am)(i.y,s.offset.y)),i}},17076:function(t,e,n){n.d(e,{L:function(){return i}});class i{constructor(t){this.isMounted=!1,this.node=t}update(){}}},48036:function(t,e,n){n.d(e,{I:function(){return i}});function i(t,e,n){if(null==t)return[];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).filter(t=>null!=t)}},9624:function(t,e,n){n.d(e,{K:function(){return a}});var i=n(72210),r=n(23273);function a(t,e){let n=t.getValue("willChange");if((0,r.i)(n)&&n.add)return n.add(e);if(!n&&i.c.WillChange){let n=new i.c.WillChange("auto");t.addValue("willChange",n),n.add(e)}}},77651:function(t,e,n){n.d(e,{Bn:function(){return s},X7:function(){return o},Z7:function(){return a}});var i=n(33988),r=n(10149);let a=t=>1-Math.sin(Math.acos(t)),s=(0,r.M)(a),o=(0,i.o)(a)},33988:function(t,e,n){n.d(e,{o:function(){return i}});let i=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},10149:function(t,e,n){n.d(e,{M:function(){return i}});let i=t=>e=>1-t(1-e)},92112:function(t,e,n){n.d(e,{z:function(){return r}});let i=(t,e)=>n=>e(t(n)),r=(...t)=>t.reduce(i)},91038:function(t,e,n){n.d(e,{Y:function(){return i}});let i=(t,e,n)=>{let i=e-t;return 0===i?1:(n-t)/i}}}]);