import{t as e}from"./rolldown-runtime.s3yPkF3n.mjs";import{A as t,C as n,D as r,F as i,I as a,L as o,M as s,N as c,O as l,P as u,R as d,S as f,T as p,c as m,d as h,f as g,h as _,j as v,k as y,l as b,o as x,s as S,u as C,v as ee,w as te}from"./react.eNNBfCGs.mjs";var w,T,ne,re,ie,ae,oe,se,ce,le,ue,de,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe=e((()=>{w=Object.create,T=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,re=Object.getOwnPropertyNames,ie=Object.getPrototypeOf,ae=Object.prototype.hasOwnProperty,oe=(e,t)=>(t=Symbol[e])?t:Symbol.for(`Symbol.`+e),se=e=>{throw TypeError(e)},ce=(e,t,n)=>t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,le=(e,t)=>T(e,`name`,{value:t,configurable:!0}),ue=(e,t)=>function(){return t||(0,e[re(e)[0]])((t={exports:{}}).exports,t),t.exports},de=(e,t)=>{for(var n in t)T(e,n,{get:t[n],enumerable:!0})},fe=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of re(t))!ae.call(e,i)&&i!==n&&T(e,i,{get:()=>t[i],enumerable:!(r=ne(t,i))||r.enumerable});return e},pe=(e,t,n)=>(n=e==null?{}:w(ie(e)),fe(t||!e||!e.__esModule?T(n,`default`,{value:e,enumerable:!0}):n,e)),me=e=>[,,,w(e?.[oe(`metadata`)]??null)],he=[`class`,`method`,`getter`,`setter`,`accessor`,`field`,`value`,`get`,`set`],ge=e=>e!==void 0&&typeof e!=`function`?se(`Function expected`):e,_e=(e,t,n,r,i)=>({kind:he[e],name:t,metadata:r,addInitializer:e=>n._?se(`Already initialized`):i.push(ge(e||null))}),ve=(e,t)=>ce(t,oe(`metadata`),e[3]),ye=(e,t,n,r)=>{for(var i=0,a=e[t>>1],o=a&&a.length;i{var o,s,c,l,u,d=t&7,f=!!(t&8),p=!!(t&16),m=d>3?e.length+1:d?f?1:2:0,h=he[d+5],g=d>3&&(e[m-1]=[]),_=e[m]||(e[m]=[]),v=d&&(!p&&!f&&(i=i.prototype),d<5&&(d>3||!p)&&ne(d<4?i:{get[n](){return we(this,a)},set[n](e){return Ee(this,a,e)}},n));d?p&&d<4&&le(a,(d>2?`set `:d>1?`get `:``)+n):le(i,n);for(var y=r.length-1;y>=0;y--)l=_e(d,n,c={},e[3],_),d&&(l.static=f,l.private=p,u=l.access={has:p?e=>Ce(i,e):e=>n in e},d^3&&(u.get=p?e=>(d^1?we:De)(e,i,d^4?a:v.get):e=>e[n]),d>2&&(u.set=p?(e,t)=>Ee(e,i,t,d^4?a:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?p?a:v[h]:d>4?void 0:{get:v.get,set:v.set}:i,l),c._=1,d^4||s===void 0?ge(s)&&(d>4?g.unshift(s):d?p?a=s:v[h]=s:i=s):typeof s!=`object`||!s?se(`Object expected`):(ge(o=s.get)&&(v.get=o),ge(o=s.set)&&(v.set=o),ge(o=s.init)&&g.unshift(o));return d||ve(e,i),v&&T(i,n,v),p?d^4?a:v:i},xe=(e,t,n)=>ce(e,typeof t==`symbol`?t:t+``,n),Se=(e,t,n)=>t.has(e)||se(`Cannot `+n),Ce=(e,t)=>Object(t)===t?e.has(t):se(`Cannot use the "in" operator on this value`),we=(e,t,n)=>(Se(e,t,`read from private field`),n?n.call(e):t.get(e)),Te=(e,t,n)=>t.has(e)?se(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),Ee=(e,t,n,r)=>(Se(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),De=(e,t,n)=>(Se(e,t,`access private method`),n)}));function ke(e,t){e.indexOf(t)===-1&&e.push(t)}function Ae(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function je([...e],t,n){let r=t<0?e.length+t:t;if(r>=0&&r(t===void 0&&(t=e()),t)}function Pe(e,t){return t?1e3/t*e:0}function Fe(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Is(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Ls&&++sFe(t,0,1,e,n);return e=>e===0||e===1?e:Is(i(e),t,r)}function Le(e,t){return Zs(e)?e[Fs(0,e.length,t)]:e}function Re(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),t&&L.value&&L.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}function ze(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=nc.reduce((e,n)=>(e[n]=Re(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=N.useManualTiming?i.timestamp:performance.now();n=!1,N.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,rc),1)),i.timestamp=a,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:nc.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}function We(e){return isNaN(e)&&typeof e==`string`&&(e.match(gc)?.length||0)+(e.match(kc)?.length||0)>0}function Ge(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Fc,e=>(G.test(e)?(r.color.push(a),i.push(jc),n.push(G.parse(e))):e.startsWith(Nc)?(r.var.push(a),i.push(Mc),n.push(e)):(r.number.push(a),i.push(Ac),n.push(parseFloat(e))),++a,Pc)).split(Pc),indexes:r,types:i}}function Ke(e){return Ge(e).values}function qe(e){let{split:t,types:n}=Ge(e),r=t.length;return e=>{let i=``;for(let a=0;a1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Xe({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Ye(s,r,e+1/3),a=Ye(s,r,e),o=Ye(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Ze(e,t){return n=>n>0?t:e}function Qe(e){let t=zc(e);if(Os(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,`color-not-animatable`),!t)return!1;let n=t.parse(e);return t===Oc&&(n=Xe(n)),n}function $e(e,t){return Vc.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function et(e,t){return n=>q(e,t,n)}function tt(e){return typeof e==`number`?et:typeof e==`string`?uc(e)?Ze:G.test(e)?Bc:Hc:Array.isArray(e)?nt:typeof e==`object`?G.test(e)?Bc:rt:Ze}function nt(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>tt(e)(e,t[n]));return e=>{for(let t=0;t{for(let t in r)n[t]=r[t](e);return n}}function it(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i=Wc?1/0:t}function st(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(ot(r),Wc);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:I(i)}}function ct(e,t,n){let r=Math.max(t-Gc,0);return Pe(n-e(r),t-r)}function lt({duration:e=J.duration,bounce:t=J.bounce,velocity:n=J.velocity,mass:r=J.mass}){let i,a;Os(e<=F(J.maxDuration),`Spring duration must be 10 seconds or less`,`spring-duration-limit`);let o=1-t;o=j(J.minDamping,J.maxDamping,o),e=j(J.minDuration,J.maxDuration,I(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=dt(t,o),c=Math.exp(-i);return Kc-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=dt(t**2,o);return(-i(t)+Kc>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-Kc+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=ut(i,a,s);if(e=F(e),isNaN(c))return{stiffness:J.stiffness,damping:J.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}function ut(e,t,n){let r=n;for(let n=1;ne[t]!==void 0)}function pt(e){let t={velocity:J.velocity,stiffness:J.stiffness,damping:J.damping,mass:J.mass,isResolvedFromDuration:!1,...e};if(!ft(e,Yc)&&ft(e,Jc))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*j(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:J.mass,stiffness:i,damping:a}}else{let n=lt({...e,velocity:0});t={...t,...n,mass:J.mass},t.isResolvedFromDuration=!0}return t}function mt(e=J.visualDuration,t=J.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=pt({...n,velocity:-I(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=I(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?J.restSpeed.granular:J.restSpeed.default,i||=v?J.restDelta.granular:J.restDelta.default;let y;if(h<1){let e=dt(_,h);y=t=>o-Math.exp(-h*_*t)*((m+h*_*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(h===1)y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}let b={calculatedDuration:p&&d||null,next:e=>{let t=y(e);if(p)s.done=e>=d;else{let n=e===0?m:0;h<1&&(n=e===0?F(m):ct(y,e,t));let a=Math.abs(n)<=r,c=Math.abs(o-t)<=i;s.done=a&&c}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(ot(b),Wc),t=Uc(t=>b.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return b}function ht({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&ec,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=mt({keyframes:[f.value,m(f.value)],velocity:ct(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function gt(e,t,n){let r=[],i=n||N.mix||at,a=e.length-1;for(let n=0;nt[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=gt(t,r,i),c=s.length,l=n=>{if(o&&n1)for(;rl(j(e[0],e[a-1],t)):l}function vt(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Ns(0,t,r);e.push(q(n,1,i))}}function yt(e){let t=[0];return vt(t,e.length-1),t}function bt(e,t){return e.map(e=>e*t)}function xt(e,t){return e.map(()=>t||Xs).splice(0,e.length-1)}function St({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Zs(r)?r.map(tc):tc(r),a={done:!1,value:t[0]},o=_t(bt(n&&n.length===t.length?n:yt(t),e),t,{ease:Array.isArray(i)?i:xt(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}function Ct(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Zc),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}function wt(e){typeof e.type==`string`&&(e.type=Qc[e.type])}function Tt(e){return new tl(e)}function Et(e){for(let t=1;t{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith(`scale`)?1:0))}),t}function jt(){if(vl){let e=Array.from(gl).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=At(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,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&d.scrollTo(0,e.suspendedScrollY)})}vl=!1,_l=!1,gl.forEach(e=>e.complete(yl)),gl.clear()}function Mt(){gl.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(vl=!0)})}function Nt(){yl=!0,Mt(),jt(),yl=!1}function Pt(e,t,n){xl(t)?e.style.setProperty(t,n):e.style[t]=n}function Ft(e,t){let n=Ne(e);return()=>Sl[t]??n()}function It(e,t){if(e)return typeof e==`function`?wl()?Uc(e,t):`ease-out`:Qs(e)?Tl(e):Array.isArray(e)?e.map(e=>It(e,t)||El.easeOut):El[e]}function Lt(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=It(s,i);Array.isArray(d)&&(u.easing=d),L.value&&oc.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return L.value&&p.finished.finally(()=>{oc.waapi--}),p}function Rt(e){return typeof e==`function`&&`applyToOptions`in e}function zt({type:e,...t}){return Rt(e)&&wl()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}function Bt(e){return e in Ol}function Vt(e){typeof e.ease==`string`&&Bt(e.ease)&&(e.ease=Ol[e.ease])}function Ht(e){e.duration=0,e.type=`keyframes`}function Ut(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:s,transformTemplate:c}=t.owner.getProps();return Ml()&&n&&jl.has(n)&&(n!==`transform`||!c)&&!s&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}function Wt(e){let t=e[0];if(e.length===1)return!0;for(let n=0;nn&&(n=i)}return n}function qt(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}function Jt(e){let t=Rl.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Yt(e,t,n=1){M(n<=zl,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,`max-css-var-depth`);let[r,i]=Jt(e);if(!r)return;let a=d.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return ks(e)?parseFloat(e):e}return uc(i)?Yt(i,t,n+1):i}function Xt(e,{repeat:t,repeatType:n=`loop`},r){let i=e.filter(Gl),a=t&&n!==`loop`&&t%2==1?0:i.length-1;return!a||r===void 0?i[a]:r}function Zt(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Qt(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Zt(n,e)}function $t({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}function en(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function tn(e,t,n,r){if(typeof t==`function`){let[i,a]=en(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=en(r);t=t(n===void 0?e.custom:n,i,a)}return t}function nn(e,t,n){let r=e.getProps();return tn(r,t,n===void 0?r.custom:n,e)}function E(e,t){return new Zl(e,t)}function rn(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,E(n))}function an(e){return Ql(e)?e[e.length-1]||0:e}function on(e,t){let{transitionEnd:n={},transition:r={},...i}=nn(e,t)||{};for(let t in i={...i,...n},i)rn(e,t,an(i[t]))}function sn(e){return!!(X(e)&&e.add)}function cn(e,t){let n=e.getValue(`willChange`);if(sn(n))return n.add(t);if(!n&&N.WillChange){let n=new N.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function ln(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function un(e){return e.props[eu]}function dn({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function fn(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Zt(a,c):c;let l=a?.reduceMotion;r&&(a=r);let u=[],f=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&dn(f,t))continue;let o={delay:n,...Qt(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating&&!Array.isArray(i)&&i===c&&!o.velocity)continue;let p=!1;if(d.MotionHandoffAnimation){let n=un(e);if(n){let e=d.MotionHandoffAnimation(n,t,R);e!==null&&(o.startTime=e,p=!0)}}cn(e,t);let m=l??e.shouldReduceMotion;r.start(Kl(t,r,i,m&&ql.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&u.push(h)}if(o){let t=()=>R.update(()=>{o&&on(e,o)});u.length?Promise.all(u).then(t):t()}return u}function pn(e,t,n={}){let r=nn(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(fn(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return mn(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function mn(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(pn(c,t,{...o,delay:n+(typeof r==`function`?0:r)+qt(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function hn(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>pn(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=pn(e,t,n);else{let i=typeof t==`function`?nn(e,t,n.custom):t;r=Promise.all(fn(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}function gn(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(gc)||[];if(!r)return e;let i=n.replace(r,``),a=su.has(t)?1:0;return r!==n&&(a*=100),t+`(`+a+i+`)`}function _n(e,t){let n=fu(e);return pu.has(n)||(n=K),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function vn(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||As(e)}function yn(e,t,n){let r=0,i;for(;re!=null)}function xn(e){return Me(e)&&`offsetHeight`in e}function Sn(){return Z.x||Z.y}function Cn(e){return e===`x`||e===`y`?Z[e]?null:(Z[e]=!0,()=>{Z[e]=!1}):Z.x||Z.y?null:(Z.x=Z.y=!0,()=>{Z.x=Z.y=!1})}function wn(e,t){let n=bn(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Tn(e){return!(e.pointerType===`touch`||Sn())}function En(e,t,n={}){let[r,i,a]=wn(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,d.removeEventListener(`pointerup`,c),d.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,d.addEventListener(`pointerup`,c,i),d.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!Tn(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}function Dn(e){return Su.has(e.tagName)||e.isContentEditable===!0}function On(e){return Cu.has(e.tagName)||e.isContentEditable===!0}function kn(e){return t=>{t.key===`Enter`&&e(t)}}function An(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}function jn(e){return xu(e)&&!Sn()}function Mn(e,t,n={}){let[r,i,a]=wn(e,n),o=e=>{let r=e.currentTarget;if(!jn(e)||Eu.has(e))return;wu.add(r),n.stopPropagation&&Eu.add(e);let a=t(r,e),o=(e,t)=>{d.removeEventListener(`pointerup`,s),d.removeEventListener(`pointercancel`,c),wu.has(r)&&wu.delete(r),jn(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===d||r===document||n.useGlobalTarget||bu(r,e.target))},c=e=>{o(e,!1)};d.addEventListener(`pointerup`,s,i),d.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?d:e).addEventListener(`pointerdown`,o,i),xn(e)&&(e.addEventListener(`focus`,e=>Tu(e,i)),!Dn(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Nn(e){return Me(e)&&`ownerSVGElement`in e}function Pn({target:e,borderBoxSize:t}){Du.get(e)?.forEach(n=>{n(e,{get width(){return Au(e,t)},get height(){return ju(e,t)}})})}function Fn(e){e.forEach(Pn)}function In(){typeof ResizeObserver>`u`||(Ou=new ResizeObserver(Fn))}function Ln(e,t){Ou||In();let n=bn(e);return n.forEach(e=>{let n=Du.get(e);n||(n=new Set,Du.set(e,n)),n.add(t),Ou?.observe(e)}),()=>{n.forEach(e=>{let n=Du.get(e);n?.delete(t),n?.size||Ou?.unobserve(e)})}}function Rn(){Nu=()=>{let e={get width(){return d.innerWidth},get height(){return d.innerHeight}};Mu.forEach(t=>t(e))},d.addEventListener(`resize`,Nu)}function zn(e){return Mu.add(e),Nu||Rn(),()=>{Mu.delete(e),!Mu.size&&typeof Nu==`function`&&(d.removeEventListener(`resize`,Nu),Nu=void 0)}}function Bn(e,t){return typeof e==`function`?zn(e):Ln(e,t)}function Vn(e,t){let n,r=()=>{let{currentTime:r}=t,i=(r===null?0:r.value)/100;n!==i&&e(i),n=i};return R.preUpdate(r,!0),()=>z(r)}function Hn(e){return Nn(e)&&e.tagName===`svg`}function Un(e,t){if(e===`first`)return 0;{let n=t-1;return e===`last`?n:n/2}}function Wn(e=.1,{startDelay:t=0,from:n=0,ease:r}={}){return(i,a)=>{let o=typeof n==`number`?n:Un(n,a),s=e*Math.abs(o-i);if(r){let t=a*e;s=tc(r)(s/t)*t}return t+s}}function Gn(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=_t(i,a,o);return t?s(r):s}function Kn(e,t,n={}){let r=e.get(),i=null,a=r,o,s=typeof r==`string`?r.replace(/[\d.-]/g,``):void 0,c=()=>{i&&=(i.stop(),null)},l=()=>{c();let t=Jn(e.get()),r=Jn(a);t!==r&&(i=new tl({keyframes:[t,r],velocity:e.getVelocity(),type:`spring`,restDelta:.001,restSpeed:.01,...n,onUpdate:o}))};if(e.attach((t,n)=>{a=t,o=e=>n(qn(e,s)),R.postRender(()=>{l(),e.events.animationStart?.notify(),i?.then(()=>{e.events.animationComplete?.notify()})})},c),X(t)){let n=t.on(`change`,t=>e.set(qn(t,s))),r=e.on(`destroy`,n);return()=>{n(),r()}}return c}function qn(e,t){return t?e+t:e}function Jn(e){return typeof e==`number`?e:parseFloat(e)}function Yn(e,t,n){let r=()=>t.set(n()),i=()=>R.preRender(r,!1,!0),a=e.map(e=>e.on(`change`,i));t.on(`destroy`,()=>{a.forEach(e=>e()),z(r)})}function Xn(e){let t=[];Xl.current=t;let n=e();Xl.current=void 0;let r=E(n);return Yn(t,r,e),r}function Zn(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Qn(e){return typeof e==`string`||Array.isArray(e)}function $n(e){return Zn(e.animate)||Vu.some(t=>Qn(e[t]))}function er(e){return!!($n(e)||e.variants)}function tr(e,t,n){for(let r in t){let i=t[r],a=n[r];if(X(i))e.addValue(r,i);else if(X(a))e.addValue(r,E(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,E(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}function nr(){if(Uu.current=!0,Wu)if(d.matchMedia){let e=d.matchMedia(`(prefers-reduced-motion)`),t=()=>Hu.current=e.matches;e.addEventListener(`change`,t),t()}else Hu.current=!1}function rr(e){Ku=e}function ir(){return Ku}function ar({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function or({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function sr(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function cr(e){return e===void 0||e===1}function lr({scale:e,scaleX:t,scaleY:n}){return!cr(e)||!cr(t)||!cr(n)}function ur(e){return lr(e)||dr(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function dr(e){return fr(e.x)||fr(e.y)}function fr(e){return e&&e!==`0%`}function pr(e,t,n){return n+t*(e-n)}function mr(e,t,n,r,i){return i!==void 0&&(e=pr(e,i,r)),pr(e,n,r)+t}function hr(e,t=0,n=1,r,i){e.min=mr(e.min,t,n,r,i),e.max=mr(e.max,t,n,r,i)}function gr(e,{x:t,y:n}){hr(e.x,t.translate,t.scale,t.originPoint),hr(e.y,n.translate,n.scale,n.originPoint)}function _r(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;sXu&&(t.x=1),t.yXu&&(t.y=1)}function vr(e,t){e.min+=t,e.max+=t}function yr(e,t,n,r,i=.5){hr(e,t,n,q(e.min,e.max,i),r)}function br(e,t){yr(e.x,t.x,t.scaleX,t.scale,t.originX),yr(e.y,t.y,t.scaleY,t.scale,t.originY)}function xr(e,t){return ar(sr(e.getBoundingClientRect(),t))}function Sr(e,t,n){let r=xr(e,n),{scroll:i}=t;return i&&(vr(r.x,i.offset.x),vr(r.y,i.offset.y)),r}function Cr(e,t,n){let r=``,i=!0;for(let a=0;a<$u;a++){let o=dl[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===(o.startsWith(`scale`)?1:0);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=_u(s,ou[o]);if(!c){i=!1;let t=Qu[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function wr(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(fl.has(e)){o=!0;continue}else if(cc(e)){i[e]=n;continue}else{let t=_u(n,ou[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Cr(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function Tr(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Er(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}function Dr(e){for(let t in e)nd[t]=e[t],cc(t)&&(nd[t].isCSSVariable=!0)}function Or(e,{layout:t,layoutId:n}){return fl.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!nd[e]||e===`opacity`)}function kr(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(X(r[t])||i&&X(i[t])||Or(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Ar(e){return d.getComputedStyle(e)}function jr(e,t){return e in t}function Mr(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?ad:od;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}function Nr(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(wr(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of sd)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Mr(d,i,a,o,!1)}function Pr(e,t,n,r){for(let n in Tr(e,t,void 0,r),t.attrs)e.setAttribute(cd.has(n)?n:ln(n),t.attrs[n])}function Fr(e,t,n){let r=kr(e,t,n);for(let n in e)if(X(e[n])||X(t[n])){let t=dl.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}function Ir(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Ir(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;nPromise.all(t.map(({animation:t,options:n})=>hn(e,t,n)))}function zr(e){let t=Rr(e),n=Hr(),r=!0,i=t=>(n,r)=>{let i=nn(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(n){t=n(e)}function o(a){let{props:o}=e,s=Ir(e.parent)||{},c=[],l=new Set,u={},d=1/0;for(let t=0;td&&h,b=!1,x=Array.isArray(m)?m:[m],S=x.reduce(i(f),{});g===!1&&(S={});let{prevResolvedValues:C={}}=p,ee={...C,...S},te=t=>{y=!0,l.has(t)&&(b=!0,l.delete(t)),p.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in ee){let t=S[e],n=C[e];if(u.hasOwnProperty(e))continue;let r=!1;r=Ql(t)&&Ql(n)?!Lr(t,n):t!==n,r?t==null?l.add(e):te(e):t!==void 0&&l.has(e)?te(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(u={...u,...S}),r&&e.blockInitialAnimation&&(y=!1);let w=_&&v;y&&(!w||b)&&c.push(...x.map(t=>{let n={type:f};if(typeof t==`string`&&r&&!w&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=nn(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=qt(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(l.size){let t={};if(typeof o.initial!=`boolean`){let n=nn(e,Array.isArray(o.initial)?o.initial[0]:o.initial);n&&n.transition&&(t.transition=n.transition)}l.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let f=!!c.length;return r&&(o.initial===!1||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(c):Promise.resolve()}function s(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=o(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Hr()}}}function Br(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Lr(t,e):!1}function Vr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Hr(){return{animate:Vr(!0),whileInView:Vr(),whileHover:Vr(),whileTap:Vr(),whileDrag:Vr(),whileFocus:Vr(),exit:Vr()}}function Ur(e,t){e.min=t.min,e.max=t.max}function D(e,t){Ur(e.x,t.x),Ur(e.y,t.y)}function Wr(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function O(e){return e.max-e.min}function Gr(e,t,n){return Math.abs(e-t)<=n}function Kr(e,t,n,r=.5){e.origin=r,e.originPoint=q(t.min,t.max,e.origin),e.scale=O(n)/O(t),e.translate=q(n.min,n.max,e.origin)-e.originPoint,(e.scale>=hd&&e.scale<=gd||isNaN(e.scale))&&(e.scale=1),(e.translate>=vd&&e.translate<=yd||isNaN(e.translate))&&(e.translate=0)}function qr(e,t,n,r){Kr(e.x,t.x,n.x,r?r.originX:void 0),Kr(e.y,t.y,n.y,r?r.originY:void 0)}function Jr(e,t,n){e.min=n.min+t.min,e.max=e.min+O(t)}function Yr(e,t,n){Jr(e.x,t.x,n.x),Jr(e.y,t.y,n.y)}function Xr(e,t,n){e.min=t.min-n.min,e.max=e.min+O(t)}function Zr(e,t,n){Xr(e.x,t.x,n.x),Xr(e.y,t.y,n.y)}function Qr(e,t,n,r,i){return e-=t,e=pr(e,1/n,r),i!==void 0&&(e=pr(e,1/i,r)),e}function $r(e,t=0,n=1,r=.5,i,a=e,o=e){if(U.test(t)&&(t=parseFloat(t),t=q(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=q(a.min,a.max,r);e===a&&(s-=t),e.min=Qr(e.min,t,n,s,i),e.max=Qr(e.max,t,n,s,i)}function ei(e,t,[n,r,i],a,o){$r(e,t[n],t[r],t[i],t.scale,a,o)}function ti(e,t,n,r){ei(e.x,t,bd,n?n.x:void 0,r?r.x:void 0),ei(e.y,t,xd,n?n.y:void 0,r?r.y:void 0)}function ni(e){return e.translate===0&&e.scale===1}function ri(e){return ni(e.x)&&ni(e.y)}function ii(e,t){return e.min===t.min&&e.max===t.max}function ai(e,t){return ii(e.x,t.x)&&ii(e.y,t.y)}function oi(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function si(e,t){return oi(e.x,t.x)&&oi(e.y,t.y)}function ci(e){return O(e.x)/O(e.y)}function li(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function k(e){return[e(`x`),e(`y`)]}function ui(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}function di(e,t,n,r,i,a){i?(e.opacity=q(0,n.opacity??1,Ed(r)),e.opacityExit=q(t.opacity??1,0,Dd(r))):a&&(e.opacity=q(t.opacity??1,n.opacity??1,r));for(let i=0;irt?1:n(Ns(e,t,r))}function mi(e,t,n){let r=X(e)?e:E(e);return r.start(Kl(``,r,t,n)),r.animation}function hi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function gi(e,t){let n=V.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(z(r),e(a-t))};return R.setup(r,!0),()=>z(r)}function _i(e){return X(e)?e.get():e}function vi(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function yi(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=un(t);if(d.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;d.MotionCancelOptimisedAnimation(n,`transform`,R,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&yi(r)}function bi({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Fd++,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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,L.value&&(Md.nodes=Md.calculatedTargetDeltas=Md.calculatedProjections=0),this.nodes.forEach(Ci),this.nodes.forEach(Ai),this.nodes.forEach(ji),this.nodes.forEach(wi),L.addProjectionMetrics&&L.addProjectionMetrics(Md)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,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 e=0;ethis.root.updateBlockedByResize=!1;R.read(()=>{r=d.innerWidth}),e(t,()=>{let e=d.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=gi(i,250),jd.hasAnimatedSinceResize&&(jd.hasAnimatedSinceResize=!1,this.nodes.forEach(ki)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Id,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!si(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Qt(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||ki(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),z(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(Mi),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(d.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&yi(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!O(this.snapshot.measuredBox.x)&&!O(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 e=0;e{let n=t/1e3;Pi(a.x,e.x,n),Pi(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Zr(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ii(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&ai(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=Q(),D(d,this.relativeTarget)),s&&(this.animationValues=i,di(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(z(this.pendingAnimation),void 0),this.pendingAnimation=R.update(()=>{jd.hasAnimatedSinceResize=!0,oc.layout++,this.motionValue||=E(0),this.motionValue.jump(0,!1),this.currentAnimation=mi(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{oc.layout--},onComplete:()=>{oc.layout--,e.onComplete&&e.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 e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Pd),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Bi(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Q();let t=O(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=O(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}D(t,n),br(t,i),qr(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ad),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&vi(`z`,e,r,this.animationValues);for(let t=0;te.currentAnimation?.stop()),this.root.nodes.forEach(Ei),this.root.sharedNodes.clear()}}}function xi(e){e.updateLayout()}function Si(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i===`size`?k(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=O(r);r.min=n[e].min,r.max=r.min+i}):Bi(i,t.layoutBox,n)&&k(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=O(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Lu();qr(o,n,t.layoutBox);let s=Lu();a?qr(s,e.applyTransform(r,!0),t.measuredBox):qr(s,n,t.layoutBox);let c=!ri(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=Q();Zr(o,t.layoutBox,i.layoutBox);let s=Q();Zr(s,n,a.layoutBox),si(o,s)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Ci(e){L.value&&Md.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function wi(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ti(e){e.clearSnapshot()}function Ei(e){e.clearMeasurements()}function Di(e){e.isLayoutDirty=!1}function Oi(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function ki(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ai(e){e.resolveTargetDelta()}function ji(e){e.calcProjection()}function Mi(e){e.resetSkewAndRotation()}function Ni(e){e.removeLeadSnapshot()}function Pi(e,t,n){e.translate=q(t.translate,0,n),e.scale=q(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Fi(e,t,n,r){e.min=q(t.min,n.min,r),e.max=q(t.max,n.max,r)}function Ii(e,t,n,r){Fi(e.x,t.x,n.x,r),Fi(e.y,t.y,n.y,r)}function Li(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}function Ri(e){e.min=Rd(e.min),e.max=Rd(e.max)}function zi(e){Ri(e.x),Ri(e.y)}function Bi(e,t,n){return e===`position`||e===`preserve-aspect`&&!Gr(ci(t),ci(n),.2)}function Vi(e){return e!==e.root&&e.scroll?.wasRoot}function Hi(){let e=new Set,t=new WeakMap,n=()=>e.forEach(Bd);return{add:r=>{e.add(r),t.set(r,r.addEventListener(`willUpdate`,n))},remove:r=>{e.delete(r);let i=t.get(r);i&&(i(),t.delete(r)),n()},dirty:n}}function Ui(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Wi(...e){return t=>{let n=!1,r=e.map(e=>{let r=Ui(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t{let{width:e,height:n,top:r,left:l,right:p,bottom:m}=d.current;if(t||s===!1||!u.current||!e||!n)return;let h=i===`left`?`left: ${l}`:`right: ${p}`,g=a===`bottom`?`bottom: ${m}`:`top: ${r}`;u.current.dataset.motionPopId=c;let _=document.createElement(`style`);f&&(_.nonce=f);let v=o??document.head;return v.appendChild(_),_.sheet&&_.sheet.insertRule(` [data-motion-pop-id="${c}"] { position: absolute !important; width: ${e}px !important; height: ${n}px !important; ${h}px !important; ${g}px !important; } `),()=>{v.contains(_)&&v.removeChild(_)}},[t]),m(Ud,{isPresent:t,childRef:u,sizeRef:d,pop:s,children:s===!1?e:l(e,{ref:p})})}function A(e){let t=r(null);return t.current===null&&(t.current=e()),t.current}function qi(){return new Map}function Ji(e=!0){let t=y(Ds);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=ee();s(()=>{if(e)return i(a)},[e]);let o=v(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function Yi(e){let t=[];return p.forEach(e,e=>{g(e)&&t.push(e)}),t}function Xi(){let e=r(!1);return Es(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Zi(){let e=Xi(),[t,n]=u(0),r=v(()=>{e.current&&n(t+1)},[t]);return[v(()=>R.postRender(r),[r]),t]}function Qi(){if($d)return;let e={};for(let t in Qd)e[t]={isEnabled:e=>Qd[t].some(t=>!!e[t])};rr(e),$d=!0}function $i(){return Qi(),ir()}function ea(e){let t=$i();for(let n in e)t[n]={...t[n],...e[n]};rr(t)}function ta(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||ef.has(e)}function na(e){typeof e==`function`&&(tf=t=>t.startsWith(`on`)?!ta(t):e(t))}function ra(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||(tf(i)||n===!0&&ta(i)||!t&&!ta(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}function ia({children:e,isValidProp:n,...r}){n&&na(n);let i=y($);r={...i,...r},r.transition=Zt(r.transition,i.transition),r.isStatic=A(()=>r.isStatic);let a=t(()=>r,[JSON.stringify(r.transition),r.transformPagePoint,r.reducedMotion,r.skipAnimations]);return m($.Provider,{value:a,children:e})}function aa({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:oa(n,r,i,e),renderState:t()}}function oa(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=_i(a[e]);let{initial:o,animate:s}=e,c=$n(e),l=er(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Zn(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n({initial:n,animate:r}),[la(n),la(r)])}function la(e){return Array.isArray(e)?e.join(` `):e}function ua(e,t,n){for(let r in t)!X(t[r])&&!Or(r,n)&&(e[r]=t[r])}function da({transformTemplate:e},n){return t(()=>{let t=of();return wr(t,n,e),Object.assign({},t.vars,t.style)},[n])}function fa(e,t){let n=e.style||{},r={};return ua(r,n,e),Object.assign(r,da(e,t)),r}function pa(e,t){let n={},r=fa(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function ma(e,n,r,i){let a=t(()=>{let t=sf();return Nr(t,n,ld(i),e.transformTemplate,e.style),{...t.attrs,style:{...t.style}}},[n]);if(e.style){let t={};ua(t,e.style,e),a.style={...t,...a.style}}return a}function ha(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(cf.indexOf(e)>-1||/[A-Z]/u.test(e))}function ga(e,n,r,{latestValues:i},a,o=!1,s){let l=(s??ha(e)?ma:pa)(n,i,a,e),u=ra(n,typeof e==`string`,o),d=e===c?{}:{...u,...l,ref:r},{children:f}=n,p=t(()=>X(f)?f.get():f,[f]);return C(e,{...d,children:p})}function _a(e,t,i){let a=r(i);n(()=>{a.current=i});let o=r(null);return v(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let r=a.current;if(typeof r==`function`)if(n){let e=r(n);typeof e==`function`&&(o.current=e)}else o.current?(o.current(),o.current=null):r(n);else r&&(r.current=n)},[t])}function va(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function ya(e,t,i,a,o,c){let{visualElement:l}=y(nf),u=y(Zd),f=y(Ds),p=y($),m=p.reducedMotion,h=p.skipAnimations,g=r(null),_=r(!1);a||=u.renderer,!g.current&&a&&(g.current=a(e,{visualState:t,parent:l,props:i,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:m,skipAnimations:h,isSVG:c}),_.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));let v=g.current,b=y(af);v&&!v.projection&&o&&(v.type===`html`||v.type===`svg`)&&ba(g.current,i,o,b);let x=r(!1);n(()=>{v&&x.current&&v.update(i,f)});let S=i[eu],C=r(!!S&&!d.MotionHandoffIsComplete?.(S)&&d.MotionHasOptimisedAnimation?.(S));return Es(()=>{_.current=!0,v&&(x.current=!0,d.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),C.current&&v.animationState&&v.animationState.animateChanges())}),s(()=>{v&&(!C.current&&v.animationState&&v.animationState.animateChanges(),C.current&&=(queueMicrotask(()=>{d.MotionHandoffMarkAsComplete?.(S)}),!1),v.enteringChildren=void 0)}),v}function ba(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:xa(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&va(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function xa(e){if(e)return e.options.allowProjection===!1?xa(e.parent):e.projection}function Sa(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&ea(r);let a=n?n===`svg`:ha(e),o=a?uf:lf;function s(n,s){let c,l={...y($),...n,layoutId:Ca(n)},{isStatic:u}=l,d=ca(n),f=o(n,u);if(!u&&Ts){wa(l,r);let t=Ta(l);c=t.MeasureLayout,d.visualElement=ya(e,f,l,i,t.ProjectionNode,a)}return b(nf.Provider,{value:d,children:[c&&d.visualElement?m(c,{visualElement:d.visualElement,...l}):null,ga(e,n,_a(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=_(s);return c[df]=e,c}function Ca({layoutId:e}){let t=y(ws).id;return t&&e!==void 0?t+`-`+e:e}function wa(e,t){y(Zd).strict}function Ta(e){let{drag:t,layout:n}=$i();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Ea(e,t){if(typeof Proxy>`u`)return Sa;let n=new Map,r=(n,r)=>Sa(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Sa(a,void 0,e,t)),n.get(a))})}function Da(e){return{point:{x:e.pageX,y:e.pageY}}}function Oa(e,t,n,r){return hi(e,t,gf(n),r)}function ka(e,t){let n=_f(e.x,t.x),r=_f(e.y,t.y);return Math.sqrt(n**2+r**2)}function Aa(e,t){return t?{point:t(e.point)}:e}function ja(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ma({point:e},t){return{point:e,delta:ja(e,Pa(t)),offset:ja(e,Na(t)),velocity:Fa(t,.1)}}function Na(e){return e[0]}function Pa(e){return e[e.length-1]}function Fa(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Pa(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>F(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>F(t)*2&&(r=e[1]);let a=I(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Ia(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?q(n,e,r.max):Math.min(e,n)),e}function La(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Ra(e,{top:t,left:n,bottom:r,right:i}){return{x:La(e.x,n,i),y:La(e.y,t,r)}}function za(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Ns(t.min,t.max-r,e.min):r>i&&(n=Ns(e.min,e.max-i,t.min)),j(0,1,n)}function Ha(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}function Ua(e=Sf){return e===!1?e=0:e===!0&&(e=Sf),{x:Wa(e,`left`,`right`),y:Wa(e,`top`,`bottom`)}}function Wa(e,t,n){return{min:Ga(e,t),max:Ga(e,n)}}function Ga(e,t){return typeof e==`number`?e:e[t]||0}function Ka(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function qa(e,t,n){let r=Bn(e,Ka(n)),i=Bn(t,Ka(n));return()=>{r(),i()}}function Ja(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Ya(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}function Xa(e){let[t,n]=Ji(),r=y(ws);return m(kf,{...e,layoutGroup:r,switchLayoutGroup:y(af),isPresent:t,safeToRemove:n})}function Za(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&R.postRender(()=>i(t,Da(t)))}function Qa(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&R.postRender(()=>i(t,Da(t)))}function $a({root:e,...t}){let n=e||document;Ff.has(n)||Ff.set(n,{});let r=Ff.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Lf,{root:e,...t})),r[i]}function eo(e,t,n){let r=$a(t);return Pf.set(e,n),r.observe(e),()=>{Pf.delete(e),r.unobserve(e)}}function to({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}function no(e,t,n,r){let i=n[t],{length:a,position:o}=qf[t],s=i.current,c=n.time;i.current=e[`scroll${o}`],i.scrollLength=e[`scroll${a}`]-e[`client${a}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=Ns(0,i.scrollLength,i.current);let l=r-c;i.velocity=l>Wf?0:Pe(i.current-s,l)}function ro(e,t,n){no(e,`x`,t,n),no(e,`y`,t,n),t.time=n}function io(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(xn(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName===`svg`){let e=r.getBoundingClientRect();r=r.parentElement;let t=r.getBoundingClientRect();n.x+=e.left-t.left,n.y+=e.top-t.top}else if(r instanceof SVGGraphicsElement){let{x:e,y:t}=r.getBBox();n.x+=e,n.y+=t;let i=null,a=r.parentNode;for(;!i;)a.tagName===`svg`&&(i=a),a=r.parentNode;r=i}else break;return n}function ao(e,t,n=0){let r=0;if(e in Jf&&(e=Jf[e]),typeof e==`string`){let t=parseFloat(e);e.endsWith(`px`)?r=t:e.endsWith(`%`)?e=t/100:e.endsWith(`vw`)?r=t/100*document.documentElement.clientWidth:e.endsWith(`vh`)?r=t/100*document.documentElement.clientHeight:e=t}return typeof e==`number`&&(r=t*e),n+r}function oo(e,t,n,r){let i=Array.isArray(e)?e:Yf,a=0,o=0;return typeof e==`number`?i=[e,e]:typeof e==`string`&&(e=e.trim(),i=e.includes(` `)?e.split(` `):[e,Jf[e]?e:`0`]),a=ao(i[0],n,r),o=ao(i[1],t),a-o}function so(e){return`getBBox`in e&&e.tagName!==`svg`?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function co(e,t,n){let{offset:r=Xf.All}=n,{target:i=e,axis:a=`y`}=n,o=a===`y`?`height`:`width`,s=i===e?Zf:io(i,e),c=i===e?{width:e.scrollWidth,height:e.scrollHeight}:so(i),l={width:e.clientWidth,height:e.clientHeight};t[a].offset.length=0;let u=!t[a].interpolate,d=r.length;for(let e=0;e{lo(e,r.target,n),ro(e,n,t),(r.offset||r.target)&&co(e,n,r)},notify:()=>t(n)}}function fo(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return P;let i=ep.get(t);i||(i=new Set,ep.set(t,i));let a=uo(t,e,Kf(),r);if(i.add(a),!Qf.has(t)){let e=()=>{for(let e of i)e.measure(B.timestamp);R.preUpdate(n)},n=()=>{for(let e of i)e.notify()},r=()=>R.read(e);Qf.set(t,r);let a=rp(t);d.addEventListener(`resize`,r),t!==document.documentElement&&$f.set(t,Bn(t,r)),a.addEventListener(`scroll`,r),r()}if(n&&!np.has(t)){let e=Qf.get(t),n={width:t.scrollWidth,height:t.scrollHeight};tp.set(t,n);let r=R.read(()=>{let r=t.scrollWidth,i=t.scrollHeight;(n.width!==r||n.height!==i)&&(e(),n.width=r,n.height=i)},!0);np.set(t,r)}let o=Qf.get(t);return R.read(o,!1,!0),()=>{z(o);let e=ep.get(t);if(!e||(e.delete(a),e.size))return;let n=Qf.get(t);Qf.delete(t),n&&(rp(t).removeEventListener(`scroll`,n),$f.get(t)?.(),d.removeEventListener(`resize`,n));let r=np.get(t);r&&(z(r),np.delete(t)),tp.delete(t)}}function po(e){return d!==void 0&&!e&&Cl()}function mo(e){let t={value:0};return{currentTime:t,cancel:fo(n=>{t.value=n[e.axis].progress*100},e)}}function ho({source:e,container:t,...n}){let{axis:r}=n;e&&(t=e);let i=ip.get(t)??new Map;ip.set(t,i);let a=n.target??`self`,o=i.get(a)??{},s=r+(n.offset??[]).join(`,`);return o[s]||(o[s]=po(n.target)?new ScrollTimeline({source:t,axis:r}):mo({container:t,...n})),o[s]}function go(e,t){let n=ho(t);return e.attachTimeline({timeline:t.target?void 0:n,observe:e=>(e.pause(),Vn(t=>{e.time=e.iterationDuration*t},n))})}function _o(e){return e.length===2}function vo(e,t){return _o(e)?fo(n=>{e(n[t.axis].progress,n)},t):Vn(e,ho(t))}function yo(e,{axis:t=`y`,container:n=document.scrollingElement,...r}={}){if(!n)return P;let i={axis:t,container:n,...r};return typeof e==`function`?vo(e,i):go(e,i)}function bo(e,t,n){return{factory:r=>yo(r,{...t,axis:e,container:n}),times:[0,1],keyframes:[0,1],ease:e=>e,duration:1}}function xo({container:e,target:t,...n}={}){let i=A(ap);if(!t&&po()){let t=e?.current||void 0;i.scrollXProgress.accelerate=bo(`x`,n,t),i.scrollYProgress.accelerate=bo(`y`,n,t)}let a=r(null),o=r(!1),c=v(()=>(a.current=yo((e,{x:t,y:n})=>{i.scrollX.set(t.current),i.scrollXProgress.set(t.progress),i.scrollY.set(n.current),i.scrollYProgress.set(n.progress)},{...n,container:e?.current||void 0,target:t?.current||void 0}),()=>{a.current?.()}),[e,t,JSON.stringify(n.offset)]);return Es(()=>{if(o.current=!1,op(e)||op(t)){o.current=!0;return}else return c()},[c]),s(()=>{if(o.current)return M(!op(e),`Container ref is defined but not hydrated`,`use-scroll-ref`),M(!op(t),`Target ref is defined but not hydrated`,`use-scroll-ref`),c()},[c]),i}function So(e){let t=A(()=>E(e)),{isStatic:n}=y($);if(n){let[,n]=u(e);s(()=>t.on(`change`,n),[])}return t}function Co(e,t){let n=So(t()),r=()=>n.set(t());return r(),Es(()=>{let t=()=>R.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),z(r)}}),n}function wo(e){Xl.current=[],e();let t=Co(Xl.current,e);return Xl.current=void 0,t}function To(e,t,n,r){if(typeof e==`function`)return wo(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return Do(e,t,n,r);let i=typeof t==`function`?t:Gn(t,n,r),a=Array.isArray(e)?Eo(e,i):Eo([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;return o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1&&(a.accelerate={...o,times:t,keyframes:n,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),a}function Eo(e,t){let n=A(()=>[]);return Co(e,()=>{n.length=0;let r=e.length;for(let t=0;tObject.keys(n)),a=A(()=>({}));for(let o of i)a[o]=To(e,t,n[o],r);return a}function Oo(e,t={}){let{isStatic:r}=y($),i=()=>X(e)?e.get():e;if(r)return To(i);let a=So(i());return n(()=>Kn(a,e,t),[a,JSON.stringify(t)]),a}function ko(e,t={}){return Oo(e,{type:`spring`,...t})}function Ao(){!Uu.current&&nr();let[e]=u(Hu.current);return e}function jo(){let e=Ao(),{reducedMotion:t}=y($);return t===`never`?!1:t===`always`?!0:e}function Mo(e){e.values.forEach(e=>e.stop())}function No(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&on(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{No(e,t)})})}function Po(e,t){if(Array.isArray(t))return No(e,t);if(typeof t==`string`)return No(e,[t]);on(e,t)}function Fo(){let e=!1,t=new Set,n={subscribe(e){return t.add(e),()=>void t.delete(e)},start(n,r){M(e,`controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.`);let i=[];return t.forEach(e=>{i.push(hn(e,n,{transitionOverride:r}))}),Promise.all(i)},set(n){return M(e,`controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook.`),t.forEach(e=>{Po(e,n)})},stop(){t.forEach(e=>{Mo(e)})},mount(){return e=!0,()=>{e=!1,n.stop()}}};return n}function Io(e){return typeof e==`object`&&!Array.isArray(e)}function Lo(e,t,n,r){return e==null?[]:typeof e==`string`&&Io(t)?bn(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function Ro(e,t,n){return e*(t+1)}function zo(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function Bo(e,t,n){for(let r=0;rt&&i.at{let c=qo(e),{delay:l=0,times:u=yt(c),type:p=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=Rt(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&dp(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=F(b));let r=st(n,e,C);y=r.ease,b=r.duration}b??=a;let ee=d+x;u.length===1&&u[0]===0&&(u[1]=1);let te=u.length-c.length;if(te>0&&vt(u,te),c.length===1&&c.unshift(null),m){M(m{for(let i in e){let a=e[i];a.sort(Uo);let s=[],c=[],l=[];for(let e=0;e{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=E(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:mt}).forEach(({keyframes:e,transition:t},n)=>{r.push(...Qo(n,e,t))}),r}function es(e){return Array.isArray(e)&&e.some(Array.isArray)}function ts(e={}){let{scope:t,reduceMotion:n}=e;function r(e,r,i){let a=[],o;if(es(e))a=$o(e,n===void 0?r:{reduceMotion:n,...r},t);else{let{onComplete:s,...c}=i||{};typeof s==`function`&&(o=s),a=Qo(e,r,n===void 0?c:{reduceMotion:n,...c},t)}let s=new Ll(a);return o&&s.finished.then(o),t&&(t.animations.push(s),s.finished.then(()=>{Ae(t.animations,s)})),s}return r}function ns(){let e=A(Fo);return Es(e.mount,[]),e}function rs(e){return typeof e==`object`&&!!e&&df in e}function is(e){if(rs(e))return e[df]}function as(){return os}function os(e){Vd.current&&(Vd.current.isUpdating=!1,Vd.current.blockUpdate(),e&&e())}function ss(){return v(()=>{let e=Vd.current;e&&e.resetTree()},[])}function cs(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=bn(e),o=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n)if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:mp[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}function ls(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,c]=u(a);return s(()=>{if(!e.current||i&&o)return;let a=()=>(c(!0),i?void 0:()=>c(!1)),s={root:t&&t.current||void 0,margin:n,amount:r};return cs(e.current,a,s)},[t,e,n,i,r]),o}function us(){let[e,t]=Zi(),n=as(),i=r(-1);return s(()=>{R.postRender(()=>R.postRender(()=>{t===i.current&&(N.instantAnimations=!1)}))},[t]),r=>{n(()=>{N.instantAnimations=!0,e(),r(),i.current=t+1})}}function ds(e,t,n,r){if(!r)return e;let i=e.findIndex(e=>e.value===t);if(i===-1)return e;let a=r>0?1:-1,o=e[i+a];if(!o)return e;let s=e[i],c=o.layout,l=q(c.min,c.max,.5);return a===1&&s.layout.max+n>l||a===-1&&s.layout.min+nHf[t]),u=[],d=r(!1),f=r(null);M(!!a,`Reorder.Group must be provided a values prop`,`reorder-values`);let p={axis:n,groupRef:f,registerItem:(e,t)=>{let r=u.findIndex(t=>e===t.value);r===-1?u.push({value:e,layout:t[n]}):u[r].layout=t[n],u.sort(ms)},updateOrder:(e,t,n)=>{if(d.current)return;let r=ds(u,e,t,n);u!==r&&(d.current=!0,i(r.map(ps).filter(e=>a.indexOf(e)!==-1)))}};s(()=>{d.current=!1});let h=e=>{f.current=e,typeof c==`function`?c(e):c&&(c.current=e)},g={overflowAnchor:`none`,...o.style};return m(l,{...o,style:g,ref:h,ignoreStrict:!0,children:m(_p.Provider,{value:p,children:e})})}function ps(e){return e.value}function ms(e,t){return e.layout.min-t.layout.min}function hs(){if(wp){let e=_s(wp,`y`);e&&(Cp.delete(e),Sp.delete(e));let t=_s(wp,`x`);t&&t!==e&&(Cp.delete(t),Sp.delete(t)),wp=null}}function gs(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return xp.has(r)||i}function _s(e,t){let n=e?.parentElement;for(;n;){if(gs(n,t))return n;n=n.parentElement}return null}function vs(e,t,n){let r=t.getBoundingClientRect(),i=n===`x`?Math.max(0,r.left):Math.max(0,r.top),a=n===`x`?Math.min(d.innerWidth,r.right):Math.min(d.innerHeight,r.bottom),o=e-i,s=a-e;if(o0))return;Cp.set(i,o);let e=n===`x`?i.scrollWidth-(c?d.innerWidth:i.clientWidth):i.scrollHeight-(c?d.innerHeight:i.clientHeight);Sp.set(i,e)}if(a>0){let e=Sp.get(i);if((n===`x`?c?d.scrollX:i.scrollLeft:c?d.scrollY:i.scrollTop)>=e)return}n===`x`?c?d.scrollBy({left:a}):i.scrollLeft+=a:c?d.scrollBy({top:a}):i.scrollTop+=a}function bs(e,t=0){return X(e)?e:So(t)}function xs({children:e,style:t={},value:n,as:r=`li`,onDrag:i,onDragEnd:a,layout:o=!0,...s},c){let l=A(()=>Hf[r]),u=y(_p),d={x:bs(t.x),y:bs(t.y)},f=To([d.x,d.y],([e,t])=>e||t?1:`unset`);M(!!u,`Reorder.Item must be a child of Reorder.Group`,`reorder-item-child`);let{axis:p,registerItem:h,updateOrder:g,groupRef:_}=u;return m(l,{drag:p,...s,dragSnapToOrigin:!0,style:{...t,x:d.x,y:d.y,zIndex:f},layout:o,onDrag:(e,t)=>{let{velocity:r,point:a}=t;g(n,d[p].get(),r[p]),ys(_.current,a[p],p,r[p]),i&&i(e,t)},onDragEnd:(e,t)=>{hs(),a&&a(e,t)},onLayoutMeasure:e=>{h(n,e)},ref:c,ignoreStrict:!0,children:e})}var Ss,Cs,ws,Ts,Es,Ds,j,Os,M,N,ks,As,P,js,Ms,Ns,Ps,F,I,Fs,Is,Ls,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc,L,nc,rc,R,z,B,ic,ac,V,oc,sc,cc,lc,uc,dc,fc,pc,mc,hc,gc,_c,vc,yc,bc,xc,Sc,Cc,wc,H,U,W,Tc,Ec,Dc,Oc,G,kc,Ac,jc,Mc,Nc,Pc,Fc,Ic,K,q,Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,J,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c,el,tl,nl,rl,il,al,ol,sl,cl,ll,ul,dl,fl,pl,ml,hl,Y,gl,_l,vl,yl,bl,xl,Sl,Cl,wl,Tl,El,Dl,Ol,kl,Al,jl,Ml,Nl,Pl,Fl,Il,Ll,Rl,zl,Bl,Vl,Hl,Ul,Wl,Gl,Kl,ql,Jl,Yl,Xl,Zl,Ql,X,$l,eu,tu,nu,ru,iu,au,ou,su,cu,lu,uu,du,fu,pu,mu,hu,gu,_u,vu,yu,Z,bu,xu,Su,Cu,wu,Tu,Eu,Du,Ou,ku,Au,ju,Mu,Nu,Pu,Fu,Iu,Lu,Ru,Q,zu,Bu,Vu,Hu,Uu,Wu,Gu,Ku,qu,Ju,Yu,Xu,Zu,Qu,$u,ed,td,nd,rd,id,ad,od,sd,cd,ld,ud,dd,fd,pd,md,hd,gd,_d,vd,yd,bd,xd,Sd,Cd,wd,Td,Ed,Dd,Od,kd,Ad,jd,Md,Nd,Pd,Fd,Id,Ld,Rd,zd,Bd,Vd,Hd,$,Ud,Wd,Gd,Kd,qd,Jd,Yd,Xd,Zd,Qd,$d,ef,tf,nf,rf,af,of,sf,cf,lf,uf,df,ff,pf,mf,hf,gf,_f,vf,yf,bf,xf,Sf,Cf,wf,Tf,Ef,Df,Of,kf,Af,jf,Mf,Nf,Pf,Ff,If,Lf,Rf,zf,Bf,Vf,Hf,Uf,Wf,Gf,Kf,qf,Jf,Yf,Xf,Zf,Qf,$f,ep,tp,np,rp,ip,ap,op,sp,cp,lp,up,dp,fp,pp,mp,hp,gp,_p,vp,yp,bp,xp,Sp,Cp,wp,Tp,Ep=e((()=>{a(),Oe(),te(),x(),Ss=ue({"../../../node_modules/@emotion/memoize/dist/memoize.browser.cjs.js"(e){Object.defineProperty(e,`__esModule`,{value:!0});function t(e){var t={};return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}e.default=t}}),Cs=ue({"../../../node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.cjs.js"(e){Object.defineProperty(e,`__esModule`,{value:!0});function t(e){return e&&typeof e==`object`&&`default`in e?e.default:e}var n=t(Ss()),r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;e.default=n(function(e){return r.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})}}),ws=i({}),Ts=d!==void 0,Es=Ts?f:s,Ds=i(null),j=(e,t,n)=>n>t?t:n{},M=()=>{},N={},ks=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),As=e=>/^0[^.\s]+$/u.test(e),P=e=>e,js=(e,t)=>n=>t(e(n)),Ms=(...e)=>e.reduce(js),Ns=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},Ps=class{constructor(){this.subscriptions=[]}add(e){return ke(this.subscriptions,e),()=>Ae(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;ie*1e3,I=e=>e/1e3,Fs=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},Is=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ls=1e-7,Rs=12,zs=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Bs=e=>t=>1-e(1-t),Vs=Ie(.33,1.53,.69,.99),Hs=Bs(Vs),Us=zs(Hs),Ws=e=>(e*=2)<1?.5*Hs(e):.5*(2-2**(-10*(e-1))),Gs=e=>1-Math.sin(Math.acos(e)),Ks=Bs(Gs),qs=zs(Gs),Js=Ie(.42,0,1,1),Ys=Ie(0,0,.58,1),Xs=Ie(.42,0,.58,1),Zs=e=>Array.isArray(e)&&typeof e[0]!=`number`,Qs=e=>Array.isArray(e)&&typeof e[0]==`number`,$s={linear:P,easeIn:Js,easeInOut:Xs,easeOut:Ys,circIn:Gs,circInOut:qs,circOut:Ks,backIn:Hs,backInOut:Us,backOut:Vs,anticipate:Ws},ec=e=>typeof e==`string`,tc=e=>{if(Qs(e)){M(e.length===4,`Cubic bezier arrays must contain four numerical values.`,`cubic-bezier-length`);let[t,n,r,i]=e;return Ie(t,n,r,i)}else if(ec(e))return M($s[e]!==void 0,`Invalid easing type '${e}'`,`invalid-easing-type`),$s[e];return e},L={value:null,addProjectionMetrics:null},nc=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],rc=40,{schedule:R,cancel:z,state:B,steps:ic}=ze(typeof requestAnimationFrame<`u`?requestAnimationFrame:P,!0),V={now:()=>(ac===void 0&&V.set(B.isProcessing||N.useManualTiming?B.timestamp:performance.now()),ac),set:e=>{ac=e,queueMicrotask(Be)}},oc={layout:0,mainThread:0,waapi:0},sc=e=>t=>typeof t==`string`&&t.startsWith(e),cc=sc(`--`),lc=sc(`var(--`),uc=e=>lc(e)?dc.test(e.split(`/*`)[0].trim()):!1,dc=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,fc={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},pc={...fc,transform:e=>j(0,1,e)},mc={...fc,default:1},hc=e=>Math.round(e*1e5)/1e5,gc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,_c=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,vc=(e,t)=>n=>!!(typeof n==`string`&&_c.test(n)&&n.startsWith(e)||t&&!He(n)&&Object.prototype.hasOwnProperty.call(n,t)),yc=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(gc);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},bc=e=>j(0,255,e),xc={...fc,transform:e=>Math.round(bc(e))},Sc={test:vc(`rgb`,`red`),parse:yc(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+xc.transform(e)+`, `+xc.transform(t)+`, `+xc.transform(n)+`, `+hc(pc.transform(r))+`)`},Cc={test:vc(`#`),parse:Ue,transform:Sc.transform},wc=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),H=wc(`deg`),U=wc(`%`),W=wc(`px`),Tc=wc(`vh`),Ec=wc(`vw`),Dc=(()=>({...U,parse:e=>U.parse(e)/100,transform:e=>U.transform(e*100)}))(),Oc={test:vc(`hsl`,`hue`),parse:yc(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+U.transform(hc(t))+`, `+U.transform(hc(n))+`, `+hc(pc.transform(r))+`)`},G={test:e=>Sc.test(e)||Cc.test(e)||Oc.test(e),parse:e=>Sc.test(e)?Sc.parse(e):Oc.test(e)?Oc.parse(e):Cc.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Sc.transform(e):Oc.transform(e),getAnimatableNone:e=>{let t=G.parse(e);return t.alpha=0,G.transform(t)}},kc=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Ac=`number`,jc=`color`,Mc=`var`,Nc=`var(`,Pc="${}",Fc=/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,Ic=e=>typeof e==`number`?0:G.test(e)?G.getAnimatableNone(e):e,K={test:We,parse:Ke,createTransformer:qe,getAnimatableNone:Je},q=(e,t,n)=>e+(t-e)*n,Lc=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Rc=[Cc,Sc,Oc],zc=e=>Rc.find(t=>t.test(e)),Bc=(e,t)=>{let n=Qe(e),r=Qe(t);if(!n||!r)return Ze(e,t);let i={...n};return e=>(i.red=Lc(n.red,r.red,e),i.green=Lc(n.green,r.green,e),i.blue=Lc(n.blue,r.blue,e),i.alpha=q(n.alpha,r.alpha,e),Sc.transform(i))},Vc=new Set([`none`,`hidden`]),Hc=(e,t)=>{let n=K.createTransformer(t),r=Ge(e),i=Ge(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Vc.has(e)&&!i.values.length||Vc.has(t)&&!r.values.length?$e(e,t):Ms(nt(it(r,i),i.values),n):(Os(!0,`Complex values '${e}' and '${t}' 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`),Ze(e,t))},Uc=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t{let t=st(e,100,mt);return e.ease=t.ease,e.duration=F(t.duration),e.type=`keyframes`,e},Xc=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>R.update(t,e),stop:()=>z(t),now:()=>B.isProcessing?B.timestamp:V.now()}},Zc=e=>e!==null,Qc={decay:ht,inertia:ht,tween:St,keyframes:St,spring:mt},$c=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},el=e=>e/100,tl=class extends $c{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==V.now()&&this.tick(V.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},oc.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;wt(e);let{type:t=St,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||St;s!==St&&typeof o[0]!=`number`&&(this.mixKeyframes=Ms(el,at(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=ot(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=j(0,1,n)*o}let b=_?{done:!1,value:l[0]}:y.next(v);i&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==ht&&(b.value=Ct(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return I(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+I(e)}get time(){return I(this.currentTime)}set time(e){e=F(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(V.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=I(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Xc,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(V.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&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,oc.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}},nl=e=>e*180/Math.PI,rl=e=>al(nl(Math.atan2(e[1],e[0]))),il={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:rl,rotateZ:rl,skewX:e=>nl(Math.atan(e[1])),skewY:e=>nl(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},al=e=>(e%=360,e<0&&(e+=360),e),ol=rl,sl=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),cl=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ll={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:sl,scaleY:cl,scale:e=>(sl(e)+cl(e))/2,rotateX:e=>al(nl(Math.atan2(e[6],e[5]))),rotateY:e=>al(nl(Math.atan2(-e[2],e[0]))),rotateZ:ol,rotate:ol,skewX:e=>nl(Math.atan(e[4])),skewY:e=>nl(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2},ul=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Ot(n,t)},dl=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],fl=(()=>new Set(dl))(),pl=e=>e===fc||e===W,ml=new Set([`x`,`y`,`z`]),hl=dl.filter(e=>!ml.has(e)),Y={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Ot(t,`x`),y:(e,{transform:t})=>Ot(t,`y`)},Y.translateX=Y.x,Y.translateY=Y.y,gl=new Set,_l=!1,vl=!1,yl=!1,bl=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(gl.add(this),_l||(_l=!0,R.read(Mt),R.resolveKeyframes(jt))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Et(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),gl.delete(this)}cancel(){this.state===`scheduled`&&(gl.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},xl=e=>e.startsWith(`--`),Sl={},Cl=Ft(()=>d.ScrollTimeline!==void 0,`scrollTimeline`),wl=Ft(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Tl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,El={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Tl([0,.65,.55,1]),circOut:Tl([.55,0,1,.45]),backIn:Tl([.31,.01,.66,-.59]),backOut:Tl([.33,1.53,.69,.99])},Dl=class extends $c{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,M(typeof e.type!=`string`,`Mini animate() doesn't support "type" as a string.`,`mini-spring`);let c=zt(e);this.animation=Lt(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Ct(r,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(e):Pt(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return I(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+I(e)}get time(){return I(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=F(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Cl()?(this.animation.timeline=e,P):t(this)}},Ol={anticipate:Ws,backInOut:Us,circInOut:qs},kl=10,Al=class extends Dl{constructor(e){Vt(e),wt(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new tl({...a,autoplay:!1}),s=Math.max(kl,V.now()-this.startTime),c=j(0,kl,s-kl);t.setWithVelocity(o.sample(Math.max(0,s-c)).value,o.sample(s).value,c),o.stop()}},jl=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Ml=Ne(()=>Object.hasOwnProperty.call(Element.prototype,`animate`)),Nl=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(K.test(e)||e===`0`)&&!e.startsWith(`url(`)),Pl=40,Fl=class extends $c{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=V.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u};this.keyframeResolver=new(l?.KeyframeResolver||bl)(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=V.now(),Gt(e,i,a,o)||((N.instantAnimations||!s)&&l?.(Ct(e,n,t)),e[0]=e[e.length-1],Ht(n),n.repeat=0);let u={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Pl?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!c&&Ut(u),f=u.motionValue?.owner?.current,p=d?new Al({...u,element:f}):new tl(u);p.finished.then(()=>{this.notifyFinished()}).catch(P),this.pendingTimeline&&=(this.stopTimeline=p.attachTimeline(this.pendingTimeline),void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Nt()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},Il=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;nt.attachTimeline(e));return()=>{t.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 state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return Kt(this.animations,`duration`)}get iterationDuration(){return Kt(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}},Ll=class extends Il{then(e,t){return this.finished.finally(e).then(()=>{})}},Rl=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,zl=4,Bl={type:`spring`,stiffness:500,damping:25,restSpeed:10},Vl=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Hl={type:`keyframes`,duration:.8},Ul={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Wl=(e,{keyframes:t})=>t.length>2?Hl:fl.has(e)?e.startsWith(`scale`)?Vl(t[1]):Bl:Ul,Gl=e=>e!==null,Kl=(e,t,n,r={},i,a)=>o=>{let s=Qt(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=F(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};$t(s)||Object.assign(u,Wl(e,u)),u.duration&&=F(u.duration),u.repeatDelay&&=F(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Ht(u),u.delay===0&&(d=!0)),(N.instantAnimations||N.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,Ht(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Xt(u.keyframes,s);if(e!==void 0){R.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new tl(u):new Fl(u)},ql=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...dl]),Jl=30,Yl=e=>!isNaN(parseFloat(e)),Xl={current:void 0},Zl=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=V.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=V.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Yl(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new Ps);let n=this.events[e].add(t);return e===`change`?()=>{n(),R.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Xl.current&&Xl.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=V.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Jl)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Jl);return Pe(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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()}},Ql=e=>Array.isArray(e),X=e=>!!(e&&e.getVelocity),$l=`framerAppearId`,eu=`data-`+ln($l),tu=e=>t=>t.test(e),nu=[fc,W,U,H,Ec,Tc,{test:e=>e===`auto`,parse:e=>e}],ru=e=>nu.find(tu(e)),iu={rotate:H,rotateX:H,rotateY:H,rotateZ:H,scale:mc,scaleX:mc,scaleY:mc,scaleZ:mc,skew:H,skewX:H,skewY:H,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:pc,originX:Dc,originY:Dc,originZ:W},au={...fc,transform:Math.round},ou={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,top:W,right:W,bottom:W,left:W,inset:W,insetBlock:W,insetBlockStart:W,insetBlockEnd:W,insetInline:W,insetInlineStart:W,insetInlineEnd:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,paddingBlock:W,paddingBlockStart:W,paddingBlockEnd:W,paddingInline:W,paddingInlineStart:W,paddingInlineEnd:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,marginBlock:W,marginBlockStart:W,marginBlockEnd:W,marginInline:W,marginInlineStart:W,marginInlineEnd:W,fontSize:W,backgroundPositionX:W,backgroundPositionY:W,...iu,zIndex:au,fillOpacity:pc,strokeOpacity:pc,numOctaves:au},su=new Set([`brightness`,`contrast`,`saturate`,`opacity`]),cu=/\b([a-z-]*)\(.*?\)/gu,lu={...K,getAnimatableNone:e=>{let t=e.match(cu);return t?t.map(gn).join(` `):e}},uu={...K,getAnimatableNone:e=>{let t=K.parse(e);return K.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},du={...ou,color:G,backgroundColor:G,outlineColor:G,fill:G,stroke:G,borderColor:G,borderTopColor:G,borderRightColor:G,borderBottomColor:G,borderLeftColor:G,filter:lu,WebkitFilter:lu,mask:uu,WebkitMask:uu},fu=e=>du[e],pu=new Set([lu,uu]),mu=new Set([`auto`,`none`,`0`]),hu=class extends bl{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},gu=new Set([`opacity`,`clipPath`,`filter`,`transform`]),_u=(e,t)=>t&&typeof e==`number`?t.transform(e):e,{schedule:vu,cancel:yu}=ze(queueMicrotask,!1),Z={x:!1,y:!1},bu=(e,t)=>t?e===t?!0:bu(e,t.parentElement):!1,xu=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Su=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]),Cu=new Set([`INPUT`,`SELECT`,`TEXTAREA`]),wu=new WeakSet,Tu=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=kn(()=>{if(wu.has(n))return;An(n,`down`);let e=kn(()=>{An(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>An(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)},Eu=new WeakSet,Du=new WeakMap,ku=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Nn(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Au=ku(`inline`,`width`,`offsetWidth`),ju=ku(`block`,`height`,`offsetHeight`),Mu=new Set,Pu=[...nu,G,K],Fu=e=>Pu.find(tu(e)),Iu=()=>({translate:0,scale:1,origin:0,originPoint:0}),Lu=()=>({x:Iu(),y:Iu()}),Ru=()=>({min:0,max:0}),Q=()=>({x:Ru(),y:Ru()}),zu=new WeakMap,Bu=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Vu=[`initial`,...Bu],Hu={current:null},Uu={current:!1},Wu=d!==void 0,Gu=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Ku={},qu=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=bl,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 e=V.now();this.renderScheduledAtthis.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Uu.current||nr(),this.shouldReduceMotion=Hu.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),z(this.notifyUpdate),z(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(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}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&gu.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Dl({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:F(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=fl.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&R.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;d!==void 0&&d.MotionCheckAppearSync&&(i=d.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Ku){let t=Ku[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(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):Q()}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 n===void 0&&t!==void 0&&(n=E(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(ks(n)||As(n))?n=parseFloat(n):!Fu(n)&&K.test(t)&&(n=_n(e,t)),this.setBaseTarget(e,X(n)?n.get():n)),X(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=tn(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!X(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Ps),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){vu.render(this.render)}},Ju=class extends qu{constructor(){super(...arguments),this.KeyframeResolver=hu}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;X(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Yu=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},Xu=.999999999999,Zu=1.0000000000001,Qu={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},$u=dl.length,ed={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(W.test(e))e=parseFloat(e);else return e;return`${Er(e,t.target.x)}% ${Er(e,t.target.y)}%`}},td={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=K.parse(e);if(i.length>5)return r;let a=K.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=q(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},nd={borderRadius:{...ed,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:ed,borderTopRightRadius:ed,borderBottomLeftRadius:ed,borderBottomRightRadius:ed,boxShadow:td},rd=class extends Ju{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Tr}readValueFromInstance(e,t){if(fl.has(t))return this.projection?.isProjecting?Dt(t):ul(e,t);{let n=Ar(e),r=(cc(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return xr(e,t)}build(e,t,n){wr(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return kr(e,t,n)}},id=class extends qu{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(jr(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return Q()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},ad={offset:`stroke-dashoffset`,array:`stroke-dasharray`},od={offset:`strokeDashoffset`,array:`strokeDasharray`},sd=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`],cd=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`]),ld=e=>typeof e==`string`&&e.toLowerCase()===`svg`,ud=class extends Ju{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Q}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(fl.has(t)){let e=fu(t);return e&&e.default||0}return t=cd.has(t)?t:ln(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Fr(e,t,n)}build(e,t,n){Nr(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Pr(e,t,n,r)}mount(e){this.isSVGTag=ld(e.tagName),super.mount(e)}},dd=Vu.length,fd=[...Bu].reverse(),pd=Bu.length,md=1e-4,hd=1-md,gd=1+md,_d=.01,vd=0-_d,yd=0+_d,bd=[`x`,`scaleX`,`originX`],xd=[`y`,`scaleY`,`originY`],Sd=[`TopLeft`,`TopRight`,`BottomLeft`,`BottomRight`],Cd=Sd.length,wd=e=>typeof e==`string`?parseFloat(e):e,Td=e=>typeof e==`number`||W.test(e),Ed=pi(0,.5,Ks),Dd=pi(.5,.95,P),Od=(e,t)=>e.depth-t.depth,kd=class{constructor(){this.children=[],this.isDirty=!1}add(e){ke(this.children,e),this.isDirty=!0}remove(e){Ae(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Od),this.isDirty=!1,this.children.forEach(e)}},Ad=class{constructor(){this.members=[]}add(e){ke(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&r.isConnected===!1&&n.isPresent!==!1&&!n.snapshot&&Ae(this.members,n)}e.scheduleRender()}remove(e){if(Ae(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t=this.members.findIndex(t=>e===t);if(t===0)return!1;let n;for(let e=t;e>=0;e--){let t=this.members[e],r=t.instance;if(t.isPresent!==!1&&(!r||r.isConnected!==!1)){n=t;break}}return n?(this.promote(n),!0):!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender();let r=n.options.layoutDependency,i=e.options.layoutDependency;if(!(r!==void 0&&i!==void 0&&r===i)){let r=n.instance;r&&r.isConnected===!1&&!n.snapshot||(e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0))}let{crossfade:a}=e.options;a===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}},jd={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Md={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Nd=[``,`X`,`Y`,`Z`],Pd=1e3,Fd=0,Id={duration:.45,ease:[.4,0,.1,1]},Ld=e=>o!==void 0&&o.userAgent&&o.userAgent.toLowerCase().includes(e),Rd=Ld(`applewebkit/`)&&!Ld(`chrome/`)?Math.round:P,zd=bi({attachResizeListener:(e,t)=>hi(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Bd=e=>!e.isLayoutDirty&&e.willUpdate(!1),Vd={current:void 0},Hd=bi({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Vd.current){let e=new zd({});e.mount(d),e.setOptions({layoutScroll:!0}),Vd.current=e}return Vd.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>d.getComputedStyle(e).position===`fixed`}),nc.reduce((e,t)=>(e[t]=e=>z(e),e),{}),$=i({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`}),Ud=class extends h{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=xn(e)&&e.offsetWidth||0,r=xn(e)&&e.offsetHeight||0,i=this.props.sizeRef.current;i.height=t.offsetHeight||0,i.width=t.offsetWidth||0,i.top=t.offsetTop,i.left=t.offsetLeft,i.right=n-i.width-i.left,i.bottom=r-i.height-i.top}return null}componentDidUpdate(){}render(){return this.props.children}},Wd=({children:e,initial:n,isPresent:r,onExitComplete:i,custom:a,presenceAffectsLayout:o,mode:c,anchorX:l,anchorY:u,root:d})=>{let f=A(qi),p=ee(),h=!0,g=t(()=>(h=!1,{id:p,initial:n,isPresent:r,custom:a,onExitComplete:e=>{f.set(e,!0);for(let e of f.values())if(!e)return;i&&i()},register:e=>(f.set(e,!1),()=>f.delete(e))}),[r,f,i]);return o&&h&&(g={...g}),t(()=>{f.forEach((e,t)=>f.set(t,!1))},[r]),s(()=>{!r&&!f.size&&i&&i()},[r]),e=m(Ki,{pop:c===`popLayout`,isPresent:r,anchorX:l,anchorY:u,root:d,children:e}),m(Ds.Provider,{value:g,children:e})},Gd=e=>e.key||``,Kd=({children:e,custom:n,initial:i=!0,onExitComplete:a,presenceAffectsLayout:o=!0,mode:s=`sync`,propagate:c=!1,anchorX:l=`left`,anchorY:d=`top`,root:f})=>{let[p,h]=Ji(c),g=t(()=>Yi(e),[e]),_=c&&!p?[]:g.map(Gd),v=r(!0),b=r(g),x=A(()=>new Map),C=r(new Set),[ee,te]=u(g),[w,T]=u(g);Es(()=>{v.current=!1,b.current=g;for(let e=0;e{let t=Gd(e),r=c&&!p?!1:g===w||_.includes(t);return m(Wd,{isPresent:r,initial:!v.current||i?void 0:!1,custom:n,presenceAffectsLayout:o,mode:s,root:f,onExitComplete:r?void 0:()=>{if(C.current.has(t))return;if(C.current.add(t),x.has(t))x.set(t,!0);else return;let e=!0;x.forEach(t=>{t||(e=!1)}),e&&(re?.(),T(b.current),c&&h?.(),a&&a())},anchorX:l,anchorY:d,children:e},t)})})},qd=i(null),Jd=e=>e===!0,Yd=e=>Jd(e===!0)||e===`id`,Xd=({children:e,id:n,inherit:i=!0})=>{let a=y(ws),o=y(qd),[s,c]=Zi(),l=r(null),u=a.id||o;l.current===null&&(Yd(i)&&u&&(n=n?u+`-`+n:u),l.current={id:n,group:Jd(i)&&a.group||Hi()});let d=t(()=>({...l.current,forceRender:s}),[c]);return m(ws.Provider,{value:d,children:e})},Zd=i({strict:!1}),Qd={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`]},$d=!1,ef=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.propagate.ignoreStrict.viewport`.split(`.`)),tf=e=>!ta(e);try{na(Cs().default)}catch{}nf=i({}),rf=e=>(t,n)=>{let r=y(nf),i=y(Ds),a=()=>aa(e,t,r,i);return n?a():A(a)},af=i({}),of=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),sf=()=>({...of(),attrs:{}}),cf=[`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`],lf=rf({scrapeMotionValuesFromProps:kr,createRenderState:of}),uf=rf({scrapeMotionValuesFromProps:Fr,createRenderState:sf}),df=Symbol.for(`motionComponentSymbol`),ff=class extends Yu{constructor(e){super(e),e.animationState||=zr(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Zn(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(){this.node.animationState.reset(),this.unmountControls?.()}},pf=0,mf=class extends Yu{constructor(){super(...arguments),this.id=pf++}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 r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}},hf={animation:{Feature:ff},exit:{Feature:mf}},gf=e=>t=>xu(t)&&e(t,Da(t)),_f=(e,t)=>Math.abs(e-t),vf=(e,t)=>t.isSVG??ha(e)?new ud(t):new rd(t,{allowProjection:e!==c}),yf=({current:e})=>e?e.ownerDocument.defaultView:null,bf=new Set([`auto`,`scroll`]),xf=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=d,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=d,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(d)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=Ma(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=ka(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=B;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Aa(t,this.transformPagePoint),R.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Ma(e.type===`pointercancel`?this.lastMoveEventInfo:Aa(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!xu(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||d;let s=Aa(Da(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=B;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Ma(s,this.history)),this.removeListeners=Ms(Oa(this.contextWindow,`pointermove`,this.handlePointerMove),Oa(this.contextWindow,`pointerup`,this.handlePointerUp),Oa(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(bf.has(e.overflowX)||bf.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(d,{x:d.scrollX,y:d.scrollY}),d.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),d.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{d.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),d.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===d,r=n?{x:d.scrollX,y:d.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),R.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),z(this.updatePoint)}},Sf=.35,Cf=new WeakMap,wf=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Q(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(Da(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Cn(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),k(e=>{let t=this.getAxisMotionValue(e).get()||0;if(U.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=O(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&R.update(()=>i(e,t),!1,!0),cn(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Ya(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&R.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new xf(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:yf(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&R.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!Ja(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Ia(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&va(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=Ra(n.layoutBox,e):this.constraints=!1,this.elastic=Ua(t),r!==this.constraints&&!va(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&k(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Ha(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!va(e))return!1;let n=e.current;M(n!==null,"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 i=Sr(n,r.root,this.visualElement.getTransformPagePoint()),a=Ba(r.layout.layoutBox,i);if(t){let e=t(or(a));this.hasMutatedConstraints=!!e,e&&(a=ar(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=k(o=>{if(!Ja(o,t,this.currentDirection))return;let c=s&&s[o]||{};a&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return cn(this.visualElement,e),n.start(Kl(e,n,0,t,this.visualElement,!1))}stopAnimation(){k(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){k(t=>{let{drag:n}=this.getProps();if(!Ja(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-q(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!va(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};k(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Va({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),k(t=>{if(!Ja(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(q(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Cf.set(this.visualElement,this);let e=this.visualElement.current,t=Oa(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&On(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();va(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=qa(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),R.read(r);let o=hi(d,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(k(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Sf,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}},Tf=class extends Yu{constructor(e){super(e),this.removeGroupControls=P,this.removeListeners=P,this.controls=new wf(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||P}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},Ef=e=>(t,n)=>{e&&R.update(()=>e(t,n),!1,!0)},Df=class extends Yu{constructor(){super(...arguments),this.removePointerDownListener=P}onPointerDown(e){this.session=new xf(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:yf(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Ef(e),onStart:Ef(t),onMove:Ef(n),onEnd:(e,t)=>{delete this.session,r&&R.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Oa(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Of=!1,kf=class extends h{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Of&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),jd.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),Of=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||R.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),vu.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Of=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}},Af={pan:{Feature:Df},drag:{Feature:Tf,ProjectionNode:Hd,MeasureLayout:Xa}},jf=class extends Yu{mount(){let{current:e}=this.node;e&&(this.unmount=En(e,(e,t)=>(Za(this.node,t,`Start`),e=>Za(this.node,e,`End`))))}unmount(){}},Mf=class extends Yu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{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=Ms(hi(this.node.current,`focus`,()=>this.onFocus()),hi(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}},Nf=class extends Yu{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Mn(e,(e,t)=>(Qa(this.node,t,`Start`),(e,{success:t})=>Qa(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Pf=new WeakMap,Ff=new WeakMap,If=e=>{let t=Pf.get(e.target);t&&t(e)},Lf=e=>{e.forEach(If)},Rf={some:0,all:1},zf=class extends Yu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Rf[r]};return eo(this.node.current,a,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)})}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(to(e,t))&&this.startObserver()}unmount(){}},Bf={inView:{Feature:zf},tap:{Feature:Nf},focus:{Feature:Mf},hover:{Feature:jf}},Vf={layout:{ProjectionNode:Hd,MeasureLayout:Xa}},Hf=Ea({...hf,...Bf,...Af,...Vf},vf),Uf={renderer:vf,...hf,...Bf},{...Uf,...Af,...Vf},{...hf},Wf=50,Gf=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Kf=()=>({time:0,x:Gf(),y:Gf()}),qf={x:{length:`Width`,position:`Left`},y:{length:`Height`,position:`Top`}},Jf={start:0,center:.5,end:1},Yf=[0,0],Xf={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Zf={x:0,y:0},Qf=new WeakMap,$f=new WeakMap,ep=new WeakMap,tp=new WeakMap,np=new WeakMap,rp=e=>e===document.scrollingElement?d:e,ip=new Map,ap=()=>({scrollX:E(0),scrollY:E(0),scrollXProgress:E(0),scrollYProgress:E(0)}),op=e=>e?!e.current:!1,sp=class extends Zl{constructor(){super(...arguments),this.isEnabled=!1}add(e){(fl.has(e)||gu.has(e))&&(this.isEnabled=!0,this.update())}update(){this.set(this.isEnabled?`transform`:`auto`)}},cp=`easeInOut`,lp=20,up=e=>typeof e==`number`,dp=e=>e.every(up),fp=ts(),pp=ns,mp={some:0,all:1},hp=()=>({}),rf({scrapeMotionValuesFromProps:hp,createRenderState:hp}),gp={},de(gp,{Group:()=>vp,Item:()=>Tp}),_p=i(null),vp=_(fs),yp=50,bp=25,xp=new Set([`auto`,`scroll`]),Sp=new WeakMap,Cp=new WeakMap,wp=null,Tp=_(xs)})),Dp=e((()=>{Ep()}));export{xe as $,Xn as A,ss as B,E as C,mt as D,yo as E,us as F,ue as G,ko as H,So as I,me as J,be as K,Ji as L,pp as M,ls as N,Wn as O,as as P,Ee as Q,Ao as R,Hf as S,_i as T,To as U,xo as V,zu as W,we as X,Te as Y,De as Z,Ep as _,$ as a,X as b,Ds as c,Dr as d,ye as et,fp as f,cs as g,R as h,ia as i,is as j,Gn as k,af as l,z as m,Kd as n,Oe as nt,N as o,Tt as p,ve as q,Xd as r,Zl as s,Dp as t,pe as tt,sp as u,_t as v,eu as w,ta as x,rs as y,jo as z}; //# sourceMappingURL=motion.Dwr-SKqy.mjs.map