eidotter 0.16.2 → 0.17.0

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.
package/dist/index.umd.js CHANGED
@@ -1,15 +1,15 @@
1
- (function(A,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],h):(A=typeof globalThis<"u"?globalThis:A||self,h(A.eidotter={},A.jsxRuntime,A.React,A.ReactDOM))})(this,(function(A,h,c,st){"use strict";const Yo=(t,e)=>{const n=new Array(t.length+e.length);for(let r=0;r<t.length;r++)n[r]=t[r];for(let r=0;r<e.length;r++)n[t.length+r]=e[r];return n},Xo=(t,e)=>({classGroupId:t,validator:e}),Tr=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),Nr=[],Zo="arbitrary..",Jo=t=>{const e=Ro(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return Qo(o);const s=o.split("-"),a=s[0]===""&&s.length>1?1:0;return $r(s,a,e)},getConflictingClassGroupIds:(o,s)=>{if(s){const a=r[o],d=n[o];return a?d?Yo(d,a):a:d||Nr}return n[o]||Nr}}},$r=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const i=t[e],l=n.nextPart.get(i);if(l){const d=$r(t,e+1,l);if(d)return d}const o=n.validators;if(o===null)return;const s=e===0?t.join("-"):t.slice(e).join("-"),a=o.length;for(let d=0;d<a;d++){const u=o[d];if(u.validator(s))return u.classGroupId}},Qo=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),r=e.slice(0,n);return r?Zo+r:void 0})(),Ro=t=>{const{theme:e,classGroups:n}=t;return es(n,e)},es=(t,e)=>{const n=Tr();for(const r in t){const i=t[r];un(i,n,r,e)}return n},un=(t,e,n,r)=>{const i=t.length;for(let l=0;l<i;l++){const o=t[l];ts(o,e,n,r)}},ts=(t,e,n,r)=>{if(typeof t=="string"){ns(t,e,n);return}if(typeof t=="function"){rs(t,e,n,r);return}is(t,e,n,r)},ns=(t,e,n)=>{const r=t===""?e:Dr(e,t);r.classGroupId=n},rs=(t,e,n,r)=>{if(ls(t)){un(t(r),e,n,r);return}e.validators===null&&(e.validators=[]),e.validators.push(Xo(n,t))},is=(t,e,n,r)=>{const i=Object.entries(t),l=i.length;for(let o=0;o<l;o++){const[s,a]=i[o];un(a,Dr(e,s),n,r)}},Dr=(t,e)=>{let n=t;const r=e.split("-"),i=r.length;for(let l=0;l<i;l++){const o=r[l];let s=n.nextPart.get(o);s||(s=Tr(),n.nextPart.set(o,s)),n=s}return n},ls=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,os=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),r=Object.create(null);const i=(l,o)=>{n[l]=o,e++,e>t&&(e=0,r=n,n=Object.create(null))};return{get(l){let o=n[l];if(o!==void 0)return o;if((o=r[l])!==void 0)return i(l,o),o},set(l,o){l in n?n[l]=o:i(l,o)}}},ss=[],Sr=(t,e,n,r,i)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),as=t=>{const{prefix:e,experimentalParseClassName:n}=t;let r=i=>{const l=[];let o=0,s=0,a=0,d;const u=i.length;for(let b=0;b<u;b++){const y=i[b];if(o===0&&s===0){if(y===":"){l.push(i.slice(a,b)),a=b+1;continue}if(y==="/"){d=b;continue}}y==="["?o++:y==="]"?o--:y==="("?s++:y===")"&&s--}const p=l.length===0?i:i.slice(a);let v=p,m=!1;p.endsWith("!")?(v=p.slice(0,-1),m=!0):p.startsWith("!")&&(v=p.slice(1),m=!0);const g=d&&d>a?d-a:void 0;return Sr(l,m,v,g)};if(e){const i=e+":",l=r;r=o=>o.startsWith(i)?l(o.slice(i.length)):Sr(ss,!1,o,void 0,!0)}if(n){const i=r;r=l=>n({className:l,parseClassName:i})}return r},cs=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,r)=>{e.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let l=0;l<n.length;l++){const o=n[l],s=o[0]==="[",a=e.has(o);s||a?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(o)):i.push(o)}return i.length>0&&(i.sort(),r.push(...i)),r}},ds=t=>({cache:os(t.cacheSize),parseClassName:as(t),sortModifiers:cs(t),...Jo(t)}),us=/\s+/,fs=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:l}=e,o=[],s=t.trim().split(us);let a="";for(let d=s.length-1;d>=0;d-=1){const u=s[d],{isExternal:p,modifiers:v,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:b}=n(u);if(p){a=u+(a.length>0?" "+a:a);continue}let y=!!b,x=r(y?g.substring(0,b):g);if(!x){if(!y){a=u+(a.length>0?" "+a:a);continue}if(x=r(g),!x){a=u+(a.length>0?" "+a:a);continue}y=!1}const E=v.length===0?"":v.length===1?v[0]:l(v).join(":"),C=m?E+"!":E,k=C+x;if(o.indexOf(k)>-1)continue;o.push(k);const $=i(x,y);for(let z=0;z<$.length;++z){const F=$[z];o.push(C+F)}a=u+(a.length>0?" "+a:a)}return a},ps=(...t)=>{let e=0,n,r,i="";for(;e<t.length;)(n=t[e++])&&(r=Ir(n))&&(i&&(i+=" "),i+=r);return i},Ir=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=Ir(t[r]))&&(n&&(n+=" "),n+=e);return n},hs=(t,...e)=>{let n,r,i,l;const o=a=>{const d=e.reduce((u,p)=>p(u),t());return n=ds(d),r=n.cache.get,i=n.cache.set,l=s,s(a)},s=a=>{const d=r(a);if(d)return d;const u=fs(a,n);return i(a,u),u};return l=o,(...a)=>l(ps(...a))},vs=[],oe=t=>{const e=n=>n[t]||vs;return e.isThemeGetter=!0,e},_r=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Kr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ms=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,bs=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gs=/\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$/,ys=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,xs=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ws=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_e=t=>ms.test(t),W=t=>!!t&&!Number.isNaN(Number(t)),Ke=t=>!!t&&Number.isInteger(Number(t)),fn=t=>t.endsWith("%")&&W(t.slice(0,-1)),ke=t=>bs.test(t),Mr=()=>!0,Es=t=>gs.test(t)&&!ys.test(t),pn=()=>!1,Cs=t=>xs.test(t),Ps=t=>ws.test(t),ks=t=>!K(t)&&!M(t),Ts=t=>Me(t,Vr,pn),K=t=>_r.test(t),Be=t=>Me(t,zr,Es),Lr=t=>Me(t,Ms,W),Ns=t=>Me(t,Ur,Mr),$s=t=>Me(t,Hr,pn),Fr=t=>Me(t,Or,pn),Ds=t=>Me(t,Br,Ps),Nt=t=>Me(t,Wr,Cs),M=t=>Kr.test(t),at=t=>Ve(t,zr),Ss=t=>Ve(t,Hr),Ar=t=>Ve(t,Or),Is=t=>Ve(t,Vr),_s=t=>Ve(t,Br),$t=t=>Ve(t,Wr,!0),Ks=t=>Ve(t,Ur,!0),Me=(t,e,n)=>{const r=_r.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},Ve=(t,e,n=!1)=>{const r=Kr.exec(t);return r?r[1]?e(r[1]):n:!1},Or=t=>t==="position"||t==="percentage",Br=t=>t==="image"||t==="url",Vr=t=>t==="length"||t==="size"||t==="bg-size",zr=t=>t==="length",Ms=t=>t==="number",Hr=t=>t==="family-name",Ur=t=>t==="number"||t==="weight",Wr=t=>t==="shadow",Ls=hs(()=>{const t=oe("color"),e=oe("font"),n=oe("text"),r=oe("font-weight"),i=oe("tracking"),l=oe("leading"),o=oe("breakpoint"),s=oe("container"),a=oe("spacing"),d=oe("radius"),u=oe("shadow"),p=oe("inset-shadow"),v=oe("text-shadow"),m=oe("drop-shadow"),g=oe("blur"),b=oe("perspective"),y=oe("aspect"),x=oe("ease"),E=oe("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],$=()=>[...k(),M,K],z=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],P=()=>[M,K,a],L=()=>[_e,"full","auto",...P()],V=()=>[Ke,"none","subgrid",M,K],ee=()=>["auto",{span:["full",Ke,M,K]},Ke,M,K],ne=()=>[Ke,"auto",M,K],Y=()=>["auto","min","max","fr",M,K],N=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],O=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...P()],X=()=>[_e,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],Q=()=>[_e,"screen","full","dvw","lvw","svw","min","max","fit",...P()],re=()=>[_e,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],f=()=>[t,M,K],D=()=>[...k(),Ar,Fr,{position:[M,K]}],w=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",Is,Ts,{size:[M,K]}],S=()=>[fn,at,Be],I=()=>["","none","full",d,M,K],U=()=>["",W,at,Be],se=()=>["solid","dashed","dotted","double"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[W,fn,Ar,Fr],ue=()=>["","none",g,M,K],Pe=()=>["none",W,M,K],cn=()=>["none",W,M,K],kr=()=>[W,M,K],dn=()=>[_e,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ke],breakpoint:[ke],color:[Mr],container:[ke],"drop-shadow":[ke],ease:["in","out","in-out"],font:[ks],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ke],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ke],shadow:[ke],spacing:["px",W],text:[ke],"text-shadow":[ke],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",_e,K,M,y]}],container:["container"],columns:[{columns:[W,K,M,s]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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:$()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{"inset-s":L(),start:L()}],end:[{"inset-e":L(),end:L()}],"inset-bs":[{"inset-bs":L()}],"inset-be":[{"inset-be":L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Ke,"auto",M,K]}],basis:[{basis:[_e,"full","auto",s,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[W,_e,"auto","initial","none",K]}],grow:[{grow:["",W,M,K]}],shrink:[{shrink:["",W,M,K]}],order:[{order:[Ke,"first","last","none",M,K]}],"grid-cols":[{"grid-cols":V()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":V()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...N(),"normal"]}],"justify-items":[{"justify-items":[...O(),"normal"]}],"justify-self":[{"justify-self":["auto",...O()]}],"align-content":[{content:["normal",...N()]}],"align-items":[{items:[...O(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...O(),{baseline:["","last"]}]}],"place-content":[{"place-content":N()}],"place-items":[{"place-items":[...O(),"baseline"]}],"place-self":[{"place-self":["auto",...O()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pbs:[{pbs:P()}],pbe:[{pbe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...Q()]}],"min-inline-size":[{"min-inline":["auto",...Q()]}],"max-inline-size":[{"max-inline":["none",...Q()]}],"block-size":[{block:["auto",...re()]}],"min-block-size":[{"min-block":["auto",...re()]}],"max-block-size":[{"max-block":["none",...re()]}],w:[{w:[s,"screen",...X()]}],"min-w":[{"min-w":[s,"screen","none",...X()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",n,at,Be]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Ks,Ns]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",fn,K]}],"font-family":[{font:[Ss,$s,e]}],"font-features":[{"font-features":[K]}],"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:[i,M,K]}],"line-clamp":[{"line-clamp":[W,"none",M,Lr]}],leading:[{leading:[l,...P()]}],"list-image":[{"list-image":["none",M,K]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",M,K]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:f()}],"text-color":[{text:f()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:[W,"from-font","auto",M,Be]}],"text-decoration-color":[{decoration:f()}],"underline-offset":[{"underline-offset":[W,"auto",M,K]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M,K]}],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",M,K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:w()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ke,M,K],radial:["",M,K],conic:[Ke,M,K]},_s,Ds]}],"bg-color":[{bg:f()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:f()}],"gradient-via":[{via:f()}],"gradient-to":[{to:f()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-bs":[{"border-bs":U()}],"border-w-be":[{"border-be":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"hidden","none"]}],"border-color":[{border:f()}],"border-color-x":[{"border-x":f()}],"border-color-y":[{"border-y":f()}],"border-color-s":[{"border-s":f()}],"border-color-e":[{"border-e":f()}],"border-color-bs":[{"border-bs":f()}],"border-color-be":[{"border-be":f()}],"border-color-t":[{"border-t":f()}],"border-color-r":[{"border-r":f()}],"border-color-b":[{"border-b":f()}],"border-color-l":[{"border-l":f()}],"divide-color":[{divide:f()}],"outline-style":[{outline:[...se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[W,M,K]}],"outline-w":[{outline:["",W,at,Be]}],"outline-color":[{outline:f()}],shadow:[{shadow:["","none",u,$t,Nt]}],"shadow-color":[{shadow:f()}],"inset-shadow":[{"inset-shadow":["none",p,$t,Nt]}],"inset-shadow-color":[{"inset-shadow":f()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:f()}],"ring-offset-w":[{"ring-offset":[W,Be]}],"ring-offset-color":[{"ring-offset":f()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":f()}],"text-shadow":[{"text-shadow":["none",v,$t,Nt]}],"text-shadow-color":[{"text-shadow":f()}],opacity:[{opacity:[W,M,K]}],"mix-blend":[{"mix-blend":[...B(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":B()}],"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":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":f()}],"mask-image-linear-to-color":[{"mask-linear-to":f()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":f()}],"mask-image-t-to-color":[{"mask-t-to":f()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":f()}],"mask-image-r-to-color":[{"mask-r-to":f()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":f()}],"mask-image-b-to-color":[{"mask-b-to":f()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":f()}],"mask-image-l-to-color":[{"mask-l-to":f()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":f()}],"mask-image-x-to-color":[{"mask-x-to":f()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":f()}],"mask-image-y-to-color":[{"mask-y-to":f()}],"mask-image-radial":[{"mask-radial":[M,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":f()}],"mask-image-radial-to-color":[{"mask-radial-to":f()}],"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":k()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":f()}],"mask-image-conic-to-color":[{"mask-conic-to":f()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:w()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",M,K]}],filter:[{filter:["","none",M,K]}],blur:[{blur:ue()}],brightness:[{brightness:[W,M,K]}],contrast:[{contrast:[W,M,K]}],"drop-shadow":[{"drop-shadow":["","none",m,$t,Nt]}],"drop-shadow-color":[{"drop-shadow":f()}],grayscale:[{grayscale:["",W,M,K]}],"hue-rotate":[{"hue-rotate":[W,M,K]}],invert:[{invert:["",W,M,K]}],saturate:[{saturate:[W,M,K]}],sepia:[{sepia:["",W,M,K]}],"backdrop-filter":[{"backdrop-filter":["","none",M,K]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[W,M,K]}],"backdrop-contrast":[{"backdrop-contrast":[W,M,K]}],"backdrop-grayscale":[{"backdrop-grayscale":["",W,M,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,M,K]}],"backdrop-invert":[{"backdrop-invert":["",W,M,K]}],"backdrop-opacity":[{"backdrop-opacity":[W,M,K]}],"backdrop-saturate":[{"backdrop-saturate":[W,M,K]}],"backdrop-sepia":[{"backdrop-sepia":["",W,M,K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",M,K]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[W,"initial",M,K]}],ease:[{ease:["linear","initial",x,M,K]}],delay:[{delay:[W,M,K]}],animate:[{animate:["none",E,M,K]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,M,K]}],"perspective-origin":[{"perspective-origin":$()}],rotate:[{rotate:Pe()}],"rotate-x":[{"rotate-x":Pe()}],"rotate-y":[{"rotate-y":Pe()}],"rotate-z":[{"rotate-z":Pe()}],scale:[{scale:cn()}],"scale-x":[{"scale-x":cn()}],"scale-y":[{"scale-y":cn()}],"scale-z":[{"scale-z":cn()}],"scale-3d":["scale-3d"],skew:[{skew:kr()}],"skew-x":[{"skew-x":kr()}],"skew-y":[{"skew-y":kr()}],transform:[{transform:[M,K,"","none","gpu","cpu"]}],"transform-origin":[{origin:$()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:dn()}],"translate-x":[{"translate-x":dn()}],"translate-y":[{"translate-y":dn()}],"translate-z":[{"translate-z":dn()}],"translate-none":["translate-none"],accent:[{accent:f()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:f()}],"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",M,K]}],"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":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mbs":[{"scroll-mbs":P()}],"scroll-mbe":[{"scroll-mbe":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pbs":[{"scroll-pbs":P()}],"scroll-pbe":[{"scroll-pbe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",M,K]}],fill:[{fill:["none",...f()]}],"stroke-w":[{stroke:[W,at,Be,Lr]}],stroke:[{stroke:["none",...f()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]}});function G(...t){return Ls(t.filter(Boolean))}const xe=({name:t,size:e="L",className:n="",onClick:r,color:i,role:l})=>h.jsx("svg",{className:`icon ${e==="L"?"icon--l":"icon--s"} ${n} ${l?`icon--${l}`:""}`.trim(),onClick:r,role:l,"aria-label":`${t} icon`,style:i?{color:i}:void 0,children:h.jsx("use",{href:`/icons/sprites.svg#${t}`})});function hn(){return typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}function jr(t,e){const[n,r]=c.useState(!1),i=c.useRef(!1),l=c.useCallback(()=>{if(!(i.current||!e)){if(hn()){e();return}i.current=!0,r(!0)}},[e]),o=c.useCallback(s=>{s.animationName===t&&i.current&&(i.current=!1,r(!1),e==null||e())},[t,e]);return{isClosing:n,triggerClose:l,handleAnimationEnd:o}}const Fs={info:"Info",success:"Done",warning:"Warning",error:"Error",default:"Info",brand:"Info"},Gr={sm:"max-w-[350px] min-h-[40px] flex-row items-center px-2 gap-2",lg:"max-w-[1020px] flex-row items-start p-4 gap-2",small:"max-w-[350px] min-h-[40px] flex-row items-center px-2 gap-2",large:"max-w-[1020px] flex-row items-start p-4 gap-2",floating:"max-w-[350px] min-h-[40px] flex-row items-center px-2 gap-2","full-width":"max-w-[1020px] flex-row items-start p-4 gap-2"},qr={info:"eidotter-alert--info",success:"eidotter-alert--success",warning:"eidotter-alert--warning",error:"eidotter-alert--error",default:"eidotter-alert--info",brand:"eidotter-alert--warning"},As=({size:t="lg",type:e="info",title:n,children:r,onClose:i,onClickHere:l,className:o})=>{const{isClosing:s,triggerClose:a,handleAnimationEnd:d}=jr("alert-exit",i),u=t==="sm"||t==="small"||t==="floating";return h.jsxs("div",{className:G("relative overflow-hidden text-left w-full","font-dos text-[16px]","eidotter-alert",Gr[t]||Gr.lg,qr[e]||qr.info,s&&"eidotter-alert--closing",o),onAnimationEnd:d,role:"alert","data-type":e,children:[h.jsx("div",{className:G("flex items-center justify-center flex-shrink-0 self-start mt-0.5",u?"w-5 h-5":"w-6 h-6"),children:h.jsx(xe,{name:Fs[e]||"Info",size:"S","aria-label":e+" alert"})}),h.jsxs("div",{className:G("flex-1 flex flex-col gap-1 min-w-0",i&&"pr-6"),children:[n&&h.jsx("div",{className:"leading-[140%]",children:n}),!u&&(r||l)&&h.jsxs("div",{className:"leading-[140%]",children:[r&&h.jsx("span",{children:r}),l&&h.jsx("button",{className:"eidotter-alert__link",onClick:l,"aria-label":"Click for more information",children:"Click here"})]})]}),i&&h.jsx("button",{className:"eidotter-alert__close",onClick:a,"aria-label":"Close alert",children:h.jsx(xe,{name:"Close",size:"S"})})]})},Yr=({title:t,children:e,defaultExpanded:n=!1,isHovered:r=!1,isActive:i=!1,onToggle:l})=>{const[o,s]=c.useState(n);c.useEffect(()=>{s(n)},[n]);const a=()=>{const d=!o;s(d),l==null||l(d)};return h.jsxs("div",{className:G("w-full border border-dos-border-default bg-dos-bg-primary text-cga-amber font-dos","eidotter-section",o&&"eidotter-section--expanded",r&&"eidotter-section--hover",i&&"eidotter-section--active"),children:[h.jsxs("button",{className:"eidotter-section__header w-full flex justify-between items-center px-4 py-2 bg-transparent border-0 text-inherit font-[inherit] cursor-pointer text-left",onClick:a,"aria-expanded":o,children:[h.jsx("div",{className:"flex-1 text-base leading-6",children:t}),h.jsx("div",{className:"eidotter-section__icon flex items-center justify-center w-6 h-6 ml-2 text-inherit",children:h.jsx(xe,{name:o?"Chevron Up":"Chevron Down",size:"S"})})]}),h.jsx("div",{className:"eidotter-section__content",inert:o?void 0:!0,children:e})]})},Os=({sections:t,defaultExpandedIndex:e=-1,className:n})=>{const[,r]=c.useState(e),i=(l,o)=>{r(o?l:-1)};return h.jsx("div",{className:G("w-full flex flex-col items-stretch gap-2 text-left text-base font-dos text-cga-amber","eidotter-accordion-fill",n),children:t.map((l,o)=>h.jsx(Yr,{title:l.title,defaultExpanded:o===e,onToggle:s=>i(o,s),children:l.content},o))})},Bs=c.createContext(null);c.createContext(null),c.createContext(null),c.createContext(null),c.createContext(null);const Vs=c.createContext({});c.createContext(null);const zs=c.createContext(null),R=typeof document<"u"?c.useLayoutEffect:()=>{};function Hs(t){let[e,n]=c.useState(t),r=c.useRef(e),i=c.useRef(null),l=c.useRef(()=>{if(!i.current)return;let s=i.current.next();if(s.done){i.current=null;return}r.current===s.value?l.current():n(s.value)});R(()=>{r.current=e,i.current&&l.current()});let o=c.useCallback(s=>{i.current=s(r.current),l.current()},[l]);return[e,o]}const Dt={prefix:String(Math.round(Math.random()*1e10)),current:0},Xr=c.createContext(Dt),Us=c.createContext(!1);let Ws=!!(typeof window<"u"&&window.document&&window.document.createElement),vn=new WeakMap;function js(t=!1){let e=c.useContext(Xr),n=c.useRef(null);if(n.current===null&&!t){var r,i;let l=(i=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(l){let o=vn.get(l);o==null?vn.set(l,{id:e.current,state:l.memoizedState}):l.memoizedState!==o.state&&(e.current=o.id,vn.delete(l))}n.current=++e.current}return n.current}function Gs(t){let e=c.useContext(Xr);e===Dt&&!Ws&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=js(!!t),r=e===Dt&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function qs(t){let e=c.useId(),[n]=c.useState(ze()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Dt.prefix}`;return t||`${r}-${e}`}const Ys=typeof c.useId=="function"?qs:Gs;function Xs(){return!1}function Zs(){return!0}function Js(t){return()=>{}}function ze(){return typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore(Js,Xs,Zs):c.useContext(Us)}let Qs=!!(typeof window<"u"&&window.document&&window.document.createElement),Qe=new Map,ct;typeof FinalizationRegistry<"u"&&(ct=new FinalizationRegistry(t=>{Qe.delete(t)}));function Te(t){let[e,n]=c.useState(t),r=c.useRef(null),i=Ys(e),l=c.useRef(null);if(ct&&ct.register(l,i),Qs){const o=Qe.get(i);o&&!o.includes(r)?o.push(r):Qe.set(i,[r])}return R(()=>{let o=i;return()=>{ct&&ct.unregister(l),Qe.delete(o)}},[i]),c.useEffect(()=>{let o=r.current;return o&&n(o),()=>{o&&(r.current=null)}}),i}function Rs(t,e){if(t===e)return t;let n=Qe.get(t);if(n)return n.forEach(i=>i.current=e),e;let r=Qe.get(e);return r?(r.forEach(i=>i.current=t),t):e}function mn(t=[]){let e=Te(),[n,r]=Hs(e),i=c.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return R(i,[e,i,...t]),n}function dt(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const Z=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},ae=t=>t&&"window"in t&&t.window===t?t:Z(t).defaultView||window;function ea(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function ta(t){return ea(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let na=!1;function Ne(){return na}function H(t,e){if(!Ne())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let n=e;for(;n!==null;){if(n===t)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:ta(n)?n=n.host:n=n.parentNode}return!1}const ie=(t=document)=>{var e;if(!Ne())return t.activeElement;let n=t.activeElement;for(;n&&"shadowRoot"in n&&(!((e=n.shadowRoot)===null||e===void 0)&&e.activeElement);)n=n.shadowRoot.activeElement;return n};function _(t){if(Ne()&&t.target instanceof Element&&t.target.shadowRoot){var e,n;if("composedPath"in t)return(e=t.composedPath()[0])!==null&&e!==void 0?e:null;if("composedPath"in t.nativeEvent)return(n=t.nativeEvent.composedPath()[0])!==null&&n!==void 0?n:null}return t.target}function bn(t){if(!t)return!1;let e=t.getRootNode(),n=ae(t);if(!(e instanceof n.Document||e instanceof n.ShadowRoot))return!1;let r=e.activeElement;return r!=null&&t.contains(r)}class ra{get currentNode(){return this._currentNode}set currentNode(e){if(!H(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=e,i=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const o=r,s=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=i,this._currentSetFor.add(s),r=i=o.host}else r=r.parentNode;const l=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(l),l.currentNode=i,this._currentSetFor.add(l),this._walkerStack=n}get doc(){return this._doc}firstChild(){let e=this.currentNode,n=this.nextNode();return H(e,n)?(n&&(this.currentNode=n),n):(this.currentNode=e,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(e):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(e)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let l=this.nextNode();return l&&(this.currentNode=l),l}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=e.previousNode();if(n){if(n.shadowRoot){var r;let l;if(typeof this.filter=="function"?l=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(l=this.filter.acceptNode(n)),l===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let o=this.lastChild();return o&&(this.currentNode=o),o}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=o=>{if(o.nodeType===Node.ELEMENT_NODE){const a=o.shadowRoot;if(a){const d=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(d),NodeFilter.FILTER_ACCEPT}else{var s;if(typeof this.filter=="function")return this.filter(o);if(!((s=this.filter)===null||s===void 0)&&s.acceptNode)return this.filter.acceptNode(o);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(e.createTreeWalker(n,r,this._acceptNode));const l=n.shadowRoot;if(l){const o=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(o)}}}function Zr(t,e,n,r){return Ne()?new ra(t,e,n,r):t.createTreeWalker(e,n,r)}function Re(...t){return t.length===1&&t[0]?t[0]:e=>{let n=!1;const r=t.map(i=>{const l=Jr(i,e);return n||(n=typeof l=="function"),l});if(n)return()=>{r.forEach((i,l)=>{typeof i=="function"?i():Jr(t[l],null)})}}}function Jr(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Qr(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Qr(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function ia(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Qr(t))&&(r&&(r+=" "),r+=e);return r}function q(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let i in r){let l=e[i],o=r[i];typeof l=="function"&&typeof o=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=dt(l,o):(i==="className"||i==="UNSAFE_className")&&typeof l=="string"&&typeof o=="string"?e[i]=ia(l,o):i==="id"&&l&&o?e.id=Rs(l,o):i==="ref"&&l&&o?e.ref=Re(l,o):e[i]=o!==void 0?o:l}}return e}const la=new Set(["id"]),oa=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),sa=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),aa=new Set(["dir","lang","hidden","inert","translate"]),Rr=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),ca=/^(data-.*)$/;function ce(t,e={}){let{labelable:n,isLink:r,global:i,events:l=i,propNames:o}=e,s={};for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&(la.has(a)||n&&oa.has(a)||r&&sa.has(a)||i&&aa.has(a)||l&&(Rr.has(a)||a.endsWith("Capture")&&Rr.has(a.slice(0,-7)))||o!=null&&o.has(a)||ca.test(a))&&(s[a]=t[a]);return s}function $e(t){if(da())t.focus({preventScroll:!0});else{let e=ua(t);t.focus(),fa(e)}}let St=null;function da(){if(St==null){St=!1;try{document.createElement("div").focus({get preventScroll(){return St=!0,!0}})}catch{}}return St}function ua(t){let e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function fa(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function It(t){var e;if(typeof window>"u"||window.navigator==null)return!1;let n=(e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands;return Array.isArray(n)&&n.some(r=>t.test(r.brand))||t.test(window.navigator.userAgent)}function gn(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function De(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const He=De(function(){return gn(/^Mac/i)}),pa=De(function(){return gn(/^iPhone/i)}),ei=De(function(){return gn(/^iPad/i)||He()&&navigator.maxTouchPoints>1}),Ue=De(function(){return pa()||ei()}),ha=De(function(){return He()||Ue()}),va=De(function(){return It(/AppleWebKit/i)&&!yn()}),yn=De(function(){return It(/Chrome/i)}),xn=De(function(){return It(/Android/i)}),ma=De(function(){return It(/Firefox/i)}),ba=c.createContext({isNative:!0,open:ya,useHref:t=>t});function wn(){return c.useContext(ba)}function Se(t,e,n=!0){var r,i;let{metaKey:l,ctrlKey:o,altKey:s,shiftKey:a}=e;ma()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(He()?l=!0:o=!0);let d=va()&&He()&&!ei()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:l,ctrlKey:o,altKey:s,shiftKey:a}):new MouseEvent("click",{metaKey:l,ctrlKey:o,altKey:s,shiftKey:a,detail:1,bubbles:!0,cancelable:!0});Se.isOpening=n,$e(t),t.dispatchEvent(d),Se.isOpening=!1}Se.isOpening=!1;function ga(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let n=document.createElement("a");n.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(n.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(n.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(n.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(n.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(n),e(n),t.removeChild(n)}}function ya(t,e){ga(t,n=>Se(n,e))}function xa(t){let e=wn();var n;const r=e.useHref((n=t==null?void 0:t.href)!==null&&n!==void 0?n:"");return{href:t!=null&&t.href?r:void 0,target:t==null?void 0:t.target,rel:t==null?void 0:t.rel,download:t==null?void 0:t.download,ping:t==null?void 0:t.ping,referrerPolicy:t==null?void 0:t.referrerPolicy}}let Le=new Map,En=new Set;function ti(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{let i=_(r);if(!t(r)||!i)return;let l=Le.get(i);l||(l=new Set,Le.set(i,l),i.addEventListener("transitioncancel",n,{once:!0})),l.add(r.propertyName)},n=r=>{let i=_(r);if(!t(r)||!i)return;let l=Le.get(i);if(l&&(l.delete(r.propertyName),l.size===0&&(i.removeEventListener("transitioncancel",n),Le.delete(i)),Le.size===0)){for(let o of En)o();En.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?ti():document.addEventListener("DOMContentLoaded",ti));function wa(){for(const[t]of Le)"isConnected"in t&&!t.isConnected&&Le.delete(t)}function ni(t){requestAnimationFrame(()=>{wa(),Le.size===0?t():En.add(t)})}function _t(){let t=c.useRef(new Map),e=c.useCallback((i,l,o,s)=>{let a=s!=null&&s.once?(...d)=>{t.current.delete(o),o(...d)}:o;t.current.set(o,{type:l,eventTarget:i,fn:a,options:s}),i.addEventListener(l,a,s)},[]),n=c.useCallback((i,l,o,s)=>{var a;let d=((a=t.current.get(o))===null||a===void 0?void 0:a.fn)||o;i.removeEventListener(l,d,s),t.current.delete(o)},[]),r=c.useCallback(()=>{t.current.forEach((i,l)=>{n(i.eventTarget,i.type,l,i.options)})},[n]);return c.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function Kt(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=Te(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&e&&(r=e),{id:n,"aria-label":r,"aria-labelledby":i}}function Fe(t){const e=c.useRef(null),n=c.useRef(void 0),r=c.useCallback(i=>{if(typeof t=="function"){const l=t,o=l(i);return()=>{typeof o=="function"?o():l(null)}}else if(t)return t.current=i,()=>{t.current=null}},[t]);return c.useMemo(()=>({get current(){return e.current},set current(i){e.current=i,n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))}}),[r])}var Cn;const Ea=(Cn=c.useInsertionEffect)!==null&&Cn!==void 0?Cn:R;function be(t){const e=c.useRef(null);return Ea(()=>{e.current=t},[t]),c.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function ri(t,e){const n=c.useRef(!0),r=c.useRef(null);R(()=>(n.current=!0,()=>{n.current=!1}),[]),R(()=>{n.current?n.current=!1:(!r.current||e.some((i,l)=>!Object.is(i,r[l])))&&t(),r.current=e},e)}function ii(t,e){R(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function ut(t,e){if(!t)return!1;let n=window.getComputedStyle(t),r=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return t===r&&n.overflow!=="hidden"&&(i=!0),i&&e&&(i=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),i}function li(t,e){let n=t;for(ut(n,e)&&(n=n.parentElement);n&&!ut(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function oi(t,e){let n=[],r=document.scrollingElement||document.documentElement;do ut(t,e)&&n.push(t),t=t.parentElement;while(t&&t!==r);return n}function et(t){return He()?t.metaKey:t.ctrlKey}const Ca=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ft(t){return t instanceof HTMLInputElement&&!Ca.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}let fe=typeof document<"u"&&window.visualViewport;function Pa(){let t=ze(),[e,n]=c.useState(()=>t?{width:0,height:0}:Pn());return c.useEffect(()=>{let r=s=>{n(a=>s.width===a.width&&s.height===a.height?a:s)},i=()=>{fe&&fe.scale>1||r(Pn())},l,o=s=>{fe&&fe.scale>1||ft(_(s))&&(l=requestAnimationFrame(()=>{let a=ie();(!a||!ft(a))&&r({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return r(Pn()),Ue()&&window.addEventListener("blur",o,!0),fe?fe.addEventListener("resize",i):window.addEventListener("resize",i),()=>{cancelAnimationFrame(l),Ue()&&window.removeEventListener("blur",o,!0),fe?fe.removeEventListener("resize",i):window.removeEventListener("resize",i)}},[]),e}function Pn(){return{width:fe?fe.width*fe.scale:document.documentElement.clientWidth,height:fe?fe.height*fe.scale:document.documentElement.clientHeight}}let ka=0;const kn=new Map;function Ta(t){let[e,n]=c.useState();return R(()=>{if(!t)return;let r=kn.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${ka++}`;n(i);let l=document.createElement("div");l.id=i,l.style.display="none",l.textContent=t,document.body.appendChild(l),r={refCount:0,element:l},kn.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),kn.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function Mt(t,e,n,r){let i=be(n),l=n==null;c.useEffect(()=>{if(l||!t.current)return;let o=t.current;return o.addEventListener(e,i,r),()=>{o.removeEventListener(e,i,r)}},[t,e,r,l])}function Tn(t,e,n={}){let{block:r="nearest",inline:i="nearest"}=n;if(t===e)return;let l=t.scrollTop,o=t.scrollLeft,s=e.getBoundingClientRect(),a=t.getBoundingClientRect(),d=window.getComputedStyle(e),u=window.getComputedStyle(t),p=document.scrollingElement||document.documentElement,v=t===p?0:a.top,m=t===p?t.clientHeight:a.bottom,g=t===p?0:a.left,b=t===p?t.clientWidth:a.right,y=parseInt(d.scrollMarginTop,10)||0,x=parseInt(d.scrollMarginBottom,10)||0,E=parseInt(d.scrollMarginLeft,10)||0,C=parseInt(d.scrollMarginRight,10)||0,k=parseInt(u.scrollPaddingTop,10)||0,$=parseInt(u.scrollPaddingBottom,10)||0,z=parseInt(u.scrollPaddingLeft,10)||0,F=parseInt(u.scrollPaddingRight,10)||0,P=parseInt(u.borderTopWidth,10)||0,L=parseInt(u.borderBottomWidth,10)||0,V=parseInt(u.borderLeftWidth,10)||0,ee=parseInt(u.borderRightWidth,10)||0,ne=s.top-y,Y=s.bottom+x,N=s.left-E,O=s.right+C,j=t===p?0:V+ee,X=t===p?0:P+L,Q=t.offsetWidth-t.clientWidth-j,re=t.offsetHeight-t.clientHeight-X,f=v+P+k,D=m-L-$-re,w=g+V+z,T=b-ee-F;u.direction==="rtl"&&!Ue()?w+=Q:T-=Q;let S=ne<f||Y>D,I=N<w||O>T;if(S&&r==="start")l+=ne-f;else if(S&&r==="center")l+=(ne+Y)/2-(f+D)/2;else if(S&&r==="end")l+=Y-D;else if(S&&r==="nearest"){let U=ne-f,se=Y-D;l+=Math.abs(U)<=Math.abs(se)?U:se}if(I&&i==="start")o+=N-w;else if(I&&i==="center")o+=(N+O)/2-(w+T)/2;else if(I&&i==="end")o+=O-T;else if(I&&i==="nearest"){let U=N-w,se=O-T;o+=Math.abs(U)<=Math.abs(se)?U:se}if(process.env.NODE_ENV==="test"){t.scrollLeft=o,t.scrollTop=l;return}t.scrollTo({left:o,top:l})}function si(t,e={}){let{containingElement:n}=e;if(t&&t.isConnected){let o=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(o).overflow==="hidden")&&!yn()){var r;let{left:a,top:d}=t.getBoundingClientRect();t==null||(r=t.scrollIntoView)===null||r===void 0||r.call(t,{block:"nearest"});let{left:u,top:p}=t.getBoundingClientRect();if(Math.abs(a-u)>1||Math.abs(d-p)>1){var i,l;n==null||(i=n.scrollIntoView)===null||i===void 0||i.call(n,{block:"center",inline:"center"}),(l=t.scrollIntoView)===null||l===void 0||l.call(t,{block:"nearest"})}}else{let{left:a,top:d}=t.getBoundingClientRect(),u=oi(t,!0);for(let m of u)Tn(m,t);let{left:p,top:v}=t.getBoundingClientRect();if(Math.abs(a-p)>1||Math.abs(d-v)>1){u=n?oi(n,!0):[];for(let m of u)Tn(m,n,{block:"center",inline:"center"})}}}}function Nn(t){return t.pointerType===""&&t.isTrusted?!0:xn()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function Na(t){return!xn()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function ai(t,e,n){let r=be(()=>{n&&n(e)});c.useEffect(()=>{var i;let l=t==null||(i=t.current)===null||i===void 0?void 0:i.form;return l==null||l.addEventListener("reset",r),()=>{l==null||l.removeEventListener("reset",r)}},[t])}function ci(t){const e=c.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}const $a="react-aria-clear-focus",Da="react-aria-focus";function $n(t,e=!0){let[n,r]=c.useState(!0),i=n&&e;return R(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let l of t.current.getAnimations())l instanceof CSSTransition&&l.cancel()},[t,i]),di(t,i,c.useCallback(()=>r(!1),[])),i}function Dn(t,e){let[n,r]=c.useState(e?"open":"closed");switch(n){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let i=n==="exiting";return di(t,i,c.useCallback(()=>{r(l=>l==="exiting"?"closed":l)},[])),i}function di(t,e,n){R(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){n();return}let r=t.current.getAnimations();if(r.length===0){n();return}let i=!1;return Promise.all(r.map(l=>l.finished)).then(()=>{i||st.flushSync(()=>{n()})}).catch(()=>{}),()=>{i=!0}}},[t,e,n])}const Sa=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Ia(t){const e=ae(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:n,visibility:r}=t.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:l}=t.ownerDocument.defaultView;let{display:o,visibility:s}=l(t);i=o!=="none"&&s!=="hidden"&&s!=="collapse"}return i}function _a(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function Sn(t,e){return Sa?t.checkVisibility({visibilityProperty:!0})&&!t.closest("[data-react-aria-prevent-focus]"):t.nodeName!=="#comment"&&Ia(t)&&_a(t,e)&&(!t.parentElement||Sn(t.parentElement,t))}const In=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],Ka=In.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";In.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Ma=In.join(':not([hidden]):not([tabindex="-1"]),');function ui(t){return t.matches(Ka)&&Sn(t)&&!pi(t)}function fi(t){return t.matches(Ma)&&Sn(t)&&!pi(t)}function pi(t){let e=t;for(;e!=null;){if(e instanceof e.ownerDocument.defaultView.HTMLElement&&e.inert)return!0;e=e.parentElement}return!1}var _n;const La=typeof document<"u"?(_n=c.useInsertionEffect)!==null&&_n!==void 0?_n:c.useLayoutEffect:()=>{};function pt(t,e,n){let[r,i]=c.useState(t||e),l=c.useRef(r),o=c.useRef(t!==void 0),s=t!==void 0;c.useEffect(()=>{let p=o.current;p!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),o.current=s},[s]);let a=s?t:r;La(()=>{l.current=a});let[,d]=c.useReducer(()=>({}),{}),u=c.useCallback((p,...v)=>{let m=typeof p=="function"?p(l.current):p;Object.is(l.current,m)||(l.current=m,i(m),d(),n==null||n(m,...v))},[n]);return[a,u]}const Kn=Symbol("default");function ht({values:t,children:e}){for(let[n,r]of t)e=c.createElement(n.Provider,{value:r},e);return e}function pe(t){let{className:e,style:n,children:r,defaultClassName:i,defaultChildren:l,defaultStyle:o,values:s,render:a}=t;return c.useMemo(()=>{let d,u,p;return typeof e=="function"?d=e({...s,defaultClassName:i}):d=e,typeof n=="function"?u=n({...s,defaultStyle:o||{}}):u=n,typeof r=="function"?p=r({...s,defaultChildren:l}):r==null?p=l:p=r,{className:d??i,style:u||o?{...o,...u}:void 0,children:p??l,"data-rac":"",render:a?v=>a(v,s):void 0}},[e,n,r,i,l,o,s,a])}function Lt(t,e){let n=c.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=e||Kn;if(!n.slots[r]){let i=new Intl.ListFormat().format(Object.keys(n.slots).map(o=>`"${o}"`)),l=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${l} Valid slot names are ${i}.`)}return n.slots[r]}return n}function ge(t,e,n){let r=Lt(n,t.slot)||{},{ref:i,...l}=r,o=Fe(c.useMemo(()=>Re(e,i),[e,i])),s=q(l,t);return"style"in l&&l.style&&"style"in t&&t.style&&(typeof l.style=="function"||typeof t.style=="function"?s.style=a=>{let d=typeof l.style=="function"?l.style(a):l.style,u={...a.defaultStyle,...d},p=typeof t.style=="function"?t.style({...a,defaultStyle:u}):t.style;return{...u,...p}}:s.style={...l.style,...t.style}),[s,o]}function Fa(t=!0){let[e,n]=c.useState(t),r=c.useRef(!1),i=c.useCallback(l=>{r.current=!0,n(!!l)},[]);return R(()=>{r.current||n(!1)},[]),[i,e]}function Ft(t){const e=/^(data-.*)$/;let n={};for(const r in t)e.test(r)||(n[r]=t[r]);return n}function Aa(t,e,n){let{render:r,...i}=e,l=c.useRef(null),o=c.useMemo(()=>Re(n,l),[n,l]);R(()=>{process.env.NODE_ENV!=="production"&&r&&(l.current?l.current.localName!==t&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${t}>, got <${l.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[t,r]);let s={...i,ref:o};return r?r(s,void 0):c.createElement(t,s)}const hi={},de=new Proxy({},{get(t,e){if(typeof e!="string")return;let n=hi[e];return n||(n=c.forwardRef(Aa.bind(null,e)),hi[e]=n),n}}),vi=7e3;let we=null;function mi(t,e="assertive",n=vi){we?we.announce(t,e,n):(we=new Oa,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?we.announce(t,e,n):setTimeout(()=>{we!=null&&we.isAttached()&&(we==null||we.announce(t,e,n))},100))}class Oa{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",r=vi){var i,l;if(!this.node)return;let o=document.createElement("div");typeof e=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",e["aria-labelledby"])):o.textContent=e,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(o):(l=this.politeLog)===null||l===void 0||l.appendChild(o),e!==""&&setTimeout(()=>{o.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const Ba=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Va=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function za(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Ba.has(n.script)}let e=t.split("-")[0];return Va.has(e)}const bi=Symbol.for("react-aria.i18n.locale");function gi(){let t=typeof window<"u"&&window[bi]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:za(t)?"rtl":"ltr"}}let Mn=gi(),vt=new Set;function yi(){Mn=gi();for(let t of vt)t(Mn)}function Ha(){let t=ze(),[e,n]=c.useState(Mn);return c.useEffect(()=>(vt.size===0&&window.addEventListener("languagechange",yi),vt.add(n),()=>{vt.delete(n),vt.size===0&&window.removeEventListener("languagechange",yi)}),[]),t?{locale:typeof window<"u"&&window[bi]||"en-US",direction:"ltr"}:e}const Ua=c.createContext(null);function Ln(){let t=Ha();return c.useContext(Ua)||t}const Wa=Symbol.for("react-aria.i18n.locale"),ja=Symbol.for("react-aria.i18n.strings");let tt;class At{getStringForLocale(e,n){let i=this.getStringsForLocale(n)[e];if(!i)throw new Error(`Could not find intl message ${e} in ${n} locale`);return i}getStringsForLocale(e){let n=this.strings[e];return n||(n=Ga(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[Wa];if(tt===void 0){let i=window[ja];if(!i)return null;tt={};for(let l in i)tt[l]=new At({[n]:i[l]},n)}let r=tt==null?void 0:tt[e];if(!r)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,n="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,r])=>r)),this.defaultLocale=n}}function Ga(t,e,n="en-US"){if(e[t])return e[t];let r=qa(t);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[n]}function qa(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const xi=new Map,wi=new Map;class Ya{format(e,n){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(n,this):r}plural(e,n,r="cardinal"){let i=n["="+e];if(i)return typeof i=="function"?i():i;let l=this.locale+":"+r,o=xi.get(l);o||(o=new Intl.PluralRules(this.locale,{type:r}),xi.set(l,o));let s=o.select(e);return i=n[s]||n.other,typeof i=="function"?i():i}number(e){let n=wi.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),wi.set(this.locale,n)),n.format(e)}select(e,n){let r=e[n]||e.other;return typeof r=="function"?r():r}constructor(e,n){this.locale=e,this.strings=n}}const Ei=new WeakMap;function Xa(t){let e=Ei.get(t);return e||(e=new At(t),Ei.set(t,e)),e}function Za(t,e){return e&&At.getGlobalDictionaryForPackage(e)||Xa(t)}function Ja(t,e){let{locale:n}=Ln(),r=Za(t,e);return c.useMemo(()=>new Ya(n,r),[n,r])}function Qa(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ra(t,e,n){Qa(t,e),e.set(t,n)}function Fn(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function Ci(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function Pi(t){let e=c.useRef({isFocused:!1,observer:null});return R(()=>{const n=e.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),c.useCallback(n=>{let r=_(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r,l=o=>{if(e.current.isFocused=!1,i.disabled){let s=Fn(o);t==null||t(s)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",l,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var o;(o=e.current.observer)===null||o===void 0||o.disconnect();let s=i===ie()?null:ie();i.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[t])}let Ot=!1;function ki(t){for(;t&&!ui(t);)t=t.parentElement;let e=ae(t),n=e.document.activeElement;if(!n||n===t)return;Ot=!0;let r=!1,i=u=>{(_(u)===n||r)&&u.stopImmediatePropagation()},l=u=>{(_(u)===n||r)&&(u.stopImmediatePropagation(),!t&&!r&&(r=!0,$e(n),a()))},o=u=>{(_(u)===t||r)&&u.stopImmediatePropagation()},s=u=>{(_(u)===t||r)&&(u.stopImmediatePropagation(),r||(r=!0,$e(n),a()))};e.addEventListener("blur",i,!0),e.addEventListener("focusout",l,!0),e.addEventListener("focusin",s,!0),e.addEventListener("focus",o,!0);let a=()=>{cancelAnimationFrame(d),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",l,!0),e.removeEventListener("focusin",s,!0),e.removeEventListener("focus",o,!0),Ot=!1,r=!1},d=requestAnimationFrame(a);return a}let nt="default",An="",Bt=new WeakMap;function Ti(t){if(Ue()){if(nt==="default"){const e=Z(t);An=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}nt="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";Bt.set(t,t.style[e]),t.style[e]="none"}}function On(t){if(Ue()){if(nt!=="disabled")return;nt="restoring",setTimeout(()=>{ni(()=>{if(nt==="restoring"){const e=Z(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=An||""),An="",nt="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&Bt.has(t)){let e=Bt.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),Bt.delete(t)}}const Bn=c.createContext({register:()=>{}});Bn.displayName="PressResponderContext";function ec(t,e){return e.get?e.get.call(t):e.value}function Ni(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function tc(t,e){var n=Ni(t,e,"get");return ec(t,n)}function nc(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}function $i(t,e,n){var r=Ni(t,e,"set");return nc(t,r,n),n}function rc(t){let e=c.useContext(Bn);if(e){let{register:n,ref:r,...i}=e;t=q(i,t),n()}return ii(e,t.ref),t}var Vt=new WeakMap;class zt{continuePropagation(){$i(this,Vt,!1)}get shouldStopPropagation(){return tc(this,Vt)}constructor(e,n,r,i){Ra(this,Vt,{writable:!0,value:void 0}),$i(this,Vt,!0);var l;let o=(l=i==null?void 0:i.target)!==null&&l!==void 0?l:r.currentTarget;const s=o==null?void 0:o.getBoundingClientRect();let a,d=0,u,p=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,p=r.clientY),s&&(u!=null&&p!=null?(a=u-s.left,d=p-s.top):(a=s.width/2,d=s.height/2)),this.type=e,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=a,this.y=d,this.key=r.key}}const Di=Symbol("linkClicked"),Si="react-aria-pressable-style",Ii="data-react-aria-pressable";function rt(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:l,onClick:o,isDisabled:s,isPressed:a,preventFocusOnPress:d,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:p,ref:v,...m}=rc(t),[g,b]=c.useState(!1),y=c.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:x,removeAllGlobalListeners:E,removeGlobalListener:C}=_t(),k=c.useCallback((f,D)=>{let w=y.current;if(s||w.didFirePressStart)return!1;let T=!0;if(w.isTriggeringEvent=!0,r){let S=new zt("pressstart",D,f);r(S),T=S.shouldStopPropagation}return n&&n(!0),w.isTriggeringEvent=!1,w.didFirePressStart=!0,b(!0),T},[s,r,n]),$=c.useCallback((f,D,w=!0)=>{let T=y.current;if(!T.didFirePressStart)return!1;T.didFirePressStart=!1,T.isTriggeringEvent=!0;let S=!0;if(i){let I=new zt("pressend",D,f);i(I),S=I.shouldStopPropagation}if(n&&n(!1),b(!1),e&&w&&!s){let I=new zt("press",D,f);e(I),S&&(S=I.shouldStopPropagation)}return T.isTriggeringEvent=!1,S},[s,i,n,e]),z=be($),F=c.useCallback((f,D)=>{let w=y.current;if(s)return!1;if(l){w.isTriggeringEvent=!0;let T=new zt("pressup",D,f);return l(T),w.isTriggeringEvent=!1,T.shouldStopPropagation}return!0},[s,l]),P=be(F),L=c.useCallback(f=>{let D=y.current;if(D.isPressed&&D.target){D.didFirePressStart&&D.pointerType!=null&&$(We(D.target,f),D.pointerType,!1),D.isPressed=!1,Q(null),D.isOverTarget=!1,D.activePointerId=null,D.pointerType=null,E(),p||On(D.target);for(let w of D.disposables)w();D.disposables=[]}},[p,E,$]),V=be(L),ee=c.useCallback(f=>{u&&L(f)},[u,L]),ne=c.useCallback(f=>{s||o==null||o(f)},[s,o]),Y=c.useCallback((f,D)=>{if(!s&&o){let w=new MouseEvent("click",f);Ci(w,D),o(Fn(w))}},[s,o]),N=be(Y),[O,j]=c.useState(!1);R(()=>{let f=y.current;if(O){let D=I=>{var U;if(f.isPressed&&f.target&&zn(I,f.target)){var se;Mi(_(I),I.key)&&I.preventDefault();let J=_(I),ue=H(f.target,J);z(We(f.target,I),"keyboard",ue),ue&&N(I,f.target),E(),I.key!=="Enter"&&Vn(f.target)&&H(f.target,J)&&!I[Di]&&(I[Di]=!0,Se(f.target,I,!1)),f.isPressed=!1,j(!1),(se=f.metaKeyEvents)===null||se===void 0||se.delete(I.key)}else if(I.key==="Meta"&&(!((U=f.metaKeyEvents)===null||U===void 0)&&U.size)){var B;let J=f.metaKeyEvents;f.metaKeyEvents=void 0;for(let ue of J.values())(B=f.target)===null||B===void 0||B.dispatchEvent(new KeyboardEvent("keyup",ue))}},w=f.target,S=dt(I=>{w&&zn(I,w)&&!I.repeat&&H(w,_(I))&&f.target&&P(We(f.target,I),"keyboard")},D);return x(Z(f.target),"keyup",S,!0),()=>{C(Z(f.target),"keyup",S,!0)}}},[O,x,E,C]);let[X,Q]=c.useState(null);R(()=>{let f=y.current;if(X==="pointer"){let D=T=>{if(T.pointerId===f.activePointerId&&f.isPressed&&T.button===0&&f.target){if(H(f.target,_(T))&&f.pointerType!=null){let S=!1,I=setTimeout(()=>{f.isPressed&&f.target instanceof HTMLElement&&(S?V(T):($e(f.target),f.target.click()))},80);T.currentTarget&&x(T.currentTarget,"click",()=>S=!0,!0),f.disposables.push(()=>clearTimeout(I))}else V(T);f.isOverTarget=!1}},w=T=>{V(T)};return x(Z(f.target),"pointerup",D,!1),x(Z(f.target),"pointercancel",w,!1),()=>{C(Z(f.target),"pointerup",D,!1),C(Z(f.target),"pointercancel",w,!1)}}else if(X==="mouse"&&process.env.NODE_ENV==="test"){let D=w=>{if(w.button===0){if(f.ignoreEmulatedMouseEvents){f.ignoreEmulatedMouseEvents=!1;return}f.target&&H(f.target,w.target)&&f.pointerType!=null||V(w),f.isOverTarget=!1}};return x(Z(f.target),"mouseup",D,!1),()=>{C(Z(f.target),"mouseup",D,!1)}}else if(X==="touch"&&process.env.NODE_ENV==="test"){let D=w=>{f.isPressed&&H(_(w),f.target)&&V({currentTarget:f.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};return x(ae(f.target),"scroll",D,!0),()=>{C(ae(f.target),"scroll",D,!0)}}},[X,x,C]);let re=c.useMemo(()=>{let f=y.current,D={onKeyDown(w){if(zn(w.nativeEvent,w.currentTarget)&&H(w.currentTarget,_(w))){var T;Mi(_(w),w.key)&&w.preventDefault();let S=!0;!f.isPressed&&!w.repeat&&(f.target=w.currentTarget,f.isPressed=!0,j(!0),f.pointerType="keyboard",S=k(w,"keyboard")),S&&w.stopPropagation(),w.metaKey&&He()&&((T=f.metaKeyEvents)===null||T===void 0||T.set(w.key,w.nativeEvent))}else w.key==="Meta"&&(f.metaKeyEvents=new Map)},onClick(w){if(!(w&&!H(w.currentTarget,_(w)))&&w&&w.button===0&&!f.isTriggeringEvent&&!Se.isOpening){let T=!0;if(s&&w.preventDefault(),!f.ignoreEmulatedMouseEvents&&!f.isPressed&&(f.pointerType==="virtual"||Nn(w.nativeEvent))){let S=k(w,"virtual"),I=F(w,"virtual"),U=$(w,"virtual");ne(w),T=S&&I&&U}else if(f.isPressed&&f.pointerType!=="keyboard"){let S=f.pointerType||w.nativeEvent.pointerType||"virtual",I=F(We(w.currentTarget,w),S),U=$(We(w.currentTarget,w),S,!0);T=I&&U,f.isOverTarget=!1,ne(w),L(w)}f.ignoreEmulatedMouseEvents=!1,T&&w.stopPropagation()}}};return typeof PointerEvent<"u"?(D.onPointerDown=w=>{if(w.button!==0||!H(w.currentTarget,_(w)))return;if(Na(w.nativeEvent)){f.pointerType="virtual";return}f.pointerType=w.pointerType;let T=!0;if(!f.isPressed){f.isPressed=!0,Q("pointer"),f.isOverTarget=!0,f.activePointerId=w.pointerId,f.target=w.currentTarget,p||Ti(f.target),T=k(w,f.pointerType);let S=_(w);"releasePointerCapture"in S&&("hasPointerCapture"in S?S.hasPointerCapture(w.pointerId)&&S.releasePointerCapture(w.pointerId):S.releasePointerCapture(w.pointerId))}T&&w.stopPropagation()},D.onMouseDown=w=>{if(H(w.currentTarget,_(w))&&w.button===0){if(d){let T=ki(w.target);T&&f.disposables.push(T)}w.stopPropagation()}},D.onPointerUp=w=>{!H(w.currentTarget,_(w))||f.pointerType==="virtual"||w.button===0&&!f.isPressed&&F(w,f.pointerType||w.pointerType)},D.onPointerEnter=w=>{w.pointerId===f.activePointerId&&f.target&&!f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!0,k(We(f.target,w),f.pointerType))},D.onPointerLeave=w=>{w.pointerId===f.activePointerId&&f.target&&f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!1,$(We(f.target,w),f.pointerType,!1),ee(w))},D.onDragStart=w=>{H(w.currentTarget,_(w))&&L(w)}):process.env.NODE_ENV==="test"&&(D.onMouseDown=w=>{if(w.button!==0||!H(w.currentTarget,_(w)))return;if(f.ignoreEmulatedMouseEvents){w.stopPropagation();return}if(f.isPressed=!0,Q("mouse"),f.isOverTarget=!0,f.target=w.currentTarget,f.pointerType=Nn(w.nativeEvent)?"virtual":"mouse",st.flushSync(()=>k(w,f.pointerType))&&w.stopPropagation(),d){let S=ki(w.target);S&&f.disposables.push(S)}},D.onMouseEnter=w=>{if(!H(w.currentTarget,_(w)))return;let T=!0;f.isPressed&&!f.ignoreEmulatedMouseEvents&&f.pointerType!=null&&(f.isOverTarget=!0,T=k(w,f.pointerType)),T&&w.stopPropagation()},D.onMouseLeave=w=>{if(!H(w.currentTarget,_(w)))return;let T=!0;f.isPressed&&!f.ignoreEmulatedMouseEvents&&f.pointerType!=null&&(f.isOverTarget=!1,T=$(w,f.pointerType,!1),ee(w)),T&&w.stopPropagation()},D.onMouseUp=w=>{H(w.currentTarget,_(w))&&!f.ignoreEmulatedMouseEvents&&w.button===0&&!f.isPressed&&F(w,f.pointerType||"mouse")},D.onTouchStart=w=>{if(!H(w.currentTarget,_(w)))return;let T=ic(w.nativeEvent);if(!T)return;f.activePointerId=T.identifier,f.ignoreEmulatedMouseEvents=!0,f.isOverTarget=!0,f.isPressed=!0,Q("touch"),f.target=w.currentTarget,f.pointerType="touch",p||Ti(f.target),k(Ae(f.target,w),f.pointerType)&&w.stopPropagation()},D.onTouchMove=w=>{if(!H(w.currentTarget,_(w)))return;if(!f.isPressed){w.stopPropagation();return}let T=_i(w.nativeEvent,f.activePointerId),S=!0;T&&Ki(T,w.currentTarget)?!f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!0,S=k(Ae(f.target,w),f.pointerType)):f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!1,S=$(Ae(f.target,w),f.pointerType,!1),ee(Ae(f.target,w))),S&&w.stopPropagation()},D.onTouchEnd=w=>{if(!H(w.currentTarget,_(w)))return;if(!f.isPressed){w.stopPropagation();return}let T=_i(w.nativeEvent,f.activePointerId),S=!0;T&&Ki(T,w.currentTarget)&&f.pointerType!=null?(F(Ae(f.target,w),f.pointerType),S=$(Ae(f.target,w),f.pointerType),Y(w.nativeEvent,f.target)):f.isOverTarget&&f.pointerType!=null&&(S=$(Ae(f.target,w),f.pointerType,!1)),S&&w.stopPropagation(),f.isPressed=!1,Q(null),f.activePointerId=null,f.isOverTarget=!1,f.ignoreEmulatedMouseEvents=!0,f.target&&!p&&On(f.target),E()},D.onTouchCancel=w=>{H(w.currentTarget,_(w))&&(w.stopPropagation(),f.isPressed&&L(Ae(f.target,w)))},D.onDragStart=w=>{H(w.currentTarget,_(w))&&L(w)}),D},[s,d,E,p,L,ee,$,k,F,ne,Y]);return c.useEffect(()=>{if(!v||process.env.NODE_ENV==="test")return;const f=Z(v.current);if(!f||!f.head||f.getElementById(Si))return;const D=f.createElement("style");D.id=Si,D.textContent=`
1
+ (function(A,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],h):(A=typeof globalThis<"u"?globalThis:A||self,h(A.eidotter={},A.jsxRuntime,A.React,A.ReactDOM))})(this,(function(A,h,c,st){"use strict";const Jl=c.createContext(null);c.createContext(null),c.createContext(null),c.createContext(null),c.createContext(null);const Ql=c.createContext({});c.createContext(null);const Rl=c.createContext(null),R=typeof document<"u"?c.useLayoutEffect:()=>{};function es(t){let[e,n]=c.useState(t),r=c.useRef(e),i=c.useRef(null),o=c.useRef(()=>{if(!i.current)return;let s=i.current.next();if(s.done){i.current=null;return}r.current===s.value?o.current():n(s.value)});R(()=>{r.current=e,i.current&&o.current()});let l=c.useCallback(s=>{i.current=s(r.current),o.current()},[o]);return[e,l]}const Nt={prefix:String(Math.round(Math.random()*1e10)),current:0},_r=c.createContext(Nt),ts=c.createContext(!1);let ns=!!(typeof window<"u"&&window.document&&window.document.createElement),fn=new WeakMap;function rs(t=!1){let e=c.useContext(_r),n=c.useRef(null);if(n.current===null&&!t){var r,i;let o=(i=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let l=fn.get(o);l==null?fn.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==l.state&&(e.current=l.id,fn.delete(o))}n.current=++e.current}return n.current}function is(t){let e=c.useContext(_r);e===Nt&&!ns&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=rs(!!t),r=e===Nt&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function os(t){let e=c.useId(),[n]=c.useState(Be()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Nt.prefix}`;return t||`${r}-${e}`}const ls=typeof c.useId=="function"?os:is;function ss(){return!1}function as(){return!0}function cs(t){return()=>{}}function Be(){return typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore(cs,ss,as):c.useContext(ts)}let ds=!!(typeof window<"u"&&window.document&&window.document.createElement),Qe=new Map,at;typeof FinalizationRegistry<"u"&&(at=new FinalizationRegistry(t=>{Qe.delete(t)}));function Pe(t){let[e,n]=c.useState(t),r=c.useRef(null),i=ls(e),o=c.useRef(null);if(at&&at.register(o,i),ds){const l=Qe.get(i);l&&!l.includes(r)?l.push(r):Qe.set(i,[r])}return R(()=>{let l=i;return()=>{at&&at.unregister(o),Qe.delete(l)}},[i]),c.useEffect(()=>{let l=r.current;return l&&n(l),()=>{l&&(r.current=null)}}),i}function us(t,e){if(t===e)return t;let n=Qe.get(t);if(n)return n.forEach(i=>i.current=e),e;let r=Qe.get(e);return r?(r.forEach(i=>i.current=t),t):e}function pn(t=[]){let e=Pe(),[n,r]=es(e),i=c.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return R(i,[e,i,...t]),n}function ct(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const Z=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},ae=t=>t&&"window"in t&&t.window===t?t:Z(t).defaultView||window;function fs(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function ps(t){return fs(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let hs=!1;function Te(){return hs}function H(t,e){if(!Te())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let n=e;for(;n!==null;){if(n===t)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:ps(n)?n=n.host:n=n.parentNode}return!1}const ie=(t=document)=>{var e;if(!Te())return t.activeElement;let n=t.activeElement;for(;n&&"shadowRoot"in n&&(!((e=n.shadowRoot)===null||e===void 0)&&e.activeElement);)n=n.shadowRoot.activeElement;return n};function I(t){if(Te()&&t.target instanceof Element&&t.target.shadowRoot){var e,n;if("composedPath"in t)return(e=t.composedPath()[0])!==null&&e!==void 0?e:null;if("composedPath"in t.nativeEvent)return(n=t.nativeEvent.composedPath()[0])!==null&&n!==void 0?n:null}return t.target}function hn(t){if(!t)return!1;let e=t.getRootNode(),n=ae(t);if(!(e instanceof n.Document||e instanceof n.ShadowRoot))return!1;let r=e.activeElement;return r!=null&&t.contains(r)}class vs{get currentNode(){return this._currentNode}set currentNode(e){if(!H(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=e,i=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=r,s=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=i,this._currentSetFor.add(s),r=i=l.host}else r=r.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(o),o.currentNode=i,this._currentSetFor.add(o),this._walkerStack=n}get doc(){return this._doc}firstChild(){let e=this.currentNode,n=this.nextNode();return H(e,n)?(n&&(this.currentNode=n),n):(this.currentNode=e,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(e):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(e)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let o=this.nextNode();return o&&(this.currentNode=o),o}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=e.previousNode();if(n){if(n.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(n)),o===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let l=this.lastChild();return l&&(this.currentNode=l),l}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const a=l.shadowRoot;if(a){const d=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(d),NodeFilter.FILTER_ACCEPT}else{var s;if(typeof this.filter=="function")return this.filter(l);if(!((s=this.filter)===null||s===void 0)&&s.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(e.createTreeWalker(n,r,this._acceptNode));const o=n.shadowRoot;if(o){const l=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}}function Sr(t,e,n,r){return Te()?new vs(t,e,n,r):t.createTreeWalker(e,n,r)}function Re(...t){return t.length===1&&t[0]?t[0]:e=>{let n=!1;const r=t.map(i=>{const o=Ir(i,e);return n||(n=typeof o=="function"),o});if(n)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():Ir(t[o],null)})}}}function Ir(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Kr(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Kr(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function ms(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Kr(t))&&(r&&(r+=" "),r+=e);return r}function q(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let i in r){let o=e[i],l=r[i];typeof o=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=ct(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=ms(o,l):i==="id"&&o&&l?e.id=us(o,l):i==="ref"&&o&&l?e.ref=Re(o,l):e[i]=l!==void 0?l:o}}return e}const bs=new Set(["id"]),gs=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ys=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),xs=new Set(["dir","lang","hidden","inert","translate"]),Mr=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),ws=/^(data-.*)$/;function ce(t,e={}){let{labelable:n,isLink:r,global:i,events:o=i,propNames:l}=e,s={};for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&(bs.has(a)||n&&gs.has(a)||r&&ys.has(a)||i&&xs.has(a)||o&&(Mr.has(a)||a.endsWith("Capture")&&Mr.has(a.slice(0,-7)))||l!=null&&l.has(a)||ws.test(a))&&(s[a]=t[a]);return s}function Ne(t){if(Es())t.focus({preventScroll:!0});else{let e=Cs(t);t.focus(),ks(e)}}let $t=null;function Es(){if($t==null){$t=!1;try{document.createElement("div").focus({get preventScroll(){return $t=!0,!0}})}catch{}}return $t}function Cs(t){let e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function ks(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function Dt(t){var e;if(typeof window>"u"||window.navigator==null)return!1;let n=(e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands;return Array.isArray(n)&&n.some(r=>t.test(r.brand))||t.test(window.navigator.userAgent)}function vn(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function $e(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const Ve=$e(function(){return vn(/^Mac/i)}),Ps=$e(function(){return vn(/^iPhone/i)}),Lr=$e(function(){return vn(/^iPad/i)||Ve()&&navigator.maxTouchPoints>1}),ze=$e(function(){return Ps()||Lr()}),Ts=$e(function(){return Ve()||ze()}),Ns=$e(function(){return Dt(/AppleWebKit/i)&&!mn()}),mn=$e(function(){return Dt(/Chrome/i)}),bn=$e(function(){return Dt(/Android/i)}),$s=$e(function(){return Dt(/Firefox/i)}),Ds=c.createContext({isNative:!0,open:Ss,useHref:t=>t});function gn(){return c.useContext(Ds)}function De(t,e,n=!0){var r,i;let{metaKey:o,ctrlKey:l,altKey:s,shiftKey:a}=e;$s()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(Ve()?o=!0:l=!0);let d=Ns()&&Ve()&&!Lr()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:l,altKey:s,shiftKey:a}):new MouseEvent("click",{metaKey:o,ctrlKey:l,altKey:s,shiftKey:a,detail:1,bubbles:!0,cancelable:!0});De.isOpening=n,Ne(t),t.dispatchEvent(d),De.isOpening=!1}De.isOpening=!1;function _s(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let n=document.createElement("a");n.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(n.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(n.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(n.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(n.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(n),e(n),t.removeChild(n)}}function Ss(t,e){_s(t,n=>De(n,e))}function Is(t){let e=gn();var n;const r=e.useHref((n=t==null?void 0:t.href)!==null&&n!==void 0?n:"");return{href:t!=null&&t.href?r:void 0,target:t==null?void 0:t.target,rel:t==null?void 0:t.rel,download:t==null?void 0:t.download,ping:t==null?void 0:t.ping,referrerPolicy:t==null?void 0:t.referrerPolicy}}let Ie=new Map,yn=new Set;function Fr(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{let i=I(r);if(!t(r)||!i)return;let o=Ie.get(i);o||(o=new Set,Ie.set(i,o),i.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{let i=I(r);if(!t(r)||!i)return;let o=Ie.get(i);if(o&&(o.delete(r.propertyName),o.size===0&&(i.removeEventListener("transitioncancel",n),Ie.delete(i)),Ie.size===0)){for(let l of yn)l();yn.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Fr():document.addEventListener("DOMContentLoaded",Fr));function Ks(){for(const[t]of Ie)"isConnected"in t&&!t.isConnected&&Ie.delete(t)}function Ar(t){requestAnimationFrame(()=>{Ks(),Ie.size===0?t():yn.add(t)})}function _t(){let t=c.useRef(new Map),e=c.useCallback((i,o,l,s)=>{let a=s!=null&&s.once?(...d)=>{t.current.delete(l),l(...d)}:l;t.current.set(l,{type:o,eventTarget:i,fn:a,options:s}),i.addEventListener(o,a,s)},[]),n=c.useCallback((i,o,l,s)=>{var a;let d=((a=t.current.get(l))===null||a===void 0?void 0:a.fn)||l;i.removeEventListener(o,d,s),t.current.delete(l)},[]),r=c.useCallback(()=>{t.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return c.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function St(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=Pe(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&e&&(r=e),{id:n,"aria-label":r,"aria-labelledby":i}}function Ke(t){const e=c.useRef(null),n=c.useRef(void 0),r=c.useCallback(i=>{if(typeof t=="function"){const o=t,l=o(i);return()=>{typeof l=="function"?l():o(null)}}else if(t)return t.current=i,()=>{t.current=null}},[t]);return c.useMemo(()=>({get current(){return e.current},set current(i){e.current=i,n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))}}),[r])}var xn;const Ms=(xn=c.useInsertionEffect)!==null&&xn!==void 0?xn:R;function ge(t){const e=c.useRef(null);return Ms(()=>{e.current=t},[t]),c.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function Or(t,e){const n=c.useRef(!0),r=c.useRef(null);R(()=>(n.current=!0,()=>{n.current=!1}),[]),R(()=>{n.current?n.current=!1:(!r.current||e.some((i,o)=>!Object.is(i,r[o])))&&t(),r.current=e},e)}function Br(t,e){R(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function dt(t,e){if(!t)return!1;let n=window.getComputedStyle(t),r=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return t===r&&n.overflow!=="hidden"&&(i=!0),i&&e&&(i=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),i}function Vr(t,e){let n=t;for(dt(n,e)&&(n=n.parentElement);n&&!dt(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function zr(t,e){let n=[],r=document.scrollingElement||document.documentElement;do dt(t,e)&&n.push(t),t=t.parentElement;while(t&&t!==r);return n}function et(t){return Ve()?t.metaKey:t.ctrlKey}const Ls=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ut(t){return t instanceof HTMLInputElement&&!Ls.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}let fe=typeof document<"u"&&window.visualViewport;function Fs(){let t=Be(),[e,n]=c.useState(()=>t?{width:0,height:0}:wn());return c.useEffect(()=>{let r=s=>{n(a=>s.width===a.width&&s.height===a.height?a:s)},i=()=>{fe&&fe.scale>1||r(wn())},o,l=s=>{fe&&fe.scale>1||ut(I(s))&&(o=requestAnimationFrame(()=>{let a=ie();(!a||!ut(a))&&r({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return r(wn()),ze()&&window.addEventListener("blur",l,!0),fe?fe.addEventListener("resize",i):window.addEventListener("resize",i),()=>{cancelAnimationFrame(o),ze()&&window.removeEventListener("blur",l,!0),fe?fe.removeEventListener("resize",i):window.removeEventListener("resize",i)}},[]),e}function wn(){return{width:fe?fe.width*fe.scale:document.documentElement.clientWidth,height:fe?fe.height*fe.scale:document.documentElement.clientHeight}}let As=0;const En=new Map;function Os(t){let[e,n]=c.useState();return R(()=>{if(!t)return;let r=En.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${As++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=t,document.body.appendChild(o),r={refCount:0,element:o},En.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),En.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function It(t,e,n,r){let i=ge(n),o=n==null;c.useEffect(()=>{if(o||!t.current)return;let l=t.current;return l.addEventListener(e,i,r),()=>{l.removeEventListener(e,i,r)}},[t,e,r,o])}function Cn(t,e,n={}){let{block:r="nearest",inline:i="nearest"}=n;if(t===e)return;let o=t.scrollTop,l=t.scrollLeft,s=e.getBoundingClientRect(),a=t.getBoundingClientRect(),d=window.getComputedStyle(e),u=window.getComputedStyle(t),p=document.scrollingElement||document.documentElement,v=t===p?0:a.top,m=t===p?t.clientHeight:a.bottom,g=t===p?0:a.left,b=t===p?t.clientWidth:a.right,y=parseInt(d.scrollMarginTop,10)||0,x=parseInt(d.scrollMarginBottom,10)||0,E=parseInt(d.scrollMarginLeft,10)||0,C=parseInt(d.scrollMarginRight,10)||0,P=parseInt(u.scrollPaddingTop,10)||0,$=parseInt(u.scrollPaddingBottom,10)||0,z=parseInt(u.scrollPaddingLeft,10)||0,F=parseInt(u.scrollPaddingRight,10)||0,k=parseInt(u.borderTopWidth,10)||0,L=parseInt(u.borderBottomWidth,10)||0,V=parseInt(u.borderLeftWidth,10)||0,ee=parseInt(u.borderRightWidth,10)||0,ne=s.top-y,Y=s.bottom+x,N=s.left-E,O=s.right+C,G=t===p?0:V+ee,X=t===p?0:k+L,Q=t.offsetWidth-t.clientWidth-G,re=t.offsetHeight-t.clientHeight-X,f=v+k+P,D=m-L-$-re,w=g+V+z,T=b-ee-F;u.direction==="rtl"&&!ze()?w+=Q:T-=Q;let _=ne<f||Y>D,S=N<w||O>T;if(_&&r==="start")o+=ne-f;else if(_&&r==="center")o+=(ne+Y)/2-(f+D)/2;else if(_&&r==="end")o+=Y-D;else if(_&&r==="nearest"){let U=ne-f,se=Y-D;o+=Math.abs(U)<=Math.abs(se)?U:se}if(S&&i==="start")l+=N-w;else if(S&&i==="center")l+=(N+O)/2-(w+T)/2;else if(S&&i==="end")l+=O-T;else if(S&&i==="nearest"){let U=N-w,se=O-T;l+=Math.abs(U)<=Math.abs(se)?U:se}if(process.env.NODE_ENV==="test"){t.scrollLeft=l,t.scrollTop=o;return}t.scrollTo({left:l,top:o})}function Hr(t,e={}){let{containingElement:n}=e;if(t&&t.isConnected){let l=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(l).overflow==="hidden")&&!mn()){var r;let{left:a,top:d}=t.getBoundingClientRect();t==null||(r=t.scrollIntoView)===null||r===void 0||r.call(t,{block:"nearest"});let{left:u,top:p}=t.getBoundingClientRect();if(Math.abs(a-u)>1||Math.abs(d-p)>1){var i,o;n==null||(i=n.scrollIntoView)===null||i===void 0||i.call(n,{block:"center",inline:"center"}),(o=t.scrollIntoView)===null||o===void 0||o.call(t,{block:"nearest"})}}else{let{left:a,top:d}=t.getBoundingClientRect(),u=zr(t,!0);for(let m of u)Cn(m,t);let{left:p,top:v}=t.getBoundingClientRect();if(Math.abs(a-p)>1||Math.abs(d-v)>1){u=n?zr(n,!0):[];for(let m of u)Cn(m,n,{block:"center",inline:"center"})}}}}function kn(t){return t.pointerType===""&&t.isTrusted?!0:bn()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function Bs(t){return!bn()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function Ur(t,e,n){let r=ge(()=>{n&&n(e)});c.useEffect(()=>{var i;let o=t==null||(i=t.current)===null||i===void 0?void 0:i.form;return o==null||o.addEventListener("reset",r),()=>{o==null||o.removeEventListener("reset",r)}},[t])}function Wr(t){const e=c.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}const Vs="react-aria-clear-focus",zs="react-aria-focus";function Pn(t,e=!0){let[n,r]=c.useState(!0),i=n&&e;return R(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),jr(t,i,c.useCallback(()=>r(!1),[])),i}function Tn(t,e){let[n,r]=c.useState(e?"open":"closed");switch(n){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let i=n==="exiting";return jr(t,i,c.useCallback(()=>{r(o=>o==="exiting"?"closed":o)},[])),i}function jr(t,e,n){R(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){n();return}let r=t.current.getAnimations();if(r.length===0){n();return}let i=!1;return Promise.all(r.map(o=>o.finished)).then(()=>{i||st.flushSync(()=>{n()})}).catch(()=>{}),()=>{i=!0}}},[t,e,n])}const Hs=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Us(t){const e=ae(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:n,visibility:r}=t.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=t.ownerDocument.defaultView;let{display:l,visibility:s}=o(t);i=l!=="none"&&s!=="hidden"&&s!=="collapse"}return i}function Ws(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function Nn(t,e){return Hs?t.checkVisibility({visibilityProperty:!0})&&!t.closest("[data-react-aria-prevent-focus]"):t.nodeName!=="#comment"&&Us(t)&&Ws(t,e)&&(!t.parentElement||Nn(t.parentElement,t))}const $n=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],js=$n.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";$n.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Gs=$n.join(':not([hidden]):not([tabindex="-1"]),');function Gr(t){return t.matches(js)&&Nn(t)&&!Yr(t)}function qr(t){return t.matches(Gs)&&Nn(t)&&!Yr(t)}function Yr(t){let e=t;for(;e!=null;){if(e instanceof e.ownerDocument.defaultView.HTMLElement&&e.inert)return!0;e=e.parentElement}return!1}var Dn;const qs=typeof document<"u"?(Dn=c.useInsertionEffect)!==null&&Dn!==void 0?Dn:c.useLayoutEffect:()=>{};function ft(t,e,n){let[r,i]=c.useState(t||e),o=c.useRef(r),l=c.useRef(t!==void 0),s=t!==void 0;c.useEffect(()=>{let p=l.current;p!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),l.current=s},[s]);let a=s?t:r;qs(()=>{o.current=a});let[,d]=c.useReducer(()=>({}),{}),u=c.useCallback((p,...v)=>{let m=typeof p=="function"?p(o.current):p;Object.is(o.current,m)||(o.current=m,i(m),d(),n==null||n(m,...v))},[n]);return[a,u]}const _n=Symbol("default");function pt({values:t,children:e}){for(let[n,r]of t)e=c.createElement(n.Provider,{value:r},e);return e}function pe(t){let{className:e,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:l,values:s,render:a}=t;return c.useMemo(()=>{let d,u,p;return typeof e=="function"?d=e({...s,defaultClassName:i}):d=e,typeof n=="function"?u=n({...s,defaultStyle:l||{}}):u=n,typeof r=="function"?p=r({...s,defaultChildren:o}):r==null?p=o:p=r,{className:d??i,style:u||l?{...l,...u}:void 0,children:p??o,"data-rac":"",render:a?v=>a(v,s):void 0}},[e,n,r,i,o,l,s,a])}function Kt(t,e){let n=c.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=e||_n;if(!n.slots[r]){let i=new Intl.ListFormat().format(Object.keys(n.slots).map(l=>`"${l}"`)),o=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return n.slots[r]}return n}function ye(t,e,n){let r=Kt(n,t.slot)||{},{ref:i,...o}=r,l=Ke(c.useMemo(()=>Re(e,i),[e,i])),s=q(o,t);return"style"in o&&o.style&&"style"in t&&t.style&&(typeof o.style=="function"||typeof t.style=="function"?s.style=a=>{let d=typeof o.style=="function"?o.style(a):o.style,u={...a.defaultStyle,...d},p=typeof t.style=="function"?t.style({...a,defaultStyle:u}):t.style;return{...u,...p}}:s.style={...o.style,...t.style}),[s,l]}function Ys(t=!0){let[e,n]=c.useState(t),r=c.useRef(!1),i=c.useCallback(o=>{r.current=!0,n(!!o)},[]);return R(()=>{r.current||n(!1)},[]),[i,e]}function Mt(t){const e=/^(data-.*)$/;let n={};for(const r in t)e.test(r)||(n[r]=t[r]);return n}function Xs(t,e,n){let{render:r,...i}=e,o=c.useRef(null),l=c.useMemo(()=>Re(n,o),[n,o]);R(()=>{process.env.NODE_ENV!=="production"&&r&&(o.current?o.current.localName!==t&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${t}>, got <${o.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[t,r]);let s={...i,ref:l};return r?r(s,void 0):c.createElement(t,s)}const Xr={},de=new Proxy({},{get(t,e){if(typeof e!="string")return;let n=Xr[e];return n||(n=c.forwardRef(Xs.bind(null,e)),Xr[e]=n),n}}),Zr=7e3;let we=null;function Jr(t,e="assertive",n=Zr){we?we.announce(t,e,n):(we=new Zs,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?we.announce(t,e,n):setTimeout(()=>{we!=null&&we.isAttached()&&(we==null||we.announce(t,e,n))},100))}class Zs{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",r=Zr){var i,o;if(!this.node)return;let l=document.createElement("div");typeof e=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",e["aria-labelledby"])):l.textContent=e,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(l):(o=this.politeLog)===null||o===void 0||o.appendChild(l),e!==""&&setTimeout(()=>{l.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const Js=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Qs=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Rs(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Js.has(n.script)}let e=t.split("-")[0];return Qs.has(e)}const Qr=Symbol.for("react-aria.i18n.locale");function Rr(){let t=typeof window<"u"&&window[Qr]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:Rs(t)?"rtl":"ltr"}}let Sn=Rr(),ht=new Set;function ei(){Sn=Rr();for(let t of ht)t(Sn)}function ea(){let t=Be(),[e,n]=c.useState(Sn);return c.useEffect(()=>(ht.size===0&&window.addEventListener("languagechange",ei),ht.add(n),()=>{ht.delete(n),ht.size===0&&window.removeEventListener("languagechange",ei)}),[]),t?{locale:typeof window<"u"&&window[Qr]||"en-US",direction:"ltr"}:e}const ta=c.createContext(null);function In(){let t=ea();return c.useContext(ta)||t}const na=Symbol.for("react-aria.i18n.locale"),ra=Symbol.for("react-aria.i18n.strings");let tt;class Lt{getStringForLocale(e,n){let i=this.getStringsForLocale(n)[e];if(!i)throw new Error(`Could not find intl message ${e} in ${n} locale`);return i}getStringsForLocale(e){let n=this.strings[e];return n||(n=ia(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[na];if(tt===void 0){let i=window[ra];if(!i)return null;tt={};for(let o in i)tt[o]=new Lt({[n]:i[o]},n)}let r=tt==null?void 0:tt[e];if(!r)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,n="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,r])=>r)),this.defaultLocale=n}}function ia(t,e,n="en-US"){if(e[t])return e[t];let r=oa(t);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[n]}function oa(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const ti=new Map,ni=new Map;class la{format(e,n){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(n,this):r}plural(e,n,r="cardinal"){let i=n["="+e];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,l=ti.get(o);l||(l=new Intl.PluralRules(this.locale,{type:r}),ti.set(o,l));let s=l.select(e);return i=n[s]||n.other,typeof i=="function"?i():i}number(e){let n=ni.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),ni.set(this.locale,n)),n.format(e)}select(e,n){let r=e[n]||e.other;return typeof r=="function"?r():r}constructor(e,n){this.locale=e,this.strings=n}}const ri=new WeakMap;function sa(t){let e=ri.get(t);return e||(e=new Lt(t),ri.set(t,e)),e}function aa(t,e){return e&&Lt.getGlobalDictionaryForPackage(e)||sa(t)}function ca(t,e){let{locale:n}=In(),r=aa(t,e);return c.useMemo(()=>new la(n,r),[n,r])}function da(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ua(t,e,n){da(t,e),e.set(t,n)}function Kn(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function ii(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function oi(t){let e=c.useRef({isFocused:!1,observer:null});return R(()=>{const n=e.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),c.useCallback(n=>{let r=I(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r,o=l=>{if(e.current.isFocused=!1,i.disabled){let s=Kn(l);t==null||t(s)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var l;(l=e.current.observer)===null||l===void 0||l.disconnect();let s=i===ie()?null:ie();i.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[t])}let Ft=!1;function li(t){for(;t&&!Gr(t);)t=t.parentElement;let e=ae(t),n=e.document.activeElement;if(!n||n===t)return;Ft=!0;let r=!1,i=u=>{(I(u)===n||r)&&u.stopImmediatePropagation()},o=u=>{(I(u)===n||r)&&(u.stopImmediatePropagation(),!t&&!r&&(r=!0,Ne(n),a()))},l=u=>{(I(u)===t||r)&&u.stopImmediatePropagation()},s=u=>{(I(u)===t||r)&&(u.stopImmediatePropagation(),r||(r=!0,Ne(n),a()))};e.addEventListener("blur",i,!0),e.addEventListener("focusout",o,!0),e.addEventListener("focusin",s,!0),e.addEventListener("focus",l,!0);let a=()=>{cancelAnimationFrame(d),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",o,!0),e.removeEventListener("focusin",s,!0),e.removeEventListener("focus",l,!0),Ft=!1,r=!1},d=requestAnimationFrame(a);return a}let nt="default",Mn="",At=new WeakMap;function si(t){if(ze()){if(nt==="default"){const e=Z(t);Mn=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}nt="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";At.set(t,t.style[e]),t.style[e]="none"}}function Ln(t){if(ze()){if(nt!=="disabled")return;nt="restoring",setTimeout(()=>{Ar(()=>{if(nt==="restoring"){const e=Z(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Mn||""),Mn="",nt="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&At.has(t)){let e=At.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),At.delete(t)}}const Fn=c.createContext({register:()=>{}});Fn.displayName="PressResponderContext";function fa(t,e){return e.get?e.get.call(t):e.value}function ai(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function pa(t,e){var n=ai(t,e,"get");return fa(t,n)}function ha(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}function ci(t,e,n){var r=ai(t,e,"set");return ha(t,r,n),n}function va(t){let e=c.useContext(Fn);if(e){let{register:n,ref:r,...i}=e;t=q(i,t),n()}return Br(e,t.ref),t}var Ot=new WeakMap;class Bt{continuePropagation(){ci(this,Ot,!1)}get shouldStopPropagation(){return pa(this,Ot)}constructor(e,n,r,i){ua(this,Ot,{writable:!0,value:void 0}),ci(this,Ot,!0);var o;let l=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const s=l==null?void 0:l.getBoundingClientRect();let a,d=0,u,p=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,p=r.clientY),s&&(u!=null&&p!=null?(a=u-s.left,d=p-s.top):(a=s.width/2,d=s.height/2)),this.type=e,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=a,this.y=d,this.key=r.key}}const di=Symbol("linkClicked"),ui="react-aria-pressable-style",fi="data-react-aria-pressable";function rt(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:l,isDisabled:s,isPressed:a,preventFocusOnPress:d,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:p,ref:v,...m}=va(t),[g,b]=c.useState(!1),y=c.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:x,removeAllGlobalListeners:E,removeGlobalListener:C}=_t(),P=c.useCallback((f,D)=>{let w=y.current;if(s||w.didFirePressStart)return!1;let T=!0;if(w.isTriggeringEvent=!0,r){let _=new Bt("pressstart",D,f);r(_),T=_.shouldStopPropagation}return n&&n(!0),w.isTriggeringEvent=!1,w.didFirePressStart=!0,b(!0),T},[s,r,n]),$=c.useCallback((f,D,w=!0)=>{let T=y.current;if(!T.didFirePressStart)return!1;T.didFirePressStart=!1,T.isTriggeringEvent=!0;let _=!0;if(i){let S=new Bt("pressend",D,f);i(S),_=S.shouldStopPropagation}if(n&&n(!1),b(!1),e&&w&&!s){let S=new Bt("press",D,f);e(S),_&&(_=S.shouldStopPropagation)}return T.isTriggeringEvent=!1,_},[s,i,n,e]),z=ge($),F=c.useCallback((f,D)=>{let w=y.current;if(s)return!1;if(o){w.isTriggeringEvent=!0;let T=new Bt("pressup",D,f);return o(T),w.isTriggeringEvent=!1,T.shouldStopPropagation}return!0},[s,o]),k=ge(F),L=c.useCallback(f=>{let D=y.current;if(D.isPressed&&D.target){D.didFirePressStart&&D.pointerType!=null&&$(He(D.target,f),D.pointerType,!1),D.isPressed=!1,Q(null),D.isOverTarget=!1,D.activePointerId=null,D.pointerType=null,E(),p||Ln(D.target);for(let w of D.disposables)w();D.disposables=[]}},[p,E,$]),V=ge(L),ee=c.useCallback(f=>{u&&L(f)},[u,L]),ne=c.useCallback(f=>{s||l==null||l(f)},[s,l]),Y=c.useCallback((f,D)=>{if(!s&&l){let w=new MouseEvent("click",f);ii(w,D),l(Kn(w))}},[s,l]),N=ge(Y),[O,G]=c.useState(!1);R(()=>{let f=y.current;if(O){let D=S=>{var U;if(f.isPressed&&f.target&&On(S,f.target)){var se;vi(I(S),S.key)&&S.preventDefault();let J=I(S),ue=H(f.target,J);z(He(f.target,S),"keyboard",ue),ue&&N(S,f.target),E(),S.key!=="Enter"&&An(f.target)&&H(f.target,J)&&!S[di]&&(S[di]=!0,De(f.target,S,!1)),f.isPressed=!1,G(!1),(se=f.metaKeyEvents)===null||se===void 0||se.delete(S.key)}else if(S.key==="Meta"&&(!((U=f.metaKeyEvents)===null||U===void 0)&&U.size)){var B;let J=f.metaKeyEvents;f.metaKeyEvents=void 0;for(let ue of J.values())(B=f.target)===null||B===void 0||B.dispatchEvent(new KeyboardEvent("keyup",ue))}},w=f.target,_=ct(S=>{w&&On(S,w)&&!S.repeat&&H(w,I(S))&&f.target&&k(He(f.target,S),"keyboard")},D);return x(Z(f.target),"keyup",_,!0),()=>{C(Z(f.target),"keyup",_,!0)}}},[O,x,E,C]);let[X,Q]=c.useState(null);R(()=>{let f=y.current;if(X==="pointer"){let D=T=>{if(T.pointerId===f.activePointerId&&f.isPressed&&T.button===0&&f.target){if(H(f.target,I(T))&&f.pointerType!=null){let _=!1,S=setTimeout(()=>{f.isPressed&&f.target instanceof HTMLElement&&(_?V(T):(Ne(f.target),f.target.click()))},80);T.currentTarget&&x(T.currentTarget,"click",()=>_=!0,!0),f.disposables.push(()=>clearTimeout(S))}else V(T);f.isOverTarget=!1}},w=T=>{V(T)};return x(Z(f.target),"pointerup",D,!1),x(Z(f.target),"pointercancel",w,!1),()=>{C(Z(f.target),"pointerup",D,!1),C(Z(f.target),"pointercancel",w,!1)}}else if(X==="mouse"&&process.env.NODE_ENV==="test"){let D=w=>{if(w.button===0){if(f.ignoreEmulatedMouseEvents){f.ignoreEmulatedMouseEvents=!1;return}f.target&&H(f.target,w.target)&&f.pointerType!=null||V(w),f.isOverTarget=!1}};return x(Z(f.target),"mouseup",D,!1),()=>{C(Z(f.target),"mouseup",D,!1)}}else if(X==="touch"&&process.env.NODE_ENV==="test"){let D=w=>{f.isPressed&&H(I(w),f.target)&&V({currentTarget:f.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};return x(ae(f.target),"scroll",D,!0),()=>{C(ae(f.target),"scroll",D,!0)}}},[X,x,C]);let re=c.useMemo(()=>{let f=y.current,D={onKeyDown(w){if(On(w.nativeEvent,w.currentTarget)&&H(w.currentTarget,I(w))){var T;vi(I(w),w.key)&&w.preventDefault();let _=!0;!f.isPressed&&!w.repeat&&(f.target=w.currentTarget,f.isPressed=!0,G(!0),f.pointerType="keyboard",_=P(w,"keyboard")),_&&w.stopPropagation(),w.metaKey&&Ve()&&((T=f.metaKeyEvents)===null||T===void 0||T.set(w.key,w.nativeEvent))}else w.key==="Meta"&&(f.metaKeyEvents=new Map)},onClick(w){if(!(w&&!H(w.currentTarget,I(w)))&&w&&w.button===0&&!f.isTriggeringEvent&&!De.isOpening){let T=!0;if(s&&w.preventDefault(),!f.ignoreEmulatedMouseEvents&&!f.isPressed&&(f.pointerType==="virtual"||kn(w.nativeEvent))){let _=P(w,"virtual"),S=F(w,"virtual"),U=$(w,"virtual");ne(w),T=_&&S&&U}else if(f.isPressed&&f.pointerType!=="keyboard"){let _=f.pointerType||w.nativeEvent.pointerType||"virtual",S=F(He(w.currentTarget,w),_),U=$(He(w.currentTarget,w),_,!0);T=S&&U,f.isOverTarget=!1,ne(w),L(w)}f.ignoreEmulatedMouseEvents=!1,T&&w.stopPropagation()}}};return typeof PointerEvent<"u"?(D.onPointerDown=w=>{if(w.button!==0||!H(w.currentTarget,I(w)))return;if(Bs(w.nativeEvent)){f.pointerType="virtual";return}f.pointerType=w.pointerType;let T=!0;if(!f.isPressed){f.isPressed=!0,Q("pointer"),f.isOverTarget=!0,f.activePointerId=w.pointerId,f.target=w.currentTarget,p||si(f.target),T=P(w,f.pointerType);let _=I(w);"releasePointerCapture"in _&&("hasPointerCapture"in _?_.hasPointerCapture(w.pointerId)&&_.releasePointerCapture(w.pointerId):_.releasePointerCapture(w.pointerId))}T&&w.stopPropagation()},D.onMouseDown=w=>{if(H(w.currentTarget,I(w))&&w.button===0){if(d){let T=li(w.target);T&&f.disposables.push(T)}w.stopPropagation()}},D.onPointerUp=w=>{!H(w.currentTarget,I(w))||f.pointerType==="virtual"||w.button===0&&!f.isPressed&&F(w,f.pointerType||w.pointerType)},D.onPointerEnter=w=>{w.pointerId===f.activePointerId&&f.target&&!f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!0,P(He(f.target,w),f.pointerType))},D.onPointerLeave=w=>{w.pointerId===f.activePointerId&&f.target&&f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!1,$(He(f.target,w),f.pointerType,!1),ee(w))},D.onDragStart=w=>{H(w.currentTarget,I(w))&&L(w)}):process.env.NODE_ENV==="test"&&(D.onMouseDown=w=>{if(w.button!==0||!H(w.currentTarget,I(w)))return;if(f.ignoreEmulatedMouseEvents){w.stopPropagation();return}if(f.isPressed=!0,Q("mouse"),f.isOverTarget=!0,f.target=w.currentTarget,f.pointerType=kn(w.nativeEvent)?"virtual":"mouse",st.flushSync(()=>P(w,f.pointerType))&&w.stopPropagation(),d){let _=li(w.target);_&&f.disposables.push(_)}},D.onMouseEnter=w=>{if(!H(w.currentTarget,I(w)))return;let T=!0;f.isPressed&&!f.ignoreEmulatedMouseEvents&&f.pointerType!=null&&(f.isOverTarget=!0,T=P(w,f.pointerType)),T&&w.stopPropagation()},D.onMouseLeave=w=>{if(!H(w.currentTarget,I(w)))return;let T=!0;f.isPressed&&!f.ignoreEmulatedMouseEvents&&f.pointerType!=null&&(f.isOverTarget=!1,T=$(w,f.pointerType,!1),ee(w)),T&&w.stopPropagation()},D.onMouseUp=w=>{H(w.currentTarget,I(w))&&!f.ignoreEmulatedMouseEvents&&w.button===0&&!f.isPressed&&F(w,f.pointerType||"mouse")},D.onTouchStart=w=>{if(!H(w.currentTarget,I(w)))return;let T=ma(w.nativeEvent);if(!T)return;f.activePointerId=T.identifier,f.ignoreEmulatedMouseEvents=!0,f.isOverTarget=!0,f.isPressed=!0,Q("touch"),f.target=w.currentTarget,f.pointerType="touch",p||si(f.target),P(Me(f.target,w),f.pointerType)&&w.stopPropagation()},D.onTouchMove=w=>{if(!H(w.currentTarget,I(w)))return;if(!f.isPressed){w.stopPropagation();return}let T=pi(w.nativeEvent,f.activePointerId),_=!0;T&&hi(T,w.currentTarget)?!f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!0,_=P(Me(f.target,w),f.pointerType)):f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!1,_=$(Me(f.target,w),f.pointerType,!1),ee(Me(f.target,w))),_&&w.stopPropagation()},D.onTouchEnd=w=>{if(!H(w.currentTarget,I(w)))return;if(!f.isPressed){w.stopPropagation();return}let T=pi(w.nativeEvent,f.activePointerId),_=!0;T&&hi(T,w.currentTarget)&&f.pointerType!=null?(F(Me(f.target,w),f.pointerType),_=$(Me(f.target,w),f.pointerType),Y(w.nativeEvent,f.target)):f.isOverTarget&&f.pointerType!=null&&(_=$(Me(f.target,w),f.pointerType,!1)),_&&w.stopPropagation(),f.isPressed=!1,Q(null),f.activePointerId=null,f.isOverTarget=!1,f.ignoreEmulatedMouseEvents=!0,f.target&&!p&&Ln(f.target),E()},D.onTouchCancel=w=>{H(w.currentTarget,I(w))&&(w.stopPropagation(),f.isPressed&&L(Me(f.target,w)))},D.onDragStart=w=>{H(w.currentTarget,I(w))&&L(w)}),D},[s,d,E,p,L,ee,$,P,F,ne,Y]);return c.useEffect(()=>{if(!v||process.env.NODE_ENV==="test")return;const f=Z(v.current);if(!f||!f.head||f.getElementById(ui))return;const D=f.createElement("style");D.id=ui,D.textContent=`
2
2
  @layer {
3
- [${Ii}] {
3
+ [${fi}] {
4
4
  touch-action: pan-x pan-y pinch-zoom;
5
5
  }
6
6
  }
7
- `.trim(),f.head.prepend(D)},[v]),c.useEffect(()=>{let f=y.current;return()=>{var D;p||On((D=f.target)!==null&&D!==void 0?D:void 0);for(let w of f.disposables)w();f.disposables=[]}},[p]),{isPressed:a||g,pressProps:q(m,re,{[Ii]:!0})}}function Vn(t){return t.tagName==="A"&&t.hasAttribute("href")}function zn(t,e){const{key:n,code:r}=t,i=e,l=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof ae(i).HTMLInputElement&&!Li(i,n)||i instanceof ae(i).HTMLTextAreaElement||i.isContentEditable)&&!((l==="link"||!l&&Vn(i))&&n!=="Enter")}function ic(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function _i(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===e)return i}return null}function Ae(t,e){let n=0,r=0;return e.targetTouches&&e.targetTouches.length===1&&(n=e.targetTouches[0].clientX,r=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function We(t,e){let n=e.clientX,r=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r,key:e.key}}function lc(t){let e=0,n=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?n=t.height/2:t.radiusY!==void 0&&(n=t.radiusY),{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function oc(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Ki(t,e){let n=e.getBoundingClientRect(),r=lc(t);return oc(n,r)}function sc(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!Vn(t)}function Mi(t,e){return t instanceof HTMLInputElement?!Li(t,e):sc(t)}const ac=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Li(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":ac.has(t.type)}let je=null;const Hn=new Set;let mt=new Map,Ge=!1,Un=!1;const cc={Tab:!0,Escape:!0};function Ht(t,e){for(let n of Hn)n(t,e)}function dc(t){return!(t.metaKey||!He()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Ut(t){Ge=!0,!Se.isOpening&&dc(t)&&(je="keyboard",Ht("keyboard",t))}function he(t){je="pointer","pointerType"in t&&t.pointerType,(t.type==="mousedown"||t.type==="pointerdown")&&(Ge=!0,Ht("pointer",t))}function Fi(t){!Se.isOpening&&Nn(t)&&(Ge=!0,je="virtual")}function Ai(t){_(t)===window||_(t)===document||Ot||!t.isTrusted||(!Ge&&!Un&&(je="virtual",Ht("virtual",t)),Ge=!1,Un=!1)}function Oi(){Ot||(Ge=!1,Un=!0)}function Wn(t){if(typeof window>"u"||typeof document>"u"||mt.get(ae(t)))return;const e=ae(t),n=Z(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Ge=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ut,!0),n.addEventListener("keyup",Ut,!0),n.addEventListener("click",Fi,!0),e.addEventListener("focus",Ai,!0),e.addEventListener("blur",Oi,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",he,!0),n.addEventListener("pointermove",he,!0),n.addEventListener("pointerup",he,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",he,!0),n.addEventListener("mousemove",he,!0),n.addEventListener("mouseup",he,!0)),e.addEventListener("beforeunload",()=>{Bi(t)},{once:!0}),mt.set(e,{focus:r})}const Bi=(t,e)=>{const n=ae(t),r=Z(t);e&&r.removeEventListener("DOMContentLoaded",e),mt.has(n)&&(n.HTMLElement.prototype.focus=mt.get(n).focus,r.removeEventListener("keydown",Ut,!0),r.removeEventListener("keyup",Ut,!0),r.removeEventListener("click",Fi,!0),n.removeEventListener("focus",Ai,!0),n.removeEventListener("blur",Oi,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",he,!0),r.removeEventListener("pointermove",he,!0),r.removeEventListener("pointerup",he,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",he,!0),r.removeEventListener("mousemove",he,!0),r.removeEventListener("mouseup",he,!0)),mt.delete(n))};function uc(t){const e=Z(t);let n;return e.readyState!=="loading"?Wn(t):(n=()=>{Wn(t)},e.addEventListener("DOMContentLoaded",n)),()=>Bi(t,n)}typeof document<"u"&&uc();function jn(){return je!=="pointer"}function Wt(){return je}function fc(t){je=t,Ht(t,null)}const pc=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function hc(t,e,n){let r=Z(n?_(n):void 0),i=n?_(n):void 0;const l=typeof window<"u"?ae(i).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?ae(i).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?ae(i).HTMLElement:HTMLElement,a=typeof window<"u"?ae(i).KeyboardEvent:KeyboardEvent;let d=ie(r);return t=t||d instanceof l&&!pc.has(d.type)||d instanceof o||d instanceof s&&d.isContentEditable,!(t&&e==="keyboard"&&n instanceof a&&!cc[n.key])}function vc(t,e,n){Wn(),c.useEffect(()=>{if((n==null?void 0:n.enabled)===!1)return;let r=(i,l)=>{hc(!!(n!=null&&n.isTextInput),i,l)&&t(jn())};return Hn.add(r),()=>{Hn.delete(r)}},e)}function qe(t){if(!t.isConnected)return;const e=Z(t);if(Wt()==="virtual"){let n=ie(e);ni(()=>{const r=ie(e);(r===n||r===e.body)&&t.isConnected&&$e(t)})}else $e(t)}function Vi(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const l=c.useCallback(a=>{if(_(a)===a.currentTarget)return r&&r(a),i&&i(!1),!0},[r,i]),o=Pi(l),s=c.useCallback(a=>{let d=_(a);const u=Z(d),p=u?ie(u):ie();d===a.currentTarget&&d===p&&(n&&n(a),i&&i(!0),o(a))},[i,n,o]);return{focusProps:{onFocus:!e&&(n||i||r)?s:void 0,onBlur:!e&&(r||i)?l:void 0}}}function zi(t){if(!t)return;let e=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){e&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};t(r),e&&n.stopPropagation()}}function mc(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:zi(t.onKeyDown),onKeyUp:zi(t.onKeyUp)}}}let Gn=c.createContext(null);function bc(t){let e=c.useContext(Gn)||{};ii(e,t);let{ref:n,...r}=e;return r}function jt(t,e){let{focusProps:n}=Vi(t),{keyboardProps:r}=mc(t),i=q(n,r),l=bc(e),o=t.isDisabled?{}:l,s=c.useRef(t.autoFocus);c.useEffect(()=>{s.current&&e.current&&qe(e.current),s.current=!1},[e]);let a=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(a=void 0),{focusableProps:q({...i,tabIndex:a},o)}}function gc({children:t}){let e=c.useMemo(()=>({register:()=>{}}),[]);return c.createElement(Bn.Provider,{value:e},t)}function qn(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,l=c.useRef({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=_t(),a=c.useCallback(p=>{H(p.currentTarget,_(p))&&l.current.isFocusWithin&&!H(p.currentTarget,p.relatedTarget)&&(l.current.isFocusWithin=!1,s(),n&&n(p),i&&i(!1))},[n,i,l,s]),d=Pi(a),u=c.useCallback(p=>{if(!H(p.currentTarget,_(p)))return;let v=_(p);const m=Z(v),g=ie(m);if(!l.current.isFocusWithin&&g===v){r&&r(p),i&&i(!0),l.current.isFocusWithin=!0,d(p);let b=p.currentTarget;o(m,"focus",y=>{let x=_(y);if(l.current.isFocusWithin&&!H(b,x)){let E=new m.defaultView.FocusEvent("blur",{relatedTarget:x});Ci(E,b);let C=Fn(E);a(C)}},{capture:!0})}},[r,i,d,o,a]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:a}}}let Gt=!1,qt=0;function Yn(){Gt=!0,setTimeout(()=>{Gt=!1},50)}function Hi(t){t.pointerType==="touch"&&Yn()}function yc(){if(!(typeof document>"u"))return qt===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Hi):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Yn)),qt++,()=>{qt--,!(qt>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Hi):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Yn))}}function bt(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[l,o]=c.useState(!1),s=c.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;c.useEffect(yc,[]);let{addGlobalListener:a,removeAllGlobalListeners:d}=_t(),{hoverProps:u,triggerHoverEnd:p}=c.useMemo(()=>{let v=(b,y)=>{if(s.pointerType=y,i||y==="touch"||s.isHovered||!H(b.currentTarget,_(b)))return;s.isHovered=!0;let x=b.currentTarget;s.target=x,a(Z(_(b)),"pointerover",E=>{s.isHovered&&s.target&&!H(s.target,_(E))&&m(E,E.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:x,pointerType:y}),n&&n(!0),o(!0)},m=(b,y)=>{let x=s.target;s.pointerType="",s.target=null,!(y==="touch"||!s.isHovered||!x)&&(s.isHovered=!1,d(),r&&r({type:"hoverend",target:x,pointerType:y}),n&&n(!1),o(!1))},g={};return typeof PointerEvent<"u"?(g.onPointerEnter=b=>{Gt&&b.pointerType==="mouse"||v(b,b.pointerType)},g.onPointerLeave=b=>{!i&&H(b.currentTarget,_(b))&&m(b,b.pointerType)}):process.env.NODE_ENV==="test"&&(g.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},g.onMouseEnter=b=>{!s.ignoreEmulatedMouseEvents&&!Gt&&v(b,"mouse"),s.ignoreEmulatedMouseEvents=!1},g.onMouseLeave=b=>{!i&&H(b.currentTarget,_(b))&&m(b,"mouse")}),{hoverProps:g,triggerHoverEnd:m}},[e,n,r,i,s,a,d]);return c.useEffect(()=>{i&&p({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:u,isHovered:l}}function xc(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,l=c.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=be(a=>{n&&Yt(a,e)&&(i&&i(a),l.current.isPointerDown=!0)}),s=be(a=>{n&&n(a)});c.useEffect(()=>{let a=l.current;if(r)return;const d=e.current,u=Z(d);if(typeof PointerEvent<"u"){let p=v=>{a.isPointerDown&&Yt(v,e)&&s(v),a.isPointerDown=!1};return u.addEventListener("pointerdown",o,!0),u.addEventListener("click",p,!0),()=>{u.removeEventListener("pointerdown",o,!0),u.removeEventListener("click",p,!0)}}else if(process.env.NODE_ENV==="test"){let p=m=>{a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&Yt(m,e)&&s(m),a.isPointerDown=!1},v=m=>{a.ignoreEmulatedMouseEvents=!0,a.isPointerDown&&Yt(m,e)&&s(m),a.isPointerDown=!1};return u.addEventListener("mousedown",o,!0),u.addEventListener("mouseup",p,!0),u.addEventListener("touchstart",o,!0),u.addEventListener("touchend",v,!0),()=>{u.removeEventListener("mousedown",o,!0),u.removeEventListener("mouseup",p,!0),u.removeEventListener("touchstart",o,!0),u.removeEventListener("touchend",v,!0)}}},[e,r])}function Yt(t,e){if(t.button>0)return!1;let n=_(t);if(n){const r=n.ownerDocument;if(!r||!H(r.documentElement,n)||n.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const wc=500;function Ec(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:l=wc,accessibilityDescription:o}=t;const s=c.useRef(void 0);let{addGlobalListener:a,removeGlobalListener:d}=_t(),{pressProps:u}=rt({isDisabled:e,onPressStart(v){if(v.continuePropagation(),(v.pointerType==="mouse"||v.pointerType==="touch")&&(n&&n({...v,type:"longpressstart"}),s.current=setTimeout(()=>{v.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Z(v.target).activeElement!==v.target&&$e(v.target),i&&i({...v,type:"longpress"}),s.current=void 0},l),v.pointerType==="touch")){let m=g=>{g.preventDefault()};a(v.target,"contextmenu",m,{once:!0}),a(window,"pointerup",()=>{setTimeout(()=>{d(v.target,"contextmenu",m)},30)},{once:!0})}},onPressEnd(v){s.current&&clearTimeout(s.current),r&&(v.pointerType==="mouse"||v.pointerType==="touch")&&r({...v,type:"longpressend"})}}),p=Ta(i&&!e?o:void 0);return{longPressProps:q(u,p)}}const Ui=c.createContext(null),Xn="react-aria-focus-scope-restore";let te=null;function Cc(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,l=c.useRef(null),o=c.useRef(null),s=c.useRef([]),{parentNode:a}=c.useContext(Ui)||{},d=c.useMemo(()=>new Qn({scopeRef:s}),[s]);R(()=>{let v=a||le.root;if(le.getTreeNode(v.scopeRef)&&te&&!Xt(te,v.scopeRef)){let m=le.getTreeNode(te);m&&(v=m)}v.addChild(d),le.addNode(d)},[d,a]),R(()=>{let v=le.getTreeNode(s);v&&(v.contain=!!n)},[n]),R(()=>{var v;let m=(v=l.current)===null||v===void 0?void 0:v.nextSibling,g=[],b=y=>y.stopPropagation();for(;m&&m!==o.current;)g.push(m),m.addEventListener(Xn,b),m=m.nextSibling;return s.current=g,()=>{for(let y of g)y.removeEventListener(Xn,b)}},[e]),Sc(s,r,n),Nc(s,n),Ic(s,r,n),Dc(s,i),c.useEffect(()=>{const v=ie(Z(s.current?s.current[0]:void 0));let m=null;if(ve(v,s.current)){for(let g of le.traverse())g.scopeRef&&ve(v,g.scopeRef.current)&&(m=g);m===le.getTreeNode(s)&&(te=m.scopeRef)}},[s]),R(()=>()=>{var v,m,g;let b=(g=(m=le.getTreeNode(s))===null||m===void 0||(v=m.parent)===null||v===void 0?void 0:v.scopeRef)!==null&&g!==void 0?g:null;(s===te||Xt(s,te))&&(!b||le.getTreeNode(b))&&(te=b),le.removeTreeNode(s)},[s]);let u=c.useMemo(()=>Pc(s),[]),p=c.useMemo(()=>({focusManager:u,parentNode:d}),[d,u]);return c.createElement(Ui.Provider,{value:p},c.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:l}),e,c.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function Pc(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:l,accept:o}=e;var s;let a=r||ie(Z((s=n[0])!==null&&s!==void 0?s:void 0)),d=n[0].previousElementSibling,u=Ye(n),p=Ee(u,{tabbable:i,accept:o},n);p.currentNode=ve(a,n)?a:d;let v=p.nextNode();return!v&&l&&(p.currentNode=d,v=p.nextNode()),v&&Ie(v,!0),v},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:l,accept:o}=e;var s;let a=r||ie(Z((s=n[0])!==null&&s!==void 0?s:void 0)),d=n[n.length-1].nextElementSibling,u=Ye(n),p=Ee(u,{tabbable:i,accept:o},n);p.currentNode=ve(a,n)?a:d;let v=p.previousNode();return!v&&l&&(p.currentNode=d,v=p.previousNode()),v&&Ie(v,!0),v},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,l=Ye(n),o=Ee(l,{tabbable:r,accept:i},n);o.currentNode=n[0].previousElementSibling;let s=o.nextNode();return s&&Ie(s,!0),s},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,l=Ye(n),o=Ee(l,{tabbable:r,accept:i},n);o.currentNode=n[n.length-1].nextElementSibling;let s=o.previousNode();return s&&Ie(s,!0),s}}}function Ye(t){return t[0].parentElement}function gt(t){let e=le.getTreeNode(te);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function kc(t){if(!t.form)return Array.from(Z(t).querySelectorAll(`input[type="radio"][name="${CSS.escape(t.name)}"]`)).filter(r=>!r.form);const e=t.form.elements.namedItem(t.name);let n=ae(t);return e instanceof n.RadioNodeList?Array.from(e).filter(r=>r instanceof n.HTMLInputElement):e instanceof n.HTMLInputElement?[e]:[]}function Tc(t){if(t.checked)return!0;const e=kc(t);return e.length>0&&!e.some(n=>n.checked)}function Nc(t,e){let n=c.useRef(void 0),r=c.useRef(void 0);R(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const l=Z(i?i[0]:void 0);let o=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!gt(t)||d.isComposing)return;let u=ie(l),p=t.current;if(!p||!ve(u,p))return;let v=Ye(p),m=Ee(v,{tabbable:!0},p);if(!u)return;m.currentNode=u;let g=d.shiftKey?m.previousNode():m.nextNode();g||(m.currentNode=d.shiftKey?p[p.length-1].nextElementSibling:p[0].previousElementSibling,g=d.shiftKey?m.previousNode():m.nextNode()),d.preventDefault(),g&&Ie(g,!0)},s=d=>{(!te||Xt(te,t))&&ve(_(d),t.current)?(te=t,n.current=_(d)):gt(t)&&!Oe(_(d),t)?n.current?n.current.focus():te&&te.current&&Zn(te.current):gt(t)&&(n.current=_(d))},a=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let u=Wt(),p=(u==="virtual"||u===null)&&xn()&&yn(),v=ie(l);if(!p&&v&&gt(t)&&!Oe(v,t)){te=t;let g=_(d);if(g&&g.isConnected){var m;n.current=g,(m=n.current)===null||m===void 0||m.focus()}else te.current&&Zn(te.current)}})};return l.addEventListener("keydown",o,!1),l.addEventListener("focusin",s,!1),i==null||i.forEach(d=>d.addEventListener("focusin",s,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",a,!1)),()=>{l.removeEventListener("keydown",o,!1),l.removeEventListener("focusin",s,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",s,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",a,!1))}},[t,e]),R(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Wi(t){return Oe(t)}function ve(t,e){return!t||!e?!1:e.some(n=>H(n,t))}function Oe(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of le.traverse(le.getTreeNode(e)))if(n&&ve(t,n.current))return!0;return!1}function $c(t){return Oe(t,te)}function Xt(t,e){var n;let r=(n=le.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function Ie(t,e=!1){if(t!=null&&!e)try{qe(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function ji(t,e=!0){let n=t[0].previousElementSibling,r=Ye(t),i=Ee(r,{tabbable:e},t);i.currentNode=n;let l=i.nextNode();return e&&!l&&(r=Ye(t),i=Ee(r,{tabbable:!1},t),i.currentNode=n,l=i.nextNode()),l}function Zn(t,e=!0){Ie(ji(t,e))}function Dc(t,e){const n=c.useRef(e);c.useEffect(()=>{if(n.current){te=t;const r=Z(t.current?t.current[0]:void 0);!ve(ie(r),te.current)&&t.current&&Zn(t.current)}n.current=!1},[t])}function Sc(t,e,n){R(()=>{if(e||n)return;let r=t.current;const i=Z(r?r[0]:void 0);let l=o=>{let s=_(o);ve(s,t.current)?te=t:Wi(s)||(te=null)};return i.addEventListener("focusin",l,!1),r==null||r.forEach(o=>o.addEventListener("focusin",l,!1)),()=>{i.removeEventListener("focusin",l,!1),r==null||r.forEach(o=>o.removeEventListener("focusin",l,!1))}},[t,e,n])}function Gi(t){let e=le.getTreeNode(te);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function Ic(t,e,n){const r=c.useRef(typeof document<"u"?ie(Z(t.current?t.current[0]:void 0)):null);R(()=>{let i=t.current;const l=Z(i?i[0]:void 0);if(!e||n)return;let o=()=>{(!te||Xt(te,t))&&ve(ie(l),t.current)&&(te=t)};return l.addEventListener("focusin",o,!1),i==null||i.forEach(s=>s.addEventListener("focusin",o,!1)),()=>{l.removeEventListener("focusin",o,!1),i==null||i.forEach(s=>s.removeEventListener("focusin",o,!1))}},[t,n]),R(()=>{const i=Z(t.current?t.current[0]:void 0);if(!e)return;let l=o=>{if(o.key!=="Tab"||o.altKey||o.ctrlKey||o.metaKey||!gt(t)||o.isComposing)return;let s=i.activeElement;if(!Oe(s,t)||!Gi(t))return;let a=le.getTreeNode(t);if(!a)return;let d=a.nodeToRestore,u=Ee(i.body,{tabbable:!0});u.currentNode=s;let p=o.shiftKey?u.previousNode():u.nextNode();if((!d||!d.isConnected||d===i.body)&&(d=void 0,a.nodeToRestore=void 0),(!p||!Oe(p,t))&&d){u.currentNode=d;do p=o.shiftKey?u.previousNode():u.nextNode();while(Oe(p,t));o.preventDefault(),o.stopPropagation(),p?Ie(p,!0):Wi(d)?Ie(d,!0):s.blur()}};return n||i.addEventListener("keydown",l,!0),()=>{n||i.removeEventListener("keydown",l,!0)}},[t,e,n]),R(()=>{const i=Z(t.current?t.current[0]:void 0);if(!e)return;let l=le.getTreeNode(t);if(l){var o;return l.nodeToRestore=(o=r.current)!==null&&o!==void 0?o:void 0,()=>{let s=le.getTreeNode(t);if(!s)return;let a=s.nodeToRestore,d=ie(i);if(e&&a&&(d&&Oe(d,t)||d===i.body&&Gi(t))){let u=le.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let p=u.getTreeNode(t);for(;p;){if(p.nodeToRestore&&p.nodeToRestore.isConnected){qi(p.nodeToRestore);return}p=p.parent}for(p=u.getTreeNode(t);p;){if(p.scopeRef&&p.scopeRef.current&&le.getTreeNode(p.scopeRef)){let v=ji(p.scopeRef.current,!0);qi(v);return}p=p.parent}}})}}}},[t,e])}function qi(t){t.dispatchEvent(new CustomEvent(Xn,{bubbles:!0,cancelable:!0}))&&Ie(t)}function Ee(t,e,n){let r=e!=null&&e.tabbable?fi:ui,i=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,l=Z(i),o=Zr(l,t||l,NodeFilter.SHOW_ELEMENT,{acceptNode(s){return H(e==null?void 0:e.from,s)||e!=null&&e.tabbable&&s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(!Tc(s)||o.currentNode.tagName==="INPUT"&&o.currentNode.type==="radio"&&o.currentNode.name===s.name)?NodeFilter.FILTER_REJECT:r(s)&&(!n||ve(s,n))&&(!(e!=null&&e.accept)||e.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(o.currentNode=e.from),o}class Jn{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,r){let i=this.fastMap.get(n??null);if(!i)return;let l=new Qn({scopeRef:e});i.addChild(l),l.parent=i,this.fastMap.set(e,l),r&&(l.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let n=this.fastMap.get(e);if(!n)return;let r=n.parent;for(let l of this.traverse())l!==n&&n.nodeToRestore&&l.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ve(l.nodeToRestore,n.scopeRef.current)&&(l.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(l=>r&&r.addChild(l))),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let n of e.children)yield*this.traverse(n)}clone(){var e;let n=new Jn;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(e=i.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Qn({scopeRef:null}),this.fastMap.set(null,this.root)}}class Qn{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let le=new Jn;function Xe(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=c.useRef({isFocused:!1,isFocusVisible:e||jn()}),[l,o]=c.useState(!1),[s,a]=c.useState(()=>i.current.isFocused&&i.current.isFocusVisible),d=c.useCallback(()=>a(i.current.isFocused&&i.current.isFocusVisible),[]),u=c.useCallback(m=>{i.current.isFocused=m,i.current.isFocusVisible=jn(),o(m),d()},[d]);vc(m=>{i.current.isFocusVisible=m,d()},[n,l],{enabled:l,isTextInput:n});let{focusProps:p}=Vi({isDisabled:r,onFocusChange:u}),{focusWithinProps:v}=qn({isDisabled:!r,onFocusWithinChange:u});return{isFocused:l,isFocusVisible:s,focusProps:r?v:p}}function _c(t,e){let n=e==null?void 0:e.isDisabled,[r,i]=c.useState(!1);return R(()=>{if(t!=null&&t.current&&!n){let l=()=>{if(t.current){let s=Ee(t.current,{tabbable:!0});i(!!s.nextNode())}};l();let o=new MutationObserver(l);return o.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{o.disconnect()}}}),n?!1:r}function Yi(t){let e=Mc(Z(t));e!==t&&(e&&Kc(e,t),t&&Xi(t,e))}function Kc(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function Xi(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function Mc(t){let e=ie(t),n=e==null?void 0:e.getAttribute("aria-activedescendant");return n&&t.getElementById(n)||e}const Ce=[];function Lc(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:l=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:s}=t,a=c.useRef(void 0);c.useEffect(()=>{if(i&&!Ce.includes(e))return Ce.push(e),()=>{let b=Ce.indexOf(e);b>=0&&Ce.splice(b,1)}},[i,e]);let d=()=>{Ce[Ce.length-1]===e&&n&&n()},u=b=>{const y=Ce[Ce.length-1];a.current=y,(!s||s(_(b)))&&y===e&&(b.stopPropagation(),b.preventDefault())},p=b=>{(!s||s(_(b)))&&(Ce[Ce.length-1]===e&&(b.stopPropagation(),b.preventDefault()),a.current===e&&d()),a.current=void 0},v=b=>{b.key==="Escape"&&!o&&!b.nativeEvent.isComposing&&(b.stopPropagation(),b.preventDefault(),d())};xc({ref:e,onInteractOutside:l&&i?p:void 0,onInteractOutsideStart:u});let{focusWithinProps:m}=qn({isDisabled:!r,onBlurWithin:b=>{!b.relatedTarget||$c(b.relatedTarget)||(!s||s(b.relatedTarget))&&(n==null||n())}}),g=b=>{_(b)===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:v,...m},underlayProps:{onPointerDown:g}}}const yt=typeof document<"u"&&window.visualViewport;let Zt=0,Rn;function Fc(t={}){let{isDisabled:e}=t;R(()=>{if(!e)return Zt++,Zt===1&&(Ue()?Rn=Oc():Rn=Ac()),()=>{Zt--,Zt===0&&Rn()}},[e])}function Ac(){let t=window.innerWidth-document.documentElement.clientWidth;return dt(t>0&&("scrollbarGutter"in document.documentElement.style?Jt(document.documentElement,"scrollbarGutter","stable"):Jt(document.documentElement,"paddingRight",`${t}px`)),Jt(document.documentElement,"overflow","hidden"))}function Oc(){let t=Jt(document.documentElement,"overflow","hidden"),e,n=!1,r=d=>{let u=_(d);e=ut(u)?u:li(u,!0),n=!1;let p=u.ownerDocument.defaultView.getSelection();p&&!p.isCollapsed&&p.containsNode(u,!0)&&(n=!0),d.composedPath().some(v=>v instanceof HTMLInputElement&&v.type==="range")&&(n=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(n=!0)},i=document.createElement("style");i.textContent=`
7
+ `.trim(),f.head.prepend(D)},[v]),c.useEffect(()=>{let f=y.current;return()=>{var D;p||Ln((D=f.target)!==null&&D!==void 0?D:void 0);for(let w of f.disposables)w();f.disposables=[]}},[p]),{isPressed:a||g,pressProps:q(m,re,{[fi]:!0})}}function An(t){return t.tagName==="A"&&t.hasAttribute("href")}function On(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof ae(i).HTMLInputElement&&!mi(i,n)||i instanceof ae(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&An(i))&&n!=="Enter")}function ma(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function pi(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===e)return i}return null}function Me(t,e){let n=0,r=0;return e.targetTouches&&e.targetTouches.length===1&&(n=e.targetTouches[0].clientX,r=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function He(t,e){let n=e.clientX,r=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r,key:e.key}}function ba(t){let e=0,n=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?n=t.height/2:t.radiusY!==void 0&&(n=t.radiusY),{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function ga(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function hi(t,e){let n=e.getBoundingClientRect(),r=ba(t);return ga(n,r)}function ya(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!An(t)}function vi(t,e){return t instanceof HTMLInputElement?!mi(t,e):ya(t)}const xa=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function mi(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":xa.has(t.type)}let Ue=null;const Bn=new Set;let vt=new Map,We=!1,Vn=!1;const wa={Tab:!0,Escape:!0};function Vt(t,e){for(let n of Bn)n(t,e)}function Ea(t){return!(t.metaKey||!Ve()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function zt(t){We=!0,!De.isOpening&&Ea(t)&&(Ue="keyboard",Vt("keyboard",t))}function he(t){Ue="pointer","pointerType"in t&&t.pointerType,(t.type==="mousedown"||t.type==="pointerdown")&&(We=!0,Vt("pointer",t))}function bi(t){!De.isOpening&&kn(t)&&(We=!0,Ue="virtual")}function gi(t){I(t)===window||I(t)===document||Ft||!t.isTrusted||(!We&&!Vn&&(Ue="virtual",Vt("virtual",t)),We=!1,Vn=!1)}function yi(){Ft||(We=!1,Vn=!0)}function zn(t){if(typeof window>"u"||typeof document>"u"||vt.get(ae(t)))return;const e=ae(t),n=Z(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){We=!0,r.apply(this,arguments)},n.addEventListener("keydown",zt,!0),n.addEventListener("keyup",zt,!0),n.addEventListener("click",bi,!0),e.addEventListener("focus",gi,!0),e.addEventListener("blur",yi,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",he,!0),n.addEventListener("pointermove",he,!0),n.addEventListener("pointerup",he,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",he,!0),n.addEventListener("mousemove",he,!0),n.addEventListener("mouseup",he,!0)),e.addEventListener("beforeunload",()=>{xi(t)},{once:!0}),vt.set(e,{focus:r})}const xi=(t,e)=>{const n=ae(t),r=Z(t);e&&r.removeEventListener("DOMContentLoaded",e),vt.has(n)&&(n.HTMLElement.prototype.focus=vt.get(n).focus,r.removeEventListener("keydown",zt,!0),r.removeEventListener("keyup",zt,!0),r.removeEventListener("click",bi,!0),n.removeEventListener("focus",gi,!0),n.removeEventListener("blur",yi,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",he,!0),r.removeEventListener("pointermove",he,!0),r.removeEventListener("pointerup",he,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",he,!0),r.removeEventListener("mousemove",he,!0),r.removeEventListener("mouseup",he,!0)),vt.delete(n))};function Ca(t){const e=Z(t);let n;return e.readyState!=="loading"?zn(t):(n=()=>{zn(t)},e.addEventListener("DOMContentLoaded",n)),()=>xi(t,n)}typeof document<"u"&&Ca();function Hn(){return Ue!=="pointer"}function Ht(){return Ue}function ka(t){Ue=t,Vt(t,null)}const Pa=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ta(t,e,n){let r=Z(n?I(n):void 0),i=n?I(n):void 0;const o=typeof window<"u"?ae(i).HTMLInputElement:HTMLInputElement,l=typeof window<"u"?ae(i).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?ae(i).HTMLElement:HTMLElement,a=typeof window<"u"?ae(i).KeyboardEvent:KeyboardEvent;let d=ie(r);return t=t||d instanceof o&&!Pa.has(d.type)||d instanceof l||d instanceof s&&d.isContentEditable,!(t&&e==="keyboard"&&n instanceof a&&!wa[n.key])}function Na(t,e,n){zn(),c.useEffect(()=>{if((n==null?void 0:n.enabled)===!1)return;let r=(i,o)=>{Ta(!!(n!=null&&n.isTextInput),i,o)&&t(Hn())};return Bn.add(r),()=>{Bn.delete(r)}},e)}function je(t){if(!t.isConnected)return;const e=Z(t);if(Ht()==="virtual"){let n=ie(e);Ar(()=>{const r=ie(e);(r===n||r===e.body)&&t.isConnected&&Ne(t)})}else Ne(t)}function wi(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=c.useCallback(a=>{if(I(a)===a.currentTarget)return r&&r(a),i&&i(!1),!0},[r,i]),l=oi(o),s=c.useCallback(a=>{let d=I(a);const u=Z(d),p=u?ie(u):ie();d===a.currentTarget&&d===p&&(n&&n(a),i&&i(!0),l(a))},[i,n,l]);return{focusProps:{onFocus:!e&&(n||i||r)?s:void 0,onBlur:!e&&(r||i)?o:void 0}}}function Ei(t){if(!t)return;let e=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){e&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};t(r),e&&n.stopPropagation()}}function $a(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:Ei(t.onKeyDown),onKeyUp:Ei(t.onKeyUp)}}}let Un=c.createContext(null);function Da(t){let e=c.useContext(Un)||{};Br(e,t);let{ref:n,...r}=e;return r}function Ut(t,e){let{focusProps:n}=wi(t),{keyboardProps:r}=$a(t),i=q(n,r),o=Da(e),l=t.isDisabled?{}:o,s=c.useRef(t.autoFocus);c.useEffect(()=>{s.current&&e.current&&je(e.current),s.current=!1},[e]);let a=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(a=void 0),{focusableProps:q({...i,tabIndex:a},l)}}function _a({children:t}){let e=c.useMemo(()=>({register:()=>{}}),[]);return c.createElement(Fn.Provider,{value:e},t)}function Wn(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=c.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:s}=_t(),a=c.useCallback(p=>{H(p.currentTarget,I(p))&&o.current.isFocusWithin&&!H(p.currentTarget,p.relatedTarget)&&(o.current.isFocusWithin=!1,s(),n&&n(p),i&&i(!1))},[n,i,o,s]),d=oi(a),u=c.useCallback(p=>{if(!H(p.currentTarget,I(p)))return;let v=I(p);const m=Z(v),g=ie(m);if(!o.current.isFocusWithin&&g===v){r&&r(p),i&&i(!0),o.current.isFocusWithin=!0,d(p);let b=p.currentTarget;l(m,"focus",y=>{let x=I(y);if(o.current.isFocusWithin&&!H(b,x)){let E=new m.defaultView.FocusEvent("blur",{relatedTarget:x});ii(E,b);let C=Kn(E);a(C)}},{capture:!0})}},[r,i,d,l,a]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:a}}}let Wt=!1,jt=0;function jn(){Wt=!0,setTimeout(()=>{Wt=!1},50)}function Ci(t){t.pointerType==="touch"&&jn()}function Sa(){if(!(typeof document>"u"))return jt===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Ci):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",jn)),jt++,()=>{jt--,!(jt>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Ci):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",jn))}}function mt(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,l]=c.useState(!1),s=c.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;c.useEffect(Sa,[]);let{addGlobalListener:a,removeAllGlobalListeners:d}=_t(),{hoverProps:u,triggerHoverEnd:p}=c.useMemo(()=>{let v=(b,y)=>{if(s.pointerType=y,i||y==="touch"||s.isHovered||!H(b.currentTarget,I(b)))return;s.isHovered=!0;let x=b.currentTarget;s.target=x,a(Z(I(b)),"pointerover",E=>{s.isHovered&&s.target&&!H(s.target,I(E))&&m(E,E.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:x,pointerType:y}),n&&n(!0),l(!0)},m=(b,y)=>{let x=s.target;s.pointerType="",s.target=null,!(y==="touch"||!s.isHovered||!x)&&(s.isHovered=!1,d(),r&&r({type:"hoverend",target:x,pointerType:y}),n&&n(!1),l(!1))},g={};return typeof PointerEvent<"u"?(g.onPointerEnter=b=>{Wt&&b.pointerType==="mouse"||v(b,b.pointerType)},g.onPointerLeave=b=>{!i&&H(b.currentTarget,I(b))&&m(b,b.pointerType)}):process.env.NODE_ENV==="test"&&(g.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},g.onMouseEnter=b=>{!s.ignoreEmulatedMouseEvents&&!Wt&&v(b,"mouse"),s.ignoreEmulatedMouseEvents=!1},g.onMouseLeave=b=>{!i&&H(b.currentTarget,I(b))&&m(b,"mouse")}),{hoverProps:g,triggerHoverEnd:m}},[e,n,r,i,s,a,d]);return c.useEffect(()=>{i&&p({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:u,isHovered:o}}function Ia(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,o=c.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=ge(a=>{n&&Gt(a,e)&&(i&&i(a),o.current.isPointerDown=!0)}),s=ge(a=>{n&&n(a)});c.useEffect(()=>{let a=o.current;if(r)return;const d=e.current,u=Z(d);if(typeof PointerEvent<"u"){let p=v=>{a.isPointerDown&&Gt(v,e)&&s(v),a.isPointerDown=!1};return u.addEventListener("pointerdown",l,!0),u.addEventListener("click",p,!0),()=>{u.removeEventListener("pointerdown",l,!0),u.removeEventListener("click",p,!0)}}else if(process.env.NODE_ENV==="test"){let p=m=>{a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&Gt(m,e)&&s(m),a.isPointerDown=!1},v=m=>{a.ignoreEmulatedMouseEvents=!0,a.isPointerDown&&Gt(m,e)&&s(m),a.isPointerDown=!1};return u.addEventListener("mousedown",l,!0),u.addEventListener("mouseup",p,!0),u.addEventListener("touchstart",l,!0),u.addEventListener("touchend",v,!0),()=>{u.removeEventListener("mousedown",l,!0),u.removeEventListener("mouseup",p,!0),u.removeEventListener("touchstart",l,!0),u.removeEventListener("touchend",v,!0)}}},[e,r])}function Gt(t,e){if(t.button>0)return!1;let n=I(t);if(n){const r=n.ownerDocument;if(!r||!H(r.documentElement,n)||n.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const Ka=500;function Ma(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=Ka,accessibilityDescription:l}=t;const s=c.useRef(void 0);let{addGlobalListener:a,removeGlobalListener:d}=_t(),{pressProps:u}=rt({isDisabled:e,onPressStart(v){if(v.continuePropagation(),(v.pointerType==="mouse"||v.pointerType==="touch")&&(n&&n({...v,type:"longpressstart"}),s.current=setTimeout(()=>{v.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Z(v.target).activeElement!==v.target&&Ne(v.target),i&&i({...v,type:"longpress"}),s.current=void 0},o),v.pointerType==="touch")){let m=g=>{g.preventDefault()};a(v.target,"contextmenu",m,{once:!0}),a(window,"pointerup",()=>{setTimeout(()=>{d(v.target,"contextmenu",m)},30)},{once:!0})}},onPressEnd(v){s.current&&clearTimeout(s.current),r&&(v.pointerType==="mouse"||v.pointerType==="touch")&&r({...v,type:"longpressend"})}}),p=Os(i&&!e?l:void 0);return{longPressProps:q(u,p)}}const ki=c.createContext(null),Gn="react-aria-focus-scope-restore";let te=null;function La(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,o=c.useRef(null),l=c.useRef(null),s=c.useRef([]),{parentNode:a}=c.useContext(ki)||{},d=c.useMemo(()=>new Xn({scopeRef:s}),[s]);R(()=>{let v=a||oe.root;if(oe.getTreeNode(v.scopeRef)&&te&&!qt(te,v.scopeRef)){let m=oe.getTreeNode(te);m&&(v=m)}v.addChild(d),oe.addNode(d)},[d,a]),R(()=>{let v=oe.getTreeNode(s);v&&(v.contain=!!n)},[n]),R(()=>{var v;let m=(v=o.current)===null||v===void 0?void 0:v.nextSibling,g=[],b=y=>y.stopPropagation();for(;m&&m!==l.current;)g.push(m),m.addEventListener(Gn,b),m=m.nextSibling;return s.current=g,()=>{for(let y of g)y.removeEventListener(Gn,b)}},[e]),Ha(s,r,n),Ba(s,n),Ua(s,r,n),za(s,i),c.useEffect(()=>{const v=ie(Z(s.current?s.current[0]:void 0));let m=null;if(ve(v,s.current)){for(let g of oe.traverse())g.scopeRef&&ve(v,g.scopeRef.current)&&(m=g);m===oe.getTreeNode(s)&&(te=m.scopeRef)}},[s]),R(()=>()=>{var v,m,g;let b=(g=(m=oe.getTreeNode(s))===null||m===void 0||(v=m.parent)===null||v===void 0?void 0:v.scopeRef)!==null&&g!==void 0?g:null;(s===te||qt(s,te))&&(!b||oe.getTreeNode(b))&&(te=b),oe.removeTreeNode(s)},[s]);let u=c.useMemo(()=>Fa(s),[]),p=c.useMemo(()=>({focusManager:u,parentNode:d}),[d,u]);return c.createElement(ki.Provider,{value:p},c.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),e,c.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function Fa(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var s;let a=r||ie(Z((s=n[0])!==null&&s!==void 0?s:void 0)),d=n[0].previousElementSibling,u=Ge(n),p=Ee(u,{tabbable:i,accept:l},n);p.currentNode=ve(a,n)?a:d;let v=p.nextNode();return!v&&o&&(p.currentNode=d,v=p.nextNode()),v&&_e(v,!0),v},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var s;let a=r||ie(Z((s=n[0])!==null&&s!==void 0?s:void 0)),d=n[n.length-1].nextElementSibling,u=Ge(n),p=Ee(u,{tabbable:i,accept:l},n);p.currentNode=ve(a,n)?a:d;let v=p.previousNode();return!v&&o&&(p.currentNode=d,v=p.previousNode()),v&&_e(v,!0),v},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ge(n),l=Ee(o,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let s=l.nextNode();return s&&_e(s,!0),s},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ge(n),l=Ee(o,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let s=l.previousNode();return s&&_e(s,!0),s}}}function Ge(t){return t[0].parentElement}function bt(t){let e=oe.getTreeNode(te);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function Aa(t){if(!t.form)return Array.from(Z(t).querySelectorAll(`input[type="radio"][name="${CSS.escape(t.name)}"]`)).filter(r=>!r.form);const e=t.form.elements.namedItem(t.name);let n=ae(t);return e instanceof n.RadioNodeList?Array.from(e).filter(r=>r instanceof n.HTMLInputElement):e instanceof n.HTMLInputElement?[e]:[]}function Oa(t){if(t.checked)return!0;const e=Aa(t);return e.length>0&&!e.some(n=>n.checked)}function Ba(t,e){let n=c.useRef(void 0),r=c.useRef(void 0);R(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=Z(i?i[0]:void 0);let l=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!bt(t)||d.isComposing)return;let u=ie(o),p=t.current;if(!p||!ve(u,p))return;let v=Ge(p),m=Ee(v,{tabbable:!0},p);if(!u)return;m.currentNode=u;let g=d.shiftKey?m.previousNode():m.nextNode();g||(m.currentNode=d.shiftKey?p[p.length-1].nextElementSibling:p[0].previousElementSibling,g=d.shiftKey?m.previousNode():m.nextNode()),d.preventDefault(),g&&_e(g,!0)},s=d=>{(!te||qt(te,t))&&ve(I(d),t.current)?(te=t,n.current=I(d)):bt(t)&&!Le(I(d),t)?n.current?n.current.focus():te&&te.current&&qn(te.current):bt(t)&&(n.current=I(d))},a=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let u=Ht(),p=(u==="virtual"||u===null)&&bn()&&mn(),v=ie(o);if(!p&&v&&bt(t)&&!Le(v,t)){te=t;let g=I(d);if(g&&g.isConnected){var m;n.current=g,(m=n.current)===null||m===void 0||m.focus()}else te.current&&qn(te.current)}})};return o.addEventListener("keydown",l,!1),o.addEventListener("focusin",s,!1),i==null||i.forEach(d=>d.addEventListener("focusin",s,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",a,!1)),()=>{o.removeEventListener("keydown",l,!1),o.removeEventListener("focusin",s,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",s,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",a,!1))}},[t,e]),R(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Pi(t){return Le(t)}function ve(t,e){return!t||!e?!1:e.some(n=>H(n,t))}function Le(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of oe.traverse(oe.getTreeNode(e)))if(n&&ve(t,n.current))return!0;return!1}function Va(t){return Le(t,te)}function qt(t,e){var n;let r=(n=oe.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function _e(t,e=!1){if(t!=null&&!e)try{je(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function Ti(t,e=!0){let n=t[0].previousElementSibling,r=Ge(t),i=Ee(r,{tabbable:e},t);i.currentNode=n;let o=i.nextNode();return e&&!o&&(r=Ge(t),i=Ee(r,{tabbable:!1},t),i.currentNode=n,o=i.nextNode()),o}function qn(t,e=!0){_e(Ti(t,e))}function za(t,e){const n=c.useRef(e);c.useEffect(()=>{if(n.current){te=t;const r=Z(t.current?t.current[0]:void 0);!ve(ie(r),te.current)&&t.current&&qn(t.current)}n.current=!1},[t])}function Ha(t,e,n){R(()=>{if(e||n)return;let r=t.current;const i=Z(r?r[0]:void 0);let o=l=>{let s=I(l);ve(s,t.current)?te=t:Pi(s)||(te=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(l=>l.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(l=>l.removeEventListener("focusin",o,!1))}},[t,e,n])}function Ni(t){let e=oe.getTreeNode(te);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function Ua(t,e,n){const r=c.useRef(typeof document<"u"?ie(Z(t.current?t.current[0]:void 0)):null);R(()=>{let i=t.current;const o=Z(i?i[0]:void 0);if(!e||n)return;let l=()=>{(!te||qt(te,t))&&ve(ie(o),t.current)&&(te=t)};return o.addEventListener("focusin",l,!1),i==null||i.forEach(s=>s.addEventListener("focusin",l,!1)),()=>{o.removeEventListener("focusin",l,!1),i==null||i.forEach(s=>s.removeEventListener("focusin",l,!1))}},[t,n]),R(()=>{const i=Z(t.current?t.current[0]:void 0);if(!e)return;let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!bt(t)||l.isComposing)return;let s=i.activeElement;if(!Le(s,t)||!Ni(t))return;let a=oe.getTreeNode(t);if(!a)return;let d=a.nodeToRestore,u=Ee(i.body,{tabbable:!0});u.currentNode=s;let p=l.shiftKey?u.previousNode():u.nextNode();if((!d||!d.isConnected||d===i.body)&&(d=void 0,a.nodeToRestore=void 0),(!p||!Le(p,t))&&d){u.currentNode=d;do p=l.shiftKey?u.previousNode():u.nextNode();while(Le(p,t));l.preventDefault(),l.stopPropagation(),p?_e(p,!0):Pi(d)?_e(d,!0):s.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[t,e,n]),R(()=>{const i=Z(t.current?t.current[0]:void 0);if(!e)return;let o=oe.getTreeNode(t);if(o){var l;return o.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let s=oe.getTreeNode(t);if(!s)return;let a=s.nodeToRestore,d=ie(i);if(e&&a&&(d&&Le(d,t)||d===i.body&&Ni(t))){let u=oe.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let p=u.getTreeNode(t);for(;p;){if(p.nodeToRestore&&p.nodeToRestore.isConnected){$i(p.nodeToRestore);return}p=p.parent}for(p=u.getTreeNode(t);p;){if(p.scopeRef&&p.scopeRef.current&&oe.getTreeNode(p.scopeRef)){let v=Ti(p.scopeRef.current,!0);$i(v);return}p=p.parent}}})}}}},[t,e])}function $i(t){t.dispatchEvent(new CustomEvent(Gn,{bubbles:!0,cancelable:!0}))&&_e(t)}function Ee(t,e,n){let r=e!=null&&e.tabbable?qr:Gr,i=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,o=Z(i),l=Sr(o,t||o,NodeFilter.SHOW_ELEMENT,{acceptNode(s){return H(e==null?void 0:e.from,s)||e!=null&&e.tabbable&&s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(!Oa(s)||l.currentNode.tagName==="INPUT"&&l.currentNode.type==="radio"&&l.currentNode.name===s.name)?NodeFilter.FILTER_REJECT:r(s)&&(!n||ve(s,n))&&(!(e!=null&&e.accept)||e.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(l.currentNode=e.from),l}class Yn{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new Xn({scopeRef:e});i.addChild(o),o.parent=i,this.fastMap.set(e,o),r&&(o.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let n=this.fastMap.get(e);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ve(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let n of e.children)yield*this.traverse(n)}clone(){var e;let n=new Yn;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(e=i.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Xn({scopeRef:null}),this.fastMap.set(null,this.root)}}class Xn{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let oe=new Yn;function qe(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=c.useRef({isFocused:!1,isFocusVisible:e||Hn()}),[o,l]=c.useState(!1),[s,a]=c.useState(()=>i.current.isFocused&&i.current.isFocusVisible),d=c.useCallback(()=>a(i.current.isFocused&&i.current.isFocusVisible),[]),u=c.useCallback(m=>{i.current.isFocused=m,i.current.isFocusVisible=Hn(),l(m),d()},[d]);Na(m=>{i.current.isFocusVisible=m,d()},[n,o],{enabled:o,isTextInput:n});let{focusProps:p}=wi({isDisabled:r,onFocusChange:u}),{focusWithinProps:v}=Wn({isDisabled:!r,onFocusWithinChange:u});return{isFocused:o,isFocusVisible:s,focusProps:r?v:p}}function Wa(t,e){let n=e==null?void 0:e.isDisabled,[r,i]=c.useState(!1);return R(()=>{if(t!=null&&t.current&&!n){let o=()=>{if(t.current){let s=Ee(t.current,{tabbable:!0});i(!!s.nextNode())}};o();let l=new MutationObserver(o);return l.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),n?!1:r}function Di(t){let e=Ga(Z(t));e!==t&&(e&&ja(e,t),t&&_i(t,e))}function ja(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function _i(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function Ga(t){let e=ie(t),n=e==null?void 0:e.getAttribute("aria-activedescendant");return n&&t.getElementById(n)||e}const Ce=[];function qa(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:s}=t,a=c.useRef(void 0);c.useEffect(()=>{if(i&&!Ce.includes(e))return Ce.push(e),()=>{let b=Ce.indexOf(e);b>=0&&Ce.splice(b,1)}},[i,e]);let d=()=>{Ce[Ce.length-1]===e&&n&&n()},u=b=>{const y=Ce[Ce.length-1];a.current=y,(!s||s(I(b)))&&y===e&&(b.stopPropagation(),b.preventDefault())},p=b=>{(!s||s(I(b)))&&(Ce[Ce.length-1]===e&&(b.stopPropagation(),b.preventDefault()),a.current===e&&d()),a.current=void 0},v=b=>{b.key==="Escape"&&!l&&!b.nativeEvent.isComposing&&(b.stopPropagation(),b.preventDefault(),d())};Ia({ref:e,onInteractOutside:o&&i?p:void 0,onInteractOutsideStart:u});let{focusWithinProps:m}=Wn({isDisabled:!r,onBlurWithin:b=>{!b.relatedTarget||Va(b.relatedTarget)||(!s||s(b.relatedTarget))&&(n==null||n())}}),g=b=>{I(b)===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:v,...m},underlayProps:{onPointerDown:g}}}const gt=typeof document<"u"&&window.visualViewport;let Yt=0,Zn;function Ya(t={}){let{isDisabled:e}=t;R(()=>{if(!e)return Yt++,Yt===1&&(ze()?Zn=Za():Zn=Xa()),()=>{Yt--,Yt===0&&Zn()}},[e])}function Xa(){let t=window.innerWidth-document.documentElement.clientWidth;return ct(t>0&&("scrollbarGutter"in document.documentElement.style?Xt(document.documentElement,"scrollbarGutter","stable"):Xt(document.documentElement,"paddingRight",`${t}px`)),Xt(document.documentElement,"overflow","hidden"))}function Za(){let t=Xt(document.documentElement,"overflow","hidden"),e,n=!1,r=d=>{let u=I(d);e=dt(u)?u:Vr(u,!0),n=!1;let p=u.ownerDocument.defaultView.getSelection();p&&!p.isCollapsed&&p.containsNode(u,!0)&&(n=!0),d.composedPath().some(v=>v instanceof HTMLInputElement&&v.type==="range")&&(n=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(n=!0)},i=document.createElement("style");i.textContent=`
8
8
  @layer {
9
9
  * {
10
10
  overscroll-behavior: contain;
11
11
  }
12
- }`.trim(),document.head.prepend(i);let l=d=>{if(!(d.touches.length===2||n)){if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()}},o=d=>{let u=_(d),p=d.relatedTarget;if(p&&ft(p))p.focus({preventScroll:!0}),Zi(p,ft(u));else if(!p){var v;let m=(v=u.parentElement)===null||v===void 0?void 0:v.closest("[tabindex]");m==null||m.focus({preventScroll:!0})}},s=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(d){let u=ie(),p=u!=null&&ft(u);s.call(this,{...d,preventScroll:!0}),(!d||!d.preventScroll)&&Zi(this,p)};let a=dt(er(document,"touchstart",r,{passive:!1,capture:!0}),er(document,"touchmove",l,{passive:!1,capture:!0}),er(document,"blur",o,!0));return()=>{t(),a(),i.remove(),HTMLElement.prototype.focus=s}}function Jt(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function er(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function Zi(t,e){e||!yt?Ji(t):yt.addEventListener("resize",()=>Ji(t),{once:!0})}function Ji(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=li(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect(),l=n.getBoundingClientRect();if(l.top<i.top||l.bottom>i.top+n.clientHeight){let o=i.bottom;yt&&(o=Math.min(o,yt.offsetTop+yt.height));let s=l.top-i.top-((o-i.top)/2-l.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+s)),behavior:"smooth"})}}n=r.parentElement}}const Bc=c.createContext({});function Vc(){var t;return(t=c.useContext(Bc))!==null&&t!==void 0?t:{}}var Qi={};Qi={dismiss:"تجاهل"};var Ri={};Ri={dismiss:"Отхвърляне"};var el={};el={dismiss:"Odstranit"};var tl={};tl={dismiss:"Luk"};var nl={};nl={dismiss:"Schließen"};var rl={};rl={dismiss:"Απόρριψη"};var il={};il={dismiss:"Dismiss"};var ll={};ll={dismiss:"Descartar"};var ol={};ol={dismiss:"Lõpeta"};var sl={};sl={dismiss:"Hylkää"};var al={};al={dismiss:"Rejeter"};var cl={};cl={dismiss:"התעלם"};var dl={};dl={dismiss:"Odbaci"};var ul={};ul={dismiss:"Elutasítás"};var fl={};fl={dismiss:"Ignora"};var pl={};pl={dismiss:"閉じる"};var hl={};hl={dismiss:"무시"};var vl={};vl={dismiss:"Atmesti"};var ml={};ml={dismiss:"Nerādīt"};var bl={};bl={dismiss:"Lukk"};var gl={};gl={dismiss:"Negeren"};var yl={};yl={dismiss:"Zignoruj"};var xl={};xl={dismiss:"Descartar"};var wl={};wl={dismiss:"Dispensar"};var El={};El={dismiss:"Revocare"};var Cl={};Cl={dismiss:"Пропустить"};var Pl={};Pl={dismiss:"Zrušiť"};var kl={};kl={dismiss:"Opusti"};var Tl={};Tl={dismiss:"Odbaci"};var Nl={};Nl={dismiss:"Avvisa"};var $l={};$l={dismiss:"Kapat"};var Dl={};Dl={dismiss:"Скасувати"};var Sl={};Sl={dismiss:"取消"};var Il={};Il={dismiss:"關閉"};var _l={};_l={"ar-AE":Qi,"bg-BG":Ri,"cs-CZ":el,"da-DK":tl,"de-DE":nl,"el-GR":rl,"en-US":il,"es-ES":ll,"et-EE":ol,"fi-FI":sl,"fr-FR":al,"he-IL":cl,"hr-HR":dl,"hu-HU":ul,"it-IT":fl,"ja-JP":pl,"ko-KR":hl,"lt-LT":vl,"lv-LV":ml,"nb-NO":bl,"nl-NL":gl,"pl-PL":yl,"pt-BR":xl,"pt-PT":wl,"ro-RO":El,"ru-RU":Cl,"sk-SK":Pl,"sl-SI":kl,"sr-SP":Tl,"sv-SE":Nl,"tr-TR":$l,"uk-UA":Dl,"zh-CN":Sl,"zh-TW":Il};const Kl={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function zc(t={}){let{style:e,isFocusable:n}=t,[r,i]=c.useState(!1),{focusWithinProps:l}=qn({isDisabled:!n,onFocusWithinChange:s=>i(s)}),o=c.useMemo(()=>r?e:e?{...Kl,...e}:Kl,[r]);return{visuallyHiddenProps:{...l,style:o}}}function tr(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...l}=t,{visuallyHiddenProps:o}=zc(t);return c.createElement(n,q(l,o),e)}function Hc(t){return t&&t.__esModule?t.default:t}function Uc(t){let{onDismiss:e,...n}=t,r=Ja(Hc(_l),"@react-aria/overlays"),i=Kt(n,r.format("dismiss")),l=()=>{e&&e()};return c.createElement(tr,null,c.createElement("button",{...i,tabIndex:-1,onClick:l,style:{width:1,height:1}}))}const Wc=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let xt=new WeakMap,me=[];function jc(t,e){let n=ae(t==null?void 0:t[0]),r=e instanceof n.Element?{root:e}:e;var i;let l=(i=r==null?void 0:r.root)!==null&&i!==void 0?i:document.body,o=(r==null?void 0:r.shouldUseInert)&&Wc,s=new Set(t),a=new Set,d=x=>o&&x instanceof n.HTMLElement?x.inert:x.getAttribute("aria-hidden")==="true",u=(x,E)=>{o&&x instanceof n.HTMLElement?x.inert=E:E?x.setAttribute("aria-hidden","true"):(x.removeAttribute("aria-hidden"),x instanceof n.HTMLElement&&(x.inert=!1))},p=new Set;if(Ne())for(let x of t){let E=x;for(;E&&E!==l;){let C=E.getRootNode();"shadowRoot"in C&&p.add(C.shadowRoot),E=C.parentNode}}let v=x=>{for(let $ of x.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))s.add($);let E=$=>{if(a.has($)||s.has($)||$.parentElement&&a.has($.parentElement)&&$.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let z of s)if(H($,z))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},C=Zr(Z(x),x,NodeFilter.SHOW_ELEMENT,{acceptNode:E}),k=E(x);if(k===NodeFilter.FILTER_ACCEPT&&m(x),k!==NodeFilter.FILTER_REJECT){let $=C.nextNode();for(;$!=null;)m($),$=C.nextNode()}},m=x=>{var E;let C=(E=xt.get(x))!==null&&E!==void 0?E:0;d(x)&&C===0||(C===0&&u(x,!0),a.add(x),xt.set(x,C+1))};me.length&&me[me.length-1].disconnect(),v(l);let g=new MutationObserver(x=>{for(let E of x)if(E.type==="childList"){if(E.target.isConnected&&![...s,...a].some(C=>H(C,E.target)))for(let C of E.addedNodes)(C instanceof HTMLElement||C instanceof SVGElement)&&(C.dataset.liveAnnouncer==="true"||C.dataset.reactAriaTopLayer==="true")?s.add(C):C instanceof Element&&v(C);if(Ne()){for(let C of p)if(!C.isConnected){g.disconnect();break}}}});g.observe(l,{childList:!0,subtree:!0});let b=new Set;if(Ne())for(let x of p){let E=new MutationObserver(C=>{for(let k of C)if(k.type==="childList"){if(k.target.isConnected&&![...s,...a].some($=>H($,k.target)))for(let $ of k.addedNodes)($ instanceof HTMLElement||$ instanceof SVGElement)&&($.dataset.liveAnnouncer==="true"||$.dataset.reactAriaTopLayer==="true")?s.add($):$ instanceof Element&&v($);if(Ne()){for(let $ of p)if(!$.isConnected){g.disconnect();break}}}});E.observe(x,{childList:!0,subtree:!0}),b.add(E)}let y={visibleNodes:s,hiddenNodes:a,observe(){g.observe(l,{childList:!0,subtree:!0})},disconnect(){g.disconnect()}};return me.push(y),()=>{if(g.disconnect(),Ne())for(let x of b)x.disconnect();for(let x of a){let E=xt.get(x);E!=null&&(E===1?(u(x,!1),xt.delete(x)):xt.set(x,E-1))}y===me[me.length-1]?(me.pop(),me.length&&me[me.length-1].observe()):me.splice(me.indexOf(y),1)}}const Ml=c.createContext(null);function Gc(t){let e=ze(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,l]=c.useState(!1),o=c.useMemo(()=>({contain:i,setContain:l}),[i,l]),{getContainer:s}=Vc();if(!t.portalContainer&&s&&(n=s()),!n)return null;let a=t.children;return t.disableFocusManagement||(a=c.createElement(Cc,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!r},a)),a=c.createElement(Ml.Provider,{value:o},c.createElement(gc,null,a)),st.createPortal(a,n)}function Ll(){let t=c.useContext(Ml),e=t==null?void 0:t.setContain;R(()=>{e==null||e(!0)},[e])}function qc(t,e,n){let{overlayProps:r,underlayProps:i}=Lc({...t,isOpen:e.isOpen,onClose:e.close},n);return Fc({isDisabled:!e.isOpen}),Ll(),c.useEffect(()=>{if(e.isOpen&&n.current)return jc([n.current],{shouldUseInert:!0})},[e.isOpen,n]),{modalProps:q(r),underlayProps:i}}function Yc(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:l="label"}=t;e=Te(e);let o=Te(),s={};n?(r=r?`${o} ${r}`:o,s={id:o,htmlFor:l==="label"?e:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let a=Kt({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:a}}function Xc(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:l,fieldProps:o}=Yc(t),s=mn([!!e,!!n,r,i]),a=mn([!!e,!!n,r,i]);return o=q(o,{"aria-describedby":[s,a,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:l,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:a}}}function nr(t){return ha()?t.altKey:t.ctrlKey}function rr(t,e){var n,r;let i=`[data-key="${CSS.escape(String(e))}"]`,l=(n=t.current)===null||n===void 0?void 0:n.dataset.collection;return l&&(i=`[data-collection="${CSS.escape(l)}"]${i}`),(r=t.current)===null||r===void 0?void 0:r.querySelector(i)}const Fl=new WeakMap;function Zc(t){let e=Te();return Fl.set(t,e),e}function Jc(t){return Fl.get(t)}const Qc=1e3;function Rc(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=c.useRef({search:"",timeout:void 0}).current,l=o=>{let s=ed(o.key);if(!(!s||o.ctrlKey||o.metaKey||!H(o.currentTarget,_(o))||i.search.length===0&&s===" ")){if(s===" "&&i.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),i.search+=s,e.getKeyForSearch!=null){let a=e.getKeyForSearch(i.search,n.focusedKey);a==null&&(a=e.getKeyForSearch(i.search)),a!=null&&(n.setFocusedKey(a),r&&r(a))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},Qc)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?l:void 0}}}function ed(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function td(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:l=!1,disallowEmptySelection:o=!1,disallowSelectAll:s=!1,escapeKeyBehavior:a="clearSelection",selectOnFocus:d=e.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:p,allowsTabNavigation:v=!1,scrollRef:m=r,linkBehavior:g="action"}=t,{direction:b}=Ln(),y=wn(),x=N=>{if(N.altKey&&N.key==="Tab"&&N.preventDefault(),!r.current||!H(r.current,_(N)))return;const O=(B,J)=>{if(B!=null){if(e.isLink(B)&&g==="selection"&&d&&!nr(N)){st.flushSync(()=>{e.setFocusedKey(B,J)});let ue=rr(r,B),Pe=e.getItemProps(B);ue&&y.open(ue,N,Pe.href,Pe.routerOptions);return}if(e.setFocusedKey(B,J),e.isLink(B)&&g==="override")return;N.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(B):d&&!nr(N)&&e.replaceSelection(B)}};switch(N.key){case"ArrowDown":if(n.getKeyBelow){var j,X,Q;let B=e.focusedKey!=null?(j=n.getKeyBelow)===null||j===void 0?void 0:j.call(n,e.focusedKey):(X=n.getFirstKey)===null||X===void 0?void 0:X.call(n);B==null&&l&&(B=(Q=n.getFirstKey)===null||Q===void 0?void 0:Q.call(n,e.focusedKey)),B!=null&&(N.preventDefault(),O(B))}break;case"ArrowUp":if(n.getKeyAbove){var re,f,D;let B=e.focusedKey!=null?(re=n.getKeyAbove)===null||re===void 0?void 0:re.call(n,e.focusedKey):(f=n.getLastKey)===null||f===void 0?void 0:f.call(n);B==null&&l&&(B=(D=n.getLastKey)===null||D===void 0?void 0:D.call(n,e.focusedKey)),B!=null&&(N.preventDefault(),O(B))}break;case"ArrowLeft":if(n.getKeyLeftOf){var w,T,S;let B=e.focusedKey!=null?(w=n.getKeyLeftOf)===null||w===void 0?void 0:w.call(n,e.focusedKey):null;B==null&&l&&(B=b==="rtl"?(T=n.getFirstKey)===null||T===void 0?void 0:T.call(n,e.focusedKey):(S=n.getLastKey)===null||S===void 0?void 0:S.call(n,e.focusedKey)),B!=null&&(N.preventDefault(),O(B,b==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var I,U,se;let B=e.focusedKey!=null?(I=n.getKeyRightOf)===null||I===void 0?void 0:I.call(n,e.focusedKey):null;B==null&&l&&(B=b==="rtl"?(U=n.getLastKey)===null||U===void 0?void 0:U.call(n,e.focusedKey):(se=n.getFirstKey)===null||se===void 0?void 0:se.call(n,e.focusedKey)),B!=null&&(N.preventDefault(),O(B,b==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&N.shiftKey)return;N.preventDefault();let B=n.getFirstKey(e.focusedKey,et(N));e.setFocusedKey(B),B!=null&&(et(N)&&N.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(B):d&&e.replaceSelection(B))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&N.shiftKey)return;N.preventDefault();let B=n.getLastKey(e.focusedKey,et(N));e.setFocusedKey(B),B!=null&&(et(N)&&N.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(B):d&&e.replaceSelection(B))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let B=n.getKeyPageBelow(e.focusedKey);B!=null&&(N.preventDefault(),O(B))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let B=n.getKeyPageAbove(e.focusedKey);B!=null&&(N.preventDefault(),O(B))}break;case"a":et(N)&&e.selectionMode==="multiple"&&s!==!0&&(N.preventDefault(),e.selectAll());break;case"Escape":a==="clearSelection"&&!o&&e.selectedKeys.size!==0&&(N.stopPropagation(),N.preventDefault(),e.clearSelection());break;case"Tab":if(!v){if(N.shiftKey)r.current.focus();else{let B=Ee(r.current,{tabbable:!0}),J,ue;do ue=B.lastChild(),ue&&(J=ue);while(ue);let Pe=ie();J&&(!bn(J)||Pe&&!fi(Pe))&&$e(J)}break}}},E=c.useRef({top:0,left:0});Mt(m,"scroll",()=>{var N,O,j,X;E.current={top:(j=(N=m.current)===null||N===void 0?void 0:N.scrollTop)!==null&&j!==void 0?j:0,left:(X=(O=m.current)===null||O===void 0?void 0:O.scrollLeft)!==null&&X!==void 0?X:0}});let C=N=>{if(e.isFocused){H(N.currentTarget,_(N))||e.setFocused(!1);return}if(H(N.currentTarget,_(N))){if(e.setFocused(!0),e.focusedKey==null){var O,j;let re=D=>{D!=null&&(e.setFocusedKey(D),d&&!e.isSelected(D)&&e.replaceSelection(D))},f=N.relatedTarget;var X,Q;f&&N.currentTarget.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_FOLLOWING?re((X=e.lastSelectedKey)!==null&&X!==void 0?X:(O=n.getLastKey)===null||O===void 0?void 0:O.call(n)):re((Q=e.firstSelectedKey)!==null&&Q!==void 0?Q:(j=n.getFirstKey)===null||j===void 0?void 0:j.call(n))}else m.current&&(m.current.scrollTop=E.current.top,m.current.scrollLeft=E.current.left);if(e.focusedKey!=null&&m.current){let re=rr(r,e.focusedKey);re instanceof HTMLElement&&(!bn(re)&&!p&&$e(re),Wt()==="keyboard"&&si(re,{containingElement:r.current}))}}},k=N=>{H(N.currentTarget,N.relatedTarget)||e.setFocused(!1)},$=c.useRef(!1);Mt(r,Da,p?N=>{let{detail:O}=N;N.stopPropagation(),e.setFocused(!0),(O==null?void 0:O.focusStrategy)==="first"&&($.current=!0)}:void 0),ri(()=>{if($.current){var N,O;let j=(O=(N=n.getFirstKey)===null||N===void 0?void 0:N.call(n))!==null&&O!==void 0?O:null;if(j==null){let X=ie();Yi(r.current),Xi(X,null),e.collection.size>0&&($.current=!1)}else e.setFocusedKey(j),$.current=!1}},[e.collection]),ri(()=>{e.collection.size>0&&($.current=!1)},[e.focusedKey]),Mt(r,$a,p?N=>{var O;N.stopPropagation(),e.setFocused(!1),!((O=N.detail)===null||O===void 0)&&O.clearFocusKey&&e.setFocusedKey(null)}:void 0);const z=c.useRef(i),F=c.useRef(!1);c.useEffect(()=>{if(z.current){var N,O;let Q=null;var j;i==="first"&&(Q=(j=(N=n.getFirstKey)===null||N===void 0?void 0:N.call(n))!==null&&j!==void 0?j:null);var X;i==="last"&&(Q=(X=(O=n.getLastKey)===null||O===void 0?void 0:O.call(n))!==null&&X!==void 0?X:null);let re=e.selectedKeys;if(re.size){for(let f of re)if(e.canSelectItem(f)){Q=f;break}}e.setFocused(!0),e.setFocusedKey(Q),Q==null&&!p&&r.current&&qe(r.current),e.collection.size>0&&(z.current=!1,F.current=!0)}});let P=c.useRef(e.focusedKey),L=c.useRef(null);c.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==P.current||F.current)&&m.current&&r.current){let N=Wt(),O=rr(r,e.focusedKey);if(!(O instanceof HTMLElement))return;(N==="keyboard"||F.current)&&(L.current&&cancelAnimationFrame(L.current),L.current=requestAnimationFrame(()=>{m.current&&(Tn(m.current,O),N!=="virtual"&&si(O,{containingElement:r.current}))}))}!p&&e.isFocused&&e.focusedKey==null&&P.current!=null&&r.current&&qe(r.current),P.current=e.focusedKey,F.current=!1}),c.useEffect(()=>()=>{L.current&&cancelAnimationFrame(L.current)},[]),Mt(r,"react-aria-focus-scope-restore",N=>{N.preventDefault(),e.setFocused(!0)});let V={onKeyDown:x,onFocus:C,onBlur:k,onMouseDown(N){m.current===_(N)&&N.preventDefault()}},{typeSelectProps:ee}=Rc({keyboardDelegate:n,selectionManager:e});u||(V=q(ee,V));let ne;p||(ne=e.focusedKey==null?0:-1);let Y=Zc(e.collection);return{collectionProps:q(V,{tabIndex:ne,"data-collection":Y})}}function nd(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:l,shouldUseVirtualFocus:o,focus:s,isDisabled:a,onAction:d,allowsDifferentPressOrigin:u,linkBehavior:p="action"}=t,v=wn();e=Te(e);let m=f=>{if(f.pointerType==="keyboard"&&nr(f))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(p==="selection"&&i.current){let D=n.getItemProps(r);v.open(i.current,f,D.href,D.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(p==="override"||p==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):f&&f.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||f&&(et(f)||f.pointerType==="touch"||f.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};c.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(o?Yi(i.current):s?s():ie()!==i.current&&i.current&&qe(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),a=a||n.isDisabled(r);let g={};!o&&!a?g={tabIndex:r===n.focusedKey?0:-1,onFocus(f){_(f)===i.current&&n.setFocusedKey(r)}}:a&&(g.onMouseDown=f=>{f.preventDefault()}),c.useEffect(()=>{a&&n.focusedKey===r&&n.setFocusedKey(null)},[n,a,r]);let b=n.isLink(r)&&p==="override",y=d&&t.UNSTABLE_itemBehavior==="action",x=n.isLink(r)&&p!=="selection"&&p!=="none",E=!a&&n.canSelectItem(r)&&!b&&!y,C=(d||x)&&!a,k=C&&(n.selectionBehavior==="replace"?!E:!E||n.isEmpty),$=C&&E&&n.selectionBehavior==="replace",z=k||$,F=c.useRef(null),P=z&&E,L=c.useRef(!1),V=c.useRef(!1),ee=n.getItemProps(r),ne=f=>{if(d){var D;d(),(D=i.current)===null||D===void 0||D.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}x&&i.current&&v.open(i.current,f,ee.href,ee.routerOptions)},Y={ref:i};if(l?(Y.onPressStart=f=>{F.current=f.pointerType,L.current=P,f.pointerType==="keyboard"&&(!z||Ol(f.key))&&m(f)},u?(Y.onPressUp=k?void 0:f=>{f.pointerType==="mouse"&&E&&m(f)},Y.onPress=k?ne:f=>{f.pointerType!=="keyboard"&&f.pointerType!=="mouse"&&E&&m(f)}):Y.onPress=f=>{if(k||$&&f.pointerType!=="mouse"){if(f.pointerType==="keyboard"&&!Al(f.key))return;ne(f)}else f.pointerType!=="keyboard"&&E&&m(f)}):(Y.onPressStart=f=>{F.current=f.pointerType,L.current=P,V.current=k,E&&(f.pointerType==="mouse"&&!k||f.pointerType==="keyboard"&&(!C||Ol(f.key)))&&m(f)},Y.onPress=f=>{(f.pointerType==="touch"||f.pointerType==="pen"||f.pointerType==="virtual"||f.pointerType==="keyboard"&&z&&Al(f.key)||f.pointerType==="mouse"&&V.current)&&(z?ne(f):E&&m(f))}),g["data-collection"]=Jc(n.collection),g["data-key"]=r,Y.preventFocusOnPress=o,o&&(Y=q(Y,{onPressStart(f){f.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(f){f.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),ee)for(let f of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])ee[f]&&(Y[f]=dt(Y[f],ee[f]));let{pressProps:N,isPressed:O}=rt(Y),j=$?f=>{F.current==="mouse"&&(f.stopPropagation(),f.preventDefault(),ne(f))}:void 0,{longPressProps:X}=Ec({isDisabled:!P,onLongPress(f){f.pointerType==="touch"&&(m(f),n.setSelectionBehavior("toggle"))}}),Q=f=>{F.current==="touch"&&L.current&&f.preventDefault()},re=p!=="none"&&n.isLink(r)?f=>{Se.isOpening||f.preventDefault()}:void 0;return{itemProps:q(g,E||k||o&&!a?N:{},P?X:{},{onDoubleClick:j,onDragStartCapture:Q,onClick:re,id:e},o?{onMouseDown:f=>f.preventDefault()}:void 0),isPressed:O,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:a,allowsSelection:E,hasAction:z}}function Al(t){return t==="Enter"}function Ol(t){return t===" "}class rd{build(e,n){return this.context=n,Bl(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(c.isValidElement(n)&&n.type===c.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let l of r)yield*this.getFullNode({value:l,index:i},{renderer:n}),i++}else{let i=[];c.Children.forEach(n,o=>{o&&i.push(o)});let l=0;for(let o of i){let s=this.getFullNode({element:o,index:l},{});for(let a of s)l++,yield a}}}getKey(e,n,r,i){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let l=n.value;if(l!=null){var o;let s=(o=l.key)!==null&&o!==void 0?o:l.id;if(s==null)throw new Error("No key found for item");return s}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,r,i){if(c.isValidElement(e.element)&&e.element.type===c.Fragment){let y=[];c.Children.forEach(e.element.props.children,E=>{y.push(E)});var l;let x=(l=e.index)!==null&&l!==void 0?l:0;for(const E of y)yield*this.getFullNode({element:E,index:x++},n,r,i);return}let o=e.element;if(!o&&e.value&&n&&n.renderer){let y=this.cache.get(e.value);if(y&&(!y.shouldInvalidate||!y.shouldInvalidate(this.context))){y.index=e.index,y.parentKey=i?i.key:null,yield y;return}o=n.renderer(e.value)}if(c.isValidElement(o)){let y=o.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let k=o.type;throw new Error(`Unknown element <${k}> in collection.`)}let x=y.getCollectionNode(o.props,this.context);var s;let E=(s=e.index)!==null&&s!==void 0?s:0,C=x.next();for(;!C.done&&C.value;){let k=C.value;e.index=E;var a;let $=(a=k.key)!==null&&a!==void 0?a:null;$==null&&($=k.element?null:this.getKey(o,e,n,r));let F=[...this.getFullNode({...k,key:$,index:E,wrapper:id(e.wrapper,k.wrapper)},this.getChildState(n,k),r?`${r}${o.key}`:o.key,i)];for(let P of F){var d,u;P.value=(u=(d=k.value)!==null&&d!==void 0?d:e.value)!==null&&u!==void 0?u:null,P.value&&this.cache.set(P.value,P);var p;if(e.type&&P.type!==e.type)throw new Error(`Unsupported type <${ir(P.type)}> in <${ir((p=i==null?void 0:i.type)!==null&&p!==void 0?p:"unknown parent type")}>. Only <${ir(e.type)}> is supported.`);E++,yield P}C=x.next(F)}return}if(e.key==null||e.type==null)return;let v=this;var m,g;let b={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(m=e.value)!==null&&m!==void 0?m:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:(g=e.textValue)!==null&&g!==void 0?g:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Bl(function*(){if(!e.hasChildNodes||!e.childNodes)return;let y=0;for(let x of e.childNodes()){x.key!=null&&(x.key=`${b.key}${x.key}`);let E=v.getFullNode({...x,index:y},v.getChildState(n,x),b.key,b);for(let C of E)y++,yield C}})};yield b}constructor(){this.cache=new WeakMap}}function Bl(t){let e=[],n=null;return{*[Symbol.iterator](){for(let r of e)yield r;n||(n=t());for(let r of n)e.push(r),yield r}}}function id(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function ir(t){return t[0].toUpperCase()+t.slice(1)}function ld(t,e,n){let r=c.useMemo(()=>new rd,[]),{children:i,items:l,collection:o}=t;return c.useMemo(()=>{if(o)return o;let a=r.build({children:i,items:l},n);return e(a)},[r,i,l,o,n,e])}function od(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function sd(t){return ad(t)}function ad(t,e){for(let n of t)return n}function lr(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...Vl(t,e),e],i=[...Vl(t,n),n],l=r.slice(0,i.length).findIndex((o,s)=>o!==i[s]);return l!==-1?(e=r[l],n=i[l],e.index-n.index):r.findIndex(o=>o===n)>=0?1:(i.findIndex(o=>o===e)>=0,-1)}function Vl(t,e){let n=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}const zl={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Hl={...zl,customError:!0,valid:!1},it={isInvalid:!1,validationDetails:zl,validationErrors:[]},cd=c.createContext({}),Qt="__formValidationState"+Date.now();function or(t){if(t[Qt]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:l}=t[Qt];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:l}}return dd(t)}function dd(t){let{isInvalid:e,validationState:n,name:r,value:i,builtinValidation:l,validate:o,validationBehavior:s="aria"}=t;n&&(e||(e=n==="invalid"));let a=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:Hl}:null,d=c.useMemo(()=>{if(!o||i==null)return null;let V=ud(o,i);return Ul(V)},[o,i]);l!=null&&l.validationDetails.valid&&(l=void 0);let u=c.useContext(cd),p=c.useMemo(()=>r?Array.isArray(r)?r.flatMap(V=>sr(u[V])):sr(u[r]):[],[u,r]),[v,m]=c.useState(u),[g,b]=c.useState(!1);u!==v&&(m(u),b(!1));let y=c.useMemo(()=>Ul(g?[]:p),[g,p]),x=c.useRef(it),[E,C]=c.useState(it),k=c.useRef(it),$=()=>{if(!z)return;F(!1);let V=d||l||x.current;ar(V,k.current)||(k.current=V,C(V))},[z,F]=c.useState(!1);return c.useEffect($),{realtimeValidation:a||y||d||l||it,displayValidation:s==="native"?a||y||E:a||y||d||l||E,updateValidation(V){s==="aria"&&!ar(E,V)?C(V):x.current=V},resetValidation(){let V=it;ar(V,k.current)||(k.current=V,C(V)),s==="native"&&F(!1),b(!0)},commitValidation(){s==="native"&&F(!0),b(!0)}}}function sr(t){return t?Array.isArray(t)?t:[t]:[]}function ud(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return sr(n)}return[]}function Ul(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:Hl}:null}function ar(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((n,r)=>n===e.validationErrors[r])&&Object.entries(t.validationDetails).every(([n,r])=>e.validationDetails[n]===r)}function Wl(t,e,n){let{validationBehavior:r,focus:i}=t;R(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let d=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(d),n.current.hasAttribute("title")||(n.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(pd(n.current))}});let l=c.useRef(!1),o=be(()=>{l.current||e.resetValidation()}),s=be(d=>{var u;e.displayValidation.isInvalid||e.commitValidation();let p=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!d.defaultPrevented&&n&&p&&hd(p)===n.current){var v;i?i():(v=n.current)===null||v===void 0||v.focus(),fc("keyboard")}d.preventDefault()}),a=be(()=>{e.commitValidation()});c.useEffect(()=>{let d=n==null?void 0:n.current;if(!d)return;let u=d.form,p=u==null?void 0:u.reset;return u&&(u.reset=()=>{l.current=!window.event||window.event.type==="message"&&_(window.event)instanceof MessagePort,p==null||p.call(u),l.current=!1}),d.addEventListener("invalid",s),d.addEventListener("change",a),u==null||u.addEventListener("reset",o),()=>{d.removeEventListener("invalid",s),d.removeEventListener("change",a),u==null||u.removeEventListener("reset",o),u&&(u.reset=p)}},[n,r])}function fd(t){let e=t.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function pd(t){return{isInvalid:!t.validity.valid,validationDetails:fd(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function hd(t){for(let n=0;n<t.elements.length;n++){var e;let r=t.elements[n];if(((e=r.validity)===null||e===void 0?void 0:e.valid)===!1)return r}return null}function vd(t,e){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:l=!1,type:o="text",validationBehavior:s="aria"}=t,[a,d]=pt(t.value,t.defaultValue||"",t.onChange),{focusableProps:u}=jt(t,e),p=or({...t,value:a}),{isInvalid:v,validationErrors:m,validationDetails:g}=p.displayValidation,{labelProps:b,fieldProps:y,descriptionProps:x,errorMessageProps:E}=Xc({...t,isInvalid:v,errorMessage:t.errorMessage||m}),C=ce(t,{labelable:!0});const k={type:o,pattern:t.pattern};let[$]=c.useState(a);var z;return ai(e,(z=t.defaultValue)!==null&&z!==void 0?z:$,d),Wl(t,p,e),{labelProps:b,inputProps:q(C,n==="input"?k:void 0,{disabled:r,readOnly:l,required:i&&s==="native","aria-required":i&&s==="aria"||void 0,"aria-invalid":v||void 0,"aria-errormessage":t["aria-errormessage"],"aria-activedescendant":t["aria-activedescendant"],"aria-autocomplete":t["aria-autocomplete"],"aria-haspopup":t["aria-haspopup"],"aria-controls":t["aria-controls"],value:a,onChange:F=>d(_(F).value),autoComplete:t.autoComplete,autoCapitalize:t.autoCapitalize,maxLength:t.maxLength,minLength:t.minLength,name:t.name,form:t.form,placeholder:t.placeholder,inputMode:t.inputMode,autoCorrect:t.autoCorrect,spellCheck:t.spellCheck,[parseInt(c.version,10)>=17?"enterKeyHint":"enterkeyhint"]:t.enterKeyHint,onCopy:t.onCopy,onCut:t.onCut,onPaste:t.onPaste,onCompositionEnd:t.onCompositionEnd,onCompositionStart:t.onCompositionStart,onCompositionUpdate:t.onCompositionUpdate,onSelect:t.onSelect,onBeforeInput:t.onBeforeInput,onInput:t.onInput,...u,...y}),descriptionProps:x,errorMessageProps:E,isInvalid:v,validationErrors:m,validationDetails:g}}class wt{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,n,r){let i=this.clone();return n.addDescendants(i,e),i}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}}class jl extends wt{filter(e,n,r){let[i,l]=Gl(e,n,this.firstChildKey,r),o=this.clone();return o.firstChildKey=i,o.lastChildKey=l,o}}class md extends wt{}md.type="header";class bd extends wt{}bd.type="loader";class gd extends jl{filter(e,n,r){if(r(this.textValue,this)){let i=this.clone();return n.addDescendants(i,e),i}return null}}gd.type="item";class yd extends jl{filter(e,n,r){let i=super.filter(e,n,r);if(i&&i.lastChildKey!==null){let l=e.getItem(i.lastChildKey);if(l&&l.type!=="header")return i}return null}}yd.type="section";class xd{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(e),i=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?n.get(i.nextKey):void 0}}}getKeyBefore(e){let n=this.keyMap.get(e);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(e){let n=this.keyMap.get(e);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,n=new e;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n.itemCount=this.itemCount,n}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,n){this.addNode(e);let r=n.getChildren(e.key);for(let i of r)this.addDescendants(i,n)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(e);n!=null&&n.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=n,this.frozen=!r}filter(e){let n=new this.constructor,[r,i]=Gl(this,n,this.firstKey,e);return n==null||n.commit(r,i),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function Gl(t,e,n,r){if(n==null)return[null,null];let i=null,l=null,o=t.getItem(n);for(;o!=null;){let d=o.filter(t,e,r);d!=null&&(d.nextKey=null,l&&(d.prevKey=l.key,l.nextKey=d.key),i==null&&(i=d),e.addNode(d),l=d),o=o.nextKey?t.getItem(o.nextKey):null}if(l&&l.type==="separator"){let d=l.prevKey;e.removeNode(l.key),d?(l=e.getItem(d),l.nextKey=null):l=null}var s,a;return[(s=i==null?void 0:i.key)!==null&&s!==void 0?s:null,(a=l==null?void 0:l.key)!==null&&a!==void 0?a:null]}class ql{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,n){if(n==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=n,e.previousSibling=n.previousSibling,e.index=n.index-1,this.firstChild===n?this.firstChild=e:n.previousSibling&&(n.previousSibling.nextSibling=e),n.previousSibling=e,e.parentNode=n.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}}class lt extends ql{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){var e;return this.parentNode instanceof lt?this.parentNode.level+(((e=this.parentNode.node)===null||e===void 0?void 0:e.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var e,n,r,i,l,o,s,a;let d=this.nextVisibleSibling,u=this.getMutableNode();if(u!=null){u.index=this.index,u.level=this.level;var p;u.parentKey=this.parentNode instanceof lt&&(p=(e=this.parentNode.node)===null||e===void 0?void 0:e.key)!==null&&p!==void 0?p:null;var v;u.prevKey=(v=(r=this.previousVisibleSibling)===null||r===void 0||(n=r.node)===null||n===void 0?void 0:n.key)!==null&&v!==void 0?v:null;var m;u.nextKey=(m=d==null||(i=d.node)===null||i===void 0?void 0:i.key)!==null&&m!==void 0?m:null,u.hasChildNodes=!!this.firstChild;var g;u.firstChildKey=(g=(o=this.firstVisibleChild)===null||o===void 0||(l=o.node)===null||l===void 0?void 0:l.key)!==null&&g!==void 0?g:null;var b;if(u.lastChildKey=(b=(a=this.lastVisibleChild)===null||a===void 0||(s=a.node)===null||s===void 0?void 0:s.key)!==null&&b!==void 0?b:null,(u.colSpan!=null||u.colIndex!=null)&&d){var y,x;let E=((y=u.colIndex)!==null&&y!==void 0?y:u.index)+((x=u.colSpan)!==null&&x!==void 0?x:1);if(d.node!=null&&E!==d.node.colIndex){let C=d.getMutableNode();C.colIndex=E}}}}setProps(e,n,r,i,l){let o,{value:s,textValue:a,id:d,...u}=e;if(this.node==null?(o=new r(d??`react-aria-${++this.ownerDocument.nodeId}`),this.node=o):o=this.getMutableNode(),u.ref=n,o.props=u,o.rendered=i,o.render=l,o.value=s,e["aria-label"]&&(o["aria-label"]=e["aria-label"]),o.textValue=a||(typeof u.children=="string"?u.children:"")||e["aria-label"]||"",d!=null&&d!==o.key)throw new Error("Cannot change the id of an item");u.colSpan!=null&&(o.colSpan=u.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(n){let r=n==="none";if(e.isHidden!==r){var i,l;(((i=e.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===e||((l=e.parentNode)===null||l===void 0?void 0:l.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let o=e.previousVisibleSibling,s=e.nextVisibleSibling;o&&e.ownerDocument.markDirty(o),s&&e.ownerDocument.markDirty(s),e.isHidden=r,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}}class wd extends ql{get isConnected(){return!0}createElement(e){return new lt(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let n=this.getMutableCollection();if(!n.getItem(e.node.key))for(let r of e)this.addNode(r);n.addNode(e.node)}removeNode(e){for(let n of e)this.removeNode(n);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let s of this.dirtyNodes)s instanceof lt&&(!s.isConnected||s.isHidden)?this.removeNode(s):s.updateChildIndices();for(let s of this.dirtyNodes)s instanceof lt?(s.isConnected&&!s.isHidden&&(s.updateNode(),this.addNode(s)),s.node&&this.dirtyNodes.delete(s),s.isMutated=!1):this.dirtyNodes.delete(s);if(this.nextCollection){var e,n,r,i,l,o;this.nextCollection.commit((l=(n=this.firstVisibleChild)===null||n===void 0||(e=n.node)===null||e===void 0?void 0:e.key)!==null&&l!==void 0?l:null,(o=(i=this.lastVisibleChild)===null||i===void 0||(r=i.node)===null||r===void 0?void 0:r.key)!==null&&o!==void 0?o:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone());for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}}function Yl(t){let{children:e,items:n,idScope:r,addIdAndValue:i,dependencies:l=[]}=t,o=c.useMemo(()=>new WeakMap,l);return c.useMemo(()=>{if(n&&typeof e=="function"){let d=[];for(let u of n){let p=o.get(u);if(!p){p=e(u);var s,a;let v=(a=(s=p.props.id)!==null&&s!==void 0?s:u.key)!==null&&a!==void 0?a:u.id;if(v==null)throw new Error("Could not determine key for item");r!=null&&(v=r+":"+v),p=c.cloneElement(p,i?{key:v,id:v,value:u}:{key:v}),o.set(u,p)}d.push(p)}return d}else if(typeof e!="function")return e},[e,n,o,r,i])}typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.appendChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.removeChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(t,e){return this.content.insertBefore(t,e)}}));const cr=c.createContext(!1);function Ed(t){if(c.useContext(cr))return c.createElement(c.Fragment,null,t.children);let n=c.createElement(cr.Provider,{value:!0},t.children);return c.createElement("template",null,n)}function Et(t){let e=(n,r)=>c.useContext(cr)?null:t(n,r);return e.displayName=t.displayName||t.name,c.forwardRef(e)}var Rt={exports:{}},dr={};/**
12
+ }`.trim(),document.head.prepend(i);let o=d=>{if(!(d.touches.length===2||n)){if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()}},l=d=>{let u=I(d),p=d.relatedTarget;if(p&&ut(p))p.focus({preventScroll:!0}),Si(p,ut(u));else if(!p){var v;let m=(v=u.parentElement)===null||v===void 0?void 0:v.closest("[tabindex]");m==null||m.focus({preventScroll:!0})}},s=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(d){let u=ie(),p=u!=null&&ut(u);s.call(this,{...d,preventScroll:!0}),(!d||!d.preventScroll)&&Si(this,p)};let a=ct(Jn(document,"touchstart",r,{passive:!1,capture:!0}),Jn(document,"touchmove",o,{passive:!1,capture:!0}),Jn(document,"blur",l,!0));return()=>{t(),a(),i.remove(),HTMLElement.prototype.focus=s}}function Xt(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function Jn(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function Si(t,e){e||!gt?Ii(t):gt.addEventListener("resize",()=>Ii(t),{once:!0})}function Ii(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=Vr(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect(),o=n.getBoundingClientRect();if(o.top<i.top||o.bottom>i.top+n.clientHeight){let l=i.bottom;gt&&(l=Math.min(l,gt.offsetTop+gt.height));let s=o.top-i.top-((l-i.top)/2-o.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+s)),behavior:"smooth"})}}n=r.parentElement}}const Ja=c.createContext({});function Qa(){var t;return(t=c.useContext(Ja))!==null&&t!==void 0?t:{}}var Ki={};Ki={dismiss:"تجاهل"};var Mi={};Mi={dismiss:"Отхвърляне"};var Li={};Li={dismiss:"Odstranit"};var Fi={};Fi={dismiss:"Luk"};var Ai={};Ai={dismiss:"Schließen"};var Oi={};Oi={dismiss:"Απόρριψη"};var Bi={};Bi={dismiss:"Dismiss"};var Vi={};Vi={dismiss:"Descartar"};var zi={};zi={dismiss:"Lõpeta"};var Hi={};Hi={dismiss:"Hylkää"};var Ui={};Ui={dismiss:"Rejeter"};var Wi={};Wi={dismiss:"התעלם"};var ji={};ji={dismiss:"Odbaci"};var Gi={};Gi={dismiss:"Elutasítás"};var qi={};qi={dismiss:"Ignora"};var Yi={};Yi={dismiss:"閉じる"};var Xi={};Xi={dismiss:"무시"};var Zi={};Zi={dismiss:"Atmesti"};var Ji={};Ji={dismiss:"Nerādīt"};var Qi={};Qi={dismiss:"Lukk"};var Ri={};Ri={dismiss:"Negeren"};var eo={};eo={dismiss:"Zignoruj"};var to={};to={dismiss:"Descartar"};var no={};no={dismiss:"Dispensar"};var ro={};ro={dismiss:"Revocare"};var io={};io={dismiss:"Пропустить"};var oo={};oo={dismiss:"Zrušiť"};var lo={};lo={dismiss:"Opusti"};var so={};so={dismiss:"Odbaci"};var ao={};ao={dismiss:"Avvisa"};var co={};co={dismiss:"Kapat"};var uo={};uo={dismiss:"Скасувати"};var fo={};fo={dismiss:"取消"};var po={};po={dismiss:"關閉"};var ho={};ho={"ar-AE":Ki,"bg-BG":Mi,"cs-CZ":Li,"da-DK":Fi,"de-DE":Ai,"el-GR":Oi,"en-US":Bi,"es-ES":Vi,"et-EE":zi,"fi-FI":Hi,"fr-FR":Ui,"he-IL":Wi,"hr-HR":ji,"hu-HU":Gi,"it-IT":qi,"ja-JP":Yi,"ko-KR":Xi,"lt-LT":Zi,"lv-LV":Ji,"nb-NO":Qi,"nl-NL":Ri,"pl-PL":eo,"pt-BR":to,"pt-PT":no,"ro-RO":ro,"ru-RU":io,"sk-SK":oo,"sl-SI":lo,"sr-SP":so,"sv-SE":ao,"tr-TR":co,"uk-UA":uo,"zh-CN":fo,"zh-TW":po};const vo={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Ra(t={}){let{style:e,isFocusable:n}=t,[r,i]=c.useState(!1),{focusWithinProps:o}=Wn({isDisabled:!n,onFocusWithinChange:s=>i(s)}),l=c.useMemo(()=>r?e:e?{...vo,...e}:vo,[r]);return{visuallyHiddenProps:{...o,style:l}}}function Qn(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...o}=t,{visuallyHiddenProps:l}=Ra(t);return c.createElement(n,q(o,l),e)}function ec(t){return t&&t.__esModule?t.default:t}function tc(t){let{onDismiss:e,...n}=t,r=ca(ec(ho),"@react-aria/overlays"),i=St(n,r.format("dismiss")),o=()=>{e&&e()};return c.createElement(Qn,null,c.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}const nc=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let yt=new WeakMap,me=[];function rc(t,e){let n=ae(t==null?void 0:t[0]),r=e instanceof n.Element?{root:e}:e;var i;let o=(i=r==null?void 0:r.root)!==null&&i!==void 0?i:document.body,l=(r==null?void 0:r.shouldUseInert)&&nc,s=new Set(t),a=new Set,d=x=>l&&x instanceof n.HTMLElement?x.inert:x.getAttribute("aria-hidden")==="true",u=(x,E)=>{l&&x instanceof n.HTMLElement?x.inert=E:E?x.setAttribute("aria-hidden","true"):(x.removeAttribute("aria-hidden"),x instanceof n.HTMLElement&&(x.inert=!1))},p=new Set;if(Te())for(let x of t){let E=x;for(;E&&E!==o;){let C=E.getRootNode();"shadowRoot"in C&&p.add(C.shadowRoot),E=C.parentNode}}let v=x=>{for(let $ of x.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))s.add($);let E=$=>{if(a.has($)||s.has($)||$.parentElement&&a.has($.parentElement)&&$.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let z of s)if(H($,z))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},C=Sr(Z(x),x,NodeFilter.SHOW_ELEMENT,{acceptNode:E}),P=E(x);if(P===NodeFilter.FILTER_ACCEPT&&m(x),P!==NodeFilter.FILTER_REJECT){let $=C.nextNode();for(;$!=null;)m($),$=C.nextNode()}},m=x=>{var E;let C=(E=yt.get(x))!==null&&E!==void 0?E:0;d(x)&&C===0||(C===0&&u(x,!0),a.add(x),yt.set(x,C+1))};me.length&&me[me.length-1].disconnect(),v(o);let g=new MutationObserver(x=>{for(let E of x)if(E.type==="childList"){if(E.target.isConnected&&![...s,...a].some(C=>H(C,E.target)))for(let C of E.addedNodes)(C instanceof HTMLElement||C instanceof SVGElement)&&(C.dataset.liveAnnouncer==="true"||C.dataset.reactAriaTopLayer==="true")?s.add(C):C instanceof Element&&v(C);if(Te()){for(let C of p)if(!C.isConnected){g.disconnect();break}}}});g.observe(o,{childList:!0,subtree:!0});let b=new Set;if(Te())for(let x of p){let E=new MutationObserver(C=>{for(let P of C)if(P.type==="childList"){if(P.target.isConnected&&![...s,...a].some($=>H($,P.target)))for(let $ of P.addedNodes)($ instanceof HTMLElement||$ instanceof SVGElement)&&($.dataset.liveAnnouncer==="true"||$.dataset.reactAriaTopLayer==="true")?s.add($):$ instanceof Element&&v($);if(Te()){for(let $ of p)if(!$.isConnected){g.disconnect();break}}}});E.observe(x,{childList:!0,subtree:!0}),b.add(E)}let y={visibleNodes:s,hiddenNodes:a,observe(){g.observe(o,{childList:!0,subtree:!0})},disconnect(){g.disconnect()}};return me.push(y),()=>{if(g.disconnect(),Te())for(let x of b)x.disconnect();for(let x of a){let E=yt.get(x);E!=null&&(E===1?(u(x,!1),yt.delete(x)):yt.set(x,E-1))}y===me[me.length-1]?(me.pop(),me.length&&me[me.length-1].observe()):me.splice(me.indexOf(y),1)}}const mo=c.createContext(null);function ic(t){let e=Be(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,o]=c.useState(!1),l=c.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:s}=Qa();if(!t.portalContainer&&s&&(n=s()),!n)return null;let a=t.children;return t.disableFocusManagement||(a=c.createElement(La,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!r},a)),a=c.createElement(mo.Provider,{value:l},c.createElement(_a,null,a)),st.createPortal(a,n)}function bo(){let t=c.useContext(mo),e=t==null?void 0:t.setContain;R(()=>{e==null||e(!0)},[e])}function oc(t,e,n){let{overlayProps:r,underlayProps:i}=qa({...t,isOpen:e.isOpen,onClose:e.close},n);return Ya({isDisabled:!e.isOpen}),bo(),c.useEffect(()=>{if(e.isOpen&&n.current)return rc([n.current],{shouldUseInert:!0})},[e.isOpen,n]),{modalProps:q(r),underlayProps:i}}function lc(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=t;e=Pe(e);let l=Pe(),s={};n?(r=r?`${l} ${r}`:l,s={id:l,htmlFor:o==="label"?e:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let a=St({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:a}}function sc(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:o,fieldProps:l}=lc(t),s=pn([!!e,!!n,r,i]),a=pn([!!e,!!n,r,i]);return l=q(l,{"aria-describedby":[s,a,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:l,descriptionProps:{id:s},errorMessageProps:{id:a}}}function Rn(t){return Ts()?t.altKey:t.ctrlKey}function er(t,e){var n,r;let i=`[data-key="${CSS.escape(String(e))}"]`,o=(n=t.current)===null||n===void 0?void 0:n.dataset.collection;return o&&(i=`[data-collection="${CSS.escape(o)}"]${i}`),(r=t.current)===null||r===void 0?void 0:r.querySelector(i)}const go=new WeakMap;function ac(t){let e=Pe();return go.set(t,e),e}function cc(t){return go.get(t)}const dc=1e3;function uc(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=c.useRef({search:"",timeout:void 0}).current,o=l=>{let s=fc(l.key);if(!(!s||l.ctrlKey||l.metaKey||!H(l.currentTarget,I(l))||i.search.length===0&&s===" ")){if(s===" "&&i.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),i.search+=s,e.getKeyForSearch!=null){let a=e.getKeyForSearch(i.search,n.focusedKey);a==null&&(a=e.getKeyForSearch(i.search)),a!=null&&(n.setFocusedKey(a),r&&r(a))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},dc)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function fc(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function pc(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:l=!1,disallowSelectAll:s=!1,escapeKeyBehavior:a="clearSelection",selectOnFocus:d=e.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:p,allowsTabNavigation:v=!1,scrollRef:m=r,linkBehavior:g="action"}=t,{direction:b}=In(),y=gn(),x=N=>{if(N.altKey&&N.key==="Tab"&&N.preventDefault(),!r.current||!H(r.current,I(N)))return;const O=(B,J)=>{if(B!=null){if(e.isLink(B)&&g==="selection"&&d&&!Rn(N)){st.flushSync(()=>{e.setFocusedKey(B,J)});let ue=er(r,B),ke=e.getItemProps(B);ue&&y.open(ue,N,ke.href,ke.routerOptions);return}if(e.setFocusedKey(B,J),e.isLink(B)&&g==="override")return;N.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(B):d&&!Rn(N)&&e.replaceSelection(B)}};switch(N.key){case"ArrowDown":if(n.getKeyBelow){var G,X,Q;let B=e.focusedKey!=null?(G=n.getKeyBelow)===null||G===void 0?void 0:G.call(n,e.focusedKey):(X=n.getFirstKey)===null||X===void 0?void 0:X.call(n);B==null&&o&&(B=(Q=n.getFirstKey)===null||Q===void 0?void 0:Q.call(n,e.focusedKey)),B!=null&&(N.preventDefault(),O(B))}break;case"ArrowUp":if(n.getKeyAbove){var re,f,D;let B=e.focusedKey!=null?(re=n.getKeyAbove)===null||re===void 0?void 0:re.call(n,e.focusedKey):(f=n.getLastKey)===null||f===void 0?void 0:f.call(n);B==null&&o&&(B=(D=n.getLastKey)===null||D===void 0?void 0:D.call(n,e.focusedKey)),B!=null&&(N.preventDefault(),O(B))}break;case"ArrowLeft":if(n.getKeyLeftOf){var w,T,_;let B=e.focusedKey!=null?(w=n.getKeyLeftOf)===null||w===void 0?void 0:w.call(n,e.focusedKey):null;B==null&&o&&(B=b==="rtl"?(T=n.getFirstKey)===null||T===void 0?void 0:T.call(n,e.focusedKey):(_=n.getLastKey)===null||_===void 0?void 0:_.call(n,e.focusedKey)),B!=null&&(N.preventDefault(),O(B,b==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var S,U,se;let B=e.focusedKey!=null?(S=n.getKeyRightOf)===null||S===void 0?void 0:S.call(n,e.focusedKey):null;B==null&&o&&(B=b==="rtl"?(U=n.getLastKey)===null||U===void 0?void 0:U.call(n,e.focusedKey):(se=n.getFirstKey)===null||se===void 0?void 0:se.call(n,e.focusedKey)),B!=null&&(N.preventDefault(),O(B,b==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&N.shiftKey)return;N.preventDefault();let B=n.getFirstKey(e.focusedKey,et(N));e.setFocusedKey(B),B!=null&&(et(N)&&N.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(B):d&&e.replaceSelection(B))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&N.shiftKey)return;N.preventDefault();let B=n.getLastKey(e.focusedKey,et(N));e.setFocusedKey(B),B!=null&&(et(N)&&N.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(B):d&&e.replaceSelection(B))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let B=n.getKeyPageBelow(e.focusedKey);B!=null&&(N.preventDefault(),O(B))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let B=n.getKeyPageAbove(e.focusedKey);B!=null&&(N.preventDefault(),O(B))}break;case"a":et(N)&&e.selectionMode==="multiple"&&s!==!0&&(N.preventDefault(),e.selectAll());break;case"Escape":a==="clearSelection"&&!l&&e.selectedKeys.size!==0&&(N.stopPropagation(),N.preventDefault(),e.clearSelection());break;case"Tab":if(!v){if(N.shiftKey)r.current.focus();else{let B=Ee(r.current,{tabbable:!0}),J,ue;do ue=B.lastChild(),ue&&(J=ue);while(ue);let ke=ie();J&&(!hn(J)||ke&&!qr(ke))&&Ne(J)}break}}},E=c.useRef({top:0,left:0});It(m,"scroll",()=>{var N,O,G,X;E.current={top:(G=(N=m.current)===null||N===void 0?void 0:N.scrollTop)!==null&&G!==void 0?G:0,left:(X=(O=m.current)===null||O===void 0?void 0:O.scrollLeft)!==null&&X!==void 0?X:0}});let C=N=>{if(e.isFocused){H(N.currentTarget,I(N))||e.setFocused(!1);return}if(H(N.currentTarget,I(N))){if(e.setFocused(!0),e.focusedKey==null){var O,G;let re=D=>{D!=null&&(e.setFocusedKey(D),d&&!e.isSelected(D)&&e.replaceSelection(D))},f=N.relatedTarget;var X,Q;f&&N.currentTarget.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_FOLLOWING?re((X=e.lastSelectedKey)!==null&&X!==void 0?X:(O=n.getLastKey)===null||O===void 0?void 0:O.call(n)):re((Q=e.firstSelectedKey)!==null&&Q!==void 0?Q:(G=n.getFirstKey)===null||G===void 0?void 0:G.call(n))}else m.current&&(m.current.scrollTop=E.current.top,m.current.scrollLeft=E.current.left);if(e.focusedKey!=null&&m.current){let re=er(r,e.focusedKey);re instanceof HTMLElement&&(!hn(re)&&!p&&Ne(re),Ht()==="keyboard"&&Hr(re,{containingElement:r.current}))}}},P=N=>{H(N.currentTarget,N.relatedTarget)||e.setFocused(!1)},$=c.useRef(!1);It(r,zs,p?N=>{let{detail:O}=N;N.stopPropagation(),e.setFocused(!0),(O==null?void 0:O.focusStrategy)==="first"&&($.current=!0)}:void 0),Or(()=>{if($.current){var N,O;let G=(O=(N=n.getFirstKey)===null||N===void 0?void 0:N.call(n))!==null&&O!==void 0?O:null;if(G==null){let X=ie();Di(r.current),_i(X,null),e.collection.size>0&&($.current=!1)}else e.setFocusedKey(G),$.current=!1}},[e.collection]),Or(()=>{e.collection.size>0&&($.current=!1)},[e.focusedKey]),It(r,Vs,p?N=>{var O;N.stopPropagation(),e.setFocused(!1),!((O=N.detail)===null||O===void 0)&&O.clearFocusKey&&e.setFocusedKey(null)}:void 0);const z=c.useRef(i),F=c.useRef(!1);c.useEffect(()=>{if(z.current){var N,O;let Q=null;var G;i==="first"&&(Q=(G=(N=n.getFirstKey)===null||N===void 0?void 0:N.call(n))!==null&&G!==void 0?G:null);var X;i==="last"&&(Q=(X=(O=n.getLastKey)===null||O===void 0?void 0:O.call(n))!==null&&X!==void 0?X:null);let re=e.selectedKeys;if(re.size){for(let f of re)if(e.canSelectItem(f)){Q=f;break}}e.setFocused(!0),e.setFocusedKey(Q),Q==null&&!p&&r.current&&je(r.current),e.collection.size>0&&(z.current=!1,F.current=!0)}});let k=c.useRef(e.focusedKey),L=c.useRef(null);c.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==k.current||F.current)&&m.current&&r.current){let N=Ht(),O=er(r,e.focusedKey);if(!(O instanceof HTMLElement))return;(N==="keyboard"||F.current)&&(L.current&&cancelAnimationFrame(L.current),L.current=requestAnimationFrame(()=>{m.current&&(Cn(m.current,O),N!=="virtual"&&Hr(O,{containingElement:r.current}))}))}!p&&e.isFocused&&e.focusedKey==null&&k.current!=null&&r.current&&je(r.current),k.current=e.focusedKey,F.current=!1}),c.useEffect(()=>()=>{L.current&&cancelAnimationFrame(L.current)},[]),It(r,"react-aria-focus-scope-restore",N=>{N.preventDefault(),e.setFocused(!0)});let V={onKeyDown:x,onFocus:C,onBlur:P,onMouseDown(N){m.current===I(N)&&N.preventDefault()}},{typeSelectProps:ee}=uc({keyboardDelegate:n,selectionManager:e});u||(V=q(ee,V));let ne;p||(ne=e.focusedKey==null?0:-1);let Y=ac(e.collection);return{collectionProps:q(V,{tabIndex:ne,"data-collection":Y})}}function hc(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:s,isDisabled:a,onAction:d,allowsDifferentPressOrigin:u,linkBehavior:p="action"}=t,v=gn();e=Pe(e);let m=f=>{if(f.pointerType==="keyboard"&&Rn(f))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(p==="selection"&&i.current){let D=n.getItemProps(r);v.open(i.current,f,D.href,D.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(p==="override"||p==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):f&&f.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||f&&(et(f)||f.pointerType==="touch"||f.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};c.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?Di(i.current):s?s():ie()!==i.current&&i.current&&je(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),a=a||n.isDisabled(r);let g={};!l&&!a?g={tabIndex:r===n.focusedKey?0:-1,onFocus(f){I(f)===i.current&&n.setFocusedKey(r)}}:a&&(g.onMouseDown=f=>{f.preventDefault()}),c.useEffect(()=>{a&&n.focusedKey===r&&n.setFocusedKey(null)},[n,a,r]);let b=n.isLink(r)&&p==="override",y=d&&t.UNSTABLE_itemBehavior==="action",x=n.isLink(r)&&p!=="selection"&&p!=="none",E=!a&&n.canSelectItem(r)&&!b&&!y,C=(d||x)&&!a,P=C&&(n.selectionBehavior==="replace"?!E:!E||n.isEmpty),$=C&&E&&n.selectionBehavior==="replace",z=P||$,F=c.useRef(null),k=z&&E,L=c.useRef(!1),V=c.useRef(!1),ee=n.getItemProps(r),ne=f=>{if(d){var D;d(),(D=i.current)===null||D===void 0||D.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}x&&i.current&&v.open(i.current,f,ee.href,ee.routerOptions)},Y={ref:i};if(o?(Y.onPressStart=f=>{F.current=f.pointerType,L.current=k,f.pointerType==="keyboard"&&(!z||xo(f.key))&&m(f)},u?(Y.onPressUp=P?void 0:f=>{f.pointerType==="mouse"&&E&&m(f)},Y.onPress=P?ne:f=>{f.pointerType!=="keyboard"&&f.pointerType!=="mouse"&&E&&m(f)}):Y.onPress=f=>{if(P||$&&f.pointerType!=="mouse"){if(f.pointerType==="keyboard"&&!yo(f.key))return;ne(f)}else f.pointerType!=="keyboard"&&E&&m(f)}):(Y.onPressStart=f=>{F.current=f.pointerType,L.current=k,V.current=P,E&&(f.pointerType==="mouse"&&!P||f.pointerType==="keyboard"&&(!C||xo(f.key)))&&m(f)},Y.onPress=f=>{(f.pointerType==="touch"||f.pointerType==="pen"||f.pointerType==="virtual"||f.pointerType==="keyboard"&&z&&yo(f.key)||f.pointerType==="mouse"&&V.current)&&(z?ne(f):E&&m(f))}),g["data-collection"]=cc(n.collection),g["data-key"]=r,Y.preventFocusOnPress=l,l&&(Y=q(Y,{onPressStart(f){f.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(f){f.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),ee)for(let f of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])ee[f]&&(Y[f]=ct(Y[f],ee[f]));let{pressProps:N,isPressed:O}=rt(Y),G=$?f=>{F.current==="mouse"&&(f.stopPropagation(),f.preventDefault(),ne(f))}:void 0,{longPressProps:X}=Ma({isDisabled:!k,onLongPress(f){f.pointerType==="touch"&&(m(f),n.setSelectionBehavior("toggle"))}}),Q=f=>{F.current==="touch"&&L.current&&f.preventDefault()},re=p!=="none"&&n.isLink(r)?f=>{De.isOpening||f.preventDefault()}:void 0;return{itemProps:q(g,E||P||l&&!a?N:{},k?X:{},{onDoubleClick:G,onDragStartCapture:Q,onClick:re,id:e},l?{onMouseDown:f=>f.preventDefault()}:void 0),isPressed:O,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:a,allowsSelection:E,hasAction:z}}function yo(t){return t==="Enter"}function xo(t){return t===" "}class vc{build(e,n){return this.context=n,wo(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(c.isValidElement(n)&&n.type===c.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];c.Children.forEach(n,l=>{l&&i.push(l)});let o=0;for(let l of i){let s=this.getFullNode({element:l,index:o},{});for(let a of s)o++,yield a}}}getKey(e,n,r,i){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var l;let s=(l=o.key)!==null&&l!==void 0?l:o.id;if(s==null)throw new Error("No key found for item");return s}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,r,i){if(c.isValidElement(e.element)&&e.element.type===c.Fragment){let y=[];c.Children.forEach(e.element.props.children,E=>{y.push(E)});var o;let x=(o=e.index)!==null&&o!==void 0?o:0;for(const E of y)yield*this.getFullNode({element:E,index:x++},n,r,i);return}let l=e.element;if(!l&&e.value&&n&&n.renderer){let y=this.cache.get(e.value);if(y&&(!y.shouldInvalidate||!y.shouldInvalidate(this.context))){y.index=e.index,y.parentKey=i?i.key:null,yield y;return}l=n.renderer(e.value)}if(c.isValidElement(l)){let y=l.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let P=l.type;throw new Error(`Unknown element <${P}> in collection.`)}let x=y.getCollectionNode(l.props,this.context);var s;let E=(s=e.index)!==null&&s!==void 0?s:0,C=x.next();for(;!C.done&&C.value;){let P=C.value;e.index=E;var a;let $=(a=P.key)!==null&&a!==void 0?a:null;$==null&&($=P.element?null:this.getKey(l,e,n,r));let F=[...this.getFullNode({...P,key:$,index:E,wrapper:mc(e.wrapper,P.wrapper)},this.getChildState(n,P),r?`${r}${l.key}`:l.key,i)];for(let k of F){var d,u;k.value=(u=(d=P.value)!==null&&d!==void 0?d:e.value)!==null&&u!==void 0?u:null,k.value&&this.cache.set(k.value,k);var p;if(e.type&&k.type!==e.type)throw new Error(`Unsupported type <${tr(k.type)}> in <${tr((p=i==null?void 0:i.type)!==null&&p!==void 0?p:"unknown parent type")}>. Only <${tr(e.type)}> is supported.`);E++,yield k}C=x.next(F)}return}if(e.key==null||e.type==null)return;let v=this;var m,g;let b={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(m=e.value)!==null&&m!==void 0?m:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:(g=e.textValue)!==null&&g!==void 0?g:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:wo(function*(){if(!e.hasChildNodes||!e.childNodes)return;let y=0;for(let x of e.childNodes()){x.key!=null&&(x.key=`${b.key}${x.key}`);let E=v.getFullNode({...x,index:y},v.getChildState(n,x),b.key,b);for(let C of E)y++,yield C}})};yield b}constructor(){this.cache=new WeakMap}}function wo(t){let e=[],n=null;return{*[Symbol.iterator](){for(let r of e)yield r;n||(n=t());for(let r of n)e.push(r),yield r}}}function mc(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function tr(t){return t[0].toUpperCase()+t.slice(1)}function bc(t,e,n){let r=c.useMemo(()=>new vc,[]),{children:i,items:o,collection:l}=t;return c.useMemo(()=>{if(l)return l;let a=r.build({children:i,items:o},n);return e(a)},[r,i,o,l,n,e])}function gc(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function yc(t){return xc(t)}function xc(t,e){for(let n of t)return n}function nr(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...Eo(t,e),e],i=[...Eo(t,n),n],o=r.slice(0,i.length).findIndex((l,s)=>l!==i[s]);return o!==-1?(e=r[o],n=i[o],e.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===e)>=0,-1)}function Eo(t,e){let n=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}const Co={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},ko={...Co,customError:!0,valid:!1},it={isInvalid:!1,validationDetails:Co,validationErrors:[]},wc=c.createContext({}),Zt="__formValidationState"+Date.now();function rr(t){if(t[Zt]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=t[Zt];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return Ec(t)}function Ec(t){let{isInvalid:e,validationState:n,name:r,value:i,builtinValidation:o,validate:l,validationBehavior:s="aria"}=t;n&&(e||(e=n==="invalid"));let a=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:ko}:null,d=c.useMemo(()=>{if(!l||i==null)return null;let V=Cc(l,i);return Po(V)},[l,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let u=c.useContext(wc),p=c.useMemo(()=>r?Array.isArray(r)?r.flatMap(V=>ir(u[V])):ir(u[r]):[],[u,r]),[v,m]=c.useState(u),[g,b]=c.useState(!1);u!==v&&(m(u),b(!1));let y=c.useMemo(()=>Po(g?[]:p),[g,p]),x=c.useRef(it),[E,C]=c.useState(it),P=c.useRef(it),$=()=>{if(!z)return;F(!1);let V=d||o||x.current;or(V,P.current)||(P.current=V,C(V))},[z,F]=c.useState(!1);return c.useEffect($),{realtimeValidation:a||y||d||o||it,displayValidation:s==="native"?a||y||E:a||y||d||o||E,updateValidation(V){s==="aria"&&!or(E,V)?C(V):x.current=V},resetValidation(){let V=it;or(V,P.current)||(P.current=V,C(V)),s==="native"&&F(!1),b(!0)},commitValidation(){s==="native"&&F(!0),b(!0)}}}function ir(t){return t?Array.isArray(t)?t:[t]:[]}function Cc(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return ir(n)}return[]}function Po(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:ko}:null}function or(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((n,r)=>n===e.validationErrors[r])&&Object.entries(t.validationDetails).every(([n,r])=>e.validationDetails[n]===r)}function To(t,e,n){let{validationBehavior:r,focus:i}=t;R(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let d=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(d),n.current.hasAttribute("title")||(n.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(Pc(n.current))}});let o=c.useRef(!1),l=ge(()=>{o.current||e.resetValidation()}),s=ge(d=>{var u;e.displayValidation.isInvalid||e.commitValidation();let p=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!d.defaultPrevented&&n&&p&&Tc(p)===n.current){var v;i?i():(v=n.current)===null||v===void 0||v.focus(),ka("keyboard")}d.preventDefault()}),a=ge(()=>{e.commitValidation()});c.useEffect(()=>{let d=n==null?void 0:n.current;if(!d)return;let u=d.form,p=u==null?void 0:u.reset;return u&&(u.reset=()=>{o.current=!window.event||window.event.type==="message"&&I(window.event)instanceof MessagePort,p==null||p.call(u),o.current=!1}),d.addEventListener("invalid",s),d.addEventListener("change",a),u==null||u.addEventListener("reset",l),()=>{d.removeEventListener("invalid",s),d.removeEventListener("change",a),u==null||u.removeEventListener("reset",l),u&&(u.reset=p)}},[n,r])}function kc(t){let e=t.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function Pc(t){return{isInvalid:!t.validity.valid,validationDetails:kc(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function Tc(t){for(let n=0;n<t.elements.length;n++){var e;let r=t.elements[n];if(((e=r.validity)===null||e===void 0?void 0:e.valid)===!1)return r}return null}function Nc(t,e){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,type:l="text",validationBehavior:s="aria"}=t,[a,d]=ft(t.value,t.defaultValue||"",t.onChange),{focusableProps:u}=Ut(t,e),p=rr({...t,value:a}),{isInvalid:v,validationErrors:m,validationDetails:g}=p.displayValidation,{labelProps:b,fieldProps:y,descriptionProps:x,errorMessageProps:E}=sc({...t,isInvalid:v,errorMessage:t.errorMessage||m}),C=ce(t,{labelable:!0});const P={type:l,pattern:t.pattern};let[$]=c.useState(a);var z;return Ur(e,(z=t.defaultValue)!==null&&z!==void 0?z:$,d),To(t,p,e),{labelProps:b,inputProps:q(C,n==="input"?P:void 0,{disabled:r,readOnly:o,required:i&&s==="native","aria-required":i&&s==="aria"||void 0,"aria-invalid":v||void 0,"aria-errormessage":t["aria-errormessage"],"aria-activedescendant":t["aria-activedescendant"],"aria-autocomplete":t["aria-autocomplete"],"aria-haspopup":t["aria-haspopup"],"aria-controls":t["aria-controls"],value:a,onChange:F=>d(I(F).value),autoComplete:t.autoComplete,autoCapitalize:t.autoCapitalize,maxLength:t.maxLength,minLength:t.minLength,name:t.name,form:t.form,placeholder:t.placeholder,inputMode:t.inputMode,autoCorrect:t.autoCorrect,spellCheck:t.spellCheck,[parseInt(c.version,10)>=17?"enterKeyHint":"enterkeyhint"]:t.enterKeyHint,onCopy:t.onCopy,onCut:t.onCut,onPaste:t.onPaste,onCompositionEnd:t.onCompositionEnd,onCompositionStart:t.onCompositionStart,onCompositionUpdate:t.onCompositionUpdate,onSelect:t.onSelect,onBeforeInput:t.onBeforeInput,onInput:t.onInput,...u,...y}),descriptionProps:x,errorMessageProps:E,isInvalid:v,validationErrors:m,validationDetails:g}}class xt{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,n,r){let i=this.clone();return n.addDescendants(i,e),i}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}}class No extends xt{filter(e,n,r){let[i,o]=$o(e,n,this.firstChildKey,r),l=this.clone();return l.firstChildKey=i,l.lastChildKey=o,l}}class $c extends xt{}$c.type="header";class Dc extends xt{}Dc.type="loader";class _c extends No{filter(e,n,r){if(r(this.textValue,this)){let i=this.clone();return n.addDescendants(i,e),i}return null}}_c.type="item";class Sc extends No{filter(e,n,r){let i=super.filter(e,n,r);if(i&&i.lastChildKey!==null){let o=e.getItem(i.lastChildKey);if(o&&o.type!=="header")return i}return null}}Sc.type="section";class Ic{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(e),i=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?n.get(i.nextKey):void 0}}}getKeyBefore(e){let n=this.keyMap.get(e);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(e){let n=this.keyMap.get(e);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,n=new e;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n.itemCount=this.itemCount,n}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,n){this.addNode(e);let r=n.getChildren(e.key);for(let i of r)this.addDescendants(i,n)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(e);n!=null&&n.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=n,this.frozen=!r}filter(e){let n=new this.constructor,[r,i]=$o(this,n,this.firstKey,e);return n==null||n.commit(r,i),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function $o(t,e,n,r){if(n==null)return[null,null];let i=null,o=null,l=t.getItem(n);for(;l!=null;){let d=l.filter(t,e,r);d!=null&&(d.nextKey=null,o&&(d.prevKey=o.key,o.nextKey=d.key),i==null&&(i=d),e.addNode(d),o=d),l=l.nextKey?t.getItem(l.nextKey):null}if(o&&o.type==="separator"){let d=o.prevKey;e.removeNode(o.key),d?(o=e.getItem(d),o.nextKey=null):o=null}var s,a;return[(s=i==null?void 0:i.key)!==null&&s!==void 0?s:null,(a=o==null?void 0:o.key)!==null&&a!==void 0?a:null]}class Do{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,n){if(n==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=n,e.previousSibling=n.previousSibling,e.index=n.index-1,this.firstChild===n?this.firstChild=e:n.previousSibling&&(n.previousSibling.nextSibling=e),n.previousSibling=e,e.parentNode=n.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}}class ot extends Do{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){var e;return this.parentNode instanceof ot?this.parentNode.level+(((e=this.parentNode.node)===null||e===void 0?void 0:e.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var e,n,r,i,o,l,s,a;let d=this.nextVisibleSibling,u=this.getMutableNode();if(u!=null){u.index=this.index,u.level=this.level;var p;u.parentKey=this.parentNode instanceof ot&&(p=(e=this.parentNode.node)===null||e===void 0?void 0:e.key)!==null&&p!==void 0?p:null;var v;u.prevKey=(v=(r=this.previousVisibleSibling)===null||r===void 0||(n=r.node)===null||n===void 0?void 0:n.key)!==null&&v!==void 0?v:null;var m;u.nextKey=(m=d==null||(i=d.node)===null||i===void 0?void 0:i.key)!==null&&m!==void 0?m:null,u.hasChildNodes=!!this.firstChild;var g;u.firstChildKey=(g=(l=this.firstVisibleChild)===null||l===void 0||(o=l.node)===null||o===void 0?void 0:o.key)!==null&&g!==void 0?g:null;var b;if(u.lastChildKey=(b=(a=this.lastVisibleChild)===null||a===void 0||(s=a.node)===null||s===void 0?void 0:s.key)!==null&&b!==void 0?b:null,(u.colSpan!=null||u.colIndex!=null)&&d){var y,x;let E=((y=u.colIndex)!==null&&y!==void 0?y:u.index)+((x=u.colSpan)!==null&&x!==void 0?x:1);if(d.node!=null&&E!==d.node.colIndex){let C=d.getMutableNode();C.colIndex=E}}}}setProps(e,n,r,i,o){let l,{value:s,textValue:a,id:d,...u}=e;if(this.node==null?(l=new r(d??`react-aria-${++this.ownerDocument.nodeId}`),this.node=l):l=this.getMutableNode(),u.ref=n,l.props=u,l.rendered=i,l.render=o,l.value=s,e["aria-label"]&&(l["aria-label"]=e["aria-label"]),l.textValue=a||(typeof u.children=="string"?u.children:"")||e["aria-label"]||"",d!=null&&d!==l.key)throw new Error("Cannot change the id of an item");u.colSpan!=null&&(l.colSpan=u.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(n){let r=n==="none";if(e.isHidden!==r){var i,o;(((i=e.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===e||((o=e.parentNode)===null||o===void 0?void 0:o.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let l=e.previousVisibleSibling,s=e.nextVisibleSibling;l&&e.ownerDocument.markDirty(l),s&&e.ownerDocument.markDirty(s),e.isHidden=r,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}}class Kc extends Do{get isConnected(){return!0}createElement(e){return new ot(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let n=this.getMutableCollection();if(!n.getItem(e.node.key))for(let r of e)this.addNode(r);n.addNode(e.node)}removeNode(e){for(let n of e)this.removeNode(n);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let s of this.dirtyNodes)s instanceof ot&&(!s.isConnected||s.isHidden)?this.removeNode(s):s.updateChildIndices();for(let s of this.dirtyNodes)s instanceof ot?(s.isConnected&&!s.isHidden&&(s.updateNode(),this.addNode(s)),s.node&&this.dirtyNodes.delete(s),s.isMutated=!1):this.dirtyNodes.delete(s);if(this.nextCollection){var e,n,r,i,o,l;this.nextCollection.commit((o=(n=this.firstVisibleChild)===null||n===void 0||(e=n.node)===null||e===void 0?void 0:e.key)!==null&&o!==void 0?o:null,(l=(i=this.lastVisibleChild)===null||i===void 0||(r=i.node)===null||r===void 0?void 0:r.key)!==null&&l!==void 0?l:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone());for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}}function _o(t){let{children:e,items:n,idScope:r,addIdAndValue:i,dependencies:o=[]}=t,l=c.useMemo(()=>new WeakMap,o);return c.useMemo(()=>{if(n&&typeof e=="function"){let d=[];for(let u of n){let p=l.get(u);if(!p){p=e(u);var s,a;let v=(a=(s=p.props.id)!==null&&s!==void 0?s:u.key)!==null&&a!==void 0?a:u.id;if(v==null)throw new Error("Could not determine key for item");r!=null&&(v=r+":"+v),p=c.cloneElement(p,i?{key:v,id:v,value:u}:{key:v}),l.set(u,p)}d.push(p)}return d}else if(typeof e!="function")return e},[e,n,l,r,i])}typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.appendChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.removeChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(t,e){return this.content.insertBefore(t,e)}}));const lr=c.createContext(!1);function Mc(t){if(c.useContext(lr))return c.createElement(c.Fragment,null,t.children);let n=c.createElement(lr.Provider,{value:!0},t.children);return c.createElement("template",null,n)}function wt(t){let e=(n,r)=>c.useContext(lr)?null:t(n,r);return e.displayName=t.displayName||t.name,c.forwardRef(e)}var Jt={exports:{}},sr={};/**
13
13
  * @license React
14
14
  * use-sync-external-store-shim.production.js
15
15
  *
@@ -17,7 +17,7 @@
17
17
  *
18
18
  * This source code is licensed under the MIT license found in the
19
19
  * LICENSE file in the root directory of this source tree.
20
- */var Xl;function Cd(){if(Xl)return dr;Xl=1;var t=c;function e(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,i=t.useEffect,l=t.useLayoutEffect,o=t.useDebugValue;function s(p,v){var m=v(),g=r({inst:{value:m,getSnapshot:v}}),b=g[0].inst,y=g[1];return l(function(){b.value=m,b.getSnapshot=v,a(b)&&y({inst:b})},[p,m,v]),i(function(){return a(b)&&y({inst:b}),p(function(){a(b)&&y({inst:b})})},[p]),o(m),m}function a(p){var v=p.getSnapshot;p=p.value;try{var m=v();return!n(p,m)}catch{return!0}}function d(p,v){return v()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:s;return dr.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:u,dr}var ur={};/**
20
+ */var So;function Lc(){if(So)return sr;So=1;var t=c;function e(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,i=t.useEffect,o=t.useLayoutEffect,l=t.useDebugValue;function s(p,v){var m=v(),g=r({inst:{value:m,getSnapshot:v}}),b=g[0].inst,y=g[1];return o(function(){b.value=m,b.getSnapshot=v,a(b)&&y({inst:b})},[p,m,v]),i(function(){return a(b)&&y({inst:b}),p(function(){a(b)&&y({inst:b})})},[p]),l(m),m}function a(p){var v=p.getSnapshot;p=p.value;try{var m=v();return!n(p,m)}catch{return!0}}function d(p,v){return v()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:s;return sr.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:u,sr}var ar={};/**
21
21
  * @license React
22
22
  * use-sync-external-store-shim.development.js
23
23
  *
@@ -25,4 +25,4 @@
25
25
  *
26
26
  * This source code is licensed under the MIT license found in the
27
27
  * LICENSE file in the root directory of this source tree.
28
- */var Zl;function Pd(){return Zl||(Zl=1,process.env.NODE_ENV!=="production"&&(function(){function t(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}function e(m,g){u||i.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var b=g();if(!p){var y=g();l(b,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}y=o({inst:{value:b,getSnapshot:g}});var x=y[0].inst,E=y[1];return a(function(){x.value=b,x.getSnapshot=g,n(x)&&E({inst:x})},[m,b,g]),s(function(){return n(x)&&E({inst:x}),m(function(){n(x)&&E({inst:x})})},[m]),d(b),b}function n(m){var g=m.getSnapshot;m=m.value;try{var b=g();return!l(m,b)}catch{return!0}}function r(m,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=c,l=typeof Object.is=="function"?Object.is:t,o=i.useState,s=i.useEffect,a=i.useLayoutEffect,d=i.useDebugValue,u=!1,p=!1,v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;ur.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:v,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ur}var Jl;function kd(){return Jl||(Jl=1,process.env.NODE_ENV==="production"?Rt.exports=Cd():Rt.exports=Pd()),Rt.exports}var Td=kd();const Ql=c.createContext(!1),Ct=c.createContext(null);function Nd(t){if(c.useContext(Ct))return t.content;let{collection:n,document:r}=Id(t.createCollection);return c.createElement(c.Fragment,null,c.createElement(Ed,null,c.createElement(Ct.Provider,{value:r},t.content)),c.createElement($d,{render:t.children,collection:n}))}function $d({collection:t,render:e}){return e(t)}function Dd(t,e,n){let r=ze(),i=c.useRef(r);i.current=r;let l=c.useCallback(()=>i.current?n():e(),[e,n]);return Td.useSyncExternalStore(t,l)}const Sd=typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore:Dd;function Id(t){let[e]=c.useState(()=>new wd((t==null?void 0:t())||new xd)),n=c.useCallback(o=>e.subscribe(o),[e]),r=c.useCallback(()=>{let o=e.getCollection();return e.isSSR&&e.resetAfterSSR(),o},[e]),i=c.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]);return{collection:Sd(n,r,i),document:e}}const fr=c.createContext(null);function _d(t){var e;return e=class extends wt{},e.type=t,e}function Kd(t,e,n,r,i,l){typeof t=="string"&&(t=_d(t));let o=c.useCallback(a=>{a==null||a.setProps(e,n,t,r,l)},[e,n,r,l,t]),s=c.useContext(fr);if(s){let a=s.ownerDocument.nodesByProps.get(e);return a||(a=s.ownerDocument.createElement(t.type),a.setProps(e,n,t,r,l),s.appendChild(a),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(e,a)),i?c.createElement(fr.Provider,{value:a},i):null}return c.createElement(t.type,{ref:o},i)}function Md(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=c.forwardRef((i,l)=>{let o=c.useContext(Gn);if(!c.useContext(Ql)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,l)}return Kd(t,i,l,"children"in i?i.children:null,null,a=>c.createElement(Gn.Provider,{value:o},c.createElement(n,{node:a})))});return r.displayName=e.name,r}function Ld(t){return Yl({...t,addIdAndValue:!0})}const Rl=c.createContext(null);function Fd(t){let e=c.useContext(Rl),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies);var r;let i=(r=t.idScope)!==null&&r!==void 0?r:e==null?void 0:e.idScope,l=Ld({...t,idScope:i,dependencies:n});return c.useContext(Ct)&&(l=c.createElement(Ad,null,l)),e=c.useMemo(()=>({dependencies:n,idScope:i}),[i,...n]),c.createElement(Rl.Provider,{value:e},l)}function Ad({children:t}){let e=c.useContext(Ct),n=c.useMemo(()=>c.createElement(Ct.Provider,{value:null},c.createElement(Ql.Provider,{value:!0},t)),[t]);return ze()?c.createElement(fr.Provider,{value:e},n):st.createPortal(n,e)}const eo={CollectionRoot({collection:t,renderDropIndicator:e}){return to(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return to(t,e,n)}};function to(t,e,n){return Yl({items:e?t.getChildren(e.key):t,dependencies:[n],children(r){if(r.type==="content")return c.createElement(c.Fragment,null);let i=r.render(r);return!n||r.type!=="item"?i:c.createElement(c.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),i,Od(t,r,n))}})}function Od(t,e,n){let r=e.key,i=t.getKeyAfter(r),l=i!=null?t.getItem(i):null;for(;l!=null&&l.type!=="item";)i=t.getKeyAfter(l.key),l=i!=null?t.getItem(i):null;let o=e.nextKey!=null?t.getItem(e.nextKey):null;for(;o!=null&&o.type!=="item";)o=o.nextKey!=null?t.getItem(o.nextKey):null;let s=[];if(o==null){let a=e;for(;(a==null?void 0:a.type)==="item"&&(!l||a.parentKey!==l.parentKey&&l.level<a.level);){let d=n({type:"item",key:a.key,dropPosition:"after"});c.isValidElement(d)&&s.push(c.cloneElement(d,{key:`${a.key}-after`})),a=a.parentKey!=null?t.getItem(a.parentKey):null}}return s}const no=c.createContext(eo);function Bd(t){return c.useMemo(()=>t!=null?new Set([t]):null,[t])}function Vd(t,e){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:l,onPressEnd:o,onPressUp:s,onPressChange:a,preventFocusOnPress:d,allowFocusWhenDisabled:u,onClick:p,href:v,target:m,rel:g,type:b="button"}=t,y;n==="button"?y={type:b,disabled:r,form:t.form,formAction:t.formAction,formEncType:t.formEncType,formMethod:t.formMethod,formNoValidate:t.formNoValidate,formTarget:t.formTarget,name:t.name,value:t.value}:y={role:"button",href:n==="a"&&!r?v:void 0,target:n==="a"?m:void 0,type:n==="input"?b:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?g:void 0};let{pressProps:x,isPressed:E}=rt({onPressStart:l,onPressEnd:o,onPressChange:a,onPress:i,onPressUp:s,onClick:p,isDisabled:r,preventFocusOnPress:d,ref:e}),{focusableProps:C}=jt(t,e);u&&(C.tabIndex=r?-1:C.tabIndex);let k=q(C,x,ce(t,{labelable:!0}));return{isPressed:E,buttonProps:q(y,k,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],"aria-current":t["aria-current"],"aria-disabled":t["aria-disabled"]})}}function ro(t,e,n){let{isDisabled:r=!1,isReadOnly:i=!1,value:l,name:o,form:s,children:a,"aria-label":d,"aria-labelledby":u,validationState:p="valid",isInvalid:v,onPressStart:m,onPressEnd:g,onPressChange:b,onPress:y,onPressUp:x,onClick:E}=t,C=Y=>{Y.stopPropagation(),e.setSelected(_(Y).checked)},k=a!=null,$=d!=null||u!=null;!k&&!$&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:z,isPressed:F}=rt({onPressStart:m,onPressEnd:g,onPressChange:b,onPress:y,onPressUp:x,onClick:E,isDisabled:r}),{pressProps:P,isPressed:L}=rt({onPressStart:m,onPressEnd:g,onPressChange:b,onPressUp:x,onClick:E,onPress(Y){var N;y==null||y(Y),e.toggle(),(N=n.current)===null||N===void 0||N.focus()},isDisabled:r||i}),{focusableProps:V}=jt(t,n),ee=q(z,V),ne=ce(t,{labelable:!0});return ai(n,e.defaultSelected,e.setSelected),{labelProps:q(P,{onClick:Y=>Y.preventDefault()}),inputProps:q(ne,{"aria-invalid":v||p==="invalid"||void 0,"aria-errormessage":t["aria-errormessage"],"aria-controls":t["aria-controls"],"aria-readonly":i||void 0,onChange:C,disabled:r,...l==null?{}:{value:l},name:o,form:s,type:"checkbox",...ee}),isSelected:e.isSelected,isPressed:F||L,isDisabled:r,isReadOnly:i,isInvalid:v||p==="invalid"}}function io(t,e,n){let r=or({...t,value:e.isSelected}),{isInvalid:i,validationErrors:l,validationDetails:o}=r.displayValidation,{labelProps:s,inputProps:a,isSelected:d,isPressed:u,isDisabled:p,isReadOnly:v}=ro({...t,isInvalid:i},e,n);Wl(t,r,n);let{isIndeterminate:m,isRequired:g,validationBehavior:b="aria"}=t;c.useEffect(()=>{n.current&&(n.current.indeterminate=!!m)});let{pressProps:y}=rt({isDisabled:p||v,onPress(){let{[Qt]:x}=t,{commitValidation:E}=x||r;E()}});return{labelProps:q(s,y,c.useMemo(()=>({onMouseDown:x=>x.preventDefault()}),[])),inputProps:{...a,checked:d,"aria-required":g&&b==="aria"||void 0,required:g&&b==="native"},isSelected:d,isPressed:u,isDisabled:p,isReadOnly:v,isInvalid:i,validationErrors:l,validationDetails:o}}const zd=new WeakMap;function pr(t={}){let{isReadOnly:e}=t,[n,r]=pt(t.isSelected,t.defaultSelected||!1,t.onChange),[i]=c.useState(n);function l(a){e||r(a)}function o(){e||r(!n)}var s;return{isSelected:n,defaultSelected:(s=t.defaultSelected)!==null&&s!==void 0?s:i,setSelected:l,toggle:o}}function Hd(t,e,n){const r=pr({isReadOnly:t.isReadOnly||e.isReadOnly,isSelected:e.isSelected(t.value),defaultSelected:e.defaultValue.includes(t.value),onChange(x){x?e.addValue(t.value):e.removeValue(t.value),t.onChange&&t.onChange(x)}});let{name:i,form:l,descriptionId:o,errorMessageId:s,validationBehavior:a}=zd.get(e);var d;a=(d=t.validationBehavior)!==null&&d!==void 0?d:a;let{realtimeValidation:u}=or({...t,value:r.isSelected,name:void 0,validationBehavior:"aria"}),p=c.useRef(it),v=()=>{e.setInvalid(t.value,u.isInvalid?u:p.current)};c.useEffect(v);let m=e.realtimeValidation.isInvalid?e.realtimeValidation:u,g=a==="native"?e.displayValidation:m;var b;let y=io({...t,isReadOnly:t.isReadOnly||e.isReadOnly,isDisabled:t.isDisabled||e.isDisabled,name:t.name||i,form:t.form||l,isRequired:(b=t.isRequired)!==null&&b!==void 0?b:e.isRequired,validationBehavior:a,[Qt]:{realtimeValidation:m,displayValidation:g,resetValidation:e.resetValidation,commitValidation:e.commitValidation,updateValidation(x){p.current=x,v()}}},r,n);return{...y,inputProps:{...y.inputProps,"aria-describedby":[t["aria-describedby"],e.isInvalid?s:null,o].filter(Boolean).join(" ")||void 0}}}function Ud(t,e){let{role:n="dialog"}=t,r=mn();r=t["aria-label"]?void 0:r;let i=c.useRef(!1);return c.useEffect(()=>{if(e.current&&!bn(e.current)){qe(e.current);let l=setTimeout(()=>{(ie()===e.current||ie()===document.body)&&(i.current=!0,e.current&&(e.current.blur(),qe(e.current)),i.current=!1)},500);return()=>{clearTimeout(l)}}},[e]),Ll(),{dialogProps:{...ce(t,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||r,onBlur:l=>{i.current&&l.stopPropagation()}},titleProps:{id:r}}}function Wd(t,e,n){let{labelProps:r,inputProps:i,isSelected:l,isPressed:o,isDisabled:s,isReadOnly:a}=ro(t,e,n);return{labelProps:r,inputProps:{...i,role:"switch",checked:l},isSelected:l,isPressed:o,isDisabled:s,isReadOnly:a}}const lo=new WeakMap;function en(t,e,n){if(!t)return"";typeof e=="string"&&(e=e.replace(/\s+/g,""));let r=lo.get(t);return process.env.NODE_ENV!=="production"&&!r&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${r}-${n}-${e}`}function jd(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:l}=t,{selectionManager:o,selectedKey:s}=e,a=r===s,d=i||e.isDisabled||e.selectionManager.isDisabled(r),{itemProps:u,isPressed:p}=nd({selectionManager:o,key:r,ref:n,isDisabled:d,shouldSelectOnPressUp:l,linkBehavior:"selection"}),v=en(e,r,"tab"),m=en(e,r,"tabpanel"),{tabIndex:g}=u,b=e.collection.getItem(r),y=ce(b==null?void 0:b.props,{labelable:!0});delete y.id;let x=xa(b==null?void 0:b.props),{focusableProps:E}=jt({...b==null?void 0:b.props,isDisabled:d},n);return{tabProps:q(y,E,x,u,{id:v,"aria-selected":a,"aria-disabled":d||void 0,"aria-controls":a?m:void 0,tabIndex:d?void 0:g,role:"tab"}),isSelected:a,isDisabled:d,isPressed:p}}function Gd(t,e,n){let r=_c(n)?void 0:0;var i;const l=en(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),o=Kt({...t,id:l,"aria-labelledby":en(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:q(o,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class qd{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var n,r;return this.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let n=e;do n=this.collection.getKeyAfter(n),n==null&&(n=this.collection.getFirstKey());while(n!=null&&this.isDisabled(n));return n}getPreviousKey(e){let n=e;do n=this.collection.getKeyBefore(n),n==null&&(n=this.collection.getLastKey());while(n!=null&&this.isDisabled(n));return n}constructor(e,n,r,i=new Set){this.collection=e,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}}function Yd(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:l,selectionManager:o,disabledKeys:s}=e,{direction:a}=Ln(),d=c.useMemo(()=>new qd(l,a,r,s),[l,s,r,a]),{collectionProps:u}=td({ref:n,selectionManager:o,keyboardDelegate:d,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),p=Te();lo.set(e,p);let v=Kt({...t,id:p});return{tabListProps:{...q(u,v),role:"tablist","aria-orientation":r,tabIndex:void 0}}}const oo=c.createContext({}),Xd=Et(function(e,n){[e,n]=ge(e,n,oo);let{elementType:r="label",...i}=e,l=de[r];return c.createElement(l,{className:"react-aria-Label",...i,ref:n})}),Zd=c.createContext(null),so=c.createContext({}),Jd=Et(function(e,n){[e,n]=ge(e,n,so);let r=e,{isPending:i}=r,{buttonProps:l,isPressed:o}=Vd(e,n);l=Rd(l,i);let{focusProps:s,isFocused:a,isFocusVisible:d}=Xe(e),{hoverProps:u,isHovered:p}=bt({...e,isDisabled:e.isDisabled||i}),v={isHovered:p,isPressed:(r.isPressed||o)&&!i,isFocused:a,isFocusVisible:d,isDisabled:e.isDisabled||!1,isPending:i??!1},m=pe({...e,values:v,defaultClassName:"react-aria-Button"}),g=Te(l.id),b=Te(),y=l["aria-labelledby"];i&&(y?y=`${y} ${b}`:l["aria-label"]&&(y=`${g} ${b}`));let x=c.useRef(i);c.useEffect(()=>{let C={"aria-labelledby":y||g};(!x.current&&a&&i||x.current&&a&&!i)&&mi(C,"assertive"),x.current=i},[i,a,y,g]);let E=ce(e,{global:!0});return delete E.onClick,c.createElement(de.button,{...q(E,m,l,s,u),type:l.type==="submit"&&i?"button":l.type,id:g,ref:n,"aria-labelledby":y,slot:e.slot||void 0,"aria-disabled":i?"true":l["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":v.isPressed||void 0,"data-hovered":p||void 0,"data-focused":a||void 0,"data-pending":i||void 0,"data-focus-visible":d||void 0},c.createElement(Zd.Provider,{value:{id:b}},m.children))}),Qd=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function Rd(t,e){if(e){for(const n in t)n.startsWith("on")&&!Qd.test(n)&&(t[n]=void 0);t.href=void 0,t.target=void 0}return t}const ao=c.createContext({}),co=c.forwardRef(function(e,n){[e,n]=ge(e,n,ao);let{elementType:r="span",...i}=e,l=de[r];return c.createElement(l,{className:"react-aria-Text",...i,ref:n})});class uo{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let n=this.keyMap.get(e);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(n==null?void 0:n.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let n=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&s.type==="section")for(let a of s.childNodes)n(a)};for(let s of e)n(s);let r=null,i=0,l=0;for(let[s,a]of this.keyMap)r?(r.nextKey=s,a.prevKey=r.key):(this.firstKey=s,a.prevKey=void 0),a.type==="item"&&(a.index=i++),(a.type==="section"||a.type==="item")&&l++,r=a,r.nextKey=void 0;this._size=l;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}class ye extends Set{constructor(e,n,r){super(e),e instanceof ye?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function eu(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function tu(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:l="all"}=t,o=c.useRef(!1),[,s]=c.useState(!1),a=c.useRef(null),d=c.useRef(null),[,u]=c.useState(null),p=c.useMemo(()=>fo(t.selectedKeys),[t.selectedKeys]),v=c.useMemo(()=>fo(t.defaultSelectedKeys,new ye),[t.defaultSelectedKeys]),[m,g]=pt(p,v,t.onSelectionChange),b=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[y,x]=c.useState(i);i==="replace"&&y==="toggle"&&typeof m=="object"&&m.size===0&&x("replace");let E=c.useRef(i);return c.useEffect(()=>{i!==E.current&&(x(i),E.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:x,get isFocused(){return o.current},setFocused(C){o.current=C,s(C)},get focusedKey(){return a.current},get childFocusStrategy(){return d.current},setFocusedKey(C,k="first"){a.current=C,d.current=k,u(C)},selectedKeys:m,setSelectedKeys(C){(r||!eu(C,m))&&g(C)},disabledKeys:b,disabledBehavior:l}}function fo(t,e){return t?t==="all"?"all":new ye(t):e}class hr{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&lr(this.collection,i,e)<0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&lr(this.collection,i,e)>0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new ye([n],n,n);else{let o=this.state.selectedKeys;var i;let s=(i=o.anchorKey)!==null&&i!==void 0?i:n;r=new ye(o,s,n);var l;for(let a of this.getKeyRange(s,(l=o.currentKey)!==null&&l!==void 0?l:n))r.delete(a);for(let a of this.getKeyRange(n,s))this.canSelectItem(a)&&r.add(a)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?lr(this.collection,r,i)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let i=[],l=e;for(;l!=null;){let o=this.collection.getItem(l);if(o&&(o.type==="item"||o.type==="cell"&&this.allowsCellSelection)&&i.push(l),l===n)return i;l=this.collection.getKeyAfter(l)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r=new ye(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let r=this.canSelectItem(n)?new ye([n],n,n):new ye;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new ye;for(let r of e){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let o=this.collection.getItem(r);(o==null?void 0:o.type)==="item"&&e.push(r);var l;o!=null&&o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n((l=(i=sd(od(o,this.collection)))===null||i===void 0?void 0:i.key)!==null&&l!==void 0?l:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new ye)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=this.collection.getItem(e);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,r;return!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}withCollection(e){return new hr(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,n,r){this.collection=e,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function nu(t){let{filter:e,layoutDelegate:n}=t,r=tu(t),i=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),l=c.useCallback(d=>e?new uo(e(d)):new uo(d),[e]),o=c.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),s=ld(t,l,o),a=c.useMemo(()=>new hr(s,r,{layoutDelegate:n}),[s,r,n]);return ru(s,a),{collection:s,disabledKeys:i,selectionManager:a}}function ru(t,e){const n=c.useRef(null);c.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&n.current){const u=n.current.getItem(e.focusedKey),p=[...n.current.getKeys()].map(x=>{const E=n.current.getItem(x);return(E==null?void 0:E.type)==="item"?E:null}).filter(x=>x!==null),v=[...t.getKeys()].map(x=>{const E=t.getItem(x);return(E==null?void 0:E.type)==="item"?E:null}).filter(x=>x!==null);var r,i;const m=((r=p==null?void 0:p.length)!==null&&r!==void 0?r:0)-((i=v==null?void 0:v.length)!==null&&i!==void 0?i:0);var l,o,s;let g=Math.min(m>1?Math.max(((l=u==null?void 0:u.index)!==null&&l!==void 0?l:0)-m+1,0):(o=u==null?void 0:u.index)!==null&&o!==void 0?o:0,((s=v==null?void 0:v.length)!==null&&s!==void 0?s:0)-1),b=null,y=!1;for(;g>=0;){if(!e.isDisabled(v[g].key)){b=v[g];break}if(g<v.length-1&&!y)g++;else{y=!0;var a,d;g>((a=u==null?void 0:u.index)!==null&&a!==void 0?a:0)&&(g=(d=u==null?void 0:u.index)!==null&&d!==void 0?d:0),g--}}e.setFocusedKey(b?b.key:null)}n.current=t},[t,e])}function iu(t){var e;let[n,r]=pt(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=c.useMemo(()=>n!=null?[n]:[],[n]),{collection:l,disabledKeys:o,selectionManager:s}=nu({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:d=>{if(d==="all")return;var u;let p=(u=d.values().next().value)!==null&&u!==void 0?u:null;p===n&&t.onSelectionChange&&t.onSelectionChange(p),r(p)}}),a=n!=null?l.getItem(n):null;return{collection:l,disabledKeys:o,selectionManager:s,selectedKey:n,setSelectedKey:r,selectedItem:a}}function lu(t){let[e,n]=pt(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=c.useCallback(()=>{n(!0)},[n]),i=c.useCallback(()=>{n(!1)},[n]),l=c.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:i,toggle:l}}function ou(t){var e,n;let r=iu({...t,onSelectionChange:t.onSelectionChange?a=>{var d;a!=null&&((d=t.onSelectionChange)===null||d===void 0||d.call(t,a))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(n=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:po(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set))!==null&&n!==void 0?n:void 0}),{selectionManager:i,collection:l,selectedKey:o}=r,s=c.useRef(o);return c.useEffect(()=>{let a=o;t.selectedKey==null&&(i.isEmpty||a==null||!l.getItem(a))&&(a=po(l,r.disabledKeys),a!=null&&i.setSelectedKeys([a])),(a!=null&&i.focusedKey==null||!i.isFocused&&a!==s.current)&&i.setFocusedKey(a),s.current=a}),{...r,isDisabled:t.isDisabled||!1}}function po(t,e){let n=null;if(t){var r,i,l,o;for(n=t.getFirstKey();n!=null&&(e.has(n)||!((i=t.getItem(n))===null||i===void 0||(r=i.props)===null||r===void 0)&&r.isDisabled)&&n!==t.getLastKey();)n=t.getKeyAfter(n);n!=null&&(e.has(n)||!((o=t.getItem(n))===null||o===void 0||(l=o.props)===null||l===void 0)&&l.isDisabled)&&n===t.getLastKey()&&(n=t.getFirstKey())}return n}const su=c.createContext(null),ho=c.createContext(null),au=c.createContext(null),cu=c.forwardRef(function(e,n){let{inputRef:r=null,...i}=e;[e,n]=ge(i,n,Bs);let{validationBehavior:l}=Lt(ho)||{};var o,s;let a=(s=(o=e.validationBehavior)!==null&&o!==void 0?o:l)!==null&&s!==void 0?s:"native",d=c.useContext(au),u=Fe(c.useMemo(()=>Re(r,e.inputRef!==void 0?e.inputRef:null),[r,e.inputRef])),{labelProps:p,inputProps:v,isSelected:m,isDisabled:g,isReadOnly:b,isPressed:y,isInvalid:x}=d?Hd({...Ft(e),value:e.value,children:typeof e.children=="function"?!0:e.children},d,u):io({...Ft(e),children:typeof e.children=="function"?!0:e.children,validationBehavior:a},pr(e),u),{isFocused:E,isFocusVisible:C,focusProps:k}=Xe(),$=g||b,{hoverProps:z,isHovered:F}=bt({...e,isDisabled:$}),P=pe({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:m,isIndeterminate:e.isIndeterminate||!1,isPressed:y,isHovered:F,isFocused:E,isFocusVisible:C,isDisabled:g,isReadOnly:b,isInvalid:x,isRequired:e.isRequired||!1}}),L=ce(e,{global:!0});return delete L.id,delete L.onClick,c.createElement(de.label,{...q(L,p,z,P),ref:n,slot:e.slot||void 0,"data-selected":m||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":y||void 0,"data-hovered":F||void 0,"data-focused":E||void 0,"data-focus-visible":C||void 0,"data-disabled":g||void 0,"data-readonly":b||void 0,"data-invalid":x||void 0,"data-required":e.isRequired||void 0},c.createElement(tr,{elementType:"span"},c.createElement("input",{...q(v,k),ref:u})),P.children)}),du=c.createContext({}),vo=c.createContext({});let uu=t=>{let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,...i}=t;return i};const fu=Et(function(e,n){[e,n]=ge(e,n,vo);let{hoverProps:r,isHovered:i}=bt({...e,isDisabled:e.disabled}),{isFocused:l,isFocusVisible:o,focusProps:s}=Xe({isTextInput:!0,autoFocus:e.autoFocus}),a=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",d=pe({...e,values:{isHovered:i,isFocused:l,isFocusVisible:o,isDisabled:e.disabled||!1,isInvalid:a},defaultClassName:"react-aria-Input"});return c.createElement(de.input,{...q(uu(e),s,r),...d,ref:n,"data-focused":l||void 0,"data-disabled":e.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":o||void 0,"data-invalid":a||void 0})}),pu=c.createContext(null);function hu(t){let e=c.useRef({});return c.createElement(pu.Provider,{value:e},t.children)}const vu=c.createContext({isSelected:!1}),mu=c.createContext(null),tn=c.createContext(null),bu=c.forwardRef(function(e,n){let r=e["aria-labelledby"];[e,n]=ge(e,n,mu);let{dialogProps:i,titleProps:l}=Ud({...e,"aria-labelledby":r},n),o=c.useContext(tn);!i["aria-label"]&&!i["aria-labelledby"]&&(e["aria-labelledby"]?i["aria-labelledby"]=e["aria-labelledby"]:process.env.NODE_ENV!=="production"&&console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let s=pe({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(o==null?void 0:o.close)||(()=>{})}}),a=ce(e,{global:!0});return c.createElement(de.section,{...q(a,s,i),render:e.render,ref:n,slot:e.slot||void 0},c.createElement(ht,{values:[[Vs,{slots:{[Kn]:{},title:{...l,level:2}}}],[so,{slots:{[Kn]:{},close:{onPress:()=>o==null?void 0:o.close()}}}]]},s.children))}),gu=c.createContext(null),vr=c.createContext(null),yu=c.forwardRef(function(e,n){if(c.useContext(vr)){if(process.env.NODE_ENV!=="production"&&(e.onOpenChange||e.defaultOpen!==void 0||e.isOpen!==void 0)){const b=new Set(["isDismissable","isKeyboardDismissDisabled","isOpen","defaultOpen","onOpenChange","isEntering","isExiting","UNSTABLE_portalContainer","shouldCloseOnInteractOutside"]),y=Object.keys(e).filter(x=>b.has(x));console.warn(`This modal is already wrapped in a ModalOverlay, props [${y.join(", ")}] should be placed on the ModalOverlay instead.`)}return c.createElement(bo,{...e,modalRef:n},e.children)}let{isDismissable:i,isKeyboardDismissDisabled:l,isOpen:o,defaultOpen:s,onOpenChange:a,children:d,isEntering:u,isExiting:p,UNSTABLE_portalContainer:v,shouldCloseOnInteractOutside:m,...g}=e;return c.createElement(mo,{isDismissable:i,isKeyboardDismissDisabled:l,isOpen:o,defaultOpen:s,onOpenChange:a,isEntering:u,isExiting:p,UNSTABLE_portalContainer:v,shouldCloseOnInteractOutside:m},c.createElement(bo,{...g,modalRef:n},d))});function xu(t,e){[t,e]=ge(t,e,gu);let n=c.useContext(tn),r=lu(t),i=t.isOpen!=null||t.defaultOpen!=null||!n?r:n;i===n&&process.env.NODE_ENV!=="production"&&(t.onOpenChange||t.defaultOpen!==void 0||t.isOpen!==void 0)&&console.warn("This modals state is controlled by a trigger, place onOpenChange on the trigger instead.");let l=Fe(e),o=c.useRef(null),s=Dn(l,i.isOpen),a=Dn(o,i.isOpen),d=s||a||t.isExiting||!1,u=ze();return!i.isOpen&&!d||u?null:c.createElement(wu,{...t,state:i,isExiting:d,overlayRef:l,modalRef:o})}const mo=c.forwardRef(xu);function wu({UNSTABLE_portalContainer:t,...e}){let n=e.modalRef,{state:r}=e,{modalProps:i,underlayProps:l}=qc(e,r,n),o=$n(e.overlayRef)||e.isEntering||!1,s=pe({...e,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:o,isExiting:e.isExiting,state:r}}),a=Pa(),d;if(typeof document<"u"){let p=ut(document.body)?document.body:document.scrollingElement||document.documentElement,v=p.getBoundingClientRect().height%1;d=p.scrollHeight-v}let u={...s.style,"--visual-viewport-height":a.height+"px","--page-height":d!==void 0?d+"px":void 0};return c.createElement(Gc,{isExiting:e.isExiting,portalContainer:t},c.createElement(de.div,{...q(ce(e,{global:!0}),l),...s,style:u,ref:e.overlayRef,"data-entering":o||void 0,"data-exiting":e.isExiting||void 0},c.createElement(ht,{values:[[vr,{modalProps:i,modalRef:n,isExiting:e.isExiting,isDismissable:e.isDismissable}],[tn,r]]},s.children)))}function bo(t){let{modalProps:e,modalRef:n,isExiting:r,isDismissable:i}=c.useContext(vr),l=c.useContext(tn),o=c.useMemo(()=>Re(t.modalRef,n),[t.modalRef,n]),s=Fe(o),a=$n(s),d=pe({...t,defaultClassName:"react-aria-Modal",values:{isEntering:a,isExiting:r,state:l}});return c.createElement(de.div,{...q(ce(t,{global:!0}),e),...d,ref:s,"data-entering":a||void 0,"data-exiting":r||void 0},i&&c.createElement(Uc,{onDismiss:l.close}),d.children)}const Eu=c.createContext(null),Cu=c.forwardRef(function(e,n){let{inputRef:r=null,...i}=e;[e,n]=ge(i,n,Eu);let l=Fe(Re(r,e.inputRef!==void 0?e.inputRef:null)),o=pr(e),{labelProps:s,inputProps:a,isSelected:d,isDisabled:u,isReadOnly:p,isPressed:v}=Wd({...Ft(e),children:typeof e.children=="function"?!0:e.children},o,l),{isFocused:m,isFocusVisible:g,focusProps:b}=Xe(),y=e.isDisabled||e.isReadOnly,{hoverProps:x,isHovered:E}=bt({...e,isDisabled:y}),C=pe({...e,defaultClassName:"react-aria-Switch",values:{isSelected:d,isPressed:v,isHovered:E,isFocused:m,isFocusVisible:g,isDisabled:u,isReadOnly:p,state:o}}),k=ce(e,{global:!0});return delete k.id,delete k.onClick,c.createElement(de.label,{...q(k,s,x,C),ref:n,slot:e.slot||void 0,"data-selected":d||void 0,"data-pressed":v||void 0,"data-hovered":E||void 0,"data-focused":m||void 0,"data-focus-visible":g||void 0,"data-disabled":u||void 0,"data-readonly":p||void 0},c.createElement(tr,{elementType:"span"},c.createElement("input",{...q(a,b),ref:l})),C.children)}),nn=c.createContext(null),Ze=c.createContext(null),Pu=c.forwardRef(function(e,n){[e,n]=ge(e,n,nn);let{children:r,orientation:i="horizontal"}=e;return r=c.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),c.createElement(Nd,{content:r},l=>c.createElement(ku,{props:e,collection:l,tabsRef:n}))});function ku({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=ou({...t,collection:n,children:void 0}),{focusProps:l,isFocused:o,isFocusVisible:s}=Xe({within:!0}),a=c.useMemo(()=>({orientation:r,isFocusWithin:o,isFocusVisible:s}),[r,o,s]),d=pe({...t,defaultClassName:"react-aria-Tabs",values:a}),u=ce(t,{global:!0});return c.createElement(de.div,{...q(u,d,l),ref:e,slot:t.slot||void 0,"data-focused":o||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":i.isDisabled||void 0},c.createElement(ht,{values:[[nn,t],[Ze,i]]},d.children))}const Tu=c.forwardRef(function(e,n){return c.useContext(Ze)?c.createElement(Nu,{props:e,forwardedRef:n}):c.createElement(Fd,e)});function Nu({props:t,forwardedRef:e}){let n=c.useContext(Ze),{CollectionRoot:r}=c.useContext(no),{orientation:i="horizontal",keyboardActivation:l="automatic"}=Lt(nn),o=Fe(e),{tabListProps:s}=Yd({...t,orientation:i,keyboardActivation:l},n,o),a=pe({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),d=ce(t,{global:!0});return delete d.id,c.createElement(de.div,{...q(d,a,s),ref:o,"data-orientation":i||void 0},c.createElement(hu,null,c.createElement(r,{collection:n.collection,persistedKeys:Bd(n.selectionManager.focusedKey)})))}class go extends wt{}go.type="item";const $u=Md(go,(t,e,n)=>{let r=c.useContext(Ze),i=Fe(e),{tabProps:l,isSelected:o,isDisabled:s,isPressed:a}=jd({key:n.key,...t},r,i),{focusProps:d,isFocused:u,isFocusVisible:p}=Xe(),{hoverProps:v,isHovered:m}=bt({isDisabled:s,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),g=pe({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:o,isDisabled:s,isFocused:u,isFocusVisible:p,isPressed:a,isHovered:m}}),b=n.props.href?de.a:de.div,y=ce(t,{global:!0});return delete y.id,delete y.onClick,c.createElement(b,{...q(y,g,l,d,v),ref:i,"data-selected":o||void 0,"data-disabled":s||void 0,"data-focused":u||void 0,"data-focus-visible":p||void 0,"data-pressed":a||void 0,"data-hovered":m||void 0},c.createElement(vu.Provider,{value:{isSelected:o}},g.children))}),Du=Et(function(e,n){const r=c.useContext(Ze);let i=Fe(n),l=r.selectedKey===e.id,[o,s]=c.useState(r.selectedKey!=null?l:null);o==null&&r.selectedKey!=null?s(l):!l&&o&&s(!1);let a=Dn(i,l);return!l&&!e.shouldForceMount&&!a?null:c.createElement(Su,{...e,tabPanelRef:i,isInitiallySelected:o||!1,isExiting:a})});function Su(t){let e=c.useContext(Ze),{id:n,tabPanelRef:r,isInitiallySelected:i,isExiting:l,...o}=t,{tabPanelProps:s}=Gd(t,e,r),{focusProps:a,isFocused:d,isFocusVisible:u}=Xe(),p=e.selectedKey===t.id,v=$n(r)&&!i,m=pe({...t,defaultClassName:"react-aria-TabPanel",values:{isFocused:d,isFocusVisible:u,isInert:ci(!p),isEntering:v,isExiting:l,state:e}}),g=ce(o,{global:!0});delete g.id;let b=p?q(g,s,a,m):q(g,m);return c.createElement(de.div,{...b,ref:r,"data-focused":d||void 0,"data-focus-visible":u||void 0,inert:ci(!p||t.inert),"data-inert":p?void 0:"true","data-entering":v||void 0,"data-exiting":l||void 0},c.createElement(ht,{values:[[nn,null],[Ze,null]]},c.createElement(no.Provider,{value:eo},m.children)))}const Iu=c.createContext({}),_u=c.createContext(null),Ku=Et(function(e,n){[e,n]=ge(e,n,_u);let{validationBehavior:r}=Lt(ho)||{};var i,l;let o=(l=(i=e.validationBehavior)!==null&&i!==void 0?i:r)!==null&&l!==void 0?l:"native",s=c.useRef(null);[e,s]=ge(e,s,zs);let[a,d]=Fa(!e["aria-label"]&&!e["aria-labelledby"]),[u,p]=c.useState("input"),{labelProps:v,inputProps:m,descriptionProps:g,errorMessageProps:b,...y}=vd({...Ft(e),inputElementType:u,label:d,validationBehavior:o},s),x=c.useCallback(k=>{s.current=k,k&&p(k instanceof HTMLTextAreaElement?"textarea":"input")},[s]),E=pe({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:y.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-TextField"}),C=ce(e,{global:!0});return delete C.id,c.createElement(de.div,{...C,...E,ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":y.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},c.createElement(ht,{values:[[oo,{...v,ref:a}],[vo,{...m,ref:x}],[Iu,{...m,ref:x}],[du,{role:"presentation",isInvalid:y.isInvalid,isDisabled:e.isDisabled||!1}],[ao,{slots:{description:g,errorMessage:b}}],[su,y]]},E.children))}),yo={xs:"text-[12px] px-2 py-1 min-h-6 gap-1",sm:"text-[14px] px-2 py-1 min-h-7 gap-1",md:"text-[14px] px-3 py-2 min-h-8 gap-1.5",lg:"text-[16px] px-4 py-2.5 min-h-10 gap-1.5",xl:"text-[16px] px-5 py-3 min-h-11 gap-2",small:"text-[14px] px-2 py-1 min-h-6 gap-1",medium:"text-[14px] px-3 py-2 min-h-8 gap-1.5",large:"text-[16px] px-4 py-2.5 min-h-10 gap-1.5"},xo={primary:"eidotter-btn--primary",secondary:"eidotter-btn--secondary",tertiary:"eidotter-btn--tertiary",destructive:"eidotter-btn--destructive",ghost:"eidotter-btn--ghost",link:"eidotter-btn--link"},mr=({variant:t="primary",size:e="md",type:n="button",disabled:r=!1,loading:i=!1,children:l,onClick:o,className:s,fullWidth:a=!1,iconOnly:d=!1,...u})=>{const p=r||i;return h.jsxs(Jd,{type:n,isDisabled:p,onPress:v=>{if(o&&!p){const m={type:"press",target:v.target,currentTarget:v.target,preventDefault:()=>{},stopPropagation:()=>{}};o(m)}},className:G("inline-flex items-center justify-center relative","border-2 border-solid","font-dos font-dos-bold leading-none whitespace-nowrap select-none","outline-none cursor-pointer","transition-all duration-100 ease-linear",yo[e]||yo.md,xo[t]||xo.primary,p&&"opacity-50 cursor-not-allowed",i&&"cursor-wait",a&&"w-full",d&&"aspect-square !px-0","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-dos-border-focus",s),"data-loading":i||void 0,"data-variant":t,...u,children:[i&&h.jsx("span",{className:"eidotter-btn__loading","aria-hidden":"true",children:"█"}),h.jsx("span",{className:G("inline-flex items-center justify-center",i&&"opacity-70"),children:l})]})},Mu=({title:t,children:e,footer:n,variant:r="default",className:i="",...l})=>{const o=["card",`card--${r}`,i].filter(Boolean).join(" ");return h.jsxs("div",{className:o,...l,children:[t&&h.jsx("div",{className:"card__header",children:h.jsx("span",{className:"card__title",children:t})}),h.jsx("div",{className:"card__body",children:e}),n&&h.jsx("div",{className:"card__footer",children:n})]})},Lu=({checked:t,defaultChecked:e,onChange:n,indeterminate:r=!1,label:i,disabled:l=!1,size:o="md",name:s,value:a,className:d,"aria-label":u,...p})=>h.jsx(cu,{isSelected:t,defaultSelected:e,isIndeterminate:r,onChange:n,isDisabled:l,name:s,value:a,"aria-label":u||i,className:G("inline-flex items-center gap-2 cursor-pointer select-none group","font-dos",o==="sm"?"text-[14px]":"text-[16px]","eidotter-checkbox",l&&"opacity-60 cursor-not-allowed",d),"data-size":o,...p,children:({isSelected:v,isIndeterminate:m})=>h.jsxs(h.Fragment,{children:[h.jsx("span",{className:G("eidotter-checkbox__box",v&&"eidotter-checkbox__box--checked",m&&"eidotter-checkbox__box--indeterminate"),children:m?"[-]":v?"[X]":"[ ]"}),i&&h.jsx("span",{className:"eidotter-checkbox__label",children:i})]})}),Fu=({prompt:t="C:\\>",onCommand:e,autoFocus:n=!1,className:r="",placeholder:i,disabled:l=!1})=>{const[o,s]=c.useState(""),a=c.useRef(null);c.useEffect(()=>{n&&a.current&&a.current.focus()},[n]);const d=p=>{p.key==="Enter"&&o.trim()&&!l&&(e(o.trim()),s(""))},u=()=>{!l&&a.current&&a.current.focus()};return h.jsxs("div",{className:`command-prompt ${l?"command-prompt--disabled":""} ${r}`.trim(),onClick:u,role:"textbox","aria-label":"Command prompt",children:[h.jsx("span",{className:"command-prompt__prompt","aria-hidden":"true",children:t}),h.jsxs("div",{className:"command-prompt__input-wrapper",children:[h.jsx("input",{ref:a,className:"command-prompt__input",value:o,onChange:p=>s(p.target.value),onKeyDown:d,autoFocus:n,spellCheck:!1,autoComplete:"off",autoCapitalize:"off",autoCorrect:"off",placeholder:i,disabled:l,"aria-label":"Command input",size:o.length||1}),h.jsx("span",{className:"command-prompt__cursor","aria-hidden":"true",children:"█"})]})]})},rn="█",ln="░",br="▓",Au="▒",wo={sm:"text-xs",md:"text-base",lg:"text-lg",small:"text-xs",medium:"text-base",large:"text-lg"},Eo={default:"eidotter-progress--default",success:"eidotter-progress--success",warning:"eidotter-progress--warning",error:"eidotter-progress--error"};function Ou(t,e,n){const r=e-t;if(n==="gradient"&&t>0&&t<e){const i=Math.min(2,r),l=r-i,o=(i>=1?br:"")+(i>=2?Au:"");return{filled:rn.repeat(t),transition:o,empty:ln.repeat(l)}}return{filled:rn.repeat(t),transition:"",empty:ln.repeat(r)}}const Bu=({value:t=0,max:e=100,indeterminate:n=!1,variant:r="default",size:i="md",trackStyle:l="block",blocks:o=20,showLabel:s=!1,fullWidth:a=!1,glow:d=!1,valueText:u,className:p,"aria-label":v,...m})=>{const g=Math.min(80,Math.max(3,Math.floor(o))),b=Math.min(100,Math.max(0,t/e*100)),y=Math.round(b/100*g),x=G("inline-flex items-center gap-2 font-dos","eidotter-progress",wo[i]||wo.md,Eo[r]||Eo.default,d&&"eidotter-progress--glow",a&&"eidotter-progress--full-width",n&&"eidotter-progress--indeterminate",l==="bordered"&&"eidotter-progress--bordered",p),E={"aria-label":v||`Progress: ${n?"loading":`${Math.round(b)}%`}`};n||(E["aria-valuenow"]=t,E["aria-valuemin"]=0,E["aria-valuemax"]=e),u&&(E["aria-valuetext"]=u);const C=l==="bordered",k=G("eidotter-progress__track",C&&"eidotter-progress__track--borderless");if(n){const P=ln.repeat(g);return h.jsxs("div",{className:x,role:"progressbar",...E,...m,children:[h.jsxs("span",{className:k,children:[C&&h.jsx("span",{className:"eidotter-progress__bracket",children:"["}),h.jsxs("span",{className:"eidotter-progress__bar",children:[h.jsx("span",{className:"eidotter-progress__empty",children:P}),h.jsxs("span",{className:"eidotter-progress__scanner",children:[br,rn,br]})]}),C&&h.jsx("span",{className:"eidotter-progress__bracket",children:"]"})]}),s&&h.jsx("span",{className:"eidotter-progress__label",children:"..."})]})}const $=rn.repeat(g),z=ln.repeat(g),{transition:F}=Ou(y,g,l);return h.jsxs("div",{className:x,role:"progressbar",...E,...m,children:[h.jsxs("span",{className:k,children:[C&&h.jsx("span",{className:"eidotter-progress__bracket",children:"["}),h.jsxs("span",{className:"eidotter-progress__bar",children:[h.jsx("span",{className:"eidotter-progress__empty",children:z}),h.jsx("span",{className:"eidotter-progress__fill",style:{"--fill-pct":String(b)},children:$}),F&&h.jsx("span",{className:"eidotter-progress__transition",style:{"--fill-pct":String(b)},children:F})]}),C&&h.jsx("span",{className:"eidotter-progress__bracket",children:"]"})]}),s&&h.jsxs("span",{className:"eidotter-progress__label",children:[Math.round(b),"%"]})]})},Co={default:"eidotter-input--default",error:"eidotter-input--error"},Po=c.forwardRef(({variant:t="default",label:e,description:n,errorMessage:r,disabled:i,className:l,onChange:o,isRequired:s,...a},d)=>{const u=t==="error";return h.jsxs(Ku,{isDisabled:i,isInvalid:u,isRequired:s,className:G("eidotter-text-field","flex flex-col gap-1",l),children:[e&&h.jsx(Xd,{className:"text-cga-amber font-dos text-xs uppercase tracking-wider",children:e}),h.jsx(fu,{ref:d,className:G("w-full bg-dos-bg-primary text-cga-amber font-dos text-base p-2","border-2 border-dos-border-default outline-none box-border","eidotter-input",Co[t]||Co.default,i&&"eidotter-input--disabled"),onChange:o,...a}),n&&!u&&h.jsx(co,{slot:"description",className:"text-cga-brown font-dos text-xs",children:n}),r&&u&&h.jsx(co,{slot:"errorMessage",className:"text-cga-bright-red font-dos text-xs",children:r})]})});Po.displayName="Input";const Vu=({size:t="medium",title:e="MS-DOS Terminal",state:n="active",resizable:r=!0,minimizable:i=!1,maximizable:l=!1,closeable:o=!1,children:s,onMinimize:a,onMaximize:d,onClose:u,onFocus:p,className:v="",autoFocus:m=!1})=>{const[g,b]=c.useState(n),[y,x]=c.useState(!1),E=c.useRef(null);c.useEffect(()=>{m&&E.current&&E.current.focus()},[m]);const C=()=>{b("minimized"),a==null||a()},k=()=>{x(!y),d==null||d()},$=()=>{u==null||u()},z=()=>{b("active"),p==null||p()},F=P=>{P.altKey&&P.key==="F4"&&o&&(P.preventDefault(),$())};return g==="minimized"?h.jsx("div",{className:`terminal terminal--minimized ${v}`.trim(),onClick:z,role:"button",tabIndex:0,"aria-label":`Restore ${e} window`,onKeyDown:P=>P.key==="Enter"&&z(),children:h.jsxs("div",{className:"terminal__taskbar-item",children:[h.jsx(xe,{name:"App",size:"S"}),h.jsx("span",{className:"terminal__taskbar-title",children:e})]})}):h.jsxs("div",{ref:E,className:`terminal terminal--${t} terminal--${g} ${y?"terminal--maximized":""} ${v}`.trim(),tabIndex:0,role:"dialog","aria-label":`${e} terminal window`,onFocus:z,onKeyDown:F,children:[h.jsxs("div",{className:"terminal__title-bar",children:[h.jsxs("div",{className:"terminal__title",children:[h.jsx(xe,{name:"App",size:"S","aria-hidden":"true"}),h.jsx("span",{className:"terminal__title-text",children:e})]}),(i||l||o)&&h.jsxs("div",{className:"terminal__controls",children:[i&&h.jsx("button",{className:"terminal__control terminal__control--minimize",onClick:C,"aria-label":"Minimize window",title:"Minimize",children:h.jsx(xe,{name:"Cancel",size:"S"})}),l&&h.jsx("button",{className:"terminal__control terminal__control--maximize",onClick:k,"aria-label":y?"Restore window":"Maximize window",title:y?"Restore":"Maximize",children:h.jsx(xe,{name:y?"Fullscreen":"Add",size:"S"})}),o&&h.jsx("button",{className:"terminal__control terminal__control--close",onClick:$,"aria-label":"Close window",title:"Close",children:h.jsx(xe,{name:"Close",size:"S"})})]})]}),h.jsx("div",{className:"terminal__content",role:"main",children:s||h.jsx("div",{className:"terminal__default-content",children:h.jsxs("div",{className:"terminal__prompt",children:[h.jsx("span",{className:"terminal__path",children:"C:\\\\>"}),h.jsx("span",{className:"terminal__cursor",children:"█"})]})})}),r&&h.jsx("div",{className:"terminal__resize-handle","aria-hidden":"true"})]})},ko={sm:"eidotter-tabs--sm",md:"eidotter-tabs--md",lg:"eidotter-tabs--lg",small:"eidotter-tabs--sm",medium:"eidotter-tabs--md",large:"eidotter-tabs--lg"},zu={underline:"eidotter-tabs--underline",pills:"eidotter-tabs--pills"},Hu=({tabs:t,variant:e="underline",size:n="md",activeTab:r,defaultActiveTab:i,onTabChange:l,className:o,...s})=>{var m,g,b;const a=c.useRef(null),d=c.useRef(r??i??((m=t[0])==null?void 0:m.id)??""),[u,p]=c.useState(r??i??((g=t[0])==null?void 0:g.id)??""),v=c.useCallback(y=>{const x=String(y),E=r??d.current;d.current=x,p(x),l==null||l(x,E)},[r,l]);return c.useLayoutEffect(()=>{const y=a.current;if(!y||e!=="underline")return;const x=()=>{const C=y.querySelector('[aria-selected="true"]');C&&(y.style.setProperty("--indicator-left",`${C.offsetLeft}px`),y.style.setProperty("--indicator-width",`${C.offsetWidth}px`))};x();const E=new ResizeObserver(x);return E.observe(y),()=>E.disconnect()},[r,u,e]),h.jsxs(Pu,{selectedKey:r,defaultSelectedKey:i??((b=t[0])==null?void 0:b.id),onSelectionChange:v,className:G("eidotter-tabs",zu[e],ko[n]||ko.md,o),children:[h.jsxs("div",{ref:a,className:"relative",children:[h.jsx(Tu,{className:"inline-flex items-center font-dos eidotter-tabs__list","aria-label":s["aria-label"],children:t.map(y=>h.jsx($u,{id:y.id,isDisabled:y.disabled,className:({isSelected:x,isDisabled:E})=>G("eidotter-tabs__tab",x&&"eidotter-tabs__tab--active",E&&"eidotter-tabs__tab--disabled"),children:y.label},y.id))}),e==="underline"&&h.jsx("span",{className:"eidotter-tabs__indicator","aria-hidden":"true"})]}),t.map(y=>h.jsx(Du,{id:y.id,className:"hidden"},y.id))]})},To={sm:"text-[10px] px-1.5 py-0.5 min-h-[18px] gap-1",md:"text-[12px] px-2 py-1 min-h-[22px] gap-1.5",lg:"text-[14px] px-2.5 py-1 min-h-[26px] gap-1.5",small:"text-[10px] px-1.5 py-0.5 min-h-[18px] gap-1",medium:"text-[12px] px-2 py-1 min-h-[22px] gap-1.5"},No={default:"eidotter-badge--default",success:"eidotter-badge--success",warning:"eidotter-badge--warning",error:"eidotter-badge--error",info:"eidotter-badge--info",accent:"eidotter-badge--accent",brand:"eidotter-badge--accent",gray:"eidotter-badge--default",blue:"eidotter-badge--info",indigo:"eidotter-badge--info",purple:"eidotter-badge--info",pink:"eidotter-badge--error",orange:"eidotter-badge--warning"},Pt=({variant:t="default",size:e="md",dot:n=!1,children:r,className:i,...l})=>h.jsxs("span",{className:G("inline-flex items-center justify-center","font-dos font-dos-regular leading-none whitespace-nowrap select-none","uppercase tracking-wider","rounded-dos-sm","eidotter-badge",To[e]||To.md,No[t]||No.default,i),"data-variant":t,...l,children:[n&&h.jsx("span",{className:"eidotter-badge__dot","aria-hidden":"true"}),h.jsx("span",{className:"eidotter-badge__content",children:r})]}),Uu=({checked:t,defaultChecked:e=!1,onCheckedChange:n,disabled:r=!1,size:i="md",type:l="default",label:o,name:s,value:a,className:d,...u})=>h.jsx(Cu,{isSelected:t,defaultSelected:e,onChange:n,isDisabled:r,name:s,value:a,className:G("inline-flex items-center gap-2 cursor-pointer outline-none font-dos group","eidotter-switch",r&&"opacity-50 cursor-not-allowed",d),"data-size":i,"data-type":l,...u,children:({isSelected:p})=>h.jsxs(h.Fragment,{children:[h.jsx("span",{className:G("eidotter-switch__track",p&&"eidotter-switch__track--checked",l==="slim"&&"eidotter-switch__track--slim",i==="sm"&&"eidotter-switch__track--sm"),children:h.jsx("span",{className:"eidotter-switch__thumb"})}),o&&h.jsx("span",{className:"text-[var(--color-cga-amber)]",children:o})]})}),on="eidotter-breadcrumb__link inline-flex items-center gap-1 text-dos-text-accent opacity-70 no-underline",$o=({trail:t=[],currentLabel:e,showBackArrow:n=!0,separator:r="/",linkComponent:i,className:l})=>{const o=(s,a)=>{const d=h.jsxs(h.Fragment,{children:[n&&a&&h.jsx("span",{className:"text-[1em] leading-none","aria-hidden":"true",children:"<"}),h.jsx("span",{children:s.label})]});return s.onClick?h.jsx("button",{type:"button",className:G(on,"bg-transparent border-0 cursor-pointer font-[inherit] p-0"),onClick:s.onClick,children:d}):s.href?i?h.jsx(i,{href:s.href,className:on,children:d}):h.jsx("a",{href:s.href,className:on,children:d}):h.jsx("span",{className:on,children:d})};return h.jsx("nav",{"aria-label":"Breadcrumb",className:G("font-dos text-xs uppercase tracking-[0.35em]","eidotter-breadcrumb",l),children:h.jsxs("ol",{className:"flex flex-wrap items-center gap-2 list-none m-0 p-0",children:[t.map((s,a)=>{const d=a===t.length-1,u=a<t.length-1;return h.jsxs("li",{className:"flex items-center gap-2",children:[o(s,d),u&&h.jsx("span",{className:"text-dos-text-accent opacity-40 select-none","aria-hidden":"true",children:r})]},`${s.href??s.label}-${a}`)}),t.length>0&&h.jsx("li",{className:"flex items-center gap-2",children:h.jsx("span",{className:"text-dos-text-accent opacity-40 select-none","aria-hidden":"true",children:r})}),h.jsx("li",{className:"flex items-center gap-2","aria-current":"page",children:h.jsx("span",{className:"text-cga-amber",children:e})})]})})},Wu=({scanlines:t=!0,glow:e=!0,flicker:n=!0,bloom:r=!1,powered:i=!0,intensity:l=1,className:o="",onPowerStateChange:s,onPowerOn:a,onPowerOff:d})=>{const u=c.useRef(i),[p,v]=c.useState(i?"on":"off");c.useEffect(()=>{const C=u.current;if(u.current=i,C!==i){const k=i?"powering-on":"powering-off";v(k),s==null||s(k)}},[i,s]);const m=()=>{p==="powering-on"?(v("on"),s==null||s("on"),a==null||a()):p==="powering-off"&&(v("off"),s==null||s("off"),d==null||d())},g=C=>{C.animationName!=="retro-power-on"&&C.animationName!=="retro-power-off"||m()},b=C=>{C.propertyName==="opacity"&&(p!=="powering-on"&&p!=="powering-off"||m())},y=["retro-effects",p==="powering-off"&&"retro-effects--powering-off",p==="powering-on"&&"retro-effects--powering-on",p==="off"&&"retro-effects--off",o].filter(Boolean).join(" "),x={"--retro-intensity":l},E=p!=="off";return h.jsx("div",{className:y,style:x,"aria-hidden":"true",onAnimationEnd:g,onTransitionEnd:b,children:E&&h.jsxs(h.Fragment,{children:[t&&h.jsx("div",{className:"retro-effects__scanlines"}),e&&h.jsx("div",{className:"retro-effects__glow"}),n&&h.jsx("div",{className:"retro-effects__flicker"}),r&&h.jsx("div",{className:"retro-effects__bloom"})]})})},Je=({shape:t="circle",variant:e="default",isActive:n=!1,label:r,labelPosition:i="right",size:l="medium",className:o="",onClick:s,...a})=>{const d=["timeline-node",`timeline-node--${t}`,`timeline-node--${e}`,`timeline-node--${l}`,`timeline-node--label-${i}`,n&&"timeline-node--active",s&&"timeline-node--interactive",o].filter(Boolean).join(" "),u=()=>{s&&s()},p=v=>{s&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),s())};return h.jsxs("div",{className:d,onClick:u,onKeyDown:p,role:s?"button":void 0,tabIndex:s?0:void 0,"aria-pressed":s?n:void 0,...a,children:[r&&i==="left"&&h.jsx("span",{className:"timeline-node__label timeline-node__label--left",children:r}),r&&i==="top"&&h.jsx("span",{className:"timeline-node__label timeline-node__label--top",children:r}),h.jsx("span",{className:"timeline-node__marker","aria-hidden":"true"}),r&&i==="right"&&h.jsx("span",{className:"timeline-node__label timeline-node__label--right",children:r}),r&&i==="bottom"&&h.jsx("span",{className:"timeline-node__label timeline-node__label--bottom",children:r})]})},kt=["year","month","day","hour"];function ju({zoomLevel:t,defaultZoomLevel:e="month",onZoomChange:n}={}){const r=t===void 0,[i,l]=c.useState(e),[o,s]=c.useState([]),a=c.useRef(r);c.useEffect(()=>{a.current&&!r&&s([]),a.current=r},[r]);const d=t??i,u=kt.indexOf(d),p=u<kt.length-1,v=u>0,m=o.length>0?o[o.length-1].periodStart:null,g=c.useRef(r),b=c.useRef(p),y=c.useRef(u),x=c.useRef(o),E=c.useRef(n);c.useEffect(()=>{g.current=r,b.current=p,y.current=u,x.current=o,E.current=n});const C=c.useCallback(F=>{var P;g.current&&l(F),(P=E.current)==null||P.call(E,F)},[]),k=c.useCallback((F,P)=>{if(!g.current||!b.current)return;const L=kt[y.current+1];L!==void 0&&(s(V=>[...V,{periodStart:F,label:P}]),C(L))},[C]),$=c.useCallback(()=>{if(!g.current||x.current.length===0)return;const F=kt[y.current-1];F!==void 0&&(s(P=>P.slice(0,-1)),C(F))},[C]),z=c.useCallback(()=>{g.current&&(s([]),C("year"))},[C]);return{zoomLevel:d,canZoomIn:p,canZoomOut:v,breadcrumbs:o,currentPeriod:m,isDrillDownEnabled:r,drillDown:k,drillUp:$,reset:z}}function Gu({selectedEntryId:t,defaultSelectedEntryId:e=null,onSelectEntry:n}={}){const[r,i]=c.useState(e),l=t!==void 0,o=t!==void 0?t:r,s=c.useRef(o),a=c.useRef(l),d=c.useRef(n);c.useEffect(()=>{s.current=o,a.current=l,d.current=n});const u=c.useCallback(g=>{var b;a.current||i(g),(b=d.current)==null||b.call(d,g)},[]),p=c.useCallback(g=>{u(g)},[u]),v=c.useCallback(()=>{u(null)},[u]),m=c.useCallback(g=>{var b;a.current?(b=d.current)==null||b.call(d,s.current===g?null:g):i(y=>{var E;const x=y===g?null:g;return(E=d.current)==null||E.call(d,x),x})},[]);return{selectedEntryId:o,select:p,deselect:v,toggle:m}}const qu=["January","February","March","April","May","June","July","August","September","October","November","December"],gr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function sn(t){return new Date(t).getUTCFullYear()}function yr(t){return new Date(t).getUTCMonth()}function Do(t){return new Date(t).getUTCDate()}function Yu(t){return new Date(t).getUTCHours()}function Xu(t){return String(t)}function Zu(t,e){return`${qu[e]} ${t}`}function Ju(t,e,n){return`${gr[e]} ${n}`}function Qu(t,e,n,r){const i=r>=12?"pm":"am",l=r===0?12:r>12?r-12:r;return`${gr[e]} ${n}, ${l}${i}`}function Ru(t){const e=new Date(t),n=gr[e.getUTCMonth()],r=e.getUTCDate(),i=e.getUTCFullYear(),l=e.getUTCHours(),o=e.getUTCMinutes(),s=l>=12?"pm":"am",a=l===0?12:l>12?l-12:l,d=o>0?`:${String(o).padStart(2,"0")}`:"";return`${n} ${r}, ${i} at ${a}${d}${s}`}function ef(t){return new Date(Date.UTC(t,0,1)).toISOString()}function tf(t,e){return new Date(Date.UTC(t,e,1)).toISOString()}function nf(t,e,n){return new Date(Date.UTC(t,e,n)).toISOString()}function rf(t,e,n,r){return new Date(Date.UTC(t,e,n,r)).toISOString()}function an(t,e,n,r,i){const l=new Map,o=[];for(const s of t){const a=e(s),d=l.get(a);d?d.push(s):(l.set(a,[s]),o.push(a))}o.sort((s,a)=>i==="asc"?s.localeCompare(a):a.localeCompare(s));for(const[,s]of l)s.sort((a,d)=>{const u=a.date.localeCompare(d.date);return i==="asc"?u:-u});return o.map(s=>({label:n(s),periodStart:r(s),entries:l.get(s)??[]}))}function lf(t){return String(sn(t.date))}function of(t){const e=sn(t.date),n=yr(t.date);return`${e}-${String(n).padStart(2,"0")}`}function sf(t){const e=sn(t.date),n=yr(t.date),r=Do(t.date);return`${e}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}`}function af(t){const e=sn(t.date),n=yr(t.date),r=Do(t.date),i=Yu(t.date);return`${e}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}-${String(i).padStart(2,"0")}`}function So(t){return{year:parseInt(t)}}function Io(t){const[e,n]=t.split("-");return{year:parseInt(e),month:parseInt(n)}}function _o(t){const[e,n,r]=t.split("-");return{year:parseInt(e),month:parseInt(n),day:parseInt(r)}}function Ko(t){const[e,n,r,i]=t.split("-");return{year:parseInt(e),month:parseInt(n),day:parseInt(r),hour:parseInt(i)}}const cf={year:4,month:7,day:10};function df(t,e,n){if(e===null||n==="hour")return t;const r=cf[n];if(r===void 0)return t;const i=e.slice(0,r);return t.filter(l=>l.periodStart.slice(0,r)===i)}function uf(t,e,n="desc"){if(t.length===0)return[];const r=t.filter(i=>!isNaN(new Date(i.date).getTime()));if(r.length===0)return[];switch(e){case"year":return an(r,lf,i=>{const{year:l}=So(i);return Xu(l)},i=>{const{year:l}=So(i);return ef(l)},n);case"month":return an(r,of,i=>{const{year:l,month:o}=Io(i);return Zu(l,o)},i=>{const{year:l,month:o}=Io(i);return tf(l,o)},n);case"day":return an(r,sf,i=>{const{year:l,month:o,day:s}=_o(i);return Ju(l,o,s)},i=>{const{year:l,month:o,day:s}=_o(i);return nf(l,o,s)},n);case"hour":return an(r,af,i=>{const{year:l,month:o,day:s,hour:a}=Ko(i);return Qu(l,o,s,a)},i=>{const{year:l,month:o,day:s,hour:a}=Ko(i);return rf(l,o,s,a)},n)}}const ff=({zoomLevel:t,canZoomIn:e,canZoomOut:n,onZoomIn:r,onZoomOut:i,onReset:l,breadcrumbs:o=[],onBreadcrumbClick:s})=>{const a=o.length>0;return h.jsxs("div",{className:"timeline-zoom-controls",role:"toolbar","aria-label":"Timeline zoom controls",children:[h.jsx(mr,{variant:"secondary",size:"small",onClick:i,disabled:!n,"aria-label":"Zoom out",children:"[-]"}),a?h.jsx($o,{trail:[{label:"ALL",onClick:l},...o.slice(0,-1).map((d,u)=>({label:d.label,onClick:()=>s==null?void 0:s(u)}))],currentLabel:o[o.length-1].label,showBackArrow:!1,separator:">",className:"timeline-zoom-controls__breadcrumb"}):h.jsx("button",{type:"button",className:"timeline-zoom-controls__level",onClick:l,"aria-label":`Current zoom: ${t}. Click to reset.`,children:h.jsx(Pt,{variant:"accent",size:"medium",children:t.toUpperCase()})}),h.jsx(mr,{variant:"secondary",size:"small",onClick:r,disabled:!e,"aria-label":"Zoom in",children:"[+]"})]})},xr=({children:t})=>h.jsxs("div",{className:"timeline-axis",children:[h.jsx("div",{className:"timeline-axis__line","aria-hidden":"true"}),h.jsx("div",{className:"timeline-axis__content",children:t})]}),Mo=c.memo(({buckets:t,onBucketClick:e})=>h.jsx("div",{className:"timeline-view timeline-view--year",role:"list",children:t.map(n=>h.jsx("div",{className:"timeline-view__bucket timeline-view__bucket--year",role:"listitem",children:e?h.jsxs("button",{type:"button",className:"timeline-view__bucket-button",onClick:()=>e(n),children:[h.jsx("div",{className:"timeline-view__node",children:h.jsx(Je,{shape:"circle",size:"medium",variant:"default",label:n.label,labelPosition:"right"})}),h.jsx("div",{className:"timeline-view__content",children:h.jsxs(Pt,{variant:"default",size:"small",children:[n.entries.length," ",n.entries.length===1?"entry":"entries"]})})]}):h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"timeline-view__node",children:h.jsx(Je,{shape:"circle",size:"medium",variant:"default",label:n.label,labelPosition:"right"})}),h.jsx("div",{className:"timeline-view__content",children:h.jsxs(Pt,{variant:"default",size:"small",children:[n.entries.length," ",n.entries.length===1?"entry":"entries"]})})]})},n.periodStart))}));Mo.displayName="YearView";const Tt=c.memo(({entry:t,isSelected:e,isExpanded:n=!1,onSelect:r,footer:i,children:l})=>{const o=["timeline-card",e&&"timeline-card--selected",n&&"timeline-card--expanded"].filter(Boolean).join(" "),s=typeof t.content=="string",a=t.content!=null;return h.jsxs("div",{className:o,children:[h.jsxs("button",{type:"button",className:"timeline-card__trigger",onClick:()=>r==null?void 0:r(t.id),"aria-expanded":n,children:[h.jsxs("div",{className:"timeline-card__header",children:[t.type&&h.jsx("span",{className:"timeline-card__type",children:t.type.toUpperCase()}),t.tags&&t.tags.length>0&&h.jsx("span",{className:"timeline-card__tags",children:t.tags.map(d=>`#${d}`).join(" ")})]}),h.jsx("p",{className:"timeline-card__title",children:t.title}),!n&&s&&(()=>{const d=String(t.content);return h.jsxs("p",{className:"timeline-card__preview",children:[d.slice(0,80),d.length>80?"...":""]})})(),l]}),a&&h.jsx("div",{className:"timeline-card__body",children:h.jsx("div",{className:"timeline-card__body-inner",inert:n?void 0:!0,children:t.content})}),i&&h.jsx("div",{className:"timeline-card__footer",children:i})]})});Tt.displayName="TimelineEntryCard";const Lo=c.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n,onBucketClick:r})=>h.jsx("div",{className:"timeline-view timeline-view--month",role:"list",children:t.map(i=>h.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--month",role:"listitem",children:[h.jsx("div",{className:"timeline-view__node",children:h.jsx(Je,{shape:"circle",size:"medium",variant:"default",label:i.label,labelPosition:"right",onClick:()=>r==null?void 0:r(i)})}),h.jsx("div",{className:"timeline-view__content",children:i.entries.map(l=>h.jsx(Tt,{entry:l,isSelected:e===l.id,isExpanded:e===l.id,onSelect:n},l.id))})]},i.periodStart))}));Lo.displayName="MonthView";const Fo={sm:"text-[10px] px-1.5 py-0.5 min-h-[18px] gap-1",md:"text-[12px] px-2 py-1 min-h-[22px] gap-1.5",lg:"text-[14px] px-2.5 py-1 min-h-[26px] gap-1.5",small:"text-[10px] px-1.5 py-0.5 min-h-[18px] gap-1",medium:"text-[12px] px-2 py-1 min-h-[22px] gap-1.5"},wr=({children:t,variant:e="default",size:n="md",color:r,selected:i=!1,closeable:l=!1,disabled:o=!1,onClick:s,onClose:a,className:d,"aria-label":u,...p})=>{const v=!!s&&!o,{isClosing:m,triggerClose:g,handleAnimationEnd:b}=jr("tag-exit",a),y=C=>{o||((C.key==="Enter"||C.key===" ")&&s&&(C.preventDefault(),s(C)),(C.key==="Delete"||C.key==="Backspace")&&l&&a&&(C.preventDefault(),g()))},x=C=>{C.stopPropagation(),o||g()},E=r?{"--tag-color":"var("+r+")"}:void 0;return h.jsxs("span",{className:G("inline-flex items-center justify-center","font-dos font-dos-regular leading-none whitespace-nowrap select-none","rounded-dos-sm uppercase tracking-wider",Fo[n]||Fo.md,"eidotter-tag","eidotter-tag--"+e,i&&"eidotter-tag--selected",o&&"opacity-50 cursor-not-allowed",m&&"eidotter-tag--closing",v&&"cursor-pointer",d),style:E,onClick:v?C=>!o&&(s==null?void 0:s(C)):void 0,onKeyDown:y,onAnimationEnd:b,"aria-label":u,"aria-selected":i||void 0,"aria-disabled":o||void 0,"data-variant":e,...v?{role:"button",tabIndex:0}:{},...p,children:[h.jsx("span",{className:"eidotter-tag__content",children:t}),l&&h.jsx("button",{className:"eidotter-tag__close",type:"button","aria-label":"Remove "+(typeof t=="string"?t:"tag"),tabIndex:-1,onClick:x,disabled:o,children:"[x]"})]})},Er=({children:t,gap:e="normal",wrap:n=!0,className:r="","aria-label":i,...l})=>{const o=["tag-group",`tag-group--${e}`,!n&&"tag-group--nowrap",r].filter(Boolean).join(" ");return h.jsx("div",{className:o,role:"group","aria-label":i,...l,children:t})},Ao=c.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n})=>h.jsx("div",{className:"timeline-view timeline-view--day",role:"list",children:t.map(r=>h.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--day",role:"listitem",children:[h.jsx("div",{className:"timeline-view__node",children:h.jsx(Je,{shape:"circle",size:"medium",variant:"default",label:r.label,labelPosition:"right"})}),h.jsx("div",{className:"timeline-view__content",children:r.entries.map(i=>h.jsx(Tt,{entry:i,isSelected:e===i.id,isExpanded:e===i.id,onSelect:n,footer:i.tags&&i.tags.length>0?h.jsx(Er,{gap:"tight","aria-label":`Tags for ${i.title}`,children:i.tags.map(l=>h.jsx(wr,{size:"small",variant:"outlined",children:l},l))}):void 0},i.id))})]},r.periodStart))}));Ao.displayName="DayView";const Oo=c.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n})=>h.jsx("div",{className:"timeline-view timeline-view--hour",role:"list",children:t.map(r=>h.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--hour",role:"listitem",children:[h.jsx("div",{className:"timeline-view__node",children:h.jsx(Je,{shape:"circle",size:"medium",variant:"default",label:r.label,labelPosition:"right"})}),h.jsx("div",{className:"timeline-view__content",children:r.entries.map(i=>h.jsxs(Tt,{entry:i,isSelected:e===i.id,isExpanded:!0,onSelect:n,footer:h.jsxs("div",{className:"timeline-view__entry-footer",children:[i.tags&&i.tags.length>0&&h.jsx(Er,{gap:"tight","aria-label":`Tags for ${i.title}`,children:i.tags.map(l=>h.jsx(wr,{size:"small",variant:"outlined",children:l},l))}),i.type&&h.jsx(Pt,{variant:"default",size:"small",children:i.type})]}),children:[h.jsx("time",{className:"timeline-view__timestamp",dateTime:i.date,children:Ru(i.date)}),h.jsx("div",{className:"timeline-view__entry-content",children:i.content})]},i.id))})]},r.periodStart))}));Oo.displayName="HourView";const pf=({zoomLevel:t,buckets:e,selectedEntryId:n,onEntrySelect:r,onBucketClick:i})=>{switch(t){case"year":return h.jsx(Mo,{buckets:e,onBucketClick:i});case"month":return h.jsx(Lo,{buckets:e,selectedEntryId:n,onEntrySelect:r,onBucketClick:i});case"day":return h.jsx(Ao,{buckets:e,selectedEntryId:n,onEntrySelect:r});case"hour":return h.jsx(Oo,{buckets:e,selectedEntryId:n,onEntrySelect:r});default:return t}},hf=({entries:t,mode:e="interactive",zoomLevel:n,defaultZoomLevel:r="month",onZoomChange:i,selectedEntryId:l,defaultSelectedEntryId:o,onSelectEntry:s,sortOrder:a="desc",scrollToZoom:d=!0,keyboardShortcuts:u=!0,...p})=>{var w;const v=e==="static",m=c.useRef(null),g=c.useRef(null),[b,y]=c.useState(""),{zoomLevel:x,canZoomIn:E,canZoomOut:C,breadcrumbs:k,currentPeriod:$,isDrillDownEnabled:z,drillDown:F,drillUp:P,reset:L}=ju({zoomLevel:n,defaultZoomLevel:r,onZoomChange:i}),{selectedEntryId:V,toggle:ee,deselect:ne}=Gu({selectedEntryId:l,defaultSelectedEntryId:o,onSelectEntry:s}),Y=c.useMemo(()=>uf(t,x,a),[t,x,a]),N=k.length>0?["year","month","day","hour"][k.length-1]:null,O=c.useMemo(()=>$&&N?df(Y,$,N):Y,[Y,$,N]);c.useEffect(()=>{if(v||!d)return;const T=m.current;if(!T)return;let S=null;const I=U=>{!U.ctrlKey&&!U.metaKey||(U.preventDefault(),S===null&&(S=requestAnimationFrame(()=>{U.deltaY>0&&P(),S=null})))};return T.addEventListener("wheel",I,{passive:!1}),()=>{T.removeEventListener("wheel",I),S!==null&&cancelAnimationFrame(S)}},[v,d,z,E,P]),c.useEffect(()=>{if(v||!u)return;const T=S=>{var U;if(!((U=m.current)!=null&&U.contains(document.activeElement))&&document.activeElement!==m.current)return;const I=S.ctrlKey||S.metaKey;I&&S.key==="-"?(S.preventDefault(),P()):I&&S.key==="0"?(S.preventDefault(),L(),y("Showing all years")):S.key==="Escape"&&(S.preventDefault(),ne())};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[v,u,P,L,ne]);const j=c.useCallback(T=>{E&&(F(T.periodStart,T.label),y(`Showing ${x==="year"?"months":x==="month"?"days":"hours"} in ${T.label}`))},[E,F,x]),X=c.useRef(k.length);c.useEffect(()=>{var T;if(k.length!==X.current){X.current=k.length;const S=(T=g.current)==null?void 0:T.querySelector('.timeline-card__trigger, .timeline-view__bucket-button, .timeline-node[role="button"]');S&&requestAnimationFrame(()=>S.focus())}},[k.length]);const Q=["timeline-container",v&&"timeline-container--static",p.className].filter(Boolean).join(" "),re=c.useMemo(()=>v?[...t].sort((T,S)=>{const I=T.date.localeCompare(S.date);return a==="desc"?-I:I}):t,[v,t,a]),f=c.useMemo(()=>new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short",day:"numeric"}),[]),D=T=>{try{return f.format(new Date(T))}catch{return T}};return h.jsxs("div",{ref:m,...p,className:Q,role:"region","aria-label":p["aria-label"]??"Timeline",tabIndex:v?void 0:0,children:[h.jsx("div",{className:"timeline-container__announcer",role:"status","aria-live":"polite","aria-atomic":"true",children:b}),!v&&h.jsx(ff,{zoomLevel:x,canZoomIn:E,canZoomOut:C,onZoomIn:()=>{},onZoomOut:P,onReset:L,breadcrumbs:z?k:[],onBreadcrumbClick:T=>{const S=k.length-1-T;for(let I=0;I<S;I++)P()}}),h.jsx("div",{ref:g,children:t.length===0?h.jsxs("div",{className:"timeline-container__empty",role:"status",children:[h.jsx("p",{children:"C:\\TIMELINE> No entries found."}),h.jsx("p",{children:"_"})]}):v?h.jsx(xr,{children:h.jsx("div",{className:"timeline-container__static",role:"list","aria-label":"Timeline",children:re.map(T=>h.jsxs("div",{className:"timeline-container__static-entry",role:"listitem",children:[h.jsx("div",{className:"timeline-view__node",children:h.jsx(Je,{shape:"circle",size:"medium",variant:"default",label:D(T.date),labelPosition:"right"})}),h.jsx(Tt,{entry:T,isSelected:!1,isExpanded:!0})]},T.id))})}):O.length===0&&$?h.jsx(xr,{children:h.jsxs("div",{className:"timeline-container__empty",role:"status",children:[h.jsxs("p",{children:["C:\\TIMELINE> No entries in ",((w=k[k.length-1])==null?void 0:w.label)??"this period","."]}),h.jsx("p",{children:"_"})]})}):h.jsx(xr,{children:h.jsx(pf,{zoomLevel:x,buckets:O,selectedEntryId:V,onEntrySelect:ee,onBucketClick:j})})})]})},vf=({isOpen:t,onClose:e,onOpenChange:n,title:r,children:i,footer:l,className:o})=>{const s=c.useRef(t);c.useEffect(()=>{t!==s.current&&(s.current=t,n==null||n(t))},[t,n]);const a=d=>{d||e()};return h.jsx(mo,{isOpen:t,onOpenChange:a,isDismissable:!0,className:({isEntering:d,isExiting:u})=>G("eidotter-modal-overlay",d&&"eidotter-modal-overlay--entering",u&&"eidotter-modal-overlay--exiting"),children:h.jsx(yu,{className:({isEntering:d,isExiting:u})=>G("eidotter-modal",d&&"eidotter-modal--entering",u&&"eidotter-modal--exiting"),children:h.jsxs(bu,{"aria-label":r,className:G("eidotter-modal__container outline-none",o),children:[h.jsxs("header",{className:"eidotter-modal__header",children:[h.jsx("h2",{className:"eidotter-modal__title",children:r}),h.jsx("button",{type:"button",className:"eidotter-modal__close",onClick:e,"aria-label":"Close modal",children:h.jsx(xe,{name:"Close",size:"S"})})]}),h.jsx("div",{className:"eidotter-modal__body",children:i}),l&&h.jsx("footer",{className:"eidotter-modal__footer",children:l})]})})})},mf="░▒▓█│┤┐└┴┬├─┼",bf=4;function Cr(t,e){const{speed:n=40,characters:r=mf,enabled:i=!0,delay:l=0}=e??{},[o,s]=c.useState(()=>{if(!i||hn())return t;let p="";for(let v=0;v<t.length;v++)t[v]===" "?p+=" ":p+=r[Math.floor(Math.random()*r.length)];return p}),[a,d]=c.useState(!1),u=c.useRef(0);return c.useEffect(()=>{if(!i||hn()){s(t),d(!1);return}let p=0,v=0,m=0,g=l;d(!0);const b=y=>{m||(m=y);const x=y-m;if(g>0){g-=x,m=y,u.current=requestAnimationFrame(b);return}if(x>=n){if(m=y,v++,v>=bf&&(p++,v=0),p>=t.length){s(t),d(!1);return}let E="";for(let C=0;C<t.length;C++)C<p?E+=t[C]:t[C]===" "?E+=" ":E+=r[Math.floor(Math.random()*r.length)];s(E)}u.current=requestAnimationFrame(b)};return u.current=requestAnimationFrame(b),()=>{u.current&&cancelAnimationFrame(u.current)}},[t,n,r,i,l]),{text:o,isScrambling:a}}const Bo={sm:{root:"gap-0.5",label:"text-[10px]",value:"text-lg",trend:"text-[10px]"},md:{root:"gap-1",label:"text-[10px]",value:"text-2xl",trend:"text-[10px]"},lg:{root:"gap-1.5",label:"text-xs",value:"text-4xl",trend:"text-xs"},small:{root:"gap-0.5",label:"text-[10px]",value:"text-lg",trend:"text-[10px]"},medium:{root:"gap-1",label:"text-[10px]",value:"text-2xl",trend:"text-[10px]"},large:{root:"gap-1.5",label:"text-xs",value:"text-4xl",trend:"text-xs"}},gf={up:"text-cga-bright-green",down:"text-cga-bright-red",neutral:"text-cga-amber"},yf={up:"▲",down:"▼",neutral:"►"},xf={up:"increasing",down:"decreasing",neutral:"unchanged"},wf=({label:t,value:e,trend:n,trendValue:r,size:i="md",scramble:l=!1,className:o,...s})=>{const{text:a}=Cr(String(e),{speed:30,enabled:l}),d=l?a:String(e),u=Bo[i]||Bo.md;return h.jsxs("div",{className:G("flex flex-col font-dos","eidotter-stat",u.root,o),...s,children:[h.jsx("span",{className:G("text-cga-amber uppercase tracking-wider leading-tight",u.label),children:t}),h.jsx("span",{className:G("text-dos-text-accent font-bold leading-none tabular-nums",u.value),children:d}),n&&h.jsxs("span",{className:G("inline-flex items-center gap-1 leading-none",gf[n],u.trend),"aria-label":`Trend: ${xf[n]}${r?`, ${r}`:""}`,children:[h.jsx("span",{className:"text-[0.8em]","aria-hidden":"true",children:yf[n]}),r&&h.jsx("span",{className:"tabular-nums",children:r})]})]})},Vo={sm:"eidotter-filter-bar--sm",md:"eidotter-filter-bar--md",lg:"eidotter-filter-bar--lg",small:"eidotter-filter-bar--sm",medium:"eidotter-filter-bar--md",large:"eidotter-filter-bar--lg"},Ef=({items:t,activeIds:e,defaultActiveIds:n=[],mode:r="multi",showAll:i=!1,allLabel:l="All",size:o="md",onChange:s,className:a,...d})=>{const[u,p]=c.useState(n),v=c.useRef(null),m=e!==void 0,g=m?e:u,b=t.filter(P=>!P.disabled).map(P=>P.id),y=g.length===0,x=c.useCallback(P=>{m||p(P),s==null||s(P)},[m,s]),E=c.useCallback(P=>{if(r==="single"){const L=g.includes(P)?[]:[P];x(L)}else{const L=g.includes(P)?g.filter(V=>V!==P):[...g,P];x(L)}},[r,g,x]),C=c.useCallback(()=>{x([])},[x]),k=c.useCallback(()=>v.current?Array.from(v.current.querySelectorAll("button:not([disabled])")):[],[]),$=c.useCallback(P=>{const L=k(),V=L.indexOf(P.target);if(V===-1)return;let ee=null;switch(P.key){case"ArrowLeft":case"ArrowUp":P.preventDefault(),ee=V>0?V-1:L.length-1;break;case"ArrowRight":case"ArrowDown":P.preventDefault(),ee=V<L.length-1?V+1:0;break;case"Home":P.preventDefault(),ee=0;break;case"End":P.preventDefault(),ee=L.length-1;break}ee!==null&&L[ee].focus()},[k]),F=i&&y?"__all__":g.length>0?g[0]:i?"__all__":b[0]||null;return h.jsxs("div",{ref:v,className:G("inline-flex flex-wrap items-center gap-1 p-1 font-dos max-w-full","bg-dos-bg-secondary border border-dos-border-default rounded-dos-sm","eidotter-filter-bar",Vo[o]||Vo.md,a),role:"toolbar",onKeyDown:$,...d,children:[i&&h.jsx("button",{type:"button",className:G("eidotter-filter-bar__item","eidotter-filter-bar__item--all",y&&"eidotter-filter-bar__item--active"),"aria-pressed":y,tabIndex:F==="__all__"?0:-1,onClick:C,children:h.jsx("span",{className:"eidotter-filter-bar__label",children:l})}),t.map(P=>{const L=g.includes(P.id),V=L&&P.color?{"--filter-bar-item-color":`var(${P.color})`}:void 0;return h.jsxs("button",{type:"button",className:G("eidotter-filter-bar__item",L&&"eidotter-filter-bar__item--active",P.disabled&&"eidotter-filter-bar__item--disabled"),"aria-pressed":L,tabIndex:F===P.id?0:-1,disabled:P.disabled,onClick:()=>E(P.id),style:V,children:[h.jsx("span",{className:"eidotter-filter-bar__label",children:P.label}),P.count!==void 0&&h.jsx("span",{className:"eidotter-filter-bar__count","aria-label":`${P.count} items`,children:P.count})]},P.id)})]})},Pr=t=>{if(!t)return!1;try{const e=new URL(t);return["http:","https:","mailto:"].includes(e.protocol)}catch{return!1}},Cf=({children:t,content:e,defaultExpanded:n=!1,expanded:r,onToggle:i,sources:l=[],className:o="",...s})=>{const[a,d]=c.useState(n),[u,p]=c.useState(new Set),v=c.useRef(n),m=c.useId(),g=c.useRef(null),b=r!==void 0,y=b?r:a;y&&(v.current=!0);const x=()=>{const k=!y;b||d(k),i==null||i(k)},E=k=>{var $;k.key==="Escape"&&y&&(k.stopPropagation(),x(),($=g.current)==null||$.focus())},C=["inline-expand",y&&"inline-expand--expanded",o].filter(Boolean).join(" ");return h.jsxs("span",{className:C,onKeyDown:E,...s,children:[h.jsxs("button",{ref:g,type:"button",className:"inline-expand__trigger","aria-expanded":y,"aria-controls":m,onClick:x,children:[t,h.jsx("span",{className:"inline-expand__indicator","aria-hidden":"true",children:y?"[-]":"[+]"})]}),h.jsxs("span",{id:m,className:"inline-expand__content",role:"region",inert:!y,children:[h.jsx("span",{className:"inline-expand__inner",children:e}),l.length>0&&h.jsx("span",{className:"inline-expand__sources",role:"list",children:l.map(k=>h.jsx("span",{className:"inline-expand__source-item",role:"listitem",children:h.jsxs("a",{href:Pr(k.url)?k.url:void 0,className:"inline-expand__source-link",target:"_blank",rel:"noopener noreferrer","aria-label":`${k.title} (opens external website)`,children:[v.current&&k.favicon&&Pr(k.favicon)&&!u.has(k.url)?h.jsx("img",{className:"inline-expand__source-favicon",src:k.favicon,alt:"",width:16,height:16,decoding:"async",onError:()=>p($=>new Set($).add(k.url))}):h.jsx("span",{className:"inline-expand__source-icon","aria-hidden":"true",children:"[→]"}),h.jsx("span",{className:"inline-expand__source-title",children:k.title})]})},k.url))})]})]})},Pf={horizontal:"h-px w-full",vertical:"w-px h-full"},kf=({orientation:t="horizontal",className:e})=>h.jsx("div",{role:"separator","aria-orientation":t,className:G("shrink-0 bg-dos-border-default","eidotter-separator",Pf[t],e)}),Tf=({children:t,speed:e,characters:n,delay:r,className:i="",...l})=>{const{text:o,isScrambling:s}=Cr(t,{speed:e,characters:n,delay:r}),a=["text-scramble",s&&"text-scramble--scrambling",i].filter(Boolean).join(" ");return h.jsx("span",{className:a,...l,children:o})},zo={retro:"eidotter-nav--retro",modern:"eidotter-nav--modern"},Ho=({items:t,activeHref:e,variant:n="retro",linkComponent:r,className:i})=>{const l=r||"a";return h.jsx("nav",{className:G("eidotter-nav eidotter-nav--desktop",zo[n],i),"aria-label":"Main navigation",children:h.jsx("ul",{className:"eidotter-nav__desktop-list",children:t.map(o=>h.jsx("li",{className:"eidotter-nav__desktop-item",children:h.jsx(l,{href:o.href,className:G("eidotter-nav__link",e===o.href&&"eidotter-nav__link--active"),children:o.label})},o.href))})})},Uo=({items:t,activeHref:e,variant:n="retro",linkComponent:r,className:i})=>{const[l,o]=c.useState(!1),s=r||"a",a=c.useCallback(()=>o(u=>!u),[]),d=c.useCallback(()=>o(!1),[]);return h.jsxs("div",{className:G("eidotter-nav eidotter-nav--mobile",zo[n],i),children:[h.jsx("button",{onClick:a,className:"eidotter-nav__hamburger","aria-label":l?"Close menu":"Open menu","aria-expanded":l,children:h.jsx("span",{className:"eidotter-nav__hamburger-icon","aria-hidden":"true",children:l?"✕":"☰"})}),l&&h.jsx("div",{className:"eidotter-nav__overlay",onClick:d,"aria-hidden":"true"}),h.jsxs("nav",{className:G("eidotter-nav__panel",l&&"eidotter-nav__panel--open"),"aria-label":"Mobile navigation",children:[h.jsx("div",{className:"eidotter-nav__panel-header",children:h.jsx("button",{onClick:d,className:"eidotter-nav__close","aria-label":"Close menu",children:"✕"})}),h.jsx("ul",{className:"eidotter-nav__list",children:t.map(u=>h.jsx("li",{className:"eidotter-nav__item",children:h.jsx(s,{href:u.href,className:G("eidotter-nav__link",e===u.href&&"eidotter-nav__link--active"),onClick:d,children:u.label})},u.href))})]})]})},Nf=t=>h.jsxs(h.Fragment,{children:[h.jsx(Uo,{...t}),h.jsx(Ho,{...t})]}),Wo=({role:t,content:e,isStreaming:n=!1,userPrefix:r=">",assistantPrefix:i="C:\\>",className:l="",...o})=>{const s=t==="user"?r:t==="assistant"?i:"",a=["chat-message",`chat-message--${t}`,n&&"chat-message--streaming",l].filter(Boolean).join(" ");return h.jsxs("div",{className:a,...o,children:[s&&h.jsx("span",{className:"chat-message__prefix","aria-hidden":"true",children:s}),h.jsx("span",{className:"chat-message__content",children:e}),n&&h.jsx("span",{className:"chat-message__cursor","aria-hidden":"true",children:"█"})]})},jo=({messages:t,isStreaming:e=!1,userPrefix:n,assistantPrefix:r,className:i="",...l})=>{const o=c.useRef(null);c.useEffect(()=>{var a,d;(d=(a=o.current)==null?void 0:a.scrollIntoView)==null||d.call(a,{behavior:"smooth"})},[t.length,e]);const s=["chat-history",i].filter(Boolean).join(" ");return t.length===0?h.jsx("div",{className:s,role:"log","aria-live":"polite",...l,children:h.jsx("div",{className:"chat-history__empty",children:h.jsx("span",{className:"chat-history__empty-text",children:"Awaiting input..."})})}):h.jsx("div",{className:s,role:"log","aria-live":"polite",...l,children:h.jsxs("div",{className:"chat-history__messages",children:[t.map((a,d)=>{const u=e&&a.role==="assistant"&&d===t.length-1;return h.jsx(Wo,{role:a.role,content:a.content,isStreaming:u,userPrefix:n,assistantPrefix:r},a.id)}),h.jsx("div",{ref:o})]})})},Go=({onSend:t,prompt:e=">",placeholder:n,disabled:r=!1,className:i="",...l})=>{const[o,s]=c.useState(""),a=c.useRef(null);c.useLayoutEffect(()=>{const v=a.current;v&&(v.style.height="auto",v.style.height=`${v.scrollHeight}px`)},[o]);const d=v=>{if(v.key==="Enter"&&!v.shiftKey&&!r){v.preventDefault();const m=o.trim();m&&(t(m),s(""))}},u=()=>{!r&&a.current&&a.current.focus()},p=["chat-input",r&&"chat-input--disabled",i].filter(Boolean).join(" ");return h.jsxs("div",{className:p,onClick:u,...l,children:[h.jsx("span",{className:"chat-input__prompt","aria-hidden":"true",children:e}),h.jsxs("div",{className:"chat-input__input-wrapper",children:[h.jsx("textarea",{ref:a,className:"chat-input__textarea",value:o,onChange:v=>s(v.target.value),onKeyDown:d,placeholder:n,disabled:r,rows:1,"aria-label":"Chat input"}),h.jsx("span",{className:"chat-input__cursor","aria-hidden":"true",children:"█"})]})]})},$f=({messages:t,onSend:e,isStreaming:n=!1,inputPrompt:r,userPrefix:i,assistantPrefix:l,placeholder:o,disabled:s=!1,className:a="",...d})=>{const u=["chat-container",a].filter(Boolean).join(" ");return h.jsxs("div",{className:u,...d,children:[h.jsx(jo,{className:"chat-container__history",messages:t,isStreaming:n,userPrefix:i,assistantPrefix:l}),h.jsx(Go,{className:"chat-container__input",onSend:e,prompt:r,placeholder:o,disabled:s})]})},qo=[{label:"Impressum",href:"/impressum"},{label:"Datenschutz",href:"/datenschutz"}],Df=({copyright:t,links:e,children:n,className:r,...i})=>{const l=e??qo;return h.jsxs("footer",{className:G("font-dos text-sm py-4 px-2 text-center","eidotter-footer",r),...i,children:[h.jsx("div",{className:"h-px bg-dos-border-default mb-4",role:"separator"}),n&&h.jsx("div",{className:"mb-3",children:n}),l.length>0&&h.jsx("nav",{className:"flex justify-center items-center flex-wrap gap-2 mb-2","aria-label":"Footer links",children:l.map((o,s)=>h.jsxs(c.Fragment,{children:[s>0&&h.jsx("span",{className:"text-cga-brown select-none eidotter-footer__dot","aria-hidden":"true",children:"·"}),h.jsx("a",{className:"eidotter-footer__link text-cga-amber no-underline",href:o.href,...o.external?{target:"_blank",rel:"noopener noreferrer"}:{},children:o.label})]},o.href))}),t&&h.jsxs("p",{className:"text-cga-brown m-0",children:["© ",t]})]})},Sf={eidotter:{displayName:"eiDotter"},spacewar:{displayName:"Spacewar!"},rizomorf:{displayName:"rizomorf"},"pomodoke-calendar":{displayName:"PomoDoke Calendar"},keepcoin:{displayName:"KeepCoin"},steuerdash:{displayName:"Steuerdash"},sella:{displayName:"sella"},lifelines:{displayName:"Lifelines"},betamorf:{displayName:"betamorf"}},ot={Alert:{origin:"eidotter",consumers:["rizomorf","steuerdash"],since:"0.2.0",variants:{"type:info":{description:"Informational message",since:"0.2.0",usedBy:["rizomorf"]},"type:success":{description:"Success confirmation",since:"0.2.0",usedBy:["steuerdash"]},"type:warning":{description:"Warning notice",since:"0.2.0",usedBy:["rizomorf","steuerdash"]},"type:error":{description:"Error message",since:"0.2.0",usedBy:["steuerdash"]},"size:small":{description:"Compact alert for inline contexts",since:"0.2.0"},"size:large":{description:"Full-width alert with icon",since:"0.2.0"}},platforms:{react:{path:"src/components/Alert",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.8.0",type:"changed",description:"Design-craft animation polish with phosphor enter effects"},{version:"0.7.0",type:"changed",description:"Replace text-primary with cga-amber for theme consistency"},{version:"0.6.0",type:"changed",description:"Fix icon alignment and add prefers-contrast support"},{version:"0.4.0",type:"changed",description:"Add phosphor glow effects"},{version:"0.2.0",type:"added",description:"Initial Alert component with info/success/warning/error types"}]},Accordion:{origin:"eidotter",consumers:["rizomorf"]},AccordionFill:{origin:"eidotter",consumers:["rizomorf"]},Badge:{origin:"eidotter",consumers:["rizomorf","steuerdash"],since:"0.3.0",variants:{"variant:default":{description:"Neutral badge with muted styling",since:"0.3.0",usedBy:["rizomorf"]},"variant:success":{description:"Green success indicator",since:"0.3.0",usedBy:["steuerdash"]},"variant:warning":{description:"Amber warning indicator",since:"0.3.0",usedBy:["steuerdash"]},"variant:error":{description:"Red error/critical indicator",since:"0.3.0",usedBy:["steuerdash"]},"variant:info":{description:"Blue informational indicator",since:"0.3.0"},"variant:accent":{description:"Theme accent color badge",since:"0.3.0",usedBy:["rizomorf"]},"size:small":{description:"Compact inline badge",since:"0.3.0"},"size:medium":{description:"Standard badge size",since:"0.3.0"}},platforms:{react:{path:"src/components/Badge",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.8.0",type:"changed",description:"Design-craft animation polish with phosphor enter keyframes"},{version:"0.7.0",type:"changed",description:"Replace text-primary with cga-amber"},{version:"0.5.0",type:"changed",description:"Fix text vertical alignment for pixel fonts"},{version:"0.3.0",type:"added",description:"Initial Badge component for status indicators"}]},Breadcrumb:{origin:"rizomorf",consumers:["rizomorf"]},Button:{origin:"eidotter",consumers:["spacewar","rizomorf","pomodoke-calendar","steuerdash"],since:"0.2.0",variants:{"variant:primary":{description:"Primary CTA with amber background",since:"0.2.0",usedBy:["spacewar","rizomorf","pomodoke-calendar","steuerdash"]},"variant:secondary":{description:"Secondary action with border only",since:"0.2.0",usedBy:["rizomorf","steuerdash"]},"variant:ghost":{description:"Minimal button with hover reveal",since:"0.2.0",usedBy:["rizomorf"]},"variant:link":{description:"Inline link-style button",since:"0.2.0",usedBy:["rizomorf"]},"size:small":{description:"Compact 1.5rem min-height",since:"0.2.0"},"size:medium":{description:"Standard 2rem min-height",since:"0.2.0"},"size:large":{description:"Prominent 2.5rem min-height",since:"0.2.0"}},platforms:{react:{path:"src/components/Button",status:"canonical"},swiftui:{path:"platforms/swiftui/Sources/EiDotterUI/DOSButton.swift",status:"planned",note:"POC with primary variant only — not yet production-ready"},spritekit:{status:"token-only",note:"Spacewar uses tokens only, no UIKit/SwiftUI button"}},changelog:[{version:"0.11.0",type:"changed",description:"Convert font-size to rem tokens for WCAG SC 1.4.4"},{version:"0.8.0",type:"changed",description:"Design-craft animation polish across all variants"},{version:"0.7.0",type:"changed",description:"Increase font size and weight for readability"},{version:"0.6.0",type:"changed",description:"Add phosphor warmup/energize keyframes to all variants"},{version:"0.5.0",type:"changed",description:"Fix secondary label visibility in pressed state"},{version:"0.4.0",type:"changed",description:"Add CRT phosphor interaction states for primary variant"},{version:"0.2.0",type:"added",description:"Initial Button with primary/secondary/ghost/link variants"}]},Card:{origin:"eidotter",consumers:["rizomorf","steuerdash"],since:"0.3.0",variants:{"variant:default":{description:"Standard card with subtle border",since:"0.3.0",usedBy:["rizomorf","steuerdash"]},"variant:elevated":{description:"Raised card with drop shadow",since:"0.3.0",usedBy:["steuerdash"]},"variant:bordered":{description:"Strong border emphasis",since:"0.3.0"},"variant:glow":{description:"Phosphor glow border effect",since:"0.4.0",usedBy:["rizomorf"]},"variant:interactive":{description:"Hover-reactive card for clickable surfaces",since:"0.4.0",usedBy:["rizomorf"]},"variant:minimal":{description:"Borderless content container",since:"0.4.0"},"variant:callout":{description:"Highlighted callout with accent border",since:"0.4.0"}},platforms:{react:{path:"src/components/Card",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.11.0",type:"changed",description:"Convert font-size to rem tokens for WCAG SC 1.4.4"},{version:"0.8.0",type:"changed",description:"Design-craft animation polish with phosphor enter effects"},{version:"0.7.0",type:"changed",description:"Replace text-primary with cga-amber"},{version:"0.4.0",type:"added",description:"Add glow, interactive, minimal, callout variants"},{version:"0.4.0",type:"changed",description:"Add phosphor glow effects and amber dim header background"},{version:"0.3.0",type:"added",description:"Initial Card with default/elevated/bordered variants"}]},Checkbox:{origin:"eidotter",consumers:["steuerdash"]},CommandPrompt:{origin:"eidotter",consumers:["rizomorf"]},Icon:{origin:"eidotter",consumers:["rizomorf"]},Input:{origin:"eidotter",consumers:["steuerdash"]},Modal:{origin:"eidotter",consumers:["pomodoke-calendar"]},Progress:{origin:"eidotter",consumers:["steuerdash"],since:"0.3.0"},RetroEffects:{origin:"spacewar",consumers:["spacewar","rizomorf"],originNote:"CRT scanline/glow effects from Spacewar!"},Stat:{origin:"steuerdash",consumers:["steuerdash"],originNote:"Key-value display created for tax dashboard"},Switch:{origin:"eidotter",consumers:[]},FilterBar:{origin:"eidotter",consumers:["lifelines","rizomorf"],originNote:"Multi-select toggle group for faceted filtering"},Tag:{origin:"eidotter",consumers:["lifelines","rizomorf"],since:"0.7.0",originNote:"Interactive labels for tags, categories, and filter chips",variants:{"variant:default":{description:"Standard tag with subtle background",since:"0.7.0",usedBy:["rizomorf"]},"variant:outlined":{description:"Border-only tag",since:"0.7.0",usedBy:["lifelines"]},"variant:filled":{description:"Solid background tag",since:"0.7.0",usedBy:["rizomorf","lifelines"]},"size:small":{description:"Compact tag for dense layouts",since:"0.7.0"},"size:medium":{description:"Standard tag size",since:"0.7.0"}},platforms:{react:{path:"src/components/Tag",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.11.0",type:"changed",description:"Convert font-size to rem tokens for WCAG SC 1.4.4"},{version:"0.8.0",type:"changed",description:"Design-craft animation polish"},{version:"0.7.0",type:"added",description:"Initial Tag and TagGroup components"}]},Tabs:{origin:"eidotter",consumers:["steuerdash"]},Terminal:{origin:"eidotter",consumers:["rizomorf"]},TimelineNode:{origin:"lifelines",consumers:["lifelines","rizomorf"],originNote:"Timeline markers from Lifelines project"},InlineExpand:{origin:"rizomorf",consumers:["rizomorf"],originNote:"Inline disclosure widget for expanding text within prose"},Separator:{origin:"rizomorf",consumers:["rizomorf"],originNote:"Horizontal/vertical divider for content separation"},TimelineContainer:{origin:"lifelines",consumers:["lifelines"],originNote:"Multi-zoom timeline with year/month/day/hour views. Supports interactive, static, and feed modes."},ChatMessage:{origin:"eidotter",consumers:[],originNote:"Single chat message with role-based DOS styling and streaming cursor"},ChatHistory:{origin:"eidotter",consumers:[],originNote:'Scrollable message list with auto-scroll and role="log" accessibility'},ChatInput:{origin:"eidotter",consumers:[],originNote:"Multiline DOS-styled textarea with Enter-to-send"},ChatContainer:{origin:"eidotter",consumers:[],originNote:"Composes ChatHistory + ChatInput into a complete chat interface"},Footer:{origin:"eidotter",consumers:[],originNote:"DOS-themed footer with default legal links (Impressum + Datenschutz) for German compliance"}};function If(t){return ot[t]}function _f(t){return Object.entries(ot).filter(([,e])=>e.origin===t).map(([e])=>e)}function Kf(t){return Object.entries(ot).filter(([,e])=>e.consumers.includes(t)).map(([e])=>e)}function Mf(t,e){const n=ot[t];return n!=null&&n.variants?Object.entries(n.variants).filter(([,r])=>{var i;return(i=r.usedBy)==null?void 0:i.includes(e)}).map(([r])=>r):[]}function Lf(t){const e=ot[t];if(!(e!=null&&e.variants))return{};const n={};for(const[r,i]of Object.entries(e.variants))n[r]=i.usedBy??[];return n}const Ff="0.16.2";A.AccordionFill=Os,A.Alert=As,A.Badge=Pt,A.Breadcrumb=$o,A.Button=mr,A.Card=Mu,A.ChatContainer=$f,A.ChatHistory=jo,A.ChatInput=Go,A.ChatMessage=Wo,A.Checkbox=Lu,A.CommandPrompt=Fu,A.DesktopNav=Ho,A.FilterBar=Ef,A.Footer=Df,A.Icon=xe,A.InlineExpand=Cf,A.Input=Po,A.MobileNav=Uo,A.Modal=vf,A.Nav=Nf,A.Progress=Bu,A.RetroEffects=Wu,A.Section=Yr,A.Separator=kf,A.Stat=wf,A.Switch=Uu,A.Tabs=Hu,A.Tag=wr,A.TagGroup=Er,A.Terminal=Vu,A.TextScramble=Tf,A.TimelineContainer=hf,A.TimelineNode=Je,A.ZOOM_LEVELS=kt,A.componentRegistry=ot,A.defaultLegalLinks=qo,A.getComponentMeta=If,A.getComponentsByConsumer=Kf,A.getComponentsByOrigin=_f,A.getVariantConsumerMap=Lf,A.getVariantsUsedBy=Mf,A.isSafeUrl=Pr,A.projects=Sf,A.useTextScramble=Cr,A.version=Ff,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));
28
+ */var Io;function Fc(){return Io||(Io=1,process.env.NODE_ENV!=="production"&&(function(){function t(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}function e(m,g){u||i.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var b=g();if(!p){var y=g();o(b,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}y=l({inst:{value:b,getSnapshot:g}});var x=y[0].inst,E=y[1];return a(function(){x.value=b,x.getSnapshot=g,n(x)&&E({inst:x})},[m,b,g]),s(function(){return n(x)&&E({inst:x}),m(function(){n(x)&&E({inst:x})})},[m]),d(b),b}function n(m){var g=m.getSnapshot;m=m.value;try{var b=g();return!o(m,b)}catch{return!0}}function r(m,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=c,o=typeof Object.is=="function"?Object.is:t,l=i.useState,s=i.useEffect,a=i.useLayoutEffect,d=i.useDebugValue,u=!1,p=!1,v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;ar.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:v,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ar}var Ko;function Ac(){return Ko||(Ko=1,process.env.NODE_ENV==="production"?Jt.exports=Lc():Jt.exports=Fc()),Jt.exports}var Oc=Ac();const Mo=c.createContext(!1),Et=c.createContext(null);function Bc(t){if(c.useContext(Et))return t.content;let{collection:n,document:r}=Uc(t.createCollection);return c.createElement(c.Fragment,null,c.createElement(Mc,null,c.createElement(Et.Provider,{value:r},t.content)),c.createElement(Vc,{render:t.children,collection:n}))}function Vc({collection:t,render:e}){return e(t)}function zc(t,e,n){let r=Be(),i=c.useRef(r);i.current=r;let o=c.useCallback(()=>i.current?n():e(),[e,n]);return Oc.useSyncExternalStore(t,o)}const Hc=typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore:zc;function Uc(t){let[e]=c.useState(()=>new Kc((t==null?void 0:t())||new Ic)),n=c.useCallback(l=>e.subscribe(l),[e]),r=c.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),i=c.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]);return{collection:Hc(n,r,i),document:e}}const cr=c.createContext(null);function Wc(t){var e;return e=class extends xt{},e.type=t,e}function jc(t,e,n,r,i,o){typeof t=="string"&&(t=Wc(t));let l=c.useCallback(a=>{a==null||a.setProps(e,n,t,r,o)},[e,n,r,o,t]),s=c.useContext(cr);if(s){let a=s.ownerDocument.nodesByProps.get(e);return a||(a=s.ownerDocument.createElement(t.type),a.setProps(e,n,t,r,o),s.appendChild(a),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(e,a)),i?c.createElement(cr.Provider,{value:a},i):null}return c.createElement(t.type,{ref:l},i)}function Gc(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=c.forwardRef((i,o)=>{let l=c.useContext(Un);if(!c.useContext(Mo)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return jc(t,i,o,"children"in i?i.children:null,null,a=>c.createElement(Un.Provider,{value:l},c.createElement(n,{node:a})))});return r.displayName=e.name,r}function qc(t){return _o({...t,addIdAndValue:!0})}const Lo=c.createContext(null);function Yc(t){let e=c.useContext(Lo),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies);var r;let i=(r=t.idScope)!==null&&r!==void 0?r:e==null?void 0:e.idScope,o=qc({...t,idScope:i,dependencies:n});return c.useContext(Et)&&(o=c.createElement(Xc,null,o)),e=c.useMemo(()=>({dependencies:n,idScope:i}),[i,...n]),c.createElement(Lo.Provider,{value:e},o)}function Xc({children:t}){let e=c.useContext(Et),n=c.useMemo(()=>c.createElement(Et.Provider,{value:null},c.createElement(Mo.Provider,{value:!0},t)),[t]);return Be()?c.createElement(cr.Provider,{value:e},n):st.createPortal(n,e)}const Fo={CollectionRoot({collection:t,renderDropIndicator:e}){return Ao(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return Ao(t,e,n)}};function Ao(t,e,n){return _o({items:e?t.getChildren(e.key):t,dependencies:[n],children(r){if(r.type==="content")return c.createElement(c.Fragment,null);let i=r.render(r);return!n||r.type!=="item"?i:c.createElement(c.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),i,Zc(t,r,n))}})}function Zc(t,e,n){let r=e.key,i=t.getKeyAfter(r),o=i!=null?t.getItem(i):null;for(;o!=null&&o.type!=="item";)i=t.getKeyAfter(o.key),o=i!=null?t.getItem(i):null;let l=e.nextKey!=null?t.getItem(e.nextKey):null;for(;l!=null&&l.type!=="item";)l=l.nextKey!=null?t.getItem(l.nextKey):null;let s=[];if(l==null){let a=e;for(;(a==null?void 0:a.type)==="item"&&(!o||a.parentKey!==o.parentKey&&o.level<a.level);){let d=n({type:"item",key:a.key,dropPosition:"after"});c.isValidElement(d)&&s.push(c.cloneElement(d,{key:`${a.key}-after`})),a=a.parentKey!=null?t.getItem(a.parentKey):null}}return s}const Oo=c.createContext(Fo);function Jc(t){return c.useMemo(()=>t!=null?new Set([t]):null,[t])}function Qc(t,e){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:l,onPressUp:s,onPressChange:a,preventFocusOnPress:d,allowFocusWhenDisabled:u,onClick:p,href:v,target:m,rel:g,type:b="button"}=t,y;n==="button"?y={type:b,disabled:r,form:t.form,formAction:t.formAction,formEncType:t.formEncType,formMethod:t.formMethod,formNoValidate:t.formNoValidate,formTarget:t.formTarget,name:t.name,value:t.value}:y={role:"button",href:n==="a"&&!r?v:void 0,target:n==="a"?m:void 0,type:n==="input"?b:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?g:void 0};let{pressProps:x,isPressed:E}=rt({onPressStart:o,onPressEnd:l,onPressChange:a,onPress:i,onPressUp:s,onClick:p,isDisabled:r,preventFocusOnPress:d,ref:e}),{focusableProps:C}=Ut(t,e);u&&(C.tabIndex=r?-1:C.tabIndex);let P=q(C,x,ce(t,{labelable:!0}));return{isPressed:E,buttonProps:q(y,P,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],"aria-current":t["aria-current"],"aria-disabled":t["aria-disabled"]})}}function Bo(t,e,n){let{isDisabled:r=!1,isReadOnly:i=!1,value:o,name:l,form:s,children:a,"aria-label":d,"aria-labelledby":u,validationState:p="valid",isInvalid:v,onPressStart:m,onPressEnd:g,onPressChange:b,onPress:y,onPressUp:x,onClick:E}=t,C=Y=>{Y.stopPropagation(),e.setSelected(I(Y).checked)},P=a!=null,$=d!=null||u!=null;!P&&!$&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:z,isPressed:F}=rt({onPressStart:m,onPressEnd:g,onPressChange:b,onPress:y,onPressUp:x,onClick:E,isDisabled:r}),{pressProps:k,isPressed:L}=rt({onPressStart:m,onPressEnd:g,onPressChange:b,onPressUp:x,onClick:E,onPress(Y){var N;y==null||y(Y),e.toggle(),(N=n.current)===null||N===void 0||N.focus()},isDisabled:r||i}),{focusableProps:V}=Ut(t,n),ee=q(z,V),ne=ce(t,{labelable:!0});return Ur(n,e.defaultSelected,e.setSelected),{labelProps:q(k,{onClick:Y=>Y.preventDefault()}),inputProps:q(ne,{"aria-invalid":v||p==="invalid"||void 0,"aria-errormessage":t["aria-errormessage"],"aria-controls":t["aria-controls"],"aria-readonly":i||void 0,onChange:C,disabled:r,...o==null?{}:{value:o},name:l,form:s,type:"checkbox",...ee}),isSelected:e.isSelected,isPressed:F||L,isDisabled:r,isReadOnly:i,isInvalid:v||p==="invalid"}}function Vo(t,e,n){let r=rr({...t,value:e.isSelected}),{isInvalid:i,validationErrors:o,validationDetails:l}=r.displayValidation,{labelProps:s,inputProps:a,isSelected:d,isPressed:u,isDisabled:p,isReadOnly:v}=Bo({...t,isInvalid:i},e,n);To(t,r,n);let{isIndeterminate:m,isRequired:g,validationBehavior:b="aria"}=t;c.useEffect(()=>{n.current&&(n.current.indeterminate=!!m)});let{pressProps:y}=rt({isDisabled:p||v,onPress(){let{[Zt]:x}=t,{commitValidation:E}=x||r;E()}});return{labelProps:q(s,y,c.useMemo(()=>({onMouseDown:x=>x.preventDefault()}),[])),inputProps:{...a,checked:d,"aria-required":g&&b==="aria"||void 0,required:g&&b==="native"},isSelected:d,isPressed:u,isDisabled:p,isReadOnly:v,isInvalid:i,validationErrors:o,validationDetails:l}}const Rc=new WeakMap;function dr(t={}){let{isReadOnly:e}=t,[n,r]=ft(t.isSelected,t.defaultSelected||!1,t.onChange),[i]=c.useState(n);function o(a){e||r(a)}function l(){e||r(!n)}var s;return{isSelected:n,defaultSelected:(s=t.defaultSelected)!==null&&s!==void 0?s:i,setSelected:o,toggle:l}}function ed(t,e,n){const r=dr({isReadOnly:t.isReadOnly||e.isReadOnly,isSelected:e.isSelected(t.value),defaultSelected:e.defaultValue.includes(t.value),onChange(x){x?e.addValue(t.value):e.removeValue(t.value),t.onChange&&t.onChange(x)}});let{name:i,form:o,descriptionId:l,errorMessageId:s,validationBehavior:a}=Rc.get(e);var d;a=(d=t.validationBehavior)!==null&&d!==void 0?d:a;let{realtimeValidation:u}=rr({...t,value:r.isSelected,name:void 0,validationBehavior:"aria"}),p=c.useRef(it),v=()=>{e.setInvalid(t.value,u.isInvalid?u:p.current)};c.useEffect(v);let m=e.realtimeValidation.isInvalid?e.realtimeValidation:u,g=a==="native"?e.displayValidation:m;var b;let y=Vo({...t,isReadOnly:t.isReadOnly||e.isReadOnly,isDisabled:t.isDisabled||e.isDisabled,name:t.name||i,form:t.form||o,isRequired:(b=t.isRequired)!==null&&b!==void 0?b:e.isRequired,validationBehavior:a,[Zt]:{realtimeValidation:m,displayValidation:g,resetValidation:e.resetValidation,commitValidation:e.commitValidation,updateValidation(x){p.current=x,v()}}},r,n);return{...y,inputProps:{...y.inputProps,"aria-describedby":[t["aria-describedby"],e.isInvalid?s:null,l].filter(Boolean).join(" ")||void 0}}}function td(t,e){let{role:n="dialog"}=t,r=pn();r=t["aria-label"]?void 0:r;let i=c.useRef(!1);return c.useEffect(()=>{if(e.current&&!hn(e.current)){je(e.current);let o=setTimeout(()=>{(ie()===e.current||ie()===document.body)&&(i.current=!0,e.current&&(e.current.blur(),je(e.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[e]),bo(),{dialogProps:{...ce(t,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}function nd(t,e,n){let{labelProps:r,inputProps:i,isSelected:o,isPressed:l,isDisabled:s,isReadOnly:a}=Bo(t,e,n);return{labelProps:r,inputProps:{...i,role:"switch",checked:o},isSelected:o,isPressed:l,isDisabled:s,isReadOnly:a}}const zo=new WeakMap;function Qt(t,e,n){if(!t)return"";typeof e=="string"&&(e=e.replace(/\s+/g,""));let r=zo.get(t);return process.env.NODE_ENV!=="production"&&!r&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${r}-${n}-${e}`}function rd(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:l,selectedKey:s}=e,a=r===s,d=i||e.isDisabled||e.selectionManager.isDisabled(r),{itemProps:u,isPressed:p}=hc({selectionManager:l,key:r,ref:n,isDisabled:d,shouldSelectOnPressUp:o,linkBehavior:"selection"}),v=Qt(e,r,"tab"),m=Qt(e,r,"tabpanel"),{tabIndex:g}=u,b=e.collection.getItem(r),y=ce(b==null?void 0:b.props,{labelable:!0});delete y.id;let x=Is(b==null?void 0:b.props),{focusableProps:E}=Ut({...b==null?void 0:b.props,isDisabled:d},n);return{tabProps:q(y,E,x,u,{id:v,"aria-selected":a,"aria-disabled":d||void 0,"aria-controls":a?m:void 0,tabIndex:d?void 0:g,role:"tab"}),isSelected:a,isDisabled:d,isPressed:p}}function id(t,e,n){let r=Wa(n)?void 0:0;var i;const o=Qt(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),l=St({...t,id:o,"aria-labelledby":Qt(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:q(l,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class od{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var n,r;return this.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let n=e;do n=this.collection.getKeyAfter(n),n==null&&(n=this.collection.getFirstKey());while(n!=null&&this.isDisabled(n));return n}getPreviousKey(e){let n=e;do n=this.collection.getKeyBefore(n),n==null&&(n=this.collection.getLastKey());while(n!=null&&this.isDisabled(n));return n}constructor(e,n,r,i=new Set){this.collection=e,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}}function ld(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:l,disabledKeys:s}=e,{direction:a}=In(),d=c.useMemo(()=>new od(o,a,r,s),[o,s,r,a]),{collectionProps:u}=pc({ref:n,selectionManager:l,keyboardDelegate:d,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),p=Pe();zo.set(e,p);let v=St({...t,id:p});return{tabListProps:{...q(u,v),role:"tablist","aria-orientation":r,tabIndex:void 0}}}const Ho=c.createContext({}),sd=wt(function(e,n){[e,n]=ye(e,n,Ho);let{elementType:r="label",...i}=e,o=de[r];return c.createElement(o,{className:"react-aria-Label",...i,ref:n})}),ad=c.createContext(null),Uo=c.createContext({}),ur=wt(function(e,n){[e,n]=ye(e,n,Uo);let r=e,{isPending:i}=r,{buttonProps:o,isPressed:l}=Qc(e,n);o=dd(o,i);let{focusProps:s,isFocused:a,isFocusVisible:d}=qe(e),{hoverProps:u,isHovered:p}=mt({...e,isDisabled:e.isDisabled||i}),v={isHovered:p,isPressed:(r.isPressed||l)&&!i,isFocused:a,isFocusVisible:d,isDisabled:e.isDisabled||!1,isPending:i??!1},m=pe({...e,values:v,defaultClassName:"react-aria-Button"}),g=Pe(o.id),b=Pe(),y=o["aria-labelledby"];i&&(y?y=`${y} ${b}`:o["aria-label"]&&(y=`${g} ${b}`));let x=c.useRef(i);c.useEffect(()=>{let C={"aria-labelledby":y||g};(!x.current&&a&&i||x.current&&a&&!i)&&Jr(C,"assertive"),x.current=i},[i,a,y,g]);let E=ce(e,{global:!0});return delete E.onClick,c.createElement(de.button,{...q(E,m,o,s,u),type:o.type==="submit"&&i?"button":o.type,id:g,ref:n,"aria-labelledby":y,slot:e.slot||void 0,"aria-disabled":i?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":v.isPressed||void 0,"data-hovered":p||void 0,"data-focused":a||void 0,"data-pending":i||void 0,"data-focus-visible":d||void 0},c.createElement(ad.Provider,{value:{id:b}},m.children))}),cd=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function dd(t,e){if(e){for(const n in t)n.startsWith("on")&&!cd.test(n)&&(t[n]=void 0);t.href=void 0,t.target=void 0}return t}const Wo=c.createContext({}),jo=c.forwardRef(function(e,n){[e,n]=ye(e,n,Wo);let{elementType:r="span",...i}=e,o=de[r];return c.createElement(o,{className:"react-aria-Text",...i,ref:n})});class Go{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let n=this.keyMap.get(e);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(n==null?void 0:n.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let n=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&s.type==="section")for(let a of s.childNodes)n(a)};for(let s of e)n(s);let r=null,i=0,o=0;for(let[s,a]of this.keyMap)r?(r.nextKey=s,a.prevKey=r.key):(this.firstKey=s,a.prevKey=void 0),a.type==="item"&&(a.index=i++),(a.type==="section"||a.type==="item")&&o++,r=a,r.nextKey=void 0;this._size=o;var l;this.lastKey=(l=r==null?void 0:r.key)!==null&&l!==void 0?l:null}}class xe extends Set{constructor(e,n,r){super(e),e instanceof xe?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function ud(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function fd(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=c.useRef(!1),[,s]=c.useState(!1),a=c.useRef(null),d=c.useRef(null),[,u]=c.useState(null),p=c.useMemo(()=>qo(t.selectedKeys),[t.selectedKeys]),v=c.useMemo(()=>qo(t.defaultSelectedKeys,new xe),[t.defaultSelectedKeys]),[m,g]=ft(p,v,t.onSelectionChange),b=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[y,x]=c.useState(i);i==="replace"&&y==="toggle"&&typeof m=="object"&&m.size===0&&x("replace");let E=c.useRef(i);return c.useEffect(()=>{i!==E.current&&(x(i),E.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:x,get isFocused(){return l.current},setFocused(C){l.current=C,s(C)},get focusedKey(){return a.current},get childFocusStrategy(){return d.current},setFocusedKey(C,P="first"){a.current=C,d.current=P,u(C)},selectedKeys:m,setSelectedKeys(C){(r||!ud(C,m))&&g(C)},disabledKeys:b,disabledBehavior:o}}function qo(t,e){return t?t==="all"?"all":new xe(t):e}class fr{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&nr(this.collection,i,e)<0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&nr(this.collection,i,e)>0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new xe([n],n,n);else{let l=this.state.selectedKeys;var i;let s=(i=l.anchorKey)!==null&&i!==void 0?i:n;r=new xe(l,s,n);var o;for(let a of this.getKeyRange(s,(o=l.currentKey)!==null&&o!==void 0?o:n))r.delete(a);for(let a of this.getKeyRange(n,s))this.canSelectItem(a)&&r.add(a)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?nr(this.collection,r,i)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let i=[],o=e;for(;o!=null;){let l=this.collection.getItem(o);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r=new xe(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let r=this.canSelectItem(n)?new xe([n],n,n):new xe;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new xe;for(let r of e){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let l=this.collection.getItem(r);(l==null?void 0:l.type)==="item"&&e.push(r);var o;l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n((o=(i=yc(gc(l,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new xe)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=this.collection.getItem(e);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,r;return!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}withCollection(e){return new fr(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,n,r){this.collection=e,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function pd(t){let{filter:e,layoutDelegate:n}=t,r=fd(t),i=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=c.useCallback(d=>e?new Go(e(d)):new Go(d),[e]),l=c.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),s=bc(t,o,l),a=c.useMemo(()=>new fr(s,r,{layoutDelegate:n}),[s,r,n]);return hd(s,a),{collection:s,disabledKeys:i,selectionManager:a}}function hd(t,e){const n=c.useRef(null);c.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&n.current){const u=n.current.getItem(e.focusedKey),p=[...n.current.getKeys()].map(x=>{const E=n.current.getItem(x);return(E==null?void 0:E.type)==="item"?E:null}).filter(x=>x!==null),v=[...t.getKeys()].map(x=>{const E=t.getItem(x);return(E==null?void 0:E.type)==="item"?E:null}).filter(x=>x!==null);var r,i;const m=((r=p==null?void 0:p.length)!==null&&r!==void 0?r:0)-((i=v==null?void 0:v.length)!==null&&i!==void 0?i:0);var o,l,s;let g=Math.min(m>1?Math.max(((o=u==null?void 0:u.index)!==null&&o!==void 0?o:0)-m+1,0):(l=u==null?void 0:u.index)!==null&&l!==void 0?l:0,((s=v==null?void 0:v.length)!==null&&s!==void 0?s:0)-1),b=null,y=!1;for(;g>=0;){if(!e.isDisabled(v[g].key)){b=v[g];break}if(g<v.length-1&&!y)g++;else{y=!0;var a,d;g>((a=u==null?void 0:u.index)!==null&&a!==void 0?a:0)&&(g=(d=u==null?void 0:u.index)!==null&&d!==void 0?d:0),g--}}e.setFocusedKey(b?b.key:null)}n.current=t},[t,e])}function vd(t){var e;let[n,r]=ft(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=c.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:l,selectionManager:s}=pd({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:d=>{if(d==="all")return;var u;let p=(u=d.values().next().value)!==null&&u!==void 0?u:null;p===n&&t.onSelectionChange&&t.onSelectionChange(p),r(p)}}),a=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:l,selectionManager:s,selectedKey:n,setSelectedKey:r,selectedItem:a}}function md(t){let[e,n]=ft(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=c.useCallback(()=>{n(!0)},[n]),i=c.useCallback(()=>{n(!1)},[n]),o=c.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:i,toggle:o}}function bd(t){var e,n;let r=vd({...t,onSelectionChange:t.onSelectionChange?a=>{var d;a!=null&&((d=t.onSelectionChange)===null||d===void 0||d.call(t,a))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(n=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:Yo(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set))!==null&&n!==void 0?n:void 0}),{selectionManager:i,collection:o,selectedKey:l}=r,s=c.useRef(l);return c.useEffect(()=>{let a=l;t.selectedKey==null&&(i.isEmpty||a==null||!o.getItem(a))&&(a=Yo(o,r.disabledKeys),a!=null&&i.setSelectedKeys([a])),(a!=null&&i.focusedKey==null||!i.isFocused&&a!==s.current)&&i.setFocusedKey(a),s.current=a}),{...r,isDisabled:t.isDisabled||!1}}function Yo(t,e){let n=null;if(t){var r,i,o,l;for(n=t.getFirstKey();n!=null&&(e.has(n)||!((i=t.getItem(n))===null||i===void 0||(r=i.props)===null||r===void 0)&&r.isDisabled)&&n!==t.getLastKey();)n=t.getKeyAfter(n);n!=null&&(e.has(n)||!((l=t.getItem(n))===null||l===void 0||(o=l.props)===null||o===void 0)&&o.isDisabled)&&n===t.getLastKey()&&(n=t.getFirstKey())}return n}const gd=c.createContext(null),Xo=c.createContext(null),yd=c.createContext(null),xd=c.forwardRef(function(e,n){let{inputRef:r=null,...i}=e;[e,n]=ye(i,n,Jl);let{validationBehavior:o}=Kt(Xo)||{};var l,s;let a=(s=(l=e.validationBehavior)!==null&&l!==void 0?l:o)!==null&&s!==void 0?s:"native",d=c.useContext(yd),u=Ke(c.useMemo(()=>Re(r,e.inputRef!==void 0?e.inputRef:null),[r,e.inputRef])),{labelProps:p,inputProps:v,isSelected:m,isDisabled:g,isReadOnly:b,isPressed:y,isInvalid:x}=d?ed({...Mt(e),value:e.value,children:typeof e.children=="function"?!0:e.children},d,u):Vo({...Mt(e),children:typeof e.children=="function"?!0:e.children,validationBehavior:a},dr(e),u),{isFocused:E,isFocusVisible:C,focusProps:P}=qe(),$=g||b,{hoverProps:z,isHovered:F}=mt({...e,isDisabled:$}),k=pe({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:m,isIndeterminate:e.isIndeterminate||!1,isPressed:y,isHovered:F,isFocused:E,isFocusVisible:C,isDisabled:g,isReadOnly:b,isInvalid:x,isRequired:e.isRequired||!1}}),L=ce(e,{global:!0});return delete L.id,delete L.onClick,c.createElement(de.label,{...q(L,p,z,k),ref:n,slot:e.slot||void 0,"data-selected":m||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":y||void 0,"data-hovered":F||void 0,"data-focused":E||void 0,"data-focus-visible":C||void 0,"data-disabled":g||void 0,"data-readonly":b||void 0,"data-invalid":x||void 0,"data-required":e.isRequired||void 0},c.createElement(Qn,{elementType:"span"},c.createElement("input",{...q(v,P),ref:u})),k.children)}),wd=c.createContext({}),Zo=c.createContext({});let Ed=t=>{let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,...i}=t;return i};const Cd=wt(function(e,n){[e,n]=ye(e,n,Zo);let{hoverProps:r,isHovered:i}=mt({...e,isDisabled:e.disabled}),{isFocused:o,isFocusVisible:l,focusProps:s}=qe({isTextInput:!0,autoFocus:e.autoFocus}),a=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",d=pe({...e,values:{isHovered:i,isFocused:o,isFocusVisible:l,isDisabled:e.disabled||!1,isInvalid:a},defaultClassName:"react-aria-Input"});return c.createElement(de.input,{...q(Ed(e),s,r),...d,ref:n,"data-focused":o||void 0,"data-disabled":e.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":l||void 0,"data-invalid":a||void 0})}),kd=c.createContext(null);function Pd(t){let e=c.useRef({});return c.createElement(kd.Provider,{value:e},t.children)}const Td=c.createContext({isSelected:!1}),Nd=c.createContext(null),Rt=c.createContext(null),$d=c.forwardRef(function(e,n){let r=e["aria-labelledby"];[e,n]=ye(e,n,Nd);let{dialogProps:i,titleProps:o}=td({...e,"aria-labelledby":r},n),l=c.useContext(Rt);!i["aria-label"]&&!i["aria-labelledby"]&&(e["aria-labelledby"]?i["aria-labelledby"]=e["aria-labelledby"]:process.env.NODE_ENV!=="production"&&console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let s=pe({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(l==null?void 0:l.close)||(()=>{})}}),a=ce(e,{global:!0});return c.createElement(de.section,{...q(a,s,i),render:e.render,ref:n,slot:e.slot||void 0},c.createElement(pt,{values:[[Ql,{slots:{[_n]:{},title:{...o,level:2}}}],[Uo,{slots:{[_n]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},s.children))}),Dd=c.createContext(null),pr=c.createContext(null),_d=c.forwardRef(function(e,n){if(c.useContext(pr)){if(process.env.NODE_ENV!=="production"&&(e.onOpenChange||e.defaultOpen!==void 0||e.isOpen!==void 0)){const b=new Set(["isDismissable","isKeyboardDismissDisabled","isOpen","defaultOpen","onOpenChange","isEntering","isExiting","UNSTABLE_portalContainer","shouldCloseOnInteractOutside"]),y=Object.keys(e).filter(x=>b.has(x));console.warn(`This modal is already wrapped in a ModalOverlay, props [${y.join(", ")}] should be placed on the ModalOverlay instead.`)}return c.createElement(Qo,{...e,modalRef:n},e.children)}let{isDismissable:i,isKeyboardDismissDisabled:o,isOpen:l,defaultOpen:s,onOpenChange:a,children:d,isEntering:u,isExiting:p,UNSTABLE_portalContainer:v,shouldCloseOnInteractOutside:m,...g}=e;return c.createElement(Jo,{isDismissable:i,isKeyboardDismissDisabled:o,isOpen:l,defaultOpen:s,onOpenChange:a,isEntering:u,isExiting:p,UNSTABLE_portalContainer:v,shouldCloseOnInteractOutside:m},c.createElement(Qo,{...g,modalRef:n},d))});function Sd(t,e){[t,e]=ye(t,e,Dd);let n=c.useContext(Rt),r=md(t),i=t.isOpen!=null||t.defaultOpen!=null||!n?r:n;i===n&&process.env.NODE_ENV!=="production"&&(t.onOpenChange||t.defaultOpen!==void 0||t.isOpen!==void 0)&&console.warn("This modals state is controlled by a trigger, place onOpenChange on the trigger instead.");let o=Ke(e),l=c.useRef(null),s=Tn(o,i.isOpen),a=Tn(l,i.isOpen),d=s||a||t.isExiting||!1,u=Be();return!i.isOpen&&!d||u?null:c.createElement(Id,{...t,state:i,isExiting:d,overlayRef:o,modalRef:l})}const Jo=c.forwardRef(Sd);function Id({UNSTABLE_portalContainer:t,...e}){let n=e.modalRef,{state:r}=e,{modalProps:i,underlayProps:o}=oc(e,r,n),l=Pn(e.overlayRef)||e.isEntering||!1,s=pe({...e,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:l,isExiting:e.isExiting,state:r}}),a=Fs(),d;if(typeof document<"u"){let p=dt(document.body)?document.body:document.scrollingElement||document.documentElement,v=p.getBoundingClientRect().height%1;d=p.scrollHeight-v}let u={...s.style,"--visual-viewport-height":a.height+"px","--page-height":d!==void 0?d+"px":void 0};return c.createElement(ic,{isExiting:e.isExiting,portalContainer:t},c.createElement(de.div,{...q(ce(e,{global:!0}),o),...s,style:u,ref:e.overlayRef,"data-entering":l||void 0,"data-exiting":e.isExiting||void 0},c.createElement(pt,{values:[[pr,{modalProps:i,modalRef:n,isExiting:e.isExiting,isDismissable:e.isDismissable}],[Rt,r]]},s.children)))}function Qo(t){let{modalProps:e,modalRef:n,isExiting:r,isDismissable:i}=c.useContext(pr),o=c.useContext(Rt),l=c.useMemo(()=>Re(t.modalRef,n),[t.modalRef,n]),s=Ke(l),a=Pn(s),d=pe({...t,defaultClassName:"react-aria-Modal",values:{isEntering:a,isExiting:r,state:o}});return c.createElement(de.div,{...q(ce(t,{global:!0}),e),...d,ref:s,"data-entering":a||void 0,"data-exiting":r||void 0},i&&c.createElement(tc,{onDismiss:o.close}),d.children)}const Kd=c.createContext(null),Md=c.forwardRef(function(e,n){let{inputRef:r=null,...i}=e;[e,n]=ye(i,n,Kd);let o=Ke(Re(r,e.inputRef!==void 0?e.inputRef:null)),l=dr(e),{labelProps:s,inputProps:a,isSelected:d,isDisabled:u,isReadOnly:p,isPressed:v}=nd({...Mt(e),children:typeof e.children=="function"?!0:e.children},l,o),{isFocused:m,isFocusVisible:g,focusProps:b}=qe(),y=e.isDisabled||e.isReadOnly,{hoverProps:x,isHovered:E}=mt({...e,isDisabled:y}),C=pe({...e,defaultClassName:"react-aria-Switch",values:{isSelected:d,isPressed:v,isHovered:E,isFocused:m,isFocusVisible:g,isDisabled:u,isReadOnly:p,state:l}}),P=ce(e,{global:!0});return delete P.id,delete P.onClick,c.createElement(de.label,{...q(P,s,x,C),ref:n,slot:e.slot||void 0,"data-selected":d||void 0,"data-pressed":v||void 0,"data-hovered":E||void 0,"data-focused":m||void 0,"data-focus-visible":g||void 0,"data-disabled":u||void 0,"data-readonly":p||void 0},c.createElement(Qn,{elementType:"span"},c.createElement("input",{...q(a,b),ref:o})),C.children)}),en=c.createContext(null),Ye=c.createContext(null),Ld=c.forwardRef(function(e,n){[e,n]=ye(e,n,en);let{children:r,orientation:i="horizontal"}=e;return r=c.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),c.createElement(Bc,{content:r},o=>c.createElement(Fd,{props:e,collection:o,tabsRef:n}))});function Fd({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=bd({...t,collection:n,children:void 0}),{focusProps:o,isFocused:l,isFocusVisible:s}=qe({within:!0}),a=c.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:s}),[r,l,s]),d=pe({...t,defaultClassName:"react-aria-Tabs",values:a}),u=ce(t,{global:!0});return c.createElement(de.div,{...q(u,d,o),ref:e,slot:t.slot||void 0,"data-focused":l||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":i.isDisabled||void 0},c.createElement(pt,{values:[[en,t],[Ye,i]]},d.children))}const Ad=c.forwardRef(function(e,n){return c.useContext(Ye)?c.createElement(Od,{props:e,forwardedRef:n}):c.createElement(Yc,e)});function Od({props:t,forwardedRef:e}){let n=c.useContext(Ye),{CollectionRoot:r}=c.useContext(Oo),{orientation:i="horizontal",keyboardActivation:o="automatic"}=Kt(en),l=Ke(e),{tabListProps:s}=ld({...t,orientation:i,keyboardActivation:o},n,l),a=pe({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),d=ce(t,{global:!0});return delete d.id,c.createElement(de.div,{...q(d,a,s),ref:l,"data-orientation":i||void 0},c.createElement(Pd,null,c.createElement(r,{collection:n.collection,persistedKeys:Jc(n.selectionManager.focusedKey)})))}class Ro extends xt{}Ro.type="item";const Bd=Gc(Ro,(t,e,n)=>{let r=c.useContext(Ye),i=Ke(e),{tabProps:o,isSelected:l,isDisabled:s,isPressed:a}=rd({key:n.key,...t},r,i),{focusProps:d,isFocused:u,isFocusVisible:p}=qe(),{hoverProps:v,isHovered:m}=mt({isDisabled:s,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),g=pe({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:s,isFocused:u,isFocusVisible:p,isPressed:a,isHovered:m}}),b=n.props.href?de.a:de.div,y=ce(t,{global:!0});return delete y.id,delete y.onClick,c.createElement(b,{...q(y,g,o,d,v),ref:i,"data-selected":l||void 0,"data-disabled":s||void 0,"data-focused":u||void 0,"data-focus-visible":p||void 0,"data-pressed":a||void 0,"data-hovered":m||void 0},c.createElement(Td.Provider,{value:{isSelected:l}},g.children))}),Vd=wt(function(e,n){const r=c.useContext(Ye);let i=Ke(n),o=r.selectedKey===e.id,[l,s]=c.useState(r.selectedKey!=null?o:null);l==null&&r.selectedKey!=null?s(o):!o&&l&&s(!1);let a=Tn(i,o);return!o&&!e.shouldForceMount&&!a?null:c.createElement(zd,{...e,tabPanelRef:i,isInitiallySelected:l||!1,isExiting:a})});function zd(t){let e=c.useContext(Ye),{id:n,tabPanelRef:r,isInitiallySelected:i,isExiting:o,...l}=t,{tabPanelProps:s}=id(t,e,r),{focusProps:a,isFocused:d,isFocusVisible:u}=qe(),p=e.selectedKey===t.id,v=Pn(r)&&!i,m=pe({...t,defaultClassName:"react-aria-TabPanel",values:{isFocused:d,isFocusVisible:u,isInert:Wr(!p),isEntering:v,isExiting:o,state:e}}),g=ce(l,{global:!0});delete g.id;let b=p?q(g,s,a,m):q(g,m);return c.createElement(de.div,{...b,ref:r,"data-focused":d||void 0,"data-focus-visible":u||void 0,inert:Wr(!p||t.inert),"data-inert":p?void 0:"true","data-entering":v||void 0,"data-exiting":o||void 0},c.createElement(pt,{values:[[en,null],[Ye,null]]},c.createElement(Oo.Provider,{value:Fo},m.children)))}const Hd=c.createContext({}),Ud=c.createContext(null),Wd=wt(function(e,n){[e,n]=ye(e,n,Ud);let{validationBehavior:r}=Kt(Xo)||{};var i,o;let l=(o=(i=e.validationBehavior)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:"native",s=c.useRef(null);[e,s]=ye(e,s,Rl);let[a,d]=Ys(!e["aria-label"]&&!e["aria-labelledby"]),[u,p]=c.useState("input"),{labelProps:v,inputProps:m,descriptionProps:g,errorMessageProps:b,...y}=Nc({...Mt(e),inputElementType:u,label:d,validationBehavior:l},s),x=c.useCallback(P=>{s.current=P,P&&p(P instanceof HTMLTextAreaElement?"textarea":"input")},[s]),E=pe({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:y.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-TextField"}),C=ce(e,{global:!0});return delete C.id,c.createElement(de.div,{...C,...E,ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":y.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},c.createElement(pt,{values:[[Ho,{...v,ref:a}],[Zo,{...m,ref:x}],[Hd,{...m,ref:x}],[wd,{role:"presentation",isInvalid:y.isInvalid,isDisabled:e.isDisabled||!1}],[Wo,{slots:{description:g,errorMessage:b}}],[gd,y]]},E.children))}),jd=(t,e)=>{const n=new Array(t.length+e.length);for(let r=0;r<t.length;r++)n[r]=t[r];for(let r=0;r<e.length;r++)n[t.length+r]=e[r];return n},Gd=(t,e)=>({classGroupId:t,validator:e}),el=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),tn="-",tl=[],qd="arbitrary..",Yd=t=>{const e=Zd(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Xd(l);const s=l.split(tn),a=s[0]===""&&s.length>1?1:0;return nl(s,a,e)},getConflictingClassGroupIds:(l,s)=>{if(s){const a=r[l],d=n[l];return a?d?jd(d,a):a:d||tl}return n[l]||tl}}},nl=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const i=t[e],o=n.nextPart.get(i);if(o){const d=nl(t,e+1,o);if(d)return d}const l=n.validators;if(l===null)return;const s=e===0?t.join(tn):t.slice(e).join(tn),a=l.length;for(let d=0;d<a;d++){const u=l[d];if(u.validator(s))return u.classGroupId}},Xd=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),r=e.slice(0,n);return r?qd+r:void 0})(),Zd=t=>{const{theme:e,classGroups:n}=t;return Jd(n,e)},Jd=(t,e)=>{const n=el();for(const r in t){const i=t[r];hr(i,n,r,e)}return n},hr=(t,e,n,r)=>{const i=t.length;for(let o=0;o<i;o++){const l=t[o];Qd(l,e,n,r)}},Qd=(t,e,n,r)=>{if(typeof t=="string"){Rd(t,e,n);return}if(typeof t=="function"){eu(t,e,n,r);return}tu(t,e,n,r)},Rd=(t,e,n)=>{const r=t===""?e:rl(e,t);r.classGroupId=n},eu=(t,e,n,r)=>{if(nu(t)){hr(t(r),e,n,r);return}e.validators===null&&(e.validators=[]),e.validators.push(Gd(n,t))},tu=(t,e,n,r)=>{const i=Object.entries(t),o=i.length;for(let l=0;l<o;l++){const[s,a]=i[l];hr(a,rl(e,s),n,r)}},rl=(t,e)=>{let n=t;const r=e.split(tn),i=r.length;for(let o=0;o<i;o++){const l=r[o];let s=n.nextPart.get(l);s||(s=el(),n.nextPart.set(l,s)),n=s}return n},nu=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,ru=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),r=Object.create(null);const i=(o,l)=>{n[o]=l,e++,e>t&&(e=0,r=n,n=Object.create(null))};return{get(o){let l=n[o];if(l!==void 0)return l;if((l=r[o])!==void 0)return i(o,l),l},set(o,l){o in n?n[o]=l:i(o,l)}}},vr="!",il=":",iu=[],ol=(t,e,n,r,i)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),ou=t=>{const{prefix:e,experimentalParseClassName:n}=t;let r=i=>{const o=[];let l=0,s=0,a=0,d;const u=i.length;for(let b=0;b<u;b++){const y=i[b];if(l===0&&s===0){if(y===il){o.push(i.slice(a,b)),a=b+1;continue}if(y==="/"){d=b;continue}}y==="["?l++:y==="]"?l--:y==="("?s++:y===")"&&s--}const p=o.length===0?i:i.slice(a);let v=p,m=!1;p.endsWith(vr)?(v=p.slice(0,-1),m=!0):p.startsWith(vr)&&(v=p.slice(1),m=!0);const g=d&&d>a?d-a:void 0;return ol(o,m,v,g)};if(e){const i=e+il,o=r;r=l=>l.startsWith(i)?o(l.slice(i.length)):ol(iu,!1,l,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},lu=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,r)=>{e.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const l=n[o],s=l[0]==="[",a=e.has(l);s||a?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},su=t=>({cache:ru(t.cacheSize),parseClassName:ou(t),sortModifiers:lu(t),...Yd(t)}),au=/\s+/,cu=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=e,l=[],s=t.trim().split(au);let a="";for(let d=s.length-1;d>=0;d-=1){const u=s[d],{isExternal:p,modifiers:v,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:b}=n(u);if(p){a=u+(a.length>0?" "+a:a);continue}let y=!!b,x=r(y?g.substring(0,b):g);if(!x){if(!y){a=u+(a.length>0?" "+a:a);continue}if(x=r(g),!x){a=u+(a.length>0?" "+a:a);continue}y=!1}const E=v.length===0?"":v.length===1?v[0]:o(v).join(":"),C=m?E+vr:E,P=C+x;if(l.indexOf(P)>-1)continue;l.push(P);const $=i(x,y);for(let z=0;z<$.length;++z){const F=$[z];l.push(C+F)}a=u+(a.length>0?" "+a:a)}return a},du=(...t)=>{let e=0,n,r,i="";for(;e<t.length;)(n=t[e++])&&(r=ll(n))&&(i&&(i+=" "),i+=r);return i},ll=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=ll(t[r]))&&(n&&(n+=" "),n+=e);return n},uu=(t,...e)=>{let n,r,i,o;const l=a=>{const d=e.reduce((u,p)=>p(u),t());return n=su(d),r=n.cache.get,i=n.cache.set,o=s,s(a)},s=a=>{const d=r(a);if(d)return d;const u=cu(a,n);return i(a,u),u};return o=l,(...a)=>o(du(...a))},fu=[],le=t=>{const e=n=>n[t]||fu;return e.isThemeGetter=!0,e},sl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,al=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pu=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,hu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vu=/\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$/,mu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,bu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Fe=t=>pu.test(t),W=t=>!!t&&!Number.isNaN(Number(t)),Ae=t=>!!t&&Number.isInteger(Number(t)),mr=t=>t.endsWith("%")&&W(t.slice(0,-1)),Se=t=>hu.test(t),cl=()=>!0,yu=t=>vu.test(t)&&!mu.test(t),br=()=>!1,xu=t=>bu.test(t),wu=t=>gu.test(t),Eu=t=>!K(t)&&!M(t),Cu=t=>Oe(t,vl,br),K=t=>sl.test(t),Xe=t=>Oe(t,ml,yu),dl=t=>Oe(t,Su,W),ku=t=>Oe(t,gl,cl),Pu=t=>Oe(t,bl,br),ul=t=>Oe(t,pl,br),Tu=t=>Oe(t,hl,wu),nn=t=>Oe(t,yl,xu),M=t=>al.test(t),Ct=t=>Ze(t,ml),Nu=t=>Ze(t,bl),fl=t=>Ze(t,pl),$u=t=>Ze(t,vl),Du=t=>Ze(t,hl),rn=t=>Ze(t,yl,!0),_u=t=>Ze(t,gl,!0),Oe=(t,e,n)=>{const r=sl.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},Ze=(t,e,n=!1)=>{const r=al.exec(t);return r?r[1]?e(r[1]):n:!1},pl=t=>t==="position"||t==="percentage",hl=t=>t==="image"||t==="url",vl=t=>t==="length"||t==="size"||t==="bg-size",ml=t=>t==="length",Su=t=>t==="number",bl=t=>t==="family-name",gl=t=>t==="number"||t==="weight",yl=t=>t==="shadow",Iu=uu(()=>{const t=le("color"),e=le("font"),n=le("text"),r=le("font-weight"),i=le("tracking"),o=le("leading"),l=le("breakpoint"),s=le("container"),a=le("spacing"),d=le("radius"),u=le("shadow"),p=le("inset-shadow"),v=le("text-shadow"),m=le("drop-shadow"),g=le("blur"),b=le("perspective"),y=le("aspect"),x=le("ease"),E=le("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],$=()=>[...P(),M,K],z=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],k=()=>[M,K,a],L=()=>[Fe,"full","auto",...k()],V=()=>[Ae,"none","subgrid",M,K],ee=()=>["auto",{span:["full",Ae,M,K]},Ae,M,K],ne=()=>[Ae,"auto",M,K],Y=()=>["auto","min","max","fr",M,K],N=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],O=()=>["start","end","center","stretch","center-safe","end-safe"],G=()=>["auto",...k()],X=()=>[Fe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],Q=()=>[Fe,"screen","full","dvw","lvw","svw","min","max","fit",...k()],re=()=>[Fe,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],f=()=>[t,M,K],D=()=>[...P(),fl,ul,{position:[M,K]}],w=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",$u,Cu,{size:[M,K]}],_=()=>[mr,Ct,Xe],S=()=>["","none","full",d,M,K],U=()=>["",W,Ct,Xe],se=()=>["solid","dashed","dotted","double"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[W,mr,fl,ul],ue=()=>["","none",g,M,K],ke=()=>["none",W,M,K],dn=()=>["none",W,M,K],Dr=()=>[W,M,K],un=()=>[Fe,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Se],breakpoint:[Se],color:[cl],container:[Se],"drop-shadow":[Se],ease:["in","out","in-out"],font:[Eu],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Se],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Se],shadow:[Se],spacing:["px",W],text:[Se],"text-shadow":[Se],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Fe,K,M,y]}],container:["container"],columns:[{columns:[W,K,M,s]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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:$()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{"inset-s":L(),start:L()}],end:[{"inset-e":L(),end:L()}],"inset-bs":[{"inset-bs":L()}],"inset-be":[{"inset-be":L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Ae,"auto",M,K]}],basis:[{basis:[Fe,"full","auto",s,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[W,Fe,"auto","initial","none",K]}],grow:[{grow:["",W,M,K]}],shrink:[{shrink:["",W,M,K]}],order:[{order:[Ae,"first","last","none",M,K]}],"grid-cols":[{"grid-cols":V()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":V()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...N(),"normal"]}],"justify-items":[{"justify-items":[...O(),"normal"]}],"justify-self":[{"justify-self":["auto",...O()]}],"align-content":[{content:["normal",...N()]}],"align-items":[{items:[...O(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...O(),{baseline:["","last"]}]}],"place-content":[{"place-content":N()}],"place-items":[{"place-items":[...O(),"baseline"]}],"place-self":[{"place-self":["auto",...O()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:G()}],mx:[{mx:G()}],my:[{my:G()}],ms:[{ms:G()}],me:[{me:G()}],mbs:[{mbs:G()}],mbe:[{mbe:G()}],mt:[{mt:G()}],mr:[{mr:G()}],mb:[{mb:G()}],ml:[{ml:G()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...Q()]}],"min-inline-size":[{"min-inline":["auto",...Q()]}],"max-inline-size":[{"max-inline":["none",...Q()]}],"block-size":[{block:["auto",...re()]}],"min-block-size":[{"min-block":["auto",...re()]}],"max-block-size":[{"max-block":["none",...re()]}],w:[{w:[s,"screen",...X()]}],"min-w":[{"min-w":[s,"screen","none",...X()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[l]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",n,Ct,Xe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,_u,ku]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",mr,K]}],"font-family":[{font:[Nu,Pu,e]}],"font-features":[{"font-features":[K]}],"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:[i,M,K]}],"line-clamp":[{"line-clamp":[W,"none",M,dl]}],leading:[{leading:[o,...k()]}],"list-image":[{"list-image":["none",M,K]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",M,K]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:f()}],"text-color":[{text:f()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:[W,"from-font","auto",M,Xe]}],"text-decoration-color":[{decoration:f()}],"underline-offset":[{"underline-offset":[W,"auto",M,K]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M,K]}],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",M,K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:w()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ae,M,K],radial:["",M,K],conic:[Ae,M,K]},Du,Tu]}],"bg-color":[{bg:f()}],"gradient-from-pos":[{from:_()}],"gradient-via-pos":[{via:_()}],"gradient-to-pos":[{to:_()}],"gradient-from":[{from:f()}],"gradient-via":[{via:f()}],"gradient-to":[{to:f()}],rounded:[{rounded:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-bs":[{"border-bs":U()}],"border-w-be":[{"border-be":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"hidden","none"]}],"border-color":[{border:f()}],"border-color-x":[{"border-x":f()}],"border-color-y":[{"border-y":f()}],"border-color-s":[{"border-s":f()}],"border-color-e":[{"border-e":f()}],"border-color-bs":[{"border-bs":f()}],"border-color-be":[{"border-be":f()}],"border-color-t":[{"border-t":f()}],"border-color-r":[{"border-r":f()}],"border-color-b":[{"border-b":f()}],"border-color-l":[{"border-l":f()}],"divide-color":[{divide:f()}],"outline-style":[{outline:[...se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[W,M,K]}],"outline-w":[{outline:["",W,Ct,Xe]}],"outline-color":[{outline:f()}],shadow:[{shadow:["","none",u,rn,nn]}],"shadow-color":[{shadow:f()}],"inset-shadow":[{"inset-shadow":["none",p,rn,nn]}],"inset-shadow-color":[{"inset-shadow":f()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:f()}],"ring-offset-w":[{"ring-offset":[W,Xe]}],"ring-offset-color":[{"ring-offset":f()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":f()}],"text-shadow":[{"text-shadow":["none",v,rn,nn]}],"text-shadow-color":[{"text-shadow":f()}],opacity:[{opacity:[W,M,K]}],"mix-blend":[{"mix-blend":[...B(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":B()}],"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":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":f()}],"mask-image-linear-to-color":[{"mask-linear-to":f()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":f()}],"mask-image-t-to-color":[{"mask-t-to":f()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":f()}],"mask-image-r-to-color":[{"mask-r-to":f()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":f()}],"mask-image-b-to-color":[{"mask-b-to":f()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":f()}],"mask-image-l-to-color":[{"mask-l-to":f()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":f()}],"mask-image-x-to-color":[{"mask-x-to":f()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":f()}],"mask-image-y-to-color":[{"mask-y-to":f()}],"mask-image-radial":[{"mask-radial":[M,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":f()}],"mask-image-radial-to-color":[{"mask-radial-to":f()}],"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":P()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":f()}],"mask-image-conic-to-color":[{"mask-conic-to":f()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:w()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",M,K]}],filter:[{filter:["","none",M,K]}],blur:[{blur:ue()}],brightness:[{brightness:[W,M,K]}],contrast:[{contrast:[W,M,K]}],"drop-shadow":[{"drop-shadow":["","none",m,rn,nn]}],"drop-shadow-color":[{"drop-shadow":f()}],grayscale:[{grayscale:["",W,M,K]}],"hue-rotate":[{"hue-rotate":[W,M,K]}],invert:[{invert:["",W,M,K]}],saturate:[{saturate:[W,M,K]}],sepia:[{sepia:["",W,M,K]}],"backdrop-filter":[{"backdrop-filter":["","none",M,K]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[W,M,K]}],"backdrop-contrast":[{"backdrop-contrast":[W,M,K]}],"backdrop-grayscale":[{"backdrop-grayscale":["",W,M,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,M,K]}],"backdrop-invert":[{"backdrop-invert":["",W,M,K]}],"backdrop-opacity":[{"backdrop-opacity":[W,M,K]}],"backdrop-saturate":[{"backdrop-saturate":[W,M,K]}],"backdrop-sepia":[{"backdrop-sepia":["",W,M,K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",M,K]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[W,"initial",M,K]}],ease:[{ease:["linear","initial",x,M,K]}],delay:[{delay:[W,M,K]}],animate:[{animate:["none",E,M,K]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,M,K]}],"perspective-origin":[{"perspective-origin":$()}],rotate:[{rotate:ke()}],"rotate-x":[{"rotate-x":ke()}],"rotate-y":[{"rotate-y":ke()}],"rotate-z":[{"rotate-z":ke()}],scale:[{scale:dn()}],"scale-x":[{"scale-x":dn()}],"scale-y":[{"scale-y":dn()}],"scale-z":[{"scale-z":dn()}],"scale-3d":["scale-3d"],skew:[{skew:Dr()}],"skew-x":[{"skew-x":Dr()}],"skew-y":[{"skew-y":Dr()}],transform:[{transform:[M,K,"","none","gpu","cpu"]}],"transform-origin":[{origin:$()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:un()}],"translate-x":[{"translate-x":un()}],"translate-y":[{"translate-y":un()}],"translate-z":[{"translate-z":un()}],"translate-none":["translate-none"],accent:[{accent:f()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:f()}],"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",M,K]}],"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":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",M,K]}],fill:[{fill:["none",...f()]}],"stroke-w":[{stroke:[W,Ct,Xe,dl]}],stroke:[{stroke:["none",...f()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]}});function j(...t){return Iu(t.filter(Boolean))}const be=({name:t,size:e="L",className:n="",onClick:r,color:i,role:o})=>h.jsx("svg",{className:`icon ${e==="L"?"icon--l":"icon--s"} ${n} ${o?`icon--${o}`:""}`.trim(),onClick:r,role:o,"aria-label":`${t} icon`,style:i?{color:i}:void 0,children:h.jsx("use",{href:`/icons/sprites.svg#${t}`})});function gr(){return typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}function yr(t,e){const[n,r]=c.useState(!1),i=c.useRef(!1),o=c.useCallback(()=>{if(!(i.current||!e)){if(gr()){e();return}i.current=!0,r(!0)}},[e]),l=c.useCallback(s=>{s.animationName===t&&i.current&&(i.current=!1,r(!1),e==null||e())},[t,e]);return{isClosing:n,triggerClose:o,handleAnimationEnd:l}}const Ku={info:"default",success:"success",warning:"warning",error:"error",default:"default",brand:"brand"},Mu={brand:"Info",gray:"Info",default:"Info",error:"Error",warning:"Warning",success:"Done"};function Lu(t,e){return t||Ku[e||"info"]||"default"}function Fu(t){return t==="full-width"?"full-width":"floating"}const Au=({color:t,size:e="floating",type:n,title:r,children:i,actions:o,onClose:l,onClickHere:s,className:a})=>{const d=Lu(t,n),u=Fu(e),{isClosing:p,triggerClose:v,handleAnimationEnd:m}=yr("alert-exit",l),g=[...o||[],...s?[{label:"Click here",onClick:s}]:[]];return h.jsxs("div",{className:j("relative w-full flex flex-col gap-4 p-4","font-dos text-dos-sm","bg-dos-bg-primary border border-dos-border-default rounded-dos-base","eidotter-alert",`eidotter-alert--${d}`,u==="floating"&&"max-w-[1216px]",u==="full-width"&&"eidotter-alert--full-width max-w-none",p&&"eidotter-alert--closing",a),onAnimationEnd:m,role:"alert","data-color":d,"data-size":u,children:[h.jsx("div",{className:"eidotter-alert__icon",children:h.jsx(be,{name:Mu[d]||"Info",size:"S","aria-label":`${d} alert`})}),h.jsxs("div",{className:j("flex-1 flex flex-col gap-3 min-w-0",l&&"pr-6"),children:[(r||i)&&h.jsxs("div",{className:"flex flex-col gap-1",children:[r&&h.jsx("div",{className:"eidotter-alert__title font-dos leading-[140%]",children:r}),i&&h.jsx("div",{className:"eidotter-alert__text font-dos leading-[140%]",children:i})]}),g.length>0&&h.jsx("div",{className:"flex flex-row gap-3",children:g.map((b,y)=>h.jsxs("button",{type:"button",className:"eidotter-alert__action",onClick:b.onClick,children:[b.label,b.icon]},y))})]}),l&&h.jsx(ur,{className:"eidotter-alert__close",onPress:v,"aria-label":"Close alert",children:h.jsx(be,{name:"Close",size:"S"})})]})},xl=({title:t,children:e,defaultExpanded:n=!1,isHovered:r=!1,isActive:i=!1,onToggle:o})=>{const[l,s]=c.useState(n);c.useEffect(()=>{s(n)},[n]);const a=()=>{const d=!l;s(d),o==null||o(d)};return h.jsxs("div",{className:j("w-full border border-dos-border-default bg-dos-bg-primary text-cga-amber font-dos","eidotter-section",l&&"eidotter-section--expanded",r&&"eidotter-section--hover",i&&"eidotter-section--active"),children:[h.jsxs("button",{className:"eidotter-section__header w-full flex justify-between items-center px-4 py-2 bg-transparent border-0 text-inherit font-[inherit] cursor-pointer text-left",onClick:a,"aria-expanded":l,children:[h.jsx("div",{className:"flex-1 text-base leading-6",children:t}),h.jsx("div",{className:"eidotter-section__icon flex items-center justify-center w-6 h-6 ml-2 text-inherit",children:h.jsx(be,{name:l?"Chevron Up":"Chevron Down",size:"S"})})]}),h.jsx("div",{className:"eidotter-section__content",inert:l?void 0:!0,children:e})]})},Ou=({sections:t,defaultExpandedIndex:e=-1,className:n})=>{const[,r]=c.useState(e),i=(o,l)=>{r(l?o:-1)};return h.jsx("div",{className:j("w-full flex flex-col items-stretch gap-2 text-left text-base font-dos text-cga-amber","eidotter-accordion-fill",n),children:t.map((o,l)=>h.jsx(xl,{title:o.title,defaultExpanded:l===e,onToggle:s=>i(l,s),children:o.content},l))})},wl={xs:"text-[12px] px-2 py-1 min-h-6 gap-1",sm:"text-[14px] px-2 py-1 min-h-7 gap-1",md:"text-[14px] px-3 py-2 min-h-8 gap-1.5",lg:"text-[16px] px-4 py-2.5 min-h-10 gap-1.5",xl:"text-[16px] px-5 py-3 min-h-11 gap-2",small:"text-[14px] px-2 py-1 min-h-6 gap-1",medium:"text-[14px] px-3 py-2 min-h-8 gap-1.5",large:"text-[16px] px-4 py-2.5 min-h-10 gap-1.5"},El={primary:"eidotter-btn--primary",secondary:"eidotter-btn--secondary",tertiary:"eidotter-btn--tertiary",destructive:"eidotter-btn--destructive",ghost:"eidotter-btn--ghost",link:"eidotter-btn--link"},xr=({variant:t="primary",size:e="md",type:n="button",disabled:r=!1,loading:i=!1,children:o,onClick:l,className:s,fullWidth:a=!1,iconOnly:d=!1,...u})=>{const p=r||i;return h.jsxs(ur,{type:n,isDisabled:p,onPress:v=>{if(l&&!p){const m={type:"press",target:v.target,currentTarget:v.target,preventDefault:()=>{},stopPropagation:()=>{}};l(m)}},className:j("inline-flex items-center justify-center relative","border-2 border-solid","font-dos font-dos-bold leading-none whitespace-nowrap select-none","outline-none cursor-pointer","transition-all duration-100 ease-linear",wl[e]||wl.md,El[t]||El.primary,p&&"opacity-50 cursor-not-allowed",i&&"cursor-wait",a&&"w-full",d&&"aspect-square !px-0","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-dos-border-focus",s),"data-loading":i||void 0,"data-variant":t,...u,children:[i&&h.jsx("span",{className:"eidotter-btn__loading","aria-hidden":"true",children:"█"}),h.jsx("span",{className:j("inline-flex items-center justify-center",i&&"opacity-70"),children:o})]})},Bu=({title:t,children:e,footer:n,variant:r="default",className:i="",...o})=>{const l=["card",`card--${r}`,i].filter(Boolean).join(" ");return h.jsxs("div",{className:l,...o,children:[t&&h.jsx("div",{className:"card__header",children:h.jsx("span",{className:"card__title",children:t})}),h.jsx("div",{className:"card__body",children:e}),n&&h.jsx("div",{className:"card__footer",children:n})]})},Vu=({checked:t,defaultChecked:e,onChange:n,indeterminate:r=!1,label:i,disabled:o=!1,size:l="md",name:s,value:a,className:d,"aria-label":u,...p})=>h.jsx(xd,{isSelected:t,defaultSelected:e,isIndeterminate:r,onChange:n,isDisabled:o,name:s,value:a,"aria-label":u||i,className:j("inline-flex items-center gap-2 cursor-pointer select-none group","font-dos",l==="sm"?"text-[14px]":"text-[16px]","eidotter-checkbox",o&&"opacity-60 cursor-not-allowed",d),"data-size":l,...p,children:({isSelected:v,isIndeterminate:m})=>h.jsxs(h.Fragment,{children:[h.jsx("span",{className:j("eidotter-checkbox__box",v&&"eidotter-checkbox__box--checked",m&&"eidotter-checkbox__box--indeterminate"),children:m?"[-]":v?"[X]":"[ ]"}),i&&h.jsx("span",{className:"eidotter-checkbox__label",children:i})]})}),zu=({prompt:t="C:\\>",onCommand:e,autoFocus:n=!1,className:r="",placeholder:i,disabled:o=!1})=>{const[l,s]=c.useState(""),a=c.useRef(null);c.useEffect(()=>{n&&a.current&&a.current.focus()},[n]);const d=p=>{p.key==="Enter"&&l.trim()&&!o&&(e(l.trim()),s(""))},u=()=>{!o&&a.current&&a.current.focus()};return h.jsxs("div",{className:`command-prompt ${o?"command-prompt--disabled":""} ${r}`.trim(),onClick:u,role:"textbox","aria-label":"Command prompt",children:[h.jsx("span",{className:"command-prompt__prompt","aria-hidden":"true",children:t}),h.jsxs("div",{className:"command-prompt__input-wrapper",children:[h.jsx("input",{ref:a,className:"command-prompt__input",value:l,onChange:p=>s(p.target.value),onKeyDown:d,autoFocus:n,spellCheck:!1,autoComplete:"off",autoCapitalize:"off",autoCorrect:"off",placeholder:i,disabled:o,"aria-label":"Command input",size:l.length||1}),h.jsx("span",{className:"command-prompt__cursor","aria-hidden":"true",children:"█"})]})]})},on="█",ln="░",wr="▓",Hu="▒",Cl={sm:"text-xs",md:"text-base",lg:"text-lg",small:"text-xs",medium:"text-base",large:"text-lg"},kl={default:"eidotter-progress--default",success:"eidotter-progress--success",warning:"eidotter-progress--warning",error:"eidotter-progress--error"};function Uu(t,e,n){const r=e-t;if(n==="gradient"&&t>0&&t<e){const i=Math.min(2,r),o=r-i,l=(i>=1?wr:"")+(i>=2?Hu:"");return{filled:on.repeat(t),transition:l,empty:ln.repeat(o)}}return{filled:on.repeat(t),transition:"",empty:ln.repeat(r)}}const Pl=({value:t=0,max:e=100,indeterminate:n=!1,variant:r="default",size:i="md",trackStyle:o="block",blocks:l=20,showLabel:s=!1,fullWidth:a=!1,glow:d=!1,valueText:u,className:p,"aria-label":v,...m})=>{const g=Math.min(80,Math.max(3,Math.floor(l))),b=Math.min(100,Math.max(0,t/e*100)),y=Math.round(b/100*g),x=j("inline-flex items-center gap-2 font-dos","eidotter-progress",Cl[i]||Cl.md,kl[r]||kl.default,d&&"eidotter-progress--glow",a&&"eidotter-progress--full-width",n&&"eidotter-progress--indeterminate",o==="bordered"&&"eidotter-progress--bordered",p),E={"aria-label":v||`Progress: ${n?"loading":`${Math.round(b)}%`}`};n||(E["aria-valuenow"]=t,E["aria-valuemin"]=0,E["aria-valuemax"]=e),u&&(E["aria-valuetext"]=u);const C=o==="bordered",P=j("eidotter-progress__track",C&&"eidotter-progress__track--borderless");if(n){const k=ln.repeat(g);return h.jsxs("div",{className:x,role:"progressbar",...E,...m,children:[h.jsxs("span",{className:P,children:[C&&h.jsx("span",{className:"eidotter-progress__bracket",children:"["}),h.jsxs("span",{className:"eidotter-progress__bar",children:[h.jsx("span",{className:"eidotter-progress__empty",children:k}),h.jsxs("span",{className:"eidotter-progress__scanner",children:[wr,on,wr]})]}),C&&h.jsx("span",{className:"eidotter-progress__bracket",children:"]"})]}),s&&h.jsx("span",{className:"eidotter-progress__label",children:"..."})]})}const $=on.repeat(g),z=ln.repeat(g),{transition:F}=Uu(y,g,o);return h.jsxs("div",{className:x,role:"progressbar",...E,...m,children:[h.jsxs("span",{className:P,children:[C&&h.jsx("span",{className:"eidotter-progress__bracket",children:"["}),h.jsxs("span",{className:"eidotter-progress__bar",children:[h.jsx("span",{className:"eidotter-progress__empty",children:z}),h.jsx("span",{className:"eidotter-progress__fill",style:{"--fill-pct":String(b)},children:$}),F&&h.jsx("span",{className:"eidotter-progress__transition",style:{"--fill-pct":String(b)},children:F})]}),C&&h.jsx("span",{className:"eidotter-progress__bracket",children:"]"})]}),s&&h.jsxs("span",{className:"eidotter-progress__label",children:[Math.round(b),"%"]})]})},Tl={default:"eidotter-input--default",error:"eidotter-input--error"},Nl=c.forwardRef(({variant:t="default",label:e,description:n,errorMessage:r,disabled:i,className:o,onChange:l,isRequired:s,...a},d)=>{const u=t==="error";return h.jsxs(Wd,{isDisabled:i,isInvalid:u,isRequired:s,className:j("eidotter-text-field","flex flex-col gap-1",o),children:[e&&h.jsx(sd,{className:"text-cga-amber font-dos text-xs uppercase tracking-wider",children:e}),h.jsx(Cd,{ref:d,className:j("w-full bg-dos-bg-primary text-cga-amber font-dos text-base p-2","border-2 border-dos-border-default outline-none box-border","eidotter-input",Tl[t]||Tl.default,i&&"eidotter-input--disabled"),onChange:l,...a}),n&&!u&&h.jsx(jo,{slot:"description",className:"text-cga-brown font-dos text-xs",children:n}),r&&u&&h.jsx(jo,{slot:"errorMessage",className:"text-cga-bright-red font-dos text-xs",children:r})]})});Nl.displayName="Input";const Wu=({size:t="medium",title:e="MS-DOS Terminal",state:n="active",resizable:r=!0,minimizable:i=!1,maximizable:o=!1,closeable:l=!1,children:s,onMinimize:a,onMaximize:d,onClose:u,onFocus:p,className:v="",autoFocus:m=!1})=>{const[g,b]=c.useState(n),[y,x]=c.useState(!1),E=c.useRef(null);c.useEffect(()=>{m&&E.current&&E.current.focus()},[m]);const C=()=>{b("minimized"),a==null||a()},P=()=>{x(!y),d==null||d()},$=()=>{u==null||u()},z=()=>{b("active"),p==null||p()},F=k=>{k.altKey&&k.key==="F4"&&l&&(k.preventDefault(),$())};return g==="minimized"?h.jsx("div",{className:`terminal terminal--minimized ${v}`.trim(),onClick:z,role:"button",tabIndex:0,"aria-label":`Restore ${e} window`,onKeyDown:k=>k.key==="Enter"&&z(),children:h.jsxs("div",{className:"terminal__taskbar-item",children:[h.jsx(be,{name:"App",size:"S"}),h.jsx("span",{className:"terminal__taskbar-title",children:e})]})}):h.jsxs("div",{ref:E,className:`terminal terminal--${t} terminal--${g} ${y?"terminal--maximized":""} ${v}`.trim(),tabIndex:0,role:"dialog","aria-label":`${e} terminal window`,onFocus:z,onKeyDown:F,children:[h.jsxs("div",{className:"terminal__title-bar",children:[h.jsxs("div",{className:"terminal__title",children:[h.jsx(be,{name:"App",size:"S","aria-hidden":"true"}),h.jsx("span",{className:"terminal__title-text",children:e})]}),(i||o||l)&&h.jsxs("div",{className:"terminal__controls",children:[i&&h.jsx("button",{className:"terminal__control terminal__control--minimize",onClick:C,"aria-label":"Minimize window",title:"Minimize",children:h.jsx(be,{name:"Cancel",size:"S"})}),o&&h.jsx("button",{className:"terminal__control terminal__control--maximize",onClick:P,"aria-label":y?"Restore window":"Maximize window",title:y?"Restore":"Maximize",children:h.jsx(be,{name:y?"Fullscreen":"Add",size:"S"})}),l&&h.jsx("button",{className:"terminal__control terminal__control--close",onClick:$,"aria-label":"Close window",title:"Close",children:h.jsx(be,{name:"Close",size:"S"})})]})]}),h.jsx("div",{className:"terminal__content",role:"main",children:s||h.jsx("div",{className:"terminal__default-content",children:h.jsxs("div",{className:"terminal__prompt",children:[h.jsx("span",{className:"terminal__path",children:"C:\\\\>"}),h.jsx("span",{className:"terminal__cursor",children:"█"})]})})}),r&&h.jsx("div",{className:"terminal__resize-handle","aria-hidden":"true"})]})},$l={sm:"eidotter-tabs--sm",md:"eidotter-tabs--md",lg:"eidotter-tabs--lg",small:"eidotter-tabs--sm",medium:"eidotter-tabs--md",large:"eidotter-tabs--lg"},ju={underline:"eidotter-tabs--underline",pills:"eidotter-tabs--pills"},Gu=({tabs:t,variant:e="underline",size:n="md",activeTab:r,defaultActiveTab:i,onTabChange:o,className:l,...s})=>{var m,g,b;const a=c.useRef(null),d=c.useRef(r??i??((m=t[0])==null?void 0:m.id)??""),[u,p]=c.useState(r??i??((g=t[0])==null?void 0:g.id)??""),v=c.useCallback(y=>{const x=String(y),E=r??d.current;d.current=x,p(x),o==null||o(x,E)},[r,o]);return c.useLayoutEffect(()=>{const y=a.current;if(!y||e!=="underline")return;const x=()=>{const C=y.querySelector('[aria-selected="true"]');C&&(y.style.setProperty("--indicator-left",`${C.offsetLeft}px`),y.style.setProperty("--indicator-width",`${C.offsetWidth}px`))};x();const E=new ResizeObserver(x);return E.observe(y),()=>E.disconnect()},[r,u,e]),h.jsxs(Ld,{selectedKey:r,defaultSelectedKey:i??((b=t[0])==null?void 0:b.id),onSelectionChange:v,className:j("eidotter-tabs",ju[e],$l[n]||$l.md,l),children:[h.jsxs("div",{ref:a,className:"relative",children:[h.jsx(Ad,{className:"inline-flex items-center font-dos eidotter-tabs__list","aria-label":s["aria-label"],children:t.map(y=>h.jsx(Bd,{id:y.id,isDisabled:y.disabled,className:({isSelected:x,isDisabled:E})=>j("eidotter-tabs__tab",x&&"eidotter-tabs__tab--active",E&&"eidotter-tabs__tab--disabled"),children:y.label},y.id))}),e==="underline"&&h.jsx("span",{className:"eidotter-tabs__indicator","aria-hidden":"true"})]}),t.map(y=>h.jsx(Vd,{id:y.id,className:"hidden"},y.id))]})},Dl={sm:"text-[10px] px-1.5 py-0.5 min-h-[18px] gap-1",md:"text-[12px] px-2 py-1 min-h-[22px] gap-1.5",lg:"text-[14px] px-2.5 py-1 min-h-[26px] gap-1.5",small:"text-[10px] px-1.5 py-0.5 min-h-[18px] gap-1",medium:"text-[12px] px-2 py-1 min-h-[22px] gap-1.5"},_l={default:"eidotter-badge--default",success:"eidotter-badge--success",warning:"eidotter-badge--warning",error:"eidotter-badge--error",info:"eidotter-badge--info",accent:"eidotter-badge--accent",brand:"eidotter-badge--accent",gray:"eidotter-badge--default",blue:"eidotter-badge--info",indigo:"eidotter-badge--info",purple:"eidotter-badge--info",pink:"eidotter-badge--error",orange:"eidotter-badge--warning"},kt=({variant:t="default",size:e="md",dot:n=!1,children:r,className:i,...o})=>h.jsxs("span",{className:j("inline-flex items-center justify-center","font-dos font-dos-regular leading-none whitespace-nowrap select-none","uppercase tracking-wider","rounded-dos-sm","eidotter-badge",Dl[e]||Dl.md,_l[t]||_l.default,i),"data-variant":t,...o,children:[n&&h.jsx("span",{className:"eidotter-badge__dot","aria-hidden":"true"}),h.jsx("span",{className:"eidotter-badge__content",children:r})]}),qu=({checked:t,defaultChecked:e=!1,onCheckedChange:n,disabled:r=!1,size:i="md",type:o="default",label:l,name:s,value:a,className:d,...u})=>h.jsx(Md,{isSelected:t,defaultSelected:e,onChange:n,isDisabled:r,name:s,value:a,className:j("inline-flex items-center gap-2 cursor-pointer outline-none font-dos group","eidotter-switch",r&&"opacity-50 cursor-not-allowed",d),"data-size":i,"data-type":o,...u,children:({isSelected:p})=>h.jsxs(h.Fragment,{children:[h.jsx("span",{className:j("eidotter-switch__track",p&&"eidotter-switch__track--checked",o==="slim"&&"eidotter-switch__track--slim",i==="sm"&&"eidotter-switch__track--sm"),children:h.jsx("span",{className:"eidotter-switch__thumb"})}),l&&h.jsx("span",{className:"text-[var(--color-cga-amber)]",children:l})]})}),sn="eidotter-breadcrumb__link inline-flex items-center gap-1 text-dos-text-accent opacity-70 no-underline",Sl=({trail:t=[],currentLabel:e,showBackArrow:n=!0,separator:r="/",linkComponent:i,className:o})=>{const l=(s,a)=>{const d=h.jsxs(h.Fragment,{children:[n&&a&&h.jsx("span",{className:"text-[1em] leading-none","aria-hidden":"true",children:"<"}),h.jsx("span",{children:s.label})]});return s.onClick?h.jsx("button",{type:"button",className:j(sn,"bg-transparent border-0 cursor-pointer font-[inherit] p-0"),onClick:s.onClick,children:d}):s.href?i?h.jsx(i,{href:s.href,className:sn,children:d}):h.jsx("a",{href:s.href,className:sn,children:d}):h.jsx("span",{className:sn,children:d})};return h.jsx("nav",{"aria-label":"Breadcrumb",className:j("font-dos text-xs uppercase tracking-[0.35em]","eidotter-breadcrumb",o),children:h.jsxs("ol",{className:"flex flex-wrap items-center gap-2 list-none m-0 p-0",children:[t.map((s,a)=>{const d=a===t.length-1,u=a<t.length-1;return h.jsxs("li",{className:"flex items-center gap-2",children:[l(s,d),u&&h.jsx("span",{className:"text-dos-text-accent opacity-40 select-none","aria-hidden":"true",children:r})]},`${s.href??s.label}-${a}`)}),t.length>0&&h.jsx("li",{className:"flex items-center gap-2",children:h.jsx("span",{className:"text-dos-text-accent opacity-40 select-none","aria-hidden":"true",children:r})}),h.jsx("li",{className:"flex items-center gap-2","aria-current":"page",children:h.jsx("span",{className:"text-cga-amber",children:e})})]})})},Yu=({scanlines:t=!0,glow:e=!0,flicker:n=!0,bloom:r=!1,powered:i=!0,intensity:o=1,className:l="",onPowerStateChange:s,onPowerOn:a,onPowerOff:d})=>{const u=c.useRef(i),[p,v]=c.useState(i?"on":"off");c.useEffect(()=>{const C=u.current;if(u.current=i,C!==i){const P=i?"powering-on":"powering-off";v(P),s==null||s(P)}},[i,s]);const m=()=>{p==="powering-on"?(v("on"),s==null||s("on"),a==null||a()):p==="powering-off"&&(v("off"),s==null||s("off"),d==null||d())},g=C=>{C.animationName!=="retro-power-on"&&C.animationName!=="retro-power-off"||m()},b=C=>{C.propertyName==="opacity"&&(p!=="powering-on"&&p!=="powering-off"||m())},y=["retro-effects",p==="powering-off"&&"retro-effects--powering-off",p==="powering-on"&&"retro-effects--powering-on",p==="off"&&"retro-effects--off",l].filter(Boolean).join(" "),x={"--retro-intensity":o},E=p!=="off";return h.jsx("div",{className:y,style:x,"aria-hidden":"true",onAnimationEnd:g,onTransitionEnd:b,children:E&&h.jsxs(h.Fragment,{children:[t&&h.jsx("div",{className:"retro-effects__scanlines"}),e&&h.jsx("div",{className:"retro-effects__glow"}),n&&h.jsx("div",{className:"retro-effects__flicker"}),r&&h.jsx("div",{className:"retro-effects__bloom"})]})})},Je=({shape:t="circle",variant:e="default",isActive:n=!1,label:r,labelPosition:i="right",size:o="medium",className:l="",onClick:s,...a})=>{const d=["timeline-node",`timeline-node--${t}`,`timeline-node--${e}`,`timeline-node--${o}`,`timeline-node--label-${i}`,n&&"timeline-node--active",s&&"timeline-node--interactive",l].filter(Boolean).join(" "),u=()=>{s&&s()},p=v=>{s&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),s())};return h.jsxs("div",{className:d,onClick:u,onKeyDown:p,role:s?"button":void 0,tabIndex:s?0:void 0,"aria-pressed":s?n:void 0,...a,children:[r&&i==="left"&&h.jsx("span",{className:"timeline-node__label timeline-node__label--left",children:r}),r&&i==="top"&&h.jsx("span",{className:"timeline-node__label timeline-node__label--top",children:r}),h.jsx("span",{className:"timeline-node__marker","aria-hidden":"true"}),r&&i==="right"&&h.jsx("span",{className:"timeline-node__label timeline-node__label--right",children:r}),r&&i==="bottom"&&h.jsx("span",{className:"timeline-node__label timeline-node__label--bottom",children:r})]})},Pt=["year","month","day","hour"];function Xu({zoomLevel:t,defaultZoomLevel:e="month",onZoomChange:n}={}){const r=t===void 0,[i,o]=c.useState(e),[l,s]=c.useState([]),a=c.useRef(r);c.useEffect(()=>{a.current&&!r&&s([]),a.current=r},[r]);const d=t??i,u=Pt.indexOf(d),p=u<Pt.length-1,v=u>0,m=l.length>0?l[l.length-1].periodStart:null,g=c.useRef(r),b=c.useRef(p),y=c.useRef(u),x=c.useRef(l),E=c.useRef(n);c.useEffect(()=>{g.current=r,b.current=p,y.current=u,x.current=l,E.current=n});const C=c.useCallback(F=>{var k;g.current&&o(F),(k=E.current)==null||k.call(E,F)},[]),P=c.useCallback((F,k)=>{if(!g.current||!b.current)return;const L=Pt[y.current+1];L!==void 0&&(s(V=>[...V,{periodStart:F,label:k}]),C(L))},[C]),$=c.useCallback(()=>{if(!g.current||x.current.length===0)return;const F=Pt[y.current-1];F!==void 0&&(s(k=>k.slice(0,-1)),C(F))},[C]),z=c.useCallback(()=>{g.current&&(s([]),C("year"))},[C]);return{zoomLevel:d,canZoomIn:p,canZoomOut:v,breadcrumbs:l,currentPeriod:m,isDrillDownEnabled:r,drillDown:P,drillUp:$,reset:z}}function Zu({selectedEntryId:t,defaultSelectedEntryId:e=null,onSelectEntry:n}={}){const[r,i]=c.useState(e),o=t!==void 0,l=t!==void 0?t:r,s=c.useRef(l),a=c.useRef(o),d=c.useRef(n);c.useEffect(()=>{s.current=l,a.current=o,d.current=n});const u=c.useCallback(g=>{var b;a.current||i(g),(b=d.current)==null||b.call(d,g)},[]),p=c.useCallback(g=>{u(g)},[u]),v=c.useCallback(()=>{u(null)},[u]),m=c.useCallback(g=>{var b;a.current?(b=d.current)==null||b.call(d,s.current===g?null:g):i(y=>{var E;const x=y===g?null:g;return(E=d.current)==null||E.call(d,x),x})},[]);return{selectedEntryId:l,select:p,deselect:v,toggle:m}}const Ju=["January","February","March","April","May","June","July","August","September","October","November","December"],Er=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function an(t){return new Date(t).getUTCFullYear()}function Cr(t){return new Date(t).getUTCMonth()}function Il(t){return new Date(t).getUTCDate()}function Qu(t){return new Date(t).getUTCHours()}function Ru(t){return String(t)}function ef(t,e){return`${Ju[e]} ${t}`}function tf(t,e,n){return`${Er[e]} ${n}`}function nf(t,e,n,r){const i=r>=12?"pm":"am",o=r===0?12:r>12?r-12:r;return`${Er[e]} ${n}, ${o}${i}`}function rf(t){const e=new Date(t),n=Er[e.getUTCMonth()],r=e.getUTCDate(),i=e.getUTCFullYear(),o=e.getUTCHours(),l=e.getUTCMinutes(),s=o>=12?"pm":"am",a=o===0?12:o>12?o-12:o,d=l>0?`:${String(l).padStart(2,"0")}`:"";return`${n} ${r}, ${i} at ${a}${d}${s}`}function of(t){return new Date(Date.UTC(t,0,1)).toISOString()}function lf(t,e){return new Date(Date.UTC(t,e,1)).toISOString()}function sf(t,e,n){return new Date(Date.UTC(t,e,n)).toISOString()}function af(t,e,n,r){return new Date(Date.UTC(t,e,n,r)).toISOString()}function cn(t,e,n,r,i){const o=new Map,l=[];for(const s of t){const a=e(s),d=o.get(a);d?d.push(s):(o.set(a,[s]),l.push(a))}l.sort((s,a)=>i==="asc"?s.localeCompare(a):a.localeCompare(s));for(const[,s]of o)s.sort((a,d)=>{const u=a.date.localeCompare(d.date);return i==="asc"?u:-u});return l.map(s=>({label:n(s),periodStart:r(s),entries:o.get(s)??[]}))}function cf(t){return String(an(t.date))}function df(t){const e=an(t.date),n=Cr(t.date);return`${e}-${String(n).padStart(2,"0")}`}function uf(t){const e=an(t.date),n=Cr(t.date),r=Il(t.date);return`${e}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}`}function ff(t){const e=an(t.date),n=Cr(t.date),r=Il(t.date),i=Qu(t.date);return`${e}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}-${String(i).padStart(2,"0")}`}function Kl(t){return{year:parseInt(t)}}function Ml(t){const[e,n]=t.split("-");return{year:parseInt(e),month:parseInt(n)}}function Ll(t){const[e,n,r]=t.split("-");return{year:parseInt(e),month:parseInt(n),day:parseInt(r)}}function Fl(t){const[e,n,r,i]=t.split("-");return{year:parseInt(e),month:parseInt(n),day:parseInt(r),hour:parseInt(i)}}const pf={year:4,month:7,day:10};function hf(t,e,n){if(e===null||n==="hour")return t;const r=pf[n];if(r===void 0)return t;const i=e.slice(0,r);return t.filter(o=>o.periodStart.slice(0,r)===i)}function vf(t,e,n="desc"){if(t.length===0)return[];const r=t.filter(i=>!isNaN(new Date(i.date).getTime()));if(r.length===0)return[];switch(e){case"year":return cn(r,cf,i=>{const{year:o}=Kl(i);return Ru(o)},i=>{const{year:o}=Kl(i);return of(o)},n);case"month":return cn(r,df,i=>{const{year:o,month:l}=Ml(i);return ef(o,l)},i=>{const{year:o,month:l}=Ml(i);return lf(o,l)},n);case"day":return cn(r,uf,i=>{const{year:o,month:l,day:s}=Ll(i);return tf(o,l,s)},i=>{const{year:o,month:l,day:s}=Ll(i);return sf(o,l,s)},n);case"hour":return cn(r,ff,i=>{const{year:o,month:l,day:s,hour:a}=Fl(i);return nf(o,l,s,a)},i=>{const{year:o,month:l,day:s,hour:a}=Fl(i);return af(o,l,s,a)},n)}}const mf=({zoomLevel:t,canZoomIn:e,canZoomOut:n,onZoomIn:r,onZoomOut:i,onReset:o,breadcrumbs:l=[],onBreadcrumbClick:s})=>{const a=l.length>0;return h.jsxs("div",{className:"timeline-zoom-controls",role:"toolbar","aria-label":"Timeline zoom controls",children:[h.jsx(xr,{variant:"secondary",size:"small",onClick:i,disabled:!n,"aria-label":"Zoom out",children:"[-]"}),a?h.jsx(Sl,{trail:[{label:"ALL",onClick:o},...l.slice(0,-1).map((d,u)=>({label:d.label,onClick:()=>s==null?void 0:s(u)}))],currentLabel:l[l.length-1].label,showBackArrow:!1,separator:">",className:"timeline-zoom-controls__breadcrumb"}):h.jsx("button",{type:"button",className:"timeline-zoom-controls__level",onClick:o,"aria-label":`Current zoom: ${t}. Click to reset.`,children:h.jsx(kt,{variant:"accent",size:"medium",children:t.toUpperCase()})}),h.jsx(xr,{variant:"secondary",size:"small",onClick:r,disabled:!e,"aria-label":"Zoom in",children:"[+]"})]})},kr=({children:t})=>h.jsxs("div",{className:"timeline-axis",children:[h.jsx("div",{className:"timeline-axis__line","aria-hidden":"true"}),h.jsx("div",{className:"timeline-axis__content",children:t})]}),Al=c.memo(({buckets:t,onBucketClick:e})=>h.jsx("div",{className:"timeline-view timeline-view--year",role:"list",children:t.map(n=>h.jsx("div",{className:"timeline-view__bucket timeline-view__bucket--year",role:"listitem",children:e?h.jsxs("button",{type:"button",className:"timeline-view__bucket-button",onClick:()=>e(n),children:[h.jsx("div",{className:"timeline-view__node",children:h.jsx(Je,{shape:"circle",size:"medium",variant:"default",label:n.label,labelPosition:"right"})}),h.jsx("div",{className:"timeline-view__content",children:h.jsxs(kt,{variant:"default",size:"small",children:[n.entries.length," ",n.entries.length===1?"entry":"entries"]})})]}):h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"timeline-view__node",children:h.jsx(Je,{shape:"circle",size:"medium",variant:"default",label:n.label,labelPosition:"right"})}),h.jsx("div",{className:"timeline-view__content",children:h.jsxs(kt,{variant:"default",size:"small",children:[n.entries.length," ",n.entries.length===1?"entry":"entries"]})})]})},n.periodStart))}));Al.displayName="YearView";const Tt=c.memo(({entry:t,isSelected:e,isExpanded:n=!1,onSelect:r,footer:i,children:o})=>{const l=["timeline-card",e&&"timeline-card--selected",n&&"timeline-card--expanded"].filter(Boolean).join(" "),s=typeof t.content=="string",a=t.content!=null;return h.jsxs("div",{className:l,children:[h.jsxs("button",{type:"button",className:"timeline-card__trigger",onClick:()=>r==null?void 0:r(t.id),"aria-expanded":n,children:[h.jsxs("div",{className:"timeline-card__header",children:[t.type&&h.jsx("span",{className:"timeline-card__type",children:t.type.toUpperCase()}),t.tags&&t.tags.length>0&&h.jsx("span",{className:"timeline-card__tags",children:t.tags.map(d=>`#${d}`).join(" ")})]}),h.jsx("p",{className:"timeline-card__title",children:t.title}),!n&&s&&(()=>{const d=String(t.content);return h.jsxs("p",{className:"timeline-card__preview",children:[d.slice(0,80),d.length>80?"...":""]})})(),o]}),a&&h.jsx("div",{className:"timeline-card__body",children:h.jsx("div",{className:"timeline-card__body-inner",inert:n?void 0:!0,children:t.content})}),i&&h.jsx("div",{className:"timeline-card__footer",children:i})]})});Tt.displayName="TimelineEntryCard";const Ol=c.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n,onBucketClick:r})=>h.jsx("div",{className:"timeline-view timeline-view--month",role:"list",children:t.map(i=>h.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--month",role:"listitem",children:[h.jsx("div",{className:"timeline-view__node",children:h.jsx(Je,{shape:"circle",size:"medium",variant:"default",label:i.label,labelPosition:"right",onClick:()=>r==null?void 0:r(i)})}),h.jsx("div",{className:"timeline-view__content",children:i.entries.map(o=>h.jsx(Tt,{entry:o,isSelected:e===o.id,isExpanded:e===o.id,onSelect:n},o.id))})]},i.periodStart))}));Ol.displayName="MonthView";const Bl={sm:"text-[10px] px-1.5 py-0.5 min-h-[18px] gap-1",md:"text-[12px] px-2 py-1 min-h-[22px] gap-1.5",lg:"text-[14px] px-2.5 py-1 min-h-[26px] gap-1.5",small:"text-[10px] px-1.5 py-0.5 min-h-[18px] gap-1",medium:"text-[12px] px-2 py-1 min-h-[22px] gap-1.5"},Pr=({children:t,variant:e="default",size:n="md",color:r,selected:i=!1,closeable:o=!1,disabled:l=!1,onClick:s,onClose:a,className:d,"aria-label":u,...p})=>{const v=!!s&&!l,{isClosing:m,triggerClose:g,handleAnimationEnd:b}=yr("tag-exit",a),y=C=>{l||((C.key==="Enter"||C.key===" ")&&s&&(C.preventDefault(),s(C)),(C.key==="Delete"||C.key==="Backspace")&&o&&a&&(C.preventDefault(),g()))},x=C=>{C.stopPropagation(),l||g()},E=r?{"--tag-color":"var("+r+")"}:void 0;return h.jsxs("span",{className:j("inline-flex items-center justify-center","font-dos font-dos-regular leading-none whitespace-nowrap select-none","rounded-dos-sm uppercase tracking-wider",Bl[n]||Bl.md,"eidotter-tag","eidotter-tag--"+e,i&&"eidotter-tag--selected",l&&"opacity-50 cursor-not-allowed",m&&"eidotter-tag--closing",v&&"cursor-pointer",d),style:E,onClick:v?C=>!l&&(s==null?void 0:s(C)):void 0,onKeyDown:y,onAnimationEnd:b,"aria-label":u,"aria-selected":i||void 0,"aria-disabled":l||void 0,"data-variant":e,...v?{role:"button",tabIndex:0}:{},...p,children:[h.jsx("span",{className:"eidotter-tag__content",children:t}),o&&h.jsx("button",{className:"eidotter-tag__close",type:"button","aria-label":"Remove "+(typeof t=="string"?t:"tag"),tabIndex:-1,onClick:x,disabled:l,children:"[x]"})]})},Tr=({children:t,gap:e="normal",wrap:n=!0,className:r="","aria-label":i,...o})=>{const l=["tag-group",`tag-group--${e}`,!n&&"tag-group--nowrap",r].filter(Boolean).join(" ");return h.jsx("div",{className:l,role:"group","aria-label":i,...o,children:t})},Vl=c.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n})=>h.jsx("div",{className:"timeline-view timeline-view--day",role:"list",children:t.map(r=>h.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--day",role:"listitem",children:[h.jsx("div",{className:"timeline-view__node",children:h.jsx(Je,{shape:"circle",size:"medium",variant:"default",label:r.label,labelPosition:"right"})}),h.jsx("div",{className:"timeline-view__content",children:r.entries.map(i=>h.jsx(Tt,{entry:i,isSelected:e===i.id,isExpanded:e===i.id,onSelect:n,footer:i.tags&&i.tags.length>0?h.jsx(Tr,{gap:"tight","aria-label":`Tags for ${i.title}`,children:i.tags.map(o=>h.jsx(Pr,{size:"small",variant:"outlined",children:o},o))}):void 0},i.id))})]},r.periodStart))}));Vl.displayName="DayView";const zl=c.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n})=>h.jsx("div",{className:"timeline-view timeline-view--hour",role:"list",children:t.map(r=>h.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--hour",role:"listitem",children:[h.jsx("div",{className:"timeline-view__node",children:h.jsx(Je,{shape:"circle",size:"medium",variant:"default",label:r.label,labelPosition:"right"})}),h.jsx("div",{className:"timeline-view__content",children:r.entries.map(i=>h.jsxs(Tt,{entry:i,isSelected:e===i.id,isExpanded:!0,onSelect:n,footer:h.jsxs("div",{className:"timeline-view__entry-footer",children:[i.tags&&i.tags.length>0&&h.jsx(Tr,{gap:"tight","aria-label":`Tags for ${i.title}`,children:i.tags.map(o=>h.jsx(Pr,{size:"small",variant:"outlined",children:o},o))}),i.type&&h.jsx(kt,{variant:"default",size:"small",children:i.type})]}),children:[h.jsx("time",{className:"timeline-view__timestamp",dateTime:i.date,children:rf(i.date)}),h.jsx("div",{className:"timeline-view__entry-content",children:i.content})]},i.id))})]},r.periodStart))}));zl.displayName="HourView";const bf=({zoomLevel:t,buckets:e,selectedEntryId:n,onEntrySelect:r,onBucketClick:i})=>{switch(t){case"year":return h.jsx(Al,{buckets:e,onBucketClick:i});case"month":return h.jsx(Ol,{buckets:e,selectedEntryId:n,onEntrySelect:r,onBucketClick:i});case"day":return h.jsx(Vl,{buckets:e,selectedEntryId:n,onEntrySelect:r});case"hour":return h.jsx(zl,{buckets:e,selectedEntryId:n,onEntrySelect:r});default:return t}},gf=({entries:t,mode:e="interactive",zoomLevel:n,defaultZoomLevel:r="month",onZoomChange:i,selectedEntryId:o,defaultSelectedEntryId:l,onSelectEntry:s,sortOrder:a="desc",scrollToZoom:d=!0,keyboardShortcuts:u=!0,...p})=>{var w;const v=e==="static",m=c.useRef(null),g=c.useRef(null),[b,y]=c.useState(""),{zoomLevel:x,canZoomIn:E,canZoomOut:C,breadcrumbs:P,currentPeriod:$,isDrillDownEnabled:z,drillDown:F,drillUp:k,reset:L}=Xu({zoomLevel:n,defaultZoomLevel:r,onZoomChange:i}),{selectedEntryId:V,toggle:ee,deselect:ne}=Zu({selectedEntryId:o,defaultSelectedEntryId:l,onSelectEntry:s}),Y=c.useMemo(()=>vf(t,x,a),[t,x,a]),N=P.length>0?["year","month","day","hour"][P.length-1]:null,O=c.useMemo(()=>$&&N?hf(Y,$,N):Y,[Y,$,N]);c.useEffect(()=>{if(v||!d)return;const T=m.current;if(!T)return;let _=null;const S=U=>{!U.ctrlKey&&!U.metaKey||(U.preventDefault(),_===null&&(_=requestAnimationFrame(()=>{U.deltaY>0&&k(),_=null})))};return T.addEventListener("wheel",S,{passive:!1}),()=>{T.removeEventListener("wheel",S),_!==null&&cancelAnimationFrame(_)}},[v,d,z,E,k]),c.useEffect(()=>{if(v||!u)return;const T=_=>{var U;if(!((U=m.current)!=null&&U.contains(document.activeElement))&&document.activeElement!==m.current)return;const S=_.ctrlKey||_.metaKey;S&&_.key==="-"?(_.preventDefault(),k()):S&&_.key==="0"?(_.preventDefault(),L(),y("Showing all years")):_.key==="Escape"&&(_.preventDefault(),ne())};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[v,u,k,L,ne]);const G=c.useCallback(T=>{E&&(F(T.periodStart,T.label),y(`Showing ${x==="year"?"months":x==="month"?"days":"hours"} in ${T.label}`))},[E,F,x]),X=c.useRef(P.length);c.useEffect(()=>{var T;if(P.length!==X.current){X.current=P.length;const _=(T=g.current)==null?void 0:T.querySelector('.timeline-card__trigger, .timeline-view__bucket-button, .timeline-node[role="button"]');_&&requestAnimationFrame(()=>_.focus())}},[P.length]);const Q=["timeline-container",v&&"timeline-container--static",p.className].filter(Boolean).join(" "),re=c.useMemo(()=>v?[...t].sort((T,_)=>{const S=T.date.localeCompare(_.date);return a==="desc"?-S:S}):t,[v,t,a]),f=c.useMemo(()=>new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short",day:"numeric"}),[]),D=T=>{try{return f.format(new Date(T))}catch{return T}};return h.jsxs("div",{ref:m,...p,className:Q,role:"region","aria-label":p["aria-label"]??"Timeline",tabIndex:v?void 0:0,children:[h.jsx("div",{className:"timeline-container__announcer",role:"status","aria-live":"polite","aria-atomic":"true",children:b}),!v&&h.jsx(mf,{zoomLevel:x,canZoomIn:E,canZoomOut:C,onZoomIn:()=>{},onZoomOut:k,onReset:L,breadcrumbs:z?P:[],onBreadcrumbClick:T=>{const _=P.length-1-T;for(let S=0;S<_;S++)k()}}),h.jsx("div",{ref:g,children:t.length===0?h.jsxs("div",{className:"timeline-container__empty",role:"status",children:[h.jsx("p",{children:"C:\\TIMELINE> No entries found."}),h.jsx("p",{children:"_"})]}):v?h.jsx(kr,{children:h.jsx("div",{className:"timeline-container__static",role:"list","aria-label":"Timeline",children:re.map(T=>h.jsxs("div",{className:"timeline-container__static-entry",role:"listitem",children:[h.jsx("div",{className:"timeline-view__node",children:h.jsx(Je,{shape:"circle",size:"medium",variant:"default",label:D(T.date),labelPosition:"right"})}),h.jsx(Tt,{entry:T,isSelected:!1,isExpanded:!0})]},T.id))})}):O.length===0&&$?h.jsx(kr,{children:h.jsxs("div",{className:"timeline-container__empty",role:"status",children:[h.jsxs("p",{children:["C:\\TIMELINE> No entries in ",((w=P[P.length-1])==null?void 0:w.label)??"this period","."]}),h.jsx("p",{children:"_"})]})}):h.jsx(kr,{children:h.jsx(bf,{zoomLevel:x,buckets:O,selectedEntryId:V,onEntrySelect:ee,onBucketClick:G})})})]})},yf=({isOpen:t,onClose:e,onOpenChange:n,title:r,children:i,footer:o,className:l})=>{const s=c.useRef(t);c.useEffect(()=>{t!==s.current&&(s.current=t,n==null||n(t))},[t,n]);const a=d=>{d||e()};return h.jsx(Jo,{isOpen:t,onOpenChange:a,isDismissable:!0,className:({isEntering:d,isExiting:u})=>j("eidotter-modal-overlay",d&&"eidotter-modal-overlay--entering",u&&"eidotter-modal-overlay--exiting"),children:h.jsx(_d,{className:({isEntering:d,isExiting:u})=>j("eidotter-modal",d&&"eidotter-modal--entering",u&&"eidotter-modal--exiting"),children:h.jsxs($d,{"aria-label":r,className:j("eidotter-modal__container outline-none",l),children:[h.jsxs("header",{className:"eidotter-modal__header",children:[h.jsx("h2",{className:"eidotter-modal__title",children:r}),h.jsx("button",{type:"button",className:"eidotter-modal__close",onClick:e,"aria-label":"Close modal",children:h.jsx(be,{name:"Close",size:"S"})})]}),h.jsx("div",{className:"eidotter-modal__body",children:i}),o&&h.jsx("footer",{className:"eidotter-modal__footer",children:o})]})})})},xf="░▒▓█│┤┐└┴┬├─┼",wf=4;function Nr(t,e){const{speed:n=40,characters:r=xf,enabled:i=!0,delay:o=0}=e??{},[l,s]=c.useState(()=>{if(!i||gr())return t;let p="";for(let v=0;v<t.length;v++)t[v]===" "?p+=" ":p+=r[Math.floor(Math.random()*r.length)];return p}),[a,d]=c.useState(!1),u=c.useRef(0);return c.useEffect(()=>{if(!i||gr()){s(t),d(!1);return}let p=0,v=0,m=0,g=o;d(!0);const b=y=>{m||(m=y);const x=y-m;if(g>0){g-=x,m=y,u.current=requestAnimationFrame(b);return}if(x>=n){if(m=y,v++,v>=wf&&(p++,v=0),p>=t.length){s(t),d(!1);return}let E="";for(let C=0;C<t.length;C++)C<p?E+=t[C]:t[C]===" "?E+=" ":E+=r[Math.floor(Math.random()*r.length)];s(E)}u.current=requestAnimationFrame(b)};return u.current=requestAnimationFrame(b),()=>{u.current&&cancelAnimationFrame(u.current)}},[t,n,r,i,o]),{text:l,isScrambling:a}}const Hl={sm:{root:"gap-0.5",label:"text-[10px]",value:"text-lg",trend:"text-[10px]"},md:{root:"gap-1",label:"text-[10px]",value:"text-2xl",trend:"text-[10px]"},lg:{root:"gap-1.5",label:"text-xs",value:"text-4xl",trend:"text-xs"},small:{root:"gap-0.5",label:"text-[10px]",value:"text-lg",trend:"text-[10px]"},medium:{root:"gap-1",label:"text-[10px]",value:"text-2xl",trend:"text-[10px]"},large:{root:"gap-1.5",label:"text-xs",value:"text-4xl",trend:"text-xs"}},Ef={up:"text-cga-bright-green",down:"text-cga-bright-red",neutral:"text-cga-amber"},Cf={up:"▲",down:"▼",neutral:"►"},kf={up:"increasing",down:"decreasing",neutral:"unchanged"},Pf=({label:t,value:e,trend:n,trendValue:r,size:i="md",scramble:o=!1,className:l,...s})=>{const{text:a}=Nr(String(e),{speed:30,enabled:o}),d=o?a:String(e),u=Hl[i]||Hl.md;return h.jsxs("div",{className:j("flex flex-col font-dos","eidotter-stat",u.root,l),...s,children:[h.jsx("span",{className:j("text-cga-amber uppercase tracking-wider leading-tight",u.label),children:t}),h.jsx("span",{className:j("text-dos-text-accent font-bold leading-none tabular-nums",u.value),children:d}),n&&h.jsxs("span",{className:j("inline-flex items-center gap-1 leading-none",Ef[n],u.trend),"aria-label":`Trend: ${kf[n]}${r?`, ${r}`:""}`,children:[h.jsx("span",{className:"text-[0.8em]","aria-hidden":"true",children:Cf[n]}),r&&h.jsx("span",{className:"tabular-nums",children:r})]})]})},Ul={sm:"eidotter-filter-bar--sm",md:"eidotter-filter-bar--md",lg:"eidotter-filter-bar--lg",small:"eidotter-filter-bar--sm",medium:"eidotter-filter-bar--md",large:"eidotter-filter-bar--lg"},Tf=({items:t,activeIds:e,defaultActiveIds:n=[],mode:r="multi",showAll:i=!1,allLabel:o="All",size:l="md",onChange:s,className:a,...d})=>{const[u,p]=c.useState(n),v=c.useRef(null),m=e!==void 0,g=m?e:u,b=t.filter(k=>!k.disabled).map(k=>k.id),y=g.length===0,x=c.useCallback(k=>{m||p(k),s==null||s(k)},[m,s]),E=c.useCallback(k=>{if(r==="single"){const L=g.includes(k)?[]:[k];x(L)}else{const L=g.includes(k)?g.filter(V=>V!==k):[...g,k];x(L)}},[r,g,x]),C=c.useCallback(()=>{x([])},[x]),P=c.useCallback(()=>v.current?Array.from(v.current.querySelectorAll("button:not([disabled])")):[],[]),$=c.useCallback(k=>{const L=P(),V=L.indexOf(k.target);if(V===-1)return;let ee=null;switch(k.key){case"ArrowLeft":case"ArrowUp":k.preventDefault(),ee=V>0?V-1:L.length-1;break;case"ArrowRight":case"ArrowDown":k.preventDefault(),ee=V<L.length-1?V+1:0;break;case"Home":k.preventDefault(),ee=0;break;case"End":k.preventDefault(),ee=L.length-1;break}ee!==null&&L[ee].focus()},[P]),F=i&&y?"__all__":g.length>0?g[0]:i?"__all__":b[0]||null;return h.jsxs("div",{ref:v,className:j("inline-flex flex-wrap items-center gap-1 p-1 font-dos max-w-full","bg-dos-bg-secondary border border-dos-border-default rounded-dos-sm","eidotter-filter-bar",Ul[l]||Ul.md,a),role:"toolbar",onKeyDown:$,...d,children:[i&&h.jsx("button",{type:"button",className:j("eidotter-filter-bar__item","eidotter-filter-bar__item--all",y&&"eidotter-filter-bar__item--active"),"aria-pressed":y,tabIndex:F==="__all__"?0:-1,onClick:C,children:h.jsx("span",{className:"eidotter-filter-bar__label",children:o})}),t.map(k=>{const L=g.includes(k.id),V=L&&k.color?{"--filter-bar-item-color":`var(${k.color})`}:void 0;return h.jsxs("button",{type:"button",className:j("eidotter-filter-bar__item",L&&"eidotter-filter-bar__item--active",k.disabled&&"eidotter-filter-bar__item--disabled"),"aria-pressed":L,tabIndex:F===k.id?0:-1,disabled:k.disabled,onClick:()=>E(k.id),style:V,children:[h.jsx("span",{className:"eidotter-filter-bar__label",children:k.label}),k.count!==void 0&&h.jsx("span",{className:"eidotter-filter-bar__count","aria-label":`${k.count} items`,children:k.count})]},k.id)})]})},$r=t=>{if(!t)return!1;try{const e=new URL(t);return["http:","https:","mailto:"].includes(e.protocol)}catch{return!1}},Nf=({children:t,content:e,defaultExpanded:n=!1,expanded:r,onToggle:i,sources:o=[],className:l="",...s})=>{const[a,d]=c.useState(n),[u,p]=c.useState(new Set),v=c.useRef(n),m=c.useId(),g=c.useRef(null),b=r!==void 0,y=b?r:a;y&&(v.current=!0);const x=()=>{const P=!y;b||d(P),i==null||i(P)},E=P=>{var $;P.key==="Escape"&&y&&(P.stopPropagation(),x(),($=g.current)==null||$.focus())},C=["inline-expand",y&&"inline-expand--expanded",l].filter(Boolean).join(" ");return h.jsxs("span",{className:C,onKeyDown:E,...s,children:[h.jsxs("button",{ref:g,type:"button",className:"inline-expand__trigger","aria-expanded":y,"aria-controls":m,onClick:x,children:[t,h.jsx("span",{className:"inline-expand__indicator","aria-hidden":"true",children:y?"[-]":"[+]"})]}),h.jsxs("span",{id:m,className:"inline-expand__content",role:"region",inert:!y,children:[h.jsx("span",{className:"inline-expand__inner",children:e}),o.length>0&&h.jsx("span",{className:"inline-expand__sources",role:"list",children:o.map(P=>h.jsx("span",{className:"inline-expand__source-item",role:"listitem",children:h.jsxs("a",{href:$r(P.url)?P.url:void 0,className:"inline-expand__source-link",target:"_blank",rel:"noopener noreferrer","aria-label":`${P.title} (opens external website)`,children:[v.current&&P.favicon&&$r(P.favicon)&&!u.has(P.url)?h.jsx("img",{className:"inline-expand__source-favicon",src:P.favicon,alt:"",width:16,height:16,decoding:"async",onError:()=>p($=>new Set($).add(P.url))}):h.jsx("span",{className:"inline-expand__source-icon","aria-hidden":"true",children:"[→]"}),h.jsx("span",{className:"inline-expand__source-title",children:P.title})]})},P.url))})]})]})},$f={horizontal:"h-px w-full",vertical:"w-px h-full"},Df=({orientation:t="horizontal",className:e})=>h.jsx("div",{role:"separator","aria-orientation":t,className:j("shrink-0 bg-dos-border-default","eidotter-separator",$f[t],e)}),_f=({children:t,speed:e,characters:n,delay:r,className:i="",...o})=>{const{text:l,isScrambling:s}=Nr(t,{speed:e,characters:n,delay:r}),a=["text-scramble",s&&"text-scramble--scrambling",i].filter(Boolean).join(" ");return h.jsx("span",{className:a,...o,children:l})},Wl={retro:"eidotter-nav--retro",modern:"eidotter-nav--modern"},jl=({items:t,activeHref:e,variant:n="retro",linkComponent:r,className:i})=>{const o=r||"a";return h.jsx("nav",{className:j("eidotter-nav eidotter-nav--desktop",Wl[n],i),"aria-label":"Main navigation",children:h.jsx("ul",{className:"eidotter-nav__desktop-list",children:t.map(l=>h.jsx("li",{className:"eidotter-nav__desktop-item",children:h.jsx(o,{href:l.href,className:j("eidotter-nav__link",e===l.href&&"eidotter-nav__link--active"),children:l.label})},l.href))})})},Gl=({items:t,activeHref:e,variant:n="retro",linkComponent:r,className:i})=>{const[o,l]=c.useState(!1),s=r||"a",a=c.useCallback(()=>l(u=>!u),[]),d=c.useCallback(()=>l(!1),[]);return h.jsxs("div",{className:j("eidotter-nav eidotter-nav--mobile",Wl[n],i),children:[h.jsx("button",{onClick:a,className:"eidotter-nav__hamburger","aria-label":o?"Close menu":"Open menu","aria-expanded":o,children:h.jsx("span",{className:"eidotter-nav__hamburger-icon","aria-hidden":"true",children:o?"✕":"☰"})}),o&&h.jsx("div",{className:"eidotter-nav__overlay",onClick:d,"aria-hidden":"true"}),h.jsxs("nav",{className:j("eidotter-nav__panel",o&&"eidotter-nav__panel--open"),"aria-label":"Mobile navigation",children:[h.jsx("div",{className:"eidotter-nav__panel-header",children:h.jsx("button",{onClick:d,className:"eidotter-nav__close","aria-label":"Close menu",children:"✕"})}),h.jsx("ul",{className:"eidotter-nav__list",children:t.map(u=>h.jsx("li",{className:"eidotter-nav__item",children:h.jsx(s,{href:u.href,className:j("eidotter-nav__link",e===u.href&&"eidotter-nav__link--active"),onClick:d,children:u.label})},u.href))})]})]})},Sf=t=>h.jsxs(h.Fragment,{children:[h.jsx(Gl,{...t}),h.jsx(jl,{...t})]}),ql=({role:t,content:e,isStreaming:n=!1,userPrefix:r=">",assistantPrefix:i="C:\\>",className:o="",...l})=>{const s=t==="user"?r:t==="assistant"?i:"",a=["chat-message",`chat-message--${t}`,n&&"chat-message--streaming",o].filter(Boolean).join(" ");return h.jsxs("div",{className:a,...l,children:[s&&h.jsx("span",{className:"chat-message__prefix","aria-hidden":"true",children:s}),h.jsx("span",{className:"chat-message__content",children:e}),n&&h.jsx("span",{className:"chat-message__cursor","aria-hidden":"true",children:"█"})]})},Yl=({messages:t,isStreaming:e=!1,userPrefix:n,assistantPrefix:r,className:i="",...o})=>{const l=c.useRef(null);c.useEffect(()=>{var a,d;(d=(a=l.current)==null?void 0:a.scrollIntoView)==null||d.call(a,{behavior:"smooth"})},[t.length,e]);const s=["chat-history",i].filter(Boolean).join(" ");return t.length===0?h.jsx("div",{className:s,role:"log","aria-live":"polite",...o,children:h.jsx("div",{className:"chat-history__empty",children:h.jsx("span",{className:"chat-history__empty-text",children:"Awaiting input..."})})}):h.jsx("div",{className:s,role:"log","aria-live":"polite",...o,children:h.jsxs("div",{className:"chat-history__messages",children:[t.map((a,d)=>{const u=e&&a.role==="assistant"&&d===t.length-1;return h.jsx(ql,{role:a.role,content:a.content,isStreaming:u,userPrefix:n,assistantPrefix:r},a.id)}),h.jsx("div",{ref:l})]})})},Xl=({onSend:t,prompt:e=">",placeholder:n,disabled:r=!1,className:i="",...o})=>{const[l,s]=c.useState(""),a=c.useRef(null);c.useLayoutEffect(()=>{const v=a.current;v&&(v.style.height="auto",v.style.height=`${v.scrollHeight}px`)},[l]);const d=v=>{if(v.key==="Enter"&&!v.shiftKey&&!r){v.preventDefault();const m=l.trim();m&&(t(m),s(""))}},u=()=>{!r&&a.current&&a.current.focus()},p=["chat-input",r&&"chat-input--disabled",i].filter(Boolean).join(" ");return h.jsxs("div",{className:p,onClick:u,...o,children:[h.jsx("span",{className:"chat-input__prompt","aria-hidden":"true",children:e}),h.jsxs("div",{className:"chat-input__input-wrapper",children:[h.jsx("textarea",{ref:a,className:"chat-input__textarea",value:l,onChange:v=>s(v.target.value),onKeyDown:d,placeholder:n,disabled:r,rows:1,"aria-label":"Chat input"}),h.jsx("span",{className:"chat-input__cursor","aria-hidden":"true",children:"█"})]})]})},If=({messages:t,onSend:e,isStreaming:n=!1,inputPrompt:r,userPrefix:i,assistantPrefix:o,placeholder:l,disabled:s=!1,className:a="",...d})=>{const u=["chat-container",a].filter(Boolean).join(" ");return h.jsxs("div",{className:u,...d,children:[h.jsx(Yl,{className:"chat-container__history",messages:t,isStreaming:n,userPrefix:i,assistantPrefix:o}),h.jsx(Xl,{className:"chat-container__input",onSend:e,prompt:r,placeholder:l,disabled:s})]})},Zl=[{label:"Impressum",href:"/impressum"},{label:"Datenschutz",href:"/datenschutz"}],Kf=({copyright:t,links:e,children:n,className:r,...i})=>{const o=e??Zl;return h.jsxs("footer",{className:j("font-dos text-sm py-4 px-2 text-center","eidotter-footer",r),...i,children:[h.jsx("div",{className:"h-px bg-dos-border-default mb-4",role:"separator"}),n&&h.jsx("div",{className:"mb-3",children:n}),o.length>0&&h.jsx("nav",{className:"flex justify-center items-center flex-wrap gap-2 mb-2","aria-label":"Footer links",children:o.map((l,s)=>h.jsxs(c.Fragment,{children:[s>0&&h.jsx("span",{className:"text-cga-brown select-none eidotter-footer__dot","aria-hidden":"true",children:"·"}),h.jsx("a",{className:"eidotter-footer__link text-cga-amber no-underline",href:l.href,...l.external?{target:"_blank",rel:"noopener noreferrer"}:{},children:l.label})]},l.href))}),t&&h.jsxs("p",{className:"text-cga-brown m-0",children:["© ",t]})]})},Mf={primary:"Info",gray:"Info",success:"Done",warning:"Warning",error:"Error"},Lf=({type:t="primary",title:e,children:n,actions:r,onClose:i,avatar:o,image:l,progress:s,progressLabel:a,duration:d,showIcon:u=!0,className:p})=>{const{isClosing:v,triggerClose:m,handleAnimationEnd:g}=yr("notification-exit",i);c.useEffect(()=>{if(d==null||!i)return;const x=setTimeout(()=>m(),d);return()=>clearTimeout(x)},[d,i,m]);const b=u&&!o,y=s!=null;return h.jsxs("div",{className:j("w-full max-w-[400px]","font-dos text-dos-sm","bg-dos-bg-primary border border-dos-border-default rounded-dos-base","eidotter-notification",`eidotter-notification--${t}`,v&&"eidotter-notification--closing",p),onAnimationEnd:g,role:t==="error"?"alert":"status","data-type":t,children:[l&&h.jsx("div",{className:"eidotter-notification__image",children:l}),h.jsxs("div",{className:"flex flex-row gap-4 p-4",children:[o&&h.jsx("div",{className:"eidotter-notification__avatar flex-shrink-0",children:o}),b&&h.jsx("div",{className:"eidotter-notification__icon",children:h.jsx(be,{name:Mf[t]||"Info",size:"S","aria-label":`${t} notification`})}),h.jsxs("div",{className:j("flex-1 flex flex-col gap-3 min-w-0",i&&!b&&!o&&"pr-8"),children:[(e||n)&&h.jsxs("div",{className:"flex flex-col gap-1",children:[e&&h.jsx("div",{className:"eidotter-notification__title font-dos font-dos-semibold leading-[140%]",children:e}),n&&h.jsx("div",{className:"eidotter-notification__text font-dos leading-[140%]",children:n})]}),y&&h.jsxs("div",{className:"flex flex-col gap-1",children:[h.jsx(Pl,{value:s,max:100,size:"sm",fullWidth:!0,showLabel:!1}),a&&h.jsx("div",{className:"eidotter-notification__text font-dos text-dos-xs",children:a})]}),r&&r.length>0&&h.jsx("div",{className:"flex flex-row gap-3",children:r.map((x,E)=>h.jsxs("button",{type:"button",className:"eidotter-notification__action",onClick:x.onClick,children:[x.label,x.icon]},E))})]}),i&&h.jsx(ur,{className:"eidotter-notification__close",onPress:m,"aria-label":"Close notification",children:h.jsx(be,{name:"Close",size:"S"})})]})]})},Ff={eidotter:{displayName:"eiDotter"},spacewar:{displayName:"Spacewar!"},rizomorf:{displayName:"rizomorf"},"pomodoke-calendar":{displayName:"PomoDoke Calendar"},keepcoin:{displayName:"KeepCoin"},steuerdash:{displayName:"Steuerdash"},sella:{displayName:"sella"},lifelines:{displayName:"Lifelines"},betamorf:{displayName:"betamorf"}},lt={Alert:{origin:"eidotter",consumers:["rizomorf","steuerdash"],since:"0.2.0",variants:{"type:info":{description:"Informational message",since:"0.2.0",usedBy:["rizomorf"]},"type:success":{description:"Success confirmation",since:"0.2.0",usedBy:["steuerdash"]},"type:warning":{description:"Warning notice",since:"0.2.0",usedBy:["rizomorf","steuerdash"]},"type:error":{description:"Error message",since:"0.2.0",usedBy:["steuerdash"]},"size:small":{description:"Compact alert for inline contexts",since:"0.2.0"},"size:large":{description:"Full-width alert with icon",since:"0.2.0"}},platforms:{react:{path:"src/components/Alert",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.8.0",type:"changed",description:"Design-craft animation polish with phosphor enter effects"},{version:"0.7.0",type:"changed",description:"Replace text-primary with cga-amber for theme consistency"},{version:"0.6.0",type:"changed",description:"Fix icon alignment and add prefers-contrast support"},{version:"0.4.0",type:"changed",description:"Add phosphor glow effects"},{version:"0.2.0",type:"added",description:"Initial Alert component with info/success/warning/error types"}]},Accordion:{origin:"eidotter",consumers:["rizomorf"]},AccordionFill:{origin:"eidotter",consumers:["rizomorf"]},Badge:{origin:"eidotter",consumers:["rizomorf","steuerdash"],since:"0.3.0",variants:{"variant:default":{description:"Neutral badge with muted styling",since:"0.3.0",usedBy:["rizomorf"]},"variant:success":{description:"Green success indicator",since:"0.3.0",usedBy:["steuerdash"]},"variant:warning":{description:"Amber warning indicator",since:"0.3.0",usedBy:["steuerdash"]},"variant:error":{description:"Red error/critical indicator",since:"0.3.0",usedBy:["steuerdash"]},"variant:info":{description:"Blue informational indicator",since:"0.3.0"},"variant:accent":{description:"Theme accent color badge",since:"0.3.0",usedBy:["rizomorf"]},"size:small":{description:"Compact inline badge",since:"0.3.0"},"size:medium":{description:"Standard badge size",since:"0.3.0"}},platforms:{react:{path:"src/components/Badge",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.8.0",type:"changed",description:"Design-craft animation polish with phosphor enter keyframes"},{version:"0.7.0",type:"changed",description:"Replace text-primary with cga-amber"},{version:"0.5.0",type:"changed",description:"Fix text vertical alignment for pixel fonts"},{version:"0.3.0",type:"added",description:"Initial Badge component for status indicators"}]},Breadcrumb:{origin:"rizomorf",consumers:["rizomorf"]},Button:{origin:"eidotter",consumers:["spacewar","rizomorf","pomodoke-calendar","steuerdash"],since:"0.2.0",variants:{"variant:primary":{description:"Primary CTA with amber background",since:"0.2.0",usedBy:["spacewar","rizomorf","pomodoke-calendar","steuerdash"]},"variant:secondary":{description:"Secondary action with border only",since:"0.2.0",usedBy:["rizomorf","steuerdash"]},"variant:ghost":{description:"Minimal button with hover reveal",since:"0.2.0",usedBy:["rizomorf"]},"variant:link":{description:"Inline link-style button",since:"0.2.0",usedBy:["rizomorf"]},"size:small":{description:"Compact 1.5rem min-height",since:"0.2.0"},"size:medium":{description:"Standard 2rem min-height",since:"0.2.0"},"size:large":{description:"Prominent 2.5rem min-height",since:"0.2.0"}},platforms:{react:{path:"src/components/Button",status:"canonical"},swiftui:{path:"platforms/swiftui/Sources/EiDotterUI/DOSButton.swift",status:"planned",note:"POC with primary variant only — not yet production-ready"},spritekit:{status:"token-only",note:"Spacewar uses tokens only, no UIKit/SwiftUI button"}},changelog:[{version:"0.11.0",type:"changed",description:"Convert font-size to rem tokens for WCAG SC 1.4.4"},{version:"0.8.0",type:"changed",description:"Design-craft animation polish across all variants"},{version:"0.7.0",type:"changed",description:"Increase font size and weight for readability"},{version:"0.6.0",type:"changed",description:"Add phosphor warmup/energize keyframes to all variants"},{version:"0.5.0",type:"changed",description:"Fix secondary label visibility in pressed state"},{version:"0.4.0",type:"changed",description:"Add CRT phosphor interaction states for primary variant"},{version:"0.2.0",type:"added",description:"Initial Button with primary/secondary/ghost/link variants"}]},Card:{origin:"eidotter",consumers:["rizomorf","steuerdash"],since:"0.3.0",variants:{"variant:default":{description:"Standard card with subtle border",since:"0.3.0",usedBy:["rizomorf","steuerdash"]},"variant:elevated":{description:"Raised card with drop shadow",since:"0.3.0",usedBy:["steuerdash"]},"variant:bordered":{description:"Strong border emphasis",since:"0.3.0"},"variant:glow":{description:"Phosphor glow border effect",since:"0.4.0",usedBy:["rizomorf"]},"variant:interactive":{description:"Hover-reactive card for clickable surfaces",since:"0.4.0",usedBy:["rizomorf"]},"variant:minimal":{description:"Borderless content container",since:"0.4.0"},"variant:callout":{description:"Highlighted callout with accent border",since:"0.4.0"}},platforms:{react:{path:"src/components/Card",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.11.0",type:"changed",description:"Convert font-size to rem tokens for WCAG SC 1.4.4"},{version:"0.8.0",type:"changed",description:"Design-craft animation polish with phosphor enter effects"},{version:"0.7.0",type:"changed",description:"Replace text-primary with cga-amber"},{version:"0.4.0",type:"added",description:"Add glow, interactive, minimal, callout variants"},{version:"0.4.0",type:"changed",description:"Add phosphor glow effects and amber dim header background"},{version:"0.3.0",type:"added",description:"Initial Card with default/elevated/bordered variants"}]},Checkbox:{origin:"eidotter",consumers:["steuerdash"]},CommandPrompt:{origin:"eidotter",consumers:["rizomorf"]},Icon:{origin:"eidotter",consumers:["rizomorf"]},Input:{origin:"eidotter",consumers:["steuerdash"]},Modal:{origin:"eidotter",consumers:["pomodoke-calendar"]},Progress:{origin:"eidotter",consumers:["steuerdash"],since:"0.3.0"},RetroEffects:{origin:"spacewar",consumers:["spacewar","rizomorf"],originNote:"CRT scanline/glow effects from Spacewar!"},Stat:{origin:"steuerdash",consumers:["steuerdash"],originNote:"Key-value display created for tax dashboard"},Switch:{origin:"eidotter",consumers:[]},FilterBar:{origin:"eidotter",consumers:["lifelines","rizomorf"],originNote:"Multi-select toggle group for faceted filtering"},Tag:{origin:"eidotter",consumers:["lifelines","rizomorf"],since:"0.7.0",originNote:"Interactive labels for tags, categories, and filter chips",variants:{"variant:default":{description:"Standard tag with subtle background",since:"0.7.0",usedBy:["rizomorf"]},"variant:outlined":{description:"Border-only tag",since:"0.7.0",usedBy:["lifelines"]},"variant:filled":{description:"Solid background tag",since:"0.7.0",usedBy:["rizomorf","lifelines"]},"size:small":{description:"Compact tag for dense layouts",since:"0.7.0"},"size:medium":{description:"Standard tag size",since:"0.7.0"}},platforms:{react:{path:"src/components/Tag",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.11.0",type:"changed",description:"Convert font-size to rem tokens for WCAG SC 1.4.4"},{version:"0.8.0",type:"changed",description:"Design-craft animation polish"},{version:"0.7.0",type:"added",description:"Initial Tag and TagGroup components"}]},Tabs:{origin:"eidotter",consumers:["steuerdash"]},Terminal:{origin:"eidotter",consumers:["rizomorf"]},TimelineNode:{origin:"lifelines",consumers:["lifelines","rizomorf"],originNote:"Timeline markers from Lifelines project"},InlineExpand:{origin:"rizomorf",consumers:["rizomorf"],originNote:"Inline disclosure widget for expanding text within prose"},Separator:{origin:"rizomorf",consumers:["rizomorf"],originNote:"Horizontal/vertical divider for content separation"},TimelineContainer:{origin:"lifelines",consumers:["lifelines"],originNote:"Multi-zoom timeline with year/month/day/hour views. Supports interactive, static, and feed modes."},ChatMessage:{origin:"eidotter",consumers:[],originNote:"Single chat message with role-based DOS styling and streaming cursor"},ChatHistory:{origin:"eidotter",consumers:[],originNote:'Scrollable message list with auto-scroll and role="log" accessibility'},ChatInput:{origin:"eidotter",consumers:[],originNote:"Multiline DOS-styled textarea with Enter-to-send"},ChatContainer:{origin:"eidotter",consumers:[],originNote:"Composes ChatHistory + ChatInput into a complete chat interface"},Footer:{origin:"eidotter",consumers:[],originNote:"DOS-themed footer with default legal links (Impressum + Datenschutz) for German compliance"}};function Af(t){return lt[t]}function Of(t){return Object.entries(lt).filter(([,e])=>e.origin===t).map(([e])=>e)}function Bf(t){return Object.entries(lt).filter(([,e])=>e.consumers.includes(t)).map(([e])=>e)}function Vf(t,e){const n=lt[t];return n!=null&&n.variants?Object.entries(n.variants).filter(([,r])=>{var i;return(i=r.usedBy)==null?void 0:i.includes(e)}).map(([r])=>r):[]}function zf(t){const e=lt[t];if(!(e!=null&&e.variants))return{};const n={};for(const[r,i]of Object.entries(e.variants))n[r]=i.usedBy??[];return n}const Hf="0.17.0";A.AccordionFill=Ou,A.Alert=Au,A.Badge=kt,A.Breadcrumb=Sl,A.Button=xr,A.Card=Bu,A.ChatContainer=If,A.ChatHistory=Yl,A.ChatInput=Xl,A.ChatMessage=ql,A.Checkbox=Vu,A.CommandPrompt=zu,A.DesktopNav=jl,A.FilterBar=Tf,A.Footer=Kf,A.Icon=be,A.InlineExpand=Nf,A.Input=Nl,A.MobileNav=Gl,A.Modal=yf,A.Nav=Sf,A.Notification=Lf,A.Progress=Pl,A.RetroEffects=Yu,A.Section=xl,A.Separator=Df,A.Stat=Pf,A.Switch=qu,A.Tabs=Gu,A.Tag=Pr,A.TagGroup=Tr,A.Terminal=Wu,A.TextScramble=_f,A.TimelineContainer=gf,A.TimelineNode=Je,A.ZOOM_LEVELS=Pt,A.componentRegistry=lt,A.defaultLegalLinks=Zl,A.getComponentMeta=Af,A.getComponentsByConsumer=Bf,A.getComponentsByOrigin=Of,A.getVariantConsumerMap=zf,A.getVariantsUsedBy=Vf,A.isSafeUrl=$r,A.projects=Ff,A.useTextScramble=Nr,A.version=Hf,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));