@conciv/widget 0.0.3 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/conciv-widget.global.js +1 -1
- package/dist/mount.js +1 -1
- package/package.json +12 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=`*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:before,:after{--un-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}[data-sd-animate]{animation:var(--sd-animation,sd-fadeIn) var(--sd-duration,.15s) var(--sd-easing,ease) var(--sd-delay,0s) both}@media (prefers-reduced-motion:reduce){[data-sd-animate]{animation:none}}.sd-root>:last-child:after{content:var(--sd-caret,"");vertical-align:baseline;display:inline}@keyframes sd-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes sd-blurIn{0%{opacity:0;filter:blur(4px)}to{opacity:1;filter:blur()}}@keyframes sd-slideUp{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}:host,:root{--pw-hue:328;--pw-accent:#ff40e0;--pw-accent-hi:color-mix(in oklch, var(--pw-accent), white 14%);--pw-accent-link:color-mix(in oklch, var(--pw-accent), white 34%);--pw-accent-08:color-mix(in oklch, var(--pw-accent) 10%, transparent);--pw-accent-20:color-mix(in oklch, var(--pw-accent) 22%, transparent);--pw-accent-line:color-mix(in oklch, var(--pw-accent) 42%, transparent);--pw-panel:oklch(.2 .012 var(--pw-hue));--pw-panel-sunk:oklch(.16 .012 var(--pw-hue));--pw-glass:oklch(.21 .014 var(--pw-hue) / .97);--pw-fill:oklch(100% 0 0/.05);--pw-fill-soft:oklch(100% 0 0/.04);--pw-fill-strong:oklch(100% 0 0/.1);--pw-sunken:oklch(.12 .01 var(--pw-hue) / .5);--pw-text:oklch(.93 .006 var(--pw-hue));--pw-text-hi:oklch(.98 .008 var(--pw-hue));--pw-text-2:oklch(.74 .012 var(--pw-hue));--pw-text-3:oklch(.64 .012 var(--pw-hue));--pw-on-accent:oklch(.22 .03 var(--pw-hue));--pw-agent:oklch(79% .13 188);--pw-danger:oklch(72% .15 25);--pw-danger-line:oklch(72% .15 25/.42);--pw-success:oklch(82% .16 162);--pw-warn:oklch(81% .12 95);--pw-dim:oklch(.5 .02 var(--pw-hue));--pw-line:oklch(100% 0 0/.1);--pw-line-2:oklch(100% 0 0/.18);--pw-line-soft:oklch(100% 0 0/.06);--pw-r-sm:8px;--pw-r-md:12px;--pw-r-lg:18px;--pw-r-pill:999px;--pw-shadow:0 8px 28px oklch(.12 .02 var(--pw-hue) / .45);--pw-shadow-lg:0 16px 44px oklch(.1 .03 var(--pw-hue) / .55);--pw-shadow-hover:0 14px 34px oklch(.1 .03 var(--pw-hue) / .6);--pw-ease:cubic-bezier(.22, 1, .36, 1);--pw-ease-expo:cubic-bezier(.16, 1, .3, 1);--pw-font:system-ui, -apple-system, sans-serif;--pw-mono:ui-monospace, monospace}:root,:host{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--chat-bg:#fff;--chat-panel:#f6f7f9;--chat-glass:#f6f7f9f7;--chat-fill:#0f12180a;--chat-fill-strong:#0f121814;--chat-sunken:#0f12180d;--chat-text:#1d2127;--chat-text-hi:#0b0d10;--chat-text-2:#565b63;--chat-text-3:#6b717a;--chat-accent:#2563eb;--chat-accent-hi:#1d4ed8;--chat-accent-link:#2563eb;--chat-on-accent:#fff;--chat-danger:#dc2626;--chat-danger-line:#dc26266b;--chat-success:#16a34a;--chat-line:#0f12181f;--chat-line-soft:#0f12180f;--chat-radius-sm:8px;--chat-radius-md:12px;--chat-radius-lg:18px;--chat-radius-pill:999px;--chat-shadow-lg:0 16px 44px #0f12182e;--chat-ease:cubic-bezier(.22, 1, .36, 1);--chat-font:system-ui, -apple-system, sans-serif;--chat-mono:ui-monospace, monospace;--chat-text-xs:.6875rem;--chat-text-sm:.75rem;--chat-text-md:.8125rem;--chat-text-lg:1rem;--chat-focus:.125rem solid var(--chat-accent)}.chat-theme-dark{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--chat-bg:#0f1115;--chat-panel:#1a1d23;--chat-glass:#1a1d23f7;--chat-fill:#ffffff0d;--chat-fill-strong:#ffffff1a;--chat-sunken:#00000059;--chat-text:#e6e8ec;--chat-text-hi:#f6f8fb;--chat-text-2:#a9aeb7;--chat-text-3:#7c828c;--chat-accent:#4f8cff;--chat-accent-hi:#6ba0ff;--chat-accent-link:#8db6ff;--chat-on-accent:#0b0d10;--chat-danger:#f1707a;--chat-danger-line:#f1707a6b;--chat-success:#57d9a3;--chat-line:#ffffff1a;--chat-line-soft:#ffffff0f;--chat-shadow-lg:0 16px 44px #0000008c}.chat-theme-dark .shiki,.chat-theme-dark .shiki span,.chat-theme-conciv .shiki,.chat-theme-conciv .shiki span{color:var(--shiki-dark)!important;background-color:var(--shiki-dark-bg)!important}diffs-container{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}.chat-theme-dark diffs-container,.chat-theme-conciv diffs-container{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}.chat-theme-conciv{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--chat-bg:var(--pw-panel);--chat-panel:var(--pw-panel);--chat-glass:var(--pw-glass);--chat-fill:var(--pw-fill);--chat-fill-strong:var(--pw-fill-strong);--chat-sunken:var(--pw-sunken);--chat-text:var(--pw-text);--chat-text-hi:var(--pw-text-hi);--chat-text-2:var(--pw-text-2);--chat-text-3:var(--pw-text-3);--chat-accent:var(--pw-accent);--chat-accent-hi:var(--pw-accent-hi);--chat-accent-link:var(--pw-accent-link);--chat-on-accent:var(--pw-on-accent);--chat-danger:var(--pw-danger);--chat-danger-line:var(--pw-danger-line);--chat-success:var(--pw-success);--chat-line:var(--pw-line);--chat-line-soft:var(--pw-line-soft);--chat-radius-sm:var(--pw-r-sm);--chat-radius-md:var(--pw-r-md);--chat-radius-lg:var(--pw-r-lg);--chat-radius-pill:var(--pw-r-pill);--chat-shadow-lg:var(--pw-shadow-lg);--chat-ease:var(--pw-ease);--chat-font:var(--pw-font);--chat-mono:var(--pw-mono)}:host{all:initial}*{box-sizing:border-box}:where(button,[role=button]):focus-visible{box-shadow:0 0 0 2px var(--pw-panel), 0 0 0 4px var(--pw-accent);outline:none}.pw-fab-rig{width:44px;height:44px;position:relative}.pw-rig-layer{image-rendering:pixelated;will-change:transform;background-position:50%;background-repeat:no-repeat;background-size:contain;position:absolute;inset:0}.pw-rig-head{transform-origin:50% 80%;background-image:url(data:image/png;base64,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)}.pw-rig-eyes{transform-origin:49.6% 58.6%;background-image:url(data:image/png;base64,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)}.pw-rig-antenna{transform-origin:50% 32.8%;background-image:url(data:image/png;base64,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)}.pw-fab-rig[data-working=true] .pw-rig-eyes{animation:1.3s ease-in-out infinite pw-rig-glow}@keyframes pw-rig-glow{0%,to{filter:drop-shadow(0 0 1px var(--pw-accent))}50%{filter:drop-shadow(0 0 5px var(--pw-accent))}}[data-pw-hydrating] [data-pw-msg]{animation:none}[data-pw-panel][data-pw-suppressed],[data-pw-fab][data-pw-suppressed],[data-pw-qt][data-pw-suppressed]{opacity:0;pointer-events:none;transition:opacity .14s var(--pw-ease)}@media (prefers-reduced-motion:reduce){*{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--unx-bg-opacity:100%;--unx-text-opacity:100%;--unx-border-opacity:100%;--unx-stroke-opacity:100%;--unx-translate-x:initial;--unx-translate-y:initial;--unx-translate-z:initial;--unx-ease:initial;--unx-leading:initial;--unx-scale-x:1;--unx-scale-y:1;--unx-scale-z:1;--unx-content:"";--unx-border-bottom-opacity:100%;--unx-border-top-opacity:100%;--unx-border-block-opacity:100%;--unx-border-left-opacity:100%;--unx-border-right-opacity:100%}}@property --unx-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --unx-leading{syntax:"*";inherits:false}@property --unx-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --unx-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --unx-border-block-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --unx-border-bottom-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --unx-border-left-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --unx-border-right-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --unx-border-top-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --unx-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --unx-content{syntax:"*";inherits:false;initial-value:""}@property --unx-inset-ring-color{syntax:"*";inherits:false}@property --unx-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --unx-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --unx-inset-shadow-color{syntax:"*";inherits:false}@property --unx-ring-color{syntax:"*";inherits:false}@property --unx-ring-inset{syntax:"*";inherits:false}@property --unx-ring-offset-color{syntax:"*";inherits:false}@property --unx-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --unx-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --unx-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --unx-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --unx-shadow-color{syntax:"*";inherits:false}@property --unx-translate-x{syntax:"*";inherits:false;initial-value:0}@property --unx-translate-y{syntax:"*";inherits:false;initial-value:0}@property --unx-translate-z{syntax:"*";inherits:false;initial-value:0}@property --unx-scale-x{syntax:"*";inherits:false;initial-value:1}@property --unx-scale-y{syntax:"*";inherits:false;initial-value:1}@property --unx-scale-z{syntax:"*";inherits:false;initial-value:1}@property --unx-ease{syntax:"*";inherits:false}@property --unx-stroke-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --unx-backdrop-blur{syntax:"*";inherits:false}@property --unx-backdrop-brightness{syntax:"*";inherits:false}@property --unx-backdrop-contrast{syntax:"*";inherits:false}@property --unx-backdrop-grayscale{syntax:"*";inherits:false}@property --unx-backdrop-hue-rotate{syntax:"*";inherits:false}@property --unx-backdrop-invert{syntax:"*";inherits:false}@property --unx-backdrop-opacity{syntax:"*";inherits:false}@property --unx-backdrop-saturate{syntax:"*";inherits:false}@property --unx-backdrop-sepia{syntax:"*";inherits:false}@property --unx-numeric-figure{syntax:"*";inherits:false}@property --unx-numeric-fraction{syntax:"*";inherits:false}@property --unx-numeric-spacing{syntax:"*";inherits:false}@property --unx-ordinal{syntax:"*";inherits:false}@property --unx-slashed-zero{syntax:"*";inherits:false}:root,:host{--spacing:.25rem;--font-pw:var(--pw-font);--radius-pw-sm:var(--pw-r-sm);--radius-pw-md:var(--pw-r-md);--radius-pw-pill:var(--pw-r-pill);--radius-pw-lg:var(--pw-r-lg);--fontWeight-medium:500;--tracking-wide:.025em;--font-pw-mono:var(--pw-mono);--radius-none:0;--fontWeight-semibold:600;--leading-none:1;--text-xs-fontSize:.75rem;--text-xs-lineHeight:1rem;--default-transition-timingFunction:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--ease-DEFAULT:cubic-bezier(.4, 0, .2, 1);--fontWeight-normal:400;--ease-pw-expo:var(--pw-ease-expo);--ease-pw:var(--pw-ease);--radius-md:.375rem;--text-sm-fontSize:.875rem;--text-sm-lineHeight:1.25rem;--text-base-fontSize:1rem;--text-base-lineHeight:1.5rem;--colors-white:#fff;--leading-snug:1.375}.prose-pw{max-width:none;--unx-leading:1.45!important;font-size:.875rem!important;line-height:1.45!important}.prose-pw>:first-child{margin-top:calc(var(--spacing) * 0)}.prose-pw>:last-child{margin-bottom:calc(var(--spacing) * 0)}.after\\:accent-sweep:after{background-image:linear-gradient(90deg,transparent,var(--pw-accent),transparent)}.container{width:100%}.shadow-pw{box-shadow:var(--pw-shadow)}.shadow-pw-lg{box-shadow:var(--pw-shadow-lg)}.skel-bg{background-image:linear-gradient(90deg,var(--pw-fill-soft) 25%,var(--pw-fill-strong) 50%,var(--pw-fill-soft) 75%)}.trans-bg{transition:background-color .12s var(--pw-ease)}.trans-bg-tf{transition:background-color .12s var(--pw-ease),transform .1s var(--pw-ease)}.trans-border{transition:border-color .12s var(--pw-ease)}.trans-btn{transition:transform .1s var(--pw-ease),background-color .12s var(--pw-ease),border-color .12s var(--pw-ease),color .12s var(--pw-ease)}.trans-cbb{transition:color .12s var(--pw-ease),border-color .12s var(--pw-ease),background-color .12s var(--pw-ease)}.trans-chip{transition:border-color .12s var(--pw-ease),background-color .12s var(--pw-ease)}.trans-color-bg{transition:color .12s var(--pw-ease),background-color .12s var(--pw-ease)}.trans-input{transition:border-color .12s var(--pw-ease),background-color .12s var(--pw-ease),transform .1s var(--pw-ease)}.trans-lift{transition:transform .14s var(--pw-ease),box-shadow .14s var(--pw-ease)}.trans-pop-in{transition:opacity .2s var(--pw-ease),transform .24s var(--pw-ease-expo),visibility 0s}.trans-pop-out{transition:opacity .2s var(--pw-ease),transform .24s var(--pw-ease-expo),visibility 0s linear .24s}.hover\\:shadow-pw-hover:hover{box-shadow:var(--pw-shadow-hover)}.focus-visible\\:ring-inset-accent:focus-visible{box-shadow:inset 0 0 0 .0625rem var(--pw-accent)}.data-\\[state\\=closed\\]\\:anim-collapse-closed[data-state=closed]{animation:.2s linear pw-collapse-height;animation-timing-function:var(--pw-ease);animation-fill-mode:forwards}.data-\\[state\\=open\\]\\:anim-collapse-open[data-state=open]{animation:.2s linear pw-expand-height;animation-timing-function:var(--pw-ease)}.data-\\[state\\=open\\]\\:anim-combo[data-state=open]{animation:.12s linear fade-in;animation-timing-function:var(--pw-ease)}.anim-compact{animation:.85s linear infinite spin}.anim-dot1{animation:1.2s linear infinite pw-dot}.anim-dot2{animation:1.2s linear .15s infinite pw-dot}.anim-dot3{animation:1.2s linear .3s infinite pw-dot}.anim-fab{animation:.36s linear zoom-in;animation-timing-function:var(--pw-ease-expo);animation-fill-mode:both}.anim-msg{animation:.16s linear fade-in-up;animation-timing-function:var(--pw-ease)}.anim-msg-lg{animation:.18s linear fade-in-up;animation-timing-function:var(--pw-ease)}.anim-now{animation:.22s linear fade-in;animation-timing-function:var(--pw-ease)}.anim-presence-in,.data-\\[state\\=open\\]\\:anim-presence-in[data-state=open]{animation:.18s linear pw-presence-in;animation-timing-function:var(--pw-ease-expo);animation-fill-mode:both}.data-\\[state\\=closed\\]\\:anim-presence-out[data-state=closed]{animation:.12s linear pw-presence-out;animation-timing-function:var(--pw-ease);animation-fill-mode:both}.anim-pulse{animation:1.4s cubic-bezier(.4,0,.6,1) infinite pulse}.anim-rise,.data-\\[state\\=open\\]\\:anim-rise[data-state=open]{animation:.32s linear fade-in-up;animation-timing-function:var(--pw-ease-expo);animation-fill-mode:both}.anim-rise-d{animation:.32s linear 40ms fade-in-up;animation-timing-function:var(--pw-ease-expo);animation-fill-mode:both}.anim-skel,.anim-switching{animation:1.2s cubic-bezier(.4,0,.6,1) infinite pulse}.anim-think-shimmer{animation:1.6s linear infinite pw-think-shimmer}.anim-tool-spin{animation:.7s linear infinite spin}.after\\:anim-fab-ring:after{animation:1.6s linear pw-fab-ring;animation-timing-function:var(--pw-ease);animation-iteration-count:infinite}.prose-pw{color:var(--unx-prose-body);max-width:65ch}.prose-pw :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin:0 0 .5rem}.prose-pw :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose-pw :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-links);font-weight:500;text-decoration:underline}.prose-pw :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-bold);font-weight:600}.prose-pw :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-pw :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-pw :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose-pw :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose-pw :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose-pw :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose-pw :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose-pw :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose-pw :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose-pw :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose-pw :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose-pw :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose-pw :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose-pw :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose-pw :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--unx-prose-counters);font-weight:400}.prose-pw :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--unx-prose-bullets)}.prose-pw :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-headings);margin-top:1.25em;font-weight:600}.prose-pw :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--unx-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose-pw :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--pw-text-2);border-inline-start-width:.25rem;border-inline-start-color:var(--unx-prose-quote-borders);quotes:"“""”""‘""’";padding-inline-start:1em;border-left:2px solid var(--pw-line-2);margin:0 0 .5rem;padding-left:.625rem;font-style:normal;font-weight:400}.prose-pw :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose-pw :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose-pw :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:1.15em;font-weight:800;line-height:1.11111}.prose-pw :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose-pw :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.07em;font-weight:700;line-height:1.33333}.prose-pw :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose-pw :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1em;font-weight:600;line-height:1.6}.prose-pw :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose-pw :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose-pw :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose-pw :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose-pw :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose-pw :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose-pw :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-kbd);box-shadow:0 0 0 1px rgb(var(--unx-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--unx-prose-kbd-shadows) / 10%);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose-pw :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-code);background-color:var(--pw-fill-strong);border-radius:5px;padding:1px 5px;font-size:.875em;font-weight:400}.prose-pw :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose-pw :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose-pw :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-pw :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose-pw :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose-pw :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose-pw :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-pw :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-pw :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose-pw :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-pre-code);background-color:var(--unx-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;padding-inline-start:1.14286em;border-radius:.5625rem;margin:.5rem 0;padding:.625rem .75rem;font-size:.75rem;font-weight:400;line-height:1.5;overflow-x:auto}.prose-pw :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose-pw :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose-pw :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose-pw :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose-pw :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--unx-prose-th-borders)}.prose-pw :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose-pw :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--unx-prose-td-borders)}.prose-pw :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose-pw :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose-pw :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--unx-prose-th-borders)}.prose-pw :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose-pw :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose-pw :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-pw :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose-pw{font-size:1rem;line-height:1.75}.prose-pw :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-pw :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin:.125rem 0;padding-left:0}.prose-pw :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-pw :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose-pw :where():not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose-pw :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose-pw :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose-pw :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose-pw :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-pw :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-pw :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-pw :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-pw :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-pw :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-pw :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose-pw :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-pw :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-pw :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose-pw :where():not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-pw :where(ul,ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin:0 0 .5rem;padding-left:1.25rem}.prose-pw :where(h1,h2,h3,h4,h5,h6):not(:where([class~=not-prose],[class~=not-prose] *)){letter-spacing:-.01em;margin:.75rem 0 .375rem;font-weight:600;line-height:1.3}.prose-pw{--unx-prose-body:inherit;--unx-prose-invert-body:oklch(87.2% .01 258.338);--unx-prose-headings:inherit;--unx-prose-invert-headings:white;--unx-prose-lead:oklch(44.6% .03 256.802);--unx-prose-invert-lead:oklch(70.7% .022 261.325);--unx-prose-links:var(--pw-accent-link);--unx-prose-invert-links:white;--unx-prose-bold:inherit;--unx-prose-invert-bold:white;--unx-prose-counters:currentColor;--unx-prose-invert-counters:oklch(70.7% .022 261.325);--unx-prose-bullets:currentColor;--unx-prose-invert-bullets:oklch(44.6% .03 256.802);--unx-prose-hr:var(--pw-line);--unx-prose-invert-hr:oklch(37.3% .034 259.733);--unx-prose-quotes:var(--pw-text-2);--unx-prose-invert-quotes:oklch(96.7% .003 264.542);--unx-prose-quote-borders:var(--pw-line-2);--unx-prose-invert-quote-borders:oklch(37.3% .034 259.733);--unx-prose-captions:oklch(55.1% .027 264.364);--unx-prose-invert-captions:oklch(70.7% .022 261.325);--unx-prose-kbd:oklch(21% .034 264.665);--unx-prose-invert-kbd:white;--unx-prose-kbd-shadows:oklch(21% .034 264.665);--unx-prose-invert-kbd-shadows:white;--unx-prose-code:inherit;--unx-prose-invert-code:white;--unx-prose-pre-code:oklch(92.8% .006 264.531);--unx-prose-invert-pre-code:oklch(87.2% .01 258.338);--unx-prose-pre-bg:var(--pw-sunken);--unx-prose-invert-pre-bg:#00000080;--unx-prose-th-borders:oklch(87.2% .01 258.338);--unx-prose-invert-th-borders:oklch(44.6% .03 256.802);--unx-prose-td-borders:oklch(92.8% .006 264.531);--unx-prose-invert-td-borders:oklch(37.3% .034 259.733)}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.text-\\[0\\.625rem\\]{font-size:.625rem}.text-\\[0\\.6875rem\\]{font-size:.6875rem}.text-\\[0\\.71875rem\\]{font-size:.71875rem}.text-\\[0\\.75rem\\]{font-size:.75rem}.text-\\[0\\.8125rem\\]{font-size:.8125rem}.text-\\[0\\.875rem\\]{font-size:.875rem}.text-\\[1\\.125rem\\]{font-size:1.125rem}.text-\\[1\\.375rem\\]{font-size:1.375rem}.text-\\[length\\:var\\(--chat-text-md\\)\\]{font-size:var(--chat-text-md)}.text-\\[length\\:var\\(--chat-text-sm\\)\\]{font-size:var(--chat-text-sm)}.text-\\[length\\:var\\(--chat-text-xs\\)\\]{font-size:var(--chat-text-xs)}.text-base{font-size:var(--text-base-fontSize);line-height:var(--unx-leading,var(--text-base-lineHeight))}.text-sm{font-size:var(--text-sm-fontSize);line-height:var(--unx-leading,var(--text-sm-lineHeight))}.text-xs{font-size:var(--text-xs-fontSize);line-height:var(--unx-leading,var(--text-xs-lineHeight))}.\\[\\&_\\[data-mention\\]\\]\\:text-pw-accent-hi [data-mention],.text-pw-accent-hi{color:color-mix(in srgb, var(--pw-accent-hi) var(--unx-text-opacity), transparent)}.data-\\[highlighted\\]\\:text-pw-danger[data-highlighted],.text-pw-danger{color:color-mix(in srgb, var(--pw-danger) var(--unx-text-opacity), transparent)}.data-\\[highlighted\\]\\:text-pw-text-hi[data-highlighted],.data-\\[state\\=open\\]\\:text-pw-text-hi[data-state=open],.text-pw-text-hi{color:color-mix(in srgb, var(--pw-text-hi) var(--unx-text-opacity), transparent)}.data-\\[highlighted\\]\\:text-pw-text[data-highlighted],.data-\\[selected\\]\\:text-pw-text[data-selected],.text-pw-text{color:color-mix(in srgb, var(--pw-text) var(--unx-text-opacity), transparent)}.data-\\[selected\\]\\:text-pw-accent[data-selected],.text-pw-accent{color:color-mix(in srgb, var(--pw-accent) var(--unx-text-opacity), transparent)}.text-pw-accent-link{color:color-mix(in srgb, var(--pw-accent-link) var(--unx-text-opacity), transparent)}.text-pw-on-accent{color:color-mix(in srgb, var(--pw-on-accent) var(--unx-text-opacity), transparent)}.text-pw-success{color:color-mix(in srgb, var(--pw-success) var(--unx-text-opacity), transparent)}.text-pw-text-2{color:color-mix(in srgb, var(--pw-text-2) var(--unx-text-opacity), transparent)}.text-pw-text-3{color:color-mix(in srgb, var(--pw-text-3) var(--unx-text-opacity), transparent)}.text-transparent{color:#0000}.hover\\:text-pw-danger:hover{color:color-mix(in srgb, var(--pw-danger) var(--unx-text-opacity), transparent)}.hover\\:text-pw-text-2:hover{color:color-mix(in srgb, var(--pw-text-2) var(--unx-text-opacity), transparent)}.hover\\:text-pw-text-hi:hover{color:color-mix(in srgb, var(--pw-text-hi) var(--unx-text-opacity), transparent)}.hover\\:text-pw-text:hover{color:color-mix(in srgb, var(--pw-text) var(--unx-text-opacity), transparent)}.placeholder\\:text-pw-text-3::placeholder{color:color-mix(in srgb, var(--pw-text-3) var(--unx-text-opacity), transparent)}.leading-\\[1\\.4\\]{--unx-leading:1.4;line-height:1.4}.leading-\\[1\\.45\\]{--unx-leading:1.45;line-height:1.45}.leading-\\[1\\.5\\]{--unx-leading:1.5;line-height:1.5}.leading-none{--unx-leading:var(--leading-none);line-height:var(--leading-none)}.leading-snug{--unx-leading:var(--leading-snug);line-height:var(--leading-snug)}.tracking-\\[-0\\.015em\\]{--unx-tracking:-.015em;letter-spacing:-.015em}.tracking-\\[-0\\.01em\\]{--unx-tracking:-.01em;letter-spacing:-.01em}.tracking-\\[0\\.02em\\]{--unx-tracking:.02em;letter-spacing:.02em}.tracking-\\[0\\.04em\\]{--unx-tracking:.04em;letter-spacing:.04em}.tracking-\\[0\\.06em\\]{--unx-tracking:.06em;letter-spacing:.06em}.tracking-\\[0\\.08em\\]{--unx-tracking:.08em;letter-spacing:.08em}.tracking-wide{--unx-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.font-medium{--unx-font-weight:var(--fontWeight-medium);font-weight:var(--fontWeight-medium)}.font-normal{--unx-font-weight:var(--fontWeight-normal);font-weight:var(--fontWeight-normal)}.font-pw{font-family:var(--font-pw)}.font-pw-mono{font-family:var(--font-pw-mono)}.font-semibold{--unx-font-weight:var(--fontWeight-semibold);font-weight:var(--fontWeight-semibold)}.tab{tab-size:4}.m-0{margin:calc(var(--spacing) * 0)}.m-3{margin:calc(var(--spacing) * 3)}.m-auto{margin:auto}.mx-0\\.5{margin-inline:calc(var(--spacing) * .5)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing) * 1)}.my-1\\.5{margin-block:calc(var(--spacing) * 1.5)}.-ml-1\\.5{margin-left:calc(var(--spacing) * -1.5)}.-mt-1{margin-top:calc(var(--spacing) * -1)}.mb-0\\.75{margin-bottom:calc(var(--spacing) * .75)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3\\.5{margin-bottom:calc(var(--spacing) * 3.5)}.me{margin-inline-end:calc(var(--spacing) * 4)}.ml-auto{margin-left:auto}.ms{margin-inline-start:calc(var(--spacing) * 4)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-1\\.75{margin-top:calc(var(--spacing) * 1.75)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-px{margin-top:1px}.p-0{padding:calc(var(--spacing) * 0)}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-1,.p1{padding:calc(var(--spacing) * 1)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-10{padding:calc(var(--spacing) * 10)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\\.5{padding:calc(var(--spacing) * 2.5)}.p-2\\.75{padding:calc(var(--spacing) * 2.75)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.\\[\\&_\\[data-mention\\]\\]\\:px-0\\.5 [data-mention]{padding-inline:calc(var(--spacing) * .5)}.px,.px-4{padding-inline:calc(var(--spacing) * 4)}.px-\\[0\\.3125rem\\]{padding-inline:.3125rem}.px-\\[0\\.8125rem\\]{padding-inline:.8125rem}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.25{padding-inline:calc(var(--spacing) * 2.25)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-2\\.75{padding-inline:calc(var(--spacing) * 2.75)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4\\.5{padding-inline:calc(var(--spacing) * 4.5)}.py-\\[0\\.4375rem\\]{padding-block:.4375rem}.py-\\[0\\.5625rem\\]{padding-block:.5625rem}.py-0{padding-block:calc(var(--spacing) * 0)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-1\\.75{padding-block:calc(var(--spacing) * 1.75)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-px{padding-block:1px}.pb-0\\.5{padding-bottom:calc(var(--spacing) * .5)}.pb-1{padding-bottom:calc(var(--spacing) * 1)}.pb-1\\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-2\\.5{padding-bottom:calc(var(--spacing) * 2.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-2\\.5{padding-left:calc(var(--spacing) * 2.5)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-3\\.5{padding-left:calc(var(--spacing) * 3.5)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pr-\\[0\\.4375rem\\]{padding-right:.4375rem}.pr-1\\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2\\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-9{padding-right:calc(var(--spacing) * 9)}.pt-0\\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:calc(var(--spacing) * 1)}.pt-1\\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.text-center{text-align:center}.text-left{text-align:left}.text-start{text-align:start}.outline{outline-style:var(--unx-outline-style);outline-width:1px}.outline-none,.focus\\:outline-none:focus,.focus-visible\\:outline-none:focus-visible{--unx-outline-style:none;outline-style:none}.will-change-transform{will-change:transform}.list-none{list-style-type:none}.b,.border{border-width:1px}.border-2,.after\\:border-2:after{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.first\\:border-t-0:first-child{border-top-width:0}.border-pw-accent-line{border-color:color-mix(in srgb, var(--pw-accent-line) var(--unx-border-opacity), transparent)}.border-pw-danger-line{border-color:color-mix(in srgb, var(--pw-danger-line) var(--unx-border-opacity), transparent)}.border-pw-line,.data-\\[state\\=open\\]\\:border-pw-line[data-state=open]{border-color:color-mix(in srgb, var(--pw-line) var(--unx-border-opacity), transparent)}.border-pw-line-2{border-color:color-mix(in srgb, var(--pw-line-2) var(--unx-border-opacity), transparent)}.border-pw-line-soft{border-color:color-mix(in srgb, var(--pw-line-soft) var(--unx-border-opacity), transparent)}.border-transparent{border-color:#0000}.border-white{border-color:color-mix(in srgb, var(--colors-white) var(--unx-border-opacity), transparent)}.hover\\:border-pw-accent:hover{border-color:color-mix(in srgb, var(--pw-accent) var(--unx-border-opacity), transparent)}.hover\\:border-pw-danger:hover{border-color:color-mix(in srgb, var(--pw-danger) var(--unx-border-opacity), transparent)}.hover\\:border-pw-line:hover{border-color:color-mix(in srgb, var(--pw-line) var(--unx-border-opacity), transparent)}.focus\\:border-pw-accent:focus,.after\\:border-pw-accent:after{border-color:color-mix(in srgb, var(--pw-accent) var(--unx-border-opacity), transparent)}.border-y-pw-line{border-block-color:color-mix(in srgb, var(--pw-line) var(--unx-border-block-opacity), transparent);--unx-border-block-opacity:var(--unx-border-opacity)}.border-b-pw-line{border-bottom-color:color-mix(in srgb, var(--pw-line) var(--unx-border-bottom-opacity), transparent);--unx-border-bottom-opacity:var(--unx-border-opacity)}.border-b-pw-line-soft{border-bottom-color:color-mix(in srgb, var(--pw-line-soft) var(--unx-border-bottom-opacity), transparent);--unx-border-bottom-opacity:var(--unx-border-opacity)}.border-l-\\[0\\.1875rem\\]{border-left-color:color-mix(in oklab, .1875rem var(--unx-border-left-opacity), transparent)}.border-l-pw-accent{border-left-color:color-mix(in srgb, var(--pw-accent) var(--unx-border-left-opacity), transparent);--unx-border-left-opacity:var(--unx-border-opacity)}.border-r-pw-line{border-right-color:color-mix(in srgb, var(--pw-line) var(--unx-border-right-opacity), transparent);--unx-border-right-opacity:var(--unx-border-opacity)}.border-t-pw-line-soft{border-top-color:color-mix(in srgb, var(--pw-line-soft) var(--unx-border-top-opacity), transparent);--unx-border-top-opacity:var(--unx-border-opacity)}.\\[\\&_\\[data-mention\\]\\]\\:rounded-pw-sm [data-mention],.rounded-pw-sm{border-radius:var(--radius-pw-sm)}.\\[\\&\\>\\*\\]\\:\\!rounded-none>*{border-radius:var(--radius-none)!important}.rounded-\\[0\\.3125rem\\]{border-radius:.3125rem}.rounded-\\[0\\.4375rem\\]{border-radius:.4375rem}.rounded-\\[0\\.5625rem\\]{border-radius:.5625rem}.rounded-\\[50\\%_50\\%_50\\%_0\\]{border-radius:50% 50% 50% 0}.rounded-\\[50\\%\\]{border-radius:50%}.rounded-\\[var\\(--chat-radius-lg\\)\\]{border-radius:var(--chat-radius-lg)}.rounded-\\[var\\(--chat-radius-md\\)\\]{border-radius:var(--chat-radius-md)}.rounded-\\[var\\(--chat-radius-pill\\)\\]{border-radius:var(--chat-radius-pill)}.rounded-\\[var\\(--chat-radius-sm\\)\\]{border-radius:var(--chat-radius-sm)}.rounded-full{border-radius:3.40282e38px}.rounded-md{border-radius:var(--radius-md)}.rounded-none{border-radius:var(--radius-none)}.rounded-pw-lg{border-radius:var(--radius-pw-lg)}.rounded-pw-md{border-radius:var(--radius-pw-md)}.rounded-pw-pill,.after\\:rounded-pw-pill:after{border-radius:var(--radius-pw-pill)}.rounded-b-pw-lg{border-bottom-left-radius:var(--radius-pw-lg);border-bottom-right-radius:var(--radius-pw-lg)}.\\[\\&\\>\\*\\]\\:\\!border-none>*{--unx-border-style:none!important;border-style:none!important}.\\[\\&_\\[data-mention\\]\\]\\:bg-pw-accent-08 [data-mention],.bg-pw-accent-08,.data-\\[selected\\]\\:bg-pw-accent-08[data-selected]{background-color:color-mix(in srgb, var(--pw-accent-08) var(--unx-bg-opacity), transparent)}.aria-selected\\:bg-pw-fill[aria-selected=true],.bg-pw-fill,.data-\\[highlighted\\]\\:bg-pw-fill[data-highlighted],.data-\\[state\\=open\\]\\:bg-pw-fill[data-state=open]{background-color:color-mix(in srgb, var(--pw-fill) var(--unx-bg-opacity), transparent)}.bg-\\[rgba\\(0\\,0\\,0\\,0\\.55\\)\\]{background-color:color-mix(in oklab, #0000008c var(--unx-bg-opacity), transparent)}.bg-pw-accent,.data-\\[state\\=checked\\]\\:bg-pw-accent[data-state=checked]{background-color:color-mix(in srgb, var(--pw-accent) var(--unx-bg-opacity), transparent)}.bg-pw-accent-link{background-color:color-mix(in srgb, var(--pw-accent-link) var(--unx-bg-opacity), transparent)}.bg-pw-danger{background-color:color-mix(in srgb, var(--pw-danger) var(--unx-bg-opacity), transparent)}.bg-pw-dim{background-color:color-mix(in srgb, var(--pw-dim) var(--unx-bg-opacity), transparent)}.bg-pw-fill-soft,.data-\\[state\\=open\\]\\:bg-pw-fill-soft[data-state=open]{background-color:color-mix(in srgb, var(--pw-fill-soft) var(--unx-bg-opacity), transparent)}.bg-pw-fill-strong,.data-\\[active\\]\\:bg-pw-fill-strong[data-active],.data-\\[highlighted\\]\\:bg-pw-fill-strong[data-highlighted]{background-color:color-mix(in srgb, var(--pw-fill-strong) var(--unx-bg-opacity), transparent)}.bg-pw-glass{background-color:color-mix(in srgb, var(--pw-glass) var(--unx-bg-opacity), transparent)}.bg-pw-line{background-color:color-mix(in srgb, var(--pw-line) var(--unx-bg-opacity), transparent)}.bg-pw-line-2{background-color:color-mix(in srgb, var(--pw-line-2) var(--unx-bg-opacity), transparent)}.bg-pw-panel{background-color:color-mix(in srgb, var(--pw-panel) var(--unx-bg-opacity), transparent)}.bg-pw-panel-60{background-color:color-mix(in srgb, color-mix(in srgb, var(--pw-panel) 60%, transparent) var(--unx-bg-opacity), transparent)}.bg-pw-panel-sunk{background-color:color-mix(in srgb, var(--pw-panel-sunk) var(--unx-bg-opacity), transparent)}.bg-pw-success{background-color:color-mix(in srgb, var(--pw-success) var(--unx-bg-opacity), transparent)}.bg-pw-sunken{background-color:color-mix(in srgb, var(--pw-sunken) var(--unx-bg-opacity), transparent)}.bg-pw-text{background-color:color-mix(in srgb, var(--pw-text) var(--unx-bg-opacity), transparent)}.bg-pw-text-2{background-color:color-mix(in srgb, var(--pw-text-2) var(--unx-bg-opacity), transparent)}.bg-pw-warn{background-color:color-mix(in srgb, var(--pw-warn) var(--unx-bg-opacity), transparent)}.bg-transparent{background-color:#0000}.data-\\[state\\=checked\\]\\:bg-pw-on-accent[data-state=checked]{background-color:color-mix(in srgb, var(--pw-on-accent) var(--unx-bg-opacity), transparent)}.hover\\:before\\:bg-pw-accent-line:hover:before{background-color:color-mix(in srgb, var(--pw-accent-line) var(--unx-bg-opacity), transparent)}.hover\\:bg-pw-accent-08:hover{background-color:color-mix(in srgb, var(--pw-accent-08) var(--unx-bg-opacity), transparent)}.hover\\:bg-pw-accent-20:hover{background-color:color-mix(in srgb, var(--pw-accent-20) var(--unx-bg-opacity), transparent)}.hover\\:bg-pw-accent-hi:hover{background-color:color-mix(in srgb, var(--pw-accent-hi) var(--unx-bg-opacity), transparent)}.hover\\:bg-pw-danger-14:hover{background-color:color-mix(in srgb, color-mix(in oklch, var(--pw-danger) 14%, transparent) var(--unx-bg-opacity), transparent)}.hover\\:bg-pw-fill-soft:hover{background-color:color-mix(in srgb, var(--pw-fill-soft) var(--unx-bg-opacity), transparent)}.hover\\:bg-pw-fill-strong:hover{background-color:color-mix(in srgb, var(--pw-fill-strong) var(--unx-bg-opacity), transparent)}.hover\\:bg-pw-fill:hover{background-color:color-mix(in srgb, var(--pw-fill) var(--unx-bg-opacity), transparent)}.hover\\:bg-pw-line:hover{background-color:color-mix(in srgb, var(--pw-line) var(--unx-bg-opacity), transparent)}.hover\\:bg-pw-panel:hover{background-color:color-mix(in srgb, var(--pw-panel) var(--unx-bg-opacity), transparent)}.hover\\:bg-pw-text-3:hover{background-color:color-mix(in srgb, var(--pw-text-3) var(--unx-bg-opacity), transparent)}.focus-visible\\:bg-pw-accent-20:focus-visible{background-color:color-mix(in srgb, var(--pw-accent-20) var(--unx-bg-opacity), transparent)}.focus-visible\\:bg-pw-accent:focus-visible,.before\\:bg-pw-accent:before{background-color:color-mix(in srgb, var(--pw-accent) var(--unx-bg-opacity), transparent)}.before\\:bg-pw-line-soft:before{background-color:color-mix(in srgb, var(--pw-line-soft) var(--unx-bg-opacity), transparent)}.before\\:bg-pw-line:before{background-color:color-mix(in srgb, var(--pw-line) var(--unx-bg-opacity), transparent)}.after\\:bg-pw-line-soft:after{background-color:color-mix(in srgb, var(--pw-line-soft) var(--unx-bg-opacity), transparent)}.\\[\\&\\[aria-disabled\\=true\\]\\]\\:opacity-\\[0\\.55\\][aria-disabled=true]{opacity:.55}.\\[\\&\\[aria-disabled\\=true\\]\\]\\:opacity-50[aria-disabled=true],.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.\\[\\&\\[data-hover\\]\\]\\:opacity-100[data-hover],.\\[\\&\\[data-scrolling\\]\\]\\:opacity-100[data-scrolling],.opacity-100{opacity:1}.\\[\\&\\[hidden\\]\\]\\:opacity-0[hidden],.opacity-0{opacity:0}.\\[\\&\\>\\*\\]\\:\\!opacity-100>*{opacity:1!important}.opacity-\\[0\\.62\\]{opacity:.62}.opacity-30{opacity:.3}.opacity-45{opacity:.45}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.group:hover .group-hover\\:opacity-90,.hover\\:opacity-90:hover{opacity:.9}.disabled\\:opacity-40:disabled{opacity:.4}.disabled\\:opacity-50:disabled{opacity:.5}.before\\:opacity-90:before{opacity:.9}.after\\:opacity-55:after{opacity:.55}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.data-\\[state\\=open\\]\\:flex[data-state=open],.flex{display:flex}.\\[\\&\\[hidden\\]\\]\\:\\[display\\:inline-flex\\][hidden],.data-\\[state\\=checked\\]\\:inline-flex[data-state=checked],.inline-flex{display:inline-flex}.flex-\\[0_0_0\\.4375rem\\]{flex:0 0 .4375rem}.flex-\\[1_1_auto\\],.flex-auto{flex:auto}.flex-1,.before\\:flex-1:before,.after\\:flex-1:after{flex:1}.flex-none{flex:none}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\\.25{gap:calc(var(--spacing) * 1.25)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-1\\.75{gap:calc(var(--spacing) * 1.75)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\\.25{gap:calc(var(--spacing) * 2.25)}.gap-2\\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-px{gap:1px}.grid{display:grid}.size-\\[1\\.375rem\\]{width:1.375rem;height:1.375rem}.size-\\[1em\\]{width:1em;height:1em}.size-1\\.75{width:calc(var(--spacing) * 1.75);height:calc(var(--spacing) * 1.75)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-13{width:calc(var(--spacing) * 13);height:calc(var(--spacing) * 13)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-2\\.75{width:calc(var(--spacing) * 2.75);height:calc(var(--spacing) * 2.75)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\\.25{width:calc(var(--spacing) * 3.25);height:calc(var(--spacing) * 3.25)}.size-3\\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-5\\.5{width:calc(var(--spacing) * 5.5);height:calc(var(--spacing) * 5.5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-8\\.5{width:calc(var(--spacing) * 8.5);height:calc(var(--spacing) * 8.5)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-9\\.5{width:calc(var(--spacing) * 9.5);height:calc(var(--spacing) * 9.5)}.size-full{width:100%;height:100%}.\\[\\&\\[data-orientation\\=horizontal\\]\\]\\:h-2[data-orientation=horizontal],.h-2,.h2{height:calc(var(--spacing) * 2)}.\\[\\&\\[data-orientation\\=horizontal\\]\\]\\:h-full[data-orientation=horizontal],.h-full{height:100%}.\\[\\&\\[data-orientation\\=horizontal\\]\\]\\:w-auto[data-orientation=horizontal],.w-auto{width:auto}.\\[\\&\\[data-orientation\\=vertical\\]\\]\\:w-2[data-orientation=vertical],.w-2{width:calc(var(--spacing) * 2)}.\\[\\&\\>\\*\\]\\:\\!h-full>*{height:100%!important}.\\[\\&\\>\\*\\]\\:\\!max-h-none>*{max-height:none!important}.\\[\\&\\>\\*\\]\\:\\!w-full>*{width:100%!important}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-1\\.5{height:calc(var(--spacing) * 1.5)}.h-140{height:calc(var(--spacing) * 140)}.h-32{height:calc(var(--spacing) * 32)}.h-4,.h4{height:calc(var(--spacing) * 4)}.h-4\\.5{height:calc(var(--spacing) * 4.5)}.h-4\\.75{height:calc(var(--spacing) * 4.75)}.h-40{height:calc(var(--spacing) * 40)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-96{height:calc(var(--spacing) * 96)}.h-px{height:1px}.h1{height:calc(var(--spacing) * 1)}.h3{height:calc(var(--spacing) * 3)}.h5{height:calc(var(--spacing) * 5)}.h6{height:calc(var(--spacing) * 6)}.max-h-\\[13\\.75rem\\]{max-height:13.75rem}.max-h-\\[calc\\(100vh-7\\.5rem\\)\\]{max-height:calc(100vh - 7.5rem)}.max-h-30{max-height:calc(var(--spacing) * 30)}.max-h-32{max-height:calc(var(--spacing) * 32)}.max-h-55{max-height:calc(var(--spacing) * 55)}.max-h-56{max-height:calc(var(--spacing) * 56)}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-90{max-height:calc(var(--spacing) * 90)}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-w-\\[80\\%\\]{max-width:80%}.max-w-\\[80vw\\]{max-width:80vw}.max-w-\\[calc\\(100vw-2\\.5rem\\)\\]{max-width:calc(100vw - 2.5rem)}.max-w-\\[calc\\(100vw-2rem\\)\\]{max-width:calc(100vw - 2rem)}.max-w-42{max-width:calc(var(--spacing) * 42)}.max-w-60{max-width:calc(var(--spacing) * 60)}.max-w-64{max-width:calc(var(--spacing) * 64)}.max-w-full{max-width:100%}.min-h-\\[2\\.375rem\\]{min-height:2.375rem}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-20{min-height:calc(var(--spacing) * 20)}.min-h-6{min-height:calc(var(--spacing) * 6)}.min-h-7{min-height:calc(var(--spacing) * 7)}.min-h-8{min-height:calc(var(--spacing) * 8)}.min-h-9{min-height:calc(var(--spacing) * 9)}.min-h-9\\.5{min-height:calc(var(--spacing) * 9.5)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-32{min-width:calc(var(--spacing) * 32)}.min-w-4{min-width:calc(var(--spacing) * 4)}.min-w-44{min-width:calc(var(--spacing) * 44)}.min-w-45{min-width:calc(var(--spacing) * 45)}.min-w-55{min-width:calc(var(--spacing) * 55)}.w-\\[24rem\\]{width:24rem}.w-\\[30rem\\]{width:30rem}.w-\\[34rem\\]{width:34rem}.w-\\[clamp\\(20rem\\,28vw\\,25rem\\)\\]{width:clamp(20rem,28vw,25rem)}.w-0\\.5{width:calc(var(--spacing) * .5)}.w-1\\.5{width:calc(var(--spacing) * 1.5)}.w-11\\.5{width:calc(var(--spacing) * 11.5)}.w-120{width:calc(var(--spacing) * 120)}.w-60{width:calc(var(--spacing) * 60)}.w-64{width:calc(var(--spacing) * 64)}.w-70{width:calc(var(--spacing) * 70)}.w-72{width:calc(var(--spacing) * 72)}.w-8{width:calc(var(--spacing) * 8)}.w-80{width:calc(var(--spacing) * 80)}.w-85{width:calc(var(--spacing) * 85)}.w-90{width:calc(var(--spacing) * 90)}.w-96{width:calc(var(--spacing) * 96)}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.before\\:h-0\\.5:before{height:calc(var(--spacing) * .5)}.before\\:h-px:before,.after\\:h-px:after{height:1px}.inline{display:inline}.block,.data-\\[state\\=open\\]\\:block[data-state=open]{display:block}.inline-block{display:inline-block}.contents{display:contents}.\\[\\&_\\[role\\=separator\\]\\]\\:hidden [role=separator],.\\[\\&\\[data-orientation\\=horizontal\\]\\:not\\(\\[data-overflow-x\\]\\)\\]\\:hidden[data-orientation=horizontal]:not([data-overflow-x]),.\\[\\&\\[data-orientation\\=vertical\\]\\:not\\(\\[data-overflow-y\\]\\)\\]\\:hidden[data-orientation=vertical]:not([data-overflow-y]),.hidden{display:none}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:hidden::-webkit-scrollbar{display:none}.empty\\:hidden:empty{display:none}.\\[\\&\\>\\*\\]\\:\\!visible>*{visibility:visible!important}.visible{visibility:visible}.invisible{visibility:hidden}.cursor-default,.disabled\\:cursor-default:disabled{cursor:default}.cursor-pointer{cursor:pointer}.cursor-progress{cursor:progress}.cursor-crosshair{cursor:crosshair}.\\[\\&\\[aria-disabled\\=true\\]\\]\\:cursor-not-allowed[aria-disabled=true],.data-\\[disabled\\]\\:cursor-not-allowed[data-disabled],.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-col-resize{cursor:col-resize}.cursor-ew-resize{cursor:ew-resize}.cursor-ns-resize{cursor:ns-resize}.\\[\\&\\[data-hover\\]\\]\\:pointer-events-auto[data-hover],.\\[\\&\\[data-scrolling\\]\\]\\:pointer-events-auto[data-scrolling],.pointer-events-auto{pointer-events:auto}.\\[\\&\\>\\*\\]\\:\\!pointer-events-auto>*{pointer-events:auto!important}.pointer-events-none{pointer-events:none}.resize{resize:both}.resize-none{resize:none}.select-none{-webkit-user-select:none;user-select:none}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.before\\:content-\\[\\'\\'\\]:before,.after\\:content-\\[\\'\\'\\]:after{--unx-content:"";content:var(--unx-content)}.\\[\\&_\\[data-model-name\\]\\]\\:truncate [data-model-name],.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.\\[text-transform\\:uppercase\\],.uppercase{text-transform:uppercase}.ring,.focus-ring:focus{--unx-ring-shadow:var(--unx-ring-inset,) 0 0 0 calc(1px + var(--unx-ring-offset-width)) var(--unx-ring-color,currentColor);box-shadow:var(--unx-inset-shadow), var(--unx-inset-ring-shadow), var(--unx-ring-offset-shadow), var(--unx-ring-shadow), var(--unx-shadow)}.\\[\\&\\>\\*\\]\\:\\!shadow-none>*{--unx-shadow:0 0 var(--unx-shadow-color,#0000)!important;box-shadow:var(--unx-inset-shadow), var(--unx-inset-ring-shadow), var(--unx-ring-offset-shadow), var(--unx-ring-shadow), var(--unx-shadow)!important}.shadow-\\[0_0_0_1px_var\\(--pw-accent-line\\)\\,0_0_16px_var\\(--pw-accent-20\\)\\]{--unx-shadow:0 0 0 1px var(--pw-accent-line),0 0 16px var(--pw-accent-20);box-shadow:var(--unx-inset-shadow), var(--unx-inset-ring-shadow), var(--unx-ring-offset-shadow), var(--unx-ring-shadow), var(--unx-shadow)}.shadow-\\[0_1px_4px_rgba\\(0\\,0\\,0\\,0\\.3\\)\\]{--unx-shadow:0 1px 4px var(--unx-shadow-color,#0000004d);box-shadow:var(--unx-inset-shadow), var(--unx-inset-ring-shadow), var(--unx-ring-offset-shadow), var(--unx-ring-shadow), var(--unx-shadow)}.shadow-\\[var\\(--chat-shadow-lg\\)\\]{--unx-shadow:var(--chat-shadow-lg);box-shadow:var(--unx-inset-shadow), var(--unx-inset-ring-shadow), var(--unx-ring-offset-shadow), var(--unx-ring-shadow), var(--unx-shadow)}.\\[transform-origin\\:top_left\\],.origin-top-left{transform-origin:0 0}.-translate-x-1\\/2{--unx-translate-x:-50%;translate:var(--unx-translate-x) var(--unx-translate-y)}.-translate-y-\\[101\\%\\]{--unx-translate-y:-101%;translate:var(--unx-translate-x) var(--unx-translate-y)}.-translate-y-full{--unx-translate-y:-100%;translate:var(--unx-translate-x) var(--unx-translate-y)}.data-\\[state\\=checked\\]\\:translate-x-3\\.5[data-state=checked]{--unx-translate-x:calc(var(--spacing) * 3.5);translate:var(--unx-translate-x) var(--unx-translate-y)}.translate-x-0\\.5{--unx-translate-x:calc(var(--spacing) * .5);translate:var(--unx-translate-x) var(--unx-translate-y)}.translate-y-0{--unx-translate-y:calc(var(--spacing) * 0);translate:var(--unx-translate-x) var(--unx-translate-y)}.\\[\\&\\:active\\:not\\(\\:disabled\\)\\]\\:scale-\\[0\\.92\\]:active:not(:disabled){--unx-scale-x:.92;--unx-scale-y:.92;scale:var(--unx-scale-x) var(--unx-scale-y)}.active\\:scale-\\[0\\.97\\]:active{--unx-scale-x:.97;--unx-scale-y:.97;scale:var(--unx-scale-x) var(--unx-scale-y)}.transform{transform:var(--unx-rotate-x) var(--unx-rotate-y) var(--unx-rotate-z) var(--unx-skew-x) var(--unx-skew-y)}.\\[\\&\\>\\*\\]\\:\\!transform-none>*{transform:none!important}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,--un-gradient-from,--un-gradient-via,--un-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--unx-ease,var(--default-transition-timingFunction));transition-duration:var(--unx-duration,var(--default-transition-duration))}.transition-\\[color\\,background-color\\]{transition-property:color,background-color;transition-timing-function:var(--unx-ease,var(--default-transition-timingFunction));transition-duration:var(--unx-duration,var(--default-transition-duration))}.transition-\\[left\\,top\\,width\\,height\\]{transition-property:left,top,width,height;transition-timing-function:var(--unx-ease,var(--default-transition-timingFunction));transition-duration:var(--unx-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--unx-ease,var(--default-transition-timingFunction));transition-duration:var(--unx-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--unx-ease,var(--default-transition-timingFunction));transition-duration:var(--unx-duration,var(--default-transition-duration))}.before\\:transition-\\[background-color\\]:before{transition-property:background-color;transition-timing-function:var(--unx-ease,var(--default-transition-timingFunction));transition-duration:var(--unx-duration,var(--default-transition-duration))}.duration-\\[120ms\\]{--unx-duration:.12s;transition-duration:.12s}.duration-\\[160ms\\]{--unx-duration:.16s;transition-duration:.16s}.duration-\\[80ms\\]{--unx-duration:80ms;transition-duration:80ms}.duration-300{--unx-duration:.3s;transition-duration:.3s}.before\\:duration-\\[120ms\\]:before{--unx-duration:.12s;transition-duration:.12s}.ease{--unx-ease:var(--ease-DEFAULT);transition-timing-function:var(--ease-DEFAULT)}.ease-pw{--unx-ease:var(--ease-pw);transition-timing-function:var(--ease-pw)}.ease-pw-expo{--unx-ease:var(--ease-pw-expo);transition-timing-function:var(--ease-pw-expo)}.before\\:ease-pw:before{--unx-ease:var(--ease-pw);transition-timing-function:var(--ease-pw)}.transition-none{transition:none}.\\[--size\\:1\\.375rem\\]{--size:1.375rem}.\\[--thickness\\:0\\.15625rem\\]{--thickness:.15625rem}.\\[\\&_\\.tiptap\\]\\:\\[outline\\:none\\] .tiptap,.\\[outline\\:none\\]{outline:none}.\\[\\&_\\[data-model-effort\\]\\]\\:\\[color\\:var\\(--chat-text-3\\)\\] [data-model-effort],.\\[color\\:var\\(--chat-text-3\\)\\],.data-\\[disabled\\]\\:\\[color\\:var\\(--chat-text-3\\)\\][data-disabled]{color:var(--chat-text-3)}.\\[\\&\\:hover\\:not\\(\\:disabled\\)\\]\\:\\[background\\:var\\(--chat-accent-hi\\)\\]:hover:not(:disabled){background:var(--chat-accent-hi)}.\\[\\&\\:not\\(\\:first-child\\)\\]\\:\\[border-top\\:1px_solid_var\\(--chat-line-soft\\)\\]:not(:first-child),.\\[border-top\\:1px_solid_var\\(--chat-line-soft\\)\\]{border-top:1px solid var(--chat-line-soft)}.\\[\\&\\[data-state\\=open\\]\\]\\:\\[transform\\:rotate\\(180deg\\)\\][data-state=open]{transform:rotate(180deg)}.\\[\\&\\[hidden\\]\\]\\:\\[scale\\:0\\.6\\][hidden]{scale:.6}.\\[animation\\:spin_0\\.6s_linear_infinite\\]{animation:.6s linear infinite spin}.\\[backdrop-filter\\:blur\\(0\\.125rem\\)\\]{-webkit-backdrop-filter:blur(.125rem);backdrop-filter:blur(.125rem)}.\\[backdrop-filter\\:blur\\(0\\.5rem\\)\\]{-webkit-backdrop-filter:blur(.5rem);backdrop-filter:blur(.5rem)}.\\[background-image\\:linear-gradient\\(90deg\\,var\\(--chat-text-3\\)\\,var\\(--chat-text-hi\\)\\,var\\(--chat-text-3\\)\\)\\]{background-image:linear-gradient(90deg,var(--chat-text-3),var(--chat-text-hi),var(--chat-text-3))}.\\[background-size\\:200\\%_100\\%\\]{background-size:200% 100%}.\\[background\\:color-mix\\(in_oklch\\,var\\(--chat-accent\\)_10\\%\\,transparent\\)\\]{background:color-mix(in oklch,var(--chat-accent) 10%,transparent)}.\\[background\\:transparent\\]{background:0 0}.\\[background\\:var\\(--chat-accent\\)\\]{background:var(--chat-accent)}.\\[background\\:var\\(--chat-bg\\)\\]{background:var(--chat-bg)}.\\[background\\:var\\(--chat-danger\\)\\]{background:var(--chat-danger)}.\\[background\\:var\\(--chat-fill-strong\\)\\],.data-\\[highlighted\\]\\:\\[background\\:var\\(--chat-fill-strong\\)\\][data-highlighted],.data-\\[state\\=open\\]\\:\\[background\\:var\\(--chat-fill-strong\\)\\][data-state=open]{background:var(--chat-fill-strong)}.\\[background\\:var\\(--chat-fill\\)\\]{background:var(--chat-fill)}.\\[background\\:var\\(--chat-line\\)\\]{background:var(--chat-line)}.\\[background\\:var\\(--chat-panel\\)\\]{background:var(--chat-panel)}.\\[background\\:var\\(--chat-success\\)\\]{background:var(--chat-success)}.\\[background\\:var\\(--chat-sunken\\)\\]{background:var(--chat-sunken)}.\\[background\\:var\\(--chat-text-3\\)\\]{background:var(--chat-text-3)}.\\[border-bottom\\:1px_solid_var\\(--chat-line-soft\\)\\]{border-bottom:1px solid var(--chat-line-soft)}.\\[border-color\\:var\\(--chat-accent\\)\\]{border-color:var(--chat-accent)}.\\[border-color\\:var\\(--chat-line\\)\\]{border-color:var(--chat-line)}.\\[border-color\\:var\\(--pw-line\\)\\]{border-color:var(--pw-line)}.\\[border-top-color\\:var\\(--chat-accent\\)\\]{border-top-color:var(--chat-accent)}.\\[border-top\\:1px_solid_var\\(--chat-line\\)\\]{border-top:1px solid var(--chat-line)}.\\[border\\:0\\]{border:0}.\\[border\\:1px_solid_color-mix\\(in_oklch\\,var\\(--chat-accent\\)_42\\%\\,transparent\\)\\]{border:1px solid color-mix(in oklch,var(--chat-accent) 42%,transparent)}.\\[border\\:1px_solid_transparent\\]{border:1px solid #0000}.\\[border\\:1px_solid_var\\(--chat-accent\\)\\]{border:1px solid var(--chat-accent)}.\\[border\\:1px_solid_var\\(--chat-line-soft\\)\\]{border:1px solid var(--chat-line-soft)}.\\[border\\:1px_solid_var\\(--chat-line\\)\\]{border:1px solid var(--chat-line)}.\\[border\\:1px_solid_var\\(--pw-line\\)\\]{border:1px solid var(--pw-line)}.\\[border\\:1px_solid\\]{border:1px solid}.\\[border\\:2px_solid_var\\(--chat-line\\)\\]{border:2px solid var(--chat-line)}.\\[border\\:none\\]{border:none}.\\[box-shadow\\:0_0_0_2px_var\\(--pw-panel\\)\\]{box-shadow:0 0 0 2px var(--pw-panel)}.\\[box-shadow\\:var\\(--chat-shadow-lg\\)\\]{box-shadow:var(--chat-shadow-lg)}.\\[color\\:var\\(--chat-accent-link\\)\\]{color:var(--chat-accent-link)}.\\[color\\:var\\(--chat-accent\\)\\]{color:var(--chat-accent)}.\\[color\\:var\\(--chat-danger\\)\\]{color:var(--chat-danger)}.\\[color\\:var\\(--chat-on-accent\\)\\]{color:var(--chat-on-accent)}.\\[color\\:var\\(--chat-text-2\\)\\]{color:var(--chat-text-2)}.\\[color\\:var\\(--chat-text-hi\\)\\],.data-\\[highlighted\\]\\:\\[color\\:var\\(--chat-text-hi\\)\\][data-highlighted]{color:var(--chat-text-hi)}.\\[color\\:var\\(--chat-text\\)\\]{color:var(--chat-text)}.\\[font-family\\:inherit\\]{font-family:inherit}.\\[font-family\\:var\\(--chat-font\\)\\]{font-family:var(--chat-font)}.\\[font-family\\:var\\(--chat-mono\\)\\]{font-family:var(--chat-mono)}.\\[font-variant-numeric\\:tabular-nums\\]{font-variant-numeric:tabular-nums}.\\[font\\:inherit\\]{font:inherit}.\\[height\\:calc\\(1lh_\\+_1rem\\)\\]{height:calc(1lh + 1rem)}.\\[height\\:var\\(--height\\)\\]{height:var(--height)}.\\[left\\:var\\(--left\\)\\]{left:var(--left)}.\\[margin\\:0\\]{margin:0}.\\[opacity\\:var\\(--opacity\\)\\]{opacity:var(--opacity)}.\\[outline-offset\\:-2px\\]{outline-offset:-2px}.\\[outline\\:2px_solid_var\\(--pw-accent\\)\\]{outline:2px solid var(--pw-accent)}.\\[overflow-wrap\\:anywhere\\]{overflow-wrap:anywhere}.\\[scale\\:var\\(--scale\\)\\]{scale:var(--scale)}.\\[scrollbar-width\\:none\\]{scrollbar-width:none}.\\[stroke-linecap\\:round\\]{stroke-linecap:round}.\\[transform-origin\\:bottom_left\\]{transform-origin:0 100%}.\\[transform-origin\\:bottom_right\\]{transform-origin:100% 100%}.\\[transform-origin\\:center\\]{transform-origin:50%}.\\[transform-origin\\:top_right\\]{transform-origin:100% 0}.\\[transform\\:none\\]{transform:none}.\\[transform\\:scale\\(0\\.96\\)_translateY\\(0\\.5rem\\)\\]{transform:scale(.96)translateY(.5rem)}.\\[transition\\:background_140ms_var\\(--chat-ease\\)\\,color_140ms_var\\(--chat-ease\\)\\]{transition:background .14s var(--chat-ease),color .14s var(--chat-ease)}.\\[transition\\:background_140ms_var\\(--chat-ease\\)\\]{transition:background .14s var(--chat-ease)}.\\[transition\\:background-color_120ms\\,transform_120ms\\]{transition:background-color .12s,transform .12s}.\\[transition\\:border-color_120ms\\]{transition:border-color .12s}.\\[transition\\:color_120ms_var\\(--pw-ease\\)\\,background-color_120ms_var\\(--pw-ease\\)\\]{transition:color .12s var(--pw-ease),background-color .12s var(--pw-ease)}.\\[transition\\:color_120ms\\,background-color_120ms\\]{transition:color .12s,background-color .12s}.\\[transition\\:color_120ms\\,border-color_120ms\\,background-color_120ms\\]{transition:color .12s,border-color .12s,background-color .12s}.\\[transition\\:color_120ms\\]{transition:color .12s}.\\[transition\\:opacity_150ms_ease\\,scale_150ms_ease\\]{transition:opacity .15s,scale .15s}.\\[transition\\:opacity_150ms\\]{transition:opacity .15s}.\\[transition\\:rotate_150ms_var\\(--chat-ease\\)\\]{transition:rotate .15s var(--chat-ease)}.\\[transition\\:rotate_160ms_var\\(--pw-ease\\)\\,opacity_120ms_var\\(--pw-ease\\)\\]{transition:rotate .16s var(--pw-ease),opacity .12s var(--pw-ease)}.\\[transition\\:rotate_200ms_var\\(--chat-ease\\)\\]{transition:rotate .2s var(--chat-ease)}.\\[translate\\:var\\(--x\\)_var\\(--y\\)\\]{translate:var(--x) var(--y)}.\\[width\\:var\\(--width\\)\\]{width:var(--width)}.\\[word-break\\:break-all\\]{word-break:break-all}.\\[word-break\\:break-word\\]{word-break:break-word}.\\[z-index\\:var\\(--z-index\\)\\]{z-index:var(--z-index)}.data-\\[highlighted\\]\\:\\[background\\:color-mix\\(in_oklch\\,var\\(--pw-danger\\)_15\\%\\,transparent\\)\\][data-highlighted]{background:color-mix(in oklch,var(--pw-danger) 15%,transparent)}.data-\\[state\\=checked\\]\\:\\[border-color\\:var\\(--pw-accent\\)\\][data-state=checked]{border-color:var(--pw-accent)}.data-\\[type\\=error\\]\\:\\[border-color\\:var\\(--pw-danger\\)\\][data-type=error]{border-color:var(--pw-danger)}.data-\\[type\\=success\\]\\:\\[border-color\\:var\\(--pw-success\\)\\][data-type=success]{border-color:var(--pw-success)}.focus-within\\:\\[border-color\\:var\\(--chat-accent\\)\\]:focus-within{border-color:var(--chat-accent)}.focus-within\\:\\[border-color\\:var\\(--pw-accent-line\\)\\]:focus-within{border-color:var(--pw-accent-line)}.focus-within\\:\\[outline-offset\\:0\\.125rem\\]:focus-within{outline-offset:.125rem}.focus-within\\:\\[outline\\:0\\.125rem_solid_var\\(--pw-accent\\)\\]:focus-within{outline:.125rem solid var(--pw-accent)}.hover\\:\\[background\\:var\\(--chat-accent-hi\\)\\]:hover{background:var(--chat-accent-hi)}.hover\\:\\[background\\:var\\(--chat-fill-strong\\)\\]:hover{background:var(--chat-fill-strong)}.hover\\:\\[color\\:var\\(--chat-danger\\)\\]:hover{color:var(--chat-danger)}.hover\\:\\[color\\:var\\(--chat-text-hi\\)\\]:hover{color:var(--chat-text-hi)}.hover\\:\\[color\\:var\\(--chat-text\\)\\]:hover{color:var(--chat-text)}.hover\\:\\[transform\\:translateY\\(-0\\.125rem\\)\\]:hover{transform:translateY(-.125rem)}.focus-visible\\:\\[outline-offset\\:-2px\\]:focus-visible{outline-offset:-2px}.focus-visible\\:\\[outline-offset\\:0\\.125rem\\]:focus-visible{outline-offset:.125rem}.focus-visible\\:\\[outline\\:0\\.125rem_solid_var\\(--chat-accent\\)\\]:focus-visible{outline:.125rem solid var(--chat-accent)}.focus-visible\\:\\[outline\\:var\\(--chat-focus\\)\\]:focus-visible{outline:var(--chat-focus)}.active\\:\\[transform\\:translateY\\(0\\)_scale\\(0\\.94\\)\\]:active{transform:translateY(0)scale(.94)}.placeholder\\:\\[color\\:var\\(--chat-text-3\\)\\]::placeholder{color:var(--chat-text-3)}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.self-stretch{align-self:stretch}.\\[\\&\\>\\*\\]\\:\\!inset-auto>*{inset:auto!important}.inset-0{inset:calc(var(--spacing) * 0)}.after\\:-inset-\\[0\\.1875rem\\]:after{inset:-.1875rem}.end-0\\.5{inset-inline-end:calc(var(--spacing) * .5)}.inset-x-0{inset-inline:calc(var(--spacing) * 0)}.before\\:inset-x-\\[0\\.1875rem\\]:before{inset-inline:.1875rem}.before\\:inset-x-0:before{inset-inline:calc(var(--spacing) * 0)}.before\\:inset-y-0:before{inset-block:calc(var(--spacing) * 0)}.after\\:inset-x-0:after{inset-inline:calc(var(--spacing) * 0)}.-right-1{right:calc(var(--spacing) * -1)}.-top-1{top:calc(var(--spacing) * -1)}.bottom-\\[0\\.3125rem\\]{bottom:.3125rem}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-1{bottom:calc(var(--spacing) * 1)}.bottom-21{bottom:calc(var(--spacing) * 21)}.bottom-4{bottom:calc(var(--spacing) * 4)}.bottom-5{bottom:calc(var(--spacing) * 5)}.bottom-6{bottom:calc(var(--spacing) * 6)}.left-0{left:calc(var(--spacing) * 0)}.left-1\\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-5{left:calc(var(--spacing) * 5)}.right-0{right:calc(var(--spacing) * 0)}.right-1\\.5{right:calc(var(--spacing) * 1.5)}.right-4{right:calc(var(--spacing) * 4)}.right-5{right:calc(var(--spacing) * 5)}.top-\\[calc\\(50\\%-1\\.625rem\\)\\]{top:calc(50% - 1.625rem)}.top-0{top:calc(var(--spacing) * 0)}.top-0\\.5{top:calc(var(--spacing) * .5)}.top-1\\.5{top:calc(var(--spacing) * 1.5)}.top-21{top:calc(var(--spacing) * 21)}.top-3{top:calc(var(--spacing) * 3)}.top-4{top:calc(var(--spacing) * 4)}.top-5{top:calc(var(--spacing) * 5)}.before\\:top-0:before{top:calc(var(--spacing) * 0)}.after\\:-bottom-px:after{bottom:-1px}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.before\\:absolute:before,.after\\:absolute:after{position:absolute}.\\[\\&\\>\\*\\]\\:\\!static>*{position:static!important}.static{position:static}.z-\\[2\\]{z-index:2}.z-\\[2147483646\\]{z-index:2147483646}.z-\\[2147483647\\]{z-index:2147483647}.z-\\[3\\]{z-index:3}.z-\\[5\\]{z-index:5}.z-10{z-index:10}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.stroke-pw-accent{stroke:color-mix(in srgb, var(--pw-accent) var(--unx-stroke-opacity), transparent)}.stroke-pw-line-2{stroke:color-mix(in srgb, var(--pw-line-2) var(--unx-stroke-opacity), transparent)}@keyframes pw-collapse-height{0%{height:var(--height);opacity:1}to{height:var(--collapsed-height,0);opacity:0}}@keyframes pw-expand-height{0%{height:var(--collapsed-height,0);opacity:0}to{height:var(--height);opacity:1}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes pw-dot{0%,60%,to{opacity:.4;transform:translateY(0)}30%{opacity:1;transform:translateY(-6px)}}@keyframes zoom-in{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes pw-fab-ring{0%{opacity:.7;transform:scale(1)}70%,to{opacity:0;transform:scale(1.5)}}@keyframes fade-in-up{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translate(0,0)}}@keyframes pw-presence-in{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}@keyframes pw-presence-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.96)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes pw-think-shimmer{to{background-position:-200% 0}}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.object-cover{object-fit:cover}.backdrop-blur-\\[20px\\]{--unx-backdrop-blur:blur(20px);-webkit-backdrop-filter:var(--unx-backdrop-blur,) var(--unx-backdrop-brightness,) var(--unx-backdrop-contrast,) var(--unx-backdrop-grayscale,) var(--unx-backdrop-hue-rotate,) var(--unx-backdrop-invert,) var(--unx-backdrop-opacity,) var(--unx-backdrop-saturate,) var(--unx-backdrop-sepia,);backdrop-filter:var(--unx-backdrop-blur,) var(--unx-backdrop-brightness,) var(--unx-backdrop-contrast,) var(--unx-backdrop-grayscale,) var(--unx-backdrop-hue-rotate,) var(--unx-backdrop-invert,) var(--unx-backdrop-opacity,) var(--unx-backdrop-saturate,) var(--unx-backdrop-sepia,)}.backdrop-saturate-\\[1\\.4\\]{--unx-backdrop-saturate:saturate(1.4);-webkit-backdrop-filter:var(--unx-backdrop-blur,) var(--unx-backdrop-brightness,) var(--unx-backdrop-contrast,) var(--unx-backdrop-grayscale,) var(--unx-backdrop-hue-rotate,) var(--unx-backdrop-invert,) var(--unx-backdrop-opacity,) var(--unx-backdrop-saturate,) var(--unx-backdrop-sepia,);backdrop-filter:var(--unx-backdrop-blur,) var(--unx-backdrop-brightness,) var(--unx-backdrop-contrast,) var(--unx-backdrop-grayscale,) var(--unx-backdrop-hue-rotate,) var(--unx-backdrop-invert,) var(--unx-backdrop-opacity,) var(--unx-backdrop-saturate,) var(--unx-backdrop-sepia,)}.filter{filter:var(--unx-blur,) var(--unx-brightness,) var(--unx-contrast,) var(--unx-grayscale,) var(--unx-hue-rotate,) var(--unx-invert,) var(--unx-saturate,) var(--unx-sepia,) var(--unx-drop-shadow,)}.table{display:table}.touch-none{touch-action:none}.tabular-nums{--unx-numeric-spacing:tabular-nums;font-variant-numeric:var(--unx-ordinal,) var(--unx-slashed-zero,) var(--unx-numeric-figure,) var(--unx-numeric-spacing,) var(--unx-numeric-fraction,)}.group-data-\\[empty\\]\\:text-pw-text-2:is(:where(.group)[data-empty] *){color:color-mix(in srgb, var(--pw-text-2) var(--unx-text-opacity), transparent)}.group-data-\\[state\\=closed\\]\\:-rotate-90:is(:where(.group)[data-state=closed] *){rotate:-90deg}.group-data-\\[state\\=open\\]\\:opacity-90:is(:where(.group)[data-state=open] *){opacity:.9}.group-data-\\[state\\=open\\]\\:rotate-0:is(:where(.group)[data-state=open] *){rotate:0deg}.group-data-\\[state\\=open\\]\\:rotate-180:is(:where(.group)[data-state=open] *){rotate:180deg}@media (prefers-reduced-motion:reduce){.motion-reduce\\:\\[animation\\:none\\],.motion-reduce\\:animate-none{animation:none}.motion-reduce\\:\\[color\\:var\\(--chat-text-3\\)\\]{color:var(--chat-text-3)}}@supports (color:color-mix(in lab, red, red)){.border-white{border-color:color-mix(in oklab, var(--colors-white) var(--unx-border-opacity), transparent)}}@media (width<=calc(40rem - .1px)){.max-sm\\:m-2{margin:calc(var(--spacing) * 2)}.max-sm\\:h-\\[65vh\\]{height:65vh}.max-sm\\:w-\\[calc\\(100vw-1rem\\)\\]{width:calc(100vw - 1rem)}.max-sm\\:w-auto{width:auto}.max-sm\\:left-0{left:calc(var(--spacing) * 0)}.max-sm\\:top-auto{top:auto}}`,f=/@property\s+--[\w-]+\s*\{[^}]*\}/g;function p(e=document){if(e.querySelector(`style[data-conciv-properties]`))return;let t=d.match(f);if(!t)return;let n=e.createElement(`style`);n.setAttribute(`data-conciv-properties`,``),n.textContent=t.join(``),e.head.appendChild(n)}function m(){p();let e=document.createElement(`div`);e.setAttribute(`data-conciv-root`,``),e.style.position=`fixed`,e.style.inset=`0`,e.style.pointerEvents=`none`,e.style.zIndex=`2147483000`,document.body.appendChild(e);let t=e.attachShadow({mode:`open`}),n=document.createElement(`style`);return n.textContent=d,t.appendChild(n),{host:e,root:t}}var h={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return g(this.context.count)},getNextContextId(){return g(this.context.count++)}};function g(e){let t=String(e),n=t.length-1;return h.context.id+(n?String.fromCharCode(96+n):``)+t}function _(e){h.context=e}function v(){return{...h.context,id:h.getNextContextId(),count:0}}var y=(e,t)=>e===t,b=Symbol(`solid-proxy`),x=typeof Proxy==`function`,S=Symbol(`solid-track`),C={equals:y},w=null,T=ze,E=1,ee=2,te={owned:null,cleanups:null,context:null,owner:null},ne={},re=null,D=null,ie=null,ae=null,oe=null,se=null,ce=null,le=0;function ue(e,t){let n=oe,r=re,i=e.length===0,a=t===void 0?r:t,o=i?te:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>_e(()=>We(o)));re=o,oe=null;try{return Le(s,!0)}finally{oe=n,re=r}}function O(e,t){t=t?Object.assign({},C,t):C;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0};return[je.bind(n),e=>(typeof e==`function`&&(e=D&&D.running&&D.sources.has(n)?e(n.tValue):e(n.value)),Me(n,e))]}function de(e,t,n){let r=Fe(e,t,!0,E);ie&&D&&D.running?se.push(r):Ne(r)}function fe(e,t,n){let r=Fe(e,t,!1,E);ie&&D&&D.running?se.push(r):Ne(r)}function pe(e,t,n){T=Ve;let r=Fe(e,t,!1,E),i=Ae&&Oe(Ae);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),ce?ce.push(r):Ne(r)}function k(e,t,n){n=n?Object.assign({},C,n):C;let r=Fe(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,ie&&D&&D.running?(r.tState=E,se.push(r)):Ne(r),je.bind(r)}function me(e){return e&&typeof e==`object`&&`then`in e}function he(e,t,n){let r,i,a;typeof t==`function`?(r=e,i=t,a=n||{}):(r=!0,i=e,a=t||{});let o=null,s=ne,c=null,l=!1,u=!1,d=`initialValue`in a,f=typeof r==`function`&&k(r),p=new Set,[m,g]=(a.storage||O)(a.initialValue),[_,v]=O(void 0),[y,b]=O(void 0,{equals:!1}),[x,S]=O(d?`ready`:`unresolved`);h.context&&(c=h.getNextContextId(),a.ssrLoadFrom===`initial`?s=a.initialValue:h.load&&h.has(c)&&(s=h.load(c)));function C(e,t,n,r){return o===e&&(o=null,r!==void 0&&(d=!0),(e===s||t===s)&&a.onHydrated&&queueMicrotask(()=>a.onHydrated(r,{value:t})),s=ne,D&&e&&l?(D.promises.delete(e),l=!1,Le(()=>{D.running=!0,w(t,n)},!1)):w(t,n)),t}function w(e,t){Le(()=>{t===void 0&&g(()=>e),S(t===void 0?d?`ready`:`unresolved`:`errored`),v(t);for(let e of p.keys())e.decrement();p.clear()},!1)}function T(){let e=Ae&&Oe(Ae),t=m(),n=_();if(n!==void 0&&!o)throw n;return oe&&!oe.user&&e&&de(()=>{y(),o&&(e.resolved&&D&&l?D.promises.add(o):p.has(e)||(e.increment(),p.add(e)))}),t}function E(e=!0){if(e!==!1&&u)return;u=!1;let t=f?f():r;if(l=D&&D.running,t==null||t===!1){C(o,_e(m));return}D&&o&&D.promises.delete(o);let n,a=s===ne?_e(()=>{try{return i(t,{value:m(),refetching:e})}catch(e){n=e}}):s;if(n!==void 0){C(o,void 0,Ke(n),t);return}else if(!me(a))return C(o,a,void 0,t),a;return o=a,`v`in a?(a.s===1?C(o,a.v,void 0,t):C(o,void 0,Ke(a.v),t),a):(u=!0,queueMicrotask(()=>u=!1),Le(()=>{S(d?`refreshing`:`pending`),b()},!1),a.then(e=>C(a,e,void 0,t),e=>C(a,void 0,Ke(e),t)))}Object.defineProperties(T,{state:{get:()=>x()},error:{get:()=>_()},loading:{get(){let e=x();return e===`pending`||e===`refreshing`}},latest:{get(){if(!d)return T();let e=_();if(e&&!o)throw e;return m()}}});let ee=re;return f?de(()=>(ee=re,E(!1))):E(!1),[T,{refetch:e=>Ce(ee,()=>E(e)),mutate:g}]}function ge(e){return Le(e,!1)}function _e(e){if(!ae&&oe===null)return e();let t=oe;oe=null;try{return ae?ae.untrack(e):e()}finally{oe=t}}function ve(e){pe(()=>_e(e))}function ye(e){return re===null||(re.cleanups===null?re.cleanups=[e]:re.cleanups.push(e)),e}function be(e,t){w||=Symbol(`error`),re=Fe(void 0,void 0,!0),re.context={...re.context,[w]:[t]},D&&D.running&&D.sources.add(re);try{return e()}catch(e){Je(e)}finally{re=re.owner}}function xe(){return oe}function Se(){return re}function Ce(e,t){let n=re,r=oe;re=e,oe=null;try{return Le(t,!0)}catch(e){Je(e)}finally{re=n,oe=r}}function we(e){if(D&&D.running)return e(),D.done;let t=oe,n=re;return Promise.resolve().then(()=>{oe=t,re=n;let r;return(ie||Ae)&&(r=D||={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0},r.done||=new Promise(e=>r.resolve=e),r.running=!0),Le(e,!1),oe=re=null,r?r.done:void 0})}var[Te,Ee]=O(!1);function De(e,t){let n=Symbol(`context`);return{id:n,Provider:Xe(n),defaultValue:e}}function Oe(e){let t;return re&&re.context&&(t=re.context[e.id])!==void 0?t:e.defaultValue}function ke(e){let t=k(e),n=k(()=>Ye(t()));return n.toArray=()=>{let e=n();return Array.isArray(e)?e:e==null?[]:[e]},n}var Ae;function je(){let e=D&&D.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===E)Ne(this);else{let e=se;se=null,Le(()=>He(this),!1),se=e}if(oe){let e=this.observers;if(!e||e[e.length-1]!==oe){let t=e?e.length:0;oe.sources?(oe.sources.push(this),oe.sourceSlots.push(t)):(oe.sources=[this],oe.sourceSlots=[t]),e?(e.push(oe),this.observerSlots.push(oe.sources.length-1)):(this.observers=[oe],this.observerSlots=[oe.sources.length-1])}}return e&&D.sources.has(this)?this.tValue:this.value}function Me(e,t,n){let r=D&&D.running&&D.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(D){let r=D.running;(r||!n&&D.sources.has(e))&&(D.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&Le(()=>{for(let t=0;t<e.observers.length;t+=1){let n=e.observers[t],r=D&&D.running;r&&D.disposed.has(n)||((r?!n.tState:!n.state)&&(n.pure?se.push(n):ce.push(n),n.observers&&Ue(n)),r?n.tState=E:n.state=E)}if(se.length>1e6)throw se=[],Error()},!1)}return t}function Ne(e){if(!e.fn)return;We(e);let t=le;Pe(e,D&&D.running&&D.sources.has(e)?e.tValue:e.value,t),D&&!D.running&&D.sources.has(e)&&queueMicrotask(()=>{Le(()=>{D&&(D.running=!0),oe=re=e,Pe(e,e.tValue,t),oe=re=null},!1)})}function Pe(e,t,n){let r,i=re,a=oe;oe=re=e;try{r=e.fn(t)}catch(t){return e.pure&&(D&&D.running?(e.tState=E,e.tOwned&&e.tOwned.forEach(We),e.tOwned=void 0):(e.state=E,e.owned&&e.owned.forEach(We),e.owned=null)),e.updatedAt=n+1,Je(t)}finally{oe=a,re=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&`observers`in e?Me(e,r,!0):D&&D.running&&e.pure?(D.sources.has(e)||(e.value=r),D.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function Fe(e,t,n,r=E,i){let a={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:re,context:re?re.context:null,pure:n};if(D&&D.running&&(a.state=0,a.tState=r),re===null||re!==te&&(D&&D.running&&re.pure?re.tOwned?re.tOwned.push(a):re.tOwned=[a]:re.owned?re.owned.push(a):re.owned=[a]),ae&&a.fn){let e=a.fn,[t,n]=O(void 0,{equals:!1}),r=ae.factory(e,n);ye(()=>r.dispose());let i,o=()=>we(n).then(()=>{i&&=(i.dispose(),void 0)});a.fn=n=>(t(),D&&D.running?(i||=ae.factory(e,o),i.track(n)):r.track(n))}return a}function Ie(e){let t=D&&D.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===ee)return He(e);if(e.suspense&&_e(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<le);){if(t&&D.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e)}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let t=e,i=n[r+1];for(;(t=t.owner)&&t!==i;)if(D.disposed.has(t))return}if((t?e.tState:e.state)===E)Ne(e);else if((t?e.tState:e.state)===ee){let t=se;se=null,Le(()=>He(e,n[0]),!1),se=t}}}function Le(e,t){if(se)return e();let n=!1;t||(se=[]),ce?n=!0:ce=[],le++;try{let t=e();return Re(n),t}catch(e){n||(ce=null),se=null,Je(e)}}function Re(e){if(se&&=(ie&&D&&D.running?Be(se):ze(se),null),e)return;let t;if(D){if(!D.promises.size&&!D.queue.size){let e=D.sources,n=D.disposed;ce.push.apply(ce,D.effects),t=D.resolve;for(let e of ce)`tState`in e&&(e.state=e.tState),delete e.tState;D=null,Le(()=>{for(let e of n)We(e);for(let t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;e<n;e++)We(t.owned[e]);t.tOwned&&(t.owned=t.tOwned),delete t.tValue,delete t.tOwned,t.tState=0}Ee(!1)},!1)}else if(D.running){D.running=!1,D.effects.push.apply(D.effects,ce),ce=null,Ee(!0);return}}let n=ce;ce=null,n.length&&Le(()=>T(n),!1),t&&t()}function ze(e){for(let t=0;t<e.length;t++)Ie(e[t])}function Be(e){for(let t=0;t<e.length;t++){let n=e[t],r=D.queue;r.has(n)||(r.add(n),ie(()=>{r.delete(n),Le(()=>{D.running=!0,Ie(n)},!1),D&&(D.running=!1)}))}}function Ve(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:Ie(r)}if(h.context){if(h.count){h.effects||=[],h.effects.push(...e.slice(0,n));return}_()}for(h.effects&&(h.done||!h.count)&&(e=[...h.effects,...e],n+=h.effects.length,delete h.effects),t=0;t<n;t++)Ie(e[t])}function He(e,t){let n=D&&D.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){let i=e.sources[r];if(i.sources){let e=n?i.tState:i.state;e===E?i!==t&&(!i.updatedAt||i.updatedAt<le)&&Ie(i):e===ee&&He(i,t)}}}function Ue(e){let t=D&&D.running;for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=ee:r.state=ee,r.pure?se.push(r):ce.push(r),r.observers&&Ue(r))}}function We(e){let t;if(e.sources)for(;e.sources.length;){let t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){let e=r.pop(),i=t.observerSlots.pop();n<r.length&&(e.sourceSlots[i]=n,r[n]=e,t.observerSlots[n]=i)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)We(e.tOwned[t]);delete e.tOwned}if(D&&D.running&&e.pure)Ge(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)We(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}D&&D.running?e.tState=0:e.state=0}function Ge(e,t){if(t||(e.tState=0,D.disposed.add(e)),e.owned)for(let t=0;t<e.owned.length;t++)Ge(e.owned[t])}function Ke(e){return e instanceof Error?e:Error(typeof e==`string`?e:`Unknown error`,{cause:e})}function qe(e,t,n){try{for(let n of t)n(e)}catch(e){Je(e,n&&n.owner||null)}}function Je(e,t=re){let n=w&&t&&t.context&&t.context[w],r=Ke(e);if(!n)throw r;ce?ce.push({fn(){qe(r,n,t)},state:E}):qe(r,n,t)}function Ye(e){if(typeof e==`function`&&!e.length)return Ye(e());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=Ye(e[n]);if(Array.isArray(r))if(r.length<32768)t.push.apply(t,r);else for(let e=0;e<r.length;e++)t.push(r[e]);else t.push(r)}return t}return e}function Xe(e,t){return function(t){let n;return fe(()=>n=_e(()=>(re.context={...re.context,[e]:t.value},ke(()=>t.children))),void 0),n}}var Ze=Symbol(`fallback`);function Qe(e){for(let t=0;t<e.length;t++)e[t]()}function $e(e,t,n={}){let r=[],i=[],a=[],o=0,s=t.length>1?[]:null;return ye(()=>Qe(a)),()=>{let c=e()||[],l=c.length,u,d;return c[S],_e(()=>{let e,t,p,m,h,g,_,v,y;if(l===0)o!==0&&(Qe(a),a=[],r=[],i=[],o=0,s&&=[]),n.fallback&&(r=[Ze],i[0]=ue(e=>(a[0]=e,n.fallback())),o=1);else if(o===0){for(i=Array(l),d=0;d<l;d++)r[d]=c[d],i[d]=ue(f);o=l}else{for(p=Array(l),m=Array(l),s&&(h=Array(l)),g=0,_=Math.min(o,l);g<_&&r[g]===c[g];g++);for(_=o-1,v=l-1;_>=g&&v>=g&&r[_]===c[v];_--,v--)p[v]=i[_],m[v]=a[_],s&&(h[v]=s[_]);for(e=new Map,t=Array(v+1),d=v;d>=g;d--)y=c[d],u=e.get(y),t[d]=u===void 0?-1:u,e.set(y,d);for(u=g;u<=_;u++)y=r[u],d=e.get(y),d!==void 0&&d!==-1?(p[d]=i[u],m[d]=a[u],s&&(h[d]=s[u]),d=t[d],e.set(y,d)):a[u]();for(d=g;d<l;d++)d in p?(i[d]=p[d],a[d]=m[d],s&&(s[d]=h[d],s[d](d))):i[d]=ue(f);i=i.slice(0,o=l),r=c.slice(0)}return i});function f(e){if(a[d]=e,s){let[e,n]=O(d);return s[d]=n,t(c[d],e)}return t(c[d])}}}function et(e,t,n={}){let r=[],i=[],a=[],o=[],s=0,c;return ye(()=>Qe(a)),()=>{let l=e()||[],u=l.length;return l[S],_e(()=>{if(u===0)return s!==0&&(Qe(a),a=[],r=[],i=[],s=0,o=[]),n.fallback&&(r=[Ze],i[0]=ue(e=>(a[0]=e,n.fallback())),s=1),i;for(r[0]===Ze&&(a[0](),a=[],r=[],i=[],s=0),c=0;c<u;c++)c<r.length&&r[c]!==l[c]?o[c](()=>l[c]):c>=r.length&&(i[c]=ue(d));for(;c<r.length;c++)a[c]();return s=o.length=a.length=u,r=l.slice(0),i=i.slice(0,s)});function d(e){a[c]=e;let[n,r]=O(l[c]);return o[c]=r,t(n,c)}}}var tt=!1;function A(e,t){if(tt&&h.context){let n=h.context;_(v());let r=_e(()=>e(t||{}));return _(n),r}return _e(()=>e(t||{}))}function nt(){return!0}var rt={get(e,t,n){return t===b?n:e.get(t)},has(e,t){return t===b?!0:e.has(t)},set:nt,deleteProperty:nt,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:nt,deleteProperty:nt}},ownKeys(e){return e.keys()}};function it(e){return(e=typeof e==`function`?e():e)?e:{}}function at(){for(let e=0,t=this.length;e<t;++e){let t=this[e]();if(t!==void 0)return t}}function j(...e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];t||=!!r&&b in r,e[n]=typeof r==`function`?(t=!0,k(r)):r}if(x&&t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){let r=it(e[n])[t];if(r!==void 0)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in it(e[n]))return!0;return!1},keys(){let t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(it(e[n])));return[...new Set(t)]}},rt);let n={},r=Object.create(null);for(let t=e.length-1;t>=0;t--){let i=e[t];if(!i)continue;let a=Object.getOwnPropertyNames(i);for(let e=a.length-1;e>=0;e--){let t=a[e];if(t===`__proto__`||t===`constructor`)continue;let o=Object.getOwnPropertyDescriptor(i,t);if(!r[t])r[t]=o.get?{enumerable:!0,configurable:!0,get:at.bind(n[t]=[o.get.bind(i)])}:o.value===void 0?void 0:o;else{let e=n[t];e&&(o.get?e.push(o.get.bind(i)):o.value!==void 0&&e.push(()=>o.value))}}}let i={},a=Object.keys(r);for(let e=a.length-1;e>=0;e--){let t=a[e],n=r[t];n&&n.get?Object.defineProperty(i,t,n):i[t]=n?n.value:void 0}return i}function ot(e,...t){let n=t.length;if(x&&b in e){let r=n>1?t.flat():t[0],i=t.map(t=>new Proxy({get(n){return t.includes(n)?e[n]:void 0},has(n){return t.includes(n)&&n in e},keys(){return t.filter(t=>t in e)}},rt));return i.push(new Proxy({get(t){return r.includes(t)?void 0:e[t]},has(t){return r.includes(t)?!1:t in e},keys(){return Object.keys(e).filter(e=>!r.includes(e))}},rt)),i}let r=[];for(let e=0;e<=n;e++)r[e]={};for(let i of Object.getOwnPropertyNames(e)){let a=n;for(let e=0;e<t.length;e++)if(t[e].includes(i)){a=e;break}let o=Object.getOwnPropertyDescriptor(e,i);!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable?r[a][i]=o.value:Object.defineProperty(r[a],i,o)}return r}var st=0;function ct(){return h.context?h.getNextContextId():`cl-${st++}`}var lt=e=>`Stale read from <${e}>.`;function ut(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return k($e(()=>e.each,e.children,t||void 0))}function dt(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return k(et(()=>e.each,e.children,t||void 0))}function M(e){let t=e.keyed,n=k(()=>e.when,void 0,void 0),r=t?n:k(n,void 0,{equals:(e,t)=>!e==!t});return k(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?_e(()=>a(t?i:()=>{if(!_e(r))throw lt(`Show`);return n()})):a}return e.fallback},void 0,void 0)}function ft(e){let t=ke(()=>e.children),n=k(()=>{let e=t(),n=Array.isArray(e)?e:[e],r=()=>void 0;for(let e=0;e<n.length;e++){let t=e,i=n[e],a=r,o=k(()=>a()?void 0:i.when,void 0,void 0),s=i.keyed?o:k(o,void 0,{equals:(e,t)=>!e==!t});r=()=>a()||(s()?[t,o,i]:void 0)}return r});return k(()=>{let t=n()();if(!t)return e.fallback;let[r,i,a]=t,o=a.children;return typeof o==`function`&&o.length>0?_e(()=>o(a.keyed?i():()=>{if(_e(n)()?.[0]!==r)throw lt(`Match`);return i()})):o},void 0,void 0)}function pt(e){return e}var mt;function ht(e){let t;h.context&&h.load&&(t=h.load(h.getContextId()));let[n,r]=O(t,void 0);return mt||=new Set,mt.add(r),ye(()=>mt.delete(r)),k(()=>{let t;if(t=n()){let n=e.fallback;return typeof n==`function`&&n.length?_e(()=>n(t,()=>r())):n}return be(()=>e.children,r)},void 0,void 0)}var gt=new Set([`className`,`value`,`readOnly`,`noValidate`,`formNoValidate`,`isMap`,`noModule`,`playsInline`,`adAuctionHeaders`,`allowFullscreen`,`browsingTopics`,`defaultChecked`,`defaultMuted`,`defaultSelected`,`disablePictureInPicture`,`disableRemotePlayback`,`preservesPitch`,`shadowRootClonable`,`shadowRootCustomElementRegistry`,`shadowRootDelegatesFocus`,`shadowRootSerializable`,`sharedStorageWritable`,...`allowfullscreen.async.alpha.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.hidden.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.adauctionheaders.browsingtopics.credentialless.defaultchecked.defaultmuted.defaultselected.defer.disablepictureinpicture.disableremoteplayback.preservespitch.shadowrootclonable.shadowrootcustomelementregistry.shadowrootdelegatesfocus.shadowrootserializable.sharedstoragewritable`.split(`.`)]),_t=new Set([`innerHTML`,`textContent`,`innerText`,`children`]),vt=Object.assign(Object.create(null),{className:`class`,htmlFor:`for`}),eee=Object.assign(Object.create(null),{class:`className`,novalidate:{$:`noValidate`,FORM:1},formnovalidate:{$:`formNoValidate`,BUTTON:1,INPUT:1},ismap:{$:`isMap`,IMG:1},nomodule:{$:`noModule`,SCRIPT:1},playsinline:{$:`playsInline`,VIDEO:1},readonly:{$:`readOnly`,INPUT:1,TEXTAREA:1},adauctionheaders:{$:`adAuctionHeaders`,IFRAME:1},allowfullscreen:{$:`allowFullscreen`,IFRAME:1},browsingtopics:{$:`browsingTopics`,IMG:1},defaultchecked:{$:`defaultChecked`,INPUT:1},defaultmuted:{$:`defaultMuted`,AUDIO:1,VIDEO:1},defaultselected:{$:`defaultSelected`,OPTION:1},disablepictureinpicture:{$:`disablePictureInPicture`,VIDEO:1},disableremoteplayback:{$:`disableRemotePlayback`,AUDIO:1,VIDEO:1},preservespitch:{$:`preservesPitch`,AUDIO:1,VIDEO:1},shadowrootclonable:{$:`shadowRootClonable`,TEMPLATE:1},shadowrootdelegatesfocus:{$:`shadowRootDelegatesFocus`,TEMPLATE:1},shadowrootserializable:{$:`shadowRootSerializable`,TEMPLATE:1},sharedstoragewritable:{$:`sharedStorageWritable`,IFRAME:1,IMG:1}});function yt(e,t){let n=eee[e];return typeof n==`object`?n[t]?n.$:void 0:n}var bt=new Set([`beforeinput`,`click`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`]),tee=new Set(`altGlyph.altGlyphDef.altGlyphItem.animate.animateColor.animateMotion.animateTransform.circle.clipPath.color-profile.cursor.defs.desc.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.font.font-face.font-face-format.font-face-name.font-face-src.font-face-uri.foreignObject.g.glyph.glyphRef.hkern.image.line.linearGradient.marker.mask.metadata.missing-glyph.mpath.path.pattern.polygon.polyline.radialGradient.rect.set.stop.svg.switch.symbol.text.textPath.tref.tspan.use.view.vkern`.split(`.`)),xt={xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`},St=e=>k(()=>e());function Ct(e,t,n){let r=n.length,i=t.length,a=r,o=0,s=0,c=t[i-1].nextSibling,l=null;for(;o<i||s<a;){if(t[o]===n[s]){o++,s++;continue}for(;t[i-1]===n[a-1];)i--,a--;if(i===o){let t=a<r?s?n[s-1].nextSibling:n[a-s]:c;for(;s<a;)e.insertBefore(n[s++],t)}else if(a===s)for(;o<i;)(!l||!l.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[a-1]&&n[s]===t[i-1]){let r=t[--i].nextSibling;e.insertBefore(n[s++],t[o++].nextSibling),e.insertBefore(n[--a],r),t[i]=n[a]}else{if(!l){l=new Map;let e=s;for(;e<a;)l.set(n[e],e++)}let r=l.get(t[o]);if(r!=null)if(s<r&&r<a){let c=o,u=1,d;for(;++c<i&&c<a&&!((d=l.get(t[c]))==null||d!==r+u);)u++;if(u>r-s){let i=t[o];for(;s<r;)e.insertBefore(n[s++],i)}else e.replaceChild(n[s++],t[o++])}else o++;else t[o++].remove()}}}var wt=`_$DX_DELEGATE`;function Tt(e,t,n,r={}){let i;return ue(r=>{i=r,t===document?e():P(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=``}}function N(e,t,n,r){let i,a=()=>{let t=r?document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`template`):document.createElement(`template`);return t.innerHTML=e,n?t.content.firstChild.firstChild:r?t.firstChild:t.content.firstChild},o=t?()=>_e(()=>document.importNode(i||=a(),!0)):()=>(i||=a()).cloneNode(!0);return o.cloneNode=o,o}function Et(e,t=window.document){let n=t[wt]||(t[wt]=new Set);for(let r=0,i=e.length;r<i;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,Ut))}}function Dt(e,t,n){zt(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function Ot(e,t,n,r){zt(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function kt(e,t,n){zt(e)||(n?e.setAttribute(t,``):e.removeAttribute(t))}function At(e,t){zt(e)||(t==null?e.removeAttribute(`class`):e.className=t)}function jt(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){let r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n,typeof n!=`function`&&n)}function Mt(e,t,n={}){let r=Object.keys(t||{}),i=Object.keys(n),a,o;for(a=0,o=i.length;a<o;a++){let r=i[a];!r||r===`undefined`||t[r]||(Vt(e,r,!1),delete n[r])}for(a=0,o=r.length;a<o;a++){let i=r[a],o=!!t[i];!i||i===`undefined`||n[i]===o||!o||(Vt(e,i,!0),n[i]=o)}return n}function Nt(e,t,n){if(!t)return n?Dt(e,`style`):t;let r=e.style;if(typeof t==`string`)return r.cssText=t;typeof n==`string`&&(r.cssText=n=void 0),n||={},t||={};let i,a;for(a in n)t[a]??r.removeProperty(a),delete n[a];for(a in t)i=t[a],i!==n[a]&&(r.setProperty(a,i),n[a]=i);return n}function Pt(e,t,n){n==null?e.style.removeProperty(t):e.style.setProperty(t,n)}function Ft(e,t={},n,r){let i={};return r||fe(()=>i.children=Wt(e,t.children,i.children)),fe(()=>typeof t.ref==`function`&&It(t.ref,e)),fe(()=>Lt(e,t,n,!0,i,!0)),i}function It(e,t,n){return _e(()=>e(t,n))}function P(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return Wt(e,t,r,n);fe(r=>Wt(e,t(),r,n),r)}function Lt(e,t,n,r,i={},a=!1){t||={};for(let r in i)if(!(r in t)){if(r===`children`)continue;i[r]=Ht(e,r,null,i[r],n,a,t)}for(let o in t){if(o===`children`){r||Wt(e,t.children);continue}let s=t[o];i[o]=Ht(e,o,s,i[o],n,a,t)}}function Rt(e){let t,n;return!zt()||!(t=h.registry.get(n=Jt()))?e():(h.completed&&h.completed.add(t),h.registry.delete(n),t)}function zt(e){return!!h.context&&!h.done&&(!e||e.isConnected)}function Bt(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function Vt(e,t,n){let r=t.trim().split(/\s+/);for(let t=0,i=r.length;t<i;t++)e.classList.toggle(r[t],n)}function Ht(e,t,n,r,i,a,o){let s,c,l,u,d;if(t===`style`)return Nt(e,n,r);if(t===`classList`)return Mt(e,n,r);if(n===r)return r;if(t===`ref`)a||n(e);else if(t.slice(0,3)===`on:`){let i=t.slice(3);r&&e.removeEventListener(i,r,typeof r!=`function`&&r),n&&e.addEventListener(i,n,typeof n!=`function`&&n)}else if(t.slice(0,10)===`oncapture:`){let i=t.slice(10);r&&e.removeEventListener(i,r,!0),n&&e.addEventListener(i,n,!0)}else if(t.slice(0,2)===`on`){let i=t.slice(2).toLowerCase(),a=bt.has(i);if(!a&&r){let t=Array.isArray(r)?r[0]:r;e.removeEventListener(i,t)}(a||n)&&(jt(e,i,n,a),a&&Et([i]))}else if(t.slice(0,5)===`attr:`)Dt(e,t.slice(5),n);else if(t.slice(0,5)===`bool:`)kt(e,t.slice(5),n);else if((d=t.slice(0,5)===`prop:`)||(l=_t.has(t))||!i&&((u=yt(t,e.tagName))||(c=gt.has(t)))||(s=e.nodeName.includes(`-`)||`is`in o)){if(d)t=t.slice(5),c=!0;else if(zt(e))return n;t===`class`||t===`className`?At(e,n):s&&!c&&!l?e[Bt(t)]=n:e[u||t]=n}else{let r=i&&t.indexOf(`:`)>-1&&xt[t.split(`:`)[0]];r?Ot(e,r,t,n):Dt(e,vt[t]||t,n)}return n}function Ut(e){if(h.registry&&h.events&&h.events.find(([t,n])=>n===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,a=t=>Object.defineProperty(e,"target",{configurable:!0,value:t}),o=()=>{let r=t[n];if(r&&!t.disabled){let i=t[`${n}Data`];if(i===void 0?r.call(t,e):r.call(t,i,e),e.cancelBubble)return}return t.host&&typeof t.host!=`string`&&!t.host._$host&&t.contains(e.target)&&a(t.host),!0},s=()=>{for(;o()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),h.registry&&!h.done&&(h.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();a(n[0]);for(let e=0;e<n.length-2&&(t=n[e],o());e++){if(t._$host){t=t._$host,s();break}if(t.parentNode===i)break}}else s();a(r)}function Wt(e,t,n,r,i){let a=zt(e);if(a){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){let r=n[e];r.nodeType===8&&r.data.slice(0,2)===`!$`?r.remove():t.push(r)}n=t}for(;typeof n==`function`;)n=n();if(t===n)return n;let o=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,o===`string`||o===`number`){if(a||o===`number`&&(t=t.toString(),t===n))return n;if(s){let i=n[0];i&&i.nodeType===3?i.data!==t&&(i.data=t):i=document.createTextNode(t),n=qt(e,n,r,i)}else n=n!==``&&typeof n==`string`?e.firstChild.data=t:e.textContent=t}else if(t==null||o===`boolean`){if(a)return n;n=qt(e,n,r)}else if(o===`function`)return fe(()=>{let i=t();for(;typeof i==`function`;)i=i();n=Wt(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(Gt(o,t,n,i))return fe(()=>n=Wt(e,o,n,r,!0)),()=>n;if(a){if(!o.length)return n;if(r===void 0)return n=[...e.childNodes];let t=o[0];if(t.parentNode!==e)return n;let i=[t];for(;(t=t.nextSibling)!==r;)i.push(t);return n=i}if(o.length===0){if(n=qt(e,n,r),s)return n}else c?n.length===0?Kt(e,o,r):Ct(e,n,o):(n&&qt(e),Kt(e,o));n=o}else if(t.nodeType){if(a&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=qt(e,n,r,t);qt(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function Gt(e,t,n,r){let i=!1;for(let a=0,o=t.length;a<o;a++){let o=t[a],s=n&&n[e.length],c;if(!(o==null||o===!0||o===!1))if((c=typeof o)==`object`&&o.nodeType)e.push(o);else if(Array.isArray(o))i=Gt(e,o,s)||i;else if(c===`function`)if(r){for(;typeof o==`function`;)o=o();i=Gt(e,Array.isArray(o)?o:[o],Array.isArray(s)?s:[s])||i}else e.push(o),i=!0;else{let t=String(o);s&&s.nodeType===3&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return i}function Kt(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function qt(e,t,n,r){if(n===void 0)return e.textContent=``;let i=r||document.createTextNode(``);if(t.length){let r=!1;for(let a=t.length-1;a>=0;a--){let o=t[a];if(i!==o){let t=o.parentNode===e;!r&&!a?t?e.replaceChild(i,o):e.insertBefore(i,n):t&&o.remove()}else r=!0}}else e.insertBefore(i,n);return[i]}function Jt(){return h.getNextContextId()}var Yt=`http://www.w3.org/2000/svg`;function Xt(e,t=!1,n=void 0){return t?document.createElementNS(Yt,e):document.createElement(e,{is:n})}function Zt(e,t){let n=k(e);return k(()=>{let e=n();switch(typeof e){case`function`:return _e(()=>e(t));case`string`:let n=tee.has(e),r=h.context?Rt():Xt(e,n,_e(()=>t.is));return Ft(r,t,n),r}})}function Qt(e){let[,t]=ot(e,[`component`]);return Zt(()=>e.component,t)}var $t=()=>(e,t)=>ot(e,t),en=Object.defineProperty,tn=e=>{throw TypeError(e)},nn=(e,t,n)=>t in e?en(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rn=(e,t,n)=>nn(e,typeof t==`symbol`?t:t+``,n),an=(e,t,n)=>t.has(e)||tn(`Cannot `+n),on=(e,t,n)=>(an(e,t,`read from private field`),n?n.call(e):t.get(e)),sn=(e,t,n)=>t.has(e)?tn(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n);function nee(e){return e==null?[]:Array.isArray(e)?e:[e]}var cn=e=>e[0],ln=e=>e[e.length-1],un=(e,t)=>e.indexOf(t)!==-1,dn=(e,...t)=>e.concat(t),fn=(e,...t)=>e.filter(e=>!t.includes(e)),pn=(e,t)=>un(e,t)?fn(e,t):dn(e,t);function mn(e,t,n={}){let{step:r=1,loop:i=!0}=n,a=t+r,o=e.length,s=o-1;return t===-1?r>0?0:s:a<0?i?s:0:a>=o?i?0:t>o?o:t:a}function hn(e,t,n={}){return e[mn(e,t,n)]}function gn(e,t,n={}){let{step:r=1,loop:i=!0}=n;return mn(e,t,{step:-r,loop:i})}function _n(e,t,n={}){return e[gn(e,t,n)]}var vn=e=>e?.constructor.name===`Array`,yn=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!bn(e[n],t[n]))return!1;return!0},bn=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof e?.isEqual==`function`&&typeof t?.isEqual==`function`)return e.isEqual(t);if(typeof e==`function`&&typeof t==`function`)return e.toString()===t.toString();if(vn(e)&&vn(t))return yn(Array.from(e),Array.from(t));if(typeof e!=`object`||typeof t!=`object`)return!1;let n=Object.keys(t??Object.create(null)),r=n.length;for(let t=0;t<r;t++)if(!Reflect.has(e,n[t]))return!1;for(let i=0;i<r;i++){let r=n[i];if(!bn(e[r],t[r]))return!1}return!0},xn=e=>Array.isArray(e),Sn=e=>e===!0||e===!1,Cn=e=>typeof e==`object`&&!!e,wn=e=>Cn(e)&&!xn(e),Tn=e=>typeof e==`number`&&!Number.isNaN(e),En=e=>typeof e==`string`,Dn=e=>typeof e==`function`,On=e=>e==null,kn=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),An=e=>Object.prototype.toString.call(e),jn=Function.prototype.toString,Mn=jn.call(Object),Nn=e=>{if(!Cn(e)||An(e)!=`[object Object]`||In(e))return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let n=kn(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&jn.call(n)==Mn},Pn=e=>typeof e==`object`&&!!e&&`$$typeof`in e&&`props`in e,Fn=e=>typeof e==`object`&&!!e&&`__v_isVNode`in e,In=e=>Pn(e)||Fn(e),Ln=(e,...t)=>(typeof e==`function`?e(...t):e)??void 0,Rn=e=>e,zn=()=>{},Bn=(...e)=>(...t)=>{e.forEach(function(e){e?.(...t)})},Vn=(()=>{let e=0;return()=>(e++,e.toString(36))})();function Hn(e,t,...n){if(e in t){let r=t[e];return Dn(r)?r(...n):r}let r=Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(r,Hn),r}var{floor:ree,abs:Un,round:iee,min:Wn,max:Gn,pow:aee,sign:Kn}=Math,qn=e=>Number.isNaN(e),Jn=e=>qn(e)?0:e,Yn=(e,t,n)=>Wn(Gn(Jn(e),t),n),Xn=(e,t,n)=>(Jn(e)-t)/(n-t),Zn=e=>typeof e==`number`?`${e}px`:e;function Qn(e){if(!Nn(e)||e===void 0)return e;let t=Reflect.ownKeys(e).filter(e=>typeof e==`string`),n={};for(let r of t){let t=e[r];t!==void 0&&(n[r]=Qn(t))}return n}function $n(e,t=Object.is){let n={...e},r=new Set,i=e=>(r.add(e),()=>r.delete(e)),a=()=>{r.forEach(e=>e())};return{subscribe:i,get:e=>n[e],set:(e,r)=>{t(n[e],r)||(n[e]=r,a())},update:e=>{let r=!1;for(let i in e){let a=e[i];a!==void 0&&!t(n[i],a)&&(n[i]=a,r=!0)}r&&a()},snapshot:()=>({...n})}}var er=()=>performance.now(),tr,nr=class{constructor(e){rn(this,`onTick`,e),rn(this,`frameId`,null),rn(this,`pausedAtMs`,null),rn(this,`context`),rn(this,`cancelFrame`,()=>{this.frameId!==null&&(cancelAnimationFrame(this.frameId),this.frameId=null)}),rn(this,`setStartMs`,e=>{this.context.startMs=e}),rn(this,`start`,()=>{if(this.frameId!==null)return;let e=er();this.pausedAtMs===null?this.context.startMs=e:(this.context.startMs+=e-this.pausedAtMs,this.pausedAtMs=null),this.frameId=requestAnimationFrame(on(this,tr))}),rn(this,`pause`,()=>{this.frameId!==null&&(this.cancelFrame(),this.pausedAtMs=er())}),rn(this,`stop`,()=>{this.frameId!==null&&(this.cancelFrame(),this.pausedAtMs=null)}),sn(this,tr,e=>{if(this.context.now=e,this.context.deltaMs=e-this.context.startMs,this.onTick(this.context)===!1){this.stop();return}this.frameId=requestAnimationFrame(on(this,tr))}),this.context={now:0,startMs:er(),deltaMs:0}}get elapsedMs(){return this.pausedAtMs===null?er()-this.context.startMs:this.pausedAtMs-this.context.startMs}};tr=new WeakMap;function rr(e,t){let n=new nr(({deltaMs:n})=>{if(n>=t)return e(),!1});return n.start(),()=>n.stop()}function ir(...e){let t=e.length===1?e[0]:e[1];(e.length!==2||e[0])&&process.env.NODE_ENV!==`production`&&console.warn(t)}function ar(...e){let t=e.length===1?e[0]:e[1];if((e.length!==2||e[0])&&process.env.NODE_ENV!==`production`)throw Error(t)}function or(e,t){if(e==null)throw Error(t())}function sr(e,t,n){let r=[];for(let n of t)e[n]??r.push(n);if(r.length>0)throw Error(`[zag-js${n?` > ${n}`:``}] missing required props: ${r.join(`, `)}`)}function oee(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function cr(e={}){let{strict:t=!0,hookName:n=`useContext`,providerName:r=`Provider`,errorMessage:i,defaultValue:a}=e,o=De(a);function s(){let e=Oe(o);if(!e&&t){let e=Error(i??oee(n,r));throw e.name=`ContextError`,kn(Error,`captureStackTrace`)&&Dn(Error.captureStackTrace)&&Error.captureStackTrace(e,s),e}return e}return[o.Provider,s,o]}var[lr,ur]=cr({hookName:`useRenderStrategyContext`,providerName:`<RenderStrategyProvider />`}),dr=e=>$t()(e,[`lazyMount`,`unmountOnExit`]),fr=e=>typeof e==`function`,pr=(e,...t)=>fr(e)?e(...t):e,mr=Symbol(`fallback`);function hr(e){for(let t of e)t.dispose()}function see(e,t,n,r={}){let i=new Map;return ye(()=>hr(i.values())),()=>{let n=e()||[];return n[S],_e(()=>{if(!n.length)return hr(i.values()),i.clear(),r.fallback?[ue(e=>(i.set(mr,{dispose:e}),r.fallback()))]:[];let e=Array(n.length),o=i.get(mr);if(!i.size||o){o?.dispose(),i.delete(mr);for(let r=0;r<n.length;r++){let i=n[r],o=t(i,r);a(e,i,r,o)}return e}let s=new Set(i.keys());for(let r=0;r<n.length;r++){let o=n[r],c=t(o,r);s.delete(c);let l=i.get(c);l?(e[r]=l.mapped,l.setIndex?.(r),l.setItem(()=>o)):a(e,o,r,c)}for(let e of s)i.get(e)?.dispose(),i.delete(e);return e})};function a(e,t,r,a){ue(o=>{let[s,c]=O(t),l={setItem:c,dispose:o};if(n.length>1){let[e,t]=O(r);l.setIndex=t,l.mapped=n(s,e)}else l.mapped=n(s);i.set(a,l),e[r]=l.mapped})}}function gr(e){let{by:t}=e;return k(see(()=>e.each,typeof t==`function`?t:e=>e[t],e.children,`fallback`in e?{fallback:()=>e.fallback}:void 0))}var cee=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(` `),lee=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,_r=e=>{let t={},n;for(;n=lee.exec(e);)t[n[1]]=n[2];return t},uee=(e,t)=>{if(En(e)){if(En(t))return`${e};${t}`;e=_r(e)}else En(t)&&(t=_r(t));return Object.assign({},e??{},t??{})};function vr(...e){let t={};for(let n of e){if(!n)continue;for(let e in t){if(e.startsWith(`on`)&&typeof t[e]==`function`&&typeof n[e]==`function`){t[e]=Bn(n[e],t[e]);continue}if(e===`className`||e===`class`){t[e]=cee(t[e],n[e]);continue}if(e===`style`){t[e]=uee(t[e],n[e]);continue}t[e]=n[e]===void 0?t[e]:n[e]}for(let e in n)t[e]===void 0&&(t[e]=n[e]);let e=Object.getOwnPropertySymbols(n);for(let r of e)t[r]=n[r]}return t}function dee(e,t,n){let r=[],i;return a=>{let o=e(a);return o.length!==r.length||o.some((e,t)=>!bn(r[t],e))?(r=o,i=t(o,a),n?.onChange?.(i),i):i}}var yr=`.`,br=`#`,xr=new WeakMap,Sr=new WeakMap;function Cr(e){return e.join(yr)}function fee(e){return e.includes(yr)}function wr(e){return e.startsWith(br)}function pee(e){return e.startsWith(yr)}function mee(e){return wr(e)?e.slice(br.length):e}function Tr(e,t){return e?`${e}${yr}${t}`:t}function hee(e){let t=new Map,n=new Map,r=(e,i)=>{t.set(e,i);let a=i.id;a&&(n.has(a)&&ar(`[zag-js] Duplicate state id: "${a}"`),n.set(a,e));let o=i.states;if(o){or(i.initial,()=>`[zag-js] Compound state "${e}" has child states but no "initial" property`),i.initial in o||ar(`[zag-js] Compound state "${e}" has initial "${String(i.initial)}" which is not a child state`);for(let[t,n]of Object.entries(o))n&&r(Tr(e,t),n)}};for(let[t,n]of Object.entries(e.states))n&&r(t,n);return{index:t,idIndex:n}}function Er(e){let t=xr.get(e);if(t)return t;let{index:n,idIndex:r}=hee(e);return xr.set(e,n),Sr.set(e,r),n}function gee(e,t){return Er(e),Sr.get(e)?.get(t)}function Dr(e){return e?String(e).split(yr).filter(Boolean):[]}function Or(e,t){if(!t)return[];let n=Er(e),r=Dr(t),i=[],a=[];for(let e of r){a.push(e);let t=Cr(a),r=n.get(t);if(!r)break;i.push({path:t,state:r})}return i}function kr(e,t){let n=Er(e),r=Dr(t);if(!r.length)return t;let i=[];for(let e of r){i.push(e);let r=Cr(i);if(!n.has(r))return t}let a=Cr(i),o=n.get(a);for(;o?.initial;){let e=`${a}${yr}${o.initial}`,t=n.get(e);if(!t)break;a=e,o=t}return a}function Ar(e,t){return Er(e).has(t)}function jr(e,t,n){let r=String(t);if(wr(r)){let t=mee(r),n=gee(e,t);return or(n,()=>`[zag-js] Unknown state id: "${t}"`),kr(e,n)}if(pee(r)&&n)return kr(e,Tr(n,r.slice(1)));if(!fee(r)&&n){let t=Dr(n);for(let n=t.length-1;n>=1;n--){let i=Tr(t.slice(0,n).join(yr),r);if(Ar(e,i))return kr(e,i)}if(Ar(e,r))return kr(e,r)}return kr(e,r)}function _ee(e,t,n){let r=Or(e,t);for(let e=r.length-1;e>=0;e--){let t=r[e]?.state.on?.[n];if(t)return{transitions:t,source:r[e]?.path}}return{transitions:e.on?.[n],source:void 0}}function vee(e,t,n,r){let i=t?Or(e,t):[],a=Or(e,n),o=0;for(;o<i.length&&o<a.length&&i[o]?.path===a[o]?.path;)o+=1;let s=i.slice(o).reverse(),c=a.slice(o),l=i.at(-1)?.path===a.at(-1)?.path;return r&&l&&(s=i.slice().reverse(),c=a),{exiting:s,entering:c}}function yee(e,t){return e?e===t||e.startsWith(`${t}${yr}`):!1}function bee(e,t,n){return Or(e,t).some(e=>e.state.tags?.includes(n))}function Mr(){return{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}}}function Nr(e){return Er(e),e}function Pr(){return{guards:Mr(),createMachine:e=>Nr(e),choose:e=>function({choose:t}){return t(e)?.actions}}}var Fr=(e=>(e.NotStarted=`Not Started`,e.Started=`Started`,e.Stopped=`Stopped`,e))(Fr||{}),Ir=`__init__`,xee=Object.defineProperty,See=(e,t,n)=>t in e?xee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lr=(e,t,n)=>See(e,typeof t==`symbol`?t:t+``,n);function Rr(e){if(e)try{if(e.ownerDocument.activeElement!==e)return;let t=e.value.length;e.setSelectionRange(t,t)}catch{}}var Cee=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]),zr=(...e)=>t=>e.reduce((e,t)=>t(e),t),Br=()=>void 0,Vr=e=>typeof e==`object`&&!!e,wee=2147483647,F=e=>e?``:void 0,Hr=e=>e?`true`:void 0,Tee=1,Eee=9,Dee=11,Ur=e=>Vr(e)&&e.nodeType===Tee&&typeof e.nodeName==`string`,Wr=e=>Vr(e)&&e.nodeType===Eee,Oee=e=>Vr(e)&&e===e.window,Gr=e=>Ur(e)?e.localName||``:`#document`;function kee(e){return[`html`,`body`,`#document`].includes(Gr(e))}var Kr=e=>Vr(e)&&e.nodeType!==void 0,qr=e=>Kr(e)&&e.nodeType===Dee&&`host`in e,Jr=e=>Ur(e)&&e.localName===`input`,Yr=e=>!!e?.matches(`a[href]`),Aee=e=>Ur(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1;function Xr(e){return e?ti(e.getRootNode())===e:!1}var jee=/(textarea|select)/;function Zr(e){if(e==null||!Ur(e))return!1;try{return Jr(e)&&e.selectionStart!=null||jee.test(e.localName)||e.isContentEditable||e.getAttribute(`contenteditable`)===`true`||e.getAttribute(`contenteditable`)===``}catch{return!1}}function Qr(e,t){if(!e||!t||!Ur(e)||!Kr(t))return!1;if(Ur(t)&&e===t||e.contains(t))return!0;let n=t.getRootNode?.();if(n&&qr(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function $r(e){return Wr(e)?e:Oee(e)?e.document:e?.ownerDocument??document}function Mee(e){return $r(e).documentElement}function ei(e){return qr(e)?ei(e.host):Wr(e)?e.defaultView??window:Ur(e)?e.ownerDocument?.defaultView??window:window}function ti(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(!e||e===t)break;t=e}return t}function Nee(e){if(Gr(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||qr(e)&&e.host||Mee(e);return qr(t)?t.host:t}function ni(e){let t;try{if(t=e.getRootNode({composed:!0}),Wr(t)||qr(t))return t}catch{}return e.ownerDocument??document}var ri=new WeakMap;function ii(e){return ri.has(e)||ri.set(e,ei(e).getComputedStyle(e)),ri.get(e)}var ai=new Set([`menu`,`listbox`,`dialog`,`grid`,`tree`,`region`,`application`]),Pee=e=>ai.has(e),Fee=e=>e.getAttribute(`aria-controls`)?.split(` `)||[];function Iee(e,t){let n=new Set,r=ni(e),i=e=>{let a=e.querySelectorAll(`[aria-controls]`);for(let e of a){if(e.getAttribute(`aria-expanded`)!==`true`)continue;let a=Fee(e);for(let e of a){if(!e||n.has(e))continue;n.add(e);let a=r.getElementById(e);if(a){let e=a.getAttribute(`role`),n=a.getAttribute(`aria-modal`)===`true`;if(e&&Pee(e)&&!n&&(a===t||a.contains(t)||i(a)))return!0}}}return!1};return i(e)}function Lee(e,t){let n=ni(e),r=new Set,i=e=>{let a=e.querySelectorAll(`[aria-controls]`);for(let e of a){if(e.getAttribute(`aria-expanded`)!==`true`)continue;let a=Fee(e);for(let e of a){if(!e||r.has(e))continue;r.add(e);let a=n.getElementById(e);if(a){let e=a.getAttribute(`role`),n=a.getAttribute(`aria-modal`)===`true`;e&&ai.has(e)&&!n&&(t(a),i(a))}}}};i(e)}function Ree(e){let t=new Set;return Lee(e,n=>{e.contains(n)||t.add(n)}),Array.from(t)}function zee(e){let t=e.getAttribute(`role`);return!!(t&&ai.has(t))}function Bee(e){return e.hasAttribute(`aria-controls`)&&e.getAttribute(`aria-expanded`)===`true`}function Vee(e){return Bee(e)?!0:!!e.querySelector?.(`[aria-controls][aria-expanded="true"]`)}function Hee(e){if(!e.id)return!1;let t=ni(e),n=CSS.escape(e.id),r=`[aria-controls~="${n}"][aria-expanded="true"], [aria-controls="${n}"][aria-expanded="true"]`;return!!(t.querySelector(r)&&zee(e))}var oi=()=>typeof document<`u`;function Uee(){return navigator.userAgentData?.platform??navigator.platform}function Wee(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}var si=e=>oi()&&e.test(Uee()),Gee=e=>oi()&&e.test(Wee()),Kee=e=>oi()&&e.test(navigator.vendor),qee=()=>oi()&&!!navigator.maxTouchPoints,Jee=()=>si(/^iPhone/i),Yee=()=>si(/^iPad/i)||ui()&&navigator.maxTouchPoints>1,ci=()=>Jee()||Yee(),li=()=>ui()||ci(),ui=()=>si(/^Mac/i),di=()=>li()&&Kee(/apple/i),Xee=()=>Gee(/Firefox/i),Zee=()=>Gee(/Android/i);function Qee(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function fi(e){return Qee(e)?.[0]??e.target}function pi(e){let t=e.currentTarget;if(!t||!t.matches(`a[href], button[type='submit'], input[type='submit']`))return!1;let n=e.button===1,r=$ee(e);return n||r}function mi(e){let t=e.currentTarget;if(!t)return!1;let n=t.localName;return e.altKey?n===`a`||n===`button`&&t.type===`submit`||n===`input`&&t.type===`submit`:!1}function hi(e){return ate(e).isComposing||e.keyCode===229}function $ee(e){return ui()?e.metaKey:e.ctrlKey}function ete(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function tte(e){return e.pointerType===``&&e.isTrusted?!0:Zee()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}var gi=e=>e.button===0,_i=e=>e.button===2||ui()&&e.ctrlKey&&e.button===0,nte=e=>e.ctrlKey||e.altKey||e.metaKey,rte=e=>`touches`in e&&e.touches.length>0,ite={Up:`ArrowUp`,Down:`ArrowDown`,Esc:`Escape`," ":`Space`,",":`Comma`,Left:`ArrowLeft`,Right:`ArrowRight`},vi={ArrowLeft:`ArrowRight`,ArrowRight:`ArrowLeft`};function yi(e,t={}){let{dir:n=`ltr`,orientation:r=`horizontal`}=t,i=e.key;return i=ite[i]??i,n===`rtl`&&r===`horizontal`&&i in vi&&(i=vi[i]),i}function ate(e){return e.nativeEvent??e}function bi(e,t=`client`){let n=rte(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var xi=(e,t,n,r)=>{let i=typeof e==`function`?e():e;return i?.addEventListener(t,n,r),()=>{i?.removeEventListener(t,n,r)}};function ote(e,t){let{type:n=`HTMLInputElement`,property:r=`value`}=t,i=ei(e)[n].prototype;return Object.getOwnPropertyDescriptor(i,r)??{}}function Si(e,t){e&&(ote(e,{type:`HTMLInputElement`,property:`checked`}).set?.call(e,t),t?e.setAttribute(`checked`,``):e.removeAttribute(`checked`))}function ste(e,t){let{checked:n,bubbles:r=!0}=t;if(!e)return;let i=ei(e);if(!(e instanceof i.HTMLInputElement))return;Si(e,n);let a=new i.Event(`click`,{bubbles:r});e.dispatchEvent(pte(a))}function cte(e){return e.matches(`textarea, input, select, button`)}function lte(e,t){if(!e)return;let n=cte(e)?e.form:e.closest(`form`),r=e=>{e.defaultPrevented||t()};return n?.addEventListener(`reset`,r,{passive:!0}),()=>n?.removeEventListener(`reset`,r)}function ute(e,t){let n=e?.closest(`fieldset`);if(!n)return;t(n.disabled);let r=new(ei(n)).MutationObserver(()=>t(n.disabled));return r.observe(n,{attributes:!0,attributeFilter:[`disabled`]}),()=>r.disconnect()}function dte(e,t){if(!e)return;let{onFieldsetDisabledChange:n,onFormReset:r}=t,i=[lte(e,r),ute(e,n)];return()=>i.forEach(e=>e?.())}var Ci=Symbol.for(`zag.changeEvent`);function fte(e){return Object.prototype.hasOwnProperty.call(e,Ci)}function pte(e){return fte(e)||Object.defineProperty(e,Ci,{value:!0}),e}var wi=e=>Ur(e)&&e.tagName===`IFRAME`,mte=/^(audio|video|details)$/;function Ti(e){let t=e.getAttribute(`tabindex`);return t?parseInt(t,10):NaN}var hte=e=>!Number.isNaN(Ti(e)),gte=e=>Ti(e)<0;function _te(e){return Jr(e)&&e.type===`radio`}function vte(e){if(!_te(e)||!e.name||e.checked)return!0;let t=`input[type="radio"][name="${CSS.escape(e.name)}"]`,n=e.form??e.ownerDocument,r=Array.from(n.querySelectorAll(t)).filter(t=>t.form===e.form&&ki(t)),i=r.find(e=>e.checked);return i?i===e:r[0]===e}function yte(e,t){if(!t)return null;if(t===!0)return e.shadowRoot||null;let n=t(e);return(n===!0?e.shadowRoot:n)||null}function Ei(e,t,n){let r=[...e],i=[...e],a=new Set,o=new Map;e.forEach((e,t)=>o.set(e,t));let s=0;for(;s<i.length;){let e=i[s++];if(!e||a.has(e))continue;a.add(e);let c=yte(e,t);if(c){let t=Array.from(c.querySelectorAll(Di)).filter(n),a=o.get(e);if(a!==void 0){let e=a+1;r.splice(e,0,...t),t.forEach((t,n)=>{o.set(t,e+n)});for(let n=e+t.length;n<r.length;n++)o.set(r[n],n)}else{let e=r.length;r.push(...t),t.forEach((t,n)=>{o.set(t,e+n)})}i.push(...t)}}return r}var Di=`input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type`,Oi=(e,t={})=>{if(!e)return[];let{includeContainer:n=!1,getShadowRoot:r}=t,i=Array.from(e.querySelectorAll(Di));(n==1||n==`if-empty`&&i.length===0)&&Ur(e)&&ki(e)&&i.unshift(e);let a=[];for(let e of i)if(ki(e)){if(wi(e)&&e.contentDocument){let t=e.contentDocument.body;a.push(...Oi(t,{getShadowRoot:r}));continue}a.push(e)}return r?Ei(a,r,ki):a};function ki(e){return!Ur(e)||e.closest(`[inert]`)?!1:e.matches(Di)&&Aee(e)}function Ai(e,t={}){if(!e)return[];let{includeContainer:n,getShadowRoot:r}=t,i=Array.from(e.querySelectorAll(Di));n&&ji(e)&&i.unshift(e);let a=[];for(let e of i)if(ji(e)){if(wi(e)&&e.contentDocument){let t=e.contentDocument.body;a.push(...Ai(t,{getShadowRoot:r}));continue}a.push(e)}if(r){let e=Ei(a,r,ji);return!e.length&&n?i:e}return!a.length&&n?i:a}function ji(e){return Ur(e)&&e.tabIndex>0?!0:!ki(e)||gte(e)?!1:vte(e)}function Mi(e,t={}){let n=Ai(e,t);return[n[0]||null,n[n.length-1]||null]}function bte(e,t={}){let{current:n,getShadowRoot:r}=t,i=Ai(e,{getShadowRoot:r}),a=e?.ownerDocument||document,o=n??ti(a);return o&&i[i.indexOf(o)+1]||null}function Ni(e){return e.tabIndex<0&&(mte.test(e.localName)||Zr(e))&&!hte(e)?0:e.tabIndex}function Pi(e){let{root:t,getInitialEl:n,filter:r,enabled:i=!0}=e;if(!i)return;let a=null;if(a||=typeof n==`function`?n():n,a||=t?.querySelector(`[data-autofocus],[autofocus]`),!a){let e=Ai(t);a=r?e.filter(r)[0]:e[0]}return a||t||void 0}function xte(e){let t=e.currentTarget;if(!t)return!1;let[n,r]=Mi(t);return!(Xr(n)&&e.shiftKey||Xr(r)&&!e.shiftKey||!n&&!r)}var Fi=class e{constructor(){Lr(this,`id`,null),Lr(this,`fn_cleanup`),Lr(this,`cleanup`,()=>{this.cancel()})}static create(){return new e}request(e){this.cancel(),this.id=globalThis.requestAnimationFrame(()=>{this.id=null,this.fn_cleanup=e?.()})}cancel(){this.id!==null&&(globalThis.cancelAnimationFrame(this.id),this.id=null),this.fn_cleanup?.(),this.fn_cleanup=void 0}isActive(){return this.id!==null}};function Ii(e){let t=Fi.create();return t.request(e),t.cleanup}function Li(e){let t=new Set;function n(e){let n=globalThis.requestAnimationFrame(e);t.add(()=>globalThis.cancelAnimationFrame(n))}return n(()=>n(e)),function(){t.forEach(e=>e())}}function Ste(e,t,n){let r=Ii(()=>{e.removeEventListener(t,i,!0),n()}),i=()=>{r(),n()};return e.addEventListener(t,i,{once:!0,capture:!0}),r}function Cte(e,t){if(!e)return;let{attributes:n,callback:r}=t,i=new(e.ownerDocument.defaultView||window).MutationObserver(e=>{for(let t of e)t.type===`attributes`&&t.attributeName&&n.includes(t.attributeName)&&r(t)});return i.observe(e,{attributes:!0,attributeFilter:n}),()=>i.disconnect()}function Ri(e,t){let{defer:n}=t,r=n?Ii:e=>e(),i=[];return i.push(r(()=>{let n=typeof e==`function`?e():e;i.push(Cte(n,t))})),()=>{i.forEach(e=>e?.())}}function wte(e,t){let{callback:n}=t;if(!e)return;let r=new(e.ownerDocument.defaultView||window).MutationObserver(n);return r.observe(e,{childList:!0,subtree:!0}),()=>r.disconnect()}function Tte(e,t){let{defer:n}=t,r=n?Ii:e=>e(),i=[];return i.push(r(()=>{let n=typeof e==`function`?e():e;i.push(wte(n,t))})),()=>{i.forEach(e=>e?.())}}function zi(e){let t=()=>{let t=ei(e);e.dispatchEvent(new t.MouseEvent(`click`))};Xee()?Ste(e,`keyup`,t):queueMicrotask(t)}function Bi(e){let t=Nee(e);return kee(t)?$r(t).body:Ur(t)&&Vi(t)?t:Bi(t)}function Ete(e,t=[]){let n=Bi(e),r=n===e.ownerDocument.body,i=ei(n);return r?t.concat(i,i.visualViewport||[],Vi(n)?n:[]):t.concat(n,Ete(n,[]))}var Dte=/auto|scroll|overlay|hidden|clip/,Ote=new Set([`inline`,`contents`]);function Vi(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ei(e).getComputedStyle(e);return Dte.test(t+r+n)&&!Ote.has(i)}var Hi=`default`,Ui=``,Wi=new WeakMap;function kte(e={}){let{target:t,doc:n}=e,r=n??document,i=r.documentElement;return ci()?(Hi==="default"&&(Ui=i.style.webkitUserSelect,i.style.webkitUserSelect=`none`),Hi=`disabled`):t&&(Wi.set(t,t.style.userSelect),t.style.userSelect=`none`),()=>Ate({target:t,doc:r})}function Ate(e={}){let{target:t,doc:n}=e,r=(n??document).documentElement;if(ci()){if(Hi!==`disabled`)return;Hi=`restoring`,setTimeout(()=>{Li(()=>{Hi===`restoring`&&(r.style.webkitUserSelect===`none`&&(r.style.webkitUserSelect=Ui||``),Ui=``,Hi=`default`)})},300)}else if(t&&Wi.has(t)){let e=Wi.get(t);t.style.userSelect===`none`&&(t.style.userSelect=e??``),t.getAttribute(`style`)===``&&t.removeAttribute(`style`),Wi.delete(t)}}function jte(e={}){let{defer:t,target:n,...r}=e,i=t?Ii:e=>e(),a=[];return a.push(i(()=>{let e=typeof n==`function`?n():n;a.push(kte({...r,target:e}))})),()=>{a.forEach(e=>e?.())}}function Mte(e,t){let{onPointerMove:n,onPointerUp:r}=t,i=e=>{let t=bi(e);if(!(Math.sqrt(t.x**2+t.y**2)<(e.pointerType===`touch`?10:5))){if(e.pointerType===`mouse`&&e.buttons===0){a(e);return}n({point:t,event:e})}},a=e=>{r({point:bi(e),event:e})},o=[xi(e,`pointermove`,i,!1),xi(e,`pointerup`,a,!1),xi(e,`pointercancel`,a,!1),xi(e,`contextmenu`,a,!1),jte({doc:e})];return()=>{o.forEach(e=>e())}}function Nte(e){let{pointerNode:t,keyboardNode:n=t,onPress:r,onPressStart:i,onPressEnd:a,isValidKey:o=e=>e.key===`Enter`}=e;if(!t)return Br;let s=ei(t),c=Br,l=Br,u=Br,d=e=>({point:bi(e),event:e});function f(e){i?.(d(e))}function p(e){a?.(d(e))}c=zr(xi(t,`pointerdown`,e=>{l(),l=zr(xi(s,`pointerup`,e=>{Qr(t,fi(e))?r?.(d(e)):a?.(d(e))},{passive:!r,once:!0}),xi(s,`pointercancel`,p,{passive:!a,once:!0})),Xr(n)&&e.pointerType===`mouse`&&e.preventDefault(),f(e)},{passive:!i}),xi(n,`focus`,m));function m(){u=zr(xi(n,`keydown`,e=>{o(e)&&(l(),l=xi(n,`keyup`,e=>{if(!o(e))return;let t=d(new s.PointerEvent(`pointerup`));r?.(t),a?.(t)}),f(new s.PointerEvent(`pointerdown`)))}),xi(n,`blur`,()=>{p(new s.PointerEvent(`pointercancel`))}))}return()=>{c(),l(),u()}}function Pte(e,t={}){let{triggerElement:n,onFocus:r,onFocusEnter:i,getShadowRoot:a}=t,o=e?.ownerDocument||document,s=o.body;function c(t){if(t.key!==`Tab`)return;let o=null,[c,l]=Mi(e,{includeContainer:!0,getShadowRoot:a}),u=bte(s,{current:n,getShadowRoot:a}),d=!c&&!l;t.shiftKey&&Xr(u)?(i?.(),o=l):t.shiftKey&&(Xr(c)||d)?o=n:!t.shiftKey&&Xr(n)?(i?.(),o=c):!t.shiftKey&&(Xr(l)||d)&&(o=u),o&&(t.preventDefault(),typeof r==`function`?r(o):o.focus())}return xi(o,`keydown`,c,!0)}function Fte(e,t){let{defer:n,triggerElement:r,...i}=t,a=n?Ii:e=>e(),o=[];return o.push(a(()=>{let t=typeof e==`function`?e():e,n=typeof r==`function`?r():r;o.push(Pte(t,{triggerElement:n,...i}))})),()=>{o.forEach(e=>e?.())}}function Gi(e,t){return Array.from(e?.querySelectorAll(t)??[])}function Ki(e,t){return e?.querySelector(t)??null}var qi=e=>e.id;function Ite(e,t,n=qi){return e.find(e=>n(e)===t)}function Ji(e,t,n=qi){let r=Ite(e,t,n);return r?e.indexOf(r):-1}function Lte(e,t,n=!0){let r=Ji(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function Rte(e,t,n=!0){let r=Ji(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}function zte(e){let t=new WeakMap,n,r=new WeakMap,i=e=>n||(n=new e.ResizeObserver(e=>{for(let n of e){r.set(n.target,n);let e=t.get(n.target);if(e)for(let t of e)t(n)}}),n);return{observe:(n,r)=>{let a=t.get(n)||new Set;a.add(r),t.set(n,a);let o=ei(n);return i(o).observe(n,e),()=>{let e=t.get(n);e&&(e.delete(r),e.size===0&&(t.delete(n),i(o).unobserve(n)))}},unobserve:e=>{t.delete(e),n?.unobserve(e)}}}var Yi=zte({box:`border-box`});function Bte(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Xi(e,t){let{rootEl:n,...r}=t||{};!e||!n||!Vi(n)||!Bte(n)||e.scrollIntoView(r)}var Vte=e=>e.split(``).map(e=>{let t=e.charCodeAt(0);return t>0&&t<128?e:t>=128&&t<=255?`/x${t.toString(16)}`.replace(`/`,`\\`):``}).join(``).trim(),Hte=e=>Vte(e.dataset?.valuetext??e.textContent??``),Ute=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function Wte(e,t,n,r=qi){let i=n?Ji(e,n,r):-1,a=n?Cee(e,i):e;return t.length===1&&(a=a.filter(e=>r(e)!==n)),a.find(e=>Ute(Hte(e),t))}function Gte(e,t,n){let r=e.getAttribute(t),i=r!=null;return r===n?Br:(e.setAttribute(t,n),()=>{i?e.setAttribute(t,r):e.removeAttribute(t)})}function Zi(e,t){if(!e)return Br;let n=Object.keys(t).reduce((t,n)=>(t[n]=e.style.getPropertyValue(n),t),{});return Kte(n,t)?Br:(Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute(`style`)})}function Qi(e,t,n){if(!e)return Br;let r=e.style.getPropertyValue(t);return r===n?Br:(e.style.setProperty(t,n),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute(`style`)})}function Kte(e,t){return Object.keys(e).every(n=>e[n]===t[n])}function qte(e,t){let{state:n,activeId:r,key:i,timeout:a=350,itemToId:o}=t,s=n.keysSoFar+i,c=s.length>1&&Array.from(s).every(e=>e===s[0])?s[0]:s,l=Wte(e.slice(),c,r,o);function u(){clearTimeout(n.timer),n.timer=-1}function d(e){n.keysSoFar=e,u(),e!==``&&(n.timer=+setTimeout(()=>{d(``),u()},a))}return d(s),l}var $i=Object.assign(qte,{defaultOptions:{keysSoFar:``,timer:-1},isValidEvent:Jte});function Jte(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}var Yte={border:`0`,clip:`rect(0 0 0 0)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:`0`,position:`absolute`,width:`1px`,whiteSpace:`nowrap`,wordWrap:`normal`};function Xte(e,t,n){let{signal:r}=t;return[new Promise((t,i)=>{let a=setTimeout(()=>{i(Error(`Timeout of ${n}ms exceeded`))},n);r.addEventListener(`abort`,()=>{clearTimeout(a),i(new DOMException(`Promise aborted`,`AbortError`))}),e.then(e=>{r.aborted||(clearTimeout(a),t(e))}).catch(e=>{r.aborted||(clearTimeout(a),i(e))})}),()=>t.abort()]}function Zte(e,t){let{timeout:n,rootNode:r}=t,i=ei(r),a=$r(r),o=new i.AbortController;return Xte(new Promise(t=>{let n=e();if(n){t(n);return}let r=new i.MutationObserver(()=>{let n=e();n&&n.isConnected&&(r.disconnect(),t(n))});r.observe(a.body,{childList:!0,subtree:!0})}),o,n)}function Qte(e){let t=()=>e.getRootNode?.()??document,n=()=>$r(t()),r=()=>n().defaultView??window,i=()=>ti(t()),a=e=>t().getElementById(e);return{...e,getRootNode:t,getDoc:n,getWin:r,getActiveElement:i,isActiveElement:Xr,getById:a}}function ea(e){let t=e().value??e().defaultValue,n=e().isEqual??Object.is,[r,i]=O(t),a=k(()=>e().value!=null),o={current:r()},s={current:void 0};pe(()=>{let t=a()?e().value:r();s.current=t,o.current=t});let c=t=>{let r=s.current,c=Dn(t)?t(o.current):t;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:c,prev:r}),a()||i(c),n(c,r)||e().onChange?.(c,r)};function l(){let t=a()?e().value:r;return Dn(t)?t():t}return{initial:t,ref:o,get:l,set:c,invoke(t,n){e().onChange?.(t,n)},hash(t){return e().hash?.(t)??String(t)}}}ea.cleanup=e=>{ye(()=>e())},ea.ref=e=>{let t=e;return{get:()=>t,set:e=>{t=e}}};function $te(e){let t={current:e};return{get(e){return t.current[e]},set(e,n){t.current[e]=n}}}function ta(e){return Dn(e)?e():e}var ene=(e,t)=>{let n=[],r=!0;pe(()=>{if(r){n=e.map(e=>ta(e)),r=!1;return}let i=!1;for(let t=0;t<e.length;t++)if(!bn(n[t],ta(e[t]))){i=!0;break}i&&(n=e.map(e=>ta(e)),t())})};function na(e,t={}){let n=k(()=>{let{id:e,ids:n,getRootNode:r}=ia(t);return Qte({id:e,ids:n,getRootNode:r})}),r=(...t)=>{e.debug&&console.log(...t)},i=tne(k(()=>e.props?.({props:Qn(ia(t)),scope:n()})??ia(t))),a=e.context?.({prop:i,bindable:ea,get scope(){return n()},flush:ra,getContext(){return o},getComputed(){return y},getRefs(){return p},getEvent(){return d()}}),o={get(e){return a?.[e].get()},set(e,t){a?.[e].set(t)},initial(e){return a?.[e].initial},hash(e){let t=a?.[e].get();return a?.[e].hash(t)}},s={current:new Map},c={current:null},l={current:null},u={current:{type:``}},d=()=>j(u.current,{current(){return u.current},previous(){return l.current}}),f=()=>j(b,{matches(...e){let t=b.get();return e.some(e=>yee(t,e))},hasTag(t){return bee(e,b.get(),t)}}),p=$te(e.refs?.({prop:i,context:o})??{}),m=()=>({state:f(),context:o,event:d(),prop:i,send:S,action:h,guard:g,track:ene,refs:p,computed:y,flush:ra,get scope(){return n()},choose:v}),h=t=>{let n=Dn(t)?t(m()):t;if(!n)return;let r=n.map(t=>{let n=e.implementations?.actions?.[t];return n||ir(`[zag-js] No implementation found for action "${JSON.stringify(t)}"`),n});for(let e of r)e?.(m())},g=t=>{if(Dn(t))return t(m());let n=e.implementations?.guards?.[t];return n||ir(`[zag-js] No implementation found for guard "${JSON.stringify(t)}"`),n?.(m())},_=t=>{let n=Dn(t)?t(m()):t;if(!n)return;let r=n.map(t=>{let n=e.implementations?.effects?.[t];return n||ir(`[zag-js] No implementation found for effect "${JSON.stringify(t)}"`),n}),i=[];for(let e of r){let t=e?.(m());t&&i.push(t)}return()=>i.forEach(e=>e?.())},v=e=>nee(e).find(e=>{let t=!e.guard;return En(e.guard)?t=!!g(e.guard):Dn(e.guard)&&(t=e.guard(m())),t}),y=t=>{or(e.computed,()=>`[zag-js] No computed object found on machine`);let r=e.computed[t];return r({context:o,event:u.current,prop:i,refs:p,scope:n(),computed:y})},b=ea(()=>({defaultValue:jr(e,e.initialState({prop:i})),onChange(t,n){let{exiting:r,entering:i}=vee(e,n,t,c.current?.reenter);if(r.forEach(e=>{s.current.get(e.path)?.(),s.current.delete(e.path)}),r.forEach(e=>{h(e.state?.exit)}),h(c.current?.actions),i.forEach(e=>{let t=_(e.state?.effects);if(t){let n=s.current.get(e.path);s.current.set(e.path,n?Bn(n,t):t)}}),n===`__init__`){h(e.entry);let t=_(e.effects);if(t){let e=s.current.get(Ir);s.current.set(Ir,e?Bn(e,t):t)}}i.forEach(e=>{h(e.state?.entry)})}})),x=Fr.NotStarted;ve(()=>{let e=x===Fr.Started;x=Fr.Started,r(e?`rehydrating...`:`initializing...`),b.invoke(b.initial,Ir)}),ye(()=>{r(`unmounting...`),x=Fr.Stopped,s.current.forEach(e=>e?.()),s.current=new Map,c.current=null,h(e.exit)});let S=t=>{queueMicrotask(()=>{if(x!==Fr.Started)return;l.current=u.current,u.current=t;let n=_e(()=>b.get()),{transitions:i,source:a}=_ee(e,n,t.type),o=v(i);if(!o)return;c.current=o;let s=jr(e,o.target??n,a);r(`transition`,t.type,o.target||n,`(${o.actions})`),s===n?o.reenter?b.invoke(n,n):h(o.actions):b.set(s)})};return e.watch?.(m()),{state:f(),send:S,context:o,prop:i,get scope(){return n()},refs:p,computed:y,event:d(),getStatus:()=>x}}function ra(e){e()}function ia(e){return Dn(e)?e():e}function tne(e){return function(t){return e()[t]}}function I(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`function`&&(r=r()),r){let n=Object.getOwnPropertyDescriptors(r);for(let r in n)r in t||Object.defineProperty(t,r,{enumerable:!0,get(){let t={};if(r===`style`||r===`class`||r===`className`||r.startsWith(`on`)){for(let n=0;n<e.length;n++){let i=e[n];typeof i==`function`&&(i=i()),t=vr(t,{[r]:(i||{})[r]})}return t[r]}for(let t=e.length-1;t>=0;t--){let n,i=e[t];if(typeof i==`function`&&(i=i()),n=(i||{})[r],n!==void 0)return n}}})}}return t}function nne(e){return new Proxy({},{get(t,n){return n===`style`?t=>e({style:t}).style:e}})}var aa={onFocus:`onFocusIn`,onBlur:`onFocusOut`,onDoubleClick:`onDblClick`,onChange:`onInput`,defaultChecked:`checked`,defaultValue:`value`,htmlFor:`for`,className:`class`},rne=e=>e.startsWith(`--`)?e:lne(e);function ine(e){return e in aa?aa[e]:e}var oa=nne(e=>{let t={};for(let n in e){let r=e[n];if(!(n===`readOnly`&&r===!1)){if(n===`style`&&wn(r)){t.style=ane(r);continue}if(n===`children`){En(r)&&(t.textContent=r);continue}t[ine(n)]=r}}return t});function ane(e){let t={};for(let n in e){let r=e[n];!En(r)&&!Tn(r)||(t[rne(n)]=r)}return t}var one=/[A-Z]/g,sne=/^ms-/;function cne(e){return`-`+e.toLowerCase()}var sa={};function lne(e){if(sa.hasOwnProperty(e))return sa[e];let t=e.replace(one,cne);return sa[e]=sne.test(t)?`-`+t:t}var ca=e=>t=>{let[n,r]=ot(t,[`asChild`]);return n.asChild?n.asChild(e=>{let[,t]=ot(r,[`ref`]);return I(t,e)}):A(Qt,j({component:e},r))};function une(){let e=new Map;return new Proxy(ca,{apply(e,t,n){return ca(n[0])},get(t,n){let r=n;return e.has(r)||e.set(r,ca(r)),e.get(r)}})}var L=une(),[dne,la]=cr({hookName:`useEnvironmentContext`,providerName:`<EnvironmentProvider />`,strict:!1,defaultValue:()=>({getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window})}),fne=e=>{let[t,n]=O(),r=()=>pr(e.value)??t()?.getRootNode()??document;return A(dne,{value:k(()=>({getRootNode:r,getDocument:()=>$r(r()),getWindow:()=>ei(r())})),get children(){return[St(()=>e.children),A(M,{get when(){return!e.value},get children(){return A(L.span,{hidden:!0,ref:n})}})]}})},[pne,ua]=cr({hookName:`useEnvironmentContext`,providerName:`<EnvironmentProvider />`,strict:!1,defaultValue:()=>({dir:`ltr`,locale:`en-US`})}),mne=Object.defineProperty,da=(e,t)=>{for(var n in t)mne(e,n,{get:t[n],enumerable:!0})},fa=(e,t=[])=>({parts:(...n)=>{if(hne(t))return fa(e,n);throw Error(`createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?`)},extendWith:(...n)=>fa(e,[...t,...n]),omit:(...n)=>fa(e,t.filter(e=>!n.includes(e))),rename:e=>fa(e,t),keys:()=>t,build:()=>[...new Set(t)].reduce((t,n)=>Object.assign(t,{[n]:{selector:[`&[data-scope="${pa(e)}"][data-part="${pa(n)}"]`,`& [data-scope="${pa(e)}"][data-part="${pa(n)}"]`].join(`, `),attrs:{"data-scope":pa(e),"data-part":pa(n)}}}),{})}),pa=e=>e.replace(/([A-Z])([A-Z])/g,`$1-$2`).replace(/([a-z])([A-Z])/g,`$1-$2`).replace(/[\s_]+/g,`-`).toLowerCase(),hne=e=>e.length===0,ma=fa(`collapsible`).parts(`root`,`trigger`,`content`,`indicator`).build(),gne=e=>e.ids?.root??`collapsible:${e.id}`,ha=e=>e.ids?.content??`collapsible:${e.id}:content`,_ne=e=>e.ids?.trigger??`collapsible:${e.id}:trigger`,ga=e=>e.getById(ha(e));function vne(e,t){let{state:n,send:r,context:i,scope:a,prop:o}=e,s=n.matches(`open`)||n.matches(`closing`),c=n.matches(`open`),l=n.matches(`closed`),{width:u,height:d}=i.get(`size`),f=!!o(`disabled`),p=o(`collapsedHeight`),m=o(`collapsedWidth`),h=p!=null,g=m!=null,_=h||g,v=!i.get(`initial`)&&c;return{disabled:f,visible:s,open:c,measureSize(){r({type:`size.measure`})},setOpen(e){n.matches(`open`)!==e&&r({type:e?`open`:`close`})},getRootProps(){return t.element({...ma.root.attrs,"data-state":c?`open`:`closed`,dir:o(`dir`),id:gne(a)})},getContentProps(){return t.element({...ma.content.attrs,id:ha(a),"data-collapsible":``,"data-state":v?void 0:c?`open`:`closed`,"data-disabled":F(f),"data-has-collapsed-size":F(_),hidden:!s&&!_,dir:o(`dir`),style:{"--height":Zn(d),"--width":Zn(u),"--collapsed-height":Zn(p),"--collapsed-width":Zn(m),...l&&h&&{overflow:`hidden`,minHeight:Zn(p),maxHeight:Zn(p)},...l&&g&&{overflow:`hidden`,minWidth:Zn(m),maxWidth:Zn(m)}}})},getTriggerProps(){return t.element({...ma.trigger.attrs,id:_ne(a),dir:o(`dir`),type:`button`,"data-state":c?`open`:`closed`,"data-disabled":F(f),"aria-controls":ha(a),"aria-expanded":s||!1,onClick(e){e.defaultPrevented||f||r({type:c?`close`:`open`})}})},getIndicatorProps(){return t.element({...ma.indicator.attrs,dir:o(`dir`),"data-state":c?`open`:`closed`,"data-disabled":F(f)})}}}var yne=Nr({initialState({prop:e}){return e(`open`)||e(`defaultOpen`)?`open`:`closed`},context({bindable:e}){return{size:e(()=>({defaultValue:{height:0,width:0},sync:!0})),initial:e(()=>({defaultValue:!1}))}},refs(){return{cleanup:void 0,stylesRef:void 0}},watch({track:e,prop:t,action:n}){e([()=>t(`open`)],()=>{n([`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})=>e(`open`)!=null},effects:{trackEnterAnimation:({send:e,scope:t})=>{let n,r=Ii(()=>{let r=ga(t);if(!r)return;let i=ii(r).animationName;if(!i||i===`none`){e({type:`animation.end`});return}let a=t=>{fi(t)===r&&e({type:`animation.end`})};r.addEventListener(`animationend`,a),n=()=>{r.removeEventListener(`animationend`,a)}});return()=>{r(),n?.()}},trackExitAnimation:({send:e,scope:t})=>{let n,r=Ii(()=>{let r=ga(t);if(!r)return;let i=ii(r).animationName;if(!i||i===`none`){e({type:`animation.end`});return}let a=t=>{fi(t)===r&&e({type:`animation.end`})};r.addEventListener(`animationend`,a);let o=Zi(r,{animationFillMode:`forwards`});n=()=>{r.removeEventListener(`animationend`,a),Li(()=>o())}});return()=>{r(),n?.()}},trackTabbableElements:({scope:e,prop:t})=>{if(!t(`collapsedHeight`)&&!t(`collapsedWidth`))return;let n=ga(e);if(!n)return;let r=()=>{let e=Ai(n).map(e=>Gte(e,`inert`,``));return()=>{e.forEach(e=>e())}},i=r(),a=Tte(n,{callback(){i(),i=r()}});return()=>{i(),a()}}},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 n=ga(t);if(!n)return;let{height:r,width:i}=n.getBoundingClientRect();e.set(`size`,{height:r,width:i})},computeSize:({refs:e,scope:t,context:n})=>{e.get(`cleanup`)?.();let r=Ii(()=>{let e=ga(t);if(!e)return;let r=e.hidden;e.style.animationName=`none`,e.style.animationDuration=`0s`,e.hidden=!1;let i=e.getBoundingClientRect();n.set(`size`,{height:i.height,width:i.width}),n.get(`initial`)&&(e.style.animationName=``,e.style.animationDuration=``),e.hidden=r});e.set(`cleanup`,r)},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`})}}}}),[_a,va]=cr({hookName:`useCollapsibleContext`,providerName:`<CollapsibleProvider />`}),bne=e=>{let t=va(),n=I(()=>t().getContentProps(),e);return A(M,{get when(){return!t().unmounted},get children(){return A(L.div,n)}})},xne=e=>e.children(va()),Sne=(e={})=>{let t=ct(),n=ua(),r=la(),[i,a]=dr(pr(e)),o=na(yne,k(()=>({id:t,dir:n().dir,getRootNode:r().getRootNode,...a}))),[s,c]=O(!1);pe(()=>{l().visible&&c(!0)});let l=k(()=>vne(o,oa));return k(()=>({...l(),unmounted:!l().visible&&!s()&&i.lazyMount||i.unmountOnExit&&!l().visible&&s()}))},Cne=e=>{let[t,n]=$t()(e,[`collapsedHeight`,`collapsedWidth`,`defaultOpen`,`disabled`,`id`,`ids`,`lazyMount`,`onExitComplete`,`onOpenChange`,`open`,`unmountOnExit`]),r=Sne(t),i=I(()=>r().getRootProps(),n);return A(_a,{value:r,get children(){return A(L.div,i)}})},wne=e=>{let[{value:t},n]=$t()(e,[`value`]),r=I(()=>t().getRootProps(),n);return A(_a,{value:t,get children(){return A(L.div,r)}})},Tne=e=>{let t=va(),n=I(()=>t().getTriggerProps(),e);return A(L.button,n)},Ene=e=>{let t=va(),n=I(()=>t().getIndicatorProps(),e);return A(L.div,n)},ya={};da(ya,{Content:()=>bne,Context:()=>xne,Indicator:()=>Ene,Root:()=>Cne,RootProvider:()=>wne,Trigger:()=>Tne});function Dne(e){return!(e.metaKey||!ui()&&e.altKey||e.ctrlKey||e.key===`Control`||e.key===`Shift`||e.key===`Meta`)}var One=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function kne(e,t,n){let r=n?fi(n):null,i=$r(r),a=ei(r),o=ti(i);return e=e||o instanceof a.HTMLInputElement&&!One.has(o?.type)||o instanceof a.HTMLTextAreaElement||o instanceof a.HTMLElement&&o.isContentEditable,!(e&&t===`keyboard`&&n instanceof a.KeyboardEvent&&!Reflect.has(Ane,n.key))}var ba=null,xa=new Set,Sa=new Map,Ca=!1,wa=!1,Ane={Tab:!0,Escape:!0};function Ta(e,t){for(let n of xa)n(e,t)}function Ea(e){Ca=!0,Dne(e)&&(ba=`keyboard`,Ta(`keyboard`,e))}function Da(e){ba=`pointer`,(e.type===`mousedown`||e.type===`pointerdown`)&&(Ca=!0,Ta(`pointer`,e))}function Oa(e){tte(e)&&(Ca=!0,ba=`virtual`)}function ka(e){let t=fi(e);t===ei(t)||t===$r(t)||!e.isTrusted||(!Ca&&!wa&&(ba=`virtual`,Ta(`virtual`,e)),Ca=!1,wa=!1)}function Aa(){Ca=!1,wa=!0}function jne(e){if(typeof window>`u`||Sa.get(ei(e)))return;let t=ei(e),n=$r(e),r=t.HTMLElement.prototype.focus;function i(){Ca=!0,r.apply(this,arguments)}try{Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:i})}catch{}n.addEventListener(`keydown`,Ea,!0),n.addEventListener(`keyup`,Ea,!0),n.addEventListener(`click`,Oa,!0),t.addEventListener(`focus`,ka,!0),t.addEventListener(`blur`,Aa,!1),t.PointerEvent===void 0?(n.addEventListener(`mousedown`,Da,!0),n.addEventListener(`mousemove`,Da,!0),n.addEventListener(`mouseup`,Da,!0)):(n.addEventListener(`pointerdown`,Da,!0),n.addEventListener(`pointermove`,Da,!0),n.addEventListener(`pointerup`,Da,!0)),t.addEventListener(`beforeunload`,()=>{Mne(e)},{once:!0}),Sa.set(t,{focus:r})}var Mne=(e,t)=>{let n=ei(e),r=$r(e);t&&r.removeEventListener(`DOMContentLoaded`,t);let i=Sa.get(n);if(i){try{Object.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,value:i.focus})}catch{}r.removeEventListener(`keydown`,Ea,!0),r.removeEventListener(`keyup`,Ea,!0),r.removeEventListener(`click`,Oa,!0),n.removeEventListener(`focus`,ka,!0),n.removeEventListener(`blur`,Aa,!1),n.PointerEvent===void 0?(r.removeEventListener(`mousedown`,Da,!0),r.removeEventListener(`mousemove`,Da,!0),r.removeEventListener(`mouseup`,Da,!0)):(r.removeEventListener(`pointerdown`,Da,!0),r.removeEventListener(`pointermove`,Da,!0),r.removeEventListener(`pointerup`,Da,!0)),Sa.delete(n)}};function ja(){return ba}function Ma(e){ba=e,Ta(e,null)}function Na(){return ba===`keyboard`||ba===`virtual`}function Pa(e={}){let{isTextInput:t,autoFocus:n,onChange:r,root:i}=e;jne(i),r?.({isFocusVisible:n||Na(),modality:ba});let a=(e,n)=>{kne(!!t,e,n)&&r?.({isFocusVisible:Na(),modality:e})};return xa.add(a),()=>{xa.delete(a)}}function Nne(e,t){let{state:n,send:r,context:i}=e,a=n.matches(`mounted`,`unmountSuspended`);return{skip:!i.get(`initial`),present:a,setNode(e){e&&r({type:`NODE.SET`,node:e})},unmount(){r({type:`UNMOUNT`})}}}var Pne=Nr({props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e(`present`)?`mounted`:`unmounted`},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:[`cleanupNode`],watch({track:e,prop:t,send:n}){e([()=>t(`present`)],()=>{n({type:`PRESENCE.CHANGED`})})},on:{"NODE.SET":{actions:[`setupNode`]},"PRESENCE.CHANGED":{actions:[`setInitial`,`syncPresence`]}},states:{mounted:{on:{UNMOUNT:{target:`unmounted`,actions:[`clearPrevAnimationName`,`invokeOnExitComplete`]},"UNMOUNT.SUSPEND":{target:`unmountSuspended`}}},unmountSuspended:{effects:[`trackAnimationEvents`],on:{MOUNT:{target:`mounted`,actions:[`setPrevAnimationName`]},UNMOUNT:{target:`unmounted`,actions:[`clearPrevAnimationName`,`invokeOnExitComplete`]}}},unmounted:{on:{MOUNT:{target:`mounted`,actions:[`setPrevAnimationName`]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get(`initial`)||queueMicrotask(()=>{e.set(`initial`,!0)})},invokeOnExitComplete:({prop:e,refs:t})=>{e(`onExitComplete`)?.();let n=t.get(`node`);if(!n)return;let r=new(ei(n)).CustomEvent(`exitcomplete`,{bubbles:!1});n.dispatchEvent(r)},setupNode:({refs:e,event:t})=>{e.get(`node`)!==t.node&&(e.set(`node`,t.node),e.set(`styles`,ii(t.node)))},cleanupNode:({refs:e})=>{e.set(`node`,null),e.set(`styles`,null)},syncPresence:({context:e,refs:t,send:n,prop:r})=>{let i=r(`present`);if(i)return n({type:`MOUNT`,src:`presence.changed`});let a=t.get(`node`);if(!i&&a?.ownerDocument.visibilityState===`hidden`)return n({type:`UNMOUNT`,src:`visibilitychange`});Ii(()=>{if(r(`present`))return;let i=Fa(t.get(`styles`));e.set(`unmountAnimationName`,i),i===`none`||i===e.get(`prevAnimationName`)||t.get(`styles`)?.display===`none`||t.get(`styles`)?.animationDuration===`0s`?n({type:`UNMOUNT`,src:`presence.changed`}):n({type:`UNMOUNT.SUSPEND`})})},setPrevAnimationName:({context:e,refs:t})=>{Ii(()=>{e.set(`prevAnimationName`,Fa(t.get(`styles`)))})},clearPrevAnimationName:({context:e})=>{e.set(`prevAnimationName`,null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:n,prop:r})=>{let i=t.get(`node`);if(!i)return;let a=n=>{(n.composedPath?.()?.[0]??n.target)===i&&e.set(`prevAnimationName`,Fa(t.get(`styles`)))},o=a=>{let o=Fa(t.get(`styles`));fi(a)===i&&o===e.get(`unmountAnimationName`)&&!r(`present`)&&n({type:`UNMOUNT`,src:`animationend`})},s=e=>{fi(e)===i&&!r(`present`)&&n({type:`UNMOUNT`,src:`animationcancel`})};i.addEventListener(`animationstart`,a),i.addEventListener(`animationcancel`,s),i.addEventListener(`animationend`,o);let c=Zi(i,{animationFillMode:`forwards`});return()=>{i.removeEventListener(`animationstart`,a),i.removeEventListener(`animationcancel`,s),i.removeEventListener(`animationend`,o),Li(()=>c())}}}}});function Fa(e){return e?.animationName||`none`}var Ia=e=>{let[t,n]=dr(pr(e)),[r,i]=O(!1),a=na(Pne,e),o=k(()=>Nne(a,oa));pe(()=>{o().present&&i(!0)});let s=e=>{e&&a.send({type:`NODE.SET`,node:e})};return k(()=>({unmounted:!o().present&&!r()&&t.lazyMount||t.unmountOnExit&&!o().present&&r(),present:o().present,ref:s,presenceProps:{hidden:!o().present,"data-state":o().skip&&n.skipAnimationOnMount?void 0:n.present?`open`:`closed`}}))},Fne=e=>typeof e==`function`,Ine=(e,t)=>{for(let n of e)Fne(n)&&n(t)};function La(...e){let t=null;return pe(()=>{Ine(e,t)}),n=>{t=n,Ine(e,n)}}var Ra=e=>$t()(e,[`immediate`,`lazyMount`,`onExitComplete`,`present`,`skipAnimationOnMount`,`unmountOnExit`]),[za,Ba]=cr({hookName:`usePresenceContext`,providerName:`<PresenceProvider />`}),Va=fa(`hoverCard`).parts(`arrow`,`arrowTip`,`trigger`,`positioner`,`content`).build(),Lne=[`top`,`right`,`bottom`,`left`],Ha=Math.min,Ua=Math.max,Wa=Math.round,Ga=Math.floor,Ka=e=>({x:e,y:e}),Rne={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function qa(e,t,n){return Ua(e,Ha(t,n))}function Ja(e,t){return typeof e==`function`?e(t):e}function Ya(e){return e.split(`-`)[0]}function Xa(e){return e.split(`-`)[1]}function Za(e){return e===`x`?`y`:`x`}function Qa(e){return e===`y`?`height`:`width`}function $a(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function eo(e){return Za($a(e))}function zne(e,t,n){n===void 0&&(n=!1);let r=Xa(e),i=eo(e),a=Qa(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=io(o)),[o,io(o)]}function Bne(e){let t=io(e);return[to(e),t,to(t)]}function to(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var no=[`left`,`right`],ro=[`right`,`left`],Vne=[`top`,`bottom`],Hne=[`bottom`,`top`];function Une(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ro:no:t?no:ro;case`left`:case`right`:return t?Vne:Hne;default:return[]}}function Wne(e,t,n,r){let i=Xa(e),a=Une(Ya(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(to)))),a}function io(e){let t=Ya(e);return Rne[t]+e.slice(t.length)}function Gne(e){return{top:0,right:0,bottom:0,left:0,...e}}function ao(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Gne(e)}function oo(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function so(e,t,n){let{reference:r,floating:i}=e,a=$a(t),o=eo(t),s=Qa(o),c=Ya(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Xa(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function Kne(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Ja(t,e),p=ao(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=oo(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=oo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var qne=50,Jne=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Kne},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=so(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<qne&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=so(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Yne=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Ja(e,t)||{};if(l==null)return{};let d=ao(u),f={x:n,y:r},p=eo(i),m=Qa(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Ha(d[_],T),ee=Ha(d[v],T),te=E,ne=C-h[m]-ee,re=C/2-h[m]/2+w,D=qa(te,re,ne),ie=!c.arrow&&Xa(i)!=null&&re!==D&&a.reference[m]/2-(re<te?E:ee)-h[m]/2<0,ae=ie?re<te?re-te:re-ne:0;return{[p]:f[p]+ae,data:{[p]:D,centerOffset:re-D-ae,...ie&&{alignmentOffset:ae}},reset:ie}}}),Xne=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Ja(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Ya(r),_=$a(o),v=Ya(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[io(o)]:Bne(o)),x=p!==`none`;!d&&x&&b.push(...Wne(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=zne(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==$a(t))||T.every(e=>$a(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=$a(e.placement);return t===_||t===`y`}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]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function co(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function lo(e){return Lne.some(t=>e[t]>=0)}var Zne=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Ja(e,t);switch(i){case`referenceHidden`:{let e=co(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:lo(e)}}}case`escaped`:{let e=co(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:lo(e)}}}default:return{}}}}},uo=new Set([`left`,`top`]);async function Qne(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Ya(n),s=Xa(n),c=$a(n)===`y`,l=uo.has(o)?-1:1,u=a&&c?-1:1,d=Ja(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var $ne=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Qne(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ere=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Ja(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=$a(Ya(i)),p=Za(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=qa(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=qa(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},tre=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Ja(e,t),u={x:n,y:r},d=$a(i),f=Za(d),p=u[f],m=u[d],h=Ja(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=uo.has(Ya(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},nre=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Ja(e,t),u=await o.detectOverflow(t,l),d=Ya(i),f=Xa(i),p=$a(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Ha(h-u[g],v),x=Ha(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Ua(u.left,0),t=Ua(u.right,0),n=Ua(u.top,0),r=Ua(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Ua(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Ua(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function fo(){return typeof window<`u`}function po(e){return go(e)?(e.nodeName||``).toLowerCase():`#document`}function mo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ho(e){return((go(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function go(e){return fo()?e instanceof Node||e instanceof mo(e).Node:!1}function _o(e){return fo()?e instanceof Element||e instanceof mo(e).Element:!1}function vo(e){return fo()?e instanceof HTMLElement||e instanceof mo(e).HTMLElement:!1}function yo(e){return!fo()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof mo(e).ShadowRoot}function bo(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Do(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function rre(e){return/^(table|td|th)$/.test(po(e))}function xo(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ire=/transform|translate|scale|rotate|perspective|filter/,are=/paint|layout|strict|content/,So=e=>!!e&&e!==`none`,Co;function wo(e){let t=_o(e)?Do(e):e;return So(t.transform)||So(t.translate)||So(t.scale)||So(t.rotate)||So(t.perspective)||!To()&&(So(t.backdropFilter)||So(t.filter))||ire.test(t.willChange||``)||are.test(t.contain||``)}function ore(e){let t=ko(e);for(;vo(t)&&!Eo(t);){if(wo(t))return t;if(xo(t))return null;t=ko(t)}return null}function To(){return Co??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Co}function Eo(e){return/^(html|body|#document)$/.test(po(e))}function Do(e){return mo(e).getComputedStyle(e)}function Oo(e){return _o(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ko(e){if(po(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||yo(e)&&e.host||ho(e);return yo(t)?t.host:t}function Ao(e){let t=ko(e);return Eo(t)?e.ownerDocument?e.ownerDocument.body:e.body:vo(t)&&bo(t)?t:Ao(t)}function jo(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Ao(e),i=r===e.ownerDocument?.body,a=mo(r);if(i){let e=Mo(a);return t.concat(a,a.visualViewport||[],bo(r)?r:[],e&&n?jo(e):[])}else return t.concat(r,jo(r,[],n))}function Mo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function No(e){let t=Do(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=vo(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Wa(n)!==a||Wa(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Po(e){return _o(e)?e:e.contextElement}function Fo(e){let t=Po(e);if(!vo(t))return Ka(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=No(t),o=(a?Wa(n.width):n.width)/r,s=(a?Wa(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var sre=Ka(0);function Io(e){let t=mo(e);return!To()||!t.visualViewport?sre:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cre(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==mo(e)?!1:t}function Lo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Po(e),o=Ka(1);t&&(r?_o(r)&&(o=Fo(r)):o=Fo(e));let s=cre(a,n,r)?Io(a):Ka(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=mo(a),t=r&&_o(r)?mo(r):r,n=e,i=Mo(n);for(;i&&r&&t!==n;){let e=Fo(i),t=i.getBoundingClientRect(),r=Do(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=mo(i),i=Mo(n)}}return oo({width:u,height:d,x:c,y:l})}function Ro(e,t){let n=Oo(e).scrollLeft;return t?t.left+n:Lo(ho(e)).left+n}function zo(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ro(e,n),y:n.top+t.scrollTop}}function lre(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=ho(r),s=t?xo(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Ka(1),u=Ka(0),d=vo(r);if((d||!d&&!a)&&((po(r)!==`body`||bo(o))&&(c=Oo(r)),d)){let e=Lo(r);l=Fo(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?zo(o,c):Ka(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function ure(e){return Array.from(e.getClientRects())}function dre(e){let t=ho(e),n=Oo(e),r=e.ownerDocument.body,i=Ua(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Ua(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Ro(e),s=-n.scrollTop;return Do(r).direction===`rtl`&&(o+=Ua(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Bo=25;function fre(e,t){let n=mo(e),r=ho(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=To();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Ro(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Bo&&(a-=o)}else l<=Bo&&(a+=l);return{width:a,height:o,x:s,y:c}}function pre(e,t){let n=Lo(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=vo(e)?Fo(e):Ka(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Vo(e,t,n){let r;if(t===`viewport`)r=fre(e,n);else if(t===`document`)r=dre(ho(e));else if(_o(t))r=pre(t,n);else{let n=Io(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return oo(r)}function Ho(e,t){let n=ko(e);return n===t||!_o(n)||Eo(n)?!1:Do(n).position===`fixed`||Ho(n,t)}function mre(e,t){let n=t.get(e);if(n)return n;let r=jo(e,[],!1).filter(e=>_o(e)&&po(e)!==`body`),i=null,a=Do(e).position===`fixed`,o=a?ko(e):e;for(;_o(o)&&!Eo(o);){let t=Do(o),n=wo(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||bo(o)&&!n&&Ho(e,o))?r=r.filter(e=>e!==o):i=t,o=ko(o)}return t.set(e,r),r}function hre(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?xo(t)?[]:mre(t,this._c):[].concat(n),r],o=Vo(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Vo(t,a[e],i);s=Ua(n.top,s),c=Ha(n.right,c),l=Ha(n.bottom,l),u=Ua(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function gre(e){let{width:t,height:n}=No(e);return{width:t,height:n}}function _re(e,t,n){let r=vo(t),i=ho(t),a=n===`fixed`,o=Lo(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Ka(0);function l(){c.x=Ro(i)}if(r||!r&&!a)if((po(t)!==`body`||bo(i))&&(s=Oo(t)),r){let e=Lo(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?zo(i,s):Ka(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Uo(e){return Do(e).position===`static`}function Wo(e,t){if(!vo(e)||Do(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return ho(e)===n&&(n=n.ownerDocument.body),n}function Go(e,t){let n=mo(e);if(xo(e))return n;if(!vo(e)){let t=ko(e);for(;t&&!Eo(t);){if(_o(t)&&!Uo(t))return t;t=ko(t)}return n}let r=Wo(e,t);for(;r&&rre(r)&&Uo(r);)r=Wo(r,t);return r&&Eo(r)&&Uo(r)&&!wo(r)?n:r||ore(e)||n}var vre=async function(e){let t=this.getOffsetParent||Go,n=this.getDimensions,r=await n(e.floating);return{reference:_re(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function yre(e){return Do(e).direction===`rtl`}var bre={convertOffsetParentRelativeRectToViewportRelativeRect:lre,getDocumentElement:ho,getClippingRect:hre,getOffsetParent:Go,getElementRects:vre,getClientRects:ure,getDimensions:gre,getScale:Fo,isElement:_o,isRTL:yre};function Ko(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xre(e,t){let n=null,r,i=ho(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Ga(d),h=Ga(i.clientWidth-(u+f)),g=Ga(i.clientHeight-(d+p)),_=Ga(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Ua(0,Ha(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Ko(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Sre(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Po(e),u=i||a?[...l?jo(l):[],...t?jo(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?xre(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Lo(e):null;c&&g();function g(){let t=Lo(e);h&&!Ko(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Cre=$ne,wre=ere,Tre=Xne,Ere=nre,Dre=Zne,Ore=Yne,kre=tre,Are=(e,t,n)=>{let r=new Map,i={platform:bre,...n},a={...i.platform,_c:r};return Jne(e,t,{...i,platform:a})};function qo(e=0,t=0,n=0,r=0){if(typeof DOMRect==`function`)return new DOMRect(e,t,n,r);let i={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...i,toJSON:()=>i}}function jre(e){if(!e)return qo();let{x:t,y:n,width:r,height:i}=e;return qo(t,n,r,i)}function Mre(e,t){return{contextElement:Ur(e)?e:e?.contextElement,getBoundingClientRect:()=>{let n=e,r=t?.(n);return r||!n?jre(r):n.getBoundingClientRect()}}}var Jo=e=>({variable:e,reference:`var(${e})`}),Yo={arrowSize:Jo(`--arrow-size`),arrowSizeHalf:Jo(`--arrow-size-half`),arrowBg:Jo(`--arrow-background`),transformOrigin:Jo(`--transform-origin`),arrowOffset:Jo(`--arrow-offset`)},Nre=e=>e===`top`||e===`bottom`?`y`:`x`;function Pre(e,t){return{name:`transformOrigin`,fn(n){let{elements:r,middlewareData:i,placement:a,rects:o,y:s}=n,c=a.split(`-`)[0],l=Nre(c),u=i.arrow?.x||0,d=i.arrow?.y||0,f=t?.clientWidth||0,p=t?.clientHeight||0,m=u+f/2,h=d+p/2,g=Math.abs(i.shift?.y||0),_=o.reference.height/2,v=p/2,y=e.offset?.mainAxis??e.gutter,b=typeof y==`number`?y+v:y??v,x=g>b,S={top:`${m}px calc(100% + ${b}px)`,bottom:`${m}px ${-b}px`,left:`calc(100% + ${b}px) ${h}px`,right:`${-b}px ${h}px`}[c],C=`${m}px ${o.reference.y+_-s}px`,w=!!e.overlap&&l===`y`&&x;return r.floating.style.setProperty(Yo.transformOrigin.variable,w?C:S),{data:{transformOrigin:w?C:S}}}}}var Fre={name:`rects`,fn({rects:e}){return{data:e}}},Ire=e=>{if(e)return{name:`shiftArrow`,fn({placement:t,middlewareData:n}){if(!n.arrow)return{};let{x:r,y:i}=n.arrow,a=t.split(`-`)[0];return Object.assign(e.style,{left:r==null?``:`${r}px`,top:i==null?``:`${i}px`,[a]:`calc(100% + ${Yo.arrowOffset.reference})`}),{}}}};function Lre(e){let[t,n]=e.split(`-`);return{side:t,align:n,hasAlign:n!=null}}function Xo(e){return e.split(`-`)[0]}var Rre={strategy:`absolute`,placement:`bottom`,listeners:!0,restoreStyles:!1,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function Zo(e,t){let n=e.devicePixelRatio||1;return Math.round(t*n)/n}function Qo(e,t){return e!=null&&Math.abs(e-t)<.5}function $o(e){return typeof e==`function`?e():e===`clipping-ancestors`?`clippingAncestors`:e}function zre(e,t,n){return Ore({element:e||t.createElement(`div`),padding:n.arrowPadding})}function Bre(e,t){if(!On(t.offset??t.gutter))return Cre(({placement:n})=>{let r=(e?.clientHeight||0)/2,i=t.offset?.mainAxis??t.gutter,a=typeof i==`number`?i+r:i??r,{hasAlign:o}=Lre(n),s=o?void 0:t.shift;return Qn({crossAxis:t.offset?.crossAxis??s,mainAxis:a,alignmentAxis:t.shift})})}function Vre(e){if(e.flip)return Tre(()=>{let t=$o(e.boundary);return{...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip}})}function Hre(e){if(!(!e.slide&&!e.overlap))return wre(()=>{let t=$o(e.boundary);return{...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:kre()}})}function Ure(e){if(e.sizeMiddleware===!1&&!e.sameWidth&&!e.fitViewport)return;let t,n,r,i;return Ere(()=>{let a=$o(e.boundary);return{padding:e.overflowPadding,...a?{boundary:a}:void 0,apply({elements:e,rects:a,availableHeight:o,availableWidth:s}){let c=e.floating,l=Math.round(a.reference.width),u=Math.round(a.reference.height);s=Math.floor(s),o=Math.floor(o),Qo(t,l)||(c.style.setProperty(`--reference-width`,`${l}px`),t=l),Qo(n,u)||(c.style.setProperty(`--reference-height`,`${u}px`),n=u),Qo(r,s)||(c.style.setProperty(`--available-width`,`${s}px`),r=s),Qo(i,o)||(c.style.setProperty(`--available-height`,`${o}px`),i=o)}}})}function Wre(e){if(e.hideWhenDetached)return Dre(()=>({strategy:`referenceHidden`,boundary:$o(e.boundary)??`clippingAncestors`}))}function Gre(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}var Kre=[`transform`,`visibility`,`pointer-events`,`--x`,`--y`,`--z-index`,`--reference-width`,`--reference-height`,`--available-width`,`--available-height`,`--transform-origin`],qre=[`top`,`right`,`bottom`,`left`];function es(e,t){if(!e)return zn;let n=new Map(t.map(t=>[t,e.style.getPropertyValue(t)]));return()=>{n.forEach((t,n)=>{t?e.style.setProperty(n,t):e.style.removeProperty(n)}),e.style.length===0&&e.removeAttribute(`style`)}}function ts(e){return e==null?null:Ur(e)?e:typeof e==`object`&&e&&`contextElement`in e&&e.contextElement?e.contextElement:e}function Jre(e,t,n={}){let r=()=>(typeof t==`function`?t():t)??null,i=()=>{let t=typeof e==`function`?e():e;return n.getAnchorElement?.()??t},a=()=>{let e=i();return!e&&!n.getAnchorRect?null:Mre(e,n.getAnchorRect)},o=Object.assign({},Rre,n),s=[],c=null,l,u;function d(e){l?.(),u?.(),c=e,l=o.restoreStyles?es(e,Kre):void 0;let t=e.querySelector(`[data-part=arrow]`);u=o.restoreStyles?es(t,qre):void 0,s=[Bre(t,o),Vre(o),Hre(o),zre(t,e.ownerDocument,o),Ire(t),Pre({gutter:o.gutter,offset:o.offset,overlap:o.overlap},t),Ure(o),Wre(o),Fre]}let{placement:f,strategy:p,onComplete:m,onPositioned:h}=o,g,_,v=!1,y,b,x=zn,S=Gre(o.listeners);function C(){if(!o.listeners)return;let e=i(),t=a(),n=r();!t||!n||(ts(e)!==ts(y)||n!==b)&&(x(),y=e,b=n,x=Sre(t,n,T,S))}async function w(){C();let e=r();if(!e)return;e!==c&&(d(e),v=!1);let t=a();if(!t)return;let n=await Are(t,e,{placement:f,middleware:s,strategy:p});m?.(n);let i=ei(e),l=Zo(i,n.x),u=Zo(i,n.y);if(Qo(g,l)||(e.style.setProperty(`--x`,`${l}px`),g=l),Qo(_,u)||(e.style.setProperty(`--y`,`${u}px`),_=u),o.hideWhenDetached&&(n.middlewareData.hide?.referenceHidden?(e.style.setProperty(`visibility`,`hidden`),e.style.setProperty(`pointer-events`,`none`)):(e.style.removeProperty(`visibility`),e.style.removeProperty(`pointer-events`))),!v){let t=e.firstElementChild;t&&(e.style.setProperty(`--z-index`,ii(t).zIndex),v=!0)}}async function T(){n.updatePosition?(await n.updatePosition({updatePosition:w,floatingElement:r()}),h?.({placed:!0})):await w()}return T(),()=>{x(),u?.(),l?.(),h?.({placed:!1})}}function ns(e,t,n={}){let{defer:r,...i}=n,a=r?Ii:e=>e(),o=[];return o.push(a(()=>{o.push(Jre(e,t,i))})),()=>{o.forEach(e=>e?.())}}var Yre={bottom:`rotate(45deg)`,left:`rotate(135deg)`,top:`rotate(225deg)`,right:`rotate(315deg)`};function rs(e={}){let{placement:t,sameWidth:n,fitViewport:r,strategy:i=`absolute`}=e;return{arrow:{position:`absolute`,width:Yo.arrowSize.reference,height:Yo.arrowSize.reference,[Yo.arrowSizeHalf.variable]:`calc(${Yo.arrowSize.reference} / 2)`,[Yo.arrowOffset.variable]:`calc(${Yo.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?Yre[t.split(`-`)[0]]:void 0,background:Yo.arrowBg.reference,top:`0`,left:`0`,width:`100%`,height:`100%`,position:`absolute`,zIndex:`inherit`},floating:{position:i,isolation:`isolate`,minWidth:n?void 0:`max-content`,width:n?`var(--reference-width)`:void 0,maxWidth:r?`var(--available-width)`:void 0,maxHeight:r?`var(--available-height)`:void 0,pointerEvents:t?void 0:`none`,top:`0px`,left:`0px`,transform:t?`translate3d(var(--x), var(--y), 0)`:`translate3d(0, -100vh, 0)`,zIndex:`var(--z-index)`}}}var is=(e,t)=>{let n=e.ids?.trigger;return n==null?t?`hover-card:${e.id}:trigger:${t}`:`hover-card:${e.id}:trigger`:Dn(n)?n(t):n},as=e=>e.ids?.content??`hover-card:${e.id}:content`,os=e=>e.ids?.positioner??`hover-card:${e.id}:popper`,Xre=e=>e.ids?.arrow??`hover-card:${e.id}:arrow`,ss=e=>e.getById(is(e)),Zre=e=>e.getById(as(e)),cs=e=>e.getById(os(e)),ls=e=>Gi(e.getRootNode(),`[data-scope="hover-card"][data-part="trigger"][data-ownedby="${e.id}"]`),us=(e,t)=>t==null?ss(e)??ls(e)[0]:e.getById(is(e,t));function Qre(e,t){let{state:n,send:r,prop:i,context:a,scope:o}=e,s=n.hasTag(`open`),c=a.get(`triggerValue`),l=a.get(`currentPlacement`),u=l?Xo(l):void 0,d=rs({...i(`positioning`),placement:l});return{open:s,setOpen(e){n.hasTag(`open`)!==e&&(i(`disabled`)||r({type:e?`OPEN`:`CLOSE`}))},triggerValue:c,setTriggerValue(e){r({type:`TRIGGER_VALUE.SET`,value:e})},reposition(e={}){r({type:`POSITIONING.SET`,options:e})},getArrowProps(){return t.element({id:Xre(o),...Va.arrow.attrs,dir:i(`dir`),style:d.arrow})},getArrowTipProps(){return t.element({...Va.arrowTip.attrs,dir:i(`dir`),style:d.arrowTip})},getTriggerProps(e={}){let{value:n}=e,a=n==null?!1:c===n;return t.element({...Va.trigger.attrs,dir:i(`dir`),"data-placement":l,"data-side":u,id:is(o,n),"data-ownedby":o.id,"data-value":n,"data-current":F(a),"data-state":s?`open`:`closed`,onPointerEnter(e){e.pointerType!==`touch`&&(i(`disabled`)||r({type:s&&n!=null&&!a?`TRIGGER_VALUE.SET`:`POINTER_ENTER`,src:`trigger`,value:n}))},onPointerLeave(e){e.pointerType!==`touch`&&(i(`disabled`)||r({type:`POINTER_LEAVE`,src:`trigger`}))},onFocus(){i(`disabled`)||r({type:s&&n!=null&&!a?`TRIGGER_VALUE.SET`:`TRIGGER_FOCUS`,value:n})},onBlur(){i(`disabled`)||r({type:`TRIGGER_BLUR`})}})},getPositionerProps(){return t.element({id:os(o),...Va.positioner.attrs,dir:i(`dir`),style:d.floating})},getContentProps(){return t.element({...Va.content.attrs,dir:i(`dir`),id:as(o),hidden:!s,tabIndex:-1,"data-state":s?`open`:`closed`,"data-placement":l,"data-side":u,onPointerEnter(e){e.pointerType!==`touch`&&(i(`disabled`)||r({type:`POINTER_ENTER`,src:`content`}))},onPointerLeave(e){e.pointerType!==`touch`&&(i(`disabled`)||r({type:`POINTER_LEAVE`,src:`content`}))}})}}}function $re(e){let t={each(t){for(let n=0;n<e.frames?.length;n+=1){let r=e.frames[n];r&&t(r)}},addEventListener(e,n,r){return t.each(t=>{try{t.document.addEventListener(e,n,r)}catch{}}),()=>{try{t.removeEventListener(e,n,r)}catch{}}},removeEventListener(e,n,r){t.each(t=>{try{t.document.removeEventListener(e,n,r)}catch{}})}};return t}function eie(e){let t=e.frameElement==null?null:e.parent;return{addEventListener:(e,n,r)=>{try{t?.addEventListener(e,n,r)}catch{}return()=>{try{t?.removeEventListener(e,n,r)}catch{}}},removeEventListener:(e,n,r)=>{try{t?.removeEventListener(e,n,r)}catch{}}}}var ds=`pointerdown.outside`,fs=`focus.outside`;function tie(e){for(let t of e)if(Ur(t)&&ki(t))return!0;return!1}var ps=e=>`clientY`in e;function nie(e,t){if(!ps(t)||!e)return!1;let n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function rie(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function ms(e,t){if(!t||!ps(e))return!1;let n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,i=t.scrollWidth>t.clientWidth,a=i&&e.clientY>t.offsetTop+t.clientHeight;return rie({x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(i?16:0)},{x:e.clientX,y:e.clientY})?r||a:!1}function iie(e,t){let{exclude:n,onFocusOutside:r,onPointerDownOutside:i,onInteractOutside:a,defer:o,followControlledElements:s=!0}=t;if(!e)return;let c=$r(e),l=ei(e),u=$re(l),d=eie(l);function f(t,r){if(!Ur(r)||!r.isConnected||Qr(e,r)||nie(e,t)||s&&Iee(e,r))return!1;let i=c.querySelector(`[aria-controls="${e.id}"]`);return i&&ms(t,Bi(i))||ms(t,Bi(e))?!1:!n?.(r)}let p=new Set,m=qr(e?.getRootNode()),h=!1;function g(t){h=!0;let n=()=>{h=!1};c.addEventListener(`pointerup`,n,{once:!0}),l.addEventListener(`pointerup`,n,{once:!0});function r(n){let r=o&&!qee()?Ii:e=>e(),s=n??t,c=s?.composedPath?.()??[s?.target];r(()=>{let n=m?c[0]:fi(t);if(!(!e||!f(t,n))){if(i||a){let t=Bn(i,a);e.addEventListener(ds,t,{once:!0})}hs(e,ds,{bubbles:!1,cancelable:!0,detail:{originalEvent:s,contextmenu:_i(s),focusable:tie(c),target:n}})}})}t.pointerType===`touch`?(p.forEach(e=>e()),p.add(xi(c,`click`,r,{once:!0})),p.add(d.addEventListener(`click`,r,{once:!0})),p.add(u.addEventListener(`click`,r,{once:!0}))):r()}let _=new Set,v=setTimeout(()=>{_.add(xi(c,`pointerdown`,g,!0)),_.add(d.addEventListener(`pointerdown`,g,!0)),_.add(u.addEventListener(`pointerdown`,g,!0))},0);function y(t){h||(o?Ii:e=>e())(()=>{let n=t?.composedPath?.()??[t?.target],i=m?n[0]:fi(t);if(!(!e||!f(t,i))){if(r||a){let t=Bn(r,a);e.addEventListener(fs,t,{once:!0})}hs(e,fs,{bubbles:!1,cancelable:!0,detail:{originalEvent:t,contextmenu:!1,focusable:ki(i),target:i}})}})}return qee()||(_.add(xi(c,`focusin`,y,!0)),_.add(d.addEventListener(`focusin`,y,!0)),_.add(u.addEventListener(`focusin`,y,!0))),()=>{clearTimeout(v),p.forEach(e=>e()),_.forEach(e=>e())}}function aie(e,t){let{defer:n}=t,r=n?Ii:e=>e(),i=[];return i.push(r(()=>{let n=typeof e==`function`?e():e;i.push(iie(n,t))})),()=>{i.forEach(e=>e?.())}}function hs(e,t,n){let r=new(e.ownerDocument.defaultView||window).CustomEvent(t,n);return e.dispatchEvent(r)}function oie(e,t){return xi($r(e),`keydown`,e=>{e.key===`Escape`&&(e.isComposing||t?.(e))},{capture:!0})}var gs=`layer:request-dismiss`,_s={layers:[],branches:[],recentlyRemoved:new Set,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){return this.layers[this.count()-1]?.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 n=this.indexOf(e);return n===-1?[]:this.layers.slice(n+1).filter(e=>e.type===t)},getParentLayerOfType(e,t){let n=this.indexOf(e);if(!(n<=0))return this.layers.slice(0,n).reverse().find(e=>e.type===t)},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return!!(this.getNestedLayers(e).some(e=>Qr(e.node,t))||this.recentlyRemoved.size>0)},isInBranch(e){return Array.from(this.branches).some(t=>Qr(t,e))},add(e){let t=this.indexOf(e.node);t!==-1&&this.layers.splice(t,1),this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){let t=this.indexOf(e);t<0||(this.layers[t].styleTargets?.forEach(e=>{let t=e();t&&sie(t)}),this.recentlyRemoved.add(e),Li(()=>this.recentlyRemoved.delete(e)),t<this.count()-1&&this.getNestedLayers(e).forEach(t=>_s.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)=>{vs(e,t,e.node),e.styleTargets?.forEach(n=>{let r=n();if(!r||r===e.node)return;vs(e,t,r);let{zIndex:i}=ii(e.node);r.style.setProperty(`--z-index`,i)})})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){let n=this.indexOf(e);if(n===-1)return;let r=this.layers[n];lie(e,gs,e=>{r.requestDismiss?.(e),e.defaultPrevented||r?.dismiss()}),cie(e,gs,{originalLayer:e,targetLayer:t,originalIndex:n,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function vs(e,t,n){n.style.setProperty(`--layer-index`,`${t}`),n.removeAttribute(`data-nested`),n.removeAttribute(`data-has-nested`),_s.getParentLayerOfType(e.node,e.type)&&n.setAttribute(`data-nested`,e.type);let r=_s.countNestedLayersOfType(e.node,e.type);r>0&&n.setAttribute(`data-has-nested`,e.type),n.style.setProperty(`--nested-layer-count`,`${r}`)}function sie(e){e.style.removeProperty(`--layer-index`),e.style.removeProperty(`--nested-layer-count`),e.style.removeProperty(`--z-index`),e.removeAttribute(`data-nested`),e.removeAttribute(`data-has-nested`)}function cie(e,t,n){let r=new(e.ownerDocument.defaultView||window).CustomEvent(t,{cancelable:!0,bubbles:!0,detail:n});return e.dispatchEvent(r)}function lie(e,t,n){e.addEventListener(t,n,{once:!0})}var ys=new WeakMap,bs=new WeakMap;function uie(e){return _s.isBelowPointerBlockingLayer(e)?`none`:`auto`}function xs(e){let t=uie(e);e.style.pointerEvents!==t&&(e.style.pointerEvents=t)}function die(e){if(bs.has(e))return;let t=ei(e);if(t.MutationObserver===void 0)return;let n=new t.MutationObserver(()=>{bs.has(e)&&xs(e)});n.observe(e,{attributes:!0,attributeFilter:[`style`]}),bs.set(e,n)}function Ss(){_s.layers.forEach(({node:e})=>{xs(e),die(e)})}function fie(e){let t=bs.get(e);t&&(t.disconnect(),bs.delete(e)),e.style.pointerEvents=``}function pie(e,t){let n=$r(e),r=[];return _s.hasPointerBlockingLayer()&&!n.body.hasAttribute(`data-inert`)&&(ys.set(n.body,n.body.style.pointerEvents),queueMicrotask(()=>{let e=n.body;e&&(e.style.pointerEvents=`none`,e.setAttribute(`data-inert`,``))})),t?.forEach(e=>{let[t,n]=Zte(()=>{let t=e();return Ur(t)?t:null},{timeout:1e3});t.then(e=>r.push(Zi(e,{pointerEvents:`auto`}))),r.push(n)}),()=>{_s.hasPointerBlockingLayer()||(queueMicrotask(()=>{let e=n.body;if(!e)return;let t=ys.get(e);t!==void 0&&(e.style.pointerEvents=t,ys.delete(e)),e.removeAttribute(`data-inert`),e.style.length===0&&e.removeAttribute(`style`)}),r.forEach(e=>e()))}}function mie(e,t){let{warnOnMissingNode:n=!0}=t;if(n&&!e){ir("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;let{onDismiss:r,onRequestDismiss:i,pointerBlocking:a,exclude:o,debug:s,type:c=`dialog`,layerStyleTargets:l}=t,u={dismiss:r,node:e,type:c,pointerBlocking:a,requestDismiss:i,styleTargets:l};_s.add(u),Ss();function d(n){let i=fi(n.detail.originalEvent);_s.isBelowPointerBlockingLayer(e)||_s.isInBranch(i)||(t.onPointerDownOutside?.(n),t.onInteractOutside?.(n),!n.defaultPrevented&&(s&&console.log(`onPointerDownOutside:`,n.detail.originalEvent),r?.()))}function f(e){let n=fi(e.detail.originalEvent);_s.isInBranch(n)||(t.onFocusOutside?.(e),t.onInteractOutside?.(e),!e.defaultPrevented&&(s&&console.log(`onFocusOutside:`,e.detail.originalEvent),r?.()))}function p(n){_s.isTopMost(e)&&(t.onEscapeKeyDown?.(n),!n.defaultPrevented&&r&&(n.preventDefault(),r()))}function m(n){if(!e)return!1;let r=typeof o==`function`?o():o,i=Array.isArray(r)?r:[r],a=t.persistentElements?.map(e=>e()).filter(Ur);return a&&i.push(...a),i.some(e=>Qr(e,n))||_s.isInNestedLayer(e,n)}let h=[a?pie(e,t.persistentElements):void 0,oie(e,p),aie(e,{exclude:m,onFocusOutside:f,onPointerDownOutside:d,defer:t.defer})];return()=>{_s.remove(e),Ss(),fie(e),h.forEach(e=>e?.())}}function Cs(e,t){let{defer:n}=t,r=n?Ii:e=>e(),i=[];return i.push(r(()=>{let n=Dn(e)?e():e;i.push(mie(n,t))})),()=>{i.forEach(e=>e?.())}}function hie(e,t={}){let{defer:n}=t,r=n?Ii:e=>e(),i=[];return i.push(r(()=>{let t=Dn(e)?e():e;if(!t){ir("[@zag-js/dismissable] branch node is `null` or `undefined`");return}_s.addBranch(t),i.push(()=>{_s.removeBranch(t)})})),()=>{i.forEach(e=>e?.())}}var{not:ws,and:Ts}=Mr(),gie=Nr({props({props:e}){return{disabled:!1,openDelay:600,closeDelay:300,...e,positioning:{placement:`bottom`,...e.positioning}}},initialState({prop:e}){return e(`open`)||e(`defaultOpen`)?`open`:`closed`},context({prop:e,bindable:t,scope:n}){return{open:t(()=>({defaultValue:e(`defaultOpen`),value:e(`open`)})),currentPlacement:t(()=>({defaultValue:void 0})),isPointer:t(()=>({defaultValue:!1})),triggerValue:t(()=>({defaultValue:e(`defaultTriggerValue`)??null,value:e(`triggerValue`),onChange(t){let r=e(`onTriggerValueChange`);r&&r({value:t,triggerElement:us(n,t)})}}))}},watch({track:e,context:t,action:n,prop:r,send:i}){e([()=>r(`disabled`)],()=>{r(`disabled`)&&i({type:`CLOSE`,src:`disabled.change`})}),e([()=>t.get(`open`)],()=>{n([`toggleVisibility`])})},on:{"TRIGGER_VALUE.SET":{actions:[`setTriggerValue`,`reposition`]}},states:{closed:{tags:[`closed`],entry:[`clearIsPointer`],on:{"CONTROLLED.OPEN":{target:`open`},POINTER_ENTER:{target:`opening`,actions:[`setIsPointer`,`setTriggerValue`]},TRIGGER_FOCUS:{target:`opening`,actions:[`setTriggerValue`]},OPEN:{target:`opening`,actions:[`setTriggerValue`]}}},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:Ts(`isOpenControlled`,ws(`isPointer`)),actions:[`invokeOnClose`,`toggleVisibility`]},{guard:ws(`isPointer`),target:`closed`,actions:[`invokeOnClose`]}],CLOSE:[{guard:`isOpenControlled`,actions:[`invokeOnClose`,`toggleVisibility`]},{target:`closed`,actions:[`invokeOnClose`]}],"TRIGGER_VALUE.SET":{actions:[`setTriggerValue`]}}},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:Ts(`isOpenControlled`,ws(`isPointer`)),actions:[`invokeOnClose`]},{guard:ws(`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`]},TRIGGER_FOCUS:{target:`open`,actions:[`setTriggerValue`]},"TRIGGER_VALUE.SET":{target:`open`,actions:[`setTriggerValue`,`reposition`]}}}},implementations:{guards:{isPointer:({context:e})=>!!e.get(`isPointer`),isOpenControlled:({prop:e})=>e(`open`)!=null},effects:{waitForOpenDelay({send:e,prop:t}){let n=setTimeout(()=>{e({type:`OPEN_DELAY`})},t(`openDelay`));return()=>clearTimeout(n)},waitForCloseDelay({send:e,prop:t}){let n=setTimeout(()=>{e({type:`CLOSE_DELAY`})},t(`closeDelay`));return()=>clearTimeout(n)},trackPositioning({context:e,prop:t,scope:n}){return e.get(`currentPlacement`)||e.set(`currentPlacement`,t(`positioning`).placement),ns(()=>us(n,e.get(`triggerValue`)),()=>cs(n),{...t(`positioning`),defer:!0,onComplete(t){e.set(`currentPlacement`,t.placement)}})},trackDismissableElement({send:e,scope:t,prop:n}){return Cs(()=>Zre(t),{type:`popover`,defer:!0,exclude:[ss(t),...ls(t)].filter(Boolean),onDismiss(){e({type:`CLOSE`,src:`interact-outside`})},onInteractOutside:n(`onInteractOutside`),onPointerDownOutside:n(`onPointerDownOutside`),onFocusOutside(e){e.preventDefault(),n(`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:n,event:r}){ns(()=>us(n,e.get(`triggerValue`)),()=>cs(n),{...t(`positioning`),...r.options,defer:!0,listeners:!1,onComplete(t){e.set(`currentPlacement`,t.placement)}})},setTriggerValue({context:e,event:t}){t.value!==void 0&&e.set(`triggerValue`,t.value)},toggleVisibility({prop:e,event:t,send:n}){queueMicrotask(()=>{n({type:e(`open`)?`CONTROLLED.OPEN`:`CONTROLLED.CLOSE`,previousEvent:t})})}}}}),[_ie,Es]=cr({hookName:`useHoverCardContext`,providerName:`<HoverCardProvider />`}),vie=e=>{let t=Es(),n=I(()=>t().getArrowProps(),e);return A(L.div,n)},yie=e=>{let t=Es(),n=I(()=>t().getArrowTipProps(),e);return A(L.div,n)},bie=e=>{let t=Es(),n=Ba(),r=I(()=>t().getContentProps(),()=>n().presenceProps,e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,j(r,{ref(t){var r=La(n().ref,e.ref);typeof r==`function`&&r(t)}}))}})},xie=e=>e.children(Es()),Sie=e=>{let t=Es(),n=Ba(),r=I(()=>t().getPositionerProps(),e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,r)}})},Cie=e=>{let t=ua(),n=la(),r=ct(),i=na(gie,k(()=>({id:r,dir:t().dir,getRootNode:n().getRootNode,...pr(e)})));return k(()=>Qre(i,oa))},wie=e=>{let[t,n]=Ra(e),[r,i]=$t()(n,[`closeDelay`,`defaultOpen`,`disabled`,`id`,`ids`,`onFocusOutside`,`onInteractOutside`,`onOpenChange`,`onPointerDownOutside`,`open`,`openDelay`,`positioning`,`triggerValue`,`defaultTriggerValue`,`onTriggerValueChange`]),a=Cie(r),o=Ia(I(t,()=>({present:a().open})));return A(_ie,{value:a,get children(){return A(za,{value:o,get children(){return i.children}})}})},Tie=e=>{let[t,n]=Ra(e),r=Ia(I(t,()=>({present:n.value().open})));return A(_ie,{get value(){return n.value},get children(){return A(za,{value:r,get children(){return n.children}})}})},Eie=e=>{let[t,n]=$t()(e,[`value`]),r=Es(),i=I(()=>r().getTriggerProps(t),n);return A(L.button,i)},Ds={};da(Ds,{Arrow:()=>vie,ArrowTip:()=>yie,Content:()=>bie,Context:()=>xie,Positioner:()=>Sie,Root:()=>wie,RootProvider:()=>Tie,Trigger:()=>Eie});var Die=Object.defineProperty,Oie=(e,t,n)=>t in e?Die(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Os=(e,t,n)=>Oie(e,typeof t==`symbol`?t:t+``,n),ks=fa(`scroll-area`).parts(`root`,`viewport`,`content`,`scrollbar`,`thumb`,`corner`).build(),As=e=>e.ids?.root??`scroll-area-${e.id}`,kie=e=>e.ids?.viewport??`scroll-area-${e.id}:viewport`,Aie=e=>e.ids?.content??`scroll-area-${e.id}:content`,js=e=>e.getById(As(e)),Ms=e=>e.getById(kie(e)),jie=e=>e.getById(Aie(e)),Ns=e=>Ki(js(e),`[data-part=scrollbar][data-orientation=horizontal][data-ownedby="${As(e)}"]`),Ps=e=>Ki(js(e),`[data-part=scrollbar][data-orientation=vertical][data-ownedby="${As(e)}"]`),Fs=e=>Ki(Ns(e),`[data-part=thumb][data-orientation=horizontal][data-ownedby="${As(e)}"]`),Is=e=>Ki(Ps(e),`[data-part=thumb][data-orientation=vertical][data-ownedby="${As(e)}"]`),Mie=e=>Ki(js(e),`[data-part=corner][data-ownedby="${As(e)}"]`);function Nie(e,t){if(!e)return Pie;let n=0,r=0,i=e.scrollWidth-e.clientWidth;i>t&&(n=Math.min(1,Math.max(0,e.scrollLeft/i)));let a=e.scrollHeight-e.clientHeight;return a>t&&(r=Math.min(1,Math.max(0,e.scrollTop/a))),{x:n,y:r}}var Pie={x:0,y:0},Fie=300,Iie=e=>e*(2-e);function Lie(e,t={}){let{top:n,left:r,duration:i=Fie,easing:a=Iie,onComplete:o}=t;if(!e)return;let s={startTime:0,startScrollTop:e.scrollTop,startScrollLeft:e.scrollLeft,targetScrollTop:n??e.scrollTop,targetScrollLeft:r??e.scrollLeft},c=!1,l=()=>{s.rafId&&=(cancelAnimationFrame(s.rafId),void 0),c=!0},u=t=>{if(c)return;s.startTime===0&&(s.startTime=t);let n=t-s.startTime,r=Math.min(n/i,1),l=a(r),d=s.targetScrollTop-s.startScrollTop,f=s.targetScrollLeft-s.startScrollLeft;e.scrollTop=s.startScrollTop+d*l,e.scrollLeft=s.startScrollLeft+f*l,r<1?s.rafId=requestAnimationFrame(u):o?.()};return s.rafId=requestAnimationFrame(u),l}function Rie(e,t={}){if(!e)return;let{top:n,left:r,behavior:i=`smooth`,easing:a,duration:o}=t;if(i===`smooth`)Lie(e,{top:n,left:r,easing:a,duration:o});else{let t=Qn({behavior:i,top:n,left:r});e.scrollTo(t)}}function zie(e,t,n,r=`smooth`,i,a){if(!e)return;let o=e.scrollWidth-e.clientWidth,s=e.scrollHeight-e.clientHeight,c=n===`rtl`,l,u;switch(t){case`top`:l=0;break;case`bottom`:l=s;break;case`left`:u=c&&e.scrollLeft<=0?-o:0;break;case`right`:u=c&&e.scrollLeft<=0?0:o;break}if(r===`smooth`)Lie(e,{top:l,left:u,easing:i,duration:a});else{let t=Qn({left:u,top:l,behavior:r});e.scrollTo(t)}}function Bie(e,t){let{state:n,send:r,context:i,prop:a,scope:o}=e,s=n.matches(`dragging`),c=i.get(`hovering`),l=i.get(`cornerSize`),u=i.get(`thumbSize`),d=i.get(`hiddenState`),f=i.get(`atSides`);return{isAtTop:f.top,isAtBottom:f.bottom,isAtLeft:f.left,isAtRight:f.right,hasOverflowX:!d.scrollbarXHidden,hasOverflowY:!d.scrollbarYHidden,getScrollProgress(){return Nie(Ms(o),0)},scrollToEdge(e){let{edge:t,behavior:n}=e;return zie(Ms(o),t,a(`dir`),n)},scrollTo(e){return Rie(Ms(o),e)},getScrollbarState(e){let t=e.orientation===`horizontal`;return{hovering:c,dragging:s,scrolling:i.get(t?`scrollingX`:`scrollingY`),hidden:t?d.scrollbarXHidden:d.scrollbarYHidden}},getRootProps(){return t.element({...ks.root.attrs,id:As(o),dir:a(`dir`),role:`presentation`,"data-overflow-x":F(!d.scrollbarXHidden),"data-overflow-y":F(!d.scrollbarYHidden),onPointerEnter(e){let t=fi(e);Qr(e.currentTarget,t)&&r({type:`root.pointerenter`,pointerType:e.pointerType})},onPointerMove(e){let t=fi(e);Qr(e.currentTarget,t)&&r({type:`root.pointerenter`,pointerType:e.pointerType})},onPointerDown({pointerType:e}){r({type:`root.pointerdown`,pointerType:e})},onPointerLeave(e){Qr(e.currentTarget,e.relatedTarget)||r({type:`root.pointerleave`})},style:{position:`relative`,"--corner-width":Zn(l?.width),"--corner-height":Zn(l?.height),"--thumb-width":Zn(u?.width),"--thumb-height":Zn(u?.height)}})},getViewportProps(){let e=()=>{r({type:`user.scroll`})};return t.element({...ks.viewport.attrs,role:`presentation`,"data-ownedby":As(o),id:kie(o),"data-at-top":F(f.top),"data-at-bottom":F(f.bottom),"data-at-left":F(f.left),"data-at-right":F(f.right),"data-overflow-x":F(!d.scrollbarXHidden),"data-overflow-y":F(!d.scrollbarYHidden),tabIndex:d.scrollbarXHidden||d.scrollbarYHidden?void 0:0,style:{overflow:`auto`},onScroll(e){r({type:`viewport.scroll`,target:e.currentTarget})},onWheel:e,onTouchMove:e,onPointerMove:e,onPointerEnter:e,onKeyDown:e})},getContentProps(){return t.element({...ks.content.attrs,id:Aie(o),role:`presentation`,"data-overflow-x":F(!d.scrollbarXHidden),"data-overflow-y":F(!d.scrollbarYHidden),style:{minWidth:`fit-content`}})},getScrollbarProps(e={}){let{orientation:n=`vertical`}=e;return t.element({...ks.scrollbar.attrs,"data-ownedby":As(o),"data-orientation":n,"data-scrolling":F(i.get(n===`horizontal`?`scrollingX`:`scrollingY`)),"data-hover":F(c),"data-dragging":F(s),"data-overflow-x":F(!d.scrollbarXHidden),"data-overflow-y":F(!d.scrollbarYHidden),onPointerUp(){r({type:`scrollbar.pointerup`,orientation:n})},onPointerDown(e){e.button===0&&e.currentTarget===e.target&&(r({type:`scrollbar.pointerdown`,orientation:n,point:bi(e)}),e.stopPropagation())},style:{position:`absolute`,touchAction:`none`,WebkitUserSelect:`none`,userSelect:`none`,...n===`vertical`&&{top:0,bottom:`var(--corner-height)`,insetInlineEnd:0},...n===`horizontal`&&{insetInlineStart:0,insetInlineEnd:`var(--corner-width)`,bottom:0}}})},getThumbProps(e={}){let{orientation:n=`vertical`}=e;return t.element({...ks.thumb.attrs,"data-ownedby":As(o),"data-orientation":n,"data-hover":F(c),"data-dragging":F(s),onPointerDown(e){e.button===0&&r({type:`thumb.pointerdown`,orientation:n,point:bi(e)})},style:{...n===`vertical`&&{height:`var(--thumb-height)`},...n===`horizontal`&&{width:`var(--thumb-width)`}}})},getCornerProps(){return t.element({...ks.corner.attrs,"data-ownedby":As(o),"data-hover":F(c),"data-state":d.cornerHidden?`hidden`:`visible`,"data-overflow-x":F(!d.scrollbarXHidden),"data-overflow-y":F(!d.scrollbarYHidden),style:{position:`absolute`,bottom:0,insetInlineEnd:0,width:`var(--corner-width)`,height:`var(--corner-height)`}})}}}function Ls(e,t,n){if(!e)return 0;let r=ii(e),i=n===`x`?`Inline`:`Block`;return n===`x`&&t===`margin`?parseFloat(r[`${t}InlineStart`])*2:parseFloat(r[`${t}${i}Start`])+parseFloat(r[`${t}${i}End`])}function Vie(e,t){let n=e.scrollTop,r=e.scrollLeft,i=t===`rtl`,a=e.scrollHeight-e.clientHeight>1,o=e.scrollWidth-e.clientWidth>1,s=e.scrollWidth-e.clientWidth,c=e.scrollHeight-e.clientHeight,l=!1,u=!1,d=!1,f=!1;return o&&(i&&r<=0?(l=Math.abs(r)>=s-1,u=Math.abs(r)<=1):(l=r<=1,u=r>=s-1)),a&&(d=n<=1,f=n>=c-1),{top:d,right:u,bottom:f,left:l}}var Rs=0,zs=class{constructor(){Os(this,`currentId`,Rs),Os(this,`clear`,()=>{this.currentId!==Rs&&(clearTimeout(this.currentId),this.currentId=Rs)}),Os(this,`disposeEffect`,()=>this.clear)}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Rs,t()},e)}isStarted(){return this.currentId!==Rs}},Hie=20,Bs=1e3,Uie=Nr({props({props:e}){return sr(e,[`id`]),e},context({bindable:e}){return{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){return`Y:${e.scrollbarYHidden} X:${e.scrollbarXHidden} C:${e.cornerHidden}`}}))}},refs(){return{orientation:`vertical`,scrollPosition:{x:0,y:0},scrollYTimeout:new zs,scrollXTimeout:new zs,scrollEndTimeout:new zs,startX:0,startY:0,startScrollTop:0,startScrollLeft:0,programmaticScroll:!0}},initialState(){return`idle`},watch({track:e,prop:t,context:n,send:r}){e([()=>t(`dir`),()=>n.hash(`hiddenState`)],()=>{r({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`,t.pointerType===`touch`)},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(t.orientation===`vertical`?`scrollingY`:`scrollingX`,!1)},setThumbSize({context:e,scope:t,prop:n}){let r=Ms(t);if(!r)return;let i=r.scrollHeight,a=r.scrollWidth;if(i===0||a===0)return;let o=Ps(t),s=Ns(t),c=Is(t),l=Fs(t),u=r.clientHeight,d=r.clientWidth,f=r.scrollTop,p=r.scrollLeft,m=u>=i,h=d>=a,g=d/a,_=u/i,v=h?0:d,y=m?0:u,b=Ls(s,`padding`,`x`),x=Ls(o,`padding`,`y`),S=Ls(l,`margin`,`x`),C=Ls(c,`margin`,`y`),w=v-b-S,T=y-x-C,E=s?Math.min(s.offsetWidth,w):w,ee=o?Math.min(o.offsetHeight,T):T,te=Math.max(Hie,E*g),ne=Math.max(Hie,ee*_);if(e.set(`thumbSize`,e=>e.height===ne&&e.width===te?e:{width:te,height:ne}),o&&c){let e=o.offsetHeight-ne-x-C,t=f/(i-u),n=Math.min(e,Math.max(0,t*e));c.style.transform=`translate3d(0,${n}px,0)`}if(s&&l){let e=s.offsetWidth-te-b-S,t=p/(a-d),r=n(`dir`)===`rtl`?Yn(t*e,-e,0):Yn(t*e,0,e);l.style.transform=`translate3d(${r}px,0,0)`}if(Mie(t)){if(h||m)e.set(`cornerSize`,{width:0,height:0});else if(!h&&!m){let t=o?.offsetWidth||0,n=s?.offsetHeight||0;e.set(`cornerSize`,{width:t,height:n})}}e.set(`hiddenState`,e=>{let t=m||h;return e.scrollbarYHidden===m&&e.scrollbarXHidden===h&&e.cornerHidden===t?e:{scrollbarYHidden:m,scrollbarXHidden:h,cornerHidden:t}}),e.set(`atSides`,e=>{let t=Vie(r,n(`dir`));return bn(e,t)?e:t});let re=Math.max(0,i-u),D=Math.max(0,a-d),ie=0,ae=0;h||(ie=n(`dir`)===`rtl`?Yn(-p,0,D):Yn(p,0,D),ae=D-ie);let oe=m?0:Yn(f,0,re),se=m?0:re-oe;Qi(r,`--scroll-area-overflow-x-start`,`${ie}px`),Qi(r,`--scroll-area-overflow-x-end`,`${ae}px`),Qi(r,`--scroll-area-overflow-y-start`,`${oe}px`),Qi(r,`--scroll-area-overflow-y-end`,`${se}px`)},checkHovering({scope:e,context:t}){Ms(e)?.matches(`:hover`)&&t.set(`hovering`,!0)},setScrolling({event:e,refs:t,context:n,prop:r}){let i={x:e.target.scrollLeft,y:e.target.scrollTop},a=t.get(`scrollPosition`),o=i.x-a.x,s=i.y-a.y;t.set(`scrollPosition`,i),n.set(`atSides`,t=>{let n=Vie(e.target,r(`dir`));return bn(t,n)?t:n}),s!==0&&(n.set(`scrollingY`,!0),t.get(`scrollYTimeout`).start(Bs,()=>{n.set(`scrollingY`,!1)})),o!==0&&(n.set(`scrollingX`,!0),t.get(`scrollXTimeout`).start(Bs,()=>{n.set(`scrollingX`,!1)}))},scrollToPointer({event:e,scope:t,prop:n}){let r=Ms(t);if(!r)return;let i=Is(t),a=Ps(t),o=Fs(t),s=Ns(t),c=e.point;if(i&&a&&e.orientation===`vertical`){let e=Ls(i,`margin`,`y`),t=Ls(a,`padding`,`y`),n=i.offsetHeight,o=a.getBoundingClientRect(),s=c.y-o.top-n/2-t+e/2,l=r.scrollHeight,u=r.clientHeight;r.scrollTop=s/(a.offsetHeight-n-t-e)*(l-u)}if(o&&s&&e.orientation===`horizontal`){let e=Ls(o,`margin`,`x`),t=Ls(s,`padding`,`x`),i=o.offsetWidth,a=s.getBoundingClientRect(),l=c.x-a.left-i/2-t+e/2,u=r.scrollWidth,d=r.clientWidth,f=l/(s.offsetWidth-i-t-e),p;n(`dir`)===`rtl`?(p=(1-f)*(u-d),r.scrollLeft<=0&&(p=-p)):p=f*(u-d),r.scrollLeft=p}},startDragging({event:e,refs:t,scope:n}){t.set(`startX`,e.point.x),t.set(`startY`,e.point.y),t.set(`orientation`,e.orientation);let r=Ms(n);r&&(t.set(`startScrollTop`,r.scrollTop),t.set(`startScrollLeft`,r.scrollLeft))},setDraggingScroll({event:e,refs:t,scope:n,context:r}){let i=t.get(`startY`),a=t.get(`startX`),o=t.get(`startScrollTop`),s=t.get(`startScrollLeft`),c=e.point,l=c.y-i,u=c.x-a,d=Ms(n);if(!d)return;let f=d.scrollHeight,p=d.clientHeight,m=d.scrollWidth,h=d.clientWidth,g=t.get(`orientation`),_=Is(n),v=Ps(n);if(_&&v&&g===`vertical`){let e=Ls(v,`padding`,`y`),n=Ls(_,`margin`,`y`),i=_.offsetHeight;d.scrollTop=o+l/(v.offsetHeight-i-e-n)*(f-p),r.set(`scrollingY`,!0),t.get(`scrollYTimeout`).start(Bs,()=>{r.set(`scrollingY`,!1)})}let y=Fs(n),b=Ns(n);if(y&&b&&g===`horizontal`){let e=Ls(b,`padding`,`x`),n=Ls(y,`margin`,`x`),i=y.offsetWidth;d.scrollLeft=s+u/(b.offsetWidth-i-e-n)*(m-h),r.set(`scrollingX`,!0),t.get(`scrollXTimeout`).start(Bs,()=>{r.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 n=jie(e),r=js(e);if(!n||!r)return;let i=new(e.getWin()).ResizeObserver(()=>{setTimeout(()=>{t({type:`thumb.measure`})},1)});return i.observe(n),i.observe(r),()=>{i.disconnect()}},trackViewportVisibility({scope:e,send:t}){let n=e.getWin(),r=Ms(e);if(!r)return;let i=new n.IntersectionObserver(e=>{e.forEach(e=>{e.intersectionRatio>0&&(t({type:`thumb.measure`}),i.disconnect())})});return i.observe(r),()=>{i.disconnect()}},trackWheelEvent({scope:e}){let t=Ps(e),n=Ns(e);if(!t&&!n)return;let r=t=>{let n=Ms(e);if(!n||t.ctrlKey)return;let r=t.currentTarget.dataset.orientation;if(r===`vertical`){let e=n.scrollHeight>n.clientHeight,r=n.scrollTop===0&&t.deltaY<0,i=n.scrollTop===n.scrollHeight-n.clientHeight&&t.deltaY>0;if(!(e&&t.deltaY!==0&&!(r||i)))return;t.preventDefault(),n.scrollTop+=t.deltaY}else if(r===`horizontal`){let e=n.scrollWidth>n.clientWidth,r=n.scrollLeft===0&&t.deltaX<0,i=n.scrollLeft===n.scrollWidth-n.clientWidth&&t.deltaX>0;if(!(e&&t.deltaX!==0&&!(r||i)))return;t.preventDefault(),n.scrollLeft+=t.deltaX}};return Bn(t&&xi(t,`wheel`,r,{passive:!1}),n&&xi(n,`wheel`,r,{passive:!1}))},trackPointerMove({scope:e,send:t,refs:n}){let r=e.getDoc(),i=n.get(`orientation`);return Mte(r,{onPointerMove({point:e}){t({type:`thumb.pointermove`,orientation:i,point:e})},onPointerUp(){t({type:`thumb.pointerup`,orientation:i})}})}}}}),[Wie,Vs]=cr({hookName:`useScrollAreaContext`,providerName:`<ScrollAreaProvider />`});function Gie(e){return e.children(Vs())}var Kie=e=>{let t=Vs(),n=I(()=>t().getContentProps(),e);return A(L.div,n)},qie=e=>{let t=Vs(),n=I(()=>t().getCornerProps(),e);return A(L.div,n)},Jie=(e={})=>{let t=ct(),n=ua(),r=la(),i=na(Uie,k(()=>({id:t,dir:n().dir,getRootNode:r().getRootNode,...e})));return k(()=>Bie(i,oa))},Yie=e=>{let[t,n]=$t()(e,[`id`,`ids`]),r=Jie(t),i=I(()=>r().getRootProps(),n);return A(Wie,{value:r,get children(){return A(L.div,i)}})},Xie=e=>{let{value:t,children:n,...r}=e;return A(Wie,{value:t,get children(){return A(L.div,j(r,{children:n}))}})},[Zie,Qie]=cr({hookName:`useScrollAreaScrollbarContext`,providerName:`<ScrollAreaScrollbarProvider />`}),$ie=e=>{let[t,n]=$t()(e,[`orientation`]),r=Vs(),i=I(()=>r().getScrollbarProps(t),n);return A(Zie,{value:t,get children(){return A(L.div,i)}})},eae=e=>{let t=Vs(),n=Qie(),r=I(()=>t().getThumbProps(n),e);return A(L.div,r)},tae=e=>{let t=Vs(),n=I(()=>t().getViewportProps(),e);return A(L.div,n)},Hs={};da(Hs,{Content:()=>Kie,Context:()=>Gie,Corner:()=>qie,Root:()=>Yie,RootProvider:()=>Xie,Scrollbar:()=>$ie,Thumb:()=>eae,Viewport:()=>tae});var Us=fa(`fieldset`).parts(`root`,`errorText`,`helperText`,`legend`).build(),[nae,Ws]=cr({hookName:`useFieldsetContext`,providerName:`<FieldsetProvider />`,strict:!1}),rae=e=>e.children(Ws()),iae=e=>{let t=Ws(),n=I(()=>t().getErrorTextProps(),e);return A(M,{get when(){return t().invalid},get children(){return A(L.span,n)}})},aae=e=>{let t=Ws(),n=I(()=>t().getHelperTextProps(),e);return A(L.span,n)},oae=e=>{let t=Ws(),n=I(()=>t().getLegendProps(),e);return A(L.legend,n)},sae=e=>{let t=la(),n=j({disabled:!1,invalid:!1},pr(e)),[r,i]=O(void 0),a=n.id??ct(),o=`fieldset::${a}::legend`,s=`fieldset::${a}::error-text`,c=`fieldset::${a}::helper-text`,[l,u]=O(!1),[d,f]=O(!1);ve(()=>{let e=r();if(!e)return;let n=()=>{let e=t().getRootNode();u(!!e.getElementById(s)),f(!!e.getElementById(c))};n();let i=new(t().getWindow()).MutationObserver(n);i.observe(e,{childList:!0,subtree:!0}),ye(()=>i.disconnect())});let p=k(()=>{let e=[];return l()&&n.invalid&&e.push(s),d()&&e.push(c),e}),m=()=>({...Us.root.attrs,disabled:n.disabled,"data-disabled":F(n.disabled),"data-invalid":F(n.invalid),"aria-labelledby":o,"aria-describedby":p().join(` `)||void 0}),h=()=>({id:o,...Us.legend.attrs,"data-disabled":F(n.disabled),"data-invalid":F(n.invalid)}),g=()=>({id:c,...Us.helperText.attrs}),_=()=>({id:s,...Us.errorText.attrs,"aria-live":`polite`});return k(()=>({refs:{rootRef:i},ids:{legend:o,errorText:s,helperText:c},disabled:n.disabled,invalid:n.invalid,getRootProps:m,getLegendProps:h,getHelperTextProps:g,getErrorTextProps:_}))},cae=e=>{let[t,n]=$t()(e,[`id`,`disabled`,`invalid`]),r=sae(t),i=I(()=>r().getRootProps(),n);return A(nae,{value:r,get children(){return A(L.fieldset,j(i,{ref(t){var n=La(r().refs.rootRef,e.ref);typeof n==`function`&&n(t)}}))}})};cae.displayName=`FieldsetRoot`;var lae=e=>{let[{value:t},n]=$t()(e,[`value`]),r=I(()=>t().getRootProps(),n);return A(nae,{value:t,get children(){return A(L.fieldset,r)}})};da({},{Context:()=>rae,ErrorText:()=>iae,HelperText:()=>aae,Legend:()=>oae,Root:()=>cae,RootProvider:()=>lae});var Gs=fa(`field`).parts(`root`,`errorText`,`helperText`,`input`,`label`,`select`,`textarea`,`requiredIndicator`).build(),uae=e=>{if(!e)return;let t=ii(e),n=ei(e),r=$r(e),i=()=>{requestAnimationFrame(()=>{e.style.height=`auto`;let n;n=t.boxSizing===`content-box`?e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!==`none`&&n>parseFloat(t.maxHeight)?(t.overflowY===`hidden`&&(e.style.overflowY=`scroll`),n=parseFloat(t.maxHeight)):t.overflowY!==`hidden`&&(e.style.overflowY=`hidden`),e.style.height=`${n}px`})};e.addEventListener(`input`,i),e.form?.addEventListener(`reset`,i);let a=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),`value`);a&&Object.defineProperty(e,"value",{...a,set(t){let r=a.get?.call(this);a.set?.call(this,t),i(),r!==t&&queueMicrotask(()=>{e.dispatchEvent(new n.InputEvent(`input`,{bubbles:!0}))})}});let o=new n.ResizeObserver(()=>{requestAnimationFrame(()=>i())});o.observe(e);let s=new n.MutationObserver(()=>i());return s.observe(e,{attributes:!0,attributeFilter:[`rows`,`placeholder`]}),r.fonts?.addEventListener(`loadingdone`,i),()=>{e.removeEventListener(`input`,i),e.form?.removeEventListener(`reset`,i),r.fonts?.removeEventListener(`loadingdone`,i),o.disconnect(),s.disconnect()}},[Ks,qs]=cr({hookName:`useFieldContext`,providerName:`<FieldProvider />`,strict:!1}),dae=e=>e.children(qs()),fae=e=>{let t=qs(),n=I(()=>t().getErrorTextProps(),e);return A(M,{get when(){return t?.().invalid},get children(){return A(L.span,n)}})},pae=e=>{let t=qs(),n=I(()=>t().getHelperTextProps(),e);return A(L.span,n)},mae=e=>{let t=qs(),n=I(()=>t?.().getInputProps(),e);return A(L.input,n)},hae=e=>{let t=qs(),n=k(()=>{let n=t?.();if(!n)throw Error(`Field.Item must be used within Field.Root`);let r=`field::${n.ids.control}::item::${e.value}`,i=`${r}::label`,a=()=>({...n.getInputProps(),id:r});return()=>({...n,ids:{...n.ids,control:r,label:i},getLabelProps:()=>({...n.getLabelProps(),id:i,htmlFor:r}),getInputProps:()=>({...a(),...Gs.input.attrs}),getSelectProps:()=>({...a(),...Gs.select.attrs}),getTextareaProps:()=>({...a(),...Gs.textarea.attrs})})});return A(Ks,{get value(){return n()},get children(){return e.children}})},gae=e=>{let t=qs(),n=I(()=>t?.().getLabelProps(),e);return A(L.label,n)},_ae=e=>{let t=qs(),n=I(()=>t().getRequiredIndicatorProps(),e);return A(M,{get when(){return t().required},get fallback(){return e.fallback},get children(){return A(L.span,j(n,{get children(){return e.children??`*`}}))}})},vae=e=>{let t=Ws(),n=la(),r=j({disabled:!!t?.().disabled,required:!1,invalid:!1,readOnly:!1},e),[i,a]=O(!1),[o,s]=O(!1),c=r.id??ct(),[l,u]=O(void 0),d=r.ids?.control??`field::${c}`,f=r.ids?.errorText??`field::${c}::error-text`,p=r.ids?.helperText??`field::${c}::helper-text`,m=r.ids?.label??`field::${c}::label`;ve(()=>{let e=l();if(!e)return;let t=()=>{let e=n().getRootNode();a(!!e.getElementById(f)),s(!!e.getElementById(p))};t();let r=new(n().getWindow()).MutationObserver(t);r.observe(e,{childList:!0,subtree:!0}),ye(()=>r.disconnect())});let h=()=>({...Gs.root.attrs,id:d,role:`group`,"data-disabled":F(r.disabled),"data-invalid":F(r.invalid),"data-readonly":F(r.readOnly)}),g=r.target?`field::${c}::item::${r.target}`:void 0,_=()=>({...Gs.label.attrs,id:m,"data-disabled":F(r.disabled),"data-invalid":F(r.invalid),"data-readonly":F(r.readOnly),"data-required":F(r.required),htmlFor:g??c}),v=k(()=>{let e=[];return i()&&r.invalid&&e.push(f),o()&&e.push(p),e}),y=()=>({"aria-describedby":v().join(` `)||void 0,"aria-invalid":Hr(r.invalid),"data-invalid":F(r.invalid),"data-required":F(r.required),"data-readonly":F(r.readOnly),id:c,required:r.required,disabled:r.disabled,readOnly:r.readOnly||void 0}),b=()=>({...y(),...Gs.input.attrs}),x=()=>({...y(),...Gs.textarea.attrs}),S=()=>({...y(),...Gs.select.attrs}),C=()=>({id:p,...Gs.helperText.attrs,"data-disabled":F(r.disabled)}),w=()=>({id:f,...Gs.errorText.attrs,"aria-live":`polite`}),T=()=>({"aria-hidden":!0,...Gs.requiredIndicator.attrs});return k(()=>({ariaDescribedby:v().join(` `),ids:{control:c,label:m,errorText:f,helperText:p},refs:{rootRef:u},disabled:r.disabled,invalid:r.invalid,readOnly:r.readOnly,required:r.required,getLabelProps:_,getRootProps:h,getInputProps:b,getTextareaProps:x,getSelectProps:S,getHelperTextProps:C,getErrorTextProps:w,getRequiredIndicatorProps:T}))},yae=e=>{let[t,n]=$t()(e,[`id`,`ids`,`disabled`,`invalid`,`readOnly`,`required`,`target`]),r=vae(t),i=I(()=>r().getRootProps(),n);return A(Ks,{value:r,get children(){return A(L.div,j(i,{ref(t){var n=La(r().refs.rootRef,e.ref);typeof n==`function`&&n(t)}}))}})},bae=e=>{let[{value:t},n]=$t()(e,[`value`]),r=I(()=>t().getRootProps(),n);return A(Ks,{value:t,get children(){return A(L.div,r)}})},xae=e=>{let t=qs(),n=I(()=>t?.().getSelectProps(),e);return A(L.select,n)},Sae=e=>{let t=qs(),n,[r,i]=ot(e,[`autoresize`]),a=I(()=>t?.().getTextareaProps(),()=>({style:{resize:r.autoresize?`none`:void 0}}),i);return ve(()=>{if(!r.autoresize)return;let e=uae(n);ye(()=>e?.())}),A(L.textarea,j(a,{ref(t){var r=La(e=>n=e,e.ref);typeof r==`function`&&r(t)}}))};da({},{Context:()=>dae,ErrorText:()=>fae,HelperText:()=>pae,Input:()=>mae,Item:()=>hae,Label:()=>gae,RequiredIndicator:()=>_ae,Root:()=>yae,RootProvider:()=>bae,Select:()=>xae,Textarea:()=>Sae});var Cae=fa(`combobox`).parts(`root`,`clearTrigger`,`content`,`control`,`input`,`item`,`itemGroup`,`itemGroupLabel`,`itemIndicator`,`itemText`,`label`,`list`,`positioner`,`trigger`),Js=Cae.build(),wae=Object.defineProperty,Tae=(e,t,n)=>t in e?wae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ys=(e,t,n)=>Tae(e,typeof t==`symbol`?t:t+``,n),Xs={itemToValue(e){return typeof e==`string`?e:wn(e)&&kn(e,`value`)?e.value:``},itemToString(e){return typeof e==`string`?e:wn(e)&&kn(e,`label`)?e.label:Xs.itemToValue(e)},isItemDisabled(e){return wn(e)&&kn(e,`disabled`)?!!e.disabled:!1}},Zs=class e{constructor(t){Ys(this,`options`,t),Ys(this,`items`),Ys(this,`indexMap`,null),Ys(this,`copy`,t=>new e({...this.options,items:t??[...this.items]})),Ys(this,`isEqual`,e=>bn(this.items,e.items)),Ys(this,`setItems`,e=>this.copy(e)),Ys(this,`getValues`,(e=this.items)=>{let t=[];for(let n of e){let e=this.getItemValue(n);e!=null&&t.push(e)}return t}),Ys(this,`find`,e=>{if(e==null)return null;let t=this.indexOf(e);return t===-1?null:this.at(t)}),Ys(this,`findMany`,e=>{let t=[];for(let n of e){let e=this.find(n);e!=null&&t.push(e)}return t}),Ys(this,`at`,e=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[e]??null;let t=0,n=this.group();for(let[,r]of n)for(let n of r){if(t===e)return n;t++}return null}),Ys(this,`sortFn`,(e,t)=>{let n=this.indexOf(e),r=this.indexOf(t);return(n??0)-(r??0)}),Ys(this,`sort`,e=>[...e].sort(this.sortFn.bind(this))),Ys(this,`getItemValue`,e=>e==null?null:this.options.itemToValue?.(e)??Xs.itemToValue(e)),Ys(this,`getItemDisabled`,e=>e==null?!1:this.options.isItemDisabled?.(e)??Xs.isItemDisabled(e)),Ys(this,`stringifyItem`,e=>e==null?null:this.options.itemToString?.(e)??Xs.itemToString(e)),Ys(this,`stringify`,e=>e==null?null:this.stringifyItem(this.find(e))),Ys(this,`stringifyItems`,(e,t=`, `)=>{let n=[];for(let t of e){let e=this.stringifyItem(t);e!=null&&n.push(e)}return n.join(t)}),Ys(this,`stringifyMany`,(e,t)=>this.stringifyItems(this.findMany(e),t)),Ys(this,`has`,e=>this.indexOf(e)!==-1),Ys(this,`hasItem`,e=>e==null?!1:this.has(this.getItemValue(e))),Ys(this,`group`,()=>{let{groupBy:e,groupSort:t}=this.options;if(!e)return[[``,[...this.items]]];let n=new Map;this.items.forEach((t,r)=>{let i=e(t,r);n.has(i)||n.set(i,[]),n.get(i).push(t)});let r=Array.from(n.entries());return t&&r.sort(([e],[n])=>{if(typeof t==`function`)return t(e,n);if(Array.isArray(t)){let r=t.indexOf(e),i=t.indexOf(n);return r===-1?1:i===-1?-1:r-i}return t===`asc`?e.localeCompare(n):t===`desc`?n.localeCompare(e):0}),r}),Ys(this,`getNextValue`,(e,t=1,n=!1)=>{let r=this.indexOf(e);if(r===-1)return null;for(r=n?Math.min(r+t,this.size-1):r+t;r<=this.size&&this.getItemDisabled(this.at(r));)r++;return this.getItemValue(this.at(r))}),Ys(this,`getPreviousValue`,(e,t=1,n=!1)=>{let r=this.indexOf(e);if(r===-1)return null;for(r=n?Math.max(r-t,0):r-t;r>=0&&this.getItemDisabled(this.at(r));)r--;return this.getItemValue(this.at(r))}),Ys(this,`indexOf`,e=>{if(e==null)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,t=this.group();for(let[,n]of t)for(let t of n){let n=this.getItemValue(t);n!=null&&this.indexMap.set(n,e),e++}}return this.indexMap.get(e)??-1}),Ys(this,`getByText`,(e,t)=>{let n=t==null?-1:this.indexOf(t),r=e.length===1;for(let i=0;i<this.items.length;i++){let a=this.items[(n+i+1)%this.items.length];if(!(r&&this.getItemValue(a)===t)&&!this.getItemDisabled(a)&&Eae(this.stringifyItem(a),e))return a}}),Ys(this,`search`,(e,t)=>{let{state:n,currentValue:r,timeout:i=350}=t,a=n.keysSoFar+e,o=a.length>1&&Array.from(a).every(e=>e===a[0])?a[0]:a,s=this.getByText(o,r),c=this.getItemValue(s);function l(){clearTimeout(n.timer),n.timer=-1}function u(e){n.keysSoFar=e,l(),e!==``&&(n.timer=+setTimeout(()=>{u(``),l()},i))}return u(a),c}),Ys(this,`update`,(e,t)=>{let n=this.indexOf(e);return n===-1?this:this.copy([...this.items.slice(0,n),t,...this.items.slice(n+1)])}),Ys(this,`upsert`,(e,t,n=`append`)=>{let r=this.indexOf(e);return r===-1?(n===`append`?this.append:this.prepend)(t):this.copy([...this.items.slice(0,r),t,...this.items.slice(r+1)])}),Ys(this,`insert`,(e,...t)=>this.copy(Qs(this.items,e,...t))),Ys(this,`insertBefore`,(e,...t)=>{let n=this.indexOf(e);if(n===-1)if(this.items.length===0)n=0;else return this;return this.copy(Qs(this.items,n,...t))}),Ys(this,`insertAfter`,(e,...t)=>{let n=this.indexOf(e);if(n===-1)if(this.items.length===0)n=0;else return this;return this.copy(Qs(this.items,n+1,...t))}),Ys(this,`prepend`,(...e)=>this.copy(Qs(this.items,0,...e))),Ys(this,`append`,(...e)=>this.copy(Qs(this.items,this.items.length,...e))),Ys(this,`filter`,e=>{let t=this.items.filter((t,n)=>e(this.stringifyItem(t),n,t));return this.copy(t)}),Ys(this,`remove`,(...e)=>{let t=e.map(e=>typeof e==`string`?e:this.getItemValue(e));return this.copy(this.items.filter(e=>{let n=this.getItemValue(e);return n==null?!1:!t.includes(n)}))}),Ys(this,`move`,(e,t)=>{let n=this.indexOf(e);return n===-1?this:this.copy($s(this.items,[n],t))}),Ys(this,`moveBefore`,(e,...t)=>{let n=this.items.findIndex(t=>this.getItemValue(t)===e);if(n===-1)return this;let r=t.map(e=>this.items.findIndex(t=>this.getItemValue(t)===e)).sort((e,t)=>e-t);return this.copy($s(this.items,r,n))}),Ys(this,`moveAfter`,(e,...t)=>{let n=this.items.findIndex(t=>this.getItemValue(t)===e);if(n===-1)return this;let r=t.map(e=>this.items.findIndex(t=>this.getItemValue(t)===e)).sort((e,t)=>e-t);return this.copy($s(this.items,r,n+1))}),Ys(this,`reorder`,(e,t)=>this.copy($s(this.items,[e],t))),Ys(this,`compareValue`,(e,t)=>{let n=this.indexOf(e),r=this.indexOf(t);return n<r?-1:+(n>r)}),Ys(this,`range`,(e,t)=>{let n=[],r=e;for(;r!=null;){if(this.find(r)&&n.push(r),r===t)return n;r=this.getNextValue(r)}return[]}),Ys(this,`getValueRange`,(e,t)=>e&&t?this.compareValue(e,t)<=0?this.range(e,t):this.range(t,e):[]),Ys(this,`toString`,()=>{let e=``;for(let t of this.items){let n=[this.getItemValue(t),this.stringifyItem(t),this.getItemDisabled(t)].filter(Boolean).join(`:`);e+=n+`,`}return e}),Ys(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}},Eae=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function Qs(e,t,...n){return[...e.slice(0,t),...n,...e.slice(t)]}function $s(e,t,n){t=[...t].sort((e,t)=>e-t);let r=t.map(t=>e[t]);for(let n=t.length-1;n>=0;n--)e=[...e.slice(0,t[n]),...e.slice(t[n]+1)];return n=Math.max(0,n-t.filter(e=>e<n).length),[...e.slice(0,n),...r,...e.slice(n)]}function Dae({values:e,collection:t,selectedItemMap:n}){let r=[];for(let i of e){let e=t.find(i)??n.get(i);e!=null&&r.push(e)}return r}function Oae({selectedItemMap:e,values:t,selectedItems:n,collection:r}){let i=new Map(e);for(let e of n){let t=r.getItemValue(e);t!=null&&i.set(t,e)}let a=new Set(t);for(let e of i.keys())a.has(e)||i.delete(e);return i}function ec({values:e,collection:t,selectedItemMap:n}){let r=Dae({values:e,collection:t,selectedItemMap:n});return{selectedItems:r,nextSelectedItemMap:Oae({selectedItemMap:n,values:e,selectedItems:r,collection:t})}}function kae({selectedItems:e,collection:t}){return Oae({selectedItemMap:new Map,values:e.map(e=>t.getItemValue(e)).filter(Boolean),selectedItems:e,collection:t})}var Aae=e=>new Zs(e);Aae.empty=()=>new Zs({items:[]});var jae=e=>e.ids?.root??`combobox:${e.id}`,tc=e=>e.ids?.label??`combobox:${e.id}:label`,Mae=e=>e.ids?.control??`combobox:${e.id}:control`,nc=e=>e.ids?.input??`combobox:${e.id}:input`,rc=e=>e.ids?.content??`combobox:${e.id}:content`,Nae=e=>e.ids?.positioner??`combobox:${e.id}:popper`,Pae=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,Fae=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,Iae=(e,t)=>e.ids?.itemGroup?.(t)??`combobox:${e.id}:optgroup:${t}`,Lae=(e,t)=>e.ids?.itemGroupLabel?.(t)??`combobox:${e.id}:optgroup-label:${t}`,Rae=(e,t)=>e.ids?.item?.(t)??`combobox:${e.id}:option:${t}`,ic=e=>e.getById(rc(e)),ac=e=>e.getById(nc(e)),zae=e=>e.getById(Nae(e)),Bae=e=>e.getById(Mae(e)),oc=e=>e.getById(Pae(e)),Vae=e=>e.getById(Fae(e)),sc=(e,t)=>{if(t==null)return null;let n=`[role=option][data-value="${CSS.escape(t)}"]`;return Ki(ic(e),n)},cc=e=>{let t=ac(e);e.isActiveElement(t)||t?.focus({preventScroll:!0}),Rr(t)},Hae=e=>{let t=oc(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})};function Uae(e,t){let{context:n,prop:r,state:i,send:a,scope:o,computed:s,event:c}=e,l=r(`translations`),u=r(`collection`),d=!!r(`disabled`),f=s(`isInteractive`),p=!!r(`invalid`),m=!!r(`required`),h=!!r(`readOnly`),g=i.hasTag(`open`),_=i.hasTag(`focused`),v=r(`composite`),y=n.get(`highlightedValue`),b=n.get(`currentPlacement`),x=b?Xo(b):void 0,S=rs({...r(`positioning`),placement:b});function C(e){let t=u.getItemDisabled(e.item),r=u.getItemValue(e.item);return or(r,()=>`[zag-js] No value found for item ${JSON.stringify(e.item)}`),{value:r,disabled:!!(d||t),highlighted:y===r,selected:n.get(`value`).includes(r)}}return{focused:_,open:g,inputValue:n.get(`inputValue`),highlightedValue:y,highlightedItem:n.get(`highlightedItem`),value:n.get(`value`),valueAsString:s(`valueAsString`),hasSelectedItems:s(`hasSelectedItems`),selectedItems:s(`selectedItems`),collection:r(`collection`),multiple:!!r(`multiple`),disabled:!!d,syncSelectedItems(){a({type:`SELECTED_ITEMS.SYNC`})},reposition(e={}){a({type:`POSITIONING.SET`,options:e})},setHighlightValue(e){a({type:`HIGHLIGHTED_VALUE.SET`,value:e})},clearHighlightValue(){a({type:`HIGHLIGHTED_VALUE.CLEAR`})},selectValue(e){a({type:`ITEM.SELECT`,value:e})},setValue(e){a({type:`VALUE.SET`,value:e})},setInputValue(e,t=`script`){a({type:`INPUT_VALUE.SET`,value:e,src:t})},clearValue(e){a(e==null?{type:`VALUE.CLEAR`}:{type:`ITEM.CLEAR`,value:e})},focus(){ac(o)?.focus()},setOpen(e,t=`script`){i.hasTag(`open`)!==e&&a({type:e?`OPEN`:`CLOSE`,src:t})},getRootProps(){return t.element({...Js.root.attrs,dir:r(`dir`),id:jae(o),"data-invalid":F(p),"data-readonly":F(h)})},getLabelProps(){return t.label({...Js.label.attrs,dir:r(`dir`),htmlFor:nc(o),id:tc(o),"data-readonly":F(h),"data-disabled":F(d),"data-invalid":F(p),"data-required":F(m),"data-focus":F(_),onClick(e){v||(e.preventDefault(),oc(o)?.focus({preventScroll:!0}))}})},getControlProps(){return t.element({...Js.control.attrs,dir:r(`dir`),id:Mae(o),"data-state":g?`open`:`closed`,"data-focus":F(_),"data-disabled":F(d),"data-invalid":F(p)})},getPositionerProps(){return t.element({...Js.positioner.attrs,dir:r(`dir`),id:Nae(o),style:S.floating})},getInputProps(){return t.input({...Js.input.attrs,dir:r(`dir`),"aria-invalid":Hr(p),"data-invalid":F(p),"data-autofocus":F(r(`autoFocus`)),name:r(`name`),form:r(`form`),disabled:d,required:r(`required`),autoComplete:`off`,autoCorrect:`off`,autoCapitalize:`none`,spellCheck:`false`,readOnly:h,placeholder:r(`placeholder`),id:nc(o),type:`text`,role:`combobox`,defaultValue:n.get(`inputValue`),"aria-autocomplete":s(`autoComplete`)?`both`:`list`,"aria-controls":rc(o),"aria-expanded":g,"data-state":g?`open`:`closed`,"aria-activedescendant":y?Rae(o,y):void 0,onClick(e){e.defaultPrevented||r(`openOnClick`)&&f&&a({type:`INPUT.CLICK`,src:`input-click`})},onFocus(){d||a({type:`INPUT.FOCUS`})},onBlur(){d||a({type:`INPUT.BLUR`})},onChange(e){a({type:`INPUT.CHANGE`,value:e.currentTarget.value,src:`input-change`})},onKeyDown(e){if(e.defaultPrevented||!f||e.ctrlKey||e.shiftKey||hi(e))return;let t=r(`openOnKeyPress`),n=e.ctrlKey||e.metaKey||e.shiftKey,i={ArrowDown(e){!t&&!g||(a({type:e.altKey?`OPEN`:`INPUT.ARROW_DOWN`,keypress:!0,src:`arrow-key`}),e.preventDefault())},ArrowUp(){!t&&!g||(a({type:e.altKey?`CLOSE`:`INPUT.ARROW_UP`,keypress:!0,src:`arrow-key`}),e.preventDefault())},Home(e){n||(a({type:`INPUT.HOME`,keypress:!0}),g&&e.preventDefault())},End(e){n||(a({type:`INPUT.END`,keypress:!0}),g&&e.preventDefault())},Enter(e){a({type:`INPUT.ENTER`,keypress:!0,src:`item-select`});let t=y!=null,n=r(`alwaysSubmitOnEnter`),i=s(`isCustomValue`)&&!r(`allowCustomValue`);if(g&&!n&&(t||i)&&e.preventDefault(),y==null)return;let c=sc(o,y);Yr(c)&&r(`navigate`)?.({value:y,node:c,href:c.href})},Escape(){a({type:`INPUT.ESCAPE`,keypress:!0,src:`escape-key`}),e.preventDefault()}}[yi(e,{dir:r(`dir`)})];i?.(e)}})},getTriggerProps(e={}){return t.button({...Js.trigger.attrs,dir:r(`dir`),id:Pae(o),"aria-haspopup":v?`listbox`:`dialog`,type:`button`,tabIndex:e.focusable?void 0:-1,"aria-label":l.triggerLabel,"aria-expanded":g,"data-state":g?`open`:`closed`,"aria-controls":g?rc(o):void 0,disabled:d,"data-invalid":F(p),"data-focusable":F(e.focusable),"data-readonly":F(h),"data-disabled":F(d),onFocus(){e.focusable&&a({type:`INPUT.FOCUS`,src:`trigger`})},onClick(e){e.defaultPrevented||f&&gi(e)&&a({type:`TRIGGER.CLICK`,src:`trigger-click`})},onPointerDown(e){f&&e.pointerType!==`touch`&&gi(e)&&(e.preventDefault(),queueMicrotask(()=>{cc(o)}))},onKeyDown(e){if(e.defaultPrevented||v)return;let t={ArrowDown(){a({type:`INPUT.ARROW_DOWN`,src:`arrow-key`})},ArrowUp(){a({type:`INPUT.ARROW_UP`,src:`arrow-key`})}}[yi(e,{dir:r(`dir`)})];t&&(t(e),e.preventDefault())}})},getContentProps(){return t.element({...Js.content.attrs,dir:r(`dir`),id:rc(o),role:v?`listbox`:`dialog`,tabIndex:-1,hidden:!g,"data-state":g?`open`:`closed`,"data-placement":b,"data-side":x,"aria-labelledby":tc(o),"aria-multiselectable":r(`multiple`)&&v?!0:void 0,"data-empty":F(u.size===0),onPointerDown(e){gi(e)&&e.preventDefault()}})},getListProps(){return t.element({...Js.list.attrs,role:v?void 0:`listbox`,"data-empty":F(u.size===0),"aria-labelledby":tc(o),"aria-multiselectable":r(`multiple`)&&!v?!0:void 0})},getClearTriggerProps(){return t.button({...Js.clearTrigger.attrs,dir:r(`dir`),id:Fae(o),type:`button`,tabIndex:-1,disabled:d,"data-invalid":F(p),"aria-label":l.clearTriggerLabel,"aria-controls":nc(o),hidden:!n.get(`value`).length,onPointerDown(e){gi(e)&&e.preventDefault()},onClick(e){e.defaultPrevented||f&&a({type:`VALUE.CLEAR`,src:`clear-trigger`})}})},getItemState:C,getItemProps(e){let n=C(e),i=n.value;return t.element({...Js.item.attrs,dir:r(`dir`),id:Rae(o,i),role:`option`,tabIndex:-1,"data-highlighted":F(n.highlighted),"data-state":n.selected?`checked`:`unchecked`,"aria-selected":Hr(n.selected),"aria-disabled":Hr(n.disabled),"data-disabled":F(n.disabled),"data-value":n.value,onPointerMove(){n.disabled||n.highlighted||a({type:`ITEM.POINTER_MOVE`,value:i})},onPointerLeave(){e.persistFocus||n.disabled||c.previous()?.type.includes(`POINTER`)&&a({type:`ITEM.POINTER_LEAVE`,value:i})},onClick(e){mi(e)||pi(e)||_i(e)||n.disabled||a({type:`ITEM.CLICK`,src:`item-select`,value:i})}})},getItemTextProps(e){let n=C(e);return t.element({...Js.itemText.attrs,dir:r(`dir`),"data-state":n.selected?`checked`:`unchecked`,"data-disabled":F(n.disabled),"data-highlighted":F(n.highlighted)})},getItemIndicatorProps(e){let n=C(e);return t.element({"aria-hidden":!0,...Js.itemIndicator.attrs,dir:r(`dir`),"data-state":n.selected?`checked`:`unchecked`,hidden:!n.selected})},getItemGroupProps(e){let{id:n}=e;return t.element({...Js.itemGroup.attrs,dir:r(`dir`),id:Iae(o,n),"aria-labelledby":Lae(o,n),"data-empty":F(u.size===0),role:`group`})},getItemGroupLabelProps(e){let{htmlFor:n}=e;return t.element({...Js.itemGroupLabel.attrs,dir:r(`dir`),id:Lae(o,n),role:`presentation`})}}}var lc=`__live-region__`,uc=`__live-region-debug__`,Wae=`position:fixed;inset-inline:0;bottom:0;z-index:2147483647;padding:12px 16px;background:black;color:white;font-size:14px;line-height:20px;text-align:center;pointer-events:none;`;function Gae(e={}){let{level:t=`polite`,document:n=document,root:r,delay:i=0,debug:a=!1}=e,o=n.defaultView??window,s=r??n.body;function c(){if(!a)return;let e=n.getElementById(uc);return e||(e=n.createElement(`div`),e.id=uc,e.dataset.liveAnnouncerDebug=`true`,e.setAttribute(`aria-hidden`,`true`),e.style.cssText=Wae,s.appendChild(e),e)}function l(e,r){n.getElementById(lc)?.remove(),r??=i;let a=n.createElement(`span`);a.id=lc,a.dataset.liveAnnouncer=`true`;let l=t===`assertive`?`alert`:`status`;a.setAttribute(`aria-live`,t),a.setAttribute(`role`,l),Object.assign(a.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`}),s.appendChild(a),o.setTimeout(()=>{if(!a.isConnected)return;a.textContent=e;let t=c();t&&(t.textContent=e)},r)}function u(){n.getElementById(lc)?.remove(),n.getElementById(uc)?.remove()}return{announce:l,destroy:u,toJSON(){return lc}}}var{guards:Kae,createMachine:qae,choose:Jae}=Pr(),{and:dc,not:fc}=Kae,Yae=qae({props({props:e}){return{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}){zi(e)},collection:Aae.empty(),...e,positioning:{placement:`bottom`,sameWidth:!0,...e.positioning},translations:{triggerLabel:`Toggle suggestions`,clearTriggerLabel:`Clear value`,...e.translations}}},initialState({prop:e}){return e(`open`)||e(`defaultOpen`)?`open.suggesting`:`closed.idle`},context({prop:e,bindable:t,getContext:n,getEvent:r}){let i=e(`value`)??e(`defaultValue`)??[],a=e(`collection`).findMany(i);return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e(`defaultValue`),value:e(`value`),isEqual:bn,hash(e){return e.join(`,`)},onChange(t){let r=n(),i=e(`collection`),a=ec({values:t,collection:i,selectedItemMap:r.get(`selectedItemMap`)}),o=e(`value`)??t,s=o===t?a:ec({values:o,collection:i,selectedItemMap:a.nextSelectedItemMap});r.set(`selectedItemMap`,s.nextSelectedItemMap),e(`onValueChange`)?.({value:t,items:a.selectedItems})}})),highlightedValue:t(()=>({defaultValue:e(`defaultHighlightedValue`)||null,value:e(`highlightedValue`),onChange(t){let n=e(`collection`).find(t);e(`onHighlightChange`)?.({highlightedValue:t,highlightedItem:n})}})),inputValue:t(()=>{let t=e(`inputValue`)||e(`defaultInputValue`),n=e(`value`)||e(`defaultValue`);if(!t.trim()&&!e(`multiple`)){let r=e(`collection`).stringifyMany(n);t=Hn(e(`selectionBehavior`),{preserve:t||r,replace:r,clear:``})}return{defaultValue:t,value:e(`inputValue`),onChange(t){let n=r(),i=(n.previousEvent||n).src;e(`onInputValueChange`)?.({inputValue:t,reason:i})}}}),highlightedItem:t(()=>{let t=e(`highlightedValue`);return{defaultValue:e(`collection`).find(t)}}),selectedItemMap:t(()=>({defaultValue:kae({selectedItems:a,collection:e(`collection`)})}))}},computed:{isInputValueEmpty:({context:e})=>e.get(`inputValue`).length===0,isInteractive:({prop:e})=>!(e(`readOnly`)||e(`disabled`)),autoComplete:({prop:e})=>e(`inputBehavior`)===`autocomplete`,autoHighlight:({prop:e})=>e(`inputBehavior`)===`autohighlight`,hasSelectedItems:({context:e})=>e.get(`value`).length>0,selectedItems:({context:e,prop:t})=>Dae({values:e.get(`value`),collection:t(`collection`),selectedItemMap:e.get(`selectedItemMap`)}),valueAsString:({computed:e,prop:t})=>t(`collection`).stringifyItems(e(`selectedItems`)),isCustomValue:({context:e,computed:t})=>e.get(`inputValue`)!==t(`valueAsString`)},watch({context:e,prop:t,track:n,action:r,send:i}){n([()=>e.hash(`value`)],()=>{r([`syncSelectedItems`])}),n([()=>e.get(`inputValue`)],()=>{r([`syncInputValue`])}),n([()=>e.get(`highlightedValue`)],()=>{r([`syncHighlightedItem`,`autofillInputValue`,`announceHighlightedItem`])}),n([()=>t(`open`)],()=>{r([`toggleVisibility`])}),n([()=>t(`collection`).toString()],()=>{i({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:Jae([{guard:`autoFocus`,actions:[`setInitialFocus`]}]),states:{closed:{tags:[`closed`],initial:`idle`,states:{idle:{tags:[`idle`],entry:[`scrollContentToTop`,`clearHighlightedValue`],on:{"CONTROLLED.OPEN":{target:`open.interacting`},"TRIGGER.CLICK":[{guard:`isOpenControlled`,actions:[`setInitialFocus`,`highlightFirstSelectedItem`,`invokeOnOpen`]},{target:`open.interacting`,actions:[`setInitialFocus`,`highlightFirstSelectedItem`,`invokeOnOpen`]}],"INPUT.CLICK":[{guard:`isOpenControlled`,actions:[`highlightFirstSelectedItem`,`invokeOnOpen`]},{target:`open.interacting`,actions:[`highlightFirstSelectedItem`,`invokeOnOpen`]}],"INPUT.FOCUS":{target:`focused`},OPEN:[{guard:`isOpenControlled`,actions:[`invokeOnOpen`]},{target:`open.interacting`,actions:[`invokeOnOpen`]}],"VALUE.CLEAR":{target:`focused`,actions:[`clearInputValue`,`clearSelectedItems`,`setInitialFocus`]}}},focused:{tags:[`focused`],entry:[`scrollContentToTop`,`clearHighlightedValue`],on:{"CONTROLLED.OPEN":[{guard:`isChangeEvent`,target:`open.suggesting`},{target:`open.interacting`}],"INPUT.CHANGE":[{guard:dc(`isOpenControlled`,`openOnChange`),actions:[`setInputValue`,`invokeOnOpen`,`highlightFirstItemIfNeeded`]},{guard:`openOnChange`,target:`open.suggesting`,actions:[`setInputValue`,`invokeOnOpen`,`highlightFirstItemIfNeeded`]},{actions:[`setInputValue`]}],"LAYER.INTERACT_OUTSIDE":{target:`idle`},"INPUT.ESCAPE":{guard:dc(`isCustomValue`,fc(`allowCustomValue`)),actions:[`revertInputValue`]},"INPUT.BLUR":{target:`idle`},"INPUT.CLICK":[{guard:`isOpenControlled`,actions:[`highlightFirstSelectedItem`,`invokeOnOpen`]},{target:`open.interacting`,actions:[`highlightFirstSelectedItem`,`invokeOnOpen`]}],"TRIGGER.CLICK":[{guard:`isOpenControlled`,actions:[`setInitialFocus`,`highlightFirstSelectedItem`,`invokeOnOpen`]},{target:`open.interacting`,actions:[`setInitialFocus`,`highlightFirstSelectedItem`,`invokeOnOpen`]}],"INPUT.ARROW_DOWN":[{guard:dc(`isOpenControlled`,`autoComplete`),actions:[`invokeOnOpen`]},{guard:`autoComplete`,target:`open.interacting`,actions:[`invokeOnOpen`]},{guard:`isOpenControlled`,actions:[`highlightFirstOrSelectedItem`,`invokeOnOpen`]},{target:`open.interacting`,actions:[`highlightFirstOrSelectedItem`,`invokeOnOpen`]}],"INPUT.ARROW_UP":[{guard:dc(`isOpenControlled`,`autoComplete`),actions:[`invokeOnOpen`]},{guard:`autoComplete`,target:`open.interacting`,actions:[`invokeOnOpen`]},{guard:`isOpenControlled`,actions:[`highlightLastOrSelectedItem`,`invokeOnOpen`]},{target:`open.interacting`,actions:[`highlightLastOrSelectedItem`,`invokeOnOpen`]}],OPEN:[{guard:`isOpenControlled`,actions:[`invokeOnOpen`]},{target:`open.interacting`,actions:[`invokeOnOpen`]}],"VALUE.CLEAR":{actions:[`clearInputValue`,`clearSelectedItems`]}}}}},open:{tags:[`open`,`focused`],entry:[`setInitialFocus`],effects:[`trackFocusVisible`,`scrollToHighlightedItem`,`trackDismissableLayer`,`trackPlacement`,`trackLiveRegion`],on:{"CONTROLLED.CLOSE":[{guard:`restoreFocus`,target:`closed.focused`,actions:[`setFinalFocus`]},{target:`closed.idle`}],"INPUT.ENTER":[{guard:dc(`isOpenControlled`,`isCustomValue`,fc(`hasHighlightedItem`),fc(`allowCustomValue`)),actions:[`revertInputValue`,`invokeOnClose`]},{guard:dc(`isCustomValue`,fc(`hasHighlightedItem`),fc(`allowCustomValue`)),target:`closed.focused`,actions:[`revertInputValue`,`invokeOnClose`]},{guard:dc(`isOpenControlled`,`closeOnSelect`),actions:[`selectHighlightedItem`,`invokeOnClose`]},{guard:`closeOnSelect`,target:`closed.focused`,actions:[`selectHighlightedItem`,`invokeOnClose`,`setFinalFocus`]},{actions:[`selectHighlightedItem`]}],"ITEM.CLICK":[{guard:dc(`isOpenControlled`,`closeOnSelect`),actions:[`selectItem`,`invokeOnClose`]},{guard:`closeOnSelect`,target:`closed.focused`,actions:[`selectItem`,`invokeOnClose`,`setFinalFocus`]},{actions:[`selectItem`]}],"TRIGGER.CLICK":[{guard:`isOpenControlled`,actions:[`invokeOnClose`]},{target:`closed.focused`,actions:[`invokeOnClose`]}],"LAYER.INTERACT_OUTSIDE":[{guard:dc(`isOpenControlled`,`isCustomValue`,fc(`allowCustomValue`)),actions:[`revertInputValue`,`invokeOnClose`]},{guard:dc(`isCustomValue`,fc(`allowCustomValue`)),target:`closed.idle`,actions:[`revertInputValue`,`invokeOnClose`]},{guard:`isOpenControlled`,actions:[`invokeOnClose`]},{target:`closed.idle`,actions:[`invokeOnClose`]}],CLOSE:[{guard:`isOpenControlled`,actions:[`invokeOnClose`]},{target:`closed.focused`,actions:[`invokeOnClose`,`setFinalFocus`]}],"VALUE.CLEAR":[{guard:`isOpenControlled`,actions:[`clearInputValue`,`clearSelectedItems`,`invokeOnClose`]},{target:`closed.focused`,actions:[`clearInputValue`,`clearSelectedItems`,`invokeOnClose`,`setFinalFocus`]}]},initial:`interacting`,states:{interacting:{on:{CHILDREN_CHANGE:[{guard:`isHighlightedItemRemoved`,actions:[`clearHighlightedValue`]},{actions:[`scrollToHighlightedItem`]}],"INPUT.HOME":{actions:[`highlightFirstItem`]},"INPUT.END":{actions:[`highlightLastItem`]},"INPUT.ARROW_DOWN":[{guard:dc(`autoComplete`,`isLastItemHighlighted`),actions:[`clearHighlightedValue`,`scrollContentToTop`]},{actions:[`highlightNextItem`]}],"INPUT.ARROW_UP":[{guard:dc(`autoComplete`,`isFirstItemHighlighted`),actions:[`clearHighlightedValue`]},{actions:[`highlightPrevItem`]}],"INPUT.CHANGE":[{guard:`autoComplete`,target:`suggesting`,actions:[`setInputValue`]},{target:`suggesting`,actions:[`clearHighlightedValue`,`setInputValue`]}],"ITEM.POINTER_MOVE":{actions:[`setHighlightedValue`]},"ITEM.POINTER_LEAVE":{actions:[`clearHighlightedValue`]},"LAYER.ESCAPE":[{guard:dc(`isOpenControlled`,`autoComplete`),actions:[`syncInputValue`,`invokeOnClose`]},{guard:`autoComplete`,target:`closed.focused`,actions:[`syncInputValue`,`invokeOnClose`]},{guard:`isOpenControlled`,actions:[`invokeOnClose`]},{target:`closed.focused`,actions:[`invokeOnClose`,`setFinalFocus`]}]}},suggesting:{on:{CHILDREN_CHANGE:[{guard:dc(`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.CHANGE":{actions:[`setInputValue`]},"LAYER.ESCAPE":[{guard:`isOpenControlled`,actions:[`invokeOnClose`]},{target:`closed.focused`,actions:[`invokeOnClose`]}],"ITEM.POINTER_MOVE":{target:`interacting`,actions:[`setHighlightedValue`]},"ITEM.POINTER_LEAVE":{actions:[`clearHighlightedValue`]}}}}}},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})=>e.get(`highlightedValue`)!=null,closeOnSelect:({prop:e})=>!!e(`closeOnSelect`),isOpenControlled:({prop:e})=>e(`open`)!=null,openOnChange:({prop:e,context:t})=>{let n=e(`openOnChange`);return Sn(n)?n:!!n?.({inputValue:t.get(`inputValue`)})},restoreFocus:({event:e})=>{let t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null?!0:!!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:{trackFocusVisible({scope:e}){return Pa({root:e.getRootNode?.()})},trackDismissableLayer({send:e,prop:t,scope:n}){return t(`disableLayer`)?void 0:Cs(()=>ic(n),{type:`listbox`,defer:!0,exclude:()=>[ac(n),oc(n),Vae(n)],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})}})},trackLiveRegion({refs:e,scope:t}){let n=Gae({level:`assertive`,document:t.getDoc()});return e.set(`liveRegion`,n),()=>n.destroy()},trackPlacement({context:e,prop:t,scope:n}){return e.set(`currentPlacement`,t(`positioning`).placement),ns(()=>Bae(n)||oc(n),()=>zae(n),{...t(`positioning`),defer:!0,onComplete(t){e.set(`currentPlacement`,t.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:n}){let r=ac(n),i=[],a=r=>{if(ja()===`pointer`)return;let a=e.get(`highlightedValue`);if(!a)return;let o=ic(n),s=t(`scrollToIndexFn`);if(s){s({index:t(`collection`).indexOf(a),immediate:r,getElement:()=>sc(n,a)});return}let c=sc(n,a),l=Ii(()=>{Xi(c,{rootEl:o,block:`nearest`})});i.push(l)},o=Ii(()=>{Ma(`virtual`),a(!0)});i.push(o);let s=Ri(r,{attributes:[`aria-activedescendant`],callback:()=>a(!1)});return i.push(s),()=>{i.forEach(e=>e())}}},actions:{reposition({context:e,prop:t,scope:n,event:r}){ns(()=>Bae(n),()=>zae(n),{...t(`positioning`),...r.options,defer:!0,listeners:!1,onComplete(t){e.set(`currentPlacement`,t.placement)}})},setHighlightedValue({context:e,event:t}){t.value!=null&&e.set(`highlightedValue`,t.value)},clearHighlightedValue({context:e}){e.set(`highlightedValue`,null)},selectHighlightedItem(e){let{context:t,prop:n}=e,r=n(`collection`),i=t.get(`highlightedValue`);if(!i||!r.has(i))return;let a=n(`multiple`)?pn(t.get(`value`),i):[i];n(`onSelect`)?.({value:a,itemValue:i}),t.set(`value`,a);let o=Hn(n(`selectionBehavior`),{preserve:t.get(`inputValue`),replace:r.stringifyMany(a),clear:``});t.set(`inputValue`,o)},scrollToHighlightedItem({context:e,prop:t,scope:n}){Li(()=>{let r=e.get(`highlightedValue`);if(r==null)return;let i=sc(n,r),a=ic(n),o=t(`scrollToIndexFn`);if(o){o({index:t(`collection`).indexOf(r),immediate:!0,getElement:()=>sc(n,r)});return}Xi(i,{rootEl:a,block:`nearest`})})},selectItem(e){let{context:t,event:n,flush:r,prop:i}=e;n.value!=null&&r(()=>{let e=i(`multiple`)?pn(t.get(`value`),n.value):[n.value];i(`onSelect`)?.({value:e,itemValue:n.value}),t.set(`value`,e);let r=Hn(i(`selectionBehavior`),{preserve:t.get(`inputValue`),replace:i(`collection`).stringifyMany(e),clear:``});t.set(`inputValue`,r)})},clearItem(e){let{context:t,event:n,flush:r,prop:i}=e;n.value!=null&&r(()=>{let e=fn(t.get(`value`),n.value);t.set(`value`,e);let r=Hn(i(`selectionBehavior`),{preserve:t.get(`inputValue`),replace:i(`collection`).stringifyMany(e),clear:``});t.set(`inputValue`,r)})},setInitialFocus({scope:e}){Ii(()=>{cc(e)})},setFinalFocus({scope:e}){Ii(()=>{oc(e)?.dataset.focusable==null?cc(e):Hae(e)})},syncInputValue({context:e,scope:t,event:n}){let r=ac(t);r&&(r.value=e.get(`inputValue`),queueMicrotask(()=>{n.current().type!==`INPUT.CHANGE`&&Rr(r)}))},setInputValue({context:e,event:t}){e.set(`inputValue`,t.value)},clearInputValue({context:e}){e.set(`inputValue`,``)},revertInputValue({context:e,prop:t,computed:n}){let r=Hn(t(`selectionBehavior`),{replace:n(`hasSelectedItems`)?n(`valueAsString`):``,preserve:e.get(`inputValue`),clear:``});e.set(`inputValue`,r)},setValue(e){let{context:t,flush:n,event:r,prop:i}=e;n(()=>{t.set(`value`,r.value);let e=Hn(i(`selectionBehavior`),{preserve:t.get(`inputValue`),replace:i(`collection`).stringifyMany(r.value),clear:``});t.set(`inputValue`,e)})},clearSelectedItems(e){let{context:t,flush:n,prop:r}=e;n(()=>{t.set(`value`,[]);let e=Hn(r(`selectionBehavior`),{preserve:t.get(`inputValue`),replace:r(`collection`).stringifyMany([]),clear:``});t.set(`inputValue`,e)})},scrollContentToTop({prop:e,scope:t}){let n=e(`scrollToIndexFn`);if(n){let r=e(`collection`).firstValue;n({index:0,immediate:!0,getElement:()=>sc(t,r)})}else{let e=ic(t);if(!e)return;e.scrollTop=0}},invokeOnOpen({prop:e,event:t,context:n}){let r=pc(t);e(`onOpenChange`)?.({open:!0,reason:r,value:n.get(`value`)})},invokeOnClose({prop:e,event:t,context:n}){let r=pc(t);e(`onOpenChange`)?.({open:!1,reason:r,value:n.get(`value`)})},highlightFirstItem({context:e,prop:t,scope:n}){(ic(n)?queueMicrotask:Ii)(()=>{let n=t(`collection`).firstValue;n&&e.set(`highlightedValue`,n)})},highlightFirstItemIfNeeded({computed:e,action:t}){e(`autoHighlight`)&&t([`highlightFirstItem`])},highlightLastItem({context:e,prop:t,scope:n}){(ic(n)?queueMicrotask:Ii)(()=>{let n=t(`collection`).lastValue;n&&e.set(`highlightedValue`,n)})},highlightNextItem({context:e,prop:t}){let n=null,r=e.get(`highlightedValue`),i=t(`collection`);r?(n=i.getNextValue(r),!n&&t(`loopFocus`)&&(n=i.firstValue)):n=i.firstValue,n&&e.set(`highlightedValue`,n)},highlightPrevItem({context:e,prop:t}){let n=null,r=e.get(`highlightedValue`),i=t(`collection`);r?(n=i.getPreviousValue(r),!n&&t(`loopFocus`)&&(n=i.lastValue)):n=i.lastValue,n&&e.set(`highlightedValue`,n)},highlightFirstSelectedItem({context:e,prop:t}){Ii(()=>{let[n]=t(`collection`).sort(e.get(`value`));n&&e.set(`highlightedValue`,n)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:n}){Ii(()=>{let r=null;r=n(`hasSelectedItems`)?t(`collection`).sort(e.get(`value`))[0]:t(`collection`).firstValue,r&&e.set(`highlightedValue`,r)})},highlightLastOrSelectedItem({context:e,prop:t,computed:n}){Ii(()=>{let r=t(`collection`),i=null;i=n(`hasSelectedItems`)?r.sort(e.get(`value`))[0]:r.lastValue,i&&e.set(`highlightedValue`,i)})},autofillInputValue({context:e,computed:t,prop:n,event:r,scope:i}){let a=ac(i),o=n(`collection`);if(!t(`autoComplete`)||!a||!r.keypress)return;let s=o.stringify(e.get(`highlightedValue`));Ii(()=>{a.value=s||e.get(`inputValue`)})},syncSelectedItems(e){queueMicrotask(()=>{let{context:t,prop:n}=e,r=n(`collection`),i=t.get(`value`),a=ec({values:i,collection:r,selectedItemMap:t.get(`selectedItemMap`)});t.set(`selectedItemMap`,a.nextSelectedItemMap);let o=Hn(n(`selectionBehavior`),{preserve:t.get(`inputValue`),replace:r.stringifyMany(i),clear:``});t.set(`inputValue`,o)})},syncHighlightedItem({context:e,prop:t}){let n=t(`collection`).find(e.get(`highlightedValue`));e.set(`highlightedItem`,n)},announceHighlightedItem({context:e,prop:t,refs:n}){if(!li())return;let r=e.get(`highlightedValue`),i=r?t(`collection`).stringifyItem(t(`collection`).find(r)):null;if(!i)return;let a=r?e.get(`value`).includes(r):!1;n.get(`liveRegion`)?.announce(a?`${i}, selected`:i)},toggleVisibility({event:e,send:t,prop:n}){t({type:n(`open`)?`CONTROLLED.OPEN`:`CONTROLLED.CLOSE`,previousEvent:e})}}}});function pc(e){return(e.previousEvent||e).src}var Xae=Cae.extendWith(`empty`),[mc,hc]=cr({hookName:`useComboboxContext`,providerName:`<ComboboxProvider />`}),Zae=e=>{let t=hc(),n=I(()=>t().getClearTriggerProps(),e);return A(L.button,n)},Qae=e=>{let t=hc(),n=Ba(),r=I(()=>t().getContentProps(),()=>n().presenceProps,e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,j(r,{ref(t){var r=La(n().ref,e.ref);typeof r==`function`&&r(t)}}))}})},$ae=Xae.build(),eoe=e=>{let t=hc(),n=k(()=>t().collection.size);return A(M,{get when(){return n()===0},get children(){return A(L.div,j(()=>$ae.empty.attrs,e,{role:`presentation`}))}})},toe=e=>e.children(hc()),noe=e=>{let t=hc(),n=I(()=>t().getControlProps(),e);return A(L.div,n)},roe=e=>{let t=hc(),n=I(()=>t().getInputProps(),e),r=qs();return A(L.input,j({get"aria-describedby"(){return r?.().ariaDescribedby}},n))},[ioe,aoe]=cr({hookName:`useComboboxItemContext`,providerName:`<ComboboxItemProvider />`}),[ooe,gc]=cr({hookName:`useComboboxItemPropsContext`,providerName:`<ComboboxItemPropsProvider />`}),soe=e=>{let[t,n]=$t()(e,[`item`,`persistFocus`]),r=hc(),i=I(()=>r().getItemProps(t),n),a=k(()=>r().getItemState(t));return A(ooe,{value:t,get children(){return A(ioe,{value:a,get children(){return A(L.div,i)}})}})},coe=e=>e.children(aoe()),[loe,uoe]=cr({hookName:`useComboboxItemGroupPropsContext`,providerName:`<ComboboxItemGroupPropsProvider />`}),doe=e=>{let[t,n]=$t()(e,[`id`]),r=hc(),i=I({id:ct()},t),a=I(()=>r().getItemGroupProps(i),n);return A(loe,{value:i,get children(){return A(L.div,a)}})},foe=e=>{let t=hc(),n=uoe(),r=I(()=>t().getItemGroupLabelProps({htmlFor:n.id}),e);return A(L.div,r)},poe=e=>{let t=hc(),n=gc(),r=I(()=>t().getItemIndicatorProps(n),e);return A(L.div,r)},moe=e=>{let t=hc(),n=gc(),r=I(()=>t().getItemTextProps(n),e);return A(L.span,r)},hoe=e=>{let t=hc(),n=I(()=>t().getLabelProps(),e);return A(L.label,n)},goe=e=>{let t=hc(),n=I(()=>t().getListProps(),e);return A(L.div,n)},_oe=e=>{let t=hc(),n=Ba(),r=I(()=>t().getPositionerProps(),e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,r)}})},voe=e=>{let t=ua(),n=la(),r=ct(),i=qs(),a=na(Yae,k(()=>({id:r,ids:{label:i?.().ids.label,input:i?.().ids.control},disabled:i?.().disabled,readOnly:i?.().readOnly,required:i?.().required,invalid:i?.().invalid,dir:t().dir,getRootNode:n().getRootNode,...pr(e)})));return k(()=>Uae(a,oa))},yoe=e=>{let[t,n]=Ra(e),[r,i]=$t()(n,`allowCustomValue.alwaysSubmitOnEnter.autoFocus.closeOnSelect.collection.composite.defaultHighlightedValue.defaultInputValue.defaultOpen.defaultValue.disabled.disableLayer.form.highlightedValue.id.ids.inputBehavior.inputValue.invalid.loopFocus.multiple.name.navigate.onFocusOutside.onHighlightChange.onInputValueChange.onInteractOutside.onOpenChange.onPointerDownOutside.onValueChange.onSelect.open.openOnChange.openOnClick.openOnKeyPress.placeholder.positioning.readOnly.required.scrollToIndexFn.selectionBehavior.translations.value`.split(`.`)),a=voe(r),o=Ia(I(t,()=>({present:a().open}))),s=I(()=>a().getRootProps(),i);return A(mc,{value:a,get children(){return A(za,{value:o,get children(){return A(L.div,s)}})}})},boe=e=>{let[t,n]=Ra(e),[{value:r},i]=$t()(n,[`value`]),a=Ia(I(t,()=>({present:r().open}))),o=I(()=>r().getRootProps(),i);return A(mc,{value:r,get children(){return A(za,{value:a,get children(){return A(L.div,o)}})}})},xoe=e=>{let[t,n]=$t()(e,[`focusable`]),r=hc(),i=I(()=>r().getTriggerProps(t),n);return A(L.button,i)},_c={};da(_c,{ClearTrigger:()=>Zae,Content:()=>Qae,Context:()=>toe,Control:()=>noe,Empty:()=>eoe,Input:()=>roe,Item:()=>soe,ItemContext:()=>coe,ItemGroup:()=>doe,ItemGroupLabel:()=>foe,ItemIndicator:()=>poe,ItemText:()=>moe,Label:()=>hoe,List:()=>goe,Positioner:()=>_oe,Root:()=>yoe,RootProvider:()=>boe,Trigger:()=>xoe});var vc=e=>new Zs(e);function Soe(e){let t=k(()=>ot(typeof e==`function`?e():e,[`initialItems`,`filter`,`limit`])),[n,r]=O((()=>{let[e]=t();return e.initialItems})()),[i,a]=O(``),o=e=>{r(e),a(``)},s=e=>{let[,n]=t();return vc({...n,items:e})};return{collection:k(()=>{let[e,r]=t(),a=e.filter,o=n();i()&&a&&(o=s(n()).filter((e,t,n)=>a(e,i(),n)).items);let c=e.limit==null?o:o.slice(0,e.limit);return vc({...r,items:c})}),filter:(e=``)=>{a(e)},set:e=>{o(e)},reset:()=>{let[e]=t();o(e.initialItems)},clear:()=>{o([])},insert:(e,...t)=>{let r=s(n()).insert(e,...t).items;o(r)},insertBefore:(e,...t)=>{let r=s(n()).insertBefore(e,...t).items;o(r)},insertAfter:(e,...t)=>{let r=s(n()).insertAfter(e,...t).items;o(r)},remove:(...e)=>{let t=s(n()).remove(...e).items;o(t)},move:(e,t)=>{let r=s(n()).move(e,t).items;o(r)},moveBefore:(e,...t)=>{let r=s(n()).moveBefore(e,...t).items;o(r)},moveAfter:(e,...t)=>{let r=s(n()).moveAfter(e,...t).items;o(r)},reorder:(e,t)=>{let r=s(n()).reorder(e,t).items;o(r)},append:(...e)=>{let t=s(n()).append(...e).items;o(t)},upsert:(e,t,r=`append`)=>{let i=s(n()).upsert(e,t,r).items;o(i)},prepend:(...e)=>{let t=s(n()).prepend(...e).items;o(t)},update:(e,t)=>{let r=s(n()).update(e,t).items;o(r)}}}var yc=fa(`dialog`).parts(`trigger`,`backdrop`,`positioner`,`content`,`title`,`description`,`closeTrigger`).build(),bc=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,xc=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,Sc=e=>e.ids?.content??`dialog:${e.id}:content`,Cc=(e,t)=>{let n=e.ids?.trigger;return n==null?t?`dialog:${e.id}:trigger:${t}`:`dialog:${e.id}:trigger`:Dn(n)?n(t):n},wc=e=>e.ids?.title??`dialog:${e.id}:title`,Tc=e=>e.ids?.description??`dialog:${e.id}:description`,Ec=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,Dc=e=>e.getById(Sc(e)),Coe=e=>e.getById(bc(e)),woe=e=>e.getById(xc(e)),Oc=e=>e.getById(Cc(e)),Toe=e=>e.getById(wc(e)),Eoe=e=>e.getById(Tc(e)),Doe=e=>e.getById(Ec(e)),kc=e=>Gi(e.getRootNode(),`[data-scope="dialog"][data-part="trigger"][data-ownedby="${e.id}"]`),Ac=(e,t)=>t==null?Oc(e)??kc(e)[0]:e.getById(Cc(e,t));function Ooe(e,t){let{state:n,send:r,context:i,prop:a,scope:o}=e,s=a(`aria-label`),c=n.matches(`open`),l=i.get(`triggerValue`);return{open:c,setOpen(e){n.matches(`open`)!==e&&r({type:e?`OPEN`:`CLOSE`})},triggerValue:l,setTriggerValue(e){r({type:`TRIGGER_VALUE.SET`,value:e})},getTriggerProps(e={}){let{value:n}=e,i=n==null?!1:l===n;return t.button({...yc.trigger.attrs,dir:a(`dir`),id:Cc(o,n),"data-ownedby":o.id,"data-value":n,"aria-haspopup":`dialog`,type:`button`,"aria-expanded":n==null?c:c&&i,"data-state":c?`open`:`closed`,"aria-controls":Sc(o),"data-current":F(i),onClick(e){e.defaultPrevented||r({type:c&&n!=null&&!i?`TRIGGER_VALUE.SET`:`TOGGLE`,value:n})}})},getBackdropProps(){return t.element({...yc.backdrop.attrs,dir:a(`dir`),hidden:!c,id:xc(o),"data-state":c?`open`:`closed`})},getPositionerProps(){return t.element({...yc.positioner.attrs,dir:a(`dir`),id:bc(o),style:Qn({pointerEvents:!c||!a(`modal`)?`none`:void 0})})},getContentProps(){let e=i.get(`rendered`);return t.element({...yc.content.attrs,dir:a(`dir`),role:a(`role`),hidden:!c,id:Sc(o),tabIndex:-1,"data-state":c?`open`:`closed`,"aria-modal":a(`modal`),"aria-label":s||void 0,"aria-labelledby":s||!e.title?void 0:wc(o),"aria-describedby":e.description?Tc(o):void 0,style:Qn({pointerEvents:a(`modal`)?void 0:`auto`})})},getTitleProps(){return t.element({...yc.title.attrs,dir:a(`dir`),id:wc(o)})},getDescriptionProps(){return t.element({...yc.description.attrs,dir:a(`dir`),id:Tc(o)})},getCloseTriggerProps(){return t.button({...yc.closeTrigger.attrs,dir:a(`dir`),id:Ec(o),type:`button`,onClick(e){e.defaultPrevented||(e.stopPropagation(),r({type:`CLOSE`}))}})}}}var jc=new WeakMap,Mc=new WeakMap,Nc={},Pc=0,Fc=e=>e&&(e.host||Fc(e.parentNode)),koe=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=Fc(t);return n&&e.contains(n)?n:(console.error(`[zag-js > ariaHidden] target`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(e=>!!e),Aoe=new Set([`script`,`output`,`status`,`next-route-announcer`]),joe=e=>Aoe.has(e.localName)||e.role===`status`||e.hasAttribute(`aria-live`)?!0:e.matches(`[data-live-announcer]`),Moe=(e,t)=>{let{parentNode:n,markerName:r,controlAttribute:i,explicitBooleanValue:a,followControlledElements:o=!0}=t,s=koe(n,Array.isArray(e)?e:[e]);Nc[r]||(Nc[r]=new WeakMap);let c=Nc[r],l=[],u=new Set,d=new Set(s),f=e=>{!e||u.has(e)||(u.add(e),f(e.parentNode))};s.forEach(e=>{f(e),o&&Ur(e)&&Lee(e,e=>{f(e)})});let p=e=>{!e||d.has(e)||Array.prototype.forEach.call(e.children,e=>{if(u.has(e))p(e);else try{if(joe(e))return;let t=e.getAttribute(i),n=a?t===`true`:t!==null&&t!==`false`,o=(jc.get(e)||0)+1,s=(c.get(e)||0)+1;jc.set(e,o),c.set(e,s),l.push(e),o===1&&n&&Mc.set(e,!0),s===1&&e.setAttribute(r,``),n||e.setAttribute(i,a?`true`:``)}catch(t){console.error(`[zag-js > ariaHidden] cannot operate on `,e,t)}})};return p(n),u.clear(),Pc++,()=>{l.forEach(e=>{let t=jc.get(e)-1,n=c.get(e)-1;jc.set(e,t),c.set(e,n),t||(Mc.has(e)||e.removeAttribute(i),Mc.delete(e)),n||e.removeAttribute(r)}),Pc--,Pc||(jc=new WeakMap,jc=new WeakMap,Mc=new WeakMap,Nc={})}},Noe=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,Poe=(e,t=Noe(e),n=`data-aria-hidden`,r=!0)=>{if(t)return Moe(e,{parentNode:t,markerName:n,controlAttribute:`aria-hidden`,explicitBooleanValue:!0,followControlledElements:r})},Foe=e=>{let t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function Ic(e,t={}){let{defer:n=!0}=t,r=n?Foe:e=>e(),i=[];return i.push(r(()=>{let t=(typeof e==`function`?e():e).filter(Boolean);t.length!==0&&i.push(Poe(t))})),()=>{i.forEach(e=>e?.())}}var Ioe=Object.defineProperty,Loe=(e,t,n)=>t in e?Ioe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lc=(e,t,n)=>Loe(e,typeof t==`symbol`?t:t+``,n),Rc={activateTrap(e,t){if(e.length>0){let n=e[e.length-1];n!==t&&n.pause()}let n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap(e,t){let n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},Roe=[],zoe=class{constructor(e,t){Lc(this,`trapStack`),Lc(this,`config`),Lc(this,`doc`),Lc(this,`state`,{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),Lc(this,`portalContainers`,new Set),Lc(this,`listenerCleanups`,[]),Lc(this,`handleFocus`,e=>{let t=fi(e),n=this.findContainerIndex(t,e)>=0;if(n||Wr(t))n&&(this.state.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();let t,n=!0;if(this.state.mostRecentlyFocusedNode)if(Ni(this.state.mostRecentlyFocusedNode)>0){let e=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:r}=this.state.containerGroups[e];if(r.length>0){let e=r.findIndex(e=>e===this.state.mostRecentlyFocusedNode);e>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?e+1<r.length&&(t=r[e+1],n=!1):e-1>=0&&(t=r[e-1],n=!1))}}else this.state.containerGroups.some(e=>e.tabbableNodes.some(e=>Ni(e)>0))||(n=!1);else n=!1;n&&(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}),Lc(this,`handlePointerDown`,e=>{let t=fi(e);if(!(this.findContainerIndex(t,e)>=0)){if(Vc(this.config.clickOutsideDeactivates,e)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}Vc(this.config.allowOutsideClick,e)||e.preventDefault()}}),Lc(this,`handleClick`,e=>{let t=fi(e);this.findContainerIndex(t,e)>=0||Vc(this.config.clickOutsideDeactivates,e)||Vc(this.config.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())}),Lc(this,`handleTabKey`,e=>{if(this.config.isKeyForward(e)||this.config.isKeyBackward(e)){this.state.recentNavEvent=e;let t=this.config.isKeyBackward(e),n=this.findNextNavNode({event:e,isBackward:t});if(!n)return;Bc(e)&&e.preventDefault(),this.tryFocus(n)}}),Lc(this,`handleEscapeKey`,e=>{Hoe(e)&&Vc(this.config.escapeDeactivates,e)!==!1&&(e.preventDefault(),this.deactivate())}),Lc(this,`_mutationObserver`),Lc(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=>e.type===`attributes`&&(e.attributeName===`aria-controls`||e.attributeName===`aria-expanded`)?!0:e.type===`childList`&&e.addedNodes.length>0?Array.from(e.addedNodes).some(e=>{if(e.nodeType!==Node.ELEMENT_NODE)return!1;let t=e;return Vee(t)?!0:t.id&&!this.state.containers.some(e=>e.contains(t))?Hee(t):!1}):!1)&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())})}),Lc(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)}))}),Lc(this,`getInitialFocusNode`,()=>{let e=this.getNodeForOption(`initialFocus`,{hasFallback:!0});if(e===!1)return!1;if(e===void 0||e&&!ki(e)){let t=ti(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 e===null&&(e=this.getNodeForOption(`fallbackFocus`));if(!e||(e.isConnected||(e=this.getNodeForOption(`fallbackFocus`)),!e||!e.isConnected))throw Error(`Your focus-trap needs to have at least one focusable element`);return e}),Lc(this,`tryFocus`,e=>{if(e!==!1&&e!==ti(this.doc)){if(!e||!e.focus){this.tryFocus(this.getInitialFocusNode());return}e.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=e,Uoe(e)&&e.select()}}),Lc(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(),Rc.deactivateTrap(this.trapStack,this),this.portalContainers.clear();let n=this.getOption(t,`onDeactivate`),r=this.getOption(t,`onPostDeactivate`),i=this.getOption(t,`checkCanReturnFocus`),a=this.getOption(t,`returnFocus`,`returnFocusOnDeactivate`);n?.();let o=()=>{Hc(()=>{if(a){let e=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(e)}r?.()})};return a&&i?(i(this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation)).then(o,o),this):(o(),this)}),Lc(this,`pause`,e=>{if(this.state.paused||!this.state.active)return this;let t=this.getOption(e,`onPause`),n=this.getOption(e,`onPostPause`);return this.state.paused=!0,t?.(),this.removeListeners(),this.updateObservedNodes(),n?.(),this}),Lc(this,`unpause`,e=>{if(!this.state.paused||!this.state.active)return this;let t=this.getOption(e,`onUnpause`),n=this.getOption(e,`onPostUnpause`);return this.state.paused=!1,t?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),n?.(),this}),Lc(this,`updateContainerElements`,e=>(this.state.containers=Array.isArray(e)?e.filter(Boolean):[e].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),Lc(this,`getReturnFocusNode`,e=>{let t=this.getNodeForOption(`setReturnFocus`,{params:[e]});return t||(t===!1?!1:e)}),Lc(this,`getOption`,(e,t,n)=>e&&e[t]!==void 0?e[t]:this.config[n||t]),Lc(this,`getNodeForOption`,(e,{hasFallback:t=!1,params:n=[]}={})=>{let r=this.config[e];if(typeof r==`function`&&(r=r(...n)),r===!0&&(r=void 0),!r){if(r===void 0||r===!1)return r;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}let i=r;if(typeof r==`string`){try{i=this.doc.querySelector(r)}catch(t){throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!i&&!t)throw Error(`\`${e}\` as selector refers to no known node`)}return i}),Lc(this,`findNextNavNode`,e=>{let{event:t,isBackward:n=!1}=e,r=e.target||fi(t);this.updateTabbableNodes();let i=null;if(this.state.tabbableGroups.length>0){let e=this.findContainerIndex(r,t),a=e>=0?this.state.containerGroups[e]:void 0;if(e<0)i=n?this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:this.state.tabbableGroups[0].firstTabbableNode;else if(n){let n=this.state.tabbableGroups.findIndex(({firstTabbableNode:e})=>r===e);if(n<0&&(a?.container===r||ki(r)&&!ji(r)&&!a?.nextTabbableNode(r,!1))&&(n=e),n>=0){let e=n===0?this.state.tabbableGroups.length-1:n-1,t=this.state.tabbableGroups[e];i=Ni(r)>=0?t.lastTabbableNode:t.lastDomTabbableNode}else Bc(t)||(i=a?.nextTabbableNode(r,!1))}else{let n=this.state.tabbableGroups.findIndex(({lastTabbableNode:e})=>r===e);if(n<0&&(a?.container===r||ki(r)&&!ji(r)&&!a?.nextTabbableNode(r))&&(n=e),n>=0){let e=n===this.state.tabbableGroups.length-1?0:n+1,t=this.state.tabbableGroups[e];i=Ni(r)>=0?t.firstTabbableNode:t.firstDomTabbableNode}else Bc(t)||(i=a?.nextTabbableNode(r))}}else i=this.getNodeForOption(`fallbackFocus`);return i}),this.trapStack=t.trapStack||Roe;let n={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward:Boe,isKeyBackward:Voe,...t};this.doc=n.document||$r(Array.isArray(e)?e[0]:e),this.config=n,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=>{Ree(e).forEach(e=>{this.addPortalContainer(e)})})}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){let n=typeof t?.composedPath==`function`?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:t,tabbableNodes:r})=>t.contains(e)||n?.includes(t)||r.find(t=>t===e)||this.isControlledElement(t,e))}isControlledElement(e,t){return this.config.followControlledElements?Iee(e,t):!1}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{let t=Ai(e,{getShadowRoot:this.config.getShadowRoot}),n=Oi(e,{getShadowRoot:this.config.getShadowRoot}),r=t[0],i=t[t.length-1],a=r,o=i,s=!1;for(let e=0;e<t.length;e++)if(Ni(t[e])>0){s=!0;break}function c(e,r=!0){let i=t.indexOf(e);if(i>=0)return t[i+(r?1:-1)];let a=n.indexOf(e);if(!(a<0)){if(r){for(let e=a+1;e<n.length;e++)if(ji(n[e]))return n[e]}else for(let e=a-1;e>=0;e--)if(ji(n[e]))return n[e]}}return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:s,firstTabbableNode:r,lastTabbableNode:i,firstDomTabbableNode:a,lastDomTabbableNode:o,nextTabbableNode:c}}),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 Rc.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?Hc(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(xi(this.doc,`focusin`,this.handleFocus,!0),xi(this.doc,`mousedown`,this.handlePointerDown,{capture:!0,passive:!1}),xi(this.doc,`touchstart`,this.handlePointerDown,{capture:!0,passive:!1}),xi(this.doc,`click`,this.handleClick,{capture:!0,passive:!1}),xi(this.doc,`keydown`,this.handleTabKey,{capture:!0,passive:!1}),xi(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`),n=this.getOption(e,`onPostActivate`),r=this.getOption(e,`checkCanFocusTrap`);r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=ti(this.doc),t?.();let i=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),n?.()};return r?(r(this.state.containers.concat()).then(i,i),this):(i(),this)}},zc=e=>e?.type===`keydown`,Bc=e=>zc(e)&&e?.key===`Tab`,Boe=e=>zc(e)&&e.key===`Tab`&&!e?.shiftKey,Voe=e=>zc(e)&&e.key===`Tab`&&e?.shiftKey,Vc=(e,...t)=>typeof e==`function`?e(...t):e,Hoe=e=>!e.isComposing&&e.key===`Escape`,Hc=e=>setTimeout(e,0),Uoe=e=>e.localName===`input`&&`select`in e&&typeof e.select==`function`;function Uc(e,t={}){let n,r=Ii(()=>{let r=(Array.isArray(e)?e:[e]).map(e=>typeof e==`function`?e():e).filter(e=>e!=null);if(r.length===0)return;let i=r[0];n=new zoe(r,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:i,...t,document:$r(i)});try{n.activate()}catch{}});return function(){n?.deactivate(),r()}}var Wc=`data-scroll-lock`,Gc=new WeakMap;function Woe(e){let t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?`paddingLeft`:`paddingRight`}function Kc(e){let t=ii(e)?.scrollbarGutter;return t===`stable`||t?.startsWith(`stable `)===!0}function Goe(e){let t=e.defaultView??window,{documentElement:n,body:r}=e,i=Kc(n)||Kc(r),a=t.innerWidth-n.clientWidth;r.setAttribute(Wc,``);let o=()=>Qi(n,`--scrollbar-width`,`${a}px`),s=Woe(n),c=[o(),ci()?(()=>{let{scrollX:e,scrollY:n,visualViewport:o}=t,c=o?.offsetLeft??0,l=o?.offsetTop??0,u={position:`fixed`,overflow:`hidden`,top:`${-(n-Math.floor(l))}px`,left:`${-(e-Math.floor(c))}px`,right:`0`};!i&&a>0&&(u[s]=`${a}px`);let d=Zi(r,u);return()=>{d?.(),t.scrollTo({left:e,top:n,behavior:`instant`})}})():(()=>{let e={overflow:`hidden`};return!i&&a>0&&(e[s]=`${a}px`),Zi(r,e)})()];return()=>{c.forEach(e=>e?.()),r.removeAttribute(Wc)}}function qc(e){let t=e??document,n=Gc.get(t);n||(n={count:0,cleanup:Goe(t)},Gc.set(t,n)),n.count++;let r=n,i=!1;return()=>{i||(i=!0,r.count--,r.count===0&&(r.cleanup(),Gc.delete(t)))}}var Koe=Nr({props({props:e,scope:t}){let n=e.role===`alertdialog`,r=n?()=>Doe(t):void 0,i=typeof e.modal==`boolean`?e.modal:!0;return{role:`dialog`,modal:i,trapFocus:i,preventScroll:i,closeOnInteractOutside:i&&!n,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r,...e}},initialState({prop:e}){return e(`open`)||e(`defaultOpen`)?`open`:`closed`},context({bindable:e,prop:t,scope:n}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}})),triggerValue:e(()=>({defaultValue:t(`defaultTriggerValue`)??null,value:t(`triggerValue`),onChange(e){let r=t(`onTriggerValueChange`);r&&r({value:e,triggerElement:Ac(n,e)})}}))}},watch({track:e,action:t,prop:n}){e([()=>n(`open`)],()=>{t([`toggleVisibility`])})},states:{open:{entry:[`checkRenderedElements`,`setInitialFocus`],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`]}],"TRIGGER_VALUE.SET":{actions:[`setTriggerValue`]}}},closed:{on:{"CONTROLLED.OPEN":{target:`open`},OPEN:[{guard:`isOpenControlled`,actions:[`invokeOnOpen`,`setTriggerValue`]},{target:`open`,actions:[`invokeOnOpen`,`setTriggerValue`]}],TOGGLE:[{guard:`isOpenControlled`,actions:[`invokeOnOpen`,`setTriggerValue`]},{target:`open`,actions:[`invokeOnOpen`,`setTriggerValue`]}],"TRIGGER_VALUE.SET":{actions:[`setTriggerValue`]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e(`open`)!=null},effects:{trackDismissableElement({scope:e,send:t,prop:n}){return Cs(()=>Dc(e),{type:`dialog`,defer:!0,pointerBlocking:n(`modal`),layerStyleTargets:[()=>woe(e),()=>Coe(e)],exclude:[Oc(e),...kc(e)].filter(Boolean),onInteractOutside(e){n(`onInteractOutside`)?.(e),n(`closeOnInteractOutside`)||e.preventDefault()},persistentElements:n(`persistentElements`),onFocusOutside:n(`onFocusOutside`),onPointerDownOutside:n(`onPointerDownOutside`),onRequestDismiss:n(`onRequestDismiss`),onEscapeKeyDown(e){n(`onEscapeKeyDown`)?.(e),n(`closeOnEscape`)||e.preventDefault()},onDismiss(){t({type:`CLOSE`,src:`interact-outside`})}})},preventScroll({scope:e,prop:t}){if(t(`preventScroll`))return qc(e.getDoc())},trapFocus({scope:e,prop:t,context:n}){return t(`trapFocus`)?Uc(()=>Dc(e),{preventScroll:!0,returnFocusOnDeactivate:!!t(`restoreFocus`),initialFocus:t(`initialFocusEl`),setReturnFocus:r=>{let i=t(`finalFocusEl`)?.();if(i)return i;let a=n.get(`triggerValue`);if(a){let t=Ac(e,a);if(t)return t}return kc(e)[0]||r},getShadowRoot:!0}):void 0},hideContentBelow({scope:e,prop:t}){return t(`modal`)?Ic(()=>[Dc(e)],{defer:!0}):void 0}},actions:{setInitialFocus({prop:e,scope:t}){e(`trapFocus`)||Ii(()=>{Pi({root:Dc(t),getInitialEl:e(`initialFocusEl`)})?.focus({preventScroll:!0})})},checkRenderedElements({context:e,scope:t}){Ii(()=>{e.set(`rendered`,{title:!!Toe(t),description:!!Eoe(t)})})},invokeOnClose({prop:e}){e(`onOpenChange`)?.({open:!1})},invokeOnOpen({prop:e}){e(`onOpenChange`)?.({open:!0})},setTriggerValue({context:e,event:t}){t.value!==void 0&&e.set(`triggerValue`,t.value)},toggleVisibility({prop:e,send:t,event:n}){t({type:e(`open`)?`CONTROLLED.OPEN`:`CONTROLLED.CLOSE`,previousEvent:n})}}}}),[Jc,Yc]=cr({hookName:`useDialogContext`,providerName:`<DialogProvider />`}),qoe=e=>{let t=Yc(),n=Ia(I(ur(),()=>({present:t().open}))),r=I(()=>t().getBackdropProps(),()=>n().presenceProps,e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,j(r,{ref(t){var r=La(n().ref,e.ref);typeof r==`function`&&r(t)}}))}})},Joe=e=>{let t=Yc(),n=I(()=>t().getCloseTriggerProps(),e);return A(L.button,n)},Yoe=e=>{let t=Yc(),n=Ba(),r=I(()=>t().getContentProps(),()=>n().presenceProps,e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,j(r,{ref(t){var r=La(n().ref,e.ref);typeof r==`function`&&r(t)}}))}})},Xoe=e=>e.children(Yc()),Zoe=e=>{let t=Yc(),n=I(()=>t().getDescriptionProps(),e);return A(L.div,n)},Qoe=e=>{let t=Yc(),n=Ba(),r=I(()=>t().getPositionerProps(),e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,r)}})},$oe=e=>{let t=ct(),n=ua(),r=la(),i=na(Koe,k(()=>({id:t,dir:n().dir,getRootNode:r().getRootNode,...pr(e)})));return k(()=>Ooe(i,oa))},ese=e=>{let[t,n]=Ra(e),[r]=dr(t),[i,a]=$t()(n,[`aria-label`,`closeOnEscape`,`closeOnInteractOutside`,`defaultOpen`,`finalFocusEl`,`id`,`ids`,`initialFocusEl`,`modal`,`onEscapeKeyDown`,`onFocusOutside`,`onInteractOutside`,`onOpenChange`,`onPointerDownOutside`,`onRequestDismiss`,`open`,`persistentElements`,`preventScroll`,`restoreFocus`,`role`,`trapFocus`,`triggerValue`,`defaultTriggerValue`,`onTriggerValueChange`]),o=$oe(i),s=Ia(I(t,()=>({present:o().open})));return A(Jc,{value:o,get children(){return A(lr,{value:r,get children(){return A(za,{value:s,get children(){return a.children}})}})}})},tse=e=>{let[t,n]=Ra(e),[r]=dr(t),i=Ia(I(t,()=>({present:n.value().open})));return A(Jc,{get value(){return n.value},get children(){return A(lr,{value:r,get children(){return A(za,{value:i,get children(){return n.children}})}})}})},nse=e=>{let t=Yc(),n=I(()=>t().getTitleProps(),e);return A(L.h2,n)},rse=e=>{let[t,n]=$t()(e,[`value`]),r=Yc(),i=Ba(),a=I(()=>r().getTriggerProps(t),()=>({"aria-controls":i().unmounted&&null}),n);return A(L.button,a)},Xc={};da(Xc,{Backdrop:()=>qoe,CloseTrigger:()=>Joe,Content:()=>Yoe,Context:()=>Xoe,Description:()=>Zoe,Positioner:()=>Qoe,Root:()=>ese,RootProvider:()=>tse,Title:()=>nse,Trigger:()=>rse});var Zc=fa(`progress`).parts(`root`,`label`,`track`,`range`,`valueText`,`view`,`circle`,`circleTrack`,`circleRange`).build(),ise=e=>e.ids?.root??`progress-${e.id}`,ase=e=>e.ids?.track??`progress-${e.id}-track`,ose=e=>e.ids?.label??`progress-${e.id}-label`,sse=e=>e.ids?.circle??`progress-${e.id}-circle`;function cse(e,t){let{context:n,computed:r,prop:i,send:a,scope:o}=e,s=r(`percent`),c=r(`isIndeterminate`)?``:r(`formatter`).format(s/100),l=i(`max`),u=i(`min`),d=i(`orientation`),f=i(`translations`),p=r(`isIndeterminate`),m=n.get(`value`),h=f?.value({value:m,max:l,percent:s,min:u,formatter:r(`formatter`)})??``,g=lse(m,l),_={role:`progressbar`,"aria-label":h,"data-max":l,"aria-valuemin":u,"aria-valuemax":l,"aria-valuenow":m??void 0,"data-orientation":d,"data-state":g},v=dse(e);return{value:m,valueAsString:h,min:u,max:l,percent:s,percentAsString:c,indeterminate:p,setValue(e){a({type:`VALUE.SET`,value:e})},setToMax(){a({type:`VALUE.SET`,value:l})},setToMin(){a({type:`VALUE.SET`,value:u})},getRootProps(){return t.element({dir:i(`dir`),...Zc.root.attrs,id:ise(o),"data-max":l,"data-value":m??void 0,"data-state":g,"data-orientation":d,style:{"--percent":p?void 0:s}})},getLabelProps(){return t.element({dir:i(`dir`),id:ose(o),...Zc.label.attrs,"data-orientation":d})},getValueTextProps(){return t.element({dir:i(`dir`),"aria-live":`polite`,...Zc.valueText.attrs})},getTrackProps(){return t.element({dir:i(`dir`),id:ase(o),...Zc.track.attrs,..._})},getRangeProps(){return t.element({dir:i(`dir`),...Zc.range.attrs,"data-orientation":d,"data-state":g,style:{[r(`isHorizontal`)?`width`:`height`]:p?void 0:`${s}%`}})},getCircleProps(){return t.element({dir:i(`dir`),id:sse(o),...Zc.circle.attrs,..._,...v.root})},getCircleTrackProps(){return t.element({dir:i(`dir`),"data-orientation":d,...Zc.circleTrack.attrs,...v.track})},getCircleRangeProps(){return t.element({dir:i(`dir`),...Zc.circleRange.attrs,...v.range,"data-state":g})},getViewProps(e){return t.element({dir:i(`dir`),...Zc.view.attrs,"data-state":e.state,hidden:e.state!==g})}}}function lse(e,t){return e==null?`indeterminate`:e===t?`complete`:`loading`}var Qc={style:{"--radius":`calc(var(--size) / 2 - var(--thickness) / 2)`,cx:`calc(var(--size) / 2)`,cy:`calc(var(--size) / 2)`,r:`var(--radius)`,fill:`transparent`,strokeWidth:`var(--thickness)`}},use={style:{width:`var(--size)`,height:`var(--size)`}};function dse(e){let{context:t,computed:n}=e;return{root:use,track:Qc,range:{opacity:t.get(`value`)===0?0:void 0,style:{...Qc.style,"--percent":n(`percent`),"--circumference":`calc(2 * 3.14159 * var(--radius))`,"--offset":`calc(var(--circumference) * (100 - var(--percent)) / 100)`,strokeDashoffset:`calc(var(--circumference) * ((100 - var(--percent)) / 100))`,strokeDasharray:n(`isIndeterminate`)?void 0:`var(--circumference)`,transformOrigin:`center`,transform:`rotate(-90deg)`}}}}var fse=Nr({props({props:e}){let t=e.min??0,n=e.max??100;return{orientation:`horizontal`,...e,max:n,min:t,defaultValue:e.defaultValue===void 0?hse(t,n):e.defaultValue,formatOptions:{style:`percent`,...e.formatOptions},translations:{value:({value:e,percent:t,formatter:n})=>{if(e===null)return`loading...`;if(n){let r=n.resolvedOptions().style===`percent`?t/100:e;return n.format(r)}return e.toString()},...e.translations}}},initialState(){return`idle`},entry:[`validateContext`],context({bindable:e,prop:t}){return{value:e(()=>({defaultValue:t(`defaultValue`),value:t(`value`),onChange(e){t(`onValueChange`)?.({value:e})}}))}},computed:{isIndeterminate:({context:e})=>e.get(`value`)===null,percent({context:e,prop:t}){let n=e.get(`value`);return Tn(n)?Xn(n,t(`min`),t(`max`))*100:-1},formatter:dee(({prop:e})=>[e(`locale`),e(`formatOptions`)],([e,t])=>new Intl.NumberFormat(e,t)),isHorizontal:({prop:e})=>e(`orientation`)===`horizontal`},states:{idle:{on:{"VALUE.SET":{actions:[`setValue`]}}}},implementations:{actions:{setValue:({context:e,event:t,prop:n})=>{let r=t.value===null?null:Math.max(0,Math.min(t.value,n(`max`)));e.set(`value`,r)},validateContext:({context:e,prop:t})=>{let n=t(`max`),r=t(`min`),i=e.get(`value`);if(i!=null){if(!$c(n))throw Error(`[progress] The max value passed \`${n}\` is not a valid number`);if(!pse(i,n))throw Error(`[progress] The value passed \`${i}\` exceeds the max value \`${n}\``);if(!mse(i,r))throw Error(`[progress] The value passed \`${i}\` exceeds the min value \`${r}\``)}}}}}),$c=e=>Tn(e)&&!isNaN(e),pse=(e,t)=>$c(e)&&e<=t,mse=(e,t)=>$c(e)&&e>=t,hse=(e,t)=>e+(t-e)/2,[el,tl]=cr({hookName:`useProgressContext`,providerName:`<ProgressProvider />`}),gse=e=>{let t=tl(),n=I(()=>t().getCircleProps(),e);return A(L.svg,n)},_se=e=>{let t=tl(),n=I(()=>t().getCircleRangeProps(),e);return A(L.circle,n)},vse=e=>{let t=tl(),n=I(()=>t().getCircleTrackProps(),e);return A(L.circle,n)},yse=e=>e.children(tl()),bse=e=>{let t=tl(),n=I(()=>t().getLabelProps(),e);return A(L.span,n)},xse=e=>{let t=tl(),n=I(()=>t().getRangeProps(),e);return A(L.div,n)},Sse=e=>{let t=ct(),n=ua(),r=la(),i=na(fse,k(()=>({id:t,dir:n().dir,locale:n().locale,getRootNode:r().getRootNode,...pr(e)})));return k(()=>cse(i,oa))},Cse=e=>{let[t,n]=$t()(e,[`defaultValue`,`formatOptions`,`id`,`ids`,`locale`,`max`,`min`,`onValueChange`,`orientation`,`translations`,`value`]),r=Sse(t),i=I(()=>r().getRootProps(),n);return A(el,{value:r,get children(){return A(L.div,i)}})},wse=e=>{let[{value:t},n]=$t()(e,[`value`]),r=I(()=>t().getRootProps(),n);return A(el,{value:t,get children(){return A(L.div,r)}})},Tse=e=>{let t=tl(),n=I(()=>t().getTrackProps(),e);return A(L.div,n)},Ese=e=>{let t=tl(),n=I(()=>t().getValueTextProps(),e);return A(L.span,j(n,{get children(){return e.children||t().percentAsString}}))},Dse=e=>{let[t,n]=$t()(e,[`state`]),r=tl(),i=I(()=>r().getViewProps(t),n);return A(L.span,i)},nl={};da(nl,{Circle:()=>gse,CircleRange:()=>_se,CircleTrack:()=>vse,Context:()=>yse,Label:()=>bse,Range:()=>xse,Root:()=>Cse,RootProvider:()=>wse,Track:()=>Tse,ValueText:()=>Ese,View:()=>Dse});var rl=fa(`tooltip`).parts(`trigger`,`arrow`,`arrowTip`,`positioner`,`content`).build(),il=(e,t)=>{let n=e.ids?.trigger;return n==null?t?`tooltip:${e.id}:trigger:${t}`:`tooltip:${e.id}:trigger`:Dn(n)?n(t):n},Ose=e=>e.ids?.content??`tooltip:${e.id}:content`,kse=e=>e.ids?.arrow??`tooltip:${e.id}:arrow`,al=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,Ase=e=>e.getById(il(e)),ol=e=>e.getById(al(e)),jse=e=>Gi(e.getRootNode(),`[data-scope="tooltip"][data-part="trigger"][data-ownedby="${e.id}"]`),sl=(e,t)=>t==null?Ase(e)??jse(e)[0]:e.getById(il(e,t)),cl=$n({id:null,prevId:null,instant:!1});function Mse(e,t){let{state:n,context:r,send:i,scope:a,prop:o,event:s}=e,c=o(`id`),l=!!o(`aria-label`),u=n.matches(`open`,`closing`),d=r.get(`triggerValue`),f=r.get(`currentPlacement`),p=f?Xo(f):void 0,m=Ose(a),h=o(`disabled`),g=rs({...o(`positioning`),placement:f});return{open:u,setOpen(e){n.matches(`open`,`closing`)!==e&&i({type:e?`open`:`close`})},triggerValue:d,setTriggerValue(e){i({type:`triggerValue.set`,value:e??void 0})},reposition(e={}){i({type:`positioning.set`,options:e})},getTriggerProps(e={}){let{value:n}=e,r=n==null?!1:d===n,s=il(a,n);return t.button({...rl.trigger.attrs,id:s,"data-ownedby":a.id,"data-value":n,"data-current":F(r),dir:o(`dir`),"data-expanded":F(u),"data-state":u?`open`:`closed`,"aria-describedby":u?m:void 0,onClick(e){e.defaultPrevented||h||o(`closeOnClick`)&&i({type:u&&n!=null&&!r?`triggerValue.set`:`close`,src:`trigger.click`,value:n,triggerId:s})},onFocus(e){e.defaultPrevented||h||Na()&&i({type:u&&n!=null&&!r?`triggerValue.set`:`open`,src:`trigger.focus`,value:n,triggerId:s})},onBlur(e){e.defaultPrevented||h||c===cl.get(`id`)&&((e.relatedTarget??a.getDoc().activeElement)?.closest(`[data-ownedby="${a.id}"]`)??i({type:`close`,src:`trigger.blur`,value:n,triggerId:s}))},onPointerDown(e){e.defaultPrevented||h||gi(e)&&o(`closeOnPointerDown`)&&c===cl.get(`id`)&&i({type:`close`,src:`trigger.pointerdown`,value:n,triggerId:s})},onPointerMove(e){e.defaultPrevented||h||e.pointerType!==`touch`&&i({type:u&&n!=null&&!r?`triggerValue.set`:`pointer.move`,value:n,triggerId:s})},onPointerOver(e){e.defaultPrevented||h||e.pointerType!==`touch`&&i({type:`pointer.move`,value:n,triggerId:s})},onPointerLeave(){h||i({type:`pointer.leave`})},onPointerCancel(){h||i({type:`pointer.leave`})}})},getArrowProps(){return t.element({id:kse(a),...rl.arrow.attrs,dir:o(`dir`),style:g.arrow})},getArrowTipProps(){return t.element({...rl.arrowTip.attrs,dir:o(`dir`),style:g.arrowTip})},getPositionerProps(){return t.element({id:al(a),...rl.positioner.attrs,dir:o(`dir`),style:g.floating})},getContentProps(){let e=cl.get(`id`)===c,n=cl.get(`prevId`)===c,r=cl.get(`instant`)&&(u&&e||n);return t.element({...rl.content.attrs,dir:o(`dir`),hidden:!u,"data-state":u?`open`:`closed`,"data-instant":F(r),role:l?void 0:`tooltip`,id:l?void 0:m,"data-placement":f,"data-side":p,onPointerEnter(){i({type:`content.pointer.move`})},onPointerLeave(){i({type:`content.pointer.leave`})},style:{pointerEvents:o(`interactive`)?`auto`:`none`}})}}}var{and:Nse,not:ll}=Mr(),Pse=Nr({initialState:({prop:e})=>e(`open`)||e(`defaultOpen`)?`open`:`closed`,props({props:e}){sr(e,[`id`]);let t=e.closeOnClick??!0,n=e.closeOnPointerDown??t;return{openDelay:400,closeDelay:150,closeOnEscape:!0,interactive:!1,closeOnScroll:!0,disabled:!1,...e,closeOnPointerDown:n,closeOnClick:t,positioning:{placement:`bottom`,...e.positioning}}},effects:[`trackFocusVisible`,`trackStore`],context:({bindable:e,prop:t,scope:n})=>({currentPlacement:e(()=>({defaultValue:void 0})),hasPointerMoveOpened:e(()=>({defaultValue:null})),triggerValue:e(()=>({defaultValue:t(`defaultTriggerValue`)??null,value:t(`triggerValue`),onChange(e){let r=t(`onTriggerValueChange`);r&&r({value:e,triggerElement:sl(n,e)})}}))}),watch({track:e,action:t,prop:n}){e([()=>n(`disabled`)],()=>{t([`closeIfDisabled`])}),e([()=>n(`open`)],()=>{t([`toggleVisibility`])}),e([()=>n(`triggerValue`)],()=>{t([`repositionImmediate`])})},on:{"triggerValue.set":{actions:[`setTriggerValue`,`repositionImmediate`]}},states:{closed:{entry:[`clearGlobalId`],on:{"controlled.open":{target:`open`},open:[{guard:`isOpenControlled`,actions:[`setTriggerValue`,`invokeOnOpen`]},{target:`open`,actions:[`setTriggerValue`,`invokeOnOpen`]}],"pointer.leave":{actions:[`clearPointerMoveOpened`]},"pointer.move":[{guard:Nse(`noVisibleTooltip`,ll(`hasPointerMoveOpened`)),target:`opening`,actions:[`setTriggerValue`]},{guard:ll(`hasPointerMoveOpened`),target:`open`,actions:[`setPointerMoveOpened`,`invokeOnOpen`,`setTriggerValue`]}]}},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:[`setTriggerValue`,`invokeOnOpen`]},{target:`open`,actions:[`setTriggerValue`,`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`]},"triggerValue.set":{target:`closing`,actions:[`setTriggerValue`,`immediateReopen`]}}},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`,`setTriggerValue`,`invokeOnOpen`,`toggleVisibility`]},{target:`open`,actions:[`setPointerMoveOpened`,`setTriggerValue`,`invokeOnOpen`]}],"triggerValue.set":{target:`open`,actions:[`setTriggerValue`,`repositionImmediate`]},reopen:{target:`open`},"content.pointer.move":{guard:`isInteractive`,target:`open`},"positioning.set":{actions:[`reposition`]}}}},implementations:{guards:{noVisibleTooltip:()=>cl.get(`id`)===null,isVisible:({prop:e})=>e(`id`)===cl.get(`id`),isInteractive:({prop:e})=>!!e(`interactive`),hasPointerMoveOpened:({context:e})=>!!e.get(`hasPointerMoveOpened`),isOpenControlled:({prop:e})=>e(`open`)!==void 0},actions:{setGlobalId:({prop:e})=>{let t=cl.get(`id`),n=t!==null&&t!==e(`id`);cl.update({id:e(`id`),prevId:n?t:null,instant:n})},clearGlobalId:({prop:e})=>{e(`id`)===cl.get(`id`)&&cl.update({id:null,prevId:null,instant:!1})},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:n,scope:r})=>{t.type===`positioning.set`&&ns(()=>sl(r,e.get(`triggerValue`)),()=>ol(r),{...n(`positioning`),...t.options,listeners:!1,onComplete(t){e.set(`currentPlacement`,t.placement)}})},repositionImmediate:({context:e,event:t,prop:n,scope:r})=>{let i=t.value??e.get(`triggerValue`);return ns(()=>sl(r,i),()=>ol(r),{...n(`positioning`),onComplete(t){e.set(`currentPlacement`,t.placement)}})},toggleVisibility:({prop:e,event:t,send:n})=>{queueMicrotask(()=>{n({type:e(`open`)?`controlled.open`:`controlled.close`,previousEvent:t})})},setPointerMoveOpened:({context:e,event:t})=>{let n=t.triggerId??t.previousEvent?.triggerId;e.set(`hasPointerMoveOpened`,n??null)},clearPointerMoveOpened:({context:e})=>{e.set(`hasPointerMoveOpened`,null)},setTriggerValue:({context:e,event:t})=>{t.value!==void 0&&e.set(`triggerValue`,t.value)},immediateReopen:({send:e})=>{queueMicrotask(()=>{e({type:`reopen`})})}},effects:{trackFocusVisible:({scope:e})=>Pa({root:e.getRootNode?.()}),trackPositioning:({context:e,prop:t,scope:n})=>(e.get(`currentPlacement`)||e.set(`currentPlacement`,t(`positioning`).placement),ns(()=>sl(n,e.get(`triggerValue`)),()=>ol(n),{...t(`positioning`),defer:!0,onComplete(t){e.set(`currentPlacement`,t.placement)}})),trackPointerlockChange:({send:e,scope:t})=>xi(t.getDoc(),`pointerlockchange`,()=>e({type:`close`,src:`pointerlock:change`}),!1),trackScroll:({send:e,prop:t,scope:n,context:r})=>{if(!t(`closeOnScroll`))return;let i=sl(n,r.get(`triggerValue`));if(!i)return;let a=Ete(i).map(t=>xi(t,`scroll`,()=>{e({type:`close`,src:`scroll`})},{passive:!0,capture:!0}));return()=>{a.forEach(e=>e?.())}},trackStore:({prop:e,send:t})=>{let n;return queueMicrotask(()=>{n=cl.subscribe(()=>{cl.get(`id`)!==e(`id`)&&t({type:`close`,src:`id.change`})})}),()=>n?.()},trackEscapeKey:({send:e,prop:t})=>t(`closeOnEscape`)?xi(document,`keydown`,t=>{hi(t)||t.key===`Escape`&&(t.stopPropagation(),e({type:`close`,src:`keydown.escape`}))},!0):void 0,waitForOpenDelay:({send:e,prop:t,event:n})=>{let r=setTimeout(()=>{e({type:`after.openDelay`,previousEvent:n})},t(`openDelay`));return()=>clearTimeout(r)},waitForCloseDelay:({send:e,prop:t,event:n})=>{let r=setTimeout(()=>{e({type:`after.closeDelay`,previousEvent:n})},t(`closeDelay`));return()=>clearTimeout(r)}}}}),[ul,dl]=cr({hookName:`useTooltipContext`,providerName:`<TooltipProvider />`}),Fse=e=>{let t=dl(),n=I(()=>t().getArrowProps(),e);return A(L.div,n)},Ise=e=>{let t=dl(),n=I(()=>t().getArrowTipProps(),e);return A(L.div,n)},Lse=e=>{let t=dl(),n=Ba(),r=I(()=>t().getContentProps(),()=>n().presenceProps,e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,j(r,{ref(t){var r=La(n().ref,e.ref);typeof r==`function`&&r(t)}}))}})},Rse=e=>e.children(dl()),zse=e=>{let t=dl(),n=Ba(),r=I(()=>t().getPositionerProps(),e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,r)}})},Bse=e=>{let t=ct(),n=ua(),r=la(),i=na(Pse,k(()=>({id:t,dir:n().dir,getRootNode:r().getRootNode,...pr(e)})));return k(()=>Mse(i,oa))},Vse=e=>{let[t,n]=Ra(e),[r,i]=$t()(n,[`aria-label`,`closeDelay`,`closeOnClick`,`closeOnEscape`,`closeOnPointerDown`,`closeOnScroll`,`defaultOpen`,`disabled`,`id`,`ids`,`interactive`,`onOpenChange`,`open`,`openDelay`,`positioning`,`triggerValue`,`defaultTriggerValue`,`onTriggerValueChange`]),a=Bse(r),o=Ia(I(t,()=>({present:a().open})));return A(ul,{value:a,get children(){return A(za,{value:o,get children(){return i.children}})}})},Hse=e=>{let[t,n]=Ra(e),r=Ia(I(t,()=>({present:n.value().open})));return A(ul,{get value(){return n.value},get children(){return A(za,{value:r,get children(){return n.children}})}})},Use=e=>{let[t,n]=$t()(e,[`value`]),r=dl(),i=I(()=>r().getTriggerProps(t),n);return A(L.button,i)},fl={};da(fl,{Arrow:()=>Fse,ArrowTip:()=>Ise,Content:()=>Lse,Context:()=>Rse,Positioner:()=>zse,Root:()=>Vse,RootProvider:()=>Hse,Trigger:()=>Use});var pl=fa(`menu`).parts(`arrow`,`arrowTip`,`content`,`contextTrigger`,`indicator`,`item`,`itemGroup`,`itemGroupLabel`,`itemIndicator`,`itemText`,`positioner`,`separator`,`trigger`,`triggerItem`).build(),ml=(e,t)=>{let n=e.ids?.trigger;return n==null?t?`menu:${e.id}:trigger:${t}`:`menu:${e.id}:trigger`:Dn(n)?n(t):n},hl=(e,t)=>{let n=e.ids?.contextTrigger;return n==null?t?`menu:${e.id}:ctx-trigger:${t}`:`menu:${e.id}:ctx-trigger`:Dn(n)?n(t):n},gl=e=>e.ids?.content??`menu:${e.id}:content`,Wse=e=>e.ids?.arrow??`menu:${e.id}:arrow`,_l=e=>e.ids?.positioner??`menu:${e.id}:popper`,Gse=(e,t)=>e.ids?.group?.(t)??`menu:${e.id}:group:${t}`,vl=(e,t)=>`${e.id}/${t}`,yl=e=>e?.dataset.value??null,bl=(e,t)=>e.ids?.groupLabel?.(t)??`menu:${e.id}:group-label:${t}`,xl=e=>e.getById(gl(e)),Sl=e=>e.getById(_l(e)),Cl=e=>e.getById(ml(e)),Kse=(e,t)=>t?e.getById(vl(e,t)):null,qse=e=>e.getById(hl(e)),wl=e=>Gi(e.getRootNode(),`[data-scope="menu"][data-part="trigger"][data-ownedby="${e.id}"]`),Tl=e=>Gi(e.getRootNode(),`[data-scope="menu"][data-part="context-trigger"][data-ownedby="${e.id}"]`),El=(e,t)=>t==null?Cl(e)??wl(e)[0]:e.getById(ml(e,t)),Dl=e=>{let t=`[role^="menuitem"][data-ownedby=${CSS.escape(gl(e))}]:not([data-disabled])`;return Gi(xl(e),t)},Jse=e=>cn(Dl(e)),Yse=e=>ln(Dl(e)),Ol=(e,t)=>t?e.id===t||e.dataset.value===t:!1,Xse=(e,t)=>{let n=Dl(e);return hn(n,n.findIndex(e=>Ol(e,t.value)),{loop:t.loop??t.loopFocus})},Zse=(e,t)=>{let n=Dl(e);return _n(n,n.findIndex(e=>Ol(e,t.value)),{loop:t.loop??t.loopFocus})},Qse=(e,t)=>{let n=Dl(e),r=n.find(e=>Ol(e,t.value));return $i(n,{state:t.typeaheadState,key:t.key,activeId:r?.id??null})},kl=e=>Ur(e)&&(e.dataset.disabled===``||e.hasAttribute(`disabled`)),Al=e=>!!e?.getAttribute(`role`)?.startsWith(`menuitem`)&&!!e?.hasAttribute(`data-controls`),jl=`menu:select`;function $se(e,t){if(!e)return;let n=new(ei(e)).CustomEvent(jl,{detail:{value:t}});e.dispatchEvent(n)}function ece(e){let t=gl(e);return xl(e)??e.getDoc().getElementById(t)}function Ml(e,t){if(!Ur(e))return!1;for(let n in t){let r=t[n],i=ece(r.scope);if(i&&Qr(i,e))return!0;let a=r.refs.get(`children`);if(Object.keys(a).length>0&&Ml(e,a))return!0}return!1}var Nl=(e,t)=>({x:e,y:t});function tce(e){let{x:t,y:n,width:r,height:i}=e,a=t+r/2,o=n+i/2;return{x:t,y:n,width:r,height:i,minX:t,minY:n,maxX:t+r,maxY:n+i,midX:a,midY:o,center:Nl(a,o)}}function nce(e){return{top:Nl(e.minX,e.minY),right:Nl(e.maxX,e.minY),bottom:Nl(e.maxX,e.maxY),left:Nl(e.minX,e.maxY)}}function rce(e,t){let{top:n,right:r,left:i,bottom:a}=nce(tce(e)),[o]=t.split(`-`);return{top:[i,n,r,a],right:[n,r,a,i],bottom:[n,i,a,r],left:[r,n,i,a]}[o]}function Pl(e,t){let{x:n,y:r}=t,i=!1;for(let t=0,a=e.length-1;t<e.length;a=t++){let o=e[t].x,s=e[t].y,c=e[a].x,l=e[a].y;s>r!=l>r&&n<(c-o)*(r-s)/(l-s)+o&&(i=!i)}return i}function Fl(e){let t=e.parent;for(;t&&t.context.get(`isSubmenu`);)t=t.refs.get(`parent`);t?.send({type:`CLOSE`})}function ice(e,t){return e?Pl(e,t):!1}function ace(e,t,n){let r=Object.keys(e).length>0;if(!t)return null;if(!r)return vl(n,t);for(let n in e){let r=e[n],i=ml(r.scope);if(i===t)return i}return vl(n,t)}function Il(e,t){e&&(e.refs.set(`pointerRoutingLocked`,t),e.context.set(`pointerRoutingMode`,t?`locked`:`interactive`))}function Ll(e){let t=e.context.get(`highlightedValue`);if(!t)return!1;let n=e.refs.get(`children`);for(let e in n){let r=n[e];if(r.state.hasTag(`open`)&&ml(r.scope)===t)return!0}return!1}function oce(e,t){e&&(e.refs.get(`pointerRoutingLocked`)||t&&Ll(e)||Il(e,!1))}function sce(e){e&&(Ll(e)||Il(e,!1))}function cce(e,t){let{context:n,send:r,state:i,computed:a,prop:o,scope:s}=e,c=i.hasTag(`open`),l=n.get(`isSubmenu`),u=a(`isTypingAhead`),d=o(`composite`),f=n.get(`currentPlacement`),p=f?Xo(f):void 0,m=n.get(`anchorPoint`),h=n.get(`highlightedValue`),g=n.get(`triggerValue`),_=rs({...o(`positioning`),placement:m?`bottom`:f});function v(e){return{id:vl(s,e.value),disabled:!!e.disabled,highlighted:h===e.value}}function y(e){let t=e.valueText??e.value;return{...e,id:e.value,valueText:t}}function b(e){return{...v(y(e)),checked:!!e.checked}}function x(n){let{closeOnSelect:i,valueText:a,value:o}=n,c=v(n),l=vl(s,o);return t.element({...pl.item.attrs,id:l,role:`menuitem`,"aria-disabled":Hr(c.disabled),"data-disabled":F(c.disabled),"data-ownedby":gl(s),"data-highlighted":F(c.highlighted),"data-value":o,"data-valuetext":a,onDragStart(e){e.currentTarget.matches(`a[href]`)&&e.preventDefault()},onPointerMove(e){if(c.disabled||e.pointerType!==`mouse`)return;let t=e.currentTarget;c.highlighted||r({type:`ITEM_POINTERMOVE`,id:l,target:t,closeOnSelect:i,point:bi(e)})},onPointerLeave(t){if(c.disabled||t.pointerType!==`mouse`||!e.event.previous()?.type.includes(`POINTER`))return;let n=t.currentTarget;r({type:`ITEM_POINTERLEAVE`,id:l,target:n,closeOnSelect:i})},onPointerDown(e){if(c.disabled)return;let t=e.currentTarget;r({type:`ITEM_POINTERDOWN`,target:t,id:l,closeOnSelect:i})},onClick(e){if(mi(e)||pi(e)||c.disabled)return;let t=e.currentTarget;r({type:`ITEM_CLICK`,target:t,id:l,closeOnSelect:i})}})}return{highlightedValue:h,open:c,setOpen(e){i.hasTag(`open`)!==e&&r({type:e?`OPEN`:`CLOSE`})},triggerValue:g,setTriggerValue(e){r({type:`TRIGGER_VALUE.SET`,value:e})},setHighlightedValue(e){r({type:`HIGHLIGHTED.SET`,value:e})},setParent(e){r({type:`PARENT.SET`,value:e,id:e.prop(`id`)})},setChild(e){r({type:`CHILD.SET`,value:e,id:e.prop(`id`)})},reposition(e={}){r({type:`POSITIONING.SET`,options:e})},addItemListener(e){let t=s.getById(e.id);if(!t)return;let n=()=>e.onSelect?.();return t.addEventListener(jl,n),()=>t.removeEventListener(jl,n)},getContextTriggerProps(e={}){let{value:n}=e,i=n==null?!1:g===n,a=hl(s,n);return t.element({...pl.contextTrigger.attrs,dir:o(`dir`),id:a,"data-ownedby":s.id,"data-value":n,"data-current":F(i),"data-state":c?`open`:`closed`,onPointerDown(e){e.pointerType!==`mouse`&&r({type:`CONTEXT_MENU_START`,point:bi(e),value:n})},onPointerCancel(e){e.pointerType!==`mouse`&&r({type:`CONTEXT_MENU_CANCEL`})},onPointerMove(e){e.pointerType!==`mouse`&&r({type:`CONTEXT_MENU_CANCEL`})},onPointerUp(e){e.pointerType!==`mouse`&&r({type:`CONTEXT_MENU_CANCEL`})},onContextMenu(e){let t=bi(e);r({type:c&&n!=null&&!i?`TRIGGER_VALUE.SET`:`CONTEXT_MENU`,point:t,value:n}),e.preventDefault()},style:{WebkitTouchCallout:`none`,WebkitUserSelect:`none`,userSelect:`none`}})},getTriggerItemProps(e){let t=e.getTriggerProps();return vr(x({value:t.id}),t)},getTriggerProps(n={}){let{value:i}=n,a=i==null?!1:g===i,u=ml(s,i);return t.button({...l?pl.triggerItem.attrs:pl.trigger.attrs,"data-placement":f,"data-side":p,type:`button`,dir:o(`dir`),id:u,...i!=null&&{"data-ownedby":s.id,"data-value":i,"data-current":F(a)},"data-uid":o(`id`),"aria-haspopup":d?`menu`:`dialog`,"aria-controls":gl(s),"data-controls":gl(s),"aria-expanded":i==null?c:c&&a,"data-state":c?`open`:`closed`,onPointerMove(e){if(e.pointerType!==`mouse`||kl(e.currentTarget)||!l)return;let t=bi(e);r({type:`TRIGGER_POINTERMOVE`,target:e.currentTarget,point:t})},onPointerLeave(t){if(kl(t.currentTarget)||t.pointerType!==`mouse`||!l)return;Il(e.refs.get(`parent`),!0);let n=bi(t);r({type:`TRIGGER_POINTERLEAVE`,target:t.currentTarget,point:n})},onPointerDown(e){kl(e.currentTarget)||_i(e)||e.preventDefault()},onClick(e){e.defaultPrevented||kl(e.currentTarget)||r({type:c&&i!=null&&!a?`TRIGGER_VALUE.SET`:`TRIGGER_CLICK`,target:e.currentTarget,value:i})},onBlur(){r({type:`TRIGGER_BLUR`})},onFocus(){r({type:`TRIGGER_FOCUS`})},onKeyDown(e){if(e.defaultPrevented)return;let t={ArrowDown(){r({type:`ARROW_DOWN`,value:i})},ArrowUp(){r({type:`ARROW_UP`,value:i})},Enter(){r({type:`ARROW_DOWN`,src:`enter`,value:i})},Space(){r({type:`ARROW_DOWN`,src:`space`,value:i})}}[yi(e,{orientation:`vertical`,dir:o(`dir`)})];t&&(e.preventDefault(),t(e))}})},getIndicatorProps(){return t.element({...pl.indicator.attrs,dir:o(`dir`),"data-state":c?`open`:`closed`})},getPositionerProps(){return t.element({...pl.positioner.attrs,dir:o(`dir`),id:_l(s),style:_.floating})},getArrowProps(){return t.element({id:Wse(s),...pl.arrow.attrs,dir:o(`dir`),style:_.arrow})},getArrowTipProps(){return t.element({...pl.arrowTip.attrs,dir:o(`dir`),style:_.arrowTip})},getContentProps(){return t.element({...pl.content.attrs,id:gl(s),"aria-label":o(`aria-label`),hidden:!c,"data-state":c?`open`:`closed`,role:d?`menu`:`dialog`,tabIndex:0,dir:o(`dir`),"aria-activedescendant":a(`highlightedId`)||void 0,"aria-labelledby":m?hl(s,g??void 0):ml(s,g??void 0),"data-placement":f,"data-side":p,onPointerEnter(e){e.pointerType===`mouse`&&r({type:`MENU_POINTERENTER`})},onKeyDown(e){if(e.defaultPrevented||!Qr(e.currentTarget,fi(e)))return;let t=fi(e);if(!(t?.closest(`[role=menu]`)===e.currentTarget||t===e.currentTarget))return;if(e.key===`Tab`&&!xte(e)){e.preventDefault();return}let n={ArrowDown(){r({type:`ARROW_DOWN`})},ArrowUp(){r({type:`ARROW_UP`})},ArrowLeft(){r({type:`ARROW_LEFT`})},ArrowRight(){r({type:`ARROW_RIGHT`})},Enter(){r({type:`ENTER`})},Space(e){u?r({type:`TYPEAHEAD`,key:e.key}):n.Enter?.(e)},Home(){r({type:`HOME`})},End(){r({type:`END`})}},i=n[yi(e,{dir:o(`dir`)})];if(i){i(e),e.stopPropagation(),e.preventDefault();return}o(`typeahead`)&&ete(e)&&(nte(e)||Zr(t)||(r({type:`TYPEAHEAD`,key:e.key}),e.preventDefault()))}})},getSeparatorProps(){return t.element({...pl.separator.attrs,role:`separator`,dir:o(`dir`),"aria-orientation":`horizontal`})},getItemState:v,getItemProps:x,getOptionItemState:b,getOptionItemProps(e){let{type:n,disabled:i,closeOnSelect:a}=e,s=y(e),c=b(e);return{...x(s),...t.element({"data-type":n,...pl.item.attrs,dir:o(`dir`),"data-value":s.value,role:`menuitem${n}`,"aria-checked":!!c.checked,"data-state":c.checked?`checked`:`unchecked`,onClick(e){if(i||mi(e)||pi(e))return;let t=e.currentTarget;r({type:`ITEM_CLICK`,target:t,option:s,closeOnSelect:a})}})}},getItemIndicatorProps(e){let n=b(Rn(e)),r=n.checked?`checked`:`unchecked`;return t.element({...pl.itemIndicator.attrs,dir:o(`dir`),"data-disabled":F(n.disabled),"data-highlighted":F(n.highlighted),"data-state":kn(e,`checked`)?r:void 0,hidden:kn(e,`checked`)?!n.checked:void 0})},getItemTextProps(e){let n=b(Rn(e)),r=n.checked?`checked`:`unchecked`;return t.element({...pl.itemText.attrs,dir:o(`dir`),"data-disabled":F(n.disabled),"data-highlighted":F(n.highlighted),"data-state":kn(e,`checked`)?r:void 0})},getItemGroupLabelProps(e){return t.element({...pl.itemGroupLabel.attrs,id:bl(s,e.htmlFor),dir:o(`dir`)})},getItemGroupProps(e){return t.element({id:Gse(s,e.id),...pl.itemGroup.attrs,dir:o(`dir`),"aria-labelledby":bl(s,e.id),role:`group`})}}}var{not:Rl,and:zl,or:lce}=Mr(),uce=Nr({props({props:e}){return{closeOnSelect:!0,typeahead:!0,composite:!0,loopFocus:!1,navigate(e){zi(e.node)},...e,positioning:{placement:`bottom-start`,gutter:8,...e.positioning}}},initialState({prop:e}){return e(`open`)||e(`defaultOpen`)?`open`:`idle`},context({bindable:e,prop:t,scope:n}){return{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){return`x: ${e?.x}, y: ${e?.y}`}})),isSubmenu:e(()=>({defaultValue:!1})),triggerValue:e(()=>({defaultValue:t(`defaultTriggerValue`)??null,value:t(`triggerValue`),onChange(e){let r=t(`onTriggerValueChange`);r&&r({value:e,triggerElement:El(n,e)})}})),pointerRoutingMode:e(()=>({defaultValue:`interactive`}))}},refs(){return{parent:null,children:{},pointerRoutingLocked:!1,typeaheadState:{...$i.defaultOptions},positioningOverride:{}}},computed:{isRtl:({prop:e})=>e(`dir`)===`rtl`,isTypingAhead:({refs:e})=>e.get(`typeaheadState`).keysSoFar!==``,highlightedId:({context:e,scope:t,refs:n})=>ace(n.get(`children`),e.get(`highlightedValue`),t)},watch({track:e,action:t,context:n,prop:r}){e([()=>n.get(`isSubmenu`)],()=>{t([`setSubmenuPlacement`])}),e([()=>n.hash(`anchorPoint`)],()=>{n.get(`anchorPoint`)&&t([`reposition`])}),e([()=>r(`open`)],()=>{t([`toggleVisibility`])})},on:{"TRIGGER_VALUE.SET":{actions:[`setTriggerValue`,`setAnchorPoint`,`reposition`,`focusMenu`]},"PARENT.SET":{actions:[`setParentMenu`]},"CHILD.SET":{actions:[`setChildMenu`]},OPEN:[{guard:`isOpenControlled`,actions:[`setTriggerValue`,`invokeOnOpen`]},{target:`open`,actions:[`setTriggerValue`,`invokeOnOpen`]}],OPEN_AUTOFOCUS:[{guard:`isOpenControlled`,actions:[`setTriggerValue`,`invokeOnOpen`]},{target:`open`,actions:[`setTriggerValue`,`highlightFirstItem`,`invokeOnOpen`]}],CLOSE:[{guard:`isOpenControlled`,actions:[`invokeOnClose`,`releaseParentRoutingLock`]},{target:`closed`,actions:[`invokeOnClose`,`releaseParentRoutingLock`,`focusTrigger`]}],"HIGHLIGHTED.RESTORE":{actions:[`restoreHighlightedItem`]},"HIGHLIGHTED.SET":{actions:[`setHighlightedItem`]},"HIGHLIGHTED.SUGGEST":{actions:[`suggestHighlightedItem`]}},states:{idle:{tags:[`closed`],on:{"CONTROLLED.OPEN":{target:`open`},"CONTROLLED.CLOSE":{target:`closed`},CONTEXT_MENU_START:{target:`opening:contextmenu`,actions:[`setAnchorPoint`,`setTriggerValue`]},CONTEXT_MENU:[{guard:`isOpenControlled`,actions:[`setAnchorPoint`,`setTriggerValue`,`invokeOnOpen`]},{target:`open`,actions:[`setAnchorPoint`,`setTriggerValue`,`invokeOnOpen`]}],TRIGGER_CLICK:[{guard:`isOpenControlled`,actions:[`invokeOnOpen`,`setTriggerValue`]},{target:`open`,actions:[`invokeOnOpen`,`setTriggerValue`]}],TRIGGER_FOCUS:{guard:Rl(`isSubmenu`),target:`closed`},TRIGGER_POINTERMOVE:{guard:`isSubmenu`,target:`opening`}}},"opening:contextmenu":{tags:[`closed`],effects:[`waitForLongPress`],on:{"CONTROLLED.OPEN":{target:`open`},"CONTROLLED.CLOSE":{target:`closed`,actions:[`focusTrigger`]},CONTEXT_MENU_CANCEL:[{guard:`isOpenControlled`,actions:[`invokeOnClose`,`releaseParentRoutingLock`]},{target:`closed`,actions:[`invokeOnClose`,`releaseParentRoutingLock`,`focusTrigger`]}],"LONG_PRESS.OPEN":[{guard:`isOpenControlled`,actions:[`setTriggerValue`,`invokeOnOpen`]},{target:`open`,actions:[`setTriggerValue`,`invokeOnOpen`]}]}},opening:{tags:[`closed`],effects:[`waitForOpenDelay`],on:{"CONTROLLED.OPEN":{target:`open`},"CONTROLLED.CLOSE":{target:`closed`,actions:[`focusTrigger`]},BLUR:[{guard:`isOpenControlled`,actions:[`invokeOnClose`,`releaseParentRoutingLock`]},{target:`closed`,actions:[`invokeOnClose`,`releaseParentRoutingLock`,`focusTrigger`]}],TRIGGER_POINTERLEAVE:[{guard:`isOpenControlled`,actions:[`invokeOnClose`,`releaseParentRoutingLock`]},{target:`closed`,actions:[`invokeOnClose`,`releaseParentRoutingLock`,`focusTrigger`]}],"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`,`releaseParentRoutingLock`]},{target:`closed`,actions:[`focusParentMenu`,`restoreParentHighlightedItem`]}],"DELAY.CLOSE":[{guard:`isOpenControlled`,actions:[`invokeOnClose`,`releaseParentRoutingLock`]},{target:`closed`,actions:[`focusParentMenu`,`restoreParentHighlightedItem`,`invokeOnClose`,`releaseParentRoutingLock`]}]}},closed:{tags:[`closed`],entry:[`clearHighlightedItem`,`unlockParentOnClose`,`clearAnchorPoint`],on:{"CONTROLLED.OPEN":[{guard:lce(`isOpenAutoFocusEvent`,`isArrowDownEvent`),target:`open`,actions:[`highlightFirstItem`]},{guard:`isArrowUpEvent`,target:`open`,actions:[`highlightLastItem`]},{target:`open`}],CONTEXT_MENU_START:{target:`opening:contextmenu`,actions:[`setAnchorPoint`,`setTriggerValue`]},CONTEXT_MENU:[{guard:`isOpenControlled`,actions:[`setAnchorPoint`,`setTriggerValue`,`invokeOnOpen`]},{target:`open`,actions:[`setAnchorPoint`,`setTriggerValue`,`invokeOnOpen`]}],TRIGGER_CLICK:[{guard:`isOpenControlled`,actions:[`invokeOnOpen`,`setTriggerValue`]},{target:`open`,actions:[`invokeOnOpen`,`setTriggerValue`]}],TRIGGER_POINTERMOVE:{guard:`isTriggerItem`,target:`opening`},TRIGGER_BLUR:{target:`idle`},ARROW_DOWN:[{guard:`isOpenControlled`,actions:[`setTriggerValue`,`invokeOnOpen`]},{target:`open`,actions:[`setTriggerValue`,`highlightFirstItem`,`invokeOnOpen`]}],ARROW_UP:[{guard:`isOpenControlled`,actions:[`setTriggerValue`,`invokeOnOpen`]},{target:`open`,actions:[`setTriggerValue`,`highlightLastItem`,`invokeOnOpen`]}]}},open:{tags:[`open`],effects:[`trackInteractOutside`,`trackFocusVisible`,`trackPositioning`,`scrollToHighlightedItem`],entry:[`focusMenu`,`unlockParentOnOpen`],on:{"CONTROLLED.CLOSE":[{target:`closed`,guard:`isArrowLeftEvent`,actions:[`focusParentMenu`]},{target:`closed`,actions:[`focusTrigger`]}],TRIGGER_CLICK:[{guard:zl(Rl(`isTriggerItem`),`isOpenControlled`),actions:[`invokeOnClose`,`releaseParentRoutingLock`]},{guard:Rl(`isTriggerItem`),target:`closed`,actions:[`invokeOnClose`,`releaseParentRoutingLock`,`focusTrigger`]}],CONTEXT_MENU:{actions:[`setAnchorPoint`,`setTriggerValue`,`focusMenu`]},ARROW_UP:{actions:[`highlightPrevItem`,`focusMenu`]},ARROW_DOWN:{actions:[`highlightNextItem`,`focusMenu`]},ARROW_LEFT:[{guard:zl(`isSubmenu`,`isOpenControlled`),actions:[`invokeOnClose`,`releaseParentRoutingLock`]},{guard:`isSubmenu`,target:`closed`,actions:[`focusParentMenu`,`invokeOnClose`,`releaseParentRoutingLock`]}],HOME:{actions:[`highlightFirstItem`,`focusMenu`]},END:{actions:[`highlightLastItem`,`focusMenu`]},ARROW_RIGHT:{guard:`isTriggerItemHighlighted`,actions:[`openSubmenu`]},ENTER:[{guard:`isTriggerItemHighlighted`,actions:[`openSubmenu`]},{actions:[`clickHighlightedItem`]}],ITEM_POINTERMOVE:[{guard:Rl(`isPointerRoutingLocked`),actions:[`setHighlightedItem`,`focusMenu`,`closeSiblingMenus`]},{actions:[`setLastHighlightedItem`,`closeSiblingMenus`]}],ITEM_POINTERLEAVE:{guard:zl(Rl(`isPointerRoutingLocked`),Rl(`isTriggerItem`)),actions:[`clearHighlightedItem`]},ITEM_CLICK:[{guard:zl(Rl(`isTriggerItemHighlighted`),Rl(`isHighlightedItemEditable`),`closeOnSelect`,`isOpenControlled`),actions:[`invokeOnSelect`,`setOptionState`,`closeRootMenu`,`invokeOnClose`,`releaseParentRoutingLock`]},{guard:zl(Rl(`isTriggerItemHighlighted`),Rl(`isHighlightedItemEditable`),`closeOnSelect`),target:`closed`,actions:[`invokeOnSelect`,`setOptionState`,`closeRootMenu`,`invokeOnClose`,`releaseParentRoutingLock`,`focusTrigger`]},{guard:zl(Rl(`isTriggerItemHighlighted`),Rl(`isHighlightedItemEditable`)),actions:[`invokeOnSelect`,`setOptionState`]},{actions:[`setHighlightedItem`]}],TRIGGER_POINTERMOVE:{guard:`isTriggerItem`,actions:[`setIntentPolygon`]},TRIGGER_POINTERLEAVE:{target:`closing`,actions:[`setIntentPolygon`]},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})=>Al(e.target),isTriggerItemHighlighted:({event:e,scope:t,computed:n})=>!!(e.target??t.getById(n(`highlightedId`)))?.hasAttribute(`data-controls`),isSubmenu:({context:e})=>e.get(`isSubmenu`),isPointerRoutingLocked:({refs:e})=>e.get(`pointerRoutingLocked`),isHighlightedItemEditable:({scope:e,computed:t})=>Zr(e.getById(t(`highlightedId`))),isOpenControlled:({prop:e})=>e(`open`)!==void 0,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`})},200);return()=>clearTimeout(t)},waitForCloseDelay({send:e}){let t=setTimeout(()=>{e({type:`DELAY.CLOSE`})},100);return()=>clearTimeout(t)},waitForLongPress({send:e}){let t=setTimeout(()=>{e({type:`LONG_PRESS.OPEN`})},700);return()=>clearTimeout(t)},trackFocusVisible({scope:e}){return Pa({root:e.getRootNode?.()})},trackPositioning({context:e,prop:t,scope:n,refs:r}){if(qse(n)||Tl(n).length>0)return;let i={...t(`positioning`),...r.get(`positioningOverride`)};return e.set(`currentPlacement`,i.placement),ns(()=>El(n,e.get(`triggerValue`)),()=>Sl(n),{...i,defer:!0,onComplete(t){e.set(`currentPlacement`,t.placement)}})},trackInteractOutside({refs:e,scope:t,prop:n,context:r,send:i}){let a=()=>xl(t),o=!0,s=e=>Tl(t).some(t=>Qr(t,e));return Cs(a,{type:`menu`,defer:!0,exclude:[Cl(t),...wl(t)].filter(Boolean),onInteractOutside:n(`onInteractOutside`),onRequestDismiss:n(`onRequestDismiss`),onFocusOutside(t){n(`onFocusOutside`)?.(t);let r=fi(t.detail.originalEvent);if(s(r)){t.preventDefault();return}if(Ml(r,e.get(`children`))){t.preventDefault();return}},onEscapeKeyDown(t){n(`onEscapeKeyDown`)?.(t),r.get(`isSubmenu`)&&t.preventDefault(),Fl({parent:e.get(`parent`)})},onPointerDownOutside(e){if(n(`onPointerDownOutside`)?.(e),s(fi(e.detail.originalEvent))&&e.detail.contextmenu){e.preventDefault();return}o=!e.detail.focusable},onDismiss(){i({type:`CLOSE`,src:`interact-outside`,restoreFocus:o})}})},trackPointerMove({context:e,scope:t,send:n,refs:r}){let i=r.get(`parent`);if(i)return Il(i,!0),xi(t.getDoc(),`pointermove`,t=>{ice(e.get(`intentPolygon`),{x:t.clientX,y:t.clientY})||(n({type:`POINTER_MOVED_AWAY_FROM_SUBMENU`}),Il(i,!1))})},scrollToHighlightedItem({scope:e,computed:t}){let n=()=>{ja()!==`pointer`&&Xi(e.getById(t(`highlightedId`)),{rootEl:xl(e),block:`nearest`})};return Ii(()=>{Ma(`virtual`),n()}),Ri(()=>xl(e),{defer:!0,attributes:[`aria-activedescendant`],callback:n})}},actions:{setAnchorPoint({context:e,event:t}){e.set(`anchorPoint`,e=>bn(e,t.point)?e:t.point)},setSubmenuPlacement({context:e,computed:t,refs:n}){if(!e.get(`isSubmenu`))return;let r=t(`isRtl`)?`left-start`:`right-start`;n.set(`positioningOverride`,{placement:r,gutter:0})},reposition({context:e,scope:t,prop:n,event:r,refs:i}){let a=()=>Sl(t),o=r.point??e.get(`anchorPoint`),s=o?()=>({width:0,height:0,...o}):void 0,c={...n(`positioning`),...i.get(`positioningOverride`)},l=r.value??e.get(`triggerValue`);ns(()=>El(t,l),a,{...c,defer:!0,getAnchorRect:s,...r.options??{},listeners:!1,onComplete(t){e.set(`currentPlacement`,t.placement)}})},setOptionState({event:e}){if(!e.option)return;let{checked:t,onCheckedChange:n,type:r}=e.option;r===`radio`?n?.(!0):r===`checkbox`&&n?.(!t)},clickHighlightedItem({scope:e,computed:t,prop:n,context:r}){let i=e.getById(t(`highlightedId`));if(!i||i.dataset.disabled)return;let a=r.get(`highlightedValue`);Yr(i)?n(`navigate`)?.({value:a,node:i,href:i.href}):queueMicrotask(()=>i.click())},setIntentPolygon({context:e,scope:t,event:n}){let r=xl(t),i=e.get(`currentPlacement`);if(!r||!i)return;let a=rce(r.getBoundingClientRect(),i);if(!a)return;let o=Xo(i)===`right`?-5:5;e.set(`intentPolygon`,[{...n.point,x:n.point.x+o},...a])},clearIntentPolygon({context:e}){e.set(`intentPolygon`,null)},clearAnchorPoint({context:e}){e.set(`anchorPoint`,null)},unlockParentOnOpen({refs:e,context:t,scope:n}){let r=e.get(`parent`);if(t.get(`isSubmenu`)){let e=ml(n);r?.send({type:`HIGHLIGHTED.SUGGEST`,value:e})}Il(r,!1)},unlockParentOnClose({refs:e,context:t}){oce(e.get(`parent`),t.get(`isSubmenu`))},setHighlightedItem({context:e,event:t}){let n=t.value||yl(t.target);e.set(`highlightedValue`,n)},clearHighlightedItem({context:e}){e.set(`highlightedValue`,null)},focusMenu({scope:e}){Ii(()=>{let t=xl(e);Pi({root:t,enabled:!Qr(t,e.getActiveElement()),filter(e){return!e.role?.startsWith(`menuitem`)}})?.focus({preventScroll:!0})})},highlightFirstItem({context:e,scope:t}){(xl(t)?queueMicrotask:Ii)(()=>{let n=Jse(t);n&&e.set(`highlightedValue`,yl(n))})},highlightLastItem({context:e,scope:t}){(xl(t)?queueMicrotask:Ii)(()=>{let n=Yse(t);n&&e.set(`highlightedValue`,yl(n))})},highlightNextItem({context:e,scope:t,event:n,prop:r}){let i=Xse(t,{loop:n.loop,value:e.get(`highlightedValue`),loopFocus:r(`loopFocus`)});e.set(`highlightedValue`,yl(i))},highlightPrevItem({context:e,scope:t,event:n,prop:r}){let i=Zse(t,{loop:n.loop,value:e.get(`highlightedValue`),loopFocus:r(`loopFocus`)});e.set(`highlightedValue`,yl(i))},invokeOnSelect({context:e,prop:t,scope:n}){let r=e.get(`highlightedValue`);r!=null&&($se(Kse(n,r),r),t(`onSelect`)?.({value:r}))},focusTrigger({scope:e,context:t,event:n}){t.get(`isSubmenu`)||t.get(`anchorPoint`)||n.restoreFocus===!1||queueMicrotask(()=>{El(e,t.get(`triggerValue`))?.focus({preventScroll:!0})})},highlightMatchedItem({scope:e,context:t,event:n,refs:r}){let i=Qse(e,{key:n.key,value:t.get(`highlightedValue`),typeaheadState:r.get(`typeaheadState`)});i&&t.set(`highlightedValue`,yl(i))},setParentMenu({refs:e,event:t,context:n}){e.set(`parent`,t.value),n.set(`isSubmenu`,!0)},setChildMenu({refs:e,event:t}){let n=e.get(`children`);n[t.id]=t.value,e.set(`children`,n)},closeSiblingMenus({refs:e,event:t,scope:n}){let r=t.target;if(!Al(r))return;let i=r?.getAttribute(`data-uid`),a=e.get(`children`);for(let e in a){if(e===i)continue;let r=a[e],o=r.context.get(`intentPolygon`);o&&t.point&&Pl(o,t.point)||(xl(n)?.focus({preventScroll:!0}),r.send({type:`CLOSE`}))}},closeRootMenu({refs:e}){Fl({parent:e.get(`parent`)})},openSubmenu({refs:e,scope:t,computed:n}){let r=t.getById(n(`highlightedId`))?.getAttribute(`data-uid`),i=e.get(`children`);(r?i[r]:null)?.send({type:`OPEN_AUTOFOCUS`})},focusParentMenu({refs:e}){e.get(`parent`)?.send({type:`FOCUS_MENU`})},setLastHighlightedItem({context:e,event:t}){e.set(`lastHighlightedValue`,yl(t.target))},suggestHighlightedItem({context:e,event:t}){let n=t.value;if(n){if(e.get(`highlightedValue`)!=null){e.set(`lastHighlightedValue`,n);return}e.set(`highlightedValue`,n)}},restoreHighlightedItem({context:e}){let t=e.get(`lastHighlightedValue`);e.set(`lastHighlightedValue`,null),t&&e.set(`highlightedValue`,t)},restoreParentHighlightedItem({refs:e}){e.get(`parent`)?.send({type:`HIGHLIGHTED.RESTORE`})},invokeOnOpen({prop:e}){e(`onOpenChange`)?.({open:!0})},invokeOnClose({prop:e}){e(`onOpenChange`)?.({open:!1})},releaseParentRoutingLock({refs:e,context:t}){t.get(`isSubmenu`)&&sce(e.get(`parent`))},toggleVisibility({prop:e,event:t,send:n}){n({type:e(`open`)?`CONTROLLED.OPEN`:`CONTROLLED.CLOSE`,previousEvent:t})},setTriggerValue({context:e,event:t}){t.value!==void 0&&e.set(`triggerValue`,t.value)}}}}),[Bl,Vl]=cr({hookName:`useMenuContext`,providerName:`<MenuProvider />`,strict:!1}),dce=e=>{let t=Vl(),n=I(()=>t().getArrowProps(),e);return A(L.div,n)},fce=e=>{let t=Vl(),n=I(()=>t().getArrowTipProps(),e);return A(L.div,n)},[Hl,pce]=cr({hookName:`useMenuItemContext`,providerName:`<MenuItemProvider />`}),[Ul,Wl]=cr({hookName:`useMenuItemPropsContext`,providerName:`<MenuItemPropsProvider />`}),mce=e=>{let[t,n]=$t()(e,[`checked`,`closeOnSelect`,`disabled`,`onCheckedChange`,`value`,`valueText`]),r=I(t,{type:`checkbox`}),i=Vl(),a=I(()=>i().getOptionItemProps(r),n),o=k(()=>i().getOptionItemState(r));return A(Ul,{value:r,get children(){return A(Hl,{value:o,get children(){return A(L.div,a)}})}})},hce=e=>{let t=Vl(),n=Ba(),r=I(()=>t().getContentProps(),()=>n().presenceProps,e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,j(r,{ref(t){var r=La(n().ref,e.ref);typeof r==`function`&&r(t)}}))}})},gce=e=>e.children(Vl()),_ce=e=>{let t=Vl(),n=I(()=>t().getContextTriggerProps(),e);return A(L.button,n)},vce=e=>{let t=Vl(),n=I(()=>t().getIndicatorProps(),e);return A(L.div,n)},yce=e=>{let[t,n]=$t()(e,[`closeOnSelect`,`disabled`,`value`,`valueText`,`onSelect`]),r=Vl(),i=I(()=>r().getItemProps(t),n),a=k(()=>r().getItemState(t));return pe(()=>{let e=r().addItemListener({id:a().id,onSelect:t.onSelect});ye(()=>e?.())}),A(Ul,{value:t,get children(){return A(Hl,{value:a,get children(){return A(L.div,i)}})}})},bce=e=>e.children(pce()),[Gl,Kl]=cr({hookName:`useMenuItemGroupContext`,providerName:`<MenuItemGroupProvider />`}),xce=e=>{let[t,n]=$t()(e,[`id`]),r=I({id:ct()},t),i=Vl(),a=I(()=>i().getItemGroupProps(r),n);return A(Gl,{value:r,get children(){return A(L.div,a)}})},Sce=e=>{let t=Vl(),n=Kl(),r=I(t().getItemGroupLabelProps({htmlFor:n.id}),e);return A(L.div,r)},Cce=e=>{let t=Vl(),n=Wl(),r=I(()=>t().getItemIndicatorProps(n),e);return A(L.div,r)},wce=e=>{let t=Vl(),n=Wl(),r=I(()=>t().getItemTextProps(n),e);return A(L.div,r)},Tce=e=>{let t=Vl(),n=Ba(),r=I(()=>t().getPositionerProps(),e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,r)}})},Ece=e=>{let[t,n]=$t()(e,[`closeOnSelect`,`disabled`,`value`,`valueText`]),r=Vl(),i=Kl(),a=I(t,()=>({type:`radio`,checked:i.value===t.value,onCheckedChange:()=>i.onValueChange?.({value:t.value})})),o=I(()=>r().getOptionItemProps(a),n),s=k(()=>r().getOptionItemState(a));return A(Ul,{value:a,get children(){return A(Hl,{value:s,get children(){return A(L.div,o)}})}})},Dce=e=>{let[t,n]=$t()(e,[`id`,`onValueChange`,`value`]),r=Vl(),i=I({id:ct()},t),a=I(()=>r().getItemGroupProps(i),n);return A(Gl,{value:i,get children(){return A(L.div,a)}})},Oce=e=>{let t=ct(),n=ua(),r=la(),i=na(uce,k(()=>({id:t,dir:n().dir,getRootNode:r().getRootNode,...pr(e)})));return{api:k(()=>cce(i,oa)),service:i}},[ql,Jl]=cr({hookName:`useMenuMachineContext`,providerName:`<MenuMachineProvider />`,strict:!1}),[Yl,kce]=cr({hookName:`useMenuMachineContext`,providerName:`<MenuMachineProvider />`,strict:!1}),Ace=e=>{let[t,n]=Ra(e),[r,i]=$t()(n,[`anchorPoint`,`aria-label`,`closeOnSelect`,`composite`,`defaultHighlightedValue`,`defaultOpen`,`highlightedValue`,`id`,`ids`,`loopFocus`,`navigate`,`onEscapeKeyDown`,`onFocusOutside`,`onHighlightChange`,`onInteractOutside`,`onOpenChange`,`onPointerDownOutside`,`onRequestDismiss`,`onSelect`,`open`,`positioning`,`typeahead`,`triggerValue`,`defaultTriggerValue`,`onTriggerValueChange`]),a=Vl(),o=Jl(),s=Oce(r),c=Ia(I(t,()=>({present:s.api().open})));return ve(()=>{o&&(a?.().setChild(s.service),s.api().setParent(o))}),A(Yl,{value:()=>a?.().getTriggerItemProps(s.api()),get children(){return A(ql,{get value(){return s.service},get children(){return A(Bl,{get value(){return s.api},get children(){return A(za,{value:c,get children(){return i.children}})}})}})}})},jce=e=>{let t=Vl(),n=Jl(),[r,i]=Ra(e),a=Ia(I(r,()=>({present:i.value.api().open})));return pe(()=>{n&&(t?.().setChild(i.value.service),i.value.api().setParent(n))}),A(Yl,{value:()=>t?.().getTriggerItemProps(i.value.api()),get children(){return A(ql,{get value(){return i.value.service},get children(){return A(Bl,{get value(){return i.value.api},get children(){return A(za,{value:a,get children(){return i.children}})}})}})}})},Mce=e=>{let t=Vl(),n=I(()=>t().getSeparatorProps(),e);return A(L.hr,n)},Nce=e=>{let[t,n]=$t()(e,[`value`]),r=Vl(),i=Ba(),a=I(()=>r().getTriggerProps(t),()=>({"aria-controls":i().unmounted&&null}),n);return A(L.button,a)},Pce=e=>{let t=kce(),n=I(()=>t?.(),e);return A(Ul,{get value(){return{value:n[`data-value`]}},get children(){return A(L.div,n)}})},Xl={};da(Xl,{Arrow:()=>dce,ArrowTip:()=>fce,CheckboxItem:()=>mce,Content:()=>hce,Context:()=>gce,ContextTrigger:()=>_ce,Indicator:()=>vce,Item:()=>yce,ItemContext:()=>bce,ItemGroup:()=>xce,ItemGroupLabel:()=>Sce,ItemIndicator:()=>Cce,ItemText:()=>wce,Positioner:()=>Tce,RadioItem:()=>Ece,RadioItemGroup:()=>Dce,Root:()=>Ace,RootProvider:()=>jce,Separator:()=>Mce,Trigger:()=>Nce,TriggerItem:()=>Pce});var Zl=fa(`popover`).parts(`arrow`,`arrowTip`,`anchor`,`trigger`,`indicator`,`positioner`,`content`,`title`,`description`,`closeTrigger`).build(),Ql=e=>e.ids?.anchor??`popover:${e.id}:anchor`,$l=(e,t)=>{let n=e.ids?.trigger;return n==null?t?`popover:${e.id}:trigger:${t}`:`popover:${e.id}:trigger`:Dn(n)?n(t):n},eu=e=>e.ids?.content??`popover:${e.id}:content`,tu=e=>e.ids?.positioner??`popover:${e.id}:popper`,Fce=e=>e.ids?.arrow??`popover:${e.id}:arrow`,nu=e=>e.ids?.title??`popover:${e.id}:title`,ru=e=>e.ids?.description??`popover:${e.id}:desc`,Ice=e=>e.ids?.closeTrigger??`popover:${e.id}:close`,iu=e=>e.getById(Ql(e)),au=e=>e.getById($l(e)),ou=e=>Gi(e.getRootNode(),`[data-scope="popover"][data-part="trigger"][data-ownedby="${e.id}"]`),su=(e,t)=>t==null?au(e)??ou(e)[0]:e.getById($l(e,t)),cu=e=>e.getById(eu(e)),lu=e=>e.getById(tu(e)),Lce=e=>e.getById(nu(e)),Rce=e=>e.getById(ru(e));function zce(e,t){let{state:n,context:r,send:i,computed:a,prop:o,scope:s}=e,c=o(`translations`),l=n.matches(`open`),u=r.get(`currentPlacement`),d=u?Xo(u):void 0,f=a(`currentPortalled`),p=r.get(`renderedElements`),m=r.get(`triggerValue`),h=rs({...o(`positioning`),placement:u});return{portalled:f,open:l,setOpen(e){n.matches(`open`)!==e&&i({type:e?`OPEN`:`CLOSE`})},triggerValue:m,setTriggerValue(e){i({type:`TRIGGER_VALUE.SET`,value:e})},reposition(e={}){i({type:`POSITIONING.SET`,options:e})},getArrowProps(){return t.element({id:Fce(s),...Zl.arrow.attrs,dir:o(`dir`),style:h.arrow})},getArrowTipProps(){return t.element({...Zl.arrowTip.attrs,dir:o(`dir`),style:h.arrowTip})},getAnchorProps(){return t.element({...Zl.anchor.attrs,dir:o(`dir`),id:Ql(s)})},getTriggerProps(e={}){let{value:n}=e,r=n==null?!1:m===n;return t.button({...Zl.trigger.attrs,dir:o(`dir`),type:`button`,"data-placement":u,"data-side":d,id:$l(s,n),"data-ownedby":s.id,"data-value":n,"data-current":F(r),"aria-haspopup":`dialog`,"aria-expanded":n==null?l:l&&r,"data-state":l?`open`:`closed`,"aria-controls":eu(s),onPointerDown(e){gi(e)&&di()&&e.currentTarget.focus()},onClick(e){e.defaultPrevented||i({type:l&&n!=null&&!r?`TRIGGER_VALUE.SET`:`TOGGLE`,value:n})},onBlur(e){i({type:`TRIGGER_BLUR`,target:e.relatedTarget})}})},getIndicatorProps(){return t.element({...Zl.indicator.attrs,dir:o(`dir`),"data-state":l?`open`:`closed`})},getPositionerProps(){return t.element({id:tu(s),...Zl.positioner.attrs,dir:o(`dir`),style:h.floating})},getContentProps(){return t.element({...Zl.content.attrs,dir:o(`dir`),id:eu(s),tabIndex:-1,role:`dialog`,"aria-modal":Hr(o(`modal`)),hidden:!l,"data-state":l?`open`:`closed`,"data-expanded":F(l),"aria-labelledby":p.title?nu(s):void 0,"aria-describedby":p.description?ru(s):void 0,"data-placement":u,"data-side":d})},getTitleProps(){return t.element({...Zl.title.attrs,id:nu(s),dir:o(`dir`)})},getDescriptionProps(){return t.element({...Zl.description.attrs,id:ru(s),dir:o(`dir`)})},getCloseTriggerProps(){return t.button({...Zl.closeTrigger.attrs,dir:o(`dir`),id:Ice(s),type:`button`,"aria-label":c.closeTriggerLabel,onClick(e){e.defaultPrevented||(e.stopPropagation(),i({type:`CLOSE`}))}})}}}var Bce=Nr({props({props:e}){return{closeOnInteractOutside:!0,closeOnEscape:!0,autoFocus:!0,modal:!1,portalled:!0,restoreFocus:!0,...e,translations:{closeTriggerLabel:`close`,...e.translations},positioning:{placement:`bottom`,...e.positioning}}},initialState({prop:e}){return e(`open`)||e(`defaultOpen`)?`open`:`closed`},context({bindable:e,prop:t,scope:n}){return{currentPlacement:e(()=>({defaultValue:void 0})),renderedElements:e(()=>({defaultValue:{title:!0,description:!0}})),triggerValue:e(()=>({defaultValue:t(`defaultTriggerValue`)??null,value:t(`triggerValue`),onChange(e){let r=t(`onTriggerValueChange`);r&&r({value:e,triggerElement:su(n,e)})}}))}},computed:{currentPortalled:({prop:e})=>!!e(`modal`)||!!e(`portalled`)},watch({track:e,prop:t,action:n}){e([()=>t(`open`)],()=>{n([`toggleVisibility`])})},entry:[`checkRenderedElements`],on:{"TRIGGER_VALUE.SET":{actions:[`setTriggerValue`,`reposition`]}},states:{closed:{on:{"CONTROLLED.OPEN":{target:`open`,actions:[`setInitialFocus`]},TOGGLE:[{guard:`isOpenControlled`,actions:[`invokeOnOpen`,`setTriggerValue`]},{target:`open`,actions:[`invokeOnOpen`,`setTriggerValue`,`setInitialFocus`]}],OPEN:[{guard:`isOpenControlled`,actions:[`invokeOnOpen`,`setTriggerValue`]},{target:`open`,actions:[`invokeOnOpen`,`setTriggerValue`,`setInitialFocus`]}]}},open:{effects:[`trapFocus`,`preventScroll`,`hideContentBelow`,`trackDismissableElement`,`trackPositioning`,`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})=>e(`open`)!=null},effects:{trackPositioning({context:e,prop:t,scope:n}){e.set(`currentPlacement`,t(`positioning`).placement);let r=iu(n);return ns(()=>r??su(n,e.get(`triggerValue`)),()=>lu(n),{...t(`positioning`),defer:!0,onComplete(t){e.set(`currentPlacement`,t.placement)}})},trackDismissableElement({send:e,prop:t,scope:n}){let r=()=>cu(n),i=!0;return Cs(r,{type:`popover`,pointerBlocking:t(`modal`),exclude:[au(n),...ou(n)].filter(Boolean),defer:!0,onEscapeKeyDown(e){t(`onEscapeKeyDown`)?.(e),!t(`closeOnEscape`)&&e.preventDefault()},onInteractOutside(e){t(`onInteractOutside`)?.(e),!e.defaultPrevented&&(i=!(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:i})}})},proxyTabFocus({prop:e,scope:t,context:n}){return e(`modal`)||!e(`portalled`)?void 0:Fte(()=>cu(t),{triggerElement:su(t,n.get(`triggerValue`)),defer:!0,getShadowRoot:!0,onFocus(e){e.focus({preventScroll:!0})}})},hideContentBelow({prop:e,scope:t,context:n}){return e(`modal`)?Ic(()=>[cu(t),su(t,n.get(`triggerValue`))],{defer:!0}):void 0},preventScroll({prop:e,scope:t}){if(e(`modal`))return qc(t.getDoc())},trapFocus({prop:e,scope:t,context:n}){return e(`modal`)?Uc(()=>cu(t),{preventScroll:!0,returnFocusOnDeactivate:!!e(`restoreFocus`),initialFocus:()=>Pi({root:cu(t),getInitialEl:e(`initialFocusEl`),enabled:e(`autoFocus`)}),setReturnFocus:r=>{let i=e(`finalFocusEl`)?.();if(i)return i;let a=n.get(`triggerValue`);if(a){let e=su(t,a);if(e)return e}return ou(t)[0]||r},getShadowRoot:!0}):void 0}},actions:{reposition({event:e,prop:t,scope:n,context:r}){let i=iu(n);ns(()=>i??su(n,r.get(`triggerValue`)),()=>lu(n),{...t(`positioning`),...e.options,defer:!0,listeners:!1,onComplete(e){r.set(`currentPlacement`,e.placement)}})},setTriggerValue({context:e,event:t}){t.value!==void 0&&e.set(`triggerValue`,t.value)},checkRenderedElements({context:e,scope:t}){Ii(()=>{Object.assign(e.get(`renderedElements`),{title:!!Lce(t),description:!!Rce(t)})})},setInitialFocus({prop:e,scope:t}){e(`modal`)||Ii(()=>{Pi({root:cu(t),getInitialEl:e(`initialFocusEl`),enabled:e(`autoFocus`)})?.focus({preventScroll:!0})})},setFinalFocus({event:e,prop:t,scope:n,context:r}){let i=e.restoreFocus??e.previousEvent?.restoreFocus;i!=null&&!i||t(`restoreFocus`)&&Ii(()=>{let e=t(`finalFocusEl`)?.();if(e){e.focus({preventScroll:!0});return}su(n,r.get(`triggerValue`))?.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:n}){t({type:n(`open`)?`CONTROLLED.OPEN`:`CONTROLLED.CLOSE`,previousEvent:e})}}}}),[uu,du]=cr({hookName:`usePopoverContext`,providerName:`<PopoverProvider />`}),Vce=e=>{let t=du(),n=I(()=>t().getAnchorProps(),e);return A(L.div,n)},Hce=e=>{let t=du(),n=I(()=>t().getArrowProps(),e);return A(L.div,n)},Uce=e=>{let t=du(),n=I(()=>t().getArrowTipProps(),e);return A(L.div,n)},Wce=e=>{let t=du(),n=I(()=>t().getCloseTriggerProps(),e);return A(L.button,n)},Gce=e=>{let t=du(),n=Ba(),r=I(()=>t().getContentProps(),()=>n().presenceProps,e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,j(r,{ref(t){var r=La(n().ref,e.ref);typeof r==`function`&&r(t)}}))}})},Kce=e=>e.children(du()),qce=e=>{let t=du(),n=I(()=>t().getDescriptionProps(),e);return A(L.div,n)},Jce=e=>{let t=du(),n=I(()=>t().getIndicatorProps(),e);return A(L.div,n)},Yce=e=>{let t=du(),n=Ba(),r=I(()=>t().getPositionerProps(),e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,r)}})},Xce=e=>{let t=ct(),n=ua(),r=la(),i=na(Bce,k(()=>({id:t,dir:n().dir,getRootNode:r().getRootNode,...pr(e)})));return k(()=>zce(i,oa))},Zce=e=>{let[t,n]=Ra(e),[r,i]=$t()(n,[`autoFocus`,`closeOnEscape`,`closeOnInteractOutside`,`defaultOpen`,`finalFocusEl`,`id`,`ids`,`initialFocusEl`,`modal`,`onEscapeKeyDown`,`onFocusOutside`,`onInteractOutside`,`onOpenChange`,`onPointerDownOutside`,`onRequestDismiss`,`open`,`persistentElements`,`portalled`,`positioning`,`restoreFocus`,`translations`,`triggerValue`,`defaultTriggerValue`,`onTriggerValueChange`]),a=Xce(r),o=Ia(I(t,()=>({present:a().open})));return A(uu,{value:a,get children(){return A(za,{value:o,get children(){return i.children}})}})},Qce=e=>{let[t,n]=Ra(e),r=Ia(I(t,()=>({present:n.value().open})));return A(uu,{get value(){return n.value},get children(){return A(za,{value:r,get children(){return n.children}})}})},$ce=e=>{let t=du(),n=I(()=>t().getTitleProps(),e);return A(L.div,n)},ele=e=>{let[t,n]=$t()(e,[`value`]),r=du(),i=Ba(),a=I(()=>r().getTriggerProps(t),()=>({"aria-controls":i().unmounted&&null}),n);return A(L.button,a)},fu={};da(fu,{Anchor:()=>Vce,Arrow:()=>Hce,ArrowTip:()=>Uce,CloseTrigger:()=>Wce,Content:()=>Gce,Context:()=>Kce,Description:()=>qce,Indicator:()=>Jce,Positioner:()=>Yce,Root:()=>Zce,RootProvider:()=>Qce,Title:()=>$ce,Trigger:()=>ele});var pu=fa(`toast`).parts(`group`,`root`,`title`,`description`,`actionTrigger`,`closeTrigger`).build(),tle=e=>`toast-group:${e}`,mu=(e,t)=>e.getById(`toast-group:${t}`),hu=e=>`toast:${e.id}`,gu=e=>e.getById(hu(e)),_u=e=>`toast:${e.id}:title`,vu=e=>`toast:${e.id}:description`,nle=e=>`toast${e.id}:close`,yu={info:5e3,error:5e3,success:2e3,loading:1/0,warning:5e3,DEFAULT:5e3};function bu(e,t){return e??yu[t]??yu.DEFAULT}var rle=e=>typeof e==`string`?{left:e,right:e,bottom:e,top:e}:e;function ile(e,t){let{prop:n,computed:r,context:i}=e,{offsets:a,gap:o}=n(`store`).attrs,s=i.get(`heights`),c=rle(a),l=n(`dir`)===`rtl`,u=t.replace(`-start`,l?`-right`:`-left`).replace(`-end`,l?`-left`:`-right`),d=u.includes(`right`),f=u.includes(`left`),p={position:`fixed`,pointerEvents:r(`count`)>0?void 0:`none`,display:`flex`,flexDirection:`column`,"--gap":`${o}px`,"--first-height":`${s[0]?.height||0}px`,"--viewport-offset-left":c.left,"--viewport-offset-right":c.right,"--viewport-offset-top":c.top,"--viewport-offset-bottom":c.bottom,zIndex:wee},m=`center`;return d&&(m=`flex-end`),f&&(m=`flex-start`),p.alignItems=m,u.includes(`top`)&&(p.top=`max(env(safe-area-inset-top, 0px), ${c.top})`),u.includes(`bottom`)&&(p.bottom=`max(env(safe-area-inset-bottom, 0px), ${c.bottom})`),u.includes(`left`)||(p.insetInlineEnd=`calc(env(safe-area-inset-right, 0px) + ${c.right})`),u.includes(`right`)||(p.insetInlineStart=`calc(env(safe-area-inset-left, 0px) + ${c.left})`),p}function ale(e,t){let{prop:n,context:r,computed:i}=e,a=n(`parent`),o=a.computed(`placement`),{gap:s}=a.prop(`store`).attrs,[c]=o.split(`-`),l=r.get(`mounted`),u=r.get(`remainingTime`),d=i(`height`),f=i(`frontmost`),p=!f,m=!n(`stacked`),h=n(`stacked`),g=n(`type`)===`loading`?2**53-1:u,_=i(`heightIndex`)*s+i(`heightBefore`),v={position:`absolute`,pointerEvents:`auto`,"--opacity":`0`,"--remove-delay":`${n(`removeDelay`)}ms`,"--duration":`${g}ms`,"--initial-height":`${d}px`,"--offset":`${_}px`,"--index":n(`index`),"--z-index":i(`zIndex`),"--lift-amount":`calc(var(--lift) * var(--gap))`,"--y":`100%`,"--x":`0`},y=e=>Object.assign(v,e);return c===`top`?y({top:`0`,"--sign":`-1`,"--y":`-100%`,"--lift":`1`}):c===`bottom`&&y({bottom:`0`,"--sign":`1`,"--y":`100%`,"--lift":`-1`}),l&&(y({"--y":`0`,"--opacity":`1`}),h&&y({"--y":`calc(var(--lift) * var(--offset))`,"--height":`var(--initial-height)`})),t||y({"--opacity":`0`,pointerEvents:`none`}),p&&m&&(y({"--base-scale":`var(--index) * 0.05 + 1`,"--y":`calc(var(--lift-amount) * var(--index))`,"--scale":`calc(-1 * var(--base-scale))`,"--height":`var(--first-height)`}),t||y({"--y":`calc(var(--sign) * 40%)`})),p&&h&&!t&&y({"--y":`calc(var(--lift) * var(--offset) + var(--lift) * -100%)`}),f&&!t&&y({"--y":`calc(var(--lift) * -100%)`}),v}function ole(e,t){let{computed:n}=e,r={position:`absolute`,inset:`0`,scale:`1 2`,pointerEvents:t?`none`:`auto`};return n(`frontmost`)&&!t&&(e=>Object.assign(r,e))({height:`calc(var(--initial-height) + 80%)`}),r}function sle(){return{position:`absolute`,left:`0`,height:`calc(var(--gap) + 2px)`,bottom:`100%`,width:`100%`}}function cle(e,t){let{context:n,prop:r,send:i,refs:a,computed:o}=e;return{getCount(){return n.get(`toasts`).length},getToasts(){return n.get(`toasts`)},getGroupProps(n={}){let{label:s=`Notifications`}=n,{hotkey:c}=r(`store`).attrs,l=c.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),u=o(`placement`),[d,f=`center`]=u.split(`-`);return t.element({...pu.group.attrs,dir:r(`dir`),tabIndex:-1,role:`region`,"aria-label":`${s}, ${u} (${l})`,id:tle(u),"data-placement":u,"data-side":d,"data-align":f,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,style:ile(e,u),onMouseEnter(){a.get(`ignoreMouseTimer`).isActive()||i({type:`REGION.POINTER_ENTER`,placement:u})},onMouseMove(){a.get(`ignoreMouseTimer`).isActive()||i({type:`REGION.POINTER_ENTER`,placement:u})},onMouseLeave(){a.get(`ignoreMouseTimer`).isActive()||i({type:`REGION.POINTER_LEAVE`,placement:u})},onFocus(e){i({type:`REGION.FOCUS`,target:e.relatedTarget})},onBlur(e){a.get(`isFocusWithin`)&&!Qr(e.currentTarget,e.relatedTarget)&&queueMicrotask(()=>i({type:`REGION.BLUR`}))}})},subscribe(e){return r(`store`).subscribe(()=>e(n.get(`toasts`)))}}}var{guards:lle,createMachine:ule}=Pr(),{and:dle}=lle,fle=ule({props({props:e}){return{dir:`ltr`,id:Vn(),...e,store:e.store}},initialState({prop:e}){return e(`store`).attrs.overlap?`overlap`:`stack`},refs(){return{lastFocusedEl:null,isFocusWithin:!1,isPointerWithin:!1,ignoreMouseTimer:Fi.create(),dismissableCleanup:void 0}},context({bindable:e}){return{toasts:e(()=>({defaultValue:[],sync:!0,hash:e=>e.map(e=>e.id).join(`,`)})),heights:e(()=>({defaultValue:[],sync:!0}))}},computed:{count:({context:e})=>e.get(`toasts`).length,overlap:({prop:e})=>e(`store`).attrs.overlap,placement:({prop:e})=>e(`store`).attrs.placement},effects:[`subscribeToStore`,`trackDocumentVisibility`,`trackHotKeyPress`],watch({track:e,context:t,action:n}){e([()=>t.hash(`toasts`)],()=>{queueMicrotask(()=>{n([`collapsedIfEmpty`,`setDismissableBranch`])})})},exit:[`clearDismissableBranch`,`clearLastFocusedEl`,`clearMouseEventTimer`],on:{"DOC.HOTKEY":{actions:[`focusRegionEl`]},"REGION.BLUR":[{guard:dle(`isOverlapping`,`isPointerOut`),target:`overlap`,actions:[`collapseToasts`,`resumeToasts`,`restoreFocusIfPointerOut`]},{guard:`isPointerOut`,target:`stack`,actions:[`resumeToasts`,`restoreFocusIfPointerOut`]},{actions:[`clearFocusWithin`]}],"TOAST.REMOVE":{actions:[`removeToast`,`removeHeight`,`ignoreMouseEventsTemporarily`]},"TOAST.PAUSE":{actions:[`pauseToasts`]}},states:{stack:{on:{"REGION.POINTER_LEAVE":[{guard:`isOverlapping`,target:`overlap`,actions:[`clearPointerWithin`,`resumeToasts`,`collapseToasts`]},{actions:[`clearPointerWithin`,`resumeToasts`]}],"REGION.OVERLAP":{target:`overlap`,actions:[`collapseToasts`]},"REGION.FOCUS":{actions:[`setLastFocusedEl`,`pauseToasts`]},"REGION.POINTER_ENTER":{actions:[`setPointerWithin`,`pauseToasts`]}}},overlap:{on:{"REGION.STACK":{target:`stack`,actions:[`expandToasts`]},"REGION.POINTER_ENTER":{target:`stack`,actions:[`setPointerWithin`,`pauseToasts`,`expandToasts`]},"REGION.FOCUS":{target:`stack`,actions:[`setLastFocusedEl`,`pauseToasts`,`expandToasts`]}}}},implementations:{guards:{isOverlapping:({computed:e})=>e(`overlap`),isPointerOut:({refs:e})=>!e.get(`isPointerWithin`)},effects:{subscribeToStore({context:e,prop:t}){let n=t(`store`);return e.set(`toasts`,n.getVisibleToasts()),n.subscribe(t=>{if(t.dismiss){e.set(`toasts`,e=>e.filter(e=>e.id!==t.id));return}e.set(`toasts`,e=>{let n=e.findIndex(e=>e.id===t.id);return n===-1?[t,...e]:[...e.slice(0,n),{...e[n],...t},...e.slice(n+1)]})})},trackHotKeyPress({prop:e,send:t}){return xi(document,`keydown`,n=>{let{hotkey:r}=e(`store`).attrs;r.every(e=>n[e]||n.code===e)&&t({type:`DOC.HOTKEY`})},{capture:!0})},trackDocumentVisibility({prop:e,send:t,scope:n}){let{pauseOnPageIdle:r}=e(`store`).attrs;if(!r)return;let i=n.getDoc();return xi(i,`visibilitychange`,()=>{t({type:i.visibilityState===`hidden`?`PAUSE_ALL`:`RESUME_ALL`})})}},actions:{setDismissableBranch({refs:e,context:t,computed:n,scope:r}){let i=t.get(`toasts`),a=n(`placement`),o=i.length>0;if(!o){e.get(`dismissableCleanup`)?.();return}if(o&&e.get(`dismissableCleanup`))return;let s=hie(()=>mu(r,a),{defer:!0});e.set(`dismissableCleanup`,s)},clearDismissableBranch({refs:e}){e.get(`dismissableCleanup`)?.()},focusRegionEl({scope:e,computed:t}){queueMicrotask(()=>{mu(e,t(`placement`))?.focus()})},pauseToasts({prop:e}){e(`store`).pause()},resumeToasts({prop:e}){e(`store`).resume()},expandToasts({prop:e}){e(`store`).expand()},collapseToasts({prop:e}){e(`store`).collapse()},removeToast({prop:e,event:t}){e(`store`).remove(t.id)},removeHeight({event:e,context:t}){e?.id!=null&&queueMicrotask(()=>{t.set(`heights`,t=>t.filter(t=>t.id!==e.id))})},collapsedIfEmpty({send:e,computed:t}){!t(`overlap`)||t(`count`)>1||e({type:`REGION.OVERLAP`})},setLastFocusedEl({refs:e,event:t}){e.get(`isFocusWithin`)||!t.target||(e.set(`isFocusWithin`,!0),e.set(`lastFocusedEl`,t.target))},restoreFocusIfPointerOut({refs:e}){!e.get(`lastFocusedEl`)||e.get(`isPointerWithin`)||(e.get(`lastFocusedEl`)?.focus({preventScroll:!0}),e.set(`lastFocusedEl`,null),e.set(`isFocusWithin`,!1))},setPointerWithin({refs:e}){e.set(`isPointerWithin`,!0)},clearPointerWithin({refs:e}){e.set(`isPointerWithin`,!1),e.get(`lastFocusedEl`)&&!e.get(`isFocusWithin`)&&(e.get(`lastFocusedEl`)?.focus({preventScroll:!0}),e.set(`lastFocusedEl`,null))},clearFocusWithin({refs:e}){e.set(`isFocusWithin`,!1)},clearLastFocusedEl({refs:e}){e.get(`lastFocusedEl`)&&(e.get(`lastFocusedEl`)?.focus({preventScroll:!0}),e.set(`lastFocusedEl`,null),e.set(`isFocusWithin`,!1))},ignoreMouseEventsTemporarily({refs:e}){e.get(`ignoreMouseTimer`).request()},clearMouseEventTimer({refs:e}){e.get(`ignoreMouseTimer`).cancel()}}}});function ple(e,t){let{state:n,send:r,prop:i,scope:a,context:o,computed:s}=e,c=i(`translations`),l=n.hasTag(`visible`),u=n.hasTag(`paused`),d=o.get(`mounted`),f=s(`frontmost`),p=i(`parent`).computed(`placement`),m=i(`type`),h=i(`stacked`),g=i(`title`),_=i(`description`),v=i(`action`),[y,b=`center`]=p.split(`-`);return{type:m,title:g,description:_,placement:p,visible:l,paused:u,closable:!!i(`closable`),pause(){r({type:`PAUSE`})},resume(){r({type:`RESUME`})},dismiss(){r({type:`DISMISS`,src:`programmatic`})},getRootProps(){return t.element({...pu.root.attrs,dir:i(`dir`),id:hu(a),"data-state":l?`open`:`closed`,"data-type":m,"data-placement":p,"data-align":b,"data-side":y,"data-mounted":F(d),"data-paused":F(u),"data-first":F(f),"data-sibling":F(!f),"data-stack":F(h),"data-overlap":F(!h),role:`status`,"aria-atomic":`true`,"aria-describedby":_?vu(a):void 0,"aria-labelledby":g?_u(a):void 0,tabIndex:0,style:ale(e,l),onKeyDown(e){e.defaultPrevented||e.key==`Escape`&&(r({type:`DISMISS`,src:`keyboard`}),e.preventDefault())}})},getGhostBeforeProps(){return t.element({"data-ghost":`before`,style:ole(e,l)})},getGhostAfterProps(){return t.element({"data-ghost":`after`,style:sle()})},getTitleProps(){return t.element({...pu.title.attrs,id:_u(a)})},getDescriptionProps(){return t.element({...pu.description.attrs,id:vu(a)})},getActionTriggerProps(){return t.button({...pu.actionTrigger.attrs,type:`button`,onClick(e){e.defaultPrevented||(v?.onClick?.(),r({type:`DISMISS`,src:`user`}))}})},getCloseTriggerProps(){return t.button({id:nle(a),...pu.closeTrigger.attrs,type:`button`,"aria-label":c?.closeTriggerLabel,onClick(e){e.defaultPrevented||r({type:`DISMISS`,src:`user`})}})}}}var{not:mle}=Mr(),hle=Nr({props({props:e}){return sr(e,[`id`,`type`,`parent`,`removeDelay`],`toast`),{closable:!0,...e,translations:{closeTriggerLabel:`Dismiss notification`,...e.translations},duration:bu(e.duration,e.type)}},initialState({prop:e}){return e(`type`)===`loading`||e(`duration`)===1/0?`visible:persist`:`visible`},context({prop:e,bindable:t}){return{remainingTime:t(()=>({defaultValue:bu(e(`duration`),e(`type`))})),createdAt:t(()=>({defaultValue:Date.now()})),mounted:t(()=>({defaultValue:!1})),initialHeight:t(()=>({defaultValue:0}))}},refs(){return{closeTimerStartTime:Date.now(),lastCloseStartTimerStartTime:0}},computed:{zIndex:({prop:e})=>{let t=e(`parent`).context.get(`toasts`),n=t.findIndex(t=>t.id===e(`id`));return t.length-n},height:({prop:e})=>e(`parent`).context.get(`heights`).find(t=>t.id===e(`id`))?.height??0,heightIndex:({prop:e})=>e(`parent`).context.get(`heights`).findIndex(t=>t.id===e(`id`)),frontmost:({prop:e})=>e(`index`)===0,heightBefore:({prop:e})=>{let t=e(`parent`).context.get(`heights`),n=t.findIndex(t=>t.id===e(`id`));return t.reduce((e,t,r)=>r>=n?e:e+t.height,0)},shouldPersist:({prop:e})=>e(`type`)===`loading`||e(`duration`)===1/0},watch({track:e,prop:t,send:n}){e([()=>t(`message`)],()=>{let e=t(`message`);e&&n({type:e,src:`programmatic`})}),e([()=>t(`type`),()=>t(`duration`)],()=>{n({type:`UPDATE`})})},on:{UPDATE:[{guard:`shouldPersist`,target:`visible:persist`,actions:[`resetCloseTimer`]},{target:`visible:updating`,actions:[`resetCloseTimer`]}],MEASURE:{actions:[`measureHeight`]}},entry:[`setMounted`,`measureHeight`,`invokeOnVisible`],effects:[`trackHeight`],states:{"visible:updating":{tags:[`visible`,`updating`],effects:[`waitForNextTick`],on:{SHOW:{target:`visible`}}},"visible:persist":{tags:[`visible`,`paused`],on:{RESUME:{guard:mle(`isLoadingType`),target:`visible`,actions:[`setCloseTimer`]},DISMISS:{target:`dismissing`}}},visible:{tags:[`visible`],effects:[`waitForDuration`],on:{DISMISS:{target:`dismissing`},PAUSE:{target:`visible:persist`,actions:[`syncRemainingTime`]}}},dismissing:{entry:[`invokeOnDismiss`],effects:[`waitForRemoveDelay`],on:{REMOVE:{target:`unmounted`,actions:[`notifyParentToRemove`]}}},unmounted:{entry:[`invokeOnUnmount`]}},implementations:{effects:{waitForRemoveDelay({prop:e,send:t}){return rr(()=>{t({type:`REMOVE`,src:`timer`})},e(`removeDelay`))},waitForDuration({send:e,context:t,computed:n}){if(!n(`shouldPersist`))return rr(()=>{e({type:`DISMISS`,src:`timer`})},t.get(`remainingTime`))},waitForNextTick({send:e}){return rr(()=>{e({type:`SHOW`,src:`timer`})},0)},trackHeight({scope:e,prop:t}){let n;return Ii(()=>{let r=gu(e);if(!r)return;let i=new(e.getWin()).MutationObserver(()=>{let e=r.style.height;r.style.height=`auto`;let n=r.getBoundingClientRect().height;r.style.height=e;let i={id:t(`id`),height:n};xu(t(`parent`),i)});i.observe(r,{childList:!0,subtree:!0,characterData:!0}),n=()=>i.disconnect()}),()=>n?.()}},guards:{isLoadingType:({prop:e})=>e(`type`)===`loading`,shouldPersist:({computed:e})=>e(`shouldPersist`)},actions:{setMounted({context:e}){Ii(()=>{e.set(`mounted`,!0)})},measureHeight({scope:e,prop:t,context:n}){queueMicrotask(()=>{let r=gu(e);if(!r)return;let i=r.style.height;r.style.height=`auto`;let a=r.getBoundingClientRect().height;r.style.height=i,n.set(`initialHeight`,a);let o={id:t(`id`),height:a};xu(t(`parent`),o)})},setCloseTimer({refs:e}){e.set(`closeTimerStartTime`,Date.now())},resetCloseTimer({context:e,refs:t,prop:n}){t.set(`closeTimerStartTime`,Date.now()),e.set(`remainingTime`,bu(n(`duration`),n(`type`)))},syncRemainingTime({context:e,refs:t}){e.set(`remainingTime`,e=>{let n=t.get(`closeTimerStartTime`),r=Date.now()-n;return t.set(`lastCloseStartTimerStartTime`,Date.now()),e-r})},notifyParentToRemove({prop:e}){e(`parent`).send({type:`TOAST.REMOVE`,id:e(`id`)})},invokeOnDismiss({prop:e,event:t}){e(`onStatusChange`)?.({status:`dismissing`,src:t.src})},invokeOnUnmount({prop:e}){e(`onStatusChange`)?.({status:`unmounted`})},invokeOnVisible({prop:e}){e(`onStatusChange`)?.({status:`visible`})}}}});function xu(e,t){let{id:n,height:r}=t;e.context.set(`heights`,e=>e.find(e=>e.id===n)?e.map(e=>e.id===n?{...e,height:r}:e):[{id:n,height:r},...e])}var gle=(e,t)=>({...t,...Qn(e)}),_le={error:[1,2],warning:[3,6],loading:[4,5],success:[5,7],info:[6,8]},Su=`info`,Cu=(e,t)=>{let[n,r]=_le[e??Su];return t?n:r},vle=e=>e.sort((e,t)=>(e.priority??Cu(e.type,!!e.action))-(t.priority??Cu(t.type,!!t.action)));function yle(e={}){let t=gle(e,{placement:`bottom`,overlap:!1,max:24,gap:16,offsets:`1rem`,hotkey:[`altKey`,`KeyT`],removeDelay:200,pauseOnPageIdle:!0}),n=[],r=[],i=new Set,a=[],o=e=>(n.push(e),()=>{let t=n.indexOf(e);n.splice(t,1)}),s=e=>(n.forEach(t=>t(e)),e),c=e=>{if(r.length>=t.max){a.push(e);return}s(e),r.unshift(e)},l=()=>{for(a=vle(a);a.length>0&&r.length<t.max;){let e=a.shift();e&&(s(e),r.unshift(e))}},u=e=>{let n=e.id??`toast:${Vn()}`,a=r.find(e=>e.id===n);if(i.has(n)&&i.delete(n),a)r=r.map(t=>t.id===n?s({...t,...e,id:n}):t);else{let r={id:n,duration:t.duration,removeDelay:t.removeDelay,type:Su,...e,stacked:!t.overlap,gap:t.gap},i=r.priority??Cu(r.type,!!r.action);c({...r,priority:i})}return n},d=e=>(i.add(e),e?(n.forEach(t=>t({id:e,dismiss:!0})),r=r.filter(t=>t.id!==e),l()):(r.forEach(e=>{n.forEach(t=>t({id:e.id,dismiss:!0}))}),r=[],a=[]),e);return{attrs:t,subscribe:o,create:u,update:(e,t)=>u({id:e,...t}),remove:d,dismiss:e=>{r=e==null?r.map(e=>s({...e,message:`DISMISS`})):r.map(t=>t.id===e?s({...t,message:`DISMISS`}):t)},error:e=>u({...e,type:`error`}),success:e=>u({...e,type:`success`}),info:e=>u({...e,type:`info`}),warning:e=>u({...e,type:`warning`}),loading:e=>u({...e,type:`loading`}),getVisibleToasts:()=>r.filter(e=>!i.has(e.id)),getCount:()=>r.length,promise:(e,t,n={})=>{if(!t||!t.loading){ir(`[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified`);return}let r=u({...n,...t.loading,promise:e,type:`loading`}),i=!0,a,o=Ln(e).then(async e=>{if(a=[`resolve`,e],ble(e)&&!e.ok){i=!1;let a=Ln(t.error,`HTTP Error! status: ${e.status}`);u({...n,...a,id:r,type:`error`})}else if(t.success!==void 0){i=!1;let a=Ln(t.success,e);u({...n,...a,id:r,type:a.type??`success`})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let a=Ln(t.error,e);u({...n,...a,id:r,type:`error`})}}).finally(()=>{i&&d(r),t.finally?.()});return{id:r,unwrap:()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t))}},pause:e=>{r=e==null?r.map(e=>s({...e,message:`PAUSE`})):r.map(t=>t.id===e?s({...t,message:`PAUSE`}):t)},resume:e=>{r=e==null?r.map(e=>s({...e,message:`RESUME`})):r.map(t=>t.id===e?s({...t,message:`RESUME`}):t)},isVisible:e=>!i.has(e)&&!!r.find(t=>t.id===e),isDismissed:e=>i.has(e),expand:()=>{r=r.map(e=>s({...e,stacked:!0}))},collapse:()=>{r=r.map(e=>s({...e,stacked:!1}))}}}var ble=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,wu={connect:cle,machine:fle},xle=e=>yle(e),[Sle,Tu]=cr({hookName:`useToastContext`,providerName:`<ToastProvider />`}),Cle=e=>{let t=Tu(),n=I(()=>t().getActionTriggerProps(),e);return A(L.button,n)},wle=e=>{let t=Tu(),n=I(()=>t().getCloseTriggerProps(),e);return A(L.button,n)},Tle=e=>e.children(Tu()),Ele=e=>{let t=Tu(),n=I(()=>t().getDescriptionProps(),e);return A(L.div,n)},Dle=e=>{let t=Tu(),n=I(()=>t().getRootProps(),e);return A(L.div,j(n,{get children(){return[A(L.div,j(()=>t().getGhostBeforeProps())),St(()=>e.children),A(L.div,j(()=>t().getGhostAfterProps()))]}}))},Ole=e=>{let t=Tu(),n=I(()=>t().getTitleProps(),e);return A(L.div,n)},kle=e=>{let[t,n]=ot(e,[`toaster`,`children`]),r=ua(),i=la(),a=na(wu.machine,()=>({store:t.toaster,id:ct(),dir:r()?.dir,getRootNode:i()?.getRootNode})),o=k(()=>wu.connect(a,oa)),s=k(()=>o().getToasts()),c=I(()=>o().getGroupProps(),n);return A(L.div,j(c,{get children(){return A(gr,{get each(){return s()},by:`id`,children:(e,n)=>A(Ale,{value:e,index:n,parent:a,children:e=>t.children(e)})})}}))},Ale=e=>{let t=la(),n=na(hle,k(()=>({...e.value(),parent:e.parent,index:e.index(),getRootNode:t().getRootNode})));return A(Sle,{value:k(()=>ple(n,oa)),get children(){return e.children(e.value)}})},Eu={};da(Eu,{ActionTrigger:()=>Cle,CloseTrigger:()=>wle,Context:()=>Tle,Description:()=>Ele,Root:()=>Dle,Title:()=>Ole});var Du={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},jle=De({size:24,color:`currentColor`,strokeWidth:2,absoluteStrokeWidth:!1,class:``}),Mle=N(`<svg>`),Nle=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Ple=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Fle=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Ou=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Ile=e=>{let t=Fle(e);return t.charAt(0).toUpperCase()+t.slice(1)},ku=e=>{let[t,n]=ot(e,[`color`,`size`,`strokeWidth`,`children`,`class`,`name`,`iconNode`,`absoluteStrokeWidth`]),r=Oe(jle);return(()=>{var e=Mle();return Ft(e,j(Du,{get width(){return t.size??r.size??Du.width},get height(){return t.size??r.size??Du.height},get stroke(){return t.color??r.color??Du.stroke},get"stroke-width"(){return St(()=>(t.absoluteStrokeWidth??r.absoluteStrokeWidth)===!0)()?Number(t.strokeWidth??r.strokeWidth??Du[`stroke-width`])*24/Number(t.size??r.size):Number(t.strokeWidth??r.strokeWidth??Du[`stroke-width`])},get class(){return Ple(`lucide`,`lucide-icon`,r.class,...t.name==null?[]:[`lucide-${Ou(Ile(t.name))}`,`lucide-${Ou(t.name)}`],t.class)},get"aria-hidden"(){return!t.children&&!Nle(n)?`true`:void 0}},n),!0,!0),P(e,A(ut,{get each(){return t.iconNode},children:([e,t])=>A(Qt,j({component:e},t))})),e})()},Lle=[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]],Rle=e=>A(ku,j(e,{iconNode:Lle,name:`check`})),zle=[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]],Au=e=>A(ku,j(e,{iconNode:zle,name:`chevron-down`})),Ble=[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]],Vle=e=>A(ku,j(e,{iconNode:Ble,name:`chevron-up`})),Hle=[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]],Ule=e=>A(ku,j(e,{iconNode:Hle,name:`circle-check-big`})),Wle=[[`path`,{d:`M10.1 2.182a10 10 0 0 1 3.8 0`,key:`5ilxe3`}],[`path`,{d:`M13.9 21.818a10 10 0 0 1-3.8 0`,key:`11zvb9`}],[`path`,{d:`M17.609 3.721a10 10 0 0 1 2.69 2.7`,key:`1iw5b2`}],[`path`,{d:`M2.182 13.9a10 10 0 0 1 0-3.8`,key:`c0bmvh`}],[`path`,{d:`M20.279 17.609a10 10 0 0 1-2.7 2.69`,key:`1ruxm7`}],[`path`,{d:`M21.818 10.1a10 10 0 0 1 0 3.8`,key:`qkgqxc`}],[`path`,{d:`M3.721 6.391a10 10 0 0 1 2.7-2.69`,key:`1mcia2`}],[`path`,{d:`M6.391 20.279a10 10 0 0 1-2.69-2.7`,key:`1fvljs`}]],Gle=e=>A(ku,j(e,{iconNode:Wle,name:`circle-dashed`})),Kle=[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]],qle=e=>A(ku,j(e,{iconNode:Kle,name:`circle`})),Jle=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 3v18`,key:`108xh3`}]],Yle=e=>A(ku,j(e,{iconNode:Jle,name:`columns-2`})),Xle=[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`22`,x2:`18`,y1:`12`,y2:`12`,key:`l9bcsi`}],[`line`,{x1:`6`,x2:`2`,y1:`12`,y2:`12`,key:`13hhkx`}],[`line`,{x1:`12`,x2:`12`,y1:`6`,y2:`2`,key:`10w3f3`}],[`line`,{x1:`12`,x2:`12`,y1:`22`,y2:`18`,key:`15g9kq`}]],ju=e=>A(ku,j(e,{iconNode:Xle,name:`crosshair`})),Zle=[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}],[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}]],Qle=e=>A(ku,j(e,{iconNode:Zle,name:`file-diff`})),$le=[[`path`,{d:`M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34`,key:`o6klzx`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z`,key:`zhnas1`}]],eue=e=>A(ku,j(e,{iconNode:$le,name:`file-pen`})),tue=[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]],nue=e=>A(ku,j(e,{iconNode:tue,name:`file-text`})),rue=[[`path`,{d:`M12 22v-6`,key:`6o8u61`}],[`path`,{d:`M12 8V2`,key:`1wkif3`}],[`path`,{d:`M4 12H2`,key:`rhcxmi`}],[`path`,{d:`M10 12H8`,key:`s88cx1`}],[`path`,{d:`M16 12h-2`,key:`10asgb`}],[`path`,{d:`M22 12h-2`,key:`14jgyd`}],[`path`,{d:`m15 19-3-3-3 3`,key:`e37ymu`}],[`path`,{d:`m15 5-3 3-3-3`,key:`19d6lf`}]],Mu=e=>A(ku,j(e,{iconNode:rue,name:`fold-vertical`})),iue=[[`path`,{d:`M10 8h.01`,key:`1r9ogq`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M14 8h.01`,key:`1primd`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}],[`path`,{d:`M18 8h.01`,key:`emo2bl`}],[`path`,{d:`M6 8h.01`,key:`x9i8wu`}],[`path`,{d:`M7 16h10`,key:`wp8him`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}],[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}]],aue=e=>A(ku,j(e,{iconNode:iue,name:`keyboard`})),oue=[[`rect`,{width:`18`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`f1a2em`}],[`rect`,{width:`9`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`jqznyg`}],[`rect`,{width:`5`,height:`7`,x:`16`,y:`14`,rx:`1`,key:`q5h2i8`}]],sue=e=>A(ku,j(e,{iconNode:oue,name:`layout-template`})),cue=[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`rect`,{x:`3`,y:`4`,width:`6`,height:`6`,rx:`1`,key:`cif1o7`}]],lue=e=>A(ku,j(e,{iconNode:cue,name:`list-todo`})),uue=[[`path`,{d:`M14 4.1 12 6`,key:`ita8i4`}],[`path`,{d:`m5.1 8-2.9-.8`,key:`1go3kf`}],[`path`,{d:`m6 12-1.9 2`,key:`mnht97`}],[`path`,{d:`M7.2 2.2 8 5.1`,key:`1cfko1`}],[`path`,{d:`M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z`,key:`s0h3yz`}]],due=e=>A(ku,j(e,{iconNode:uue,name:`mouse-pointer-click`})),fue=[[`path`,{d:`M13 5H19V11`,key:`1n1gyv`}],[`path`,{d:`M19 5L5 19`,key:`72u4yj`}]],pue=e=>A(ku,j(e,{iconNode:fue,name:`move-up-right`})),mue=[[`path`,{d:`M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4`,key:`daa4of`}],[`rect`,{width:`10`,height:`7`,x:`12`,y:`13`,rx:`2`,key:`1nb8gs`}]],Nu=e=>A(ku,j(e,{iconNode:mue,name:`picture-in-picture-2`})),hue=[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]],gue=e=>A(ku,j(e,{iconNode:hue,name:`plus`})),_ue=[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`m16 16-1.9-1.9`,key:`1dq9hf`}]],vue=e=>A(ku,j(e,{iconNode:_ue,name:`scan-search`})),yue=[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]],bue=e=>A(ku,j(e,{iconNode:yue,name:`search`})),xue=[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],Pu=e=>A(ku,j(e,{iconNode:xue,name:`sparkles`})),Sue=[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`,key:`ohrbg2`}]],Fu=e=>A(ku,j(e,{iconNode:Sue,name:`square-pen`})),Cue=[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]],wue=e=>A(ku,j(e,{iconNode:Cue,name:`square-terminal`})),Tue=[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]],Eue=e=>A(ku,j(e,{iconNode:Tue,name:`target`})),Due=[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]],Oue=e=>A(ku,j(e,{iconNode:Due,name:`terminal`})),kue=[[`path`,{d:`m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72`,key:`ul74o6`}],[`path`,{d:`m14 7 3 3`,key:`1r5n42`}],[`path`,{d:`M5 6v4`,key:`ilb8ba`}],[`path`,{d:`M19 14v4`,key:`blhpug`}],[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M7 8H3`,key:`zfb6yr`}],[`path`,{d:`M21 16h-4`,key:`1cnmox`}],[`path`,{d:`M11 3H9`,key:`1obp7u`}]],Aue=e=>A(ku,j(e,{iconNode:kue,name:`wand-sparkles`})),jue=[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]],Mue=e=>A(ku,j(e,{iconNode:jue,name:`wrench`})),Nue=[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]],Iu=e=>A(ku,j(e,{iconNode:Nue,name:`x`})),Lu=fa(`avatar`).parts(`root`,`image`,`fallback`).build(),Ru=e=>e.ids?.root??`avatar:${e.id}`,zu=e=>e.ids?.image??`avatar:${e.id}:image`,Pue=e=>e.ids?.fallback??`avatar:${e.id}:fallback`,Fue=e=>e.getById(Ru(e)),Bu=e=>e.getById(zu(e));function Iue(e,t){let{state:n,send:r,prop:i,scope:a}=e,o=n.matches(`loaded`);return{loaded:o,setSrc(e){Bu(a)?.setAttribute(`src`,e)},setLoaded(){r({type:`img.loaded`,src:`api`})},setError(){r({type:`img.error`,src:`api`})},getRootProps(){return t.element({...Lu.root.attrs,dir:i(`dir`),id:Ru(a)})},getImageProps(){return t.img({...Lu.image.attrs,hidden:!o,dir:i(`dir`),id:zu(a),"data-state":o?`visible`:`hidden`,onLoad(){r({type:`img.loaded`,src:`element`})},onError(){r({type:`img.error`,src:`element`})}})},getFallbackProps(){return t.element({...Lu.fallback.attrs,dir:i(`dir`),id:Pue(a),hidden:o,"data-state":o?`hidden`:`visible`})}}}var Lue=Nr({initialState(){return`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}){let n=Bu(t);n?.complete&&e({type:Rue(n)?`img.loaded`:`img.error`,src:`ssr`})}},effects:{trackImageRemoval({send:e,scope:t}){return Tte(Fue(t),{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}){return Ri(Bu(t),{attributes:[`src`,`srcset`],callback(){e({type:`src.change`})}})}}}});function Rue(e){return e.complete&&e.naturalWidth!==0&&e.naturalHeight!==0}var[Vu,Hu]=cr({hookName:`useAvatarContext`,providerName:`<AvatarProvider />`}),zue=e=>e.children(Hu()),Bue=e=>{let t=Hu(),n=I(()=>t().getFallbackProps(),e);return A(L.span,n)},Vue=e=>{let t=Hu(),n=I(()=>t().getImageProps(),e);return A(L.img,n)},Hue=e=>{let t=ua(),n=la(),r=ct(),i=na(Lue,k(()=>({id:r,dir:t().dir,getRootNode:n().getRootNode,...pr(e)})));return k(()=>Iue(i,oa))},Uue=e=>{let[t,n]=$t()(e,[`id`,`ids`,`onStatusChange`]),r=Hue(t),i=I(()=>r().getRootProps(),n);return A(Vu,{value:r,get children(){return A(L.div,i)}})},Wue=e=>{let[{value:t},n]=$t()(e,[`value`]),r=I(()=>t().getRootProps(),n);return A(Vu,{value:t,get children(){return A(L.div,r)}})},Uu={};da(Uu,{Context:()=>zue,Fallback:()=>Bue,Image:()=>Vue,Root:()=>Uue,RootProvider:()=>Wue});var Wu=fa(`tabs`).parts(`root`,`list`,`trigger`,`content`,`indicator`).build(),Gue=e=>e.ids?.root??`tabs:${e.id}`,Gu=e=>e.ids?.list??`tabs:${e.id}:list`,Ku=(e,t)=>e.ids?.content?.(t)??`tabs:${e.id}:content-${t}`,qu=(e,t)=>e.ids?.trigger?.(t)??`tabs:${e.id}:trigger-${t}`,Ju=e=>e.ids?.indicator??`tabs:${e.id}:indicator`,Yu=e=>e.getById(Gu(e)),Kue=(e,t)=>e.getById(Ku(e,t)),Xu=(e,t)=>t==null?null:e.getById(qu(e,t)),Zu=e=>e.getById(Ju(e)),Qu=e=>{let t=`[role=tab][data-ownedby='${CSS.escape(Gu(e))}']:not([disabled])`;return Gi(Yu(e),t)},que=e=>cn(Qu(e)),Jue=e=>ln(Qu(e)),Yue=(e,t)=>Lte(Qu(e),qu(e,t.value),t.loopFocus),Xue=(e,t)=>Rte(Qu(e),qu(e,t.value),t.loopFocus),$u=e=>({x:e?.offsetLeft??0,y:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0}),Zue=(e,t)=>$u(Ite(Qu(e),qu(e,t)));function Que(e,t){let{state:n,send:r,context:i,prop:a,scope:o}=e,s=a(`translations`),c=n.matches(`focused`),l=a(`orientation`)===`vertical`,u=a(`orientation`)===`horizontal`,d=a(`composite`);function f(e){return{selected:i.get(`value`)===e.value,focused:i.get(`focusedValue`)===e.value,disabled:!!e.disabled}}return{value:i.get(`value`),focusedValue:i.get(`focusedValue`),setValue(e){r({type:`SET_VALUE`,value:e})},clearValue(){r({type:`CLEAR_VALUE`})},setIndicatorRect(e){r({type:`SET_INDICATOR_RECT`,id:qu(o,e)})},syncTabIndex(){r({type:`SYNC_TAB_INDEX`})},selectNext(e){r({type:`TAB_FOCUS`,value:e,src:`selectNext`}),r({type:`ARROW_NEXT`,src:`selectNext`})},selectPrev(e){r({type:`TAB_FOCUS`,value:e,src:`selectPrev`}),r({type:`ARROW_PREV`,src:`selectPrev`})},focus(){let e=i.get(`value`);e&&Xu(o,e)?.focus()},getRootProps(){return t.element({...Wu.root.attrs,id:Gue(o),"data-orientation":a(`orientation`),"data-focus":F(c),dir:a(`dir`)})},getListProps(){return t.element({...Wu.list.attrs,id:Gu(o),role:`tablist`,dir:a(`dir`),"data-focus":F(c),"aria-orientation":a(`orientation`),"data-orientation":a(`orientation`),"aria-label":s?.listLabel,onKeyDown(e){if(e.defaultPrevented||hi(e)||!Qr(e.currentTarget,fi(e)))return;let t={ArrowDown(){u||r({type:`ARROW_NEXT`,key:`ArrowDown`})},ArrowUp(){u||r({type:`ARROW_PREV`,key:`ArrowUp`})},ArrowLeft(){l||r({type:`ARROW_PREV`,key:`ArrowLeft`})},ArrowRight(){l||r({type:`ARROW_NEXT`,key:`ArrowRight`})},Home(){r({type:`HOME`})},End(){r({type:`END`})}}[yi(e,{dir:a(`dir`),orientation:a(`orientation`)})];if(t){e.preventDefault(),t(e);return}}})},getTriggerState:f,getTriggerProps(e){let{value:n,disabled:s}=e,c=f(e);return t.button({...Wu.trigger.attrs,role:`tab`,type:`button`,disabled:s,dir:a(`dir`),"data-orientation":a(`orientation`),"data-disabled":F(s),"aria-disabled":s,"data-value":n,"aria-selected":c.selected,"data-selected":F(c.selected),"data-focus":F(c.focused),"aria-controls":c.selected?Ku(o,n):void 0,"data-ownedby":Gu(o),"data-ssr":F(i.get(`ssr`)),id:qu(o,n),tabIndex:c.selected&&d?0:-1,onFocus(){r({type:`TAB_FOCUS`,value:n})},onBlur(e){e.relatedTarget?.getAttribute(`role`)!==`tab`&&r({type:`TAB_BLUR`})},onClick(e){e.defaultPrevented||pi(e)||s||(di()&&e.currentTarget.focus(),r({type:`TAB_CLICK`,value:n}))}})},getContentProps(e){let{value:n}=e,r=i.get(`value`)===n;return t.element({...Wu.content.attrs,dir:a(`dir`),id:Ku(o,n),tabIndex:d?0:-1,"aria-labelledby":qu(o,n),role:`tabpanel`,"data-ownedby":Gu(o),"data-selected":F(r),"data-orientation":a(`orientation`),hidden:!r})},getIndicatorProps(){let e=i.get(`indicatorRect`),n=i.get(`animateIndicator`);return t.element({id:Ju(o),...Wu.indicator.attrs,dir:a(`dir`),"data-orientation":a(`orientation`),hidden:$ue(e),onTransitionEnd(e){fi(e)===e.currentTarget&&r({type:`INDICATOR_TRANSITION_END`})},style:{"--transition-property":`left, right, top, bottom, width, height`,"--left":Zn(e?.x),"--top":Zn(e?.y),"--width":Zn(e?.width),"--height":Zn(e?.height),position:`absolute`,willChange:n?`var(--transition-property)`:`auto`,transitionProperty:n?`var(--transition-property)`:`none`,transitionDuration:n?`var(--transition-duration, 150ms)`:`0ms`,transitionTimingFunction:`var(--transition-timing-function)`,[u?`left`:`top`]:u?`var(--left)`:`var(--top)`}})}}}var $ue=e=>e==null||e.width===0&&e.height===0&&e.x===0&&e.y===0,{createMachine:ede}=Pr(),tde=ede({props({props:e}){return{dir:`ltr`,orientation:`horizontal`,activationMode:`automatic`,loopFocus:!0,composite:!0,navigate(e){zi(e.node)},defaultValue:null,...e}},initialState(){return`idle`},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e(`defaultValue`),value:e(`value`),onChange(t){e(`onValueChange`)?.({value:t})}})),focusedValue:t(()=>({defaultValue:e(`value`)||e(`defaultValue`),sync:!0,onChange(t){e(`onFocusChange`)?.({focusedValue:t})}})),ssr:t(()=>({defaultValue:!0})),indicatorRect:t(()=>({defaultValue:null})),animateIndicator:t(()=>({defaultValue:!1}))}},refs(){return{indicatorCleanup:null,prevValue:null}},watch({context:e,prop:t,track:n,action:r}){n([()=>e.get(`value`)],()=>{r([`syncIndicatorAnimation`,`syncIndicatorRect`,`syncTabIndex`,`navigateIfNeeded`])}),n([()=>t(`dir`),()=>t(`orientation`)],()=>{r([`syncIndicatorRect`])})},on:{SET_VALUE:{actions:[`setValue`]},CLEAR_VALUE:{actions:[`clearValue`]},SET_INDICATOR_RECT:{actions:[`setIndicatorRect`]},SYNC_TAB_INDEX:{actions:[`syncTabIndex`]},INDICATOR_TRANSITION_END:{actions:[`clearIndicatorAnimation`]}},entry:[`syncPrevValue`,`syncIndicatorRect`,`syncTabIndex`,`syncSsr`],exit:[`cleanupObserver`],states:{idle:{on:{TAB_FOCUS:{target:`focused`,actions:[`setFocusedValue`]},TAB_CLICK:{target:`focused`,actions:[`setFocusedValue`,`setValue`]}}},focused:{on:{TAB_CLICK:{actions:[`setFocusedValue`,`setValue`]},ARROW_PREV:[{guard:`selectOnFocus`,actions:[`focusPrevTab`,`selectFocusedTab`]},{actions:[`focusPrevTab`]}],ARROW_NEXT:[{guard:`selectOnFocus`,actions:[`focusNextTab`,`selectFocusedTab`]},{actions:[`focusNextTab`]}],HOME:[{guard:`selectOnFocus`,actions:[`focusFirstTab`,`selectFocusedTab`]},{actions:[`focusFirstTab`]}],END:[{guard:`selectOnFocus`,actions:[`focusLastTab`,`selectFocusedTab`]},{actions:[`focusLastTab`]}],TAB_FOCUS:{actions:[`setFocusedValue`]},TAB_BLUR:{target:`idle`,actions:[`clearFocusedValue`]}}}},implementations:{guards:{selectOnFocus:({prop:e})=>e(`activationMode`)===`automatic`},actions:{selectFocusedTab({context:e,prop:t}){Ii(()=>{let n=e.get(`focusedValue`);if(!n)return;let r=t(`deselectable`)&&e.get(`value`)===n?null:n;e.set(`value`,r)})},setFocusedValue({context:e,event:t,flush:n}){t.value!=null&&n(()=>{e.set(`focusedValue`,t.value)})},clearFocusedValue({context:e}){e.set(`focusedValue`,null)},setValue({context:e,event:t,prop:n}){let r=n(`deselectable`)&&e.get(`value`)===e.get(`focusedValue`);e.set(`value`,r?null:t.value)},clearValue({context:e}){e.set(`value`,null)},focusFirstTab({scope:e}){Ii(()=>{que(e)?.focus()})},focusLastTab({scope:e}){Ii(()=>{Jue(e)?.focus()})},focusNextTab({context:e,prop:t,scope:n,event:r}){let i=r.value??e.get(`focusedValue`);if(!i)return;let a=Yue(n,{value:i,loopFocus:t(`loopFocus`)});Ii(()=>{t(`composite`)?a?.focus():a?.dataset.value!=null&&e.set(`focusedValue`,a.dataset.value)})},focusPrevTab({context:e,prop:t,scope:n,event:r}){let i=r.value??e.get(`focusedValue`);if(!i)return;let a=Xue(n,{value:i,loopFocus:t(`loopFocus`)});Ii(()=>{t(`composite`)?a?.focus():a?.dataset.value!=null&&e.set(`focusedValue`,a.dataset.value)})},syncTabIndex({context:e,scope:t}){Ii(()=>{let n=e.get(`value`);if(!n)return;let r=Kue(t,n);r&&(Oi(r).length>0?r.removeAttribute(`tabindex`):r.setAttribute(`tabindex`,`0`))})},cleanupObserver({refs:e}){let t=e.get(`indicatorCleanup`);t&&t()},setIndicatorRect({context:e,event:t,scope:n}){let r=t.id??e.get(`value`);Zu(n)&&r&&Xu(n,r)&&e.set(`indicatorRect`,Zue(n,r))},syncSsr({context:e}){e.set(`ssr`,!1)},syncPrevValue({context:e,refs:t}){t.set(`prevValue`,e.get(`value`))},syncIndicatorAnimation({context:e,refs:t}){let n=t.get(`prevValue`),r=e.get(`value`),i=n!=null&&r!=null&&n!==r;e.set(`animateIndicator`,i),t.set(`prevValue`,r)},clearIndicatorAnimation({context:e}){e.set(`animateIndicator`,!1)},syncIndicatorRect({context:e,refs:t,scope:n}){let r=t.get(`indicatorCleanup`);if(r&&r(),!Zu(n))return;let i=()=>{let t=Xu(n,e.get(`value`));if(!t)return;let r=$u(t);e.set(`indicatorRect`,e=>bn(e,r)?e:r)};i();let a=Qu(n),o=Yu(n),s=Bn(...a.map(e=>Yi.observe(e,i)),...o?[Yi.observe(o,i)]:[]);t.set(`indicatorCleanup`,s)},navigateIfNeeded({context:e,prop:t,scope:n}){let r=e.get(`value`);if(!r)return;let i=Xu(n,r);Yr(i)&&t(`navigate`)?.({value:r,node:i,href:i.href})}}}}),[ed,td]=cr({hookName:`useTabsContext`,providerName:`<TabsProvider />`}),nde=e=>{let[t,n]=$t()(e,[`value`]),r=td(),i=Ia(I(ur(),()=>({present:r().value===t.value,immediate:!0}))),a=I(()=>r().getContentProps(t),()=>i().presenceProps,n);return A(za,{value:i,get children(){return A(M,{get when(){return!i().unmounted},get children(){return A(L.div,j(a,{ref(t){var n=La(i().ref,e.ref);typeof n==`function`&&n(t)}}))}})}})},rde=e=>{let t=td(),n=I(()=>t().getIndicatorProps(),e);return A(L.div,n)},ide=e=>{let t=td(),n=I(()=>t().getListProps(),e);return A(L.div,n)},ade=e=>{let[t,n]=$t()(e,[`disabled`,`value`]),r=td(),i=I(()=>r().getTriggerProps(t),n);return A(L.button,i)},ode=e=>e.children(td()),sde=e=>{let t=ct(),n=ua(),r=la(),i=na(tde,k(()=>({id:t,dir:n().dir,getRootNode:r().getRootNode,...pr(e)})));return k(()=>Que(i,oa))},cde=e=>{let[t,n]=dr(e),[r,i]=$t()(n,[`activationMode`,`composite`,`defaultValue`,`deselectable`,`id`,`ids`,`loopFocus`,`navigate`,`onFocusChange`,`onValueChange`,`orientation`,`translations`,`value`]),a=sde(r),o=I(()=>a().getRootProps(),i);return A(ed,{value:a,get children(){return A(lr,{value:t,get children(){return A(L.div,o)}})}})},lde=e=>{let[t,n]=dr(e),[{value:r},i]=$t()(n,[`value`]),a=I(()=>r().getRootProps(),i);return A(ed,{value:r,get children(){return A(lr,{value:t,get children(){return A(L.div,a)}})}})},nd={};da(nd,{Content:()=>nde,Context:()=>ode,Indicator:()=>rde,List:()=>ide,Root:()=>cde,RootProvider:()=>lde,Trigger:()=>ade});var rd=fa(`switch`).parts(`root`,`label`,`control`,`thumb`).build(),id=e=>e.ids?.root??`switch:${e.id}`,ad=e=>e.ids?.label??`switch:${e.id}:label`,ude=e=>e.ids?.thumb??`switch:${e.id}:thumb`,dde=e=>e.ids?.control??`switch:${e.id}:control`,od=e=>e.ids?.hiddenInput??`switch:${e.id}:input`,fde=e=>e.getById(id(e)),sd=e=>e.getById(od(e));function pde(e,t){let{context:n,send:r,prop:i,scope:a}=e,o=!!i(`disabled`),s=!!i(`readOnly`),c=!!i(`required`),l=!!n.get(`checked`),u=!o&&n.get(`focused`),d=!o&&n.get(`focusVisible`),f={"data-active":F(!o&&n.get(`active`)),"data-focus":F(u),"data-focus-visible":F(d),"data-readonly":F(s),"data-hover":F(n.get(`hovered`)),"data-disabled":F(o),"data-state":l?`checked`:`unchecked`,"data-invalid":F(i(`invalid`)),"data-required":F(c)};return{checked:l,disabled:o,focused:u,setChecked(e){r({type:`CHECKED.SET`,checked:e,isTrusted:!1})},toggleChecked(){r({type:`CHECKED.TOGGLE`,checked:l,isTrusted:!1})},getRootProps(){return t.label({...rd.root.attrs,...f,dir:i(`dir`),id:id(a),htmlFor:od(a),onPointerMove(){o||r({type:`CONTEXT.SET`,context:{hovered:!0}})},onPointerLeave(){o||r({type:`CONTEXT.SET`,context:{hovered:!1}})},onClick(e){o||(fi(e)===sd(a)&&e.stopPropagation(),di()&&sd(a)?.focus())}})},getLabelProps(){return t.element({...rd.label.attrs,...f,dir:i(`dir`),id:ad(a)})},getThumbProps(){return t.element({...rd.thumb.attrs,...f,dir:i(`dir`),id:ude(a),"aria-hidden":!0})},getControlProps(){return t.element({...rd.control.attrs,...f,dir:i(`dir`),id:dde(a),"aria-hidden":!0})},getHiddenInputProps(){return t.input({id:od(a),type:`checkbox`,required:i(`required`),defaultChecked:l,disabled:o,"aria-labelledby":ad(a),"aria-invalid":i(`invalid`),name:i(`name`),form:i(`form`),value:i(`value`),style:Yte,onFocus(){r({type:`CONTEXT.SET`,context:{focused:!0,focusVisible:Na()}})},onBlur(){r({type:`CONTEXT.SET`,context:{focused:!1,focusVisible:!1}})},onClick(e){if(s){e.preventDefault();return}let t=e.currentTarget.checked;r({type:`CHECKED.SET`,checked:t,isTrusted:!0})}})}}}var{not:cd}=Mr(),mde=Nr({props({props:e}){return{defaultChecked:!1,label:`switch`,value:`on`,...e}},initialState(){return`ready`},context({prop:e,bindable:t}){return{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:n,action:r}){e([()=>t(`disabled`)],()=>{r([`removeFocusIfNeeded`])}),e([()=>n.get(`checked`)],()=>{r([`syncInputElement`])})},effects:[`trackFormControlState`,`trackPressEvent`,`trackFocusVisible`],on:{"CHECKED.TOGGLE":[{guard:cd(`isTrusted`),actions:[`toggleChecked`,`dispatchChangeEvent`]},{actions:[`toggleChecked`]}],"CHECKED.SET":[{guard:cd(`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:n}){if(!e(`isDisabled`))return Nte({pointerNode:fde(t),keyboardNode:sd(t),isValidKey:e=>e.key===` `,onPress:()=>n.set(`active`,!1),onPressStart:()=>n.set(`active`,!0),onPressEnd:()=>n.set(`active`,!1)})},trackFocusVisible({computed:e,scope:t}){if(!e(`isDisabled`))return Pa({root:t.getRootNode()})},trackFormControlState({context:e,send:t,scope:n}){return dte(sd(n),{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 n in t.context)e.set(n,t.context[n])},syncInputElement({context:e,scope:t}){let n=sd(t);n&&Si(n,!!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}){queueMicrotask(()=>{ste(sd(t),{checked:e.get(`checked`)})})}}}}),[ld,ud]=cr({hookName:`useSwitchContext`,providerName:`<SwitchProvider />`}),hde=e=>e.children(ud()),gde=e=>{let t=ud(),n=I(()=>t().getControlProps(),e);return A(L.span,n)},_de=e=>{let t=ud(),n=I(()=>t().getHiddenInputProps(),e),r=qs();return A(L.input,j({get"aria-describedby"(){return r?.().ariaDescribedby}},n))},vde=e=>{let t=ud(),n=I(()=>t().getLabelProps(),e);return A(L.span,n)},yde=e=>{let t=ct(),n=ua(),r=la(),i=qs(),a=na(mde,k(()=>({id:t,ids:{label:i?.().ids.label,hiddenInput:i?.().ids.control},disabled:i?.().disabled,readOnly:i?.().readOnly,invalid:i?.().invalid,required:i?.().required,dir:n().dir,getRootNode:r().getRootNode,...pr(e)})));return k(()=>pde(a,oa))},bde=e=>{let[t,n]=$t()(e,[`checked`,`defaultChecked`,`disabled`,`form`,`id`,`ids`,`invalid`,`label`,`name`,`onCheckedChange`,`readOnly`,`required`,`value`]),r=yde(t),i=I(()=>r().getRootProps(),n);return A(ld,{value:r,get children(){return A(L.label,i)}})},xde=e=>{let[{value:t},n]=$t()(e,[`value`]),r=I(()=>t().getRootProps(),n);return A(ld,{value:t,get children(){return A(L.label,r)}})},Sde=e=>{let t=ud(),n=I(()=>t().getThumbProps(),e);return A(L.span,n)},dd={};da(dd,{Context:()=>hde,Control:()=>gde,HiddenInput:()=>_de,Label:()=>vde,Root:()=>bde,RootProvider:()=>xde,Thumb:()=>Sde});var fd=fa(`swap`,[`root`,`indicator`]),pd=fd.build(),md={};da(md,{Indicator:()=>wde,Root:()=>Ede,RootProvider:()=>Dde,swapAnatomy:()=>fd});var[hd,Cde]=cr({hookName:`useSwapContext`,providerName:`<SwapProvider />`}),wde=e=>{let[t,n]=ot(e,[`type`,`ref`]),r=Cde(),i=()=>(t.type===`on`?r().onPresence:r().offPresence)(),a=I(()=>r().getIndicatorProps({type:t.type}),n);return A(M,{get when(){return!i().unmounted},get children(){return A(L.span,j(a,{ref(e){var n=La(i().ref,t.ref);typeof n==`function`&&n(e)}}))}})},Tde=(e={})=>{let t=k(()=>pr(e)),n=Ia(I(()=>({present:t().swap??!1,lazyMount:t().lazyMount,unmountOnExit:t().unmountOnExit,skipAnimationOnMount:!0}))),r=Ia(I(()=>({present:!(t().swap??!1),lazyMount:t().lazyMount,unmountOnExit:t().unmountOnExit,skipAnimationOnMount:!0})));return k(()=>{let e=t().swap??!1;return{swap:e,onPresence:n,offPresence:r,getRootProps(){return{...pd.root.attrs,"data-swap":e?`on`:`off`,style:{display:`inline-grid`}}},getIndicatorProps({type:e}){let t=e===`on`?n():r();return{...pd.indicator.attrs,...t.presenceProps,"data-type":e,style:{"grid-area":`1 / 1`,display:`inline-flex`}}}}})},Ede=e=>{let[t,n]=ot(e,[`swap`,`lazyMount`,`unmountOnExit`]),r=Tde(()=>t),i=I(()=>r().getRootProps(),n);return A(hd,{value:r,get children(){return A(L.span,i)}})},Dde=e=>{let[t,n]=ot(e,[`value`]),r=I(()=>t.value().getRootProps(),n);return A(hd,{get value(){return t.value},get children(){return A(L.span,r)}})},Ode=`overflow-hidden data-[state=open]:anim-collapse-open data-[state=closed]:anim-collapse-closed`;function kde(e){let[t,n]=ot(e,[`class`]);return A(ya.Content,j(n,{get class(){return`${Ode} ${t.class??``}`}}))}var gd=Object.assign({},ya,{Content:kde}),Ade=`hidden data-[state=open]:block data-[state=open]:anim-combo z-[2147483647] w-60 rounded-pw-md overflow-hidden bg-pw-panel text-pw-text border border-pw-line shadow-pw-lg text-[0.75rem] focus-visible:outline-none`;function jde(e){return A(Ds.Root,{get openDelay(){return e.openDelay??0},get closeDelay(){return e.closeDelay??120},get positioning(){return{strategy:`fixed`,placement:`bottom-start`,gutter:e.sideOffset??6}},get children(){return[A(Ds.Trigger,{get class(){return e.triggerClass},get"aria-label"(){return e.label},get children(){return e.trigger}}),A(Ds.Positioner,{get children(){return A(Ds.Content,{get class(){return`${Ade} ${e.class??``}`},get children(){return e.children}})}})]}})}var Mde=`flex p-0.5 opacity-0 pointer-events-none [transition:opacity_150ms] [&[data-hover]]:opacity-100 [&[data-scrolling]]:opacity-100 [&[data-hover]]:pointer-events-auto [&[data-scrolling]]:pointer-events-auto [&[data-orientation=vertical]]:w-2 [&[data-orientation=horizontal]]:h-2 [&[data-orientation=vertical]:not([data-overflow-y])]:hidden [&[data-orientation=horizontal]:not([data-overflow-x])]:hidden`,Nde=`w-full rounded-pw-pill bg-pw-accent-link [&[data-orientation=horizontal]]:w-auto [&[data-orientation=horizontal]]:h-full`;function Pde(e){let[t,n]=ot(e,[`class`]);return A(Hs.Scrollbar,j(n,{get class(){return`${Mde} ${t.class??``}`}}))}function Fde(e){let[t,n]=ot(e,[`class`]);return A(Hs.Thumb,j(n,{get class(){return`${Nde} ${t.class??``}`}}))}Object.assign({},Hs,{Scrollbar:Pde,Thumb:Fde});var Ide=`fixed inset-0 z-[2147483646] bg-[rgba(0,0,0,0.55)] [backdrop-filter:blur(0.125rem)]`,Lde=`fixed inset-0 z-[2147483647] flex items-center justify-center p-4`,Rde=`w-90 max-w-[calc(100vw-2rem)] rounded-pw-lg bg-pw-panel text-pw-text border border-pw-line shadow-pw-lg p-4 focus-visible:outline-none data-[state=open]:anim-rise`;function _d(e){return A(Xc.Root,{get open(){return e.open},onOpenChange:t=>e.onOpenChange?.(t.open),role:`alertdialog`,modal:!0,get closeOnEscape(){return e.dismissable??!1},get closeOnInteractOutside(){return e.dismissable??!1},get children(){return[A(Xc.Backdrop,{class:Ide}),A(Xc.Positioner,{class:Lde,get children(){return A(Xc.Content,{class:Rde,get"aria-label"(){return e.label},get children(){return e.children}})}})]}})}var zde=N(`<textarea>`),Bde=`w-full resize-none font-pw text-[0.8125rem] rounded-pw-md bg-pw-fill text-pw-text [border:1px_solid_var(--pw-line)] py-2 px-3 focus-ring placeholder:text-pw-text-3`,Vde=`w-full resize-none [background:transparent] [border:none] [font:inherit] focus-visible:outline-none`;function vd(e,t){let n=getComputedStyle(e),r=Number.parseFloat(n.lineHeight)||20,i=Number.parseFloat(n.paddingTop)+Number.parseFloat(n.paddingBottom)+Number.parseFloat(n.borderTopWidth)+Number.parseFloat(n.borderBottomWidth);return t*r+i}function Hde(e){let[t,n]=ot(e,[`class`,`minRows`,`maxRows`,`onHeightChange`,`onInput`,`value`,`ref`,`unstyled`]),r,i=()=>{if(!r)return;let e=vd(r,t.maxRows??5),n=vd(r,t.minRows??1);r.style.height=`auto`;let i=Math.max(n,Math.min(r.scrollHeight,e));r.style.height=`${i}px`,r.style.overflowY=r.scrollHeight>e?`auto`:`hidden`,t.onHeightChange?.(i)};ve(i),pe(()=>{t.value,i()});let a=t.ref;return(()=>{var e=zde();return e.$$input=e=>{i(),typeof t.onInput==`function`&&t.onInput(e)},It(e=>{r=e,typeof a==`function`&&a(e)},e),Ft(e,j({get rows(){return t.minRows??1},get class(){return`${t.unstyled?Vde:Bde} ${t.class??``}`},get value(){return t.value}},n),!1,!1),e})()}Et([`input`]);var Ude=`hidden data-[state=open]:block data-[state=open]:anim-combo z-[2147483647] rounded-pw-sm bg-pw-panel text-pw-text border border-pw-line shadow-pw-lg py-1 px-2 text-[0.6875rem] max-w-60 focus-visible:outline-none`;function Wde(e){let[t,n]=ot(e,[`positioning`,`openDelay`,`closeDelay`]);return A(fl.Root,j({get openDelay(){return t.openDelay??300},get closeDelay(){return t.closeDelay??80},get positioning(){return{strategy:`fixed`,placement:`top`,gutter:6,...t.positioning}}},n))}function Gde(e){let[t,n]=ot(e,[`class`]);return A(fl.Content,j(n,{get class(){return`${Ude} ${t.class??``}`}}))}var yd=Object.assign({},fl,{Root:Wde,Content:Gde}),Kde=`hidden data-[state=open]:block data-[state=open]:anim-combo z-[2147483647] min-w-44 rounded-pw-md bg-pw-panel text-pw-text border border-pw-line shadow-pw-lg p-1 focus-visible:outline-none`,qde=`flex items-center gap-2 min-h-8 py-1.5 px-2.5 rounded-pw-sm text-[0.8125rem] text-pw-text-2 cursor-pointer select-none outline-none data-[highlighted]:bg-pw-fill-strong data-[highlighted]:text-pw-text data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed`,Jde=`py-1.5 px-2.5 text-[0.6875rem] font-pw text-pw-text-3 uppercase tracking-wide`,Yde=`h-px my-1 bg-pw-line`;function Xde(e){let[t,n]=ot(e,[`positioning`]);return A(Xl.Root,j({get positioning(){return{strategy:`fixed`,placement:`bottom-start`,gutter:4,...t.positioning}}},n))}function Zde(e){let[t,n]=ot(e,[`class`]);return A(Xl.Content,j(n,{get class(){return`${Kde} ${t.class??``}`}}))}function Qde(e){let[t,n]=ot(e,[`class`]);return A(Xl.Item,j(n,{get class(){return`${qde} ${t.class??``}`}}))}function $de(e){let[t,n]=ot(e,[`class`]);return A(Xl.ItemGroupLabel,j(n,{get class(){return`${Jde} ${t.class??``}`}}))}function efe(e){let[t,n]=ot(e,[`class`]);return A(Xl.Separator,j(n,{get class(){return`${Yde} ${t.class??``}`}}))}var bd=Object.assign({},Xl,{Root:Xde,Content:Zde,Item:Qde,ItemGroupLabel:$de,Separator:efe}),tfe=`hidden data-[state=open]:block data-[state=open]:anim-rise z-[2147483647] rounded-pw-lg bg-pw-panel text-pw-text border border-pw-line shadow-pw-lg focus-visible:outline-none`;function nfe(e){let[t,n]=ot(e,[`positioning`]);return A(fu.Root,j({get positioning(){return{strategy:`fixed`,placement:`top-end`,gutter:8,...t.positioning}}},n))}function rfe(e){let[t,n]=ot(e,[`class`]);return A(fu.Content,j(n,{get class(){return`${tfe} ${t.class??``}`}}))}var xd=Object.assign({},fu,{Root:nfe,Content:rfe}),ife=`relative w-80 max-w-[calc(100vw-2rem)] flex flex-col gap-1 items-start py-3 pl-3.5 pr-9 rounded-pw-md bg-pw-panel text-pw-text border border-pw-line shadow-pw-lg [translate:var(--x)_var(--y)] [scale:var(--scale)] [z-index:var(--z-index)] [height:var(--height)] [opacity:var(--opacity)] data-[type=error]:[border-color:var(--pw-danger)] data-[type=success]:[border-color:var(--pw-success)]`,afe=`text-[0.8125rem] font-pw text-pw-text-hi`,ofe=`text-[0.75rem] text-pw-text-2`,sfe=`absolute top-1.5 right-1.5 inline-flex items-center justify-center size-7 rounded-pw-sm text-pw-text-3 cursor-pointer hover:text-pw-text hover:bg-pw-fill-strong focus-ring`;function cfe(e){return A(kle,{get toaster(){return e.toaster},children:e=>A(Eu.Root,{class:ife,get children(){return[A(Eu.Title,{class:afe,get children(){return e().title}}),A(M,{get when(){return e().description},get children(){return A(Eu.Description,{class:ofe,get children(){return e().description}})}}),A(Eu.CloseTrigger,{class:sfe,"aria-label":`Dismiss notification`,get children(){return A(Iu,{size:16})}})]}})})}Object.assign({},Eu,{Toaster:cfe,createToaster:xle});var lfe=`inline-flex items-center justify-center size-7 rounded-pw-pill overflow-hidden bg-pw-fill-strong text-pw-text-2 text-[0.6875rem] font-pw select-none shrink-0`,ufe=`size-full object-cover`,dfe=`inline-flex items-center justify-center size-full uppercase`;function ffe(e){let[t,n]=ot(e,[`class`]);return A(Uu.Root,j(n,{get class(){return`${lfe} ${t.class??``}`}}))}function pfe(e){let[t,n]=ot(e,[`class`]);return A(Uu.Image,j(n,{get class(){return`${ufe} ${t.class??``}`}}))}function mfe(e){let[t,n]=ot(e,[`class`]);return A(Uu.Fallback,j(n,{get class(){return`${dfe} ${t.class??``}`}}))}Object.assign({},Uu,{Root:ffe,Image:pfe,Fallback:mfe});var hfe=`relative flex items-center gap-1 border-b border-pw-line`,gfe=`relative inline-flex items-center gap-1.5 py-2 px-3 text-[0.8125rem] font-pw text-pw-text-3 cursor-pointer select-none trans-btn hover:text-pw-text-2 data-[selected]:text-pw-text focus-ring disabled:opacity-50 disabled:cursor-not-allowed`,_fe=`pt-3 focus-visible:outline-none`,vfe=`absolute bottom-0 h-0.5 bg-pw-accent [width:var(--width)] [left:var(--left)] trans-btn`;function yfe(e){let[t,n]=ot(e,[`class`]);return A(nd.List,j(n,{get class(){return`${hfe} ${t.class??``}`}}))}function bfe(e){let[t,n]=ot(e,[`class`]);return A(nd.Trigger,j(n,{get class(){return`${gfe} ${t.class??``}`}}))}function xfe(e){let[t,n]=ot(e,[`class`]);return A(nd.Content,j(n,{get class(){return`${_fe} ${t.class??``}`}}))}function Sfe(e){let[t,n]=ot(e,[`class`]);return A(nd.Indicator,j(n,{get class(){return`${vfe} ${t.class??``}`}}))}Object.assign({},nd,{List:yfe,Trigger:bfe,Content:xfe,Indicator:Sfe});var Cfe=`inline-flex items-center gap-2 cursor-pointer select-none data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed`,wfe=`relative inline-flex items-center w-8 h-4.5 rounded-pw-pill bg-pw-fill-strong [border:1px_solid_var(--pw-line)] trans-btn data-[state=checked]:bg-pw-accent data-[state=checked]:[border-color:var(--pw-accent)] focus-within:[outline:0.125rem_solid_var(--pw-accent)] focus-within:[outline-offset:0.125rem]`,Tfe=`size-3.5 rounded-pw-pill bg-pw-text translate-x-0.5 trans-btn data-[state=checked]:translate-x-3.5 data-[state=checked]:bg-pw-on-accent`,Efe=`text-[0.8125rem] font-pw text-pw-text-2`;function Dfe(e){let[t,n]=ot(e,[`class`]);return A(dd.Root,j(n,{get class(){return`${Cfe} ${t.class??``}`}}))}function Ofe(e){let[t,n]=ot(e,[`class`]);return A(dd.Control,j(n,{get class(){return`${wfe} ${t.class??``}`}}))}function kfe(e){let[t,n]=ot(e,[`class`]);return A(dd.Thumb,j(n,{get class(){return`${Tfe} ${t.class??``}`}}))}function Afe(e){let[t,n]=ot(e,[`class`]);return A(dd.Label,j(n,{get class(){return`${Efe} ${t.class??``}`}}))}Object.assign({},dd,{Root:Dfe,Control:Ofe,Thumb:kfe,Label:Afe});var jfe=`inline-flex [transition:opacity_150ms_ease,scale_150ms_ease] [&[hidden]]:opacity-0 [&[hidden]]:[scale:0.6] [&[hidden]]:[display:inline-flex]`;function Mfe(e){let[t,n]=ot(e,[`class`]);return A(md.Indicator,j(n,{get class(){return`${jfe} ${t.class??``}`}}))}var Sd=Object.assign({},md,{Indicator:Mfe}),Cd=Symbol(`store-raw`),wd=Symbol(`store-node`),Td=Symbol(`store-has`),Ed=Symbol(`store-self`);function Dd(e){let t=e[b];if(!t&&(Object.defineProperty(e,b,{value:t=new Proxy(e,Ife)}),!Array.isArray(e))){let n=Object.keys(e),r=Object.getOwnPropertyDescriptors(e),i=Object.getPrototypeOf(e),a=i!==null&&typeof e==`object`&&!!e&&!Array.isArray(e)&&i!==Object.prototype;if(a){let e=Object.getOwnPropertyDescriptors(i);n.push(...Object.keys(e)),Object.assign(r,e)}for(let i=0,o=n.length;i<o;i++){let o=n[i];a&&o===`constructor`||r[o].get&&Object.defineProperty(e,o,{configurable:!0,enumerable:r[o].enumerable,get:r[o].get.bind(t)})}}return t}function Od(e){let t;return typeof e==`object`&&!!e&&(e[b]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function kd(e,t=new Set){let n,r,i,a;if(n=e!=null&&e[Cd])return n;if(!Od(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let n=0,a=e.length;n<a;n++)i=e[n],(r=kd(i,t))!==i&&(e[n]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);let n=Object.keys(e),o=Object.getOwnPropertyDescriptors(e);for(let s=0,c=n.length;s<c;s++)a=n[s],!o[a].get&&(i=e[a],(r=kd(i,t))!==i&&(e[a]=r))}return e}function Ad(e,t){let n=e[t];return n||Object.defineProperty(e,t,{value:n=Object.create(null)}),n}function jd(e,t,n){if(e[t])return e[t];let[r,i]=O(n,{equals:!1,internal:!0});return r.$=i,e[t]=r}function Nfe(e,t){let n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||!n.configurable||t===b||t===wd?n:(delete n.value,delete n.writable,n.get=()=>e[b][t],n)}function Pfe(e){xe()&&jd(Ad(e,wd),Ed)()}function Ffe(e){return Pfe(e),Reflect.ownKeys(e)}var Ife={get(e,t,n){if(t===Cd)return e;if(t===b)return n;if(t===S)return Pfe(e),n;let r=Ad(e,wd),i=r[t],a=i?i():e[t];if(t===wd||t===Td||t===`__proto__`)return a;if(!i){let n=Object.getOwnPropertyDescriptor(e,t);xe()&&(typeof a!=`function`||e.hasOwnProperty(t))&&!(n&&n.get)&&(a=jd(r,t,a)())}return Od(a)?Dd(a):a},has(e,t){return t===Cd||t===b||t===S||t===wd||t===Td||t===`__proto__`?!0:(xe()&&jd(Ad(e,Td),t)(),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:Ffe,getOwnPropertyDescriptor:Nfe};function Md(e,t,n,r=!1){if(t===`__proto__`||!r&&e[t]===n)return;let i=e[t],a=e.length;n===void 0?(delete e[t],e[Td]&&e[Td][t]&&i!==void 0&&e[Td][t].$()):(e[t]=n,e[Td]&&e[Td][t]&&i===void 0&&e[Td][t].$());let o=Ad(e,wd),s;if((s=jd(o,t,i))&&s.$(()=>n),Array.isArray(e)&&e.length!==a){for(let t=e.length;t<a;t++)(s=o[t])&&s.$();(s=jd(o,`length`,a))&&s.$(e.length)}(s=o[Ed])&&s.$()}function Lfe(e,t){let n=Object.keys(t);for(let r=0;r<n.length;r+=1){let i=n[r];Rfe(i)||Md(e,i,t[i])}}function Rfe(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function zfe(e,t){if(typeof t==`function`&&(t=t(e)),t=kd(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){let r=t[n];e[n]!==r&&Md(e,n,r)}Md(e,`length`,r)}else Lfe(e,t)}function Nd(e,t,n=[]){let r,i=e;if(t.length>1){r=t.shift();let a=typeof r,o=Array.isArray(e);if(a===`string`&&(r===`__proto__`||t.length>1&&Rfe(r)))return;if(Array.isArray(r)){for(let i=0;i<r.length;i++)Nd(e,[r[i]].concat(t),n);return}else if(o&&a===`function`){for(let i=0;i<e.length;i++)r(e[i],i)&&Nd(e,[i].concat(t),n);return}else if(o&&a===`object`){let{from:i=0,to:a=e.length-1,by:o=1}=r;for(let r=i;r<=a;r+=o)Nd(e,[r].concat(t),n);return}else if(t.length>1){Nd(e[r],t,[r].concat(n));return}i=e[r],n=[r].concat(n)}let a=t[0];typeof a==`function`&&(a=a(i,n),a===i)||r===void 0&&a==null||(a=kd(a),r===void 0||Od(i)&&Od(a)&&!Array.isArray(a)?Lfe(i,a):Md(e,r,a))}function Bfe(...[e,t]){let n=kd(e||{}),r=Array.isArray(n),i=Dd(n);function a(...e){ge(()=>{r&&e.length===1?zfe(n,e[0]):Nd(n,e)})}return[i,a]}var Pd=Object.defineProperty,Vfe=Object.getOwnPropertyDescriptor,Hfe=Object.getOwnPropertyNames,Ufe=Object.prototype.hasOwnProperty,Wfe=(e,t)=>{let n={};for(var r in e)Pd(n,r,{get:e[r],enumerable:!0});return t||Pd(n,Symbol.toStringTag,{value:`Module`}),n},Gfe=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=Hfe(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Ufe.call(e,s)&&s!==n&&Pd(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Vfe(t,s))||r.enumerable});return e},Kfe=(e,t,n)=>(Gfe(e,t,`default`),n&&Gfe(n,t,`default`)),Fd=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function qfe(e){return Id(e)}function Id(e){return Array.isArray(e)?Jfe(e):e instanceof RegExp?e:typeof e==`object`?Yfe(e):e}function Jfe(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Id(e[n]);return t}function Yfe(e){let t={};for(let n in e)t[n]=Id(e[n]);return t}function Xfe(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function Zfe(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?Zfe(e.substring(0,e.length-1)):e.substr(~t+1)}var Ld=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Rd=class{static hasCaptures(e){return e===null?!1:(Ld.lastIndex=0,Ld.test(e))}static replaceCaptures(e,t,n){return e.replace(Ld,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function Qfe(e,t){return e<t?-1:+(e>t)}function $fe(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=Qfe(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function epe(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function tpe(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var npe=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},zd=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(ope(e),t)}static createFromParsedTheme(e,t){return cpe(e,t)}_cachedMatchRoot=new npe(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>rpe(e.parent,t.parentScopes));return n?new ape(n.fontStyle,n.foreground,n.background):null}},Bd=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function rpe(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!ipe(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function ipe(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var ape=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function ope(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8;break}}let s=null;typeof i.settings.foreground==`string`&&epe(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&epe(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new spe(l,u,e,o,s,c)}}return n}var spe=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},Vd=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(Vd||{});function cpe(e,t){e.sort((e,t)=>{let n=Qfe(e.scope,t.scope);return n!==0||(n=$fe(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new lpe(t),o=new ape(n,a.getId(r),a.getId(i)),s=new dpe(new Hd(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new zd(a,o,s)}var lpe=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},upe=Object.freeze([]),Hd=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||upe,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},dpe=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),Hd.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if($fe(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new Hd(e,t,n,r,i))}},Ud=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!=0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=ppe(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function fpe(e){return e}function ppe(e){return e}function Wd(e,t){let n=[],r=hpe(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(mpe(i)){let e=[];do e.push(i),i=r.next();while(mpe(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function mpe(e){return!!e&&!!e.match(/[\w\.:]+/)}function hpe(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function gpe(e){typeof e.dispose==`function`&&e.dispose()}var Gd=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},_pe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},vpe=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},ype=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Gd(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new vpe;for(let n of e)bpe(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof Gd){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function bpe(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof Gd?qd({baseGrammar:a,selfGrammar:i},r):Kd(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new Gd(e))}function Kd(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];Jd([r],t,n)}}function qd(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Jd(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Jd(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Jd(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?Xfe({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Jd(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=Epe(i);switch(a.kind){case 0:qd({...t,selfGrammar:t.baseGrammar},n);break;case 1:qd(t,n);break;case 2:Kd(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?Kd(a.ruleName,i,n):qd(i,n)}else a.kind===4?n.add(new _pe(a.scopeName,a.ruleName)):n.add(new Gd(a.scopeName));break}}}var xpe=class{kind=0},Spe=class{kind=1},Cpe=class{constructor(e){this.ruleName=e}kind=2},wpe=class{constructor(e){this.scopeName=e}kind=3},Tpe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Epe(e){if(e===`$base`)return new xpe;if(e===`$self`)return new Spe;let t=e.indexOf(`#`);return t===-1?new wpe(e):t===0?new Cpe(e.substring(1)):new Tpe(e.substring(0,t),e.substring(t+1))}var Dpe=/\\(\d+)/,Ope=/\\(\d+)/g,kpe=-1,Ape=-2;function jpe(e){return e}function Mpe(e){return e}var Yd=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Rd.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Rd.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${Zfe(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Rd.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Rd.replaceCaptures(this._contentName,e,t)}},Npe=class extends Yd{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},Ppe=class extends Yd{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new Qd(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new $d,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Fpe=class extends Yd{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new $d,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Xd=class extends Yd{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new Qd(i,this.id),this.beginCaptures=a,this._end=new Qd(o||``,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new $d;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Zd=class extends Yd{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new Qd(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new Qd(o,Ape),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new $d;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new $d,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||``),this._cachedCompiledWhilePatterns}},Ipe=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new Npe(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new Ppe(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=Xfe({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new Fpe(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new Zd(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new Xd(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=Epe(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l)if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository);break}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof Fpe||e instanceof Xd||e instanceof Zd)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},Qd=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source==`string`?this.hasBackReferences=Dpe.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return Ope.lastIndex=0,this.source.replace(Ope,(e,t)=>tpe(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=``,t[i+1]=``,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=``,t[i+1]=`G`,n[i+1]=``,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},$d=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&=(this._cached.dispose(),null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new ef(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new ef(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},ef=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
|
|
1
|
+
(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=`*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:before,:after{--un-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}[data-sd-animate]{animation:var(--sd-animation,sd-fadeIn) var(--sd-duration,.15s) var(--sd-easing,ease) var(--sd-delay,0s) both}@media (prefers-reduced-motion:reduce){[data-sd-animate]{animation:none}}.sd-root>:last-child:after{content:var(--sd-caret,"");vertical-align:baseline;display:inline}@keyframes sd-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes sd-blurIn{0%{opacity:0;filter:blur(4px)}to{opacity:1;filter:blur()}}@keyframes sd-slideUp{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}:host,:root{--pw-hue:328;--pw-accent:#ff40e0;--pw-accent-hi:color-mix(in oklch, var(--pw-accent), white 14%);--pw-accent-link:color-mix(in oklch, var(--pw-accent), white 34%);--pw-accent-08:color-mix(in oklch, var(--pw-accent) 10%, transparent);--pw-accent-20:color-mix(in oklch, var(--pw-accent) 22%, transparent);--pw-accent-line:color-mix(in oklch, var(--pw-accent) 42%, transparent);--pw-panel:oklch(.2 .012 var(--pw-hue));--pw-panel-sunk:oklch(.16 .012 var(--pw-hue));--pw-glass:oklch(.21 .014 var(--pw-hue) / .97);--pw-fill:oklch(100% 0 0/.05);--pw-fill-soft:oklch(100% 0 0/.04);--pw-fill-strong:oklch(100% 0 0/.1);--pw-sunken:oklch(.12 .01 var(--pw-hue) / .5);--pw-text:oklch(.93 .006 var(--pw-hue));--pw-text-hi:oklch(.98 .008 var(--pw-hue));--pw-text-2:oklch(.74 .012 var(--pw-hue));--pw-text-3:oklch(.64 .012 var(--pw-hue));--pw-on-accent:oklch(.22 .03 var(--pw-hue));--pw-agent:oklch(79% .13 188);--pw-danger:oklch(72% .15 25);--pw-danger-line:oklch(72% .15 25/.42);--pw-success:oklch(82% .16 162);--pw-warn:oklch(81% .12 95);--pw-dim:oklch(.5 .02 var(--pw-hue));--pw-line:oklch(100% 0 0/.1);--pw-line-2:oklch(100% 0 0/.18);--pw-line-soft:oklch(100% 0 0/.06);--pw-r-sm:8px;--pw-r-md:12px;--pw-r-lg:18px;--pw-r-pill:999px;--pw-shadow:0 8px 28px oklch(.12 .02 var(--pw-hue) / .45);--pw-shadow-lg:0 16px 44px oklch(.1 .03 var(--pw-hue) / .55);--pw-shadow-hover:0 14px 34px oklch(.1 .03 var(--pw-hue) / .6);--pw-ease:cubic-bezier(.22, 1, .36, 1);--pw-ease-expo:cubic-bezier(.16, 1, .3, 1);--pw-font:system-ui, -apple-system, sans-serif;--pw-mono:ui-monospace, monospace}:root,:host{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--chat-bg:#fff;--chat-panel:#f6f7f9;--chat-glass:#f6f7f9f7;--chat-fill:#0f12180a;--chat-fill-strong:#0f121814;--chat-sunken:#0f12180d;--chat-text:#1d2127;--chat-text-hi:#0b0d10;--chat-text-2:#565b63;--chat-text-3:#6b717a;--chat-accent:#2563eb;--chat-accent-hi:#1d4ed8;--chat-accent-link:#2563eb;--chat-on-accent:#fff;--chat-danger:#dc2626;--chat-danger-line:#dc26266b;--chat-success:#16a34a;--chat-line:#0f12181f;--chat-line-soft:#0f12180f;--chat-radius-sm:8px;--chat-radius-md:12px;--chat-radius-lg:18px;--chat-radius-pill:999px;--chat-shadow-lg:0 16px 44px #0f12182e;--chat-ease:cubic-bezier(.22, 1, .36, 1);--chat-font:system-ui, -apple-system, sans-serif;--chat-mono:ui-monospace, monospace;--chat-text-xs:.6875rem;--chat-text-sm:.75rem;--chat-text-md:.8125rem;--chat-text-lg:1rem;--chat-focus:.125rem solid var(--chat-accent)}.chat-theme-dark{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--chat-bg:#0f1115;--chat-panel:#1a1d23;--chat-glass:#1a1d23f7;--chat-fill:#ffffff0d;--chat-fill-strong:#ffffff1a;--chat-sunken:#00000059;--chat-text:#e6e8ec;--chat-text-hi:#f6f8fb;--chat-text-2:#a9aeb7;--chat-text-3:#7c828c;--chat-accent:#4f8cff;--chat-accent-hi:#6ba0ff;--chat-accent-link:#8db6ff;--chat-on-accent:#0b0d10;--chat-danger:#f1707a;--chat-danger-line:#f1707a6b;--chat-success:#57d9a3;--chat-line:#ffffff1a;--chat-line-soft:#ffffff0f;--chat-shadow-lg:0 16px 44px #0000008c}.chat-theme-dark .shiki,.chat-theme-dark .shiki span,.chat-theme-conciv .shiki,.chat-theme-conciv .shiki span{color:var(--shiki-dark)!important;background-color:var(--shiki-dark-bg)!important}diffs-container{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}.chat-theme-dark diffs-container,.chat-theme-conciv diffs-container{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}.chat-theme-conciv{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--chat-bg:var(--pw-panel);--chat-panel:var(--pw-panel);--chat-glass:var(--pw-glass);--chat-fill:var(--pw-fill);--chat-fill-strong:var(--pw-fill-strong);--chat-sunken:var(--pw-sunken);--chat-text:var(--pw-text);--chat-text-hi:var(--pw-text-hi);--chat-text-2:var(--pw-text-2);--chat-text-3:var(--pw-text-3);--chat-accent:var(--pw-accent);--chat-accent-hi:var(--pw-accent-hi);--chat-accent-link:var(--pw-accent-link);--chat-on-accent:var(--pw-on-accent);--chat-danger:var(--pw-danger);--chat-danger-line:var(--pw-danger-line);--chat-success:var(--pw-success);--chat-line:var(--pw-line);--chat-line-soft:var(--pw-line-soft);--chat-radius-sm:var(--pw-r-sm);--chat-radius-md:var(--pw-r-md);--chat-radius-lg:var(--pw-r-lg);--chat-radius-pill:var(--pw-r-pill);--chat-shadow-lg:var(--pw-shadow-lg);--chat-ease:var(--pw-ease);--chat-font:var(--pw-font);--chat-mono:var(--pw-mono)}:host{all:initial}*{box-sizing:border-box}:where(button,[role=button]):focus-visible{box-shadow:0 0 0 2px var(--pw-panel), 0 0 0 4px var(--pw-accent);outline:none}.pw-fab-rig{width:44px;height:44px;position:relative}.pw-rig-layer{image-rendering:pixelated;will-change:transform;background-position:50%;background-repeat:no-repeat;background-size:contain;position:absolute;inset:0}.pw-rig-head{transform-origin:50% 80%;background-image:url(data:image/png;base64,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)}.pw-rig-eyes{transform-origin:49.6% 58.6%;background-image:url(data:image/png;base64,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)}.pw-rig-antenna{transform-origin:50% 32.8%;background-image:url(data:image/png;base64,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)}.pw-fab-rig[data-working=true] .pw-rig-eyes{animation:1.3s ease-in-out infinite pw-rig-glow}@keyframes pw-rig-glow{0%,to{filter:drop-shadow(0 0 1px var(--pw-accent))}50%{filter:drop-shadow(0 0 5px var(--pw-accent))}}[data-pw-hydrating] [data-pw-msg]{animation:none}[data-pw-panel][data-pw-suppressed],[data-pw-fab][data-pw-suppressed],[data-pw-qt][data-pw-suppressed]{opacity:0;pointer-events:none;transition:opacity .14s var(--pw-ease)}@media (prefers-reduced-motion:reduce){*{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--unx-bg-opacity:100%;--unx-text-opacity:100%;--unx-border-opacity:100%;--unx-stroke-opacity:100%;--unx-translate-x:initial;--unx-translate-y:initial;--unx-translate-z:initial;--unx-ease:initial;--unx-leading:initial;--unx-scale-x:1;--unx-scale-y:1;--unx-scale-z:1;--unx-content:"";--unx-border-bottom-opacity:100%;--unx-border-top-opacity:100%;--unx-border-block-opacity:100%;--unx-border-left-opacity:100%;--unx-border-right-opacity:100%}}@property --unx-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --unx-leading{syntax:"*";inherits:false}@property --unx-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --unx-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --unx-border-block-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --unx-border-bottom-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --unx-border-left-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --unx-border-right-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --unx-border-top-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --unx-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --unx-content{syntax:"*";inherits:false;initial-value:""}@property --unx-inset-ring-color{syntax:"*";inherits:false}@property --unx-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --unx-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --unx-inset-shadow-color{syntax:"*";inherits:false}@property --unx-ring-color{syntax:"*";inherits:false}@property --unx-ring-inset{syntax:"*";inherits:false}@property --unx-ring-offset-color{syntax:"*";inherits:false}@property --unx-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --unx-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --unx-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --unx-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --unx-shadow-color{syntax:"*";inherits:false}@property --unx-translate-x{syntax:"*";inherits:false;initial-value:0}@property --unx-translate-y{syntax:"*";inherits:false;initial-value:0}@property --unx-translate-z{syntax:"*";inherits:false;initial-value:0}@property --unx-scale-x{syntax:"*";inherits:false;initial-value:1}@property --unx-scale-y{syntax:"*";inherits:false;initial-value:1}@property --unx-scale-z{syntax:"*";inherits:false;initial-value:1}@property --unx-ease{syntax:"*";inherits:false}@property --unx-stroke-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --unx-backdrop-blur{syntax:"*";inherits:false}@property --unx-backdrop-brightness{syntax:"*";inherits:false}@property --unx-backdrop-contrast{syntax:"*";inherits:false}@property --unx-backdrop-grayscale{syntax:"*";inherits:false}@property --unx-backdrop-hue-rotate{syntax:"*";inherits:false}@property --unx-backdrop-invert{syntax:"*";inherits:false}@property --unx-backdrop-opacity{syntax:"*";inherits:false}@property --unx-backdrop-saturate{syntax:"*";inherits:false}@property --unx-backdrop-sepia{syntax:"*";inherits:false}@property --unx-numeric-figure{syntax:"*";inherits:false}@property --unx-numeric-fraction{syntax:"*";inherits:false}@property --unx-numeric-spacing{syntax:"*";inherits:false}@property --unx-ordinal{syntax:"*";inherits:false}@property --unx-slashed-zero{syntax:"*";inherits:false}:root,:host{--spacing:.25rem;--radius-pw-pill:var(--pw-r-pill);--font-pw:var(--pw-font);--radius-pw-sm:var(--pw-r-sm);--radius-pw-md:var(--pw-r-md);--radius-pw-lg:var(--pw-r-lg);--fontWeight-medium:500;--tracking-wide:.025em;--font-pw-mono:var(--pw-mono);--radius-none:0;--fontWeight-semibold:600;--leading-none:1;--text-xs-fontSize:.75rem;--text-xs-lineHeight:1rem;--default-transition-timingFunction:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--ease-DEFAULT:cubic-bezier(.4, 0, .2, 1);--fontWeight-normal:400;--ease-pw-expo:var(--pw-ease-expo);--ease-pw:var(--pw-ease);--radius-md:.375rem;--text-sm-fontSize:.875rem;--text-sm-lineHeight:1.25rem;--text-base-fontSize:1rem;--text-base-lineHeight:1.5rem;--colors-white:#fff;--leading-snug:1.375}.prose-pw{max-width:none;--unx-leading:1.45!important;font-size:.875rem!important;line-height:1.45!important}.prose-pw>:first-child{margin-top:calc(var(--spacing) * 0)}.prose-pw>:last-child{margin-bottom:calc(var(--spacing) * 0)}.after\\:accent-sweep:after{background-image:linear-gradient(90deg,transparent,var(--pw-accent),transparent)}.container{width:100%}.shadow-pw{box-shadow:var(--pw-shadow)}.shadow-pw-lg{box-shadow:var(--pw-shadow-lg)}.skel-bg{background-image:linear-gradient(90deg,var(--pw-fill-soft) 25%,var(--pw-fill-strong) 50%,var(--pw-fill-soft) 75%)}.trans-bg{transition:background-color .12s var(--pw-ease)}.trans-bg-tf{transition:background-color .12s var(--pw-ease),transform .1s var(--pw-ease)}.trans-border{transition:border-color .12s var(--pw-ease)}.trans-btn{transition:transform .1s var(--pw-ease),background-color .12s var(--pw-ease),border-color .12s var(--pw-ease),color .12s var(--pw-ease)}.trans-cbb{transition:color .12s var(--pw-ease),border-color .12s var(--pw-ease),background-color .12s var(--pw-ease)}.trans-chip{transition:border-color .12s var(--pw-ease),background-color .12s var(--pw-ease)}.trans-color-bg{transition:color .12s var(--pw-ease),background-color .12s var(--pw-ease)}.trans-input{transition:border-color .12s var(--pw-ease),background-color .12s var(--pw-ease),transform .1s var(--pw-ease)}.trans-lift{transition:transform .14s var(--pw-ease),box-shadow .14s var(--pw-ease)}.trans-pop-in{transition:opacity .2s var(--pw-ease),transform .24s var(--pw-ease-expo),visibility 0s}.trans-pop-out{transition:opacity .2s var(--pw-ease),transform .24s var(--pw-ease-expo),visibility 0s linear .24s}.hover\\:shadow-pw-hover:hover{box-shadow:var(--pw-shadow-hover)}.focus-visible\\:ring-inset-accent:focus-visible{box-shadow:inset 0 0 0 .0625rem var(--pw-accent)}.data-\\[state\\=closed\\]\\:anim-collapse-closed[data-state=closed]{animation:.2s linear pw-collapse-height;animation-timing-function:var(--pw-ease);animation-fill-mode:forwards}.data-\\[state\\=open\\]\\:anim-collapse-open[data-state=open]{animation:.2s linear pw-expand-height;animation-timing-function:var(--pw-ease)}.data-\\[state\\=open\\]\\:anim-combo[data-state=open]{animation:.12s linear fade-in;animation-timing-function:var(--pw-ease)}.anim-compact{animation:.85s linear infinite spin}.anim-dot1{animation:1.2s linear infinite pw-dot}.anim-dot2{animation:1.2s linear .15s infinite pw-dot}.anim-dot3{animation:1.2s linear .3s infinite pw-dot}.anim-fab{animation:.36s linear zoom-in;animation-timing-function:var(--pw-ease-expo);animation-fill-mode:both}.anim-msg{animation:.16s linear fade-in-up;animation-timing-function:var(--pw-ease)}.anim-msg-lg{animation:.18s linear fade-in-up;animation-timing-function:var(--pw-ease)}.anim-now{animation:.22s linear fade-in;animation-timing-function:var(--pw-ease)}.anim-presence-in,.data-\\[state\\=open\\]\\:anim-presence-in[data-state=open]{animation:.18s linear pw-presence-in;animation-timing-function:var(--pw-ease-expo);animation-fill-mode:both}.data-\\[state\\=closed\\]\\:anim-presence-out[data-state=closed]{animation:.12s linear pw-presence-out;animation-timing-function:var(--pw-ease);animation-fill-mode:both}.anim-pulse{animation:1.4s cubic-bezier(.4,0,.6,1) infinite pulse}.anim-rise,.data-\\[state\\=open\\]\\:anim-rise[data-state=open]{animation:.32s linear fade-in-up;animation-timing-function:var(--pw-ease-expo);animation-fill-mode:both}.anim-rise-d{animation:.32s linear 40ms fade-in-up;animation-timing-function:var(--pw-ease-expo);animation-fill-mode:both}.anim-skel,.anim-switching{animation:1.2s cubic-bezier(.4,0,.6,1) infinite pulse}.anim-think-shimmer{animation:1.6s linear infinite pw-think-shimmer}.anim-tool-spin{animation:.7s linear infinite spin}.after\\:anim-fab-ring:after{animation:1.6s linear pw-fab-ring;animation-timing-function:var(--pw-ease);animation-iteration-count:infinite}.prose-pw{color:var(--unx-prose-body);max-width:65ch}.prose-pw :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin:0 0 .5rem}.prose-pw :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose-pw :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-links);font-weight:500;text-decoration:underline}.prose-pw :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-bold);font-weight:600}.prose-pw :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-pw :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-pw :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose-pw :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose-pw :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose-pw :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose-pw :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose-pw :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose-pw :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose-pw :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose-pw :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose-pw :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose-pw :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose-pw :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose-pw :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--unx-prose-counters);font-weight:400}.prose-pw :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--unx-prose-bullets)}.prose-pw :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-headings);margin-top:1.25em;font-weight:600}.prose-pw :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--unx-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose-pw :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--pw-text-2);border-inline-start-width:.25rem;border-inline-start-color:var(--unx-prose-quote-borders);quotes:"“""”""‘""’";padding-inline-start:1em;border-left:2px solid var(--pw-line-2);margin:0 0 .5rem;padding-left:.625rem;font-style:normal;font-weight:400}.prose-pw :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose-pw :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose-pw :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:1.15em;font-weight:800;line-height:1.11111}.prose-pw :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose-pw :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.07em;font-weight:700;line-height:1.33333}.prose-pw :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose-pw :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1em;font-weight:600;line-height:1.6}.prose-pw :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose-pw :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose-pw :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose-pw :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose-pw :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose-pw :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose-pw :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-kbd);box-shadow:0 0 0 1px rgb(var(--unx-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--unx-prose-kbd-shadows) / 10%);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose-pw :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-code);background-color:var(--pw-fill-strong);border-radius:5px;padding:1px 5px;font-size:.875em;font-weight:400}.prose-pw :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose-pw :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose-pw :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-pw :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose-pw :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose-pw :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose-pw :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-pw :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-pw :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose-pw :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-pre-code);background-color:var(--unx-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;padding-inline-start:1.14286em;border-radius:.5625rem;margin:.5rem 0;padding:.625rem .75rem;font-size:.75rem;font-weight:400;line-height:1.5;overflow-x:auto}.prose-pw :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose-pw :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose-pw :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose-pw :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose-pw :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--unx-prose-th-borders)}.prose-pw :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose-pw :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--unx-prose-td-borders)}.prose-pw :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose-pw :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose-pw :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--unx-prose-th-borders)}.prose-pw :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose-pw :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose-pw :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-pw :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--unx-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose-pw{font-size:1rem;line-height:1.75}.prose-pw :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-pw :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin:.125rem 0;padding-left:0}.prose-pw :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-pw :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose-pw :where():not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose-pw :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose-pw :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose-pw :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose-pw :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-pw :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-pw :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-pw :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-pw :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-pw :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-pw :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose-pw :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-pw :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-pw :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose-pw :where():not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-pw :where(ul,ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin:0 0 .5rem;padding-left:1.25rem}.prose-pw :where(h1,h2,h3,h4,h5,h6):not(:where([class~=not-prose],[class~=not-prose] *)){letter-spacing:-.01em;margin:.75rem 0 .375rem;font-weight:600;line-height:1.3}.prose-pw{--unx-prose-body:inherit;--unx-prose-invert-body:oklch(87.2% .01 258.338);--unx-prose-headings:inherit;--unx-prose-invert-headings:white;--unx-prose-lead:oklch(44.6% .03 256.802);--unx-prose-invert-lead:oklch(70.7% .022 261.325);--unx-prose-links:var(--pw-accent-link);--unx-prose-invert-links:white;--unx-prose-bold:inherit;--unx-prose-invert-bold:white;--unx-prose-counters:currentColor;--unx-prose-invert-counters:oklch(70.7% .022 261.325);--unx-prose-bullets:currentColor;--unx-prose-invert-bullets:oklch(44.6% .03 256.802);--unx-prose-hr:var(--pw-line);--unx-prose-invert-hr:oklch(37.3% .034 259.733);--unx-prose-quotes:var(--pw-text-2);--unx-prose-invert-quotes:oklch(96.7% .003 264.542);--unx-prose-quote-borders:var(--pw-line-2);--unx-prose-invert-quote-borders:oklch(37.3% .034 259.733);--unx-prose-captions:oklch(55.1% .027 264.364);--unx-prose-invert-captions:oklch(70.7% .022 261.325);--unx-prose-kbd:oklch(21% .034 264.665);--unx-prose-invert-kbd:white;--unx-prose-kbd-shadows:oklch(21% .034 264.665);--unx-prose-invert-kbd-shadows:white;--unx-prose-code:inherit;--unx-prose-invert-code:white;--unx-prose-pre-code:oklch(92.8% .006 264.531);--unx-prose-invert-pre-code:oklch(87.2% .01 258.338);--unx-prose-pre-bg:var(--pw-sunken);--unx-prose-invert-pre-bg:#00000080;--unx-prose-th-borders:oklch(87.2% .01 258.338);--unx-prose-invert-th-borders:oklch(44.6% .03 256.802);--unx-prose-td-borders:oklch(92.8% .006 264.531);--unx-prose-invert-td-borders:oklch(37.3% .034 259.733)}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.text-\\[0\\.625rem\\]{font-size:.625rem}.text-\\[0\\.6875rem\\]{font-size:.6875rem}.text-\\[0\\.71875rem\\]{font-size:.71875rem}.text-\\[0\\.75rem\\]{font-size:.75rem}.text-\\[0\\.8125rem\\]{font-size:.8125rem}.text-\\[0\\.875rem\\]{font-size:.875rem}.text-\\[1\\.125rem\\]{font-size:1.125rem}.text-\\[1\\.375rem\\]{font-size:1.375rem}.text-\\[length\\:var\\(--chat-text-md\\)\\]{font-size:var(--chat-text-md)}.text-\\[length\\:var\\(--chat-text-sm\\)\\]{font-size:var(--chat-text-sm)}.text-\\[length\\:var\\(--chat-text-xs\\)\\]{font-size:var(--chat-text-xs)}.text-base{font-size:var(--text-base-fontSize);line-height:var(--unx-leading,var(--text-base-lineHeight))}.text-sm{font-size:var(--text-sm-fontSize);line-height:var(--unx-leading,var(--text-sm-lineHeight))}.text-xs{font-size:var(--text-xs-fontSize);line-height:var(--unx-leading,var(--text-xs-lineHeight))}.\\[\\&_\\[data-mention\\]\\]\\:text-pw-accent-hi [data-mention],.text-pw-accent-hi{color:color-mix(in srgb, var(--pw-accent-hi) var(--unx-text-opacity), transparent)}.data-\\[highlighted\\]\\:text-pw-danger[data-highlighted],.text-pw-danger{color:color-mix(in srgb, var(--pw-danger) var(--unx-text-opacity), transparent)}.data-\\[highlighted\\]\\:text-pw-text-hi[data-highlighted],.data-\\[state\\=open\\]\\:text-pw-text-hi[data-state=open],.text-pw-text-hi{color:color-mix(in srgb, var(--pw-text-hi) var(--unx-text-opacity), transparent)}.data-\\[highlighted\\]\\:text-pw-text[data-highlighted],.data-\\[selected\\]\\:text-pw-text[data-selected],.text-pw-text{color:color-mix(in srgb, var(--pw-text) var(--unx-text-opacity), transparent)}.data-\\[selected\\]\\:text-pw-accent[data-selected],.text-pw-accent{color:color-mix(in srgb, var(--pw-accent) var(--unx-text-opacity), transparent)}.text-pw-accent-link{color:color-mix(in srgb, var(--pw-accent-link) var(--unx-text-opacity), transparent)}.text-pw-on-accent{color:color-mix(in srgb, var(--pw-on-accent) var(--unx-text-opacity), transparent)}.text-pw-success{color:color-mix(in srgb, var(--pw-success) var(--unx-text-opacity), transparent)}.text-pw-text-2{color:color-mix(in srgb, var(--pw-text-2) var(--unx-text-opacity), transparent)}.text-pw-text-3{color:color-mix(in srgb, var(--pw-text-3) var(--unx-text-opacity), transparent)}.text-transparent{color:#0000}.hover\\:text-pw-danger:hover{color:color-mix(in srgb, var(--pw-danger) var(--unx-text-opacity), transparent)}.hover\\:text-pw-text-2:hover{color:color-mix(in srgb, var(--pw-text-2) var(--unx-text-opacity), transparent)}.hover\\:text-pw-text-hi:hover{color:color-mix(in srgb, var(--pw-text-hi) var(--unx-text-opacity), transparent)}.hover\\:text-pw-text:hover{color:color-mix(in srgb, var(--pw-text) var(--unx-text-opacity), transparent)}.placeholder\\:text-pw-text-3::placeholder{color:color-mix(in srgb, var(--pw-text-3) var(--unx-text-opacity), transparent)}.leading-\\[1\\.4\\]{--unx-leading:1.4;line-height:1.4}.leading-\\[1\\.45\\]{--unx-leading:1.45;line-height:1.45}.leading-\\[1\\.5\\]{--unx-leading:1.5;line-height:1.5}.leading-none{--unx-leading:var(--leading-none);line-height:var(--leading-none)}.leading-snug{--unx-leading:var(--leading-snug);line-height:var(--leading-snug)}.tracking-\\[-0\\.015em\\]{--unx-tracking:-.015em;letter-spacing:-.015em}.tracking-\\[-0\\.01em\\]{--unx-tracking:-.01em;letter-spacing:-.01em}.tracking-\\[0\\.02em\\]{--unx-tracking:.02em;letter-spacing:.02em}.tracking-\\[0\\.04em\\]{--unx-tracking:.04em;letter-spacing:.04em}.tracking-\\[0\\.06em\\]{--unx-tracking:.06em;letter-spacing:.06em}.tracking-\\[0\\.08em\\]{--unx-tracking:.08em;letter-spacing:.08em}.tracking-wide{--unx-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.font-medium{--unx-font-weight:var(--fontWeight-medium);font-weight:var(--fontWeight-medium)}.font-normal{--unx-font-weight:var(--fontWeight-normal);font-weight:var(--fontWeight-normal)}.font-pw{font-family:var(--font-pw)}.font-pw-mono{font-family:var(--font-pw-mono)}.font-semibold{--unx-font-weight:var(--fontWeight-semibold);font-weight:var(--fontWeight-semibold)}.tab{tab-size:4}.m-0{margin:calc(var(--spacing) * 0)}.m-3{margin:calc(var(--spacing) * 3)}.m-auto{margin:auto}.mx-0\\.5{margin-inline:calc(var(--spacing) * .5)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing) * 1)}.my-1\\.5{margin-block:calc(var(--spacing) * 1.5)}.-ml-1\\.5{margin-left:calc(var(--spacing) * -1.5)}.-mt-1{margin-top:calc(var(--spacing) * -1)}.mb-0\\.75{margin-bottom:calc(var(--spacing) * .75)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3\\.5{margin-bottom:calc(var(--spacing) * 3.5)}.me{margin-inline-end:calc(var(--spacing) * 4)}.ml-auto{margin-left:auto}.ms{margin-inline-start:calc(var(--spacing) * 4)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-1\\.75{margin-top:calc(var(--spacing) * 1.75)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-px{margin-top:1px}.p-0{padding:calc(var(--spacing) * 0)}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-1,.p1{padding:calc(var(--spacing) * 1)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-10{padding:calc(var(--spacing) * 10)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\\.5{padding:calc(var(--spacing) * 2.5)}.p-2\\.75{padding:calc(var(--spacing) * 2.75)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.\\[\\&_\\[data-mention\\]\\]\\:px-0\\.5 [data-mention]{padding-inline:calc(var(--spacing) * .5)}.px,.px-4{padding-inline:calc(var(--spacing) * 4)}.px-\\[0\\.3125rem\\]{padding-inline:.3125rem}.px-\\[0\\.8125rem\\]{padding-inline:.8125rem}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.25{padding-inline:calc(var(--spacing) * 2.25)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-2\\.75{padding-inline:calc(var(--spacing) * 2.75)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4\\.5{padding-inline:calc(var(--spacing) * 4.5)}.py-\\[0\\.4375rem\\]{padding-block:.4375rem}.py-\\[0\\.5625rem\\]{padding-block:.5625rem}.py-0{padding-block:calc(var(--spacing) * 0)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-1\\.75{padding-block:calc(var(--spacing) * 1.75)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-px{padding-block:1px}.pb-0\\.5{padding-bottom:calc(var(--spacing) * .5)}.pb-1{padding-bottom:calc(var(--spacing) * 1)}.pb-1\\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-2\\.5{padding-bottom:calc(var(--spacing) * 2.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-2\\.5{padding-left:calc(var(--spacing) * 2.5)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-3\\.5{padding-left:calc(var(--spacing) * 3.5)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pr-\\[0\\.4375rem\\]{padding-right:.4375rem}.pr-1\\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2\\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-9{padding-right:calc(var(--spacing) * 9)}.pt-0\\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:calc(var(--spacing) * 1)}.pt-1\\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.text-center{text-align:center}.text-left{text-align:left}.text-start{text-align:start}.outline{outline-style:var(--unx-outline-style);outline-width:1px}.outline-none,.focus\\:outline-none:focus,.focus-visible\\:outline-none:focus-visible{--unx-outline-style:none;outline-style:none}.will-change-transform{will-change:transform}.list-none{list-style-type:none}.b,.border{border-width:1px}.border-2,.after\\:border-2:after{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.first\\:border-t-0:first-child{border-top-width:0}.border-pw-accent-line{border-color:color-mix(in srgb, var(--pw-accent-line) var(--unx-border-opacity), transparent)}.border-pw-danger-line{border-color:color-mix(in srgb, var(--pw-danger-line) var(--unx-border-opacity), transparent)}.border-pw-line,.data-\\[state\\=open\\]\\:border-pw-line[data-state=open]{border-color:color-mix(in srgb, var(--pw-line) var(--unx-border-opacity), transparent)}.border-pw-line-2{border-color:color-mix(in srgb, var(--pw-line-2) var(--unx-border-opacity), transparent)}.border-pw-line-soft{border-color:color-mix(in srgb, var(--pw-line-soft) var(--unx-border-opacity), transparent)}.border-transparent{border-color:#0000}.border-white{border-color:color-mix(in srgb, var(--colors-white) var(--unx-border-opacity), transparent)}.hover\\:border-pw-accent:hover{border-color:color-mix(in srgb, var(--pw-accent) var(--unx-border-opacity), transparent)}.hover\\:border-pw-danger:hover{border-color:color-mix(in srgb, var(--pw-danger) var(--unx-border-opacity), transparent)}.hover\\:border-pw-line:hover{border-color:color-mix(in srgb, var(--pw-line) var(--unx-border-opacity), transparent)}.focus\\:border-pw-accent:focus,.after\\:border-pw-accent:after{border-color:color-mix(in srgb, var(--pw-accent) var(--unx-border-opacity), transparent)}.border-y-pw-line{border-block-color:color-mix(in srgb, var(--pw-line) var(--unx-border-block-opacity), transparent);--unx-border-block-opacity:var(--unx-border-opacity)}.border-b-pw-line{border-bottom-color:color-mix(in srgb, var(--pw-line) var(--unx-border-bottom-opacity), transparent);--unx-border-bottom-opacity:var(--unx-border-opacity)}.border-b-pw-line-soft{border-bottom-color:color-mix(in srgb, var(--pw-line-soft) var(--unx-border-bottom-opacity), transparent);--unx-border-bottom-opacity:var(--unx-border-opacity)}.border-l-\\[0\\.1875rem\\]{border-left-color:color-mix(in oklab, .1875rem var(--unx-border-left-opacity), transparent)}.border-l-pw-accent{border-left-color:color-mix(in srgb, var(--pw-accent) var(--unx-border-left-opacity), transparent);--unx-border-left-opacity:var(--unx-border-opacity)}.border-r-pw-line{border-right-color:color-mix(in srgb, var(--pw-line) var(--unx-border-right-opacity), transparent);--unx-border-right-opacity:var(--unx-border-opacity)}.border-t-pw-line-soft{border-top-color:color-mix(in srgb, var(--pw-line-soft) var(--unx-border-top-opacity), transparent);--unx-border-top-opacity:var(--unx-border-opacity)}.\\[\\&_\\[data-mention\\]\\]\\:rounded-pw-sm [data-mention],.rounded-pw-sm{border-radius:var(--radius-pw-sm)}.\\[\\&\\>\\*\\]\\:\\!rounded-none>*{border-radius:var(--radius-none)!important}.rounded-\\[0\\.3125rem\\]{border-radius:.3125rem}.rounded-\\[0\\.4375rem\\]{border-radius:.4375rem}.rounded-\\[0\\.5625rem\\]{border-radius:.5625rem}.rounded-\\[50\\%_50\\%_50\\%_0\\]{border-radius:50% 50% 50% 0}.rounded-\\[50\\%\\]{border-radius:50%}.rounded-\\[var\\(--chat-radius-lg\\)\\]{border-radius:var(--chat-radius-lg)}.rounded-\\[var\\(--chat-radius-md\\)\\]{border-radius:var(--chat-radius-md)}.rounded-\\[var\\(--chat-radius-pill\\)\\]{border-radius:var(--chat-radius-pill)}.rounded-\\[var\\(--chat-radius-sm\\)\\]{border-radius:var(--chat-radius-sm)}.rounded-full{border-radius:3.40282e38px}.rounded-md{border-radius:var(--radius-md)}.rounded-none{border-radius:var(--radius-none)}.rounded-pw-lg{border-radius:var(--radius-pw-lg)}.rounded-pw-md{border-radius:var(--radius-pw-md)}.rounded-pw-pill,.after\\:rounded-pw-pill:after{border-radius:var(--radius-pw-pill)}.rounded-b-pw-lg{border-bottom-left-radius:var(--radius-pw-lg);border-bottom-right-radius:var(--radius-pw-lg)}.\\[\\&\\>\\*\\]\\:\\!border-none>*{--unx-border-style:none!important;border-style:none!important}.\\[\\&_\\[data-mention\\]\\]\\:bg-pw-accent-08 [data-mention],.bg-pw-accent-08,.data-\\[selected\\]\\:bg-pw-accent-08[data-selected]{background-color:color-mix(in srgb, var(--pw-accent-08) var(--unx-bg-opacity), transparent)}.aria-selected\\:bg-pw-fill[aria-selected=true],.bg-pw-fill,.data-\\[highlighted\\]\\:bg-pw-fill[data-highlighted],.data-\\[state\\=open\\]\\:bg-pw-fill[data-state=open]{background-color:color-mix(in srgb, var(--pw-fill) var(--unx-bg-opacity), transparent)}.bg-\\[rgba\\(0\\,0\\,0\\,0\\.55\\)\\]{background-color:color-mix(in oklab, #0000008c var(--unx-bg-opacity), transparent)}.bg-pw-accent,.data-\\[state\\=checked\\]\\:bg-pw-accent[data-state=checked]{background-color:color-mix(in srgb, var(--pw-accent) var(--unx-bg-opacity), transparent)}.bg-pw-accent-link{background-color:color-mix(in srgb, var(--pw-accent-link) var(--unx-bg-opacity), transparent)}.bg-pw-danger{background-color:color-mix(in srgb, var(--pw-danger) var(--unx-bg-opacity), transparent)}.bg-pw-dim{background-color:color-mix(in srgb, var(--pw-dim) var(--unx-bg-opacity), transparent)}.bg-pw-fill-soft,.data-\\[state\\=open\\]\\:bg-pw-fill-soft[data-state=open]{background-color:color-mix(in srgb, var(--pw-fill-soft) var(--unx-bg-opacity), transparent)}.bg-pw-fill-strong,.data-\\[active\\]\\:bg-pw-fill-strong[data-active],.data-\\[highlighted\\]\\:bg-pw-fill-strong[data-highlighted]{background-color:color-mix(in srgb, var(--pw-fill-strong) var(--unx-bg-opacity), transparent)}.bg-pw-glass{background-color:color-mix(in srgb, var(--pw-glass) var(--unx-bg-opacity), transparent)}.bg-pw-line{background-color:color-mix(in srgb, var(--pw-line) var(--unx-bg-opacity), transparent)}.bg-pw-line-2{background-color:color-mix(in srgb, var(--pw-line-2) var(--unx-bg-opacity), transparent)}.bg-pw-panel{background-color:color-mix(in srgb, var(--pw-panel) var(--unx-bg-opacity), transparent)}.bg-pw-panel-60{background-color:color-mix(in srgb, color-mix(in srgb, var(--pw-panel) 60%, transparent) var(--unx-bg-opacity), transparent)}.bg-pw-panel-sunk{background-color:color-mix(in srgb, var(--pw-panel-sunk) var(--unx-bg-opacity), transparent)}.bg-pw-success{background-color:color-mix(in srgb, var(--pw-success) var(--unx-bg-opacity), transparent)}.bg-pw-sunken{background-color:color-mix(in srgb, var(--pw-sunken) var(--unx-bg-opacity), transparent)}.bg-pw-text{background-color:color-mix(in srgb, var(--pw-text) var(--unx-bg-opacity), transparent)}.bg-pw-text-2{background-color:color-mix(in srgb, var(--pw-text-2) var(--unx-bg-opacity), transparent)}.bg-pw-warn{background-color:color-mix(in srgb, var(--pw-warn) var(--unx-bg-opacity), transparent)}.bg-transparent{background-color:#0000}.data-\\[state\\=checked\\]\\:bg-pw-on-accent[data-state=checked]{background-color:color-mix(in srgb, var(--pw-on-accent) var(--unx-bg-opacity), transparent)}.hover\\:before\\:bg-pw-accent-line:hover:before{background-color:color-mix(in srgb, var(--pw-accent-line) var(--unx-bg-opacity), transparent)}.hover\\:bg-pw-accent-08:hover{background-color:color-mix(in srgb, var(--pw-accent-08) var(--unx-bg-opacity), transparent)}.hover\\:bg-pw-accent-20:hover{background-color:color-mix(in srgb, var(--pw-accent-20) var(--unx-bg-opacity), transparent)}.hover\\:bg-pw-accent-hi:hover{background-color:color-mix(in srgb, var(--pw-accent-hi) var(--unx-bg-opacity), transparent)}.hover\\:bg-pw-danger-14:hover{background-color:color-mix(in srgb, color-mix(in oklch, var(--pw-danger) 14%, transparent) var(--unx-bg-opacity), transparent)}.hover\\:bg-pw-fill-soft:hover{background-color:color-mix(in srgb, var(--pw-fill-soft) var(--unx-bg-opacity), transparent)}.hover\\:bg-pw-fill-strong:hover{background-color:color-mix(in srgb, var(--pw-fill-strong) var(--unx-bg-opacity), transparent)}.hover\\:bg-pw-fill:hover{background-color:color-mix(in srgb, var(--pw-fill) var(--unx-bg-opacity), transparent)}.hover\\:bg-pw-line:hover{background-color:color-mix(in srgb, var(--pw-line) var(--unx-bg-opacity), transparent)}.hover\\:bg-pw-panel:hover{background-color:color-mix(in srgb, var(--pw-panel) var(--unx-bg-opacity), transparent)}.hover\\:bg-pw-text-3:hover{background-color:color-mix(in srgb, var(--pw-text-3) var(--unx-bg-opacity), transparent)}.focus-visible\\:bg-pw-accent-20:focus-visible{background-color:color-mix(in srgb, var(--pw-accent-20) var(--unx-bg-opacity), transparent)}.focus-visible\\:bg-pw-accent:focus-visible,.before\\:bg-pw-accent:before{background-color:color-mix(in srgb, var(--pw-accent) var(--unx-bg-opacity), transparent)}.before\\:bg-pw-line-soft:before{background-color:color-mix(in srgb, var(--pw-line-soft) var(--unx-bg-opacity), transparent)}.before\\:bg-pw-line:before{background-color:color-mix(in srgb, var(--pw-line) var(--unx-bg-opacity), transparent)}.after\\:bg-pw-line-soft:after{background-color:color-mix(in srgb, var(--pw-line-soft) var(--unx-bg-opacity), transparent)}.\\[\\&\\[aria-disabled\\=true\\]\\]\\:opacity-\\[0\\.55\\][aria-disabled=true]{opacity:.55}.\\[\\&\\[aria-disabled\\=true\\]\\]\\:opacity-50[aria-disabled=true],.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.\\[\\&\\[data-hover\\]\\]\\:opacity-100[data-hover],.\\[\\&\\[data-scrolling\\]\\]\\:opacity-100[data-scrolling],.opacity-100{opacity:1}.\\[\\&\\[hidden\\]\\]\\:opacity-0[hidden],.opacity-0{opacity:0}.\\[\\&\\>\\*\\]\\:\\!opacity-100>*{opacity:1!important}.opacity-\\[0\\.62\\]{opacity:.62}.opacity-30{opacity:.3}.opacity-45{opacity:.45}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.group:hover .group-hover\\:opacity-90,.hover\\:opacity-90:hover{opacity:.9}.disabled\\:opacity-40:disabled{opacity:.4}.disabled\\:opacity-50:disabled{opacity:.5}.before\\:opacity-90:before{opacity:.9}.after\\:opacity-55:after{opacity:.55}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.data-\\[state\\=open\\]\\:flex[data-state=open],.flex{display:flex}.\\[\\&\\[hidden\\]\\]\\:\\[display\\:inline-flex\\][hidden],.data-\\[state\\=checked\\]\\:inline-flex[data-state=checked],.inline-flex{display:inline-flex}.flex-\\[0_0_0\\.4375rem\\]{flex:0 0 .4375rem}.flex-\\[1_1_auto\\],.flex-auto{flex:auto}.flex-1,.before\\:flex-1:before,.after\\:flex-1:after{flex:1}.flex-none{flex:none}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\\.25{gap:calc(var(--spacing) * 1.25)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-1\\.75{gap:calc(var(--spacing) * 1.75)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\\.25{gap:calc(var(--spacing) * 2.25)}.gap-2\\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-px{gap:1px}.grid{display:grid}.size-\\[1\\.375rem\\]{width:1.375rem;height:1.375rem}.size-\\[1em\\]{width:1em;height:1em}.size-1\\.75{width:calc(var(--spacing) * 1.75);height:calc(var(--spacing) * 1.75)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-13{width:calc(var(--spacing) * 13);height:calc(var(--spacing) * 13)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-2\\.75{width:calc(var(--spacing) * 2.75);height:calc(var(--spacing) * 2.75)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\\.25{width:calc(var(--spacing) * 3.25);height:calc(var(--spacing) * 3.25)}.size-3\\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-5\\.5{width:calc(var(--spacing) * 5.5);height:calc(var(--spacing) * 5.5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-8\\.5{width:calc(var(--spacing) * 8.5);height:calc(var(--spacing) * 8.5)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-9\\.5{width:calc(var(--spacing) * 9.5);height:calc(var(--spacing) * 9.5)}.size-full{width:100%;height:100%}.\\[\\&\\[data-orientation\\=horizontal\\]\\]\\:h-2[data-orientation=horizontal],.h-2,.h2{height:calc(var(--spacing) * 2)}.\\[\\&\\[data-orientation\\=horizontal\\]\\]\\:h-full[data-orientation=horizontal],.h-full{height:100%}.\\[\\&\\[data-orientation\\=horizontal\\]\\]\\:w-auto[data-orientation=horizontal],.w-auto{width:auto}.\\[\\&\\[data-orientation\\=vertical\\]\\]\\:w-2[data-orientation=vertical],.w-2{width:calc(var(--spacing) * 2)}.\\[\\&\\>\\*\\]\\:\\!h-full>*{height:100%!important}.\\[\\&\\>\\*\\]\\:\\!max-h-none>*{max-height:none!important}.\\[\\&\\>\\*\\]\\:\\!w-full>*{width:100%!important}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-1\\.5{height:calc(var(--spacing) * 1.5)}.h-140{height:calc(var(--spacing) * 140)}.h-32{height:calc(var(--spacing) * 32)}.h-4,.h4{height:calc(var(--spacing) * 4)}.h-4\\.5{height:calc(var(--spacing) * 4.5)}.h-4\\.75{height:calc(var(--spacing) * 4.75)}.h-40{height:calc(var(--spacing) * 40)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-96{height:calc(var(--spacing) * 96)}.h-px{height:1px}.h1{height:calc(var(--spacing) * 1)}.h3{height:calc(var(--spacing) * 3)}.h5{height:calc(var(--spacing) * 5)}.h6{height:calc(var(--spacing) * 6)}.max-h-\\[13\\.75rem\\]{max-height:13.75rem}.max-h-\\[calc\\(100vh-7\\.5rem\\)\\]{max-height:calc(100vh - 7.5rem)}.max-h-30{max-height:calc(var(--spacing) * 30)}.max-h-32{max-height:calc(var(--spacing) * 32)}.max-h-55{max-height:calc(var(--spacing) * 55)}.max-h-56{max-height:calc(var(--spacing) * 56)}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-90{max-height:calc(var(--spacing) * 90)}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-w-\\[80\\%\\]{max-width:80%}.max-w-\\[80vw\\]{max-width:80vw}.max-w-\\[calc\\(100vw-2\\.5rem\\)\\]{max-width:calc(100vw - 2.5rem)}.max-w-\\[calc\\(100vw-2rem\\)\\]{max-width:calc(100vw - 2rem)}.max-w-42{max-width:calc(var(--spacing) * 42)}.max-w-60{max-width:calc(var(--spacing) * 60)}.max-w-64{max-width:calc(var(--spacing) * 64)}.max-w-full{max-width:100%}.min-h-\\[2\\.375rem\\]{min-height:2.375rem}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-20{min-height:calc(var(--spacing) * 20)}.min-h-6{min-height:calc(var(--spacing) * 6)}.min-h-7{min-height:calc(var(--spacing) * 7)}.min-h-8{min-height:calc(var(--spacing) * 8)}.min-h-9{min-height:calc(var(--spacing) * 9)}.min-h-9\\.5{min-height:calc(var(--spacing) * 9.5)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-32{min-width:calc(var(--spacing) * 32)}.min-w-4{min-width:calc(var(--spacing) * 4)}.min-w-44{min-width:calc(var(--spacing) * 44)}.min-w-45{min-width:calc(var(--spacing) * 45)}.min-w-55{min-width:calc(var(--spacing) * 55)}.w-\\[24rem\\]{width:24rem}.w-\\[30rem\\]{width:30rem}.w-\\[34rem\\]{width:34rem}.w-\\[clamp\\(20rem\\,28vw\\,25rem\\)\\]{width:clamp(20rem,28vw,25rem)}.w-0\\.5{width:calc(var(--spacing) * .5)}.w-1\\.5{width:calc(var(--spacing) * 1.5)}.w-11\\.5{width:calc(var(--spacing) * 11.5)}.w-120{width:calc(var(--spacing) * 120)}.w-60{width:calc(var(--spacing) * 60)}.w-64{width:calc(var(--spacing) * 64)}.w-70{width:calc(var(--spacing) * 70)}.w-72{width:calc(var(--spacing) * 72)}.w-8{width:calc(var(--spacing) * 8)}.w-80{width:calc(var(--spacing) * 80)}.w-85{width:calc(var(--spacing) * 85)}.w-90{width:calc(var(--spacing) * 90)}.w-96{width:calc(var(--spacing) * 96)}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.before\\:h-0\\.5:before{height:calc(var(--spacing) * .5)}.before\\:h-px:before,.after\\:h-px:after{height:1px}.inline{display:inline}.block,.data-\\[state\\=open\\]\\:block[data-state=open]{display:block}.inline-block{display:inline-block}.contents{display:contents}.\\[\\&_\\[role\\=separator\\]\\]\\:hidden [role=separator],.\\[\\&\\[data-orientation\\=horizontal\\]\\:not\\(\\[data-overflow-x\\]\\)\\]\\:hidden[data-orientation=horizontal]:not([data-overflow-x]),.\\[\\&\\[data-orientation\\=vertical\\]\\:not\\(\\[data-overflow-y\\]\\)\\]\\:hidden[data-orientation=vertical]:not([data-overflow-y]),.hidden{display:none}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:hidden::-webkit-scrollbar{display:none}.empty\\:hidden:empty{display:none}.\\[\\&\\>\\*\\]\\:\\!visible>*{visibility:visible!important}.visible{visibility:visible}.invisible{visibility:hidden}.cursor-default,.disabled\\:cursor-default:disabled{cursor:default}.cursor-pointer{cursor:pointer}.cursor-progress{cursor:progress}.cursor-crosshair{cursor:crosshair}.\\[\\&\\[aria-disabled\\=true\\]\\]\\:cursor-not-allowed[aria-disabled=true],.data-\\[disabled\\]\\:cursor-not-allowed[data-disabled],.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-col-resize{cursor:col-resize}.cursor-ew-resize{cursor:ew-resize}.cursor-ns-resize{cursor:ns-resize}.\\[\\&\\[data-hover\\]\\]\\:pointer-events-auto[data-hover],.\\[\\&\\[data-scrolling\\]\\]\\:pointer-events-auto[data-scrolling],.pointer-events-auto{pointer-events:auto}.\\[\\&\\>\\*\\]\\:\\!pointer-events-auto>*{pointer-events:auto!important}.pointer-events-none{pointer-events:none}.resize{resize:both}.resize-none{resize:none}.select-none{-webkit-user-select:none;user-select:none}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.before\\:content-\\[\\'\\'\\]:before,.after\\:content-\\[\\'\\'\\]:after{--unx-content:"";content:var(--unx-content)}.\\[\\&_\\[data-model-name\\]\\]\\:truncate [data-model-name],.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.\\[text-transform\\:uppercase\\],.uppercase{text-transform:uppercase}.ring,.focus-ring:focus{--unx-ring-shadow:var(--unx-ring-inset,) 0 0 0 calc(1px + var(--unx-ring-offset-width)) var(--unx-ring-color,currentColor);box-shadow:var(--unx-inset-shadow), var(--unx-inset-ring-shadow), var(--unx-ring-offset-shadow), var(--unx-ring-shadow), var(--unx-shadow)}.\\[\\&\\>\\*\\]\\:\\!shadow-none>*{--unx-shadow:0 0 var(--unx-shadow-color,#0000)!important;box-shadow:var(--unx-inset-shadow), var(--unx-inset-ring-shadow), var(--unx-ring-offset-shadow), var(--unx-ring-shadow), var(--unx-shadow)!important}.shadow-\\[0_0_0_1px_var\\(--pw-accent-line\\)\\,0_0_16px_var\\(--pw-accent-20\\)\\]{--unx-shadow:0 0 0 1px var(--pw-accent-line),0 0 16px var(--pw-accent-20);box-shadow:var(--unx-inset-shadow), var(--unx-inset-ring-shadow), var(--unx-ring-offset-shadow), var(--unx-ring-shadow), var(--unx-shadow)}.shadow-\\[0_1px_4px_rgba\\(0\\,0\\,0\\,0\\.3\\)\\]{--unx-shadow:0 1px 4px var(--unx-shadow-color,#0000004d);box-shadow:var(--unx-inset-shadow), var(--unx-inset-ring-shadow), var(--unx-ring-offset-shadow), var(--unx-ring-shadow), var(--unx-shadow)}.shadow-\\[var\\(--chat-shadow-lg\\)\\]{--unx-shadow:var(--chat-shadow-lg);box-shadow:var(--unx-inset-shadow), var(--unx-inset-ring-shadow), var(--unx-ring-offset-shadow), var(--unx-ring-shadow), var(--unx-shadow)}.\\[transform-origin\\:top_left\\],.origin-top-left{transform-origin:0 0}.-translate-x-1\\/2{--unx-translate-x:-50%;translate:var(--unx-translate-x) var(--unx-translate-y)}.-translate-y-\\[101\\%\\]{--unx-translate-y:-101%;translate:var(--unx-translate-x) var(--unx-translate-y)}.-translate-y-full{--unx-translate-y:-100%;translate:var(--unx-translate-x) var(--unx-translate-y)}.data-\\[state\\=checked\\]\\:translate-x-3\\.5[data-state=checked]{--unx-translate-x:calc(var(--spacing) * 3.5);translate:var(--unx-translate-x) var(--unx-translate-y)}.translate-x-0\\.5{--unx-translate-x:calc(var(--spacing) * .5);translate:var(--unx-translate-x) var(--unx-translate-y)}.translate-y-0{--unx-translate-y:calc(var(--spacing) * 0);translate:var(--unx-translate-x) var(--unx-translate-y)}.\\[\\&\\:active\\:not\\(\\:disabled\\)\\]\\:scale-\\[0\\.92\\]:active:not(:disabled){--unx-scale-x:.92;--unx-scale-y:.92;scale:var(--unx-scale-x) var(--unx-scale-y)}.active\\:scale-\\[0\\.97\\]:active{--unx-scale-x:.97;--unx-scale-y:.97;scale:var(--unx-scale-x) var(--unx-scale-y)}.transform{transform:var(--unx-rotate-x) var(--unx-rotate-y) var(--unx-rotate-z) var(--unx-skew-x) var(--unx-skew-y)}.\\[\\&\\>\\*\\]\\:\\!transform-none>*{transform:none!important}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,--un-gradient-from,--un-gradient-via,--un-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--unx-ease,var(--default-transition-timingFunction));transition-duration:var(--unx-duration,var(--default-transition-duration))}.transition-\\[color\\,background-color\\]{transition-property:color,background-color;transition-timing-function:var(--unx-ease,var(--default-transition-timingFunction));transition-duration:var(--unx-duration,var(--default-transition-duration))}.transition-\\[left\\,top\\,width\\,height\\]{transition-property:left,top,width,height;transition-timing-function:var(--unx-ease,var(--default-transition-timingFunction));transition-duration:var(--unx-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--unx-ease,var(--default-transition-timingFunction));transition-duration:var(--unx-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--unx-ease,var(--default-transition-timingFunction));transition-duration:var(--unx-duration,var(--default-transition-duration))}.before\\:transition-\\[background-color\\]:before{transition-property:background-color;transition-timing-function:var(--unx-ease,var(--default-transition-timingFunction));transition-duration:var(--unx-duration,var(--default-transition-duration))}.duration-\\[120ms\\]{--unx-duration:.12s;transition-duration:.12s}.duration-\\[160ms\\]{--unx-duration:.16s;transition-duration:.16s}.duration-\\[80ms\\]{--unx-duration:80ms;transition-duration:80ms}.duration-300{--unx-duration:.3s;transition-duration:.3s}.before\\:duration-\\[120ms\\]:before{--unx-duration:.12s;transition-duration:.12s}.ease{--unx-ease:var(--ease-DEFAULT);transition-timing-function:var(--ease-DEFAULT)}.ease-pw{--unx-ease:var(--ease-pw);transition-timing-function:var(--ease-pw)}.ease-pw-expo{--unx-ease:var(--ease-pw-expo);transition-timing-function:var(--ease-pw-expo)}.before\\:ease-pw:before{--unx-ease:var(--ease-pw);transition-timing-function:var(--ease-pw)}.transition-none{transition:none}.\\[--size\\:1\\.375rem\\]{--size:1.375rem}.\\[--thickness\\:0\\.15625rem\\]{--thickness:.15625rem}.\\[\\&_\\.tiptap\\]\\:\\[outline\\:none\\] .tiptap,.\\[outline\\:none\\]{outline:none}.\\[\\&_\\[data-model-effort\\]\\]\\:\\[color\\:var\\(--chat-text-3\\)\\] [data-model-effort],.\\[color\\:var\\(--chat-text-3\\)\\],.data-\\[disabled\\]\\:\\[color\\:var\\(--chat-text-3\\)\\][data-disabled]{color:var(--chat-text-3)}.\\[\\&\\:hover\\:not\\(\\:disabled\\)\\]\\:\\[background\\:var\\(--chat-accent-hi\\)\\]:hover:not(:disabled){background:var(--chat-accent-hi)}.\\[\\&\\:not\\(\\:first-child\\)\\]\\:\\[border-top\\:1px_solid_var\\(--chat-line-soft\\)\\]:not(:first-child),.\\[border-top\\:1px_solid_var\\(--chat-line-soft\\)\\]{border-top:1px solid var(--chat-line-soft)}.\\[\\&\\[data-state\\=open\\]\\]\\:\\[transform\\:rotate\\(180deg\\)\\][data-state=open]{transform:rotate(180deg)}.\\[\\&\\[hidden\\]\\]\\:\\[scale\\:0\\.6\\][hidden]{scale:.6}.\\[animation\\:spin_0\\.6s_linear_infinite\\]{animation:.6s linear infinite spin}.\\[backdrop-filter\\:blur\\(0\\.125rem\\)\\]{-webkit-backdrop-filter:blur(.125rem);backdrop-filter:blur(.125rem)}.\\[backdrop-filter\\:blur\\(0\\.5rem\\)\\]{-webkit-backdrop-filter:blur(.5rem);backdrop-filter:blur(.5rem)}.\\[background-image\\:linear-gradient\\(90deg\\,var\\(--chat-text-3\\)\\,var\\(--chat-text-hi\\)\\,var\\(--chat-text-3\\)\\)\\]{background-image:linear-gradient(90deg,var(--chat-text-3),var(--chat-text-hi),var(--chat-text-3))}.\\[background-size\\:200\\%_100\\%\\]{background-size:200% 100%}.\\[background\\:color-mix\\(in_oklch\\,var\\(--chat-accent\\)_10\\%\\,transparent\\)\\]{background:color-mix(in oklch,var(--chat-accent) 10%,transparent)}.\\[background\\:transparent\\]{background:0 0}.\\[background\\:var\\(--chat-accent\\)\\]{background:var(--chat-accent)}.\\[background\\:var\\(--chat-bg\\)\\]{background:var(--chat-bg)}.\\[background\\:var\\(--chat-danger\\)\\]{background:var(--chat-danger)}.\\[background\\:var\\(--chat-fill-strong\\)\\],.data-\\[highlighted\\]\\:\\[background\\:var\\(--chat-fill-strong\\)\\][data-highlighted],.data-\\[state\\=open\\]\\:\\[background\\:var\\(--chat-fill-strong\\)\\][data-state=open]{background:var(--chat-fill-strong)}.\\[background\\:var\\(--chat-fill\\)\\]{background:var(--chat-fill)}.\\[background\\:var\\(--chat-line\\)\\]{background:var(--chat-line)}.\\[background\\:var\\(--chat-panel\\)\\]{background:var(--chat-panel)}.\\[background\\:var\\(--chat-success\\)\\]{background:var(--chat-success)}.\\[background\\:var\\(--chat-sunken\\)\\]{background:var(--chat-sunken)}.\\[background\\:var\\(--chat-text-3\\)\\]{background:var(--chat-text-3)}.\\[border-bottom\\:1px_solid_var\\(--chat-line-soft\\)\\]{border-bottom:1px solid var(--chat-line-soft)}.\\[border-color\\:var\\(--chat-accent\\)\\]{border-color:var(--chat-accent)}.\\[border-color\\:var\\(--chat-line\\)\\]{border-color:var(--chat-line)}.\\[border-color\\:var\\(--pw-line\\)\\]{border-color:var(--pw-line)}.\\[border-top-color\\:var\\(--chat-accent\\)\\]{border-top-color:var(--chat-accent)}.\\[border-top\\:1px_solid_var\\(--chat-line\\)\\]{border-top:1px solid var(--chat-line)}.\\[border\\:0\\]{border:0}.\\[border\\:1px_solid_color-mix\\(in_oklch\\,var\\(--chat-accent\\)_42\\%\\,transparent\\)\\]{border:1px solid color-mix(in oklch,var(--chat-accent) 42%,transparent)}.\\[border\\:1px_solid_transparent\\]{border:1px solid #0000}.\\[border\\:1px_solid_var\\(--chat-accent\\)\\]{border:1px solid var(--chat-accent)}.\\[border\\:1px_solid_var\\(--chat-line-soft\\)\\]{border:1px solid var(--chat-line-soft)}.\\[border\\:1px_solid_var\\(--chat-line\\)\\]{border:1px solid var(--chat-line)}.\\[border\\:1px_solid_var\\(--pw-line\\)\\]{border:1px solid var(--pw-line)}.\\[border\\:1px_solid\\]{border:1px solid}.\\[border\\:2px_solid_var\\(--chat-line\\)\\]{border:2px solid var(--chat-line)}.\\[border\\:none\\]{border:none}.\\[box-shadow\\:0_0_0_2px_var\\(--pw-panel\\)\\]{box-shadow:0 0 0 2px var(--pw-panel)}.\\[box-shadow\\:var\\(--chat-shadow-lg\\)\\]{box-shadow:var(--chat-shadow-lg)}.\\[color\\:var\\(--chat-accent-link\\)\\]{color:var(--chat-accent-link)}.\\[color\\:var\\(--chat-accent\\)\\]{color:var(--chat-accent)}.\\[color\\:var\\(--chat-danger\\)\\]{color:var(--chat-danger)}.\\[color\\:var\\(--chat-on-accent\\)\\]{color:var(--chat-on-accent)}.\\[color\\:var\\(--chat-text-2\\)\\]{color:var(--chat-text-2)}.\\[color\\:var\\(--chat-text-hi\\)\\],.data-\\[highlighted\\]\\:\\[color\\:var\\(--chat-text-hi\\)\\][data-highlighted]{color:var(--chat-text-hi)}.\\[color\\:var\\(--chat-text\\)\\]{color:var(--chat-text)}.\\[font-family\\:inherit\\]{font-family:inherit}.\\[font-family\\:var\\(--chat-font\\)\\]{font-family:var(--chat-font)}.\\[font-family\\:var\\(--chat-mono\\)\\]{font-family:var(--chat-mono)}.\\[font-variant-numeric\\:tabular-nums\\]{font-variant-numeric:tabular-nums}.\\[font\\:inherit\\]{font:inherit}.\\[height\\:calc\\(1lh_\\+_1rem\\)\\]{height:calc(1lh + 1rem)}.\\[height\\:var\\(--height\\)\\]{height:var(--height)}.\\[left\\:var\\(--left\\)\\]{left:var(--left)}.\\[margin\\:0\\]{margin:0}.\\[opacity\\:var\\(--opacity\\)\\]{opacity:var(--opacity)}.\\[outline-offset\\:-2px\\]{outline-offset:-2px}.\\[outline\\:2px_solid_var\\(--pw-accent\\)\\]{outline:2px solid var(--pw-accent)}.\\[overflow-wrap\\:anywhere\\]{overflow-wrap:anywhere}.\\[scale\\:var\\(--scale\\)\\]{scale:var(--scale)}.\\[scrollbar-width\\:none\\]{scrollbar-width:none}.\\[stroke-linecap\\:round\\]{stroke-linecap:round}.\\[transform-origin\\:bottom_left\\]{transform-origin:0 100%}.\\[transform-origin\\:bottom_right\\]{transform-origin:100% 100%}.\\[transform-origin\\:center\\]{transform-origin:50%}.\\[transform-origin\\:top_right\\]{transform-origin:100% 0}.\\[transform\\:none\\]{transform:none}.\\[transform\\:scale\\(0\\.96\\)_translateY\\(0\\.5rem\\)\\]{transform:scale(.96)translateY(.5rem)}.\\[transition\\:background_140ms_var\\(--chat-ease\\)\\,color_140ms_var\\(--chat-ease\\)\\]{transition:background .14s var(--chat-ease),color .14s var(--chat-ease)}.\\[transition\\:background_140ms_var\\(--chat-ease\\)\\]{transition:background .14s var(--chat-ease)}.\\[transition\\:background-color_120ms\\,transform_120ms\\]{transition:background-color .12s,transform .12s}.\\[transition\\:border-color_120ms\\]{transition:border-color .12s}.\\[transition\\:color_120ms_var\\(--pw-ease\\)\\,background-color_120ms_var\\(--pw-ease\\)\\]{transition:color .12s var(--pw-ease),background-color .12s var(--pw-ease)}.\\[transition\\:color_120ms\\,background-color_120ms\\]{transition:color .12s,background-color .12s}.\\[transition\\:color_120ms\\,border-color_120ms\\,background-color_120ms\\]{transition:color .12s,border-color .12s,background-color .12s}.\\[transition\\:color_120ms\\]{transition:color .12s}.\\[transition\\:opacity_150ms_ease\\,scale_150ms_ease\\]{transition:opacity .15s,scale .15s}.\\[transition\\:opacity_150ms\\]{transition:opacity .15s}.\\[transition\\:rotate_150ms_var\\(--chat-ease\\)\\]{transition:rotate .15s var(--chat-ease)}.\\[transition\\:rotate_160ms_var\\(--pw-ease\\)\\,opacity_120ms_var\\(--pw-ease\\)\\]{transition:rotate .16s var(--pw-ease),opacity .12s var(--pw-ease)}.\\[transition\\:rotate_200ms_var\\(--chat-ease\\)\\]{transition:rotate .2s var(--chat-ease)}.\\[translate\\:var\\(--x\\)_var\\(--y\\)\\]{translate:var(--x) var(--y)}.\\[width\\:var\\(--width\\)\\]{width:var(--width)}.\\[word-break\\:break-all\\]{word-break:break-all}.\\[word-break\\:break-word\\]{word-break:break-word}.\\[z-index\\:var\\(--z-index\\)\\]{z-index:var(--z-index)}.data-\\[highlighted\\]\\:\\[background\\:color-mix\\(in_oklch\\,var\\(--pw-danger\\)_15\\%\\,transparent\\)\\][data-highlighted]{background:color-mix(in oklch,var(--pw-danger) 15%,transparent)}.data-\\[state\\=checked\\]\\:\\[border-color\\:var\\(--pw-accent\\)\\][data-state=checked]{border-color:var(--pw-accent)}.data-\\[type\\=error\\]\\:\\[border-color\\:var\\(--pw-danger\\)\\][data-type=error]{border-color:var(--pw-danger)}.data-\\[type\\=success\\]\\:\\[border-color\\:var\\(--pw-success\\)\\][data-type=success]{border-color:var(--pw-success)}.focus-within\\:\\[border-color\\:var\\(--chat-accent\\)\\]:focus-within{border-color:var(--chat-accent)}.focus-within\\:\\[border-color\\:var\\(--pw-accent-line\\)\\]:focus-within{border-color:var(--pw-accent-line)}.focus-within\\:\\[outline-offset\\:0\\.125rem\\]:focus-within{outline-offset:.125rem}.focus-within\\:\\[outline\\:0\\.125rem_solid_var\\(--pw-accent\\)\\]:focus-within{outline:.125rem solid var(--pw-accent)}.hover\\:\\[background\\:var\\(--chat-accent-hi\\)\\]:hover{background:var(--chat-accent-hi)}.hover\\:\\[background\\:var\\(--chat-fill-strong\\)\\]:hover{background:var(--chat-fill-strong)}.hover\\:\\[color\\:var\\(--chat-danger\\)\\]:hover{color:var(--chat-danger)}.hover\\:\\[color\\:var\\(--chat-text-hi\\)\\]:hover{color:var(--chat-text-hi)}.hover\\:\\[color\\:var\\(--chat-text\\)\\]:hover{color:var(--chat-text)}.hover\\:\\[transform\\:translateY\\(-0\\.125rem\\)\\]:hover{transform:translateY(-.125rem)}.focus-visible\\:\\[outline-offset\\:-2px\\]:focus-visible{outline-offset:-2px}.focus-visible\\:\\[outline-offset\\:0\\.125rem\\]:focus-visible{outline-offset:.125rem}.focus-visible\\:\\[outline\\:0\\.125rem_solid_var\\(--chat-accent\\)\\]:focus-visible{outline:.125rem solid var(--chat-accent)}.focus-visible\\:\\[outline\\:var\\(--chat-focus\\)\\]:focus-visible{outline:var(--chat-focus)}.active\\:\\[transform\\:translateY\\(0\\)_scale\\(0\\.94\\)\\]:active{transform:translateY(0)scale(.94)}.placeholder\\:\\[color\\:var\\(--chat-text-3\\)\\]::placeholder{color:var(--chat-text-3)}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.self-stretch{align-self:stretch}.\\[\\&\\>\\*\\]\\:\\!inset-auto>*{inset:auto!important}.inset-0{inset:calc(var(--spacing) * 0)}.after\\:-inset-\\[0\\.1875rem\\]:after{inset:-.1875rem}.end-0\\.5{inset-inline-end:calc(var(--spacing) * .5)}.inset-x-0{inset-inline:calc(var(--spacing) * 0)}.before\\:inset-x-\\[0\\.1875rem\\]:before{inset-inline:.1875rem}.before\\:inset-x-0:before{inset-inline:calc(var(--spacing) * 0)}.before\\:inset-y-0:before{inset-block:calc(var(--spacing) * 0)}.after\\:inset-x-0:after{inset-inline:calc(var(--spacing) * 0)}.-right-1{right:calc(var(--spacing) * -1)}.-top-1{top:calc(var(--spacing) * -1)}.bottom-\\[0\\.3125rem\\]{bottom:.3125rem}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-1{bottom:calc(var(--spacing) * 1)}.bottom-21{bottom:calc(var(--spacing) * 21)}.bottom-4{bottom:calc(var(--spacing) * 4)}.bottom-5{bottom:calc(var(--spacing) * 5)}.bottom-6{bottom:calc(var(--spacing) * 6)}.left-0{left:calc(var(--spacing) * 0)}.left-1\\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-5{left:calc(var(--spacing) * 5)}.right-0{right:calc(var(--spacing) * 0)}.right-1\\.5{right:calc(var(--spacing) * 1.5)}.right-4{right:calc(var(--spacing) * 4)}.right-5{right:calc(var(--spacing) * 5)}.top-\\[calc\\(50\\%-1\\.625rem\\)\\]{top:calc(50% - 1.625rem)}.top-0{top:calc(var(--spacing) * 0)}.top-0\\.5{top:calc(var(--spacing) * .5)}.top-1\\.5{top:calc(var(--spacing) * 1.5)}.top-21{top:calc(var(--spacing) * 21)}.top-3{top:calc(var(--spacing) * 3)}.top-4{top:calc(var(--spacing) * 4)}.top-5{top:calc(var(--spacing) * 5)}.before\\:top-0:before{top:calc(var(--spacing) * 0)}.after\\:-bottom-px:after{bottom:-1px}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.before\\:absolute:before,.after\\:absolute:after{position:absolute}.\\[\\&\\>\\*\\]\\:\\!static>*{position:static!important}.static{position:static}.z-\\[2\\]{z-index:2}.z-\\[2147483646\\]{z-index:2147483646}.z-\\[2147483647\\]{z-index:2147483647}.z-\\[3\\]{z-index:3}.z-\\[5\\]{z-index:5}.z-10{z-index:10}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.stroke-pw-accent{stroke:color-mix(in srgb, var(--pw-accent) var(--unx-stroke-opacity), transparent)}.stroke-pw-line-2{stroke:color-mix(in srgb, var(--pw-line-2) var(--unx-stroke-opacity), transparent)}@keyframes pw-collapse-height{0%{height:var(--height);opacity:1}to{height:var(--collapsed-height,0);opacity:0}}@keyframes pw-expand-height{0%{height:var(--collapsed-height,0);opacity:0}to{height:var(--height);opacity:1}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes pw-dot{0%,60%,to{opacity:.4;transform:translateY(0)}30%{opacity:1;transform:translateY(-6px)}}@keyframes zoom-in{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes pw-fab-ring{0%{opacity:.7;transform:scale(1)}70%,to{opacity:0;transform:scale(1.5)}}@keyframes fade-in-up{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translate(0,0)}}@keyframes pw-presence-in{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}@keyframes pw-presence-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.96)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes pw-think-shimmer{to{background-position:-200% 0}}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.object-cover{object-fit:cover}.backdrop-blur-\\[20px\\]{--unx-backdrop-blur:blur(20px);-webkit-backdrop-filter:var(--unx-backdrop-blur,) var(--unx-backdrop-brightness,) var(--unx-backdrop-contrast,) var(--unx-backdrop-grayscale,) var(--unx-backdrop-hue-rotate,) var(--unx-backdrop-invert,) var(--unx-backdrop-opacity,) var(--unx-backdrop-saturate,) var(--unx-backdrop-sepia,);backdrop-filter:var(--unx-backdrop-blur,) var(--unx-backdrop-brightness,) var(--unx-backdrop-contrast,) var(--unx-backdrop-grayscale,) var(--unx-backdrop-hue-rotate,) var(--unx-backdrop-invert,) var(--unx-backdrop-opacity,) var(--unx-backdrop-saturate,) var(--unx-backdrop-sepia,)}.backdrop-saturate-\\[1\\.4\\]{--unx-backdrop-saturate:saturate(1.4);-webkit-backdrop-filter:var(--unx-backdrop-blur,) var(--unx-backdrop-brightness,) var(--unx-backdrop-contrast,) var(--unx-backdrop-grayscale,) var(--unx-backdrop-hue-rotate,) var(--unx-backdrop-invert,) var(--unx-backdrop-opacity,) var(--unx-backdrop-saturate,) var(--unx-backdrop-sepia,);backdrop-filter:var(--unx-backdrop-blur,) var(--unx-backdrop-brightness,) var(--unx-backdrop-contrast,) var(--unx-backdrop-grayscale,) var(--unx-backdrop-hue-rotate,) var(--unx-backdrop-invert,) var(--unx-backdrop-opacity,) var(--unx-backdrop-saturate,) var(--unx-backdrop-sepia,)}.filter{filter:var(--unx-blur,) var(--unx-brightness,) var(--unx-contrast,) var(--unx-grayscale,) var(--unx-hue-rotate,) var(--unx-invert,) var(--unx-saturate,) var(--unx-sepia,) var(--unx-drop-shadow,)}.table{display:table}.touch-none{touch-action:none}.tabular-nums{--unx-numeric-spacing:tabular-nums;font-variant-numeric:var(--unx-ordinal,) var(--unx-slashed-zero,) var(--unx-numeric-figure,) var(--unx-numeric-spacing,) var(--unx-numeric-fraction,)}.group-data-\\[empty\\]\\:text-pw-text-2:is(:where(.group)[data-empty] *){color:color-mix(in srgb, var(--pw-text-2) var(--unx-text-opacity), transparent)}.group-data-\\[state\\=closed\\]\\:-rotate-90:is(:where(.group)[data-state=closed] *){rotate:-90deg}.group-data-\\[state\\=open\\]\\:opacity-90:is(:where(.group)[data-state=open] *){opacity:.9}.group-data-\\[state\\=open\\]\\:rotate-0:is(:where(.group)[data-state=open] *){rotate:0deg}.group-data-\\[state\\=open\\]\\:rotate-180:is(:where(.group)[data-state=open] *){rotate:180deg}@media (prefers-reduced-motion:reduce){.motion-reduce\\:\\[animation\\:none\\],.motion-reduce\\:animate-none{animation:none}.motion-reduce\\:\\[color\\:var\\(--chat-text-3\\)\\]{color:var(--chat-text-3)}}@supports (color:color-mix(in lab, red, red)){.border-white{border-color:color-mix(in oklab, var(--colors-white) var(--unx-border-opacity), transparent)}}@media (width<=calc(40rem - .1px)){.max-sm\\:m-2{margin:calc(var(--spacing) * 2)}.max-sm\\:h-\\[65vh\\]{height:65vh}.max-sm\\:w-\\[calc\\(100vw-1rem\\)\\]{width:calc(100vw - 1rem)}.max-sm\\:w-auto{width:auto}.max-sm\\:left-0{left:calc(var(--spacing) * 0)}.max-sm\\:top-auto{top:auto}}`,f=/@property\s+--[\w-]+\s*\{[^}]*\}/g;function p(e=document){if(e.querySelector(`style[data-conciv-properties]`))return;let t=d.match(f);if(!t)return;let n=e.createElement(`style`);n.setAttribute(`data-conciv-properties`,``),n.textContent=t.join(``),e.head.appendChild(n)}function m(){p();let e=document.createElement(`div`);e.setAttribute(`data-conciv-root`,``),e.style.position=`fixed`,e.style.inset=`0`,e.style.pointerEvents=`none`,e.style.zIndex=`2147483000`,document.body.appendChild(e);let t=e.attachShadow({mode:`open`}),n=document.createElement(`style`);return n.textContent=d,t.appendChild(n),{host:e,root:t}}var h={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return g(this.context.count)},getNextContextId(){return g(this.context.count++)}};function g(e){let t=String(e),n=t.length-1;return h.context.id+(n?String.fromCharCode(96+n):``)+t}function _(e){h.context=e}function v(){return{...h.context,id:h.getNextContextId(),count:0}}var y=(e,t)=>e===t,b=Symbol(`solid-proxy`),x=typeof Proxy==`function`,S=Symbol(`solid-track`),C={equals:y},w=null,T=ze,E=1,ee=2,te={owned:null,cleanups:null,context:null,owner:null},ne={},re=null,D=null,ie=null,ae=null,oe=null,se=null,ce=null,le=0;function ue(e,t){let n=oe,r=re,i=e.length===0,a=t===void 0?r:t,o=i?te:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>_e(()=>We(o)));re=o,oe=null;try{return Le(s,!0)}finally{oe=n,re=r}}function O(e,t){t=t?Object.assign({},C,t):C;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0};return[je.bind(n),e=>(typeof e==`function`&&(e=D&&D.running&&D.sources.has(n)?e(n.tValue):e(n.value)),Me(n,e))]}function de(e,t,n){let r=Fe(e,t,!0,E);ie&&D&&D.running?se.push(r):Ne(r)}function fe(e,t,n){let r=Fe(e,t,!1,E);ie&&D&&D.running?se.push(r):Ne(r)}function pe(e,t,n){T=Ve;let r=Fe(e,t,!1,E),i=Ae&&Oe(Ae);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),ce?ce.push(r):Ne(r)}function k(e,t,n){n=n?Object.assign({},C,n):C;let r=Fe(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,ie&&D&&D.running?(r.tState=E,se.push(r)):Ne(r),je.bind(r)}function me(e){return e&&typeof e==`object`&&`then`in e}function he(e,t,n){let r,i,a;typeof t==`function`?(r=e,i=t,a=n||{}):(r=!0,i=e,a=t||{});let o=null,s=ne,c=null,l=!1,u=!1,d=`initialValue`in a,f=typeof r==`function`&&k(r),p=new Set,[m,g]=(a.storage||O)(a.initialValue),[_,v]=O(void 0),[y,b]=O(void 0,{equals:!1}),[x,S]=O(d?`ready`:`unresolved`);h.context&&(c=h.getNextContextId(),a.ssrLoadFrom===`initial`?s=a.initialValue:h.load&&h.has(c)&&(s=h.load(c)));function C(e,t,n,r){return o===e&&(o=null,r!==void 0&&(d=!0),(e===s||t===s)&&a.onHydrated&&queueMicrotask(()=>a.onHydrated(r,{value:t})),s=ne,D&&e&&l?(D.promises.delete(e),l=!1,Le(()=>{D.running=!0,w(t,n)},!1)):w(t,n)),t}function w(e,t){Le(()=>{t===void 0&&g(()=>e),S(t===void 0?d?`ready`:`unresolved`:`errored`),v(t);for(let e of p.keys())e.decrement();p.clear()},!1)}function T(){let e=Ae&&Oe(Ae),t=m(),n=_();if(n!==void 0&&!o)throw n;return oe&&!oe.user&&e&&de(()=>{y(),o&&(e.resolved&&D&&l?D.promises.add(o):p.has(e)||(e.increment(),p.add(e)))}),t}function E(e=!0){if(e!==!1&&u)return;u=!1;let t=f?f():r;if(l=D&&D.running,t==null||t===!1){C(o,_e(m));return}D&&o&&D.promises.delete(o);let n,a=s===ne?_e(()=>{try{return i(t,{value:m(),refetching:e})}catch(e){n=e}}):s;if(n!==void 0){C(o,void 0,Ke(n),t);return}else if(!me(a))return C(o,a,void 0,t),a;return o=a,`v`in a?(a.s===1?C(o,a.v,void 0,t):C(o,void 0,Ke(a.v),t),a):(u=!0,queueMicrotask(()=>u=!1),Le(()=>{S(d?`refreshing`:`pending`),b()},!1),a.then(e=>C(a,e,void 0,t),e=>C(a,void 0,Ke(e),t)))}Object.defineProperties(T,{state:{get:()=>x()},error:{get:()=>_()},loading:{get(){let e=x();return e===`pending`||e===`refreshing`}},latest:{get(){if(!d)return T();let e=_();if(e&&!o)throw e;return m()}}});let ee=re;return f?de(()=>(ee=re,E(!1))):E(!1),[T,{refetch:e=>Ce(ee,()=>E(e)),mutate:g}]}function ge(e){return Le(e,!1)}function _e(e){if(!ae&&oe===null)return e();let t=oe;oe=null;try{return ae?ae.untrack(e):e()}finally{oe=t}}function ve(e){pe(()=>_e(e))}function ye(e){return re===null||(re.cleanups===null?re.cleanups=[e]:re.cleanups.push(e)),e}function be(e,t){w||=Symbol(`error`),re=Fe(void 0,void 0,!0),re.context={...re.context,[w]:[t]},D&&D.running&&D.sources.add(re);try{return e()}catch(e){Je(e)}finally{re=re.owner}}function xe(){return oe}function Se(){return re}function Ce(e,t){let n=re,r=oe;re=e,oe=null;try{return Le(t,!0)}catch(e){Je(e)}finally{re=n,oe=r}}function we(e){if(D&&D.running)return e(),D.done;let t=oe,n=re;return Promise.resolve().then(()=>{oe=t,re=n;let r;return(ie||Ae)&&(r=D||={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0},r.done||=new Promise(e=>r.resolve=e),r.running=!0),Le(e,!1),oe=re=null,r?r.done:void 0})}var[Te,Ee]=O(!1);function De(e,t){let n=Symbol(`context`);return{id:n,Provider:Xe(n),defaultValue:e}}function Oe(e){let t;return re&&re.context&&(t=re.context[e.id])!==void 0?t:e.defaultValue}function ke(e){let t=k(e),n=k(()=>Ye(t()));return n.toArray=()=>{let e=n();return Array.isArray(e)?e:e==null?[]:[e]},n}var Ae;function je(){let e=D&&D.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===E)Ne(this);else{let e=se;se=null,Le(()=>He(this),!1),se=e}if(oe){let e=this.observers;if(!e||e[e.length-1]!==oe){let t=e?e.length:0;oe.sources?(oe.sources.push(this),oe.sourceSlots.push(t)):(oe.sources=[this],oe.sourceSlots=[t]),e?(e.push(oe),this.observerSlots.push(oe.sources.length-1)):(this.observers=[oe],this.observerSlots=[oe.sources.length-1])}}return e&&D.sources.has(this)?this.tValue:this.value}function Me(e,t,n){let r=D&&D.running&&D.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(D){let r=D.running;(r||!n&&D.sources.has(e))&&(D.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&Le(()=>{for(let t=0;t<e.observers.length;t+=1){let n=e.observers[t],r=D&&D.running;r&&D.disposed.has(n)||((r?!n.tState:!n.state)&&(n.pure?se.push(n):ce.push(n),n.observers&&Ue(n)),r?n.tState=E:n.state=E)}if(se.length>1e6)throw se=[],Error()},!1)}return t}function Ne(e){if(!e.fn)return;We(e);let t=le;Pe(e,D&&D.running&&D.sources.has(e)?e.tValue:e.value,t),D&&!D.running&&D.sources.has(e)&&queueMicrotask(()=>{Le(()=>{D&&(D.running=!0),oe=re=e,Pe(e,e.tValue,t),oe=re=null},!1)})}function Pe(e,t,n){let r,i=re,a=oe;oe=re=e;try{r=e.fn(t)}catch(t){return e.pure&&(D&&D.running?(e.tState=E,e.tOwned&&e.tOwned.forEach(We),e.tOwned=void 0):(e.state=E,e.owned&&e.owned.forEach(We),e.owned=null)),e.updatedAt=n+1,Je(t)}finally{oe=a,re=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&`observers`in e?Me(e,r,!0):D&&D.running&&e.pure?(D.sources.has(e)||(e.value=r),D.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function Fe(e,t,n,r=E,i){let a={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:re,context:re?re.context:null,pure:n};if(D&&D.running&&(a.state=0,a.tState=r),re===null||re!==te&&(D&&D.running&&re.pure?re.tOwned?re.tOwned.push(a):re.tOwned=[a]:re.owned?re.owned.push(a):re.owned=[a]),ae&&a.fn){let e=a.fn,[t,n]=O(void 0,{equals:!1}),r=ae.factory(e,n);ye(()=>r.dispose());let i,o=()=>we(n).then(()=>{i&&=(i.dispose(),void 0)});a.fn=n=>(t(),D&&D.running?(i||=ae.factory(e,o),i.track(n)):r.track(n))}return a}function Ie(e){let t=D&&D.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===ee)return He(e);if(e.suspense&&_e(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<le);){if(t&&D.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e)}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let t=e,i=n[r+1];for(;(t=t.owner)&&t!==i;)if(D.disposed.has(t))return}if((t?e.tState:e.state)===E)Ne(e);else if((t?e.tState:e.state)===ee){let t=se;se=null,Le(()=>He(e,n[0]),!1),se=t}}}function Le(e,t){if(se)return e();let n=!1;t||(se=[]),ce?n=!0:ce=[],le++;try{let t=e();return Re(n),t}catch(e){n||(ce=null),se=null,Je(e)}}function Re(e){if(se&&=(ie&&D&&D.running?Be(se):ze(se),null),e)return;let t;if(D){if(!D.promises.size&&!D.queue.size){let e=D.sources,n=D.disposed;ce.push.apply(ce,D.effects),t=D.resolve;for(let e of ce)`tState`in e&&(e.state=e.tState),delete e.tState;D=null,Le(()=>{for(let e of n)We(e);for(let t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;e<n;e++)We(t.owned[e]);t.tOwned&&(t.owned=t.tOwned),delete t.tValue,delete t.tOwned,t.tState=0}Ee(!1)},!1)}else if(D.running){D.running=!1,D.effects.push.apply(D.effects,ce),ce=null,Ee(!0);return}}let n=ce;ce=null,n.length&&Le(()=>T(n),!1),t&&t()}function ze(e){for(let t=0;t<e.length;t++)Ie(e[t])}function Be(e){for(let t=0;t<e.length;t++){let n=e[t],r=D.queue;r.has(n)||(r.add(n),ie(()=>{r.delete(n),Le(()=>{D.running=!0,Ie(n)},!1),D&&(D.running=!1)}))}}function Ve(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:Ie(r)}if(h.context){if(h.count){h.effects||=[],h.effects.push(...e.slice(0,n));return}_()}for(h.effects&&(h.done||!h.count)&&(e=[...h.effects,...e],n+=h.effects.length,delete h.effects),t=0;t<n;t++)Ie(e[t])}function He(e,t){let n=D&&D.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){let i=e.sources[r];if(i.sources){let e=n?i.tState:i.state;e===E?i!==t&&(!i.updatedAt||i.updatedAt<le)&&Ie(i):e===ee&&He(i,t)}}}function Ue(e){let t=D&&D.running;for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=ee:r.state=ee,r.pure?se.push(r):ce.push(r),r.observers&&Ue(r))}}function We(e){let t;if(e.sources)for(;e.sources.length;){let t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){let e=r.pop(),i=t.observerSlots.pop();n<r.length&&(e.sourceSlots[i]=n,r[n]=e,t.observerSlots[n]=i)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)We(e.tOwned[t]);delete e.tOwned}if(D&&D.running&&e.pure)Ge(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)We(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}D&&D.running?e.tState=0:e.state=0}function Ge(e,t){if(t||(e.tState=0,D.disposed.add(e)),e.owned)for(let t=0;t<e.owned.length;t++)Ge(e.owned[t])}function Ke(e){return e instanceof Error?e:Error(typeof e==`string`?e:`Unknown error`,{cause:e})}function qe(e,t,n){try{for(let n of t)n(e)}catch(e){Je(e,n&&n.owner||null)}}function Je(e,t=re){let n=w&&t&&t.context&&t.context[w],r=Ke(e);if(!n)throw r;ce?ce.push({fn(){qe(r,n,t)},state:E}):qe(r,n,t)}function Ye(e){if(typeof e==`function`&&!e.length)return Ye(e());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=Ye(e[n]);if(Array.isArray(r))if(r.length<32768)t.push.apply(t,r);else for(let e=0;e<r.length;e++)t.push(r[e]);else t.push(r)}return t}return e}function Xe(e,t){return function(t){let n;return fe(()=>n=_e(()=>(re.context={...re.context,[e]:t.value},ke(()=>t.children))),void 0),n}}var Ze=Symbol(`fallback`);function Qe(e){for(let t=0;t<e.length;t++)e[t]()}function $e(e,t,n={}){let r=[],i=[],a=[],o=0,s=t.length>1?[]:null;return ye(()=>Qe(a)),()=>{let c=e()||[],l=c.length,u,d;return c[S],_e(()=>{let e,t,p,m,h,g,_,v,y;if(l===0)o!==0&&(Qe(a),a=[],r=[],i=[],o=0,s&&=[]),n.fallback&&(r=[Ze],i[0]=ue(e=>(a[0]=e,n.fallback())),o=1);else if(o===0){for(i=Array(l),d=0;d<l;d++)r[d]=c[d],i[d]=ue(f);o=l}else{for(p=Array(l),m=Array(l),s&&(h=Array(l)),g=0,_=Math.min(o,l);g<_&&r[g]===c[g];g++);for(_=o-1,v=l-1;_>=g&&v>=g&&r[_]===c[v];_--,v--)p[v]=i[_],m[v]=a[_],s&&(h[v]=s[_]);for(e=new Map,t=Array(v+1),d=v;d>=g;d--)y=c[d],u=e.get(y),t[d]=u===void 0?-1:u,e.set(y,d);for(u=g;u<=_;u++)y=r[u],d=e.get(y),d!==void 0&&d!==-1?(p[d]=i[u],m[d]=a[u],s&&(h[d]=s[u]),d=t[d],e.set(y,d)):a[u]();for(d=g;d<l;d++)d in p?(i[d]=p[d],a[d]=m[d],s&&(s[d]=h[d],s[d](d))):i[d]=ue(f);i=i.slice(0,o=l),r=c.slice(0)}return i});function f(e){if(a[d]=e,s){let[e,n]=O(d);return s[d]=n,t(c[d],e)}return t(c[d])}}}function et(e,t,n={}){let r=[],i=[],a=[],o=[],s=0,c;return ye(()=>Qe(a)),()=>{let l=e()||[],u=l.length;return l[S],_e(()=>{if(u===0)return s!==0&&(Qe(a),a=[],r=[],i=[],s=0,o=[]),n.fallback&&(r=[Ze],i[0]=ue(e=>(a[0]=e,n.fallback())),s=1),i;for(r[0]===Ze&&(a[0](),a=[],r=[],i=[],s=0),c=0;c<u;c++)c<r.length&&r[c]!==l[c]?o[c](()=>l[c]):c>=r.length&&(i[c]=ue(d));for(;c<r.length;c++)a[c]();return s=o.length=a.length=u,r=l.slice(0),i=i.slice(0,s)});function d(e){a[c]=e;let[n,r]=O(l[c]);return o[c]=r,t(n,c)}}}var tt=!1;function A(e,t){if(tt&&h.context){let n=h.context;_(v());let r=_e(()=>e(t||{}));return _(n),r}return _e(()=>e(t||{}))}function nt(){return!0}var rt={get(e,t,n){return t===b?n:e.get(t)},has(e,t){return t===b?!0:e.has(t)},set:nt,deleteProperty:nt,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:nt,deleteProperty:nt}},ownKeys(e){return e.keys()}};function it(e){return(e=typeof e==`function`?e():e)?e:{}}function at(){for(let e=0,t=this.length;e<t;++e){let t=this[e]();if(t!==void 0)return t}}function j(...e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];t||=!!r&&b in r,e[n]=typeof r==`function`?(t=!0,k(r)):r}if(x&&t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){let r=it(e[n])[t];if(r!==void 0)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in it(e[n]))return!0;return!1},keys(){let t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(it(e[n])));return[...new Set(t)]}},rt);let n={},r=Object.create(null);for(let t=e.length-1;t>=0;t--){let i=e[t];if(!i)continue;let a=Object.getOwnPropertyNames(i);for(let e=a.length-1;e>=0;e--){let t=a[e];if(t===`__proto__`||t===`constructor`)continue;let o=Object.getOwnPropertyDescriptor(i,t);if(!r[t])r[t]=o.get?{enumerable:!0,configurable:!0,get:at.bind(n[t]=[o.get.bind(i)])}:o.value===void 0?void 0:o;else{let e=n[t];e&&(o.get?e.push(o.get.bind(i)):o.value!==void 0&&e.push(()=>o.value))}}}let i={},a=Object.keys(r);for(let e=a.length-1;e>=0;e--){let t=a[e],n=r[t];n&&n.get?Object.defineProperty(i,t,n):i[t]=n?n.value:void 0}return i}function ot(e,...t){let n=t.length;if(x&&b in e){let r=n>1?t.flat():t[0],i=t.map(t=>new Proxy({get(n){return t.includes(n)?e[n]:void 0},has(n){return t.includes(n)&&n in e},keys(){return t.filter(t=>t in e)}},rt));return i.push(new Proxy({get(t){return r.includes(t)?void 0:e[t]},has(t){return r.includes(t)?!1:t in e},keys(){return Object.keys(e).filter(e=>!r.includes(e))}},rt)),i}let r=[];for(let e=0;e<=n;e++)r[e]={};for(let i of Object.getOwnPropertyNames(e)){let a=n;for(let e=0;e<t.length;e++)if(t[e].includes(i)){a=e;break}let o=Object.getOwnPropertyDescriptor(e,i);!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable?r[a][i]=o.value:Object.defineProperty(r[a],i,o)}return r}var st=0;function ct(){return h.context?h.getNextContextId():`cl-${st++}`}var lt=e=>`Stale read from <${e}>.`;function ut(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return k($e(()=>e.each,e.children,t||void 0))}function dt(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return k(et(()=>e.each,e.children,t||void 0))}function M(e){let t=e.keyed,n=k(()=>e.when,void 0,void 0),r=t?n:k(n,void 0,{equals:(e,t)=>!e==!t});return k(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?_e(()=>a(t?i:()=>{if(!_e(r))throw lt(`Show`);return n()})):a}return e.fallback},void 0,void 0)}function ft(e){let t=ke(()=>e.children),n=k(()=>{let e=t(),n=Array.isArray(e)?e:[e],r=()=>void 0;for(let e=0;e<n.length;e++){let t=e,i=n[e],a=r,o=k(()=>a()?void 0:i.when,void 0,void 0),s=i.keyed?o:k(o,void 0,{equals:(e,t)=>!e==!t});r=()=>a()||(s()?[t,o,i]:void 0)}return r});return k(()=>{let t=n()();if(!t)return e.fallback;let[r,i,a]=t,o=a.children;return typeof o==`function`&&o.length>0?_e(()=>o(a.keyed?i():()=>{if(_e(n)()?.[0]!==r)throw lt(`Match`);return i()})):o},void 0,void 0)}function pt(e){return e}var mt;function ht(e){let t;h.context&&h.load&&(t=h.load(h.getContextId()));let[n,r]=O(t,void 0);return mt||=new Set,mt.add(r),ye(()=>mt.delete(r)),k(()=>{let t;if(t=n()){let n=e.fallback;return typeof n==`function`&&n.length?_e(()=>n(t,()=>r())):n}return be(()=>e.children,r)},void 0,void 0)}var gt=new Set([`className`,`value`,`readOnly`,`noValidate`,`formNoValidate`,`isMap`,`noModule`,`playsInline`,`adAuctionHeaders`,`allowFullscreen`,`browsingTopics`,`defaultChecked`,`defaultMuted`,`defaultSelected`,`disablePictureInPicture`,`disableRemotePlayback`,`preservesPitch`,`shadowRootClonable`,`shadowRootCustomElementRegistry`,`shadowRootDelegatesFocus`,`shadowRootSerializable`,`sharedStorageWritable`,...`allowfullscreen.async.alpha.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.hidden.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.adauctionheaders.browsingtopics.credentialless.defaultchecked.defaultmuted.defaultselected.defer.disablepictureinpicture.disableremoteplayback.preservespitch.shadowrootclonable.shadowrootcustomelementregistry.shadowrootdelegatesfocus.shadowrootserializable.sharedstoragewritable`.split(`.`)]),_t=new Set([`innerHTML`,`textContent`,`innerText`,`children`]),vt=Object.assign(Object.create(null),{className:`class`,htmlFor:`for`}),eee=Object.assign(Object.create(null),{class:`className`,novalidate:{$:`noValidate`,FORM:1},formnovalidate:{$:`formNoValidate`,BUTTON:1,INPUT:1},ismap:{$:`isMap`,IMG:1},nomodule:{$:`noModule`,SCRIPT:1},playsinline:{$:`playsInline`,VIDEO:1},readonly:{$:`readOnly`,INPUT:1,TEXTAREA:1},adauctionheaders:{$:`adAuctionHeaders`,IFRAME:1},allowfullscreen:{$:`allowFullscreen`,IFRAME:1},browsingtopics:{$:`browsingTopics`,IMG:1},defaultchecked:{$:`defaultChecked`,INPUT:1},defaultmuted:{$:`defaultMuted`,AUDIO:1,VIDEO:1},defaultselected:{$:`defaultSelected`,OPTION:1},disablepictureinpicture:{$:`disablePictureInPicture`,VIDEO:1},disableremoteplayback:{$:`disableRemotePlayback`,AUDIO:1,VIDEO:1},preservespitch:{$:`preservesPitch`,AUDIO:1,VIDEO:1},shadowrootclonable:{$:`shadowRootClonable`,TEMPLATE:1},shadowrootdelegatesfocus:{$:`shadowRootDelegatesFocus`,TEMPLATE:1},shadowrootserializable:{$:`shadowRootSerializable`,TEMPLATE:1},sharedstoragewritable:{$:`sharedStorageWritable`,IFRAME:1,IMG:1}});function yt(e,t){let n=eee[e];return typeof n==`object`?n[t]?n.$:void 0:n}var bt=new Set([`beforeinput`,`click`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`]),tee=new Set(`altGlyph.altGlyphDef.altGlyphItem.animate.animateColor.animateMotion.animateTransform.circle.clipPath.color-profile.cursor.defs.desc.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.font.font-face.font-face-format.font-face-name.font-face-src.font-face-uri.foreignObject.g.glyph.glyphRef.hkern.image.line.linearGradient.marker.mask.metadata.missing-glyph.mpath.path.pattern.polygon.polyline.radialGradient.rect.set.stop.svg.switch.symbol.text.textPath.tref.tspan.use.view.vkern`.split(`.`)),xt={xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`},St=e=>k(()=>e());function Ct(e,t,n){let r=n.length,i=t.length,a=r,o=0,s=0,c=t[i-1].nextSibling,l=null;for(;o<i||s<a;){if(t[o]===n[s]){o++,s++;continue}for(;t[i-1]===n[a-1];)i--,a--;if(i===o){let t=a<r?s?n[s-1].nextSibling:n[a-s]:c;for(;s<a;)e.insertBefore(n[s++],t)}else if(a===s)for(;o<i;)(!l||!l.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[a-1]&&n[s]===t[i-1]){let r=t[--i].nextSibling;e.insertBefore(n[s++],t[o++].nextSibling),e.insertBefore(n[--a],r),t[i]=n[a]}else{if(!l){l=new Map;let e=s;for(;e<a;)l.set(n[e],e++)}let r=l.get(t[o]);if(r!=null)if(s<r&&r<a){let c=o,u=1,d;for(;++c<i&&c<a&&!((d=l.get(t[c]))==null||d!==r+u);)u++;if(u>r-s){let i=t[o];for(;s<r;)e.insertBefore(n[s++],i)}else e.replaceChild(n[s++],t[o++])}else o++;else t[o++].remove()}}}var wt=`_$DX_DELEGATE`;function Tt(e,t,n,r={}){let i;return ue(r=>{i=r,t===document?e():P(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=``}}function N(e,t,n,r){let i,a=()=>{let t=r?document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`template`):document.createElement(`template`);return t.innerHTML=e,n?t.content.firstChild.firstChild:r?t.firstChild:t.content.firstChild},o=t?()=>_e(()=>document.importNode(i||=a(),!0)):()=>(i||=a()).cloneNode(!0);return o.cloneNode=o,o}function Et(e,t=window.document){let n=t[wt]||(t[wt]=new Set);for(let r=0,i=e.length;r<i;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,Ut))}}function Dt(e,t,n){zt(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function Ot(e,t,n,r){zt(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function kt(e,t,n){zt(e)||(n?e.setAttribute(t,``):e.removeAttribute(t))}function At(e,t){zt(e)||(t==null?e.removeAttribute(`class`):e.className=t)}function jt(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){let r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n,typeof n!=`function`&&n)}function Mt(e,t,n={}){let r=Object.keys(t||{}),i=Object.keys(n),a,o;for(a=0,o=i.length;a<o;a++){let r=i[a];!r||r===`undefined`||t[r]||(Vt(e,r,!1),delete n[r])}for(a=0,o=r.length;a<o;a++){let i=r[a],o=!!t[i];!i||i===`undefined`||n[i]===o||!o||(Vt(e,i,!0),n[i]=o)}return n}function Nt(e,t,n){if(!t)return n?Dt(e,`style`):t;let r=e.style;if(typeof t==`string`)return r.cssText=t;typeof n==`string`&&(r.cssText=n=void 0),n||={},t||={};let i,a;for(a in n)t[a]??r.removeProperty(a),delete n[a];for(a in t)i=t[a],i!==n[a]&&(r.setProperty(a,i),n[a]=i);return n}function Pt(e,t,n){n==null?e.style.removeProperty(t):e.style.setProperty(t,n)}function Ft(e,t={},n,r){let i={};return r||fe(()=>i.children=Wt(e,t.children,i.children)),fe(()=>typeof t.ref==`function`&&It(t.ref,e)),fe(()=>Lt(e,t,n,!0,i,!0)),i}function It(e,t,n){return _e(()=>e(t,n))}function P(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return Wt(e,t,r,n);fe(r=>Wt(e,t(),r,n),r)}function Lt(e,t,n,r,i={},a=!1){t||={};for(let r in i)if(!(r in t)){if(r===`children`)continue;i[r]=Ht(e,r,null,i[r],n,a,t)}for(let o in t){if(o===`children`){r||Wt(e,t.children);continue}let s=t[o];i[o]=Ht(e,o,s,i[o],n,a,t)}}function Rt(e){let t,n;return!zt()||!(t=h.registry.get(n=Jt()))?e():(h.completed&&h.completed.add(t),h.registry.delete(n),t)}function zt(e){return!!h.context&&!h.done&&(!e||e.isConnected)}function Bt(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function Vt(e,t,n){let r=t.trim().split(/\s+/);for(let t=0,i=r.length;t<i;t++)e.classList.toggle(r[t],n)}function Ht(e,t,n,r,i,a,o){let s,c,l,u,d;if(t===`style`)return Nt(e,n,r);if(t===`classList`)return Mt(e,n,r);if(n===r)return r;if(t===`ref`)a||n(e);else if(t.slice(0,3)===`on:`){let i=t.slice(3);r&&e.removeEventListener(i,r,typeof r!=`function`&&r),n&&e.addEventListener(i,n,typeof n!=`function`&&n)}else if(t.slice(0,10)===`oncapture:`){let i=t.slice(10);r&&e.removeEventListener(i,r,!0),n&&e.addEventListener(i,n,!0)}else if(t.slice(0,2)===`on`){let i=t.slice(2).toLowerCase(),a=bt.has(i);if(!a&&r){let t=Array.isArray(r)?r[0]:r;e.removeEventListener(i,t)}(a||n)&&(jt(e,i,n,a),a&&Et([i]))}else if(t.slice(0,5)===`attr:`)Dt(e,t.slice(5),n);else if(t.slice(0,5)===`bool:`)kt(e,t.slice(5),n);else if((d=t.slice(0,5)===`prop:`)||(l=_t.has(t))||!i&&((u=yt(t,e.tagName))||(c=gt.has(t)))||(s=e.nodeName.includes(`-`)||`is`in o)){if(d)t=t.slice(5),c=!0;else if(zt(e))return n;t===`class`||t===`className`?At(e,n):s&&!c&&!l?e[Bt(t)]=n:e[u||t]=n}else{let r=i&&t.indexOf(`:`)>-1&&xt[t.split(`:`)[0]];r?Ot(e,r,t,n):Dt(e,vt[t]||t,n)}return n}function Ut(e){if(h.registry&&h.events&&h.events.find(([t,n])=>n===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,a=t=>Object.defineProperty(e,"target",{configurable:!0,value:t}),o=()=>{let r=t[n];if(r&&!t.disabled){let i=t[`${n}Data`];if(i===void 0?r.call(t,e):r.call(t,i,e),e.cancelBubble)return}return t.host&&typeof t.host!=`string`&&!t.host._$host&&t.contains(e.target)&&a(t.host),!0},s=()=>{for(;o()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),h.registry&&!h.done&&(h.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();a(n[0]);for(let e=0;e<n.length-2&&(t=n[e],o());e++){if(t._$host){t=t._$host,s();break}if(t.parentNode===i)break}}else s();a(r)}function Wt(e,t,n,r,i){let a=zt(e);if(a){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){let r=n[e];r.nodeType===8&&r.data.slice(0,2)===`!$`?r.remove():t.push(r)}n=t}for(;typeof n==`function`;)n=n();if(t===n)return n;let o=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,o===`string`||o===`number`){if(a||o===`number`&&(t=t.toString(),t===n))return n;if(s){let i=n[0];i&&i.nodeType===3?i.data!==t&&(i.data=t):i=document.createTextNode(t),n=qt(e,n,r,i)}else n=n!==``&&typeof n==`string`?e.firstChild.data=t:e.textContent=t}else if(t==null||o===`boolean`){if(a)return n;n=qt(e,n,r)}else if(o===`function`)return fe(()=>{let i=t();for(;typeof i==`function`;)i=i();n=Wt(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(Gt(o,t,n,i))return fe(()=>n=Wt(e,o,n,r,!0)),()=>n;if(a){if(!o.length)return n;if(r===void 0)return n=[...e.childNodes];let t=o[0];if(t.parentNode!==e)return n;let i=[t];for(;(t=t.nextSibling)!==r;)i.push(t);return n=i}if(o.length===0){if(n=qt(e,n,r),s)return n}else c?n.length===0?Kt(e,o,r):Ct(e,n,o):(n&&qt(e),Kt(e,o));n=o}else if(t.nodeType){if(a&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=qt(e,n,r,t);qt(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function Gt(e,t,n,r){let i=!1;for(let a=0,o=t.length;a<o;a++){let o=t[a],s=n&&n[e.length],c;if(!(o==null||o===!0||o===!1))if((c=typeof o)==`object`&&o.nodeType)e.push(o);else if(Array.isArray(o))i=Gt(e,o,s)||i;else if(c===`function`)if(r){for(;typeof o==`function`;)o=o();i=Gt(e,Array.isArray(o)?o:[o],Array.isArray(s)?s:[s])||i}else e.push(o),i=!0;else{let t=String(o);s&&s.nodeType===3&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return i}function Kt(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function qt(e,t,n,r){if(n===void 0)return e.textContent=``;let i=r||document.createTextNode(``);if(t.length){let r=!1;for(let a=t.length-1;a>=0;a--){let o=t[a];if(i!==o){let t=o.parentNode===e;!r&&!a?t?e.replaceChild(i,o):e.insertBefore(i,n):t&&o.remove()}else r=!0}}else e.insertBefore(i,n);return[i]}function Jt(){return h.getNextContextId()}var Yt=`http://www.w3.org/2000/svg`;function Xt(e,t=!1,n=void 0){return t?document.createElementNS(Yt,e):document.createElement(e,{is:n})}function Zt(e,t){let n=k(e);return k(()=>{let e=n();switch(typeof e){case`function`:return _e(()=>e(t));case`string`:let n=tee.has(e),r=h.context?Rt():Xt(e,n,_e(()=>t.is));return Ft(r,t,n),r}})}function Qt(e){let[,t]=ot(e,[`component`]);return Zt(()=>e.component,t)}var $t=()=>(e,t)=>ot(e,t),en=Object.defineProperty,tn=e=>{throw TypeError(e)},nn=(e,t,n)=>t in e?en(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rn=(e,t,n)=>nn(e,typeof t==`symbol`?t:t+``,n),an=(e,t,n)=>t.has(e)||tn(`Cannot `+n),on=(e,t,n)=>(an(e,t,`read from private field`),n?n.call(e):t.get(e)),sn=(e,t,n)=>t.has(e)?tn(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n);function nee(e){return e==null?[]:Array.isArray(e)?e:[e]}var cn=e=>e[0],ln=e=>e[e.length-1],un=(e,t)=>e.indexOf(t)!==-1,dn=(e,...t)=>e.concat(t),fn=(e,...t)=>e.filter(e=>!t.includes(e)),pn=(e,t)=>un(e,t)?fn(e,t):dn(e,t);function mn(e,t,n={}){let{step:r=1,loop:i=!0}=n,a=t+r,o=e.length,s=o-1;return t===-1?r>0?0:s:a<0?i?s:0:a>=o?i?0:t>o?o:t:a}function hn(e,t,n={}){return e[mn(e,t,n)]}function gn(e,t,n={}){let{step:r=1,loop:i=!0}=n;return mn(e,t,{step:-r,loop:i})}function _n(e,t,n={}){return e[gn(e,t,n)]}var vn=e=>e?.constructor.name===`Array`,yn=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!bn(e[n],t[n]))return!1;return!0},bn=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof e?.isEqual==`function`&&typeof t?.isEqual==`function`)return e.isEqual(t);if(typeof e==`function`&&typeof t==`function`)return e.toString()===t.toString();if(vn(e)&&vn(t))return yn(Array.from(e),Array.from(t));if(typeof e!=`object`||typeof t!=`object`)return!1;let n=Object.keys(t??Object.create(null)),r=n.length;for(let t=0;t<r;t++)if(!Reflect.has(e,n[t]))return!1;for(let i=0;i<r;i++){let r=n[i];if(!bn(e[r],t[r]))return!1}return!0},xn=e=>Array.isArray(e),Sn=e=>e===!0||e===!1,Cn=e=>typeof e==`object`&&!!e,wn=e=>Cn(e)&&!xn(e),Tn=e=>typeof e==`number`&&!Number.isNaN(e),En=e=>typeof e==`string`,Dn=e=>typeof e==`function`,On=e=>e==null,kn=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),An=e=>Object.prototype.toString.call(e),jn=Function.prototype.toString,Mn=jn.call(Object),Nn=e=>{if(!Cn(e)||An(e)!=`[object Object]`||In(e))return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let n=kn(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&jn.call(n)==Mn},Pn=e=>typeof e==`object`&&!!e&&`$$typeof`in e&&`props`in e,Fn=e=>typeof e==`object`&&!!e&&`__v_isVNode`in e,In=e=>Pn(e)||Fn(e),Ln=(e,...t)=>(typeof e==`function`?e(...t):e)??void 0,Rn=e=>e,zn=()=>{},Bn=(...e)=>(...t)=>{e.forEach(function(e){e?.(...t)})},Vn=(()=>{let e=0;return()=>(e++,e.toString(36))})();function Hn(e,t,...n){if(e in t){let r=t[e];return Dn(r)?r(...n):r}let r=Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(r,Hn),r}var{floor:ree,abs:Un,round:iee,min:Wn,max:Gn,pow:aee,sign:Kn}=Math,qn=e=>Number.isNaN(e),Jn=e=>qn(e)?0:e,Yn=(e,t,n)=>Wn(Gn(Jn(e),t),n),Xn=(e,t,n)=>(Jn(e)-t)/(n-t),Zn=e=>typeof e==`number`?`${e}px`:e;function Qn(e){if(!Nn(e)||e===void 0)return e;let t=Reflect.ownKeys(e).filter(e=>typeof e==`string`),n={};for(let r of t){let t=e[r];t!==void 0&&(n[r]=Qn(t))}return n}function $n(e,t=Object.is){let n={...e},r=new Set,i=e=>(r.add(e),()=>r.delete(e)),a=()=>{r.forEach(e=>e())};return{subscribe:i,get:e=>n[e],set:(e,r)=>{t(n[e],r)||(n[e]=r,a())},update:e=>{let r=!1;for(let i in e){let a=e[i];a!==void 0&&!t(n[i],a)&&(n[i]=a,r=!0)}r&&a()},snapshot:()=>({...n})}}var er=()=>performance.now(),tr,nr=class{constructor(e){rn(this,`onTick`,e),rn(this,`frameId`,null),rn(this,`pausedAtMs`,null),rn(this,`context`),rn(this,`cancelFrame`,()=>{this.frameId!==null&&(cancelAnimationFrame(this.frameId),this.frameId=null)}),rn(this,`setStartMs`,e=>{this.context.startMs=e}),rn(this,`start`,()=>{if(this.frameId!==null)return;let e=er();this.pausedAtMs===null?this.context.startMs=e:(this.context.startMs+=e-this.pausedAtMs,this.pausedAtMs=null),this.frameId=requestAnimationFrame(on(this,tr))}),rn(this,`pause`,()=>{this.frameId!==null&&(this.cancelFrame(),this.pausedAtMs=er())}),rn(this,`stop`,()=>{this.frameId!==null&&(this.cancelFrame(),this.pausedAtMs=null)}),sn(this,tr,e=>{if(this.context.now=e,this.context.deltaMs=e-this.context.startMs,this.onTick(this.context)===!1){this.stop();return}this.frameId=requestAnimationFrame(on(this,tr))}),this.context={now:0,startMs:er(),deltaMs:0}}get elapsedMs(){return this.pausedAtMs===null?er()-this.context.startMs:this.pausedAtMs-this.context.startMs}};tr=new WeakMap;function rr(e,t){let n=new nr(({deltaMs:n})=>{if(n>=t)return e(),!1});return n.start(),()=>n.stop()}function ir(...e){let t=e.length===1?e[0]:e[1];(e.length!==2||e[0])&&process.env.NODE_ENV!==`production`&&console.warn(t)}function ar(...e){let t=e.length===1?e[0]:e[1];if((e.length!==2||e[0])&&process.env.NODE_ENV!==`production`)throw Error(t)}function or(e,t){if(e==null)throw Error(t())}function sr(e,t,n){let r=[];for(let n of t)e[n]??r.push(n);if(r.length>0)throw Error(`[zag-js${n?` > ${n}`:``}] missing required props: ${r.join(`, `)}`)}function oee(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function cr(e={}){let{strict:t=!0,hookName:n=`useContext`,providerName:r=`Provider`,errorMessage:i,defaultValue:a}=e,o=De(a);function s(){let e=Oe(o);if(!e&&t){let e=Error(i??oee(n,r));throw e.name=`ContextError`,kn(Error,`captureStackTrace`)&&Dn(Error.captureStackTrace)&&Error.captureStackTrace(e,s),e}return e}return[o.Provider,s,o]}var[lr,ur]=cr({hookName:`useRenderStrategyContext`,providerName:`<RenderStrategyProvider />`}),dr=e=>$t()(e,[`lazyMount`,`unmountOnExit`]),fr=e=>typeof e==`function`,pr=(e,...t)=>fr(e)?e(...t):e,mr=Symbol(`fallback`);function hr(e){for(let t of e)t.dispose()}function see(e,t,n,r={}){let i=new Map;return ye(()=>hr(i.values())),()=>{let n=e()||[];return n[S],_e(()=>{if(!n.length)return hr(i.values()),i.clear(),r.fallback?[ue(e=>(i.set(mr,{dispose:e}),r.fallback()))]:[];let e=Array(n.length),o=i.get(mr);if(!i.size||o){o?.dispose(),i.delete(mr);for(let r=0;r<n.length;r++){let i=n[r],o=t(i,r);a(e,i,r,o)}return e}let s=new Set(i.keys());for(let r=0;r<n.length;r++){let o=n[r],c=t(o,r);s.delete(c);let l=i.get(c);l?(e[r]=l.mapped,l.setIndex?.(r),l.setItem(()=>o)):a(e,o,r,c)}for(let e of s)i.get(e)?.dispose(),i.delete(e);return e})};function a(e,t,r,a){ue(o=>{let[s,c]=O(t),l={setItem:c,dispose:o};if(n.length>1){let[e,t]=O(r);l.setIndex=t,l.mapped=n(s,e)}else l.mapped=n(s);i.set(a,l),e[r]=l.mapped})}}function gr(e){let{by:t}=e;return k(see(()=>e.each,typeof t==`function`?t:e=>e[t],e.children,`fallback`in e?{fallback:()=>e.fallback}:void 0))}var cee=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(` `),lee=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,_r=e=>{let t={},n;for(;n=lee.exec(e);)t[n[1]]=n[2];return t},uee=(e,t)=>{if(En(e)){if(En(t))return`${e};${t}`;e=_r(e)}else En(t)&&(t=_r(t));return Object.assign({},e??{},t??{})};function vr(...e){let t={};for(let n of e){if(!n)continue;for(let e in t){if(e.startsWith(`on`)&&typeof t[e]==`function`&&typeof n[e]==`function`){t[e]=Bn(n[e],t[e]);continue}if(e===`className`||e===`class`){t[e]=cee(t[e],n[e]);continue}if(e===`style`){t[e]=uee(t[e],n[e]);continue}t[e]=n[e]===void 0?t[e]:n[e]}for(let e in n)t[e]===void 0&&(t[e]=n[e]);let e=Object.getOwnPropertySymbols(n);for(let r of e)t[r]=n[r]}return t}function dee(e,t,n){let r=[],i;return a=>{let o=e(a);return o.length!==r.length||o.some((e,t)=>!bn(r[t],e))?(r=o,i=t(o,a),n?.onChange?.(i),i):i}}var yr=`.`,br=`#`,xr=new WeakMap,Sr=new WeakMap;function Cr(e){return e.join(yr)}function fee(e){return e.includes(yr)}function wr(e){return e.startsWith(br)}function pee(e){return e.startsWith(yr)}function mee(e){return wr(e)?e.slice(br.length):e}function Tr(e,t){return e?`${e}${yr}${t}`:t}function hee(e){let t=new Map,n=new Map,r=(e,i)=>{t.set(e,i);let a=i.id;a&&(n.has(a)&&ar(`[zag-js] Duplicate state id: "${a}"`),n.set(a,e));let o=i.states;if(o){or(i.initial,()=>`[zag-js] Compound state "${e}" has child states but no "initial" property`),i.initial in o||ar(`[zag-js] Compound state "${e}" has initial "${String(i.initial)}" which is not a child state`);for(let[t,n]of Object.entries(o))n&&r(Tr(e,t),n)}};for(let[t,n]of Object.entries(e.states))n&&r(t,n);return{index:t,idIndex:n}}function Er(e){let t=xr.get(e);if(t)return t;let{index:n,idIndex:r}=hee(e);return xr.set(e,n),Sr.set(e,r),n}function gee(e,t){return Er(e),Sr.get(e)?.get(t)}function Dr(e){return e?String(e).split(yr).filter(Boolean):[]}function Or(e,t){if(!t)return[];let n=Er(e),r=Dr(t),i=[],a=[];for(let e of r){a.push(e);let t=Cr(a),r=n.get(t);if(!r)break;i.push({path:t,state:r})}return i}function kr(e,t){let n=Er(e),r=Dr(t);if(!r.length)return t;let i=[];for(let e of r){i.push(e);let r=Cr(i);if(!n.has(r))return t}let a=Cr(i),o=n.get(a);for(;o?.initial;){let e=`${a}${yr}${o.initial}`,t=n.get(e);if(!t)break;a=e,o=t}return a}function Ar(e,t){return Er(e).has(t)}function jr(e,t,n){let r=String(t);if(wr(r)){let t=mee(r),n=gee(e,t);return or(n,()=>`[zag-js] Unknown state id: "${t}"`),kr(e,n)}if(pee(r)&&n)return kr(e,Tr(n,r.slice(1)));if(!fee(r)&&n){let t=Dr(n);for(let n=t.length-1;n>=1;n--){let i=Tr(t.slice(0,n).join(yr),r);if(Ar(e,i))return kr(e,i)}if(Ar(e,r))return kr(e,r)}return kr(e,r)}function _ee(e,t,n){let r=Or(e,t);for(let e=r.length-1;e>=0;e--){let t=r[e]?.state.on?.[n];if(t)return{transitions:t,source:r[e]?.path}}return{transitions:e.on?.[n],source:void 0}}function vee(e,t,n,r){let i=t?Or(e,t):[],a=Or(e,n),o=0;for(;o<i.length&&o<a.length&&i[o]?.path===a[o]?.path;)o+=1;let s=i.slice(o).reverse(),c=a.slice(o),l=i.at(-1)?.path===a.at(-1)?.path;return r&&l&&(s=i.slice().reverse(),c=a),{exiting:s,entering:c}}function yee(e,t){return e?e===t||e.startsWith(`${t}${yr}`):!1}function bee(e,t,n){return Or(e,t).some(e=>e.state.tags?.includes(n))}function Mr(){return{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}}}function Nr(e){return Er(e),e}function Pr(){return{guards:Mr(),createMachine:e=>Nr(e),choose:e=>function({choose:t}){return t(e)?.actions}}}var Fr=(e=>(e.NotStarted=`Not Started`,e.Started=`Started`,e.Stopped=`Stopped`,e))(Fr||{}),Ir=`__init__`,xee=Object.defineProperty,See=(e,t,n)=>t in e?xee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lr=(e,t,n)=>See(e,typeof t==`symbol`?t:t+``,n);function Rr(e){if(e)try{if(e.ownerDocument.activeElement!==e)return;let t=e.value.length;e.setSelectionRange(t,t)}catch{}}var Cee=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]),zr=(...e)=>t=>e.reduce((e,t)=>t(e),t),Br=()=>void 0,Vr=e=>typeof e==`object`&&!!e,wee=2147483647,F=e=>e?``:void 0,Hr=e=>e?`true`:void 0,Tee=1,Eee=9,Dee=11,Ur=e=>Vr(e)&&e.nodeType===Tee&&typeof e.nodeName==`string`,Wr=e=>Vr(e)&&e.nodeType===Eee,Oee=e=>Vr(e)&&e===e.window,Gr=e=>Ur(e)?e.localName||``:`#document`;function kee(e){return[`html`,`body`,`#document`].includes(Gr(e))}var Kr=e=>Vr(e)&&e.nodeType!==void 0,qr=e=>Kr(e)&&e.nodeType===Dee&&`host`in e,Jr=e=>Ur(e)&&e.localName===`input`,Yr=e=>!!e?.matches(`a[href]`),Aee=e=>Ur(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1;function Xr(e){return e?ti(e.getRootNode())===e:!1}var jee=/(textarea|select)/;function Zr(e){if(e==null||!Ur(e))return!1;try{return Jr(e)&&e.selectionStart!=null||jee.test(e.localName)||e.isContentEditable||e.getAttribute(`contenteditable`)===`true`||e.getAttribute(`contenteditable`)===``}catch{return!1}}function Qr(e,t){if(!e||!t||!Ur(e)||!Kr(t))return!1;if(Ur(t)&&e===t||e.contains(t))return!0;let n=t.getRootNode?.();if(n&&qr(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function $r(e){return Wr(e)?e:Oee(e)?e.document:e?.ownerDocument??document}function Mee(e){return $r(e).documentElement}function ei(e){return qr(e)?ei(e.host):Wr(e)?e.defaultView??window:Ur(e)?e.ownerDocument?.defaultView??window:window}function ti(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(!e||e===t)break;t=e}return t}function Nee(e){if(Gr(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||qr(e)&&e.host||Mee(e);return qr(t)?t.host:t}function ni(e){let t;try{if(t=e.getRootNode({composed:!0}),Wr(t)||qr(t))return t}catch{}return e.ownerDocument??document}var ri=new WeakMap;function ii(e){return ri.has(e)||ri.set(e,ei(e).getComputedStyle(e)),ri.get(e)}var ai=new Set([`menu`,`listbox`,`dialog`,`grid`,`tree`,`region`,`application`]),Pee=e=>ai.has(e),Fee=e=>e.getAttribute(`aria-controls`)?.split(` `)||[];function Iee(e,t){let n=new Set,r=ni(e),i=e=>{let a=e.querySelectorAll(`[aria-controls]`);for(let e of a){if(e.getAttribute(`aria-expanded`)!==`true`)continue;let a=Fee(e);for(let e of a){if(!e||n.has(e))continue;n.add(e);let a=r.getElementById(e);if(a){let e=a.getAttribute(`role`),n=a.getAttribute(`aria-modal`)===`true`;if(e&&Pee(e)&&!n&&(a===t||a.contains(t)||i(a)))return!0}}}return!1};return i(e)}function Lee(e,t){let n=ni(e),r=new Set,i=e=>{let a=e.querySelectorAll(`[aria-controls]`);for(let e of a){if(e.getAttribute(`aria-expanded`)!==`true`)continue;let a=Fee(e);for(let e of a){if(!e||r.has(e))continue;r.add(e);let a=n.getElementById(e);if(a){let e=a.getAttribute(`role`),n=a.getAttribute(`aria-modal`)===`true`;e&&ai.has(e)&&!n&&(t(a),i(a))}}}};i(e)}function Ree(e){let t=new Set;return Lee(e,n=>{e.contains(n)||t.add(n)}),Array.from(t)}function zee(e){let t=e.getAttribute(`role`);return!!(t&&ai.has(t))}function Bee(e){return e.hasAttribute(`aria-controls`)&&e.getAttribute(`aria-expanded`)===`true`}function Vee(e){return Bee(e)?!0:!!e.querySelector?.(`[aria-controls][aria-expanded="true"]`)}function Hee(e){if(!e.id)return!1;let t=ni(e),n=CSS.escape(e.id),r=`[aria-controls~="${n}"][aria-expanded="true"], [aria-controls="${n}"][aria-expanded="true"]`;return!!(t.querySelector(r)&&zee(e))}var oi=()=>typeof document<`u`;function Uee(){return navigator.userAgentData?.platform??navigator.platform}function Wee(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}var si=e=>oi()&&e.test(Uee()),Gee=e=>oi()&&e.test(Wee()),Kee=e=>oi()&&e.test(navigator.vendor),qee=()=>oi()&&!!navigator.maxTouchPoints,Jee=()=>si(/^iPhone/i),Yee=()=>si(/^iPad/i)||ui()&&navigator.maxTouchPoints>1,ci=()=>Jee()||Yee(),li=()=>ui()||ci(),ui=()=>si(/^Mac/i),di=()=>li()&&Kee(/apple/i),Xee=()=>Gee(/Firefox/i),Zee=()=>Gee(/Android/i);function Qee(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function fi(e){return Qee(e)?.[0]??e.target}function pi(e){let t=e.currentTarget;if(!t||!t.matches(`a[href], button[type='submit'], input[type='submit']`))return!1;let n=e.button===1,r=$ee(e);return n||r}function mi(e){let t=e.currentTarget;if(!t)return!1;let n=t.localName;return e.altKey?n===`a`||n===`button`&&t.type===`submit`||n===`input`&&t.type===`submit`:!1}function hi(e){return ate(e).isComposing||e.keyCode===229}function $ee(e){return ui()?e.metaKey:e.ctrlKey}function ete(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function tte(e){return e.pointerType===``&&e.isTrusted?!0:Zee()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}var gi=e=>e.button===0,_i=e=>e.button===2||ui()&&e.ctrlKey&&e.button===0,nte=e=>e.ctrlKey||e.altKey||e.metaKey,rte=e=>`touches`in e&&e.touches.length>0,ite={Up:`ArrowUp`,Down:`ArrowDown`,Esc:`Escape`," ":`Space`,",":`Comma`,Left:`ArrowLeft`,Right:`ArrowRight`},vi={ArrowLeft:`ArrowRight`,ArrowRight:`ArrowLeft`};function yi(e,t={}){let{dir:n=`ltr`,orientation:r=`horizontal`}=t,i=e.key;return i=ite[i]??i,n===`rtl`&&r===`horizontal`&&i in vi&&(i=vi[i]),i}function ate(e){return e.nativeEvent??e}function bi(e,t=`client`){let n=rte(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var xi=(e,t,n,r)=>{let i=typeof e==`function`?e():e;return i?.addEventListener(t,n,r),()=>{i?.removeEventListener(t,n,r)}};function ote(e,t){let{type:n=`HTMLInputElement`,property:r=`value`}=t,i=ei(e)[n].prototype;return Object.getOwnPropertyDescriptor(i,r)??{}}function Si(e,t){e&&(ote(e,{type:`HTMLInputElement`,property:`checked`}).set?.call(e,t),t?e.setAttribute(`checked`,``):e.removeAttribute(`checked`))}function ste(e,t){let{checked:n,bubbles:r=!0}=t;if(!e)return;let i=ei(e);if(!(e instanceof i.HTMLInputElement))return;Si(e,n);let a=new i.Event(`click`,{bubbles:r});e.dispatchEvent(pte(a))}function cte(e){return e.matches(`textarea, input, select, button`)}function lte(e,t){if(!e)return;let n=cte(e)?e.form:e.closest(`form`),r=e=>{e.defaultPrevented||t()};return n?.addEventListener(`reset`,r,{passive:!0}),()=>n?.removeEventListener(`reset`,r)}function ute(e,t){let n=e?.closest(`fieldset`);if(!n)return;t(n.disabled);let r=new(ei(n)).MutationObserver(()=>t(n.disabled));return r.observe(n,{attributes:!0,attributeFilter:[`disabled`]}),()=>r.disconnect()}function dte(e,t){if(!e)return;let{onFieldsetDisabledChange:n,onFormReset:r}=t,i=[lte(e,r),ute(e,n)];return()=>i.forEach(e=>e?.())}var Ci=Symbol.for(`zag.changeEvent`);function fte(e){return Object.prototype.hasOwnProperty.call(e,Ci)}function pte(e){return fte(e)||Object.defineProperty(e,Ci,{value:!0}),e}var wi=e=>Ur(e)&&e.tagName===`IFRAME`,mte=/^(audio|video|details)$/;function Ti(e){let t=e.getAttribute(`tabindex`);return t?parseInt(t,10):NaN}var hte=e=>!Number.isNaN(Ti(e)),gte=e=>Ti(e)<0;function _te(e){return Jr(e)&&e.type===`radio`}function vte(e){if(!_te(e)||!e.name||e.checked)return!0;let t=`input[type="radio"][name="${CSS.escape(e.name)}"]`,n=e.form??e.ownerDocument,r=Array.from(n.querySelectorAll(t)).filter(t=>t.form===e.form&&ki(t)),i=r.find(e=>e.checked);return i?i===e:r[0]===e}function yte(e,t){if(!t)return null;if(t===!0)return e.shadowRoot||null;let n=t(e);return(n===!0?e.shadowRoot:n)||null}function Ei(e,t,n){let r=[...e],i=[...e],a=new Set,o=new Map;e.forEach((e,t)=>o.set(e,t));let s=0;for(;s<i.length;){let e=i[s++];if(!e||a.has(e))continue;a.add(e);let c=yte(e,t);if(c){let t=Array.from(c.querySelectorAll(Di)).filter(n),a=o.get(e);if(a!==void 0){let e=a+1;r.splice(e,0,...t),t.forEach((t,n)=>{o.set(t,e+n)});for(let n=e+t.length;n<r.length;n++)o.set(r[n],n)}else{let e=r.length;r.push(...t),t.forEach((t,n)=>{o.set(t,e+n)})}i.push(...t)}}return r}var Di=`input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type`,Oi=(e,t={})=>{if(!e)return[];let{includeContainer:n=!1,getShadowRoot:r}=t,i=Array.from(e.querySelectorAll(Di));(n==1||n==`if-empty`&&i.length===0)&&Ur(e)&&ki(e)&&i.unshift(e);let a=[];for(let e of i)if(ki(e)){if(wi(e)&&e.contentDocument){let t=e.contentDocument.body;a.push(...Oi(t,{getShadowRoot:r}));continue}a.push(e)}return r?Ei(a,r,ki):a};function ki(e){return!Ur(e)||e.closest(`[inert]`)?!1:e.matches(Di)&&Aee(e)}function Ai(e,t={}){if(!e)return[];let{includeContainer:n,getShadowRoot:r}=t,i=Array.from(e.querySelectorAll(Di));n&&ji(e)&&i.unshift(e);let a=[];for(let e of i)if(ji(e)){if(wi(e)&&e.contentDocument){let t=e.contentDocument.body;a.push(...Ai(t,{getShadowRoot:r}));continue}a.push(e)}if(r){let e=Ei(a,r,ji);return!e.length&&n?i:e}return!a.length&&n?i:a}function ji(e){return Ur(e)&&e.tabIndex>0?!0:!ki(e)||gte(e)?!1:vte(e)}function Mi(e,t={}){let n=Ai(e,t);return[n[0]||null,n[n.length-1]||null]}function bte(e,t={}){let{current:n,getShadowRoot:r}=t,i=Ai(e,{getShadowRoot:r}),a=e?.ownerDocument||document,o=n??ti(a);return o&&i[i.indexOf(o)+1]||null}function Ni(e){return e.tabIndex<0&&(mte.test(e.localName)||Zr(e))&&!hte(e)?0:e.tabIndex}function Pi(e){let{root:t,getInitialEl:n,filter:r,enabled:i=!0}=e;if(!i)return;let a=null;if(a||=typeof n==`function`?n():n,a||=t?.querySelector(`[data-autofocus],[autofocus]`),!a){let e=Ai(t);a=r?e.filter(r)[0]:e[0]}return a||t||void 0}function xte(e){let t=e.currentTarget;if(!t)return!1;let[n,r]=Mi(t);return!(Xr(n)&&e.shiftKey||Xr(r)&&!e.shiftKey||!n&&!r)}var Fi=class e{constructor(){Lr(this,`id`,null),Lr(this,`fn_cleanup`),Lr(this,`cleanup`,()=>{this.cancel()})}static create(){return new e}request(e){this.cancel(),this.id=globalThis.requestAnimationFrame(()=>{this.id=null,this.fn_cleanup=e?.()})}cancel(){this.id!==null&&(globalThis.cancelAnimationFrame(this.id),this.id=null),this.fn_cleanup?.(),this.fn_cleanup=void 0}isActive(){return this.id!==null}};function Ii(e){let t=Fi.create();return t.request(e),t.cleanup}function Li(e){let t=new Set;function n(e){let n=globalThis.requestAnimationFrame(e);t.add(()=>globalThis.cancelAnimationFrame(n))}return n(()=>n(e)),function(){t.forEach(e=>e())}}function Ste(e,t,n){let r=Ii(()=>{e.removeEventListener(t,i,!0),n()}),i=()=>{r(),n()};return e.addEventListener(t,i,{once:!0,capture:!0}),r}function Cte(e,t){if(!e)return;let{attributes:n,callback:r}=t,i=new(e.ownerDocument.defaultView||window).MutationObserver(e=>{for(let t of e)t.type===`attributes`&&t.attributeName&&n.includes(t.attributeName)&&r(t)});return i.observe(e,{attributes:!0,attributeFilter:n}),()=>i.disconnect()}function Ri(e,t){let{defer:n}=t,r=n?Ii:e=>e(),i=[];return i.push(r(()=>{let n=typeof e==`function`?e():e;i.push(Cte(n,t))})),()=>{i.forEach(e=>e?.())}}function wte(e,t){let{callback:n}=t;if(!e)return;let r=new(e.ownerDocument.defaultView||window).MutationObserver(n);return r.observe(e,{childList:!0,subtree:!0}),()=>r.disconnect()}function Tte(e,t){let{defer:n}=t,r=n?Ii:e=>e(),i=[];return i.push(r(()=>{let n=typeof e==`function`?e():e;i.push(wte(n,t))})),()=>{i.forEach(e=>e?.())}}function zi(e){let t=()=>{let t=ei(e);e.dispatchEvent(new t.MouseEvent(`click`))};Xee()?Ste(e,`keyup`,t):queueMicrotask(t)}function Bi(e){let t=Nee(e);return kee(t)?$r(t).body:Ur(t)&&Vi(t)?t:Bi(t)}function Ete(e,t=[]){let n=Bi(e),r=n===e.ownerDocument.body,i=ei(n);return r?t.concat(i,i.visualViewport||[],Vi(n)?n:[]):t.concat(n,Ete(n,[]))}var Dte=/auto|scroll|overlay|hidden|clip/,Ote=new Set([`inline`,`contents`]);function Vi(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ei(e).getComputedStyle(e);return Dte.test(t+r+n)&&!Ote.has(i)}var Hi=`default`,Ui=``,Wi=new WeakMap;function kte(e={}){let{target:t,doc:n}=e,r=n??document,i=r.documentElement;return ci()?(Hi==="default"&&(Ui=i.style.webkitUserSelect,i.style.webkitUserSelect=`none`),Hi=`disabled`):t&&(Wi.set(t,t.style.userSelect),t.style.userSelect=`none`),()=>Ate({target:t,doc:r})}function Ate(e={}){let{target:t,doc:n}=e,r=(n??document).documentElement;if(ci()){if(Hi!==`disabled`)return;Hi=`restoring`,setTimeout(()=>{Li(()=>{Hi===`restoring`&&(r.style.webkitUserSelect===`none`&&(r.style.webkitUserSelect=Ui||``),Ui=``,Hi=`default`)})},300)}else if(t&&Wi.has(t)){let e=Wi.get(t);t.style.userSelect===`none`&&(t.style.userSelect=e??``),t.getAttribute(`style`)===``&&t.removeAttribute(`style`),Wi.delete(t)}}function jte(e={}){let{defer:t,target:n,...r}=e,i=t?Ii:e=>e(),a=[];return a.push(i(()=>{let e=typeof n==`function`?n():n;a.push(kte({...r,target:e}))})),()=>{a.forEach(e=>e?.())}}function Mte(e,t){let{onPointerMove:n,onPointerUp:r}=t,i=e=>{let t=bi(e);if(!(Math.sqrt(t.x**2+t.y**2)<(e.pointerType===`touch`?10:5))){if(e.pointerType===`mouse`&&e.buttons===0){a(e);return}n({point:t,event:e})}},a=e=>{r({point:bi(e),event:e})},o=[xi(e,`pointermove`,i,!1),xi(e,`pointerup`,a,!1),xi(e,`pointercancel`,a,!1),xi(e,`contextmenu`,a,!1),jte({doc:e})];return()=>{o.forEach(e=>e())}}function Nte(e){let{pointerNode:t,keyboardNode:n=t,onPress:r,onPressStart:i,onPressEnd:a,isValidKey:o=e=>e.key===`Enter`}=e;if(!t)return Br;let s=ei(t),c=Br,l=Br,u=Br,d=e=>({point:bi(e),event:e});function f(e){i?.(d(e))}function p(e){a?.(d(e))}c=zr(xi(t,`pointerdown`,e=>{l(),l=zr(xi(s,`pointerup`,e=>{Qr(t,fi(e))?r?.(d(e)):a?.(d(e))},{passive:!r,once:!0}),xi(s,`pointercancel`,p,{passive:!a,once:!0})),Xr(n)&&e.pointerType===`mouse`&&e.preventDefault(),f(e)},{passive:!i}),xi(n,`focus`,m));function m(){u=zr(xi(n,`keydown`,e=>{o(e)&&(l(),l=xi(n,`keyup`,e=>{if(!o(e))return;let t=d(new s.PointerEvent(`pointerup`));r?.(t),a?.(t)}),f(new s.PointerEvent(`pointerdown`)))}),xi(n,`blur`,()=>{p(new s.PointerEvent(`pointercancel`))}))}return()=>{c(),l(),u()}}function Pte(e,t={}){let{triggerElement:n,onFocus:r,onFocusEnter:i,getShadowRoot:a}=t,o=e?.ownerDocument||document,s=o.body;function c(t){if(t.key!==`Tab`)return;let o=null,[c,l]=Mi(e,{includeContainer:!0,getShadowRoot:a}),u=bte(s,{current:n,getShadowRoot:a}),d=!c&&!l;t.shiftKey&&Xr(u)?(i?.(),o=l):t.shiftKey&&(Xr(c)||d)?o=n:!t.shiftKey&&Xr(n)?(i?.(),o=c):!t.shiftKey&&(Xr(l)||d)&&(o=u),o&&(t.preventDefault(),typeof r==`function`?r(o):o.focus())}return xi(o,`keydown`,c,!0)}function Fte(e,t){let{defer:n,triggerElement:r,...i}=t,a=n?Ii:e=>e(),o=[];return o.push(a(()=>{let t=typeof e==`function`?e():e,n=typeof r==`function`?r():r;o.push(Pte(t,{triggerElement:n,...i}))})),()=>{o.forEach(e=>e?.())}}function Gi(e,t){return Array.from(e?.querySelectorAll(t)??[])}function Ki(e,t){return e?.querySelector(t)??null}var qi=e=>e.id;function Ite(e,t,n=qi){return e.find(e=>n(e)===t)}function Ji(e,t,n=qi){let r=Ite(e,t,n);return r?e.indexOf(r):-1}function Lte(e,t,n=!0){let r=Ji(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function Rte(e,t,n=!0){let r=Ji(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}function zte(e){let t=new WeakMap,n,r=new WeakMap,i=e=>n||(n=new e.ResizeObserver(e=>{for(let n of e){r.set(n.target,n);let e=t.get(n.target);if(e)for(let t of e)t(n)}}),n);return{observe:(n,r)=>{let a=t.get(n)||new Set;a.add(r),t.set(n,a);let o=ei(n);return i(o).observe(n,e),()=>{let e=t.get(n);e&&(e.delete(r),e.size===0&&(t.delete(n),i(o).unobserve(n)))}},unobserve:e=>{t.delete(e),n?.unobserve(e)}}}var Yi=zte({box:`border-box`});function Bte(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Xi(e,t){let{rootEl:n,...r}=t||{};!e||!n||!Vi(n)||!Bte(n)||e.scrollIntoView(r)}var Vte=e=>e.split(``).map(e=>{let t=e.charCodeAt(0);return t>0&&t<128?e:t>=128&&t<=255?`/x${t.toString(16)}`.replace(`/`,`\\`):``}).join(``).trim(),Hte=e=>Vte(e.dataset?.valuetext??e.textContent??``),Ute=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function Wte(e,t,n,r=qi){let i=n?Ji(e,n,r):-1,a=n?Cee(e,i):e;return t.length===1&&(a=a.filter(e=>r(e)!==n)),a.find(e=>Ute(Hte(e),t))}function Gte(e,t,n){let r=e.getAttribute(t),i=r!=null;return r===n?Br:(e.setAttribute(t,n),()=>{i?e.setAttribute(t,r):e.removeAttribute(t)})}function Zi(e,t){if(!e)return Br;let n=Object.keys(t).reduce((t,n)=>(t[n]=e.style.getPropertyValue(n),t),{});return Kte(n,t)?Br:(Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute(`style`)})}function Qi(e,t,n){if(!e)return Br;let r=e.style.getPropertyValue(t);return r===n?Br:(e.style.setProperty(t,n),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute(`style`)})}function Kte(e,t){return Object.keys(e).every(n=>e[n]===t[n])}function qte(e,t){let{state:n,activeId:r,key:i,timeout:a=350,itemToId:o}=t,s=n.keysSoFar+i,c=s.length>1&&Array.from(s).every(e=>e===s[0])?s[0]:s,l=Wte(e.slice(),c,r,o);function u(){clearTimeout(n.timer),n.timer=-1}function d(e){n.keysSoFar=e,u(),e!==``&&(n.timer=+setTimeout(()=>{d(``),u()},a))}return d(s),l}var $i=Object.assign(qte,{defaultOptions:{keysSoFar:``,timer:-1},isValidEvent:Jte});function Jte(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}var Yte={border:`0`,clip:`rect(0 0 0 0)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:`0`,position:`absolute`,width:`1px`,whiteSpace:`nowrap`,wordWrap:`normal`};function Xte(e,t,n){let{signal:r}=t;return[new Promise((t,i)=>{let a=setTimeout(()=>{i(Error(`Timeout of ${n}ms exceeded`))},n);r.addEventListener(`abort`,()=>{clearTimeout(a),i(new DOMException(`Promise aborted`,`AbortError`))}),e.then(e=>{r.aborted||(clearTimeout(a),t(e))}).catch(e=>{r.aborted||(clearTimeout(a),i(e))})}),()=>t.abort()]}function Zte(e,t){let{timeout:n,rootNode:r}=t,i=ei(r),a=$r(r),o=new i.AbortController;return Xte(new Promise(t=>{let n=e();if(n){t(n);return}let r=new i.MutationObserver(()=>{let n=e();n&&n.isConnected&&(r.disconnect(),t(n))});r.observe(a.body,{childList:!0,subtree:!0})}),o,n)}function Qte(e){let t=()=>e.getRootNode?.()??document,n=()=>$r(t()),r=()=>n().defaultView??window,i=()=>ti(t()),a=e=>t().getElementById(e);return{...e,getRootNode:t,getDoc:n,getWin:r,getActiveElement:i,isActiveElement:Xr,getById:a}}function ea(e){let t=e().value??e().defaultValue,n=e().isEqual??Object.is,[r,i]=O(t),a=k(()=>e().value!=null),o={current:r()},s={current:void 0};pe(()=>{let t=a()?e().value:r();s.current=t,o.current=t});let c=t=>{let r=s.current,c=Dn(t)?t(o.current):t;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:c,prev:r}),a()||i(c),n(c,r)||e().onChange?.(c,r)};function l(){let t=a()?e().value:r;return Dn(t)?t():t}return{initial:t,ref:o,get:l,set:c,invoke(t,n){e().onChange?.(t,n)},hash(t){return e().hash?.(t)??String(t)}}}ea.cleanup=e=>{ye(()=>e())},ea.ref=e=>{let t=e;return{get:()=>t,set:e=>{t=e}}};function $te(e){let t={current:e};return{get(e){return t.current[e]},set(e,n){t.current[e]=n}}}function ta(e){return Dn(e)?e():e}var ene=(e,t)=>{let n=[],r=!0;pe(()=>{if(r){n=e.map(e=>ta(e)),r=!1;return}let i=!1;for(let t=0;t<e.length;t++)if(!bn(n[t],ta(e[t]))){i=!0;break}i&&(n=e.map(e=>ta(e)),t())})};function na(e,t={}){let n=k(()=>{let{id:e,ids:n,getRootNode:r}=ia(t);return Qte({id:e,ids:n,getRootNode:r})}),r=(...t)=>{e.debug&&console.log(...t)},i=tne(k(()=>e.props?.({props:Qn(ia(t)),scope:n()})??ia(t))),a=e.context?.({prop:i,bindable:ea,get scope(){return n()},flush:ra,getContext(){return o},getComputed(){return y},getRefs(){return p},getEvent(){return d()}}),o={get(e){return a?.[e].get()},set(e,t){a?.[e].set(t)},initial(e){return a?.[e].initial},hash(e){let t=a?.[e].get();return a?.[e].hash(t)}},s={current:new Map},c={current:null},l={current:null},u={current:{type:``}},d=()=>j(u.current,{current(){return u.current},previous(){return l.current}}),f=()=>j(b,{matches(...e){let t=b.get();return e.some(e=>yee(t,e))},hasTag(t){return bee(e,b.get(),t)}}),p=$te(e.refs?.({prop:i,context:o})??{}),m=()=>({state:f(),context:o,event:d(),prop:i,send:S,action:h,guard:g,track:ene,refs:p,computed:y,flush:ra,get scope(){return n()},choose:v}),h=t=>{let n=Dn(t)?t(m()):t;if(!n)return;let r=n.map(t=>{let n=e.implementations?.actions?.[t];return n||ir(`[zag-js] No implementation found for action "${JSON.stringify(t)}"`),n});for(let e of r)e?.(m())},g=t=>{if(Dn(t))return t(m());let n=e.implementations?.guards?.[t];return n||ir(`[zag-js] No implementation found for guard "${JSON.stringify(t)}"`),n?.(m())},_=t=>{let n=Dn(t)?t(m()):t;if(!n)return;let r=n.map(t=>{let n=e.implementations?.effects?.[t];return n||ir(`[zag-js] No implementation found for effect "${JSON.stringify(t)}"`),n}),i=[];for(let e of r){let t=e?.(m());t&&i.push(t)}return()=>i.forEach(e=>e?.())},v=e=>nee(e).find(e=>{let t=!e.guard;return En(e.guard)?t=!!g(e.guard):Dn(e.guard)&&(t=e.guard(m())),t}),y=t=>{or(e.computed,()=>`[zag-js] No computed object found on machine`);let r=e.computed[t];return r({context:o,event:u.current,prop:i,refs:p,scope:n(),computed:y})},b=ea(()=>({defaultValue:jr(e,e.initialState({prop:i})),onChange(t,n){let{exiting:r,entering:i}=vee(e,n,t,c.current?.reenter);if(r.forEach(e=>{s.current.get(e.path)?.(),s.current.delete(e.path)}),r.forEach(e=>{h(e.state?.exit)}),h(c.current?.actions),i.forEach(e=>{let t=_(e.state?.effects);if(t){let n=s.current.get(e.path);s.current.set(e.path,n?Bn(n,t):t)}}),n===`__init__`){h(e.entry);let t=_(e.effects);if(t){let e=s.current.get(Ir);s.current.set(Ir,e?Bn(e,t):t)}}i.forEach(e=>{h(e.state?.entry)})}})),x=Fr.NotStarted;ve(()=>{let e=x===Fr.Started;x=Fr.Started,r(e?`rehydrating...`:`initializing...`),b.invoke(b.initial,Ir)}),ye(()=>{r(`unmounting...`),x=Fr.Stopped,s.current.forEach(e=>e?.()),s.current=new Map,c.current=null,h(e.exit)});let S=t=>{queueMicrotask(()=>{if(x!==Fr.Started)return;l.current=u.current,u.current=t;let n=_e(()=>b.get()),{transitions:i,source:a}=_ee(e,n,t.type),o=v(i);if(!o)return;c.current=o;let s=jr(e,o.target??n,a);r(`transition`,t.type,o.target||n,`(${o.actions})`),s===n?o.reenter?b.invoke(n,n):h(o.actions):b.set(s)})};return e.watch?.(m()),{state:f(),send:S,context:o,prop:i,get scope(){return n()},refs:p,computed:y,event:d(),getStatus:()=>x}}function ra(e){e()}function ia(e){return Dn(e)?e():e}function tne(e){return function(t){return e()[t]}}function I(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`function`&&(r=r()),r){let n=Object.getOwnPropertyDescriptors(r);for(let r in n)r in t||Object.defineProperty(t,r,{enumerable:!0,get(){let t={};if(r===`style`||r===`class`||r===`className`||r.startsWith(`on`)){for(let n=0;n<e.length;n++){let i=e[n];typeof i==`function`&&(i=i()),t=vr(t,{[r]:(i||{})[r]})}return t[r]}for(let t=e.length-1;t>=0;t--){let n,i=e[t];if(typeof i==`function`&&(i=i()),n=(i||{})[r],n!==void 0)return n}}})}}return t}function nne(e){return new Proxy({},{get(t,n){return n===`style`?t=>e({style:t}).style:e}})}var aa={onFocus:`onFocusIn`,onBlur:`onFocusOut`,onDoubleClick:`onDblClick`,onChange:`onInput`,defaultChecked:`checked`,defaultValue:`value`,htmlFor:`for`,className:`class`},rne=e=>e.startsWith(`--`)?e:lne(e);function ine(e){return e in aa?aa[e]:e}var oa=nne(e=>{let t={};for(let n in e){let r=e[n];if(!(n===`readOnly`&&r===!1)){if(n===`style`&&wn(r)){t.style=ane(r);continue}if(n===`children`){En(r)&&(t.textContent=r);continue}t[ine(n)]=r}}return t});function ane(e){let t={};for(let n in e){let r=e[n];!En(r)&&!Tn(r)||(t[rne(n)]=r)}return t}var one=/[A-Z]/g,sne=/^ms-/;function cne(e){return`-`+e.toLowerCase()}var sa={};function lne(e){if(sa.hasOwnProperty(e))return sa[e];let t=e.replace(one,cne);return sa[e]=sne.test(t)?`-`+t:t}var ca=e=>t=>{let[n,r]=ot(t,[`asChild`]);return n.asChild?n.asChild(e=>{let[,t]=ot(r,[`ref`]);return I(t,e)}):A(Qt,j({component:e},r))};function une(){let e=new Map;return new Proxy(ca,{apply(e,t,n){return ca(n[0])},get(t,n){let r=n;return e.has(r)||e.set(r,ca(r)),e.get(r)}})}var L=une(),[dne,la]=cr({hookName:`useEnvironmentContext`,providerName:`<EnvironmentProvider />`,strict:!1,defaultValue:()=>({getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window})}),fne=e=>{let[t,n]=O(),r=()=>pr(e.value)??t()?.getRootNode()??document;return A(dne,{value:k(()=>({getRootNode:r,getDocument:()=>$r(r()),getWindow:()=>ei(r())})),get children(){return[St(()=>e.children),A(M,{get when(){return!e.value},get children(){return A(L.span,{hidden:!0,ref:n})}})]}})},[pne,ua]=cr({hookName:`useEnvironmentContext`,providerName:`<EnvironmentProvider />`,strict:!1,defaultValue:()=>({dir:`ltr`,locale:`en-US`})}),mne=Object.defineProperty,da=(e,t)=>{for(var n in t)mne(e,n,{get:t[n],enumerable:!0})},fa=(e,t=[])=>({parts:(...n)=>{if(hne(t))return fa(e,n);throw Error(`createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?`)},extendWith:(...n)=>fa(e,[...t,...n]),omit:(...n)=>fa(e,t.filter(e=>!n.includes(e))),rename:e=>fa(e,t),keys:()=>t,build:()=>[...new Set(t)].reduce((t,n)=>Object.assign(t,{[n]:{selector:[`&[data-scope="${pa(e)}"][data-part="${pa(n)}"]`,`& [data-scope="${pa(e)}"][data-part="${pa(n)}"]`].join(`, `),attrs:{"data-scope":pa(e),"data-part":pa(n)}}}),{})}),pa=e=>e.replace(/([A-Z])([A-Z])/g,`$1-$2`).replace(/([a-z])([A-Z])/g,`$1-$2`).replace(/[\s_]+/g,`-`).toLowerCase(),hne=e=>e.length===0,ma=fa(`collapsible`).parts(`root`,`trigger`,`content`,`indicator`).build(),gne=e=>e.ids?.root??`collapsible:${e.id}`,ha=e=>e.ids?.content??`collapsible:${e.id}:content`,_ne=e=>e.ids?.trigger??`collapsible:${e.id}:trigger`,ga=e=>e.getById(ha(e));function vne(e,t){let{state:n,send:r,context:i,scope:a,prop:o}=e,s=n.matches(`open`)||n.matches(`closing`),c=n.matches(`open`),l=n.matches(`closed`),{width:u,height:d}=i.get(`size`),f=!!o(`disabled`),p=o(`collapsedHeight`),m=o(`collapsedWidth`),h=p!=null,g=m!=null,_=h||g,v=!i.get(`initial`)&&c;return{disabled:f,visible:s,open:c,measureSize(){r({type:`size.measure`})},setOpen(e){n.matches(`open`)!==e&&r({type:e?`open`:`close`})},getRootProps(){return t.element({...ma.root.attrs,"data-state":c?`open`:`closed`,dir:o(`dir`),id:gne(a)})},getContentProps(){return t.element({...ma.content.attrs,id:ha(a),"data-collapsible":``,"data-state":v?void 0:c?`open`:`closed`,"data-disabled":F(f),"data-has-collapsed-size":F(_),hidden:!s&&!_,dir:o(`dir`),style:{"--height":Zn(d),"--width":Zn(u),"--collapsed-height":Zn(p),"--collapsed-width":Zn(m),...l&&h&&{overflow:`hidden`,minHeight:Zn(p),maxHeight:Zn(p)},...l&&g&&{overflow:`hidden`,minWidth:Zn(m),maxWidth:Zn(m)}}})},getTriggerProps(){return t.element({...ma.trigger.attrs,id:_ne(a),dir:o(`dir`),type:`button`,"data-state":c?`open`:`closed`,"data-disabled":F(f),"aria-controls":ha(a),"aria-expanded":s||!1,onClick(e){e.defaultPrevented||f||r({type:c?`close`:`open`})}})},getIndicatorProps(){return t.element({...ma.indicator.attrs,dir:o(`dir`),"data-state":c?`open`:`closed`,"data-disabled":F(f)})}}}var yne=Nr({initialState({prop:e}){return e(`open`)||e(`defaultOpen`)?`open`:`closed`},context({bindable:e}){return{size:e(()=>({defaultValue:{height:0,width:0},sync:!0})),initial:e(()=>({defaultValue:!1}))}},refs(){return{cleanup:void 0,stylesRef:void 0}},watch({track:e,prop:t,action:n}){e([()=>t(`open`)],()=>{n([`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})=>e(`open`)!=null},effects:{trackEnterAnimation:({send:e,scope:t})=>{let n,r=Ii(()=>{let r=ga(t);if(!r)return;let i=ii(r).animationName;if(!i||i===`none`){e({type:`animation.end`});return}let a=t=>{fi(t)===r&&e({type:`animation.end`})};r.addEventListener(`animationend`,a),n=()=>{r.removeEventListener(`animationend`,a)}});return()=>{r(),n?.()}},trackExitAnimation:({send:e,scope:t})=>{let n,r=Ii(()=>{let r=ga(t);if(!r)return;let i=ii(r).animationName;if(!i||i===`none`){e({type:`animation.end`});return}let a=t=>{fi(t)===r&&e({type:`animation.end`})};r.addEventListener(`animationend`,a);let o=Zi(r,{animationFillMode:`forwards`});n=()=>{r.removeEventListener(`animationend`,a),Li(()=>o())}});return()=>{r(),n?.()}},trackTabbableElements:({scope:e,prop:t})=>{if(!t(`collapsedHeight`)&&!t(`collapsedWidth`))return;let n=ga(e);if(!n)return;let r=()=>{let e=Ai(n).map(e=>Gte(e,`inert`,``));return()=>{e.forEach(e=>e())}},i=r(),a=Tte(n,{callback(){i(),i=r()}});return()=>{i(),a()}}},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 n=ga(t);if(!n)return;let{height:r,width:i}=n.getBoundingClientRect();e.set(`size`,{height:r,width:i})},computeSize:({refs:e,scope:t,context:n})=>{e.get(`cleanup`)?.();let r=Ii(()=>{let e=ga(t);if(!e)return;let r=e.hidden;e.style.animationName=`none`,e.style.animationDuration=`0s`,e.hidden=!1;let i=e.getBoundingClientRect();n.set(`size`,{height:i.height,width:i.width}),n.get(`initial`)&&(e.style.animationName=``,e.style.animationDuration=``),e.hidden=r});e.set(`cleanup`,r)},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`})}}}}),[_a,va]=cr({hookName:`useCollapsibleContext`,providerName:`<CollapsibleProvider />`}),bne=e=>{let t=va(),n=I(()=>t().getContentProps(),e);return A(M,{get when(){return!t().unmounted},get children(){return A(L.div,n)}})},xne=e=>e.children(va()),Sne=(e={})=>{let t=ct(),n=ua(),r=la(),[i,a]=dr(pr(e)),o=na(yne,k(()=>({id:t,dir:n().dir,getRootNode:r().getRootNode,...a}))),[s,c]=O(!1);pe(()=>{l().visible&&c(!0)});let l=k(()=>vne(o,oa));return k(()=>({...l(),unmounted:!l().visible&&!s()&&i.lazyMount||i.unmountOnExit&&!l().visible&&s()}))},Cne=e=>{let[t,n]=$t()(e,[`collapsedHeight`,`collapsedWidth`,`defaultOpen`,`disabled`,`id`,`ids`,`lazyMount`,`onExitComplete`,`onOpenChange`,`open`,`unmountOnExit`]),r=Sne(t),i=I(()=>r().getRootProps(),n);return A(_a,{value:r,get children(){return A(L.div,i)}})},wne=e=>{let[{value:t},n]=$t()(e,[`value`]),r=I(()=>t().getRootProps(),n);return A(_a,{value:t,get children(){return A(L.div,r)}})},Tne=e=>{let t=va(),n=I(()=>t().getTriggerProps(),e);return A(L.button,n)},Ene=e=>{let t=va(),n=I(()=>t().getIndicatorProps(),e);return A(L.div,n)},ya={};da(ya,{Content:()=>bne,Context:()=>xne,Indicator:()=>Ene,Root:()=>Cne,RootProvider:()=>wne,Trigger:()=>Tne});function Dne(e){return!(e.metaKey||!ui()&&e.altKey||e.ctrlKey||e.key===`Control`||e.key===`Shift`||e.key===`Meta`)}var One=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function kne(e,t,n){let r=n?fi(n):null,i=$r(r),a=ei(r),o=ti(i);return e=e||o instanceof a.HTMLInputElement&&!One.has(o?.type)||o instanceof a.HTMLTextAreaElement||o instanceof a.HTMLElement&&o.isContentEditable,!(e&&t===`keyboard`&&n instanceof a.KeyboardEvent&&!Reflect.has(Ane,n.key))}var ba=null,xa=new Set,Sa=new Map,Ca=!1,wa=!1,Ane={Tab:!0,Escape:!0};function Ta(e,t){for(let n of xa)n(e,t)}function Ea(e){Ca=!0,Dne(e)&&(ba=`keyboard`,Ta(`keyboard`,e))}function Da(e){ba=`pointer`,(e.type===`mousedown`||e.type===`pointerdown`)&&(Ca=!0,Ta(`pointer`,e))}function Oa(e){tte(e)&&(Ca=!0,ba=`virtual`)}function ka(e){let t=fi(e);t===ei(t)||t===$r(t)||!e.isTrusted||(!Ca&&!wa&&(ba=`virtual`,Ta(`virtual`,e)),Ca=!1,wa=!1)}function Aa(){Ca=!1,wa=!0}function jne(e){if(typeof window>`u`||Sa.get(ei(e)))return;let t=ei(e),n=$r(e),r=t.HTMLElement.prototype.focus;function i(){Ca=!0,r.apply(this,arguments)}try{Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:i})}catch{}n.addEventListener(`keydown`,Ea,!0),n.addEventListener(`keyup`,Ea,!0),n.addEventListener(`click`,Oa,!0),t.addEventListener(`focus`,ka,!0),t.addEventListener(`blur`,Aa,!1),t.PointerEvent===void 0?(n.addEventListener(`mousedown`,Da,!0),n.addEventListener(`mousemove`,Da,!0),n.addEventListener(`mouseup`,Da,!0)):(n.addEventListener(`pointerdown`,Da,!0),n.addEventListener(`pointermove`,Da,!0),n.addEventListener(`pointerup`,Da,!0)),t.addEventListener(`beforeunload`,()=>{Mne(e)},{once:!0}),Sa.set(t,{focus:r})}var Mne=(e,t)=>{let n=ei(e),r=$r(e);t&&r.removeEventListener(`DOMContentLoaded`,t);let i=Sa.get(n);if(i){try{Object.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,value:i.focus})}catch{}r.removeEventListener(`keydown`,Ea,!0),r.removeEventListener(`keyup`,Ea,!0),r.removeEventListener(`click`,Oa,!0),n.removeEventListener(`focus`,ka,!0),n.removeEventListener(`blur`,Aa,!1),n.PointerEvent===void 0?(r.removeEventListener(`mousedown`,Da,!0),r.removeEventListener(`mousemove`,Da,!0),r.removeEventListener(`mouseup`,Da,!0)):(r.removeEventListener(`pointerdown`,Da,!0),r.removeEventListener(`pointermove`,Da,!0),r.removeEventListener(`pointerup`,Da,!0)),Sa.delete(n)}};function ja(){return ba}function Ma(e){ba=e,Ta(e,null)}function Na(){return ba===`keyboard`||ba===`virtual`}function Pa(e={}){let{isTextInput:t,autoFocus:n,onChange:r,root:i}=e;jne(i),r?.({isFocusVisible:n||Na(),modality:ba});let a=(e,n)=>{kne(!!t,e,n)&&r?.({isFocusVisible:Na(),modality:e})};return xa.add(a),()=>{xa.delete(a)}}function Nne(e,t){let{state:n,send:r,context:i}=e,a=n.matches(`mounted`,`unmountSuspended`);return{skip:!i.get(`initial`),present:a,setNode(e){e&&r({type:`NODE.SET`,node:e})},unmount(){r({type:`UNMOUNT`})}}}var Pne=Nr({props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e(`present`)?`mounted`:`unmounted`},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:[`cleanupNode`],watch({track:e,prop:t,send:n}){e([()=>t(`present`)],()=>{n({type:`PRESENCE.CHANGED`})})},on:{"NODE.SET":{actions:[`setupNode`]},"PRESENCE.CHANGED":{actions:[`setInitial`,`syncPresence`]}},states:{mounted:{on:{UNMOUNT:{target:`unmounted`,actions:[`clearPrevAnimationName`,`invokeOnExitComplete`]},"UNMOUNT.SUSPEND":{target:`unmountSuspended`}}},unmountSuspended:{effects:[`trackAnimationEvents`],on:{MOUNT:{target:`mounted`,actions:[`setPrevAnimationName`]},UNMOUNT:{target:`unmounted`,actions:[`clearPrevAnimationName`,`invokeOnExitComplete`]}}},unmounted:{on:{MOUNT:{target:`mounted`,actions:[`setPrevAnimationName`]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get(`initial`)||queueMicrotask(()=>{e.set(`initial`,!0)})},invokeOnExitComplete:({prop:e,refs:t})=>{e(`onExitComplete`)?.();let n=t.get(`node`);if(!n)return;let r=new(ei(n)).CustomEvent(`exitcomplete`,{bubbles:!1});n.dispatchEvent(r)},setupNode:({refs:e,event:t})=>{e.get(`node`)!==t.node&&(e.set(`node`,t.node),e.set(`styles`,ii(t.node)))},cleanupNode:({refs:e})=>{e.set(`node`,null),e.set(`styles`,null)},syncPresence:({context:e,refs:t,send:n,prop:r})=>{let i=r(`present`);if(i)return n({type:`MOUNT`,src:`presence.changed`});let a=t.get(`node`);if(!i&&a?.ownerDocument.visibilityState===`hidden`)return n({type:`UNMOUNT`,src:`visibilitychange`});Ii(()=>{if(r(`present`))return;let i=Fa(t.get(`styles`));e.set(`unmountAnimationName`,i),i===`none`||i===e.get(`prevAnimationName`)||t.get(`styles`)?.display===`none`||t.get(`styles`)?.animationDuration===`0s`?n({type:`UNMOUNT`,src:`presence.changed`}):n({type:`UNMOUNT.SUSPEND`})})},setPrevAnimationName:({context:e,refs:t})=>{Ii(()=>{e.set(`prevAnimationName`,Fa(t.get(`styles`)))})},clearPrevAnimationName:({context:e})=>{e.set(`prevAnimationName`,null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:n,prop:r})=>{let i=t.get(`node`);if(!i)return;let a=n=>{(n.composedPath?.()?.[0]??n.target)===i&&e.set(`prevAnimationName`,Fa(t.get(`styles`)))},o=a=>{let o=Fa(t.get(`styles`));fi(a)===i&&o===e.get(`unmountAnimationName`)&&!r(`present`)&&n({type:`UNMOUNT`,src:`animationend`})},s=e=>{fi(e)===i&&!r(`present`)&&n({type:`UNMOUNT`,src:`animationcancel`})};i.addEventListener(`animationstart`,a),i.addEventListener(`animationcancel`,s),i.addEventListener(`animationend`,o);let c=Zi(i,{animationFillMode:`forwards`});return()=>{i.removeEventListener(`animationstart`,a),i.removeEventListener(`animationcancel`,s),i.removeEventListener(`animationend`,o),Li(()=>c())}}}}});function Fa(e){return e?.animationName||`none`}var Ia=e=>{let[t,n]=dr(pr(e)),[r,i]=O(!1),a=na(Pne,e),o=k(()=>Nne(a,oa));pe(()=>{o().present&&i(!0)});let s=e=>{e&&a.send({type:`NODE.SET`,node:e})};return k(()=>({unmounted:!o().present&&!r()&&t.lazyMount||t.unmountOnExit&&!o().present&&r(),present:o().present,ref:s,presenceProps:{hidden:!o().present,"data-state":o().skip&&n.skipAnimationOnMount?void 0:n.present?`open`:`closed`}}))},Fne=e=>typeof e==`function`,Ine=(e,t)=>{for(let n of e)Fne(n)&&n(t)};function La(...e){let t=null;return pe(()=>{Ine(e,t)}),n=>{t=n,Ine(e,n)}}var Ra=e=>$t()(e,[`immediate`,`lazyMount`,`onExitComplete`,`present`,`skipAnimationOnMount`,`unmountOnExit`]),[za,Ba]=cr({hookName:`usePresenceContext`,providerName:`<PresenceProvider />`}),Va=fa(`hoverCard`).parts(`arrow`,`arrowTip`,`trigger`,`positioner`,`content`).build(),Lne=[`top`,`right`,`bottom`,`left`],Ha=Math.min,Ua=Math.max,Wa=Math.round,Ga=Math.floor,Ka=e=>({x:e,y:e}),Rne={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function qa(e,t,n){return Ua(e,Ha(t,n))}function Ja(e,t){return typeof e==`function`?e(t):e}function Ya(e){return e.split(`-`)[0]}function Xa(e){return e.split(`-`)[1]}function Za(e){return e===`x`?`y`:`x`}function Qa(e){return e===`y`?`height`:`width`}function $a(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function eo(e){return Za($a(e))}function zne(e,t,n){n===void 0&&(n=!1);let r=Xa(e),i=eo(e),a=Qa(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=io(o)),[o,io(o)]}function Bne(e){let t=io(e);return[to(e),t,to(t)]}function to(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var no=[`left`,`right`],ro=[`right`,`left`],Vne=[`top`,`bottom`],Hne=[`bottom`,`top`];function Une(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ro:no:t?no:ro;case`left`:case`right`:return t?Vne:Hne;default:return[]}}function Wne(e,t,n,r){let i=Xa(e),a=Une(Ya(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(to)))),a}function io(e){let t=Ya(e);return Rne[t]+e.slice(t.length)}function Gne(e){return{top:0,right:0,bottom:0,left:0,...e}}function ao(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Gne(e)}function oo(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function so(e,t,n){let{reference:r,floating:i}=e,a=$a(t),o=eo(t),s=Qa(o),c=Ya(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Xa(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function Kne(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Ja(t,e),p=ao(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=oo(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=oo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var qne=50,Jne=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Kne},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=so(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<qne&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=so(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Yne=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Ja(e,t)||{};if(l==null)return{};let d=ao(u),f={x:n,y:r},p=eo(i),m=Qa(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Ha(d[_],T),ee=Ha(d[v],T),te=E,ne=C-h[m]-ee,re=C/2-h[m]/2+w,D=qa(te,re,ne),ie=!c.arrow&&Xa(i)!=null&&re!==D&&a.reference[m]/2-(re<te?E:ee)-h[m]/2<0,ae=ie?re<te?re-te:re-ne:0;return{[p]:f[p]+ae,data:{[p]:D,centerOffset:re-D-ae,...ie&&{alignmentOffset:ae}},reset:ie}}}),Xne=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Ja(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Ya(r),_=$a(o),v=Ya(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[io(o)]:Bne(o)),x=p!==`none`;!d&&x&&b.push(...Wne(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=zne(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==$a(t))||T.every(e=>$a(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=$a(e.placement);return t===_||t===`y`}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]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function co(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function lo(e){return Lne.some(t=>e[t]>=0)}var Zne=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Ja(e,t);switch(i){case`referenceHidden`:{let e=co(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:lo(e)}}}case`escaped`:{let e=co(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:lo(e)}}}default:return{}}}}},uo=new Set([`left`,`top`]);async function Qne(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Ya(n),s=Xa(n),c=$a(n)===`y`,l=uo.has(o)?-1:1,u=a&&c?-1:1,d=Ja(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var $ne=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Qne(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ere=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Ja(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=$a(Ya(i)),p=Za(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=qa(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=qa(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},tre=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Ja(e,t),u={x:n,y:r},d=$a(i),f=Za(d),p=u[f],m=u[d],h=Ja(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=uo.has(Ya(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},nre=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Ja(e,t),u=await o.detectOverflow(t,l),d=Ya(i),f=Xa(i),p=$a(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Ha(h-u[g],v),x=Ha(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Ua(u.left,0),t=Ua(u.right,0),n=Ua(u.top,0),r=Ua(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Ua(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Ua(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function fo(){return typeof window<`u`}function po(e){return go(e)?(e.nodeName||``).toLowerCase():`#document`}function mo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ho(e){return((go(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function go(e){return fo()?e instanceof Node||e instanceof mo(e).Node:!1}function _o(e){return fo()?e instanceof Element||e instanceof mo(e).Element:!1}function vo(e){return fo()?e instanceof HTMLElement||e instanceof mo(e).HTMLElement:!1}function yo(e){return!fo()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof mo(e).ShadowRoot}function bo(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Do(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function rre(e){return/^(table|td|th)$/.test(po(e))}function xo(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ire=/transform|translate|scale|rotate|perspective|filter/,are=/paint|layout|strict|content/,So=e=>!!e&&e!==`none`,Co;function wo(e){let t=_o(e)?Do(e):e;return So(t.transform)||So(t.translate)||So(t.scale)||So(t.rotate)||So(t.perspective)||!To()&&(So(t.backdropFilter)||So(t.filter))||ire.test(t.willChange||``)||are.test(t.contain||``)}function ore(e){let t=ko(e);for(;vo(t)&&!Eo(t);){if(wo(t))return t;if(xo(t))return null;t=ko(t)}return null}function To(){return Co??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Co}function Eo(e){return/^(html|body|#document)$/.test(po(e))}function Do(e){return mo(e).getComputedStyle(e)}function Oo(e){return _o(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ko(e){if(po(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||yo(e)&&e.host||ho(e);return yo(t)?t.host:t}function Ao(e){let t=ko(e);return Eo(t)?e.ownerDocument?e.ownerDocument.body:e.body:vo(t)&&bo(t)?t:Ao(t)}function jo(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Ao(e),i=r===e.ownerDocument?.body,a=mo(r);if(i){let e=Mo(a);return t.concat(a,a.visualViewport||[],bo(r)?r:[],e&&n?jo(e):[])}else return t.concat(r,jo(r,[],n))}function Mo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function No(e){let t=Do(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=vo(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Wa(n)!==a||Wa(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Po(e){return _o(e)?e:e.contextElement}function Fo(e){let t=Po(e);if(!vo(t))return Ka(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=No(t),o=(a?Wa(n.width):n.width)/r,s=(a?Wa(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var sre=Ka(0);function Io(e){let t=mo(e);return!To()||!t.visualViewport?sre:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cre(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==mo(e)?!1:t}function Lo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Po(e),o=Ka(1);t&&(r?_o(r)&&(o=Fo(r)):o=Fo(e));let s=cre(a,n,r)?Io(a):Ka(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=mo(a),t=r&&_o(r)?mo(r):r,n=e,i=Mo(n);for(;i&&r&&t!==n;){let e=Fo(i),t=i.getBoundingClientRect(),r=Do(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=mo(i),i=Mo(n)}}return oo({width:u,height:d,x:c,y:l})}function Ro(e,t){let n=Oo(e).scrollLeft;return t?t.left+n:Lo(ho(e)).left+n}function zo(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ro(e,n),y:n.top+t.scrollTop}}function lre(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=ho(r),s=t?xo(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Ka(1),u=Ka(0),d=vo(r);if((d||!d&&!a)&&((po(r)!==`body`||bo(o))&&(c=Oo(r)),d)){let e=Lo(r);l=Fo(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?zo(o,c):Ka(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function ure(e){return Array.from(e.getClientRects())}function dre(e){let t=ho(e),n=Oo(e),r=e.ownerDocument.body,i=Ua(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Ua(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Ro(e),s=-n.scrollTop;return Do(r).direction===`rtl`&&(o+=Ua(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Bo=25;function fre(e,t){let n=mo(e),r=ho(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=To();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Ro(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Bo&&(a-=o)}else l<=Bo&&(a+=l);return{width:a,height:o,x:s,y:c}}function pre(e,t){let n=Lo(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=vo(e)?Fo(e):Ka(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Vo(e,t,n){let r;if(t===`viewport`)r=fre(e,n);else if(t===`document`)r=dre(ho(e));else if(_o(t))r=pre(t,n);else{let n=Io(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return oo(r)}function Ho(e,t){let n=ko(e);return n===t||!_o(n)||Eo(n)?!1:Do(n).position===`fixed`||Ho(n,t)}function mre(e,t){let n=t.get(e);if(n)return n;let r=jo(e,[],!1).filter(e=>_o(e)&&po(e)!==`body`),i=null,a=Do(e).position===`fixed`,o=a?ko(e):e;for(;_o(o)&&!Eo(o);){let t=Do(o),n=wo(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||bo(o)&&!n&&Ho(e,o))?r=r.filter(e=>e!==o):i=t,o=ko(o)}return t.set(e,r),r}function hre(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?xo(t)?[]:mre(t,this._c):[].concat(n),r],o=Vo(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Vo(t,a[e],i);s=Ua(n.top,s),c=Ha(n.right,c),l=Ha(n.bottom,l),u=Ua(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function gre(e){let{width:t,height:n}=No(e);return{width:t,height:n}}function _re(e,t,n){let r=vo(t),i=ho(t),a=n===`fixed`,o=Lo(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Ka(0);function l(){c.x=Ro(i)}if(r||!r&&!a)if((po(t)!==`body`||bo(i))&&(s=Oo(t)),r){let e=Lo(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?zo(i,s):Ka(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Uo(e){return Do(e).position===`static`}function Wo(e,t){if(!vo(e)||Do(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return ho(e)===n&&(n=n.ownerDocument.body),n}function Go(e,t){let n=mo(e);if(xo(e))return n;if(!vo(e)){let t=ko(e);for(;t&&!Eo(t);){if(_o(t)&&!Uo(t))return t;t=ko(t)}return n}let r=Wo(e,t);for(;r&&rre(r)&&Uo(r);)r=Wo(r,t);return r&&Eo(r)&&Uo(r)&&!wo(r)?n:r||ore(e)||n}var vre=async function(e){let t=this.getOffsetParent||Go,n=this.getDimensions,r=await n(e.floating);return{reference:_re(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function yre(e){return Do(e).direction===`rtl`}var bre={convertOffsetParentRelativeRectToViewportRelativeRect:lre,getDocumentElement:ho,getClippingRect:hre,getOffsetParent:Go,getElementRects:vre,getClientRects:ure,getDimensions:gre,getScale:Fo,isElement:_o,isRTL:yre};function Ko(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xre(e,t){let n=null,r,i=ho(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Ga(d),h=Ga(i.clientWidth-(u+f)),g=Ga(i.clientHeight-(d+p)),_=Ga(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Ua(0,Ha(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Ko(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Sre(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Po(e),u=i||a?[...l?jo(l):[],...t?jo(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?xre(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Lo(e):null;c&&g();function g(){let t=Lo(e);h&&!Ko(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Cre=$ne,wre=ere,Tre=Xne,Ere=nre,Dre=Zne,Ore=Yne,kre=tre,Are=(e,t,n)=>{let r=new Map,i={platform:bre,...n},a={...i.platform,_c:r};return Jne(e,t,{...i,platform:a})};function qo(e=0,t=0,n=0,r=0){if(typeof DOMRect==`function`)return new DOMRect(e,t,n,r);let i={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...i,toJSON:()=>i}}function jre(e){if(!e)return qo();let{x:t,y:n,width:r,height:i}=e;return qo(t,n,r,i)}function Mre(e,t){return{contextElement:Ur(e)?e:e?.contextElement,getBoundingClientRect:()=>{let n=e,r=t?.(n);return r||!n?jre(r):n.getBoundingClientRect()}}}var Jo=e=>({variable:e,reference:`var(${e})`}),Yo={arrowSize:Jo(`--arrow-size`),arrowSizeHalf:Jo(`--arrow-size-half`),arrowBg:Jo(`--arrow-background`),transformOrigin:Jo(`--transform-origin`),arrowOffset:Jo(`--arrow-offset`)},Nre=e=>e===`top`||e===`bottom`?`y`:`x`;function Pre(e,t){return{name:`transformOrigin`,fn(n){let{elements:r,middlewareData:i,placement:a,rects:o,y:s}=n,c=a.split(`-`)[0],l=Nre(c),u=i.arrow?.x||0,d=i.arrow?.y||0,f=t?.clientWidth||0,p=t?.clientHeight||0,m=u+f/2,h=d+p/2,g=Math.abs(i.shift?.y||0),_=o.reference.height/2,v=p/2,y=e.offset?.mainAxis??e.gutter,b=typeof y==`number`?y+v:y??v,x=g>b,S={top:`${m}px calc(100% + ${b}px)`,bottom:`${m}px ${-b}px`,left:`calc(100% + ${b}px) ${h}px`,right:`${-b}px ${h}px`}[c],C=`${m}px ${o.reference.y+_-s}px`,w=!!e.overlap&&l===`y`&&x;return r.floating.style.setProperty(Yo.transformOrigin.variable,w?C:S),{data:{transformOrigin:w?C:S}}}}}var Fre={name:`rects`,fn({rects:e}){return{data:e}}},Ire=e=>{if(e)return{name:`shiftArrow`,fn({placement:t,middlewareData:n}){if(!n.arrow)return{};let{x:r,y:i}=n.arrow,a=t.split(`-`)[0];return Object.assign(e.style,{left:r==null?``:`${r}px`,top:i==null?``:`${i}px`,[a]:`calc(100% + ${Yo.arrowOffset.reference})`}),{}}}};function Lre(e){let[t,n]=e.split(`-`);return{side:t,align:n,hasAlign:n!=null}}function Xo(e){return e.split(`-`)[0]}var Rre={strategy:`absolute`,placement:`bottom`,listeners:!0,restoreStyles:!1,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function Zo(e,t){let n=e.devicePixelRatio||1;return Math.round(t*n)/n}function Qo(e,t){return e!=null&&Math.abs(e-t)<.5}function $o(e){return typeof e==`function`?e():e===`clipping-ancestors`?`clippingAncestors`:e}function zre(e,t,n){return Ore({element:e||t.createElement(`div`),padding:n.arrowPadding})}function Bre(e,t){if(!On(t.offset??t.gutter))return Cre(({placement:n})=>{let r=(e?.clientHeight||0)/2,i=t.offset?.mainAxis??t.gutter,a=typeof i==`number`?i+r:i??r,{hasAlign:o}=Lre(n),s=o?void 0:t.shift;return Qn({crossAxis:t.offset?.crossAxis??s,mainAxis:a,alignmentAxis:t.shift})})}function Vre(e){if(e.flip)return Tre(()=>{let t=$o(e.boundary);return{...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip}})}function Hre(e){if(!(!e.slide&&!e.overlap))return wre(()=>{let t=$o(e.boundary);return{...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:kre()}})}function Ure(e){if(e.sizeMiddleware===!1&&!e.sameWidth&&!e.fitViewport)return;let t,n,r,i;return Ere(()=>{let a=$o(e.boundary);return{padding:e.overflowPadding,...a?{boundary:a}:void 0,apply({elements:e,rects:a,availableHeight:o,availableWidth:s}){let c=e.floating,l=Math.round(a.reference.width),u=Math.round(a.reference.height);s=Math.floor(s),o=Math.floor(o),Qo(t,l)||(c.style.setProperty(`--reference-width`,`${l}px`),t=l),Qo(n,u)||(c.style.setProperty(`--reference-height`,`${u}px`),n=u),Qo(r,s)||(c.style.setProperty(`--available-width`,`${s}px`),r=s),Qo(i,o)||(c.style.setProperty(`--available-height`,`${o}px`),i=o)}}})}function Wre(e){if(e.hideWhenDetached)return Dre(()=>({strategy:`referenceHidden`,boundary:$o(e.boundary)??`clippingAncestors`}))}function Gre(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}var Kre=[`transform`,`visibility`,`pointer-events`,`--x`,`--y`,`--z-index`,`--reference-width`,`--reference-height`,`--available-width`,`--available-height`,`--transform-origin`],qre=[`top`,`right`,`bottom`,`left`];function es(e,t){if(!e)return zn;let n=new Map(t.map(t=>[t,e.style.getPropertyValue(t)]));return()=>{n.forEach((t,n)=>{t?e.style.setProperty(n,t):e.style.removeProperty(n)}),e.style.length===0&&e.removeAttribute(`style`)}}function ts(e){return e==null?null:Ur(e)?e:typeof e==`object`&&e&&`contextElement`in e&&e.contextElement?e.contextElement:e}function Jre(e,t,n={}){let r=()=>(typeof t==`function`?t():t)??null,i=()=>{let t=typeof e==`function`?e():e;return n.getAnchorElement?.()??t},a=()=>{let e=i();return!e&&!n.getAnchorRect?null:Mre(e,n.getAnchorRect)},o=Object.assign({},Rre,n),s=[],c=null,l,u;function d(e){l?.(),u?.(),c=e,l=o.restoreStyles?es(e,Kre):void 0;let t=e.querySelector(`[data-part=arrow]`);u=o.restoreStyles?es(t,qre):void 0,s=[Bre(t,o),Vre(o),Hre(o),zre(t,e.ownerDocument,o),Ire(t),Pre({gutter:o.gutter,offset:o.offset,overlap:o.overlap},t),Ure(o),Wre(o),Fre]}let{placement:f,strategy:p,onComplete:m,onPositioned:h}=o,g,_,v=!1,y,b,x=zn,S=Gre(o.listeners);function C(){if(!o.listeners)return;let e=i(),t=a(),n=r();!t||!n||(ts(e)!==ts(y)||n!==b)&&(x(),y=e,b=n,x=Sre(t,n,T,S))}async function w(){C();let e=r();if(!e)return;e!==c&&(d(e),v=!1);let t=a();if(!t)return;let n=await Are(t,e,{placement:f,middleware:s,strategy:p});m?.(n);let i=ei(e),l=Zo(i,n.x),u=Zo(i,n.y);if(Qo(g,l)||(e.style.setProperty(`--x`,`${l}px`),g=l),Qo(_,u)||(e.style.setProperty(`--y`,`${u}px`),_=u),o.hideWhenDetached&&(n.middlewareData.hide?.referenceHidden?(e.style.setProperty(`visibility`,`hidden`),e.style.setProperty(`pointer-events`,`none`)):(e.style.removeProperty(`visibility`),e.style.removeProperty(`pointer-events`))),!v){let t=e.firstElementChild;t&&(e.style.setProperty(`--z-index`,ii(t).zIndex),v=!0)}}async function T(){n.updatePosition?(await n.updatePosition({updatePosition:w,floatingElement:r()}),h?.({placed:!0})):await w()}return T(),()=>{x(),u?.(),l?.(),h?.({placed:!1})}}function ns(e,t,n={}){let{defer:r,...i}=n,a=r?Ii:e=>e(),o=[];return o.push(a(()=>{o.push(Jre(e,t,i))})),()=>{o.forEach(e=>e?.())}}var Yre={bottom:`rotate(45deg)`,left:`rotate(135deg)`,top:`rotate(225deg)`,right:`rotate(315deg)`};function rs(e={}){let{placement:t,sameWidth:n,fitViewport:r,strategy:i=`absolute`}=e;return{arrow:{position:`absolute`,width:Yo.arrowSize.reference,height:Yo.arrowSize.reference,[Yo.arrowSizeHalf.variable]:`calc(${Yo.arrowSize.reference} / 2)`,[Yo.arrowOffset.variable]:`calc(${Yo.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?Yre[t.split(`-`)[0]]:void 0,background:Yo.arrowBg.reference,top:`0`,left:`0`,width:`100%`,height:`100%`,position:`absolute`,zIndex:`inherit`},floating:{position:i,isolation:`isolate`,minWidth:n?void 0:`max-content`,width:n?`var(--reference-width)`:void 0,maxWidth:r?`var(--available-width)`:void 0,maxHeight:r?`var(--available-height)`:void 0,pointerEvents:t?void 0:`none`,top:`0px`,left:`0px`,transform:t?`translate3d(var(--x), var(--y), 0)`:`translate3d(0, -100vh, 0)`,zIndex:`var(--z-index)`}}}var is=(e,t)=>{let n=e.ids?.trigger;return n==null?t?`hover-card:${e.id}:trigger:${t}`:`hover-card:${e.id}:trigger`:Dn(n)?n(t):n},as=e=>e.ids?.content??`hover-card:${e.id}:content`,os=e=>e.ids?.positioner??`hover-card:${e.id}:popper`,Xre=e=>e.ids?.arrow??`hover-card:${e.id}:arrow`,ss=e=>e.getById(is(e)),Zre=e=>e.getById(as(e)),cs=e=>e.getById(os(e)),ls=e=>Gi(e.getRootNode(),`[data-scope="hover-card"][data-part="trigger"][data-ownedby="${e.id}"]`),us=(e,t)=>t==null?ss(e)??ls(e)[0]:e.getById(is(e,t));function Qre(e,t){let{state:n,send:r,prop:i,context:a,scope:o}=e,s=n.hasTag(`open`),c=a.get(`triggerValue`),l=a.get(`currentPlacement`),u=l?Xo(l):void 0,d=rs({...i(`positioning`),placement:l});return{open:s,setOpen(e){n.hasTag(`open`)!==e&&(i(`disabled`)||r({type:e?`OPEN`:`CLOSE`}))},triggerValue:c,setTriggerValue(e){r({type:`TRIGGER_VALUE.SET`,value:e})},reposition(e={}){r({type:`POSITIONING.SET`,options:e})},getArrowProps(){return t.element({id:Xre(o),...Va.arrow.attrs,dir:i(`dir`),style:d.arrow})},getArrowTipProps(){return t.element({...Va.arrowTip.attrs,dir:i(`dir`),style:d.arrowTip})},getTriggerProps(e={}){let{value:n}=e,a=n==null?!1:c===n;return t.element({...Va.trigger.attrs,dir:i(`dir`),"data-placement":l,"data-side":u,id:is(o,n),"data-ownedby":o.id,"data-value":n,"data-current":F(a),"data-state":s?`open`:`closed`,onPointerEnter(e){e.pointerType!==`touch`&&(i(`disabled`)||r({type:s&&n!=null&&!a?`TRIGGER_VALUE.SET`:`POINTER_ENTER`,src:`trigger`,value:n}))},onPointerLeave(e){e.pointerType!==`touch`&&(i(`disabled`)||r({type:`POINTER_LEAVE`,src:`trigger`}))},onFocus(){i(`disabled`)||r({type:s&&n!=null&&!a?`TRIGGER_VALUE.SET`:`TRIGGER_FOCUS`,value:n})},onBlur(){i(`disabled`)||r({type:`TRIGGER_BLUR`})}})},getPositionerProps(){return t.element({id:os(o),...Va.positioner.attrs,dir:i(`dir`),style:d.floating})},getContentProps(){return t.element({...Va.content.attrs,dir:i(`dir`),id:as(o),hidden:!s,tabIndex:-1,"data-state":s?`open`:`closed`,"data-placement":l,"data-side":u,onPointerEnter(e){e.pointerType!==`touch`&&(i(`disabled`)||r({type:`POINTER_ENTER`,src:`content`}))},onPointerLeave(e){e.pointerType!==`touch`&&(i(`disabled`)||r({type:`POINTER_LEAVE`,src:`content`}))}})}}}function $re(e){let t={each(t){for(let n=0;n<e.frames?.length;n+=1){let r=e.frames[n];r&&t(r)}},addEventListener(e,n,r){return t.each(t=>{try{t.document.addEventListener(e,n,r)}catch{}}),()=>{try{t.removeEventListener(e,n,r)}catch{}}},removeEventListener(e,n,r){t.each(t=>{try{t.document.removeEventListener(e,n,r)}catch{}})}};return t}function eie(e){let t=e.frameElement==null?null:e.parent;return{addEventListener:(e,n,r)=>{try{t?.addEventListener(e,n,r)}catch{}return()=>{try{t?.removeEventListener(e,n,r)}catch{}}},removeEventListener:(e,n,r)=>{try{t?.removeEventListener(e,n,r)}catch{}}}}var ds=`pointerdown.outside`,fs=`focus.outside`;function tie(e){for(let t of e)if(Ur(t)&&ki(t))return!0;return!1}var ps=e=>`clientY`in e;function nie(e,t){if(!ps(t)||!e)return!1;let n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function rie(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function ms(e,t){if(!t||!ps(e))return!1;let n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,i=t.scrollWidth>t.clientWidth,a=i&&e.clientY>t.offsetTop+t.clientHeight;return rie({x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(i?16:0)},{x:e.clientX,y:e.clientY})?r||a:!1}function iie(e,t){let{exclude:n,onFocusOutside:r,onPointerDownOutside:i,onInteractOutside:a,defer:o,followControlledElements:s=!0}=t;if(!e)return;let c=$r(e),l=ei(e),u=$re(l),d=eie(l);function f(t,r){if(!Ur(r)||!r.isConnected||Qr(e,r)||nie(e,t)||s&&Iee(e,r))return!1;let i=c.querySelector(`[aria-controls="${e.id}"]`);return i&&ms(t,Bi(i))||ms(t,Bi(e))?!1:!n?.(r)}let p=new Set,m=qr(e?.getRootNode()),h=!1;function g(t){h=!0;let n=()=>{h=!1};c.addEventListener(`pointerup`,n,{once:!0}),l.addEventListener(`pointerup`,n,{once:!0});function r(n){let r=o&&!qee()?Ii:e=>e(),s=n??t,c=s?.composedPath?.()??[s?.target];r(()=>{let n=m?c[0]:fi(t);if(!(!e||!f(t,n))){if(i||a){let t=Bn(i,a);e.addEventListener(ds,t,{once:!0})}hs(e,ds,{bubbles:!1,cancelable:!0,detail:{originalEvent:s,contextmenu:_i(s),focusable:tie(c),target:n}})}})}t.pointerType===`touch`?(p.forEach(e=>e()),p.add(xi(c,`click`,r,{once:!0})),p.add(d.addEventListener(`click`,r,{once:!0})),p.add(u.addEventListener(`click`,r,{once:!0}))):r()}let _=new Set,v=setTimeout(()=>{_.add(xi(c,`pointerdown`,g,!0)),_.add(d.addEventListener(`pointerdown`,g,!0)),_.add(u.addEventListener(`pointerdown`,g,!0))},0);function y(t){h||(o?Ii:e=>e())(()=>{let n=t?.composedPath?.()??[t?.target],i=m?n[0]:fi(t);if(!(!e||!f(t,i))){if(r||a){let t=Bn(r,a);e.addEventListener(fs,t,{once:!0})}hs(e,fs,{bubbles:!1,cancelable:!0,detail:{originalEvent:t,contextmenu:!1,focusable:ki(i),target:i}})}})}return qee()||(_.add(xi(c,`focusin`,y,!0)),_.add(d.addEventListener(`focusin`,y,!0)),_.add(u.addEventListener(`focusin`,y,!0))),()=>{clearTimeout(v),p.forEach(e=>e()),_.forEach(e=>e())}}function aie(e,t){let{defer:n}=t,r=n?Ii:e=>e(),i=[];return i.push(r(()=>{let n=typeof e==`function`?e():e;i.push(iie(n,t))})),()=>{i.forEach(e=>e?.())}}function hs(e,t,n){let r=new(e.ownerDocument.defaultView||window).CustomEvent(t,n);return e.dispatchEvent(r)}function oie(e,t){return xi($r(e),`keydown`,e=>{e.key===`Escape`&&(e.isComposing||t?.(e))},{capture:!0})}var gs=`layer:request-dismiss`,_s={layers:[],branches:[],recentlyRemoved:new Set,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){return this.layers[this.count()-1]?.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 n=this.indexOf(e);return n===-1?[]:this.layers.slice(n+1).filter(e=>e.type===t)},getParentLayerOfType(e,t){let n=this.indexOf(e);if(!(n<=0))return this.layers.slice(0,n).reverse().find(e=>e.type===t)},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return!!(this.getNestedLayers(e).some(e=>Qr(e.node,t))||this.recentlyRemoved.size>0)},isInBranch(e){return Array.from(this.branches).some(t=>Qr(t,e))},add(e){let t=this.indexOf(e.node);t!==-1&&this.layers.splice(t,1),this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){let t=this.indexOf(e);t<0||(this.layers[t].styleTargets?.forEach(e=>{let t=e();t&&sie(t)}),this.recentlyRemoved.add(e),Li(()=>this.recentlyRemoved.delete(e)),t<this.count()-1&&this.getNestedLayers(e).forEach(t=>_s.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)=>{vs(e,t,e.node),e.styleTargets?.forEach(n=>{let r=n();if(!r||r===e.node)return;vs(e,t,r);let{zIndex:i}=ii(e.node);r.style.setProperty(`--z-index`,i)})})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){let n=this.indexOf(e);if(n===-1)return;let r=this.layers[n];lie(e,gs,e=>{r.requestDismiss?.(e),e.defaultPrevented||r?.dismiss()}),cie(e,gs,{originalLayer:e,targetLayer:t,originalIndex:n,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function vs(e,t,n){n.style.setProperty(`--layer-index`,`${t}`),n.removeAttribute(`data-nested`),n.removeAttribute(`data-has-nested`),_s.getParentLayerOfType(e.node,e.type)&&n.setAttribute(`data-nested`,e.type);let r=_s.countNestedLayersOfType(e.node,e.type);r>0&&n.setAttribute(`data-has-nested`,e.type),n.style.setProperty(`--nested-layer-count`,`${r}`)}function sie(e){e.style.removeProperty(`--layer-index`),e.style.removeProperty(`--nested-layer-count`),e.style.removeProperty(`--z-index`),e.removeAttribute(`data-nested`),e.removeAttribute(`data-has-nested`)}function cie(e,t,n){let r=new(e.ownerDocument.defaultView||window).CustomEvent(t,{cancelable:!0,bubbles:!0,detail:n});return e.dispatchEvent(r)}function lie(e,t,n){e.addEventListener(t,n,{once:!0})}var ys=new WeakMap,bs=new WeakMap;function uie(e){return _s.isBelowPointerBlockingLayer(e)?`none`:`auto`}function xs(e){let t=uie(e);e.style.pointerEvents!==t&&(e.style.pointerEvents=t)}function die(e){if(bs.has(e))return;let t=ei(e);if(t.MutationObserver===void 0)return;let n=new t.MutationObserver(()=>{bs.has(e)&&xs(e)});n.observe(e,{attributes:!0,attributeFilter:[`style`]}),bs.set(e,n)}function Ss(){_s.layers.forEach(({node:e})=>{xs(e),die(e)})}function fie(e){let t=bs.get(e);t&&(t.disconnect(),bs.delete(e)),e.style.pointerEvents=``}function pie(e,t){let n=$r(e),r=[];return _s.hasPointerBlockingLayer()&&!n.body.hasAttribute(`data-inert`)&&(ys.set(n.body,n.body.style.pointerEvents),queueMicrotask(()=>{let e=n.body;e&&(e.style.pointerEvents=`none`,e.setAttribute(`data-inert`,``))})),t?.forEach(e=>{let[t,n]=Zte(()=>{let t=e();return Ur(t)?t:null},{timeout:1e3});t.then(e=>r.push(Zi(e,{pointerEvents:`auto`}))),r.push(n)}),()=>{_s.hasPointerBlockingLayer()||(queueMicrotask(()=>{let e=n.body;if(!e)return;let t=ys.get(e);t!==void 0&&(e.style.pointerEvents=t,ys.delete(e)),e.removeAttribute(`data-inert`),e.style.length===0&&e.removeAttribute(`style`)}),r.forEach(e=>e()))}}function mie(e,t){let{warnOnMissingNode:n=!0}=t;if(n&&!e){ir("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;let{onDismiss:r,onRequestDismiss:i,pointerBlocking:a,exclude:o,debug:s,type:c=`dialog`,layerStyleTargets:l}=t,u={dismiss:r,node:e,type:c,pointerBlocking:a,requestDismiss:i,styleTargets:l};_s.add(u),Ss();function d(n){let i=fi(n.detail.originalEvent);_s.isBelowPointerBlockingLayer(e)||_s.isInBranch(i)||(t.onPointerDownOutside?.(n),t.onInteractOutside?.(n),!n.defaultPrevented&&(s&&console.log(`onPointerDownOutside:`,n.detail.originalEvent),r?.()))}function f(e){let n=fi(e.detail.originalEvent);_s.isInBranch(n)||(t.onFocusOutside?.(e),t.onInteractOutside?.(e),!e.defaultPrevented&&(s&&console.log(`onFocusOutside:`,e.detail.originalEvent),r?.()))}function p(n){_s.isTopMost(e)&&(t.onEscapeKeyDown?.(n),!n.defaultPrevented&&r&&(n.preventDefault(),r()))}function m(n){if(!e)return!1;let r=typeof o==`function`?o():o,i=Array.isArray(r)?r:[r],a=t.persistentElements?.map(e=>e()).filter(Ur);return a&&i.push(...a),i.some(e=>Qr(e,n))||_s.isInNestedLayer(e,n)}let h=[a?pie(e,t.persistentElements):void 0,oie(e,p),aie(e,{exclude:m,onFocusOutside:f,onPointerDownOutside:d,defer:t.defer})];return()=>{_s.remove(e),Ss(),fie(e),h.forEach(e=>e?.())}}function Cs(e,t){let{defer:n}=t,r=n?Ii:e=>e(),i=[];return i.push(r(()=>{let n=Dn(e)?e():e;i.push(mie(n,t))})),()=>{i.forEach(e=>e?.())}}function hie(e,t={}){let{defer:n}=t,r=n?Ii:e=>e(),i=[];return i.push(r(()=>{let t=Dn(e)?e():e;if(!t){ir("[@zag-js/dismissable] branch node is `null` or `undefined`");return}_s.addBranch(t),i.push(()=>{_s.removeBranch(t)})})),()=>{i.forEach(e=>e?.())}}var{not:ws,and:Ts}=Mr(),gie=Nr({props({props:e}){return{disabled:!1,openDelay:600,closeDelay:300,...e,positioning:{placement:`bottom`,...e.positioning}}},initialState({prop:e}){return e(`open`)||e(`defaultOpen`)?`open`:`closed`},context({prop:e,bindable:t,scope:n}){return{open:t(()=>({defaultValue:e(`defaultOpen`),value:e(`open`)})),currentPlacement:t(()=>({defaultValue:void 0})),isPointer:t(()=>({defaultValue:!1})),triggerValue:t(()=>({defaultValue:e(`defaultTriggerValue`)??null,value:e(`triggerValue`),onChange(t){let r=e(`onTriggerValueChange`);r&&r({value:t,triggerElement:us(n,t)})}}))}},watch({track:e,context:t,action:n,prop:r,send:i}){e([()=>r(`disabled`)],()=>{r(`disabled`)&&i({type:`CLOSE`,src:`disabled.change`})}),e([()=>t.get(`open`)],()=>{n([`toggleVisibility`])})},on:{"TRIGGER_VALUE.SET":{actions:[`setTriggerValue`,`reposition`]}},states:{closed:{tags:[`closed`],entry:[`clearIsPointer`],on:{"CONTROLLED.OPEN":{target:`open`},POINTER_ENTER:{target:`opening`,actions:[`setIsPointer`,`setTriggerValue`]},TRIGGER_FOCUS:{target:`opening`,actions:[`setTriggerValue`]},OPEN:{target:`opening`,actions:[`setTriggerValue`]}}},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:Ts(`isOpenControlled`,ws(`isPointer`)),actions:[`invokeOnClose`,`toggleVisibility`]},{guard:ws(`isPointer`),target:`closed`,actions:[`invokeOnClose`]}],CLOSE:[{guard:`isOpenControlled`,actions:[`invokeOnClose`,`toggleVisibility`]},{target:`closed`,actions:[`invokeOnClose`]}],"TRIGGER_VALUE.SET":{actions:[`setTriggerValue`]}}},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:Ts(`isOpenControlled`,ws(`isPointer`)),actions:[`invokeOnClose`]},{guard:ws(`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`]},TRIGGER_FOCUS:{target:`open`,actions:[`setTriggerValue`]},"TRIGGER_VALUE.SET":{target:`open`,actions:[`setTriggerValue`,`reposition`]}}}},implementations:{guards:{isPointer:({context:e})=>!!e.get(`isPointer`),isOpenControlled:({prop:e})=>e(`open`)!=null},effects:{waitForOpenDelay({send:e,prop:t}){let n=setTimeout(()=>{e({type:`OPEN_DELAY`})},t(`openDelay`));return()=>clearTimeout(n)},waitForCloseDelay({send:e,prop:t}){let n=setTimeout(()=>{e({type:`CLOSE_DELAY`})},t(`closeDelay`));return()=>clearTimeout(n)},trackPositioning({context:e,prop:t,scope:n}){return e.get(`currentPlacement`)||e.set(`currentPlacement`,t(`positioning`).placement),ns(()=>us(n,e.get(`triggerValue`)),()=>cs(n),{...t(`positioning`),defer:!0,onComplete(t){e.set(`currentPlacement`,t.placement)}})},trackDismissableElement({send:e,scope:t,prop:n}){return Cs(()=>Zre(t),{type:`popover`,defer:!0,exclude:[ss(t),...ls(t)].filter(Boolean),onDismiss(){e({type:`CLOSE`,src:`interact-outside`})},onInteractOutside:n(`onInteractOutside`),onPointerDownOutside:n(`onPointerDownOutside`),onFocusOutside(e){e.preventDefault(),n(`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:n,event:r}){ns(()=>us(n,e.get(`triggerValue`)),()=>cs(n),{...t(`positioning`),...r.options,defer:!0,listeners:!1,onComplete(t){e.set(`currentPlacement`,t.placement)}})},setTriggerValue({context:e,event:t}){t.value!==void 0&&e.set(`triggerValue`,t.value)},toggleVisibility({prop:e,event:t,send:n}){queueMicrotask(()=>{n({type:e(`open`)?`CONTROLLED.OPEN`:`CONTROLLED.CLOSE`,previousEvent:t})})}}}}),[_ie,Es]=cr({hookName:`useHoverCardContext`,providerName:`<HoverCardProvider />`}),vie=e=>{let t=Es(),n=I(()=>t().getArrowProps(),e);return A(L.div,n)},yie=e=>{let t=Es(),n=I(()=>t().getArrowTipProps(),e);return A(L.div,n)},bie=e=>{let t=Es(),n=Ba(),r=I(()=>t().getContentProps(),()=>n().presenceProps,e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,j(r,{ref(t){var r=La(n().ref,e.ref);typeof r==`function`&&r(t)}}))}})},xie=e=>e.children(Es()),Sie=e=>{let t=Es(),n=Ba(),r=I(()=>t().getPositionerProps(),e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,r)}})},Cie=e=>{let t=ua(),n=la(),r=ct(),i=na(gie,k(()=>({id:r,dir:t().dir,getRootNode:n().getRootNode,...pr(e)})));return k(()=>Qre(i,oa))},wie=e=>{let[t,n]=Ra(e),[r,i]=$t()(n,[`closeDelay`,`defaultOpen`,`disabled`,`id`,`ids`,`onFocusOutside`,`onInteractOutside`,`onOpenChange`,`onPointerDownOutside`,`open`,`openDelay`,`positioning`,`triggerValue`,`defaultTriggerValue`,`onTriggerValueChange`]),a=Cie(r),o=Ia(I(t,()=>({present:a().open})));return A(_ie,{value:a,get children(){return A(za,{value:o,get children(){return i.children}})}})},Tie=e=>{let[t,n]=Ra(e),r=Ia(I(t,()=>({present:n.value().open})));return A(_ie,{get value(){return n.value},get children(){return A(za,{value:r,get children(){return n.children}})}})},Eie=e=>{let[t,n]=$t()(e,[`value`]),r=Es(),i=I(()=>r().getTriggerProps(t),n);return A(L.button,i)},Ds={};da(Ds,{Arrow:()=>vie,ArrowTip:()=>yie,Content:()=>bie,Context:()=>xie,Positioner:()=>Sie,Root:()=>wie,RootProvider:()=>Tie,Trigger:()=>Eie});var Die=Object.defineProperty,Oie=(e,t,n)=>t in e?Die(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Os=(e,t,n)=>Oie(e,typeof t==`symbol`?t:t+``,n),ks=fa(`scroll-area`).parts(`root`,`viewport`,`content`,`scrollbar`,`thumb`,`corner`).build(),As=e=>e.ids?.root??`scroll-area-${e.id}`,kie=e=>e.ids?.viewport??`scroll-area-${e.id}:viewport`,Aie=e=>e.ids?.content??`scroll-area-${e.id}:content`,js=e=>e.getById(As(e)),Ms=e=>e.getById(kie(e)),jie=e=>e.getById(Aie(e)),Ns=e=>Ki(js(e),`[data-part=scrollbar][data-orientation=horizontal][data-ownedby="${As(e)}"]`),Ps=e=>Ki(js(e),`[data-part=scrollbar][data-orientation=vertical][data-ownedby="${As(e)}"]`),Fs=e=>Ki(Ns(e),`[data-part=thumb][data-orientation=horizontal][data-ownedby="${As(e)}"]`),Is=e=>Ki(Ps(e),`[data-part=thumb][data-orientation=vertical][data-ownedby="${As(e)}"]`),Mie=e=>Ki(js(e),`[data-part=corner][data-ownedby="${As(e)}"]`);function Nie(e,t){if(!e)return Pie;let n=0,r=0,i=e.scrollWidth-e.clientWidth;i>t&&(n=Math.min(1,Math.max(0,e.scrollLeft/i)));let a=e.scrollHeight-e.clientHeight;return a>t&&(r=Math.min(1,Math.max(0,e.scrollTop/a))),{x:n,y:r}}var Pie={x:0,y:0},Fie=300,Iie=e=>e*(2-e);function Lie(e,t={}){let{top:n,left:r,duration:i=Fie,easing:a=Iie,onComplete:o}=t;if(!e)return;let s={startTime:0,startScrollTop:e.scrollTop,startScrollLeft:e.scrollLeft,targetScrollTop:n??e.scrollTop,targetScrollLeft:r??e.scrollLeft},c=!1,l=()=>{s.rafId&&=(cancelAnimationFrame(s.rafId),void 0),c=!0},u=t=>{if(c)return;s.startTime===0&&(s.startTime=t);let n=t-s.startTime,r=Math.min(n/i,1),l=a(r),d=s.targetScrollTop-s.startScrollTop,f=s.targetScrollLeft-s.startScrollLeft;e.scrollTop=s.startScrollTop+d*l,e.scrollLeft=s.startScrollLeft+f*l,r<1?s.rafId=requestAnimationFrame(u):o?.()};return s.rafId=requestAnimationFrame(u),l}function Rie(e,t={}){if(!e)return;let{top:n,left:r,behavior:i=`smooth`,easing:a,duration:o}=t;if(i===`smooth`)Lie(e,{top:n,left:r,easing:a,duration:o});else{let t=Qn({behavior:i,top:n,left:r});e.scrollTo(t)}}function zie(e,t,n,r=`smooth`,i,a){if(!e)return;let o=e.scrollWidth-e.clientWidth,s=e.scrollHeight-e.clientHeight,c=n===`rtl`,l,u;switch(t){case`top`:l=0;break;case`bottom`:l=s;break;case`left`:u=c&&e.scrollLeft<=0?-o:0;break;case`right`:u=c&&e.scrollLeft<=0?0:o;break}if(r===`smooth`)Lie(e,{top:l,left:u,easing:i,duration:a});else{let t=Qn({left:u,top:l,behavior:r});e.scrollTo(t)}}function Bie(e,t){let{state:n,send:r,context:i,prop:a,scope:o}=e,s=n.matches(`dragging`),c=i.get(`hovering`),l=i.get(`cornerSize`),u=i.get(`thumbSize`),d=i.get(`hiddenState`),f=i.get(`atSides`);return{isAtTop:f.top,isAtBottom:f.bottom,isAtLeft:f.left,isAtRight:f.right,hasOverflowX:!d.scrollbarXHidden,hasOverflowY:!d.scrollbarYHidden,getScrollProgress(){return Nie(Ms(o),0)},scrollToEdge(e){let{edge:t,behavior:n}=e;return zie(Ms(o),t,a(`dir`),n)},scrollTo(e){return Rie(Ms(o),e)},getScrollbarState(e){let t=e.orientation===`horizontal`;return{hovering:c,dragging:s,scrolling:i.get(t?`scrollingX`:`scrollingY`),hidden:t?d.scrollbarXHidden:d.scrollbarYHidden}},getRootProps(){return t.element({...ks.root.attrs,id:As(o),dir:a(`dir`),role:`presentation`,"data-overflow-x":F(!d.scrollbarXHidden),"data-overflow-y":F(!d.scrollbarYHidden),onPointerEnter(e){let t=fi(e);Qr(e.currentTarget,t)&&r({type:`root.pointerenter`,pointerType:e.pointerType})},onPointerMove(e){let t=fi(e);Qr(e.currentTarget,t)&&r({type:`root.pointerenter`,pointerType:e.pointerType})},onPointerDown({pointerType:e}){r({type:`root.pointerdown`,pointerType:e})},onPointerLeave(e){Qr(e.currentTarget,e.relatedTarget)||r({type:`root.pointerleave`})},style:{position:`relative`,"--corner-width":Zn(l?.width),"--corner-height":Zn(l?.height),"--thumb-width":Zn(u?.width),"--thumb-height":Zn(u?.height)}})},getViewportProps(){let e=()=>{r({type:`user.scroll`})};return t.element({...ks.viewport.attrs,role:`presentation`,"data-ownedby":As(o),id:kie(o),"data-at-top":F(f.top),"data-at-bottom":F(f.bottom),"data-at-left":F(f.left),"data-at-right":F(f.right),"data-overflow-x":F(!d.scrollbarXHidden),"data-overflow-y":F(!d.scrollbarYHidden),tabIndex:d.scrollbarXHidden||d.scrollbarYHidden?void 0:0,style:{overflow:`auto`},onScroll(e){r({type:`viewport.scroll`,target:e.currentTarget})},onWheel:e,onTouchMove:e,onPointerMove:e,onPointerEnter:e,onKeyDown:e})},getContentProps(){return t.element({...ks.content.attrs,id:Aie(o),role:`presentation`,"data-overflow-x":F(!d.scrollbarXHidden),"data-overflow-y":F(!d.scrollbarYHidden),style:{minWidth:`fit-content`}})},getScrollbarProps(e={}){let{orientation:n=`vertical`}=e;return t.element({...ks.scrollbar.attrs,"data-ownedby":As(o),"data-orientation":n,"data-scrolling":F(i.get(n===`horizontal`?`scrollingX`:`scrollingY`)),"data-hover":F(c),"data-dragging":F(s),"data-overflow-x":F(!d.scrollbarXHidden),"data-overflow-y":F(!d.scrollbarYHidden),onPointerUp(){r({type:`scrollbar.pointerup`,orientation:n})},onPointerDown(e){e.button===0&&e.currentTarget===e.target&&(r({type:`scrollbar.pointerdown`,orientation:n,point:bi(e)}),e.stopPropagation())},style:{position:`absolute`,touchAction:`none`,WebkitUserSelect:`none`,userSelect:`none`,...n===`vertical`&&{top:0,bottom:`var(--corner-height)`,insetInlineEnd:0},...n===`horizontal`&&{insetInlineStart:0,insetInlineEnd:`var(--corner-width)`,bottom:0}}})},getThumbProps(e={}){let{orientation:n=`vertical`}=e;return t.element({...ks.thumb.attrs,"data-ownedby":As(o),"data-orientation":n,"data-hover":F(c),"data-dragging":F(s),onPointerDown(e){e.button===0&&r({type:`thumb.pointerdown`,orientation:n,point:bi(e)})},style:{...n===`vertical`&&{height:`var(--thumb-height)`},...n===`horizontal`&&{width:`var(--thumb-width)`}}})},getCornerProps(){return t.element({...ks.corner.attrs,"data-ownedby":As(o),"data-hover":F(c),"data-state":d.cornerHidden?`hidden`:`visible`,"data-overflow-x":F(!d.scrollbarXHidden),"data-overflow-y":F(!d.scrollbarYHidden),style:{position:`absolute`,bottom:0,insetInlineEnd:0,width:`var(--corner-width)`,height:`var(--corner-height)`}})}}}function Ls(e,t,n){if(!e)return 0;let r=ii(e),i=n===`x`?`Inline`:`Block`;return n===`x`&&t===`margin`?parseFloat(r[`${t}InlineStart`])*2:parseFloat(r[`${t}${i}Start`])+parseFloat(r[`${t}${i}End`])}function Vie(e,t){let n=e.scrollTop,r=e.scrollLeft,i=t===`rtl`,a=e.scrollHeight-e.clientHeight>1,o=e.scrollWidth-e.clientWidth>1,s=e.scrollWidth-e.clientWidth,c=e.scrollHeight-e.clientHeight,l=!1,u=!1,d=!1,f=!1;return o&&(i&&r<=0?(l=Math.abs(r)>=s-1,u=Math.abs(r)<=1):(l=r<=1,u=r>=s-1)),a&&(d=n<=1,f=n>=c-1),{top:d,right:u,bottom:f,left:l}}var Rs=0,zs=class{constructor(){Os(this,`currentId`,Rs),Os(this,`clear`,()=>{this.currentId!==Rs&&(clearTimeout(this.currentId),this.currentId=Rs)}),Os(this,`disposeEffect`,()=>this.clear)}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Rs,t()},e)}isStarted(){return this.currentId!==Rs}},Hie=20,Bs=1e3,Uie=Nr({props({props:e}){return sr(e,[`id`]),e},context({bindable:e}){return{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){return`Y:${e.scrollbarYHidden} X:${e.scrollbarXHidden} C:${e.cornerHidden}`}}))}},refs(){return{orientation:`vertical`,scrollPosition:{x:0,y:0},scrollYTimeout:new zs,scrollXTimeout:new zs,scrollEndTimeout:new zs,startX:0,startY:0,startScrollTop:0,startScrollLeft:0,programmaticScroll:!0}},initialState(){return`idle`},watch({track:e,prop:t,context:n,send:r}){e([()=>t(`dir`),()=>n.hash(`hiddenState`)],()=>{r({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`,t.pointerType===`touch`)},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(t.orientation===`vertical`?`scrollingY`:`scrollingX`,!1)},setThumbSize({context:e,scope:t,prop:n}){let r=Ms(t);if(!r)return;let i=r.scrollHeight,a=r.scrollWidth;if(i===0||a===0)return;let o=Ps(t),s=Ns(t),c=Is(t),l=Fs(t),u=r.clientHeight,d=r.clientWidth,f=r.scrollTop,p=r.scrollLeft,m=u>=i,h=d>=a,g=d/a,_=u/i,v=h?0:d,y=m?0:u,b=Ls(s,`padding`,`x`),x=Ls(o,`padding`,`y`),S=Ls(l,`margin`,`x`),C=Ls(c,`margin`,`y`),w=v-b-S,T=y-x-C,E=s?Math.min(s.offsetWidth,w):w,ee=o?Math.min(o.offsetHeight,T):T,te=Math.max(Hie,E*g),ne=Math.max(Hie,ee*_);if(e.set(`thumbSize`,e=>e.height===ne&&e.width===te?e:{width:te,height:ne}),o&&c){let e=o.offsetHeight-ne-x-C,t=f/(i-u),n=Math.min(e,Math.max(0,t*e));c.style.transform=`translate3d(0,${n}px,0)`}if(s&&l){let e=s.offsetWidth-te-b-S,t=p/(a-d),r=n(`dir`)===`rtl`?Yn(t*e,-e,0):Yn(t*e,0,e);l.style.transform=`translate3d(${r}px,0,0)`}if(Mie(t)){if(h||m)e.set(`cornerSize`,{width:0,height:0});else if(!h&&!m){let t=o?.offsetWidth||0,n=s?.offsetHeight||0;e.set(`cornerSize`,{width:t,height:n})}}e.set(`hiddenState`,e=>{let t=m||h;return e.scrollbarYHidden===m&&e.scrollbarXHidden===h&&e.cornerHidden===t?e:{scrollbarYHidden:m,scrollbarXHidden:h,cornerHidden:t}}),e.set(`atSides`,e=>{let t=Vie(r,n(`dir`));return bn(e,t)?e:t});let re=Math.max(0,i-u),D=Math.max(0,a-d),ie=0,ae=0;h||(ie=n(`dir`)===`rtl`?Yn(-p,0,D):Yn(p,0,D),ae=D-ie);let oe=m?0:Yn(f,0,re),se=m?0:re-oe;Qi(r,`--scroll-area-overflow-x-start`,`${ie}px`),Qi(r,`--scroll-area-overflow-x-end`,`${ae}px`),Qi(r,`--scroll-area-overflow-y-start`,`${oe}px`),Qi(r,`--scroll-area-overflow-y-end`,`${se}px`)},checkHovering({scope:e,context:t}){Ms(e)?.matches(`:hover`)&&t.set(`hovering`,!0)},setScrolling({event:e,refs:t,context:n,prop:r}){let i={x:e.target.scrollLeft,y:e.target.scrollTop},a=t.get(`scrollPosition`),o=i.x-a.x,s=i.y-a.y;t.set(`scrollPosition`,i),n.set(`atSides`,t=>{let n=Vie(e.target,r(`dir`));return bn(t,n)?t:n}),s!==0&&(n.set(`scrollingY`,!0),t.get(`scrollYTimeout`).start(Bs,()=>{n.set(`scrollingY`,!1)})),o!==0&&(n.set(`scrollingX`,!0),t.get(`scrollXTimeout`).start(Bs,()=>{n.set(`scrollingX`,!1)}))},scrollToPointer({event:e,scope:t,prop:n}){let r=Ms(t);if(!r)return;let i=Is(t),a=Ps(t),o=Fs(t),s=Ns(t),c=e.point;if(i&&a&&e.orientation===`vertical`){let e=Ls(i,`margin`,`y`),t=Ls(a,`padding`,`y`),n=i.offsetHeight,o=a.getBoundingClientRect(),s=c.y-o.top-n/2-t+e/2,l=r.scrollHeight,u=r.clientHeight;r.scrollTop=s/(a.offsetHeight-n-t-e)*(l-u)}if(o&&s&&e.orientation===`horizontal`){let e=Ls(o,`margin`,`x`),t=Ls(s,`padding`,`x`),i=o.offsetWidth,a=s.getBoundingClientRect(),l=c.x-a.left-i/2-t+e/2,u=r.scrollWidth,d=r.clientWidth,f=l/(s.offsetWidth-i-t-e),p;n(`dir`)===`rtl`?(p=(1-f)*(u-d),r.scrollLeft<=0&&(p=-p)):p=f*(u-d),r.scrollLeft=p}},startDragging({event:e,refs:t,scope:n}){t.set(`startX`,e.point.x),t.set(`startY`,e.point.y),t.set(`orientation`,e.orientation);let r=Ms(n);r&&(t.set(`startScrollTop`,r.scrollTop),t.set(`startScrollLeft`,r.scrollLeft))},setDraggingScroll({event:e,refs:t,scope:n,context:r}){let i=t.get(`startY`),a=t.get(`startX`),o=t.get(`startScrollTop`),s=t.get(`startScrollLeft`),c=e.point,l=c.y-i,u=c.x-a,d=Ms(n);if(!d)return;let f=d.scrollHeight,p=d.clientHeight,m=d.scrollWidth,h=d.clientWidth,g=t.get(`orientation`),_=Is(n),v=Ps(n);if(_&&v&&g===`vertical`){let e=Ls(v,`padding`,`y`),n=Ls(_,`margin`,`y`),i=_.offsetHeight;d.scrollTop=o+l/(v.offsetHeight-i-e-n)*(f-p),r.set(`scrollingY`,!0),t.get(`scrollYTimeout`).start(Bs,()=>{r.set(`scrollingY`,!1)})}let y=Fs(n),b=Ns(n);if(y&&b&&g===`horizontal`){let e=Ls(b,`padding`,`x`),n=Ls(y,`margin`,`x`),i=y.offsetWidth;d.scrollLeft=s+u/(b.offsetWidth-i-e-n)*(m-h),r.set(`scrollingX`,!0),t.get(`scrollXTimeout`).start(Bs,()=>{r.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 n=jie(e),r=js(e);if(!n||!r)return;let i=new(e.getWin()).ResizeObserver(()=>{setTimeout(()=>{t({type:`thumb.measure`})},1)});return i.observe(n),i.observe(r),()=>{i.disconnect()}},trackViewportVisibility({scope:e,send:t}){let n=e.getWin(),r=Ms(e);if(!r)return;let i=new n.IntersectionObserver(e=>{e.forEach(e=>{e.intersectionRatio>0&&(t({type:`thumb.measure`}),i.disconnect())})});return i.observe(r),()=>{i.disconnect()}},trackWheelEvent({scope:e}){let t=Ps(e),n=Ns(e);if(!t&&!n)return;let r=t=>{let n=Ms(e);if(!n||t.ctrlKey)return;let r=t.currentTarget.dataset.orientation;if(r===`vertical`){let e=n.scrollHeight>n.clientHeight,r=n.scrollTop===0&&t.deltaY<0,i=n.scrollTop===n.scrollHeight-n.clientHeight&&t.deltaY>0;if(!(e&&t.deltaY!==0&&!(r||i)))return;t.preventDefault(),n.scrollTop+=t.deltaY}else if(r===`horizontal`){let e=n.scrollWidth>n.clientWidth,r=n.scrollLeft===0&&t.deltaX<0,i=n.scrollLeft===n.scrollWidth-n.clientWidth&&t.deltaX>0;if(!(e&&t.deltaX!==0&&!(r||i)))return;t.preventDefault(),n.scrollLeft+=t.deltaX}};return Bn(t&&xi(t,`wheel`,r,{passive:!1}),n&&xi(n,`wheel`,r,{passive:!1}))},trackPointerMove({scope:e,send:t,refs:n}){let r=e.getDoc(),i=n.get(`orientation`);return Mte(r,{onPointerMove({point:e}){t({type:`thumb.pointermove`,orientation:i,point:e})},onPointerUp(){t({type:`thumb.pointerup`,orientation:i})}})}}}}),[Wie,Vs]=cr({hookName:`useScrollAreaContext`,providerName:`<ScrollAreaProvider />`});function Gie(e){return e.children(Vs())}var Kie=e=>{let t=Vs(),n=I(()=>t().getContentProps(),e);return A(L.div,n)},qie=e=>{let t=Vs(),n=I(()=>t().getCornerProps(),e);return A(L.div,n)},Jie=(e={})=>{let t=ct(),n=ua(),r=la(),i=na(Uie,k(()=>({id:t,dir:n().dir,getRootNode:r().getRootNode,...e})));return k(()=>Bie(i,oa))},Yie=e=>{let[t,n]=$t()(e,[`id`,`ids`]),r=Jie(t),i=I(()=>r().getRootProps(),n);return A(Wie,{value:r,get children(){return A(L.div,i)}})},Xie=e=>{let{value:t,children:n,...r}=e;return A(Wie,{value:t,get children(){return A(L.div,j(r,{children:n}))}})},[Zie,Qie]=cr({hookName:`useScrollAreaScrollbarContext`,providerName:`<ScrollAreaScrollbarProvider />`}),$ie=e=>{let[t,n]=$t()(e,[`orientation`]),r=Vs(),i=I(()=>r().getScrollbarProps(t),n);return A(Zie,{value:t,get children(){return A(L.div,i)}})},eae=e=>{let t=Vs(),n=Qie(),r=I(()=>t().getThumbProps(n),e);return A(L.div,r)},tae=e=>{let t=Vs(),n=I(()=>t().getViewportProps(),e);return A(L.div,n)},Hs={};da(Hs,{Content:()=>Kie,Context:()=>Gie,Corner:()=>qie,Root:()=>Yie,RootProvider:()=>Xie,Scrollbar:()=>$ie,Thumb:()=>eae,Viewport:()=>tae});var Us=fa(`fieldset`).parts(`root`,`errorText`,`helperText`,`legend`).build(),[nae,Ws]=cr({hookName:`useFieldsetContext`,providerName:`<FieldsetProvider />`,strict:!1}),rae=e=>e.children(Ws()),iae=e=>{let t=Ws(),n=I(()=>t().getErrorTextProps(),e);return A(M,{get when(){return t().invalid},get children(){return A(L.span,n)}})},aae=e=>{let t=Ws(),n=I(()=>t().getHelperTextProps(),e);return A(L.span,n)},oae=e=>{let t=Ws(),n=I(()=>t().getLegendProps(),e);return A(L.legend,n)},sae=e=>{let t=la(),n=j({disabled:!1,invalid:!1},pr(e)),[r,i]=O(void 0),a=n.id??ct(),o=`fieldset::${a}::legend`,s=`fieldset::${a}::error-text`,c=`fieldset::${a}::helper-text`,[l,u]=O(!1),[d,f]=O(!1);ve(()=>{let e=r();if(!e)return;let n=()=>{let e=t().getRootNode();u(!!e.getElementById(s)),f(!!e.getElementById(c))};n();let i=new(t().getWindow()).MutationObserver(n);i.observe(e,{childList:!0,subtree:!0}),ye(()=>i.disconnect())});let p=k(()=>{let e=[];return l()&&n.invalid&&e.push(s),d()&&e.push(c),e}),m=()=>({...Us.root.attrs,disabled:n.disabled,"data-disabled":F(n.disabled),"data-invalid":F(n.invalid),"aria-labelledby":o,"aria-describedby":p().join(` `)||void 0}),h=()=>({id:o,...Us.legend.attrs,"data-disabled":F(n.disabled),"data-invalid":F(n.invalid)}),g=()=>({id:c,...Us.helperText.attrs}),_=()=>({id:s,...Us.errorText.attrs,"aria-live":`polite`});return k(()=>({refs:{rootRef:i},ids:{legend:o,errorText:s,helperText:c},disabled:n.disabled,invalid:n.invalid,getRootProps:m,getLegendProps:h,getHelperTextProps:g,getErrorTextProps:_}))},cae=e=>{let[t,n]=$t()(e,[`id`,`disabled`,`invalid`]),r=sae(t),i=I(()=>r().getRootProps(),n);return A(nae,{value:r,get children(){return A(L.fieldset,j(i,{ref(t){var n=La(r().refs.rootRef,e.ref);typeof n==`function`&&n(t)}}))}})};cae.displayName=`FieldsetRoot`;var lae=e=>{let[{value:t},n]=$t()(e,[`value`]),r=I(()=>t().getRootProps(),n);return A(nae,{value:t,get children(){return A(L.fieldset,r)}})};da({},{Context:()=>rae,ErrorText:()=>iae,HelperText:()=>aae,Legend:()=>oae,Root:()=>cae,RootProvider:()=>lae});var Gs=fa(`field`).parts(`root`,`errorText`,`helperText`,`input`,`label`,`select`,`textarea`,`requiredIndicator`).build(),uae=e=>{if(!e)return;let t=ii(e),n=ei(e),r=$r(e),i=()=>{requestAnimationFrame(()=>{e.style.height=`auto`;let n;n=t.boxSizing===`content-box`?e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!==`none`&&n>parseFloat(t.maxHeight)?(t.overflowY===`hidden`&&(e.style.overflowY=`scroll`),n=parseFloat(t.maxHeight)):t.overflowY!==`hidden`&&(e.style.overflowY=`hidden`),e.style.height=`${n}px`})};e.addEventListener(`input`,i),e.form?.addEventListener(`reset`,i);let a=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),`value`);a&&Object.defineProperty(e,"value",{...a,set(t){let r=a.get?.call(this);a.set?.call(this,t),i(),r!==t&&queueMicrotask(()=>{e.dispatchEvent(new n.InputEvent(`input`,{bubbles:!0}))})}});let o=new n.ResizeObserver(()=>{requestAnimationFrame(()=>i())});o.observe(e);let s=new n.MutationObserver(()=>i());return s.observe(e,{attributes:!0,attributeFilter:[`rows`,`placeholder`]}),r.fonts?.addEventListener(`loadingdone`,i),()=>{e.removeEventListener(`input`,i),e.form?.removeEventListener(`reset`,i),r.fonts?.removeEventListener(`loadingdone`,i),o.disconnect(),s.disconnect()}},[Ks,qs]=cr({hookName:`useFieldContext`,providerName:`<FieldProvider />`,strict:!1}),dae=e=>e.children(qs()),fae=e=>{let t=qs(),n=I(()=>t().getErrorTextProps(),e);return A(M,{get when(){return t?.().invalid},get children(){return A(L.span,n)}})},pae=e=>{let t=qs(),n=I(()=>t().getHelperTextProps(),e);return A(L.span,n)},mae=e=>{let t=qs(),n=I(()=>t?.().getInputProps(),e);return A(L.input,n)},hae=e=>{let t=qs(),n=k(()=>{let n=t?.();if(!n)throw Error(`Field.Item must be used within Field.Root`);let r=`field::${n.ids.control}::item::${e.value}`,i=`${r}::label`,a=()=>({...n.getInputProps(),id:r});return()=>({...n,ids:{...n.ids,control:r,label:i},getLabelProps:()=>({...n.getLabelProps(),id:i,htmlFor:r}),getInputProps:()=>({...a(),...Gs.input.attrs}),getSelectProps:()=>({...a(),...Gs.select.attrs}),getTextareaProps:()=>({...a(),...Gs.textarea.attrs})})});return A(Ks,{get value(){return n()},get children(){return e.children}})},gae=e=>{let t=qs(),n=I(()=>t?.().getLabelProps(),e);return A(L.label,n)},_ae=e=>{let t=qs(),n=I(()=>t().getRequiredIndicatorProps(),e);return A(M,{get when(){return t().required},get fallback(){return e.fallback},get children(){return A(L.span,j(n,{get children(){return e.children??`*`}}))}})},vae=e=>{let t=Ws(),n=la(),r=j({disabled:!!t?.().disabled,required:!1,invalid:!1,readOnly:!1},e),[i,a]=O(!1),[o,s]=O(!1),c=r.id??ct(),[l,u]=O(void 0),d=r.ids?.control??`field::${c}`,f=r.ids?.errorText??`field::${c}::error-text`,p=r.ids?.helperText??`field::${c}::helper-text`,m=r.ids?.label??`field::${c}::label`;ve(()=>{let e=l();if(!e)return;let t=()=>{let e=n().getRootNode();a(!!e.getElementById(f)),s(!!e.getElementById(p))};t();let r=new(n().getWindow()).MutationObserver(t);r.observe(e,{childList:!0,subtree:!0}),ye(()=>r.disconnect())});let h=()=>({...Gs.root.attrs,id:d,role:`group`,"data-disabled":F(r.disabled),"data-invalid":F(r.invalid),"data-readonly":F(r.readOnly)}),g=r.target?`field::${c}::item::${r.target}`:void 0,_=()=>({...Gs.label.attrs,id:m,"data-disabled":F(r.disabled),"data-invalid":F(r.invalid),"data-readonly":F(r.readOnly),"data-required":F(r.required),htmlFor:g??c}),v=k(()=>{let e=[];return i()&&r.invalid&&e.push(f),o()&&e.push(p),e}),y=()=>({"aria-describedby":v().join(` `)||void 0,"aria-invalid":Hr(r.invalid),"data-invalid":F(r.invalid),"data-required":F(r.required),"data-readonly":F(r.readOnly),id:c,required:r.required,disabled:r.disabled,readOnly:r.readOnly||void 0}),b=()=>({...y(),...Gs.input.attrs}),x=()=>({...y(),...Gs.textarea.attrs}),S=()=>({...y(),...Gs.select.attrs}),C=()=>({id:p,...Gs.helperText.attrs,"data-disabled":F(r.disabled)}),w=()=>({id:f,...Gs.errorText.attrs,"aria-live":`polite`}),T=()=>({"aria-hidden":!0,...Gs.requiredIndicator.attrs});return k(()=>({ariaDescribedby:v().join(` `),ids:{control:c,label:m,errorText:f,helperText:p},refs:{rootRef:u},disabled:r.disabled,invalid:r.invalid,readOnly:r.readOnly,required:r.required,getLabelProps:_,getRootProps:h,getInputProps:b,getTextareaProps:x,getSelectProps:S,getHelperTextProps:C,getErrorTextProps:w,getRequiredIndicatorProps:T}))},yae=e=>{let[t,n]=$t()(e,[`id`,`ids`,`disabled`,`invalid`,`readOnly`,`required`,`target`]),r=vae(t),i=I(()=>r().getRootProps(),n);return A(Ks,{value:r,get children(){return A(L.div,j(i,{ref(t){var n=La(r().refs.rootRef,e.ref);typeof n==`function`&&n(t)}}))}})},bae=e=>{let[{value:t},n]=$t()(e,[`value`]),r=I(()=>t().getRootProps(),n);return A(Ks,{value:t,get children(){return A(L.div,r)}})},xae=e=>{let t=qs(),n=I(()=>t?.().getSelectProps(),e);return A(L.select,n)},Sae=e=>{let t=qs(),n,[r,i]=ot(e,[`autoresize`]),a=I(()=>t?.().getTextareaProps(),()=>({style:{resize:r.autoresize?`none`:void 0}}),i);return ve(()=>{if(!r.autoresize)return;let e=uae(n);ye(()=>e?.())}),A(L.textarea,j(a,{ref(t){var r=La(e=>n=e,e.ref);typeof r==`function`&&r(t)}}))};da({},{Context:()=>dae,ErrorText:()=>fae,HelperText:()=>pae,Input:()=>mae,Item:()=>hae,Label:()=>gae,RequiredIndicator:()=>_ae,Root:()=>yae,RootProvider:()=>bae,Select:()=>xae,Textarea:()=>Sae});var Cae=fa(`combobox`).parts(`root`,`clearTrigger`,`content`,`control`,`input`,`item`,`itemGroup`,`itemGroupLabel`,`itemIndicator`,`itemText`,`label`,`list`,`positioner`,`trigger`),Js=Cae.build(),wae=Object.defineProperty,Tae=(e,t,n)=>t in e?wae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ys=(e,t,n)=>Tae(e,typeof t==`symbol`?t:t+``,n),Xs={itemToValue(e){return typeof e==`string`?e:wn(e)&&kn(e,`value`)?e.value:``},itemToString(e){return typeof e==`string`?e:wn(e)&&kn(e,`label`)?e.label:Xs.itemToValue(e)},isItemDisabled(e){return wn(e)&&kn(e,`disabled`)?!!e.disabled:!1}},Zs=class e{constructor(t){Ys(this,`options`,t),Ys(this,`items`),Ys(this,`indexMap`,null),Ys(this,`copy`,t=>new e({...this.options,items:t??[...this.items]})),Ys(this,`isEqual`,e=>bn(this.items,e.items)),Ys(this,`setItems`,e=>this.copy(e)),Ys(this,`getValues`,(e=this.items)=>{let t=[];for(let n of e){let e=this.getItemValue(n);e!=null&&t.push(e)}return t}),Ys(this,`find`,e=>{if(e==null)return null;let t=this.indexOf(e);return t===-1?null:this.at(t)}),Ys(this,`findMany`,e=>{let t=[];for(let n of e){let e=this.find(n);e!=null&&t.push(e)}return t}),Ys(this,`at`,e=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[e]??null;let t=0,n=this.group();for(let[,r]of n)for(let n of r){if(t===e)return n;t++}return null}),Ys(this,`sortFn`,(e,t)=>{let n=this.indexOf(e),r=this.indexOf(t);return(n??0)-(r??0)}),Ys(this,`sort`,e=>[...e].sort(this.sortFn.bind(this))),Ys(this,`getItemValue`,e=>e==null?null:this.options.itemToValue?.(e)??Xs.itemToValue(e)),Ys(this,`getItemDisabled`,e=>e==null?!1:this.options.isItemDisabled?.(e)??Xs.isItemDisabled(e)),Ys(this,`stringifyItem`,e=>e==null?null:this.options.itemToString?.(e)??Xs.itemToString(e)),Ys(this,`stringify`,e=>e==null?null:this.stringifyItem(this.find(e))),Ys(this,`stringifyItems`,(e,t=`, `)=>{let n=[];for(let t of e){let e=this.stringifyItem(t);e!=null&&n.push(e)}return n.join(t)}),Ys(this,`stringifyMany`,(e,t)=>this.stringifyItems(this.findMany(e),t)),Ys(this,`has`,e=>this.indexOf(e)!==-1),Ys(this,`hasItem`,e=>e==null?!1:this.has(this.getItemValue(e))),Ys(this,`group`,()=>{let{groupBy:e,groupSort:t}=this.options;if(!e)return[[``,[...this.items]]];let n=new Map;this.items.forEach((t,r)=>{let i=e(t,r);n.has(i)||n.set(i,[]),n.get(i).push(t)});let r=Array.from(n.entries());return t&&r.sort(([e],[n])=>{if(typeof t==`function`)return t(e,n);if(Array.isArray(t)){let r=t.indexOf(e),i=t.indexOf(n);return r===-1?1:i===-1?-1:r-i}return t===`asc`?e.localeCompare(n):t===`desc`?n.localeCompare(e):0}),r}),Ys(this,`getNextValue`,(e,t=1,n=!1)=>{let r=this.indexOf(e);if(r===-1)return null;for(r=n?Math.min(r+t,this.size-1):r+t;r<=this.size&&this.getItemDisabled(this.at(r));)r++;return this.getItemValue(this.at(r))}),Ys(this,`getPreviousValue`,(e,t=1,n=!1)=>{let r=this.indexOf(e);if(r===-1)return null;for(r=n?Math.max(r-t,0):r-t;r>=0&&this.getItemDisabled(this.at(r));)r--;return this.getItemValue(this.at(r))}),Ys(this,`indexOf`,e=>{if(e==null)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,t=this.group();for(let[,n]of t)for(let t of n){let n=this.getItemValue(t);n!=null&&this.indexMap.set(n,e),e++}}return this.indexMap.get(e)??-1}),Ys(this,`getByText`,(e,t)=>{let n=t==null?-1:this.indexOf(t),r=e.length===1;for(let i=0;i<this.items.length;i++){let a=this.items[(n+i+1)%this.items.length];if(!(r&&this.getItemValue(a)===t)&&!this.getItemDisabled(a)&&Eae(this.stringifyItem(a),e))return a}}),Ys(this,`search`,(e,t)=>{let{state:n,currentValue:r,timeout:i=350}=t,a=n.keysSoFar+e,o=a.length>1&&Array.from(a).every(e=>e===a[0])?a[0]:a,s=this.getByText(o,r),c=this.getItemValue(s);function l(){clearTimeout(n.timer),n.timer=-1}function u(e){n.keysSoFar=e,l(),e!==``&&(n.timer=+setTimeout(()=>{u(``),l()},i))}return u(a),c}),Ys(this,`update`,(e,t)=>{let n=this.indexOf(e);return n===-1?this:this.copy([...this.items.slice(0,n),t,...this.items.slice(n+1)])}),Ys(this,`upsert`,(e,t,n=`append`)=>{let r=this.indexOf(e);return r===-1?(n===`append`?this.append:this.prepend)(t):this.copy([...this.items.slice(0,r),t,...this.items.slice(r+1)])}),Ys(this,`insert`,(e,...t)=>this.copy(Qs(this.items,e,...t))),Ys(this,`insertBefore`,(e,...t)=>{let n=this.indexOf(e);if(n===-1)if(this.items.length===0)n=0;else return this;return this.copy(Qs(this.items,n,...t))}),Ys(this,`insertAfter`,(e,...t)=>{let n=this.indexOf(e);if(n===-1)if(this.items.length===0)n=0;else return this;return this.copy(Qs(this.items,n+1,...t))}),Ys(this,`prepend`,(...e)=>this.copy(Qs(this.items,0,...e))),Ys(this,`append`,(...e)=>this.copy(Qs(this.items,this.items.length,...e))),Ys(this,`filter`,e=>{let t=this.items.filter((t,n)=>e(this.stringifyItem(t),n,t));return this.copy(t)}),Ys(this,`remove`,(...e)=>{let t=e.map(e=>typeof e==`string`?e:this.getItemValue(e));return this.copy(this.items.filter(e=>{let n=this.getItemValue(e);return n==null?!1:!t.includes(n)}))}),Ys(this,`move`,(e,t)=>{let n=this.indexOf(e);return n===-1?this:this.copy($s(this.items,[n],t))}),Ys(this,`moveBefore`,(e,...t)=>{let n=this.items.findIndex(t=>this.getItemValue(t)===e);if(n===-1)return this;let r=t.map(e=>this.items.findIndex(t=>this.getItemValue(t)===e)).sort((e,t)=>e-t);return this.copy($s(this.items,r,n))}),Ys(this,`moveAfter`,(e,...t)=>{let n=this.items.findIndex(t=>this.getItemValue(t)===e);if(n===-1)return this;let r=t.map(e=>this.items.findIndex(t=>this.getItemValue(t)===e)).sort((e,t)=>e-t);return this.copy($s(this.items,r,n+1))}),Ys(this,`reorder`,(e,t)=>this.copy($s(this.items,[e],t))),Ys(this,`compareValue`,(e,t)=>{let n=this.indexOf(e),r=this.indexOf(t);return n<r?-1:+(n>r)}),Ys(this,`range`,(e,t)=>{let n=[],r=e;for(;r!=null;){if(this.find(r)&&n.push(r),r===t)return n;r=this.getNextValue(r)}return[]}),Ys(this,`getValueRange`,(e,t)=>e&&t?this.compareValue(e,t)<=0?this.range(e,t):this.range(t,e):[]),Ys(this,`toString`,()=>{let e=``;for(let t of this.items){let n=[this.getItemValue(t),this.stringifyItem(t),this.getItemDisabled(t)].filter(Boolean).join(`:`);e+=n+`,`}return e}),Ys(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}},Eae=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function Qs(e,t,...n){return[...e.slice(0,t),...n,...e.slice(t)]}function $s(e,t,n){t=[...t].sort((e,t)=>e-t);let r=t.map(t=>e[t]);for(let n=t.length-1;n>=0;n--)e=[...e.slice(0,t[n]),...e.slice(t[n]+1)];return n=Math.max(0,n-t.filter(e=>e<n).length),[...e.slice(0,n),...r,...e.slice(n)]}function Dae({values:e,collection:t,selectedItemMap:n}){let r=[];for(let i of e){let e=t.find(i)??n.get(i);e!=null&&r.push(e)}return r}function Oae({selectedItemMap:e,values:t,selectedItems:n,collection:r}){let i=new Map(e);for(let e of n){let t=r.getItemValue(e);t!=null&&i.set(t,e)}let a=new Set(t);for(let e of i.keys())a.has(e)||i.delete(e);return i}function ec({values:e,collection:t,selectedItemMap:n}){let r=Dae({values:e,collection:t,selectedItemMap:n});return{selectedItems:r,nextSelectedItemMap:Oae({selectedItemMap:n,values:e,selectedItems:r,collection:t})}}function kae({selectedItems:e,collection:t}){return Oae({selectedItemMap:new Map,values:e.map(e=>t.getItemValue(e)).filter(Boolean),selectedItems:e,collection:t})}var Aae=e=>new Zs(e);Aae.empty=()=>new Zs({items:[]});var jae=e=>e.ids?.root??`combobox:${e.id}`,tc=e=>e.ids?.label??`combobox:${e.id}:label`,Mae=e=>e.ids?.control??`combobox:${e.id}:control`,nc=e=>e.ids?.input??`combobox:${e.id}:input`,rc=e=>e.ids?.content??`combobox:${e.id}:content`,Nae=e=>e.ids?.positioner??`combobox:${e.id}:popper`,Pae=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,Fae=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,Iae=(e,t)=>e.ids?.itemGroup?.(t)??`combobox:${e.id}:optgroup:${t}`,Lae=(e,t)=>e.ids?.itemGroupLabel?.(t)??`combobox:${e.id}:optgroup-label:${t}`,Rae=(e,t)=>e.ids?.item?.(t)??`combobox:${e.id}:option:${t}`,ic=e=>e.getById(rc(e)),ac=e=>e.getById(nc(e)),zae=e=>e.getById(Nae(e)),Bae=e=>e.getById(Mae(e)),oc=e=>e.getById(Pae(e)),Vae=e=>e.getById(Fae(e)),sc=(e,t)=>{if(t==null)return null;let n=`[role=option][data-value="${CSS.escape(t)}"]`;return Ki(ic(e),n)},cc=e=>{let t=ac(e);e.isActiveElement(t)||t?.focus({preventScroll:!0}),Rr(t)},Hae=e=>{let t=oc(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})};function Uae(e,t){let{context:n,prop:r,state:i,send:a,scope:o,computed:s,event:c}=e,l=r(`translations`),u=r(`collection`),d=!!r(`disabled`),f=s(`isInteractive`),p=!!r(`invalid`),m=!!r(`required`),h=!!r(`readOnly`),g=i.hasTag(`open`),_=i.hasTag(`focused`),v=r(`composite`),y=n.get(`highlightedValue`),b=n.get(`currentPlacement`),x=b?Xo(b):void 0,S=rs({...r(`positioning`),placement:b});function C(e){let t=u.getItemDisabled(e.item),r=u.getItemValue(e.item);return or(r,()=>`[zag-js] No value found for item ${JSON.stringify(e.item)}`),{value:r,disabled:!!(d||t),highlighted:y===r,selected:n.get(`value`).includes(r)}}return{focused:_,open:g,inputValue:n.get(`inputValue`),highlightedValue:y,highlightedItem:n.get(`highlightedItem`),value:n.get(`value`),valueAsString:s(`valueAsString`),hasSelectedItems:s(`hasSelectedItems`),selectedItems:s(`selectedItems`),collection:r(`collection`),multiple:!!r(`multiple`),disabled:!!d,syncSelectedItems(){a({type:`SELECTED_ITEMS.SYNC`})},reposition(e={}){a({type:`POSITIONING.SET`,options:e})},setHighlightValue(e){a({type:`HIGHLIGHTED_VALUE.SET`,value:e})},clearHighlightValue(){a({type:`HIGHLIGHTED_VALUE.CLEAR`})},selectValue(e){a({type:`ITEM.SELECT`,value:e})},setValue(e){a({type:`VALUE.SET`,value:e})},setInputValue(e,t=`script`){a({type:`INPUT_VALUE.SET`,value:e,src:t})},clearValue(e){a(e==null?{type:`VALUE.CLEAR`}:{type:`ITEM.CLEAR`,value:e})},focus(){ac(o)?.focus()},setOpen(e,t=`script`){i.hasTag(`open`)!==e&&a({type:e?`OPEN`:`CLOSE`,src:t})},getRootProps(){return t.element({...Js.root.attrs,dir:r(`dir`),id:jae(o),"data-invalid":F(p),"data-readonly":F(h)})},getLabelProps(){return t.label({...Js.label.attrs,dir:r(`dir`),htmlFor:nc(o),id:tc(o),"data-readonly":F(h),"data-disabled":F(d),"data-invalid":F(p),"data-required":F(m),"data-focus":F(_),onClick(e){v||(e.preventDefault(),oc(o)?.focus({preventScroll:!0}))}})},getControlProps(){return t.element({...Js.control.attrs,dir:r(`dir`),id:Mae(o),"data-state":g?`open`:`closed`,"data-focus":F(_),"data-disabled":F(d),"data-invalid":F(p)})},getPositionerProps(){return t.element({...Js.positioner.attrs,dir:r(`dir`),id:Nae(o),style:S.floating})},getInputProps(){return t.input({...Js.input.attrs,dir:r(`dir`),"aria-invalid":Hr(p),"data-invalid":F(p),"data-autofocus":F(r(`autoFocus`)),name:r(`name`),form:r(`form`),disabled:d,required:r(`required`),autoComplete:`off`,autoCorrect:`off`,autoCapitalize:`none`,spellCheck:`false`,readOnly:h,placeholder:r(`placeholder`),id:nc(o),type:`text`,role:`combobox`,defaultValue:n.get(`inputValue`),"aria-autocomplete":s(`autoComplete`)?`both`:`list`,"aria-controls":rc(o),"aria-expanded":g,"data-state":g?`open`:`closed`,"aria-activedescendant":y?Rae(o,y):void 0,onClick(e){e.defaultPrevented||r(`openOnClick`)&&f&&a({type:`INPUT.CLICK`,src:`input-click`})},onFocus(){d||a({type:`INPUT.FOCUS`})},onBlur(){d||a({type:`INPUT.BLUR`})},onChange(e){a({type:`INPUT.CHANGE`,value:e.currentTarget.value,src:`input-change`})},onKeyDown(e){if(e.defaultPrevented||!f||e.ctrlKey||e.shiftKey||hi(e))return;let t=r(`openOnKeyPress`),n=e.ctrlKey||e.metaKey||e.shiftKey,i={ArrowDown(e){!t&&!g||(a({type:e.altKey?`OPEN`:`INPUT.ARROW_DOWN`,keypress:!0,src:`arrow-key`}),e.preventDefault())},ArrowUp(){!t&&!g||(a({type:e.altKey?`CLOSE`:`INPUT.ARROW_UP`,keypress:!0,src:`arrow-key`}),e.preventDefault())},Home(e){n||(a({type:`INPUT.HOME`,keypress:!0}),g&&e.preventDefault())},End(e){n||(a({type:`INPUT.END`,keypress:!0}),g&&e.preventDefault())},Enter(e){a({type:`INPUT.ENTER`,keypress:!0,src:`item-select`});let t=y!=null,n=r(`alwaysSubmitOnEnter`),i=s(`isCustomValue`)&&!r(`allowCustomValue`);if(g&&!n&&(t||i)&&e.preventDefault(),y==null)return;let c=sc(o,y);Yr(c)&&r(`navigate`)?.({value:y,node:c,href:c.href})},Escape(){a({type:`INPUT.ESCAPE`,keypress:!0,src:`escape-key`}),e.preventDefault()}}[yi(e,{dir:r(`dir`)})];i?.(e)}})},getTriggerProps(e={}){return t.button({...Js.trigger.attrs,dir:r(`dir`),id:Pae(o),"aria-haspopup":v?`listbox`:`dialog`,type:`button`,tabIndex:e.focusable?void 0:-1,"aria-label":l.triggerLabel,"aria-expanded":g,"data-state":g?`open`:`closed`,"aria-controls":g?rc(o):void 0,disabled:d,"data-invalid":F(p),"data-focusable":F(e.focusable),"data-readonly":F(h),"data-disabled":F(d),onFocus(){e.focusable&&a({type:`INPUT.FOCUS`,src:`trigger`})},onClick(e){e.defaultPrevented||f&&gi(e)&&a({type:`TRIGGER.CLICK`,src:`trigger-click`})},onPointerDown(e){f&&e.pointerType!==`touch`&&gi(e)&&(e.preventDefault(),queueMicrotask(()=>{cc(o)}))},onKeyDown(e){if(e.defaultPrevented||v)return;let t={ArrowDown(){a({type:`INPUT.ARROW_DOWN`,src:`arrow-key`})},ArrowUp(){a({type:`INPUT.ARROW_UP`,src:`arrow-key`})}}[yi(e,{dir:r(`dir`)})];t&&(t(e),e.preventDefault())}})},getContentProps(){return t.element({...Js.content.attrs,dir:r(`dir`),id:rc(o),role:v?`listbox`:`dialog`,tabIndex:-1,hidden:!g,"data-state":g?`open`:`closed`,"data-placement":b,"data-side":x,"aria-labelledby":tc(o),"aria-multiselectable":r(`multiple`)&&v?!0:void 0,"data-empty":F(u.size===0),onPointerDown(e){gi(e)&&e.preventDefault()}})},getListProps(){return t.element({...Js.list.attrs,role:v?void 0:`listbox`,"data-empty":F(u.size===0),"aria-labelledby":tc(o),"aria-multiselectable":r(`multiple`)&&!v?!0:void 0})},getClearTriggerProps(){return t.button({...Js.clearTrigger.attrs,dir:r(`dir`),id:Fae(o),type:`button`,tabIndex:-1,disabled:d,"data-invalid":F(p),"aria-label":l.clearTriggerLabel,"aria-controls":nc(o),hidden:!n.get(`value`).length,onPointerDown(e){gi(e)&&e.preventDefault()},onClick(e){e.defaultPrevented||f&&a({type:`VALUE.CLEAR`,src:`clear-trigger`})}})},getItemState:C,getItemProps(e){let n=C(e),i=n.value;return t.element({...Js.item.attrs,dir:r(`dir`),id:Rae(o,i),role:`option`,tabIndex:-1,"data-highlighted":F(n.highlighted),"data-state":n.selected?`checked`:`unchecked`,"aria-selected":Hr(n.selected),"aria-disabled":Hr(n.disabled),"data-disabled":F(n.disabled),"data-value":n.value,onPointerMove(){n.disabled||n.highlighted||a({type:`ITEM.POINTER_MOVE`,value:i})},onPointerLeave(){e.persistFocus||n.disabled||c.previous()?.type.includes(`POINTER`)&&a({type:`ITEM.POINTER_LEAVE`,value:i})},onClick(e){mi(e)||pi(e)||_i(e)||n.disabled||a({type:`ITEM.CLICK`,src:`item-select`,value:i})}})},getItemTextProps(e){let n=C(e);return t.element({...Js.itemText.attrs,dir:r(`dir`),"data-state":n.selected?`checked`:`unchecked`,"data-disabled":F(n.disabled),"data-highlighted":F(n.highlighted)})},getItemIndicatorProps(e){let n=C(e);return t.element({"aria-hidden":!0,...Js.itemIndicator.attrs,dir:r(`dir`),"data-state":n.selected?`checked`:`unchecked`,hidden:!n.selected})},getItemGroupProps(e){let{id:n}=e;return t.element({...Js.itemGroup.attrs,dir:r(`dir`),id:Iae(o,n),"aria-labelledby":Lae(o,n),"data-empty":F(u.size===0),role:`group`})},getItemGroupLabelProps(e){let{htmlFor:n}=e;return t.element({...Js.itemGroupLabel.attrs,dir:r(`dir`),id:Lae(o,n),role:`presentation`})}}}var lc=`__live-region__`,uc=`__live-region-debug__`,Wae=`position:fixed;inset-inline:0;bottom:0;z-index:2147483647;padding:12px 16px;background:black;color:white;font-size:14px;line-height:20px;text-align:center;pointer-events:none;`;function Gae(e={}){let{level:t=`polite`,document:n=document,root:r,delay:i=0,debug:a=!1}=e,o=n.defaultView??window,s=r??n.body;function c(){if(!a)return;let e=n.getElementById(uc);return e||(e=n.createElement(`div`),e.id=uc,e.dataset.liveAnnouncerDebug=`true`,e.setAttribute(`aria-hidden`,`true`),e.style.cssText=Wae,s.appendChild(e),e)}function l(e,r){n.getElementById(lc)?.remove(),r??=i;let a=n.createElement(`span`);a.id=lc,a.dataset.liveAnnouncer=`true`;let l=t===`assertive`?`alert`:`status`;a.setAttribute(`aria-live`,t),a.setAttribute(`role`,l),Object.assign(a.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`}),s.appendChild(a),o.setTimeout(()=>{if(!a.isConnected)return;a.textContent=e;let t=c();t&&(t.textContent=e)},r)}function u(){n.getElementById(lc)?.remove(),n.getElementById(uc)?.remove()}return{announce:l,destroy:u,toJSON(){return lc}}}var{guards:Kae,createMachine:qae,choose:Jae}=Pr(),{and:dc,not:fc}=Kae,Yae=qae({props({props:e}){return{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}){zi(e)},collection:Aae.empty(),...e,positioning:{placement:`bottom`,sameWidth:!0,...e.positioning},translations:{triggerLabel:`Toggle suggestions`,clearTriggerLabel:`Clear value`,...e.translations}}},initialState({prop:e}){return e(`open`)||e(`defaultOpen`)?`open.suggesting`:`closed.idle`},context({prop:e,bindable:t,getContext:n,getEvent:r}){let i=e(`value`)??e(`defaultValue`)??[],a=e(`collection`).findMany(i);return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e(`defaultValue`),value:e(`value`),isEqual:bn,hash(e){return e.join(`,`)},onChange(t){let r=n(),i=e(`collection`),a=ec({values:t,collection:i,selectedItemMap:r.get(`selectedItemMap`)}),o=e(`value`)??t,s=o===t?a:ec({values:o,collection:i,selectedItemMap:a.nextSelectedItemMap});r.set(`selectedItemMap`,s.nextSelectedItemMap),e(`onValueChange`)?.({value:t,items:a.selectedItems})}})),highlightedValue:t(()=>({defaultValue:e(`defaultHighlightedValue`)||null,value:e(`highlightedValue`),onChange(t){let n=e(`collection`).find(t);e(`onHighlightChange`)?.({highlightedValue:t,highlightedItem:n})}})),inputValue:t(()=>{let t=e(`inputValue`)||e(`defaultInputValue`),n=e(`value`)||e(`defaultValue`);if(!t.trim()&&!e(`multiple`)){let r=e(`collection`).stringifyMany(n);t=Hn(e(`selectionBehavior`),{preserve:t||r,replace:r,clear:``})}return{defaultValue:t,value:e(`inputValue`),onChange(t){let n=r(),i=(n.previousEvent||n).src;e(`onInputValueChange`)?.({inputValue:t,reason:i})}}}),highlightedItem:t(()=>{let t=e(`highlightedValue`);return{defaultValue:e(`collection`).find(t)}}),selectedItemMap:t(()=>({defaultValue:kae({selectedItems:a,collection:e(`collection`)})}))}},computed:{isInputValueEmpty:({context:e})=>e.get(`inputValue`).length===0,isInteractive:({prop:e})=>!(e(`readOnly`)||e(`disabled`)),autoComplete:({prop:e})=>e(`inputBehavior`)===`autocomplete`,autoHighlight:({prop:e})=>e(`inputBehavior`)===`autohighlight`,hasSelectedItems:({context:e})=>e.get(`value`).length>0,selectedItems:({context:e,prop:t})=>Dae({values:e.get(`value`),collection:t(`collection`),selectedItemMap:e.get(`selectedItemMap`)}),valueAsString:({computed:e,prop:t})=>t(`collection`).stringifyItems(e(`selectedItems`)),isCustomValue:({context:e,computed:t})=>e.get(`inputValue`)!==t(`valueAsString`)},watch({context:e,prop:t,track:n,action:r,send:i}){n([()=>e.hash(`value`)],()=>{r([`syncSelectedItems`])}),n([()=>e.get(`inputValue`)],()=>{r([`syncInputValue`])}),n([()=>e.get(`highlightedValue`)],()=>{r([`syncHighlightedItem`,`autofillInputValue`,`announceHighlightedItem`])}),n([()=>t(`open`)],()=>{r([`toggleVisibility`])}),n([()=>t(`collection`).toString()],()=>{i({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:Jae([{guard:`autoFocus`,actions:[`setInitialFocus`]}]),states:{closed:{tags:[`closed`],initial:`idle`,states:{idle:{tags:[`idle`],entry:[`scrollContentToTop`,`clearHighlightedValue`],on:{"CONTROLLED.OPEN":{target:`open.interacting`},"TRIGGER.CLICK":[{guard:`isOpenControlled`,actions:[`setInitialFocus`,`highlightFirstSelectedItem`,`invokeOnOpen`]},{target:`open.interacting`,actions:[`setInitialFocus`,`highlightFirstSelectedItem`,`invokeOnOpen`]}],"INPUT.CLICK":[{guard:`isOpenControlled`,actions:[`highlightFirstSelectedItem`,`invokeOnOpen`]},{target:`open.interacting`,actions:[`highlightFirstSelectedItem`,`invokeOnOpen`]}],"INPUT.FOCUS":{target:`focused`},OPEN:[{guard:`isOpenControlled`,actions:[`invokeOnOpen`]},{target:`open.interacting`,actions:[`invokeOnOpen`]}],"VALUE.CLEAR":{target:`focused`,actions:[`clearInputValue`,`clearSelectedItems`,`setInitialFocus`]}}},focused:{tags:[`focused`],entry:[`scrollContentToTop`,`clearHighlightedValue`],on:{"CONTROLLED.OPEN":[{guard:`isChangeEvent`,target:`open.suggesting`},{target:`open.interacting`}],"INPUT.CHANGE":[{guard:dc(`isOpenControlled`,`openOnChange`),actions:[`setInputValue`,`invokeOnOpen`,`highlightFirstItemIfNeeded`]},{guard:`openOnChange`,target:`open.suggesting`,actions:[`setInputValue`,`invokeOnOpen`,`highlightFirstItemIfNeeded`]},{actions:[`setInputValue`]}],"LAYER.INTERACT_OUTSIDE":{target:`idle`},"INPUT.ESCAPE":{guard:dc(`isCustomValue`,fc(`allowCustomValue`)),actions:[`revertInputValue`]},"INPUT.BLUR":{target:`idle`},"INPUT.CLICK":[{guard:`isOpenControlled`,actions:[`highlightFirstSelectedItem`,`invokeOnOpen`]},{target:`open.interacting`,actions:[`highlightFirstSelectedItem`,`invokeOnOpen`]}],"TRIGGER.CLICK":[{guard:`isOpenControlled`,actions:[`setInitialFocus`,`highlightFirstSelectedItem`,`invokeOnOpen`]},{target:`open.interacting`,actions:[`setInitialFocus`,`highlightFirstSelectedItem`,`invokeOnOpen`]}],"INPUT.ARROW_DOWN":[{guard:dc(`isOpenControlled`,`autoComplete`),actions:[`invokeOnOpen`]},{guard:`autoComplete`,target:`open.interacting`,actions:[`invokeOnOpen`]},{guard:`isOpenControlled`,actions:[`highlightFirstOrSelectedItem`,`invokeOnOpen`]},{target:`open.interacting`,actions:[`highlightFirstOrSelectedItem`,`invokeOnOpen`]}],"INPUT.ARROW_UP":[{guard:dc(`isOpenControlled`,`autoComplete`),actions:[`invokeOnOpen`]},{guard:`autoComplete`,target:`open.interacting`,actions:[`invokeOnOpen`]},{guard:`isOpenControlled`,actions:[`highlightLastOrSelectedItem`,`invokeOnOpen`]},{target:`open.interacting`,actions:[`highlightLastOrSelectedItem`,`invokeOnOpen`]}],OPEN:[{guard:`isOpenControlled`,actions:[`invokeOnOpen`]},{target:`open.interacting`,actions:[`invokeOnOpen`]}],"VALUE.CLEAR":{actions:[`clearInputValue`,`clearSelectedItems`]}}}}},open:{tags:[`open`,`focused`],entry:[`setInitialFocus`],effects:[`trackFocusVisible`,`scrollToHighlightedItem`,`trackDismissableLayer`,`trackPlacement`,`trackLiveRegion`],on:{"CONTROLLED.CLOSE":[{guard:`restoreFocus`,target:`closed.focused`,actions:[`setFinalFocus`]},{target:`closed.idle`}],"INPUT.ENTER":[{guard:dc(`isOpenControlled`,`isCustomValue`,fc(`hasHighlightedItem`),fc(`allowCustomValue`)),actions:[`revertInputValue`,`invokeOnClose`]},{guard:dc(`isCustomValue`,fc(`hasHighlightedItem`),fc(`allowCustomValue`)),target:`closed.focused`,actions:[`revertInputValue`,`invokeOnClose`]},{guard:dc(`isOpenControlled`,`closeOnSelect`),actions:[`selectHighlightedItem`,`invokeOnClose`]},{guard:`closeOnSelect`,target:`closed.focused`,actions:[`selectHighlightedItem`,`invokeOnClose`,`setFinalFocus`]},{actions:[`selectHighlightedItem`]}],"ITEM.CLICK":[{guard:dc(`isOpenControlled`,`closeOnSelect`),actions:[`selectItem`,`invokeOnClose`]},{guard:`closeOnSelect`,target:`closed.focused`,actions:[`selectItem`,`invokeOnClose`,`setFinalFocus`]},{actions:[`selectItem`]}],"TRIGGER.CLICK":[{guard:`isOpenControlled`,actions:[`invokeOnClose`]},{target:`closed.focused`,actions:[`invokeOnClose`]}],"LAYER.INTERACT_OUTSIDE":[{guard:dc(`isOpenControlled`,`isCustomValue`,fc(`allowCustomValue`)),actions:[`revertInputValue`,`invokeOnClose`]},{guard:dc(`isCustomValue`,fc(`allowCustomValue`)),target:`closed.idle`,actions:[`revertInputValue`,`invokeOnClose`]},{guard:`isOpenControlled`,actions:[`invokeOnClose`]},{target:`closed.idle`,actions:[`invokeOnClose`]}],CLOSE:[{guard:`isOpenControlled`,actions:[`invokeOnClose`]},{target:`closed.focused`,actions:[`invokeOnClose`,`setFinalFocus`]}],"VALUE.CLEAR":[{guard:`isOpenControlled`,actions:[`clearInputValue`,`clearSelectedItems`,`invokeOnClose`]},{target:`closed.focused`,actions:[`clearInputValue`,`clearSelectedItems`,`invokeOnClose`,`setFinalFocus`]}]},initial:`interacting`,states:{interacting:{on:{CHILDREN_CHANGE:[{guard:`isHighlightedItemRemoved`,actions:[`clearHighlightedValue`]},{actions:[`scrollToHighlightedItem`]}],"INPUT.HOME":{actions:[`highlightFirstItem`]},"INPUT.END":{actions:[`highlightLastItem`]},"INPUT.ARROW_DOWN":[{guard:dc(`autoComplete`,`isLastItemHighlighted`),actions:[`clearHighlightedValue`,`scrollContentToTop`]},{actions:[`highlightNextItem`]}],"INPUT.ARROW_UP":[{guard:dc(`autoComplete`,`isFirstItemHighlighted`),actions:[`clearHighlightedValue`]},{actions:[`highlightPrevItem`]}],"INPUT.CHANGE":[{guard:`autoComplete`,target:`suggesting`,actions:[`setInputValue`]},{target:`suggesting`,actions:[`clearHighlightedValue`,`setInputValue`]}],"ITEM.POINTER_MOVE":{actions:[`setHighlightedValue`]},"ITEM.POINTER_LEAVE":{actions:[`clearHighlightedValue`]},"LAYER.ESCAPE":[{guard:dc(`isOpenControlled`,`autoComplete`),actions:[`syncInputValue`,`invokeOnClose`]},{guard:`autoComplete`,target:`closed.focused`,actions:[`syncInputValue`,`invokeOnClose`]},{guard:`isOpenControlled`,actions:[`invokeOnClose`]},{target:`closed.focused`,actions:[`invokeOnClose`,`setFinalFocus`]}]}},suggesting:{on:{CHILDREN_CHANGE:[{guard:dc(`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.CHANGE":{actions:[`setInputValue`]},"LAYER.ESCAPE":[{guard:`isOpenControlled`,actions:[`invokeOnClose`]},{target:`closed.focused`,actions:[`invokeOnClose`]}],"ITEM.POINTER_MOVE":{target:`interacting`,actions:[`setHighlightedValue`]},"ITEM.POINTER_LEAVE":{actions:[`clearHighlightedValue`]}}}}}},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})=>e.get(`highlightedValue`)!=null,closeOnSelect:({prop:e})=>!!e(`closeOnSelect`),isOpenControlled:({prop:e})=>e(`open`)!=null,openOnChange:({prop:e,context:t})=>{let n=e(`openOnChange`);return Sn(n)?n:!!n?.({inputValue:t.get(`inputValue`)})},restoreFocus:({event:e})=>{let t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null?!0:!!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:{trackFocusVisible({scope:e}){return Pa({root:e.getRootNode?.()})},trackDismissableLayer({send:e,prop:t,scope:n}){return t(`disableLayer`)?void 0:Cs(()=>ic(n),{type:`listbox`,defer:!0,exclude:()=>[ac(n),oc(n),Vae(n)],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})}})},trackLiveRegion({refs:e,scope:t}){let n=Gae({level:`assertive`,document:t.getDoc()});return e.set(`liveRegion`,n),()=>n.destroy()},trackPlacement({context:e,prop:t,scope:n}){return e.set(`currentPlacement`,t(`positioning`).placement),ns(()=>Bae(n)||oc(n),()=>zae(n),{...t(`positioning`),defer:!0,onComplete(t){e.set(`currentPlacement`,t.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:n}){let r=ac(n),i=[],a=r=>{if(ja()===`pointer`)return;let a=e.get(`highlightedValue`);if(!a)return;let o=ic(n),s=t(`scrollToIndexFn`);if(s){s({index:t(`collection`).indexOf(a),immediate:r,getElement:()=>sc(n,a)});return}let c=sc(n,a),l=Ii(()=>{Xi(c,{rootEl:o,block:`nearest`})});i.push(l)},o=Ii(()=>{Ma(`virtual`),a(!0)});i.push(o);let s=Ri(r,{attributes:[`aria-activedescendant`],callback:()=>a(!1)});return i.push(s),()=>{i.forEach(e=>e())}}},actions:{reposition({context:e,prop:t,scope:n,event:r}){ns(()=>Bae(n),()=>zae(n),{...t(`positioning`),...r.options,defer:!0,listeners:!1,onComplete(t){e.set(`currentPlacement`,t.placement)}})},setHighlightedValue({context:e,event:t}){t.value!=null&&e.set(`highlightedValue`,t.value)},clearHighlightedValue({context:e}){e.set(`highlightedValue`,null)},selectHighlightedItem(e){let{context:t,prop:n}=e,r=n(`collection`),i=t.get(`highlightedValue`);if(!i||!r.has(i))return;let a=n(`multiple`)?pn(t.get(`value`),i):[i];n(`onSelect`)?.({value:a,itemValue:i}),t.set(`value`,a);let o=Hn(n(`selectionBehavior`),{preserve:t.get(`inputValue`),replace:r.stringifyMany(a),clear:``});t.set(`inputValue`,o)},scrollToHighlightedItem({context:e,prop:t,scope:n}){Li(()=>{let r=e.get(`highlightedValue`);if(r==null)return;let i=sc(n,r),a=ic(n),o=t(`scrollToIndexFn`);if(o){o({index:t(`collection`).indexOf(r),immediate:!0,getElement:()=>sc(n,r)});return}Xi(i,{rootEl:a,block:`nearest`})})},selectItem(e){let{context:t,event:n,flush:r,prop:i}=e;n.value!=null&&r(()=>{let e=i(`multiple`)?pn(t.get(`value`),n.value):[n.value];i(`onSelect`)?.({value:e,itemValue:n.value}),t.set(`value`,e);let r=Hn(i(`selectionBehavior`),{preserve:t.get(`inputValue`),replace:i(`collection`).stringifyMany(e),clear:``});t.set(`inputValue`,r)})},clearItem(e){let{context:t,event:n,flush:r,prop:i}=e;n.value!=null&&r(()=>{let e=fn(t.get(`value`),n.value);t.set(`value`,e);let r=Hn(i(`selectionBehavior`),{preserve:t.get(`inputValue`),replace:i(`collection`).stringifyMany(e),clear:``});t.set(`inputValue`,r)})},setInitialFocus({scope:e}){Ii(()=>{cc(e)})},setFinalFocus({scope:e}){Ii(()=>{oc(e)?.dataset.focusable==null?cc(e):Hae(e)})},syncInputValue({context:e,scope:t,event:n}){let r=ac(t);r&&(r.value=e.get(`inputValue`),queueMicrotask(()=>{n.current().type!==`INPUT.CHANGE`&&Rr(r)}))},setInputValue({context:e,event:t}){e.set(`inputValue`,t.value)},clearInputValue({context:e}){e.set(`inputValue`,``)},revertInputValue({context:e,prop:t,computed:n}){let r=Hn(t(`selectionBehavior`),{replace:n(`hasSelectedItems`)?n(`valueAsString`):``,preserve:e.get(`inputValue`),clear:``});e.set(`inputValue`,r)},setValue(e){let{context:t,flush:n,event:r,prop:i}=e;n(()=>{t.set(`value`,r.value);let e=Hn(i(`selectionBehavior`),{preserve:t.get(`inputValue`),replace:i(`collection`).stringifyMany(r.value),clear:``});t.set(`inputValue`,e)})},clearSelectedItems(e){let{context:t,flush:n,prop:r}=e;n(()=>{t.set(`value`,[]);let e=Hn(r(`selectionBehavior`),{preserve:t.get(`inputValue`),replace:r(`collection`).stringifyMany([]),clear:``});t.set(`inputValue`,e)})},scrollContentToTop({prop:e,scope:t}){let n=e(`scrollToIndexFn`);if(n){let r=e(`collection`).firstValue;n({index:0,immediate:!0,getElement:()=>sc(t,r)})}else{let e=ic(t);if(!e)return;e.scrollTop=0}},invokeOnOpen({prop:e,event:t,context:n}){let r=pc(t);e(`onOpenChange`)?.({open:!0,reason:r,value:n.get(`value`)})},invokeOnClose({prop:e,event:t,context:n}){let r=pc(t);e(`onOpenChange`)?.({open:!1,reason:r,value:n.get(`value`)})},highlightFirstItem({context:e,prop:t,scope:n}){(ic(n)?queueMicrotask:Ii)(()=>{let n=t(`collection`).firstValue;n&&e.set(`highlightedValue`,n)})},highlightFirstItemIfNeeded({computed:e,action:t}){e(`autoHighlight`)&&t([`highlightFirstItem`])},highlightLastItem({context:e,prop:t,scope:n}){(ic(n)?queueMicrotask:Ii)(()=>{let n=t(`collection`).lastValue;n&&e.set(`highlightedValue`,n)})},highlightNextItem({context:e,prop:t}){let n=null,r=e.get(`highlightedValue`),i=t(`collection`);r?(n=i.getNextValue(r),!n&&t(`loopFocus`)&&(n=i.firstValue)):n=i.firstValue,n&&e.set(`highlightedValue`,n)},highlightPrevItem({context:e,prop:t}){let n=null,r=e.get(`highlightedValue`),i=t(`collection`);r?(n=i.getPreviousValue(r),!n&&t(`loopFocus`)&&(n=i.lastValue)):n=i.lastValue,n&&e.set(`highlightedValue`,n)},highlightFirstSelectedItem({context:e,prop:t}){Ii(()=>{let[n]=t(`collection`).sort(e.get(`value`));n&&e.set(`highlightedValue`,n)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:n}){Ii(()=>{let r=null;r=n(`hasSelectedItems`)?t(`collection`).sort(e.get(`value`))[0]:t(`collection`).firstValue,r&&e.set(`highlightedValue`,r)})},highlightLastOrSelectedItem({context:e,prop:t,computed:n}){Ii(()=>{let r=t(`collection`),i=null;i=n(`hasSelectedItems`)?r.sort(e.get(`value`))[0]:r.lastValue,i&&e.set(`highlightedValue`,i)})},autofillInputValue({context:e,computed:t,prop:n,event:r,scope:i}){let a=ac(i),o=n(`collection`);if(!t(`autoComplete`)||!a||!r.keypress)return;let s=o.stringify(e.get(`highlightedValue`));Ii(()=>{a.value=s||e.get(`inputValue`)})},syncSelectedItems(e){queueMicrotask(()=>{let{context:t,prop:n}=e,r=n(`collection`),i=t.get(`value`),a=ec({values:i,collection:r,selectedItemMap:t.get(`selectedItemMap`)});t.set(`selectedItemMap`,a.nextSelectedItemMap);let o=Hn(n(`selectionBehavior`),{preserve:t.get(`inputValue`),replace:r.stringifyMany(i),clear:``});t.set(`inputValue`,o)})},syncHighlightedItem({context:e,prop:t}){let n=t(`collection`).find(e.get(`highlightedValue`));e.set(`highlightedItem`,n)},announceHighlightedItem({context:e,prop:t,refs:n}){if(!li())return;let r=e.get(`highlightedValue`),i=r?t(`collection`).stringifyItem(t(`collection`).find(r)):null;if(!i)return;let a=r?e.get(`value`).includes(r):!1;n.get(`liveRegion`)?.announce(a?`${i}, selected`:i)},toggleVisibility({event:e,send:t,prop:n}){t({type:n(`open`)?`CONTROLLED.OPEN`:`CONTROLLED.CLOSE`,previousEvent:e})}}}});function pc(e){return(e.previousEvent||e).src}var Xae=Cae.extendWith(`empty`),[mc,hc]=cr({hookName:`useComboboxContext`,providerName:`<ComboboxProvider />`}),Zae=e=>{let t=hc(),n=I(()=>t().getClearTriggerProps(),e);return A(L.button,n)},Qae=e=>{let t=hc(),n=Ba(),r=I(()=>t().getContentProps(),()=>n().presenceProps,e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,j(r,{ref(t){var r=La(n().ref,e.ref);typeof r==`function`&&r(t)}}))}})},$ae=Xae.build(),eoe=e=>{let t=hc(),n=k(()=>t().collection.size);return A(M,{get when(){return n()===0},get children(){return A(L.div,j(()=>$ae.empty.attrs,e,{role:`presentation`}))}})},toe=e=>e.children(hc()),noe=e=>{let t=hc(),n=I(()=>t().getControlProps(),e);return A(L.div,n)},roe=e=>{let t=hc(),n=I(()=>t().getInputProps(),e),r=qs();return A(L.input,j({get"aria-describedby"(){return r?.().ariaDescribedby}},n))},[ioe,aoe]=cr({hookName:`useComboboxItemContext`,providerName:`<ComboboxItemProvider />`}),[ooe,gc]=cr({hookName:`useComboboxItemPropsContext`,providerName:`<ComboboxItemPropsProvider />`}),soe=e=>{let[t,n]=$t()(e,[`item`,`persistFocus`]),r=hc(),i=I(()=>r().getItemProps(t),n),a=k(()=>r().getItemState(t));return A(ooe,{value:t,get children(){return A(ioe,{value:a,get children(){return A(L.div,i)}})}})},coe=e=>e.children(aoe()),[loe,uoe]=cr({hookName:`useComboboxItemGroupPropsContext`,providerName:`<ComboboxItemGroupPropsProvider />`}),doe=e=>{let[t,n]=$t()(e,[`id`]),r=hc(),i=I({id:ct()},t),a=I(()=>r().getItemGroupProps(i),n);return A(loe,{value:i,get children(){return A(L.div,a)}})},foe=e=>{let t=hc(),n=uoe(),r=I(()=>t().getItemGroupLabelProps({htmlFor:n.id}),e);return A(L.div,r)},poe=e=>{let t=hc(),n=gc(),r=I(()=>t().getItemIndicatorProps(n),e);return A(L.div,r)},moe=e=>{let t=hc(),n=gc(),r=I(()=>t().getItemTextProps(n),e);return A(L.span,r)},hoe=e=>{let t=hc(),n=I(()=>t().getLabelProps(),e);return A(L.label,n)},goe=e=>{let t=hc(),n=I(()=>t().getListProps(),e);return A(L.div,n)},_oe=e=>{let t=hc(),n=Ba(),r=I(()=>t().getPositionerProps(),e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,r)}})},voe=e=>{let t=ua(),n=la(),r=ct(),i=qs(),a=na(Yae,k(()=>({id:r,ids:{label:i?.().ids.label,input:i?.().ids.control},disabled:i?.().disabled,readOnly:i?.().readOnly,required:i?.().required,invalid:i?.().invalid,dir:t().dir,getRootNode:n().getRootNode,...pr(e)})));return k(()=>Uae(a,oa))},yoe=e=>{let[t,n]=Ra(e),[r,i]=$t()(n,`allowCustomValue.alwaysSubmitOnEnter.autoFocus.closeOnSelect.collection.composite.defaultHighlightedValue.defaultInputValue.defaultOpen.defaultValue.disabled.disableLayer.form.highlightedValue.id.ids.inputBehavior.inputValue.invalid.loopFocus.multiple.name.navigate.onFocusOutside.onHighlightChange.onInputValueChange.onInteractOutside.onOpenChange.onPointerDownOutside.onValueChange.onSelect.open.openOnChange.openOnClick.openOnKeyPress.placeholder.positioning.readOnly.required.scrollToIndexFn.selectionBehavior.translations.value`.split(`.`)),a=voe(r),o=Ia(I(t,()=>({present:a().open}))),s=I(()=>a().getRootProps(),i);return A(mc,{value:a,get children(){return A(za,{value:o,get children(){return A(L.div,s)}})}})},boe=e=>{let[t,n]=Ra(e),[{value:r},i]=$t()(n,[`value`]),a=Ia(I(t,()=>({present:r().open}))),o=I(()=>r().getRootProps(),i);return A(mc,{value:r,get children(){return A(za,{value:a,get children(){return A(L.div,o)}})}})},xoe=e=>{let[t,n]=$t()(e,[`focusable`]),r=hc(),i=I(()=>r().getTriggerProps(t),n);return A(L.button,i)},_c={};da(_c,{ClearTrigger:()=>Zae,Content:()=>Qae,Context:()=>toe,Control:()=>noe,Empty:()=>eoe,Input:()=>roe,Item:()=>soe,ItemContext:()=>coe,ItemGroup:()=>doe,ItemGroupLabel:()=>foe,ItemIndicator:()=>poe,ItemText:()=>moe,Label:()=>hoe,List:()=>goe,Positioner:()=>_oe,Root:()=>yoe,RootProvider:()=>boe,Trigger:()=>xoe});var vc=e=>new Zs(e);function Soe(e){let t=k(()=>ot(typeof e==`function`?e():e,[`initialItems`,`filter`,`limit`])),[n,r]=O((()=>{let[e]=t();return e.initialItems})()),[i,a]=O(``),o=e=>{r(e),a(``)},s=e=>{let[,n]=t();return vc({...n,items:e})};return{collection:k(()=>{let[e,r]=t(),a=e.filter,o=n();i()&&a&&(o=s(n()).filter((e,t,n)=>a(e,i(),n)).items);let c=e.limit==null?o:o.slice(0,e.limit);return vc({...r,items:c})}),filter:(e=``)=>{a(e)},set:e=>{o(e)},reset:()=>{let[e]=t();o(e.initialItems)},clear:()=>{o([])},insert:(e,...t)=>{let r=s(n()).insert(e,...t).items;o(r)},insertBefore:(e,...t)=>{let r=s(n()).insertBefore(e,...t).items;o(r)},insertAfter:(e,...t)=>{let r=s(n()).insertAfter(e,...t).items;o(r)},remove:(...e)=>{let t=s(n()).remove(...e).items;o(t)},move:(e,t)=>{let r=s(n()).move(e,t).items;o(r)},moveBefore:(e,...t)=>{let r=s(n()).moveBefore(e,...t).items;o(r)},moveAfter:(e,...t)=>{let r=s(n()).moveAfter(e,...t).items;o(r)},reorder:(e,t)=>{let r=s(n()).reorder(e,t).items;o(r)},append:(...e)=>{let t=s(n()).append(...e).items;o(t)},upsert:(e,t,r=`append`)=>{let i=s(n()).upsert(e,t,r).items;o(i)},prepend:(...e)=>{let t=s(n()).prepend(...e).items;o(t)},update:(e,t)=>{let r=s(n()).update(e,t).items;o(r)}}}var yc=fa(`dialog`).parts(`trigger`,`backdrop`,`positioner`,`content`,`title`,`description`,`closeTrigger`).build(),bc=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,xc=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,Sc=e=>e.ids?.content??`dialog:${e.id}:content`,Cc=(e,t)=>{let n=e.ids?.trigger;return n==null?t?`dialog:${e.id}:trigger:${t}`:`dialog:${e.id}:trigger`:Dn(n)?n(t):n},wc=e=>e.ids?.title??`dialog:${e.id}:title`,Tc=e=>e.ids?.description??`dialog:${e.id}:description`,Ec=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,Dc=e=>e.getById(Sc(e)),Coe=e=>e.getById(bc(e)),woe=e=>e.getById(xc(e)),Oc=e=>e.getById(Cc(e)),Toe=e=>e.getById(wc(e)),Eoe=e=>e.getById(Tc(e)),Doe=e=>e.getById(Ec(e)),kc=e=>Gi(e.getRootNode(),`[data-scope="dialog"][data-part="trigger"][data-ownedby="${e.id}"]`),Ac=(e,t)=>t==null?Oc(e)??kc(e)[0]:e.getById(Cc(e,t));function Ooe(e,t){let{state:n,send:r,context:i,prop:a,scope:o}=e,s=a(`aria-label`),c=n.matches(`open`),l=i.get(`triggerValue`);return{open:c,setOpen(e){n.matches(`open`)!==e&&r({type:e?`OPEN`:`CLOSE`})},triggerValue:l,setTriggerValue(e){r({type:`TRIGGER_VALUE.SET`,value:e})},getTriggerProps(e={}){let{value:n}=e,i=n==null?!1:l===n;return t.button({...yc.trigger.attrs,dir:a(`dir`),id:Cc(o,n),"data-ownedby":o.id,"data-value":n,"aria-haspopup":`dialog`,type:`button`,"aria-expanded":n==null?c:c&&i,"data-state":c?`open`:`closed`,"aria-controls":Sc(o),"data-current":F(i),onClick(e){e.defaultPrevented||r({type:c&&n!=null&&!i?`TRIGGER_VALUE.SET`:`TOGGLE`,value:n})}})},getBackdropProps(){return t.element({...yc.backdrop.attrs,dir:a(`dir`),hidden:!c,id:xc(o),"data-state":c?`open`:`closed`})},getPositionerProps(){return t.element({...yc.positioner.attrs,dir:a(`dir`),id:bc(o),style:Qn({pointerEvents:!c||!a(`modal`)?`none`:void 0})})},getContentProps(){let e=i.get(`rendered`);return t.element({...yc.content.attrs,dir:a(`dir`),role:a(`role`),hidden:!c,id:Sc(o),tabIndex:-1,"data-state":c?`open`:`closed`,"aria-modal":a(`modal`),"aria-label":s||void 0,"aria-labelledby":s||!e.title?void 0:wc(o),"aria-describedby":e.description?Tc(o):void 0,style:Qn({pointerEvents:a(`modal`)?void 0:`auto`})})},getTitleProps(){return t.element({...yc.title.attrs,dir:a(`dir`),id:wc(o)})},getDescriptionProps(){return t.element({...yc.description.attrs,dir:a(`dir`),id:Tc(o)})},getCloseTriggerProps(){return t.button({...yc.closeTrigger.attrs,dir:a(`dir`),id:Ec(o),type:`button`,onClick(e){e.defaultPrevented||(e.stopPropagation(),r({type:`CLOSE`}))}})}}}var jc=new WeakMap,Mc=new WeakMap,Nc={},Pc=0,Fc=e=>e&&(e.host||Fc(e.parentNode)),koe=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=Fc(t);return n&&e.contains(n)?n:(console.error(`[zag-js > ariaHidden] target`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(e=>!!e),Aoe=new Set([`script`,`output`,`status`,`next-route-announcer`]),joe=e=>Aoe.has(e.localName)||e.role===`status`||e.hasAttribute(`aria-live`)?!0:e.matches(`[data-live-announcer]`),Moe=(e,t)=>{let{parentNode:n,markerName:r,controlAttribute:i,explicitBooleanValue:a,followControlledElements:o=!0}=t,s=koe(n,Array.isArray(e)?e:[e]);Nc[r]||(Nc[r]=new WeakMap);let c=Nc[r],l=[],u=new Set,d=new Set(s),f=e=>{!e||u.has(e)||(u.add(e),f(e.parentNode))};s.forEach(e=>{f(e),o&&Ur(e)&&Lee(e,e=>{f(e)})});let p=e=>{!e||d.has(e)||Array.prototype.forEach.call(e.children,e=>{if(u.has(e))p(e);else try{if(joe(e))return;let t=e.getAttribute(i),n=a?t===`true`:t!==null&&t!==`false`,o=(jc.get(e)||0)+1,s=(c.get(e)||0)+1;jc.set(e,o),c.set(e,s),l.push(e),o===1&&n&&Mc.set(e,!0),s===1&&e.setAttribute(r,``),n||e.setAttribute(i,a?`true`:``)}catch(t){console.error(`[zag-js > ariaHidden] cannot operate on `,e,t)}})};return p(n),u.clear(),Pc++,()=>{l.forEach(e=>{let t=jc.get(e)-1,n=c.get(e)-1;jc.set(e,t),c.set(e,n),t||(Mc.has(e)||e.removeAttribute(i),Mc.delete(e)),n||e.removeAttribute(r)}),Pc--,Pc||(jc=new WeakMap,jc=new WeakMap,Mc=new WeakMap,Nc={})}},Noe=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,Poe=(e,t=Noe(e),n=`data-aria-hidden`,r=!0)=>{if(t)return Moe(e,{parentNode:t,markerName:n,controlAttribute:`aria-hidden`,explicitBooleanValue:!0,followControlledElements:r})},Foe=e=>{let t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function Ic(e,t={}){let{defer:n=!0}=t,r=n?Foe:e=>e(),i=[];return i.push(r(()=>{let t=(typeof e==`function`?e():e).filter(Boolean);t.length!==0&&i.push(Poe(t))})),()=>{i.forEach(e=>e?.())}}var Ioe=Object.defineProperty,Loe=(e,t,n)=>t in e?Ioe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lc=(e,t,n)=>Loe(e,typeof t==`symbol`?t:t+``,n),Rc={activateTrap(e,t){if(e.length>0){let n=e[e.length-1];n!==t&&n.pause()}let n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap(e,t){let n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},Roe=[],zoe=class{constructor(e,t){Lc(this,`trapStack`),Lc(this,`config`),Lc(this,`doc`),Lc(this,`state`,{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),Lc(this,`portalContainers`,new Set),Lc(this,`listenerCleanups`,[]),Lc(this,`handleFocus`,e=>{let t=fi(e),n=this.findContainerIndex(t,e)>=0;if(n||Wr(t))n&&(this.state.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();let t,n=!0;if(this.state.mostRecentlyFocusedNode)if(Ni(this.state.mostRecentlyFocusedNode)>0){let e=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:r}=this.state.containerGroups[e];if(r.length>0){let e=r.findIndex(e=>e===this.state.mostRecentlyFocusedNode);e>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?e+1<r.length&&(t=r[e+1],n=!1):e-1>=0&&(t=r[e-1],n=!1))}}else this.state.containerGroups.some(e=>e.tabbableNodes.some(e=>Ni(e)>0))||(n=!1);else n=!1;n&&(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}),Lc(this,`handlePointerDown`,e=>{let t=fi(e);if(!(this.findContainerIndex(t,e)>=0)){if(Vc(this.config.clickOutsideDeactivates,e)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}Vc(this.config.allowOutsideClick,e)||e.preventDefault()}}),Lc(this,`handleClick`,e=>{let t=fi(e);this.findContainerIndex(t,e)>=0||Vc(this.config.clickOutsideDeactivates,e)||Vc(this.config.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())}),Lc(this,`handleTabKey`,e=>{if(this.config.isKeyForward(e)||this.config.isKeyBackward(e)){this.state.recentNavEvent=e;let t=this.config.isKeyBackward(e),n=this.findNextNavNode({event:e,isBackward:t});if(!n)return;Bc(e)&&e.preventDefault(),this.tryFocus(n)}}),Lc(this,`handleEscapeKey`,e=>{Hoe(e)&&Vc(this.config.escapeDeactivates,e)!==!1&&(e.preventDefault(),this.deactivate())}),Lc(this,`_mutationObserver`),Lc(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=>e.type===`attributes`&&(e.attributeName===`aria-controls`||e.attributeName===`aria-expanded`)?!0:e.type===`childList`&&e.addedNodes.length>0?Array.from(e.addedNodes).some(e=>{if(e.nodeType!==Node.ELEMENT_NODE)return!1;let t=e;return Vee(t)?!0:t.id&&!this.state.containers.some(e=>e.contains(t))?Hee(t):!1}):!1)&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())})}),Lc(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)}))}),Lc(this,`getInitialFocusNode`,()=>{let e=this.getNodeForOption(`initialFocus`,{hasFallback:!0});if(e===!1)return!1;if(e===void 0||e&&!ki(e)){let t=ti(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 e===null&&(e=this.getNodeForOption(`fallbackFocus`));if(!e||(e.isConnected||(e=this.getNodeForOption(`fallbackFocus`)),!e||!e.isConnected))throw Error(`Your focus-trap needs to have at least one focusable element`);return e}),Lc(this,`tryFocus`,e=>{if(e!==!1&&e!==ti(this.doc)){if(!e||!e.focus){this.tryFocus(this.getInitialFocusNode());return}e.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=e,Uoe(e)&&e.select()}}),Lc(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(),Rc.deactivateTrap(this.trapStack,this),this.portalContainers.clear();let n=this.getOption(t,`onDeactivate`),r=this.getOption(t,`onPostDeactivate`),i=this.getOption(t,`checkCanReturnFocus`),a=this.getOption(t,`returnFocus`,`returnFocusOnDeactivate`);n?.();let o=()=>{Hc(()=>{if(a){let e=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(e)}r?.()})};return a&&i?(i(this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation)).then(o,o),this):(o(),this)}),Lc(this,`pause`,e=>{if(this.state.paused||!this.state.active)return this;let t=this.getOption(e,`onPause`),n=this.getOption(e,`onPostPause`);return this.state.paused=!0,t?.(),this.removeListeners(),this.updateObservedNodes(),n?.(),this}),Lc(this,`unpause`,e=>{if(!this.state.paused||!this.state.active)return this;let t=this.getOption(e,`onUnpause`),n=this.getOption(e,`onPostUnpause`);return this.state.paused=!1,t?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),n?.(),this}),Lc(this,`updateContainerElements`,e=>(this.state.containers=Array.isArray(e)?e.filter(Boolean):[e].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),Lc(this,`getReturnFocusNode`,e=>{let t=this.getNodeForOption(`setReturnFocus`,{params:[e]});return t||(t===!1?!1:e)}),Lc(this,`getOption`,(e,t,n)=>e&&e[t]!==void 0?e[t]:this.config[n||t]),Lc(this,`getNodeForOption`,(e,{hasFallback:t=!1,params:n=[]}={})=>{let r=this.config[e];if(typeof r==`function`&&(r=r(...n)),r===!0&&(r=void 0),!r){if(r===void 0||r===!1)return r;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}let i=r;if(typeof r==`string`){try{i=this.doc.querySelector(r)}catch(t){throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!i&&!t)throw Error(`\`${e}\` as selector refers to no known node`)}return i}),Lc(this,`findNextNavNode`,e=>{let{event:t,isBackward:n=!1}=e,r=e.target||fi(t);this.updateTabbableNodes();let i=null;if(this.state.tabbableGroups.length>0){let e=this.findContainerIndex(r,t),a=e>=0?this.state.containerGroups[e]:void 0;if(e<0)i=n?this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:this.state.tabbableGroups[0].firstTabbableNode;else if(n){let n=this.state.tabbableGroups.findIndex(({firstTabbableNode:e})=>r===e);if(n<0&&(a?.container===r||ki(r)&&!ji(r)&&!a?.nextTabbableNode(r,!1))&&(n=e),n>=0){let e=n===0?this.state.tabbableGroups.length-1:n-1,t=this.state.tabbableGroups[e];i=Ni(r)>=0?t.lastTabbableNode:t.lastDomTabbableNode}else Bc(t)||(i=a?.nextTabbableNode(r,!1))}else{let n=this.state.tabbableGroups.findIndex(({lastTabbableNode:e})=>r===e);if(n<0&&(a?.container===r||ki(r)&&!ji(r)&&!a?.nextTabbableNode(r))&&(n=e),n>=0){let e=n===this.state.tabbableGroups.length-1?0:n+1,t=this.state.tabbableGroups[e];i=Ni(r)>=0?t.firstTabbableNode:t.firstDomTabbableNode}else Bc(t)||(i=a?.nextTabbableNode(r))}}else i=this.getNodeForOption(`fallbackFocus`);return i}),this.trapStack=t.trapStack||Roe;let n={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward:Boe,isKeyBackward:Voe,...t};this.doc=n.document||$r(Array.isArray(e)?e[0]:e),this.config=n,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=>{Ree(e).forEach(e=>{this.addPortalContainer(e)})})}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){let n=typeof t?.composedPath==`function`?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:t,tabbableNodes:r})=>t.contains(e)||n?.includes(t)||r.find(t=>t===e)||this.isControlledElement(t,e))}isControlledElement(e,t){return this.config.followControlledElements?Iee(e,t):!1}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{let t=Ai(e,{getShadowRoot:this.config.getShadowRoot}),n=Oi(e,{getShadowRoot:this.config.getShadowRoot}),r=t[0],i=t[t.length-1],a=r,o=i,s=!1;for(let e=0;e<t.length;e++)if(Ni(t[e])>0){s=!0;break}function c(e,r=!0){let i=t.indexOf(e);if(i>=0)return t[i+(r?1:-1)];let a=n.indexOf(e);if(!(a<0)){if(r){for(let e=a+1;e<n.length;e++)if(ji(n[e]))return n[e]}else for(let e=a-1;e>=0;e--)if(ji(n[e]))return n[e]}}return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:s,firstTabbableNode:r,lastTabbableNode:i,firstDomTabbableNode:a,lastDomTabbableNode:o,nextTabbableNode:c}}),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 Rc.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?Hc(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(xi(this.doc,`focusin`,this.handleFocus,!0),xi(this.doc,`mousedown`,this.handlePointerDown,{capture:!0,passive:!1}),xi(this.doc,`touchstart`,this.handlePointerDown,{capture:!0,passive:!1}),xi(this.doc,`click`,this.handleClick,{capture:!0,passive:!1}),xi(this.doc,`keydown`,this.handleTabKey,{capture:!0,passive:!1}),xi(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`),n=this.getOption(e,`onPostActivate`),r=this.getOption(e,`checkCanFocusTrap`);r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=ti(this.doc),t?.();let i=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),n?.()};return r?(r(this.state.containers.concat()).then(i,i),this):(i(),this)}},zc=e=>e?.type===`keydown`,Bc=e=>zc(e)&&e?.key===`Tab`,Boe=e=>zc(e)&&e.key===`Tab`&&!e?.shiftKey,Voe=e=>zc(e)&&e.key===`Tab`&&e?.shiftKey,Vc=(e,...t)=>typeof e==`function`?e(...t):e,Hoe=e=>!e.isComposing&&e.key===`Escape`,Hc=e=>setTimeout(e,0),Uoe=e=>e.localName===`input`&&`select`in e&&typeof e.select==`function`;function Uc(e,t={}){let n,r=Ii(()=>{let r=(Array.isArray(e)?e:[e]).map(e=>typeof e==`function`?e():e).filter(e=>e!=null);if(r.length===0)return;let i=r[0];n=new zoe(r,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:i,...t,document:$r(i)});try{n.activate()}catch{}});return function(){n?.deactivate(),r()}}var Wc=`data-scroll-lock`,Gc=new WeakMap;function Woe(e){let t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?`paddingLeft`:`paddingRight`}function Kc(e){let t=ii(e)?.scrollbarGutter;return t===`stable`||t?.startsWith(`stable `)===!0}function Goe(e){let t=e.defaultView??window,{documentElement:n,body:r}=e,i=Kc(n)||Kc(r),a=t.innerWidth-n.clientWidth;r.setAttribute(Wc,``);let o=()=>Qi(n,`--scrollbar-width`,`${a}px`),s=Woe(n),c=[o(),ci()?(()=>{let{scrollX:e,scrollY:n,visualViewport:o}=t,c=o?.offsetLeft??0,l=o?.offsetTop??0,u={position:`fixed`,overflow:`hidden`,top:`${-(n-Math.floor(l))}px`,left:`${-(e-Math.floor(c))}px`,right:`0`};!i&&a>0&&(u[s]=`${a}px`);let d=Zi(r,u);return()=>{d?.(),t.scrollTo({left:e,top:n,behavior:`instant`})}})():(()=>{let e={overflow:`hidden`};return!i&&a>0&&(e[s]=`${a}px`),Zi(r,e)})()];return()=>{c.forEach(e=>e?.()),r.removeAttribute(Wc)}}function qc(e){let t=e??document,n=Gc.get(t);n||(n={count:0,cleanup:Goe(t)},Gc.set(t,n)),n.count++;let r=n,i=!1;return()=>{i||(i=!0,r.count--,r.count===0&&(r.cleanup(),Gc.delete(t)))}}var Koe=Nr({props({props:e,scope:t}){let n=e.role===`alertdialog`,r=n?()=>Doe(t):void 0,i=typeof e.modal==`boolean`?e.modal:!0;return{role:`dialog`,modal:i,trapFocus:i,preventScroll:i,closeOnInteractOutside:i&&!n,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r,...e}},initialState({prop:e}){return e(`open`)||e(`defaultOpen`)?`open`:`closed`},context({bindable:e,prop:t,scope:n}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}})),triggerValue:e(()=>({defaultValue:t(`defaultTriggerValue`)??null,value:t(`triggerValue`),onChange(e){let r=t(`onTriggerValueChange`);r&&r({value:e,triggerElement:Ac(n,e)})}}))}},watch({track:e,action:t,prop:n}){e([()=>n(`open`)],()=>{t([`toggleVisibility`])})},states:{open:{entry:[`checkRenderedElements`,`setInitialFocus`],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`]}],"TRIGGER_VALUE.SET":{actions:[`setTriggerValue`]}}},closed:{on:{"CONTROLLED.OPEN":{target:`open`},OPEN:[{guard:`isOpenControlled`,actions:[`invokeOnOpen`,`setTriggerValue`]},{target:`open`,actions:[`invokeOnOpen`,`setTriggerValue`]}],TOGGLE:[{guard:`isOpenControlled`,actions:[`invokeOnOpen`,`setTriggerValue`]},{target:`open`,actions:[`invokeOnOpen`,`setTriggerValue`]}],"TRIGGER_VALUE.SET":{actions:[`setTriggerValue`]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e(`open`)!=null},effects:{trackDismissableElement({scope:e,send:t,prop:n}){return Cs(()=>Dc(e),{type:`dialog`,defer:!0,pointerBlocking:n(`modal`),layerStyleTargets:[()=>woe(e),()=>Coe(e)],exclude:[Oc(e),...kc(e)].filter(Boolean),onInteractOutside(e){n(`onInteractOutside`)?.(e),n(`closeOnInteractOutside`)||e.preventDefault()},persistentElements:n(`persistentElements`),onFocusOutside:n(`onFocusOutside`),onPointerDownOutside:n(`onPointerDownOutside`),onRequestDismiss:n(`onRequestDismiss`),onEscapeKeyDown(e){n(`onEscapeKeyDown`)?.(e),n(`closeOnEscape`)||e.preventDefault()},onDismiss(){t({type:`CLOSE`,src:`interact-outside`})}})},preventScroll({scope:e,prop:t}){if(t(`preventScroll`))return qc(e.getDoc())},trapFocus({scope:e,prop:t,context:n}){return t(`trapFocus`)?Uc(()=>Dc(e),{preventScroll:!0,returnFocusOnDeactivate:!!t(`restoreFocus`),initialFocus:t(`initialFocusEl`),setReturnFocus:r=>{let i=t(`finalFocusEl`)?.();if(i)return i;let a=n.get(`triggerValue`);if(a){let t=Ac(e,a);if(t)return t}return kc(e)[0]||r},getShadowRoot:!0}):void 0},hideContentBelow({scope:e,prop:t}){return t(`modal`)?Ic(()=>[Dc(e)],{defer:!0}):void 0}},actions:{setInitialFocus({prop:e,scope:t}){e(`trapFocus`)||Ii(()=>{Pi({root:Dc(t),getInitialEl:e(`initialFocusEl`)})?.focus({preventScroll:!0})})},checkRenderedElements({context:e,scope:t}){Ii(()=>{e.set(`rendered`,{title:!!Toe(t),description:!!Eoe(t)})})},invokeOnClose({prop:e}){e(`onOpenChange`)?.({open:!1})},invokeOnOpen({prop:e}){e(`onOpenChange`)?.({open:!0})},setTriggerValue({context:e,event:t}){t.value!==void 0&&e.set(`triggerValue`,t.value)},toggleVisibility({prop:e,send:t,event:n}){t({type:e(`open`)?`CONTROLLED.OPEN`:`CONTROLLED.CLOSE`,previousEvent:n})}}}}),[Jc,Yc]=cr({hookName:`useDialogContext`,providerName:`<DialogProvider />`}),qoe=e=>{let t=Yc(),n=Ia(I(ur(),()=>({present:t().open}))),r=I(()=>t().getBackdropProps(),()=>n().presenceProps,e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,j(r,{ref(t){var r=La(n().ref,e.ref);typeof r==`function`&&r(t)}}))}})},Joe=e=>{let t=Yc(),n=I(()=>t().getCloseTriggerProps(),e);return A(L.button,n)},Yoe=e=>{let t=Yc(),n=Ba(),r=I(()=>t().getContentProps(),()=>n().presenceProps,e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,j(r,{ref(t){var r=La(n().ref,e.ref);typeof r==`function`&&r(t)}}))}})},Xoe=e=>e.children(Yc()),Zoe=e=>{let t=Yc(),n=I(()=>t().getDescriptionProps(),e);return A(L.div,n)},Qoe=e=>{let t=Yc(),n=Ba(),r=I(()=>t().getPositionerProps(),e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,r)}})},$oe=e=>{let t=ct(),n=ua(),r=la(),i=na(Koe,k(()=>({id:t,dir:n().dir,getRootNode:r().getRootNode,...pr(e)})));return k(()=>Ooe(i,oa))},ese=e=>{let[t,n]=Ra(e),[r]=dr(t),[i,a]=$t()(n,[`aria-label`,`closeOnEscape`,`closeOnInteractOutside`,`defaultOpen`,`finalFocusEl`,`id`,`ids`,`initialFocusEl`,`modal`,`onEscapeKeyDown`,`onFocusOutside`,`onInteractOutside`,`onOpenChange`,`onPointerDownOutside`,`onRequestDismiss`,`open`,`persistentElements`,`preventScroll`,`restoreFocus`,`role`,`trapFocus`,`triggerValue`,`defaultTriggerValue`,`onTriggerValueChange`]),o=$oe(i),s=Ia(I(t,()=>({present:o().open})));return A(Jc,{value:o,get children(){return A(lr,{value:r,get children(){return A(za,{value:s,get children(){return a.children}})}})}})},tse=e=>{let[t,n]=Ra(e),[r]=dr(t),i=Ia(I(t,()=>({present:n.value().open})));return A(Jc,{get value(){return n.value},get children(){return A(lr,{value:r,get children(){return A(za,{value:i,get children(){return n.children}})}})}})},nse=e=>{let t=Yc(),n=I(()=>t().getTitleProps(),e);return A(L.h2,n)},rse=e=>{let[t,n]=$t()(e,[`value`]),r=Yc(),i=Ba(),a=I(()=>r().getTriggerProps(t),()=>({"aria-controls":i().unmounted&&null}),n);return A(L.button,a)},Xc={};da(Xc,{Backdrop:()=>qoe,CloseTrigger:()=>Joe,Content:()=>Yoe,Context:()=>Xoe,Description:()=>Zoe,Positioner:()=>Qoe,Root:()=>ese,RootProvider:()=>tse,Title:()=>nse,Trigger:()=>rse});var Zc=fa(`progress`).parts(`root`,`label`,`track`,`range`,`valueText`,`view`,`circle`,`circleTrack`,`circleRange`).build(),ise=e=>e.ids?.root??`progress-${e.id}`,ase=e=>e.ids?.track??`progress-${e.id}-track`,ose=e=>e.ids?.label??`progress-${e.id}-label`,sse=e=>e.ids?.circle??`progress-${e.id}-circle`;function cse(e,t){let{context:n,computed:r,prop:i,send:a,scope:o}=e,s=r(`percent`),c=r(`isIndeterminate`)?``:r(`formatter`).format(s/100),l=i(`max`),u=i(`min`),d=i(`orientation`),f=i(`translations`),p=r(`isIndeterminate`),m=n.get(`value`),h=f?.value({value:m,max:l,percent:s,min:u,formatter:r(`formatter`)})??``,g=lse(m,l),_={role:`progressbar`,"aria-label":h,"data-max":l,"aria-valuemin":u,"aria-valuemax":l,"aria-valuenow":m??void 0,"data-orientation":d,"data-state":g},v=dse(e);return{value:m,valueAsString:h,min:u,max:l,percent:s,percentAsString:c,indeterminate:p,setValue(e){a({type:`VALUE.SET`,value:e})},setToMax(){a({type:`VALUE.SET`,value:l})},setToMin(){a({type:`VALUE.SET`,value:u})},getRootProps(){return t.element({dir:i(`dir`),...Zc.root.attrs,id:ise(o),"data-max":l,"data-value":m??void 0,"data-state":g,"data-orientation":d,style:{"--percent":p?void 0:s}})},getLabelProps(){return t.element({dir:i(`dir`),id:ose(o),...Zc.label.attrs,"data-orientation":d})},getValueTextProps(){return t.element({dir:i(`dir`),"aria-live":`polite`,...Zc.valueText.attrs})},getTrackProps(){return t.element({dir:i(`dir`),id:ase(o),...Zc.track.attrs,..._})},getRangeProps(){return t.element({dir:i(`dir`),...Zc.range.attrs,"data-orientation":d,"data-state":g,style:{[r(`isHorizontal`)?`width`:`height`]:p?void 0:`${s}%`}})},getCircleProps(){return t.element({dir:i(`dir`),id:sse(o),...Zc.circle.attrs,..._,...v.root})},getCircleTrackProps(){return t.element({dir:i(`dir`),"data-orientation":d,...Zc.circleTrack.attrs,...v.track})},getCircleRangeProps(){return t.element({dir:i(`dir`),...Zc.circleRange.attrs,...v.range,"data-state":g})},getViewProps(e){return t.element({dir:i(`dir`),...Zc.view.attrs,"data-state":e.state,hidden:e.state!==g})}}}function lse(e,t){return e==null?`indeterminate`:e===t?`complete`:`loading`}var Qc={style:{"--radius":`calc(var(--size) / 2 - var(--thickness) / 2)`,cx:`calc(var(--size) / 2)`,cy:`calc(var(--size) / 2)`,r:`var(--radius)`,fill:`transparent`,strokeWidth:`var(--thickness)`}},use={style:{width:`var(--size)`,height:`var(--size)`}};function dse(e){let{context:t,computed:n}=e;return{root:use,track:Qc,range:{opacity:t.get(`value`)===0?0:void 0,style:{...Qc.style,"--percent":n(`percent`),"--circumference":`calc(2 * 3.14159 * var(--radius))`,"--offset":`calc(var(--circumference) * (100 - var(--percent)) / 100)`,strokeDashoffset:`calc(var(--circumference) * ((100 - var(--percent)) / 100))`,strokeDasharray:n(`isIndeterminate`)?void 0:`var(--circumference)`,transformOrigin:`center`,transform:`rotate(-90deg)`}}}}var fse=Nr({props({props:e}){let t=e.min??0,n=e.max??100;return{orientation:`horizontal`,...e,max:n,min:t,defaultValue:e.defaultValue===void 0?hse(t,n):e.defaultValue,formatOptions:{style:`percent`,...e.formatOptions},translations:{value:({value:e,percent:t,formatter:n})=>{if(e===null)return`loading...`;if(n){let r=n.resolvedOptions().style===`percent`?t/100:e;return n.format(r)}return e.toString()},...e.translations}}},initialState(){return`idle`},entry:[`validateContext`],context({bindable:e,prop:t}){return{value:e(()=>({defaultValue:t(`defaultValue`),value:t(`value`),onChange(e){t(`onValueChange`)?.({value:e})}}))}},computed:{isIndeterminate:({context:e})=>e.get(`value`)===null,percent({context:e,prop:t}){let n=e.get(`value`);return Tn(n)?Xn(n,t(`min`),t(`max`))*100:-1},formatter:dee(({prop:e})=>[e(`locale`),e(`formatOptions`)],([e,t])=>new Intl.NumberFormat(e,t)),isHorizontal:({prop:e})=>e(`orientation`)===`horizontal`},states:{idle:{on:{"VALUE.SET":{actions:[`setValue`]}}}},implementations:{actions:{setValue:({context:e,event:t,prop:n})=>{let r=t.value===null?null:Math.max(0,Math.min(t.value,n(`max`)));e.set(`value`,r)},validateContext:({context:e,prop:t})=>{let n=t(`max`),r=t(`min`),i=e.get(`value`);if(i!=null){if(!$c(n))throw Error(`[progress] The max value passed \`${n}\` is not a valid number`);if(!pse(i,n))throw Error(`[progress] The value passed \`${i}\` exceeds the max value \`${n}\``);if(!mse(i,r))throw Error(`[progress] The value passed \`${i}\` exceeds the min value \`${r}\``)}}}}}),$c=e=>Tn(e)&&!isNaN(e),pse=(e,t)=>$c(e)&&e<=t,mse=(e,t)=>$c(e)&&e>=t,hse=(e,t)=>e+(t-e)/2,[el,tl]=cr({hookName:`useProgressContext`,providerName:`<ProgressProvider />`}),gse=e=>{let t=tl(),n=I(()=>t().getCircleProps(),e);return A(L.svg,n)},_se=e=>{let t=tl(),n=I(()=>t().getCircleRangeProps(),e);return A(L.circle,n)},vse=e=>{let t=tl(),n=I(()=>t().getCircleTrackProps(),e);return A(L.circle,n)},yse=e=>e.children(tl()),bse=e=>{let t=tl(),n=I(()=>t().getLabelProps(),e);return A(L.span,n)},xse=e=>{let t=tl(),n=I(()=>t().getRangeProps(),e);return A(L.div,n)},Sse=e=>{let t=ct(),n=ua(),r=la(),i=na(fse,k(()=>({id:t,dir:n().dir,locale:n().locale,getRootNode:r().getRootNode,...pr(e)})));return k(()=>cse(i,oa))},Cse=e=>{let[t,n]=$t()(e,[`defaultValue`,`formatOptions`,`id`,`ids`,`locale`,`max`,`min`,`onValueChange`,`orientation`,`translations`,`value`]),r=Sse(t),i=I(()=>r().getRootProps(),n);return A(el,{value:r,get children(){return A(L.div,i)}})},wse=e=>{let[{value:t},n]=$t()(e,[`value`]),r=I(()=>t().getRootProps(),n);return A(el,{value:t,get children(){return A(L.div,r)}})},Tse=e=>{let t=tl(),n=I(()=>t().getTrackProps(),e);return A(L.div,n)},Ese=e=>{let t=tl(),n=I(()=>t().getValueTextProps(),e);return A(L.span,j(n,{get children(){return e.children||t().percentAsString}}))},Dse=e=>{let[t,n]=$t()(e,[`state`]),r=tl(),i=I(()=>r().getViewProps(t),n);return A(L.span,i)},nl={};da(nl,{Circle:()=>gse,CircleRange:()=>_se,CircleTrack:()=>vse,Context:()=>yse,Label:()=>bse,Range:()=>xse,Root:()=>Cse,RootProvider:()=>wse,Track:()=>Tse,ValueText:()=>Ese,View:()=>Dse});var rl=fa(`tooltip`).parts(`trigger`,`arrow`,`arrowTip`,`positioner`,`content`).build(),il=(e,t)=>{let n=e.ids?.trigger;return n==null?t?`tooltip:${e.id}:trigger:${t}`:`tooltip:${e.id}:trigger`:Dn(n)?n(t):n},Ose=e=>e.ids?.content??`tooltip:${e.id}:content`,kse=e=>e.ids?.arrow??`tooltip:${e.id}:arrow`,al=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,Ase=e=>e.getById(il(e)),ol=e=>e.getById(al(e)),jse=e=>Gi(e.getRootNode(),`[data-scope="tooltip"][data-part="trigger"][data-ownedby="${e.id}"]`),sl=(e,t)=>t==null?Ase(e)??jse(e)[0]:e.getById(il(e,t)),cl=$n({id:null,prevId:null,instant:!1});function Mse(e,t){let{state:n,context:r,send:i,scope:a,prop:o,event:s}=e,c=o(`id`),l=!!o(`aria-label`),u=n.matches(`open`,`closing`),d=r.get(`triggerValue`),f=r.get(`currentPlacement`),p=f?Xo(f):void 0,m=Ose(a),h=o(`disabled`),g=rs({...o(`positioning`),placement:f});return{open:u,setOpen(e){n.matches(`open`,`closing`)!==e&&i({type:e?`open`:`close`})},triggerValue:d,setTriggerValue(e){i({type:`triggerValue.set`,value:e??void 0})},reposition(e={}){i({type:`positioning.set`,options:e})},getTriggerProps(e={}){let{value:n}=e,r=n==null?!1:d===n,s=il(a,n);return t.button({...rl.trigger.attrs,id:s,"data-ownedby":a.id,"data-value":n,"data-current":F(r),dir:o(`dir`),"data-expanded":F(u),"data-state":u?`open`:`closed`,"aria-describedby":u?m:void 0,onClick(e){e.defaultPrevented||h||o(`closeOnClick`)&&i({type:u&&n!=null&&!r?`triggerValue.set`:`close`,src:`trigger.click`,value:n,triggerId:s})},onFocus(e){e.defaultPrevented||h||Na()&&i({type:u&&n!=null&&!r?`triggerValue.set`:`open`,src:`trigger.focus`,value:n,triggerId:s})},onBlur(e){e.defaultPrevented||h||c===cl.get(`id`)&&((e.relatedTarget??a.getDoc().activeElement)?.closest(`[data-ownedby="${a.id}"]`)??i({type:`close`,src:`trigger.blur`,value:n,triggerId:s}))},onPointerDown(e){e.defaultPrevented||h||gi(e)&&o(`closeOnPointerDown`)&&c===cl.get(`id`)&&i({type:`close`,src:`trigger.pointerdown`,value:n,triggerId:s})},onPointerMove(e){e.defaultPrevented||h||e.pointerType!==`touch`&&i({type:u&&n!=null&&!r?`triggerValue.set`:`pointer.move`,value:n,triggerId:s})},onPointerOver(e){e.defaultPrevented||h||e.pointerType!==`touch`&&i({type:`pointer.move`,value:n,triggerId:s})},onPointerLeave(){h||i({type:`pointer.leave`})},onPointerCancel(){h||i({type:`pointer.leave`})}})},getArrowProps(){return t.element({id:kse(a),...rl.arrow.attrs,dir:o(`dir`),style:g.arrow})},getArrowTipProps(){return t.element({...rl.arrowTip.attrs,dir:o(`dir`),style:g.arrowTip})},getPositionerProps(){return t.element({id:al(a),...rl.positioner.attrs,dir:o(`dir`),style:g.floating})},getContentProps(){let e=cl.get(`id`)===c,n=cl.get(`prevId`)===c,r=cl.get(`instant`)&&(u&&e||n);return t.element({...rl.content.attrs,dir:o(`dir`),hidden:!u,"data-state":u?`open`:`closed`,"data-instant":F(r),role:l?void 0:`tooltip`,id:l?void 0:m,"data-placement":f,"data-side":p,onPointerEnter(){i({type:`content.pointer.move`})},onPointerLeave(){i({type:`content.pointer.leave`})},style:{pointerEvents:o(`interactive`)?`auto`:`none`}})}}}var{and:Nse,not:ll}=Mr(),Pse=Nr({initialState:({prop:e})=>e(`open`)||e(`defaultOpen`)?`open`:`closed`,props({props:e}){sr(e,[`id`]);let t=e.closeOnClick??!0,n=e.closeOnPointerDown??t;return{openDelay:400,closeDelay:150,closeOnEscape:!0,interactive:!1,closeOnScroll:!0,disabled:!1,...e,closeOnPointerDown:n,closeOnClick:t,positioning:{placement:`bottom`,...e.positioning}}},effects:[`trackFocusVisible`,`trackStore`],context:({bindable:e,prop:t,scope:n})=>({currentPlacement:e(()=>({defaultValue:void 0})),hasPointerMoveOpened:e(()=>({defaultValue:null})),triggerValue:e(()=>({defaultValue:t(`defaultTriggerValue`)??null,value:t(`triggerValue`),onChange(e){let r=t(`onTriggerValueChange`);r&&r({value:e,triggerElement:sl(n,e)})}}))}),watch({track:e,action:t,prop:n}){e([()=>n(`disabled`)],()=>{t([`closeIfDisabled`])}),e([()=>n(`open`)],()=>{t([`toggleVisibility`])}),e([()=>n(`triggerValue`)],()=>{t([`repositionImmediate`])})},on:{"triggerValue.set":{actions:[`setTriggerValue`,`repositionImmediate`]}},states:{closed:{entry:[`clearGlobalId`],on:{"controlled.open":{target:`open`},open:[{guard:`isOpenControlled`,actions:[`setTriggerValue`,`invokeOnOpen`]},{target:`open`,actions:[`setTriggerValue`,`invokeOnOpen`]}],"pointer.leave":{actions:[`clearPointerMoveOpened`]},"pointer.move":[{guard:Nse(`noVisibleTooltip`,ll(`hasPointerMoveOpened`)),target:`opening`,actions:[`setTriggerValue`]},{guard:ll(`hasPointerMoveOpened`),target:`open`,actions:[`setPointerMoveOpened`,`invokeOnOpen`,`setTriggerValue`]}]}},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:[`setTriggerValue`,`invokeOnOpen`]},{target:`open`,actions:[`setTriggerValue`,`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`]},"triggerValue.set":{target:`closing`,actions:[`setTriggerValue`,`immediateReopen`]}}},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`,`setTriggerValue`,`invokeOnOpen`,`toggleVisibility`]},{target:`open`,actions:[`setPointerMoveOpened`,`setTriggerValue`,`invokeOnOpen`]}],"triggerValue.set":{target:`open`,actions:[`setTriggerValue`,`repositionImmediate`]},reopen:{target:`open`},"content.pointer.move":{guard:`isInteractive`,target:`open`},"positioning.set":{actions:[`reposition`]}}}},implementations:{guards:{noVisibleTooltip:()=>cl.get(`id`)===null,isVisible:({prop:e})=>e(`id`)===cl.get(`id`),isInteractive:({prop:e})=>!!e(`interactive`),hasPointerMoveOpened:({context:e})=>!!e.get(`hasPointerMoveOpened`),isOpenControlled:({prop:e})=>e(`open`)!==void 0},actions:{setGlobalId:({prop:e})=>{let t=cl.get(`id`),n=t!==null&&t!==e(`id`);cl.update({id:e(`id`),prevId:n?t:null,instant:n})},clearGlobalId:({prop:e})=>{e(`id`)===cl.get(`id`)&&cl.update({id:null,prevId:null,instant:!1})},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:n,scope:r})=>{t.type===`positioning.set`&&ns(()=>sl(r,e.get(`triggerValue`)),()=>ol(r),{...n(`positioning`),...t.options,listeners:!1,onComplete(t){e.set(`currentPlacement`,t.placement)}})},repositionImmediate:({context:e,event:t,prop:n,scope:r})=>{let i=t.value??e.get(`triggerValue`);return ns(()=>sl(r,i),()=>ol(r),{...n(`positioning`),onComplete(t){e.set(`currentPlacement`,t.placement)}})},toggleVisibility:({prop:e,event:t,send:n})=>{queueMicrotask(()=>{n({type:e(`open`)?`controlled.open`:`controlled.close`,previousEvent:t})})},setPointerMoveOpened:({context:e,event:t})=>{let n=t.triggerId??t.previousEvent?.triggerId;e.set(`hasPointerMoveOpened`,n??null)},clearPointerMoveOpened:({context:e})=>{e.set(`hasPointerMoveOpened`,null)},setTriggerValue:({context:e,event:t})=>{t.value!==void 0&&e.set(`triggerValue`,t.value)},immediateReopen:({send:e})=>{queueMicrotask(()=>{e({type:`reopen`})})}},effects:{trackFocusVisible:({scope:e})=>Pa({root:e.getRootNode?.()}),trackPositioning:({context:e,prop:t,scope:n})=>(e.get(`currentPlacement`)||e.set(`currentPlacement`,t(`positioning`).placement),ns(()=>sl(n,e.get(`triggerValue`)),()=>ol(n),{...t(`positioning`),defer:!0,onComplete(t){e.set(`currentPlacement`,t.placement)}})),trackPointerlockChange:({send:e,scope:t})=>xi(t.getDoc(),`pointerlockchange`,()=>e({type:`close`,src:`pointerlock:change`}),!1),trackScroll:({send:e,prop:t,scope:n,context:r})=>{if(!t(`closeOnScroll`))return;let i=sl(n,r.get(`triggerValue`));if(!i)return;let a=Ete(i).map(t=>xi(t,`scroll`,()=>{e({type:`close`,src:`scroll`})},{passive:!0,capture:!0}));return()=>{a.forEach(e=>e?.())}},trackStore:({prop:e,send:t})=>{let n;return queueMicrotask(()=>{n=cl.subscribe(()=>{cl.get(`id`)!==e(`id`)&&t({type:`close`,src:`id.change`})})}),()=>n?.()},trackEscapeKey:({send:e,prop:t})=>t(`closeOnEscape`)?xi(document,`keydown`,t=>{hi(t)||t.key===`Escape`&&(t.stopPropagation(),e({type:`close`,src:`keydown.escape`}))},!0):void 0,waitForOpenDelay:({send:e,prop:t,event:n})=>{let r=setTimeout(()=>{e({type:`after.openDelay`,previousEvent:n})},t(`openDelay`));return()=>clearTimeout(r)},waitForCloseDelay:({send:e,prop:t,event:n})=>{let r=setTimeout(()=>{e({type:`after.closeDelay`,previousEvent:n})},t(`closeDelay`));return()=>clearTimeout(r)}}}}),[ul,dl]=cr({hookName:`useTooltipContext`,providerName:`<TooltipProvider />`}),Fse=e=>{let t=dl(),n=I(()=>t().getArrowProps(),e);return A(L.div,n)},Ise=e=>{let t=dl(),n=I(()=>t().getArrowTipProps(),e);return A(L.div,n)},Lse=e=>{let t=dl(),n=Ba(),r=I(()=>t().getContentProps(),()=>n().presenceProps,e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,j(r,{ref(t){var r=La(n().ref,e.ref);typeof r==`function`&&r(t)}}))}})},Rse=e=>e.children(dl()),zse=e=>{let t=dl(),n=Ba(),r=I(()=>t().getPositionerProps(),e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,r)}})},Bse=e=>{let t=ct(),n=ua(),r=la(),i=na(Pse,k(()=>({id:t,dir:n().dir,getRootNode:r().getRootNode,...pr(e)})));return k(()=>Mse(i,oa))},Vse=e=>{let[t,n]=Ra(e),[r,i]=$t()(n,[`aria-label`,`closeDelay`,`closeOnClick`,`closeOnEscape`,`closeOnPointerDown`,`closeOnScroll`,`defaultOpen`,`disabled`,`id`,`ids`,`interactive`,`onOpenChange`,`open`,`openDelay`,`positioning`,`triggerValue`,`defaultTriggerValue`,`onTriggerValueChange`]),a=Bse(r),o=Ia(I(t,()=>({present:a().open})));return A(ul,{value:a,get children(){return A(za,{value:o,get children(){return i.children}})}})},Hse=e=>{let[t,n]=Ra(e),r=Ia(I(t,()=>({present:n.value().open})));return A(ul,{get value(){return n.value},get children(){return A(za,{value:r,get children(){return n.children}})}})},Use=e=>{let[t,n]=$t()(e,[`value`]),r=dl(),i=I(()=>r().getTriggerProps(t),n);return A(L.button,i)},fl={};da(fl,{Arrow:()=>Fse,ArrowTip:()=>Ise,Content:()=>Lse,Context:()=>Rse,Positioner:()=>zse,Root:()=>Vse,RootProvider:()=>Hse,Trigger:()=>Use});var pl=fa(`menu`).parts(`arrow`,`arrowTip`,`content`,`contextTrigger`,`indicator`,`item`,`itemGroup`,`itemGroupLabel`,`itemIndicator`,`itemText`,`positioner`,`separator`,`trigger`,`triggerItem`).build(),ml=(e,t)=>{let n=e.ids?.trigger;return n==null?t?`menu:${e.id}:trigger:${t}`:`menu:${e.id}:trigger`:Dn(n)?n(t):n},hl=(e,t)=>{let n=e.ids?.contextTrigger;return n==null?t?`menu:${e.id}:ctx-trigger:${t}`:`menu:${e.id}:ctx-trigger`:Dn(n)?n(t):n},gl=e=>e.ids?.content??`menu:${e.id}:content`,Wse=e=>e.ids?.arrow??`menu:${e.id}:arrow`,_l=e=>e.ids?.positioner??`menu:${e.id}:popper`,Gse=(e,t)=>e.ids?.group?.(t)??`menu:${e.id}:group:${t}`,vl=(e,t)=>`${e.id}/${t}`,yl=e=>e?.dataset.value??null,bl=(e,t)=>e.ids?.groupLabel?.(t)??`menu:${e.id}:group-label:${t}`,xl=e=>e.getById(gl(e)),Sl=e=>e.getById(_l(e)),Cl=e=>e.getById(ml(e)),Kse=(e,t)=>t?e.getById(vl(e,t)):null,qse=e=>e.getById(hl(e)),wl=e=>Gi(e.getRootNode(),`[data-scope="menu"][data-part="trigger"][data-ownedby="${e.id}"]`),Tl=e=>Gi(e.getRootNode(),`[data-scope="menu"][data-part="context-trigger"][data-ownedby="${e.id}"]`),El=(e,t)=>t==null?Cl(e)??wl(e)[0]:e.getById(ml(e,t)),Dl=e=>{let t=`[role^="menuitem"][data-ownedby=${CSS.escape(gl(e))}]:not([data-disabled])`;return Gi(xl(e),t)},Jse=e=>cn(Dl(e)),Yse=e=>ln(Dl(e)),Ol=(e,t)=>t?e.id===t||e.dataset.value===t:!1,Xse=(e,t)=>{let n=Dl(e);return hn(n,n.findIndex(e=>Ol(e,t.value)),{loop:t.loop??t.loopFocus})},Zse=(e,t)=>{let n=Dl(e);return _n(n,n.findIndex(e=>Ol(e,t.value)),{loop:t.loop??t.loopFocus})},Qse=(e,t)=>{let n=Dl(e),r=n.find(e=>Ol(e,t.value));return $i(n,{state:t.typeaheadState,key:t.key,activeId:r?.id??null})},kl=e=>Ur(e)&&(e.dataset.disabled===``||e.hasAttribute(`disabled`)),Al=e=>!!e?.getAttribute(`role`)?.startsWith(`menuitem`)&&!!e?.hasAttribute(`data-controls`),jl=`menu:select`;function $se(e,t){if(!e)return;let n=new(ei(e)).CustomEvent(jl,{detail:{value:t}});e.dispatchEvent(n)}function ece(e){let t=gl(e);return xl(e)??e.getDoc().getElementById(t)}function Ml(e,t){if(!Ur(e))return!1;for(let n in t){let r=t[n],i=ece(r.scope);if(i&&Qr(i,e))return!0;let a=r.refs.get(`children`);if(Object.keys(a).length>0&&Ml(e,a))return!0}return!1}var Nl=(e,t)=>({x:e,y:t});function tce(e){let{x:t,y:n,width:r,height:i}=e,a=t+r/2,o=n+i/2;return{x:t,y:n,width:r,height:i,minX:t,minY:n,maxX:t+r,maxY:n+i,midX:a,midY:o,center:Nl(a,o)}}function nce(e){return{top:Nl(e.minX,e.minY),right:Nl(e.maxX,e.minY),bottom:Nl(e.maxX,e.maxY),left:Nl(e.minX,e.maxY)}}function rce(e,t){let{top:n,right:r,left:i,bottom:a}=nce(tce(e)),[o]=t.split(`-`);return{top:[i,n,r,a],right:[n,r,a,i],bottom:[n,i,a,r],left:[r,n,i,a]}[o]}function Pl(e,t){let{x:n,y:r}=t,i=!1;for(let t=0,a=e.length-1;t<e.length;a=t++){let o=e[t].x,s=e[t].y,c=e[a].x,l=e[a].y;s>r!=l>r&&n<(c-o)*(r-s)/(l-s)+o&&(i=!i)}return i}function Fl(e){let t=e.parent;for(;t&&t.context.get(`isSubmenu`);)t=t.refs.get(`parent`);t?.send({type:`CLOSE`})}function ice(e,t){return e?Pl(e,t):!1}function ace(e,t,n){let r=Object.keys(e).length>0;if(!t)return null;if(!r)return vl(n,t);for(let n in e){let r=e[n],i=ml(r.scope);if(i===t)return i}return vl(n,t)}function Il(e,t){e&&(e.refs.set(`pointerRoutingLocked`,t),e.context.set(`pointerRoutingMode`,t?`locked`:`interactive`))}function Ll(e){let t=e.context.get(`highlightedValue`);if(!t)return!1;let n=e.refs.get(`children`);for(let e in n){let r=n[e];if(r.state.hasTag(`open`)&&ml(r.scope)===t)return!0}return!1}function oce(e,t){e&&(e.refs.get(`pointerRoutingLocked`)||t&&Ll(e)||Il(e,!1))}function sce(e){e&&(Ll(e)||Il(e,!1))}function cce(e,t){let{context:n,send:r,state:i,computed:a,prop:o,scope:s}=e,c=i.hasTag(`open`),l=n.get(`isSubmenu`),u=a(`isTypingAhead`),d=o(`composite`),f=n.get(`currentPlacement`),p=f?Xo(f):void 0,m=n.get(`anchorPoint`),h=n.get(`highlightedValue`),g=n.get(`triggerValue`),_=rs({...o(`positioning`),placement:m?`bottom`:f});function v(e){return{id:vl(s,e.value),disabled:!!e.disabled,highlighted:h===e.value}}function y(e){let t=e.valueText??e.value;return{...e,id:e.value,valueText:t}}function b(e){return{...v(y(e)),checked:!!e.checked}}function x(n){let{closeOnSelect:i,valueText:a,value:o}=n,c=v(n),l=vl(s,o);return t.element({...pl.item.attrs,id:l,role:`menuitem`,"aria-disabled":Hr(c.disabled),"data-disabled":F(c.disabled),"data-ownedby":gl(s),"data-highlighted":F(c.highlighted),"data-value":o,"data-valuetext":a,onDragStart(e){e.currentTarget.matches(`a[href]`)&&e.preventDefault()},onPointerMove(e){if(c.disabled||e.pointerType!==`mouse`)return;let t=e.currentTarget;c.highlighted||r({type:`ITEM_POINTERMOVE`,id:l,target:t,closeOnSelect:i,point:bi(e)})},onPointerLeave(t){if(c.disabled||t.pointerType!==`mouse`||!e.event.previous()?.type.includes(`POINTER`))return;let n=t.currentTarget;r({type:`ITEM_POINTERLEAVE`,id:l,target:n,closeOnSelect:i})},onPointerDown(e){if(c.disabled)return;let t=e.currentTarget;r({type:`ITEM_POINTERDOWN`,target:t,id:l,closeOnSelect:i})},onClick(e){if(mi(e)||pi(e)||c.disabled)return;let t=e.currentTarget;r({type:`ITEM_CLICK`,target:t,id:l,closeOnSelect:i})}})}return{highlightedValue:h,open:c,setOpen(e){i.hasTag(`open`)!==e&&r({type:e?`OPEN`:`CLOSE`})},triggerValue:g,setTriggerValue(e){r({type:`TRIGGER_VALUE.SET`,value:e})},setHighlightedValue(e){r({type:`HIGHLIGHTED.SET`,value:e})},setParent(e){r({type:`PARENT.SET`,value:e,id:e.prop(`id`)})},setChild(e){r({type:`CHILD.SET`,value:e,id:e.prop(`id`)})},reposition(e={}){r({type:`POSITIONING.SET`,options:e})},addItemListener(e){let t=s.getById(e.id);if(!t)return;let n=()=>e.onSelect?.();return t.addEventListener(jl,n),()=>t.removeEventListener(jl,n)},getContextTriggerProps(e={}){let{value:n}=e,i=n==null?!1:g===n,a=hl(s,n);return t.element({...pl.contextTrigger.attrs,dir:o(`dir`),id:a,"data-ownedby":s.id,"data-value":n,"data-current":F(i),"data-state":c?`open`:`closed`,onPointerDown(e){e.pointerType!==`mouse`&&r({type:`CONTEXT_MENU_START`,point:bi(e),value:n})},onPointerCancel(e){e.pointerType!==`mouse`&&r({type:`CONTEXT_MENU_CANCEL`})},onPointerMove(e){e.pointerType!==`mouse`&&r({type:`CONTEXT_MENU_CANCEL`})},onPointerUp(e){e.pointerType!==`mouse`&&r({type:`CONTEXT_MENU_CANCEL`})},onContextMenu(e){let t=bi(e);r({type:c&&n!=null&&!i?`TRIGGER_VALUE.SET`:`CONTEXT_MENU`,point:t,value:n}),e.preventDefault()},style:{WebkitTouchCallout:`none`,WebkitUserSelect:`none`,userSelect:`none`}})},getTriggerItemProps(e){let t=e.getTriggerProps();return vr(x({value:t.id}),t)},getTriggerProps(n={}){let{value:i}=n,a=i==null?!1:g===i,u=ml(s,i);return t.button({...l?pl.triggerItem.attrs:pl.trigger.attrs,"data-placement":f,"data-side":p,type:`button`,dir:o(`dir`),id:u,...i!=null&&{"data-ownedby":s.id,"data-value":i,"data-current":F(a)},"data-uid":o(`id`),"aria-haspopup":d?`menu`:`dialog`,"aria-controls":gl(s),"data-controls":gl(s),"aria-expanded":i==null?c:c&&a,"data-state":c?`open`:`closed`,onPointerMove(e){if(e.pointerType!==`mouse`||kl(e.currentTarget)||!l)return;let t=bi(e);r({type:`TRIGGER_POINTERMOVE`,target:e.currentTarget,point:t})},onPointerLeave(t){if(kl(t.currentTarget)||t.pointerType!==`mouse`||!l)return;Il(e.refs.get(`parent`),!0);let n=bi(t);r({type:`TRIGGER_POINTERLEAVE`,target:t.currentTarget,point:n})},onPointerDown(e){kl(e.currentTarget)||_i(e)||e.preventDefault()},onClick(e){e.defaultPrevented||kl(e.currentTarget)||r({type:c&&i!=null&&!a?`TRIGGER_VALUE.SET`:`TRIGGER_CLICK`,target:e.currentTarget,value:i})},onBlur(){r({type:`TRIGGER_BLUR`})},onFocus(){r({type:`TRIGGER_FOCUS`})},onKeyDown(e){if(e.defaultPrevented)return;let t={ArrowDown(){r({type:`ARROW_DOWN`,value:i})},ArrowUp(){r({type:`ARROW_UP`,value:i})},Enter(){r({type:`ARROW_DOWN`,src:`enter`,value:i})},Space(){r({type:`ARROW_DOWN`,src:`space`,value:i})}}[yi(e,{orientation:`vertical`,dir:o(`dir`)})];t&&(e.preventDefault(),t(e))}})},getIndicatorProps(){return t.element({...pl.indicator.attrs,dir:o(`dir`),"data-state":c?`open`:`closed`})},getPositionerProps(){return t.element({...pl.positioner.attrs,dir:o(`dir`),id:_l(s),style:_.floating})},getArrowProps(){return t.element({id:Wse(s),...pl.arrow.attrs,dir:o(`dir`),style:_.arrow})},getArrowTipProps(){return t.element({...pl.arrowTip.attrs,dir:o(`dir`),style:_.arrowTip})},getContentProps(){return t.element({...pl.content.attrs,id:gl(s),"aria-label":o(`aria-label`),hidden:!c,"data-state":c?`open`:`closed`,role:d?`menu`:`dialog`,tabIndex:0,dir:o(`dir`),"aria-activedescendant":a(`highlightedId`)||void 0,"aria-labelledby":m?hl(s,g??void 0):ml(s,g??void 0),"data-placement":f,"data-side":p,onPointerEnter(e){e.pointerType===`mouse`&&r({type:`MENU_POINTERENTER`})},onKeyDown(e){if(e.defaultPrevented||!Qr(e.currentTarget,fi(e)))return;let t=fi(e);if(!(t?.closest(`[role=menu]`)===e.currentTarget||t===e.currentTarget))return;if(e.key===`Tab`&&!xte(e)){e.preventDefault();return}let n={ArrowDown(){r({type:`ARROW_DOWN`})},ArrowUp(){r({type:`ARROW_UP`})},ArrowLeft(){r({type:`ARROW_LEFT`})},ArrowRight(){r({type:`ARROW_RIGHT`})},Enter(){r({type:`ENTER`})},Space(e){u?r({type:`TYPEAHEAD`,key:e.key}):n.Enter?.(e)},Home(){r({type:`HOME`})},End(){r({type:`END`})}},i=n[yi(e,{dir:o(`dir`)})];if(i){i(e),e.stopPropagation(),e.preventDefault();return}o(`typeahead`)&&ete(e)&&(nte(e)||Zr(t)||(r({type:`TYPEAHEAD`,key:e.key}),e.preventDefault()))}})},getSeparatorProps(){return t.element({...pl.separator.attrs,role:`separator`,dir:o(`dir`),"aria-orientation":`horizontal`})},getItemState:v,getItemProps:x,getOptionItemState:b,getOptionItemProps(e){let{type:n,disabled:i,closeOnSelect:a}=e,s=y(e),c=b(e);return{...x(s),...t.element({"data-type":n,...pl.item.attrs,dir:o(`dir`),"data-value":s.value,role:`menuitem${n}`,"aria-checked":!!c.checked,"data-state":c.checked?`checked`:`unchecked`,onClick(e){if(i||mi(e)||pi(e))return;let t=e.currentTarget;r({type:`ITEM_CLICK`,target:t,option:s,closeOnSelect:a})}})}},getItemIndicatorProps(e){let n=b(Rn(e)),r=n.checked?`checked`:`unchecked`;return t.element({...pl.itemIndicator.attrs,dir:o(`dir`),"data-disabled":F(n.disabled),"data-highlighted":F(n.highlighted),"data-state":kn(e,`checked`)?r:void 0,hidden:kn(e,`checked`)?!n.checked:void 0})},getItemTextProps(e){let n=b(Rn(e)),r=n.checked?`checked`:`unchecked`;return t.element({...pl.itemText.attrs,dir:o(`dir`),"data-disabled":F(n.disabled),"data-highlighted":F(n.highlighted),"data-state":kn(e,`checked`)?r:void 0})},getItemGroupLabelProps(e){return t.element({...pl.itemGroupLabel.attrs,id:bl(s,e.htmlFor),dir:o(`dir`)})},getItemGroupProps(e){return t.element({id:Gse(s,e.id),...pl.itemGroup.attrs,dir:o(`dir`),"aria-labelledby":bl(s,e.id),role:`group`})}}}var{not:Rl,and:zl,or:lce}=Mr(),uce=Nr({props({props:e}){return{closeOnSelect:!0,typeahead:!0,composite:!0,loopFocus:!1,navigate(e){zi(e.node)},...e,positioning:{placement:`bottom-start`,gutter:8,...e.positioning}}},initialState({prop:e}){return e(`open`)||e(`defaultOpen`)?`open`:`idle`},context({bindable:e,prop:t,scope:n}){return{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){return`x: ${e?.x}, y: ${e?.y}`}})),isSubmenu:e(()=>({defaultValue:!1})),triggerValue:e(()=>({defaultValue:t(`defaultTriggerValue`)??null,value:t(`triggerValue`),onChange(e){let r=t(`onTriggerValueChange`);r&&r({value:e,triggerElement:El(n,e)})}})),pointerRoutingMode:e(()=>({defaultValue:`interactive`}))}},refs(){return{parent:null,children:{},pointerRoutingLocked:!1,typeaheadState:{...$i.defaultOptions},positioningOverride:{}}},computed:{isRtl:({prop:e})=>e(`dir`)===`rtl`,isTypingAhead:({refs:e})=>e.get(`typeaheadState`).keysSoFar!==``,highlightedId:({context:e,scope:t,refs:n})=>ace(n.get(`children`),e.get(`highlightedValue`),t)},watch({track:e,action:t,context:n,prop:r}){e([()=>n.get(`isSubmenu`)],()=>{t([`setSubmenuPlacement`])}),e([()=>n.hash(`anchorPoint`)],()=>{n.get(`anchorPoint`)&&t([`reposition`])}),e([()=>r(`open`)],()=>{t([`toggleVisibility`])})},on:{"TRIGGER_VALUE.SET":{actions:[`setTriggerValue`,`setAnchorPoint`,`reposition`,`focusMenu`]},"PARENT.SET":{actions:[`setParentMenu`]},"CHILD.SET":{actions:[`setChildMenu`]},OPEN:[{guard:`isOpenControlled`,actions:[`setTriggerValue`,`invokeOnOpen`]},{target:`open`,actions:[`setTriggerValue`,`invokeOnOpen`]}],OPEN_AUTOFOCUS:[{guard:`isOpenControlled`,actions:[`setTriggerValue`,`invokeOnOpen`]},{target:`open`,actions:[`setTriggerValue`,`highlightFirstItem`,`invokeOnOpen`]}],CLOSE:[{guard:`isOpenControlled`,actions:[`invokeOnClose`,`releaseParentRoutingLock`]},{target:`closed`,actions:[`invokeOnClose`,`releaseParentRoutingLock`,`focusTrigger`]}],"HIGHLIGHTED.RESTORE":{actions:[`restoreHighlightedItem`]},"HIGHLIGHTED.SET":{actions:[`setHighlightedItem`]},"HIGHLIGHTED.SUGGEST":{actions:[`suggestHighlightedItem`]}},states:{idle:{tags:[`closed`],on:{"CONTROLLED.OPEN":{target:`open`},"CONTROLLED.CLOSE":{target:`closed`},CONTEXT_MENU_START:{target:`opening:contextmenu`,actions:[`setAnchorPoint`,`setTriggerValue`]},CONTEXT_MENU:[{guard:`isOpenControlled`,actions:[`setAnchorPoint`,`setTriggerValue`,`invokeOnOpen`]},{target:`open`,actions:[`setAnchorPoint`,`setTriggerValue`,`invokeOnOpen`]}],TRIGGER_CLICK:[{guard:`isOpenControlled`,actions:[`invokeOnOpen`,`setTriggerValue`]},{target:`open`,actions:[`invokeOnOpen`,`setTriggerValue`]}],TRIGGER_FOCUS:{guard:Rl(`isSubmenu`),target:`closed`},TRIGGER_POINTERMOVE:{guard:`isSubmenu`,target:`opening`}}},"opening:contextmenu":{tags:[`closed`],effects:[`waitForLongPress`],on:{"CONTROLLED.OPEN":{target:`open`},"CONTROLLED.CLOSE":{target:`closed`,actions:[`focusTrigger`]},CONTEXT_MENU_CANCEL:[{guard:`isOpenControlled`,actions:[`invokeOnClose`,`releaseParentRoutingLock`]},{target:`closed`,actions:[`invokeOnClose`,`releaseParentRoutingLock`,`focusTrigger`]}],"LONG_PRESS.OPEN":[{guard:`isOpenControlled`,actions:[`setTriggerValue`,`invokeOnOpen`]},{target:`open`,actions:[`setTriggerValue`,`invokeOnOpen`]}]}},opening:{tags:[`closed`],effects:[`waitForOpenDelay`],on:{"CONTROLLED.OPEN":{target:`open`},"CONTROLLED.CLOSE":{target:`closed`,actions:[`focusTrigger`]},BLUR:[{guard:`isOpenControlled`,actions:[`invokeOnClose`,`releaseParentRoutingLock`]},{target:`closed`,actions:[`invokeOnClose`,`releaseParentRoutingLock`,`focusTrigger`]}],TRIGGER_POINTERLEAVE:[{guard:`isOpenControlled`,actions:[`invokeOnClose`,`releaseParentRoutingLock`]},{target:`closed`,actions:[`invokeOnClose`,`releaseParentRoutingLock`,`focusTrigger`]}],"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`,`releaseParentRoutingLock`]},{target:`closed`,actions:[`focusParentMenu`,`restoreParentHighlightedItem`]}],"DELAY.CLOSE":[{guard:`isOpenControlled`,actions:[`invokeOnClose`,`releaseParentRoutingLock`]},{target:`closed`,actions:[`focusParentMenu`,`restoreParentHighlightedItem`,`invokeOnClose`,`releaseParentRoutingLock`]}]}},closed:{tags:[`closed`],entry:[`clearHighlightedItem`,`unlockParentOnClose`,`clearAnchorPoint`],on:{"CONTROLLED.OPEN":[{guard:lce(`isOpenAutoFocusEvent`,`isArrowDownEvent`),target:`open`,actions:[`highlightFirstItem`]},{guard:`isArrowUpEvent`,target:`open`,actions:[`highlightLastItem`]},{target:`open`}],CONTEXT_MENU_START:{target:`opening:contextmenu`,actions:[`setAnchorPoint`,`setTriggerValue`]},CONTEXT_MENU:[{guard:`isOpenControlled`,actions:[`setAnchorPoint`,`setTriggerValue`,`invokeOnOpen`]},{target:`open`,actions:[`setAnchorPoint`,`setTriggerValue`,`invokeOnOpen`]}],TRIGGER_CLICK:[{guard:`isOpenControlled`,actions:[`invokeOnOpen`,`setTriggerValue`]},{target:`open`,actions:[`invokeOnOpen`,`setTriggerValue`]}],TRIGGER_POINTERMOVE:{guard:`isTriggerItem`,target:`opening`},TRIGGER_BLUR:{target:`idle`},ARROW_DOWN:[{guard:`isOpenControlled`,actions:[`setTriggerValue`,`invokeOnOpen`]},{target:`open`,actions:[`setTriggerValue`,`highlightFirstItem`,`invokeOnOpen`]}],ARROW_UP:[{guard:`isOpenControlled`,actions:[`setTriggerValue`,`invokeOnOpen`]},{target:`open`,actions:[`setTriggerValue`,`highlightLastItem`,`invokeOnOpen`]}]}},open:{tags:[`open`],effects:[`trackInteractOutside`,`trackFocusVisible`,`trackPositioning`,`scrollToHighlightedItem`],entry:[`focusMenu`,`unlockParentOnOpen`],on:{"CONTROLLED.CLOSE":[{target:`closed`,guard:`isArrowLeftEvent`,actions:[`focusParentMenu`]},{target:`closed`,actions:[`focusTrigger`]}],TRIGGER_CLICK:[{guard:zl(Rl(`isTriggerItem`),`isOpenControlled`),actions:[`invokeOnClose`,`releaseParentRoutingLock`]},{guard:Rl(`isTriggerItem`),target:`closed`,actions:[`invokeOnClose`,`releaseParentRoutingLock`,`focusTrigger`]}],CONTEXT_MENU:{actions:[`setAnchorPoint`,`setTriggerValue`,`focusMenu`]},ARROW_UP:{actions:[`highlightPrevItem`,`focusMenu`]},ARROW_DOWN:{actions:[`highlightNextItem`,`focusMenu`]},ARROW_LEFT:[{guard:zl(`isSubmenu`,`isOpenControlled`),actions:[`invokeOnClose`,`releaseParentRoutingLock`]},{guard:`isSubmenu`,target:`closed`,actions:[`focusParentMenu`,`invokeOnClose`,`releaseParentRoutingLock`]}],HOME:{actions:[`highlightFirstItem`,`focusMenu`]},END:{actions:[`highlightLastItem`,`focusMenu`]},ARROW_RIGHT:{guard:`isTriggerItemHighlighted`,actions:[`openSubmenu`]},ENTER:[{guard:`isTriggerItemHighlighted`,actions:[`openSubmenu`]},{actions:[`clickHighlightedItem`]}],ITEM_POINTERMOVE:[{guard:Rl(`isPointerRoutingLocked`),actions:[`setHighlightedItem`,`focusMenu`,`closeSiblingMenus`]},{actions:[`setLastHighlightedItem`,`closeSiblingMenus`]}],ITEM_POINTERLEAVE:{guard:zl(Rl(`isPointerRoutingLocked`),Rl(`isTriggerItem`)),actions:[`clearHighlightedItem`]},ITEM_CLICK:[{guard:zl(Rl(`isTriggerItemHighlighted`),Rl(`isHighlightedItemEditable`),`closeOnSelect`,`isOpenControlled`),actions:[`invokeOnSelect`,`setOptionState`,`closeRootMenu`,`invokeOnClose`,`releaseParentRoutingLock`]},{guard:zl(Rl(`isTriggerItemHighlighted`),Rl(`isHighlightedItemEditable`),`closeOnSelect`),target:`closed`,actions:[`invokeOnSelect`,`setOptionState`,`closeRootMenu`,`invokeOnClose`,`releaseParentRoutingLock`,`focusTrigger`]},{guard:zl(Rl(`isTriggerItemHighlighted`),Rl(`isHighlightedItemEditable`)),actions:[`invokeOnSelect`,`setOptionState`]},{actions:[`setHighlightedItem`]}],TRIGGER_POINTERMOVE:{guard:`isTriggerItem`,actions:[`setIntentPolygon`]},TRIGGER_POINTERLEAVE:{target:`closing`,actions:[`setIntentPolygon`]},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})=>Al(e.target),isTriggerItemHighlighted:({event:e,scope:t,computed:n})=>!!(e.target??t.getById(n(`highlightedId`)))?.hasAttribute(`data-controls`),isSubmenu:({context:e})=>e.get(`isSubmenu`),isPointerRoutingLocked:({refs:e})=>e.get(`pointerRoutingLocked`),isHighlightedItemEditable:({scope:e,computed:t})=>Zr(e.getById(t(`highlightedId`))),isOpenControlled:({prop:e})=>e(`open`)!==void 0,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`})},200);return()=>clearTimeout(t)},waitForCloseDelay({send:e}){let t=setTimeout(()=>{e({type:`DELAY.CLOSE`})},100);return()=>clearTimeout(t)},waitForLongPress({send:e}){let t=setTimeout(()=>{e({type:`LONG_PRESS.OPEN`})},700);return()=>clearTimeout(t)},trackFocusVisible({scope:e}){return Pa({root:e.getRootNode?.()})},trackPositioning({context:e,prop:t,scope:n,refs:r}){if(qse(n)||Tl(n).length>0)return;let i={...t(`positioning`),...r.get(`positioningOverride`)};return e.set(`currentPlacement`,i.placement),ns(()=>El(n,e.get(`triggerValue`)),()=>Sl(n),{...i,defer:!0,onComplete(t){e.set(`currentPlacement`,t.placement)}})},trackInteractOutside({refs:e,scope:t,prop:n,context:r,send:i}){let a=()=>xl(t),o=!0,s=e=>Tl(t).some(t=>Qr(t,e));return Cs(a,{type:`menu`,defer:!0,exclude:[Cl(t),...wl(t)].filter(Boolean),onInteractOutside:n(`onInteractOutside`),onRequestDismiss:n(`onRequestDismiss`),onFocusOutside(t){n(`onFocusOutside`)?.(t);let r=fi(t.detail.originalEvent);if(s(r)){t.preventDefault();return}if(Ml(r,e.get(`children`))){t.preventDefault();return}},onEscapeKeyDown(t){n(`onEscapeKeyDown`)?.(t),r.get(`isSubmenu`)&&t.preventDefault(),Fl({parent:e.get(`parent`)})},onPointerDownOutside(e){if(n(`onPointerDownOutside`)?.(e),s(fi(e.detail.originalEvent))&&e.detail.contextmenu){e.preventDefault();return}o=!e.detail.focusable},onDismiss(){i({type:`CLOSE`,src:`interact-outside`,restoreFocus:o})}})},trackPointerMove({context:e,scope:t,send:n,refs:r}){let i=r.get(`parent`);if(i)return Il(i,!0),xi(t.getDoc(),`pointermove`,t=>{ice(e.get(`intentPolygon`),{x:t.clientX,y:t.clientY})||(n({type:`POINTER_MOVED_AWAY_FROM_SUBMENU`}),Il(i,!1))})},scrollToHighlightedItem({scope:e,computed:t}){let n=()=>{ja()!==`pointer`&&Xi(e.getById(t(`highlightedId`)),{rootEl:xl(e),block:`nearest`})};return Ii(()=>{Ma(`virtual`),n()}),Ri(()=>xl(e),{defer:!0,attributes:[`aria-activedescendant`],callback:n})}},actions:{setAnchorPoint({context:e,event:t}){e.set(`anchorPoint`,e=>bn(e,t.point)?e:t.point)},setSubmenuPlacement({context:e,computed:t,refs:n}){if(!e.get(`isSubmenu`))return;let r=t(`isRtl`)?`left-start`:`right-start`;n.set(`positioningOverride`,{placement:r,gutter:0})},reposition({context:e,scope:t,prop:n,event:r,refs:i}){let a=()=>Sl(t),o=r.point??e.get(`anchorPoint`),s=o?()=>({width:0,height:0,...o}):void 0,c={...n(`positioning`),...i.get(`positioningOverride`)},l=r.value??e.get(`triggerValue`);ns(()=>El(t,l),a,{...c,defer:!0,getAnchorRect:s,...r.options??{},listeners:!1,onComplete(t){e.set(`currentPlacement`,t.placement)}})},setOptionState({event:e}){if(!e.option)return;let{checked:t,onCheckedChange:n,type:r}=e.option;r===`radio`?n?.(!0):r===`checkbox`&&n?.(!t)},clickHighlightedItem({scope:e,computed:t,prop:n,context:r}){let i=e.getById(t(`highlightedId`));if(!i||i.dataset.disabled)return;let a=r.get(`highlightedValue`);Yr(i)?n(`navigate`)?.({value:a,node:i,href:i.href}):queueMicrotask(()=>i.click())},setIntentPolygon({context:e,scope:t,event:n}){let r=xl(t),i=e.get(`currentPlacement`);if(!r||!i)return;let a=rce(r.getBoundingClientRect(),i);if(!a)return;let o=Xo(i)===`right`?-5:5;e.set(`intentPolygon`,[{...n.point,x:n.point.x+o},...a])},clearIntentPolygon({context:e}){e.set(`intentPolygon`,null)},clearAnchorPoint({context:e}){e.set(`anchorPoint`,null)},unlockParentOnOpen({refs:e,context:t,scope:n}){let r=e.get(`parent`);if(t.get(`isSubmenu`)){let e=ml(n);r?.send({type:`HIGHLIGHTED.SUGGEST`,value:e})}Il(r,!1)},unlockParentOnClose({refs:e,context:t}){oce(e.get(`parent`),t.get(`isSubmenu`))},setHighlightedItem({context:e,event:t}){let n=t.value||yl(t.target);e.set(`highlightedValue`,n)},clearHighlightedItem({context:e}){e.set(`highlightedValue`,null)},focusMenu({scope:e}){Ii(()=>{let t=xl(e);Pi({root:t,enabled:!Qr(t,e.getActiveElement()),filter(e){return!e.role?.startsWith(`menuitem`)}})?.focus({preventScroll:!0})})},highlightFirstItem({context:e,scope:t}){(xl(t)?queueMicrotask:Ii)(()=>{let n=Jse(t);n&&e.set(`highlightedValue`,yl(n))})},highlightLastItem({context:e,scope:t}){(xl(t)?queueMicrotask:Ii)(()=>{let n=Yse(t);n&&e.set(`highlightedValue`,yl(n))})},highlightNextItem({context:e,scope:t,event:n,prop:r}){let i=Xse(t,{loop:n.loop,value:e.get(`highlightedValue`),loopFocus:r(`loopFocus`)});e.set(`highlightedValue`,yl(i))},highlightPrevItem({context:e,scope:t,event:n,prop:r}){let i=Zse(t,{loop:n.loop,value:e.get(`highlightedValue`),loopFocus:r(`loopFocus`)});e.set(`highlightedValue`,yl(i))},invokeOnSelect({context:e,prop:t,scope:n}){let r=e.get(`highlightedValue`);r!=null&&($se(Kse(n,r),r),t(`onSelect`)?.({value:r}))},focusTrigger({scope:e,context:t,event:n}){t.get(`isSubmenu`)||t.get(`anchorPoint`)||n.restoreFocus===!1||queueMicrotask(()=>{El(e,t.get(`triggerValue`))?.focus({preventScroll:!0})})},highlightMatchedItem({scope:e,context:t,event:n,refs:r}){let i=Qse(e,{key:n.key,value:t.get(`highlightedValue`),typeaheadState:r.get(`typeaheadState`)});i&&t.set(`highlightedValue`,yl(i))},setParentMenu({refs:e,event:t,context:n}){e.set(`parent`,t.value),n.set(`isSubmenu`,!0)},setChildMenu({refs:e,event:t}){let n=e.get(`children`);n[t.id]=t.value,e.set(`children`,n)},closeSiblingMenus({refs:e,event:t,scope:n}){let r=t.target;if(!Al(r))return;let i=r?.getAttribute(`data-uid`),a=e.get(`children`);for(let e in a){if(e===i)continue;let r=a[e],o=r.context.get(`intentPolygon`);o&&t.point&&Pl(o,t.point)||(xl(n)?.focus({preventScroll:!0}),r.send({type:`CLOSE`}))}},closeRootMenu({refs:e}){Fl({parent:e.get(`parent`)})},openSubmenu({refs:e,scope:t,computed:n}){let r=t.getById(n(`highlightedId`))?.getAttribute(`data-uid`),i=e.get(`children`);(r?i[r]:null)?.send({type:`OPEN_AUTOFOCUS`})},focusParentMenu({refs:e}){e.get(`parent`)?.send({type:`FOCUS_MENU`})},setLastHighlightedItem({context:e,event:t}){e.set(`lastHighlightedValue`,yl(t.target))},suggestHighlightedItem({context:e,event:t}){let n=t.value;if(n){if(e.get(`highlightedValue`)!=null){e.set(`lastHighlightedValue`,n);return}e.set(`highlightedValue`,n)}},restoreHighlightedItem({context:e}){let t=e.get(`lastHighlightedValue`);e.set(`lastHighlightedValue`,null),t&&e.set(`highlightedValue`,t)},restoreParentHighlightedItem({refs:e}){e.get(`parent`)?.send({type:`HIGHLIGHTED.RESTORE`})},invokeOnOpen({prop:e}){e(`onOpenChange`)?.({open:!0})},invokeOnClose({prop:e}){e(`onOpenChange`)?.({open:!1})},releaseParentRoutingLock({refs:e,context:t}){t.get(`isSubmenu`)&&sce(e.get(`parent`))},toggleVisibility({prop:e,event:t,send:n}){n({type:e(`open`)?`CONTROLLED.OPEN`:`CONTROLLED.CLOSE`,previousEvent:t})},setTriggerValue({context:e,event:t}){t.value!==void 0&&e.set(`triggerValue`,t.value)}}}}),[Bl,Vl]=cr({hookName:`useMenuContext`,providerName:`<MenuProvider />`,strict:!1}),dce=e=>{let t=Vl(),n=I(()=>t().getArrowProps(),e);return A(L.div,n)},fce=e=>{let t=Vl(),n=I(()=>t().getArrowTipProps(),e);return A(L.div,n)},[Hl,pce]=cr({hookName:`useMenuItemContext`,providerName:`<MenuItemProvider />`}),[Ul,Wl]=cr({hookName:`useMenuItemPropsContext`,providerName:`<MenuItemPropsProvider />`}),mce=e=>{let[t,n]=$t()(e,[`checked`,`closeOnSelect`,`disabled`,`onCheckedChange`,`value`,`valueText`]),r=I(t,{type:`checkbox`}),i=Vl(),a=I(()=>i().getOptionItemProps(r),n),o=k(()=>i().getOptionItemState(r));return A(Ul,{value:r,get children(){return A(Hl,{value:o,get children(){return A(L.div,a)}})}})},hce=e=>{let t=Vl(),n=Ba(),r=I(()=>t().getContentProps(),()=>n().presenceProps,e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,j(r,{ref(t){var r=La(n().ref,e.ref);typeof r==`function`&&r(t)}}))}})},gce=e=>e.children(Vl()),_ce=e=>{let t=Vl(),n=I(()=>t().getContextTriggerProps(),e);return A(L.button,n)},vce=e=>{let t=Vl(),n=I(()=>t().getIndicatorProps(),e);return A(L.div,n)},yce=e=>{let[t,n]=$t()(e,[`closeOnSelect`,`disabled`,`value`,`valueText`,`onSelect`]),r=Vl(),i=I(()=>r().getItemProps(t),n),a=k(()=>r().getItemState(t));return pe(()=>{let e=r().addItemListener({id:a().id,onSelect:t.onSelect});ye(()=>e?.())}),A(Ul,{value:t,get children(){return A(Hl,{value:a,get children(){return A(L.div,i)}})}})},bce=e=>e.children(pce()),[Gl,Kl]=cr({hookName:`useMenuItemGroupContext`,providerName:`<MenuItemGroupProvider />`}),xce=e=>{let[t,n]=$t()(e,[`id`]),r=I({id:ct()},t),i=Vl(),a=I(()=>i().getItemGroupProps(r),n);return A(Gl,{value:r,get children(){return A(L.div,a)}})},Sce=e=>{let t=Vl(),n=Kl(),r=I(t().getItemGroupLabelProps({htmlFor:n.id}),e);return A(L.div,r)},Cce=e=>{let t=Vl(),n=Wl(),r=I(()=>t().getItemIndicatorProps(n),e);return A(L.div,r)},wce=e=>{let t=Vl(),n=Wl(),r=I(()=>t().getItemTextProps(n),e);return A(L.div,r)},Tce=e=>{let t=Vl(),n=Ba(),r=I(()=>t().getPositionerProps(),e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,r)}})},Ece=e=>{let[t,n]=$t()(e,[`closeOnSelect`,`disabled`,`value`,`valueText`]),r=Vl(),i=Kl(),a=I(t,()=>({type:`radio`,checked:i.value===t.value,onCheckedChange:()=>i.onValueChange?.({value:t.value})})),o=I(()=>r().getOptionItemProps(a),n),s=k(()=>r().getOptionItemState(a));return A(Ul,{value:a,get children(){return A(Hl,{value:s,get children(){return A(L.div,o)}})}})},Dce=e=>{let[t,n]=$t()(e,[`id`,`onValueChange`,`value`]),r=Vl(),i=I({id:ct()},t),a=I(()=>r().getItemGroupProps(i),n);return A(Gl,{value:i,get children(){return A(L.div,a)}})},Oce=e=>{let t=ct(),n=ua(),r=la(),i=na(uce,k(()=>({id:t,dir:n().dir,getRootNode:r().getRootNode,...pr(e)})));return{api:k(()=>cce(i,oa)),service:i}},[ql,Jl]=cr({hookName:`useMenuMachineContext`,providerName:`<MenuMachineProvider />`,strict:!1}),[Yl,kce]=cr({hookName:`useMenuMachineContext`,providerName:`<MenuMachineProvider />`,strict:!1}),Ace=e=>{let[t,n]=Ra(e),[r,i]=$t()(n,[`anchorPoint`,`aria-label`,`closeOnSelect`,`composite`,`defaultHighlightedValue`,`defaultOpen`,`highlightedValue`,`id`,`ids`,`loopFocus`,`navigate`,`onEscapeKeyDown`,`onFocusOutside`,`onHighlightChange`,`onInteractOutside`,`onOpenChange`,`onPointerDownOutside`,`onRequestDismiss`,`onSelect`,`open`,`positioning`,`typeahead`,`triggerValue`,`defaultTriggerValue`,`onTriggerValueChange`]),a=Vl(),o=Jl(),s=Oce(r),c=Ia(I(t,()=>({present:s.api().open})));return ve(()=>{o&&(a?.().setChild(s.service),s.api().setParent(o))}),A(Yl,{value:()=>a?.().getTriggerItemProps(s.api()),get children(){return A(ql,{get value(){return s.service},get children(){return A(Bl,{get value(){return s.api},get children(){return A(za,{value:c,get children(){return i.children}})}})}})}})},jce=e=>{let t=Vl(),n=Jl(),[r,i]=Ra(e),a=Ia(I(r,()=>({present:i.value.api().open})));return pe(()=>{n&&(t?.().setChild(i.value.service),i.value.api().setParent(n))}),A(Yl,{value:()=>t?.().getTriggerItemProps(i.value.api()),get children(){return A(ql,{get value(){return i.value.service},get children(){return A(Bl,{get value(){return i.value.api},get children(){return A(za,{value:a,get children(){return i.children}})}})}})}})},Mce=e=>{let t=Vl(),n=I(()=>t().getSeparatorProps(),e);return A(L.hr,n)},Nce=e=>{let[t,n]=$t()(e,[`value`]),r=Vl(),i=Ba(),a=I(()=>r().getTriggerProps(t),()=>({"aria-controls":i().unmounted&&null}),n);return A(L.button,a)},Pce=e=>{let t=kce(),n=I(()=>t?.(),e);return A(Ul,{get value(){return{value:n[`data-value`]}},get children(){return A(L.div,n)}})},Xl={};da(Xl,{Arrow:()=>dce,ArrowTip:()=>fce,CheckboxItem:()=>mce,Content:()=>hce,Context:()=>gce,ContextTrigger:()=>_ce,Indicator:()=>vce,Item:()=>yce,ItemContext:()=>bce,ItemGroup:()=>xce,ItemGroupLabel:()=>Sce,ItemIndicator:()=>Cce,ItemText:()=>wce,Positioner:()=>Tce,RadioItem:()=>Ece,RadioItemGroup:()=>Dce,Root:()=>Ace,RootProvider:()=>jce,Separator:()=>Mce,Trigger:()=>Nce,TriggerItem:()=>Pce});var Zl=fa(`popover`).parts(`arrow`,`arrowTip`,`anchor`,`trigger`,`indicator`,`positioner`,`content`,`title`,`description`,`closeTrigger`).build(),Ql=e=>e.ids?.anchor??`popover:${e.id}:anchor`,$l=(e,t)=>{let n=e.ids?.trigger;return n==null?t?`popover:${e.id}:trigger:${t}`:`popover:${e.id}:trigger`:Dn(n)?n(t):n},eu=e=>e.ids?.content??`popover:${e.id}:content`,tu=e=>e.ids?.positioner??`popover:${e.id}:popper`,Fce=e=>e.ids?.arrow??`popover:${e.id}:arrow`,nu=e=>e.ids?.title??`popover:${e.id}:title`,ru=e=>e.ids?.description??`popover:${e.id}:desc`,Ice=e=>e.ids?.closeTrigger??`popover:${e.id}:close`,iu=e=>e.getById(Ql(e)),au=e=>e.getById($l(e)),ou=e=>Gi(e.getRootNode(),`[data-scope="popover"][data-part="trigger"][data-ownedby="${e.id}"]`),su=(e,t)=>t==null?au(e)??ou(e)[0]:e.getById($l(e,t)),cu=e=>e.getById(eu(e)),lu=e=>e.getById(tu(e)),Lce=e=>e.getById(nu(e)),Rce=e=>e.getById(ru(e));function zce(e,t){let{state:n,context:r,send:i,computed:a,prop:o,scope:s}=e,c=o(`translations`),l=n.matches(`open`),u=r.get(`currentPlacement`),d=u?Xo(u):void 0,f=a(`currentPortalled`),p=r.get(`renderedElements`),m=r.get(`triggerValue`),h=rs({...o(`positioning`),placement:u});return{portalled:f,open:l,setOpen(e){n.matches(`open`)!==e&&i({type:e?`OPEN`:`CLOSE`})},triggerValue:m,setTriggerValue(e){i({type:`TRIGGER_VALUE.SET`,value:e})},reposition(e={}){i({type:`POSITIONING.SET`,options:e})},getArrowProps(){return t.element({id:Fce(s),...Zl.arrow.attrs,dir:o(`dir`),style:h.arrow})},getArrowTipProps(){return t.element({...Zl.arrowTip.attrs,dir:o(`dir`),style:h.arrowTip})},getAnchorProps(){return t.element({...Zl.anchor.attrs,dir:o(`dir`),id:Ql(s)})},getTriggerProps(e={}){let{value:n}=e,r=n==null?!1:m===n;return t.button({...Zl.trigger.attrs,dir:o(`dir`),type:`button`,"data-placement":u,"data-side":d,id:$l(s,n),"data-ownedby":s.id,"data-value":n,"data-current":F(r),"aria-haspopup":`dialog`,"aria-expanded":n==null?l:l&&r,"data-state":l?`open`:`closed`,"aria-controls":eu(s),onPointerDown(e){gi(e)&&di()&&e.currentTarget.focus()},onClick(e){e.defaultPrevented||i({type:l&&n!=null&&!r?`TRIGGER_VALUE.SET`:`TOGGLE`,value:n})},onBlur(e){i({type:`TRIGGER_BLUR`,target:e.relatedTarget})}})},getIndicatorProps(){return t.element({...Zl.indicator.attrs,dir:o(`dir`),"data-state":l?`open`:`closed`})},getPositionerProps(){return t.element({id:tu(s),...Zl.positioner.attrs,dir:o(`dir`),style:h.floating})},getContentProps(){return t.element({...Zl.content.attrs,dir:o(`dir`),id:eu(s),tabIndex:-1,role:`dialog`,"aria-modal":Hr(o(`modal`)),hidden:!l,"data-state":l?`open`:`closed`,"data-expanded":F(l),"aria-labelledby":p.title?nu(s):void 0,"aria-describedby":p.description?ru(s):void 0,"data-placement":u,"data-side":d})},getTitleProps(){return t.element({...Zl.title.attrs,id:nu(s),dir:o(`dir`)})},getDescriptionProps(){return t.element({...Zl.description.attrs,id:ru(s),dir:o(`dir`)})},getCloseTriggerProps(){return t.button({...Zl.closeTrigger.attrs,dir:o(`dir`),id:Ice(s),type:`button`,"aria-label":c.closeTriggerLabel,onClick(e){e.defaultPrevented||(e.stopPropagation(),i({type:`CLOSE`}))}})}}}var Bce=Nr({props({props:e}){return{closeOnInteractOutside:!0,closeOnEscape:!0,autoFocus:!0,modal:!1,portalled:!0,restoreFocus:!0,...e,translations:{closeTriggerLabel:`close`,...e.translations},positioning:{placement:`bottom`,...e.positioning}}},initialState({prop:e}){return e(`open`)||e(`defaultOpen`)?`open`:`closed`},context({bindable:e,prop:t,scope:n}){return{currentPlacement:e(()=>({defaultValue:void 0})),renderedElements:e(()=>({defaultValue:{title:!0,description:!0}})),triggerValue:e(()=>({defaultValue:t(`defaultTriggerValue`)??null,value:t(`triggerValue`),onChange(e){let r=t(`onTriggerValueChange`);r&&r({value:e,triggerElement:su(n,e)})}}))}},computed:{currentPortalled:({prop:e})=>!!e(`modal`)||!!e(`portalled`)},watch({track:e,prop:t,action:n}){e([()=>t(`open`)],()=>{n([`toggleVisibility`])})},entry:[`checkRenderedElements`],on:{"TRIGGER_VALUE.SET":{actions:[`setTriggerValue`,`reposition`]}},states:{closed:{on:{"CONTROLLED.OPEN":{target:`open`,actions:[`setInitialFocus`]},TOGGLE:[{guard:`isOpenControlled`,actions:[`invokeOnOpen`,`setTriggerValue`]},{target:`open`,actions:[`invokeOnOpen`,`setTriggerValue`,`setInitialFocus`]}],OPEN:[{guard:`isOpenControlled`,actions:[`invokeOnOpen`,`setTriggerValue`]},{target:`open`,actions:[`invokeOnOpen`,`setTriggerValue`,`setInitialFocus`]}]}},open:{effects:[`trapFocus`,`preventScroll`,`hideContentBelow`,`trackDismissableElement`,`trackPositioning`,`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})=>e(`open`)!=null},effects:{trackPositioning({context:e,prop:t,scope:n}){e.set(`currentPlacement`,t(`positioning`).placement);let r=iu(n);return ns(()=>r??su(n,e.get(`triggerValue`)),()=>lu(n),{...t(`positioning`),defer:!0,onComplete(t){e.set(`currentPlacement`,t.placement)}})},trackDismissableElement({send:e,prop:t,scope:n}){let r=()=>cu(n),i=!0;return Cs(r,{type:`popover`,pointerBlocking:t(`modal`),exclude:[au(n),...ou(n)].filter(Boolean),defer:!0,onEscapeKeyDown(e){t(`onEscapeKeyDown`)?.(e),!t(`closeOnEscape`)&&e.preventDefault()},onInteractOutside(e){t(`onInteractOutside`)?.(e),!e.defaultPrevented&&(i=!(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:i})}})},proxyTabFocus({prop:e,scope:t,context:n}){return e(`modal`)||!e(`portalled`)?void 0:Fte(()=>cu(t),{triggerElement:su(t,n.get(`triggerValue`)),defer:!0,getShadowRoot:!0,onFocus(e){e.focus({preventScroll:!0})}})},hideContentBelow({prop:e,scope:t,context:n}){return e(`modal`)?Ic(()=>[cu(t),su(t,n.get(`triggerValue`))],{defer:!0}):void 0},preventScroll({prop:e,scope:t}){if(e(`modal`))return qc(t.getDoc())},trapFocus({prop:e,scope:t,context:n}){return e(`modal`)?Uc(()=>cu(t),{preventScroll:!0,returnFocusOnDeactivate:!!e(`restoreFocus`),initialFocus:()=>Pi({root:cu(t),getInitialEl:e(`initialFocusEl`),enabled:e(`autoFocus`)}),setReturnFocus:r=>{let i=e(`finalFocusEl`)?.();if(i)return i;let a=n.get(`triggerValue`);if(a){let e=su(t,a);if(e)return e}return ou(t)[0]||r},getShadowRoot:!0}):void 0}},actions:{reposition({event:e,prop:t,scope:n,context:r}){let i=iu(n);ns(()=>i??su(n,r.get(`triggerValue`)),()=>lu(n),{...t(`positioning`),...e.options,defer:!0,listeners:!1,onComplete(e){r.set(`currentPlacement`,e.placement)}})},setTriggerValue({context:e,event:t}){t.value!==void 0&&e.set(`triggerValue`,t.value)},checkRenderedElements({context:e,scope:t}){Ii(()=>{Object.assign(e.get(`renderedElements`),{title:!!Lce(t),description:!!Rce(t)})})},setInitialFocus({prop:e,scope:t}){e(`modal`)||Ii(()=>{Pi({root:cu(t),getInitialEl:e(`initialFocusEl`),enabled:e(`autoFocus`)})?.focus({preventScroll:!0})})},setFinalFocus({event:e,prop:t,scope:n,context:r}){let i=e.restoreFocus??e.previousEvent?.restoreFocus;i!=null&&!i||t(`restoreFocus`)&&Ii(()=>{let e=t(`finalFocusEl`)?.();if(e){e.focus({preventScroll:!0});return}su(n,r.get(`triggerValue`))?.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:n}){t({type:n(`open`)?`CONTROLLED.OPEN`:`CONTROLLED.CLOSE`,previousEvent:e})}}}}),[uu,du]=cr({hookName:`usePopoverContext`,providerName:`<PopoverProvider />`}),Vce=e=>{let t=du(),n=I(()=>t().getAnchorProps(),e);return A(L.div,n)},Hce=e=>{let t=du(),n=I(()=>t().getArrowProps(),e);return A(L.div,n)},Uce=e=>{let t=du(),n=I(()=>t().getArrowTipProps(),e);return A(L.div,n)},Wce=e=>{let t=du(),n=I(()=>t().getCloseTriggerProps(),e);return A(L.button,n)},Gce=e=>{let t=du(),n=Ba(),r=I(()=>t().getContentProps(),()=>n().presenceProps,e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,j(r,{ref(t){var r=La(n().ref,e.ref);typeof r==`function`&&r(t)}}))}})},Kce=e=>e.children(du()),qce=e=>{let t=du(),n=I(()=>t().getDescriptionProps(),e);return A(L.div,n)},Jce=e=>{let t=du(),n=I(()=>t().getIndicatorProps(),e);return A(L.div,n)},Yce=e=>{let t=du(),n=Ba(),r=I(()=>t().getPositionerProps(),e);return A(M,{get when(){return!n().unmounted},get children(){return A(L.div,r)}})},Xce=e=>{let t=ct(),n=ua(),r=la(),i=na(Bce,k(()=>({id:t,dir:n().dir,getRootNode:r().getRootNode,...pr(e)})));return k(()=>zce(i,oa))},Zce=e=>{let[t,n]=Ra(e),[r,i]=$t()(n,[`autoFocus`,`closeOnEscape`,`closeOnInteractOutside`,`defaultOpen`,`finalFocusEl`,`id`,`ids`,`initialFocusEl`,`modal`,`onEscapeKeyDown`,`onFocusOutside`,`onInteractOutside`,`onOpenChange`,`onPointerDownOutside`,`onRequestDismiss`,`open`,`persistentElements`,`portalled`,`positioning`,`restoreFocus`,`translations`,`triggerValue`,`defaultTriggerValue`,`onTriggerValueChange`]),a=Xce(r),o=Ia(I(t,()=>({present:a().open})));return A(uu,{value:a,get children(){return A(za,{value:o,get children(){return i.children}})}})},Qce=e=>{let[t,n]=Ra(e),r=Ia(I(t,()=>({present:n.value().open})));return A(uu,{get value(){return n.value},get children(){return A(za,{value:r,get children(){return n.children}})}})},$ce=e=>{let t=du(),n=I(()=>t().getTitleProps(),e);return A(L.div,n)},ele=e=>{let[t,n]=$t()(e,[`value`]),r=du(),i=Ba(),a=I(()=>r().getTriggerProps(t),()=>({"aria-controls":i().unmounted&&null}),n);return A(L.button,a)},fu={};da(fu,{Anchor:()=>Vce,Arrow:()=>Hce,ArrowTip:()=>Uce,CloseTrigger:()=>Wce,Content:()=>Gce,Context:()=>Kce,Description:()=>qce,Indicator:()=>Jce,Positioner:()=>Yce,Root:()=>Zce,RootProvider:()=>Qce,Title:()=>$ce,Trigger:()=>ele});var pu=fa(`toast`).parts(`group`,`root`,`title`,`description`,`actionTrigger`,`closeTrigger`).build(),tle=e=>`toast-group:${e}`,mu=(e,t)=>e.getById(`toast-group:${t}`),hu=e=>`toast:${e.id}`,gu=e=>e.getById(hu(e)),_u=e=>`toast:${e.id}:title`,vu=e=>`toast:${e.id}:description`,nle=e=>`toast${e.id}:close`,yu={info:5e3,error:5e3,success:2e3,loading:1/0,warning:5e3,DEFAULT:5e3};function bu(e,t){return e??yu[t]??yu.DEFAULT}var rle=e=>typeof e==`string`?{left:e,right:e,bottom:e,top:e}:e;function ile(e,t){let{prop:n,computed:r,context:i}=e,{offsets:a,gap:o}=n(`store`).attrs,s=i.get(`heights`),c=rle(a),l=n(`dir`)===`rtl`,u=t.replace(`-start`,l?`-right`:`-left`).replace(`-end`,l?`-left`:`-right`),d=u.includes(`right`),f=u.includes(`left`),p={position:`fixed`,pointerEvents:r(`count`)>0?void 0:`none`,display:`flex`,flexDirection:`column`,"--gap":`${o}px`,"--first-height":`${s[0]?.height||0}px`,"--viewport-offset-left":c.left,"--viewport-offset-right":c.right,"--viewport-offset-top":c.top,"--viewport-offset-bottom":c.bottom,zIndex:wee},m=`center`;return d&&(m=`flex-end`),f&&(m=`flex-start`),p.alignItems=m,u.includes(`top`)&&(p.top=`max(env(safe-area-inset-top, 0px), ${c.top})`),u.includes(`bottom`)&&(p.bottom=`max(env(safe-area-inset-bottom, 0px), ${c.bottom})`),u.includes(`left`)||(p.insetInlineEnd=`calc(env(safe-area-inset-right, 0px) + ${c.right})`),u.includes(`right`)||(p.insetInlineStart=`calc(env(safe-area-inset-left, 0px) + ${c.left})`),p}function ale(e,t){let{prop:n,context:r,computed:i}=e,a=n(`parent`),o=a.computed(`placement`),{gap:s}=a.prop(`store`).attrs,[c]=o.split(`-`),l=r.get(`mounted`),u=r.get(`remainingTime`),d=i(`height`),f=i(`frontmost`),p=!f,m=!n(`stacked`),h=n(`stacked`),g=n(`type`)===`loading`?2**53-1:u,_=i(`heightIndex`)*s+i(`heightBefore`),v={position:`absolute`,pointerEvents:`auto`,"--opacity":`0`,"--remove-delay":`${n(`removeDelay`)}ms`,"--duration":`${g}ms`,"--initial-height":`${d}px`,"--offset":`${_}px`,"--index":n(`index`),"--z-index":i(`zIndex`),"--lift-amount":`calc(var(--lift) * var(--gap))`,"--y":`100%`,"--x":`0`},y=e=>Object.assign(v,e);return c===`top`?y({top:`0`,"--sign":`-1`,"--y":`-100%`,"--lift":`1`}):c===`bottom`&&y({bottom:`0`,"--sign":`1`,"--y":`100%`,"--lift":`-1`}),l&&(y({"--y":`0`,"--opacity":`1`}),h&&y({"--y":`calc(var(--lift) * var(--offset))`,"--height":`var(--initial-height)`})),t||y({"--opacity":`0`,pointerEvents:`none`}),p&&m&&(y({"--base-scale":`var(--index) * 0.05 + 1`,"--y":`calc(var(--lift-amount) * var(--index))`,"--scale":`calc(-1 * var(--base-scale))`,"--height":`var(--first-height)`}),t||y({"--y":`calc(var(--sign) * 40%)`})),p&&h&&!t&&y({"--y":`calc(var(--lift) * var(--offset) + var(--lift) * -100%)`}),f&&!t&&y({"--y":`calc(var(--lift) * -100%)`}),v}function ole(e,t){let{computed:n}=e,r={position:`absolute`,inset:`0`,scale:`1 2`,pointerEvents:t?`none`:`auto`};return n(`frontmost`)&&!t&&(e=>Object.assign(r,e))({height:`calc(var(--initial-height) + 80%)`}),r}function sle(){return{position:`absolute`,left:`0`,height:`calc(var(--gap) + 2px)`,bottom:`100%`,width:`100%`}}function cle(e,t){let{context:n,prop:r,send:i,refs:a,computed:o}=e;return{getCount(){return n.get(`toasts`).length},getToasts(){return n.get(`toasts`)},getGroupProps(n={}){let{label:s=`Notifications`}=n,{hotkey:c}=r(`store`).attrs,l=c.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),u=o(`placement`),[d,f=`center`]=u.split(`-`);return t.element({...pu.group.attrs,dir:r(`dir`),tabIndex:-1,role:`region`,"aria-label":`${s}, ${u} (${l})`,id:tle(u),"data-placement":u,"data-side":d,"data-align":f,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,style:ile(e,u),onMouseEnter(){a.get(`ignoreMouseTimer`).isActive()||i({type:`REGION.POINTER_ENTER`,placement:u})},onMouseMove(){a.get(`ignoreMouseTimer`).isActive()||i({type:`REGION.POINTER_ENTER`,placement:u})},onMouseLeave(){a.get(`ignoreMouseTimer`).isActive()||i({type:`REGION.POINTER_LEAVE`,placement:u})},onFocus(e){i({type:`REGION.FOCUS`,target:e.relatedTarget})},onBlur(e){a.get(`isFocusWithin`)&&!Qr(e.currentTarget,e.relatedTarget)&&queueMicrotask(()=>i({type:`REGION.BLUR`}))}})},subscribe(e){return r(`store`).subscribe(()=>e(n.get(`toasts`)))}}}var{guards:lle,createMachine:ule}=Pr(),{and:dle}=lle,fle=ule({props({props:e}){return{dir:`ltr`,id:Vn(),...e,store:e.store}},initialState({prop:e}){return e(`store`).attrs.overlap?`overlap`:`stack`},refs(){return{lastFocusedEl:null,isFocusWithin:!1,isPointerWithin:!1,ignoreMouseTimer:Fi.create(),dismissableCleanup:void 0}},context({bindable:e}){return{toasts:e(()=>({defaultValue:[],sync:!0,hash:e=>e.map(e=>e.id).join(`,`)})),heights:e(()=>({defaultValue:[],sync:!0}))}},computed:{count:({context:e})=>e.get(`toasts`).length,overlap:({prop:e})=>e(`store`).attrs.overlap,placement:({prop:e})=>e(`store`).attrs.placement},effects:[`subscribeToStore`,`trackDocumentVisibility`,`trackHotKeyPress`],watch({track:e,context:t,action:n}){e([()=>t.hash(`toasts`)],()=>{queueMicrotask(()=>{n([`collapsedIfEmpty`,`setDismissableBranch`])})})},exit:[`clearDismissableBranch`,`clearLastFocusedEl`,`clearMouseEventTimer`],on:{"DOC.HOTKEY":{actions:[`focusRegionEl`]},"REGION.BLUR":[{guard:dle(`isOverlapping`,`isPointerOut`),target:`overlap`,actions:[`collapseToasts`,`resumeToasts`,`restoreFocusIfPointerOut`]},{guard:`isPointerOut`,target:`stack`,actions:[`resumeToasts`,`restoreFocusIfPointerOut`]},{actions:[`clearFocusWithin`]}],"TOAST.REMOVE":{actions:[`removeToast`,`removeHeight`,`ignoreMouseEventsTemporarily`]},"TOAST.PAUSE":{actions:[`pauseToasts`]}},states:{stack:{on:{"REGION.POINTER_LEAVE":[{guard:`isOverlapping`,target:`overlap`,actions:[`clearPointerWithin`,`resumeToasts`,`collapseToasts`]},{actions:[`clearPointerWithin`,`resumeToasts`]}],"REGION.OVERLAP":{target:`overlap`,actions:[`collapseToasts`]},"REGION.FOCUS":{actions:[`setLastFocusedEl`,`pauseToasts`]},"REGION.POINTER_ENTER":{actions:[`setPointerWithin`,`pauseToasts`]}}},overlap:{on:{"REGION.STACK":{target:`stack`,actions:[`expandToasts`]},"REGION.POINTER_ENTER":{target:`stack`,actions:[`setPointerWithin`,`pauseToasts`,`expandToasts`]},"REGION.FOCUS":{target:`stack`,actions:[`setLastFocusedEl`,`pauseToasts`,`expandToasts`]}}}},implementations:{guards:{isOverlapping:({computed:e})=>e(`overlap`),isPointerOut:({refs:e})=>!e.get(`isPointerWithin`)},effects:{subscribeToStore({context:e,prop:t}){let n=t(`store`);return e.set(`toasts`,n.getVisibleToasts()),n.subscribe(t=>{if(t.dismiss){e.set(`toasts`,e=>e.filter(e=>e.id!==t.id));return}e.set(`toasts`,e=>{let n=e.findIndex(e=>e.id===t.id);return n===-1?[t,...e]:[...e.slice(0,n),{...e[n],...t},...e.slice(n+1)]})})},trackHotKeyPress({prop:e,send:t}){return xi(document,`keydown`,n=>{let{hotkey:r}=e(`store`).attrs;r.every(e=>n[e]||n.code===e)&&t({type:`DOC.HOTKEY`})},{capture:!0})},trackDocumentVisibility({prop:e,send:t,scope:n}){let{pauseOnPageIdle:r}=e(`store`).attrs;if(!r)return;let i=n.getDoc();return xi(i,`visibilitychange`,()=>{t({type:i.visibilityState===`hidden`?`PAUSE_ALL`:`RESUME_ALL`})})}},actions:{setDismissableBranch({refs:e,context:t,computed:n,scope:r}){let i=t.get(`toasts`),a=n(`placement`),o=i.length>0;if(!o){e.get(`dismissableCleanup`)?.();return}if(o&&e.get(`dismissableCleanup`))return;let s=hie(()=>mu(r,a),{defer:!0});e.set(`dismissableCleanup`,s)},clearDismissableBranch({refs:e}){e.get(`dismissableCleanup`)?.()},focusRegionEl({scope:e,computed:t}){queueMicrotask(()=>{mu(e,t(`placement`))?.focus()})},pauseToasts({prop:e}){e(`store`).pause()},resumeToasts({prop:e}){e(`store`).resume()},expandToasts({prop:e}){e(`store`).expand()},collapseToasts({prop:e}){e(`store`).collapse()},removeToast({prop:e,event:t}){e(`store`).remove(t.id)},removeHeight({event:e,context:t}){e?.id!=null&&queueMicrotask(()=>{t.set(`heights`,t=>t.filter(t=>t.id!==e.id))})},collapsedIfEmpty({send:e,computed:t}){!t(`overlap`)||t(`count`)>1||e({type:`REGION.OVERLAP`})},setLastFocusedEl({refs:e,event:t}){e.get(`isFocusWithin`)||!t.target||(e.set(`isFocusWithin`,!0),e.set(`lastFocusedEl`,t.target))},restoreFocusIfPointerOut({refs:e}){!e.get(`lastFocusedEl`)||e.get(`isPointerWithin`)||(e.get(`lastFocusedEl`)?.focus({preventScroll:!0}),e.set(`lastFocusedEl`,null),e.set(`isFocusWithin`,!1))},setPointerWithin({refs:e}){e.set(`isPointerWithin`,!0)},clearPointerWithin({refs:e}){e.set(`isPointerWithin`,!1),e.get(`lastFocusedEl`)&&!e.get(`isFocusWithin`)&&(e.get(`lastFocusedEl`)?.focus({preventScroll:!0}),e.set(`lastFocusedEl`,null))},clearFocusWithin({refs:e}){e.set(`isFocusWithin`,!1)},clearLastFocusedEl({refs:e}){e.get(`lastFocusedEl`)&&(e.get(`lastFocusedEl`)?.focus({preventScroll:!0}),e.set(`lastFocusedEl`,null),e.set(`isFocusWithin`,!1))},ignoreMouseEventsTemporarily({refs:e}){e.get(`ignoreMouseTimer`).request()},clearMouseEventTimer({refs:e}){e.get(`ignoreMouseTimer`).cancel()}}}});function ple(e,t){let{state:n,send:r,prop:i,scope:a,context:o,computed:s}=e,c=i(`translations`),l=n.hasTag(`visible`),u=n.hasTag(`paused`),d=o.get(`mounted`),f=s(`frontmost`),p=i(`parent`).computed(`placement`),m=i(`type`),h=i(`stacked`),g=i(`title`),_=i(`description`),v=i(`action`),[y,b=`center`]=p.split(`-`);return{type:m,title:g,description:_,placement:p,visible:l,paused:u,closable:!!i(`closable`),pause(){r({type:`PAUSE`})},resume(){r({type:`RESUME`})},dismiss(){r({type:`DISMISS`,src:`programmatic`})},getRootProps(){return t.element({...pu.root.attrs,dir:i(`dir`),id:hu(a),"data-state":l?`open`:`closed`,"data-type":m,"data-placement":p,"data-align":b,"data-side":y,"data-mounted":F(d),"data-paused":F(u),"data-first":F(f),"data-sibling":F(!f),"data-stack":F(h),"data-overlap":F(!h),role:`status`,"aria-atomic":`true`,"aria-describedby":_?vu(a):void 0,"aria-labelledby":g?_u(a):void 0,tabIndex:0,style:ale(e,l),onKeyDown(e){e.defaultPrevented||e.key==`Escape`&&(r({type:`DISMISS`,src:`keyboard`}),e.preventDefault())}})},getGhostBeforeProps(){return t.element({"data-ghost":`before`,style:ole(e,l)})},getGhostAfterProps(){return t.element({"data-ghost":`after`,style:sle()})},getTitleProps(){return t.element({...pu.title.attrs,id:_u(a)})},getDescriptionProps(){return t.element({...pu.description.attrs,id:vu(a)})},getActionTriggerProps(){return t.button({...pu.actionTrigger.attrs,type:`button`,onClick(e){e.defaultPrevented||(v?.onClick?.(),r({type:`DISMISS`,src:`user`}))}})},getCloseTriggerProps(){return t.button({id:nle(a),...pu.closeTrigger.attrs,type:`button`,"aria-label":c?.closeTriggerLabel,onClick(e){e.defaultPrevented||r({type:`DISMISS`,src:`user`})}})}}}var{not:mle}=Mr(),hle=Nr({props({props:e}){return sr(e,[`id`,`type`,`parent`,`removeDelay`],`toast`),{closable:!0,...e,translations:{closeTriggerLabel:`Dismiss notification`,...e.translations},duration:bu(e.duration,e.type)}},initialState({prop:e}){return e(`type`)===`loading`||e(`duration`)===1/0?`visible:persist`:`visible`},context({prop:e,bindable:t}){return{remainingTime:t(()=>({defaultValue:bu(e(`duration`),e(`type`))})),createdAt:t(()=>({defaultValue:Date.now()})),mounted:t(()=>({defaultValue:!1})),initialHeight:t(()=>({defaultValue:0}))}},refs(){return{closeTimerStartTime:Date.now(),lastCloseStartTimerStartTime:0}},computed:{zIndex:({prop:e})=>{let t=e(`parent`).context.get(`toasts`),n=t.findIndex(t=>t.id===e(`id`));return t.length-n},height:({prop:e})=>e(`parent`).context.get(`heights`).find(t=>t.id===e(`id`))?.height??0,heightIndex:({prop:e})=>e(`parent`).context.get(`heights`).findIndex(t=>t.id===e(`id`)),frontmost:({prop:e})=>e(`index`)===0,heightBefore:({prop:e})=>{let t=e(`parent`).context.get(`heights`),n=t.findIndex(t=>t.id===e(`id`));return t.reduce((e,t,r)=>r>=n?e:e+t.height,0)},shouldPersist:({prop:e})=>e(`type`)===`loading`||e(`duration`)===1/0},watch({track:e,prop:t,send:n}){e([()=>t(`message`)],()=>{let e=t(`message`);e&&n({type:e,src:`programmatic`})}),e([()=>t(`type`),()=>t(`duration`)],()=>{n({type:`UPDATE`})})},on:{UPDATE:[{guard:`shouldPersist`,target:`visible:persist`,actions:[`resetCloseTimer`]},{target:`visible:updating`,actions:[`resetCloseTimer`]}],MEASURE:{actions:[`measureHeight`]}},entry:[`setMounted`,`measureHeight`,`invokeOnVisible`],effects:[`trackHeight`],states:{"visible:updating":{tags:[`visible`,`updating`],effects:[`waitForNextTick`],on:{SHOW:{target:`visible`}}},"visible:persist":{tags:[`visible`,`paused`],on:{RESUME:{guard:mle(`isLoadingType`),target:`visible`,actions:[`setCloseTimer`]},DISMISS:{target:`dismissing`}}},visible:{tags:[`visible`],effects:[`waitForDuration`],on:{DISMISS:{target:`dismissing`},PAUSE:{target:`visible:persist`,actions:[`syncRemainingTime`]}}},dismissing:{entry:[`invokeOnDismiss`],effects:[`waitForRemoveDelay`],on:{REMOVE:{target:`unmounted`,actions:[`notifyParentToRemove`]}}},unmounted:{entry:[`invokeOnUnmount`]}},implementations:{effects:{waitForRemoveDelay({prop:e,send:t}){return rr(()=>{t({type:`REMOVE`,src:`timer`})},e(`removeDelay`))},waitForDuration({send:e,context:t,computed:n}){if(!n(`shouldPersist`))return rr(()=>{e({type:`DISMISS`,src:`timer`})},t.get(`remainingTime`))},waitForNextTick({send:e}){return rr(()=>{e({type:`SHOW`,src:`timer`})},0)},trackHeight({scope:e,prop:t}){let n;return Ii(()=>{let r=gu(e);if(!r)return;let i=new(e.getWin()).MutationObserver(()=>{let e=r.style.height;r.style.height=`auto`;let n=r.getBoundingClientRect().height;r.style.height=e;let i={id:t(`id`),height:n};xu(t(`parent`),i)});i.observe(r,{childList:!0,subtree:!0,characterData:!0}),n=()=>i.disconnect()}),()=>n?.()}},guards:{isLoadingType:({prop:e})=>e(`type`)===`loading`,shouldPersist:({computed:e})=>e(`shouldPersist`)},actions:{setMounted({context:e}){Ii(()=>{e.set(`mounted`,!0)})},measureHeight({scope:e,prop:t,context:n}){queueMicrotask(()=>{let r=gu(e);if(!r)return;let i=r.style.height;r.style.height=`auto`;let a=r.getBoundingClientRect().height;r.style.height=i,n.set(`initialHeight`,a);let o={id:t(`id`),height:a};xu(t(`parent`),o)})},setCloseTimer({refs:e}){e.set(`closeTimerStartTime`,Date.now())},resetCloseTimer({context:e,refs:t,prop:n}){t.set(`closeTimerStartTime`,Date.now()),e.set(`remainingTime`,bu(n(`duration`),n(`type`)))},syncRemainingTime({context:e,refs:t}){e.set(`remainingTime`,e=>{let n=t.get(`closeTimerStartTime`),r=Date.now()-n;return t.set(`lastCloseStartTimerStartTime`,Date.now()),e-r})},notifyParentToRemove({prop:e}){e(`parent`).send({type:`TOAST.REMOVE`,id:e(`id`)})},invokeOnDismiss({prop:e,event:t}){e(`onStatusChange`)?.({status:`dismissing`,src:t.src})},invokeOnUnmount({prop:e}){e(`onStatusChange`)?.({status:`unmounted`})},invokeOnVisible({prop:e}){e(`onStatusChange`)?.({status:`visible`})}}}});function xu(e,t){let{id:n,height:r}=t;e.context.set(`heights`,e=>e.find(e=>e.id===n)?e.map(e=>e.id===n?{...e,height:r}:e):[{id:n,height:r},...e])}var gle=(e,t)=>({...t,...Qn(e)}),_le={error:[1,2],warning:[3,6],loading:[4,5],success:[5,7],info:[6,8]},Su=`info`,Cu=(e,t)=>{let[n,r]=_le[e??Su];return t?n:r},vle=e=>e.sort((e,t)=>(e.priority??Cu(e.type,!!e.action))-(t.priority??Cu(t.type,!!t.action)));function yle(e={}){let t=gle(e,{placement:`bottom`,overlap:!1,max:24,gap:16,offsets:`1rem`,hotkey:[`altKey`,`KeyT`],removeDelay:200,pauseOnPageIdle:!0}),n=[],r=[],i=new Set,a=[],o=e=>(n.push(e),()=>{let t=n.indexOf(e);n.splice(t,1)}),s=e=>(n.forEach(t=>t(e)),e),c=e=>{if(r.length>=t.max){a.push(e);return}s(e),r.unshift(e)},l=()=>{for(a=vle(a);a.length>0&&r.length<t.max;){let e=a.shift();e&&(s(e),r.unshift(e))}},u=e=>{let n=e.id??`toast:${Vn()}`,a=r.find(e=>e.id===n);if(i.has(n)&&i.delete(n),a)r=r.map(t=>t.id===n?s({...t,...e,id:n}):t);else{let r={id:n,duration:t.duration,removeDelay:t.removeDelay,type:Su,...e,stacked:!t.overlap,gap:t.gap},i=r.priority??Cu(r.type,!!r.action);c({...r,priority:i})}return n},d=e=>(i.add(e),e?(n.forEach(t=>t({id:e,dismiss:!0})),r=r.filter(t=>t.id!==e),l()):(r.forEach(e=>{n.forEach(t=>t({id:e.id,dismiss:!0}))}),r=[],a=[]),e);return{attrs:t,subscribe:o,create:u,update:(e,t)=>u({id:e,...t}),remove:d,dismiss:e=>{r=e==null?r.map(e=>s({...e,message:`DISMISS`})):r.map(t=>t.id===e?s({...t,message:`DISMISS`}):t)},error:e=>u({...e,type:`error`}),success:e=>u({...e,type:`success`}),info:e=>u({...e,type:`info`}),warning:e=>u({...e,type:`warning`}),loading:e=>u({...e,type:`loading`}),getVisibleToasts:()=>r.filter(e=>!i.has(e.id)),getCount:()=>r.length,promise:(e,t,n={})=>{if(!t||!t.loading){ir(`[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified`);return}let r=u({...n,...t.loading,promise:e,type:`loading`}),i=!0,a,o=Ln(e).then(async e=>{if(a=[`resolve`,e],ble(e)&&!e.ok){i=!1;let a=Ln(t.error,`HTTP Error! status: ${e.status}`);u({...n,...a,id:r,type:`error`})}else if(t.success!==void 0){i=!1;let a=Ln(t.success,e);u({...n,...a,id:r,type:a.type??`success`})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let a=Ln(t.error,e);u({...n,...a,id:r,type:`error`})}}).finally(()=>{i&&d(r),t.finally?.()});return{id:r,unwrap:()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t))}},pause:e=>{r=e==null?r.map(e=>s({...e,message:`PAUSE`})):r.map(t=>t.id===e?s({...t,message:`PAUSE`}):t)},resume:e=>{r=e==null?r.map(e=>s({...e,message:`RESUME`})):r.map(t=>t.id===e?s({...t,message:`RESUME`}):t)},isVisible:e=>!i.has(e)&&!!r.find(t=>t.id===e),isDismissed:e=>i.has(e),expand:()=>{r=r.map(e=>s({...e,stacked:!0}))},collapse:()=>{r=r.map(e=>s({...e,stacked:!1}))}}}var ble=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,wu={connect:cle,machine:fle},xle=e=>yle(e),[Sle,Tu]=cr({hookName:`useToastContext`,providerName:`<ToastProvider />`}),Cle=e=>{let t=Tu(),n=I(()=>t().getActionTriggerProps(),e);return A(L.button,n)},wle=e=>{let t=Tu(),n=I(()=>t().getCloseTriggerProps(),e);return A(L.button,n)},Tle=e=>e.children(Tu()),Ele=e=>{let t=Tu(),n=I(()=>t().getDescriptionProps(),e);return A(L.div,n)},Dle=e=>{let t=Tu(),n=I(()=>t().getRootProps(),e);return A(L.div,j(n,{get children(){return[A(L.div,j(()=>t().getGhostBeforeProps())),St(()=>e.children),A(L.div,j(()=>t().getGhostAfterProps()))]}}))},Ole=e=>{let t=Tu(),n=I(()=>t().getTitleProps(),e);return A(L.div,n)},kle=e=>{let[t,n]=ot(e,[`toaster`,`children`]),r=ua(),i=la(),a=na(wu.machine,()=>({store:t.toaster,id:ct(),dir:r()?.dir,getRootNode:i()?.getRootNode})),o=k(()=>wu.connect(a,oa)),s=k(()=>o().getToasts()),c=I(()=>o().getGroupProps(),n);return A(L.div,j(c,{get children(){return A(gr,{get each(){return s()},by:`id`,children:(e,n)=>A(Ale,{value:e,index:n,parent:a,children:e=>t.children(e)})})}}))},Ale=e=>{let t=la(),n=na(hle,k(()=>({...e.value(),parent:e.parent,index:e.index(),getRootNode:t().getRootNode})));return A(Sle,{value:k(()=>ple(n,oa)),get children(){return e.children(e.value)}})},Eu={};da(Eu,{ActionTrigger:()=>Cle,CloseTrigger:()=>wle,Context:()=>Tle,Description:()=>Ele,Root:()=>Dle,Title:()=>Ole});var Du={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},jle=De({size:24,color:`currentColor`,strokeWidth:2,absoluteStrokeWidth:!1,class:``}),Mle=N(`<svg>`),Nle=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Ple=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Fle=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Ou=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Ile=e=>{let t=Fle(e);return t.charAt(0).toUpperCase()+t.slice(1)},ku=e=>{let[t,n]=ot(e,[`color`,`size`,`strokeWidth`,`children`,`class`,`name`,`iconNode`,`absoluteStrokeWidth`]),r=Oe(jle);return(()=>{var e=Mle();return Ft(e,j(Du,{get width(){return t.size??r.size??Du.width},get height(){return t.size??r.size??Du.height},get stroke(){return t.color??r.color??Du.stroke},get"stroke-width"(){return St(()=>(t.absoluteStrokeWidth??r.absoluteStrokeWidth)===!0)()?Number(t.strokeWidth??r.strokeWidth??Du[`stroke-width`])*24/Number(t.size??r.size):Number(t.strokeWidth??r.strokeWidth??Du[`stroke-width`])},get class(){return Ple(`lucide`,`lucide-icon`,r.class,...t.name==null?[]:[`lucide-${Ou(Ile(t.name))}`,`lucide-${Ou(t.name)}`],t.class)},get"aria-hidden"(){return!t.children&&!Nle(n)?`true`:void 0}},n),!0,!0),P(e,A(ut,{get each(){return t.iconNode},children:([e,t])=>A(Qt,j({component:e},t))})),e})()},Lle=[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]],Rle=e=>A(ku,j(e,{iconNode:Lle,name:`check`})),zle=[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]],Au=e=>A(ku,j(e,{iconNode:zle,name:`chevron-down`})),Ble=[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]],Vle=e=>A(ku,j(e,{iconNode:Ble,name:`chevron-up`})),Hle=[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]],Ule=e=>A(ku,j(e,{iconNode:Hle,name:`circle-check-big`})),Wle=[[`path`,{d:`M10.1 2.182a10 10 0 0 1 3.8 0`,key:`5ilxe3`}],[`path`,{d:`M13.9 21.818a10 10 0 0 1-3.8 0`,key:`11zvb9`}],[`path`,{d:`M17.609 3.721a10 10 0 0 1 2.69 2.7`,key:`1iw5b2`}],[`path`,{d:`M2.182 13.9a10 10 0 0 1 0-3.8`,key:`c0bmvh`}],[`path`,{d:`M20.279 17.609a10 10 0 0 1-2.7 2.69`,key:`1ruxm7`}],[`path`,{d:`M21.818 10.1a10 10 0 0 1 0 3.8`,key:`qkgqxc`}],[`path`,{d:`M3.721 6.391a10 10 0 0 1 2.7-2.69`,key:`1mcia2`}],[`path`,{d:`M6.391 20.279a10 10 0 0 1-2.69-2.7`,key:`1fvljs`}]],Gle=e=>A(ku,j(e,{iconNode:Wle,name:`circle-dashed`})),Kle=[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]],qle=e=>A(ku,j(e,{iconNode:Kle,name:`circle`})),Jle=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 3v18`,key:`108xh3`}]],Yle=e=>A(ku,j(e,{iconNode:Jle,name:`columns-2`})),Xle=[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`22`,x2:`18`,y1:`12`,y2:`12`,key:`l9bcsi`}],[`line`,{x1:`6`,x2:`2`,y1:`12`,y2:`12`,key:`13hhkx`}],[`line`,{x1:`12`,x2:`12`,y1:`6`,y2:`2`,key:`10w3f3`}],[`line`,{x1:`12`,x2:`12`,y1:`22`,y2:`18`,key:`15g9kq`}]],ju=e=>A(ku,j(e,{iconNode:Xle,name:`crosshair`})),Zle=[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}],[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}]],Qle=e=>A(ku,j(e,{iconNode:Zle,name:`file-diff`})),$le=[[`path`,{d:`M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34`,key:`o6klzx`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z`,key:`zhnas1`}]],eue=e=>A(ku,j(e,{iconNode:$le,name:`file-pen`})),tue=[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]],nue=e=>A(ku,j(e,{iconNode:tue,name:`file-text`})),rue=[[`path`,{d:`M12 22v-6`,key:`6o8u61`}],[`path`,{d:`M12 8V2`,key:`1wkif3`}],[`path`,{d:`M4 12H2`,key:`rhcxmi`}],[`path`,{d:`M10 12H8`,key:`s88cx1`}],[`path`,{d:`M16 12h-2`,key:`10asgb`}],[`path`,{d:`M22 12h-2`,key:`14jgyd`}],[`path`,{d:`m15 19-3-3-3 3`,key:`e37ymu`}],[`path`,{d:`m15 5-3 3-3-3`,key:`19d6lf`}]],Mu=e=>A(ku,j(e,{iconNode:rue,name:`fold-vertical`})),iue=[[`path`,{d:`M10 8h.01`,key:`1r9ogq`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M14 8h.01`,key:`1primd`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}],[`path`,{d:`M18 8h.01`,key:`emo2bl`}],[`path`,{d:`M6 8h.01`,key:`x9i8wu`}],[`path`,{d:`M7 16h10`,key:`wp8him`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}],[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}]],aue=e=>A(ku,j(e,{iconNode:iue,name:`keyboard`})),oue=[[`rect`,{width:`18`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`f1a2em`}],[`rect`,{width:`9`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`jqznyg`}],[`rect`,{width:`5`,height:`7`,x:`16`,y:`14`,rx:`1`,key:`q5h2i8`}]],sue=e=>A(ku,j(e,{iconNode:oue,name:`layout-template`})),cue=[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`rect`,{x:`3`,y:`4`,width:`6`,height:`6`,rx:`1`,key:`cif1o7`}]],lue=e=>A(ku,j(e,{iconNode:cue,name:`list-todo`})),uue=[[`path`,{d:`M14 4.1 12 6`,key:`ita8i4`}],[`path`,{d:`m5.1 8-2.9-.8`,key:`1go3kf`}],[`path`,{d:`m6 12-1.9 2`,key:`mnht97`}],[`path`,{d:`M7.2 2.2 8 5.1`,key:`1cfko1`}],[`path`,{d:`M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z`,key:`s0h3yz`}]],due=e=>A(ku,j(e,{iconNode:uue,name:`mouse-pointer-click`})),fue=[[`path`,{d:`M13 5H19V11`,key:`1n1gyv`}],[`path`,{d:`M19 5L5 19`,key:`72u4yj`}]],pue=e=>A(ku,j(e,{iconNode:fue,name:`move-up-right`})),mue=[[`path`,{d:`M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4`,key:`daa4of`}],[`rect`,{width:`10`,height:`7`,x:`12`,y:`13`,rx:`2`,key:`1nb8gs`}]],Nu=e=>A(ku,j(e,{iconNode:mue,name:`picture-in-picture-2`})),hue=[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]],gue=e=>A(ku,j(e,{iconNode:hue,name:`plus`})),_ue=[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`m16 16-1.9-1.9`,key:`1dq9hf`}]],vue=e=>A(ku,j(e,{iconNode:_ue,name:`scan-search`})),yue=[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]],bue=e=>A(ku,j(e,{iconNode:yue,name:`search`})),xue=[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],Pu=e=>A(ku,j(e,{iconNode:xue,name:`sparkles`})),Sue=[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`,key:`ohrbg2`}]],Fu=e=>A(ku,j(e,{iconNode:Sue,name:`square-pen`})),Cue=[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]],wue=e=>A(ku,j(e,{iconNode:Cue,name:`square-terminal`})),Tue=[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]],Eue=e=>A(ku,j(e,{iconNode:Tue,name:`target`})),Due=[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]],Oue=e=>A(ku,j(e,{iconNode:Due,name:`terminal`})),kue=[[`path`,{d:`m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72`,key:`ul74o6`}],[`path`,{d:`m14 7 3 3`,key:`1r5n42`}],[`path`,{d:`M5 6v4`,key:`ilb8ba`}],[`path`,{d:`M19 14v4`,key:`blhpug`}],[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M7 8H3`,key:`zfb6yr`}],[`path`,{d:`M21 16h-4`,key:`1cnmox`}],[`path`,{d:`M11 3H9`,key:`1obp7u`}]],Aue=e=>A(ku,j(e,{iconNode:kue,name:`wand-sparkles`})),jue=[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]],Mue=e=>A(ku,j(e,{iconNode:jue,name:`wrench`})),Nue=[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]],Iu=e=>A(ku,j(e,{iconNode:Nue,name:`x`})),Lu=fa(`avatar`).parts(`root`,`image`,`fallback`).build(),Ru=e=>e.ids?.root??`avatar:${e.id}`,zu=e=>e.ids?.image??`avatar:${e.id}:image`,Pue=e=>e.ids?.fallback??`avatar:${e.id}:fallback`,Fue=e=>e.getById(Ru(e)),Bu=e=>e.getById(zu(e));function Iue(e,t){let{state:n,send:r,prop:i,scope:a}=e,o=n.matches(`loaded`);return{loaded:o,setSrc(e){Bu(a)?.setAttribute(`src`,e)},setLoaded(){r({type:`img.loaded`,src:`api`})},setError(){r({type:`img.error`,src:`api`})},getRootProps(){return t.element({...Lu.root.attrs,dir:i(`dir`),id:Ru(a)})},getImageProps(){return t.img({...Lu.image.attrs,hidden:!o,dir:i(`dir`),id:zu(a),"data-state":o?`visible`:`hidden`,onLoad(){r({type:`img.loaded`,src:`element`})},onError(){r({type:`img.error`,src:`element`})}})},getFallbackProps(){return t.element({...Lu.fallback.attrs,dir:i(`dir`),id:Pue(a),hidden:o,"data-state":o?`hidden`:`visible`})}}}var Lue=Nr({initialState(){return`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}){let n=Bu(t);n?.complete&&e({type:Rue(n)?`img.loaded`:`img.error`,src:`ssr`})}},effects:{trackImageRemoval({send:e,scope:t}){return Tte(Fue(t),{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}){return Ri(Bu(t),{attributes:[`src`,`srcset`],callback(){e({type:`src.change`})}})}}}});function Rue(e){return e.complete&&e.naturalWidth!==0&&e.naturalHeight!==0}var[Vu,Hu]=cr({hookName:`useAvatarContext`,providerName:`<AvatarProvider />`}),zue=e=>e.children(Hu()),Bue=e=>{let t=Hu(),n=I(()=>t().getFallbackProps(),e);return A(L.span,n)},Vue=e=>{let t=Hu(),n=I(()=>t().getImageProps(),e);return A(L.img,n)},Hue=e=>{let t=ua(),n=la(),r=ct(),i=na(Lue,k(()=>({id:r,dir:t().dir,getRootNode:n().getRootNode,...pr(e)})));return k(()=>Iue(i,oa))},Uue=e=>{let[t,n]=$t()(e,[`id`,`ids`,`onStatusChange`]),r=Hue(t),i=I(()=>r().getRootProps(),n);return A(Vu,{value:r,get children(){return A(L.div,i)}})},Wue=e=>{let[{value:t},n]=$t()(e,[`value`]),r=I(()=>t().getRootProps(),n);return A(Vu,{value:t,get children(){return A(L.div,r)}})},Uu={};da(Uu,{Context:()=>zue,Fallback:()=>Bue,Image:()=>Vue,Root:()=>Uue,RootProvider:()=>Wue});var Wu=fa(`tabs`).parts(`root`,`list`,`trigger`,`content`,`indicator`).build(),Gue=e=>e.ids?.root??`tabs:${e.id}`,Gu=e=>e.ids?.list??`tabs:${e.id}:list`,Ku=(e,t)=>e.ids?.content?.(t)??`tabs:${e.id}:content-${t}`,qu=(e,t)=>e.ids?.trigger?.(t)??`tabs:${e.id}:trigger-${t}`,Ju=e=>e.ids?.indicator??`tabs:${e.id}:indicator`,Yu=e=>e.getById(Gu(e)),Kue=(e,t)=>e.getById(Ku(e,t)),Xu=(e,t)=>t==null?null:e.getById(qu(e,t)),Zu=e=>e.getById(Ju(e)),Qu=e=>{let t=`[role=tab][data-ownedby='${CSS.escape(Gu(e))}']:not([disabled])`;return Gi(Yu(e),t)},que=e=>cn(Qu(e)),Jue=e=>ln(Qu(e)),Yue=(e,t)=>Lte(Qu(e),qu(e,t.value),t.loopFocus),Xue=(e,t)=>Rte(Qu(e),qu(e,t.value),t.loopFocus),$u=e=>({x:e?.offsetLeft??0,y:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0}),Zue=(e,t)=>$u(Ite(Qu(e),qu(e,t)));function Que(e,t){let{state:n,send:r,context:i,prop:a,scope:o}=e,s=a(`translations`),c=n.matches(`focused`),l=a(`orientation`)===`vertical`,u=a(`orientation`)===`horizontal`,d=a(`composite`);function f(e){return{selected:i.get(`value`)===e.value,focused:i.get(`focusedValue`)===e.value,disabled:!!e.disabled}}return{value:i.get(`value`),focusedValue:i.get(`focusedValue`),setValue(e){r({type:`SET_VALUE`,value:e})},clearValue(){r({type:`CLEAR_VALUE`})},setIndicatorRect(e){r({type:`SET_INDICATOR_RECT`,id:qu(o,e)})},syncTabIndex(){r({type:`SYNC_TAB_INDEX`})},selectNext(e){r({type:`TAB_FOCUS`,value:e,src:`selectNext`}),r({type:`ARROW_NEXT`,src:`selectNext`})},selectPrev(e){r({type:`TAB_FOCUS`,value:e,src:`selectPrev`}),r({type:`ARROW_PREV`,src:`selectPrev`})},focus(){let e=i.get(`value`);e&&Xu(o,e)?.focus()},getRootProps(){return t.element({...Wu.root.attrs,id:Gue(o),"data-orientation":a(`orientation`),"data-focus":F(c),dir:a(`dir`)})},getListProps(){return t.element({...Wu.list.attrs,id:Gu(o),role:`tablist`,dir:a(`dir`),"data-focus":F(c),"aria-orientation":a(`orientation`),"data-orientation":a(`orientation`),"aria-label":s?.listLabel,onKeyDown(e){if(e.defaultPrevented||hi(e)||!Qr(e.currentTarget,fi(e)))return;let t={ArrowDown(){u||r({type:`ARROW_NEXT`,key:`ArrowDown`})},ArrowUp(){u||r({type:`ARROW_PREV`,key:`ArrowUp`})},ArrowLeft(){l||r({type:`ARROW_PREV`,key:`ArrowLeft`})},ArrowRight(){l||r({type:`ARROW_NEXT`,key:`ArrowRight`})},Home(){r({type:`HOME`})},End(){r({type:`END`})}}[yi(e,{dir:a(`dir`),orientation:a(`orientation`)})];if(t){e.preventDefault(),t(e);return}}})},getTriggerState:f,getTriggerProps(e){let{value:n,disabled:s}=e,c=f(e);return t.button({...Wu.trigger.attrs,role:`tab`,type:`button`,disabled:s,dir:a(`dir`),"data-orientation":a(`orientation`),"data-disabled":F(s),"aria-disabled":s,"data-value":n,"aria-selected":c.selected,"data-selected":F(c.selected),"data-focus":F(c.focused),"aria-controls":c.selected?Ku(o,n):void 0,"data-ownedby":Gu(o),"data-ssr":F(i.get(`ssr`)),id:qu(o,n),tabIndex:c.selected&&d?0:-1,onFocus(){r({type:`TAB_FOCUS`,value:n})},onBlur(e){e.relatedTarget?.getAttribute(`role`)!==`tab`&&r({type:`TAB_BLUR`})},onClick(e){e.defaultPrevented||pi(e)||s||(di()&&e.currentTarget.focus(),r({type:`TAB_CLICK`,value:n}))}})},getContentProps(e){let{value:n}=e,r=i.get(`value`)===n;return t.element({...Wu.content.attrs,dir:a(`dir`),id:Ku(o,n),tabIndex:d?0:-1,"aria-labelledby":qu(o,n),role:`tabpanel`,"data-ownedby":Gu(o),"data-selected":F(r),"data-orientation":a(`orientation`),hidden:!r})},getIndicatorProps(){let e=i.get(`indicatorRect`),n=i.get(`animateIndicator`);return t.element({id:Ju(o),...Wu.indicator.attrs,dir:a(`dir`),"data-orientation":a(`orientation`),hidden:$ue(e),onTransitionEnd(e){fi(e)===e.currentTarget&&r({type:`INDICATOR_TRANSITION_END`})},style:{"--transition-property":`left, right, top, bottom, width, height`,"--left":Zn(e?.x),"--top":Zn(e?.y),"--width":Zn(e?.width),"--height":Zn(e?.height),position:`absolute`,willChange:n?`var(--transition-property)`:`auto`,transitionProperty:n?`var(--transition-property)`:`none`,transitionDuration:n?`var(--transition-duration, 150ms)`:`0ms`,transitionTimingFunction:`var(--transition-timing-function)`,[u?`left`:`top`]:u?`var(--left)`:`var(--top)`}})}}}var $ue=e=>e==null||e.width===0&&e.height===0&&e.x===0&&e.y===0,{createMachine:ede}=Pr(),tde=ede({props({props:e}){return{dir:`ltr`,orientation:`horizontal`,activationMode:`automatic`,loopFocus:!0,composite:!0,navigate(e){zi(e.node)},defaultValue:null,...e}},initialState(){return`idle`},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e(`defaultValue`),value:e(`value`),onChange(t){e(`onValueChange`)?.({value:t})}})),focusedValue:t(()=>({defaultValue:e(`value`)||e(`defaultValue`),sync:!0,onChange(t){e(`onFocusChange`)?.({focusedValue:t})}})),ssr:t(()=>({defaultValue:!0})),indicatorRect:t(()=>({defaultValue:null})),animateIndicator:t(()=>({defaultValue:!1}))}},refs(){return{indicatorCleanup:null,prevValue:null}},watch({context:e,prop:t,track:n,action:r}){n([()=>e.get(`value`)],()=>{r([`syncIndicatorAnimation`,`syncIndicatorRect`,`syncTabIndex`,`navigateIfNeeded`])}),n([()=>t(`dir`),()=>t(`orientation`)],()=>{r([`syncIndicatorRect`])})},on:{SET_VALUE:{actions:[`setValue`]},CLEAR_VALUE:{actions:[`clearValue`]},SET_INDICATOR_RECT:{actions:[`setIndicatorRect`]},SYNC_TAB_INDEX:{actions:[`syncTabIndex`]},INDICATOR_TRANSITION_END:{actions:[`clearIndicatorAnimation`]}},entry:[`syncPrevValue`,`syncIndicatorRect`,`syncTabIndex`,`syncSsr`],exit:[`cleanupObserver`],states:{idle:{on:{TAB_FOCUS:{target:`focused`,actions:[`setFocusedValue`]},TAB_CLICK:{target:`focused`,actions:[`setFocusedValue`,`setValue`]}}},focused:{on:{TAB_CLICK:{actions:[`setFocusedValue`,`setValue`]},ARROW_PREV:[{guard:`selectOnFocus`,actions:[`focusPrevTab`,`selectFocusedTab`]},{actions:[`focusPrevTab`]}],ARROW_NEXT:[{guard:`selectOnFocus`,actions:[`focusNextTab`,`selectFocusedTab`]},{actions:[`focusNextTab`]}],HOME:[{guard:`selectOnFocus`,actions:[`focusFirstTab`,`selectFocusedTab`]},{actions:[`focusFirstTab`]}],END:[{guard:`selectOnFocus`,actions:[`focusLastTab`,`selectFocusedTab`]},{actions:[`focusLastTab`]}],TAB_FOCUS:{actions:[`setFocusedValue`]},TAB_BLUR:{target:`idle`,actions:[`clearFocusedValue`]}}}},implementations:{guards:{selectOnFocus:({prop:e})=>e(`activationMode`)===`automatic`},actions:{selectFocusedTab({context:e,prop:t}){Ii(()=>{let n=e.get(`focusedValue`);if(!n)return;let r=t(`deselectable`)&&e.get(`value`)===n?null:n;e.set(`value`,r)})},setFocusedValue({context:e,event:t,flush:n}){t.value!=null&&n(()=>{e.set(`focusedValue`,t.value)})},clearFocusedValue({context:e}){e.set(`focusedValue`,null)},setValue({context:e,event:t,prop:n}){let r=n(`deselectable`)&&e.get(`value`)===e.get(`focusedValue`);e.set(`value`,r?null:t.value)},clearValue({context:e}){e.set(`value`,null)},focusFirstTab({scope:e}){Ii(()=>{que(e)?.focus()})},focusLastTab({scope:e}){Ii(()=>{Jue(e)?.focus()})},focusNextTab({context:e,prop:t,scope:n,event:r}){let i=r.value??e.get(`focusedValue`);if(!i)return;let a=Yue(n,{value:i,loopFocus:t(`loopFocus`)});Ii(()=>{t(`composite`)?a?.focus():a?.dataset.value!=null&&e.set(`focusedValue`,a.dataset.value)})},focusPrevTab({context:e,prop:t,scope:n,event:r}){let i=r.value??e.get(`focusedValue`);if(!i)return;let a=Xue(n,{value:i,loopFocus:t(`loopFocus`)});Ii(()=>{t(`composite`)?a?.focus():a?.dataset.value!=null&&e.set(`focusedValue`,a.dataset.value)})},syncTabIndex({context:e,scope:t}){Ii(()=>{let n=e.get(`value`);if(!n)return;let r=Kue(t,n);r&&(Oi(r).length>0?r.removeAttribute(`tabindex`):r.setAttribute(`tabindex`,`0`))})},cleanupObserver({refs:e}){let t=e.get(`indicatorCleanup`);t&&t()},setIndicatorRect({context:e,event:t,scope:n}){let r=t.id??e.get(`value`);Zu(n)&&r&&Xu(n,r)&&e.set(`indicatorRect`,Zue(n,r))},syncSsr({context:e}){e.set(`ssr`,!1)},syncPrevValue({context:e,refs:t}){t.set(`prevValue`,e.get(`value`))},syncIndicatorAnimation({context:e,refs:t}){let n=t.get(`prevValue`),r=e.get(`value`),i=n!=null&&r!=null&&n!==r;e.set(`animateIndicator`,i),t.set(`prevValue`,r)},clearIndicatorAnimation({context:e}){e.set(`animateIndicator`,!1)},syncIndicatorRect({context:e,refs:t,scope:n}){let r=t.get(`indicatorCleanup`);if(r&&r(),!Zu(n))return;let i=()=>{let t=Xu(n,e.get(`value`));if(!t)return;let r=$u(t);e.set(`indicatorRect`,e=>bn(e,r)?e:r)};i();let a=Qu(n),o=Yu(n),s=Bn(...a.map(e=>Yi.observe(e,i)),...o?[Yi.observe(o,i)]:[]);t.set(`indicatorCleanup`,s)},navigateIfNeeded({context:e,prop:t,scope:n}){let r=e.get(`value`);if(!r)return;let i=Xu(n,r);Yr(i)&&t(`navigate`)?.({value:r,node:i,href:i.href})}}}}),[ed,td]=cr({hookName:`useTabsContext`,providerName:`<TabsProvider />`}),nde=e=>{let[t,n]=$t()(e,[`value`]),r=td(),i=Ia(I(ur(),()=>({present:r().value===t.value,immediate:!0}))),a=I(()=>r().getContentProps(t),()=>i().presenceProps,n);return A(za,{value:i,get children(){return A(M,{get when(){return!i().unmounted},get children(){return A(L.div,j(a,{ref(t){var n=La(i().ref,e.ref);typeof n==`function`&&n(t)}}))}})}})},rde=e=>{let t=td(),n=I(()=>t().getIndicatorProps(),e);return A(L.div,n)},ide=e=>{let t=td(),n=I(()=>t().getListProps(),e);return A(L.div,n)},ade=e=>{let[t,n]=$t()(e,[`disabled`,`value`]),r=td(),i=I(()=>r().getTriggerProps(t),n);return A(L.button,i)},ode=e=>e.children(td()),sde=e=>{let t=ct(),n=ua(),r=la(),i=na(tde,k(()=>({id:t,dir:n().dir,getRootNode:r().getRootNode,...pr(e)})));return k(()=>Que(i,oa))},cde=e=>{let[t,n]=dr(e),[r,i]=$t()(n,[`activationMode`,`composite`,`defaultValue`,`deselectable`,`id`,`ids`,`loopFocus`,`navigate`,`onFocusChange`,`onValueChange`,`orientation`,`translations`,`value`]),a=sde(r),o=I(()=>a().getRootProps(),i);return A(ed,{value:a,get children(){return A(lr,{value:t,get children(){return A(L.div,o)}})}})},lde=e=>{let[t,n]=dr(e),[{value:r},i]=$t()(n,[`value`]),a=I(()=>r().getRootProps(),i);return A(ed,{value:r,get children(){return A(lr,{value:t,get children(){return A(L.div,a)}})}})},nd={};da(nd,{Content:()=>nde,Context:()=>ode,Indicator:()=>rde,List:()=>ide,Root:()=>cde,RootProvider:()=>lde,Trigger:()=>ade});var rd=fa(`switch`).parts(`root`,`label`,`control`,`thumb`).build(),id=e=>e.ids?.root??`switch:${e.id}`,ad=e=>e.ids?.label??`switch:${e.id}:label`,ude=e=>e.ids?.thumb??`switch:${e.id}:thumb`,dde=e=>e.ids?.control??`switch:${e.id}:control`,od=e=>e.ids?.hiddenInput??`switch:${e.id}:input`,fde=e=>e.getById(id(e)),sd=e=>e.getById(od(e));function pde(e,t){let{context:n,send:r,prop:i,scope:a}=e,o=!!i(`disabled`),s=!!i(`readOnly`),c=!!i(`required`),l=!!n.get(`checked`),u=!o&&n.get(`focused`),d=!o&&n.get(`focusVisible`),f={"data-active":F(!o&&n.get(`active`)),"data-focus":F(u),"data-focus-visible":F(d),"data-readonly":F(s),"data-hover":F(n.get(`hovered`)),"data-disabled":F(o),"data-state":l?`checked`:`unchecked`,"data-invalid":F(i(`invalid`)),"data-required":F(c)};return{checked:l,disabled:o,focused:u,setChecked(e){r({type:`CHECKED.SET`,checked:e,isTrusted:!1})},toggleChecked(){r({type:`CHECKED.TOGGLE`,checked:l,isTrusted:!1})},getRootProps(){return t.label({...rd.root.attrs,...f,dir:i(`dir`),id:id(a),htmlFor:od(a),onPointerMove(){o||r({type:`CONTEXT.SET`,context:{hovered:!0}})},onPointerLeave(){o||r({type:`CONTEXT.SET`,context:{hovered:!1}})},onClick(e){o||(fi(e)===sd(a)&&e.stopPropagation(),di()&&sd(a)?.focus())}})},getLabelProps(){return t.element({...rd.label.attrs,...f,dir:i(`dir`),id:ad(a)})},getThumbProps(){return t.element({...rd.thumb.attrs,...f,dir:i(`dir`),id:ude(a),"aria-hidden":!0})},getControlProps(){return t.element({...rd.control.attrs,...f,dir:i(`dir`),id:dde(a),"aria-hidden":!0})},getHiddenInputProps(){return t.input({id:od(a),type:`checkbox`,required:i(`required`),defaultChecked:l,disabled:o,"aria-labelledby":ad(a),"aria-invalid":i(`invalid`),name:i(`name`),form:i(`form`),value:i(`value`),style:Yte,onFocus(){r({type:`CONTEXT.SET`,context:{focused:!0,focusVisible:Na()}})},onBlur(){r({type:`CONTEXT.SET`,context:{focused:!1,focusVisible:!1}})},onClick(e){if(s){e.preventDefault();return}let t=e.currentTarget.checked;r({type:`CHECKED.SET`,checked:t,isTrusted:!0})}})}}}var{not:cd}=Mr(),mde=Nr({props({props:e}){return{defaultChecked:!1,label:`switch`,value:`on`,...e}},initialState(){return`ready`},context({prop:e,bindable:t}){return{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:n,action:r}){e([()=>t(`disabled`)],()=>{r([`removeFocusIfNeeded`])}),e([()=>n.get(`checked`)],()=>{r([`syncInputElement`])})},effects:[`trackFormControlState`,`trackPressEvent`,`trackFocusVisible`],on:{"CHECKED.TOGGLE":[{guard:cd(`isTrusted`),actions:[`toggleChecked`,`dispatchChangeEvent`]},{actions:[`toggleChecked`]}],"CHECKED.SET":[{guard:cd(`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:n}){if(!e(`isDisabled`))return Nte({pointerNode:fde(t),keyboardNode:sd(t),isValidKey:e=>e.key===` `,onPress:()=>n.set(`active`,!1),onPressStart:()=>n.set(`active`,!0),onPressEnd:()=>n.set(`active`,!1)})},trackFocusVisible({computed:e,scope:t}){if(!e(`isDisabled`))return Pa({root:t.getRootNode()})},trackFormControlState({context:e,send:t,scope:n}){return dte(sd(n),{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 n in t.context)e.set(n,t.context[n])},syncInputElement({context:e,scope:t}){let n=sd(t);n&&Si(n,!!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}){queueMicrotask(()=>{ste(sd(t),{checked:e.get(`checked`)})})}}}}),[ld,ud]=cr({hookName:`useSwitchContext`,providerName:`<SwitchProvider />`}),hde=e=>e.children(ud()),gde=e=>{let t=ud(),n=I(()=>t().getControlProps(),e);return A(L.span,n)},_de=e=>{let t=ud(),n=I(()=>t().getHiddenInputProps(),e),r=qs();return A(L.input,j({get"aria-describedby"(){return r?.().ariaDescribedby}},n))},vde=e=>{let t=ud(),n=I(()=>t().getLabelProps(),e);return A(L.span,n)},yde=e=>{let t=ct(),n=ua(),r=la(),i=qs(),a=na(mde,k(()=>({id:t,ids:{label:i?.().ids.label,hiddenInput:i?.().ids.control},disabled:i?.().disabled,readOnly:i?.().readOnly,invalid:i?.().invalid,required:i?.().required,dir:n().dir,getRootNode:r().getRootNode,...pr(e)})));return k(()=>pde(a,oa))},bde=e=>{let[t,n]=$t()(e,[`checked`,`defaultChecked`,`disabled`,`form`,`id`,`ids`,`invalid`,`label`,`name`,`onCheckedChange`,`readOnly`,`required`,`value`]),r=yde(t),i=I(()=>r().getRootProps(),n);return A(ld,{value:r,get children(){return A(L.label,i)}})},xde=e=>{let[{value:t},n]=$t()(e,[`value`]),r=I(()=>t().getRootProps(),n);return A(ld,{value:t,get children(){return A(L.label,r)}})},Sde=e=>{let t=ud(),n=I(()=>t().getThumbProps(),e);return A(L.span,n)},dd={};da(dd,{Context:()=>hde,Control:()=>gde,HiddenInput:()=>_de,Label:()=>vde,Root:()=>bde,RootProvider:()=>xde,Thumb:()=>Sde});var fd=fa(`swap`,[`root`,`indicator`]),pd=fd.build(),md={};da(md,{Indicator:()=>wde,Root:()=>Ede,RootProvider:()=>Dde,swapAnatomy:()=>fd});var[hd,Cde]=cr({hookName:`useSwapContext`,providerName:`<SwapProvider />`}),wde=e=>{let[t,n]=ot(e,[`type`,`ref`]),r=Cde(),i=()=>(t.type===`on`?r().onPresence:r().offPresence)(),a=I(()=>r().getIndicatorProps({type:t.type}),n);return A(M,{get when(){return!i().unmounted},get children(){return A(L.span,j(a,{ref(e){var n=La(i().ref,t.ref);typeof n==`function`&&n(e)}}))}})},Tde=(e={})=>{let t=k(()=>pr(e)),n=Ia(I(()=>({present:t().swap??!1,lazyMount:t().lazyMount,unmountOnExit:t().unmountOnExit,skipAnimationOnMount:!0}))),r=Ia(I(()=>({present:!(t().swap??!1),lazyMount:t().lazyMount,unmountOnExit:t().unmountOnExit,skipAnimationOnMount:!0})));return k(()=>{let e=t().swap??!1;return{swap:e,onPresence:n,offPresence:r,getRootProps(){return{...pd.root.attrs,"data-swap":e?`on`:`off`,style:{display:`inline-grid`}}},getIndicatorProps({type:e}){let t=e===`on`?n():r();return{...pd.indicator.attrs,...t.presenceProps,"data-type":e,style:{"grid-area":`1 / 1`,display:`inline-flex`}}}}})},Ede=e=>{let[t,n]=ot(e,[`swap`,`lazyMount`,`unmountOnExit`]),r=Tde(()=>t),i=I(()=>r().getRootProps(),n);return A(hd,{value:r,get children(){return A(L.span,i)}})},Dde=e=>{let[t,n]=ot(e,[`value`]),r=I(()=>t.value().getRootProps(),n);return A(hd,{get value(){return t.value},get children(){return A(L.span,r)}})},Ode=`overflow-hidden data-[state=open]:anim-collapse-open data-[state=closed]:anim-collapse-closed`;function kde(e){let[t,n]=ot(e,[`class`]);return A(ya.Content,j(n,{get class(){return`${Ode} ${t.class??``}`}}))}var gd=Object.assign({},ya,{Content:kde}),Ade=`hidden data-[state=open]:block data-[state=open]:anim-combo z-[2147483647] w-60 rounded-pw-md overflow-hidden bg-pw-panel text-pw-text border border-pw-line shadow-pw-lg text-[0.75rem] focus-visible:outline-none`;function jde(e){return A(Ds.Root,{get openDelay(){return e.openDelay??0},get closeDelay(){return e.closeDelay??120},get positioning(){return{strategy:`fixed`,placement:`bottom-start`,gutter:e.sideOffset??6}},get children(){return[A(Ds.Trigger,{get class(){return e.triggerClass},get"aria-label"(){return e.label},get children(){return e.trigger}}),A(Ds.Positioner,{get children(){return A(Ds.Content,{get class(){return`${Ade} ${e.class??``}`},get children(){return e.children}})}})]}})}var Mde=`flex p-0.5 opacity-0 pointer-events-none [transition:opacity_150ms] [&[data-hover]]:opacity-100 [&[data-scrolling]]:opacity-100 [&[data-hover]]:pointer-events-auto [&[data-scrolling]]:pointer-events-auto [&[data-orientation=vertical]]:w-2 [&[data-orientation=horizontal]]:h-2 [&[data-orientation=vertical]:not([data-overflow-y])]:hidden [&[data-orientation=horizontal]:not([data-overflow-x])]:hidden`,Nde=`w-full rounded-pw-pill bg-pw-accent-link [&[data-orientation=horizontal]]:w-auto [&[data-orientation=horizontal]]:h-full`;function Pde(e){let[t,n]=ot(e,[`class`]);return A(Hs.Scrollbar,j(n,{get class(){return`${Mde} ${t.class??``}`}}))}function Fde(e){let[t,n]=ot(e,[`class`]);return A(Hs.Thumb,j(n,{get class(){return`${Nde} ${t.class??``}`}}))}Object.assign({},Hs,{Scrollbar:Pde,Thumb:Fde});var Ide=`fixed inset-0 z-[2147483646] bg-[rgba(0,0,0,0.55)] [backdrop-filter:blur(0.125rem)]`,Lde=`fixed inset-0 z-[2147483647] flex items-center justify-center p-4`,Rde=`w-90 max-w-[calc(100vw-2rem)] rounded-pw-lg bg-pw-panel text-pw-text border border-pw-line shadow-pw-lg p-4 focus-visible:outline-none data-[state=open]:anim-rise`;function _d(e){return A(Xc.Root,{get open(){return e.open},onOpenChange:t=>e.onOpenChange?.(t.open),role:`alertdialog`,modal:!0,get closeOnEscape(){return e.dismissable??!1},get closeOnInteractOutside(){return e.dismissable??!1},get children(){return[A(Xc.Backdrop,{class:Ide}),A(Xc.Positioner,{class:Lde,get children(){return A(Xc.Content,{class:Rde,get"aria-label"(){return e.label},get children(){return e.children}})}})]}})}var zde=N(`<textarea>`),Bde=`w-full resize-none font-pw text-[0.8125rem] rounded-pw-md bg-pw-fill text-pw-text [border:1px_solid_var(--pw-line)] py-2 px-3 focus-ring placeholder:text-pw-text-3`,Vde=`w-full resize-none [background:transparent] [border:none] [font:inherit] focus-visible:outline-none`;function vd(e,t){let n=getComputedStyle(e),r=Number.parseFloat(n.lineHeight)||20,i=Number.parseFloat(n.paddingTop)+Number.parseFloat(n.paddingBottom)+Number.parseFloat(n.borderTopWidth)+Number.parseFloat(n.borderBottomWidth);return t*r+i}function Hde(e){let[t,n]=ot(e,[`class`,`minRows`,`maxRows`,`onHeightChange`,`onInput`,`value`,`ref`,`unstyled`]),r,i=()=>{if(!r)return;let e=vd(r,t.maxRows??5),n=vd(r,t.minRows??1);r.style.height=`auto`;let i=Math.max(n,Math.min(r.scrollHeight,e));r.style.height=`${i}px`,r.style.overflowY=r.scrollHeight>e?`auto`:`hidden`,t.onHeightChange?.(i)};ve(i),pe(()=>{t.value,i()});let a=t.ref;return(()=>{var e=zde();return e.$$input=e=>{i(),typeof t.onInput==`function`&&t.onInput(e)},It(e=>{r=e,typeof a==`function`&&a(e)},e),Ft(e,j({get rows(){return t.minRows??1},get class(){return`${t.unstyled?Vde:Bde} ${t.class??``}`},get value(){return t.value}},n),!1,!1),e})()}Et([`input`]);var Ude=`hidden data-[state=open]:block data-[state=open]:anim-combo z-[2147483647] rounded-pw-sm bg-pw-panel text-pw-text border border-pw-line shadow-pw-lg py-1 px-2 text-[0.6875rem] max-w-60 focus-visible:outline-none`;function Wde(e){let[t,n]=ot(e,[`positioning`,`openDelay`,`closeDelay`]);return A(fl.Root,j({get openDelay(){return t.openDelay??300},get closeDelay(){return t.closeDelay??80},get positioning(){return{strategy:`fixed`,placement:`top`,gutter:6,...t.positioning}}},n))}function Gde(e){let[t,n]=ot(e,[`class`]);return A(fl.Content,j(n,{get class(){return`${Ude} ${t.class??``}`}}))}var yd=Object.assign({},fl,{Root:Wde,Content:Gde}),Kde=`hidden data-[state=open]:block data-[state=open]:anim-combo z-[2147483647] min-w-44 rounded-pw-md bg-pw-panel text-pw-text border border-pw-line shadow-pw-lg p-1 focus-visible:outline-none`,qde=`flex items-center gap-2 min-h-8 py-1.5 px-2.5 rounded-pw-sm text-[0.8125rem] text-pw-text-2 cursor-pointer select-none outline-none data-[highlighted]:bg-pw-fill-strong data-[highlighted]:text-pw-text data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed`,Jde=`py-1.5 px-2.5 text-[0.6875rem] font-pw text-pw-text-3 uppercase tracking-wide`,Yde=`h-px my-1 bg-pw-line`;function Xde(e){let[t,n]=ot(e,[`positioning`]);return A(Xl.Root,j({get positioning(){return{strategy:`fixed`,placement:`bottom-start`,gutter:4,...t.positioning}}},n))}function Zde(e){let[t,n]=ot(e,[`class`]);return A(Xl.Content,j(n,{get class(){return`${Kde} ${t.class??``}`}}))}function Qde(e){let[t,n]=ot(e,[`class`]);return A(Xl.Item,j(n,{get class(){return`${qde} ${t.class??``}`}}))}function $de(e){let[t,n]=ot(e,[`class`]);return A(Xl.ItemGroupLabel,j(n,{get class(){return`${Jde} ${t.class??``}`}}))}function efe(e){let[t,n]=ot(e,[`class`]);return A(Xl.Separator,j(n,{get class(){return`${Yde} ${t.class??``}`}}))}var bd=Object.assign({},Xl,{Root:Xde,Content:Zde,Item:Qde,ItemGroupLabel:$de,Separator:efe}),tfe=`hidden data-[state=open]:block data-[state=open]:anim-rise z-[2147483647] rounded-pw-lg bg-pw-panel text-pw-text border border-pw-line shadow-pw-lg focus-visible:outline-none`;function nfe(e){let[t,n]=ot(e,[`positioning`]);return A(fu.Root,j({get positioning(){return{strategy:`fixed`,placement:`top-end`,gutter:8,...t.positioning}}},n))}function rfe(e){let[t,n]=ot(e,[`class`]);return A(fu.Content,j(n,{get class(){return`${tfe} ${t.class??``}`}}))}var xd=Object.assign({},fu,{Root:nfe,Content:rfe}),ife=`relative w-80 max-w-[calc(100vw-2rem)] flex flex-col gap-1 items-start py-3 pl-3.5 pr-9 rounded-pw-md bg-pw-panel text-pw-text border border-pw-line shadow-pw-lg [translate:var(--x)_var(--y)] [scale:var(--scale)] [z-index:var(--z-index)] [height:var(--height)] [opacity:var(--opacity)] data-[type=error]:[border-color:var(--pw-danger)] data-[type=success]:[border-color:var(--pw-success)]`,afe=`text-[0.8125rem] font-pw text-pw-text-hi`,ofe=`text-[0.75rem] text-pw-text-2`,sfe=`absolute top-1.5 right-1.5 inline-flex items-center justify-center size-7 rounded-pw-sm text-pw-text-3 cursor-pointer hover:text-pw-text hover:bg-pw-fill-strong focus-ring`;function cfe(e){return A(kle,{get toaster(){return e.toaster},children:e=>A(Eu.Root,{class:ife,get children(){return[A(Eu.Title,{class:afe,get children(){return e().title}}),A(M,{get when(){return e().description},get children(){return A(Eu.Description,{class:ofe,get children(){return e().description}})}}),A(Eu.CloseTrigger,{class:sfe,"aria-label":`Dismiss notification`,get children(){return A(Iu,{size:16})}})]}})})}Object.assign({},Eu,{Toaster:cfe,createToaster:xle});var lfe=`inline-flex items-center justify-center size-7 rounded-pw-pill overflow-hidden bg-pw-fill-strong text-pw-text-2 text-[0.6875rem] font-pw select-none shrink-0`,ufe=`size-full object-cover`,dfe=`inline-flex items-center justify-center size-full uppercase`;function ffe(e){let[t,n]=ot(e,[`class`]);return A(Uu.Root,j(n,{get class(){return`${lfe} ${t.class??``}`}}))}function pfe(e){let[t,n]=ot(e,[`class`]);return A(Uu.Image,j(n,{get class(){return`${ufe} ${t.class??``}`}}))}function mfe(e){let[t,n]=ot(e,[`class`]);return A(Uu.Fallback,j(n,{get class(){return`${dfe} ${t.class??``}`}}))}Object.assign({},Uu,{Root:ffe,Image:pfe,Fallback:mfe});var hfe=`relative flex items-center gap-1 border-b border-pw-line`,gfe=`relative inline-flex items-center gap-1.5 py-2 px-3 text-[0.8125rem] font-pw text-pw-text-3 cursor-pointer select-none trans-btn hover:text-pw-text-2 data-[selected]:text-pw-text focus-ring disabled:opacity-50 disabled:cursor-not-allowed`,_fe=`pt-3 focus-visible:outline-none`,vfe=`absolute bottom-0 h-0.5 bg-pw-accent [width:var(--width)] [left:var(--left)] trans-btn`;function yfe(e){let[t,n]=ot(e,[`class`]);return A(nd.List,j(n,{get class(){return`${hfe} ${t.class??``}`}}))}function bfe(e){let[t,n]=ot(e,[`class`]);return A(nd.Trigger,j(n,{get class(){return`${gfe} ${t.class??``}`}}))}function xfe(e){let[t,n]=ot(e,[`class`]);return A(nd.Content,j(n,{get class(){return`${_fe} ${t.class??``}`}}))}function Sfe(e){let[t,n]=ot(e,[`class`]);return A(nd.Indicator,j(n,{get class(){return`${vfe} ${t.class??``}`}}))}Object.assign({},nd,{List:yfe,Trigger:bfe,Content:xfe,Indicator:Sfe});var Cfe=`inline-flex items-center gap-2 cursor-pointer select-none data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed`,wfe=`relative inline-flex items-center w-8 h-4.5 rounded-pw-pill bg-pw-fill-strong [border:1px_solid_var(--pw-line)] trans-btn data-[state=checked]:bg-pw-accent data-[state=checked]:[border-color:var(--pw-accent)] focus-within:[outline:0.125rem_solid_var(--pw-accent)] focus-within:[outline-offset:0.125rem]`,Tfe=`size-3.5 rounded-pw-pill bg-pw-text translate-x-0.5 trans-btn data-[state=checked]:translate-x-3.5 data-[state=checked]:bg-pw-on-accent`,Efe=`text-[0.8125rem] font-pw text-pw-text-2`;function Dfe(e){let[t,n]=ot(e,[`class`]);return A(dd.Root,j(n,{get class(){return`${Cfe} ${t.class??``}`}}))}function Ofe(e){let[t,n]=ot(e,[`class`]);return A(dd.Control,j(n,{get class(){return`${wfe} ${t.class??``}`}}))}function kfe(e){let[t,n]=ot(e,[`class`]);return A(dd.Thumb,j(n,{get class(){return`${Tfe} ${t.class??``}`}}))}function Afe(e){let[t,n]=ot(e,[`class`]);return A(dd.Label,j(n,{get class(){return`${Efe} ${t.class??``}`}}))}Object.assign({},dd,{Root:Dfe,Control:Ofe,Thumb:kfe,Label:Afe});var jfe=`inline-flex [transition:opacity_150ms_ease,scale_150ms_ease] [&[hidden]]:opacity-0 [&[hidden]]:[scale:0.6] [&[hidden]]:[display:inline-flex]`;function Mfe(e){let[t,n]=ot(e,[`class`]);return A(md.Indicator,j(n,{get class(){return`${jfe} ${t.class??``}`}}))}var Sd=Object.assign({},md,{Indicator:Mfe}),Cd=Symbol(`store-raw`),wd=Symbol(`store-node`),Td=Symbol(`store-has`),Ed=Symbol(`store-self`);function Dd(e){let t=e[b];if(!t&&(Object.defineProperty(e,b,{value:t=new Proxy(e,Ife)}),!Array.isArray(e))){let n=Object.keys(e),r=Object.getOwnPropertyDescriptors(e),i=Object.getPrototypeOf(e),a=i!==null&&typeof e==`object`&&!!e&&!Array.isArray(e)&&i!==Object.prototype;if(a){let e=Object.getOwnPropertyDescriptors(i);n.push(...Object.keys(e)),Object.assign(r,e)}for(let i=0,o=n.length;i<o;i++){let o=n[i];a&&o===`constructor`||r[o].get&&Object.defineProperty(e,o,{configurable:!0,enumerable:r[o].enumerable,get:r[o].get.bind(t)})}}return t}function Od(e){let t;return typeof e==`object`&&!!e&&(e[b]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function kd(e,t=new Set){let n,r,i,a;if(n=e!=null&&e[Cd])return n;if(!Od(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let n=0,a=e.length;n<a;n++)i=e[n],(r=kd(i,t))!==i&&(e[n]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);let n=Object.keys(e),o=Object.getOwnPropertyDescriptors(e);for(let s=0,c=n.length;s<c;s++)a=n[s],!o[a].get&&(i=e[a],(r=kd(i,t))!==i&&(e[a]=r))}return e}function Ad(e,t){let n=e[t];return n||Object.defineProperty(e,t,{value:n=Object.create(null)}),n}function jd(e,t,n){if(e[t])return e[t];let[r,i]=O(n,{equals:!1,internal:!0});return r.$=i,e[t]=r}function Nfe(e,t){let n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||!n.configurable||t===b||t===wd?n:(delete n.value,delete n.writable,n.get=()=>e[b][t],n)}function Pfe(e){xe()&&jd(Ad(e,wd),Ed)()}function Ffe(e){return Pfe(e),Reflect.ownKeys(e)}var Ife={get(e,t,n){if(t===Cd)return e;if(t===b)return n;if(t===S)return Pfe(e),n;let r=Ad(e,wd),i=r[t],a=i?i():e[t];if(t===wd||t===Td||t===`__proto__`)return a;if(!i){let n=Object.getOwnPropertyDescriptor(e,t);xe()&&(typeof a!=`function`||e.hasOwnProperty(t))&&!(n&&n.get)&&(a=jd(r,t,a)())}return Od(a)?Dd(a):a},has(e,t){return t===Cd||t===b||t===S||t===wd||t===Td||t===`__proto__`?!0:(xe()&&jd(Ad(e,Td),t)(),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:Ffe,getOwnPropertyDescriptor:Nfe};function Md(e,t,n,r=!1){if(t===`__proto__`||!r&&e[t]===n)return;let i=e[t],a=e.length;n===void 0?(delete e[t],e[Td]&&e[Td][t]&&i!==void 0&&e[Td][t].$()):(e[t]=n,e[Td]&&e[Td][t]&&i===void 0&&e[Td][t].$());let o=Ad(e,wd),s;if((s=jd(o,t,i))&&s.$(()=>n),Array.isArray(e)&&e.length!==a){for(let t=e.length;t<a;t++)(s=o[t])&&s.$();(s=jd(o,`length`,a))&&s.$(e.length)}(s=o[Ed])&&s.$()}function Lfe(e,t){let n=Object.keys(t);for(let r=0;r<n.length;r+=1){let i=n[r];Rfe(i)||Md(e,i,t[i])}}function Rfe(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function zfe(e,t){if(typeof t==`function`&&(t=t(e)),t=kd(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){let r=t[n];e[n]!==r&&Md(e,n,r)}Md(e,`length`,r)}else Lfe(e,t)}function Nd(e,t,n=[]){let r,i=e;if(t.length>1){r=t.shift();let a=typeof r,o=Array.isArray(e);if(a===`string`&&(r===`__proto__`||t.length>1&&Rfe(r)))return;if(Array.isArray(r)){for(let i=0;i<r.length;i++)Nd(e,[r[i]].concat(t),n);return}else if(o&&a===`function`){for(let i=0;i<e.length;i++)r(e[i],i)&&Nd(e,[i].concat(t),n);return}else if(o&&a===`object`){let{from:i=0,to:a=e.length-1,by:o=1}=r;for(let r=i;r<=a;r+=o)Nd(e,[r].concat(t),n);return}else if(t.length>1){Nd(e[r],t,[r].concat(n));return}i=e[r],n=[r].concat(n)}let a=t[0];typeof a==`function`&&(a=a(i,n),a===i)||r===void 0&&a==null||(a=kd(a),r===void 0||Od(i)&&Od(a)&&!Array.isArray(a)?Lfe(i,a):Md(e,r,a))}function Bfe(...[e,t]){let n=kd(e||{}),r=Array.isArray(n),i=Dd(n);function a(...e){ge(()=>{r&&e.length===1?zfe(n,e[0]):Nd(n,e)})}return[i,a]}var Pd=Object.defineProperty,Vfe=Object.getOwnPropertyDescriptor,Hfe=Object.getOwnPropertyNames,Ufe=Object.prototype.hasOwnProperty,Wfe=(e,t)=>{let n={};for(var r in e)Pd(n,r,{get:e[r],enumerable:!0});return t||Pd(n,Symbol.toStringTag,{value:`Module`}),n},Gfe=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=Hfe(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Ufe.call(e,s)&&s!==n&&Pd(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Vfe(t,s))||r.enumerable});return e},Kfe=(e,t,n)=>(Gfe(e,t,`default`),n&&Gfe(n,t,`default`)),Fd=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function qfe(e){return Id(e)}function Id(e){return Array.isArray(e)?Jfe(e):e instanceof RegExp?e:typeof e==`object`?Yfe(e):e}function Jfe(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Id(e[n]);return t}function Yfe(e){let t={};for(let n in e)t[n]=Id(e[n]);return t}function Xfe(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function Zfe(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?Zfe(e.substring(0,e.length-1)):e.substr(~t+1)}var Ld=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Rd=class{static hasCaptures(e){return e===null?!1:(Ld.lastIndex=0,Ld.test(e))}static replaceCaptures(e,t,n){return e.replace(Ld,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function Qfe(e,t){return e<t?-1:+(e>t)}function $fe(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=Qfe(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function epe(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function tpe(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var npe=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},zd=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(ope(e),t)}static createFromParsedTheme(e,t){return cpe(e,t)}_cachedMatchRoot=new npe(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>rpe(e.parent,t.parentScopes));return n?new ape(n.fontStyle,n.foreground,n.background):null}},Bd=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function rpe(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!ipe(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function ipe(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var ape=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function ope(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8;break}}let s=null;typeof i.settings.foreground==`string`&&epe(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&epe(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new spe(l,u,e,o,s,c)}}return n}var spe=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},Vd=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(Vd||{});function cpe(e,t){e.sort((e,t)=>{let n=Qfe(e.scope,t.scope);return n!==0||(n=$fe(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new lpe(t),o=new ape(n,a.getId(r),a.getId(i)),s=new dpe(new Hd(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new zd(a,o,s)}var lpe=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},upe=Object.freeze([]),Hd=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||upe,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},dpe=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),Hd.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if($fe(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new Hd(e,t,n,r,i))}},Ud=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!=0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=ppe(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function fpe(e){return e}function ppe(e){return e}function Wd(e,t){let n=[],r=hpe(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(mpe(i)){let e=[];do e.push(i),i=r.next();while(mpe(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function mpe(e){return!!e&&!!e.match(/[\w\.:]+/)}function hpe(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function gpe(e){typeof e.dispose==`function`&&e.dispose()}var Gd=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},_pe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},vpe=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},ype=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Gd(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new vpe;for(let n of e)bpe(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof Gd){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function bpe(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof Gd?qd({baseGrammar:a,selfGrammar:i},r):Kd(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new Gd(e))}function Kd(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];Jd([r],t,n)}}function qd(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Jd(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Jd(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Jd(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?Xfe({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Jd(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=Epe(i);switch(a.kind){case 0:qd({...t,selfGrammar:t.baseGrammar},n);break;case 1:qd(t,n);break;case 2:Kd(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?Kd(a.ruleName,i,n):qd(i,n)}else a.kind===4?n.add(new _pe(a.scopeName,a.ruleName)):n.add(new Gd(a.scopeName));break}}}var xpe=class{kind=0},Spe=class{kind=1},Cpe=class{constructor(e){this.ruleName=e}kind=2},wpe=class{constructor(e){this.scopeName=e}kind=3},Tpe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Epe(e){if(e===`$base`)return new xpe;if(e===`$self`)return new Spe;let t=e.indexOf(`#`);return t===-1?new wpe(e):t===0?new Cpe(e.substring(1)):new Tpe(e.substring(0,t),e.substring(t+1))}var Dpe=/\\(\d+)/,Ope=/\\(\d+)/g,kpe=-1,Ape=-2;function jpe(e){return e}function Mpe(e){return e}var Yd=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Rd.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Rd.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${Zfe(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Rd.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Rd.replaceCaptures(this._contentName,e,t)}},Npe=class extends Yd{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},Ppe=class extends Yd{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new Qd(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new $d,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Fpe=class extends Yd{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new $d,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Xd=class extends Yd{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new Qd(i,this.id),this.beginCaptures=a,this._end=new Qd(o||``,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new $d;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Zd=class extends Yd{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new Qd(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new Qd(o,Ape),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new $d;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new $d,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||``),this._cachedCompiledWhilePatterns}},Ipe=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new Npe(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new Ppe(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=Xfe({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new Fpe(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new Zd(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new Xd(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=Epe(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l)if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository);break}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof Fpe||e instanceof Xd||e instanceof Zd)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},Qd=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source==`string`?this.hasBackReferences=Dpe.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return Ope.lastIndex=0,this.source.replace(Ope,(e,t)=>tpe(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=``,t[i+1]=``,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=``,t[i+1]=`G`,n[i+1]=``,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},$d=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&=(this._cached.dispose(),null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new ef(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new ef(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},ef=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
|
|
2
2
|
`)}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},tf=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Lpe=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new tf(e,8),this._embeddedLanguagesMatcher=new Rpe(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new tf(0,0);_getBasicScopeAttributes=new npe(e=>new tf(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case`comment`:return 1;case`string`:return 2;case`regex`:return 3;case`meta.embedded`:return 0}throw Error(`Unexpected match for standard token type!`)}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Rpe=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>tpe(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(`)|(`)}))($|\\.)`,``)}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<`u`&&process.env.VSCODE_TEXTMATE_DEBUG;var nf=!1,rf=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function zpe(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=Bpe(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let d=Date.now();for(;!l;){if(s!==0&&Date.now()-d>s)return new rf(i,!0);f()}return new rf(i,!1);function f(){let o=Vpe(e,t,n,r,i,u);if(!o){a.produce(i,c),l=!0;return}let s=o.captureIndices,d=o.matchedRuleId,f=s&&s.length>0?s[0].end>r:!1;if(d===kpe){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),of(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!f&&d.getEnterPos()===r){i=d,a.produce(i,c),l=!0;return}}else{let o=e.getRule(d);a.produce(i,s[0].start);let p=i,m=o.getName(t.content,s),h=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,s[0].end===c,null,h,h),o instanceof Xd){let r=o;of(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(o instanceof Zd){let r=o;of(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(of(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!f){i=i.safePop(),a.produce(i,c),l=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}}function Bpe(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof Zd&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=Gpe(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){if(u.ruleId!==Ape){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),of(e,t,n,c.stack,a,c.rule.whileCaptures,u.captureIndices),a.produce(c.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function Vpe(e,t,n,r,i,a){let o=Hpe(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=Upe(s,e,t,n,r,i,a);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u<l||c.priorityMatch&&u===l?c:o}function Hpe(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=Wpe(i.getRule(e),e,i.endRule,n,r===a),c=o.findNextMatchSync(t,r,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function Upe(e,t,n,r,i,a,o){let s=Number.MAX_VALUE,c=null,l,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,f=e.length;a<f;a++){let f=e[a];if(!f.matcher(d))continue;let{ruleScanner:p,findOptions:m}=Wpe(t.getRule(f.ruleId),t,null,r,i===o),h=p.findNextMatchSync(n,i,m);if(!h)continue;let g=h.captureIndices[0].start;if(!(g>=s)&&(s=g,c=h.captureIndices,l=h.ruleId,u=f.priority,s===i))break}return c?{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l}:null}function Wpe(e,t,n,r,i){return nf?{ruleScanner:e.compile(t,n),findOptions:af(r,i)}:{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function Gpe(e,t,n,r,i){return nf?{ruleScanner:e.compileWhile(t,n),findOptions:af(r,i)}:{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function af(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function of(e,t,n,r,i,a,o){if(a.length===0)return;let s=t.content,c=Math.min(a.length,o.length),l=[],u=o[0].end;for(let t=0;t<c;t++){let c=a[t];if(c===null)continue;let d=o[t];if(d.length===0)continue;if(d.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,d.start):i.produce(r,d.start),c.retokenizeCapturedWithRuleId){let t=c.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),l=c.getContentName(s,o),u=a.pushAttributed(l,e),f=r.push(c.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(s.substring(0,d.end));zpe(e,p,n&&d.start===0,d.start,f,i,!1,0),gpe(p);continue}let f=c.getName(s,o);if(f!==null){let t=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(f,e);l.push(new Kpe(t,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var Kpe=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function qpe(e,t,n,r,i,a,o,s){return new Ype(e,t,n,r,i,a,o,s)}function sf(e,t,n,r,i){let a=Wd(t,cf),o=Ipe.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function cf(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(Jpe(t[r],e))return n=r+1,!0;return!1})}function Jpe(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]===`.`}var Ype=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new Lpe(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=Xpe(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=Wd(e,cf);for(let n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:i[e]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){let e=r.injections;if(e)for(let n in e)sf(t,n,e[n],this,r);let i=this._grammarRepository.injections(n);i&&i.forEach(e=>{let n=this.getExternalGrammar(e);if(n){let e=n.injectionSelector;e&&sf(t,e,n,this,n)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(jpe(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[Mpe(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=Xpe(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=Ipe.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===uf.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=Ud.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?lf.createRootAndLookUpScopeName(a,r,this):lf.createRoot(`unknown`,r),t=new uf(null,this._rootId,-1,-1,!1,null,o,o)}else i=!1,t.reset();e+=`
|
|
3
3
|
`;let a=this.createOnigString(e),o=a.content.length,s=new Qpe(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=zpe(this,a,i,0,t,s,!0,r);return gpe(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function Xpe(e,t){return e=qfe(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var lf=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)i=Bd.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new Bd(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new Bd(null,t),o=r.themeProvider.themeMatch(a);return new e(null,a,e.mergeAttributes(n,i,o))}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(` `)}equals(t){return e.equals(this,t)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return n!==null&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),Ud.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(` `)===-1)return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a);return new e(t,a,e.mergeAttributes(t.tokenAttributes,i,o))}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},uf=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:e._equals(this,t)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?lf.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),`[`+e.join(`,`)+`]`}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:Mpe(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=lf.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,jpe(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,lf.fromExtension(r,n.contentNameScopesList))}},Zpe=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):Wd(e,cf).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>Wd(e,cf).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},Qpe=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=Ud.set(n,0,fpe(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=Ud.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},$pe=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,qpe(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},eme=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new $pe(zd.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(zd.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new Zpe(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new ype(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections==`function`?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},df=uf.NULL;function ff(e,t){let n=typeof e==`string`?{}:{...e.colorReplacements},r=typeof e==`string`?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))typeof i==`string`?n[e]=i:e===r&&Object.assign(n,i);return n}function pf(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function tme(e){return Array.isArray(e)?e:[e]}async function mf(e){return Promise.resolve(typeof e==`function`?e():e).then(e=>e.default||e)}function hf(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function gf(e){return e===`ansi`||hf(e)}function _f(e){return e===`none`}function nme(e){return _f(e)}var rme=/(\r?\n)/g;function vf(e,t=!1){if(e.length===0)return[[``,0]];let n=e.split(rme),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||``):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}var ime={light:`#333333`,dark:`#bbbbbb`},ame={light:`#fffffe`,dark:`#1e1e1e`},ome=`__shiki_resolved`;function yf(e){if(e?.[ome])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||=`dark`,t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.[`editor.foreground`]&&(r=t.colors[`editor.foreground`]),!n&&t?.colors?.[`editor.background`]&&(n=t.colors[`editor.background`]),r||=t.type===`light`?ime.light:ime.dark,n||=t.type===`light`?ame.light:ame.dark,t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,`0`).toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith(`#`),r=e.settings?.background&&!e.settings.background.startsWith(`#`);if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i});for(let e of Object.keys(t.colors||{}))if((e===`editor.foreground`||e===`editor.background`||e.startsWith(`terminal.ansi`))&&!t.colors[e]?.startsWith(`#`)){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,ome,{enumerable:!1,writable:!1,value:!0}),t}async function bf(e){return[...new Set((await Promise.all(e.filter(e=>!gf(e)).map(async e=>await mf(e).then(e=>Array.isArray(e)?e:[e])))).flat())]}async function xf(e){return(await Promise.all(e.map(async e=>nme(e)?null:yf(await mf(e))))).filter(e=>!!e)}function Sf(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new Fd(`Circular alias \`${[...n].join(` -> `)} -> ${e}\``);n.add(e)}}return e}var sme=class extends eme{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return typeof e==`string`?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=yf(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||=[...this._resolvedThemes.keys()],this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=zd.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=Sf(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||[`*`],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=[...this._langGraph.entries()],n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t?(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e)):!1).filter(e=>!n.includes(e));throw new Fd(`Missing languages ${n.map(([e])=>`\`${e}\``).join(`, `)}, required by ${e.map(([e])=>`\`${e}\``).join(`, `)}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])],this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},cme=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split(`.`),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(`.`);n=[...n,...this._injections.get(r)||[]]}return n}},Cf=0;function lme(e){Cf+=1,e.warnings!==!1&&Cf>=10&&Cf%10==0&&console.warn(`[Shiki] ${Cf} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Fd("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(yf),i=new sme(new cme(e.engine,n),r,n,e.langAlias),a;function o(t){return Sf(t,e.langAlias)}function s(e){g();let t=i.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new Fd(`Language \`${e}\` not found, you may need to load it first`);return t}function c(e){if(e===`none`)return{bg:``,fg:``,name:`none`,settings:[],type:`dark`};g();let t=i.getTheme(e);if(!t)throw new Fd(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(e){g();let t=c(e);return a!==e&&(i.setTheme(t),a=e),{theme:t,colorMap:i.getColorMap()}}function u(){return g(),i.getLoadedThemes()}function d(){return g(),i.getLoadedLanguages()}function f(...e){g(),i.loadLanguages(e.flat(1))}async function p(...e){return f(await bf(e))}function m(...e){g();for(let t of e.flat(1))i.loadTheme(t)}async function h(...e){return g(),m(await xf(e))}function g(){if(t)throw new Fd(`Shiki instance has been disposed`)}function _(){t||(t=!0,i.dispose(),--Cf)}return{setTheme:l,getTheme:c,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:d,resolveLangAlias:o,loadLanguage:p,loadLanguageSync:f,loadTheme:h,loadThemeSync:m,dispose:_,[Symbol.dispose]:_}}async function ume(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([xf(e.themes||[]),bf(e.langs||[]),e.engine]);return lme({...e,themes:t,langs:n,engine:r})}var wf=new WeakMap;function Tf(e,t){wf.set(e,t)}function Ef(e){return wf.get(e)}var Df=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries(tme(n).map(e=>[e,df])),t)}constructor(...e){if(e.length===2){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return dme(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function dme(e){let t=[],n=new Set;function r(e){if(n.has(e))return;n.add(e);let i=e?.nameScopesList?.scopeName;i&&t.push(i),e.parent&&r(e.parent)}return r(e),t}function fme(e,t){if(!(e instanceof Df))throw new Fd(`Invalid grammar state`);return e.getInternalStack(t)}var pme=/,/,mme=/ /;function Of(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n;if(hf(e.resolveLangAlias(n.lang||`text`))||_f(r))return vf(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:i,colorMap:a}=e.setTheme(r),o=e.getLanguage(n.lang||`text`);if(n.grammarState){if(n.grammarState.lang!==o.name)throw new Fd(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(i.name))throw new Fd(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return gme(t,o,i,a,n)}function hme(...e){if(e.length===2)return Ef(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if(hf(i)||_f(a))throw new Fd(`Plain language does not have grammar state`);if(i===`ansi`)throw new Fd(`ANSI language does not have grammar state`);let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new Df(kf(n,c,o,s,r).stateStack,c.name,o.name)}function gme(e,t,n,r,i){let a=kf(e,t,n,r,i),o=new Df(a.stateStack,t.name,n.name);return Tf(a.tokens,o),a.tokens}function kf(e,t,n,r,i){let a=ff(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500}=i,c=vf(e),l=i.grammarState?fme(i.grammarState,n.name)??df:i.grammarContextCode==null?df:kf(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack,u=[],d=[];for(let e=0,f=c.length;e<f;e++){let[f,p]=c[e];if(f===``){u=[],d.push([]);continue}if(o>0&&f.length>=o){u=[],d.push([{content:f,offset:p,color:``,fontStyle:0}]);continue}let m,h,g;i.includeExplanation&&(m=t.tokenizeLine(f,l,s),h=m.tokens,g=0);let _=t.tokenizeLine2(f,l,s),v=_.tokens.length/2;for(let e=0;e<v;e++){let t=_.tokens[2*e],o=e+1<v?_.tokens[2*e+2]:f.length;if(t===o)continue;let s=_.tokens[2*e+1],c=pf(r[Ud.getForeground(s)],a),l=Ud.getFontStyle(s),d={content:f.substring(t,o),offset:p+t,color:c,fontStyle:l};if(i.includeExplanation){let e=[];if(i.includeExplanation!==`scopeName`)for(let t of n.settings){let n;switch(typeof t.scope){case`string`:n=t.scope.split(pme).map(e=>e.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(mme))})}d.explanation=[];let r=0;for(;t+r<o;){let t=h[g],n=f.substring(t.startIndex,t.endIndex);r+=n.length,d.explanation.push({content:n,scopes:i.includeExplanation===`scopeName`?_me(t.scopes):vme(e,t.scopes)}),g+=1}}u.push(d)}d.push(u),u=[],l=_.ruleStack}return{tokens:d,stateStack:l}}function _me(e){return e.map(e=>({scopeName:e}))}function vme(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:bme(e,i,t.slice(0,r))}}return n}function Af(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]===`.`}function yme(e,t,n){if(!Af(e.at(-1),t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)Af(e[r],n[i])&&--r,--i;return r===-1}function bme(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(yme(e,t,n)){r.push(a);break}return r}function jf(e,t,n,r=Of){let i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=i.map(i=>{let a=r(e,t,{...n,theme:i.theme});return{tokens:a,state:Ef(a),theme:typeof i.theme==`string`?i.theme:i.theme.name}}),o=xme(...a.map(e=>e.tokens)),s=o[0].map((e,t)=>e.map((e,r)=>{let a={content:e.content,variants:{},offset:e.offset};return`includeExplanation`in n&&n.includeExplanation&&(a.explanation=e.explanation),o.forEach((e,n)=>{let{content:o,explanation:s,offset:c,...l}=e[t][r];a.variants[i[n].color]=l}),a})),c=a[0].state?new Df(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return c&&Tf(s,c),s}function xme(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}var Sme=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],Mf=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Mf.prototype.normal={},Mf.prototype.property={},Mf.prototype.space=void 0;function Cme(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Mf(n,r,t)}function Nf(e){return e.toLowerCase()}var Pf=class{constructor(e,t){this.attribute=t,this.property=e}};Pf.prototype.attribute=``,Pf.prototype.booleanish=!1,Pf.prototype.boolean=!1,Pf.prototype.commaOrSpaceSeparated=!1,Pf.prototype.commaSeparated=!1,Pf.prototype.defined=!1,Pf.prototype.mustUseProperty=!1,Pf.prototype.number=!1,Pf.prototype.overloadedBoolean=!1,Pf.prototype.property=``,Pf.prototype.spaceSeparated=!1,Pf.prototype.space=void 0;var Ff=c({boolean:()=>If,booleanish:()=>Lf,commaOrSpaceSeparated:()=>Hf,commaSeparated:()=>Vf,number:()=>zf,overloadedBoolean:()=>Rf,spaceSeparated:()=>Bf}),wme=0,If=Uf(),Lf=Uf(),Rf=Uf(),zf=Uf(),Bf=Uf(),Vf=Uf(),Hf=Uf();function Uf(){return 2**++wme}var Wf=Object.keys(Ff),Gf=class extends Pf{constructor(e,t,n,r){let i=-1;if(super(e,t),Kf(this,`space`,r),typeof n==`number`)for(;++i<Wf.length;){let e=Wf[i];Kf(this,Wf[i],(n&Ff[e])===Ff[e])}}};Gf.prototype.defined=!0;function Kf(e,t,n){n&&(e[t]=n)}function qf(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Gf(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Nf(r)]=r,n[Nf(a.attribute)]=r}return new Mf(t,n,e.space)}var Jf=qf({properties:{ariaActiveDescendant:null,ariaAtomic:Lf,ariaAutoComplete:null,ariaBusy:Lf,ariaChecked:Lf,ariaColCount:zf,ariaColIndex:zf,ariaColSpan:zf,ariaControls:Bf,ariaCurrent:null,ariaDescribedBy:Bf,ariaDetails:null,ariaDisabled:Lf,ariaDropEffect:Bf,ariaErrorMessage:null,ariaExpanded:Lf,ariaFlowTo:Bf,ariaGrabbed:Lf,ariaHasPopup:null,ariaHidden:Lf,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Bf,ariaLevel:zf,ariaLive:null,ariaModal:Lf,ariaMultiLine:Lf,ariaMultiSelectable:Lf,ariaOrientation:null,ariaOwns:Bf,ariaPlaceholder:null,ariaPosInSet:zf,ariaPressed:Lf,ariaReadOnly:Lf,ariaRelevant:null,ariaRequired:Lf,ariaRoleDescription:Bf,ariaRowCount:zf,ariaRowIndex:zf,ariaRowSpan:zf,ariaSelected:Lf,ariaSetSize:zf,ariaSort:null,ariaValueMax:zf,ariaValueMin:zf,ariaValueNow:zf,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Yf(e,t){return t in e?e[t]:t}function Xf(e,t){return Yf(e,t.toLowerCase())}var Tme=qf({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Vf,acceptCharset:Bf,accessKey:Bf,action:null,allow:null,allowFullScreen:If,allowPaymentRequest:If,allowUserMedia:If,alpha:If,alt:null,as:null,async:If,autoCapitalize:null,autoComplete:Bf,autoFocus:If,autoPlay:If,blocking:Bf,capture:null,charSet:null,checked:If,cite:null,className:Bf,closedBy:null,colorSpace:null,cols:zf,colSpan:zf,command:null,commandFor:null,content:null,contentEditable:Lf,controls:If,controlsList:Bf,coords:zf|Vf,crossOrigin:null,data:null,dateTime:null,decoding:null,default:If,defer:If,dir:null,dirName:null,disabled:If,download:Rf,draggable:Lf,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:If,formTarget:null,headers:Bf,height:zf,hidden:Rf,high:zf,href:null,hrefLang:null,htmlFor:Bf,httpEquiv:Bf,id:null,imageSizes:null,imageSrcSet:null,inert:If,inputMode:null,integrity:null,is:null,isMap:If,itemId:null,itemProp:Bf,itemRef:Bf,itemScope:If,itemType:Bf,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:If,low:zf,manifest:null,max:null,maxLength:zf,media:null,method:null,min:null,minLength:zf,multiple:If,muted:If,name:null,nonce:null,noModule:If,noValidate:If,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:If,optimum:zf,pattern:null,ping:Bf,placeholder:null,playsInline:If,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:If,referrerPolicy:null,rel:Bf,required:If,reversed:If,rows:zf,rowSpan:zf,sandbox:Bf,scope:null,scoped:If,seamless:If,selected:If,shadowRootClonable:If,shadowRootCustomElementRegistry:If,shadowRootDelegatesFocus:If,shadowRootMode:null,shadowRootSerializable:If,shape:null,size:zf,sizes:null,slot:null,span:zf,spellCheck:Lf,src:null,srcDoc:null,srcLang:null,srcSet:null,start:zf,step:null,style:null,tabIndex:zf,target:null,title:null,translate:null,type:null,typeMustMatch:If,useMap:null,value:Lf,width:zf,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Bf,axis:null,background:null,bgColor:null,border:zf,borderColor:null,bottomMargin:zf,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:If,declare:If,event:null,face:null,frame:null,frameBorder:null,hSpace:zf,leftMargin:zf,link:null,longDesc:null,lowSrc:null,marginHeight:zf,marginWidth:zf,noResize:If,noHref:If,noShade:If,noWrap:If,object:null,profile:null,prompt:null,rev:null,rightMargin:zf,rules:null,scheme:null,scrolling:Lf,standby:null,summary:null,text:null,topMargin:zf,valueType:null,version:null,vAlign:null,vLink:null,vSpace:zf,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:If,disablePictureInPicture:If,disableRemotePlayback:If,exportParts:Vf,part:Bf,prefix:null,property:null,results:zf,security:null,unselectable:null},space:`html`,transform:Xf}),Eme=qf({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:Hf,accentHeight:zf,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:zf,amplitude:zf,arabicForm:null,ascent:zf,attributeName:null,attributeType:null,azimuth:zf,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:zf,by:null,calcMode:null,capHeight:zf,className:Bf,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:zf,diffuseConstant:zf,direction:null,display:null,dur:null,divisor:zf,dominantBaseline:null,download:If,dx:null,dy:null,edgeMode:null,editable:null,elevation:zf,enableBackground:null,end:null,event:null,exponent:zf,externalResourcesRequired:null,fill:null,fillOpacity:zf,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Vf,g2:Vf,glyphName:Vf,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:zf,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:zf,horizOriginX:zf,horizOriginY:zf,id:null,ideographic:zf,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:zf,k:zf,k1:zf,k2:zf,k3:zf,k4:zf,kernelMatrix:Hf,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:zf,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:zf,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:zf,overlineThickness:zf,paintOrder:null,panose1:null,path:null,pathLength:zf,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Bf,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:zf,pointsAtY:zf,pointsAtZ:zf,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Hf,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Hf,rev:Hf,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Hf,requiredFeatures:Hf,requiredFonts:Hf,requiredFormats:Hf,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:zf,specularExponent:zf,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:zf,strikethroughThickness:zf,string:null,stroke:null,strokeDashArray:Hf,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:zf,strokeOpacity:zf,strokeWidth:null,style:null,surfaceScale:zf,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Hf,tabIndex:zf,tableValues:null,target:null,targetX:zf,targetY:zf,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Hf,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:zf,underlineThickness:zf,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:zf,values:null,vAlphabetic:zf,vMathematical:zf,vectorEffect:null,vHanging:zf,vIdeographic:zf,version:null,vertAdvY:zf,vertOriginX:zf,vertOriginY:zf,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:zf,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Yf}),Zf=qf({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),Qf=qf({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Xf}),$f=qf({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Dme=/[A-Z]/g,ep=/-[a-z]/g,Ome=/^data[-\w.:]+$/i;function kme(e,t){let n=Nf(t),r=t,i=Pf;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Ome.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(ep,jme);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!ep.test(e)){let n=e.replace(Dme,Ame);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Gf}return new i(r,t)}function Ame(e){return`-`+e.toLowerCase()}function jme(e){return e.charAt(1).toUpperCase()}var Mme=Cme([Jf,Tme,Zf,Qf,$f],`html`),tp=Cme([Jf,Eme,Zf,Qf,$f],`svg`),np={}.hasOwnProperty;function Nme(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&np.call(t,e)){let n=String(t[e]);i=np.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var Pme=/["&'<>`]/g,Fme=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ime=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Lme=/[|\\{}()[\]^$+*?.]/g,rp=new WeakMap;function Rme(e,t){if(e=e.replace(t.subset?zme(t.subset):Pme,r),t.subset||t.escapeOnly)return e;return e.replace(Fme,n).replace(Ime,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function zme(e){let t=rp.get(e);return t||(t=Bme(e),rp.set(e,t)),t}function Bme(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(Lme,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var Vme=/[\dA-Fa-f]/;function Hme(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!Vme.test(String.fromCharCode(t))?r:r+`;`}var Ume=/\d/;function Wme(e,t,n){let r=`&#`+String(e);return n&&t&&!Ume.test(String.fromCharCode(t))?r:r+`;`}var Gme=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),ip={nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:``,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,fnof:`ƒ`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,bull:`•`,hellip:`…`,prime:`′`,Prime:`″`,oline:`‾`,frasl:`⁄`,weierp:`℘`,image:`ℑ`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`,quot:`"`,amp:`&`,lt:`<`,gt:`>`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,circ:`ˆ`,tilde:`˜`,ensp:` `,emsp:` `,thinsp:` `,zwnj:``,zwj:``,lrm:``,rlm:``,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,permil:`‰`,lsaquo:`‹`,rsaquo:`›`,euro:`€`},Kme=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],ap={}.hasOwnProperty,op={},sp;for(sp in ip)ap.call(ip,sp)&&(op[ip[sp]]=sp);var qme=/[^\dA-Za-z]/;function Jme(e,t,n,r){let i=String.fromCharCode(e);if(ap.call(op,i)){let e=op[i],a=`&`+e;return n&&Gme.includes(e)&&!Kme.includes(e)&&(!r||t&&t!==61&&qme.test(String.fromCharCode(t)))?a:a+`;`}return``}function Yme(e,t,n){let r=Hme(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=Jme(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=Wme(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function cp(e,t){return Rme(e,Object.assign({format:Yme},t))}var Xme=/^>|^->|<!--|-->|--!>|<!-$/g,Zme=[`>`],Qme=[`<`,`>`];function $me(e,t,n,r){return r.settings.bogusComments?`<?`+cp(e.value,Object.assign({},r.settings.characterReferences,{subset:Zme}))+`>`:`<!--`+e.value.replace(Xme,i)+`-->`;function i(e){return cp(e,Object.assign({},r.settings.characterReferences,{subset:Qme}))}}function ehe(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}function lp(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function the(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}function nhe(e){return e.join(` `).trim()}var rhe=/[ \t\n\f\r]/g;function up(e){return typeof e==`object`?e.type===`text`?dp(e.value):!1:dp(e)}function dp(e){return e.replace(rhe,``)===``}var fp=mp(1),pp=mp(-1),ihe=[];function mp(e){return t;function t(t,n,r){let i=t?t.children:ihe,a=(n||0)+e,o=i[a];if(!r)for(;o&&up(o);)a+=e,o=i[a];return o}}var ahe={}.hasOwnProperty;function hp(e){return t;function t(t,n,r){return ahe.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var gp=hp({body:she,caption:_p,colgroup:_p,dd:dhe,dt:uhe,head:_p,html:ohe,li:lhe,optgroup:fhe,option:phe,p:che,rp:vp,rt:vp,tbody:hhe,td:yp,tfoot:ghe,th:yp,thead:mhe,tr:_he});function _p(e,t,n){let r=fp(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&up(r.value.charAt(0)))}function ohe(e,t,n){let r=fp(n,t);return!r||r.type!==`comment`}function she(e,t,n){let r=fp(n,t);return!r||r.type!==`comment`}function che(e,t,n){let r=fp(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.tagName===`ul`):!n||!(n.type===`element`&&(n.tagName===`a`||n.tagName===`audio`||n.tagName===`del`||n.tagName===`ins`||n.tagName===`map`||n.tagName===`noscript`||n.tagName===`video`))}function lhe(e,t,n){let r=fp(n,t);return!r||r.type===`element`&&r.tagName===`li`}function uhe(e,t,n){let r=fp(n,t);return!!(r&&r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`))}function dhe(e,t,n){let r=fp(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function vp(e,t,n){let r=fp(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function fhe(e,t,n){let r=fp(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function phe(e,t,n){let r=fp(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function mhe(e,t,n){let r=fp(n,t);return!!(r&&r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`))}function hhe(e,t,n){let r=fp(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function ghe(e,t,n){return!fp(n,t)}function _he(e,t,n){let r=fp(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function yp(e,t,n){let r=fp(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var vhe=hp({body:xhe,colgroup:She,head:bhe,html:yhe,tbody:Che});function yhe(e){let t=fp(e,-1);return!t||t.type!==`comment`}function bhe(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function xhe(e){let t=fp(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&up(t.value.charAt(0)))&&!(t.type===`element`&&(t.tagName===`meta`||t.tagName===`link`||t.tagName===`script`||t.tagName===`style`||t.tagName===`template`))}function She(e,t,n){let r=pp(n,t),i=fp(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&gp(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function Che(e,t,n){let r=pp(n,t),i=fp(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&gp(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var bp={name:[[`
|
|
4
4
|
\f\r &/=>`.split(``),`
|