try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="726967dc-39b1-450c-b4ad-68e5286ce5f1",e._sentryDebugIdIdentifier="sentry-dbid-726967dc-39b1-450c-b4ad-68e5286ce5f1")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5943],{567:(e,t,n)=>{n.d(t,{V:()=>i});let i=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2},2217:(e,t,n)=>{n.d(t,{D:()=>a});var i=n(82897),r=n(23492);let s={...n(90802).W,color:i.y,backgroundColor:i.y,outlineColor:i.y,fill:i.y,stroke:i.y,borderColor:i.y,borderTopColor:i.y,borderRightColor:i.y,borderBottomColor:i.y,borderLeftColor:i.y,filter:r.p,WebkitFilter:r.p},a=e=>s[e]},3870:(e,t,n)=>{n.d(t,{i:()=>i});let i=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)},12083:(e,t,n)=>{n.d(t,{V:()=>o});var i=n(23082),r=n(45471),s=n(22282),a=n(97219);let o={test:(0,a.$)("hsl","hue"),parse:(0,a.q)("hue","saturation","lightness"),transform:e=>{let{hue:t,saturation:n,lightness:a,alpha:o=1}=e;return"hsla("+Math.round(t)+", "+r.KN.transform((0,s.a)(n))+", "+r.KN.transform((0,s.a)(a))+", "+(0,s.a)(i.X4.transform(o))+")"}}},16498:(e,t,n)=>{n.d(t,{G:()=>i});let i=e=>t=>1-e(1-t)},18203:(e,t,n)=>{n.d(t,{h:()=>d,q:()=>h});var i=n(79280),r=n(59210);let s=new Set,a=!1,o=!1;function l(){if(o){let e=Array.from(s).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=(0,i.W9)(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(t=>{var n;let[i,r]=t;null==(n=e.getValue(i))||n.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}o=!1,a=!1,s.forEach(e=>e.complete()),s.clear()}function u(){s.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(o=!0)})}function h(){u(),l()}class d{scheduleResolve(){this.isScheduled=!0,this.isAsync?(s.add(this),a||(a=!0,r.Gt.read(u),r.Gt.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:i}=this;for(let r=0;r{n.d(t,{J:()=>a});var i=n(93013),r=n(23492),s=n(2217);function a(e,t){let n=(0,s.D)(e);return n!==r.p&&(n=i.f),n.getAnimatableNone?n.getAnimatableNone(t):void 0}},21109:(e,t,n)=>{n.d(t,{k:()=>i});let i=(e,t,n)=>e+(t-e)*n},22282:(e,t,n)=>{n.d(t,{a:()=>i});let i=e=>Math.round(1e5*e)/1e5},23492:(e,t,n)=>{n.d(t,{p:()=>l});var i=n(93013),r=n(66479);let s=new Set(["brightness","contrast","saturate","opacity"]);function a(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[i]=n.match(r.S)||[];if(!i)return e;let a=n.replace(i,""),o=+!!s.has(t);return i!==n&&(o*=100),t+"("+o+a+")"}let o=/\b([a-z-]*)\(.*?\)/gu,l={...i.f,getAnimatableNone:e=>{let t=e.match(o);return t?t.map(a).join(" "):e}}},24935:(e,t,n)=>{n.d(t,{B:()=>l});var i=n(77782),r=n(23082),s=n(22282),a=n(97219);let o={...r.ai,transform:e=>Math.round((0,i.q)(0,255,e))},l={test:(0,a.$)("rgb","red"),parse:(0,a.q)("red","green","blue"),transform:e=>{let{red:t,green:n,blue:i,alpha:a=1}=e;return"rgba("+o.transform(t)+", "+o.transform(n)+", "+o.transform(i)+", "+(0,s.a)(r.X4.transform(a))+")"}}},25646:(e,t,n)=>{n.d(t,{n:()=>w});var i=n(52290),r=n(46256),s=n(51586),a=n(59210);function o(e,t,n){let{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover","Start"===n);let r=i["onHover"+n];r&&a.Gt.postRender(()=>r(t,(0,s.e)(t)))}class l extends i.X{mount(){let{current:e}=this.node;e&&(this.unmount=(0,r.PT)(e,e=>(o(this.node,e,"Start"),e=>o(this.node,e,"End"))))}unmount(){}}var u=n(51442),h=n(97007);class d extends i.X{onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&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,h.F)((0,u.k)(this.node.current,"focus",()=>this.onFocus()),(0,u.k)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}constructor(){super(...arguments),this.isActive=!1}}function c(e,t,n){let{props:i}=e;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap","Start"===n);let r=i["onTap"+("End"===n?"":n)];r&&a.Gt.postRender(()=>r(t,(0,s.e)(t)))}class p extends i.X{mount(){let{current:e}=this.node;e&&(this.unmount=(0,r.c$)(e,e=>(c(this.node,e,"Start"),(e,t)=>{let{success:n}=t;return c(this.node,e,n?"End":"Cancel")}),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let f=new WeakMap,m=new WeakMap,v=e=>{let t=f.get(e.target);t&&t(e)},g=e=>{e.forEach(v)},y={some:0,all:1};class b extends i.X{startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:i="some",once:r}=e,s={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:y[i]};return function(e,t,n){let i=function(e){let{root:t,...n}=e,i=t||document;m.has(i)||m.set(i,{});let r=m.get(i),s=JSON.stringify(n);return r[s]||(r[s]=new IntersectionObserver(g,{root:t,...n})),r[s]}(t);return f.set(e,n),i.observe(e),()=>{f.delete(e),i.unobserve(e)}}(this.node.current,s,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,r&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),s=t?n:i;s&&s(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function(e){let{viewport:t={}}=e,{viewport:n={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=>t[e]!==n[e]}(e,t))&&this.startObserver()}unmount(){}constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}}let w={inView:{Feature:b},tap:{Feature:p},focus:{Feature:d},hover:{Feature:l}}},31070:(e,t,n)=>{n.d(t,{$:()=>i});let i=new Set(["width","height","top","left","right","bottom",...n(87387).U])},33757:(e,t,n)=>{n.d(t,{L:()=>a,m:()=>s});var i=n(78588),r=n(96147);function s(e,t){return(0,i.FY)((0,i.bS)(e.getBoundingClientRect(),t))}function a(e,t,n){let i=s(e,n),{scroll:a}=t;return a&&((0,r.Ql)(i.x,a.offset.x),(0,r.Ql)(i.y,a.offset.y)),i}},33796:(e,t,n)=>{n.d(t,{K:()=>m});var i=n(56440),r=n(31070),s=n(93013),a=n(19780);let o=new Set(["auto","none","0"]);var l=n(18203),u=n(54542),h=n(3870),d=n(93676);let c=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var p=n(79280),f=n(39067);class m extends l.h{readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n2&&void 0!==arguments[2]?arguments[2]:1;(0,u.V)(i<=4,'Max CSS variable fallback depth detected in property "'.concat(t,'". This may indicate a circular fallback dependency.'));let[r,s]=function(e){let t=c.exec(e);if(!t)return[,];let[,n,i,r]=t;return["--".concat(null!=n?n:i),r]}(t);if(!r)return;let a=window.getComputedStyle(n).getPropertyValue(r);if(a){let e=a.trim();return(0,h.i)(e)?parseFloat(e):e}return(0,d.p)(s)?e(s,n,i+1):s}(i,t.current);void 0!==r&&(e[n]=r),n===e.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!r.$.has(n)||2!==e.length)return;let[i,s]=e,a=(0,f.n)(i),o=(0,f.n)(s);if(a!==o)if((0,p.E4)(a)&&(0,p.E4)(o))for(let t=0;t{let[n,i]=e;t.getValue(n).set(i)}),this.resolveNoneKeyframes()}constructor(e,t,n,i,r){super(e,t,n,i,r,!0)}}},39067:(e,t,n)=>{n.d(t,{T:()=>a,n:()=>o});var i=n(23082),r=n(45471),s=n(61987);let a=[i.ai,r.px,r.KN,r.uj,r.vw,r.vh,{test:e=>"auto"===e,parse:e=>e}],o=e=>a.find((0,s.w)(e))},41917:(e,t,n)=>{n.d(t,{p:()=>i});function i(e){let t;return()=>(void 0===t&&(t=e()),t)}},44931:(e,t,n)=>{n.d(t,{f:()=>eT});var i=n(46256),r=n(47215),s=n(59210),a=n(74492);let o={current:!1};var l=n(19827);let u=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function h(e,t,n,i){return e===t&&n===i?l.l:r=>0===r||1===r?r:u(function(e,t,n,i,r){let s,a,o=0;do(s=u(a=t+(n-t)/2,i,r)-e)>0?n=a:t=a;while(Math.abs(s)>1e-7&&++o<12);return a}(r,0,1,e,n),t,i)}var d=n(567),c=n(16498);let p=h(.33,1.53,.69,.99),f=(0,c.G)(p),m=(0,d.V)(f),v=e=>(e*=2)<1?.5*f(e):.5*(2-Math.pow(2,-10*(e-1)));var g=n(59282),y=n(33796),b=n(19932),w=n(18203),S=n(54542),T=n(93013);let x=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(T.f.test(e)||"0"===e)&&!e.startsWith("url(")),V=e=>null!==e;function A(e,t,n){let{repeat:i,repeatType:r="loop"}=t,s=e.filter(V),a=i&&"loop"!==r&&i%2==1?0:s.length-1;return a&&void 0!==n?n:s[a]}class M{calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,w.q)(),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=b.k.now(),this.hasAttemptedResolve=!0;let{name:n,type:r,velocity:s,delay:a,onComplete:l,onUpdate:u,isGenerator:h}=this.options;if(!h&&!function(e,t,n,r){let s=e[0];if(null===s)return!1;if("display"===t||"visibility"===t)return!0;let a=e[e.length-1],o=x(s,t),l=x(a,t);return(0,S.$)(o===l,"You are trying to animate ".concat(t,' from "').concat(s,'" to "').concat(a,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(a," via the `style` property.")),!!o&&!!l&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n{this.resolveFinishedPromise=e})}constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=b.k.now(),this.options={autoplay:e,delay:t,type:n,repeat:i,repeatDelay:r,repeatType:s,...a},this.updateFinishedPromise()}}var P=n(77782),k=n(21109);function C(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var F=n(67730),E=n(24935),I=n(12083);function D(e,t){return n=>n>0?t:e}let O=(e,t,n)=>{let i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},R=[F.u,E.B,I.V];function B(e){let t=R.find(t=>t.test(e));if((0,S.$)(!!t,"'".concat(e,"' is not an animatable color. Use the equivalent color code instead.")),!t)return!1;let n=t.parse(e);return t===I.V&&(n=function(e){let{hue:t,saturation:n,lightness:i,alpha:r}=e;t/=360,i/=100;let s=0,a=0,o=0;if(n/=100){let e=i<.5?i*(1+n):i+n-i*n,r=2*i-e;s=C(r,e,t+1/3),a=C(r,e,t),o=C(r,e,t-1/3)}else s=a=o=i;return{red:Math.round(255*s),green:Math.round(255*a),blue:Math.round(255*o),alpha:r}}(n)),n}let N=(e,t)=>{let n=B(e),i=B(t);if(!n||!i)return D(e,t);let r={...n};return e=>(r.red=O(n.red,i.red,e),r.green=O(n.green,i.green,e),r.blue=O(n.blue,i.blue,e),r.alpha=(0,k.k)(n.alpha,i.alpha,e),E.B.transform(r))};var K=n(97007),L=n(82897),$=n(93676);let q=new Set(["none","hidden"]);function G(e,t){return n=>(0,k.k)(e,t,n)}function U(e){return"number"==typeof e?G:"string"==typeof e?(0,$.p)(e)?D:L.y.test(e)?N:j:Array.isArray(e)?W:"object"==typeof e?L.y.test(e)?N:X:D}function W(e,t){let n=[...e],i=n.length,r=e.map((e,n)=>U(e)(e,t[n]));return e=>{for(let t=0;t{for(let t in i)n[t]=i[t](e);return n}}let j=(e,t)=>{let n=T.f.createTransformer(t),i=(0,T.V)(e),r=(0,T.V)(t);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?q.has(e)&&!r.values.length||q.has(t)&&!i.values.length?function(e,t){return q.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):(0,K.F)(W(function(e,t){var n;let i=[],r={color:0,var:0,number:0};for(let s=0;svoid 0!==e[t])}function et(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z.visualDuration,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.bounce,s="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:n}:t,{restSpeed:a,restDelta:o}=s,l=s.keyframes[0],u=s.keyframes[s.keyframes.length-1],h={done:!1,value:l},{stiffness:d,damping:c,mass:p,duration:f,velocity:m,isResolvedFromDuration:v}=function(e){let t={velocity:z.velocity,stiffness:z.stiffness,damping:z.damping,mass:z.mass,isResolvedFromDuration:!1,...e};if(!ee(e,Z)&&ee(e,J))if(e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),i=n*n,r=2*(0,P.q)(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:z.mass,stiffness:i,damping:r}}else{let n=function(e){let t,n,{duration:i=z.duration,bounce:s=z.bounce,velocity:a=z.velocity,mass:o=z.mass}=e;(0,S.$)(i<=(0,r.f)(z.maxDuration),"Spring duration must be 10 seconds or less");let l=1-s;l=(0,P.q)(z.minDamping,z.maxDamping,l),i=(0,P.q)(z.minDuration,z.maxDuration,(0,r.X)(i)),l<1?(t=e=>{let t=e*l,n=t*i;return .001-(t-a)/Q(e,l)*Math.exp(-n)},n=e=>{let n=e*l*i,r=Math.pow(l,2)*Math.pow(e,2)*i,s=Math.exp(-n),o=Q(Math.pow(e,2),l);return(n*a+a-r)*s*(-t(e)+.001>0?-1:1)/o}):(t=e=>-.001+Math.exp(-e*i)*((e-a)*i+1),n=e=>i*i*(a-e)*Math.exp(-e*i));let u=function(e,t,n){let i=n;for(let n=1;n<12;n++)i-=e(i)/t(i);return i}(t,n,5/i);if(i=(0,r.f)(i),isNaN(u))return{stiffness:z.stiffness,damping:z.damping,duration:i};{let e=Math.pow(u,2)*o;return{stiffness:e,damping:2*l*Math.sqrt(o*e),duration:i}}}(e);(t={...t,...n,mass:z.mass}).isResolvedFromDuration=!0}return t}({...s,velocity:-(0,r.X)(s.velocity||0)}),g=m||0,y=c/(2*Math.sqrt(d*p)),b=u-l,w=(0,r.X)(Math.sqrt(d/p)),T=5>Math.abs(b);if(a||(a=T?z.restSpeed.granular:z.restSpeed.default),o||(o=T?z.restDelta.granular:z.restDelta.default),y<1){let t=Q(w,y);e=e=>u-Math.exp(-y*w*e)*((g+y*w*b)/t*Math.sin(t*e)+b*Math.cos(t*e))}else if(1===y)e=e=>u-Math.exp(-w*e)*(b+(g+w*b)*e);else{let t=w*Math.sqrt(y*y-1);e=e=>{let n=Math.exp(-y*w*e),i=Math.min(t*e,300);return u-n*((g+y*w*b)*Math.sinh(i)+t*b*Math.cosh(i))/t}}let x={calculatedDuration:v&&f||null,next:t=>{let n=e(t);if(v)h.done=t>=f;else{let i=0;y<1&&(i=0===t?(0,r.f)(g):Y(e,t,n));let s=Math.abs(u-n)<=o;h.done=Math.abs(i)<=a&&s}return h.value=h.done?u:n,h},toString:()=>{let e=Math.min((0,i.tu)(x),i.YE),t=(0,i.KZ)(t=>x.next(e*t).value,e,30);return e+"ms "+t}};return x}function en(e){let t,n,{keyframes:i,velocity:r=0,power:s=.8,timeConstant:a=325,bounceDamping:o=10,bounceStiffness:l=500,modifyTarget:u,min:h,max:d,restDelta:c=.5,restSpeed:p}=e,f=i[0],m={done:!1,value:f},v=s*r,g=f+v,y=void 0===u?g:u(g);y!==g&&(v=y-f);let b=e=>-v*Math.exp(-e/a),w=e=>y+b(e),S=e=>{let t=b(e),n=w(e);m.done=Math.abs(t)<=c,m.value=m.done?y:n},T=e=>{let i;if(i=m.value,void 0!==h&&id){var r;t=e,n=et({keyframes:[m.value,(r=m.value,void 0===h?d:void 0===d||Math.abs(h-r){let i=!1;return(n||void 0!==t||(i=!0,S(e),T(e)),void 0!==t&&e>=t)?n.next(e-t):(i||S(e),m)}}}let ei=h(.42,0,1,1),er=h(0,0,.58,1),es=h(.42,0,.58,1),ea={linear:l.l,easeIn:ei,easeInOut:es,easeOut:er,circIn:g.po,circInOut:g.tn,circOut:g.yT,backIn:f,backInOut:m,backOut:p,anticipate:v},eo=e=>{if((0,i.DW)(e)){(0,S.V)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,i,r]=e;return h(t,n,i,r)}return"string"==typeof e?((0,S.V)(void 0!==ea[e],"Invalid easing type '".concat(e,"'")),ea[e]):e};var el=n(45818);function eu(e){var t;let{duration:n=300,keyframes:i,times:r,ease:s="easeInOut"}=e,a=Array.isArray(s)&&"number"!=typeof s[0]?s.map(eo):eo(s),o={done:!1,value:i[0]},u=function(e,t){let{clamp:n=!0,ease:i,mixer:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=e.length;if((0,S.V)(s===t.length,"Both input and output ranges must be the same length"),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=function(e,t,n){let i=[],r=n||_,s=e.length-1;for(let n=0;n{if(a&&n1)for(;ih((0,P.q)(e[0],e[s-1],t)):h}((t=r&&r.length===i.length?r:function(e){let t=[0];return!function(e,t){let n=e[e.length-1];for(let i=1;i<=t;i++){let r=(0,el.q)(0,t,i);e.push((0,k.k)(n,1,r))}}(t,e.length-1),t}(i),t.map(e=>e*n)),i,{ease:Array.isArray(a)?a:i.map(()=>a||es).splice(0,i.length-1)});return{calculatedDuration:n,next:e=>(o.value=u(e),o.done=e>=n,o)}}let eh=e=>{let t=t=>{let{timestamp:n}=t;return e(n)};return{start:()=>s.Gt.update(t,!0),stop:()=>(0,s.WG)(t),now:()=>s.uv.isProcessing?s.uv.timestamp:b.k.now()}},ed={decay:en,inertia:en,tween:eu,keyframes:eu,spring:et},ec=e=>e/100;class ep extends M{flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let t,n,{type:r="keyframes",repeat:s=0,repeatDelay:a=0,repeatType:o,velocity:l=0}=this.options,u=(0,i.WH)(r)?r:ed[r]||eu;u!==eu&&"number"!=typeof e[0]&&(t=(0,K.F)(ec,_(e[0],e[1])),e=[0,100]);let h=u({...this.options,keyframes:e});"mirror"===o&&(n=u({...this.options,keyframes:[...e].reverse(),velocity:-l})),null===h.calculatedDuration&&(h.calculatedDuration=(0,i.tu)(h));let{calculatedDuration:d}=h,c=d+a;return{generator:h,mirroredGenerator:n,mapPercentToKeyframes:t,calculatedDuration:d,resolvedDuration:c,totalDuration:c*(s+1)-a}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{resolved:n}=this;if(!n){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:i,generator:r,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:o,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=n;if(null===this.startTime)return r.next(0);let{delay:d,repeat:c,repeatType:p,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let v=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,b=r;if(c){let e=Math.min(this.currentTime,u)/h,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,c+1))%2&&("reverse"===p?(n=1-n,f&&(n-=f/h)):"mirror"===p&&(b=s)),y=(0,P.q)(0,1,n)*h}let w=g?{done:!1,value:o[0]}:b.next(y);a&&(w.value=a(w.value));let{done:S}=w;g||null===l||(S=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return T&&void 0!==i&&(w.value=A(o,this.options,i)),m&&m(w.value),T&&this.finish(),w}get duration(){let{resolved:e}=this;return e?(0,r.X)(e.calculatedDuration):0}get time(){return(0,r.X)(this.currentTime)}set time(e){e=(0,r.f)(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=(0,r.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=eh,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=i):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(e=this.currentTime)?e:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:t,motionValue:n,element:i,keyframes:r}=this.options,s=(null==i?void 0:i.KeyframeResolver)||w.h;this.resolver=new s(r,(e,t)=>this.onKeyframesResolved(e,t),t,n,i),this.resolver.scheduleResolve()}}var ef=n(92295);let em=(0,n(41917).p)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ev={anticipate:v,backInOut:m,circInOut:g.tn};class eg extends M{initPlayback(e,t){var n;let{duration:r=300,times:s,ease:a,type:o,motionValue:l,name:u,startTime:h}=this.options;if(!l.owner||!l.owner.current)return!1;if("string"==typeof a&&(0,i.nL)()&&a in ev&&(a=ev[a]),n=this.options,(0,i.WH)(n.type)||"spring"===n.type||!(0,i.yL)(n.ease)){let{onComplete:t,onUpdate:n,motionValue:i,element:l,...u}=this.options,h=function(e,t){let n=new ep({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),i={done:!1,value:e[0]},r=[],s=0;for(;!i.done&&s<2e4;)r.push((i=n.sample(s)).value),s+=10;return{times:void 0,keyframes:r,duration:s-10,ease:"linear"}}(e,u);1===(e=h.keyframes).length&&(e[1]=e[0]),r=h.duration,s=h.times,a=h.ease,o="keyframes"}let d=function(e,t,n){let{delay:r=0,duration:s=300,repeat:a=0,repeatType:o="loop",ease:l="easeInOut",times:u}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},h={[t]:n};u&&(h.offset=u);let d=(0,i.TU)(l,s);return Array.isArray(d)&&(h.easing=d),e.animate(h,{delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:"reverse"===o?"alternate":"normal"})}(l.owner.current,u,e,{...this.options,duration:r,times:s,ease:a});return d.startTime=null!=h?h:this.calcStartTime(),this.pendingTimeline?((0,i.vG)(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:n}=this.options;l.set(A(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:s,type:o,ease:a,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return(0,r.X)(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return(0,r.X)(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=(0,r.f)(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return l.l;let{animation:n}=t;(0,i.vG)(n,e)}else this.pendingTimeline=e;return l.l}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:i,type:s,ease:a,times:o}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:l,element:u,...h}=this.options,d=new ep({...h,keyframes:n,duration:i,type:s,ease:a,times:o,isGenerator:!0}),c=(0,r.f)(this.time);e.setWithVelocity(d.sample(c-10).value,d.sample(c).value,10)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:n,repeatDelay:i,repeatType:r,damping:s,type:a}=e;if(!t||!t.owner||!(t.owner.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=t.owner.getProps();return em()&&n&&ef.M.has(n)&&!o&&!l&&!i&&"mirror"!==r&&0!==s&&"inertia"!==a}constructor(e){super(e);let{name:t,motionValue:n,element:i,keyframes:r}=this.options;this.resolver=new y.K(r,(e,t)=>this.onKeyframesResolved(e,t),t,n,i),this.resolver.scheduleResolve()}}var ey=n(87387);let eb={type:"spring",stiffness:500,damping:25,restSpeed:10},ew={type:"keyframes",duration:.8},eS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eT=function(e,t,n){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=arguments.length>4?arguments[4]:void 0,h=arguments.length>5?arguments[5]:void 0;return d=>{let c=(0,i.rU)(l,e)||{},p=c.delay||l.delay||0,{elapsed:f=0}=l;f-=(0,r.f)(p);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-f,onUpdate:e=>{t.set(e),c.onUpdate&&c.onUpdate(e)},onComplete:()=>{d(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:h?void 0:u};!function(e){let{when:t,delay:n,delayChildren:i,staggerChildren:r,staggerDirection:s,repeat:a,repeatType:o,repeatDelay:l,from:u,elapsed:h,...d}=e;return!!Object.keys(d).length}(c)&&(m={...m,...((e,t)=>{let{keyframes:n}=t;return n.length>2?ew:ey.f.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:eb:eS})(e,m)}),m.duration&&(m.duration=(0,r.f)(m.duration)),m.repeatDelay&&(m.repeatDelay=(0,r.f)(m.repeatDelay)),void 0!==m.from&&(m.keyframes[0]=m.from);let v=!1;if(!1!==m.type&&(0!==m.duration||m.repeatDelay)||(m.duration=0,0===m.delay&&(v=!0)),(o.current||a.W.skipAnimations)&&(v=!0,m.duration=0,m.delay=0),v&&!h&&void 0!==t.get()){let e=A(m.keyframes,c);if(void 0!==e)return s.Gt.update(()=>{m.onUpdate(e),m.onComplete()}),new i.P6([])}return!h&&eg.supports(m)?new eg(m):new ep(m)}}},45818:(e,t,n)=>{n.d(t,{q:()=>i});let i=(e,t,n)=>{let i=t-e;return 0===i?1:(n-e)/i}},46256:(e,t,n)=>{n.d(t,{P6:()=>a,vG:()=>d,tu:()=>u,KZ:()=>v,rU:()=>o,PT:()=>x,DW:()=>c,WH:()=>h,Mc:()=>A,yL:()=>g,TU:()=>function e(t,n){if(t)return"function"==typeof t&&f()?v(t,n):c(t)?y(t):Array.isArray(t)?t.map(t=>e(t,n)||b.easeOut):b[t]},YE:()=>l,c$:()=>E,Wp:()=>I,nL:()=>f});var i=n(41917);let r=(0,i.p)(()=>void 0!==window.ScrollTimeline);class s{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;nr()&&n.attachTimeline?n.attachTimeline(e):"function"==typeof t?t(n):void 0);return()=>{n.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;tt[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class a extends s{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function o(e,t){return e?e[t]||e.default||e:void 0}let l=2e4;function u(e){let t=0,n=e.next(t);for(;!n.done&&t=l?1/0:t}function h(e){return"function"==typeof e}function d(e,t){e.timeline=t,e.onfinish=null}let c=e=>Array.isArray(e)&&"number"==typeof e[0],p={linearEasing:void 0},f=function(e,t){let n=(0,i.p)(e);return()=>{var e;return null!=(e=p[t])?e:n()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing");var m=n(45818);let v=(e,t,n=10)=>{let i="",r=Math.max(Math.round(t/n),2);for(let t=0;t`cubic-bezier(${e}, ${t}, ${n}, ${i})`,b={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:y([0,.65,.55,1]),circOut:y([.55,0,1,.45]),backIn:y([.31,.01,.66,-.59]),backOut:y([.33,1.53,.69,.99])},w={x:!1,y:!1};function S(e,t){let n=function(e,t,n){if(e instanceof Element)return[e];if("string"==typeof e){let t=document.querySelectorAll(e);return t?Array.from(t):[]}return Array.from(e)}(e),i=new AbortController;return[n,{passive:!0,...t,signal:i.signal},()=>i.abort()]}function T(e){return t=>{"touch"===t.pointerType||w.x||w.y||e(t)}}function x(e,t,n={}){let[i,r,s]=S(e,n),a=T(e=>{let{target:n}=e,i=t(e);if("function"!=typeof i||!n)return;let s=T(e=>{i(e),n.removeEventListener("pointerleave",s)});n.addEventListener("pointerleave",s,r)});return i.forEach(e=>{e.addEventListener("pointerenter",a,r)}),s}let V=(e,t)=>!!t&&(e===t||V(e,t.parentElement)),A=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,M=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),P=new WeakSet;function k(e){return t=>{"Enter"===t.key&&e(t)}}function C(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function F(e){return A(e)&&!(w.x||w.y)}function E(e,t,n={}){let[i,r,s]=S(e,n),a=e=>{let i=e.currentTarget;if(!F(e)||P.has(i))return;P.add(i);let s=t(e),a=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),F(e)&&P.has(i)&&(P.delete(i),"function"==typeof s&&s(e,{success:t}))},o=e=>{a(e,n.useGlobalTarget||V(i,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",o,r),window.addEventListener("pointercancel",l,r)};return i.forEach(e=>{M.has(e.tagName)||-1!==e.tabIndex||null!==e.getAttribute("tabindex")||(e.tabIndex=0),(n.useGlobalTarget?window:e).addEventListener("pointerdown",a,r),e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let i=k(()=>{if(P.has(n))return;C(n,"down");let e=k(()=>{C(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>C(n,"cancel"),t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)})(e,r),r)}),s}function I(e){if("x"===e||"y"===e)if(w[e])return null;else return w[e]=!0,()=>{w[e]=!1};return w.x||w.y?null:(w.x=w.y=!0,()=>{w.x=w.y=!1})}n(47215),n(19827)},46926:(e,t,n)=>{n.d(t,{P:()=>r});var i=n(31788);function r(e){return e.props[i.n]}},47215:(e,t,n)=>{n.d(t,{X:()=>r,f:()=>i});let i=e=>1e3*e,r=e=>e/1e3},51442:(e,t,n)=>{n.d(t,{k:()=>i});function i(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}},51586:(e,t,n)=>{n.d(t,{F:()=>s,e:()=>r});var i=n(46256);function r(e){return{point:{x:e.pageX,y:e.pageY}}}let s=e=>t=>(0,i.Mc)(t)&&e(t,r(t))},52290:(e,t,n)=>{n.d(t,{X:()=>i});class i{update(){}constructor(e){this.isMounted=!1,this.node=e}}},54542:(e,t,n)=>{n.d(t,{$:()=>r,V:()=>s});var i=n(19827);let r=i.l,s=i.l},55457:(e,t,n)=>{n.d(t,{W:()=>F});var i=n(6340),r=n(5910);function s(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let i=0;i2&&void 0!==arguments[2]?arguments[2]:{},{transition:a=e.getDefaultTransition(),transitionEnd:o,...u}=t;r&&(a=r);let y=[],b=s&&e.animationState&&e.animationState.getState()[s];for(let t in u){let r=e.getValue(t,null!=(n=e.latestValues[t])?n:null),s=u[t];if(void 0===s||b&&function(e,t){let{protectedKeys:n,needsAnimating:i}=e,r=n.hasOwnProperty(t)&&!0!==i[t];return i[t]=!1,r}(b,t))continue;let o={delay:i,...(0,h.rU)(a||{},t)},l=!1;if(window.MotionHandoffAnimation){let n=(0,m.P)(e);if(n){let e=window.MotionHandoffAnimation(n,t,g.Gt);null!==e&&(o.startTime=e,l=!0)}}(0,f.g)(e,t),r.start((0,v.f)(t,r,s,e.shouldReduceMotion&&d.$.has(t)?{type:!1}:o,e,l));let c=r.animation;c&&y.push(c)}return o&&Promise.all(y).then(()=>{g.Gt.update(()=>{o&&function(e,t){let{transitionEnd:n={},transition:i={},...r}=l(e,t)||{};for(let t in r={...r,...n}){let n=(0,c.K)(r[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,(0,p.OQ)(n))}}(e,o)})}),y}function b(e,t){var n;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=l(e,t,"exit"===i.type?null==(n=e.presenceContext)?void 0:n.custom:void 0),{transition:s=e.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(s=i.transitionOverride);let a=r?()=>Promise.all(y(e,r,i)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=s;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=arguments.length>5?arguments[5]:void 0,a=[],o=(e.variantChildren.size-1)*i,l=1===r?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e*i}:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return o-e*i};return Array.from(e.variantChildren).sort(w).forEach((e,i)=>{e.notify("AnimationStart",t),a.push(b(e,t,{...s,delay:n+l(i)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,r+n,a,o,i)}:()=>Promise.resolve(),{when:u}=s;if(!u)return Promise.all([a(),o(i.delay)]);{let[e,t]="beforeChildren"===u?[a,o]:[o,a];return e().then(()=>t())}}function w(e,t){return e.sortNodePosition(t)}let S=u._.length,T=[...u.U].reverse(),x=u.U.length;function V(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function A(){return{animate:V(!0),whileInView:V(),whileHover:V(),whileTap:V(),whileDrag:V(),whileFocus:V(),exit:V()}}var M=n(52290);class P extends M.X{updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();(0,i.N)(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null==(e=this.unmountControls)||e.call(this)}constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(t=>{let{animation:n,options:i}=t;return function(e,t){let n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>b(e,t,i)));else if("string"==typeof t)n=b(e,t,i);else{let r="function"==typeof t?l(e,t,i.custom):t;n=Promise.all(y(e,r,i))}return n.then(()=>{e.notify("AnimationComplete",t)})}(e,n,i)})),n=A(),o=!0,h=t=>(n,i)=>{var r;let s=l(e,i,"exit"===t?null==(r=e.presenceContext)?void 0:r.custom:void 0);if(s){let{transition:e,transitionEnd:t,...i}=s;n={...n,...i,...t}}return n};function d(l){let{props:d}=e,c=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;ev&&S,P=!1,k=Array.isArray(w)?w:[w],C=k.reduce(h(u),{});!1===x&&(C={});let{prevResolvedValues:F={}}=b,E={...F,...C},I=t=>{M=!0,f.has(t)&&(P=!0,f.delete(t)),b.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in E){let t=C[e],n=F[e];if(!m.hasOwnProperty(e))((0,r.p)(t)&&(0,r.p)(n)?s(t,n):t===n)?void 0!==t&&f.has(e)?I(e):b.protectedKeys[e]=!0:null!=t?I(e):f.add(e)}b.prevProp=w,b.prevResolvedValues=C,b.isActive&&(m={...m,...C}),o&&e.blockInitialAnimation&&(M=!1);let D=!(V&&A)||P;M&&D&&p.push(...k.map(e=>({animation:e,options:{type:u}})))}if(f.size){let t={};f.forEach(n=>{let i=e.getBaseTarget(n),r=e.getValue(n);r&&(r.liveStyle=!0),t[n]=null!=i?i:null}),p.push({animation:t})}let b=!!p.length;return o&&(!1===d.initial||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),o=!1,b?t(p):Promise.resolve()}return{animateChanges:d,setActive:function(t,i){var r;if(n[t].isActive===i)return Promise.resolve();null==(r=e.variantChildren)||r.forEach(e=>{var n;return null==(n=e.animationState)?void 0:n.setActive(t,i)}),n[t].isActive=i;let s=d(t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=A(),o=!0}}}(e))}}let k=0;class C extends M.X{update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}constructor(){super(...arguments),this.id=k++}}let F={animation:{Feature:P},exit:{Feature:C}}},56440:(e,t,n)=>{n.d(t,{$:()=>i});let i=e=>/^0[^.\s]+$/u.test(e)},59282:(e,t,n)=>{n.d(t,{po:()=>s,tn:()=>o,yT:()=>a});var i=n(567),r=n(16498);let s=e=>1-Math.sin(Math.acos(e)),a=(0,r.G)(s),o=(0,i.V)(s)},61710:(e,t,n)=>{n.d(t,{J:()=>j});var i=n(12115),r=n(33757),s=n(19932),a=n(6642),o=n(81786),l=n(3870),u=n(56440),h=n(68972);let d={current:null},c={current:!1};var p=n(66802),f=n(59779),m=n(93013),v=n(14570),g=n(19780),y=n(82897),b=n(39067),w=n(61987);let S=[...b.T,y.y,m.f];var T=n(87387);let x=new WeakMap;var V=n(19253),A=n(18203),M=n(2735),P=n(59210);let k=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class C{scrapeMotionValuesFromProps(e,t,n){return{}}mount(e){this.current=e,x.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),c.current||function(){if(c.current=!0,h.B)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>d.current=e.matches;e.addListener(t),t()}else d.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||d.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in x.delete(this.current),this.projection&&this.projection.unmount(),(0,P.WG)(this.notifyUpdate),(0,P.WG)(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let n;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let i=T.f.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&P.Gt.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),s=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),s(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in a.B){let t=a.B[e];if(!t)continue;let{isEnabled:n,Feature:i}=t;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,o.ge)()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;tt.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=(0,f.OQ)(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let i=void 0===this.latestValues[e]&&this.current?null!=(n=this.getBaseTargetFromProps(this.props,e))?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=i){if("string"==typeof i&&((0,l.i)(i)||(0,u.$)(i)))i=parseFloat(i);else{let n;n=i,!S.find((0,w.w)(n))&&m.f.test(t)&&(i=(0,g.J)(e,t))}this.setBaseTarget(e,(0,v.S)(i)?i.get():i)}return(0,v.S)(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let n,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let r=(0,M.a)(this.props,i,null==(t=this.presenceContext)?void 0:t.custom);r&&(n=r[e])}if(i&&void 0!==n)return n;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||(0,v.S)(r)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new p.v),this.events[e].add(t)}notify(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;ithis.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 e=s.k.now();this.renderScheduledAt{this.current&&(this.current.textContent="".concat(e))}))}constructor(){super(...arguments),this.KeyframeResolver=F.K}}var I=n(93676),D=n(2217),O=n(86169),R=n(20600),B=n(60990);class N extends E{readValueFromInstance(e,t){if(T.f.has(t)){let e=(0,D.D)(t);return e&&e.default||0}{let n=window.getComputedStyle(e),i=((0,I.j)(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,t){let{transformPagePoint:n}=t;return(0,r.m)(e,n)}build(e,t,n){(0,O.O)(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return(0,B.x)(e,t,n)}constructor(){super(...arguments),this.type="html",this.renderInstance=R.e}}var K=n(78450),L=n(97914),$=n(36381),q=n(93095),G=n(33869),U=n(34527);class W extends E{getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(T.f.has(t)){let e=(0,D.D)(t);return e&&e.default||0}return t=$.e.has(t)?t:(0,K.I)(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return(0,U.x)(e,t,n)}build(e,t,n){(0,L.B)(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,i){(0,G.d)(e,t,n,i)}mount(e){this.isSVGTag=(0,q.n)(e.tagName),super.mount(e)}constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=o.ge}}var X=n(175);let j=(e,t)=>(0,X.Q)(e)?new W(t):new N(t,{allowProjection:e!==i.Fragment})},61987:(e,t,n)=>{n.d(t,{w:()=>i});let i=e=>t=>t.test(e)},62662:(e,t,n)=>{function i(e){return void 0===e||1===e}function r(e){let{scale:t,scaleX:n,scaleY:r}=e;return!i(t)||!i(n)||!i(r)}function s(e){return r(e)||a(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function a(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}n.d(t,{HD:()=>s,vF:()=>a,vk:()=>r})},66479:(e,t,n)=>{n.d(t,{S:()=>i});let i=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},67730:(e,t,n)=>{n.d(t,{u:()=>r});var i=n(24935);let r={test:(0,n(97219).$)("#"),parse:function(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}},transform:i.B.transform}},76333:(e,t,n)=>{n.d(t,{g:()=>r});var i=n(14570);function r(e,t){let n=e.getValue("willChange");if((0,i.S)(n)&&n.add)return n.add(t)}},78588:(e,t,n)=>{function i(e){let{top:t,left:n,right:i,bottom:r}=e;return{x:{min:n,max:i},y:{min:t,max:r}}}function r(e){let{x:t,y:n}=e;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function s(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}n.d(t,{FY:()=>i,bS:()=>s,pA:()=>r})},79280:(e,t,n)=>{n.d(t,{E4:()=>a,Hr:()=>c,W9:()=>d});var i=n(23082),r=n(45471),s=n(87387);let a=e=>e===i.ai||e===r.px,o=(e,t)=>parseFloat(e.split(", ")[t]),l=(e,t)=>(n,i)=>{let{transform:r}=i;if("none"===r||!r)return 0;let s=r.match(/^matrix3d\((.+)\)$/u);if(s)return o(s[1],t);{let t=r.match(/^matrix\((.+)\)$/u);return t?o(t[1],e):0}},u=new Set(["x","y","z"]),h=s.U.filter(e=>!u.has(e));function d(e){let t=[];return h.forEach(n=>{let i=e.getValue(n);void 0!==i&&(t.push([n,i.get()]),i.set(+!!n.startsWith("scale")))}),t}let c={width:(e,t)=>{let{x:n}=e,{paddingLeft:i="0",paddingRight:r="0"}=t;return n.max-n.min-parseFloat(i)-parseFloat(r)},height:(e,t)=>{let{y:n}=e,{paddingTop:i="0",paddingBottom:r="0"}=t;return n.max-n.min-parseFloat(i)-parseFloat(r)},top:(e,t)=>{let{top:n}=t;return parseFloat(n)},left:(e,t)=>{let{left:n}=t;return parseFloat(n)},bottom:(e,t)=>{let{y:n}=e,{top:i}=t;return parseFloat(i)+(n.max-n.min)},right:(e,t)=>{let{x:n}=e,{left:i}=t;return parseFloat(i)+(n.max-n.min)},x:l(4,13),y:l(5,14)};c.translateX=c.x,c.translateY=c.y},81786:(e,t,n)=>{n.d(t,{ge:()=>a,xU:()=>r});let i=()=>({translate:0,scale:1,origin:0,originPoint:0}),r=()=>({x:i(),y:i()}),s=()=>({min:0,max:0}),a=()=>({x:s(),y:s()})},82897:(e,t,n)=>{n.d(t,{y:()=>a});var i=n(67730),r=n(12083),s=n(24935);let a={test:e=>s.B.test(e)||i.u.test(e)||r.V.test(e),parse:e=>s.B.test(e)?s.B.parse(e):r.V.test(e)?r.V.parse(e):i.u.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?s.B.transform(e):r.V.transform(e)}},93013:(e,t,n)=>{n.d(t,{V:()=>h,f:()=>f});var i=n(82897);let r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var s=n(66479),a=n(22282);let o="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 h(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[],a=0,h=t.replace(u,e=>(i.y.test(e)?(r.color.push(a),s.push(l),n.push(i.y.parse(e))):e.startsWith("var(")?(r.var.push(a),s.push("var"),n.push(e)):(r.number.push(a),s.push(o),n.push(parseFloat(e))),++a,"${}")).split("${}");return{values:n,split:h,indexes:r,types:s}}function d(e){return h(e).values}function c(e){let{split:t,types:n}=h(e),r=t.length;return e=>{let s="";for(let u=0;u"number"==typeof e?0:e,f={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null==(t=e.match(s.S))?void 0:t.length)||0)+((null==(n=e.match(r))?void 0:n.length)||0)>0},parse:d,createTransformer:c,getAnimatableNone:function(e){let t=d(e);return c(e)(t.map(p))}}},96147:(e,t,n)=>{n.d(t,{OU:()=>u,Ql:()=>h,Ww:()=>c,hq:()=>s,o4:()=>l});var i=n(21109),r=n(62662);function s(e,t,n){return n+t*(e-n)}function a(e,t,n,i,r){return void 0!==r&&(e=i+r*(e-i)),i+n*(e-i)+t}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;e.min=a(e.min,t,n,i,r),e.max=a(e.max,t,n,i,r)}function l(e,t){let{x:n,y:i}=t;o(e.x,n.translate,n.scale,n.originPoint),o(e.y,i.translate,i.scale,i.originPoint)}function u(e,t,n){let i,s,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=n.length;if(o){t.x=t.y=1;for(let u=0;u.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}function h(e,t){e.min=e.min+t,e.max=e.max+t}function d(e,t,n,r){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5,a=(0,i.k)(e.min,e.max,s);o(e,t,n,a,r)}function c(e,t){d(e.x,t.x,t.scaleX,t.scale,t.originX),d(e.y,t.y,t.scaleY,t.scale,t.originY)}},97007:(e,t,n)=>{n.d(t,{F:()=>r});let i=(e,t)=>n=>t(e(n)),r=function(){for(var e=arguments.length,t=Array(e),n=0;n{n.d(t,{$:()=>s,q:()=>a});var i=n(66479);let r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s=(e,t)=>n=>!!("string"==typeof n&&r.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),a=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[s,a,o,l]=r.match(i.S);return{[e]:parseFloat(s),[t]:parseFloat(a),[n]:parseFloat(o),alpha:void 0!==l?parseFloat(l):1}}}}]);