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