(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,17894,e=>{"use strict";let t;var i,a,o,n=e.i(70942);let r=e=>(t,i)=>{let a=i.utils.colorMix(t);if(a.invalid)return{[e]:t};let o="--mix-"+e;return{[o]:a.value,[e]:`var(${o}, ${a.color})`}};function l(){let e=e=>e;return new Proxy(e,{get:()=>e})}let s=l(),d=l(),c=/[^a-zA-Z0-9_\u0081-\uffff-]/g,u=/[A-Z]/g;function g(e,t={}){let{fallback:i="",prefix:a=""}=t,o=["-",a,`${e}`.replace(c,e=>`\\${e}`)].filter(Boolean).join("-").replace(u,e=>`-${e.toLowerCase()}`);return{var:o,ref:`var(${o}${i?`, ${i}`:""})`}}let p=(e,t)=>null!=t?`${e}(${t})`:t,h=e=>{if(/^var\(--.+\)$/.test(e)||null==e)return e;let t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},m=e=>({values:["outside","inside","mixed","none"],transform(t,{token:i}){let a=i("colors.colorPalette.focusRing");return({inside:{"--focus-ring-color":a,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":a,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":a,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":a,[e]:{outline:"none"}}})[t]??{}}}),f=r("borderColor"),v=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),b=g("bg-currentcolor"),x=e=>e===b.ref||"currentBg"===e,y=e=>({...e("colors"),currentBg:b}),S={conditions:{hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&:is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"},utilities:{background:{values:y,shorthand:["bg"],transform(e,t){if(x(t.raw))return{background:b.ref};let i=r("background")(e,t);return{...i,[b.var]:i?.background}}},backgroundColor:{values:y,shorthand:["bgColor"],transform(e,t){if(x(t.raw))return{backgroundColor:b.ref};let i=r("backgroundColor")(e,t);return{...i,[b.var]:i?.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},backgroundGradient:{shorthand:["bgGradient"],values:e=>({...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}),transform:e=>({"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e})},gradientFrom:{values:y,transform:r("--gradient-from")},gradientTo:{values:y,transform:r("--gradient-to")},gradientVia:{values:y,transform:(e,t)=>({...r("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"})},backgroundImage:{values:e=>({...e("gradients"),...e("assets")}),shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:y,transform:r("borderColor")},borderTopColor:{values:y,transform:r("borderTopColor")},borderBlockStartColor:{values:y,transform:r("borderBlockStartColor")},borderBottomColor:{values:y,transform:r("borderBottomColor")},borderBlockEndColor:{values:y,transform:r("borderBlockEndColor")},borderLeftColor:{values:y,transform:r("borderLeftColor")},borderInlineStartColor:{values:y,shorthand:["borderStartColor"],transform:r("borderInlineStartColor")},borderRightColor:{values:y,transform:r("borderRightColor")},borderInlineEndColor:{values:y,shorthand:["borderEndColor"],transform:r("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:y,transform:r("color")},fill:{values:y,transform:r("fill")},stroke:{values:y,transform:r("stroke")},accentColor:{values:y,transform:r("accentColor")},divideX:{values:{type:"string"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}})},divideY:{values:{type:"string"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}})},divideColor:{values:y,transform:(e,t)=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":f(e,t)})},divideStyle:{property:"borderStyle",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}})},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:y,transform:r("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform:e=>"auto"!==e?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}},blur:{values:"blurs",transform:e=>({"--blur":p("blur",e)})},brightness:{transform:e=>({"--brightness":p("brightness",e)})},contrast:{transform:e=>({"--contrast":p("contrast",e)})},grayscale:{transform:e=>({"--grayscale":p("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":p("hue-rotate",h(e))})},invert:{transform:e=>({"--invert":p("invert",e)})},saturate:{transform:e=>({"--saturate":p("saturate",e)})},sepia:{transform:e=>({"--sepia":p("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":p("drop-shadow",e)})},backdropFilter:{transform:e=>"auto"!==e?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":p("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":p("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":p("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":p("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":p("hue-rotate",h(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":p("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":p("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":p("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":p("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:y,transform:r("outlineColor")},focusRing:m("&:is(:focus, [data-focus])"),focusVisibleRing:m("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:y,transform:r("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:i})=>({[i.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform:(e,{raw:t,token:i})=>({[i.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`]:{display:"none"}})},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:y,transform:r("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform:e=>({"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"})},ringColor:{values:y,transform:r("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:y,transform:r("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:y,transform:r("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return"auto"===e&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),"auto-gpu"===e&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":h(e)})},skewY:{transform:e=>({"--skew-y":h(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform:e=>"auto"!==e?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}},spaceXReverse:{values:{type:"boolean"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}})},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}})},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform:e=>"auto"!==e?{rotate:h(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}},rotateX:{transform:e=>({"--rotate-x":h(e)})},rotateY:{transform:e=>({"--rotate-y":h(e)})},translate:{transform:e=>"auto"!==e?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return v("all");case"position":return v("left, right, top, bottom, inset-inline, inset-block");case"colors":return v("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return v("opacity");case"shadow":return v("box-shadow");case"transform":return v("transform");case"size":return v("width, height");case"backgrounds":return v("background, background-color, background-image, background-position");case"common":return v("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform:e=>!0===e?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}},lineClamp:{transform:e=>"none"===e?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}},borderSpacing:{values:e=>({...e("spacing"),auto:"var(--border-spacing-x, 0) var(--border-spacing-y, 0)"})},borderSpacingX:{values:"spacing",transform:e=>({"--border-spacing-x":e})},borderSpacingY:{values:"spacing",transform:e=>({"--border-spacing-y":e})},srOnly:{values:{type:"boolean"},transform:e=>k[e]||{}},debug:{values:{type:"boolean"},transform:e=>e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}},caretColor:{values:y,transform:r("caretColor")},cursor:{values:"cursor"}}},k={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var C=e.i(91364);function E(e,...t){for(let i of t)!function e(t,i){if(null==i)return t;for(let a of Object.keys(i))if(void 0!==i[a]&&"__proto__"!==a)if(!(0,C.isObject)(t[a])&&(0,C.isObject)(i[a]))Object.assign(t,{[a]:i[a]});else if(t[a]&&(0,C.isObject)(i[a]))e(t[a],i[a]);else if(Array.isArray(i[a])&&Array.isArray(t[a])){let o=0;for(;onull!=e;function O(e,t,i={}){let{stop:a,getKey:o}=i;return function e(i,n=[]){if((0,C.isObject)(i)||Array.isArray(i)){let r={};for(let[l,s]of Object.entries(i)){let d=o?.(l,s)??l,c=[...n,d];if(a?.(i,c))return t(i,n);let u=e(s,c);I(u)&&(r[d]=u)}return r}return t(i,n)}(e)}let w=["value","type","description"],T=(...e)=>{let t=E({},...e.map(function e(t){if(null===t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(t=>e(t));let i=Object.create(Object.getPrototypeOf(t));for(let a of Object.keys(t))i[a]=e(t[a]);return i}));return t.theme?.tokens&&O(t.theme.tokens,e=>{let t=Object.keys(e).filter(e=>!w.includes(e)).length>0,i=w.some(t=>null!=e[t]);return t&&i&&(e.DEFAULT||(e.DEFAULT={}),w.forEach(t=>{var i;null!=e[t]&&((i=e.DEFAULT)[t]||(i[t]=e[t]),delete e[t])})),e},{stop:e=>e&&"object"==typeof e&&!Array.isArray(e)&&Object.keys(e).some(e=>w.includes(e)||e!==e.toLowerCase()&&e!==e.toUpperCase())}),t};var V=new Map("WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical".split(",").concat("".split(",")).map(e=>[e,!0])),P=/&|@/,R=(i=e=>V.has(e)||e.startsWith("--")||P.test(e),t=Object.create(null),e=>(void 0===t[e]&&(t[e]=i(e)),t[e])),N=e.i(62759);function z(e,t){let i={};for(let a in e){let o=t(a,e[a]);i[o[0]]=o[1]}return i}function _(e,t){let i={};return O(e,(e,t)=>{e&&(i[t.join(".")]=e.value)},{stop:t}),i}var A=Object.defineProperty,F=(e,t,i)=>{let a;return(a="symbol"!=typeof t?t+"":t)in e?A(e,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[a]=i};function D(e){if(null===e)return"null";if(void 0===e)return"undefined";let t=typeof e;if("string"===t)return`s:${e}`;if("number"===t)return`n:${e}`;if("boolean"===t)return`b:${e}`;if("function"===t)return`f:${e.name||"anonymous"}`;if(Array.isArray(e))return`a:[${e.map(D).join(",")}]`;if("object"===t){let t=Object.keys(e).sort();return`o:{${t.map(t=>`${t}:${D(e[t])}`).join(",")}}`}return String(e)}class L{constructor(e=500){F(this,"cache",new Map),F(this,"maxSize"),this.maxSize=e}get(e){let t=this.cache.get(e);return void 0!==t&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){let e=this.cache.keys().next().value;void 0!==e&&this.cache.delete(e)}this.cache.set(e,t)}clear(){this.cache.clear()}}let M=e=>{let t=new L;return function(...i){let a=1===i.length?D(i[0]):i.map(D).join("|"),o=t.get(a);return void 0===o&&(o=e.apply(this,i),t.set(a,o)),o}};var W=e.i(70434),B=e.i(96697);function H(e=""){let t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),i=RegExp("px|em|rem"),a=e.match(RegExp(`${t.source}(${i.source})`));return a?.[1]}function $(e=""){if("number"==typeof e)return`${e}px`;let t=H(e);return t&&"px"!==t?"em"===t||"rem"===t?`${16*parseFloat(e)}px`:void 0:e}function j(e=""){let t=H(e);return t&&"rem"!==t?"em"===t?`${parseFloat(e)}rem`:"px"===t?`${parseFloat(e)/16}rem`:void 0:e}function G(e){let t=parseFloat($(e)??"")-.04;return j(`${t}px`)}function U({min:e,max:t}){return null==e&&null==t?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}let q=/^@|&|&$/,Y=Object.freeze(Object.create(null)),K=Object.freeze([]);function X(){return Object.create(null)}let Z=e=>({minMax:RegExp(`(!?\\(\\s*min(-device-)?-${e})(.| )+\\(\\s*max(-device)?-${e}`,"i"),min:RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:RegExp(`(!?\\(\\s*max(-device)?-${e})(.| )+\\(\\s*min(-device)?-${e}`,"i"),max:RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),J=Z("width"),Q=Z("height"),ee=e=>({isMin:eg(e.minMax,e.maxMin,e.min),isMax:eg(e.maxMin,e.minMax,e.max)}),{isMin:et,isMax:ei}=ee(J),{isMin:ea,isMax:eo}=ee(Q),en=/print/i,er=/^print$/i,el=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,es=/(\d)/,ed=Number.MAX_VALUE,ec={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function eu(e){let t=el.exec(e)||(et(e)||ea(e)?es.exec(e):null);return t?"0"===t[0]?0:parseFloat(t[1])*(ec[t[2]]||1):ed}function eg(e,t,i){return a=>e.test(a)||!t.test(a)&&i.test(a)}let ep=M((e,t)=>{var i,a;let o,n,r,l,s=(i=e,a=t,o=en.test(i),n=er.test(i),r=en.test(a),l=er.test(a),o&&r?!n&&l?1:n&&!l?-1:i.localeCompare(a):o?1:r?-1:null);if(null!==s)return s;let d=et(e)||ea(e),c=ei(e)||eo(e),u=et(t)||ea(t),g=ei(t)||eo(t);if(d&&g)return -1;if(c&&u)return 1;let p=eu(e),h=eu(t);return p===ed&&h===ed?e.localeCompare(t):p===ed?1:h===ed?-1:p!==h?p>h?c?-1:1:c?1:-1:e.localeCompare(t)});function eh(e){return e.sort(([e],[t])=>ep(e,t))}let em=/\s*!(important)?/i,ef=M(e=>!!(0,C.isString)(e)&&em.test(e)),ev=M(e=>(0,C.isString)(e)?e.replace(em,"").trim():e);function eb(e){var t;let{transform:i,conditions:a,normalize:o}=e,n=(t=e,M(function(...e){let i;return E({},...1===(i=function(...e){return e.filter(e=>!!(0,C.isObject)(e)&&Object.keys((0,N.compact)(e)).length>0)}(...e)).length?i:i.map(e=>t.normalize(e)))}));return M(function(...e){let t=o(n(...e)),r=X();return O(t,(e,t)=>{let o=ef(e);if(null==e)return;let[n,...l]=a.sort(t).map(a.resolve);o&&(e=ev(e));let s=i(n,e)??Y;s=O(s,e=>(0,C.isString)(e)&&o?`${e} !important`:e,{getKey:e=>a.expandAtRule(e)}),function(e,t,i){let a=e;for(let e of t)e&&(a[e]||(a[e]=X()),a=a[e]);E(a,i)}(r,l.flat(),s)}),function e(t){let i=[],a=[],o={};for(let[n,r]of Object.entries(t))n.startsWith("@media")?i.push([n,r]):n.startsWith("@container")?a.push([n,r]):(0,C.isObject)(r)?o[n]=e(r):o[n]=r;let n=eh(i),r=eh(a);return{...o,...Object.fromEntries(n),...Object.fromEntries(r)}}(r)})}var ex=e.i(41469);function ey(e,t=[]){let i=Object.assign({},e);for(let e of t)e in i&&delete i[e];return i}let eS=e=>({base:Y,variants:Y,defaultVariants:Y,compoundVariants:[],...e}),ek={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},eC={reset:0,base:1,tokens:2,recipes:3},eE=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,eI=function(e,t){return t?"\0"===e?"�":"-"===e&&1===e.length?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},eO=e=>(e+"").replace(eE,eI),ew=(e,t)=>{let i="",a=0,o="char",n="",r="",l=[];for(;a{let t=0,i=["("];for(;t{e instanceof Map?t[i]=Object.fromEntries(e):t[i]=e}),t}let eP=/({([^}]*)})/g,eR=/[{}]/g,eN=/\w+\.\w+/,ez=e=>{if(!(0,C.isString)(e))return[];let t=e.match(eP);return t?t.map(e=>e.replace(eR,"").trim()):[]},e_=/calc/g;function eA(e){return(0,C.isObject)(e)&&e.reference?e.reference:String(e)}let eF=(e,...t)=>t.map(eA).join(` ${e} `).replace(e_,""),eD=(...e)=>`calc(${eF("+",...e)})`,eL=(...e)=>`calc(${eF("-",...e)})`,eM=(...e)=>`calc(${eF("*",...e)})`,eW=(...e)=>`calc(${eF("/",...e)})`,eB=e=>{let t=eA(e);return null==t||Number.isNaN(parseFloat(t))?eM(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},eH=Object.assign(e=>({add:(...t)=>eH(eD(e,...t)),subtract:(...t)=>eH(eL(e,...t)),multiply:(...t)=>eH(eM(e,...t)),divide:(...t)=>eH(eW(e,...t)),negate:()=>eH(eB(e)),toString:()=>e.toString()}),{add:eD,subtract:eL,multiply:eM,divide:eW,negate:eB}),e$=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),ej=[{enforce:"pre",transform(e){let{prefix:t,allTokens:i,formatCssVar:a,formatTokenName:o,registerToken:n}=e;i.filter(({extensions:e})=>"spacing"===e.category).forEach(e=>{let i=e.path.slice(),r=a(i,t);if((0,C.isString)(e.value)&&"0rem"===e.value)return;let l=[...e.path],s=l[l.length-1];null!=s&&(l[l.length-1]=`-${s}`),n({...e,value:eH.negate(r.ref),name:o(l),path:l,extensions:{...e.extensions,negative:!0,prop:`-${e.extensions.prop}`,originalPath:i}})})}},{enforce:"post",transform(e){let{allTokens:t,registerToken:i,formatTokenName:a}=e,o=t.filter(({extensions:e})=>"colors"===e.category),n=new Map,r=new Map;o.forEach(e=>{let{colorPalette:t}=e.extensions;t&&(t.keys.forEach(e=>{n.set(a(e),e)}),t.roots.forEach(i=>{let o=a(i),l=r.get(o)||[];if(l.push(e),r.set(o,l),e.extensions.default&&1===i.length){let e=t.keys[0]?.filter(Boolean);if(!e.length)return;let o=i.concat(e);n.set(a(o),[])}}))}),n.forEach(e=>{let t=["colors","colorPalette",...e].filter(Boolean),o=a(t),n=a(t.slice(1));i({name:o,value:o,originalValue:o,path:t,extensions:{condition:"base",originalPath:t,category:"colors",prop:n,virtual:!0}},"pre")})}},{enforce:"post",transform(e){e.allTokens.filter(e=>e$.has(e.extensions.category)&&!e.extensions.negative).forEach(e=>{Object.assign(e.extensions,{pixelValue:$(e.value)})})}},{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(e=>""!==e.value)}}],eG=[{type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){let{prefix:i,formatCssVar:a}=t,{negative:o,originalPath:n}=e.extensions;return{cssVar:a((o?n:e.path).filter(Boolean),i)}}},{enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){let{prefix:i,formatCssVar:a}=t,o=ez(e.value);return o.length&&o.forEach(t=>{let o=a(t.split("."),i);e.value=e.value.replace(`{${o.ref}}`,o)}),e.value}},{type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match:e=>"colors"===e.extensions.category&&!e.extensions.virtual,transform(e,t){let i=e.path.slice();if(i.pop(),i.shift(),0===i.length){let t=[...e.path];t.shift(),i=t}if(0===i.length)return{};let a=i.reduce((e,t,i,a)=>{let o=a.slice(0,i+1);return e.push(o),e},[]),o=i[0],n=t.formatTokenName(i),r=e.path.slice(e.path.indexOf(o)+1).reduce((e,t,i,a)=>(e.push(a.slice(i)),e),[]);return 0===r.length&&r.push([""]),{colorPalette:{value:n,roots:a,keys:r}}}}],eU=e=>(0,C.isObject)(e)&&Object.prototype.hasOwnProperty.call(e,"value");function eq(e){return"DEFAULT"===e[0]?e:e.filter(e=>"DEFAULT"!==e)}function eY(e){return e.filter(e=>"base"!==e)}Array.from(new Set(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]));let eK=e=>(0,C.isObject)(e)&&"value"in e,eX=e=>({list:()=>Object.keys(_(e,eK)),search(e){return this.list().filter(t=>t.includes(e))}}),eZ=(e,t,i)=>({categoryKeys:t,list(t){let a=e.categoryMap.get(t),o=a?[...a.entries()]:[],n=[];for(let e=0;ee.includes(t))}}),eJ=e=>({list:()=>Object.keys(e),search(e){return this.list().filter(t=>t.includes(e))}}),eQ="var(--chakra-empty,/*!*/ /*!*/)",e0={"*":{fontFeatureSettings:'"cv11"',"--ring-inset":eQ,"--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",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,eQ])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,eQ])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}},e1={className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"var(--outline-shadow, var(--outline-shadow-legacy))"},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:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}},e2={className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border.emphasized","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}},{variants:e5,defaultVariants:e3}=e1,e4={className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}},e6={className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}},e8={className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:e6.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}},e7={className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border.emphasized",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}},e9={badge:e1,button:{className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px","--outline-color-legacy":"colors.colorPalette.muted","--outline-color":"colors.colorPalette.border",borderColor:"var(--outline-color, var(--outline-color-legacy))",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}},code:{className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:e5,defaultVariants:e3},container:{className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}},heading:{className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},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"}},input:e6,inputAddon:e8,kbd:{className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},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:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}},link:{className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}},mark:{className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}},separator:{className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}},skeleton:{className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}},skipNavLink:{className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}},spinner:{className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}},textarea:{className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}},icon:{className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}},checkmark:e2,radiomark:e7,colorSwatch:e4},te=d.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}},border:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}},border:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}},border:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}},border:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}},border:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}},border:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}},border:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.400}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}},border:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.400}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}},border:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.400}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}},border:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.400}"}}}}),tt=d.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),ti=d.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}});var ta=e.i(85727),to=e.i(17200),tn=Object.defineProperty,tr=(e,t,i)=>{let a;return(a="symbol"!=typeof t?t+"":t)in e?tn(e,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[a]=i},tl={itemToValue:e=>"string"==typeof e?e:(0,to.isObject)(e)&&(0,to.hasProp)(e,"value")?e.value:"",itemToString:e=>"string"==typeof e?e:(0,to.isObject)(e)&&(0,to.hasProp)(e,"label")?e.label:tl.itemToValue(e),isItemDisabled:e=>!!((0,to.isObject)(e)&&(0,to.hasProp)(e,"disabled"))&&!!e.disabled},ts=class e{constructor(t){this.options=t,tr(this,"items"),tr(this,"indexMap",null),tr(this,"copy",t=>new e({...this.options,items:t??[...this.items]})),tr(this,"isEqual",e=>(0,to.isEqual)(this.items,e.items)),tr(this,"setItems",e=>this.copy(e)),tr(this,"getValues",(e=this.items)=>{let t=[];for(let i of e){let e=this.getItemValue(i);null!=e&&t.push(e)}return t}),tr(this,"find",e=>{if(null==e)return null;let t=this.indexOf(e);return -1!==t?this.at(t):null}),tr(this,"findMany",e=>{let t=[];for(let i of e){let e=this.find(i);null!=e&&t.push(e)}return t}),tr(this,"at",e=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[e]??null;let t=0;for(let[,i]of this.group())for(let a of i){if(t===e)return a;t++}return null}),tr(this,"sortFn",(e,t)=>(this.indexOf(e)??0)-(this.indexOf(t)??0)),tr(this,"sort",e=>[...e].sort(this.sortFn.bind(this))),tr(this,"getItemValue",e=>null==e?null:this.options.itemToValue?.(e)??tl.itemToValue(e)),tr(this,"getItemDisabled",e=>null!=e&&(this.options.isItemDisabled?.(e)??tl.isItemDisabled(e))),tr(this,"stringifyItem",e=>null==e?null:this.options.itemToString?.(e)??tl.itemToString(e)),tr(this,"stringify",e=>null==e?null:this.stringifyItem(this.find(e))),tr(this,"stringifyItems",(e,t=", ")=>{let i=[];for(let t of e){let e=this.stringifyItem(t);null!=e&&i.push(e)}return i.join(t)}),tr(this,"stringifyMany",(e,t)=>this.stringifyItems(this.findMany(e),t)),tr(this,"has",e=>-1!==this.indexOf(e)),tr(this,"hasItem",e=>null!=e&&this.has(this.getItemValue(e))),tr(this,"group",()=>{let{groupBy:e,groupSort:t}=this.options;if(!e)return[["",[...this.items]]];let i=new Map;this.items.forEach((t,a)=>{let o=e(t,a);i.has(o)||i.set(o,[]),i.get(o).push(t)});let a=Array.from(i.entries());return t&&a.sort(([e],[i])=>{if("function"==typeof t)return t(e,i);if(Array.isArray(t)){let a=t.indexOf(e),o=t.indexOf(i);return -1===a?1:-1===o?-1:a-o}return"asc"===t?e.localeCompare(i):"desc"===t?i.localeCompare(e):0}),a}),tr(this,"getNextValue",(e,t=1,i=!1)=>{let a=this.indexOf(e);if(-1===a)return null;for(a=i?Math.min(a+t,this.size-1):a+t;a<=this.size&&this.getItemDisabled(this.at(a));)a++;return this.getItemValue(this.at(a))}),tr(this,"getPreviousValue",(e,t=1,i=!1)=>{let a=this.indexOf(e);if(-1===a)return null;for(a=i?Math.max(a-t,0):a-t;a>=0&&this.getItemDisabled(this.at(a));)a--;return this.getItemValue(this.at(a))}),tr(this,"indexOf",e=>{if(null==e)return -1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(t=>this.getItemValue(t)===e);if(!this.indexMap){this.indexMap=new Map;let e=0;for(let[,t]of this.group())for(let i of t){let t=this.getItemValue(i);null!=t&&this.indexMap.set(t,e),e++}}return this.indexMap.get(e)??-1}),tr(this,"getByText",(e,t)=>{let i=null!=t?this.indexOf(t):-1,a=1===e.length;for(let o=0;o{let{state:i,currentValue:a,timeout:o=350}=t,n=i.keysSoFar+e,r=n.length>1&&Array.from(n).every(e=>e===n[0])?n[0]:n,l=this.getByText(r,a),s=this.getItemValue(l);function d(){clearTimeout(i.timer),i.timer=-1}return!function e(t){i.keysSoFar=t,d(),""!==t&&(i.timer=+setTimeout(()=>{e(""),d()},o))}(n),s}),tr(this,"update",(e,t)=>{let i=this.indexOf(e);return -1===i?this:this.copy([...this.items.slice(0,i),t,...this.items.slice(i+1)])}),tr(this,"upsert",(e,t,i="append")=>{let a=this.indexOf(e);return -1===a?("append"===i?this.append:this.prepend)(t):this.copy([...this.items.slice(0,a),t,...this.items.slice(a+1)])}),tr(this,"insert",(e,...t)=>this.copy(tc(this.items,e,...t))),tr(this,"insertBefore",(e,...t)=>{let i=this.indexOf(e);if(-1===i)if(0!==this.items.length)return this;else i=0;return this.copy(tc(this.items,i,...t))}),tr(this,"insertAfter",(e,...t)=>{let i=this.indexOf(e);if(-1===i)if(0!==this.items.length)return this;else i=0;return this.copy(tc(this.items,i+1,...t))}),tr(this,"prepend",(...e)=>this.copy(tc(this.items,0,...e))),tr(this,"append",(...e)=>this.copy(tc(this.items,this.items.length,...e))),tr(this,"filter",e=>{let t=this.items.filter((t,i)=>e(this.stringifyItem(t),i,t));return this.copy(t)}),tr(this,"remove",(...e)=>{let t=e.map(e=>"string"==typeof e?e:this.getItemValue(e));return this.copy(this.items.filter(e=>{let i=this.getItemValue(e);return null!=i&&!t.includes(i)}))}),tr(this,"move",(e,t)=>{let i=this.indexOf(e);return -1===i?this:this.copy(tu(this.items,[i],t))}),tr(this,"moveBefore",(e,...t)=>{let i=this.items.findIndex(t=>this.getItemValue(t)===e);if(-1===i)return this;let a=t.map(e=>this.items.findIndex(t=>this.getItemValue(t)===e)).sort((e,t)=>e-t);return this.copy(tu(this.items,a,i))}),tr(this,"moveAfter",(e,...t)=>{let i=this.items.findIndex(t=>this.getItemValue(t)===e);if(-1===i)return this;let a=t.map(e=>this.items.findIndex(t=>this.getItemValue(t)===e)).sort((e,t)=>e-t);return this.copy(tu(this.items,a,i+1))}),tr(this,"reorder",(e,t)=>this.copy(tu(this.items,[e],t))),tr(this,"compareValue",(e,t)=>{let i=this.indexOf(e),a=this.indexOf(t);return ia)}),tr(this,"range",(e,t)=>{let i=[],a=e;for(;null!=a;){if(this.find(a)&&i.push(a),a===t)return i;a=this.getNextValue(a)}return[]}),tr(this,"getValueRange",(e,t)=>e&&t?0>=this.compareValue(e,t)?this.range(e,t):this.range(t,e):[]),tr(this,"toString",()=>{let e="";for(let t of this.items)e+=[this.getItemValue(t),this.stringifyItem(t),this.getItemDisabled(t)].filter(Boolean).join(":")+",";return e}),tr(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let e=0;for(;this.getItemDisabled(this.at(e));)e++;return this.getItemValue(this.at(e))}get lastValue(){let e=this.size-1;for(;this.getItemDisabled(this.at(e));)e--;return this.getItemValue(this.at(e))}*[Symbol.iterator](){yield*this.items}},td=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function tc(e,t,...i){return[...e.slice(0,t),...i,...e.slice(t)]}function tu(e,t,i){let a=(t=[...t].sort((e,t)=>e-t)).map(t=>e[t]);for(let i=t.length-1;i>=0;i--)e=[...e.slice(0,t[i]),...e.slice(t[i]+1)];return i=Math.max(0,i-t.filter(e=>e{let t=new e([...this]);return this.sync(t)}),tr(this,"sync",e=>(e.selectionMode=this.selectionMode,e.deselectable=this.deselectable,e)),tr(this,"isEmpty",()=>0===this.size),tr(this,"isSelected",e=>"none"!==this.selectionMode&&null!=e&&this.has(e)),tr(this,"canSelect",(e,t)=>"none"!==this.selectionMode||!e.getItemDisabled(e.find(t))),tr(this,"firstSelectedValue",e=>{let t=null;for(let i of this)(!t||0>e.compareValue(i,t))&&(t=i);return t}),tr(this,"lastSelectedValue",e=>{let t=null;for(let i of this)(!t||e.compareValue(i,t)>0)&&(t=i);return t}),tr(this,"extendSelection",(e,t,i)=>{if("none"===this.selectionMode)return this;if("single"===this.selectionMode)return this.replaceSelection(e,i);let a=this.copy(),o=Array.from(this).pop();for(let n of e.getValueRange(t,o??i))a.delete(n);for(let o of e.getValueRange(i,t))this.canSelect(e,o)&&a.add(o);return a}),tr(this,"toggleSelection",(e,t)=>{if("none"===this.selectionMode)return this;if("single"===this.selectionMode&&!this.isSelected(t))return this.replaceSelection(e,t);let i=this.copy();return i.has(t)?i.delete(t):i.canSelect(e,t)&&i.add(t),i}),tr(this,"replaceSelection",(t,i)=>{if("none"===this.selectionMode||null==i||!this.canSelect(t,i))return this;let a=new e([i]);return this.sync(a)}),tr(this,"setSelection",t=>{if("none"===this.selectionMode)return this;let i=new e;for(let e of t)if(null!=e&&(i.add(e),"single"===this.selectionMode))break;return this.sync(i)}),tr(this,"clearSelection",()=>{let e=this.copy();return e.deselectable&&e.size>0&&e.clear(),e}),tr(this,"select",(e,t,i)=>{if("none"===this.selectionMode)return this;if("single"===this.selectionMode)if(this.isSelected(t)&&this.deselectable)return this.toggleSelection(e,t);else return this.replaceSelection(e,t);return"multiple"===this.selectionMode||i?this.toggleSelection(e,t):this.replaceSelection(e,t)}),tr(this,"deselect",e=>{let t=this.copy();return t.delete(e),t}),tr(this,"isEqual",e=>(0,to.isEqual)(Array.from(this),Array.from(e)))}};function tp(e,t,i){for(let a=0;at[i])return 1}return e.length-t.length}function tm(e,t){let i;return tk(e,{onEnter:(e,a)=>{if(t.predicate(e,a))return i=[...a],"stop"},getChildren:t.getChildren}),i}function tf(){return{type:"replace"}}function tv(e){return[e.slice(0,-1),e[e.length-1]]}function tb(e,t,i=new Map){let[a,o]=tv(e);for(let e=a.length-1;e>=0;e--){let t=a.slice(0,e).join();i.get(t)?.type!=="remove"&&i.set(t,tf())}let n=i.get(a.join());if(n?.type==="remove")i.set(a.join(),{type:"removeThenInsert",removeIndexes:n.indexes,insertIndex:o,insertNodes:t});else i.set(a.join(),{type:"insert",index:o,nodes:t});return i}function tx(e){let t=new Map,i=new Map;for(let t of e){let e=t.slice(0,-1).join(),a=i.get(e)??[];a.push(t[t.length-1]),i.set(e,a.sort((e,t)=>e-t))}for(let i of e)for(let e=i.length-2;e>=0;e--){let a=i.slice(0,e).join();t.has(a)||t.set(a,tf())}for(let[e,a]of i)t.set(e,{type:"remove",indexes:a});return t}function ty(e,t,i){var a,o;let n;return a=e,o={...i,getChildren:(e,a)=>{let o=a.join(),n=t.get(o);switch(n?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return i.getChildren(e,a);default:return[]}},transform:(e,a,o)=>{let n=o.join(),r=t.get(n);switch(r?.type){case"remove":return i.create(e,a.filter((e,t)=>!r.indexes.includes(t)),o);case"removeThenInsert":let l=a.filter((e,t)=>!r.removeIndexes.includes(t)),s=r.removeIndexes.reduce((e,t)=>t{let i=[0,...t],a=i.join(),r=o.transform(e,n[a]??[],t),l=i.slice(0,-1).join(),s=n[l]??[];s.push(r),n[l]=s}}),n[""][0]}function tS(e,t,i,...a){return[...e.slice(0,t),...a,...e.slice(t+i)]}function tk(e,t){let{onEnter:i,onLeave:a,getChildren:o}=t,n=[],r=[{node:e}],l=t.reuseIndexPath?()=>n:()=>n.slice();for(;r.length>0;){let e=r[r.length-1];if(void 0===e.state){let t=i?.(e.node,l());if("stop"===t)return;e.state="skip"===t?-1:0}let t=e.children||o(e.node,l());if(e.children||(e.children=t),-1!==e.state){if(e.state(0,to.isEqual)(this.rootNode,e.rootNode)),tr(this,"getNodeChildren",e=>this.options.nodeToChildren?.(e)??tE.nodeToChildren(e)??[]),tr(this,"resolveIndexPath",e=>"string"==typeof e?this.getIndexPath(e):e),tr(this,"resolveNode",e=>{let t=this.resolveIndexPath(e);return t?this.at(t):void 0}),tr(this,"getNodeChildrenCount",e=>this.options.nodeToChildrenCount?.(e)??tE.nodeToChildrenCount(e)),tr(this,"getNodeValue",e=>this.options.nodeToValue?.(e)??tE.nodeToValue(e)),tr(this,"getNodeDisabled",e=>this.options.isNodeDisabled?.(e)??tE.isNodeDisabled(e)),tr(this,"stringify",e=>{let t=this.findNode(e);return t?this.stringifyNode(t):null}),tr(this,"stringifyNode",e=>this.options.nodeToString?.(e)??tE.nodeToString(e)),tr(this,"getFirstNode",(e=this.rootNode)=>{let t;return tk(e,{getChildren:this.getNodeChildren,onEnter:(e,i)=>{if(!t&&i.length>0&&!this.getNodeDisabled(e))return t=e,"stop"}}),t}),tr(this,"getLastNode",(e=this.rootNode,t={})=>{let i;return tk(e,{getChildren:this.getNodeChildren,onEnter:(a,o)=>{if(!this.isSameNode(a,e)){if(t.skip?.({value:this.getNodeValue(a),node:a,indexPath:o}))return"skip";o.length>0&&!this.getNodeDisabled(a)&&(i=a)}}}),i}),tr(this,"at",e=>tp(this.rootNode,e,{getChildren:this.getNodeChildren})),tr(this,"findNode",(e,t=this.rootNode)=>{var i;let a;return tk(t,{...i={getChildren:this.getNodeChildren,predicate:t=>this.getNodeValue(t)===e},onEnter:(e,t)=>{if(i.predicate(e,t))return a=e,"stop"}}),a}),tr(this,"findNodes",(e,t=this.rootNode)=>{var i;let a,o=new Set(e.filter(e=>null!=e));return i={getChildren:this.getNodeChildren,predicate:e=>o.has(this.getNodeValue(e))},a=[],tk(t,{onEnter:(e,t)=>{i.predicate(e,t)&&a.push(e)},getChildren:i.getChildren}),a}),tr(this,"sort",e=>e.reduce((e,t)=>{let i=this.getIndexPath(t);return i&&e.push({value:t,indexPath:i}),e},[]).sort((e,t)=>th(e.indexPath,t.indexPath)).map(({value:e})=>e)),tr(this,"getIndexPath",e=>tm(this.rootNode,{getChildren:this.getNodeChildren,predicate:t=>this.getNodeValue(t)===e})),tr(this,"getValue",e=>{let t=this.at(e);return t?this.getNodeValue(t):void 0}),tr(this,"getValuePath",e=>{if(!e)return[];let t=[],i=[...e];for(;i.length>0;){let e=this.at(i);e&&t.unshift(this.getNodeValue(e)),i.pop()}return t}),tr(this,"getDepth",e=>{let t=tm(this.rootNode,{getChildren:this.getNodeChildren,predicate:t=>this.getNodeValue(t)===e});return t?.length??0}),tr(this,"isSameNode",(e,t)=>this.getNodeValue(e)===this.getNodeValue(t)),tr(this,"isRootNode",e=>this.isSameNode(e,this.rootNode)),tr(this,"contains",(e,t)=>!!e&&!!t&&t.slice(0,e.length).every((i,a)=>e[a]===t[a])),tr(this,"getNextNode",(e,t={})=>{let i,a=!1;return tk(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(o,n)=>{if(this.isRootNode(o))return;let r=this.getNodeValue(o);return t.skip?.({value:r,node:o,indexPath:n})?(r===e&&(a=!0),"skip"):a&&!this.getNodeDisabled(o)?(i=o,"stop"):void(r===e&&(a=!0))}}),i}),tr(this,"getPreviousNode",(e,t={})=>{let i,a=!1;return tk(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(o,n)=>{if(this.isRootNode(o))return;let r=this.getNodeValue(o);return t.skip?.({value:r,node:o,indexPath:n})?"skip":r===e?(a=!0,"stop"):void(!this.getNodeDisabled(o)&&(i=o))}}),a?i:void 0}),tr(this,"getParentNodes",e=>{let t=this.resolveIndexPath(e)?.slice();if(!t)return[];let i=[];for(;t.length>0;){t.pop();let e=this.at(t);e&&!this.isRootNode(e)&&i.unshift(e)}return i}),tr(this,"getDescendantNodes",(e,t)=>{let i=this.resolveNode(e);if(!i)return[];let a=[];return tk(i,{getChildren:this.getNodeChildren,onEnter:(e,i)=>{0===i.length||!t?.withBranch&&this.isBranchNode(e)||a.push(e)}}),a}),tr(this,"getDescendantValues",(e,t)=>this.getDescendantNodes(e,t).map(e=>this.getNodeValue(e))),tr(this,"getParentIndexPath",e=>e.slice(0,-1)),tr(this,"getParentNode",e=>{let t=this.resolveIndexPath(e);return t?this.at(this.getParentIndexPath(t)):void 0}),tr(this,"visit",e=>{let{skip:t,...i}=e;tk(this.rootNode,{...i,getChildren:this.getNodeChildren,onEnter:(e,a)=>{if(!this.isRootNode(e))return t?.({value:this.getNodeValue(e),node:e,indexPath:a})?"skip":i.onEnter?.(e,a)}})}),tr(this,"getPreviousSibling",e=>{let t=this.getParentNode(e);if(!t)return;let i=this.getNodeChildren(t),a=e[e.length-1];for(;--a>=0;){let e=i[a];if(!this.getNodeDisabled(e))return e}}),tr(this,"getNextSibling",e=>{let t=this.getParentNode(e);if(!t)return;let i=this.getNodeChildren(t),a=e[e.length-1];for(;++a{let t=this.getParentNode(e);return t?this.getNodeChildren(t):[]}),tr(this,"getValues",(e=this.rootNode)=>{var t,i;let a;return(t={getChildren:this.getNodeChildren,transform:e=>[this.getNodeValue(e)]},a=(i={...t,initialResult:[],nextResult:(e,i,a)=>(e.push(...t.transform(i,a)),e)}).initialResult,tk(e,{...i,onEnter:(e,t)=>{a=i.nextResult(a,e,t)}}),a).slice(1)}),tr(this,"isValidDepth",(e,t)=>null==t||("function"==typeof t?t(e.length):e.length===t)),tr(this,"isBranchNode",e=>this.getNodeChildren(e).length>0||null!=this.getNodeChildrenCount(e)),tr(this,"getBranchValues",(e=this.rootNode,t={})=>{let i=[];return tk(e,{getChildren:this.getNodeChildren,onEnter:(e,a)=>{if(0===a.length)return;let o=this.getNodeValue(e);if(t.skip?.({value:o,node:e,indexPath:a}))return"skip";this.isBranchNode(e)&&this.isValidDepth(a,t.depth)&&i.push(this.getNodeValue(e))}}),i}),tr(this,"flatten",(e=this.rootNode)=>{var t;let i,a,o,n;return t={getChildren:this.getNodeChildren},i=[],a=0,o=new Map,n=new Map,tk(e,{getChildren:t.getChildren,onEnter:(e,r)=>{o.has(e)||o.set(e,a++);let l=t.getChildren(e,r);l.forEach(t=>{n.has(t)||n.set(t,e),o.has(t)||o.set(t,a++)});let s=l.length>0?l.map(e=>o.get(e)):void 0,d=n.get(e),c=d?o.get(d):void 0,u=o.get(e);i.push({...e,_children:s,_parent:c,_index:u})}}),i}),tr(this,"_create",(e,t)=>this.getNodeChildren(e).length>0||t.length>0?{...e,children:t}:{...e}),tr(this,"_insert",(e,t,i)=>this.copy(function(e,t){let{nodes:i,at:a}=t;if(0===a.length)throw Error("Can't insert nodes at the root");return ty(e,tb(a,i),t)}(e,{at:t,nodes:i,getChildren:this.getNodeChildren,create:this._create}))),tr(this,"copy",t=>new e({...this.options,rootNode:t})),tr(this,"_replace",(e,t,i)=>{var a;return this.copy(0===(a={at:t,node:i,getChildren:this.getNodeChildren,create:this._create}).at.length?a.node:ty(e,function(e,t){let i=new Map,[a,o]=tv(e);for(let e=a.length-1;e>=0;e--){let t=a.slice(0,e).join();i.set(t,tf())}return i.set(a.join(),{type:"removeThenInsert",removeIndexes:[o],insertIndex:o,insertNodes:[t]}),i}(a.at,a.node),a))}),tr(this,"_move",(e,t,i)=>this.copy(function(e,t){if(0===t.indexPaths.length)return e;for(let e of t.indexPaths)if(0===e.length)throw Error("Can't move the root node");if(0===t.to.length)throw Error("Can't move nodes to the root");let i=function(e){let t=e.sort(th),i=[],a=new Set;for(let e of t){let t=e.join();a.has(t)||(a.add(t),i.push(e))}return i}(t.indexPaths),a=i.map(i=>tp(e,i,t));return ty(e,tb(t.to,a,tx(i)),t)}(e,{indexPaths:t,to:i,getChildren:this.getNodeChildren,create:this._create}))),tr(this,"_remove",(e,t)=>this.copy(function(e,t){if(0===t.indexPaths.length)return e;for(let e of t.indexPaths)if(0===e.length)throw Error("Can't remove the root node");return ty(e,tx(t.indexPaths),t)}(e,{indexPaths:t,getChildren:this.getNodeChildren,create:this._create}))),tr(this,"replace",(e,t)=>this._replace(this.rootNode,e,t)),tr(this,"remove",e=>this._remove(this.rootNode,e)),tr(this,"insertBefore",(e,t)=>this.getParentNode(e)?this._insert(this.rootNode,e,t):void 0),tr(this,"insertAfter",(e,t)=>{if(!this.getParentNode(e))return;let i=[...e.slice(0,-1),e[e.length-1]+1];return this._insert(this.rootNode,i,t)}),tr(this,"move",(e,t)=>this._move(this.rootNode,e,t)),tr(this,"filter",e=>{let t=function(e,t){let{predicate:i,create:a,getChildren:o}=t,n=(e,t)=>{let r=o(e,t),l=[];r.forEach((e,i)=>{let a=n(e,[...t,i]);a&&l.push(a)});let s=0===t.length,d=i(e,t),c=l.length>0;return s||d||c?a(e,l,t):null};return n(e,[])||a(e,[],[])}(this.rootNode,{predicate:e,getChildren:this.getNodeChildren,create:this._create});return this.copy(t)}),tr(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},tE={nodeToValue:e=>"string"==typeof e?e:(0,to.isObject)(e)&&(0,to.hasProp)(e,"value")?e.value:"",nodeToString:e=>"string"==typeof e?e:(0,to.isObject)(e)&&(0,to.hasProp)(e,"label")?e.label:tE.nodeToValue(e),isNodeDisabled:e=>!!((0,to.isObject)(e)&&(0,to.hasProp)(e,"disabled"))&&!!e.disabled,nodeToChildren:e=>e.children,nodeToChildrenCount(e){if((0,to.isObject)(e)&&(0,to.hasProp)(e,"childrenCount"))return e.childrenCount}},tI=e.i(13824);let tO=["top","right","bottom","left"],tw=Math.min,tT=Math.max,tV=Math.round,tP=Math.floor,tR=e=>({x:e,y:e}),tN={left:"right",right:"left",bottom:"top",top:"bottom"},tz={start:"end",end:"start"};function t_(e,t){return"function"==typeof e?e(t):e}function tA(e){return e.split("-")[0]}function tF(e){return e.split("-")[1]}function tD(e){return"x"===e?"y":"x"}function tL(e){return"y"===e?"height":"width"}let tM=new Set(["top","bottom"]);function tW(e){return tM.has(tA(e))?"y":"x"}function tB(e){return e.replace(/start|end/g,e=>tz[e])}let tH=["left","right"],t$=["right","left"],tj=["top","bottom"],tG=["bottom","top"];function tU(e){return e.replace(/left|right|bottom|top/g,e=>tN[e])}function tq(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function tY(e){let{x:t,y:i,width:a,height:o}=e;return{width:a,height:o,top:i,left:t,right:t+a,bottom:i+o,x:t,y:i}}function tK(e,t,i){let a,{reference:o,floating:n}=e,r=tW(t),l=tD(tW(t)),s=tL(l),d=tA(t),c="y"===r,u=o.x+o.width/2-n.width/2,g=o.y+o.height/2-n.height/2,p=o[s]/2-n[s]/2;switch(d){case"top":a={x:u,y:o.y-n.height};break;case"bottom":a={x:u,y:o.y+o.height};break;case"right":a={x:o.x+o.width,y:g};break;case"left":a={x:o.x-n.width,y:g};break;default:a={x:o.x,y:o.y}}switch(tF(t)){case"start":a[l]-=p*(i&&c?-1:1);break;case"end":a[l]+=p*(i&&c?-1:1)}return a}let tX=async(e,t,i)=>{let{placement:a="bottom",strategy:o="absolute",middleware:n=[],platform:r}=i,l=n.filter(Boolean),s=await (null==r.isRTL?void 0:r.isRTL(t)),d=await r.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:u}=tK(d,a,s),g=a,p={},h=0;for(let i=0;ie[t]>=0)}let t0=new Set(["left","top"]);async function t1(e,t){let{placement:i,platform:a,elements:o}=e,n=await (null==a.isRTL?void 0:a.isRTL(o.floating)),r=tA(i),l=tF(i),s="y"===tW(i),d=t0.has(r)?-1:1,c=n&&s?-1:1,u=t_(t,e),{mainAxis:g,crossAxis:p,alignmentAxis:h}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&"number"==typeof h&&(p="end"===l?-1*h:h),s?{x:p*c,y:g*d}:{x:g*d,y:p*c}}function t2(){return"undefined"!=typeof window}function t5(e){return t6(e)?(e.nodeName||"").toLowerCase():"#document"}function t3(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function t4(e){var t;return null==(t=(t6(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function t6(e){return!!t2()&&(e instanceof Node||e instanceof t3(e).Node)}function t8(e){return!!t2()&&(e instanceof Element||e instanceof t3(e).Element)}function t7(e){return!!t2()&&(e instanceof HTMLElement||e instanceof t3(e).HTMLElement)}function t9(e){return!!t2()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof t3(e).ShadowRoot)}let ie=new Set(["inline","contents"]);function it(e){let{overflow:t,overflowX:i,overflowY:a,display:o}=ip(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+i)&&!ie.has(o)}let ii=new Set(["table","td","th"]),ia=[":popover-open",":modal"];function io(e){return ia.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let ir=["transform","translate","scale","rotate","perspective"],il=["transform","translate","scale","rotate","perspective","filter"],is=["paint","layout","strict","content"];function id(e){let t=ic(),i=t8(e)?ip(e):e;return ir.some(e=>!!i[e]&&"none"!==i[e])||!!i.containerType&&"normal"!==i.containerType||!t&&!!i.backdropFilter&&"none"!==i.backdropFilter||!t&&!!i.filter&&"none"!==i.filter||il.some(e=>(i.willChange||"").includes(e))||is.some(e=>(i.contain||"").includes(e))}function ic(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let iu=new Set(["html","body","#document"]);function ig(e){return iu.has(t5(e))}function ip(e){return t3(e).getComputedStyle(e)}function ih(e){return t8(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function im(e){if("html"===t5(e))return e;let t=e.assignedSlot||e.parentNode||t9(e)&&e.host||t4(e);return t9(t)?t.host:t}function iv(e,t,i){var a;void 0===t&&(t=[]),void 0===i&&(i=!0);let o=function e(t){let i=im(t);return ig(i)?t.ownerDocument?t.ownerDocument.body:t.body:t7(i)&&it(i)?i:e(i)}(e),n=o===(null==(a=e.ownerDocument)?void 0:a.body),r=t3(o);if(n){let e=ib(r);return t.concat(r,r.visualViewport||[],it(o)?o:[],e&&i?iv(e):[])}return t.concat(o,iv(o,[],i))}function ib(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ix(e){let t=ip(e),i=parseFloat(t.width)||0,a=parseFloat(t.height)||0,o=t7(e),n=o?e.offsetWidth:i,r=o?e.offsetHeight:a,l=tV(i)!==n||tV(a)!==r;return l&&(i=n,a=r),{width:i,height:a,$:l}}function iy(e){return t8(e)?e:e.contextElement}function iS(e){let t=iy(e);if(!t7(t))return tR(1);let i=t.getBoundingClientRect(),{width:a,height:o,$:n}=ix(t),r=(n?tV(i.width):i.width)/a,l=(n?tV(i.height):i.height)/o;return r&&Number.isFinite(r)||(r=1),l&&Number.isFinite(l)||(l=1),{x:r,y:l}}let ik=tR(0);function iC(e){let t=t3(e);return ic()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ik}function iE(e,t,i,a){var o;void 0===t&&(t=!1),void 0===i&&(i=!1);let n=e.getBoundingClientRect(),r=iy(e),l=tR(1);t&&(a?t8(a)&&(l=iS(a)):l=iS(e));let s=(void 0===(o=i)&&(o=!1),a&&(!o||a===t3(r))&&o)?iC(r):tR(0),d=(n.left+s.x)/l.x,c=(n.top+s.y)/l.y,u=n.width/l.x,g=n.height/l.y;if(r){let e=t3(r),t=a&&t8(a)?t3(a):a,i=e,o=ib(i);for(;o&&a&&t!==i;){let e=iS(o),t=o.getBoundingClientRect(),a=ip(o),n=t.left+(o.clientLeft+parseFloat(a.paddingLeft))*e.x,r=t.top+(o.clientTop+parseFloat(a.paddingTop))*e.y;d*=e.x,c*=e.y,u*=e.x,g*=e.y,d+=n,c+=r,o=ib(i=t3(o))}}return tY({width:u,height:g,x:d,y:c})}function iI(e,t){let i=ih(e).scrollLeft;return t?t.left+i:iE(t4(e)).left+i}function iO(e,t){let i=e.getBoundingClientRect();return{x:i.left+t.scrollLeft-iI(e,i),y:i.top+t.scrollTop}}let iw=new Set(["absolute","fixed"]);function iT(e,t,i){var a;let o;if("viewport"===t)o=function(e,t){let i=t3(e),a=t4(e),o=i.visualViewport,n=a.clientWidth,r=a.clientHeight,l=0,s=0;if(o){n=o.width,r=o.height;let e=ic();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}let d=iI(a);if(d<=0){let e=a.ownerDocument,t=e.body,i=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(i.marginLeft)+parseFloat(i.marginRight)||0,r=Math.abs(a.clientWidth-t.clientWidth-o);r<=25&&(n-=r)}else d<=25&&(n+=d);return{width:n,height:r,x:l,y:s}}(e,i);else if("document"===t){let t,i,n,r,l,s,d;a=t4(e),t=t4(a),i=ih(a),n=a.ownerDocument.body,r=tT(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),l=tT(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-i.scrollLeft+iI(a),d=-i.scrollTop,"rtl"===ip(n).direction&&(s+=tT(t.clientWidth,n.clientWidth)-r),o={width:r,height:l,x:s,y:d}}else if(t8(t)){let e,a,n,r,l,s;a=(e=iE(t,!0,"fixed"===i)).top+t.clientTop,n=e.left+t.clientLeft,r=t7(t)?iS(t):tR(1),l=t.clientWidth*r.x,s=t.clientHeight*r.y,o={width:l,height:s,x:n*r.x,y:a*r.y}}else{let i=iC(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return tY(o)}function iV(e){return"static"===ip(e).position}function iP(e,t){if(!t7(e)||"fixed"===ip(e).position)return null;if(t)return t(e);let i=e.offsetParent;return t4(e)===i&&(i=i.ownerDocument.body),i}function iR(e,t){var i;let a=t3(e);if(io(e))return a;if(!t7(e)){let t=im(e);for(;t&&!ig(t);){if(t8(t)&&!iV(t))return t;t=im(t)}return a}let o=iP(e,t);for(;o&&(i=o,ii.has(t5(i)))&&iV(o);)o=iP(o,t);return o&&ig(o)&&iV(o)&&!id(o)?a:o||function(e){let t=im(e);for(;t7(t)&&!ig(t);){if(id(t))return t;if(io(t))break;t=im(t)}return null}(e)||a}let iN=async function(e){let t=this.getOffsetParent||iR,i=this.getDimensions,a=await i(e.floating);return{reference:function(e,t,i){let a=t7(t),o=t4(t),n="fixed"===i,r=iE(e,!0,n,t),l={scrollLeft:0,scrollTop:0},s=tR(0);if(a||!a&&!n)if(("body"!==t5(t)||it(o))&&(l=ih(t)),a){let e=iE(t,!0,n,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=iI(o));n&&!a&&o&&(s.x=iI(o));let d=!o||a||n?tR(0):iO(o,l);return{x:r.left+l.scrollLeft-s.x-d.x,y:r.top+l.scrollTop-s.y-d.y,width:r.width,height:r.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}},iz={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:i,offsetParent:a,strategy:o}=e,n="fixed"===o,r=t4(a),l=!!t&&io(t.floating);if(a===r||l&&n)return i;let s={scrollLeft:0,scrollTop:0},d=tR(1),c=tR(0),u=t7(a);if((u||!u&&!n)&&(("body"!==t5(a)||it(r))&&(s=ih(a)),t7(a))){let e=iE(a);d=iS(a),c.x=e.x+a.clientLeft,c.y=e.y+a.clientTop}let g=!r||u||n?tR(0):iO(r,s);return{width:i.width*d.x,height:i.height*d.y,x:i.x*d.x-s.scrollLeft*d.x+c.x+g.x,y:i.y*d.y-s.scrollTop*d.y+c.y+g.y}},getDocumentElement:t4,getClippingRect:function(e){let{element:t,boundary:i,rootBoundary:a,strategy:o}=e,n=[..."clippingAncestors"===i?io(t)?[]:function(e,t){let i=t.get(e);if(i)return i;let a=iv(e,[],!1).filter(e=>t8(e)&&"body"!==t5(e)),o=null,n="fixed"===ip(e).position,r=n?im(e):e;for(;t8(r)&&!ig(r);){let t=ip(r),i=id(r);i||"fixed"!==t.position||(o=null),(n?!i&&!o:!i&&"static"===t.position&&!!o&&iw.has(o.position)||it(r)&&!i&&function e(t,i){let a=im(t);return!(a===i||!t8(a)||ig(a))&&("fixed"===ip(a).position||e(a,i))}(e,r))?a=a.filter(e=>e!==r):o=t,r=im(r)}return t.set(e,a),a}(t,this._c):[].concat(i),a],r=n[0],l=n.reduce((e,i)=>{let a=iT(t,i,o);return e.top=tT(a.top,e.top),e.right=tw(a.right,e.right),e.bottom=tw(a.bottom,e.bottom),e.left=tT(a.left,e.left),e},iT(t,r,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:iR,getElementRects:iN,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:i}=ix(e);return{width:t,height:i}},getScale:iS,isElement:t8,isRTL:function(e){return"rtl"===ip(e).direction}};function i_(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function iA(e=0,t=0,i=0,a=0){if("function"==typeof DOMRect)return new DOMRect(e,t,i,a);let o={x:e,y:t,width:i,height:a,top:t,right:e+i,bottom:t+a,left:e};return{...o,toJSON:()=>o}}var iF=e=>({variable:e,reference:`var(${e})`}),iD={arrowSize:iF("--arrow-size"),arrowSizeHalf:iF("--arrow-size-half"),arrowBg:iF("--arrow-background"),transformOrigin:iF("--transform-origin"),arrowOffset:iF("--arrow-offset")},iL={name:"rects",fn:({rects:e})=>({data:e})},iM={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function iW(e,t){let i=e.devicePixelRatio||1;return Math.round(t*i)/i}function iB(e){return"function"==typeof e?e():"clipping-ancestors"===e?"clippingAncestors":e}function iH(e,t,i={}){let{defer:a,...o}=i,n=a?tI.raf:e=>e(),r=[];return r.push(n(()=>{let i="function"==typeof e?e():e,a="function"==typeof t?t():t;r.push(function(e,t,i={}){var a,o,n,r,l,s;let d,c=(a=i.getAnchorElement?.()??e,o=i.getAnchorRect,{contextElement:(0,tI.isHTMLElement)(a)?a:a?.contextElement,getBoundingClientRect:()=>{let e=o?.(a);return e||!a?function(e){if(!e)return iA();let{x:t,y:i,width:a,height:o}=e;return iA(t,i,a,o)}(e):a.getBoundingClientRect()}});if(!t||!c)return;let u=Object.assign({},iM,i),g=t.querySelector("[data-part=arrow]"),p=[function(e,t){if(!(0,to.isNull)(t.offset??t.gutter)){var i;return void 0===(i=({placement:i})=>{let a=(e?.clientHeight||0)/2,o=t.offset?.mainAxis??t.gutter,{hasAlign:n}=function(e){let[t,i]=e.split("-");return{side:t,align:i,hasAlign:null!=i}}(i),r=n?void 0:t.shift,l=t.offset?.crossAxis??r;return(0,to.compact)({crossAxis:l,mainAxis:"number"==typeof o?o+a:o??a,alignmentAxis:t.shift})})&&(i=0),{name:"offset",options:i,async fn(e){var t,a;let{x:o,y:n,placement:r,middlewareData:l}=e,s=await t1(e,i);return r===(null==(t=l.offset)?void 0:t.placement)&&null!=(a=l.arrow)&&a.alignmentOffset?{}:{x:o+s.x,y:n+s.y,data:{...s,placement:r}}}}}}(g,u),function(e){var t;if(!e.flip)return;let i=iB(e.boundary);return{name:"flip",options:t={...i?{boundary:i}:void 0,padding:e.overflowPadding,fallbackPlacements:!0===e.flip?void 0:e.flip},async fn(e){var i,a,o,n,r,l,s,d;let c,u,g,{placement:p,middlewareData:h,rects:m,initialPlacement:f,platform:v,elements:b}=e,{mainAxis:x=!0,crossAxis:y=!0,fallbackPlacements:S,fallbackStrategy:k="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:E=!0,...I}=t_(t,e);if(null!=(i=h.arrow)&&i.alignmentOffset)return{};let O=tA(p),w=tW(f),T=tA(f)===f,V=await (null==v.isRTL?void 0:v.isRTL(b.floating)),P=S||(T||!E?[tU(f)]:(c=tU(f),[tB(f),c,tB(c)])),R="none"!==C;!S&&R&&P.push(...(u=tF(f),g=function(e,t,i){switch(e){case"top":case"bottom":if(i)return t?t$:tH;return t?tH:t$;case"left":case"right":return t?tj:tG;default:return[]}}(tA(f),"start"===C,V),u&&(g=g.map(e=>e+"-"+u),E&&(g=g.concat(g.map(tB)))),g));let N=[f,...P],z=await tZ(e,I),_=[],A=(null==(a=h.flip)?void 0:a.overflows)||[];if(x&&_.push(z[O]),y){let e,t,i,a,o=(l=p,s=m,void 0===(d=V)&&(d=!1),e=tF(l),i=tL(t=tD(tW(l))),a="x"===t?e===(d?"end":"start")?"right":"left":"start"===e?"bottom":"top",s.reference[i]>s.floating[i]&&(a=tU(a)),[a,tU(a)]);_.push(z[o[0]],z[o[1]])}if(A=[...A,{placement:p,overflows:_}],!_.every(e=>e<=0)){let e=((null==(o=h.flip)?void 0:o.index)||0)+1,t=N[e];if(t&&("alignment"!==y||w===tW(t)||A.every(e=>tW(e.placement)!==w||e.overflows[0]>0)))return{data:{index:e,overflows:A},reset:{placement:t}};let i=null==(n=A.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:n.placement;if(!i)switch(k){case"bestFit":{let e=null==(r=A.filter(e=>{if(R){let t=tW(e.placement);return t===w||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:r[0];e&&(i=e);break}case"initialPlacement":i=f}if(p!==i)return{reset:{placement:i}}}return{}}}}(u),function(e){var t,i;if(!e.slide&&!e.overlap)return;let a=iB(e.boundary);return{name:"shift",options:i={...a?{boundary:a}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:(void 0===t&&(t={}),{options:t,fn(e){let{x:i,y:a,placement:o,rects:n,middlewareData:r}=e,{offset:l=0,mainAxis:s=!0,crossAxis:d=!0}=t_(t,e),c={x:i,y:a},u=tW(o),g=tD(u),p=c[g],h=c[u],m=t_(l,e),f="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){let e="y"===g?"height":"width",t=n.reference[g]-n.floating[e]+f.mainAxis,i=n.reference[g]+n.reference[e]-f.mainAxis;pi&&(p=i)}if(d){var v,b;let e="y"===g?"width":"height",t=t0.has(tA(o)),i=n.reference[u]-n.floating[e]+(t&&(null==(v=r.offset)?void 0:v[u])||0)+(t?0:f.crossAxis),a=n.reference[u]+n.reference[e]+(t?0:(null==(b=r.offset)?void 0:b[u])||0)-(t?f.crossAxis:0);ha&&(h=a)}return{[g]:p,[u]:h}}})},async fn(e){let{x:t,y:a,placement:o}=e,{mainAxis:n=!0,crossAxis:r=!1,limiter:l={fn:e=>{let{x:t,y:i}=e;return{x:t,y:i}}},...s}=t_(i,e),d={x:t,y:a},c=await tZ(e,s),u=tW(tA(o)),g=tD(u),p=d[g],h=d[u];if(n){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",i=p+c[e],a=p-c[t];p=tT(i,tw(p,a))}if(r){let e="y"===u?"top":"left",t="y"===u?"bottom":"right",i=h+c[e],a=h-c[t];h=tT(i,tw(h,a))}let m=l.fn({...e,[g]:p,[u]:h});return{...m,data:{x:m.x-t,y:m.y-a,enabled:{[g]:n,[u]:r}}}}}}(u),(n=t.ownerDocument,{name:"arrow",options:d={element:g||n.createElement("div"),padding:u.arrowPadding},async fn(e){let{x:t,y:i,placement:a,rects:o,platform:n,elements:r,middlewareData:l}=e,{element:s,padding:c=0}=t_(d,e)||{};if(null==s)return{};let u=tq(c),g={x:t,y:i},p=tD(tW(a)),h=tL(p),m=await n.getDimensions(s),f="y"===p,v=f?"clientHeight":"clientWidth",b=o.reference[h]+o.reference[p]-g[p]-o.floating[h],x=g[p]-o.reference[p],y=await (null==n.getOffsetParent?void 0:n.getOffsetParent(s)),S=y?y[v]:0;S&&await (null==n.isElement?void 0:n.isElement(y))||(S=r.floating[v]||o.floating[h]);let k=S/2-m[h]/2-1,C=tw(u[f?"top":"left"],k),E=tw(u[f?"bottom":"right"],k),I=S-m[h]-E,O=S/2-m[h]/2+(b/2-x/2),w=tT(C,tw(O,I)),T=!l.arrow&&null!=tF(a)&&O!==w&&o.reference[h]/2-(O{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:i}){if(!i.arrow)return{};let{x:a,y:o}=i.arrow,n=t.split("-")[0];return Object.assign(e.style,{left:null!=a?`${a}px`:"",top:null!=o?`${o}px`:"",[n]:`calc(100% + ${iD.arrowOffset.reference})`}),{}}}})(g),(r={gutter:u.gutter,offset:u.offset,overlap:u.overlap},{name:"transformOrigin",fn(e){let{elements:t,middlewareData:i,placement:a,rects:o,y:n}=e,l=a.split("-")[0],s=i.arrow?.x||0,d=i.arrow?.y||0,c=g?.clientWidth||0,u=g?.clientHeight||0,p=s+c/2,h=d+u/2,m=Math.abs(i.shift?.y||0),f=o.reference.height/2,v=u/2,b=r.offset?.mainAxis??r.gutter,x="number"==typeof b?b+v:b??v,y=m>x,S={top:`${p}px calc(100% + ${x}px)`,bottom:`${p}px ${-x}px`,left:`calc(100% + ${x}px) ${h}px`,right:`${-x}px ${h}px`}[l],k=`${p}px ${o.reference.y+f-n}px`,C=!!r.overlap&&"y"==("top"===l||"bottom"===l?"y":"x")&&y;return t.floating.style.setProperty(iD.transformOrigin.variable,C?k:S),{data:{transformOrigin:C?k:S}}}}),{name:"size",options:l={padding:u.overflowPadding,apply({elements:e,rects:t,availableHeight:i,availableWidth:a}){let o=e.floating,n=Math.round(t.reference.width),r=Math.round(t.reference.height);a=Math.floor(a),i=Math.floor(i),o.style.setProperty("--reference-width",`${n}px`),o.style.setProperty("--reference-height",`${r}px`),o.style.setProperty("--available-width",`${a}px`),o.style.setProperty("--available-height",`${i}px`)}},async fn(e){var t,i;let a,o,{placement:n,rects:r,platform:s,elements:d}=e,{apply:c=()=>{},...u}=t_(l,e),g=await tZ(e,u),p=tA(n),h=tF(n),m="y"===tW(n),{width:f,height:v}=r.floating;"top"===p||"bottom"===p?(a=p,o=h===(await (null==s.isRTL?void 0:s.isRTL(d.floating))?"start":"end")?"left":"right"):(o=p,a="end"===h?"top":"bottom");let b=v-g.top-g.bottom,x=f-g.left-g.right,y=tw(v-g[a],b),S=tw(f-g[o],x),k=!e.middlewareData.shift,C=y,E=S;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(E=x),null!=(i=e.middlewareData.shift)&&i.enabled.y&&(C=b),k&&!h){let e=tT(g.left,0),t=tT(g.right,0),i=tT(g.top,0),a=tT(g.bottom,0);m?E=f-2*(0!==e||0!==t?e+t:tT(g.left,g.right)):C=v-2*(0!==i||0!==a?i+a:tT(g.top,g.bottom))}await c({...e,availableWidth:E,availableHeight:C});let I=await s.getDimensions(d.floating);return f!==I.width||v!==I.height?{reset:{rects:!0}}:{}}},function(e){if(e.hideWhenDetached){var t;return{name:"hide",options:t={strategy:"referenceHidden",boundary:iB(e.boundary)??"clippingAncestors"},async fn(e){let{rects:i}=e,{strategy:a="referenceHidden",...o}=t_(t,e);switch(a){case"referenceHidden":{let t=tJ(await tZ(e,{...o,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:tQ(t)}}}case"escaped":{let t=tJ(await tZ(e,{...o,altBoundary:!0}),i.floating);return{data:{escapedOffsets:t,escaped:tQ(t)}}}default:return{}}}}}}(u),iL],{placement:h,strategy:m,onComplete:f,onPositioned:v}=u,b=async()=>{var e;let i,a,o;if(!c||!t)return;let n=await (e={placement:h,middleware:p,strategy:m},i=new Map,o={...(a={platform:iz,...e}).platform,_c:i},tX(c,t,{...a,platform:o}));f?.(n),v?.({placed:!0});let r=(0,tI.getWindow)(t),l=iW(r,n.x),s=iW(r,n.y);t.style.setProperty("--x",`${l}px`),t.style.setProperty("--y",`${s}px`),u.hideWhenDetached&&(n.middlewareData.hide?.referenceHidden?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));let d=t.firstElementChild;if(d){let e=(0,tI.getComputedStyle)(d);t.style.setProperty("--z-index",e.zIndex)}},x=async()=>{i.updatePosition?(await i.updatePosition({updatePosition:b,floatingElement:t}),v?.({placed:!0})):await b()},y=(s=u.listeners)?!0===s?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:s:{},S=u.listeners?function(e,t,i,a){let o;void 0===a&&(a={});let{ancestorScroll:n=!0,ancestorResize:r=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:d=!1}=a,c=iy(e),u=n||r?[...c?iv(c):[],...iv(t)]:[];u.forEach(e=>{n&&e.addEventListener("scroll",i,{passive:!0}),r&&e.addEventListener("resize",i)});let g=c&&s?function(e,t){let i,a=null,o=t4(e);function n(){var e;clearTimeout(i),null==(e=a)||e.disconnect(),a=null}return!function r(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),n();let d=e.getBoundingClientRect(),{left:c,top:u,width:g,height:p}=d;if(l||t(),!g||!p)return;let h={rootMargin:-tP(u)+"px "+-tP(o.clientWidth-(c+g))+"px "+-tP(o.clientHeight-(u+p))+"px "+-tP(c)+"px",threshold:tT(0,tw(1,s))||1},m=!0;function f(t){let a=t[0].intersectionRatio;if(a!==s){if(!m)return r();a?r(!1,a):i=setTimeout(()=>{r(!1,1e-7)},1e3)}1!==a||i_(d,e.getBoundingClientRect())||r(),m=!1}try{a=new IntersectionObserver(f,{...h,root:o.ownerDocument})}catch(e){a=new IntersectionObserver(f,h)}a.observe(e)}(!0),n}(c,i):null,p=-1,h=null;l&&(h=new ResizeObserver(e=>{let[a]=e;a&&a.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),i()}),c&&!d&&h.observe(c),h.observe(t));let m=d?iE(e):null;return d&&function t(){let a=iE(e);m&&!i_(m,a)&&i(),m=a,o=requestAnimationFrame(t)}(),i(),()=>{var e;u.forEach(e=>{n&&e.removeEventListener("scroll",i),r&&e.removeEventListener("resize",i)}),null==g||g(),null==(e=h)||e.disconnect(),h=null,d&&cancelAnimationFrame(o)}}(c,t,x,y):to.noop;return x(),()=>{S?.(),v?.({placed:!1})}}(i,a,o))})),()=>{r.forEach(e=>e?.())}}var i$=e.i(43205),ij="pointerdown.outside",iG="focus.outside";function iU(e,t){if(!t||!("clientY"in e))return!1;let i=t.scrollHeight>t.clientHeight,a=i&&e.clientX>t.offsetLeft+t.clientWidth,o=t.scrollWidth>t.clientWidth,n=o&&e.clientY>t.offsetTop+t.clientHeight,r={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+16*!!i,height:t.clientHeight+16*!!o},l={x:e.clientX,y:e.clientY};return r.y<=l.y&&l.y<=r.y+r.height&&r.x<=l.x&&l.x<=r.x+r.width&&(a||n)}function iq(e,t){let{defer:i}=t,a=i?tI.raf:e=>e(),o=[];return o.push(a(()=>{let i="function"==typeof e?e():e;o.push(function(e,t){let i,a,{exclude:o,onFocusOutside:n,onPointerDownOutside:r,onInteractOutside:l,defer:s,followControlledElements:d=!0}=t;if(!e)return;let c=(0,tI.getDocument)(e),u=(0,tI.getWindow)(e),g=i={each(e){for(let t=0;t(i.each(i=>{try{i.document.addEventListener(e,t,a)}catch{}}),()=>{try{i.removeEventListener(e,t,a)}catch{}}),removeEventListener(e,t,a){i.each(i=>{try{i.document.removeEventListener(e,t,a)}catch{}})}},p=(a=null!=u.frameElement?u.parent:null,{addEventListener:(e,t,i)=>{try{a?.addEventListener(e,t,i)}catch{}return()=>{try{a?.removeEventListener(e,t,i)}catch{}}},removeEventListener:(e,t,i)=>{try{a?.removeEventListener(e,t,i)}catch{}}});function h(t,i){if(!(0,tI.isHTMLElement)(i)||!i.isConnected||(0,tI.contains)(e,i)||function(e,t){if(!("clientY"in t)||!e)return!1;let i=e.getBoundingClientRect();return 0!==i.width&&0!==i.height&&i.top<=t.clientY&&t.clientY<=i.top+i.height&&i.left<=t.clientX&&t.clientX<=i.left+i.width}(e,t)||d&&(0,tI.isControlledElement)(e,i))return!1;let a=c.querySelector(`[aria-controls="${e.id}"]`);return!(a&&iU(t,(0,tI.getNearestOverflowAncestor)(a)))&&!iU(t,(0,tI.getNearestOverflowAncestor)(e))&&!o?.(i)}let m=new Set,f=(0,tI.isShadowRoot)(e?.getRootNode());function v(t){function i(i){let a=s&&!(0,tI.isTouchDevice)()?tI.raf:e=>e(),o=i??t,n=o?.composedPath?.()??[o?.target];a(()=>{let i=f?n[0]:(0,tI.getEventTarget)(t);if(e&&h(t,i)){if(r||l){let t=(0,to.callAll)(r,l);e.addEventListener(ij,t,{once:!0})}iY(e,ij,{bubbles:!1,cancelable:!0,detail:{originalEvent:o,contextmenu:(0,tI.isContextMenuEvent)(o),focusable:function(e){for(let t of e)if((0,tI.isHTMLElement)(t)&&(0,tI.isFocusable)(t))return!0;return!1}(n),target:i}})}})}"touch"===t.pointerType?(m.forEach(e=>e()),m.add((0,tI.addDomEvent)(c,"click",i,{once:!0})),m.add(p.addEventListener("click",i,{once:!0})),m.add(g.addEventListener("click",i,{once:!0}))):i()}let b=new Set,x=setTimeout(()=>{b.add((0,tI.addDomEvent)(c,"pointerdown",v,!0)),b.add(p.addEventListener("pointerdown",v,!0)),b.add(g.addEventListener("pointerdown",v,!0))},0);function y(t){(s?tI.raf:e=>e())(()=>{let i=t?.composedPath?.()??[t?.target],a=f?i[0]:(0,tI.getEventTarget)(t);if(e&&h(t,a)){if(n||l){let t=(0,to.callAll)(n,l);e.addEventListener(iG,t,{once:!0})}iY(e,iG,{bubbles:!1,cancelable:!0,detail:{originalEvent:t,contextmenu:!1,focusable:(0,tI.isFocusable)(a),target:a}})}})}return(0,tI.isTouchDevice)()||(b.add((0,tI.addDomEvent)(c,"focusin",y,!0)),b.add(p.addEventListener("focusin",y,!0)),b.add(g.addEventListener("focusin",y,!0))),()=>{clearTimeout(x),m.forEach(e=>e()),b.forEach(e=>e())}}(i,t))})),()=>{o.forEach(e=>e?.())}}function iY(e,t,i){let a=new(e.ownerDocument.defaultView||window).CustomEvent(t,i);return e.dispatchEvent(a)}var iK="layer:request-dismiss",iX={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){return this.indexOf(e)<(this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1)},isTopMost(e){let t=this.layers[this.count()-1];return t?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},getLayersByType(e){return this.layers.filter(t=>t.type===e)},getNestedLayersByType(e,t){let i=this.indexOf(e);return -1===i?[]:this.layers.slice(i+1).filter(e=>e.type===t)},getParentLayerOfType(e,t){let i=this.indexOf(e);if(!(i<=0))return this.layers.slice(0,i).reverse().find(e=>e.type===t)},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return this.getNestedLayers(e).some(e=>(0,tI.contains)(e.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>(0,tI.contains)(t,e))},add(e){this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){let t=this.indexOf(e);t<0||(tiX.dismiss(t.node,e)),this.layers.splice(t,1),this.syncLayers())},removeBranch(e){let t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayers(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`),e.node.removeAttribute("data-nested"),e.node.removeAttribute("data-has-nested"),this.getParentLayerOfType(e.node,e.type)&&e.node.setAttribute("data-nested",e.type);let i=this.countNestedLayersOfType(e.node,e.type);i>0&&e.node.setAttribute("data-has-nested",e.type),e.node.style.setProperty("--nested-layer-count",`${i}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){var i,a,o,n,r,l;let s,d=this.indexOf(e);if(-1===d)return;let c=this.layers[d];i=e,a=iK,o=e=>{c.requestDismiss?.(e),e.defaultPrevented||c?.dismiss()},i.addEventListener(a,o,{once:!0}),n=e,r=iK,l={originalLayer:e,targetLayer:t,originalIndex:d,targetIndex:t?this.indexOf(t):-1},s=new(n.ownerDocument.defaultView||window).CustomEvent(r,{cancelable:!0,bubbles:!0,detail:l}),n.dispatchEvent(s),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function iZ(){iX.layers.forEach(({node:e})=>{e.style.pointerEvents=iX.isBelowPointerBlockingLayer(e)?"none":"auto"})}function iJ(e,t){let{defer:i}=t,a=i?tI.raf:e=>e(),n=[];return n.push(a(()=>{let i=(0,to.isFunction)(e)?e():e;n.push(function(e,t){var i,a;let n,r,{warnOnMissingNode:l=!0}=t;if(l&&!e)return void(0,to.warn)("[@zag-js/dismissable] node is `null` or `undefined`");if(!e)return;let{onDismiss:s,onRequestDismiss:d,pointerBlocking:c,exclude:u,debug:g,type:p="dialog"}=t;iX.add({dismiss:s,node:e,type:p,pointerBlocking:c,requestDismiss:d}),iZ();let h=[c?(i=t.persistentElements,n=(0,tI.getDocument)(e),r=[],iX.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(o=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),i?.forEach(e=>{let[t,i]=(0,tI.waitForElement)(()=>{let t=e();return(0,tI.isHTMLElement)(t)?t:null},{timeout:1e3});t.then(e=>r.push((0,tI.setStyle)(e,{pointerEvents:"auto"}))),r.push(i)}),()=>{iX.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=o,n.body.removeAttribute("data-inert"),0===n.body.style.length&&n.body.removeAttribute("style")}),r.forEach(e=>e()))}):void 0,(a=function(i){iX.isTopMost(e)&&(t.onEscapeKeyDown?.(i),!i.defaultPrevented&&s&&(i.preventDefault(),s()))},(0,tI.addDomEvent)((0,tI.getDocument)(e),"keydown",e=>{"Escape"!==e.key||e.isComposing||a?.(e)},{capture:!0})),iq(e,{exclude:function(i){if(!e)return!1;let a="function"==typeof u?u():u,o=Array.isArray(a)?a:[a],n=t.persistentElements?.map(e=>e()).filter(tI.isHTMLElement);return n&&o.push(...n),o.some(e=>(0,tI.contains)(e,i))||iX.isInNestedLayer(e,i)},onFocusOutside:function(e){let i=(0,tI.getEventTarget)(e.detail.originalEvent);iX.isInBranch(i)||(t.onFocusOutside?.(e),t.onInteractOutside?.(e),e.defaultPrevented||(g&&console.log("onFocusOutside:",e.detail.originalEvent),s?.()))},onPointerDownOutside:function(i){let a=(0,tI.getEventTarget)(i.detail.originalEvent);iX.isBelowPointerBlockingLayer(e)||iX.isInBranch(a)||(t.onPointerDownOutside?.(i),t.onInteractOutside?.(i),i.defaultPrevented||(g&&console.log("onPointerDownOutside:",i.detail.originalEvent),s?.()))},defer:t.defer})];return()=>{iX.remove(e),iZ(),e.style.pointerEvents="",h.forEach(e=>e?.())}}(i,t))})),()=>{n.forEach(e=>e?.())}}var iQ=()=>e=>Array.from(new Set(e)),i0=(0,ta.createAnatomy)("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");i0.build();var i1=e=>new ts(e);i1.empty=()=>new ts({items:[]});var i2=e=>e.getById(e.ids?.content??`combobox:${e.id}:content`),i5=e=>e.getById(e.ids?.input??`combobox:${e.id}:input`),i3=e=>e.getById(e.ids?.positioner??`combobox:${e.id}:popper`),i4=e=>e.getById(e.ids?.control??`combobox:${e.id}:control`),i6=e=>e.getById(e.ids?.trigger??`combobox:${e.id}:toggle-btn`),i8=(e,t)=>{if(null==t)return null;let i=`[role=option][data-value="${CSS.escape(t)}"]`;return(0,tI.query)(i2(e),i)},i7=e=>{let t=i5(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},{guards:i9,createMachine:ae,choose:at}=(0,i$.setup)(),{and:ai,not:aa}=i9;function ao(e){return(e.previousEvent||e).src}ae({props:({props:e})=>({loopFocus:!0,openOnClick:!1,defaultValue:[],defaultInputValue:"",closeOnSelect:!e.multiple,allowCustomValue:!1,alwaysSubmitOnEnter:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:e}){(0,tI.clickIfLink)(e)},collection:i1.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"suggesting":"idle",context:({prop:e,bindable:t,getContext:i,getEvent:a})=>({currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:to.isEqual,hash:e=>e.join(","),onChange(t){let a=i(),o=a.get("selectedItems"),n=e("collection"),r=t.map(e=>o.find(t=>n.getItemValue(t)===e)||n.find(e));a.set("selectedItems",r),e("onValueChange")?.({value:t,items:r})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(t){let i=e("collection").find(t);e("onHighlightChange")?.({highlightedValue:t,highlightedItem:i})}})),inputValue:t(()=>{let t=e("inputValue")||e("defaultInputValue"),i=e("value")||e("defaultValue");if(!t.trim()&&!e("multiple")){let a=e("collection").stringifyMany(i);t=(0,to.match)(e("selectionBehavior"),{preserve:t||a,replace:a,clear:""})}return{defaultValue:t,value:e("inputValue"),onChange(t){let i=a(),o=(i.previousEvent||i).src;e("onInputValueChange")?.({inputValue:t,reason:o})}}}),highlightedItem:t(()=>{let t=e("highlightedValue");return{defaultValue:e("collection").find(t)}}),selectedItems:t(()=>{let t=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(t)}})}),computed:{isInputValueEmpty:({context:e})=>0===e.get("inputValue").length,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>"autocomplete"===e("inputBehavior"),autoHighlight:({prop:e})=>"autohighlight"===e("inputBehavior"),hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:i,action:a,send:o}){i([()=>e.hash("value")],()=>{a(["syncSelectedItems"])}),i([()=>e.get("inputValue")],()=>{a(["syncInputValue"])}),i([()=>e.get("highlightedValue")],()=>{a(["syncHighlightedItem","autofillInputValue"])}),i([()=>t("open")],()=>{a(["toggleVisibility"])}),i([()=>t("collection").toString()],()=>{o({type:"CHILDREN_CHANGE"})})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:at([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{idle:{tags:["idle","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"suggesting"},{target:"interacting"}],"INPUT.CHANGE":[{guard:ai("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:ai("isCustomValue",aa("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:ai("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:ai("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:ai("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:ai("isOpenControlled","isCustomValue",aa("hasHighlightedItem"),aa("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:ai("isCustomValue",aa("hasHighlightedItem"),aa("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:ai("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"ITEM.CLICK":[{guard:ai("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:ai("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:ai("isOpenControlled","isCustomValue",aa("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:ai("isCustomValue",aa("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:ai("isHighlightedItemRemoved","hasCollectionItems","autoHighlight"),actions:["clearHighlightedValue","highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{guard:"autoHighlight",actions:["highlightFirstItem"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:ai("isOpenControlled","isCustomValue",aa("hasHighlightedItem"),aa("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:ai("isCustomValue",aa("hasHighlightedItem"),aa("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:ai("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.INTERACT_OUTSIDE":[{guard:ai("isOpenControlled","isCustomValue",aa("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:ai("isCustomValue",aa("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.CLICK":[{guard:ai("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>null!=e.get("highlightedValue"),closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>null!=e("open"),openOnChange:({prop:e,context:t})=>{let i=e("openOnChange");return(0,to.isBoolean)(i)?i:!!i?.({inputValue:t.get("inputValue")})},restoreFocus:({event:e})=>{let t=e.restoreFocus??e.previousEvent?.restoreFocus;return null==t||!!t},isChangeEvent:({event:e})=>e.previousEvent?.type==="INPUT.CHANGE",autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue")),hasCollectionItems:({prop:e})=>e("collection").size>0},effects:{trackDismissableLayer({send:e,prop:t,scope:i}){if(!t("disableLayer"))return iJ(()=>i2(i),{type:"listbox",defer:!0,exclude:()=>[i5(i),i6(i),i.getById(i.ids?.clearTrigger??`combobox:${i.id}:clear-btn`)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(t){t.preventDefault(),t.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},trackPlacement:({context:e,prop:t,scope:i})=>(e.set("currentPlacement",t("positioning").placement),iH(()=>i4(i)||i6(i),()=>i3(i),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})),scrollToHighlightedItem({context:e,prop:t,scope:i,event:a}){let o=i5(i),n=[],r=o=>{let r=a.current().type.includes("POINTER"),l=e.get("highlightedValue");if(r||!l)return;let s=i2(i),d=t("scrollToIndexFn");if(d)return void d({index:t("collection").indexOf(l),immediate:o,getElement:()=>i8(i,l)});let c=i8(i,l),u=(0,tI.raf)(()=>{(0,tI.scrollIntoView)(c,{rootEl:s,block:"nearest"})});n.push(u)},l=(0,tI.raf)(()=>r(!0));n.push(l);let s=(0,tI.observeAttributes)(o,{attributes:["aria-activedescendant"],callback:()=>r(!1)});return n.push(s),()=>{n.forEach(e=>e())}}},actions:{reposition({context:e,prop:t,scope:i,event:a}){iH(()=>i4(i),()=>i3(i),{...t("positioning"),...a.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},setHighlightedValue({context:e,event:t}){null!=t.value&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){let{context:t,prop:i}=e,a=i("collection"),o=t.get("highlightedValue");if(!o||!a.has(o))return;let n=i("multiple")?(0,to.addOrRemove)(t.get("value"),o):[o];i("onSelect")?.({value:n,itemValue:o}),t.set("value",n);let r=(0,to.match)(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:a.stringifyMany(n),clear:""});t.set("inputValue",r)},scrollToHighlightedItem({context:e,prop:t,scope:i}){(0,tI.nextTick)(()=>{let a=e.get("highlightedValue");if(null==a)return;let o=i8(i,a),n=i2(i),r=t("scrollToIndexFn");r?r({index:t("collection").indexOf(a),immediate:!0,getElement:()=>i8(i,a)}):(0,tI.scrollIntoView)(o,{rootEl:n,block:"nearest"})})},selectItem(e){let{context:t,event:i,flush:a,prop:o}=e;null!=i.value&&a(()=>{let e=o("multiple")?(0,to.addOrRemove)(t.get("value"),i.value):[i.value];o("onSelect")?.({value:e,itemValue:i.value}),t.set("value",e);let a=(0,to.match)(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(e),clear:""});t.set("inputValue",a)})},clearItem(e){let{context:t,event:i,flush:a,prop:o}=e;null!=i.value&&a(()=>{let e=(0,to.remove)(t.get("value"),i.value);t.set("value",e);let a=(0,to.match)(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(e),clear:""});t.set("inputValue",a)})},setInitialFocus({scope:e}){(0,tI.raf)(()=>{i7(e)})},setFinalFocus({scope:e}){(0,tI.raf)(()=>{let t=i6(e);if(t?.dataset.focusable==null)i7(e);else{let t;t=i6(e),e.isActiveElement(t)||t?.focus({preventScroll:!0})}})},syncInputValue({context:e,scope:t,event:i}){let a=i5(t);a&&(a.value=e.get("inputValue"),queueMicrotask(()=>{"INPUT.CHANGE"!==i.current().type&&(0,tI.setCaretToEnd)(a)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:i}){let a=t("selectionBehavior"),o=(0,to.match)(a,{replace:i("hasSelectedItems")?i("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",o)},setValue(e){let{context:t,flush:i,event:a,prop:o}=e;i(()=>{t.set("value",a.value);let e=(0,to.match)(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(a.value),clear:""});t.set("inputValue",e)})},clearSelectedItems(e){let{context:t,flush:i,prop:a}=e;i(()=>{t.set("value",[]);let e=(0,to.match)(a("selectionBehavior"),{preserve:t.get("inputValue"),replace:a("collection").stringifyMany([]),clear:""});t.set("inputValue",e)})},scrollContentToTop({prop:e,scope:t}){let i=e("scrollToIndexFn");if(i){let a=e("collection").firstValue;i({index:0,immediate:!0,getElement:()=>i8(t,a)})}else{let e=i2(t);if(!e)return;e.scrollTop=0}},invokeOnOpen({prop:e,event:t,context:i}){let a=ao(t);e("onOpenChange")?.({open:!0,reason:a,value:i.get("value")})},invokeOnClose({prop:e,event:t,context:i}){let a=ao(t);e("onOpenChange")?.({open:!1,reason:a,value:i.get("value")})},highlightFirstItem({context:e,prop:t,scope:i}){(i2(i)?queueMicrotask:tI.raf)(()=>{let i=t("collection").firstValue;i&&e.set("highlightedValue",i)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:i}){(i2(i)?queueMicrotask:tI.raf)(()=>{let i=t("collection").lastValue;i&&e.set("highlightedValue",i)})},highlightNextItem({context:e,prop:t}){let i=null,a=e.get("highlightedValue"),o=t("collection");a?!(i=o.getNextValue(a))&&t("loopFocus")&&(i=o.firstValue):i=o.firstValue,i&&e.set("highlightedValue",i)},highlightPrevItem({context:e,prop:t}){let i=null,a=e.get("highlightedValue"),o=t("collection");a?!(i=o.getPreviousValue(a))&&t("loopFocus")&&(i=o.lastValue):i=o.lastValue,i&&e.set("highlightedValue",i)},highlightFirstSelectedItem({context:e,prop:t}){(0,tI.raf)(()=>{let[i]=t("collection").sort(e.get("value"));i&&e.set("highlightedValue",i)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:i}){(0,tI.raf)(()=>{let a=null;(a=i("hasSelectedItems")?t("collection").sort(e.get("value"))[0]:t("collection").firstValue)&&e.set("highlightedValue",a)})},highlightLastOrSelectedItem({context:e,prop:t,computed:i}){(0,tI.raf)(()=>{let a=t("collection"),o=null;(o=i("hasSelectedItems")?a.sort(e.get("value"))[0]:a.lastValue)&&e.set("highlightedValue",o)})},autofillInputValue({context:e,computed:t,prop:i,event:a,scope:o}){let n=i5(o),r=i("collection");if(!t("autoComplete")||!n||!a.keypress)return;let l=r.stringify(e.get("highlightedValue"));(0,tI.raf)(()=>{n.value=l||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{let{context:t,prop:i}=e,a=i("collection"),o=t.get("value"),n=o.map(e=>t.get("selectedItems").find(t=>a.getItemValue(t)===e)||a.find(e));t.set("selectedItems",n);let r=(0,to.match)(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:a.stringifyMany(o),clear:""});t.set("inputValue",r)})},syncHighlightedItem({context:e,prop:t}){let i=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",i)},toggleVisibility({event:e,send:t,prop:i}){t({type:i("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});var an=iQ()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value","alwaysSubmitOnEnter"]);(0,to.createSplitProps)(an);var ar=iQ()(["htmlFor"]);(0,to.createSplitProps)(ar);var al=iQ()(["id"]);(0,to.createSplitProps)(al);var as=iQ()(["item","persistFocus"]);(0,to.createSplitProps)(as);let ad=i0.extendWith("empty");var ac=(0,ta.createAnatomy)("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");ac.build();var au=e=>e.ids?.root??`accordion:${e.id}`,ag=(e,t)=>e.ids?.itemTrigger?.(t)??`accordion:${e.id}:trigger:${t}`,ap=e=>{let t=CSS.escape(au(e)),i=`[data-controls][data-ownedby='${t}']:not([disabled])`;return(0,tI.queryAll)(e.getById(au(e)),i)},{and:ah,not:am}=(0,i$.createGuards)();(0,i$.createMachine)({props:({props:e})=>({collapsible:!1,multiple:!1,orientation:"vertical",defaultValue:[],...e}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({focusedValue:t(()=>({defaultValue:null,sync:!0,onChange(t){e("onFocusChange")?.({value:t})}})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){e("onValueChange")?.({value:t})}}))}),computed:{isHorizontal:({prop:e})=>"horizontal"===e("orientation")},on:{"VALUE.SET":{actions:["setValue"]}},states:{idle:{on:{"TRIGGER.FOCUS":{target:"focused",actions:["setFocusedValue"]}}},focused:{on:{"GOTO.NEXT":{actions:["focusNextTrigger"]},"GOTO.PREV":{actions:["focusPrevTrigger"]},"TRIGGER.CLICK":[{guard:ah("isExpanded","canToggle"),actions:["collapse"]},{guard:am("isExpanded"),actions:["expand"]}],"GOTO.FIRST":{actions:["focusFirstTrigger"]},"GOTO.LAST":{actions:["focusLastTrigger"]},"TRIGGER.BLUR":{target:"idle",actions:["clearFocusedValue"]}}}},implementations:{guards:{canToggle:({prop:e})=>!!e("collapsible")||!!e("multiple"),isExpanded:({context:e,event:t})=>e.get("value").includes(t.value)},actions:{collapse({context:e,prop:t,event:i}){let a=t("multiple")?(0,to.remove)(e.get("value"),i.value):[];e.set("value",a)},expand({context:e,prop:t,event:i}){let a=t("multiple")?(0,to.add)(e.get("value"),i.value):[i.value];e.set("value",a)},focusFirstTrigger({scope:e}){(0,to.first)(ap(e))?.focus()},focusLastTrigger({scope:e}){(0,to.last)(ap(e))?.focus()},focusNextTrigger({context:e,scope:t}){let i=e.get("focusedValue");if(!i)return;let a=(0,tI.nextById)(ap(t),ag(t,i));a?.focus()},focusPrevTrigger({context:e,scope:t}){let i=e.get("focusedValue");if(!i)return;let a=(0,tI.prevById)(ap(t),ag(t,i));a?.focus()},setFocusedValue({context:e,event:t}){e.set("focusedValue",t.value)},clearFocusedValue({context:e}){e.set("focusedValue",null)},setValue({context:e,event:t}){e.set("value",t.value)},coarseValue({context:e,prop:t}){!t("multiple")&&e.get("value").length>1&&((0,to.warn)("The value of accordion should be a single value when multiple is false."),e.set("value",[e.get("value")[0]]))}}}});var af=iQ()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]);(0,to.createSplitProps)(af);var av=iQ()(["value","disabled"]);(0,to.createSplitProps)(av);var ab=(0,ta.createAnatomy)("clipboard").parts("root","control","trigger","indicator","input","label");ab.build(),(0,i$.createMachine)({props:({props:e})=>({timeout:3e3,defaultValue:"",...e}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){e("onValueChange")?.({value:t})}}))}),watch({track:e,context:t,action:i}){e([()=>t.get("value")],()=>{i(["syncInputElement"])})},on:{"VALUE.SET":{actions:["setValue"]},COPY:{target:"copied",actions:["copyToClipboard","invokeOnCopy"]}},states:{idle:{on:{"INPUT.COPY":{target:"copied",actions:["invokeOnCopy"]}}},copied:{effects:["waitForTimeout"],on:{"COPY.DONE":{target:"idle"},COPY:{target:"copied",actions:["copyToClipboard","invokeOnCopy"]},"INPUT.COPY":{actions:["invokeOnCopy"]}}}},implementations:{effects:{waitForTimeout:({prop:e,send:t})=>(0,to.setRafTimeout)(()=>{t({type:"COPY.DONE"})},e("timeout"))},actions:{setValue({context:e,event:t}){e.set("value",t.value)},copyToClipboard({context:e,scope:t}){let i;i=e.get("value"),function(e,t){let i,a=e.defaultView||window;if(a.navigator.clipboard?.writeText!==void 0)return a.navigator.clipboard.writeText(t);if(!e.body)return Promise.reject(Error());let o=(Object.assign((i=e.createElement("pre")).style,{width:"1px",height:"1px",position:"fixed",top:"5px"}),i.textContent=t,i);e.body.appendChild(o),function(e){let t=(0,tI.getWindow)(e).getSelection();if(null==t)return Promise.reject(Error());t.removeAllRanges();let i=e.ownerDocument,a=i.createRange();a.selectNodeContents(e),t.addRange(a),i.execCommand("copy"),t.removeAllRanges(),Promise.resolve()}(o),e.body.removeChild(o),Promise.resolve()}(t.getDoc(),i)},invokeOnCopy({prop:e}){e("onStatusChange")?.({copied:!0})},syncInputElement({context:e,scope:t}){let i=t.getById(t.ids?.input??`clip:${t.id}:input`);i&&(0,tI.setElementValue)(i,e.get("value"))}}}});var ax=iQ()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]);(0,to.createSplitProps)(ax);var ay=iQ()(["copied"]);(0,to.createSplitProps)(ay);var aS=Object.defineProperty,ak=(e,t,i)=>{let a;return(a=t+"")in e?aS(e,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[a]=i},aC=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw Error("Unsupported color channel: "+e)}getChannelValuePercent(e,t){let i=t??this.getChannelValue(e),{minValue:a,maxValue:o}=this.getChannelRange(e);return(0,to.getValuePercent)(i,a,o)}getChannelPercentValue(e,t){let{minValue:i,maxValue:a,step:o}=this.getChannelRange(e),n=(0,to.getPercentValue)(t,i,a,o);return(0,to.snapValueToStep)(n,i,a,o)}withChannelValue(e,t){let{minValue:i,maxValue:a}=this.getChannelRange(e);if(e in this){let o=this.clone();return o[e]=(0,to.clampValue)(t,i,a),o}throw Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:i}=e,a=t||this.getChannels().find(e=>e!==i),o=i||this.getChannels().find(e=>e!==a),n=this.getChannels().find(e=>e!==a&&e!==o);return{xChannel:a,yChannel:o,zChannel:n}}incrementChannel(e,t){let{minValue:i,maxValue:a,step:o}=this.getChannelRange(e),n=(0,to.snapValueToStep)((0,to.clampValue)(this.getChannelValue(e)+t,i,a),i,a,o);return this.withChannelValue(e,n)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return((e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let i in e)if(e[i]!==t[i])return!1;return!0})(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},aE=/^#[\da-f]+$/i,aI=/^rgba?\((.*)\)$/,aO=/[^#]/gi,aw=class e extends aC{constructor(e,t,i,a){super(),this.red=e,this.green=t,this.blue=i,this.alpha=a}static parse(t){let i=[];if(aE.test(t)&&[4,5,7,9].includes(t.length)){let e=(t.length<6?t.replace(aO,"$&$&"):t).slice(1).split("");for(;e.length>0;)i.push(parseInt(e.splice(0,2).join(""),16));i[3]=void 0!==i[3]?i[3]/255:void 0}let a=t.match(aI);return a?.[1]&&(i=a[1].split(",").map(e=>Number(e.trim())).map((e,t)=>(0,to.clampValue)(e,0,t<3?255:1))),i.length<3?void 0:new e(i[0],i[1],i[2],i[3]??1)}toString(e){switch(e){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(255*this.alpha).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw Error("Unsupported color conversion: rgb -> "+e)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){let e=this.red/255,t=this.green/255,i=this.blue/255,a=Math.min(e,t,i),o=Math.max(e,t,i),n=o-a,r=0;if(0!==n){switch(o){case e:r=(t-i)/n+6*(tNumber(e.trim().replace("%","")));return new e((0,to.mod)(t,360),(0,to.clampValue)(a,0,100),(0,to.clampValue)(o,0,100),(0,to.clampValue)(n??1,0,1))}}toString(e){switch(e){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${(0,to.toFixedNumber)(this.saturation,2)}%, ${(0,to.toFixedNumber)(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${(0,to.toFixedNumber)(this.saturation,2)}%, ${(0,to.toFixedNumber)(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw Error("Unsupported color conversion: hsl -> "+e)}}toHSB(){let e=this.saturation/100,t=this.lightness/100,i=t+e*Math.min(t,1-t);return e=0===i?0:2*(1-t/i),new az((0,to.toFixedNumber)(this.hue,2),(0,to.toFixedNumber)(100*e,2),(0,to.toFixedNumber)(100*i,2),(0,to.toFixedNumber)(this.alpha,2))}toRGB(){let e=this.hue,t=this.saturation/100,i=this.lightness/100,a=t*Math.min(i,1-i),o=(t,o=(t+e/30)%12)=>i-a*Math.max(Math.min(o-3,9-o,1),-1);return new aw(Math.round(255*o(0)),Math.round(255*o(8)),Math.round(255*o(4)),(0,to.toFixedNumber)(this.alpha,2))}clone(){return new e(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(e){switch(e){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let i=this.getChannelFormatOptions(e),a=this.getChannelValue(e);return("saturation"===e||"lightness"===e)&&(a/=100),new Intl.NumberFormat(t,i).format(a)}getChannelRange(e){switch(e){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw Error("Unknown color channel: "+e)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return e.colorChannels}};ak(aV,"colorChannels",["hue","saturation","lightness"]);var aP=aV,aR=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,aN=class e extends aC{constructor(e,t,i,a){super(),this.hue=e,this.saturation=t,this.brightness=i,this.alpha=a}static parse(t){let i;if(i=t.match(aR)){let[t,a,o,n]=(i[1]??i[2]).split(",").map(e=>Number(e.trim().replace("%","")));return new e((0,to.mod)(t,360),(0,to.clampValue)(a,0,100),(0,to.clampValue)(o,0,100),(0,to.clampValue)(n??1,0,1))}}toString(e){switch(e){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${(0,to.toFixedNumber)(this.saturation,2)}%, ${(0,to.toFixedNumber)(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${(0,to.toFixedNumber)(this.saturation,2)}%, ${(0,to.toFixedNumber)(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw Error("Unsupported color conversion: hsb -> "+e)}}toHSL(){let e=this.saturation/100,t=this.brightness/100,i=t*(1-e/2);return e=0===i||1===i?0:(t-i)/Math.min(i,1-i),new aP((0,to.toFixedNumber)(this.hue,2),(0,to.toFixedNumber)(100*e,2),(0,to.toFixedNumber)(100*i,2),(0,to.toFixedNumber)(this.alpha,2))}toRGB(){let e=this.hue,t=this.saturation/100,i=this.brightness/100,a=(a,o=(a+e/60)%6)=>i-t*i*Math.max(Math.min(o,4-o,1),0);return new aw(Math.round(255*a(5)),Math.round(255*a(3)),Math.round(255*a(1)),(0,to.toFixedNumber)(this.alpha,2))}clone(){return new e(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(e){switch(e){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let i=this.getChannelFormatOptions(e),a=this.getChannelValue(e);return("saturation"===e||"brightness"===e)&&(a/=100),new Intl.NumberFormat(t,i).format(a)}getChannelRange(e){switch(e){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw Error("Unknown color channel: "+e)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return e.colorChannels}};ak(aN,"colorChannels",["hue","saturation","brightness"]);var az=aN,a_=(e=>{let t=new Map,i=e.split(",");for(let e=0;e{if(a_.has(e))return aA(a_.get(e));let t=aw.parse(e)||az.parse(e)||aP.parse(e);if(!t){let t=Error("Invalid color value: "+e);throw Error.captureStackTrace?.(t,aA),t}return t},aF=(0,ta.createAnatomy)("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);aF.build();var aD=e=>e.getById(e.ids?.content??`color-picker:${e.id}:content`),aL=e=>e.getById(e.ids?.hiddenInput??`color-picker:${e.id}:hidden-input`),aM=e=>e.getById(e.ids?.trigger??`color-picker:${e.id}:trigger`);RegExp("^(hsba|hsla|rgba)$");var aW=/^[0-9a-fA-F]{3,8}$/,{and:aB}=(0,i$.createGuards)();function aH(e,t,i){let a=[...(0,tI.queryAll)(aD(e),"input[data-channel]"),...(0,tI.queryAll)(e.getById(e.ids?.control??`color-picker:${e.id}:control`),"input[data-channel]")];(0,tI.raf)(()=>{a.forEach(e=>{let a=e.dataset.channel;(0,tI.setElementValue)(e,function(e,t){if(null==t)return"";if("hex"===t)return e.toString("hex");if("css"===t)return e.toString("css");if(t in e)return e.getChannelValue(t).toString();let i="hsla"===e.getFormat();switch(t){case"hue":return i?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return i?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(t).toString();default:return e.getChannelValue(t).toString()}}(i||t,a))})})}(0,i$.createMachine)({props:({props:e})=>({dir:"ltr",defaultValue:aA("#000000"),defaultFormat:"rgba",openAutoFocus:!0,...e,positioning:{placement:"bottom",...e.positioning}}),initialState:({prop:e})=>e("open")||e("defaultOpen")||e("inline")?"open":"idle",context:({prop:e,bindable:t,getContext:i})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:(e,t)=>e.toString("css")===t?.toString("css"),hash:e=>e.toString("css"),onChange(t){let a=i(),o=t.toString(a.get("format"));e("onValueChange")?.({value:t,valueAsString:o})}})),format:t(()=>({defaultValue:e("defaultFormat"),value:e("format"),onChange(t){e("onFormatChange")?.({format:t})}})),activeId:t(()=>({defaultValue:null})),activeChannel:t(()=>({defaultValue:null})),activeOrientation:t(()=>({defaultValue:null})),fieldsetDisabled:t(()=>({defaultValue:!1})),restoreFocus:t(()=>({defaultValue:!0})),currentPlacement:t(()=>({defaultValue:void 0}))}),computed:{rtl:({prop:e})=>"rtl"===e("dir"),disabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),interactive:({prop:e})=>!(e("disabled")||e("readOnly")),valueAsString:({context:e})=>e.get("value").toString(e.get("format")),areaValue:({context:e})=>{let t=e.get("format").startsWith("hsl")?"hsla":"hsba";return e.get("value").toFormat(t)}},effects:["trackFormControl"],watch({prop:e,context:t,action:i,track:a}){a([()=>t.hash("value")],()=>{i(["syncInputElements","dispatchChangeEvent"])}),a([()=>t.get("format")],()=>{i(["syncFormatSelectElement"])}),a([()=>e("open")],()=>{i(["toggleVisibility"])})},on:{"VALUE.SET":{actions:["setValue"]},"FORMAT.SET":{actions:["setFormat"]},"CHANNEL_INPUT.CHANGE":{actions:["setChannelColorFromInput"]},"EYEDROPPER.CLICK":{actions:["openEyeDropper"]},"SWATCH_TRIGGER.CLICK":{actions:["setValue"]}},states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"CHANNEL_INPUT.FOCUS":{target:"focused",actions:["setActiveChannel"]}}},focused:{tags:["closed","focused"],on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"CHANNEL_INPUT.FOCUS":{actions:["setActiveChannel"]},"CHANNEL_INPUT.BLUR":{target:"idle",actions:["setChannelColorFromInput"]},"TRIGGER.BLUR":{target:"idle"}}},open:{tags:["open"],effects:["trackPositioning","trackDismissableElement"],on:{"CONTROLLED.CLOSE":[{guard:"shouldRestoreFocus",target:"focused",actions:["setReturnFocus"]},{target:"idle"}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"AREA.POINTER_DOWN":{target:"open:dragging",actions:["setActiveChannel","setAreaColorFromPoint","focusAreaThumb"]},"AREA.FOCUS":{actions:["setActiveChannel"]},"CHANNEL_SLIDER.POINTER_DOWN":{target:"open:dragging",actions:["setActiveChannel","setChannelColorFromPoint","focusChannelThumb"]},"CHANNEL_SLIDER.FOCUS":{actions:["setActiveChannel"]},"AREA.ARROW_LEFT":{actions:["decrementAreaXChannel"]},"AREA.ARROW_RIGHT":{actions:["incrementAreaXChannel"]},"AREA.ARROW_UP":{actions:["incrementAreaYChannel"]},"AREA.ARROW_DOWN":{actions:["decrementAreaYChannel"]},"AREA.PAGE_UP":{actions:["incrementAreaXChannel"]},"AREA.PAGE_DOWN":{actions:["decrementAreaXChannel"]},"CHANNEL_SLIDER.ARROW_LEFT":{actions:["decrementChannel"]},"CHANNEL_SLIDER.ARROW_RIGHT":{actions:["incrementChannel"]},"CHANNEL_SLIDER.ARROW_UP":{actions:["incrementChannel"]},"CHANNEL_SLIDER.ARROW_DOWN":{actions:["decrementChannel"]},"CHANNEL_SLIDER.PAGE_UP":{actions:["incrementChannel"]},"CHANNEL_SLIDER.PAGE_DOWN":{actions:["decrementChannel"]},"CHANNEL_SLIDER.HOME":{actions:["setChannelToMin"]},"CHANNEL_SLIDER.END":{actions:["setChannelToMax"]},"CHANNEL_INPUT.BLUR":{actions:["setChannelColorFromInput"]},INTERACT_OUTSIDE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"shouldRestoreFocus",target:"focused",actions:["invokeOnClose","setReturnFocus"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"SWATCH_TRIGGER.CLICK":[{guard:aB("isOpenControlled","closeOnSelect"),actions:["setValue","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["setValue","invokeOnClose","setReturnFocus"]},{actions:["setValue"]}]}},"open:dragging":{tags:["open"],exit:["clearActiveChannel"],effects:["trackPointerMove","disableTextSelection","trackPositioning","trackDismissableElement"],on:{"CONTROLLED.CLOSE":[{guard:"shouldRestoreFocus",target:"focused",actions:["setReturnFocus"]},{target:"idle"}],"AREA.POINTER_MOVE":{actions:["setAreaColorFromPoint","focusAreaThumb"]},"AREA.POINTER_UP":{target:"open",actions:["invokeOnChangeEnd"]},"CHANNEL_SLIDER.POINTER_MOVE":{actions:["setChannelColorFromPoint","focusChannelThumb"]},"CHANNEL_SLIDER.POINTER_UP":{target:"open",actions:["invokeOnChangeEnd"]},INTERACT_OUTSIDE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"shouldRestoreFocus",target:"focused",actions:["invokeOnClose","setReturnFocus"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}]}}},implementations:{guards:{closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>null!=e("open")||!!e("inline"),shouldRestoreFocus:({context:e})=>!!e.get("restoreFocus")},effects:{trackPositioning({context:e,prop:t,scope:i}){if(!t("inline"))return e.get("currentPlacement")||e.set("currentPlacement",t("positioning")?.placement),iH(aM(i),()=>i.getById(i.ids?.positioner??`color-picker:${i.id}:positioner`),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})},trackDismissableElement({context:e,scope:t,prop:i,send:a}){if(!i("inline"))return iJ(()=>aD(t),{type:"popover",exclude:aM(t),defer:!0,onInteractOutside(t){i("onInteractOutside")?.(t),t.defaultPrevented||e.set("restoreFocus",!(t.detail.focusable||t.detail.contextmenu))},onPointerDownOutside:i("onPointerDownOutside"),onFocusOutside:i("onFocusOutside"),onDismiss(){a({type:"INTERACT_OUTSIDE"})}})},trackFormControl({context:e,scope:t,send:i}){let a=aL(t);return(0,tI.trackFormControl)(a,{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){i({type:"VALUE.SET",value:e.initial("value"),src:"form.reset"})}})},trackPointerMove:({context:e,scope:t,event:i,send:a})=>(0,tI.trackPointerMove)(t.getDoc(),{onPointerMove({point:t}){a({type:"area"===e.get("activeId")?"AREA.POINTER_MOVE":"CHANNEL_SLIDER.POINTER_MOVE",point:t,format:i.format})},onPointerUp(){a({type:"area"===e.get("activeId")?"AREA.POINTER_UP":"CHANNEL_SLIDER.POINTER_UP"})}}),disableTextSelection:({scope:e})=>(0,tI.disableTextSelection)({doc:e.getDoc(),target:aD(e)})},actions:{openEyeDropper({scope:e,context:t}){let i=e.getWin();"EyeDropper"in i&&new i.EyeDropper().open().then(({sRGBHex:e})=>{let i=t.get("value").getFormat(),a=aA(e).toFormat(i);t.set("value",a)}).catch(()=>void 0)},setActiveChannel({context:e,event:t}){e.set("activeId",t.id),t.channel&&e.set("activeChannel",t.channel),t.orientation&&e.set("activeOrientation",t.orientation)},clearActiveChannel({context:e}){e.set("activeChannel",null),e.set("activeId",null),e.set("activeOrientation",null)},setAreaColorFromPoint({context:e,event:t,computed:i,scope:a,prop:o}){let n=t.format?e.get("value").toFormat(t.format):i("areaValue"),{xChannel:r,yChannel:l}=t.channel||e.get("activeChannel"),s=((e,t,i)=>{let a=e.getById(e.ids?.area??`color-picker:${e.id}:area`);if(!a)return;let{getPercentValue:o}=(0,tI.getRelativePoint)(t,a);return{x:o({dir:i,orientation:"horizontal"}),y:o({orientation:"vertical"})}})(a,t.point,o("dir"));if(!s)return;let d=n.getChannelPercentValue(r,s.x),c=n.getChannelPercentValue(l,1-s.y),u=n.withChannelValue(r,d).withChannelValue(l,c);e.set("value",u)},setChannelColorFromPoint({context:e,event:t,computed:i,scope:a,prop:o}){let n=t.channel||e.get("activeId"),r=t.format?e.get("value").toFormat(t.format):i("areaValue"),l=((e,t,i,a)=>{let o=e.getById(e.ids?.channelSliderTrack?.(i)??`color-picker:${e.id}:slider-track:${i}`);if(!o)return;let{getPercentValue:n}=(0,tI.getRelativePoint)(t,o);return{x:n({dir:a,orientation:"horizontal"}),y:n({orientation:"vertical"})}})(a,t.point,n,o("dir"));if(!l)return;let s="horizontal"===(e.get("activeOrientation")||"horizontal")?l.x:l.y,d=r.getChannelPercentValue(n,s),c=r.withChannelValue(n,d);e.set("value",c)},setValue({context:e,event:t}){e.set("value",t.value)},setFormat({context:e,event:t}){e.set("format",t.format)},dispatchChangeEvent({scope:e,computed:t}){(0,tI.dispatchInputValueEvent)(aL(e),{value:t("valueAsString")})},syncInputElements({context:e,scope:t}){aH(t,e.get("value"))},invokeOnChangeEnd({context:e,prop:t,computed:i}){t("onValueChangeEnd")?.({value:e.get("value"),valueAsString:i("valueAsString")})},setChannelColorFromInput({context:e,event:t,scope:i,prop:a}){let o,{channel:n,isTextField:r,value:l}=t,s=e.get("value").getChannelValue("alpha");if("alpha"===n){let t=parseFloat(l);t=Number.isNaN(t)?s:t,o=e.get("value").withChannelValue("alpha",t)}else if(r)o=(0,to.tryCatch)(()=>aA("hex"===n?function(e){return e.startsWith("#")?e:aW.test(e)?`#${e}`:e}(l):l).withChannelValue("alpha",s),()=>e.get("value"));else{let t=e.get("value").toFormat(e.get("format")),i=Number.isNaN(l)?t.getChannelValue(n):l;o=t.withChannelValue(n,i)}aH(i,e.get("value"),o),e.set("value",o),a("onValueChangeEnd")?.({value:o,valueAsString:o.toString(e.get("format"))})},incrementChannel({context:e,event:t}){let i=e.get("value").incrementChannel(t.channel,t.step);e.set("value",i)},decrementChannel({context:e,event:t}){let i=e.get("value").decrementChannel(t.channel,t.step);e.set("value",i)},incrementAreaXChannel({context:e,event:t,computed:i}){let{xChannel:a}=t.channel,o=i("areaValue").incrementChannel(a,t.step);e.set("value",o)},decrementAreaXChannel({context:e,event:t,computed:i}){let{xChannel:a}=t.channel,o=i("areaValue").decrementChannel(a,t.step);e.set("value",o)},incrementAreaYChannel({context:e,event:t,computed:i}){let{yChannel:a}=t.channel,o=i("areaValue").incrementChannel(a,t.step);e.set("value",o)},decrementAreaYChannel({context:e,event:t,computed:i}){let{yChannel:a}=t.channel,o=i("areaValue").decrementChannel(a,t.step);e.set("value",o)},setChannelToMax({context:e,event:t}){let i=e.get("value"),a=i.getChannelRange(t.channel),o=i.withChannelValue(t.channel,a.maxValue);e.set("value",o)},setChannelToMin({context:e,event:t}){let i=e.get("value"),a=i.getChannelRange(t.channel),o=i.withChannelValue(t.channel,a.minValue);e.set("value",o)},focusAreaThumb({scope:e}){(0,tI.raf)(()=>{e.getById(e.ids?.areaThumb??`color-picker:${e.id}:area-thumb`)?.focus({preventScroll:!0})})},focusChannelThumb({event:e,scope:t}){(0,tI.raf)(()=>{var i;(i=e.channel,t.getById(t.ids?.channelSliderThumb?.(i)??`color-picker:${t.id}:slider-thumb:${i}`))?.focus({preventScroll:!0})})},setInitialFocus({prop:e,scope:t}){e("openAutoFocus")&&(0,tI.raf)(()=>{let i=(0,tI.getInitialFocus)({root:aD(t),getInitialEl:e("initialFocusEl")});i?.focus({preventScroll:!0})})},setReturnFocus({scope:e}){(0,tI.raf)(()=>{aM(e)?.focus({preventScroll:!0})})},syncFormatSelectElement({context:e,scope:t}){!function(e,t){let i=e.getById(e.ids?.formatSelect??`color-picker:${e.id}:format-select`);i&&(0,tI.raf)(()=>(0,tI.setElementValue)(i,t))}(t,e.get("format"))},invokeOnOpen({prop:e,context:t}){e("inline")||e("onOpenChange")?.({open:!0,value:t.get("value")})},invokeOnClose({prop:e,context:t}){e("inline")||e("onOpenChange")?.({open:!1,value:t.get("value")})},toggleVisibility({prop:e,event:t,send:i}){i({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})}}}});var a$=iQ()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","inline","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]);(0,to.createSplitProps)(a$);var aj=iQ()(["xChannel","yChannel"]);(0,to.createSplitProps)(aj);var aG=iQ()(["channel","orientation"]);(0,to.createSplitProps)(aG);var aU=iQ()(["value","disabled"]);(0,to.createSplitProps)(aU);var aq=iQ()(["value","respectAlpha"]);(0,to.createSplitProps)(aq);var aY=iQ()(["size"]);(0,to.createSplitProps)(aY);let aK=aF.extendWith("view");var aX=new WeakMap,aZ=new WeakMap,aJ={},aQ=0,a0=e=>e&&(e.host||a0(e.parentNode)),a1=new Set(["script","output","status","next-route-announcer"]),a2=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body;function a5(e,t={}){let{defer:i=!0}=t,a=[];return a.push((i?e=>{let t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)}:e=>e())(()=>{let t=("function"==typeof e?e():e).filter(Boolean);0!==t.length&&a.push(((e,t=a2(e),i="data-aria-hidden",a=!0)=>{if(t)return((e,t)=>{let{parentNode:i,markerName:a,controlAttribute:o,followControlledElements:n=!0}=t,r=(Array.isArray(e)?e:[e]).map(e=>{if(i.contains(e))return e;let t=a0(e);return t&&i.contains(t)?t:(console.error("[zag-js > ariaHidden] target",e,"in not contained inside",i,". Doing nothing"),null)}).filter(e=>!!e);aJ[a]||(aJ[a]=new WeakMap);let l=aJ[a],s=[],d=new Set,c=new Set(r),u=e=>{!e||d.has(e)||(d.add(e),u(e.parentNode))};r.forEach(e=>{u(e),n&&(0,tI.isHTMLElement)(e)&&(0,tI.findControlledElements)(e,e=>{u(e)})});let g=e=>{!e||c.has(e)||Array.prototype.forEach.call(e.children,e=>{if(d.has(e))g(e);else try{if(a1.has(e.localName)||"status"===e.role||e.hasAttribute("aria-live")||e.matches("[data-live-announcer]"))return;let t=e.getAttribute(o),i="true"===t,n=(aX.get(e)||0)+1,r=(l.get(e)||0)+1;aX.set(e,n),l.set(e,r),s.push(e),1===n&&i&&aZ.set(e,!0),1===r&&e.setAttribute(a,""),i||e.setAttribute(o,"true")}catch(t){console.error("[zag-js > ariaHidden] cannot operate on ",e,t)}})};return g(i),d.clear(),aQ++,()=>{s.forEach(e=>{let t=aX.get(e)-1,i=l.get(e)-1;aX.set(e,t),l.set(e,i),t||(aZ.has(e)||e.removeAttribute(o),aZ.delete(e)),i||e.removeAttribute(a)}),--aQ||(aX=new WeakMap,aX=new WeakMap,aZ=new WeakMap,aJ={})}})(e,{parentNode:t,markerName:i,controlAttribute:"aria-hidden",followControlledElements:a})})(t))})),()=>{a.forEach(e=>e?.())}}var a3=Object.defineProperty,a4=(e,t,i)=>{let a;return(a="symbol"!=typeof t?t+"":t)in e?a3(e,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[a]=i},a6={activateTrap(e,t){if(e.length>0){let i=e[e.length-1];i!==t&&i.pause()}let i=e.indexOf(t);-1===i||e.splice(i,1),e.push(t)},deactivateTrap(e,t){let i=e.indexOf(t);-1!==i&&e.splice(i,1),e.length>0&&e[e.length-1].unpause()}},a8=[],a7=class{constructor(e,t){a4(this,"trapStack"),a4(this,"config"),a4(this,"doc"),a4(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),a4(this,"portalContainers",new Set),a4(this,"listenerCleanups",[]),a4(this,"handleFocus",e=>{let t=(0,tI.getEventTarget)(e),i=this.findContainerIndex(t,e)>=0;if(i||(0,tI.isDocument)(t))i&&(this.state.mostRecentlyFocusedNode=t);else{let t;e.stopImmediatePropagation();let i=!0;if(this.state.mostRecentlyFocusedNode)if((0,tI.getTabIndex)(this.state.mostRecentlyFocusedNode)>0){let e=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:a}=this.state.containerGroups[e];if(a.length>0){let e=a.findIndex(e=>e===this.state.mostRecentlyFocusedNode);e>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?e+1=0&&(t=a[e-1],i=!1))}}else this.state.containerGroups.some(e=>e.tabbableNodes.some(e=>(0,tI.getTabIndex)(e)>0))||(i=!1);else i=!1;i&&(t=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),t?this.tryFocus(t):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),a4(this,"handlePointerDown",e=>{let t=(0,tI.getEventTarget)(e);this.findContainerIndex(t,e)>=0||(oe(this.config.clickOutsideDeactivates,e)?this.deactivate({returnFocus:this.config.returnFocusOnDeactivate}):oe(this.config.allowOutsideClick,e)||e.preventDefault())}),a4(this,"handleClick",e=>{let t=(0,tI.getEventTarget)(e);this.findContainerIndex(t,e)>=0||oe(this.config.clickOutsideDeactivates,e)||oe(this.config.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())}),a4(this,"handleTabKey",e=>{if(this.config.isKeyForward(e)||this.config.isKeyBackward(e)){this.state.recentNavEvent=e;let t=this.config.isKeyBackward(e),i=this.findNextNavNode({event:e,isBackward:t});i&&(a9(e)&&e.preventDefault(),this.tryFocus(i))}}),a4(this,"handleEscapeKey",e=>{ot(e)&&!1!==oe(this.config.escapeDeactivates,e)&&(e.preventDefault(),this.deactivate())}),a4(this,"_mutationObserver"),a4(this,"setupMutationObserver",()=>{let e=this.doc.defaultView||window;this._mutationObserver=new e.MutationObserver(e=>{e.some(e=>Array.from(e.removedNodes).some(e=>e===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode()),e.some(e=>"attributes"===e.type&&("aria-controls"===e.attributeName||"aria-expanded"===e.attributeName)||"childList"===e.type&&e.addedNodes.length>0&&Array.from(e.addedNodes).some(e=>e.nodeType===Node.ELEMENT_NODE&&(!!(0,tI.hasControllerElements)(e)||!(!e.id||this.state.containers.some(t=>t.contains(e)))&&(0,tI.isControlledByExpandedController)(e))))&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())})}),a4(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map(e=>{this._mutationObserver?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}),this.portalContainers.forEach(e=>{this.observePortalContainer(e)}))}),a4(this,"getInitialFocusNode",()=>{let e=this.getNodeForOption("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!(0,tI.isFocusable)(e)){let t=(0,tI.getActiveElement)(this.doc);if(t&&this.findContainerIndex(t)>=0)e=t;else{let t=this.state.tabbableGroups[0];e=t&&t.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else null===e&&(e=this.getNodeForOption("fallbackFocus"));if(!e)throw Error("Your focus-trap needs to have at least one focusable element");return e.isConnected||(e=this.getNodeForOption("fallbackFocus")),e}),a4(this,"tryFocus",e=>{if(!1!==e&&e!==(0,tI.getActiveElement)(this.doc)){if(!e||!e.focus)return void this.tryFocus(this.getInitialFocusNode());e.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=e,oa(e)&&e.select()}}),a4(this,"deactivate",e=>{if(!this.state.active)return this;let t={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...e};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),a6.deactivateTrap(this.trapStack,this),this.portalContainers.clear();let i=this.getOption(t,"onDeactivate"),a=this.getOption(t,"onPostDeactivate"),o=this.getOption(t,"checkCanReturnFocus"),n=this.getOption(t,"returnFocus","returnFocusOnDeactivate");i?.();let r=()=>{oi(()=>{if(n){let e=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(e)}a?.()})};return n&&o?o(this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation)).then(r,r):r(),this}),a4(this,"pause",e=>{if(this.state.paused||!this.state.active)return this;let t=this.getOption(e,"onPause"),i=this.getOption(e,"onPostPause");return this.state.paused=!0,t?.(),this.removeListeners(),this.updateObservedNodes(),i?.(),this}),a4(this,"unpause",e=>{if(!this.state.paused||!this.state.active)return this;let t=this.getOption(e,"onUnpause"),i=this.getOption(e,"onPostUnpause");return this.state.paused=!1,t?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i?.(),this}),a4(this,"updateContainerElements",e=>(this.state.containers=Array.isArray(e)?e.filter(Boolean):[e].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),a4(this,"getReturnFocusNode",e=>{let t=this.getNodeForOption("setReturnFocus",{params:[e]});return t||!1!==t&&e}),a4(this,"getOption",(e,t,i)=>e&&void 0!==e[t]?e[t]:this.config[i||t]),a4(this,"getNodeForOption",(e,{hasFallback:t=!1,params:i=[]}={})=>{let a=this.config[e];if("function"==typeof a&&(a=a(...i)),!0===a&&(a=void 0),!a){if(void 0===a||!1===a)return a;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}let o=a;if("string"==typeof a){try{o=this.doc.querySelector(a)}catch(t){throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!o&&!t)throw Error(`\`${e}\` as selector refers to no known node`)}return o}),a4(this,"findNextNavNode",e=>{let{event:t,isBackward:i=!1}=e,a=e.target||(0,tI.getEventTarget)(t);this.updateTabbableNodes();let o=null;if(this.state.tabbableGroups.length>0){let e=this.findContainerIndex(a,t),n=e>=0?this.state.containerGroups[e]:void 0;if(e<0)o=i?this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:this.state.tabbableGroups[0].firstTabbableNode;else if(i){let i=this.state.tabbableGroups.findIndex(({firstTabbableNode:e})=>a===e);if(i<0&&(n?.container===a||(0,tI.isFocusable)(a)&&!(0,tI.isTabbable)(a)&&!n?.nextTabbableNode(a,!1))&&(i=e),i>=0){let e=0===i?this.state.tabbableGroups.length-1:i-1,t=this.state.tabbableGroups[e];o=(0,tI.getTabIndex)(a)>=0?t.lastTabbableNode:t.lastDomTabbableNode}else a9(t)||(o=n?.nextTabbableNode(a,!1))}else{let i=this.state.tabbableGroups.findIndex(({lastTabbableNode:e})=>a===e);if(i<0&&(n?.container===a||(0,tI.isFocusable)(a)&&!(0,tI.isTabbable)(a)&&!n?.nextTabbableNode(a))&&(i=e),i>=0){let e=i===this.state.tabbableGroups.length-1?0:i+1,t=this.state.tabbableGroups[e];o=(0,tI.getTabIndex)(a)>=0?t.firstTabbableNode:t.firstDomTabbableNode}else a9(t)||(o=n?.nextTabbableNode(a))}}else o=this.getNodeForOption("fallbackFocus");return o}),this.trapStack=t.trapStack||a8;const i={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward:e=>a9(e)&&!e.shiftKey,isKeyBackward:e=>a9(e)&&e.shiftKey,...t};this.doc=i.document||(0,tI.getDocument)(Array.isArray(e)?e[0]:e),this.config=i,this.updateContainerElements(e),this.setupMutationObserver()}addPortalContainer(e){let t=e.parentElement;t&&!this.portalContainers.has(t)&&(this.portalContainers.add(t),this.state.active&&!this.state.paused&&this.observePortalContainer(t))}observePortalContainer(e){this._mutationObserver?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}updatePortalContainers(){this.config.followControlledElements&&this.state.containers.forEach(e=>{(0,tI.getControlledElements)(e).forEach(e=>{this.addPortalContainer(e)})})}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){let i="function"==typeof t?.composedPath?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:t,tabbableNodes:a})=>t.contains(e)||i?.includes(t)||a.find(t=>t===e)||this.isControlledElement(t,e))}isControlledElement(e,t){return!!this.config.followControlledElements&&(0,tI.isControlledElement)(e,t)}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{let t=(0,tI.getTabbables)(e,{getShadowRoot:this.config.getShadowRoot}),i=(0,tI.getFocusables)(e,{getShadowRoot:this.config.getShadowRoot}),a=t[0],o=t[t.length-1],n=!1;for(let e=0;e0){n=!0;break}return{container:e,tabbableNodes:t,focusableNodes:i,posTabIndexesFound:n,firstTabbableNode:a,lastTabbableNode:o,firstDomTabbableNode:a,lastDomTabbableNode:o,nextTabbableNode:function(e,a=!0){let o=t.indexOf(e);if(o>=0)return t[o+(a?1:-1)];let n=i.indexOf(e);if(!(n<0)){if(a){for(let e=n+1;e=0;e--)if((0,tI.isTabbable)(i[e]))return i[e]}}}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return a6.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?oi(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push((0,tI.addDomEvent)(this.doc,"focusin",this.handleFocus,!0),(0,tI.addDomEvent)(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),(0,tI.addDomEvent)(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),(0,tI.addDomEvent)(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),(0,tI.addDomEvent)(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),(0,tI.addDomEvent)(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;let t=this.getOption(e,"onActivate"),i=this.getOption(e,"onPostActivate"),a=this.getOption(e,"checkCanFocusTrap");a||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=(0,tI.getActiveElement)(this.doc),t?.();let o=()=>{a&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i?.()};return a?a(this.state.containers.concat()).then(o,o):o(),this}},a9=e=>"Tab"===e.key,oe=(e,...t)=>"function"==typeof e?e(...t):e,ot=e=>!e.isComposing&&"Escape"===e.key,oi=e=>setTimeout(e,0),oa=e=>"input"===e.localName&&"select"in e&&"function"==typeof e.select;function oo(e,t={}){let i,a=(0,tI.raf)(()=>{let a="function"==typeof e?e():e;if(a){i=new a7(a,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:a,...t,document:(0,tI.getDocument)(a)});try{i.activate()}catch{}}});return function(){i?.deactivate(),a()}}var on="data-scroll-lock";function or(e){let t=(0,tI.getComputedStyle)(e),i=t?.scrollbarGutter;return"stable"===i||i?.startsWith("stable ")===!0}function ol(e){let t,i=e??document,a=i.defaultView??window,{documentElement:o,body:n}=i;if(n.hasAttribute(on))return;let r=or(o)||or(n),l=a.innerWidth-o.clientWidth;n.setAttribute(on,"");let s=Math.round(o.getBoundingClientRect().left)+o.scrollLeft?"paddingLeft":"paddingRight",d=[(0,tI.setStyleProperty)(o,"--scrollbar-width",`${l}px`),(0,tI.isIos)()?(()=>{let{scrollX:e,scrollY:t,visualViewport:i}=a,o=i?.offsetLeft??0,d=i?.offsetTop??0,c={position:"fixed",overflow:"hidden",top:`${-(t-Math.floor(d))}px`,left:`${-(e-Math.floor(o))}px`,right:"0"};!r&&l>0&&(c[s]=`${l}px`);let u=(0,tI.setStyle)(n,c);return()=>{u?.(),a.scrollTo({left:e,top:t,behavior:"instant"})}})():(t={overflow:"hidden"},!r&&l>0&&(t[s]=`${l}px`),(0,tI.setStyle)(n,t))];return()=>{d.forEach(e=>e?.()),n.removeAttribute(on)}}var os=(0,ta.createAnatomy)("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger");os.build();var od=e=>e.getById(e.ids?.content??`dialog:${e.id}:content`);(0,i$.createMachine)({props({props:e,scope:t}){let i="alertdialog"===e.role,a=i?()=>t.getById(t.ids?.closeTrigger??`dialog:${t.id}:close`):void 0,o="boolean"!=typeof e.modal||e.modal;return{role:"dialog",modal:o,trapFocus:o,preventScroll:o,closeOnInteractOutside:!i,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:a,...e}},initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({bindable:e})=>({rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}),watch({track:e,action:t,prop:i}){e([()=>i("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>void 0!=e("open")},effects:{trackDismissableElement:({scope:e,send:t,prop:i})=>iJ(()=>od(e),{type:"dialog",defer:!0,pointerBlocking:i("modal"),exclude:[e.getById(e.ids?.trigger??`dialog:${e.id}:trigger`)],onInteractOutside(e){i("onInteractOutside")?.(e),i("closeOnInteractOutside")||e.preventDefault()},persistentElements:i("persistentElements"),onFocusOutside:i("onFocusOutside"),onPointerDownOutside:i("onPointerDownOutside"),onRequestDismiss:i("onRequestDismiss"),onEscapeKeyDown(e){i("onEscapeKeyDown")?.(e),i("closeOnEscape")||e.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}}),preventScroll({scope:e,prop:t}){if(t("preventScroll"))return ol(e.getDoc())},trapFocus({scope:e,prop:t}){if(t("trapFocus"))return oo(()=>od(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:e=>t("finalFocusEl")?.()??e,getShadowRoot:!0})},hideContentBelow({scope:e,prop:t}){if(t("modal"))return a5(()=>[od(e)],{defer:!0})}},actions:{checkRenderedElements({context:e,scope:t}){(0,tI.raf)(()=>{e.set("rendered",{title:!!t.getById(t.ids?.title??`dialog:${t.id}:title`),description:!!t.getById(t.ids?.description??`dialog:${t.id}:description`)})})},syncZIndex({scope:e}){(0,tI.raf)(()=>{let t=od(e);if(!t)return;let i=(0,tI.getComputedStyle)(t);[e.getById(e.ids?.positioner??`dialog:${e.id}:positioner`),e.getById(e.ids?.backdrop??`dialog:${e.id}:backdrop`)].forEach(e=>{e?.style.setProperty("--z-index",i.zIndex),e?.style.setProperty("--layer-index",i.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},toggleVisibility({prop:e,send:t,event:i}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:i})}}}});var oc=iQ()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);(0,to.createSplitProps)(oc);var ou=(0,ta.createAnatomy)("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");ou.build();var og=e=>e.getById(e.ids?.input??`editable:${e.id}:input`);(0,i$.createMachine)({props:({props:e})=>({activationMode:"focus",submitMode:"both",defaultValue:"",selectOnFocus:!0,...e,translations:{input:"editable input",edit:"edit",submit:"submit",cancel:"cancel",...e.translations}}),initialState:({prop:e})=>e("edit")||e("defaultEdit")?"edit":"preview",entry:["focusInputIfNeeded"],context:({bindable:e,prop:t})=>({value:e(()=>({defaultValue:t("defaultValue"),value:t("value"),onChange:e=>t("onValueChange")?.({value:e})})),previousValue:e(()=>({defaultValue:""}))}),watch({track:e,action:t,context:i,prop:a}){e([()=>i.get("value")],()=>{t(["syncInputValue"])}),e([()=>a("edit")],()=>{t(["toggleEditing"])})},computed:{submitOnEnter({prop:e}){let t=e("submitMode");return"both"===t||"enter"===t},submitOnBlur({prop:e}){let t=e("submitMode");return"both"===t||"blur"===t},isInteractive:({prop:e})=>!(e("disabled")||e("readOnly"))},on:{"VALUE.SET":{actions:["setValue"]}},states:{preview:{entry:["blurInput"],on:{"CONTROLLED.EDIT":{target:"edit",actions:["setPreviousValue","focusInput"]},EDIT:[{guard:"isEditControlled",actions:["invokeOnEdit"]},{target:"edit",actions:["setPreviousValue","focusInput","invokeOnEdit"]}]}},edit:{effects:["trackInteractOutside"],entry:["syncInputValue"],on:{"CONTROLLED.PREVIEW":[{guard:"isSubmitEvent",target:"preview",actions:["setPreviousValue","restoreFocus","invokeOnSubmit"]},{target:"preview",actions:["revertValue","restoreFocus","invokeOnCancel"]}],CANCEL:[{guard:"isEditControlled",actions:["invokeOnPreview"]},{target:"preview",actions:["revertValue","restoreFocus","invokeOnCancel","invokeOnPreview"]}],SUBMIT:[{guard:"isEditControlled",actions:["invokeOnPreview"]},{target:"preview",actions:["setPreviousValue","restoreFocus","invokeOnSubmit","invokeOnPreview"]}]}}},implementations:{guards:{isEditControlled:({prop:e})=>void 0!=e("edit"),isSubmitEvent:({event:e})=>e.previousEvent?.type==="SUBMIT"},effects:{trackInteractOutside:({send:e,scope:t,prop:i,computed:a})=>iq(og(t),{exclude:e=>[t.getById(t.ids?.cancelTrigger??`editable:${t.id}:cancel`),t.getById(t.ids?.submitTrigger??`editable:${t.id}:submit`)].some(t=>(0,tI.contains)(t,e)),onFocusOutside:i("onFocusOutside"),onPointerDownOutside:i("onPointerDownOutside"),onInteractOutside(t){if(i("onInteractOutside")?.(t),t.defaultPrevented)return;let{focusable:o}=t.detail;e({type:a("submitOnBlur")?"SUBMIT":"CANCEL",src:"interact-outside",focusable:o})}})},actions:{restoreFocus({event:e,scope:t,prop:i}){e.focusable||(0,tI.raf)(()=>{let e=i("finalFocusEl")?.()??t.getById(t.ids?.editTrigger??`editable:${t.id}:edit`);e?.focus({preventScroll:!0})})},clearValue({context:e}){e.set("value","")},focusInputIfNeeded({action:e,prop:t}){(t("edit")||t("defaultEdit"))&&e(["focusInput"])},focusInput({scope:e,prop:t}){(0,tI.raf)(()=>{let i=og(e);i&&(t("selectOnFocus")?i.select():i.focus({preventScroll:!0}))})},invokeOnCancel({prop:e,context:t}){let i=t.get("previousValue");e("onValueRevert")?.({value:i})},invokeOnSubmit({prop:e,context:t}){let i=t.get("value");e("onValueCommit")?.({value:i})},invokeOnEdit({prop:e}){e("onEditChange")?.({edit:!0})},invokeOnPreview({prop:e}){e("onEditChange")?.({edit:!1})},toggleEditing({prop:e,send:t,event:i}){t({type:e("edit")?"CONTROLLED.EDIT":"CONTROLLED.PREVIEW",previousEvent:i})},syncInputValue({context:e,scope:t}){let i=og(t);i&&(0,tI.setElementValue)(i,e.get("value"))},setValue({context:e,prop:t,event:i}){let a=t("maxLength"),o=null!=a?i.value.slice(0,a):i.value;e.set("value",o)},setPreviousValue({context:e}){e.set("previousValue",e.get("value"))},revertValue({context:e}){let t=e.get("previousValue");t&&e.set("value",t)},blurInput({scope:e}){og(e)?.blur()}}}});var op=iQ()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);(0,to.createSplitProps)(op);var oh=e.i(94846);let om=(0,ta.createAnatomy)("fieldset").parts("root","errorText","helperText","legend");om.build();var of=e=>"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)||/^.*\.[\w]+$/.test(e),ov=(e,t)=>e.name===t.name&&e.size===t.size&&e.type===t.type,ob=new Map("3g2_video/3gpp2[3gp,3gpp_video/3gpp[3mf_model/3mf[7z_application/x-7z-compressed[aac_audio/aac[ac_application/pkix-attr-cert[adp_audio/adpcm[adts_audio/aac[ai_application/postscript[aml_application/automationml-aml+xml[amlx_application/automationml-amlx+zip[amr_audio/amr[apk_application/vnd.android.package-archive[apng_image/apng[appcache,manifest_text/cache-manifest[appinstaller_application/appinstaller[appx_application/appx[appxbundle_application/appxbundle[asc_application/pgp-keys[atom_application/atom+xml[atomcat_application/atomcat+xml[atomdeleted_application/atomdeleted+xml[atomsvc_application/atomsvc+xml[au,snd_audio/basic[avi_video/x-msvideo[avci_image/avci[avcs_image/avcs[avif_image/avif[aw_application/applixware[bdoc_application/bdoc[bin,bpk,buffer,deb,deploy,dist,distz,dll,dmg,dms,dump,elc,exe,img,iso,lrf,mar,msi,msm,msp,pkg,so_application/octet-stream[bmp,dib_image/bmp[btf,btif_image/prs.btif[bz2_application/x-bzip2[c_text/x-c[ccxml_application/ccxml+xml[cdfx_application/cdfx+xml[cdmia_application/cdmi-capability[cdmic_application/cdmi-container[cdmid_application/cdmi-domain[cdmio_application/cdmi-object[cdmiq_application/cdmi-queue[cer_application/pkix-cert[cgm_image/cgm[cjs_application/node[class_application/java-vm[coffee,litcoffee_text/coffeescript[conf,def,in,ini,list,log,text,txt_text/plain[cpp,cxx,cc_text/x-c++src[cpl_application/cpl+xml[cpt_application/mac-compactpro[crl_application/pkix-crl[css_text/css[csv_text/csv[cu_application/cu-seeme[cwl_application/cwl[cww_application/prs.cww[davmount_application/davmount+xml[dbk_application/docbook+xml[doc_application/msword[docx_application/vnd.openxmlformats-officedocument.wordprocessingml.document[dsc_text/prs.lines.tag[dssc_application/dssc+der[dtd_application/xml-dtd[dwd_application/atsc-dwd+xml[ear,jar,war_application/java-archive[ecma_application/ecmascript[emf_image/emf[eml,mime_message/rfc822[emma_application/emma+xml[emotionml_application/emotionml+xml[eot_application/vnd.ms-fontobject[eps,ps_application/postscript[epub_application/epub+zip[exi_application/exi[exp_application/express[exr_image/aces[ez_application/andrew-inset[fdf_application/fdf[fdt_application/fdt+xml[fits_image/fits[flac_audio/flac[flv_video/x-flv[g3_image/g3fax[geojson_application/geo+json[gif_image/gif[glb_model/gltf-binary[gltf_model/gltf+json[gml_application/gml+xml[go_text/x-go[gpx_application/gpx+xml[gz_application/gzip[h_text/x-h[h261_video/h261[h263_video/h263[h264_video/h264[heic_image/heic[heics_image/heic-sequence[heif_image/heif[heifs_image/heif-sequence[htm,html,shtml_text/html[ico_image/x-icon[icns_image/x-icns[ics,ifb_text/calendar[iges,igs_model/iges[ink,inkml_application/inkml+xml[ipa_application/octet-stream[java_text/x-java-source[jp2,jpg2_image/jp2[jpeg,jpe,jpg_image/jpeg[jpf,jpx_image/jpx[jpm,jpgm_image/jpm[jpgv_video/jpeg[jph_image/jph[js,mjs_text/javascript[json_application/json[json5_application/json5[jsonld_application/ld+json[jsx_text/jsx[jxl_image/jxl[jxr_image/jxr[ktx_image/ktx[ktx2_image/ktx2[less_text/less[m1v,m2v,mpe,mpeg,mpg_video/mpeg[m4a_audio/mp4[m4v_video/x-m4v[md,markdown_text/markdown[mid,midi,kar,rmi_audio/midi[mkv_video/x-matroska[mp2,mp2a,mp3,mpga,m3a,m2a_audio/mpeg[mp4,mp4v,mpg4_video/mp4[mp4a_audio/mp4[mp4s,m4p_application/mp4[odp_application/vnd.oasis.opendocument.presentation[oda_application/oda[ods_application/vnd.oasis.opendocument.spreadsheet[odt_application/vnd.oasis.opendocument.text[oga,ogg,opus,spx_audio/ogg[ogv_video/ogg[ogx_application/ogg[otf_font/otf[p12,pfx_application/x-pkcs12[pdf_application/pdf[pem_application/x-pem-file[php_text/x-php[png_image/png[ppt_application/vnd.ms-powerpoint[pptx_application/vnd.openxmlformats-officedocument.presentationml.presentation[pskcxml_application/pskc+xml[psd_image/vnd.adobe.photoshop[py_text/x-python[qt,mov_video/quicktime[rar_application/vnd.rar[rdf_application/rdf+xml[rtf_text/rtf[sass_text/x-sass[scss_text/x-scss[sgm,sgml_text/sgml[sh_application/x-sh[svg,svgz_image/svg+xml[swf_application/x-shockwave-flash[tar_application/x-tar[tif,tiff_image/tiff[toml_application/toml[ts_video/mp2t[tsx_text/tsx[tsv_text/tab-separated-values[ttc_font/collection[ttf_font/ttf[vtt_text/vtt[wasm_application/wasm[wav_audio/wav[weba_audio/webm[webm_video/webm[webmanifest_application/manifest+json[webp_image/webp[wma_audio/x-ms-wma[wmv_video/x-ms-wmv[woff_font/woff[woff2_font/woff2[xls_application/vnd.ms-excel[xlsx_application/vnd.openxmlformats-officedocument.spreadsheetml.sheet[xml_application/xml[xz_application/x-xz[yaml,yml_text/yaml[zip_application/zip".split("[").flatMap(e=>{let[t,i]=e.split("_");return t.split(",").map(e=>[e,i])}));function ox(e){let t=new Map;return function(i,a){let o=i+(a?Object.entries(a).sort((e,t)=>e[0]e.getById(e.ids?.hiddenInput??`file:${e.id}:input`);function ok(e,t,i=[],a=[]){let{prop:o,computed:n}=e,r=[],l=[],s={acceptedFiles:i,rejectedFiles:a};return t.forEach(e=>{var t;let i,[a,d]=(t=n("acceptAttr"),[i="application/x-moz-file"===e.type||function(e,t){if(e&&t){let i,a=Array.isArray(t)?t:"string"==typeof t?t.split(","):[];if(0===a.length)return!0;let o=e.name||"",n=(e.type||(i=o.split(".").pop())&&ob.get(i)||"").toLowerCase(),r=n.replace(/\/.*$/,"");return a.some(e=>{let t=e.trim().toLowerCase();return"."===t.charAt(0)?o.toLowerCase().endsWith(t):t.endsWith("/*")?r===t.replace(/\/.*$/,""):n===t})}return!0}(e,t),i?null:"FILE_INVALID_TYPE"]),[c,u]=function(e,t,i){if(null!=e.size)if(null!=t&&null!=i){if(e.size>i)return[!1,"FILE_TOO_LARGE"];if(e.sizei)return[!1,"FILE_TOO_LARGE"]}return[!0,null]}(e,o("minFileSize"),o("maxFileSize")),g=o("validate")?.(e,s),p=!g||0===g.length;if(a&&c&&p)r.push(e);else{let t=[d,u];p||t.push(...g??[]),l.push({file:e,errors:t.filter(Boolean)})}}),!function(e,t,i){let{prop:a,computed:o}=e;return(!!o("multiple")||!(t>1))&&(!o("multiple")&&t+i.length===2||!(t+i.length>a("maxFiles")))}(e,r.length,i)&&(r.forEach(e=>{l.push({file:e,errors:["TOO_MANY_FILES"]})}),r.splice(0)),{acceptedFiles:r,rejectedFiles:l}}(0,i$.createMachine)({props:({props:e})=>({minFileSize:0,maxFileSize:1/0,maxFiles:1,allowDrop:!0,preventDocumentDrop:!0,defaultAcceptedFiles:[],...e,translations:{dropzone:"dropzone",itemPreview:e=>`preview of ${e.name}`,deleteFile:e=>`delete file ${e.name}`,...e.translations}}),initialState:()=>"idle",context:({prop:e,bindable:t,getContext:i})=>({acceptedFiles:t(()=>({defaultValue:e("defaultAcceptedFiles"),value:e("acceptedFiles"),isEqual:(e,t)=>e.length===t?.length&&e.every((e,i)=>ov(e,t[i])),hash:e=>e.map(e=>`${e.name}-${e.size}`).join(","),onChange(t){let a=i();e("onFileAccept")?.({files:t}),e("onFileChange")?.({acceptedFiles:t,rejectedFiles:a.get("rejectedFiles")})}})),rejectedFiles:t(()=>({defaultValue:[],isEqual:(e,t)=>e.length===t?.length&&e.every((e,i)=>ov(e.file,t[i].file)),onChange(t){let a=i();e("onFileReject")?.({files:t}),e("onFileChange")?.({acceptedFiles:a.get("acceptedFiles"),rejectedFiles:t})}})),transforming:t(()=>({defaultValue:!1}))}),computed:{acceptAttr:({prop:e})=>(function(e){if(null!=e)return"string"==typeof e?e:Array.isArray(e)?e.filter(of).join(","):Object.entries(e).reduce((e,[t,i])=>[...e,t,...i],[]).filter(of).join(",")})(e("accept")),multiple:({prop:e})=>e("maxFiles")>1},watch({track:e,context:t,action:i}){e([()=>t.hash("acceptedFiles")],()=>{i(["syncInputElement"])})},on:{"FILES.SET":{actions:["setFiles"]},"FILE.SELECT":{actions:["setEventFiles"]},"FILE.DELETE":{actions:["removeFile"]},"FILES.CLEAR":{actions:["clearFiles"]},"REJECTED_FILES.CLEAR":{actions:["clearRejectedFiles"]}},effects:["preventDocumentDrop"],states:{idle:{on:{OPEN:{actions:["openFilePicker"]},"DROPZONE.CLICK":{actions:["openFilePicker"]},"DROPZONE.FOCUS":{target:"focused"},"DROPZONE.DRAG_OVER":{target:"dragging"}}},focused:{on:{"DROPZONE.BLUR":{target:"idle"},OPEN:{actions:["openFilePicker"]},"DROPZONE.CLICK":{actions:["openFilePicker"]},"DROPZONE.DRAG_OVER":{target:"dragging"}}},dragging:{on:{"DROPZONE.DROP":{target:"idle",actions:["setEventFiles"]},"DROPZONE.DRAG_LEAVE":{target:"idle"}}}},implementations:{effects:{preventDocumentDrop({prop:e,scope:t}){if(!e("preventDocumentDrop")||!e("allowDrop")||e("disabled"))return;let i=t.getDoc();return(0,to.callAll)((0,tI.addDomEvent)(i,"dragover",e=>{e?.preventDefault()},!1),(0,tI.addDomEvent)(i,"drop",e=>{(0,tI.contains)(t.getById(t.ids?.root??`file:${t.id}`),(0,tI.getEventTarget)(e))||e.preventDefault()},!1))}},actions:{syncInputElement({scope:e,context:t}){queueMicrotask(()=>{let i=oS(e);if(!i)return;var a=t.get("acceptedFiles");let o=(0,tI.getWindow)(i);try{if("DataTransfer"in o){let e=new o.DataTransfer;a.forEach(t=>{e.items.add(t)}),i.files=e.files}}catch{}let n=e.getWin();i.dispatchEvent(new n.Event("change",{bubbles:!0}))})},openFilePicker({scope:e}){(0,tI.raf)(()=>{oS(e)?.click()})},setFiles(e){let{computed:t,context:i,event:a}=e,{acceptedFiles:o,rejectedFiles:n}=ok(e,a.files);i.set("acceptedFiles",t("multiple")?o:o.length>0?[o[0]]:[]),i.set("rejectedFiles",n)},setEventFiles(e){let{computed:t,context:i,event:a,prop:o}=e,n=i.get("acceptedFiles"),r=i.get("rejectedFiles"),{acceptedFiles:l,rejectedFiles:s}=ok(e,a.files,n,r),d=e=>{if(t("multiple")){i.set("acceptedFiles",t=>[...t,...e]),i.set("rejectedFiles",s);return}if(e.length){i.set("acceptedFiles",[e[0]]),i.set("rejectedFiles",s);return}s.length&&(i.set("acceptedFiles",i.get("acceptedFiles")),i.set("rejectedFiles",s))},c=o("transformFiles");c?(i.set("transforming",!0),c(l).then(d).catch(e=>{(0,to.warn)(`[zag-js/file-upload] error transforming files ${e}`)}).finally(()=>{i.set("transforming",!1)})):d(l)},removeFile({context:e,event:t}){if("rejected"===t.itemType){let i=e.get("rejectedFiles").filter(e=>!ov(e.file,t.file));e.set("rejectedFiles",i)}else{let i=e.get("acceptedFiles").filter(e=>!ov(e,t.file));e.set("acceptedFiles",i)}},clearRejectedFiles({context:e}){e.set("rejectedFiles",[])},clearFiles({context:e}){e.set("acceptedFiles",[]),e.set("rejectedFiles",[])}}}});var oC=iQ()(["accept","acceptedFiles","allowDrop","capture","defaultAcceptedFiles","dir","directory","disabled","getRootNode","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","required","transformFiles","translations","validate"]);(0,to.createSplitProps)(oC);var oE=iQ()(["file","type"]);(0,to.createSplitProps)(oE);var oI=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),oO=null,ow=new Set,oT=new Map,oV=!1,oP=!1,oR={Tab:!0,Escape:!0};function oN(e,t){for(let i of ow)i(e,t)}function oz(e){oV=!0,e.metaKey||!(0,tI.isMac)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(oO="keyboard",oN("keyboard",e))}function o_(e){oO="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(oV=!0,oN("pointer",e))}function oA(e){(0,tI.isVirtualClick)(e)&&(oV=!0,oO="virtual")}function oF(e){let t=(0,tI.getEventTarget)(e);t!==(0,tI.getWindow)(t)&&t!==(0,tI.getDocument)(t)&&(oV||oP||(oO="virtual",oN("virtual",e)),oV=!1,oP=!1)}function oD(){oV=!1,oP=!0}function oL(){return"keyboard"===oO}function oM(e={}){let{isTextInput:t,autoFocus:i,onChange:a,root:o}=e;!function(e){if("undefined"==typeof window||oT.get((0,tI.getWindow)(e)))return;let t=(0,tI.getWindow)(e),i=(0,tI.getDocument)(e),a=t.HTMLElement.prototype.focus;try{Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:function(){oO="virtual",oN("virtual",null),oV=!0,a.apply(this,arguments)}})}catch{}i.addEventListener("keydown",oz,!0),i.addEventListener("keyup",oz,!0),i.addEventListener("click",oA,!0),t.addEventListener("focus",oF,!0),t.addEventListener("blur",oD,!1),void 0!==t.PointerEvent?(i.addEventListener("pointerdown",o_,!0),i.addEventListener("pointermove",o_,!0),i.addEventListener("pointerup",o_,!0)):(i.addEventListener("mousedown",o_,!0),i.addEventListener("mousemove",o_,!0),i.addEventListener("mouseup",o_,!0)),t.addEventListener("beforeunload",()=>{((e,t)=>{let i=(0,tI.getWindow)(e),a=(0,tI.getDocument)(e),o=oT.get(i);if(o){try{Object.defineProperty(i.HTMLElement.prototype,"focus",{configurable:!0,value:o.focus})}catch{}a.removeEventListener("keydown",oz,!0),a.removeEventListener("keyup",oz,!0),a.removeEventListener("click",oA,!0),i.removeEventListener("focus",oF,!0),i.removeEventListener("blur",oD,!1),void 0!==i.PointerEvent?(a.removeEventListener("pointerdown",o_,!0),a.removeEventListener("pointermove",o_,!0),a.removeEventListener("pointerup",o_,!0)):(a.removeEventListener("mousedown",o_,!0),a.removeEventListener("mousemove",o_,!0),a.removeEventListener("mouseup",o_,!0)),oT.delete(i)}})(e)},{once:!0}),oT.set(t,{focus:a})}(o),a?.({isFocusVisible:i||oL(),modality:oO});let n=(e,i)=>{var o;let n,r;o=!!t,n=i?(0,tI.getEventTarget)(i):null,r=(0,tI.getWindow)(n),(o=o||n instanceof r.HTMLInputElement&&!oI.has(n?.type)||n instanceof r.HTMLTextAreaElement||n instanceof r.HTMLElement&&n.isContentEditable)&&"keyboard"===e&&i instanceof r.KeyboardEvent&&!Reflect.has(oR,i.key)||a?.({isFocusVisible:oL(),modality:e})};return ow.add(n),()=>{ow.delete(n)}}var oW=(0,ta.createAnatomy)("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");oW.build();var oB=e=>new ts(e);oB.empty=()=>new ts({items:[]});var oH=e=>e.getById(e.ids?.content??`select:${e.id}:content`),o$=(e,t)=>e.getById(e.ids?.item?.(t)??`select:${e.id}:option:${t}`),{guards:oj,createMachine:oG}=(0,i$.setup)(),{or:oU}=oj;function oq(e,t,i){for(let a of((e,t)=>{let i=new Set(e);for(let e of t)i.delete(e);return i})(t,e))i?.({value:a})}oG({props:({props:e})=>({loopFocus:!1,composite:!0,defaultValue:[],multiple:!1,typeahead:!0,collection:oB.empty(),orientation:"vertical",selectionMode:"single",...e}),context:({prop:e,bindable:t})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:to.isEqual,onChange(t){let i=e("collection").findMany(t);return e("onValueChange")?.({value:t,items:i})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),sync:!0,onChange(t){e("onHighlightChange")?.({highlightedValue:t,highlightedItem:e("collection").find(t),highlightedIndex:e("collection").indexOf(t)})}})),highlightedItem:t(()=>({defaultValue:null})),selectedItems:t(()=>{let t=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").findMany(t)}}),focused:t(()=>({sync:!0,defaultValue:!1}))}),refs:()=>({typeahead:{...tI.getByTypeahead.defaultOptions},focusVisible:!1,inputState:{autoHighlight:!1,focused:!1}}),computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>""!==e.get("typeahead").keysSoFar,isInteractive:({prop:e})=>!e("disabled"),selection:({context:e,prop:t})=>{let i=new tg(e.get("value"));return i.selectionMode=t("selectionMode"),i.deselectable=!!t("deselectable"),i},multiple:({prop:e})=>"multiple"===e("selectionMode")||"extended"===e("selectionMode"),valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems"))},initialState:()=>"idle",watch({context:e,prop:t,track:i,action:a}){i([()=>e.get("value").toString()],()=>{a(["syncSelectedItems"])}),i([()=>e.get("highlightedValue")],()=>{a(["syncHighlightedItem"])}),i([()=>t("collection").toString()],()=>{a(["syncHighlightedValue"])})},effects:["trackFocusVisible"],on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]}},states:{idle:{effects:["scrollToHighlightedItem"],on:{"INPUT.FOCUS":{actions:["setFocused","setInputState"]},"CONTENT.FOCUS":[{guard:oU("hasSelectedValue","hasHighlightedValue"),actions:["setFocused"]},{actions:["setFocused","setDefaultHighlightedValue"]}],"CONTENT.BLUR":{actions:["clearFocused","clearInputState"]},"ITEM.CLICK":{actions:["setHighlightedItem","selectHighlightedItem"]},"CONTENT.TYPEAHEAD":{actions:["setFocused","highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},NAVIGATE:{actions:["setFocused","setHighlightedItem","selectWithKeyboard"]}}}},implementations:{guards:{hasSelectedValue:({context:e})=>e.get("value").length>0,hasHighlightedValue:({context:e})=>null!=e.get("highlightedValue")},effects:{trackFocusVisible:({scope:e,refs:t})=>oM({root:e.getRootNode?.(),onChange(e){t.set("focusVisible",e.isFocusVisible)}}),scrollToHighlightedItem({context:e,prop:t,scope:i}){let a=a=>{let o=e.get("highlightedValue");if(null==o||"keyboard"!==oO)return;let n=oH(i),r=t("scrollToIndexFn");if(r){let e=t("collection").indexOf(o);r?.({index:e,immediate:a,getElement:()=>o$(i,o)});return}let l=o$(i,o);(0,tI.scrollIntoView)(l,{rootEl:n,block:"nearest"})};return(0,tI.raf)(()=>a(!0)),(0,tI.observeAttributes)(()=>oH(i),{defer:!0,attributes:["data-activedescendant"],callback(){a(!1)}})}},actions:{selectHighlightedItem({context:e,prop:t,event:i,computed:a}){let o=i.value??e.get("highlightedValue"),n=t("collection");if(null==o||!n.has(o))return;let r=a("selection");if(i.shiftKey&&a("multiple")&&i.anchorValue){let a=r.extendSelection(n,i.anchorValue,o);oq(r,a,t("onSelect")),e.set("value",Array.from(a))}else{let a=r.select(n,o,i.metaKey);oq(r,a,t("onSelect")),e.set("value",Array.from(a))}},selectWithKeyboard({context:e,prop:t,event:i,computed:a}){let o=a("selection"),n=t("collection");if(i.shiftKey&&a("multiple")&&i.anchorValue){let a=o.extendSelection(n,i.anchorValue,i.value);oq(o,a,t("onSelect")),e.set("value",Array.from(a));return}if(t("selectOnHighlight")){let a=o.replaceSelection(n,i.value);oq(o,a,t("onSelect")),e.set("value",Array.from(a))}},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:i,refs:a}){let o=t("collection").search(i.key,{state:a.get("typeahead"),currentValue:e.get("highlightedValue")});null!=o&&e.set("highlightedValue",o)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:i,computed:a}){let o=t("collection"),n=a("selection"),r=n.select(o,i.value);oq(n,r,t("onSelect")),e.set("value",Array.from(r))},clearItem({context:e,event:t,computed:i}){let a=i("selection").deselect(t.value);e.set("value",Array.from(a))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},syncSelectedItems({context:e,prop:t}){let i=t("collection"),a=e.get("selectedItems"),o=e.get("value").map(e=>a.find(t=>i.getItemValue(t)===e)||i.find(e));e.set("selectedItems",o)},syncHighlightedItem({context:e,prop:t}){let i=t("collection"),a=e.get("highlightedValue"),o=a?i.find(a):null;e.set("highlightedItem",o)},syncHighlightedValue({context:e,prop:t,refs:i}){let a=t("collection"),o=e.get("highlightedValue"),{autoHighlight:n}=i.get("inputState");n?queueMicrotask(()=>{e.set("highlightedValue",t("collection").firstValue??null)}):null==o||a.has(o)||queueMicrotask(()=>{e.set("highlightedValue",null)})},setFocused({context:e}){e.set("focused",!0)},setDefaultHighlightedValue({context:e,prop:t}){let i=t("collection").firstValue;null!=i&&e.set("highlightedValue",i)},clearFocused({context:e}){e.set("focused",!1)},setInputState({refs:e,event:t}){e.set("inputState",{autoHighlight:!!t.autoHighlight,focused:!0})},clearInputState({refs:e}){e.set("inputState",{autoHighlight:!1,focused:!1})}}}});var oY=iQ()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"]);(0,to.createSplitProps)(oY);var oK=iQ()(["item","highlightOnHover"]);(0,to.createSplitProps)(oK);var oX=iQ()(["id"]);(0,to.createSplitProps)(oX);var oZ=iQ()(["htmlFor"]);(0,to.createSplitProps)(oZ);let oJ=oW.extendWith("empty");var oQ=(e,t)=>({x:e,y:t}),{min:o0,max:o1}=Math,{sign:o2,abs:o5,min:o3}=Math,o4=(0,ta.createAnatomy)("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");o4.build();var o6=e=>e.ids?.trigger??`menu:${e.id}:trigger`,o8=e=>e.ids?.content??`menu:${e.id}:content`,o7=(e,t)=>`${e.id}/${t}`,o9=e=>e?.dataset.value??null,ne=e=>e.getById(o8(e)),nt=e=>e.getById(e.ids?.positioner??`menu:${e.id}:popper`),ni=e=>e.getById(o6(e)),na=e=>e.getById(e.ids?.contextTrigger??`menu:${e.id}:ctx-trigger`),no=e=>{let t=CSS.escape(o8(e)),i=`[role^="menuitem"][data-ownedby=${t}]:not([data-disabled])`;return(0,tI.queryAll)(ne(e),i)},nn=(e,t)=>!!t&&(e.id===t||e.dataset.value===t),{not:nr,and:nl,or:ns}=(0,i$.createGuards)();function nd(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t?.send({type:"CLOSE"})}(0,i$.createMachine)({props:({props:e})=>({closeOnSelect:!0,typeahead:!0,composite:!0,loopFocus:!1,navigate(e){(0,tI.clickIfLink)(e.node)},...e,positioning:{placement:"bottom-start",gutter:8,...e.positioning}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"idle",context:({bindable:e,prop:t})=>({suspendPointer:e(()=>({defaultValue:!1})),highlightedValue:e(()=>({defaultValue:t("defaultHighlightedValue")||null,value:t("highlightedValue"),onChange(e){t("onHighlightChange")?.({highlightedValue:e})}})),lastHighlightedValue:e(()=>({defaultValue:null})),currentPlacement:e(()=>({defaultValue:void 0})),intentPolygon:e(()=>({defaultValue:null})),anchorPoint:e(()=>({defaultValue:null,hash:e=>`x: ${e?.x}, y: ${e?.y}`})),isSubmenu:e(()=>({defaultValue:!1}))}),refs:()=>({parent:null,children:{},typeaheadState:{...tI.getByTypeahead.defaultOptions},positioningOverride:{}}),computed:{isRtl:({prop:e})=>"rtl"===e("dir"),isTypingAhead:({refs:e})=>""!==e.get("typeaheadState").keysSoFar,highlightedId:({context:e,scope:t,refs:i})=>(function(e,t,i){let a=Object.keys(e).length>0;if(!t)return null;if(!a)return o7(i,t);for(let i in e){let a=o6(e[i].scope);if(a===t)return a}return o7(i,t)})(i.get("children"),e.get("highlightedValue"),t)},watch({track:e,action:t,context:i,prop:a}){e([()=>i.get("isSubmenu")],()=>{t(["setSubmenuPlacement"])}),e([()=>i.hash("anchorPoint")],()=>{i.get("anchorPoint")&&t(["reposition"])}),e([()=>a("open")],()=>{t(["toggleVisibility"])})},on:{"PARENT.SET":{actions:["setParentMenu"]},"CHILD.SET":{actions:["setChildMenu"]},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],OPEN_AUTOFOCUS:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["highlightFirstItem","invokeOnOpen"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"HIGHLIGHTED.RESTORE":{actions:["restoreHighlightedItem"]},"HIGHLIGHTED.SET":{actions:["setHighlightedItem"]}},states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},CONTEXT_MENU_START:{target:"opening:contextmenu",actions:["setAnchorPoint"]},CONTEXT_MENU:[{guard:"isOpenControlled",actions:["setAnchorPoint","invokeOnOpen"]},{target:"open",actions:["setAnchorPoint","invokeOnOpen"]}],TRIGGER_CLICK:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TRIGGER_FOCUS:{guard:nr("isSubmenu"),target:"closed"},TRIGGER_POINTERMOVE:{guard:"isSubmenu",target:"opening"}}},"opening:contextmenu":{tags:["closed"],effects:["waitForLongPress"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},CONTEXT_MENU_CANCEL:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"LONG_PRESS.OPEN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}},opening:{tags:["closed"],effects:["waitForOpenDelay"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},BLUR:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_POINTERLEAVE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"DELAY.OPEN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}},closing:{tags:["open"],effects:["trackPointerMove","trackInteractOutside","waitForCloseDelay"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem"]},MENU_POINTERENTER:{target:"open",actions:["clearIntentPolygon"]},POINTER_MOVED_AWAY_FROM_SUBMENU:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem"]}],"DELAY.CLOSE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem","invokeOnClose"]}]}},closed:{tags:["closed"],entry:["clearHighlightedItem","focusTrigger","resumePointer","clearAnchorPoint"],on:{"CONTROLLED.OPEN":[{guard:ns("isOpenAutoFocusEvent","isArrowDownEvent"),target:"open",actions:["highlightFirstItem"]},{guard:"isArrowUpEvent",target:"open",actions:["highlightLastItem"]},{target:"open"}],CONTEXT_MENU_START:{target:"opening:contextmenu",actions:["setAnchorPoint"]},CONTEXT_MENU:[{guard:"isOpenControlled",actions:["setAnchorPoint","invokeOnOpen"]},{target:"open",actions:["setAnchorPoint","invokeOnOpen"]}],TRIGGER_CLICK:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TRIGGER_POINTERMOVE:{guard:"isTriggerItem",target:"opening"},TRIGGER_BLUR:{target:"idle"},ARROW_DOWN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["highlightFirstItem","invokeOnOpen"]}],ARROW_UP:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["highlightLastItem","invokeOnOpen"]}]}},open:{tags:["open"],effects:["trackInteractOutside","trackPositioning","scrollToHighlightedItem"],entry:["focusMenu","resumePointer"],on:{"CONTROLLED.CLOSE":[{target:"closed",guard:"isArrowLeftEvent",actions:["focusParentMenu"]},{target:"closed"}],TRIGGER_CLICK:[{guard:nl(nr("isTriggerItem"),"isOpenControlled"),actions:["invokeOnClose"]},{guard:nr("isTriggerItem"),target:"closed",actions:["invokeOnClose"]}],CONTEXT_MENU:{actions:["setAnchorPoint","focusMenu"]},ARROW_UP:{actions:["highlightPrevItem","focusMenu"]},ARROW_DOWN:{actions:["highlightNextItem","focusMenu"]},ARROW_LEFT:[{guard:nl("isSubmenu","isOpenControlled"),actions:["invokeOnClose"]},{guard:"isSubmenu",target:"closed",actions:["focusParentMenu","invokeOnClose"]}],HOME:{actions:["highlightFirstItem","focusMenu"]},END:{actions:["highlightLastItem","focusMenu"]},ARROW_RIGHT:{guard:"isTriggerItemHighlighted",actions:["openSubmenu"]},ENTER:[{guard:"isTriggerItemHighlighted",actions:["openSubmenu"]},{actions:["clickHighlightedItem"]}],ITEM_POINTERMOVE:[{guard:nr("isPointerSuspended"),actions:["setHighlightedItem","focusMenu"]},{actions:["setLastHighlightedItem"]}],ITEM_POINTERLEAVE:{guard:nl(nr("isPointerSuspended"),nr("isTriggerItem")),actions:["clearHighlightedItem"]},ITEM_CLICK:[{guard:nl(nr("isTriggerItemHighlighted"),nr("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),actions:["invokeOnSelect","setOptionState","closeRootMenu","invokeOnClose"]},{guard:nl(nr("isTriggerItemHighlighted"),nr("isHighlightedItemEditable"),"closeOnSelect"),target:"closed",actions:["invokeOnSelect","setOptionState","closeRootMenu","invokeOnClose"]},{guard:nl(nr("isTriggerItemHighlighted"),nr("isHighlightedItemEditable")),actions:["invokeOnSelect","setOptionState"]},{actions:["setHighlightedItem"]}],TRIGGER_POINTERMOVE:{guard:"isTriggerItem",actions:["setIntentPolygon"]},TRIGGER_POINTERLEAVE:{target:"closing"},ITEM_POINTERDOWN:{actions:["setHighlightedItem"]},TYPEAHEAD:{actions:["highlightMatchedItem"]},FOCUS_MENU:{actions:["focusMenu"]},"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{closeOnSelect:({prop:e,event:t})=>!!(t?.closeOnSelect??e("closeOnSelect")),isTriggerItem:({event:e})=>{let t;return t=e.target,!!t?.getAttribute("role")?.startsWith("menuitem")&&!!t?.hasAttribute("data-controls")},isTriggerItemHighlighted:({event:e,scope:t,computed:i})=>{let a=e.target??t.getById(i("highlightedId"));return!!a?.hasAttribute("data-controls")},isSubmenu:({context:e})=>e.get("isSubmenu"),isPointerSuspended:({context:e})=>e.get("suspendPointer"),isHighlightedItemEditable:({scope:e,computed:t})=>(0,tI.isEditableElement)(e.getById(t("highlightedId"))),isOpenControlled:({prop:e})=>void 0!==e("open"),isArrowLeftEvent:({event:e})=>e.previousEvent?.type==="ARROW_LEFT",isArrowUpEvent:({event:e})=>e.previousEvent?.type==="ARROW_UP",isArrowDownEvent:({event:e})=>e.previousEvent?.type==="ARROW_DOWN",isOpenAutoFocusEvent:({event:e})=>e.previousEvent?.type==="OPEN_AUTOFOCUS"},effects:{waitForOpenDelay({send:e}){let t=setTimeout(()=>{e({type:"DELAY.OPEN"})},100);return()=>clearTimeout(t)},waitForCloseDelay({send:e}){let t=setTimeout(()=>{e({type:"DELAY.CLOSE"})},300);return()=>clearTimeout(t)},waitForLongPress({send:e}){let t=setTimeout(()=>{e({type:"LONG_PRESS.OPEN"})},700);return()=>clearTimeout(t)},trackPositioning({context:e,prop:t,scope:i,refs:a}){if(na(i))return;let o={...t("positioning"),...a.get("positioningOverride")};return e.set("currentPlacement",o.placement),iH(ni(i),()=>nt(i),{...o,defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})},trackInteractOutside({refs:e,scope:t,prop:i,context:a,send:o}){let n=!0;return iJ(()=>ne(t),{type:"menu",defer:!0,exclude:[ni(t)],onInteractOutside:i("onInteractOutside"),onRequestDismiss:i("onRequestDismiss"),onFocusOutside(e){i("onFocusOutside")?.(e);let a=(0,tI.getEventTarget)(e.detail.originalEvent);if((0,tI.contains)(na(t),a))return void e.preventDefault()},onEscapeKeyDown(t){i("onEscapeKeyDown")?.(t),a.get("isSubmenu")&&t.preventDefault(),nd({parent:e.get("parent")})},onPointerDownOutside(e){i("onPointerDownOutside")?.(e);let a=(0,tI.getEventTarget)(e.detail.originalEvent);(0,tI.contains)(na(t),a)&&e.detail.contextmenu?e.preventDefault():n=!e.detail.focusable},onDismiss(){o({type:"CLOSE",src:"interact-outside",restoreFocus:n})}})},trackPointerMove({context:e,scope:t,send:i,refs:a,flush:o}){let n=a.get("parent");o(()=>{n.context.set("suspendPointer",!0)});let r=t.getDoc();return(0,tI.addDomEvent)(r,"pointermove",t=>{var a,o;a=e.get("intentPolygon"),o={x:t.clientX,y:t.clientY},a&&function(e,t){let{x:i,y:a}=t,o=!1;for(let t=0,n=e.length-1;ta!=d>a&&i<(s-r)*(a-l)/(d-l)+r&&(o=!o)}return o}(a,o)||(i({type:"POINTER_MOVED_AWAY_FROM_SUBMENU"}),n.context.set("suspendPointer",!1))})},scrollToHighlightedItem({event:e,scope:t,computed:i}){let a=()=>{if(e.current().type.startsWith("ITEM_POINTER"))return;let a=t.getById(i("highlightedId")),o=ne(t);(0,tI.scrollIntoView)(a,{rootEl:o,block:"nearest"})};return(0,tI.raf)(()=>a()),(0,tI.observeAttributes)(()=>ne(t),{defer:!0,attributes:["aria-activedescendant"],callback:a})}},actions:{setAnchorPoint({context:e,event:t}){e.set("anchorPoint",e=>(0,to.isEqual)(e,t.point)?e:t.point)},setSubmenuPlacement({context:e,computed:t,refs:i}){if(!e.get("isSubmenu"))return;let a=t("isRtl")?"left-start":"right-start";i.set("positioningOverride",{placement:a,gutter:0})},reposition({context:e,scope:t,prop:i,event:a,refs:o}){let n=e.get("anchorPoint"),r={...i("positioning"),...o.get("positioningOverride")};iH(ni(t),()=>nt(t),{...r,defer:!0,getAnchorRect:n?()=>({width:0,height:0,...n}):void 0,...a.options??{},listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},setOptionState({event:e}){if(!e.option)return;let{checked:t,onCheckedChange:i,type:a}=e.option;"radio"===a?i?.(!0):"checkbox"===a&&i?.(!t)},clickHighlightedItem({scope:e,computed:t,prop:i,context:a}){let o=e.getById(t("highlightedId"));if(!o||o.dataset.disabled)return;let n=a.get("highlightedValue");(0,tI.isAnchorElement)(o)?i("navigate")?.({value:n,node:o,href:o.href}):queueMicrotask(()=>o.click())},setIntentPolygon({context:e,scope:t,event:i}){let a=ne(t),o=e.get("currentPlacement");if(!a||!o)return;let n=function(e,t){let i,a,o=function(e){let{x:t,y:i,width:a,height:o}=e,n=t+a/2,r=i+o/2;return{x:t,y:i,width:a,height:o,minX:t,minY:i,maxX:t+a,maxY:i+o,midX:n,midY:r,center:oQ(n,r)}}(e),{top:n,right:r,left:l,bottom:s}=(i=oQ(o.minX,o.minY),a=oQ(o.maxX,o.minY),{top:i,right:a,bottom:oQ(o.maxX,o.maxY),left:oQ(o.minX,o.maxY)}),[d]=t.split("-");return({top:[l,n,r,s],right:[n,r,s,l],bottom:[n,l,s,r],left:[r,n,l,s]})[d]}(a.getBoundingClientRect(),o);if(!n)return;let r="right"===o.split("-")[0];e.set("intentPolygon",[{...i.point,x:i.point.x+(r?-5:5)},...n])},clearIntentPolygon({context:e}){e.set("intentPolygon",null)},clearAnchorPoint({context:e}){e.set("anchorPoint",null)},resumePointer({refs:e,flush:t}){let i=e.get("parent");i&&t(()=>{i.context.set("suspendPointer",!1)})},setHighlightedItem({context:e,event:t}){let i=t.value||o9(t.target);e.set("highlightedValue",i)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},focusMenu({scope:e}){(0,tI.raf)(()=>{let t=ne(e),i=(0,tI.getInitialFocus)({root:t,enabled:!(0,tI.contains)(t,e.getActiveElement()),filter:e=>!e.role?.startsWith("menuitem")});i?.focus({preventScroll:!0})})},highlightFirstItem({context:e,scope:t}){(ne(t)?queueMicrotask:tI.raf)(()=>{let i=(0,to.first)(no(t));i&&e.set("highlightedValue",o9(i))})},highlightLastItem({context:e,scope:t}){(ne(t)?queueMicrotask:tI.raf)(()=>{let i=(0,to.last)(no(t));i&&e.set("highlightedValue",o9(i))})},highlightNextItem({context:e,scope:t,event:i,prop:a}){var o;let n,r,l=(o={loop:i.loop,value:e.get("highlightedValue"),loopFocus:a("loopFocus")},r=(n=no(t)).findIndex(e=>nn(e,o.value)),(0,to.next)(n,r,{loop:o.loop??o.loopFocus}));e.set("highlightedValue",o9(l))},highlightPrevItem({context:e,scope:t,event:i,prop:a}){var o;let n,r,l=(o={loop:i.loop,value:e.get("highlightedValue"),loopFocus:a("loopFocus")},r=(n=no(t)).findIndex(e=>nn(e,o.value)),(0,to.prev)(n,r,{loop:o.loop??o.loopFocus}));e.set("highlightedValue",o9(l))},invokeOnSelect({context:e,prop:t,scope:i}){let a=e.get("highlightedValue");null!=a&&(!function(e,t){if(!e)return;let i=new((0,tI.getWindow)(e)).CustomEvent("menu:select",{detail:{value:t}});e.dispatchEvent(i)}(a?i.getById(o7(i,a)):null,a),t("onSelect")?.({value:a}))},focusTrigger({scope:e,context:t,event:i}){t.get("isSubmenu")||t.get("anchorPoint")||!1===i.restoreFocus||queueMicrotask(()=>ni(e)?.focus({preventScroll:!0}))},highlightMatchedItem({scope:e,context:t,event:i,refs:a}){var o;let n,r,l=(o={key:i.key,value:t.get("highlightedValue"),typeaheadState:a.get("typeaheadState")},r=(n=no(e)).find(e=>nn(e,o.value)),(0,tI.getByTypeahead)(n,{state:o.typeaheadState,key:o.key,activeId:r?.id??null}));l&&t.set("highlightedValue",o9(l))},setParentMenu({refs:e,event:t,context:i}){e.set("parent",t.value),i.set("isSubmenu",!0)},setChildMenu({refs:e,event:t}){let i=e.get("children");i[t.id]=t.value,e.set("children",i)},closeRootMenu({refs:e}){nd({parent:e.get("parent")})},openSubmenu({refs:e,scope:t,computed:i}){let a=t.getById(i("highlightedId")),o=a?.getAttribute("data-uid"),n=e.get("children"),r=o?n[o]:null;r?.send({type:"OPEN_AUTOFOCUS"})},focusParentMenu({refs:e}){e.get("parent")?.send({type:"FOCUS_MENU"})},setLastHighlightedItem({context:e,event:t}){e.set("lastHighlightedValue",o9(t.target))},restoreHighlightedItem({context:e}){e.get("lastHighlightedValue")&&(e.set("highlightedValue",e.get("lastHighlightedValue")),e.set("lastHighlightedValue",null))},restoreParentHighlightedItem({refs:e}){e.get("parent")?.send({type:"HIGHLIGHTED.RESTORE"})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},toggleVisibility({prop:e,event:t,send:i}){i({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})}}}});var nc=iQ()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","onSelect","open","positioning","typeahead"]);(0,to.createSplitProps)(nc);var nu=iQ()(["closeOnSelect","disabled","value","valueText"]);(0,to.createSplitProps)(nu);var ng=iQ()(["htmlFor"]);(0,to.createSplitProps)(ng);var np=iQ()(["id"]);(0,to.createSplitProps)(np);var nh=iQ()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);(0,to.createSplitProps)(nh);var nm=(0,ta.createAnatomy)("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");nm.build();var nf=e=>e.getById(e.ids?.anchor??`popover:${e.id}:anchor`),nv=e=>e.getById(e.ids?.trigger??`popover:${e.id}:trigger`),nb=e=>e.getById(e.ids?.content??`popover:${e.id}:content`),nx=e=>e.getById(e.ids?.positioner??`popover:${e.id}:popper`);(0,i$.createMachine)({props:({props:e})=>({closeOnInteractOutside:!0,closeOnEscape:!0,autoFocus:!0,modal:!1,portalled:!0,...e,positioning:{placement:"bottom",...e.positioning}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({bindable:e})=>({currentPlacement:e(()=>({defaultValue:void 0})),renderedElements:e(()=>({defaultValue:{title:!0,description:!0}}))}),computed:{currentPortalled:({prop:e})=>!!e("modal")||!!e("portalled")},watch({track:e,prop:t,action:i}){e([()=>t("open")],()=>{i(["toggleVisibility"])})},entry:["checkRenderedElements"],states:{closed:{on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}]}},open:{effects:["trapFocus","preventScroll","hideContentBelow","trackPositioning","trackDismissableElement","proxyTabFocus"],on:{"CONTROLLED.CLOSE":{target:"closed",actions:["setFinalFocus"]},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose","setFinalFocus"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>void 0!=e("open")},effects:{trackPositioning:({context:e,prop:t,scope:i})=>(e.set("currentPlacement",t("positioning").placement),iH(nf(i)??nv(i),()=>nx(i),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})),trackDismissableElement({send:e,prop:t,scope:i}){let a=!0;return iJ(()=>nb(i),{type:"popover",pointerBlocking:t("modal"),exclude:nv(i),defer:!0,onEscapeKeyDown(e){t("onEscapeKeyDown")?.(e),t("closeOnEscape")||e.preventDefault()},onInteractOutside(e){t("onInteractOutside")?.(e),!e.defaultPrevented&&(a=!(e.detail.focusable||e.detail.contextmenu),t("closeOnInteractOutside")||e.preventDefault())},onPointerDownOutside:t("onPointerDownOutside"),onFocusOutside:t("onFocusOutside"),persistentElements:t("persistentElements"),onRequestDismiss:t("onRequestDismiss"),onDismiss(){e({type:"CLOSE",src:"interact-outside",restoreFocus:a})}})},proxyTabFocus({prop:e,scope:t}){if(!e("modal")&&e("portalled"))return(0,tI.proxyTabFocus)(()=>nb(t),{triggerElement:nv(t),defer:!0,getShadowRoot:!0,onFocus(e){e.focus({preventScroll:!0})}})},hideContentBelow({prop:e,scope:t}){if(e("modal"))return a5(()=>[nb(t),nv(t)],{defer:!0})},preventScroll({prop:e,scope:t}){if(e("modal"))return ol(t.getDoc())},trapFocus({prop:e,scope:t}){if(e("modal"))return oo(()=>nb(t),{initialFocus:()=>(0,tI.getInitialFocus)({root:nb(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")}),getShadowRoot:!0})}},actions:{reposition({event:e,prop:t,scope:i,context:a}){iH(nf(i)??nv(i),()=>nx(i),{...t("positioning"),...e.options,defer:!0,listeners:!1,onComplete(e){a.set("currentPlacement",e.placement)}})},checkRenderedElements({context:e,scope:t}){(0,tI.raf)(()=>{Object.assign(e.get("renderedElements"),{title:!!t.getById(t.ids?.title??`popover:${t.id}:title`),description:!!t.getById(t.ids?.description??`popover:${t.id}:desc`)})})},setInitialFocus({prop:e,scope:t}){e("modal")||(0,tI.raf)(()=>{let i=(0,tI.getInitialFocus)({root:nb(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")});i?.focus({preventScroll:!0})})},setFinalFocus({event:e,scope:t}){let i=e.restoreFocus??e.previousEvent?.restoreFocus;(null==i||i)&&(0,tI.raf)(()=>{let e=nv(t);e?.focus({preventScroll:!0})})},invokeOnOpen({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!0})})},invokeOnClose({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!1})})},toggleVisibility({event:e,send:t,prop:i}){t({type:i("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});var ny=iQ()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);(0,to.createSplitProps)(ny);var nS=(0,ta.createAnatomy)("radio-group").parts("root","label","item","itemText","itemControl","indicator");nS.build();var nk=e=>e.ids?.root??`radio-group:${e.id}`,nC=e=>e.getById(nk(e)),nE=e=>{let t=CSS.escape(nk(e)),i=`input[type=radio][data-ownedby='${t}']:not([disabled])`;return(0,tI.queryAll)(nC(e),i)},{not:nI}=(0,i$.createGuards)();(0,i$.createMachine)({props:({props:e})=>({orientation:"vertical",...e}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){e("onValueChange")?.({value:t})}})),activeValue:t(()=>({defaultValue:null})),focusedValue:t(()=>({defaultValue:null})),focusVisibleValue:t(()=>({defaultValue:null})),hoveredValue:t(()=>({defaultValue:null})),indicatorRect:t(()=>({defaultValue:null})),fieldsetDisabled:t(()=>({defaultValue:!1})),ssr:t(()=>({defaultValue:!0}))}),refs:()=>({indicatorCleanup:null,focusVisibleValue:null}),computed:{isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled")},entry:["syncIndicatorRect","syncSsr"],exit:["cleanupObserver"],effects:["trackFormControlState","trackFocusVisible"],watch({track:e,action:t,context:i}){e([()=>i.get("value")],()=>{t(["syncIndicatorRect","syncInputElements"])})},on:{SET_VALUE:[{guard:nI("isTrusted"),actions:["setValue","dispatchChangeEvent"]},{actions:["setValue"]}],SET_HOVERED:{actions:["setHovered"]},SET_ACTIVE:{actions:["setActive"]},SET_FOCUSED:{actions:["setFocused"]}},states:{idle:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackFormControlState:({context:e,scope:t})=>(0,tI.trackFormControl)(nC(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("value",e.initial("value"))}}),trackFocusVisible:({scope:e})=>oM({root:e.getRootNode?.()})},actions:{setValue({context:e,event:t}){e.set("value",t.value)},setHovered({context:e,event:t}){e.set("hoveredValue",t.value)},setActive({context:e,event:t}){e.set("activeValue",t.value)},setFocused({context:e,event:t}){e.set("focusedValue",t.value);let i=null!=t.value&&t.focusVisible?t.value:null;e.set("focusVisibleValue",i)},syncInputElements({context:e,scope:t}){nE(t).forEach(t=>{t.checked=t.value===e.get("value")})},cleanupObserver({refs:e}){e.get("indicatorCleanup")?.()},syncSsr({context:e}){e.set("ssr",!1)},syncIndicatorRect({context:e,scope:t,refs:i}){if(i.get("indicatorCleanup")?.(),!t.getById(t.ids?.indicator??`radio-group:${t.id}:indicator`))return;let a=e.get("value"),o=((e,t)=>{if(t)return e.getById(e.ids?.item?.(t)??`radio-group:${e.id}:radio:${t}`)})(t,a);if(null==a||!o)return void e.set("indicatorRect",null);let n=()=>{e.set("indicatorRect",{x:o?.offsetLeft??0,y:o?.offsetTop??0,width:o?.offsetWidth??0,height:o?.offsetHeight??0})};n();let r=tI.resizeObserverBorderBox.observe(o,n);i.set("indicatorCleanup",r)},dispatchChangeEvent({context:e,scope:t}){nE(t).forEach(t=>{let i=t.value===e.get("value");i!==t.checked&&(0,tI.dispatchInputCheckedEvent)(t,{checked:i})})}}}});var nO=iQ()(["dir","disabled","form","getRootNode","id","ids","invalid","name","onValueChange","orientation","readOnly","required","value","defaultValue"]);(0,to.createSplitProps)(nO);var nw=iQ()(["value","disabled","invalid"]);(0,to.createSplitProps)(nw);var nT=(0,ta.createAnatomy)("rating-group").parts("root","label","item","control");nT.build();var nV=e=>e.getById(e.ids?.control??`rating:${e.id}:control`),nP=e=>e.getById(e.ids?.hiddenInput??`rating:${e.id}:input`);(0,i$.createMachine)({props:({props:e})=>({name:"rating",count:5,dir:"ltr",defaultValue:-1,...e,translations:{ratingValueText:e=>`${e} stars`,...e.translations}}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){e("onValueChange")?.({value:t})}})),hoveredValue:t(()=>({defaultValue:-1,onChange(t){e("onHoverChange")?.({hoveredValue:t})}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}),watch({track:e,action:t,prop:i,context:a}){e([()=>i("allowHalf")],()=>{t(["roundValueIfNeeded"])}),e([()=>a.get("value")],()=>{t(["dispatchChangeEvent"])})},computed:{isDisabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled"),isInteractive:({computed:e,prop:t})=>!(e("isDisabled")||t("readOnly")),isHovering:({context:e})=>e.get("hoveredValue")>-1},effects:["trackFormControlState"],on:{SET_VALUE:{actions:["setValue"]},CLEAR_VALUE:{actions:["clearValue"]}},states:{idle:{entry:["clearHoveredValue"],on:{GROUP_POINTER_OVER:{target:"hover"},FOCUS:{target:"focus"},CLICK:{actions:["setValue","focusActiveRadio"]}}},focus:{on:{POINTER_OVER:{actions:["setHoveredValue"]},GROUP_POINTER_LEAVE:{actions:["clearHoveredValue"]},BLUR:{target:"idle"},SPACE:{guard:"isValueEmpty",actions:["setValue"]},CLICK:{actions:["setValue","focusActiveRadio"]},ARROW_LEFT:{actions:["setPrevValue","focusActiveRadio"]},ARROW_RIGHT:{actions:["setNextValue","focusActiveRadio"]},HOME:{actions:["setValueToMin","focusActiveRadio"]},END:{actions:["setValueToMax","focusActiveRadio"]}}},hover:{on:{POINTER_OVER:{actions:["setHoveredValue"]},GROUP_POINTER_LEAVE:[{guard:"isRadioFocused",target:"focus",actions:["clearHoveredValue"]},{target:"idle",actions:["clearHoveredValue"]}],CLICK:{actions:["setValue","focusActiveRadio"]}}}},implementations:{guards:{isInteractive:({prop:e})=>!(e("disabled")||e("readOnly")),isHoveredValueEmpty:({context:e})=>-1===e.get("hoveredValue"),isValueEmpty:({context:e})=>0>=e.get("value"),isRadioFocused:({scope:e})=>!!nV(e)?.contains(e.getActiveElement())},effects:{trackFormControlState:({context:e,scope:t})=>(0,tI.trackFormControl)(nP(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("value",e.initial("value"))}})},actions:{clearHoveredValue({context:e}){e.set("hoveredValue",-1)},focusActiveRadio({scope:e,context:t}){(0,tI.raf)(()=>{var i;let a;return(i=t.get("value"),a=`[role=radio][aria-posinset='${Math.ceil(i)}']`,(0,tI.query)(nV(e),a))?.focus()})},setPrevValue({context:e,prop:t}){let i=t("allowHalf")?.5:1;e.set("value",Math.max(0,e.get("value")-i))},setNextValue({context:e,prop:t}){let i=t("allowHalf")?.5:1,a=-1===e.get("value")?0:e.get("value");e.set("value",Math.min(t("count"),a+i))},setValueToMin({context:e}){e.set("value",1)},setValueToMax({context:e,prop:t}){e.set("value",t("count"))},setValue({context:e,event:t}){let i=e.get("hoveredValue"),a=-1===i?t.value:i;e.set("value",a)},clearValue({context:e}){e.set("value",-1)},setHoveredValue({context:e,prop:t,event:i}){let a=t("allowHalf")&&i.isMidway;e.set("hoveredValue",i.index-.5*!!a)},roundValueIfNeeded({context:e,prop:t}){t("allowHalf")||e.set("value",Math.round(e.get("value")))},dispatchChangeEvent({context:e,scope:t}){var i;let a;i=e.get("value"),(a=nP(t))&&(0,tI.dispatchInputValueEvent)(a,{value:i})}}}});var nR=iQ()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]);(0,to.createSplitProps)(nR);var nN=iQ()(["index"]);(0,to.createSplitProps)(nN);var nz=(0,ta.createAnatomy)("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");nz.build();var n_=e=>new ts(e);n_.empty=()=>new ts({items:[]});var nA=e=>e.getById(e.ids?.hiddenSelect??`select:${e.id}:select`),nF=e=>e.getById(e.ids?.content??`select:${e.id}:content`),nD=e=>e.getById(e.ids?.trigger??`select:${e.id}:trigger`),nL=e=>e.getById(e.ids?.positioner??`select:${e.id}:positioner`),nM=(e,t)=>null==t?null:e.getById(e.ids?.item?.(t)??`select:${e.id}:option:${t}`),{and:nW,not:nB,or:nH}=(0,i$.createGuards)();function n$(e){let t=e.restoreFocus??e.previousEvent?.restoreFocus;return null==t||!!t}(0,i$.createMachine)({props:({props:e})=>({loopFocus:!1,closeOnSelect:!e.multiple,composite:!0,defaultValue:[],...e,collection:e.collection??n_.empty(),positioning:{placement:"bottom-start",gutter:8,...e.positioning}}),context:({prop:e,bindable:t})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:to.isEqual,onChange(t){let i=e("collection").findMany(t);return e("onValueChange")?.({value:t,items:i})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(t){e("onHighlightChange")?.({highlightedValue:t,highlightedItem:e("collection").find(t),highlightedIndex:e("collection").indexOf(t)})}})),currentPlacement:t(()=>({defaultValue:void 0})),fieldsetDisabled:t(()=>({defaultValue:!1})),highlightedItem:t(()=>({defaultValue:null})),selectedItems:t(()=>{let t=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").findMany(t)}})}),refs:()=>({typeahead:{...tI.getByTypeahead.defaultOptions}}),computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>""!==e.get("typeahead").keysSoFar,isDisabled:({prop:e,context:t})=>!!e("disabled")||!!t.get("fieldsetDisabled"),isInteractive:({prop:e})=>!(e("disabled")||e("readOnly")),valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems"))},initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"idle",entry:["syncSelectElement"],watch({context:e,prop:t,track:i,action:a}){i([()=>e.get("value").toString()],()=>{a(["syncSelectedItems","syncSelectElement","dispatchChangeEvent"])}),i([()=>t("open")],()=>{a(["toggleVisibility"])}),i([()=>e.get("highlightedValue")],()=>{a(["syncHighlightedItem"])}),i([()=>t("collection").toString()],()=>{a(["syncCollection"])})},on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]},"CLEAR.CLICK":{actions:["clearSelectedItems","focusTriggerEl"]}},effects:["trackFormControlState"],states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{target:"open",actions:["setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus","highlightFirstSelectedItem"]}],"TRIGGER.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}]}},focused:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{guard:"isTriggerArrowUpEvent",target:"open",actions:["setInitialFocus","highlightComputedLastItem"]},{guard:nH("isTriggerArrowDownEvent","isTriggerEnterEvent"),target:"open",actions:["setInitialFocus","highlightComputedFirstItem"]},{target:"open",actions:["setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}],"TRIGGER.BLUR":{target:"idle"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightFirstSelectedItem"]}],"TRIGGER.ENTER":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_UP":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedLastItem"]}],"TRIGGER.ARROW_DOWN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_LEFT":[{guard:nW(nB("multiple"),"hasSelectedItems"),actions:["selectPreviousItem"]},{guard:nB("multiple"),actions:["selectLastItem"]}],"TRIGGER.ARROW_RIGHT":[{guard:nW(nB("multiple"),"hasSelectedItems"),actions:["selectNextItem"]},{guard:nB("multiple"),actions:["selectFirstItem"]}],"TRIGGER.HOME":{guard:nB("multiple"),actions:["selectFirstItem"]},"TRIGGER.END":{guard:nB("multiple"),actions:["selectLastItem"]},"TRIGGER.TYPEAHEAD":{guard:nB("multiple"),actions:["selectMatchingItem"]}}},open:{tags:["open"],exit:["scrollContentToTop"],effects:["trackDismissableElement","computePlacement","scrollToHighlightedItem"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["clearHighlightedItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"restoreFocus",target:"focused",actions:["invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["invokeOnClose","clearHighlightedItem"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","clearHighlightedItem"]}],"ITEM.CLICK":[{guard:nW("closeOnSelect","isOpenControlled"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{actions:["selectHighlightedItem"]}],"CONTENT.HOME":{actions:["highlightFirstItem"]},"CONTENT.END":{actions:["highlightLastItem"]},"CONTENT.ARROW_DOWN":[{guard:nW("hasHighlightedItem","loop","isLastItemHighlighted"),actions:["highlightFirstItem"]},{guard:"hasHighlightedItem",actions:["highlightNextItem"]},{actions:["highlightFirstItem"]}],"CONTENT.ARROW_UP":[{guard:nW("hasHighlightedItem","loop","isFirstItemHighlighted"),actions:["highlightLastItem"]},{guard:"hasHighlightedItem",actions:["highlightPreviousItem"]},{actions:["highlightLastItem"]}],"CONTENT.TYPEAHEAD":{actions:["highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{loop:({prop:e})=>!!e("loopFocus"),multiple:({prop:e})=>!!e("multiple"),hasSelectedItems:({computed:e})=>!!e("hasSelectedItems"),hasHighlightedItem:({context:e})=>null!=e.get("highlightedValue"),isFirstItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").firstValue,isLastItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").lastValue,closeOnSelect:({prop:e,event:t})=>!!(t.closeOnSelect??e("closeOnSelect")),restoreFocus:({event:e})=>n$(e),isOpenControlled:({prop:e})=>void 0!==e("open"),isTriggerClickEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.CLICK",isTriggerEnterEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ENTER",isTriggerArrowUpEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_UP",isTriggerArrowDownEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_DOWN"},effects:{trackFormControlState:({context:e,scope:t})=>(0,tI.trackFormControl)(nA(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){let t=e.initial("value");e.set("value",t)}}),trackDismissableElement({scope:e,send:t,prop:i}){let a=!0;return iJ(()=>nF(e),{type:"listbox",defer:!0,exclude:[nD(e),e.getById(e.ids?.clearTrigger??`select:${e.id}:clear-trigger`)],onFocusOutside:i("onFocusOutside"),onPointerDownOutside:i("onPointerDownOutside"),onInteractOutside(e){i("onInteractOutside")?.(e),a=!(e.detail.focusable||e.detail.contextmenu)},onDismiss(){t({type:"CLOSE",src:"interact-outside",restoreFocus:a})}})},computePlacement({context:e,prop:t,scope:i}){let a=t("positioning");return e.set("currentPlacement",a.placement),iH(()=>nD(i),()=>nL(i),{defer:!0,...a,onComplete(t){e.set("currentPlacement",t.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:i,event:a}){let o=o=>{let n=e.get("highlightedValue");if(null==n||a.current().type.includes("POINTER"))return;let r=nF(i),l=t("scrollToIndexFn");if(l){let e=t("collection").indexOf(n);l?.({index:e,immediate:o,getElement:()=>nM(i,n)});return}let s=nM(i,n);(0,tI.scrollIntoView)(s,{rootEl:r,block:"nearest"})};return(0,tI.raf)(()=>o(!0)),(0,tI.observeAttributes)(()=>nF(i),{defer:!0,attributes:["data-activedescendant"],callback(){o(!1)}})}},actions:{reposition({context:e,prop:t,scope:i,event:a}){iH(nD(i),()=>nL(i),{...t("positioning"),...a.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},toggleVisibility({send:e,prop:t,event:i}){e({type:t("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:i})},highlightPreviousItem({context:e,prop:t}){let i=e.get("highlightedValue");if(null==i)return;let a=t("collection").getPreviousValue(i,1,t("loopFocus"));null!=a&&e.set("highlightedValue",a)},highlightNextItem({context:e,prop:t}){let i=e.get("highlightedValue");if(null==i)return;let a=t("collection").getNextValue(i,1,t("loopFocus"));null!=a&&e.set("highlightedValue",a)},highlightFirstItem({context:e,prop:t}){let i=t("collection").firstValue;e.set("highlightedValue",i)},highlightLastItem({context:e,prop:t}){let i=t("collection").lastValue;e.set("highlightedValue",i)},setInitialFocus({scope:e}){(0,tI.raf)(()=>{let t=(0,tI.getInitialFocus)({root:nF(e)});t?.focus({preventScroll:!0})})},focusTriggerEl({event:e,scope:t}){n$(e)&&(0,tI.raf)(()=>{let e=nD(t);e?.focus({preventScroll:!0})})},selectHighlightedItem({context:e,prop:t,event:i}){let a=i.value??e.get("highlightedValue");null!=a&&t("collection").has(a)&&(t("onSelect")?.({value:a}),a=t("deselectable")&&!t("multiple")&&e.get("value").includes(a)?null:a,e.set("value",e=>null==a?[]:t("multiple")?(0,to.addOrRemove)(e,a):[a]))},highlightComputedFirstItem({context:e,prop:t,computed:i}){let a=t("collection"),o=i("hasSelectedItems")?a.sort(e.get("value"))[0]:a.firstValue;e.set("highlightedValue",o)},highlightComputedLastItem({context:e,prop:t,computed:i}){let a=t("collection"),o=i("hasSelectedItems")?a.sort(e.get("value"))[0]:a.lastValue;e.set("highlightedValue",o)},highlightFirstSelectedItem({context:e,prop:t,computed:i}){if(!i("hasSelectedItems"))return;let a=t("collection").sort(e.get("value"))[0];e.set("highlightedValue",a)},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:i,refs:a}){let o=t("collection").search(i.key,{state:a.get("typeahead"),currentValue:e.get("highlightedValue")});null!=o&&e.set("highlightedValue",o)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:i}){t("onSelect")?.({value:i.value});let a=t("deselectable")&&!t("multiple")&&e.get("value").includes(i.value)?null:i.value;e.set("value",e=>null==a?[]:t("multiple")?(0,to.addOrRemove)(e,a):[a])},clearItem({context:e,event:t}){e.set("value",e=>e.filter(e=>e!==t.value))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},selectPreviousItem({context:e,prop:t}){let[i]=e.get("value"),a=t("collection").getPreviousValue(i);a&&e.set("value",[a])},selectNextItem({context:e,prop:t}){let[i]=e.get("value"),a=t("collection").getNextValue(i);a&&e.set("value",[a])},selectFirstItem({context:e,prop:t}){let i=t("collection").firstValue;i&&e.set("value",[i])},selectLastItem({context:e,prop:t}){let i=t("collection").lastValue;i&&e.set("value",[i])},selectMatchingItem({context:e,prop:t,event:i,refs:a}){let o=t("collection").search(i.key,{state:a.get("typeahead"),currentValue:e.get("value")[0]});null!=o&&e.set("value",[o])},scrollContentToTop({prop:e,scope:t}){if(e("scrollToIndexFn")){let i=e("collection").firstValue;e("scrollToIndexFn")?.({index:0,immediate:!0,getElement:()=>nM(t,i)})}else nF(t)?.scrollTo(0,0)},invokeOnOpen({prop:e,context:t}){e("onOpenChange")?.({open:!0,value:t.get("value")})},invokeOnClose({prop:e,context:t}){e("onOpenChange")?.({open:!1,value:t.get("value")})},syncSelectElement({context:e,prop:t,scope:i}){let a=nA(i);if(a){if(0===e.get("value").length&&!t("multiple")){a.selectedIndex=-1;return}for(let t of a.options)t.selected=e.get("value").includes(t.value)}},syncCollection({context:e,prop:t}){let i=t("collection"),a=i.find(e.get("highlightedValue"));a&&e.set("highlightedItem",a);let o=i.findMany(e.get("value"));e.set("selectedItems",o)},syncSelectedItems({context:e,prop:t}){let i=t("collection"),a=e.get("selectedItems"),o=e.get("value").map(e=>a.find(t=>i.getItemValue(t)===e)||i.find(e));e.set("selectedItems",o)},syncHighlightedItem({context:e,prop:t}){let i=t("collection"),a=e.get("highlightedValue"),o=a?i.find(a):null;e.set("highlightedItem",o)},dispatchChangeEvent({scope:e}){queueMicrotask(()=>{let t=nA(e);if(!t)return;let i=new(e.getWin()).Event("change",{bubbles:!0,composed:!0});t.dispatchEvent(i)})}}}});var nj=iQ()(["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","dir","disabled","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]);(0,to.createSplitProps)(nj);var nG=iQ()(["item","persistFocus"]);(0,to.createSplitProps)(nG);var nU=iQ()(["id"]);(0,to.createSplitProps)(nU);var nq=iQ()(["htmlFor"]);(0,to.createSplitProps)(nq);var nY=(0,ta.createAnatomy)("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");nY.build();var nK=(e,t)=>e.getById(e.ids?.hiddenInput?.(t)??`slider:${e.id}:input:${t}`),nX=e=>e.getById(e.ids?.control??`slider:${e.id}:control`),nZ=(e,t)=>{let{prop:i,scope:a,refs:o}=e,n=nX(a);if(!n)return;let r=o.get("thumbDragOffset"),l={x:t.x-(r?.x??0),y:t.y-(r?.y??0)},s=(0,tI.getRelativePoint)(l,n).getPercentValue({orientation:i("orientation"),dir:i("dir"),inverted:{y:!0}});return(0,to.getPercentValue)(s,i("min"),i("max"),i("step"))};function nJ(e,t){let{context:i,prop:a}=e,o=a("step")*a("minStepsBetweenThumbs");return(0,to.getValueRanges)(i.get("value"),a("min"),a("max"),o)[t]}function nQ(e,t,i){let{prop:a}=e,o=nJ(e,i),n=(0,to.snapValueToStep)(t,a("min"),a("max"),a("step"));return(0,to.clampValue)(n,o.min,o.max)}function n0(e,t){let{context:i,prop:a}=e,o=i.get("value"),n=a("max");if(o[t]===n){let e=t;for(;e>0&&o[e-1]===n;)e-=1;return e}return t}var n1=(e,t,i,a,o)=>(0,to.getValueRanges)(e,t,i,o*a).map(e=>{let o=(0,to.snapValueToStep)(e.value,e.min,e.max,a),n=(0,to.clampValue)(o,e.min,e.max);if(!(0,to.isValueWithinRange)(n,t,i))throw Error("[zag-js/slider] The configured `min`, `max`, `step` or `minStepsBetweenThumbs` values are invalid");return n});(0,i$.createMachine)({props({props:e}){let t=e.min??0,i=e.max??100,a=e.step??1,o=e.defaultValue??[t],n=e.minStepsBetweenThumbs??0;return{dir:"ltr",thumbAlignment:"contain",origin:"start",orientation:"horizontal",minStepsBetweenThumbs:n,...e,defaultValue:n1(o,t,i,a,n),value:e.value?n1(e.value,t,i,a,n):void 0,max:i,step:a,min:t}},initialState:()=>"idle",context:({prop:e,bindable:t,getContext:i})=>({thumbSize:t(()=>({defaultValue:e("thumbSize")||null})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:to.isEqual,hash:e=>e.join(","),onChange(t){e("onValueChange")?.({value:t})}})),focusedIndex:t(()=>({defaultValue:-1,onChange(t){let a=i();e("onFocusChange")?.({focusedIndex:t,value:a.get("value")})}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}),refs:()=>({thumbDragOffset:null}),computed:{isHorizontal:({prop:e})=>"horizontal"===e("orientation"),isVertical:({prop:e})=>"vertical"===e("orientation"),isRtl:({prop:e})=>"horizontal"===e("orientation")&&"rtl"===e("dir"),isDisabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled"),isInteractive:({prop:e,computed:t})=>!(e("readOnly")||t("isDisabled")),hasMeasuredThumbSize:({context:e})=>null!=e.get("thumbSize"),valuePercent:(0,i$.memo)(({context:e,prop:t})=>[e.get("value"),t("min"),t("max")],([e,t,i])=>e.map(e=>100*(0,to.getValuePercent)(e,t,i)))},watch({track:e,action:t,context:i,computed:a,send:o}){e([()=>i.hash("value")],()=>{t(["syncInputElements","dispatchChangeEvent"])}),e([()=>a("isDisabled")],()=>{a("isDisabled")&&o({type:"POINTER_CANCEL"})})},effects:["trackFormControlState","trackThumbSize"],on:{SET_VALUE:[{guard:"hasIndex",actions:["setValueAtIndex","invokeOnChangeEnd"]},{actions:["setValue","invokeOnChangeEnd"]}],INCREMENT:{actions:["incrementThumbAtIndex","invokeOnChangeEnd"]},DECREMENT:{actions:["decrementThumbAtIndex","invokeOnChangeEnd"]}},states:{idle:{on:{POINTER_DOWN:{target:"dragging",actions:["setClosestThumbIndex","setPointerValue","focusActiveThumb"]},FOCUS:{target:"focus",actions:["setFocusedIndex"]},THUMB_POINTER_DOWN:{target:"dragging",actions:["setFocusedIndex","setThumbDragOffset","focusActiveThumb"]}}},focus:{entry:["focusActiveThumb"],on:{POINTER_DOWN:{target:"dragging",actions:["setClosestThumbIndex","setPointerValue","focusActiveThumb"]},THUMB_POINTER_DOWN:{target:"dragging",actions:["setFocusedIndex","setThumbDragOffset","focusActiveThumb"]},ARROW_DEC:{actions:["decrementThumbAtIndex","invokeOnChangeEnd"]},ARROW_INC:{actions:["incrementThumbAtIndex","invokeOnChangeEnd"]},HOME:{actions:["setFocusedThumbToMin","invokeOnChangeEnd"]},END:{actions:["setFocusedThumbToMax","invokeOnChangeEnd"]},BLUR:{target:"idle",actions:["clearFocusedIndex"]}}},dragging:{entry:["focusActiveThumb"],effects:["trackPointerMove"],on:{POINTER_UP:{target:"focus",actions:["invokeOnChangeEnd","clearThumbDragOffset"]},POINTER_MOVE:{actions:["setPointerValue"]},POINTER_CANCEL:{target:"idle",actions:["clearFocusedIndex","clearThumbDragOffset"]}}}},implementations:{guards:{hasIndex:({event:e})=>null!=e.index},effects:{trackFormControlState:({context:e,scope:t})=>(0,tI.trackFormControl)(t.getById(t.ids?.root??`slider:${t.id}`),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("value",e.initial("value"))}}),trackPointerMove:({scope:e,send:t})=>(0,tI.trackPointerMove)(e.getDoc(),{onPointerMove(e){t({type:"POINTER_MOVE",point:e.point})},onPointerUp(){t({type:"POINTER_UP"})}}),trackThumbSize({context:e,scope:t,prop:i}){if("contain"!==i("thumbAlignment")||i("thumbSize"))return;let a=t=>{let i,a={left:t?.offsetLeft??0,top:t?.offsetTop??0,width:t?.offsetWidth??0,height:t?.offsetHeight??0},o=(0,to.pick)(a,["width","height"]);i=e.get("thumbSize"),(i?.width!==o?.width||i?.height!==o?.height)&&e.set("thumbSize",o)},o=(0,tI.queryAll)(nX(t),"[role=slider]");o.forEach(a);let n=o.map(e=>tI.resizeObserverBorderBox.observe(e,()=>a(e)));return(0,to.callAll)(...n)}},actions:{dispatchChangeEvent({context:e,scope:t}){e.get("value").forEach((e,i)=>{let a=nK(t,i);a&&(0,tI.dispatchInputValueEvent)(a,{value:e})})},syncInputElements({context:e,scope:t}){e.get("value").forEach((e,i)=>{let a=nK(t,i);(0,tI.setElementValue)(a,e.toString())})},invokeOnChangeEnd({prop:e,context:t}){queueMicrotask(()=>{e("onValueChangeEnd")?.({value:t.get("value")})})},setClosestThumbIndex(e){let{context:t,event:i}=e,a=nZ(e,i.point);if(null==a)return;let o=function(e,t){let{context:i}=e,a=i.get("value"),o=0,n=Math.abs(a[0]-t);for(let e=1;e{let{context:t,event:i}=e,a=nZ(e,i.point);if(null==a)return;let o=t.get("focusedIndex"),n=nQ(e,a,o);t.set("value",e=>(0,to.setValueAtIndex)(e,o,n))})},focusActiveThumb({scope:e,context:t}){(0,tI.raf)(()=>{var i;let a=(i=t.get("focusedIndex"),e.getById(e.ids?.thumb?.(i)??`slider:${e.id}:thumb:${i}`));a?.focus({preventScroll:!0})})},decrementThumbAtIndex(e){let{context:t,event:i}=e,a=function(e,t,i){let{context:a,prop:o}=e,n=t??a.get("focusedIndex"),r=nJ(e,n),l=(0,to.getPreviousStepValue)(n,{...r,step:i??o("step"),values:a.get("value")});return l[n]=(0,to.clampValue)(l[n],r.min,r.max),l}(e,i.index,i.step);t.set("value",a)},incrementThumbAtIndex(e){let{context:t,event:i}=e,a=function(e,t,i){let{context:a,prop:o}=e,n=t??a.get("focusedIndex"),r=nJ(e,n),l=(0,to.getNextStepValue)(n,{...r,step:i??o("step"),values:a.get("value")});return l[n]=(0,to.clampValue)(l[n],r.min,r.max),l}(e,i.index,i.step);t.set("value",a)},setFocusedThumbToMin(e){let{context:t}=e,i=t.get("focusedIndex"),{min:a}=nJ(e,i);t.set("value",e=>(0,to.setValueAtIndex)(e,i,a))},setFocusedThumbToMax(e){let{context:t}=e,i=t.get("focusedIndex"),{max:a}=nJ(e,i);t.set("value",e=>(0,to.setValueAtIndex)(e,i,a))},setValueAtIndex(e){let{context:t,event:i}=e,a=nQ(e,i.value,i.index);t.set("value",e=>(0,to.setValueAtIndex)(e,i.index,a))},setValue(e){let{context:t,event:i}=e,a=i.value.map((t,i)=>nQ(e,t,i));t.set("value",a)}}}});var n2=iQ()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]);(0,to.createSplitProps)(n2);var n5=iQ()(["index","name"]);(0,to.createSplitProps)(n5);var n3=iQ()(["value"]);(0,to.createSplitProps)(n3);var n4=(0,ta.createAnatomy)("splitter").parts("root","panel","resizeTrigger","resizeTriggerIndicator");n4.build();var n6=e=>e.ids?.root??`splitter:${e.id}`,n8=e=>`splitter:${e.id}:global-cursor`,n7=e=>e.getById(n6(e));function n9(e,t,i=10){return e.toFixed(i)===t.toFixed(i)?0:e>t?1:-1}function re(e,t,i=10){return null!=e&&null!=t&&0===n9(e,t,i)}function rt(e,t,i){if(e.length!==t.length)return!1;for(let a=0;ae===t||e.id===t.id)}function ra(e,t,i){var a;let o=(a=t.id,e.findIndex(e=>e.id===a)),n=o===e.length-1?[o-1,o]:[o,o+1],r=i[o];return{...t,panelSize:r,pivotIndices:n}}function ro({panels:e,index:t,size:i}){let a=e[t];(0,to.ensure)(a,()=>`Panel data not found for index ${t}`);let{collapsedSize:o=0,collapsible:n,maxSize:r=100,minSize:l=0}=a;return 0>n9(i,l)&&(i=n&&0>n9(i,(o+l)/2)?o:l),i=parseFloat((i=Math.min(r,i)).toFixed(10))}function rn(e){let{delta:t,initialSize:i,panels:a,pivotIndices:o,prevSize:n,trigger:r}=e;if(re(t,0))return i;let l=[...i],[s,d]=o;(0,to.ensure)(s,()=>"Invalid first pivot index"),(0,to.ensure)(d,()=>"Invalid second pivot index");let c=0;if("keyboard"===r){{let e=t<0?d:s,o=a[e];(0,to.ensure)(o,()=>`Panel data not found for index ${e}`);let{collapsedSize:n=0,collapsible:r,minSize:l=0}=o;if(r){let a=i[e];if((0,to.ensure)(a,()=>`Previous size not found for panel index ${e}`),re(a,n)){let e=l-a;n9(e,Math.abs(t))>0&&(t=t<0?0-e:e)}}}{let e=t<0?s:d,o=a[e];(0,to.ensure)(o,()=>`No panel data found for index ${e}`);let{collapsedSize:n=0,collapsible:r,minSize:l=0}=o;if(r){let a=i[e];if((0,to.ensure)(a,()=>`Previous size not found for panel index ${e}`),re(a,l)){let e=a-n;n9(e,Math.abs(t))>0&&(t=t<0?0-e:e)}}}}{let e=t<0?1:-1,o=t<0?d:s,n=0;for(;;){let t=i[o];if((0,to.ensure)(t,()=>`Previous size not found for panel index ${o}`),n+=ro({panels:a,index:o,size:100})-t,(o+=e)<0||o>=a.length)break}let r=Math.min(Math.abs(t),Math.abs(n));t=t<0?0-r:r}{let e=t<0?s:d;for(;e>=0&&e`Previous size not found for panel index ${e}`);let r=ro({panels:a,index:e,size:n-o});if(!re(n,r)&&(c+=n-r,l[e]=r,c.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?e--:e++}}if(rt(n,l))return n;{let e=t<0?d:s,o=i[e];(0,to.ensure)(o,()=>`Previous size not found for panel index ${e}`);let n=o+c,r=ro({panels:a,index:e,size:n});if(l[e]=r,!re(r,n)){let e=n-r,i=t<0?d:s;for(;i>=0&&i`Previous size not found for panel index ${i}`);let n=ro({panels:a,index:i,size:o+e});if(re(o,n)||(e-=n-o,l[i]=n),re(e,0))break;t>0?i--:i++}}}return re(l.reduce((e,t)=>t+e,0),100)?l:n}function rr({size:e,panels:t}){let i=[...e],a=i.reduce((e,t)=>e+t,0);if(i.length!==t.length)throw Error(`Invalid ${t.length} panel size: ${i.map(e=>`${e}%`).join(", ")}`);if(!re(a,100)&&i.length>0)for(let e=0;e`No size data found for index ${e}`);let o=100/a*t;i[e]=o}let o=0;for(let e=0;e`No size data found for index ${e}`);let n=ro({panels:t,index:e,size:a});a!=n&&(o+=a-n,i[e]=n)}if(!re(o,0))for(let e=0;e`No size data found for index ${e}`);let n=ro({panels:t,index:e,size:a+o});if(a!==n&&(o-=n-a,i[e]=n,re(o,0)))break}return i}function rl(e,t){let{refs:i,prop:a,context:o}=e,n=a("panels"),r=a("onCollapse"),l=a("onExpand"),s=i.get("panelIdToLastNotifiedSizeMap");o.set("size",t),t.forEach((e,t)=>{let i=n[t];(0,to.ensure)(i,()=>`Panel data not found for index ${t}`);let{collapsedSize:a=0,collapsible:o,id:d}=i,c=s.get(d);(null==c||e!==c)&&(s.set(d,e),o&&(r||l)&&((null==c||re(c,a))&&!re(e,a)&&l?.({panelId:d,size:e}),r&&(null==c||!re(c,a))&&re(e,a)&&r?.({panelId:d,size:e})))})}(0,i$.createMachine)({props:({props:e})=>((0,to.ensureProps)(e,["panels"]),{orientation:"horizontal",defaultSize:[],dir:"ltr",...e,panels:e.panels.sort((e,t)=>{let i=e.order,a=t.order;return null==i&&null==a?0:null==i?-1:null==a?1:i-a})}),initialState:()=>"idle",context:({prop:e,bindable:t,getContext:i,getRefs:a})=>({size:t(()=>({value:e("size"),defaultValue:e("defaultSize"),isEqual:(e,t)=>null!=t&&rt(e,t),onChange(t){let o=i(),n=Object.fromEntries(a().get("panelSizeBeforeCollapse").entries()),r=o.get("dragState")?.resizeTriggerId??null,l=e("panels").map(e=>e.id).sort().join(":");e("onResize")?.({size:t,layout:l,resizeTriggerId:r,expandToSizes:n})}})),dragState:t(()=>({defaultValue:null})),keyboardState:t(()=>({defaultValue:null}))}),watch({track:e,action:t,prop:i}){e([()=>{var e;return(e=i("panels")).map(e=>e.id).sort().map(t=>JSON.stringify(e.find(e=>e.id===t))).join(",")}],()=>{t(["syncSize"])})},refs:()=>({panelSizeBeforeCollapse:new Map,prevDelta:0,panelIdToLastNotifiedSizeMap:new Map}),computed:{horizontal:({prop:e})=>"horizontal"===e("orientation")},on:{"SIZE.SET":{actions:["setSize"]},"PANEL.COLLAPSE":{actions:["collapsePanel"]},"PANEL.EXPAND":{actions:["expandPanel"]},"PANEL.RESIZE":{actions:["resizePanel"]}},entry:["syncSize"],exit:["clearGlobalCursor"],states:{idle:{entry:["clearDraggingState","clearKeyboardState"],on:{POINTER_OVER:{target:"hover:temp",actions:["setKeyboardState"]},FOCUS:{target:"focused",actions:["setKeyboardState"]},POINTER_DOWN:{target:"dragging",actions:["setDraggingState"]}}},"hover:temp":{effects:["waitForHoverDelay"],on:{HOVER_DELAY:{target:"hover"},POINTER_DOWN:{target:"dragging",actions:["setDraggingState"]},POINTER_LEAVE:{target:"idle"}}},hover:{tags:["focus"],on:{POINTER_DOWN:{target:"dragging",actions:["setDraggingState"]},POINTER_LEAVE:{target:"idle"}}},focused:{tags:["focus"],on:{BLUR:{target:"idle"},ENTER:{actions:["collapseOrExpandPanel"]},POINTER_DOWN:{target:"dragging",actions:["setDraggingState"]},KEYBOARD_MOVE:{actions:["invokeOnResizeStart","setKeyboardValue","invokeOnResizeEnd"]},"FOCUS.CYCLE":{actions:["focusNextResizeTrigger"]}}},dragging:{tags:["focus"],effects:["trackPointerMove"],entry:["invokeOnResizeStart"],on:{POINTER_MOVE:{actions:["setPointerValue","setGlobalCursor"]},POINTER_UP:{target:"idle",actions:["invokeOnResizeEnd","clearGlobalCursor"]}}}},implementations:{effects:{waitForHoverDelay:({send:e})=>(0,to.setRafTimeout)(()=>{e({type:"HOVER_DELAY"})},250),trackPointerMove:({scope:e,send:t})=>{let i=e.getDoc();return(0,tI.trackPointerMove)(i,{onPointerMove(e){t({type:"POINTER_MOVE",point:e.point})},onPointerUp(){t({type:"POINTER_UP"})}})}},actions:{setSize(e){let{context:t,event:i,prop:a}=e,o=i.size,n=t.get("size"),r=rr({size:o,panels:a("panels")});(0,to.isEqual)(n,r)||rl(e,r)},syncSize({context:e,prop:t}){let i=t("panels"),a=e.get("size"),o=null;0===a.length&&(o=function({panels:e,size:t}){let i=Array(e.length),a=0,o=100;for(let n=0;n`Panel data not found for index ${n}`);let l=t[n];null!=l&&(a++,i[n]=l,o-=l)}for(let n=0;n`Panel data not found for index ${n}`),null!=t[n])continue;let l=o/(e.length-a);a++,i[n]=l,o-=l}return i}({panels:i,size:e.initial("size")}));let n=rr({size:o??a,panels:i});(0,to.isEqual)(a,n)||e.set("size",n)},setDraggingState({context:e,event:t,prop:i,scope:a}){let o=i("orientation"),n=e.get("size"),r=t.id;if(!n7(a))return;let l=a.getById(a.ids?.resizeTrigger?.(r)??`splitter:${a.id}:splitter:${r}`);(0,to.ensure)(l,()=>`Drag handle element not found for id "${r}"`);let s="horizontal"===o?t.point.x:t.point.y;e.set("dragState",{resizeTriggerId:t.id,resizeTriggerRect:l.getBoundingClientRect(),initialCursorPosition:s,initialSize:n})},clearDraggingState({context:e}){e.set("dragState",null)},setKeyboardState({context:e,event:t}){e.set("keyboardState",{resizeTriggerId:t.id})},clearKeyboardState({context:e}){e.set("keyboardState",null)},collapsePanel(e){let{context:t,prop:i,event:a,refs:o}=e,n=t.get("size"),r=i("panels"),l=r.find(e=>e.id===a.id);if((0,to.ensure)(l,()=>`Panel data not found for id "${a.id}"`),l.collapsible){let{collapsedSize:t=0,panelSize:i,pivotIndices:a}=ra(r,l,n);if((0,to.ensure)(i,()=>`Panel size not found for panel "${l.id}"`),!re(i,t)){o.get("panelSizeBeforeCollapse").set(l.id,i);let s=rn({delta:ri(r,l)===r.length-1?i-t:t-i,initialSize:n,panels:r,pivotIndices:a,prevSize:n,trigger:"imperative-api"});(0,to.isEqual)(n,s)||rl(e,s)}}},expandPanel(e){let{context:t,prop:i,event:a,refs:o}=e,n=i("panels"),r=t.get("size"),l=n.find(e=>e.id===a.id);if((0,to.ensure)(l,()=>`Panel data not found for id "${a.id}"`),l.collapsible){let{collapsedSize:t=0,panelSize:i=0,minSize:s=0,pivotIndices:d}=ra(n,l,r),c=a.minSize??s;if(re(i,t)){let t=o.get("panelSizeBeforeCollapse").get(l.id),a=null!=t&&t>=c?t:c,s=rn({delta:ri(n,l)===n.length-1?i-a:a-i,initialSize:r,panels:n,pivotIndices:d,prevSize:r,trigger:"imperative-api"});(0,to.isEqual)(r,s)||rl(e,s)}}},resizePanel(e){var t;let i,{context:a,prop:o,event:n}=e,r=a.get("size"),l=o("panels"),s=(t=n.id,i=l.find(e=>e.id===t),(0,to.ensure)(i,()=>`Panel data not found for id "${t}"`),i),d=n.size,{panelSize:c,pivotIndices:u}=ra(l,s,r);(0,to.ensure)(c,()=>`Panel size not found for panel "${s.id}"`);let g=rn({delta:ri(l,s)===l.length-1?c-d:d-c,initialSize:r,panels:l,pivotIndices:u,prevSize:r,trigger:"imperative-api"});(0,to.isEqual)(r,g)||rl(e,g)},setPointerValue(e){let{context:t,event:i,prop:a,scope:o}=e,n=t.get("dragState");if(!n)return;let{resizeTriggerId:r,initialSize:l,initialCursorPosition:s}=n,d=a("panels"),c=n7(o);(0,to.ensure)(c,()=>"Panel group element not found");let u=r.split(":").map(e=>d.findIndex(t=>t.id===e)),g="horizontal"===a("orientation"),p=g?i.point.x:i.point.y,h=c.getBoundingClientRect(),m=g?h.width:h.height,f=t.get("size"),v=rn({delta:(p-s)/m*100,initialSize:l??f,panels:d,pivotIndices:u,prevSize:f,trigger:"mouse-or-touch"});(0,to.isEqual)(f,v)||rl(e,v)},setKeyboardValue(e){let{context:t,event:i,prop:a}=e,o=a("panels"),n=i.id,r=i.delta,l=n.split(":").map(e=>o.findIndex(t=>t.id===e)),s=t.get("size"),d=rn({delta:r,initialSize:s,panels:o,pivotIndices:l,prevSize:s,trigger:"keyboard"});(0,to.isEqual)(s,d)||rl(e,d)},invokeOnResizeEnd({context:e,prop:t}){queueMicrotask(()=>{let i=e.get("dragState");t("onResizeEnd")?.({size:e.get("size"),resizeTriggerId:i?.resizeTriggerId??null})})},invokeOnResizeStart({prop:e}){queueMicrotask(()=>{e("onResizeStart")?.()})},collapseOrExpandPanel(e){let{context:t,prop:i}=e,a=i("panels"),o=t.get("size"),n=t.get("keyboardState")?.resizeTriggerId,[r,l]=n?.split(":")??[],s=a.findIndex(e=>e.id===r);if(-1===s)return;let d=a[s];(0,to.ensure)(d,()=>`No panel data found for index ${s}`);let c=o[s],{collapsedSize:u=0,collapsible:g,minSize:p=0}=d;if(null!=c&&g){let i=[r,l].map(e=>a.findIndex(t=>t.id===e)),n=rn({delta:re(c,u)?p-u:u-c,initialSize:t.initial("size"),panels:a,pivotIndices:i,prevSize:o,trigger:"keyboard"});(0,to.isEqual)(o,n)||rl(e,n)}},setGlobalCursor({context:e,scope:t,prop:i}){let a=e.get("dragState");if(!a)return;let o=i("panels"),n="horizontal"===i("orientation"),[r]=a.resizeTriggerId.split(":"),l=o.findIndex(e=>e.id===r),s=o[l],d=function(e,t,i){let[a,o]=i.split(":"),n=t.findIndex(e=>e.id===a),r=t.findIndex(e=>e.id===o),{valueMax:l,valueMin:s,valueNow:d}=function({size:e,panels:t,pivotIndices:i}){let a=0,o=100,n=0,r=0,l=i[0];return(0,to.ensure)(l,()=>"No pivot index found"),t.forEach((e,t)=>{let{maxSize:i=100,minSize:s=0}=e;t===l?(a=s,o=i):(n+=s,r+=i)}),{valueMax:Math.min(o,100-n),valueMin:Math.max(a,100-r),valueNow:e[l]}}({size:e,panels:t,pivotIndices:[n,r]});return{beforeId:a,afterId:o,valueMax:Math.round(l),valueMin:Math.round(s),valueNow:null!=d?Math.round(d):void 0}}(e.get("size"),o,a.resizeTriggerId),c=re(d.valueNow,d.valueMin)||re(d.valueNow,s.collapsedSize);((e,t,i,a)=>{let o,n=e.getById(n8(e)),r=`* { cursor: ${(o=i?"col-resize":"row-resize",t.isAtMin&&(o=i?"e-resize":"s-resize"),t.isAtMax&&(o=i?"w-resize":"n-resize"),o)} !important; }`;if(n)n.textContent=r;else{let t=e.getDoc().createElement("style");a&&(t.nonce=a),t.id=n8(e),t.textContent=r,e.getDoc().head.appendChild(t)}})(t,{isAtMin:c,isAtMax:re(d.valueNow,d.valueMax)},n,i("nonce"))},clearGlobalCursor({scope:e}){let t;t=e.getById(n8(e)),t?.remove()},focusNextResizeTrigger({event:e,scope:t}){let i=(0,tI.queryAll)(n7(t),`[role=separator][data-ownedby='${CSS.escape(n6(t))}']`),a=i.findIndex(t=>t.dataset.id===e.id),o=e.shiftKey?(0,to.prev)(i,a):(0,to.next)(i,a);o?.focus()}}}});var rs=iQ()(["dir","getRootNode","id","ids","onResize","onResizeStart","onResizeEnd","onCollapse","onExpand","orientation","size","defaultSize","panels","keyboardResizeBy","nonce"]);(0,to.createSplitProps)(rs);var rd=iQ()(["id"]);(0,to.createSplitProps)(rd);var rc=iQ()(["disabled","id"]);(0,to.createSplitProps)(rc);var ru=(0,ta.createAnatomy)("switch").parts("root","label","control","thumb");ru.build();var rg=e=>e.getById(e.ids?.hiddenInput??`switch:${e.id}:input`),{not:rp}=(0,i$.createGuards)();(0,i$.createMachine)({props:({props:e})=>({defaultChecked:!1,label:"switch",value:"on",...e}),initialState:()=>"ready",context:({prop:e,bindable:t})=>({checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(t){e("onCheckedChange")?.({checked:t})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}),computed:{isDisabled:({context:e,prop:t})=>t("disabled")||e.get("fieldsetDisabled")},watch({track:e,prop:t,context:i,action:a}){e([()=>t("disabled")],()=>{a(["removeFocusIfNeeded"])}),e([()=>i.get("checked")],()=>{a(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:rp("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:rp("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({computed:e,scope:t,context:i}){if(!e("isDisabled"))return(0,tI.trackPress)({pointerNode:t.getById(t.ids?.root??`switch:${t.id}`),keyboardNode:rg(t),isValidKey:e=>" "===e.key,onPress:()=>i.set("active",!1),onPressStart:()=>i.set("active",!0),onPressEnd:()=>i.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("isDisabled"))return oM({root:t.getRootNode()})},trackFormControlState:({context:e,send:t,scope:i})=>(0,tI.trackFormControl)(rg(i),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){t({type:"CHECKED.SET",checked:!!e.initial("checked"),src:"form-reset"})}})},actions:{setContext({context:e,event:t}){for(let i in t.context)e.set(i,t.context[i])},syncInputElement({context:e,scope:t}){let i=rg(t);i&&(0,tI.setElementChecked)(i,!!e.get("checked"))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.set("focused",!1)},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e}){e.set("checked",!e.get("checked"))},dispatchChangeEvent({context:e,scope:t}){let i=rg(t);(0,tI.dispatchInputCheckedEvent)(i,{checked:e.get("checked")})}}}});var rh=iQ()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);(0,to.createSplitProps)(rh);let rm=ac.extendWith("itemBody"),rf=(0,ta.createAnatomy)("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),rv=(0,ta.createAnatomy)("alert").parts("title","description","root","indicator","content"),rb=(0,ta.createAnatomy)("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),rx=(0,ta.createAnatomy)("blockquote").parts("root","icon","content","caption"),ry=(0,ta.createAnatomy)("card").parts("root","header","body","footer","title","description"),rS=(0,ta.createAnatomy)("checkbox-card",["root","control","label","description","addon","indicator","content"]),rk=(0,ta.createAnatomy)("data-list").parts("root","item","itemLabel","itemValue"),rC=os.extendWith("header","body","footer","backdrop"),rE=os.extendWith("header","body","footer","backdrop"),rI=ou.extendWith("textarea"),rO=(0,ta.createAnatomy)("empty-state",["root","content","indicator","title","description"]),rw=oh.fieldAnatomy.extendWith("requiredIndicator"),rT=om.extendWith("content"),rV=oy.extendWith("itemContent","dropzoneContent","fileText"),rP=(0,ta.createAnatomy)("list").parts("root","item","indicator"),rR=o4.extendWith("itemCommand"),rN=(0,ta.createAnatomy)("select").parts("root","field","indicator"),rz=nm.extendWith("header","body","footer"),r_=nS.extendWith("itemAddon","itemIndicator"),rA=r_.extendWith("itemContent","itemDescription"),rF=nT.extendWith("itemIndicator"),rD=nz.extendWith("indicatorGroup"),rL=ad.extendWith("indicatorGroup","empty"),rM=nY.extendWith("markerIndicator"),rW=(0,ta.createAnatomy)("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),rB=(0,ta.createAnatomy)("status").parts("root","indicator"),rH=(0,ta.createAnatomy)("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),r$=ru.extendWith("indicator"),rj=(0,ta.createAnatomy)("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),rG=(0,ta.createAnatomy)("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),rU=(0,ta.createAnatomy)("tabs").parts("root","trigger","list","content","contentGroup","indicator"),rq=(0,ta.createAnatomy)("tag").parts("root","label","closeTrigger","startElement","endElement"),rY=(0,ta.createAnatomy)("timeline").parts("root","item","content","separator","indicator","connector","title","description"),rK=aK.extendWith("channelText"),rX=(0,ta.createAnatomy)("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]),rZ=n4.extendWith("resizeTriggerSeparator","resizeTriggerIndicator");ab.extendWith("valueText");let rJ={className:"chakra-accordion",slots:rm.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}},rQ={className:"chakra-action-bar",slots:rf.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}},r0={slots:rv.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",shadowColor:"var(--outline-shadow, var(--outline-shadow-legacy))"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}};var r1=(0,ta.createAnatomy)("avatar").parts("root","image","fallback");r1.build();var r2=e=>e.getById(e.ids?.image??`avatar:${e.id}:image`);(0,i$.createMachine)({initialState:()=>"loading",effects:["trackImageRemoval","trackSrcChange"],on:{"src.change":{target:"loading"},"img.unmount":{target:"error"}},states:{loading:{entry:["checkImageStatus"],on:{"img.loaded":{target:"loaded",actions:["invokeOnLoad"]},"img.error":{target:"error",actions:["invokeOnError"]}}},error:{on:{"img.loaded":{target:"loaded",actions:["invokeOnLoad"]}}},loaded:{on:{"img.error":{target:"error",actions:["invokeOnError"]}}}},implementations:{actions:{invokeOnLoad({prop:e}){e("onStatusChange")?.({status:"loaded"})},invokeOnError({prop:e}){e("onStatusChange")?.({status:"error"})},checkImageStatus({send:e,scope:t}){var i;let a=r2(t);a?.complete&&e({type:(i=a).complete&&0!==i.naturalWidth&&0!==i.naturalHeight?"img.loaded":"img.error",src:"ssr"})}},effects:{trackImageRemoval({send:e,scope:t}){let i=t.getById(t.ids?.root??`avatar:${t.id}`);return(0,tI.observeChildren)(i,{callback(t){Array.from(t[0].removedNodes).find(e=>e.nodeType===Node.ELEMENT_NODE&&e.matches("[data-scope=avatar][data-part=image]"))&&e({type:"img.unmount"})}})},trackSrcChange({send:e,scope:t}){let i=r2(t);return(0,tI.observeAttributes)(i,{attributes:["src","srcset"],callback(){e({type:"src.change"})}})}}}});var r5=iQ()(["dir","id","ids","onStatusChange","getRootNode"]);(0,to.createSplitProps)(r5);let r3={slots:r1.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",borderColor:"var(--outline-shadow, var(--outline-shadow-legacy))"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}},r4={className:"chakra-blockquote",slots:rx.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}},r6={className:"chakra-breadcrumb",slots:rb.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}},r8={className:"chakra-card",slots:ry.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}};function r7(e,t=!1){let i=e.getBoundingClientRect(),a={x:{start:[],center:[],end:[]},y:{start:[],center:[],end:[]}},o=t?function e(t){let i=[];for(let a of t.children)i=i.concat(a,e(a));return i}(e):e.children;for(let t of["x","y"]){let n="x"===t?"y":"x",r="x"===t?"left":"top",l="x"===t?"width":"height",s="x"===t?"scrollLeft":"scrollTop";for(let d of o){let o=d.getBoundingClientRect();if(!function(e,t,i="both"){return"x"===i&&e.right>=t.left&&e.left<=t.right||"y"===i&&e.bottom>=t.top&&e.top<=t.bottom||"both"===i&&e.right>=t.left&&e.left<=t.right&&e.bottom>=t.top&&e.top<=t.bottom}(i,o,n))continue;let[c,u]=(0,tI.getComputedStyle)(d).getPropertyValue("scroll-snap-align").split(" ");void 0===u&&(u=c);let g="x"===t?u:c,p=o[r]-i[r]+e[s];switch(g){case"none":break;case"start":a[t].start.push({node:d,position:p});break;case"center":a[t].center.push({node:d,position:p+o[l]/2});break;case"end":a[t].end.push({node:d,position:p+o[l]})}}}return a}var r9=e=>[...new Set(e)],le=(e,t)=>i=>Math.max(e,Math.min(t,i)),lt=(0,ta.createAnatomy)("carousel").parts("root","itemGroup","item","control","nextTrigger","prevTrigger","indicatorGroup","indicator","autoplayTrigger","progressText");lt.build();var li=e=>e.getById(e.ids?.itemGroup??`carousel:${e.id}:item-group`),la=e=>(0,tI.queryAll)(li(e),"[data-part=item]"),lo=e=>{let t=li(e);if(!t)return;let i=(0,tI.getTabbables)(t);t.setAttribute("tabindex",i.length>0?"-1":"0")};(0,i$.createMachine)({props:({props:e})=>((0,to.ensureProps)(e,["slideCount"],"carousel"),{dir:"ltr",defaultPage:0,orientation:"horizontal",snapType:"mandatory",loop:!!e.autoplay,slidesPerPage:1,slidesPerMove:"auto",spacing:"0px",autoplay:!1,allowMouseDrag:!1,inViewThreshold:.6,autoSize:!1,...e,translations:{nextTrigger:"Next slide",prevTrigger:"Previous slide",indicator:e=>`Go to slide ${e+1}`,item:(e,t)=>`${e+1} of ${t}`,autoplayStart:"Start slide rotation",autoplayStop:"Stop slide rotation",progressText:({page:e,totalPages:t})=>`${e} / ${t}`,...e.translations}}),refs:()=>({timeoutRef:void 0}),initialState:({prop:e})=>e("autoplay")?"autoplay":"idle",context:({prop:e,bindable:t,getContext:i})=>({page:t(()=>({defaultValue:e("defaultPage"),value:e("page"),onChange(t){let a=i().get("pageSnapPoints");e("onPageChange")?.({page:t,pageSnapPoint:a[t]})}})),pageSnapPoints:t(()=>({defaultValue:e("autoSize")?Array.from({length:e("slideCount")},(e,t)=>t):function(e,t,i){if(null==e||i<=0)return[];let a=[],o="auto"===t?Math.floor(i):t;if(o<=0)return[];for(let t=0;te);t+=o)a.push(t);return a}(e("slideCount"),e("slidesPerMove"),e("slidesPerPage"))})),slidesInView:t(()=>({defaultValue:[]}))}),computed:{isRtl:({prop:e})=>"rtl"===e("dir"),isHorizontal:({prop:e})=>"horizontal"===e("orientation"),canScrollNext:({prop:e,context:t})=>e("loop")||t.get("page")e("loop")||t.get("page")>0,autoplayInterval:({prop:e})=>{let t=e("autoplay");return(0,to.isObject)(t)?t.delay:4e3}},watch({track:e,action:t,context:i,prop:a,send:o}){e([()=>a("slidesPerPage"),()=>a("slidesPerMove")],()=>{t(["setSnapPoints"])}),e([()=>i.get("page")],()=>{t(["scrollToPage","focusIndicatorEl"])}),e([()=>a("orientation"),()=>a("autoSize")],()=>{t(["setSnapPoints","scrollToPage"])}),e([()=>a("slideCount")],()=>{o({type:"SNAP.REFRESH",src:"slide.count"})}),e([()=>!!a("autoplay")],()=>{o({type:a("autoplay")?"AUTOPLAY.START":"AUTOPLAY.PAUSE",src:"autoplay.prop.change"})})},on:{"PAGE.NEXT":{target:"idle",actions:["clearScrollEndTimer","setNextPage"]},"PAGE.PREV":{target:"idle",actions:["clearScrollEndTimer","setPrevPage"]},"PAGE.SET":{target:"idle",actions:["clearScrollEndTimer","setPage"]},"INDEX.SET":{target:"idle",actions:["clearScrollEndTimer","setMatchingPage"]},"SNAP.REFRESH":{actions:["setSnapPoints","clampPage"]},"PAGE.SCROLL":{actions:["scrollToPage"]}},effects:["trackSlideMutation","trackSlideIntersections","trackSlideResize"],entry:["setSnapPoints","setPage"],exit:["clearScrollEndTimer"],states:{idle:{on:{"DRAGGING.START":{target:"dragging",actions:["invokeDragStart"]},"AUTOPLAY.START":{target:"autoplay",actions:["invokeAutoplayStart"]},"USER.SCROLL":{target:"userScroll"},"VIEWPORT.FOCUS":{target:"focus"}}},focus:{effects:["trackKeyboardScroll"],on:{"VIEWPORT.BLUR":{target:"idle"},"PAGE.NEXT":{actions:["clearScrollEndTimer","setNextPage"]},"PAGE.PREV":{actions:["clearScrollEndTimer","setPrevPage"]},"PAGE.SET":{actions:["clearScrollEndTimer","setPage"]},"INDEX.SET":{actions:["clearScrollEndTimer","setMatchingPage"]},"USER.SCROLL":{target:"userScroll"}}},dragging:{effects:["trackPointerMove"],entry:["disableScrollSnap"],on:{DRAGGING:{actions:["scrollSlides","invokeDragging"]},"DRAGGING.END":{target:"idle",actions:["endDragging","invokeDraggingEnd"]}}},userScroll:{effects:["trackScroll"],on:{"DRAGGING.START":{target:"dragging",actions:["invokeDragStart"]},"SCROLL.END":[{guard:"isFocused",target:"focus",actions:["setClosestPage"]},{target:"idle",actions:["setClosestPage"]}]}},autoplay:{effects:["trackDocumentVisibility","trackScroll","autoUpdateSlide"],exit:["invokeAutoplayEnd"],on:{"AUTOPLAY.TICK":{actions:["setNextPage","invokeAutoplay"]},"DRAGGING.START":{target:"dragging",actions:["invokeDragStart"]},"AUTOPLAY.PAUSE":{target:"idle"}}}},implementations:{guards:{isFocused:({scope:e})=>e.isActiveElement(li(e))},effects:{autoUpdateSlide({computed:e,send:t}){let i=setInterval(()=>{t({type:e("canScrollNext")?"AUTOPLAY.TICK":"AUTOPLAY.PAUSE",src:"autoplay.interval"})},e("autoplayInterval"));return()=>clearInterval(i)},trackSlideMutation({scope:e,send:t}){let i=li(e);if(!i)return;let a=new(e.getWin()).MutationObserver(()=>{t({type:"SNAP.REFRESH",src:"slide.mutation"}),lo(e)});return lo(e),a.observe(i,{childList:!0,subtree:!0}),()=>a.disconnect()},trackSlideResize({scope:e,send:t}){if(!li(e))return;let i=()=>{t({type:"SNAP.REFRESH",src:"slide.resize"})};(0,tI.raf)(()=>{i(),(0,tI.raf)(()=>{t({type:"PAGE.SCROLL",instant:!0})})});let a=la(e);a.forEach(i);let o=a.map(e=>tI.resizeObserverBorderBox.observe(e,i));return(0,to.callAll)(...o)},trackSlideIntersections({scope:e,prop:t,context:i}){let a=li(e),o=new(e.getWin()).IntersectionObserver(e=>{let t=e.reduce((e,t)=>{let i=Number(t.target.dataset.index??"-1");return null==i||Number.isNaN(i)||-1===i?e:t.isIntersecting?(0,to.add)(e,i):(0,to.remove)(e,i)},i.get("slidesInView"));i.set("slidesInView",(0,to.uniq)(t))},{root:a,threshold:t("inViewThreshold")});return la(e).forEach(e=>o.observe(e)),()=>o.disconnect()},trackScroll({send:e,refs:t,scope:i}){let a=li(i);if(a)return(0,tI.addDomEvent)(a,"scroll",()=>{clearTimeout(t.get("timeoutRef")),t.set("timeoutRef",void 0),t.set("timeoutRef",setTimeout(()=>{e({type:"SCROLL.END"})},150))},{passive:!0})},trackDocumentVisibility({scope:e,send:t}){let i=e.getDoc();return(0,tI.addDomEvent)(i,"visibilitychange",()=>{"visible"!==i.visibilityState&&t({type:"AUTOPLAY.PAUSE",src:"doc.hidden"})})},trackPointerMove({scope:e,send:t}){let i=e.getDoc();return(0,tI.trackPointerMove)(i,{onPointerMove({event:e}){t({type:"DRAGGING",left:-e.movementX,top:-e.movementY})},onPointerUp(){t({type:"DRAGGING.END"})}})},trackKeyboardScroll({scope:e,send:t,context:i}){let a=e.getWin();return(0,tI.addDomEvent)(a,"keydown",e=>{switch(e.key){case"ArrowRight":e.preventDefault(),t({type:"PAGE.NEXT"});break;case"ArrowLeft":e.preventDefault(),t({type:"PAGE.PREV"});break;case"Home":e.preventDefault(),t({type:"PAGE.SET",index:0});break;case"End":e.preventDefault(),t({type:"PAGE.SET",index:i.get("pageSnapPoints").length-1})}},{capture:!0})}},actions:{clearScrollEndTimer({refs:e}){null!=e.get("timeoutRef")&&(clearTimeout(e.get("timeoutRef")),e.set("timeoutRef",void 0))},scrollToPage({context:e,event:t,scope:i,computed:a,flush:o}){let n=t.instant?"instant":"smooth",r=(0,to.clampValue)(t.index??e.get("page"),0,e.get("pageSnapPoints").length-1),l=li(i);if(!l)return;let s=a("isHorizontal")?"left":"top";o(()=>{l.scrollTo({[s]:e.get("pageSnapPoints")[r],behavior:n})})},setClosestPage({context:e,scope:t,computed:i}){let a=li(t);if(!a)return;let o=i("isHorizontal")?a.scrollLeft:a.scrollTop,n=e.get("pageSnapPoints").findIndex(e=>1>Math.abs(e-o));-1!==n&&e.set("page",n)},setNextPage({context:e,prop:t,state:i}){let a=i.matches("autoplay")||t("loop"),o=(0,to.nextIndex)(e.get("pageSnapPoints"),e.get("page"),{loop:a});e.set("page",o)},setPrevPage({context:e,prop:t,state:i}){let a=i.matches("autoplay")||t("loop"),o=(0,to.prevIndex)(e.get("pageSnapPoints"),e.get("page"),{loop:a});e.set("page",o)},setMatchingPage({context:e,event:t,computed:i,scope:a}){let o=li(a);if(!o)return;let n=function(e,t,i){let a=r7(e);for(let e of[...a[t].start,...a[t].center,...a[t].end])if(i(e.node))return e.position}(o,i("isHorizontal")?"x":"y",e=>e.dataset.index===t.index.toString());if(null==n)return;let r=e.get("pageSnapPoints").findIndex(e=>1>Math.abs(e-n));e.set("page",r)},setPage({context:e,event:t}){let i=t.index??e.get("page");e.set("page",i)},clampPage({context:e}){let t=(0,to.clampValue)(e.get("page"),0,e.get("pageSnapPoints").length-1);e.set("page",t)},setSnapPoints({context:e,computed:t,scope:i}){let a,o,n,r,l=li(i);if(!l)return;let s=(a=l.getBoundingClientRect(),o=function(e){let t=(0,tI.getComputedStyle)(e),i=e.getBoundingClientRect(),a=t.getPropertyValue("scroll-padding-left").replace("auto","0px"),o=t.getPropertyValue("scroll-padding-top").replace("auto","0px"),n=t.getPropertyValue("scroll-padding-right").replace("auto","0px"),r=t.getPropertyValue("scroll-padding-bottom").replace("auto","0px");function l(e,t){let i=parseFloat(e);return/%/.test(e)&&(i/=100,i*=t),Number.isNaN(i)?0:i}let s=l(a,i.width),d=l(o,i.height);return{x:{before:s,after:l(n,i.width)},y:{before:d,after:l(r,i.height)}}}(l),n=r7(l),r={x:l.scrollWidth-l.offsetWidth,y:l.scrollHeight-l.offsetHeight},{x:r9([...n.x.start.map(e=>e.position-o.x.before),...n.x.center.map(e=>e.position-a.width/2),...n.x.end.map(e=>e.position-a.width+o.x.after)].map(le(0,r.x))),y:r9([...n.y.start.map(e=>e.position-o.y.before),...n.y.center.map(e=>e.position-a.height/2),...n.y.end.map(e=>e.position-a.height+o.y.after)].map(le(0,r.y)))});e.set("pageSnapPoints",t("isHorizontal")?s.x:s.y)},disableScrollSnap({scope:e}){let t=li(e);if(!t)return;let i=getComputedStyle(t);t.dataset.scrollSnapType=i.getPropertyValue("scroll-snap-type"),t.style.setProperty("scroll-snap-type","none")},scrollSlides({scope:e,event:t}){let i=li(e);i?.scrollBy({left:t.left,top:t.top,behavior:"instant"})},endDragging({scope:e,context:t,computed:i}){let a=li(e);if(!a)return;let o=i("isHorizontal"),n=o?a.scrollLeft:a.scrollTop,r=t.get("pageSnapPoints"),l=r.reduce((e,t)=>Math.abs(t-n){a.scrollTo({left:o?l:a.scrollLeft,top:o?a.scrollTop:l,behavior:"smooth"}),t.set("page",r.indexOf(l));let e=a.dataset.scrollSnapType;e&&(a.style.setProperty("scroll-snap-type",e),delete a.dataset.scrollSnapType)})},focusIndicatorEl({context:e,event:t,scope:i}){var a;if("indicator"!==t.src)return;let o=(a=e.get("page"),i.getById(i.ids?.indicator?.(a)??`carousel:${i.id}:indicator:${a}`));o&&(0,tI.raf)(()=>o.focus({preventScroll:!0}))},invokeDragStart({context:e,prop:t}){t("onDragStatusChange")?.({type:"dragging.start",isDragging:!0,page:e.get("page")})},invokeDragging({context:e,prop:t}){t("onDragStatusChange")?.({type:"dragging",isDragging:!0,page:e.get("page")})},invokeDraggingEnd({context:e,prop:t}){t("onDragStatusChange")?.({type:"dragging.end",isDragging:!1,page:e.get("page")})},invokeAutoplay({context:e,prop:t}){t("onAutoplayStatusChange")?.({type:"autoplay",isPlaying:!0,page:e.get("page")})},invokeAutoplayStart({context:e,prop:t}){t("onAutoplayStatusChange")?.({type:"autoplay.start",isPlaying:!0,page:e.get("page")})},invokeAutoplayEnd({context:e,prop:t}){t("onAutoplayStatusChange")?.({type:"autoplay.stop",isPlaying:!1,page:e.get("page")})}}}});var ln=iQ()(["dir","getRootNode","id","ids","loop","page","defaultPage","onPageChange","orientation","slideCount","slidesPerPage","slidesPerMove","spacing","padding","autoplay","allowMouseDrag","inViewThreshold","translations","snapType","autoSize","onDragStatusChange","onAutoplayStatusChange"]);(0,to.createSplitProps)(ln);var lr=iQ()(["index","readOnly"]);(0,to.createSplitProps)(lr);var ll=iQ()(["index","snapAlign"]);(0,to.createSplitProps)(ll);let ls={className:"carousel",slots:lt.extendWith("progressText","autoplayIndicator").keys(),base:{root:{position:"relative",display:"flex",gap:"2",_horizontal:{flexDirection:"column"},_vertical:{flexDirection:"row"}},item:{_horizontal:{width:"100%"},_vertical:{height:"100%"}},control:{display:"flex",alignItems:"center",_horizontal:{flexDirection:"row",width:"100%"},_vertical:{flexDirection:"column",height:"100%"}},indicatorGroup:{display:"flex",justifyContent:"center",gap:"3",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},indicator:{width:"2.5",height:"2.5",borderRadius:"full",bg:"colorPalette.subtle",cursor:"button",_current:{bg:"colorPalette.solid"}}},defaultVariants:{}};var ld=(0,ta.createAnatomy)("checkbox").parts("root","label","control","indicator");ld.build();var lc=e=>e.getById(e.ids?.hiddenInput??`checkbox:${e.id}:input`),{not:lu}=(0,i$.createGuards)();function lg(e){return"indeterminate"===e}(0,i$.createMachine)({props:({props:e})=>({value:"on",...e,defaultChecked:e.defaultChecked??!1}),initialState:()=>"ready",context:({prop:e,bindable:t})=>({checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(t){e("onCheckedChange")?.({checked:t})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}),watch({track:e,context:t,prop:i,action:a}){e([()=>i("disabled")],()=>{a(["removeFocusIfNeeded"])}),e([()=>t.get("checked")],()=>{a(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:lu("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:lu("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},computed:{indeterminate:({context:e})=>lg(e.get("checked")),checked:({context:e})=>{var t;return!lg(t=e.get("checked"))&&!!t},disabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled")},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({context:e,computed:t,scope:i}){if(!t("disabled"))return(0,tI.trackPress)({pointerNode:i.getById(i.ids?.root??`checkbox:${i.id}`),keyboardNode:lc(i),isValidKey:e=>" "===e.key,onPress:()=>e.set("active",!1),onPressStart:()=>e.set("active",!0),onPressEnd:()=>e.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("disabled"))return oM({root:t.getRootNode?.()})},trackFormControlState:({context:e,scope:t})=>(0,tI.trackFormControl)(lc(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("checked",e.initial("checked"))}})},actions:{setContext({context:e,event:t}){for(let i in t.context)e.set(i,t.context[i])},syncInputElement({context:e,computed:t,scope:i}){let a=lc(i);a&&((0,tI.setElementChecked)(a,t("checked")),a.indeterminate=lg(e.get("checked")))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.get("focused")&&(e.set("focused",!1),e.set("focusVisible",!1))},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e,computed:t}){let i=!!lg(t("checked"))||!t("checked");e.set("checked",i)},dispatchChangeEvent({computed:e,scope:t}){queueMicrotask(()=>{let i=lc(t);(0,tI.dispatchInputCheckedEvent)(i,{checked:e("checked")})})}}}});var lp=iQ()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);(0,to.createSplitProps)(lp);let lh={slots:ld.extendWith("group").keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:e2.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:e2.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:e2.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:e2.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:e2.variants?.size?.lg}},variant:{outline:{control:e2.variants?.variant?.outline},solid:{control:e2.variants?.variant?.solid},subtle:{control:e2.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}},lm={slots:rS.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:e2.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:e2.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:e2.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:e2.variants?.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:e2.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:e2.variants?.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:e2.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:e2.variants?.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}},lf={slots:rX.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",overflowX:"auto",overflowY:"hidden",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative",paddingInlineEnd:"var(--code-block-padding)","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",top:"0",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",whiteSpace:"nowrap",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}};var lv=(0,ta.createAnatomy)("collapsible").parts("root","trigger","content","indicator");lv.build();var lb=e=>e.getById(e.ids?.content??`collapsible:${e.id}:content`);(0,i$.createMachine)({initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({bindable:e})=>({size:e(()=>({defaultValue:{height:0,width:0},sync:!0})),initial:e(()=>({defaultValue:!1}))}),refs:()=>({cleanup:void 0,stylesRef:void 0}),watch({track:e,prop:t,action:i}){e([()=>t("open")],()=>{i(["setInitial","computeSize","toggleVisibility"])})},exit:["cleanupNode"],states:{closed:{effects:["trackTabbableElements"],on:{"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitial","computeSize","invokeOnOpen"]}]}},closing:{effects:["trackExitAnimation"],on:{"controlled.close":{target:"closed"},"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitial","invokeOnOpen"]}],close:[{guard:"isOpenControlled",actions:["invokeOnExitComplete"]},{target:"closed",actions:["setInitial","computeSize","invokeOnExitComplete"]}],"animation.end":{target:"closed",actions:["invokeOnExitComplete","clearInitial"]}}},open:{effects:["trackEnterAnimation"],on:{"controlled.close":{target:"closing"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closing",actions:["setInitial","computeSize","invokeOnClose"]}],"size.measure":{actions:["measureSize"]},"animation.end":{actions:["clearInitial"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>void 0!=e("open")},effects:{trackEnterAnimation:({send:e,scope:t})=>{let i,a=(0,tI.raf)(()=>{let a=lb(t);if(!a)return;let o=(0,tI.getComputedStyle)(a).animationName;if(!o||"none"===o)return void e({type:"animation.end"});let n=t=>{(0,tI.getEventTarget)(t)===a&&e({type:"animation.end"})};a.addEventListener("animationend",n),i=()=>{a.removeEventListener("animationend",n)}});return()=>{a(),i?.()}},trackExitAnimation:({send:e,scope:t})=>{let i,a=(0,tI.raf)(()=>{let a=lb(t);if(!a)return;let o=(0,tI.getComputedStyle)(a).animationName;if(!o||"none"===o)return void e({type:"animation.end"});let n=t=>{(0,tI.getEventTarget)(t)===a&&e({type:"animation.end"})};a.addEventListener("animationend",n);let r=(0,tI.setStyle)(a,{animationFillMode:"forwards"});i=()=>{a.removeEventListener("animationend",n),(0,tI.nextTick)(()=>r())}});return()=>{a(),i?.()}},trackTabbableElements:({scope:e,prop:t})=>{if(!t("collapsedHeight")&&!t("collapsedWidth"))return;let i=lb(e);if(!i)return;let a=()=>{let e=(0,tI.getTabbables)(i).map(e=>(0,tI.setAttribute)(e,"inert",""));return()=>{e.forEach(e=>e())}},o=a(),n=(0,tI.observeChildren)(i,{callback(){o(),o=a()}});return()=>{o(),n()}}},actions:{setInitial:({context:e,flush:t})=>{t(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},cleanupNode:({refs:e})=>{e.set("stylesRef",null)},measureSize:({context:e,scope:t})=>{let i=lb(t);if(!i)return;let{height:a,width:o}=i.getBoundingClientRect();e.set("size",{height:a,width:o})},computeSize:({refs:e,scope:t,context:i})=>{e.get("cleanup")?.();let a=(0,tI.raf)(()=>{let e=lb(t);if(!e)return;let a=e.hidden;e.style.animationName="none",e.style.animationDuration="0s",e.hidden=!1;let o=e.getBoundingClientRect();i.set("size",{height:o.height,width:o.width}),i.get("initial")&&(e.style.animationName="",e.style.animationDuration=""),e.hidden=a});e.set("cleanup",a)},invokeOnOpen:({prop:e})=>{e("onOpenChange")?.({open:!0})},invokeOnClose:({prop:e})=>{e("onOpenChange")?.({open:!1})},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},toggleVisibility:({prop:e,send:t})=>{t({type:e("open")?"controlled.open":"controlled.close"})}}}});var lx=iQ()(["dir","disabled","getRootNode","id","ids","collapsedHeight","collapsedWidth","onExitComplete","onOpenChange","defaultOpen","open"]);(0,to.createSplitProps)(lx);let ly={slots:lv.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate","&[data-has-collapsed-size]":{animationName:"expand-height"}},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate","&[data-has-collapsed-size]":{animationName:"collapse-height"}}}}},lS={className:"colorPicker",slots:rK.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...e4.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...e6.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:e6.variants?.size?.["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:e6.variants?.size?.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:e6.variants?.size?.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:e6.variants?.size?.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:e6.variants?.size?.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:e6.variants?.size?.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:e6.variants?.size?.["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:e6.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:e6.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}},lk={className:"chakra-combobox",slots:rL.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},control:{pos:"relative","--padding-factor":"1","--combobox-input-padding-end":"var(--combobox-input-padding-x)","&:has([data-part=trigger]), &:has([data-part=clear-trigger])":{"--combobox-input-padding-end":"calc(var(--combobox-input-height) * var(--padding-factor))"},"&:has([data-part=trigger]):has([data-part=clear-trigger]:not([hidden]))":{"--padding-factor":"1.5"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",ps:"var(--combobox-input-padding-x)",pe:"var(--combobox-input-padding-end)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}},lC={slots:rk.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}},lE={slots:rC.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100dvw",h:"100dvh",zIndex:"var(--z-index)",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100dvw",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:"l3",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.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",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:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100dvw",minH:"100dvh","--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"}},lI={slots:rE.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}},lO={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"},lw={slots:rI.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...lO,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...lO,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}},lT={slots:rO.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}},lV={className:"chakra-field",slots:rw.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}},lP={className:"fieldset",slots:rT.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}},lR={className:"chakra-file-upload",slots:rV.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}};var lN=(0,ta.createAnatomy)("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");lN.build();var lz=e=>e.getById(e.ids?.trigger??`hover-card:${e.id}:trigger`),l_=e=>e.getById(e.ids?.positioner??`hover-card:${e.id}:popper`),{not:lA,and:lF}=(0,i$.createGuards)();(0,i$.createMachine)({props:({props:e})=>({disabled:!1,openDelay:600,closeDelay:300,...e,positioning:{placement:"bottom",...e.positioning}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({prop:e,bindable:t})=>({open:t(()=>({defaultValue:e("defaultOpen"),value:e("open"),onChange(t){e("onOpenChange")?.({open:t})}})),currentPlacement:t(()=>({defaultValue:void 0})),isPointer:t(()=>({defaultValue:!1}))}),watch({track:e,context:t,action:i,prop:a,send:o}){e([()=>a("disabled")],()=>{a("disabled")&&o({type:"CLOSE",src:"disabled.change"})}),e([()=>t.get("open")],()=>{i(["toggleVisibility"])})},states:{closed:{tags:["closed"],entry:["clearIsPointer"],on:{"CONTROLLED.OPEN":{target:"open"},POINTER_ENTER:{target:"opening",actions:["setIsPointer"]},TRIGGER_FOCUS:{target:"opening"},OPEN:{target:"opening"}}},opening:{tags:["closed"],effects:["waitForOpenDelay"],on:{OPEN_DELAY:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},POINTER_LEAVE:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_BLUR:[{guard:lF("isOpenControlled",lA("isPointer")),actions:["invokeOnClose","toggleVisibility"]},{guard:lA("isPointer"),target:"closed",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}]}},open:{tags:["open"],effects:["trackDismissableElement","trackPositioning"],on:{"CONTROLLED.CLOSE":{target:"closed"},POINTER_ENTER:{actions:["setIsPointer"]},POINTER_LEAVE:{target:"closing"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_BLUR:[{guard:lF("isOpenControlled",lA("isPointer")),actions:["invokeOnClose"]},{guard:lA("isPointer"),target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}},closing:{tags:["open"],effects:["trackPositioning","waitForCloseDelay"],on:{CLOSE_DELAY:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"CONTROLLED.CLOSE":{target:"closed"},"CONTROLLED.OPEN":{target:"open"},POINTER_ENTER:{target:"open",actions:["setIsPointer"]}}}},implementations:{guards:{isPointer:({context:e})=>!!e.get("isPointer"),isOpenControlled:({prop:e})=>null!=e("open")},effects:{waitForOpenDelay({send:e,prop:t}){let i=setTimeout(()=>{e({type:"OPEN_DELAY"})},t("openDelay"));return()=>clearTimeout(i)},waitForCloseDelay({send:e,prop:t}){let i=setTimeout(()=>{e({type:"CLOSE_DELAY"})},t("closeDelay"));return()=>clearTimeout(i)},trackPositioning:({context:e,prop:t,scope:i})=>(e.get("currentPlacement")||e.set("currentPlacement",t("positioning").placement),iH(lz(i),()=>l_(i),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})),trackDismissableElement:({send:e,scope:t,prop:i})=>iJ(()=>t.getById(t.ids?.content??`hover-card:${t.id}:content`),{type:"popover",defer:!0,exclude:[lz(t)],onDismiss(){e({type:"CLOSE",src:"interact-outside"})},onInteractOutside:i("onInteractOutside"),onPointerDownOutside:i("onPointerDownOutside"),onFocusOutside(e){e.preventDefault(),i("onFocusOutside")?.(e)}})},actions:{invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},setIsPointer({context:e}){e.set("isPointer",!0)},clearIsPointer({context:e}){e.set("isPointer",!1)},reposition({context:e,prop:t,scope:i,event:a}){iH(lz(i),()=>l_(i),{...t("positioning"),...a.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},toggleVisibility({prop:e,event:t,send:i}){queueMicrotask(()=>{i({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})})}}}});var lD=iQ()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);(0,to.createSplitProps)(lD);let lL={className:"chakra-hover-card",slots:lN.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderLeftWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}},lM={className:"chakra-list",slots:rP.keys(),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:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},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"}},lW={className:"chakra-listbox",slots:oJ.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},content:{display:"flex",maxH:"96",p:"1",gap:"1",textStyle:"sm",outline:"none",scrollPadding:"1",_horizontal:{flexDirection:"row",overflowX:"auto"},_vertical:{flexDirection:"column",overflowY:"auto"},"--listbox-item-padding-x":"spacing.2","--listbox-item-padding-y":"spacing.1.5"},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"pointer",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)",_highlighted:{outline:"2px solid",outlineColor:"border.emphasized"},_disabled:{pointerEvents:"none",opacity:"0.5"}},empty:{py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{mt:"1.5",_first:{mt:"0"}},itemGroupLabel:{py:"1.5",px:"2",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"4"}}},variants:{variant:{subtle:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_hover:{bg:"bg.emphasized/60"},_selected:{bg:"bg.muted"}}},solid:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_selected:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}},plain:{}}},defaultVariants:{variant:"subtle"}},lB={className:"chakra-menu",slots:rR.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1",scrollPadding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5",scrollPadding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}},lH={className:"chakra-select",slots:rD.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}},l$={className:"chakra-native-select",slots:rN.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error","--input-height":"var(--select-field-height)",height:"var(--select-field-height)",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:lH.variants?.variant.outline.trigger},subtle:{field:lH.variants?.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{root:{"--select-field-height":"sizes.8"},field:{textStyle:"xs",ps:"2",pe:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{root:{"--select-field-height":"sizes.9"},field:{textStyle:"sm",ps:"2.5",pe:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{root:{"--select-field-height":"sizes.10"},field:{textStyle:"sm",ps:"3",pe:"8"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{root:{"--select-field-height":"sizes.11"},field:{textStyle:"md",ps:"4",pe:"8"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{root:{"--select-field-height":"sizes.12"},field:{textStyle:"md",ps:"4.5",pe:"10"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:lH.defaultVariants},lj=new Map,lG=!1;try{lG="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch{}let lU=!1;try{lU="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch{}let lq={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class lY{format(e){let t="";if(t=lG||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,i){if("auto"===t)return e.format(i);{if("never"===t)return e.format(Math.abs(i));let a=!1;if("always"===t?a=i>0||Object.is(i,0):"exceptZero"===t&&(Object.is(i,-0)||Object.is(i,0)?i=Math.abs(i):a=i>0),!a)return e.format(i);{let t=e.format(-i),a=e.format(i),o=t.replace(a,"").replace(/\u200e|\u061C/,"");return 1!=[...o].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(a,"!!!").replace(o,"+").replace("!!!",a)}}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!lU){var i;let{unit:e,unitDisplay:a="short",locale:o}=this.resolvedOptions();if(!e)return t;let n=null==(i=lq[e])?void 0:i[a];t+=n[o]||n.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t= start date");return`${this.format(e)} \u{2013} ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t= start date");let i=this.numberFormatter.formatToParts(e),a=this.numberFormatter.formatToParts(t);return[...i.map(e=>({...e,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...a.map(e=>({...e,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return lG||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),lU||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:i}=t;if(i&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${i}`),"unit"===t.style&&!lU){var a;let{unit:e,unitDisplay:i="short"}=t;if(!e)throw Error('unit option must be provided with style: "unit"');if(!(null==(a=lq[e])?void 0:a[i]))throw Error(`Unsupported unit ${e} with unitDisplay = ${i}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((e,t)=>e[0]e[0]-1&&(t=`-${t}`)}let i=t?+t:NaN;if(isNaN(i))return NaN;if("percent"===this.options.style){var a,o;let e={...this.options,style:"decimal",minimumFractionDigits:Math.min((null!=(a=this.options.minimumFractionDigits)?a:0)+2,20),maximumFractionDigits:Math.min((null!=(o=this.options.maximumFractionDigits)?o:0)+2,20)};return new lZ(this.locale,e).parse(new lY(this.locale,e).format(i))}return"accounting"===this.options.currencySign&&lK.test(e)&&(i*=-1),i}sanitize(e){return e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=(e=e.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(e=l3(e,".",this.symbols.group))),"’"===this.symbols.group&&e.includes("'")&&(e=l3(e,"'",this.symbols.group)),"fr-FR"===this.options.locale&&this.symbols.group&&(e=l3(e," ",this.symbols.group),e=l3(e,/\u00A0/g,this.symbols.group)),e}isValidPartialNumber(e,t=-1/0,i=1/0){return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&i>0&&(e=e.slice(this.symbols.plusSign.length)),!(this.symbols.group&&e.startsWith(this.symbols.group)||this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&0===this.options.maximumFractionDigits)&&(this.symbols.group&&(e=l3(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),0===e.length)}constructor(e,t={}){var i,a;this.locale=e,1!==t.roundingIncrement&&null!=t.roundingIncrement&&(null==t.maximumFractionDigits&&null==t.minimumFractionDigits?(t.maximumFractionDigits=0,t.minimumFractionDigits=0):null==t.maximumFractionDigits?t.maximumFractionDigits=t.minimumFractionDigits:null==t.minimumFractionDigits&&(t.minimumFractionDigits=t.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,i,a){var o,n,r,l,s;let d=new Intl.NumberFormat(e,{...i,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),c=d.formatToParts(-10000.111),u=d.formatToParts(10000.111),g=l5.map(e=>d.formatToParts(e)),p=null!=(s=null==(o=c.find(e=>"minusSign"===e.type))?void 0:o.value)?s:"-",h=null==(n=u.find(e=>"plusSign"===e.type))?void 0:n.value;h||(null==a?void 0:a.signDisplay)!=="exceptZero"&&(null==a?void 0:a.signDisplay)!=="always"||(h="+");let m=null==(r=new Intl.NumberFormat(e,{...i,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(e=>"decimal"===e.type))?void 0:r.value,f=null==(l=c.find(e=>"group"===e.type))?void 0:l.value,v=[...new Set([...c.filter(e=>!l2.has(e.type)).map(e=>l4(e.value)),...g.flatMap(e=>e.filter(e=>!l2.has(e.type)).map(e=>l4(e.value)))])].sort((e,t)=>t.length-e.length),b=0===v.length?RegExp("[\\p{White_Space}]","gu"):RegExp(`${v.join("|")}|[\\p{White_Space}]`,"gu"),x=[...new Intl.NumberFormat(i.locale,{useGrouping:!1}).format(0x24cb016ea)].reverse(),y=new Map(x.map((e,t)=>[e,t]));return{minusSign:p,plusSign:h,decimal:m,group:f,literals:b,numeral:RegExp(`[${x.join("")}]`,"g"),index:e=>String(y.get(e))}}(e,this.formatter,this.options,t),"percent"===this.options.style&&((null!=(i=this.options.minimumFractionDigits)?i:0)>18||(null!=(a=this.options.maximumFractionDigits)?a:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}let l2=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),l5=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function l3(e,t,i){return e.replaceAll?e.replaceAll(t,i):e.split(t).join(i)}function l4(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var l6=(0,ta.createAnatomy)("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");l6.build();var l8=e=>`number-input:${e.id}:cursor`,l7=e=>e.getById(e.ids?.input??`number-input:${e.id}:input`),l9=e=>e.getDoc().getElementById(l8(e));function se(e,t,i){let a=e.slice(0,i),o=e.slice(i),n=0,r=Math.min(a.length,t.length);for(let e=0;e=a.length?n:l>=o.length?t.length-l:n>0?n:l>0?t.length-l:e.length>0?Math.round(i/e.length*t.length):t.length}var st=(e,t)=>{let{prop:i,computed:a}=t;return i("formatOptions")?""===e?NaN:a("parser").parse(e):parseFloat(e)},si=(e,t)=>{let{prop:i,computed:a}=t;return Number.isNaN(e)?"":i("formatOptions")?a("formatter").format(e):e.toString()},{choose:sa,guards:so,createMachine:sn}=(0,i$.setup)(),{not:sr,and:sl}=so;sn({props({props:e}){var t,i;let a,o=(t=e.step,i=e.formatOptions,a=void 0===t||Number.isNaN(t)?1:t,i?.style==="percent"&&(void 0===t||Number.isNaN(t))&&(a=.01),a);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"-?[0-9]*(.[0-9]+)?",defaultValue:"",step:o,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState:()=>"idle",context:({prop:e,bindable:t,getComputed:i})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){let a=st(t,{computed:i(),prop:e});e("onValueChange")?.({value:t,valueAsNumber:a})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash:e=>e?`x:${e.x}, y:${e.y}`:""})),fieldsetDisabled:t(()=>({defaultValue:!1}))}),computed:{isRtl:({prop:e})=>"rtl"===e("dir"),valueAsNumber:({context:e,computed:t,prop:i})=>st(e.get("value"),{computed:t,prop:i}),formattedValue:({computed:e,prop:t})=>si(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>(0,to.isValueAtMin)(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>(0,to.isValueAtMax)(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!(0,to.isValueWithinRange)(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>""===e.get("value"),isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>e("translations").valueText?.(t.get("value")),formatter:(0,i$.memo)(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>((e,t={})=>new Intl.NumberFormat(e,t))(e,t)),parser:(0,i$.memo)(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>((e,t={})=>new lZ(e,t))(e,t))},watch({track:e,action:t,context:i,computed:a,prop:o}){e([()=>i.get("value"),()=>o("locale"),()=>JSON.stringify(o("formatOptions"))],()=>{t(["syncInputElement"])}),e([()=>a("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>i.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:sl("clampValueOnBlur",sr("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]},{guard:sr("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid","invokeOnValueCommit"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:sa([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:sl("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>"touch"===e.pointerType},effects:{waitForChangeDelay({send:e}){let t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){let t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){let i=l7(t);return(0,tI.trackFormControl)(i,{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){var i,a;let o,n,r=e.get("scrubberCursorPoint");return(0,tI.isSafari)()?void 0:(i=t,a=r,(n=(o=i.getDoc()).createElement("div")).className="scrubber--cursor",n.id=l8(i),Object.assign(n.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:tI.MAX_Z_INDEX,transform:a?`translate3d(${a.x}px, ${a.y}px, 0px)`:void 0,willChange:"transform"}),n.innerHTML=` `,o.body.appendChild(n),()=>{l9(t)?.remove()})},preventTextSelection:({scope:e})=>{let t,i,a;return i=(t=e.getDoc()).documentElement,(a=t.body).style.pointerEvents="none",i.style.userSelect="none",i.style.cursor="ew-resize",()=>{a.style.pointerEvents="",i.style.userSelect="",i.style.cursor="",i.style.length||i.removeAttribute("style"),a.style.length||a.removeAttribute("style")}},trackButtonDisabled({context:e,scope:t,send:i}){let a,o=e.get("hint"),n=(a=null,"increment"===o&&(a=t.getById(t.ids?.incrementTrigger??`number-input:${t.id}:inc`)),"decrement"===o&&(a=t.getById(t.ids?.decrementTrigger??`number-input:${t.id}:dec`)),a);return(0,tI.observeAttributes)(n,{attributes:["disabled"],callback(){i({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:i}){let a=l7(e);if(a&&e.isActiveElement(a)&&i("allowMouseWheel"))return(0,tI.addDomEvent)(a,"wheel",function(e){e.preventDefault();let i=-1*Math.sign(e.deltaY);1===i?t({type:"VALUE.INCREMENT"}):-1===i&&t({type:"VALUE.DECREMENT"})},{passive:!1})},activatePointerLock({scope:e}){if(!(0,tI.isSafari)())return(0,tI.requestPointerLock)(e.getDoc())},trackMousemove({scope:e,send:t,context:i,computed:a}){let o=e.getDoc();return(0,to.callAll)((0,tI.addDomEvent)(o,"mousemove",function(o){let n=((e,t)=>{let{point:i,isRtl:a,event:o}=t,n=e.getWin(),r=(0,to.roundToDpr)(o.movementX,n.devicePixelRatio),l=(0,to.roundToDpr)(o.movementY,n.devicePixelRatio),s=r>0?"increment":r<0?"decrement":null;a&&"increment"===s&&(s="decrement"),a&&"decrement"===s&&(s="increment");let d={x:i.x+r,y:i.y+l},c=n.innerWidth,u=(0,to.roundToDpr)(7.5,n.devicePixelRatio);return d.x=(0,to.wrap)(d.x+u,c)-u,{hint:s,point:d}})(e,{point:i.get("scrubberCursorPoint"),isRtl:a("isRtl"),event:o});n.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:n.hint,point:n.point})},!1),(0,tI.addDomEvent)(o,"mouseup",function(){t({type:"SCRUBBER.POINTER_UP"})},!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;let i=l7(e);e.isActiveElement(i)||(0,tI.raf)(()=>i?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:i,computed:a}){let o=(0,to.incrementValue)(a("valueAsNumber"),t.step??i("step"));i("allowOverflow")||(o=(0,to.clampValue)(o,i("min"),i("max"))),e.set("value",si(o,{computed:a,prop:i}))},decrement({context:e,event:t,prop:i,computed:a}){let o=(0,to.decrementValue)(a("valueAsNumber"),t.step??i("step"));i("allowOverflow")||(o=(0,to.clampValue)(o,i("min"),i("max"))),e.set("value",si(o,{computed:a,prop:i}))},setClampedValue({context:e,prop:t,computed:i}){let a=(0,to.clampValue)(i("valueAsNumber"),t("min"),t("max"));e.set("value",si(a,{computed:i,prop:t}))},setRawValue({context:e,event:t,prop:i,computed:a}){let o=st(t.value,{computed:a,prop:i});i("allowOverflow")||(o=(0,to.clampValue)(o,i("min"),i("max"))),e.set("value",si(o,{computed:a,prop:i}))},setValue({context:e,event:t}){let i=t.target?.value??t.value;e.set("value",i)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:i}){let a=si(t("max"),{computed:i,prop:t});e.set("value",a)},decrementToMin({context:e,prop:t,computed:i}){let a=si(t("min"),{computed:i,prop:t});e.set("value",a)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){t("onFocusChange")?.({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){t("onFocusChange")?.({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:i}){if("INPUT.CHANGE"===i.type)return;let a=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:a,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnValueCommit({computed:e,prop:t}){t("onValueCommit")?.({value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:i,scope:a}){let o=t.type.endsWith("CHANGE")?e.get("value"):i("formattedValue"),n=l7(a),r=t.selection??function(e,t){if(e&&t.isActiveElement(e))try{let{selectionStart:t,selectionEnd:i,value:a}=e;if(null==t||null==i)return;return{start:t,end:i,value:a}}catch{return}}(n,a);(0,tI.raf)(()=>{(0,tI.setElementValue)(n,o),function(e,t,i){if(e&&i.isActiveElement(e)){if(!t){let t=e.value.length;e.setSelectionRange(t,t);return}try{let i=e.value,{start:a,end:o,value:n}=t;if(i===n)return void e.setSelectionRange(a,o);let r=se(n,i,a),l=a===o?r:se(n,i,o),s=Math.max(0,Math.min(r,i.length)),d=Math.max(s,Math.min(l,i.length));e.setSelectionRange(s,d)}catch{let t=e.value.length;e.setSelectionRange(t,t)}}}(n,r,a)})},setFormattedValue({context:e,computed:t,action:i}){e.set("value",t("formattedValue")),i(["syncInputElement"])},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){let i=l9(t),a=e.get("scrubberCursorPoint");i&&a&&(i.style.transform=`translate3d(${a.x}px, ${a.y}px, 0px)`)}}}});var ss=iQ()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueCommit","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);(0,to.createSplitProps)(ss);let sd={display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}},sc={className:"chakra-number-input",slots:l6.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...e6.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...sd,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...sd,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:e6.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:e6.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:e6.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:e6.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:z(e6.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}};var su=(0,ta.createAnatomy)("pinInput").parts("root","label","input","control");su.build();var sg=e=>e.ids?.root??`pin-input:${e.id}`,sp=e=>{let t=CSS.escape(sg(e)),i=`input[data-ownedby=${t}]`;return(0,tI.queryAll)(e.getById(sg(e)),i)},sh=(e,t)=>sp(e)[t],sm=e=>e.getById(e.ids?.hiddenInput??`pin-input:${e.id}:hidden`),sf=(e,t)=>{e.value=t,e.setAttribute("value",t)},{choose:sv,createMachine:sb}=(0,i$.setup)();function sx(e,t){let i=t;e[0]===t[0]?i=t[1]:e[0]===t[1]&&(i=t[0]);let a=i.split("");return(i=a[a.length-1])??""}function sy(e,t){return Array.from({length:t}).fill("").map((t,i)=>e[i]||t)}sb({props:({props:e})=>({placeholder:"○",otp:!1,type:"numeric",defaultValue:e.count?sy([],e.count):[],...e,translations:{inputLabel:(e,t)=>`pin code ${e+1} of ${t}`,...e.translations}}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({value:t(()=>({value:e("value"),defaultValue:e("defaultValue"),isEqual:to.isEqual,onChange(t){e("onValueChange")?.({value:t,valueAsString:t.join("")})}})),focusedIndex:t(()=>({sync:!0,defaultValue:-1})),count:t(()=>({defaultValue:e("count")}))}),computed:{_value:({context:e})=>sy(e.get("value"),e.get("count")),valueLength:({computed:e})=>e("_value").length,filledValueLength:({computed:e})=>e("_value").filter(e=>e?.trim()!=="").length,isValueComplete:({computed:e})=>e("valueLength")===e("filledValueLength"),valueAsString:({computed:e})=>e("_value").join(""),focusedValue:({computed:e,context:t})=>e("_value")[t.get("focusedIndex")]||""},entry:sv([{guard:"autoFocus",actions:["setInputCount","setFocusIndexToFirst"]},{actions:["setInputCount"]}]),watch({action:e,track:t,context:i,computed:a}){t([()=>i.get("focusedIndex")],()=>{e(["focusInput","selectInputIfNeeded"])}),t([()=>i.get("value").join(",")],()=>{e(["syncInputElements","dispatchInputEvent"])}),t([()=>a("isValueComplete")],()=>{e(["invokeOnComplete","blurFocusedInputIfNeeded"])})},on:{"VALUE.SET":[{guard:"hasIndex",actions:["setValueAtIndex"]},{actions:["setValue"]}],"VALUE.CLEAR":{actions:["clearValue","setFocusIndexToFirst"]}},states:{idle:{on:{"INPUT.FOCUS":{target:"focused",actions:["setFocusedIndex"]}}},focused:{on:{"INPUT.CHANGE":{actions:["setFocusedValue","syncInputValue","setNextFocusedIndex"]},"INPUT.PASTE":{actions:["setPastedValue","setLastValueFocusIndex"]},"INPUT.FOCUS":{actions:["setFocusedIndex"]},"INPUT.BLUR":{target:"idle",actions:["clearFocusedIndex"]},"INPUT.DELETE":{guard:"hasValue",actions:["clearFocusedValue"]},"INPUT.ARROW_LEFT":{actions:["setPrevFocusedIndex"]},"INPUT.ARROW_RIGHT":{actions:["setNextFocusedIndex"]},"INPUT.BACKSPACE":[{guard:"hasValue",actions:["clearFocusedValue"]},{actions:["setPrevFocusedIndex","clearFocusedValue"]}],"INPUT.ENTER":{guard:"isValueComplete",actions:["requestFormSubmit"]},"VALUE.INVALID":{actions:["invokeOnInvalid"]}}}},implementations:{guards:{autoFocus:({prop:e})=>!!e("autoFocus"),hasValue:({context:e})=>""!==e.get("value")[e.get("focusedIndex")],isValueComplete:({computed:e})=>e("isValueComplete"),hasIndex:({event:e})=>void 0!==e.index},actions:{dispatchInputEvent({computed:e,scope:t}){let i=sm(t);(0,tI.dispatchInputValueEvent)(i,{value:e("valueAsString")})},setInputCount({scope:e,context:t,prop:i}){if(i("count"))return;let a=sp(e);t.set("count",a.length)},focusInput({context:e,scope:t}){let i=e.get("focusedIndex");-1!==i&&sh(t,i)?.focus({preventScroll:!0})},selectInputIfNeeded({context:e,prop:t,scope:i}){let a=e.get("focusedIndex");t("selectOnFocus")&&-1!==a&&(0,tI.raf)(()=>{sh(i,a)?.select()})},invokeOnComplete({computed:e,prop:t}){e("isValueComplete")&&t("onValueComplete")?.({value:e("_value"),valueAsString:e("valueAsString")})},invokeOnInvalid({context:e,event:t,prop:i}){i("onValueInvalid")?.({value:t.value,index:e.get("focusedIndex")})},clearFocusedIndex({context:e}){e.set("focusedIndex",-1)},setFocusedIndex({context:e,event:t}){e.set("focusedIndex",t.index)},setValue({context:e,event:t}){let i=sy(t.value,e.get("count"));e.set("value",i)},setFocusedValue({context:e,event:t,computed:i,flush:a}){let o=i("focusedValue"),n=e.get("focusedIndex"),r=sx(o,t.value);a(()=>{e.set("value",(0,to.setValueAtIndex)(i("_value"),n,r))})},revertInputValue({context:e,computed:t,scope:i}){sf(sh(i,e.get("focusedIndex")),t("focusedValue"))},syncInputValue({context:e,event:t,scope:i}){let a=e.get("value");sf(sh(i,t.index),a[t.index])},syncInputElements({context:e,scope:t}){let i=sp(t),a=e.get("value");i.forEach((e,t)=>{sf(e,a[t])})},setPastedValue({context:e,event:t,computed:i,flush:a}){(0,tI.raf)(()=>{let o=i("valueAsString"),n=e.get("focusedIndex"),r=i("valueLength"),l=Math.min(n,i("filledValueLength")),s=l>0?o.substring(0,n):"",d=t.value.substring(0,r-l),c=sy(`${s}${d}`.split(""),r);a(()=>{e.set("value",c)})})},setValueAtIndex({context:e,event:t,computed:i}){let a=sx(i("focusedValue"),t.value);e.set("value",(0,to.setValueAtIndex)(i("_value"),t.index,a))},clearValue({context:e}){let t=Array.from({length:e.get("count")}).fill("");queueMicrotask(()=>{e.set("value",t)})},clearFocusedValue({context:e,computed:t}){let i=e.get("focusedIndex");-1!==i&&e.set("value",(0,to.setValueAtIndex)(t("_value"),i,""))},setFocusIndexToFirst({context:e}){e.set("focusedIndex",0)},setNextFocusedIndex({context:e,computed:t}){e.set("focusedIndex",Math.min(e.get("focusedIndex")+1,t("valueLength")-1))},setPrevFocusedIndex({context:e}){e.set("focusedIndex",Math.max(e.get("focusedIndex")-1,0))},setLastValueFocusIndex({context:e,computed:t}){(0,tI.raf)(()=>{e.set("focusedIndex",Math.min(t("filledValueLength"),t("valueLength")-1))})},blurFocusedInputIfNeeded({context:e,prop:t,scope:i}){t("blurOnComplete")&&(0,tI.raf)(()=>{sh(i,e.get("focusedIndex"))?.blur()})},requestFormSubmit({computed:e,prop:t,scope:i}){if(!t("name")||!e("isValueComplete"))return;let a=sm(i);a?.form?.requestSubmit()}}}});var sS=iQ()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);(0,to.createSplitProps)(sS);let{variants:sk,defaultVariants:sC}=e6,sE={className:"chakra-pin-input",slots:su.keys(),base:{input:{...e6.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:z(sk.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:z(sk.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:sC},sI={className:"chakra-popover",slots:rz.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderLeftWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}};var sO=(0,ta.createAnatomy)("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");sO.build(),(0,i$.createMachine)({props({props:e}){let t=e.min??0,i=e.max??100;return{orientation:"horizontal",...e,max:i,min:t,defaultValue:void 0!==e.defaultValue?e.defaultValue:sP(t,i),formatOptions:{style:"percent",...e.formatOptions},translations:{value:({value:e,percent:t,formatter:i})=>{if(null===e)return"loading...";if(i){let a="percent"===i.resolvedOptions().style?t/100:e;return i.format(a)}return e.toString()},...e.translations}}},initialState:()=>"idle",entry:["validateContext"],context:({bindable:e,prop:t})=>({value:e(()=>({defaultValue:t("defaultValue"),value:t("value"),onChange(e){t("onValueChange")?.({value:e})}}))}),computed:{isIndeterminate:({context:e})=>null===e.get("value"),percent({context:e,prop:t}){let i=e.get("value");return(0,to.isNumber)(i)?100*(0,to.getValuePercent)(i,t("min"),t("max")):-1},formatter:(0,i$.memo)(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>new Intl.NumberFormat(e,t)),isHorizontal:({prop:e})=>"horizontal"===e("orientation")},states:{idle:{on:{"VALUE.SET":{actions:["setValue"]}}}},implementations:{actions:{setValue:({context:e,event:t,prop:i})=>{let a=null===t.value?null:Math.max(0,Math.min(t.value,i("max")));e.set("value",a)},validateContext:({context:e,prop:t})=>{let i=t("max"),a=t("min"),o=e.get("value");if(null!=o){if(!sw(i))throw Error(`[progress] The max value passed \`${i}\` is not a valid number`);if(!sT(o,i))throw Error(`[progress] The value passed \`${o}\` exceeds the max value \`${i}\``);if(!sV(o,a))throw Error(`[progress] The value passed \`${o}\` exceeds the min value \`${a}\``)}}}}});var sw=e=>(0,to.isNumber)(e)&&!isNaN(e),sT=(e,t)=>sw(e)&&e<=t,sV=(e,t)=>sw(e)&&e>=t,sP=(e,t)=>e+(t-e)/2,sR=iQ()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);(0,to.createSplitProps)(sR);let sN={slots:sO.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}},sz={className:"chakra-progress-circle",slots:sO.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}};var s_=((a=s_||{})[a.Border=-1]="Border",a[a.Data=0]="Data",a[a.Function=1]="Function",a[a.Position=2]="Position",a[a.Timing=3]="Timing",a[a.Alignment=4]="Alignment",a),sA=Object.defineProperty,sF=(e,t,i)=>{let a;return(a="symbol"!=typeof t?t+"":t)in e?sA(e,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[a]=i,i};let sD=[1,0],sL=[2,3],sM=[3,2],sW={L:[0,1],M:sD,Q:sL,H:sM},sB=/^[0-9]*$/,sH=/^[A-Z0-9 $%*+.\/:-]*$/,s$="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",sj=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],sG=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]];class sU{constructor(e,t,i,a){if(this.version=e,this.ecc=t,sF(this,"size"),sF(this,"mask"),sF(this,"modules",[]),sF(this,"types",[]),e<1||e>40)throw RangeError("Version value out of range");if(a<-1||a>7)throw RangeError("Mask value out of range");this.size=4*e+17;const o=Array.from({length:this.size},()=>!1);for(let e=0;e0));this.drawFunctionPatterns();const n=this.addEccAndInterleave(i);if(this.drawCodewords(n),-1===a){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const i=this.getPenaltyScore();i=0&&e=0&&t>>9)*1335;let a=(t<<10|i)^21522;for(let e=0;e<=5;e++)this.setFunctionModule(8,e,sY(a,e));this.setFunctionModule(8,7,sY(a,6)),this.setFunctionModule(8,8,sY(a,7)),this.setFunctionModule(7,8,sY(a,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,sY(a,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,sY(a,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,sY(a,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;for(let e=0;e<18;e++){let i=sY(t,e),a=this.size-11+e%3,o=Math.floor(e/3);this.setFunctionModule(a,o,i),this.setFunctionModule(o,a,i)}}drawFinderPattern(e,t){for(let i=-4;i<=4;i++)for(let a=-4;a<=4;a++){let o=Math.max(Math.abs(a),Math.abs(i)),n=e+a,r=t+i;n>=0&&n=0&&r255)throw RangeError("Degree out of range");let t=[];for(let i=0;i0);for(let a of e){let e=a^i.shift();i.push(0),t.forEach((t,a)=>i[a]^=s5(t,e))}return i}(a,d);t{(e!==l-o||i>=r)&&c.push(t[e])});return c}drawCodewords(e){if(e.length!==Math.floor(s1(this.version)/8))throw RangeError("Invalid argument");let t=0;for(let i=this.size-1;i>=1;i-=2){6===i&&(i=5);for(let a=0;a>>3],7-(7&t)),t++)}}}applyMask(e){if(e<0||e>7)throw RangeError("Mask value out of range");for(let t=0;t5&&e++:(this.finderPenaltyAddHistory(a,o),i||(e+=40*this.finderPenaltyCountPatterns(o)),i=this.modules[t][n],a=1);e+=40*this.finderPenaltyTerminateAndCount(i,a,o)}for(let t=0;t5&&e++:(this.finderPenaltyAddHistory(a,o),i||(e+=40*this.finderPenaltyCountPatterns(o)),i=this.modules[n][t],a=1);e+=40*this.finderPenaltyTerminateAndCount(i,a,o)}for(let t=0;te+ +!!t,t);let i=this.size*this.size;return e+(Math.ceil(Math.abs(20*t-10*i)/i)-1)*10}getAlignmentPatternPositions(){if(1===this.version)return[];{let e=Math.floor(this.version/7)+2,t=32===this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),i=[6];for(let a=this.size-7;i.length0&&e[2]===t&&e[3]===3*t&&e[4]===t&&e[5]===t;return(i&&e[0]>=4*t&&e[6]>=t?1:0)+(i&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,i){return e&&(this.finderPenaltyAddHistory(t,i),t=0),t+=this.size,this.finderPenaltyAddHistory(t,i),this.finderPenaltyCountPatterns(i)}finderPenaltyAddHistory(e,t){0===t[0]&&(e+=this.size),t.pop(),t.unshift(e)}}function sq(e,t,i){if(t<0||t>31||e>>>t!=0)throw RangeError("Value out of range");for(let a=t-1;a>=0;a--)i.push(e>>>a&1)}function sY(e,t){return(e>>>t&1)!=0}class sK{constructor(e,t,i){if(this.mode=e,this.numChars=t,this.bitData=i,t<0)throw RangeError("Invalid argument");this.bitData=i.slice()}getData(){return this.bitData.slice()}}let sX=[1,10,12,14],sZ=[2,9,11,13],sJ=[4,8,16,16];function sQ(e,t){return e[Math.floor((t+7)/17)+1]}function s0(e){let t=[];for(let i of e)sq(i,8,t);return new sK(sJ,e.length,t)}function s1(e){if(e<1||e>40)throw RangeError("Version number out of range");let t=(16*e+128)*e+64;if(e>=2){let i=Math.floor(e/7)+2;t-=(25*i-10)*i-55,e>=7&&(t-=36)}return t}function s2(e,t){return Math.floor(s1(e)/8)-sj[t[0]][e]*sG[t[0]][e]}function s5(e,t){if(e>>>8!=0||t>>>8!=0)throw RangeError("Byte out of range");let i=0;for(let a=7;a>=0;a--)i=i<<1^(i>>>7)*285^(t>>>a&1)*e;return i}var s3=(0,ta.createAnatomy)("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");s3.build(),(0,i$.createMachine)({props:({props:e})=>({defaultValue:"",pixelSize:10,...e}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({value:t(()=>({value:e("value"),defaultValue:e("defaultValue"),onChange(t){e("onValueChange")?.({value:t})}}))}),computed:{encoded:(0,i$.memo)(({context:e,prop:t})=>[e.get("value"),t("encoding")],([e,t])=>(function(e,t){let{ecc:i="L",boostEcc:a=!1,minVersion:o=1,maxVersion:n=40,maskPattern:r=-1,border:l=1}=t||{},s="string"==typeof e?function(e){var t,i;if(""===e)return[];if(t=e,sB.test(t))return[function(e){var t;if(t=e,!sB.test(t))throw RangeError("String contains non-numeric characters");let i=[];for(let t=0;t7)throw RangeError("Invalid value");for(r=i;;r++){let i=8*s2(r,t),o=function(e,t){let i=0;for(let a of e){let e=sQ(a.mode,t);if(a.numChars>=1<=a)throw RangeError("Data too long")}for(let e of[sD,sL,sM])n&&l<=8*s2(r,e)&&(t=e);let s=[];for(let t of e)for(let e of(sq(t.mode[0],4,s),sq(t.numChars,sQ(t.mode,r),s),t.getData()))s.push(e);let d=8*s2(r,t);sq(0,Math.min(4,d-s.length),s),sq(0,(8-s.length%8)%8,s);for(let e=236;s.length0);return s.forEach((e,t)=>c[t>>>3]|=e<<7-(7&t)),new sU(r,t,c,o)}(s,sW[i],o,n,r,a),c=function(e,t=1){if(!t)return e;let{size:i}=e,a=i+2*t;e.size=a,e.data.forEach(e=>{for(let i=0;i!1)),e.data.push(Array.from({length:a},e=>!1));let o=s_.Border;e.types.forEach(e=>{for(let i=0;io)),e.types.push(Array.from({length:a},e=>o));return e}({version:d.version,maskPattern:d.mask,size:d.size,data:d.modules,types:d.types},l);return t?.invert&&(c.data=c.data.map(e=>e.map(e=>!e))),t?.onEncoded?.(c),c})(e,t))},states:{idle:{on:{"VALUE.SET":{actions:["setValue"]},"DOWNLOAD_TRIGGER.CLICK":{actions:["downloadQrCode"]}}}},implementations:{actions:{setValue({context:e,event:t}){e.set("value",t.value)},downloadQrCode({event:e,scope:t}){let{mimeType:i,quality:a,fileName:o}=e,n=t.getById(t.ids?.frame??`qrcode:${t.id}:frame`),r=t.getDoc();(0,tI.getDataUrl)(n,{type:i,quality:a}).then(e=>{let t=r.createElement("a");t.href=e,t.rel="noopener",t.download=o,t.click(),setTimeout(()=>{t.remove()},0)})}}}});var s4=iQ()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);(0,to.createSplitProps)(s4);let s6={slots:s3.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}},s8={className:"chakra-radio-card",slots:rA.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:e7.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:e7.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:e7.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:e7.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:e7.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:e7.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:e7.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:e7.variants?.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}},s7={className:"chakra-radio-group",slots:r_.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:e7.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:e7.variants?.variant?.outline},subtle:{itemControl:e7.variants?.variant?.subtle},solid:{itemControl:e7.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:e7.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:e7.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:e7.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:e7.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}},s9={className:"chakra-rating-group",slots:rF.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}};var de=Object.defineProperty,dt=(e,t,i)=>{let a;return(a="symbol"!=typeof t?t+"":t)in e?de(e,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[a]=i},di=(0,ta.createAnatomy)("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");di.build();var da=e=>e.ids?.root??`scroll-area-${e.id}`,dn=e=>e.getById(da(e)),dr=e=>e.getById(e.ids?.viewport??`scroll-area-${e.id}:viewport`),dl=e=>(0,tI.query)(dn(e),`[data-part=scrollbar][data-orientation=horizontal][data-ownedby="${da(e)}"]`),ds=e=>(0,tI.query)(dn(e),`[data-part=scrollbar][data-orientation=vertical][data-ownedby="${da(e)}"]`),dd=e=>(0,tI.query)(dl(e),`[data-part=thumb][data-orientation=horizontal][data-ownedby="${da(e)}"]`),dc=e=>(0,tI.query)(ds(e),`[data-part=thumb][data-orientation=vertical][data-ownedby="${da(e)}"]`);function du(e,t,i){if(!e)return 0;let a=(0,tI.getComputedStyle)(e),o="x"===i?"Inline":"Block";return"x"===i&&"margin"===t?2*parseFloat(a[`${t}InlineStart`]):parseFloat(a[`${t}${o}Start`])+parseFloat(a[`${t}${o}End`])}function dg(e,t){let i=e.scrollTop,a=e.scrollLeft,o=e.scrollHeight-e.clientHeight>1,n=e.scrollWidth-e.clientWidth>1,r=e.scrollWidth-e.clientWidth,l=e.scrollHeight-e.clientHeight,s=!1,d=!1,c=!1,u=!1;return n&&("rtl"===t&&a<=0?(s=Math.abs(a)>=r-1,d=1>=Math.abs(a)):(s=a<=1,d=a>=r-1)),o&&(c=i<=1,u=i>=l-1),{top:c,right:d,bottom:u,left:s}}var dp=class{constructor(){dt(this,"currentId",0),dt(this,"clear",()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)}),dt(this,"disposeEffect",()=>this.clear)}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}};(0,i$.createMachine)({props:({props:e})=>((0,to.ensureProps)(e,["id"]),e),context:({bindable:e})=>({scrollingX:e(()=>({defaultValue:!1})),scrollingY:e(()=>({defaultValue:!1})),hovering:e(()=>({defaultValue:!1})),dragging:e(()=>({defaultValue:!1})),touchModality:e(()=>({defaultValue:!1})),atSides:e(()=>({defaultValue:{top:!0,right:!1,bottom:!1,left:!0}})),cornerSize:e(()=>({defaultValue:{width:0,height:0}})),thumbSize:e(()=>({defaultValue:{width:0,height:0}})),hiddenState:e(()=>({defaultValue:{scrollbarYHidden:!1,scrollbarXHidden:!1,cornerHidden:!1},hash:e=>`Y:${e.scrollbarYHidden} X:${e.scrollbarXHidden} C:${e.cornerHidden}`}))}),refs:()=>({orientation:"vertical",scrollPosition:{x:0,y:0},scrollYTimeout:new dp,scrollXTimeout:new dp,scrollEndTimeout:new dp,startX:0,startY:0,startScrollTop:0,startScrollLeft:0,programmaticScroll:!0}),initialState:()=>"idle",watch({track:e,prop:t,context:i,send:a}){e([()=>t("dir"),()=>i.hash("hiddenState")],()=>{a({type:"thumb.measure"})})},effects:["trackContentResize","trackViewportVisibility","trackWheelEvent"],entry:["checkHovering"],exit:["clearTimeouts"],on:{"thumb.measure":{actions:["setThumbSize"]},"viewport.scroll":{actions:["setThumbSize","setScrolling","setProgrammaticScroll"]},"root.pointerenter":{actions:["setTouchModality","setHovering"]},"root.pointerdown":{actions:["setTouchModality"]},"root.pointerleave":{actions:["clearHovering"]}},states:{idle:{on:{"scrollbar.pointerdown":{target:"dragging",actions:["scrollToPointer","startDragging"]},"thumb.pointerdown":{target:"dragging",actions:["startDragging"]}}},dragging:{effects:["trackPointerMove"],on:{"thumb.pointermove":{actions:["setDraggingScroll"]},"scrollbar.pointerup":{target:"idle",actions:["stopDragging"]},"thumb.pointerup":{target:"idle",actions:["clearScrolling","stopDragging"]}}}},implementations:{actions:{setTouchModality({context:e,event:t}){e.set("touchModality","touch"===t.pointerType)},setHovering({context:e}){e.set("hovering",!0)},clearHovering({context:e}){e.set("hovering",!1)},setProgrammaticScroll({refs:e}){e.get("scrollEndTimeout").start(100,()=>{e.set("programmaticScroll",!0)})},clearScrolling({context:e,event:t}){e.set("vertical"===t.orientation?"scrollingY":"scrollingX",!1)},setThumbSize({context:e,scope:t,prop:i}){let a=dr(t);if(!a)return;let o=a.scrollHeight,n=a.scrollWidth;if(0===o||0===n)return;let r=ds(t),l=dl(t),s=dc(t),d=dd(t),c=a.clientHeight,u=a.clientWidth,g=a.scrollTop,p=a.scrollLeft,h=c>=o,m=u>=n,f=du(l,"padding","x"),v=du(r,"padding","y"),b=du(d,"margin","x"),x=du(s,"margin","y"),y=(m?0:u)-f-b,S=(h?0:c)-v-x,k=l?Math.min(l.offsetWidth,y):y,C=r?Math.min(r.offsetHeight,S):S,E=Math.max(20,u/n*k),I=Math.max(20,c/o*C);if(e.set("thumbSize",e=>e.height===I&&e.width===E?e:{width:E,height:I}),r&&s){let e=r.offsetHeight-I-v-x,t=Math.min(e,Math.max(0,g/(o-c)*e));s.style.transform=`translate3d(0,${t}px,0)`}if(l&&d){let e=l.offsetWidth-E-f-b,t=p/(n-u),a="rtl"===i("dir")?(0,to.clampValue)(t*e,-e,0):(0,to.clampValue)(t*e,0,e);d.style.transform=`translate3d(${a}px,0,0)`}if((0,tI.query)(dn(t),`[data-part=corner][data-ownedby="${da(t)}"]`)){if(m||h)e.set("cornerSize",{width:0,height:0});else if(!m&&!h){let t=r?.offsetWidth||0,i=l?.offsetHeight||0;e.set("cornerSize",{width:t,height:i})}}e.set("hiddenState",e=>{let t=h||m;return e.scrollbarYHidden===h&&e.scrollbarXHidden===m&&e.cornerHidden===t?e:{scrollbarYHidden:h,scrollbarXHidden:m,cornerHidden:t}}),e.set("atSides",e=>{let t=dg(a,i("dir"));return(0,to.isEqual)(e,t)?e:t})},checkHovering({scope:e,context:t}){let i=dr(e);i?.matches(":hover")&&t.set("hovering",!0)},setScrolling({event:e,refs:t,context:i,prop:a}){let o={x:e.target.scrollLeft,y:e.target.scrollTop},n=t.get("scrollPosition"),r=o.x-n.x,l=o.y-n.y;t.set("scrollPosition",o),i.set("atSides",t=>{let i=dg(e.target,a("dir"));return(0,to.isEqual)(t,i)?t:i}),0!==l&&(i.set("scrollingY",!0),t.get("scrollYTimeout").start(1e3,()=>{i.set("scrollingY",!1)})),0!==r&&(i.set("scrollingX",!0),t.get("scrollXTimeout").start(1e3,()=>{i.set("scrollingX",!1)}))},scrollToPointer({event:e,scope:t,prop:i}){let a=dr(t);if(!a)return;let o=dc(t),n=ds(t),r=dd(t),l=dl(t),s=e.point;if(o&&n&&"vertical"===e.orientation){let e=du(o,"margin","y"),t=du(n,"padding","y"),i=o.offsetHeight,r=n.getBoundingClientRect(),l=s.y-r.top-i/2-t+e/2,d=a.scrollHeight,c=a.clientHeight;a.scrollTop=l/(n.offsetHeight-i-t-e)*(d-c)}if(r&&l&&"horizontal"===e.orientation){let e,t=du(r,"margin","x"),o=du(l,"padding","x"),n=r.offsetWidth,d=l.getBoundingClientRect(),c=s.x-d.left-n/2-o+t/2,u=a.scrollWidth,g=a.clientWidth,p=c/(l.offsetWidth-n-o-t);"rtl"===i("dir")?(e=(1-p)*(u-g),a.scrollLeft<=0&&(e=-e)):e=p*(u-g),a.scrollLeft=e}},startDragging({event:e,refs:t,scope:i}){t.set("startX",e.point.x),t.set("startY",e.point.y),t.set("orientation",e.orientation);let a=dr(i);a&&(t.set("startScrollTop",a.scrollTop),t.set("startScrollLeft",a.scrollLeft))},setDraggingScroll({event:e,refs:t,scope:i,context:a}){let o=t.get("startY"),n=t.get("startX"),r=t.get("startScrollTop"),l=t.get("startScrollLeft"),s=e.point,d=s.y-o,c=s.x-n,u=dr(i);if(!u)return;let g=u.scrollHeight,p=u.clientHeight,h=u.scrollWidth,m=u.clientWidth,f=t.get("orientation"),v=dc(i),b=ds(i);if(v&&b&&"vertical"===f){let e=du(b,"padding","y"),i=du(v,"margin","y"),o=v.offsetHeight;u.scrollTop=r+d/(b.offsetHeight-o-e-i)*(g-p),a.set("scrollingY",!0),t.get("scrollYTimeout").start(1e3,()=>{a.set("scrollingY",!1)})}let x=dd(i),y=dl(i);if(x&&y&&"horizontal"===f){let e=du(y,"padding","x"),i=du(x,"margin","x"),o=x.offsetWidth;u.scrollLeft=l+c/(y.offsetWidth-o-e-i)*(h-m),a.set("scrollingX",!0),t.get("scrollXTimeout").start(1e3,()=>{a.set("scrollingX",!1)})}},stopDragging({refs:e}){e.set("orientation",null)},clearTimeouts({refs:e}){e.get("scrollYTimeout").clear(),e.get("scrollXTimeout").clear(),e.get("scrollEndTimeout").clear()}},effects:{trackContentResize({scope:e,send:t}){let i=e.getById(e.ids?.content??`scroll-area-${e.id}:content`),a=dn(e);if(!i||!a)return;let o=new(e.getWin()).ResizeObserver(()=>{setTimeout(()=>{t({type:"thumb.measure"})},1)});return o.observe(i),o.observe(a),()=>{o.disconnect()}},trackViewportVisibility({scope:e,send:t}){let i=e.getWin(),a=dr(e);if(!a)return;let o=new i.IntersectionObserver(e=>{e.forEach(e=>{e.intersectionRatio>0&&(t({type:"thumb.measure"}),o.disconnect())})});return o.observe(a),()=>{o.disconnect()}},trackWheelEvent({scope:e}){let t=ds(e),i=dl(e);if(!t&&!i)return;let a=t=>{let i=dr(e);if(!i||t.ctrlKey)return;let a=t.currentTarget.dataset.orientation;if("vertical"===a){let e=i.scrollHeight>i.clientHeight,a=0===i.scrollTop&&t.deltaY<0,o=i.scrollTop===i.scrollHeight-i.clientHeight&&t.deltaY>0;if(!(e&&0!==t.deltaY&&!(a||o)))return;t.preventDefault(),i.scrollTop+=t.deltaY}else if("horizontal"===a){let e=i.scrollWidth>i.clientWidth,a=0===i.scrollLeft&&t.deltaX<0,o=i.scrollLeft===i.scrollWidth-i.clientWidth&&t.deltaX>0;if(!(e&&0!==t.deltaX&&!(a||o)))return;t.preventDefault(),i.scrollLeft+=t.deltaX}};return(0,to.callAll)(t&&(0,tI.addDomEvent)(t,"wheel",a,{passive:!1}),i&&(0,tI.addDomEvent)(i,"wheel",a,{passive:!1}))},trackPointerMove({scope:e,send:t,refs:i}){let a=e.getDoc(),o=i.get("orientation");return(0,tI.trackPointerMove)(a,{onPointerMove({point:e}){t({type:"thumb.pointermove",orientation:o,point:e})},onPointerUp(){t({type:"thumb.pointerup",orientation:o})}})}}}});var dh=iQ()(["dir","getRootNode","ids","id"]);(0,to.createSplitProps)(dh);let dm={className:"chakra-scroll-area",slots:di.keys(),base:{root:{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",overflow:"hidden","--scrollbar-margin":"2px","--scrollbar-click-area":"calc(var(--scrollbar-size) + calc(var(--scrollbar-margin) * 2))"},viewport:{display:"flex",flexDirection:"column",height:"100%",width:"100%",borderRadius:"inherit",WebkitOverflowScrolling:"touch",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},content:{minWidth:"100%"},scrollbar:{display:"flex",userSelect:"none",touchAction:"none",borderRadius:"full",colorPalette:"gray",transition:"opacity 150ms 300ms",position:"relative",margin:"var(--scrollbar-margin)","&:not([data-overflow-x], [data-overflow-y])":{display:"none"},bg:"{colors.colorPalette.solid/10}","--thumb-bg":"{colors.colorPalette.solid/25}","&:is(:hover, :active)":{"--thumb-bg":"{colors.colorPalette.solid/50}"},_before:{content:'""',position:"absolute"},_vertical:{width:"var(--scrollbar-size)",flexDirection:"column","&::before":{width:"var(--scrollbar-click-area)",height:"100%",insetInlineStart:"calc(var(--scrollbar-margin) * -1)"}},_horizontal:{height:"var(--scrollbar-size)",flexDirection:"row","&::before":{height:"var(--scrollbar-click-area)",width:"100%",top:"calc(var(--scrollbar-margin) * -1)"}}},thumb:{borderRadius:"inherit",bg:"var(--thumb-bg)",transition:"backgrounds",_vertical:{width:"full"},_horizontal:{height:"full"}},corner:{bg:"bg.muted",margin:"var(--scrollbar-margin)",opacity:0,transition:"opacity 150ms 300ms","&[data-hover]":{transitionDelay:"0ms",opacity:1}}},variants:{variant:{hover:{scrollbar:{opacity:"0","&[data-hover], &[data-scrolling]":{opacity:"1",transitionDuration:"faster",transitionDelay:"0ms"}}},always:{scrollbar:{opacity:"1"}}},size:{xs:{root:{"--scrollbar-size":"sizes.1"}},sm:{root:{"--scrollbar-size":"sizes.1.5"}},md:{root:{"--scrollbar-size":"sizes.2"}},lg:{root:{"--scrollbar-size":"sizes.3"}}}},defaultVariants:{size:"md",variant:"hover"}},df=nS.rename("segment-group");df.build();let dv={className:"chakra-segment-group",slots:df.keys(),base:{root:{"--segment-radius":"radii.l2","--segment-indicator-bg":{_light:"colors.bg",_dark:"colors.bg.emphasized"},"--segment-indicator-shadow":"shadows.sm",borderRadius:"var(--segment-radius)",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"var(--segment-indicator-shadow)",pos:"absolute",bg:"var(--segment-indicator-bg)",width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}},db={className:"chakra-slider",slots:rM.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}},dx={slots:rZ.keys(),className:"splitter",base:{resizeTrigger:{"--splitter-border-color":"colors.border","--splitter-thumb-color":"colors.bg","--splitter-thumb-size":"sizes.2","--splitter-thumb-inset":"calc(var(--splitter-thumb-size) * -0.5)","--splitter-border-size":"1px","--splitter-handle-size":"sizes.6",outline:"0",display:"grid",placeItems:"center",position:"relative",_focus:{"--splitter-border-color":"colors.border.emphasized","--splitter-thumb-color":"colors.colorPalette.subtle"},_dragging:{"--splitter-thumb-color":"colors.colorPalette.focusRing"},_horizontal:{minWidth:"var(--splitter-thumb-size)",marginInline:"var(--splitter-thumb-inset)"},_vertical:{minHeight:"var(--splitter-thumb-size)",marginBlock:"var(--splitter-thumb-inset)"}},resizeTriggerSeparator:{position:"absolute",bg:"var(--splitter-border-color)","[data-part='resize-trigger'][data-orientation=horizontal] &":{insetInlineEnd:"calc(var(--splitter-thumb-size) * 0.5)",insetBlock:"0",insetInlineStart:"auto",w:"var(--splitter-border-size)"},"[data-part='resize-trigger'][data-orientation=vertical] &":{insetBlockEnd:"calc(var(--splitter-thumb-size) * 0.5)",insetInline:"0",insetBlockStart:"auto",h:"var(--splitter-border-size)"}},resizeTriggerIndicator:{position:"relative",rounded:"full",bg:"var(--splitter-thumb-color)",shadow:"xs",borderWidth:"1px",zIndex:"1","[data-part='resize-trigger'][data-orientation=horizontal] &":{w:"full",h:"var(--splitter-handle-size)"},"[data-part='resize-trigger'][data-orientation=vertical] &":{w:"var(--splitter-handle-size)",h:"full"},"[data-part='resize-trigger'][data-focus]:focus-visible &":{outlineWidth:"2px",outlineColor:"colorPalette.focusRing",outlineStyle:"solid"},"[data-part='resize-trigger'][data-disabled] &":{visibility:"hidden"}}}},dy={className:"chakra-stat",slots:rW.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}},dS={className:"chakra-status",slots:rB.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}},dk={className:"chakra-steps",slots:rH.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}},dC={slots:r$.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}},dE={className:"chakra-table",slots:rj.keys(),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}"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}},dI={slots:rU.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-trigger-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-trigger-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}},dO=e1.variants?.variant,dw={slots:rq.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:dO?.subtle},solid:{root:dO?.solid},outline:{root:dO?.outline},surface:{root:dO?.surface}}},defaultVariants:{size:"md",variant:"surface"}};var dT=e.i(24186),dV="__live-region__",dP=(0,ta.createAnatomy)("tagsInput").parts("root","label","control","input","clearTrigger","item","itemPreview","itemInput","itemText","itemDeleteTrigger");dP.build();var dR=(e,t)=>e.ids?.item?.(t)??`tags-input:${e.id}:tag:${t.value}:${t.index}`,dN=(e,t)=>e.getById(`${t}:input`),dz=e=>e.getById(e.ids?.root??`tags-input:${e.id}`),d_=e=>e.getById(e.ids?.input??`tags-input:${e.id}:input`),dA=e=>e.getById(e.ids?.hiddenInput??`tags-input:${e.id}:hidden-input`),dF=e=>(0,tI.queryAll)(dz(e),"[data-part=item-preview]:not([data-disabled])"),dD=(e,t)=>(0,tI.indexOfId)(dF(e),t),{and:dL,not:dM,or:dW}=(0,i$.createGuards)();(0,i$.createMachine)({props:({props:e})=>({dir:"ltr",addOnPaste:!1,editable:!0,validate:()=>!0,delimiter:",",defaultValue:[],defaultInputValue:"",max:1/0,...e,translations:{clearTriggerLabel:"Clear all tags",deleteTagTriggerLabel:e=>`Delete tag ${e}`,tagAdded:e=>`Added tag ${e}`,tagsPasted:e=>`Pasted ${e.length} tags`,tagEdited:e=>`Editing tag ${e}. Press enter to save or escape to cancel.`,tagUpdated:e=>`Tag update to ${e}`,tagDeleted:e=>`Tag ${e} deleted`,tagSelected:e=>`Tag ${e} selected. Press enter to edit, delete or backspace to remove.`,...e.translations}}),initialState:({prop:e})=>e("autoFocus")?"focused:input":"idle",refs:()=>({liveRegion:null,log:{current:null,prev:null}}),context:({bindable:e,prop:t})=>({value:e(()=>({defaultValue:t("defaultValue"),value:t("value"),isEqual:to.isEqual,hash:e=>e.join(", "),onChange(e){t("onValueChange")?.({value:e})}})),inputValue:e(()=>({sync:!0,defaultValue:t("defaultInputValue"),value:t("inputValue"),onChange(e){t("onInputValueChange")?.({inputValue:e})}})),fieldsetDisabled:e(()=>({defaultValue:!1})),editedTagValue:e(()=>({defaultValue:""})),editedTagId:e(()=>({defaultValue:null})),editedTagIndex:e(()=>({defaultValue:null,sync:!0})),highlightedTagId:e(()=>({defaultValue:null,sync:!0,onChange(e){t("onHighlightChange")?.({highlightedValue:e})}}))}),computed:{count:({context:e})=>e.get("value").length,valueAsString:({context:e})=>e.hash("value"),trimmedInputValue:({context:e})=>e.get("inputValue").trim(),isDisabled:({prop:e})=>!!e("disabled"),isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),isAtMax:({context:e,prop:t})=>e.get("value").length===t("max"),isOverflowing:({context:e,prop:t})=>e.get("value").length>t("max")},watch({track:e,context:t,action:i,computed:a,refs:o}){e([()=>t.get("editedTagValue")],()=>{i(["syncEditedTagInputValue"])}),e([()=>t.get("inputValue")],()=>{i(["syncInputValue"])}),e([()=>t.get("highlightedTagId")],()=>{i(["logHighlightedTag"])}),e([()=>a("isOverflowing")],()=>{i(["invokeOnInvalid"])}),e([()=>JSON.stringify(o.get("log"))],()=>{i(["announceLog"])})},effects:["trackLiveRegion","trackFormControlState"],exit:["clearLog"],on:{DOUBLE_CLICK_TAG:{guard:"isTagEditable",target:"editing:tag",actions:["setEditedId"]},POINTER_DOWN_TAG:{target:"navigating:tag",actions:["highlightTag","focusInput"]},CLICK_DELETE_TAG:{target:"focused:input",actions:["deleteTag"]},SET_INPUT_VALUE:{actions:["setInputValue"]},SET_VALUE:{actions:["setValue"]},CLEAR_TAG:{actions:["deleteTag"]},SET_VALUE_AT_INDEX:{actions:["setValueAtIndex"]},CLEAR_VALUE:{actions:["clearTags","clearInputValue","focusInput"]},ADD_TAG:{actions:["addTag"]},INSERT_TAG:{guard:dL(dW(dM("isAtMax"),"allowOverflow"),dM("isInputValueEmpty")),actions:["addTag","clearInputValue"]},EXTERNAL_BLUR:[{guard:"addOnBlur",actions:["raiseInsertTagEvent"]},{guard:"clearOnBlur",actions:["clearInputValue"]}]},states:{idle:{on:{FOCUS:{target:"focused:input"},POINTER_DOWN:{guard:dM("hasHighlightedTag"),target:"focused:input"}}},"focused:input":{tags:["focused"],entry:["focusInput","clearHighlightedId"],effects:["trackInteractOutside"],on:{TYPE:{actions:["setInputValue"]},BLUR:[{guard:"addOnBlur",target:"idle",actions:["raiseInsertTagEvent"]},{guard:"clearOnBlur",target:"idle",actions:["clearInputValue"]},{target:"idle"}],ENTER:{actions:["raiseInsertTagEvent"]},DELIMITER_KEY:{actions:["raiseInsertTagEvent"]},ARROW_LEFT:{guard:dL("hasTags","isCaretAtStart"),target:"navigating:tag",actions:["highlightLastTag"]},BACKSPACE:{target:"navigating:tag",guard:dL("hasTags","isCaretAtStart"),actions:["highlightLastTag"]},DELETE:{guard:"hasHighlightedTag",actions:["deleteHighlightedTag","highlightTagAtIndex"]},PASTE:[{guard:"addOnPaste",actions:["setInputValue","addTagFromPaste"]},{actions:["setInputValue"]}]}},"navigating:tag":{tags:["focused"],effects:["trackInteractOutside"],on:{ARROW_RIGHT:[{guard:dL("hasTags","isCaretAtStart",dM("isLastTagHighlighted")),actions:["highlightNextTag"]},{target:"focused:input"}],ARROW_LEFT:[{guard:dM("isCaretAtStart"),target:"focused:input"},{actions:["highlightPrevTag"]}],BLUR:{target:"idle",actions:["clearHighlightedId"]},ENTER:{guard:dL("isTagEditable","hasHighlightedTag"),target:"editing:tag",actions:["setEditedId","focusEditedTagInput"]},ARROW_DOWN:{target:"focused:input"},ESCAPE:{target:"focused:input"},TYPE:{target:"focused:input",actions:["setInputValue"]},BACKSPACE:[{guard:dM("isCaretAtStart"),target:"focused:input"},{guard:"isFirstTagHighlighted",actions:["deleteHighlightedTag","highlightFirstTag"]},{guard:"hasHighlightedTag",actions:["deleteHighlightedTag","highlightPrevTag"]},{actions:["highlightLastTag"]}],DELETE:[{guard:dM("isCaretAtStart"),target:"focused:input"},{target:"focused:input",actions:["deleteHighlightedTag","highlightTagAtIndex"]}],PASTE:[{guard:"addOnPaste",target:"focused:input",actions:["setInputValue","addTagFromPaste"]},{target:"focused:input",actions:["setInputValue"]}]}},"editing:tag":{tags:["editing","focused"],entry:["focusEditedTagInput"],effects:["autoResize"],on:{TAG_INPUT_TYPE:{actions:["setEditedTagValue"]},TAG_INPUT_ESCAPE:{target:"navigating:tag",actions:["clearEditedTagValue","focusInput","clearEditedId","highlightTagAtIndex"]},TAG_INPUT_BLUR:[{guard:"isInputRelatedTarget",target:"navigating:tag",actions:["clearEditedTagValue","clearHighlightedId","clearEditedId"]},{target:"idle",actions:["clearEditedTagValue","clearHighlightedId","clearEditedId","raiseExternalBlurEvent"]}],TAG_INPUT_ENTER:[{guard:"isEditedTagEmpty",target:"navigating:tag",actions:["deleteHighlightedTag","focusInput","clearEditedId","highlightTagAtIndex"]},{target:"navigating:tag",actions:["submitEditedTagValue","focusInput","clearEditedId","highlightTagAtIndex"]}]}}},implementations:{guards:{isInputRelatedTarget:({scope:e,event:t})=>t.relatedTarget===d_(e),isAtMax:({computed:e})=>e("isAtMax"),hasHighlightedTag:({context:e})=>null!=e.get("highlightedTagId"),isFirstTagHighlighted:({context:e,scope:t})=>dR(t,{value:e.get("value")[0],index:0})===e.get("highlightedTagId"),isEditedTagEmpty:({context:e})=>""===e.get("editedTagValue").trim(),isLastTagHighlighted:({context:e,scope:t})=>{let i=e.get("value"),a=i.length-1;return dR(t,{value:i[a],index:a})===e.get("highlightedTagId")},isInputValueEmpty:({context:e})=>0===e.get("inputValue").trim().length,hasTags:({context:e})=>e.get("value").length>0,allowOverflow:({prop:e})=>!!e("allowOverflow"),autoFocus:({prop:e})=>!!e("autoFocus"),addOnBlur:({prop:e})=>"add"===e("blurBehavior"),clearOnBlur:({prop:e})=>"clear"===e("blurBehavior"),addOnPaste:({prop:e})=>!!e("addOnPaste"),isTagEditable:({prop:e})=>!!e("editable"),isCaretAtStart:({scope:e})=>(0,tI.isCaretAtStart)(d_(e))},effects:{trackInteractOutside:({scope:e,prop:t,send:i})=>iq(d_(e),{exclude:t=>(0,tI.queryAll)(dz(e),"[data-part=item]").some(e=>(0,tI.contains)(e,t)),onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside(e){t("onInteractOutside")?.(e),e.defaultPrevented||i({type:"BLUR",src:"interact-outside"})}}),trackFormControlState:({context:e,send:t,scope:i})=>(0,tI.trackFormControl)(dA(i),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){t({type:"SET_VALUE",value:e.initial("value"),src:"form-reset"})}}),autoResize({context:e,prop:t,scope:i}){let a;return queueMicrotask(()=>{var o;let n=e.get("editedTagValue"),r=e.get("editedTagIndex");if(!n||null==r||!t("editable"))return;let l=(o={value:n,index:r},i.getById(i.ids?.itemInput?.(o)??`${dR(i,o)}:input`));a=(0,dT.autoResizeInput)(l)}),()=>{a?.()}},trackLiveRegion({scope:e,refs:t}){let i=function(e={}){let{level:t="polite",document:i=document,root:a,delay:o=0}=e,n=i.defaultView??window,r=a??i.body;return{announce:function(e,a){let l=i.getElementById(dV);l?.remove(),a=a??o;let s=i.createElement("span");s.id=dV,s.dataset.liveAnnouncer="true",s.setAttribute("aria-live",t),s.setAttribute("role","assertive"!==t?"status":"alert"),Object.assign(s.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}),r.appendChild(s),n.setTimeout(()=>{s.textContent=e},a)},destroy:function(){let e=i.getElementById(dV);e?.remove()},toJSON:()=>dV}}({level:"assertive",document:e.getDoc()});return t.set("liveRegion",i),()=>i.destroy()}},actions:{raiseInsertTagEvent({send:e}){e({type:"INSERT_TAG"})},raiseExternalBlurEvent({send:e,event:t}){e({type:"EXTERNAL_BLUR",id:t.id})},dispatchChangeEvent({scope:e,computed:t}){var i;let a;i=t("valueAsString"),(a=dA(e))&&(0,tI.dispatchInputValueEvent)(a,{value:i})},highlightNextTag({context:e,scope:t}){let i=e.get("highlightedTagId");if(null==i)return;let a=(0,tI.nextById)(dF(t),i,!1);e.set("highlightedTagId",a?.id??null)},highlightFirstTag({context:e,scope:t}){(0,tI.raf)(()=>{let i=dF(t)[0];e.set("highlightedTagId",i?.id??null)})},highlightLastTag({context:e,scope:t}){let i=dF(t)[dF(t).length-1];e.set("highlightedTagId",i?.id??null)},highlightPrevTag({context:e,scope:t}){let i=e.get("highlightedTagId");if(null==i)return;let a=(0,tI.prevById)(dF(t),i,!1);e.set("highlightedTagId",a?.id??null)},highlightTag({context:e,event:t}){e.set("highlightedTagId",t.id)},highlightTagAtIndex({context:e,scope:t}){(0,tI.raf)(()=>{let i=e.get("editedTagIndex");if(null==i)return;let a=dF(t)[i];null!=a&&(e.set("highlightedTagId",a.id),e.set("editedTagIndex",null))})},deleteTag({context:e,scope:t,event:i,refs:a}){let o=dD(t,i.id),n=e.get("value")[o],r=a.get("log");a.set("log",{prev:r.current,current:{type:"delete",value:n}}),e.set("value",e=>(0,to.removeAt)(e,o))},deleteHighlightedTag({context:e,scope:t,refs:i}){let a=e.get("highlightedTagId");if(null==a)return;let o=dD(t,a);e.set("editedTagIndex",o);let n=e.get("value"),r=i.get("log");i.set("log",{prev:r.current,current:{type:"delete",value:n[o]}}),e.set("value",e=>(0,to.removeAt)(e,o))},setEditedId({context:e,event:t,scope:i}){let a=e.get("highlightedTagId"),o=t.id??a;e.set("editedTagId",o);let n=dD(i,o),r=e.get("value")[n];e.set("editedTagIndex",n),e.set("editedTagValue",r)},clearEditedId({context:e}){e.set("editedTagId",null)},clearEditedTagValue({context:e}){e.set("editedTagValue","")},setEditedTagValue({context:e,event:t}){e.set("editedTagValue",t.value)},submitEditedTagValue({context:e,scope:t,refs:i}){let a=e.get("editedTagId");if(!a)return;let o=dD(t,a);e.set("value",t=>{let i=t.slice();return i[o]=e.get("editedTagValue"),i});let n=i.get("log");i.set("log",{prev:n.current,current:{type:"update",value:e.get("editedTagValue")}})},setValueAtIndex({context:e,event:t,refs:i}){if(t.value){e.set("value",e=>{let i=e.slice();return i[t.index]=t.value,i});let a=i.get("log");i.set("log",{prev:a.current,current:{type:"update",value:t.value}})}else(0,to.warn)("You need to provide a value for the tag")},focusEditedTagInput({context:e,scope:t}){(0,tI.raf)(()=>{let i=e.get("editedTagId");if(!i)return;let a=dN(t,i);a?.select()})},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearHighlightedId({context:e}){e.set("highlightedTagId",null)},focusInput({scope:e}){(0,tI.raf)(()=>{d_(e)?.focus()})},clearInputValue({context:e}){(0,tI.raf)(()=>{e.set("inputValue","")})},syncInputValue({context:e,scope:t}){let i=d_(t);i&&(0,tI.setElementValue)(i,e.get("inputValue"))},syncEditedTagInputValue({context:e,event:t,scope:i}){let a=e.get("editedTagId")||e.get("highlightedTagId")||t.id;if(null==a)return;let o=dN(i,a);o&&(0,tI.setElementValue)(o,e.get("editedTagValue"))},addTag({context:e,event:t,computed:i,prop:a,refs:o}){let n=t.value??i("trimmedInputValue"),r=e.get("value");if(a("validate")?.({inputValue:n,value:Array.from(r)})){let t=(0,to.uniq)(r.concat(n));e.set("value",t);let i=o.get("log");o.set("log",{prev:i.current,current:{type:"add",value:n}})}else a("onValueInvalid")?.({reason:"invalidTag"})},addTagFromPaste({context:e,computed:t,prop:i,refs:a}){(0,tI.raf)(()=>{let o=t("trimmedInputValue"),n=e.get("value");if(i("validate")?.({inputValue:o,value:Array.from(n)})){let t=i("delimiter"),r=t?o.split(t).map(e=>e.trim()):[o],l=(0,to.uniq)(n.concat(...r));e.set("value",l);let s=a.get("log");a.set("log",{prev:s.current,current:{type:"paste",values:r}})}else i("onValueInvalid")?.({reason:"invalidTag"});e.set("inputValue","")})},clearTags({context:e,refs:t}){e.set("value",[]);let i=t.get("log");t.set("log",{prev:i.current,current:{type:"clear"}})},setValue({context:e,event:t}){e.set("value",t.value)},invokeOnInvalid({prop:e,computed:t}){t("isOverflowing")&&e("onValueInvalid")?.({reason:"rangeOverflow"})},clearLog({refs:e}){let t=e.get("log");t.prev=t.current=null},logHighlightedTag({refs:e,context:t,scope:i}){let a=t.get("highlightedTagId"),o=e.get("log");if(null==a||!o.current)return;let n=dD(i,a),r=t.get("value")[n],l=e.get("log");e.set("log",{prev:l.current,current:{type:"select",value:r}})},announceLog({refs:e,prop:t}){let i,a=e.get("liveRegion"),o=t("translations"),n=e.get("log");if(!n.current||null==a)return;let{current:r,prev:l}=n;switch(r.type){case"add":i=o.tagAdded(r.value);break;case"delete":i=o.tagDeleted(r.value);break;case"update":i=o.tagUpdated(r.value);break;case"paste":i=o.tagsPasted(r.values);break;case"select":i=o.tagSelected(r.value),l?.type==="delete"?i=`${o.tagDeleted(l.value)}. ${i}`:l?.type==="update"&&(i=`${o.tagUpdated(l.value)}. ${i}`)}i&&a.announce(i)}}}});var dB=iQ()(["addOnPaste","allowOverflow","autoFocus","blurBehavior","delimiter","dir","disabled","editable","form","getRootNode","id","ids","inputValue","invalid","max","maxLength","name","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onPointerDownOutside","onValueChange","onValueInvalid","required","readOnly","translations","validate","value","defaultValue","defaultInputValue"]);(0,to.createSplitProps)(dB);var dH=iQ()(["index","disabled","value"]);(0,to.createSplitProps)(dH);let d$={slots:dP.keys(),className:"tags-input",base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},control:{"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",minH:"var(--tags-input-height)","--input-height":"var(--tags-input-height)",px:"var(--tags-input-px)",py:"var(--tags-input-py)",gap:"var(--tags-input-gap)",display:"flex",flexWrap:"wrap",alignItems:"center",borderRadius:"l2",pos:"relative",transitionProperty:"border-color, box-shadow",transitionDuration:"normal",_disabled:{opacity:"0.5"},_invalid:{borderColor:"var(--error-color)"}},input:{flex:"1",minWidth:"20",outline:"none",bg:"transparent",color:"fg",px:"calc(var(--tags-input-item-px) / 1.25)",height:"var(--tags-input-item-height)",_readOnly:{display:"none"}},item:{maxWidth:"100%",minWidth:"0"},itemText:{lineClamp:"1",minWidth:"0"},itemInput:{outline:"none",bg:"transparent",minWidth:"2ch",color:"inherit",px:"var(--tags-input-item-px)",height:"var(--tags-input-item-height)"},itemPreview:{height:"var(--tags-input-item-height)",userSelect:"none",display:"inline-flex",alignItems:"center",gap:"1",rounded:"l1",px:"var(--tags-input-item-px)",maxWidth:"100%"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:"0",boxSize:"calc(var(--tags-input-item-height) / 1.5)",cursor:{base:"button",_disabled:"initial"},me:"-1",opacity:"0.4",_hover:{opacity:"1"},"[data-highlighted] &":{opacity:"1"},_icon:{boxSize:"80%"}},clearTrigger:{display:"flex",alignItems:"center",justifyContent:"center",boxSize:"calc(var(--tags-input-item-height) / 1.5)",cursor:{base:"button",_disabled:"initial"},color:"fg.muted",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1",_icon:{boxSize:"5"}}},variants:{size:{xs:{root:{"--tags-input-height":"sizes.8","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.6","--tags-input-item-px":"spacing.2",textStyle:"xs"}},sm:{root:{"--tags-input-height":"sizes.9","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.6","--tags-input-item-px":"spacing.2",textStyle:"sm"}},md:{root:{"--tags-input-height":"sizes.10","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.7","--tags-input-item-px":"spacing.2",textStyle:"sm"}},lg:{root:{"--tags-input-height":"sizes.11","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.8","--tags-input-item-px":"spacing.2",textStyle:"md"}}},variant:{outline:{control:{borderWidth:"1px",bg:"bg",_focus:{outlineWidth:"1px",outlineStyle:"solid",outlineColor:"var(--focus-color)",borderColor:"var(--focus-color)",_invalid:{outlineColor:"var(--error-color)",borderColor:"var(--error-color)"}}},itemPreview:{bg:"colorPalette.subtle",_highlighted:{bg:"colorPalette.muted"}}},subtle:{control:{bg:"bg.muted",borderWidth:"1px",borderColor:"transparent",_focus:{outlineWidth:"1px",outlineStyle:"solid",outlineColor:"var(--focus-color)",borderColor:"var(--focus-color)",_invalid:{outlineColor:"var(--error-color)",borderColor:"var(--error-color)"}}},itemPreview:{bg:"bg",borderWidth:"1px",_highlighted:{bg:"colorPalette.subtle",borderColor:"colorPalette.emphasized"}}},flushed:{control:{borderRadius:"0",px:"0",bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",_focus:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},itemPreview:{bg:"colorPalette.subtle",_highlighted:{bg:"colorPalette.muted"}}}}},defaultVariants:{size:"md",variant:"outline"}},dj={slots:rY.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{"--timeline-content-gap":"spacing.6",display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"--timeline-content-gap":"0"}},separator:{display:"var(--timeline-separator-display)",position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"var(--timeline-content-gap)",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},showLastSeparator:{true:{item:{_last:{"--timeline-separator-display":"initial"}}},false:{item:{_last:{"--timeline-separator-display":"none"}}}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid",showLastSeparator:!1}},dG={slots:rG.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}};var dU=(0,ta.createAnatomy)("tooltip").parts("trigger","arrow","arrowTip","positioner","content");dU.build();var dq=e=>e.getById(e.ids?.trigger??`tooltip:${e.id}:trigger`),dY=e=>e.getById(e.ids?.positioner??`tooltip:${e.id}:popper`),dK=(0,to.createStore)({id:null}),{and:dX,not:dZ}=(0,i$.createGuards)();(0,i$.createMachine)({initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",props({props:e}){let t=e.closeOnClick??!0,i=e.closeOnPointerDown??t;return{id:"x",openDelay:400,closeDelay:150,closeOnEscape:!0,interactive:!1,closeOnScroll:!0,disabled:!1,...e,closeOnPointerDown:i,closeOnClick:t,positioning:{placement:"bottom",...e.positioning}}},effects:["trackFocusVisible","trackStore"],context:({bindable:e})=>({currentPlacement:e(()=>({defaultValue:void 0})),hasPointerMoveOpened:e(()=>({defaultValue:!1}))}),watch({track:e,action:t,prop:i}){e([()=>i("disabled")],()=>{t(["closeIfDisabled"])}),e([()=>i("open")],()=>{t(["toggleVisibility"])})},states:{closed:{entry:["clearGlobalId"],on:{"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"pointer.leave":{actions:["clearPointerMoveOpened"]},"pointer.move":[{guard:dX("noVisibleTooltip",dZ("hasPointerMoveOpened")),target:"opening"},{guard:dZ("hasPointerMoveOpened"),target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}]}},opening:{effects:["trackScroll","trackPointerlockChange","waitForOpenDelay"],on:{"after.openDelay":[{guard:"isOpenControlled",actions:["setPointerMoveOpened","invokeOnOpen"]},{target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}],"controlled.open":{target:"open"},"controlled.close":{target:"closed"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"pointer.leave":[{guard:"isOpenControlled",actions:["clearPointerMoveOpened","invokeOnClose","toggleVisibility"]},{target:"closed",actions:["clearPointerMoveOpened","invokeOnClose"]}],close:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}]}},open:{effects:["trackEscapeKey","trackScroll","trackPointerlockChange","trackPositioning"],entry:["setGlobalId"],on:{"controlled.close":{target:"closed"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"pointer.leave":[{guard:"isVisible",target:"closing",actions:["clearPointerMoveOpened"]},{guard:"isOpenControlled",actions:["clearPointerMoveOpened","invokeOnClose"]},{target:"closed",actions:["clearPointerMoveOpened","invokeOnClose"]}],"content.pointer.leave":{guard:"isInteractive",target:"closing"},"positioning.set":{actions:["reposition"]}}},closing:{effects:["trackPositioning","waitForCloseDelay"],on:{"after.closeDelay":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"controlled.close":{target:"closed"},"controlled.open":{target:"open"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"pointer.move":[{guard:"isOpenControlled",actions:["setPointerMoveOpened","invokeOnOpen","toggleVisibility"]},{target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}],"content.pointer.move":{guard:"isInteractive",target:"open"},"positioning.set":{actions:["reposition"]}}}},implementations:{guards:{noVisibleTooltip:()=>null===dK.get("id"),isVisible:({prop:e})=>e("id")===dK.get("id"),isInteractive:({prop:e})=>!!e("interactive"),hasPointerMoveOpened:({context:e})=>e.get("hasPointerMoveOpened"),isOpenControlled:({prop:e})=>void 0!==e("open")},actions:{setGlobalId:({prop:e})=>{dK.set("id",e("id"))},clearGlobalId:({prop:e})=>{e("id")===dK.get("id")&&dK.set("id",null)},invokeOnOpen:({prop:e})=>{e("onOpenChange")?.({open:!0})},invokeOnClose:({prop:e})=>{e("onOpenChange")?.({open:!1})},closeIfDisabled:({prop:e,send:t})=>{e("disabled")&&t({type:"close",src:"disabled.change"})},reposition:({context:e,event:t,prop:i,scope:a})=>{if("positioning.set"===t.type)return iH(dq(a),()=>dY(a),{...i("positioning"),...t.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},toggleVisibility:({prop:e,event:t,send:i})=>{queueMicrotask(()=>{i({type:e("open")?"controlled.open":"controlled.close",previousEvent:t})})},setPointerMoveOpened:({context:e})=>{e.set("hasPointerMoveOpened",!0)},clearPointerMoveOpened:({context:e})=>{e.set("hasPointerMoveOpened",!1)}},effects:{trackFocusVisible:({scope:e})=>oM({root:e.getRootNode?.()}),trackPositioning:({context:e,prop:t,scope:i})=>(e.get("currentPlacement")||e.set("currentPlacement",t("positioning").placement),iH(dq(i),()=>dY(i),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})),trackPointerlockChange:({send:e,scope:t})=>{let i=t.getDoc();return(0,tI.addDomEvent)(i,"pointerlockchange",()=>e({type:"close",src:"pointerlock:change"}),!1)},trackScroll:({send:e,prop:t,scope:i})=>{if(!t("closeOnScroll"))return;let a=dq(i);if(!a)return;let o=(0,tI.getOverflowAncestors)(a).map(t=>(0,tI.addDomEvent)(t,"scroll",()=>{e({type:"close",src:"scroll"})},{passive:!0,capture:!0}));return()=>{o.forEach(e=>e?.())}},trackStore:({prop:e,send:t})=>{let i;return queueMicrotask(()=>{i=dK.subscribe(()=>{dK.get("id")!==e("id")&&t({type:"close",src:"id.change"})})}),()=>i?.()},trackEscapeKey:({send:e,prop:t})=>{if(t("closeOnEscape"))return(0,tI.addDomEvent)(document,"keydown",t=>{(0,tI.isComposingEvent)(t)||"Escape"===t.key&&(t.stopPropagation(),e({type:"close",src:"keydown.escape"}))},!0)},waitForOpenDelay:({send:e,prop:t})=>{let i=setTimeout(()=>{e({type:"after.openDelay"})},t("openDelay"));return()=>clearTimeout(i)},waitForCloseDelay:({send:e,prop:t})=>{let i=setTimeout(()=>{e({type:"after.closeDelay"})},t("closeDelay"));return()=>clearTimeout(i)}}}});var dJ=iQ()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);(0,to.createSplitProps)(dJ);let dQ={slots:dU.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderLeftWidth:"1px",borderColor:"var(--tooltip-bg)"}}};var d0=(0,ta.createAnatomy)("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","nodeRenameInput","root","tree");d0.build();var d1=e=>new tC(e);d1.empty=()=>new tC({rootNode:{children:[]}});var d2=(e,t)=>e.ids?.node?.(t)??`tree:${e.id}:node:${t}`,d5=(e,t)=>{null!=t&&e.getById(d2(e,t))?.focus()},d3=(e,t)=>e.getById(`tree:${e.id}:rename-input:${t}`);function d4(e,t){let{context:i,prop:a,refs:o}=e;if(!a("loadChildren"))return void i.set("expandedValue",e=>(0,to.uniq)((0,to.add)(e,...t)));let n=i.get("loadingStatus"),[r,l]=(0,to.partition)(t,e=>"loaded"===n[e]);if(r.length>0&&i.set("expandedValue",e=>(0,to.uniq)((0,to.add)(e,...r))),0===l.length)return;let s=a("collection"),[d,c]=(0,to.partition)(l,e=>{let t=s.findNode(e);return s.getNodeChildren(t).length>0});if(d.length>0&&i.set("expandedValue",e=>(0,to.uniq)((0,to.add)(e,...d))),0===c.length)return;i.set("loadingStatus",e=>({...e,...c.reduce((e,t)=>({...e,[t]:"loading"}),{})}));let u=c.map(e=>{let t=s.getIndexPath(e),i=s.getValuePath(t),a=s.findNode(e);return{id:e,indexPath:t,valuePath:i,node:a}}),g=o.get("pendingAborts"),p=a("loadChildren");(0,to.ensure)(p,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion"),Promise.allSettled(u.map(({id:e,indexPath:t,valuePath:i,node:a})=>{let o=g.get(e);o&&(o.abort(),g.delete(e));let n=new AbortController;return g.set(e,n),p({valuePath:i,indexPath:t,node:a,signal:n.signal})})).then(e=>{let t=[],o=[],n=i.get("loadingStatus"),r=a("collection");e.forEach((e,i)=>{let{id:a,indexPath:l,node:s,valuePath:d}=u[i];"fulfilled"===e.status?(n[a]="loaded",t.push(a),r=r.replace(l,{...s,children:e.value})):(g.delete(a),Reflect.deleteProperty(n,a),o.push({node:s,error:e.reason,indexPath:l,valuePath:d}))}),i.set("loadingStatus",n),t.length&&(i.set("expandedValue",e=>(0,to.uniq)((0,to.add)(e,...t))),a("onLoadChildrenComplete")?.({collection:r})),o.length&&a("onLoadChildrenError")?.({nodes:o})})}function d6(e){let{prop:t,context:i}=e;return function({indexPath:e}){return t("collection").getValuePath(e).slice(0,-1).some(e=>!i.get("expandedValue").includes(e))}}var{and:d8}=(0,i$.createGuards)();function d7(e,t){let{prop:i,scope:a,computed:o}=e,n=i("scrollToIndexFn");if(!n)return!1;let r=i("collection"),l=o("visibleNodes");for(let e=0;ea.getById(d2(a,t))}),!0}return!1}(0,i$.createMachine)({props:({props:e})=>({selectionMode:"single",collection:d1.empty(),typeahead:!0,expandOnClick:!0,defaultExpandedValue:[],defaultSelectedValue:[],...e}),initialState:()=>"idle",context:({prop:e,bindable:t,getContext:i})=>({expandedValue:t(()=>({defaultValue:e("defaultExpandedValue"),value:e("expandedValue"),isEqual:to.isEqual,onChange(t){let a=i().get("focusedValue");e("onExpandedChange")?.({expandedValue:t,focusedValue:a,get expandedNodes(){return e("collection").findNodes(t)}})}})),selectedValue:t(()=>({defaultValue:e("defaultSelectedValue"),value:e("selectedValue"),isEqual:to.isEqual,onChange(t){let a=i().get("focusedValue");e("onSelectionChange")?.({selectedValue:t,focusedValue:a,get selectedNodes(){return e("collection").findNodes(t)}})}})),focusedValue:t(()=>({defaultValue:e("defaultFocusedValue")||null,value:e("focusedValue"),onChange(t){e("onFocusChange")?.({focusedValue:t,get focusedNode(){return t?e("collection").findNode(t):null}})}})),loadingStatus:t(()=>({defaultValue:{}})),checkedValue:t(()=>({defaultValue:e("defaultCheckedValue")||[],value:e("checkedValue"),isEqual:to.isEqual,onChange(t){e("onCheckedChange")?.({checkedValue:t})}})),renamingValue:t(()=>({sync:!0,defaultValue:null}))}),refs:()=>({typeaheadState:{...tI.getByTypeahead.defaultOptions},pendingAborts:new Map}),computed:{isMultipleSelection:({prop:e})=>"multiple"===e("selectionMode"),isTypingAhead:({refs:e})=>e.get("typeaheadState").keysSoFar.length>0,visibleNodes:({prop:e,context:t})=>{let i=[];return e("collection").visit({skip:d6({prop:e,context:t}),onEnter:(e,t)=>{i.push({node:e,indexPath:t})}}),i}},on:{"EXPANDED.SET":{actions:["setExpanded"]},"EXPANDED.CLEAR":{actions:["clearExpanded"]},"EXPANDED.ALL":{actions:["expandAllBranches"]},"BRANCH.EXPAND":{actions:["expandBranches"]},"BRANCH.COLLAPSE":{actions:["collapseBranches"]},"SELECTED.SET":{actions:["setSelected"]},"SELECTED.ALL":[{guard:d8("isMultipleSelection","moveFocus"),actions:["selectAllNodes","focusTreeLastNode"]},{guard:"isMultipleSelection",actions:["selectAllNodes"]}],"SELECTED.CLEAR":{actions:["clearSelected"]},"NODE.SELECT":{actions:["selectNode"]},"NODE.DESELECT":{actions:["deselectNode"]},"CHECKED.TOGGLE":{actions:["toggleChecked"]},"CHECKED.SET":{actions:["setChecked"]},"CHECKED.CLEAR":{actions:["clearChecked"]},"NODE.FOCUS":{actions:["setFocusedNode"]},"NODE.ARROW_DOWN":[{guard:d8("isShiftKey","isMultipleSelection"),actions:["focusTreeNextNode","extendSelectionToNextNode"]},{actions:["focusTreeNextNode"]}],"NODE.ARROW_UP":[{guard:d8("isShiftKey","isMultipleSelection"),actions:["focusTreePrevNode","extendSelectionToPrevNode"]},{actions:["focusTreePrevNode"]}],"NODE.ARROW_LEFT":{actions:["focusBranchNode"]},"BRANCH_NODE.ARROW_LEFT":[{guard:"isBranchExpanded",actions:["collapseBranch"]},{actions:["focusBranchNode"]}],"BRANCH_NODE.ARROW_RIGHT":[{guard:d8("isBranchFocused","isBranchExpanded"),actions:["focusBranchFirstNode"]},{actions:["expandBranch"]}],"SIBLINGS.EXPAND":{actions:["expandSiblingBranches"]},"NODE.HOME":[{guard:d8("isShiftKey","isMultipleSelection"),actions:["extendSelectionToFirstNode","focusTreeFirstNode"]},{actions:["focusTreeFirstNode"]}],"NODE.END":[{guard:d8("isShiftKey","isMultipleSelection"),actions:["extendSelectionToLastNode","focusTreeLastNode"]},{actions:["focusTreeLastNode"]}],"NODE.CLICK":[{guard:d8("isCtrlKey","isMultipleSelection"),actions:["toggleNodeSelection"]},{guard:d8("isShiftKey","isMultipleSelection"),actions:["extendSelectionToNode"]},{actions:["selectNode"]}],"BRANCH_NODE.CLICK":[{guard:d8("isCtrlKey","isMultipleSelection"),actions:["toggleNodeSelection"]},{guard:d8("isShiftKey","isMultipleSelection"),actions:["extendSelectionToNode"]},{guard:"expandOnClick",actions:["selectNode","toggleBranchNode"]},{actions:["selectNode"]}],"BRANCH_TOGGLE.CLICK":{actions:["toggleBranchNode"]},"TREE.TYPEAHEAD":{actions:["focusMatchedNode"]}},exit:["clearPendingAborts"],states:{idle:{on:{"NODE.RENAME":{target:"renaming",actions:["setRenamingValue"]}}},renaming:{entry:["syncRenameInput","focusRenameInput"],on:{"RENAME.SUBMIT":{guard:"isRenameLabelValid",target:"idle",actions:["submitRenaming"]},"RENAME.CANCEL":{target:"idle",actions:["cancelRenaming"]}}}},implementations:{guards:{isBranchFocused:({context:e,event:t})=>e.get("focusedValue")===t.id,isBranchExpanded:({context:e,event:t})=>e.get("expandedValue").includes(t.id),isShiftKey:({event:e})=>e.shiftKey,isCtrlKey:({event:e})=>e.ctrlKey,hasSelectedItems:({context:e})=>e.get("selectedValue").length>0,isMultipleSelection:({prop:e})=>"multiple"===e("selectionMode"),moveFocus:({event:e})=>!!e.moveFocus,expandOnClick:({prop:e})=>!!e("expandOnClick"),isRenameLabelValid:({event:e})=>""!==e.label.trim()},actions:{selectNode({context:e,event:t}){let i=t.id||t.value;e.set("selectedValue",e=>null==i?e:!t.isTrusted&&(0,to.isArray)(i)?e.concat(...i):[(0,to.isArray)(i)?(0,to.last)(i):i].filter(Boolean))},deselectNode({context:e,event:t}){let i=(0,to.toArray)(t.id||t.value);e.set("selectedValue",e=>(0,to.remove)(e,...i))},setFocusedNode({context:e,event:t}){e.set("focusedValue",t.id)},clearFocusedNode({context:e}){e.set("focusedValue",null)},clearSelectedItem({context:e}){e.set("selectedValue",[])},toggleBranchNode({context:e,event:t,action:i}){i(e.get("expandedValue").includes(t.id)?["collapseBranch"]:["expandBranch"])},expandBranch(e){let{event:t}=e;d4(e,[t.id])},expandBranches(e){let{context:t,event:i}=e,a=(0,to.toArray)(i.value);d4(e,(0,to.diff)(a,t.get("expandedValue")))},collapseBranch({context:e,event:t}){e.set("expandedValue",e=>(0,to.remove)(e,t.id))},collapseBranches(e){let{context:t,event:i}=e,a=(0,to.toArray)(i.value);t.set("expandedValue",e=>(0,to.remove)(e,...a))},setExpanded({context:e,event:t}){(0,to.isArray)(t.value)&&e.set("expandedValue",t.value)},clearExpanded({context:e}){e.set("expandedValue",[])},setSelected({context:e,event:t}){(0,to.isArray)(t.value)&&e.set("selectedValue",t.value)},clearSelected({context:e}){e.set("selectedValue",[])},focusTreeFirstNode(e){let{prop:t,scope:i}=e,a=t("collection"),o=a.getFirstNode(),n=a.getNodeValue(o);d7(e,n)?(0,tI.raf)(()=>d5(i,n)):d5(i,n)},focusTreeLastNode(e){let{prop:t,scope:i}=e,a=t("collection"),o=a.getLastNode(void 0,{skip:d6(e)}),n=a.getNodeValue(o);d7(e,n)?(0,tI.raf)(()=>d5(i,n)):d5(i,n)},focusBranchFirstNode(e){let{event:t,prop:i,scope:a}=e,o=i("collection"),n=o.findNode(t.id),r=o.getFirstNode(n),l=o.getNodeValue(r);d7(e,l)?(0,tI.raf)(()=>d5(a,l)):d5(a,l)},focusTreeNextNode(e){let{event:t,prop:i,scope:a}=e,o=i("collection"),n=o.getNextNode(t.id,{skip:d6(e)});if(!n)return;let r=o.getNodeValue(n);d7(e,r)?(0,tI.raf)(()=>d5(a,r)):d5(a,r)},focusTreePrevNode(e){let{event:t,prop:i,scope:a}=e,o=i("collection"),n=o.getPreviousNode(t.id,{skip:d6(e)});if(!n)return;let r=o.getNodeValue(n);d7(e,r)?(0,tI.raf)(()=>d5(a,r)):d5(a,r)},focusBranchNode(e){let{event:t,prop:i,scope:a}=e,o=i("collection"),n=o.getParentNode(t.id),r=n?o.getNodeValue(n):void 0;r&&(d7(e,r)?(0,tI.raf)(()=>d5(a,r)):d5(a,r))},selectAllNodes({context:e,prop:t}){e.set("selectedValue",t("collection").getValues())},focusMatchedNode(e){let{context:t,prop:i,refs:a,event:o,scope:n,computed:r}=e,l=r("visibleNodes").map(({node:e})=>({textContent:i("collection").stringifyNode(e),id:i("collection").getNodeValue(e)})),s=(0,tI.getByTypeahead)(l,{state:a.get("typeaheadState"),activeId:t.get("focusedValue"),key:o.key});s?.id&&(d7(e,s.id)?(0,tI.raf)(()=>d5(n,s.id)):d5(n,s.id))},toggleNodeSelection({context:e,event:t}){let i=(0,to.addOrRemove)(e.get("selectedValue"),t.id);e.set("selectedValue",i)},expandAllBranches(e){let{context:t,prop:i}=e,a=i("collection").getBranchValues();d4(e,(0,to.diff)(a,t.get("expandedValue")))},expandSiblingBranches(e){let{context:t,event:i,prop:a}=e,o=a("collection"),n=o.getIndexPath(i.id);if(!n)return;let r=o.getSiblingNodes(n).map(e=>o.getNodeValue(e));d4(e,(0,to.diff)(r,t.get("expandedValue")))},extendSelectionToNode(e){let{context:t,event:i,prop:a,computed:o}=e,n=a("collection"),r=(0,to.first)(t.get("selectedValue"))||n.getNodeValue(n.getFirstNode()),l=i.id,s=[r,l],d=0;o("visibleNodes").forEach(({node:e})=>{let t=n.getNodeValue(e);1===d&&s.push(t),(t===r||t===l)&&d++}),t.set("selectedValue",(0,to.uniq)(s))},extendSelectionToNextNode(e){let{context:t,event:i,prop:a}=e,o=a("collection"),n=o.getNextNode(i.id,{skip:d6(e)});if(!n)return;let r=new Set(t.get("selectedValue")),l=o.getNodeValue(n);null!=l&&(r.has(i.id)&&r.has(l)?r.delete(i.id):r.has(l)||r.add(l),t.set("selectedValue",Array.from(r)))},extendSelectionToPrevNode(e){let{context:t,event:i,prop:a}=e,o=a("collection"),n=o.getPreviousNode(i.id,{skip:d6(e)});if(!n)return;let r=new Set(t.get("selectedValue")),l=o.getNodeValue(n);null!=l&&(r.has(i.id)&&r.has(l)?r.delete(i.id):r.has(l)||r.add(l),t.set("selectedValue",Array.from(r)))},extendSelectionToFirstNode(e){let{context:t,prop:i}=e,a=i("collection"),o=(0,to.first)(t.get("selectedValue")),n=[];a.visit({skip:d6(e),onEnter:e=>{let t=a.getNodeValue(e);if(n.push(t),t===o)return"stop"}}),t.set("selectedValue",n)},extendSelectionToLastNode(e){let{context:t,prop:i}=e,a=i("collection"),o=(0,to.first)(t.get("selectedValue")),n=[],r=!1;a.visit({skip:d6(e),onEnter:e=>{let t=a.getNodeValue(e);t===o&&(r=!0),r&&n.push(t)}}),t.set("selectedValue",n)},clearPendingAborts({refs:e}){let t=e.get("pendingAborts");t.forEach(e=>e.abort()),t.clear()},toggleChecked({context:e,event:t,prop:i}){let a=i("collection");e.set("checkedValue",e=>{var i;let o,n;return t.isBranch?(i=t.value,n=(o=a.getDescendantValues(i)).every(t=>e.includes(t)),(0,to.uniq)(n?(0,to.remove)(e,...o):(0,to.add)(e,...o))):(0,to.addOrRemove)(e,t.value)})},setChecked({context:e,event:t}){e.set("checkedValue",t.value)},clearChecked({context:e}){e.set("checkedValue",[])},setRenamingValue({context:e,event:t,prop:i}){e.set("renamingValue",t.value);let a=i("onRenameStart");if(a){let e=i("collection"),o=e.getIndexPath(t.value);if(o){let i=e.at(o);i&&a({value:t.value,node:i,indexPath:o})}}},submitRenaming({context:e,event:t,prop:i,scope:a}){let o=e.get("renamingValue");if(!o)return;let n=i("collection").getIndexPath(o);if(!n)return;let r=t.label.trim(),l=i("onBeforeRename");if(l&&!l({value:o,label:r,indexPath:n})){e.set("renamingValue",null),d5(a,o);return}i("onRenameComplete")?.({value:o,label:r,indexPath:n}),e.set("renamingValue",null),d5(a,o)},cancelRenaming({context:e,scope:t}){let i=e.get("renamingValue");e.set("renamingValue",null),i&&d5(t,i)},syncRenameInput({context:e,scope:t,prop:i}){let a=e.get("renamingValue");if(!a)return;let o=i("collection"),n=o.findNode(a);if(!n)return;let r=o.stringifyNode(n),l=d3(t,a);(0,tI.setElementValue)(l,r)},focusRenameInput({context:e,scope:t}){let i=e.get("renamingValue");if(!i)return;let a=d3(t,i);a&&(a.focus(),a.select())}}}});var d9=iQ()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren","canRename","onRenameStart","onBeforeRename","onRenameComplete","scrollToIndexFn"]);(0,to.createSplitProps)(d9);var ce=iQ()(["node","indexPath"]);(0,to.createSplitProps)(ce);let ct={display:"flex",alignItems:"center",gap:"var(--tree-item-gap)",rounded:"l2",userSelect:"none",position:"relative","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-icon-offset":"calc(var(--tree-icon-size) * var(--tree-depth) * 0.5)","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset) + var(--tree-icon-offset))",ps:"var(--tree-offset)",pe:"var(--tree-padding-inline)",py:"var(--tree-padding-block)",focusVisibleRing:"inside",focusRingColor:"border.emphasized",focusRingWidth:"2px","&:hover, &:focus-visible":{bg:"bg.muted"},_disabled:{layerStyle:"disabled"}},ci={flex:"1"},ca={_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},co={_selected:{layerStyle:"fill.solid"}},cn={slots:d0.keys(),className:"chakra-tree-view",base:{root:{width:"full",display:"flex",flexDirection:"column",gap:"2"},tree:{display:"flex",flexDirection:"column","--tree-item-gap":"spacing.2",_icon:{boxSize:"var(--tree-icon-size)"}},label:{fontWeight:"medium",textStyle:"sm"},branch:{position:"relative"},branchContent:{position:"relative"},branchIndentGuide:{height:"100%",width:"1px",bg:"border",position:"absolute","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset))","--tree-icon-offset":"calc(var(--tree-icon-size) * 0.5 * var(--depth))",insetInlineStart:"calc(var(--tree-offset) + var(--tree-icon-offset))",zIndex:"1"},branchIndicator:{color:"fg.muted",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(90deg)"}},branchTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center"},branchControl:ct,item:ct,itemText:ci,branchText:ci,nodeCheckbox:{display:"inline-flex"}},variants:{size:{md:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1.5","--tree-icon-size":"spacing.4"}},sm:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}},xs:{tree:{textStyle:"xs","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.2","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}}},variant:{subtle:{branchControl:ca,item:ca},solid:{branchControl:co,item:co}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}},cr=s.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),cl=s.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),cs=s.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),cd=s.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),cc=s.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),cu=s.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),cg=s.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),cp=s.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),ch=s.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),cm=s.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),cf='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',cv=s.fonts({heading:{value:`Inter, ${cf}`},body:{value:`Inter, ${cf}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),cb=s.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),cx=s.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),cy=s.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),cS=s.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),ck=s.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),cC=s.sizes({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"}}),cE=s.sizes({"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%"}}),cI=s.sizes({...ck,...cS,...cE,...cC}),cO=function(...e){var t;let i,a,o,n=T(...e),{theme:r={},utilities:l={},globalCss:s={},cssVarsRoot:d=":where(:root, :host)",cssVarsPrefix:c="chakra",preflight:u}=n,p={names:o=Object.values(a=n.layers??ek).sort((e,t)=>eC[e]-eC[t]),atRule:`@layer ${o.join(", ")};`,wrap(e,t){if(n.disableLayers)return t;let i=a[e];return{[`@layer ${i}`]:t}}},h=function(e){let{prefix:t="",tokens:i={},semanticTokens:a={},breakpoints:o={}}=e,n=e=>e.join("."),r=[],l=new Map,s=new Map,d=new Map,c=new Map,u=new Map,p=new Map,h=new Map,m=new Map,f=[];function v(e,t){r.push(e),l.set(e.name,e),t&&m.forEach(i=>{i.enforce===t&&V(i,e)})}let b=function(e){var t;return e?{breakpoints:(t=e=>({value:e}),Array.isArray(e)?e.map(e=>I(e)?t(e):e):(0,C.isObject)(e)?O(e,e=>t(e)):I(e)?t(e):e),sizes:z(e,(e,t)=>[`breakpoint-${e}`,{value:t}])}:{breakpoints:{},sizes:{}}}(o),x=(0,N.compact)({...i,breakpoints:b.breakpoints,sizes:{...i.sizes,...b.sizes}});function y(e){return l.get(e)}let S={},k=M((e,t)=>u.get(e)??t),E=M(e=>S[e]||null),w=M(e=>ew(e,e=>{if(!e)return;if(e.includes("/")){let t=((e,t)=>{if(!e||"string"!=typeof e)return{invalid:!0,value:e};let[i,a]=e.split("/");if(!i||!a)return{invalid:!0,value:i};let o=t(i),n=y(`opacity.${a}`)?.value;if(!n&&isNaN(Number(a)))return{invalid:!0,value:i};let r=n?100*Number(n)+"%":`${a}%`,l=o??i;return{invalid:!1,color:l,value:`color-mix(in srgb, ${l} ${r}, transparent)`}})(e,e=>k(e));if(t.invalid)throw Error("Invalid color mix at "+e+": "+t.value);return t.value}let t=k(e);return t||(eN.test(e)?eO(e):e)})),T={prefix:t,allTokens:r,tokenMap:l,registerToken:v,getByName:y,formatTokenName:n,formatCssVar:(e,t)=>g(e.join("-"),{prefix:t}),flatMap:u,cssVarMap:d,categoryMap:h,colorPaletteMap:c,getVar:k,getCategoryValues:E,expandReferenceInValue:w};function V(e,t){if(t.extensions.references||(0,C.isFunction)(e.match)&&!e.match(t))return;let i=e.transform(t,T);switch(!0){case"extensions"===e.type:Object.assign(t.extensions,i);break;case"value"===e.type:t.value=i;break;default:t[e.type]=i}}function P(e){f.forEach(t=>{t.enforce===e&&t.transform(T)})}function R(e){m.forEach(t=>{t.enforce===e&&r.forEach(e=>{V(t,e)})})}return O(x,(e,t)=>{let i=t.includes("DEFAULT"),a=(t=eq(t))[0],o=n(t),r=(0,C.isString)(e)?{value:e}:e,l={value:r.value,originalValue:r.value,name:o,path:t,extensions:{condition:"base",originalPath:t,category:a,prop:n(t.slice(1))}};i&&(l.extensions.default=!0),v(l)},{stop:eU}),O(a,(e,t)=>{let i=t.includes("DEFAULT"),a=(t=eY(eq(t)))[0],o=n(t),r=(0,C.isString)(e.value)?{value:{base:e.value}}:e,l={value:r.value.base||"",originalValue:r.value.base||"",name:o,path:t,extensions:{originalPath:t,category:a,conditions:r.value,condition:"base",prop:n(t.slice(1))}};i&&(l.extensions.default=!0),v(l)},{stop:eU}),!function(...e){e.forEach(e=>{m.set(e.name,e)})}(...eG),!function(...e){f.push(...e)}(...ej),P("pre"),R("pre"),r.forEach(e=>{let t=function(e){if(!e.extensions.conditions)return;let{conditions:t}=e.extensions,i=[];return O(t,(t,a)=>{let o=eY(a);if(!o.length)return;let n={...e,value:t,extensions:{...e.extensions,condition:o.join(":")}};i.push(n)}),i}(e);t&&0!==t.length&&t.forEach(e=>{v(e)})}),r.forEach(e=>{let t;if(t=e.value,!eP.test(t))return;let i=function(e){let t=ez(e),i=[];for(let e=0;e(e[t.name]=t,e),{})}),r.forEach(e=>{!function e(t){if(!t.extensions?.references)return t.extensions?.cssVar?.ref??t.value;let i=t.extensions.references??{},a=t.value,o=Object.keys(i);for(let t=0;t{!function(e){let{condition:t}=e.extensions;t&&(s.has(t)||s.set(t,new Set),s.get(t).add(e))}(e),function(e){let{category:t,prop:i}=e.extensions;t&&(h.has(t)||h.set(t,new Map),h.get(t).set(i,e))}(e),function(e){let{condition:t,negative:i,virtual:a,cssVar:o}=e.extensions;!i&&!a&&t&&o&&(d.has(t)||d.set(t,new Map),d.get(t).set(o.var,e.value))}(e),function(e){let{category:t,prop:i,cssVar:a,negative:o}=e.extensions;if(!t)return;p.has(t)||p.set(t,new Map);let n=o?e.extensions.conditions?e.originalValue:e.value:a.ref;p.get(t).set(i,n),u.set([t,i].join("."),n)}(e),function(e){let{colorPalette:t,virtual:i,default:a}=e.extensions;t&&!i&&t.roots.forEach(i=>{var o,r;let l,s=n(i);c.has(s)||c.set(s,new Map);let d=y(n((o=[...e.path],r=[...i],-1===(l=o.findIndex((e,t)=>r.every((e,i)=>o[t+i]===e)))||(o.splice(l,r.length),o.splice(l,0,"colorPalette")),o)));if(!d||!d.extensions.cssVar)return;let{var:u}=d.extensions.cssVar;if(c.get(s).set(u,e.extensions.cssVar.ref),a&&1===i.length){let a=y(n(["colors","colorPalette"]));if(!a)return;let o=y(n(e.path));if(!o)return;let r=t.keys[0]?.filter(Boolean);if(!r.length)return;let l=n(i.concat(r));c.has(l)||c.set(l,new Map),c.get(l).set(a.extensions.cssVar.var,o.extensions.cssVar.ref)}})}(e)}),S=eV(p),T}({breakpoints:r.breakpoints,tokens:r.tokens,semanticTokens:r.semanticTokens,prefix:c}),m=function(e){var t;let i,a,o,n=Object.fromEntries(Object.entries(e).sort(([,e],[,t])=>parseInt(e,10){let o=null;return i<=a.length-1&&(o=a[i+1]?.[1]),null!=o&&(o=G(o)),[e,{name:e,min:j(t),max:o}]}));function r(e){return U(n[e])}let l=Object.fromEntries(Object.entries((a=Object.keys(n),i=[],(t=a).forEach((e,a)=>{let o=a,n=t[++o];for(;n;)i.push([e,n]),n=t[++o]}),o=i,Object.fromEntries(a.flatMap(e=>{let t=n[e],i=[`${e}Down`,U({max:G(t.min)})];return[[e,U({min:t.min})],[`${e}Only`,r(e)],i]}).filter(([,e])=>""!==e).concat(o.map(([e,t])=>{let i=n[e],a=n[t];return[`${e}To${t.charAt(0).toUpperCase()+t.slice(1)}`,U({min:i.min,max:G(a.min)})]}))))));return{values:Object.values(n),only:r,keys:function(){return(0,B.uniq)(["base",...Object.keys(n)])},conditions:l,getCondition:e=>l[e],up:function(e){return U({min:n[e].min})},down:function(e){return U({max:G(n[e].min)})}}}(r.breakpoints??Y),f=(e=>{let{breakpoints:t,conditions:i={}}=e,a=Object.assign({},z(i,(e,t)=>[`_${e}`,t]),t.conditions);function o(){return Object.keys(a)}function n(e){return o().includes(e)||q.test(e)||e.startsWith("_")}return{keys:o,sort:M(e=>e.filter(e=>"base"!==e).sort((e,t)=>{let i=n(e),a=n(t);return i&&!a?1:!i&&a?-1:0})),has:n,resolve:function(e){return Reflect.get(a,e)||e},breakpoints:t.keys(),expandAtRule:function(e){return e.startsWith("@breakpoint")?t.getCondition(e.replace("@breakpoint ","")):e}}})({conditions:n.conditions??Y,breakpoints:m}),v=function(e){let t,i=z(e.config,(e,t)=>[e,t]),a=e.tokens,o=new Map,n=new Map;function r(e,t){i[e]=t,l(e,t)}let l=(e,t)=>{let i=c(t);i&&(n.set(e,i),d(e,t))},s=new Map,d=(e,t)=>{if(!t)return;let i=c(t,e=>`type:Tokens["${e}"]`);if("object"==typeof i&&i.type)return void s.set(e,new Set([`type:${i.type}`]));if(i){let t=new Set(Object.keys(i));s.set(e,t)}let a=s.get(e)??new Set;t.property&&s.set(e,a.add(`CssProperties["${t.property}"]`))},c=(e,t)=>{let{values:i}=e,o=e=>{let i=t?.(e);return i?{[i]:i}:void 0};if((0,C.isString)(i))return o?.(i)??a.getCategoryValues(i)??Y;if(Array.isArray(i)){let e={};for(let t=0;t({[e]:e.startsWith("--")?a.getVar(t,t):t})),g=Object.assign(a.getVar,{raw:e=>a.getByName(e)}),p=M((e,t)=>{let o=m(e);(0,C.isString)(t)&&!t.includes("_EMO_")&&(t=a.expandReferenceInValue(t));let r=i[o];if(!r)return u(o,t);let l=n.get(o)?.[t];return r.transform?r.transform(l??t,{raw:t,token:g,utils:{colorMix:e=>((e,t)=>{if(!e||"string"!=typeof e)return{invalid:!0,value:e};let[i,a]=e.split("/");if(!i||!a||"currentBg"===i)return{invalid:!0,value:i};let o=t(`colors.${i}`),n=t.raw(`opacity.${a}`)?.value;if(!n&&isNaN(Number(a)))return{invalid:!0,value:i};let r=n?100*Number(n)+"%":`${a}%`,l=o??i;return{invalid:!1,color:l,value:`color-mix(in srgb, ${l} ${r}, transparent)`}})(e,g)}}):u(e,l??t)});for(let[e,t]of Object.entries(i)){let{shorthand:i}=t??{};i&&(Array.isArray(i)?i:[i]).forEach(t=>o.set(t,e))}for(let[e,o]of(r("colorPalette",{values:Object.keys(t=eV(a.colorPaletteMap)),transform:M(e=>t[e])}),Object.entries(i)))o&&l(e,o);for(let[e,t]of Object.entries(i))t&&d(e,t);let h=o.size>0,m=M(e=>o.get(e)??e);return{keys:()=>[...Array.from(o.keys()),...Object.keys(i)],hasShorthand:h,transform:p,shorthands:o,resolveShorthand:m,register:r,getTypes:()=>{let e=new Map;for(let[t,i]of s.entries()){if(0===i.size){e.set(t,["string"]);continue}let a=Array.from(i).map(e=>e.startsWith("CssProperties")?e:e.startsWith("type:")?e.replace("type:",""):JSON.stringify(e));e.set(t,a)}return e},addPropertyType:(e,t)=>{let i=s.get(e)??new Set;s.set(e,new Set([...i,...t]))}}}({config:l,tokens:h});!function(){let{textStyles:e,layerStyles:t,animationStyles:i}=r;for(let[a,o]of Object.entries((0,N.compact)({textStyle:e,layerStyle:t,animationStyle:i}))){let e=_(o??Y,eK);v.register(a,{values:Object.keys(e),transform:t=>w(e[t])})}}(),v.addPropertyType("animationName",Object.keys(r.keyframes??Y));let b=new Set(["css",...v.keys(),...f.keys()]),x=M(e=>b.has(e)||R(e)),y=e=>{if(Array.isArray(e)){let t=X();for(let i=0;iArray.isArray(e),getKey:a?o:void 0})}}({utility:v,normalize:y}),k=function(e){let{conditions:t,isValidProperty:i}=e;return function(e){return O(e,e=>e,{getKey:(e,a)=>(0,C.isObject)(a)?t.has(e)||i(e)?e:(function(e){let t=[],i=0,a="",o=!1;for(let n=0;n{let t,i=e.startsWith("&")?e.slice(1):e;return(t=i.toLowerCase()).startsWith(":host-context")||t.startsWith(":host")||t.startsWith("::slotted")?`${i} &`:`&${i}`}).join(", "):e})}}({conditions:f,isValidProperty:x}),w=eb({transform:v.transform,conditions:f,normalize:S}),V=function(e){let{css:t,conditions:i,normalize:a,layers:o}=e;return function n(r={}){let l=eS(r),{base:s,defaultVariants:d,compoundVariants:c}=l,u=z(l.variants,(e,t)=>[e,z(t,(e,t)=>[e,a(t)])]),g=eb({conditions:i,normalize:a,transform:(e,t)=>u[e]?.[t]}),p=(e={})=>{var i,n;let r,l=a({...d,...(0,N.compact)(e)}),u={...s};E(u,g(l));let p=(i=c,n=l,r=Y,i.forEach(e=>{Object.entries(e).every(([e,t])=>"css"===e||(Array.isArray(t)?t:[t]).some(t=>n[e]===t))&&(r=t(r,e.css))}),r);return o.wrap("recipes",t(u,p))},h=Object.keys(u),m=z(u,(e,t)=>[e,Object.keys(t)]);return Object.assign(e=>t(p(e)),{className:r.className,__cva__:!0,variantMap:m,variantKeys:h,raw:p,config:r,splitVariantProps:e=>{let t=ey(e,["recipe"]),[i,a]=(0,W.splitProps)(t,h),o=h.includes("colorPalette"),n=h.includes("orientation");return o||(i.colorPalette=e.colorPalette||d.colorPalette),n&&(a.orientation=e.orientation),[i,a]},merge(t){return n((function(e){let{css:t}=e;return function(e,i){let a=eS(i.config),o=(0,B.uniq)(e.variantKeys,Object.keys(i.variants)),n=t(e.base,a.base),r=Object.fromEntries(o.map(i=>[i,t(e.config.variants[i],a.variants[i])])),l=E(e.config.defaultVariants,a.defaultVariants),s=[...e.compoundVariants,...a.compoundVariants];return{className:(0,ex.cx)(e.className,i.className),base:n,variants:r,defaultVariants:l,compoundVariants:s}}})(e)(this,t))}})}}({css:w,conditions:f,normalize:S,layers:p}),P=function(e){let{cva:t}=e;return function(e=Y){let i=Object.entries(((e=Y)=>{let t=(e.slots??[]).map(t=>{let i,a;return[t,{base:e.base?.[t]??Y,variants:X(),defaultVariants:e.defaultVariants??Y,compoundVariants:e.compoundVariants?(i=e.compoundVariants,a=t,i.filter(e=>e.css[a]).map(e=>({...e,css:e.css[a]}))):K}]});for(let[i,a]of Object.entries(e.variants??{}))for(let[e,o]of Object.entries(a))t.forEach(([t,a])=>{var n;(n=a.variants)[i]??(n[i]={}),a.variants[i][e]=o[t]??Y});return Object.fromEntries(t)})(e)).map(([e,i])=>[e,t(i)]),a=e.variants??Y,o=Object.keys(a),n=z(a,(e,t)=>[e,Object.keys(t)]),r={};return e.className&&(r=Object.fromEntries(e.slots.map(t=>[t,`${e.className}__${t}`]))),Object.assign(function(e){return Object.fromEntries(i.map(([t,i])=>[t,i(e)]))},{variantMap:n,variantKeys:o,splitVariantProps:function(t){let i=ey(t,["recipe"]),[a,n]=(0,W.splitProps)(i,o),r=o.includes("colorPalette"),l=o.includes("orientation");return r||(a.colorPalette=t.colorPalette||e.defaultVariants?.colorPalette),l&&(n.orientation=t.orientation),[a,n]},classNameMap:r})}}({cva:V});function A(){let e={};for(let[t,i]of h.cssVarMap.entries()){let a=Object.fromEntries(i);if(0===Object.keys(a).length)continue;let o="base"===t?d:f.resolve(t),n=o.startsWith("@");E(e,w(k({[o]:n?{[d]:a}:a})))}return p.wrap("tokens",e)}function F(){let e=Object.assign({},z(r.keyframes??Y,(e,t)=>[`@keyframes ${e}`,t]),w(k(s)));return p.wrap("base",e)}function D(){let e=function(e){let{preflight:t}=e;if(!t)return{};let{scope:i="",level:a="parent"}=(0,C.isObject)(t)?t:{},o="";i&&"parent"===a?o=`${i} `:i&&"element"===a&&(o=`&${i}`);let n={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},r={[i||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};return"element"===a?Object.assign(r,Object.entries(n).reduce((e,[t,i])=>(e[t]={[o]:i},e),{})):o?r[o]=n:Object.assign(r,n),r}({preflight:u});return p.wrap("reset",e)}let L=(t=h,i=new Map,t.allTokens.forEach(e=>{let{cssVar:t,virtual:a,conditions:o}=e.extensions,n=o||a?t.ref:e.value;i.set(e.name,{value:n,variable:t.ref})}),i),H=(e,t)=>L.get(e)?.value||t;function $(e){return Object.hasOwnProperty.call(r.recipes??Y,e)}function Z(e){return Object.hasOwnProperty.call(r.slotRecipes??Y,e)}H.var=(e,t)=>L.get(e)?.variable||t;let J=[D(),F(),A()],Q={layerStyles:eX(r.layerStyles??Y),textStyles:eX(r.textStyles??Y),animationStyles:eX(r.animationStyles??Y),tokens:eZ(h,Object.keys(r.tokens??Y),(e,t)=>!e.extensions.conditions&&!t.includes("colorPalette")),semanticTokens:eZ(h,Object.keys(r.semanticTokens??Y),e=>!!e.extensions.conditions),keyframes:eJ(r.keyframes??Y),breakpoints:eJ(r.breakpoints??Y)};return{$$chakra:!0,_config:n,_global:J,breakpoints:m,tokens:h,conditions:f,utility:v,token:H,properties:b,layers:p,isValidProperty:x,splitCssProps:function(e){return(0,W.splitProps)(e,x)},normalizeValue:y,getTokenCss:A,getGlobalCss:F,getPreflightCss:D,css:w,cva:V,sva:P,getRecipe:function(e,t){return r.recipes?.[e]??t},getSlotRecipe:function(e,t){return r.slotRecipes?.[e]??t},hasRecipe:function(e){return $(e)||Z(e)},isRecipe:$,isSlotRecipe:Z,query:Q}}(T(S,{preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:e0,theme:{breakpoints:{sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},keyframes:{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)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"var(--collapsed-height, 0)"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"var(--collapsed-height, 0)"}},"expand-width":{from:{width:"var(--collapsed-width, 0)"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"var(--collapsed-width, 0)"}},"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"}}},tokens:{aspectRatios:cl,animations:cr,blurs:cs,borders:cd,colors:cc,durations:cg,easings:cp,fonts:cv,fontSizes:ch,fontWeights:cm,letterSpacings:cb,lineHeights:cx,radii:cy,spacing:cS,sizes:cI,zIndex:s.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:0x7fffffff}}),cursor:cu},semanticTokens:{colors:te,shadows:ti,radii:tt},recipes:e9,slotRecipes:{accordion:rJ,actionBar:rQ,alert:r0,avatar:r3,blockquote:r4,breadcrumb:r6,card:r8,carousel:ls,checkbox:lh,checkboxCard:lm,codeBlock:lf,collapsible:ly,dataList:lC,dialog:lE,drawer:lI,editable:lw,emptyState:lT,field:lV,fieldset:lP,fileUpload:lR,hoverCard:lL,list:lM,listbox:lW,menu:lB,nativeSelect:l$,numberInput:sc,pinInput:sE,popover:sI,progress:sN,progressCircle:sz,radioCard:s8,radioGroup:s7,ratingGroup:s9,scrollArea:dm,segmentGroup:dv,select:lH,combobox:lk,slider:db,splitter:dx,stat:dy,steps:dk,switch:dC,table:dE,tabs:dI,tag:dw,tagsInput:d$,toast:dG,tooltip:dQ,status:dS,timeline:dj,colorPicker:lS,qrCode:s6,treeView:cn},textStyles:{"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}},layerStyles:{"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}},animationStyles:{"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"}}}}}));var cw=e.i(51625),cT=e.i(150),cT=cT;let cV=(0,e.i(54254).default)({key:"emotion-cache",prepend:!0});function cP({children:e}){return(0,n.jsx)(cT.C,{value:cV,children:(0,n.jsx)(cw.ChakraProvider,{value:cO,children:e})})}e.s(["Providers",()=>cP],17894)}]);