@eloquentai/chat-sdk 0.37.0-dev.3 → 0.37.0-dev.5

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.mjs CHANGED
@@ -1,39 +1,15 @@
1
1
  "use client";
2
- import { L as Tt, c as Be, u as Mt, g as At, X as Pt, i as Ot, A as Ut, d as F, e as Ke, f as jt, h as Dt, r as $t, t as Bt, j as Lt, N as at, k as Le, l as Nt, H as Zt, w as ct, m as Kt, s as Ht, n as Vt, o as Wt, E as Ft, p as Jt, S as Gt, C as Yt, T as Xt } from "./skeleton-DJDQ11eO.js";
3
- import { jsx as I, jsxs as ke, Fragment as Qt } from "react/jsx-runtime";
4
- import { useState as C, useCallback as v, useEffect as V, useMemo as tt, useRef as $ } from "react";
5
- import { createPortal as ot, flushSync as eo } from "react-dom";
6
- import to from "react-dom/client";
2
+ import { jsx as E, jsxs as ke, Fragment as Ot } from "react/jsx-runtime";
3
+ import { useState as C, useCallback as v, useEffect as K, useMemo as ot, useRef as $ } from "react";
4
+ import { createPortal as rt, flushSync as Ut } from "react-dom";
5
+ import { L as jt, c as Le, u as Dt, g as $t, X as Nt, d as Ue, i as Bt, A as Lt, e as F, f as Ve, h as Zt, j as Kt, r as Vt, t as Wt, k as Ht, N as it, l as Ft, H as Gt, w as ut, m as Jt, s as Yt, n as Xt, o as Qt, E as eo, p as to, S as oo, C as ro, T as no } from "./skeleton-Lf4Nqzua.js";
6
+ import ao from "react-dom/client";
7
7
  try {
8
8
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
9
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "3ac09d81-72f9-4510-abbd-25060624b74f", e._sentryDebugIdIdentifier = "sentry-dbid-3ac09d81-72f9-4510-abbd-25060624b74f");
9
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "536c2028-b472-4beb-a90b-650bb324e160", e._sentryDebugIdIdentifier = "sentry-dbid-536c2028-b472-4beb-a90b-650bb324e160");
10
10
  } catch {
11
11
  }
12
- if (typeof window < "u") {
13
- const e = "development";
14
- import("./index-hFbiYJI3.js").then(({ init: t }) => {
15
- t({
16
- dsn: void 0,
17
- environment: e,
18
- sendDefaultPii: !1,
19
- debug: !1,
20
- enabled: !0,
21
- beforeSend(o) {
22
- const r = /* @__PURE__ */ new Set([
23
- "authorization",
24
- "cookie",
25
- "x-api-key",
26
- "x-auth-token"
27
- ]), n = o.request?.headers;
28
- if (n)
29
- for (const a of Object.keys(n))
30
- r.has(a.toLowerCase()) && (n[a] = "[Filtered]");
31
- return o.request && (o.request.data = "[Filtered]"), o;
32
- }
33
- });
34
- });
35
- }
36
- const Je = '/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--eloq-aura-angle:0deg}}}@layer theme{:root,:host{--eloq-font-sans:system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--eloq-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--eloq-color-red-50:oklch(97.1% .013 17.38);--eloq-color-red-200:oklch(88.5% .062 18.334);--eloq-color-red-400:oklch(70.4% .191 22.216);--eloq-color-red-500:oklch(63.7% .237 25.331);--eloq-color-red-800:oklch(44.4% .177 26.899);--eloq-color-amber-50:oklch(98.7% .022 95.277);--eloq-color-amber-200:oklch(92.4% .12 95.746);--eloq-color-amber-400:oklch(82.8% .189 84.429);--eloq-color-amber-500:oklch(76.9% .188 70.08);--eloq-color-amber-800:oklch(47.3% .137 46.201);--eloq-color-yellow-400:oklch(85.2% .199 91.936);--eloq-color-green-50:oklch(98.2% .018 155.826);--eloq-color-green-200:oklch(92.5% .084 155.995);--eloq-color-green-400:oklch(79.2% .209 151.711);--eloq-color-green-500:oklch(72.3% .219 149.579);--eloq-color-green-800:oklch(44.8% .119 151.328);--eloq-color-blue-50:oklch(97% .014 254.604);--eloq-color-blue-200:oklch(88.2% .059 254.128);--eloq-color-blue-400:oklch(70.7% .165 254.624);--eloq-color-blue-500:oklch(62.3% .214 259.815);--eloq-color-blue-800:oklch(42.4% .199 265.638);--eloq-color-gray-100:oklch(96.7% .003 264.542);--eloq-color-gray-200:oklch(92.8% .006 264.531);--eloq-color-gray-300:oklch(87.2% .01 258.338);--eloq-color-gray-400:oklch(70.7% .022 261.325);--eloq-color-gray-500:oklch(55.1% .027 264.364);--eloq-color-gray-600:oklch(44.6% .03 256.802);--eloq-color-gray-900:oklch(21% .034 264.665);--eloq-color-black:#000;--eloq-color-white:#fff;--eloq-spacing:.25rem;--eloq-container-xs:20rem;--eloq-text-xs:.75rem;--eloq-text-xs--line-height:calc(1 / .75);--eloq-text-sm:.875rem;--eloq-text-sm--line-height:calc(1.25 / .875);--eloq-text-base:1rem;--eloq-text-base--line-height: 1.5 ;--eloq-text-2xl:1.5rem;--eloq-text-2xl--line-height:calc(2 / 1.5);--eloq-font-weight-medium:500;--eloq-font-weight-semibold:600;--eloq-tracking-tight:-.025em;--eloq-leading-relaxed:1.625;--eloq-radius-sm:calc(var(--radius) - 4px);--eloq-radius-md:calc(var(--radius) - 2px);--eloq-radius-lg:var(--radius);--eloq-radius-xl:.75rem;--eloq-radius-2xl:1rem;--eloq-radius-3xl:1.5rem;--eloq-drop-shadow-lg:0 4px 4px #00000026;--eloq-drop-shadow-xl:0 9px 7px #0000001a;--eloq-ease-out:cubic-bezier(0, 0, .2, 1);--eloq-animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--eloq-default-transition-duration:.15s;--eloq-default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--eloq-default-font-family:var(--eloq-font-sans);--eloq-default-mono-font-family:var(--eloq-font-mono);--eloq-animate-panel-in:panel-in .35s cubic-bezier(.16, 1, .3, 1) both;--eloq-animate-panel-out:panel-out .25s cubic-bezier(.4, 0, 1, 1) both;--eloq-animate-panel-fade-in:fade-in .35s ease-out both;--eloq-animate-panel-fade-out:fade-out .25s ease-in both;--eloq-animate-message-fade-in:fade-in .3s ease-out both;--eloq-animate-thinking-dot:thinking-dot 1.2s ease-in-out infinite;--eloq-animate-thinking-shimmer:thinking-shimmer 1.8s linear infinite;--eloq-animate-regenerating:regenerating-sweep 1.2s linear infinite;--eloq-animate-text-in:fade-in .35s ease-out both;--eloq-animate-message-in:message-in .3s ease-out both;--eloq-animate-slide-up-in:slide-up-in .3s ease-out both}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--eloq-default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--eloq-default-font-feature-settings,normal);font-variation-settings:var(--eloq-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--eloq-default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--eloq-default-mono-font-feature-settings,normal);font-variation-settings:var(--eloq-default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:root{--background:0 0% 100%;--foreground:0 0% 3.9%;--card:0 0% 100%;--card-foreground:0 0% 3.9%;--popover:0 0% 100%;--popover-foreground:0 0% 3.9%;--primary:267 56% 46%;--primary-foreground:0 0% 98%;--secondary:0 0% 96.1%;--secondary-foreground:0 0% 9%;--muted:0 0% 96.1%;--muted-foreground:0 0% 45.1%;--accent:0 0% 96.1%;--accent-foreground:0 0% 9%;--destructive:0 84.2% 60.2%;--destructive-foreground:0 0% 98%;--border:0 0% 89.8%;--input:0 0% 89.8%;--ring:0 0% 3.9%;--cream:37.5 44% 96.5%;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%;--radius:.5rem}.dark{--background:262 50% 10%;--foreground:262 5% 90%;--card:262 50% 10%;--card-foreground:262 5% 90%;--popover:262 50% 5%;--popover-foreground:262 5% 90%;--primary:262 62% 70%;--primary-foreground:0 0% 100%;--primary-dark:262 62% 60%;--secondary:262 30% 30%;--secondary-foreground:0 0% 100%;--secondary-dark:262 30% 20%;--secondary-light:262 30% 40%;--tertiary:267 56% 46%;--tertiary-foreground:0 0% 100%;--tertiary-dark:267 38% 25%;--tertiary-light:263 100% 85%;--muted:224 30% 25%;--muted-foreground:262 5% 90%;--accent:224 30% 25%;--accent-foreground:262 5% 100%;--accent-dark:224 30% 15%;--destructive:0 100% 30%;--destructive-foreground:262 5% 90%;--border:0 0% 30%;--input:262 30% 25%;--ring:262 62% 71%;--cream:257 28% 20%;--radius:.5rem;--sidebar-background:var(--background);--sidebar-foreground:var(--foreground);--sidebar-primary:var(--primary);--sidebar-primary-foreground:var(--primary-foreground);--sidebar-accent:var(--accent);--sidebar-accent-foreground:var(--accent-foreground);--sidebar-border:var(--border);--sidebar-ring:var(--ring)}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}}@layer components;@layer utilities{.eloq\\:pointer-events-none{pointer-events:none}.eloq\\:invisible{visibility:hidden}.eloq\\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.eloq\\:absolute{position:absolute}.eloq\\:relative{position:relative}.eloq\\:inset-0{inset:0}.eloq\\:inset-0\\.5{inset:calc(var(--eloq-spacing) * .5)}.eloq\\:inset-x-0{inset-inline:0}.eloq\\:end-full{inset-inline-end:100%}.eloq\\:top-0{top:0}.eloq\\:top-0\\.5{top:calc(var(--eloq-spacing) * .5)}.eloq\\:top-1\\/2{top:50%}.eloq\\:top-\\[2px\\]{top:2px}.eloq\\:-right-\\[9px\\]{right:-9px}.eloq\\:right-0\\.5{right:calc(var(--eloq-spacing) * .5)}.eloq\\:right-2{right:calc(var(--eloq-spacing) * 2)}.eloq\\:right-16{right:calc(var(--eloq-spacing) * 16)}.eloq\\:right-\\[2px\\]{right:2px}.eloq\\:bottom-0{bottom:0}.eloq\\:bottom-1{bottom:var(--eloq-spacing)}.eloq\\:bottom-2{bottom:calc(var(--eloq-spacing) * 2)}.eloq\\:bottom-10{bottom:calc(var(--eloq-spacing) * 10)}.eloq\\:left-0{left:0}.eloq\\:left-2{left:calc(var(--eloq-spacing) * 2)}.eloq\\:left-\\[calc\\(50\\%-0\\.75rem\\)\\]{left:calc(50% - .75rem)}.eloq\\:z-10{z-index:10}.eloq\\:z-20{z-index:20}.eloq\\:z-30{z-index:30}.eloq\\:m-0{margin:0}.eloq\\:m-auto{margin:auto}.eloq\\:mx-1{margin-inline:var(--eloq-spacing)}.eloq\\:mx-auto{margin-inline:auto}.eloq\\:my-2{margin-block:calc(var(--eloq-spacing) * 2)}.eloq\\:my-4{margin-block:calc(var(--eloq-spacing) * 4)}.eloq\\:me-1{margin-inline-end:var(--eloq-spacing)}.eloq\\:-mt-2{margin-top:calc(var(--eloq-spacing) * -2)}.eloq\\:-mt-6{margin-top:calc(var(--eloq-spacing) * -6)}.eloq\\:-mt-20{margin-top:calc(var(--eloq-spacing) * -20)}.eloq\\:mt-1{margin-top:var(--eloq-spacing)}.eloq\\:mt-2{margin-top:calc(var(--eloq-spacing) * 2)}.eloq\\:mt-10{margin-top:calc(var(--eloq-spacing) * 10)}.eloq\\:mr-1{margin-right:var(--eloq-spacing)}.eloq\\:mr-\\[2px\\]{margin-right:2px}.eloq\\:mb-1{margin-bottom:var(--eloq-spacing)}.eloq\\:mb-3{margin-bottom:calc(var(--eloq-spacing) * 3)}.eloq\\:mb-4{margin-bottom:calc(var(--eloq-spacing) * 4)}.eloq\\:mb-10{margin-bottom:calc(var(--eloq-spacing) * 10)}.eloq\\:ml-0{margin-left:0}.eloq\\:ml-1{margin-left:var(--eloq-spacing)}.eloq\\:ml-5{margin-left:calc(var(--eloq-spacing) * 5)}.eloq\\:box-content{box-sizing:content-box}.eloq\\:block{display:block}.eloq\\:flex{display:flex}.eloq\\:hidden{display:none}.eloq\\:inline-flex{display:inline-flex}.eloq\\:field-sizing-content{field-sizing:content}.eloq\\:aspect-square{aspect-ratio:1}.eloq\\:h-1{height:var(--eloq-spacing)}.eloq\\:h-2\\.5{height:calc(var(--eloq-spacing) * 2.5)}.eloq\\:h-3{height:calc(var(--eloq-spacing) * 3)}.eloq\\:h-4{height:calc(var(--eloq-spacing) * 4)}.eloq\\:h-5{height:calc(var(--eloq-spacing) * 5)}.eloq\\:h-6{height:calc(var(--eloq-spacing) * 6)}.eloq\\:h-8{height:calc(var(--eloq-spacing) * 8)}.eloq\\:h-10{height:calc(var(--eloq-spacing) * 10)}.eloq\\:h-12{height:calc(var(--eloq-spacing) * 12)}.eloq\\:h-14{height:calc(var(--eloq-spacing) * 14)}.eloq\\:h-16{height:calc(var(--eloq-spacing) * 16)}.eloq\\:h-\\[0\\.42em\\]{height:.42em}.eloq\\:h-\\[160px\\]{height:160px}.eloq\\:h-\\[220px\\]{height:220px}.eloq\\:h-\\[560px\\]{height:560px}.eloq\\:h-\\[600px\\]{height:600px}.eloq\\:h-full{height:100%}.eloq\\:max-h-\\[132px\\]{max-height:132px}.eloq\\:min-h-6{min-height:calc(var(--eloq-spacing) * 6)}.eloq\\:min-h-\\[48px\\]{min-height:48px}.eloq\\:min-h-\\[80px\\]{min-height:80px}.eloq\\:w-2\\.5{width:calc(var(--eloq-spacing) * 2.5)}.eloq\\:w-2\\/3{width:66.6667%}.eloq\\:w-3{width:calc(var(--eloq-spacing) * 3)}.eloq\\:w-4{width:calc(var(--eloq-spacing) * 4)}.eloq\\:w-5{width:calc(var(--eloq-spacing) * 5)}.eloq\\:w-6{width:calc(var(--eloq-spacing) * 6)}.eloq\\:w-8{width:calc(var(--eloq-spacing) * 8)}.eloq\\:w-10{width:calc(var(--eloq-spacing) * 10)}.eloq\\:w-12{width:calc(var(--eloq-spacing) * 12)}.eloq\\:w-14{width:calc(var(--eloq-spacing) * 14)}.eloq\\:w-16{width:calc(var(--eloq-spacing) * 16)}.eloq\\:w-24{width:calc(var(--eloq-spacing) * 24)}.eloq\\:w-32{width:calc(var(--eloq-spacing) * 32)}.eloq\\:w-48{width:calc(var(--eloq-spacing) * 48)}.eloq\\:w-\\[0\\.42em\\]{width:.42em}.eloq\\:w-\\[70\\%\\]{width:70%}.eloq\\:w-\\[320px\\]{width:320px}.eloq\\:w-\\[340px\\]{width:340px}.eloq\\:w-\\[348px\\]{width:348px}.eloq\\:w-\\[380px\\]{width:380px}.eloq\\:w-\\[420px\\]{width:420px}.eloq\\:w-full{width:100%}.eloq\\:max-w-\\[75\\%\\]{max-width:75%}.eloq\\:max-w-\\[88\\%\\]{max-width:88%}.eloq\\:max-w-full{max-width:100%}.eloq\\:max-w-xs{max-width:var(--eloq-container-xs)}.eloq\\:min-w-0{min-width:0}.eloq\\:min-w-6{min-width:calc(var(--eloq-spacing) * 6)}.eloq\\:min-w-min{min-width:min-content}.eloq\\:flex-1{flex:1}.eloq\\:flex-none{flex:none}.eloq\\:flex-shrink-0,.eloq\\:shrink-0{flex-shrink:0}.eloq\\:flex-grow{flex-grow:1}.eloq\\:origin-bottom-right{transform-origin:100% 100%}.eloq\\:translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.eloq\\:translate-x-8{--tw-translate-x:calc(var(--eloq-spacing) * 8);translate:var(--tw-translate-x) var(--tw-translate-y)}.eloq\\:-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.eloq\\:scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.eloq\\:scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.eloq\\:-scale-x-100{--tw-scale-x: -100% ;scale:var(--tw-scale-x) var(--tw-scale-y)}.eloq\\:scale-\\[0\\.05\\]{scale:.05}.eloq\\:transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.eloq\\:animate-message-in{animation:var(--eloq-animate-message-in)}.eloq\\:animate-panel-in{animation:var(--eloq-animate-panel-in)}.eloq\\:animate-panel-out{animation:var(--eloq-animate-panel-out)}.eloq\\:animate-pulse{animation:var(--eloq-animate-pulse)}.eloq\\:animate-regenerating{animation:var(--eloq-animate-regenerating)}.eloq\\:animate-text-in{animation:var(--eloq-animate-text-in)}.eloq\\:animate-thinking-shimmer{animation:var(--eloq-animate-thinking-shimmer)}.eloq\\:cursor-default{cursor:default}.eloq\\:cursor-grab{cursor:grab}.eloq\\:cursor-pointer{cursor:pointer}.eloq\\:touch-none{touch-action:none}.eloq\\:resize-none{resize:none}.eloq\\:list-decimal{list-style-type:decimal}.eloq\\:list-disc{list-style-type:disc}.eloq\\:flex-col{flex-direction:column}.eloq\\:flex-row{flex-direction:row}.eloq\\:flex-wrap{flex-wrap:wrap}.eloq\\:items-center{align-items:center}.eloq\\:items-end{align-items:flex-end}.eloq\\:items-start{align-items:flex-start}.eloq\\:justify-between{justify-content:space-between}.eloq\\:justify-center{justify-content:center}.eloq\\:justify-end{justify-content:flex-end}.eloq\\:justify-start{justify-content:flex-start}.eloq\\:gap-1{gap:var(--eloq-spacing)}.eloq\\:gap-1\\.5{gap:calc(var(--eloq-spacing) * 1.5)}.eloq\\:gap-2{gap:calc(var(--eloq-spacing) * 2)}.eloq\\:gap-3{gap:calc(var(--eloq-spacing) * 3)}.eloq\\:gap-\\[0\\.25em\\]{gap:.25em}:where(.eloq\\:space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block:0}:where(.eloq\\:space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--eloq-spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--eloq-spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(var(--eloq-spacing) * var(--tw-space-x-reverse));margin-inline-end:calc(var(--eloq-spacing) * calc(1 - var(--tw-space-x-reverse)))}:where(.eloq\\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--eloq-spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--eloq-spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}:where(.eloq\\:space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--eloq-spacing) * 3) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--eloq-spacing) * 3) * calc(1 - var(--tw-space-x-reverse)))}.eloq\\:self-end{align-self:flex-end}.eloq\\:self-stretch{align-self:stretch}.eloq\\:overflow-hidden{overflow:hidden}.eloq\\:overflow-x-auto{overflow-x:auto}.eloq\\:overscroll-contain{overscroll-behavior:contain}.eloq\\:rounded{border-radius:.25rem}.eloq\\:rounded-2xl{border-radius:var(--eloq-radius-2xl)}.eloq\\:rounded-3xl{border-radius:var(--eloq-radius-3xl)}.eloq\\:rounded-\\[inherit\\]{border-radius:inherit}.eloq\\:rounded-full{border-radius:3.40282e38px}.eloq\\:rounded-lg{border-radius:var(--eloq-radius-lg)}.eloq\\:rounded-md{border-radius:var(--eloq-radius-md)}.eloq\\:rounded-none{border-radius:0}.eloq\\:rounded-sm{border-radius:var(--eloq-radius-sm)}.eloq\\:rounded-xl{border-radius:var(--eloq-radius-xl)}.eloq\\:rounded-t-2xl{border-top-left-radius:var(--eloq-radius-2xl);border-top-right-radius:var(--eloq-radius-2xl)}.eloq\\:border{border-style:var(--tw-border-style);border-width:1px}.eloq\\:border-0{border-style:var(--tw-border-style);border-width:0}.eloq\\:border-2{border-style:var(--tw-border-style);border-width:2px}.eloq\\:border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.eloq\\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.eloq\\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.eloq\\:border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.eloq\\:border-dashed{--tw-border-style:dashed;border-style:dashed}.eloq\\:border-amber-400{border-color:var(--eloq-color-amber-400)}.eloq\\:border-blue-500{border-color:var(--eloq-color-blue-500)}.eloq\\:border-border{border-color:hsl(var(--border))}.eloq\\:border-current{border-color:currentColor}.eloq\\:border-green-500{border-color:var(--eloq-color-green-500)}.eloq\\:border-input{border-color:hsl(var(--input))}.eloq\\:border-red-500{border-color:var(--eloq-color-red-500)}.eloq\\:border-t-transparent{border-top-color:#0000}.eloq\\:border-l-transparent{border-left-color:#0000}.eloq\\:bg-\\[\\#0a0a0a\\]{background-color:#0a0a0a}.eloq\\:bg-\\[\\#000\\]{background-color:#000}.eloq\\:bg-\\[\\#fff\\]{background-color:#fff}.eloq\\:bg-amber-50{background-color:var(--eloq-color-amber-50)}.eloq\\:bg-background{background-color:hsl(var(--background))}.eloq\\:bg-black\\/20{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-black\\/20{background-color:color-mix(in oklab,var(--eloq-color-black) 20%,transparent)}}.eloq\\:bg-black\\/60{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-black\\/60{background-color:color-mix(in oklab,var(--eloq-color-black) 60%,transparent)}}.eloq\\:bg-blue-50{background-color:var(--eloq-color-blue-50)}.eloq\\:bg-border{background-color:hsl(var(--border))}.eloq\\:bg-card{background-color:hsl(var(--card))}.eloq\\:bg-cream{background-color:hsl(var(--cream))}.eloq\\:bg-gray-400{background-color:var(--eloq-color-gray-400)}.eloq\\:bg-gray-900{background-color:var(--eloq-color-gray-900)}.eloq\\:bg-green-50{background-color:var(--eloq-color-green-50)}.eloq\\:bg-muted{background-color:hsl(var(--muted))}.eloq\\:bg-muted-foreground{background-color:hsl(var(--muted-foreground))}.eloq\\:bg-primary{background-color:hsl(var(--primary))}.eloq\\:bg-red-50{background-color:var(--eloq-color-red-50)}.eloq\\:bg-white,.eloq\\:bg-white\\/20{background-color:var(--eloq-color-white)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-white\\/20{background-color:color-mix(in oklab,var(--eloq-color-white) 20%,transparent)}}.eloq\\:fill-none{fill:none}.eloq\\:fill-yellow-400{fill:var(--eloq-color-yellow-400)}.eloq\\:object-contain{object-fit:contain}.eloq\\:object-cover{object-fit:cover}.eloq\\:p-0{padding:0}.eloq\\:p-0\\.5{padding:calc(var(--eloq-spacing) * .5)}.eloq\\:p-1{padding:var(--eloq-spacing)}.eloq\\:p-2{padding:calc(var(--eloq-spacing) * 2)}.eloq\\:p-3{padding:calc(var(--eloq-spacing) * 3)}.eloq\\:p-4{padding:calc(var(--eloq-spacing) * 4)}.eloq\\:p-6{padding:calc(var(--eloq-spacing) * 6)}.eloq\\:p-\\[1px\\]{padding:1px}.eloq\\:p-\\[7px\\]{padding:7px}.eloq\\:px-0{padding-inline:0}.eloq\\:px-1\\.5{padding-inline:calc(var(--eloq-spacing) * 1.5)}.eloq\\:px-2{padding-inline:calc(var(--eloq-spacing) * 2)}.eloq\\:px-3{padding-inline:calc(var(--eloq-spacing) * 3)}.eloq\\:px-4{padding-inline:calc(var(--eloq-spacing) * 4)}.eloq\\:px-5{padding-inline:calc(var(--eloq-spacing) * 5)}.eloq\\:px-\\[12px\\]{padding-inline:12px}.eloq\\:px-\\[16px\\]{padding-inline:16px}.eloq\\:py-0\\.5{padding-block:calc(var(--eloq-spacing) * .5)}.eloq\\:py-1{padding-block:var(--eloq-spacing)}.eloq\\:py-1\\.5{padding-block:calc(var(--eloq-spacing) * 1.5)}.eloq\\:py-2{padding-block:calc(var(--eloq-spacing) * 2)}.eloq\\:py-3{padding-block:calc(var(--eloq-spacing) * 3)}.eloq\\:py-3\\.5{padding-block:calc(var(--eloq-spacing) * 3.5)}.eloq\\:py-\\[8px\\]{padding-block:8px}.eloq\\:py-\\[12px\\]{padding-block:12px}.eloq\\:pt-0{padding-top:0}.eloq\\:pt-2{padding-top:calc(var(--eloq-spacing) * 2)}.eloq\\:pt-4{padding-top:calc(var(--eloq-spacing) * 4)}.eloq\\:pt-5{padding-top:calc(var(--eloq-spacing) * 5)}.eloq\\:pt-6{padding-top:calc(var(--eloq-spacing) * 6)}.eloq\\:pt-10{padding-top:calc(var(--eloq-spacing) * 10)}.eloq\\:pt-24{padding-top:calc(var(--eloq-spacing) * 24)}.eloq\\:pr-2{padding-right:calc(var(--eloq-spacing) * 2)}.eloq\\:pr-4{padding-right:calc(var(--eloq-spacing) * 4)}.eloq\\:pr-12{padding-right:calc(var(--eloq-spacing) * 12)}.eloq\\:pb-2{padding-bottom:calc(var(--eloq-spacing) * 2)}.eloq\\:pb-4{padding-bottom:calc(var(--eloq-spacing) * 4)}.eloq\\:pb-10{padding-bottom:calc(var(--eloq-spacing) * 10)}.eloq\\:pb-14{padding-bottom:calc(var(--eloq-spacing) * 14)}.eloq\\:pl-3{padding-left:calc(var(--eloq-spacing) * 3)}.eloq\\:pl-4{padding-left:calc(var(--eloq-spacing) * 4)}.eloq\\:pl-11{padding-left:calc(var(--eloq-spacing) * 11)}.eloq\\:text-center{text-align:center}.eloq\\:text-left{text-align:left}.eloq\\:text-2xl{font-size:var(--eloq-text-2xl);line-height:var(--tw-leading,var(--eloq-text-2xl--line-height))}.eloq\\:text-base{font-size:var(--eloq-text-base);line-height:var(--tw-leading,var(--eloq-text-base--line-height))}.eloq\\:text-sm{font-size:var(--eloq-text-sm);line-height:var(--tw-leading,var(--eloq-text-sm--line-height))}.eloq\\:text-xs{font-size:var(--eloq-text-xs);line-height:var(--tw-leading,var(--eloq-text-xs--line-height))}.eloq\\:text-\\[10px\\]{font-size:10px}.eloq\\:leading-5{--tw-leading:calc(var(--eloq-spacing) * 5);line-height:calc(var(--eloq-spacing) * 5)}.eloq\\:leading-none{--tw-leading:1;line-height:1}.eloq\\:leading-relaxed{--tw-leading:var(--eloq-leading-relaxed);line-height:var(--eloq-leading-relaxed)}.eloq\\:font-medium{--tw-font-weight:var(--eloq-font-weight-medium);font-weight:var(--eloq-font-weight-medium)}.eloq\\:font-semibold{--tw-font-weight:var(--eloq-font-weight-semibold);font-weight:var(--eloq-font-weight-semibold)}.eloq\\:tracking-tight{--tw-tracking:var(--eloq-tracking-tight);letter-spacing:var(--eloq-tracking-tight)}.eloq\\:whitespace-nowrap{white-space:nowrap}.eloq\\:text-\\[\\#000\\]{color:#000}.eloq\\:text-\\[\\#fff\\]{color:#fff}.eloq\\:text-amber-500{color:var(--eloq-color-amber-500)}.eloq\\:text-amber-800{color:var(--eloq-color-amber-800)}.eloq\\:text-blue-500{color:var(--eloq-color-blue-500)}.eloq\\:text-blue-800{color:var(--eloq-color-blue-800)}.eloq\\:text-card-foreground{color:hsl(var(--card-foreground))}.eloq\\:text-destructive{color:hsl(var(--destructive))}.eloq\\:text-foreground{color:hsl(var(--foreground))}.eloq\\:text-gray-300{color:var(--eloq-color-gray-300)}.eloq\\:text-gray-400{color:var(--eloq-color-gray-400)}.eloq\\:text-gray-500{color:var(--eloq-color-gray-500)}.eloq\\:text-green-500{color:var(--eloq-color-green-500)}.eloq\\:text-green-800{color:var(--eloq-color-green-800)}.eloq\\:text-muted{color:hsl(var(--muted))}.eloq\\:text-muted-foreground{color:hsl(var(--muted-foreground))}.eloq\\:text-primary{color:hsl(var(--primary))}.eloq\\:text-primary-foreground{color:hsl(var(--primary-foreground))}.eloq\\:text-red-500{color:var(--eloq-color-red-500)}.eloq\\:text-red-800{color:var(--eloq-color-red-800)}.eloq\\:text-white{color:var(--eloq-color-white)}.eloq\\:text-yellow-400{color:var(--eloq-color-yellow-400)}.eloq\\:italic{font-style:italic}.eloq\\:underline{text-decoration-line:underline}.eloq\\:opacity-0{opacity:0}.eloq\\:opacity-50{opacity:.5}.eloq\\:opacity-70{opacity:.7}.eloq\\:opacity-75{opacity:.75}.eloq\\:opacity-100{opacity:1}.eloq\\:shadow-\\[0_-8px_24px_rgba\\(0\\,0\\,0\\,0\\.08\\)\\]{--tw-shadow:0 -8px 24px var(--tw-shadow-color,#00000014);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:shadow-\\[0_0_4px_0_rgba\\(0\\,0\\,0\\,0\\.20\\)\\]{--tw-shadow:0 0 4px 0 var(--tw-shadow-color,#0003);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:shadow-\\[0_3px_4px_-2px_rgba\\(0\\,0\\,0\\,0\\.04\\)\\]{--tw-shadow:0 3px 4px -2px var(--tw-shadow-color,#0000000a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.eloq\\:outline-2{outline-style:var(--tw-outline-style);outline-width:2px}.eloq\\:outline-offset-2{outline-offset:2px}.eloq\\:outline-transparent{outline-color:#0000}.eloq\\:drop-shadow-lg{--tw-drop-shadow-size:drop-shadow(0 4px 4px var(--tw-drop-shadow-color,#00000026));--tw-drop-shadow:drop-shadow(var(--eloq-drop-shadow-lg));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,)}.eloq\\:transition-\\[outline-color\\]{transition-property:outline-color;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-\\[visibility\\]{transition-property:visibility;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-\\[width\\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:delay-100{transition-delay:.1s}.eloq\\:duration-0{--tw-duration:0s;transition-duration:0s}.eloq\\:duration-150{--tw-duration:.15s;transition-duration:.15s}.eloq\\:duration-200{--tw-duration:.2s;transition-duration:.2s}.eloq\\:duration-300{--tw-duration:.3s;transition-duration:.3s}.eloq\\:duration-500{--tw-duration:.5s;transition-duration:.5s}.eloq\\:ease-out{--tw-ease:var(--eloq-ease-out);transition-timing-function:var(--eloq-ease-out)}.eloq\\:outline-none{--tw-outline-style:none;outline-style:none}.eloq\\:select-none{-webkit-user-select:none;user-select:none}.eloq\\:group-focus-visible\\:block:is(:where(.eloq\\:group):focus-visible *){display:block}.eloq\\:placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.eloq\\:last\\:mb-0:last-child{margin-bottom:0}@media(hover:hover){.eloq\\:hover\\:bg-black\\/5:hover{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:hover\\:bg-black\\/5:hover{background-color:color-mix(in oklab,var(--eloq-color-black) 5%,transparent)}}.eloq\\:hover\\:bg-black\\/80:hover{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:hover\\:bg-black\\/80:hover{background-color:color-mix(in oklab,var(--eloq-color-black) 80%,transparent)}}.eloq\\:hover\\:bg-muted:hover{background-color:hsl(var(--muted))}.eloq\\:hover\\:bg-red-500:hover{background-color:var(--eloq-color-red-500)}.eloq\\:hover\\:text-foreground:hover{color:hsl(var(--foreground))}.eloq\\:hover\\:text-gray-600:hover{color:var(--eloq-color-gray-600)}.eloq\\:hover\\:text-primary:hover{color:hsl(var(--primary))}.eloq\\:hover\\:opacity-80:hover{opacity:.8}.eloq\\:hover\\:opacity-90:hover{opacity:.9}.eloq\\:hover\\:opacity-100:hover{opacity:1}.eloq\\:hover\\:drop-shadow-xl:hover{--tw-drop-shadow-size:drop-shadow(0 9px 7px var(--tw-drop-shadow-color,#0000001a));--tw-drop-shadow:drop-shadow(var(--eloq-drop-shadow-xl));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,)}}.eloq\\:focus-visible\\:opacity-100:focus-visible{opacity:1}.eloq\\:focus-visible\\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:focus-visible\\:ring-muted:focus-visible{--tw-ring-color:hsl(var(--muted))}.eloq\\:focus-visible\\:ring-primary:focus-visible{--tw-ring-color:hsl(var(--primary))}.eloq\\:focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.eloq\\:focus-visible\\:outline-hidden:focus-visible{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.eloq\\:focus-visible\\:outline-hidden:focus-visible{outline-offset:2px;outline:2px solid #0000}}.eloq\\:focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.eloq\\:focus-visible\\:-outline-offset-4:focus-visible{outline-offset:-4px}.eloq\\:focus-visible\\:outline-current:focus-visible{outline-color:currentColor}.eloq\\:focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.eloq\\:focus-visible\\:outline-solid:focus-visible{--tw-outline-style:solid;outline-style:solid}.eloq\\:active\\:cursor-grabbing:active{cursor:grabbing}.eloq\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.eloq\\:disabled\\:opacity-50:disabled{opacity:.5}.eloq\\:has-focus-visible\\:outline-2:has(:focus-visible){outline-style:var(--tw-outline-style);outline-width:2px}.eloq\\:has-focus-visible\\:outline-offset-1:has(:focus-visible){outline-offset:1px}.eloq\\:has-focus-visible\\:outline-ring:has(:focus-visible){outline-color:hsl(var(--ring))}@media(prefers-reduced-motion:no-preference){.eloq\\:motion-safe\\:translate-x-8{--tw-translate-x:calc(var(--eloq-spacing) * 8);translate:var(--tw-translate-x) var(--tw-translate-y)}.eloq\\:motion-safe\\:scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.eloq\\:motion-safe\\:animate-slide-up-in{animation:var(--eloq-animate-slide-up-in)}.eloq\\:motion-safe\\:animate-thinking-dot{animation:var(--eloq-animate-thinking-dot)}}@media(prefers-reduced-motion:reduce){.eloq\\:motion-reduce\\:animate-message-fade-in{animation:var(--eloq-animate-message-fade-in)}.eloq\\:motion-reduce\\:animate-none{animation:none}.eloq\\:motion-reduce\\:animate-panel-fade-in{animation:var(--eloq-animate-panel-fade-in)}.eloq\\:motion-reduce\\:animate-panel-fade-out{animation:var(--eloq-animate-panel-fade-out)}.eloq\\:motion-reduce\\:opacity-70{opacity:.7}}@media(min-width:40rem){.eloq\\:sm\\:text-sm{font-size:var(--eloq-text-sm);line-height:var(--tw-leading,var(--eloq-text-sm--line-height))}}@media(min-width:48rem){.eloq\\:md\\:text-sm{font-size:var(--eloq-text-sm);line-height:var(--tw-leading,var(--eloq-text-sm--line-height))}}.eloq\\:dark\\:border:is(.dark *){border-style:var(--tw-border-style);border-width:1px}.eloq\\:dark\\:border-b:is(.dark *){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.eloq\\:dark\\:border-border:is(.dark *){border-color:hsl(var(--border))}.eloq\\:dark\\:bg-amber-400\\/10:is(.dark *){background-color:var(--eloq-color-amber-400)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-amber-400\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-amber-400) 10%,transparent)}}.eloq\\:dark\\:bg-blue-500\\/10:is(.dark *){background-color:var(--eloq-color-blue-500)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-blue-500\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-blue-500) 10%,transparent)}}.eloq\\:dark\\:bg-card:is(.dark *){background-color:hsl(var(--card))}.eloq\\:dark\\:bg-gray-100:is(.dark *){background-color:var(--eloq-color-gray-100)}.eloq\\:dark\\:bg-gray-200:is(.dark *){background-color:var(--eloq-color-gray-200)}.eloq\\:dark\\:bg-green-500\\/10:is(.dark *){background-color:var(--eloq-color-green-500)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-green-500\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-green-500) 10%,transparent)}}.eloq\\:dark\\:bg-muted:is(.dark *){background-color:hsl(var(--muted))}.eloq\\:dark\\:bg-red-500\\/10:is(.dark *){background-color:var(--eloq-color-red-500)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-red-500\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-red-500) 10%,transparent)}}.eloq\\:dark\\:text-amber-200:is(.dark *){color:var(--eloq-color-amber-200)}.eloq\\:dark\\:text-amber-400:is(.dark *){color:var(--eloq-color-amber-400)}.eloq\\:dark\\:text-blue-200:is(.dark *){color:var(--eloq-color-blue-200)}.eloq\\:dark\\:text-blue-400:is(.dark *){color:var(--eloq-color-blue-400)}.eloq\\:dark\\:text-gray-500:is(.dark *){color:var(--eloq-color-gray-500)}.eloq\\:dark\\:text-gray-900:is(.dark *){color:var(--eloq-color-gray-900)}.eloq\\:dark\\:text-green-200:is(.dark *){color:var(--eloq-color-green-200)}.eloq\\:dark\\:text-green-400:is(.dark *){color:var(--eloq-color-green-400)}.eloq\\:dark\\:text-muted-foreground:is(.dark *),.eloq\\:dark\\:text-muted-foreground\\/50:is(.dark *){color:hsl(var(--muted-foreground))}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:text-muted-foreground\\/50:is(.dark *){color:color-mix(in oklab,hsl(var(--muted-foreground)) 50%,transparent)}}.eloq\\:dark\\:text-red-200:is(.dark *){color:var(--eloq-color-red-200)}.eloq\\:dark\\:text-red-400:is(.dark *){color:var(--eloq-color-red-400)}.eloq\\:dark\\:shadow-none:is(.dark *){--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media(hover:hover){.eloq\\:dark\\:hover\\:bg-white\\/10:is(.dark *):hover{background-color:var(--eloq-color-white)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:hover\\:bg-white\\/10:is(.dark *):hover{background-color:color-mix(in oklab,var(--eloq-color-white) 10%,transparent)}}.eloq\\:dark\\:hover\\:text-gray-300:is(.dark *):hover{color:var(--eloq-color-gray-300)}.eloq\\:dark\\:hover\\:text-primary:is(.dark *):hover{color:hsl(var(--primary))}}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}}body{background-color:#0000}.eloquent-chat{font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}.collapse{visibility:unset!important}.eloq-wrap-anywhere{overflow-wrap:anywhere}.eloq-thin-scrollbar{scrollbar-width:thin;scrollbar-color:hsl(var(--border)) transparent}.eloq-thin-scrollbar::-webkit-scrollbar{width:8px;height:8px}.eloq-thin-scrollbar::-webkit-scrollbar-thumb{background-color:hsl(var(--border));border-radius:9999px}.eloq-thin-scrollbar::-webkit-scrollbar-track{background-color:#0000}.eloq-test-mode-stripe{background:repeating-linear-gradient(-45deg,#f6e05e,#f6e05e 10px,#000 10px 20px)}.eloq-thinking-shimmer{--eloq-thinking-base:#9ca3af;--eloq-thinking-highlight:#4b5563;background:linear-gradient(90deg,var(--eloq-thinking-base) 0%,var(--eloq-thinking-base) 35%,var(--eloq-thinking-highlight) 50%,var(--eloq-thinking-base) 65%,var(--eloq-thinking-base) 100%);color:#0000;background-size:200% 100%;-webkit-background-clip:text;background-clip:text}.dark .eloq-thinking-shimmer{--eloq-thinking-base:#6b7280;--eloq-thinking-highlight:#e5e7eb}@media(prefers-reduced-motion:reduce){.eloq-thinking-shimmer{color:var(--eloq-thinking-base);background:0 0}}.eloq-regenerating-text{opacity:.4;transition:opacity .25s ease-out}.eloq-regenerating-sweep{border-radius:inherit;pointer-events:none;background:linear-gradient(100deg,#0000 30%,#ffffff8c,#0000 70%) 0 0/200% 100%;position:absolute;inset:0}.dark .eloq-regenerating-sweep{background-image:linear-gradient(100deg,#0000 30%,#ffffff1f,#0000 70%)}@media(prefers-reduced-motion:reduce){.eloq-regenerating-sweep{display:none}}@property --eloq-aura-angle{syntax:"<angle>";inherits:false;initial-value:0deg}.eloq-aura{--eloq-aura-strong:#9e9e9e;--eloq-aura-soft:#d1d1d1;background:conic-gradient(from var(--eloq-aura-angle),var(--eloq-aura-strong),var(--eloq-aura-soft),var(--eloq-aura-strong));border-radius:9999px;padding:2px;animation:2.6s linear infinite eloq-aura-spin;position:relative}@keyframes eloq-aura-spin{to{--eloq-aura-angle:360deg}}.eloq-aura-shine{border-radius:inherit;pointer-events:none;position:absolute;inset:0;overflow:hidden}.eloq-aura-shine:after{content:"";background:linear-gradient(90deg,#0000,#fffc,#0000);width:18%;position:absolute;top:-20%;bottom:-20%;left:0;transform:translate(-200%)skew(-20deg)}.eloq-aura-shine--active:after{animation:1.1s ease-in-out both eloq-aura-shine-sweep}@keyframes eloq-aura-shine-sweep{0%{transform:translate(-200%)skew(-20deg)}to{transform:translate(700%)skew(-20deg)}}@media(prefers-reduced-motion:reduce){.eloq-aura{animation:none}.eloq-aura-shine:after,.eloq-aura-shine--active:after{opacity:0;animation:none}}@keyframes panel-in{0%{opacity:0;transform:scale(.05)}to{opacity:1;transform:scale(1)}}@keyframes thinking-dot{0%,60%,to{opacity:.45;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}@keyframes regenerating-sweep{0%{background-position:150% 0}to{background-position:-50% 0}}@keyframes thinking-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes panel-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.05)}}@keyframes message-in{0%{opacity:0;transform:translateY(.5rem)}to{opacity:1;transform:translateY(0)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-out{0%{opacity:1}to{opacity:0}}@keyframes slide-up-in{0%{transform:translateY(100%)}to{transform:translateY(0)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}', oo = "@media(prefers-reduced-motion:no-preference){.eloquentai-chat-launcher{transition:transform .2s ease-in-out}.eloquentai-chat-launcher:hover{transform:scale(1.1)}}", ro = [
12
+ const Je = '/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--eloq-aura-angle:0deg}}}@layer theme{:root,:host{--eloq-font-sans:system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--eloq-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--eloq-color-red-50:oklch(97.1% .013 17.38);--eloq-color-red-200:oklch(88.5% .062 18.334);--eloq-color-red-400:oklch(70.4% .191 22.216);--eloq-color-red-500:oklch(63.7% .237 25.331);--eloq-color-red-800:oklch(44.4% .177 26.899);--eloq-color-amber-50:oklch(98.7% .022 95.277);--eloq-color-amber-200:oklch(92.4% .12 95.746);--eloq-color-amber-400:oklch(82.8% .189 84.429);--eloq-color-amber-500:oklch(76.9% .188 70.08);--eloq-color-amber-800:oklch(47.3% .137 46.201);--eloq-color-yellow-400:oklch(85.2% .199 91.936);--eloq-color-green-50:oklch(98.2% .018 155.826);--eloq-color-green-200:oklch(92.5% .084 155.995);--eloq-color-green-400:oklch(79.2% .209 151.711);--eloq-color-green-500:oklch(72.3% .219 149.579);--eloq-color-green-800:oklch(44.8% .119 151.328);--eloq-color-blue-50:oklch(97% .014 254.604);--eloq-color-blue-200:oklch(88.2% .059 254.128);--eloq-color-blue-400:oklch(70.7% .165 254.624);--eloq-color-blue-500:oklch(62.3% .214 259.815);--eloq-color-blue-800:oklch(42.4% .199 265.638);--eloq-color-gray-100:oklch(96.7% .003 264.542);--eloq-color-gray-200:oklch(92.8% .006 264.531);--eloq-color-gray-300:oklch(87.2% .01 258.338);--eloq-color-gray-400:oklch(70.7% .022 261.325);--eloq-color-gray-500:oklch(55.1% .027 264.364);--eloq-color-gray-600:oklch(44.6% .03 256.802);--eloq-color-gray-900:oklch(21% .034 264.665);--eloq-color-black:#000;--eloq-color-white:#fff;--eloq-spacing:.25rem;--eloq-container-xs:20rem;--eloq-text-xs:.75rem;--eloq-text-xs--line-height:calc(1 / .75);--eloq-text-sm:.875rem;--eloq-text-sm--line-height:calc(1.25 / .875);--eloq-text-base:1rem;--eloq-text-base--line-height: 1.5 ;--eloq-text-2xl:1.5rem;--eloq-text-2xl--line-height:calc(2 / 1.5);--eloq-font-weight-medium:500;--eloq-font-weight-semibold:600;--eloq-tracking-tight:-.025em;--eloq-leading-relaxed:1.625;--eloq-radius-sm:calc(var(--radius) - 4px);--eloq-radius-md:calc(var(--radius) - 2px);--eloq-radius-lg:var(--radius);--eloq-radius-xl:.75rem;--eloq-radius-2xl:1rem;--eloq-radius-3xl:1.5rem;--eloq-drop-shadow-lg:0 4px 4px #00000026;--eloq-drop-shadow-xl:0 9px 7px #0000001a;--eloq-ease-out:cubic-bezier(0, 0, .2, 1);--eloq-animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--eloq-default-transition-duration:.15s;--eloq-default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--eloq-default-font-family:var(--eloq-font-sans);--eloq-default-mono-font-family:var(--eloq-font-mono);--eloq-animate-panel-in:panel-in .35s cubic-bezier(.16, 1, .3, 1) both;--eloq-animate-panel-out:panel-out .25s cubic-bezier(.4, 0, 1, 1) both;--eloq-animate-panel-fade-in:fade-in .35s ease-out both;--eloq-animate-panel-fade-out:fade-out .25s ease-in both;--eloq-animate-message-fade-in:fade-in .3s ease-out both;--eloq-animate-thinking-dot:thinking-dot 1.2s ease-in-out infinite;--eloq-animate-thinking-shimmer:thinking-shimmer 1.8s linear infinite;--eloq-animate-regenerating:regenerating-sweep 1.2s linear infinite;--eloq-animate-text-in:fade-in .35s ease-out both;--eloq-animate-message-in:message-in .3s ease-out both;--eloq-animate-slide-up-in:slide-up-in .3s ease-out both}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--eloq-default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--eloq-default-font-feature-settings,normal);font-variation-settings:var(--eloq-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--eloq-default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--eloq-default-mono-font-feature-settings,normal);font-variation-settings:var(--eloq-default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:root{--background:0 0% 100%;--foreground:0 0% 3.9%;--card:0 0% 100%;--card-foreground:0 0% 3.9%;--popover:0 0% 100%;--popover-foreground:0 0% 3.9%;--primary:267 56% 46%;--primary-foreground:0 0% 98%;--secondary:0 0% 96.1%;--secondary-foreground:0 0% 9%;--muted:0 0% 96.1%;--muted-foreground:0 0% 45.1%;--accent:0 0% 96.1%;--accent-foreground:0 0% 9%;--destructive:0 84.2% 60.2%;--destructive-foreground:0 0% 98%;--border:0 0% 89.8%;--input:0 0% 89.8%;--ring:0 0% 3.9%;--cream:37.5 44% 96.5%;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%;--radius:.5rem}.dark{--background:262 50% 10%;--foreground:262 5% 90%;--card:262 50% 10%;--card-foreground:262 5% 90%;--popover:262 50% 5%;--popover-foreground:262 5% 90%;--primary:262 62% 70%;--primary-foreground:0 0% 100%;--primary-dark:262 62% 60%;--secondary:262 30% 30%;--secondary-foreground:0 0% 100%;--secondary-dark:262 30% 20%;--secondary-light:262 30% 40%;--tertiary:267 56% 46%;--tertiary-foreground:0 0% 100%;--tertiary-dark:267 38% 25%;--tertiary-light:263 100% 85%;--muted:224 30% 25%;--muted-foreground:262 5% 90%;--accent:224 30% 25%;--accent-foreground:262 5% 100%;--accent-dark:224 30% 15%;--destructive:0 100% 30%;--destructive-foreground:262 5% 90%;--border:0 0% 30%;--input:262 30% 25%;--ring:262 62% 71%;--cream:257 28% 20%;--radius:.5rem;--sidebar-background:var(--background);--sidebar-foreground:var(--foreground);--sidebar-primary:var(--primary);--sidebar-primary-foreground:var(--primary-foreground);--sidebar-accent:var(--accent);--sidebar-accent-foreground:var(--accent-foreground);--sidebar-border:var(--border);--sidebar-ring:var(--ring)}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}}@layer components;@layer utilities{.eloq\\:pointer-events-none{pointer-events:none}.eloq\\:invisible{visibility:hidden}.eloq\\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.eloq\\:absolute{position:absolute}.eloq\\:relative{position:relative}.eloq\\:inset-0{inset:0}.eloq\\:inset-0\\.5{inset:calc(var(--eloq-spacing) * .5)}.eloq\\:inset-x-0{inset-inline:0}.eloq\\:end-full{inset-inline-end:100%}.eloq\\:top-0{top:0}.eloq\\:top-0\\.5{top:calc(var(--eloq-spacing) * .5)}.eloq\\:top-1\\/2{top:50%}.eloq\\:top-\\[2px\\]{top:2px}.eloq\\:-right-\\[9px\\]{right:-9px}.eloq\\:right-0\\.5{right:calc(var(--eloq-spacing) * .5)}.eloq\\:right-2{right:calc(var(--eloq-spacing) * 2)}.eloq\\:right-16{right:calc(var(--eloq-spacing) * 16)}.eloq\\:right-\\[2px\\]{right:2px}.eloq\\:bottom-0{bottom:0}.eloq\\:bottom-1{bottom:var(--eloq-spacing)}.eloq\\:bottom-2{bottom:calc(var(--eloq-spacing) * 2)}.eloq\\:bottom-10{bottom:calc(var(--eloq-spacing) * 10)}.eloq\\:left-0{left:0}.eloq\\:left-2{left:calc(var(--eloq-spacing) * 2)}.eloq\\:left-\\[calc\\(50\\%-0\\.75rem\\)\\]{left:calc(50% - .75rem)}.eloq\\:z-10{z-index:10}.eloq\\:z-20{z-index:20}.eloq\\:z-30{z-index:30}.eloq\\:m-0{margin:0}.eloq\\:m-auto{margin:auto}.eloq\\:mx-1{margin-inline:var(--eloq-spacing)}.eloq\\:mx-auto{margin-inline:auto}.eloq\\:my-2{margin-block:calc(var(--eloq-spacing) * 2)}.eloq\\:my-4{margin-block:calc(var(--eloq-spacing) * 4)}.eloq\\:me-1{margin-inline-end:var(--eloq-spacing)}.eloq\\:-mt-2{margin-top:calc(var(--eloq-spacing) * -2)}.eloq\\:-mt-6{margin-top:calc(var(--eloq-spacing) * -6)}.eloq\\:-mt-20{margin-top:calc(var(--eloq-spacing) * -20)}.eloq\\:mt-1{margin-top:var(--eloq-spacing)}.eloq\\:mt-2{margin-top:calc(var(--eloq-spacing) * 2)}.eloq\\:mt-10{margin-top:calc(var(--eloq-spacing) * 10)}.eloq\\:mr-1{margin-right:var(--eloq-spacing)}.eloq\\:mr-\\[2px\\]{margin-right:2px}.eloq\\:mb-1{margin-bottom:var(--eloq-spacing)}.eloq\\:mb-3{margin-bottom:calc(var(--eloq-spacing) * 3)}.eloq\\:mb-4{margin-bottom:calc(var(--eloq-spacing) * 4)}.eloq\\:mb-10{margin-bottom:calc(var(--eloq-spacing) * 10)}.eloq\\:ml-0{margin-left:0}.eloq\\:ml-1{margin-left:var(--eloq-spacing)}.eloq\\:ml-5{margin-left:calc(var(--eloq-spacing) * 5)}.eloq\\:box-content{box-sizing:content-box}.eloq\\:block{display:block}.eloq\\:flex{display:flex}.eloq\\:hidden{display:none}.eloq\\:inline-flex{display:inline-flex}.eloq\\:field-sizing-content{field-sizing:content}.eloq\\:aspect-square{aspect-ratio:1}.eloq\\:h-1{height:var(--eloq-spacing)}.eloq\\:h-2\\.5{height:calc(var(--eloq-spacing) * 2.5)}.eloq\\:h-3{height:calc(var(--eloq-spacing) * 3)}.eloq\\:h-4{height:calc(var(--eloq-spacing) * 4)}.eloq\\:h-5{height:calc(var(--eloq-spacing) * 5)}.eloq\\:h-6{height:calc(var(--eloq-spacing) * 6)}.eloq\\:h-8{height:calc(var(--eloq-spacing) * 8)}.eloq\\:h-10{height:calc(var(--eloq-spacing) * 10)}.eloq\\:h-12{height:calc(var(--eloq-spacing) * 12)}.eloq\\:h-14{height:calc(var(--eloq-spacing) * 14)}.eloq\\:h-16{height:calc(var(--eloq-spacing) * 16)}.eloq\\:h-\\[0\\.42em\\]{height:.42em}.eloq\\:h-\\[160px\\]{height:160px}.eloq\\:h-\\[220px\\]{height:220px}.eloq\\:h-\\[560px\\]{height:560px}.eloq\\:h-\\[600px\\]{height:600px}.eloq\\:h-full{height:100%}.eloq\\:max-h-\\[132px\\]{max-height:132px}.eloq\\:min-h-6{min-height:calc(var(--eloq-spacing) * 6)}.eloq\\:min-h-\\[48px\\]{min-height:48px}.eloq\\:min-h-\\[80px\\]{min-height:80px}.eloq\\:w-2\\.5{width:calc(var(--eloq-spacing) * 2.5)}.eloq\\:w-2\\/3{width:66.6667%}.eloq\\:w-3{width:calc(var(--eloq-spacing) * 3)}.eloq\\:w-4{width:calc(var(--eloq-spacing) * 4)}.eloq\\:w-5{width:calc(var(--eloq-spacing) * 5)}.eloq\\:w-6{width:calc(var(--eloq-spacing) * 6)}.eloq\\:w-8{width:calc(var(--eloq-spacing) * 8)}.eloq\\:w-10{width:calc(var(--eloq-spacing) * 10)}.eloq\\:w-12{width:calc(var(--eloq-spacing) * 12)}.eloq\\:w-14{width:calc(var(--eloq-spacing) * 14)}.eloq\\:w-16{width:calc(var(--eloq-spacing) * 16)}.eloq\\:w-24{width:calc(var(--eloq-spacing) * 24)}.eloq\\:w-32{width:calc(var(--eloq-spacing) * 32)}.eloq\\:w-48{width:calc(var(--eloq-spacing) * 48)}.eloq\\:w-\\[0\\.42em\\]{width:.42em}.eloq\\:w-\\[70\\%\\]{width:70%}.eloq\\:w-\\[320px\\]{width:320px}.eloq\\:w-\\[340px\\]{width:340px}.eloq\\:w-\\[348px\\]{width:348px}.eloq\\:w-\\[380px\\]{width:380px}.eloq\\:w-\\[420px\\]{width:420px}.eloq\\:w-full{width:100%}.eloq\\:max-w-\\[75\\%\\]{max-width:75%}.eloq\\:max-w-\\[88\\%\\]{max-width:88%}.eloq\\:max-w-full{max-width:100%}.eloq\\:max-w-xs{max-width:var(--eloq-container-xs)}.eloq\\:min-w-0{min-width:0}.eloq\\:min-w-6{min-width:calc(var(--eloq-spacing) * 6)}.eloq\\:min-w-min{min-width:min-content}.eloq\\:flex-1{flex:1}.eloq\\:flex-none{flex:none}.eloq\\:flex-shrink-0,.eloq\\:shrink-0{flex-shrink:0}.eloq\\:flex-grow{flex-grow:1}.eloq\\:origin-bottom-right{transform-origin:100% 100%}.eloq\\:translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.eloq\\:translate-x-8{--tw-translate-x:calc(var(--eloq-spacing) * 8);translate:var(--tw-translate-x) var(--tw-translate-y)}.eloq\\:-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.eloq\\:scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.eloq\\:scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.eloq\\:-scale-x-100{--tw-scale-x: -100% ;scale:var(--tw-scale-x) var(--tw-scale-y)}.eloq\\:scale-\\[0\\.05\\]{scale:.05}.eloq\\:transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.eloq\\:animate-message-in{animation:var(--eloq-animate-message-in)}.eloq\\:animate-panel-in{animation:var(--eloq-animate-panel-in)}.eloq\\:animate-panel-out{animation:var(--eloq-animate-panel-out)}.eloq\\:animate-pulse{animation:var(--eloq-animate-pulse)}.eloq\\:animate-regenerating{animation:var(--eloq-animate-regenerating)}.eloq\\:animate-text-in{animation:var(--eloq-animate-text-in)}.eloq\\:animate-thinking-shimmer{animation:var(--eloq-animate-thinking-shimmer)}.eloq\\:cursor-default{cursor:default}.eloq\\:cursor-grab{cursor:grab}.eloq\\:cursor-pointer{cursor:pointer}.eloq\\:touch-none{touch-action:none}.eloq\\:resize-none{resize:none}.eloq\\:list-decimal{list-style-type:decimal}.eloq\\:list-disc{list-style-type:disc}.eloq\\:flex-col{flex-direction:column}.eloq\\:flex-row{flex-direction:row}.eloq\\:flex-wrap{flex-wrap:wrap}.eloq\\:items-center{align-items:center}.eloq\\:items-end{align-items:flex-end}.eloq\\:items-start{align-items:flex-start}.eloq\\:justify-between{justify-content:space-between}.eloq\\:justify-center{justify-content:center}.eloq\\:justify-end{justify-content:flex-end}.eloq\\:justify-start{justify-content:flex-start}.eloq\\:gap-1{gap:var(--eloq-spacing)}.eloq\\:gap-1\\.5{gap:calc(var(--eloq-spacing) * 1.5)}.eloq\\:gap-2{gap:calc(var(--eloq-spacing) * 2)}.eloq\\:gap-3{gap:calc(var(--eloq-spacing) * 3)}.eloq\\:gap-\\[0\\.25em\\]{gap:.25em}:where(.eloq\\:space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block:0}:where(.eloq\\:space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--eloq-spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--eloq-spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--eloq-spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--eloq-spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.eloq\\:space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(var(--eloq-spacing) * var(--tw-space-x-reverse));margin-inline-end:calc(var(--eloq-spacing) * calc(1 - var(--tw-space-x-reverse)))}:where(.eloq\\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--eloq-spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--eloq-spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}:where(.eloq\\:space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--eloq-spacing) * 3) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--eloq-spacing) * 3) * calc(1 - var(--tw-space-x-reverse)))}.eloq\\:self-end{align-self:flex-end}.eloq\\:self-stretch{align-self:stretch}.eloq\\:overflow-hidden{overflow:hidden}.eloq\\:overflow-x-auto{overflow-x:auto}.eloq\\:overscroll-contain{overscroll-behavior:contain}.eloq\\:rounded{border-radius:.25rem}.eloq\\:rounded-2xl{border-radius:var(--eloq-radius-2xl)}.eloq\\:rounded-3xl{border-radius:var(--eloq-radius-3xl)}.eloq\\:rounded-\\[inherit\\]{border-radius:inherit}.eloq\\:rounded-full{border-radius:3.40282e38px}.eloq\\:rounded-lg{border-radius:var(--eloq-radius-lg)}.eloq\\:rounded-md{border-radius:var(--eloq-radius-md)}.eloq\\:rounded-none{border-radius:0}.eloq\\:rounded-sm{border-radius:var(--eloq-radius-sm)}.eloq\\:rounded-xl{border-radius:var(--eloq-radius-xl)}.eloq\\:rounded-t-2xl{border-top-left-radius:var(--eloq-radius-2xl);border-top-right-radius:var(--eloq-radius-2xl)}.eloq\\:border{border-style:var(--tw-border-style);border-width:1px}.eloq\\:border-0{border-style:var(--tw-border-style);border-width:0}.eloq\\:border-2{border-style:var(--tw-border-style);border-width:2px}.eloq\\:border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.eloq\\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.eloq\\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.eloq\\:border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.eloq\\:border-dashed{--tw-border-style:dashed;border-style:dashed}.eloq\\:border-amber-400{border-color:var(--eloq-color-amber-400)}.eloq\\:border-blue-500{border-color:var(--eloq-color-blue-500)}.eloq\\:border-border{border-color:hsl(var(--border))}.eloq\\:border-current{border-color:currentColor}.eloq\\:border-green-500{border-color:var(--eloq-color-green-500)}.eloq\\:border-input{border-color:hsl(var(--input))}.eloq\\:border-red-500{border-color:var(--eloq-color-red-500)}.eloq\\:border-t-transparent{border-top-color:#0000}.eloq\\:border-l-transparent{border-left-color:#0000}.eloq\\:bg-\\[\\#0a0a0a\\]{background-color:#0a0a0a}.eloq\\:bg-\\[\\#000\\]{background-color:#000}.eloq\\:bg-\\[\\#fff\\]{background-color:#fff}.eloq\\:bg-amber-50{background-color:var(--eloq-color-amber-50)}.eloq\\:bg-background{background-color:hsl(var(--background))}.eloq\\:bg-black\\/20{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-black\\/20{background-color:color-mix(in oklab,var(--eloq-color-black) 20%,transparent)}}.eloq\\:bg-black\\/60{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-black\\/60{background-color:color-mix(in oklab,var(--eloq-color-black) 60%,transparent)}}.eloq\\:bg-blue-50{background-color:var(--eloq-color-blue-50)}.eloq\\:bg-border{background-color:hsl(var(--border))}.eloq\\:bg-card{background-color:hsl(var(--card))}.eloq\\:bg-cream{background-color:hsl(var(--cream))}.eloq\\:bg-gray-400{background-color:var(--eloq-color-gray-400)}.eloq\\:bg-gray-900{background-color:var(--eloq-color-gray-900)}.eloq\\:bg-green-50{background-color:var(--eloq-color-green-50)}.eloq\\:bg-muted{background-color:hsl(var(--muted))}.eloq\\:bg-muted-foreground{background-color:hsl(var(--muted-foreground))}.eloq\\:bg-primary{background-color:hsl(var(--primary))}.eloq\\:bg-red-50{background-color:var(--eloq-color-red-50)}.eloq\\:bg-white,.eloq\\:bg-white\\/20{background-color:var(--eloq-color-white)}@supports (color:color-mix(in lab,red,red)){.eloq\\:bg-white\\/20{background-color:color-mix(in oklab,var(--eloq-color-white) 20%,transparent)}}.eloq\\:fill-none{fill:none}.eloq\\:fill-yellow-400{fill:var(--eloq-color-yellow-400)}.eloq\\:object-contain{object-fit:contain}.eloq\\:object-cover{object-fit:cover}.eloq\\:p-0{padding:0}.eloq\\:p-0\\.5{padding:calc(var(--eloq-spacing) * .5)}.eloq\\:p-1{padding:var(--eloq-spacing)}.eloq\\:p-2{padding:calc(var(--eloq-spacing) * 2)}.eloq\\:p-3{padding:calc(var(--eloq-spacing) * 3)}.eloq\\:p-4{padding:calc(var(--eloq-spacing) * 4)}.eloq\\:p-6{padding:calc(var(--eloq-spacing) * 6)}.eloq\\:p-\\[1px\\]{padding:1px}.eloq\\:p-\\[7px\\]{padding:7px}.eloq\\:px-0{padding-inline:0}.eloq\\:px-1\\.5{padding-inline:calc(var(--eloq-spacing) * 1.5)}.eloq\\:px-2{padding-inline:calc(var(--eloq-spacing) * 2)}.eloq\\:px-3{padding-inline:calc(var(--eloq-spacing) * 3)}.eloq\\:px-4{padding-inline:calc(var(--eloq-spacing) * 4)}.eloq\\:px-5{padding-inline:calc(var(--eloq-spacing) * 5)}.eloq\\:px-\\[12px\\]{padding-inline:12px}.eloq\\:px-\\[16px\\]{padding-inline:16px}.eloq\\:py-0\\.5{padding-block:calc(var(--eloq-spacing) * .5)}.eloq\\:py-1{padding-block:var(--eloq-spacing)}.eloq\\:py-1\\.5{padding-block:calc(var(--eloq-spacing) * 1.5)}.eloq\\:py-2{padding-block:calc(var(--eloq-spacing) * 2)}.eloq\\:py-3{padding-block:calc(var(--eloq-spacing) * 3)}.eloq\\:py-3\\.5{padding-block:calc(var(--eloq-spacing) * 3.5)}.eloq\\:py-\\[8px\\]{padding-block:8px}.eloq\\:py-\\[12px\\]{padding-block:12px}.eloq\\:pt-0{padding-top:0}.eloq\\:pt-2{padding-top:calc(var(--eloq-spacing) * 2)}.eloq\\:pt-4{padding-top:calc(var(--eloq-spacing) * 4)}.eloq\\:pt-5{padding-top:calc(var(--eloq-spacing) * 5)}.eloq\\:pt-6{padding-top:calc(var(--eloq-spacing) * 6)}.eloq\\:pt-10{padding-top:calc(var(--eloq-spacing) * 10)}.eloq\\:pt-24{padding-top:calc(var(--eloq-spacing) * 24)}.eloq\\:pr-2{padding-right:calc(var(--eloq-spacing) * 2)}.eloq\\:pr-4{padding-right:calc(var(--eloq-spacing) * 4)}.eloq\\:pr-12{padding-right:calc(var(--eloq-spacing) * 12)}.eloq\\:pb-2{padding-bottom:calc(var(--eloq-spacing) * 2)}.eloq\\:pb-4{padding-bottom:calc(var(--eloq-spacing) * 4)}.eloq\\:pb-10{padding-bottom:calc(var(--eloq-spacing) * 10)}.eloq\\:pb-14{padding-bottom:calc(var(--eloq-spacing) * 14)}.eloq\\:pl-3{padding-left:calc(var(--eloq-spacing) * 3)}.eloq\\:pl-4{padding-left:calc(var(--eloq-spacing) * 4)}.eloq\\:pl-11{padding-left:calc(var(--eloq-spacing) * 11)}.eloq\\:text-center{text-align:center}.eloq\\:text-left{text-align:left}.eloq\\:text-2xl{font-size:var(--eloq-text-2xl);line-height:var(--tw-leading,var(--eloq-text-2xl--line-height))}.eloq\\:text-base{font-size:var(--eloq-text-base);line-height:var(--tw-leading,var(--eloq-text-base--line-height))}.eloq\\:text-sm{font-size:var(--eloq-text-sm);line-height:var(--tw-leading,var(--eloq-text-sm--line-height))}.eloq\\:text-xs{font-size:var(--eloq-text-xs);line-height:var(--tw-leading,var(--eloq-text-xs--line-height))}.eloq\\:text-\\[10px\\]{font-size:10px}.eloq\\:leading-5{--tw-leading:calc(var(--eloq-spacing) * 5);line-height:calc(var(--eloq-spacing) * 5)}.eloq\\:leading-none{--tw-leading:1;line-height:1}.eloq\\:leading-relaxed{--tw-leading:var(--eloq-leading-relaxed);line-height:var(--eloq-leading-relaxed)}.eloq\\:font-medium{--tw-font-weight:var(--eloq-font-weight-medium);font-weight:var(--eloq-font-weight-medium)}.eloq\\:font-semibold{--tw-font-weight:var(--eloq-font-weight-semibold);font-weight:var(--eloq-font-weight-semibold)}.eloq\\:tracking-tight{--tw-tracking:var(--eloq-tracking-tight);letter-spacing:var(--eloq-tracking-tight)}.eloq\\:whitespace-nowrap{white-space:nowrap}.eloq\\:text-\\[\\#000\\]{color:#000}.eloq\\:text-\\[\\#fff\\]{color:#fff}.eloq\\:text-amber-500{color:var(--eloq-color-amber-500)}.eloq\\:text-amber-800{color:var(--eloq-color-amber-800)}.eloq\\:text-blue-500{color:var(--eloq-color-blue-500)}.eloq\\:text-blue-800{color:var(--eloq-color-blue-800)}.eloq\\:text-card-foreground{color:hsl(var(--card-foreground))}.eloq\\:text-destructive{color:hsl(var(--destructive))}.eloq\\:text-foreground{color:hsl(var(--foreground))}.eloq\\:text-gray-300{color:var(--eloq-color-gray-300)}.eloq\\:text-gray-400{color:var(--eloq-color-gray-400)}.eloq\\:text-gray-500{color:var(--eloq-color-gray-500)}.eloq\\:text-green-500{color:var(--eloq-color-green-500)}.eloq\\:text-green-800{color:var(--eloq-color-green-800)}.eloq\\:text-muted{color:hsl(var(--muted))}.eloq\\:text-muted-foreground{color:hsl(var(--muted-foreground))}.eloq\\:text-primary{color:hsl(var(--primary))}.eloq\\:text-primary-foreground{color:hsl(var(--primary-foreground))}.eloq\\:text-red-500{color:var(--eloq-color-red-500)}.eloq\\:text-red-800{color:var(--eloq-color-red-800)}.eloq\\:text-white{color:var(--eloq-color-white)}.eloq\\:text-yellow-400{color:var(--eloq-color-yellow-400)}.eloq\\:italic{font-style:italic}.eloq\\:underline{text-decoration-line:underline}.eloq\\:opacity-0{opacity:0}.eloq\\:opacity-50{opacity:.5}.eloq\\:opacity-70{opacity:.7}.eloq\\:opacity-75{opacity:.75}.eloq\\:opacity-100{opacity:1}.eloq\\:shadow-\\[0_-8px_24px_rgba\\(0\\,0\\,0\\,0\\.08\\)\\]{--tw-shadow:0 -8px 24px var(--tw-shadow-color,#00000014);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:shadow-\\[0_0_4px_0_rgba\\(0\\,0\\,0\\,0\\.20\\)\\]{--tw-shadow:0 0 4px 0 var(--tw-shadow-color,#0003);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:shadow-\\[0_3px_4px_-2px_rgba\\(0\\,0\\,0\\,0\\.04\\)\\]{--tw-shadow:0 3px 4px -2px var(--tw-shadow-color,#0000000a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.eloq\\:outline-2{outline-style:var(--tw-outline-style);outline-width:2px}.eloq\\:outline-offset-2{outline-offset:2px}.eloq\\:outline-transparent{outline-color:#0000}.eloq\\:drop-shadow-lg{--tw-drop-shadow-size:drop-shadow(0 4px 4px var(--tw-drop-shadow-color,#00000026));--tw-drop-shadow:drop-shadow(var(--eloq-drop-shadow-lg));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,)}.eloq\\:transition-\\[outline-color\\]{transition-property:outline-color;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-\\[visibility\\]{transition-property:visibility;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-\\[width\\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--eloq-default-transition-timing-function));transition-duration:var(--tw-duration,var(--eloq-default-transition-duration))}.eloq\\:delay-100{transition-delay:.1s}.eloq\\:duration-0{--tw-duration:0s;transition-duration:0s}.eloq\\:duration-150{--tw-duration:.15s;transition-duration:.15s}.eloq\\:duration-200{--tw-duration:.2s;transition-duration:.2s}.eloq\\:duration-300{--tw-duration:.3s;transition-duration:.3s}.eloq\\:duration-500{--tw-duration:.5s;transition-duration:.5s}.eloq\\:ease-out{--tw-ease:var(--eloq-ease-out);transition-timing-function:var(--eloq-ease-out)}.eloq\\:outline-none{--tw-outline-style:none;outline-style:none}.eloq\\:select-none{-webkit-user-select:none;user-select:none}.eloq\\:group-focus-visible\\:block:is(:where(.eloq\\:group):focus-visible *){display:block}.eloq\\:placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.eloq\\:last\\:mb-0:last-child{margin-bottom:0}@media(hover:hover){.eloq\\:hover\\:bg-black\\/5:hover{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:hover\\:bg-black\\/5:hover{background-color:color-mix(in oklab,var(--eloq-color-black) 5%,transparent)}}.eloq\\:hover\\:bg-black\\/80:hover{background-color:var(--eloq-color-black)}@supports (color:color-mix(in lab,red,red)){.eloq\\:hover\\:bg-black\\/80:hover{background-color:color-mix(in oklab,var(--eloq-color-black) 80%,transparent)}}.eloq\\:hover\\:bg-muted:hover{background-color:hsl(var(--muted))}.eloq\\:hover\\:bg-red-500:hover{background-color:var(--eloq-color-red-500)}.eloq\\:hover\\:text-foreground:hover{color:hsl(var(--foreground))}.eloq\\:hover\\:text-gray-600:hover{color:var(--eloq-color-gray-600)}.eloq\\:hover\\:text-primary:hover{color:hsl(var(--primary))}.eloq\\:hover\\:opacity-80:hover{opacity:.8}.eloq\\:hover\\:opacity-90:hover{opacity:.9}.eloq\\:hover\\:opacity-100:hover{opacity:1}.eloq\\:hover\\:drop-shadow-xl:hover{--tw-drop-shadow-size:drop-shadow(0 9px 7px var(--tw-drop-shadow-color,#0000001a));--tw-drop-shadow:drop-shadow(var(--eloq-drop-shadow-xl));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,)}}.eloq\\:focus-visible\\:opacity-100:focus-visible{opacity:1}.eloq\\:focus-visible\\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.eloq\\:focus-visible\\:ring-muted:focus-visible{--tw-ring-color:hsl(var(--muted))}.eloq\\:focus-visible\\:ring-primary:focus-visible{--tw-ring-color:hsl(var(--primary))}.eloq\\:focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.eloq\\:focus-visible\\:outline-hidden:focus-visible{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.eloq\\:focus-visible\\:outline-hidden:focus-visible{outline-offset:2px;outline:2px solid #0000}}.eloq\\:focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.eloq\\:focus-visible\\:-outline-offset-4:focus-visible{outline-offset:-4px}.eloq\\:focus-visible\\:outline-current:focus-visible{outline-color:currentColor}.eloq\\:focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.eloq\\:focus-visible\\:outline-solid:focus-visible{--tw-outline-style:solid;outline-style:solid}.eloq\\:active\\:cursor-grabbing:active{cursor:grabbing}.eloq\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.eloq\\:disabled\\:opacity-50:disabled{opacity:.5}.eloq\\:has-focus-visible\\:outline-2:has(:focus-visible){outline-style:var(--tw-outline-style);outline-width:2px}.eloq\\:has-focus-visible\\:outline-offset-1:has(:focus-visible){outline-offset:1px}.eloq\\:has-focus-visible\\:outline-ring:has(:focus-visible){outline-color:hsl(var(--ring))}@media(prefers-reduced-motion:no-preference){.eloq\\:motion-safe\\:translate-x-8{--tw-translate-x:calc(var(--eloq-spacing) * 8);translate:var(--tw-translate-x) var(--tw-translate-y)}.eloq\\:motion-safe\\:scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.eloq\\:motion-safe\\:animate-slide-up-in{animation:var(--eloq-animate-slide-up-in)}.eloq\\:motion-safe\\:animate-thinking-dot{animation:var(--eloq-animate-thinking-dot)}}@media(prefers-reduced-motion:reduce){.eloq\\:motion-reduce\\:animate-message-fade-in{animation:var(--eloq-animate-message-fade-in)}.eloq\\:motion-reduce\\:animate-none{animation:none}.eloq\\:motion-reduce\\:animate-panel-fade-in{animation:var(--eloq-animate-panel-fade-in)}.eloq\\:motion-reduce\\:animate-panel-fade-out{animation:var(--eloq-animate-panel-fade-out)}.eloq\\:motion-reduce\\:opacity-70{opacity:.7}}@media(min-width:40rem){.eloq\\:sm\\:text-sm{font-size:var(--eloq-text-sm);line-height:var(--tw-leading,var(--eloq-text-sm--line-height))}}@media(min-width:48rem){.eloq\\:md\\:text-sm{font-size:var(--eloq-text-sm);line-height:var(--tw-leading,var(--eloq-text-sm--line-height))}}.eloq\\:dark\\:border:is(.dark *){border-style:var(--tw-border-style);border-width:1px}.eloq\\:dark\\:border-b:is(.dark *){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.eloq\\:dark\\:border-border:is(.dark *){border-color:hsl(var(--border))}.eloq\\:dark\\:bg-amber-400\\/10:is(.dark *){background-color:var(--eloq-color-amber-400)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-amber-400\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-amber-400) 10%,transparent)}}.eloq\\:dark\\:bg-blue-500\\/10:is(.dark *){background-color:var(--eloq-color-blue-500)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-blue-500\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-blue-500) 10%,transparent)}}.eloq\\:dark\\:bg-card:is(.dark *){background-color:hsl(var(--card))}.eloq\\:dark\\:bg-gray-100:is(.dark *){background-color:var(--eloq-color-gray-100)}.eloq\\:dark\\:bg-gray-200:is(.dark *){background-color:var(--eloq-color-gray-200)}.eloq\\:dark\\:bg-green-500\\/10:is(.dark *){background-color:var(--eloq-color-green-500)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-green-500\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-green-500) 10%,transparent)}}.eloq\\:dark\\:bg-muted:is(.dark *){background-color:hsl(var(--muted))}.eloq\\:dark\\:bg-red-500\\/10:is(.dark *){background-color:var(--eloq-color-red-500)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:bg-red-500\\/10:is(.dark *){background-color:color-mix(in oklab,var(--eloq-color-red-500) 10%,transparent)}}.eloq\\:dark\\:text-amber-200:is(.dark *){color:var(--eloq-color-amber-200)}.eloq\\:dark\\:text-amber-400:is(.dark *){color:var(--eloq-color-amber-400)}.eloq\\:dark\\:text-blue-200:is(.dark *){color:var(--eloq-color-blue-200)}.eloq\\:dark\\:text-blue-400:is(.dark *){color:var(--eloq-color-blue-400)}.eloq\\:dark\\:text-gray-500:is(.dark *){color:var(--eloq-color-gray-500)}.eloq\\:dark\\:text-gray-900:is(.dark *){color:var(--eloq-color-gray-900)}.eloq\\:dark\\:text-green-200:is(.dark *){color:var(--eloq-color-green-200)}.eloq\\:dark\\:text-green-400:is(.dark *){color:var(--eloq-color-green-400)}.eloq\\:dark\\:text-muted-foreground:is(.dark *),.eloq\\:dark\\:text-muted-foreground\\/50:is(.dark *){color:hsl(var(--muted-foreground))}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:text-muted-foreground\\/50:is(.dark *){color:color-mix(in oklab,hsl(var(--muted-foreground)) 50%,transparent)}}.eloq\\:dark\\:text-red-200:is(.dark *){color:var(--eloq-color-red-200)}.eloq\\:dark\\:text-red-400:is(.dark *){color:var(--eloq-color-red-400)}.eloq\\:dark\\:shadow-none:is(.dark *){--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media(hover:hover){.eloq\\:dark\\:hover\\:bg-white\\/10:is(.dark *):hover{background-color:var(--eloq-color-white)}@supports (color:color-mix(in lab,red,red)){.eloq\\:dark\\:hover\\:bg-white\\/10:is(.dark *):hover{background-color:color-mix(in oklab,var(--eloq-color-white) 10%,transparent)}}.eloq\\:dark\\:hover\\:text-gray-300:is(.dark *):hover{color:var(--eloq-color-gray-300)}.eloq\\:dark\\:hover\\:text-primary:is(.dark *):hover{color:hsl(var(--primary))}}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}}body{background-color:#0000}.eloquent-chat{font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}.collapse{visibility:unset!important}.eloq-wrap-anywhere{overflow-wrap:anywhere}.eloq-thin-scrollbar{scrollbar-width:thin;scrollbar-color:hsl(var(--border)) transparent}.eloq-thin-scrollbar::-webkit-scrollbar{width:8px;height:8px}.eloq-thin-scrollbar::-webkit-scrollbar-thumb{background-color:hsl(var(--border));border-radius:9999px}.eloq-thin-scrollbar::-webkit-scrollbar-track{background-color:#0000}.eloq-test-mode-stripe{background:repeating-linear-gradient(-45deg,#f6e05e,#f6e05e 10px,#000 10px 20px)}.eloq-thinking-shimmer{--eloq-thinking-base:#9ca3af;--eloq-thinking-highlight:#4b5563;background:linear-gradient(90deg,var(--eloq-thinking-base) 0%,var(--eloq-thinking-base) 35%,var(--eloq-thinking-highlight) 50%,var(--eloq-thinking-base) 65%,var(--eloq-thinking-base) 100%);color:#0000;background-size:200% 100%;-webkit-background-clip:text;background-clip:text}.dark .eloq-thinking-shimmer{--eloq-thinking-base:#6b7280;--eloq-thinking-highlight:#e5e7eb}@media(prefers-reduced-motion:reduce){.eloq-thinking-shimmer{color:var(--eloq-thinking-base);background:0 0}}.eloq-regenerating-text{opacity:.4;transition:opacity .25s ease-out}.eloq-regenerating-sweep{border-radius:inherit;pointer-events:none;background:linear-gradient(100deg,#0000 30%,#ffffff8c,#0000 70%) 0 0/200% 100%;position:absolute;inset:0}.dark .eloq-regenerating-sweep{background-image:linear-gradient(100deg,#0000 30%,#ffffff1f,#0000 70%)}@media(prefers-reduced-motion:reduce){.eloq-regenerating-sweep{display:none}}@property --eloq-aura-angle{syntax:"<angle>";inherits:false;initial-value:0deg}.eloq-aura{--eloq-aura-strong:#9e9e9e;--eloq-aura-soft:#d1d1d1;background:conic-gradient(from var(--eloq-aura-angle),var(--eloq-aura-strong),var(--eloq-aura-soft),var(--eloq-aura-strong));border-radius:9999px;padding:2px;animation:2.6s linear infinite eloq-aura-spin;position:relative}@keyframes eloq-aura-spin{to{--eloq-aura-angle:360deg}}.eloq-aura-shine{border-radius:inherit;pointer-events:none;position:absolute;inset:0;overflow:hidden}.eloq-aura-shine:after{content:"";background:linear-gradient(90deg,#0000,#fffc,#0000);width:18%;position:absolute;top:-20%;bottom:-20%;left:0;transform:translate(-200%)skew(-20deg)}.eloq-aura-shine--active:after{animation:1.1s ease-in-out both eloq-aura-shine-sweep}@keyframes eloq-aura-shine-sweep{0%{transform:translate(-200%)skew(-20deg)}to{transform:translate(700%)skew(-20deg)}}@media(prefers-reduced-motion:reduce){.eloq-aura{animation:none}.eloq-aura-shine:after,.eloq-aura-shine--active:after{opacity:0;animation:none}}@keyframes panel-in{0%{opacity:0;transform:scale(.05)}to{opacity:1;transform:scale(1)}}@keyframes thinking-dot{0%,60%,to{opacity:.45;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}@keyframes regenerating-sweep{0%{background-position:150% 0}to{background-position:-50% 0}}@keyframes thinking-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes panel-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.05)}}@keyframes message-in{0%{opacity:0;transform:translateY(.5rem)}to{opacity:1;transform:translateY(0)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-out{0%{opacity:1}to{opacity:0}}@keyframes slide-up-in{0%{transform:translateY(100%)}to{transform:translateY(0)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}', io = "@media(prefers-reduced-motion:no-preference){.eloquentai-chat-launcher{transition:transform .2s ease-in-out}.eloquentai-chat-launcher:hover{transform:scale(1.1)}}", so = [
37
13
  "button",
38
14
  "a[href]",
39
15
  "input",
@@ -41,23 +17,23 @@ const Je = '/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@la
41
17
  "textarea",
42
18
  "[tabindex]"
43
19
  ].map((e) => `${e}:not([tabindex^="-"]):not(:disabled)`).join(", ");
44
- function no(e) {
20
+ function lo(e) {
45
21
  if (!e) return;
46
- (e.contentDocument?.querySelector(ro) ?? e).focus();
22
+ (e.contentDocument?.querySelector(so) ?? e).focus();
47
23
  }
48
- function ao({
24
+ function co({
49
25
  isOpen: e,
50
26
  toggleBubble: t,
51
27
  isDarkMode: o = !1
52
28
  }) {
53
29
  const r = o ? "#fff" : "#000", n = o ? "#000000" : "#ffffff";
54
- return /* @__PURE__ */ I("div", { className: "eloq:absolute eloq:inset-0 eloq:m-auto eloq:flex eloq:items-center eloq:justify-center eloq:overflow-hidden", children: /* @__PURE__ */ ke(
30
+ return /* @__PURE__ */ E("div", { className: "eloq:absolute eloq:inset-0 eloq:m-auto eloq:flex eloq:items-center eloq:justify-center eloq:overflow-hidden", children: /* @__PURE__ */ ke(
55
31
  "button",
56
32
  {
57
33
  type: "button",
58
34
  "aria-label": "Open chat",
59
35
  "aria-expanded": e,
60
- className: Be(
36
+ className: Le(
61
37
  "eloq:group eloq:chat-bubble eloq:relative eloq:flex eloq:items-center eloq:justify-center eloq:w-12 eloq:h-12 eloq:rounded-full eloq:cursor-pointer",
62
38
  // The ring below replaces the UA outline, which would be drawn
63
39
  // outside the circle and clipped by the 48px launcher iframe.
@@ -72,15 +48,15 @@ function ao({
72
48
  ),
73
49
  onClick: t,
74
50
  children: [
75
- /* @__PURE__ */ I(
51
+ /* @__PURE__ */ E(
76
52
  "span",
77
53
  {
78
54
  "aria-hidden": !0,
79
55
  className: "eloq:absolute eloq:inset-0 eloq:flex eloq:justify-center eloq:items-center eloq:m-auto",
80
- children: /* @__PURE__ */ I(Tt, { bgColor: r, fgColor: n })
56
+ children: /* @__PURE__ */ E(jt, { bgColor: r, fgColor: n })
81
57
  }
82
58
  ),
83
- /* @__PURE__ */ I(
59
+ /* @__PURE__ */ E(
84
60
  "span",
85
61
  {
86
62
  "aria-hidden": !0,
@@ -91,61 +67,61 @@ function ao({
91
67
  }
92
68
  ) });
93
69
  }
94
- function Ge({ children: e, head: t, frameRef: o, ...r }) {
70
+ function Ye({ children: e, head: t, frameRef: o, ...r }) {
95
71
  const [n, a] = C(null), l = v(
96
72
  (i) => {
97
73
  a(i), o && (o.current = i);
98
74
  },
99
75
  [o]
100
- ), s = n?.contentWindow?.document?.head, c = n?.contentWindow?.document?.body;
76
+ ), s = n?.contentWindow?.document?.head, u = n?.contentWindow?.document?.body;
101
77
  return /* @__PURE__ */ ke("iframe", { ...r, ref: l, children: [
102
- s && ot(t, s),
103
- c && ot(e, c)
78
+ s && rt(t, s),
79
+ u && rt(e, u)
104
80
  ] });
105
81
  }
106
- function io({ children: e, container: t }) {
107
- return ot(e, t);
82
+ function uo({ children: e, container: t }) {
83
+ return rt(e, t);
108
84
  }
109
- function so({
85
+ function po({
110
86
  message: e,
111
87
  isVisible: t,
112
88
  onDismiss: o,
113
89
  onMessageClick: r,
114
90
  autoHideDelay: n
115
91
  }) {
116
- const [a, l] = C(!1), [s, c] = C("entering"), [i, u] = C(!1), p = Mt();
117
- if (V(() => {
92
+ const [a, l] = C(!1), [s, u] = C("entering"), [i, d] = C(!1), p = Dt();
93
+ if (K(() => {
118
94
  if (t) {
119
- l(!0), c("entering");
95
+ l(!0), u("entering");
120
96
  const h = setTimeout(() => {
121
- c("visible");
97
+ u("visible");
122
98
  }, 50);
123
99
  return () => clearTimeout(h);
124
100
  } else {
125
- c("exiting");
101
+ u("exiting");
126
102
  const h = setTimeout(() => {
127
- l(!1), c("entering");
103
+ l(!1), u("entering");
128
104
  }, 300);
129
105
  return () => clearTimeout(h);
130
106
  }
131
- }, [t]), V(() => {
107
+ }, [t]), K(() => {
132
108
  if (!t || i) return;
133
109
  let h = !1, f;
134
110
  const g = setTimeout(() => {
135
- h = !0, c("exiting"), f = setTimeout(() => {
111
+ h = !0, u("exiting"), f = setTimeout(() => {
136
112
  o();
137
113
  }, 300);
138
114
  }, n);
139
115
  return () => {
140
- clearTimeout(g), clearTimeout(f), h && c("visible");
116
+ clearTimeout(g), clearTimeout(f), h && u("visible");
141
117
  };
142
118
  }, [t, i, o, n]), !a)
143
119
  return null;
144
- const d = p.botBubbleTextColor || At(p.botBubbleColor);
145
- return /* @__PURE__ */ I(
120
+ const c = p.botBubbleTextColor || $t(p.botBubbleColor);
121
+ return /* @__PURE__ */ E(
146
122
  "div",
147
123
  {
148
- className: Be(
124
+ className: Le(
149
125
  // right-16 leaves a ~7px gap between the tail tip and the launcher
150
126
  // circle's edge — the tail points at it without sliding underneath.
151
127
  "eloq:absolute eloq:right-16 eloq:bottom-0 eloq:max-w-xs eloq:transform eloq:transition-all eloq:duration-500 eloq:ease-out",
@@ -159,16 +135,16 @@ function so({
159
135
  "div",
160
136
  {
161
137
  className: "eloq:relative eloq:drop-shadow-lg eloq:hover:drop-shadow-xl eloq:transition-all eloq:duration-300",
162
- onFocus: () => u(!0),
138
+ onFocus: () => d(!0),
163
139
  onBlur: (h) => {
164
- h.currentTarget.contains(h.relatedTarget) || u(!1);
140
+ h.currentTarget.contains(h.relatedTarget) || d(!1);
165
141
  },
166
142
  children: [
167
143
  /* @__PURE__ */ ke(
168
144
  "button",
169
145
  {
170
146
  type: "button",
171
- className: Be(
147
+ className: Le(
172
148
  // block/w-full/text-left undo the UA button's inline-block,
173
149
  // centred layout so it lays out like the div it replaced.
174
150
  "eloq:relative eloq:block eloq:w-full eloq:rounded-lg eloq:border eloq:p-3 eloq:text-left eloq:cursor-pointer",
@@ -179,7 +155,7 @@ function so({
179
155
  ),
180
156
  style: {
181
157
  backgroundColor: p.botBubbleColor,
182
- color: d
158
+ color: c
183
159
  },
184
160
  onClick: r,
185
161
  children: [
@@ -190,7 +166,7 @@ function so({
190
166
  className: "eloq:absolute eloq:bottom-1 eloq:-right-[9px] eloq:h-4 eloq:w-4 eloq:-scale-x-100",
191
167
  viewBox: "0 0 10.54 11.14",
192
168
  children: [
193
- /* @__PURE__ */ I(
169
+ /* @__PURE__ */ E(
194
170
  "path",
195
171
  {
196
172
  d: "M5.75,0s0,.36,0,.51c-.09,4.52-5.74,10.64-5.74,10.64,8.19.02,10.54-2.26,10.54-2.26h0c-1.6-2.96-3.19-5.92-4.79-8.88Z",
@@ -200,7 +176,7 @@ function so({
200
176
  style: { stroke: "hsl(var(--border))" }
201
177
  }
202
178
  ),
203
- /* @__PURE__ */ I(
179
+ /* @__PURE__ */ E(
204
180
  "rect",
205
181
  {
206
182
  x: "6.2",
@@ -215,12 +191,12 @@ function so({
215
191
  ),
216
192
  /* @__PURE__ */ ke("span", { className: "eloq:block eloq:text-sm eloq:leading-relaxed eloq:pr-4", children: [
217
193
  e,
218
- /* @__PURE__ */ I("span", { className: "eloq:sr-only", children: " (open chat)" })
194
+ /* @__PURE__ */ E("span", { className: "eloq:sr-only", children: " (open chat)" })
219
195
  ] })
220
196
  ]
221
197
  }
222
198
  ),
223
- /* @__PURE__ */ I(
199
+ /* @__PURE__ */ E(
224
200
  "button",
225
201
  {
226
202
  type: "button",
@@ -230,9 +206,9 @@ function so({
230
206
  style: {
231
207
  // Follows the bubble's computed text colour, so the X blends
232
208
  // with the message on any bubble background (and dark mode).
233
- color: d
209
+ color: c
234
210
  },
235
- children: /* @__PURE__ */ I(Pt, { "aria-hidden": !0, className: "eloq:w-2.5 eloq:h-2.5", strokeWidth: 1.75 })
211
+ children: /* @__PURE__ */ E(Nt, { "aria-hidden": !0, className: "eloq:w-2.5 eloq:h-2.5", strokeWidth: 1.75 })
236
212
  }
237
213
  )
238
214
  ]
@@ -241,24 +217,111 @@ function so({
241
217
  }
242
218
  );
243
219
  }
244
- function ut(e) {
220
+ function dt(e) {
245
221
  if (typeof document > "u") return null;
246
222
  const t = document.cookie.match(new RegExp(`(?:^|; )${e}=([^;]*)`));
247
223
  return t ? decodeURIComponent(t[1]) : null;
248
224
  }
249
- function lo(e, t, o) {
225
+ function ho(e, t, o) {
250
226
  if (typeof document > "u") return;
251
227
  const r = new Date(Date.now() + o * 60 * 60 * 1e3).toUTCString();
252
228
  document.cookie = `${e}=${encodeURIComponent(t)}; expires=${r}; path=/; SameSite=Lax`;
253
229
  }
254
- function co(e) {
230
+ function fo(e) {
255
231
  typeof document > "u" || (document.cookie = `${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`);
256
232
  }
257
- function uo({
233
+ const go = "eloquent-ai-chat-sdk@0.37.0-dev.5", mo = {
234
+ dev: "development"
235
+ }, bo = mo.dev;
236
+ let je;
237
+ function vo(e) {
238
+ je = e;
239
+ }
240
+ const wo = /* @__PURE__ */ new Set([
241
+ "app_id",
242
+ "device_id",
243
+ "integration_environment",
244
+ "status",
245
+ "endpoint",
246
+ "chat_id"
247
+ ]), qo = /* @__PURE__ */ new Set(["banner", "response"]), pt = /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/gi;
248
+ function yo(e, t, o) {
249
+ const r = `https://680ff1462c4c5bf9e1e5b570b9340be4@o4508326307889152.ingest.us.sentry.io/4509329153916928
250
+ `;
251
+ typeof window > "u" || xo(r).then((n) => {
252
+ const a = n.clone();
253
+ if (a.setTags({
254
+ app_id: o,
255
+ device_id: je?.deviceId,
256
+ integration_environment: je?.environment
257
+ }), a.setExtras({ banner: e }), t instanceof Ue) {
258
+ const l = t.endpoint?.replace(pt, ":id");
259
+ a.setTags({
260
+ status: t.status,
261
+ endpoint: l,
262
+ chat_id: t.endpoint?.match(pt)?.[0]
263
+ }), a.setExtras({ response: t.response }), a.captureMessage(
264
+ Co(t.response) ?? `HTTP ${t.status} ${l ?? "unknown endpoint"}`,
265
+ "error"
266
+ );
267
+ } else t instanceof Error ? a.captureException(t) : a.captureMessage(e.message, "error");
268
+ }).catch(() => {
269
+ });
270
+ }
271
+ let ht;
272
+ function xo(e) {
273
+ return ht ??= import("./index-BtNTB0jt.js").then(
274
+ ({ BrowserClient: t, Scope: o, defaultStackParser: r, makeFetchTransport: n }) => {
275
+ const a = new t({
276
+ dsn: e,
277
+ environment: bo,
278
+ release: go,
279
+ transport: n,
280
+ stackParser: r,
281
+ // No global handlers or instrumentation; the filter adds the page.
282
+ integrations: [],
283
+ beforeSend: _o()
284
+ }), l = new o();
285
+ return l.setClient(a), a.init(), l;
286
+ }
287
+ ), ht;
288
+ }
289
+ const ko = 5;
290
+ function _o() {
291
+ let e = 0;
292
+ return (t) => ++e > ko ? null : {
293
+ ...t,
294
+ level: "error",
295
+ breadcrumbs: void 0,
296
+ contexts: void 0,
297
+ fingerprint: void 0,
298
+ transaction: void 0,
299
+ tags: ft(t.tags, wo),
300
+ extra: ft(t.extra, qo),
301
+ user: je ? { id: je.userId } : void 0,
302
+ // Origin and path only: query strings and hashes can carry tokens.
303
+ request: {
304
+ url: window.location.origin + window.location.pathname,
305
+ headers: { "User-Agent": navigator.userAgent }
306
+ }
307
+ };
308
+ }
309
+ function ft(e, t) {
310
+ return Object.fromEntries(
311
+ Object.entries(e ?? {}).filter(([o]) => t.has(o))
312
+ );
313
+ }
314
+ function Co(e) {
315
+ if (!e || typeof e != "object" || !("message" in e)) return;
316
+ const { message: t } = e;
317
+ if (typeof t == "string") return t;
318
+ if (Array.isArray(t)) return t.join("; ");
319
+ }
320
+ function So({
258
321
  chatProps: e,
259
322
  chatSettings: t
260
323
  }) {
261
- return tt(() => t ? {
324
+ return ot(() => t ? {
262
325
  assistantName: t.agent_name,
263
326
  assistantLogo: t.avatar_url || void 0,
264
327
  theme: {
@@ -286,7 +349,7 @@ function uo({
286
349
  subtitle: t.subtitle || "Ask me anything"
287
350
  } : e, [e, t]);
288
351
  }
289
- function po() {
352
+ function Io() {
290
353
  if (typeof window > "u")
291
354
  return {};
292
355
  const e = new URLSearchParams(window.location.search), t = {};
@@ -294,9 +357,9 @@ function po() {
294
357
  t[r] = o;
295
358
  }), t;
296
359
  }
297
- const ho = "eloquent-ai::conversation-data", Me = typeof window < "u", fo = 1800 * 1e3;
298
- function it({ appId: e }) {
299
- const t = tt(() => `${ho}-${e}`, [e]), o = tt(
360
+ const Eo = "eloquent-ai::conversation-data", Me = typeof window < "u", Ro = 1800 * 1e3;
361
+ function st({ appId: e }) {
362
+ const t = ot(() => `${Eo}-${e}`, [e]), o = ot(
300
363
  () => ({
301
364
  conversationId: null,
302
365
  userId: null,
@@ -318,19 +381,19 @@ function it({ appId: e }) {
318
381
  }, [t, o]), n = v(() => {
319
382
  try {
320
383
  const i = r();
321
- return i.lastActivity ? Date.now() - i.lastActivity > fo : !0;
384
+ return i.lastActivity ? Date.now() - i.lastActivity > Ro : !0;
322
385
  } catch (i) {
323
386
  return console.error("Error checking conversation expiration:", i), !0;
324
387
  }
325
388
  }, [r]), a = v(
326
- (i, u, p, d, h) => {
389
+ (i, d, p, c, h) => {
327
390
  try {
328
391
  if (!Me) return;
329
392
  const f = {
330
393
  conversationId: i,
331
- userId: u,
332
- deviceId: d,
333
- messages: go(p),
394
+ userId: d,
395
+ deviceId: c,
396
+ messages: zo(p),
334
397
  lastActivity: Date.now(),
335
398
  chatToken: h
336
399
  };
@@ -359,13 +422,13 @@ function it({ appId: e }) {
359
422
  if (!Me) return;
360
423
  const i = localStorage.getItem(t);
361
424
  if (i) {
362
- const u = JSON.parse(i);
425
+ const d = JSON.parse(i);
363
426
  localStorage.setItem(
364
427
  t,
365
428
  JSON.stringify({
366
429
  ...o,
367
- deviceId: u.deviceId,
368
- userId: u.userId
430
+ deviceId: d.deviceId,
431
+ userId: d.userId
369
432
  })
370
433
  );
371
434
  }
@@ -375,7 +438,7 @@ function it({ appId: e }) {
375
438
  i
376
439
  );
377
440
  }
378
- }, [t, o]), c = v(() => {
441
+ }, [t, o]), u = v(() => {
379
442
  try {
380
443
  if (!Me) return;
381
444
  const i = r();
@@ -389,77 +452,77 @@ function it({ appId: e }) {
389
452
  saveChatData: a,
390
453
  clearChatData: s,
391
454
  getSavedChatData: r,
392
- updateLastActivity: c,
455
+ updateLastActivity: u,
393
456
  markChatClosed: l
394
457
  };
395
458
  }
396
- function go(e) {
459
+ function zo(e) {
397
460
  return e.flatMap((t) => {
398
461
  if (!t.attachments) return [t];
399
- const o = t.attachments.filter((r) => Ot(r.url)).map(({ url: r, mimeType: n, name: a }) => ({ url: r, mimeType: n, name: a }));
462
+ const o = t.attachments.filter((r) => Bt(r.url)).map(({ url: r, mimeType: n, name: a }) => ({ url: r, mimeType: n, name: a }));
400
463
  return o.length > 0 ? [{ ...t, attachments: o }] : t.content ? [{ ...t, attachments: void 0 }] : [];
401
464
  });
402
465
  }
403
- const mo = "aws-appsync-event-ws", bo = 15e3, vo = 3e5, wo = 5e3, qo = 1;
404
- function yo(e) {
466
+ const To = "aws-appsync-event-ws", Mo = 15e3, Ao = 3e5, Po = 5e3, Oo = 1;
467
+ function Uo(e) {
405
468
  const t = new URL(e);
406
469
  return /\.appsync-api\.[\w-]+\.amazonaws\.com(\.cn)?$/.test(t.hostname) && (t.hostname = t.hostname.replace(
407
470
  ".appsync-api.",
408
471
  ".appsync-realtime-api."
409
472
  )), t.protocol = "wss:", t.pathname = `${t.pathname.replace(/\/$/, "")}/realtime`, t.toString();
410
473
  }
411
- function xo(e, t) {
474
+ function jo(e, t) {
412
475
  const o = new URL(e).host;
413
476
  return "authorizationToken" in t ? { Authorization: t.authorizationToken, host: o } : { "x-api-key": t.apiKey, host: o };
414
477
  }
415
- function ko(e) {
478
+ function Do(e) {
416
479
  return `header-${btoa(JSON.stringify(e)).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "")}`;
417
480
  }
418
- function Ye(e) {
481
+ function Xe(e) {
419
482
  return !e || e.length === 0 ? "unknown error" : e.map((t) => `${t.errorType ?? "Error"}: ${t.message ?? ""}`).join("; ");
420
483
  }
421
- function _o(e) {
484
+ function $o(e) {
422
485
  const {
423
486
  httpEndpoint: t,
424
487
  auth: o,
425
488
  channel: r,
426
489
  onEvent: n,
427
490
  onDisconnect: a,
428
- createWebSocket: l = (u, p) => new WebSocket(u, p)
429
- } = e, s = xo(t, o), c = yo(t), i = crypto.randomUUID();
430
- return new Promise((u, p) => {
431
- let d;
491
+ createWebSocket: l = (d, p) => new WebSocket(d, p)
492
+ } = e, s = jo(t, o), u = Uo(t), i = crypto.randomUUID();
493
+ return new Promise((d, p) => {
494
+ let c;
432
495
  try {
433
- d = l(c, [
434
- mo,
435
- ko(s)
496
+ c = l(u, [
497
+ To,
498
+ Do(s)
436
499
  ]);
437
500
  } catch (m) {
438
501
  p(m instanceof Error ? m : new Error(String(m)));
439
502
  return;
440
503
  }
441
- let h = "connecting", f = !1, g = vo, R = Date.now(), q = null, z = null;
442
- const P = () => {
504
+ let h = "connecting", f = !1, g = Ao, R = Date.now(), q = null, z = null;
505
+ const M = () => {
443
506
  q && (clearTimeout(q), q = null), z && (clearInterval(z), z = null);
444
- }, E = (m) => {
507
+ }, S = (m) => {
445
508
  if (h === "closed") return;
446
509
  const y = h === "established";
447
- h = "closed", P();
510
+ h = "closed", M();
448
511
  try {
449
- d.close();
512
+ c.close();
450
513
  } catch {
451
514
  }
452
515
  f || (y ? a(m) : p(new Error(m)));
453
- }, j = (m) => {
454
- d.readyState === qo && d.send(JSON.stringify(m));
455
- }, O = (m) => {
516
+ }, P = (m) => {
517
+ c.readyState === Oo && c.send(JSON.stringify(m));
518
+ }, U = (m) => {
456
519
  q && clearTimeout(q), q = setTimeout(() => {
457
- E(`Timed out waiting for ${m}`);
458
- }, bo);
520
+ S(`Timed out waiting for ${m}`);
521
+ }, Mo);
459
522
  };
460
- d.addEventListener("open", () => {
461
- h !== "closed" && (j({ type: "connection_init" }), O("connection_ack"));
462
- }), d.addEventListener("message", (m) => {
523
+ c.addEventListener("open", () => {
524
+ h !== "closed" && (P({ type: "connection_init" }), U("connection_ack"));
525
+ }), c.addEventListener("message", (m) => {
463
526
  if (h === "closed") return;
464
527
  let y;
465
528
  try {
@@ -471,32 +534,32 @@ function _o(e) {
471
534
  switch (y.type) {
472
535
  case "connection_ack": {
473
536
  if (h !== "connecting") return;
474
- h = "subscribing", typeof y.connectionTimeoutMs == "number" && (g = y.connectionTimeoutMs), j({
537
+ h = "subscribing", typeof y.connectionTimeoutMs == "number" && (g = y.connectionTimeoutMs), P({
475
538
  type: "subscribe",
476
539
  id: i,
477
540
  channel: r,
478
541
  authorization: s
479
- }), O("subscribe_success");
542
+ }), U("subscribe_success");
480
543
  return;
481
544
  }
482
545
  case "connection_error": {
483
- E(`Connection error: ${Ye(y.errors)}`);
546
+ S(`Connection error: ${Xe(y.errors)}`);
484
547
  return;
485
548
  }
486
549
  case "subscribe_success": {
487
550
  if (h !== "subscribing" || y.id !== i) return;
488
551
  h = "established", q && (clearTimeout(q), q = null), R = Date.now(), z = setInterval(() => {
489
- Date.now() - R > g && E("Keep-alive timeout");
490
- }, wo), u({
552
+ Date.now() - R > g && S("Keep-alive timeout");
553
+ }, Po), d({
491
554
  close: () => {
492
- f = !0, j({ type: "unsubscribe", id: i }), E("Closed by client");
555
+ f = !0, P({ type: "unsubscribe", id: i }), S("Closed by client");
493
556
  }
494
557
  });
495
558
  return;
496
559
  }
497
560
  case "subscribe_error": {
498
561
  if (y.id !== i) return;
499
- E(`Subscribe error: ${Ye(y.errors)}`);
562
+ S(`Subscribe error: ${Xe(y.errors)}`);
500
563
  return;
501
564
  }
502
565
  case "ka": {
@@ -522,24 +585,24 @@ function _o(e) {
522
585
  case "broadcast_error": {
523
586
  console.warn(
524
587
  "[EloquentChatSDK] Realtime broadcast error:",
525
- Ye(y.errors)
588
+ Xe(y.errors)
526
589
  );
527
590
  return;
528
591
  }
529
592
  default:
530
593
  return;
531
594
  }
532
- }), d.addEventListener("close", () => {
533
- E("WebSocket closed");
534
- }), d.addEventListener("error", () => {
535
- E("WebSocket error");
595
+ }), c.addEventListener("close", () => {
596
+ S("WebSocket closed");
597
+ }), c.addEventListener("error", () => {
598
+ S("WebSocket error");
536
599
  });
537
600
  });
538
601
  }
539
- function Co(e, t) {
602
+ function No(e, t) {
540
603
  return typeof t == "bigint" ? t.toString() : t;
541
604
  }
542
- class So {
605
+ class Bo {
543
606
  constructor(t) {
544
607
  this._getter = t, this._value = void 0;
545
608
  }
@@ -548,14 +611,14 @@ class So {
548
611
  return t !== void 0 && (this._value = t(), this._getter = void 0), this._value;
549
612
  }
550
613
  }
551
- function Io(e) {
552
- return new So(e);
614
+ function Lo(e) {
615
+ return new Bo(e);
553
616
  }
554
- function Ct(e) {
617
+ function Rt(e) {
555
618
  const t = e.startsWith("^") ? 1 : 0, o = e.endsWith("$") ? e.length - 1 : e.length;
556
619
  return e.slice(t, o);
557
620
  }
558
- function Ro(e, t, o) {
621
+ function Zo(e, t, o) {
559
622
  Object.defineProperty(e, t, {
560
623
  value: o,
561
624
  writable: !0,
@@ -563,24 +626,24 @@ function Ro(e, t, o) {
563
626
  configurable: !0
564
627
  });
565
628
  }
566
- const St = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
629
+ const zt = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
567
630
  };
568
- function rt(e) {
631
+ function nt(e) {
569
632
  return typeof e == "object" && e !== null && !Array.isArray(e);
570
633
  }
571
- function Eo(e) {
572
- if (rt(e) === !1)
634
+ function Ko(e) {
635
+ if (nt(e) === !1)
573
636
  return !1;
574
637
  const t = e.constructor;
575
638
  if (t === void 0 || typeof t != "function")
576
639
  return !0;
577
640
  const o = t.prototype;
578
- return !(rt(o) === !1 || Object.prototype.hasOwnProperty.call(o, "isPrototypeOf") === !1);
641
+ return !(nt(o) === !1 || Object.prototype.hasOwnProperty.call(o, "isPrototypeOf") === !1);
579
642
  }
580
- function dt(e) {
643
+ function gt(e) {
581
644
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
582
645
  }
583
- function zo(e, t, o) {
646
+ function Vo(e, t, o) {
584
647
  const r = new e._zod.constr(t ?? e._zod.def);
585
648
  return (!t || o?.parent) && (r._zod.parent = e), r;
586
649
  }
@@ -597,7 +660,7 @@ function Ce(e) {
597
660
  }
598
661
  return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
599
662
  }
600
- function To(e) {
663
+ function Wo(e) {
601
664
  return Object.keys(e).filter((t) => e[t]._zod.optin !== void 0 && e[t]._zod.optout === "optional");
602
665
  }
603
666
  function _e(e, t = 0) {
@@ -608,7 +671,7 @@ function _e(e, t = 0) {
608
671
  return !0;
609
672
  return !1;
610
673
  }
611
- function Mo(e, t = 0) {
674
+ function Ho(e, t = 0) {
612
675
  if (e.aborted === !0)
613
676
  return !0;
614
677
  for (let o = t; o < e.issues.length; o++)
@@ -625,7 +688,7 @@ function Pe(e, t) {
625
688
  function Ae(e) {
626
689
  return typeof e == "string" ? e : e?.message;
627
690
  }
628
- function pt(e, t, o) {
691
+ function mt(e, t, o) {
629
692
  var r;
630
693
  for (let n = t; n < e.length; n++)
631
694
  (r = e[n]).schema ?? (r.schema = o);
@@ -635,39 +698,39 @@ function Se(e, t, o) {
635
698
  const n = e.inst?._zod?.traits;
636
699
  n?.has("$ZodType") && (n.has("$ZodCheck") ? (r = e).schema ?? (r.schema = e.inst) : e.schema = e.inst);
637
700
  const a = e.schema !== e.inst ? e.schema?._zod.def?.error : void 0, l = e.message ? e.message : Ae(e.inst?._zod.def?.error?.(e)) ?? Ae(a?.(e)) ?? Ae(t?.error?.(e)) ?? Ae(o.customError?.(e)) ?? Ae(o.localeError?.(e)) ?? "Invalid input", s = {};
638
- for (const c of Object.keys(e))
639
- c === "inst" || c === "schema" || c === "continue" || c === "input" || c === "__proto__" || (s[c] = e[c]);
701
+ for (const u of Object.keys(e))
702
+ u === "inst" || u === "schema" || u === "continue" || u === "input" || u === "__proto__" || (s[u] = e[u]);
640
703
  return s.path ?? (s.path = []), s.message = l, t?.reportInput && (s.input = e.input), s;
641
704
  }
642
- function Ao(e, t) {
705
+ function Fo(e, t) {
643
706
  for (const o in t) {
644
707
  const r = Object.getOwnPropertyDescriptor(t, o);
645
- r.get ? Object.defineProperty(e, o, { ...r, enumerable: !1 }) : Oo(e, o, r.value);
708
+ r.get ? Object.defineProperty(e, o, { ...r, enumerable: !1 }) : Jo(e, o, r.value);
646
709
  }
647
710
  }
648
- function Ue(e, t, o, r = !0) {
711
+ function De(e, t, o, r = !0) {
649
712
  return Object.defineProperty(e, t, { configurable: !0, writable: !0, enumerable: r, value: o }), o;
650
713
  }
651
- function Po(e, t, o) {
652
- return Ue(e, t, o, !1);
714
+ function Go(e, t, o) {
715
+ return De(e, t, o, !1);
653
716
  }
654
- function Oo(e, t, o) {
717
+ function Jo(e, t, o) {
655
718
  Object.defineProperty(e, t, {
656
719
  configurable: !0,
657
720
  get() {
658
- return this == null ? o : Ue(this, t, o.bind(this));
721
+ return this == null ? o : De(this, t, o.bind(this));
659
722
  },
660
723
  set(r) {
661
- Ue(this, t, r);
724
+ De(this, t, r);
662
725
  }
663
726
  });
664
727
  }
665
- function Uo(e, t) {
728
+ function Yo(e, t) {
666
729
  const o = Object.getPrototypeOf(e);
667
730
  return t in o ? void 0 : o;
668
731
  }
669
- let Xe, qe = !1;
670
- const jo = {
732
+ let Qe, qe = !1;
733
+ const Xo = {
671
734
  configurable: !0,
672
735
  get() {
673
736
  qe = !0;
@@ -675,14 +738,14 @@ const jo = {
675
738
  };
676
739
  function be(e, t, o) {
677
740
  const r = Object.getPrototypeOf(e._zod);
678
- if (t in r && Xe !== e._zod) {
679
- Xe = void 0;
741
+ if (t in r && Qe !== e._zod) {
742
+ Qe = void 0;
680
743
  return;
681
744
  }
682
- Xe = e._zod, Object.defineProperty(r, t, {
745
+ Qe = e._zod, Object.defineProperty(r, t, {
683
746
  configurable: !0,
684
747
  get() {
685
- Object.defineProperty(this, t, jo);
748
+ Object.defineProperty(this, t, Xo);
686
749
  const n = qe;
687
750
  qe = !1;
688
751
  try {
@@ -697,8 +760,8 @@ function be(e, t, o) {
697
760
  }
698
761
  });
699
762
  }
700
- function Do(e, t, o, r) {
701
- const n = Uo(e, t);
763
+ function Qo(e, t, o, r) {
764
+ const n = Yo(e, t);
702
765
  n && Object.defineProperty(n, t, {
703
766
  configurable: !0,
704
767
  get() {
@@ -710,18 +773,18 @@ function Do(e, t, o, r) {
710
773
  }
711
774
  });
712
775
  }
713
- var ht;
714
- const Qe = { value: void 0, enumerable: !1 };
715
- let ft = "captureStackTrace" in Error ? Error : null;
716
- function $o(e) {
717
- const t = ft;
776
+ var bt;
777
+ const et = { value: void 0, enumerable: !1 };
778
+ let vt = "captureStackTrace" in Error ? Error : null;
779
+ function er(e) {
780
+ const t = vt;
718
781
  if (t) {
719
782
  const o = t.stackTraceLimit;
720
783
  if (typeof o == "number") {
721
784
  try {
722
785
  t.stackTraceLimit = 0;
723
786
  } catch {
724
- return ft = null, new e();
787
+ return vt = null, new e();
725
788
  }
726
789
  try {
727
790
  return new e();
@@ -734,42 +797,42 @@ function $o(e) {
734
797
  }
735
798
  function Q(e, t, o, r) {
736
799
  const n = {};
737
- function a(d) {
738
- this.def = d, this.constr = p, this.traits = /* @__PURE__ */ new Set();
800
+ function a(c) {
801
+ this.def = c, this.constr = p, this.traits = /* @__PURE__ */ new Set();
739
802
  }
740
803
  a.prototype = n;
741
804
  const l = o, s = l && /* @__PURE__ */ new WeakSet();
742
- function c(d, h) {
743
- if (d._zod) {
744
- if (d._zod.traits.has(e))
805
+ function u(c, h) {
806
+ if (c._zod) {
807
+ if (c._zod.traits.has(e))
745
808
  return;
746
809
  } else {
747
- Qe.value = new a(h);
810
+ et.value = new a(h);
748
811
  try {
749
- Object.defineProperty(d, "_zod", Qe);
812
+ Object.defineProperty(c, "_zod", et);
750
813
  } finally {
751
- Qe.value = void 0;
814
+ et.value = void 0;
752
815
  }
753
816
  }
754
- if (d._zod.traits.add(e), t(d, h), s) {
755
- const g = Object.getPrototypeOf(d), R = d._zod.constr.prototype;
817
+ if (c._zod.traits.add(e), t(c, h), s) {
818
+ const g = Object.getPrototypeOf(c), R = c._zod.constr.prototype;
756
819
  let q = g;
757
820
  for (; q && q !== R; )
758
821
  q = Object.getPrototypeOf(q);
759
822
  const z = q ?? g;
760
- s.has(z) || (s.add(z), Ao(z, l));
823
+ s.has(z) || (s.add(z), Fo(z, l));
761
824
  }
762
825
  const f = p.prototype;
763
826
  for (const g in f)
764
- Object.prototype.hasOwnProperty.call(f, g) && (g in d || (d[g] = f[g].bind(d)));
827
+ Object.prototype.hasOwnProperty.call(f, g) && (g in c || (c[g] = f[g].bind(c)));
765
828
  }
766
829
  const i = r?.Parent ?? Object;
767
- class u extends i {
830
+ class d extends i {
768
831
  }
769
- Object.defineProperty(u, "name", { value: e });
770
- function p(d) {
771
- const h = r?.Parent ? $o(u) : this;
772
- c(h, d);
832
+ Object.defineProperty(d, "name", { value: e });
833
+ function p(c) {
834
+ const h = r?.Parent ? er(d) : this;
835
+ u(h, c);
773
836
  const f = h._zod.deferred;
774
837
  if (f) {
775
838
  for (const R of f)
@@ -779,8 +842,8 @@ function Q(e, t, o, r) {
779
842
  const g = globalThis.__zod_globalConfig?.postProcessor;
780
843
  return g && g(h), h;
781
844
  }
782
- return Object.defineProperty(p, "init", { value: c }), Object.defineProperty(p, Symbol.hasInstance, {
783
- value: (d) => r?.Parent && d instanceof r.Parent ? !0 : d?._zod?.traits?.has(e)
845
+ return Object.defineProperty(p, "init", { value: u }), Object.defineProperty(p, Symbol.hasInstance, {
846
+ value: (c) => r?.Parent && c instanceof r.Parent ? !0 : c?._zod?.traits?.has(e)
784
847
  }), Object.defineProperty(p, "name", { value: e }), p;
785
848
  }
786
849
  class Oe extends Error {
@@ -788,27 +851,27 @@ class Oe extends Error {
788
851
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
789
852
  }
790
853
  }
791
- (ht = globalThis).__zod_globalConfig ?? (ht.__zod_globalConfig = {});
792
- const Ne = globalThis.__zod_globalConfig;
854
+ (bt = globalThis).__zod_globalConfig ?? (bt.__zod_globalConfig = {});
855
+ const Ze = globalThis.__zod_globalConfig;
793
856
  function ye(e) {
794
- return e && Object.assign(Ne, e), Ne;
857
+ return e && Object.assign(Ze, e), Ze;
795
858
  }
796
- function Bo() {
859
+ function tr() {
797
860
  const e = this._zod;
798
- return e.message ?? (e.message = JSON.stringify(e.def, Co, 2)), e.message;
861
+ return e.message ?? (e.message = JSON.stringify(e.def, No, 2)), e.message;
799
862
  }
800
- function Lo(e) {
863
+ function or(e) {
801
864
  this._zod.message = e;
802
865
  }
803
- const No = {
804
- get: Bo,
805
- set: Lo,
866
+ const rr = {
867
+ get: tr,
868
+ set: or,
806
869
  enumerable: !0,
807
870
  configurable: !0
808
- }, et = { value: void 0, enumerable: !1 }, gt = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]), Zo = (e, t) => {
809
- e.name = "$ZodError", et.value = t, Object.defineProperty(e, "issues", et), et.value = void 0, Object.defineProperty(e, "message", No);
871
+ }, tt = { value: void 0, enumerable: !1 }, wt = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]), nr = (e, t) => {
872
+ e.name = "$ZodError", tt.value = t, Object.defineProperty(e, "issues", tt), tt.value = void 0, Object.defineProperty(e, "message", rr);
810
873
  const o = Object.getPrototypeOf(e);
811
- gt.has(o) || (gt.add(o), Object.defineProperty(o, "toString", {
874
+ wt.has(o) || (wt.add(o), Object.defineProperty(o, "toString", {
812
875
  configurable: !0,
813
876
  enumerable: !1,
814
877
  get() {
@@ -819,38 +882,38 @@ const No = {
819
882
  Object.defineProperty(this, "toString", { value: r, configurable: !0, writable: !0 });
820
883
  }
821
884
  }));
822
- }, He = Q("$ZodError", Zo, void 0, {
885
+ }, We = Q("$ZodError", nr, void 0, {
823
886
  Parent: Error
824
- }), Ko = (e) => {
887
+ }), ar = (e) => {
825
888
  const t = (o, r, n, a) => {
826
889
  const l = n ? { ...n, async: !1 } : { async: !1 }, s = o._zod.run({ value: r, issues: [] }, l);
827
890
  if (s instanceof Promise)
828
891
  throw new Oe();
829
892
  if (s.issues.length) {
830
- const c = new (a?.Err ?? e)(s.issues.map((i) => Se(i, l, ye())));
831
- throw St(c, a?.callee ?? t), c;
893
+ const u = new (a?.Err ?? e)(s.issues.map((i) => Se(i, l, ye())));
894
+ throw zt(u, a?.callee ?? t), u;
832
895
  }
833
896
  return s.value;
834
897
  };
835
898
  return t;
836
- }, Ho = /* @__PURE__ */ Ko(He), Vo = (e) => {
899
+ }, ir = /* @__PURE__ */ ar(We), sr = (e) => {
837
900
  const t = async (o, r, n, a) => {
838
901
  const l = n ? { ...n, async: !0 } : { async: !0 };
839
902
  let s = o._zod.run({ value: r, issues: [] }, l);
840
903
  if (s instanceof Promise && (s = await s), s.issues.length) {
841
- const c = new (a?.Err ?? e)(s.issues.map((i) => Se(i, l, ye())));
842
- throw St(c, a?.callee ?? t), c;
904
+ const u = new (a?.Err ?? e)(s.issues.map((i) => Se(i, l, ye())));
905
+ throw zt(u, a?.callee ?? t), u;
843
906
  }
844
907
  return s.value;
845
908
  };
846
909
  return t;
847
- }, Wo = /* @__PURE__ */ Vo(He), Fo = (e) => (t, o, r) => {
910
+ }, lr = /* @__PURE__ */ sr(We), cr = (e) => (t, o, r) => {
848
911
  const n = r ? { ...r, async: !1 } : { async: !1 }, a = t._zod.run({ value: o, issues: [] }, n);
849
912
  if (a instanceof Promise)
850
913
  throw new Oe();
851
- return a.issues.length ? It(e, a.issues, n) : { success: !0, data: a.value };
852
- }, Jo = /* @__PURE__ */ Fo(He);
853
- function It(e, t, o) {
914
+ return a.issues.length ? Tt(e, a.issues, n) : { success: !0, data: a.value };
915
+ }, ur = /* @__PURE__ */ cr(We);
916
+ function Tt(e, t, o) {
854
917
  let r;
855
918
  return {
856
919
  success: !1,
@@ -862,17 +925,17 @@ function It(e, t, o) {
862
925
  }
863
926
  };
864
927
  }
865
- const Go = (e) => async (t, o, r) => {
928
+ const dr = (e) => async (t, o, r) => {
866
929
  const n = r ? { ...r, async: !0 } : { async: !0 };
867
930
  let a = t._zod.run({ value: o, issues: [] }, n);
868
- return a instanceof Promise && (a = await a), a.issues.length ? It(e, a.issues, n) : { success: !0, data: a.value };
869
- }, Yo = /* @__PURE__ */ Go(He), Xo = /^[\s\S]{0,}$/, Qo = /^-?\d+(?:\.\d+)?$/, er = /^null$/i, tr = {
931
+ return a instanceof Promise && (a = await a), a.issues.length ? Tt(e, a.issues, n) : { success: !0, data: a.value };
932
+ }, pr = /* @__PURE__ */ dr(We), hr = /^[\s\S]{0,}$/, fr = /^-?\d+(?:\.\d+)?$/, gr = /^null$/i, mr = {
870
933
  major: 4,
871
934
  minor: 6,
872
935
  patch: 7
873
936
  }, xe = /* @__PURE__ */ Q("$ZodType", (e, t) => {
874
937
  var o;
875
- e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = tr;
938
+ e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = mr;
876
939
  const r = e._zod.def.checks, n = e._zod.traits.has("$ZodCheck") ? [e, ...r ?? []] : r?.length ? [...r] : [];
877
940
  for (const a of n)
878
941
  for (const l of a._zod.onattach)
@@ -882,88 +945,88 @@ const Go = (e) => async (t, o, r) => {
882
945
  e._zod.run = e._zod.parse;
883
946
  });
884
947
  else {
885
- const a = (s, c, i) => {
948
+ const a = (s, u, i) => {
886
949
  if (s.memo)
887
950
  return s;
888
- let u = _e(s), p;
889
- for (const d of c) {
890
- if (d._zod.def.when) {
891
- if (Mo(s) || !d._zod.def.when(s))
951
+ let d = _e(s), p;
952
+ for (const c of u) {
953
+ if (c._zod.def.when) {
954
+ if (Ho(s) || !c._zod.def.when(s))
892
955
  continue;
893
- } else if (u)
956
+ } else if (d)
894
957
  continue;
895
- const h = s.issues.length, f = d._zod.check(s);
958
+ const h = s.issues.length, f = c._zod.check(s);
896
959
  if (f instanceof Promise && i?.async === !1)
897
960
  throw new Oe();
898
961
  if (p || f instanceof Promise)
899
962
  p = (p ?? Promise.resolve()).then(async () => {
900
- await f, s.issues.length !== h && (pt(s.issues, h, e), u || (u = _e(s, h)));
963
+ await f, s.issues.length !== h && (mt(s.issues, h, e), d || (d = _e(s, h)));
901
964
  });
902
965
  else {
903
966
  if (s.issues.length === h)
904
967
  continue;
905
- pt(s.issues, h, e), u || (u = _e(s, h));
968
+ mt(s.issues, h, e), d || (d = _e(s, h));
906
969
  }
907
970
  }
908
971
  return p ? p.then(() => s) : s;
909
- }, l = (s, c, i) => {
972
+ }, l = (s, u, i) => {
910
973
  if (_e(s))
911
974
  return s.aborted = !0, s;
912
- const u = a(c, n, i);
913
- if (u instanceof Promise) {
975
+ const d = a(u, n, i);
976
+ if (d instanceof Promise) {
914
977
  if (i.async === !1)
915
978
  throw new Oe();
916
- return u.then((p) => e._zod.parse(p, i));
979
+ return d.then((p) => e._zod.parse(p, i));
917
980
  }
918
- return e._zod.parse(u, i);
981
+ return e._zod.parse(d, i);
919
982
  };
920
- e._zod.run = (s, c) => {
921
- if (c.skipChecks)
922
- return e._zod.parse(s, c);
923
- if (c.direction === "backward") {
924
- const u = e._zod.parse({ value: s.value, issues: [] }, { ...c, skipChecks: !0 });
925
- return u instanceof Promise ? u.then((p) => l(p, s, c)) : l(u, s, c);
983
+ e._zod.run = (s, u) => {
984
+ if (u.skipChecks)
985
+ return e._zod.parse(s, u);
986
+ if (u.direction === "backward") {
987
+ const d = e._zod.parse({ value: s.value, issues: [] }, { ...u, skipChecks: !0 });
988
+ return d instanceof Promise ? d.then((p) => l(p, s, u)) : l(d, s, u);
926
989
  }
927
- const i = e._zod.parse(s, c);
990
+ const i = e._zod.parse(s, u);
928
991
  if (i instanceof Promise) {
929
- if (c.async === !1)
992
+ if (u.async === !1)
930
993
  throw new Oe();
931
- return i.then((u) => a(u, n, c));
994
+ return i.then((d) => a(d, n, u));
932
995
  }
933
- return a(i, n, c);
996
+ return a(i, n, u);
934
997
  };
935
998
  }
936
999
  }, {
937
1000
  // Wrappers extend this by installing a richer factory over it; reading it eagerly would defeat the laziness.
938
1001
  get "~standard"() {
939
- return Po(this, "~standard", rr(this));
1002
+ return Go(this, "~standard", vr(this));
940
1003
  },
941
1004
  set "~standard"(e) {
942
- Ue(this, "~standard", e);
1005
+ De(this, "~standard", e);
943
1006
  }
944
- }), Rt = (e, t) => e.issues.length ? { issues: e.issues.map((o) => Se(o, t, ye())) } : { value: e.value };
945
- async function or(e, t) {
1007
+ }), Mt = (e, t) => e.issues.length ? { issues: e.issues.map((o) => Se(o, t, ye())) } : { value: e.value };
1008
+ async function br(e, t) {
946
1009
  const o = { async: !0 };
947
- return Rt(await e._zod.run({ value: t, issues: [] }, o), o);
1010
+ return Mt(await e._zod.run({ value: t, issues: [] }, o), o);
948
1011
  }
949
- function rr(e) {
1012
+ function vr(e) {
950
1013
  return {
951
1014
  validate: (t) => {
952
1015
  const o = { async: !1 };
953
1016
  try {
954
1017
  const r = e._zod.run({ value: t, issues: [] }, o);
955
1018
  if (!(r instanceof Promise))
956
- return Rt(r, o);
1019
+ return Mt(r, o);
957
1020
  } catch {
958
1021
  }
959
- return or(e, t);
1022
+ return br(e, t);
960
1023
  },
961
1024
  vendor: "zod",
962
1025
  version: 1
963
1026
  };
964
1027
  }
965
- const nr = /* @__PURE__ */ Q("$ZodString", (e, t) => {
966
- xe.init(e, t), e._zod.pattern = t.pattern ?? Xo, e._zod.parse = (o, r) => {
1028
+ const wr = /* @__PURE__ */ Q("$ZodString", (e, t) => {
1029
+ xe.init(e, t), e._zod.pattern = t.pattern ?? hr, e._zod.parse = (o, r) => {
967
1030
  if (t.coerce)
968
1031
  try {
969
1032
  o.value = String(o.value);
@@ -976,8 +1039,8 @@ const nr = /* @__PURE__ */ Q("$ZodString", (e, t) => {
976
1039
  inst: e
977
1040
  }), o;
978
1041
  };
979
- }), ar = /* @__PURE__ */ Q("$ZodNull", (e, t) => {
980
- xe.init(e, t), e._zod.pattern = er, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (o, r) => {
1042
+ }), qr = /* @__PURE__ */ Q("$ZodNull", (e, t) => {
1043
+ xe.init(e, t), e._zod.pattern = gr, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (o, r) => {
981
1044
  const n = o.value;
982
1045
  return n === null || o.issues.push({
983
1046
  expected: "null",
@@ -987,7 +1050,7 @@ const nr = /* @__PURE__ */ Q("$ZodString", (e, t) => {
987
1050
  }), o;
988
1051
  };
989
1052
  });
990
- function Ze(e, t, o, r, n, a) {
1053
+ function Ke(e, t, o, r, n, a) {
991
1054
  const l = o in r, s = a === "optional";
992
1055
  if (!(!l && s && n === "optional")) {
993
1056
  if (e.issues.length) {
@@ -1007,13 +1070,13 @@ function Ze(e, t, o, r, n, a) {
1007
1070
  e.value === void 0 ? (l || n === "defaulted" && !s) && (t.value[o] = void 0) : t.value[o] = e.value;
1008
1071
  }
1009
1072
  }
1010
- const ir = [];
1011
- function sr(e) {
1012
- const t = Object.keys(e.shape), o = Object.getOwnPropertySymbols(e.shape), r = o.length ? o : ir, n = r.length ? [...t, ...r] : t;
1073
+ const yr = [];
1074
+ function xr(e) {
1075
+ const t = Object.keys(e.shape), o = Object.getOwnPropertySymbols(e.shape), r = o.length ? o : yr, n = r.length ? [...t, ...r] : t;
1013
1076
  for (const l of n)
1014
1077
  if (!e.shape?.[l]?._zod?.traits?.has("$ZodType"))
1015
1078
  throw new Error(`Invalid element at key "${String(l)}": expected a Zod schema`);
1016
- const a = To(e.shape);
1079
+ const a = Wo(e.shape);
1017
1080
  return {
1018
1081
  ...e,
1019
1082
  allKeys: n,
@@ -1024,8 +1087,8 @@ function sr(e) {
1024
1087
  optionalKeys: new Set(a)
1025
1088
  };
1026
1089
  }
1027
- function lr(e, t, o, r, n, a, l) {
1028
- const s = [], c = n.keySet, i = n.catchall._zod, u = i.def.type, p = i.optin, d = i.optout;
1090
+ function kr(e, t, o, r, n, a, l) {
1091
+ const s = [], u = n.keySet, i = n.catchall._zod, d = i.def.type, p = i.optin, c = i.optout;
1029
1092
  let h = 0;
1030
1093
  for (const f in t) {
1031
1094
  if (l && o.issues.length !== h) {
@@ -1033,18 +1096,18 @@ function lr(e, t, o, r, n, a, l) {
1033
1096
  break;
1034
1097
  h = o.issues.length;
1035
1098
  }
1036
- if (c.has(f))
1099
+ if (u.has(f))
1037
1100
  continue;
1038
1101
  if (f === "__proto__") {
1039
- u === "never" && s.push(f);
1102
+ d === "never" && s.push(f);
1040
1103
  continue;
1041
1104
  }
1042
- if (u === "never") {
1105
+ if (d === "never") {
1043
1106
  s.push(f);
1044
1107
  continue;
1045
1108
  }
1046
1109
  const g = i.run({ value: t[f], issues: [] }, r);
1047
- g instanceof Promise ? e.push(g.then((R) => Ze(R, o, f, t, p, d))) : Ze(g, o, f, t, p, d);
1110
+ g instanceof Promise ? e.push(g.then((R) => Ke(R, o, f, t, p, c))) : Ke(g, o, f, t, p, c);
1048
1111
  }
1049
1112
  return s.length && o.issues.push({
1050
1113
  code: "unrecognized_keys",
@@ -1055,34 +1118,34 @@ function lr(e, t, o, r, n, a, l) {
1055
1118
  continue: !0
1056
1119
  }), e.length ? Promise.all(e).then(() => o) : o;
1057
1120
  }
1058
- const cr = /* @__PURE__ */ Q("$ZodObject", (e, t) => {
1121
+ const _r = /* @__PURE__ */ Q("$ZodObject", (e, t) => {
1059
1122
  xe.init(e, t);
1060
1123
  const o = Object.getOwnPropertyDescriptor(t, "shape"), r = o?.get ? o.get.raw : t.shape ?? {};
1061
1124
  if (r) {
1062
1125
  const i = () => {
1063
- const u = { ...r };
1064
- return Object.defineProperty(t, "shape", { value: u }), i.raw = u, u;
1126
+ const d = { ...r };
1127
+ return Object.defineProperty(t, "shape", { value: d }), i.raw = d, d;
1065
1128
  };
1066
1129
  i.raw = r, Object.defineProperty(t, "shape", { get: i });
1067
1130
  }
1068
- const n = Io(() => sr(t));
1131
+ const n = Lo(() => xr(t));
1069
1132
  be(e, "propValues", (i) => {
1070
- const u = i.def.shape, p = {};
1071
- for (const d in u) {
1072
- const h = u[d]._zod;
1133
+ const d = i.def.shape, p = {};
1134
+ for (const c in d) {
1135
+ const h = d[c]._zod;
1073
1136
  if (h.values) {
1074
- Object.prototype.hasOwnProperty.call(p, d) || Ro(p, d, /* @__PURE__ */ new Set());
1137
+ Object.prototype.hasOwnProperty.call(p, c) || Zo(p, c, /* @__PURE__ */ new Set());
1075
1138
  for (const f of h.values)
1076
- p[d].add(f);
1077
- h.optin !== void 0 && p[d].add(void 0);
1139
+ p[c].add(f);
1140
+ h.optin !== void 0 && p[c].add(void 0);
1078
1141
  }
1079
1142
  }
1080
1143
  return p;
1081
1144
  });
1082
- const a = rt, l = t.catchall;
1145
+ const a = nt, l = t.catchall;
1083
1146
  let s;
1084
- const c = Ne.memoizer;
1085
- c?.attach(e), e._zod.parse = (i, u) => {
1147
+ const u = Ze.memoizer;
1148
+ u?.attach(e), e._zod.parse = (i, d) => {
1086
1149
  s ?? (s = n.value);
1087
1150
  const p = i.value;
1088
1151
  if (!a(p))
@@ -1092,8 +1155,8 @@ const cr = /* @__PURE__ */ Q("$ZodObject", (e, t) => {
1092
1155
  input: p,
1093
1156
  inst: e
1094
1157
  }), i;
1095
- i.value = c ? c.alloc(e, i, {}, u) : {};
1096
- const d = [], h = s.shape, f = u?.abortEarly;
1158
+ i.value = u ? u.alloc(e, i, {}, d) : {};
1159
+ const c = [], h = s.shape, f = d?.abortEarly;
1097
1160
  let g = i.issues.length;
1098
1161
  for (const R of s.allKeys) {
1099
1162
  if (f && i.issues.length !== g) {
@@ -1103,13 +1166,13 @@ const cr = /* @__PURE__ */ Q("$ZodObject", (e, t) => {
1103
1166
  }
1104
1167
  if (R === "__proto__")
1105
1168
  continue;
1106
- const q = h[R], z = q._zod.optin, P = q._zod.optout, E = q._zod.run({ value: p[R], issues: [] }, u);
1107
- E instanceof Promise ? d.push(E.then((j) => Ze(j, i, R, p, z, P))) : Ze(E, i, R, p, z, P);
1169
+ const q = h[R], z = q._zod.optin, M = q._zod.optout, S = q._zod.run({ value: p[R], issues: [] }, d);
1170
+ S instanceof Promise ? c.push(S.then((P) => Ke(P, i, R, p, z, M))) : Ke(S, i, R, p, z, M);
1108
1171
  }
1109
- return l ? lr(d, p, i, u, n.value, e, f === !0) : d.length ? Promise.all(d).then(() => i) : i;
1172
+ return l ? kr(c, p, i, d, n.value, e, f === !0) : c.length ? Promise.all(c).then(() => i) : i;
1110
1173
  };
1111
1174
  });
1112
- function mt(e, t, o, r) {
1175
+ function qt(e, t, o, r) {
1113
1176
  for (const a of e)
1114
1177
  if (a.issues.length === 0)
1115
1178
  return t.value = a.value, t;
@@ -1121,14 +1184,14 @@ function mt(e, t, o, r) {
1121
1184
  errors: e.map((a) => a.issues.map((l) => Se(l, r, ye())))
1122
1185
  }), t);
1123
1186
  }
1124
- const ur = /* @__PURE__ */ Q("$ZodUnion", (e, t) => {
1187
+ const Cr = /* @__PURE__ */ Q("$ZodUnion", (e, t) => {
1125
1188
  xe.init(e, t), be(e, "optin", (r) => r.def.options.some((n) => n._zod.optin === "defaulted") ? "defaulted" : r.def.options.some((n) => n._zod.optin !== void 0) ? "optional" : void 0), be(e, "optout", (r) => r.def.options.some((n) => n._zod.optout === "optional") ? "optional" : void 0), be(e, "values", (r) => {
1126
1189
  if (r.def.options.every((n) => n._zod.values))
1127
1190
  return new Set(r.def.options.flatMap((n) => Array.from(n._zod.values)));
1128
1191
  }), be(e, "pattern", (r) => {
1129
1192
  if (r.def.options.every((n) => n._zod.pattern)) {
1130
1193
  const n = r.def.options.map((a) => a._zod.pattern);
1131
- return new RegExp(`^(${n.map((a) => Ct(a.source)).join("|")})$`);
1194
+ return new RegExp(`^(${n.map((a) => Rt(a.source)).join("|")})$`);
1132
1195
  }
1133
1196
  });
1134
1197
  const o = t.options.length === 1 ? t.options[0]._zod.run : null;
@@ -1138,26 +1201,26 @@ const ur = /* @__PURE__ */ Q("$ZodUnion", (e, t) => {
1138
1201
  let a = !1;
1139
1202
  const l = [];
1140
1203
  for (const s of t.options) {
1141
- const c = s._zod.run({
1204
+ const u = s._zod.run({
1142
1205
  value: r.value,
1143
1206
  issues: []
1144
1207
  }, n);
1145
- if (c instanceof Promise)
1146
- l.push(c), a = !0;
1208
+ if (u instanceof Promise)
1209
+ l.push(u), a = !0;
1147
1210
  else {
1148
- if (c.issues.length === 0)
1149
- return c;
1150
- l.push(c);
1211
+ if (u.issues.length === 0)
1212
+ return u;
1213
+ l.push(u);
1151
1214
  }
1152
1215
  }
1153
- return a ? Promise.all(l).then((s) => mt(s, r, e, n)) : mt(l, r, e, n);
1216
+ return a ? Promise.all(l).then((s) => qt(s, r, e, n)) : qt(l, r, e, n);
1154
1217
  };
1155
- }), dr = /* @__PURE__ */ Q("$ZodRecord", (e, t) => {
1218
+ }), Sr = /* @__PURE__ */ Q("$ZodRecord", (e, t) => {
1156
1219
  xe.init(e, t);
1157
- const o = Ne.memoizer;
1220
+ const o = Ze.memoizer;
1158
1221
  o?.attach(e), e._zod.parse = (r, n) => {
1159
1222
  const a = r.value;
1160
- if (!Eo(a))
1223
+ if (!Ko(a))
1161
1224
  return r.issues.push({
1162
1225
  expected: "record",
1163
1226
  code: "invalid_type",
@@ -1167,12 +1230,12 @@ const ur = /* @__PURE__ */ Q("$ZodUnion", (e, t) => {
1167
1230
  const l = [], s = t.keyType._zod.values;
1168
1231
  if (s && !t.partial) {
1169
1232
  r.value = o ? o.alloc(e, r, {}, n) : {};
1170
- const c = /* @__PURE__ */ new Set();
1171
- for (const u of s)
1172
- if (typeof u == "string" || typeof u == "number" || typeof u == "symbol") {
1173
- if (c.add(typeof u == "number" ? u.toString() : u), u === "__proto__")
1233
+ const u = /* @__PURE__ */ new Set();
1234
+ for (const d of s)
1235
+ if (typeof d == "string" || typeof d == "number" || typeof d == "symbol") {
1236
+ if (u.add(typeof d == "number" ? d.toString() : d), d === "__proto__")
1174
1237
  continue;
1175
- const p = t.keyType._zod.run({ value: u, issues: [] }, n);
1238
+ const p = t.keyType._zod.run({ value: d, issues: [] }, n);
1176
1239
  if (p instanceof Promise)
1177
1240
  throw new Error("Async schemas not supported in object keys currently");
1178
1241
  if (p.issues.length) {
@@ -1180,29 +1243,29 @@ const ur = /* @__PURE__ */ Q("$ZodUnion", (e, t) => {
1180
1243
  code: "invalid_key",
1181
1244
  origin: "record",
1182
1245
  issues: p.issues.map((f) => Se(f, n, ye())),
1183
- input: u,
1184
- path: [u],
1246
+ input: d,
1247
+ path: [d],
1185
1248
  inst: e
1186
1249
  });
1187
1250
  continue;
1188
1251
  }
1189
- const d = p.value;
1190
- if (d === "__proto__")
1252
+ const c = p.value;
1253
+ if (c === "__proto__")
1191
1254
  continue;
1192
- const h = t.valueType._zod.run({ value: a[u], issues: [] }, n);
1255
+ const h = t.valueType._zod.run({ value: a[d], issues: [] }, n);
1193
1256
  h instanceof Promise ? l.push(h.then((f) => {
1194
- f.issues.length && r.issues.push(...Pe(u, f.issues)), r.value[d] = f.value;
1195
- })) : (h.issues.length && r.issues.push(...Pe(u, h.issues)), r.value[d] = h.value);
1257
+ f.issues.length && r.issues.push(...Pe(d, f.issues)), r.value[c] = f.value;
1258
+ })) : (h.issues.length && r.issues.push(...Pe(d, h.issues)), r.value[c] = h.value);
1196
1259
  }
1197
1260
  let i;
1198
- for (const u in a)
1199
- if (!c.has(u))
1261
+ for (const d in a)
1262
+ if (!u.has(d))
1200
1263
  if (t.mode === "loose") {
1201
- if (u === "__proto__")
1264
+ if (d === "__proto__")
1202
1265
  continue;
1203
- r.value[u] = a[u];
1266
+ r.value[d] = a[d];
1204
1267
  } else
1205
- i = i ?? [], i.push(u);
1268
+ i = i ?? [], i.push(d);
1206
1269
  i && i.length > 0 && r.issues.push({
1207
1270
  code: "unrecognized_keys",
1208
1271
  input: a,
@@ -1212,54 +1275,54 @@ const ur = /* @__PURE__ */ Q("$ZodUnion", (e, t) => {
1212
1275
  });
1213
1276
  } else {
1214
1277
  r.value = o ? o.alloc(e, r, {}, n) : {};
1215
- let c;
1278
+ let u;
1216
1279
  for (const i of Reflect.ownKeys(a)) {
1217
1280
  if (i === "__proto__" || !Object.prototype.propertyIsEnumerable.call(a, i))
1218
1281
  continue;
1219
- let u = t.keyType._zod.run({ value: i, issues: [] }, n);
1220
- if (u instanceof Promise)
1282
+ let d = t.keyType._zod.run({ value: i, issues: [] }, n);
1283
+ if (d instanceof Promise)
1221
1284
  throw new Error("Async schemas not supported in object keys currently");
1222
- if (typeof i == "string" && Qo.test(i) && u.issues.length) {
1285
+ if (typeof i == "string" && fr.test(i) && d.issues.length) {
1223
1286
  const f = t.keyType._zod.run({ value: Number(i), issues: [] }, n);
1224
1287
  if (f instanceof Promise)
1225
1288
  throw new Error("Async schemas not supported in object keys currently");
1226
- f.issues.length === 0 && (u = f);
1289
+ f.issues.length === 0 && (d = f);
1227
1290
  }
1228
- if (u.issues.length) {
1229
- t.mode === "loose" ? r.value[i] = a[i] : s ? (c = c ?? [], c.push(i)) : r.issues.push({
1291
+ if (d.issues.length) {
1292
+ t.mode === "loose" ? r.value[i] = a[i] : s ? (u = u ?? [], u.push(i)) : r.issues.push({
1230
1293
  code: "invalid_key",
1231
1294
  origin: "record",
1232
- issues: u.issues.map((f) => Se(f, n, ye())),
1295
+ issues: d.issues.map((f) => Se(f, n, ye())),
1233
1296
  input: i,
1234
1297
  path: [i],
1235
1298
  inst: e
1236
1299
  });
1237
1300
  continue;
1238
1301
  }
1239
- const d = u.value;
1240
- if (d === "__proto__")
1302
+ const c = d.value;
1303
+ if (c === "__proto__")
1241
1304
  continue;
1242
1305
  const h = t.valueType._zod.run({ value: a[i], issues: [] }, n);
1243
1306
  h instanceof Promise ? l.push(h.then((f) => {
1244
- f.issues.length && r.issues.push(...Pe(i, f.issues)), r.value[d] = f.value;
1245
- })) : (h.issues.length && r.issues.push(...Pe(i, h.issues)), r.value[d] = h.value);
1307
+ f.issues.length && r.issues.push(...Pe(i, f.issues)), r.value[c] = f.value;
1308
+ })) : (h.issues.length && r.issues.push(...Pe(i, h.issues)), r.value[c] = h.value);
1246
1309
  }
1247
- c && c.length > 0 && r.issues.push({
1310
+ u && u.length > 0 && r.issues.push({
1248
1311
  code: "unrecognized_keys",
1249
1312
  input: a,
1250
1313
  inst: e,
1251
- keys: c,
1314
+ keys: u,
1252
1315
  continue: !0
1253
1316
  });
1254
1317
  }
1255
1318
  return l.length ? Promise.all(l).then(() => r) : r;
1256
1319
  };
1257
- }), pr = /* @__PURE__ */ Q("$ZodLiteral", (e, t) => {
1320
+ }), Ir = /* @__PURE__ */ Q("$ZodLiteral", (e, t) => {
1258
1321
  xe.init(e, t);
1259
1322
  const o = new Set(t.values);
1260
1323
  e._zod.values = o, be(e, "pattern", (r) => {
1261
1324
  const n = r.def.values;
1262
- return new RegExp(n.length ? `^(${n.map((a) => typeof a == "string" ? dt(a) : a ? dt(a.toString()) : String(a)).join("|")})$` : "^[^\\s\\S]$");
1325
+ return new RegExp(n.length ? `^(${n.map((a) => typeof a == "string" ? gt(a) : a ? gt(a.toString()) : String(a)).join("|")})$` : "^[^\\s\\S]$");
1263
1326
  }), e._zod.parse = (r, n) => {
1264
1327
  const a = r.value;
1265
1328
  return o.has(a) || r.issues.push({
@@ -1269,21 +1332,21 @@ const ur = /* @__PURE__ */ Q("$ZodUnion", (e, t) => {
1269
1332
  inst: e
1270
1333
  }), r;
1271
1334
  };
1272
- }), hr = /* @__PURE__ */ Q("$ZodNullable", (e, t) => {
1335
+ }), Er = /* @__PURE__ */ Q("$ZodNullable", (e, t) => {
1273
1336
  xe.init(e, t), be(e, "optin", (o) => o.def.innerType._zod.optin), be(e, "optout", (o) => o.def.innerType._zod.optout), be(e, "pattern", (o) => {
1274
1337
  const r = o.def.innerType._zod.pattern;
1275
- return r ? new RegExp(`^(${Ct(r.source)}|null)$`) : void 0;
1338
+ return r ? new RegExp(`^(${Rt(r.source)}|null)$`) : void 0;
1276
1339
  }), be(e, "values", (o) => o.def.innerType._zod.values ? /* @__PURE__ */ new Set([...o.def.innerType._zod.values, null]) : void 0), e._zod.parse = (o, r) => o.value === null ? o : t.innerType._zod.run(o, r);
1277
1340
  });
1278
- function fr(e) {
1341
+ function Rr(e) {
1279
1342
  return e.checks && (e.checks = [...e.checks]), e;
1280
1343
  }
1281
1344
  // @__NO_SIDE_EFFECTS__
1282
- function gr(e, t) {
1283
- return new e(fr({ type: "string", ...Ce(t) }));
1345
+ function zr(e, t) {
1346
+ return new e(Rr({ type: "string", ...Ce(t) }));
1284
1347
  }
1285
1348
  // @__NO_SIDE_EFFECTS__
1286
- function mr(e, t) {
1349
+ function Tr(e, t) {
1287
1350
  return new e({
1288
1351
  type: "null",
1289
1352
  ...Ce(t)
@@ -1299,19 +1362,19 @@ const Ie = /* @__PURE__ */ Q("ZodMiniType", (e, t) => {
1299
1362
  return this.check;
1300
1363
  },
1301
1364
  set with(e) {
1302
- Ue(this, "with", e);
1365
+ De(this, "with", e);
1303
1366
  },
1304
1367
  parse(e, t) {
1305
- return Ho(this, e, t, { callee: this.parse });
1368
+ return ir(this, e, t, { callee: this.parse });
1306
1369
  },
1307
1370
  parseAsync(e, t) {
1308
- return Wo(this, e, t, { callee: this.parseAsync });
1371
+ return lr(this, e, t, { callee: this.parseAsync });
1309
1372
  },
1310
1373
  safeParse(e, t) {
1311
- return Jo(this, e, t);
1374
+ return ur(this, e, t);
1312
1375
  },
1313
1376
  safeParseAsync(e, t) {
1314
- return Yo(this, e, t);
1377
+ return pr(this, e, t);
1315
1378
  },
1316
1379
  check(...e) {
1317
1380
  const t = this.def;
@@ -1324,7 +1387,7 @@ const Ie = /* @__PURE__ */ Q("ZodMiniType", (e, t) => {
1324
1387
  }, { parent: !0 });
1325
1388
  },
1326
1389
  clone(e, t) {
1327
- return zo(this, e, t);
1390
+ return Vo(this, e, t);
1328
1391
  },
1329
1392
  brand() {
1330
1393
  return this;
@@ -1335,167 +1398,167 @@ const Ie = /* @__PURE__ */ Q("ZodMiniType", (e, t) => {
1335
1398
  apply(e, ...t) {
1336
1399
  return t.length === 0 ? e(this) : e(this, ...t);
1337
1400
  }
1338
- }), br = /* @__PURE__ */ Q("ZodMiniString", (e, t) => {
1339
- nr.init(e, t), Ie.init(e, t);
1401
+ }), Mr = /* @__PURE__ */ Q("ZodMiniString", (e, t) => {
1402
+ wr.init(e, t), Ie.init(e, t);
1340
1403
  });
1341
1404
  // @__NO_SIDE_EFFECTS__
1342
1405
  function T(e) {
1343
- return /* @__PURE__ */ gr(br, e);
1406
+ return /* @__PURE__ */ zr(Mr, e);
1344
1407
  }
1345
- const vr = /* @__PURE__ */ Q("ZodMiniNull", (e, t) => {
1346
- ar.init(e, t), Ie.init(e, t);
1408
+ const Ar = /* @__PURE__ */ Q("ZodMiniNull", (e, t) => {
1409
+ qr.init(e, t), Ie.init(e, t);
1347
1410
  });
1348
1411
  // @__NO_SIDE_EFFECTS__
1349
- function wr(e) {
1350
- return /* @__PURE__ */ mr(vr, e);
1412
+ function Pr(e) {
1413
+ return /* @__PURE__ */ Tr(Ar, e);
1351
1414
  }
1352
- const qr = /* @__PURE__ */ Q("ZodMiniObject", (e, t) => {
1353
- cr.init(e, t), Ie.init(e, t), Do(e, "shape", (o) => o._zod.def.shape, !1);
1415
+ const Or = /* @__PURE__ */ Q("ZodMiniObject", (e, t) => {
1416
+ _r.init(e, t), Ie.init(e, t), Qo(e, "shape", (o) => o._zod.def.shape, !1);
1354
1417
  });
1355
1418
  // @__NO_SIDE_EFFECTS__
1356
- function B(e, t) {
1419
+ function N(e, t) {
1357
1420
  const o = {
1358
1421
  type: "object",
1359
1422
  shape: e ?? {},
1360
1423
  ...Ce(t)
1361
1424
  };
1362
- return new qr(o);
1425
+ return new Or(o);
1363
1426
  }
1364
- const yr = /* @__PURE__ */ Q("ZodMiniUnion", (e, t) => {
1365
- ur.init(e, t), Ie.init(e, t);
1427
+ const Ur = /* @__PURE__ */ Q("ZodMiniUnion", (e, t) => {
1428
+ Cr.init(e, t), Ie.init(e, t);
1366
1429
  });
1367
1430
  // @__NO_SIDE_EFFECTS__
1368
- function xr(e, t) {
1369
- return new yr({
1431
+ function jr(e, t) {
1432
+ return new Ur({
1370
1433
  type: "union",
1371
1434
  options: e,
1372
1435
  ...Ce(t)
1373
1436
  });
1374
1437
  }
1375
- const bt = /* @__PURE__ */ Q("ZodMiniRecord", (e, t) => {
1376
- dr.init(e, t), Ie.init(e, t);
1438
+ const yt = /* @__PURE__ */ Q("ZodMiniRecord", (e, t) => {
1439
+ Sr.init(e, t), Ie.init(e, t);
1377
1440
  });
1378
1441
  // @__NO_SIDE_EFFECTS__
1379
- function kr(e, t, o) {
1380
- return !t || !t._zod ? new bt({
1442
+ function Dr(e, t, o) {
1443
+ return !t || !t._zod ? new yt({
1381
1444
  type: "record",
1382
1445
  keyType: /* @__PURE__ */ T(),
1383
1446
  valueType: e,
1384
1447
  ...Ce(t)
1385
- }) : new bt({
1448
+ }) : new yt({
1386
1449
  type: "record",
1387
1450
  keyType: e,
1388
1451
  valueType: t,
1389
1452
  ...Ce(o)
1390
1453
  });
1391
1454
  }
1392
- const _r = /* @__PURE__ */ Q("ZodMiniLiteral", (e, t) => {
1393
- pr.init(e, t), Ie.init(e, t);
1455
+ const $r = /* @__PURE__ */ Q("ZodMiniLiteral", (e, t) => {
1456
+ Ir.init(e, t), Ie.init(e, t);
1394
1457
  });
1395
1458
  // @__NO_SIDE_EFFECTS__
1396
1459
  function ge(e, t) {
1397
- return new _r({
1460
+ return new $r({
1398
1461
  type: "literal",
1399
1462
  values: Array.isArray(e) ? e : [e],
1400
1463
  ...Ce(t)
1401
1464
  });
1402
1465
  }
1403
- const Cr = /* @__PURE__ */ Q("ZodMiniNullable", (e, t) => {
1404
- hr.init(e, t), Ie.init(e, t);
1466
+ const Nr = /* @__PURE__ */ Q("ZodMiniNullable", (e, t) => {
1467
+ Er.init(e, t), Ie.init(e, t);
1405
1468
  });
1406
1469
  // @__NO_SIDE_EFFECTS__
1407
- function st(e) {
1408
- return new Cr({
1470
+ function lt(e) {
1471
+ return new Nr({
1409
1472
  type: "nullable",
1410
1473
  innerType: e
1411
1474
  });
1412
1475
  }
1413
1476
  ye({ jitless: !0 });
1414
- const Sr = /* @__PURE__ */ B({
1477
+ const Br = /* @__PURE__ */ N({
1415
1478
  type: /* @__PURE__ */ ge("utterance"),
1416
1479
  content: /* @__PURE__ */ T(),
1417
1480
  role: /* @__PURE__ */ T()
1418
- }), Ir = /* @__PURE__ */ B({
1481
+ }), Lr = /* @__PURE__ */ N({
1419
1482
  type: /* @__PURE__ */ ge("agent_cognition"),
1420
1483
  content: /* @__PURE__ */ T()
1421
- }), Rr = /* @__PURE__ */ B({
1484
+ }), Zr = /* @__PURE__ */ N({
1422
1485
  type: /* @__PURE__ */ ge("chat_closed_expired"),
1423
1486
  content: /* @__PURE__ */ T()
1424
- }), Er = /* @__PURE__ */ B({
1487
+ }), Kr = /* @__PURE__ */ N({
1425
1488
  type: /* @__PURE__ */ ge("agent_captured_url"),
1426
1489
  content: /* @__PURE__ */ T()
1427
- }), zr = /* @__PURE__ */ B({
1490
+ }), Vr = /* @__PURE__ */ N({
1428
1491
  type: /* @__PURE__ */ ge("agent_topic"),
1429
1492
  content: /* @__PURE__ */ T()
1430
- }), Tr = /* @__PURE__ */ B({
1493
+ }), Wr = /* @__PURE__ */ N({
1431
1494
  type: /* @__PURE__ */ ge("agent_summary"),
1432
1495
  content: /* @__PURE__ */ T()
1433
- }), Mr = /* @__PURE__ */ B({
1496
+ }), Hr = /* @__PURE__ */ N({
1434
1497
  type: /* @__PURE__ */ ge("chat_rating"),
1435
1498
  content: /* @__PURE__ */ T()
1436
- }), Ar = /* @__PURE__ */ B({
1499
+ }), Fr = /* @__PURE__ */ N({
1437
1500
  type: /* @__PURE__ */ ge("breadcrumb"),
1438
1501
  content: /* @__PURE__ */ T()
1439
- }), Pr = /* @__PURE__ */ B({
1502
+ }), Gr = /* @__PURE__ */ N({
1440
1503
  type: /* @__PURE__ */ ge("chat_escalated"),
1441
- content: /* @__PURE__ */ wr()
1442
- }), Or = /* @__PURE__ */ B({
1504
+ content: /* @__PURE__ */ Pr()
1505
+ }), Jr = /* @__PURE__ */ N({
1443
1506
  type: /* @__PURE__ */ ge("error"),
1444
1507
  code: /* @__PURE__ */ T()
1445
- }), Ur = /* @__PURE__ */ B({
1446
- message_id: /* @__PURE__ */ st(/* @__PURE__ */ T()),
1508
+ }), Yr = /* @__PURE__ */ N({
1509
+ message_id: /* @__PURE__ */ lt(/* @__PURE__ */ T()),
1447
1510
  created_at: /* @__PURE__ */ T(),
1448
- data: Sr
1449
- }), jr = /* @__PURE__ */ B({
1511
+ data: Br
1512
+ }), Xr = /* @__PURE__ */ N({
1450
1513
  created_at: /* @__PURE__ */ T(),
1451
- data: Or
1452
- }), Dr = /* @__PURE__ */ B({
1514
+ data: Jr
1515
+ }), Qr = /* @__PURE__ */ N({
1453
1516
  created_at: /* @__PURE__ */ T(),
1454
- data: Ir
1455
- }), $r = /* @__PURE__ */ B({
1456
- message_id: /* @__PURE__ */ st(/* @__PURE__ */ T()),
1517
+ data: Lr
1518
+ }), en = /* @__PURE__ */ N({
1519
+ message_id: /* @__PURE__ */ lt(/* @__PURE__ */ T()),
1457
1520
  created_at: /* @__PURE__ */ T(),
1458
- data: Rr
1459
- }), Br = /* @__PURE__ */ B({
1521
+ data: Zr
1522
+ }), tn = /* @__PURE__ */ N({
1460
1523
  created_at: /* @__PURE__ */ T(),
1461
- data: Er
1462
- }), Lr = /* @__PURE__ */ B({
1524
+ data: Kr
1525
+ }), on = /* @__PURE__ */ N({
1463
1526
  created_at: /* @__PURE__ */ T(),
1464
- data: zr
1465
- }), Nr = /* @__PURE__ */ B({
1527
+ data: Vr
1528
+ }), rn = /* @__PURE__ */ N({
1466
1529
  created_at: /* @__PURE__ */ T(),
1467
- data: Tr
1468
- }), Zr = /* @__PURE__ */ B({
1530
+ data: Wr
1531
+ }), nn = /* @__PURE__ */ N({
1469
1532
  created_at: /* @__PURE__ */ T(),
1470
- data: Mr
1471
- }), Kr = /* @__PURE__ */ B({
1533
+ data: Hr
1534
+ }), an = /* @__PURE__ */ N({
1472
1535
  created_at: /* @__PURE__ */ T(),
1473
- data: Ar
1474
- }), Hr = /* @__PURE__ */ B({
1475
- message_id: /* @__PURE__ */ st(/* @__PURE__ */ T()),
1536
+ data: Fr
1537
+ }), sn = /* @__PURE__ */ N({
1538
+ message_id: /* @__PURE__ */ lt(/* @__PURE__ */ T()),
1476
1539
  created_at: /* @__PURE__ */ T(),
1477
- data: Pr
1478
- }), Vr = /* @__PURE__ */ xr([
1479
- Ur,
1480
- jr,
1481
- Dr,
1482
- Br,
1483
- Lr,
1484
- Nr,
1485
- $r,
1486
- Zr,
1487
- Kr,
1488
- Hr
1489
- ]), Wr = /* @__PURE__ */ B({
1540
+ data: Gr
1541
+ }), ln = /* @__PURE__ */ jr([
1542
+ Yr,
1543
+ Xr,
1544
+ Qr,
1545
+ tn,
1546
+ on,
1547
+ rn,
1548
+ en,
1549
+ nn,
1550
+ an,
1551
+ sn
1552
+ ]), cn = /* @__PURE__ */ N({
1490
1553
  url: /* @__PURE__ */ T(),
1491
- mimeType: /* @__PURE__ */ ge(Ut),
1554
+ mimeType: /* @__PURE__ */ ge(Lt),
1492
1555
  name: /* @__PURE__ */ T()
1493
- }), Fr = /* @__PURE__ */ B({
1494
- data: Wr
1495
- }), Jr = /* @__PURE__ */ B({
1496
- data: /* @__PURE__ */ B({ urls: /* @__PURE__ */ kr(/* @__PURE__ */ T(), /* @__PURE__ */ T()) })
1497
- }), Gr = 500, Yr = 3e4, Xr = 6e4, Qr = 1e4, en = 12e4;
1498
- function tn({
1556
+ }), un = /* @__PURE__ */ N({
1557
+ data: cn
1558
+ }), dn = /* @__PURE__ */ N({
1559
+ data: /* @__PURE__ */ N({ urls: /* @__PURE__ */ Dr(/* @__PURE__ */ T(), /* @__PURE__ */ T()) })
1560
+ }), pn = 500, hn = 3e4, fn = 6e4, gn = 1e4, mn = 12e4;
1561
+ function bn({
1499
1562
  chatSettings: e,
1500
1563
  chatId: t,
1501
1564
  messages: o,
@@ -1504,47 +1567,47 @@ function tn({
1504
1567
  onCognition: a,
1505
1568
  onCognitionComplete: l,
1506
1569
  onError: s,
1507
- onChatClosed: c,
1570
+ onChatClosed: u,
1508
1571
  onAgentCapturedUrl: i,
1509
- onAgentTopic: u,
1572
+ onAgentTopic: d,
1510
1573
  onAgentSummary: p,
1511
- onRatingRequest: d,
1574
+ onRatingRequest: c,
1512
1575
  onBreadcrumb: h,
1513
1576
  fetchHistory: f,
1514
1577
  getChatToken: g,
1515
- backupPollingInterval: R = Xr
1578
+ backupPollingInterval: R = fn
1516
1579
  }) {
1517
1580
  const q = $(/* @__PURE__ */ new Set());
1518
- V(() => {
1519
- for (const A of o)
1520
- A.id && q.current.add(A.id);
1581
+ K(() => {
1582
+ for (const O of o)
1583
+ O.id && q.current.add(O.id);
1521
1584
  }, [o]);
1522
- const z = $(null), P = $(null), E = $(0), j = $(null), O = $(null), m = $(null), y = $(null), _ = $(0), oe = $(!1), ee = $(!1), de = F(r), ae = F(n), D = F(a), J = F(l), N = F(s), W = F(c), re = F(i), le = F(u), G = F(p), ie = F(d), Y = F(h), ce = F(f), ve = F(g), { publishError: pe } = Ke(), ne = e?.app_sync_url, he = e?.app_sync_api_key, b = !!(ne && he), x = F(ne), U = F(he), M = v(() => {
1585
+ const z = $(null), M = $(null), S = $(0), P = $(null), U = $(null), m = $(null), y = $(null), _ = $(0), oe = $(!1), ee = $(!1), de = F(r), ae = F(n), D = F(a), G = F(l), L = F(s), H = F(u), re = F(i), le = F(d), J = F(p), ie = F(c), Y = F(h), ce = F(f), ve = F(g), { publishError: pe } = Ve(), ne = e?.app_sync_url, he = e?.app_sync_api_key, b = !!(ne && he), x = F(ne), j = F(he), A = v(() => {
1523
1586
  z.current && (z.current.close(), z.current = null);
1524
1587
  }, []), k = v(() => {
1525
- O.current && (clearInterval(O.current), O.current = null);
1526
- }, []), S = v(() => {
1588
+ U.current && (clearInterval(U.current), U.current = null);
1589
+ }, []), I = v(() => {
1527
1590
  _.current = 0, m.current && (clearInterval(m.current), m.current = null), y.current && (clearTimeout(y.current), y.current = null);
1528
1591
  }, []), w = v(() => {
1529
- _.current = Math.max(0, _.current - 1), _.current === 0 && S();
1530
- }, [S]), Z = v(() => {
1531
- j.current && (clearTimeout(j.current), j.current = null);
1592
+ _.current = Math.max(0, _.current - 1), _.current === 0 && I();
1593
+ }, [I]), Z = v(() => {
1594
+ P.current && (clearTimeout(P.current), P.current = null);
1532
1595
  }, []), X = $(() => {
1533
- }), K = v(
1534
- async (A) => {
1535
- M();
1536
- const se = x.current, we = U.current;
1596
+ }), V = v(
1597
+ async (O) => {
1598
+ A();
1599
+ const se = x.current, we = j.current;
1537
1600
  if (!se || !we)
1538
1601
  throw new Error("Cannot connect: AppSync settings not available");
1539
- const te = ve.current(), Fe = await _o({
1602
+ const te = ve.current(), Ge = await $o({
1540
1603
  httpEndpoint: se,
1541
1604
  auth: te ? { authorizationToken: te } : { apiKey: we },
1542
- channel: `/default/chat/${A}`,
1605
+ channel: `/default/chat/${O}`,
1543
1606
  onDisconnect: () => {
1544
1607
  z.current = null, X.current();
1545
1608
  },
1546
- onEvent: (je) => {
1547
- const Te = Vr.safeParse(je);
1609
+ onEvent: ($e) => {
1610
+ const Te = ln.safeParse($e);
1548
1611
  if (!Te.success) {
1549
1612
  console.error("Invalid conversation response:", Te.error);
1550
1613
  return;
@@ -1552,49 +1615,49 @@ function tn({
1552
1615
  const me = Te.data;
1553
1616
  switch (me.data.type) {
1554
1617
  case "utterance": {
1555
- const L = me, ue = L.message_id ?? crypto.randomUUID();
1618
+ const B = me, ue = B.message_id ?? crypto.randomUUID();
1556
1619
  if (q.current.has(ue))
1557
1620
  return;
1558
- q.current.add(ue), w(), J.current(), de.current(
1621
+ q.current.add(ue), w(), G.current(), de.current(
1559
1622
  {
1560
1623
  message_id: ue,
1561
1624
  response: {
1562
1625
  id: ue,
1563
- type: L.data.type,
1564
- content: L.data.content
1626
+ type: B.data.type,
1627
+ content: B.data.content
1565
1628
  }
1566
1629
  },
1567
- A
1630
+ O
1568
1631
  );
1569
1632
  return;
1570
1633
  }
1571
1634
  case "error": {
1572
1635
  const ue = parseInt(me.data.code);
1573
- pe({ code: ue, message: jt(ue) }), N.current?.();
1636
+ pe({ code: ue, message: Zt(ue) }), L.current?.();
1574
1637
  return;
1575
1638
  }
1576
1639
  case "agent_cognition": {
1577
- const L = me;
1578
- D.current(L.data.content);
1640
+ const B = me;
1641
+ D.current(B.data.content);
1579
1642
  return;
1580
1643
  }
1581
1644
  case "agent_captured_url": {
1582
- const L = me;
1583
- re.current?.(L.data.content);
1645
+ const B = me;
1646
+ re.current?.(B.data.content);
1584
1647
  return;
1585
1648
  }
1586
1649
  case "agent_topic": {
1587
- const L = me;
1588
- le.current?.(L.data.content);
1650
+ const B = me;
1651
+ le.current?.(B.data.content);
1589
1652
  return;
1590
1653
  }
1591
1654
  case "agent_summary": {
1592
- const L = me;
1593
- G.current?.(L.data.content);
1655
+ const B = me;
1656
+ J.current?.(B.data.content);
1594
1657
  return;
1595
1658
  }
1596
1659
  case "chat_closed_expired": {
1597
- W.current?.(), ie.current?.();
1660
+ H.current?.(), ie.current?.();
1598
1661
  return;
1599
1662
  }
1600
1663
  case "chat_rating": {
@@ -1606,7 +1669,7 @@ function tn({
1606
1669
  return;
1607
1670
  }
1608
1671
  case "chat_escalated": {
1609
- W.current?.(), ie.current?.();
1672
+ H.current?.(), ie.current?.();
1610
1673
  return;
1611
1674
  }
1612
1675
  default:
@@ -1617,112 +1680,112 @@ function tn({
1617
1680
  }
1618
1681
  }
1619
1682
  });
1620
- z.current = Fe;
1683
+ z.current = Ge;
1621
1684
  },
1622
1685
  // The *Ref entries are latest-refs (stable identities); listed to satisfy
1623
1686
  // exhaustive-deps, which can't see that useLatestRef returns a ref.
1624
1687
  [
1625
- M,
1688
+ A,
1626
1689
  w,
1627
1690
  pe,
1628
1691
  x,
1629
- U,
1692
+ j,
1630
1693
  ve,
1631
1694
  de,
1632
1695
  D,
1633
- J,
1634
- N,
1635
- W,
1696
+ G,
1697
+ L,
1698
+ H,
1636
1699
  re,
1637
1700
  le,
1638
- G,
1701
+ J,
1639
1702
  ie,
1640
1703
  Y
1641
1704
  ]
1642
- ), H = v(
1643
- async (A) => {
1705
+ ), W = v(
1706
+ async (O) => {
1644
1707
  let se;
1645
1708
  try {
1646
- se = await ce.current(A);
1709
+ se = await ce.current(O);
1647
1710
  } catch (te) {
1648
1711
  console.warn("Backup poll failed:", te);
1649
1712
  return;
1650
1713
  }
1651
- if (P.current !== A) return;
1714
+ if (M.current !== O) return;
1652
1715
  const we = se.filter(
1653
1716
  (te) => (te.role === "user" || te.role === "assistant") && !!te.message_id
1654
1717
  );
1655
1718
  for (const te of we)
1656
1719
  te.role !== "assistant" || q.current.has(te.message_id) || (q.current.add(te.message_id), w());
1657
- ae.current(we, A);
1720
+ ae.current(we, O);
1658
1721
  },
1659
1722
  [ce, ae, w]
1660
1723
  ), fe = v(
1661
- (A) => {
1662
- k(), O.current = setInterval(
1663
- () => H(A),
1724
+ (O) => {
1725
+ k(), U.current = setInterval(
1726
+ () => W(O),
1664
1727
  R
1665
1728
  );
1666
1729
  },
1667
- [k, H, R]
1668
- ), Re = v(
1669
- function A() {
1670
- if (!oe.current || ee.current || j.current)
1730
+ [k, W, R]
1731
+ ), Ee = v(
1732
+ function O() {
1733
+ if (!oe.current || ee.current || P.current)
1671
1734
  return;
1672
- const se = P.current;
1735
+ const se = M.current;
1673
1736
  if (!se) return;
1674
1737
  const we = Math.min(
1675
- Gr * Math.pow(2, E.current),
1676
- Yr
1738
+ pn * Math.pow(2, S.current),
1739
+ hn
1677
1740
  );
1678
- E.current += 1, j.current = setTimeout(async () => {
1679
- j.current = null, ee.current = !0;
1741
+ S.current += 1, P.current = setTimeout(async () => {
1742
+ P.current = null, ee.current = !0;
1680
1743
  try {
1681
- await K(se), E.current = 0, ee.current = !1, await H(se);
1744
+ await V(se), S.current = 0, ee.current = !1, await W(se);
1682
1745
  } catch {
1683
- ee.current = !1, A();
1746
+ ee.current = !1, O();
1684
1747
  }
1685
1748
  }, we);
1686
1749
  },
1687
- [K, H]
1750
+ [V, W]
1688
1751
  );
1689
- V(() => {
1690
- X.current = Re;
1752
+ K(() => {
1753
+ X.current = Ee;
1691
1754
  });
1692
- const Ee = v(
1693
- async (A) => {
1694
- if (!b || !A)
1755
+ const Re = v(
1756
+ async (O) => {
1757
+ if (!b || !O)
1695
1758
  throw new Error(
1696
1759
  "Cannot connect: AppSync settings not ready or missing chatId"
1697
1760
  );
1698
- Z(), oe.current = !0, P.current = A, E.current = 0, fe(A), await K(A);
1761
+ Z(), oe.current = !0, M.current = O, S.current = 0, fe(O), await V(O);
1699
1762
  },
1700
- [b, Z, K, fe]
1763
+ [b, Z, V, fe]
1701
1764
  ), ze = v(() => {
1702
- oe.current = !1, P.current = null, E.current = 0, Z(), k(), S(), M();
1703
- }, [Z, k, S, M]), Ve = v(() => {
1704
- const A = P.current;
1705
- if (!A) return;
1765
+ oe.current = !1, M.current = null, S.current = 0, Z(), k(), I(), A();
1766
+ }, [Z, k, I, A]), He = v(() => {
1767
+ const O = M.current;
1768
+ if (!O) return;
1706
1769
  const se = _.current + 1;
1707
- S(), _.current = se, m.current = setInterval(
1708
- () => H(A),
1709
- Qr
1770
+ I(), _.current = se, m.current = setInterval(
1771
+ () => W(O),
1772
+ gn
1710
1773
  ), y.current = setTimeout(
1711
- S,
1712
- en
1774
+ I,
1775
+ mn
1713
1776
  );
1714
- }, [H, S]), We = v(() => {
1777
+ }, [W, I]), Fe = v(() => {
1715
1778
  q.current.clear();
1716
1779
  }, []);
1717
- return V(() => {
1718
- !t || !b || P.current === t || Ee(t).catch((A) => {
1719
- console.error("Failed to eagerly connect:", A), P.current === t && (oe.current = !0, X.current());
1720
- }).then(() => H(t));
1721
- }, [t, b, Ee, H]), V(() => () => {
1780
+ return K(() => {
1781
+ !t || !b || M.current === t || Re(t).catch((O) => {
1782
+ console.error("Failed to eagerly connect:", O), M.current === t && (oe.current = !0, X.current());
1783
+ }).then(() => W(t));
1784
+ }, [t, b, Re, W]), K(() => () => {
1722
1785
  ze();
1723
- }, [ze]), { connect: Ee, disconnect: ze, clearProcessedIds: We, expectReply: Ve };
1786
+ }, [ze]), { connect: Re, disconnect: ze, clearProcessedIds: Fe, expectReply: He };
1724
1787
  }
1725
- function on(e) {
1788
+ function vn(e) {
1726
1789
  return {
1727
1790
  id: e.message_id,
1728
1791
  content: e.response.content ?? "",
@@ -1730,7 +1793,7 @@ function on(e) {
1730
1793
  timestamp: (/* @__PURE__ */ new Date()).toISOString()
1731
1794
  };
1732
1795
  }
1733
- function rn(e) {
1796
+ function wn(e) {
1734
1797
  return {
1735
1798
  id: crypto.randomUUID(),
1736
1799
  content: e,
@@ -1739,7 +1802,7 @@ function rn(e) {
1739
1802
  isWelcomeMessage: !0
1740
1803
  };
1741
1804
  }
1742
- function nn() {
1805
+ function qn() {
1743
1806
  return {
1744
1807
  id: crypto.randomUUID(),
1745
1808
  content: "",
@@ -1748,7 +1811,7 @@ function nn() {
1748
1811
  isRatingRequest: !0
1749
1812
  };
1750
1813
  }
1751
- function an() {
1814
+ function yn() {
1752
1815
  return {
1753
1816
  id: crypto.randomUUID(),
1754
1817
  content: "This conversation is closed, please start a new chat.",
@@ -1757,7 +1820,7 @@ function an() {
1757
1820
  isNotice: !0
1758
1821
  };
1759
1822
  }
1760
- function sn(e, t) {
1823
+ function xn(e, t) {
1761
1824
  return {
1762
1825
  ...e,
1763
1826
  id: crypto.randomUUID(),
@@ -1774,12 +1837,12 @@ function sn(e, t) {
1774
1837
  } : {}
1775
1838
  };
1776
1839
  }
1777
- function vt(e, t, o) {
1840
+ function xt(e, t, o) {
1778
1841
  return e.map(
1779
1842
  (r) => r.id === t ? o(r) : r
1780
1843
  );
1781
1844
  }
1782
- function ln(e, t, o) {
1845
+ function kn(e, t, o) {
1783
1846
  return {
1784
1847
  ...e,
1785
1848
  attachments: e.attachments?.map(
@@ -1787,13 +1850,13 @@ function ln(e, t, o) {
1787
1850
  )
1788
1851
  };
1789
1852
  }
1790
- function cn(e, t) {
1853
+ function _n(e, t) {
1791
1854
  return e.flatMap((o) => o.id !== t ? [o] : o.content ? [{ ...o, attachments: void 0 }] : []);
1792
1855
  }
1793
- function un(e) {
1856
+ function Cn(e) {
1794
1857
  return !!e.isWelcomeMessage || !!e.isThinking || !!e.isRatingRequest || !!e.isNotice;
1795
1858
  }
1796
- function dn(e) {
1859
+ function Sn(e) {
1797
1860
  return {
1798
1861
  id: e.message_id,
1799
1862
  content: e.response.content,
@@ -1801,46 +1864,46 @@ function dn(e) {
1801
1864
  timestamp: e.created_at
1802
1865
  };
1803
1866
  }
1804
- function wt(e, t) {
1867
+ function kt(e, t) {
1805
1868
  const o = new Set(t.map((s) => s.message_id)), r = [...e], n = [], a = [];
1806
1869
  let l = -1;
1807
1870
  for (const s of t) {
1808
- const c = r.findIndex(({ id: d }) => d === s.message_id);
1809
- if (c !== -1) {
1810
- l = c;
1871
+ const u = r.findIndex(({ id: c }) => c === s.message_id);
1872
+ if (u !== -1) {
1873
+ l = u;
1811
1874
  continue;
1812
1875
  }
1813
- const i = pn(r, l, s.role, o);
1876
+ const i = In(r, l, s.role, o);
1814
1877
  if (i !== -1) {
1815
- const d = r[i];
1878
+ const c = r[i];
1816
1879
  r[i] = {
1817
- ...d,
1880
+ ...c,
1818
1881
  id: s.message_id,
1819
- localId: d.localId ?? d.id,
1820
- ...d.sender === "user" && { isNew: !1 }
1821
- }, a.push([d.id, s.message_id]), l = i;
1882
+ localId: c.localId ?? c.id,
1883
+ ...c.sender === "user" && { isNew: !1 }
1884
+ }, a.push([c.id, s.message_id]), l = i;
1822
1885
  continue;
1823
1886
  }
1824
- const u = l === -1 ? hn(r) : l + 1, p = dn(s);
1825
- r.splice(u, 0, p), s.role === "assistant" && n.push(p), l = u;
1887
+ const d = l === -1 ? En(r) : l + 1, p = Sn(s);
1888
+ r.splice(d, 0, p), s.role === "assistant" && n.push(p), l = d;
1826
1889
  }
1827
1890
  return { messages: r, addedReplies: n, confirmedIds: a };
1828
1891
  }
1829
- function pn(e, t, o, r) {
1892
+ function In(e, t, o, r) {
1830
1893
  for (let n = t + 1; n < e.length; n++) {
1831
1894
  const a = e[n];
1832
- if (!un(a)) {
1895
+ if (!Cn(a)) {
1833
1896
  if (r.has(a.id)) return -1;
1834
1897
  if (a.sender === o && !a.isFailed) return n;
1835
1898
  }
1836
1899
  }
1837
1900
  return -1;
1838
1901
  }
1839
- function hn(e) {
1902
+ function En(e) {
1840
1903
  const t = e.findIndex((o) => !o.isWelcomeMessage);
1841
1904
  return t === -1 ? e.length : t;
1842
1905
  }
1843
- function fn({
1906
+ function Rn({
1844
1907
  appId: e,
1845
1908
  userId: t,
1846
1909
  userName: o,
@@ -1849,32 +1912,32 @@ function fn({
1849
1912
  deviceId: a,
1850
1913
  apiClient: l,
1851
1914
  chatSettings: s,
1852
- messages: c,
1915
+ messages: u,
1853
1916
  setMessages: i,
1854
- currentChat: u,
1917
+ currentChat: d,
1855
1918
  setCurrentChat: p,
1856
- onChatClosed: d,
1919
+ onChatClosed: c,
1857
1920
  isChatClosed: h,
1858
1921
  onAgentMessage: f
1859
1922
  }) {
1860
- const { saveChatData: g, clearChatData: R, updateLastActivity: q, markChatClosed: z } = it({
1923
+ const { saveChatData: g, clearChatData: R, updateLastActivity: q, markChatClosed: z } = st({
1861
1924
  appId: e
1862
- }), { publishApiError: P, publishNetworkError: E } = Ke(), { showCognition: j, hideCognition: O } = Dt(), m = F(l), y = F(c), _ = $(0), oe = v(
1925
+ }), { publishApiError: M, publishNetworkError: S } = Ve(), { showCognition: P, hideCognition: U } = Kt(), m = F(l), y = F(u), _ = $(0), oe = v(
1863
1926
  (b, x) => {
1864
1927
  if (!b.response.content) return;
1865
- const U = !!s?.welcome_message && b.response.content === s.welcome_message, M = y.current.some(
1928
+ const j = !!s?.welcome_message && b.response.content === s.welcome_message, A = y.current.some(
1866
1929
  (w) => w.isRatingRequest
1867
1930
  ), k = y.current.some(
1868
1931
  (w) => w.id === b.message_id
1869
1932
  );
1870
- !U && !M && !k && f?.();
1871
- const S = _.current;
1933
+ !j && !A && !k && f?.();
1934
+ const I = _.current;
1872
1935
  i((w) => {
1873
- if (_.current !== S || w.some((K) => K.isRatingRequest) || w.some((K) => K.id === b.message_id) || s?.welcome_message && b.response.content === s.welcome_message)
1936
+ if (_.current !== I || w.some((V) => V.isRatingRequest) || w.some((V) => V.id === b.message_id) || s?.welcome_message && b.response.content === s.welcome_message)
1874
1937
  return w;
1875
1938
  const X = [
1876
- ...w.filter((K) => !K.isThinking),
1877
- on(b)
1939
+ ...w.filter((V) => !V.isThinking),
1940
+ vn(b)
1878
1941
  ];
1879
1942
  return g(
1880
1943
  x,
@@ -1897,28 +1960,28 @@ function fn({
1897
1960
  ]
1898
1961
  ), ee = v(
1899
1962
  (b, x) => {
1900
- const U = y.current.some(
1963
+ const j = y.current.some(
1901
1964
  (w) => w.isRatingRequest
1902
- ), M = b.filter(
1903
- (w) => !(w.role === "assistant" && (U || s?.welcome_message && w.response.content === s.welcome_message))
1965
+ ), A = b.filter(
1966
+ (w) => !(w.role === "assistant" && (j || s?.welcome_message && w.response.content === s.welcome_message))
1904
1967
  );
1905
- wt(y.current, M).addedReplies.length > 0 && f?.();
1906
- const S = _.current;
1968
+ kt(y.current, A).addedReplies.length > 0 && f?.();
1969
+ const I = _.current;
1907
1970
  i((w) => {
1908
- if (_.current !== S) return w;
1909
- const { messages: Z, addedReplies: X, confirmedIds: K } = wt(
1971
+ if (_.current !== I) return w;
1972
+ const { messages: Z, addedReplies: X, confirmedIds: V } = kt(
1910
1973
  w,
1911
- M
1974
+ A
1912
1975
  );
1913
- if (X.length === 0 && K.length === 0) return w;
1914
- const H = X.length > 0 ? Z.filter((fe) => !fe.isThinking) : Z;
1976
+ if (X.length === 0 && V.length === 0) return w;
1977
+ const W = X.length > 0 ? Z.filter((fe) => !fe.isThinking) : Z;
1915
1978
  return g(
1916
1979
  x,
1917
1980
  t,
1918
- H,
1981
+ W,
1919
1982
  a,
1920
1983
  m.current?.getChatToken()
1921
- ), H;
1984
+ ), W;
1922
1985
  });
1923
1986
  },
1924
1987
  [
@@ -1932,45 +1995,45 @@ function fn({
1932
1995
  f
1933
1996
  ]
1934
1997
  ), de = v(() => {
1935
- O(), i((b) => b.filter((x) => !x.isThinking));
1936
- }, [i, O]), ae = v(() => {
1937
- i((b) => [...b.filter((U) => !U.isRatingRequest), nn()]);
1998
+ U(), i((b) => b.filter((x) => !x.isThinking));
1999
+ }, [i, U]), ae = v(() => {
2000
+ i((b) => [...b.filter((j) => !j.isRatingRequest), qn()]);
1938
2001
  }, [i]);
1939
- V(() => {
2002
+ K(() => {
1940
2003
  }, [ae]);
1941
2004
  const D = v(
1942
2005
  (b) => m.current ? m.current.getChatHistory(b) : Promise.resolve([]),
1943
2006
  [m]
1944
- ), J = v(() => m.current?.getChatToken() ?? null, [m]), N = v(() => {
1945
- z(), d?.();
1946
- }, [z, d]), { connect: W, disconnect: re, clearProcessedIds: le, expectReply: G } = tn({
2007
+ ), G = v(() => m.current?.getChatToken() ?? null, [m]), L = v(() => {
2008
+ z(), c?.();
2009
+ }, [z, c]), { connect: H, disconnect: re, clearProcessedIds: le, expectReply: J } = bn({
1947
2010
  chatSettings: s,
1948
- chatId: u?.id ?? null,
1949
- messages: c,
2011
+ chatId: d?.id ?? null,
2012
+ messages: u,
1950
2013
  onMessage: oe,
1951
2014
  onHistory: ee,
1952
- onCognition: j,
1953
- onCognitionComplete: O,
2015
+ onCognition: P,
2016
+ onCognitionComplete: U,
1954
2017
  onError: de,
1955
- onChatClosed: N,
2018
+ onChatClosed: L,
1956
2019
  onRatingRequest: ae,
1957
- onBreadcrumb: N,
2020
+ onBreadcrumb: L,
1958
2021
  fetchHistory: D,
1959
- getChatToken: J
2022
+ getChatToken: G
1960
2023
  }), ie = v(() => {
1961
- _.current += 1, O(), re(), le(), $t(c), i(
2024
+ _.current += 1, U(), re(), le(), Vt(u), i(
1962
2025
  (b) => b.filter((x) => Array.isArray(x) ? !1 : x.isWelcomeMessage)
1963
2026
  ), R(), p(null);
1964
2027
  }, [
1965
- O,
2028
+ U,
1966
2029
  re,
1967
2030
  le,
1968
- c,
2031
+ u,
1969
2032
  R,
1970
2033
  i,
1971
2034
  p
1972
2035
  ]), Y = v(
1973
- (b, x) => i((U) => vt(U, b, x)),
2036
+ (b, x) => i((j) => xt(j, b, x)),
1974
2037
  [i]
1975
2038
  ), ce = v(
1976
2039
  async (b) => {
@@ -1980,85 +2043,85 @@ function fn({
1980
2043
  userName: o,
1981
2044
  userData: r,
1982
2045
  externalMetadata: {
1983
- searchParams: po()
2046
+ searchParams: Io()
1984
2047
  }
1985
2048
  });
1986
2049
  p({ id: x.chat_id });
1987
2050
  try {
1988
- await W(x.chat_id);
1989
- } catch (U) {
2051
+ await H(x.chat_id);
2052
+ } catch (j) {
1990
2053
  console.warn(
1991
2054
  "Failed to connect realtime channel, continuing with REST-only delivery:",
1992
- U
2055
+ j
1993
2056
  );
1994
2057
  }
1995
2058
  return x.chat_id;
1996
2059
  },
1997
- [n, t, a, o, r, p, W]
2060
+ [n, t, a, o, r, p, H]
1998
2061
  ), ve = v(
1999
- (b, x, U, M) => Promise.all(
2000
- U.map(
2001
- ({ file: k }, S) => b.uploadAttachment({
2062
+ (b, x, j, A) => Promise.all(
2063
+ j.map(
2064
+ ({ file: k }, I) => b.uploadAttachment({
2002
2065
  conversationId: x,
2003
2066
  file: k,
2004
2067
  onProgress: (w) => Y(
2005
- M,
2006
- (Z) => ln(Z, S, w)
2068
+ A,
2069
+ (Z) => kn(Z, I, w)
2007
2070
  )
2008
2071
  }).catch((w) => {
2009
- throw Bt(w, k.name);
2072
+ throw Wt(w, k.name);
2010
2073
  })
2011
2074
  )
2012
2075
  ),
2013
2076
  [Y]
2014
2077
  ), pe = v(
2015
- (b, x, U, M) => {
2016
- O(), M && i((S) => cn(S, U)), i((S) => S.filter((w) => !w.isThinking));
2017
- const k = () => Y(U, (S) => ({ ...S, isFailed: !0 }));
2018
- if (b instanceof Lt) {
2078
+ (b, x, j, A) => {
2079
+ U(), A && i((I) => _n(I, j)), i((I) => I.filter((w) => !w.isThinking));
2080
+ const k = () => Y(j, (I) => ({ ...I, isFailed: !0 }));
2081
+ if (b instanceof Ht) {
2019
2082
  k();
2020
2083
  return;
2021
2084
  }
2022
- if (b instanceof at || b instanceof Le && b.status === 403) {
2023
- E();
2085
+ if (b instanceof it || b instanceof Ue && b.status === 403) {
2086
+ S();
2024
2087
  return;
2025
2088
  }
2026
- P(b), b instanceof Le && // A 401 means an expired or closed chat token: drop the session so
2089
+ M(b), b instanceof Ue && // A 401 means an expired or closed chat token: drop the session so
2027
2090
  // the next send starts a fresh one, as for a client-side expiry.
2028
- (b.status >= 500 || b.status === 401) ? (p(null), R(), i((S) => S.filter((w) => w.id !== U)), x.reset()) : k();
2091
+ (b.status >= 500 || b.status === 401) ? (p(null), R(), i((I) => I.filter((w) => w.id !== j)), x.reset()) : k();
2029
2092
  },
2030
2093
  [
2031
- O,
2094
+ U,
2032
2095
  i,
2033
2096
  Y,
2034
- E,
2035
- P,
2097
+ S,
2098
+ M,
2036
2099
  p,
2037
2100
  R
2038
2101
  ]
2039
2102
  ), ne = v(
2040
2103
  async (b, x = []) => {
2041
- if (!l || c.some((k) => k.isRatingRequest)) return;
2104
+ if (!l || u.some((k) => k.isRatingRequest)) return;
2042
2105
  if (h) {
2043
- i((k) => [...k, an()]);
2106
+ i((k) => [...k, yn()]);
2044
2107
  return;
2045
2108
  }
2046
- const U = _.current, M = sn(b, x);
2047
- i((k) => [...k, M]), q();
2109
+ const j = _.current, A = xn(b, x);
2110
+ i((k) => [...k, A]), q();
2048
2111
  try {
2049
- const k = u?.id || await ce(l), S = await ve(
2112
+ const k = d?.id || await ce(l), I = await ve(
2050
2113
  l,
2051
2114
  k,
2052
2115
  x,
2053
- M.id
2116
+ A.id
2054
2117
  );
2055
- S.length > 0 && Y(M.id, (Z) => ({
2118
+ I.length > 0 && Y(A.id, (Z) => ({
2056
2119
  ...Z,
2057
- attachments: Nt(S, x)
2120
+ attachments: Ft(I, x)
2058
2121
  }));
2059
2122
  const w = await l.replyToConversation({
2060
2123
  text: b.content,
2061
- attachments: S,
2124
+ attachments: I,
2062
2125
  conversationId: k,
2063
2126
  userId: n || t,
2064
2127
  deviceId: a,
@@ -2066,42 +2129,42 @@ function fn({
2066
2129
  userData: r
2067
2130
  });
2068
2131
  i((Z) => {
2069
- if (_.current !== U) return Z;
2070
- const X = Z.some((H) => H.id === M.id) ? M.id : w.message_id, K = vt(Z, X, (H) => ({
2071
- ...H,
2132
+ if (_.current !== j) return Z;
2133
+ const X = Z.some((W) => W.id === A.id) ? A.id : w.message_id, V = xt(Z, X, (W) => ({
2134
+ ...W,
2072
2135
  id: w.message_id,
2073
- localId: H.localId ?? H.id,
2136
+ localId: W.localId ?? W.id,
2074
2137
  isNew: !1
2075
2138
  }));
2076
2139
  return g(
2077
2140
  k,
2078
2141
  t,
2079
- K,
2142
+ V,
2080
2143
  a,
2081
2144
  l.getChatToken()
2082
- ), K;
2083
- }), G();
2145
+ ), V;
2146
+ }), J();
2084
2147
  } catch (k) {
2085
2148
  throw pe(
2086
2149
  k,
2087
2150
  l,
2088
- M.id,
2151
+ A.id,
2089
2152
  x.length > 0
2090
2153
  ), k;
2091
2154
  }
2092
2155
  },
2093
2156
  [
2094
2157
  l,
2095
- c,
2158
+ u,
2096
2159
  h,
2097
2160
  i,
2098
2161
  q,
2099
- u?.id,
2162
+ d?.id,
2100
2163
  ce,
2101
2164
  ve,
2102
2165
  Y,
2103
2166
  g,
2104
- G,
2167
+ J,
2105
2168
  pe,
2106
2169
  n,
2107
2170
  t,
@@ -2111,10 +2174,10 @@ function fn({
2111
2174
  ]
2112
2175
  ), he = v(
2113
2176
  async (b) => {
2114
- const x = u?.id;
2177
+ const x = d?.id;
2115
2178
  !m.current || !x || await m.current.addRating(x, b);
2116
2179
  },
2117
- [u?.id, m]
2180
+ [d?.id, m]
2118
2181
  );
2119
2182
  return {
2120
2183
  onCleanMessages: ie,
@@ -2122,23 +2185,24 @@ function fn({
2122
2185
  onRateChat: he
2123
2186
  };
2124
2187
  }
2125
- const gn = { BASE_URL: "/", DEV: !1, MODE: "dev", PROD: !0, SSR: !1, VITE_API_URL: "https://chat.eloquentai.dev", VITE_CDN_URL: "https://cdn.eloquentai.dev", VITE_ENVIRONMENT: "dev", VITE_REGION_API_URL: "https://region.eloquentai.dev" };
2126
- function Et(e) {
2127
- return typeof window > "u" || typeof import.meta > "u" ? "" : gn[e] || "";
2188
+ const zn = { BASE_URL: "/", DEV: !1, MODE: "dev", PROD: !0, SSR: !1, VITE_API_URL: "https://chat.eloquentai.dev", VITE_CDN_URL: "https://cdn.eloquentai.dev", VITE_ENVIRONMENT: "dev", VITE_REGION_API_URL: "https://region.eloquentai.dev", VITE_SENTRY_DSN: `https://680ff1462c4c5bf9e1e5b570b9340be4@o4508326307889152.ingest.us.sentry.io/4509329153916928
2189
+ ` };
2190
+ function At(e) {
2191
+ return typeof window > "u" || typeof import.meta > "u" ? "" : zn[e] || "";
2128
2192
  }
2129
- const mn = Et("VITE_API_URL"), bn = Et("VITE_REGION_API_URL");
2130
- function vn() {
2131
- return mn || "";
2193
+ const Tn = At("VITE_API_URL"), Mn = At("VITE_REGION_API_URL");
2194
+ function An() {
2195
+ return Tn || "";
2132
2196
  }
2133
- function wn() {
2134
- return bn || "";
2197
+ function Pn() {
2198
+ return Mn || "";
2135
2199
  }
2136
- class qn {
2200
+ class On {
2137
2201
  httpClient;
2138
2202
  userId = null;
2139
2203
  conversationId = null;
2140
2204
  constructor(t) {
2141
- this.userId = t.userId || null, this.httpClient = new Zt(t);
2205
+ this.userId = t.userId || null, this.httpClient = new Gt(t);
2142
2206
  }
2143
2207
  getUserData() {
2144
2208
  return {
@@ -2165,7 +2229,7 @@ class qn {
2165
2229
  * Get organization data by app ID
2166
2230
  */
2167
2231
  async getOrganizationByAppId(t) {
2168
- const o = wn();
2232
+ const o = Pn();
2169
2233
  return await this.httpClient.getExternal(
2170
2234
  `${o}/by-app-id/${t}`
2171
2235
  );
@@ -2212,14 +2276,14 @@ class qn {
2212
2276
  o,
2213
2277
  t.onProgress
2214
2278
  );
2215
- return Fr.parse(r).data;
2279
+ return un.parse(r).data;
2216
2280
  }
2217
2281
  async getAttachmentUrls(t, o) {
2218
2282
  const r = await this.httpClient.post(
2219
2283
  `/v1/chat/${t}/attachments/urls`,
2220
2284
  { urls: o }
2221
2285
  );
2222
- return Jr.parse(r).data.urls;
2286
+ return dn.parse(r).data.urls;
2223
2287
  }
2224
2288
  async identifyUser(t) {
2225
2289
  const o = {
@@ -2237,62 +2301,62 @@ class qn {
2237
2301
  )).data;
2238
2302
  }
2239
2303
  }
2240
- const yn = {
2304
+ const Un = {
2241
2305
  retries: 3,
2242
2306
  minDelayMs: 200,
2243
2307
  maxDelayMs: 1e3,
2244
2308
  factor: 2
2245
2309
  };
2246
- function xn(e) {
2247
- return e instanceof at ? !0 : e instanceof Le ? e.status === 429 || e.status >= 500 : !1;
2310
+ function jn(e) {
2311
+ return e instanceof it ? !0 : e instanceof Ue ? e.status === 429 || e.status >= 500 : !1;
2248
2312
  }
2249
- function kn(e, t) {
2313
+ function Dn(e, t) {
2250
2314
  const o = t.minDelayMs * t.factor ** e, r = Math.min(o, t.maxDelayMs);
2251
2315
  return Math.random() * r;
2252
2316
  }
2253
- async function qt(e, t = {}) {
2254
- const o = { ...yn, ...t };
2317
+ async function _t(e, t = {}) {
2318
+ const o = { ...Un, ...t };
2255
2319
  for (let r = 0; ; r++)
2256
2320
  try {
2257
2321
  return await e();
2258
2322
  } catch (n) {
2259
- if (r >= o.retries || !xn(n))
2323
+ if (r >= o.retries || !jn(n))
2260
2324
  throw n;
2261
2325
  await new Promise(
2262
- (a) => setTimeout(a, kn(r, o))
2326
+ (a) => setTimeout(a, Dn(r, o))
2263
2327
  );
2264
2328
  }
2265
2329
  }
2266
- const De = /* @__PURE__ */ new Map(), $e = /* @__PURE__ */ new Map();
2267
- function _n(e, t, o) {
2330
+ const Ne = /* @__PURE__ */ new Map(), Be = /* @__PURE__ */ new Map();
2331
+ function $n(e, t, o) {
2268
2332
  const r = o?.dedupe !== !1, [n, a] = C(
2269
- () => De.get(e)
2270
- ), { publishApiError: l, publishNetworkError: s } = Ke(), [c, i] = C(void 0), [u, p] = C(!1), d = $(!0);
2271
- $(() => (d.current = !0, () => {
2272
- d.current = !1;
2333
+ () => Ne.get(e)
2334
+ ), { publishApiError: l, publishNetworkError: s } = Ve(), [u, i] = C(void 0), [d, p] = C(!1), c = $(!0);
2335
+ $(() => (c.current = !0, () => {
2336
+ c.current = !1;
2273
2337
  }));
2274
2338
  const h = v(async () => {
2275
- if (De.has(e)) {
2276
- const f = De.get(e);
2339
+ if (Ne.has(e)) {
2340
+ const f = Ne.get(e);
2277
2341
  return a(f), f;
2278
2342
  }
2279
2343
  p(!0), i(void 0);
2280
2344
  try {
2281
- if (r && $e.has(e))
2282
- return await $e.get(e);
2345
+ if (r && Be.has(e))
2346
+ return await Be.get(e);
2283
2347
  const f = t();
2284
- r && $e.set(e, f);
2348
+ r && Be.set(e, f);
2285
2349
  const g = await f;
2286
- return De.set(e, g), d.current && a(g), g;
2350
+ return Ne.set(e, g), c.current && a(g), g;
2287
2351
  } catch (f) {
2288
- throw f instanceof at || f instanceof Le && f.status === 403 ? s() : l(f), d.current && i(f), f;
2352
+ throw f instanceof it || f instanceof Ue && f.status === 403 ? s() : l(f), c.current && i(f), f;
2289
2353
  } finally {
2290
- $e.delete(e), d.current && p(!1);
2354
+ Be.delete(e), c.current && p(!1);
2291
2355
  }
2292
2356
  }, [e, r, t, l, s]);
2293
- return { data: n, error: c, isLoading: u, fetch: h };
2357
+ return { data: n, error: u, isLoading: d, fetch: h };
2294
2358
  }
2295
- function yt(e, t) {
2359
+ function Ct(e, t) {
2296
2360
  const o = e?.deviceId || crypto.randomUUID();
2297
2361
  return e?.userId ? e.externalId !== t ? { userId: e.userId, externalId: t, deviceId: o } : {
2298
2362
  userId: e.userId,
@@ -2300,11 +2364,11 @@ function yt(e, t) {
2300
2364
  deviceId: o
2301
2365
  } : t ? { userId: t, externalId: t, deviceId: o } : { userId: crypto.randomUUID(), externalId: null, deviceId: o };
2302
2366
  }
2303
- function Cn(e) {
2304
- const { appId: t, initialUserId: o } = e, { getSavedChatData: r } = it({ appId: t }), [n, a] = C(
2305
- () => yt(r(), o)
2367
+ function Nn(e) {
2368
+ const { appId: t, initialUserId: o } = e, { getSavedChatData: r } = st({ appId: t }), [n, a] = C(
2369
+ () => Ct(r(), o)
2306
2370
  ), [l, s] = C(o);
2307
- return l !== o && (s(o), a(yt(r(), o))), {
2371
+ return l !== o && (s(o), a(Ct(r(), o))), {
2308
2372
  // Identity is available synchronously; kept in the contract because
2309
2373
  // consumers (SDK boot) still key off it.
2310
2374
  isReady: !0,
@@ -2313,7 +2377,7 @@ function Cn(e) {
2313
2377
  externalId: n.externalId
2314
2378
  };
2315
2379
  }
2316
- function Sn({
2380
+ function Bn({
2317
2381
  apiUrl: e,
2318
2382
  appId: t,
2319
2383
  initialUserId: o,
@@ -2324,60 +2388,60 @@ function Sn({
2324
2388
  userId: a,
2325
2389
  externalId: l,
2326
2390
  deviceId: s,
2327
- isReady: c
2328
- } = Cn({ appId: t, initialUserId: o }), { isChatExpired: i, clearChatData: u, getSavedChatData: p } = it({
2391
+ isReady: u
2392
+ } = Nn({ appId: t, initialUserId: o }), { isChatExpired: i, clearChatData: d, getSavedChatData: p } = st({
2329
2393
  appId: t
2330
- }), { current: d } = $(e || vn()), [h] = C(
2331
- new qn({
2332
- baseURL: d,
2394
+ }), { current: c } = $(e || An()), [h] = C(
2395
+ new On({
2396
+ baseURL: c,
2333
2397
  appId: t
2334
2398
  })
2335
- ), [f, g] = C(null), [R, q] = C(null), [z, P] = C([]), [E, j] = C(!1), [O, m] = C(!1), [y, _] = C(!0), ee = _n(`sdk-boot-${t}`, () => h.boot()).fetch;
2336
- V(() => {
2399
+ ), [f, g] = C(null), [R, q] = C(null), [z, M] = C([]), [S, P] = C(!1), [U, m] = C(!1), [y, _] = C(!0), ee = $n(`sdk-boot-${t}`, () => h.boot()).fetch;
2400
+ K(() => {
2337
2401
  if (i())
2338
- u();
2402
+ d();
2339
2403
  else {
2340
2404
  const {
2341
2405
  conversationId: ae,
2342
2406
  userId: D,
2343
- messages: J,
2344
- isChatClosed: N,
2345
- chatToken: W
2407
+ messages: G,
2408
+ isChatClosed: L,
2409
+ chatToken: H
2346
2410
  } = p();
2347
2411
  ae && D && (q({
2348
2412
  id: ae
2349
- }), h.setChatToken(W ?? null), J && J.length > 0 && P(J), N && m(!0));
2413
+ }), h.setChatToken(H ?? null), G && G.length > 0 && M(G), L && m(!0));
2350
2414
  }
2351
- }, [p, i, u, h]);
2415
+ }, [p, i, d, h]);
2352
2416
  const de = $(!1);
2353
- return V(() => {
2417
+ return K(() => {
2354
2418
  if (de.current) return;
2355
2419
  de.current = !0, (async () => {
2356
- const [D, J] = await ct(
2357
- qt(() => h.getOrganizationByAppId(t))
2420
+ const [D, G] = await ut(
2421
+ _t(() => h.getOrganizationByAppId(t))
2358
2422
  );
2359
- if (J) {
2360
- console.error("Failed to fetch organization data:", J), _(!1), j(!0);
2423
+ if (G) {
2424
+ console.error("Failed to fetch organization data:", G), _(!1), P(!0);
2361
2425
  return;
2362
2426
  }
2363
2427
  h.setRegion(D.region);
2364
- const [N, W] = await ct(qt(ee));
2365
- if (W) {
2366
- _(!1), j(!0);
2428
+ const [L, H] = await ut(_t(ee));
2429
+ if (H) {
2430
+ _(!1), P(!0);
2367
2431
  return;
2368
2432
  }
2369
2433
  const {
2370
2434
  conversationId: re,
2371
2435
  userId: le,
2372
- messages: G
2436
+ messages: J
2373
2437
  } = p();
2374
- re && le && G.some(Kt) && P(
2375
- await Ht(h, re, G)
2438
+ re && le && J.some(Jt) && M(
2439
+ await Yt(h, re, J)
2376
2440
  );
2377
- const ie = N.chat_settings.welcome_message;
2378
- g(N.chat_settings), _(N.chat_settings.is_active ?? !0), ie && P((Y) => Y.length > 0 || Y.some((ce) => ce.isWelcomeMessage) ? Y : [rn(ie)]), j(!0);
2441
+ const ie = L.chat_settings.welcome_message;
2442
+ g(L.chat_settings), _(L.chat_settings.is_active ?? !0), ie && M((Y) => Y.length > 0 || Y.some((ce) => ce.isWelcomeMessage) ? Y : [wn(ie)]), P(!0);
2379
2443
  })();
2380
- }, [c, h, t, ee, p]), {
2444
+ }, [u, h, t, ee, p]), {
2381
2445
  userId: a,
2382
2446
  userName: r,
2383
2447
  userData: n,
@@ -2387,26 +2451,26 @@ function Sn({
2387
2451
  chatSettings: f,
2388
2452
  currentChat: R,
2389
2453
  messages: z,
2390
- isReady: E,
2391
- isChatClosed: O,
2454
+ isReady: S,
2455
+ isChatClosed: U,
2392
2456
  isChatActive: y
2393
2457
  };
2394
2458
  }
2395
- const zt = "(max-width: 640px)";
2396
- function In() {
2397
- return typeof window > "u" ? !1 : window.matchMedia(zt).matches;
2459
+ const Pt = "(max-width: 640px)";
2460
+ function Ln() {
2461
+ return typeof window > "u" ? !1 : window.matchMedia(Pt).matches;
2398
2462
  }
2399
- function Rn(e) {
2400
- const [t, o] = C(In), [r, n] = C(
2463
+ function Zn(e) {
2464
+ const [t, o] = C(Ln), [r, n] = C(
2401
2465
  null
2402
2466
  ), a = e ?? t, l = typeof window > "u";
2403
- return V(() => {
2467
+ return K(() => {
2404
2468
  if (l) return;
2405
- const s = window.matchMedia(zt), c = (i) => {
2469
+ const s = window.matchMedia(Pt), u = (i) => {
2406
2470
  o(i.matches);
2407
2471
  };
2408
- return c(s), s.addEventListener("change", c), () => s.removeEventListener("change", c);
2409
- }, [l]), V(() => {
2472
+ return u(s), s.addEventListener("change", u), () => s.removeEventListener("change", u);
2473
+ }, [l]), K(() => {
2410
2474
  if (l) return;
2411
2475
  const s = document.createElement("div");
2412
2476
  return s.className = "eloquent-ai-chat-portal", s.style.position = "relative", s.style.zIndex = "30", document.body.appendChild(s), n(s), () => {
@@ -2418,36 +2482,36 @@ function Rn(e) {
2418
2482
  portalContainer: r
2419
2483
  };
2420
2484
  }
2421
- const xt = 1245, En = [
2485
+ const St = 1245, Kn = [
2422
2486
  [2.32, 0.4],
2423
2487
  [4.25, 0.18]
2424
- ], zn = [
2488
+ ], Vn = [
2425
2489
  { start: 0, duration: 0.22, level: 0.45 },
2426
2490
  { start: 0.16, duration: 0.2, level: 0.25 }
2427
- ], Tn = 0.3, Mn = 3e-3, kt = 1e-4;
2428
- function _t(e, t, o, r, n, a) {
2491
+ ], Wn = 0.3, Hn = 3e-3, It = 1e-4;
2492
+ function Et(e, t, o, r, n, a) {
2429
2493
  const l = e.createOscillator(), s = e.createGain();
2430
- l.type = "sine", l.frequency.setValueAtTime(o, n), s.gain.setValueAtTime(kt, n), s.gain.exponentialRampToValueAtTime(r, n + Mn), s.gain.exponentialRampToValueAtTime(kt, n + a), l.connect(s).connect(t), l.start(n), l.stop(n + a + 0.05);
2494
+ l.type = "sine", l.frequency.setValueAtTime(o, n), s.gain.setValueAtTime(It, n), s.gain.exponentialRampToValueAtTime(r, n + Hn), s.gain.exponentialRampToValueAtTime(It, n + a), l.connect(s).connect(t), l.start(n), l.stop(n + a + 0.05);
2431
2495
  }
2432
- function An(e) {
2496
+ function Fn(e) {
2433
2497
  const t = e.createGain();
2434
- t.gain.value = Tn;
2498
+ t.gain.value = Wn;
2435
2499
  const o = e.createBiquadFilter();
2436
2500
  o.type = "lowpass", o.frequency.value = 6e3, t.connect(o).connect(e.destination);
2437
2501
  const r = e.currentTime + 0.02;
2438
- zn.forEach((n) => {
2439
- _t(
2502
+ Vn.forEach((n) => {
2503
+ Et(
2440
2504
  e,
2441
2505
  t,
2442
- xt,
2506
+ St,
2443
2507
  n.level,
2444
2508
  r + n.start,
2445
2509
  n.duration
2446
- ), En.forEach(([a, l]) => {
2447
- _t(
2510
+ ), Kn.forEach(([a, l]) => {
2511
+ Et(
2448
2512
  e,
2449
2513
  t,
2450
- xt * a,
2514
+ St * a,
2451
2515
  n.level * l,
2452
2516
  r + n.start,
2453
2517
  n.duration * 0.35
@@ -2455,66 +2519,66 @@ function An(e) {
2455
2519
  });
2456
2520
  });
2457
2521
  }
2458
- const nt = "eloquentai:notification-sound-muted", Pn = 3e3;
2459
- function On() {
2522
+ const at = "eloquentai:notification-sound-muted", Gn = 3e3;
2523
+ function Jn() {
2460
2524
  try {
2461
- return window.localStorage.getItem(nt) === "true";
2525
+ return window.localStorage.getItem(at) === "true";
2462
2526
  } catch {
2463
2527
  return !1;
2464
2528
  }
2465
2529
  }
2466
- function Un(e) {
2530
+ function Yn(e) {
2467
2531
  try {
2468
- e ? window.localStorage.setItem(nt, "true") : window.localStorage.removeItem(nt);
2532
+ e ? window.localStorage.setItem(at, "true") : window.localStorage.removeItem(at);
2469
2533
  } catch {
2470
2534
  }
2471
2535
  }
2472
- function jn(e) {
2536
+ function Xn(e) {
2473
2537
  return document.visibilityState === "visible" && document.hasFocus() && e;
2474
2538
  }
2475
- function Dn() {
2539
+ function Qn() {
2476
2540
  const e = window.webkitAudioContext;
2477
2541
  return window.AudioContext ?? e ?? null;
2478
2542
  }
2479
- function $n({
2543
+ function ea({
2480
2544
  isEnabled: e,
2481
2545
  isOpen: t
2482
2546
  }) {
2483
- const [o, r] = C(On), n = $(null), a = $(0), l = F(t), s = F(o), c = v(() => {
2547
+ const [o, r] = C(Jn), n = $(null), a = $(0), l = F(t), s = F(o), u = v(() => {
2484
2548
  if (!e) return;
2485
- const p = Dn();
2549
+ const p = Qn();
2486
2550
  if (!p) return;
2487
2551
  try {
2488
2552
  n.current ??= new p();
2489
2553
  } catch {
2490
2554
  return;
2491
2555
  }
2492
- const d = n.current.state;
2493
- (d === "suspended" || d === "interrupted") && n.current.resume().catch(() => {
2556
+ const c = n.current.state;
2557
+ (c === "suspended" || c === "interrupted") && n.current.resume().catch(() => {
2494
2558
  });
2495
2559
  }, [e]);
2496
- V(() => {
2560
+ K(() => {
2497
2561
  if (!e) return;
2498
- const p = { capture: !0 }, d = () => c();
2499
- return window.addEventListener("pointerdown", d, p), window.addEventListener("keydown", d, p), () => {
2500
- window.removeEventListener("pointerdown", d, p), window.removeEventListener("keydown", d, p);
2562
+ const p = { capture: !0 }, c = () => u();
2563
+ return window.addEventListener("pointerdown", c, p), window.addEventListener("keydown", c, p), () => {
2564
+ window.removeEventListener("pointerdown", c, p), window.removeEventListener("keydown", c, p);
2501
2565
  };
2502
- }, [e, c]);
2566
+ }, [e, u]);
2503
2567
  const i = v(() => {
2504
- if (!e || s.current || jn(l.current)) return;
2568
+ if (!e || s.current || Xn(l.current)) return;
2505
2569
  const p = n.current;
2506
2570
  if (!p || p.state !== "running") return;
2507
- const d = Date.now();
2508
- d - a.current < Pn || (a.current = d, An(p));
2509
- }, [e, s, l]), u = v(() => {
2571
+ const c = Date.now();
2572
+ c - a.current < Gn || (a.current = c, Fn(p));
2573
+ }, [e, s, l]), d = v(() => {
2510
2574
  r((p) => !p);
2511
2575
  }, []);
2512
- return V(() => {
2513
- Un(o);
2514
- }, [o]), { notify: i, unlock: c, isMuted: o, toggleMuted: u };
2576
+ return K(() => {
2577
+ Yn(o);
2578
+ }, [o]), { notify: i, unlock: u, isMuted: o, toggleMuted: d };
2515
2579
  }
2516
- const Bn = 2, Ln = (e) => `eloquent-ai:chat-widget-closed-${e}`;
2517
- function Nn({
2580
+ const ta = 2, oa = (e) => `eloquent-ai:chat-widget-closed-${e}`;
2581
+ function ra({
2518
2582
  environment: e,
2519
2583
  apiUrl: t,
2520
2584
  appId: o,
@@ -2523,119 +2587,123 @@ function Nn({
2523
2587
  userData: a,
2524
2588
  chatProps: l,
2525
2589
  isMobile: s,
2526
- isInitiallyOpen: c,
2590
+ isInitiallyOpen: u,
2527
2591
  hasCloseButton: i,
2528
- hasCleanChatButton: u,
2592
+ hasCleanChatButton: d,
2529
2593
  // Deprecated aliases, kept until hosts migrate to the is/has names above.
2530
2594
  initialOpen: p,
2531
- closeButton: d,
2595
+ closeButton: c,
2532
2596
  cleanChatButton: h,
2533
2597
  proactiveMessageHideDelay: f = 5e3,
2534
2598
  isAlwaysOpen: g = !1,
2535
2599
  hasCleanChatButtonOverride: R
2536
2600
  }) {
2537
- const { isMobile: q, portalContainer: z } = Rn(s), {
2538
- userId: P,
2539
- externalId: E,
2540
- deviceId: j,
2541
- apiClient: O,
2601
+ const { isMobile: q, portalContainer: z } = Zn(s), {
2602
+ userId: M,
2603
+ externalId: S,
2604
+ deviceId: P,
2605
+ apiClient: U,
2542
2606
  chatSettings: m,
2543
2607
  currentChat: y,
2544
2608
  messages: _,
2545
2609
  isReady: oe,
2546
2610
  isChatClosed: ee,
2547
2611
  isChatActive: de
2548
- } = Sn({
2612
+ } = Bn({
2549
2613
  apiUrl: t,
2550
2614
  appId: o,
2551
2615
  initialUserId: r,
2552
2616
  userName: n,
2553
2617
  userData: a
2554
- }), ae = uo({ chatProps: l, chatSettings: m }), D = c ?? p ?? !1, J = i ?? d ?? !0, N = u ?? h ?? !0, W = Ln(o), [re, le] = C(() => g ? !0 : ut(W) === "true" || q ? !1 : D ?? q), [G, ie] = C(!1);
2555
- V(() => {
2556
- if (!oe || G || (ie(!0), g)) return;
2557
- const L = m?.initial_open;
2558
- L != null && (q || L && ut(W) === "true" || le(L));
2618
+ });
2619
+ K(() => {
2620
+ vo({ userId: S || M, deviceId: P, environment: e });
2621
+ }, [S, M, P, e]);
2622
+ const ae = So({ chatProps: l, chatSettings: m }), D = u ?? p ?? !1, G = i ?? c ?? !0, L = d ?? h ?? !0, H = oa(o), [re, le] = C(() => g ? !0 : dt(H) === "true" || q ? !1 : D ?? q), [J, ie] = C(!1);
2623
+ K(() => {
2624
+ if (!oe || J || (ie(!0), g)) return;
2625
+ const B = m?.initial_open;
2626
+ B != null && (q || B && dt(H) === "true" || le(B));
2559
2627
  }, [
2560
2628
  oe,
2561
- G,
2629
+ J,
2562
2630
  m?.initial_open,
2563
2631
  q,
2564
- W,
2632
+ H,
2565
2633
  g
2566
2634
  ]);
2567
- const Y = m?.initial_open ?? D, ce = m?.close_button ?? J, ve = R ?? m?.clean_chat_button ?? N, pe = m?.proactive_message_hide_delay ?? f, ne = $n({
2635
+ const Y = m?.initial_open ?? D, ce = m?.close_button ?? G, ve = R ?? m?.clean_chat_button ?? L, pe = m?.proactive_message_hide_delay ?? f, ne = ea({
2568
2636
  isEnabled: m?.notification_sound !== !1,
2569
2637
  isOpen: re
2570
2638
  }), { unlock: he } = ne, b = v(
2571
- (L) => {
2639
+ (B) => {
2572
2640
  g || (he(), le((ue) => {
2573
- const lt = typeof L == "function" ? L(ue) : L;
2574
- return lt ? co(W) : lo(W, "true", Bn), lt;
2641
+ const ct = typeof B == "function" ? B(ue) : B;
2642
+ return ct ? fo(H) : ho(H, "true", ta), ct;
2575
2643
  }));
2576
2644
  },
2577
- [W, g, he]
2578
- ), x = Vt(re, 400), [U, M] = C(
2645
+ [H, g, he]
2646
+ ), x = Xt(re, 400), [j, A] = C(
2579
2647
  l?.messages ?? []
2580
- ), [k, S] = C(y), [w, Z] = C(!1), [X, K] = C(_);
2581
- X !== _ && (K(_), _.length > 0 && M(_));
2582
- const [H, fe] = C(y);
2583
- H !== y && (fe(y), y && S(y));
2584
- const [Re, Ee] = C(ee);
2585
- Re !== ee && (Ee(ee), ee && Z(!0));
2648
+ ), [k, I] = C(y), [w, Z] = C(!1), [X, V] = C(_);
2649
+ X !== _ && (V(_), _.length > 0 && A(_));
2650
+ const [W, fe] = C(y);
2651
+ W !== y && (fe(y), y && I(y));
2652
+ const [Ee, Re] = C(ee);
2653
+ Ee !== ee && (Re(ee), ee && Z(!0));
2586
2654
  const ze = v(() => {
2587
2655
  Z(!0);
2588
- }, []), [Ve, We] = C(!1), A = oe && m?.auto_display_welcome_message && m?.welcome_message ? m.welcome_message : "", se = {
2589
- text: A,
2590
- isVisible: A !== "" && !Ve,
2656
+ }, []), [He, Fe] = C(!1), O = oe && m?.auto_display_welcome_message && m?.welcome_message ? m.welcome_message : "", se = {
2657
+ text: O,
2658
+ isVisible: O !== "" && !He,
2591
2659
  autoHideDelay: pe
2592
- }, { onSendMessage: we, onCleanMessages: te, onRateChat: Fe } = fn({
2660
+ }, { onSendMessage: we, onCleanMessages: te, onRateChat: Ge } = Rn({
2593
2661
  appId: o,
2594
- userId: P,
2662
+ userId: M,
2595
2663
  userName: n,
2596
2664
  userData: a,
2597
- externalId: E,
2598
- deviceId: j,
2599
- apiClient: O,
2665
+ externalId: S,
2666
+ deviceId: P,
2667
+ apiClient: U,
2600
2668
  chatSettings: m,
2601
- setMessages: M,
2602
- messages: U,
2669
+ setMessages: A,
2670
+ messages: j,
2603
2671
  currentChat: k,
2604
- setCurrentChat: S,
2672
+ setCurrentChat: I,
2605
2673
  onChatClosed: ze,
2606
2674
  isChatClosed: w,
2607
2675
  onAgentMessage: ne.notify
2608
2676
  });
2609
- V(() => {
2610
- _.length > 0 && M(_);
2611
- }, [_]), V(() => {
2612
- y && S(y);
2677
+ K(() => {
2678
+ _.length > 0 && A(_);
2679
+ }, [_]), K(() => {
2680
+ y && I(y);
2613
2681
  }, [y]);
2614
- const je = $(null);
2615
- V(() => {
2616
- if (!k || !E || !O) return;
2617
- const L = {
2618
- userId: P,
2682
+ const $e = $(null);
2683
+ K(() => {
2684
+ if (!k || !S || !U) return;
2685
+ const B = {
2686
+ userId: M,
2619
2687
  userName: n,
2620
2688
  userData: a,
2621
- externalId: E,
2622
- deviceId: j,
2689
+ externalId: S,
2690
+ deviceId: P,
2623
2691
  conversationId: k.id
2624
- }, ue = JSON.stringify(L);
2625
- je.current !== ue && (je.current = ue, O.identifyUser(L));
2692
+ }, ue = JSON.stringify(B);
2693
+ $e.current !== ue && ($e.current = ue, U.identifyUser(B));
2626
2694
  }, [
2627
- E,
2628
- P,
2695
+ S,
2696
+ M,
2629
2697
  n,
2630
2698
  a,
2631
- j,
2699
+ P,
2632
2700
  k,
2633
- O
2701
+ U
2634
2702
  ]);
2635
2703
  const Te = v(() => {
2636
2704
  te(), Z(!1);
2637
2705
  }, [te]), me = v(() => {
2638
- We(!0);
2706
+ Fe(!0);
2639
2707
  }, []);
2640
2708
  return {
2641
2709
  isReady: oe,
@@ -2648,7 +2716,7 @@ function Nn({
2648
2716
  chatInterfaceProps: ae,
2649
2717
  chatOpen: re,
2650
2718
  chatOpenDebounced: x,
2651
- messages: U,
2719
+ messages: j,
2652
2720
  portalContainer: z,
2653
2721
  onSendMessage: we,
2654
2722
  setChatOpen: b,
@@ -2657,15 +2725,15 @@ function Nn({
2657
2725
  hideProactiveMessage: me,
2658
2726
  isChatClosed: w,
2659
2727
  onStartNewChat: Te,
2660
- onRateChat: Fe,
2728
+ onRateChat: Ge,
2661
2729
  unlockSound: he,
2662
2730
  isSoundMuted: ne.isMuted,
2663
2731
  toggleSound: ne.toggleMuted
2664
2732
  };
2665
2733
  }
2666
- function Zn(e) {
2734
+ function na(e) {
2667
2735
  const [t, o] = C(0);
2668
- return V(() => {
2736
+ return K(() => {
2669
2737
  const r = window.visualViewport;
2670
2738
  if (!e || !r) {
2671
2739
  o(0);
@@ -2680,8 +2748,8 @@ function Zn(e) {
2680
2748
  };
2681
2749
  }, [e]), t;
2682
2750
  }
2683
- function Kn(e) {
2684
- V(() => {
2751
+ function aa(e) {
2752
+ K(() => {
2685
2753
  if (!e) return;
2686
2754
  const { body: t } = document, o = window.scrollY, r = {
2687
2755
  position: t.style.position,
@@ -2695,16 +2763,16 @@ function Kn(e) {
2695
2763
  };
2696
2764
  }, [e]);
2697
2765
  }
2698
- function Hn() {
2699
- const [e, t] = C(!1), [o, r] = C(null), n = $(null), a = $(null), l = v((c) => {
2700
- const i = (u) => {
2701
- r(u), t(!0), a.current = null, n.current && clearTimeout(n.current), n.current = setTimeout(() => {
2766
+ function ia() {
2767
+ const [e, t] = C(!1), [o, r] = C(null), n = $(null), a = $(null), l = v((u) => {
2768
+ const i = (d) => {
2769
+ r(d), t(!0), a.current = null, n.current && clearTimeout(n.current), n.current = setTimeout(() => {
2702
2770
  n.current = null;
2703
2771
  const p = a.current;
2704
2772
  p && i(p);
2705
2773
  }, 1e3);
2706
2774
  };
2707
- n.current ? a.current = c : i(c);
2775
+ n.current ? a.current = u : i(u);
2708
2776
  }, []), s = v(() => {
2709
2777
  n.current && (clearTimeout(n.current), n.current = null), a.current = null, t(!1), r(null);
2710
2778
  }, []);
@@ -2715,24 +2783,29 @@ function Hn() {
2715
2783
  hideCognition: s
2716
2784
  };
2717
2785
  }
2718
- function Vn({
2786
+ function sa({
2719
2787
  children: e
2720
2788
  }) {
2721
- const t = Hn();
2722
- return /* @__PURE__ */ I(Wt.Provider, { value: t, children: e });
2723
- }
2724
- const Wn = ({ children: e }) => {
2725
- const [t, o] = C(null), [r, n] = C(!1), a = Jt(o), i = {
2726
- error: t,
2727
- hideSdk: r,
2728
- publishApiError: a,
2729
- publishError: (u) => o(u),
2730
- publishNetworkError: () => n(!0),
2731
- clearError: () => o(null)
2789
+ const t = ia();
2790
+ return /* @__PURE__ */ E(Qt.Provider, { value: t, children: e });
2791
+ }
2792
+ const la = ({
2793
+ appId: e,
2794
+ children: t
2795
+ }) => {
2796
+ const [o, r] = C(null), [n, a] = C(!1), l = (c, h) => {
2797
+ yo(c, h, e), r(c);
2798
+ }, p = {
2799
+ error: o,
2800
+ hideSdk: n,
2801
+ publishApiError: (c) => l(to(c), c),
2802
+ publishError: (c) => l(c),
2803
+ publishNetworkError: () => a(!0),
2804
+ clearError: () => r(null)
2732
2805
  };
2733
- return /* @__PURE__ */ I(Ft.Provider, { value: i, children: e });
2734
- }, Fn = 100;
2735
- function Jn({
2806
+ return /* @__PURE__ */ E(eo.Provider, { value: p, children: t });
2807
+ }, ca = 100;
2808
+ function ua({
2736
2809
  appId: e,
2737
2810
  userId: t,
2738
2811
  userName: o,
@@ -2741,37 +2814,37 @@ function Jn({
2741
2814
  proactiveMessageHideDelay: a = 5e3,
2742
2815
  isMobile: l,
2743
2816
  hasCloseButton: s,
2744
- hasCleanChatButton: c,
2817
+ hasCleanChatButton: u,
2745
2818
  isInitiallyOpen: i,
2746
2819
  // Deprecated aliases, resolved in useChat (new name wins).
2747
- closeButton: u,
2820
+ closeButton: d,
2748
2821
  cleanChatButton: p,
2749
- initialOpen: d,
2822
+ initialOpen: c,
2750
2823
  INTERNAL_ONLY_CHAT_INTERFACE_ONLY: h = !1,
2751
2824
  INTERNAL_ONLY_SHOW_CLEAN_CHAT_BUTTON: f = void 0,
2752
2825
  INTERNAL_ONLY_BLOCK_STYLE: g = !1,
2753
2826
  INTERNAL_ONLY_FEATURE_MESSAGE_CLICK: R = void 0,
2754
2827
  INTERNAL_ONLY_FEATURE_CLEAR_CHAT_CLICK: q = void 0,
2755
2828
  INTERNAL_ONLY_ON_CHAT_ID: z = void 0,
2756
- INTERNAL_ONLY_HIGHLIGHTED_MESSAGE_ID: P = null,
2757
- INTERNAL_ONLY_ON_MESSAGE_SENT: E = void 0,
2758
- INTERNAL_ONLY_SHOW_COPY_BUTTON: j = !1,
2759
- INTERNAL_ONLY_ENVIRONMENT: O = "live",
2829
+ INTERNAL_ONLY_HIGHLIGHTED_MESSAGE_ID: M = null,
2830
+ INTERNAL_ONLY_ON_MESSAGE_SENT: S = void 0,
2831
+ INTERNAL_ONLY_SHOW_COPY_BUTTON: P = !1,
2832
+ INTERNAL_ONLY_ENVIRONMENT: U = "live",
2760
2833
  INTERNAL_ONLY_API_URL: m
2761
2834
  }) {
2762
- const { hideSdk: y } = Ke(), {
2835
+ const { hideSdk: y } = Ve(), {
2763
2836
  isReady: _,
2764
2837
  isChatActive: oe,
2765
2838
  isInitiallyOpen: ee,
2766
2839
  hasCloseButton: de,
2767
2840
  hasCleanChatButton: ae,
2768
2841
  isMobile: D,
2769
- chatId: J,
2770
- chatOpen: N,
2771
- unlockSound: W,
2842
+ chatId: G,
2843
+ chatOpen: L,
2844
+ unlockSound: H,
2772
2845
  isSoundMuted: re,
2773
2846
  toggleSound: le,
2774
- chatInterfaceProps: G,
2847
+ chatInterfaceProps: J,
2775
2848
  chatOpenDebounced: ie,
2776
2849
  messages: Y,
2777
2850
  portalContainer: ce,
@@ -2781,9 +2854,9 @@ function Jn({
2781
2854
  hideProactiveMessage: he,
2782
2855
  isChatClosed: b,
2783
2856
  onStartNewChat: x,
2784
- onRateChat: U
2785
- } = Nn({
2786
- environment: O,
2857
+ onRateChat: j
2858
+ } = ra({
2859
+ environment: U,
2787
2860
  apiUrl: m,
2788
2861
  appId: e,
2789
2862
  userId: t,
@@ -2793,24 +2866,24 @@ function Jn({
2793
2866
  isMobile: l,
2794
2867
  isInitiallyOpen: i,
2795
2868
  hasCloseButton: s,
2796
- hasCleanChatButton: c,
2797
- initialOpen: d,
2798
- closeButton: u,
2869
+ hasCleanChatButton: u,
2870
+ initialOpen: c,
2871
+ closeButton: d,
2799
2872
  cleanChatButton: p,
2800
2873
  proactiveMessageHideDelay: a,
2801
2874
  // Embedded: the interface is the page content with no launcher to reopen
2802
2875
  // it, so nothing (boot initial_open, closed-cookie, props) may close it.
2803
2876
  isAlwaysOpen: h,
2804
2877
  hasCleanChatButtonOverride: f
2805
- }), M = $(void 0);
2806
- V(() => {
2807
- !z || M.current === J || (M.current = J, z(J));
2808
- }, [J, z]);
2809
- const k = $(null), [S, w] = C(!1), Z = Zn(D && N);
2810
- Kn(D && N);
2878
+ }), A = $(void 0);
2879
+ K(() => {
2880
+ !z || A.current === G || (A.current = G, z(G));
2881
+ }, [G, z]);
2882
+ const k = $(null), [I, w] = C(!1), Z = na(D && L);
2883
+ aa(D && L);
2811
2884
  const X = !_;
2812
2885
  if (y || X && !h || !X && !oe) return null;
2813
- const K = () => /* @__PURE__ */ ke(
2886
+ const V = () => /* @__PURE__ */ ke(
2814
2887
  "div",
2815
2888
  {
2816
2889
  style: {
@@ -2826,20 +2899,20 @@ function Jn({
2826
2899
  ...g ? { position: "relative", inset: 0, width: "100%", height: "100%" } : {}
2827
2900
  },
2828
2901
  children: [
2829
- /* @__PURE__ */ I("style", { children: oo }),
2830
- /* @__PURE__ */ I(
2831
- Ge,
2902
+ /* @__PURE__ */ E("style", { children: io }),
2903
+ /* @__PURE__ */ E(
2904
+ Ye,
2832
2905
  {
2833
2906
  className: "eloquentai-chat-messaging",
2834
2907
  title: "Chat",
2835
- head: /* @__PURE__ */ I("style", { children: Je }),
2908
+ head: /* @__PURE__ */ E("style", { children: Je }),
2836
2909
  style: {
2837
- display: N || ie ? "block" : "none",
2910
+ display: L || ie ? "block" : "none",
2838
2911
  width: D ? "100vw" : "400px",
2839
2912
  // 100dvh accounts for mobile browser chrome (e.g. address bar); 100vh fallback for older browsers
2840
2913
  "--chat-mobile-viewport-height": "100dvh",
2841
2914
  height: D ? "var(--chat-mobile-viewport-height, 100vh)" : "700px",
2842
- maxHeight: D ? "var(--chat-mobile-viewport-height, 100vh)" : `calc(100% - ${Fn}px)`,
2915
+ maxHeight: D ? "var(--chat-mobile-viewport-height, 100vh)" : `calc(100% - ${ca}px)`,
2843
2916
  border: "none",
2844
2917
  zIndex: 2147483e3,
2845
2918
  position: "fixed",
@@ -2864,32 +2937,32 @@ function Jn({
2864
2937
  // booting): hold the widget's frame with a skeleton so a remount —
2865
2938
  // project/environment switch in the host app — doesn't flash an
2866
2939
  // empty hole where the chat was.
2867
- /* @__PURE__ */ I(Gt, { isOpen: !0, isMobile: D, skipAnimation: !0 })
2868
- ) : /* @__PURE__ */ I(
2869
- Yt,
2940
+ /* @__PURE__ */ E(oo, { isOpen: !0, isMobile: D, skipAnimation: !0 })
2941
+ ) : /* @__PURE__ */ E(
2942
+ ro,
2870
2943
  {
2871
- ...G,
2944
+ ...J,
2872
2945
  hasIntroAnimation: !h,
2873
2946
  isDialog: !h,
2874
- shouldFocusOnOpen: S,
2875
- isTestMode: O === "test",
2876
- isOpen: N,
2947
+ shouldFocusOnOpen: I,
2948
+ isTestMode: U === "test",
2949
+ isOpen: L,
2877
2950
  keyboardInset: Z,
2878
2951
  messages: Y,
2879
- onSendMessage: (fe, Re) => (W(), E?.(fe), ve(fe, Re)),
2952
+ onSendMessage: (fe, Ee) => (H(), S?.(fe), ve(fe, Ee)),
2880
2953
  onMessageClick: R,
2881
- highlightedMessageId: P,
2954
+ highlightedMessageId: M,
2882
2955
  isMobile: D,
2883
2956
  hasCloseButton: de,
2884
2957
  hasCleanChatButton: ae,
2885
- hasCopyButton: j,
2958
+ hasCopyButton: P,
2886
2959
  isChatClosed: b,
2887
2960
  onStartNewChat: x,
2888
- onRateChat: U,
2961
+ onRateChat: j,
2889
2962
  isSoundMuted: re,
2890
2963
  onToggleSound: le,
2891
2964
  onClose: () => {
2892
- eo(() => pe(!1)), no(k.current);
2965
+ Ut(() => pe(!1)), lo(k.current);
2893
2966
  },
2894
2967
  onCleanChat: () => {
2895
2968
  x(), q?.();
@@ -2898,13 +2971,13 @@ function Jn({
2898
2971
  )
2899
2972
  }
2900
2973
  ),
2901
- !h && /* @__PURE__ */ I(
2902
- Ge,
2974
+ !h && /* @__PURE__ */ E(
2975
+ Ye,
2903
2976
  {
2904
2977
  className: "eloquentai-chat-launcher",
2905
2978
  title: "Chat launcher",
2906
2979
  frameRef: k,
2907
- head: /* @__PURE__ */ I("style", { children: Je }),
2980
+ head: /* @__PURE__ */ E("style", { children: Je }),
2908
2981
  style: {
2909
2982
  position: "fixed",
2910
2983
  bottom: 17,
@@ -2914,28 +2987,28 @@ function Jn({
2914
2987
  height: 48,
2915
2988
  border: "none",
2916
2989
  zIndex: D ? 2147482999 : 2147483e3,
2917
- opacity: N ? 0 : 1,
2918
- pointerEvents: N ? "none" : "auto",
2919
- transition: N ? "opacity 100ms ease-in" : "opacity 200ms ease-out 320ms"
2990
+ opacity: L ? 0 : 1,
2991
+ pointerEvents: L ? "none" : "auto",
2992
+ transition: L ? "opacity 100ms ease-in" : "opacity 200ms ease-out 320ms"
2920
2993
  },
2921
- children: /* @__PURE__ */ I(
2922
- ao,
2994
+ children: /* @__PURE__ */ E(
2995
+ co,
2923
2996
  {
2924
- isOpen: N,
2997
+ isOpen: L,
2925
2998
  toggleBubble: () => {
2926
2999
  w(!0), pe((fe) => !fe);
2927
3000
  },
2928
- isDarkMode: G?.theme?.mode === "dark"
3001
+ isDarkMode: J?.theme?.mode === "dark"
2929
3002
  }
2930
3003
  )
2931
3004
  }
2932
3005
  ),
2933
- G?.displayWelcomeMessages ? /* @__PURE__ */ I(
2934
- Ge,
3006
+ J?.displayWelcomeMessages ? /* @__PURE__ */ E(
3007
+ Ye,
2935
3008
  {
2936
3009
  className: "eloquentai-chat-proactive-message",
2937
3010
  title: "Chat greeting",
2938
- head: /* @__PURE__ */ I("style", { children: Je }),
3011
+ head: /* @__PURE__ */ E("style", { children: Je }),
2939
3012
  style: {
2940
3013
  position: "fixed",
2941
3014
  // Aligns the bubble's tail with the launcher's center: the
@@ -2944,14 +3017,14 @@ function Jn({
2944
3017
  bottom: 24,
2945
3018
  right: 17
2946
3019
  },
2947
- children: /* @__PURE__ */ I(Xt, { ...G?.theme ?? {}, children: /* @__PURE__ */ I(
3020
+ children: /* @__PURE__ */ E(no, { ...J?.theme ?? {}, children: /* @__PURE__ */ E(
2948
3021
  "div",
2949
3022
  {
2950
- className: Be("eloq:w-full eloq:h-full", {
2951
- dark: G?.theme?.mode === "dark"
3023
+ className: Le("eloq:w-full eloq:h-full", {
3024
+ dark: J?.theme?.mode === "dark"
2952
3025
  }),
2953
- children: ne && !ee && /* @__PURE__ */ I(
2954
- so,
3026
+ children: ne && !ee && /* @__PURE__ */ E(
3027
+ po,
2955
3028
  {
2956
3029
  message: ne.text,
2957
3030
  isVisible: ne.isVisible,
@@ -2969,21 +3042,21 @@ function Jn({
2969
3042
  ]
2970
3043
  }
2971
3044
  );
2972
- return /* @__PURE__ */ I(Qt, { children: g ? K() : ce ? /* @__PURE__ */ I(io, { container: ce, children: K() }) : null });
3045
+ return /* @__PURE__ */ E(Ot, { children: g ? V() : ce ? /* @__PURE__ */ E(uo, { container: ce, children: V() }) : null });
2973
3046
  }
2974
- function Gn(e) {
2975
- return /* @__PURE__ */ I(Wn, { children: /* @__PURE__ */ I(Vn, { children: /* @__PURE__ */ I(Jn, { ...e }) }) });
3047
+ function da(e) {
3048
+ return /* @__PURE__ */ E(la, { appId: e.appId, children: /* @__PURE__ */ E(sa, { children: /* @__PURE__ */ E(ua, { ...e }) }) });
2976
3049
  }
2977
- function oa(e, t) {
3050
+ function ba(e, t) {
2978
3051
  return ((r, n, a) => {
2979
- const l = to.createRoot(n);
2980
- return l.render(/* @__PURE__ */ I(r, { ...a })), l.unmount;
2981
- })(Gn, e, t);
3052
+ const l = ao.createRoot(n);
3053
+ return l.render(/* @__PURE__ */ E(r, { ...a })), l.unmount;
3054
+ })(da, e, t);
2982
3055
  }
2983
3056
  export {
2984
- Gn as Chat,
2985
- Yt as ChatInterface,
2986
- oa as renderChat,
2987
- tn as useRealtimeSocket
3057
+ da as Chat,
3058
+ ro as ChatInterface,
3059
+ ba as renderChat,
3060
+ bn as useRealtimeSocket
2988
3061
  };
2989
3062
  //# sourceMappingURL=index.mjs.map