@eloquentai/chat-sdk 0.37.0-dev.4 → 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,15 +1,15 @@
1
1
  "use client";
2
- import { jsx as I, jsxs as ke, Fragment as Tt } from "react/jsx-runtime";
3
- import { useState as C, useCallback as v, useEffect as K, useMemo as tt, useRef as $ } from "react";
4
- import { createPortal as ot, flushSync as Mt } from "react-dom";
5
- import { L as At, c as Be, u as Pt, g as Ot, X as Ut, i as jt, A as Dt, d as F, e as Ke, f as $t, h as Bt, r as Lt, t as Nt, j as Zt, N as at, k as Le, l as Kt, H as Vt, w as ct, m as Wt, s as Ht, n as Ft, o as Jt, E as Gt, p as Yt, S as Xt, C as Qt, T as eo } from "./skeleton-DW1aw7Tu.js";
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] = "581abdff-289a-451e-abf3-6b54231017ba", e._sentryDebugIdIdentifier = "sentry-dbid-581abdff-289a-451e-abf3-6b54231017ba");
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
- 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 = [
13
13
  "button",
14
14
  "a[href]",
15
15
  "input",
@@ -17,23 +17,23 @@ const Je = '/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@la
17
17
  "textarea",
18
18
  "[tabindex]"
19
19
  ].map((e) => `${e}:not([tabindex^="-"]):not(:disabled)`).join(", ");
20
- function no(e) {
20
+ function lo(e) {
21
21
  if (!e) return;
22
- (e.contentDocument?.querySelector(ro) ?? e).focus();
22
+ (e.contentDocument?.querySelector(so) ?? e).focus();
23
23
  }
24
- function ao({
24
+ function co({
25
25
  isOpen: e,
26
26
  toggleBubble: t,
27
27
  isDarkMode: o = !1
28
28
  }) {
29
29
  const r = o ? "#fff" : "#000", n = o ? "#000000" : "#ffffff";
30
- 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(
31
31
  "button",
32
32
  {
33
33
  type: "button",
34
34
  "aria-label": "Open chat",
35
35
  "aria-expanded": e,
36
- className: Be(
36
+ className: Le(
37
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",
38
38
  // The ring below replaces the UA outline, which would be drawn
39
39
  // outside the circle and clipped by the 48px launcher iframe.
@@ -48,15 +48,15 @@ function ao({
48
48
  ),
49
49
  onClick: t,
50
50
  children: [
51
- /* @__PURE__ */ I(
51
+ /* @__PURE__ */ E(
52
52
  "span",
53
53
  {
54
54
  "aria-hidden": !0,
55
55
  className: "eloq:absolute eloq:inset-0 eloq:flex eloq:justify-center eloq:items-center eloq:m-auto",
56
- children: /* @__PURE__ */ I(At, { bgColor: r, fgColor: n })
56
+ children: /* @__PURE__ */ E(jt, { bgColor: r, fgColor: n })
57
57
  }
58
58
  ),
59
- /* @__PURE__ */ I(
59
+ /* @__PURE__ */ E(
60
60
  "span",
61
61
  {
62
62
  "aria-hidden": !0,
@@ -67,7 +67,7 @@ function ao({
67
67
  }
68
68
  ) });
69
69
  }
70
- function Ge({ children: e, head: t, frameRef: o, ...r }) {
70
+ function Ye({ children: e, head: t, frameRef: o, ...r }) {
71
71
  const [n, a] = C(null), l = v(
72
72
  (i) => {
73
73
  a(i), o && (o.current = i);
@@ -75,21 +75,21 @@ function Ge({ children: e, head: t, frameRef: o, ...r }) {
75
75
  [o]
76
76
  ), s = n?.contentWindow?.document?.head, u = n?.contentWindow?.document?.body;
77
77
  return /* @__PURE__ */ ke("iframe", { ...r, ref: l, children: [
78
- s && ot(t, s),
79
- u && ot(e, u)
78
+ s && rt(t, s),
79
+ u && rt(e, u)
80
80
  ] });
81
81
  }
82
- function io({ children: e, container: t }) {
83
- return ot(e, t);
82
+ function uo({ children: e, container: t }) {
83
+ return rt(e, t);
84
84
  }
85
- function so({
85
+ function po({
86
86
  message: e,
87
87
  isVisible: t,
88
88
  onDismiss: o,
89
89
  onMessageClick: r,
90
90
  autoHideDelay: n
91
91
  }) {
92
- const [a, l] = C(!1), [s, u] = C("entering"), [i, d] = C(!1), p = Pt();
92
+ const [a, l] = C(!1), [s, u] = C("entering"), [i, d] = C(!1), p = Dt();
93
93
  if (K(() => {
94
94
  if (t) {
95
95
  l(!0), u("entering");
@@ -117,11 +117,11 @@ function so({
117
117
  };
118
118
  }, [t, i, o, n]), !a)
119
119
  return null;
120
- const c = p.botBubbleTextColor || Ot(p.botBubbleColor);
121
- return /* @__PURE__ */ I(
120
+ const c = p.botBubbleTextColor || $t(p.botBubbleColor);
121
+ return /* @__PURE__ */ E(
122
122
  "div",
123
123
  {
124
- className: Be(
124
+ className: Le(
125
125
  // right-16 leaves a ~7px gap between the tail tip and the launcher
126
126
  // circle's edge — the tail points at it without sliding underneath.
127
127
  "eloq:absolute eloq:right-16 eloq:bottom-0 eloq:max-w-xs eloq:transform eloq:transition-all eloq:duration-500 eloq:ease-out",
@@ -144,7 +144,7 @@ function so({
144
144
  "button",
145
145
  {
146
146
  type: "button",
147
- className: Be(
147
+ className: Le(
148
148
  // block/w-full/text-left undo the UA button's inline-block,
149
149
  // centred layout so it lays out like the div it replaced.
150
150
  "eloq:relative eloq:block eloq:w-full eloq:rounded-lg eloq:border eloq:p-3 eloq:text-left eloq:cursor-pointer",
@@ -166,7 +166,7 @@ function so({
166
166
  className: "eloq:absolute eloq:bottom-1 eloq:-right-[9px] eloq:h-4 eloq:w-4 eloq:-scale-x-100",
167
167
  viewBox: "0 0 10.54 11.14",
168
168
  children: [
169
- /* @__PURE__ */ I(
169
+ /* @__PURE__ */ E(
170
170
  "path",
171
171
  {
172
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",
@@ -176,7 +176,7 @@ function so({
176
176
  style: { stroke: "hsl(var(--border))" }
177
177
  }
178
178
  ),
179
- /* @__PURE__ */ I(
179
+ /* @__PURE__ */ E(
180
180
  "rect",
181
181
  {
182
182
  x: "6.2",
@@ -191,12 +191,12 @@ function so({
191
191
  ),
192
192
  /* @__PURE__ */ ke("span", { className: "eloq:block eloq:text-sm eloq:leading-relaxed eloq:pr-4", children: [
193
193
  e,
194
- /* @__PURE__ */ I("span", { className: "eloq:sr-only", children: " (open chat)" })
194
+ /* @__PURE__ */ E("span", { className: "eloq:sr-only", children: " (open chat)" })
195
195
  ] })
196
196
  ]
197
197
  }
198
198
  ),
199
- /* @__PURE__ */ I(
199
+ /* @__PURE__ */ E(
200
200
  "button",
201
201
  {
202
202
  type: "button",
@@ -208,7 +208,7 @@ function so({
208
208
  // with the message on any bubble background (and dark mode).
209
209
  color: c
210
210
  },
211
- children: /* @__PURE__ */ I(Ut, { "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 })
212
212
  }
213
213
  )
214
214
  ]
@@ -217,24 +217,111 @@ function so({
217
217
  }
218
218
  );
219
219
  }
220
- function ut(e) {
220
+ function dt(e) {
221
221
  if (typeof document > "u") return null;
222
222
  const t = document.cookie.match(new RegExp(`(?:^|; )${e}=([^;]*)`));
223
223
  return t ? decodeURIComponent(t[1]) : null;
224
224
  }
225
- function lo(e, t, o) {
225
+ function ho(e, t, o) {
226
226
  if (typeof document > "u") return;
227
227
  const r = new Date(Date.now() + o * 60 * 60 * 1e3).toUTCString();
228
228
  document.cookie = `${e}=${encodeURIComponent(t)}; expires=${r}; path=/; SameSite=Lax`;
229
229
  }
230
- function co(e) {
230
+ function fo(e) {
231
231
  typeof document > "u" || (document.cookie = `${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`);
232
232
  }
233
- 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({
234
321
  chatProps: e,
235
322
  chatSettings: t
236
323
  }) {
237
- return tt(() => t ? {
324
+ return ot(() => t ? {
238
325
  assistantName: t.agent_name,
239
326
  assistantLogo: t.avatar_url || void 0,
240
327
  theme: {
@@ -262,7 +349,7 @@ function uo({
262
349
  subtitle: t.subtitle || "Ask me anything"
263
350
  } : e, [e, t]);
264
351
  }
265
- function po() {
352
+ function Io() {
266
353
  if (typeof window > "u")
267
354
  return {};
268
355
  const e = new URLSearchParams(window.location.search), t = {};
@@ -270,9 +357,9 @@ function po() {
270
357
  t[r] = o;
271
358
  }), t;
272
359
  }
273
- const ho = "eloquent-ai::conversation-data", Me = typeof window < "u", fo = 1800 * 1e3;
274
- function it({ appId: e }) {
275
- 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(
276
363
  () => ({
277
364
  conversationId: null,
278
365
  userId: null,
@@ -294,7 +381,7 @@ function it({ appId: e }) {
294
381
  }, [t, o]), n = v(() => {
295
382
  try {
296
383
  const i = r();
297
- return i.lastActivity ? Date.now() - i.lastActivity > fo : !0;
384
+ return i.lastActivity ? Date.now() - i.lastActivity > Ro : !0;
298
385
  } catch (i) {
299
386
  return console.error("Error checking conversation expiration:", i), !0;
300
387
  }
@@ -306,7 +393,7 @@ function it({ appId: e }) {
306
393
  conversationId: i,
307
394
  userId: d,
308
395
  deviceId: c,
309
- messages: go(p),
396
+ messages: zo(p),
310
397
  lastActivity: Date.now(),
311
398
  chatToken: h
312
399
  };
@@ -369,32 +456,32 @@ function it({ appId: e }) {
369
456
  markChatClosed: l
370
457
  };
371
458
  }
372
- function go(e) {
459
+ function zo(e) {
373
460
  return e.flatMap((t) => {
374
461
  if (!t.attachments) return [t];
375
- const o = t.attachments.filter((r) => jt(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 }));
376
463
  return o.length > 0 ? [{ ...t, attachments: o }] : t.content ? [{ ...t, attachments: void 0 }] : [];
377
464
  });
378
465
  }
379
- const mo = "aws-appsync-event-ws", bo = 15e3, vo = 3e5, wo = 5e3, qo = 1;
380
- function yo(e) {
466
+ const To = "aws-appsync-event-ws", Mo = 15e3, Ao = 3e5, Po = 5e3, Oo = 1;
467
+ function Uo(e) {
381
468
  const t = new URL(e);
382
469
  return /\.appsync-api\.[\w-]+\.amazonaws\.com(\.cn)?$/.test(t.hostname) && (t.hostname = t.hostname.replace(
383
470
  ".appsync-api.",
384
471
  ".appsync-realtime-api."
385
472
  )), t.protocol = "wss:", t.pathname = `${t.pathname.replace(/\/$/, "")}/realtime`, t.toString();
386
473
  }
387
- function xo(e, t) {
474
+ function jo(e, t) {
388
475
  const o = new URL(e).host;
389
476
  return "authorizationToken" in t ? { Authorization: t.authorizationToken, host: o } : { "x-api-key": t.apiKey, host: o };
390
477
  }
391
- function ko(e) {
478
+ function Do(e) {
392
479
  return `header-${btoa(JSON.stringify(e)).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "")}`;
393
480
  }
394
- function Ye(e) {
481
+ function Xe(e) {
395
482
  return !e || e.length === 0 ? "unknown error" : e.map((t) => `${t.errorType ?? "Error"}: ${t.message ?? ""}`).join("; ");
396
483
  }
397
- function _o(e) {
484
+ function $o(e) {
398
485
  const {
399
486
  httpEndpoint: t,
400
487
  auth: o,
@@ -402,39 +489,39 @@ function _o(e) {
402
489
  onEvent: n,
403
490
  onDisconnect: a,
404
491
  createWebSocket: l = (d, p) => new WebSocket(d, p)
405
- } = e, s = xo(t, o), u = yo(t), i = crypto.randomUUID();
492
+ } = e, s = jo(t, o), u = Uo(t), i = crypto.randomUUID();
406
493
  return new Promise((d, p) => {
407
494
  let c;
408
495
  try {
409
496
  c = l(u, [
410
- mo,
411
- ko(s)
497
+ To,
498
+ Do(s)
412
499
  ]);
413
500
  } catch (m) {
414
501
  p(m instanceof Error ? m : new Error(String(m)));
415
502
  return;
416
503
  }
417
- let h = "connecting", f = !1, g = vo, R = Date.now(), q = null, z = null;
418
- const A = () => {
504
+ let h = "connecting", f = !1, g = Ao, R = Date.now(), q = null, z = null;
505
+ const M = () => {
419
506
  q && (clearTimeout(q), q = null), z && (clearInterval(z), z = null);
420
- }, E = (m) => {
507
+ }, S = (m) => {
421
508
  if (h === "closed") return;
422
509
  const y = h === "established";
423
- h = "closed", A();
510
+ h = "closed", M();
424
511
  try {
425
512
  c.close();
426
513
  } catch {
427
514
  }
428
515
  f || (y ? a(m) : p(new Error(m)));
429
- }, O = (m) => {
430
- c.readyState === qo && c.send(JSON.stringify(m));
516
+ }, P = (m) => {
517
+ c.readyState === Oo && c.send(JSON.stringify(m));
431
518
  }, U = (m) => {
432
519
  q && clearTimeout(q), q = setTimeout(() => {
433
- E(`Timed out waiting for ${m}`);
434
- }, bo);
520
+ S(`Timed out waiting for ${m}`);
521
+ }, Mo);
435
522
  };
436
523
  c.addEventListener("open", () => {
437
- h !== "closed" && (O({ type: "connection_init" }), U("connection_ack"));
524
+ h !== "closed" && (P({ type: "connection_init" }), U("connection_ack"));
438
525
  }), c.addEventListener("message", (m) => {
439
526
  if (h === "closed") return;
440
527
  let y;
@@ -447,7 +534,7 @@ function _o(e) {
447
534
  switch (y.type) {
448
535
  case "connection_ack": {
449
536
  if (h !== "connecting") return;
450
- h = "subscribing", typeof y.connectionTimeoutMs == "number" && (g = y.connectionTimeoutMs), O({
537
+ h = "subscribing", typeof y.connectionTimeoutMs == "number" && (g = y.connectionTimeoutMs), P({
451
538
  type: "subscribe",
452
539
  id: i,
453
540
  channel: r,
@@ -456,23 +543,23 @@ function _o(e) {
456
543
  return;
457
544
  }
458
545
  case "connection_error": {
459
- E(`Connection error: ${Ye(y.errors)}`);
546
+ S(`Connection error: ${Xe(y.errors)}`);
460
547
  return;
461
548
  }
462
549
  case "subscribe_success": {
463
550
  if (h !== "subscribing" || y.id !== i) return;
464
551
  h = "established", q && (clearTimeout(q), q = null), R = Date.now(), z = setInterval(() => {
465
- Date.now() - R > g && E("Keep-alive timeout");
466
- }, wo), d({
552
+ Date.now() - R > g && S("Keep-alive timeout");
553
+ }, Po), d({
467
554
  close: () => {
468
- f = !0, O({ type: "unsubscribe", id: i }), E("Closed by client");
555
+ f = !0, P({ type: "unsubscribe", id: i }), S("Closed by client");
469
556
  }
470
557
  });
471
558
  return;
472
559
  }
473
560
  case "subscribe_error": {
474
561
  if (y.id !== i) return;
475
- E(`Subscribe error: ${Ye(y.errors)}`);
562
+ S(`Subscribe error: ${Xe(y.errors)}`);
476
563
  return;
477
564
  }
478
565
  case "ka": {
@@ -498,7 +585,7 @@ function _o(e) {
498
585
  case "broadcast_error": {
499
586
  console.warn(
500
587
  "[EloquentChatSDK] Realtime broadcast error:",
501
- Ye(y.errors)
588
+ Xe(y.errors)
502
589
  );
503
590
  return;
504
591
  }
@@ -506,16 +593,16 @@ function _o(e) {
506
593
  return;
507
594
  }
508
595
  }), c.addEventListener("close", () => {
509
- E("WebSocket closed");
596
+ S("WebSocket closed");
510
597
  }), c.addEventListener("error", () => {
511
- E("WebSocket error");
598
+ S("WebSocket error");
512
599
  });
513
600
  });
514
601
  }
515
- function Co(e, t) {
602
+ function No(e, t) {
516
603
  return typeof t == "bigint" ? t.toString() : t;
517
604
  }
518
- class So {
605
+ class Bo {
519
606
  constructor(t) {
520
607
  this._getter = t, this._value = void 0;
521
608
  }
@@ -524,14 +611,14 @@ class So {
524
611
  return t !== void 0 && (this._value = t(), this._getter = void 0), this._value;
525
612
  }
526
613
  }
527
- function Io(e) {
528
- return new So(e);
614
+ function Lo(e) {
615
+ return new Bo(e);
529
616
  }
530
- function Ct(e) {
617
+ function Rt(e) {
531
618
  const t = e.startsWith("^") ? 1 : 0, o = e.endsWith("$") ? e.length - 1 : e.length;
532
619
  return e.slice(t, o);
533
620
  }
534
- function Ro(e, t, o) {
621
+ function Zo(e, t, o) {
535
622
  Object.defineProperty(e, t, {
536
623
  value: o,
537
624
  writable: !0,
@@ -539,24 +626,24 @@ function Ro(e, t, o) {
539
626
  configurable: !0
540
627
  });
541
628
  }
542
- const St = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
629
+ const zt = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
543
630
  };
544
- function rt(e) {
631
+ function nt(e) {
545
632
  return typeof e == "object" && e !== null && !Array.isArray(e);
546
633
  }
547
- function Eo(e) {
548
- if (rt(e) === !1)
634
+ function Ko(e) {
635
+ if (nt(e) === !1)
549
636
  return !1;
550
637
  const t = e.constructor;
551
638
  if (t === void 0 || typeof t != "function")
552
639
  return !0;
553
640
  const o = t.prototype;
554
- return !(rt(o) === !1 || Object.prototype.hasOwnProperty.call(o, "isPrototypeOf") === !1);
641
+ return !(nt(o) === !1 || Object.prototype.hasOwnProperty.call(o, "isPrototypeOf") === !1);
555
642
  }
556
- function dt(e) {
643
+ function gt(e) {
557
644
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
558
645
  }
559
- function zo(e, t, o) {
646
+ function Vo(e, t, o) {
560
647
  const r = new e._zod.constr(t ?? e._zod.def);
561
648
  return (!t || o?.parent) && (r._zod.parent = e), r;
562
649
  }
@@ -573,7 +660,7 @@ function Ce(e) {
573
660
  }
574
661
  return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
575
662
  }
576
- function To(e) {
663
+ function Wo(e) {
577
664
  return Object.keys(e).filter((t) => e[t]._zod.optin !== void 0 && e[t]._zod.optout === "optional");
578
665
  }
579
666
  function _e(e, t = 0) {
@@ -584,7 +671,7 @@ function _e(e, t = 0) {
584
671
  return !0;
585
672
  return !1;
586
673
  }
587
- function Mo(e, t = 0) {
674
+ function Ho(e, t = 0) {
588
675
  if (e.aborted === !0)
589
676
  return !0;
590
677
  for (let o = t; o < e.issues.length; o++)
@@ -601,7 +688,7 @@ function Pe(e, t) {
601
688
  function Ae(e) {
602
689
  return typeof e == "string" ? e : e?.message;
603
690
  }
604
- function pt(e, t, o) {
691
+ function mt(e, t, o) {
605
692
  var r;
606
693
  for (let n = t; n < e.length; n++)
607
694
  (r = e[n]).schema ?? (r.schema = o);
@@ -615,35 +702,35 @@ function Se(e, t, o) {
615
702
  u === "inst" || u === "schema" || u === "continue" || u === "input" || u === "__proto__" || (s[u] = e[u]);
616
703
  return s.path ?? (s.path = []), s.message = l, t?.reportInput && (s.input = e.input), s;
617
704
  }
618
- function Ao(e, t) {
705
+ function Fo(e, t) {
619
706
  for (const o in t) {
620
707
  const r = Object.getOwnPropertyDescriptor(t, o);
621
- 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);
622
709
  }
623
710
  }
624
- function Ue(e, t, o, r = !0) {
711
+ function De(e, t, o, r = !0) {
625
712
  return Object.defineProperty(e, t, { configurable: !0, writable: !0, enumerable: r, value: o }), o;
626
713
  }
627
- function Po(e, t, o) {
628
- return Ue(e, t, o, !1);
714
+ function Go(e, t, o) {
715
+ return De(e, t, o, !1);
629
716
  }
630
- function Oo(e, t, o) {
717
+ function Jo(e, t, o) {
631
718
  Object.defineProperty(e, t, {
632
719
  configurable: !0,
633
720
  get() {
634
- return this == null ? o : Ue(this, t, o.bind(this));
721
+ return this == null ? o : De(this, t, o.bind(this));
635
722
  },
636
723
  set(r) {
637
- Ue(this, t, r);
724
+ De(this, t, r);
638
725
  }
639
726
  });
640
727
  }
641
- function Uo(e, t) {
728
+ function Yo(e, t) {
642
729
  const o = Object.getPrototypeOf(e);
643
730
  return t in o ? void 0 : o;
644
731
  }
645
- let Xe, qe = !1;
646
- const jo = {
732
+ let Qe, qe = !1;
733
+ const Xo = {
647
734
  configurable: !0,
648
735
  get() {
649
736
  qe = !0;
@@ -651,14 +738,14 @@ const jo = {
651
738
  };
652
739
  function be(e, t, o) {
653
740
  const r = Object.getPrototypeOf(e._zod);
654
- if (t in r && Xe !== e._zod) {
655
- Xe = void 0;
741
+ if (t in r && Qe !== e._zod) {
742
+ Qe = void 0;
656
743
  return;
657
744
  }
658
- Xe = e._zod, Object.defineProperty(r, t, {
745
+ Qe = e._zod, Object.defineProperty(r, t, {
659
746
  configurable: !0,
660
747
  get() {
661
- Object.defineProperty(this, t, jo);
748
+ Object.defineProperty(this, t, Xo);
662
749
  const n = qe;
663
750
  qe = !1;
664
751
  try {
@@ -673,8 +760,8 @@ function be(e, t, o) {
673
760
  }
674
761
  });
675
762
  }
676
- function Do(e, t, o, r) {
677
- const n = Uo(e, t);
763
+ function Qo(e, t, o, r) {
764
+ const n = Yo(e, t);
678
765
  n && Object.defineProperty(n, t, {
679
766
  configurable: !0,
680
767
  get() {
@@ -686,18 +773,18 @@ function Do(e, t, o, r) {
686
773
  }
687
774
  });
688
775
  }
689
- var ht;
690
- const Qe = { value: void 0, enumerable: !1 };
691
- let ft = "captureStackTrace" in Error ? Error : null;
692
- function $o(e) {
693
- 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;
694
781
  if (t) {
695
782
  const o = t.stackTraceLimit;
696
783
  if (typeof o == "number") {
697
784
  try {
698
785
  t.stackTraceLimit = 0;
699
786
  } catch {
700
- return ft = null, new e();
787
+ return vt = null, new e();
701
788
  }
702
789
  try {
703
790
  return new e();
@@ -720,11 +807,11 @@ function Q(e, t, o, r) {
720
807
  if (c._zod.traits.has(e))
721
808
  return;
722
809
  } else {
723
- Qe.value = new a(h);
810
+ et.value = new a(h);
724
811
  try {
725
- Object.defineProperty(c, "_zod", Qe);
812
+ Object.defineProperty(c, "_zod", et);
726
813
  } finally {
727
- Qe.value = void 0;
814
+ et.value = void 0;
728
815
  }
729
816
  }
730
817
  if (c._zod.traits.add(e), t(c, h), s) {
@@ -733,7 +820,7 @@ function Q(e, t, o, r) {
733
820
  for (; q && q !== R; )
734
821
  q = Object.getPrototypeOf(q);
735
822
  const z = q ?? g;
736
- s.has(z) || (s.add(z), Ao(z, l));
823
+ s.has(z) || (s.add(z), Fo(z, l));
737
824
  }
738
825
  const f = p.prototype;
739
826
  for (const g in f)
@@ -744,7 +831,7 @@ function Q(e, t, o, r) {
744
831
  }
745
832
  Object.defineProperty(d, "name", { value: e });
746
833
  function p(c) {
747
- const h = r?.Parent ? $o(d) : this;
834
+ const h = r?.Parent ? er(d) : this;
748
835
  u(h, c);
749
836
  const f = h._zod.deferred;
750
837
  if (f) {
@@ -764,27 +851,27 @@ class Oe extends Error {
764
851
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
765
852
  }
766
853
  }
767
- (ht = globalThis).__zod_globalConfig ?? (ht.__zod_globalConfig = {});
768
- const Ne = globalThis.__zod_globalConfig;
854
+ (bt = globalThis).__zod_globalConfig ?? (bt.__zod_globalConfig = {});
855
+ const Ze = globalThis.__zod_globalConfig;
769
856
  function ye(e) {
770
- return e && Object.assign(Ne, e), Ne;
857
+ return e && Object.assign(Ze, e), Ze;
771
858
  }
772
- function Bo() {
859
+ function tr() {
773
860
  const e = this._zod;
774
- 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;
775
862
  }
776
- function Lo(e) {
863
+ function or(e) {
777
864
  this._zod.message = e;
778
865
  }
779
- const No = {
780
- get: Bo,
781
- set: Lo,
866
+ const rr = {
867
+ get: tr,
868
+ set: or,
782
869
  enumerable: !0,
783
870
  configurable: !0
784
- }, et = { value: void 0, enumerable: !1 }, gt = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]), Zo = (e, t) => {
785
- 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);
786
873
  const o = Object.getPrototypeOf(e);
787
- gt.has(o) || (gt.add(o), Object.defineProperty(o, "toString", {
874
+ wt.has(o) || (wt.add(o), Object.defineProperty(o, "toString", {
788
875
  configurable: !0,
789
876
  enumerable: !1,
790
877
  get() {
@@ -795,38 +882,38 @@ const No = {
795
882
  Object.defineProperty(this, "toString", { value: r, configurable: !0, writable: !0 });
796
883
  }
797
884
  }));
798
- }, Ve = Q("$ZodError", Zo, void 0, {
885
+ }, We = Q("$ZodError", nr, void 0, {
799
886
  Parent: Error
800
- }), Ko = (e) => {
887
+ }), ar = (e) => {
801
888
  const t = (o, r, n, a) => {
802
889
  const l = n ? { ...n, async: !1 } : { async: !1 }, s = o._zod.run({ value: r, issues: [] }, l);
803
890
  if (s instanceof Promise)
804
891
  throw new Oe();
805
892
  if (s.issues.length) {
806
893
  const u = new (a?.Err ?? e)(s.issues.map((i) => Se(i, l, ye())));
807
- throw St(u, a?.callee ?? t), u;
894
+ throw zt(u, a?.callee ?? t), u;
808
895
  }
809
896
  return s.value;
810
897
  };
811
898
  return t;
812
- }, Vo = /* @__PURE__ */ Ko(Ve), Wo = (e) => {
899
+ }, ir = /* @__PURE__ */ ar(We), sr = (e) => {
813
900
  const t = async (o, r, n, a) => {
814
901
  const l = n ? { ...n, async: !0 } : { async: !0 };
815
902
  let s = o._zod.run({ value: r, issues: [] }, l);
816
903
  if (s instanceof Promise && (s = await s), s.issues.length) {
817
904
  const u = new (a?.Err ?? e)(s.issues.map((i) => Se(i, l, ye())));
818
- throw St(u, a?.callee ?? t), u;
905
+ throw zt(u, a?.callee ?? t), u;
819
906
  }
820
907
  return s.value;
821
908
  };
822
909
  return t;
823
- }, Ho = /* @__PURE__ */ Wo(Ve), Fo = (e) => (t, o, r) => {
910
+ }, lr = /* @__PURE__ */ sr(We), cr = (e) => (t, o, r) => {
824
911
  const n = r ? { ...r, async: !1 } : { async: !1 }, a = t._zod.run({ value: o, issues: [] }, n);
825
912
  if (a instanceof Promise)
826
913
  throw new Oe();
827
- return a.issues.length ? It(e, a.issues, n) : { success: !0, data: a.value };
828
- }, Jo = /* @__PURE__ */ Fo(Ve);
829
- 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) {
830
917
  let r;
831
918
  return {
832
919
  success: !1,
@@ -838,17 +925,17 @@ function It(e, t, o) {
838
925
  }
839
926
  };
840
927
  }
841
- const Go = (e) => async (t, o, r) => {
928
+ const dr = (e) => async (t, o, r) => {
842
929
  const n = r ? { ...r, async: !0 } : { async: !0 };
843
930
  let a = t._zod.run({ value: o, issues: [] }, n);
844
- return a instanceof Promise && (a = await a), a.issues.length ? It(e, a.issues, n) : { success: !0, data: a.value };
845
- }, Yo = /* @__PURE__ */ Go(Ve), 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 = {
846
933
  major: 4,
847
934
  minor: 6,
848
935
  patch: 7
849
936
  }, xe = /* @__PURE__ */ Q("$ZodType", (e, t) => {
850
937
  var o;
851
- 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;
852
939
  const r = e._zod.def.checks, n = e._zod.traits.has("$ZodCheck") ? [e, ...r ?? []] : r?.length ? [...r] : [];
853
940
  for (const a of n)
854
941
  for (const l of a._zod.onattach)
@@ -864,7 +951,7 @@ const Go = (e) => async (t, o, r) => {
864
951
  let d = _e(s), p;
865
952
  for (const c of u) {
866
953
  if (c._zod.def.when) {
867
- if (Mo(s) || !c._zod.def.when(s))
954
+ if (Ho(s) || !c._zod.def.when(s))
868
955
  continue;
869
956
  } else if (d)
870
957
  continue;
@@ -873,12 +960,12 @@ const Go = (e) => async (t, o, r) => {
873
960
  throw new Oe();
874
961
  if (p || f instanceof Promise)
875
962
  p = (p ?? Promise.resolve()).then(async () => {
876
- await f, s.issues.length !== h && (pt(s.issues, h, e), d || (d = _e(s, h)));
963
+ await f, s.issues.length !== h && (mt(s.issues, h, e), d || (d = _e(s, h)));
877
964
  });
878
965
  else {
879
966
  if (s.issues.length === h)
880
967
  continue;
881
- pt(s.issues, h, e), d || (d = _e(s, h));
968
+ mt(s.issues, h, e), d || (d = _e(s, h));
882
969
  }
883
970
  }
884
971
  return p ? p.then(() => s) : s;
@@ -912,34 +999,34 @@ const Go = (e) => async (t, o, r) => {
912
999
  }, {
913
1000
  // Wrappers extend this by installing a richer factory over it; reading it eagerly would defeat the laziness.
914
1001
  get "~standard"() {
915
- return Po(this, "~standard", rr(this));
1002
+ return Go(this, "~standard", vr(this));
916
1003
  },
917
1004
  set "~standard"(e) {
918
- Ue(this, "~standard", e);
1005
+ De(this, "~standard", e);
919
1006
  }
920
- }), Rt = (e, t) => e.issues.length ? { issues: e.issues.map((o) => Se(o, t, ye())) } : { value: e.value };
921
- 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) {
922
1009
  const o = { async: !0 };
923
- return Rt(await e._zod.run({ value: t, issues: [] }, o), o);
1010
+ return Mt(await e._zod.run({ value: t, issues: [] }, o), o);
924
1011
  }
925
- function rr(e) {
1012
+ function vr(e) {
926
1013
  return {
927
1014
  validate: (t) => {
928
1015
  const o = { async: !1 };
929
1016
  try {
930
1017
  const r = e._zod.run({ value: t, issues: [] }, o);
931
1018
  if (!(r instanceof Promise))
932
- return Rt(r, o);
1019
+ return Mt(r, o);
933
1020
  } catch {
934
1021
  }
935
- return or(e, t);
1022
+ return br(e, t);
936
1023
  },
937
1024
  vendor: "zod",
938
1025
  version: 1
939
1026
  };
940
1027
  }
941
- const nr = /* @__PURE__ */ Q("$ZodString", (e, t) => {
942
- 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) => {
943
1030
  if (t.coerce)
944
1031
  try {
945
1032
  o.value = String(o.value);
@@ -952,8 +1039,8 @@ const nr = /* @__PURE__ */ Q("$ZodString", (e, t) => {
952
1039
  inst: e
953
1040
  }), o;
954
1041
  };
955
- }), ar = /* @__PURE__ */ Q("$ZodNull", (e, t) => {
956
- 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) => {
957
1044
  const n = o.value;
958
1045
  return n === null || o.issues.push({
959
1046
  expected: "null",
@@ -963,7 +1050,7 @@ const nr = /* @__PURE__ */ Q("$ZodString", (e, t) => {
963
1050
  }), o;
964
1051
  };
965
1052
  });
966
- function Ze(e, t, o, r, n, a) {
1053
+ function Ke(e, t, o, r, n, a) {
967
1054
  const l = o in r, s = a === "optional";
968
1055
  if (!(!l && s && n === "optional")) {
969
1056
  if (e.issues.length) {
@@ -983,13 +1070,13 @@ function Ze(e, t, o, r, n, a) {
983
1070
  e.value === void 0 ? (l || n === "defaulted" && !s) && (t.value[o] = void 0) : t.value[o] = e.value;
984
1071
  }
985
1072
  }
986
- const ir = [];
987
- function sr(e) {
988
- 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;
989
1076
  for (const l of n)
990
1077
  if (!e.shape?.[l]?._zod?.traits?.has("$ZodType"))
991
1078
  throw new Error(`Invalid element at key "${String(l)}": expected a Zod schema`);
992
- const a = To(e.shape);
1079
+ const a = Wo(e.shape);
993
1080
  return {
994
1081
  ...e,
995
1082
  allKeys: n,
@@ -1000,7 +1087,7 @@ function sr(e) {
1000
1087
  optionalKeys: new Set(a)
1001
1088
  };
1002
1089
  }
1003
- function lr(e, t, o, r, n, a, l) {
1090
+ function kr(e, t, o, r, n, a, l) {
1004
1091
  const s = [], u = n.keySet, i = n.catchall._zod, d = i.def.type, p = i.optin, c = i.optout;
1005
1092
  let h = 0;
1006
1093
  for (const f in t) {
@@ -1020,7 +1107,7 @@ function lr(e, t, o, r, n, a, l) {
1020
1107
  continue;
1021
1108
  }
1022
1109
  const g = i.run({ value: t[f], issues: [] }, r);
1023
- g instanceof Promise ? e.push(g.then((R) => Ze(R, o, f, t, p, c))) : Ze(g, o, f, t, p, c);
1110
+ g instanceof Promise ? e.push(g.then((R) => Ke(R, o, f, t, p, c))) : Ke(g, o, f, t, p, c);
1024
1111
  }
1025
1112
  return s.length && o.issues.push({
1026
1113
  code: "unrecognized_keys",
@@ -1031,7 +1118,7 @@ function lr(e, t, o, r, n, a, l) {
1031
1118
  continue: !0
1032
1119
  }), e.length ? Promise.all(e).then(() => o) : o;
1033
1120
  }
1034
- const cr = /* @__PURE__ */ Q("$ZodObject", (e, t) => {
1121
+ const _r = /* @__PURE__ */ Q("$ZodObject", (e, t) => {
1035
1122
  xe.init(e, t);
1036
1123
  const o = Object.getOwnPropertyDescriptor(t, "shape"), r = o?.get ? o.get.raw : t.shape ?? {};
1037
1124
  if (r) {
@@ -1041,13 +1128,13 @@ const cr = /* @__PURE__ */ Q("$ZodObject", (e, t) => {
1041
1128
  };
1042
1129
  i.raw = r, Object.defineProperty(t, "shape", { get: i });
1043
1130
  }
1044
- const n = Io(() => sr(t));
1131
+ const n = Lo(() => xr(t));
1045
1132
  be(e, "propValues", (i) => {
1046
1133
  const d = i.def.shape, p = {};
1047
1134
  for (const c in d) {
1048
1135
  const h = d[c]._zod;
1049
1136
  if (h.values) {
1050
- Object.prototype.hasOwnProperty.call(p, c) || Ro(p, c, /* @__PURE__ */ new Set());
1137
+ Object.prototype.hasOwnProperty.call(p, c) || Zo(p, c, /* @__PURE__ */ new Set());
1051
1138
  for (const f of h.values)
1052
1139
  p[c].add(f);
1053
1140
  h.optin !== void 0 && p[c].add(void 0);
@@ -1055,9 +1142,9 @@ const cr = /* @__PURE__ */ Q("$ZodObject", (e, t) => {
1055
1142
  }
1056
1143
  return p;
1057
1144
  });
1058
- const a = rt, l = t.catchall;
1145
+ const a = nt, l = t.catchall;
1059
1146
  let s;
1060
- const u = Ne.memoizer;
1147
+ const u = Ze.memoizer;
1061
1148
  u?.attach(e), e._zod.parse = (i, d) => {
1062
1149
  s ?? (s = n.value);
1063
1150
  const p = i.value;
@@ -1079,13 +1166,13 @@ const cr = /* @__PURE__ */ Q("$ZodObject", (e, t) => {
1079
1166
  }
1080
1167
  if (R === "__proto__")
1081
1168
  continue;
1082
- const q = h[R], z = q._zod.optin, A = q._zod.optout, E = q._zod.run({ value: p[R], issues: [] }, d);
1083
- E instanceof Promise ? c.push(E.then((O) => Ze(O, i, R, p, z, A))) : Ze(E, i, R, p, z, A);
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);
1084
1171
  }
1085
- return l ? lr(c, p, i, d, n.value, e, f === !0) : c.length ? Promise.all(c).then(() => i) : i;
1172
+ return l ? kr(c, p, i, d, n.value, e, f === !0) : c.length ? Promise.all(c).then(() => i) : i;
1086
1173
  };
1087
1174
  });
1088
- function mt(e, t, o, r) {
1175
+ function qt(e, t, o, r) {
1089
1176
  for (const a of e)
1090
1177
  if (a.issues.length === 0)
1091
1178
  return t.value = a.value, t;
@@ -1097,14 +1184,14 @@ function mt(e, t, o, r) {
1097
1184
  errors: e.map((a) => a.issues.map((l) => Se(l, r, ye())))
1098
1185
  }), t);
1099
1186
  }
1100
- const ur = /* @__PURE__ */ Q("$ZodUnion", (e, t) => {
1187
+ const Cr = /* @__PURE__ */ Q("$ZodUnion", (e, t) => {
1101
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) => {
1102
1189
  if (r.def.options.every((n) => n._zod.values))
1103
1190
  return new Set(r.def.options.flatMap((n) => Array.from(n._zod.values)));
1104
1191
  }), be(e, "pattern", (r) => {
1105
1192
  if (r.def.options.every((n) => n._zod.pattern)) {
1106
1193
  const n = r.def.options.map((a) => a._zod.pattern);
1107
- return new RegExp(`^(${n.map((a) => Ct(a.source)).join("|")})$`);
1194
+ return new RegExp(`^(${n.map((a) => Rt(a.source)).join("|")})$`);
1108
1195
  }
1109
1196
  });
1110
1197
  const o = t.options.length === 1 ? t.options[0]._zod.run : null;
@@ -1126,14 +1213,14 @@ const ur = /* @__PURE__ */ Q("$ZodUnion", (e, t) => {
1126
1213
  l.push(u);
1127
1214
  }
1128
1215
  }
1129
- 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);
1130
1217
  };
1131
- }), dr = /* @__PURE__ */ Q("$ZodRecord", (e, t) => {
1218
+ }), Sr = /* @__PURE__ */ Q("$ZodRecord", (e, t) => {
1132
1219
  xe.init(e, t);
1133
- const o = Ne.memoizer;
1220
+ const o = Ze.memoizer;
1134
1221
  o?.attach(e), e._zod.parse = (r, n) => {
1135
1222
  const a = r.value;
1136
- if (!Eo(a))
1223
+ if (!Ko(a))
1137
1224
  return r.issues.push({
1138
1225
  expected: "record",
1139
1226
  code: "invalid_type",
@@ -1195,7 +1282,7 @@ const ur = /* @__PURE__ */ Q("$ZodUnion", (e, t) => {
1195
1282
  let d = t.keyType._zod.run({ value: i, issues: [] }, n);
1196
1283
  if (d instanceof Promise)
1197
1284
  throw new Error("Async schemas not supported in object keys currently");
1198
- if (typeof i == "string" && Qo.test(i) && d.issues.length) {
1285
+ if (typeof i == "string" && fr.test(i) && d.issues.length) {
1199
1286
  const f = t.keyType._zod.run({ value: Number(i), issues: [] }, n);
1200
1287
  if (f instanceof Promise)
1201
1288
  throw new Error("Async schemas not supported in object keys currently");
@@ -1230,12 +1317,12 @@ const ur = /* @__PURE__ */ Q("$ZodUnion", (e, t) => {
1230
1317
  }
1231
1318
  return l.length ? Promise.all(l).then(() => r) : r;
1232
1319
  };
1233
- }), pr = /* @__PURE__ */ Q("$ZodLiteral", (e, t) => {
1320
+ }), Ir = /* @__PURE__ */ Q("$ZodLiteral", (e, t) => {
1234
1321
  xe.init(e, t);
1235
1322
  const o = new Set(t.values);
1236
1323
  e._zod.values = o, be(e, "pattern", (r) => {
1237
1324
  const n = r.def.values;
1238
- 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]$");
1239
1326
  }), e._zod.parse = (r, n) => {
1240
1327
  const a = r.value;
1241
1328
  return o.has(a) || r.issues.push({
@@ -1245,21 +1332,21 @@ const ur = /* @__PURE__ */ Q("$ZodUnion", (e, t) => {
1245
1332
  inst: e
1246
1333
  }), r;
1247
1334
  };
1248
- }), hr = /* @__PURE__ */ Q("$ZodNullable", (e, t) => {
1335
+ }), Er = /* @__PURE__ */ Q("$ZodNullable", (e, t) => {
1249
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) => {
1250
1337
  const r = o.def.innerType._zod.pattern;
1251
- return r ? new RegExp(`^(${Ct(r.source)}|null)$`) : void 0;
1338
+ return r ? new RegExp(`^(${Rt(r.source)}|null)$`) : void 0;
1252
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);
1253
1340
  });
1254
- function fr(e) {
1341
+ function Rr(e) {
1255
1342
  return e.checks && (e.checks = [...e.checks]), e;
1256
1343
  }
1257
1344
  // @__NO_SIDE_EFFECTS__
1258
- function gr(e, t) {
1259
- return new e(fr({ type: "string", ...Ce(t) }));
1345
+ function zr(e, t) {
1346
+ return new e(Rr({ type: "string", ...Ce(t) }));
1260
1347
  }
1261
1348
  // @__NO_SIDE_EFFECTS__
1262
- function mr(e, t) {
1349
+ function Tr(e, t) {
1263
1350
  return new e({
1264
1351
  type: "null",
1265
1352
  ...Ce(t)
@@ -1275,19 +1362,19 @@ const Ie = /* @__PURE__ */ Q("ZodMiniType", (e, t) => {
1275
1362
  return this.check;
1276
1363
  },
1277
1364
  set with(e) {
1278
- Ue(this, "with", e);
1365
+ De(this, "with", e);
1279
1366
  },
1280
1367
  parse(e, t) {
1281
- return Vo(this, e, t, { callee: this.parse });
1368
+ return ir(this, e, t, { callee: this.parse });
1282
1369
  },
1283
1370
  parseAsync(e, t) {
1284
- return Ho(this, e, t, { callee: this.parseAsync });
1371
+ return lr(this, e, t, { callee: this.parseAsync });
1285
1372
  },
1286
1373
  safeParse(e, t) {
1287
- return Jo(this, e, t);
1374
+ return ur(this, e, t);
1288
1375
  },
1289
1376
  safeParseAsync(e, t) {
1290
- return Yo(this, e, t);
1377
+ return pr(this, e, t);
1291
1378
  },
1292
1379
  check(...e) {
1293
1380
  const t = this.def;
@@ -1300,7 +1387,7 @@ const Ie = /* @__PURE__ */ Q("ZodMiniType", (e, t) => {
1300
1387
  }, { parent: !0 });
1301
1388
  },
1302
1389
  clone(e, t) {
1303
- return zo(this, e, t);
1390
+ return Vo(this, e, t);
1304
1391
  },
1305
1392
  brand() {
1306
1393
  return this;
@@ -1311,167 +1398,167 @@ const Ie = /* @__PURE__ */ Q("ZodMiniType", (e, t) => {
1311
1398
  apply(e, ...t) {
1312
1399
  return t.length === 0 ? e(this) : e(this, ...t);
1313
1400
  }
1314
- }), br = /* @__PURE__ */ Q("ZodMiniString", (e, t) => {
1315
- nr.init(e, t), Ie.init(e, t);
1401
+ }), Mr = /* @__PURE__ */ Q("ZodMiniString", (e, t) => {
1402
+ wr.init(e, t), Ie.init(e, t);
1316
1403
  });
1317
1404
  // @__NO_SIDE_EFFECTS__
1318
1405
  function T(e) {
1319
- return /* @__PURE__ */ gr(br, e);
1406
+ return /* @__PURE__ */ zr(Mr, e);
1320
1407
  }
1321
- const vr = /* @__PURE__ */ Q("ZodMiniNull", (e, t) => {
1322
- 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);
1323
1410
  });
1324
1411
  // @__NO_SIDE_EFFECTS__
1325
- function wr(e) {
1326
- return /* @__PURE__ */ mr(vr, e);
1412
+ function Pr(e) {
1413
+ return /* @__PURE__ */ Tr(Ar, e);
1327
1414
  }
1328
- const qr = /* @__PURE__ */ Q("ZodMiniObject", (e, t) => {
1329
- 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);
1330
1417
  });
1331
1418
  // @__NO_SIDE_EFFECTS__
1332
- function B(e, t) {
1419
+ function N(e, t) {
1333
1420
  const o = {
1334
1421
  type: "object",
1335
1422
  shape: e ?? {},
1336
1423
  ...Ce(t)
1337
1424
  };
1338
- return new qr(o);
1425
+ return new Or(o);
1339
1426
  }
1340
- const yr = /* @__PURE__ */ Q("ZodMiniUnion", (e, t) => {
1341
- 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);
1342
1429
  });
1343
1430
  // @__NO_SIDE_EFFECTS__
1344
- function xr(e, t) {
1345
- return new yr({
1431
+ function jr(e, t) {
1432
+ return new Ur({
1346
1433
  type: "union",
1347
1434
  options: e,
1348
1435
  ...Ce(t)
1349
1436
  });
1350
1437
  }
1351
- const bt = /* @__PURE__ */ Q("ZodMiniRecord", (e, t) => {
1352
- 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);
1353
1440
  });
1354
1441
  // @__NO_SIDE_EFFECTS__
1355
- function kr(e, t, o) {
1356
- return !t || !t._zod ? new bt({
1442
+ function Dr(e, t, o) {
1443
+ return !t || !t._zod ? new yt({
1357
1444
  type: "record",
1358
1445
  keyType: /* @__PURE__ */ T(),
1359
1446
  valueType: e,
1360
1447
  ...Ce(t)
1361
- }) : new bt({
1448
+ }) : new yt({
1362
1449
  type: "record",
1363
1450
  keyType: e,
1364
1451
  valueType: t,
1365
1452
  ...Ce(o)
1366
1453
  });
1367
1454
  }
1368
- const _r = /* @__PURE__ */ Q("ZodMiniLiteral", (e, t) => {
1369
- 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);
1370
1457
  });
1371
1458
  // @__NO_SIDE_EFFECTS__
1372
1459
  function ge(e, t) {
1373
- return new _r({
1460
+ return new $r({
1374
1461
  type: "literal",
1375
1462
  values: Array.isArray(e) ? e : [e],
1376
1463
  ...Ce(t)
1377
1464
  });
1378
1465
  }
1379
- const Cr = /* @__PURE__ */ Q("ZodMiniNullable", (e, t) => {
1380
- 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);
1381
1468
  });
1382
1469
  // @__NO_SIDE_EFFECTS__
1383
- function st(e) {
1384
- return new Cr({
1470
+ function lt(e) {
1471
+ return new Nr({
1385
1472
  type: "nullable",
1386
1473
  innerType: e
1387
1474
  });
1388
1475
  }
1389
1476
  ye({ jitless: !0 });
1390
- const Sr = /* @__PURE__ */ B({
1477
+ const Br = /* @__PURE__ */ N({
1391
1478
  type: /* @__PURE__ */ ge("utterance"),
1392
1479
  content: /* @__PURE__ */ T(),
1393
1480
  role: /* @__PURE__ */ T()
1394
- }), Ir = /* @__PURE__ */ B({
1481
+ }), Lr = /* @__PURE__ */ N({
1395
1482
  type: /* @__PURE__ */ ge("agent_cognition"),
1396
1483
  content: /* @__PURE__ */ T()
1397
- }), Rr = /* @__PURE__ */ B({
1484
+ }), Zr = /* @__PURE__ */ N({
1398
1485
  type: /* @__PURE__ */ ge("chat_closed_expired"),
1399
1486
  content: /* @__PURE__ */ T()
1400
- }), Er = /* @__PURE__ */ B({
1487
+ }), Kr = /* @__PURE__ */ N({
1401
1488
  type: /* @__PURE__ */ ge("agent_captured_url"),
1402
1489
  content: /* @__PURE__ */ T()
1403
- }), zr = /* @__PURE__ */ B({
1490
+ }), Vr = /* @__PURE__ */ N({
1404
1491
  type: /* @__PURE__ */ ge("agent_topic"),
1405
1492
  content: /* @__PURE__ */ T()
1406
- }), Tr = /* @__PURE__ */ B({
1493
+ }), Wr = /* @__PURE__ */ N({
1407
1494
  type: /* @__PURE__ */ ge("agent_summary"),
1408
1495
  content: /* @__PURE__ */ T()
1409
- }), Mr = /* @__PURE__ */ B({
1496
+ }), Hr = /* @__PURE__ */ N({
1410
1497
  type: /* @__PURE__ */ ge("chat_rating"),
1411
1498
  content: /* @__PURE__ */ T()
1412
- }), Ar = /* @__PURE__ */ B({
1499
+ }), Fr = /* @__PURE__ */ N({
1413
1500
  type: /* @__PURE__ */ ge("breadcrumb"),
1414
1501
  content: /* @__PURE__ */ T()
1415
- }), Pr = /* @__PURE__ */ B({
1502
+ }), Gr = /* @__PURE__ */ N({
1416
1503
  type: /* @__PURE__ */ ge("chat_escalated"),
1417
- content: /* @__PURE__ */ wr()
1418
- }), Or = /* @__PURE__ */ B({
1504
+ content: /* @__PURE__ */ Pr()
1505
+ }), Jr = /* @__PURE__ */ N({
1419
1506
  type: /* @__PURE__ */ ge("error"),
1420
1507
  code: /* @__PURE__ */ T()
1421
- }), Ur = /* @__PURE__ */ B({
1422
- message_id: /* @__PURE__ */ st(/* @__PURE__ */ T()),
1508
+ }), Yr = /* @__PURE__ */ N({
1509
+ message_id: /* @__PURE__ */ lt(/* @__PURE__ */ T()),
1423
1510
  created_at: /* @__PURE__ */ T(),
1424
- data: Sr
1425
- }), jr = /* @__PURE__ */ B({
1511
+ data: Br
1512
+ }), Xr = /* @__PURE__ */ N({
1426
1513
  created_at: /* @__PURE__ */ T(),
1427
- data: Or
1428
- }), Dr = /* @__PURE__ */ B({
1514
+ data: Jr
1515
+ }), Qr = /* @__PURE__ */ N({
1429
1516
  created_at: /* @__PURE__ */ T(),
1430
- data: Ir
1431
- }), $r = /* @__PURE__ */ B({
1432
- message_id: /* @__PURE__ */ st(/* @__PURE__ */ T()),
1517
+ data: Lr
1518
+ }), en = /* @__PURE__ */ N({
1519
+ message_id: /* @__PURE__ */ lt(/* @__PURE__ */ T()),
1433
1520
  created_at: /* @__PURE__ */ T(),
1434
- data: Rr
1435
- }), Br = /* @__PURE__ */ B({
1521
+ data: Zr
1522
+ }), tn = /* @__PURE__ */ N({
1436
1523
  created_at: /* @__PURE__ */ T(),
1437
- data: Er
1438
- }), Lr = /* @__PURE__ */ B({
1524
+ data: Kr
1525
+ }), on = /* @__PURE__ */ N({
1439
1526
  created_at: /* @__PURE__ */ T(),
1440
- data: zr
1441
- }), Nr = /* @__PURE__ */ B({
1527
+ data: Vr
1528
+ }), rn = /* @__PURE__ */ N({
1442
1529
  created_at: /* @__PURE__ */ T(),
1443
- data: Tr
1444
- }), Zr = /* @__PURE__ */ B({
1530
+ data: Wr
1531
+ }), nn = /* @__PURE__ */ N({
1445
1532
  created_at: /* @__PURE__ */ T(),
1446
- data: Mr
1447
- }), Kr = /* @__PURE__ */ B({
1533
+ data: Hr
1534
+ }), an = /* @__PURE__ */ N({
1448
1535
  created_at: /* @__PURE__ */ T(),
1449
- data: Ar
1450
- }), Vr = /* @__PURE__ */ B({
1451
- message_id: /* @__PURE__ */ st(/* @__PURE__ */ T()),
1536
+ data: Fr
1537
+ }), sn = /* @__PURE__ */ N({
1538
+ message_id: /* @__PURE__ */ lt(/* @__PURE__ */ T()),
1452
1539
  created_at: /* @__PURE__ */ T(),
1453
- data: Pr
1454
- }), Wr = /* @__PURE__ */ xr([
1455
- Ur,
1456
- jr,
1457
- Dr,
1458
- Br,
1459
- Lr,
1460
- Nr,
1461
- $r,
1462
- Zr,
1463
- Kr,
1464
- Vr
1465
- ]), Hr = /* @__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({
1466
1553
  url: /* @__PURE__ */ T(),
1467
- mimeType: /* @__PURE__ */ ge(Dt),
1554
+ mimeType: /* @__PURE__ */ ge(Lt),
1468
1555
  name: /* @__PURE__ */ T()
1469
- }), Fr = /* @__PURE__ */ B({
1470
- data: Hr
1471
- }), Jr = /* @__PURE__ */ B({
1472
- data: /* @__PURE__ */ B({ urls: /* @__PURE__ */ kr(/* @__PURE__ */ T(), /* @__PURE__ */ T()) })
1473
- }), Gr = 500, Yr = 3e4, Xr = 6e4, Qr = 1e4, en = 12e4;
1474
- 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({
1475
1562
  chatSettings: e,
1476
1563
  chatId: t,
1477
1564
  messages: o,
@@ -1488,39 +1575,39 @@ function tn({
1488
1575
  onBreadcrumb: h,
1489
1576
  fetchHistory: f,
1490
1577
  getChatToken: g,
1491
- backupPollingInterval: R = Xr
1578
+ backupPollingInterval: R = fn
1492
1579
  }) {
1493
1580
  const q = $(/* @__PURE__ */ new Set());
1494
1581
  K(() => {
1495
- for (const P of o)
1496
- P.id && q.current.add(P.id);
1582
+ for (const O of o)
1583
+ O.id && q.current.add(O.id);
1497
1584
  }, [o]);
1498
- const z = $(null), A = $(null), E = $(0), O = $(null), U = $(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), H = F(u), re = F(i), le = F(d), G = F(p), ie = F(c), 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), j = 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(() => {
1499
1586
  z.current && (z.current.close(), z.current = null);
1500
1587
  }, []), k = v(() => {
1501
1588
  U.current && (clearInterval(U.current), U.current = null);
1502
- }, []), S = v(() => {
1589
+ }, []), I = v(() => {
1503
1590
  _.current = 0, m.current && (clearInterval(m.current), m.current = null), y.current && (clearTimeout(y.current), y.current = null);
1504
1591
  }, []), w = v(() => {
1505
- _.current = Math.max(0, _.current - 1), _.current === 0 && S();
1506
- }, [S]), Z = v(() => {
1507
- O.current && (clearTimeout(O.current), O.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);
1508
1595
  }, []), X = $(() => {
1509
1596
  }), V = v(
1510
- async (P) => {
1511
- M();
1597
+ async (O) => {
1598
+ A();
1512
1599
  const se = x.current, we = j.current;
1513
1600
  if (!se || !we)
1514
1601
  throw new Error("Cannot connect: AppSync settings not available");
1515
- const te = ve.current(), Fe = await _o({
1602
+ const te = ve.current(), Ge = await $o({
1516
1603
  httpEndpoint: se,
1517
1604
  auth: te ? { authorizationToken: te } : { apiKey: we },
1518
- channel: `/default/chat/${P}`,
1605
+ channel: `/default/chat/${O}`,
1519
1606
  onDisconnect: () => {
1520
1607
  z.current = null, X.current();
1521
1608
  },
1522
- onEvent: (je) => {
1523
- const Te = Wr.safeParse(je);
1609
+ onEvent: ($e) => {
1610
+ const Te = ln.safeParse($e);
1524
1611
  if (!Te.success) {
1525
1612
  console.error("Invalid conversation response:", Te.error);
1526
1613
  return;
@@ -1528,45 +1615,45 @@ function tn({
1528
1615
  const me = Te.data;
1529
1616
  switch (me.data.type) {
1530
1617
  case "utterance": {
1531
- const L = me, ue = L.message_id ?? crypto.randomUUID();
1618
+ const B = me, ue = B.message_id ?? crypto.randomUUID();
1532
1619
  if (q.current.has(ue))
1533
1620
  return;
1534
- q.current.add(ue), w(), J.current(), de.current(
1621
+ q.current.add(ue), w(), G.current(), de.current(
1535
1622
  {
1536
1623
  message_id: ue,
1537
1624
  response: {
1538
1625
  id: ue,
1539
- type: L.data.type,
1540
- content: L.data.content
1626
+ type: B.data.type,
1627
+ content: B.data.content
1541
1628
  }
1542
1629
  },
1543
- P
1630
+ O
1544
1631
  );
1545
1632
  return;
1546
1633
  }
1547
1634
  case "error": {
1548
1635
  const ue = parseInt(me.data.code);
1549
- pe({ code: ue, message: $t(ue) }), N.current?.();
1636
+ pe({ code: ue, message: Zt(ue) }), L.current?.();
1550
1637
  return;
1551
1638
  }
1552
1639
  case "agent_cognition": {
1553
- const L = me;
1554
- D.current(L.data.content);
1640
+ const B = me;
1641
+ D.current(B.data.content);
1555
1642
  return;
1556
1643
  }
1557
1644
  case "agent_captured_url": {
1558
- const L = me;
1559
- re.current?.(L.data.content);
1645
+ const B = me;
1646
+ re.current?.(B.data.content);
1560
1647
  return;
1561
1648
  }
1562
1649
  case "agent_topic": {
1563
- const L = me;
1564
- le.current?.(L.data.content);
1650
+ const B = me;
1651
+ le.current?.(B.data.content);
1565
1652
  return;
1566
1653
  }
1567
1654
  case "agent_summary": {
1568
- const L = me;
1569
- G.current?.(L.data.content);
1655
+ const B = me;
1656
+ J.current?.(B.data.content);
1570
1657
  return;
1571
1658
  }
1572
1659
  case "chat_closed_expired": {
@@ -1593,12 +1680,12 @@ function tn({
1593
1680
  }
1594
1681
  }
1595
1682
  });
1596
- z.current = Fe;
1683
+ z.current = Ge;
1597
1684
  },
1598
1685
  // The *Ref entries are latest-refs (stable identities); listed to satisfy
1599
1686
  // exhaustive-deps, which can't see that useLatestRef returns a ref.
1600
1687
  [
1601
- M,
1688
+ A,
1602
1689
  w,
1603
1690
  pe,
1604
1691
  x,
@@ -1606,99 +1693,99 @@ function tn({
1606
1693
  ve,
1607
1694
  de,
1608
1695
  D,
1609
- J,
1610
- N,
1696
+ G,
1697
+ L,
1611
1698
  H,
1612
1699
  re,
1613
1700
  le,
1614
- G,
1701
+ J,
1615
1702
  ie,
1616
1703
  Y
1617
1704
  ]
1618
1705
  ), W = v(
1619
- async (P) => {
1706
+ async (O) => {
1620
1707
  let se;
1621
1708
  try {
1622
- se = await ce.current(P);
1709
+ se = await ce.current(O);
1623
1710
  } catch (te) {
1624
1711
  console.warn("Backup poll failed:", te);
1625
1712
  return;
1626
1713
  }
1627
- if (A.current !== P) return;
1714
+ if (M.current !== O) return;
1628
1715
  const we = se.filter(
1629
1716
  (te) => (te.role === "user" || te.role === "assistant") && !!te.message_id
1630
1717
  );
1631
1718
  for (const te of we)
1632
1719
  te.role !== "assistant" || q.current.has(te.message_id) || (q.current.add(te.message_id), w());
1633
- ae.current(we, P);
1720
+ ae.current(we, O);
1634
1721
  },
1635
1722
  [ce, ae, w]
1636
1723
  ), fe = v(
1637
- (P) => {
1724
+ (O) => {
1638
1725
  k(), U.current = setInterval(
1639
- () => W(P),
1726
+ () => W(O),
1640
1727
  R
1641
1728
  );
1642
1729
  },
1643
1730
  [k, W, R]
1644
- ), Re = v(
1645
- function P() {
1646
- if (!oe.current || ee.current || O.current)
1731
+ ), Ee = v(
1732
+ function O() {
1733
+ if (!oe.current || ee.current || P.current)
1647
1734
  return;
1648
- const se = A.current;
1735
+ const se = M.current;
1649
1736
  if (!se) return;
1650
1737
  const we = Math.min(
1651
- Gr * Math.pow(2, E.current),
1652
- Yr
1738
+ pn * Math.pow(2, S.current),
1739
+ hn
1653
1740
  );
1654
- E.current += 1, O.current = setTimeout(async () => {
1655
- O.current = null, ee.current = !0;
1741
+ S.current += 1, P.current = setTimeout(async () => {
1742
+ P.current = null, ee.current = !0;
1656
1743
  try {
1657
- await V(se), E.current = 0, ee.current = !1, await W(se);
1744
+ await V(se), S.current = 0, ee.current = !1, await W(se);
1658
1745
  } catch {
1659
- ee.current = !1, P();
1746
+ ee.current = !1, O();
1660
1747
  }
1661
1748
  }, we);
1662
1749
  },
1663
1750
  [V, W]
1664
1751
  );
1665
1752
  K(() => {
1666
- X.current = Re;
1753
+ X.current = Ee;
1667
1754
  });
1668
- const Ee = v(
1669
- async (P) => {
1670
- if (!b || !P)
1755
+ const Re = v(
1756
+ async (O) => {
1757
+ if (!b || !O)
1671
1758
  throw new Error(
1672
1759
  "Cannot connect: AppSync settings not ready or missing chatId"
1673
1760
  );
1674
- Z(), oe.current = !0, A.current = P, E.current = 0, fe(P), await V(P);
1761
+ Z(), oe.current = !0, M.current = O, S.current = 0, fe(O), await V(O);
1675
1762
  },
1676
1763
  [b, Z, V, fe]
1677
1764
  ), ze = v(() => {
1678
- oe.current = !1, A.current = null, E.current = 0, Z(), k(), S(), M();
1679
- }, [Z, k, S, M]), We = v(() => {
1680
- const P = A.current;
1681
- if (!P) 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;
1682
1769
  const se = _.current + 1;
1683
- S(), _.current = se, m.current = setInterval(
1684
- () => W(P),
1685
- Qr
1770
+ I(), _.current = se, m.current = setInterval(
1771
+ () => W(O),
1772
+ gn
1686
1773
  ), y.current = setTimeout(
1687
- S,
1688
- en
1774
+ I,
1775
+ mn
1689
1776
  );
1690
- }, [W, S]), He = v(() => {
1777
+ }, [W, I]), Fe = v(() => {
1691
1778
  q.current.clear();
1692
1779
  }, []);
1693
1780
  return K(() => {
1694
- !t || !b || A.current === t || Ee(t).catch((P) => {
1695
- console.error("Failed to eagerly connect:", P), A.current === t && (oe.current = !0, X.current());
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());
1696
1783
  }).then(() => W(t));
1697
- }, [t, b, Ee, W]), K(() => () => {
1784
+ }, [t, b, Re, W]), K(() => () => {
1698
1785
  ze();
1699
- }, [ze]), { connect: Ee, disconnect: ze, clearProcessedIds: He, expectReply: We };
1786
+ }, [ze]), { connect: Re, disconnect: ze, clearProcessedIds: Fe, expectReply: He };
1700
1787
  }
1701
- function on(e) {
1788
+ function vn(e) {
1702
1789
  return {
1703
1790
  id: e.message_id,
1704
1791
  content: e.response.content ?? "",
@@ -1706,7 +1793,7 @@ function on(e) {
1706
1793
  timestamp: (/* @__PURE__ */ new Date()).toISOString()
1707
1794
  };
1708
1795
  }
1709
- function rn(e) {
1796
+ function wn(e) {
1710
1797
  return {
1711
1798
  id: crypto.randomUUID(),
1712
1799
  content: e,
@@ -1715,7 +1802,7 @@ function rn(e) {
1715
1802
  isWelcomeMessage: !0
1716
1803
  };
1717
1804
  }
1718
- function nn() {
1805
+ function qn() {
1719
1806
  return {
1720
1807
  id: crypto.randomUUID(),
1721
1808
  content: "",
@@ -1724,7 +1811,7 @@ function nn() {
1724
1811
  isRatingRequest: !0
1725
1812
  };
1726
1813
  }
1727
- function an() {
1814
+ function yn() {
1728
1815
  return {
1729
1816
  id: crypto.randomUUID(),
1730
1817
  content: "This conversation is closed, please start a new chat.",
@@ -1733,7 +1820,7 @@ function an() {
1733
1820
  isNotice: !0
1734
1821
  };
1735
1822
  }
1736
- function sn(e, t) {
1823
+ function xn(e, t) {
1737
1824
  return {
1738
1825
  ...e,
1739
1826
  id: crypto.randomUUID(),
@@ -1750,12 +1837,12 @@ function sn(e, t) {
1750
1837
  } : {}
1751
1838
  };
1752
1839
  }
1753
- function vt(e, t, o) {
1840
+ function xt(e, t, o) {
1754
1841
  return e.map(
1755
1842
  (r) => r.id === t ? o(r) : r
1756
1843
  );
1757
1844
  }
1758
- function ln(e, t, o) {
1845
+ function kn(e, t, o) {
1759
1846
  return {
1760
1847
  ...e,
1761
1848
  attachments: e.attachments?.map(
@@ -1763,13 +1850,13 @@ function ln(e, t, o) {
1763
1850
  )
1764
1851
  };
1765
1852
  }
1766
- function cn(e, t) {
1853
+ function _n(e, t) {
1767
1854
  return e.flatMap((o) => o.id !== t ? [o] : o.content ? [{ ...o, attachments: void 0 }] : []);
1768
1855
  }
1769
- function un(e) {
1856
+ function Cn(e) {
1770
1857
  return !!e.isWelcomeMessage || !!e.isThinking || !!e.isRatingRequest || !!e.isNotice;
1771
1858
  }
1772
- function dn(e) {
1859
+ function Sn(e) {
1773
1860
  return {
1774
1861
  id: e.message_id,
1775
1862
  content: e.response.content,
@@ -1777,7 +1864,7 @@ function dn(e) {
1777
1864
  timestamp: e.created_at
1778
1865
  };
1779
1866
  }
1780
- function wt(e, t) {
1867
+ function kt(e, t) {
1781
1868
  const o = new Set(t.map((s) => s.message_id)), r = [...e], n = [], a = [];
1782
1869
  let l = -1;
1783
1870
  for (const s of t) {
@@ -1786,7 +1873,7 @@ function wt(e, t) {
1786
1873
  l = u;
1787
1874
  continue;
1788
1875
  }
1789
- const i = pn(r, l, s.role, o);
1876
+ const i = In(r, l, s.role, o);
1790
1877
  if (i !== -1) {
1791
1878
  const c = r[i];
1792
1879
  r[i] = {
@@ -1797,26 +1884,26 @@ function wt(e, t) {
1797
1884
  }, a.push([c.id, s.message_id]), l = i;
1798
1885
  continue;
1799
1886
  }
1800
- const d = l === -1 ? hn(r) : l + 1, p = dn(s);
1887
+ const d = l === -1 ? En(r) : l + 1, p = Sn(s);
1801
1888
  r.splice(d, 0, p), s.role === "assistant" && n.push(p), l = d;
1802
1889
  }
1803
1890
  return { messages: r, addedReplies: n, confirmedIds: a };
1804
1891
  }
1805
- function pn(e, t, o, r) {
1892
+ function In(e, t, o, r) {
1806
1893
  for (let n = t + 1; n < e.length; n++) {
1807
1894
  const a = e[n];
1808
- if (!un(a)) {
1895
+ if (!Cn(a)) {
1809
1896
  if (r.has(a.id)) return -1;
1810
1897
  if (a.sender === o && !a.isFailed) return n;
1811
1898
  }
1812
1899
  }
1813
1900
  return -1;
1814
1901
  }
1815
- function hn(e) {
1902
+ function En(e) {
1816
1903
  const t = e.findIndex((o) => !o.isWelcomeMessage);
1817
1904
  return t === -1 ? e.length : t;
1818
1905
  }
1819
- function fn({
1906
+ function Rn({
1820
1907
  appId: e,
1821
1908
  userId: t,
1822
1909
  userName: o,
@@ -1833,24 +1920,24 @@ function fn({
1833
1920
  isChatClosed: h,
1834
1921
  onAgentMessage: f
1835
1922
  }) {
1836
- const { saveChatData: g, clearChatData: R, updateLastActivity: q, markChatClosed: z } = it({
1923
+ const { saveChatData: g, clearChatData: R, updateLastActivity: q, markChatClosed: z } = st({
1837
1924
  appId: e
1838
- }), { publishApiError: A, publishNetworkError: E } = Ke(), { showCognition: O, hideCognition: U } = Bt(), m = F(l), y = F(u), _ = $(0), oe = v(
1925
+ }), { publishApiError: M, publishNetworkError: S } = Ve(), { showCognition: P, hideCognition: U } = Kt(), m = F(l), y = F(u), _ = $(0), oe = v(
1839
1926
  (b, x) => {
1840
1927
  if (!b.response.content) return;
1841
- const j = !!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(
1842
1929
  (w) => w.isRatingRequest
1843
1930
  ), k = y.current.some(
1844
1931
  (w) => w.id === b.message_id
1845
1932
  );
1846
- !j && !M && !k && f?.();
1847
- const S = _.current;
1933
+ !j && !A && !k && f?.();
1934
+ const I = _.current;
1848
1935
  i((w) => {
1849
- if (_.current !== S || w.some((V) => V.isRatingRequest) || w.some((V) => V.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)
1850
1937
  return w;
1851
1938
  const X = [
1852
1939
  ...w.filter((V) => !V.isThinking),
1853
- on(b)
1940
+ vn(b)
1854
1941
  ];
1855
1942
  return g(
1856
1943
  x,
@@ -1875,16 +1962,16 @@ function fn({
1875
1962
  (b, x) => {
1876
1963
  const j = y.current.some(
1877
1964
  (w) => w.isRatingRequest
1878
- ), M = b.filter(
1965
+ ), A = b.filter(
1879
1966
  (w) => !(w.role === "assistant" && (j || s?.welcome_message && w.response.content === s.welcome_message))
1880
1967
  );
1881
- wt(y.current, M).addedReplies.length > 0 && f?.();
1882
- const S = _.current;
1968
+ kt(y.current, A).addedReplies.length > 0 && f?.();
1969
+ const I = _.current;
1883
1970
  i((w) => {
1884
- if (_.current !== S) return w;
1885
- const { messages: Z, addedReplies: X, confirmedIds: V } = wt(
1971
+ if (_.current !== I) return w;
1972
+ const { messages: Z, addedReplies: X, confirmedIds: V } = kt(
1886
1973
  w,
1887
- M
1974
+ A
1888
1975
  );
1889
1976
  if (X.length === 0 && V.length === 0) return w;
1890
1977
  const W = X.length > 0 ? Z.filter((fe) => !fe.isThinking) : Z;
@@ -1910,31 +1997,31 @@ function fn({
1910
1997
  ), de = v(() => {
1911
1998
  U(), i((b) => b.filter((x) => !x.isThinking));
1912
1999
  }, [i, U]), ae = v(() => {
1913
- i((b) => [...b.filter((j) => !j.isRatingRequest), nn()]);
2000
+ i((b) => [...b.filter((j) => !j.isRatingRequest), qn()]);
1914
2001
  }, [i]);
1915
2002
  K(() => {
1916
2003
  }, [ae]);
1917
2004
  const D = v(
1918
2005
  (b) => m.current ? m.current.getChatHistory(b) : Promise.resolve([]),
1919
2006
  [m]
1920
- ), J = v(() => m.current?.getChatToken() ?? null, [m]), N = v(() => {
2007
+ ), G = v(() => m.current?.getChatToken() ?? null, [m]), L = v(() => {
1921
2008
  z(), c?.();
1922
- }, [z, c]), { connect: H, disconnect: re, clearProcessedIds: le, expectReply: G } = tn({
2009
+ }, [z, c]), { connect: H, disconnect: re, clearProcessedIds: le, expectReply: J } = bn({
1923
2010
  chatSettings: s,
1924
2011
  chatId: d?.id ?? null,
1925
2012
  messages: u,
1926
2013
  onMessage: oe,
1927
2014
  onHistory: ee,
1928
- onCognition: O,
2015
+ onCognition: P,
1929
2016
  onCognitionComplete: U,
1930
2017
  onError: de,
1931
- onChatClosed: N,
2018
+ onChatClosed: L,
1932
2019
  onRatingRequest: ae,
1933
- onBreadcrumb: N,
2020
+ onBreadcrumb: L,
1934
2021
  fetchHistory: D,
1935
- getChatToken: J
2022
+ getChatToken: G
1936
2023
  }), ie = v(() => {
1937
- _.current += 1, U(), re(), le(), Lt(u), i(
2024
+ _.current += 1, U(), re(), le(), Vt(u), i(
1938
2025
  (b) => b.filter((x) => Array.isArray(x) ? !1 : x.isWelcomeMessage)
1939
2026
  ), R(), p(null);
1940
2027
  }, [
@@ -1946,7 +2033,7 @@ function fn({
1946
2033
  i,
1947
2034
  p
1948
2035
  ]), Y = v(
1949
- (b, x) => i((j) => vt(j, b, x)),
2036
+ (b, x) => i((j) => xt(j, b, x)),
1950
2037
  [i]
1951
2038
  ), ce = v(
1952
2039
  async (b) => {
@@ -1956,7 +2043,7 @@ function fn({
1956
2043
  userName: o,
1957
2044
  userData: r,
1958
2045
  externalMetadata: {
1959
- searchParams: po()
2046
+ searchParams: Io()
1960
2047
  }
1961
2048
  });
1962
2049
  p({ id: x.chat_id });
@@ -1972,43 +2059,43 @@ function fn({
1972
2059
  },
1973
2060
  [n, t, a, o, r, p, H]
1974
2061
  ), ve = v(
1975
- (b, x, j, M) => Promise.all(
2062
+ (b, x, j, A) => Promise.all(
1976
2063
  j.map(
1977
- ({ file: k }, S) => b.uploadAttachment({
2064
+ ({ file: k }, I) => b.uploadAttachment({
1978
2065
  conversationId: x,
1979
2066
  file: k,
1980
2067
  onProgress: (w) => Y(
1981
- M,
1982
- (Z) => ln(Z, S, w)
2068
+ A,
2069
+ (Z) => kn(Z, I, w)
1983
2070
  )
1984
2071
  }).catch((w) => {
1985
- throw Nt(w, k.name);
2072
+ throw Wt(w, k.name);
1986
2073
  })
1987
2074
  )
1988
2075
  ),
1989
2076
  [Y]
1990
2077
  ), pe = v(
1991
- (b, x, j, M) => {
1992
- U(), M && i((S) => cn(S, j)), i((S) => S.filter((w) => !w.isThinking));
1993
- const k = () => Y(j, (S) => ({ ...S, isFailed: !0 }));
1994
- if (b instanceof Zt) {
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) {
1995
2082
  k();
1996
2083
  return;
1997
2084
  }
1998
- if (b instanceof at || b instanceof Le && b.status === 403) {
1999
- E();
2085
+ if (b instanceof it || b instanceof Ue && b.status === 403) {
2086
+ S();
2000
2087
  return;
2001
2088
  }
2002
- A(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
2003
2090
  // the next send starts a fresh one, as for a client-side expiry.
2004
- (b.status >= 500 || b.status === 401) ? (p(null), R(), i((S) => S.filter((w) => w.id !== j)), x.reset()) : k();
2091
+ (b.status >= 500 || b.status === 401) ? (p(null), R(), i((I) => I.filter((w) => w.id !== j)), x.reset()) : k();
2005
2092
  },
2006
2093
  [
2007
2094
  U,
2008
2095
  i,
2009
2096
  Y,
2010
- E,
2011
- A,
2097
+ S,
2098
+ M,
2012
2099
  p,
2013
2100
  R
2014
2101
  ]
@@ -2016,25 +2103,25 @@ function fn({
2016
2103
  async (b, x = []) => {
2017
2104
  if (!l || u.some((k) => k.isRatingRequest)) return;
2018
2105
  if (h) {
2019
- i((k) => [...k, an()]);
2106
+ i((k) => [...k, yn()]);
2020
2107
  return;
2021
2108
  }
2022
- const j = _.current, M = sn(b, x);
2023
- i((k) => [...k, M]), q();
2109
+ const j = _.current, A = xn(b, x);
2110
+ i((k) => [...k, A]), q();
2024
2111
  try {
2025
- const k = d?.id || await ce(l), S = await ve(
2112
+ const k = d?.id || await ce(l), I = await ve(
2026
2113
  l,
2027
2114
  k,
2028
2115
  x,
2029
- M.id
2116
+ A.id
2030
2117
  );
2031
- S.length > 0 && Y(M.id, (Z) => ({
2118
+ I.length > 0 && Y(A.id, (Z) => ({
2032
2119
  ...Z,
2033
- attachments: Kt(S, x)
2120
+ attachments: Ft(I, x)
2034
2121
  }));
2035
2122
  const w = await l.replyToConversation({
2036
2123
  text: b.content,
2037
- attachments: S,
2124
+ attachments: I,
2038
2125
  conversationId: k,
2039
2126
  userId: n || t,
2040
2127
  deviceId: a,
@@ -2043,7 +2130,7 @@ function fn({
2043
2130
  });
2044
2131
  i((Z) => {
2045
2132
  if (_.current !== j) return Z;
2046
- const X = Z.some((W) => W.id === M.id) ? M.id : w.message_id, V = vt(Z, X, (W) => ({
2133
+ const X = Z.some((W) => W.id === A.id) ? A.id : w.message_id, V = xt(Z, X, (W) => ({
2047
2134
  ...W,
2048
2135
  id: w.message_id,
2049
2136
  localId: W.localId ?? W.id,
@@ -2056,12 +2143,12 @@ function fn({
2056
2143
  a,
2057
2144
  l.getChatToken()
2058
2145
  ), V;
2059
- }), G();
2146
+ }), J();
2060
2147
  } catch (k) {
2061
2148
  throw pe(
2062
2149
  k,
2063
2150
  l,
2064
- M.id,
2151
+ A.id,
2065
2152
  x.length > 0
2066
2153
  ), k;
2067
2154
  }
@@ -2077,7 +2164,7 @@ function fn({
2077
2164
  ve,
2078
2165
  Y,
2079
2166
  g,
2080
- G,
2167
+ J,
2081
2168
  pe,
2082
2169
  n,
2083
2170
  t,
@@ -2098,23 +2185,24 @@ function fn({
2098
2185
  onRateChat: he
2099
2186
  };
2100
2187
  }
2101
- 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", VITE_SENTRY_DSN: "" };
2102
- function Et(e) {
2103
- 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] || "";
2104
2192
  }
2105
- const mn = Et("VITE_API_URL"), bn = Et("VITE_REGION_API_URL");
2106
- function vn() {
2107
- return mn || "";
2193
+ const Tn = At("VITE_API_URL"), Mn = At("VITE_REGION_API_URL");
2194
+ function An() {
2195
+ return Tn || "";
2108
2196
  }
2109
- function wn() {
2110
- return bn || "";
2197
+ function Pn() {
2198
+ return Mn || "";
2111
2199
  }
2112
- class qn {
2200
+ class On {
2113
2201
  httpClient;
2114
2202
  userId = null;
2115
2203
  conversationId = null;
2116
2204
  constructor(t) {
2117
- this.userId = t.userId || null, this.httpClient = new Vt(t);
2205
+ this.userId = t.userId || null, this.httpClient = new Gt(t);
2118
2206
  }
2119
2207
  getUserData() {
2120
2208
  return {
@@ -2141,7 +2229,7 @@ class qn {
2141
2229
  * Get organization data by app ID
2142
2230
  */
2143
2231
  async getOrganizationByAppId(t) {
2144
- const o = wn();
2232
+ const o = Pn();
2145
2233
  return await this.httpClient.getExternal(
2146
2234
  `${o}/by-app-id/${t}`
2147
2235
  );
@@ -2188,14 +2276,14 @@ class qn {
2188
2276
  o,
2189
2277
  t.onProgress
2190
2278
  );
2191
- return Fr.parse(r).data;
2279
+ return un.parse(r).data;
2192
2280
  }
2193
2281
  async getAttachmentUrls(t, o) {
2194
2282
  const r = await this.httpClient.post(
2195
2283
  `/v1/chat/${t}/attachments/urls`,
2196
2284
  { urls: o }
2197
2285
  );
2198
- return Jr.parse(r).data.urls;
2286
+ return dn.parse(r).data.urls;
2199
2287
  }
2200
2288
  async identifyUser(t) {
2201
2289
  const o = {
@@ -2213,62 +2301,62 @@ class qn {
2213
2301
  )).data;
2214
2302
  }
2215
2303
  }
2216
- const yn = {
2304
+ const Un = {
2217
2305
  retries: 3,
2218
2306
  minDelayMs: 200,
2219
2307
  maxDelayMs: 1e3,
2220
2308
  factor: 2
2221
2309
  };
2222
- function xn(e) {
2223
- 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;
2224
2312
  }
2225
- function kn(e, t) {
2313
+ function Dn(e, t) {
2226
2314
  const o = t.minDelayMs * t.factor ** e, r = Math.min(o, t.maxDelayMs);
2227
2315
  return Math.random() * r;
2228
2316
  }
2229
- async function qt(e, t = {}) {
2230
- const o = { ...yn, ...t };
2317
+ async function _t(e, t = {}) {
2318
+ const o = { ...Un, ...t };
2231
2319
  for (let r = 0; ; r++)
2232
2320
  try {
2233
2321
  return await e();
2234
2322
  } catch (n) {
2235
- if (r >= o.retries || !xn(n))
2323
+ if (r >= o.retries || !jn(n))
2236
2324
  throw n;
2237
2325
  await new Promise(
2238
- (a) => setTimeout(a, kn(r, o))
2326
+ (a) => setTimeout(a, Dn(r, o))
2239
2327
  );
2240
2328
  }
2241
2329
  }
2242
- const De = /* @__PURE__ */ new Map(), $e = /* @__PURE__ */ new Map();
2243
- function _n(e, t, o) {
2330
+ const Ne = /* @__PURE__ */ new Map(), Be = /* @__PURE__ */ new Map();
2331
+ function $n(e, t, o) {
2244
2332
  const r = o?.dedupe !== !1, [n, a] = C(
2245
- () => De.get(e)
2246
- ), { publishApiError: l, publishNetworkError: s } = Ke(), [u, i] = C(void 0), [d, p] = C(!1), c = $(!0);
2333
+ () => Ne.get(e)
2334
+ ), { publishApiError: l, publishNetworkError: s } = Ve(), [u, i] = C(void 0), [d, p] = C(!1), c = $(!0);
2247
2335
  $(() => (c.current = !0, () => {
2248
2336
  c.current = !1;
2249
2337
  }));
2250
2338
  const h = v(async () => {
2251
- if (De.has(e)) {
2252
- const f = De.get(e);
2339
+ if (Ne.has(e)) {
2340
+ const f = Ne.get(e);
2253
2341
  return a(f), f;
2254
2342
  }
2255
2343
  p(!0), i(void 0);
2256
2344
  try {
2257
- if (r && $e.has(e))
2258
- return await $e.get(e);
2345
+ if (r && Be.has(e))
2346
+ return await Be.get(e);
2259
2347
  const f = t();
2260
- r && $e.set(e, f);
2348
+ r && Be.set(e, f);
2261
2349
  const g = await f;
2262
- return De.set(e, g), c.current && a(g), g;
2350
+ return Ne.set(e, g), c.current && a(g), g;
2263
2351
  } catch (f) {
2264
- throw f instanceof at || f instanceof Le && f.status === 403 ? s() : l(f), c.current && i(f), f;
2352
+ throw f instanceof it || f instanceof Ue && f.status === 403 ? s() : l(f), c.current && i(f), f;
2265
2353
  } finally {
2266
- $e.delete(e), c.current && p(!1);
2354
+ Be.delete(e), c.current && p(!1);
2267
2355
  }
2268
2356
  }, [e, r, t, l, s]);
2269
2357
  return { data: n, error: u, isLoading: d, fetch: h };
2270
2358
  }
2271
- function yt(e, t) {
2359
+ function Ct(e, t) {
2272
2360
  const o = e?.deviceId || crypto.randomUUID();
2273
2361
  return e?.userId ? e.externalId !== t ? { userId: e.userId, externalId: t, deviceId: o } : {
2274
2362
  userId: e.userId,
@@ -2276,11 +2364,11 @@ function yt(e, t) {
2276
2364
  deviceId: o
2277
2365
  } : t ? { userId: t, externalId: t, deviceId: o } : { userId: crypto.randomUUID(), externalId: null, deviceId: o };
2278
2366
  }
2279
- function Cn(e) {
2280
- const { appId: t, initialUserId: o } = e, { getSavedChatData: r } = it({ appId: t }), [n, a] = C(
2281
- () => 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)
2282
2370
  ), [l, s] = C(o);
2283
- return l !== o && (s(o), a(yt(r(), o))), {
2371
+ return l !== o && (s(o), a(Ct(r(), o))), {
2284
2372
  // Identity is available synchronously; kept in the contract because
2285
2373
  // consumers (SDK boot) still key off it.
2286
2374
  isReady: !0,
@@ -2289,7 +2377,7 @@ function Cn(e) {
2289
2377
  externalId: n.externalId
2290
2378
  };
2291
2379
  }
2292
- function Sn({
2380
+ function Bn({
2293
2381
  apiUrl: e,
2294
2382
  appId: t,
2295
2383
  initialUserId: o,
@@ -2301,14 +2389,14 @@ function Sn({
2301
2389
  externalId: l,
2302
2390
  deviceId: s,
2303
2391
  isReady: u
2304
- } = Cn({ appId: t, initialUserId: o }), { isChatExpired: i, clearChatData: d, getSavedChatData: p } = it({
2392
+ } = Nn({ appId: t, initialUserId: o }), { isChatExpired: i, clearChatData: d, getSavedChatData: p } = st({
2305
2393
  appId: t
2306
- }), { current: c } = $(e || vn()), [h] = C(
2307
- new qn({
2394
+ }), { current: c } = $(e || An()), [h] = C(
2395
+ new On({
2308
2396
  baseURL: c,
2309
2397
  appId: t
2310
2398
  })
2311
- ), [f, g] = C(null), [R, q] = C(null), [z, A] = C([]), [E, O] = C(!1), [U, m] = C(!1), [y, _] = C(!0), ee = _n(`sdk-boot-${t}`, () => h.boot()).fetch;
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;
2312
2400
  K(() => {
2313
2401
  if (i())
2314
2402
  d();
@@ -2316,42 +2404,42 @@ function Sn({
2316
2404
  const {
2317
2405
  conversationId: ae,
2318
2406
  userId: D,
2319
- messages: J,
2320
- isChatClosed: N,
2407
+ messages: G,
2408
+ isChatClosed: L,
2321
2409
  chatToken: H
2322
2410
  } = p();
2323
2411
  ae && D && (q({
2324
2412
  id: ae
2325
- }), h.setChatToken(H ?? null), J && J.length > 0 && A(J), N && m(!0));
2413
+ }), h.setChatToken(H ?? null), G && G.length > 0 && M(G), L && m(!0));
2326
2414
  }
2327
2415
  }, [p, i, d, h]);
2328
2416
  const de = $(!1);
2329
2417
  return K(() => {
2330
2418
  if (de.current) return;
2331
2419
  de.current = !0, (async () => {
2332
- const [D, J] = await ct(
2333
- qt(() => h.getOrganizationByAppId(t))
2420
+ const [D, G] = await ut(
2421
+ _t(() => h.getOrganizationByAppId(t))
2334
2422
  );
2335
- if (J) {
2336
- console.error("Failed to fetch organization data:", J), _(!1), O(!0);
2423
+ if (G) {
2424
+ console.error("Failed to fetch organization data:", G), _(!1), P(!0);
2337
2425
  return;
2338
2426
  }
2339
2427
  h.setRegion(D.region);
2340
- const [N, H] = await ct(qt(ee));
2428
+ const [L, H] = await ut(_t(ee));
2341
2429
  if (H) {
2342
- _(!1), O(!0);
2430
+ _(!1), P(!0);
2343
2431
  return;
2344
2432
  }
2345
2433
  const {
2346
2434
  conversationId: re,
2347
2435
  userId: le,
2348
- messages: G
2436
+ messages: J
2349
2437
  } = p();
2350
- re && le && G.some(Wt) && A(
2351
- await Ht(h, re, G)
2438
+ re && le && J.some(Jt) && M(
2439
+ await Yt(h, re, J)
2352
2440
  );
2353
- const ie = N.chat_settings.welcome_message;
2354
- g(N.chat_settings), _(N.chat_settings.is_active ?? !0), ie && A((Y) => Y.length > 0 || Y.some((ce) => ce.isWelcomeMessage) ? Y : [rn(ie)]), O(!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);
2355
2443
  })();
2356
2444
  }, [u, h, t, ee, p]), {
2357
2445
  userId: a,
@@ -2363,22 +2451,22 @@ function Sn({
2363
2451
  chatSettings: f,
2364
2452
  currentChat: R,
2365
2453
  messages: z,
2366
- isReady: E,
2454
+ isReady: S,
2367
2455
  isChatClosed: U,
2368
2456
  isChatActive: y
2369
2457
  };
2370
2458
  }
2371
- const zt = "(max-width: 640px)";
2372
- function In() {
2373
- 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;
2374
2462
  }
2375
- function Rn(e) {
2376
- const [t, o] = C(In), [r, n] = C(
2463
+ function Zn(e) {
2464
+ const [t, o] = C(Ln), [r, n] = C(
2377
2465
  null
2378
2466
  ), a = e ?? t, l = typeof window > "u";
2379
2467
  return K(() => {
2380
2468
  if (l) return;
2381
- const s = window.matchMedia(zt), u = (i) => {
2469
+ const s = window.matchMedia(Pt), u = (i) => {
2382
2470
  o(i.matches);
2383
2471
  };
2384
2472
  return u(s), s.addEventListener("change", u), () => s.removeEventListener("change", u);
@@ -2394,36 +2482,36 @@ function Rn(e) {
2394
2482
  portalContainer: r
2395
2483
  };
2396
2484
  }
2397
- const xt = 1245, En = [
2485
+ const St = 1245, Kn = [
2398
2486
  [2.32, 0.4],
2399
2487
  [4.25, 0.18]
2400
- ], zn = [
2488
+ ], Vn = [
2401
2489
  { start: 0, duration: 0.22, level: 0.45 },
2402
2490
  { start: 0.16, duration: 0.2, level: 0.25 }
2403
- ], Tn = 0.3, Mn = 3e-3, kt = 1e-4;
2404
- 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) {
2405
2493
  const l = e.createOscillator(), s = e.createGain();
2406
- 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);
2407
2495
  }
2408
- function An(e) {
2496
+ function Fn(e) {
2409
2497
  const t = e.createGain();
2410
- t.gain.value = Tn;
2498
+ t.gain.value = Wn;
2411
2499
  const o = e.createBiquadFilter();
2412
2500
  o.type = "lowpass", o.frequency.value = 6e3, t.connect(o).connect(e.destination);
2413
2501
  const r = e.currentTime + 0.02;
2414
- zn.forEach((n) => {
2415
- _t(
2502
+ Vn.forEach((n) => {
2503
+ Et(
2416
2504
  e,
2417
2505
  t,
2418
- xt,
2506
+ St,
2419
2507
  n.level,
2420
2508
  r + n.start,
2421
2509
  n.duration
2422
- ), En.forEach(([a, l]) => {
2423
- _t(
2510
+ ), Kn.forEach(([a, l]) => {
2511
+ Et(
2424
2512
  e,
2425
2513
  t,
2426
- xt * a,
2514
+ St * a,
2427
2515
  n.level * l,
2428
2516
  r + n.start,
2429
2517
  n.duration * 0.35
@@ -2431,34 +2519,34 @@ function An(e) {
2431
2519
  });
2432
2520
  });
2433
2521
  }
2434
- const nt = "eloquentai:notification-sound-muted", Pn = 3e3;
2435
- function On() {
2522
+ const at = "eloquentai:notification-sound-muted", Gn = 3e3;
2523
+ function Jn() {
2436
2524
  try {
2437
- return window.localStorage.getItem(nt) === "true";
2525
+ return window.localStorage.getItem(at) === "true";
2438
2526
  } catch {
2439
2527
  return !1;
2440
2528
  }
2441
2529
  }
2442
- function Un(e) {
2530
+ function Yn(e) {
2443
2531
  try {
2444
- e ? window.localStorage.setItem(nt, "true") : window.localStorage.removeItem(nt);
2532
+ e ? window.localStorage.setItem(at, "true") : window.localStorage.removeItem(at);
2445
2533
  } catch {
2446
2534
  }
2447
2535
  }
2448
- function jn(e) {
2536
+ function Xn(e) {
2449
2537
  return document.visibilityState === "visible" && document.hasFocus() && e;
2450
2538
  }
2451
- function Dn() {
2539
+ function Qn() {
2452
2540
  const e = window.webkitAudioContext;
2453
2541
  return window.AudioContext ?? e ?? null;
2454
2542
  }
2455
- function $n({
2543
+ function ea({
2456
2544
  isEnabled: e,
2457
2545
  isOpen: t
2458
2546
  }) {
2459
- const [o, r] = C(On), n = $(null), a = $(0), l = F(t), s = F(o), u = v(() => {
2547
+ const [o, r] = C(Jn), n = $(null), a = $(0), l = F(t), s = F(o), u = v(() => {
2460
2548
  if (!e) return;
2461
- const p = Dn();
2549
+ const p = Qn();
2462
2550
  if (!p) return;
2463
2551
  try {
2464
2552
  n.current ??= new p();
@@ -2477,20 +2565,20 @@ function $n({
2477
2565
  };
2478
2566
  }, [e, u]);
2479
2567
  const i = v(() => {
2480
- if (!e || s.current || jn(l.current)) return;
2568
+ if (!e || s.current || Xn(l.current)) return;
2481
2569
  const p = n.current;
2482
2570
  if (!p || p.state !== "running") return;
2483
2571
  const c = Date.now();
2484
- c - a.current < Pn || (a.current = c, An(p));
2572
+ c - a.current < Gn || (a.current = c, Fn(p));
2485
2573
  }, [e, s, l]), d = v(() => {
2486
2574
  r((p) => !p);
2487
2575
  }, []);
2488
2576
  return K(() => {
2489
- Un(o);
2577
+ Yn(o);
2490
2578
  }, [o]), { notify: i, unlock: u, isMuted: o, toggleMuted: d };
2491
2579
  }
2492
- const Bn = 2, Ln = (e) => `eloquent-ai:chat-widget-closed-${e}`;
2493
- function Nn({
2580
+ const ta = 2, oa = (e) => `eloquent-ai:chat-widget-closed-${e}`;
2581
+ function ra({
2494
2582
  environment: e,
2495
2583
  apiUrl: t,
2496
2584
  appId: o,
@@ -2510,10 +2598,10 @@ function Nn({
2510
2598
  isAlwaysOpen: g = !1,
2511
2599
  hasCleanChatButtonOverride: R
2512
2600
  }) {
2513
- const { isMobile: q, portalContainer: z } = Rn(s), {
2514
- userId: A,
2515
- externalId: E,
2516
- deviceId: O,
2601
+ const { isMobile: q, portalContainer: z } = Zn(s), {
2602
+ userId: M,
2603
+ externalId: S,
2604
+ deviceId: P,
2517
2605
  apiClient: U,
2518
2606
  chatSettings: m,
2519
2607
  currentChat: y,
@@ -2521,7 +2609,7 @@ function Nn({
2521
2609
  isReady: oe,
2522
2610
  isChatClosed: ee,
2523
2611
  isChatActive: de
2524
- } = Sn({
2612
+ } = Bn({
2525
2613
  apiUrl: t,
2526
2614
  appId: o,
2527
2615
  initialUserId: r,
@@ -2529,92 +2617,93 @@ function Nn({
2529
2617
  userData: a
2530
2618
  });
2531
2619
  K(() => {
2532
- }, [E, A, O, e]);
2533
- const ae = uo({ chatProps: l, chatSettings: m }), D = u ?? p ?? !1, J = i ?? c ?? !0, N = d ?? h ?? !0, H = Ln(o), [re, le] = C(() => g ? !0 : ut(H) === "true" || q ? !1 : D ?? q), [G, ie] = C(!1);
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);
2534
2623
  K(() => {
2535
- if (!oe || G || (ie(!0), g)) return;
2536
- const L = m?.initial_open;
2537
- L != null && (q || L && ut(H) === "true" || le(L));
2624
+ if (!oe || J || (ie(!0), g)) return;
2625
+ const B = m?.initial_open;
2626
+ B != null && (q || B && dt(H) === "true" || le(B));
2538
2627
  }, [
2539
2628
  oe,
2540
- G,
2629
+ J,
2541
2630
  m?.initial_open,
2542
2631
  q,
2543
2632
  H,
2544
2633
  g
2545
2634
  ]);
2546
- 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({
2547
2636
  isEnabled: m?.notification_sound !== !1,
2548
2637
  isOpen: re
2549
2638
  }), { unlock: he } = ne, b = v(
2550
- (L) => {
2639
+ (B) => {
2551
2640
  g || (he(), le((ue) => {
2552
- const lt = typeof L == "function" ? L(ue) : L;
2553
- return lt ? co(H) : lo(H, "true", Bn), lt;
2641
+ const ct = typeof B == "function" ? B(ue) : B;
2642
+ return ct ? fo(H) : ho(H, "true", ta), ct;
2554
2643
  }));
2555
2644
  },
2556
2645
  [H, g, he]
2557
- ), x = Ft(re, 400), [j, M] = C(
2646
+ ), x = Xt(re, 400), [j, A] = C(
2558
2647
  l?.messages ?? []
2559
- ), [k, S] = C(y), [w, Z] = C(!1), [X, V] = C(_);
2560
- X !== _ && (V(_), _.length > 0 && M(_));
2648
+ ), [k, I] = C(y), [w, Z] = C(!1), [X, V] = C(_);
2649
+ X !== _ && (V(_), _.length > 0 && A(_));
2561
2650
  const [W, fe] = C(y);
2562
- W !== y && (fe(y), y && S(y));
2563
- const [Re, Ee] = C(ee);
2564
- Re !== ee && (Ee(ee), ee && Z(!0));
2651
+ W !== y && (fe(y), y && I(y));
2652
+ const [Ee, Re] = C(ee);
2653
+ Ee !== ee && (Re(ee), ee && Z(!0));
2565
2654
  const ze = v(() => {
2566
2655
  Z(!0);
2567
- }, []), [We, He] = C(!1), P = oe && m?.auto_display_welcome_message && m?.welcome_message ? m.welcome_message : "", se = {
2568
- text: P,
2569
- isVisible: P !== "" && !We,
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,
2570
2659
  autoHideDelay: pe
2571
- }, { onSendMessage: we, onCleanMessages: te, onRateChat: Fe } = fn({
2660
+ }, { onSendMessage: we, onCleanMessages: te, onRateChat: Ge } = Rn({
2572
2661
  appId: o,
2573
- userId: A,
2662
+ userId: M,
2574
2663
  userName: n,
2575
2664
  userData: a,
2576
- externalId: E,
2577
- deviceId: O,
2665
+ externalId: S,
2666
+ deviceId: P,
2578
2667
  apiClient: U,
2579
2668
  chatSettings: m,
2580
- setMessages: M,
2669
+ setMessages: A,
2581
2670
  messages: j,
2582
2671
  currentChat: k,
2583
- setCurrentChat: S,
2672
+ setCurrentChat: I,
2584
2673
  onChatClosed: ze,
2585
2674
  isChatClosed: w,
2586
2675
  onAgentMessage: ne.notify
2587
2676
  });
2588
2677
  K(() => {
2589
- _.length > 0 && M(_);
2678
+ _.length > 0 && A(_);
2590
2679
  }, [_]), K(() => {
2591
- y && S(y);
2680
+ y && I(y);
2592
2681
  }, [y]);
2593
- const je = $(null);
2682
+ const $e = $(null);
2594
2683
  K(() => {
2595
- if (!k || !E || !U) return;
2596
- const L = {
2597
- userId: A,
2684
+ if (!k || !S || !U) return;
2685
+ const B = {
2686
+ userId: M,
2598
2687
  userName: n,
2599
2688
  userData: a,
2600
- externalId: E,
2601
- deviceId: O,
2689
+ externalId: S,
2690
+ deviceId: P,
2602
2691
  conversationId: k.id
2603
- }, ue = JSON.stringify(L);
2604
- je.current !== ue && (je.current = ue, U.identifyUser(L));
2692
+ }, ue = JSON.stringify(B);
2693
+ $e.current !== ue && ($e.current = ue, U.identifyUser(B));
2605
2694
  }, [
2606
- E,
2607
- A,
2695
+ S,
2696
+ M,
2608
2697
  n,
2609
2698
  a,
2610
- O,
2699
+ P,
2611
2700
  k,
2612
2701
  U
2613
2702
  ]);
2614
2703
  const Te = v(() => {
2615
2704
  te(), Z(!1);
2616
2705
  }, [te]), me = v(() => {
2617
- He(!0);
2706
+ Fe(!0);
2618
2707
  }, []);
2619
2708
  return {
2620
2709
  isReady: oe,
@@ -2636,13 +2725,13 @@ function Nn({
2636
2725
  hideProactiveMessage: me,
2637
2726
  isChatClosed: w,
2638
2727
  onStartNewChat: Te,
2639
- onRateChat: Fe,
2728
+ onRateChat: Ge,
2640
2729
  unlockSound: he,
2641
2730
  isSoundMuted: ne.isMuted,
2642
2731
  toggleSound: ne.toggleMuted
2643
2732
  };
2644
2733
  }
2645
- function Zn(e) {
2734
+ function na(e) {
2646
2735
  const [t, o] = C(0);
2647
2736
  return K(() => {
2648
2737
  const r = window.visualViewport;
@@ -2659,7 +2748,7 @@ function Zn(e) {
2659
2748
  };
2660
2749
  }, [e]), t;
2661
2750
  }
2662
- function Kn(e) {
2751
+ function aa(e) {
2663
2752
  K(() => {
2664
2753
  if (!e) return;
2665
2754
  const { body: t } = document, o = window.scrollY, r = {
@@ -2674,7 +2763,7 @@ function Kn(e) {
2674
2763
  };
2675
2764
  }, [e]);
2676
2765
  }
2677
- function Vn() {
2766
+ function ia() {
2678
2767
  const [e, t] = C(!1), [o, r] = C(null), n = $(null), a = $(null), l = v((u) => {
2679
2768
  const i = (d) => {
2680
2769
  r(d), t(!0), a.current = null, n.current && clearTimeout(n.current), n.current = setTimeout(() => {
@@ -2694,29 +2783,29 @@ function Vn() {
2694
2783
  hideCognition: s
2695
2784
  };
2696
2785
  }
2697
- function Wn({
2786
+ function sa({
2698
2787
  children: e
2699
2788
  }) {
2700
- const t = Vn();
2701
- return /* @__PURE__ */ I(Jt.Provider, { value: t, children: e });
2789
+ const t = ia();
2790
+ return /* @__PURE__ */ E(Qt.Provider, { value: t, children: e });
2702
2791
  }
2703
- const Hn = ({
2792
+ const la = ({
2704
2793
  appId: e,
2705
2794
  children: t
2706
2795
  }) => {
2707
2796
  const [o, r] = C(null), [n, a] = C(!1), l = (c, h) => {
2708
- r(c);
2797
+ yo(c, h, e), r(c);
2709
2798
  }, p = {
2710
2799
  error: o,
2711
2800
  hideSdk: n,
2712
- publishApiError: (c) => l(Yt(c)),
2801
+ publishApiError: (c) => l(to(c), c),
2713
2802
  publishError: (c) => l(c),
2714
2803
  publishNetworkError: () => a(!0),
2715
2804
  clearError: () => r(null)
2716
2805
  };
2717
- return /* @__PURE__ */ I(Gt.Provider, { value: p, children: t });
2718
- }, Fn = 100;
2719
- function Jn({
2806
+ return /* @__PURE__ */ E(eo.Provider, { value: p, children: t });
2807
+ }, ca = 100;
2808
+ function ua({
2720
2809
  appId: e,
2721
2810
  userId: t,
2722
2811
  userName: o,
@@ -2737,25 +2826,25 @@ function Jn({
2737
2826
  INTERNAL_ONLY_FEATURE_MESSAGE_CLICK: R = void 0,
2738
2827
  INTERNAL_ONLY_FEATURE_CLEAR_CHAT_CLICK: q = void 0,
2739
2828
  INTERNAL_ONLY_ON_CHAT_ID: z = void 0,
2740
- INTERNAL_ONLY_HIGHLIGHTED_MESSAGE_ID: A = null,
2741
- INTERNAL_ONLY_ON_MESSAGE_SENT: E = void 0,
2742
- INTERNAL_ONLY_SHOW_COPY_BUTTON: O = !1,
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,
2743
2832
  INTERNAL_ONLY_ENVIRONMENT: U = "live",
2744
2833
  INTERNAL_ONLY_API_URL: m
2745
2834
  }) {
2746
- const { hideSdk: y } = Ke(), {
2835
+ const { hideSdk: y } = Ve(), {
2747
2836
  isReady: _,
2748
2837
  isChatActive: oe,
2749
2838
  isInitiallyOpen: ee,
2750
2839
  hasCloseButton: de,
2751
2840
  hasCleanChatButton: ae,
2752
2841
  isMobile: D,
2753
- chatId: J,
2754
- chatOpen: N,
2842
+ chatId: G,
2843
+ chatOpen: L,
2755
2844
  unlockSound: H,
2756
2845
  isSoundMuted: re,
2757
2846
  toggleSound: le,
2758
- chatInterfaceProps: G,
2847
+ chatInterfaceProps: J,
2759
2848
  chatOpenDebounced: ie,
2760
2849
  messages: Y,
2761
2850
  portalContainer: ce,
@@ -2766,7 +2855,7 @@ function Jn({
2766
2855
  isChatClosed: b,
2767
2856
  onStartNewChat: x,
2768
2857
  onRateChat: j
2769
- } = Nn({
2858
+ } = ra({
2770
2859
  environment: U,
2771
2860
  apiUrl: m,
2772
2861
  appId: e,
@@ -2786,12 +2875,12 @@ function Jn({
2786
2875
  // it, so nothing (boot initial_open, closed-cookie, props) may close it.
2787
2876
  isAlwaysOpen: h,
2788
2877
  hasCleanChatButtonOverride: f
2789
- }), M = $(void 0);
2878
+ }), A = $(void 0);
2790
2879
  K(() => {
2791
- !z || M.current === J || (M.current = J, z(J));
2792
- }, [J, z]);
2793
- const k = $(null), [S, w] = C(!1), Z = Zn(D && N);
2794
- Kn(D && N);
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);
2795
2884
  const X = !_;
2796
2885
  if (y || X && !h || !X && !oe) return null;
2797
2886
  const V = () => /* @__PURE__ */ ke(
@@ -2810,20 +2899,20 @@ function Jn({
2810
2899
  ...g ? { position: "relative", inset: 0, width: "100%", height: "100%" } : {}
2811
2900
  },
2812
2901
  children: [
2813
- /* @__PURE__ */ I("style", { children: oo }),
2814
- /* @__PURE__ */ I(
2815
- Ge,
2902
+ /* @__PURE__ */ E("style", { children: io }),
2903
+ /* @__PURE__ */ E(
2904
+ Ye,
2816
2905
  {
2817
2906
  className: "eloquentai-chat-messaging",
2818
2907
  title: "Chat",
2819
- head: /* @__PURE__ */ I("style", { children: Je }),
2908
+ head: /* @__PURE__ */ E("style", { children: Je }),
2820
2909
  style: {
2821
- display: N || ie ? "block" : "none",
2910
+ display: L || ie ? "block" : "none",
2822
2911
  width: D ? "100vw" : "400px",
2823
2912
  // 100dvh accounts for mobile browser chrome (e.g. address bar); 100vh fallback for older browsers
2824
2913
  "--chat-mobile-viewport-height": "100dvh",
2825
2914
  height: D ? "var(--chat-mobile-viewport-height, 100vh)" : "700px",
2826
- 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)`,
2827
2916
  border: "none",
2828
2917
  zIndex: 2147483e3,
2829
2918
  position: "fixed",
@@ -2848,32 +2937,32 @@ function Jn({
2848
2937
  // booting): hold the widget's frame with a skeleton so a remount —
2849
2938
  // project/environment switch in the host app — doesn't flash an
2850
2939
  // empty hole where the chat was.
2851
- /* @__PURE__ */ I(Xt, { isOpen: !0, isMobile: D, skipAnimation: !0 })
2852
- ) : /* @__PURE__ */ I(
2853
- Qt,
2940
+ /* @__PURE__ */ E(oo, { isOpen: !0, isMobile: D, skipAnimation: !0 })
2941
+ ) : /* @__PURE__ */ E(
2942
+ ro,
2854
2943
  {
2855
- ...G,
2944
+ ...J,
2856
2945
  hasIntroAnimation: !h,
2857
2946
  isDialog: !h,
2858
- shouldFocusOnOpen: S,
2947
+ shouldFocusOnOpen: I,
2859
2948
  isTestMode: U === "test",
2860
- isOpen: N,
2949
+ isOpen: L,
2861
2950
  keyboardInset: Z,
2862
2951
  messages: Y,
2863
- onSendMessage: (fe, Re) => (H(), E?.(fe), ve(fe, Re)),
2952
+ onSendMessage: (fe, Ee) => (H(), S?.(fe), ve(fe, Ee)),
2864
2953
  onMessageClick: R,
2865
- highlightedMessageId: A,
2954
+ highlightedMessageId: M,
2866
2955
  isMobile: D,
2867
2956
  hasCloseButton: de,
2868
2957
  hasCleanChatButton: ae,
2869
- hasCopyButton: O,
2958
+ hasCopyButton: P,
2870
2959
  isChatClosed: b,
2871
2960
  onStartNewChat: x,
2872
2961
  onRateChat: j,
2873
2962
  isSoundMuted: re,
2874
2963
  onToggleSound: le,
2875
2964
  onClose: () => {
2876
- Mt(() => pe(!1)), no(k.current);
2965
+ Ut(() => pe(!1)), lo(k.current);
2877
2966
  },
2878
2967
  onCleanChat: () => {
2879
2968
  x(), q?.();
@@ -2882,13 +2971,13 @@ function Jn({
2882
2971
  )
2883
2972
  }
2884
2973
  ),
2885
- !h && /* @__PURE__ */ I(
2886
- Ge,
2974
+ !h && /* @__PURE__ */ E(
2975
+ Ye,
2887
2976
  {
2888
2977
  className: "eloquentai-chat-launcher",
2889
2978
  title: "Chat launcher",
2890
2979
  frameRef: k,
2891
- head: /* @__PURE__ */ I("style", { children: Je }),
2980
+ head: /* @__PURE__ */ E("style", { children: Je }),
2892
2981
  style: {
2893
2982
  position: "fixed",
2894
2983
  bottom: 17,
@@ -2898,28 +2987,28 @@ function Jn({
2898
2987
  height: 48,
2899
2988
  border: "none",
2900
2989
  zIndex: D ? 2147482999 : 2147483e3,
2901
- opacity: N ? 0 : 1,
2902
- pointerEvents: N ? "none" : "auto",
2903
- 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"
2904
2993
  },
2905
- children: /* @__PURE__ */ I(
2906
- ao,
2994
+ children: /* @__PURE__ */ E(
2995
+ co,
2907
2996
  {
2908
- isOpen: N,
2997
+ isOpen: L,
2909
2998
  toggleBubble: () => {
2910
2999
  w(!0), pe((fe) => !fe);
2911
3000
  },
2912
- isDarkMode: G?.theme?.mode === "dark"
3001
+ isDarkMode: J?.theme?.mode === "dark"
2913
3002
  }
2914
3003
  )
2915
3004
  }
2916
3005
  ),
2917
- G?.displayWelcomeMessages ? /* @__PURE__ */ I(
2918
- Ge,
3006
+ J?.displayWelcomeMessages ? /* @__PURE__ */ E(
3007
+ Ye,
2919
3008
  {
2920
3009
  className: "eloquentai-chat-proactive-message",
2921
3010
  title: "Chat greeting",
2922
- head: /* @__PURE__ */ I("style", { children: Je }),
3011
+ head: /* @__PURE__ */ E("style", { children: Je }),
2923
3012
  style: {
2924
3013
  position: "fixed",
2925
3014
  // Aligns the bubble's tail with the launcher's center: the
@@ -2928,14 +3017,14 @@ function Jn({
2928
3017
  bottom: 24,
2929
3018
  right: 17
2930
3019
  },
2931
- children: /* @__PURE__ */ I(eo, { ...G?.theme ?? {}, children: /* @__PURE__ */ I(
3020
+ children: /* @__PURE__ */ E(no, { ...J?.theme ?? {}, children: /* @__PURE__ */ E(
2932
3021
  "div",
2933
3022
  {
2934
- className: Be("eloq:w-full eloq:h-full", {
2935
- dark: G?.theme?.mode === "dark"
3023
+ className: Le("eloq:w-full eloq:h-full", {
3024
+ dark: J?.theme?.mode === "dark"
2936
3025
  }),
2937
- children: ne && !ee && /* @__PURE__ */ I(
2938
- so,
3026
+ children: ne && !ee && /* @__PURE__ */ E(
3027
+ po,
2939
3028
  {
2940
3029
  message: ne.text,
2941
3030
  isVisible: ne.isVisible,
@@ -2953,21 +3042,21 @@ function Jn({
2953
3042
  ]
2954
3043
  }
2955
3044
  );
2956
- return /* @__PURE__ */ I(Tt, { children: g ? V() : ce ? /* @__PURE__ */ I(io, { container: ce, children: V() }) : null });
3045
+ return /* @__PURE__ */ E(Ot, { children: g ? V() : ce ? /* @__PURE__ */ E(uo, { container: ce, children: V() }) : null });
2957
3046
  }
2958
- function Gn(e) {
2959
- return /* @__PURE__ */ I(Hn, { appId: e.appId, children: /* @__PURE__ */ I(Wn, { 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 }) }) });
2960
3049
  }
2961
- function oa(e, t) {
3050
+ function ba(e, t) {
2962
3051
  return ((r, n, a) => {
2963
- const l = to.createRoot(n);
2964
- return l.render(/* @__PURE__ */ I(r, { ...a })), l.unmount;
2965
- })(Gn, e, t);
3052
+ const l = ao.createRoot(n);
3053
+ return l.render(/* @__PURE__ */ E(r, { ...a })), l.unmount;
3054
+ })(da, e, t);
2966
3055
  }
2967
3056
  export {
2968
- Gn as Chat,
2969
- Qt as ChatInterface,
2970
- oa as renderChat,
2971
- tn as useRealtimeSocket
3057
+ da as Chat,
3058
+ ro as ChatInterface,
3059
+ ba as renderChat,
3060
+ bn as useRealtimeSocket
2972
3061
  };
2973
3062
  //# sourceMappingURL=index.mjs.map