@commercetools/nimbus 0.0.5-rc5-experimental → 0.0.5-rc7
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.cjs +19 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +84 -1
- package/dist/index.js +12671 -3291
- package/dist/index.js.map +1 -1
- package/package.json +17 -17
package/dist/index.cjs
CHANGED
|
@@ -1,11 +1,27 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@chakra-ui/react"),C=require("@commercetools/nimbus-tokens"),a=require("react"),n=require("react/jsx-runtime"),b=require("react-aria"),R=require("react-aria-components"),ne=require("react-stately"),T=require("@commercetools/nimbus-icons");function at(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const k=at(a),Ee=i.defineRecipe({className:"avatar",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",overflow:"hidden",userSelect:"none",borderRadius:"full",flexShrink:0,fontWeight:"600",backgroundColor:"colorPalette.3",colorPalette:"primary",color:"colorPalette.11",focusVisibleRing:"outside","button&":{cursor:"button"},_disabled:{layerStyle:"disabled"}},variants:{size:{md:{width:1e3,height:1e3,textStyle:"sm"},xs:{width:800,height:800,textStyle:"xs"},"2xs":{width:600,height:600,textStyle:"xs"}}},defaultVariants:{size:"md"}}),{withContext:lt}=i.createRecipeContext({recipe:Ee}),st=lt("figure");function ct(e,t){return e.split("")[0].toUpperCase()+t.split("")[0].toUpperCase()}const De=a.forwardRef((e,t)=>{const{firstName:o,lastName:r,src:c,alt:l,...u}=e,s=`${o} ${r}`,p={"aria-label":`${s} avatar`,ref:t,...u};return n.jsx(st,{...p,children:c?n.jsx(i.Image,{src:c,alt:l||s}):ct(o,r)})});De.displayName="Avatar";const I=a.forwardRef((e,t)=>n.jsx(i.Box,{ref:t,...e}));I.displayName="Box";const B=i.defineRecipe({className:"nimbus-button",base:{borderRadius:"200",display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"500",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"600",minW:"600",fontSize:"300",fontWeight:"500",lineHeight:"400",px:"200",gap:"100",_icon:{width:"400",height:"400"}},xs:{h:"800",minW:"800",fontSize:"350",fontWeight:"500",lineHeight:"400",px:"300",gap:"100",_icon:{width:"500",height:"500"}},md:{h:"1000",minW:"1000",fontSize:"400",lineHeight:"500",px:"400",gap:"200",_icon:{width:"600",height:"600"}}},variant:{solid:{bg:"colorPalette.9",color:"colorPalette.contrast",_hover:{bg:"colorPalette.10"},_expanded:{bg:"colorPalette.10"}},subtle:{bg:"colorPalette.3",color:"colorPalette.11",_hover:{bg:"colorPalette.4"},_expanded:{bg:"colorPalette.4"}},outline:{borderWidth:"1px",borderColor:"colorPalette.7",color:"colorPalette.11",transitionProperty:"background-color, border-color, color",transitionDuration:"moderate",_hover:{bg:"colorPalette.3",borderColor:"colorPalette.8"},_expanded:{bg:"colorPalette.subtle"}},ghost:{color:"colorPalette.11",_hover:{bg:"colorPalette.4"},_expanded:{bg:"colorPalette.4"}},link:{color:"colorPalette.11",_hover:{textDecoration:"underline"}}},tone:{primary:{colorPalette:"primary"},critical:{colorPalette:"critical"},neutral:{colorPalette:"neutral"},info:{colorPalette:"info"}}},defaultVariants:{size:"md",variant:"subtle"}});function dt(e){var t=Object.create(null);return function(o){return t[o]===void 0&&(t[o]=e(o)),t[o]}}var ut=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,pt=dt(function(e){return ut.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const{withContext:ft}=i.createRecipeContext({recipe:B}),mt=ft("button",{defaultProps:{type:"button"},shouldForwardProp(e,t){const o=!(t!=null&&t.includes(e))&&!i.defaultSystem.isValidProperty(e);return pt(e)&&o&&!e.includes("onPress")}}),q=a.forwardRef((e,t)=>{const{as:o,asChild:r,children:c,...l}=e,u=a.useRef(null),s=b.useObjectRef(i.mergeRefs(u,t)),p=o||(r?"a":"button")||"button",{buttonProps:m}=b.useButton({...l,elementType:p},s);return n.jsx(mt,{...b.mergeProps(l,m,{as:o,asChild:r,ref:s}),children:c})});q.displayName="Button";const gt=a.forwardRef(function(t,o){const{children:r,portalled:c=!0,portalRef:l,backdrop:u=!0,...s}=t;return n.jsxs(i.Portal,{disabled:!c,container:l,children:[u&&n.jsx(i.Dialog.Backdrop,{}),n.jsx(i.Dialog.Positioner,{children:n.jsx(i.Dialog.Content,{ref:o,...s,asChild:!1,children:r})})]})}),ht=a.forwardRef(function(t,o){return n.jsx(i.Dialog.CloseTrigger,{position:"absolute",top:"2",insetEnd:"2",...t,asChild:!0,children:n.jsx(q,{size:"xs",ref:o,children:t.children})})}),bt=i.Dialog.Root,xt=i.Dialog.Footer,vt=i.Dialog.Header,yt=i.Dialog.Body,Ct=i.Dialog.Backdrop,wt=i.Dialog.Title,St=i.Dialog.Description,kt=i.Dialog.Trigger,Rt=i.Dialog.ActionTrigger,W=a.forwardRef(({children:e,...t},o)=>n.jsx(q,{px:0,py:0,ref:o,...t,children:e}));W.displayName="IconButton";const ze=i.defineRecipe({className:"nimbus-link",base:{display:"inline-flex",alignItems:"center",color:"colorPalette.11",borderRadius:"100",focusVisibleRing:"outside",bg:"transparent",outline:"none",cursor:"pointer",textDecoration:"underline",textUnderlineOffset:"3px",_hover:{textDecorationThickness:"12%"}},variants:{size:{xs:{fontSize:"300",lineHeight:"450"},sm:{fontSize:"350",lineHeight:"500"},md:{fontSize:"400",lineHeight:"600"}},fontColor:{primary:{color:"primary"},inherit:{color:"inherit"}}}}),{withContext:Pt}=i.createRecipeContext({recipe:ze}),Tt=Pt("a"),Ie=a.forwardRef((e,t)=>{const{as:o,asChild:r,children:c,...l}=e,u=a.useRef(null),s=b.useObjectRef(i.mergeRefs(u,t)),p=o||(r?"span":"a")||"a",{linkProps:m}=b.useLink({...l,elementType:p},s);return n.jsx(Tt,{...b.mergeProps(l,m,{as:o,asChild:r,ref:s}),children:c})});Ie.displayName="Link";const jt=e=>n.jsx(i.List.Root,{...e}),At=e=>n.jsx(i.List.Item,{...e}),He=a.forwardRef((e,t)=>n.jsx(i.SimpleGrid,{ref:t,...e}));He.displayName="SimpleGrid";const Et=Object.assign(He,{Item:i.GridItem}),Dt=e=>n.jsx(i.Table.Root,{...e}),zt=e=>n.jsx(i.Table.ColumnGroup,{...e}),It=e=>n.jsx(i.Table.Column,{...e}),Ht=e=>n.jsx(i.Table.Header,{...e}),Nt=e=>n.jsx(i.Table.Footer,{...e}),Lt=e=>n.jsx(i.Table.Row,{...e}),Ft=e=>n.jsx(i.Table.Cell,{...e}),Bt=e=>n.jsx(i.Table.Body,{...e}),Ot=e=>n.jsx(i.Table.ColumnHeader,{...e}),Ne=a.forwardRef((e,t)=>n.jsx(i.Text,{ref:t,...e}));Ne.displayName="Text";const Le=i.defineRecipe({className:"nimbus-tooltip",base:{color:"white",textStyle:"xs",fontWeight:"400",background:"slate.12",display:"inline-flex",alignItems:"center",borderRadius:"100",paddingX:"300",paddingY:"100",margin:"100",maxW:"6400",boxShadow:"1"}}),{withContext:_t}=i.createRecipeContext({recipe:Le}),Wt=_t("div"),Fe=a.forwardRef(function({children:t,placement:o="bottom",...r},c){return n.jsx(Wt,{ref:c,asChild:!0,...r,children:n.jsx(R.Tooltip,{placement:o,...r,children:t})})});Fe.displayName="Tooltip";const Be=R.TooltipTrigger;Be.displayName="TooltipTrigger";const Oe=a.forwardRef(function(t,o){const r=a.useRef(null),c=b.useObjectRef(i.mergeRefs(r,o)),{focusableProps:l}=b.useFocusable(t,c);if(a.isValidElement(t.children))return a.cloneElement(t.children,b.mergeProps(l,t.children.props,{ref:c}))});Oe.displayName="MakeElementFocusable";var Vt=(e,t,o,r,c,l,u,s)=>{let p=document.documentElement,m=["light","dark"];function g(d){(Array.isArray(e)?e:[e]).forEach(x=>{let w=x==="class",P=w&&l?c.map(S=>l[S]||S):c;w?(p.classList.remove(...P),p.classList.add(l&&l[d]?l[d]:d)):p.setAttribute(x,d)}),y(d)}function y(d){s&&m.includes(d)&&(p.style.colorScheme=d)}function f(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)g(r);else try{let d=localStorage.getItem(t)||o,x=u&&d==="system"?f():d;g(x)}catch{}},we=["light","dark"],_e="(prefers-color-scheme: dark)",Mt=typeof window>"u",ie=k.createContext(void 0),Gt={setTheme:e=>{},themes:[]},$t=()=>{var e;return(e=k.useContext(ie))!=null?e:Gt},Kt=e=>k.useContext(ie)?k.createElement(k.Fragment,null,e.children):k.createElement(qt,{...e}),Ut=["light","dark"],qt=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:o=!0,enableColorScheme:r=!0,storageKey:c="theme",themes:l=Ut,defaultTheme:u=o?"system":"light",attribute:s="data-theme",value:p,children:m,nonce:g,scriptProps:y})=>{let[f,d]=k.useState(()=>Yt(c,u)),[x,w]=k.useState(()=>f==="system"?J():f),P=p?Object.values(p):l,S=k.useCallback(v=>{let h=v;if(!h)return;v==="system"&&o&&(h=J());let j=p?p[h]:h,_=t?Jt(g):null,A=document.documentElement,U=z=>{z==="class"?(A.classList.remove(...P),j&&A.classList.add(j)):z.startsWith("data-")&&(j?A.setAttribute(z,j):A.removeAttribute(z))};if(Array.isArray(s)?s.forEach(U):U(s),r){let z=we.includes(u)?u:null,F=we.includes(h)?h:z;A.style.colorScheme=F}_==null||_()},[g]),E=k.useCallback(v=>{let h=typeof v=="function"?v(f):v;d(h);try{localStorage.setItem(c,h)}catch{}},[f]),D=k.useCallback(v=>{let h=J(v);w(h),f==="system"&&o&&!e&&S("system")},[f,e]);k.useEffect(()=>{let v=window.matchMedia(_e);return v.addListener(D),D(v),()=>v.removeListener(D)},[D]),k.useEffect(()=>{let v=h=>{h.key===c&&(h.newValue?d(h.newValue):E(u))};return window.addEventListener("storage",v),()=>window.removeEventListener("storage",v)},[E]),k.useEffect(()=>{S(e??f)},[e,f]);let H=k.useMemo(()=>({theme:f,setTheme:E,forcedTheme:e,resolvedTheme:f==="system"?x:f,themes:o?[...l,"system"]:l,systemTheme:o?x:void 0}),[f,E,e,x,o,l]);return k.createElement(ie.Provider,{value:H},k.createElement(Xt,{forcedTheme:e,storageKey:c,attribute:s,enableSystem:o,enableColorScheme:r,defaultTheme:u,value:p,themes:l,nonce:g,scriptProps:y}),m)},Xt=k.memo(({forcedTheme:e,storageKey:t,attribute:o,enableSystem:r,enableColorScheme:c,defaultTheme:l,value:u,themes:s,nonce:p,scriptProps:m})=>{let g=JSON.stringify([o,t,l,e,s,u,r,c]).slice(1,-1);return k.createElement("script",{...m,suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(${Vt.toString()})(${g})`}})}),Yt=(e,t)=>{if(Mt)return;let o;try{o=localStorage.getItem(e)||void 0}catch{}return o||t},Jt=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},J=e=>(e||(e=window.matchMedia(_e)),e.matches?"dark":"light");function Zt(e){return n.jsx(Kt,{attribute:"class",disableTransitionOnChange:!0,...e})}function ae(){const{resolvedTheme:e,setTheme:t}=$t();return{colorMode:e,setColorMode:t,toggleColorMode:()=>{t(e==="light"?"dark":"light")}}}function Qt(e,t){const{colorMode:o}=ae();return o==="light"?e:t}function eo(){const{colorMode:e}=ae();return e==="light"?"Light Theme":"DarkTheme"}function to({children:e,...t}){return n.jsx(Zt,{enableSystem:!1,...t,children:n.jsx(n.Fragment,{children:e})})}function X(e){const t={},o={...e};return Object.keys(e).forEach(r=>{Object.prototype.hasOwnProperty.call(e,r)&&i.defaultSystem.isValidProperty(r)&&(t[r]=e[r],delete o[r])}),[t,o]}const oo=i.defineSlotRecipe({slots:["root","label","indicator"],className:"nimbus-checkbox",base:{root:{colorPalette:"primary",display:"inline-flex",gap:"200",alignItems:"center",verticalAlign:"top",minWidth:"600",minHeight:"600","&[data-disabled='true']":{layerStyle:"disabled"}},label:{flexShrink:0,userSelect:"none",color:"neutral.11","&[data-invalid='true']":{color:"critical.11"}},indicator:{position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",border:"solid-50",borderRadius:"50",focusRing:"outside",borderColor:"neutral.9",bg:"transparent",color:"neutral.11",_icon:{w:"350",h:"350"},"&:hover":{borderColor:"neutral.10"},"&[data-invalid='true']":{bg:"transparent",borderColor:"critical.9",color:"critical.11","&:hover":{borderColor:"critical.10"}},"&[data-selected='true'], &[data-indeterminate='true']":{bg:"colorPalette.9",borderColor:"colorPalette.9",color:"colorPalette.contrast","&:hover":{bg:"colorPalette.10",borderColor:"colorPalette.10"},"&[data-invalid='true']":{bg:"critical.9",borderColor:"critical.9",color:"critical.contrast","&:hover":{bg:"critical.10",borderColor:"critical.10"}}}}},variants:{size:{md:{label:{fontSize:"350",fontWeight:"400",lineHeight:"400"},indicator:{w:"400",h:"400",zIndex:1,_after:{position:"absolute",content:"''",width:"600",height:"600",zIndex:0}}}}},defaultVariants:{size:"md"}}),{withProvider:ro,withContext:We}=i.createSlotRecipeContext({key:"checkbox"}),no=ro("label","root"),io=We("span","label"),ao=We("span","indicator"),Ve=a.forwardRef((e,t)=>{const o=a.useRef(null),r=b.useObjectRef(i.mergeRefs(o,t)),c=i.useSlotRecipe({key:"checkbox"}),[l]=c.splitVariantProps(e),[u,s]=X(e),p=ne.useToggleState(e),{inputProps:m}=b.useCheckbox(s,p,r),{isFocused:g,focusProps:y}=b.useFocusRing(),f=p.isSelected&&!e.isIndeterminate,d=e.isIndeterminate,x={"data-selected":f,"data-indeterminate":d,"data-invalid":e.isInvalid,"data-disabled":e.isDisabled,"data-focus":g||void 0};return n.jsxs(no,{"data-slot":"root",...l,...x,...u,children:[n.jsxs(ao,{"data-slot":"indicator",...x,children:[f&&n.jsx(T.Check,{}),d&&n.jsx(T.Remove,{}),n.jsx(le,{as:"span",children:n.jsx("input",{...b.mergeProps(m,y),ref:r})})]}),e.children&&n.jsx(io,{"data-slot":"label",...x,children:e.children})]})});Ve.displayName="Checkbox";const Y=a.forwardRef((e,t)=>n.jsx(i.Stack,{ref:t,...e}));Y.displayName="Stack";const le=e=>{const{as:t="div",...o}=e;return n.jsx(b.VisuallyHidden,{elementType:t,...o})};le.displayName="VisuallyHidden";const se=i.defineRecipe({className:"nimbus-text-input",base:{display:"block",borderRadius:"200",colorPalette:"neutral",focusVisibleRing:"outside",bg:"transparent",outline:"none",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)",_placeholder:{opacity:.5,color:"currentColor"},_disabled:{layerStyle:"disabled"},"&[data-invalid='true']":{"--border-color":"colors.critical.7",color:"critical.11"}},variants:{size:{sm:{h:800,textStyle:"sm",px:300},md:{h:1e3,textStyle:"md",px:400}},variant:{solid:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",backgroundColor:"neutral.1",_hover:{backgroundColor:"primary.2"}},ghost:{_hover:{backgroundColor:"primary.2"}}}},defaultVariants:{size:"md",variant:"solid"}}),{withContext:lo}=i.createRecipeContext({recipe:se}),so=lo("input"),Me=a.forwardRef((e,t)=>{const o=a.useRef(null),r=b.useObjectRef(i.mergeRefs(o,t)),c=i.useRecipe({recipe:se}),[l,u]=c.splitVariantProps(e),[s,p]=X(u);return n.jsx(R.TextField,{...p,children:n.jsx(so,{ref:r,...l,...s,asChild:!0,children:n.jsx(R.Input,{})})})});Me.displayName="TextInput";const Ge=a.forwardRef((e,t)=>n.jsx(i.Grid,{ref:t,...e}));Ge.displayName="Grid";const co=Object.assign(Ge,{Item:i.GridItem}),$e=i.defineSlotRecipe({slots:["root","trigger","triggerLabel","options","optionGroup","option"],className:"nimbus-select",base:{root:{colorPalette:"primary",display:"inline-block",position:"relative",maxWidth:"100%",borderRadius:"200","&[data-disabled]":{layerStyle:"disabled",pointerEvents:"none"}},trigger:{cursor:"button",display:"inline-flex",focusRing:"outside",alignItems:"flex-start",borderRadius:"200",color:"neutral.12",width:"100%",userSelect:"none",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)","& span":{display:"inline-block",my:"auto"},'& [slot="description"]':{display:"none"},"[data-invalid] &":{"--border-width":"sizes.50","--border-color":"colors.critical.7"}},triggerLabel:{"--button-safespace":"sizes.1400",color:"neutral.12",textAlign:"left",marginRight:"var(--button-safespace)",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","&[data-placeholder]":{opacity:.5},"[data-invalid] &":{color:"critical.11"}},options:{"--scrollbar-color":"colors.neutral.8","--scrollbar-bg":"colors.neutral.3",bg:"bg",borderRadius:"200",boxShadow:"5",minWidth:"var(--trigger-width)",p:"200",focusRing:"outside",maxHeight:"40svh",overflowY:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--scrollbar-color) var(--scrollbar-bg)"},optionGroup:{textStyle:"xs",color:"neutral.11",fontWeight:"600",lineHeight:"350",letterSpacing:"25",textTransform:"uppercase",p:"200",borderBottom:"solid-25",borderColor:"neutral.6",mx:"-200",mt:"200",mb:"300"},option:{focusRing:"outside",cursor:"menuitem",color:"neutral.12",textStyle:"sm",p:"200",borderRadius:"200",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",'&[aria-selected="true"], &[data-focused="true"]':{bg:"primary.4"},'& [slot="label"]':{display:"block"},'& [slot="description"]':{display:"block",color:"neutral.11",textStyle:"xs"},'&[data-disabled="true"]':{layerStyle:"disabled"}}},variants:{size:{sm:{root:{},trigger:{h:"800",px:"400",textStyle:"sm"}},md:{root:{},trigger:{h:"1000",px:"400",textStyle:"md"}}},variant:{outline:{root:{bg:"bg","&:hover":{bg:"primary.2"}},trigger:{"--border-width":"sizes.25","--border-color":"colors.neutral.7"}},ghost:{root:{bg:"transparent","&:hover":{bg:"primaryAlpha.2"}},trigger:{"--border-width":"sizes.25","--border-color":"transparent"}}}},defaultVariants:{size:"md",variant:"outline"}}),{withProvider:uo,withContext:V}=i.createSlotRecipeContext({key:"select"}),po=uo("div","root"),fo=V("button","trigger"),mo=V("span","triggerLabel"),go=V("div","options"),ho=V("div","option"),bo=V("div","optionGroup"),Ke=()=>{const e=a.useContext(R.SelectStateContext);if(!(e!=null&&e.selectedKey))return null;const t=()=>{e==null||e.setSelectedKey(null)};return n.jsx(W,{pointerEvents:"all",size:"2xs",variant:"ghost",tone:"primary","aria-label":"Clear Selection",onPress:t,children:n.jsx(T.Close,{})})};Ke.displayName="Select.ClearButton";const ce=a.forwardRef(({children:e,isLoading:t,isDisabled:o,...r},c)=>{const l=i.useSlotRecipe({recipe:$e}),[u,s]=l.splitVariantProps(r),[p,m]=X(s),g={...m,isDisabled:t||o};return n.jsx(po,{asChild:!0,ref:c,...u,...p,children:n.jsxs(R.Select,{...g,children:[n.jsxs(i.chakra.div,{position:"relative",children:[n.jsx(fo,{zIndex:0,asChild:!0,children:n.jsx(R.Button,{children:n.jsx(mo,{asChild:!0,children:n.jsx(R.SelectValue,{})})})}),n.jsxs(i.Flex,{position:"absolute",top:"0",bottom:"0",zIndex:1,right:"400",pointerEvents:"none",children:[n.jsx(i.Flex,{width:"600",my:"auto",children:n.jsx(Ke,{})}),n.jsx(i.Flex,{my:"auto",w:"600",h:"600",pointerEvents:"none",children:n.jsx(I,{color:"neutral.9",asChild:!0,m:"auto",w:"400",h:"400",children:t?n.jsx(I,{asChild:!0,animation:"spin",animationDuration:"slowest",children:n.jsx(T.Loop,{})}):n.jsx(T.KeyboardArrowDown,{})})})]})]}),n.jsx(R.Popover,{children:e})]})})});ce.displayName="Select.Root";const de=e=>a.forwardRef(e),ue=de((e,t)=>{const[o,r]=X(e);return n.jsx(go,{asChild:!0,...o,children:n.jsx(R.ListBox,{ref:t,...r})})});ue.displayName="Select.Options";const pe=de((e,t)=>n.jsx(ho,{asChild:!0,ref:t,children:n.jsx(R.ListBoxItem,{...e})}));pe.displayName="Select.Option";const fe=de(({label:e,items:t,children:o,...r},c)=>{if(t&&typeof o!="function")throw new Error('SelectOptionGroup: When "items" is provided, "children" must be a function');return n.jsxs(R.ListBoxSection,{ref:c,...r,children:[n.jsx(bo,{asChild:!0,children:n.jsx(R.Header,{children:e})}),t?n.jsx(R.Collection,{items:t,children:l=>typeof o=="function"?o(l):null}):o]})});fe.displayName="Select.OptionGroup";const xo={Root:ce,Options:ue,Option:pe,OptionGroup:fe},{withProvider:vo,withContext:M}=i.createSlotRecipeContext({key:"accordion"}),yo=vo("div","root"),Co=M("div","disclosure"),wo=M("button","trigger"),So=M("div","panel"),ko=M("div","accordionTitle"),oe=M("div","headerContentRight"),me=a.createContext(null),Ue=a.createContext(null),Ro=a.forwardRef(({children:e,onExpandedChange:t,...o},r)=>{const c=ne.useDisclosureGroupState({...o,onExpandedChange:s=>{t==null||t(s.size>0)}}),l=i.useSlotRecipe({key:"accordion"}),[u]=l.splitVariantProps(o);return n.jsx(Ue.Provider,{value:c,children:n.jsx(yo,{"data-slot":"root",ref:r,...u,children:e})})}),Po=a.forwardRef(({children:e},t)=>{const o=a.useContext(me);if(!o)throw new Error("Accordion.Header must be used within Accordion.Item");const r=a.Children.toArray(e).reduce((c,l)=>(a.isValidElement(l)&&l.type===oe?c.rightContent.push(l):c.main.push(l),c),{main:[],rightContent:[]});return n.jsxs(i.Flex,{justifyContent:"space-between",alignItems:"center",borderBottom:"solid-25",borderColor:"neutral.4",children:[n.jsxs(wo,{ref:i.mergeRefs(o.triggerRef,t),...o.buttonProps,"data-slot":"trigger",outline:o.isFocusVisible?void 0:"none",children:[n.jsx(T.KeyboardArrowRight,{}),n.jsx(ko,{"data-slot":"accordionTitle",children:r.main})]}),r.rightContent.length>0&&n.jsx(oe,{"data-slot":"headerContentRight",children:r.rightContent})]})}),To=a.forwardRef((e,t)=>{const o=a.useContext(me),r=b.useObjectRef(i.mergeRefs(o==null?void 0:o.panelRef,t));return n.jsx(So,{ref:r,...i.mergeProps({...o==null?void 0:o.panelProps,...e}),"data-slot":"panel",children:e.children})}),jo=a.forwardRef(({children:e,id:t,isDisabled:o,isExpanded:r,onExpandedChange:c,value:l},u)=>{const s=b.useId(),m=l||(t||s),g=a.useContext(Ue),y=g?g.expandedKeys.has(m):r,f=ne.useDisclosureState({isExpanded:y,onExpandedChange:h=>{g&&g.toggleKey(m),c==null||c(h)}}),d=a.useRef(null),x=a.useRef(null),w=o||(g==null?void 0:g.isDisabled)||!1,{buttonProps:P,panelProps:S}=b.useDisclosure({isExpanded:f.isExpanded,isDisabled:w},f,d),{buttonProps:E}=b.useButton(P,x),{focusProps:D,isFocusVisible:H}=b.useFocusRing(),v={isExpanded:f.isExpanded,triggerRef:x,panelRef:d,buttonProps:b.mergeProps(E,D),panelProps:S,isFocusVisible:H};return n.jsx(me.Provider,{value:v,children:n.jsx(Co,{"data-slot":"disclosure","data-value":m,"data-expanded":f.isExpanded,ref:u,children:e})})}),Ao={Root:Ro,Item:jo,Header:Po,Content:To,HeaderRightContent:oe},Eo=i.defineSlotRecipe({slots:["root","disclosure","trigger","panel","accordionTitle","headerContentRight"],className:"nimbus-accordion",base:{root:{width:"100%"},disclosure:{width:"100%"},trigger:{fontSize:"var(--font-size)",focusVisibleRing:"outside",minHeight:"1200",bg:"none",flexGrow:1,display:"flex",alignItems:"center",gap:"8px",width:"auto","& svg":{width:"var(--width)",height:"var(--height)",rotate:"0deg",transition:"rotate 200ms"},'&[aria-expanded="true"] svg':{rotate:"90deg"},"&[disabled]":{layerStyle:"disabled"}},panel:{paddingTop:"var(--padding-top)",paddingBottom:"var(--padding-bottom)",paddingLeft:"var(--padding-left)",'&[aria-hidden="true"]':{display:"none"}},accordionTitle:{fontWeight:"700"}},variants:{size:{md:{trigger:{"--font-size":"fontSizes.500","& svg":{"--width":"sizes.600","--height":"sizes.600"}},panel:{"--padding-top":"spacing.600","--padding-bottom":"spacing.800","--padding-left":"spacing.800"}},sm:{trigger:{"--font-size":"fontSizes.400","& svg":{"--width":"sizes.500","--height":"sizes.500"}},panel:{"--padding-top":"spacing.400","--padding-bottom":"spacing.600","--padding-left":"spacing.700"}}}},defaultVariants:{size:"md"}}),Do=i.defineRecipe({className:"nimbus-loading-spinner",base:{display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{overflow:"visible",transform:"scale(calc(1 - 2/12))"},"& svg [data-svg-path='spinner-pointer']":{stroke:"colorPalette.10",animationName:"spin",animationDuration:"0.5s",animationTimingFunction:"linear",animationIterationCount:"infinite",transformOrigin:"center center 0"},"& svg [data-svg-path='spinner-circle']":{stroke:"colorPalette.5"}},variants:{size:{"2xs":{width:"350",height:"350"},xs:{width:"500",height:"500"},sm:{width:"600",height:"600"},md:{width:"800",height:"800"},lg:{width:"1000",height:"1000"}},tone:{primary:{colorPalette:"ctvioletAlpha"},white:{colorPalette:"whiteAlpha"}}},defaultVariants:{size:"sm",tone:"primary"}}),{withContext:zo}=i.createRecipeContext({recipe:Do}),Io=zo("div"),Ho="M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.7079 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 10.6211 1.77159 9.25574 2.29927 7.98182C2.82694 6.7079 3.60037 5.55039 4.57538 4.57538C5.5504 3.60036 6.70791 2.82694 7.98183 2.29926C9.25575 1.77159 10.6211 1.5 12 1.5C13.3789 1.5 14.7443 1.77159 16.0182 2.29927C17.2921 2.82694 18.4496 3.60037 19.4246 4.57538C20.3996 5.5504 21.1731 6.70791 21.7007 7.98183C22.2284 9.25575 22.5 10.6211 22.5 12L22.5 12Z",No="M12 1.5C13.3789 1.5 14.7443 1.77159 16.0182 2.29927C17.2921 2.82694 18.4496 3.60036 19.4246 4.57538C20.3996 5.55039 21.1731 6.70791 21.7007 7.98183C22.2284 9.25574 22.5 10.6211 22.5 12",qe=a.forwardRef(({"aria-label":e="Loading data",...t},o)=>{const{progressBarProps:r}=b.useProgressBar({isIndeterminate:!0,"aria-label":e,...t});return n.jsx(Io,{ref:o,...b.mergeProps(t,r),"aria-label":e,children:n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",children:[n.jsx("path",{d:Ho,"data-svg-path":"spinner-circle",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),n.jsx("path",{d:No,"data-svg-path":"spinner-pointer",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})})});qe.displayName="LoadingSpinner";const Lo=i.defineSlotRecipe({slots:["root","header","content"],className:"nimbus-card",base:{root:{colorPalette:"slate",display:"inline-flex",alignItems:"flex-start",borderRadius:"300",focusVisibleRing:"outside"}},variants:{cardPadding:{sm:{root:{padding:"200"}},md:{root:{padding:"400"}},lg:{root:{padding:"600"}}},borderStyle:{none:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.3"}}},elevation:{none:{},elevated:{root:{shadow:"1"}}},backgroundStyle:{default:{root:{backgroundColor:"colorPalette.contrast"}},muted:{root:{backgroundColor:"colorPalette.2"}}}}}),{withProvider:Fo,withContext:Xe}=i.createSlotRecipeContext({recipe:Lo}),Bo=Fo("div","root"),Oo=Xe("div","header"),_o=Xe("div","content"),ge=a.createContext(void 0),he=a.forwardRef(({children:e,...t},o)=>{const{isFocused:r,isFocusVisible:c,focusProps:l}=b.useFocusRing(),[u,s]=a.useState(null),[p,m]=a.useState(null),g=a.useMemo(()=>({setHeader:s,setContent:m}),[s,m]);return n.jsx(ge.Provider,{value:g,children:n.jsxs(Bo,{ref:o,...b.mergeProps(t,l),"data-focus":r||void 0,"data-focus-visible":c||void 0,tabIndex:0,children:[n.jsxs(Y,{direction:"column",gap:"200",children:[u,p]}),e]})})});he.displayName="Card.Root";const be=({children:e,...t})=>{const o=a.useContext(ge);return a.useEffect(()=>{if(o){const r=n.jsx(Oo,{...t,children:e});return o.setHeader(r),()=>o.setHeader(null)}},[e,t]),null};be.displayName="Card.Header";const xe=({children:e,...t})=>{const o=a.useContext(ge);return a.useEffect(()=>{if(o){const r=n.jsx(_o,{...t,children:e});return o.setContent(r),()=>o.setContent(null)}},[e,t]),null};xe.displayName="Card.Content";const Wo={Root:he,Header:be,Content:xe},Vo=i.defineRecipe({className:"nimbus-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"200",justifyContent:"center",whiteSpace:"nowrap",verticalAlign:"middle",py:"25",fontWeight:"500",backgroundColor:"colorPalette.3",color:"colorPalette.11",w:"auto",userSelect:"none",_icon:{flexShrink:"0"}},variants:{size:{"2xs":{fontSize:"300",gap:"100",h:"600",lineHeight:"350",px:"200",_icon:{width:"400",height:"400"}},xs:{fontSize:"350",gap:"100",h:"800",lineHeight:"400",px:"300",_icon:{width:"500",height:"500"}},md:{fontSize:"400",gap:"200",h:"1000",lineHeight:"500",px:"400",_icon:{width:"600",height:"600"}}}},defaultVariants:{size:"md"}}),{withContext:Mo}=i.createRecipeContext({recipe:Vo}),Go=Mo("span"),$o=a.forwardRef((e,t)=>{const{as:o,asChild:r,children:c,...l}=e,u=a.useRef(null),s=b.useObjectRef(i.mergeRefs(u,t)),p=o||"span";return n.jsx(Go,{as:p,...b.mergeProps(l,{ref:s}),children:c})}),Ko=i.defineSlotRecipe({slots:["root","title","description","icon","actions","dismissButton"],className:"nimbus-alert",base:{root:{display:"inline-flex",flexDirection:"row",gap:"200",width:"100%"},icon:{marginTop:"50","& svg":{width:"500",height:"500",color:"colorPalette.11"}},title:{color:"colorPalette.11"},description:{color:"colorPalette.11"}},variants:{tone:{critical:{root:{colorPalette:"critical"}},info:{root:{colorPalette:"info"}},warning:{root:{colorPalette:"amber"}},positive:{root:{colorPalette:"positive"}}},variant:{flat:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.5",backgroundColor:"colorPalette.2",padding:"200",borderRadius:"200"}}}}}),{withProvider:Uo,withContext:G}=i.createSlotRecipeContext({recipe:Ko}),qo=Uo("div","root"),Xo=G("div","title"),Yo=G("div","description"),Jo=G("div","icon"),Zo=G("div","actions"),Qo=G("div","dismissButton"),er=e=>{switch(e){case"critical":return n.jsx(T.ErrorOutline,{});case"info":return n.jsx(T.Info,{});case"warning":return n.jsx(T.WarningAmber,{});case"positive":return n.jsx(T.CheckCircleOutline,{});default:return null}},$=a.createContext(void 0),Ye=a.forwardRef(({children:e,...t},o)=>{const[r,c]=a.useState(null),[l,u]=a.useState(null),[s,p]=a.useState(null),[m,g]=a.useState(null),y=a.useMemo(()=>({setTitle:c,setDescription:u,setActions:p,setDismiss:g}),[c,u,p,g]);return n.jsx($.Provider,{value:y,children:n.jsxs(qo,{ref:o,...t,role:"alert",children:[n.jsx(Jo,{alignItems:"flex-start",children:er(t.tone)}),n.jsxs(Y,{flex:"1",gap:"200",children:[n.jsxs(I,{children:[r,l]}),s]}),m,e]})})});Ye.displayName="Alert.Root";const Je=({children:e,...t})=>{const o=a.useContext($);return a.useEffect(()=>{if(o){const r=n.jsx(Xo,{...t,fontWeight:"600",children:e});return o.setTitle(r),()=>o.setTitle(null)}},[e,t]),null};Je.displayName="Alert.Title";const Ze=({children:e,...t})=>{const o=a.useContext($);return a.useEffect(()=>{if(o){const r=n.jsx(Yo,{...t,children:e});return o.setDescription(r),()=>o.setDescription(null)}},[e,t]),null};Ze.displayName="Alert.Description";const Qe=({children:e,...t})=>{const o=a.useContext($);return a.useEffect(()=>{if(o){const r=n.jsx(Zo,{...t,children:e});return o.setActions(r),()=>o.setActions(null)}},[e,t]),null};Qe.displayName="Alert.Actions";const et=({children:e,...t})=>{const o=a.useContext($);return a.useEffect(()=>{if(o){const r=n.jsx(Qo,{children:n.jsx(W,{"aria-label":"Dismiss",...t,variant:"ghost",size:"2xs",children:n.jsx(T.Clear,{role:"img"})})});return o.setDismiss(r),()=>o.setDismiss(null)}},[e,t]),null};et.displayName="Alert.DismissButton";const tr={Root:Ye,Title:Je,Description:Ze,Actions:Qe,DismissButton:et};var Pe,Te,je,Ae;const or=i.defineSlotRecipe({slots:["root","button"],className:"nimbus-toggle-button-group",base:{root:{display:"inline-flex"},button:{...B.base,...(Pe=B.variants)==null?void 0:Pe.variant.outline,borderRadius:"0",borderRightWidth:"0","&:first-of-type":{borderLeftRadius:"200"},"&:last-of-type":{borderRightWidth:"1px",borderRightRadius:"200"},"&[data-selected=true]":(Te=B.variants)==null?void 0:Te.variant.solid}},variants:{size:{xs:{button:(je=B.variants)==null?void 0:je.size.xs},md:{button:(Ae=B.variants)==null?void 0:Ae.size.md}},tone:{primary:{button:{colorPalette:"primary"}},critical:{button:{colorPalette:"critical"}},neutral:{button:{colorPalette:"neutral"}}}},defaultVariants:{size:"md"}}),{withContext:rr,withProvider:nr}=i.createSlotRecipeContext({recipe:or}),ir=nr(R.ToggleButtonGroup,"root"),ar=rr(R.ToggleButton,"button"),ve=a.forwardRef(({children:e,...t},o)=>n.jsx(ir,{ref:o,...t,children:e}));ve.displayName="ToggleButtonGroup.Root";const ye=a.forwardRef(({children:e,...t},o)=>n.jsx(ar,{...t,ref:o,children:e}));ye.displayName="ToggleButtonGroup.Button";const lr={Root:ve,Button:ye},sr=`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("@chakra-ui/react"),U=require("@commercetools/nimbus-tokens"),a=require("react"),x=require("react/jsx-runtime"),Ue=require("react-dom"),oe=require("@commercetools/nimbus-icons");function fc(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const Z=fc(a),Jo=E.defineRecipe({className:"avatar",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",overflow:"hidden",userSelect:"none",borderRadius:"full",flexShrink:0,fontWeight:"600",backgroundColor:"colorPalette.3",colorPalette:"primary",color:"colorPalette.11",focusVisibleRing:"outside","button&":{cursor:"button"},_disabled:{layerStyle:"disabled"}},variants:{size:{md:{width:1e3,height:1e3,textStyle:"sm"},xs:{width:800,height:800,textStyle:"xs"},"2xs":{width:600,height:600,textStyle:"xs"}}},defaultVariants:{size:"md"}}),{withContext:pc}=E.createRecipeContext({recipe:Jo}),vc=pc("figure");function bc(t,e){return t.split("")[0].toUpperCase()+e.split("")[0].toUpperCase()}const Qo=a.forwardRef((t,e)=>{const{firstName:n,lastName:r,src:o,alt:l,...i}=t,s=`${n} ${r}`,u={"aria-label":`${s} avatar`,ref:e,...i};return x.jsx(vc,{...u,children:o?x.jsx(E.Image,{src:o,alt:l||s}):bc(n,r)})});Qo.displayName="Avatar";const ge=a.forwardRef((t,e)=>x.jsx(E.Box,{ref:e,...t}));ge.displayName="Box";const H=typeof document<"u"?a.useLayoutEffect:()=>{};function J(t){const e=a.useRef(null);return H(()=>{e.current=t},[t]),a.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function mc(t){let[e,n]=a.useState(t),r=a.useRef(null),o=J(()=>{if(!r.current)return;let i=r.current.next();if(i.done){r.current=null;return}e===i.value?o():n(i.value)});H(()=>{r.current&&o()});let l=J(i=>{r.current=i(e),o()});return[e,l]}const jt={prefix:String(Math.round(Math.random()*1e10)),current:0},el=a.createContext(jt),gc=a.createContext(!1);let hc=!!(typeof window<"u"&&window.document&&window.document.createElement),mn=new WeakMap;function yc(t=!1){let e=a.useContext(el),n=a.useRef(null);if(n.current===null&&!t){var r,o;let l=(o=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(l){let i=mn.get(l);i==null?mn.set(l,{id:e.current,state:l.memoizedState}):l.memoizedState!==i.state&&(e.current=i.id,mn.delete(l))}n.current=++e.current}return n.current}function $c(t){let e=a.useContext(el);e===jt&&!hc&&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=yc(!!t),r=e===jt&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function xc(t){let e=a.useId(),[n]=a.useState(xe()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${jt.prefix}`;return t||`${r}-${e}`}const Pc=typeof a.useId=="function"?xc:$c;function Cc(){return!1}function Sc(){return!0}function Ec(t){return()=>{}}function xe(){return typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore(Ec,Cc,Sc):a.useContext(gc)}let wc=!!(typeof window<"u"&&window.document&&window.document.createElement),ke=new Map;function Y(t){let[e,n]=a.useState(t),r=a.useRef(null),o=Pc(e),l=a.useCallback(i=>{r.current=i},[]);return wc&&(ke.has(o)&&!ke.get(o).includes(l)?ke.set(o,[...ke.get(o),l]):ke.set(o,[l])),H(()=>{let i=o;return()=>{ke.delete(i)}},[o]),a.useEffect(()=>{let i=r.current;i&&(r.current=null,n(i))}),o}function Dc(t,e){if(t===e)return t;let n=ke.get(t);if(n)return n.forEach(o=>o(e)),e;let r=ke.get(e);return r?(r.forEach(o=>o(t)),t):e}function et(t=[]){let e=Y(),[n,r]=mc(e),o=a.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return H(o,[e,o,...t]),n}function ye(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const V=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},se=t=>t&&"window"in t&&t.window===t?t:V(t).defaultView||window;function tl(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=tl(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function kc(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=tl(t))&&(r&&(r+=" "),r+=e);return r}function M(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let o in r){let l=e[o],i=r[o];typeof l=="function"&&typeof i=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?e[o]=ye(l,i):(o==="className"||o==="UNSAFE_className")&&typeof l=="string"&&typeof i=="string"?e[o]=kc(l,i):o==="id"&&l&&i?e.id=Dc(l,i):e[o]=i!==void 0?i:l}}return e}function nl(...t){return t.length===1&&t[0]?t[0]:e=>{for(let n of t)typeof n=="function"?n(e):n!=null&&(n.current=e)}}const Tc=new Set(["id"]),Bc=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Rc=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Ac=/^(data-.*)$/;function _(t,e={}){let{labelable:n,isLink:r,propNames:o}=e,l={};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(Tc.has(i)||n&&Bc.has(i)||r&&Rc.has(i)||o!=null&&o.has(i)||Ac.test(i))&&(l[i]=t[i]);return l}function he(t){if(Kc())t.focus({preventScroll:!0});else{let e=Fc(t);t.focus(),Lc(e)}}let Kt=null;function Kc(){if(Kt==null){Kt=!1;try{document.createElement("div").focus({get preventScroll(){return Kt=!0,!0}})}catch{}}return Kt}function Fc(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 Lc(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function Jt(t){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(n=>t.test(n.brand)))||t.test(window.navigator.userAgent)}function lr(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 Pe(t){let e=null;return()=>(e==null&&(e=t()),e)}const Fe=Pe(function(){return lr(/^Mac/i)}),Ic=Pe(function(){return lr(/^iPhone/i)}),rl=Pe(function(){return lr(/^iPad/i)||Fe()&&navigator.maxTouchPoints>1}),Qt=Pe(function(){return Ic()||rl()}),Mc=Pe(function(){return Fe()||Qt()}),ir=Pe(function(){return Jt(/AppleWebKit/i)&&!ol()}),ol=Pe(function(){return Jt(/Chrome/i)}),ar=Pe(function(){return Jt(/Android/i)}),zc=Pe(function(){return Jt(/Firefox/i)}),Nc=a.createContext({isNative:!0,open:jc,useHref:t=>t});function Ct(){return a.useContext(Nc)}function Oc(t,e){let n=t.getAttribute("target");return(!n||n==="_self")&&t.origin===location.origin&&!t.hasAttribute("download")&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function Ve(t,e,n=!0){var r,o;let{metaKey:l,ctrlKey:i,altKey:s,shiftKey:u}=e;zc()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(Fe()?l=!0:i=!0);let c=ir()&&Fe()&&!rl()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:l,ctrlKey:i,altKey:s,shiftKey:u}):new MouseEvent("click",{metaKey:l,ctrlKey:i,altKey:s,shiftKey:u,bubbles:!0,cancelable:!0});Ve.isOpening=n,he(t),t.dispatchEvent(c),Ve.isOpening=!1}Ve.isOpening=!1;function Hc(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 jc(t,e){Hc(t,n=>Ve(n,e))}function ll(t){let e=Ct();var n;const r=e.useHref((n=t.href)!==null&&n!==void 0?n:"");return{"data-href":t.href?r:void 0,"data-target":t.target,"data-rel":t.rel,"data-download":t.download,"data-ping":t.ping,"data-referrer-policy":t.referrerPolicy}}function il(t){let e=Ct();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 Ze=new Map,zn=new Set;function Jr(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{if(!t(r)||!r.target)return;let o=Ze.get(r.target);o||(o=new Set,Ze.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!t(r)||!r.target)return;let o=Ze.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),Ze.delete(r.target)),Ze.size===0)){for(let l of zn)l();zn.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Jr():document.addEventListener("DOMContentLoaded",Jr));function al(t){requestAnimationFrame(()=>{Ze.size===0?t():zn.add(t)})}function sl(){let t=a.useRef(new Map),e=a.useCallback((o,l,i,s)=>{let u=s!=null&&s.once?(...c)=>{t.current.delete(i),i(...c)}:i;t.current.set(i,{type:l,eventTarget:o,fn:u,options:s}),o.addEventListener(l,u,s)},[]),n=a.useCallback((o,l,i,s)=>{var u;let c=((u=t.current.get(i))===null||u===void 0?void 0:u.fn)||i;o.removeEventListener(l,c,s),t.current.delete(i)},[]),r=a.useCallback(()=>{t.current.forEach((o,l)=>{n(o.eventTarget,o.type,l,o.options)})},[n]);return a.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function ul(t,e){let{id:n,"aria-label":r,"aria-labelledby":o}=t;return n=Y(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&e&&(r=e),{id:n,"aria-label":r,"aria-labelledby":o}}function le(t){const e=a.useRef(null);return a.useMemo(()=>({get current(){return e.current},set current(n){e.current=n,typeof t=="function"?t(n):t&&(t.current=n)}}),[t])}function Vc(t,e){const n=a.useRef(!0),r=a.useRef(null);a.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),a.useEffect(()=>{n.current?n.current=!1:(!r.current||e.some((o,l)=>!Object.is(o,r[l])))&&t(),r.current=e},e)}function Qr(t,e){const n=a.useRef(!0),r=a.useRef(null);H(()=>(n.current=!0,()=>{n.current=!1}),[]),H(()=>{n.current?n.current=!1:(!r.current||e.some((o,l)=>!Object.is(o,r[l])))&&t(),r.current=e},e)}function Wc(){return typeof window.ResizeObserver<"u"}function Nn(t){const{ref:e,box:n,onResize:r}=t;a.useEffect(()=>{let o=e==null?void 0:e.current;if(o)if(Wc()){const l=new window.ResizeObserver(i=>{i.length&&r()});return l.observe(o,{box:n}),()=>{o&&l.unobserve(o)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,e,n])}function sr(t,e){H(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function gt(t,e){if(!t)return!1;let n=window.getComputedStyle(t),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&e&&(r=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),r}function Te(t,e){let n=t;for(gt(n,e)&&(n=n.parentElement);n&&!gt(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function _c(t,e){const n=[];for(;t&&t!==document.documentElement;)gt(t,e)&&n.push(t),t=t.parentElement;return n}let Uc=0;const gn=new Map;function ur(t){let[e,n]=a.useState();return H(()=>{if(!t)return;let r=gn.get(t);if(r)n(r.element.id);else{let o=`react-aria-description-${Uc++}`;n(o);let l=document.createElement("div");l.id=o,l.style.display="none",l.textContent=t,document.body.appendChild(l),r={refCount:0,element:l},gn.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),gn.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function pt(t,e,n,r){let o=J(n),l=n==null;a.useEffect(()=>{if(l||!t.current)return;let i=t.current;return i.addEventListener(e,o,r),()=>{i.removeEventListener(e,o,r)}},[t,e,r,l,o])}function cl(t,e){let n=eo(t,e,"left"),r=eo(t,e,"top"),o=e.offsetWidth,l=e.offsetHeight,i=t.scrollLeft,s=t.scrollTop,{borderTopWidth:u,borderLeftWidth:c,scrollPaddingTop:d,scrollPaddingRight:p,scrollPaddingBottom:v,scrollPaddingLeft:f}=getComputedStyle(t),b=i+parseInt(c,10),h=s+parseInt(u,10),y=b+t.clientWidth,$=h+t.clientHeight,S=parseInt(d,10)||0,w=parseInt(v,10)||0,R=parseInt(p,10)||0,D=parseInt(f,10)||0;n<=i+D?i=n-parseInt(c,10)-D:n+o>y-R&&(i+=n+o-y+R),r<=h+S?s=r-parseInt(u,10)-S:r+l>$-w&&(s+=r+l-$+w),t.scrollLeft=i,t.scrollTop=s}function eo(t,e,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;e.offsetParent&&(o+=e[r],e.offsetParent!==t);){if(e.offsetParent.contains(t)){o-=t[r];break}e=e.offsetParent}return o}function Be(t,e){if(t&&document.contains(t)){let i=document.scrollingElement||document.documentElement;if(window.getComputedStyle(i).overflow==="hidden"){let u=_c(t);for(let c of u)cl(c,t)}else{var n;let{left:u,top:c}=t.getBoundingClientRect();t==null||(n=t.scrollIntoView)===null||n===void 0||n.call(t,{block:"nearest"});let{left:d,top:p}=t.getBoundingClientRect();if(Math.abs(u-d)>1||Math.abs(c-p)>1){var r,o,l;e==null||(o=e.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(l=t.scrollIntoView)===null||l===void 0||l.call(t,{block:"nearest"})}}}}function On(t){return t.mozInputSource===0&&t.isTrusted?!0:ar()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function Gc(t){return!ar()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function cr(t,e,n){let r=a.useRef(e),o=J(()=>{n&&n(r.current)});a.useEffect(()=>{var l;let i=t==null||(l=t.current)===null||l===void 0?void 0:l.form;return i==null||i.addEventListener("reset",o),()=>{i==null||i.removeEventListener("reset",o)}},[t,o])}const qc="react-aria-clear-focus",Zc="react-aria-focus",dl="react-aria-update-activedescendant";function Ye(t){return Fe()?t.metaKey:t.ctrlKey}function fl(t,e=!0){let[n,r]=a.useState(!0),o=n&&e;return H(()=>{if(o&&t.current&&"getAnimations"in t.current)for(let l of t.current.getAnimations())l instanceof CSSTransition&&l.cancel()},[t,o]),vl(t,o,a.useCallback(()=>r(!1),[])),o}function pl(t,e){let[n,r]=a.useState(e?"open":"closed");switch(n){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let o=n==="exiting";return vl(t,o,a.useCallback(()=>{r(l=>l==="exiting"?"closed":l)},[])),o}function vl(t,e,n){H(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){n();return}let r=t.current.getAnimations();if(r.length===0){n();return}let o=!1;return Promise.all(r.map(l=>l.finished)).then(()=>{o||Ue.flushSync(()=>{n()})}).catch(()=>{}),()=>{o=!0}}},[t,e,n])}function Le(t,e,n){let[r,o]=a.useState(t||e),l=a.useRef(t!==void 0),i=t!==void 0;a.useEffect(()=>{let c=l.current;c!==i&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}.`),l.current=i},[i]);let s=i?t:r,u=a.useCallback((c,...d)=>{let p=(v,...f)=>{n&&(Object.is(s,v)||n(v,...f)),i||(s=v)};typeof c=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((f,...b)=>{let h=c(i?s:f,...b);return p(h,...d),i?f:h})):(i||o(c),p(c,...d))},[i,s,n]);return[s,u]}function Vt(t,e=-1/0,n=1/0){return Math.min(Math.max(t,e),n)}let Xe="default",Hn="",Ht=new WeakMap;function to(t){if(Qt()){if(Xe==="default"){const e=V(t);Hn=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}Xe="disabled"}else(t instanceof HTMLElement||t instanceof SVGElement)&&(Ht.set(t,t.style.userSelect),t.style.userSelect="none")}function Ft(t){if(Qt()){if(Xe!=="disabled")return;Xe="restoring",setTimeout(()=>{al(()=>{if(Xe==="restoring"){const e=V(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Hn||""),Hn="",Xe="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&Ht.has(t)){let e=Ht.get(t);t.style.userSelect==="none"&&(t.style.userSelect=e),t.getAttribute("style")===""&&t.removeAttribute("style"),Ht.delete(t)}}const ht=a.createContext({register:()=>{}});ht.displayName="PressResponderContext";function Yc(t,e){return e.get?e.get.call(t):e.value}function bl(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function Xc(t,e){var n=bl(t,e,"get");return Yc(t,n)}function Jc(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Qc(t,e,n){Jc(t,e),e.set(t,n)}function ed(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 no(t,e,n){var r=bl(t,e,"set");return ed(t,r,n),n}function td(t){let e=a.useContext(ht);if(e){let{register:n,...r}=e;t=M(r,t),n()}return sr(e,t.ref),t}var Lt=new WeakMap;class It{continuePropagation(){no(this,Lt,!1)}get shouldStopPropagation(){return Xc(this,Lt)}constructor(e,n,r,o){Qc(this,Lt,{writable:!0,value:void 0}),no(this,Lt,!0);var l;let i=(l=o==null?void 0:o.target)!==null&&l!==void 0?l:r.currentTarget;const s=i==null?void 0:i.getBoundingClientRect();let u,c=0,d,p=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,p=r.clientY),s&&(d!=null&&p!=null?(u=d-s.left,c=p-s.top):(u=s.width/2,c=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=u,this.y=c}}const ro=Symbol("linkClicked");function We(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:l,isDisabled:i,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:p,...v}=td(t),[f,b]=a.useState(!1),h=a.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:y,removeAllGlobalListeners:$}=sl(),S=J((m,B)=>{let K=h.current;if(i||K.didFirePressStart)return!1;let k=!0;if(K.isTriggeringEvent=!0,r){let I=new It("pressstart",B,m);r(I),k=I.shouldStopPropagation}return n&&n(!0),K.isTriggeringEvent=!1,K.didFirePressStart=!0,b(!0),k}),w=J((m,B,K=!0)=>{let k=h.current;if(!k.didFirePressStart)return!1;k.ignoreClickAfterPress=!0,k.didFirePressStart=!1,k.isTriggeringEvent=!0;let I=!0;if(o){let g=new It("pressend",B,m);o(g),I=g.shouldStopPropagation}if(n&&n(!1),b(!1),e&&K&&!i){let g=new It("press",B,m);e(g),I&&(I=g.shouldStopPropagation)}return k.isTriggeringEvent=!1,I}),R=J((m,B)=>{let K=h.current;if(i)return!1;if(l){K.isTriggeringEvent=!0;let k=new It("pressup",B,m);return l(k),K.isTriggeringEvent=!1,k.shouldStopPropagation}return!0}),D=J(m=>{let B=h.current;B.isPressed&&B.target&&(B.isOverTarget&&B.pointerType!=null&&w(ve(B.target,m),B.pointerType,!1),B.isPressed=!1,B.isOverTarget=!1,B.activePointerId=null,B.pointerType=null,$(),d||Ft(B.target))}),P=J(m=>{c&&D(m)}),L=a.useMemo(()=>{let m=h.current,B={onKeyDown(k){if(hn(k.nativeEvent,k.currentTarget)&&k.currentTarget.contains(k.target)){var I;lo(k.target,k.key)&&k.preventDefault();let g=!0;if(!m.isPressed&&!k.repeat){m.target=k.currentTarget,m.isPressed=!0,g=S(k,"keyboard");let C=k.currentTarget,F=A=>{hn(A,C)&&!A.repeat&&C.contains(A.target)&&m.target&&R(ve(m.target,A),"keyboard")};y(V(k.currentTarget),"keyup",ye(F,K),!0)}g&&k.stopPropagation(),k.metaKey&&Fe()&&((I=m.metaKeyEvents)===null||I===void 0||I.set(k.key,k.nativeEvent))}else k.key==="Meta"&&(m.metaKeyEvents=new Map)},onClick(k){if(!(k&&!k.currentTarget.contains(k.target))&&k&&k.button===0&&!m.isTriggeringEvent&&!Ve.isOpening){let I=!0;if(i&&k.preventDefault(),!m.ignoreClickAfterPress&&!m.ignoreEmulatedMouseEvents&&!m.isPressed&&(m.pointerType==="virtual"||On(k.nativeEvent))){!i&&!u&&he(k.currentTarget);let g=S(k,"virtual"),C=R(k,"virtual"),F=w(k,"virtual");I=g&&C&&F}m.ignoreEmulatedMouseEvents=!1,m.ignoreClickAfterPress=!1,I&&k.stopPropagation()}}},K=k=>{var I;if(m.isPressed&&m.target&&hn(k,m.target)){var g;lo(k.target,k.key)&&k.preventDefault();let F=k.target;w(ve(m.target,k),"keyboard",m.target.contains(F)),$(),k.key!=="Enter"&&dr(m.target)&&m.target.contains(F)&&!k[ro]&&(k[ro]=!0,Ve(m.target,k,!1)),m.isPressed=!1,(g=m.metaKeyEvents)===null||g===void 0||g.delete(k.key)}else if(k.key==="Meta"&&(!((I=m.metaKeyEvents)===null||I===void 0)&&I.size)){var C;let F=m.metaKeyEvents;m.metaKeyEvents=void 0;for(let A of F.values())(C=m.target)===null||C===void 0||C.dispatchEvent(new KeyboardEvent("keyup",A))}};if(typeof PointerEvent<"u"){B.onPointerDown=C=>{if(C.button!==0||!C.currentTarget.contains(C.target))return;if(Gc(C.nativeEvent)){m.pointerType="virtual";return}$n(C.currentTarget)&&C.preventDefault(),m.pointerType=C.pointerType;let F=!0;if(!m.isPressed){m.isPressed=!0,m.isOverTarget=!0,m.activePointerId=C.pointerId,m.target=C.currentTarget,!i&&!u&&he(C.currentTarget),d||to(m.target),F=S(C,m.pointerType);let A=C.target;"releasePointerCapture"in A&&A.releasePointerCapture(C.pointerId),y(V(C.currentTarget),"pointerup",k,!1),y(V(C.currentTarget),"pointercancel",g,!1)}F&&C.stopPropagation()},B.onMouseDown=C=>{C.currentTarget.contains(C.target)&&C.button===0&&($n(C.currentTarget)&&C.preventDefault(),C.stopPropagation())},B.onPointerUp=C=>{!C.currentTarget.contains(C.target)||m.pointerType==="virtual"||C.button===0&&R(C,m.pointerType||C.pointerType)},B.onPointerEnter=C=>{C.pointerId===m.activePointerId&&m.target&&!m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!0,S(ve(m.target,C),m.pointerType))},B.onPointerLeave=C=>{C.pointerId===m.activePointerId&&m.target&&m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!1,w(ve(m.target,C),m.pointerType,!1),P(C))};let k=C=>{C.pointerId===m.activePointerId&&m.isPressed&&C.button===0&&m.target&&(m.target.contains(C.target)&&m.pointerType!=null?w(ve(m.target,C),m.pointerType):m.isOverTarget&&m.pointerType!=null&&w(ve(m.target,C),m.pointerType,!1),m.isPressed=!1,m.isOverTarget=!1,m.activePointerId=null,m.pointerType=null,$(),d||Ft(m.target),"ontouchend"in m.target&&C.pointerType!=="mouse"&&y(m.target,"touchend",I,{once:!0}))},I=C=>{ml(C.currentTarget)&&C.preventDefault()},g=C=>{D(C)};B.onDragStart=C=>{C.currentTarget.contains(C.target)&&D(C)}}else{B.onMouseDown=g=>{if(g.button!==0||!g.currentTarget.contains(g.target))return;if($n(g.currentTarget)&&g.preventDefault(),m.ignoreEmulatedMouseEvents){g.stopPropagation();return}m.isPressed=!0,m.isOverTarget=!0,m.target=g.currentTarget,m.pointerType=On(g.nativeEvent)?"virtual":"mouse",!i&&!u&&he(g.currentTarget),S(g,m.pointerType)&&g.stopPropagation(),y(V(g.currentTarget),"mouseup",k,!1)},B.onMouseEnter=g=>{if(!g.currentTarget.contains(g.target))return;let C=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&m.pointerType!=null&&(m.isOverTarget=!0,C=S(g,m.pointerType)),C&&g.stopPropagation()},B.onMouseLeave=g=>{if(!g.currentTarget.contains(g.target))return;let C=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&m.pointerType!=null&&(m.isOverTarget=!1,C=w(g,m.pointerType,!1),P(g)),C&&g.stopPropagation()},B.onMouseUp=g=>{g.currentTarget.contains(g.target)&&!m.ignoreEmulatedMouseEvents&&g.button===0&&R(g,m.pointerType||"mouse")};let k=g=>{if(g.button===0){if(m.isPressed=!1,$(),m.ignoreEmulatedMouseEvents){m.ignoreEmulatedMouseEvents=!1;return}m.target&&yn(g,m.target)&&m.pointerType!=null?w(ve(m.target,g),m.pointerType):m.target&&m.isOverTarget&&m.pointerType!=null&&w(ve(m.target,g),m.pointerType,!1),m.isOverTarget=!1}};B.onTouchStart=g=>{if(!g.currentTarget.contains(g.target))return;let C=nd(g.nativeEvent);if(!C)return;m.activePointerId=C.identifier,m.ignoreEmulatedMouseEvents=!0,m.isOverTarget=!0,m.isPressed=!0,m.target=g.currentTarget,m.pointerType="touch",!i&&!u&&he(g.currentTarget),d||to(m.target),S(De(m.target,g),m.pointerType)&&g.stopPropagation(),y(se(g.currentTarget),"scroll",I,!0)},B.onTouchMove=g=>{if(!g.currentTarget.contains(g.target))return;if(!m.isPressed){g.stopPropagation();return}let C=oo(g.nativeEvent,m.activePointerId),F=!0;C&&yn(C,g.currentTarget)?!m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!0,F=S(De(m.target,g),m.pointerType)):m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!1,F=w(De(m.target,g),m.pointerType,!1),P(De(m.target,g))),F&&g.stopPropagation()},B.onTouchEnd=g=>{if(!g.currentTarget.contains(g.target))return;if(!m.isPressed){g.stopPropagation();return}let C=oo(g.nativeEvent,m.activePointerId),F=!0;C&&yn(C,g.currentTarget)&&m.pointerType!=null?(R(De(m.target,g),m.pointerType),F=w(De(m.target,g),m.pointerType)):m.isOverTarget&&m.pointerType!=null&&(F=w(De(m.target,g),m.pointerType,!1)),F&&g.stopPropagation(),m.isPressed=!1,m.activePointerId=null,m.isOverTarget=!1,m.ignoreEmulatedMouseEvents=!0,m.target&&!d&&Ft(m.target),$()},B.onTouchCancel=g=>{g.currentTarget.contains(g.target)&&(g.stopPropagation(),m.isPressed&&D(De(m.target,g)))};let I=g=>{m.isPressed&&g.target.contains(m.target)&&D({currentTarget:m.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};B.onDragStart=g=>{g.currentTarget.contains(g.target)&&D(g)}}return B},[y,i,u,$,d,D,P,w,S,R]);return a.useEffect(()=>()=>{var m;d||Ft((m=h.current.target)!==null&&m!==void 0?m:void 0)},[d]),{isPressed:s||f,pressProps:M(v,L)}}function dr(t){return t.tagName==="A"&&t.hasAttribute("href")}function hn(t,e){const{key:n,code:r}=t,o=e,l=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof se(o).HTMLInputElement&&!gl(o,n)||o instanceof se(o).HTMLTextAreaElement||o.isContentEditable)&&!((l==="link"||!l&&dr(o))&&n!=="Enter")}function nd(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function oo(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const o=n[r];if(o.identifier===e)return o}return null}function De(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 ve(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}}function rd(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 od(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function yn(t,e){let n=e.getBoundingClientRect(),r=rd(t);return od(n,r)}function $n(t){return!(t instanceof HTMLElement)||!t.hasAttribute("draggable")}function ml(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!dr(t)}function lo(t,e){return t instanceof HTMLInputElement?!gl(t,e):ml(t)}const ld=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function gl(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":ld.has(t.type)}const id=a.forwardRef(({children:t,...e},n)=>{let r=a.useRef(!1),o=a.useContext(ht);n=le(n||(o==null?void 0:o.ref));let l=M(o||{},{...e,ref:n,register(){r.current=!0,o&&o.register()}});return sr(o,n),a.useEffect(()=>{r.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),r.current=!0)},[]),a.createElement(ht.Provider,{value:l},t)});function ad({children:t}){let e=a.useMemo(()=>({register:()=>{}}),[]);return a.createElement(ht.Provider,{value:e},t)}class sd{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=e}}function hl(t){let e=a.useRef({isFocused:!1,observer:null});H(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=J(r=>{t==null||t(r)});return a.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){e.current.isFocused=!0;let o=r.target,l=i=>{e.current.isFocused=!1,o.disabled&&n(new sd("blur",i)),e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};o.addEventListener("focusout",l,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&o.disabled){var i;(i=e.current.observer)===null||i===void 0||i.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),e.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function yl(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:o}=t;const l=a.useCallback(u=>{if(u.target===u.currentTarget)return r&&r(u),o&&o(!1),!0},[r,o]),i=hl(l),s=a.useCallback(u=>{const c=V(u.target);u.target===u.currentTarget&&c.activeElement===u.target&&(n&&n(u),o&&o(!0),i(u))},[o,n,i]);return{focusProps:{onFocus:!e&&(n||o||r)?s:void 0,onBlur:!e&&(r||o)?l:void 0}}}let $e=null,yt=new Set,mt=new Map,_e=!1,jn=!1;const ud={Tab:!0,Escape:!0};function en(t,e){for(let n of yt)n(t,e)}function cd(t){return!(t.metaKey||!Fe()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Wt(t){_e=!0,cd(t)&&($e="keyboard",en("keyboard",t))}function ae(t){$e="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(_e=!0,en("pointer",t))}function $l(t){On(t)&&(_e=!0,$e="virtual")}function xl(t){t.target===window||t.target===document||(!_e&&!jn&&($e="virtual",en("virtual",t)),_e=!1,jn=!1)}function Pl(){_e=!1,jn=!0}function _t(t){if(typeof window>"u"||mt.get(se(t)))return;const e=se(t),n=V(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){_e=!0,r.apply(this,arguments)},n.addEventListener("keydown",Wt,!0),n.addEventListener("keyup",Wt,!0),n.addEventListener("click",$l,!0),e.addEventListener("focus",xl,!0),e.addEventListener("blur",Pl,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ae,!0),n.addEventListener("pointermove",ae,!0),n.addEventListener("pointerup",ae,!0)):(n.addEventListener("mousedown",ae,!0),n.addEventListener("mousemove",ae,!0),n.addEventListener("mouseup",ae,!0)),e.addEventListener("beforeunload",()=>{Cl(t)},{once:!0}),mt.set(e,{focus:r})}const Cl=(t,e)=>{const n=se(t),r=V(t);e&&r.removeEventListener("DOMContentLoaded",e),mt.has(n)&&(n.HTMLElement.prototype.focus=mt.get(n).focus,r.removeEventListener("keydown",Wt,!0),r.removeEventListener("keyup",Wt,!0),r.removeEventListener("click",$l,!0),n.removeEventListener("focus",xl,!0),n.removeEventListener("blur",Pl,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ae,!0),r.removeEventListener("pointermove",ae,!0),r.removeEventListener("pointerup",ae,!0)):(r.removeEventListener("mousedown",ae,!0),r.removeEventListener("mousemove",ae,!0),r.removeEventListener("mouseup",ae,!0)),mt.delete(n))};function dd(t){const e=V(t);let n;return e.readyState!=="loading"?_t(t):(n=()=>{_t(t)},e.addEventListener("DOMContentLoaded",n)),()=>Cl(t,n)}typeof document<"u"&&dd();function tt(){return $e!=="pointer"}function $t(){return $e}function Sl(t){$e=t,en(t,null)}function El(){_t();let[t,e]=a.useState($e);return a.useEffect(()=>{let n=()=>{e($e)};return yt.add(n),()=>{yt.delete(n)}},[]),xe()?null:t}const fd=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function pd(t,e,n){var r;const o=typeof window<"u"?se(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,l=typeof window<"u"?se(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?se(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?se(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return t=t||(n==null?void 0:n.target)instanceof o&&!fd.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof l||(n==null?void 0:n.target)instanceof i&&(n==null?void 0:n.target.isContentEditable),!(t&&e==="keyboard"&&n instanceof s&&!ud[n.key])}function vd(t,e,n){_t(),a.useEffect(()=>{let r=(o,l)=>{pd(!!(n!=null&&n.isTextInput),o,l)&&t(tt())};return yt.add(r),()=>{yt.delete(r)}},e)}function St(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=t,l=a.useRef({isFocusWithin:!1}),i=a.useCallback(c=>{l.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(l.current.isFocusWithin=!1,n&&n(c),o&&o(!1))},[n,o,l]),s=hl(i),u=a.useCallback(c=>{!l.current.isFocusWithin&&document.activeElement===c.target&&(r&&r(c),o&&o(!0),l.current.isFocusWithin=!0,s(c))},[r,o,s]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:i}}}let Ut=!1,xn=0;function Vn(){Ut=!0,setTimeout(()=>{Ut=!1},50)}function io(t){t.pointerType==="touch"&&Vn()}function bd(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",io):document.addEventListener("touchend",Vn),xn++,()=>{xn--,!(xn>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",io):document.removeEventListener("touchend",Vn))}}function Ie(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:o}=t,[l,i]=a.useState(!1),s=a.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;a.useEffect(bd,[]);let{hoverProps:u,triggerHoverEnd:c}=a.useMemo(()=>{let d=(f,b)=>{if(s.pointerType=b,o||b==="touch"||s.isHovered||!f.currentTarget.contains(f.target))return;s.isHovered=!0;let h=f.currentTarget;s.target=h,e&&e({type:"hoverstart",target:h,pointerType:b}),n&&n(!0),i(!0)},p=(f,b)=>{if(s.pointerType="",s.target=null,b==="touch"||!s.isHovered)return;s.isHovered=!1;let h=f.currentTarget;r&&r({type:"hoverend",target:h,pointerType:b}),n&&n(!1),i(!1)},v={};return typeof PointerEvent<"u"?(v.onPointerEnter=f=>{Ut&&f.pointerType==="mouse"||d(f,f.pointerType)},v.onPointerLeave=f=>{!o&&f.currentTarget.contains(f.target)&&p(f,f.pointerType)}):(v.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},v.onMouseEnter=f=>{!s.ignoreEmulatedMouseEvents&&!Ut&&d(f,"mouse"),s.ignoreEmulatedMouseEvents=!1},v.onMouseLeave=f=>{!o&&f.currentTarget.contains(f.target)&&p(f,"mouse")}),{hoverProps:v,triggerHoverEnd:p}},[e,n,r,o,s]);return a.useEffect(()=>{o&&c({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:u,isHovered:l}}function md(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=t,l=a.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=J(u=>{n&&Mt(u,e)&&(o&&o(u),l.current.isPointerDown=!0)}),s=J(u=>{n&&n(u)});a.useEffect(()=>{let u=l.current;if(r)return;const c=e.current,d=V(c);if(typeof PointerEvent<"u"){let p=v=>{u.isPointerDown&&Mt(v,e)&&s(v),u.isPointerDown=!1};return d.addEventListener("pointerdown",i,!0),d.addEventListener("pointerup",p,!0),()=>{d.removeEventListener("pointerdown",i,!0),d.removeEventListener("pointerup",p,!0)}}else{let p=f=>{u.ignoreEmulatedMouseEvents?u.ignoreEmulatedMouseEvents=!1:u.isPointerDown&&Mt(f,e)&&s(f),u.isPointerDown=!1},v=f=>{u.ignoreEmulatedMouseEvents=!0,u.isPointerDown&&Mt(f,e)&&s(f),u.isPointerDown=!1};return d.addEventListener("mousedown",i,!0),d.addEventListener("mouseup",p,!0),d.addEventListener("touchstart",i,!0),d.addEventListener("touchend",v,!0),()=>{d.removeEventListener("mousedown",i,!0),d.removeEventListener("mouseup",p,!0),d.removeEventListener("touchstart",i,!0),d.removeEventListener("touchend",v,!0)}}},[e,r,i,s])}function Mt(t,e){if(t.button>0)return!1;if(t.target){const n=t.target.ownerDocument;if(!n||!n.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current&&!e.current.contains(t.target)}function ao(t){if(!t)return;let e=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){e?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 gd(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:ao(t.onKeyDown),onKeyUp:ao(t.onKeyUp)}}}const hd=500;function wl(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:l=hd,accessibilityDescription:i}=t;const s=a.useRef(void 0);let{addGlobalListener:u,removeGlobalListener:c}=sl(),{pressProps:d}=We({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})),o&&o({...v,type:"longpress"}),s.current=void 0},l),v.pointerType==="touch")){let f=b=>{b.preventDefault()};u(v.target,"contextmenu",f,{once:!0}),u(window,"pointerup",()=>{setTimeout(()=>{c(v.target,"contextmenu",f)},30)},{once:!0})}},onPressEnd(v){s.current&&clearTimeout(s.current),r&&(v.pointerType==="mouse"||v.pointerType==="touch")&&r({...v,type:"longpressend"})}}),p=ur(o&&!e?i:void 0);return{longPressProps:M(d,p)}}function ne(t){const e=V(t);if($t()==="virtual"){let n=e.activeElement;al(()=>{e.activeElement===n&&t.isConnected&&he(t)})}else he(t)}function yd(t){const e=se(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:n,visibility:r}=t.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:l}=t.ownerDocument.defaultView;let{display:i,visibility:s}=l(t);o=i!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function $d(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 Dl(t,e){return t.nodeName!=="#comment"&&yd(t)&&$d(t,e)&&(!t.parentElement||Dl(t.parentElement,t))}const so=a.createContext(null),Wn="react-aria-focus-scope-restore";let j=null;function kl(t){let{children:e,contain:n,restoreFocus:r,autoFocus:o}=t,l=a.useRef(null),i=a.useRef(null),s=a.useRef([]),{parentNode:u}=a.useContext(so)||{},c=a.useMemo(()=>new Un({scopeRef:s}),[s]);H(()=>{let v=u||q.root;if(q.getTreeNode(v.scopeRef)&&j&&!Gt(j,v.scopeRef)){let f=q.getTreeNode(j);f&&(v=f)}v.addChild(c),q.addNode(c)},[c,u]),H(()=>{let v=q.getTreeNode(s);v&&(v.contain=!!n)},[n]),H(()=>{var v;let f=(v=l.current)===null||v===void 0?void 0:v.nextSibling,b=[],h=y=>y.stopPropagation();for(;f&&f!==i.current;)b.push(f),f.addEventListener(Wn,h),f=f.nextSibling;return s.current=b,()=>{for(let y of b)y.removeEventListener(Wn,h)}},[e]),Dd(s,r,n),Sd(s,n),kd(s,r,n),wd(s,o),a.useEffect(()=>{const v=V(s.current?s.current[0]:void 0).activeElement;let f=null;if(ue(v,s.current)){for(let b of q.traverse())b.scopeRef&&ue(v,b.scopeRef.current)&&(f=b);f===q.getTreeNode(s)&&(j=f.scopeRef)}},[s]),H(()=>()=>{var v,f,b;let h=(b=(f=q.getTreeNode(s))===null||f===void 0||(v=f.parent)===null||v===void 0?void 0:v.scopeRef)!==null&&b!==void 0?b:null;(s===j||Gt(s,j))&&(!h||q.getTreeNode(h))&&(j=h),q.removeTreeNode(s)},[s]);let d=a.useMemo(()=>xd(s),[]),p=a.useMemo(()=>({focusManager:d,parentNode:c}),[c,d]);return a.createElement(so.Provider,{value:p},a.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:l}),e,a.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:i}))}function xd(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:o,wrap:l,accept:i}=e,s=r||V(n[0]).activeElement,u=n[0].previousElementSibling,c=je(n),d=Q(c,{tabbable:o,accept:i},n);d.currentNode=ue(s,n)?s:u;let p=d.nextNode();return!p&&l&&(d.currentNode=u,p=d.nextNode()),p&&re(p,!0),p},focusPrevious(e={}){let n=t.current,{from:r,tabbable:o,wrap:l,accept:i}=e,s=r||V(n[0]).activeElement,u=n[n.length-1].nextElementSibling,c=je(n),d=Q(c,{tabbable:o,accept:i},n);d.currentNode=ue(s,n)?s:u;let p=d.previousNode();return!p&&l&&(d.currentNode=u,p=d.previousNode()),p&&re(p,!0),p},focusFirst(e={}){let n=t.current,{tabbable:r,accept:o}=e,l=je(n),i=Q(l,{tabbable:r,accept:o},n);i.currentNode=n[0].previousElementSibling;let s=i.nextNode();return s&&re(s,!0),s},focusLast(e={}){let n=t.current,{tabbable:r,accept:o}=e,l=je(n),i=Q(l,{tabbable:r,accept:o},n);i.currentNode=n[n.length-1].nextElementSibling;let s=i.previousNode();return s&&re(s,!0),s}}}const fr=["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"])'],Pd=fr.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";fr.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Cd=fr.join(':not([hidden]):not([tabindex="-1"]),');function je(t){return t[0].parentElement}function vt(t){let e=q.getTreeNode(j);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function Sd(t,e){let n=a.useRef(void 0),r=a.useRef(void 0);H(()=>{let o=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const l=V(o?o[0]:void 0);let i=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!vt(t)||c.isComposing)return;let d=l.activeElement,p=t.current;if(!p||!ue(d,p))return;let v=je(p),f=Q(v,{tabbable:!0},p);if(!d)return;f.currentNode=d;let b=c.shiftKey?f.previousNode():f.nextNode();b||(f.currentNode=c.shiftKey?p[p.length-1].nextElementSibling:p[0].previousElementSibling,b=c.shiftKey?f.previousNode():f.nextNode()),c.preventDefault(),b&&re(b,!0)},s=c=>{(!j||Gt(j,t))&&ue(c.target,t.current)?(j=t,n.current=c.target):vt(t)&&!Re(c.target,t)?n.current?n.current.focus():j&&j.current&&_n(j.current):vt(t)&&(n.current=c.target)},u=c=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let d=$t();if(!((d==="virtual"||d===null)&&ar()&&ol())&&l.activeElement&&vt(t)&&!Re(l.activeElement,t))if(j=t,l.body.contains(c.target)){var v;n.current=c.target,(v=n.current)===null||v===void 0||v.focus()}else j.current&&_n(j.current)})};return l.addEventListener("keydown",i,!1),l.addEventListener("focusin",s,!1),o==null||o.forEach(c=>c.addEventListener("focusin",s,!1)),o==null||o.forEach(c=>c.addEventListener("focusout",u,!1)),()=>{l.removeEventListener("keydown",i,!1),l.removeEventListener("focusin",s,!1),o==null||o.forEach(c=>c.removeEventListener("focusin",s,!1)),o==null||o.forEach(c=>c.removeEventListener("focusout",u,!1))}},[t,e]),H(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Tl(t){return Re(t)}function ue(t,e){return!t||!e?!1:e.some(n=>n.contains(t))}function Re(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of q.traverse(q.getTreeNode(e)))if(n&&ue(t,n.current))return!0;return!1}function Ed(t){return Re(t,j)}function Gt(t,e){var n;let r=(n=q.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function re(t,e=!1){if(t!=null&&!e)try{ne(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function Bl(t,e=!0){let n=t[0].previousElementSibling,r=je(t),o=Q(r,{tabbable:e},t);o.currentNode=n;let l=o.nextNode();return e&&!l&&(r=je(t),o=Q(r,{tabbable:!1},t),o.currentNode=n,l=o.nextNode()),l}function _n(t,e=!0){re(Bl(t,e))}function wd(t,e){const n=a.useRef(e);a.useEffect(()=>{if(n.current){j=t;const r=V(t.current?t.current[0]:void 0);!ue(r.activeElement,j.current)&&t.current&&_n(t.current)}n.current=!1},[t])}function Dd(t,e,n){H(()=>{if(e||n)return;let r=t.current;const o=V(r?r[0]:void 0);let l=i=>{let s=i.target;ue(s,t.current)?j=t:Tl(s)||(j=null)};return o.addEventListener("focusin",l,!1),r==null||r.forEach(i=>i.addEventListener("focusin",l,!1)),()=>{o.removeEventListener("focusin",l,!1),r==null||r.forEach(i=>i.removeEventListener("focusin",l,!1))}},[t,e,n])}function uo(t){let e=q.getTreeNode(j);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function kd(t,e,n){const r=a.useRef(typeof document<"u"?V(t.current?t.current[0]:void 0).activeElement:null);H(()=>{let o=t.current;const l=V(o?o[0]:void 0);if(!e||n)return;let i=()=>{(!j||Gt(j,t))&&ue(l.activeElement,t.current)&&(j=t)};return l.addEventListener("focusin",i,!1),o==null||o.forEach(s=>s.addEventListener("focusin",i,!1)),()=>{l.removeEventListener("focusin",i,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",i,!1))}},[t,n]),H(()=>{const o=V(t.current?t.current[0]:void 0);if(!e)return;let l=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!vt(t)||i.isComposing)return;let s=o.activeElement;if(!Re(s,t)||!uo(t))return;let u=q.getTreeNode(t);if(!u)return;let c=u.nodeToRestore,d=Q(o.body,{tabbable:!0});d.currentNode=s;let p=i.shiftKey?d.previousNode():d.nextNode();if((!c||!o.body.contains(c)||c===o.body)&&(c=void 0,u.nodeToRestore=void 0),(!p||!Re(p,t))&&c){d.currentNode=c;do p=i.shiftKey?d.previousNode():d.nextNode();while(Re(p,t));i.preventDefault(),i.stopPropagation(),p?re(p,!0):Tl(c)?re(c,!0):s.blur()}};return n||o.addEventListener("keydown",l,!0),()=>{n||o.removeEventListener("keydown",l,!0)}},[t,e,n]),H(()=>{const o=V(t.current?t.current[0]:void 0);if(!e)return;let l=q.getTreeNode(t);if(l){var i;return l.nodeToRestore=(i=r.current)!==null&&i!==void 0?i:void 0,()=>{let s=q.getTreeNode(t);if(!s)return;let u=s.nodeToRestore;if(e&&u&&(o.activeElement&&Re(o.activeElement,t)||o.activeElement===o.body&&uo(t))){let c=q.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=c.getTreeNode(t);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){co(d.nodeToRestore);return}d=d.parent}for(d=c.getTreeNode(t);d;){if(d.scopeRef&&d.scopeRef.current&&q.getTreeNode(d.scopeRef)){let p=Bl(d.scopeRef.current,!0);co(p);return}d=d.parent}}})}}}},[t,e])}function co(t){t.dispatchEvent(new CustomEvent(Wn,{bubbles:!0,cancelable:!0}))&&re(t)}function Q(t,e,n){let r=e!=null&&e.tabbable?Cd:Pd,o=V(t).createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode(l){var i;return!(e==null||(i=e.from)===null||i===void 0)&&i.contains(l)?NodeFilter.FILTER_REJECT:l.matches(r)&&Dl(l)&&(!n||ue(l,n))&&(!(e!=null&&e.accept)||e.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(o.currentNode=e.from),o}function Td(t,e={}){return{focusNext(n={}){let r=t.current;if(!r)return null;let{from:o,tabbable:l=e.tabbable,wrap:i=e.wrap,accept:s=e.accept}=n,u=o||V(r).activeElement,c=Q(r,{tabbable:l,accept:s});r.contains(u)&&(c.currentNode=u);let d=c.nextNode();return!d&&i&&(c.currentNode=r,d=c.nextNode()),d&&re(d,!0),d},focusPrevious(n=e){let r=t.current;if(!r)return null;let{from:o,tabbable:l=e.tabbable,wrap:i=e.wrap,accept:s=e.accept}=n,u=o||V(r).activeElement,c=Q(r,{tabbable:l,accept:s});if(r.contains(u))c.currentNode=u;else{let p=Pn(c);return p&&re(p,!0),p??null}let d=c.previousNode();if(!d&&i){c.currentNode=r;let p=Pn(c);if(!p)return null;d=p}return d&&re(d,!0),d??null},focusFirst(n=e){let r=t.current;if(!r)return null;let{tabbable:o=e.tabbable,accept:l=e.accept}=n,s=Q(r,{tabbable:o,accept:l}).nextNode();return s&&re(s,!0),s},focusLast(n=e){let r=t.current;if(!r)return null;let{tabbable:o=e.tabbable,accept:l=e.accept}=n,i=Q(r,{tabbable:o,accept:l}),s=Pn(i);return s&&re(s,!0),s??null}}}function Pn(t){let e,n;do n=t.lastChild(),n&&(e=n);while(n);return e}class pr{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,r){let o=this.fastMap.get(n??null);if(!o)return;let l=new Un({scopeRef:e});o.addChild(l),l.parent=o,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&&ue(l.nodeToRestore,n.scopeRef.current)&&(l.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.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 pr;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(e=o.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Un({scopeRef:null}),this.fastMap.set(null,this.root)}}class Un{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 q=new pr;function pe(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,o=a.useRef({isFocused:!1,isFocusVisible:e||tt()}),[l,i]=a.useState(!1),[s,u]=a.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=a.useCallback(()=>u(o.current.isFocused&&o.current.isFocusVisible),[]),d=a.useCallback(f=>{o.current.isFocused=f,i(f),c()},[c]);vd(f=>{o.current.isFocusVisible=f,c()},[],{isTextInput:n});let{focusProps:p}=yl({isDisabled:r,onFocusChange:d}),{focusWithinProps:v}=St({isDisabled:!r,onFocusWithinChange:d});return{isFocused:l,isFocusVisible:s,focusProps:r?v:p}}let Rl=a.createContext(null);function Bd(t){let e=a.useContext(Rl)||{};sr(e,t);let{ref:n,...r}=e;return r}const Rd=a.forwardRef(function(e,n){let{children:r,...o}=e,l=le(n),i={...o,ref:l};return a.createElement(Rl.Provider,{value:i},r)});function nt(t,e){let{focusProps:n}=yl(t),{keyboardProps:r}=gd(t),o=M(n,r),l=Bd(e),i=t.isDisabled?{}:l,s=a.useRef(t.autoFocus);return a.useEffect(()=>{s.current&&e.current&&ne(e.current),s.current=!1},[e]),{focusableProps:M({...o,tabIndex:t.excludeFromTabOrder&&!t.isDisabled?-1:void 0},i)}}function Ad(t,e){let n=e==null?void 0:e.isDisabled,[r,o]=a.useState(!1);return H(()=>{if(t!=null&&t.current&&!n){let l=()=>{if(t.current){let s=Q(t.current,{tabbable:!0});o(!!s.nextNode())}};l();let i=new MutationObserver(l);return i.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{i.disconnect()}}}),n?!1:r}function Kd(t,e){let{elementType:n="a",onPress:r,onPressStart:o,onPressEnd:l,onClick:i,isDisabled:s,...u}=t,c={};n!=="a"&&(c={role:"link",tabIndex:s?void 0:0});let{focusableProps:d}=nt(t,e),{pressProps:p,isPressed:v}=We({onPress:r,onPressStart:o,onPressEnd:l,isDisabled:s,ref:e}),f=_(u,{labelable:!0}),b=M(d,p),h=Ct(),y=il(t);return{isPressed:v,linkProps:M(f,y,{...b,...c,"aria-disabled":s||void 0,"aria-current":t["aria-current"],onClick:$=>{var S;(S=p.onClick)===null||S===void 0||S.call(p,$),i&&(i($),console.warn("onClick is deprecated, please use onPress")),!h.isNative&&$.currentTarget instanceof HTMLAnchorElement&&$.currentTarget.href&&!$.isDefaultPrevented()&&Oc($.currentTarget,$)&&t.href&&($.preventDefault(),h.open($.currentTarget,$,t.href,t.routerOptions))}})}}const Fd=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Ld=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Id(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 Fd.has(n.script)}let e=t.split("-")[0];return Ld.has(e)}const Md=Symbol.for("react-aria.i18n.locale");function Al(){let t=typeof window<"u"&&window[Md]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:Id(t)?"rtl":"ltr"}}let Gn=Al(),bt=new Set;function fo(){Gn=Al();for(let t of bt)t(Gn)}function zd(){let t=xe(),[e,n]=a.useState(Gn);return a.useEffect(()=>(bt.size===0&&window.addEventListener("languagechange",fo),bt.add(n),()=>{bt.delete(n),bt.size===0&&window.removeEventListener("languagechange",fo)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const Nd=a.createContext(null);function Ce(){let t=zd();return a.useContext(Nd)||t}const Od=Symbol.for("react-aria.i18n.locale"),Hd=Symbol.for("react-aria.i18n.strings");let qe;class tn{getStringForLocale(e,n){let o=this.getStringsForLocale(n)[e];if(!o)throw new Error(`Could not find intl message ${e} in ${n} locale`);return o}getStringsForLocale(e){let n=this.strings[e];return n||(n=jd(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[Od];if(qe===void 0){let o=window[Hd];if(!o)return null;qe={};for(let l in o)qe[l]=new tn({[n]:o[l]},n)}let r=qe==null?void 0:qe[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 jd(t,e,n="en-US"){if(e[t])return e[t];let r=Vd(t);if(e[r])return e[r];for(let o in e)if(o.startsWith(r+"-"))return e[o];return e[n]}function Vd(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const po=new Map,vo=new Map;class Wd{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 o=n["="+e];if(o)return typeof o=="function"?o():o;let l=this.locale+":"+r,i=po.get(l);i||(i=new Intl.PluralRules(this.locale,{type:r}),po.set(l,i));let s=i.select(e);return o=n[s]||n.other,typeof o=="function"?o():o}number(e){let n=vo.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),vo.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 bo=new WeakMap;function _d(t){let e=bo.get(t);return e||(e=new tn(t),bo.set(t,e)),e}function Ud(t,e){return e&&tn.getGlobalDictionaryForPackage(e)||_d(t)}function rt(t,e){let{locale:n}=Ce(),r=Ud(t,e);return a.useMemo(()=>new Wd(n,r),[n,r])}let Cn=new Map,qn=!1;try{qn=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let qt=!1;try{qt=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Kl={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Gd{format(e){let n="";if(!qn&&this.options.signDisplay!=null?n=Zd(this.numberFormatter,this.options.signDisplay,e):n=this.numberFormatter.format(e),this.options.style==="unit"&&!qt){var r;let{unit:o,unitDisplay:l="short",locale:i}=this.resolvedOptions();if(!o)return n;let s=(r=Kl[o])===null||r===void 0?void 0:r[l];n+=s[i]||s.default}return n}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(e,n);if(n<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(n)}`}formatRangeToParts(e,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(e,n);if(n<e)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(e),o=this.numberFormatter.formatToParts(n);return[...r.map(l=>({...l,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(l=>({...l,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!qn&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!qt&&this.options.style==="unit"&&(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,n={}){this.numberFormatter=qd(e,n),this.options=n}}function qd(t,e={}){let{numberingSystem:n}=e;if(n&&t.includes("-nu-")&&(t.includes("-u-")||(t+="-u-"),t+=`-nu-${n}`),e.style==="unit"&&!qt){var r;let{unit:i,unitDisplay:s="short"}=e;if(!i)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=Kl[i])===null||r===void 0)&&r[s]))throw new Error(`Unsupported unit ${i} with unitDisplay = ${s}`);e={...e,style:"decimal"}}let o=t+(e?Object.entries(e).sort((i,s)=>i[0]<s[0]?-1:1).join():"");if(Cn.has(o))return Cn.get(o);let l=new Intl.NumberFormat(t,e);return Cn.set(o,l),l}function Zd(t,e,n){if(e==="auto")return t.format(n);if(e==="never")return t.format(Math.abs(n));{let r=!1;if(e==="always"?r=n>0||Object.is(n,0):e==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=t.format(-n),l=t.format(n),i=o.replace(l,"").replace(/\u200e|\u061C/,"");return[...i].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(l,"!!!").replace(i,"+").replace("!!!",l)}else return t.format(n)}}function Yd(t={}){let{locale:e}=Ce();return a.useMemo(()=>new Gd(e,t),[e,t])}let Sn=new Map;function vr(t){let{locale:e}=Ce(),n=e+(t?Object.entries(t).sort((o,l)=>o[0]<l[0]?-1:1).join():"");if(Sn.has(n))return Sn.get(n);let r=new Intl.Collator(e,t);return Sn.set(n,r),r}function nn(t,e){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:l,onPressEnd:i,onPressUp:s,onPressChange:u,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:p,href:v,target:f,rel:b,type:h="button"}=t,y;n==="button"?y={type:h,disabled:r}:y={role:"button",tabIndex:r?void 0:0,href:n==="a"&&!r?v:void 0,target:n==="a"?f:void 0,type:n==="input"?h:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?b:void 0};let{pressProps:$,isPressed:S}=We({onPressStart:l,onPressEnd:i,onPressChange:u,onPress:o,onPressUp:s,isDisabled:r,preventFocusOnPress:c,ref:e}),{focusableProps:w}=nt(t,e);d&&(w.tabIndex=r?-1:w.tabIndex);let R=M(w,$,_(t,{labelable:!0}));return{isPressed:S,buttonProps:M(y,R,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],onClick:D=>{p&&(p(D),console.warn("onClick is deprecated, please use onPress"))}})}}function Fl(t,e,n){const{isSelected:r}=e,{isPressed:o,buttonProps:l}=nn({...t,onPress:ye(e.toggle,t.onPress)},n);return{isPressed:o,isSelected:r,isDisabled:t.isDisabled||!1,buttonProps:M(l,{"aria-pressed":r})}}function Xd(t,e){const{"aria-label":n,"aria-labelledby":r,orientation:o="horizontal"}=t;let[l,i]=a.useState(!1);H(()=>{var b;i(!!(e.current&&(!((b=e.current.parentElement)===null||b===void 0)&&b.closest('[role="toolbar"]'))))});const{direction:s}=Ce(),u=s==="rtl"&&o==="horizontal";let c=Td(e);const d=b=>{if(b.currentTarget.contains(b.target)){if(o==="horizontal"&&b.key==="ArrowRight"||o==="vertical"&&b.key==="ArrowDown")u?c.focusPrevious():c.focusNext();else if(o==="horizontal"&&b.key==="ArrowLeft"||o==="vertical"&&b.key==="ArrowUp")u?c.focusNext():c.focusPrevious();else if(b.key==="Tab"){b.stopPropagation(),p.current=document.activeElement,b.shiftKey?c.focusFirst():c.focusLast();return}else return;b.stopPropagation(),b.preventDefault()}},p=a.useRef(null),v=b=>{!b.currentTarget.contains(b.relatedTarget)&&!p.current&&(p.current=b.target)},f=b=>{var h;if(p.current&&!b.currentTarget.contains(b.relatedTarget)&&(!((h=e.current)===null||h===void 0)&&h.contains(b.target))){var y;(y=p.current)===null||y===void 0||y.focus(),p.current=null}};return{toolbarProps:{..._(t,{labelable:!0}),role:l?"group":"toolbar","aria-orientation":o,"aria-label":n,"aria-labelledby":n==null?r:void 0,onKeyDownCapture:l?void 0:d,onFocusCapture:l?void 0:f,onBlurCapture:l?void 0:v}}}function Jd(t,e,n){let{isDisabled:r}=t,{toolbarProps:o}=Xd(t,n);return{groupProps:{...o,role:e.selectionMode==="single"?"radiogroup":o.role,"aria-disabled":r}}}function Qd(t,e,n){let r={isSelected:e.selectedKeys.has(t.id),setSelected(u){e.setSelected(t.id,u)},toggle(){e.toggleKey(t.id)}},{isPressed:o,isSelected:l,isDisabled:i,buttonProps:s}=Fl({...t,id:void 0,isDisabled:t.isDisabled||e.isDisabled},r,n);return e.selectionMode==="single"&&(s.role="radio",s["aria-checked"]=r.isSelected,delete s["aria-pressed"]),{isPressed:o,isSelected:l,isDisabled:i,buttonProps:s}}const Ll=7e3;let de=null;function Zn(t,e="assertive",n=Ll){de?de.announce(t,e,n):(de=new ef,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?de.announce(t,e,n):setTimeout(()=>{de!=null&&de.isAttached()&&(de==null||de.announce(t,e,n))},100))}class ef{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=Ll){var o,l;if(!this.node)return;let i=document.createElement("div");typeof e=="object"?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",e["aria-labelledby"])):i.textContent=e,n==="assertive"?(o=this.assertiveLog)===null||o===void 0||o.appendChild(i):(l=this.politeLog)===null||l===void 0||l.appendChild(i),e!==""&&setTimeout(()=>{i.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 Il={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Ml={...Il,customError:!0,valid:!1},ut={isInvalid:!1,validationDetails:Il,validationErrors:[]},tf=a.createContext({}),Yn="__formValidationState"+Date.now();function br(t){if(t[Yn]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:l}=t[Yn];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:l}}return nf(t)}function nf(t){let{isInvalid:e,validationState:n,name:r,value:o,builtinValidation:l,validate:i,validationBehavior:s="aria"}=t;n&&(e||(e=n==="invalid"));let u=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:Ml}:null,c=a.useMemo(()=>{if(!i||o==null)return null;let K=rf(i,o);return mo(K)},[i,o]);l!=null&&l.validationDetails.valid&&(l=void 0);let d=a.useContext(tf),p=a.useMemo(()=>r?Array.isArray(r)?r.flatMap(K=>Xn(d[K])):Xn(d[r]):[],[d,r]),[v,f]=a.useState(d),[b,h]=a.useState(!1);d!==v&&(f(d),h(!1));let y=a.useMemo(()=>mo(b?[]:p),[b,p]),$=a.useRef(ut),[S,w]=a.useState(ut),R=a.useRef(ut),D=()=>{if(!P)return;L(!1);let K=c||l||$.current;En(K,R.current)||(R.current=K,w(K))},[P,L]=a.useState(!1);return a.useEffect(D),{realtimeValidation:u||y||c||l||ut,displayValidation:s==="native"?u||y||S:u||y||c||l||S,updateValidation(K){s==="aria"&&!En(S,K)?w(K):$.current=K},resetValidation(){let K=ut;En(K,R.current)||(R.current=K,w(K)),s==="native"&&L(!1),h(!0)},commitValidation(){s==="native"&&L(!0),h(!0)}}}function Xn(t){return t?Array.isArray(t)?t:[t]:[]}function rf(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return Xn(n)}return[]}function mo(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:Ml}:null}function En(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 mr(t,e,n){let{validationBehavior:r,focus:o}=t;H(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let u=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(u),n.current.hasAttribute("title")||(n.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(lf(n.current))}});let l=J(()=>{e.resetValidation()}),i=J(u=>{var c;e.displayValidation.isInvalid||e.commitValidation();let d=n==null||(c=n.current)===null||c===void 0?void 0:c.form;if(!u.defaultPrevented&&n&&d&&af(d)===n.current){var p;o?o():(p=n.current)===null||p===void 0||p.focus(),Sl("keyboard")}u.preventDefault()}),s=J(()=>{e.commitValidation()});a.useEffect(()=>{let u=n==null?void 0:n.current;if(!u)return;let c=u.form;return u.addEventListener("invalid",i),u.addEventListener("change",s),c==null||c.addEventListener("reset",l),()=>{u.removeEventListener("invalid",i),u.removeEventListener("change",s),c==null||c.removeEventListener("reset",l)}},[n,i,s,l,r])}function of(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 lf(t){return{isInvalid:!t.validity.valid,validationDetails:of(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function af(t){for(let e=0;e<t.elements.length;e++){let n=t.elements[e];if(!n.validity.valid)return n}return null}function sf(t,e,n){let{isDisabled:r=!1,isReadOnly:o=!1,value:l,name:i,children:s,"aria-label":u,"aria-labelledby":c,validationState:d="valid",isInvalid:p}=t,v=P=>{P.stopPropagation(),e.setSelected(P.target.checked)},f=s!=null,b=u!=null||c!=null;!f&&!b&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:h,isPressed:y}=We({isDisabled:r}),{pressProps:$,isPressed:S}=We({isDisabled:r||o,onPress(){e.toggle()}}),{focusableProps:w}=nt(t,n),R=M(h,w),D=_(t,{labelable:!0});return cr(n,e.isSelected,e.setSelected),{labelProps:M($,{onClick:P=>P.preventDefault()}),inputProps:M(D,{"aria-invalid":p||d==="invalid"||void 0,"aria-errormessage":t["aria-errormessage"],"aria-controls":t["aria-controls"],"aria-readonly":o||void 0,onChange:v,disabled:r,...l==null?{}:{value:l},name:i,type:"checkbox",...R}),isSelected:e.isSelected,isPressed:y||S,isDisabled:r,isReadOnly:o,isInvalid:p||d==="invalid"}}function uf(t,e,n){let r=br({...t,value:e.isSelected}),{isInvalid:o,validationErrors:l,validationDetails:i}=r.displayValidation,{labelProps:s,inputProps:u,isSelected:c,isPressed:d,isDisabled:p,isReadOnly:v}=sf({...t,isInvalid:o},e,n);mr(t,r,n);let{isIndeterminate:f,isRequired:b,validationBehavior:h="aria"}=t;a.useEffect(()=>{n.current&&(n.current.indeterminate=!!f)});let{pressProps:y}=We({isDisabled:p||v,onPress(){let{[Yn]:$}=t,{commitValidation:S}=$||r;S()}});return{labelProps:M(s,y),inputProps:{...u,checked:c,"aria-required":b&&h==="aria"||void 0,required:b&&h==="native"},isSelected:c,isPressed:d,isDisabled:p,isReadOnly:v,isInvalid:o,validationErrors:l,validationDetails:i}}function gr(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:l="label"}=t;e=Y(e);let i=Y(),s={};n?(r=r?`${i} ${r}`:i,s={id:i,htmlFor:l==="label"?e:void 0}):!r&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let u=ul({id:e,"aria-label":o,"aria-labelledby":r});return{labelProps:s,fieldProps:u}}function rn(t){let{description:e,errorMessage:n,isInvalid:r,validationState:o}=t,{labelProps:l,fieldProps:i}=gr(t),s=et([!!e,!!n,r,o]),u=et([!!e,!!n,r,o]);return i=M(i,{"aria-describedby":[s,u,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:l,fieldProps:i,descriptionProps:{id:s},errorMessageProps:{id:u}}}function zl(t={}){let{isReadOnly:e}=t,[n,r]=Le(t.isSelected,t.defaultSelected||!1,t.onChange);function o(i){e||r(i)}function l(){e||r(!n)}return{isSelected:n,setSelected:o,toggle:l}}function cf(t){let{selectionMode:e="single",disallowEmptySelection:n,isDisabled:r=!1}=t,[o,l]=Le(a.useMemo(()=>t.selectedKeys?new Set(t.selectedKeys):void 0,[t.selectedKeys]),a.useMemo(()=>t.defaultSelectedKeys?new Set(t.defaultSelectedKeys):new Set,[t.defaultSelectedKeys]),t.onSelectionChange);return{selectionMode:e,isDisabled:r,selectedKeys:o,setSelectedKeys:l,toggleKey(i){let s;e==="multiple"?(s=new Set(o),s.has(i)&&(!n||s.size>1)?s.delete(i):s.add(i)):s=new Set(o.has(i)&&!n?[]:[i]),l(s)},setSelected(i,s){s!==o.has(i)&&this.toggleKey(i)}}}const go={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 Nl(t={}){let{style:e,isFocusable:n}=t,[r,o]=a.useState(!1),{focusWithinProps:l}=St({isDisabled:!n,onFocusWithinChange:s=>o(s)}),i=a.useMemo(()=>r?e:e?{...go,...e}:go,[r]);return{visuallyHiddenProps:{...l,style:i}}}function Ol(t){let{children:e,elementType:n="div",isFocusable:r,style:o,...l}=t,{visuallyHiddenProps:i}=Nl(t);return a.createElement(n,M(l,i),e)}function df(t,e){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:l=!1,type:i="text",validationBehavior:s="aria"}=t,[u,c]=Le(t.value,t.defaultValue||"",t.onChange),{focusableProps:d}=nt(t,e),p=br({...t,value:u}),{isInvalid:v,validationErrors:f,validationDetails:b}=p.displayValidation,{labelProps:h,fieldProps:y,descriptionProps:$,errorMessageProps:S}=rn({...t,isInvalid:v,errorMessage:t.errorMessage||f}),w=_(t,{labelable:!0});const R={type:i,pattern:t.pattern};return cr(e,u,c),mr(t,p,e),a.useEffect(()=>{if(e.current instanceof se(e.current).HTMLTextAreaElement){let D=e.current;Object.defineProperty(D,"defaultValue",{get:()=>D.value,set:()=>{},configurable:!0})}},[e]),{labelProps:h,inputProps:M(w,n==="input"?R:void 0,{disabled:r,readOnly:l,required:o&&s==="native","aria-required":o&&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:u,onChange:D=>c(D.target.value),autoComplete:t.autoComplete,autoCapitalize:t.autoCapitalize,maxLength:t.maxLength,minLength:t.minLength,name:t.name,placeholder:t.placeholder,inputMode:t.inputMode,autoCorrect:t.autoCorrect,spellCheck:t.spellCheck,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,...d,...y}),descriptionProps:$,errorMessageProps:S,isInvalid:v,validationErrors:f,validationDetails:b}}const fe={top:"top",bottom:"top",left:"left",right:"left"},Zt={top:"bottom",bottom:"top",left:"right",right:"left"},ff={top:"left",left:"top"},Jn={top:"height",left:"width"},Hl={width:"totalWidth",height:"totalHeight"},zt={};let X=typeof document<"u"?window.visualViewport:null;function ho(t){let e=0,n=0,r=0,o=0,l=0,i=0,s={};var u;let c=((u=X==null?void 0:X.scale)!==null&&u!==void 0?u:1)>1;if(t.tagName==="BODY"){let b=document.documentElement;r=b.clientWidth,o=b.clientHeight;var d;e=(d=X==null?void 0:X.width)!==null&&d!==void 0?d:r;var p;n=(p=X==null?void 0:X.height)!==null&&p!==void 0?p:o,s.top=b.scrollTop||t.scrollTop,s.left=b.scrollLeft||t.scrollLeft,X&&(l=X.offsetTop,i=X.offsetLeft)}else({width:e,height:n,top:l,left:i}=Qe(t)),s.top=t.scrollTop,s.left=t.scrollLeft,r=e,o=n;if(ir()&&(t.tagName==="BODY"||t.tagName==="HTML")&&c){s.top=0,s.left=0;var v;l=(v=X==null?void 0:X.pageTop)!==null&&v!==void 0?v:0;var f;i=(f=X==null?void 0:X.pageLeft)!==null&&f!==void 0?f:0}return{width:e,height:n,totalWidth:r,totalHeight:o,scroll:s,top:l,left:i}}function pf(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function yo(t,e,n,r,o,l,i){var s;let u=(s=o.scroll[t])!==null&&s!==void 0?s:0,c=r[Jn[t]],d=r.scroll[fe[t]]+l,p=c+r.scroll[fe[t]]-l,v=e-u+i[t]-r[fe[t]],f=e-u+n+i[t]-r[fe[t]];return v<d?d-v:f>p?Math.max(p-f,d-v):0}function vf(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function $o(t){if(zt[t])return zt[t];let[e,n]=t.split(" "),r=fe[e]||"right",o=ff[r];fe[n]||(n="center");let l=Jn[r],i=Jn[o];return zt[t]={placement:e,crossPlacement:n,axis:r,crossAxis:o,size:l,crossSize:i},zt[t]}function wn(t,e,n,r,o,l,i,s,u,c){let{placement:d,crossPlacement:p,axis:v,crossAxis:f,size:b,crossSize:h}=r,y={};var $;y[f]=($=t[f])!==null&&$!==void 0?$:0;var S,w,R,D;p==="center"?y[f]+=(((S=t[h])!==null&&S!==void 0?S:0)-((w=n[h])!==null&&w!==void 0?w:0))/2:p!==f&&(y[f]+=((R=t[h])!==null&&R!==void 0?R:0)-((D=n[h])!==null&&D!==void 0?D:0)),y[f]+=l;const P=t[f]-n[h]+u+c,L=t[f]+t[h]-u-c;if(y[f]=Vt(y[f],P,L),d===v){const m=s?i[b]:e[Hl[b]];y[Zt[v]]=Math.floor(m-t[v]+o)}else y[v]=Math.floor(t[v]+t[b]+o);return y}function bf(t,e,n,r,o,l,i,s){const u=r?n.height:e[Hl.height];var c;let d=t.top!=null?n.top+t.top:n.top+(u-((c=t.bottom)!==null&&c!==void 0?c:0)-i);var p,v,f,b,h,y;let $=s!=="top"?Math.max(0,e.height+e.top+((p=e.scroll.top)!==null&&p!==void 0?p:0)-d-(((v=o.top)!==null&&v!==void 0?v:0)+((f=o.bottom)!==null&&f!==void 0?f:0)+l)):Math.max(0,d+i-(e.top+((b=e.scroll.top)!==null&&b!==void 0?b:0))-(((h=o.top)!==null&&h!==void 0?h:0)+((y=o.bottom)!==null&&y!==void 0?y:0)+l));return Math.min(e.height-l*2,$)}function xo(t,e,n,r,o,l){let{placement:i,axis:s,size:u}=l;var c,d;if(i===s)return Math.max(0,n[s]-t[s]-((c=t.scroll[s])!==null&&c!==void 0?c:0)+e[s]-((d=r[s])!==null&&d!==void 0?d:0)-r[Zt[s]]-o);var p;return Math.max(0,t[u]+t[s]+t.scroll[s]-e[s]-n[s]-n[u]-((p=r[s])!==null&&p!==void 0?p:0)-r[Zt[s]]-o)}function mf(t,e,n,r,o,l,i,s,u,c,d,p,v,f,b,h){let y=$o(t),{size:$,crossAxis:S,crossSize:w,placement:R,crossPlacement:D}=y,P=wn(e,s,n,y,d,p,c,v,b,h),L=d,m=xo(s,c,e,o,l+d,y);if(i&&r[$]>m){let Me=$o(`${Zt[R]} ${D}`),st=wn(e,s,n,Me,d,p,c,v,b,h);xo(s,c,e,o,l+d,Me)>m&&(y=Me,P=st,L=d)}let B="bottom";y.axis==="top"?y.placement==="top"?B="top":y.placement==="bottom"&&(B="bottom"):y.crossAxis==="top"&&(y.crossPlacement==="top"?B="bottom":y.crossPlacement==="bottom"&&(B="top"));let K=yo(S,P[S],n[w],s,u,l,c);P[S]+=K;let k=bf(P,s,c,v,o,l,n.height,B);f&&f<k&&(k=f),n.height=Math.min(n.height,k),P=wn(e,s,n,y,L,p,c,v,b,h),K=yo(S,P[S],n[w],s,u,l,c),P[S]+=K;let I={},g=e[S]+.5*e[w]-P[S]-o[fe[S]];const C=b/2+h;var F,A,z,T;const O=fe[S]==="left"?((F=o.left)!==null&&F!==void 0?F:0)+((A=o.right)!==null&&A!==void 0?A:0):((z=o.top)!==null&&z!==void 0?z:0)+((T=o.bottom)!==null&&T!==void 0?T:0),W=n[w]-O-b/2-h,lt=e[S]+b/2-(P[S]+o[fe[S]]),it=e[S]+e[w]-b/2-(P[S]+o[fe[S]]),at=Vt(g,lt,it);return I[S]=Vt(at,C,W),{position:P,maxHeight:k,arrowOffsetLeft:I.left,arrowOffsetTop:I.top,placement:y.placement}}function gf(t){let{placement:e,targetNode:n,overlayNode:r,scrollNode:o,padding:l,shouldFlip:i,boundaryElement:s,offset:u,crossOffset:c,maxHeight:d,arrowSize:p=0,arrowBoundaryOffset:v=0}=t,f=r instanceof HTMLElement?hf(r):document.documentElement,b=f===document.documentElement;const h=window.getComputedStyle(f).position;let y=!!h&&h!=="static",$=b?Qe(n):Po(n,f);if(!b){let{marginTop:I,marginLeft:g}=window.getComputedStyle(n);$.top+=parseInt(I,10)||0,$.left+=parseInt(g,10)||0}let S=Qe(r),w=vf(r);var R,D;S.width+=((R=w.left)!==null&&R!==void 0?R:0)+((D=w.right)!==null&&D!==void 0?D:0);var P,L;S.height+=((P=w.top)!==null&&P!==void 0?P:0)+((L=w.bottom)!==null&&L!==void 0?L:0);let m=pf(o),B=ho(s),K=ho(f),k=s.tagName==="BODY"?Qe(f):Po(f,s);return f.tagName==="HTML"&&s.tagName==="BODY"&&(K.scroll.top=0,K.scroll.left=0),mf(e,$,S,m,w,l,i,B,K,k,u,c,y,d,p,v)}function Qe(t){let{top:e,left:n,width:r,height:o}=t.getBoundingClientRect(),{scrollTop:l,scrollLeft:i,clientTop:s,clientLeft:u}=document.documentElement;return{top:e+l-s,left:n+i-u,width:r,height:o}}function Po(t,e){let n=window.getComputedStyle(t),r;if(n.position==="fixed"){let{top:o,left:l,width:i,height:s}=t.getBoundingClientRect();r={top:o,left:l,width:i,height:s}}else{r=Qe(t);let o=Qe(e),l=window.getComputedStyle(e);o.top+=(parseInt(l.borderTopWidth,10)||0)-e.scrollTop,o.left+=(parseInt(l.borderLeftWidth,10)||0)-e.scrollLeft,r.top-=o.top,r.left-=o.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function hf(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Co(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Co(e);)e=e.parentElement;return e||document.documentElement}function Co(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}const jl=new WeakMap;function yf(t){let{triggerRef:e,isOpen:n,onClose:r}=t;a.useEffect(()=>{if(!n||r===null)return;let o=l=>{let i=l.target;if(!e.current||i instanceof Node&&!i.contains(e.current)||l.target instanceof HTMLInputElement||l.target instanceof HTMLTextAreaElement)return;let s=r||jl.get(e.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,e])}let G=typeof document<"u"?window.visualViewport:null;function Vl(t){let{direction:e}=Ce(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:l=o,placement:i="bottom",containerPadding:s=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:p=0,shouldUpdatePosition:v=!0,isOpen:f=!0,onClose:b,maxHeight:h,arrowBoundaryOffset:y=0}=t,[$,S]=a.useState(null),w=[v,i,o.current,r.current,l.current,s,u,c,d,p,f,e,h,y,n],R=a.useRef(G==null?void 0:G.scale);a.useEffect(()=>{f&&(R.current=G==null?void 0:G.scale)},[f]);let D=a.useCallback(()=>{if(v===!1||!f||!o.current||!r.current||!c||(G==null?void 0:G.scale)!==R.current)return;let K=null;if(l.current&&l.current.contains(document.activeElement)){var k;let T=(k=document.activeElement)===null||k===void 0?void 0:k.getBoundingClientRect(),O=l.current.getBoundingClientRect();var I;if(K={type:"top",offset:((I=T==null?void 0:T.top)!==null&&I!==void 0?I:0)-O.top},K.offset>O.height/2){K.type="bottom";var g;K.offset=((g=T==null?void 0:T.bottom)!==null&&g!==void 0?g:0)-O.bottom}}let C=o.current;if(!h&&o.current){var F;C.style.top="0px",C.style.bottom="";var A;C.style.maxHeight=((A=(F=window.visualViewport)===null||F===void 0?void 0:F.height)!==null&&A!==void 0?A:window.innerHeight)+"px"}let z=gf({placement:xf(i,e),overlayNode:o.current,targetNode:r.current,scrollNode:l.current||o.current,padding:s,shouldFlip:u,boundaryElement:c,offset:d,crossOffset:p,maxHeight:h,arrowSize:n,arrowBoundaryOffset:y});if(z.position){if(C.style.top="",C.style.bottom="",C.style.left="",C.style.right="",Object.keys(z.position).forEach(T=>C.style[T]=z.position[T]+"px"),C.style.maxHeight=z.maxHeight!=null?z.maxHeight+"px":"",K&&document.activeElement&&l.current){let T=document.activeElement.getBoundingClientRect(),O=l.current.getBoundingClientRect(),W=T[K.type]-O[K.type];l.current.scrollTop+=W-K.offset}S(z)}},w);H(D,w),$f(D),Nn({ref:o,onResize:D}),Nn({ref:r,onResize:D});let P=a.useRef(!1);H(()=>{let K,k=()=>{P.current=!0,clearTimeout(K),K=setTimeout(()=>{P.current=!1},500),D()},I=()=>{P.current&&k()};return G==null||G.addEventListener("resize",k),G==null||G.addEventListener("scroll",I),()=>{G==null||G.removeEventListener("resize",k),G==null||G.removeEventListener("scroll",I)}},[D]);let L=a.useCallback(()=>{P.current||b==null||b()},[b,P]);yf({triggerRef:r,isOpen:f,onClose:b&&L});var m,B;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...$==null?void 0:$.position,maxHeight:(m=$==null?void 0:$.maxHeight)!==null&&m!==void 0?m:"100vh"}},placement:(B=$==null?void 0:$.placement)!==null&&B!==void 0?B:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$==null?void 0:$.arrowOffsetLeft,top:$==null?void 0:$.arrowOffsetTop}},updatePosition:D}}function $f(t){H(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function xf(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const be=[];function Pf(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:l=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:s}=t;a.useEffect(()=>(o&&be.push(e),()=>{let b=be.indexOf(e);b>=0&&be.splice(b,1)}),[o,e]);let u=()=>{be[be.length-1]===e&&n&&n()},c=b=>{(!s||s(b.target))&&be[be.length-1]===e&&(b.stopPropagation(),b.preventDefault())},d=b=>{(!s||s(b.target))&&(be[be.length-1]===e&&(b.stopPropagation(),b.preventDefault()),u())},p=b=>{b.key==="Escape"&&!i&&!b.nativeEvent.isComposing&&(b.stopPropagation(),b.preventDefault(),u())};md({ref:e,onInteractOutside:l&&o?d:void 0,onInteractOutsideStart:c});let{focusWithinProps:v}=St({isDisabled:!r,onBlurWithin:b=>{!b.relatedTarget||Ed(b.relatedTarget)||(!s||s(b.relatedTarget))&&(n==null||n())}}),f=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:p,...v},underlayProps:{onPointerDown:f}}}function Wl(t,e,n){let{type:r}=t,{isOpen:o}=e;a.useEffect(()=>{n&&n.current&&jl.set(n.current,e.close)});let l;r==="menu"?l=!0:r==="listbox"&&(l="listbox");let i=Y();return{triggerProps:{"aria-haspopup":l,"aria-expanded":o,"aria-controls":o?i:void 0,onPress:e.toggle},overlayProps:{id:i}}}const Dn=typeof document<"u"&&window.visualViewport,Cf=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Nt=0,kn;function Sf(t={}){let{isDisabled:e}=t;H(()=>{if(!e)return Nt++,Nt===1&&(Qt()?kn=wf():kn=Ef()),()=>{Nt--,Nt===0&&kn()}},[e])}function Ef(){return ye(Je(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Je(document.documentElement,"overflow","hidden"))}function wf(){let t,e,n=c=>{t=Te(c.target,!0),!(t===document.documentElement&&t===document.body)&&t instanceof HTMLElement&&window.getComputedStyle(t).overscrollBehavior==="auto"&&(e=Je(t,"overscrollBehavior","contain"))},r=c=>{if(!t||t===document.documentElement||t===document.body){c.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&c.preventDefault()},o=()=>{e&&e()},l=c=>{let d=c.target;Df(d)&&(s(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",Dn&&(Dn.height<window.innerHeight?requestAnimationFrame(()=>{So(d)}):Dn.addEventListener("resize",()=>So(d),{once:!0}))}))},i=null,s=()=>{if(i)return;let c=()=>{window.scrollTo(0,0)},d=window.pageXOffset,p=window.pageYOffset;i=ye(ct(window,"scroll",c),Je(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Je(document.documentElement,"overflow","hidden"),Je(document.body,"marginTop",`-${p}px`),()=>{window.scrollTo(d,p)}),window.scrollTo(0,0)},u=ye(ct(document,"touchstart",n,{passive:!1,capture:!0}),ct(document,"touchmove",r,{passive:!1,capture:!0}),ct(document,"touchend",o,{passive:!1,capture:!0}),ct(document,"focus",l,!0));return()=>{e==null||e(),i==null||i(),u()}}function Je(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function ct(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function So(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=Te(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let o=r.getBoundingClientRect().top,l=n.getBoundingClientRect().top;l>o+n.clientHeight&&(r.scrollTop+=l-o)}n=r.parentElement}}function Df(t){return t instanceof HTMLInputElement&&!Cf.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}const Qn=a.createContext(null);function kf(t){let{children:e}=t,n=a.useContext(Qn),[r,o]=a.useState(0),l=a.useMemo(()=>({parent:n,modalCount:r,addModal(){o(i=>i+1),n&&n.addModal()},removeModal(){o(i=>i-1),n&&n.removeModal()}}),[n,r]);return a.createElement(Qn.Provider,{value:l},e)}function Tf(){let t=a.useContext(Qn);return{modalProviderProps:{"aria-hidden":t&&t.modalCount>0?!0:void 0}}}function Bf(t){let{modalProviderProps:e}=Tf();return a.createElement("div",{"data-overlay-container":!0,...t,...e})}function Rf(t){return a.createElement(kf,null,a.createElement(Bf,t))}function Af(t){let e=xe(),{portalContainer:n=e?null:document.body,...r}=t;if(a.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let o=a.createElement(Rf,r);return Ue.createPortal(o,n)}var _l={};_l={dismiss:"تجاهل"};var Ul={};Ul={dismiss:"Отхвърляне"};var Gl={};Gl={dismiss:"Odstranit"};var ql={};ql={dismiss:"Luk"};var Zl={};Zl={dismiss:"Schließen"};var Yl={};Yl={dismiss:"Απόρριψη"};var Xl={};Xl={dismiss:"Dismiss"};var Jl={};Jl={dismiss:"Descartar"};var Ql={};Ql={dismiss:"Lõpeta"};var ei={};ei={dismiss:"Hylkää"};var ti={};ti={dismiss:"Rejeter"};var ni={};ni={dismiss:"התעלם"};var ri={};ri={dismiss:"Odbaci"};var oi={};oi={dismiss:"Elutasítás"};var li={};li={dismiss:"Ignora"};var ii={};ii={dismiss:"閉じる"};var ai={};ai={dismiss:"무시"};var si={};si={dismiss:"Atmesti"};var ui={};ui={dismiss:"Nerādīt"};var ci={};ci={dismiss:"Lukk"};var di={};di={dismiss:"Negeren"};var fi={};fi={dismiss:"Zignoruj"};var pi={};pi={dismiss:"Descartar"};var vi={};vi={dismiss:"Dispensar"};var bi={};bi={dismiss:"Revocare"};var mi={};mi={dismiss:"Пропустить"};var gi={};gi={dismiss:"Zrušiť"};var hi={};hi={dismiss:"Opusti"};var yi={};yi={dismiss:"Odbaci"};var $i={};$i={dismiss:"Avvisa"};var xi={};xi={dismiss:"Kapat"};var Pi={};Pi={dismiss:"Скасувати"};var Ci={};Ci={dismiss:"取消"};var Si={};Si={dismiss:"關閉"};var Ei={};Ei={"ar-AE":_l,"bg-BG":Ul,"cs-CZ":Gl,"da-DK":ql,"de-DE":Zl,"el-GR":Yl,"en-US":Xl,"es-ES":Jl,"et-EE":Ql,"fi-FI":ei,"fr-FR":ti,"he-IL":ni,"hr-HR":ri,"hu-HU":oi,"it-IT":li,"ja-JP":ii,"ko-KR":ai,"lt-LT":si,"lv-LV":ui,"nb-NO":ci,"nl-NL":di,"pl-PL":fi,"pt-BR":pi,"pt-PT":vi,"ro-RO":bi,"ru-RU":mi,"sk-SK":gi,"sl-SI":hi,"sr-SP":yi,"sv-SE":$i,"tr-TR":xi,"uk-UA":Pi,"zh-CN":Ci,"zh-TW":Si};function Kf(t){return t&&t.__esModule?t.default:t}function Eo(t){let{onDismiss:e,...n}=t,r=rt(Kf(Ei),"@react-aria/overlays"),o=ul(n,r.format("dismiss")),l=()=>{e&&e()};return a.createElement(Ol,null,a.createElement("button",{...o,tabIndex:-1,onClick:l,style:{width:1,height:1}}))}let dt=new WeakMap,ie=[];function Ff(t,e=document.body){let n=new Set(t),r=new Set,o=u=>{for(let v of u.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(v);let c=v=>{if(n.has(v)||v.parentElement&&r.has(v.parentElement)&&v.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let f of n)if(v.contains(f))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(u,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),p=c(u);if(p===NodeFilter.FILTER_ACCEPT&&l(u),p!==NodeFilter.FILTER_REJECT){let v=d.nextNode();for(;v!=null;)l(v),v=d.nextNode()}},l=u=>{var c;let d=(c=dt.get(u))!==null&&c!==void 0?c:0;u.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&u.setAttribute("aria-hidden","true"),r.add(u),dt.set(u,d+1))};ie.length&&ie[ie.length-1].disconnect(),o(e);let i=new MutationObserver(u=>{for(let c of u)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(c.target))){for(let d of c.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of c.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&o(d)}});i.observe(e,{childList:!0,subtree:!0});let s={observe(){i.observe(e,{childList:!0,subtree:!0})},disconnect(){i.disconnect()}};return ie.push(s),()=>{i.disconnect();for(let u of r){let c=dt.get(u);c!=null&&(c===1?(u.removeAttribute("aria-hidden"),dt.delete(u)):dt.set(u,c-1))}s===ie[ie.length-1]?(ie.pop(),ie.length&&ie[ie.length-1].observe()):ie.splice(ie.indexOf(s),1)}}function Lf(t,e){let{triggerRef:n,popoverRef:r,isNonModal:o,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:i,...s}=t,{overlayProps:u,underlayProps:c}=Pf({isOpen:e.isOpen&&!s["data-react-aria-top-layer"],onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:i},r),{overlayProps:d,arrowProps:p,placement:v}=Vl({...s,targetRef:n,overlayRef:r,isOpen:e.isOpen,onClose:o?e.close:null});return Sf({isDisabled:o||!e.isOpen}),H(()=>{if(e.isOpen&&!o&&r.current)return Ff([r.current])},[o,e.isOpen,r]),{popoverProps:M(u,d),arrowProps:p,underlayProps:c,placement:v}}const If=a.createContext({});function Mf(){var t;return(t=a.useContext(If))!==null&&t!==void 0?t:{}}const wi=a.createContext(null);function zf(t){let e=xe(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[o,l]=a.useState(!1),i=a.useMemo(()=>({contain:o,setContain:l}),[o,l]),{getContainer:s}=Mf();if(!t.portalContainer&&s&&(n=s()),!n)return null;let u=t.children;return t.disableFocusManagement||(u=a.createElement(kl,{restoreFocus:!0,contain:o&&!r},u)),u=a.createElement(wi.Provider,{value:i},a.createElement(ad,null,u)),Ue.createPortal(u,n)}function Nf(){let t=a.useContext(wi),e=t==null?void 0:t.setContain;H(()=>{e==null||e(!0)},[e])}const hr=new WeakMap;function Of(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function Hf(t,e){let n=hr.get(t);if(!n)throw new Error("Unknown list");return`${n.id}-option-${Of(e)}`}function er(t){return Mc()?t.altKey:t.ctrlKey}const jf=1e3;function Di(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,o=a.useRef({search:"",timeout:void 0}).current,l=i=>{let s=Vf(i.key);if(!(!s||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target))){if(s===" "&&o.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.stopPropagation()),o.search+=s,e.getKeyForSearch!=null){let u=e.getKeyForSearch(o.search,n.focusedKey);u==null&&(u=e.getKeyForSearch(o.search)),u!=null&&(n.setFocusedKey(u),r&&r(u))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},jf)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?l:void 0}}}function Vf(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function Wf(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:l=!1,disallowEmptySelection:i=!1,disallowSelectAll:s=!1,selectOnFocus:u=e.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:p=!1,isVirtualized:v,scrollRef:f=r,linkBehavior:b="action"}=t,{direction:h}=Ce(),y=Ct(),$=g=>{var C;if(g.altKey&&g.key==="Tab"&&g.preventDefault(),!(!((C=r.current)===null||C===void 0)&&C.contains(g.target)))return;const F=(N,ze)=>{if(N!=null){if(e.isLink(N)&&b==="selection"&&u&&!er(g)){var we;Ue.flushSync(()=>{e.setFocusedKey(N,ze)});let Yr=(we=f.current)===null||we===void 0?void 0:we.querySelector(`[data-key="${CSS.escape(N.toString())}"]`),Xr=e.getItemProps(N);Yr&&y.open(Yr,g,Xr.href,Xr.routerOptions);return}if(e.setFocusedKey(N,ze),e.isLink(N)&&b==="override")return;g.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(N):u&&!er(g)&&e.replaceSelection(N)}};switch(g.key){case"ArrowDown":if(n.getKeyBelow){var A,z,T;let N=e.focusedKey!=null?(A=n.getKeyBelow)===null||A===void 0?void 0:A.call(n,e.focusedKey):(z=n.getFirstKey)===null||z===void 0?void 0:z.call(n);N==null&&l&&(N=(T=n.getFirstKey)===null||T===void 0?void 0:T.call(n,e.focusedKey)),N!=null&&(g.preventDefault(),F(N))}break;case"ArrowUp":if(n.getKeyAbove){var O,W,lt;let N=e.focusedKey!=null?(O=n.getKeyAbove)===null||O===void 0?void 0:O.call(n,e.focusedKey):(W=n.getLastKey)===null||W===void 0?void 0:W.call(n);N==null&&l&&(N=(lt=n.getLastKey)===null||lt===void 0?void 0:lt.call(n,e.focusedKey)),N!=null&&(g.preventDefault(),F(N))}break;case"ArrowLeft":if(n.getKeyLeftOf){var it,at,Me;let N=e.focusedKey!=null?(it=n.getKeyLeftOf)===null||it===void 0?void 0:it.call(n,e.focusedKey):null;N==null&&l&&(N=h==="rtl"?(at=n.getFirstKey)===null||at===void 0?void 0:at.call(n,e.focusedKey):(Me=n.getLastKey)===null||Me===void 0?void 0:Me.call(n,e.focusedKey)),N!=null&&(g.preventDefault(),F(N,h==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var st,At,bn;let N=e.focusedKey!=null?(st=n.getKeyRightOf)===null||st===void 0?void 0:st.call(n,e.focusedKey):null;N==null&&l&&(N=h==="rtl"?(At=n.getLastKey)===null||At===void 0?void 0:At.call(n,e.focusedKey):(bn=n.getFirstKey)===null||bn===void 0?void 0:bn.call(n,e.focusedKey)),N!=null&&(g.preventDefault(),F(N,h==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&g.shiftKey)return;g.preventDefault();let N=n.getFirstKey(e.focusedKey,Ye(g));e.setFocusedKey(N),N!=null&&(Ye(g)&&g.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(N):u&&e.replaceSelection(N))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&g.shiftKey)return;g.preventDefault();let N=n.getLastKey(e.focusedKey,Ye(g));e.setFocusedKey(N),N!=null&&(Ye(g)&&g.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(N):u&&e.replaceSelection(N))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let N=n.getKeyPageBelow(e.focusedKey);N!=null&&(g.preventDefault(),F(N))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let N=n.getKeyPageAbove(e.focusedKey);N!=null&&(g.preventDefault(),F(N))}break;case"a":Ye(g)&&e.selectionMode==="multiple"&&s!==!0&&(g.preventDefault(),e.selectAll());break;case"Escape":!i&&e.selectedKeys.size!==0&&(g.stopPropagation(),g.preventDefault(),e.clearSelection());break;case"Tab":if(!p){if(g.shiftKey)r.current.focus();else{let N=Q(r.current,{tabbable:!0}),ze,we;do we=N.lastChild(),we&&(ze=we);while(we);ze&&!ze.contains(document.activeElement)&&he(ze)}break}}},S=a.useRef({top:0,left:0});pt(f,"scroll",v?void 0:()=>{var g,C,F,A;S.current={top:(F=(g=f.current)===null||g===void 0?void 0:g.scrollTop)!==null&&F!==void 0?F:0,left:(A=(C=f.current)===null||C===void 0?void 0:C.scrollLeft)!==null&&A!==void 0?A:0}});let w=g=>{if(e.isFocused){g.currentTarget.contains(g.target)||e.setFocused(!1);return}if(g.currentTarget.contains(g.target)){if(e.setFocused(!0),e.focusedKey==null){var C,F;let T=W=>{W!=null&&(e.setFocusedKey(W),u&&e.replaceSelection(W))},O=g.relatedTarget;var A,z;O&&g.currentTarget.compareDocumentPosition(O)&Node.DOCUMENT_POSITION_FOLLOWING?T((A=e.lastSelectedKey)!==null&&A!==void 0?A:(C=n.getLastKey)===null||C===void 0?void 0:C.call(n)):T((z=e.firstSelectedKey)!==null&&z!==void 0?z:(F=n.getFirstKey)===null||F===void 0?void 0:F.call(n))}else!v&&f.current&&(f.current.scrollTop=S.current.top,f.current.scrollLeft=S.current.left);if(e.focusedKey!=null&&f.current){let T=f.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);T&&(T.contains(document.activeElement)||he(T),$t()==="keyboard"&&Be(T,{containingElement:r.current}))}}},R=g=>{g.currentTarget.contains(g.relatedTarget)||e.setFocused(!1)},D=a.useRef(!1);pt(r,Zc,d?g=>{let{detail:C}=g;g.stopPropagation(),e.setFocused(!0),(C==null?void 0:C.focusStrategy)==="first"&&(D.current=!0)}:void 0);let P=J(()=>{var g,C;let F=(C=(g=n.getFirstKey)===null||g===void 0?void 0:g.call(n))!==null&&C!==void 0?C:null;if(F==null){var A;(A=r.current)===null||A===void 0||A.dispatchEvent(new CustomEvent(dl,{cancelable:!0,bubbles:!0})),e.collection.size>0&&(D.current=!1)}else e.setFocusedKey(F),D.current=!1});Qr(()=>{D.current&&P()},[e.collection,P]);let L=J(()=>{e.collection.size>0&&(D.current=!1)});Qr(()=>{L()},[e.focusedKey,L]),pt(r,qc,d?g=>{g.stopPropagation(),e.setFocused(!1),e.setFocusedKey(null)}:void 0);const m=a.useRef(o);a.useEffect(()=>{if(m.current){var g,C;let z=null;var F;o==="first"&&(z=(F=(g=n.getFirstKey)===null||g===void 0?void 0:g.call(n))!==null&&F!==void 0?F:null);var A;o==="last"&&(z=(A=(C=n.getLastKey)===null||C===void 0?void 0:C.call(n))!==null&&A!==void 0?A:null);let T=e.selectedKeys;if(T.size){for(let O of T)if(e.canSelectItem(O)){z=O;break}}e.setFocused(!0),e.setFocusedKey(z),z==null&&!d&&r.current&&ne(r.current)}},[]);let B=a.useRef(e.focusedKey);a.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==B.current||m.current)&&f.current&&r.current){let g=$t(),C=r.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);if(!C)return;(g==="keyboard"||m.current)&&(cl(f.current,C),g!=="virtual"&&Be(C,{containingElement:r.current}))}!d&&e.isFocused&&e.focusedKey==null&&B.current!=null&&r.current&&ne(r.current),B.current=e.focusedKey,m.current=!1}),pt(r,"react-aria-focus-scope-restore",g=>{g.preventDefault(),e.setFocused(!0)});let K={onKeyDown:$,onFocus:w,onBlur:R,onMouseDown(g){f.current===g.target&&g.preventDefault()}},{typeSelectProps:k}=Di({keyboardDelegate:n,selectionManager:e});c||(K=M(k,K));let I;return d?I=-1:I=e.focusedKey==null?0:-1,{collectionProps:{...K,tabIndex:I}}}function ki(t){let{id:e,selectionManager:n,key:r,ref:o,shouldSelectOnPressUp:l,shouldUseVirtualFocus:i,focus:s,isDisabled:u,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:p="action"}=t,v=Ct();e=Y(e);let f=T=>{if(T.pointerType==="keyboard"&&er(T))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(p==="selection"&&o.current){let O=n.getItemProps(r);v.open(o.current,T,O.href,O.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):T&&T.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||T&&(Ye(T)||T.pointerType==="touch"||T.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};a.useEffect(()=>{if(r===n.focusedKey&&n.isFocused)if(!i)s?s():document.activeElement!==o.current&&o.current&&ne(o.current);else{var O;let W=new CustomEvent(dl,{cancelable:!0,bubbles:!0});(O=o.current)===null||O===void 0||O.dispatchEvent(W)}},[o,r,n.focusedKey,n.childFocusStrategy,n.isFocused,i]),u=u||n.isDisabled(r);let b={};!i&&!u?b={tabIndex:r===n.focusedKey?0:-1,onFocus(T){T.target===o.current&&n.setFocusedKey(r)}}:u&&(b.onMouseDown=T=>{T.preventDefault()});let h=n.isLink(r)&&p==="override",y=n.isLink(r)&&p!=="selection"&&p!=="none",$=!u&&n.canSelectItem(r)&&!h,S=(c||y)&&!u,w=S&&(n.selectionBehavior==="replace"?!$:!$||n.isEmpty),R=S&&$&&n.selectionBehavior==="replace",D=w||R,P=a.useRef(null),L=D&&$,m=a.useRef(!1),B=a.useRef(!1),K=T=>{if(c&&c(),y&&o.current){let O=n.getItemProps(r);v.open(o.current,T,O.href,O.routerOptions)}},k={};l?(k.onPressStart=T=>{P.current=T.pointerType,m.current=L,T.pointerType==="keyboard"&&(!D||Do())&&f(T)},d?(k.onPressUp=w?void 0:T=>{T.pointerType==="mouse"&&$&&f(T)},k.onPress=w?K:T=>{T.pointerType!=="keyboard"&&T.pointerType!=="mouse"&&$&&f(T)}):k.onPress=T=>{if(w||R&&T.pointerType!=="mouse"){if(T.pointerType==="keyboard"&&!wo())return;K(T)}else T.pointerType!=="keyboard"&&$&&f(T)}):(k.onPressStart=T=>{P.current=T.pointerType,m.current=L,B.current=w,$&&(T.pointerType==="mouse"&&!w||T.pointerType==="keyboard"&&(!S||Do()))&&f(T)},k.onPress=T=>{(T.pointerType==="touch"||T.pointerType==="pen"||T.pointerType==="virtual"||T.pointerType==="keyboard"&&D&&wo()||T.pointerType==="mouse"&&B.current)&&(D?K(T):$&&f(T))}),b["data-key"]=r,k.preventFocusOnPress=i;let{pressProps:I,isPressed:g}=We(k),C=R?T=>{P.current==="mouse"&&(T.stopPropagation(),T.preventDefault(),K(T))}:void 0,{longPressProps:F}=wl({isDisabled:!L,onLongPress(T){T.pointerType==="touch"&&(f(T),n.setSelectionBehavior("toggle"))}}),A=T=>{P.current==="touch"&&m.current&&T.preventDefault()},z=n.isLink(r)?T=>{Ve.isOpening||T.preventDefault()}:void 0;return{itemProps:M(b,$||w?I:{},L?F:{},{onDoubleClick:C,onDragStartCapture:A,onClick:z,id:e}),isPressed:g,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:u,allowsSelection:$,hasAction:D}}function wo(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function Do(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class ko{getItemRect(e){let n=this.ref.current;if(!n)return null;let r=e!=null?n.querySelector(`[data-key="${CSS.escape(e.toString())}"]`):null;if(!r)return null;let o=n.getBoundingClientRect(),l=r.getBoundingClientRect();return{x:l.left-o.left+n.scrollLeft,y:l.top-o.top+n.scrollTop,width:l.width,height:l.height}}getContentSize(){let e=this.ref.current;var n,r;return{width:(n=e==null?void 0:e.scrollWidth)!==null&&n!==void 0?n:0,height:(r=e==null?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var n,r,o,l;return{x:(n=e==null?void 0:e.scrollLeft)!==null&&n!==void 0?n:0,y:(r=e==null?void 0:e.scrollTop)!==null&&r!==void 0?r:0,width:(o=e==null?void 0:e.offsetWidth)!==null&&o!==void 0?o:0,height:(l=e==null?void 0:e.offsetHeight)!==null&&l!==void 0?l:0}}constructor(e){this.ref=e}}class on{isDisabled(e){var n;return this.disabledBehavior==="all"&&(((n=e.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,n){let r=e;for(;r!=null;){let o=this.collection.getItem(r);if((o==null?void 0:o.type)==="item"&&!this.isDisabled(o))return r;r=n(r)}return null}getNextKey(e){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(e,n,r){let o=e,l=this.layoutDelegate.getItemRect(o);if(!l||o==null)return null;let i=l;do{if(o=n(o),o==null)break;l=this.layoutDelegate.getItemRect(o)}while(l&&r(i,l)&&o!=null);return o}isSameRow(e,n){return e.y===n.y||e.x!==n.x}isSameColumn(e,n){return e.x===n.x||e.y!==n.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,n){return n?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyAfter(n))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!gt(n))return this.getFirstKey();let o=e;if(this.orientation==="horizontal"){let l=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>l&&o!=null;)o=this.getKeyAbove(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}else{let l=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>l&&o!=null;)o=this.getKeyAbove(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!gt(n))return this.getLastKey();let o=e;if(this.orientation==="horizontal"){let l=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<l&&o!=null;)o=this.getKeyBelow(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}else{let l=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<l&&o!=null;)o=this.getKeyBelow(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(e,n){if(!this.collator)return null;let r=this.collection,o=n||this.getFirstKey();for(;o!=null;){let l=r.getItem(o);if(!l)return null;let i=l.textValue.slice(0,e.length);if(l.textValue&&this.collator.compare(i,e)===0)return o;o=this.getNextKey(o)}return null}constructor(...e){if(e.length===1){let n=e[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new ko(n.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new ko(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Ti(t){let{selectionManager:e,collection:n,disabledKeys:r,ref:o,keyboardDelegate:l,layoutDelegate:i}=t,s=vr({usage:"search",sensitivity:"base"}),u=e.disabledBehavior,c=a.useMemo(()=>l||new on({collection:n,disabledKeys:r,disabledBehavior:u,ref:o,collator:s,layoutDelegate:i}),[l,i,n,r,o,s,u]),{collectionProps:d}=Wf({...t,ref:o,selectionManager:e,keyboardDelegate:c});return{listProps:d}}function _f(t,e,n){let r=_(t,{labelable:!0}),o=t.selectionBehavior||"toggle",l=t.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&l==="action"&&(l="override");let{listProps:i}=Ti({...t,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:l}),{focusWithinProps:s}=St({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),u=Y(t.id);hr.set(e,{id:u,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:l});let{labelProps:c,fieldProps:d}=gr({...t,id:u,labelElementType:"span"});return{labelProps:c,listBoxProps:M(r,s,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...M(d,i)})}}class Uf{build(e,n){return this.context=n,To(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(a.isValidElement(n)&&n.type===a.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 o=0;for(let l of r)yield*this.getFullNode({value:l,index:o},{renderer:n}),o++}else{let o=[];a.Children.forEach(n,i=>{i&&o.push(i)});let l=0;for(let i of o){let s=this.getFullNode({element:i,index:l},{});for(let u of s)l++,yield u}}}getKey(e,n,r,o){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let l=n.value;if(l!=null){var i;let s=(i=l.key)!==null&&i!==void 0?i:l.id;if(s==null)throw new Error("No key found for item");return s}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,r,o){if(a.isValidElement(e.element)&&e.element.type===a.Fragment){let y=[];a.Children.forEach(e.element.props.children,S=>{y.push(S)});var l;let $=(l=e.index)!==null&&l!==void 0?l:0;for(const S of y)yield*this.getFullNode({element:S,index:$++},n,r,o);return}let i=e.element;if(!i&&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=o?o.key:null,yield y;return}i=n.renderer(e.value)}if(a.isValidElement(i)){let y=i.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let R=i.type;throw new Error(`Unknown element <${R}> in collection.`)}let $=y.getCollectionNode(i.props,this.context);var s;let S=(s=e.index)!==null&&s!==void 0?s:0,w=$.next();for(;!w.done&&w.value;){let R=w.value;e.index=S;var u;let D=(u=R.key)!==null&&u!==void 0?u:null;D==null&&(D=R.element?null:this.getKey(i,e,n,r));let L=[...this.getFullNode({...R,key:D,index:S,wrapper:Gf(e.wrapper,R.wrapper)},this.getChildState(n,R),r?`${r}${i.key}`:i.key,o)];for(let m of L){var c,d;m.value=(d=(c=R.value)!==null&&c!==void 0?c:e.value)!==null&&d!==void 0?d:null,m.value&&this.cache.set(m.value,m);var p;if(e.type&&m.type!==e.type)throw new Error(`Unsupported type <${Tn(m.type)}> in <${Tn((p=o==null?void 0:o.type)!==null&&p!==void 0?p:"unknown parent type")}>. Only <${Tn(e.type)}> is supported.`);S++,yield m}w=$.next(L)}return}if(e.key==null||e.type==null)return;let v=this;var f,b;let h={type:e.type,props:e.props,key:e.key,parentKey:o?o.key:null,value:(f=e.value)!==null&&f!==void 0?f:null,level:o?o.level+1:0,index:e.index,rendered:e.rendered,textValue:(b=e.textValue)!==null&&b!==void 0?b:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:To(function*(){if(!e.hasChildNodes||!e.childNodes)return;let y=0;for(let $ of e.childNodes()){$.key!=null&&($.key=`${h.key}${$.key}`);let S=v.getFullNode({...$,index:y},v.getChildState(n,$),h.key,h);for(let w of S)y++,yield w}})};yield h}constructor(){this.cache=new WeakMap}}function To(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 Gf(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function Tn(t){return t[0].toUpperCase()+t.slice(1)}function qf(t,e,n){let r=a.useMemo(()=>new Uf,[]),{children:o,items:l,collection:i}=t;return a.useMemo(()=>{if(i)return i;let u=r.build({children:o,items:l},n);return e(u)},[r,o,l,i,n,e])}function Bi(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function Zf(t){return Yf(t)}function Yf(t,e){for(let n of t)return n}function Xf(t){let e;for(let n of t)e=n;return e}function Bn(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...Bo(t,e),e],o=[...Bo(t,n),n],l=r.slice(0,o.length).findIndex((i,s)=>i!==o[s]);return l!==-1?(e=r[l],n=o[l],e.index-n.index):r.findIndex(i=>i===n)>=0?1:(o.findIndex(i=>i===e)>=0,-1)}function Bo(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 Ro=new WeakMap;function Jf(t){let e=Ro.get(t);if(e!=null)return e;let n=0,r=o=>{for(let l of o)l.type==="section"?r(Bi(l,t)):n++};return r(t),Ro.set(t,n),n}function Qf(t,e,n){var r,o;let{key:l}=t,i=hr.get(e);var s;let u=(s=t.isDisabled)!==null&&s!==void 0?s:e.selectionManager.isDisabled(l);var c;let d=(c=t.isSelected)!==null&&c!==void 0?c:e.selectionManager.isSelected(l);var p;let v=(p=t.shouldSelectOnPressUp)!==null&&p!==void 0?p:i==null?void 0:i.shouldSelectOnPressUp;var f;let b=(f=t.shouldFocusOnHover)!==null&&f!==void 0?f:i==null?void 0:i.shouldFocusOnHover;var h;let y=(h=t.shouldUseVirtualFocus)!==null&&h!==void 0?h:i==null?void 0:i.shouldUseVirtualFocus;var $;let S=($=t.isVirtualized)!==null&&$!==void 0?$:i==null?void 0:i.isVirtualized,w=et(),R=et(),D={role:"option","aria-disabled":u||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?d:void 0};Fe()&&ir()||(D["aria-label"]=t["aria-label"],D["aria-labelledby"]=w,D["aria-describedby"]=R);let P=e.collection.getItem(l);if(S){let z=Number(P==null?void 0:P.index);D["aria-posinset"]=Number.isNaN(z)?void 0:z+1,D["aria-setsize"]=Jf(e.collection)}let L=i!=null&&i.onAction?()=>{var z;return i==null||(z=i.onAction)===null||z===void 0?void 0:z.call(i,l)}:void 0,m=Hf(e,l),{itemProps:B,isPressed:K,isFocused:k,hasAction:I,allowsSelection:g}=ki({selectionManager:e.selectionManager,key:l,ref:n,shouldSelectOnPressUp:v,allowsDifferentPressOrigin:v&&b,isVirtualized:S,shouldUseVirtualFocus:y,isDisabled:u,onAction:L||!(P==null||(r=P.props)===null||r===void 0)&&r.onAction?ye(P==null||(o=P.props)===null||o===void 0?void 0:o.onAction,L):void 0,linkBehavior:i==null?void 0:i.linkBehavior,id:m}),{hoverProps:C}=Ie({isDisabled:u||!b,onHoverStart(){tt()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(l))}}),F=_(P==null?void 0:P.props);delete F.id;let A=il(P==null?void 0:P.props);return{optionProps:{...D,...M(F,B,C,A),id:m},labelProps:{id:w},descriptionProps:{id:R},isFocused:k,isFocusVisible:k&&tt(),isSelected:d,isDisabled:u,isPressed:K,allowsSelection:g,hasAction:I}}function ep(t){let{heading:e,"aria-label":n}=t,r=Y();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}var Ri={};Ri={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Ai={};Ai={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Ki={};Ki={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Fi={};Fi={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Li={};Li={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Ii={};Ii={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Mi={};Mi={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var zi={};zi={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Ni={};Ni={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Oi={};Oi={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var Hi={};Hi={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var ji={};ji={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Vi={};Vi={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Wi={};Wi={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var _i={};_i={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var Ui={};Ui={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Gi={};Gi={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var qi={};qi={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Zi={};Zi={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Yi={};Yi={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Xi={};Xi={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Ji={};Ji={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Qi={};Qi={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var ea={};ea={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var ta={};ta={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var na={};na={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var ra={};ra={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var oa={};oa={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var la={};la={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var ia={};ia={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var aa={};aa={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var sa={};sa={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var ua={};ua={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var ca={};ca={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var da={};da={"ar-AE":Ri,"bg-BG":Ai,"cs-CZ":Ki,"da-DK":Fi,"de-DE":Li,"el-GR":Ii,"en-US":Mi,"es-ES":zi,"et-EE":Ni,"fi-FI":Oi,"fr-FR":Hi,"he-IL":ji,"hr-HR":Vi,"hu-HU":Wi,"it-IT":_i,"ja-JP":Ui,"ko-KR":Gi,"lt-LT":qi,"lv-LV":Zi,"nb-NO":Yi,"nl-NL":Xi,"pl-PL":Ji,"pt-BR":Qi,"pt-PT":ea,"ro-RO":ta,"ru-RU":na,"sk-SK":ra,"sl-SI":oa,"sr-SP":la,"sv-SE":ia,"tr-TR":aa,"uk-UA":sa,"zh-CN":ua,"zh-TW":ca};function tp(t){return t&&t.__esModule?t.default:t}function np(t,e,n){let{type:r="menu",isDisabled:o,trigger:l="press"}=t,i=Y(),{triggerProps:s,overlayProps:u}=Wl({type:r},e,n),c=f=>{if(!o&&!(l==="longPress"&&!f.altKey)&&n&&n.current)switch(f.key){case"Enter":case" ":if(l==="longPress")return;case"ArrowDown":"continuePropagation"in f||f.stopPropagation(),f.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in f||f.stopPropagation(),f.preventDefault(),e.toggle("last");break;default:"continuePropagation"in f&&f.continuePropagation()}},d=rt(tp(da),"@react-aria/menu"),{longPressProps:p}=wl({isDisabled:o||l!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),v={onPressStart(f){f.pointerType!=="touch"&&f.pointerType!=="keyboard"&&!o&&e.open(f.pointerType==="virtual"?"first":null)},onPress(f){f.pointerType==="touch"&&!o&&e.toggle()}};return delete s.onPress,{menuTriggerProps:{...s,...l==="press"?v:p,id:i,onKeyDown:c},menuProps:{...u,"aria-labelledby":i,autoFocus:e.focusStrategy||!0,onClose:e.close}}}function rp(t,e){let{role:n="dialog"}=t,r=et();r=t["aria-label"]?void 0:r;let o=a.useRef(!1);return a.useEffect(()=>{if(e.current&&!e.current.contains(document.activeElement)){ne(e.current);let l=setTimeout(()=>{document.activeElement===e.current&&(o.current=!0,e.current&&(e.current.blur(),ne(e.current)),o.current=!1)},500);return()=>{clearTimeout(l)}}},[e]),Nf(),{dialogProps:{..._(t,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||r,onBlur:l=>{o.current&&l.stopPropagation()}},titleProps:{id:r}}}function op(t,e,n){let{isDisabled:r}=t,o=Y(),l=Y(),s=!xe()&&"onbeforematch"in document.body,u=a.useRef(null),c=a.useCallback(()=>{u.current=requestAnimationFrame(()=>{n.current&&n.current.setAttribute("hidden","until-found")}),Ue.flushSync(()=>{e.toggle()})},[n,e]);return pt(n,"beforematch",s?c:null),H(()=>{u.current&&cancelAnimationFrame(u.current),s&&n.current&&!r&&(e.isExpanded?n.current.removeAttribute("hidden"):n.current.setAttribute("hidden","until-found"))},[r,n,e.isExpanded,s]),a.useEffect(()=>()=>{u.current&&cancelAnimationFrame(u.current)},[]),{buttonProps:{id:o,"aria-expanded":e.isExpanded,"aria-controls":l,onPress:d=>{!r&&d.pointerType!=="keyboard"&&e.toggle()},isDisabled:r,onPressStart(d){d.pointerType==="keyboard"&&!r&&e.toggle()}},panelProps:{id:l,role:"group","aria-labelledby":o,"aria-hidden":!e.isExpanded,hidden:s?!0:!e.isExpanded}}}const yr=new WeakMap;function Ao(t,e){var n;let{id:r}=(n=yr.get(t))!==null&&n!==void 0?n:{};if(!r)throw new Error("Unknown list");return`${r}-${lp(e)}`}function lp(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}var fa={};fa={deselectedItem:t=>`${t.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${e.number(t.count)} عنصر محدد`,other:()=>`${e.number(t.count)} عنصر محدد`})}.`,selectedItem:t=>`${t.item} المحدد`};var pa={};pa={deselectedItem:t=>`${t.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Няма избрани елементи",one:()=>`${e.number(t.count)} избран елемент`,other:()=>`${e.number(t.count)} избрани елементи`})}.`,selectedItem:t=>`${t.item} избран.`};var va={};va={deselectedItem:t=>`Položka ${t.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${e.number(t.count)} položka`,other:()=>`Vybráno ${e.number(t.count)} položek`})}.`,selectedItem:t=>`Vybrána položka ${t.item}.`};var ba={};ba={deselectedItem:t=>`${t.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ingen elementer valgt",one:()=>`${e.number(t.count)} element valgt`,other:()=>`${e.number(t.count)} elementer valgt`})}.`,selectedItem:t=>`${t.item} valgt.`};var ma={};ma={deselectedItem:t=>`${t.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${e.number(t.count)} Element ausgewählt`,other:()=>`${e.number(t.count)} Elemente ausgewählt`})}.`,selectedItem:t=>`${t.item} ausgewählt.`};var ga={};ga={deselectedItem:t=>`Δεν επιλέχθηκε το στοιχείο ${t.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${e.number(t.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${e.number(t.count)} στοιχεία`})}.`,selectedItem:t=>`Επιλέχθηκε το στοιχείο ${t.item}.`};var ha={};ha={deselectedItem:t=>`${t.item} not selected.`,select:"Select",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"No items selected",one:()=>`${e.number(t.count)} item selected`,other:()=>`${e.number(t.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:t=>`${t.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var ya={};ya={deselectedItem:t=>`${t.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ningún elemento seleccionado",one:()=>`${e.number(t.count)} elemento seleccionado`,other:()=>`${e.number(t.count)} elementos seleccionados`})}.`,selectedItem:t=>`${t.item} seleccionado.`};var $a={};$a={deselectedItem:t=>`${t.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Üksusi pole valitud",one:()=>`${e.number(t.count)} üksus valitud`,other:()=>`${e.number(t.count)} üksust valitud`})}.`,selectedItem:t=>`${t.item} valitud.`};var xa={};xa={deselectedItem:t=>`Kohdetta ${t.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${e.number(t.count)} kohde valittu`,other:()=>`${e.number(t.count)} kohdetta valittu`})}.`,selectedItem:t=>`${t.item} valittu.`};var Pa={};Pa={deselectedItem:t=>`${t.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Aucun élément sélectionné",one:()=>`${e.number(t.count)} élément sélectionné`,other:()=>`${e.number(t.count)} éléments sélectionnés`})}.`,selectedItem:t=>`${t.item} sélectionné.`};var Ca={};Ca={deselectedItem:t=>`${t.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${e.number(t.count)} נבחר`,other:()=>`${e.number(t.count)} פריטים נבחרו`})}.`,selectedItem:t=>`${t.item} נבחר.`};var Sa={};Sa={deselectedItem:t=>`Stavka ${t.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${e.number(t.count)} stavka`,other:()=>`Odabrano je ${e.number(t.count)} stavki`})}.`,selectedItem:t=>`Stavka ${t.item} je odabrana.`};var Ea={};Ea={deselectedItem:t=>`${t.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${e.number(t.count)} elem kijelölve`,other:()=>`${e.number(t.count)} elem kijelölve`})}.`,selectedItem:t=>`${t.item} kijelölve.`};var wa={};wa={deselectedItem:t=>`${t.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nessun elemento selezionato",one:()=>`${e.number(t.count)} elemento selezionato`,other:()=>`${e.number(t.count)} elementi selezionati`})}.`,selectedItem:t=>`${t.item} selezionato.`};var Da={};Da={deselectedItem:t=>`${t.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"項目が選択されていません",one:()=>`${e.number(t.count)} 項目を選択しました`,other:()=>`${e.number(t.count)} 項目を選択しました`})}。`,selectedItem:t=>`${t.item} を選択しました。`};var ka={};ka={deselectedItem:t=>`${t.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"선택된 항목이 없습니다",one:()=>`${e.number(t.count)}개 항목이 선택되었습니다`,other:()=>`${e.number(t.count)}개 항목이 선택되었습니다`})}.`,selectedItem:t=>`${t.item}이(가) 선택되었습니다.`};var Ta={};Ta={deselectedItem:t=>`${t.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${e.number(t.count)} elementas`,other:()=>`Pasirinkta elementų: ${e.number(t.count)}`})}.`,selectedItem:t=>`Pasirinkta: ${t.item}.`};var Ba={};Ba={deselectedItem:t=>`Vienums ${t.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${e.number(t.count)}`,other:()=>`Atlasīto vienumu skaits: ${e.number(t.count)}`})}.`,selectedItem:t=>`Atlasīts vienums ${t.item}.`};var Ra={};Ra={deselectedItem:t=>`${t.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ingen elementer er valgt",one:()=>`${e.number(t.count)} element er valgt`,other:()=>`${e.number(t.count)} elementer er valgt`})}.`,selectedItem:t=>`${t.item} er valgt.`};var Aa={};Aa={deselectedItem:t=>`${t.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Geen items geselecteerd",one:()=>`${e.number(t.count)} item geselecteerd`,other:()=>`${e.number(t.count)} items geselecteerd`})}.`,selectedItem:t=>`${t.item} geselecteerd.`};var Ka={};Ka={deselectedItem:t=>`Nie zaznaczono ${t.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${e.number(t.count)} zaznaczony element`,other:()=>`${e.number(t.count)} zaznaczonych elementów`})}.`,selectedItem:t=>`Zaznaczono ${t.item}.`};var Fa={};Fa={deselectedItem:t=>`${t.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nenhum item selecionado",one:()=>`${e.number(t.count)} item selecionado`,other:()=>`${e.number(t.count)} itens selecionados`})}.`,selectedItem:t=>`${t.item} selecionado.`};var La={};La={deselectedItem:t=>`${t.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nenhum item selecionado",one:()=>`${e.number(t.count)} item selecionado`,other:()=>`${e.number(t.count)} itens selecionados`})}.`,selectedItem:t=>`${t.item} selecionado.`};var Ia={};Ia={deselectedItem:t=>`${t.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Niciun element selectat",one:()=>`${e.number(t.count)} element selectat`,other:()=>`${e.number(t.count)} elemente selectate`})}.`,selectedItem:t=>`${t.item} selectat.`};var Ma={};Ma={deselectedItem:t=>`${t.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Нет выбранных элементов",one:()=>`${e.number(t.count)} элемент выбран`,other:()=>`${e.number(t.count)} элементов выбрано`})}.`,selectedItem:t=>`${t.item} выбрано.`};var za={};za={deselectedItem:t=>`Nevybraté položky: ${t.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Žiadne vybraté položky",one:()=>`${e.number(t.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${e.number(t.count)}`})}.`,selectedItem:t=>`Vybraté položky: ${t.item}.`};var Na={};Na={deselectedItem:t=>`Element ${t.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Noben element ni izbran",one:()=>`${e.number(t.count)} element je izbran`,other:()=>`${e.number(t.count)} elementov je izbranih`})}.`,selectedItem:t=>`Element ${t.item} je izbran.`};var Oa={};Oa={deselectedItem:t=>`${t.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${e.number(t.count)} stavka`,other:()=>`Izabrano je ${e.number(t.count)} stavki`})}.`,selectedItem:t=>`${t.item} je izabrano.`};var Ha={};Ha={deselectedItem:t=>`${t.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Inga markerade objekt",one:()=>`${e.number(t.count)} markerat objekt`,other:()=>`${e.number(t.count)} markerade objekt`})}.`,selectedItem:t=>`${t.item} markerat.`};var ja={};ja={deselectedItem:t=>`${t.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${e.number(t.count)} öge seçildi`,other:()=>`${e.number(t.count)} öge seçildi`})}.`,selectedItem:t=>`${t.item} seçildi.`};var Va={};Va={deselectedItem:t=>`${t.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Жодних елементів не вибрано",one:()=>`${e.number(t.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${e.number(t.count)}`})}.`,selectedItem:t=>`${t.item} вибрано.`};var Wa={};Wa={deselectedItem:t=>`未选择 ${t.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"未选择项目",one:()=>`已选择 ${e.number(t.count)} 个项目`,other:()=>`已选择 ${e.number(t.count)} 个项目`})}。`,selectedItem:t=>`已选择 ${t.item}。`};var _a={};_a={deselectedItem:t=>`未選取「${t.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"未選取任何項目",one:()=>`已選取 ${e.number(t.count)} 個項目`,other:()=>`已選取 ${e.number(t.count)} 個項目`})}。`,selectedItem:t=>`已選取「${t.item}」。`};var $r={};$r={"ar-AE":fa,"bg-BG":pa,"cs-CZ":va,"da-DK":ba,"de-DE":ma,"el-GR":ga,"en-US":ha,"es-ES":ya,"et-EE":$a,"fi-FI":xa,"fr-FR":Pa,"he-IL":Ca,"hr-HR":Sa,"hu-HU":Ea,"it-IT":wa,"ja-JP":Da,"ko-KR":ka,"lt-LT":Ta,"lv-LV":Ba,"nb-NO":Ra,"nl-NL":Aa,"pl-PL":Ka,"pt-BR":Fa,"pt-PT":La,"ro-RO":Ia,"ru-RU":Ma,"sk-SK":za,"sl-SI":Na,"sr-SP":Oa,"sv-SE":Ha,"tr-TR":ja,"uk-UA":Va,"zh-CN":Wa,"zh-TW":_a};function ip(t){return t&&t.__esModule?t.default:t}function ap(t,e){let{getRowText:n=i=>{var s,u,c,d;return(d=(s=(u=e.collection).getTextValue)===null||s===void 0?void 0:s.call(u,i))!==null&&d!==void 0?d:(c=e.collection.getItem(i))===null||c===void 0?void 0:c.textValue}}=t,r=rt(ip($r),"@react-aria/grid"),o=e.selectionManager.rawSelection,l=a.useRef(o);Vc(()=>{var i;if(!e.selectionManager.isFocused){l.current=o;return}let s=Ko(o,l.current),u=Ko(l.current,o),c=e.selectionManager.selectionBehavior==="replace",d=[];if(e.selectionManager.selectedKeys.size===1&&c){if(e.collection.getItem(e.selectionManager.selectedKeys.keys().next().value)){let p=n(e.selectionManager.selectedKeys.keys().next().value);p&&d.push(r.format("selectedItem",{item:p}))}}else if(s.size===1&&u.size===0){let p=n(s.keys().next().value);p&&d.push(r.format("selectedItem",{item:p}))}else if(u.size===1&&s.size===0&&e.collection.getItem(u.keys().next().value)){let p=n(u.keys().next().value);p&&d.push(r.format("deselectedItem",{item:p}))}e.selectionManager.selectionMode==="multiple"&&(d.length===0||o==="all"||o.size>1||l.current==="all"||((i=l.current)===null||i===void 0?void 0:i.size)>1)&&d.push(o==="all"?r.format("selectedAll"):r.format("selectedCount",{count:o.size})),d.length>0&&Zn(d.join(" ")),l.current=o},[o])}function Ko(t,e){let n=new Set;if(t==="all"||e==="all")return n;for(let r of t.keys())e.has(r)||n.add(r);return n}function sp(t){return t&&t.__esModule?t.default:t}function up(t){let e=rt(sp($r),"@react-aria/grid"),n=El(),r=(n==="pointer"||n==="virtual"||n==null)&&typeof window<"u"&&"ontouchstart"in window,o=a.useMemo(()=>{let i=t.selectionManager.selectionMode,s=t.selectionManager.selectionBehavior,u;return r&&(u=e.format("longPressToSelect")),s==="replace"&&i!=="none"&&t.hasItemActions?u:void 0},[t.selectionManager.selectionMode,t.selectionManager.selectionBehavior,t.hasItemActions,e,r]);return ur(o)}function cp(t,e,n){let{isVirtualized:r,keyboardDelegate:o,layoutDelegate:l,onAction:i,linkBehavior:s="action",keyboardNavigationBehavior:u="arrow"}=t;!t["aria-label"]&&!t["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:c}=Ti({selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,ref:n,keyboardDelegate:o,layoutDelegate:l,isVirtualized:r,selectOnFocus:e.selectionManager.selectionBehavior==="replace",shouldFocusWrap:t.shouldFocusWrap,linkBehavior:s}),d=Y(t.id);yr.set(e,{id:d,onAction:i,linkBehavior:s,keyboardNavigationBehavior:u});let p=up({selectionManager:e.selectionManager,hasItemActions:!!i}),v=Ad(n,{isDisabled:e.collection.size!==0}),f=_(t,{labelable:!0}),b=M(f,{role:"grid",id:d,"aria-multiselectable":e.selectionManager.selectionMode==="multiple"?"true":void 0},e.collection.size===0?{tabIndex:v?-1:0}:c,p);return r&&(b["aria-rowcount"]=e.collection.size,b["aria-colcount"]=1),ap({},e),{gridProps:b}}const Fo={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function dp(t,e,n){var r,o;let{node:l,isVirtualized:i,shouldSelectOnPressUp:s}=t,{direction:u}=Ce(),{onAction:c,linkBehavior:d,keyboardNavigationBehavior:p}=yr.get(e),v=et(),f=a.useRef(null),b=()=>{var A;n.current!==null&&(f.current!=null&&l.key!==f.current||!(!((A=n.current)===null||A===void 0)&&A.contains(document.activeElement)))&&ne(n.current)},h={},y,$=e.selectionManager.isLink(l.key);if(l!=null&&"expandedKeys"in e){var S,w,R;let A=(S=(w=e.collection).getChildren)===null||S===void 0?void 0:S.call(w,l.key);y=[...A??[]].length>1,c==null&&!$&&e.selectionManager.selectionMode==="none"&&y&&(c=()=>e.toggleKey(l.key));let z=y?e.expandedKeys.has(l.key):void 0,T=1;var D;if(l.level>0&&(l==null?void 0:l.parentKey)!=null){let O=e.collection.getItem(l.parentKey);if(O){var P,L;let W=(P=(L=e.collection).getChildren)===null||P===void 0?void 0:P.call(L,O.key);T=Xf(W).index+1}}else T=((D=(R=[...e.collection].filter(O=>O.level===0).at(-1))===null||R===void 0?void 0:R.index)!==null&&D!==void 0?D:0)+1;h={"aria-expanded":z,"aria-level":l.level+1,"aria-posinset":(l==null?void 0:l.index)+1,"aria-setsize":T}}let{itemProps:m,...B}=ki({selectionManager:e.selectionManager,key:l.key,ref:n,isVirtualized:i,shouldSelectOnPressUp:s,onAction:c||!((r=l.props)===null||r===void 0)&&r.onAction?ye((o=l.props)===null||o===void 0?void 0:o.onAction,c?()=>c(l.key):void 0):void 0,focus:b,linkBehavior:d}),K=A=>{if(!A.currentTarget.contains(A.target)||!n.current||!document.activeElement)return;let z=Q(n.current);if(z.currentNode=document.activeElement,"expandedKeys"in e&&document.activeElement===n.current){if(A.key===Fo.expand[u]&&e.selectionManager.focusedKey===l.key&&y&&!e.expandedKeys.has(l.key)){e.toggleKey(l.key),A.stopPropagation();return}else if(A.key===Fo.collapse[u]&&e.selectionManager.focusedKey===l.key&&y&&e.expandedKeys.has(l.key)){e.toggleKey(l.key),A.stopPropagation();return}}switch(A.key){case"ArrowLeft":if(p==="arrow"){let O=u==="rtl"?z.nextNode():z.previousNode();if(O)A.preventDefault(),A.stopPropagation(),ne(O),Be(O,{containingElement:Te(n.current)});else if(A.preventDefault(),A.stopPropagation(),u==="rtl")ne(n.current),Be(n.current,{containingElement:Te(n.current)});else{z.currentNode=n.current;let W=Lo(z);W&&(ne(W),Be(W,{containingElement:Te(n.current)}))}}break;case"ArrowRight":if(p==="arrow"){let O=u==="rtl"?z.previousNode():z.nextNode();if(O)A.preventDefault(),A.stopPropagation(),ne(O),Be(O,{containingElement:Te(n.current)});else if(A.preventDefault(),A.stopPropagation(),u==="ltr")ne(n.current),Be(n.current,{containingElement:Te(n.current)});else{z.currentNode=n.current;let W=Lo(z);W&&(ne(W),Be(W,{containingElement:Te(n.current)}))}}break;case"ArrowUp":case"ArrowDown":if(!A.altKey&&n.current.contains(A.target)){var T;A.stopPropagation(),A.preventDefault(),(T=n.current.parentElement)===null||T===void 0||T.dispatchEvent(new KeyboardEvent(A.nativeEvent.type,A.nativeEvent))}break;case"Tab":if(p==="tab"){let O=Q(n.current,{tabbable:!0});O.currentNode=document.activeElement,(A.shiftKey?O.previousNode():O.nextNode())&&A.stopPropagation()}}},k=A=>{if(f.current=l.key,A.target!==n.current){tt()||e.selectionManager.setFocusedKey(l.key);return}},I=ll(l.props),g=B.hasAction?I:{},C=M(m,g,{role:"row",onKeyDownCapture:K,onFocus:k,"aria-label":l.textValue||void 0,"aria-selected":e.selectionManager.canSelectItem(l.key)?e.selectionManager.isSelected(l.key):void 0,"aria-disabled":e.selectionManager.isDisabled(l.key)||void 0,"aria-labelledby":v&&l.textValue?`${Ao(e,l.key)} ${v}`:void 0,id:Ao(e,l.key)});i&&(C["aria-rowindex"]=l.index+1);let F={role:"gridcell","aria-colindex":1};return{rowProps:{...M(C,h)},gridCellProps:F,descriptionProps:{id:v},...B}}function Lo(t){let e=null,n=null;do n=t.lastChild(),n&&(e=n);while(n);return e}function fp(t){let{value:e=0,minValue:n=0,maxValue:r=100,valueLabel:o,isIndeterminate:l,formatOptions:i={style:"percent"}}=t,s=_(t,{labelable:!0}),{labelProps:u,fieldProps:c}=gr({...t,labelElementType:"span"});e=Vt(e,n,r);let d=(e-n)/(r-n),p=Yd(i);if(!l&&!o){let v=i.style==="percent"?d:e;o=p.format(v)}return{progressBarProps:M(s,{...c,"aria-valuenow":l?void 0:e,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":l?void 0:o,role:"progressbar"}),labelProps:u}}const Ua=new WeakMap;function pp(t,e,n){let{keyboardDelegate:r,isDisabled:o,isRequired:l,name:i,validationBehavior:s="aria"}=t,u=vr({usage:"search",sensitivity:"base"}),c=a.useMemo(()=>r||new on(e.collection,e.disabledKeys,n,u),[r,e.collection,e.disabledKeys,u]),{menuTriggerProps:d,menuProps:p}=np({isDisabled:o,type:"listbox"},e,n),v=m=>{switch(m.key){case"ArrowLeft":{var B,K;m.preventDefault();let g=e.selectedKey!=null?(B=c.getKeyAbove)===null||B===void 0?void 0:B.call(c,e.selectedKey):(K=c.getFirstKey)===null||K===void 0?void 0:K.call(c);g&&e.setSelectedKey(g);break}case"ArrowRight":{var k,I;m.preventDefault();let g=e.selectedKey!=null?(k=c.getKeyBelow)===null||k===void 0?void 0:k.call(c,e.selectedKey):(I=c.getFirstKey)===null||I===void 0?void 0:I.call(c);g&&e.setSelectedKey(g);break}}},{typeSelectProps:f}=Di({keyboardDelegate:c,selectionManager:e.selectionManager,onTypeSelect(m){e.setSelectedKey(m)}}),{isInvalid:b,validationErrors:h,validationDetails:y}=e.displayValidation,{labelProps:$,fieldProps:S,descriptionProps:w,errorMessageProps:R}=rn({...t,labelElementType:"span",isInvalid:b,errorMessage:t.errorMessage||h});f.onKeyDown=f.onKeyDownCapture,delete f.onKeyDownCapture;let D=_(t,{labelable:!0}),P=M(f,d,S),L=Y();return Ua.set(e,{isDisabled:o,isRequired:l,name:i,validationBehavior:s}),{labelProps:{...$,onClick:()=>{if(!t.isDisabled){var m;(m=n.current)===null||m===void 0||m.focus(),Sl("keyboard")}}},triggerProps:M(D,{...P,isDisabled:o,onKeyDown:ye(P.onKeyDown,v,t.onKeyDown),onKeyUp:t.onKeyUp,"aria-labelledby":[L,P["aria-labelledby"],P["aria-label"]&&!P["aria-labelledby"]?P.id:null].filter(Boolean).join(" "),onFocus(m){e.isFocused||(t.onFocus&&t.onFocus(m),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(m){e.isOpen||(t.onBlur&&t.onBlur(m),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:L},menuProps:{...p,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:m=>{m.currentTarget.contains(m.relatedTarget)||(t.onBlur&&t.onBlur(m),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[S["aria-labelledby"],P["aria-label"]&&!S["aria-labelledby"]?P.id:null].filter(Boolean).join(" ")},descriptionProps:w,errorMessageProps:R,isInvalid:b,validationErrors:h,validationDetails:y}}function vp(t,e,n){let r=Ua.get(e)||{},{autoComplete:o,name:l=r.name,isDisabled:i=r.isDisabled}=t,{validationBehavior:s,isRequired:u}=r,{visuallyHiddenProps:c}=Nl();cr(t.selectRef,e.selectedKey,e.setSelectedKey),mr({validationBehavior:s,focus:()=>{var p;return(p=n.current)===null||p===void 0?void 0:p.focus()}},e,t.selectRef);var d;return{containerProps:{...c,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:o,disabled:i,required:s==="native"&&u,name:l,value:(d=e.selectedKey)!==null&&d!==void 0?d:"",onChange:p=>e.setSelectedKey(p.target.value)}}}function bp(t){let{state:e,triggerRef:n,label:r,name:o,isDisabled:l}=t,i=a.useRef(null),{containerProps:s,selectProps:u}=vp({...t,selectRef:i},e,n);var c;return e.collection.size<=300?a.createElement("div",{...s,"data-testid":"hidden-select-container"},a.createElement("label",null,r,a.createElement("select",{...u,ref:i},a.createElement("option",null),[...e.collection.getKeys()].map(d=>{let p=e.collection.getItem(d);if(p&&p.type==="item")return a.createElement("option",{key:p.key,value:p.key},p.textValue)})))):o?a.createElement("input",{type:"hidden",autoComplete:u.autoComplete,name:o,disabled:l,value:(c=e.selectedKey)!==null&&c!==void 0?c:""}):null}const Ga=new WeakMap;function mp(t,e,n){let{direction:r}=Ce(),o=t.keyboardDelegate||new on({collection:e.collection,ref:n,orientation:"horizontal",direction:r,disabledKeys:e.disabledKeys,disabledBehavior:e.selectionManager.disabledBehavior}),{labelProps:l,fieldProps:i,descriptionProps:s,errorMessageProps:u}=rn({...t,labelElementType:"span"}),{gridProps:c}=cp({...t,...i,keyboardDelegate:o,shouldFocusWrap:!0,linkBehavior:"override"},e,n),[d,p]=a.useState(!1),{focusWithinProps:v}=St({onFocusWithinChange:p}),f=_(t),b=a.useRef(e.collection.size);return a.useEffect(()=>{n.current&&b.current>0&&e.collection.size===0&&d&&n.current.focus(),b.current=e.collection.size},[e.collection.size,d,n]),Ga.set(e,{onRemove:t.onRemove}),{gridProps:M(c,f,{role:e.collection.size?"grid":null,"aria-atomic":!1,"aria-relevant":"additions","aria-live":d?"polite":"off",...v,...i}),labelProps:l,descriptionProps:s,errorMessageProps:u}}var qa={};qa={removeButtonLabel:"إزالة",removeDescription:"اضغط على مفتاح DELETE لإزالة علامة."};var Za={};Za={removeButtonLabel:"Премахване",removeDescription:"Натиснете Delete, за да премахнете маркера."};var Ya={};Ya={removeButtonLabel:"Odebrat",removeDescription:"Stisknutím klávesy Delete odeberete značku."};var Xa={};Xa={removeButtonLabel:"Fjern",removeDescription:"Tryk på Slet for at fjerne tag."};var Ja={};Ja={removeButtonLabel:"Entfernen",removeDescription:"Auf „Löschen“ drücken, um das Tag zu entfernen."};var Qa={};Qa={removeButtonLabel:"Κατάργηση",removeDescription:"Πατήστε Διαγραφή για να καταργήσετε την ετικέτα."};var es={};es={removeDescription:"Press Delete to remove tag.",removeButtonLabel:"Remove"};var ts={};ts={removeButtonLabel:"Quitar",removeDescription:"Pulse Eliminar para quitar la etiqueta."};var ns={};ns={removeButtonLabel:"Eemalda",removeDescription:"Sildi eemaldamiseks vajutage kustutusklahvi Delete."};var rs={};rs={removeButtonLabel:"Poista",removeDescription:"Poista tunniste painamalla Poista-painiketta."};var os={};os={removeButtonLabel:"Supprimer",removeDescription:"Appuyez sur Supprimer pour supprimer l’étiquette."};var ls={};ls={removeButtonLabel:"הסר",removeDescription:"לחץ על מחק כדי להסיר תג."};var is={};is={removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Delete za uklanjanje oznake."};var as={};as={removeButtonLabel:"Eltávolítás",removeDescription:"Nyomja meg a Delete billentyűt a címke eltávolításához."};var ss={};ss={removeButtonLabel:"Rimuovi",removeDescription:"Premi Elimina per rimuovere il tag."};var us={};us={removeButtonLabel:"削除",removeDescription:"タグを削除するには、Delete キーを押します。"};var cs={};cs={removeButtonLabel:"제거",removeDescription:"태그를 제거하려면 Delete 키를 누르십시오."};var ds={};ds={removeButtonLabel:"Pašalinti",removeDescription:"Norėdami pašalinti žymą, paspauskite „Delete“ klavišą."};var fs={};fs={removeButtonLabel:"Noņemt",removeDescription:"Nospiediet Delete [Dzēst], lai noņemtu tagu."};var ps={};ps={removeButtonLabel:"Fjern",removeDescription:"Trykk på Slett for å fjerne taggen."};var vs={};vs={removeButtonLabel:"Verwijderen",removeDescription:"Druk op Verwijderen om de tag te verwijderen."};var bs={};bs={removeButtonLabel:"Usuń",removeDescription:"Naciśnij Usuń, aby usunąć znacznik."};var ms={};ms={removeButtonLabel:"Remover",removeDescription:"Pressione Delete para remover a tag."};var gs={};gs={removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."};var hs={};hs={removeButtonLabel:"Îndepărtaţi",removeDescription:"Apăsați pe Delete (Ștergere) pentru a elimina eticheta."};var ys={};ys={removeButtonLabel:"Удалить",removeDescription:"Нажмите DELETE, чтобы удалить тег."};var $s={};$s={removeButtonLabel:"Odstrániť",removeDescription:"Ak chcete odstrániť značku, stlačte kláves Delete."};var xs={};xs={removeButtonLabel:"Odstrani",removeDescription:"Pritisnite Delete, da odstranite oznako."};var Ps={};Ps={removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Obriši da biste uklonili oznaku."};var Cs={};Cs={removeButtonLabel:"Ta bort",removeDescription:"Tryck på Radera för att ta bort taggen."};var Ss={};Ss={removeButtonLabel:"Kaldır",removeDescription:"Etiketi kaldırmak için Sil tuşuna basın."};var Es={};Es={removeButtonLabel:"Вилучити",removeDescription:"Натисніть Delete, щоб вилучити тег."};var ws={};ws={removeButtonLabel:"删除",removeDescription:"按下“删除”以删除标记。"};var Ds={};Ds={removeButtonLabel:"移除",removeDescription:"按 Delete 鍵以移除標記。"};var ks={};ks={"ar-AE":qa,"bg-BG":Za,"cs-CZ":Ya,"da-DK":Xa,"de-DE":Ja,"el-GR":Qa,"en-US":es,"es-ES":ts,"et-EE":ns,"fi-FI":rs,"fr-FR":os,"he-IL":ls,"hr-HR":is,"hu-HU":as,"it-IT":ss,"ja-JP":us,"ko-KR":cs,"lt-LT":ds,"lv-LV":fs,"nb-NO":ps,"nl-NL":vs,"pl-PL":bs,"pt-BR":ms,"pt-PT":gs,"ro-RO":hs,"ru-RU":ys,"sk-SK":$s,"sl-SI":xs,"sr-SP":Ps,"sv-SE":Cs,"tr-TR":Ss,"uk-UA":Es,"zh-CN":ws,"zh-TW":Ds};function gp(t){return t&&t.__esModule?t.default:t}function hp(t,e,n){let{item:r}=t,o=rt(gp(ks),"@react-aria/tag"),l=Y(),{onRemove:i}=Ga.get(e)||{},{rowProps:s,gridCellProps:u,...c}=dp({node:r},e,n);delete s.onKeyDownCapture;let{descriptionProps:d,...p}=c,v=e.disabledKeys.has(r.key)||r.props.isDisabled,f=P=>{if(P.key==="Delete"||P.key==="Backspace"){if(v)return;P.preventDefault(),e.selectionManager.isSelected(r.key)?i==null||i(new Set(e.selectionManager.selectedKeys)):i==null||i(new Set([r.key]))}},b=El();b==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(b="pointer");let h=i&&(b==="keyboard"||b==="virtual")?o.format("removeDescription"):"",y=ur(h),$=r.key===e.selectionManager.focusedKey,S=e.selectionManager.focusedKey!=null,w=-1;!v&&($||!S)&&(w=0);let R=_(r.props),D=ll(r.props);return{removeButtonProps:{"aria-label":o.format("removeButtonLabel"),"aria-labelledby":`${l} ${s.id}`,isDisabled:v,id:l,onPress:()=>i?i(new Set([r.key])):null,excludeFromTabOrder:!0},rowProps:M(s,R,D,{tabIndex:w,onKeyDown:i?f:void 0,"aria-describedby":y["aria-describedby"]}),gridCellProps:M(u,{"aria-errormessage":t["aria-errormessage"],"aria-label":t["aria-label"]}),...p,allowsRemoving:!!i}}function yp(t,e){let n=_(t,{labelable:!0}),{hoverProps:r}=Ie({onHoverStart:()=>e==null?void 0:e.open(!0),onHoverEnd:()=>e==null?void 0:e.close()});return{tooltipProps:M(n,r,{role:"tooltip"})}}function $p(t,e,n){let{isDisabled:r,trigger:o}=t,l=Y(),i=a.useRef(!1),s=a.useRef(!1),u=()=>{(i.current||s.current)&&e.open(s.current)},c=$=>{!i.current&&!s.current&&e.close($)};a.useEffect(()=>{let $=S=>{n&&n.current&&S.key==="Escape"&&(S.stopPropagation(),e.close(!0))};if(e.isOpen)return document.addEventListener("keydown",$,!0),()=>{document.removeEventListener("keydown",$,!0)}},[n,e]);let d=()=>{o!=="focus"&&($t()==="pointer"?i.current=!0:i.current=!1,u())},p=()=>{o!=="focus"&&(s.current=!1,i.current=!1,c())},v=()=>{s.current=!1,i.current=!1,c(!0)},f=()=>{tt()&&(s.current=!0,u())},b=()=>{s.current=!1,i.current=!1,c(!0)},{hoverProps:h}=Ie({isDisabled:r,onHoverStart:d,onHoverEnd:p}),{focusableProps:y}=nt({isDisabled:r,onFocus:f,onBlur:b},n);return{triggerProps:{"aria-describedby":e.isOpen?l:void 0,...M(y,h,{onPointerDown:v,onKeyDown:v})},tooltipProps:{id:l}}}const He=E.defineRecipe({className:"nimbus-button",base:{borderRadius:"200",display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"500",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"600",minW:"600",fontSize:"300",fontWeight:"500",lineHeight:"400",px:"200",gap:"100",_icon:{width:"400",height:"400"}},xs:{h:"800",minW:"800",fontSize:"350",fontWeight:"500",lineHeight:"400",px:"300",gap:"100",_icon:{width:"500",height:"500"}},md:{h:"1000",minW:"1000",fontSize:"400",lineHeight:"500",px:"400",gap:"200",_icon:{width:"600",height:"600"}}},variant:{solid:{bg:"colorPalette.9",color:"colorPalette.contrast",_hover:{bg:"colorPalette.10"},_expanded:{bg:"colorPalette.10"}},subtle:{bg:"colorPalette.3",color:"colorPalette.11",_hover:{bg:"colorPalette.4"},_expanded:{bg:"colorPalette.4"}},outline:{borderWidth:"1px",borderColor:"colorPalette.7",color:"colorPalette.11",transitionProperty:"background-color, border-color, color",transitionDuration:"moderate",_hover:{bg:"colorPalette.3",borderColor:"colorPalette.8"},_expanded:{bg:"colorPalette.subtle"}},ghost:{color:"colorPalette.11",_hover:{bg:"colorPalette.4"},_expanded:{bg:"colorPalette.4"}},link:{color:"colorPalette.11",_hover:{textDecoration:"underline"}}},tone:{primary:{colorPalette:"primary"},critical:{colorPalette:"critical"},neutral:{colorPalette:"neutral"},info:{colorPalette:"info"}}},defaultVariants:{size:"md",variant:"subtle"}});function xp(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Pp=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Cp=xp(function(t){return Pp.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});const{withContext:Sp}=E.createRecipeContext({recipe:He}),Ep=Sp("button",{defaultProps:{type:"button"},shouldForwardProp(t,e){const n=!(e!=null&&e.includes(t))&&!E.defaultSystem.isValidProperty(t);return Cp(t)&&n&&!t.includes("onPress")}}),ln=a.forwardRef((t,e)=>{const{as:n,asChild:r,children:o,onClick:l,...i}=t,s=a.useRef(null),u=le(E.mergeRefs(s,e)),c=n||(r?"a":"button")||"button";console.log(l,i);const{buttonProps:d}=nn({...i,onPress:l?p=>l(p):void 0,elementType:c},u);return console.log(d),x.jsx(Ep,{...M(i,d,{as:n,asChild:r}),onPress:d.onClick,ref:u,children:o})});ln.displayName="Button";const wp=a.forwardRef(function(e,n){const{children:r,portalled:o=!0,portalRef:l,backdrop:i=!0,...s}=e;return x.jsxs(E.Portal,{disabled:!o,container:l,children:[i&&x.jsx(E.Dialog.Backdrop,{}),x.jsx(E.Dialog.Positioner,{children:x.jsx(E.Dialog.Content,{ref:n,...s,asChild:!1,children:r})})]})}),Dp=a.forwardRef(function(e,n){return x.jsx(E.Dialog.CloseTrigger,{position:"absolute",top:"2",insetEnd:"2",...e,asChild:!0,children:x.jsx(ln,{size:"xs",ref:n,children:e.children})})}),kp=E.Dialog.Root,Tp=E.Dialog.Footer,Bp=E.Dialog.Header,Rp=E.Dialog.Body,Ap=E.Dialog.Backdrop,Kp=E.Dialog.Title,Fp=E.Dialog.Description,Lp=E.Dialog.Trigger,Ip=E.Dialog.ActionTrigger,ot=a.forwardRef(({children:t,...e},n)=>x.jsx(ln,{px:0,py:0,ref:n,...e,children:t}));ot.displayName="IconButton";const Ts=E.defineRecipe({className:"nimbus-link",base:{display:"inline-flex",alignItems:"center",color:"colorPalette.11",borderRadius:"100",focusVisibleRing:"outside",bg:"transparent",outline:"none",cursor:"pointer",textDecoration:"underline",textUnderlineOffset:"3px",_hover:{textDecorationThickness:"12%"}},variants:{size:{xs:{fontSize:"300",lineHeight:"450"},sm:{fontSize:"350",lineHeight:"500"},md:{fontSize:"400",lineHeight:"600"}},fontColor:{primary:{color:"primary"},inherit:{color:"inherit"}}}}),{withContext:Mp}=E.createRecipeContext({recipe:Ts}),zp=Mp("a"),Bs=a.forwardRef((t,e)=>{const{as:n,asChild:r,children:o,...l}=t,i=a.useRef(null),s=le(E.mergeRefs(i,e)),u=n||(r?"span":"a")||"a",{linkProps:c}=Kd({...l,elementType:u},s);return x.jsx(zp,{...M(l,c,{as:n,asChild:r,ref:s}),children:o})});Bs.displayName="Link";const Np=t=>x.jsx(E.List.Root,{...t}),Op=t=>x.jsx(E.List.Item,{...t}),Rs=a.forwardRef((t,e)=>x.jsx(E.SimpleGrid,{ref:e,...t}));Rs.displayName="SimpleGrid";const Hp=Object.assign(Rs,{Item:E.GridItem}),jp=t=>x.jsx(E.Table.Root,{...t}),Vp=t=>x.jsx(E.Table.ColumnGroup,{...t}),Wp=t=>x.jsx(E.Table.Column,{...t}),_p=t=>x.jsx(E.Table.Header,{...t}),Up=t=>x.jsx(E.Table.Footer,{...t}),Gp=t=>x.jsx(E.Table.Row,{...t}),qp=t=>x.jsx(E.Table.Cell,{...t}),Zp=t=>x.jsx(E.Table.Body,{...t}),Yp=t=>x.jsx(E.Table.ColumnHeader,{...t}),As=a.forwardRef((t,e)=>x.jsx(E.Text,{ref:e,...t}));As.displayName="Text";a.createContext(null);a.createContext(null);a.createContext(null);a.createContext(null);a.createContext(null);const Xp=a.createContext({}),Yt=Symbol("default");function Se({values:t,children:e}){for(let[n,r]of t)e=a.createElement(n.Provider,{value:r},e);return e}function ee(t){let{className:e,style:n,children:r,defaultClassName:o,defaultChildren:l,defaultStyle:i,values:s}=t;return a.useMemo(()=>{let u,c,d;return typeof e=="function"?u=e({...s,defaultClassName:o}):u=e,typeof n=="function"?c=n({...s,defaultStyle:i||{}}):c=n,typeof r=="function"?d=r({...s,defaultChildren:l}):r==null?d=l:d=r,{className:u??o,style:c||i?{...i,...c}:void 0,children:d??l,"data-rac":""}},[e,n,r,o,l,i,s])}function an(t,e){let n=a.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=new Intl.ListFormat().format(Object.keys(n.slots).map(l=>`"${l}"`));if(!e&&!n.slots[Yt])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let o=e||Yt;if(!n.slots[o])throw new Error(`Invalid slot "${e}". Valid slot names are ${r}.`);return n.slots[o]}return n}function te(t,e,n){let r=an(n,t.slot)||{},{ref:o,...l}=r,i=le(a.useMemo(()=>nl(e,o),[e,o])),s=M(l,t);return"style"in l&&l.style&&"style"in t&&t.style&&(typeof l.style=="function"||typeof t.style=="function"?s.style=u=>{let c=typeof l.style=="function"?l.style(u):l.style,d={...u.defaultStyle,...c},p=typeof t.style=="function"?t.style({...u,defaultStyle:d}):t.style;return{...d,...p}}:s.style={...l.style,...t.style}),[s,i]}function sn(){let[t,e]=a.useState(!0),n=a.useRef(!1),r=a.useCallback(o=>{n.current=!0,e(!!o)},[]);return H(()=>{n.current||e(!1)},[]),[r,t]}function Ks(t){const e=/^(data-.*)$/;let n={};for(const r in t)e.test(r)||(n[r]=t[r]);return n}class xr{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new xr(this.type,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}constructor(e,n){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.type=e,this.key=n}}class Pr{get size(){return this.keyMap.size}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),o=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?n.get(o.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}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");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 Pr,r=null;for(let o of this)if(o.type==="section"&&o.hasChildNodes){let l=o.clone(),i=null;for(let s of this.getChildren(o.key))if(e(s.textValue)||s.type==="header"){let u=s.clone();i==null&&(l.firstChildKey=u.key),n.firstKey==null&&(n.firstKey=l.key),i&&i.parentKey===u.parentKey?(i.nextKey=u.key,u.prevKey=i.key):u.prevKey=null,u.nextKey=null,n.addNode(u),i=u}i&&(i.type!=="header"?(l.lastChildKey=i.key,r==null?l.prevKey=null:(r.type==="section"||r.type==="separator")&&(r.nextKey=l.key,l.prevKey=r.key),l.nextKey=null,r=l,n.addNode(l)):(n.firstKey===l.key&&(n.firstKey=null),n.removeNode(i.key)))}else if(o.type==="separator"){let l=o.clone();l.nextKey=null,(r==null?void 0:r.type)==="section"&&(r.nextKey=l.key,l.prevKey=r.key,r=l,n.addNode(l))}else if(e(o.textValue)){let l=o.clone();n.firstKey==null&&(n.firstKey=l.key),r!=null&&r.type!=="section"&&r.type!=="separator"&&r.parentKey===l.parentKey?(r.nextKey=l.key,l.prevKey=r.key):l.prevKey=null,l.nextKey=null,n.addNode(l),r=l}if((r==null?void 0:r.type)==="separator"&&r.nextKey===null){let o;r.prevKey!=null&&(o=n.getItem(r.prevKey),o.nextKey=null),n.removeNode(r.key),r=o}return n.lastKey=(r==null?void 0:r.key)||null,n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class Fs{*[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}appendChild(e){this.ownerDocument.startTransaction(),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),e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(e,n){if(n==null)return this.appendChild(e);this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=n,e.previousSibling=n.previousSibling,e.index=n.index,this.firstChild===n?this.firstChild=e:n.previousSibling&&(n.previousSibling.nextSibling=e),n.previousSibling=e,e.parentNode=n.parentNode;let r=n;for(;r;)r.index++,r=r.nextSibling;e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(e){if(e.parentNode!==this||!this.ownerDocument.isMounted)return;this.ownerDocument.startTransaction();let n=e.nextSibling;for(;n;)n.index--,n=n.nextSibling;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.removeNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=e}}class xt extends Fs{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof xt?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var e,n,r,o;let l=this.ownerDocument.getMutableNode(this);l.index=this.index,l.level=this.level,l.parentKey=this.parentNode instanceof xt?this.parentNode.node.key:null;var i;l.prevKey=(i=(e=this.previousSibling)===null||e===void 0?void 0:e.node.key)!==null&&i!==void 0?i:null;var s;l.nextKey=(s=(n=this.nextSibling)===null||n===void 0?void 0:n.node.key)!==null&&s!==void 0?s:null,l.hasChildNodes=!!this.firstChild;var u;l.firstChildKey=(u=(r=this.firstChild)===null||r===void 0?void 0:r.node.key)!==null&&u!==void 0?u:null;var c;l.lastChildKey=(c=(o=this.lastChild)===null||o===void 0?void 0:o.node.key)!==null&&c!==void 0?c:null}setProps(e,n,r,o){let l=this.ownerDocument.getMutableNode(this),{value:i,textValue:s,id:u,...c}=e;if(c.ref=n,l.props=c,l.rendered=r,l.render=o,l.value=i,l.textValue=s||(typeof c.children=="string"?c.children:"")||e["aria-label"]||"",u!=null&&u!==l.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");l.key=u}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,n){super(n),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new xr(e,`react-aria-${++n.nodeId}`),this.ownerDocument.startTransaction()}}class Jp extends Fs{get isConnected(){return this.isMounted}createElement(e){return new xt(e,this)}getMutableNode(e){let n=e.node;return this.mutatedNodes.has(e)||(n=e.node.clone(),this.mutatedNodes.add(e),e.node=n),this.markDirty(e),n}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(e){this.dirtyNodes.add(e)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(e){let n=this.getMutableCollection();if(!n.getItem(e.node.key)){n.addNode(e.node);for(let r of e)this.addNode(r)}this.markDirty(e)}removeNode(e){for(let r of e)this.removeNode(r);this.getMutableCollection().removeNode(e.node.key),this.markDirty(e)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let l of this.dirtyNodes)l instanceof xt&&l.isConnected&&l.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var e,n;let l=this.getMutableCollection();for(let i of this.mutatedNodes)i.isConnected&&l.addNode(i.node);var r,o;l.commit((r=(e=this.firstChild)===null||e===void 0?void 0:e.node.key)!==null&&r!==void 0?r:null,(o=(n=this.lastChild)===null||n===void 0?void 0:n.node.key)!==null&&o!==void 0?o:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let e of this.subscriptions)e()}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.isMounted=!0,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=e,this.collectionMutated=!0}}function Ls(t){let{children:e,items:n,idScope:r,addIdAndValue:o,dependencies:l=[]}=t,i=a.useMemo(()=>new WeakMap,l);return a.useMemo(()=>{if(n&&typeof e=="function"){let c=[];for(let d of n){let p=i.get(d);if(!p){p=e(d);var s,u;let v=(u=(s=p.props.id)!==null&&s!==void 0?s:d.key)!==null&&u!==void 0?u:d.id;if(v==null)throw new Error("Could not determine key for item");r&&(v=r+":"+v),p=a.cloneElement(p,o?{key:v,id:v,value:d}:{key:v}),i.set(d,p)}c.push(p)}return c}else if(typeof e!="function")return e},[e,n,i,r,o])}if(typeof HTMLTemplateElement<"u"){const t=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:t.call(this)}})}const Xt=a.createContext(!1),Qp=typeof DocumentFragment<"u"?new DocumentFragment:null;function ev(t){let e=a.useContext(Xt),n=xe();if(e)return a.createElement(a.Fragment,null,t.children);let r=a.createElement(Xt.Provider,{value:!0},t.children);return n?a.createElement("template",{"data-react-aria-hidden":!0},r):Ue.createPortal(r,Qp)}function Is(t){let e=(n,r)=>a.useContext(Xt)?null:t(n,r);return e.displayName=t.displayName||t.name,a.forwardRef(e)}function tv(){return a.useContext(Xt)}function nv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ot={exports:{}},Rn={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* use-sync-external-store-shim.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Io;function rv(){if(Io)return Rn;Io=1;var t=a;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,o=t.useEffect,l=t.useLayoutEffect,i=t.useDebugValue;function s(p,v){var f=v(),b=r({inst:{value:f,getSnapshot:v}}),h=b[0].inst,y=b[1];return l(function(){h.value=f,h.getSnapshot=v,u(h)&&y({inst:h})},[p,f,v]),o(function(){return u(h)&&y({inst:h}),p(function(){u(h)&&y({inst:h})})},[p]),i(f),f}function u(p){var v=p.getSnapshot;p=p.value;try{var f=v();return!n(p,f)}catch{return!0}}function c(p,v){return v()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return Rn.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,Rn}var An={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* use-sync-external-store-shim.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Mo;function ov(){return Mo||(Mo=1,process.env.NODE_ENV!=="production"&&function(){function t(f,b){return f===b&&(f!==0||1/f===1/b)||f!==f&&b!==b}function e(f,b){d||o.startTransition===void 0||(d=!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 h=b();if(!p){var y=b();l(h,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}y=i({inst:{value:h,getSnapshot:b}});var $=y[0].inst,S=y[1];return u(function(){$.value=h,$.getSnapshot=b,n($)&&S({inst:$})},[f,h,b]),s(function(){return n($)&&S({inst:$}),f(function(){n($)&&S({inst:$})})},[f]),c(h),h}function n(f){var b=f.getSnapshot;f=f.value;try{var h=b();return!l(f,h)}catch{return!0}}function r(f,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=a,l=typeof Object.is=="function"?Object.is:t,i=o.useState,s=o.useEffect,u=o.useLayoutEffect,c=o.useDebugValue,d=!1,p=!1,v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;An.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:v,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),An}var zo;function lv(){return zo||(zo=1,process.env.NODE_ENV==="production"?Ot.exports=rv():Ot.exports=ov()),Ot.exports}var iv=lv();const Ms=a.createContext(!1),Pt=a.createContext(null);function Cr(t){if(a.useContext(Pt))return t.content;let{collection:n,document:r}=cv(t.createCollection);return a.createElement(a.Fragment,null,a.createElement(ev,null,a.createElement(Pt.Provider,{value:r},t.content)),a.createElement(av,{render:t.children,collection:n}))}function av({collection:t,render:e}){return e(t)}function sv(t,e,n){let r=xe(),o=a.useRef(r);o.current=r;let l=a.useCallback(()=>o.current?n():e(),[e,n]);return iv.useSyncExternalStore(t,l)}const uv=typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore:sv;function cv(t){let[e]=a.useState(()=>new Jp((t==null?void 0:t())||new Pr)),n=a.useCallback(i=>e.subscribe(i),[e]),r=a.useCallback(()=>{let i=e.getCollection();return e.isSSR&&e.resetAfterSSR(),i},[e]),o=a.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),l=uv(n,r,o);return H(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:l,document:e}}const tr=a.createContext(null);function zs(t,e,n,r,o,l){let i=a.useCallback(u=>{u==null||u.setProps(e,n,r,l)},[e,n,r,l]),s=a.useContext(tr);if(s){let u=s.ownerDocument.nodesByProps.get(e);return u||(u=s.ownerDocument.createElement(t),u.setProps(e,n,r,l),s.appendChild(u),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(e,u)),o?a.createElement(tr.Provider,{value:u},o):null}return a.createElement(t,{ref:i},o)}function Sr(t,e){let n=({node:o})=>e(o.props,o.props.ref,o),r=a.forwardRef((o,l)=>{if(!a.useContext(Ms)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(o,l)}return zs(t,o,l,"children"in o?o.children:null,null,s=>a.createElement(n,{node:s}))});return r.displayName=e.name,r}function dv(t,e,n=Ns){let r=({node:l})=>e(l.props,l.props.ref,l),o=a.forwardRef((l,i)=>{let s=n(l);var u;return(u=zs(t,l,i,null,s,c=>a.createElement(r,{node:c})))!==null&&u!==void 0?u:a.createElement(a.Fragment,null)});return o.displayName=e.name,o}function Ns(t){return Ls({...t,addIdAndValue:!0})}const No=a.createContext(null);function Er(t){let e=a.useContext(No),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),r=t.idScope||(e==null?void 0:e.idScope),o=Ns({...t,idScope:r,dependencies:n});return a.useContext(Pt)&&(o=a.createElement(fv,null,o)),e=a.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),a.createElement(No.Provider,{value:e},o)}function fv({children:t}){let e=a.useContext(Pt),n=a.useMemo(()=>a.createElement(Pt.Provider,{value:null},a.createElement(Ms.Provider,{value:!0},t)),[t]);return xe()?a.createElement(tr.Provider,{value:e},n):Ue.createPortal(n,e)}const wr=a.createContext({}),pv=a.createContext(null),vv=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),un=a.createContext({}),bv=Is(function(e,n){[e,n]=te(e,n,un),e=mv(e);let r=e,{isPending:o}=r,{buttonProps:l,isPressed:i}=nn(e,n),{focusProps:s,isFocused:u,isFocusVisible:c}=pe(e),{hoverProps:d,isHovered:p}=Ie({...e,isDisabled:e.isDisabled||o}),v={isHovered:p,isPressed:(r.isPressed||i)&&!o,isFocused:u,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:o??!1},f=ee({...e,values:v,defaultClassName:"react-aria-Button"}),b=Y(l.id),h=Y(),y=l["aria-labelledby"];o&&(y?y=`${y} ${h}`:l["aria-label"]&&(y=`${b} ${h}`));let $=a.useRef(o);return a.useEffect(()=>{let S={"aria-labelledby":y||b};(!$.current&&u&&o||$.current&&u&&!o)&&Zn(S,"assertive"),$.current=o},[o,u,y,b]),a.createElement("button",{..._(e,{propNames:vv}),...M(l,s,d),...f,type:l.type==="submit"&&o?"button":l.type,id:b,ref:n,"aria-labelledby":y,slot:e.slot||void 0,"aria-disabled":o?"true":l["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":v.isPressed||void 0,"data-hovered":p||void 0,"data-focused":u||void 0,"data-pending":o||void 0,"data-focus-visible":c||void 0},a.createElement(pv.Provider,{value:{id:h}},f.children))});function mv(t){return t.isPending&&(t.onPress=void 0,t.onPressStart=void 0,t.onPressEnd=void 0,t.onPressChange=void 0,t.onPressUp=void 0,t.onKeyDown=void 0,t.onKeyUp=void 0,t.onClick=void 0,t.href=void 0),t}const Et=a.createContext({}),Os=a.createContext(null);class Oo{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.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=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let s of i.childNodes)n(s)};for(let i of e)n(i);let r=null,o=0;for(let[i,s]of this.keyMap)r?(r.nextKey=i,s.prevKey=r.key):(this.firstKey=i,s.prevKey=void 0),s.type==="item"&&(s.index=o++),r=s,r.nextKey=void 0;var l;this.lastKey=(l=r==null?void 0:r.key)!==null&&l!==void 0?l:null}}class ce extends Set{constructor(e,n,r){super(e),e instanceof ce?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function gv(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function hv(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:l="all"}=t,i=a.useRef(!1),[,s]=a.useState(!1),u=a.useRef(null),c=a.useRef(null),[,d]=a.useState(null),p=a.useMemo(()=>Ho(t.selectedKeys),[t.selectedKeys]),v=a.useMemo(()=>Ho(t.defaultSelectedKeys,new ce),[t.defaultSelectedKeys]),[f,b]=Le(p,v,t.onSelectionChange),h=a.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[y,$]=a.useState(o);o==="replace"&&y==="toggle"&&typeof f=="object"&&f.size===0&&$("replace");let S=a.useRef(o);return a.useEffect(()=>{o!==S.current&&($(o),S.current=o)},[o]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:$,get isFocused(){return i.current},setFocused(w){i.current=w,s(w)},get focusedKey(){return u.current},get childFocusStrategy(){return c.current},setFocusedKey(w,R="first"){u.current=w,c.current=R,d(w)},selectedKeys:f,setSelectedKeys(w){(r||!gv(w,f))&&b(w)},disabledKeys:h,disabledBehavior:l}}function Ho(t,e){return t?t==="all"?"all":new ce(t):e}class yv{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 o=this.collection.getItem(r);(!e||o&&Bn(this.collection,o,e)<0)&&(e=o)}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 o=this.collection.getItem(r);(!e||o&&Bn(this.collection,o,e)>0)&&(e=o)}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 ce([n],n,n);else{let i=this.state.selectedKeys;var o;let s=(o=i.anchorKey)!==null&&o!==void 0?o:n;r=new ce(i,s,n);var l;for(let u of this.getKeyRange(s,(l=i.currentKey)!==null&&l!==void 0?l:n))r.delete(u);for(let u of this.getKeyRange(n,s))this.canSelectItem(u)&&r.add(u)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),o=this.collection.getItem(n);return r&&o?Bn(this.collection,r,o)<=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 o=[],l=e;for(;l!=null;){let i=this.collection.getItem(l);if(i&&(i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&o.push(l),l===n)return o;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 ce(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 ce([n],n,n):new ce;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new ce;for(let r of e){let o=this.getKey(r);if(o!=null&&(n.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var o;let i=this.collection.getItem(r);(i==null?void 0:i.type)==="item"&&e.push(r);var l;i!=null&&i.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&n((l=(o=Zf(Bi(i,this.collection)))===null||o===void 0?void 0:o.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 ce)}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}constructor(e,n,r){this.collection=e,this.state=n;var o;this.allowsCellSelection=(o=r==null?void 0:r.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function Dr(t){let{filter:e,layoutDelegate:n}=t,r=hv(t),o=a.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),l=a.useCallback(d=>e?new Oo(e(d)):new Oo(d),[e]),i=a.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),s=qf(t,l,i),u=a.useMemo(()=>new yv(s,r,{layoutDelegate:n}),[s,r,n]);const c=a.useRef(null);return a.useEffect(()=>{if(r.focusedKey!=null&&!s.getItem(r.focusedKey)&&c.current){const $=c.current.getItem(r.focusedKey),S=[...c.current.getKeys()].map(m=>{const B=c.current.getItem(m);return(B==null?void 0:B.type)==="item"?B:null}).filter(m=>m!==null),w=[...s.getKeys()].map(m=>{const B=s.getItem(m);return(B==null?void 0:B.type)==="item"?B:null}).filter(m=>m!==null);var d,p;const R=((d=S==null?void 0:S.length)!==null&&d!==void 0?d:0)-((p=w==null?void 0:w.length)!==null&&p!==void 0?p:0);var v,f,b;let D=Math.min(R>1?Math.max(((v=$==null?void 0:$.index)!==null&&v!==void 0?v:0)-R+1,0):(f=$==null?void 0:$.index)!==null&&f!==void 0?f:0,((b=w==null?void 0:w.length)!==null&&b!==void 0?b:0)-1),P=null,L=!1;for(;D>=0;){if(!u.isDisabled(w[D].key)){P=w[D];break}if(D<w.length-1&&!L)D++;else{L=!0;var h,y;D>((h=$==null?void 0:$.index)!==null&&h!==void 0?h:0)&&(D=(y=$==null?void 0:$.index)!==null&&y!==void 0?y:0),D--}}r.setFocusedKey(P?P.key:null)}c.current=s},[s,u,r,r.focusedKey]),{collection:s,disabledKeys:o,selectionManager:u}}function $v(t){var e;let[n,r]=Le(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),o=a.useMemo(()=>n!=null?[n]:[],[n]),{collection:l,disabledKeys:i,selectionManager:s}=Dr({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:c=>{if(c==="all")return;var d;let p=(d=c.values().next().value)!==null&&d!==void 0?d:null;p===n&&t.onSelectionChange&&t.onSelectionChange(p),r(p)}}),u=n!=null?l.getItem(n):null;return{collection:l,disabledKeys:i,selectionManager:s,selectedKey:n,setSelectedKey:r,selectedItem:u}}function cn(t){let[e,n]=Le(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=a.useCallback(()=>{n(!0)},[n]),o=a.useCallback(()=>{n(!1)},[n]),l=a.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:o,toggle:l}}function xv(t){let[e,n]=Le(t.isExpanded,t.defaultExpanded||!1,t.onExpandedChange);const r=a.useCallback(()=>{n(!0)},[n]),o=a.useCallback(()=>{n(!1)},[n]),l=a.useCallback(()=>{n(!e)},[n,e]);return{isExpanded:e,setExpanded:n,expand:r,collapse:o,toggle:l}}function Pv(t){let{allowsMultipleExpanded:e=!1,isDisabled:n=!1}=t,[r,o]=Le(a.useMemo(()=>t.expandedKeys?new Set(t.expandedKeys):void 0,[t.expandedKeys]),a.useMemo(()=>t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,[t.defaultExpandedKeys]),t.onExpandedChange);return a.useEffect(()=>{!e&&r.size>1&&o(new Set([r.values().next().value]))}),{allowsMultipleExpanded:e,isDisabled:n,expandedKeys:r,setExpandedKeys:o,toggleKey(l){let i;e?(i=new Set(r),i.has(l)?i.delete(l):i.add(l)):i=new Set(r.has(l)?[]:[l]),o(i)}}}function Cv(t){let e=cn(t),[n,r]=a.useState(null),[o,l]=a.useState([]),i=()=>{l([]),e.close()};return{focusStrategy:n,...e,open(c=null){r(c),e.open()},toggle(c=null){r(c),e.toggle()},close(){i()},expandedKeysStack:o,openSubmenu:(c,d)=>{l(p=>d>p.length?p:[...p.slice(0,d),c])},closeSubmenu:(c,d)=>{l(p=>p[d]===c?p.slice(0,d):p)}}}function Sv(t){let e=cn(t),[n,r]=a.useState(null),o=$v({...t,onSelectionChange:u=>{t.onSelectionChange!=null&&t.onSelectionChange(u),e.close(),l.commitValidation()}}),l=br({...t,value:o.selectedKey}),[i,s]=a.useState(!1);return{...l,...o,...e,focusStrategy:n,open(u=null){o.collection.size!==0&&(r(u),e.open())},toggle(u=null){o.collection.size!==0&&(r(u),e.toggle())},isFocused:i,setFocused:s}}const Ev=1500,jo=500;let Ne={},wv=0,ft=!1,me=null,Oe=null;function Hs(t={}){let{delay:e=Ev,closeDelay:n=jo}=t,{isOpen:r,open:o,close:l}=cn(t),i=a.useMemo(()=>`${++wv}`,[]),s=a.useRef(null),u=a.useRef(l),c=()=>{Ne[i]=v},d=()=>{for(let b in Ne)b!==i&&(Ne[b](!0),delete Ne[b])},p=()=>{s.current&&clearTimeout(s.current),s.current=null,d(),c(),ft=!0,o(),me&&(clearTimeout(me),me=null),Oe&&(clearTimeout(Oe),Oe=null)},v=b=>{b||n<=0?(s.current&&clearTimeout(s.current),s.current=null,u.current()):s.current||(s.current=setTimeout(()=>{s.current=null,u.current()},n)),me&&(clearTimeout(me),me=null),ft&&(Oe&&clearTimeout(Oe),Oe=setTimeout(()=>{delete Ne[i],Oe=null,ft=!1},Math.max(jo,n)))},f=()=>{d(),c(),!r&&!me&&!ft?me=setTimeout(()=>{me=null,ft=!0,p()},e):r||p()};return a.useEffect(()=>{u.current=l},[l]),a.useEffect(()=>()=>{s.current&&clearTimeout(s.current),Ne[i]&&delete Ne[i]},[i]),{isOpen:r,open:b=>{!b&&e>0&&!s.current?f():p()},close:v}}const js=a.createContext(null),nr=a.createContext({});let Dv=t=>{let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,...o}=t;return o};const kv=Is(function(e,n){[e,n]=te(e,n,nr);let{hoverProps:r,isHovered:o}=Ie(e),{isFocused:l,isFocusVisible:i,focusProps:s}=pe({isTextInput:!0,autoFocus:e.autoFocus}),u=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",c=ee({...e,values:{isHovered:o,isFocused:l,isFocusVisible:i,isDisabled:e.disabled||!1,isInvalid:u},defaultClassName:"react-aria-Input"});return a.createElement("input",{...M(Dv(e),s,r),...c,ref:n,"data-focused":l||void 0,"data-disabled":e.disabled||void 0,"data-hovered":o||void 0,"data-focus-visible":i||void 0,"data-invalid":u||void 0})}),Tv=a.createContext({}),Bv=a.createContext(null),Rv=a.forwardRef(function(e,n){[e,n]=te(e,n,Bv);let{validationBehavior:r}=an(js)||{};var o,l;let i=(l=(o=e.validationBehavior)!==null&&o!==void 0?o:r)!==null&&l!==void 0?l:"native",s=a.useRef(null),[u,c]=te({},s,nr),[d,p]=sn(),[v,f]=a.useState("input"),{labelProps:b,inputProps:h,descriptionProps:y,errorMessageProps:$,...S}=df({...Ks(e),inputElementType:v,label:p,validationBehavior:i},c),w=a.useCallback(P=>{c.current=P,P&&f(P instanceof HTMLTextAreaElement?"textarea":"input")},[c]),R=ee({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:S.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-TextField"}),D=_(e);return delete D.id,a.createElement("div",{...D,...R,ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":S.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},a.createElement(Se,{values:[[wr,{...b,ref:d}],[nr,{...M(h,u),ref:w}],[Tv,{...h,ref:w}],[Et,{slots:{description:y,errorMessage:$}}],[Os,S]]},R.children))}),Av=a.createContext(null),Kv=a.createContext(null),Vs={CollectionRoot({collection:t,renderDropIndicator:e}){return Vo(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return Vo(t,e,n)}};function Vo(t,e,n){return Ls({items:e?t.getChildren(e.key):t,dependencies:[n],children(r){var o;let l=r.render(r);if(!n||r.type!=="item")return l;let i=r.key,s=t.getKeyAfter(i);return a.createElement(a.Fragment,null,n({type:"item",key:i,dropPosition:"before"}),l,(s==null||((o=t.getItem(s))===null||o===void 0?void 0:o.type)!=="item")&&n({type:"item",key:i,dropPosition:"after"}))}})}const wt=a.createContext(Vs);function Fv(t){return a.useMemo(()=>t!=null?new Set([t]):null,[t])}var Ws={};Ws={colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"};var _s={};_s={colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"};var Us={};Us={colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"};var Gs={};Gs={colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"};var qs={};qs={colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"};var Zs={};Zs={colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"};var Ys={};Ys={selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"};var Xs={};Xs={colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"};var Js={};Js={colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"};var Qs={};Qs={colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"};var eu={};eu={colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"};var tu={};tu={colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"};var nu={};nu={colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"};var ru={};ru={colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"};var ou={};ou={colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"};var lu={};lu={colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"};var iu={};iu={colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"};var au={};au={colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"};var su={};su={colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"};var uu={};uu={colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"};var cu={};cu={colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"};var du={};du={colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"};var fu={};fu={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var pu={};pu={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var vu={};vu={colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"};var bu={};bu={colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"};var mu={};mu={colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"};var gu={};gu={colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"};var hu={};hu={colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"};var yu={};yu={colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"};var $u={};$u={colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"};var xu={};xu={colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"};var Pu={};Pu={colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"};var Cu={};Cu={colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"};var Su={};Su={"ar-AE":Ws,"bg-BG":_s,"cs-CZ":Us,"da-DK":Gs,"de-DE":qs,"el-GR":Zs,"en-US":Ys,"es-ES":Xs,"et-EE":Js,"fi-FI":Qs,"fr-FR":eu,"he-IL":tu,"hr-HR":nu,"hu-HU":ru,"it-IT":ou,"ja-JP":lu,"ko-KR":iu,"lt-LT":au,"lv-LV":su,"nb-NO":uu,"nl-NL":cu,"pl-PL":du,"pt-BR":fu,"pt-PT":pu,"ro-RO":vu,"ru-RU":bu,"sk-SK":mu,"sl-SI":gu,"sr-SP":hu,"sv-SE":yu,"tr-TR":$u,"uk-UA":xu,"zh-CN":Pu,"zh-TW":Cu};const dn=a.createContext({}),Eu=a.createContext(null),Lv=a.forwardRef(function(e,n){let{render:r}=a.useContext(Eu);return a.createElement(a.Fragment,null,r(e,n))});function wu(t,e){var n;let r=t==null?void 0:t.renderDropIndicator,o=t==null||(n=t.isVirtualDragging)===null||n===void 0?void 0:n.call(t),l=a.useCallback(i=>{if(o||e!=null&&e.isDropTarget(i))return r?r(i):a.createElement(Lv,{target:i})},[e==null?void 0:e.target,o,r]);return t!=null&&t.useDropIndicator?l:void 0}function Iv(t,e,n){var r,o;let l=t.focusedKey,i=null;if(!(e==null||(r=e.isVirtualDragging)===null||r===void 0)&&r.call(e)&&(n==null||(o=n.target)===null||o===void 0?void 0:o.type)==="item"){i=n.target.key;var s;n.target.dropPosition==="after"&&(i=(s=n.collection.getKeyAfter(i))!==null&&s!==void 0?s:i)}return a.useMemo(()=>new Set([l,i].filter(u=>u!=null)),[l,i])}const Du=a.createContext({}),Mv=Sr("header",function(e,n){return[e,n]=te(e,n,Du),a.createElement("header",{className:"react-aria-Header",...e,ref:n},e.children)}),zv=a.createContext({}),kr=a.createContext(null),Ee=a.createContext(null),Nv=a.forwardRef(function(e,n){[e,n]=te(e,n,kr);let r=a.useContext(Ee);return r?a.createElement(ku,{state:r,props:e,listBoxRef:n}):a.createElement(Cr,{content:a.createElement(Er,e)},o=>a.createElement(Ov,{props:e,listBoxRef:n,collection:o}))});function Ov({props:t,listBoxRef:e,collection:n}){t={...t,collection:n,children:null,items:null};let{layoutDelegate:r}=a.useContext(wt),{filterFn:o,collectionProps:l,collectionRef:i}=a.useContext(Av)||{};e=le(a.useMemo(()=>nl(e,i!==void 0?i:null),[i,e]));let s=a.useMemo(()=>o?n.filter(o):n,[n,o]),u=Dr({...t,collection:s,layoutDelegate:r});return a.createElement(ku,{state:u,props:{...t,...l},listBoxRef:e})}function ku({state:t,props:e,listBoxRef:n}){let{dragAndDropHooks:r,layout:o="stack",orientation:l="vertical"}=e,{collection:i,selectionManager:s}=t,u=!!(r!=null&&r.useDraggableCollectionState),c=!!(r!=null&&r.useDroppableCollectionState),{direction:d}=Ce(),{disabledBehavior:p,disabledKeys:v}=s,f=vr({usage:"search",sensitivity:"base"}),{isVirtualized:b,layoutDelegate:h,dropTargetDelegate:y,CollectionRoot:$}=a.useContext(wt),S=a.useMemo(()=>e.keyboardDelegate||new on({collection:i,collator:f,ref:n,disabledKeys:v,disabledBehavior:p,layout:o,orientation:l,direction:d,layoutDelegate:h}),[i,f,n,p,v,l,d,e.keyboardDelegate,o,h]),{listBoxProps:w}=_f({...e,shouldSelectOnPressUp:u||e.shouldSelectOnPressUp,keyboardDelegate:S,isVirtualized:b},t,n),R=a.useRef(u),D=a.useRef(c);a.useEffect(()=>{R.current!==u&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),D.current!==c&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[u,c]);let P,L,m,B=!1,K=null,k=a.useRef(null);if(u&&r){P=r.useDraggableCollectionState({collection:i,selectionManager:s,preview:r.renderDragPreview?k:void 0}),r.useDraggableCollection({},P,n);let T=r.DragPreview;K=r.renderDragPreview?a.createElement(T,{ref:k},r.renderDragPreview):null}if(c&&r){L=r.useDroppableCollectionState({collection:i,selectionManager:s});let T=r.dropTargetDelegate||y||new r.ListDropTargetDelegate(i,n,{orientation:l,layout:o,direction:d});m=r.useDroppableCollection({keyboardDelegate:S,dropTargetDelegate:T},L,n),B=L.isDropTarget({type:"root"})}let{focusProps:I,isFocused:g,isFocusVisible:C}=pe(),F={isDropTarget:B,isEmpty:t.collection.size===0,isFocused:g,isFocusVisible:C,layout:e.layout||"stack",state:t},A=ee({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:F}),z=null;return t.collection.size===0&&e.renderEmptyState&&(z=a.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(F))),a.createElement(kl,null,a.createElement("div",{..._(e),...M(w,I,m==null?void 0:m.collectionProps),...A,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":B||void 0,"data-empty":t.collection.size===0||void 0,"data-focused":g||void 0,"data-focus-visible":C||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},a.createElement(Se,{values:[[kr,e],[Ee,t],[dn,{dragAndDropHooks:r,dragState:P,dropState:L}],[zv,{elementType:"div"}],[Eu,{render:Vv}],[Kv,{name:"ListBoxSection",render:Tu}]]},a.createElement($,{collection:i,scrollRef:n,persistedKeys:Iv(s,r,L),renderDropIndicator:wu(r,L)})),z,K))}function Tu(t,e,n,r="react-aria-ListBoxSection"){let o=a.useContext(Ee),{dragAndDropHooks:l,dropState:i}=a.useContext(dn),{CollectionBranch:s}=a.useContext(wt),[u,c]=sn();var d;let{headingProps:p,groupProps:v}=ep({heading:c,"aria-label":(d=t["aria-label"])!==null&&d!==void 0?d:void 0}),f=ee({defaultClassName:r,className:t.className,style:t.style,values:{}});return a.createElement("section",{..._(t),...v,...f,ref:e},a.createElement(Du.Provider,{value:{...p,ref:u}},a.createElement(s,{collection:o.collection,parent:n,renderDropIndicator:wu(l,i)})))}const Hv=dv("section",Tu),jv=Sr("item",function(e,n,r){let o=le(n),l=a.useContext(Ee),{dragAndDropHooks:i,dragState:s,dropState:u}=a.useContext(dn),{optionProps:c,labelProps:d,descriptionProps:p,...v}=Qf({key:r.key,"aria-label":e==null?void 0:e["aria-label"]},l,o),{hoverProps:f,isHovered:b}=Ie({isDisabled:!v.allowsSelection&&!v.hasAction,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),h=null;s&&i&&(h=i.useDraggableItem({key:r.key},s));let y=null;u&&i&&(y=i.useDroppableItem({target:{type:"item",key:r.key,dropPosition:"on"}},u,o));let $=s&&s.isDragging(r.key),S=ee({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...v,isHovered:b,selectionMode:l.selectionManager.selectionMode,selectionBehavior:l.selectionManager.selectionBehavior,allowsDragging:!!s,isDragging:$,isDropTarget:y==null?void 0:y.isDropTarget}});a.useEffect(()=>{r.textValue||console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[r.textValue]);let w=e.href?"a":"div";return a.createElement(w,{...M(c,f,h==null?void 0:h.dragProps,y==null?void 0:y.dropProps),...S,ref:o,"data-allows-dragging":!!s||void 0,"data-selected":v.isSelected||void 0,"data-disabled":v.isDisabled||void 0,"data-hovered":b||void 0,"data-focused":v.isFocused||void 0,"data-focus-visible":v.isFocusVisible||void 0,"data-pressed":v.isPressed||void 0,"data-dragging":$||void 0,"data-drop-target":(y==null?void 0:y.isDropTarget)||void 0,"data-selection-mode":l.selectionManager.selectionMode==="none"?void 0:l.selectionManager.selectionMode},a.createElement(Se,{values:[[Et,{slots:{label:d,description:p}}]]},S.children))});function Vv(t,e){e=le(e);let{dragAndDropHooks:n,dropState:r}=a.useContext(dn),{dropIndicatorProps:o,isHidden:l,isDropTarget:i}=n.useDropIndicator(t,r,e);return l?null:a.createElement(_v,{...t,dropIndicatorProps:o,isDropTarget:i,ref:e})}function Wv(t,e){let{dropIndicatorProps:n,isDropTarget:r,...o}=t,l=ee({...o,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return a.createElement("div",{...n,...l,role:"option",ref:e,"data-drop-target":r||void 0})}const _v=a.forwardRef(Wv),Bu=a.createContext({placement:"bottom"}),Tr=a.createContext(null),Ru=a.forwardRef(function(e,n){[e,n]=te(e,n,Tr);let r=a.useContext(fn),o=cn(e),l=e.isOpen!=null||e.defaultOpen!=null||!r?o:r,i=pl(n,l.isOpen)||e.isExiting||!1;if(tv()){let u=e.children;return typeof u=="function"&&(u=u({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),a.createElement(a.Fragment,null,u)}return l&&!l.isOpen&&!i?null:a.createElement(Uv,{...e,triggerRef:e.triggerRef,state:l,popoverRef:n,isExiting:i})});function Uv({state:t,isExiting:e,UNSTABLE_portalContainer:n,...r}){let o=a.useRef(null),[l,i]=a.useState(0);H(()=>{o.current&&t.isOpen&&i(o.current.getBoundingClientRect().width)},[t.isOpen,o]);var s;let{popoverProps:u,underlayProps:c,arrowProps:d,placement:p}=Lf({...r,offset:(s=r.offset)!==null&&s!==void 0?s:8,arrowSize:l},t),v=r.popoverRef,f=fl(v,!!p)||r.isEntering||!1,b=ee({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:p,isEntering:f,isExiting:e}}),h={...u.style,...b.style};return a.createElement(zf,{...r,isExiting:e,portalContainer:n},!r.isNonModal&&t.isOpen&&a.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),a.createElement("div",{...M(_(r),u),...b,ref:v,slot:r.slot||void 0,style:h,"data-trigger":r.trigger,"data-placement":p,"data-entering":f||void 0,"data-exiting":e||void 0},!r.isNonModal&&a.createElement(Eo,{onDismiss:t.close}),a.createElement(Bu.Provider,{value:{...d,placement:p,ref:o}},b.children),a.createElement(Eo,{onDismiss:t.close})))}const Gv=a.createContext(null),Au=a.createContext(null),fn=a.createContext(null);function qv(t){let e=Cv(t),n=a.useRef(null),{triggerProps:r,overlayProps:o}=Wl({type:"dialog"},e,n);return r.id=Y(),o["aria-labelledby"]=r.id,a.createElement(Se,{values:[[fn,e],[Gv,e],[Au,o],[Tr,{trigger:"DialogTrigger",triggerRef:n}]]},a.createElement(id,{...r,ref:n,isPressed:e.isOpen},t.children))}const Zv=a.forwardRef(function(e,n){let r=e["aria-labelledby"];[e,n]=te(e,n,Au);let{dialogProps:o,titleProps:l}=rp({...e,"aria-labelledby":r},n),i=a.useContext(fn);!o["aria-label"]&&!o["aria-labelledby"]&&(e["aria-labelledby"]?o["aria-labelledby"]=e["aria-labelledby"]: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=ee({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(i==null?void 0:i.close)||(()=>{})}});return a.createElement("section",{..._(e),...o,...s,ref:n,slot:e.slot||void 0},a.createElement(Se,{values:[[Xp,{slots:{[Yt]:{},title:{...l,level:2}}}],[un,{slots:{[Yt]:{},close:{onPress:()=>i==null?void 0:i.close()}}}]]},s.children))});function Yv(t){return t&&t.__esModule?t.default:t}const Br=a.createContext(null),Rr=a.createContext(null),Xv=a.forwardRef(function(e,n){[e,n]=te(e,n,Br);let{children:r,isDisabled:o=!1,isInvalid:l=!1,isRequired:i=!1}=e,s=a.useMemo(()=>typeof r=="function"?r({isOpen:!1,isDisabled:o,isInvalid:l,isRequired:i,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):r,[r,o,l,i]);return a.createElement(Cr,{content:s},u=>a.createElement(Jv,{props:e,collection:u,selectRef:n}))});function Jv({props:t,selectRef:e,collection:n}){let{validationBehavior:r}=an(js)||{};var o,l;let i=(l=(o=t.validationBehavior)!==null&&o!==void 0?o:r)!==null&&l!==void 0?l:"native",s=Sv({...t,collection:n,children:void 0,validationBehavior:i}),{isFocusVisible:u,focusProps:c}=pe({within:!0}),d=a.useRef(null),[p,v]=sn(),{labelProps:f,triggerProps:b,valueProps:h,menuProps:y,descriptionProps:$,errorMessageProps:S,...w}=pp({...Ks(t),label:v,validationBehavior:i},s,d),[R,D]=a.useState(null),P=a.useCallback(()=>{d.current&&D(d.current.offsetWidth+"px")},[d]);Nn({ref:d,onResize:P});let L=a.useMemo(()=>({isOpen:s.isOpen,isFocused:s.isFocused,isFocusVisible:u,isDisabled:t.isDisabled||!1,isInvalid:w.isInvalid||!1,isRequired:t.isRequired||!1}),[s.isOpen,s.isFocused,u,t.isDisabled,w.isInvalid,t.isRequired]),m=ee({...t,values:L,defaultClassName:"react-aria-Select"}),B=_(t);delete B.id;let K=a.useRef(null);return a.createElement(Se,{values:[[Br,t],[Rr,s],[Ku,h],[wr,{...f,ref:p,elementType:"span"}],[un,{...b,ref:d,isPressed:s.isOpen}],[fn,s],[Tr,{trigger:"Select",triggerRef:d,scrollRef:K,placement:"bottom start",style:{"--trigger-width":R}}],[kr,{...y,ref:K}],[Ee,s],[Et,{slots:{description:$,errorMessage:S}}],[Os,w]]},a.createElement("div",{...B,...m,...c,ref:e,slot:t.slot||void 0,"data-focused":s.isFocused||void 0,"data-focus-visible":u||void 0,"data-open":s.isOpen||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":w.isInvalid||void 0,"data-required":t.isRequired||void 0}),a.createElement(bp,{autoComplete:t.autoComplete,state:s,triggerRef:d,label:v,name:t.name,isDisabled:t.isDisabled}))}const Ku=a.createContext(null),Qv=a.forwardRef(function(e,n){var r,o;[e,n]=te(e,n,Ku);let l=a.useContext(Rr),{placeholder:i}=an(Br),s=l.selectedKey!=null?l.collection.getItem(l.selectedKey):null,u=s==null?void 0:s.props.children;typeof u=="function"&&(u=u({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"}));let c=rt(Yv(Su),"react-aria-components");var d,p,v;let f=ee({...e,defaultChildren:(d=u??i)!==null&&d!==void 0?d:c.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:(p=(r=l.selectedItem)===null||r===void 0?void 0:r.value)!==null&&p!==void 0?p:null,selectedText:(v=(o=l.selectedItem)===null||o===void 0?void 0:o.textValue)!==null&&v!==void 0?v:null,isPlaceholder:!s}}),b=_(e);return a.createElement("span",{ref:n,...b,...f,"data-placeholder":!s||void 0},a.createElement(Et.Provider,{value:void 0},f.children))}),eb=a.createContext(null),Fu=a.createContext(null),tb=a.forwardRef(function(e,n){return[e,n]=te(e,n,eb),a.createElement(Cr,{content:e.children},r=>a.createElement(nb,{props:e,forwardedRef:n,collection:r}))});function nb({props:t,forwardedRef:e,collection:n}){let r=a.useRef(null),[o,l]=sn(),i=Dr({...t,children:void 0,collection:n}),s=_(t),u=Object.fromEntries(Object.entries(s).map(([b])=>[b,void 0])),{gridProps:c,labelProps:d,descriptionProps:p,errorMessageProps:v}=mp({...t,...u,label:l},i,r);var f;return a.createElement("div",{...s,ref:e,slot:t.slot||void 0,className:(f=t.className)!==null&&f!==void 0?f:"react-aria-TagGroup",style:t.style},a.createElement(Se,{values:[[wr,{...d,elementType:"span",ref:o}],[Fu,{...c,ref:r}],[Ee,i],[Et,{slots:{description:p,errorMessage:v}}]]},t.children))}const rb=a.forwardRef(function(e,n){return a.useContext(Ee)?a.createElement(ob,{props:e,forwardedRef:n}):a.createElement(Er,e)});function ob({props:t,forwardedRef:e}){let n=a.useContext(Ee),{CollectionRoot:r}=a.useContext(wt),[o,l]=te(t,e,Fu);delete o.items,delete o.renderEmptyState;let{focusProps:i,isFocused:s,isFocusVisible:u}=pe(),c={isEmpty:n.collection.size===0,isFocused:s,isFocusVisible:u,state:n},d=ee({className:t.className,style:t.style,defaultClassName:"react-aria-TagList",values:c}),p=Fv(n.selectionManager.focusedKey);return a.createElement("div",{...M(o,i),...d,ref:l,"data-empty":n.collection.size===0||void 0,"data-focused":s||void 0,"data-focus-visible":u||void 0},n.collection.size===0&&t.renderEmptyState?t.renderEmptyState(c):a.createElement(r,{collection:n.collection,persistedKeys:p}))}const lb=Sr("item",(t,e,n)=>{let r=a.useContext(Ee),o=le(e),{focusProps:l,isFocusVisible:i}=pe({within:!0}),{rowProps:s,gridCellProps:u,removeButtonProps:c,...d}=hp({item:n},r,o),{hoverProps:p,isHovered:v}=Ie({isDisabled:!d.allowsSelection,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),f=ee({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tag",values:{...d,isFocusVisible:i,isHovered:v,selectionMode:r.selectionManager.selectionMode,selectionBehavior:r.selectionManager.selectionBehavior}});return a.useEffect(()=>{n.textValue||console.warn("A `textValue` prop is required for <Tag> elements with non-plain text children for accessibility.")},[n.textValue]),a.createElement("div",{ref:o,...f,...M(_(t),s,l,p),"data-selected":d.isSelected||void 0,"data-disabled":d.isDisabled||void 0,"data-hovered":v||void 0,"data-focused":d.isFocused||void 0,"data-focus-visible":i||void 0,"data-pressed":d.isPressed||void 0,"data-allows-removing":d.allowsRemoving||void 0,"data-selection-mode":r.selectionManager.selectionMode==="none"?void 0:r.selectionManager.selectionMode},a.createElement("div",{...u,style:{display:"contents"}},a.createElement(Se,{values:[[un,{slots:{remove:c}}],[wt,Vs]]},f.children)))}),ib=a.createContext({}),Lu=a.createContext(null),ab=a.forwardRef(function(e,n){[e,n]=te(e,n,ib);let r=cf(e),{groupProps:o}=Jd(e,r,n),l=ee({...e,values:{isDisabled:r.isDisabled,state:r},defaultClassName:"react-aria-ToggleButtonGroup"});return a.createElement("div",{...o,...l,ref:n,slot:e.slot||void 0,"data-orientation":e.orientation||"horizontal","data-disabled":e.isDisabled||void 0},a.createElement(Lu.Provider,{value:r},l.children))}),sb=a.createContext({}),ub=a.forwardRef(function(e,n){[e,n]=te(e,n,sb);let r=a.useContext(Lu),o=zl(r&&e.id!=null?{isSelected:r.selectedKeys.has(e.id),onChange(h){r.setSelected(e.id,h)}}:e),{buttonProps:l,isPressed:i,isSelected:s,isDisabled:u}=r&&e.id!=null?Qd({...e,id:e.id},r,n):Fl({...e,id:e.id!=null?String(e.id):void 0},o,n),{focusProps:c,isFocused:d,isFocusVisible:p}=pe(e),{hoverProps:v,isHovered:f}=Ie(e),b=ee({...e,id:void 0,values:{isHovered:f,isPressed:i,isFocused:d,isSelected:o.isSelected,isFocusVisible:p,isDisabled:u,state:o},defaultClassName:"react-aria-ToggleButton"});return a.createElement("button",{...M(l,c,v),...b,ref:n,slot:e.slot||void 0,"data-focused":d||void 0,"data-disabled":u||void 0,"data-pressed":i||void 0,"data-selected":s||void 0,"data-hovered":f||void 0,"data-focus-visible":p||void 0})}),Ar=a.createContext(null),Iu=a.createContext(null);function cb(t){let e=Hs(t),n=a.useRef(null),{triggerProps:r,tooltipProps:o}=$p(t,e,n);return a.createElement(Se,{values:[[Ar,e],[Iu,{...o,triggerRef:n}]]},a.createElement(Rd,{...r,ref:n},t.children))}const db=a.forwardRef(function({UNSTABLE_portalContainer:e,...n},r){[n,r]=te(n,r,Iu);let o=a.useContext(Ar),l=Hs(n),i=n.isOpen!=null||n.defaultOpen!=null||!o?l:o,s=pl(r,i.isOpen)||n.isExiting||!1;return!i.isOpen&&!s?null:a.createElement(Af,{portalContainer:e},a.createElement(fb,{...n,tooltipRef:r,isExiting:s}))});function fb(t){let e=a.useContext(Ar),n=a.useRef(null),[r,o]=a.useState(0);H(()=>{n.current&&e.isOpen&&o(n.current.getBoundingClientRect().width)},[e.isOpen,n]);let{overlayProps:l,arrowProps:i,placement:s}=Vl({placement:t.placement||"top",targetRef:t.triggerRef,overlayRef:t.tooltipRef,offset:t.offset,crossOffset:t.crossOffset,isOpen:e.isOpen,arrowSize:r,arrowBoundaryOffset:t.arrowBoundaryOffset,shouldFlip:t.shouldFlip,onClose:()=>e.close(!0)}),u=fl(t.tooltipRef,!!s)||t.isEntering||!1,c=ee({...t,defaultClassName:"react-aria-Tooltip",values:{placement:s,isEntering:u,isExiting:t.isExiting,state:e}});t=M(t,l);let{tooltipProps:d}=yp(t,e);return a.createElement("div",{...d,ref:t.tooltipRef,...c,style:{...l.style,...c.style},"data-placement":s??void 0,"data-entering":u||void 0,"data-exiting":t.isExiting||void 0},a.createElement(Bu.Provider,{value:{...i,placement:s,ref:n}},c.children))}const Mu=E.defineRecipe({className:"nimbus-tooltip",base:{color:"white",textStyle:"xs",fontWeight:"400",background:"slate.12",display:"inline-flex",alignItems:"center",borderRadius:"100",paddingX:"300",paddingY:"100",margin:"100",maxW:"6400",boxShadow:"1"}}),{withContext:pb}=E.createRecipeContext({recipe:Mu}),vb=pb("div"),zu=a.forwardRef(function({children:e,placement:n="bottom",...r},o){return x.jsx(vb,{ref:o,asChild:!0,...r,children:x.jsx(db,{placement:n,...r,children:e})})});zu.displayName="Tooltip";const Nu=cb;Nu.displayName="TooltipTrigger";const Ou=a.forwardRef(function(e,n){const r=a.useRef(null),o=le(E.mergeRefs(r,n)),{focusableProps:l}=nt(e,o);if(a.isValidElement(e.children))return a.cloneElement(e.children,M(l,e.children.props,{ref:o}))});Ou.displayName="MakeElementFocusable";var bb=(t,e,n,r,o,l,i,s)=>{let u=document.documentElement,c=["light","dark"];function d(f){(Array.isArray(t)?t:[t]).forEach(b=>{let h=b==="class",y=h&&l?o.map($=>l[$]||$):o;h?(u.classList.remove(...y),u.classList.add(l&&l[f]?l[f]:f)):u.setAttribute(b,f)}),p(f)}function p(f){s&&c.includes(f)&&(u.style.colorScheme=f)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)d(r);else try{let f=localStorage.getItem(e)||n,b=i&&f==="system"?v():f;d(b)}catch{}},Wo=["light","dark"],Hu="(prefers-color-scheme: dark)",mb=typeof window>"u",Kr=Z.createContext(void 0),gb={setTheme:t=>{},themes:[]},hb=()=>{var t;return(t=Z.useContext(Kr))!=null?t:gb},yb=t=>Z.useContext(Kr)?Z.createElement(Z.Fragment,null,t.children):Z.createElement(xb,{...t}),$b=["light","dark"],xb=({forcedTheme:t,disableTransitionOnChange:e=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:o="theme",themes:l=$b,defaultTheme:i=n?"system":"light",attribute:s="data-theme",value:u,children:c,nonce:d,scriptProps:p})=>{let[v,f]=Z.useState(()=>Cb(o,i)),[b,h]=Z.useState(()=>v==="system"?Kn():v),y=u?Object.values(u):l,$=Z.useCallback(D=>{let P=D;if(!P)return;D==="system"&&n&&(P=Kn());let L=u?u[P]:P,m=e?Sb(d):null,B=document.documentElement,K=k=>{k==="class"?(B.classList.remove(...y),L&&B.classList.add(L)):k.startsWith("data-")&&(L?B.setAttribute(k,L):B.removeAttribute(k))};if(Array.isArray(s)?s.forEach(K):K(s),r){let k=Wo.includes(i)?i:null,I=Wo.includes(P)?P:k;B.style.colorScheme=I}m==null||m()},[d]),S=Z.useCallback(D=>{let P=typeof D=="function"?D(v):D;f(P);try{localStorage.setItem(o,P)}catch{}},[v]),w=Z.useCallback(D=>{let P=Kn(D);h(P),v==="system"&&n&&!t&&$("system")},[v,t]);Z.useEffect(()=>{let D=window.matchMedia(Hu);return D.addListener(w),w(D),()=>D.removeListener(w)},[w]),Z.useEffect(()=>{let D=P=>{P.key===o&&(P.newValue?f(P.newValue):S(i))};return window.addEventListener("storage",D),()=>window.removeEventListener("storage",D)},[S]),Z.useEffect(()=>{$(t??v)},[t,v]);let R=Z.useMemo(()=>({theme:v,setTheme:S,forcedTheme:t,resolvedTheme:v==="system"?b:v,themes:n?[...l,"system"]:l,systemTheme:n?b:void 0}),[v,S,t,b,n,l]);return Z.createElement(Kr.Provider,{value:R},Z.createElement(Pb,{forcedTheme:t,storageKey:o,attribute:s,enableSystem:n,enableColorScheme:r,defaultTheme:i,value:u,themes:l,nonce:d,scriptProps:p}),c)},Pb=Z.memo(({forcedTheme:t,storageKey:e,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:l,value:i,themes:s,nonce:u,scriptProps:c})=>{let d=JSON.stringify([n,e,l,t,s,i,r,o]).slice(1,-1);return Z.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(${bb.toString()})(${d})`}})}),Cb=(t,e)=>{if(mb)return;let n;try{n=localStorage.getItem(t)||void 0}catch{}return n||e},Sb=t=>{let e=document.createElement("style");return t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},Kn=t=>(t||(t=window.matchMedia(Hu)),t.matches?"dark":"light");function Eb(t){return x.jsx(yb,{attribute:"class",disableTransitionOnChange:!0,...t})}function Fr(){const{resolvedTheme:t,setTheme:e}=hb();return{colorMode:t,setColorMode:e,toggleColorMode:()=>{e(t==="light"?"dark":"light")}}}function wb(t,e){const{colorMode:n}=Fr();return n==="light"?t:e}function Db(){const{colorMode:t}=Fr();return t==="light"?"Light Theme":"DarkTheme"}const kb=E.defineAnimationStyles({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}});function Tb(t){var n;const e={};for(const r in t)(n=t[r])!=null&&n.value?e[r]=t[r].value:e[r]=t[r];return e}const Bb=Tb(U.themeTokens.breakpoints),Rb=E.defineGlobalStyles({"*":{fontFeatureSettings:'"liga", "calt", "case", "ss01", "ss07", "ss08", "tnum"',"--ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000","--focus-ring-color":"colors.primary.7","--brightness":"var(--chakra-empty,/*!*/ /*!*/)","--contrast":"var(--chakra-empty,/*!*/ /*!*/)","--grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--invert":"var(--chakra-empty,/*!*/ /*!*/)","--saturate":"var(--chakra-empty,/*!*/ /*!*/)","--sepia":"var(--chakra-empty,/*!*/ /*!*/)","--drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},"code *":{fontFeatureSettings:'"calt", "case", "ss01", "ss07", "ss08", "tnum"'},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"neutral"},"*::placeholder":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.9",color:"colorPalette.contrast"}}),Ab={spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}},Kb=E.defineLayerStyles({disabled:{value:{opacity:"0.5",cursor:"not-allowed"}}}),Fb=E.defineRecipe({className:"nimbus-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"100"},variants:{variant:{solid:{bg:"colorPalette.4",color:"colorPalette.11"},subtle:{bg:"colorPalette.3",color:"colorPalette.11"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"100",minH:"400"},sm:{textStyle:"xs",px:"150",minH:"500"},md:{textStyle:"sm",px:"200",minH:"600"},lg:{textStyle:"sm",px:"250",minH:"700"}}},defaultVariants:{variant:"solid",size:"md"}}),Lb=E.defineRecipe({className:"nimbus-heading",base:{fontFamily:"heading",fontWeight:"600"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),Ib=E.defineRecipe({className:"nimbus-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"100",borderRadius:"100"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"450"},md:{textStyle:"sm",height:"500"},lg:{textStyle:"md",height:"600"}}},defaultVariants:{size:"md",variant:"raised"}}),Lr=E.defineRecipe({className:"nimbus-text-input",base:{display:"block",borderRadius:"200",colorPalette:"neutral",focusVisibleRing:"outside",bg:"transparent",outline:"none",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)",_placeholder:{opacity:.5,color:"currentColor"},_disabled:{layerStyle:"disabled"},"&[data-invalid='true']":{"--border-color":"colors.critical.7",color:"critical.11"}},variants:{size:{sm:{h:800,textStyle:"sm",px:300},md:{h:1e3,textStyle:"md",px:400}},variant:{solid:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",backgroundColor:"neutral.1",_hover:{backgroundColor:"primary.2"}},ghost:{_hover:{backgroundColor:"primary.2"}}}},defaultVariants:{size:"md",variant:"solid"}}),Mb={avatar:Jo,button:He,code:Fb,heading:Lb,kbd:Ib,link:Ts,tooltip:Mu,textInput:Lr},zb=E.defineSemanticTokens.colors({bg:{DEFAULT:{value:{_light:"{colors.neutral.1}",_dark:"{colors.neutral.1}"}}},fg:{DEFAULT:{value:{_light:"{colors.neutral.12}",_dark:"{colors.neutral.12}"}}},border:{DEFAULT:{value:"{colors.neutral.6}"},muted:{value:"{colors.neutral.7}"},subtle:{value:"{colors.neutral.6}"},emphasized:{value:"{colors.neutral.8}"},inverted:{value:"{colors.neutral.9}"},critical:{value:"{colors.critical.8}"},warning:{value:"{colors.warning.8}"},positive:{value:"{colors.positive.8}"},info:{value:"{colors.ingo.8}"}},...U.themeTokens.color["system-palettes"],...U.themeTokens.color["brand-palettes"],...U.themeTokens.color["semantic-palettes"]}),Nb=E.defineSemanticTokens.shadows(U.themeTokens.shadow),Ob=E.defineSemanticTokens.radii({}),Hb={colors:zb,shadows:Nb,radii:Ob},jb=E.defineSlotRecipe({slots:["trigger","backdrop","positioner","content","title","description","closeTrigger","header","body","footer","backdrop"],className:"nimbus-dialog",base:{backdrop:{bg:{_dark:"bg/50",_light:"fg/50"},pos:"fixed",left:0,top:0,w:"100vw",h:"100dvh",zIndex:"modal",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"200",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{flex:0,px:"600",pt:"600",pb:"400"},body:{flex:"1",px:"600",pt:"200",pb:"600"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"300",px:"600",pt:"200",pb:"400"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.1600",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.1600",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"1000"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100vw",minH:"100vh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),Vb=E.defineSlotRecipe({className:"chakra-list",slots:["root","item","indicator"],base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"200",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert",listStylePosition:"inside"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),Wb=E.defineSlotRecipe({className:"chakra-table",slots:["root","header","body","row","columnHeader","cell","footer","caption"],base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"200",py:"200"},cell:{px:"200",py:"200"}},md:{root:{textStyle:"sm"},columnHeader:{px:"300",py:"300"},cell:{px:"300",py:"300"}},lg:{root:{textStyle:"md"},columnHeader:{px:"400",py:"300"},cell:{px:"400",py:"300"}}}},defaultVariants:{variant:"line",size:"md"}}),_b=E.defineSlotRecipe({slots:["root","label","indicator"],className:"nimbus-checkbox",base:{root:{colorPalette:"primary",display:"inline-flex",gap:"200",alignItems:"center",verticalAlign:"top",minWidth:"600",minHeight:"600","&[data-disabled='true']":{layerStyle:"disabled"}},label:{flexShrink:0,userSelect:"none",color:"neutral.11","&[data-invalid='true']":{color:"critical.11"}},indicator:{position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",border:"solid-50",borderRadius:"50",focusRing:"outside",borderColor:"neutral.9",bg:"transparent",color:"neutral.11",_icon:{w:"350",h:"350"},"&:hover":{borderColor:"neutral.10"},"&[data-invalid='true']":{bg:"transparent",borderColor:"critical.9",color:"critical.11","&:hover":{borderColor:"critical.10"}},"&[data-selected='true'], &[data-indeterminate='true']":{bg:"colorPalette.9",borderColor:"colorPalette.9",color:"colorPalette.contrast","&:hover":{bg:"colorPalette.10",borderColor:"colorPalette.10"},"&[data-invalid='true']":{bg:"critical.9",borderColor:"critical.9",color:"critical.contrast","&:hover":{bg:"critical.10",borderColor:"critical.10"}}}}},variants:{size:{md:{label:{fontSize:"350",fontWeight:"400",lineHeight:"400"},indicator:{w:"400",h:"400",zIndex:1,_after:{position:"absolute",content:"''",width:"600",height:"600",zIndex:0}}}}},defaultVariants:{size:"md"}}),ju=E.defineSlotRecipe({slots:["root","trigger","triggerLabel","options","optionGroup","option"],className:"nimbus-select",base:{root:{colorPalette:"primary",display:"inline-block",position:"relative",maxWidth:"100%",borderRadius:"200","&[data-disabled]":{layerStyle:"disabled",pointerEvents:"none"}},trigger:{cursor:"button",display:"inline-flex",focusRing:"outside",alignItems:"flex-start",borderRadius:"200",color:"neutral.12",width:"100%",userSelect:"none",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)","& span":{display:"inline-block",my:"auto"},'& [slot="description"]':{display:"none"},"[data-invalid] &":{"--border-width":"sizes.50","--border-color":"colors.critical.7"}},triggerLabel:{"--button-safespace":"sizes.1400",color:"neutral.12",textAlign:"left",marginRight:"var(--button-safespace)",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","&[data-placeholder]":{opacity:.5},"[data-invalid] &":{color:"critical.11"}},options:{"--scrollbar-color":"colors.neutral.8","--scrollbar-bg":"colors.neutral.3",bg:"bg",borderRadius:"200",boxShadow:"5",minWidth:"var(--trigger-width)",p:"200",focusRing:"outside",maxHeight:"40svh",overflowY:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--scrollbar-color) var(--scrollbar-bg)"},optionGroup:{textStyle:"xs",color:"neutral.11",fontWeight:"600",lineHeight:"350",letterSpacing:"25",textTransform:"uppercase",p:"200",borderBottom:"solid-25",borderColor:"neutral.6",mx:"-200",mt:"200",mb:"300"},option:{focusRing:"outside",cursor:"menuitem",color:"neutral.12",textStyle:"sm",p:"200",borderRadius:"200",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",'&[aria-selected="true"], &[data-focused="true"]':{bg:"primary.4"},'& [slot="label"]':{display:"block"},'& [slot="description"]':{display:"block",color:"neutral.11",textStyle:"xs"},'&[data-disabled="true"]':{layerStyle:"disabled"}}},variants:{size:{sm:{root:{},trigger:{h:"800",px:"400",textStyle:"sm"}},md:{root:{},trigger:{h:"1000",px:"400",textStyle:"md"}}},variant:{outline:{root:{bg:"bg","&:hover":{bg:"primary.2"}},trigger:{"--border-width":"sizes.25","--border-color":"colors.neutral.7"}},ghost:{root:{bg:"transparent","&:hover":{bg:"primaryAlpha.2"}},trigger:{"--border-width":"sizes.25","--border-color":"transparent"}}}},defaultVariants:{size:"md",variant:"outline"}}),Ub=E.defineSlotRecipe({slots:["root","disclosure","trigger","panel","accordionTitle","headerContentRight"],className:"nimbus-accordion",base:{root:{width:"100%"},disclosure:{width:"100%"},trigger:{fontSize:"var(--font-size)",focusVisibleRing:"outside",minHeight:"1200",bg:"none",flexGrow:1,display:"flex",alignItems:"center",gap:"8px",width:"auto","& svg":{width:"var(--width)",height:"var(--height)",rotate:"0deg",transition:"rotate 200ms"},'&[aria-expanded="true"] svg':{rotate:"90deg"},"&[disabled]":{layerStyle:"disabled"}},panel:{paddingTop:"var(--padding-top)",paddingBottom:"var(--padding-bottom)",paddingLeft:"var(--padding-left)",'&[aria-hidden="true"]':{display:"none"}},accordionTitle:{fontWeight:"700"}},variants:{size:{md:{trigger:{"--font-size":"fontSizes.500","& svg":{"--width":"sizes.600","--height":"sizes.600"}},panel:{"--padding-top":"spacing.600","--padding-bottom":"spacing.800","--padding-left":"spacing.800"}},sm:{trigger:{"--font-size":"fontSizes.400","& svg":{"--width":"sizes.500","--height":"sizes.500"}},panel:{"--padding-top":"spacing.400","--padding-bottom":"spacing.600","--padding-left":"spacing.700"}}}},defaultVariants:{size:"md"}}),Gb=E.defineSlotRecipe({slots:["root","tagList","tag"],className:"nimbus-tag-group",base:{root:{display:"flex",flexDirection:"column",gapY:"50"},tagList:{display:"flex",flexWrap:"wrap",gap:"100"},tag:{display:"flex",alignItems:"center",gap:"100",borderRadius:"200",background:"primary.3",border:"solid-25",borderColor:"primary.5",fontSize:"400",lineHeight:"500"}},variants:{size:{sm:{tag:{maxH:"3600",paddingX:"200",fontSize:"350",lineHeight:"400"}},md:{tag:{maxH:"3800",paddingX:"200",paddingY:"100"}},lg:{tag:{maxH:"4000",padding:"200"}}}},defaultVariants:{size:"lg"}}),qb={dialog:jb,list:Vb,table:Wb,checkbox:_b,select:ju,accordion:Ub,taggroup:Gb},Zb=E.defineTextStyles(U.themeTokens.textStyle),Yb=E.defineTokens.durations(U.themeTokens.aspectRatio),Xb=E.defineTokens.animations(U.themeTokens.animation),Jb=E.defineTokens.blurs(U.themeTokens.blur),Qb=E.defineTokens.borders(U.themeTokens.border),e0=E.defineTokens.colors({...U.themeTokens.color["blacks-and-whites"]}),t0=E.defineTokens.durations(U.themeTokens.duration),n0=E.defineTokens.easings(U.themeTokens.easing),r0=E.defineTokens.fonts(U.themeTokens.fontFamily),o0=E.defineTokens.fontSizes(U.themeTokens.fontSize),l0=E.defineTokens.fontWeights(U.themeTokens.fontWeight),i0=t=>Object.keys(t).reduce((e,n)=>{const o=parseFloat(t[n].value)/100;return e[n]={value:`${o}em`},e},{}),a0=E.defineTokens.letterSpacings(i0(U.themeTokens.letterSpacing)),s0=E.defineTokens.lineHeights(U.themeTokens.lineHeight),u0=E.defineTokens.radii(U.themeTokens.borderRadius),c0=E.defineTokens.spacing(U.themeTokens.spacing),d0=E.defineTokens.sizes({...U.themeTokens.size,"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"},max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),f0=E.defineTokens.zIndex(U.themeTokens.zIndex),p0=E.defineTokens.cursor(U.themeTokens.cursor),v0={aspectRatios:Yb,animations:Xb,blurs:Jb,borders:Qb,colors:e0,durations:t0,easings:n0,fonts:r0,fontSizes:o0,fontWeights:l0,letterSpacings:a0,lineHeights:s0,radii:u0,spacing:c0,sizes:d0,zIndex:f0,cursor:p0},b0=E.defineConfig({preflight:!0,cssVarsPrefix:"nimbus",cssVarsRoot:":where(:root, :host)",globalCss:Rb,theme:{breakpoints:Bb,keyframes:Ab,tokens:v0,semanticTokens:Hb,recipes:Mb,slotRecipes:qb,textStyles:Zb,layerStyles:Kb,animationStyles:kb}}),Vu=E.createSystem(E.defaultBaseConfig,b0);function m0(){const[t,e]=a.useState(n());function n(){return document.documentElement.style.getPropertyValue("color-scheme")||localStorage.getItem("theme")||"light"}return a.useEffect(()=>{const r=document.documentElement,o=new MutationObserver(()=>{const l=n();e(l)});return o.observe(r,{attributes:!0,attributeFilter:["style"]}),()=>o.disconnect()},[]),t}function g0({children:t,...e}){return x.jsx(E.ChakraProvider,{value:Vu,children:x.jsx(Eb,{enableSystem:!1,...e,children:x.jsx(x.Fragment,{children:t})})})}function pn(t){const e={},n={...t};return Object.keys(t).forEach(r=>{Object.prototype.hasOwnProperty.call(t,r)&&E.defaultSystem.isValidProperty(r)&&(e[r]=t[r],delete n[r])}),[e,n]}const{withProvider:h0,withContext:Wu}=E.createSlotRecipeContext({key:"checkbox"}),y0=h0("label","root"),$0=Wu("span","label"),x0=Wu("span","indicator"),_u=a.forwardRef((t,e)=>{const n=a.useRef(null),r=le(E.mergeRefs(n,e)),o=E.useSlotRecipe({key:"checkbox"}),[l]=o.splitVariantProps(t),[i,s]=pn(t),u=zl(t),{inputProps:c}=uf(s,u,r),{isFocused:d,focusProps:p}=pe(),v=u.isSelected&&!t.isIndeterminate,f=t.isIndeterminate,b={"data-selected":v,"data-indeterminate":f,"data-invalid":t.isInvalid,"data-disabled":t.isDisabled,"data-focus":d||void 0};return x.jsxs(y0,{"data-slot":"root",...l,...b,...i,children:[x.jsxs(x0,{"data-slot":"indicator",...b,children:[v&&x.jsx(oe.Check,{}),f&&x.jsx(oe.Remove,{}),x.jsx(Ir,{as:"span",children:x.jsx("input",{...M(c,p),ref:r})})]}),t.children&&x.jsx($0,{"data-slot":"label",...b,children:t.children})]})});_u.displayName="Checkbox";const vn=a.forwardRef((t,e)=>x.jsx(E.Stack,{ref:e,...t}));vn.displayName="Stack";const Ir=t=>{const{as:e="div",...n}=t;return x.jsx(Ol,{elementType:e,...n})};Ir.displayName="VisuallyHidden";const{withContext:P0}=E.createRecipeContext({recipe:Lr}),C0=P0("input"),Uu=a.forwardRef((t,e)=>{const n=a.useRef(null),r=le(E.mergeRefs(n,e)),o=E.useRecipe({recipe:Lr}),[l,i]=o.splitVariantProps(t),[s,u]=pn(i);return x.jsx(Rv,{...u,children:x.jsx(C0,{ref:r,...l,...s,asChild:!0,children:x.jsx(kv,{})})})});Uu.displayName="TextInput";const Gu=a.forwardRef((t,e)=>x.jsx(E.Grid,{ref:e,...t}));Gu.displayName="Grid";const S0=Object.assign(Gu,{Item:E.GridItem}),{withProvider:E0,withContext:Dt}=E.createSlotRecipeContext({key:"select"}),w0=E0("div","root"),D0=Dt("button","trigger"),k0=Dt("span","triggerLabel"),T0=Dt("div","options"),B0=Dt("div","option"),R0=Dt("div","optionGroup"),qu=()=>{const t=a.useContext(Rr);if(!(t!=null&&t.selectedKey))return null;const e=()=>{t==null||t.setSelectedKey(null)};return x.jsx(ot,{pointerEvents:"all",size:"2xs",variant:"ghost",tone:"primary","aria-label":"Clear Selection",onPress:e,children:x.jsx(oe.Close,{})})};qu.displayName="Select.ClearButton";const Mr=a.forwardRef(({children:t,isLoading:e,isDisabled:n,...r},o)=>{const l=E.useSlotRecipe({recipe:ju}),[i,s]=l.splitVariantProps(r),[u,c]=pn(s),d={...c,isDisabled:e||n};return x.jsx(w0,{asChild:!0,ref:o,...i,...u,children:x.jsxs(Xv,{...d,children:[x.jsxs(E.chakra.div,{position:"relative",children:[x.jsx(D0,{zIndex:0,asChild:!0,children:x.jsx(bv,{children:x.jsx(k0,{asChild:!0,children:x.jsx(Qv,{})})})}),x.jsxs(E.Flex,{position:"absolute",top:"0",bottom:"0",zIndex:1,right:"400",pointerEvents:"none",children:[x.jsx(E.Flex,{width:"600",my:"auto",children:x.jsx(qu,{})}),x.jsx(E.Flex,{my:"auto",w:"600",h:"600",pointerEvents:"none",children:x.jsx(ge,{color:"neutral.9",asChild:!0,m:"auto",w:"400",h:"400",children:e?x.jsx(ge,{asChild:!0,animation:"spin",animationDuration:"slowest",children:x.jsx(oe.Loop,{})}):x.jsx(oe.KeyboardArrowDown,{})})})]})]}),x.jsx(Ru,{children:t})]})})});Mr.displayName="Select.Root";const zr=t=>a.forwardRef(t),Nr=zr((t,e)=>{const[n,r]=pn(t);return x.jsx(T0,{asChild:!0,...n,children:x.jsx(Nv,{ref:e,...r})})});Nr.displayName="Select.Options";const Or=zr((t,e)=>x.jsx(B0,{asChild:!0,ref:e,children:x.jsx(jv,{...t})}));Or.displayName="Select.Option";const Hr=zr(({label:t,items:e,children:n,...r},o)=>{if(e&&typeof n!="function")throw new Error('SelectOptionGroup: When "items" is provided, "children" must be a function');return x.jsxs(Hv,{ref:o,...r,children:[x.jsx(R0,{asChild:!0,children:x.jsx(Mv,{children:t})}),e?x.jsx(Er,{items:e,children:l=>typeof n=="function"?n(l):null}):n]})});Hr.displayName="Select.OptionGroup";const A0={Root:Mr,Options:Nr,Option:Or,OptionGroup:Hr},{withProvider:K0,withContext:kt}=E.createSlotRecipeContext({key:"accordion"}),F0=K0("div","root"),L0=kt("div","disclosure"),I0=kt("button","trigger"),M0=kt("div","panel"),z0=kt("div","accordionTitle"),rr=kt("div","headerContentRight"),jr=a.createContext(null),Zu=a.createContext(null),N0=a.forwardRef(({children:t,onExpandedChange:e,...n},r)=>{const o=Pv({...n,onExpandedChange:s=>{e==null||e(s.size>0)}}),l=E.useSlotRecipe({key:"accordion"}),[i]=l.splitVariantProps(n);return x.jsx(Zu.Provider,{value:o,children:x.jsx(F0,{"data-slot":"root",ref:r,...i,children:t})})}),O0=a.forwardRef(({children:t},e)=>{const n=a.useContext(jr);if(!n)throw new Error("Accordion.Header must be used within Accordion.Item");const r=a.Children.toArray(t).reduce((o,l)=>(a.isValidElement(l)&&l.type===rr?o.rightContent.push(l):o.main.push(l),o),{main:[],rightContent:[]});return x.jsxs(E.Flex,{justifyContent:"space-between",alignItems:"center",borderBottom:"solid-25",borderColor:"neutral.4",children:[x.jsxs(I0,{ref:E.mergeRefs(n.triggerRef,e),...n.buttonProps,"data-slot":"trigger",outline:n.isFocusVisible?void 0:"none",children:[x.jsx(oe.KeyboardArrowRight,{}),x.jsx(z0,{"data-slot":"accordionTitle",children:r.main})]}),r.rightContent.length>0&&x.jsx(rr,{"data-slot":"headerContentRight",children:r.rightContent})]})}),H0=a.forwardRef((t,e)=>{const n=a.useContext(jr),r=le(E.mergeRefs(n==null?void 0:n.panelRef,e));return x.jsx(M0,{ref:r,...E.mergeProps({...n==null?void 0:n.panelProps,...t}),"data-slot":"panel",children:t.children})}),j0=a.forwardRef(({children:t,id:e,isDisabled:n,isExpanded:r,onExpandedChange:o,value:l},i)=>{const s=Y(),c=l||(e||s),d=a.useContext(Zu),p=d?d.expandedKeys.has(c):r,v=xv({isExpanded:p,onExpandedChange:P=>{d&&d.toggleKey(c),o==null||o(P)}}),f=a.useRef(null),b=a.useRef(null),h=n||(d==null?void 0:d.isDisabled)||!1,{buttonProps:y,panelProps:$}=op({isExpanded:v.isExpanded,isDisabled:h},v,f),{buttonProps:S}=nn(y,b),{focusProps:w,isFocusVisible:R}=pe(),D={isExpanded:v.isExpanded,triggerRef:b,panelRef:f,buttonProps:M(S,w),panelProps:$,isFocusVisible:R};return x.jsx(jr.Provider,{value:D,children:x.jsx(L0,{"data-slot":"disclosure","data-value":c,"data-expanded":v.isExpanded,ref:i,children:t})})}),V0={Root:N0,Item:j0,Header:O0,Content:H0,HeaderRightContent:rr},W0=E.defineRecipe({className:"nimbus-loading-spinner",base:{display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{overflow:"visible",transform:"scale(calc(1 - 2/12))"},"& svg [data-svg-path='spinner-pointer']":{stroke:"colorPalette.10",animationName:"spin",animationDuration:"0.5s",animationTimingFunction:"linear",animationIterationCount:"infinite",transformOrigin:"center center 0"},"& svg [data-svg-path='spinner-circle']":{stroke:"colorPalette.5"}},variants:{size:{"2xs":{width:"350",height:"350"},xs:{width:"500",height:"500"},sm:{width:"600",height:"600"},md:{width:"800",height:"800"},lg:{width:"1000",height:"1000"}},tone:{primary:{colorPalette:"ctvioletAlpha"},white:{colorPalette:"whiteAlpha"}}},defaultVariants:{size:"sm",tone:"primary"}}),{withContext:_0}=E.createRecipeContext({recipe:W0}),U0=_0("div"),G0="M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.7079 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 10.6211 1.77159 9.25574 2.29927 7.98182C2.82694 6.7079 3.60037 5.55039 4.57538 4.57538C5.5504 3.60036 6.70791 2.82694 7.98183 2.29926C9.25575 1.77159 10.6211 1.5 12 1.5C13.3789 1.5 14.7443 1.77159 16.0182 2.29927C17.2921 2.82694 18.4496 3.60037 19.4246 4.57538C20.3996 5.5504 21.1731 6.70791 21.7007 7.98183C22.2284 9.25575 22.5 10.6211 22.5 12L22.5 12Z",q0="M12 1.5C13.3789 1.5 14.7443 1.77159 16.0182 2.29927C17.2921 2.82694 18.4496 3.60036 19.4246 4.57538C20.3996 5.55039 21.1731 6.70791 21.7007 7.98183C22.2284 9.25574 22.5 10.6211 22.5 12",Yu=a.forwardRef(({"aria-label":t="Loading data",...e},n)=>{const{progressBarProps:r}=fp({isIndeterminate:!0,"aria-label":t,...e});return x.jsx(U0,{ref:n,...M(e,r),"aria-label":t,children:x.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",children:[x.jsx("path",{d:G0,"data-svg-path":"spinner-circle",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),x.jsx("path",{d:q0,"data-svg-path":"spinner-pointer",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})})});Yu.displayName="LoadingSpinner";const Z0=E.defineSlotRecipe({slots:["root","header","content"],className:"nimbus-card",base:{root:{colorPalette:"slate",display:"inline-flex",alignItems:"flex-start",borderRadius:"300",focusVisibleRing:"outside"}},variants:{cardPadding:{sm:{root:{padding:"200"}},md:{root:{padding:"400"}},lg:{root:{padding:"600"}}},borderStyle:{none:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.3"}}},elevation:{none:{},elevated:{root:{shadow:"1"}}},backgroundStyle:{default:{root:{backgroundColor:"colorPalette.contrast"}},muted:{root:{backgroundColor:"colorPalette.2"}}}}}),{withProvider:Y0,withContext:Xu}=E.createSlotRecipeContext({recipe:Z0}),X0=Y0("div","root"),J0=Xu("div","header"),Q0=Xu("div","content"),Vr=a.createContext(void 0),Wr=a.forwardRef(({children:t,...e},n)=>{const{isFocused:r,isFocusVisible:o,focusProps:l}=pe(),[i,s]=a.useState(null),[u,c]=a.useState(null),d=a.useMemo(()=>({setHeader:s,setContent:c}),[s,c]);return x.jsx(Vr.Provider,{value:d,children:x.jsxs(X0,{ref:n,...M(e,l),"data-focus":r||void 0,"data-focus-visible":o||void 0,tabIndex:0,children:[x.jsxs(vn,{direction:"column",gap:"200",children:[i,u]}),t]})})});Wr.displayName="Card.Root";const _r=({children:t,...e})=>{const n=a.useContext(Vr);return a.useEffect(()=>{if(n){const r=x.jsx(J0,{...e,children:t});return n.setHeader(r),()=>n.setHeader(null)}},[t,e]),null};_r.displayName="Card.Header";const Ur=({children:t,...e})=>{const n=a.useContext(Vr);return a.useEffect(()=>{if(n){const r=x.jsx(Q0,{...e,children:t});return n.setContent(r),()=>n.setContent(null)}},[t,e]),null};Ur.displayName="Card.Content";const em={Root:Wr,Header:_r,Content:Ur},tm=E.defineRecipe({className:"nimbus-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"200",justifyContent:"center",whiteSpace:"nowrap",verticalAlign:"middle",py:"25",fontWeight:"500",backgroundColor:"colorPalette.3",color:"colorPalette.11",w:"auto",userSelect:"none",_icon:{flexShrink:"0"}},variants:{size:{"2xs":{fontSize:"300",gap:"100",h:"600",lineHeight:"350",px:"200",_icon:{width:"400",height:"400"}},xs:{fontSize:"350",gap:"100",h:"800",lineHeight:"400",px:"300",_icon:{width:"500",height:"500"}},md:{fontSize:"400",gap:"200",h:"1000",lineHeight:"500",px:"400",_icon:{width:"600",height:"600"}}}},defaultVariants:{size:"md"}}),{withContext:nm}=E.createRecipeContext({recipe:tm}),rm=nm("span"),om=a.forwardRef((t,e)=>{const{as:n,asChild:r,children:o,...l}=t,i=a.useRef(null),s=le(E.mergeRefs(i,e)),u=n||"span";return x.jsx(rm,{as:u,...M(l,{ref:s}),children:o})}),lm=E.defineSlotRecipe({slots:["root","title","description","icon","actions","dismissButton"],className:"nimbus-alert",base:{root:{display:"inline-flex",flexDirection:"row",gap:"200",width:"100%"},icon:{marginTop:"50","& svg":{width:"500",height:"500",color:"colorPalette.11"}},title:{color:"colorPalette.11"},description:{color:"colorPalette.11"}},variants:{tone:{critical:{root:{colorPalette:"critical"}},info:{root:{colorPalette:"info"}},warning:{root:{colorPalette:"amber"}},positive:{root:{colorPalette:"positive"}}},variant:{flat:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.5",backgroundColor:"colorPalette.2",padding:"200",borderRadius:"200"}}}}}),{withProvider:im,withContext:Tt}=E.createSlotRecipeContext({recipe:lm}),am=im("div","root"),sm=Tt("div","title"),um=Tt("div","description"),cm=Tt("div","icon"),dm=Tt("div","actions"),fm=Tt("div","dismissButton"),pm=t=>{switch(t){case"critical":return x.jsx(oe.ErrorOutline,{});case"info":return x.jsx(oe.Info,{});case"warning":return x.jsx(oe.WarningAmber,{});case"positive":return x.jsx(oe.CheckCircleOutline,{});default:return null}},Bt=a.createContext(void 0),Ju=a.forwardRef(({children:t,...e},n)=>{const[r,o]=a.useState(null),[l,i]=a.useState(null),[s,u]=a.useState(null),[c,d]=a.useState(null),p=a.useMemo(()=>({setTitle:o,setDescription:i,setActions:u,setDismiss:d}),[o,i,u,d]);return x.jsx(Bt.Provider,{value:p,children:x.jsxs(am,{ref:n,...e,role:"alert",children:[x.jsx(cm,{alignItems:"flex-start",children:pm(e.tone)}),x.jsxs(vn,{flex:"1",gap:"200",children:[x.jsxs(ge,{children:[r,l]}),s]}),c,t]})})});Ju.displayName="Alert.Root";const Qu=({children:t,...e})=>{const n=a.useContext(Bt);return a.useEffect(()=>{if(n){const r=x.jsx(sm,{...e,fontWeight:"600",children:t});return n.setTitle(r),()=>n.setTitle(null)}},[t,e]),null};Qu.displayName="Alert.Title";const ec=({children:t,...e})=>{const n=a.useContext(Bt);return a.useEffect(()=>{if(n){const r=x.jsx(um,{...e,children:t});return n.setDescription(r),()=>n.setDescription(null)}},[t,e]),null};ec.displayName="Alert.Description";const tc=({children:t,...e})=>{const n=a.useContext(Bt);return a.useEffect(()=>{if(n){const r=x.jsx(dm,{...e,children:t});return n.setActions(r),()=>n.setActions(null)}},[t,e]),null};tc.displayName="Alert.Actions";const nc=({children:t,...e})=>{const n=a.useContext(Bt);return a.useEffect(()=>{if(n){const r=x.jsx(fm,{children:x.jsx(ot,{"aria-label":"Dismiss",...e,variant:"ghost",size:"2xs",children:x.jsx(oe.Clear,{role:"img"})})});return n.setDismiss(r),()=>n.setDismiss(null)}},[t,e]),null};nc.displayName="Alert.DismissButton";const vm={Root:Ju,Title:Qu,Description:ec,Actions:tc,DismissButton:nc};var qo,Zo,Yo,Xo;const bm=E.defineSlotRecipe({slots:["root","button"],className:"nimbus-toggle-button-group",base:{root:{display:"inline-flex"},button:{...He.base,...(qo=He.variants)==null?void 0:qo.variant.outline,borderRadius:"0",borderRightWidth:"0","&:first-of-type":{borderLeftRadius:"200"},"&:last-of-type":{borderRightWidth:"1px",borderRightRadius:"200"},"&[data-selected=true]":(Zo=He.variants)==null?void 0:Zo.variant.solid}},variants:{size:{xs:{button:(Yo=He.variants)==null?void 0:Yo.size.xs},md:{button:(Xo=He.variants)==null?void 0:Xo.size.md}},tone:{primary:{button:{colorPalette:"primary"}},critical:{button:{colorPalette:"critical"}},neutral:{button:{colorPalette:"neutral"}}}},defaultVariants:{size:"md"}}),{withContext:mm,withProvider:gm}=E.createSlotRecipeContext({recipe:bm}),hm=gm(ab,"root"),ym=mm(ub,"button"),Gr=a.forwardRef(({children:t,...e},n)=>x.jsx(hm,{ref:n,...e,children:t}));Gr.displayName="ToggleButtonGroup.Root";const qr=a.forwardRef(({children:t,...e},n)=>x.jsx(ym,{...e,ref:n,children:t}));qr.displayName="ToggleButtonGroup.Button";const $m={Root:Gr,Button:qr},xm=`
|
|
2
18
|
"label"
|
|
3
19
|
"input"
|
|
4
20
|
"description"
|
|
5
21
|
"error"
|
|
6
|
-
`,
|
|
22
|
+
`,Pm=`
|
|
7
23
|
"label input"
|
|
8
24
|
"label description"
|
|
9
25
|
"label error"
|
|
10
|
-
`,dr=i.defineSlotRecipe({slots:["root","label","input","description","error","popover"],className:"nimbus-ui-form-field",base:{root:{"--grid-gap":"spacing.100",display:"grid",width:"auto"},label:{gridArea:"label",fontWeight:"500",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},input:{gridArea:"input"},description:{gridArea:"description",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},error:{gridArea:"error",color:"critical.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},popover:{"--scrollbar-color":"colors.neutral.8","--scrollbar-bg":"colors.neutral.3",bg:"neutral.1",maxWidth:"xl",borderRadius:"200",boxShadow:"6",border:"solid-25",borderColor:"neutral.8",maxHeight:"40svh",overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--scrollbar-color) var(--scrollbar-bg)",focusRing:"outside"}},variants:{size:{md:{root:{"--form-field-font-size":"fontSizes.350","--form-field-line-height":"lineHeights.500"}},sm:{root:{"--form-field-font-size":"fontSizes.300","--form-field-line-height":"lineHeights.450"}}},direction:{column:{root:{gridTemplateAreas:sr},input:{mt:"var(--grid-gap)"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}},row:{root:{gridTemplateAreas:cr,gridTemplateColumns:"auto 1fr",gridColumnGap:"200"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}}}},defaultVariants:{direction:"column",size:"md"}}),{withProvider:ur,withContext:K}=i.createSlotRecipeContext({recipe:dr}),pr=ur("div","root"),fr=K("div","label"),mr=K("div","input"),gr=K("div","description"),hr=K("div","error"),br=K("div","popover"),xr=a.forwardRef(({isInvalid:e,isRequired:t,isDisabled:o,isReadOnly:r,children:c,...l},u)=>{const[s,p]=a.useState({label:null,description:null,error:null,info:null,input:null,isInvalid:e,isRequired:t,isDisabled:o,isReadOnly:r}),{labelProps:m,fieldProps:g,descriptionProps:y,errorMessageProps:f}=b.useField({label:s.label,description:s.description,errorMessage:s.error});a.useEffect(()=>{p(x=>({...x,isInvalid:e,isRequired:t,isDisabled:o,isReadOnly:r}))},[e,t,o,r]);const d={...g,isInvalid:e,isRequired:t,isDisabled:o,isReadOnly:r};return n.jsx(O.Provider,{value:{context:s,setContext:p},children:n.jsxs(pr,{ref:u,...l,children:[s.label&&n.jsxs(fr,{...s.labelSlotProps,children:[n.jsxs("label",{...m,children:[s.label,t&&n.jsx("sup",{"aria-hidden":"true",children:"*"})]}),s.info&&n.jsxs(R.DialogTrigger,{children:[n.jsx(I,{as:"span",display:"inline-block",position:"relative",width:"1ch",height:"1ch",ml:"200",children:n.jsx(I,{as:"span",display:"inline-flex",position:"absolute",top:"50%",right:"50%",transform:"translate(50%, -50%)",children:n.jsx(W,{"aria-label":"__MORE INFO",size:"2xs",tone:"info",variant:"link",children:n.jsx(T.HelpOutline,{})})})}),n.jsx(R.Popover,{children:n.jsx(br,{asChild:!0,children:n.jsx(R.Dialog,{children:n.jsx(I,{p:"300",children:s.info})})})})]})]}),s.input&&n.jsx(mr,{...s.inputSlotProps,children:a.Children.map(s.input,x=>a.isValidElement(x)?a.cloneElement(x,d):x)}),s.description&&n.jsx(gr,{...y,...s.descriptionSlotProps,children:s.description}),e&&s.error&&n.jsxs(hr,{...f,...s.errorSlotProps,children:[n.jsx(I,{as:T.ErrorOutline,display:"inline-flex",boxSize:"400",verticalAlign:"text-bottom",mr:"100"}),s.error]}),c]})})}),vr=({children:e,...t})=>{const{setContext:o}=a.useContext(O);return a.useEffect(()=>{o(r=>({...r,label:e,labelSlotProps:t}))},[e,o]),null},yr=({children:e,...t})=>{const{setContext:o}=a.useContext(O);return a.useEffect(()=>{o(r=>({...r,input:e,inputSlotProps:t}))},[e,o]),null},Cr=({children:e,...t})=>{const{setContext:o}=a.useContext(O);return a.useEffect(()=>{o(r=>({...r,description:e,descriptionSlotProps:t}))},[e,o]),null},wr=({children:e,...t})=>{const{setContext:o}=a.useContext(O);return a.useEffect(()=>{o(r=>({...r,error:e,errorSlotProps:t}))},[e,o]),null},Sr=({children:e})=>{const{setContext:t}=a.useContext(O);return a.useEffect(()=>{t(o=>({...o,info:e}))},[e,t]),null},O=a.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),kr={Root:xr,Label:vr,Input:yr,Description:Cr,Error:wr,InfoBox:Sr};function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},re.apply(null,arguments)}var tt=["shift","alt","meta","mod","ctrl"],Rr={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function N(e){return(e&&Rr[e]||e||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function Pr(e){return tt.includes(e)}function Z(e,t){return t===void 0&&(t=","),e.split(t)}function Q(e,t,o){t===void 0&&(t="+");var r=e.toLocaleLowerCase().split(t).map(function(u){return N(u)}),c={alt:r.includes("alt"),ctrl:r.includes("ctrl")||r.includes("control"),shift:r.includes("shift"),meta:r.includes("meta"),mod:r.includes("mod")},l=r.filter(function(u){return!tt.includes(u)});return re({},c,{keys:l,description:o,hotkey:e})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&ot([N(e.key),N(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&rt([N(e.key),N(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){L.clear()})})();var L=new Set;function Ce(e){return Array.isArray(e)}function Tr(e,t){t===void 0&&(t=",");var o=Ce(e)?e:e.split(t);return o.every(function(r){return L.has(r.trim().toLowerCase())})}function ot(e){var t=Array.isArray(e)?e:[e];L.has("meta")&&L.forEach(function(o){return!Pr(o)&&L.delete(o.toLowerCase())}),t.forEach(function(o){return L.add(o.toLowerCase())})}function rt(e){var t=Array.isArray(e)?e:[e];e==="meta"?L.clear():t.forEach(function(o){return L.delete(o.toLowerCase())})}function jr(e,t,o){(typeof o=="function"&&o(e,t)||o===!0)&&e.preventDefault()}function Ar(e,t,o){return typeof o=="function"?o(e,t):o===!0||o===void 0}function Er(e){return nt(e,["input","textarea","select"])}function nt(e,t){t===void 0&&(t=!1);var o=e.target,r=e.composed,c=null;return Dr(o)&&r?c=e.composedPath()[0]&&e.composedPath()[0].tagName:c=o&&o.tagName,Ce(t)?!!(c&&t&&t.some(function(l){var u;return l.toLowerCase()===((u=c)==null?void 0:u.toLowerCase())})):!!(c&&t&&t)}function Dr(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function zr(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(function(o){return t.includes(o)})||e.includes("*"):!0}var Ir=function(t,o,r){r===void 0&&(r=!1);var c=o.alt,l=o.meta,u=o.mod,s=o.shift,p=o.ctrl,m=o.keys,g=t.key,y=t.code,f=t.ctrlKey,d=t.metaKey,x=t.shiftKey,w=t.altKey,P=N(y),S=g.toLowerCase();if(!(m!=null&&m.includes(P))&&!(m!=null&&m.includes(S))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(P))return!1;if(!r){if(c===!w&&S!=="alt"||s===!x&&S!=="shift")return!1;if(u){if(!d&&!f)return!1}else if(l===!d&&S!=="meta"&&S!=="os"||p===!f&&S!=="ctrl"&&S!=="control")return!1}return m&&m.length===1&&(m.includes(S)||m.includes(P))?!0:m?Tr(m):!m},Hr=a.createContext(void 0),Nr=function(){return a.useContext(Hr)};function it(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(o,r){return o&&it(e[r],t[r])},!0):e===t}var Lr=a.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),Fr=function(){return a.useContext(Lr)};function Br(e){var t=a.useRef(void 0);return it(t.current,e)||(t.current=e),t.current}var Se=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},Or=typeof window<"u"?a.useLayoutEffect:a.useEffect;function _r(e,t,o,r){var c=a.useState(null),l=c[0],u=c[1],s=a.useRef(!1),p=o instanceof Array?r instanceof Array?void 0:r:o,m=Ce(e)?e.join(p==null?void 0:p.splitKey):e,g=o instanceof Array?o:r instanceof Array?r:void 0,y=a.useCallback(t,g??[]),f=a.useRef(y);g?f.current=y:f.current=t;var d=Br(p),x=Fr(),w=x.enabledScopes,P=Nr();return Or(function(){if(!((d==null?void 0:d.enabled)===!1||!zr(w,d==null?void 0:d.scopes))){var S=function(h,j){var _;if(j===void 0&&(j=!1),!(Er(h)&&!nt(h,d==null?void 0:d.enableOnFormTags))){if(l!==null){var A=l.getRootNode();if((A instanceof Document||A instanceof ShadowRoot)&&A.activeElement!==l&&!l.contains(A.activeElement)){Se(h);return}}(_=h.target)!=null&&_.isContentEditable&&!(d!=null&&d.enableOnContentEditable)||Z(m,d==null?void 0:d.splitKey).forEach(function(U){var z,F=Q(U,d==null?void 0:d.combinationKey);if(Ir(h,F,d==null?void 0:d.ignoreModifiers)||(z=F.keys)!=null&&z.includes("*")){if(d!=null&&d.ignoreEventWhen!=null&&d.ignoreEventWhen(h)||j&&s.current)return;if(jr(h,F,d==null?void 0:d.preventDefault),!Ar(h,F,d==null?void 0:d.enabled)){Se(h);return}f.current(h,F),j||(s.current=!0)}})}},E=function(h){h.key!==void 0&&(ot(N(h.code)),((d==null?void 0:d.keydown)===void 0&&(d==null?void 0:d.keyup)!==!0||d!=null&&d.keydown)&&S(h))},D=function(h){h.key!==void 0&&(rt(N(h.code)),s.current=!1,d!=null&&d.keyup&&S(h,!0))},H=l||(p==null?void 0:p.document)||document;return H.addEventListener("keyup",D),H.addEventListener("keydown",E),P&&Z(m,d==null?void 0:d.splitKey).forEach(function(v){return P.addHotkey(Q(v,d==null?void 0:d.combinationKey,d==null?void 0:d.description))}),function(){H.removeEventListener("keyup",D),H.removeEventListener("keydown",E),P&&Z(m,d==null?void 0:d.splitKey).forEach(function(v){return P.removeHotkey(Q(v,d==null?void 0:d.combinationKey,d==null?void 0:d.description))})}}},[l,m,d,w]),u}function Wr(){var e=a.useRef(!1),t=a.useCallback(function(){return e.current},[]);return a.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}var Vr=function(e){e===void 0&&(e={});var t=a.useState(e),o=t[0],r=t[1],c=a.useCallback(function(l){r(function(u){return Object.assign({},u,l instanceof Function?l(u):l)})},[]);return[o,c]};function Mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ee,ke;function Gr(){return ke||(ke=1,ee=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,o=[],r=0;r<e.rangeCount;r++)o.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||o.forEach(function(c){e.addRange(c)}),t&&t.focus()}}),ee}var te,Re;function $r(){if(Re)return te;Re=1;var e=Gr(),t={"text/plain":"Text","text/html":"Url",default:"Text"},o="Copy to clipboard: #{key}, Enter";function r(l){var u=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return l.replace(/#{\s*key\s*}/g,u)}function c(l,u){var s,p,m,g,y,f,d=!1;u||(u={}),s=u.debug||!1;try{m=e(),g=document.createRange(),y=document.getSelection(),f=document.createElement("span"),f.textContent=l,f.ariaHidden="true",f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",function(w){if(w.stopPropagation(),u.format)if(w.preventDefault(),typeof w.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var P=t[u.format]||t.default;window.clipboardData.setData(P,l)}else w.clipboardData.clearData(),w.clipboardData.setData(u.format,l);u.onCopy&&(w.preventDefault(),u.onCopy(w.clipboardData))}),document.body.appendChild(f),g.selectNodeContents(f),y.addRange(g);var x=document.execCommand("copy");if(!x)throw new Error("copy command was unsuccessful");d=!0}catch(w){s&&console.error("unable to copy using execCommand: ",w),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(u.format||"text",l),u.onCopy&&u.onCopy(window.clipboardData),d=!0}catch(P){s&&console.error("unable to copy using clipboardData: ",P),s&&console.error("falling back to prompt"),p=r("message"in u?u.message:o),window.prompt(p,l)}}finally{y&&(typeof y.removeRange=="function"?y.removeRange(g):y.removeAllRanges()),f&&document.body.removeChild(f),m()}return d}return te=c,te}var Kr=$r();const Ur=Mr(Kr);var qr=function(){var e=Wr(),t=Vr({value:void 0,error:void 0,noUserInteraction:!0}),o=t[0],r=t[1],c=a.useCallback(function(l){if(e()){var u,s;try{if(typeof l!="string"&&typeof l!="number"){var p=new Error("Cannot copy typeof "+typeof l+" to clipboard, must be a string");process.env.NODE_ENV==="development"&&console.error(p),r({value:l,error:p,noUserInteraction:!0});return}else if(l===""){var p=new Error("Cannot copy empty string to clipboard.");process.env.NODE_ENV==="development"&&console.error(p),r({value:l,error:p,noUserInteraction:!0});return}s=l.toString(),u=Ur(s),r({value:s,error:void 0,noUserInteraction:u})}catch(m){r({value:s,error:m,noUserInteraction:u})}}},[]);return[o,c]};const Xr=i.defineAnimationStyles({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}});function Yr(e){var o;const t={};for(const r in e)(o=e[r])!=null&&o.value?t[r]=e[r].value:t[r]=e[r];return t}const Jr=Yr(C.themeTokens.breakpoints),Zr=i.defineGlobalStyles({"*":{fontFeatureSettings:'"liga", "calt", "case", "ss01", "ss07", "ss08", "tnum"',"--ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000","--focus-ring-color":"colors.primary.7","--brightness":"var(--chakra-empty,/*!*/ /*!*/)","--contrast":"var(--chakra-empty,/*!*/ /*!*/)","--grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--invert":"var(--chakra-empty,/*!*/ /*!*/)","--saturate":"var(--chakra-empty,/*!*/ /*!*/)","--sepia":"var(--chakra-empty,/*!*/ /*!*/)","--drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},"code *":{fontFeatureSettings:'"calt", "case", "ss01", "ss07", "ss08", "tnum"'},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"neutral"},"*::placeholder":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.9",color:"colorPalette.contrast"}}),Qr={spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}},en=i.defineLayerStyles({disabled:{value:{opacity:"0.5",cursor:"not-allowed"}}}),tn=i.defineRecipe({className:"nimbus-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"100"},variants:{variant:{solid:{bg:"colorPalette.4",color:"colorPalette.11"},subtle:{bg:"colorPalette.3",color:"colorPalette.11"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"100",minH:"400"},sm:{textStyle:"xs",px:"150",minH:"500"},md:{textStyle:"sm",px:"200",minH:"600"},lg:{textStyle:"sm",px:"250",minH:"700"}}},defaultVariants:{variant:"solid",size:"md"}}),on=i.defineRecipe({className:"nimbus-heading",base:{fontFamily:"heading",fontWeight:"600"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),rn=i.defineRecipe({className:"nimbus-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"100",borderRadius:"100"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"450"},md:{textStyle:"sm",height:"500"},lg:{textStyle:"md",height:"600"}}},defaultVariants:{size:"md",variant:"raised"}}),nn={avatar:Ee,button:B,code:tn,heading:on,kbd:rn,link:ze,tooltip:Le,textInput:se},an=i.defineSemanticTokens.colors({bg:{DEFAULT:{value:{_light:"{colors.neutral.1}",_dark:"{colors.neutral.1}"}}},fg:{DEFAULT:{value:{_light:"{colors.neutral.12}",_dark:"{colors.neutral.12}"}}},border:{DEFAULT:{value:"{colors.neutral.6}"},muted:{value:"{colors.neutral.7}"},subtle:{value:"{colors.neutral.6}"},emphasized:{value:"{colors.neutral.8}"},inverted:{value:"{colors.neutral.9}"},critical:{value:"{colors.critical.8}"},warning:{value:"{colors.warning.8}"},positive:{value:"{colors.positive.8}"},info:{value:"{colors.ingo.8}"}},...C.themeTokens.color["system-palettes"],...C.themeTokens.color["brand-palettes"],...C.themeTokens.color["semantic-palettes"]}),ln=i.defineSemanticTokens.shadows(C.themeTokens.shadow),sn=i.defineSemanticTokens.radii({}),cn={colors:an,shadows:ln,radii:sn},dn=i.defineSlotRecipe({slots:["trigger","backdrop","positioner","content","title","description","closeTrigger","header","body","footer","backdrop"],className:"nimbus-dialog",base:{backdrop:{bg:{_dark:"bg/50",_light:"fg/50"},pos:"fixed",left:0,top:0,w:"100vw",h:"100dvh",zIndex:"modal",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"200",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{flex:0,px:"600",pt:"600",pb:"400"},body:{flex:"1",px:"600",pt:"200",pb:"600"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"300",px:"600",pt:"200",pb:"400"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.1600",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.1600",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"1000"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100vw",minH:"100vh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),un=i.defineSlotRecipe({className:"chakra-list",slots:["root","item","indicator"],base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"200",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert",listStylePosition:"inside"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),pn=i.defineSlotRecipe({className:"chakra-table",slots:["root","header","body","row","columnHeader","cell","footer","caption"],base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"200",py:"200"},cell:{px:"200",py:"200"}},md:{root:{textStyle:"sm"},columnHeader:{px:"300",py:"300"},cell:{px:"300",py:"300"}},lg:{root:{textStyle:"md"},columnHeader:{px:"400",py:"300"},cell:{px:"400",py:"300"}}}},defaultVariants:{variant:"line",size:"md"}}),fn={dialog:dn,list:un,table:pn,checkbox:oo,select:$e,accordion:Eo},mn=i.defineTextStyles(C.themeTokens.textStyle),gn=i.defineTokens.durations(C.themeTokens.aspectRatio),hn=i.defineTokens.animations(C.themeTokens.animation),bn=i.defineTokens.blurs(C.themeTokens.blur),xn=i.defineTokens.borders(C.themeTokens.border),vn=i.defineTokens.colors({...C.themeTokens.color["blacks-and-whites"]}),yn=i.defineTokens.durations(C.themeTokens.duration),Cn=i.defineTokens.easings(C.themeTokens.easing),wn=i.defineTokens.fonts(C.themeTokens.fontFamily),Sn=i.defineTokens.fontSizes(C.themeTokens.fontSize),kn=i.defineTokens.fontWeights(C.themeTokens.fontWeight),Rn=e=>Object.keys(e).reduce((t,o)=>{const c=parseFloat(e[o].value)/100;return t[o]={value:`${c}em`},t},{}),Pn=i.defineTokens.letterSpacings(Rn(C.themeTokens.letterSpacing)),Tn=i.defineTokens.lineHeights(C.themeTokens.lineHeight),jn=i.defineTokens.radii(C.themeTokens.borderRadius),An=i.defineTokens.spacing(C.themeTokens.spacing),En=i.defineTokens.sizes({...C.themeTokens.size,"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"},max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),Dn=i.defineTokens.zIndex(C.themeTokens.zIndex),zn=i.defineTokens.cursor(C.themeTokens.cursor),In={aspectRatios:gn,animations:hn,blurs:bn,borders:xn,colors:vn,durations:yn,easings:Cn,fonts:wn,fontSizes:Sn,fontWeights:kn,letterSpacings:Pn,lineHeights:Tn,radii:jn,spacing:An,sizes:En,zIndex:Dn,cursor:zn},Hn=i.defineConfig({preflight:!0,cssVarsPrefix:"nimbus",cssVarsRoot:":where(:root, :host)",globalCss:Zr,theme:{breakpoints:Jr,keyframes:Qr,tokens:In,semanticTokens:cn,recipes:nn,slotRecipes:fn,textStyles:mn,layerStyles:en,animationStyles:Xr}}),Nn=i.createSystem(i.defaultBaseConfig,Hn);Object.defineProperty(exports,"Bleed",{enumerable:!0,get:()=>i.Bleed});Object.defineProperty(exports,"Code",{enumerable:!0,get:()=>i.Code});Object.defineProperty(exports,"Em",{enumerable:!0,get:()=>i.Em});Object.defineProperty(exports,"Flex",{enumerable:!0,get:()=>i.Flex});Object.defineProperty(exports,"Heading",{enumerable:!0,get:()=>i.Heading});Object.defineProperty(exports,"Highlight",{enumerable:!0,get:()=>i.Highlight});Object.defineProperty(exports,"Kbd",{enumerable:!0,get:()=>i.Kbd});Object.defineProperty(exports,"List",{enumerable:!0,get:()=>i.List});Object.defineProperty(exports,"Table",{enumerable:!0,get:()=>i.Table});exports.Accordion=Ao;exports.Alert=tr;exports.Avatar=De;exports.Badge=$o;exports.Box=I;exports.Button=q;exports.Card=Wo;exports.CardContent=xe;exports.CardHeader=be;exports.CardRoot=he;exports.Checkbox=Ve;exports.ColorModeLabel=eo;exports.DialogActionTrigger=Rt;exports.DialogBackdrop=Ct;exports.DialogBody=yt;exports.DialogCloseTrigger=ht;exports.DialogContent=gt;exports.DialogDescription=St;exports.DialogFooter=xt;exports.DialogHeader=vt;exports.DialogRoot=bt;exports.DialogTitle=wt;exports.DialogTrigger=kt;exports.FormField=kr;exports.FormFieldContext=O;exports.Grid=co;exports.IconButton=W;exports.Link=Ie;exports.ListItem=At;exports.ListRoot=jt;exports.LoadingSpinner=qe;exports.MakeElementFocusable=Oe;exports.NimbusProvider=to;exports.Select=xo;exports.SimpleGrid=Et;exports.Stack=Y;exports.TableBody=Bt;exports.TableCell=Ft;exports.TableColumn=It;exports.TableColumnGroup=zt;exports.TableColumnHeader=Ot;exports.TableFooter=Nt;exports.TableHeader=Ht;exports.TableRoot=Dt;exports.TableRow=Lt;exports.Text=Ne;exports.TextInput=Me;exports.ToggleButtonGroup=lr;exports.ToggleButtonGroupButton=ye;exports.ToggleButtonGroupRoot=ve;exports.Tooltip=Fe;exports.TooltipTrigger=Be;exports.VisuallyHidden=le;exports._SelectOption=pe;exports._SelectOptionGroup=fe;exports._SelectOptions=ue;exports._SelectRoot=ce;exports.system=Nn;exports.useColorMode=ae;exports.useColorModeValue=Qt;exports.useCopyToClipboard=qr;exports.useHotkeys=_r;
|
|
26
|
+
`,Cm=E.defineSlotRecipe({slots:["root","label","input","description","error","popover"],className:"nimbus-ui-form-field",base:{root:{"--grid-gap":"spacing.100",display:"grid",width:"auto"},label:{gridArea:"label",fontWeight:"500",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},input:{gridArea:"input"},description:{gridArea:"description",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},error:{gridArea:"error",color:"critical.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},popover:{"--scrollbar-color":"colors.neutral.8","--scrollbar-bg":"colors.neutral.3",bg:"neutral.1",maxWidth:"xl",borderRadius:"200",boxShadow:"6",border:"solid-25",borderColor:"neutral.8",maxHeight:"40svh",overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--scrollbar-color) var(--scrollbar-bg)",focusRing:"outside"}},variants:{size:{md:{root:{"--form-field-font-size":"fontSizes.350","--form-field-line-height":"lineHeights.500"}},sm:{root:{"--form-field-font-size":"fontSizes.300","--form-field-line-height":"lineHeights.450"}}},direction:{column:{root:{gridTemplateAreas:xm},input:{mt:"var(--grid-gap)"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}},row:{root:{gridTemplateAreas:Pm,gridTemplateColumns:"auto 1fr",gridColumnGap:"200"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}}}},defaultVariants:{direction:"column",size:"md"}}),{withProvider:Sm,withContext:Rt}=E.createSlotRecipeContext({recipe:Cm}),Em=Sm("div","root"),wm=Rt("div","label"),Dm=Rt("div","input"),km=Rt("div","description"),Tm=Rt("div","error"),Bm=Rt("div","popover"),Rm=a.forwardRef(({isInvalid:t,isRequired:e,isDisabled:n,isReadOnly:r,children:o,...l},i)=>{const[s,u]=a.useState({label:null,description:null,error:null,info:null,input:null,isInvalid:t,isRequired:e,isDisabled:n,isReadOnly:r}),{labelProps:c,fieldProps:d,descriptionProps:p,errorMessageProps:v}=rn({label:s.label,description:s.description,errorMessage:s.error});a.useEffect(()=>{u(b=>({...b,isInvalid:t,isRequired:e,isDisabled:n,isReadOnly:r}))},[t,e,n,r]);const f={...d,isInvalid:t,isRequired:e,isDisabled:n,isReadOnly:r};return x.jsx(Ge.Provider,{value:{context:s,setContext:u},children:x.jsxs(Em,{ref:i,...l,children:[s.label&&x.jsxs(wm,{...s.labelSlotProps,children:[x.jsxs("label",{...c,children:[s.label,e&&x.jsx("sup",{"aria-hidden":"true",children:"*"})]}),s.info&&x.jsxs(qv,{children:[x.jsx(ge,{as:"span",display:"inline-block",position:"relative",width:"1ch",height:"1ch",ml:"200",children:x.jsx(ge,{as:"span",display:"inline-flex",position:"absolute",top:"50%",right:"50%",transform:"translate(50%, -50%)",children:x.jsx(ot,{"aria-label":"__MORE INFO",size:"2xs",tone:"info",variant:"link",children:x.jsx(oe.HelpOutline,{})})})}),x.jsx(Ru,{children:x.jsx(Bm,{asChild:!0,children:x.jsx(Zv,{children:x.jsx(ge,{p:"300",children:s.info})})})})]})]}),s.input&&x.jsx(Dm,{...s.inputSlotProps,children:a.Children.map(s.input,b=>a.isValidElement(b)?a.cloneElement(b,f):b)}),s.description&&x.jsx(km,{...p,...s.descriptionSlotProps,children:s.description}),t&&s.error&&x.jsxs(Tm,{...v,...s.errorSlotProps,children:[x.jsx(ge,{as:oe.ErrorOutline,display:"inline-flex",boxSize:"400",verticalAlign:"text-bottom",mr:"100"}),s.error]}),o]})})}),Am=({children:t,...e})=>{const{setContext:n}=a.useContext(Ge);return a.useEffect(()=>{n(r=>({...r,label:t,labelSlotProps:e}))},[t,n]),null},Km=({children:t,...e})=>{const{setContext:n}=a.useContext(Ge);return a.useEffect(()=>{n(r=>({...r,input:t,inputSlotProps:e}))},[t,n]),null},Fm=({children:t,...e})=>{const{setContext:n}=a.useContext(Ge);return a.useEffect(()=>{n(r=>({...r,description:t,descriptionSlotProps:e}))},[t,n]),null},Lm=({children:t,...e})=>{const{setContext:n}=a.useContext(Ge);return a.useEffect(()=>{n(r=>({...r,error:t,errorSlotProps:e}))},[t,n]),null},Im=({children:t})=>{const{setContext:e}=a.useContext(Ge);return a.useEffect(()=>{e(n=>({...n,info:t}))},[t,e]),null},Ge=a.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),Mm={Root:Rm,Label:Am,Input:Km,Description:Fm,Error:Lm,InfoBox:Im},{withContext:rc,withProvider:zm}=E.createSlotRecipeContext({key:"taggroup"}),Nm=zm(tb,"root"),Om=rc(rb,"tagList"),Hm=rc(lb,"tag"),oc=a.forwardRef(({children:t,...e},n)=>x.jsx(Nm,{ref:n,...e,children:t}));oc.displayName="TagGroup.Root";const lc=a.forwardRef(({children:t,...e},n)=>x.jsx(Om,{ref:n,...e,children:t}));lc.displayName="TagGroup.TagList";const ic=a.forwardRef(({children:t,...e},n)=>{const r=typeof t=="string"?t:void 0;return x.jsx(Hm,{ref:n,textValue:r,...e,children:({allowsRemoving:o})=>x.jsxs(x.Fragment,{children:[t,o&&x.jsx(ot,{size:"2xs",variant:"ghost",slot:"remove",children:x.jsx(oe.Close,{})})]})})});ic.displayName="TagGroup.Tag";const jm={Root:oc,TagList:lc,Tag:ic};function or(){return or=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},or.apply(null,arguments)}var ac=["shift","alt","meta","mod","ctrl"],Vm={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function Ae(t){return(t&&Vm[t]||t||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function Wm(t){return ac.includes(t)}function Fn(t,e){return e===void 0&&(e=","),t.split(e)}function Ln(t,e,n){e===void 0&&(e="+");var r=t.toLocaleLowerCase().split(e).map(function(i){return Ae(i)}),o={alt:r.includes("alt"),ctrl:r.includes("ctrl")||r.includes("control"),shift:r.includes("shift"),meta:r.includes("meta"),mod:r.includes("mod")},l=r.filter(function(i){return!ac.includes(i)});return or({},o,{keys:l,description:n,hotkey:t})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(t){t.key!==void 0&&sc([Ae(t.key),Ae(t.code)])}),document.addEventListener("keyup",function(t){t.key!==void 0&&uc([Ae(t.key),Ae(t.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){Ke.clear()})})();var Ke=new Set;function Zr(t){return Array.isArray(t)}function _m(t,e){e===void 0&&(e=",");var n=Zr(t)?t:t.split(e);return n.every(function(r){return Ke.has(r.trim().toLowerCase())})}function sc(t){var e=Array.isArray(t)?t:[t];Ke.has("meta")&&Ke.forEach(function(n){return!Wm(n)&&Ke.delete(n.toLowerCase())}),e.forEach(function(n){return Ke.add(n.toLowerCase())})}function uc(t){var e=Array.isArray(t)?t:[t];t==="meta"?Ke.clear():e.forEach(function(n){return Ke.delete(n.toLowerCase())})}function Um(t,e,n){(typeof n=="function"&&n(t,e)||n===!0)&&t.preventDefault()}function Gm(t,e,n){return typeof n=="function"?n(t,e):n===!0||n===void 0}function qm(t){return cc(t,["input","textarea","select"])}function cc(t,e){e===void 0&&(e=!1);var n=t.target,r=t.composed,o=null;return Zm(n)&&r?o=t.composedPath()[0]&&t.composedPath()[0].tagName:o=n&&n.tagName,Zr(e)?!!(o&&e&&e.some(function(l){var i;return l.toLowerCase()===((i=o)==null?void 0:i.toLowerCase())})):!!(o&&e&&e)}function Zm(t){return!!t.tagName&&!t.tagName.startsWith("-")&&t.tagName.includes("-")}function Ym(t,e){return t.length===0&&e?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):e?t.some(function(n){return e.includes(n)})||t.includes("*"):!0}var Xm=function(e,n,r){r===void 0&&(r=!1);var o=n.alt,l=n.meta,i=n.mod,s=n.shift,u=n.ctrl,c=n.keys,d=e.key,p=e.code,v=e.ctrlKey,f=e.metaKey,b=e.shiftKey,h=e.altKey,y=Ae(p),$=d.toLowerCase();if(!(c!=null&&c.includes(y))&&!(c!=null&&c.includes($))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(y))return!1;if(!r){if(o===!h&&$!=="alt"||s===!b&&$!=="shift")return!1;if(i){if(!f&&!v)return!1}else if(l===!f&&$!=="meta"&&$!=="os"||u===!v&&$!=="ctrl"&&$!=="control")return!1}return c&&c.length===1&&(c.includes($)||c.includes(y))?!0:c?_m(c):!c},Jm=a.createContext(void 0),Qm=function(){return a.useContext(Jm)};function dc(t,e){return t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(t).length===Object.keys(e).length&&Object.keys(t).reduce(function(n,r){return n&&dc(t[r],e[r])},!0):t===e}var eg=a.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),tg=function(){return a.useContext(eg)};function ng(t){var e=a.useRef(void 0);return dc(e.current,t)||(e.current=t),e.current}var _o=function(e){e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},rg=typeof window<"u"?a.useLayoutEffect:a.useEffect;function og(t,e,n,r){var o=a.useState(null),l=o[0],i=o[1],s=a.useRef(!1),u=n instanceof Array?r instanceof Array?void 0:r:n,c=Zr(t)?t.join(u==null?void 0:u.splitKey):t,d=n instanceof Array?n:r instanceof Array?r:void 0,p=a.useCallback(e,d??[]),v=a.useRef(p);d?v.current=p:v.current=e;var f=ng(u),b=tg(),h=b.enabledScopes,y=Qm();return rg(function(){if(!((f==null?void 0:f.enabled)===!1||!Ym(h,f==null?void 0:f.scopes))){var $=function(P,L){var m;if(L===void 0&&(L=!1),!(qm(P)&&!cc(P,f==null?void 0:f.enableOnFormTags))){if(l!==null){var B=l.getRootNode();if((B instanceof Document||B instanceof ShadowRoot)&&B.activeElement!==l&&!l.contains(B.activeElement)){_o(P);return}}(m=P.target)!=null&&m.isContentEditable&&!(f!=null&&f.enableOnContentEditable)||Fn(c,f==null?void 0:f.splitKey).forEach(function(K){var k,I=Ln(K,f==null?void 0:f.combinationKey);if(Xm(P,I,f==null?void 0:f.ignoreModifiers)||(k=I.keys)!=null&&k.includes("*")){if(f!=null&&f.ignoreEventWhen!=null&&f.ignoreEventWhen(P)||L&&s.current)return;if(Um(P,I,f==null?void 0:f.preventDefault),!Gm(P,I,f==null?void 0:f.enabled)){_o(P);return}v.current(P,I),L||(s.current=!0)}})}},S=function(P){P.key!==void 0&&(sc(Ae(P.code)),((f==null?void 0:f.keydown)===void 0&&(f==null?void 0:f.keyup)!==!0||f!=null&&f.keydown)&&$(P))},w=function(P){P.key!==void 0&&(uc(Ae(P.code)),s.current=!1,f!=null&&f.keyup&&$(P,!0))},R=l||(u==null?void 0:u.document)||document;return R.addEventListener("keyup",w),R.addEventListener("keydown",S),y&&Fn(c,f==null?void 0:f.splitKey).forEach(function(D){return y.addHotkey(Ln(D,f==null?void 0:f.combinationKey,f==null?void 0:f.description))}),function(){R.removeEventListener("keyup",w),R.removeEventListener("keydown",S),y&&Fn(c,f==null?void 0:f.splitKey).forEach(function(D){return y.removeHotkey(Ln(D,f==null?void 0:f.combinationKey,f==null?void 0:f.description))})}}},[l,c,f,h]),i}function lg(){var t=a.useRef(!1),e=a.useCallback(function(){return t.current},[]);return a.useEffect(function(){return t.current=!0,function(){t.current=!1}},[]),e}var ig=function(t){t===void 0&&(t={});var e=a.useState(t),n=e[0],r=e[1],o=a.useCallback(function(l){r(function(i){return Object.assign({},i,l instanceof Function?l(i):l)})},[]);return[n,o]},In,Uo;function ag(){return Uo||(Uo=1,In=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],r=0;r<t.rangeCount;r++)n.push(t.getRangeAt(r));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||n.forEach(function(o){t.addRange(o)}),e&&e.focus()}}),In}var Mn,Go;function sg(){if(Go)return Mn;Go=1;var t=ag(),e={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(l){var i=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return l.replace(/#{\s*key\s*}/g,i)}function o(l,i){var s,u,c,d,p,v,f=!1;i||(i={}),s=i.debug||!1;try{c=t(),d=document.createRange(),p=document.getSelection(),v=document.createElement("span"),v.textContent=l,v.ariaHidden="true",v.style.all="unset",v.style.position="fixed",v.style.top=0,v.style.clip="rect(0, 0, 0, 0)",v.style.whiteSpace="pre",v.style.webkitUserSelect="text",v.style.MozUserSelect="text",v.style.msUserSelect="text",v.style.userSelect="text",v.addEventListener("copy",function(h){if(h.stopPropagation(),i.format)if(h.preventDefault(),typeof h.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=e[i.format]||e.default;window.clipboardData.setData(y,l)}else h.clipboardData.clearData(),h.clipboardData.setData(i.format,l);i.onCopy&&(h.preventDefault(),i.onCopy(h.clipboardData))}),document.body.appendChild(v),d.selectNodeContents(v),p.addRange(d);var b=document.execCommand("copy");if(!b)throw new Error("copy command was unsuccessful");f=!0}catch(h){s&&console.error("unable to copy using execCommand: ",h),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(i.format||"text",l),i.onCopy&&i.onCopy(window.clipboardData),f=!0}catch(y){s&&console.error("unable to copy using clipboardData: ",y),s&&console.error("falling back to prompt"),u=r("message"in i?i.message:n),window.prompt(u,l)}}finally{p&&(typeof p.removeRange=="function"?p.removeRange(d):p.removeAllRanges()),v&&document.body.removeChild(v),c()}return f}return Mn=o,Mn}var ug=sg();const cg=nv(ug);var dg=function(){var t=lg(),e=ig({value:void 0,error:void 0,noUserInteraction:!0}),n=e[0],r=e[1],o=a.useCallback(function(l){if(t()){var i,s;try{if(typeof l!="string"&&typeof l!="number"){var u=new Error("Cannot copy typeof "+typeof l+" to clipboard, must be a string");process.env.NODE_ENV==="development"&&console.error(u),r({value:l,error:u,noUserInteraction:!0});return}else if(l===""){var u=new Error("Cannot copy empty string to clipboard.");process.env.NODE_ENV==="development"&&console.error(u),r({value:l,error:u,noUserInteraction:!0});return}s=l.toString(),i=cg(s),r({value:s,error:void 0,noUserInteraction:i})}catch(c){r({value:s,error:c,noUserInteraction:i})}}},[]);return[n,o]};Object.defineProperty(exports,"Bleed",{enumerable:!0,get:()=>E.Bleed});Object.defineProperty(exports,"Code",{enumerable:!0,get:()=>E.Code});Object.defineProperty(exports,"Em",{enumerable:!0,get:()=>E.Em});Object.defineProperty(exports,"Flex",{enumerable:!0,get:()=>E.Flex});Object.defineProperty(exports,"Heading",{enumerable:!0,get:()=>E.Heading});Object.defineProperty(exports,"Highlight",{enumerable:!0,get:()=>E.Highlight});Object.defineProperty(exports,"Kbd",{enumerable:!0,get:()=>E.Kbd});Object.defineProperty(exports,"List",{enumerable:!0,get:()=>E.List});Object.defineProperty(exports,"Table",{enumerable:!0,get:()=>E.Table});exports.Accordion=V0;exports.Alert=vm;exports.Avatar=Qo;exports.Badge=om;exports.Box=ge;exports.Button=ln;exports.Card=em;exports.CardContent=Ur;exports.CardHeader=_r;exports.CardRoot=Wr;exports.Checkbox=_u;exports.ColorModeLabel=Db;exports.DialogActionTrigger=Ip;exports.DialogBackdrop=Ap;exports.DialogBody=Rp;exports.DialogCloseTrigger=Dp;exports.DialogContent=wp;exports.DialogDescription=Fp;exports.DialogFooter=Tp;exports.DialogHeader=Bp;exports.DialogRoot=kp;exports.DialogTitle=Kp;exports.DialogTrigger=Lp;exports.FormField=Mm;exports.FormFieldContext=Ge;exports.Grid=S0;exports.IconButton=ot;exports.Link=Bs;exports.ListItem=Op;exports.ListRoot=Np;exports.LoadingSpinner=Yu;exports.MakeElementFocusable=Ou;exports.NimbusProvider=g0;exports.Select=A0;exports.SimpleGrid=Hp;exports.Stack=vn;exports.TableBody=Zp;exports.TableCell=qp;exports.TableColumn=Wp;exports.TableColumnGroup=Vp;exports.TableColumnHeader=Yp;exports.TableFooter=Up;exports.TableHeader=_p;exports.TableRoot=jp;exports.TableRow=Gp;exports.TagGroup=jm;exports.Text=As;exports.TextInput=Uu;exports.ToggleButtonGroup=$m;exports.ToggleButtonGroupButton=qr;exports.ToggleButtonGroupRoot=Gr;exports.Tooltip=zu;exports.TooltipTrigger=Nu;exports.VisuallyHidden=Ir;exports._SelectOption=Or;exports._SelectOptionGroup=Hr;exports._SelectOptions=Nr;exports._SelectRoot=Mr;exports.system=Vu;exports.useColorMode=Fr;exports.useColorModeValue=wb;exports.useColorScheme=m0;exports.useCopyToClipboard=dg;exports.useHotkeys=og;
|
|
11
27
|
//# sourceMappingURL=index.cjs.map
|