@plyaz/ui 0.7.4 → 0.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";var Mt=Object.defineProperty;var Dt=(e,t,r)=>t in e?Mt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var S=(e,t,r)=>Dt(e,typeof t!="symbol"?t+"":t,r);const T=require("react/jsx-runtime"),nt=require("@radix-ui/react-slot"),at=require("clsx"),st=require("react"),Pt=require("react-dom");function it(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const lt=it(st),Vt=it(Pt),Ne="-",Ft=e=>{const t=Gt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{const m=l.split(Ne);return m[0]===""&&m.length!==1&&m.shift(),ct(m,t)||Ut(l)},getConflictingClassGroupIds:(l,m)=>{const d=r[l]||[];return m&&o[l]?[...d,...o[l]]:d}}},ct=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),n=o?ct(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;const a=e.join(Ne);return(l=t.validators.find(({validator:m})=>m(a)))==null?void 0:l.classGroupId},Ue=/^\[(.+)\]$/,Ut=e=>{if(Ue.test(e)){const t=Ue.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Gt=e=>{const{theme:t,classGroups:r}=e,o={nextPart:new Map,validators:[]};for(const n in r)we(r[n],o,n,t);return o},we=(e,t,r,o)=>{e.forEach(n=>{if(typeof n=="string"){const a=n===""?t:Ge(t,n);a.classGroupId=r;return}if(typeof n=="function"){if(jt(n)){we(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([a,l])=>{we(l,Ge(t,a),r,o)})})},Ge=(e,t)=>{let r=e;return t.split(Ne).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},jt=e=>e.isThemeGetter,Bt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const n=(a,l)=>{r.set(a,l),t++,t>e&&(t=0,o=r,r=new Map)};return{get(a){let l=r.get(a);if(l!==void 0)return l;if((l=o.get(a))!==void 0)return n(a,l),l},set(a,l){r.has(a)?r.set(a,l):n(a,l)}}},ye="!",Re=":",Kt=Re.length,$t=e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=n=>{const a=[];let l=0,m=0,d=0,g;for(let k=0;k<n.length;k++){let w=n[k];if(l===0&&m===0){if(w===Re){a.push(n.slice(d,k)),d=k+Kt;continue}if(w==="/"){g=k;continue}}w==="["?l++:w==="]"?l--:w==="("?m++:w===")"&&m--}const b=a.length===0?n:n.substring(d),x=Ht(b),A=x!==b,z=g&&g>d?g-d:void 0;return{modifiers:a,hasImportantModifier:A,baseClassName:x,maybePostfixModifierPosition:z}};if(t){const n=t+Re,a=o;o=l=>l.startsWith(n)?a(l.substring(n.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(r){const n=o;o=a=>r({className:a,parseClassName:n})}return o},Ht=e=>e.endsWith(ye)?e.substring(0,e.length-1):e.startsWith(ye)?e.substring(1):e,Wt=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const n=[];let a=[];return o.forEach(l=>{l[0]==="["||t[l]?(n.push(...a.sort(),l),a=[]):a.push(l)}),n.push(...a.sort()),n}},qt=e=>({cache:Bt(e.cacheSize),parseClassName:$t(e),sortModifiers:Wt(e),...Ft(e)}),Yt=/\s+/,Jt=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:a}=t,l=[],m=e.trim().split(Yt);let d="";for(let g=m.length-1;g>=0;g-=1){const b=m[g],{isExternal:x,modifiers:A,hasImportantModifier:z,baseClassName:k,maybePostfixModifierPosition:w}=r(b);if(x){d=b+(d.length>0?" "+d:d);continue}let N=!!w,M=o(N?k.substring(0,w):k);if(!M){if(!N){d=b+(d.length>0?" "+d:d);continue}if(M=o(k),!M){d=b+(d.length>0?" "+d:d);continue}N=!1}const ne=a(A).join(":"),ee=z?ne+ye:ne,G=ee+M;if(l.includes(G))continue;l.push(G);const j=n(M,N);for(let D=0;D<j.length;++D){const te=j[D];l.push(ee+te)}d=b+(d.length>0?" "+d:d)}return d};function Xt(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=dt(t))&&(o&&(o+=" "),o+=r);return o}const dt=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=dt(e[o]))&&(r&&(r+=" "),r+=t);return r};function Qt(e,...t){let r,o,n,a=l;function l(d){const g=t.reduce((b,x)=>x(b),e());return r=qt(g),o=r.cache.get,n=r.cache.set,a=m,m(d)}function m(d){const g=o(d);if(g)return g;const b=Jt(d,r);return n(d,b),b}return function(){return a(Xt.apply(null,arguments))}}const h=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},ut=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,mt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zt=/^\d+\/\d+$/,er=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,tr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,rr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,or=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,K=e=>Zt.test(e),p=e=>!!e&&!Number.isNaN(Number(e)),L=e=>!!e&&Number.isInteger(Number(e)),he=e=>e.endsWith("%")&&p(e.slice(0,-1)),C=e=>er.test(e),ar=()=>!0,sr=e=>tr.test(e)&&!rr.test(e),ft=()=>!1,ir=e=>or.test(e),lr=e=>nr.test(e),cr=e=>!s(e)&&!i(e),dr=e=>Q(e,bt,ft),s=e=>ut.test(e),V=e=>Q(e,ht,sr),ve=e=>Q(e,gr,p),je=e=>Q(e,pt,ft),ur=e=>Q(e,gt,lr),de=e=>Q(e,vt,ir),i=e=>mt.test(e),re=e=>Z(e,ht),mr=e=>Z(e,br),Be=e=>Z(e,pt),fr=e=>Z(e,bt),pr=e=>Z(e,gt),ue=e=>Z(e,vt,!0),Q=(e,t,r)=>{const o=ut.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},Z=(e,t,r=!1)=>{const o=mt.exec(e);return o?o[1]?t(o[1]):r:!1},pt=e=>e==="position"||e==="percentage",gt=e=>e==="image"||e==="url",bt=e=>e==="length"||e==="size"||e==="bg-size",ht=e=>e==="length",gr=e=>e==="number",br=e=>e==="family-name",vt=e=>e==="shadow",hr=()=>{const e=h("color"),t=h("font"),r=h("text"),o=h("font-weight"),n=h("tracking"),a=h("leading"),l=h("breakpoint"),m=h("container"),d=h("spacing"),g=h("radius"),b=h("shadow"),x=h("inset-shadow"),A=h("text-shadow"),z=h("drop-shadow"),k=h("blur"),w=h("perspective"),N=h("aspect"),M=h("ease"),ne=h("animate"),ee=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],j=()=>[...G(),i,s],D=()=>["auto","hidden","clip","visible","scroll"],te=()=>["auto","contain","none"],u=()=>[i,s,d],I=()=>[K,"full","auto",...u()],Te=()=>[L,"none","subgrid",i,s],Le=()=>["auto",{span:["full",L,i,s]},L,i,s],ae=()=>[L,"auto",i,s],ze=()=>["auto","min","max","fr",i,s],pe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],B=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...u()],P=()=>[K,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...u()],c=()=>[e,i,s],Me=()=>[...G(),Be,je,{position:[i,s]}],De=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Pe=()=>["auto","cover","contain",fr,dr,{size:[i,s]}],ge=()=>[he,re,V],_=()=>["","none","full",g,i,s],y=()=>["",p,re,V],se=()=>["solid","dashed","dotted","double"],Ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],v=()=>[p,he,Be,je],Fe=()=>["","none",k,i,s],ie=()=>["none",p,i,s],le=()=>["none",p,i,s],be=()=>[p,i,s],ce=()=>[K,"full",...u()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[C],breakpoint:[C],color:[ar],container:[C],"drop-shadow":[C],ease:["in","out","in-out"],font:[cr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[C],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[C],shadow:[C],spacing:["px",p],text:[C],"text-shadow":[C],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",K,s,i,N]}],container:["container"],columns:[{columns:[p,s,i,m]}],"break-after":[{"break-after":ee()}],"break-before":[{"break-before":ee()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:j()}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:te()}],"overscroll-x":[{"overscroll-x":te()}],"overscroll-y":[{"overscroll-y":te()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[L,"auto",i,s]}],basis:[{basis:[K,"full","auto",m,...u()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[p,K,"auto","initial","none",s]}],grow:[{grow:["",p,i,s]}],shrink:[{shrink:["",p,i,s]}],order:[{order:[L,"first","last","none",i,s]}],"grid-cols":[{"grid-cols":Te()}],"col-start-end":[{col:Le()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":Te()}],"row-start-end":[{row:Le()}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ze()}],"auto-rows":[{"auto-rows":ze()}],gap:[{gap:u()}],"gap-x":[{"gap-x":u()}],"gap-y":[{"gap-y":u()}],"justify-content":[{justify:[...pe(),"normal"]}],"justify-items":[{"justify-items":[...B(),"normal"]}],"justify-self":[{"justify-self":["auto",...B()]}],"align-content":[{content:["normal",...pe()]}],"align-items":[{items:[...B(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...B(),{baseline:["","last"]}]}],"place-content":[{"place-content":pe()}],"place-items":[{"place-items":[...B(),"baseline"]}],"place-self":[{"place-self":["auto",...B()]}],p:[{p:u()}],px:[{px:u()}],py:[{py:u()}],ps:[{ps:u()}],pe:[{pe:u()}],pt:[{pt:u()}],pr:[{pr:u()}],pb:[{pb:u()}],pl:[{pl:u()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":u()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":u()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],w:[{w:[m,"screen",...P()]}],"min-w":[{"min-w":[m,"screen","none",...P()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[l]},...P()]}],h:[{h:["screen","lh",...P()]}],"min-h":[{"min-h":["screen","lh","none",...P()]}],"max-h":[{"max-h":["screen","lh",...P()]}],"font-size":[{text:["base",r,re,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,i,ve]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",he,s]}],"font-family":[{font:[mr,s,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,i,s]}],"line-clamp":[{"line-clamp":[p,"none",i,ve]}],leading:[{leading:[a,...u()]}],"list-image":[{"list-image":["none",i,s]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",i,s]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:c()}],"text-color":[{text:c()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:[p,"from-font","auto",i,V]}],"text-decoration-color":[{decoration:c()}],"underline-offset":[{"underline-offset":[p,"auto",i,s]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i,s]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",i,s]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Me()}],"bg-repeat":[{bg:De()}],"bg-size":[{bg:Pe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},L,i,s],radial:["",i,s],conic:[L,i,s]},pr,ur]}],"bg-color":[{bg:c()}],"gradient-from-pos":[{from:ge()}],"gradient-via-pos":[{via:ge()}],"gradient-to-pos":[{to:ge()}],"gradient-from":[{from:c()}],"gradient-via":[{via:c()}],"gradient-to":[{to:c()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:y()}],"border-w-x":[{"border-x":y()}],"border-w-y":[{"border-y":y()}],"border-w-s":[{"border-s":y()}],"border-w-e":[{"border-e":y()}],"border-w-t":[{"border-t":y()}],"border-w-r":[{"border-r":y()}],"border-w-b":[{"border-b":y()}],"border-w-l":[{"border-l":y()}],"divide-x":[{"divide-x":y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"hidden","none"]}],"border-color":[{border:c()}],"border-color-x":[{"border-x":c()}],"border-color-y":[{"border-y":c()}],"border-color-s":[{"border-s":c()}],"border-color-e":[{"border-e":c()}],"border-color-t":[{"border-t":c()}],"border-color-r":[{"border-r":c()}],"border-color-b":[{"border-b":c()}],"border-color-l":[{"border-l":c()}],"divide-color":[{divide:c()}],"outline-style":[{outline:[...se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[p,i,s]}],"outline-w":[{outline:["",p,re,V]}],"outline-color":[{outline:c()}],shadow:[{shadow:["","none",b,ue,de]}],"shadow-color":[{shadow:c()}],"inset-shadow":[{"inset-shadow":["none",x,ue,de]}],"inset-shadow-color":[{"inset-shadow":c()}],"ring-w":[{ring:y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:c()}],"ring-offset-w":[{"ring-offset":[p,V]}],"ring-offset-color":[{"ring-offset":c()}],"inset-ring-w":[{"inset-ring":y()}],"inset-ring-color":[{"inset-ring":c()}],"text-shadow":[{"text-shadow":["none",A,ue,de]}],"text-shadow-color":[{"text-shadow":c()}],opacity:[{opacity:[p,i,s]}],"mix-blend":[{"mix-blend":[...Ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ve()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[p]}],"mask-image-linear-from-pos":[{"mask-linear-from":v()}],"mask-image-linear-to-pos":[{"mask-linear-to":v()}],"mask-image-linear-from-color":[{"mask-linear-from":c()}],"mask-image-linear-to-color":[{"mask-linear-to":c()}],"mask-image-t-from-pos":[{"mask-t-from":v()}],"mask-image-t-to-pos":[{"mask-t-to":v()}],"mask-image-t-from-color":[{"mask-t-from":c()}],"mask-image-t-to-color":[{"mask-t-to":c()}],"mask-image-r-from-pos":[{"mask-r-from":v()}],"mask-image-r-to-pos":[{"mask-r-to":v()}],"mask-image-r-from-color":[{"mask-r-from":c()}],"mask-image-r-to-color":[{"mask-r-to":c()}],"mask-image-b-from-pos":[{"mask-b-from":v()}],"mask-image-b-to-pos":[{"mask-b-to":v()}],"mask-image-b-from-color":[{"mask-b-from":c()}],"mask-image-b-to-color":[{"mask-b-to":c()}],"mask-image-l-from-pos":[{"mask-l-from":v()}],"mask-image-l-to-pos":[{"mask-l-to":v()}],"mask-image-l-from-color":[{"mask-l-from":c()}],"mask-image-l-to-color":[{"mask-l-to":c()}],"mask-image-x-from-pos":[{"mask-x-from":v()}],"mask-image-x-to-pos":[{"mask-x-to":v()}],"mask-image-x-from-color":[{"mask-x-from":c()}],"mask-image-x-to-color":[{"mask-x-to":c()}],"mask-image-y-from-pos":[{"mask-y-from":v()}],"mask-image-y-to-pos":[{"mask-y-to":v()}],"mask-image-y-from-color":[{"mask-y-from":c()}],"mask-image-y-to-color":[{"mask-y-to":c()}],"mask-image-radial":[{"mask-radial":[i,s]}],"mask-image-radial-from-pos":[{"mask-radial-from":v()}],"mask-image-radial-to-pos":[{"mask-radial-to":v()}],"mask-image-radial-from-color":[{"mask-radial-from":c()}],"mask-image-radial-to-color":[{"mask-radial-to":c()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":G()}],"mask-image-conic-pos":[{"mask-conic":[p]}],"mask-image-conic-from-pos":[{"mask-conic-from":v()}],"mask-image-conic-to-pos":[{"mask-conic-to":v()}],"mask-image-conic-from-color":[{"mask-conic-from":c()}],"mask-image-conic-to-color":[{"mask-conic-to":c()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Me()}],"mask-repeat":[{mask:De()}],"mask-size":[{mask:Pe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",i,s]}],filter:[{filter:["","none",i,s]}],blur:[{blur:Fe()}],brightness:[{brightness:[p,i,s]}],contrast:[{contrast:[p,i,s]}],"drop-shadow":[{"drop-shadow":["","none",z,ue,de]}],"drop-shadow-color":[{"drop-shadow":c()}],grayscale:[{grayscale:["",p,i,s]}],"hue-rotate":[{"hue-rotate":[p,i,s]}],invert:[{invert:["",p,i,s]}],saturate:[{saturate:[p,i,s]}],sepia:[{sepia:["",p,i,s]}],"backdrop-filter":[{"backdrop-filter":["","none",i,s]}],"backdrop-blur":[{"backdrop-blur":Fe()}],"backdrop-brightness":[{"backdrop-brightness":[p,i,s]}],"backdrop-contrast":[{"backdrop-contrast":[p,i,s]}],"backdrop-grayscale":[{"backdrop-grayscale":["",p,i,s]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p,i,s]}],"backdrop-invert":[{"backdrop-invert":["",p,i,s]}],"backdrop-opacity":[{"backdrop-opacity":[p,i,s]}],"backdrop-saturate":[{"backdrop-saturate":[p,i,s]}],"backdrop-sepia":[{"backdrop-sepia":["",p,i,s]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":u()}],"border-spacing-x":[{"border-spacing-x":u()}],"border-spacing-y":[{"border-spacing-y":u()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",i,s]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[p,"initial",i,s]}],ease:[{ease:["linear","initial",M,i,s]}],delay:[{delay:[p,i,s]}],animate:[{animate:["none",ne,i,s]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,i,s]}],"perspective-origin":[{"perspective-origin":j()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:be()}],"skew-x":[{"skew-x":be()}],"skew-y":[{"skew-y":be()}],transform:[{transform:[i,s,"","none","gpu","cpu"]}],"transform-origin":[{origin:j()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ce()}],"translate-x":[{"translate-x":ce()}],"translate-y":[{"translate-y":ce()}],"translate-z":[{"translate-z":ce()}],"translate-none":["translate-none"],accent:[{accent:c()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:c()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",i,s]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",i,s]}],fill:[{fill:["none",...c()]}],"stroke-w":[{stroke:[p,re,V,ve]}],stroke:[{stroke:["none",...c()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},vr=Qt(hr);function oe(...e){return vr(at.clsx(e))}const Ke=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,$e=at.clsx,_t=(e,t)=>r=>{var o;if((t==null?void 0:t.variants)==null)return $e(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:n,defaultVariants:a}=t,l=Object.keys(n).map(g=>{const b=r==null?void 0:r[g],x=a==null?void 0:a[g];if(b===null)return null;const A=Ke(b)||Ke(x);return n[g][A]}),m=r&&Object.entries(r).reduce((g,b)=>{let[x,A]=b;return A===void 0||(g[x]=A),g},{}),d=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((g,b)=>{let{class:x,className:A,...z}=b;return Object.entries(z).every(k=>{let[w,N]=k;return Array.isArray(N)?N.includes({...a,...m}[w]):{...a,...m}[w]===N})?[...g,x,A]:g},[]);return $e(e,l,d,r==null?void 0:r.class,r==null?void 0:r.className)},xt=_t("inline-flex justify-center cursor-pointer items-center gap-2 aria-invalid:border-destructive focus-visible:border-ring rounded-full outline-none aria-invalid:ring-destructive/20 focus-visible:ring-[3px] focus-visible:ring-ring/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 font-medium text-sm whitespace-nowrap [&_svg]:pointer-events-none disabled:pointer-events-none shrink-0 [&_svg]:shrink-0",{variants:{variant:{default:`
1
+ "use strict";var Mt=Object.defineProperty;var Dt=(e,t,r)=>t in e?Mt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var S=(e,t,r)=>Dt(e,typeof t!="symbol"?t+"":t,r);const T=require("react/jsx-runtime"),nt=require("@radix-ui/react-slot"),at=require("clsx"),st=require("react"),Pt=require("react-dom");function it(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const lt=it(st),Vt=it(Pt),Ne="-",Ft=e=>{const t=Gt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{const m=l.split(Ne);return m[0]===""&&m.length!==1&&m.shift(),ct(m,t)||Ut(l)},getConflictingClassGroupIds:(l,m)=>{const d=r[l]||[];return m&&o[l]?[...d,...o[l]]:d}}},ct=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),n=o?ct(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;const a=e.join(Ne);return(l=t.validators.find(({validator:m})=>m(a)))==null?void 0:l.classGroupId},Ue=/^\[(.+)\]$/,Ut=e=>{if(Ue.test(e)){const t=Ue.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Gt=e=>{const{theme:t,classGroups:r}=e,o={nextPart:new Map,validators:[]};for(const n in r)we(r[n],o,n,t);return o},we=(e,t,r,o)=>{e.forEach(n=>{if(typeof n=="string"){const a=n===""?t:Ge(t,n);a.classGroupId=r;return}if(typeof n=="function"){if(jt(n)){we(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([a,l])=>{we(l,Ge(t,a),r,o)})})},Ge=(e,t)=>{let r=e;return t.split(Ne).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},jt=e=>e.isThemeGetter,Bt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const n=(a,l)=>{r.set(a,l),t++,t>e&&(t=0,o=r,r=new Map)};return{get(a){let l=r.get(a);if(l!==void 0)return l;if((l=o.get(a))!==void 0)return n(a,l),l},set(a,l){r.has(a)?r.set(a,l):n(a,l)}}},ye="!",Re=":",Kt=Re.length,$t=e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=n=>{const a=[];let l=0,m=0,d=0,g;for(let k=0;k<n.length;k++){let w=n[k];if(l===0&&m===0){if(w===Re){a.push(n.slice(d,k)),d=k+Kt;continue}if(w==="/"){g=k;continue}}w==="["?l++:w==="]"?l--:w==="("?m++:w===")"&&m--}const b=a.length===0?n:n.substring(d),x=Ht(b),A=x!==b,z=g&&g>d?g-d:void 0;return{modifiers:a,hasImportantModifier:A,baseClassName:x,maybePostfixModifierPosition:z}};if(t){const n=t+Re,a=o;o=l=>l.startsWith(n)?a(l.substring(n.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(r){const n=o;o=a=>r({className:a,parseClassName:n})}return o},Ht=e=>e.endsWith(ye)?e.substring(0,e.length-1):e.startsWith(ye)?e.substring(1):e,Wt=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const n=[];let a=[];return o.forEach(l=>{l[0]==="["||t[l]?(n.push(...a.sort(),l),a=[]):a.push(l)}),n.push(...a.sort()),n}},qt=e=>({cache:Bt(e.cacheSize),parseClassName:$t(e),sortModifiers:Wt(e),...Ft(e)}),Yt=/\s+/,Jt=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:a}=t,l=[],m=e.trim().split(Yt);let d="";for(let g=m.length-1;g>=0;g-=1){const b=m[g],{isExternal:x,modifiers:A,hasImportantModifier:z,baseClassName:k,maybePostfixModifierPosition:w}=r(b);if(x){d=b+(d.length>0?" "+d:d);continue}let N=!!w,M=o(N?k.substring(0,w):k);if(!M){if(!N){d=b+(d.length>0?" "+d:d);continue}if(M=o(k),!M){d=b+(d.length>0?" "+d:d);continue}N=!1}const ne=a(A).join(":"),ee=z?ne+ye:ne,G=ee+M;if(l.includes(G))continue;l.push(G);const j=n(M,N);for(let D=0;D<j.length;++D){const te=j[D];l.push(ee+te)}d=b+(d.length>0?" "+d:d)}return d};function Xt(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=dt(t))&&(o&&(o+=" "),o+=r);return o}const dt=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=dt(e[o]))&&(r&&(r+=" "),r+=t);return r};function Qt(e,...t){let r,o,n,a=l;function l(d){const g=t.reduce((b,x)=>x(b),e());return r=qt(g),o=r.cache.get,n=r.cache.set,a=m,m(d)}function m(d){const g=o(d);if(g)return g;const b=Jt(d,r);return n(d,b),b}return function(){return a(Xt.apply(null,arguments))}}const h=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},ut=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,mt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zt=/^\d+\/\d+$/,er=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,tr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,rr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,or=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,K=e=>Zt.test(e),p=e=>!!e&&!Number.isNaN(Number(e)),L=e=>!!e&&Number.isInteger(Number(e)),he=e=>e.endsWith("%")&&p(e.slice(0,-1)),C=e=>er.test(e),ar=()=>!0,sr=e=>tr.test(e)&&!rr.test(e),ft=()=>!1,ir=e=>or.test(e),lr=e=>nr.test(e),cr=e=>!s(e)&&!i(e),dr=e=>Q(e,bt,ft),s=e=>ut.test(e),V=e=>Q(e,ht,sr),ve=e=>Q(e,gr,p),je=e=>Q(e,pt,ft),ur=e=>Q(e,gt,lr),de=e=>Q(e,vt,ir),i=e=>mt.test(e),re=e=>Z(e,ht),mr=e=>Z(e,br),Be=e=>Z(e,pt),fr=e=>Z(e,bt),pr=e=>Z(e,gt),ue=e=>Z(e,vt,!0),Q=(e,t,r)=>{const o=ut.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},Z=(e,t,r=!1)=>{const o=mt.exec(e);return o?o[1]?t(o[1]):r:!1},pt=e=>e==="position"||e==="percentage",gt=e=>e==="image"||e==="url",bt=e=>e==="length"||e==="size"||e==="bg-size",ht=e=>e==="length",gr=e=>e==="number",br=e=>e==="family-name",vt=e=>e==="shadow",hr=()=>{const e=h("color"),t=h("font"),r=h("text"),o=h("font-weight"),n=h("tracking"),a=h("leading"),l=h("breakpoint"),m=h("container"),d=h("spacing"),g=h("radius"),b=h("shadow"),x=h("inset-shadow"),A=h("text-shadow"),z=h("drop-shadow"),k=h("blur"),w=h("perspective"),N=h("aspect"),M=h("ease"),ne=h("animate"),ee=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],j=()=>[...G(),i,s],D=()=>["auto","hidden","clip","visible","scroll"],te=()=>["auto","contain","none"],u=()=>[i,s,d],I=()=>[K,"full","auto",...u()],Te=()=>[L,"none","subgrid",i,s],Le=()=>["auto",{span:["full",L,i,s]},L,i,s],ae=()=>[L,"auto",i,s],ze=()=>["auto","min","max","fr",i,s],pe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],B=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...u()],P=()=>[K,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...u()],c=()=>[e,i,s],Me=()=>[...G(),Be,je,{position:[i,s]}],De=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Pe=()=>["auto","cover","contain",fr,dr,{size:[i,s]}],ge=()=>[he,re,V],_=()=>["","none","full",g,i,s],y=()=>["",p,re,V],se=()=>["solid","dashed","dotted","double"],Ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],v=()=>[p,he,Be,je],Fe=()=>["","none",k,i,s],ie=()=>["none",p,i,s],le=()=>["none",p,i,s],be=()=>[p,i,s],ce=()=>[K,"full",...u()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[C],breakpoint:[C],color:[ar],container:[C],"drop-shadow":[C],ease:["in","out","in-out"],font:[cr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[C],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[C],shadow:[C],spacing:["px",p],text:[C],"text-shadow":[C],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",K,s,i,N]}],container:["container"],columns:[{columns:[p,s,i,m]}],"break-after":[{"break-after":ee()}],"break-before":[{"break-before":ee()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:j()}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:te()}],"overscroll-x":[{"overscroll-x":te()}],"overscroll-y":[{"overscroll-y":te()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[L,"auto",i,s]}],basis:[{basis:[K,"full","auto",m,...u()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[p,K,"auto","initial","none",s]}],grow:[{grow:["",p,i,s]}],shrink:[{shrink:["",p,i,s]}],order:[{order:[L,"first","last","none",i,s]}],"grid-cols":[{"grid-cols":Te()}],"col-start-end":[{col:Le()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":Te()}],"row-start-end":[{row:Le()}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ze()}],"auto-rows":[{"auto-rows":ze()}],gap:[{gap:u()}],"gap-x":[{"gap-x":u()}],"gap-y":[{"gap-y":u()}],"justify-content":[{justify:[...pe(),"normal"]}],"justify-items":[{"justify-items":[...B(),"normal"]}],"justify-self":[{"justify-self":["auto",...B()]}],"align-content":[{content:["normal",...pe()]}],"align-items":[{items:[...B(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...B(),{baseline:["","last"]}]}],"place-content":[{"place-content":pe()}],"place-items":[{"place-items":[...B(),"baseline"]}],"place-self":[{"place-self":["auto",...B()]}],p:[{p:u()}],px:[{px:u()}],py:[{py:u()}],ps:[{ps:u()}],pe:[{pe:u()}],pt:[{pt:u()}],pr:[{pr:u()}],pb:[{pb:u()}],pl:[{pl:u()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":u()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":u()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],w:[{w:[m,"screen",...P()]}],"min-w":[{"min-w":[m,"screen","none",...P()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[l]},...P()]}],h:[{h:["screen","lh",...P()]}],"min-h":[{"min-h":["screen","lh","none",...P()]}],"max-h":[{"max-h":["screen","lh",...P()]}],"font-size":[{text:["base",r,re,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,i,ve]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",he,s]}],"font-family":[{font:[mr,s,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,i,s]}],"line-clamp":[{"line-clamp":[p,"none",i,ve]}],leading:[{leading:[a,...u()]}],"list-image":[{"list-image":["none",i,s]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",i,s]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:c()}],"text-color":[{text:c()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:[p,"from-font","auto",i,V]}],"text-decoration-color":[{decoration:c()}],"underline-offset":[{"underline-offset":[p,"auto",i,s]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i,s]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",i,s]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Me()}],"bg-repeat":[{bg:De()}],"bg-size":[{bg:Pe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},L,i,s],radial:["",i,s],conic:[L,i,s]},pr,ur]}],"bg-color":[{bg:c()}],"gradient-from-pos":[{from:ge()}],"gradient-via-pos":[{via:ge()}],"gradient-to-pos":[{to:ge()}],"gradient-from":[{from:c()}],"gradient-via":[{via:c()}],"gradient-to":[{to:c()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:y()}],"border-w-x":[{"border-x":y()}],"border-w-y":[{"border-y":y()}],"border-w-s":[{"border-s":y()}],"border-w-e":[{"border-e":y()}],"border-w-t":[{"border-t":y()}],"border-w-r":[{"border-r":y()}],"border-w-b":[{"border-b":y()}],"border-w-l":[{"border-l":y()}],"divide-x":[{"divide-x":y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"hidden","none"]}],"border-color":[{border:c()}],"border-color-x":[{"border-x":c()}],"border-color-y":[{"border-y":c()}],"border-color-s":[{"border-s":c()}],"border-color-e":[{"border-e":c()}],"border-color-t":[{"border-t":c()}],"border-color-r":[{"border-r":c()}],"border-color-b":[{"border-b":c()}],"border-color-l":[{"border-l":c()}],"divide-color":[{divide:c()}],"outline-style":[{outline:[...se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[p,i,s]}],"outline-w":[{outline:["",p,re,V]}],"outline-color":[{outline:c()}],shadow:[{shadow:["","none",b,ue,de]}],"shadow-color":[{shadow:c()}],"inset-shadow":[{"inset-shadow":["none",x,ue,de]}],"inset-shadow-color":[{"inset-shadow":c()}],"ring-w":[{ring:y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:c()}],"ring-offset-w":[{"ring-offset":[p,V]}],"ring-offset-color":[{"ring-offset":c()}],"inset-ring-w":[{"inset-ring":y()}],"inset-ring-color":[{"inset-ring":c()}],"text-shadow":[{"text-shadow":["none",A,ue,de]}],"text-shadow-color":[{"text-shadow":c()}],opacity:[{opacity:[p,i,s]}],"mix-blend":[{"mix-blend":[...Ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ve()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[p]}],"mask-image-linear-from-pos":[{"mask-linear-from":v()}],"mask-image-linear-to-pos":[{"mask-linear-to":v()}],"mask-image-linear-from-color":[{"mask-linear-from":c()}],"mask-image-linear-to-color":[{"mask-linear-to":c()}],"mask-image-t-from-pos":[{"mask-t-from":v()}],"mask-image-t-to-pos":[{"mask-t-to":v()}],"mask-image-t-from-color":[{"mask-t-from":c()}],"mask-image-t-to-color":[{"mask-t-to":c()}],"mask-image-r-from-pos":[{"mask-r-from":v()}],"mask-image-r-to-pos":[{"mask-r-to":v()}],"mask-image-r-from-color":[{"mask-r-from":c()}],"mask-image-r-to-color":[{"mask-r-to":c()}],"mask-image-b-from-pos":[{"mask-b-from":v()}],"mask-image-b-to-pos":[{"mask-b-to":v()}],"mask-image-b-from-color":[{"mask-b-from":c()}],"mask-image-b-to-color":[{"mask-b-to":c()}],"mask-image-l-from-pos":[{"mask-l-from":v()}],"mask-image-l-to-pos":[{"mask-l-to":v()}],"mask-image-l-from-color":[{"mask-l-from":c()}],"mask-image-l-to-color":[{"mask-l-to":c()}],"mask-image-x-from-pos":[{"mask-x-from":v()}],"mask-image-x-to-pos":[{"mask-x-to":v()}],"mask-image-x-from-color":[{"mask-x-from":c()}],"mask-image-x-to-color":[{"mask-x-to":c()}],"mask-image-y-from-pos":[{"mask-y-from":v()}],"mask-image-y-to-pos":[{"mask-y-to":v()}],"mask-image-y-from-color":[{"mask-y-from":c()}],"mask-image-y-to-color":[{"mask-y-to":c()}],"mask-image-radial":[{"mask-radial":[i,s]}],"mask-image-radial-from-pos":[{"mask-radial-from":v()}],"mask-image-radial-to-pos":[{"mask-radial-to":v()}],"mask-image-radial-from-color":[{"mask-radial-from":c()}],"mask-image-radial-to-color":[{"mask-radial-to":c()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":G()}],"mask-image-conic-pos":[{"mask-conic":[p]}],"mask-image-conic-from-pos":[{"mask-conic-from":v()}],"mask-image-conic-to-pos":[{"mask-conic-to":v()}],"mask-image-conic-from-color":[{"mask-conic-from":c()}],"mask-image-conic-to-color":[{"mask-conic-to":c()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Me()}],"mask-repeat":[{mask:De()}],"mask-size":[{mask:Pe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",i,s]}],filter:[{filter:["","none",i,s]}],blur:[{blur:Fe()}],brightness:[{brightness:[p,i,s]}],contrast:[{contrast:[p,i,s]}],"drop-shadow":[{"drop-shadow":["","none",z,ue,de]}],"drop-shadow-color":[{"drop-shadow":c()}],grayscale:[{grayscale:["",p,i,s]}],"hue-rotate":[{"hue-rotate":[p,i,s]}],invert:[{invert:["",p,i,s]}],saturate:[{saturate:[p,i,s]}],sepia:[{sepia:["",p,i,s]}],"backdrop-filter":[{"backdrop-filter":["","none",i,s]}],"backdrop-blur":[{"backdrop-blur":Fe()}],"backdrop-brightness":[{"backdrop-brightness":[p,i,s]}],"backdrop-contrast":[{"backdrop-contrast":[p,i,s]}],"backdrop-grayscale":[{"backdrop-grayscale":["",p,i,s]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p,i,s]}],"backdrop-invert":[{"backdrop-invert":["",p,i,s]}],"backdrop-opacity":[{"backdrop-opacity":[p,i,s]}],"backdrop-saturate":[{"backdrop-saturate":[p,i,s]}],"backdrop-sepia":[{"backdrop-sepia":["",p,i,s]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":u()}],"border-spacing-x":[{"border-spacing-x":u()}],"border-spacing-y":[{"border-spacing-y":u()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",i,s]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[p,"initial",i,s]}],ease:[{ease:["linear","initial",M,i,s]}],delay:[{delay:[p,i,s]}],animate:[{animate:["none",ne,i,s]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,i,s]}],"perspective-origin":[{"perspective-origin":j()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:be()}],"skew-x":[{"skew-x":be()}],"skew-y":[{"skew-y":be()}],transform:[{transform:[i,s,"","none","gpu","cpu"]}],"transform-origin":[{origin:j()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ce()}],"translate-x":[{"translate-x":ce()}],"translate-y":[{"translate-y":ce()}],"translate-z":[{"translate-z":ce()}],"translate-none":["translate-none"],accent:[{accent:c()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:c()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",i,s]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",i,s]}],fill:[{fill:["none",...c()]}],"stroke-w":[{stroke:[p,re,V,ve]}],stroke:[{stroke:["none",...c()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},vr=Qt(hr);function oe(...e){return vr(at.clsx(e))}const Ke=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,$e=at.clsx,_t=(e,t)=>r=>{var o;if((t==null?void 0:t.variants)==null)return $e(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:n,defaultVariants:a}=t,l=Object.keys(n).map(g=>{const b=r==null?void 0:r[g],x=a==null?void 0:a[g];if(b===null)return null;const A=Ke(b)||Ke(x);return n[g][A]}),m=r&&Object.entries(r).reduce((g,b)=>{let[x,A]=b;return A===void 0||(g[x]=A),g},{}),d=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((g,b)=>{let{class:x,className:A,...z}=b;return Object.entries(z).every(k=>{let[w,N]=k;return Array.isArray(N)?N.includes({...a,...m}[w]):{...a,...m}[w]===N})?[...g,x,A]:g},[]);return $e(e,l,d,r==null?void 0:r.class,r==null?void 0:r.className)},xt=_t("inline-flex justify-center cursor-pointer items-center gap-1.5 aria-invalid:border-destructive focus-visible:border-ring rounded-full outline-none aria-invalid:ring-destructive/20 focus-visible:ring-[3px] focus-visible:ring-ring/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 font-medium text-sm whitespace-nowrap [&_svg]:pointer-events-none disabled:pointer-events-none shrink-0 [&_svg]:shrink-0",{variants:{variant:{default:`
2
2
  bg-primary-foreground text-background
3
3
  hover:bg-gradient-orange hover:opacity-90
4
4
  disabled:bg-secondary disabled:opacity-50
@@ -27,7 +27,7 @@
27
27
  h-9 px-4 py-2
28
28
  has-[>svg]:px-3
29
29
  `,sm:`
30
- h-7 gap-1.5 px-3
30
+ h-7 gap-0.5 px-3
31
31
  has-[>svg]:px-2.5
32
32
  `,lg:`
33
33
  h-10 px-6
@@ -2764,7 +2764,7 @@ const Ke = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = at, f
2764
2764
  }, []);
2765
2765
  return $e(e, l, d, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
2766
2766
  }, pr = fr(
2767
- "inline-flex justify-center cursor-pointer items-center gap-2 aria-invalid:border-destructive focus-visible:border-ring rounded-full outline-none aria-invalid:ring-destructive/20 focus-visible:ring-[3px] focus-visible:ring-ring/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 font-medium text-sm whitespace-nowrap [&_svg]:pointer-events-none disabled:pointer-events-none shrink-0 [&_svg]:shrink-0",
2767
+ "inline-flex justify-center cursor-pointer items-center gap-1.5 aria-invalid:border-destructive focus-visible:border-ring rounded-full outline-none aria-invalid:ring-destructive/20 focus-visible:ring-[3px] focus-visible:ring-ring/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 font-medium text-sm whitespace-nowrap [&_svg]:pointer-events-none disabled:pointer-events-none shrink-0 [&_svg]:shrink-0",
2768
2768
  {
2769
2769
  variants: {
2770
2770
  variant: {
@@ -2806,7 +2806,7 @@ const Ke = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = at, f
2806
2806
  has-[>svg]:px-3
2807
2807
  `,
2808
2808
  sm: `
2809
- h-7 gap-1.5 px-3
2809
+ h-7 gap-0.5 px-3
2810
2810
  has-[>svg]:px-2.5
2811
2811
  `,
2812
2812
  lg: `
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react/jsx-runtime"),S=require("react"),T=require("./Skeleton-Bnjvq2Rm.cjs"),Wi=require("react-dom"),wt=require("@radix-ui/react-slot"),Te=require("lucide-react");require("clsx");require("@radix-ui/react-select");require("next-intl");function gf(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const h=gf(S),Ox=gf(Wi),vf=S.createContext({});function ba(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const zi=typeof window<"u",Hi=zi?S.useLayoutEffect:S.useEffect,Yi=S.createContext(null);function Ui(e,t){e.indexOf(t)===-1&&e.push(t)}function Gi(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Yt=(e,t,n)=>n>t?t:n<e?e:n;function qs(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let ur=()=>{},At=()=>{};process.env.NODE_ENV!=="production"&&(ur=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(qs(t,n))},At=(e,t,n)=>{if(!e)throw new Error(qs(t,n))});const en={},bf=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function yf(e){return typeof e=="object"&&e!==null}const xf=e=>/^0[^.\s]+$/u.test(e);function Ki(e){let t;return()=>(t===void 0&&(t=e()),t)}const ut=e=>e,kx=(e,t)=>n=>t(e(n)),Jr=(...e)=>e.reduce(kx),rr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class qi{constructor(){this.subscriptions=[]}add(t){return Ui(this.subscriptions,t),()=>Gi(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let a=0;a<o;a++){const s=this.subscriptions[a];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Dt=e=>e*1e3,yt=e=>e/1e3;function Xi(e,t){return t?e*(1e3/t):0}const Yl=new Set;function ya(e,t,n){e||Yl.has(t)||(console.warn(qs(t,n)),Yl.add(t))}const wf=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Nx=1e-7,_x=12;function Ix(e,t,n,r,o){let a,s,i=0;do s=t+(n-t)/2,a=wf(s,r,o)-e,a>0?n=s:t=s;while(Math.abs(a)>Nx&&++i<_x);return s}function eo(e,t,n,r){if(e===t&&n===r)return ut;const o=a=>Ix(a,0,1,e,n);return a=>a===0||a===1?a:wf(o(a),t,r)}const Sf=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Cf=e=>t=>1-e(1-t),Mf=eo(.33,1.53,.69,.99),Zi=Cf(Mf),Ef=Sf(Zi),Tf=e=>(e*=2)<1?.5*Zi(e):.5*(2-Math.pow(2,-10*(e-1))),Qi=e=>1-Math.sin(Math.acos(e)),Pf=Cf(Qi),Df=Sf(Qi),jx=eo(.42,0,1,1),Lx=eo(0,0,.58,1),Rf=eo(.42,0,.58,1),$x=e=>Array.isArray(e)&&typeof e[0]!="number",Af=e=>Array.isArray(e)&&typeof e[0]=="number",Ul={linear:ut,easeIn:jx,easeInOut:Rf,easeOut:Lx,circIn:Qi,circInOut:Df,circOut:Pf,backIn:Zi,backInOut:Ef,backOut:Mf,anticipate:Tf},Fx=e=>typeof e=="string",Gl=e=>{if(Af(e)){At(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return eo(t,n,r,o)}else if(Fx(e))return At(Ul[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Ul[e];return e},Do=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Bx(e,t){let n=new Set,r=new Set,o=!1,a=!1;const s=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function c(d){s.has(d)&&(u.schedule(d),e()),d(i)}const u={schedule:(d,l=!1,f=!1)=>{const g=f&&o?n:r;return l&&s.add(d),g.has(d)||g.add(d),d},cancel:d=>{r.delete(d),s.delete(d)},process:d=>{if(i=d,o){a=!0;return}o=!0,[n,r]=[r,n],n.forEach(c),n.clear(),o=!1,a&&(a=!1,u.process(d))}};return u}const Vx=40;function Of(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=Do.reduce((w,M)=>(w[M]=Bx(a),w),{}),{setup:i,read:c,resolveKeyframes:u,preUpdate:d,update:l,preRender:f,render:p,postRender:g}=s,b=()=>{const w=en.useManualTiming?o.timestamp:performance.now();n=!1,en.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(w-o.timestamp,Vx),1)),o.timestamp=w,o.isProcessing=!0,i.process(o),c.process(o),u.process(o),d.process(o),l.process(o),f.process(o),p.process(o),g.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(b))},y=()=>{n=!0,r=!0,o.isProcessing||e(b)};return{schedule:Do.reduce((w,M)=>{const C=s[M];return w[M]=(P,E=!1,D=!1)=>(n||y(),C.schedule(P,E,D)),w},{}),cancel:w=>{for(let M=0;M<Do.length;M++)s[Do[M]].cancel(w)},state:o,steps:s}}const{schedule:Ce,cancel:Ot,state:qe,steps:is}=Of(typeof requestAnimationFrame<"u"?requestAnimationFrame:ut,!0);let zo;function Wx(){zo=void 0}const lt={now:()=>(zo===void 0&&lt.set(qe.isProcessing||en.useManualTiming?qe.timestamp:performance.now()),zo),set:e=>{zo=e,queueMicrotask(Wx)}},kf=e=>t=>typeof t=="string"&&t.startsWith(e),Ji=kf("--"),zx=kf("var(--"),ec=e=>zx(e)?Hx.test(e.split("/*")[0].trim()):!1,Hx=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,dr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$r={...dr,transform:e=>Yt(0,1,e)},Ro={...dr,default:1},kr=e=>Math.round(e*1e5)/1e5,tc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Yx(e){return e==null}const Ux=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,nc=(e,t)=>n=>!!(typeof n=="string"&&Ux.test(n)&&n.startsWith(e)||t&&!Yx(n)&&Object.prototype.hasOwnProperty.call(n,t)),Nf=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,a,s,i]=r.match(tc);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}},Gx=e=>Yt(0,255,e),cs={...dr,transform:e=>Math.round(Gx(e))},Dn={test:nc("rgb","red"),parse:Nf("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+cs.transform(e)+", "+cs.transform(t)+", "+cs.transform(n)+", "+kr($r.transform(r))+")"};function Kx(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Xs={test:nc("#"),parse:Kx,transform:Dn.transform},to=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),an=to("deg"),zt=to("%"),ie=to("px"),qx=to("vh"),Xx=to("vw"),Kl={...zt,parse:e=>zt.parse(e)/100,transform:e=>zt.transform(e*100)},Un={test:nc("hsl","hue"),parse:Nf("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+zt.transform(kr(t))+", "+zt.transform(kr(n))+", "+kr($r.transform(r))+")"},Ve={test:e=>Dn.test(e)||Xs.test(e)||Un.test(e),parse:e=>Dn.test(e)?Dn.parse(e):Un.test(e)?Un.parse(e):Xs.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Dn.transform(e):Un.transform(e),getAnimatableNone:e=>{const t=Ve.parse(e);return t.alpha=0,Ve.transform(t)}},Zx=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Qx(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(tc))==null?void 0:t.length)||0)+(((n=e.match(Zx))==null?void 0:n.length)||0)>0}const _f="number",If="color",Jx="var",ew="var(",ql="${}",tw=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Fr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let a=0;const i=t.replace(tw,c=>(Ve.test(c)?(r.color.push(a),o.push(If),n.push(Ve.parse(c))):c.startsWith(ew)?(r.var.push(a),o.push(Jx),n.push(c)):(r.number.push(a),o.push(_f),n.push(parseFloat(c))),++a,ql)).split(ql);return{values:n,split:i,indexes:r,types:o}}function jf(e){return Fr(e).values}function Lf(e){const{split:t,types:n}=Fr(e),r=t.length;return o=>{let a="";for(let s=0;s<r;s++)if(a+=t[s],o[s]!==void 0){const i=n[s];i===_f?a+=kr(o[s]):i===If?a+=Ve.transform(o[s]):a+=o[s]}return a}}const nw=e=>typeof e=="number"?0:Ve.test(e)?Ve.getAnimatableNone(e):e;function rw(e){const t=jf(e);return Lf(e)(t.map(nw))}const un={test:Qx,parse:jf,createTransformer:Lf,getAnimatableNone:rw};function ls(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ow({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,a=0,s=0;if(!t)o=a=s=n;else{const i=n<.5?n*(1+t):n+t-n*t,c=2*n-i;o=ls(c,i,e+1/3),a=ls(c,i,e),s=ls(c,i,e-1/3)}return{red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function Qo(e,t){return n=>n>0?t:e}const Oe=(e,t,n)=>e+(t-e)*n,us=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},aw=[Xs,Dn,Un],sw=e=>aw.find(t=>t.test(e));function Xl(e){const t=sw(e);if(ur(!!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===Un&&(n=ow(n)),n}const Zl=(e,t)=>{const n=Xl(e),r=Xl(t);if(!n||!r)return Qo(e,t);const o={...n};return a=>(o.red=us(n.red,r.red,a),o.green=us(n.green,r.green,a),o.blue=us(n.blue,r.blue,a),o.alpha=Oe(n.alpha,r.alpha,a),Dn.transform(o))},Zs=new Set(["none","hidden"]);function iw(e,t){return Zs.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function cw(e,t){return n=>Oe(e,t,n)}function rc(e){return typeof e=="number"?cw:typeof e=="string"?ec(e)?Qo:Ve.test(e)?Zl:dw:Array.isArray(e)?$f:typeof e=="object"?Ve.test(e)?Zl:lw:Qo}function $f(e,t){const n=[...e],r=n.length,o=e.map((a,s)=>rc(a)(a,t[s]));return a=>{for(let s=0;s<r;s++)n[s]=o[s](a);return n}}function lw(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=rc(e[o])(e[o],t[o]));return o=>{for(const a in r)n[a]=r[a](o);return n}}function uw(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],s=e.indexes[a][r[a]],i=e.values[s]??0;n[o]=i,r[a]++}return n}const dw=(e,t)=>{const n=un.createTransformer(t),r=Fr(e),o=Fr(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Zs.has(e)&&!o.values.length||Zs.has(t)&&!r.values.length?iw(e,t):Jr($f(uw(r,o),o.values),n):(ur(!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"),Qo(e,t))};function Ff(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Oe(e,t,n):rc(e)(e,t)}const fw=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Ce.update(t,n),stop:()=>Ot(t),now:()=>qe.isProcessing?qe.timestamp:lt.now()}},Bf=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let a=0;a<o;a++)r+=Math.round(e(a/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Jo=2e4;function oc(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Jo;)t+=n,r=e.next(t);return t>=Jo?1/0:t}function hw(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(oc(r),Jo);return{type:"keyframes",ease:a=>r.next(o*a).value/t,duration:yt(o)}}const mw=5;function Vf(e,t,n){const r=Math.max(t-mw,0);return Xi(n-e(r),t-r)}const Re={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},ds=.001;function pw({duration:e=Re.duration,bounce:t=Re.bounce,velocity:n=Re.velocity,mass:r=Re.mass}){let o,a;ur(e<=Dt(Re.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Yt(Re.minDamping,Re.maxDamping,s),e=Yt(Re.minDuration,Re.maxDuration,yt(e)),s<1?(o=u=>{const d=u*s,l=d*e,f=d-n,p=Qs(u,s),g=Math.exp(-l);return ds-f/p*g},a=u=>{const l=u*s*e,f=l*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-l),b=Qs(Math.pow(u,2),s);return(-o(u)+ds>0?-1:1)*((f-p)*g)/b}):(o=u=>{const d=Math.exp(-u*e),l=(u-n)*e+1;return-ds+d*l},a=u=>{const d=Math.exp(-u*e),l=(n-u)*(e*e);return d*l});const i=5/e,c=vw(o,a,i);if(e=Dt(e),isNaN(c))return{stiffness:Re.stiffness,damping:Re.damping,duration:e};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const gw=12;function vw(e,t,n){let r=n;for(let o=1;o<gw;o++)r=r-e(r)/t(r);return r}function Qs(e,t){return e*Math.sqrt(1-t*t)}const bw=["duration","bounce"],yw=["stiffness","damping","mass"];function Ql(e,t){return t.some(n=>e[n]!==void 0)}function xw(e){let t={velocity:Re.velocity,stiffness:Re.stiffness,damping:Re.damping,mass:Re.mass,isResolvedFromDuration:!1,...e};if(!Ql(e,yw)&&Ql(e,bw))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,a=2*Yt(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Re.mass,stiffness:o,damping:a}}else{const n=pw(e);t={...t,...n,mass:Re.mass},t.isResolvedFromDuration=!0}return t}function ea(e=Re.visualDuration,t=Re.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],i={done:!1,value:a},{stiffness:c,damping:u,mass:d,duration:l,velocity:f,isResolvedFromDuration:p}=xw({...n,velocity:-yt(n.velocity||0)}),g=f||0,b=u/(2*Math.sqrt(c*d)),y=s-a,v=yt(Math.sqrt(c/d)),x=Math.abs(y)<5;r||(r=x?Re.restSpeed.granular:Re.restSpeed.default),o||(o=x?Re.restDelta.granular:Re.restDelta.default);let w;if(b<1){const C=Qs(v,b);w=P=>{const E=Math.exp(-b*v*P);return s-E*((g+b*v*y)/C*Math.sin(C*P)+y*Math.cos(C*P))}}else if(b===1)w=C=>s-Math.exp(-v*C)*(y+(g+v*y)*C);else{const C=v*Math.sqrt(b*b-1);w=P=>{const E=Math.exp(-b*v*P),D=Math.min(C*P,300);return s-E*((g+b*v*y)*Math.sinh(D)+C*y*Math.cosh(D))/C}}const M={calculatedDuration:p&&l||null,next:C=>{const P=w(C);if(p)i.done=C>=l;else{let E=C===0?g:0;b<1&&(E=C===0?Dt(g):Vf(w,C,P));const D=Math.abs(E)<=r,R=Math.abs(s-P)<=o;i.done=D&&R}return i.value=i.done?s:P,i},toString:()=>{const C=Math.min(oc(M),Jo),P=Bf(E=>M.next(C*E).value,C,30);return C+"ms "+P},toTransition:()=>{}};return M}ea.applyToOptions=e=>{const t=hw(e,100,ea);return e.ease=t.ease,e.duration=Dt(t.duration),e.type="keyframes",e};function Js({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:s,min:i,max:c,restDelta:u=.5,restSpeed:d}){const l=e[0],f={done:!1,value:l},p=D=>i!==void 0&&D<i||c!==void 0&&D>c,g=D=>i===void 0?c:c===void 0||Math.abs(i-D)<Math.abs(c-D)?i:c;let b=n*t;const y=l+b,v=s===void 0?y:s(y);v!==y&&(b=v-l);const x=D=>-b*Math.exp(-D/r),w=D=>v+x(D),M=D=>{const R=x(D),A=w(D);f.done=Math.abs(R)<=u,f.value=f.done?v:A};let C,P;const E=D=>{p(f.value)&&(C=D,P=ea({keyframes:[f.value,g(f.value)],velocity:Vf(w,D,f.value),damping:o,stiffness:a,restDelta:u,restSpeed:d}))};return E(0),{calculatedDuration:null,next:D=>{let R=!1;return!P&&C===void 0&&(R=!0,M(D),E(D)),C!==void 0&&D>=C?P.next(D-C):(!R&&M(D),f)}}}function ww(e,t,n){const r=[],o=n||en.mix||Ff,a=e.length-1;for(let s=0;s<a;s++){let i=o(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||ut:t;i=Jr(c,i)}r.push(i)}return r}function ac(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;if(At(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];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=ww(t,r,o),c=i.length,u=d=>{if(s&&d<e[0])return t[0];let l=0;if(c>1)for(;l<e.length-2&&!(d<e[l+1]);l++);const f=rr(e[l],e[l+1],d);return i[l](f)};return n?d=>u(Yt(e[0],e[a-1],d)):u}function Sw(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=rr(0,t,r);e.push(Oe(n,1,o))}}function Wf(e){const t=[0];return Sw(t,e.length-1),t}function Cw(e,t){return e.map(n=>n*t)}function Mw(e,t){return e.map(()=>t||Rf).splice(0,e.length-1)}function Gn({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=$x(r)?r.map(Gl):Gl(r),a={done:!1,value:t[0]},s=Cw(n&&n.length===t.length?n:Wf(t),e),i=ac(s,t,{ease:Array.isArray(o)?o:Mw(t,o)});return{calculatedDuration:e,next:c=>(a.value=i(c),a.done=c>=e,a)}}const Ew=e=>e!==null;function sc(e,{repeat:t,repeatType:n="loop"},r,o=1){const a=e.filter(Ew),i=o<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!i||r===void 0?a[i]:r}const Tw={decay:Js,inertia:Js,tween:Gn,keyframes:Gn,spring:ea};function zf(e){typeof e.type=="string"&&(e.type=Tw[e.type])}class ic{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Pw=e=>e/100;class cc extends ic{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,o;const{motionValue:n}=this.options;n&&n.updatedAt!==lt.now()&&this.tick(lt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(r=this.options).onStop)==null||o.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;zf(t);const{type:n=Gn,repeat:r=0,repeatDelay:o=0,repeatType:a,velocity:s=0}=t;let{keyframes:i}=t;const c=n||Gn;process.env.NODE_ENV!=="production"&&c!==Gn&&At(i.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${i}`,"spring-two-frames"),c!==Gn&&typeof i[0]!="number"&&(this.mixKeyframes=Jr(Pw,Ff(i[0],i[1])),i=[0,100]);const u=c({...t,keyframes:i});a==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...i].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=oc(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:i,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:d,repeat:l,repeatType:f,repeatDelay:p,type:g,onUpdate:b,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let w=this.currentTime,M=r;if(l){const D=Math.min(this.currentTime,o)/i;let R=Math.floor(D),A=D%1;!A&&D>=1&&(A=1),A===1&&R--,R=Math.min(R,l+1),!!(R%2)&&(f==="reverse"?(A=1-A,p&&(A-=p/i)):f==="mirror"&&(M=s)),w=Yt(0,1,A)*i}const C=x?{done:!1,value:d[0]}:M.next(w);a&&(C.value=a(C.value));let{done:P}=C;!x&&c!==null&&(P=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return E&&g!==Js&&(C.value=sc(d,this.options,y,this.speed)),b&&b(C.value),E&&this.finish(),C}then(t,n){return this.finished.then(t,n)}get duration(){return yt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+yt(t)}get time(){return yt(this.currentTime)}set time(t){var n;t=Dt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(lt.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=yt(this.currentTime))}play(){var o,a;if(this.isStopped)return;const{driver:t=fw,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(a=(o=this.options).onPlay)==null||a.call(o);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),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(lt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Dw(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Rn=e=>e*180/Math.PI,ei=e=>{const t=Rn(Math.atan2(e[1],e[0]));return ti(t)},Rw={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ei,rotateZ:ei,skewX:e=>Rn(Math.atan(e[1])),skewY:e=>Rn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ti=e=>(e=e%360,e<0&&(e+=360),e),Jl=ei,eu=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),tu=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Aw={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:eu,scaleY:tu,scale:e=>(eu(e)+tu(e))/2,rotateX:e=>ti(Rn(Math.atan2(e[6],e[5]))),rotateY:e=>ti(Rn(Math.atan2(-e[2],e[0]))),rotateZ:Jl,rotate:Jl,skewX:e=>Rn(Math.atan(e[4])),skewY:e=>Rn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ni(e){return e.includes("scale")?1:0}function ri(e,t){if(!e||e==="none")return ni(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=Aw,o=n;else{const i=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Rw,o=i}if(!o)return ni(t);const a=r[t],s=o[1].split(",").map(kw);return typeof a=="function"?a(s):s[a]}const Ow=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return ri(n,t)};function kw(e){return parseFloat(e.trim())}const fr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],hr=new Set(fr),nu=e=>e===dr||e===ie,Nw=new Set(["x","y","z"]),_w=fr.filter(e=>!Nw.has(e));function Iw(e){const t=[];return _w.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const On={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})=>ri(t,"x"),y:(e,{transform:t})=>ri(t,"y")};On.translateX=On.x;On.translateY=On.y;const kn=new Set;let oi=!1,ai=!1,si=!1;function Hf(){if(ai){const e=Array.from(kn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Iw(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([a,s])=>{var i;(i=r.getValue(a))==null||i.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ai=!1,oi=!1,kn.forEach(e=>e.complete(si)),kn.clear()}function Yf(){kn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ai=!0)})}function jw(){si=!0,Yf(),Hf(),si=!1}class lc{constructor(t,n,r,o,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(kn.add(this),oi||(oi=!0,Ce.read(Yf),Ce.resolveKeyframes(Hf))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const a=o==null?void 0:o.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const i=r.readValue(n,s);i!=null&&(t[0]=i)}t[0]===void 0&&(t[0]=s),o&&a===void 0&&o.set(t[0])}Dw(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),kn.delete(this)}cancel(){this.state==="scheduled"&&(kn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Lw=e=>e.startsWith("--");function $w(e,t,n){Lw(t)?e.style.setProperty(t,n):e.style[t]=n}const Uf=Ki(()=>window.ScrollTimeline!==void 0),Fw={};function Bw(e,t){const n=Ki(e);return()=>Fw[t]??n()}const Gf=Bw(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Dr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ru={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Dr([0,.65,.55,1]),circOut:Dr([.55,0,1,.45]),backIn:Dr([.31,.01,.66,-.59]),backOut:Dr([.33,1.53,.69,.99])};function Kf(e,t){if(e)return typeof e=="function"?Gf()?Bf(e,t):"ease-out":Af(e)?Dr(e):Array.isArray(e)?e.map(n=>Kf(n,t)||ru.easeOut):ru[e]}function Vw(e,t,n,{delay:r=0,duration:o=300,repeat:a=0,repeatType:s="loop",ease:i="easeOut",times:c}={},u=void 0){const d={[t]:n};c&&(d.offset=c);const l=Kf(i,o);Array.isArray(l)&&(d.easing=l);const f={delay:r,duration:o,easing:Array.isArray(l)?"linear":l,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(d,f)}function qf(e){return typeof e=="function"&&"applyToOptions"in e}function Ww({type:e,...t}){return qf(e)&&Gf()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class zw extends ic{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:i,onComplete:c}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,At(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=Ww(t);this.animation=Vw(n,r,o,u,a),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const d=sc(o,this.options,i,this.speed);this.updateMotionValue?this.updateMotionValue(d):$w(n,r,d),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return yt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+yt(t)}get time(){return yt(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Dt(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Uf()?(this.animation.timeline=t,ut):n(this)}}const Xf={anticipate:Tf,backInOut:Ef,circInOut:Df};function Hw(e){return e in Xf}function Yw(e){typeof e.ease=="string"&&Hw(e.ease)&&(e.ease=Xf[e.ease])}const ou=10;class Uw extends zw{constructor(t){Yw(t),zf(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:a,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const i=new cc({...s,autoplay:!1}),c=Dt(this.finishedTime??this.time);n.setWithVelocity(i.sample(c-ou).value,i.sample(c).value,ou),i.stop()}}const au=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(un.test(e)||e==="0")&&!e.startsWith("url("));function Gw(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Kw(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],s=au(o,t),i=au(a,t);return ur(s===i,`You are trying to animate ${t} from "${o}" to "${a}". "${s?a:o}" is not an animatable value.`,"value-not-animatable"),!s||!i?!1:Gw(e)||(n==="spring"||qf(n))&&r}function ii(e){e.duration=0,e.type="keyframes"}const qw=new Set(["opacity","clipPath","filter","transform"]),Xw=Ki(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Zw(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:a,type:s}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return Xw()&&n&&qw.has(n)&&(n!=="transform"||!u)&&!c&&!r&&o!=="mirror"&&a!==0&&s!=="inertia"}const Qw=40;class Jw extends ic{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s="loop",keyframes:i,name:c,motionValue:u,element:d,...l}){var g;super(),this.stop=()=>{var b,y;this._animation&&(this._animation.stop(),(b=this.stopTimeline)==null||b.call(this)),(y=this.keyframeResolver)==null||y.cancel()},this.createdAt=lt.now();const f={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:a,repeatType:s,name:c,motionValue:u,element:d,...l},p=(d==null?void 0:d.KeyframeResolver)||lc;this.keyframeResolver=new p(i,(b,y,v)=>this.onKeyframesResolved(b,y,f,!v),c,u,d),(g=this.keyframeResolver)==null||g.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:a,type:s,velocity:i,delay:c,isHandoff:u,onUpdate:d}=r;this.resolvedAt=lt.now(),Kw(t,a,s,i)||((en.instantAnimations||!c)&&(d==null||d(sc(t,r,n))),t[0]=t[t.length-1],ii(r),r.repeat=0);const f={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>Qw?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!u&&Zw(f)?new Uw({...f,element:f.motionValue.owner.current}):new cc(f);p.finished.then(()=>this.notifyFinished()).catch(ut),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),jw()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const e0=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function t0(e){const t=e0.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const n0=4;function Zf(e,t,n=1){At(n<=n0,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=t0(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return bf(s)?parseFloat(s):s}return ec(o)?Zf(o,t,n+1):o}function uc(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Qf=new Set(["width","height","top","left","right","bottom",...fr]),r0={test:e=>e==="auto",parse:e=>e},Jf=e=>t=>t.test(e),eh=[dr,ie,zt,an,Xx,qx,r0],su=e=>eh.find(Jf(e));function o0(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||xf(e):!0}const a0=new Set(["brightness","contrast","saturate","opacity"]);function s0(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(tc)||[];if(!r)return e;const o=n.replace(r,"");let a=a0.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const i0=/\b([a-z-]*)\(.*?\)/gu,ci={...un,getAnimatableNone:e=>{const t=e.match(i0);return t?t.map(s0).join(" "):e}},iu={...dr,transform:Math.round},c0={rotate:an,rotateX:an,rotateY:an,rotateZ:an,scale:Ro,scaleX:Ro,scaleY:Ro,scaleZ:Ro,skew:an,skewX:an,skewY:an,distance:ie,translateX:ie,translateY:ie,translateZ:ie,x:ie,y:ie,z:ie,perspective:ie,transformPerspective:ie,opacity:$r,originX:Kl,originY:Kl,originZ:ie},dc={borderWidth:ie,borderTopWidth:ie,borderRightWidth:ie,borderBottomWidth:ie,borderLeftWidth:ie,borderRadius:ie,radius:ie,borderTopLeftRadius:ie,borderTopRightRadius:ie,borderBottomRightRadius:ie,borderBottomLeftRadius:ie,width:ie,maxWidth:ie,height:ie,maxHeight:ie,top:ie,right:ie,bottom:ie,left:ie,padding:ie,paddingTop:ie,paddingRight:ie,paddingBottom:ie,paddingLeft:ie,margin:ie,marginTop:ie,marginRight:ie,marginBottom:ie,marginLeft:ie,backgroundPositionX:ie,backgroundPositionY:ie,...c0,zIndex:iu,fillOpacity:$r,strokeOpacity:$r,numOctaves:iu},l0={...dc,color:Ve,backgroundColor:Ve,outlineColor:Ve,fill:Ve,stroke:Ve,borderColor:Ve,borderTopColor:Ve,borderRightColor:Ve,borderBottomColor:Ve,borderLeftColor:Ve,filter:ci,WebkitFilter:ci},th=e=>l0[e];function nh(e,t){let n=th(e);return n!==ci&&(n=un),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const u0=new Set(["auto","none","0"]);function d0(e,t,n){let r=0,o;for(;r<e.length&&!o;){const a=e[r];typeof a=="string"&&!u0.has(a)&&Fr(a).values.length&&(o=e[r]),r++}if(o&&n)for(const a of t)e[a]=nh(n,o)}class f0 extends lc{constructor(t,n,r,o,a){super(t,n,r,o,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let u=t[c];if(typeof u=="string"&&(u=u.trim(),ec(u))){const d=Zf(u,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Qf.has(r)||t.length!==2)return;const[o,a]=t,s=su(o),i=su(a);if(s!==i)if(nu(s)&&nu(i))for(let c=0;c<t.length;c++){const u=t[c];typeof u=="string"&&(t[c]=parseFloat(u))}else On[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||o0(t[o]))&&r.push(o);r.length&&d0(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=On[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var i;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const a=r.length-1,s=r[a];r[a]=On[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(i=this.removedTransforms)!=null&&i.length&&this.removedTransforms.forEach(([c,u])=>{t.getValue(c).set(u)}),this.resolveNoneKeyframes()}}function rh(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){const o=document.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const oh=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ah(e){return yf(e)&&"offsetHeight"in e}const cu=30,h0=e=>!isNaN(parseFloat(e)),Nr={current:void 0};class m0{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var a;const o=lt.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=lt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=h0(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ya(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new qi);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ce.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Nr.current&&Nr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=lt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>cu)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,cu);return Xi(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Tt(e,t){return new m0(e,t)}const{schedule:fc}=Of(queueMicrotask,!1),Et={x:!1,y:!1};function sh(){return Et.x||Et.y}function p0(e){return e==="x"||e==="y"?Et[e]?null:(Et[e]=!0,()=>{Et[e]=!1}):Et.x||Et.y?null:(Et.x=Et.y=!0,()=>{Et.x=Et.y=!1})}function ih(e,t){const n=rh(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function lu(e){return!(e.pointerType==="touch"||sh())}function g0(e,t,n={}){const[r,o,a]=ih(e,n),s=i=>{if(!lu(i))return;const{target:c}=i,u=t(c,i);if(typeof u!="function"||!c)return;const d=l=>{lu(l)&&(u(l),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,o)};return r.forEach(i=>{i.addEventListener("pointerenter",s,o)}),a}const ch=(e,t)=>t?e===t?!0:ch(e,t.parentElement):!1,hc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,v0=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function b0(e){return v0.has(e.tagName)||e.tabIndex!==-1}const Ho=new WeakSet;function uu(e){return t=>{t.key==="Enter"&&e(t)}}function fs(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const y0=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=uu(()=>{if(Ho.has(n))return;fs(n,"down");const o=uu(()=>{fs(n,"up")}),a=()=>fs(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function du(e){return hc(e)&&!sh()}function x0(e,t,n={}){const[r,o,a]=ih(e,n),s=i=>{const c=i.currentTarget;if(!du(i))return;Ho.add(c);const u=t(c,i),d=(p,g)=>{window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",f),Ho.has(c)&&Ho.delete(c),du(p)&&typeof u=="function"&&u(p,{success:g})},l=p=>{d(p,c===window||c===document||n.useGlobalTarget||ch(c,p.target))},f=p=>{d(p,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",f,o)};return r.forEach(i=>{(n.useGlobalTarget?window:i).addEventListener("pointerdown",s,o),ah(i)&&(i.addEventListener("focus",u=>y0(u,o)),!b0(i)&&!i.hasAttribute("tabindex")&&(i.tabIndex=0))}),a}function mc(e){return yf(e)&&"ownerSVGElement"in e}const Yo=new WeakMap;let sn;const lh=(e,t,n)=>(r,o)=>o&&o[0]?o[0][e+"Size"]:mc(r)&&"getBBox"in r?r.getBBox()[t]:r[n],w0=lh("inline","width","offsetWidth"),S0=lh("block","height","offsetHeight");function C0({target:e,borderBoxSize:t}){var n;(n=Yo.get(e))==null||n.forEach(r=>{r(e,{get width(){return w0(e,t)},get height(){return S0(e,t)}})})}function M0(e){e.forEach(C0)}function E0(){typeof ResizeObserver>"u"||(sn=new ResizeObserver(M0))}function T0(e,t){sn||E0();const n=rh(e);return n.forEach(r=>{let o=Yo.get(r);o||(o=new Set,Yo.set(r,o)),o.add(t),sn==null||sn.observe(r)}),()=>{n.forEach(r=>{const o=Yo.get(r);o==null||o.delete(t),o!=null&&o.size||sn==null||sn.unobserve(r)})}}const Uo=new Set;let Kn;function P0(){Kn=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Uo.forEach(t=>t(e))},window.addEventListener("resize",Kn)}function D0(e){return Uo.add(e),Kn||P0(),()=>{Uo.delete(e),!Uo.size&&typeof Kn=="function"&&(window.removeEventListener("resize",Kn),Kn=void 0)}}function R0(e,t){return typeof e=="function"?D0(e):T0(e,t)}function uh(e,t){let n;const r=()=>{const{currentTime:o}=t,s=(o===null?0:o.value)/100;n!==s&&e(s),n=s};return Ce.preUpdate(r,!0),()=>Ot(r)}function A0(e){return mc(e)&&e.tagName==="svg"}function O0(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],o=e[1+n],a=e[2+n],s=e[3+n],i=ac(o,a,s);return t?i(r):i}const et=e=>!!(e&&e.getVelocity),k0=[...eh,Ve,un],N0=e=>k0.find(Jf(e)),pc=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function _0(e=!0){const t=S.useContext(Yi);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,a=S.useId();S.useEffect(()=>{if(e)return o(a)},[e]);const s=S.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}const dh=S.createContext({strict:!1}),fu={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"]},or={};for(const e in fu)or[e]={isEnabled:t=>fu[e].some(n=>!!t[n])};function I0(e){for(const t in e)or[t]={...or[t],...e[t]}}const j0=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"]);function ta(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||j0.has(e)}let fh=e=>!ta(e);function L0(e){typeof e=="function"&&(fh=t=>t.startsWith("on")?!ta(t):e(t))}try{L0(require("@emotion/is-prop-valid").default)}catch{}function $0(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(fh(o)||n===!0&&ta(o)||!t&&!ta(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const xa=S.createContext({});function wa(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Br(e){return typeof e=="string"||Array.isArray(e)}const gc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],vc=["initial",...gc];function Sa(e){return wa(e.animate)||vc.some(t=>Br(e[t]))}function hh(e){return!!(Sa(e)||e.variants)}function F0(e,t){if(Sa(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Br(n)?n:void 0,animate:Br(r)?r:void 0}}return e.inherit!==!1?t:{}}function B0(e){const{initial:t,animate:n}=F0(e,S.useContext(xa));return S.useMemo(()=>({initial:t,animate:n}),[hu(t),hu(n)])}function hu(e){return Array.isArray(e)?e.join(" "):e}const Vr={};function V0(e){for(const t in e)Vr[t]=e[t],Ji(t)&&(Vr[t].isCSSVariable=!0)}function mh(e,{layout:t,layoutId:n}){return hr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Vr[e]||e==="opacity")}const W0={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},z0=fr.length;function H0(e,t,n){let r="",o=!0;for(let a=0;a<z0;a++){const s=fr[a],i=e[s];if(i===void 0)continue;let c=!0;if(typeof i=="number"?c=i===(s.startsWith("scale")?1:0):c=parseFloat(i)===0,!c||n){const u=oh(i,dc[s]);if(!c){o=!1;const d=W0[s]||s;r+=`${d}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function bc(e,t,n){const{style:r,vars:o,transformOrigin:a}=e;let s=!1,i=!1;for(const c in t){const u=t[c];if(hr.has(c)){s=!0;continue}else if(Ji(c)){o[c]=u;continue}else{const d=oh(u,dc[c]);c.startsWith("origin")?(i=!0,a[c]=d):r[c]=d}}if(t.transform||(s||n?r.transform=H0(t,e.transform,n):r.transform&&(r.transform="none")),i){const{originX:c="50%",originY:u="50%",originZ:d=0}=a;r.transformOrigin=`${c} ${u} ${d}`}}const yc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ph(e,t,n){for(const r in t)!et(t[r])&&!mh(r,n)&&(e[r]=t[r])}function Y0({transformTemplate:e},t){return S.useMemo(()=>{const n=yc();return bc(n,t,e),Object.assign({},n.vars,n.style)},[t])}function U0(e,t){const n=e.style||{},r={};return ph(r,n,e),Object.assign(r,Y0(e,t)),r}function G0(e,t){const n={},r=U0(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}const K0={offset:"stroke-dashoffset",array:"stroke-dasharray"},q0={offset:"strokeDashoffset",array:"strokeDasharray"};function X0(e,t,n=1,r=0,o=!0){e.pathLength=1;const a=o?K0:q0;e[a.offset]=ie.transform(-r);const s=ie.transform(t),i=ie.transform(n);e[a.array]=`${s} ${i}`}function gh(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...i},c,u,d){if(bc(e,i,u),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:l,style:f}=e;l.transform&&(f.transform=l.transform,delete l.transform),(f.transform||l.transformOrigin)&&(f.transformOrigin=l.transformOrigin??"50% 50%",delete l.transformOrigin),f.transform&&(f.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete l.transformBox),t!==void 0&&(l.x=t),n!==void 0&&(l.y=n),r!==void 0&&(l.scale=r),o!==void 0&&X0(l,o,a,s,!1)}const vh=()=>({...yc(),attrs:{}}),bh=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Z0(e,t,n,r){const o=S.useMemo(()=>{const a=vh();return gh(a,t,bh(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};ph(a,e.style,e),o.style={...a,...o.style}}return o}const Q0=["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"];function xc(e){return typeof e!="string"||e.includes("-")?!1:!!(Q0.indexOf(e)>-1||/[A-Z]/u.test(e))}function J0(e,t,n,{latestValues:r},o,a=!1){const i=(xc(e)?Z0:G0)(t,r,o,e),c=$0(t,typeof e=="string",a),u=e!==S.Fragment?{...c,...i,ref:n}:{},{children:d}=t,l=S.useMemo(()=>et(d)?d.get():d,[d]);return S.createElement(e,{...u,children:l})}function mu(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function wc(e,t,n,r){if(typeof t=="function"){const[o,a]=mu(r);t=t(n!==void 0?n:e.custom,o,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,a]=mu(r);t=t(n!==void 0?n:e.custom,o,a)}return t}function Go(e){return et(e)?e.get():e}function eS({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:tS(n,r,o,e),renderState:t()}}function tS(e,t,n,r){const o={},a=r(e,{});for(const f in a)o[f]=Go(a[f]);let{initial:s,animate:i}=e;const c=Sa(e),u=hh(e);t&&u&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),i===void 0&&(i=t.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const l=d?i:s;if(l&&typeof l!="boolean"&&!wa(l)){const f=Array.isArray(l)?l:[l];for(let p=0;p<f.length;p++){const g=wc(e,f[p]);if(g){const{transitionEnd:b,transition:y,...v}=g;for(const x in v){let w=v[x];if(Array.isArray(w)){const M=d?w.length-1:0;w=w[M]}w!==null&&(o[x]=w)}for(const x in b)o[x]=b[x]}}}return o}const yh=e=>(t,n)=>{const r=S.useContext(xa),o=S.useContext(Yi),a=()=>eS(e,t,r,o);return n?a():ba(a)};function Sc(e,t,n){var a;const{style:r}=e,o={};for(const s in r)(et(r[s])||t.style&&et(t.style[s])||mh(s,e)||((a=n==null?void 0:n.getValue(s))==null?void 0:a.liveStyle)!==void 0)&&(o[s]=r[s]);return o}const nS=yh({scrapeMotionValuesFromProps:Sc,createRenderState:yc});function xh(e,t,n){const r=Sc(e,t,n);for(const o in e)if(et(e[o])||et(t[o])){const a=fr.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[a]=e[o]}return r}const rS=yh({scrapeMotionValuesFromProps:xh,createRenderState:vh}),oS=Symbol.for("motionComponentSymbol");function qn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function aS(e,t,n){return S.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):qn(n)&&(n.current=r))},[t])}const Cc=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),sS="framerAppearId",wh="data-"+Cc(sS),Sh=S.createContext({});function iS(e,t,n,r,o){var b,y;const{visualElement:a}=S.useContext(xa),s=S.useContext(dh),i=S.useContext(Yi),c=S.useContext(pc).reducedMotion,u=S.useRef(null);r=r||s.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:a,props:n,presenceContext:i,blockInitialAnimation:i?i.initial===!1:!1,reducedMotionConfig:c}));const d=u.current,l=S.useContext(Sh);d&&!d.projection&&o&&(d.type==="html"||d.type==="svg")&&cS(u.current,n,o,l);const f=S.useRef(!1);S.useInsertionEffect(()=>{d&&f.current&&d.update(n,i)});const p=n[wh],g=S.useRef(!!p&&!((b=window.MotionHandoffIsComplete)!=null&&b.call(window,p))&&((y=window.MotionHasOptimisedAnimation)==null?void 0:y.call(window,p)));return Hi(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),g.current&&d.animationState&&d.animationState.animateChanges())}),S.useEffect(()=>{d&&(!g.current&&d.animationState&&d.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)==null||v.call(window,p)}),g.current=!1),d.enteringChildren=void 0)}),d}function cS(e,t,n,r){const{layoutId:o,layout:a,drag:s,dragConstraints:i,layoutScroll:c,layoutRoot:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ch(e.parent)),e.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:!!s||i&&qn(i),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:u})}function Ch(e){if(e)return e.options.allowProjection!==!1?e.projection:Ch(e.parent)}function hs(e,{forwardMotionProps:t=!1}={},n,r){n&&I0(n);const o=xc(e)?rS:nS;function a(i,c){let u;const d={...S.useContext(pc),...i,layoutId:lS(i)},{isStatic:l}=d,f=B0(i),p=o(i,l);if(!l&&zi){uS(d,n);const g=dS(d);u=g.MeasureLayout,f.visualElement=iS(e,p,d,r,g.ProjectionNode)}return m.jsxs(xa.Provider,{value:f,children:[u&&f.visualElement?m.jsx(u,{visualElement:f.visualElement,...d}):null,J0(e,i,aS(p,f.visualElement,c),p,l,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=S.forwardRef(a);return s[oS]=e,s}function lS({layoutId:e}){const t=S.useContext(vf).id;return t&&e!==void 0?t+"-"+e:e}function uS(e,t){const n=S.useContext(dh).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?ur(!1,r,"lazy-strict-mode"):At(!1,r,"lazy-strict-mode")}}function dS(e){const{drag:t,layout:n}=or;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function fS(e,t){if(typeof Proxy>"u")return hs;const n=new Map,r=(a,s)=>hs(a,s,e,t),o=(a,s)=>(process.env.NODE_ENV!=="production"&&ya(!1,"motion() is deprecated. Use motion.create() instead."),r(a,s));return new Proxy(o,{get:(a,s)=>s==="create"?r:(n.has(s)||n.set(s,hs(s,void 0,e,t)),n.get(s))})}function Mh({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function hS({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function mS(e,t){if(!t)return e;const 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 ms(e){return e===void 0||e===1}function li({scale:e,scaleX:t,scaleY:n}){return!ms(e)||!ms(t)||!ms(n)}function Tn(e){return li(e)||Eh(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Eh(e){return pu(e.x)||pu(e.y)}function pu(e){return e&&e!=="0%"}function na(e,t,n){const r=e-n,o=t*r;return n+o}function gu(e,t,n,r,o){return o!==void 0&&(e=na(e,o,r)),na(e,n,r)+t}function ui(e,t=0,n=1,r,o){e.min=gu(e.min,t,n,r,o),e.max=gu(e.max,t,n,r,o)}function Th(e,{x:t,y:n}){ui(e.x,t.translate,t.scale,t.originPoint),ui(e.y,n.translate,n.scale,n.originPoint)}const vu=.999999999999,bu=1.0000000000001;function pS(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let a,s;for(let i=0;i<o;i++){a=n[i],s=a.projectionDelta;const{visualElement:c}=a.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Zn(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Th(e,s)),r&&Tn(a.latestValues)&&Zn(e,a.latestValues))}t.x<bu&&t.x>vu&&(t.x=1),t.y<bu&&t.y>vu&&(t.y=1)}function Xn(e,t){e.min=e.min+t,e.max=e.max+t}function yu(e,t,n,r,o=.5){const a=Oe(e.min,e.max,o);ui(e,t,n,a,r)}function Zn(e,t){yu(e.x,t.x,t.scaleX,t.scale,t.originX),yu(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ph(e,t){return Mh(mS(e.getBoundingClientRect(),t))}function gS(e,t,n){const r=Ph(e,n),{scroll:o}=t;return o&&(Xn(r.x,o.offset.x),Xn(r.y,o.offset.y)),r}const xu=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qn=()=>({x:xu(),y:xu()}),wu=()=>({min:0,max:0}),je=()=>({x:wu(),y:wu()}),di={current:null},Dh={current:!1};function vS(){if(Dh.current=!0,!!zi)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>di.current=e.matches;e.addEventListener("change",t),t()}else di.current=!1}const bS=new WeakMap;function yS(e,t,n){for(const r in t){const o=t[r],a=n[r];if(et(o))e.addValue(r,o);else if(et(a))e.addValue(r,Tt(o,{owner:e}));else if(a!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,Tt(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Su=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class xS{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:a,visualState:s},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=lc,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=()=>{const f=lt.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,Ce.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=i,this.blockInitialAnimation=!!a,this.isControllingVariants=Sa(n),this.isVariantNode=hh(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...l}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in l){const p=l[f];c[f]!==void 0&&et(p)&&p.set(c[f])}}mount(t){var n;this.current=t,bS.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),Dh.current||vS(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:di.current,process.env.NODE_ENV!=="production"&&ya(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Ot(this.notifyUpdate),Ot(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=hr.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Ce.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in or){const n=or[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):je()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Su.length;r++){const o=Su[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const a="on"+o,s=t[a];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=yS(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Tt(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(bf(r)||xf(r))?r=parseFloat(r):!N0(r)&&un.test(n)&&(r=nh(t,n)),this.setBaseTarget(t,et(r)?r.get():r)),et(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var a;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=wc(this.props,n,(a=this.presenceContext)==null?void 0:a.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!et(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new qi),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){fc.render(this.render)}}class Rh extends xS{constructor(){super(...arguments),this.KeyframeResolver=f0}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;et(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ah(e,{style:t,vars:n},r,o){const a=e.style;let s;for(s in t)a[s]=t[s];o==null||o.applyProjectionStyles(a,r);for(s in n)a.setProperty(s,n[s])}function wS(e){return window.getComputedStyle(e)}class SS extends Rh{constructor(){super(...arguments),this.type="html",this.renderInstance=Ah}readValueFromInstance(t,n){var r;if(hr.has(n))return(r=this.projection)!=null&&r.isProjecting?ni(n):Ow(t,n);{const o=wS(t),a=(Ji(n)?o.getPropertyValue(n):o[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ph(t,n)}build(t,n,r){bc(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Sc(t,n,r)}}const Oh=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"]);function CS(e,t,n,r){Ah(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Oh.has(o)?o:Cc(o),t.attrs[o])}class MS extends Rh{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=je}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(hr.has(n)){const r=th(n);return r&&r.default||0}return n=Oh.has(n)?n:Cc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return xh(t,n,r)}build(t,n,r){gh(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){CS(t,n,r,o)}mount(t){this.isSVGTag=bh(t.tagName),super.mount(t)}}const ES=(e,t)=>xc(e)?new MS(t):new SS(t,{allowProjection:e!==S.Fragment});function Jn(e,t,n){const r=e.getProps();return wc(r,t,n!==void 0?n:r.custom,e)}const fi=e=>Array.isArray(e);function TS(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Tt(n))}function PS(e){return fi(e)?e[e.length-1]||0:e}function DS(e,t){const n=Jn(e,t);let{transitionEnd:r={},transition:o={},...a}=n||{};a={...a,...r};for(const s in a){const i=PS(a[s]);TS(e,s,i)}}function RS(e){return!!(et(e)&&e.add)}function hi(e,t){const n=e.getValue("willChange");if(RS(n))return n.add(t);if(!n&&en.WillChange){const r=new en.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function kh(e){return e.props[wh]}const AS=e=>e!==null;function OS(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(AS),a=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[a]}const kS={type:"spring",stiffness:500,damping:25,restSpeed:10},NS=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),_S={type:"keyframes",duration:.8},IS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},jS=(e,{keyframes:t})=>t.length>2?_S:hr.has(e)?e.startsWith("scale")?NS(t[1]):kS:IS;function LS({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:a,repeatType:s,repeatDelay:i,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const Mc=(e,t,n,r={},o,a)=>s=>{const i=uc(r,e)||{},c=i.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Dt(c);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...i,delay:-u,onUpdate:f=>{t.set(f),i.onUpdate&&i.onUpdate(f)},onComplete:()=>{s(),i.onComplete&&i.onComplete()},name:e,motionValue:t,element:a?void 0:o};LS(i)||Object.assign(d,jS(e,d)),d.duration&&(d.duration=Dt(d.duration)),d.repeatDelay&&(d.repeatDelay=Dt(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let l=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(ii(d),d.delay===0&&(l=!0)),(en.instantAnimations||en.skipAnimations)&&(l=!0,ii(d),d.delay=0),d.allowFlatten=!i.type&&!i.ease,l&&!a&&t.get()!==void 0){const f=OS(d.keyframes,i);if(f!==void 0){Ce.update(()=>{d.onUpdate(f),d.onComplete()});return}}return i.isSync?new cc(d):new Jw(d)};function $S({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Nh(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...i}=t;r&&(a=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const d in i){const l=e.getValue(d,e.latestValues[d]??null),f=i[d];if(f===void 0||u&&$S(u,d))continue;const p={delay:n,...uc(a||{},d)},g=l.get();if(g!==void 0&&!l.isAnimating&&!Array.isArray(f)&&f===g&&!p.velocity)continue;let b=!1;if(window.MotionHandoffAnimation){const v=kh(e);if(v){const x=window.MotionHandoffAnimation(v,d,Ce);x!==null&&(p.startTime=x,b=!0)}}hi(e,d),l.start(Mc(d,l,f,e.shouldReduceMotion&&Qf.has(d)?{type:!1}:p,e,b));const y=l.animation;y&&c.push(y)}return s&&Promise.all(c).then(()=>{Ce.update(()=>{s&&DS(e,s)})}),c}function _h(e,t,n,r=0,o=1){const a=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),s=e.size,i=(s-1)*r;return typeof n=="function"?n(a,s):o===1?a*r:i-a*r}function mi(e,t,n={}){var c;const r=Jn(e,t,n.type==="exit"?(c=e.presenceContext)==null?void 0:c.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const a=r?()=>Promise.all(Nh(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:l,staggerDirection:f}=o;return FS(e,t,u,d,l,f,n)}:()=>Promise.resolve(),{when:i}=o;if(i){const[u,d]=i==="beforeChildren"?[a,s]:[s,a];return u().then(()=>d())}else return Promise.all([a(),s(n.delay)])}function FS(e,t,n=0,r=0,o=0,a=1,s){const i=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),i.push(mi(c,t,{...s,delay:n+(typeof r=="function"?0:r)+_h(e.variantChildren,c,r,o,a)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(i)}function BS(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(a=>mi(e,a,n));r=Promise.all(o)}else if(typeof t=="string")r=mi(e,t,n);else{const o=typeof t=="function"?Jn(e,t,n.custom):t;r=Promise.all(Nh(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Ih(e,t){if(!Array.isArray(t))return!1;const 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}const VS=vc.length;function jh(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?jh(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<VS;n++){const r=vc[n],o=e.props[r];(Br(o)||o===!1)&&(t[r]=o)}return t}const WS=[...gc].reverse(),zS=gc.length;function HS(e){return t=>Promise.all(t.map(({animation:n,options:r})=>BS(e,n,r)))}function YS(e){let t=HS(e),n=Cu(),r=!0;const o=c=>(u,d)=>{var f;const l=Jn(e,d,c==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(l){const{transition:p,transitionEnd:g,...b}=l;u={...u,...b,...g}}return u};function a(c){t=c(e)}function s(c){const{props:u}=e,d=jh(e.parent)||{},l=[],f=new Set;let p={},g=1/0;for(let y=0;y<zS;y++){const v=WS[y],x=n[v],w=u[v]!==void 0?u[v]:d[v],M=Br(w),C=v===c?x.isActive:null;C===!1&&(g=y);let P=w===d[v]&&w!==u[v]&&M;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),x.protectedKeys={...p},!x.isActive&&C===null||!w&&!x.prevProp||wa(w)||typeof w=="boolean")continue;const E=US(x.prevProp,w);let D=E||v===c&&x.isActive&&!P&&M||y>g&&M,R=!1;const A=Array.isArray(w)?w:[w];let N=A.reduce(o(v),{});C===!1&&(N={});const{prevResolvedValues:z={}}=x,O={...z,...N},U=$=>{D=!0,f.has($)&&(R=!0,f.delete($)),x.needsAnimating[$]=!0;const j=e.getValue($);j&&(j.liveStyle=!1)};for(const $ in O){const j=N[$],_=z[$];if(p.hasOwnProperty($))continue;let Z=!1;fi(j)&&fi(_)?Z=!Ih(j,_):Z=j!==_,Z?j!=null?U($):f.add($):j!==void 0&&f.has($)?U($):x.protectedKeys[$]=!0}x.prevProp=w,x.prevResolvedValues=N,x.isActive&&(p={...p,...N}),r&&e.blockInitialAnimation&&(D=!1);const K=P&&E;D&&(!K||R)&&l.push(...A.map($=>{const j={type:v};if(typeof $=="string"&&r&&!K&&e.manuallyAnimateOnMount&&e.parent){const{parent:_}=e,Z=Jn(_,$);if(_.enteringChildren&&Z){const{delayChildren:ae}=Z.transition||{};j.delay=_h(_.enteringChildren,e,ae)}}return{animation:$,options:j}}))}if(f.size){const y={};if(typeof u.initial!="boolean"){const v=Jn(e,Array.isArray(u.initial)?u.initial[0]:u.initial);v&&v.transition&&(y.transition=v.transition)}f.forEach(v=>{const x=e.getBaseTarget(v),w=e.getValue(v);w&&(w.liveStyle=!0),y[v]=x??null}),l.push({animation:y})}let b=!!l.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(l):Promise.resolve()}function i(c,u){var l;if(n[c].isActive===u)return Promise.resolve();(l=e.variantChildren)==null||l.forEach(f=>{var p;return(p=f.animationState)==null?void 0:p.setActive(c,u)}),n[c].isActive=u;const d=s(c);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:i,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Cu()}}}function US(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ih(t,e):!1}function Mn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Cu(){return{animate:Mn(!0),whileInView:Mn(),whileHover:Mn(),whileTap:Mn(),whileDrag:Mn(),whileFocus:Mn(),exit:Mn()}}class pn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class GS extends pn{constructor(t){super(t),t.animationState||(t.animationState=YS(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();wa(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let KS=0;class qS extends pn{constructor(){super(...arguments),this.id=KS++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const XS={animation:{Feature:GS},exit:{Feature:qS}};function Wr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function no(e){return{point:{x:e.pageX,y:e.pageY}}}const ZS=e=>t=>hc(t)&&e(t,no(t));function _r(e,t,n,r){return Wr(e,t,ZS(n),r)}const Lh=1e-4,QS=1-Lh,JS=1+Lh,$h=.01,eC=0-$h,tC=0+$h;function ot(e){return e.max-e.min}function nC(e,t,n){return Math.abs(e-t)<=n}function Mu(e,t,n,r=.5){e.origin=r,e.originPoint=Oe(t.min,t.max,e.origin),e.scale=ot(n)/ot(t),e.translate=Oe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=QS&&e.scale<=JS||isNaN(e.scale))&&(e.scale=1),(e.translate>=eC&&e.translate<=tC||isNaN(e.translate))&&(e.translate=0)}function Ir(e,t,n,r){Mu(e.x,t.x,n.x,r?r.originX:void 0),Mu(e.y,t.y,n.y,r?r.originY:void 0)}function Eu(e,t,n){e.min=n.min+t.min,e.max=e.min+ot(t)}function rC(e,t,n){Eu(e.x,t.x,n.x),Eu(e.y,t.y,n.y)}function Tu(e,t,n){e.min=t.min-n.min,e.max=e.min+ot(t)}function jr(e,t,n){Tu(e.x,t.x,n.x),Tu(e.y,t.y,n.y)}function bt(e){return[e("x"),e("y")]}const Fh=({current:e})=>e?e.ownerDocument.defaultView:null,Pu=(e,t)=>Math.abs(e-t);function oC(e,t){const n=Pu(e.x,t.x),r=Pu(e.y,t.y);return Math.sqrt(n**2+r**2)}class Bh{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:a=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=gs(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=oC(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!g)return;const{point:b}=f,{timestamp:y}=qe;this.history.push({...b,timestamp:y});const{onStart:v,onMove:x}=this.handlers;p||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=ps(p,this.transformPagePoint),Ce.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:g,onSessionEnd:b,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=gs(f.type==="pointercancel"?this.lastMoveEventInfo:ps(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,v),b&&b(f,v)},!hc(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const i=no(t),c=ps(i,this.transformPagePoint),{point:u}=c,{timestamp:d}=qe;this.history=[{...u,timestamp:d}];const{onSessionStart:l}=n;l&&l(t,gs(c,this.history)),this.removeListeners=Jr(_r(this.contextWindow,"pointermove",this.handlePointerMove),_r(this.contextWindow,"pointerup",this.handlePointerUp),_r(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ot(this.updatePoint)}}function ps(e,t){return t?{point:t(e.point)}:e}function Du(e,t){return{x:e.x-t.x,y:e.y-t.y}}function gs({point:e},t){return{point:e,delta:Du(e,Vh(t)),offset:Du(e,aC(t)),velocity:sC(t,.1)}}function aC(e){return e[0]}function Vh(e){return e[e.length-1]}function sC(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Vh(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Dt(t)));)n--;if(!r)return{x:0,y:0};const a=yt(o.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function iC(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Oe(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Oe(n,e,r.max):Math.min(e,n)),e}function Ru(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function cC(e,{top:t,left:n,bottom:r,right:o}){return{x:Ru(e.x,n,o),y:Ru(e.y,t,r)}}function Au(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 lC(e,t){return{x:Au(e.x,t.x),y:Au(e.y,t.y)}}function uC(e,t){let n=.5;const r=ot(e),o=ot(t);return o>r?n=rr(t.min,t.max-r,e.min):r>o&&(n=rr(e.min,e.max-o,t.min)),Yt(0,1,n)}function dC(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const pi=.35;function fC(e=pi){return e===!1?e=0:e===!0&&(e=pi),{x:Ou(e,"left","right"),y:Ou(e,"top","bottom")}}function Ou(e,t,n){return{min:ku(e,t),max:ku(e,n)}}function ku(e,t){return typeof e=="number"?e:e[t]||0}const hC=new WeakMap;class mC{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=je(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const a=l=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(no(l).point)},s=(l,f)=>{const{drag:p,dragPropagation:g,onDragStart:b}=this.getProps();if(p&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=p0(p),!this.openDragLock))return;this.latestPointerEvent=l,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),bt(v=>{let x=this.getAxisMotionValue(v).get()||0;if(zt.test(x)){const{projection:w}=this.visualElement;if(w&&w.layout){const M=w.layout.layoutBox[v];M&&(x=ot(M)*(parseFloat(x)/100))}}this.originPoint[v]=x}),b&&Ce.postRender(()=>b(l,f)),hi(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},i=(l,f)=>{this.latestPointerEvent=l,this.latestPanInfo=f;const{dragPropagation:p,dragDirectionLock:g,onDirectionLock:b,onDrag:y}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:v}=f;if(g&&this.currentDirection===null){this.currentDirection=pC(v),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),y&&y(l,f)},c=(l,f)=>{this.latestPointerEvent=l,this.latestPanInfo=f,this.stop(l,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>bt(l=>{var f;return this.getAnimationState(l)==="paused"&&((f=this.getAxisMotionValue(l).animation)==null?void 0:f.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Bh(t,{onSessionStart:a,onStart:s,onMove:i,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:Fh(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!o||!r)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&Ce.postRender(()=>i(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Ao(t,o,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=iC(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){var a;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(a=this.visualElement.projection)==null?void 0:a.layout,o=this.constraints;t&&qn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=cC(r.layoutBox,t):this.constraints=!1,this.elastic=fC(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&bt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=dC(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!qn(t))return!1;const r=t.current;At(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const a=gS(r,o.root,this.visualElement.getTransformPagePoint());let s=lC(o.layout.layoutBox,a);if(n){const i=n(hS(s));this.hasMutatedConstraints=!!i,i&&(s=Mh(i))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),c=this.constraints||{},u=bt(d=>{if(!Ao(d,n,this.currentDirection))return;let l=c&&c[d]||{};s&&(l={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,g={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...a,...l};return this.startAxisValueAnimation(d,g)});return Promise.all(u).then(i)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return hi(this.visualElement,t),r.start(Mc(t,r,0,n,this.visualElement,!1))}stopAnimation(){bt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){bt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){bt(n=>{const{drag:r}=this.getProps();if(!Ao(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,a=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:i}=o.layout.layoutBox[n];a.set(t[n]-Oe(s,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!qn(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};bt(s=>{const i=this.getAxisMotionValue(s);if(i&&this.constraints!==!1){const c=i.get();o[s]=uC({min:c,max:c},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),bt(s=>{if(!Ao(s,t,null))return;const i=this.getAxisMotionValue(s),{min:c,max:u}=this.constraints[s];i.set(Oe(c,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;hC.set(this.visualElement,this);const t=this.visualElement.current,n=_r(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();qn(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Ce.read(r);const s=Wr(window,"resize",()=>this.scalePositionWithinConstraints()),i=o.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(bt(d=>{const l=this.getAxisMotionValue(d);l&&(this.originPoint[d]+=c[d].translate,l.set(l.get()+c[d].translate))}),this.visualElement.render())}));return()=>{s(),n(),a(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:a=!1,dragElastic:s=pi,dragMomentum:i=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:a,dragElastic:s,dragMomentum:i}}}function Ao(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function pC(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class gC extends pn{constructor(t){super(t),this.removeGroupControls=ut,this.removeListeners=ut,this.controls=new mC(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ut}unmount(){this.removeGroupControls(),this.removeListeners()}}const Nu=e=>(t,n)=>{e&&Ce.postRender(()=>e(t,n))};class vC extends pn{constructor(){super(...arguments),this.removePointerDownListener=ut}onPointerDown(t){this.session=new Bh(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Fh(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Nu(t),onStart:Nu(n),onMove:r,onEnd:(a,s)=>{delete this.session,o&&Ce.postRender(()=>o(a,s))}}}mount(){this.removePointerDownListener=_r(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ko={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function _u(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const xr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ie.test(e))e=parseFloat(e);else return e;const n=_u(e,t.target.x),r=_u(e,t.target.y);return`${n}% ${r}%`}},bC={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=un.parse(e);if(o.length>5)return r;const a=un.createTransformer(e),s=typeof o[0]!="number"?1:0,i=n.x.scale*t.x,c=n.y.scale*t.y;o[0+s]/=i,o[1+s]/=c;const u=Oe(i,c,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),a(o)}};let vs=!1;class yC extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:a}=t;V0(xC),a&&(n.group&&n.group.add(a),r&&r.register&&o&&r.register(a),vs&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Ko.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:a}=this.props,{projection:s}=r;return s&&(s.isPresent=a,vs=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||Ce.postRender(()=>{const i=s.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),fc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;vs=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Wh(e){const[t,n]=_0(),r=S.useContext(vf);return m.jsx(yC,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(Sh),isPresent:t,safeToRemove:n})}const xC={borderRadius:{...xr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xr,borderTopRightRadius:xr,borderBottomLeftRadius:xr,borderBottomRightRadius:xr,boxShadow:bC};function wC(e,t,n){const r=et(e)?e:Tt(e);return r.start(Mc("",r,t,n)),r.animation}const SC=(e,t)=>e.depth-t.depth;class CC{constructor(){this.children=[],this.isDirty=!1}add(t){Ui(this.children,t),this.isDirty=!0}remove(t){Gi(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(SC),this.isDirty=!1,this.children.forEach(t)}}function MC(e,t){const n=lt.now(),r=({timestamp:o})=>{const a=o-n;a>=t&&(Ot(r),e(a-t))};return Ce.setup(r,!0),()=>Ot(r)}const zh=["TopLeft","TopRight","BottomLeft","BottomRight"],EC=zh.length,Iu=e=>typeof e=="string"?parseFloat(e):e,ju=e=>typeof e=="number"||ie.test(e);function TC(e,t,n,r,o,a){o?(e.opacity=Oe(0,n.opacity??1,PC(r)),e.opacityExit=Oe(t.opacity??1,0,DC(r))):a&&(e.opacity=Oe(t.opacity??1,n.opacity??1,r));for(let s=0;s<EC;s++){const i=`border${zh[s]}Radius`;let c=Lu(t,i),u=Lu(n,i);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||ju(c)===ju(u)?(e[i]=Math.max(Oe(Iu(c),Iu(u),r),0),(zt.test(u)||zt.test(c))&&(e[i]+="%")):e[i]=u}(t.rotate||n.rotate)&&(e.rotate=Oe(t.rotate||0,n.rotate||0,r))}function Lu(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const PC=Hh(0,.5,Pf),DC=Hh(.5,.95,ut);function Hh(e,t,n){return r=>r<e?0:r>t?1:n(rr(e,t,r))}function $u(e,t){e.min=t.min,e.max=t.max}function vt(e,t){$u(e.x,t.x),$u(e.y,t.y)}function Fu(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Bu(e,t,n,r,o){return e-=t,e=na(e,1/n,r),o!==void 0&&(e=na(e,1/o,r)),e}function RC(e,t=0,n=1,r=.5,o,a=e,s=e){if(zt.test(t)&&(t=parseFloat(t),t=Oe(s.min,s.max,t/100)-s.min),typeof t!="number")return;let i=Oe(a.min,a.max,r);e===a&&(i-=t),e.min=Bu(e.min,t,n,i,o),e.max=Bu(e.max,t,n,i,o)}function Vu(e,t,[n,r,o],a,s){RC(e,t[n],t[r],t[o],t.scale,a,s)}const AC=["x","scaleX","originX"],OC=["y","scaleY","originY"];function Wu(e,t,n,r){Vu(e.x,t,AC,n?n.x:void 0,r?r.x:void 0),Vu(e.y,t,OC,n?n.y:void 0,r?r.y:void 0)}function zu(e){return e.translate===0&&e.scale===1}function Yh(e){return zu(e.x)&&zu(e.y)}function Hu(e,t){return e.min===t.min&&e.max===t.max}function kC(e,t){return Hu(e.x,t.x)&&Hu(e.y,t.y)}function Yu(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Uh(e,t){return Yu(e.x,t.x)&&Yu(e.y,t.y)}function Uu(e){return ot(e.x)/ot(e.y)}function Gu(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class NC{constructor(){this.members=[]}add(t){Ui(this.members,t),t.scheduleRender()}remove(t){if(Gi(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const a=this.members[o];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function _C(e,t,n){let r="";const o=e.x.translate/t.x,a=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((o||a||s)&&(r=`translate3d(${o}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:l,rotateY:f,skewX:p,skewY:g}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),l&&(r+=`rotateX(${l}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),g&&(r+=`skewY(${g}deg) `)}const i=e.x.scale*t.x,c=e.y.scale*t.y;return(i!==1||c!==1)&&(r+=`scale(${i}, ${c})`),r||"none"}const bs=["","X","Y","Z"],IC=1e3;let jC=0;function ys(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Gh(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=kh(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ce,!(o||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Gh(r)}function Kh({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},i=t==null?void 0:t()){this.id=jC++,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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(FC),this.nodes.forEach(zC),this.nodes.forEach(HC),this.nodes.forEach(BC)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new CC)}addEventListener(s,i){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new qi),this.eventHandlers.get(s).add(i)}notifyListeners(s,...i){const c=this.eventHandlers.get(s);c&&c.notify(...i)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=mc(s)&&!A0(s),this.instance=s;const{layoutId:i,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||i)&&(this.isLayoutDirty=!0),e){let d,l=0;const f=()=>this.root.updateBlockedByResize=!1;Ce.read(()=>{l=window.innerWidth}),e(s,()=>{const p=window.innerWidth;p!==l&&(l=p,this.root.updateBlockedByResize=!0,d&&d(),d=MC(f,250),Ko.hasAnimatedSinceResize&&(Ko.hasAnimatedSinceResize=!1,this.nodes.forEach(Xu)))})}i&&this.root.registerSharedNode(i,this),this.options.animate!==!1&&u&&(i||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:l,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||qC,{onLayoutAnimationStart:b,onLayoutAnimationComplete:y}=u.getProps(),v=!this.targetLayout||!Uh(this.targetLayout,p),x=!l&&f;if(this.options.layoutRoot||this.resumeFrom||x||l&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...uc(g,"layout"),onPlay:b,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(d,x)}else l||Xu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ot(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(YC),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Gh(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const l=this.path[d];l.shouldResetTransform=!0,l.updateScroll("snapshot"),l.options.layoutRoot&&l.willUpdate(!1)}const{layoutId:i,layout:c}=this.options;if(i===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ku);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(qu);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(WC),this.nodes.forEach(LC),this.nodes.forEach($C)):this.nodes.forEach(qu),this.clearAllSnapshots();const i=lt.now();qe.delta=Yt(0,1e3/60,i-qe.timestamp),qe.timestamp=i,qe.isProcessing=!0,is.update.process(qe),is.preRender.process(qe),is.render.process(qe),qe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,fc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(VC),this.sharedNodes.forEach(UC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ce.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ce.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ot(this.snapshot.measuredBox.x)&&!ot(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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=je(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let i=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(i=!1),i&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,i=this.projectionDelta&&!Yh(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;s&&this.instance&&(i||Tn(this.latestValues)||d)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const i=this.measurePageBox();let c=this.removeElementScroll(i);return s&&(c=this.removeTransform(c)),XC(c),{animationId:this.root.animationId,measuredBox:i,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:s}=this.options;if(!s)return je();const i=s.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(ZC))){const{scroll:d}=this.root;d&&(Xn(i.x,d.offset.x),Xn(i.y,d.offset.y))}return i}removeElementScroll(s){var c;const i=je();if(vt(i,s),(c=this.scroll)!=null&&c.wasRoot)return i;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:l,options:f}=d;d!==this.root&&l&&f.layoutScroll&&(l.wasRoot&&vt(i,s),Xn(i.x,l.offset.x),Xn(i.y,l.offset.y))}return i}applyTransform(s,i=!1){const c=je();vt(c,s);for(let u=0;u<this.path.length;u++){const d=this.path[u];!i&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Zn(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Tn(d.latestValues)&&Zn(c,d.latestValues)}return Tn(this.latestValues)&&Zn(c,this.latestValues),c}removeTransform(s){const i=je();vt(i,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!Tn(u.latestValues))continue;li(u.latestValues)&&u.updateSnapshot();const d=je(),l=u.measurePageBox();vt(d,l),Wu(i,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return Tn(this.latestValues)&&Wu(i,this.latestValues),i}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}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!==qe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var f;const i=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=i.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==i;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:l}=this.options;if(!(!this.layout||!(d||l))){if(this.resolvedRelativeTargetAt=qe.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=je(),this.relativeTargetOrigin=je(),jr(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),vt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=je(),this.targetWithTransforms=je()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),rC(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):vt(this.target,this.layout.layoutBox),Th(this.target,this.targetDelta)):vt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=je(),this.relativeTargetOrigin=je(),jr(this.relativeTargetOrigin,this.target,p.target),vt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||li(this.parent.latestValues)||Eh(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var g;const s=this.getLead(),i=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||(g=this.parent)!=null&&g.isProjectionDirty)&&(c=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===qe.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;vt(this.layoutCorrected,this.layout.layoutBox);const l=this.treeScale.x,f=this.treeScale.y;pS(this.layoutCorrected,this.treeScale,this.path,i),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=je());const{target:p}=s;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Fu(this.prevProjectionDelta.x,this.projectionDelta.x),Fu(this.prevProjectionDelta.y,this.projectionDelta.y)),Ir(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==l||this.treeScale.y!==f||!Gu(this.projectionDelta.x,this.prevProjectionDelta.x)||!Gu(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var i;if((i=this.options.visualElement)==null||i.scheduleRender(),s){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Qn(),this.projectionDelta=Qn(),this.projectionDeltaWithTransform=Qn()}setAnimationOrigin(s,i=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},l=Qn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;const f=je(),p=c?c.source:void 0,g=this.layout?this.layout.source:void 0,b=p!==g,y=this.getStack(),v=!y||y.members.length<=1,x=!!(b&&!v&&this.options.crossfade===!0&&!this.path.some(KC));this.animationProgress=0;let w;this.mixTargetDelta=M=>{const C=M/1e3;Zu(l.x,s.x,C),Zu(l.y,s.y,C),this.setTargetDelta(l),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jr(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),GC(this.relativeTarget,this.relativeTargetOrigin,f,C),w&&kC(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=je()),vt(w,this.relativeTarget)),b&&(this.animationValues=d,TC(d,u,this.latestValues,C,x,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var i,c,u;this.notifyListeners("animationStart"),(i=this.currentAnimation)==null||i.stop(),(u=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Ot(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ce.update(()=>{Ko.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Tt(0)),this.currentAnimation=wC(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),s.onUpdate&&s.onUpdate(d)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.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);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(IC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:i,target:c,layout:u,latestValues:d}=s;if(!(!i||!c||!u)){if(this!==s&&this.layout&&u&&qh(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||je();const l=ot(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+l;const f=ot(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+f}vt(i,c),Zn(i,d),Ir(this.projectionDeltaWithTransform,this.layoutCorrected,i,d)}}registerSharedNode(s,i){this.sharedNodes.has(s)||this.sharedNodes.set(s,new NC),this.sharedNodes.get(s).add(i);const u=i.options.initialPromotionConfig;i.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(i):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var i;const{layoutId:s}=this.options;return s?((i=this.getStack())==null?void 0:i.lead)||this:this}getPrevLead(){var i;const{layoutId:s}=this.options;return s?(i=this.getStack())==null?void 0:i.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:i,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let i=!1;const{latestValues:c}=s;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(i=!0),!i)return;const u={};c.z&&ys("z",s,u,this.animationValues);for(let d=0;d<bs.length;d++)ys(`rotate${bs[d]}`,s,u,this.animationValues),ys(`skew${bs[d]}`,s,u,this.animationValues);s.render();for(const d in u)s.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);s.scheduleRender()}applyProjectionStyles(s,i){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=Go(i==null?void 0:i.pointerEvents)||"",s.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=Go(i==null?void 0:i.pointerEvents)||""),this.hasProjected&&!Tn(this.latestValues)&&(s.transform=c?c({},""):"none",this.hasProjected=!1);return}s.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let l=_C(this.projectionDeltaWithTransform,this.treeScale,d);c&&(l=c(d,l)),s.transform=l;const{x:f,y:p}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,u.animationValues?s.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const g in Vr){if(d[g]===void 0)continue;const{correct:b,applyTo:y,isCSSVariable:v}=Vr[g],x=l==="none"?d[g]:b(d[g],u);if(y){const w=y.length;for(let M=0;M<w;M++)s[y[M]]=x}else v?this.options.visualElement.renderState.vars[g]=x:s[g]=x}this.options.layoutId&&(s.pointerEvents=u===this?Go(i==null?void 0:i.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var i;return(i=s.currentAnimation)==null?void 0:i.stop()}),this.root.nodes.forEach(Ku),this.root.sharedNodes.clear()}}}function LC(e){e.updateLayout()}function $C(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:a}=e.options,s=t.source!==e.layout.source;a==="size"?bt(l=>{const f=s?t.measuredBox[l]:t.layoutBox[l],p=ot(f);f.min=r[l].min,f.max=f.min+p}):qh(a,t.layoutBox,r)&&bt(l=>{const f=s?t.measuredBox[l]:t.layoutBox[l],p=ot(r[l]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[l].max=e.relativeTarget[l].min+p)});const i=Qn();Ir(i,r,t.layoutBox);const c=Qn();s?Ir(c,e.applyTransform(o,!0),t.measuredBox):Ir(c,r,t.layoutBox);const u=!Yh(i);let d=!1;if(!e.resumeFrom){const l=e.getClosestProjectingParent();if(l&&!l.resumeFrom){const{snapshot:f,layout:p}=l;if(f&&p){const g=je();jr(g,t.layoutBox,f.layoutBox);const b=je();jr(b,r,p.layoutBox),Uh(g,b)||(d=!0),l.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=g,e.relativeParent=l)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:c,layoutDelta:i,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function FC(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function BC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function VC(e){e.clearSnapshot()}function Ku(e){e.clearMeasurements()}function qu(e){e.isLayoutDirty=!1}function WC(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Xu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function zC(e){e.resolveTargetDelta()}function HC(e){e.calcProjection()}function YC(e){e.resetSkewAndRotation()}function UC(e){e.removeLeadSnapshot()}function Zu(e,t,n){e.translate=Oe(t.translate,0,n),e.scale=Oe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Qu(e,t,n,r){e.min=Oe(t.min,n.min,r),e.max=Oe(t.max,n.max,r)}function GC(e,t,n,r){Qu(e.x,t.x,n.x,r),Qu(e.y,t.y,n.y,r)}function KC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const qC={duration:.45,ease:[.4,0,.1,1]},Ju=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ed=Ju("applewebkit/")&&!Ju("chrome/")?Math.round:ut;function td(e){e.min=ed(e.min),e.max=ed(e.max)}function XC(e){td(e.x),td(e.y)}function qh(e,t,n){return e==="position"||e==="preserve-aspect"&&!nC(Uu(t),Uu(n),.2)}function ZC(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const QC=Kh({attachResizeListener:(e,t)=>Wr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),xs={current:void 0},Xh=Kh({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!xs.current){const e=new QC({});e.mount(window),e.setOptions({layoutScroll:!0}),xs.current=e}return xs.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),JC={pan:{Feature:vC},drag:{Feature:gC,ProjectionNode:Xh,MeasureLayout:Wh}};function nd(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,a=r[o];a&&Ce.postRender(()=>a(t,no(t)))}class eM extends pn{mount(){const{current:t}=this.node;t&&(this.unmount=g0(t,(n,r)=>(nd(this.node,r,"Start"),o=>nd(this.node,o,"End"))))}unmount(){}}class tM extends pn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Jr(Wr(this.node.current,"focus",()=>this.onFocus()),Wr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function rd(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),a=r[o];a&&Ce.postRender(()=>a(t,no(t)))}class nM extends pn{mount(){const{current:t}=this.node;t&&(this.unmount=x0(t,(n,r)=>(rd(this.node,r,"Start"),(o,{success:a})=>rd(this.node,o,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const gi=new WeakMap,ws=new WeakMap,rM=e=>{const t=gi.get(e.target);t&&t(e)},oM=e=>{e.forEach(rM)};function aM({root:e,...t}){const n=e||document;ws.has(n)||ws.set(n,{});const r=ws.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(oM,{root:e,...t})),r[o]}function sM(e,t,n){const r=aM(t);return gi.set(e,n),r.observe(e),()=>{gi.delete(e),r.unobserve(e)}}const iM={some:0,all:1};class cM extends pn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:iM[o]},i=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,a&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:l}=this.node.getProps(),f=u?d:l;f&&f(c)};return sM(this.node.current,s,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(lM(t,n))&&this.startObserver()}unmount(){}}function lM({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const uM={inView:{Feature:cM},tap:{Feature:nM},focus:{Feature:tM},hover:{Feature:eM}},dM={layout:{ProjectionNode:Xh,MeasureLayout:Wh}},fM={...XS,...uM,...JC,...dM},hM=fS(fM,ES),mM=50,od=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),pM=()=>({time:0,x:od(),y:od()}),gM={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function ad(e,t,n,r){const o=n[t],{length:a,position:s}=gM[t],i=o.current,c=n.time;o.current=e[`scroll${s}`],o.scrollLength=e[`scroll${a}`]-e[`client${a}`],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=rr(0,o.scrollLength,o.current);const u=r-c;o.velocity=u>mM?0:Xi(o.current-i,u)}function vM(e,t,n){ad(e,"x",t,n),ad(e,"y",t,n),t.time=n}function bM(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(ah(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const o=r.getBoundingClientRect();r=r.parentElement;const a=r.getBoundingClientRect();n.x+=o.left-a.left,n.y+=o.top-a.top}else if(r instanceof SVGGraphicsElement){const{x:o,y:a}=r.getBBox();n.x+=o,n.y+=a;let s=null,i=r.parentNode;for(;!s;)i.tagName==="svg"&&(s=i),i=r.parentNode;r=s}else break;return n}const vi={start:0,center:.5,end:1};function sd(e,t,n=0){let r=0;if(e in vi&&(e=vi[e]),typeof e=="string"){const o=parseFloat(e);e.endsWith("px")?r=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?r=o/100*document.documentElement.clientWidth:e.endsWith("vh")?r=o/100*document.documentElement.clientHeight:e=o}return typeof e=="number"&&(r=t*e),n+r}const yM=[0,0];function xM(e,t,n,r){let o=Array.isArray(e)?e:yM,a=0,s=0;return typeof e=="number"?o=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?o=e.split(" "):o=[e,vi[e]?e:"0"]),a=sd(o[0],n,r),s=sd(o[1],t),a-s}const wM={All:[[0,0],[1,1]]},SM={x:0,y:0};function CM(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function MM(e,t,n){const{offset:r=wM.All}=n,{target:o=e,axis:a="y"}=n,s=a==="y"?"height":"width",i=o!==e?bM(o,e):SM,c=o===e?{width:e.scrollWidth,height:e.scrollHeight}:CM(o),u={width:e.clientWidth,height:e.clientHeight};t[a].offset.length=0;let d=!t[a].interpolate;const l=r.length;for(let f=0;f<l;f++){const p=xM(r[f],u[s],c[s],i[a]);!d&&p!==t[a].interpolatorOffsets[f]&&(d=!0),t[a].offset[f]=p}d&&(t[a].interpolate=ac(t[a].offset,Wf(r),{clamp:!1}),t[a].interpolatorOffsets=[...t[a].offset]),t[a].progress=Yt(0,1,t[a].interpolate(t[a].current))}function EM(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,process.env.NODE_ENV!=="production"&&e&&t&&t!==e&&ya(getComputedStyle(e).position!=="static","Please ensure that the container has a non-static position, like 'relative', 'fixed', or 'absolute' to ensure scroll offset is calculated correctly.")}function TM(e,t,n,r={}){return{measure:o=>{EM(e,r.target,n),vM(e,n,o),(r.offset||r.target)&&MM(e,n,r)},notify:()=>t(n)}}const wr=new WeakMap,id=new WeakMap,Ss=new WeakMap,cd=e=>e===document.scrollingElement?window:e;function Zh(e,{container:t=document.scrollingElement,...n}={}){if(!t)return ut;let r=Ss.get(t);r||(r=new Set,Ss.set(t,r));const o=pM(),a=TM(t,e,o,n);if(r.add(a),!wr.has(t)){const i=()=>{for(const l of r)l.measure(qe.timestamp);Ce.preUpdate(c)},c=()=>{for(const l of r)l.notify()},u=()=>Ce.read(i);wr.set(t,u);const d=cd(t);window.addEventListener("resize",u,{passive:!0}),t!==document.documentElement&&id.set(t,R0(t,u)),d.addEventListener("scroll",u,{passive:!0}),u()}const s=wr.get(t);return Ce.read(s,!1,!0),()=>{var u;Ot(s);const i=Ss.get(t);if(!i||(i.delete(a),i.size))return;const c=wr.get(t);wr.delete(t),c&&(cd(t).removeEventListener("scroll",c),(u=id.get(t))==null||u(),window.removeEventListener("resize",c))}}const ld=new Map;function PM(e){const t={value:0},n=Zh(r=>{t.value=r[e.axis].progress*100},e);return{currentTime:t,cancel:n}}function Qh({source:e,container:t,...n}){const{axis:r}=n;e&&(t=e);const o=ld.get(t)??new Map;ld.set(t,o);const a=n.target??"self",s=o.get(a)??{},i=r+(n.offset??[]).join(",");return s[i]||(s[i]=!n.target&&Uf()?new ScrollTimeline({source:t,axis:r}):PM({container:t,...n})),s[i]}function DM(e,t){const n=Qh(t);return e.attachTimeline({timeline:t.target?void 0:n,observe:r=>(r.pause(),uh(o=>{r.time=r.iterationDuration*o},n))})}function RM(e){return e.length===2}function AM(e,t){return RM(e)?Zh(n=>{e(n[t.axis].progress,n)},t):uh(e,Qh(t))}function OM(e,{axis:t="y",container:n=document.scrollingElement,...r}={}){if(!n)return ut;const o={axis:t,container:n,...r};return typeof e=="function"?AM(e,o):DM(e,o)}const kM=()=>({scrollX:Tt(0),scrollY:Tt(0),scrollXProgress:Tt(0),scrollYProgress:Tt(0)}),Oo=e=>e?!e.current:!1;function NM({container:e,target:t,...n}={}){const r=ba(kM),o=S.useRef(null),a=S.useRef(!1),s=S.useCallback(()=>(o.current=OM((i,{x:c,y:u})=>{r.scrollX.set(c.current),r.scrollXProgress.set(c.progress),r.scrollY.set(u.current),r.scrollYProgress.set(u.progress)},{...n,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0}),()=>{var i;(i=o.current)==null||i.call(o)}),[e,t,JSON.stringify(n.offset)]);return Hi(()=>{if(a.current=!1,Oo(e)||Oo(t)){a.current=!0;return}else return s()},[s]),S.useEffect(()=>{if(a.current)return At(!Oo(e),"Container ref is defined but not hydrated","use-scroll-ref"),At(!Oo(t),"Target ref is defined but not hydrated","use-scroll-ref"),s()},[s]),r}function _M(e){const t=ba(()=>Tt(e)),{isStatic:n}=S.useContext(pc);if(n){const[,r]=S.useState(e);S.useEffect(()=>t.on("change",r),[])}return t}function Jh(e,t){const n=_M(t()),r=()=>n.set(t());return r(),Hi(()=>{const o=()=>Ce.preRender(r,!1,!0),a=e.map(s=>s.on("change",o));return()=>{a.forEach(s=>s()),Ot(r)}}),n}function IM(e){Nr.current=[],e();const t=Jh(Nr.current,e);return Nr.current=void 0,t}function jM(e,t,n,r){if(typeof e=="function")return IM(e);const o=typeof t=="function"?t:O0(t,n,r);return Array.isArray(e)?ud(e,o):ud([e],([a])=>o(a))}function ud(e,t){const n=ba(()=>[]);return Jh(e,()=>{n.length=0;const r=e.length;for(let o=0;o<r;o++)n[o]=e[o].get();return t(n)})}const LM=({children:e,className:t})=>{const n=S.useRef(null),{scrollYProgress:r}=NM({target:n});if(typeof e!="string")throw new Error("TextReveal: children must be a string");const o=e.split(" ");return m.jsx("div",{ref:n,className:T.cn("z-0 relative h-[200vh]",t),children:m.jsx("div",{className:"sticky top-0 mx-auto flex h-[50%] max-w-4xl items-center bg-transparent px-[1rem] py-[5rem]",children:m.jsx("span",{ref:n,className:"flex flex-wrap p-5 text-2xl font-bold text-black/20 dark:text-white/20 md:p-8 md:text-3xl lg:p-10 lg:text-4xl xl:text-5xl",children:o.map((a,s)=>{const i=s/o.length,c=i+1/o.length;return m.jsx($M,{progress:r,range:[i,c],children:a},s)})})})})},$M=({children:e,progress:t,range:n})=>{const r=jM(t,n,[0,1]);return m.jsxs("span",{className:"relative mx-1 lg:mx-1.5",children:[m.jsx("span",{className:"absolute opacity-30",children:e}),m.jsx(hM.span,{style:{opacity:r},className:"text-black dark:text-white",children:e})]})};function FM(e,t){const n=h.createContext(t),r=a=>{const{children:s,...i}=a,c=h.useMemo(()=>i,Object.values(i));return m.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function o(a){const s=h.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Ne(e,t=[]){let n=[];function r(a,s){const i=h.createContext(s),c=n.length;n=[...n,s];const u=l=>{var v;const{scope:f,children:p,...g}=l,b=((v=f==null?void 0:f[e])==null?void 0:v[c])||i,y=h.useMemo(()=>g,Object.values(g));return m.jsx(b.Provider,{value:y,children:p})};u.displayName=a+"Provider";function d(l,f){var b;const p=((b=f==null?void 0:f[e])==null?void 0:b[c])||i,g=h.useContext(p);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${l}\` must be used within \`${a}\``)}return[u,d]}const o=()=>{const a=n.map(s=>h.createContext(s));return function(i){const c=(i==null?void 0:i[e])||a;return h.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[r,BM(o,...t)]}function BM(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((i,{useScope:c,scopeName:u})=>{const l=c(a)[`__scope${u}`];return{...i,...l}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function dd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dn(...e){return t=>{let n=!1;const r=e.map(o=>{const a=dd(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():dd(e[o],null)}}}}function ce(...e){return h.useCallback(dn(...e),e)}function F(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var mt=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},VM=h[" useId ".trim().toString()]||(()=>{}),WM=0;function _e(e){const[t,n]=h.useState(VM());return mt(()=>{n(r=>r??String(WM++))},[e]),t?`radix-${t}`:""}var zM=h[" useInsertionEffect ".trim().toString()]||mt;function Ge({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=HM({defaultProp:t,onChange:n}),i=e!==void 0,c=i?e:o;{const d=h.useRef(e!==void 0);h.useEffect(()=>{const l=d.current;l!==i&&console.warn(`${r} is changing from ${l?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=i},[i,r])}const u=h.useCallback(d=>{var l;if(i){const f=YM(d)?d(e):d;f!==e&&((l=s.current)==null||l.call(s,f))}else a(d)},[i,e,a,s]);return[c,u]}function HM({defaultProp:e,onChange:t}){const[n,r]=h.useState(e),o=h.useRef(n),a=h.useRef(t);return zM(()=>{a.current=t},[t]),h.useEffect(()=>{var s;o.current!==n&&((s=a.current)==null||s.call(a,n),o.current=n)},[n,o]),[n,r,a]}function YM(e){return typeof e=="function"}function Ue(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function UM(e,t=globalThis==null?void 0:globalThis.document){const n=Ue(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var GM="DismissableLayer",bi="dismissableLayer.update",KM="dismissableLayer.pointerDownOutside",qM="dismissableLayer.focusOutside",fd,em=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mr=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...c}=e,u=h.useContext(em),[d,l]=h.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=h.useState({}),g=ce(t,E=>l(E)),b=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=b.indexOf(y),x=d?b.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,M=x>=v,C=QM(E=>{const D=E.target,R=[...u.branches].some(A=>A.contains(D));!M||R||(o==null||o(E),s==null||s(E),E.defaultPrevented||i==null||i())},f),P=JM(E=>{const D=E.target;[...u.branches].some(A=>A.contains(D))||(a==null||a(E),s==null||s(E),E.defaultPrevented||i==null||i())},f);return UM(E=>{x===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&i&&(E.preventDefault(),i()))},f),h.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(fd=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),hd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=fd)}},[d,f,n,u]),h.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),hd())},[d,u]),h.useEffect(()=>{const E=()=>p({});return document.addEventListener(bi,E),()=>document.removeEventListener(bi,E)},[]),m.jsx(T.Primitive.div,{...c,ref:g,style:{pointerEvents:w?M?"auto":"none":void 0,...e.style},onFocusCapture:F(e.onFocusCapture,P.onFocusCapture),onBlurCapture:F(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:F(e.onPointerDownCapture,C.onPointerDownCapture)})});mr.displayName=GM;var XM="DismissableLayerBranch",ZM=h.forwardRef((e,t)=>{const n=h.useContext(em),r=h.useRef(null),o=ce(t,r);return h.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),m.jsx(T.Primitive.div,{...e,ref:o})});ZM.displayName=XM;function QM(e,t=globalThis==null?void 0:globalThis.document){const n=Ue(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let c=function(){tm(KM,n,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function JM(e,t=globalThis==null?void 0:globalThis.document){const n=Ue(e),r=h.useRef(!1);return h.useEffect(()=>{const o=a=>{a.target&&!r.current&&tm(qM,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function hd(){const e=new CustomEvent(bi);document.dispatchEvent(e)}function tm(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?T.dispatchDiscreteCustomEvent(o,a):o.dispatchEvent(a)}var Cs="focusScope.autoFocusOnMount",Ms="focusScope.autoFocusOnUnmount",md={bubbles:!1,cancelable:!0},eE="FocusScope",Ca=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,c]=h.useState(null),u=Ue(o),d=Ue(a),l=h.useRef(null),f=ce(t,b=>c(b)),p=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let b=function(w){if(p.paused||!i)return;const M=w.target;i.contains(M)?l.current=M:cn(l.current,{select:!0})},y=function(w){if(p.paused||!i)return;const M=w.relatedTarget;M!==null&&(i.contains(M)||cn(l.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const C of w)C.removedNodes.length>0&&cn(i)};document.addEventListener("focusin",b),document.addEventListener("focusout",y);const x=new MutationObserver(v);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",y),x.disconnect()}}},[r,i,p.paused]),h.useEffect(()=>{if(i){gd.add(p);const b=document.activeElement;if(!i.contains(b)){const v=new CustomEvent(Cs,md);i.addEventListener(Cs,u),i.dispatchEvent(v),v.defaultPrevented||(tE(sE(nm(i)),{select:!0}),document.activeElement===b&&cn(i))}return()=>{i.removeEventListener(Cs,u),setTimeout(()=>{const v=new CustomEvent(Ms,md);i.addEventListener(Ms,d),i.dispatchEvent(v),v.defaultPrevented||cn(b??document.body,{select:!0}),i.removeEventListener(Ms,d),gd.remove(p)},0)}}},[i,u,d,p]);const g=h.useCallback(b=>{if(!n&&!r||p.paused)return;const y=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,v=document.activeElement;if(y&&v){const x=b.currentTarget,[w,M]=nE(x);w&&M?!b.shiftKey&&v===M?(b.preventDefault(),n&&cn(w,{select:!0})):b.shiftKey&&v===w&&(b.preventDefault(),n&&cn(M,{select:!0})):v===x&&b.preventDefault()}},[n,r,p.paused]);return m.jsx(T.Primitive.div,{tabIndex:-1,...s,ref:f,onKeyDown:g})});Ca.displayName=eE;function tE(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(cn(r,{select:t}),document.activeElement!==n)return}function nE(e){const t=nm(e),n=pd(t,e),r=pd(t.reverse(),e);return[n,r]}function nm(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function pd(e,t){for(const n of e)if(!rE(n,{upTo:t}))return n}function rE(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function oE(e){return e instanceof HTMLInputElement&&"select"in e}function cn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&oE(e)&&t&&e.select()}}var gd=aE();function aE(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=vd(e,t),e.unshift(t)},remove(t){var n;e=vd(e,t),(n=e[0])==null||n.resume()}}}function vd(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function sE(e){return e.filter(t=>t.tagName!=="A")}var iE="Portal",pr=h.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,a]=h.useState(!1);mt(()=>a(!0),[]);const s=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Wi.createPortal(m.jsx(T.Primitive.div,{...r,ref:t}),s):null});pr.displayName=iE;function cE(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var Ie=e=>{const{present:t,children:n}=e,r=lE(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),a=ce(r.ref,uE(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:a}):null};Ie.displayName="Presence";function lE(e){const[t,n]=h.useState(),r=h.useRef(null),o=h.useRef(e),a=h.useRef("none"),s=e?"mounted":"unmounted",[i,c]=cE(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=ko(r.current);a.current=i==="mounted"?u:"none"},[i]),mt(()=>{const u=r.current,d=o.current;if(d!==e){const f=a.current,p=ko(u);e?c("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&f!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),mt(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,l=p=>{const b=ko(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&b&&(c("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},f=p=>{p.target===t&&(a.current=ko(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:h.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function ko(e){return(e==null?void 0:e.animationName)||"none"}function uE(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Es=0;function Ec(){h.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??bd()),document.body.insertAdjacentElement("beforeend",e[1]??bd()),Es++,()=>{Es===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Es--}},[])}function bd(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Bt=function(){return Bt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Bt.apply(this,arguments)};function rm(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function dE(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var qo="right-scroll-bar-position",Xo="width-before-scroll-bar",fE="with-scroll-bars-hidden",hE="--removed-body-scroll-bar-size";function Ts(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function mE(e,t){var n=S.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var pE=typeof window<"u"?h.useLayoutEffect:h.useEffect,yd=new WeakMap;function gE(e,t){var n=mE(null,function(r){return e.forEach(function(o){return Ts(o,r)})});return pE(function(){var r=yd.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||Ts(i,null)}),a.forEach(function(i){o.has(i)||Ts(i,s)})}yd.set(n,e)},[e]),n}function vE(e){return e}function bE(e,t){t===void 0&&(t=vE);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var i=n;n=[],i.forEach(a),s=n}var c=function(){var d=s;s=[],d.forEach(a)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){s.push(d),u()},filter:function(d){return s=s.filter(d),n}}}};return o}function yE(e){e===void 0&&(e={});var t=bE(null);return t.options=Bt({async:!0,ssr:!1},e),t}var om=function(e){var t=e.sideCar,n=rm(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return h.createElement(r,Bt({},n))};om.isSideCarExport=!0;function xE(e,t){return e.useMedium(t),om}var am=yE(),Ps=function(){},Ma=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:Ps,onWheelCapture:Ps,onTouchMoveCapture:Ps}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,l=e.shards,f=e.sideCar,p=e.noRelative,g=e.noIsolation,b=e.inert,y=e.allowPinchZoom,v=e.as,x=v===void 0?"div":v,w=e.gapMode,M=rm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=f,P=gE([n,t]),E=Bt(Bt({},M),o);return h.createElement(h.Fragment,null,d&&h.createElement(C,{sideCar:am,removeScrollBar:u,shards:l,noRelative:p,noIsolation:g,inert:b,setCallbacks:a,allowPinchZoom:!!y,lockRef:n,gapMode:w}),s?h.cloneElement(h.Children.only(i),Bt(Bt({},E),{ref:P})):h.createElement(x,Bt({},E,{className:c,ref:P}),i))});Ma.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ma.classNames={fullWidth:Xo,zeroRight:qo};var wE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function SE(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=wE();return t&&e.setAttribute("nonce",t),e}function CE(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ME(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var EE=function(){var e=0,t=null;return{add:function(n){e==0&&(t=SE())&&(CE(t,n),ME(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},TE=function(){var e=EE();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},sm=function(){var e=TE(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},PE={left:0,top:0,right:0,gap:0},Ds=function(e){return parseInt(e||"",10)||0},DE=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ds(n),Ds(r),Ds(o)]},RE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return PE;var t=DE(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},AE=sm(),er="data-scroll-locked",OE=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react/jsx-runtime"),S=require("react"),T=require("./Skeleton-BTwJmyVc.cjs"),Wi=require("react-dom"),wt=require("@radix-ui/react-slot"),Te=require("lucide-react");require("clsx");require("@radix-ui/react-select");require("next-intl");function gf(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const h=gf(S),Ox=gf(Wi),vf=S.createContext({});function ba(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const zi=typeof window<"u",Hi=zi?S.useLayoutEffect:S.useEffect,Yi=S.createContext(null);function Ui(e,t){e.indexOf(t)===-1&&e.push(t)}function Gi(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Yt=(e,t,n)=>n>t?t:n<e?e:n;function qs(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let ur=()=>{},At=()=>{};process.env.NODE_ENV!=="production"&&(ur=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(qs(t,n))},At=(e,t,n)=>{if(!e)throw new Error(qs(t,n))});const en={},bf=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function yf(e){return typeof e=="object"&&e!==null}const xf=e=>/^0[^.\s]+$/u.test(e);function Ki(e){let t;return()=>(t===void 0&&(t=e()),t)}const ut=e=>e,kx=(e,t)=>n=>t(e(n)),Jr=(...e)=>e.reduce(kx),rr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class qi{constructor(){this.subscriptions=[]}add(t){return Ui(this.subscriptions,t),()=>Gi(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let a=0;a<o;a++){const s=this.subscriptions[a];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Dt=e=>e*1e3,yt=e=>e/1e3;function Xi(e,t){return t?e*(1e3/t):0}const Yl=new Set;function ya(e,t,n){e||Yl.has(t)||(console.warn(qs(t,n)),Yl.add(t))}const wf=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Nx=1e-7,_x=12;function Ix(e,t,n,r,o){let a,s,i=0;do s=t+(n-t)/2,a=wf(s,r,o)-e,a>0?n=s:t=s;while(Math.abs(a)>Nx&&++i<_x);return s}function eo(e,t,n,r){if(e===t&&n===r)return ut;const o=a=>Ix(a,0,1,e,n);return a=>a===0||a===1?a:wf(o(a),t,r)}const Sf=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Cf=e=>t=>1-e(1-t),Mf=eo(.33,1.53,.69,.99),Zi=Cf(Mf),Ef=Sf(Zi),Tf=e=>(e*=2)<1?.5*Zi(e):.5*(2-Math.pow(2,-10*(e-1))),Qi=e=>1-Math.sin(Math.acos(e)),Pf=Cf(Qi),Df=Sf(Qi),jx=eo(.42,0,1,1),Lx=eo(0,0,.58,1),Rf=eo(.42,0,.58,1),$x=e=>Array.isArray(e)&&typeof e[0]!="number",Af=e=>Array.isArray(e)&&typeof e[0]=="number",Ul={linear:ut,easeIn:jx,easeInOut:Rf,easeOut:Lx,circIn:Qi,circInOut:Df,circOut:Pf,backIn:Zi,backInOut:Ef,backOut:Mf,anticipate:Tf},Fx=e=>typeof e=="string",Gl=e=>{if(Af(e)){At(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return eo(t,n,r,o)}else if(Fx(e))return At(Ul[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Ul[e];return e},Do=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Bx(e,t){let n=new Set,r=new Set,o=!1,a=!1;const s=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function c(d){s.has(d)&&(u.schedule(d),e()),d(i)}const u={schedule:(d,l=!1,f=!1)=>{const g=f&&o?n:r;return l&&s.add(d),g.has(d)||g.add(d),d},cancel:d=>{r.delete(d),s.delete(d)},process:d=>{if(i=d,o){a=!0;return}o=!0,[n,r]=[r,n],n.forEach(c),n.clear(),o=!1,a&&(a=!1,u.process(d))}};return u}const Vx=40;function Of(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=Do.reduce((w,M)=>(w[M]=Bx(a),w),{}),{setup:i,read:c,resolveKeyframes:u,preUpdate:d,update:l,preRender:f,render:p,postRender:g}=s,b=()=>{const w=en.useManualTiming?o.timestamp:performance.now();n=!1,en.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(w-o.timestamp,Vx),1)),o.timestamp=w,o.isProcessing=!0,i.process(o),c.process(o),u.process(o),d.process(o),l.process(o),f.process(o),p.process(o),g.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(b))},y=()=>{n=!0,r=!0,o.isProcessing||e(b)};return{schedule:Do.reduce((w,M)=>{const C=s[M];return w[M]=(P,E=!1,D=!1)=>(n||y(),C.schedule(P,E,D)),w},{}),cancel:w=>{for(let M=0;M<Do.length;M++)s[Do[M]].cancel(w)},state:o,steps:s}}const{schedule:Ce,cancel:Ot,state:qe,steps:is}=Of(typeof requestAnimationFrame<"u"?requestAnimationFrame:ut,!0);let zo;function Wx(){zo=void 0}const lt={now:()=>(zo===void 0&&lt.set(qe.isProcessing||en.useManualTiming?qe.timestamp:performance.now()),zo),set:e=>{zo=e,queueMicrotask(Wx)}},kf=e=>t=>typeof t=="string"&&t.startsWith(e),Ji=kf("--"),zx=kf("var(--"),ec=e=>zx(e)?Hx.test(e.split("/*")[0].trim()):!1,Hx=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,dr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$r={...dr,transform:e=>Yt(0,1,e)},Ro={...dr,default:1},kr=e=>Math.round(e*1e5)/1e5,tc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Yx(e){return e==null}const Ux=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,nc=(e,t)=>n=>!!(typeof n=="string"&&Ux.test(n)&&n.startsWith(e)||t&&!Yx(n)&&Object.prototype.hasOwnProperty.call(n,t)),Nf=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,a,s,i]=r.match(tc);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}},Gx=e=>Yt(0,255,e),cs={...dr,transform:e=>Math.round(Gx(e))},Dn={test:nc("rgb","red"),parse:Nf("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+cs.transform(e)+", "+cs.transform(t)+", "+cs.transform(n)+", "+kr($r.transform(r))+")"};function Kx(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Xs={test:nc("#"),parse:Kx,transform:Dn.transform},to=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),an=to("deg"),zt=to("%"),ie=to("px"),qx=to("vh"),Xx=to("vw"),Kl={...zt,parse:e=>zt.parse(e)/100,transform:e=>zt.transform(e*100)},Un={test:nc("hsl","hue"),parse:Nf("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+zt.transform(kr(t))+", "+zt.transform(kr(n))+", "+kr($r.transform(r))+")"},Ve={test:e=>Dn.test(e)||Xs.test(e)||Un.test(e),parse:e=>Dn.test(e)?Dn.parse(e):Un.test(e)?Un.parse(e):Xs.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Dn.transform(e):Un.transform(e),getAnimatableNone:e=>{const t=Ve.parse(e);return t.alpha=0,Ve.transform(t)}},Zx=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Qx(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(tc))==null?void 0:t.length)||0)+(((n=e.match(Zx))==null?void 0:n.length)||0)>0}const _f="number",If="color",Jx="var",ew="var(",ql="${}",tw=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Fr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let a=0;const i=t.replace(tw,c=>(Ve.test(c)?(r.color.push(a),o.push(If),n.push(Ve.parse(c))):c.startsWith(ew)?(r.var.push(a),o.push(Jx),n.push(c)):(r.number.push(a),o.push(_f),n.push(parseFloat(c))),++a,ql)).split(ql);return{values:n,split:i,indexes:r,types:o}}function jf(e){return Fr(e).values}function Lf(e){const{split:t,types:n}=Fr(e),r=t.length;return o=>{let a="";for(let s=0;s<r;s++)if(a+=t[s],o[s]!==void 0){const i=n[s];i===_f?a+=kr(o[s]):i===If?a+=Ve.transform(o[s]):a+=o[s]}return a}}const nw=e=>typeof e=="number"?0:Ve.test(e)?Ve.getAnimatableNone(e):e;function rw(e){const t=jf(e);return Lf(e)(t.map(nw))}const un={test:Qx,parse:jf,createTransformer:Lf,getAnimatableNone:rw};function ls(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ow({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,a=0,s=0;if(!t)o=a=s=n;else{const i=n<.5?n*(1+t):n+t-n*t,c=2*n-i;o=ls(c,i,e+1/3),a=ls(c,i,e),s=ls(c,i,e-1/3)}return{red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function Qo(e,t){return n=>n>0?t:e}const Oe=(e,t,n)=>e+(t-e)*n,us=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},aw=[Xs,Dn,Un],sw=e=>aw.find(t=>t.test(e));function Xl(e){const t=sw(e);if(ur(!!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===Un&&(n=ow(n)),n}const Zl=(e,t)=>{const n=Xl(e),r=Xl(t);if(!n||!r)return Qo(e,t);const o={...n};return a=>(o.red=us(n.red,r.red,a),o.green=us(n.green,r.green,a),o.blue=us(n.blue,r.blue,a),o.alpha=Oe(n.alpha,r.alpha,a),Dn.transform(o))},Zs=new Set(["none","hidden"]);function iw(e,t){return Zs.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function cw(e,t){return n=>Oe(e,t,n)}function rc(e){return typeof e=="number"?cw:typeof e=="string"?ec(e)?Qo:Ve.test(e)?Zl:dw:Array.isArray(e)?$f:typeof e=="object"?Ve.test(e)?Zl:lw:Qo}function $f(e,t){const n=[...e],r=n.length,o=e.map((a,s)=>rc(a)(a,t[s]));return a=>{for(let s=0;s<r;s++)n[s]=o[s](a);return n}}function lw(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=rc(e[o])(e[o],t[o]));return o=>{for(const a in r)n[a]=r[a](o);return n}}function uw(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],s=e.indexes[a][r[a]],i=e.values[s]??0;n[o]=i,r[a]++}return n}const dw=(e,t)=>{const n=un.createTransformer(t),r=Fr(e),o=Fr(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Zs.has(e)&&!o.values.length||Zs.has(t)&&!r.values.length?iw(e,t):Jr($f(uw(r,o),o.values),n):(ur(!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"),Qo(e,t))};function Ff(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Oe(e,t,n):rc(e)(e,t)}const fw=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Ce.update(t,n),stop:()=>Ot(t),now:()=>qe.isProcessing?qe.timestamp:lt.now()}},Bf=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let a=0;a<o;a++)r+=Math.round(e(a/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Jo=2e4;function oc(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Jo;)t+=n,r=e.next(t);return t>=Jo?1/0:t}function hw(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(oc(r),Jo);return{type:"keyframes",ease:a=>r.next(o*a).value/t,duration:yt(o)}}const mw=5;function Vf(e,t,n){const r=Math.max(t-mw,0);return Xi(n-e(r),t-r)}const Re={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},ds=.001;function pw({duration:e=Re.duration,bounce:t=Re.bounce,velocity:n=Re.velocity,mass:r=Re.mass}){let o,a;ur(e<=Dt(Re.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Yt(Re.minDamping,Re.maxDamping,s),e=Yt(Re.minDuration,Re.maxDuration,yt(e)),s<1?(o=u=>{const d=u*s,l=d*e,f=d-n,p=Qs(u,s),g=Math.exp(-l);return ds-f/p*g},a=u=>{const l=u*s*e,f=l*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-l),b=Qs(Math.pow(u,2),s);return(-o(u)+ds>0?-1:1)*((f-p)*g)/b}):(o=u=>{const d=Math.exp(-u*e),l=(u-n)*e+1;return-ds+d*l},a=u=>{const d=Math.exp(-u*e),l=(n-u)*(e*e);return d*l});const i=5/e,c=vw(o,a,i);if(e=Dt(e),isNaN(c))return{stiffness:Re.stiffness,damping:Re.damping,duration:e};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const gw=12;function vw(e,t,n){let r=n;for(let o=1;o<gw;o++)r=r-e(r)/t(r);return r}function Qs(e,t){return e*Math.sqrt(1-t*t)}const bw=["duration","bounce"],yw=["stiffness","damping","mass"];function Ql(e,t){return t.some(n=>e[n]!==void 0)}function xw(e){let t={velocity:Re.velocity,stiffness:Re.stiffness,damping:Re.damping,mass:Re.mass,isResolvedFromDuration:!1,...e};if(!Ql(e,yw)&&Ql(e,bw))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,a=2*Yt(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Re.mass,stiffness:o,damping:a}}else{const n=pw(e);t={...t,...n,mass:Re.mass},t.isResolvedFromDuration=!0}return t}function ea(e=Re.visualDuration,t=Re.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],i={done:!1,value:a},{stiffness:c,damping:u,mass:d,duration:l,velocity:f,isResolvedFromDuration:p}=xw({...n,velocity:-yt(n.velocity||0)}),g=f||0,b=u/(2*Math.sqrt(c*d)),y=s-a,v=yt(Math.sqrt(c/d)),x=Math.abs(y)<5;r||(r=x?Re.restSpeed.granular:Re.restSpeed.default),o||(o=x?Re.restDelta.granular:Re.restDelta.default);let w;if(b<1){const C=Qs(v,b);w=P=>{const E=Math.exp(-b*v*P);return s-E*((g+b*v*y)/C*Math.sin(C*P)+y*Math.cos(C*P))}}else if(b===1)w=C=>s-Math.exp(-v*C)*(y+(g+v*y)*C);else{const C=v*Math.sqrt(b*b-1);w=P=>{const E=Math.exp(-b*v*P),D=Math.min(C*P,300);return s-E*((g+b*v*y)*Math.sinh(D)+C*y*Math.cosh(D))/C}}const M={calculatedDuration:p&&l||null,next:C=>{const P=w(C);if(p)i.done=C>=l;else{let E=C===0?g:0;b<1&&(E=C===0?Dt(g):Vf(w,C,P));const D=Math.abs(E)<=r,R=Math.abs(s-P)<=o;i.done=D&&R}return i.value=i.done?s:P,i},toString:()=>{const C=Math.min(oc(M),Jo),P=Bf(E=>M.next(C*E).value,C,30);return C+"ms "+P},toTransition:()=>{}};return M}ea.applyToOptions=e=>{const t=hw(e,100,ea);return e.ease=t.ease,e.duration=Dt(t.duration),e.type="keyframes",e};function Js({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:s,min:i,max:c,restDelta:u=.5,restSpeed:d}){const l=e[0],f={done:!1,value:l},p=D=>i!==void 0&&D<i||c!==void 0&&D>c,g=D=>i===void 0?c:c===void 0||Math.abs(i-D)<Math.abs(c-D)?i:c;let b=n*t;const y=l+b,v=s===void 0?y:s(y);v!==y&&(b=v-l);const x=D=>-b*Math.exp(-D/r),w=D=>v+x(D),M=D=>{const R=x(D),A=w(D);f.done=Math.abs(R)<=u,f.value=f.done?v:A};let C,P;const E=D=>{p(f.value)&&(C=D,P=ea({keyframes:[f.value,g(f.value)],velocity:Vf(w,D,f.value),damping:o,stiffness:a,restDelta:u,restSpeed:d}))};return E(0),{calculatedDuration:null,next:D=>{let R=!1;return!P&&C===void 0&&(R=!0,M(D),E(D)),C!==void 0&&D>=C?P.next(D-C):(!R&&M(D),f)}}}function ww(e,t,n){const r=[],o=n||en.mix||Ff,a=e.length-1;for(let s=0;s<a;s++){let i=o(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||ut:t;i=Jr(c,i)}r.push(i)}return r}function ac(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;if(At(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];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=ww(t,r,o),c=i.length,u=d=>{if(s&&d<e[0])return t[0];let l=0;if(c>1)for(;l<e.length-2&&!(d<e[l+1]);l++);const f=rr(e[l],e[l+1],d);return i[l](f)};return n?d=>u(Yt(e[0],e[a-1],d)):u}function Sw(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=rr(0,t,r);e.push(Oe(n,1,o))}}function Wf(e){const t=[0];return Sw(t,e.length-1),t}function Cw(e,t){return e.map(n=>n*t)}function Mw(e,t){return e.map(()=>t||Rf).splice(0,e.length-1)}function Gn({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=$x(r)?r.map(Gl):Gl(r),a={done:!1,value:t[0]},s=Cw(n&&n.length===t.length?n:Wf(t),e),i=ac(s,t,{ease:Array.isArray(o)?o:Mw(t,o)});return{calculatedDuration:e,next:c=>(a.value=i(c),a.done=c>=e,a)}}const Ew=e=>e!==null;function sc(e,{repeat:t,repeatType:n="loop"},r,o=1){const a=e.filter(Ew),i=o<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!i||r===void 0?a[i]:r}const Tw={decay:Js,inertia:Js,tween:Gn,keyframes:Gn,spring:ea};function zf(e){typeof e.type=="string"&&(e.type=Tw[e.type])}class ic{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Pw=e=>e/100;class cc extends ic{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,o;const{motionValue:n}=this.options;n&&n.updatedAt!==lt.now()&&this.tick(lt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(r=this.options).onStop)==null||o.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;zf(t);const{type:n=Gn,repeat:r=0,repeatDelay:o=0,repeatType:a,velocity:s=0}=t;let{keyframes:i}=t;const c=n||Gn;process.env.NODE_ENV!=="production"&&c!==Gn&&At(i.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${i}`,"spring-two-frames"),c!==Gn&&typeof i[0]!="number"&&(this.mixKeyframes=Jr(Pw,Ff(i[0],i[1])),i=[0,100]);const u=c({...t,keyframes:i});a==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...i].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=oc(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:i,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:d,repeat:l,repeatType:f,repeatDelay:p,type:g,onUpdate:b,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let w=this.currentTime,M=r;if(l){const D=Math.min(this.currentTime,o)/i;let R=Math.floor(D),A=D%1;!A&&D>=1&&(A=1),A===1&&R--,R=Math.min(R,l+1),!!(R%2)&&(f==="reverse"?(A=1-A,p&&(A-=p/i)):f==="mirror"&&(M=s)),w=Yt(0,1,A)*i}const C=x?{done:!1,value:d[0]}:M.next(w);a&&(C.value=a(C.value));let{done:P}=C;!x&&c!==null&&(P=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return E&&g!==Js&&(C.value=sc(d,this.options,y,this.speed)),b&&b(C.value),E&&this.finish(),C}then(t,n){return this.finished.then(t,n)}get duration(){return yt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+yt(t)}get time(){return yt(this.currentTime)}set time(t){var n;t=Dt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(lt.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=yt(this.currentTime))}play(){var o,a;if(this.isStopped)return;const{driver:t=fw,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(a=(o=this.options).onPlay)==null||a.call(o);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),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(lt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Dw(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Rn=e=>e*180/Math.PI,ei=e=>{const t=Rn(Math.atan2(e[1],e[0]));return ti(t)},Rw={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ei,rotateZ:ei,skewX:e=>Rn(Math.atan(e[1])),skewY:e=>Rn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ti=e=>(e=e%360,e<0&&(e+=360),e),Jl=ei,eu=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),tu=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Aw={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:eu,scaleY:tu,scale:e=>(eu(e)+tu(e))/2,rotateX:e=>ti(Rn(Math.atan2(e[6],e[5]))),rotateY:e=>ti(Rn(Math.atan2(-e[2],e[0]))),rotateZ:Jl,rotate:Jl,skewX:e=>Rn(Math.atan(e[4])),skewY:e=>Rn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ni(e){return e.includes("scale")?1:0}function ri(e,t){if(!e||e==="none")return ni(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=Aw,o=n;else{const i=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Rw,o=i}if(!o)return ni(t);const a=r[t],s=o[1].split(",").map(kw);return typeof a=="function"?a(s):s[a]}const Ow=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return ri(n,t)};function kw(e){return parseFloat(e.trim())}const fr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],hr=new Set(fr),nu=e=>e===dr||e===ie,Nw=new Set(["x","y","z"]),_w=fr.filter(e=>!Nw.has(e));function Iw(e){const t=[];return _w.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const On={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})=>ri(t,"x"),y:(e,{transform:t})=>ri(t,"y")};On.translateX=On.x;On.translateY=On.y;const kn=new Set;let oi=!1,ai=!1,si=!1;function Hf(){if(ai){const e=Array.from(kn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Iw(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([a,s])=>{var i;(i=r.getValue(a))==null||i.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ai=!1,oi=!1,kn.forEach(e=>e.complete(si)),kn.clear()}function Yf(){kn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ai=!0)})}function jw(){si=!0,Yf(),Hf(),si=!1}class lc{constructor(t,n,r,o,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(kn.add(this),oi||(oi=!0,Ce.read(Yf),Ce.resolveKeyframes(Hf))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const a=o==null?void 0:o.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const i=r.readValue(n,s);i!=null&&(t[0]=i)}t[0]===void 0&&(t[0]=s),o&&a===void 0&&o.set(t[0])}Dw(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),kn.delete(this)}cancel(){this.state==="scheduled"&&(kn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Lw=e=>e.startsWith("--");function $w(e,t,n){Lw(t)?e.style.setProperty(t,n):e.style[t]=n}const Uf=Ki(()=>window.ScrollTimeline!==void 0),Fw={};function Bw(e,t){const n=Ki(e);return()=>Fw[t]??n()}const Gf=Bw(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Dr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ru={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Dr([0,.65,.55,1]),circOut:Dr([.55,0,1,.45]),backIn:Dr([.31,.01,.66,-.59]),backOut:Dr([.33,1.53,.69,.99])};function Kf(e,t){if(e)return typeof e=="function"?Gf()?Bf(e,t):"ease-out":Af(e)?Dr(e):Array.isArray(e)?e.map(n=>Kf(n,t)||ru.easeOut):ru[e]}function Vw(e,t,n,{delay:r=0,duration:o=300,repeat:a=0,repeatType:s="loop",ease:i="easeOut",times:c}={},u=void 0){const d={[t]:n};c&&(d.offset=c);const l=Kf(i,o);Array.isArray(l)&&(d.easing=l);const f={delay:r,duration:o,easing:Array.isArray(l)?"linear":l,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(d,f)}function qf(e){return typeof e=="function"&&"applyToOptions"in e}function Ww({type:e,...t}){return qf(e)&&Gf()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class zw extends ic{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:i,onComplete:c}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,At(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=Ww(t);this.animation=Vw(n,r,o,u,a),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const d=sc(o,this.options,i,this.speed);this.updateMotionValue?this.updateMotionValue(d):$w(n,r,d),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return yt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+yt(t)}get time(){return yt(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Dt(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Uf()?(this.animation.timeline=t,ut):n(this)}}const Xf={anticipate:Tf,backInOut:Ef,circInOut:Df};function Hw(e){return e in Xf}function Yw(e){typeof e.ease=="string"&&Hw(e.ease)&&(e.ease=Xf[e.ease])}const ou=10;class Uw extends zw{constructor(t){Yw(t),zf(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:a,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const i=new cc({...s,autoplay:!1}),c=Dt(this.finishedTime??this.time);n.setWithVelocity(i.sample(c-ou).value,i.sample(c).value,ou),i.stop()}}const au=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(un.test(e)||e==="0")&&!e.startsWith("url("));function Gw(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Kw(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],s=au(o,t),i=au(a,t);return ur(s===i,`You are trying to animate ${t} from "${o}" to "${a}". "${s?a:o}" is not an animatable value.`,"value-not-animatable"),!s||!i?!1:Gw(e)||(n==="spring"||qf(n))&&r}function ii(e){e.duration=0,e.type="keyframes"}const qw=new Set(["opacity","clipPath","filter","transform"]),Xw=Ki(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Zw(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:a,type:s}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return Xw()&&n&&qw.has(n)&&(n!=="transform"||!u)&&!c&&!r&&o!=="mirror"&&a!==0&&s!=="inertia"}const Qw=40;class Jw extends ic{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s="loop",keyframes:i,name:c,motionValue:u,element:d,...l}){var g;super(),this.stop=()=>{var b,y;this._animation&&(this._animation.stop(),(b=this.stopTimeline)==null||b.call(this)),(y=this.keyframeResolver)==null||y.cancel()},this.createdAt=lt.now();const f={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:a,repeatType:s,name:c,motionValue:u,element:d,...l},p=(d==null?void 0:d.KeyframeResolver)||lc;this.keyframeResolver=new p(i,(b,y,v)=>this.onKeyframesResolved(b,y,f,!v),c,u,d),(g=this.keyframeResolver)==null||g.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:a,type:s,velocity:i,delay:c,isHandoff:u,onUpdate:d}=r;this.resolvedAt=lt.now(),Kw(t,a,s,i)||((en.instantAnimations||!c)&&(d==null||d(sc(t,r,n))),t[0]=t[t.length-1],ii(r),r.repeat=0);const f={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>Qw?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!u&&Zw(f)?new Uw({...f,element:f.motionValue.owner.current}):new cc(f);p.finished.then(()=>this.notifyFinished()).catch(ut),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),jw()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const e0=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function t0(e){const t=e0.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const n0=4;function Zf(e,t,n=1){At(n<=n0,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=t0(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return bf(s)?parseFloat(s):s}return ec(o)?Zf(o,t,n+1):o}function uc(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Qf=new Set(["width","height","top","left","right","bottom",...fr]),r0={test:e=>e==="auto",parse:e=>e},Jf=e=>t=>t.test(e),eh=[dr,ie,zt,an,Xx,qx,r0],su=e=>eh.find(Jf(e));function o0(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||xf(e):!0}const a0=new Set(["brightness","contrast","saturate","opacity"]);function s0(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(tc)||[];if(!r)return e;const o=n.replace(r,"");let a=a0.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const i0=/\b([a-z-]*)\(.*?\)/gu,ci={...un,getAnimatableNone:e=>{const t=e.match(i0);return t?t.map(s0).join(" "):e}},iu={...dr,transform:Math.round},c0={rotate:an,rotateX:an,rotateY:an,rotateZ:an,scale:Ro,scaleX:Ro,scaleY:Ro,scaleZ:Ro,skew:an,skewX:an,skewY:an,distance:ie,translateX:ie,translateY:ie,translateZ:ie,x:ie,y:ie,z:ie,perspective:ie,transformPerspective:ie,opacity:$r,originX:Kl,originY:Kl,originZ:ie},dc={borderWidth:ie,borderTopWidth:ie,borderRightWidth:ie,borderBottomWidth:ie,borderLeftWidth:ie,borderRadius:ie,radius:ie,borderTopLeftRadius:ie,borderTopRightRadius:ie,borderBottomRightRadius:ie,borderBottomLeftRadius:ie,width:ie,maxWidth:ie,height:ie,maxHeight:ie,top:ie,right:ie,bottom:ie,left:ie,padding:ie,paddingTop:ie,paddingRight:ie,paddingBottom:ie,paddingLeft:ie,margin:ie,marginTop:ie,marginRight:ie,marginBottom:ie,marginLeft:ie,backgroundPositionX:ie,backgroundPositionY:ie,...c0,zIndex:iu,fillOpacity:$r,strokeOpacity:$r,numOctaves:iu},l0={...dc,color:Ve,backgroundColor:Ve,outlineColor:Ve,fill:Ve,stroke:Ve,borderColor:Ve,borderTopColor:Ve,borderRightColor:Ve,borderBottomColor:Ve,borderLeftColor:Ve,filter:ci,WebkitFilter:ci},th=e=>l0[e];function nh(e,t){let n=th(e);return n!==ci&&(n=un),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const u0=new Set(["auto","none","0"]);function d0(e,t,n){let r=0,o;for(;r<e.length&&!o;){const a=e[r];typeof a=="string"&&!u0.has(a)&&Fr(a).values.length&&(o=e[r]),r++}if(o&&n)for(const a of t)e[a]=nh(n,o)}class f0 extends lc{constructor(t,n,r,o,a){super(t,n,r,o,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let u=t[c];if(typeof u=="string"&&(u=u.trim(),ec(u))){const d=Zf(u,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Qf.has(r)||t.length!==2)return;const[o,a]=t,s=su(o),i=su(a);if(s!==i)if(nu(s)&&nu(i))for(let c=0;c<t.length;c++){const u=t[c];typeof u=="string"&&(t[c]=parseFloat(u))}else On[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||o0(t[o]))&&r.push(o);r.length&&d0(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=On[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var i;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const a=r.length-1,s=r[a];r[a]=On[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(i=this.removedTransforms)!=null&&i.length&&this.removedTransforms.forEach(([c,u])=>{t.getValue(c).set(u)}),this.resolveNoneKeyframes()}}function rh(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){const o=document.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const oh=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ah(e){return yf(e)&&"offsetHeight"in e}const cu=30,h0=e=>!isNaN(parseFloat(e)),Nr={current:void 0};class m0{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var a;const o=lt.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=lt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=h0(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ya(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new qi);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ce.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Nr.current&&Nr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=lt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>cu)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,cu);return Xi(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Tt(e,t){return new m0(e,t)}const{schedule:fc}=Of(queueMicrotask,!1),Et={x:!1,y:!1};function sh(){return Et.x||Et.y}function p0(e){return e==="x"||e==="y"?Et[e]?null:(Et[e]=!0,()=>{Et[e]=!1}):Et.x||Et.y?null:(Et.x=Et.y=!0,()=>{Et.x=Et.y=!1})}function ih(e,t){const n=rh(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function lu(e){return!(e.pointerType==="touch"||sh())}function g0(e,t,n={}){const[r,o,a]=ih(e,n),s=i=>{if(!lu(i))return;const{target:c}=i,u=t(c,i);if(typeof u!="function"||!c)return;const d=l=>{lu(l)&&(u(l),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,o)};return r.forEach(i=>{i.addEventListener("pointerenter",s,o)}),a}const ch=(e,t)=>t?e===t?!0:ch(e,t.parentElement):!1,hc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,v0=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function b0(e){return v0.has(e.tagName)||e.tabIndex!==-1}const Ho=new WeakSet;function uu(e){return t=>{t.key==="Enter"&&e(t)}}function fs(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const y0=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=uu(()=>{if(Ho.has(n))return;fs(n,"down");const o=uu(()=>{fs(n,"up")}),a=()=>fs(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function du(e){return hc(e)&&!sh()}function x0(e,t,n={}){const[r,o,a]=ih(e,n),s=i=>{const c=i.currentTarget;if(!du(i))return;Ho.add(c);const u=t(c,i),d=(p,g)=>{window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",f),Ho.has(c)&&Ho.delete(c),du(p)&&typeof u=="function"&&u(p,{success:g})},l=p=>{d(p,c===window||c===document||n.useGlobalTarget||ch(c,p.target))},f=p=>{d(p,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",f,o)};return r.forEach(i=>{(n.useGlobalTarget?window:i).addEventListener("pointerdown",s,o),ah(i)&&(i.addEventListener("focus",u=>y0(u,o)),!b0(i)&&!i.hasAttribute("tabindex")&&(i.tabIndex=0))}),a}function mc(e){return yf(e)&&"ownerSVGElement"in e}const Yo=new WeakMap;let sn;const lh=(e,t,n)=>(r,o)=>o&&o[0]?o[0][e+"Size"]:mc(r)&&"getBBox"in r?r.getBBox()[t]:r[n],w0=lh("inline","width","offsetWidth"),S0=lh("block","height","offsetHeight");function C0({target:e,borderBoxSize:t}){var n;(n=Yo.get(e))==null||n.forEach(r=>{r(e,{get width(){return w0(e,t)},get height(){return S0(e,t)}})})}function M0(e){e.forEach(C0)}function E0(){typeof ResizeObserver>"u"||(sn=new ResizeObserver(M0))}function T0(e,t){sn||E0();const n=rh(e);return n.forEach(r=>{let o=Yo.get(r);o||(o=new Set,Yo.set(r,o)),o.add(t),sn==null||sn.observe(r)}),()=>{n.forEach(r=>{const o=Yo.get(r);o==null||o.delete(t),o!=null&&o.size||sn==null||sn.unobserve(r)})}}const Uo=new Set;let Kn;function P0(){Kn=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Uo.forEach(t=>t(e))},window.addEventListener("resize",Kn)}function D0(e){return Uo.add(e),Kn||P0(),()=>{Uo.delete(e),!Uo.size&&typeof Kn=="function"&&(window.removeEventListener("resize",Kn),Kn=void 0)}}function R0(e,t){return typeof e=="function"?D0(e):T0(e,t)}function uh(e,t){let n;const r=()=>{const{currentTime:o}=t,s=(o===null?0:o.value)/100;n!==s&&e(s),n=s};return Ce.preUpdate(r,!0),()=>Ot(r)}function A0(e){return mc(e)&&e.tagName==="svg"}function O0(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],o=e[1+n],a=e[2+n],s=e[3+n],i=ac(o,a,s);return t?i(r):i}const et=e=>!!(e&&e.getVelocity),k0=[...eh,Ve,un],N0=e=>k0.find(Jf(e)),pc=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function _0(e=!0){const t=S.useContext(Yi);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,a=S.useId();S.useEffect(()=>{if(e)return o(a)},[e]);const s=S.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}const dh=S.createContext({strict:!1}),fu={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"]},or={};for(const e in fu)or[e]={isEnabled:t=>fu[e].some(n=>!!t[n])};function I0(e){for(const t in e)or[t]={...or[t],...e[t]}}const j0=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"]);function ta(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||j0.has(e)}let fh=e=>!ta(e);function L0(e){typeof e=="function"&&(fh=t=>t.startsWith("on")?!ta(t):e(t))}try{L0(require("@emotion/is-prop-valid").default)}catch{}function $0(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(fh(o)||n===!0&&ta(o)||!t&&!ta(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const xa=S.createContext({});function wa(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Br(e){return typeof e=="string"||Array.isArray(e)}const gc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],vc=["initial",...gc];function Sa(e){return wa(e.animate)||vc.some(t=>Br(e[t]))}function hh(e){return!!(Sa(e)||e.variants)}function F0(e,t){if(Sa(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Br(n)?n:void 0,animate:Br(r)?r:void 0}}return e.inherit!==!1?t:{}}function B0(e){const{initial:t,animate:n}=F0(e,S.useContext(xa));return S.useMemo(()=>({initial:t,animate:n}),[hu(t),hu(n)])}function hu(e){return Array.isArray(e)?e.join(" "):e}const Vr={};function V0(e){for(const t in e)Vr[t]=e[t],Ji(t)&&(Vr[t].isCSSVariable=!0)}function mh(e,{layout:t,layoutId:n}){return hr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Vr[e]||e==="opacity")}const W0={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},z0=fr.length;function H0(e,t,n){let r="",o=!0;for(let a=0;a<z0;a++){const s=fr[a],i=e[s];if(i===void 0)continue;let c=!0;if(typeof i=="number"?c=i===(s.startsWith("scale")?1:0):c=parseFloat(i)===0,!c||n){const u=oh(i,dc[s]);if(!c){o=!1;const d=W0[s]||s;r+=`${d}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function bc(e,t,n){const{style:r,vars:o,transformOrigin:a}=e;let s=!1,i=!1;for(const c in t){const u=t[c];if(hr.has(c)){s=!0;continue}else if(Ji(c)){o[c]=u;continue}else{const d=oh(u,dc[c]);c.startsWith("origin")?(i=!0,a[c]=d):r[c]=d}}if(t.transform||(s||n?r.transform=H0(t,e.transform,n):r.transform&&(r.transform="none")),i){const{originX:c="50%",originY:u="50%",originZ:d=0}=a;r.transformOrigin=`${c} ${u} ${d}`}}const yc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ph(e,t,n){for(const r in t)!et(t[r])&&!mh(r,n)&&(e[r]=t[r])}function Y0({transformTemplate:e},t){return S.useMemo(()=>{const n=yc();return bc(n,t,e),Object.assign({},n.vars,n.style)},[t])}function U0(e,t){const n=e.style||{},r={};return ph(r,n,e),Object.assign(r,Y0(e,t)),r}function G0(e,t){const n={},r=U0(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}const K0={offset:"stroke-dashoffset",array:"stroke-dasharray"},q0={offset:"strokeDashoffset",array:"strokeDasharray"};function X0(e,t,n=1,r=0,o=!0){e.pathLength=1;const a=o?K0:q0;e[a.offset]=ie.transform(-r);const s=ie.transform(t),i=ie.transform(n);e[a.array]=`${s} ${i}`}function gh(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...i},c,u,d){if(bc(e,i,u),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:l,style:f}=e;l.transform&&(f.transform=l.transform,delete l.transform),(f.transform||l.transformOrigin)&&(f.transformOrigin=l.transformOrigin??"50% 50%",delete l.transformOrigin),f.transform&&(f.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete l.transformBox),t!==void 0&&(l.x=t),n!==void 0&&(l.y=n),r!==void 0&&(l.scale=r),o!==void 0&&X0(l,o,a,s,!1)}const vh=()=>({...yc(),attrs:{}}),bh=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Z0(e,t,n,r){const o=S.useMemo(()=>{const a=vh();return gh(a,t,bh(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};ph(a,e.style,e),o.style={...a,...o.style}}return o}const Q0=["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"];function xc(e){return typeof e!="string"||e.includes("-")?!1:!!(Q0.indexOf(e)>-1||/[A-Z]/u.test(e))}function J0(e,t,n,{latestValues:r},o,a=!1){const i=(xc(e)?Z0:G0)(t,r,o,e),c=$0(t,typeof e=="string",a),u=e!==S.Fragment?{...c,...i,ref:n}:{},{children:d}=t,l=S.useMemo(()=>et(d)?d.get():d,[d]);return S.createElement(e,{...u,children:l})}function mu(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function wc(e,t,n,r){if(typeof t=="function"){const[o,a]=mu(r);t=t(n!==void 0?n:e.custom,o,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,a]=mu(r);t=t(n!==void 0?n:e.custom,o,a)}return t}function Go(e){return et(e)?e.get():e}function eS({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:tS(n,r,o,e),renderState:t()}}function tS(e,t,n,r){const o={},a=r(e,{});for(const f in a)o[f]=Go(a[f]);let{initial:s,animate:i}=e;const c=Sa(e),u=hh(e);t&&u&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),i===void 0&&(i=t.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const l=d?i:s;if(l&&typeof l!="boolean"&&!wa(l)){const f=Array.isArray(l)?l:[l];for(let p=0;p<f.length;p++){const g=wc(e,f[p]);if(g){const{transitionEnd:b,transition:y,...v}=g;for(const x in v){let w=v[x];if(Array.isArray(w)){const M=d?w.length-1:0;w=w[M]}w!==null&&(o[x]=w)}for(const x in b)o[x]=b[x]}}}return o}const yh=e=>(t,n)=>{const r=S.useContext(xa),o=S.useContext(Yi),a=()=>eS(e,t,r,o);return n?a():ba(a)};function Sc(e,t,n){var a;const{style:r}=e,o={};for(const s in r)(et(r[s])||t.style&&et(t.style[s])||mh(s,e)||((a=n==null?void 0:n.getValue(s))==null?void 0:a.liveStyle)!==void 0)&&(o[s]=r[s]);return o}const nS=yh({scrapeMotionValuesFromProps:Sc,createRenderState:yc});function xh(e,t,n){const r=Sc(e,t,n);for(const o in e)if(et(e[o])||et(t[o])){const a=fr.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[a]=e[o]}return r}const rS=yh({scrapeMotionValuesFromProps:xh,createRenderState:vh}),oS=Symbol.for("motionComponentSymbol");function qn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function aS(e,t,n){return S.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):qn(n)&&(n.current=r))},[t])}const Cc=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),sS="framerAppearId",wh="data-"+Cc(sS),Sh=S.createContext({});function iS(e,t,n,r,o){var b,y;const{visualElement:a}=S.useContext(xa),s=S.useContext(dh),i=S.useContext(Yi),c=S.useContext(pc).reducedMotion,u=S.useRef(null);r=r||s.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:a,props:n,presenceContext:i,blockInitialAnimation:i?i.initial===!1:!1,reducedMotionConfig:c}));const d=u.current,l=S.useContext(Sh);d&&!d.projection&&o&&(d.type==="html"||d.type==="svg")&&cS(u.current,n,o,l);const f=S.useRef(!1);S.useInsertionEffect(()=>{d&&f.current&&d.update(n,i)});const p=n[wh],g=S.useRef(!!p&&!((b=window.MotionHandoffIsComplete)!=null&&b.call(window,p))&&((y=window.MotionHasOptimisedAnimation)==null?void 0:y.call(window,p)));return Hi(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),g.current&&d.animationState&&d.animationState.animateChanges())}),S.useEffect(()=>{d&&(!g.current&&d.animationState&&d.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)==null||v.call(window,p)}),g.current=!1),d.enteringChildren=void 0)}),d}function cS(e,t,n,r){const{layoutId:o,layout:a,drag:s,dragConstraints:i,layoutScroll:c,layoutRoot:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ch(e.parent)),e.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:!!s||i&&qn(i),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:u})}function Ch(e){if(e)return e.options.allowProjection!==!1?e.projection:Ch(e.parent)}function hs(e,{forwardMotionProps:t=!1}={},n,r){n&&I0(n);const o=xc(e)?rS:nS;function a(i,c){let u;const d={...S.useContext(pc),...i,layoutId:lS(i)},{isStatic:l}=d,f=B0(i),p=o(i,l);if(!l&&zi){uS(d,n);const g=dS(d);u=g.MeasureLayout,f.visualElement=iS(e,p,d,r,g.ProjectionNode)}return m.jsxs(xa.Provider,{value:f,children:[u&&f.visualElement?m.jsx(u,{visualElement:f.visualElement,...d}):null,J0(e,i,aS(p,f.visualElement,c),p,l,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=S.forwardRef(a);return s[oS]=e,s}function lS({layoutId:e}){const t=S.useContext(vf).id;return t&&e!==void 0?t+"-"+e:e}function uS(e,t){const n=S.useContext(dh).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?ur(!1,r,"lazy-strict-mode"):At(!1,r,"lazy-strict-mode")}}function dS(e){const{drag:t,layout:n}=or;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function fS(e,t){if(typeof Proxy>"u")return hs;const n=new Map,r=(a,s)=>hs(a,s,e,t),o=(a,s)=>(process.env.NODE_ENV!=="production"&&ya(!1,"motion() is deprecated. Use motion.create() instead."),r(a,s));return new Proxy(o,{get:(a,s)=>s==="create"?r:(n.has(s)||n.set(s,hs(s,void 0,e,t)),n.get(s))})}function Mh({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function hS({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function mS(e,t){if(!t)return e;const 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 ms(e){return e===void 0||e===1}function li({scale:e,scaleX:t,scaleY:n}){return!ms(e)||!ms(t)||!ms(n)}function Tn(e){return li(e)||Eh(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Eh(e){return pu(e.x)||pu(e.y)}function pu(e){return e&&e!=="0%"}function na(e,t,n){const r=e-n,o=t*r;return n+o}function gu(e,t,n,r,o){return o!==void 0&&(e=na(e,o,r)),na(e,n,r)+t}function ui(e,t=0,n=1,r,o){e.min=gu(e.min,t,n,r,o),e.max=gu(e.max,t,n,r,o)}function Th(e,{x:t,y:n}){ui(e.x,t.translate,t.scale,t.originPoint),ui(e.y,n.translate,n.scale,n.originPoint)}const vu=.999999999999,bu=1.0000000000001;function pS(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let a,s;for(let i=0;i<o;i++){a=n[i],s=a.projectionDelta;const{visualElement:c}=a.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Zn(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Th(e,s)),r&&Tn(a.latestValues)&&Zn(e,a.latestValues))}t.x<bu&&t.x>vu&&(t.x=1),t.y<bu&&t.y>vu&&(t.y=1)}function Xn(e,t){e.min=e.min+t,e.max=e.max+t}function yu(e,t,n,r,o=.5){const a=Oe(e.min,e.max,o);ui(e,t,n,a,r)}function Zn(e,t){yu(e.x,t.x,t.scaleX,t.scale,t.originX),yu(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ph(e,t){return Mh(mS(e.getBoundingClientRect(),t))}function gS(e,t,n){const r=Ph(e,n),{scroll:o}=t;return o&&(Xn(r.x,o.offset.x),Xn(r.y,o.offset.y)),r}const xu=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qn=()=>({x:xu(),y:xu()}),wu=()=>({min:0,max:0}),je=()=>({x:wu(),y:wu()}),di={current:null},Dh={current:!1};function vS(){if(Dh.current=!0,!!zi)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>di.current=e.matches;e.addEventListener("change",t),t()}else di.current=!1}const bS=new WeakMap;function yS(e,t,n){for(const r in t){const o=t[r],a=n[r];if(et(o))e.addValue(r,o);else if(et(a))e.addValue(r,Tt(o,{owner:e}));else if(a!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,Tt(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Su=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class xS{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:a,visualState:s},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=lc,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=()=>{const f=lt.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,Ce.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=i,this.blockInitialAnimation=!!a,this.isControllingVariants=Sa(n),this.isVariantNode=hh(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...l}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in l){const p=l[f];c[f]!==void 0&&et(p)&&p.set(c[f])}}mount(t){var n;this.current=t,bS.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),Dh.current||vS(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:di.current,process.env.NODE_ENV!=="production"&&ya(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Ot(this.notifyUpdate),Ot(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=hr.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Ce.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in or){const n=or[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):je()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Su.length;r++){const o=Su[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const a="on"+o,s=t[a];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=yS(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Tt(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(bf(r)||xf(r))?r=parseFloat(r):!N0(r)&&un.test(n)&&(r=nh(t,n)),this.setBaseTarget(t,et(r)?r.get():r)),et(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var a;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=wc(this.props,n,(a=this.presenceContext)==null?void 0:a.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!et(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new qi),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){fc.render(this.render)}}class Rh extends xS{constructor(){super(...arguments),this.KeyframeResolver=f0}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;et(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ah(e,{style:t,vars:n},r,o){const a=e.style;let s;for(s in t)a[s]=t[s];o==null||o.applyProjectionStyles(a,r);for(s in n)a.setProperty(s,n[s])}function wS(e){return window.getComputedStyle(e)}class SS extends Rh{constructor(){super(...arguments),this.type="html",this.renderInstance=Ah}readValueFromInstance(t,n){var r;if(hr.has(n))return(r=this.projection)!=null&&r.isProjecting?ni(n):Ow(t,n);{const o=wS(t),a=(Ji(n)?o.getPropertyValue(n):o[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ph(t,n)}build(t,n,r){bc(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Sc(t,n,r)}}const Oh=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"]);function CS(e,t,n,r){Ah(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Oh.has(o)?o:Cc(o),t.attrs[o])}class MS extends Rh{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=je}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(hr.has(n)){const r=th(n);return r&&r.default||0}return n=Oh.has(n)?n:Cc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return xh(t,n,r)}build(t,n,r){gh(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){CS(t,n,r,o)}mount(t){this.isSVGTag=bh(t.tagName),super.mount(t)}}const ES=(e,t)=>xc(e)?new MS(t):new SS(t,{allowProjection:e!==S.Fragment});function Jn(e,t,n){const r=e.getProps();return wc(r,t,n!==void 0?n:r.custom,e)}const fi=e=>Array.isArray(e);function TS(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Tt(n))}function PS(e){return fi(e)?e[e.length-1]||0:e}function DS(e,t){const n=Jn(e,t);let{transitionEnd:r={},transition:o={},...a}=n||{};a={...a,...r};for(const s in a){const i=PS(a[s]);TS(e,s,i)}}function RS(e){return!!(et(e)&&e.add)}function hi(e,t){const n=e.getValue("willChange");if(RS(n))return n.add(t);if(!n&&en.WillChange){const r=new en.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function kh(e){return e.props[wh]}const AS=e=>e!==null;function OS(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(AS),a=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[a]}const kS={type:"spring",stiffness:500,damping:25,restSpeed:10},NS=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),_S={type:"keyframes",duration:.8},IS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},jS=(e,{keyframes:t})=>t.length>2?_S:hr.has(e)?e.startsWith("scale")?NS(t[1]):kS:IS;function LS({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:a,repeatType:s,repeatDelay:i,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const Mc=(e,t,n,r={},o,a)=>s=>{const i=uc(r,e)||{},c=i.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Dt(c);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...i,delay:-u,onUpdate:f=>{t.set(f),i.onUpdate&&i.onUpdate(f)},onComplete:()=>{s(),i.onComplete&&i.onComplete()},name:e,motionValue:t,element:a?void 0:o};LS(i)||Object.assign(d,jS(e,d)),d.duration&&(d.duration=Dt(d.duration)),d.repeatDelay&&(d.repeatDelay=Dt(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let l=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(ii(d),d.delay===0&&(l=!0)),(en.instantAnimations||en.skipAnimations)&&(l=!0,ii(d),d.delay=0),d.allowFlatten=!i.type&&!i.ease,l&&!a&&t.get()!==void 0){const f=OS(d.keyframes,i);if(f!==void 0){Ce.update(()=>{d.onUpdate(f),d.onComplete()});return}}return i.isSync?new cc(d):new Jw(d)};function $S({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Nh(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...i}=t;r&&(a=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const d in i){const l=e.getValue(d,e.latestValues[d]??null),f=i[d];if(f===void 0||u&&$S(u,d))continue;const p={delay:n,...uc(a||{},d)},g=l.get();if(g!==void 0&&!l.isAnimating&&!Array.isArray(f)&&f===g&&!p.velocity)continue;let b=!1;if(window.MotionHandoffAnimation){const v=kh(e);if(v){const x=window.MotionHandoffAnimation(v,d,Ce);x!==null&&(p.startTime=x,b=!0)}}hi(e,d),l.start(Mc(d,l,f,e.shouldReduceMotion&&Qf.has(d)?{type:!1}:p,e,b));const y=l.animation;y&&c.push(y)}return s&&Promise.all(c).then(()=>{Ce.update(()=>{s&&DS(e,s)})}),c}function _h(e,t,n,r=0,o=1){const a=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),s=e.size,i=(s-1)*r;return typeof n=="function"?n(a,s):o===1?a*r:i-a*r}function mi(e,t,n={}){var c;const r=Jn(e,t,n.type==="exit"?(c=e.presenceContext)==null?void 0:c.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const a=r?()=>Promise.all(Nh(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:l,staggerDirection:f}=o;return FS(e,t,u,d,l,f,n)}:()=>Promise.resolve(),{when:i}=o;if(i){const[u,d]=i==="beforeChildren"?[a,s]:[s,a];return u().then(()=>d())}else return Promise.all([a(),s(n.delay)])}function FS(e,t,n=0,r=0,o=0,a=1,s){const i=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),i.push(mi(c,t,{...s,delay:n+(typeof r=="function"?0:r)+_h(e.variantChildren,c,r,o,a)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(i)}function BS(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(a=>mi(e,a,n));r=Promise.all(o)}else if(typeof t=="string")r=mi(e,t,n);else{const o=typeof t=="function"?Jn(e,t,n.custom):t;r=Promise.all(Nh(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Ih(e,t){if(!Array.isArray(t))return!1;const 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}const VS=vc.length;function jh(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?jh(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<VS;n++){const r=vc[n],o=e.props[r];(Br(o)||o===!1)&&(t[r]=o)}return t}const WS=[...gc].reverse(),zS=gc.length;function HS(e){return t=>Promise.all(t.map(({animation:n,options:r})=>BS(e,n,r)))}function YS(e){let t=HS(e),n=Cu(),r=!0;const o=c=>(u,d)=>{var f;const l=Jn(e,d,c==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(l){const{transition:p,transitionEnd:g,...b}=l;u={...u,...b,...g}}return u};function a(c){t=c(e)}function s(c){const{props:u}=e,d=jh(e.parent)||{},l=[],f=new Set;let p={},g=1/0;for(let y=0;y<zS;y++){const v=WS[y],x=n[v],w=u[v]!==void 0?u[v]:d[v],M=Br(w),C=v===c?x.isActive:null;C===!1&&(g=y);let P=w===d[v]&&w!==u[v]&&M;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),x.protectedKeys={...p},!x.isActive&&C===null||!w&&!x.prevProp||wa(w)||typeof w=="boolean")continue;const E=US(x.prevProp,w);let D=E||v===c&&x.isActive&&!P&&M||y>g&&M,R=!1;const A=Array.isArray(w)?w:[w];let N=A.reduce(o(v),{});C===!1&&(N={});const{prevResolvedValues:z={}}=x,O={...z,...N},U=$=>{D=!0,f.has($)&&(R=!0,f.delete($)),x.needsAnimating[$]=!0;const j=e.getValue($);j&&(j.liveStyle=!1)};for(const $ in O){const j=N[$],_=z[$];if(p.hasOwnProperty($))continue;let Z=!1;fi(j)&&fi(_)?Z=!Ih(j,_):Z=j!==_,Z?j!=null?U($):f.add($):j!==void 0&&f.has($)?U($):x.protectedKeys[$]=!0}x.prevProp=w,x.prevResolvedValues=N,x.isActive&&(p={...p,...N}),r&&e.blockInitialAnimation&&(D=!1);const K=P&&E;D&&(!K||R)&&l.push(...A.map($=>{const j={type:v};if(typeof $=="string"&&r&&!K&&e.manuallyAnimateOnMount&&e.parent){const{parent:_}=e,Z=Jn(_,$);if(_.enteringChildren&&Z){const{delayChildren:ae}=Z.transition||{};j.delay=_h(_.enteringChildren,e,ae)}}return{animation:$,options:j}}))}if(f.size){const y={};if(typeof u.initial!="boolean"){const v=Jn(e,Array.isArray(u.initial)?u.initial[0]:u.initial);v&&v.transition&&(y.transition=v.transition)}f.forEach(v=>{const x=e.getBaseTarget(v),w=e.getValue(v);w&&(w.liveStyle=!0),y[v]=x??null}),l.push({animation:y})}let b=!!l.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(l):Promise.resolve()}function i(c,u){var l;if(n[c].isActive===u)return Promise.resolve();(l=e.variantChildren)==null||l.forEach(f=>{var p;return(p=f.animationState)==null?void 0:p.setActive(c,u)}),n[c].isActive=u;const d=s(c);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:i,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Cu()}}}function US(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ih(t,e):!1}function Mn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Cu(){return{animate:Mn(!0),whileInView:Mn(),whileHover:Mn(),whileTap:Mn(),whileDrag:Mn(),whileFocus:Mn(),exit:Mn()}}class pn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class GS extends pn{constructor(t){super(t),t.animationState||(t.animationState=YS(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();wa(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let KS=0;class qS extends pn{constructor(){super(...arguments),this.id=KS++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const XS={animation:{Feature:GS},exit:{Feature:qS}};function Wr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function no(e){return{point:{x:e.pageX,y:e.pageY}}}const ZS=e=>t=>hc(t)&&e(t,no(t));function _r(e,t,n,r){return Wr(e,t,ZS(n),r)}const Lh=1e-4,QS=1-Lh,JS=1+Lh,$h=.01,eC=0-$h,tC=0+$h;function ot(e){return e.max-e.min}function nC(e,t,n){return Math.abs(e-t)<=n}function Mu(e,t,n,r=.5){e.origin=r,e.originPoint=Oe(t.min,t.max,e.origin),e.scale=ot(n)/ot(t),e.translate=Oe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=QS&&e.scale<=JS||isNaN(e.scale))&&(e.scale=1),(e.translate>=eC&&e.translate<=tC||isNaN(e.translate))&&(e.translate=0)}function Ir(e,t,n,r){Mu(e.x,t.x,n.x,r?r.originX:void 0),Mu(e.y,t.y,n.y,r?r.originY:void 0)}function Eu(e,t,n){e.min=n.min+t.min,e.max=e.min+ot(t)}function rC(e,t,n){Eu(e.x,t.x,n.x),Eu(e.y,t.y,n.y)}function Tu(e,t,n){e.min=t.min-n.min,e.max=e.min+ot(t)}function jr(e,t,n){Tu(e.x,t.x,n.x),Tu(e.y,t.y,n.y)}function bt(e){return[e("x"),e("y")]}const Fh=({current:e})=>e?e.ownerDocument.defaultView:null,Pu=(e,t)=>Math.abs(e-t);function oC(e,t){const n=Pu(e.x,t.x),r=Pu(e.y,t.y);return Math.sqrt(n**2+r**2)}class Bh{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:a=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=gs(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=oC(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!g)return;const{point:b}=f,{timestamp:y}=qe;this.history.push({...b,timestamp:y});const{onStart:v,onMove:x}=this.handlers;p||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=ps(p,this.transformPagePoint),Ce.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:g,onSessionEnd:b,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=gs(f.type==="pointercancel"?this.lastMoveEventInfo:ps(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,v),b&&b(f,v)},!hc(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const i=no(t),c=ps(i,this.transformPagePoint),{point:u}=c,{timestamp:d}=qe;this.history=[{...u,timestamp:d}];const{onSessionStart:l}=n;l&&l(t,gs(c,this.history)),this.removeListeners=Jr(_r(this.contextWindow,"pointermove",this.handlePointerMove),_r(this.contextWindow,"pointerup",this.handlePointerUp),_r(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ot(this.updatePoint)}}function ps(e,t){return t?{point:t(e.point)}:e}function Du(e,t){return{x:e.x-t.x,y:e.y-t.y}}function gs({point:e},t){return{point:e,delta:Du(e,Vh(t)),offset:Du(e,aC(t)),velocity:sC(t,.1)}}function aC(e){return e[0]}function Vh(e){return e[e.length-1]}function sC(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Vh(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Dt(t)));)n--;if(!r)return{x:0,y:0};const a=yt(o.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function iC(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Oe(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Oe(n,e,r.max):Math.min(e,n)),e}function Ru(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function cC(e,{top:t,left:n,bottom:r,right:o}){return{x:Ru(e.x,n,o),y:Ru(e.y,t,r)}}function Au(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 lC(e,t){return{x:Au(e.x,t.x),y:Au(e.y,t.y)}}function uC(e,t){let n=.5;const r=ot(e),o=ot(t);return o>r?n=rr(t.min,t.max-r,e.min):r>o&&(n=rr(e.min,e.max-o,t.min)),Yt(0,1,n)}function dC(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const pi=.35;function fC(e=pi){return e===!1?e=0:e===!0&&(e=pi),{x:Ou(e,"left","right"),y:Ou(e,"top","bottom")}}function Ou(e,t,n){return{min:ku(e,t),max:ku(e,n)}}function ku(e,t){return typeof e=="number"?e:e[t]||0}const hC=new WeakMap;class mC{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=je(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const a=l=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(no(l).point)},s=(l,f)=>{const{drag:p,dragPropagation:g,onDragStart:b}=this.getProps();if(p&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=p0(p),!this.openDragLock))return;this.latestPointerEvent=l,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),bt(v=>{let x=this.getAxisMotionValue(v).get()||0;if(zt.test(x)){const{projection:w}=this.visualElement;if(w&&w.layout){const M=w.layout.layoutBox[v];M&&(x=ot(M)*(parseFloat(x)/100))}}this.originPoint[v]=x}),b&&Ce.postRender(()=>b(l,f)),hi(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},i=(l,f)=>{this.latestPointerEvent=l,this.latestPanInfo=f;const{dragPropagation:p,dragDirectionLock:g,onDirectionLock:b,onDrag:y}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:v}=f;if(g&&this.currentDirection===null){this.currentDirection=pC(v),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),y&&y(l,f)},c=(l,f)=>{this.latestPointerEvent=l,this.latestPanInfo=f,this.stop(l,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>bt(l=>{var f;return this.getAnimationState(l)==="paused"&&((f=this.getAxisMotionValue(l).animation)==null?void 0:f.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Bh(t,{onSessionStart:a,onStart:s,onMove:i,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:Fh(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!o||!r)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&Ce.postRender(()=>i(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Ao(t,o,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=iC(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){var a;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(a=this.visualElement.projection)==null?void 0:a.layout,o=this.constraints;t&&qn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=cC(r.layoutBox,t):this.constraints=!1,this.elastic=fC(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&bt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=dC(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!qn(t))return!1;const r=t.current;At(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const a=gS(r,o.root,this.visualElement.getTransformPagePoint());let s=lC(o.layout.layoutBox,a);if(n){const i=n(hS(s));this.hasMutatedConstraints=!!i,i&&(s=Mh(i))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),c=this.constraints||{},u=bt(d=>{if(!Ao(d,n,this.currentDirection))return;let l=c&&c[d]||{};s&&(l={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,g={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...a,...l};return this.startAxisValueAnimation(d,g)});return Promise.all(u).then(i)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return hi(this.visualElement,t),r.start(Mc(t,r,0,n,this.visualElement,!1))}stopAnimation(){bt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){bt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){bt(n=>{const{drag:r}=this.getProps();if(!Ao(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,a=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:i}=o.layout.layoutBox[n];a.set(t[n]-Oe(s,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!qn(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};bt(s=>{const i=this.getAxisMotionValue(s);if(i&&this.constraints!==!1){const c=i.get();o[s]=uC({min:c,max:c},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),bt(s=>{if(!Ao(s,t,null))return;const i=this.getAxisMotionValue(s),{min:c,max:u}=this.constraints[s];i.set(Oe(c,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;hC.set(this.visualElement,this);const t=this.visualElement.current,n=_r(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();qn(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Ce.read(r);const s=Wr(window,"resize",()=>this.scalePositionWithinConstraints()),i=o.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(bt(d=>{const l=this.getAxisMotionValue(d);l&&(this.originPoint[d]+=c[d].translate,l.set(l.get()+c[d].translate))}),this.visualElement.render())}));return()=>{s(),n(),a(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:a=!1,dragElastic:s=pi,dragMomentum:i=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:a,dragElastic:s,dragMomentum:i}}}function Ao(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function pC(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class gC extends pn{constructor(t){super(t),this.removeGroupControls=ut,this.removeListeners=ut,this.controls=new mC(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ut}unmount(){this.removeGroupControls(),this.removeListeners()}}const Nu=e=>(t,n)=>{e&&Ce.postRender(()=>e(t,n))};class vC extends pn{constructor(){super(...arguments),this.removePointerDownListener=ut}onPointerDown(t){this.session=new Bh(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Fh(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Nu(t),onStart:Nu(n),onMove:r,onEnd:(a,s)=>{delete this.session,o&&Ce.postRender(()=>o(a,s))}}}mount(){this.removePointerDownListener=_r(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ko={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function _u(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const xr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ie.test(e))e=parseFloat(e);else return e;const n=_u(e,t.target.x),r=_u(e,t.target.y);return`${n}% ${r}%`}},bC={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=un.parse(e);if(o.length>5)return r;const a=un.createTransformer(e),s=typeof o[0]!="number"?1:0,i=n.x.scale*t.x,c=n.y.scale*t.y;o[0+s]/=i,o[1+s]/=c;const u=Oe(i,c,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),a(o)}};let vs=!1;class yC extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:a}=t;V0(xC),a&&(n.group&&n.group.add(a),r&&r.register&&o&&r.register(a),vs&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Ko.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:a}=this.props,{projection:s}=r;return s&&(s.isPresent=a,vs=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||Ce.postRender(()=>{const i=s.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),fc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;vs=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Wh(e){const[t,n]=_0(),r=S.useContext(vf);return m.jsx(yC,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(Sh),isPresent:t,safeToRemove:n})}const xC={borderRadius:{...xr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xr,borderTopRightRadius:xr,borderBottomLeftRadius:xr,borderBottomRightRadius:xr,boxShadow:bC};function wC(e,t,n){const r=et(e)?e:Tt(e);return r.start(Mc("",r,t,n)),r.animation}const SC=(e,t)=>e.depth-t.depth;class CC{constructor(){this.children=[],this.isDirty=!1}add(t){Ui(this.children,t),this.isDirty=!0}remove(t){Gi(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(SC),this.isDirty=!1,this.children.forEach(t)}}function MC(e,t){const n=lt.now(),r=({timestamp:o})=>{const a=o-n;a>=t&&(Ot(r),e(a-t))};return Ce.setup(r,!0),()=>Ot(r)}const zh=["TopLeft","TopRight","BottomLeft","BottomRight"],EC=zh.length,Iu=e=>typeof e=="string"?parseFloat(e):e,ju=e=>typeof e=="number"||ie.test(e);function TC(e,t,n,r,o,a){o?(e.opacity=Oe(0,n.opacity??1,PC(r)),e.opacityExit=Oe(t.opacity??1,0,DC(r))):a&&(e.opacity=Oe(t.opacity??1,n.opacity??1,r));for(let s=0;s<EC;s++){const i=`border${zh[s]}Radius`;let c=Lu(t,i),u=Lu(n,i);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||ju(c)===ju(u)?(e[i]=Math.max(Oe(Iu(c),Iu(u),r),0),(zt.test(u)||zt.test(c))&&(e[i]+="%")):e[i]=u}(t.rotate||n.rotate)&&(e.rotate=Oe(t.rotate||0,n.rotate||0,r))}function Lu(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const PC=Hh(0,.5,Pf),DC=Hh(.5,.95,ut);function Hh(e,t,n){return r=>r<e?0:r>t?1:n(rr(e,t,r))}function $u(e,t){e.min=t.min,e.max=t.max}function vt(e,t){$u(e.x,t.x),$u(e.y,t.y)}function Fu(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Bu(e,t,n,r,o){return e-=t,e=na(e,1/n,r),o!==void 0&&(e=na(e,1/o,r)),e}function RC(e,t=0,n=1,r=.5,o,a=e,s=e){if(zt.test(t)&&(t=parseFloat(t),t=Oe(s.min,s.max,t/100)-s.min),typeof t!="number")return;let i=Oe(a.min,a.max,r);e===a&&(i-=t),e.min=Bu(e.min,t,n,i,o),e.max=Bu(e.max,t,n,i,o)}function Vu(e,t,[n,r,o],a,s){RC(e,t[n],t[r],t[o],t.scale,a,s)}const AC=["x","scaleX","originX"],OC=["y","scaleY","originY"];function Wu(e,t,n,r){Vu(e.x,t,AC,n?n.x:void 0,r?r.x:void 0),Vu(e.y,t,OC,n?n.y:void 0,r?r.y:void 0)}function zu(e){return e.translate===0&&e.scale===1}function Yh(e){return zu(e.x)&&zu(e.y)}function Hu(e,t){return e.min===t.min&&e.max===t.max}function kC(e,t){return Hu(e.x,t.x)&&Hu(e.y,t.y)}function Yu(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Uh(e,t){return Yu(e.x,t.x)&&Yu(e.y,t.y)}function Uu(e){return ot(e.x)/ot(e.y)}function Gu(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class NC{constructor(){this.members=[]}add(t){Ui(this.members,t),t.scheduleRender()}remove(t){if(Gi(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const a=this.members[o];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function _C(e,t,n){let r="";const o=e.x.translate/t.x,a=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((o||a||s)&&(r=`translate3d(${o}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:l,rotateY:f,skewX:p,skewY:g}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),l&&(r+=`rotateX(${l}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),g&&(r+=`skewY(${g}deg) `)}const i=e.x.scale*t.x,c=e.y.scale*t.y;return(i!==1||c!==1)&&(r+=`scale(${i}, ${c})`),r||"none"}const bs=["","X","Y","Z"],IC=1e3;let jC=0;function ys(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Gh(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=kh(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ce,!(o||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Gh(r)}function Kh({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},i=t==null?void 0:t()){this.id=jC++,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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(FC),this.nodes.forEach(zC),this.nodes.forEach(HC),this.nodes.forEach(BC)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new CC)}addEventListener(s,i){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new qi),this.eventHandlers.get(s).add(i)}notifyListeners(s,...i){const c=this.eventHandlers.get(s);c&&c.notify(...i)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=mc(s)&&!A0(s),this.instance=s;const{layoutId:i,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||i)&&(this.isLayoutDirty=!0),e){let d,l=0;const f=()=>this.root.updateBlockedByResize=!1;Ce.read(()=>{l=window.innerWidth}),e(s,()=>{const p=window.innerWidth;p!==l&&(l=p,this.root.updateBlockedByResize=!0,d&&d(),d=MC(f,250),Ko.hasAnimatedSinceResize&&(Ko.hasAnimatedSinceResize=!1,this.nodes.forEach(Xu)))})}i&&this.root.registerSharedNode(i,this),this.options.animate!==!1&&u&&(i||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:l,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||qC,{onLayoutAnimationStart:b,onLayoutAnimationComplete:y}=u.getProps(),v=!this.targetLayout||!Uh(this.targetLayout,p),x=!l&&f;if(this.options.layoutRoot||this.resumeFrom||x||l&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...uc(g,"layout"),onPlay:b,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(d,x)}else l||Xu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ot(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(YC),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Gh(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const l=this.path[d];l.shouldResetTransform=!0,l.updateScroll("snapshot"),l.options.layoutRoot&&l.willUpdate(!1)}const{layoutId:i,layout:c}=this.options;if(i===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ku);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(qu);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(WC),this.nodes.forEach(LC),this.nodes.forEach($C)):this.nodes.forEach(qu),this.clearAllSnapshots();const i=lt.now();qe.delta=Yt(0,1e3/60,i-qe.timestamp),qe.timestamp=i,qe.isProcessing=!0,is.update.process(qe),is.preRender.process(qe),is.render.process(qe),qe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,fc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(VC),this.sharedNodes.forEach(UC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ce.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ce.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ot(this.snapshot.measuredBox.x)&&!ot(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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=je(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let i=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(i=!1),i&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,i=this.projectionDelta&&!Yh(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;s&&this.instance&&(i||Tn(this.latestValues)||d)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const i=this.measurePageBox();let c=this.removeElementScroll(i);return s&&(c=this.removeTransform(c)),XC(c),{animationId:this.root.animationId,measuredBox:i,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:s}=this.options;if(!s)return je();const i=s.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(ZC))){const{scroll:d}=this.root;d&&(Xn(i.x,d.offset.x),Xn(i.y,d.offset.y))}return i}removeElementScroll(s){var c;const i=je();if(vt(i,s),(c=this.scroll)!=null&&c.wasRoot)return i;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:l,options:f}=d;d!==this.root&&l&&f.layoutScroll&&(l.wasRoot&&vt(i,s),Xn(i.x,l.offset.x),Xn(i.y,l.offset.y))}return i}applyTransform(s,i=!1){const c=je();vt(c,s);for(let u=0;u<this.path.length;u++){const d=this.path[u];!i&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Zn(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Tn(d.latestValues)&&Zn(c,d.latestValues)}return Tn(this.latestValues)&&Zn(c,this.latestValues),c}removeTransform(s){const i=je();vt(i,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!Tn(u.latestValues))continue;li(u.latestValues)&&u.updateSnapshot();const d=je(),l=u.measurePageBox();vt(d,l),Wu(i,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return Tn(this.latestValues)&&Wu(i,this.latestValues),i}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}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!==qe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var f;const i=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=i.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==i;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:l}=this.options;if(!(!this.layout||!(d||l))){if(this.resolvedRelativeTargetAt=qe.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=je(),this.relativeTargetOrigin=je(),jr(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),vt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=je(),this.targetWithTransforms=je()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),rC(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):vt(this.target,this.layout.layoutBox),Th(this.target,this.targetDelta)):vt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=je(),this.relativeTargetOrigin=je(),jr(this.relativeTargetOrigin,this.target,p.target),vt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||li(this.parent.latestValues)||Eh(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var g;const s=this.getLead(),i=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||(g=this.parent)!=null&&g.isProjectionDirty)&&(c=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===qe.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;vt(this.layoutCorrected,this.layout.layoutBox);const l=this.treeScale.x,f=this.treeScale.y;pS(this.layoutCorrected,this.treeScale,this.path,i),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=je());const{target:p}=s;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Fu(this.prevProjectionDelta.x,this.projectionDelta.x),Fu(this.prevProjectionDelta.y,this.projectionDelta.y)),Ir(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==l||this.treeScale.y!==f||!Gu(this.projectionDelta.x,this.prevProjectionDelta.x)||!Gu(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var i;if((i=this.options.visualElement)==null||i.scheduleRender(),s){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Qn(),this.projectionDelta=Qn(),this.projectionDeltaWithTransform=Qn()}setAnimationOrigin(s,i=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},l=Qn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;const f=je(),p=c?c.source:void 0,g=this.layout?this.layout.source:void 0,b=p!==g,y=this.getStack(),v=!y||y.members.length<=1,x=!!(b&&!v&&this.options.crossfade===!0&&!this.path.some(KC));this.animationProgress=0;let w;this.mixTargetDelta=M=>{const C=M/1e3;Zu(l.x,s.x,C),Zu(l.y,s.y,C),this.setTargetDelta(l),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jr(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),GC(this.relativeTarget,this.relativeTargetOrigin,f,C),w&&kC(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=je()),vt(w,this.relativeTarget)),b&&(this.animationValues=d,TC(d,u,this.latestValues,C,x,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var i,c,u;this.notifyListeners("animationStart"),(i=this.currentAnimation)==null||i.stop(),(u=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Ot(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ce.update(()=>{Ko.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Tt(0)),this.currentAnimation=wC(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),s.onUpdate&&s.onUpdate(d)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.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);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(IC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:i,target:c,layout:u,latestValues:d}=s;if(!(!i||!c||!u)){if(this!==s&&this.layout&&u&&qh(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||je();const l=ot(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+l;const f=ot(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+f}vt(i,c),Zn(i,d),Ir(this.projectionDeltaWithTransform,this.layoutCorrected,i,d)}}registerSharedNode(s,i){this.sharedNodes.has(s)||this.sharedNodes.set(s,new NC),this.sharedNodes.get(s).add(i);const u=i.options.initialPromotionConfig;i.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(i):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var i;const{layoutId:s}=this.options;return s?((i=this.getStack())==null?void 0:i.lead)||this:this}getPrevLead(){var i;const{layoutId:s}=this.options;return s?(i=this.getStack())==null?void 0:i.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:i,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let i=!1;const{latestValues:c}=s;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(i=!0),!i)return;const u={};c.z&&ys("z",s,u,this.animationValues);for(let d=0;d<bs.length;d++)ys(`rotate${bs[d]}`,s,u,this.animationValues),ys(`skew${bs[d]}`,s,u,this.animationValues);s.render();for(const d in u)s.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);s.scheduleRender()}applyProjectionStyles(s,i){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=Go(i==null?void 0:i.pointerEvents)||"",s.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=Go(i==null?void 0:i.pointerEvents)||""),this.hasProjected&&!Tn(this.latestValues)&&(s.transform=c?c({},""):"none",this.hasProjected=!1);return}s.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let l=_C(this.projectionDeltaWithTransform,this.treeScale,d);c&&(l=c(d,l)),s.transform=l;const{x:f,y:p}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,u.animationValues?s.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const g in Vr){if(d[g]===void 0)continue;const{correct:b,applyTo:y,isCSSVariable:v}=Vr[g],x=l==="none"?d[g]:b(d[g],u);if(y){const w=y.length;for(let M=0;M<w;M++)s[y[M]]=x}else v?this.options.visualElement.renderState.vars[g]=x:s[g]=x}this.options.layoutId&&(s.pointerEvents=u===this?Go(i==null?void 0:i.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var i;return(i=s.currentAnimation)==null?void 0:i.stop()}),this.root.nodes.forEach(Ku),this.root.sharedNodes.clear()}}}function LC(e){e.updateLayout()}function $C(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:a}=e.options,s=t.source!==e.layout.source;a==="size"?bt(l=>{const f=s?t.measuredBox[l]:t.layoutBox[l],p=ot(f);f.min=r[l].min,f.max=f.min+p}):qh(a,t.layoutBox,r)&&bt(l=>{const f=s?t.measuredBox[l]:t.layoutBox[l],p=ot(r[l]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[l].max=e.relativeTarget[l].min+p)});const i=Qn();Ir(i,r,t.layoutBox);const c=Qn();s?Ir(c,e.applyTransform(o,!0),t.measuredBox):Ir(c,r,t.layoutBox);const u=!Yh(i);let d=!1;if(!e.resumeFrom){const l=e.getClosestProjectingParent();if(l&&!l.resumeFrom){const{snapshot:f,layout:p}=l;if(f&&p){const g=je();jr(g,t.layoutBox,f.layoutBox);const b=je();jr(b,r,p.layoutBox),Uh(g,b)||(d=!0),l.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=g,e.relativeParent=l)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:c,layoutDelta:i,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function FC(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function BC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function VC(e){e.clearSnapshot()}function Ku(e){e.clearMeasurements()}function qu(e){e.isLayoutDirty=!1}function WC(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Xu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function zC(e){e.resolveTargetDelta()}function HC(e){e.calcProjection()}function YC(e){e.resetSkewAndRotation()}function UC(e){e.removeLeadSnapshot()}function Zu(e,t,n){e.translate=Oe(t.translate,0,n),e.scale=Oe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Qu(e,t,n,r){e.min=Oe(t.min,n.min,r),e.max=Oe(t.max,n.max,r)}function GC(e,t,n,r){Qu(e.x,t.x,n.x,r),Qu(e.y,t.y,n.y,r)}function KC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const qC={duration:.45,ease:[.4,0,.1,1]},Ju=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ed=Ju("applewebkit/")&&!Ju("chrome/")?Math.round:ut;function td(e){e.min=ed(e.min),e.max=ed(e.max)}function XC(e){td(e.x),td(e.y)}function qh(e,t,n){return e==="position"||e==="preserve-aspect"&&!nC(Uu(t),Uu(n),.2)}function ZC(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const QC=Kh({attachResizeListener:(e,t)=>Wr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),xs={current:void 0},Xh=Kh({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!xs.current){const e=new QC({});e.mount(window),e.setOptions({layoutScroll:!0}),xs.current=e}return xs.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),JC={pan:{Feature:vC},drag:{Feature:gC,ProjectionNode:Xh,MeasureLayout:Wh}};function nd(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,a=r[o];a&&Ce.postRender(()=>a(t,no(t)))}class eM extends pn{mount(){const{current:t}=this.node;t&&(this.unmount=g0(t,(n,r)=>(nd(this.node,r,"Start"),o=>nd(this.node,o,"End"))))}unmount(){}}class tM extends pn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Jr(Wr(this.node.current,"focus",()=>this.onFocus()),Wr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function rd(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),a=r[o];a&&Ce.postRender(()=>a(t,no(t)))}class nM extends pn{mount(){const{current:t}=this.node;t&&(this.unmount=x0(t,(n,r)=>(rd(this.node,r,"Start"),(o,{success:a})=>rd(this.node,o,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const gi=new WeakMap,ws=new WeakMap,rM=e=>{const t=gi.get(e.target);t&&t(e)},oM=e=>{e.forEach(rM)};function aM({root:e,...t}){const n=e||document;ws.has(n)||ws.set(n,{});const r=ws.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(oM,{root:e,...t})),r[o]}function sM(e,t,n){const r=aM(t);return gi.set(e,n),r.observe(e),()=>{gi.delete(e),r.unobserve(e)}}const iM={some:0,all:1};class cM extends pn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:iM[o]},i=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,a&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:l}=this.node.getProps(),f=u?d:l;f&&f(c)};return sM(this.node.current,s,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(lM(t,n))&&this.startObserver()}unmount(){}}function lM({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const uM={inView:{Feature:cM},tap:{Feature:nM},focus:{Feature:tM},hover:{Feature:eM}},dM={layout:{ProjectionNode:Xh,MeasureLayout:Wh}},fM={...XS,...uM,...JC,...dM},hM=fS(fM,ES),mM=50,od=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),pM=()=>({time:0,x:od(),y:od()}),gM={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function ad(e,t,n,r){const o=n[t],{length:a,position:s}=gM[t],i=o.current,c=n.time;o.current=e[`scroll${s}`],o.scrollLength=e[`scroll${a}`]-e[`client${a}`],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=rr(0,o.scrollLength,o.current);const u=r-c;o.velocity=u>mM?0:Xi(o.current-i,u)}function vM(e,t,n){ad(e,"x",t,n),ad(e,"y",t,n),t.time=n}function bM(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(ah(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const o=r.getBoundingClientRect();r=r.parentElement;const a=r.getBoundingClientRect();n.x+=o.left-a.left,n.y+=o.top-a.top}else if(r instanceof SVGGraphicsElement){const{x:o,y:a}=r.getBBox();n.x+=o,n.y+=a;let s=null,i=r.parentNode;for(;!s;)i.tagName==="svg"&&(s=i),i=r.parentNode;r=s}else break;return n}const vi={start:0,center:.5,end:1};function sd(e,t,n=0){let r=0;if(e in vi&&(e=vi[e]),typeof e=="string"){const o=parseFloat(e);e.endsWith("px")?r=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?r=o/100*document.documentElement.clientWidth:e.endsWith("vh")?r=o/100*document.documentElement.clientHeight:e=o}return typeof e=="number"&&(r=t*e),n+r}const yM=[0,0];function xM(e,t,n,r){let o=Array.isArray(e)?e:yM,a=0,s=0;return typeof e=="number"?o=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?o=e.split(" "):o=[e,vi[e]?e:"0"]),a=sd(o[0],n,r),s=sd(o[1],t),a-s}const wM={All:[[0,0],[1,1]]},SM={x:0,y:0};function CM(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function MM(e,t,n){const{offset:r=wM.All}=n,{target:o=e,axis:a="y"}=n,s=a==="y"?"height":"width",i=o!==e?bM(o,e):SM,c=o===e?{width:e.scrollWidth,height:e.scrollHeight}:CM(o),u={width:e.clientWidth,height:e.clientHeight};t[a].offset.length=0;let d=!t[a].interpolate;const l=r.length;for(let f=0;f<l;f++){const p=xM(r[f],u[s],c[s],i[a]);!d&&p!==t[a].interpolatorOffsets[f]&&(d=!0),t[a].offset[f]=p}d&&(t[a].interpolate=ac(t[a].offset,Wf(r),{clamp:!1}),t[a].interpolatorOffsets=[...t[a].offset]),t[a].progress=Yt(0,1,t[a].interpolate(t[a].current))}function EM(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,process.env.NODE_ENV!=="production"&&e&&t&&t!==e&&ya(getComputedStyle(e).position!=="static","Please ensure that the container has a non-static position, like 'relative', 'fixed', or 'absolute' to ensure scroll offset is calculated correctly.")}function TM(e,t,n,r={}){return{measure:o=>{EM(e,r.target,n),vM(e,n,o),(r.offset||r.target)&&MM(e,n,r)},notify:()=>t(n)}}const wr=new WeakMap,id=new WeakMap,Ss=new WeakMap,cd=e=>e===document.scrollingElement?window:e;function Zh(e,{container:t=document.scrollingElement,...n}={}){if(!t)return ut;let r=Ss.get(t);r||(r=new Set,Ss.set(t,r));const o=pM(),a=TM(t,e,o,n);if(r.add(a),!wr.has(t)){const i=()=>{for(const l of r)l.measure(qe.timestamp);Ce.preUpdate(c)},c=()=>{for(const l of r)l.notify()},u=()=>Ce.read(i);wr.set(t,u);const d=cd(t);window.addEventListener("resize",u,{passive:!0}),t!==document.documentElement&&id.set(t,R0(t,u)),d.addEventListener("scroll",u,{passive:!0}),u()}const s=wr.get(t);return Ce.read(s,!1,!0),()=>{var u;Ot(s);const i=Ss.get(t);if(!i||(i.delete(a),i.size))return;const c=wr.get(t);wr.delete(t),c&&(cd(t).removeEventListener("scroll",c),(u=id.get(t))==null||u(),window.removeEventListener("resize",c))}}const ld=new Map;function PM(e){const t={value:0},n=Zh(r=>{t.value=r[e.axis].progress*100},e);return{currentTime:t,cancel:n}}function Qh({source:e,container:t,...n}){const{axis:r}=n;e&&(t=e);const o=ld.get(t)??new Map;ld.set(t,o);const a=n.target??"self",s=o.get(a)??{},i=r+(n.offset??[]).join(",");return s[i]||(s[i]=!n.target&&Uf()?new ScrollTimeline({source:t,axis:r}):PM({container:t,...n})),s[i]}function DM(e,t){const n=Qh(t);return e.attachTimeline({timeline:t.target?void 0:n,observe:r=>(r.pause(),uh(o=>{r.time=r.iterationDuration*o},n))})}function RM(e){return e.length===2}function AM(e,t){return RM(e)?Zh(n=>{e(n[t.axis].progress,n)},t):uh(e,Qh(t))}function OM(e,{axis:t="y",container:n=document.scrollingElement,...r}={}){if(!n)return ut;const o={axis:t,container:n,...r};return typeof e=="function"?AM(e,o):DM(e,o)}const kM=()=>({scrollX:Tt(0),scrollY:Tt(0),scrollXProgress:Tt(0),scrollYProgress:Tt(0)}),Oo=e=>e?!e.current:!1;function NM({container:e,target:t,...n}={}){const r=ba(kM),o=S.useRef(null),a=S.useRef(!1),s=S.useCallback(()=>(o.current=OM((i,{x:c,y:u})=>{r.scrollX.set(c.current),r.scrollXProgress.set(c.progress),r.scrollY.set(u.current),r.scrollYProgress.set(u.progress)},{...n,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0}),()=>{var i;(i=o.current)==null||i.call(o)}),[e,t,JSON.stringify(n.offset)]);return Hi(()=>{if(a.current=!1,Oo(e)||Oo(t)){a.current=!0;return}else return s()},[s]),S.useEffect(()=>{if(a.current)return At(!Oo(e),"Container ref is defined but not hydrated","use-scroll-ref"),At(!Oo(t),"Target ref is defined but not hydrated","use-scroll-ref"),s()},[s]),r}function _M(e){const t=ba(()=>Tt(e)),{isStatic:n}=S.useContext(pc);if(n){const[,r]=S.useState(e);S.useEffect(()=>t.on("change",r),[])}return t}function Jh(e,t){const n=_M(t()),r=()=>n.set(t());return r(),Hi(()=>{const o=()=>Ce.preRender(r,!1,!0),a=e.map(s=>s.on("change",o));return()=>{a.forEach(s=>s()),Ot(r)}}),n}function IM(e){Nr.current=[],e();const t=Jh(Nr.current,e);return Nr.current=void 0,t}function jM(e,t,n,r){if(typeof e=="function")return IM(e);const o=typeof t=="function"?t:O0(t,n,r);return Array.isArray(e)?ud(e,o):ud([e],([a])=>o(a))}function ud(e,t){const n=ba(()=>[]);return Jh(e,()=>{n.length=0;const r=e.length;for(let o=0;o<r;o++)n[o]=e[o].get();return t(n)})}const LM=({children:e,className:t})=>{const n=S.useRef(null),{scrollYProgress:r}=NM({target:n});if(typeof e!="string")throw new Error("TextReveal: children must be a string");const o=e.split(" ");return m.jsx("div",{ref:n,className:T.cn("z-0 relative h-[200vh]",t),children:m.jsx("div",{className:"sticky top-0 mx-auto flex h-[50%] max-w-4xl items-center bg-transparent px-[1rem] py-[5rem]",children:m.jsx("span",{ref:n,className:"flex flex-wrap p-5 text-2xl font-bold text-black/20 dark:text-white/20 md:p-8 md:text-3xl lg:p-10 lg:text-4xl xl:text-5xl",children:o.map((a,s)=>{const i=s/o.length,c=i+1/o.length;return m.jsx($M,{progress:r,range:[i,c],children:a},s)})})})})},$M=({children:e,progress:t,range:n})=>{const r=jM(t,n,[0,1]);return m.jsxs("span",{className:"relative mx-1 lg:mx-1.5",children:[m.jsx("span",{className:"absolute opacity-30",children:e}),m.jsx(hM.span,{style:{opacity:r},className:"text-black dark:text-white",children:e})]})};function FM(e,t){const n=h.createContext(t),r=a=>{const{children:s,...i}=a,c=h.useMemo(()=>i,Object.values(i));return m.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function o(a){const s=h.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Ne(e,t=[]){let n=[];function r(a,s){const i=h.createContext(s),c=n.length;n=[...n,s];const u=l=>{var v;const{scope:f,children:p,...g}=l,b=((v=f==null?void 0:f[e])==null?void 0:v[c])||i,y=h.useMemo(()=>g,Object.values(g));return m.jsx(b.Provider,{value:y,children:p})};u.displayName=a+"Provider";function d(l,f){var b;const p=((b=f==null?void 0:f[e])==null?void 0:b[c])||i,g=h.useContext(p);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${l}\` must be used within \`${a}\``)}return[u,d]}const o=()=>{const a=n.map(s=>h.createContext(s));return function(i){const c=(i==null?void 0:i[e])||a;return h.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[r,BM(o,...t)]}function BM(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((i,{useScope:c,scopeName:u})=>{const l=c(a)[`__scope${u}`];return{...i,...l}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function dd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dn(...e){return t=>{let n=!1;const r=e.map(o=>{const a=dd(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():dd(e[o],null)}}}}function ce(...e){return h.useCallback(dn(...e),e)}function F(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var mt=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},VM=h[" useId ".trim().toString()]||(()=>{}),WM=0;function _e(e){const[t,n]=h.useState(VM());return mt(()=>{n(r=>r??String(WM++))},[e]),t?`radix-${t}`:""}var zM=h[" useInsertionEffect ".trim().toString()]||mt;function Ge({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=HM({defaultProp:t,onChange:n}),i=e!==void 0,c=i?e:o;{const d=h.useRef(e!==void 0);h.useEffect(()=>{const l=d.current;l!==i&&console.warn(`${r} is changing from ${l?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=i},[i,r])}const u=h.useCallback(d=>{var l;if(i){const f=YM(d)?d(e):d;f!==e&&((l=s.current)==null||l.call(s,f))}else a(d)},[i,e,a,s]);return[c,u]}function HM({defaultProp:e,onChange:t}){const[n,r]=h.useState(e),o=h.useRef(n),a=h.useRef(t);return zM(()=>{a.current=t},[t]),h.useEffect(()=>{var s;o.current!==n&&((s=a.current)==null||s.call(a,n),o.current=n)},[n,o]),[n,r,a]}function YM(e){return typeof e=="function"}function Ue(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function UM(e,t=globalThis==null?void 0:globalThis.document){const n=Ue(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var GM="DismissableLayer",bi="dismissableLayer.update",KM="dismissableLayer.pointerDownOutside",qM="dismissableLayer.focusOutside",fd,em=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mr=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...c}=e,u=h.useContext(em),[d,l]=h.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=h.useState({}),g=ce(t,E=>l(E)),b=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=b.indexOf(y),x=d?b.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,M=x>=v,C=QM(E=>{const D=E.target,R=[...u.branches].some(A=>A.contains(D));!M||R||(o==null||o(E),s==null||s(E),E.defaultPrevented||i==null||i())},f),P=JM(E=>{const D=E.target;[...u.branches].some(A=>A.contains(D))||(a==null||a(E),s==null||s(E),E.defaultPrevented||i==null||i())},f);return UM(E=>{x===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&i&&(E.preventDefault(),i()))},f),h.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(fd=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),hd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=fd)}},[d,f,n,u]),h.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),hd())},[d,u]),h.useEffect(()=>{const E=()=>p({});return document.addEventListener(bi,E),()=>document.removeEventListener(bi,E)},[]),m.jsx(T.Primitive.div,{...c,ref:g,style:{pointerEvents:w?M?"auto":"none":void 0,...e.style},onFocusCapture:F(e.onFocusCapture,P.onFocusCapture),onBlurCapture:F(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:F(e.onPointerDownCapture,C.onPointerDownCapture)})});mr.displayName=GM;var XM="DismissableLayerBranch",ZM=h.forwardRef((e,t)=>{const n=h.useContext(em),r=h.useRef(null),o=ce(t,r);return h.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),m.jsx(T.Primitive.div,{...e,ref:o})});ZM.displayName=XM;function QM(e,t=globalThis==null?void 0:globalThis.document){const n=Ue(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let c=function(){tm(KM,n,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function JM(e,t=globalThis==null?void 0:globalThis.document){const n=Ue(e),r=h.useRef(!1);return h.useEffect(()=>{const o=a=>{a.target&&!r.current&&tm(qM,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function hd(){const e=new CustomEvent(bi);document.dispatchEvent(e)}function tm(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?T.dispatchDiscreteCustomEvent(o,a):o.dispatchEvent(a)}var Cs="focusScope.autoFocusOnMount",Ms="focusScope.autoFocusOnUnmount",md={bubbles:!1,cancelable:!0},eE="FocusScope",Ca=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,c]=h.useState(null),u=Ue(o),d=Ue(a),l=h.useRef(null),f=ce(t,b=>c(b)),p=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let b=function(w){if(p.paused||!i)return;const M=w.target;i.contains(M)?l.current=M:cn(l.current,{select:!0})},y=function(w){if(p.paused||!i)return;const M=w.relatedTarget;M!==null&&(i.contains(M)||cn(l.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const C of w)C.removedNodes.length>0&&cn(i)};document.addEventListener("focusin",b),document.addEventListener("focusout",y);const x=new MutationObserver(v);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",y),x.disconnect()}}},[r,i,p.paused]),h.useEffect(()=>{if(i){gd.add(p);const b=document.activeElement;if(!i.contains(b)){const v=new CustomEvent(Cs,md);i.addEventListener(Cs,u),i.dispatchEvent(v),v.defaultPrevented||(tE(sE(nm(i)),{select:!0}),document.activeElement===b&&cn(i))}return()=>{i.removeEventListener(Cs,u),setTimeout(()=>{const v=new CustomEvent(Ms,md);i.addEventListener(Ms,d),i.dispatchEvent(v),v.defaultPrevented||cn(b??document.body,{select:!0}),i.removeEventListener(Ms,d),gd.remove(p)},0)}}},[i,u,d,p]);const g=h.useCallback(b=>{if(!n&&!r||p.paused)return;const y=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,v=document.activeElement;if(y&&v){const x=b.currentTarget,[w,M]=nE(x);w&&M?!b.shiftKey&&v===M?(b.preventDefault(),n&&cn(w,{select:!0})):b.shiftKey&&v===w&&(b.preventDefault(),n&&cn(M,{select:!0})):v===x&&b.preventDefault()}},[n,r,p.paused]);return m.jsx(T.Primitive.div,{tabIndex:-1,...s,ref:f,onKeyDown:g})});Ca.displayName=eE;function tE(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(cn(r,{select:t}),document.activeElement!==n)return}function nE(e){const t=nm(e),n=pd(t,e),r=pd(t.reverse(),e);return[n,r]}function nm(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function pd(e,t){for(const n of e)if(!rE(n,{upTo:t}))return n}function rE(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function oE(e){return e instanceof HTMLInputElement&&"select"in e}function cn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&oE(e)&&t&&e.select()}}var gd=aE();function aE(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=vd(e,t),e.unshift(t)},remove(t){var n;e=vd(e,t),(n=e[0])==null||n.resume()}}}function vd(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function sE(e){return e.filter(t=>t.tagName!=="A")}var iE="Portal",pr=h.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,a]=h.useState(!1);mt(()=>a(!0),[]);const s=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Wi.createPortal(m.jsx(T.Primitive.div,{...r,ref:t}),s):null});pr.displayName=iE;function cE(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var Ie=e=>{const{present:t,children:n}=e,r=lE(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),a=ce(r.ref,uE(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:a}):null};Ie.displayName="Presence";function lE(e){const[t,n]=h.useState(),r=h.useRef(null),o=h.useRef(e),a=h.useRef("none"),s=e?"mounted":"unmounted",[i,c]=cE(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=ko(r.current);a.current=i==="mounted"?u:"none"},[i]),mt(()=>{const u=r.current,d=o.current;if(d!==e){const f=a.current,p=ko(u);e?c("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&f!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),mt(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,l=p=>{const b=ko(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&b&&(c("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},f=p=>{p.target===t&&(a.current=ko(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:h.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function ko(e){return(e==null?void 0:e.animationName)||"none"}function uE(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Es=0;function Ec(){h.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??bd()),document.body.insertAdjacentElement("beforeend",e[1]??bd()),Es++,()=>{Es===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Es--}},[])}function bd(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Bt=function(){return Bt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Bt.apply(this,arguments)};function rm(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function dE(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var qo="right-scroll-bar-position",Xo="width-before-scroll-bar",fE="with-scroll-bars-hidden",hE="--removed-body-scroll-bar-size";function Ts(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function mE(e,t){var n=S.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var pE=typeof window<"u"?h.useLayoutEffect:h.useEffect,yd=new WeakMap;function gE(e,t){var n=mE(null,function(r){return e.forEach(function(o){return Ts(o,r)})});return pE(function(){var r=yd.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||Ts(i,null)}),a.forEach(function(i){o.has(i)||Ts(i,s)})}yd.set(n,e)},[e]),n}function vE(e){return e}function bE(e,t){t===void 0&&(t=vE);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var i=n;n=[],i.forEach(a),s=n}var c=function(){var d=s;s=[],d.forEach(a)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){s.push(d),u()},filter:function(d){return s=s.filter(d),n}}}};return o}function yE(e){e===void 0&&(e={});var t=bE(null);return t.options=Bt({async:!0,ssr:!1},e),t}var om=function(e){var t=e.sideCar,n=rm(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return h.createElement(r,Bt({},n))};om.isSideCarExport=!0;function xE(e,t){return e.useMedium(t),om}var am=yE(),Ps=function(){},Ma=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:Ps,onWheelCapture:Ps,onTouchMoveCapture:Ps}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,l=e.shards,f=e.sideCar,p=e.noRelative,g=e.noIsolation,b=e.inert,y=e.allowPinchZoom,v=e.as,x=v===void 0?"div":v,w=e.gapMode,M=rm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=f,P=gE([n,t]),E=Bt(Bt({},M),o);return h.createElement(h.Fragment,null,d&&h.createElement(C,{sideCar:am,removeScrollBar:u,shards:l,noRelative:p,noIsolation:g,inert:b,setCallbacks:a,allowPinchZoom:!!y,lockRef:n,gapMode:w}),s?h.cloneElement(h.Children.only(i),Bt(Bt({},E),{ref:P})):h.createElement(x,Bt({},E,{className:c,ref:P}),i))});Ma.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ma.classNames={fullWidth:Xo,zeroRight:qo};var wE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function SE(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=wE();return t&&e.setAttribute("nonce",t),e}function CE(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ME(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var EE=function(){var e=0,t=null;return{add:function(n){e==0&&(t=SE())&&(CE(t,n),ME(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},TE=function(){var e=EE();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},sm=function(){var e=TE(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},PE={left:0,top:0,right:0,gap:0},Ds=function(e){return parseInt(e||"",10)||0},DE=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ds(n),Ds(r),Ds(o)]},RE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return PE;var t=DE(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},AE=sm(),er="data-scroll-locked",OE=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
2
2
  .`.concat(fE,` {
3
3
  overflow: hidden `).concat(r,`;
4
4
  padding-right: `).concat(i,"px ").concat(r,`;
package/dist/client.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsxs as ce, jsx as p, Fragment as Yr } from "react/jsx-runtime";
2
2
  import * as h from "react";
3
3
  import M, { createContext as Hn, useRef as gt, useLayoutEffect as Aa, useEffect as Ut, useContext as nt, useId as Cw, useCallback as et, useMemo as hn, Fragment as Af, createElement as Ew, useInsertionEffect as Mw, forwardRef as Tw, Component as Pw, useState as Fn } from "react";
4
- import { c as R, P as Q, g as Of, d as la, B as co, a as Nf, I as Dw, e as ou, S as Rw } from "./Skeleton-De31tq_k.js";
4
+ import { c as R, P as Q, g as Of, d as la, B as co, a as Nf, I as Dw, e as ou, S as Rw } from "./Skeleton-CkBhpSHW.js";
5
5
  import * as Aw from "react-dom";
6
6
  import kf from "react-dom";
7
7
  import { createSlot as Ur, createSlottable as _f, Slot as lo } from "@radix-ui/react-slot";
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./Skeleton-Bnjvq2Rm.cjs"),a=require("react/jsx-runtime"),f=require("@radix-ui/react-slot");require("clsx");const E=require("@radix-ui/react-select"),u=require("lucide-react"),b=require("next-intl"),v=require("react");function h(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=h(E),A=h(v),x=({children:e,element:t="div",className:n="",...s})=>{const o=t;return a.jsx(o,{className:n,...s,"data-testid":"box",children:e})},G=({className:e="",children:t,element:n,...s})=>a.jsx(x,{element:n,className:r.cn("mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl",e),...s,children:t}),j={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},w={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},M={body:"font-general",heading:"font-general",caption:"font-general"},R={xs:"text-xs",sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl","3xl":"text-3xl","4xl":"text-4xl","5xl":"text-5xl","6xl":"text-6xl","7xl":"text-7xl","8xl":"text-8xl","9xl":"text-9xl"},D={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",light:"font-light"},L={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9"},V={1:"grid-rows-1",2:"grid-rows-2",3:"grid-rows-3",4:"grid-rows-4",5:"grid-rows-5",6:"grid-rows-6",7:"grid-rows-7",8:"grid-rows-8",9:"grid-rows-9"},N={1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",7:"gap-7",8:"gap-8",9:"gap-9"},q={row:"flex-row",col:"flex-col",row_reverse:"flex-row-reverse",col_reverse:"flex-col-reverse"},H={wrap:"flex-wrap",nowrap:"flex-nowrap",wrap_reverse:"flex-wrap-reverse"},F=({children:e,gap:t,direction:n,justify:s,align:o,wrap:l,className:i="",element:d,...g})=>a.jsx(x,{element:d,className:r.cn("flex",n&&q[n],s&&j[s],o&&w[o],l&&H[l],t&&N[t],i),...g,children:e}),U=({children:e,className:t,cols:n,rows:s,gap:o,justify:l,align:i,element:d,...g})=>a.jsx(x,{element:d,className:r.cn("grid",n&&L[n],s&&V[s],o&&N[o],l&&j[l],i&&w[i],t),...g,children:e}),W={xs:"xs",sm:"sm",base:"base",lg:"lg",xl:"xl","2xl":"2xl","3xl":"3xl","4xl":"4xl"},Z=({children:e,element:t,className:n,size:s,...o})=>a.jsx(p,{className:n,element:t,size:W[s],variant:"heading",weight:"medium",...o,children:e}),$=({children:e,className:t,href:n,...s})=>a.jsx("a",{"data-testid":"link",href:n,rel:"noopener noreferrer",target:"_blank",className:r.cn("focus:outline-none text-blue-600 active:text-blue-900 visited:text-purple-600 hover:underline",t),...s,children:e}),K={xs:"xs",sm:"sm",base:"base",lg:"lg"},J=({children:e,className:t,size:n,...s})=>a.jsx(p,{className:t,element:"p",size:K[n],variant:"body",weight:"normal",...s,children:e}),O=({className:e="",children:t,...n})=>a.jsx(x,{element:"section",className:e,...n,children:t}),X=({children:e,direction:t="horizontal",spacing:n="space-x-2",element:s,className:o,...l})=>{const i=t==="vertical"?"flex-col":"flex-row";return a.jsx(x,{className:r.cn("flex",i,n,o),element:s,...l,children:e})},p=({className:e,children:t,element:n,weight:s,variant:o,size:l,...i})=>{const d=n;return a.jsx(d,{"data-testid":"text",className:r.cn("font-normal text-base",l&&R[l],s&&D[s],o&&M[o],e),...i,children:t})};function Y({className:e,...t}){return a.jsx("div",{"data-slot":"input-group",role:"group",className:r.cn("group/input-group border-input dark:bg-input/30 relative flex w-full items-center rounded-sm border transition-[color,box-shadow] outline-none","h-10 min-w-0 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:pl-3","has-[>[data-align=inline-end]]:[&>input]:pr-3","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-2","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-2","has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]","has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40","has-[[data-slot=input-group-control]:disabled]:opacity-50 has-[[data-slot=input-group-control]:disabled]:pointer-events-none has-[[data-slot=input-group-control]:disabled]:cursor-not-allowed",e),...t})}const Q=r.cva("text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50",{variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]","block-start":"order-first w-full justify-start px-3 pt-3 [.border-b]:pb-3 group-has-[>input]/input-group:pt-2.5","block-end":"order-last w-full justify-start px-3 pb-3 [.border-t]:pt-3 group-has-[>input]/input-group:pb-2.5"}},defaultVariants:{align:"inline-start"}});function ee({className:e,align:t="inline-start",...n}){const s=l=>{var i,d;l.target.closest("button")||(d=(i=l.currentTarget.parentElement)==null?void 0:i.querySelector("input"))==null||d.focus()},o=l=>{var i,d;if(l.key==="Enter"||l.key===" "){if(l.preventDefault(),l.target.closest("button"))return;(d=(i=l.currentTarget.parentElement)==null?void 0:i.querySelector("input"))==null||d.focus()}};return a.jsx("div",{role:"button",tabIndex:0,"data-slot":"input-group-addon","data-align":t,className:r.cn(Q({align:t}),e),onClick:s,onKeyDown:o,"aria-label":"Focus input field",...n})}const te=r.cva("text-sm shadow-none flex gap-2 items-center",{variants:{size:{xs:"h-6 gap-1 px-2 rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-3.5 has-[>svg]:px-2",sm:"h-8 px-2.5 gap-1.5 rounded-md has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function ae({className:e,type:t="button",variant:n="default",size:s="xs",...o}){return a.jsx(r.Button,{type:t,"data-size":s,variant:n,className:r.cn(te({size:s}),e),...o})}function re({className:e,...t}){return a.jsx("span",{className:r.cn("text-muted-foreground flex items-center gap-2 text-sm [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",e),...t})}function ne({className:e,...t}){return a.jsx(r.Input,{"data-slot":"input-group-control",className:r.cn("flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}function se({className:e,...t}){return a.jsx(_,{"data-slot":"input-group-control",className:r.cn("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}function y({...e}){return a.jsx(c.Root,{"data-slot":"select",...e})}function oe({...e}){return a.jsx(c.Group,{"data-slot":"select-group",...e})}function S({...e}){return a.jsx(c.Value,{"data-slot":"select-value",...e})}function k({className:e,size:t="default",children:n,...s}){return a.jsxs(c.Trigger,{"data-slot":"select-trigger","data-size":t,className:r.cn(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./Skeleton-BTwJmyVc.cjs"),a=require("react/jsx-runtime"),f=require("@radix-ui/react-slot");require("clsx");const E=require("@radix-ui/react-select"),u=require("lucide-react"),b=require("next-intl"),v=require("react");function h(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=h(E),A=h(v),x=({children:e,element:t="div",className:n="",...s})=>{const o=t;return a.jsx(o,{className:n,...s,"data-testid":"box",children:e})},G=({className:e="",children:t,element:n,...s})=>a.jsx(x,{element:n,className:r.cn("mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl",e),...s,children:t}),j={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},w={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},M={body:"font-general",heading:"font-general",caption:"font-general"},R={xs:"text-xs",sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl","3xl":"text-3xl","4xl":"text-4xl","5xl":"text-5xl","6xl":"text-6xl","7xl":"text-7xl","8xl":"text-8xl","9xl":"text-9xl"},D={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",light:"font-light"},L={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9"},V={1:"grid-rows-1",2:"grid-rows-2",3:"grid-rows-3",4:"grid-rows-4",5:"grid-rows-5",6:"grid-rows-6",7:"grid-rows-7",8:"grid-rows-8",9:"grid-rows-9"},N={1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",7:"gap-7",8:"gap-8",9:"gap-9"},q={row:"flex-row",col:"flex-col",row_reverse:"flex-row-reverse",col_reverse:"flex-col-reverse"},H={wrap:"flex-wrap",nowrap:"flex-nowrap",wrap_reverse:"flex-wrap-reverse"},F=({children:e,gap:t,direction:n,justify:s,align:o,wrap:l,className:i="",element:d,...g})=>a.jsx(x,{element:d,className:r.cn("flex",n&&q[n],s&&j[s],o&&w[o],l&&H[l],t&&N[t],i),...g,children:e}),U=({children:e,className:t,cols:n,rows:s,gap:o,justify:l,align:i,element:d,...g})=>a.jsx(x,{element:d,className:r.cn("grid",n&&L[n],s&&V[s],o&&N[o],l&&j[l],i&&w[i],t),...g,children:e}),W={xs:"xs",sm:"sm",base:"base",lg:"lg",xl:"xl","2xl":"2xl","3xl":"3xl","4xl":"4xl"},Z=({children:e,element:t,className:n,size:s,...o})=>a.jsx(p,{className:n,element:t,size:W[s],variant:"heading",weight:"medium",...o,children:e}),$=({children:e,className:t,href:n,...s})=>a.jsx("a",{"data-testid":"link",href:n,rel:"noopener noreferrer",target:"_blank",className:r.cn("focus:outline-none text-blue-600 active:text-blue-900 visited:text-purple-600 hover:underline",t),...s,children:e}),K={xs:"xs",sm:"sm",base:"base",lg:"lg"},J=({children:e,className:t,size:n,...s})=>a.jsx(p,{className:t,element:"p",size:K[n],variant:"body",weight:"normal",...s,children:e}),O=({className:e="",children:t,...n})=>a.jsx(x,{element:"section",className:e,...n,children:t}),X=({children:e,direction:t="horizontal",spacing:n="space-x-2",element:s,className:o,...l})=>{const i=t==="vertical"?"flex-col":"flex-row";return a.jsx(x,{className:r.cn("flex",i,n,o),element:s,...l,children:e})},p=({className:e,children:t,element:n,weight:s,variant:o,size:l,...i})=>{const d=n;return a.jsx(d,{"data-testid":"text",className:r.cn("font-normal text-base",l&&R[l],s&&D[s],o&&M[o],e),...i,children:t})};function Y({className:e,...t}){return a.jsx("div",{"data-slot":"input-group",role:"group",className:r.cn("group/input-group border-input dark:bg-input/30 relative flex w-full items-center rounded-sm border transition-[color,box-shadow] outline-none","h-10 min-w-0 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:pl-3","has-[>[data-align=inline-end]]:[&>input]:pr-3","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-2","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-2","has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]","has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40","has-[[data-slot=input-group-control]:disabled]:opacity-50 has-[[data-slot=input-group-control]:disabled]:pointer-events-none has-[[data-slot=input-group-control]:disabled]:cursor-not-allowed",e),...t})}const Q=r.cva("text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50",{variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]","block-start":"order-first w-full justify-start px-3 pt-3 [.border-b]:pb-3 group-has-[>input]/input-group:pt-2.5","block-end":"order-last w-full justify-start px-3 pb-3 [.border-t]:pt-3 group-has-[>input]/input-group:pb-2.5"}},defaultVariants:{align:"inline-start"}});function ee({className:e,align:t="inline-start",...n}){const s=l=>{var i,d;l.target.closest("button")||(d=(i=l.currentTarget.parentElement)==null?void 0:i.querySelector("input"))==null||d.focus()},o=l=>{var i,d;if(l.key==="Enter"||l.key===" "){if(l.preventDefault(),l.target.closest("button"))return;(d=(i=l.currentTarget.parentElement)==null?void 0:i.querySelector("input"))==null||d.focus()}};return a.jsx("div",{role:"button",tabIndex:0,"data-slot":"input-group-addon","data-align":t,className:r.cn(Q({align:t}),e),onClick:s,onKeyDown:o,"aria-label":"Focus input field",...n})}const te=r.cva("text-sm shadow-none flex gap-2 items-center",{variants:{size:{xs:"h-6 gap-1 px-2 rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-3.5 has-[>svg]:px-2",sm:"h-8 px-2.5 gap-1.5 rounded-md has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function ae({className:e,type:t="button",variant:n="default",size:s="xs",...o}){return a.jsx(r.Button,{type:t,"data-size":s,variant:n,className:r.cn(te({size:s}),e),...o})}function re({className:e,...t}){return a.jsx("span",{className:r.cn("text-muted-foreground flex items-center gap-2 text-sm [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",e),...t})}function ne({className:e,...t}){return a.jsx(r.Input,{"data-slot":"input-group-control",className:r.cn("flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}function se({className:e,...t}){return a.jsx(_,{"data-slot":"input-group-control",className:r.cn("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}function y({...e}){return a.jsx(c.Root,{"data-slot":"select",...e})}function oe({...e}){return a.jsx(c.Group,{"data-slot":"select-group",...e})}function S({...e}){return a.jsx(c.Value,{"data-slot":"select-value",...e})}function k({className:e,size:t="default",children:n,...s}){return a.jsxs(c.Trigger,{"data-slot":"select-trigger","data-size":t,className:r.cn(`
2
2
  flex w-fit items-center justify-between gap-2 rounded-md border
3
3
  border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap
4
4
  shadow-xs transition-[color,box-shadow] outline-none
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { c as n, a as f, B as _, I as E, f as P, b as T, P as I, d as S } from "./Skeleton-De31tq_k.js";
2
- import { A as wt, S as Nt, e as yt } from "./Skeleton-De31tq_k.js";
1
+ import { c as n, a as f, B as _, I as E, f as P, b as T, P as I, d as S } from "./Skeleton-CkBhpSHW.js";
2
+ import { A as wt, S as Nt, e as yt } from "./Skeleton-CkBhpSHW.js";
3
3
  import { jsx as a, jsxs as u } from "react/jsx-runtime";
4
4
  import { Slot as x } from "@radix-ui/react-slot";
5
5
  import "clsx";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plyaz/ui",
3
- "version": "0.7.4",
3
+ "version": "0.7.6",
4
4
  "description": "A reusable, accessible, and themeable component library powering the Plyaz Web App interface. Built with performance and consistency in mind, @plyaz/ui delivers modular React components aligned with the Plyaz design system — enabling seamless development across fan-facing features, quests, NFTs, and loyalty flows in the Web3 ecosystem.",
5
5
  "type": "module",
6
6
  "files": [
package/styles/main.css CHANGED
@@ -63,6 +63,10 @@
63
63
  --animate-marquee: marquee var(--duration) infinite linear;
64
64
  --animate-marquee-vertical: marquee-vertical var(--duration) linear infinite;
65
65
  --background-image-gradient-orange: var(--accent);
66
+ --width-card-sm: 282px;
67
+ --width-card-lg: 343px;
68
+ --height-card-sm: 282px;
69
+ --height-card-lg: 343px;
66
70
  }
67
71
  :root {
68
72
  --radius: 0.625rem;