import{r as e,t}from"./rolldown-runtime.Dh6celcD.mjs";import{A as n,B as r,C as i,E as a,F as o,I as s,L as c,M as l,N as u,P as d,R as f,T as p,V as m,_ as h,b as g,c as _,d as v,f as y,j as b,l as x,p as S,s as C,u as w,w as T,z as E}from"./react.DOKkFWbx.mjs";var ee,D,te,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=t((()=>{ee=Object.create,D=Object.defineProperty,te=Object.getOwnPropertyDescriptor,ne=Object.getOwnPropertyNames,re=Object.getPrototypeOf,ie=Object.prototype.hasOwnProperty,ae=(e,t)=>(t=Symbol[e])?t:Symbol.for(`Symbol.`+e),oe=e=>{throw TypeError(e)},se=(e,t,n)=>t in e?D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ce=(e,t)=>D(e,`name`,{value:t,configurable:!0}),le=(t=>e===void 0?typeof Proxy<`u`?new Proxy(t,{get:(t,n)=>(e===void 0?t:e)[n]}):t:e)(function(t){if(e!==void 0)return e.apply(this,arguments);throw Error(`Dynamic require of "`+t+`" is not supported`)}),ue=(e,t)=>function(){try{return t||(0,e[ne(e)[0]])((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}},de=(e,t)=>{for(var n in t)D(e,n,{get:t[n],enumerable:!0})},fe=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of ne(t))!ie.call(e,i)&&i!==n&&D(e,i,{get:()=>t[i],enumerable:!(r=te(t,i))||r.enumerable});return e},pe=(e,t,n)=>(n=e==null?{}:ee(re(e)),fe(t||!e||!e.__esModule?D(n,`default`,{value:e,enumerable:!0}):n,e)),me=e=>[,,,ee(e?.[ae(`metadata`)]??null)],he=[`class`,`method`,`getter`,`setter`,`accessor`,`field`,`value`,`get`,`set`],ge=e=>e!==void 0&&typeof e!=`function`?oe(`Function expected`):e,_e=(e,t,n,r,i)=>({kind:he[e],name:t,metadata:r,addInitializer:e=>n._?oe(`Already initialized`):i.push(ge(e||null))}),ve=(e,t)=>se(t,ae(`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)&&te(d<4?i:{get[n](){return we(this,a)},set[n](e){return Te(this,a,e)}},n));d?p&&d<4&&ce(a,(d>2?`set `:d>1?`get `:``)+n):ce(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:Ee)(e,i,d^4?a:v.get):e=>e[n]),d>2&&(u.set=p?(e,t)=>Te(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?oe(`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&&D(i,n,v),p?d^4?a:v:i},xe=(e,t,n)=>se(e,typeof t==`symbol`?t:t+``,n),Se=(e,t,n)=>t.has(e)||oe(`Cannot `+n),Ce=(e,t)=>Object(t)===t?e.has(t):oe(`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,r)=>(Se(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),Ee=(e,t,n)=>(Se(e,t,`access private method`),n)}));function Oe(e,t){e.indexOf(t)===-1&&e.push(t)}function ke(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Ae([...e],t,n){let r=t<0?e.length+t:t;if(r>=0&&r(t===void 0&&(t=e()),t)}function Me(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Bs(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Vs&&++sMe(t,0,1,e,n);return e=>e===0||e===1?e:Bs(i(e),t,r)}function Pe(e,t){return tc(e)?e[zs(0,e.length,t)]:e}function Fe(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}function Ie(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=oc.reduce((e,t)=>(e[t]=Fe(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=F.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,sc),1)),i.timestamp=o,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:oc.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 Ve(e){return isNaN(e)&&typeof e==`string`&&(e.match(yc)?.length||0)+(e.match(Mc)?.length||0)>0}function He(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Rc,e=>(K.test(e)?(r.color.push(a),i.push(Pc),n.push(K.parse(e))):e.startsWith(Ic)?(r.var.push(a),i.push(Fc),n.push(e)):(r.number.push(a),i.push(Nc),n.push(parseFloat(e))),++a,Lc)).split(Lc),indexes:r,types:i}}function Ue(e){return He(e).values}function We({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;aBc(e,t.split[n])))}function qe(e,t,n){return n<0&&(n+=1),n>1&&--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 Je({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=qe(s,r,e+1/3),a=qe(s,r,e),o=qe(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Ye(e,t){return n=>n>0?t:e}function Xe(e){let t=Uc(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===jc&&(n=Je(n)),n}function Ze(e,t){return Gc.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Qe(e,t){return n=>J(e,t,n)}function $e(e){return typeof e==`number`?Qe:typeof e==`string`?pc(e)?Ye:K.test(e)?Wc:Kc:Array.isArray(e)?et:typeof e==`object`?K.test(e)?Wc:tt:Ye}function et(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>$e(e)(e,t[n]));return e=>{for(let t=0;t{for(let t in r)n[t]=r[t](e);return n}}function nt(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i=2e4?1/0:t}function at(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(it(r),Jc);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:R(i)}}function ot(e,t){return e*Math.sqrt(1-t*t)}function st(e,t,n){let r=n;for(let n=1;n{let r=t*o,i=r*e,a=r-n,s=ot(t,o),c=Math.exp(-i);return Xc-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=ot(t**2,o);return(-i(t)+Xc>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-Xc+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=st(i,a,s);if(e=L(e),isNaN(c))return{stiffness:Y.stiffness,damping:Y.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}function lt(e,t){return t.some(t=>e[t]!==void 0)}function ut(e){let t={velocity:Y.velocity,stiffness:Y.stiffness,damping:Y.damping,mass:Y.mass,isResolvedFromDuration:!1,...e};if(!lt(e,Qc)&<(e,Zc))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*P(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Y.mass,stiffness:i,damping:a}}else{let n=ct({...e,velocity:0});t={...t,...n,mass:Y.mass},t.isResolvedFromDuration=!0}return t}function dt(e=Y.visualDuration,t=Y.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}=ut({...n,velocity:-R(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=R(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?Y.restSpeed.granular:Y.restSpeed.default,i||=v?Y.restDelta.granular:Y.restDelta.default;let y,b,x,S,C,w;if(h<1)x=ot(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}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 t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>L(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=L(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=L(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(it(T),Jc),t=qc(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}function ft(e,t,n){let r=Math.max(t-$c,0);return Rs(n-e(r),t-r)}function pt({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=dt({keyframes:[f.value,m(f.value)],velocity:ft(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 mt(e,t,n){let r=[],i=n||F.mix||rt,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=mt(t,r,i),c=s.length,l=n=>{if(o&&n1)for(;rl(P(e[0],e[a-1],t)):l}function gt(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Is(0,t,r);e.push(J(n,1,i))}}function _t(e){let t=[0];return gt(t,e.length-1),t}function vt(e,t){return e.map(e=>e*t)}function yt(e,t){return e.map(()=>t||ec).splice(0,e.length-1)}function bt({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=tc(r)?r.map(ac):ac(r),a={done:!1,value:t[0]},o=ht(vt(n&&n.length===t.length?n:_t(t),e),t,{ease:Array.isArray(i)?i:yt(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}function xt(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(el),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}function St(e){typeof e.type==`string`&&(e.type=nl[e.type])}function Ct(e){return new al(e)}function wt(e){for(let t=1;t{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}function kt(){if(Cl){let e=Array.from(xl).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Ot(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&&m.scrollTo(0,e.suspendedScrollY)})}Cl=!1,Sl=!1,xl.forEach(e=>e.complete(wl)),xl.clear()}function At(){xl.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Cl=!0)})}function jt(){wl=!0,At(),kt(),wl=!1}function Mt(e,t,n){El(t)?e.style.setProperty(t,n):e.style[t]=n}function Nt(e,t){let n=je(e);return()=>Dl[t]??n()}function Pt(e,t){if(e)return typeof e==`function`?Al()?qc(e,t):`ease-out`:nc(e)?jl(e):Array.isArray(e)?e.map(e=>Pt(e,t)||Ml.easeOut):Ml[e]}function Ft(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=Pt(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function It(e){return typeof e==`function`&&`applyToOptions`in e}function Lt({type:e,...t}){return It(e)&&Al()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}function Rt(e){return e in Pl}function zt(e){typeof e.ease==`string`&&Rt(e.ease)&&(e.ease=Pl[e.ease])}function Bt(e){e.duration=0,e.type=`keyframes`}function Vt(e){for(let t=0;tn&&(n=i)}return n}function Kt(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 O(e,t){return new Yl(e,t)}function qt(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Jt(e,t){let n=e?.[t]??e?.default??e;return n===e?n:qt(n,e)}function Yt(e){for(let t in e)if(!tu.has(t))return!0;return!1}function Xt(e){let t=ru.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Zt(e,t,n=1){`${e}`;let[r,i]=Xt(e);if(!r)return;let a=m.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Ms(e)?parseFloat(e):e}return pc(i)?Zt(i,t,n+1):i}function Qt(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function $t(e,t,n,r){if(typeof t==`function`){let[i,a]=Qt(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]=Qt(r);t=t(n===void 0?e.custom:n,i,a)}return t}function en(e,t,n){let r=e.getProps();return $t(r,t,n===void 0?r.custom:n,e)}function tn(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,O(n))}function nn(e){return au(e)?e[e.length-1]||0:e}function rn(e,t){let{transitionEnd:n={},transition:r={},...i}=en(e,t)||{};i={...i,...n};for(let t in i)tn(e,t,nn(i[t]))}function an(e){return!!(X(e)&&e.add)}function on(e,t){let n=e.getValue(`willChange`);if(an(n))return n.add(t);if(!n&&F.WillChange){let n=new F.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function sn(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function cn(e){return e.props[su]}function ln({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function un(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?qt(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&ln(f,t))continue;let o={delay:n,...Jt(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){z.update(()=>r.set(i));continue}let p=!1;if(m.MotionHandoffAnimation){let n=cn(e);if(n){let e=m.MotionHandoffAnimation(n,t,z);e!==null&&(o.startTime=e,p=!0)}}on(e,t);let h=l??e.shouldReduceMotion;r.start(nu(t,r,i,h&&iu.has(t)?{type:!1}:o,e,p));let g=r.animation;g&&d.push(g)}if(o){let t=()=>z.update(()=>{o&&rn(e,o)});d.length?Promise.all(d).then(t):t()}return d}function dn(e,t,n={}){let r=en(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(un(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return fn(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 fn(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(dn(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Kt(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function pn(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>dn(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=dn(e,t,n);else{let i=typeof t==`function`?en(e,t,n.custom):t;r=Promise.all(un(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}function mn(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(yc)||[];if(!r)return e;let i=n.replace(r,``),a=+!!mu.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}function hn(e,t){let n=yu(e);return bu.has(n)||(n=q),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function gn(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Ps(e)}function _n(e,t,n){let r=0,i;for(;re!=null)}function yn(e){return Ns(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function bn(){return Z.x||Z.y}function xn(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 Sn(e,t){let n=vn(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Cn(e){return!(e.pointerType===`touch`||bn())}function wn(e,t,n={}){let[r,i,a]=Sn(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,m.removeEventListener(`pointerup`,c),m.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,m.addEventListener(`pointerup`,c,i),m.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!Cn(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 Tn(e){return ku.has(e.tagName)||e.isContentEditable===!0}function En(e){return Au.has(e.tagName)||e.isContentEditable===!0}function Dn(e){return t=>{t.key===`Enter`&&e(t)}}function On(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}function kn(e){return Ou(e)&&!bn()}function An(e,t,n={}){let[r,i,a]=Sn(e,n),o=e=>{let r=e.currentTarget;if(!kn(e)||Nu.has(e))return;ju.add(r),n.stopPropagation&&Nu.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{m.removeEventListener(`pointerup`,c,o),m.removeEventListener(`pointercancel`,l,o),ju.has(r)&&ju.delete(r),kn(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===m||r===document||n.useGlobalTarget||Du(r,e.target))},l=e=>{s(e,!1)};m.addEventListener(`pointerup`,c,o),m.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?m:e).addEventListener(`pointerdown`,o,i),yn(e)&&(e.addEventListener(`focus`,e=>Mu(e,i)),!Tn(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function jn(e){return Ns(e)&&`ownerSVGElement`in e}function Mn({target:e,borderBoxSize:t}){Pu.get(e)?.forEach(n=>{n(e,{get width(){return Lu(e,t)},get height(){return Ru(e,t)}})})}function Nn(e){e.forEach(Mn)}function Pn(){typeof ResizeObserver>`u`||(Fu=new ResizeObserver(Nn))}function Fn(e,t){Fu||Pn();let n=vn(e);return n.forEach(e=>{let n=Pu.get(e);n||(n=new Set,Pu.set(e,n)),n.add(t),Fu?.observe(e)}),()=>{n.forEach(e=>{let n=Pu.get(e);n?.delete(t),n?.size||Fu?.unobserve(e)})}}function In(){Bu=()=>{let e={get width(){return m.innerWidth},get height(){return m.innerHeight}};zu.forEach(t=>t(e))},m.addEventListener(`resize`,Bu)}function Ln(e){return zu.add(e),Bu||In(),()=>{zu.delete(e),!zu.size&&typeof Bu==`function`&&(m.removeEventListener(`resize`,Bu),Bu=void 0)}}function Rn(e,t){return typeof e==`function`?Ln(e):Fn(e,t)}function zn(e,t){let n,r=()=>{let{currentTime:r}=t,i=(r===null?0:r.value)/100;n!==i&&e(i),n=i};return z.preUpdate(r,!0),()=>B(r)}function Bn(e){return jn(e)&&e.tagName===`svg`}function Vn(e,t){if(e===`first`)return 0;{let n=t-1;return e===`last`?n:n/2}}function Hn(e=.1,{startDelay:t=0,from:n=0,ease:r}={}){return(i,a)=>{let o=typeof n==`number`?n:Vn(n,a),s=e*Math.abs(o-i);if(r){let t=a*e;s=ac(r)(s/t)*t}return t+s}}function Un(...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=ht(i,a,o);return t?s(r):s}function Wn(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),e.animation=void 0},l=()=>{let t=Kn(e.get()),r=Kn(a);if(t===r){c();return}let s=i?i.getGeneratorVelocity():e.getVelocity();c(),i=new al({keyframes:[t,r],velocity:s,type:`spring`,restDelta:.001,restSpeed:.01,...n,onUpdate:o})},u=()=>{l(),e.animation=i??void 0,e.events.animationStart?.notify(),i?.then(()=>{e.animation=void 0,e.events.animationComplete?.notify()})};if(e.attach((e,t)=>{a=e,o=e=>t(Gn(e,s)),z.postRender(u)},c),X(t)){let r=n.skipInitialAnimation===!0,i=t.on(`change`,t=>{r?(r=!1,e.jump(Gn(t,s),!1)):e.set(Gn(t,s))}),a=e.on(`destroy`,i);return()=>{i(),a()}}return c}function Gn(e,t){return t?e+t:e}function Kn(e){return typeof e==`number`?e:parseFloat(e)}function qn(e,t,n){let r=()=>t.set(n()),i=()=>z.preRender(r,!1,!0),a=e.map(e=>e.on(`change`,i));t.on(`destroy`,()=>{a.forEach(e=>e()),B(r)})}function Jn(e){let t=[];Jl.current=t;let n=e();Jl.current=void 0;let r=O(n);return qn(t,r,e),r}function Yn(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Xn(e){return typeof e==`string`||Array.isArray(e)}function Zn(e){return Yn(e.animate)||Yu.some(t=>Xn(e[t]))}function Qn(e){return!!(Zn(e)||e.variants)}function $n(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,O(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,O(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}function er(){if(Zu.current=!0,Qu)if(m.matchMedia){let e=m.matchMedia(`(prefers-reduced-motion)`),t=()=>Xu.current=e.matches;e.addEventListener(`change`,t),t()}else Xu.current=!1}function tr(e){ed=e}function nr(){return ed}function rr({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ir({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ar(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 or(e){return e===void 0||e===1}function sr({scale:e,scaleX:t,scaleY:n}){return!or(e)||!or(t)||!or(n)}function cr(e){return sr(e)||lr(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function lr(e){return ur(e.x)||ur(e.y)}function ur(e){return e&&e!==`0%`}function dr(e,t,n){return n+t*(e-n)}function fr(e,t,n,r,i){return i!==void 0&&(e=dr(e,i,r)),dr(e,n,r)+t}function pr(e,t=0,n=1,r,i){e.min=fr(e.min,t,n,r,i),e.max=fr(e.max,t,n,r,i)}function mr(e,{x:t,y:n}){pr(e.x,t.translate,t.scale,t.originPoint),pr(e.y,n.translate,n.scale,n.originPoint)}function hr(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;sid&&(t.x=1),t.yid&&(t.y=1)}function k(e,t){e.min+=t,e.max+=t}function gr(e,t,n,r,i=.5){pr(e,t,n,J(e.min,e.max,i),r)}function _r(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function vr(e,t,n){let r=n??e;gr(e.x,_r(t.x,r.x),t.scaleX,t.scale,t.originX),gr(e.y,_r(t.y,r.y),t.scaleY,t.scale,t.originY)}function yr(e,t){return rr(ar(e.getBoundingClientRect(),t))}function br(e,t,n){let r=yr(e,n),{scroll:i}=t;return i&&(k(r.x,i.offset.x),k(r.y,i.offset.y)),r}function xr(e,t,n){let r=``,i=!0;for(let a=0;aPromise.all(t.map(({animation:t,options:n})=>pn(e,t,n)))}function Lr(e){let t=Ir(e),n=Br(),r=!0,i=!1,a=t=>(n,r)=>{let i=en(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 o(n){t=n(e)}function s(o){let{props:s}=e,c=Pr(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;tf&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=au(t)&&au(n)?!Fr(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let ee=v&&y;b&&(!ee||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!ee&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=en(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Kt(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=en(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(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=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Br(),i=!0}}}function Rr(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Fr(t,e):!1}function zr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Br(){return{animate:zr(!0),whileInView:zr(),whileHover:zr(),whileTap:zr(),whileDrag:zr(),whileFocus:zr(),exit:zr()}}function Vr(e,t){e.min=t.min,e.max=t.max}function A(e,t){Vr(e.x,t.x),Vr(e.y,t.y)}function Hr(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function j(e){return e.max-e.min}function Ur(e,t,n){return Math.abs(e-t)<=n}function Wr(e,t,n,r=.5){e.origin=r,e.originPoint=J(t.min,t.max,e.origin),e.scale=j(n)/j(t),e.translate=J(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Cd&&e.scale<=wd||isNaN(e.scale))&&(e.scale=1),(e.translate>=Ed&&e.translate<=Dd||isNaN(e.translate))&&(e.translate=0)}function Gr(e,t,n,r){Wr(e.x,t.x,n.x,r?r.originX:void 0),Wr(e.y,t.y,n.y,r?r.originY:void 0)}function Kr(e,t,n,r=0){e.min=(r?J(n.min,n.max,r):n.min)+t.min,e.max=e.min+j(t)}function qr(e,t,n,r){Kr(e.x,t.x,n.x,r?.x),Kr(e.y,t.y,n.y,r?.y)}function Jr(e,t,n,r=0){let i=r?J(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+j(t)}function Yr(e,t,n,r){Jr(e.x,t.x,n.x,r?.x),Jr(e.y,t.y,n.y,r?.y)}function Xr(e,t,n,r,i){return e-=t,e=dr(e,1/n,r),i!==void 0&&(e=dr(e,1/i,r)),e}function Zr(e,t=0,n=1,r=.5,i,a=e,o=e){if(W.test(t)&&(t=parseFloat(t),t=J(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=J(a.min,a.max,r);e===a&&(s-=t),e.min=Xr(e.min,t,n,s,i),e.max=Xr(e.max,t,n,s,i)}function Qr(e,t,[n,r,i],a,o){Zr(e,t[n],t[r],t[i],t.scale,a,o)}function $r(e,t,n,r){Qr(e.x,t,Od,n?n.x:void 0,r?r.x:void 0),Qr(e.y,t,kd,n?n.y:void 0,r?r.y:void 0)}function ei(e){return e.translate===0&&e.scale===1}function ti(e){return ei(e.x)&&ei(e.y)}function ni(e,t){return e.min===t.min&&e.max===t.max}function ri(e,t){return ni(e.x,t.x)&&ni(e.y,t.y)}function ii(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ai(e,t){return ii(e.x,t.x)&&ii(e.y,t.y)}function oi(e){return j(e.x)/j(e.y)}function si(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function M(e){return[e(`x`),e(`y`)]}function ci(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,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}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 li(e,t,n,r,i,a){i?(e.opacity=J(0,n.opacity??1,Nd(r)),e.opacityExit=J(t.opacity??1,0,Pd(r))):a&&(e.opacity=J(t.opacity??1,n.opacity??1,r));for(let i=0;irt?1:n(Is(e,t,r))}function fi(e,t,n){let r=X(e)?e:O(e);return r.start(nu(``,r,t,n)),r.animation}function pi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function mi(e,t){let n=H.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(B(r),e(a-t))};return z.setup(r,!0),()=>B(r)}function hi(e){return X(e)?e.get():e}function gi(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function _i(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=cn(t);if(m.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;m.MotionCancelOptimisedAnimation(n,`transform`,z,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&_i(r)}function vi({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Hd++,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,Vu.value&&(zd.nodes=zd.calculatedTargetDeltas=zd.calculatedProjections=0),this.nodes.forEach(xi),this.nodes.forEach(Ai),this.nodes.forEach(ji),this.nodes.forEach(Si),Vu.addProjectionMetrics&&Vu.addProjectionMetrics(zd)},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;z.read(()=>{r=m.innerWidth}),e(t,()=>{let e=m.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=mi(i,250),Rd.hasAnimatedSinceResize&&(Rd.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()||Ud,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!ai(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={...Jt(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}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(),B(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(m.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&_i(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&&!j(this.snapshot.measuredBox.x)&&!j(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,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=J(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=J(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Pi(o.x,e.x,n),Pi(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Yr(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Ii(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&ri(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=Q(),A(f,this.relativeTarget)),c&&(this.animationValues=a,li(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),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&&=(B(this.pendingAnimation),void 0),this.pendingAnimation=z.update(()=>{Rd.hasAnimatedSinceResize=!0,this.motionValue||=O(0),this.motionValue.jump(0,!1),this.currentAnimation=fi(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{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(Vd),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=j(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=j(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}A(t,n),vr(t,i),Gr(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ld),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}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&&gi(`z`,e,r,this.animationValues);for(let t=0;te.currentAnimation?.stop()),this.root.nodes.forEach(wi),this.root.sharedNodes.clear()}}}function yi(e){e.updateLayout()}function bi(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;if(i===`size`)M(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=j(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Vr(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Bi(i,t.layoutBox,n)&&M(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=j(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=Gu();Gr(o,n,t.layoutBox);let s=Gu();a?Gr(s,e.applyTransform(r,!0),t.measuredBox):Gr(s,n,t.layoutBox);let c=!ti(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=e.options.layoutAnchor||void 0,s=Q();Yr(s,t.layoutBox,i.layoutBox,o);let c=Q();Yr(c,n,a.layoutBox,o),ai(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,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 xi(e){Vu.value&&zd.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 Si(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ci(e){e.clearSnapshot()}function wi(e){e.clearMeasurements()}function Ti(e){e.isLayoutDirty=!0,e.updateLayout()}function Ei(e){e.isLayoutDirty=!1}function Di(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}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=J(t.translate,0,n),e.scale=J(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Fi(e,t,n,r){e.min=J(t.min,n.min,r),e.max=J(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=Gd(e.min),e.max=Gd(e.max)}function zi(e){Ri(e.x),Ri(e.y)}function Bi(e,t,n){return e===`position`||e===`preserve-aspect`&&!Ur(oi(t),oi(n),.2)}function Vi(e){return e!==e.root&&e.scroll?.wasRoot}function Hi(){let e=new Set,t=new WeakMap,n=()=>e.forEach(qd);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:l,left:f,right:p,bottom:m,direction:h}=u.current;if(t||o===!1||!c.current||!e||!n)return;let g=h===`rtl`,_=r===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=i===`bottom`?`bottom: ${m}`:`top: ${l}`;c.current.dataset.motionPopId=s;let y=document.createElement(`style`);d&&(y.nonce=d);let b=a??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(` [data-motion-pop-id="${s}"] { position: absolute !important; width: ${e}px !important; height: ${n}px !important; ${_}px !important; ${v}px !important; } `),()=>{c.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),x(Xd,{isPresent:t,childRef:c,sizeRef:u,pop:o,children:o===!1?e:b(e,{ref:f})})}function N(e){let t=n(null);return t.current===null&&(t.current=e()),t.current}function qi(){return new Map}function Ji(e=!0){let t=l(js);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=g();o(()=>{if(e)return i(a)},[e]);let s=d(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}function Yi(e){let t=[];return a.forEach(e,e=>{S(e)&&t.push(e)}),t}function Xi(){let e=n(!1);return As(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Zi(){let e=Xi(),[t,n]=c(0),r=d(()=>{e.current&&n(t+1)},[t]);return[d(()=>z.postRender(r),[r]),t]}function Qi(){if(sf)return;let e={};for(let t in of)e[t]={isEnabled:e=>of[t].some(t=>!!e[t])};tr(e),sf=!0}function $i(){return Qi(),nr()}function ea(e){let t=$i();for(let n in e)t[n]={...t[n],...e[n]};tr(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`)||cf.has(e)}function na(e){typeof e==`function`&&(lf=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`||X(e[i])||(lf(i)||n===!0&&ta(i)||!t&&!ta(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}function ia({children:e,isValidProp:t,...n}){t&&na(t);let r=l($);n={...r,...n},n.transition=qt(n.transition,r.transition),n.isStatic=N(()=>n.isStatic);let i=u(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion,n.skipAnimations]);return x($.Provider,{value:i,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]=hi(a[e]);let{initial:o,animate:s}=e,c=Zn(e),l=Qn(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`&&!Yn(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n({initial:t,animate:n}),[la(t),la(n)])}function la(e){return Array.isArray(e)?e.join(` `):e}function ua(e,t,n){for(let r in t)!X(t[r])&&!Er(r,n)&&(e[r]=t[r])}function da({transformTemplate:e},t){return u(()=>{let n=pf();return Sr(n,t,e),Object.assign({},n.vars,n.style)},[t])}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,t,n,r){let i=u(()=>{let n=mf();return jr(n,t,_d(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};ua(t,e.style,e),i.style={...t,...i.style}}return i}function ha(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(hf.indexOf(e)>-1||/[A-Z]/u.test(e))}function ga(e,t,n,{latestValues:r},i,a=!1,o){let c=(o??ha(e)?ma:pa)(t,r,i,e),l=ra(t,typeof e==`string`,a),d=e===s?{}:{...l,...c,ref:n},{children:f}=t,p=u(()=>X(f)?f.get():f,[f]);return v(e,{...d,children:p})}function _a(e,t,r){let i=n(r);T(()=>{i.current=r});let a=n(null);return d(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let r=i.current;if(typeof r==`function`)if(n){let e=r(n);typeof e==`function`&&(a.current=e)}else a.current?(a.current(),a.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,r,i,a,s){let{visualElement:c}=l(uf),u=l(af),d=l(js),f=l($),p=f.reducedMotion,h=f.skipAnimations,g=n(null),_=n(!1);i||=u.renderer,!g.current&&i&&(g.current=i(e,{visualState:t,parent:c,props:r,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:p,skipAnimations:h,isSVG:s}),_.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));let v=g.current,y=l(ff);v&&!v.projection&&a&&(v.type===`html`||v.type===`svg`)&&ba(g.current,r,a,y);let b=n(!1);T(()=>{v&&b.current&&v.update(r,d)});let x=r[su],S=n(!!x&&m!==void 0&&!m.MotionHandoffIsComplete?.(x)&&m.MotionHasOptimisedAnimation?.(x));return As(()=>{_.current=!0,v&&(b.current=!0,m.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),S.current&&v.animationState&&v.animationState.animateChanges())}),o(()=>{v&&(!S.current&&v.animationState&&v.animationState.animateChanges(),S.current&&=(queueMicrotask(()=>{m.MotionHandoffMarkAsComplete?.(x)}),!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,layoutAnchor:u,layoutCrossfade:d}=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:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}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?_f:gf;function s(n,s){let c,u={...l($),...n,layoutId:Ca(n)},{isStatic:d}=u,f=ca(n),p=o(n,d);if(!d&&m!==void 0){wa(u,r);let t=Ta(u);c=t.MeasureLayout,f.visualElement=ya(e,p,u,i,t.ProjectionNode,a)}return w(uf.Provider,{value:f,children:[c&&f.visualElement?x(c,{visualElement:f.visualElement,...u}):null,ga(e,n,_a(p,f.visualElement,s),p,d,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=h(s);return c[vf]=e,c}function Ca({layoutId:e}){let t=l(Os).id;return t&&e!==void 0?t+`-`+e:e}function wa(e,t){l(af).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 pi(e,t,Cf(n),r)}function ka(e,t){let n=wf(e.x,t.x),r=wf(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>L(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>L(t)*2&&(r=e[1]);let a=R(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?J(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=Is(t.min,t.max-r,e.min):r>i&&(n=Is(e.min,e.max-i,t.min)),P(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=kf){return e===!1?e=0:e===!0&&(e=kf),{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=Rn(e,Ka(n)),i=Rn(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=l(Os);return x(If,{...e,layoutGroup:r,switchLayoutGroup:l(ff),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&&z.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&&z.postRender(()=>i(t,Da(t)))}function $a({root:e,...t}){let n=e||document;Hf.has(n)||Hf.set(n,{});let r=Hf.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Wf,{root:e,...t})),r[i]}function eo(e,t,n){let r=$a(t);return Vf.set(e,n),r.observe(e),()=>{Vf.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}=ep[t],s=i.current,c=n.time;i.current=Math.abs(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=Is(0,i.scrollLength,i.current);let l=r-c;i.velocity=l>Zf?0:Rs(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(yn(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 tp&&(e=tp[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:np,a=0,o=0;return typeof e==`number`?i=[e,e]:typeof e==`string`&&(e=e.trim(),i=e.includes(` `)?e.split(` `):[e,tp[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=rp.All}=n,{target:i=e,axis:a=`y`}=n,o=a===`y`?`height`:`width`,s=i===e?ip: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 I;let i=sp.get(t);i||(i=new Set,sp.set(t,i));let a=uo(t,e,$f(),r);if(i.add(a),!ap.has(t)){let e=()=>{for(let e of i)e.measure(V.timestamp);z.preUpdate(n)},n=()=>{for(let e of i)e.notify()},r=()=>z.read(e);ap.set(t,r);let a=up(t);m.addEventListener(`resize`,r),t!==document.documentElement&&op.set(t,Rn(t,r)),a.addEventListener(`scroll`,r),r()}if(n&&!lp.has(t)){let e=ap.get(t),n={width:t.scrollWidth,height:t.scrollHeight};cp.set(t,n);let r=z.read(()=>{let r=t.scrollWidth,i=t.scrollHeight;(n.width!==r||n.height!==i)&&(e(),n.width=r,n.height=i)},!0);lp.set(t,r)}let o=ap.get(t);return z.read(o,!1,!0),()=>{B(o);let e=sp.get(t);if(!e||(e.delete(a),e.size))return;let n=ap.get(t);ap.delete(t),n&&(up(t).removeEventListener(`scroll`,n),op.get(t)?.(),m.removeEventListener(`resize`,n));let r=lp.get(t);r&&(B(r),lp.delete(t)),cp.delete(t)}}function po(e){return m===void 0?!1:e?kl():Ol()}function mo(e){let t=e.trim().split(/\s+/);if(t.length!==2)return;let n=fp[t[0]],r=fp[t[1]];if(!(n===void 0||r===void 0))return[n,r]}function ho(e){if(e.length!==2)return;let t=[];for(let n of e)if(Array.isArray(n))t.push(n);else if(typeof n==`string`){let e=mo(n);if(!e)return;t.push(e)}else return;return t}function go(e,t){let n=ho(e);if(!n)return!1;for(let e=0;e<2;e++){let r=n[e],i=t[e];if(r[0]!==i[0]||r[1]!==i[1])return!1}return!0}function _o(e){if(!e)return{rangeStart:`contain 0%`,rangeEnd:`contain 100%`};for(let[t,n]of dp)if(go(e,t))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}function vo(e){let t={value:0};return{currentTime:t,cancel:fo(n=>{t.value=n[e.axis].progress*100},e)}}function yo({source:e,container:t,...n}){let{axis:r}=n;e&&(t=e);let i=pp.get(t);i||(i=new Map,pp.set(t,i));let a=n.target??`self`,o=i.get(a);o||(o={},i.set(a,o));let s=r+(n.offset??[]).join(`,`);return o[s]||(n.target&&po(n.target)?_o(n.offset)?o[s]=new ViewTimeline({subject:n.target,axis:r}):o[s]=vo({container:t,...n}):po()?o[s]=new ScrollTimeline({source:t,axis:r}):o[s]=vo({container:t,...n})),o[s]}function bo(e,t){let n=yo(t),r=t.target?_o(t.offset):void 0,i=t.target?po(t.target)&&!!r:po();return e.attachTimeline({timeline:i?n:void 0,...r&&i&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:e=>(e.pause(),zn(t=>{e.time=e.iterationDuration*t},n))})}function xo(e){return e&&(e.target||e.offset)}function So(e){return e.length===2}function Co(e,t){return So(e)||xo(t)?fo(n=>{e(n[t.axis].progress,n)},t):zn(e,yo(t))}function wo(e,{axis:t=`y`,container:n=document.scrollingElement,...r}={}){if(!n)return I;let i={axis:t,container:n,...r};return typeof e==`function`?Co(e,i):bo(e,i)}function To(e,t,n,r){return{factory:i=>{let a,o=()=>{if(hp(n)||hp(r)){Tu.read(o);return}a=wo(i,{...t,axis:e,container:n?.current||void 0,target:r?.current||void 0})};return Tu.read(o),()=>{Eu(o),a?.()}},times:[0,1],keyframes:[0,1],ease:e=>e,duration:1}}function Eo(e,t){return m===void 0?!1:e?kl()&&!!_o(t):Ol()}function Do({container:e,target:t,...r}={}){let i=N(mp);Eo(t,r.offset)&&(i.scrollXProgress.accelerate=To(`x`,r,e,t),i.scrollYProgress.accelerate=To(`y`,r,e,t));let a=n(null),s=n(!1),c=d(()=>(a.current=wo((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)},{...r,container:e?.current||void 0,target:t?.current||void 0}),()=>{a.current?.()}),[e,t,JSON.stringify(r.offset)]);return As(()=>{if(s.current=!1,hp(e)||hp(t)){s.current=!0;return}else return c()},[c]),o(()=>{if(!s.current)return;let n,r=()=>{let r=hp(e),i=hp(t);!r&&!i&&(n=c())};return Tu.read(r),()=>{Eu(r),n?.()}},[c]),i}function Oo(e){let t=N(()=>O(e)),{isStatic:n}=l($);if(n){let[,n]=c(e);o(()=>t.on(`change`,n),[])}return t}function ko(e,t){let n=Oo(t()),r=()=>n.set(t());return r(),As(()=>{let t=()=>z.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),B(r)}}),n}function Ao(e){Jl.current=[],e();let t=ko(Jl.current,e);return Jl.current=void 0,t}function jo(e,t,n,r){if(typeof e==`function`)return Ao(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return No(e,t,n,r);let i=typeof t==`function`?t:Un(t,n,r),a=Array.isArray(e)?Mo(e,i):Mo([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 Mo(e,t){let n=N(()=>[]);return ko(e,()=>{n.length=0;let r=e.length;for(let t=0;tObject.keys(n)),a=N(()=>({}));for(let o of i)a[o]=jo(e,t,n[o],r);return a}function Po(e,t={}){let{isStatic:n}=l($),r=()=>X(e)?e.get():e;if(n)return jo(r);let i=Oo(r());return T(()=>Wn(i,e,t),[i,JSON.stringify(t)]),i}function Fo(e,t={}){return Po(e,{type:`spring`,...t})}function Io(e){let t=n(0),{isStatic:r}=l($);o(()=>{if(r)return;let n=({timestamp:n,delta:r})=>{t.current||=n,e(n-t.current,r)};return z.update(n,!0),()=>B(n)},[e])}function Lo(){!Zu.current&&er();let[e]=c(Xu.current);return e}function Ro(){let e=Lo(),{reducedMotion:t}=l($);return t===`never`?!1:t===`always`||e}function zo(e){e.values.forEach(e=>e.stop())}function Bo(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&rn(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{Bo(e,t)})})}function Vo(e,t){if(Array.isArray(t))return Bo(e,t);if(typeof t==`string`)return Bo(e,[t]);rn(e,t)}function Ho(){let e=new Set,t={subscribe(t){return e.add(t),()=>void e.delete(t)},start(t,n){let r=[];return e.forEach(e=>{r.push(pn(e,t,{transitionOverride:n}))}),Promise.all(r)},set(t){return e.forEach(e=>{Vo(e,t)})},stop(){e.forEach(e=>{zo(e)})},mount(){return()=>{t.stop()}}};return t}function Uo(e){return typeof e==`object`&&!Array.isArray(e)}function Wo(e,t,n,r){return e==null?[]:typeof e==`string`&&Uo(t)?vn(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function Go(e,t,n){return e*(t+1)+n*t}function Ko(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 qo(e,t,n){for(let r=0;rt&&i.at{let c=es(e),{delay:l=0,times:u=_t(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=It(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&bp(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=L(b));let r=at(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&>(u,T),c.length===1&&c.unshift(null),m&&`${m}${vp}`,m&&m0?_/b:0;b=Go(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?Ws(e):e)));for(let s=0;s0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e{for(let i in e){let a=e[i];a.sort(Xo);let s=[],c=[],l=[];for(let e=0;e{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=O(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:dt}).forEach(({keyframes:e,transition:t},n)=>{r.push(...as(n,e,t))}),r}function ss(e){return Array.isArray(e)&&e.some(Array.isArray)}function cs(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),ss(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=os(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=as(e,i,{...c,...r},t)}let l=new Gl(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{ke(t.animations,l)})),l}return i}function ls(){let e=N(Ho);return As(e.mount,[]),e}function us(e){return typeof e==`object`&&!!e&&vf in e}function ds(e){if(us(e))return e[vf]}function fs(){return ps}function ps(e){Jd.current&&(Jd.current.isUpdating=!1,Jd.current.blockUpdate(),e&&e())}function ms(){return d(()=>{let e=Jd.current;e&&e.resetTree()},[])}function hs(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=vn(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:Cp[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}function gs(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[s,l]=c(a);return o(()=>{if(!e.current||i&&s)return;let a=()=>(l(!0),i?void 0:()=>l(!1)),o={root:t&&t.current||void 0,margin:n,amount:r};return hs(e.current,a,o)},[t,e,n,i,r]),s}function _s(){let[e,t]=Zi(),r=fs(),i=n(-1);return o(()=>{z.postRender(()=>z.postRender(()=>{t===i.current&&(F.instantAnimations=!1)}))},[t]),n=>{r(()=>{F.instantAnimations=!0,e(),n(),i.current=t+1})}}function vs(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=J(c.min,c.max,.5);return a===1&&s.layout.max+n>l||a===-1&&s.layout.min+nYf[t]),u=[],d=n(!1),f=n(null),p={axis:r,groupRef:f,registerItem:(e,t)=>{let n=u.findIndex(t=>e===t.value);n===-1?u.push({value:e,layout:t[r]}):u[n].layout=t[r],u.sort(bs)},updateOrder:(e,t,n)=>{if(d.current)return;let r=vs(u,e,t,n);if(u!==r){d.current=!0;let e=[...a];for(let t=0;t{d.current=!1});let m=e=>{f.current=e,typeof c==`function`?c(e):c&&(c.current=e)},h={overflowAnchor:`none`,...s.style};return x(l,{...s,style:h,ref:m,ignoreStrict:!0,children:x(Ep.Provider,{value:p,children:e})})}function bs(e,t){return e.layout.min-t.layout.min}function xs(){if(Np){let e=Cs(Np,`y`);e&&(Mp.delete(e),jp.delete(e));let t=Cs(Np,`x`);t&&t!==e&&(Mp.delete(t),jp.delete(t)),Np=null}}function Ss(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return Ap.has(r)||i}function Cs(e,t){let n=e?.parentElement;for(;n;){if(Ss(n,t))return n;n=n.parentElement}return null}function ws(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(m.innerWidth,r.right):Math.min(m.innerHeight,r.bottom),o=e-i,s=a-e;if(o0))return;Mp.set(i,o);let e=n===`x`?i.scrollWidth-(c?m.innerWidth:i.clientWidth):i.scrollHeight-(c?m.innerHeight:i.clientHeight);jp.set(i,e)}if(a>0){let e=jp.get(i);if((n===`x`?c?m.scrollX:i.scrollLeft:c?m.scrollY:i.scrollTop)>=e)return}n===`x`?c?m.scrollBy({left:a}):i.scrollLeft+=a:c?m.scrollBy({top:a}):i.scrollTop+=a}function Es(e,t=0){return X(e)?e:Oo(t)}function Ds({children:e,style:t={},value:n,as:r=`li`,onDrag:i,onDragEnd:a,layout:o=!0,...s},c){let u=N(()=>Yf[r]),d=l(Ep),f={x:Es(t.x),y:Es(t.y)},p=jo([f.x,f.y],([e,t])=>e||t?1:`unset`),{axis:m,registerItem:h,updateOrder:g,groupRef:_}=d;return x(u,{drag:m,...s,dragSnapToOrigin:!0,style:{...t,x:f.x,y:f.y,zIndex:p},layout:o,onDrag:(e,t)=>{let{velocity:r,point:a}=t,o=f[m].get();g(n,o,r[m]),Ts(_.current,a[m],m,r[m]),i&&i(e,t)},onDragEnd:(e,t)=>{xs(),a&&a(e,t)},onLayoutMeasure:e=>{h(n,e)},ref:c,ignoreStrict:!0,children:e})}var Os,ks,As,js,P,F,Ms,Ns,Ps,I,Fs,Is,Ls,L,R,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc,nc,rc,ic,ac,oc,sc,z,B,V,cc,lc,H,uc,dc,fc,pc,mc,hc,gc,_c,vc,yc,bc,xc,Sc,Cc,wc,Tc,Ec,Dc,U,W,G,Oc,kc,Ac,jc,K,Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc,Bc,q,J,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc,Y,Yc,Xc,Zc,Qc,$c,el,tl,nl,rl,il,al,ol,sl,cl,ll,ul,dl,fl,pl,ml,hl,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,$l,eu,tu,nu,ru,iu,au,X,ou,su,cu,lu,uu,du,fu,pu,mu,hu,gu,_u,vu,yu,bu,xu,Su,Cu,wu,Tu,Eu,Z,Du,Ou,ku,Au,ju,Mu,Nu,Pu,Fu,Iu,Lu,Ru,zu,Bu,Vu,Hu,Uu,Wu,Gu,Ku,Q,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,Dp,Op,kp,Ap,jp,Mp,Np,Pp,Fp=t((()=>{E(),De(),p(),C(),Os=f({}),ks=m!==void 0,As=ks?i:o,js=f(null),P=(e,t,n)=>n>t?t:n/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Ns=e=>typeof e==`object`&&!!e,Ps=e=>/^0[^.\s]+$/u.test(e),I=e=>e,Fs=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Is=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Ls=class{constructor(){this.subscriptions=[]}add(e){return Oe(this.subscriptions,e),()=>ke(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,R=e=>e/1e3,Rs=(e,t)=>t?1e3/t*e:0,zs=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},Bs=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Vs=1e-7,Hs=12,Us=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ws=e=>t=>1-e(1-t),Gs=Ne(.33,1.53,.69,.99),Ks=Ws(Gs),qs=Us(Ks),Js=e=>e>=1?1:(e*=2)<1?.5*Ks(e):.5*(2-2**(-10*(e-1))),Ys=e=>1-Math.sin(Math.acos(e)),Xs=Ws(Ys),Zs=Us(Ys),Qs=Ne(.42,0,1,1),$s=Ne(0,0,.58,1),ec=Ne(.42,0,.58,1),tc=e=>Array.isArray(e)&&typeof e[0]!=`number`,nc=e=>Array.isArray(e)&&typeof e[0]==`number`,rc={linear:I,easeIn:Qs,easeInOut:ec,easeOut:$s,circIn:Ys,circInOut:Zs,circOut:Xs,backIn:Ks,backInOut:qs,backOut:Gs,anticipate:Js},ic=e=>typeof e==`string`,ac=e=>{if(nc(e)){e.length;let[t,n,r,i]=e;return Ne(t,n,r,i)}else if(ic(e))return rc[e],`${e}`,rc[e];return e},oc=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],sc=40,{schedule:z,cancel:B,state:V,steps:cc}=Ie(typeof requestAnimationFrame<`u`?requestAnimationFrame:I,!0),H={now:()=>(lc===void 0&&H.set(V.isProcessing||F.useManualTiming?V.timestamp:performance.now()),lc),set:e=>{lc=e,queueMicrotask(Le)}},uc=e=>t=>typeof t==`string`&&t.startsWith(e),dc=uc(`--`),fc=uc(`var(--`),pc=e=>fc(e)?mc.test(e.split(`/*`)[0].trim()):!1,mc=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,hc={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},gc={...hc,transform:e=>P(0,1,e)},_c={...hc,default:1},vc=e=>Math.round(e*1e5)/1e5,yc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,bc=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xc=(e,t)=>n=>!!(typeof n==`string`&&bc.test(n)&&n.startsWith(e)||t&&!ze(n)&&Object.prototype.hasOwnProperty.call(n,t)),Sc=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(yc);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Cc=e=>P(0,255,e),wc={...hc,transform:e=>Math.round(Cc(e))},Tc={test:xc(`rgb`,`red`),parse:Sc(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+wc.transform(e)+`, `+wc.transform(t)+`, `+wc.transform(n)+`, `+vc(gc.transform(r))+`)`},Ec={test:xc(`#`),parse:Be,transform:Tc.transform},Dc=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),U=Dc(`deg`),W=Dc(`%`),G=Dc(`px`),Oc=Dc(`vh`),kc=Dc(`vw`),Ac={...W,parse:e=>W.parse(e)/100,transform:e=>W.transform(e*100)},jc={test:xc(`hsl`,`hue`),parse:Sc(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+W.transform(vc(t))+`, `+W.transform(vc(n))+`, `+vc(gc.transform(r))+`)`},K={test:e=>Tc.test(e)||Ec.test(e)||jc.test(e),parse:e=>Tc.test(e)?Tc.parse(e):jc.test(e)?jc.parse(e):Ec.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Tc.transform(e):jc.transform(e),getAnimatableNone:e=>{let t=K.parse(e);return t.alpha=0,K.transform(t)}},Mc=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Nc=`number`,Pc=`color`,Fc=`var`,Ic=`var(`,Lc="${}",Rc=/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,zc=e=>typeof e==`number`?0:K.test(e)?K.getAnimatableNone(e):e,Bc=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:zc(e),q={test:Ve,parse:Ue,createTransformer:Ge,getAnimatableNone:Ke},J=(e,t,n)=>e+(t-e)*n,Vc=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Hc=[Ec,Tc,jc],Uc=e=>Hc.find(t=>t.test(e)),Wc=(e,t)=>{let n=Xe(e),r=Xe(t);if(!n||!r)return Ye(e,t);let i={...n};return e=>(i.red=Vc(n.red,r.red,e),i.green=Vc(n.green,r.green,e),i.blue=Vc(n.blue,r.blue,e),i.alpha=J(n.alpha,r.alpha,e),Tc.transform(i))},Gc=new Set([`none`,`hidden`]),Kc=(e,t)=>{let n=q.createTransformer(t),r=He(e),i=He(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?Gc.has(e)&&!i.values.length||Gc.has(t)&&!r.values.length?Ze(e,t):Fs(et(nt(r,i),i.values),n):(`${e}${t}`,Ye(e,t))},qc=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t{let t=at(e,100,dt);return e.ease=t.ease,e.duration=L(t.duration),e.type=`keyframes`,e},$c=5,el=e=>e!==null,tl=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>z.update(t,e),stop:()=>B(t),now:()=>V.isProcessing?V.timestamp:H.now()}},nl={decay:pt,inertia:pt,tween:bt,keyframes:bt,spring:dt},rl=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)}},il=e=>e/100,al=class extends rl{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==H.now()&&this.tick(H.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;St(e);let{type:t=bt,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||bt;s!==bt&&typeof o[0]!=`number`&&(this.mixKeyframes=Fs(il,rt(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=it(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=P(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=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!==pt&&(b.value=xt(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 R(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+R(e)}get time(){return R(this.currentTime)}set time(e){e=L(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?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return ft(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(H.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=R(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=tl,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(H.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}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)}},ol=e=>e*180/Math.PI,sl=e=>ll(ol(Math.atan2(e[1],e[0]))),cl={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:sl,rotateZ:sl,skewX:e=>ol(Math.atan(e[1])),skewY:e=>ol(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ll=e=>(e%=360,e<0&&(e+=360),e),ul=sl,dl=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),fl=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),pl={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:dl,scaleY:fl,scale:e=>(dl(e)+fl(e))/2,rotateX:e=>ll(ol(Math.atan2(e[6],e[5]))),rotateY:e=>ll(ol(Math.atan2(-e[2],e[0]))),rotateZ:ul,rotate:ul,skewX:e=>ol(Math.atan(e[4])),skewY:e=>ol(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2},ml=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Et(n,t)},hl=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],gl=new Set([...hl,`pathRotation`]),_l=e=>e===hc||e===G,vl=new Set([`x`,`y`,`z`]),yl=hl.filter(e=>!vl.has(e)),bl={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-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})=>Et(t,`x`),y:(e,{transform:t})=>Et(t,`y`)},bl.translateX=bl.x,bl.translateY=bl.y,xl=new Set,Sl=!1,Cl=!1,wl=!1,Tl=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?(xl.add(this),Sl||(Sl=!0,z.read(At),z.resolveKeyframes(kt))):(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])}wt(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),xl.delete(this)}cancel(){this.state===`scheduled`&&(xl.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},El=e=>e.startsWith(`--`),Dl={},Ol=Nt(()=>m.ScrollTimeline!==void 0,`scrollTimeline`),kl=Nt(()=>m.ViewTimeline!==void 0,`viewTimeline`),Al=Nt(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),jl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ml={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:jl([0,.65,.55,1]),circOut:jl([.55,0,1,.45]),backIn:jl([.31,.01,.66,-.59]),backOut:jl([.33,1.53,.69,.99])},Nl=class extends rl{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,e.type;let c=Lt(e);this.animation=Ft(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=xt(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Mt(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 R(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+R(e)}get time(){return R(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=L(e),t&&this.animation.pause()}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,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Ol()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),I):r(this)}},Pl={anticipate:Js,backInOut:qs,circInOut:Zs},Fl=10,Il=class extends Nl{constructor(e){zt(e),St(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(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 al({...a,autoplay:!1}),s=Math.max(Fl,H.now()-this.startTime),c=P(0,Fl,s-Fl),l=o.sample(s).value,{name:u}=this.options;i&&u&&Mt(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Ll=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Rl=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,zl=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Bl=je(()=>Object.hasOwnProperty.call(Element.prototype,`animate`)),Vl=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(q.test(e)||e===`0`)&&!e.startsWith(`url(`)),Hl=40,Ul=class extends rl{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=H.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||Tl;this.keyframeResolver=new f(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=H.now();let u=!0;Wt(e,i,a,o)||(u=!1,(F.instantAnimations||!s)&&l?.(xt(e,n,t)),e[0]=e[e.length-1],Bt(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Hl?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Ht(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Il({...d,element:p})}catch{m=new al(d)}else m=new al(d);m.finished.then(()=>{this.notifyFinished()}).catch(I),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}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(),jt()),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()}},Wl=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 Gt(this.animations,`duration`)}get iterationDuration(){return Gt(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`)}},Gl=class extends Wl{then(e,t){return this.finished.finally(e).then(()=>{})}},Kl=30,ql=e=>!isNaN(parseFloat(e)),Jl={current:void 0},Yl=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=H.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=H.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ql(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 Ls);let n=this.events[e].add(t);return e===`change`?()=>{n(),z.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 Jl.current&&Jl.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=H.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Kl)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Kl);return Rs(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()}},Xl={type:`spring`,stiffness:500,damping:25,restSpeed:10},Zl=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ql={type:`keyframes`,duration:.8},$l={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},eu=(e,{keyframes:t})=>t.length>2?Ql:gl.has(e)?e.startsWith(`scale`)?Zl(t[1]):Xl:$l,tu=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]),nu=(e,t,n,r={},i,a)=>o=>{let s=Jt(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=L(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};Yt(s)||Object.assign(u,eu(e,u)),u.duration&&=L(u.duration),u.repeatDelay&&=L(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Bt(u),u.delay===0&&(d=!0)),(F.instantAnimations||F.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Bt(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){z.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new al(u):new Ul(u)},ru=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,iu=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...hl]),au=e=>Array.isArray(e),X=e=>!!(e&&e.getVelocity),ou=`framerAppearId`,su=`data-`+sn(ou),cu=e=>t=>t.test(e),lu=[hc,G,W,U,kc,Oc,{test:e=>e===`auto`,parse:e=>e}],uu=e=>lu.find(cu(e)),du={rotate:U,pathRotation:U,rotateX:U,rotateY:U,rotateZ:U,scale:_c,scaleX:_c,scaleY:_c,scaleZ:_c,skew:U,skewX:U,skewY:U,distance:G,translateX:G,translateY:G,translateZ:G,x:G,y:G,z:G,perspective:G,transformPerspective:G,opacity:gc,originX:Ac,originY:Ac,originZ:G},fu={...hc,transform:Math.round},pu={borderWidth:G,borderTopWidth:G,borderRightWidth:G,borderBottomWidth:G,borderLeftWidth:G,borderRadius:G,borderTopLeftRadius:G,borderTopRightRadius:G,borderBottomRightRadius:G,borderBottomLeftRadius:G,width:G,maxWidth:G,height:G,maxHeight:G,top:G,right:G,bottom:G,left:G,inset:G,insetBlock:G,insetBlockStart:G,insetBlockEnd:G,insetInline:G,insetInlineStart:G,insetInlineEnd:G,padding:G,paddingTop:G,paddingRight:G,paddingBottom:G,paddingLeft:G,paddingBlock:G,paddingBlockStart:G,paddingBlockEnd:G,paddingInline:G,paddingInlineStart:G,paddingInlineEnd:G,margin:G,marginTop:G,marginRight:G,marginBottom:G,marginLeft:G,marginBlock:G,marginBlockStart:G,marginBlockEnd:G,marginInline:G,marginInlineStart:G,marginInlineEnd:G,fontSize:G,backgroundPositionX:G,backgroundPositionY:G,...du,zIndex:fu,fillOpacity:gc,strokeOpacity:gc,numOctaves:fu},mu=new Set([`brightness`,`contrast`,`saturate`,`opacity`]),hu=/\b([a-z-]*)\(.*?\)/gu,gu={...q,getAnimatableNone:e=>{let t=e.match(hu);return t?t.map(mn).join(` `):e}},_u={...q,getAnimatableNone:e=>{let t=q.parse(e);return q.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},vu={...pu,color:K,backgroundColor:K,outlineColor:K,fill:K,stroke:K,borderColor:K,borderTopColor:K,borderRightColor:K,borderBottomColor:K,borderLeftColor:K,filter:gu,WebkitFilter:gu,mask:_u,WebkitMask:_u},yu=e=>vu[e],bu=new Set([gu,_u]),xu=new Set([`auto`,`none`,`0`]),Su=class extends Tl{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()}},Cu=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],[...Cu],wu=(e,t)=>t&&typeof e==`number`?t.transform(e):e,{schedule:Tu,cancel:Eu}=Ie(queueMicrotask,!1),Z={x:!1,y:!1},Du=(e,t)=>t?e===t||Du(e,t.parentElement):!1,Ou=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,ku=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]),Au=new Set([`INPUT`,`SELECT`,`TEXTAREA`]),ju=new WeakSet,Mu=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Dn(()=>{if(ju.has(n))return;On(n,`down`);let e=Dn(()=>{On(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>On(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)},Nu=new WeakSet,Pu=new WeakMap,Iu=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:jn(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Lu=Iu(`inline`,`width`,`offsetWidth`),Ru=Iu(`block`,`height`,`offsetHeight`),zu=new Set,Vu={value:null,addProjectionMetrics:null},Hu=[...lu,K,q],Uu=e=>Hu.find(cu(e)),Wu=()=>({translate:0,scale:1,origin:0,originPoint:0}),Gu=()=>({x:Wu(),y:Wu()}),Ku=()=>({min:0,max:0}),Q=()=>({x:Ku(),y:Ku()}),qu=new WeakMap,Ju=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Yu=[`initial`,...Ju],Xu={current:null},Zu={current:!1},Qu=m!==void 0,$u=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],ed={},td=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=Tl,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=H.now();this.renderScheduledAtthis.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Zu.current||er(),this.shouldReduceMotion=Xu.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),B(this.notifyUpdate),B(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in 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&&Ll.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Nl({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:L(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=gl.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&z.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;m!==void 0&&m.MotionCheckAppearSync&&(i=m.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}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 ed){let t=ed[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;t<$u.length;t++){let n=$u[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=$n(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.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=O(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`&&(Ms(n)||Ps(n))?n=parseFloat(n):!Uu(n)&&q.test(t)&&(n=hn(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=$t(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 Ls),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Tu.render(this.render)}},nd=class extends td{constructor(){super(...arguments),this.KeyframeResolver=Su}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}`)}))}},rd=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},id=.999999999999,ad=1.0000000000001,od={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},sd=hl.length,cd={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(G.test(e))e=parseFloat(e);else return e;return`${wr(e,t.target.x)}% ${wr(e,t.target.y)}%`}},ld={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=q.parse(e);if(i.length>5)return r;let a=q.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=J(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},ud={borderRadius:{...cd,applyTo:[...Cu]},borderTopLeftRadius:cd,borderTopRightRadius:cd,borderBottomLeftRadius:cd,borderBottomRightRadius:cd,boxShadow:ld},dd=class extends nd{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Cr}readValueFromInstance(e,t){if(gl.has(t))return this.projection?.isProjecting?Tt(t):ml(e,t);{let n=Or(e),r=(dc(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return yr(e,t)}build(e,t,n){Sr(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Dr(e,t,n)}},fd=class extends td{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(kr(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}},pd={offset:`stroke-dashoffset`,array:`stroke-dasharray`},md={offset:`strokeDashoffset`,array:`strokeDasharray`},hd=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`],gd=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`]),_d=e=>typeof e==`string`&&e.toLowerCase()===`svg`,vd=class extends nd{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Q}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(gl.has(t)){let e=yu(t);return e&&e.default||0}return t=gd.has(t)?t:sn(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Nr(e,t,n)}build(e,t,n){jr(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Mr(e,t,n,r)}mount(e){this.isSVGTag=_d(e.tagName),super.mount(e)}},yd=Yu.length,bd=[...Ju].reverse(),xd=Ju.length,Sd=1e-4,Cd=1-Sd,wd=1+Sd,Td=.01,Ed=0-Td,Dd=0+Td,Od=[`x`,`scaleX`,`originX`],kd=[`y`,`scaleY`,`originY`],Ad=Cu.length,jd=e=>typeof e==`string`?parseFloat(e):e,Md=e=>typeof e==`number`||G.test(e),Nd=di(0,.5,Xs),Pd=di(.5,.95,I),Fd=(e,t)=>e.depth-t.depth,Id=class{constructor(){this.children=[],this.isDirty=!1}add(e){Oe(this.children,e),this.isDirty=!0}remove(e){ke(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Fd),this.isDirty=!1,this.children.forEach(e)}},Ld=class{constructor(){this.members=[]}add(e){Oe(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.snapshot&&(ke(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(ke(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){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Rd={hasAnimatedSinceResize:!0,hasEverUpdated:!1},zd={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Bd=[``,`X`,`Y`,`Z`],Vd=1e3,Hd=0,Ud={duration:.45,ease:[.4,0,.1,1]},Wd=e=>r!==void 0&&r.userAgent&&r.userAgent.toLowerCase().includes(e),Gd=Wd(`applewebkit/`)&&!Wd(`chrome/`)?Math.round:I,Kd=vi({attachResizeListener:(e,t)=>pi(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),qd=e=>!e.isLayoutDirty&&e.willUpdate(!1),Jd={current:void 0},Yd=vi({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Jd.current){let e=new Kd({});e.mount(m),e.setOptions({layoutScroll:!0}),Jd.current=e}return Jd.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>m.getComputedStyle(e).position===`fixed`}),oc.reduce((e,t)=>(e[t]=e=>B(e),e),{}),$=f({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`}),Xd=class extends y{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(yn(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=yn(e)&&e.offsetWidth||0,r=yn(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}},Zd=({children:e,initial:t,isPresent:r,onExitComplete:i,custom:a,presenceAffectsLayout:s,mode:c,anchorX:l,anchorY:d,root:f})=>{let p=N(qi),m=g(),h=n(r),_=n(i);As(()=>{h.current=r,_.current=i});let v=!0,y=u(()=>(v=!1,{id:m,initial:t,isPresent:r,custom:a,onExitComplete:e=>{p.set(e,!0);for(let e of p.values())if(!e)return;i&&i()},register:e=>(p.set(e,!1),()=>{p.delete(e),!h.current&&!p.size&&_.current?.()})}),[r,p,i]);return s&&v&&(y={...y}),u(()=>{p.forEach((e,t)=>p.set(t,!1))},[r]),o(()=>{!r&&!p.size&&i&&i()},[r]),e=x(Ki,{pop:c===`popLayout`,isPresent:r,anchorX:l,anchorY:d,root:f,children:e}),x(js.Provider,{value:y,children:e})},Qd=e=>e.key||``,$d=({children:e,custom:t,initial:r=!0,onExitComplete:i,presenceAffectsLayout:a=!0,mode:o=`sync`,propagate:s=!1,anchorX:d=`left`,anchorY:f=`top`,root:p})=>{let[m,h]=Ji(s),g=u(()=>Yi(e),[e]),v=s&&!m?[]:g.map(Qd),y=n(!0),b=n(g),S=N(()=>new Map),C=n(new Set),[w,T]=c(g),[E,ee]=c(g);As(()=>{y.current=!1,b.current=g;for(let e=0;e{let n=Qd(e),c=s&&!m?!1:g===E||v.includes(n);return x(Zd,{isPresent:c,initial:!y.current||r?void 0:!1,custom:t,presenceAffectsLayout:a,mode:o,root:p,onExitComplete:c?void 0:()=>{if(C.current.has(n))return;if(S.has(n))C.current.add(n),S.set(n,!0);else return;let e=!0;S.forEach(t=>{t||(e=!1)}),e&&(te?.(),ee(b.current),s&&h?.(),i&&i())},anchorX:d,anchorY:f,children:e},n)})})},ef=f(null),tf=e=>e===!0,nf=e=>tf(e===!0)||e===`id`,rf=({children:e,id:t,inherit:r=!0})=>{let i=l(Os),a=l(ef),[o,s]=Zi(),c=n(null),d=i.id||a;c.current===null&&(nf(r)&&d&&(t=t?d+`-`+t:d),c.current={id:t,group:tf(r)&&i.group||Hi()});let f=u(()=>({...c.current,forceRender:o}),[s]);return x(Os.Provider,{value:f,children:e})},af=f({strict:!1}),of={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`]},sf=!1,cf=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(`.`)),lf=e=>!ta(e);try{na(le(`@emotion/is-prop-valid`).default)}catch{}uf=f({}),df=e=>(t,n)=>{let r=l(uf),i=l(js),a=()=>aa(e,t,r,i);return n?a():N(a)},ff=f({}),pf=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),mf=()=>({...pf(),attrs:{}}),hf=[`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`],gf=df({scrapeMotionValuesFromProps:Dr,createRenderState:pf}),_f=df({scrapeMotionValuesFromProps:Nr,createRenderState:mf}),vf=Symbol.for(`motionComponentSymbol`),yf=class extends rd{constructor(e){super(e),e.animationState||=Lr(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Yn(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?.()}},bf=0,xf=class extends rd{constructor(){super(...arguments),this.id=bf++,this.isExitComplete=!1}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;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=en(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}},Sf={animation:{Feature:yf},exit:{Feature:xf}},Cf=e=>t=>Ou(t)&&e(t,Da(t)),wf=(e,t)=>Math.abs(e-t),Tf=(e,t)=>t.isSVG??ha(e)?new vd(t):new dd(t,{allowProjection:e!==s}),Ef=({current:e})=>e?e.ownerDocument.defaultView:null,Df=new Set([`auto`,`scroll`]),Of=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=m,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=m,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(m)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Aa(this.lastRawMoveEventInfo,this.transformPagePoint));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}=V;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.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Aa(t,this.transformPagePoint),z.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)},!Ou(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||m;let s=Aa(Da(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=V;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Ma(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=Fs(Oa(this.contextWindow,`pointermove`,this.handlePointerMove,d),Oa(this.contextWindow,`pointerup`,this.handlePointerUp,d),Oa(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Df.has(e.overflowX)||Df.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(m,{x:m.scrollX,y:m.scrollY}),m.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),m.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{m.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),m.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===m,r=n?{x:m.scrollX,y:m.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),z.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),B(this.updatePoint)}},kf=.35,Af=new WeakMap,jf=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=xn(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),M(e=>{let t=this.getAxisMotionValue(e).get()||0;if(W.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=j(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&z.update(()=>i(e,t),!1,!0),on(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&&z.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 Of(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Ef(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&&z.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&&M(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,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=br(n,r.root,this.visualElement.getTransformPagePoint()),a=Ba(r.layout.layoutBox,i);if(t){let e=t(ir(a));this.hasMutatedConstraints=!!e,e&&(a=rr(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=M(o=>{if(!Ja(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(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 on(this.visualElement,e),n.start(nu(e,n,0,t,this.visualElement,!1))}stopAnimation(){M(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){M(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]-J(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};M(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(),M(t=>{if(!Ja(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(J(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Af.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&&En(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()),z.read(r);let o=pi(m,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(M(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=kf,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}},Mf=class extends rd{constructor(e){super(e),this.removeGroupControls=I,this.removeListeners=I,this.controls=new jf(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||I}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()}},Nf=e=>(t,n)=>{e&&z.update(()=>e(t,n),!1,!0)},Pf=class extends rd{constructor(){super(...arguments),this.removePointerDownListener=I}onPointerDown(e){this.session=new Of(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ef(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Nf(e),onStart:Nf(t),onMove:Nf(n),onEnd:(e,t)=>{delete this.session,r&&z.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()}},Ff=!1,If=class extends y{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),Ff&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Rd.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}),Ff=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||z.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Tu.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Ff=!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}},Lf={pan:{Feature:Pf},drag:{Feature:Mf,ProjectionNode:Yd,MeasureLayout:Xa}},Rf=class extends rd{mount(){let{current:e}=this.node;e&&(this.unmount=wn(e,(e,t)=>(Za(this.node,t,`Start`),e=>Za(this.node,e,`End`))))}unmount(){}},zf=class extends rd{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=Fs(pi(this.node.current,`focus`,()=>this.onFocus()),pi(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}},Bf=class extends rd{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=An(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(){}},Vf=new WeakMap,Hf=new WeakMap,Uf=e=>{let t=Vf.get(e.target);t&&t(e)},Wf=e=>{e.forEach(Uf)},Gf={some:0,all:1},Kf=class extends rd{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();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:Gf[r]},o=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)};this.stopObserver=eo(this.node.current,a,o)}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(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}},qf={inView:{Feature:Kf},tap:{Feature:Bf},focus:{Feature:zf},hover:{Feature:Rf}},Jf={layout:{ProjectionNode:Yd,MeasureLayout:Xa}},Yf=Ea({...Sf,...qf,...Lf,...Jf},Tf),Xf={renderer:Tf,...Sf,...qf},{...Xf,...Lf,...Jf},{...Sf},Zf=50,Qf=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),$f=()=>({time:0,x:Qf(),y:Qf()}),ep={x:{length:`Width`,position:`Left`},y:{length:`Height`,position:`Top`}},tp={start:0,center:.5,end:1},np=[0,0],rp={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},ip={x:0,y:0},ap=new WeakMap,op=new WeakMap,sp=new WeakMap,cp=new WeakMap,lp=new WeakMap,up=e=>e===document.scrollingElement?m:e,dp=[[rp.Enter,`entry`],[rp.Exit,`exit`],[rp.Any,`cover`],[rp.All,`contain`]],fp={start:0,end:1},pp=new Map,mp=()=>({scrollX:O(0),scrollY:O(0),scrollXProgress:O(0),scrollYProgress:O(0)}),hp=e=>e?!e.current:!1,gp=class extends Yl{constructor(){super(...arguments),this.isEnabled=!1}add(e){(gl.has(e)||Ll.has(e))&&(this.isEnabled=!0,this.update())}update(){this.set(this.isEnabled?`transform`:`auto`)}},_p=`easeInOut`,vp=20,yp=e=>typeof e==`number`,bp=e=>e.every(yp),xp=cs(),Sp=ls,Cp={some:0,all:1},wp=()=>({}),df({scrapeMotionValuesFromProps:wp,createRenderState:wp}),Tp={},de(Tp,{Group:()=>Dp,Item:()=>Pp}),Ep=f(null),Dp=h(ys),Op=50,kp=25,Ap=new Set([`auto`,`scroll`]),jp=new WeakMap,Mp=new WeakMap,Np=null,Pp=h(Ds)})),Ip=t((()=>{Fp()}));export{pe as $,Jn as A,Ro as B,O as C,dt as D,wo as E,fs as F,qu as G,Do as H,_s as I,be as J,zs as K,Oo as L,Sp as M,Io as N,Hn as O,gs as P,ye as Q,Ji as R,Yf as S,hi as T,Fo as U,ms as V,jo as W,me as X,ve as Y,xe as Z,Fp as _,$ as a,X as b,js as c,Tr as d,De as et,xp as f,hs as g,z as h,ia as i,ds as j,Un as k,ff as l,B as m,$d as n,F as o,Ct as p,ue as q,rf as r,Yl as s,Ip as t,gp as u,ht as v,su as w,ta as x,us as y,Lo as z}; //# sourceMappingURL=motion.uQdjgbkC.mjs.map