@elevenlabs/convai-widget-core 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
- var Uo = Object.defineProperty;
2
- var Ho = (e, t, n) => t in e ? Uo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var J = (e, t, n) => Ho(e, typeof t != "symbol" ? t + "" : t, n);
4
- import jo from "preact-custom-element";
5
- import { jsx as h, jsxs as I, Fragment as wt } from "preact/jsx-runtime";
1
+ var Ho = Object.defineProperty;
2
+ var jo = (e, t, n) => t in e ? Ho(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var J = (e, t, n) => jo(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import Yo from "preact-custom-element";
5
+ import { jsx as h, jsxs as P, Fragment as wt } from "preact/jsx-runtime";
6
6
  import * as u from "preact/compat";
7
- import Ne, { memo as sr, useContext as Yo, createContext as pe, useMemo as Re, useRef as we, useEffect as Oe, useState as be, useCallback as Te, forwardRef as Xo, useLayoutEffect as Ko } from "preact/compat";
8
- import { signal as le, computed as xe, useComputed as X, useSignal as ue, useSignalEffect as ze } from "@preact/signals";
9
- import { Conversation as Go } from "@elevenlabs/client";
7
+ import _e, { useContext as Xo, createContext as pe, useMemo as Re, useRef as we, useEffect as Oe, memo as sr, useState as be, useCallback as Te, forwardRef as Ko, useLayoutEffect as Go } from "preact/compat";
8
+ import { signal as le, computed as xe, useSignal as ue, useComputed as Y, useSignalEffect as ze } from "@preact/signals";
9
+ import { Conversation as Zo } from "@elevenlabs/client";
10
10
  import { clsx as j } from "clsx";
11
- import { jsx as k, jsxs as Nt, Fragment as mn } from "preact/compat/jsx-runtime";
11
+ import { jsx as k, jsxs as _t, Fragment as mn } from "preact/compat/jsx-runtime";
12
12
  function Qe(e) {
13
13
  return e ? e === "true" ? !0 : e === "false" ? !1 : null : null;
14
14
  }
@@ -35,19 +35,83 @@ const rn = [
35
35
  "transcript",
36
36
  "text-input",
37
37
  "text-contents"
38
- ], Zo = '@import"https://fonts.googleapis.com/css2?family=Inter:wght@400,500&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-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{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-3{bottom:-12px}.bottom-0{bottom:0}.bottom-20{bottom:80px}.left-0{left:0}.left-1\\/2{left:50%}.left-4{left:16px}.right-0{right:0}.top-0{top:0}.top-1\\/2{top:50%}.top-20{top:80px}.top-4{top:16px}.z-1{z-index:1}.z-10{z-index:10}.m-1{margin:4px}.-mx-0\\.5{margin-left:-2px;margin-right:-2px}.mx-1{margin-left:4px;margin-right:4px}.-mr-1\\.5{margin-right:-6px}.ml-auto{margin-left:auto}.mt-2{margin-top:8px}.block{display:block}.inline{display:inline}.\\!flex{display:flex!important}.flex{display:flex}.inline-flex{display:inline-flex}.contents{display:contents}.hidden{display:none}.h-11{height:44px}.h-16{height:64px}.h-4{height:16px}.h-48{height:192px}.h-5{height:20px}.h-6{height:24px}.h-9{height:36px}.h-\\[calc\\(100\\%-80px\\)\\]{height:calc(100% - 80px)}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[550px\\]{max-height:550px}.max-h-\\[8lh\\]{max-height:8lh}.max-h-\\[min\\(384px\\,var\\(--radix-select-content-available-height\\)\\)\\]{max-height:min(384px,var(--radix-select-content-available-height))}.min-h-min{min-height:-moz-min-content;min-height:min-content}.w-16{width:64px}.w-4{width:16px}.w-48{width:192px}.w-5{width:20px}.w-6{width:24px}.w-64{width:256px}.w-9{width:36px}.w-full{width:100%}.w-screen{width:100vw}.\\!min-w-60{min-width:240px!important}.min-w-0{min-width:0px}.min-w-60{min-width:240px}.min-w-9{min-width:36px}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.min-w-max{min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-moz-min-content;min-width:min-content}.max-w-64{max-width:256px}.max-w-\\[400px\\]{max-width:400px}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-bottom-left{transform-origin:bottom left}.origin-bottom-right{transform-origin:bottom right}.origin-top{transform-origin:top}.origin-top-left{transform-origin:top left}.origin-top-right{transform-origin:top right}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-\\[calc\\(var\\(--el-overlay-padding\\)\\)\\]{--tw-translate-y: calc(calc(var(--el-overlay-padding)) * -1);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\\/2{--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[calc\\(var\\(--el-overlay-padding\\)\\)\\]{--tw-translate-y: calc(var(--el-overlay-padding));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-180{--tw-rotate: -180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-150{--tw-scale-x: 1.5;--tw-scale-y: 1.5;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-\\[0\\.333\\]{--tw-scale-x: .333;--tw-scale-y: .333;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.gap-1{gap:4px}.gap-2{gap:8px}.gap-2\\.5{gap:10px}.gap-3{gap:12px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.rounded-\\[calc\\(var\\(--el-button-radius\\)\\+4px\\)\\]{border-radius:calc(var(--el-button-radius) + 4px)}.rounded-bubble{border-radius:var(--el-bubble-radius)}.rounded-button{border-radius:var(--el-button-radius)}.rounded-compact-sheet{border-radius:var(--el-compact-sheet-radius)}.rounded-dropdown-sheet{border-radius:var(--el-dropdown-sheet-radius)}.rounded-full{border-radius:9999px}.rounded-input{border-radius:var(--el-input-radius)}.rounded-sheet{border-radius:var(--el-sheet-radius)}.rounded-bl-\\[calc\\(var\\(--el-bubble-radius\\)\\/3\\)\\]{border-bottom-left-radius:calc(var(--el-bubble-radius) / 3)}.border{border-width:1px}.border-accent{border-color:var(--el-accent)}.border-base-border{border-color:var(--el-base-border)}.bg-accent{background-color:var(--el-accent)}.bg-base{background-color:var(--el-base)}.bg-base-active{background-color:var(--el-base-active)}.bg-base-border{background-color:var(--el-base-border)}.bg-base-hover{background-color:var(--el-base-hover)}.bg-cover{background-size:cover}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:4px}.p-1\\.5{padding:6px}.p-2{padding:8px}.p-3{padding:12px}.p-4{padding:16px}.px-1{padding-left:4px;padding-right:4px}.px-1\\.5{padding-left:6px;padding-right:6px}.px-2{padding-left:8px;padding-right:8px}.px-2\\.5{padding-left:10px;padding-right:10px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-8{padding-left:32px;padding-right:32px}.py-1\\.5{padding-top:6px;padding-bottom:6px}.py-2\\.5{padding-top:10px;padding-bottom:10px}.py-\\[calc\\(theme\\(spacing\\.2\\)-1px\\)\\]{padding-top:7px;padding-bottom:7px}.pb-1{padding-bottom:4px}.pb-3{padding-bottom:12px}.pl-16{padding-left:64px}.pr-16{padding-right:64px}.pr-3{padding-right:12px}.pt-1{padding-top:4px}.text-center{text-align:center}.text-\\[10px\\]{font-size:10px}.text-lg{font-size:18px;line-height:26px}.text-md{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.text-xs{font-size:12px;line-height:16px}.font-medium{font-weight:500}.text-accent-primary{color:var(--el-accent-primary)}.text-base-error{color:var(--el-base-error)}.text-base-primary{color:var(--el-base-primary)}.text-base-subtle{color:var(--el-base-subtle)}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-30{opacity:.3}.shadow-lg{--tw-shadow: 0 2px 40px 1px rgba(0, 0, 0, .12);--tw-shadow-colored: 0 2px 40px 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 2px 24px 1px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 24px 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[border-radius\\]{transition-property:border-radius;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[margin\\]{transition-property:margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,width\\,height\\,transform\\,flex-grow\\]{transition-property:opacity,width,height,transform,flex-grow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[transform\\,left\\,top\\]{transition-property:transform,left,top;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[transform\\,opacity\\]{transition-property:transform,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.overlay{position:absolute;inset:var(--el-overlay-padding);right:calc(var(--el-overlay-padding) + var(--removed-body-scroll-bar-size, 0px))}.focus-ring{--tw-ring-color: var(--el-accent);--tw-ring-offset-width: 2px;--tw-ring-offset-color: var(--el-base)}.focus-ring:focus-visible{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.animate-text{background-image:linear-gradient(75deg,var(--el-base-primary),var(--el-base-subtle),var(--el-base-primary),var(--el-base-subtle));background-size:300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:TextAnimation 2s linear infinite}@keyframes TextAnimation{0%{background-position:0 0}to{background-position:100% 0}}.\\!terms h6,.terms h6{font-size:12px;line-height:16px;font-weight:500;color:var(--el-base-primary)}.\\!terms h5,.terms h5{font-size:14px;line-height:20px;font-weight:500;color:var(--el-base-primary)}.\\!terms h4,.terms h4{font-size:16px;line-height:24px;font-weight:500;color:var(--el-base-primary)}.\\!terms h3,.terms h3{font-size:18px;line-height:26px;font-weight:500;color:var(--el-base-primary)}.\\!terms h2,.terms h2{font-size:20px;line-height:28px;font-weight:500;color:var(--el-base-primary)}.\\!terms h2,.terms h2{font-size:24px;line-height:30px;font-weight:500;color:var(--el-base-primary)}.\\[field-sizing\\:content\\]{field-sizing:content}.\\[line-height\\:var\\(--el-overlay-padding\\)\\]{line-height:var(--el-overlay-padding)}.\\[overflow-wrap\\:break-word\\]{overflow-wrap:break-word}:host,:root{--el-base: #ffffff;--el-base-hover: #f9fafb;--el-base-active: #f3f4f6;--el-base-border: #e5e7eb;--el-base-subtle: #6b7280;--el-base-primary: #000000;--el-base-error: #ef4444;--el-accent: #000000;--el-accent-hover: #1f2937;--el-accent-active: #374151;--el-accent-border: #4b5563;--el-accent-subtle: #6b7280;--el-accent-primary: #ffffff;--el-overlay-padding: 32px;--el-button-radius: 18px;--el-input-radius: 10px;--el-bubble-radius: 15px;--el-sheet-radius: calc(var(--el-button-radius) + 6px);--el-compact-sheet-radius: calc(var(--el-button-radius) + 12px);--el-dropdown-sheet-radius: calc(var(--el-input-radius) + 6px)}.dev-host,:host{pointer-events:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;font-size:16px;line-height:24px;color:var(--el-base-primary);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;scrollbar-color:#e5e7eb transparent}.placeholder\\:text-base-subtle::-moz-placeholder{color:var(--el-base-subtle)}.placeholder\\:text-base-subtle::placeholder{color:var(--el-base-subtle)}.hover\\:border-accent-hover:hover{border-color:var(--el-accent-hover)}.hover\\:bg-accent-hover:hover{background-color:var(--el-accent-hover)}.hover\\:bg-base-hover:hover{background-color:var(--el-base-hover)}.hover\\:opacity-50:hover{opacity:.5}.focus-visible\\:underline-offset-2:focus-visible{text-underline-offset:2px}.focus-visible\\:opacity-100:focus-visible{opacity:1}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.active\\:border-accent-active:active{border-color:var(--el-accent-active)}.active\\:bg-accent-active:active{background-color:var(--el-accent-active)}.active\\:bg-base-active:active{background-color:var(--el-base-active)}.data-hidden\\:-translate-y-4[data-shown=false]{--tw-translate-y: -16px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-hidden\\:translate-y-2[data-shown=false]{--tw-translate-y: 8px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-hidden\\:scale-100[data-shown=false]{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-hidden\\:scale-75[data-shown=false]{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-hidden\\:scale-90[data-shown=false]{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-hidden\\:opacity-0[data-shown=false]{opacity:0}.data-\\[highlighted\\]\\:bg-base-active[data-highlighted]{background-color:var(--el-base-active)}', qo = sr(function() {
39
- return /* @__PURE__ */ h("style", { children: Zo });
40
- });
38
+ ], qo = '@import"https://fonts.googleapis.com/css2?family=Inter:wght@400,500&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-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{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-3{bottom:-12px}.bottom-0{bottom:0}.bottom-20{bottom:80px}.left-0{left:0}.left-1\\/2{left:50%}.left-4{left:16px}.right-0{right:0}.top-0{top:0}.top-1\\/2{top:50%}.top-20{top:80px}.top-4{top:16px}.z-1{z-index:1}.z-10{z-index:10}.m-1{margin:4px}.-mx-0\\.5{margin-left:-2px;margin-right:-2px}.mx-1{margin-left:4px;margin-right:4px}.-mr-1\\.5{margin-right:-6px}.ml-auto{margin-left:auto}.mt-2{margin-top:8px}.block{display:block}.inline{display:inline}.\\!flex{display:flex!important}.flex{display:flex}.inline-flex{display:inline-flex}.contents{display:contents}.hidden{display:none}.h-11{height:44px}.h-16{height:64px}.h-4{height:16px}.h-48{height:192px}.h-5{height:20px}.h-6{height:24px}.h-9{height:36px}.h-\\[calc\\(100\\%-80px\\)\\]{height:calc(100% - 80px)}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[550px\\]{max-height:550px}.max-h-\\[8lh\\]{max-height:8lh}.max-h-\\[min\\(384px\\,var\\(--radix-select-content-available-height\\)\\)\\]{max-height:min(384px,var(--radix-select-content-available-height))}.min-h-min{min-height:-moz-min-content;min-height:min-content}.w-16{width:64px}.w-4{width:16px}.w-48{width:192px}.w-5{width:20px}.w-6{width:24px}.w-64{width:256px}.w-9{width:36px}.w-full{width:100%}.w-screen{width:100vw}.\\!min-w-60{min-width:240px!important}.min-w-0{min-width:0px}.min-w-60{min-width:240px}.min-w-9{min-width:36px}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.min-w-max{min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-moz-min-content;min-width:min-content}.max-w-64{max-width:256px}.max-w-\\[400px\\]{max-width:400px}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-bottom-left{transform-origin:bottom left}.origin-bottom-right{transform-origin:bottom right}.origin-top{transform-origin:top}.origin-top-left{transform-origin:top left}.origin-top-right{transform-origin:top right}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-\\[calc\\(var\\(--el-overlay-padding\\)\\)\\]{--tw-translate-y: calc(calc(var(--el-overlay-padding)) * -1);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\\/2{--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[calc\\(var\\(--el-overlay-padding\\)\\)\\]{--tw-translate-y: calc(var(--el-overlay-padding));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-180{--tw-rotate: -180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-150{--tw-scale-x: 1.5;--tw-scale-y: 1.5;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-\\[0\\.333\\]{--tw-scale-x: .333;--tw-scale-y: .333;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.gap-1{gap:4px}.gap-2{gap:8px}.gap-2\\.5{gap:10px}.gap-3{gap:12px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.rounded-\\[calc\\(var\\(--el-button-radius\\)\\+4px\\)\\]{border-radius:calc(var(--el-button-radius) + 4px)}.rounded-bubble{border-radius:var(--el-bubble-radius)}.rounded-button{border-radius:var(--el-button-radius)}.rounded-compact-sheet{border-radius:var(--el-compact-sheet-radius)}.rounded-dropdown-sheet{border-radius:var(--el-dropdown-sheet-radius)}.rounded-full{border-radius:9999px}.rounded-input{border-radius:var(--el-input-radius)}.rounded-sheet{border-radius:var(--el-sheet-radius)}.rounded-bl-\\[calc\\(var\\(--el-bubble-radius\\)\\/3\\)\\]{border-bottom-left-radius:calc(var(--el-bubble-radius) / 3)}.border{border-width:1px}.border-accent{border-color:var(--el-accent)}.border-base-border{border-color:var(--el-base-border)}.bg-accent{background-color:var(--el-accent)}.bg-base{background-color:var(--el-base)}.bg-base-active{background-color:var(--el-base-active)}.bg-base-border{background-color:var(--el-base-border)}.bg-base-hover{background-color:var(--el-base-hover)}.bg-cover{background-size:cover}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:4px}.p-1\\.5{padding:6px}.p-2{padding:8px}.p-3{padding:12px}.p-4{padding:16px}.px-1{padding-left:4px;padding-right:4px}.px-1\\.5{padding-left:6px;padding-right:6px}.px-2{padding-left:8px;padding-right:8px}.px-2\\.5{padding-left:10px;padding-right:10px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-8{padding-left:32px;padding-right:32px}.py-1\\.5{padding-top:6px;padding-bottom:6px}.py-2\\.5{padding-top:10px;padding-bottom:10px}.py-\\[calc\\(theme\\(spacing\\.2\\)-1px\\)\\]{padding-top:7px;padding-bottom:7px}.pb-1{padding-bottom:4px}.pb-3{padding-bottom:12px}.pl-16{padding-left:64px}.pr-16{padding-right:64px}.pr-3{padding-right:12px}.pt-1{padding-top:4px}.text-center{text-align:center}.text-\\[10px\\]{font-size:10px}.text-lg{font-size:18px;line-height:26px}.text-md{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.text-xs{font-size:12px;line-height:16px}.font-medium{font-weight:500}.text-accent-primary{color:var(--el-accent-primary)}.text-base-error{color:var(--el-base-error)}.text-base-primary{color:var(--el-base-primary)}.text-base-subtle{color:var(--el-base-subtle)}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-30{opacity:.3}.shadow-lg{--tw-shadow: 0 2px 40px 1px rgba(0, 0, 0, .12);--tw-shadow-colored: 0 2px 40px 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 2px 24px 1px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 24px 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[border-radius\\]{transition-property:border-radius;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[margin\\]{transition-property:margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,width\\,height\\,transform\\,flex-grow\\]{transition-property:opacity,width,height,transform,flex-grow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[transform\\,left\\,top\\]{transition-property:transform,left,top;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[transform\\,opacity\\]{transition-property:transform,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.overlay{position:absolute;inset:var(--el-overlay-padding);right:calc(var(--el-overlay-padding) + var(--removed-body-scroll-bar-size, 0px))}.focus-ring{--tw-ring-color: var(--el-accent);--tw-ring-offset-width: 2px;--tw-ring-offset-color: var(--el-base)}.focus-ring:focus-visible{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.animate-text{background-image:linear-gradient(75deg,var(--el-base-primary),var(--el-base-subtle),var(--el-base-primary),var(--el-base-subtle));background-size:300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:TextAnimation 2s linear infinite}@keyframes TextAnimation{0%{background-position:0 0}to{background-position:100% 0}}.\\!terms h6,.terms h6{font-size:12px;line-height:16px;font-weight:500;color:var(--el-base-primary)}.\\!terms h5,.terms h5{font-size:14px;line-height:20px;font-weight:500;color:var(--el-base-primary)}.\\!terms h4,.terms h4{font-size:16px;line-height:24px;font-weight:500;color:var(--el-base-primary)}.\\!terms h3,.terms h3{font-size:18px;line-height:26px;font-weight:500;color:var(--el-base-primary)}.\\!terms h2,.terms h2{font-size:20px;line-height:28px;font-weight:500;color:var(--el-base-primary)}.\\!terms h2,.terms h2{font-size:24px;line-height:30px;font-weight:500;color:var(--el-base-primary)}.\\[field-sizing\\:content\\]{field-sizing:content}.\\[line-height\\:var\\(--el-overlay-padding\\)\\]{line-height:var(--el-overlay-padding)}.\\[overflow-wrap\\:break-word\\]{overflow-wrap:break-word}.dev-host,:host{pointer-events:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;font-size:16px;line-height:24px;color:var(--el-base-primary);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;scrollbar-color:#e5e7eb transparent}.placeholder\\:text-base-subtle::-moz-placeholder{color:var(--el-base-subtle)}.placeholder\\:text-base-subtle::placeholder{color:var(--el-base-subtle)}.hover\\:border-accent-hover:hover{border-color:var(--el-accent-hover)}.hover\\:bg-accent-hover:hover{background-color:var(--el-accent-hover)}.hover\\:bg-base-hover:hover{background-color:var(--el-base-hover)}.hover\\:opacity-50:hover{opacity:.5}.focus-visible\\:underline-offset-2:focus-visible{text-underline-offset:2px}.focus-visible\\:opacity-100:focus-visible{opacity:1}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.active\\:border-accent-active:active{border-color:var(--el-accent-active)}.active\\:bg-accent-active:active{background-color:var(--el-accent-active)}.active\\:bg-base-active:active{background-color:var(--el-base-active)}.data-hidden\\:-translate-y-4[data-shown=false]{--tw-translate-y: -16px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-hidden\\:translate-y-2[data-shown=false]{--tw-translate-y: 8px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-hidden\\:scale-100[data-shown=false]{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-hidden\\:scale-75[data-shown=false]{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-hidden\\:scale-90[data-shown=false]{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-hidden\\:opacity-0[data-shown=false]{opacity:0}.data-\\[highlighted\\]\\:bg-base-active[data-highlighted]{background-color:var(--el-base-active)}', Dn = ["tiny", "compact", "full"];
39
+ function Qo(e) {
40
+ return Dn.includes(e) ? e : Dn[0];
41
+ }
42
+ const Jo = [
43
+ "top-left",
44
+ "top",
45
+ "top-right",
46
+ "bottom-left",
47
+ "bottom",
48
+ "bottom-right"
49
+ ];
50
+ function ea(e) {
51
+ return Jo.includes(e) ? e : "bottom-right";
52
+ }
53
+ const lr = {
54
+ main_label: "Need help?",
55
+ start_call: "Start a call",
56
+ start_chat: "Start a chat",
57
+ new_call: "New call",
58
+ end_call: "End",
59
+ mute_microphone: "Mute microphone",
60
+ change_language: "Change language",
61
+ collapse: "Collapse",
62
+ expand: "Expand",
63
+ copied: "Copied!",
64
+ accept_terms: "Accept",
65
+ dismiss_terms: "Cancel",
66
+ listening_status: "Listening",
67
+ speaking_status: "Talk to interrupt",
68
+ connecting_status: "Connecting",
69
+ chatting_status: "Chatting with AI Agent",
70
+ input_label: "Text message input",
71
+ input_placeholder: "Send a message",
72
+ input_placeholder_text_only: "Send a message",
73
+ input_placeholder_new_conversation: "Start a new conversation",
74
+ user_ended_conversation: "You ended the conversation",
75
+ agent_ended_conversation: "The agent ended the conversation",
76
+ conversation_id: "ID",
77
+ error_occurred: "An error occurred",
78
+ copy_id: "Copy ID"
79
+ }, ta = Object.keys(
80
+ lr
81
+ ), cr = {
82
+ base: "#ffffff",
83
+ base_hover: "#f9fafb",
84
+ base_active: "#f3f4f6",
85
+ base_border: "#e5e7eb",
86
+ base_subtle: "#6b7280",
87
+ base_primary: "#000000",
88
+ base_error: "#ef4444",
89
+ accent: "#000000",
90
+ accent_hover: "#1f2937",
91
+ accent_active: "#374151",
92
+ accent_border: "#4b5563",
93
+ accent_subtle: "#6b7280",
94
+ accent_primary: "#ffffff",
95
+ overlay_padding: 32,
96
+ button_radius: 18,
97
+ input_radius: 10,
98
+ bubble_radius: 15,
99
+ sheet_radius: "calc(var(--el-button-radius) + 6px)",
100
+ compact_sheet_radius: "calc(var(--el-button-radius) + 12px)",
101
+ dropdown_sheet_radius: "calc(var(--el-input-radius) + 6px)"
102
+ }, na = Object.keys(
103
+ cr
104
+ );
41
105
  function he(e) {
42
- const t = Yo(e);
106
+ const t = Xo(e);
43
107
  if (t == null)
44
108
  throw new Error(
45
109
  `${e.displayName} cannot be used outside of provider`
46
110
  );
47
111
  return t;
48
112
  }
49
- const lr = pe(null);
50
- function Qo({
113
+ const ur = pe(null);
114
+ function ra({
51
115
  value: e,
52
116
  children: t
53
117
  }) {
@@ -59,13 +123,45 @@ function Qo({
59
123
  );
60
124
  return rn.forEach((r) => {
61
125
  n[r].value = e[r];
62
- }), /* @__PURE__ */ h(lr.Provider, { value: n, children: t });
126
+ }), /* @__PURE__ */ h(ur.Provider, { value: n, children: t });
63
127
  }
64
- function Jo() {
65
- return he(lr);
128
+ function oa() {
129
+ return he(ur);
66
130
  }
67
131
  function H(e) {
68
- return Jo()[e];
132
+ return oa()[e];
133
+ }
134
+ const dr = pe(null);
135
+ function aa({
136
+ children: e
137
+ }) {
138
+ const t = H("server-location"), n = Re(() => {
139
+ const r = xe(() => ia(t.value));
140
+ return {
141
+ location: r,
142
+ serverUrl: xe(
143
+ () => r.value === "us" ? "https://api.us.elevenlabs.io" : "https://api.elevenlabs.io"
144
+ ),
145
+ webSocketUrl: xe(
146
+ () => r.value === "us" ? "wss://api.us.elevenlabs.io" : "wss://api.elevenlabs.io"
147
+ )
148
+ };
149
+ }, []);
150
+ return /* @__PURE__ */ h(dr.Provider, { value: n, children: e });
151
+ }
152
+ function fr() {
153
+ return he(dr);
154
+ }
155
+ function ia(e = "us") {
156
+ switch (e) {
157
+ case "us":
158
+ case "global":
159
+ return e;
160
+ default:
161
+ return console.warn(
162
+ `[ConversationalAI] Invalid server-location: ${e}. Defaulting to "us"`
163
+ ), "us";
164
+ }
69
165
  }
70
166
  const pt = {
71
167
  en: { name: "English", flagCode: "us", languageCode: "en" },
@@ -108,84 +204,39 @@ const pt = {
108
204
  function Yt(e) {
109
205
  return Object.keys(pt).includes(e ?? "");
110
206
  }
111
- const Dn = ["tiny", "compact", "full"];
112
- function ea(e) {
113
- return Dn.includes(e) ? e : Dn[0];
114
- }
115
- const ta = [
116
- "top-left",
117
- "top",
118
- "top-right",
119
- "bottom-left",
120
- "bottom",
121
- "bottom-right"
122
- ];
123
- function na(e) {
124
- return ta.includes(e) ? e : "bottom-right";
125
- }
126
- const cr = {
127
- main_label: "Need help?",
128
- start_call: "Start a call",
129
- start_chat: "Start a chat",
130
- new_call: "New call",
131
- end_call: "End",
132
- mute_microphone: "Mute microphone",
133
- change_language: "Change language",
134
- collapse: "Collapse",
135
- expand: "Expand",
136
- copied: "Copied!",
137
- accept_terms: "Accept",
138
- dismiss_terms: "Cancel",
139
- listening_status: "Listening",
140
- speaking_status: "Talk to interrupt",
141
- connecting_status: "Connecting",
142
- chatting_status: "Chatting with AI Agent",
143
- input_label: "Text message input",
144
- input_placeholder: "Send a message",
145
- input_placeholder_text_only: "Send a message",
146
- input_placeholder_new_conversation: "Start a new conversation",
147
- user_ended_conversation: "You ended the conversation",
148
- agent_ended_conversation: "The agent ended the conversation",
149
- conversation_id: "ID",
150
- error_occurred: "An error occurred",
151
- copy_id: "Copy ID"
152
- }, ra = Object.keys(
153
- cr
154
- ), ur = pe(null);
155
- function oa({
207
+ const pr = pe(null);
208
+ function sa({
156
209
  children: e
157
210
  }) {
158
- const t = H("server-location"), n = Re(() => {
159
- const r = xe(() => aa(t.value));
160
- return {
161
- location: r,
162
- serverUrl: xe(
163
- () => r.value === "us" ? "https://api.us.elevenlabs.io" : "https://api.elevenlabs.io"
211
+ const t = q(), n = H("language"), r = H("override-language"), o = ue(
212
+ n.peek() ?? t.peek().language
213
+ ), a = Y(
214
+ () => (t.value.supported_language_overrides ?? []).filter(
215
+ Yt
216
+ )
217
+ ), i = Y(
218
+ () => a.value.map((l) => pt[l]).sort((l, c) => l.name.localeCompare(c.name))
219
+ ), s = Re(
220
+ () => ({
221
+ language: xe(
222
+ () => Yt(r.value) ? pt[r.value] : Yt(o.value) && a.value.includes(o.value) ? pt[o.value] : pt[t.value.language]
164
223
  ),
165
- webSocketUrl: xe(
166
- () => r.value === "us" ? "wss://api.us.elevenlabs.io" : "wss://api.elevenlabs.io"
167
- )
168
- };
169
- }, []);
170
- return /* @__PURE__ */ h(ur.Provider, { value: n, children: e });
171
- }
172
- function dr() {
173
- return he(ur);
224
+ setLanguage: (l) => {
225
+ o.value = l;
226
+ },
227
+ options: i,
228
+ showPicker: xe(() => i.value.length > 0)
229
+ }),
230
+ []
231
+ );
232
+ return /* @__PURE__ */ h(pr.Provider, { value: s, children: e });
174
233
  }
175
- function aa(e = "us") {
176
- switch (e) {
177
- case "us":
178
- case "global":
179
- return e;
180
- default:
181
- return console.warn(
182
- `[ConversationalAI] Invalid server-location: ${e}. Defaulting to "us"`
183
- ), "us";
184
- }
234
+ function rt() {
235
+ return he(pr);
185
236
  }
186
- const fr = pe(null);
187
- function ia({ children: e }) {
188
- const t = Q(), n = X(
237
+ const hr = pe(null);
238
+ function la({ children: e }) {
239
+ const t = q(), n = Y(
189
240
  () => t.value.mic_muting_enabled ?? !1
190
241
  ), r = ue(!1), o = Re(
191
242
  () => ({
@@ -203,16 +254,16 @@ function ia({ children: e }) {
203
254
  }),
204
255
  []
205
256
  );
206
- return /* @__PURE__ */ h(fr.Provider, { value: o, children: e });
257
+ return /* @__PURE__ */ h(hr.Provider, { value: o, children: e });
207
258
  }
208
- function pr() {
209
- return he(fr);
259
+ function vr() {
260
+ return he(hr);
210
261
  }
211
- const hr = pe(null);
212
- function sa({
262
+ const gr = pe(null);
263
+ function ca({
213
264
  children: e
214
265
  }) {
215
- const { language: t } = rt(), n = H("override-prompt"), r = H("override-first-message"), o = H("override-voice-id"), a = H("override-text-only"), i = X(() => ({
266
+ const { language: t } = rt(), n = H("override-prompt"), r = H("override-first-message"), o = H("override-voice-id"), a = H("override-text-only"), i = Y(() => ({
216
267
  agent: {
217
268
  prompt: {
218
269
  prompt: n.value
@@ -226,7 +277,7 @@ function sa({
226
277
  conversation: {
227
278
  textOnly: Qe(a.value) ?? void 0
228
279
  }
229
- })), s = H("dynamic-variables"), l = X(() => {
280
+ })), s = H("dynamic-variables"), l = Y(() => {
230
281
  if (s.value)
231
282
  try {
232
283
  return JSON.parse(s.value);
@@ -235,7 +286,7 @@ function sa({
235
286
  `[ConversationalAI] Cannot parse dynamic-variables: ${m == null ? void 0 : m.message}`
236
287
  );
237
288
  }
238
- }), { webSocketUrl: c } = dr(), d = H("agent-id"), p = H("signed-url"), g = wn(), v = X(() => {
289
+ }), { webSocketUrl: c } = fr(), d = H("agent-id"), p = H("signed-url"), g = wn(), v = Y(() => {
239
290
  const m = {
240
291
  dynamicVariables: l.value,
241
292
  overrides: i.value,
@@ -254,19 +305,19 @@ function sa({
254
305
  ), null);
255
306
  });
256
307
  return v.value ? /* @__PURE__ */ h(
257
- hr.Provider,
308
+ gr.Provider,
258
309
  {
259
310
  value: v,
260
311
  children: e
261
312
  }
262
313
  ) : null;
263
314
  }
264
- function la() {
265
- return he(hr);
315
+ function ua() {
316
+ return he(gr);
266
317
  }
267
- const vr = pe(null);
268
- function ca({ children: e }) {
269
- const t = Q(), n = Re(() => {
318
+ const mr = pe(null);
319
+ function da({ children: e }) {
320
+ const t = q(), n = Re(() => {
270
321
  const r = t.peek().terms_key, o = r ? !!localStorage.getItem(r) : !1, a = le(!1), i = le(o), s = xe(
271
322
  () => !t.value.terms_html || i.value
272
323
  );
@@ -289,14 +340,14 @@ function ca({ children: e }) {
289
340
  }
290
341
  };
291
342
  }, []);
292
- return /* @__PURE__ */ h(vr.Provider, { value: n, children: e });
343
+ return /* @__PURE__ */ h(mr.Provider, { value: n, children: e });
293
344
  }
294
345
  function Bt() {
295
- return he(vr);
346
+ return he(mr);
296
347
  }
297
- const gr = pe(null);
298
- function ua({ children: e }) {
299
- const t = da();
348
+ const wr = pe(null);
349
+ function fa({ children: e }) {
350
+ const t = pa();
300
351
  return ze(() => {
301
352
  if (t.conversationTextOnly.value === !0) {
302
353
  t.transcript.value;
@@ -311,13 +362,13 @@ function ua({ children: e }) {
311
362
  clearTimeout(n);
312
363
  };
313
364
  }
314
- }), /* @__PURE__ */ h(gr.Provider, { value: t, children: e });
365
+ }), /* @__PURE__ */ h(wr.Provider, { value: t, children: e });
315
366
  }
316
367
  function ne() {
317
- return he(gr);
368
+ return he(wr);
318
369
  }
319
- function da() {
320
- const e = we(null), t = we(null), n = Q(), r = wr(), o = Bt(), a = la(), { isMuted: i } = pr();
370
+ function pa() {
371
+ const e = we(null), t = we(null), n = q(), r = xr(), o = Bt(), a = ua(), { isMuted: i } = vr();
321
372
  return ze(() => {
322
373
  var l;
323
374
  const s = i.value;
@@ -347,7 +398,7 @@ function da() {
347
398
  let y = structuredClone(a.peek());
348
399
  x && n.value.supports_text_only && (y.textOnly = !0, n.value.text_only || (y.overrides ?? (y.overrides = {}), (E = y.overrides).conversation ?? (E.conversation = {}), y.overrides.conversation.textOnly = !0));
349
400
  try {
350
- y = fa(b, y);
401
+ y = ha(b, y);
351
402
  } catch (T) {
352
403
  console.error(
353
404
  "[ConversationalAI] Error triggering call event:",
@@ -364,7 +415,7 @@ function da() {
364
415
  }
365
416
  ] : [];
366
417
  try {
367
- if (t.current = Go.startSession({
418
+ if (t.current = Zo.startSession({
368
419
  ...y,
369
420
  onModeChange: (C) => {
370
421
  c.value = C.mode;
@@ -375,13 +426,13 @@ function da() {
375
426
  onCanSendFeedbackChange: (C) => {
376
427
  v.value = C.canSendFeedback;
377
428
  },
378
- onMessage: ({ source: C, message: P }) => {
379
- w.peek() === !0 && C === "ai" && P === r.peek() || (m.value = [
429
+ onMessage: ({ source: C, message: R }) => {
430
+ w.peek() === !0 && C === "ai" && R === r.peek() || (m.value = [
380
431
  ...m.value,
381
432
  {
382
433
  type: "message",
383
434
  role: C,
384
- message: P,
435
+ message: R,
385
436
  isText: !1,
386
437
  conversationIndex: f.peek()
387
438
  }
@@ -460,7 +511,7 @@ function da() {
460
511
  };
461
512
  }, [a, i]);
462
513
  }
463
- function fa(e, t) {
514
+ function ha(e, t) {
464
515
  try {
465
516
  const n = new CustomEvent("elevenlabs-convai:call", {
466
517
  bubbles: !0,
@@ -472,11 +523,11 @@ function fa(e, t) {
472
523
  return console.error("[ConversationalAI] Could not trigger call event:", n), t;
473
524
  }
474
525
  }
475
- const mr = pe(
526
+ const br = pe(
476
527
  null
477
528
  );
478
- function pa({ children: e }) {
479
- const { serverUrl: t } = dr(), n = H("agent-id"), r = H("override-config"), o = ue(null);
529
+ function va({ children: e }) {
530
+ const { serverUrl: t } = fr(), n = H("agent-id"), r = H("override-config"), o = ue(null);
480
531
  ze(() => {
481
532
  if (r.value)
482
533
  try {
@@ -495,7 +546,7 @@ function pa({ children: e }) {
495
546
  return;
496
547
  }
497
548
  const v = new AbortController();
498
- return ha(n.value, t.value, v.signal).then((m) => {
549
+ return ga(n.value, t.value, v.signal).then((m) => {
499
550
  v.signal.aborted || (o.value = m);
500
551
  }).catch((m) => {
501
552
  console.error(
@@ -505,45 +556,45 @@ function pa({ children: e }) {
505
556
  v.abort();
506
557
  };
507
558
  });
508
- const a = H("variant"), i = H("placement"), s = H("terms-key"), l = H("mic-muting"), c = H("transcript"), d = H("text-input"), p = H("override-text-only"), g = X(() => {
559
+ const a = H("variant"), i = H("placement"), s = H("terms-key"), l = H("mic-muting"), c = H("transcript"), d = H("text-input"), p = H("override-text-only"), g = Y(() => {
509
560
  if (!o.value)
510
561
  return null;
511
562
  const v = a.value ?? o.value.variant, m = i.value ?? o.value.placement, f = s.value ?? o.value.terms_key, w = Qe(p.value) ?? o.value.text_only ?? !1, b = Qe(l.value) ?? o.value.mic_muting_enabled, x = Qe(c.value) ?? o.value.transcript_enabled, y = Qe(d.value) ?? o.value.text_input_enabled;
512
563
  return {
513
564
  ...o.value,
514
- variant: ea(v),
515
- placement: na(m),
565
+ variant: Qo(v),
566
+ placement: ea(m),
516
567
  terms_key: f,
517
568
  mic_muting_enabled: !w && b,
518
569
  transcript_enabled: w || x,
519
570
  text_input_enabled: w || y
520
571
  };
521
572
  });
522
- return g.value ? /* @__PURE__ */ h(mr.Provider, { value: g, children: e }) : null;
573
+ return g.value ? /* @__PURE__ */ h(br.Provider, { value: g, children: e }) : null;
523
574
  }
524
- function Q() {
525
- return he(mr);
575
+ function q() {
576
+ return he(br);
526
577
  }
527
578
  function wn() {
528
- const e = H("override-text-only"), t = Q();
529
- return X(
579
+ const e = H("override-text-only"), t = q();
580
+ return Y(
530
581
  () => Qe(e.value) ?? t.value.text_only ?? !1
531
582
  );
532
583
  }
533
584
  function zt() {
534
585
  const e = wn(), { conversationTextOnly: t } = ne();
535
- return X(() => t.value ?? e.value);
586
+ return Y(() => t.value ?? e.value);
536
587
  }
537
- function wr() {
538
- const e = H("override-first-message"), t = Q(), { language: n } = rt();
539
- return X(
588
+ function xr() {
589
+ const e = H("override-first-message"), t = q(), { language: n } = rt();
590
+ return Y(
540
591
  () => {
541
592
  var r, o;
542
593
  return e.value ?? ((o = (r = t.value.language_presets) == null ? void 0 : r[n.value.languageCode]) == null ? void 0 : o.first_message) ?? t.value.first_message ?? null;
543
594
  }
544
595
  );
545
596
  }
546
- async function ha(e, t, n) {
597
+ async function ga(e, t, n) {
547
598
  const o = await (await fetch(
548
599
  `${t}/v1/convai/agents/${e}/widget`,
549
600
  {
@@ -554,39 +605,30 @@ async function ha(e, t, n) {
554
605
  throw new Error("Response does not contain widget_config");
555
606
  return o.widget_config;
556
607
  }
557
- const br = pe(null);
558
- function va({
559
- children: e
560
- }) {
561
- const t = Q(), n = H("language"), r = H("override-language"), o = ue(
562
- n.peek() ?? t.peek().language
563
- ), a = X(
564
- () => (t.value.supported_language_overrides ?? []).filter(
565
- Yt
566
- )
567
- ), i = X(
568
- () => a.value.map((l) => pt[l]).sort((l, c) => l.name.localeCompare(c.name))
569
- ), s = Re(
570
- () => ({
571
- language: xe(
572
- () => Yt(r.value) ? pt[r.value] : Yt(o.value) && a.value.includes(o.value) ? pt[o.value] : pt[t.value.language]
573
- ),
574
- setLanguage: (l) => {
575
- o.value = l;
576
- },
577
- options: i,
578
- showPicker: xe(() => i.value.length > 0)
579
- }),
580
- []
581
- );
582
- return /* @__PURE__ */ h(br.Provider, { value: s, children: e });
608
+ const ma = sr(function() {
609
+ const t = q(), n = Y(() => {
610
+ const r = t.value.styles;
611
+ return `:host, :root {
612
+ ${na.map(
613
+ (o) => `${wa(o)}: ${ba((r == null ? void 0 : r[o]) ?? cr[o])};`
614
+ ).join(`
615
+ `)}
616
+ }`;
617
+ });
618
+ return /* @__PURE__ */ P("style", { children: [
619
+ n,
620
+ qo
621
+ ] });
622
+ });
623
+ function wa(e) {
624
+ return `--el-${e.replace(/_/g, "-")}`;
583
625
  }
584
- function rt() {
585
- return he(br);
626
+ function ba(e) {
627
+ return typeof e == "number" ? `${e}px` : e;
586
628
  }
587
- const xr = pe(null);
588
- function ga({ children: e }) {
589
- const t = Q(), { language: n } = rt(), r = H("text-contents"), o = X(() => {
629
+ const yr = pe(null);
630
+ function xa({ children: e }) {
631
+ const t = q(), { language: n } = rt(), r = H("text-contents"), o = Y(() => {
590
632
  try {
591
633
  if (r.value) {
592
634
  const i = JSON.parse(r.value);
@@ -598,31 +640,31 @@ function ga({ children: e }) {
598
640
  }
599
641
  return {};
600
642
  }), a = Re(() => Object.fromEntries(
601
- ra.map((i) => [
643
+ ta.map((i) => [
602
644
  i,
603
645
  xe(
604
646
  () => {
605
647
  var s, l, c, d;
606
- return o.value[i] ?? ((c = (l = (s = t.value.language_presets) == null ? void 0 : s[n.value.languageCode]) == null ? void 0 : l.text_contents) == null ? void 0 : c[i]) ?? ((d = t.value.text_contents) == null ? void 0 : d[i]) ?? cr[i];
648
+ return o.value[i] ?? ((c = (l = (s = t.value.language_presets) == null ? void 0 : s[n.value.languageCode]) == null ? void 0 : l.text_contents) == null ? void 0 : c[i]) ?? ((d = t.value.text_contents) == null ? void 0 : d[i]) ?? lr[i];
607
649
  }
608
650
  )
609
651
  ])
610
652
  ), []);
611
- return /* @__PURE__ */ h(xr.Provider, { value: a, children: e });
653
+ return /* @__PURE__ */ h(yr.Provider, { value: a, children: e });
612
654
  }
613
655
  function re() {
614
- return he(xr);
656
+ return he(yr);
615
657
  }
616
- const yr = pe(null);
617
- function ma({ children: e }) {
618
- const t = Q(), n = H("avatar-image-url"), r = H("avatar-orb-color-1"), o = H("avatar-orb-color-2"), a = ue(""), i = X(() => n.value ? {
658
+ const Cr = pe(null);
659
+ function ya({ children: e }) {
660
+ const t = q(), n = H("avatar-image-url"), r = H("avatar-orb-color-1"), o = H("avatar-orb-color-2"), a = ue(""), i = Y(() => n.value ? {
619
661
  type: "image",
620
662
  url: n.value
621
663
  } : r.value && o.value ? {
622
664
  type: "orb",
623
665
  color_1: r.value,
624
666
  color_2: o.value
625
- } : t.value.avatar), s = X(() => {
667
+ } : t.value.avatar), s = Y(() => {
626
668
  switch (i.value.type) {
627
669
  case "url":
628
670
  return i.value.custom_url;
@@ -632,30 +674,30 @@ function ma({ children: e }) {
632
674
  return i.value.url;
633
675
  }
634
676
  }), l = Re(() => ({ config: i, previewUrl: s, canvasUrl: a }), []);
635
- return /* @__PURE__ */ h(yr.Provider, { value: l, children: e });
677
+ return /* @__PURE__ */ h(Cr.Provider, { value: l, children: e });
636
678
  }
637
679
  function bn() {
638
- return he(yr);
680
+ return he(Cr);
639
681
  }
640
- const Cr = pe(null);
682
+ const Sr = pe(null);
641
683
  function yt({ children: e, ...t }) {
642
684
  const [n, r] = be(null);
643
- return /* @__PURE__ */ h("div", { ref: r, ...t, children: n && /* @__PURE__ */ h(Cr.Provider, { value: n, children: e }) });
685
+ return /* @__PURE__ */ h("div", { ref: r, ...t, children: n && /* @__PURE__ */ h(Sr.Provider, { value: n, children: e }) });
644
686
  }
645
- function wa() {
646
- return he(Cr);
687
+ function Ca() {
688
+ return he(Sr);
647
689
  }
648
690
  function xn(e) {
649
691
  return e && typeof e == "object" && "peek" in e;
650
692
  }
651
- function ba(e) {
693
+ function Sa(e) {
652
694
  const t = xn(e), n = ue(t ? e.peek() : e);
653
695
  return t ? e : (n.value = e, n);
654
696
  }
655
- function Sr(e) {
697
+ function Er(e) {
656
698
  return xn(e) ? e.value : e;
657
699
  }
658
- function xa(e) {
700
+ function Ea(e) {
659
701
  return xn(e) ? e.peek() : e;
660
702
  }
661
703
  function Bn(e, t) {
@@ -663,7 +705,7 @@ function Bn(e, t) {
663
705
  return e(t);
664
706
  e != null && (e.current = t);
665
707
  }
666
- function Er(...e) {
708
+ function kr(...e) {
667
709
  return (t) => {
668
710
  let n = !1;
669
711
  const r = e.map((o) => {
@@ -680,12 +722,12 @@ function Er(...e) {
680
722
  };
681
723
  }
682
724
  function Z(...e) {
683
- return u.useCallback(Er(...e), e);
725
+ return u.useCallback(kr(...e), e);
684
726
  }
685
727
  // @__NO_SIDE_EFFECTS__
686
728
  function vt(e) {
687
- const t = /* @__PURE__ */ ya(e), n = u.forwardRef((r, o) => {
688
- const { children: a, ...i } = r, s = u.Children.toArray(a), l = s.find(Sa);
729
+ const t = /* @__PURE__ */ ka(e), n = u.forwardRef((r, o) => {
730
+ const { children: a, ...i } = r, s = u.Children.toArray(a), l = s.find(Aa);
689
731
  if (l) {
690
732
  const c = l.props.children, d = s.map((p) => p === l ? u.Children.count(c) > 1 ? u.Children.only(null) : u.isValidElement(c) ? c.props.children : null : p);
691
733
  return /* @__PURE__ */ k(t, { ...i, ref: o, children: u.isValidElement(c) ? u.cloneElement(c, void 0, d) : null });
@@ -694,24 +736,24 @@ function vt(e) {
694
736
  });
695
737
  return n.displayName = `${e}.Slot`, n;
696
738
  }
697
- var kr = /* @__PURE__ */ vt("Slot");
739
+ var Tr = /* @__PURE__ */ vt("Slot");
698
740
  // @__NO_SIDE_EFFECTS__
699
- function ya(e) {
741
+ function ka(e) {
700
742
  const t = u.forwardRef((n, r) => {
701
743
  const { children: o, ...a } = n;
702
744
  if (u.isValidElement(o)) {
703
- const i = ka(o), s = Ea(a, o.props);
704
- return o.type !== u.Fragment && (s.ref = r ? Er(r, i) : i), u.cloneElement(o, s);
745
+ const i = Ra(o), s = Pa(a, o.props);
746
+ return o.type !== u.Fragment && (s.ref = r ? kr(r, i) : i), u.cloneElement(o, s);
705
747
  }
706
748
  return u.Children.count(o) > 1 ? u.Children.only(null) : null;
707
749
  });
708
750
  return t.displayName = `${e}.SlotClone`, t;
709
751
  }
710
- var Ca = Symbol("radix.slottable");
711
- function Sa(e) {
712
- return u.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ca;
752
+ var Ta = Symbol("radix.slottable");
753
+ function Aa(e) {
754
+ return u.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ta;
713
755
  }
714
- function Ea(e, t) {
756
+ function Pa(e, t) {
715
757
  const n = { ...t };
716
758
  for (const r in t) {
717
759
  const o = e[r], a = t[r];
@@ -721,13 +763,13 @@ function Ea(e, t) {
721
763
  }
722
764
  return { ...e, ...n };
723
765
  }
724
- function ka(e) {
766
+ function Ra(e) {
725
767
  var r, o;
726
768
  let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
727
769
  return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
728
770
  }
729
771
  const Xt = window.matchMedia("(prefers-reduced-motion: reduce)");
730
- function Tr() {
772
+ function Ar() {
731
773
  const e = ue(Xt.matches);
732
774
  return Oe(() => {
733
775
  const t = (n) => {
@@ -736,7 +778,7 @@ function Tr() {
736
778
  return Xt.addEventListener("change", t), () => Xt.removeEventListener("change", t);
737
779
  }, []), e;
738
780
  }
739
- function Ar({ onStart: e, onEnd: t }) {
781
+ function Pr({ onStart: e, onEnd: t }) {
740
782
  const n = we();
741
783
  n.current ?? (n.current = /* @__PURE__ */ new Set());
742
784
  const r = we(e);
@@ -762,29 +804,29 @@ function Ar({ onStart: e, onEnd: t }) {
762
804
  };
763
805
  }
764
806
  function ce(e) {
765
- const t = Tr().value ? Ta : Aa;
807
+ const t = Ar().value ? Ia : _a;
766
808
  return /* @__PURE__ */ h(t, { ...e });
767
809
  }
768
- function Ta({ active: e, ...t }) {
769
- return Sr(e) ? /* @__PURE__ */ h(kr, { "data-shown": !0, ...t }) : null;
810
+ function Ia({ active: e, ...t }) {
811
+ return Er(e) ? /* @__PURE__ */ h(Tr, { "data-shown": !0, ...t }) : null;
770
812
  }
771
- function Aa({
813
+ function _a({
772
814
  active: e,
773
815
  initial: t = e,
774
816
  ...n
775
817
  }) {
776
- const r = ba(e), o = ue(xa(t));
818
+ const r = Sa(e), o = ue(Ea(t));
777
819
  ze(() => {
778
820
  r.value && (o.value = r.value);
779
821
  });
780
- const { handlers: a } = Ar({
822
+ const { handlers: a } = Pr({
781
823
  onEnd: () => {
782
824
  o.value = r.value;
783
825
  }
784
826
  });
785
- return !r.value && !o.value ? null : /* @__PURE__ */ h(kr, { "data-shown": r.value && o.value, ...a, ...n });
827
+ return !r.value && !o.value ? null : /* @__PURE__ */ h(Tr, { "data-shown": r.value && o.value, ...a, ...n });
786
828
  }
787
- const Pa = `#version 300 es
829
+ const Na = `#version 300 es
788
830
  precision highp float;
789
831
 
790
832
  uniform float uTime;
@@ -948,7 +990,7 @@ void main() {
948
990
 
949
991
  outColor = color;
950
992
  }
951
- `, Ra = `#version 300 es
993
+ `, Oa = `#version 300 es
952
994
  precision highp float;
953
995
 
954
996
  in vec2 position;
@@ -959,7 +1001,7 @@ void main() {
959
1001
  vUv = position * 0.5 + 0.5;
960
1002
  gl_Position = vec4(position, 0, 1);
961
1003
  }
962
- `, zn = 0, Ia = new Float32Array([
1004
+ `, zn = 0, Ma = new Float32Array([
963
1005
  -1,
964
1006
  1,
965
1007
  -1,
@@ -968,7 +1010,7 @@ void main() {
968
1010
  1,
969
1011
  1,
970
1012
  -1
971
- ]), Na = "https://storage.googleapis.com/eleven-public-cdn/images/perlin-noise.png", ge = class ge {
1013
+ ]), La = "https://storage.googleapis.com/eleven-public-cdn/images/perlin-noise.png", ge = class ge {
972
1014
  constructor(t) {
973
1015
  J(this, "gl");
974
1016
  J(this, "program");
@@ -1003,7 +1045,7 @@ void main() {
1003
1045
  depth: !1,
1004
1046
  stencil: !1
1005
1047
  });
1006
- this.gl = n, this.program = this.setupProgram(Pa, Ra);
1048
+ this.gl = n, this.program = this.setupProgram(Na, Oa);
1007
1049
  const r = n.createTexture();
1008
1050
  n.bindTexture(n.TEXTURE_2D, r), n.texImage2D(
1009
1051
  n.TEXTURE_2D,
@@ -1015,9 +1057,9 @@ void main() {
1015
1057
  n.RGBA,
1016
1058
  n.UNSIGNED_BYTE,
1017
1059
  new Uint8Array([128, 128, 128, 255])
1018
- ), ge.noiseImage || (ge.noiseImage = new Image(), ge.noiseImage.crossOrigin = "anonymous", ge.noiseImage.src = Na), ge.noiseImage.complete ? this.copyNoiseImage() : ge.noiseImage.addEventListener("load", this.copyNoiseImage);
1060
+ ), ge.noiseImage || (ge.noiseImage = new Image(), ge.noiseImage.crossOrigin = "anonymous", ge.noiseImage.src = La), ge.noiseImage.complete ? this.copyNoiseImage() : ge.noiseImage.addEventListener("load", this.copyNoiseImage);
1019
1061
  const o = n.createBuffer();
1020
- n.bindBuffer(n.ARRAY_BUFFER, o), n.bufferData(n.ARRAY_BUFFER, Ia, n.STATIC_DRAW), n.vertexAttribPointer(zn, 2, n.FLOAT, !1, 0, 0), n.enableVertexAttribArray(zn), this.updateColors("#2792DC", "#9CE6E6"), this.resizeObserver = new ResizeObserver((i) => {
1062
+ n.bindBuffer(n.ARRAY_BUFFER, o), n.bufferData(n.ARRAY_BUFFER, Ma, n.STATIC_DRAW), n.vertexAttribPointer(zn, 2, n.FLOAT, !1, 0, 0), n.enableVertexAttribArray(zn), this.updateColors("#2792DC", "#9CE6E6"), this.resizeObserver = new ResizeObserver((i) => {
1021
1063
  const s = i[0], l = s.devicePixelContentBoxSize ? s.devicePixelContentBoxSize[0] : s.contentBoxSize[0];
1022
1064
  t.width = Math.min(512, l.inlineSize), t.height = Math.min(512, l.blockSize), this.updateViewport();
1023
1065
  });
@@ -1086,7 +1128,7 @@ void main() {
1086
1128
  };
1087
1129
  J(ge, "noiseImage");
1088
1130
  let on = ge;
1089
- const _a = {
1131
+ const Da = {
1090
1132
  sm: "w-9 h-9",
1091
1133
  lg: "w-48 h-48"
1092
1134
  };
@@ -1106,10 +1148,10 @@ function ot({ size: e = "sm", className: t }) {
1106
1148
  cancelAnimationFrame(d);
1107
1149
  };
1108
1150
  });
1109
- const c = X(() => ({
1151
+ const c = Y(() => ({
1110
1152
  backgroundImage: i.value.type === "image" ? `url(${i.value.url})` : i.value.type === "url" ? `url(${i.value.custom_url})` : void 0
1111
1153
  }));
1112
- return /* @__PURE__ */ I("div", { className: j("relative shrink-0", _a[e], t), children: [
1154
+ return /* @__PURE__ */ P("div", { className: j("relative shrink-0", Da[e], t), children: [
1113
1155
  /* @__PURE__ */ h(
1114
1156
  "div",
1115
1157
  {
@@ -1124,7 +1166,7 @@ function ot({ size: e = "sm", className: t }) {
1124
1166
  style: c,
1125
1167
  className: "absolute inset-0 rounded-full overflow-hidden bg-base bg-cover",
1126
1168
  children: i.value.type === "orb" && /* @__PURE__ */ h(
1127
- Oa,
1169
+ Ba,
1128
1170
  {
1129
1171
  color1: i.value.color_1,
1130
1172
  color2: i.value.color_2
@@ -1134,7 +1176,7 @@ function ot({ size: e = "sm", className: t }) {
1134
1176
  )
1135
1177
  ] });
1136
1178
  }
1137
- function Oa({ color1: e, color2: t }) {
1179
+ function Ba({ color1: e, color2: t }) {
1138
1180
  const { canvasUrl: n } = bn(), [r, o] = be(null);
1139
1181
  Oe(() => {
1140
1182
  r && (r.updateColors(e, t), r.render(), n.value = r.toDataURL());
@@ -1151,32 +1193,32 @@ function Oa({ color1: e, color2: t }) {
1151
1193
  );
1152
1194
  return /* @__PURE__ */ h("canvas", { className: "w-full h-full", ref: a });
1153
1195
  }
1154
- const Ma = {
1155
- phone: Da,
1156
- "phone-off": Ba,
1157
- chat: za,
1158
- mic: Fa,
1159
- "mic-off": Va,
1160
- check: Ua,
1161
- "chevron-down": Wa,
1162
- "chevron-up": $a
1163
- }, La = {
1196
+ const za = {
1197
+ phone: Va,
1198
+ "phone-off": $a,
1199
+ chat: Wa,
1200
+ mic: Ua,
1201
+ "mic-off": Ha,
1202
+ check: Xa,
1203
+ "chevron-down": ja,
1204
+ "chevron-up": Ya
1205
+ }, Fa = {
1164
1206
  sm: "text-xs",
1165
1207
  md: "text-lg"
1166
1208
  };
1167
1209
  function Je({ name: e, size: t = "md", className: n }) {
1168
- const r = Ma[e];
1210
+ const r = za[e];
1169
1211
  return /* @__PURE__ */ h(
1170
1212
  "slot",
1171
1213
  {
1172
1214
  name: `icon-${e}`,
1173
- className: j("flex", La[t], n),
1215
+ className: j("flex", Fa[t], n),
1174
1216
  "aria-hidden": !0,
1175
1217
  children: /* @__PURE__ */ h(r, {})
1176
1218
  }
1177
1219
  );
1178
1220
  }
1179
- function Da(e) {
1221
+ function Va(e) {
1180
1222
  return /* @__PURE__ */ h(
1181
1223
  "svg",
1182
1224
  {
@@ -1190,8 +1232,8 @@ function Da(e) {
1190
1232
  }
1191
1233
  );
1192
1234
  }
1193
- function Ba(e) {
1194
- return /* @__PURE__ */ I(
1235
+ function $a(e) {
1236
+ return /* @__PURE__ */ P(
1195
1237
  "svg",
1196
1238
  {
1197
1239
  height: "1em",
@@ -1207,7 +1249,7 @@ function Ba(e) {
1207
1249
  }
1208
1250
  );
1209
1251
  }
1210
- function za(e) {
1252
+ function Wa(e) {
1211
1253
  return /* @__PURE__ */ h(
1212
1254
  "svg",
1213
1255
  {
@@ -1228,8 +1270,8 @@ function za(e) {
1228
1270
  }
1229
1271
  );
1230
1272
  }
1231
- function Fa(e) {
1232
- return /* @__PURE__ */ I(
1273
+ function Ua(e) {
1274
+ return /* @__PURE__ */ P(
1233
1275
  "svg",
1234
1276
  {
1235
1277
  height: "1em",
@@ -1245,8 +1287,8 @@ function Fa(e) {
1245
1287
  }
1246
1288
  );
1247
1289
  }
1248
- function Va(e) {
1249
- return /* @__PURE__ */ I(
1290
+ function Ha(e) {
1291
+ return /* @__PURE__ */ P(
1250
1292
  "svg",
1251
1293
  {
1252
1294
  height: "1em",
@@ -1262,7 +1304,7 @@ function Va(e) {
1262
1304
  }
1263
1305
  );
1264
1306
  }
1265
- function Wa(e) {
1307
+ function ja(e) {
1266
1308
  return /* @__PURE__ */ h(
1267
1309
  "svg",
1268
1310
  {
@@ -1280,7 +1322,7 @@ function Wa(e) {
1280
1322
  }
1281
1323
  );
1282
1324
  }
1283
- function $a(e) {
1325
+ function Ya(e) {
1284
1326
  return /* @__PURE__ */ h(
1285
1327
  "svg",
1286
1328
  {
@@ -1298,7 +1340,7 @@ function $a(e) {
1298
1340
  }
1299
1341
  );
1300
1342
  }
1301
- function Ua(e) {
1343
+ function Xa(e) {
1302
1344
  return /* @__PURE__ */ h(
1303
1345
  "svg",
1304
1346
  {
@@ -1317,10 +1359,10 @@ function Ua(e) {
1317
1359
  );
1318
1360
  }
1319
1361
  function ke(e) {
1320
- const t = Tr().value ? Ha : ja;
1362
+ const t = Ar().value ? Ka : Ga;
1321
1363
  return /* @__PURE__ */ h(t, { ...e });
1322
1364
  }
1323
- function Ha({
1365
+ function Ka({
1324
1366
  visible: e,
1325
1367
  className: t,
1326
1368
  grow: n,
@@ -1329,7 +1371,7 @@ function Ha({
1329
1371
  }) {
1330
1372
  return e ? /* @__PURE__ */ h("div", { className: j(n && "grow", t), ...o }) : null;
1331
1373
  }
1332
- function ja({
1374
+ function Ga({
1333
1375
  visible: e,
1334
1376
  children: t,
1335
1377
  className: n,
@@ -1365,7 +1407,7 @@ function ja({
1365
1407
  o
1366
1408
  // node's content changed
1367
1409
  ]);
1368
- const { transitioning: m, handlers: f } = Ar({
1410
+ const { transitioning: m, handlers: f } = Pr({
1369
1411
  onEnd: () => {
1370
1412
  e ? (l.style.width = "", l.style.height = "") : s(!1);
1371
1413
  }
@@ -1397,10 +1439,10 @@ function ja({
1397
1439
  }
1398
1440
  );
1399
1441
  }
1400
- const Ya = {
1442
+ const Za = {
1401
1443
  primary: "text-accent-primary border border-accent bg-accent hover:border-accent-hover hover:bg-accent-hover active:border-accent-active active:bg-accent-active",
1402
1444
  secondary: "text-base-primary border border-base-border bg-base hover:bg-base-hover active:bg-base-active"
1403
- }, Me = Xo(
1445
+ }, Me = Ko(
1404
1446
  function({
1405
1447
  variant: t = "secondary",
1406
1448
  children: n,
@@ -1411,13 +1453,13 @@ const Ya = {
1411
1453
  ...s
1412
1454
  }, l) {
1413
1455
  const c = !!r && !n;
1414
- return /* @__PURE__ */ I(
1456
+ return /* @__PURE__ */ P(
1415
1457
  "button",
1416
1458
  {
1417
1459
  ref: l,
1418
1460
  className: j(
1419
1461
  "h-9 flex px-2.5 text-sm items-center transition-colors justify-center rounded-button duration-200 focus-ring overflow-hidden select-none",
1420
- Ya[t],
1462
+ Za[t],
1421
1463
  c && "min-w-9",
1422
1464
  o
1423
1465
  ),
@@ -1445,7 +1487,7 @@ function an({
1445
1487
  className: e,
1446
1488
  ...t
1447
1489
  }) {
1448
- const { status: n, isSpeaking: r } = ne(), o = zt(), a = re(), i = X(
1490
+ const { status: n, isSpeaking: r } = ne(), o = zt(), a = re(), i = Y(
1449
1491
  () => n.value !== "connected" ? a.connecting_status.value : o.value ? a.chatting_status.value : r.value ? a.speaking_status.value : a.listening_status.value
1450
1492
  ), [s, l] = be(i.peek());
1451
1493
  return ze(() => {
@@ -1509,9 +1551,9 @@ function yn(e, t = []) {
1509
1551
  );
1510
1552
  };
1511
1553
  };
1512
- return o.scopeName = e, [r, Xa(o, ...t)];
1554
+ return o.scopeName = e, [r, qa(o, ...t)];
1513
1555
  }
1514
- function Xa(...e) {
1556
+ function qa(...e) {
1515
1557
  const t = e[0];
1516
1558
  if (e.length === 1) return t;
1517
1559
  const n = () => {
@@ -1529,32 +1571,32 @@ function Xa(...e) {
1529
1571
  };
1530
1572
  return n.scopeName = t.scopeName, n;
1531
1573
  }
1532
- function Ka(e) {
1574
+ function Qa(e) {
1533
1575
  const t = e + "CollectionProvider", [n, r] = yn(t), [o, a] = n(
1534
1576
  t,
1535
1577
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
1536
1578
  ), i = (f) => {
1537
- const { scope: w, children: b } = f, x = Ne.useRef(null), y = Ne.useRef(/* @__PURE__ */ new Map()).current;
1579
+ const { scope: w, children: b } = f, x = _e.useRef(null), y = _e.useRef(/* @__PURE__ */ new Map()).current;
1538
1580
  return /* @__PURE__ */ k(o, { scope: w, itemMap: y, collectionRef: x, children: b });
1539
1581
  };
1540
1582
  i.displayName = t;
1541
- const s = e + "CollectionSlot", l = /* @__PURE__ */ vt(s), c = Ne.forwardRef(
1583
+ const s = e + "CollectionSlot", l = /* @__PURE__ */ vt(s), c = _e.forwardRef(
1542
1584
  (f, w) => {
1543
1585
  const { scope: b, children: x } = f, y = a(s, b), S = Z(w, y.collectionRef);
1544
1586
  return /* @__PURE__ */ k(l, { ref: S, children: x });
1545
1587
  }
1546
1588
  );
1547
1589
  c.displayName = s;
1548
- const d = e + "CollectionItemSlot", p = "data-radix-collection-item", g = /* @__PURE__ */ vt(d), v = Ne.forwardRef(
1590
+ const d = e + "CollectionItemSlot", p = "data-radix-collection-item", g = /* @__PURE__ */ vt(d), v = _e.forwardRef(
1549
1591
  (f, w) => {
1550
- const { scope: b, children: x, ...y } = f, S = Ne.useRef(null), E = Z(w, S), T = a(d, b);
1551
- return Ne.useEffect(() => (T.itemMap.set(S, { ref: S, ...y }), () => void T.itemMap.delete(S))), /* @__PURE__ */ k(g, { [p]: "", ref: E, children: x });
1592
+ const { scope: b, children: x, ...y } = f, S = _e.useRef(null), E = Z(w, S), T = a(d, b);
1593
+ return _e.useEffect(() => (T.itemMap.set(S, { ref: S, ...y }), () => void T.itemMap.delete(S))), /* @__PURE__ */ k(g, { [p]: "", ref: E, children: x });
1552
1594
  }
1553
1595
  );
1554
1596
  v.displayName = d;
1555
1597
  function m(f) {
1556
1598
  const w = a(e + "CollectionConsumer", f);
1557
- return Ne.useCallback(() => {
1599
+ return _e.useCallback(() => {
1558
1600
  const x = w.collectionRef.current;
1559
1601
  if (!x) return [];
1560
1602
  const y = Array.from(x.querySelectorAll(`[${p}]`));
@@ -1569,12 +1611,12 @@ function Ka(e) {
1569
1611
  r
1570
1612
  ];
1571
1613
  }
1572
- var Ga = u.createContext(void 0);
1573
- function Za(e) {
1574
- const t = u.useContext(Ga);
1614
+ var Ja = u.createContext(void 0);
1615
+ function ei(e) {
1616
+ const t = u.useContext(Ja);
1575
1617
  return e || t || "ltr";
1576
1618
  }
1577
- var qa = [
1619
+ var ti = [
1578
1620
  "a",
1579
1621
  "button",
1580
1622
  "div",
@@ -1592,17 +1634,17 @@ var qa = [
1592
1634
  "span",
1593
1635
  "svg",
1594
1636
  "ul"
1595
- ], K = qa.reduce((e, t) => {
1637
+ ], K = ti.reduce((e, t) => {
1596
1638
  const n = /* @__PURE__ */ vt(`Primitive.${t}`), r = u.forwardRef((o, a) => {
1597
1639
  const { asChild: i, ...s } = o, l = i ? n : t;
1598
1640
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ k(l, { ...s, ref: a });
1599
1641
  });
1600
1642
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
1601
1643
  }, {});
1602
- function Qa(e, t) {
1644
+ function ni(e, t) {
1603
1645
  e && u.flushSync(() => e.dispatchEvent(t));
1604
1646
  }
1605
- function $e(e) {
1647
+ function We(e) {
1606
1648
  const t = u.useRef(e);
1607
1649
  return u.useEffect(() => {
1608
1650
  t.current = e;
@@ -1611,8 +1653,8 @@ function $e(e) {
1611
1653
  return (r = t.current) == null ? void 0 : r.call(t, ...n);
1612
1654
  }, []);
1613
1655
  }
1614
- function Ja(e, t = globalThis == null ? void 0 : globalThis.document) {
1615
- const n = $e(e);
1656
+ function ri(e, t = globalThis == null ? void 0 : globalThis.document) {
1657
+ const n = We(e);
1616
1658
  u.useEffect(() => {
1617
1659
  const r = (o) => {
1618
1660
  o.key === "Escape" && n(o);
@@ -1620,11 +1662,11 @@ function Ja(e, t = globalThis == null ? void 0 : globalThis.document) {
1620
1662
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
1621
1663
  }, [n, t]);
1622
1664
  }
1623
- var ei = "DismissableLayer", sn = "dismissableLayer.update", ti = "dismissableLayer.pointerDownOutside", ni = "dismissableLayer.focusOutside", Vn, Pr = u.createContext({
1665
+ var oi = "DismissableLayer", sn = "dismissableLayer.update", ai = "dismissableLayer.pointerDownOutside", ii = "dismissableLayer.focusOutside", Vn, Rr = u.createContext({
1624
1666
  layers: /* @__PURE__ */ new Set(),
1625
1667
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
1626
1668
  branches: /* @__PURE__ */ new Set()
1627
- }), Rr = u.forwardRef(
1669
+ }), Ir = u.forwardRef(
1628
1670
  (e, t) => {
1629
1671
  const {
1630
1672
  disableOutsidePointerEvents: n = !1,
@@ -1634,22 +1676,22 @@ var ei = "DismissableLayer", sn = "dismissableLayer.update", ti = "dismissableLa
1634
1676
  onInteractOutside: i,
1635
1677
  onDismiss: s,
1636
1678
  ...l
1637
- } = e, c = u.useContext(Pr), [d, p] = u.useState(null), g = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, v] = u.useState({}), m = Z(t, (C) => p(C)), f = Array.from(c.layers), [w] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), b = f.indexOf(w), x = d ? f.indexOf(d) : -1, y = c.layersWithOutsidePointerEventsDisabled.size > 0, S = x >= b, E = ai((C) => {
1638
- const P = C.target, O = [...c.branches].some((M) => M.contains(P));
1679
+ } = e, c = u.useContext(Rr), [d, p] = u.useState(null), g = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, v] = u.useState({}), m = Z(t, (C) => p(C)), f = Array.from(c.layers), [w] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), b = f.indexOf(w), x = d ? f.indexOf(d) : -1, y = c.layersWithOutsidePointerEventsDisabled.size > 0, S = x >= b, E = ci((C) => {
1680
+ const R = C.target, O = [...c.branches].some((M) => M.contains(R));
1639
1681
  !S || O || (o == null || o(C), i == null || i(C), C.defaultPrevented || s == null || s());
1640
- }, g), T = ii((C) => {
1641
- const P = C.target;
1642
- [...c.branches].some((M) => M.contains(P)) || (a == null || a(C), i == null || i(C), C.defaultPrevented || s == null || s());
1682
+ }, g), T = ui((C) => {
1683
+ const R = C.target;
1684
+ [...c.branches].some((M) => M.contains(R)) || (a == null || a(C), i == null || i(C), C.defaultPrevented || s == null || s());
1643
1685
  }, g);
1644
- return Ja((C) => {
1686
+ return ri((C) => {
1645
1687
  x === c.layers.size - 1 && (r == null || r(C), !C.defaultPrevented && s && (C.preventDefault(), s()));
1646
1688
  }, g), u.useEffect(() => {
1647
1689
  if (d)
1648
- return n && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (Vn = g.body.style.pointerEvents, g.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(d)), c.layers.add(d), Wn(), () => {
1690
+ return n && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (Vn = g.body.style.pointerEvents, g.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(d)), c.layers.add(d), $n(), () => {
1649
1691
  n && c.layersWithOutsidePointerEventsDisabled.size === 1 && (g.body.style.pointerEvents = Vn);
1650
1692
  };
1651
1693
  }, [d, g, n, c]), u.useEffect(() => () => {
1652
- d && (c.layers.delete(d), c.layersWithOutsidePointerEventsDisabled.delete(d), Wn());
1694
+ d && (c.layers.delete(d), c.layersWithOutsidePointerEventsDisabled.delete(d), $n());
1653
1695
  }, [d, c]), u.useEffect(() => {
1654
1696
  const C = () => v({});
1655
1697
  return document.addEventListener(sn, C), () => document.removeEventListener(sn, C);
@@ -1672,9 +1714,9 @@ var ei = "DismissableLayer", sn = "dismissableLayer.update", ti = "dismissableLa
1672
1714
  );
1673
1715
  }
1674
1716
  );
1675
- Rr.displayName = ei;
1676
- var ri = "DismissableLayerBranch", oi = u.forwardRef((e, t) => {
1677
- const n = u.useContext(Pr), r = u.useRef(null), o = Z(t, r);
1717
+ Ir.displayName = oi;
1718
+ var si = "DismissableLayerBranch", li = u.forwardRef((e, t) => {
1719
+ const n = u.useContext(Rr), r = u.useRef(null), o = Z(t, r);
1678
1720
  return u.useEffect(() => {
1679
1721
  const a = r.current;
1680
1722
  if (a)
@@ -1683,16 +1725,16 @@ var ri = "DismissableLayerBranch", oi = u.forwardRef((e, t) => {
1683
1725
  };
1684
1726
  }, [n.branches]), /* @__PURE__ */ k(K.div, { ...e, ref: o });
1685
1727
  });
1686
- oi.displayName = ri;
1687
- function ai(e, t = globalThis == null ? void 0 : globalThis.document) {
1688
- const n = $e(e), r = u.useRef(!1), o = u.useRef(() => {
1728
+ li.displayName = si;
1729
+ function ci(e, t = globalThis == null ? void 0 : globalThis.document) {
1730
+ const n = We(e), r = u.useRef(!1), o = u.useRef(() => {
1689
1731
  });
1690
1732
  return u.useEffect(() => {
1691
1733
  const a = (s) => {
1692
1734
  if (s.target && !r.current) {
1693
1735
  let l = function() {
1694
- Ir(
1695
- ti,
1736
+ _r(
1737
+ ai,
1696
1738
  n,
1697
1739
  c,
1698
1740
  { discrete: !0 }
@@ -1714,11 +1756,11 @@ function ai(e, t = globalThis == null ? void 0 : globalThis.document) {
1714
1756
  onPointerDownCapture: () => r.current = !0
1715
1757
  };
1716
1758
  }
1717
- function ii(e, t = globalThis == null ? void 0 : globalThis.document) {
1718
- const n = $e(e), r = u.useRef(!1);
1759
+ function ui(e, t = globalThis == null ? void 0 : globalThis.document) {
1760
+ const n = We(e), r = u.useRef(!1);
1719
1761
  return u.useEffect(() => {
1720
1762
  const o = (a) => {
1721
- a.target && !r.current && Ir(ni, n, { originalEvent: a }, {
1763
+ a.target && !r.current && _r(ii, n, { originalEvent: a }, {
1722
1764
  discrete: !1
1723
1765
  });
1724
1766
  };
@@ -1728,35 +1770,35 @@ function ii(e, t = globalThis == null ? void 0 : globalThis.document) {
1728
1770
  onBlurCapture: () => r.current = !1
1729
1771
  };
1730
1772
  }
1731
- function Wn() {
1773
+ function $n() {
1732
1774
  const e = new CustomEvent(sn);
1733
1775
  document.dispatchEvent(e);
1734
1776
  }
1735
- function Ir(e, t, n, { discrete: r }) {
1777
+ function _r(e, t, n, { discrete: r }) {
1736
1778
  const o = n.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
1737
- t && o.addEventListener(e, t, { once: !0 }), r ? Qa(o, a) : o.dispatchEvent(a);
1779
+ t && o.addEventListener(e, t, { once: !0 }), r ? ni(o, a) : o.dispatchEvent(a);
1738
1780
  }
1739
1781
  var Kt = 0;
1740
- function si() {
1782
+ function di() {
1741
1783
  u.useEffect(() => {
1742
1784
  const e = document.querySelectorAll("[data-radix-focus-guard]");
1743
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? $n()), document.body.insertAdjacentElement("beforeend", e[1] ?? $n()), Kt++, () => {
1785
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Wn()), document.body.insertAdjacentElement("beforeend", e[1] ?? Wn()), Kt++, () => {
1744
1786
  Kt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Kt--;
1745
1787
  };
1746
1788
  }, []);
1747
1789
  }
1748
- function $n() {
1790
+ function Wn() {
1749
1791
  const e = document.createElement("span");
1750
1792
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
1751
1793
  }
1752
- var Gt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoFocusOnUnmount", Un = { bubbles: !1, cancelable: !0 }, li = "FocusScope", Nr = u.forwardRef((e, t) => {
1794
+ var Gt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoFocusOnUnmount", Un = { bubbles: !1, cancelable: !0 }, fi = "FocusScope", Nr = u.forwardRef((e, t) => {
1753
1795
  const {
1754
1796
  loop: n = !1,
1755
1797
  trapped: r = !1,
1756
1798
  onMountAutoFocus: o,
1757
1799
  onUnmountAutoFocus: a,
1758
1800
  ...i
1759
- } = e, [s, l] = u.useState(null), c = $e(o), d = $e(a), p = u.useRef(null), g = Z(t, (f) => l(f)), v = u.useRef({
1801
+ } = e, [s, l] = u.useState(null), c = We(o), d = We(a), p = u.useRef(null), g = Z(t, (f) => l(f)), v = u.useRef({
1760
1802
  paused: !1,
1761
1803
  pause() {
1762
1804
  this.paused = !0;
@@ -1770,15 +1812,15 @@ var Gt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoFocusOnUnmount", Un
1770
1812
  let f = function(y) {
1771
1813
  if (v.paused || !s) return;
1772
1814
  const S = y.target;
1773
- s.contains(S) ? p.current = S : _e(p.current, { select: !0 });
1815
+ s.contains(S) ? p.current = S : Ne(p.current, { select: !0 });
1774
1816
  }, w = function(y) {
1775
1817
  if (v.paused || !s) return;
1776
1818
  const S = y.relatedTarget;
1777
- S !== null && (s.contains(S) || _e(p.current, { select: !0 }));
1819
+ S !== null && (s.contains(S) || Ne(p.current, { select: !0 }));
1778
1820
  }, b = function(y) {
1779
1821
  if (document.activeElement === document.body)
1780
1822
  for (const E of y)
1781
- E.removedNodes.length > 0 && _e(s);
1823
+ E.removedNodes.length > 0 && Ne(s);
1782
1824
  };
1783
1825
  document.addEventListener("focusin", f), document.addEventListener("focusout", w);
1784
1826
  const x = new MutationObserver(b);
@@ -1792,12 +1834,12 @@ var Gt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoFocusOnUnmount", Un
1792
1834
  const f = document.activeElement;
1793
1835
  if (!s.contains(f)) {
1794
1836
  const b = new CustomEvent(Gt, Un);
1795
- s.addEventListener(Gt, c), s.dispatchEvent(b), b.defaultPrevented || (ci(hi(_r(s)), { select: !0 }), document.activeElement === f && _e(s));
1837
+ s.addEventListener(Gt, c), s.dispatchEvent(b), b.defaultPrevented || (pi(wi(Or(s)), { select: !0 }), document.activeElement === f && Ne(s));
1796
1838
  }
1797
1839
  return () => {
1798
1840
  s.removeEventListener(Gt, c), setTimeout(() => {
1799
1841
  const b = new CustomEvent(Zt, Un);
1800
- s.addEventListener(Zt, d), s.dispatchEvent(b), b.defaultPrevented || _e(f ?? document.body, { select: !0 }), s.removeEventListener(Zt, d), jn.remove(v);
1842
+ s.addEventListener(Zt, d), s.dispatchEvent(b), b.defaultPrevented || Ne(f ?? document.body, { select: !0 }), s.removeEventListener(Zt, d), jn.remove(v);
1801
1843
  }, 0);
1802
1844
  };
1803
1845
  }
@@ -1807,25 +1849,25 @@ var Gt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoFocusOnUnmount", Un
1807
1849
  if (!n && !r || v.paused) return;
1808
1850
  const w = f.key === "Tab" && !f.altKey && !f.ctrlKey && !f.metaKey, b = document.activeElement;
1809
1851
  if (w && b) {
1810
- const x = f.currentTarget, [y, S] = ui(x);
1811
- y && S ? !f.shiftKey && b === S ? (f.preventDefault(), n && _e(y, { select: !0 })) : f.shiftKey && b === y && (f.preventDefault(), n && _e(S, { select: !0 })) : b === x && f.preventDefault();
1852
+ const x = f.currentTarget, [y, S] = hi(x);
1853
+ y && S ? !f.shiftKey && b === S ? (f.preventDefault(), n && Ne(y, { select: !0 })) : f.shiftKey && b === y && (f.preventDefault(), n && Ne(S, { select: !0 })) : b === x && f.preventDefault();
1812
1854
  }
1813
1855
  },
1814
1856
  [n, r, v.paused]
1815
1857
  );
1816
1858
  return /* @__PURE__ */ k(K.div, { tabIndex: -1, ...i, ref: g, onKeyDown: m });
1817
1859
  });
1818
- Nr.displayName = li;
1819
- function ci(e, { select: t = !1 } = {}) {
1860
+ Nr.displayName = fi;
1861
+ function pi(e, { select: t = !1 } = {}) {
1820
1862
  const n = document.activeElement;
1821
1863
  for (const r of e)
1822
- if (_e(r, { select: t }), document.activeElement !== n) return;
1864
+ if (Ne(r, { select: t }), document.activeElement !== n) return;
1823
1865
  }
1824
- function ui(e) {
1825
- const t = _r(e), n = Hn(t, e), r = Hn(t.reverse(), e);
1866
+ function hi(e) {
1867
+ const t = Or(e), n = Hn(t, e), r = Hn(t.reverse(), e);
1826
1868
  return [n, r];
1827
1869
  }
1828
- function _r(e) {
1870
+ function Or(e) {
1829
1871
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
1830
1872
  acceptNode: (r) => {
1831
1873
  const o = r.tagName === "INPUT" && r.type === "hidden";
@@ -1837,9 +1879,9 @@ function _r(e) {
1837
1879
  }
1838
1880
  function Hn(e, t) {
1839
1881
  for (const n of e)
1840
- if (!di(n, { upTo: t })) return n;
1882
+ if (!vi(n, { upTo: t })) return n;
1841
1883
  }
1842
- function di(e, { upTo: t }) {
1884
+ function vi(e, { upTo: t }) {
1843
1885
  if (getComputedStyle(e).visibility === "hidden") return !0;
1844
1886
  for (; e; ) {
1845
1887
  if (t !== void 0 && e === t) return !1;
@@ -1848,17 +1890,17 @@ function di(e, { upTo: t }) {
1848
1890
  }
1849
1891
  return !1;
1850
1892
  }
1851
- function fi(e) {
1893
+ function gi(e) {
1852
1894
  return e instanceof HTMLInputElement && "select" in e;
1853
1895
  }
1854
- function _e(e, { select: t = !1 } = {}) {
1896
+ function Ne(e, { select: t = !1 } = {}) {
1855
1897
  if (e && e.focus) {
1856
1898
  const n = document.activeElement;
1857
- e.focus({ preventScroll: !0 }), e !== n && fi(e) && t && e.select();
1899
+ e.focus({ preventScroll: !0 }), e !== n && gi(e) && t && e.select();
1858
1900
  }
1859
1901
  }
1860
- var jn = pi();
1861
- function pi() {
1902
+ var jn = mi();
1903
+ function mi() {
1862
1904
  let e = [];
1863
1905
  return {
1864
1906
  add(t) {
@@ -1875,27 +1917,27 @@ function Yn(e, t) {
1875
1917
  const n = [...e], r = n.indexOf(t);
1876
1918
  return r !== -1 && n.splice(r, 1), n;
1877
1919
  }
1878
- function hi(e) {
1920
+ function wi(e) {
1879
1921
  return e.filter((t) => t.tagName !== "A");
1880
1922
  }
1881
1923
  var te = globalThis != null && globalThis.document ? u.useLayoutEffect : () => {
1882
- }, vi = u[" useId ".trim().toString()] || (() => {
1883
- }), gi = 0;
1924
+ }, bi = u[" useId ".trim().toString()] || (() => {
1925
+ }), xi = 0;
1884
1926
  function Cn(e) {
1885
- const [t, n] = u.useState(vi());
1927
+ const [t, n] = u.useState(bi());
1886
1928
  return te(() => {
1887
- n((r) => r ?? String(gi++));
1929
+ n((r) => r ?? String(xi++));
1888
1930
  }, [e]), e || (t ? `radix-${t}` : "");
1889
1931
  }
1890
- const mi = ["top", "right", "bottom", "left"], Le = Math.min, ae = Math.max, _t = Math.round, Ct = Math.floor, ye = (e) => ({
1932
+ const yi = ["top", "right", "bottom", "left"], Le = Math.min, ae = Math.max, Nt = Math.round, Ct = Math.floor, ye = (e) => ({
1891
1933
  x: e,
1892
1934
  y: e
1893
- }), wi = {
1935
+ }), Ci = {
1894
1936
  left: "right",
1895
1937
  right: "left",
1896
1938
  bottom: "top",
1897
1939
  top: "bottom"
1898
- }, bi = {
1940
+ }, Si = {
1899
1941
  start: "end",
1900
1942
  end: "start"
1901
1943
  };
@@ -1923,20 +1965,20 @@ function De(e) {
1923
1965
  function kn(e) {
1924
1966
  return Sn(De(e));
1925
1967
  }
1926
- function xi(e, t, n) {
1968
+ function Ei(e, t, n) {
1927
1969
  n === void 0 && (n = !1);
1928
1970
  const r = at(e), o = kn(e), a = En(o);
1929
1971
  let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
1930
1972
  return t.reference[a] > t.floating[a] && (i = Ot(i)), [i, Ot(i)];
1931
1973
  }
1932
- function yi(e) {
1974
+ function ki(e) {
1933
1975
  const t = Ot(e);
1934
1976
  return [cn(e), t, cn(t)];
1935
1977
  }
1936
1978
  function cn(e) {
1937
- return e.replace(/start|end/g, (t) => bi[t]);
1979
+ return e.replace(/start|end/g, (t) => Si[t]);
1938
1980
  }
1939
- function Ci(e, t, n) {
1981
+ function Ti(e, t, n) {
1940
1982
  const r = ["left", "right"], o = ["right", "left"], a = ["top", "bottom"], i = ["bottom", "top"];
1941
1983
  switch (e) {
1942
1984
  case "top":
@@ -1949,15 +1991,15 @@ function Ci(e, t, n) {
1949
1991
  return [];
1950
1992
  }
1951
1993
  }
1952
- function Si(e, t, n, r) {
1994
+ function Ai(e, t, n, r) {
1953
1995
  const o = at(e);
1954
- let a = Ci(Pe(e), n === "start", r);
1996
+ let a = Ti(Pe(e), n === "start", r);
1955
1997
  return o && (a = a.map((i) => i + "-" + o), t && (a = a.concat(a.map(cn)))), a;
1956
1998
  }
1957
1999
  function Ot(e) {
1958
- return e.replace(/left|right|bottom|top/g, (t) => wi[t]);
2000
+ return e.replace(/left|right|bottom|top/g, (t) => Ci[t]);
1959
2001
  }
1960
- function Ei(e) {
2002
+ function Pi(e) {
1961
2003
  return {
1962
2004
  top: 0,
1963
2005
  right: 0,
@@ -1966,8 +2008,8 @@ function Ei(e) {
1966
2008
  ...e
1967
2009
  };
1968
2010
  }
1969
- function Or(e) {
1970
- return typeof e != "number" ? Ei(e) : {
2011
+ function Mr(e) {
2012
+ return typeof e != "number" ? Pi(e) : {
1971
2013
  top: e,
1972
2014
  right: e,
1973
2015
  bottom: e,
@@ -2040,7 +2082,7 @@ function Xn(e, t, n) {
2040
2082
  }
2041
2083
  return v;
2042
2084
  }
2043
- const ki = async (e, t, n) => {
2085
+ const Ri = async (e, t, n) => {
2044
2086
  const {
2045
2087
  placement: r = "bottom",
2046
2088
  strategy: o = "absolute",
@@ -2117,7 +2159,7 @@ async function gt(e, t) {
2117
2159
  elementContext: p = "floating",
2118
2160
  altBoundary: g = !1,
2119
2161
  padding: v = 0
2120
- } = Ae(t, e), m = Or(v), w = s[g ? p === "floating" ? "reference" : "floating" : p], b = Mt(await a.getClippingRect({
2162
+ } = Ae(t, e), m = Mr(v), w = s[g ? p === "floating" ? "reference" : "floating" : p], b = Mt(await a.getClippingRect({
2121
2163
  element: (n = await (a.isElement == null ? void 0 : a.isElement(w))) == null || n ? w : w.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
2122
2164
  boundary: c,
2123
2165
  rootBoundary: d,
@@ -2146,7 +2188,7 @@ async function gt(e, t) {
2146
2188
  right: (E.right - b.right + m.right) / S.x
2147
2189
  };
2148
2190
  }
2149
- const Ti = (e) => ({
2191
+ const Ii = (e) => ({
2150
2192
  name: "arrow",
2151
2193
  options: e,
2152
2194
  async fn(t) {
@@ -2164,26 +2206,26 @@ const Ti = (e) => ({
2164
2206
  } = Ae(e, t) || {};
2165
2207
  if (c == null)
2166
2208
  return {};
2167
- const p = Or(d), g = {
2209
+ const p = Mr(d), g = {
2168
2210
  x: n,
2169
2211
  y: r
2170
2212
  }, v = kn(o), m = En(v), f = await i.getDimensions(c), w = v === "y", b = w ? "top" : "left", x = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth", S = a.reference[m] + a.reference[v] - g[v] - a.floating[m], E = g[v] - a.reference[v], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c));
2171
2213
  let C = T ? T[y] : 0;
2172
2214
  (!C || !await (i.isElement == null ? void 0 : i.isElement(T))) && (C = s.floating[y] || a.floating[m]);
2173
- const P = S / 2 - E / 2, O = C / 2 - f[m] / 2 - 1, M = Le(p[b], O), V = Le(p[x], O), W = M, D = C - f[m] - V, _ = C / 2 - f[m] / 2 + P, Y = ln(W, _, D), N = !l.arrow && at(o) != null && _ !== Y && a.reference[m] / 2 - (_ < W ? M : V) - f[m] / 2 < 0, L = N ? _ < W ? _ - W : _ - D : 0;
2215
+ const R = S / 2 - E / 2, O = C / 2 - f[m] / 2 - 1, M = Le(p[b], O), V = Le(p[x], O), $ = M, D = C - f[m] - V, N = C / 2 - f[m] / 2 + R, X = ln($, N, D), _ = !l.arrow && at(o) != null && N !== X && a.reference[m] / 2 - (N < $ ? M : V) - f[m] / 2 < 0, L = _ ? N < $ ? N - $ : N - D : 0;
2174
2216
  return {
2175
2217
  [v]: g[v] + L,
2176
2218
  data: {
2177
- [v]: Y,
2178
- centerOffset: _ - Y - L,
2179
- ...N && {
2219
+ [v]: X,
2220
+ centerOffset: N - X - L,
2221
+ ..._ && {
2180
2222
  alignmentOffset: L
2181
2223
  }
2182
2224
  },
2183
- reset: N
2225
+ reset: _
2184
2226
  };
2185
2227
  }
2186
- }), Ai = function(e) {
2228
+ }), _i = function(e) {
2187
2229
  return e === void 0 && (e = {}), {
2188
2230
  name: "flip",
2189
2231
  options: e,
@@ -2207,55 +2249,55 @@ const Ti = (e) => ({
2207
2249
  } = Ae(e, t);
2208
2250
  if ((n = a.arrow) != null && n.alignmentOffset)
2209
2251
  return {};
2210
- const b = Pe(o), x = De(s), y = Pe(s) === s, S = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), E = g || (y || !f ? [Ot(s)] : yi(s)), T = m !== "none";
2211
- !g && T && E.push(...Si(s, f, m, S));
2212
- const C = [s, ...E], P = await gt(t, w), O = [];
2252
+ const b = Pe(o), x = De(s), y = Pe(s) === s, S = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), E = g || (y || !f ? [Ot(s)] : ki(s)), T = m !== "none";
2253
+ !g && T && E.push(...Ai(s, f, m, S));
2254
+ const C = [s, ...E], R = await gt(t, w), O = [];
2213
2255
  let M = ((r = a.flip) == null ? void 0 : r.overflows) || [];
2214
- if (d && O.push(P[b]), p) {
2215
- const _ = xi(o, i, S);
2216
- O.push(P[_[0]], P[_[1]]);
2256
+ if (d && O.push(R[b]), p) {
2257
+ const N = Ei(o, i, S);
2258
+ O.push(R[N[0]], R[N[1]]);
2217
2259
  }
2218
2260
  if (M = [...M, {
2219
2261
  placement: o,
2220
2262
  overflows: O
2221
- }], !O.every((_) => _ <= 0)) {
2222
- var V, W;
2223
- const _ = (((V = a.flip) == null ? void 0 : V.index) || 0) + 1, Y = C[_];
2224
- if (Y)
2263
+ }], !O.every((N) => N <= 0)) {
2264
+ var V, $;
2265
+ const N = (((V = a.flip) == null ? void 0 : V.index) || 0) + 1, X = C[N];
2266
+ if (X)
2225
2267
  return {
2226
2268
  data: {
2227
- index: _,
2269
+ index: N,
2228
2270
  overflows: M
2229
2271
  },
2230
2272
  reset: {
2231
- placement: Y
2273
+ placement: X
2232
2274
  }
2233
2275
  };
2234
- let N = (W = M.filter((L) => L.overflows[0] <= 0).sort((L, R) => L.overflows[1] - R.overflows[1])[0]) == null ? void 0 : W.placement;
2235
- if (!N)
2276
+ let _ = ($ = M.filter((L) => L.overflows[0] <= 0).sort((L, I) => L.overflows[1] - I.overflows[1])[0]) == null ? void 0 : $.placement;
2277
+ if (!_)
2236
2278
  switch (v) {
2237
2279
  case "bestFit": {
2238
2280
  var D;
2239
- const L = (D = M.filter((R) => {
2281
+ const L = (D = M.filter((I) => {
2240
2282
  if (T) {
2241
- const $ = De(R.placement);
2242
- return $ === x || // Create a bias to the `y` side axis due to horizontal
2283
+ const W = De(I.placement);
2284
+ return W === x || // Create a bias to the `y` side axis due to horizontal
2243
2285
  // reading directions favoring greater width.
2244
- $ === "y";
2286
+ W === "y";
2245
2287
  }
2246
2288
  return !0;
2247
- }).map((R) => [R.placement, R.overflows.filter(($) => $ > 0).reduce(($, ee) => $ + ee, 0)]).sort((R, $) => R[1] - $[1])[0]) == null ? void 0 : D[0];
2248
- L && (N = L);
2289
+ }).map((I) => [I.placement, I.overflows.filter((W) => W > 0).reduce((W, ee) => W + ee, 0)]).sort((I, W) => I[1] - W[1])[0]) == null ? void 0 : D[0];
2290
+ L && (_ = L);
2249
2291
  break;
2250
2292
  }
2251
2293
  case "initialPlacement":
2252
- N = s;
2294
+ _ = s;
2253
2295
  break;
2254
2296
  }
2255
- if (o !== N)
2297
+ if (o !== _)
2256
2298
  return {
2257
2299
  reset: {
2258
- placement: N
2300
+ placement: _
2259
2301
  }
2260
2302
  };
2261
2303
  }
@@ -2272,9 +2314,9 @@ function Kn(e, t) {
2272
2314
  };
2273
2315
  }
2274
2316
  function Gn(e) {
2275
- return mi.some((t) => e[t] >= 0);
2317
+ return yi.some((t) => e[t] >= 0);
2276
2318
  }
2277
- const Pi = function(e) {
2319
+ const Ni = function(e) {
2278
2320
  return e === void 0 && (e = {}), {
2279
2321
  name: "hide",
2280
2322
  options: e,
@@ -2316,7 +2358,7 @@ const Pi = function(e) {
2316
2358
  }
2317
2359
  };
2318
2360
  };
2319
- async function Ri(e, t) {
2361
+ async function Oi(e, t) {
2320
2362
  const {
2321
2363
  placement: n,
2322
2364
  platform: r,
@@ -2343,7 +2385,7 @@ async function Ri(e, t) {
2343
2385
  y: v * d
2344
2386
  };
2345
2387
  }
2346
- const Ii = function(e) {
2388
+ const Mi = function(e) {
2347
2389
  return e === void 0 && (e = 0), {
2348
2390
  name: "offset",
2349
2391
  options: e,
@@ -2354,7 +2396,7 @@ const Ii = function(e) {
2354
2396
  y: a,
2355
2397
  placement: i,
2356
2398
  middlewareData: s
2357
- } = t, l = await Ri(t, e);
2399
+ } = t, l = await Oi(t, e);
2358
2400
  return i === ((n = s.offset) == null ? void 0 : n.placement) && (r = s.arrow) != null && r.alignmentOffset ? {} : {
2359
2401
  x: o + l.x,
2360
2402
  y: a + l.y,
@@ -2365,7 +2407,7 @@ const Ii = function(e) {
2365
2407
  };
2366
2408
  }
2367
2409
  };
2368
- }, Ni = function(e) {
2410
+ }, Li = function(e) {
2369
2411
  return e === void 0 && (e = {}), {
2370
2412
  name: "shift",
2371
2413
  options: e,
@@ -2421,7 +2463,7 @@ const Ii = function(e) {
2421
2463
  };
2422
2464
  }
2423
2465
  };
2424
- }, _i = function(e) {
2466
+ }, Di = function(e) {
2425
2467
  return e === void 0 && (e = {}), {
2426
2468
  options: e,
2427
2469
  fn(t) {
@@ -2463,7 +2505,7 @@ const Ii = function(e) {
2463
2505
  };
2464
2506
  }
2465
2507
  };
2466
- }, Oi = function(e) {
2508
+ }, Bi = function(e) {
2467
2509
  return e === void 0 && (e = {}), {
2468
2510
  name: "size",
2469
2511
  options: e,
@@ -2485,14 +2527,14 @@ const Ii = function(e) {
2485
2527
  let w, b;
2486
2528
  p === "top" || p === "bottom" ? (w = p, b = g === (await (i.isRTL == null ? void 0 : i.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (b = p, w = g === "end" ? "top" : "bottom");
2487
2529
  const x = f - d.top - d.bottom, y = m - d.left - d.right, S = Le(f - d[w], x), E = Le(m - d[b], y), T = !t.middlewareData.shift;
2488
- let C = S, P = E;
2489
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (P = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = x), T && !g) {
2490
- const M = ae(d.left, 0), V = ae(d.right, 0), W = ae(d.top, 0), D = ae(d.bottom, 0);
2491
- v ? P = m - 2 * (M !== 0 || V !== 0 ? M + V : ae(d.left, d.right)) : C = f - 2 * (W !== 0 || D !== 0 ? W + D : ae(d.top, d.bottom));
2530
+ let C = S, R = E;
2531
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = x), T && !g) {
2532
+ const M = ae(d.left, 0), V = ae(d.right, 0), $ = ae(d.top, 0), D = ae(d.bottom, 0);
2533
+ v ? R = m - 2 * (M !== 0 || V !== 0 ? M + V : ae(d.left, d.right)) : C = f - 2 * ($ !== 0 || D !== 0 ? $ + D : ae(d.top, d.bottom));
2492
2534
  }
2493
2535
  await l({
2494
2536
  ...t,
2495
- availableWidth: P,
2537
+ availableWidth: R,
2496
2538
  availableHeight: C
2497
2539
  });
2498
2540
  const O = await i.getDimensions(s.floating);
@@ -2508,7 +2550,7 @@ function Ft() {
2508
2550
  return typeof window < "u";
2509
2551
  }
2510
2552
  function it(e) {
2511
- return Mr(e) ? (e.nodeName || "").toLowerCase() : "#document";
2553
+ return Lr(e) ? (e.nodeName || "").toLowerCase() : "#document";
2512
2554
  }
2513
2555
  function ie(e) {
2514
2556
  var t;
@@ -2516,9 +2558,9 @@ function ie(e) {
2516
2558
  }
2517
2559
  function Se(e) {
2518
2560
  var t;
2519
- return (t = (Mr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
2561
+ return (t = (Lr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
2520
2562
  }
2521
- function Mr(e) {
2563
+ function Lr(e) {
2522
2564
  return Ft() ? e instanceof Node || e instanceof ie(e).Node : !1;
2523
2565
  }
2524
2566
  function de(e) {
@@ -2539,7 +2581,7 @@ function bt(e) {
2539
2581
  } = fe(e);
2540
2582
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
2541
2583
  }
2542
- function Mi(e) {
2584
+ function zi(e) {
2543
2585
  return ["table", "td", "th"].includes(it(e));
2544
2586
  }
2545
2587
  function Vt(e) {
@@ -2555,7 +2597,7 @@ function Tn(e) {
2555
2597
  const t = An(), n = de(e) ? fe(e) : e;
2556
2598
  return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
2557
2599
  }
2558
- function Li(e) {
2600
+ function Fi(e) {
2559
2601
  let t = Be(e);
2560
2602
  for (; Ce(t) && !nt(t); ) {
2561
2603
  if (Tn(t))
@@ -2575,7 +2617,7 @@ function nt(e) {
2575
2617
  function fe(e) {
2576
2618
  return ie(e).getComputedStyle(e);
2577
2619
  }
2578
- function Wt(e) {
2620
+ function $t(e) {
2579
2621
  return de(e) ? {
2580
2622
  scrollLeft: e.scrollLeft,
2581
2623
  scrollTop: e.scrollTop
@@ -2596,14 +2638,14 @@ function Be(e) {
2596
2638
  );
2597
2639
  return Zn(t) ? t.host : t;
2598
2640
  }
2599
- function Lr(e) {
2641
+ function Dr(e) {
2600
2642
  const t = Be(e);
2601
- return nt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ce(t) && bt(t) ? t : Lr(t);
2643
+ return nt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ce(t) && bt(t) ? t : Dr(t);
2602
2644
  }
2603
2645
  function mt(e, t, n) {
2604
2646
  var r;
2605
2647
  t === void 0 && (t = []), n === void 0 && (n = !0);
2606
- const o = Lr(e), a = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = ie(o);
2648
+ const o = Dr(e), a = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = ie(o);
2607
2649
  if (a) {
2608
2650
  const s = un(i);
2609
2651
  return t.concat(i, i.visualViewport || [], bt(o) ? o : [], s && n ? mt(s) : []);
@@ -2613,10 +2655,10 @@ function mt(e, t, n) {
2613
2655
  function un(e) {
2614
2656
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
2615
2657
  }
2616
- function Dr(e) {
2658
+ function Br(e) {
2617
2659
  const t = fe(e);
2618
2660
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
2619
- const o = Ce(e), a = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, s = _t(n) !== a || _t(r) !== i;
2661
+ const o = Ce(e), a = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, s = Nt(n) !== a || Nt(r) !== i;
2620
2662
  return s && (n = a, r = i), {
2621
2663
  width: n,
2622
2664
  height: r,
@@ -2634,22 +2676,22 @@ function et(e) {
2634
2676
  width: r,
2635
2677
  height: o,
2636
2678
  $: a
2637
- } = Dr(t);
2638
- let i = (a ? _t(n.width) : n.width) / r, s = (a ? _t(n.height) : n.height) / o;
2679
+ } = Br(t);
2680
+ let i = (a ? Nt(n.width) : n.width) / r, s = (a ? Nt(n.height) : n.height) / o;
2639
2681
  return (!i || !Number.isFinite(i)) && (i = 1), (!s || !Number.isFinite(s)) && (s = 1), {
2640
2682
  x: i,
2641
2683
  y: s
2642
2684
  };
2643
2685
  }
2644
- const Di = /* @__PURE__ */ ye(0);
2645
- function Br(e) {
2686
+ const Vi = /* @__PURE__ */ ye(0);
2687
+ function zr(e) {
2646
2688
  const t = ie(e);
2647
- return !An() || !t.visualViewport ? Di : {
2689
+ return !An() || !t.visualViewport ? Vi : {
2648
2690
  x: t.visualViewport.offsetLeft,
2649
2691
  y: t.visualViewport.offsetTop
2650
2692
  };
2651
2693
  }
2652
- function Bi(e, t, n) {
2694
+ function $i(e, t, n) {
2653
2695
  return t === void 0 && (t = !1), !n || t && n !== ie(e) ? !1 : t;
2654
2696
  }
2655
2697
  function Ue(e, t, n, r) {
@@ -2657,7 +2699,7 @@ function Ue(e, t, n, r) {
2657
2699
  const o = e.getBoundingClientRect(), a = Pn(e);
2658
2700
  let i = ye(1);
2659
2701
  t && (r ? de(r) && (i = et(r)) : i = et(e));
2660
- const s = Bi(a, n, r) ? Br(a) : ye(0);
2702
+ const s = $i(a, n, r) ? zr(a) : ye(0);
2661
2703
  let l = (o.left + s.x) / i.x, c = (o.top + s.y) / i.y, d = o.width / i.x, p = o.height / i.y;
2662
2704
  if (a) {
2663
2705
  const g = ie(a), v = r && de(r) ? ie(r) : r;
@@ -2675,10 +2717,10 @@ function Ue(e, t, n, r) {
2675
2717
  });
2676
2718
  }
2677
2719
  function Rn(e, t) {
2678
- const n = Wt(e).scrollLeft;
2720
+ const n = $t(e).scrollLeft;
2679
2721
  return t ? t.left + n : Ue(Se(e)).left + n;
2680
2722
  }
2681
- function zr(e, t, n) {
2723
+ function Fr(e, t, n) {
2682
2724
  n === void 0 && (n = !1);
2683
2725
  const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
2684
2726
  // RTL <body> scrollbar.
@@ -2689,7 +2731,7 @@ function zr(e, t, n) {
2689
2731
  y: a
2690
2732
  };
2691
2733
  }
2692
- function zi(e) {
2734
+ function Wi(e) {
2693
2735
  let {
2694
2736
  elements: t,
2695
2737
  rect: n,
@@ -2704,11 +2746,11 @@ function zi(e) {
2704
2746
  scrollTop: 0
2705
2747
  }, c = ye(1);
2706
2748
  const d = ye(0), p = Ce(r);
2707
- if ((p || !p && !a) && ((it(r) !== "body" || bt(i)) && (l = Wt(r)), Ce(r))) {
2749
+ if ((p || !p && !a) && ((it(r) !== "body" || bt(i)) && (l = $t(r)), Ce(r))) {
2708
2750
  const v = Ue(r);
2709
2751
  c = et(r), d.x = v.x + r.clientLeft, d.y = v.y + r.clientTop;
2710
2752
  }
2711
- const g = i && !p && !a ? zr(i, l, !0) : ye(0);
2753
+ const g = i && !p && !a ? Fr(i, l, !0) : ye(0);
2712
2754
  return {
2713
2755
  width: n.width * c.x,
2714
2756
  height: n.height * c.y,
@@ -2716,11 +2758,11 @@ function zi(e) {
2716
2758
  y: n.y * c.y - l.scrollTop * c.y + d.y + g.y
2717
2759
  };
2718
2760
  }
2719
- function Fi(e) {
2761
+ function Ui(e) {
2720
2762
  return Array.from(e.getClientRects());
2721
2763
  }
2722
- function Vi(e) {
2723
- const t = Se(e), n = Wt(e), r = e.ownerDocument.body, o = ae(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = ae(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
2764
+ function Hi(e) {
2765
+ const t = Se(e), n = $t(e), r = e.ownerDocument.body, o = ae(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = ae(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
2724
2766
  let i = -n.scrollLeft + Rn(e);
2725
2767
  const s = -n.scrollTop;
2726
2768
  return fe(r).direction === "rtl" && (i += ae(t.clientWidth, r.clientWidth) - o), {
@@ -2730,7 +2772,7 @@ function Vi(e) {
2730
2772
  y: s
2731
2773
  };
2732
2774
  }
2733
- function Wi(e, t) {
2775
+ function ji(e, t) {
2734
2776
  const n = ie(e), r = Se(e), o = n.visualViewport;
2735
2777
  let a = r.clientWidth, i = r.clientHeight, s = 0, l = 0;
2736
2778
  if (o) {
@@ -2745,7 +2787,7 @@ function Wi(e, t) {
2745
2787
  y: l
2746
2788
  };
2747
2789
  }
2748
- function $i(e, t) {
2790
+ function Yi(e, t) {
2749
2791
  const n = Ue(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = Ce(e) ? et(e) : ye(1), i = e.clientWidth * a.x, s = e.clientHeight * a.y, l = o * a.x, c = r * a.y;
2750
2792
  return {
2751
2793
  width: i,
@@ -2757,13 +2799,13 @@ function $i(e, t) {
2757
2799
  function qn(e, t, n) {
2758
2800
  let r;
2759
2801
  if (t === "viewport")
2760
- r = Wi(e, n);
2802
+ r = ji(e, n);
2761
2803
  else if (t === "document")
2762
- r = Vi(Se(e));
2804
+ r = Hi(Se(e));
2763
2805
  else if (de(t))
2764
- r = $i(t, n);
2806
+ r = Yi(t, n);
2765
2807
  else {
2766
- const o = Br(e);
2808
+ const o = zr(e);
2767
2809
  r = {
2768
2810
  x: t.x - o.x,
2769
2811
  y: t.y - o.y,
@@ -2773,11 +2815,11 @@ function qn(e, t, n) {
2773
2815
  }
2774
2816
  return Mt(r);
2775
2817
  }
2776
- function Fr(e, t) {
2818
+ function Vr(e, t) {
2777
2819
  const n = Be(e);
2778
- return n === t || !de(n) || nt(n) ? !1 : fe(n).position === "fixed" || Fr(n, t);
2820
+ return n === t || !de(n) || nt(n) ? !1 : fe(n).position === "fixed" || Vr(n, t);
2779
2821
  }
2780
- function Ui(e, t) {
2822
+ function Xi(e, t) {
2781
2823
  const n = t.get(e);
2782
2824
  if (n)
2783
2825
  return n;
@@ -2786,18 +2828,18 @@ function Ui(e, t) {
2786
2828
  let i = a ? Be(e) : e;
2787
2829
  for (; de(i) && !nt(i); ) {
2788
2830
  const s = fe(i), l = Tn(i);
2789
- !l && s.position === "fixed" && (o = null), (a ? !l && !o : !l && s.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || bt(i) && !l && Fr(e, i)) ? r = r.filter((d) => d !== i) : o = s, i = Be(i);
2831
+ !l && s.position === "fixed" && (o = null), (a ? !l && !o : !l && s.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || bt(i) && !l && Vr(e, i)) ? r = r.filter((d) => d !== i) : o = s, i = Be(i);
2790
2832
  }
2791
2833
  return t.set(e, r), r;
2792
2834
  }
2793
- function Hi(e) {
2835
+ function Ki(e) {
2794
2836
  let {
2795
2837
  element: t,
2796
2838
  boundary: n,
2797
2839
  rootBoundary: r,
2798
2840
  strategy: o
2799
2841
  } = e;
2800
- const i = [...n === "clippingAncestors" ? Vt(t) ? [] : Ui(t, this._c) : [].concat(n), r], s = i[0], l = i.reduce((c, d) => {
2842
+ const i = [...n === "clippingAncestors" ? Vt(t) ? [] : Xi(t, this._c) : [].concat(n), r], s = i[0], l = i.reduce((c, d) => {
2801
2843
  const p = qn(t, d, o);
2802
2844
  return c.top = ae(p.top, c.top), c.right = Le(p.right, c.right), c.bottom = Le(p.bottom, c.bottom), c.left = ae(p.left, c.left), c;
2803
2845
  }, qn(t, s, o));
@@ -2808,17 +2850,17 @@ function Hi(e) {
2808
2850
  y: l.top
2809
2851
  };
2810
2852
  }
2811
- function ji(e) {
2853
+ function Gi(e) {
2812
2854
  const {
2813
2855
  width: t,
2814
2856
  height: n
2815
- } = Dr(e);
2857
+ } = Br(e);
2816
2858
  return {
2817
2859
  width: t,
2818
2860
  height: n
2819
2861
  };
2820
2862
  }
2821
- function Yi(e, t, n) {
2863
+ function Zi(e, t, n) {
2822
2864
  const r = Ce(t), o = Se(t), a = n === "fixed", i = Ue(e, !0, a, t);
2823
2865
  let s = {
2824
2866
  scrollLeft: 0,
@@ -2826,11 +2868,11 @@ function Yi(e, t, n) {
2826
2868
  };
2827
2869
  const l = ye(0);
2828
2870
  if (r || !r && !a)
2829
- if ((it(t) !== "body" || bt(o)) && (s = Wt(t)), r) {
2871
+ if ((it(t) !== "body" || bt(o)) && (s = $t(t)), r) {
2830
2872
  const g = Ue(t, !0, a, t);
2831
2873
  l.x = g.x + t.clientLeft, l.y = g.y + t.clientTop;
2832
2874
  } else o && (l.x = Rn(o));
2833
- const c = o && !r && !a ? zr(o, s) : ye(0), d = i.left + s.scrollLeft - l.x - c.x, p = i.top + s.scrollTop - l.y - c.y;
2875
+ const c = o && !r && !a ? Fr(o, s) : ye(0), d = i.left + s.scrollLeft - l.x - c.x, p = i.top + s.scrollTop - l.y - c.y;
2834
2876
  return {
2835
2877
  x: d,
2836
2878
  y: p,
@@ -2849,7 +2891,7 @@ function Qn(e, t) {
2849
2891
  let n = e.offsetParent;
2850
2892
  return Se(e) === n && (n = n.ownerDocument.body), n;
2851
2893
  }
2852
- function Vr(e, t) {
2894
+ function $r(e, t) {
2853
2895
  const n = ie(e);
2854
2896
  if (Vt(e))
2855
2897
  return n;
@@ -2863,14 +2905,14 @@ function Vr(e, t) {
2863
2905
  return n;
2864
2906
  }
2865
2907
  let r = Qn(e, t);
2866
- for (; r && Mi(r) && qt(r); )
2908
+ for (; r && zi(r) && qt(r); )
2867
2909
  r = Qn(r, t);
2868
- return r && nt(r) && qt(r) && !Tn(r) ? n : r || Li(e) || n;
2910
+ return r && nt(r) && qt(r) && !Tn(r) ? n : r || Fi(e) || n;
2869
2911
  }
2870
- const Xi = async function(e) {
2871
- const t = this.getOffsetParent || Vr, n = this.getDimensions, r = await n(e.floating);
2912
+ const qi = async function(e) {
2913
+ const t = this.getOffsetParent || $r, n = this.getDimensions, r = await n(e.floating);
2872
2914
  return {
2873
- reference: Yi(e.reference, await t(e.floating), e.strategy),
2915
+ reference: Zi(e.reference, await t(e.floating), e.strategy),
2874
2916
  floating: {
2875
2917
  x: 0,
2876
2918
  y: 0,
@@ -2879,25 +2921,25 @@ const Xi = async function(e) {
2879
2921
  }
2880
2922
  };
2881
2923
  };
2882
- function Ki(e) {
2924
+ function Qi(e) {
2883
2925
  return fe(e).direction === "rtl";
2884
2926
  }
2885
- const Gi = {
2886
- convertOffsetParentRelativeRectToViewportRelativeRect: zi,
2927
+ const Ji = {
2928
+ convertOffsetParentRelativeRectToViewportRelativeRect: Wi,
2887
2929
  getDocumentElement: Se,
2888
- getClippingRect: Hi,
2889
- getOffsetParent: Vr,
2890
- getElementRects: Xi,
2891
- getClientRects: Fi,
2892
- getDimensions: ji,
2930
+ getClippingRect: Ki,
2931
+ getOffsetParent: $r,
2932
+ getElementRects: qi,
2933
+ getClientRects: Ui,
2934
+ getDimensions: Gi,
2893
2935
  getScale: et,
2894
2936
  isElement: de,
2895
- isRTL: Ki
2937
+ isRTL: Qi
2896
2938
  };
2897
2939
  function Wr(e, t) {
2898
2940
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
2899
2941
  }
2900
- function Zi(e, t) {
2942
+ function es(e, t) {
2901
2943
  let n = null, r;
2902
2944
  const o = Se(e);
2903
2945
  function a() {
@@ -2943,7 +2985,7 @@ function Zi(e, t) {
2943
2985
  }
2944
2986
  return i(!0), a;
2945
2987
  }
2946
- function qi(e, t, n, r) {
2988
+ function ts(e, t, n, r) {
2947
2989
  r === void 0 && (r = {});
2948
2990
  const {
2949
2991
  ancestorScroll: o = !0,
@@ -2957,7 +2999,7 @@ function qi(e, t, n, r) {
2957
2999
  passive: !0
2958
3000
  }), a && b.addEventListener("resize", n);
2959
3001
  });
2960
- const p = c && s ? Zi(c, n) : null;
3002
+ const p = c && s ? es(c, n) : null;
2961
3003
  let g = -1, v = null;
2962
3004
  i && (v = new ResizeObserver((b) => {
2963
3005
  let [x] = b;
@@ -2979,20 +3021,20 @@ function qi(e, t, n, r) {
2979
3021
  }), p == null || p(), (b = v) == null || b.disconnect(), v = null, l && cancelAnimationFrame(m);
2980
3022
  };
2981
3023
  }
2982
- const Qi = Ii, Ji = Ni, es = Ai, ts = Oi, ns = Pi, Jn = Ti, rs = _i, os = (e, t, n) => {
3024
+ const ns = Mi, rs = Li, os = _i, as = Bi, is = Ni, Jn = Ii, ss = Di, ls = (e, t, n) => {
2983
3025
  const r = /* @__PURE__ */ new Map(), o = {
2984
- platform: Gi,
3026
+ platform: Ji,
2985
3027
  ...n
2986
3028
  }, a = {
2987
3029
  ...o.platform,
2988
3030
  _c: r
2989
3031
  };
2990
- return ki(e, t, {
3032
+ return Ri(e, t, {
2991
3033
  ...o,
2992
3034
  platform: a
2993
3035
  });
2994
3036
  };
2995
- var Pt = typeof document < "u" ? Ko : Oe;
3037
+ var Pt = typeof document < "u" ? Go : Oe;
2996
3038
  function Lt(e, t) {
2997
3039
  if (e === t)
2998
3040
  return !0;
@@ -3023,11 +3065,11 @@ function Lt(e, t) {
3023
3065
  }
3024
3066
  return e !== e && t !== t;
3025
3067
  }
3026
- function $r(e) {
3068
+ function Ur(e) {
3027
3069
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
3028
3070
  }
3029
3071
  function er(e, t) {
3030
- const n = $r(e);
3072
+ const n = Ur(e);
3031
3073
  return Math.round(t * n) / n;
3032
3074
  }
3033
3075
  function Qt(e) {
@@ -3036,7 +3078,7 @@ function Qt(e) {
3036
3078
  t.current = e;
3037
3079
  }), t;
3038
3080
  }
3039
- function as(e) {
3081
+ function cs(e) {
3040
3082
  e === void 0 && (e = {});
3041
3083
  const {
3042
3084
  placement: t = "bottom",
@@ -3059,41 +3101,41 @@ function as(e) {
3059
3101
  isPositioned: !1
3060
3102
  }), [g, v] = u.useState(r);
3061
3103
  Lt(g, r) || v(r);
3062
- const [m, f] = u.useState(null), [w, b] = u.useState(null), x = u.useCallback((R) => {
3063
- R !== T.current && (T.current = R, f(R));
3064
- }, []), y = u.useCallback((R) => {
3065
- R !== C.current && (C.current = R, b(R));
3066
- }, []), S = a || m, E = i || w, T = u.useRef(null), C = u.useRef(null), P = u.useRef(d), O = l != null, M = Qt(l), V = Qt(o), W = Qt(c), D = u.useCallback(() => {
3104
+ const [m, f] = u.useState(null), [w, b] = u.useState(null), x = u.useCallback((I) => {
3105
+ I !== T.current && (T.current = I, f(I));
3106
+ }, []), y = u.useCallback((I) => {
3107
+ I !== C.current && (C.current = I, b(I));
3108
+ }, []), S = a || m, E = i || w, T = u.useRef(null), C = u.useRef(null), R = u.useRef(d), O = l != null, M = Qt(l), V = Qt(o), $ = Qt(c), D = u.useCallback(() => {
3067
3109
  if (!T.current || !C.current)
3068
3110
  return;
3069
- const R = {
3111
+ const I = {
3070
3112
  placement: t,
3071
3113
  strategy: n,
3072
3114
  middleware: g
3073
3115
  };
3074
- V.current && (R.platform = V.current), os(T.current, C.current, R).then(($) => {
3116
+ V.current && (I.platform = V.current), ls(T.current, C.current, I).then((W) => {
3075
3117
  const ee = {
3076
- ...$,
3118
+ ...W,
3077
3119
  // The floating element's position may be recomputed while it's closed
3078
3120
  // but still mounted (such as when transitioning out). To ensure
3079
3121
  // `isPositioned` will be `false` initially on the next open, avoid
3080
3122
  // setting it to `true` when `open === false` (must be specified).
3081
- isPositioned: W.current !== !1
3123
+ isPositioned: $.current !== !1
3082
3124
  };
3083
- _.current && !Lt(P.current, ee) && (P.current = ee, u.flushSync(() => {
3125
+ N.current && !Lt(R.current, ee) && (R.current = ee, u.flushSync(() => {
3084
3126
  p(ee);
3085
3127
  }));
3086
3128
  });
3087
- }, [g, t, n, V, W]);
3129
+ }, [g, t, n, V, $]);
3088
3130
  Pt(() => {
3089
- c === !1 && P.current.isPositioned && (P.current.isPositioned = !1, p((R) => ({
3090
- ...R,
3131
+ c === !1 && R.current.isPositioned && (R.current.isPositioned = !1, p((I) => ({
3132
+ ...I,
3091
3133
  isPositioned: !1
3092
3134
  })));
3093
3135
  }, [c]);
3094
- const _ = u.useRef(!1);
3095
- Pt(() => (_.current = !0, () => {
3096
- _.current = !1;
3136
+ const N = u.useRef(!1);
3137
+ Pt(() => (N.current = !0, () => {
3138
+ N.current = !1;
3097
3139
  }), []), Pt(() => {
3098
3140
  if (S && (T.current = S), E && (C.current = E), S && E) {
3099
3141
  if (M.current)
@@ -3101,44 +3143,44 @@ function as(e) {
3101
3143
  D();
3102
3144
  }
3103
3145
  }, [S, E, D, M, O]);
3104
- const Y = u.useMemo(() => ({
3146
+ const X = u.useMemo(() => ({
3105
3147
  reference: T,
3106
3148
  floating: C,
3107
3149
  setReference: x,
3108
3150
  setFloating: y
3109
- }), [x, y]), N = u.useMemo(() => ({
3151
+ }), [x, y]), _ = u.useMemo(() => ({
3110
3152
  reference: S,
3111
3153
  floating: E
3112
3154
  }), [S, E]), L = u.useMemo(() => {
3113
- const R = {
3155
+ const I = {
3114
3156
  position: n,
3115
3157
  left: 0,
3116
3158
  top: 0
3117
3159
  };
3118
- if (!N.floating)
3119
- return R;
3120
- const $ = er(N.floating, d.x), ee = er(N.floating, d.y);
3160
+ if (!_.floating)
3161
+ return I;
3162
+ const W = er(_.floating, d.x), ee = er(_.floating, d.y);
3121
3163
  return s ? {
3122
- ...R,
3123
- transform: "translate(" + $ + "px, " + ee + "px)",
3124
- ...$r(N.floating) >= 1.5 && {
3164
+ ...I,
3165
+ transform: "translate(" + W + "px, " + ee + "px)",
3166
+ ...Ur(_.floating) >= 1.5 && {
3125
3167
  willChange: "transform"
3126
3168
  }
3127
3169
  } : {
3128
3170
  position: n,
3129
- left: $,
3171
+ left: W,
3130
3172
  top: ee
3131
3173
  };
3132
- }, [n, s, N.floating, d.x, d.y]);
3174
+ }, [n, s, _.floating, d.x, d.y]);
3133
3175
  return u.useMemo(() => ({
3134
3176
  ...d,
3135
3177
  update: D,
3136
- refs: Y,
3137
- elements: N,
3178
+ refs: X,
3179
+ elements: _,
3138
3180
  floatingStyles: L
3139
- }), [d, D, Y, N, L]);
3181
+ }), [d, D, X, _, L]);
3140
3182
  }
3141
- const is = (e) => {
3183
+ const us = (e) => {
3142
3184
  function t(n) {
3143
3185
  return {}.hasOwnProperty.call(n, "current");
3144
3186
  }
@@ -3159,29 +3201,29 @@ const is = (e) => {
3159
3201
  }).fn(n) : {};
3160
3202
  }
3161
3203
  };
3162
- }, ss = (e, t) => ({
3163
- ...Qi(e),
3164
- options: [e, t]
3165
- }), ls = (e, t) => ({
3166
- ...Ji(e),
3204
+ }, ds = (e, t) => ({
3205
+ ...ns(e),
3167
3206
  options: [e, t]
3168
- }), cs = (e, t) => ({
3207
+ }), fs = (e, t) => ({
3169
3208
  ...rs(e),
3170
3209
  options: [e, t]
3171
- }), us = (e, t) => ({
3172
- ...es(e),
3210
+ }), ps = (e, t) => ({
3211
+ ...ss(e),
3173
3212
  options: [e, t]
3174
- }), ds = (e, t) => ({
3175
- ...ts(e),
3213
+ }), hs = (e, t) => ({
3214
+ ...os(e),
3176
3215
  options: [e, t]
3177
- }), fs = (e, t) => ({
3178
- ...ns(e),
3216
+ }), vs = (e, t) => ({
3217
+ ...as(e),
3179
3218
  options: [e, t]
3180
- }), ps = (e, t) => ({
3219
+ }), gs = (e, t) => ({
3181
3220
  ...is(e),
3182
3221
  options: [e, t]
3222
+ }), ms = (e, t) => ({
3223
+ ...us(e),
3224
+ options: [e, t]
3183
3225
  });
3184
- var hs = "Arrow", Ur = u.forwardRef((e, t) => {
3226
+ var ws = "Arrow", Hr = u.forwardRef((e, t) => {
3185
3227
  const { children: n, width: r = 10, height: o = 5, ...a } = e;
3186
3228
  return /* @__PURE__ */ k(
3187
3229
  K.svg,
@@ -3196,9 +3238,9 @@ var hs = "Arrow", Ur = u.forwardRef((e, t) => {
3196
3238
  }
3197
3239
  );
3198
3240
  });
3199
- Ur.displayName = hs;
3200
- var vs = Ur;
3201
- function gs(e) {
3241
+ Hr.displayName = ws;
3242
+ var bs = Hr;
3243
+ function xs(e) {
3202
3244
  const [t, n] = u.useState(void 0);
3203
3245
  return te(() => {
3204
3246
  if (e) {
@@ -3220,23 +3262,23 @@ function gs(e) {
3220
3262
  n(void 0);
3221
3263
  }, [e]), t;
3222
3264
  }
3223
- var In = "Popper", [Hr, jr] = yn(In), [ms, Yr] = Hr(In), Xr = (e) => {
3265
+ var In = "Popper", [jr, Yr] = yn(In), [ys, Xr] = jr(In), Kr = (e) => {
3224
3266
  const { __scopePopper: t, children: n } = e, [r, o] = u.useState(null);
3225
- return /* @__PURE__ */ k(ms, { scope: t, anchor: r, onAnchorChange: o, children: n });
3267
+ return /* @__PURE__ */ k(ys, { scope: t, anchor: r, onAnchorChange: o, children: n });
3226
3268
  };
3227
- Xr.displayName = In;
3228
- var Kr = "PopperAnchor", Gr = u.forwardRef(
3269
+ Kr.displayName = In;
3270
+ var Gr = "PopperAnchor", Zr = u.forwardRef(
3229
3271
  (e, t) => {
3230
- const { __scopePopper: n, virtualRef: r, ...o } = e, a = Yr(Kr, n), i = u.useRef(null), s = Z(t, i);
3272
+ const { __scopePopper: n, virtualRef: r, ...o } = e, a = Xr(Gr, n), i = u.useRef(null), s = Z(t, i);
3231
3273
  return u.useEffect(() => {
3232
3274
  a.onAnchorChange((r == null ? void 0 : r.current) || i.current);
3233
3275
  }), r ? null : /* @__PURE__ */ k(K.div, { ...o, ref: s });
3234
3276
  }
3235
3277
  );
3236
- Gr.displayName = Kr;
3237
- var Nn = "PopperContent", [ws, bs] = Hr(Nn), Zr = u.forwardRef(
3278
+ Zr.displayName = Gr;
3279
+ var _n = "PopperContent", [Cs, Ss] = jr(_n), qr = u.forwardRef(
3238
3280
  (e, t) => {
3239
- var A, U, q, F, B, z;
3281
+ var A, U, Q, F, B, z;
3240
3282
  const {
3241
3283
  __scopePopper: n,
3242
3284
  side: r = "bottom",
@@ -3252,77 +3294,77 @@ var Nn = "PopperContent", [ws, bs] = Hr(Nn), Zr = u.forwardRef(
3252
3294
  updatePositionStrategy: v = "optimized",
3253
3295
  onPlaced: m,
3254
3296
  ...f
3255
- } = e, w = Yr(Nn, n), [b, x] = u.useState(null), y = Z(t, (oe) => x(oe)), [S, E] = u.useState(null), T = gs(S), C = (T == null ? void 0 : T.width) ?? 0, P = (T == null ? void 0 : T.height) ?? 0, O = r + (a !== "center" ? "-" + a : ""), M = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, V = Array.isArray(c) ? c : [c], W = V.length > 0, D = {
3297
+ } = e, w = Xr(_n, n), [b, x] = u.useState(null), y = Z(t, (oe) => x(oe)), [S, E] = u.useState(null), T = xs(S), C = (T == null ? void 0 : T.width) ?? 0, R = (T == null ? void 0 : T.height) ?? 0, O = r + (a !== "center" ? "-" + a : ""), M = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, V = Array.isArray(c) ? c : [c], $ = V.length > 0, D = {
3256
3298
  padding: M,
3257
- boundary: V.filter(ys),
3299
+ boundary: V.filter(ks),
3258
3300
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
3259
- altBoundary: W
3260
- }, { refs: _, floatingStyles: Y, placement: N, isPositioned: L, middlewareData: R } = as({
3301
+ altBoundary: $
3302
+ }, { refs: N, floatingStyles: X, placement: _, isPositioned: L, middlewareData: I } = cs({
3261
3303
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
3262
3304
  strategy: "fixed",
3263
3305
  placement: O,
3264
- whileElementsMounted: (...oe) => qi(...oe, {
3306
+ whileElementsMounted: (...oe) => ts(...oe, {
3265
3307
  animationFrame: v === "always"
3266
3308
  }),
3267
3309
  elements: {
3268
3310
  reference: w.anchor
3269
3311
  },
3270
3312
  middleware: [
3271
- ss({ mainAxis: o + P, alignmentAxis: i }),
3272
- l && ls({
3313
+ ds({ mainAxis: o + R, alignmentAxis: i }),
3314
+ l && fs({
3273
3315
  mainAxis: !0,
3274
3316
  crossAxis: !1,
3275
- limiter: p === "partial" ? cs() : void 0,
3317
+ limiter: p === "partial" ? ps() : void 0,
3276
3318
  ...D
3277
3319
  }),
3278
- l && us({ ...D }),
3279
- ds({
3320
+ l && hs({ ...D }),
3321
+ vs({
3280
3322
  ...D,
3281
3323
  apply: ({ elements: oe, rects: ve, availableWidth: ut, availableHeight: dt }) => {
3282
- const { width: ft, height: $o } = ve.reference, xt = oe.floating.style;
3283
- xt.setProperty("--radix-popper-available-width", `${ut}px`), xt.setProperty("--radix-popper-available-height", `${dt}px`), xt.setProperty("--radix-popper-anchor-width", `${ft}px`), xt.setProperty("--radix-popper-anchor-height", `${$o}px`);
3324
+ const { width: ft, height: Uo } = ve.reference, xt = oe.floating.style;
3325
+ xt.setProperty("--radix-popper-available-width", `${ut}px`), xt.setProperty("--radix-popper-available-height", `${dt}px`), xt.setProperty("--radix-popper-anchor-width", `${ft}px`), xt.setProperty("--radix-popper-anchor-height", `${Uo}px`);
3284
3326
  }
3285
3327
  }),
3286
- S && ps({ element: S, padding: s }),
3287
- Cs({ arrowWidth: C, arrowHeight: P }),
3288
- g && fs({ strategy: "referenceHidden", ...D })
3328
+ S && ms({ element: S, padding: s }),
3329
+ Ts({ arrowWidth: C, arrowHeight: R }),
3330
+ g && gs({ strategy: "referenceHidden", ...D })
3289
3331
  ]
3290
- }), [$, ee] = Jr(N), Ee = $e(m);
3332
+ }), [W, ee] = eo(_), Ee = We(m);
3291
3333
  te(() => {
3292
3334
  L && (Ee == null || Ee());
3293
3335
  }, [L, Ee]);
3294
- const lt = (A = R.arrow) == null ? void 0 : A.x, ct = (U = R.arrow) == null ? void 0 : U.y, Ie = ((q = R.arrow) == null ? void 0 : q.centerOffset) !== 0, [Ye, We] = u.useState();
3336
+ const lt = (A = I.arrow) == null ? void 0 : A.x, ct = (U = I.arrow) == null ? void 0 : U.y, Ie = ((Q = I.arrow) == null ? void 0 : Q.centerOffset) !== 0, [Ye, $e] = u.useState();
3295
3337
  return te(() => {
3296
- b && We(window.getComputedStyle(b).zIndex);
3338
+ b && $e(window.getComputedStyle(b).zIndex);
3297
3339
  }, [b]), /* @__PURE__ */ k(
3298
3340
  "div",
3299
3341
  {
3300
- ref: _.setFloating,
3342
+ ref: N.setFloating,
3301
3343
  "data-radix-popper-content-wrapper": "",
3302
3344
  style: {
3303
- ...Y,
3304
- transform: L ? Y.transform : "translate(0, -200%)",
3345
+ ...X,
3346
+ transform: L ? X.transform : "translate(0, -200%)",
3305
3347
  // keep off the page when measuring
3306
3348
  minWidth: "max-content",
3307
3349
  zIndex: Ye,
3308
3350
  "--radix-popper-transform-origin": [
3309
- (F = R.transformOrigin) == null ? void 0 : F.x,
3310
- (B = R.transformOrigin) == null ? void 0 : B.y
3351
+ (F = I.transformOrigin) == null ? void 0 : F.x,
3352
+ (B = I.transformOrigin) == null ? void 0 : B.y
3311
3353
  ].join(" "),
3312
3354
  // hide the content if using the hide middleware and should be hidden
3313
3355
  // set visibility to hidden and disable pointer events so the UI behaves
3314
3356
  // as if the PopperContent isn't there at all
3315
- ...((z = R.hide) == null ? void 0 : z.referenceHidden) && {
3357
+ ...((z = I.hide) == null ? void 0 : z.referenceHidden) && {
3316
3358
  visibility: "hidden",
3317
3359
  pointerEvents: "none"
3318
3360
  }
3319
3361
  },
3320
3362
  dir: e.dir,
3321
3363
  children: /* @__PURE__ */ k(
3322
- ws,
3364
+ Cs,
3323
3365
  {
3324
3366
  scope: n,
3325
- placedSide: $,
3367
+ placedSide: W,
3326
3368
  onArrowChange: E,
3327
3369
  arrowX: lt,
3328
3370
  arrowY: ct,
@@ -3330,7 +3372,7 @@ var Nn = "PopperContent", [ws, bs] = Hr(Nn), Zr = u.forwardRef(
3330
3372
  children: /* @__PURE__ */ k(
3331
3373
  K.div,
3332
3374
  {
3333
- "data-side": $,
3375
+ "data-side": W,
3334
3376
  "data-align": ee,
3335
3377
  ...f,
3336
3378
  ref: y,
@@ -3348,14 +3390,14 @@ var Nn = "PopperContent", [ws, bs] = Hr(Nn), Zr = u.forwardRef(
3348
3390
  );
3349
3391
  }
3350
3392
  );
3351
- Zr.displayName = Nn;
3352
- var qr = "PopperArrow", xs = {
3393
+ qr.displayName = _n;
3394
+ var Qr = "PopperArrow", Es = {
3353
3395
  top: "bottom",
3354
3396
  right: "left",
3355
3397
  bottom: "top",
3356
3398
  left: "right"
3357
- }, Qr = u.forwardRef(function(t, n) {
3358
- const { __scopePopper: r, ...o } = t, a = bs(qr, r), i = xs[a.placedSide];
3399
+ }, Jr = u.forwardRef(function(t, n) {
3400
+ const { __scopePopper: r, ...o } = t, a = Ss(Qr, r), i = Es[a.placedSide];
3359
3401
  return (
3360
3402
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
3361
3403
  // doesn't report size as we'd expect on SVG elements.
@@ -3384,7 +3426,7 @@ var qr = "PopperArrow", xs = {
3384
3426
  visibility: a.shouldHideArrow ? "hidden" : void 0
3385
3427
  },
3386
3428
  children: /* @__PURE__ */ k(
3387
- vs,
3429
+ bs,
3388
3430
  {
3389
3431
  ...o,
3390
3432
  ref: n,
@@ -3399,33 +3441,33 @@ var qr = "PopperArrow", xs = {
3399
3441
  )
3400
3442
  );
3401
3443
  });
3402
- Qr.displayName = qr;
3403
- function ys(e) {
3444
+ Jr.displayName = Qr;
3445
+ function ks(e) {
3404
3446
  return e !== null;
3405
3447
  }
3406
- var Cs = (e) => ({
3448
+ var Ts = (e) => ({
3407
3449
  name: "transformOrigin",
3408
3450
  options: e,
3409
3451
  fn(t) {
3410
3452
  var w, b, x;
3411
- const { placement: n, rects: r, middlewareData: o } = t, i = ((w = o.arrow) == null ? void 0 : w.centerOffset) !== 0, s = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [c, d] = Jr(n), p = { start: "0%", center: "50%", end: "100%" }[d], g = (((b = o.arrow) == null ? void 0 : b.x) ?? 0) + s / 2, v = (((x = o.arrow) == null ? void 0 : x.y) ?? 0) + l / 2;
3453
+ const { placement: n, rects: r, middlewareData: o } = t, i = ((w = o.arrow) == null ? void 0 : w.centerOffset) !== 0, s = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [c, d] = eo(n), p = { start: "0%", center: "50%", end: "100%" }[d], g = (((b = o.arrow) == null ? void 0 : b.x) ?? 0) + s / 2, v = (((x = o.arrow) == null ? void 0 : x.y) ?? 0) + l / 2;
3412
3454
  let m = "", f = "";
3413
3455
  return c === "bottom" ? (m = i ? p : `${g}px`, f = `${-l}px`) : c === "top" ? (m = i ? p : `${g}px`, f = `${r.floating.height + l}px`) : c === "right" ? (m = `${-l}px`, f = i ? p : `${v}px`) : c === "left" && (m = `${r.floating.width + l}px`, f = i ? p : `${v}px`), { data: { x: m, y: f } };
3414
3456
  }
3415
3457
  });
3416
- function Jr(e) {
3458
+ function eo(e) {
3417
3459
  const [t, n = "center"] = e.split("-");
3418
3460
  return [t, n];
3419
3461
  }
3420
- var Ss = Xr, Es = Gr, ks = Zr, Ts = Qr, As = "Portal", eo = u.forwardRef((e, t) => {
3462
+ var As = Kr, Ps = Zr, Rs = qr, Is = Jr, _s = "Portal", to = u.forwardRef((e, t) => {
3421
3463
  var s;
3422
3464
  const { container: n, ...r } = e, [o, a] = u.useState(!1);
3423
3465
  te(() => a(!0), []);
3424
3466
  const i = n || o && ((s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body);
3425
- return i ? Ne.createPortal(/* @__PURE__ */ k(K.div, { ...r, ref: t }), i) : null;
3467
+ return i ? _e.createPortal(/* @__PURE__ */ k(K.div, { ...r, ref: t }), i) : null;
3426
3468
  });
3427
- eo.displayName = As;
3428
- var Ps = u[" useInsertionEffect ".trim().toString()] || te;
3469
+ to.displayName = _s;
3470
+ var Ns = u[" useInsertionEffect ".trim().toString()] || te;
3429
3471
  function tr({
3430
3472
  prop: e,
3431
3473
  defaultProp: t,
@@ -3433,7 +3475,7 @@ function tr({
3433
3475
  },
3434
3476
  caller: r
3435
3477
  }) {
3436
- const [o, a, i] = Rs({
3478
+ const [o, a, i] = Os({
3437
3479
  defaultProp: t,
3438
3480
  onChange: n
3439
3481
  }), s = e !== void 0, l = s ? e : o;
@@ -3450,7 +3492,7 @@ function tr({
3450
3492
  (d) => {
3451
3493
  var p;
3452
3494
  if (s) {
3453
- const g = Is(d) ? d(e) : d;
3495
+ const g = Ms(d) ? d(e) : d;
3454
3496
  g !== e && ((p = i.current) == null || p.call(i, g));
3455
3497
  } else
3456
3498
  a(d);
@@ -3459,26 +3501,26 @@ function tr({
3459
3501
  );
3460
3502
  return [l, c];
3461
3503
  }
3462
- function Rs({
3504
+ function Os({
3463
3505
  defaultProp: e,
3464
3506
  onChange: t
3465
3507
  }) {
3466
3508
  const [n, r] = u.useState(e), o = u.useRef(n), a = u.useRef(t);
3467
- return Ps(() => {
3509
+ return Ns(() => {
3468
3510
  a.current = t;
3469
3511
  }, [t]), u.useEffect(() => {
3470
3512
  var i;
3471
3513
  o.current !== n && ((i = a.current) == null || i.call(a, n), o.current = n);
3472
3514
  }, [n, o]), [n, r, a];
3473
3515
  }
3474
- function Is(e) {
3516
+ function Ms(e) {
3475
3517
  return typeof e == "function";
3476
3518
  }
3477
- function Ns(e) {
3519
+ function Ls(e) {
3478
3520
  const t = u.useRef({ value: e, previous: e });
3479
3521
  return u.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
3480
3522
  }
3481
- var to = Object.freeze({
3523
+ var no = Object.freeze({
3482
3524
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
3483
3525
  position: "absolute",
3484
3526
  border: 0,
@@ -3490,35 +3532,35 @@ var to = Object.freeze({
3490
3532
  clip: "rect(0, 0, 0, 0)",
3491
3533
  whiteSpace: "nowrap",
3492
3534
  wordWrap: "normal"
3493
- }), _s = "VisuallyHidden", Os = u.forwardRef(
3535
+ }), Ds = "VisuallyHidden", Bs = u.forwardRef(
3494
3536
  (e, t) => /* @__PURE__ */ k(
3495
3537
  K.span,
3496
3538
  {
3497
3539
  ...e,
3498
3540
  ref: t,
3499
- style: { ...to, ...e.style }
3541
+ style: { ...no, ...e.style }
3500
3542
  }
3501
3543
  )
3502
3544
  );
3503
- Os.displayName = _s;
3504
- var Ms = function(e) {
3545
+ Bs.displayName = Ds;
3546
+ var zs = function(e) {
3505
3547
  if (typeof document > "u")
3506
3548
  return null;
3507
3549
  var t = Array.isArray(e) ? e[0] : e;
3508
3550
  return t.ownerDocument.body;
3509
- }, Xe = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Et = {}, Jt = 0, no = function(e) {
3510
- return e && (e.host || no(e.parentNode));
3511
- }, Ls = function(e, t) {
3551
+ }, Xe = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Et = {}, Jt = 0, ro = function(e) {
3552
+ return e && (e.host || ro(e.parentNode));
3553
+ }, Fs = function(e, t) {
3512
3554
  return t.map(function(n) {
3513
3555
  if (e.contains(n))
3514
3556
  return n;
3515
- var r = no(n);
3557
+ var r = ro(n);
3516
3558
  return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
3517
3559
  }).filter(function(n) {
3518
3560
  return !!n;
3519
3561
  });
3520
- }, Ds = function(e, t, n, r) {
3521
- var o = Ls(t, Array.isArray(e) ? e : [e]);
3562
+ }, Vs = function(e, t, n, r) {
3563
+ var o = Fs(t, Array.isArray(e) ? e : [e]);
3522
3564
  Et[n] || (Et[n] = /* @__PURE__ */ new WeakMap());
3523
3565
  var a = Et[n], i = [], s = /* @__PURE__ */ new Set(), l = new Set(o), c = function(p) {
3524
3566
  !p || s.has(p) || (s.add(p), c(p.parentNode));
@@ -3543,10 +3585,10 @@ var Ms = function(e) {
3543
3585
  Xe.set(p, g), a.set(p, v), g || (St.has(p) || p.removeAttribute(r), St.delete(p)), v || p.removeAttribute(n);
3544
3586
  }), Jt--, Jt || (Xe = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Et = {});
3545
3587
  };
3546
- }, Bs = function(e, t, n) {
3588
+ }, $s = function(e, t, n) {
3547
3589
  n === void 0 && (n = "data-aria-hidden");
3548
- var r = Array.from(Array.isArray(e) ? e : [e]), o = Ms(e);
3549
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Ds(r, o, n, "aria-hidden")) : function() {
3590
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = zs(e);
3591
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Vs(r, o, n, "aria-hidden")) : function() {
3550
3592
  return null;
3551
3593
  };
3552
3594
  }, me = function() {
@@ -3558,7 +3600,7 @@ var Ms = function(e) {
3558
3600
  return t;
3559
3601
  }, me.apply(this, arguments);
3560
3602
  };
3561
- function ro(e, t) {
3603
+ function oo(e, t) {
3562
3604
  var n = {};
3563
3605
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3564
3606
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -3566,16 +3608,16 @@ function ro(e, t) {
3566
3608
  t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
3567
3609
  return n;
3568
3610
  }
3569
- function zs(e, t, n) {
3611
+ function Ws(e, t, n) {
3570
3612
  if (n || arguments.length === 2) for (var r = 0, o = t.length, a; r < o; r++)
3571
3613
  (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
3572
3614
  return e.concat(a || Array.prototype.slice.call(t));
3573
3615
  }
3574
- var Rt = "right-scroll-bar-position", It = "width-before-scroll-bar", Fs = "with-scroll-bars-hidden", Vs = "--removed-body-scroll-bar-size";
3616
+ var Rt = "right-scroll-bar-position", It = "width-before-scroll-bar", Us = "with-scroll-bars-hidden", Hs = "--removed-body-scroll-bar-size";
3575
3617
  function en(e, t) {
3576
3618
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
3577
3619
  }
3578
- function Ws(e, t) {
3620
+ function js(e, t) {
3579
3621
  var n = be(function() {
3580
3622
  return {
3581
3623
  // value
@@ -3596,14 +3638,14 @@ function Ws(e, t) {
3596
3638
  })[0];
3597
3639
  return n.callback = t, n.facade;
3598
3640
  }
3599
- var $s = typeof window < "u" ? u.useLayoutEffect : u.useEffect, nr = /* @__PURE__ */ new WeakMap();
3600
- function Us(e, t) {
3601
- var n = Ws(null, function(r) {
3641
+ var Ys = typeof window < "u" ? u.useLayoutEffect : u.useEffect, nr = /* @__PURE__ */ new WeakMap();
3642
+ function Xs(e, t) {
3643
+ var n = js(null, function(r) {
3602
3644
  return e.forEach(function(o) {
3603
3645
  return en(o, r);
3604
3646
  });
3605
3647
  });
3606
- return $s(function() {
3648
+ return Ys(function() {
3607
3649
  var r = nr.get(n);
3608
3650
  if (r) {
3609
3651
  var o = new Set(r), a = new Set(e), i = n.current;
@@ -3616,11 +3658,11 @@ function Us(e, t) {
3616
3658
  nr.set(n, e);
3617
3659
  }, [e]), n;
3618
3660
  }
3619
- function Hs(e) {
3661
+ function Ks(e) {
3620
3662
  return e;
3621
3663
  }
3622
- function js(e, t) {
3623
- t === void 0 && (t = Hs);
3664
+ function Gs(e, t) {
3665
+ t === void 0 && (t = Ks);
3624
3666
  var n = [], r = !1, o = {
3625
3667
  read: function() {
3626
3668
  if (r)
@@ -3674,13 +3716,13 @@ function js(e, t) {
3674
3716
  };
3675
3717
  return o;
3676
3718
  }
3677
- function Ys(e) {
3719
+ function Zs(e) {
3678
3720
  e === void 0 && (e = {});
3679
- var t = js(null);
3721
+ var t = Gs(null);
3680
3722
  return t.options = me({ async: !0, ssr: !1 }, e), t;
3681
3723
  }
3682
- var oo = function(e) {
3683
- var t = e.sideCar, n = ro(e, ["sideCar"]);
3724
+ var ao = function(e) {
3725
+ var t = e.sideCar, n = oo(e, ["sideCar"]);
3684
3726
  if (!t)
3685
3727
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
3686
3728
  var r = t.read();
@@ -3688,64 +3730,64 @@ var oo = function(e) {
3688
3730
  throw new Error("Sidecar medium not found");
3689
3731
  return u.createElement(r, me({}, n));
3690
3732
  };
3691
- oo.isSideCarExport = !0;
3692
- function Xs(e, t) {
3693
- return e.useMedium(t), oo;
3733
+ ao.isSideCarExport = !0;
3734
+ function qs(e, t) {
3735
+ return e.useMedium(t), ao;
3694
3736
  }
3695
- var ao = Ys(), tn = function() {
3696
- }, $t = u.forwardRef(function(e, t) {
3737
+ var io = Zs(), tn = function() {
3738
+ }, Wt = u.forwardRef(function(e, t) {
3697
3739
  var n = u.useRef(null), r = u.useState({
3698
3740
  onScrollCapture: tn,
3699
3741
  onWheelCapture: tn,
3700
3742
  onTouchMoveCapture: tn
3701
- }), o = r[0], a = r[1], i = e.forwardProps, s = e.children, l = e.className, c = e.removeScrollBar, d = e.enabled, p = e.shards, g = e.sideCar, v = e.noIsolation, m = e.inert, f = e.allowPinchZoom, w = e.as, b = w === void 0 ? "div" : w, x = e.gapMode, y = ro(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = g, E = Us([n, t]), T = me(me({}, y), o);
3743
+ }), o = r[0], a = r[1], i = e.forwardProps, s = e.children, l = e.className, c = e.removeScrollBar, d = e.enabled, p = e.shards, g = e.sideCar, v = e.noIsolation, m = e.inert, f = e.allowPinchZoom, w = e.as, b = w === void 0 ? "div" : w, x = e.gapMode, y = oo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = g, E = Xs([n, t]), T = me(me({}, y), o);
3702
3744
  return u.createElement(
3703
3745
  u.Fragment,
3704
3746
  null,
3705
- d && u.createElement(S, { sideCar: ao, removeScrollBar: c, shards: p, noIsolation: v, inert: m, setCallbacks: a, allowPinchZoom: !!f, lockRef: n, gapMode: x }),
3747
+ d && u.createElement(S, { sideCar: io, removeScrollBar: c, shards: p, noIsolation: v, inert: m, setCallbacks: a, allowPinchZoom: !!f, lockRef: n, gapMode: x }),
3706
3748
  i ? u.cloneElement(u.Children.only(s), me(me({}, T), { ref: E })) : u.createElement(b, me({}, T, { className: l, ref: E }), s)
3707
3749
  );
3708
3750
  });
3709
- $t.defaultProps = {
3751
+ Wt.defaultProps = {
3710
3752
  enabled: !0,
3711
3753
  removeScrollBar: !0,
3712
3754
  inert: !1
3713
3755
  };
3714
- $t.classNames = {
3756
+ Wt.classNames = {
3715
3757
  fullWidth: It,
3716
3758
  zeroRight: Rt
3717
3759
  };
3718
- var Ks = function() {
3760
+ var Qs = function() {
3719
3761
  if (typeof __webpack_nonce__ < "u")
3720
3762
  return __webpack_nonce__;
3721
3763
  };
3722
- function Gs() {
3764
+ function Js() {
3723
3765
  if (!document)
3724
3766
  return null;
3725
3767
  var e = document.createElement("style");
3726
3768
  e.type = "text/css";
3727
- var t = Ks();
3769
+ var t = Qs();
3728
3770
  return t && e.setAttribute("nonce", t), e;
3729
3771
  }
3730
- function Zs(e, t) {
3772
+ function el(e, t) {
3731
3773
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
3732
3774
  }
3733
- function qs(e) {
3775
+ function tl(e) {
3734
3776
  var t = document.head || document.getElementsByTagName("head")[0];
3735
3777
  t.appendChild(e);
3736
3778
  }
3737
- var Qs = function() {
3779
+ var nl = function() {
3738
3780
  var e = 0, t = null;
3739
3781
  return {
3740
3782
  add: function(n) {
3741
- e == 0 && (t = Gs()) && (Zs(t, n), qs(t)), e++;
3783
+ e == 0 && (t = Js()) && (el(t, n), tl(t)), e++;
3742
3784
  },
3743
3785
  remove: function() {
3744
3786
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
3745
3787
  }
3746
3788
  };
3747
- }, Js = function() {
3748
- var e = Qs();
3789
+ }, rl = function() {
3790
+ var e = nl();
3749
3791
  return function(t, n) {
3750
3792
  u.useEffect(function() {
3751
3793
  return e.add(t), function() {
@@ -3753,36 +3795,36 @@ var Qs = function() {
3753
3795
  };
3754
3796
  }, [t && n]);
3755
3797
  };
3756
- }, io = function() {
3757
- var e = Js(), t = function(n) {
3798
+ }, so = function() {
3799
+ var e = rl(), t = function(n) {
3758
3800
  var r = n.styles, o = n.dynamic;
3759
3801
  return e(r, o), null;
3760
3802
  };
3761
3803
  return t;
3762
- }, el = {
3804
+ }, ol = {
3763
3805
  left: 0,
3764
3806
  top: 0,
3765
3807
  right: 0,
3766
3808
  gap: 0
3767
3809
  }, nn = function(e) {
3768
3810
  return parseInt(e || "", 10) || 0;
3769
- }, tl = function(e) {
3811
+ }, al = function(e) {
3770
3812
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
3771
3813
  return [nn(n), nn(r), nn(o)];
3772
- }, nl = function(e) {
3814
+ }, il = function(e) {
3773
3815
  if (e === void 0 && (e = "margin"), typeof window > "u")
3774
- return el;
3775
- var t = tl(e), n = document.documentElement.clientWidth, r = window.innerWidth;
3816
+ return ol;
3817
+ var t = al(e), n = document.documentElement.clientWidth, r = window.innerWidth;
3776
3818
  return {
3777
3819
  left: t[0],
3778
3820
  top: t[1],
3779
3821
  right: t[2],
3780
3822
  gap: Math.max(0, r - n + t[2] - t[0])
3781
3823
  };
3782
- }, rl = io(), tt = "data-scroll-locked", ol = function(e, t, n, r) {
3824
+ }, sl = so(), tt = "data-scroll-locked", ll = function(e, t, n, r) {
3783
3825
  var o = e.left, a = e.top, i = e.right, s = e.gap;
3784
3826
  return n === void 0 && (n = "margin"), `
3785
- .`.concat(Fs, ` {
3827
+ .`.concat(Us, ` {
3786
3828
  overflow: hidden `).concat(r, `;
3787
3829
  padding-right: `).concat(s, "px ").concat(r, `;
3788
3830
  }
@@ -3820,26 +3862,26 @@ var Qs = function() {
3820
3862
  }
3821
3863
 
3822
3864
  body[`).concat(tt, `] {
3823
- `).concat(Vs, ": ").concat(s, `px;
3865
+ `).concat(Hs, ": ").concat(s, `px;
3824
3866
  }
3825
3867
  `);
3826
3868
  }, rr = function() {
3827
3869
  var e = parseInt(document.body.getAttribute(tt) || "0", 10);
3828
3870
  return isFinite(e) ? e : 0;
3829
- }, al = function() {
3871
+ }, cl = function() {
3830
3872
  u.useEffect(function() {
3831
3873
  return document.body.setAttribute(tt, (rr() + 1).toString()), function() {
3832
3874
  var e = rr() - 1;
3833
3875
  e <= 0 ? document.body.removeAttribute(tt) : document.body.setAttribute(tt, e.toString());
3834
3876
  };
3835
3877
  }, []);
3836
- }, il = function(e) {
3878
+ }, ul = function(e) {
3837
3879
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
3838
- al();
3880
+ cl();
3839
3881
  var a = u.useMemo(function() {
3840
- return nl(o);
3882
+ return il(o);
3841
3883
  }, [o]);
3842
- return u.createElement(rl, { styles: ol(a, !t, o, n ? "" : "!important") });
3884
+ return u.createElement(sl, { styles: ll(a, !t, o, n ? "" : "!important") });
3843
3885
  }, dn = !1;
3844
3886
  if (typeof window < "u")
3845
3887
  try {
@@ -3852,59 +3894,59 @@ if (typeof window < "u")
3852
3894
  } catch {
3853
3895
  dn = !1;
3854
3896
  }
3855
- var Ke = dn ? { passive: !1 } : !1, sl = function(e) {
3897
+ var Ke = dn ? { passive: !1 } : !1, dl = function(e) {
3856
3898
  return e.tagName === "TEXTAREA";
3857
- }, so = function(e, t) {
3899
+ }, lo = function(e, t) {
3858
3900
  if (!(e instanceof Element))
3859
3901
  return !1;
3860
3902
  var n = window.getComputedStyle(e);
3861
3903
  return (
3862
3904
  // not-not-scrollable
3863
3905
  n[t] !== "hidden" && // contains scroll inside self
3864
- !(n.overflowY === n.overflowX && !sl(e) && n[t] === "visible")
3906
+ !(n.overflowY === n.overflowX && !dl(e) && n[t] === "visible")
3865
3907
  );
3866
- }, ll = function(e) {
3867
- return so(e, "overflowY");
3868
- }, cl = function(e) {
3869
- return so(e, "overflowX");
3908
+ }, fl = function(e) {
3909
+ return lo(e, "overflowY");
3910
+ }, pl = function(e) {
3911
+ return lo(e, "overflowX");
3870
3912
  }, or = function(e, t) {
3871
3913
  var n = t.ownerDocument, r = t;
3872
3914
  do {
3873
3915
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
3874
- var o = lo(e, r);
3916
+ var o = co(e, r);
3875
3917
  if (o) {
3876
- var a = co(e, r), i = a[1], s = a[2];
3918
+ var a = uo(e, r), i = a[1], s = a[2];
3877
3919
  if (i > s)
3878
3920
  return !0;
3879
3921
  }
3880
3922
  r = r.parentNode;
3881
3923
  } while (r && r !== n.body);
3882
3924
  return !1;
3883
- }, ul = function(e) {
3925
+ }, hl = function(e) {
3884
3926
  var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
3885
3927
  return [
3886
3928
  t,
3887
3929
  n,
3888
3930
  r
3889
3931
  ];
3890
- }, dl = function(e) {
3932
+ }, vl = function(e) {
3891
3933
  var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
3892
3934
  return [
3893
3935
  t,
3894
3936
  n,
3895
3937
  r
3896
3938
  ];
3897
- }, lo = function(e, t) {
3898
- return e === "v" ? ll(t) : cl(t);
3899
3939
  }, co = function(e, t) {
3900
- return e === "v" ? ul(t) : dl(t);
3901
- }, fl = function(e, t) {
3940
+ return e === "v" ? fl(t) : pl(t);
3941
+ }, uo = function(e, t) {
3942
+ return e === "v" ? hl(t) : vl(t);
3943
+ }, gl = function(e, t) {
3902
3944
  return e === "h" && t === "rtl" ? -1 : 1;
3903
- }, pl = function(e, t, n, r, o) {
3904
- var a = fl(e, window.getComputedStyle(t).direction), i = a * r, s = n.target, l = t.contains(s), c = !1, d = i > 0, p = 0, g = 0;
3945
+ }, ml = function(e, t, n, r, o) {
3946
+ var a = gl(e, window.getComputedStyle(t).direction), i = a * r, s = n.target, l = t.contains(s), c = !1, d = i > 0, p = 0, g = 0;
3905
3947
  do {
3906
- var v = co(e, s), m = v[0], f = v[1], w = v[2], b = f - w - a * m;
3907
- (m || b) && lo(e, s) && (p += b, g += m), s instanceof ShadowRoot ? s = s.host : s = s.parentNode;
3948
+ var v = uo(e, s), m = v[0], f = v[1], w = v[2], b = f - w - a * m;
3949
+ (m || b) && co(e, s) && (p += b, g += m), s instanceof ShadowRoot ? s = s.host : s = s.parentNode;
3908
3950
  } while (
3909
3951
  // portaled content
3910
3952
  !l && s !== document.body || // self content
@@ -3917,22 +3959,22 @@ var Ke = dn ? { passive: !1 } : !1, sl = function(e) {
3917
3959
  return [e.deltaX, e.deltaY];
3918
3960
  }, ir = function(e) {
3919
3961
  return e && "current" in e ? e.current : e;
3920
- }, hl = function(e, t) {
3962
+ }, wl = function(e, t) {
3921
3963
  return e[0] === t[0] && e[1] === t[1];
3922
- }, vl = function(e) {
3964
+ }, bl = function(e) {
3923
3965
  return `
3924
3966
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
3925
3967
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
3926
3968
  `);
3927
- }, gl = 0, Ge = [];
3928
- function ml(e) {
3929
- var t = u.useRef([]), n = u.useRef([0, 0]), r = u.useRef(), o = u.useState(gl++)[0], a = u.useState(io)[0], i = u.useRef(e);
3969
+ }, xl = 0, Ge = [];
3970
+ function yl(e) {
3971
+ var t = u.useRef([]), n = u.useRef([0, 0]), r = u.useRef(), o = u.useState(xl++)[0], a = u.useState(so)[0], i = u.useRef(e);
3930
3972
  u.useEffect(function() {
3931
3973
  i.current = e;
3932
3974
  }, [e]), u.useEffect(function() {
3933
3975
  if (e.inert) {
3934
3976
  document.body.classList.add("block-interactivity-".concat(o));
3935
- var f = zs([e.lockRef.current], (e.shards || []).map(ir), !0).filter(Boolean);
3977
+ var f = Ws([e.lockRef.current], (e.shards || []).map(ir), !0).filter(Boolean);
3936
3978
  return f.forEach(function(w) {
3937
3979
  return w.classList.add("allow-interactivity-".concat(o));
3938
3980
  }), function() {
@@ -3948,20 +3990,20 @@ function ml(e) {
3948
3990
  var b = Tt(f), x = n.current, y = "deltaX" in f ? f.deltaX : x[0] - b[0], S = "deltaY" in f ? f.deltaY : x[1] - b[1], E, T = f.target, C = Math.abs(y) > Math.abs(S) ? "h" : "v";
3949
3991
  if ("touches" in f && C === "h" && T.type === "range")
3950
3992
  return !1;
3951
- var P = or(C, T);
3952
- if (!P)
3993
+ var R = or(C, T);
3994
+ if (!R)
3953
3995
  return !0;
3954
- if (P ? E = C : (E = C === "v" ? "h" : "v", P = or(C, T)), !P)
3996
+ if (R ? E = C : (E = C === "v" ? "h" : "v", R = or(C, T)), !R)
3955
3997
  return !1;
3956
3998
  if (!r.current && "changedTouches" in f && (y || S) && (r.current = E), !E)
3957
3999
  return !0;
3958
4000
  var O = r.current || E;
3959
- return pl(O, w, f, O === "h" ? y : S);
4001
+ return ml(O, w, f, O === "h" ? y : S);
3960
4002
  }, []), l = u.useCallback(function(f) {
3961
4003
  var w = f;
3962
4004
  if (!(!Ge.length || Ge[Ge.length - 1] !== a)) {
3963
4005
  var b = "deltaY" in w ? ar(w) : Tt(w), x = t.current.filter(function(E) {
3964
- return E.name === w.type && (E.target === w.target || w.target === E.shadowParent) && hl(E.delta, b);
4006
+ return E.name === w.type && (E.target === w.target || w.target === E.shadowParent) && wl(E.delta, b);
3965
4007
  })[0];
3966
4008
  if (x && x.should) {
3967
4009
  w.cancelable && w.preventDefault();
@@ -3975,7 +4017,7 @@ function ml(e) {
3975
4017
  }
3976
4018
  }
3977
4019
  }, []), c = u.useCallback(function(f, w, b, x) {
3978
- var y = { name: f, delta: w, target: b, should: x, shadowParent: wl(b) };
4020
+ var y = { name: f, delta: w, target: b, should: x, shadowParent: Cl(b) };
3979
4021
  t.current.push(y), setTimeout(function() {
3980
4022
  t.current = t.current.filter(function(S) {
3981
4023
  return S !== y;
@@ -4003,24 +4045,24 @@ function ml(e) {
4003
4045
  return u.createElement(
4004
4046
  u.Fragment,
4005
4047
  null,
4006
- m ? u.createElement(a, { styles: vl(o) }) : null,
4007
- v ? u.createElement(il, { gapMode: e.gapMode }) : null
4048
+ m ? u.createElement(a, { styles: bl(o) }) : null,
4049
+ v ? u.createElement(ul, { gapMode: e.gapMode }) : null
4008
4050
  );
4009
4051
  }
4010
- function wl(e) {
4052
+ function Cl(e) {
4011
4053
  for (var t = null; e !== null; )
4012
4054
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
4013
4055
  return t;
4014
4056
  }
4015
- const bl = Xs(ao, ml);
4016
- var uo = u.forwardRef(function(e, t) {
4017
- return u.createElement($t, me({}, e, { ref: t, sideCar: bl }));
4057
+ const Sl = qs(io, yl);
4058
+ var fo = u.forwardRef(function(e, t) {
4059
+ return u.createElement(Wt, me({}, e, { ref: t, sideCar: Sl }));
4018
4060
  });
4019
- uo.classNames = $t.classNames;
4020
- var xl = [" ", "Enter", "ArrowUp", "ArrowDown"], yl = [" ", "Enter"], He = "Select", [Ut, Ht, Cl] = Ka(He), [st, Rc] = yn(He, [
4021
- Cl,
4022
- jr
4023
- ]), jt = jr(), [Sl, Fe] = st(He), [El, kl] = st(He), fo = (e) => {
4061
+ fo.classNames = Wt.classNames;
4062
+ var El = [" ", "Enter", "ArrowUp", "ArrowDown"], kl = [" ", "Enter"], He = "Select", [Ut, Ht, Tl] = Qa(He), [st, Oc] = yn(He, [
4063
+ Tl,
4064
+ Yr
4065
+ ]), jt = Yr(), [Al, Fe] = st(He), [Pl, Rl] = st(He), po = (e) => {
4024
4066
  const {
4025
4067
  __scopeSelect: t,
4026
4068
  children: n,
@@ -4036,7 +4078,7 @@ var xl = [" ", "Enter", "ArrowUp", "ArrowDown"], yl = [" ", "Enter"], He = "Sele
4036
4078
  disabled: g,
4037
4079
  required: v,
4038
4080
  form: m
4039
- } = e, f = jt(t), [w, b] = u.useState(null), [x, y] = u.useState(null), [S, E] = u.useState(!1), T = Za(c), [C, P] = tr({
4081
+ } = e, f = jt(t), [w, b] = u.useState(null), [x, y] = u.useState(null), [S, E] = u.useState(!1), T = ei(c), [C, R] = tr({
4040
4082
  prop: r,
4041
4083
  defaultProp: o ?? !1,
4042
4084
  onChange: a,
@@ -4046,9 +4088,9 @@ var xl = [" ", "Enter", "ArrowUp", "ArrowDown"], yl = [" ", "Enter"], He = "Sele
4046
4088
  defaultProp: s,
4047
4089
  onChange: l,
4048
4090
  caller: He
4049
- }), V = u.useRef(null), W = w ? m || !!w.closest("form") : !0, [D, _] = u.useState(/* @__PURE__ */ new Set()), Y = Array.from(D).map((N) => N.props.value).join(";");
4050
- return /* @__PURE__ */ k(Ss, { ...f, children: /* @__PURE__ */ Nt(
4051
- Sl,
4091
+ }), V = u.useRef(null), $ = w ? m || !!w.closest("form") : !0, [D, N] = u.useState(/* @__PURE__ */ new Set()), X = Array.from(D).map((_) => _.props.value).join(";");
4092
+ return /* @__PURE__ */ k(As, { ...f, children: /* @__PURE__ */ _t(
4093
+ Al,
4052
4094
  {
4053
4095
  required: v,
4054
4096
  scope: t,
@@ -4062,29 +4104,29 @@ var xl = [" ", "Enter", "ArrowUp", "ArrowDown"], yl = [" ", "Enter"], He = "Sele
4062
4104
  value: O,
4063
4105
  onValueChange: M,
4064
4106
  open: C,
4065
- onOpenChange: P,
4107
+ onOpenChange: R,
4066
4108
  dir: T,
4067
4109
  triggerPointerDownPosRef: V,
4068
4110
  disabled: g,
4069
4111
  children: [
4070
4112
  /* @__PURE__ */ k(Ut.Provider, { scope: t, children: /* @__PURE__ */ k(
4071
- El,
4113
+ Pl,
4072
4114
  {
4073
4115
  scope: e.__scopeSelect,
4074
- onNativeOptionAdd: u.useCallback((N) => {
4075
- _((L) => new Set(L).add(N));
4116
+ onNativeOptionAdd: u.useCallback((_) => {
4117
+ N((L) => new Set(L).add(_));
4076
4118
  }, []),
4077
- onNativeOptionRemove: u.useCallback((N) => {
4078
- _((L) => {
4079
- const R = new Set(L);
4080
- return R.delete(N), R;
4119
+ onNativeOptionRemove: u.useCallback((_) => {
4120
+ N((L) => {
4121
+ const I = new Set(L);
4122
+ return I.delete(_), I;
4081
4123
  });
4082
4124
  }, []),
4083
4125
  children: n
4084
4126
  }
4085
4127
  ) }),
4086
- W ? /* @__PURE__ */ Nt(
4087
- Oo,
4128
+ $ ? /* @__PURE__ */ _t(
4129
+ Mo,
4088
4130
  {
4089
4131
  "aria-hidden": !0,
4090
4132
  required: v,
@@ -4092,7 +4134,7 @@ var xl = [" ", "Enter", "ArrowUp", "ArrowDown"], yl = [" ", "Enter"], He = "Sele
4092
4134
  name: d,
4093
4135
  autoComplete: p,
4094
4136
  value: O,
4095
- onChange: (N) => M(N.target.value),
4137
+ onChange: (_) => M(_.target.value),
4096
4138
  disabled: g,
4097
4139
  form: m,
4098
4140
  children: [
@@ -4100,17 +4142,17 @@ var xl = [" ", "Enter", "ArrowUp", "ArrowDown"], yl = [" ", "Enter"], He = "Sele
4100
4142
  Array.from(D)
4101
4143
  ]
4102
4144
  },
4103
- Y
4145
+ X
4104
4146
  ) : null
4105
4147
  ]
4106
4148
  }
4107
4149
  ) });
4108
4150
  };
4109
- fo.displayName = He;
4110
- var po = "SelectTrigger", ho = u.forwardRef(
4151
+ po.displayName = He;
4152
+ var ho = "SelectTrigger", vo = u.forwardRef(
4111
4153
  (e, t) => {
4112
- const { __scopeSelect: n, disabled: r = !1, ...o } = e, a = jt(n), i = Fe(po, n), s = i.disabled || r, l = Z(t, i.onTriggerChange), c = Ht(n), d = u.useRef("touch"), [p, g, v] = Lo((f) => {
4113
- const w = c().filter((y) => !y.disabled), b = w.find((y) => y.value === i.value), x = Do(w, f, b);
4154
+ const { __scopeSelect: n, disabled: r = !1, ...o } = e, a = jt(n), i = Fe(ho, n), s = i.disabled || r, l = Z(t, i.onTriggerChange), c = Ht(n), d = u.useRef("touch"), [p, g, v] = Do((f) => {
4155
+ const w = c().filter((y) => !y.disabled), b = w.find((y) => y.value === i.value), x = Bo(w, f, b);
4114
4156
  x !== void 0 && i.onValueChange(x.value);
4115
4157
  }), m = (f) => {
4116
4158
  s || (i.onOpenChange(!0), v()), f && (i.triggerPointerDownPosRef.current = {
@@ -4118,7 +4160,7 @@ var po = "SelectTrigger", ho = u.forwardRef(
4118
4160
  y: Math.round(f.pageY)
4119
4161
  });
4120
4162
  };
4121
- return /* @__PURE__ */ k(Es, { asChild: !0, ...a, children: /* @__PURE__ */ k(
4163
+ return /* @__PURE__ */ k(Ps, { asChild: !0, ...a, children: /* @__PURE__ */ k(
4122
4164
  K.button,
4123
4165
  {
4124
4166
  type: "button",
@@ -4131,7 +4173,7 @@ var po = "SelectTrigger", ho = u.forwardRef(
4131
4173
  "data-state": i.open ? "open" : "closed",
4132
4174
  disabled: s,
4133
4175
  "data-disabled": s ? "" : void 0,
4134
- "data-placeholder": Mo(i.value) ? "" : void 0,
4176
+ "data-placeholder": Lo(i.value) ? "" : void 0,
4135
4177
  ...o,
4136
4178
  ref: l,
4137
4179
  onClick: G(o.onClick, (f) => {
@@ -4144,16 +4186,16 @@ var po = "SelectTrigger", ho = u.forwardRef(
4144
4186
  }),
4145
4187
  onKeyDown: G(o.onKeyDown, (f) => {
4146
4188
  const w = p.current !== "";
4147
- !(f.ctrlKey || f.altKey || f.metaKey) && f.key.length === 1 && g(f.key), !(w && f.key === " ") && xl.includes(f.key) && (m(), f.preventDefault());
4189
+ !(f.ctrlKey || f.altKey || f.metaKey) && f.key.length === 1 && g(f.key), !(w && f.key === " ") && El.includes(f.key) && (m(), f.preventDefault());
4148
4190
  })
4149
4191
  }
4150
4192
  ) });
4151
4193
  }
4152
4194
  );
4153
- ho.displayName = po;
4154
- var vo = "SelectValue", Tl = u.forwardRef(
4195
+ vo.displayName = ho;
4196
+ var go = "SelectValue", Il = u.forwardRef(
4155
4197
  (e, t) => {
4156
- const { __scopeSelect: n, className: r, style: o, children: a, placeholder: i = "", ...s } = e, l = Fe(vo, n), { onValueNodeHasChildrenChange: c } = l, d = a !== void 0, p = Z(t, l.onValueNodeChange);
4198
+ const { __scopeSelect: n, className: r, style: o, children: a, placeholder: i = "", ...s } = e, l = Fe(go, n), { onValueNodeHasChildrenChange: c } = l, d = a !== void 0, p = Z(t, l.onValueNodeChange);
4157
4199
  return te(() => {
4158
4200
  c(d);
4159
4201
  }, [c, d]), /* @__PURE__ */ k(
@@ -4162,22 +4204,22 @@ var vo = "SelectValue", Tl = u.forwardRef(
4162
4204
  ...s,
4163
4205
  ref: p,
4164
4206
  style: { pointerEvents: "none" },
4165
- children: Mo(l.value) ? /* @__PURE__ */ k(mn, { children: i }) : a
4207
+ children: Lo(l.value) ? /* @__PURE__ */ k(mn, { children: i }) : a
4166
4208
  }
4167
4209
  );
4168
4210
  }
4169
4211
  );
4170
- Tl.displayName = vo;
4171
- var Al = "SelectIcon", go = u.forwardRef(
4212
+ Il.displayName = go;
4213
+ var _l = "SelectIcon", mo = u.forwardRef(
4172
4214
  (e, t) => {
4173
4215
  const { __scopeSelect: n, children: r, ...o } = e;
4174
4216
  return /* @__PURE__ */ k(K.span, { "aria-hidden": !0, ...o, ref: t, children: r || "▼" });
4175
4217
  }
4176
4218
  );
4177
- go.displayName = Al;
4178
- var Pl = "SelectPortal", mo = (e) => /* @__PURE__ */ k(eo, { asChild: !0, ...e });
4179
- mo.displayName = Pl;
4180
- var je = "SelectContent", wo = u.forwardRef(
4219
+ mo.displayName = _l;
4220
+ var Nl = "SelectPortal", wo = (e) => /* @__PURE__ */ k(to, { asChild: !0, ...e });
4221
+ wo.displayName = Nl;
4222
+ var je = "SelectContent", bo = u.forwardRef(
4181
4223
  (e, t) => {
4182
4224
  const n = Fe(je, e.__scopeSelect), [r, o] = u.useState();
4183
4225
  if (te(() => {
@@ -4185,15 +4227,15 @@ var je = "SelectContent", wo = u.forwardRef(
4185
4227
  }, []), !n.open) {
4186
4228
  const a = r;
4187
4229
  return a ? u.createPortal(
4188
- /* @__PURE__ */ k(bo, { scope: e.__scopeSelect, children: /* @__PURE__ */ k(Ut.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ k("div", { children: e.children }) }) }),
4230
+ /* @__PURE__ */ k(xo, { scope: e.__scopeSelect, children: /* @__PURE__ */ k(Ut.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ k("div", { children: e.children }) }) }),
4189
4231
  a
4190
4232
  ) : null;
4191
4233
  }
4192
- return /* @__PURE__ */ k(xo, { ...e, ref: t });
4234
+ return /* @__PURE__ */ k(yo, { ...e, ref: t });
4193
4235
  }
4194
4236
  );
4195
- wo.displayName = je;
4196
- var se = 10, [bo, Ve] = st(je), Rl = "SelectContentImpl", Il = /* @__PURE__ */ vt("SelectContent.RemoveScroll"), xo = u.forwardRef(
4237
+ bo.displayName = je;
4238
+ var se = 10, [xo, Ve] = st(je), Ol = "SelectContentImpl", Ml = /* @__PURE__ */ vt("SelectContent.RemoveScroll"), yo = u.forwardRef(
4197
4239
  (e, t) => {
4198
4240
  const {
4199
4241
  __scopeSelect: n,
@@ -4215,65 +4257,65 @@ var se = 10, [bo, Ve] = st(je), Rl = "SelectContentImpl", Il = /* @__PURE__ */ v
4215
4257
  avoidCollisions: w,
4216
4258
  //
4217
4259
  ...b
4218
- } = e, x = Fe(je, n), [y, S] = u.useState(null), [E, T] = u.useState(null), C = Z(t, (A) => S(A)), [P, O] = u.useState(null), [M, V] = u.useState(
4260
+ } = e, x = Fe(je, n), [y, S] = u.useState(null), [E, T] = u.useState(null), C = Z(t, (A) => S(A)), [R, O] = u.useState(null), [M, V] = u.useState(
4219
4261
  null
4220
- ), W = Ht(n), [D, _] = u.useState(!1), Y = u.useRef(!1);
4262
+ ), $ = Ht(n), [D, N] = u.useState(!1), X = u.useRef(!1);
4221
4263
  u.useEffect(() => {
4222
- if (y) return Bs(y);
4223
- }, [y]), si();
4224
- const N = u.useCallback(
4264
+ if (y) return $s(y);
4265
+ }, [y]), di();
4266
+ const _ = u.useCallback(
4225
4267
  (A) => {
4226
- const [U, ...q] = W().map((z) => z.ref.current), [F] = q.slice(-1), B = document.activeElement;
4268
+ const [U, ...Q] = $().map((z) => z.ref.current), [F] = Q.slice(-1), B = document.activeElement;
4227
4269
  for (const z of A)
4228
4270
  if (z === B || (z == null || z.scrollIntoView({ block: "nearest" }), z === U && E && (E.scrollTop = 0), z === F && E && (E.scrollTop = E.scrollHeight), z == null || z.focus(), document.activeElement !== B)) return;
4229
4271
  },
4230
- [W, E]
4272
+ [$, E]
4231
4273
  ), L = u.useCallback(
4232
- () => N([P, y]),
4233
- [N, P, y]
4274
+ () => _([R, y]),
4275
+ [_, R, y]
4234
4276
  );
4235
4277
  u.useEffect(() => {
4236
4278
  D && L();
4237
4279
  }, [D, L]);
4238
- const { onOpenChange: R, triggerPointerDownPosRef: $ } = x;
4280
+ const { onOpenChange: I, triggerPointerDownPosRef: W } = x;
4239
4281
  u.useEffect(() => {
4240
4282
  if (y) {
4241
4283
  let A = { x: 0, y: 0 };
4242
4284
  const U = (F) => {
4243
4285
  var B, z;
4244
4286
  A = {
4245
- x: Math.abs(Math.round(F.pageX) - (((B = $.current) == null ? void 0 : B.x) ?? 0)),
4246
- y: Math.abs(Math.round(F.pageY) - (((z = $.current) == null ? void 0 : z.y) ?? 0))
4287
+ x: Math.abs(Math.round(F.pageX) - (((B = W.current) == null ? void 0 : B.x) ?? 0)),
4288
+ y: Math.abs(Math.round(F.pageY) - (((z = W.current) == null ? void 0 : z.y) ?? 0))
4247
4289
  };
4248
- }, q = (F) => {
4249
- A.x <= 10 && A.y <= 10 ? F.preventDefault() : y.contains(F.target) || R(!1), document.removeEventListener("pointermove", U), $.current = null;
4290
+ }, Q = (F) => {
4291
+ A.x <= 10 && A.y <= 10 ? F.preventDefault() : y.contains(F.target) || I(!1), document.removeEventListener("pointermove", U), W.current = null;
4250
4292
  };
4251
- return $.current !== null && (document.addEventListener("pointermove", U), document.addEventListener("pointerup", q, { capture: !0, once: !0 })), () => {
4252
- document.removeEventListener("pointermove", U), document.removeEventListener("pointerup", q, { capture: !0 });
4293
+ return W.current !== null && (document.addEventListener("pointermove", U), document.addEventListener("pointerup", Q, { capture: !0, once: !0 })), () => {
4294
+ document.removeEventListener("pointermove", U), document.removeEventListener("pointerup", Q, { capture: !0 });
4253
4295
  };
4254
4296
  }
4255
- }, [y, R, $]), u.useEffect(() => {
4256
- const A = () => R(!1);
4297
+ }, [y, I, W]), u.useEffect(() => {
4298
+ const A = () => I(!1);
4257
4299
  return window.addEventListener("blur", A), window.addEventListener("resize", A), () => {
4258
4300
  window.removeEventListener("blur", A), window.removeEventListener("resize", A);
4259
4301
  };
4260
- }, [R]);
4261
- const [ee, Ee] = Lo((A) => {
4262
- const U = W().filter((B) => !B.disabled), q = U.find((B) => B.ref.current === document.activeElement), F = Do(U, A, q);
4302
+ }, [I]);
4303
+ const [ee, Ee] = Do((A) => {
4304
+ const U = $().filter((B) => !B.disabled), Q = U.find((B) => B.ref.current === document.activeElement), F = Bo(U, A, Q);
4263
4305
  F && setTimeout(() => F.ref.current.focus());
4264
4306
  }), lt = u.useCallback(
4265
- (A, U, q) => {
4266
- const F = !Y.current && !q;
4267
- (x.value !== void 0 && x.value === U || F) && (O(A), F && (Y.current = !0));
4307
+ (A, U, Q) => {
4308
+ const F = !X.current && !Q;
4309
+ (x.value !== void 0 && x.value === U || F) && (O(A), F && (X.current = !0));
4268
4310
  },
4269
4311
  [x.value]
4270
4312
  ), ct = u.useCallback(() => y == null ? void 0 : y.focus(), [y]), Ie = u.useCallback(
4271
- (A, U, q) => {
4272
- const F = !Y.current && !q;
4313
+ (A, U, Q) => {
4314
+ const F = !X.current && !Q;
4273
4315
  (x.value !== void 0 && x.value === U || F) && V(A);
4274
4316
  },
4275
4317
  [x.value]
4276
- ), Ye = r === "popper" ? fn : yo, We = Ye === fn ? {
4318
+ ), Ye = r === "popper" ? fn : Co, $e = Ye === fn ? {
4277
4319
  side: s,
4278
4320
  sideOffset: l,
4279
4321
  align: c,
@@ -4286,14 +4328,14 @@ var se = 10, [bo, Ve] = st(je), Rl = "SelectContentImpl", Il = /* @__PURE__ */ v
4286
4328
  avoidCollisions: w
4287
4329
  } : {};
4288
4330
  return /* @__PURE__ */ k(
4289
- bo,
4331
+ xo,
4290
4332
  {
4291
4333
  scope: n,
4292
4334
  content: y,
4293
4335
  viewport: E,
4294
4336
  onViewportChange: T,
4295
4337
  itemRefCallback: lt,
4296
- selectedItem: P,
4338
+ selectedItem: R,
4297
4339
  onItemLeave: ct,
4298
4340
  itemTextRefCallback: Ie,
4299
4341
  focusSelectedItem: L,
@@ -4301,7 +4343,7 @@ var se = 10, [bo, Ve] = st(je), Rl = "SelectContentImpl", Il = /* @__PURE__ */ v
4301
4343
  position: r,
4302
4344
  isPositioned: D,
4303
4345
  searchRef: ee,
4304
- children: /* @__PURE__ */ k(uo, { as: Il, allowPinchZoom: !0, children: /* @__PURE__ */ k(
4346
+ children: /* @__PURE__ */ k(fo, { as: Ml, allowPinchZoom: !0, children: /* @__PURE__ */ k(
4305
4347
  Nr,
4306
4348
  {
4307
4349
  asChild: !0,
@@ -4314,7 +4356,7 @@ var se = 10, [bo, Ve] = st(je), Rl = "SelectContentImpl", Il = /* @__PURE__ */ v
4314
4356
  (U = x.trigger) == null || U.focus({ preventScroll: !0 }), A.preventDefault();
4315
4357
  }),
4316
4358
  children: /* @__PURE__ */ k(
4317
- Rr,
4359
+ Ir,
4318
4360
  {
4319
4361
  asChild: !0,
4320
4362
  disableOutsidePointerEvents: !0,
@@ -4331,8 +4373,8 @@ var se = 10, [bo, Ve] = st(je), Rl = "SelectContentImpl", Il = /* @__PURE__ */ v
4331
4373
  dir: x.dir,
4332
4374
  onContextMenu: (A) => A.preventDefault(),
4333
4375
  ...b,
4334
- ...We,
4335
- onPlaced: () => _(!0),
4376
+ ...$e,
4377
+ onPlaced: () => N(!0),
4336
4378
  ref: C,
4337
4379
  style: {
4338
4380
  // flex layout so we can place the scroll buttons properly
@@ -4345,12 +4387,12 @@ var se = 10, [bo, Ve] = st(je), Rl = "SelectContentImpl", Il = /* @__PURE__ */ v
4345
4387
  onKeyDown: G(b.onKeyDown, (A) => {
4346
4388
  const U = A.ctrlKey || A.altKey || A.metaKey;
4347
4389
  if (A.key === "Tab" && A.preventDefault(), !U && A.key.length === 1 && Ee(A.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(A.key)) {
4348
- let F = W().filter((B) => !B.disabled).map((B) => B.ref.current);
4390
+ let F = $().filter((B) => !B.disabled).map((B) => B.ref.current);
4349
4391
  if (["ArrowUp", "End"].includes(A.key) && (F = F.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(A.key)) {
4350
4392
  const B = A.target, z = F.indexOf(B);
4351
4393
  F = F.slice(z + 1);
4352
4394
  }
4353
- setTimeout(() => N(F)), A.preventDefault();
4395
+ setTimeout(() => _(F)), A.preventDefault();
4354
4396
  }
4355
4397
  })
4356
4398
  }
@@ -4363,13 +4405,13 @@ var se = 10, [bo, Ve] = st(je), Rl = "SelectContentImpl", Il = /* @__PURE__ */ v
4363
4405
  );
4364
4406
  }
4365
4407
  );
4366
- xo.displayName = Rl;
4367
- var Nl = "SelectItemAlignedPosition", yo = u.forwardRef((e, t) => {
4408
+ yo.displayName = Ol;
4409
+ var Ll = "SelectItemAlignedPosition", Co = u.forwardRef((e, t) => {
4368
4410
  const { __scopeSelect: n, onPlaced: r, ...o } = e, a = Fe(je, n), i = Ve(je, n), [s, l] = u.useState(null), [c, d] = u.useState(null), p = Z(t, (C) => d(C)), g = Ht(n), v = u.useRef(!1), m = u.useRef(!0), { viewport: f, selectedItem: w, selectedItemText: b, focusSelectedItem: x } = i, y = u.useCallback(() => {
4369
4411
  if (a.trigger && a.valueNode && s && c && f && w && b) {
4370
- const C = a.trigger.getBoundingClientRect(), P = c.getBoundingClientRect(), O = a.valueNode.getBoundingClientRect(), M = b.getBoundingClientRect();
4412
+ const C = a.trigger.getBoundingClientRect(), R = c.getBoundingClientRect(), O = a.valueNode.getBoundingClientRect(), M = b.getBoundingClientRect();
4371
4413
  if (a.dir !== "rtl") {
4372
- const B = M.left - P.left, z = O.left - B, oe = C.left - z, ve = C.width + oe, ut = Math.max(ve, P.width), dt = window.innerWidth - se, ft = Fn(z, [
4414
+ const B = M.left - R.left, z = O.left - B, oe = C.left - z, ve = C.width + oe, ut = Math.max(ve, R.width), dt = window.innerWidth - se, ft = Fn(z, [
4373
4415
  se,
4374
4416
  // Prevents the content from going off the starting edge of the
4375
4417
  // viewport. It may still go off the ending edge, but this can be
@@ -4380,19 +4422,19 @@ var Nl = "SelectItemAlignedPosition", yo = u.forwardRef((e, t) => {
4380
4422
  ]);
4381
4423
  s.style.minWidth = ve + "px", s.style.left = ft + "px";
4382
4424
  } else {
4383
- const B = P.right - M.right, z = window.innerWidth - O.right - B, oe = window.innerWidth - C.right - z, ve = C.width + oe, ut = Math.max(ve, P.width), dt = window.innerWidth - se, ft = Fn(z, [
4425
+ const B = R.right - M.right, z = window.innerWidth - O.right - B, oe = window.innerWidth - C.right - z, ve = C.width + oe, ut = Math.max(ve, R.width), dt = window.innerWidth - se, ft = Fn(z, [
4384
4426
  se,
4385
4427
  Math.max(se, dt - ut)
4386
4428
  ]);
4387
4429
  s.style.minWidth = ve + "px", s.style.right = ft + "px";
4388
4430
  }
4389
- const V = g(), W = window.innerHeight - se * 2, D = f.scrollHeight, _ = window.getComputedStyle(c), Y = parseInt(_.borderTopWidth, 10), N = parseInt(_.paddingTop, 10), L = parseInt(_.borderBottomWidth, 10), R = parseInt(_.paddingBottom, 10), $ = Y + N + D + R + L, ee = Math.min(w.offsetHeight * 5, $), Ee = window.getComputedStyle(f), lt = parseInt(Ee.paddingTop, 10), ct = parseInt(Ee.paddingBottom, 10), Ie = C.top + C.height / 2 - se, Ye = W - Ie, We = w.offsetHeight / 2, A = w.offsetTop + We, U = Y + N + A, q = $ - U;
4431
+ const V = g(), $ = window.innerHeight - se * 2, D = f.scrollHeight, N = window.getComputedStyle(c), X = parseInt(N.borderTopWidth, 10), _ = parseInt(N.paddingTop, 10), L = parseInt(N.borderBottomWidth, 10), I = parseInt(N.paddingBottom, 10), W = X + _ + D + I + L, ee = Math.min(w.offsetHeight * 5, W), Ee = window.getComputedStyle(f), lt = parseInt(Ee.paddingTop, 10), ct = parseInt(Ee.paddingBottom, 10), Ie = C.top + C.height / 2 - se, Ye = $ - Ie, $e = w.offsetHeight / 2, A = w.offsetTop + $e, U = X + _ + A, Q = W - U;
4390
4432
  if (U <= Ie) {
4391
4433
  const B = V.length > 0 && w === V[V.length - 1].ref.current;
4392
4434
  s.style.bottom = "0px";
4393
4435
  const z = c.clientHeight - f.offsetTop - f.offsetHeight, oe = Math.max(
4394
4436
  Ye,
4395
- We + // viewport might have padding bottom, include it to avoid a scrollable viewport
4437
+ $e + // viewport might have padding bottom, include it to avoid a scrollable viewport
4396
4438
  (B ? ct : 0) + z + L
4397
4439
  ), ve = U + oe;
4398
4440
  s.style.height = ve + "px";
@@ -4401,12 +4443,12 @@ var Nl = "SelectItemAlignedPosition", yo = u.forwardRef((e, t) => {
4401
4443
  s.style.top = "0px";
4402
4444
  const oe = Math.max(
4403
4445
  Ie,
4404
- Y + f.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
4405
- (B ? lt : 0) + We
4406
- ) + q;
4446
+ X + f.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
4447
+ (B ? lt : 0) + $e
4448
+ ) + Q;
4407
4449
  s.style.height = oe + "px", f.scrollTop = U - Ie + f.offsetTop;
4408
4450
  }
4409
- s.style.margin = `${se}px 0`, s.style.minHeight = ee + "px", s.style.maxHeight = W + "px", r == null || r(), requestAnimationFrame(() => v.current = !0);
4451
+ s.style.margin = `${se}px 0`, s.style.minHeight = ee + "px", s.style.maxHeight = $ + "px", r == null || r(), requestAnimationFrame(() => v.current = !0);
4410
4452
  }
4411
4453
  }, [
4412
4454
  g,
@@ -4432,7 +4474,7 @@ var Nl = "SelectItemAlignedPosition", yo = u.forwardRef((e, t) => {
4432
4474
  [y, x]
4433
4475
  );
4434
4476
  return /* @__PURE__ */ k(
4435
- Ol,
4477
+ Bl,
4436
4478
  {
4437
4479
  scope: n,
4438
4480
  contentWrapper: s,
@@ -4468,8 +4510,8 @@ var Nl = "SelectItemAlignedPosition", yo = u.forwardRef((e, t) => {
4468
4510
  }
4469
4511
  );
4470
4512
  });
4471
- yo.displayName = Nl;
4472
- var _l = "SelectPopperPosition", fn = u.forwardRef((e, t) => {
4513
+ Co.displayName = Ll;
4514
+ var Dl = "SelectPopperPosition", fn = u.forwardRef((e, t) => {
4473
4515
  const {
4474
4516
  __scopeSelect: n,
4475
4517
  align: r = "start",
@@ -4477,7 +4519,7 @@ var _l = "SelectPopperPosition", fn = u.forwardRef((e, t) => {
4477
4519
  ...a
4478
4520
  } = e, i = jt(n);
4479
4521
  return /* @__PURE__ */ k(
4480
- ks,
4522
+ Rs,
4481
4523
  {
4482
4524
  ...i,
4483
4525
  ...a,
@@ -4497,11 +4539,11 @@ var _l = "SelectPopperPosition", fn = u.forwardRef((e, t) => {
4497
4539
  }
4498
4540
  );
4499
4541
  });
4500
- fn.displayName = _l;
4501
- var [Ol, _n] = st(je, {}), pn = "SelectViewport", Co = u.forwardRef(
4542
+ fn.displayName = Dl;
4543
+ var [Bl, Nn] = st(je, {}), pn = "SelectViewport", So = u.forwardRef(
4502
4544
  (e, t) => {
4503
- const { __scopeSelect: n, nonce: r, ...o } = e, a = Ve(pn, n), i = _n(pn, n), s = Z(t, a.onViewportChange), l = u.useRef(0);
4504
- return /* @__PURE__ */ Nt(mn, { children: [
4545
+ const { __scopeSelect: n, nonce: r, ...o } = e, a = Ve(pn, n), i = Nn(pn, n), s = Z(t, a.onViewportChange), l = u.useRef(0);
4546
+ return /* @__PURE__ */ _t(mn, { children: [
4505
4547
  /* @__PURE__ */ k(
4506
4548
  "style",
4507
4549
  {
@@ -4550,22 +4592,22 @@ var [Ol, _n] = st(je, {}), pn = "SelectViewport", Co = u.forwardRef(
4550
4592
  ] });
4551
4593
  }
4552
4594
  );
4553
- Co.displayName = pn;
4554
- var So = "SelectGroup", [Ml, Ll] = st(So), Dl = u.forwardRef(
4595
+ So.displayName = pn;
4596
+ var Eo = "SelectGroup", [zl, Fl] = st(Eo), Vl = u.forwardRef(
4555
4597
  (e, t) => {
4556
4598
  const { __scopeSelect: n, ...r } = e, o = Cn();
4557
- return /* @__PURE__ */ k(Ml, { scope: n, id: o, children: /* @__PURE__ */ k(K.div, { role: "group", "aria-labelledby": o, ...r, ref: t }) });
4599
+ return /* @__PURE__ */ k(zl, { scope: n, id: o, children: /* @__PURE__ */ k(K.div, { role: "group", "aria-labelledby": o, ...r, ref: t }) });
4558
4600
  }
4559
4601
  );
4560
- Dl.displayName = So;
4561
- var Eo = "SelectLabel", Bl = u.forwardRef(
4602
+ Vl.displayName = Eo;
4603
+ var ko = "SelectLabel", $l = u.forwardRef(
4562
4604
  (e, t) => {
4563
- const { __scopeSelect: n, ...r } = e, o = Ll(Eo, n);
4605
+ const { __scopeSelect: n, ...r } = e, o = Fl(ko, n);
4564
4606
  return /* @__PURE__ */ k(K.div, { id: o.id, ...r, ref: t });
4565
4607
  }
4566
4608
  );
4567
- Bl.displayName = Eo;
4568
- var Dt = "SelectItem", [zl, ko] = st(Dt), To = u.forwardRef(
4609
+ $l.displayName = ko;
4610
+ var Dt = "SelectItem", [Wl, To] = st(Dt), Ao = u.forwardRef(
4569
4611
  (e, t) => {
4570
4612
  const {
4571
4613
  __scopeSelect: n,
@@ -4587,7 +4629,7 @@ var Dt = "SelectItem", [zl, ko] = st(Dt), To = u.forwardRef(
4587
4629
  "A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
4588
4630
  );
4589
4631
  return /* @__PURE__ */ k(
4590
- zl,
4632
+ Wl,
4591
4633
  {
4592
4634
  scope: n,
4593
4635
  value: r,
@@ -4638,7 +4680,7 @@ var Dt = "SelectItem", [zl, ko] = st(Dt), To = u.forwardRef(
4638
4680
  }),
4639
4681
  onKeyDown: G(i.onKeyDown, (x) => {
4640
4682
  var S;
4641
- ((S = l.searchRef) == null ? void 0 : S.current) !== "" && x.key === " " || (yl.includes(x.key) && b(), x.key === " " && x.preventDefault());
4683
+ ((S = l.searchRef) == null ? void 0 : S.current) !== "" && x.key === " " || (kl.includes(x.key) && b(), x.key === " " && x.preventDefault());
4642
4684
  })
4643
4685
  }
4644
4686
  )
@@ -4648,10 +4690,10 @@ var Dt = "SelectItem", [zl, ko] = st(Dt), To = u.forwardRef(
4648
4690
  );
4649
4691
  }
4650
4692
  );
4651
- To.displayName = Dt;
4652
- var ht = "SelectItemText", Ao = u.forwardRef(
4693
+ Ao.displayName = Dt;
4694
+ var ht = "SelectItemText", Po = u.forwardRef(
4653
4695
  (e, t) => {
4654
- const { __scopeSelect: n, className: r, style: o, ...a } = e, i = Fe(ht, n), s = Ve(ht, n), l = ko(ht, n), c = kl(ht, n), [d, p] = u.useState(null), g = Z(
4696
+ const { __scopeSelect: n, className: r, style: o, ...a } = e, i = Fe(ht, n), s = Ve(ht, n), l = To(ht, n), c = Rl(ht, n), [d, p] = u.useState(null), g = Z(
4655
4697
  t,
4656
4698
  (b) => p(b),
4657
4699
  l.onItemTextChange,
@@ -4663,22 +4705,22 @@ var ht = "SelectItemText", Ao = u.forwardRef(
4663
4705
  () => /* @__PURE__ */ k("option", { value: l.value, disabled: l.disabled, children: v }, l.value),
4664
4706
  [l.disabled, l.value, v]
4665
4707
  ), { onNativeOptionAdd: f, onNativeOptionRemove: w } = c;
4666
- return te(() => (f(m), () => w(m)), [f, w, m]), /* @__PURE__ */ Nt(mn, { children: [
4708
+ return te(() => (f(m), () => w(m)), [f, w, m]), /* @__PURE__ */ _t(mn, { children: [
4667
4709
  /* @__PURE__ */ k(K.span, { id: l.textId, ...a, ref: g }),
4668
4710
  l.isSelected && i.valueNode && !i.valueNodeHasChildren ? u.createPortal(a.children, i.valueNode) : null
4669
4711
  ] });
4670
4712
  }
4671
4713
  );
4672
- Ao.displayName = ht;
4673
- var Po = "SelectItemIndicator", Ro = u.forwardRef(
4714
+ Po.displayName = ht;
4715
+ var Ro = "SelectItemIndicator", Io = u.forwardRef(
4674
4716
  (e, t) => {
4675
4717
  const { __scopeSelect: n, ...r } = e;
4676
- return ko(Po, n).isSelected ? /* @__PURE__ */ k(K.span, { "aria-hidden": !0, ...r, ref: t }) : null;
4718
+ return To(Ro, n).isSelected ? /* @__PURE__ */ k(K.span, { "aria-hidden": !0, ...r, ref: t }) : null;
4677
4719
  }
4678
4720
  );
4679
- Ro.displayName = Po;
4680
- var hn = "SelectScrollUpButton", Io = u.forwardRef((e, t) => {
4681
- const n = Ve(hn, e.__scopeSelect), r = _n(hn, e.__scopeSelect), [o, a] = u.useState(!1), i = Z(t, r.onScrollButtonChange);
4721
+ Io.displayName = Ro;
4722
+ var hn = "SelectScrollUpButton", _o = u.forwardRef((e, t) => {
4723
+ const n = Ve(hn, e.__scopeSelect), r = Nn(hn, e.__scopeSelect), [o, a] = u.useState(!1), i = Z(t, r.onScrollButtonChange);
4682
4724
  return te(() => {
4683
4725
  if (n.viewport && n.isPositioned) {
4684
4726
  let s = function() {
@@ -4689,7 +4731,7 @@ var hn = "SelectScrollUpButton", Io = u.forwardRef((e, t) => {
4689
4731
  return s(), l.addEventListener("scroll", s), () => l.removeEventListener("scroll", s);
4690
4732
  }
4691
4733
  }, [n.viewport, n.isPositioned]), o ? /* @__PURE__ */ k(
4692
- _o,
4734
+ Oo,
4693
4735
  {
4694
4736
  ...e,
4695
4737
  ref: i,
@@ -4700,9 +4742,9 @@ var hn = "SelectScrollUpButton", Io = u.forwardRef((e, t) => {
4700
4742
  }
4701
4743
  ) : null;
4702
4744
  });
4703
- Io.displayName = hn;
4745
+ _o.displayName = hn;
4704
4746
  var vn = "SelectScrollDownButton", No = u.forwardRef((e, t) => {
4705
- const n = Ve(vn, e.__scopeSelect), r = _n(vn, e.__scopeSelect), [o, a] = u.useState(!1), i = Z(t, r.onScrollButtonChange);
4747
+ const n = Ve(vn, e.__scopeSelect), r = Nn(vn, e.__scopeSelect), [o, a] = u.useState(!1), i = Z(t, r.onScrollButtonChange);
4706
4748
  return te(() => {
4707
4749
  if (n.viewport && n.isPositioned) {
4708
4750
  let s = function() {
@@ -4713,7 +4755,7 @@ var vn = "SelectScrollDownButton", No = u.forwardRef((e, t) => {
4713
4755
  return s(), l.addEventListener("scroll", s), () => l.removeEventListener("scroll", s);
4714
4756
  }
4715
4757
  }, [n.viewport, n.isPositioned]), o ? /* @__PURE__ */ k(
4716
- _o,
4758
+ Oo,
4717
4759
  {
4718
4760
  ...e,
4719
4761
  ref: i,
@@ -4725,7 +4767,7 @@ var vn = "SelectScrollDownButton", No = u.forwardRef((e, t) => {
4725
4767
  ) : null;
4726
4768
  });
4727
4769
  No.displayName = vn;
4728
- var _o = u.forwardRef((e, t) => {
4770
+ var Oo = u.forwardRef((e, t) => {
4729
4771
  const { __scopeSelect: n, onAutoScroll: r, ...o } = e, a = Ve("SelectScrollButton", n), i = u.useRef(null), s = Ht(n), l = u.useCallback(() => {
4730
4772
  i.current !== null && (window.clearInterval(i.current), i.current = null);
4731
4773
  }, []);
@@ -4752,23 +4794,23 @@ var _o = u.forwardRef((e, t) => {
4752
4794
  })
4753
4795
  }
4754
4796
  );
4755
- }), Fl = "SelectSeparator", Vl = u.forwardRef(
4797
+ }), Ul = "SelectSeparator", Hl = u.forwardRef(
4756
4798
  (e, t) => {
4757
4799
  const { __scopeSelect: n, ...r } = e;
4758
4800
  return /* @__PURE__ */ k(K.div, { "aria-hidden": !0, ...r, ref: t });
4759
4801
  }
4760
4802
  );
4761
- Vl.displayName = Fl;
4762
- var gn = "SelectArrow", Wl = u.forwardRef(
4803
+ Hl.displayName = Ul;
4804
+ var gn = "SelectArrow", jl = u.forwardRef(
4763
4805
  (e, t) => {
4764
4806
  const { __scopeSelect: n, ...r } = e, o = jt(n), a = Fe(gn, n), i = Ve(gn, n);
4765
- return a.open && i.position === "popper" ? /* @__PURE__ */ k(Ts, { ...o, ...r, ref: t }) : null;
4807
+ return a.open && i.position === "popper" ? /* @__PURE__ */ k(Is, { ...o, ...r, ref: t }) : null;
4766
4808
  }
4767
4809
  );
4768
- Wl.displayName = gn;
4769
- var $l = "SelectBubbleInput", Oo = u.forwardRef(
4810
+ jl.displayName = gn;
4811
+ var Yl = "SelectBubbleInput", Mo = u.forwardRef(
4770
4812
  ({ __scopeSelect: e, value: t, ...n }, r) => {
4771
- const o = u.useRef(null), a = Z(r, o), i = Ns(t);
4813
+ const o = u.useRef(null), a = Z(r, o), i = Ls(t);
4772
4814
  return u.useEffect(() => {
4773
4815
  const s = o.current;
4774
4816
  if (!s) return;
@@ -4784,19 +4826,19 @@ var $l = "SelectBubbleInput", Oo = u.forwardRef(
4784
4826
  K.select,
4785
4827
  {
4786
4828
  ...n,
4787
- style: { ...to, ...n.style },
4829
+ style: { ...no, ...n.style },
4788
4830
  ref: a,
4789
4831
  defaultValue: t
4790
4832
  }
4791
4833
  );
4792
4834
  }
4793
4835
  );
4794
- Oo.displayName = $l;
4795
- function Mo(e) {
4836
+ Mo.displayName = Yl;
4837
+ function Lo(e) {
4796
4838
  return e === "" || e === void 0;
4797
4839
  }
4798
- function Lo(e) {
4799
- const t = $e(e), n = u.useRef(""), r = u.useRef(0), o = u.useCallback(
4840
+ function Do(e) {
4841
+ const t = We(e), n = u.useRef(""), r = u.useRef(0), o = u.useCallback(
4800
4842
  (i) => {
4801
4843
  const s = n.current + i;
4802
4844
  t(s), function l(c) {
@@ -4809,20 +4851,20 @@ function Lo(e) {
4809
4851
  }, []);
4810
4852
  return u.useEffect(() => () => window.clearTimeout(r.current), []), [n, o, a];
4811
4853
  }
4812
- function Do(e, t, n) {
4854
+ function Bo(e, t, n) {
4813
4855
  const o = t.length > 1 && Array.from(t).every((c) => c === t[0]) ? t[0] : t, a = n ? e.indexOf(n) : -1;
4814
- let i = Ul(e, Math.max(a, 0));
4856
+ let i = Xl(e, Math.max(a, 0));
4815
4857
  o.length === 1 && (i = i.filter((c) => c !== n));
4816
4858
  const l = i.find(
4817
4859
  (c) => c.textValue.toLowerCase().startsWith(o.toLowerCase())
4818
4860
  );
4819
4861
  return l !== n ? l : void 0;
4820
4862
  }
4821
- function Ul(e, t) {
4863
+ function Xl(e, t) {
4822
4864
  return e.map((n, r) => e[(t + r) % e.length]);
4823
4865
  }
4824
- var Hl = fo, Bo = ho, zo = go, jl = mo, Yl = wo, Xl = Co, Kl = To, Gl = Ao, Zl = Ro, ql = Io, Ql = No;
4825
- const Jl = {
4866
+ var Kl = po, zo = vo, Fo = mo, Gl = wo, Zl = bo, ql = So, Ql = Ao, Jl = Po, ec = Io, tc = _o, nc = No;
4867
+ const rc = {
4826
4868
  sm: "w-4 h-4",
4827
4869
  md: "w-6 h-6"
4828
4870
  };
@@ -4837,7 +4879,7 @@ function On({
4837
4879
  {
4838
4880
  className: j(
4839
4881
  "rounded-full object-cover",
4840
- Jl[e],
4882
+ rc[e],
4841
4883
  n
4842
4884
  ),
4843
4885
  src: `https://storage.googleapis.com/eleven-public-cdn/images/flags/circle-flags/${t}.svg`,
@@ -4846,10 +4888,10 @@ function On({
4846
4888
  }
4847
4889
  );
4848
4890
  }
4849
- function Fo({ children: e, ...t }) {
4850
- const [n, r] = be(!1), { language: o, setLanguage: a, options: i } = rt(), s = wa();
4851
- return /* @__PURE__ */ I(
4852
- Hl,
4891
+ function Vo({ children: e, ...t }) {
4892
+ const [n, r] = be(!1), { language: o, setLanguage: a, options: i } = rt(), s = Ca();
4893
+ return /* @__PURE__ */ P(
4894
+ Kl,
4853
4895
  {
4854
4896
  open: n,
4855
4897
  value: o.value.languageCode,
@@ -4861,8 +4903,8 @@ function Fo({ children: e, ...t }) {
4861
4903
  },
4862
4904
  children: [
4863
4905
  e,
4864
- /* @__PURE__ */ h(jl, { container: s, children: /* @__PURE__ */ I(
4865
- Yl,
4906
+ /* @__PURE__ */ h(Gl, { container: s, children: /* @__PURE__ */ P(
4907
+ Zl,
4866
4908
  {
4867
4909
  className: "overflow-hidden bg-base border border-base-border rounded-dropdown-sheet max-h-[min(384px,var(--radix-select-content-available-height))] min-w-[var(--radix-select-trigger-width)] z-10",
4868
4910
  position: "popper",
@@ -4874,21 +4916,21 @@ function Fo({ children: e, ...t }) {
4874
4916
  onEscapeKeyDown: () => r(!1),
4875
4917
  ...t,
4876
4918
  children: [
4877
- /* @__PURE__ */ h(ql, { className: "flex items-center justify-center h-6 bg-base text-base-subtle cursor-default", children: /* @__PURE__ */ h(Je, { size: "sm", name: "chevron-up" }) }),
4878
- /* @__PURE__ */ h(Xl, { className: "p-1.5", children: i.value.map((l) => /* @__PURE__ */ I(
4879
- Kl,
4919
+ /* @__PURE__ */ h(tc, { className: "flex items-center justify-center h-6 bg-base text-base-subtle cursor-default", children: /* @__PURE__ */ h(Je, { size: "sm", name: "chevron-up" }) }),
4920
+ /* @__PURE__ */ h(ql, { className: "p-1.5", children: i.value.map((l) => /* @__PURE__ */ P(
4921
+ Ql,
4880
4922
  {
4881
4923
  value: l.languageCode,
4882
4924
  className: "flex select-none items-center p-1.5 pr-3 gap-2 cursor-pointer rounded-input relative focus-visible:outline-none data-[highlighted]:bg-base-active text-sm",
4883
4925
  children: [
4884
4926
  /* @__PURE__ */ h(On, { flagCode: l.flagCode }),
4885
- /* @__PURE__ */ h(Gl, { children: l.name }),
4886
- /* @__PURE__ */ h(Zl, { className: "text-base-primary p-1.5 -mr-1.5 ml-auto", children: /* @__PURE__ */ h(Je, { size: "sm", name: "check" }) })
4927
+ /* @__PURE__ */ h(Jl, { children: l.name }),
4928
+ /* @__PURE__ */ h(ec, { className: "text-base-primary p-1.5 -mr-1.5 ml-auto", children: /* @__PURE__ */ h(Je, { size: "sm", name: "check" }) })
4887
4929
  ]
4888
4930
  },
4889
4931
  l.languageCode
4890
4932
  )) }),
4891
- /* @__PURE__ */ h(Ql, { className: "flex items-center justify-center h-6 bg-base text-base-subtle cursor-default", children: /* @__PURE__ */ h(Je, { size: "sm", name: "chevron-down" }) })
4933
+ /* @__PURE__ */ h(nc, { className: "flex items-center justify-center h-6 bg-base text-base-subtle cursor-default", children: /* @__PURE__ */ h(Je, { size: "sm", name: "chevron-down" }) })
4892
4934
  ]
4893
4935
  }
4894
4936
  ) })
@@ -4896,13 +4938,13 @@ function Fo({ children: e, ...t }) {
4896
4938
  }
4897
4939
  );
4898
4940
  }
4899
- function ec({
4941
+ function oc({
4900
4942
  className: e,
4901
4943
  ...t
4902
4944
  }) {
4903
4945
  const n = re(), { language: r, showPicker: o } = rt();
4904
- return o.value ? /* @__PURE__ */ h(Fo, { align: "center", children: /* @__PURE__ */ I(
4905
- Bo,
4946
+ return o.value ? /* @__PURE__ */ h(Vo, { align: "center", children: /* @__PURE__ */ P(
4947
+ zo,
4906
4948
  {
4907
4949
  className: j(
4908
4950
  "h-9 min-w-max rounded-button focus-ring px-2 flex gap-2 items-center text-base-primary bg-base hover:bg-base-hover active:bg-base-active font-medium",
@@ -4913,12 +4955,12 @@ function ec({
4913
4955
  children: [
4914
4956
  /* @__PURE__ */ h(On, { size: "sm", flagCode: r.value.flagCode }),
4915
4957
  r.value.name,
4916
- /* @__PURE__ */ h(zo, { className: "text-base-subtle", asChild: !0, children: /* @__PURE__ */ h(Je, { size: "sm", name: "chevron-down" }) })
4958
+ /* @__PURE__ */ h(Fo, { className: "text-base-subtle", asChild: !0, children: /* @__PURE__ */ h(Je, { size: "sm", name: "chevron-down" }) })
4917
4959
  ]
4918
4960
  }
4919
4961
  ) }) : null;
4920
4962
  }
4921
- function tc({
4963
+ function ac({
4922
4964
  className: e,
4923
4965
  ...t
4924
4966
  }) {
@@ -4937,7 +4979,7 @@ function Mn({
4937
4979
  visible: e,
4938
4980
  ...t
4939
4981
  }) {
4940
- const n = re(), { isMuted: r, isMutingEnabled: o, setIsMuted: a } = pr(), i = Te(() => {
4982
+ const n = re(), { isMuted: r, isMutingEnabled: o, setIsMuted: a } = vr(), i = Te(() => {
4941
4983
  a(!r.peek());
4942
4984
  }, [a]);
4943
4985
  return o.value ? /* @__PURE__ */ h(ke, { visible: e, className: "p-1", children: /* @__PURE__ */ h(
@@ -4970,11 +5012,11 @@ function Ln({
4970
5012
  }
4971
5013
  );
4972
5014
  }
4973
- function nc({
5015
+ function ic({
4974
5016
  showTranscript: e,
4975
5017
  scrollPinned: t
4976
5018
  }) {
4977
- const [n, r] = be(""), o = zt(), { text_input_enabled: a } = Q().value, i = re(), {
5019
+ const [n, r] = be(""), o = zt(), { text_input_enabled: a } = q().value, i = re(), {
4978
5020
  isDisconnected: s,
4979
5021
  status: l,
4980
5022
  startSession: c,
@@ -4982,9 +5024,9 @@ function nc({
4982
5024
  sendUserActivity: p,
4983
5025
  conversationIndex: g
4984
5026
  } = ne();
4985
- return /* @__PURE__ */ I("div", { className: "shrink-0 overflow-hidden flex p-3 items-end justify-end", children: [
5027
+ return /* @__PURE__ */ P("div", { className: "shrink-0 overflow-hidden flex p-3 items-end justify-end", children: [
4986
5028
  a && /* @__PURE__ */ h(
4987
- tc,
5029
+ ac,
4988
5030
  {
4989
5031
  rows: 1,
4990
5032
  "aria-label": i.input_label,
@@ -4998,7 +5040,7 @@ function nc({
4998
5040
  placeholder: o.value ? s.value && g.value > 0 ? i.input_placeholder_new_conversation : i.input_placeholder_text_only : i.input_placeholder
4999
5041
  }
5000
5042
  ),
5001
- /* @__PURE__ */ I("div", { className: "flex h-11 items-center", children: [
5043
+ /* @__PURE__ */ P("div", { className: "flex h-11 items-center", children: [
5002
5044
  /* @__PURE__ */ h(Mn, { visible: !o.value && !s.value }),
5003
5045
  /* @__PURE__ */ h(
5004
5046
  ke,
@@ -5019,12 +5061,12 @@ function nc({
5019
5061
  ] })
5020
5062
  ] });
5021
5063
  }
5022
- function rc({
5064
+ function sc({
5023
5065
  entry: e,
5024
5066
  animateIn: t
5025
5067
  }) {
5026
5068
  const n = re(), { previewUrl: r } = bn(), { lastId: o } = ne();
5027
- return /* @__PURE__ */ h(ce, { initial: !t, active: !0, children: e.type === "message" ? /* @__PURE__ */ I(
5069
+ return /* @__PURE__ */ h(ce, { initial: !t, active: !0, children: e.type === "message" ? /* @__PURE__ */ P(
5028
5070
  "div",
5029
5071
  {
5030
5072
  className: j(
@@ -5053,21 +5095,21 @@ function rc({
5053
5095
  )
5054
5096
  ]
5055
5097
  }
5056
- ) : e.type === "disconnection" ? /* @__PURE__ */ I("div", { className: "mt-2 px-8 text-xs text-base-subtle text-center transition-opacity duration-200 data-hidden:opacity-0", children: [
5098
+ ) : e.type === "disconnection" ? /* @__PURE__ */ P("div", { className: "mt-2 px-8 text-xs text-base-subtle text-center transition-opacity duration-200 data-hidden:opacity-0", children: [
5057
5099
  e.role === "user" ? n.user_ended_conversation : n.agent_ended_conversation,
5058
5100
  /* @__PURE__ */ h("br", {}),
5059
- o.value && /* @__PURE__ */ I("span", { className: "break-all", children: [
5101
+ o.value && /* @__PURE__ */ P("span", { className: "break-all", children: [
5060
5102
  n.conversation_id,
5061
5103
  ": ",
5062
5104
  o.value
5063
5105
  ] })
5064
- ] }) : /* @__PURE__ */ I("div", { className: "mt-2 px-8 text-xs text-base-error text-center transition-opacity duration-200 data-hidden:opacity-0", children: [
5106
+ ] }) : /* @__PURE__ */ P("div", { className: "mt-2 px-8 text-xs text-base-error text-center transition-opacity duration-200 data-hidden:opacity-0", children: [
5065
5107
  n.error_occurred,
5066
5108
  /* @__PURE__ */ h("br", {}),
5067
5109
  e.message,
5068
- o.value && /* @__PURE__ */ I(wt, { children: [
5110
+ o.value && /* @__PURE__ */ P(wt, { children: [
5069
5111
  /* @__PURE__ */ h("br", {}),
5070
- /* @__PURE__ */ I("span", { className: "text-base-subtle break-all", children: [
5112
+ /* @__PURE__ */ P("span", { className: "text-base-subtle break-all", children: [
5071
5113
  n.conversation_id,
5072
5114
  ": ",
5073
5115
  o.value
@@ -5075,8 +5117,8 @@ function rc({
5075
5117
  ] })
5076
5118
  ] }) });
5077
5119
  }
5078
- const oc = 16;
5079
- function ac({ scrollPinned: e, transcript: t }) {
5120
+ const lc = 16;
5121
+ function cc({ scrollPinned: e, transcript: t }) {
5080
5122
  const n = we(null), r = (a) => {
5081
5123
  var i;
5082
5124
  (i = n.current) == null || i.scrollTo({
@@ -5093,11 +5135,11 @@ function ac({ scrollPinned: e, transcript: t }) {
5093
5135
  {
5094
5136
  ref: n,
5095
5137
  onScroll: (a) => {
5096
- e.value = a.currentTarget.scrollTop >= a.currentTarget.scrollHeight - a.currentTarget.clientHeight - oc;
5138
+ e.value = a.currentTarget.scrollTop >= a.currentTarget.scrollHeight - a.currentTarget.clientHeight - lc;
5097
5139
  },
5098
5140
  className: "px-4 pb-3 grow flex flex-col gap-3 overflow-x-hidden overflow-y-auto",
5099
5141
  children: t.value.map((a, i) => /* @__PURE__ */ h(
5100
- rc,
5142
+ sc,
5101
5143
  {
5102
5144
  entry: a,
5103
5145
  animateIn: !o.current
@@ -5107,7 +5149,7 @@ function ac({ scrollPinned: e, transcript: t }) {
5107
5149
  }
5108
5150
  );
5109
5151
  }
5110
- const ic = {
5152
+ const uc = {
5111
5153
  "top-left": "origin-top-left",
5112
5154
  top: "origin-top",
5113
5155
  "top-right": "origin-top-right",
@@ -5115,8 +5157,8 @@ const ic = {
5115
5157
  "bottom-right": "origin-bottom-right",
5116
5158
  bottom: "origin-bottom"
5117
5159
  };
5118
- function sc({ open: e }) {
5119
- const t = re(), n = wn(), r = zt(), o = Q(), a = o.value.placement, { isDisconnected: i, startSession: s, transcript: l, conversationIndex: c } = ne(), d = wr(), p = X(() => {
5160
+ function dc({ open: e }) {
5161
+ const t = re(), n = wn(), r = zt(), o = q(), a = o.value.placement, { isDisconnected: i, startSession: s, transcript: l, conversationIndex: c } = ne(), d = xr(), p = Y(() => {
5120
5162
  var m;
5121
5163
  return n.value || r.value ? !d.value || !n.value ? l.value : [
5122
5164
  {
@@ -5131,36 +5173,36 @@ function sc({ open: e }) {
5131
5173
  (f) => f.type !== "message" || f.isText
5132
5174
  );
5133
5175
  }), g = p.value.length > 0 || !i.value && o.value.transcript_enabled, v = ue(!0);
5134
- return /* @__PURE__ */ h(ce, { initial: !1, active: e, children: /* @__PURE__ */ I(
5176
+ return /* @__PURE__ */ h(ce, { initial: !1, active: e, children: /* @__PURE__ */ P(
5135
5177
  "div",
5136
5178
  {
5137
5179
  className: j(
5138
5180
  "flex flex-col overflow-hidden absolute bg-base shadow-lg pointer-events-auto rounded-sheet w-full max-w-[400px] h-[calc(100%-80px)] max-h-[550px]",
5139
5181
  "transition-[transform,opacity] duration-200 data-hidden:scale-90 data-hidden:opacity-0",
5140
- ic[a],
5182
+ uc[a],
5141
5183
  a.startsWith("top") ? "top-20" : "bottom-20"
5142
5184
  ),
5143
5185
  children: [
5144
- /* @__PURE__ */ I("div", { className: "bg-base shrink-0 flex gap-2 p-4 items-start", children: [
5186
+ /* @__PURE__ */ P("div", { className: "bg-base shrink-0 flex gap-2 p-4 items-start", children: [
5145
5187
  /* @__PURE__ */ h("div", { className: "relative w-16 h-16" }),
5146
5188
  /* @__PURE__ */ h(ce, { active: g && !i.value, children: /* @__PURE__ */ h(an, { className: "rounded-bl-[calc(var(--el-bubble-radius)/3)] transition-opacity data-hidden:opacity-0" }) })
5147
5189
  ] }),
5148
5190
  /* @__PURE__ */ h(
5149
- ac,
5191
+ cc,
5150
5192
  {
5151
5193
  transcript: p,
5152
5194
  scrollPinned: v
5153
5195
  }
5154
5196
  ),
5155
5197
  /* @__PURE__ */ h(
5156
- nc,
5198
+ ic,
5157
5199
  {
5158
5200
  scrollPinned: v,
5159
5201
  showTranscript: g
5160
5202
  }
5161
5203
  ),
5162
- /* @__PURE__ */ h(ce, { active: !g || i.value, children: /* @__PURE__ */ h("div", { className: "absolute top-0 left-0 right-0 p-4 flex justify-center transition-[opacity,transform] duration-200 data-hidden:opacity-0 data-hidden:-translate-y-4", children: /* @__PURE__ */ h(ec, {}) }) }),
5163
- /* @__PURE__ */ I(
5204
+ /* @__PURE__ */ h(ce, { active: !g || i.value, children: /* @__PURE__ */ h("div", { className: "absolute top-0 left-0 right-0 p-4 flex justify-center transition-[opacity,transform] duration-200 data-hidden:opacity-0 data-hidden:-translate-y-4", children: /* @__PURE__ */ h(oc, {}) }) }),
5205
+ /* @__PURE__ */ P(
5164
5206
  "div",
5165
5207
  {
5166
5208
  className: j(
@@ -5192,11 +5234,11 @@ function sc({ open: e }) {
5192
5234
  }
5193
5235
  ) });
5194
5236
  }
5195
- function Vo({ expanded: e }) {
5196
- const t = zt(), n = Q().value.variant, { isDisconnected: r } = ne(), o = re(), a = Te(() => {
5237
+ function $o({ expanded: e }) {
5238
+ const t = zt(), n = q().value.variant, { isDisconnected: r } = ne(), o = re(), a = Te(() => {
5197
5239
  e.value = !e.value;
5198
5240
  }, [e]);
5199
- return /* @__PURE__ */ I(wt, { children: [
5241
+ return /* @__PURE__ */ P(wt, { children: [
5200
5242
  n === "full" && /* @__PURE__ */ h(
5201
5243
  ke,
5202
5244
  {
@@ -5237,13 +5279,13 @@ function Vo({ expanded: e }) {
5237
5279
  ) })
5238
5280
  ] });
5239
5281
  }
5240
- function lc({
5282
+ function fc({
5241
5283
  expanded: e,
5242
5284
  className: t,
5243
5285
  ...n
5244
5286
  }) {
5245
5287
  const { isDisconnected: r } = ne(), o = re();
5246
- return /* @__PURE__ */ I(
5288
+ return /* @__PURE__ */ P(
5247
5289
  "div",
5248
5290
  {
5249
5291
  className: j(
@@ -5258,38 +5300,38 @@ function lc({
5258
5300
  {
5259
5301
  visible: !e.value && r.value,
5260
5302
  className: "p-1 !min-w-60",
5261
- children: /* @__PURE__ */ I("div", { className: "flex items-center gap-2", children: [
5303
+ children: /* @__PURE__ */ P("div", { className: "flex items-center gap-2", children: [
5262
5304
  /* @__PURE__ */ h(ot, {}),
5263
5305
  /* @__PURE__ */ h("div", { className: "text-sm max-w-64", children: o.main_label })
5264
5306
  ] })
5265
5307
  }
5266
5308
  ),
5267
- /* @__PURE__ */ h("div", { className: "flex items-center", children: /* @__PURE__ */ h(Vo, { expanded: e }) })
5309
+ /* @__PURE__ */ h("div", { className: "flex items-center", children: /* @__PURE__ */ h($o, { expanded: e }) })
5268
5310
  ]
5269
5311
  }
5270
5312
  );
5271
5313
  }
5272
- function cc({
5314
+ function pc({
5273
5315
  expanded: e,
5274
5316
  className: t,
5275
5317
  ...n
5276
5318
  }) {
5277
- return /* @__PURE__ */ I(
5319
+ return /* @__PURE__ */ P(
5278
5320
  "div",
5279
5321
  {
5280
5322
  className: j("rounded-compact-sheet flex items-center p-2", t),
5281
5323
  ...n,
5282
5324
  children: [
5283
5325
  /* @__PURE__ */ h(ke, { visible: !e.value, className: "p-1", children: /* @__PURE__ */ h(ot, {}) }),
5284
- /* @__PURE__ */ h(Vo, { expanded: e })
5326
+ /* @__PURE__ */ h($o, { expanded: e })
5285
5327
  ]
5286
5328
  }
5287
5329
  );
5288
5330
  }
5289
- function uc({ visible: e, className: t, ...n }) {
5331
+ function hc({ visible: e, className: t, ...n }) {
5290
5332
  const r = re(), { language: o, showPicker: a } = rt();
5291
- return a.value ? /* @__PURE__ */ h(ke, { visible: e, className: "p-1", children: /* @__PURE__ */ h(Fo, { children: /* @__PURE__ */ I(
5292
- Bo,
5333
+ return a.value ? /* @__PURE__ */ h(ke, { visible: e, className: "p-1", children: /* @__PURE__ */ h(Vo, { children: /* @__PURE__ */ P(
5334
+ zo,
5293
5335
  {
5294
5336
  className: j(
5295
5337
  "h-9 min-w-max border border-base-border rounded-button focus-ring px-1.5 flex gap-1 items-center transition-colors duration-200 hover:bg-base-hover active:bg-base-active",
@@ -5299,14 +5341,14 @@ function uc({ visible: e, className: t, ...n }) {
5299
5341
  ...n,
5300
5342
  children: [
5301
5343
  /* @__PURE__ */ h(On, { flagCode: o.value.flagCode }),
5302
- /* @__PURE__ */ h(zo, { className: "px-1 text-base-subtle", asChild: !0, children: /* @__PURE__ */ h(Je, { size: "sm", name: "chevron-down" }) })
5344
+ /* @__PURE__ */ h(Fo, { className: "px-1 text-base-subtle", asChild: !0, children: /* @__PURE__ */ h(Je, { size: "sm", name: "chevron-down" }) })
5303
5345
  ]
5304
5346
  }
5305
5347
  ) }) }) : null;
5306
5348
  }
5307
5349
  function Wo() {
5308
- const e = Q().value.variant, { isDisconnected: t, status: n } = ne();
5309
- return /* @__PURE__ */ I(wt, { children: [
5350
+ const e = q().value.variant, { isDisconnected: t, status: n } = ne();
5351
+ return /* @__PURE__ */ P(wt, { children: [
5310
5352
  /* @__PURE__ */ h(
5311
5353
  Ln,
5312
5354
  {
@@ -5316,19 +5358,19 @@ function Wo() {
5316
5358
  disabled: n.value === "disconnecting" || n.value === "connecting"
5317
5359
  }
5318
5360
  ),
5319
- /* @__PURE__ */ h(uc, { visible: t.value }),
5361
+ /* @__PURE__ */ h(hc, { visible: t.value }),
5320
5362
  /* @__PURE__ */ h(Mn, { visible: !t.value })
5321
5363
  ] });
5322
5364
  }
5323
- function dc({
5365
+ function vc({
5324
5366
  className: e,
5325
5367
  ...t
5326
5368
  }) {
5327
5369
  const { isDisconnected: n } = ne(), r = re();
5328
- return /* @__PURE__ */ I("div", { className: j("flex flex-col p-2 rounded-sheet", e), ...t, children: [
5329
- /* @__PURE__ */ I("div", { className: "flex items-center p-1 gap-2 min-w-60", children: [
5370
+ return /* @__PURE__ */ P("div", { className: j("flex flex-col p-2 rounded-sheet", e), ...t, children: [
5371
+ /* @__PURE__ */ P("div", { className: "flex items-center p-1 gap-2 min-w-60", children: [
5330
5372
  /* @__PURE__ */ h(ot, {}),
5331
- /* @__PURE__ */ I("div", { className: "relative text-sm max-w-64", children: [
5373
+ /* @__PURE__ */ P("div", { className: "relative text-sm max-w-64", children: [
5332
5374
  /* @__PURE__ */ h(
5333
5375
  "span",
5334
5376
  {
@@ -5345,11 +5387,11 @@ function dc({
5345
5387
  /* @__PURE__ */ h("div", { className: "flex items-center", children: /* @__PURE__ */ h(Wo, {}) })
5346
5388
  ] });
5347
5389
  }
5348
- function fc({
5390
+ function gc({
5349
5391
  className: e,
5350
5392
  ...t
5351
5393
  }) {
5352
- return /* @__PURE__ */ I(
5394
+ return /* @__PURE__ */ P(
5353
5395
  "div",
5354
5396
  {
5355
5397
  className: j("rounded-compact-sheet flex items-center p-2", e),
@@ -5361,12 +5403,12 @@ function fc({
5361
5403
  }
5362
5404
  );
5363
5405
  }
5364
- function pc({ expandable: e, expanded: t }) {
5365
- const n = Q().value.variant, r = Bt(), { isDisconnected: o } = ne(), a = Te(async () => {
5406
+ function mc({ expandable: e, expanded: t }) {
5407
+ const n = q().value.variant, r = Bt(), { isDisconnected: o } = ne(), a = Te(async () => {
5366
5408
  await r.requestTerms(), t.value = !t.peek();
5367
5409
  }, [t]), i = n === "full";
5368
5410
  return e ? /* @__PURE__ */ h(
5369
- i ? lc : cc,
5411
+ i ? fc : pc,
5370
5412
  {
5371
5413
  expanded: t,
5372
5414
  className: j(
@@ -5375,11 +5417,11 @@ function pc({ expandable: e, expanded: t }) {
5375
5417
  ),
5376
5418
  onClick: o.value || t.value ? a : void 0
5377
5419
  }
5378
- ) : /* @__PURE__ */ h(i ? dc : fc, { className: "bg-base shadow-md pointer-events-auto overflow-hidden" });
5420
+ ) : /* @__PURE__ */ h(i ? vc : gc, { className: "bg-base shadow-md pointer-events-auto overflow-hidden" });
5379
5421
  }
5380
- function hc() {
5381
- const e = re(), t = Q(), { dismissTerms: n, acceptTerms: r } = Bt();
5382
- return /* @__PURE__ */ I("div", { className: "max-w-[400px] flex flex-col gap-2 bg-base shadow-md pointer-events-auto rounded-sheet p-3 text-sm", children: [
5422
+ function wc() {
5423
+ const e = re(), t = q(), { dismissTerms: n, acceptTerms: r } = Bt();
5424
+ return /* @__PURE__ */ P("div", { className: "max-w-[400px] flex flex-col gap-2 bg-base shadow-md pointer-events-auto rounded-sheet p-3 text-sm", children: [
5383
5425
  /* @__PURE__ */ h(
5384
5426
  "div",
5385
5427
  {
@@ -5387,13 +5429,13 @@ function hc() {
5387
5429
  dangerouslySetInnerHTML: { __html: t.value.terms_html ?? "" }
5388
5430
  }
5389
5431
  ),
5390
- /* @__PURE__ */ I("div", { className: "flex justify-end gap-2", children: [
5432
+ /* @__PURE__ */ P("div", { className: "flex justify-end gap-2", children: [
5391
5433
  /* @__PURE__ */ h(Me, { onClick: n, children: e.dismiss_terms }),
5392
5434
  /* @__PURE__ */ h(Me, { onClick: r, variant: "primary", children: e.accept_terms })
5393
5435
  ] })
5394
5436
  ] });
5395
5437
  }
5396
- function vc({ copyText: e, children: t }) {
5438
+ function bc({ copyText: e, children: t }) {
5397
5439
  const n = re(), [r, o] = be(!1);
5398
5440
  Oe(() => {
5399
5441
  if (r) {
@@ -5406,37 +5448,37 @@ function vc({ copyText: e, children: t }) {
5406
5448
  }
5407
5449
  }, [r]);
5408
5450
  const a = Te(() => {
5409
- const i = Sr(e);
5451
+ const i = Er(e);
5410
5452
  i && (navigator.clipboard.writeText(i), o(!0));
5411
5453
  }, []);
5412
5454
  return /* @__PURE__ */ h(Me, { onClick: a, children: r ? n.copied : t });
5413
5455
  }
5414
- function gc({ sawError: e }) {
5456
+ function xc({ sawError: e }) {
5415
5457
  const t = re(), { error: n, lastId: r } = ne(), o = Te(() => {
5416
5458
  e.value = !0;
5417
5459
  }, []);
5418
- return /* @__PURE__ */ I("div", { className: "max-w-[400px] flex flex-col gap-2 bg-base shadow-md pointer-events-auto rounded-sheet p-3 text-sm", children: [
5419
- /* @__PURE__ */ I("div", { className: "p-2 pt-1", children: [
5460
+ return /* @__PURE__ */ P("div", { className: "max-w-[400px] flex flex-col gap-2 bg-base shadow-md pointer-events-auto rounded-sheet p-3 text-sm", children: [
5461
+ /* @__PURE__ */ P("div", { className: "p-2 pt-1", children: [
5420
5462
  /* @__PURE__ */ h("h1", { className: "text-md font-medium pb-1", children: t.error_occurred }),
5421
5463
  n.value,
5422
- r.value && /* @__PURE__ */ I(wt, { children: [
5464
+ r.value && /* @__PURE__ */ P(wt, { children: [
5423
5465
  /* @__PURE__ */ h("br", {}),
5424
- /* @__PURE__ */ I("span", { className: "text-base-subtle", children: [
5466
+ /* @__PURE__ */ P("span", { className: "text-base-subtle", children: [
5425
5467
  t.conversation_id,
5426
5468
  ": ",
5427
5469
  r.value
5428
5470
  ] })
5429
5471
  ] })
5430
5472
  ] }),
5431
- /* @__PURE__ */ I("div", { className: "flex justify-end gap-2", children: [
5432
- /* @__PURE__ */ h(vc, { copyText: r, children: t.copy_id }),
5473
+ /* @__PURE__ */ P("div", { className: "flex justify-end gap-2", children: [
5474
+ /* @__PURE__ */ h(bc, { copyText: r, children: t.copy_id }),
5433
5475
  /* @__PURE__ */ h(Me, { variant: "primary", onClick: o, children: "Close" })
5434
5476
  ] })
5435
5477
  ] });
5436
5478
  }
5437
- function mc() {
5438
- const e = Q();
5439
- return e.value.disable_banner ? null : /* @__PURE__ */ I(
5479
+ function yc() {
5480
+ const e = q();
5481
+ return e.value.disable_banner ? null : /* @__PURE__ */ P(
5440
5482
  "p",
5441
5483
  {
5442
5484
  className: j(
@@ -5466,7 +5508,7 @@ const Ze = {
5466
5508
  }, qe = {
5467
5509
  top: "flex-col-reverse justify-end",
5468
5510
  bottom: "flex-col justify-end"
5469
- }, wc = {
5511
+ }, Cc = {
5470
5512
  "top-left": `${qe.top} ${Ze.left}`,
5471
5513
  top: `${qe.top} ${Ze.center}`,
5472
5514
  "top-right": `${qe.top} ${Ze.right}`,
@@ -5475,40 +5517,40 @@ const Ze = {
5475
5517
  "bottom-right": `${qe.bottom} ${Ze.right}`
5476
5518
  }, At = {
5477
5519
  display: "none"
5478
- }, bc = sr(function() {
5479
- const t = ue(!1), n = Q(), r = ue(!1), { error: o } = ne(), a = Bt(), i = X(
5520
+ }, Sc = sr(function() {
5521
+ const t = ue(!1), n = q(), r = ue(!1), { error: o } = ne(), a = Bt(), i = Y(
5480
5522
  () => n.value.transcript_enabled || n.value.text_input_enabled
5481
- ), s = X(
5523
+ ), s = Y(
5482
5524
  () => j(
5483
5525
  "overlay !flex transition-opacity duration-200 data-hidden:opacity-0",
5484
- wc[n.value.placement]
5526
+ Cc[n.value.placement]
5485
5527
  )
5486
5528
  );
5487
5529
  ze(() => {
5488
5530
  o.value && (i.value ? (r.value = !0, t.value = !0) : r.value = !1);
5489
5531
  });
5490
- const l = X(() => !i.value && o.value && !r.value ? "error" : !a.termsAccepted.value && a.termsShown.value ? "terms" : "conversation"), c = X(() => l.value === "error"), d = X(() => l.value === "terms"), p = X(() => l.value === "conversation");
5491
- return /* @__PURE__ */ I(wt, { children: [
5492
- /* @__PURE__ */ h(ce, { initial: !1, active: p, children: /* @__PURE__ */ I(yt, { className: s, style: At, children: [
5493
- i.value && /* @__PURE__ */ h(sc, { open: t }),
5494
- /* @__PURE__ */ h(pc, { expandable: i.value, expanded: t })
5532
+ const l = Y(() => !i.value && o.value && !r.value ? "error" : !a.termsAccepted.value && a.termsShown.value ? "terms" : "conversation"), c = Y(() => l.value === "error"), d = Y(() => l.value === "terms"), p = Y(() => l.value === "conversation");
5533
+ return /* @__PURE__ */ P(wt, { children: [
5534
+ /* @__PURE__ */ h(ce, { initial: !1, active: p, children: /* @__PURE__ */ P(yt, { className: s, style: At, children: [
5535
+ i.value && /* @__PURE__ */ h(dc, { open: t }),
5536
+ /* @__PURE__ */ h(mc, { expandable: i.value, expanded: t })
5495
5537
  ] }) }),
5496
- /* @__PURE__ */ h(ce, { initial: !1, active: d, children: /* @__PURE__ */ h(yt, { className: s, style: At, children: /* @__PURE__ */ h(hc, {}) }) }),
5497
- /* @__PURE__ */ h(ce, { initial: !1, active: c, children: /* @__PURE__ */ h(yt, { className: s, style: At, children: /* @__PURE__ */ h(gc, { sawError: r }) }) }),
5498
- /* @__PURE__ */ h(yt, { className: s, style: At, children: /* @__PURE__ */ h(mc, {}) })
5538
+ /* @__PURE__ */ h(ce, { initial: !1, active: d, children: /* @__PURE__ */ h(yt, { className: s, style: At, children: /* @__PURE__ */ h(wc, {}) }) }),
5539
+ /* @__PURE__ */ h(ce, { initial: !1, active: c, children: /* @__PURE__ */ h(yt, { className: s, style: At, children: /* @__PURE__ */ h(xc, { sawError: r }) }) }),
5540
+ /* @__PURE__ */ h(yt, { className: s, style: At, children: /* @__PURE__ */ h(yc, {}) })
5499
5541
  ] });
5500
5542
  });
5501
- function xc(e) {
5502
- return /* @__PURE__ */ h(Qo, { value: e, children: /* @__PURE__ */ h(oa, { children: /* @__PURE__ */ h(pa, { children: /* @__PURE__ */ h(ca, { children: /* @__PURE__ */ h(va, { children: /* @__PURE__ */ h(ia, { children: /* @__PURE__ */ h(sa, { children: /* @__PURE__ */ h(ua, { children: /* @__PURE__ */ h(ga, { children: /* @__PURE__ */ I(ma, { children: [
5503
- /* @__PURE__ */ h(qo, {}),
5504
- /* @__PURE__ */ h(bc, {})
5543
+ function Ec(e) {
5544
+ return /* @__PURE__ */ h(ra, { value: e, children: /* @__PURE__ */ h(aa, { children: /* @__PURE__ */ h(va, { children: /* @__PURE__ */ h(da, { children: /* @__PURE__ */ h(sa, { children: /* @__PURE__ */ h(la, { children: /* @__PURE__ */ h(ca, { children: /* @__PURE__ */ h(fa, { children: /* @__PURE__ */ h(xa, { children: /* @__PURE__ */ P(ya, { children: [
5545
+ /* @__PURE__ */ h(ma, {}),
5546
+ /* @__PURE__ */ h(Sc, {})
5505
5547
  ] }) }) }) }) }) }) }) }) }) });
5506
5548
  }
5507
- function Ic(e = "elevenlabs-convai") {
5508
- jo(xc, e, [...rn], {
5549
+ function Mc(e = "elevenlabs-convai") {
5550
+ Yo(Ec, e, [...rn], {
5509
5551
  shadow: !0
5510
5552
  });
5511
5553
  }
5512
5554
  export {
5513
- Ic as registerWidget
5555
+ Mc as registerWidget
5514
5556
  };