@versini/sassysaint 8.50.0 → 8.50.1

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.
Files changed (22) hide show
  1. package/dist/chunks/{AboutChangelog.DubyT8tA.js → AboutChangelog.BDo1-fzi.js} +2 -2
  2. package/dist/chunks/{AboutEntry.Byc5GXwY.js → AboutEntry.BH88UaZx.js} +7 -7
  3. package/dist/chunks/{App.5pNjlAbr.js → App.QIy4AIaz.js} +684 -709
  4. package/dist/chunks/{Chart.CJr5SEfd.js → Chart.t3ZXF73j.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.CxkyQIaL.js → ChatBubbleAssistant.tWJz9jxI.js} +4 -4
  6. package/dist/chunks/{ChatBubbleUser.DuagpPMM.js → ChatBubbleUser.BsPt1Fgz.js} +3 -3
  7. package/dist/chunks/{ChatHistoryTable.DJWfMixM.js → ChatHistoryTable.RqkR5XYw.js} +2 -2
  8. package/dist/chunks/{HistoryEntry.Do9b3mI3.js → HistoryEntry.CdAYZCrj.js} +3 -3
  9. package/dist/chunks/{ProfileEntry.BuZL2tf0.js → ProfileEntry.qPN0Xe6S.js} +2 -2
  10. package/dist/chunks/{SettingsEntry.DLsBdG9c.js → SettingsEntry.CH79zLy_.js} +2 -2
  11. package/dist/chunks/{UsageEntry.Cg_6TYnM.js → UsageEntry.axUSgiS0.js} +3 -3
  12. package/dist/chunks/{index.CtrE2M7d.js → index.Caa3MVly.js} +1 -1
  13. package/dist/chunks/{index.DcCZNjYW.js → index.D1zH_2x6.js} +1 -1
  14. package/dist/chunks/{index.CvtbvwLy.js → index.DTeiwmVN.js} +1 -1
  15. package/dist/chunks/{index.BgObOSYj.js → index.DtjS4202.js} +1 -1
  16. package/dist/chunks/{index.xGaexEHV.js → index.N7LUSv0I.js} +3 -3
  17. package/dist/chunks/{index.BfJ5XNTd.js → index.Vi5HircF.js} +2 -2
  18. package/dist/chunks/{index.dUieB3Yz.js → index.jefijINX.js} +1 -1
  19. package/dist/chunks/{useMarkdown.Blw_Xs-O.js → useMarkdown.B5cyvrlh.js} +6 -6
  20. package/dist/components/SassySaint/SassySaint.js +1 -1
  21. package/dist/index.js +4 -4
  22. package/package.json +3 -3
@@ -1,13 +1,13 @@
1
- import { jsx as u, jsxs as k, Fragment as Ne } from "react/jsx-runtime";
2
- import { I as q, ACTION_SORT as Qa, ACTION_SEARCH as es, ACTION_RESET_PROMPT as to, ACTION_TOGGLE_PROMPT as ro, isProbablyiPhone as Ee, re as ts, te as ge, DEFAULT_ICON_ACTION_SIZE as _e, isTauri as Ut, n as Me, serverUrl as no, useEntitlements as rs, L as br, j as We, C as en, LOCAL_STORAGE_PREFIX as qe, LOCAL_STORAGE_PRIVATE_DISCLOSURE as ns, pe as wr, useUserPreferences as Kt, LOCAL_STORAGE_REASONING_DISCLOSURE as os, useChatsHistory as oo, mutateCall as as, SERVICE_TYPES as ss, TOAST_CHAT_SAVED as is, PROMPT_CLASSNAME as cs, PROMPT_EDITABLE_AREA_CLASSNAME as ls, i as us, ERROR_MESSAGE as ds, c as lt, CLIPBOARD_PROMPT as tn, INPUT_PLACEHOLDER_TEXT_MOBILE as rn, INPUT_PLACEHOLDER_TEXT_ENTER as nn, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as on, isProbablyMobile as Ir, Ee as ps, FOOTER_DISCLAIMERS as an, h as ao, INPUT_BOTTOM_OFFSET_EXTRA as ms, INPUT_BOTTOM_OFFSET_IPHONE as hs, INPUT_BOTTOM_OFFSET as so, getLayoutPaddingClass as Er, i$1 as fs, E as gs, y as vs, setNewProvider as ys, TOAST_PROVIDER_CHANGED as _s, LOG_OUT as sn, a as io, ne as cn, getMessageContaintWrapperClass as bs, UI_FOOTER_BUFFER as co, UI_BUTTON_SCROLL_BUFFER as ws, Logo as Is, UI_DEFAULT_MAIN_HEIGHT as ln, UI_DEFAULT_MAIN_HEIGHT_IPHONE as Es, APP_CLASSNAME as Ts, Ae as un, ue as Ss, LOCAL_STORAGE_SORT as ks, LOCAL_STORAGE_SEARCH as xs, LOCAL_STORAGE_SORT_TIMESTAMP as Cs, LOCAL_STORAGE_SORT_TOKEN_USAGE as Ns, TOAST_CACHE_ENABLED as zs, TOAST_CACHE_DISABLED as As } from "./index.BgObOSYj.js";
1
+ import { jsx as u, jsxs as k, Fragment as Ce } from "react/jsx-runtime";
2
+ import { I as q, ACTION_SORT as Qa, ACTION_SEARCH as Ka, ACTION_RESET_PROMPT as to, ACTION_TOGGLE_PROMPT as ro, re as es, te as ge, DEFAULT_ICON_ACTION_SIZE as _e, isTauri as Ut, n as $e, isProbablyiPhone as Le, serverUrl as no, useEntitlements as ts, L as br, j as We, C as en, LOCAL_STORAGE_PREFIX as qe, LOCAL_STORAGE_PRIVATE_DISCLOSURE as rs, pe as wr, useUserPreferences as Qt, LOCAL_STORAGE_REASONING_DISCLOSURE as ns, useChatsHistory as oo, mutateCall as os, SERVICE_TYPES as as, TOAST_CHAT_SAVED as ss, PROMPT_CLASSNAME as is, PROMPT_EDITABLE_AREA_CLASSNAME as cs, i as ls, ERROR_MESSAGE as us, c as lt, CLIPBOARD_PROMPT as tn, INPUT_PLACEHOLDER_TEXT_MOBILE as rn, INPUT_PLACEHOLDER_TEXT_ENTER as nn, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as on, isProbablyMobile as Ir, Ee as ds, FOOTER_DISCLAIMERS as an, h as ao, INPUT_BOTTOM_OFFSET_EXTRA as ps, INPUT_BOTTOM_OFFSET_IPHONE as ms, INPUT_BOTTOM_OFFSET as so, getLayoutPaddingClass as Er, i$1 as hs, E as fs, y as gs, setNewProvider as vs, TOAST_PROVIDER_CHANGED as ys, LOG_OUT as sn, a as io, ne as cn, getMessageContaintWrapperClass as _s, UI_FOOTER_BUFFER as co, UI_BUTTON_SCROLL_BUFFER as bs, Logo as ws, UI_DEFAULT_MAIN_HEIGHT as ln, UI_DEFAULT_MAIN_HEIGHT_IPHONE as Is, APP_CLASSNAME as Es, Ae as un, ue as Ts, LOCAL_STORAGE_SORT as Ss, LOCAL_STORAGE_SEARCH as ks, LOCAL_STORAGE_SORT_TIMESTAMP as xs, LOCAL_STORAGE_SORT_TOKEN_USAGE as Cs, TOAST_CACHE_ENABLED as Ns, TOAST_CACHE_DISABLED as zs } from "./index.DtjS4202.js";
3
3
  import * as ae from "react";
4
- import tt, { useRef as J, useEffect as O, useState as M, useCallback as U, useSyncExternalStore as Mt, createContext as lo, useContext as te, useId as uo, forwardRef as po, useMemo as Bt, Suspense as jt, lazy as Re, useReducer as Et } from "react";
5
- import $ from "clsx";
6
- import { computePosition as Os, offset as mo, flip as ho, shift as fo, arrow as $s, useMergeRefs as Rr, FloatingPortal as go, FloatingOverlay as Ms, FloatingFocusManager as vo, useFloating as yo, useClick as _o, useDismiss as bo, useRole as wo, useInteractions as Io, FloatingTree as Rs, useFloatingTree as Eo, useFloatingNodeId as Ps, useListItem as To, autoUpdate as Zs, useListNavigation as Ds, useTypeahead as Ls, FloatingNode as Us, FloatingList as Bs } from "@floating-ui/react";
4
+ import tt, { useRef as J, useEffect as $, useState as R, useCallback as U, useSyncExternalStore as Mt, createContext as As, useContext as te, useId as lo, forwardRef as uo, useMemo as Bt, Suspense as jt, lazy as Me, useReducer as Et } from "react";
5
+ import O from "clsx";
6
+ import { computePosition as Os, offset as po, flip as mo, shift as ho, arrow as $s, useMergeRefs as Rr, FloatingPortal as fo, FloatingOverlay as Ms, FloatingFocusManager as go, useFloating as vo, useClick as yo, useDismiss as _o, useRole as bo, useInteractions as wo, FloatingTree as Rs, useFloatingTree as Io, useFloatingNodeId as Ps, useListItem as Eo, autoUpdate as Zs, useListNavigation as Ds, useTypeahead as Ls, FloatingNode as Us, FloatingList as Bs } from "@floating-ui/react";
7
7
  const dn = ["mousedown", "touchstart"];
8
8
  function js(e, t, r) {
9
9
  const n = J(null);
10
- return O(() => {
10
+ return $(() => {
11
11
  const o = (a) => {
12
12
  const i = a ? a.target : void 0;
13
13
  if (Array.isArray(r)) {
@@ -50,14 +50,14 @@ function Fs(e, t) {
50
50
  return !1;
51
51
  return i !== d ? !1 : !!(s && (g.toLowerCase() === s.toLowerCase() || t.code.replace("Key", "").toLowerCase() === s.toLowerCase()));
52
52
  }
53
- function So(e) {
53
+ function To(e) {
54
54
  return (t) => Fs(Vs(e), t);
55
55
  }
56
56
  function Hs(e) {
57
57
  return (t) => {
58
58
  const r = "nativeEvent" in t ? t.nativeEvent : t;
59
59
  e.forEach(([n, o, a = { preventDefault: !0 }]) => {
60
- So(n)(r) && (a.preventDefault && t.preventDefault(), o(r));
60
+ To(n)(r) && (a.preventDefault && t.preventDefault(), o(r));
61
61
  });
62
62
  };
63
63
  }
@@ -65,11 +65,11 @@ function Js(e, t, r = !1) {
65
65
  return e.target instanceof HTMLElement ? (r || !e.target.isContentEditable) && !t.includes(e.target.tagName) : !0;
66
66
  }
67
67
  function Pr(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
68
- O(() => {
68
+ $(() => {
69
69
  const n = (o) => {
70
70
  e.forEach(
71
71
  ([a, i, s = { preventDefault: !0 }]) => {
72
- So(a)(o) && Js(o, t, r) && (s.preventDefault && o.preventDefault(), i(o));
72
+ To(a)(o) && Js(o, t, r) && (s.preventDefault && o.preventDefault(), i(o));
73
73
  }
74
74
  );
75
75
  };
@@ -77,31 +77,31 @@ function Pr(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
77
77
  }, [e, t, r]);
78
78
  }
79
79
  function Gs(e, t) {
80
- const [r, n] = M(!1), o = J(null), a = J(null), i = U(() => {
80
+ const [r, n] = R(!1), o = J(null), a = J(null), i = U(() => {
81
81
  n((l) => (!l && (!o.current || o.current === -1) && (o.current = window.setInterval(a.current, t)), !0));
82
82
  }, [t]), s = U(() => {
83
83
  n(!1), window.clearInterval(o.current || -1), o.current = -1;
84
84
  }, []);
85
- return O(() => (a.current = e, r && i(), s), [e, r, i, s]), { start: i, stop: s, active: r };
85
+ return $(() => (a.current = e, r && i(), s), [e, r, i, s]), { start: i, stop: s, active: r };
86
86
  }
87
87
  function Ws() {
88
- const e = J(null), [t, r] = M(!1);
88
+ const e = J(null), [t, r] = R(!1);
89
89
  return { ref: U((n) => {
90
90
  typeof IntersectionObserver < "u" && (n && !e.current ? e.current = new IntersectionObserver(
91
91
  (o) => r(o.some((a) => a.isIntersecting))
92
92
  ) : e.current?.disconnect(), n ? e.current?.observe(n) : r(!1));
93
93
  }, []), inViewport: t };
94
94
  }
95
- function ko(e, t) {
95
+ function So(e, t) {
96
96
  window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
97
97
  }
98
98
  const pn = (e, t) => {
99
99
  const r = JSON.stringify(
100
100
  typeof t == "function" ? t() : t
101
101
  );
102
- window.localStorage.setItem(e, r), ko(e, r);
102
+ window.localStorage.setItem(e, r), So(e, r);
103
103
  }, qs = (e) => {
104
- window.localStorage.removeItem(e), ko(e, null);
104
+ window.localStorage.removeItem(e), So(e, null);
105
105
  }, mn = (e) => window.localStorage.getItem(e), Ys = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
106
106
  function Ye({
107
107
  key: e,
@@ -122,7 +122,7 @@ function Ye({
122
122
  }, [t, n]), a = U(() => {
123
123
  n(null);
124
124
  }, [n]);
125
- return O(() => {
125
+ return $(() => {
126
126
  try {
127
127
  mn(e) === null && typeof t < "u" && pn(e, t);
128
128
  } catch (i) {
@@ -131,12 +131,12 @@ function Ye({
131
131
  }, [e, t]), [r ? JSON.parse(r) : null, n, o, a];
132
132
  }
133
133
  function hn(e, t) {
134
- O(() => (window.addEventListener(e, t, {
134
+ $(() => (window.addEventListener(e, t, {
135
135
  passive: !0
136
136
  }), () => window.removeEventListener(e, t)), [e, t]);
137
137
  }
138
138
  function Xs() {
139
- const [e, t] = M({
139
+ const [e, t] = R({
140
140
  width: 0,
141
141
  height: 0
142
142
  }), r = U(() => {
@@ -145,10 +145,10 @@ function Xs() {
145
145
  height: window.innerHeight || 0
146
146
  });
147
147
  }, []);
148
- return hn("resize", r), hn("orientationchange", r), O(r, []), e;
148
+ return hn("resize", r), hn("orientationchange", r), $(r, []), e;
149
149
  }
150
- function Ks() {
151
- const [e, t] = M({
150
+ function Qs() {
151
+ const [e, t] = R({
152
152
  width: 0,
153
153
  height: 0
154
154
  }), r = U(() => {
@@ -157,7 +157,7 @@ function Ks() {
157
157
  height: window?.visualViewport?.height || window.innerHeight || 0
158
158
  });
159
159
  }, []);
160
- return O(() => (r(), window.visualViewport && (window.visualViewport.addEventListener("resize", r, {
160
+ return $(() => (r(), window.visualViewport && (window.visualViewport.addEventListener("resize", r, {
161
161
  passive: !0
162
162
  }), window.visualViewport.addEventListener("orientationchange", r, {
163
163
  passive: !0
@@ -165,7 +165,7 @@ function Ks() {
165
165
  window.visualViewport && (window.visualViewport.removeEventListener("resize", r), window.visualViewport.removeEventListener("orientationchange", r));
166
166
  }), [r]), e;
167
167
  }
168
- const Qs = ({
168
+ const Ks = ({
169
169
  className: e,
170
170
  viewBox: t,
171
171
  title: r,
@@ -706,7 +706,7 @@ const Qs = ({
706
706
  /* @__PURE__ */ u("path", { d: "M224 32c-53 0-96 43-96 96v64h240c44.2 0 80 35.8 80 80v160c0 44.2-35.8 80-80 80H80c-44.2 0-80-35.8-80-80V272c0-44.2 35.8-80 80-80h16v-64C96 57.3 153.3 0 224 0c58 0 107 38.6 122.7 91.4 2.5 8.5-2.3 17.4-10.8 19.9s-17.4-2.3-19.9-10.8C304.2 60.9 267.5 32 224 32M80 224c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm184 144h-80c-8.8 0-16-7.2-16-16s7.2-16 16-16h80c8.8 0 16 7.2 16 16s-7.2 16-16 16" })
707
707
  ]
708
708
  }
709
- ), Qe = {
709
+ ), Ke = {
710
710
  ASC: "asc",
711
711
  DESC: "desc"
712
712
  };
@@ -723,7 +723,7 @@ try {
723
723
  });
724
724
  } catch {
725
725
  }
726
- var xo = "vercel.ai.error", Ii = Symbol.for(xo), Co, Ei = class No extends Error {
726
+ var ko = "vercel.ai.error", Ii = Symbol.for(ko), xo, Ei = class Co extends Error {
727
727
  /**
728
728
  * Creates an AI SDK Error.
729
729
  *
@@ -737,7 +737,7 @@ var xo = "vercel.ai.error", Ii = Symbol.for(xo), Co, Ei = class No extends Error
737
737
  message: r,
738
738
  cause: n
739
739
  }) {
740
- super(r), this[Co] = !0, this.name = t, this.cause = n;
740
+ super(r), this[xo] = !0, this.name = t, this.cause = n;
741
741
  }
742
742
  /**
743
743
  * Checks if the given error is an AI SDK Error.
@@ -745,56 +745,56 @@ var xo = "vercel.ai.error", Ii = Symbol.for(xo), Co, Ei = class No extends Error
745
745
  * @returns {boolean} True if the error is an AI SDK Error, false otherwise.
746
746
  */
747
747
  static isInstance(t) {
748
- return No.hasMarker(t, xo);
748
+ return Co.hasMarker(t, ko);
749
749
  }
750
750
  static hasMarker(t, r) {
751
751
  const n = Symbol.for(r);
752
752
  return t != null && typeof t == "object" && n in t && typeof t[n] == "boolean" && t[n] === !0;
753
753
  }
754
754
  };
755
- Co = Ii;
756
- var ze = Ei;
757
- function zo(e) {
755
+ xo = Ii;
756
+ var Ne = Ei;
757
+ function No(e) {
758
758
  return e == null ? "unknown error" : typeof e == "string" ? e : e instanceof Error ? e.message : JSON.stringify(e);
759
759
  }
760
- var Ao = "AI_InvalidArgumentError", Oo = `vercel.ai.error.${Ao}`, Ti = Symbol.for(Oo), $o, Si = class extends ze {
760
+ var zo = "AI_InvalidArgumentError", Ao = `vercel.ai.error.${zo}`, Ti = Symbol.for(Ao), Oo, Si = class extends Ne {
761
761
  constructor({
762
762
  message: e,
763
763
  cause: t,
764
764
  argument: r
765
765
  }) {
766
- super({ name: Ao, message: e, cause: t }), this[$o] = !0, this.argument = r;
766
+ super({ name: zo, message: e, cause: t }), this[Oo] = !0, this.argument = r;
767
767
  }
768
768
  static isInstance(e) {
769
- return ze.hasMarker(e, Oo);
769
+ return Ne.hasMarker(e, Ao);
770
770
  }
771
771
  };
772
- $o = Ti;
773
- var Mo = "AI_JSONParseError", Ro = `vercel.ai.error.${Mo}`, ki = Symbol.for(Ro), Po, fn = class extends ze {
772
+ Oo = Ti;
773
+ var $o = "AI_JSONParseError", Mo = `vercel.ai.error.${$o}`, ki = Symbol.for(Mo), Ro, fn = class extends Ne {
774
774
  constructor({ text: e, cause: t }) {
775
775
  super({
776
- name: Mo,
776
+ name: $o,
777
777
  message: `JSON parsing failed: Text: ${e}.
778
- Error message: ${zo(t)}`,
778
+ Error message: ${No(t)}`,
779
779
  cause: t
780
- }), this[Po] = !0, this.text = e;
780
+ }), this[Ro] = !0, this.text = e;
781
781
  }
782
782
  static isInstance(e) {
783
- return ze.hasMarker(e, Ro);
783
+ return Ne.hasMarker(e, Mo);
784
784
  }
785
785
  };
786
- Po = ki;
787
- var Zo = "AI_TypeValidationError", Do = `vercel.ai.error.${Zo}`, xi = Symbol.for(Do), Lo, Ci = class Tr extends ze {
786
+ Ro = ki;
787
+ var Po = "AI_TypeValidationError", Zo = `vercel.ai.error.${Po}`, xi = Symbol.for(Zo), Do, Ci = class Tr extends Ne {
788
788
  constructor({ value: t, cause: r }) {
789
789
  super({
790
- name: Zo,
790
+ name: Po,
791
791
  message: `Type validation failed: Value: ${JSON.stringify(t)}.
792
- Error message: ${zo(r)}`,
792
+ Error message: ${No(r)}`,
793
793
  cause: r
794
- }), this[Lo] = !0, this.value = t;
794
+ }), this[Do] = !0, this.value = t;
795
795
  }
796
796
  static isInstance(t) {
797
- return ze.hasMarker(t, Do);
797
+ return Ne.hasMarker(t, Zo);
798
798
  }
799
799
  /**
800
800
  * Wraps an error into a TypeValidationError.
@@ -813,7 +813,7 @@ Error message: ${zo(r)}`,
813
813
  return Tr.isInstance(r) && r.value === t ? r : new Tr({ value: t, cause: r });
814
814
  }
815
815
  };
816
- Lo = xi;
816
+ Do = xi;
817
817
  var Vt = Ci;
818
818
  class gn extends Error {
819
819
  constructor(t, r) {
@@ -970,11 +970,11 @@ class ut extends Error {
970
970
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
971
971
  }
972
972
  }
973
- const Uo = {};
974
- function Ae(e) {
975
- return Uo;
973
+ const Lo = {};
974
+ function ze(e) {
975
+ return Lo;
976
976
  }
977
- function Bo(e) {
977
+ function Uo(e) {
978
978
  const t = Object.values(e).filter((n) => typeof n == "number");
979
979
  return Object.entries(e).filter(([n, o]) => t.indexOf(+n) === -1).map(([n, o]) => o);
980
980
  }
@@ -1030,7 +1030,7 @@ function ft(e, t, r) {
1030
1030
  function rt(e) {
1031
1031
  return JSON.stringify(e);
1032
1032
  }
1033
- const jo = Error.captureStackTrace ? Error.captureStackTrace : (...e) => {
1033
+ const Bo = Error.captureStackTrace ? Error.captureStackTrace : (...e) => {
1034
1034
  };
1035
1035
  function Ft(e) {
1036
1036
  return typeof e == "object" && e !== null && !Array.isArray(e);
@@ -1190,7 +1190,7 @@ function it(e, t = 0) {
1190
1190
  return !0;
1191
1191
  return !1;
1192
1192
  }
1193
- function Le(e, t) {
1193
+ function De(e, t) {
1194
1194
  return t.map((r) => {
1195
1195
  var n;
1196
1196
  return (n = r).path ?? (n.path = []), r.path.unshift(e), r;
@@ -1199,7 +1199,7 @@ function Le(e, t) {
1199
1199
  function Tt(e) {
1200
1200
  return typeof e == "string" ? e : e?.message;
1201
1201
  }
1202
- function Oe(e, t, r) {
1202
+ function Ae(e, t, r) {
1203
1203
  const n = { ...e, path: e.path ?? [] };
1204
1204
  if (!e.message) {
1205
1205
  const o = Tt(e.inst?._zod.def?.error?.(e)) ?? Tt(t?.error?.(e)) ?? Tt(r.customError?.(e)) ?? Tt(r.localeError?.(e)) ?? "Invalid input";
@@ -1219,7 +1219,7 @@ function dt(...e) {
1219
1219
  inst: n
1220
1220
  } : { ...t };
1221
1221
  }
1222
- const Vo = (e, t) => {
1222
+ const jo = (e, t) => {
1223
1223
  e.name = "$ZodError", Object.defineProperty(e, "_zod", {
1224
1224
  value: e._zod,
1225
1225
  enumerable: !1
@@ -1236,7 +1236,7 @@ const Vo = (e, t) => {
1236
1236
  value: () => e.message,
1237
1237
  enumerable: !1
1238
1238
  });
1239
- }, Fo = y("$ZodError", Vo), Ho = y("$ZodError", Vo, { Parent: Error });
1239
+ }, Vo = y("$ZodError", jo), Fo = y("$ZodError", jo, { Parent: Error });
1240
1240
  function Fi(e, t = (r) => r.message) {
1241
1241
  const r = {}, n = [];
1242
1242
  for (const o of e.issues)
@@ -1271,50 +1271,50 @@ const Ji = (e) => (t, r, n, o) => {
1271
1271
  if (i instanceof Promise)
1272
1272
  throw new ut();
1273
1273
  if (i.issues.length) {
1274
- const s = new (o?.Err ?? e)(i.issues.map((l) => Oe(l, a, Ae())));
1275
- throw jo(s, o?.callee), s;
1274
+ const s = new (o?.Err ?? e)(i.issues.map((l) => Ae(l, a, ze())));
1275
+ throw Bo(s, o?.callee), s;
1276
1276
  }
1277
1277
  return i.value;
1278
1278
  }, Gi = (e) => async (t, r, n, o) => {
1279
1279
  const a = n ? Object.assign(n, { async: !0 }) : { async: !0 };
1280
1280
  let i = t._zod.run({ value: r, issues: [] }, a);
1281
1281
  if (i instanceof Promise && (i = await i), i.issues.length) {
1282
- const s = new (o?.Err ?? e)(i.issues.map((l) => Oe(l, a, Ae())));
1283
- throw jo(s, o?.callee), s;
1282
+ const s = new (o?.Err ?? e)(i.issues.map((l) => Ae(l, a, ze())));
1283
+ throw Bo(s, o?.callee), s;
1284
1284
  }
1285
1285
  return i.value;
1286
- }, Jo = (e) => (t, r, n) => {
1286
+ }, Ho = (e) => (t, r, n) => {
1287
1287
  const o = n ? { ...n, async: !1 } : { async: !1 }, a = t._zod.run({ value: r, issues: [] }, o);
1288
1288
  if (a instanceof Promise)
1289
1289
  throw new ut();
1290
1290
  return a.issues.length ? {
1291
1291
  success: !1,
1292
- error: new (e ?? Fo)(a.issues.map((i) => Oe(i, o, Ae())))
1292
+ error: new (e ?? Vo)(a.issues.map((i) => Ae(i, o, ze())))
1293
1293
  } : { success: !0, data: a.value };
1294
- }, Wi = /* @__PURE__ */ Jo(Ho), Go = (e) => async (t, r, n) => {
1294
+ }, Wi = /* @__PURE__ */ Ho(Fo), Jo = (e) => async (t, r, n) => {
1295
1295
  const o = n ? Object.assign(n, { async: !0 }) : { async: !0 };
1296
1296
  let a = t._zod.run({ value: r, issues: [] }, o);
1297
1297
  return a instanceof Promise && (a = await a), a.issues.length ? {
1298
1298
  success: !1,
1299
- error: new e(a.issues.map((i) => Oe(i, o, Ae())))
1299
+ error: new e(a.issues.map((i) => Ae(i, o, ze())))
1300
1300
  } : { success: !0, data: a.value };
1301
- }, qi = /* @__PURE__ */ Go(Ho), Yi = /^[cC][^\s-]{8,}$/, Xi = /^[0-9a-z]+$/, Ki = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Qi = /^[0-9a-vA-V]{20}$/, ec = /^[A-Za-z0-9]{27}$/, tc = /^[a-zA-Z0-9_-]{21}$/, rc = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, nc = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, vn = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/, oc = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, ac = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
1301
+ }, qi = /* @__PURE__ */ Jo(Fo), Yi = /^[cC][^\s-]{8,}$/, Xi = /^[0-9a-z]+$/, Qi = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Ki = /^[0-9a-vA-V]{20}$/, ec = /^[A-Za-z0-9]{27}$/, tc = /^[a-zA-Z0-9_-]{21}$/, rc = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, nc = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, vn = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/, oc = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, ac = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
1302
1302
  function sc() {
1303
1303
  return new RegExp(ac, "u");
1304
1304
  }
1305
- const ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, cc = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/, lc = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, uc = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, dc = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Wo = /^[A-Za-z0-9_-]*$/, pc = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/, mc = /^\+(?:[0-9]){6,14}[0-9]$/, qo = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", hc = /* @__PURE__ */ new RegExp(`^${qo}$`);
1306
- function Yo(e) {
1305
+ const ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, cc = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/, lc = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, uc = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, dc = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Go = /^[A-Za-z0-9_-]*$/, pc = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/, mc = /^\+(?:[0-9]){6,14}[0-9]$/, Wo = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", hc = /* @__PURE__ */ new RegExp(`^${Wo}$`);
1306
+ function qo(e) {
1307
1307
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
1308
1308
  return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
1309
1309
  }
1310
1310
  function fc(e) {
1311
- return new RegExp(`^${Yo(e)}$`);
1311
+ return new RegExp(`^${qo(e)}$`);
1312
1312
  }
1313
1313
  function gc(e) {
1314
- const t = Yo({ precision: e.precision }), r = ["Z"];
1314
+ const t = qo({ precision: e.precision }), r = ["Z"];
1315
1315
  e.local && r.push(""), e.offset && r.push("([+-]\\d{2}:\\d{2})");
1316
1316
  const n = `${t}(?:${r.join("|")})`;
1317
- return new RegExp(`^${qo}T(?:${n})$`);
1317
+ return new RegExp(`^${Wo}T(?:${n})$`);
1318
1318
  }
1319
1319
  const vc = (e) => {
1320
1320
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
@@ -1322,13 +1322,13 @@ const vc = (e) => {
1322
1322
  }, yc = /^\d+$/, _c = /^-?\d+(?:\.\d+)?/i, bc = /true|false/i, wc = /null/i, Ic = /^[^A-Z]*$/, Ec = /^[^a-z]*$/, ue = /* @__PURE__ */ y("$ZodCheck", (e, t) => {
1323
1323
  var r;
1324
1324
  e._zod ?? (e._zod = {}), e._zod.def = t, (r = e._zod).onattach ?? (r.onattach = []);
1325
- }), Xo = {
1325
+ }), Yo = {
1326
1326
  number: "number",
1327
1327
  bigint: "bigint",
1328
1328
  object: "date"
1329
- }, Ko = /* @__PURE__ */ y("$ZodCheckLessThan", (e, t) => {
1329
+ }, Xo = /* @__PURE__ */ y("$ZodCheckLessThan", (e, t) => {
1330
1330
  ue.init(e, t);
1331
- const r = Xo[typeof t.value];
1331
+ const r = Yo[typeof t.value];
1332
1332
  e._zod.onattach.push((n) => {
1333
1333
  const o = n._zod.bag, a = (t.inclusive ? o.maximum : o.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
1334
1334
  t.value < a && (t.inclusive ? o.maximum = t.value : o.exclusiveMaximum = t.value);
@@ -1345,7 +1345,7 @@ const vc = (e) => {
1345
1345
  };
1346
1346
  }), Qo = /* @__PURE__ */ y("$ZodCheckGreaterThan", (e, t) => {
1347
1347
  ue.init(e, t);
1348
- const r = Xo[typeof t.value];
1348
+ const r = Yo[typeof t.value];
1349
1349
  e._zod.onattach.push((n) => {
1350
1350
  const o = n._zod.bag, a = (t.inclusive ? o.minimum : o.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
1351
1351
  t.value > a && (t.inclusive ? o.minimum = t.value : o.exclusiveMinimum = t.value);
@@ -1501,7 +1501,7 @@ const vc = (e) => {
1501
1501
  continue: !t.abort
1502
1502
  });
1503
1503
  };
1504
- }), Qt = /* @__PURE__ */ y("$ZodCheckStringFormat", (e, t) => {
1504
+ }), Kt = /* @__PURE__ */ y("$ZodCheckStringFormat", (e, t) => {
1505
1505
  var r, n;
1506
1506
  ue.init(e, t), e._zod.onattach.push((o) => {
1507
1507
  const a = o._zod.bag;
@@ -1519,7 +1519,7 @@ const vc = (e) => {
1519
1519
  }) : (n = e._zod).check ?? (n.check = () => {
1520
1520
  });
1521
1521
  }), Nc = /* @__PURE__ */ y("$ZodCheckRegex", (e, t) => {
1522
- Qt.init(e, t), e._zod.check = (r) => {
1522
+ Kt.init(e, t), e._zod.check = (r) => {
1523
1523
  t.pattern.lastIndex = 0, !t.pattern.test(r.value) && r.issues.push({
1524
1524
  origin: "string",
1525
1525
  code: "invalid_format",
@@ -1531,9 +1531,9 @@ const vc = (e) => {
1531
1531
  });
1532
1532
  };
1533
1533
  }), zc = /* @__PURE__ */ y("$ZodCheckLowerCase", (e, t) => {
1534
- t.pattern ?? (t.pattern = Ic), Qt.init(e, t);
1534
+ t.pattern ?? (t.pattern = Ic), Kt.init(e, t);
1535
1535
  }), Ac = /* @__PURE__ */ y("$ZodCheckUpperCase", (e, t) => {
1536
- t.pattern ?? (t.pattern = Ec), Qt.init(e, t);
1536
+ t.pattern ?? (t.pattern = Ec), Kt.init(e, t);
1537
1537
  }), Oc = /* @__PURE__ */ y("$ZodCheckIncludes", (e, t) => {
1538
1538
  ue.init(e, t);
1539
1539
  const r = gt(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
@@ -1690,7 +1690,7 @@ const Zc = {
1690
1690
  }), r;
1691
1691
  };
1692
1692
  }), G = /* @__PURE__ */ y("$ZodStringFormat", (e, t) => {
1693
- Qt.init(e, t), Br.init(e, t);
1693
+ Kt.init(e, t), Br.init(e, t);
1694
1694
  }), Dc = /* @__PURE__ */ y("$ZodGUID", (e, t) => {
1695
1695
  t.pattern ?? (t.pattern = nc), G.init(e, t);
1696
1696
  }), Lc = /* @__PURE__ */ y("$ZodUUID", (e, t) => {
@@ -1754,9 +1754,9 @@ const Zc = {
1754
1754
  }), Hc = /* @__PURE__ */ y("$ZodCUID2", (e, t) => {
1755
1755
  t.pattern ?? (t.pattern = Xi), G.init(e, t);
1756
1756
  }), Jc = /* @__PURE__ */ y("$ZodULID", (e, t) => {
1757
- t.pattern ?? (t.pattern = Ki), G.init(e, t);
1758
- }), Gc = /* @__PURE__ */ y("$ZodXID", (e, t) => {
1759
1757
  t.pattern ?? (t.pattern = Qi), G.init(e, t);
1758
+ }), Gc = /* @__PURE__ */ y("$ZodXID", (e, t) => {
1759
+ t.pattern ?? (t.pattern = Ki), G.init(e, t);
1760
1760
  }), Wc = /* @__PURE__ */ y("$ZodKSUID", (e, t) => {
1761
1761
  t.pattern ?? (t.pattern = ec), G.init(e, t);
1762
1762
  }), qc = /* @__PURE__ */ y("$ZodISODateTime", (e, t) => {
@@ -1765,9 +1765,9 @@ const Zc = {
1765
1765
  t.pattern ?? (t.pattern = hc), G.init(e, t);
1766
1766
  }), Xc = /* @__PURE__ */ y("$ZodISOTime", (e, t) => {
1767
1767
  t.pattern ?? (t.pattern = fc(t)), G.init(e, t);
1768
- }), Kc = /* @__PURE__ */ y("$ZodISODuration", (e, t) => {
1768
+ }), Qc = /* @__PURE__ */ y("$ZodISODuration", (e, t) => {
1769
1769
  t.pattern ?? (t.pattern = rc), G.init(e, t);
1770
- }), Qc = /* @__PURE__ */ y("$ZodIPv4", (e, t) => {
1770
+ }), Kc = /* @__PURE__ */ y("$ZodIPv4", (e, t) => {
1771
1771
  t.pattern ?? (t.pattern = ic), G.init(e, t), e._zod.onattach.push((r) => {
1772
1772
  const n = r._zod.bag;
1773
1773
  n.format = "ipv4";
@@ -1814,7 +1814,7 @@ const Zc = {
1814
1814
  }
1815
1815
  };
1816
1816
  });
1817
- function ea(e) {
1817
+ function Ko(e) {
1818
1818
  if (e === "")
1819
1819
  return !0;
1820
1820
  if (e.length % 4 !== 0)
@@ -1829,7 +1829,7 @@ const nl = /* @__PURE__ */ y("$ZodBase64", (e, t) => {
1829
1829
  t.pattern ?? (t.pattern = dc), G.init(e, t), e._zod.onattach.push((r) => {
1830
1830
  r._zod.bag.contentEncoding = "base64";
1831
1831
  }), e._zod.check = (r) => {
1832
- ea(r.value) || r.issues.push({
1832
+ Ko(r.value) || r.issues.push({
1833
1833
  code: "invalid_format",
1834
1834
  format: "base64",
1835
1835
  input: r.value,
@@ -1839,13 +1839,13 @@ const nl = /* @__PURE__ */ y("$ZodBase64", (e, t) => {
1839
1839
  };
1840
1840
  });
1841
1841
  function ol(e) {
1842
- if (!Wo.test(e))
1842
+ if (!Go.test(e))
1843
1843
  return !1;
1844
1844
  const t = e.replace(/[-_]/g, (n) => n === "-" ? "+" : "/"), r = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
1845
- return ea(r);
1845
+ return Ko(r);
1846
1846
  }
1847
1847
  const al = /* @__PURE__ */ y("$ZodBase64URL", (e, t) => {
1848
- t.pattern ?? (t.pattern = Wo), G.init(e, t), e._zod.onattach.push((r) => {
1848
+ t.pattern ?? (t.pattern = Go), G.init(e, t), e._zod.onattach.push((r) => {
1849
1849
  r._zod.bag.contentEncoding = "base64url";
1850
1850
  }), e._zod.check = (r) => {
1851
1851
  ol(r.value) || r.issues.push({
@@ -1883,7 +1883,7 @@ const cl = /* @__PURE__ */ y("$ZodJWT", (e, t) => {
1883
1883
  continue: !t.abort
1884
1884
  });
1885
1885
  };
1886
- }), ta = /* @__PURE__ */ y("$ZodNumber", (e, t) => {
1886
+ }), ea = /* @__PURE__ */ y("$ZodNumber", (e, t) => {
1887
1887
  B.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? _c, e._zod.parse = (r, n) => {
1888
1888
  if (t.coerce)
1889
1889
  try {
@@ -1903,7 +1903,7 @@ const cl = /* @__PURE__ */ y("$ZodJWT", (e, t) => {
1903
1903
  }), r;
1904
1904
  };
1905
1905
  }), ll = /* @__PURE__ */ y("$ZodNumber", (e, t) => {
1906
- Sc.init(e, t), ta.init(e, t);
1906
+ Sc.init(e, t), ea.init(e, t);
1907
1907
  }), ul = /* @__PURE__ */ y("$ZodBoolean", (e, t) => {
1908
1908
  B.init(e, t), e._zod.pattern = bc, e._zod.parse = (r, n) => {
1909
1909
  if (t.coerce)
@@ -1940,7 +1940,7 @@ const cl = /* @__PURE__ */ y("$ZodJWT", (e, t) => {
1940
1940
  }), r);
1941
1941
  });
1942
1942
  function yn(e, t, r) {
1943
- e.issues.length && t.issues.push(...Le(r, e.issues)), t.value[r] = e.value;
1943
+ e.issues.length && t.issues.push(...De(r, e.issues)), t.value[r] = e.value;
1944
1944
  }
1945
1945
  const hl = /* @__PURE__ */ y("$ZodArray", (e, t) => {
1946
1946
  B.init(e, t), e._zod.parse = (r, n) => {
@@ -1965,10 +1965,10 @@ const hl = /* @__PURE__ */ y("$ZodArray", (e, t) => {
1965
1965
  };
1966
1966
  });
1967
1967
  function St(e, t, r) {
1968
- e.issues.length && t.issues.push(...Le(r, e.issues)), t.value[r] = e.value;
1968
+ e.issues.length && t.issues.push(...De(r, e.issues)), t.value[r] = e.value;
1969
1969
  }
1970
1970
  function _n(e, t, r, n) {
1971
- e.issues.length ? n[r] === void 0 ? r in n ? t.value[r] = void 0 : t.value[r] = e.value : t.issues.push(...Le(r, e.issues)) : e.value === void 0 ? r in n && (t.value[r] = void 0) : t.value[r] = e.value;
1971
+ e.issues.length ? n[r] === void 0 ? r in n ? t.value[r] = void 0 : t.value[r] = e.value : t.issues.push(...De(r, e.issues)) : e.value === void 0 ? r in n && (t.value[r] = void 0) : t.value[r] = e.value;
1972
1972
  }
1973
1973
  const fl = /* @__PURE__ */ y("$ZodObject", (e, t) => {
1974
1974
  B.init(e, t);
@@ -2047,7 +2047,7 @@ const fl = /* @__PURE__ */ y("$ZodObject", (e, t) => {
2047
2047
  return (b, E) => I(d, b, E);
2048
2048
  };
2049
2049
  let o;
2050
- const a = Ft, i = !Uo.jitless, l = i && Mi.value, c = t.catchall;
2050
+ const a = Ft, i = !Lo.jitless, l = i && Mi.value, c = t.catchall;
2051
2051
  let p;
2052
2052
  e._zod.parse = (d, g) => {
2053
2053
  p ?? (p = r.value);
@@ -2099,10 +2099,10 @@ function bn(e, t, r, n) {
2099
2099
  code: "invalid_union",
2100
2100
  input: t.value,
2101
2101
  inst: r,
2102
- errors: e.map((o) => o.issues.map((a) => Oe(a, n, Ae())))
2102
+ errors: e.map((o) => o.issues.map((a) => Ae(a, n, ze())))
2103
2103
  }), t;
2104
2104
  }
2105
- const ra = /* @__PURE__ */ y("$ZodUnion", (e, t) => {
2105
+ const ta = /* @__PURE__ */ y("$ZodUnion", (e, t) => {
2106
2106
  B.init(e, t), Z(e._zod, "optin", () => t.options.some((r) => r._zod.optin === "optional") ? "optional" : void 0), Z(e._zod, "optout", () => t.options.some((r) => r._zod.optout === "optional") ? "optional" : void 0), Z(e._zod, "values", () => {
2107
2107
  if (t.options.every((r) => r._zod.values))
2108
2108
  return new Set(t.options.flatMap((r) => Array.from(r._zod.values)));
@@ -2130,7 +2130,7 @@ const ra = /* @__PURE__ */ y("$ZodUnion", (e, t) => {
2130
2130
  return o ? Promise.all(a).then((i) => bn(i, r, e, n)) : bn(a, r, e, n);
2131
2131
  };
2132
2132
  }), gl = /* @__PURE__ */ y("$ZodDiscriminatedUnion", (e, t) => {
2133
- ra.init(e, t);
2133
+ ta.init(e, t);
2134
2134
  const r = e._zod.parse;
2135
2135
  Z(e._zod, "propValues", () => {
2136
2136
  const o = {};
@@ -2246,8 +2246,8 @@ const yl = /* @__PURE__ */ y("$ZodRecord", (e, t) => {
2246
2246
  if (typeof l == "string" || typeof l == "number" || typeof l == "symbol") {
2247
2247
  const c = t.valueType._zod.run({ value: o[l], issues: [] }, n);
2248
2248
  c instanceof Promise ? a.push(c.then((p) => {
2249
- p.issues.length && r.issues.push(...Le(l, p.issues)), r.value[l] = p.value;
2250
- })) : (c.issues.length && r.issues.push(...Le(l, c.issues)), r.value[l] = c.value);
2249
+ p.issues.length && r.issues.push(...De(l, p.issues)), r.value[l] = p.value;
2250
+ })) : (c.issues.length && r.issues.push(...De(l, c.issues)), r.value[l] = c.value);
2251
2251
  }
2252
2252
  let s;
2253
2253
  for (const l in o)
@@ -2270,7 +2270,7 @@ const yl = /* @__PURE__ */ y("$ZodRecord", (e, t) => {
2270
2270
  r.issues.push({
2271
2271
  origin: "record",
2272
2272
  code: "invalid_key",
2273
- issues: s.issues.map((c) => Oe(c, n, Ae())),
2273
+ issues: s.issues.map((c) => Ae(c, n, ze())),
2274
2274
  input: i,
2275
2275
  path: [i],
2276
2276
  inst: e
@@ -2279,15 +2279,15 @@ const yl = /* @__PURE__ */ y("$ZodRecord", (e, t) => {
2279
2279
  }
2280
2280
  const l = t.valueType._zod.run({ value: o[i], issues: [] }, n);
2281
2281
  l instanceof Promise ? a.push(l.then((c) => {
2282
- c.issues.length && r.issues.push(...Le(i, c.issues)), r.value[s.value] = c.value;
2283
- })) : (l.issues.length && r.issues.push(...Le(i, l.issues)), r.value[s.value] = l.value);
2282
+ c.issues.length && r.issues.push(...De(i, c.issues)), r.value[s.value] = c.value;
2283
+ })) : (l.issues.length && r.issues.push(...De(i, l.issues)), r.value[s.value] = l.value);
2284
2284
  }
2285
2285
  }
2286
2286
  return a.length ? Promise.all(a).then(() => r) : r;
2287
2287
  };
2288
2288
  }), _l = /* @__PURE__ */ y("$ZodEnum", (e, t) => {
2289
2289
  B.init(e, t);
2290
- const r = Bo(t.entries);
2290
+ const r = Uo(t.entries);
2291
2291
  e._zod.values = new Set(r), e._zod.pattern = new RegExp(`^(${r.filter((n) => Ri.has(typeof n)).map((n) => typeof n == "string" ? gt(n) : n.toString()).join("|")})$`), e._zod.parse = (n, o) => {
2292
2292
  const a = n.value;
2293
2293
  return e._zod.values.has(a) || n.issues.push({
@@ -2362,13 +2362,13 @@ const xl = /* @__PURE__ */ y("$ZodCatch", (e, t) => {
2362
2362
  return o instanceof Promise ? o.then((a) => (r.value = a.value, a.issues.length && (r.value = t.catchValue({
2363
2363
  ...r,
2364
2364
  error: {
2365
- issues: a.issues.map((i) => Oe(i, n, Ae()))
2365
+ issues: a.issues.map((i) => Ae(i, n, ze()))
2366
2366
  },
2367
2367
  input: r.value
2368
2368
  }), r.issues = []), r)) : (r.value = o.value, o.issues.length && (r.value = t.catchValue({
2369
2369
  ...r,
2370
2370
  error: {
2371
- issues: o.issues.map((a) => Oe(a, n, Ae()))
2371
+ issues: o.issues.map((a) => Ae(a, n, ze()))
2372
2372
  },
2373
2373
  input: r.value
2374
2374
  }), r.issues = []), r);
@@ -2416,7 +2416,7 @@ function kn(e, t, r, n) {
2416
2416
  n._zod.def.params && (o.params = n._zod.def.params), t.issues.push(dt(o));
2417
2417
  }
2418
2418
  }
2419
- class na {
2419
+ class ra {
2420
2420
  constructor() {
2421
2421
  this._map = /* @__PURE__ */ new Map(), this._idmap = /* @__PURE__ */ new Map();
2422
2422
  }
@@ -2449,7 +2449,7 @@ class na {
2449
2449
  }
2450
2450
  }
2451
2451
  function Ol() {
2452
- return new na();
2452
+ return new ra();
2453
2453
  }
2454
2454
  const nt = /* @__PURE__ */ Ol();
2455
2455
  function $l(e, t) {
@@ -2623,7 +2623,7 @@ function Yl(e, t) {
2623
2623
  ...S(t)
2624
2624
  });
2625
2625
  }
2626
- function oa(e, t) {
2626
+ function na(e, t) {
2627
2627
  return new e({
2628
2628
  type: "string",
2629
2629
  format: "base64",
@@ -2641,7 +2641,7 @@ function Xl(e, t) {
2641
2641
  ...S(t)
2642
2642
  });
2643
2643
  }
2644
- function Kl(e, t) {
2644
+ function Ql(e, t) {
2645
2645
  return new e({
2646
2646
  type: "string",
2647
2647
  format: "e164",
@@ -2650,7 +2650,7 @@ function Kl(e, t) {
2650
2650
  ...S(t)
2651
2651
  });
2652
2652
  }
2653
- function Ql(e, t) {
2653
+ function Kl(e, t) {
2654
2654
  return new e({
2655
2655
  type: "string",
2656
2656
  format: "jwt",
@@ -2735,7 +2735,7 @@ function lu(e, t) {
2735
2735
  });
2736
2736
  }
2737
2737
  function Cn(e, t) {
2738
- return new Ko({
2738
+ return new Xo({
2739
2739
  check: "less_than",
2740
2740
  ...S(t),
2741
2741
  value: e,
@@ -2743,7 +2743,7 @@ function Cn(e, t) {
2743
2743
  });
2744
2744
  }
2745
2745
  function ur(e, t) {
2746
- return new Ko({
2746
+ return new Xo({
2747
2747
  check: "less_than",
2748
2748
  ...S(t),
2749
2749
  value: e,
@@ -2773,7 +2773,7 @@ function zn(e, t) {
2773
2773
  value: e
2774
2774
  });
2775
2775
  }
2776
- function aa(e, t) {
2776
+ function oa(e, t) {
2777
2777
  return new kc({
2778
2778
  check: "max_length",
2779
2779
  ...S(t),
@@ -2787,7 +2787,7 @@ function Jt(e, t) {
2787
2787
  minimum: e
2788
2788
  });
2789
2789
  }
2790
- function sa(e, t) {
2790
+ function aa(e, t) {
2791
2791
  return new Cc({
2792
2792
  check: "length_equals",
2793
2793
  ...S(t),
@@ -3064,7 +3064,7 @@ class An {
3064
3064
  break;
3065
3065
  }
3066
3066
  case "enum": {
3067
- const m = f, h = Bo(o.entries);
3067
+ const m = f, h = Uo(o.entries);
3068
3068
  h.every((v) => typeof v == "number") && (m.type = "number"), h.every((v) => typeof v == "string") && (m.type = "string"), m.enum = h;
3069
3069
  break;
3070
3070
  }
@@ -3178,7 +3178,7 @@ class An {
3178
3178
  }
3179
3179
  }
3180
3180
  const c = this.metadataRegistry.get(t);
3181
- return c && Object.assign(s.schema, c), this.io === "input" && Q(t) && (delete s.schema.examples, delete s.schema.default), this.io === "input" && s.schema._prefault && ((n = s.schema).default ?? (n.default = s.schema._prefault)), delete s.schema._prefault, this.seen.get(t).schema;
3181
+ return c && Object.assign(s.schema, c), this.io === "input" && K(t) && (delete s.schema.examples, delete s.schema.default), this.io === "input" && s.schema._prefault && ((n = s.schema).default ?? (n.default = s.schema._prefault)), delete s.schema._prefault, this.seen.get(t).schema;
3182
3182
  }
3183
3183
  emit(t, r) {
3184
3184
  const n = {
@@ -3287,7 +3287,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
3287
3287
  }
3288
3288
  }
3289
3289
  function Eu(e, t) {
3290
- if (e instanceof na) {
3290
+ if (e instanceof ra) {
3291
3291
  const n = new An(t), o = {};
3292
3292
  for (const s of e._idmap.entries()) {
3293
3293
  const [l, c] = s;
@@ -3316,7 +3316,7 @@ function Eu(e, t) {
3316
3316
  const r = new An(t);
3317
3317
  return r.process(e), r.emit(e, t);
3318
3318
  }
3319
- function Q(e, t) {
3319
+ function K(e, t) {
3320
3320
  const r = t ?? { seen: /* @__PURE__ */ new Set() };
3321
3321
  if (r.seen.has(e))
3322
3322
  return !1;
@@ -3342,52 +3342,52 @@ function Q(e, t) {
3342
3342
  case "template_literal":
3343
3343
  return !1;
3344
3344
  case "array":
3345
- return Q(o.element, r);
3345
+ return K(o.element, r);
3346
3346
  case "object": {
3347
3347
  for (const a in o.shape)
3348
- if (Q(o.shape[a], r))
3348
+ if (K(o.shape[a], r))
3349
3349
  return !0;
3350
3350
  return !1;
3351
3351
  }
3352
3352
  case "union": {
3353
3353
  for (const a of o.options)
3354
- if (Q(a, r))
3354
+ if (K(a, r))
3355
3355
  return !0;
3356
3356
  return !1;
3357
3357
  }
3358
3358
  case "intersection":
3359
- return Q(o.left, r) || Q(o.right, r);
3359
+ return K(o.left, r) || K(o.right, r);
3360
3360
  case "tuple": {
3361
3361
  for (const a of o.items)
3362
- if (Q(a, r))
3362
+ if (K(a, r))
3363
3363
  return !0;
3364
- return !!(o.rest && Q(o.rest, r));
3364
+ return !!(o.rest && K(o.rest, r));
3365
3365
  }
3366
3366
  case "record":
3367
- return Q(o.keyType, r) || Q(o.valueType, r);
3367
+ return K(o.keyType, r) || K(o.valueType, r);
3368
3368
  case "map":
3369
- return Q(o.keyType, r) || Q(o.valueType, r);
3369
+ return K(o.keyType, r) || K(o.valueType, r);
3370
3370
  case "set":
3371
- return Q(o.valueType, r);
3371
+ return K(o.valueType, r);
3372
3372
  // inner types
3373
3373
  case "promise":
3374
3374
  case "optional":
3375
3375
  case "nonoptional":
3376
3376
  case "nullable":
3377
3377
  case "readonly":
3378
- return Q(o.innerType, r);
3378
+ return K(o.innerType, r);
3379
3379
  case "lazy":
3380
- return Q(o.getter(), r);
3380
+ return K(o.getter(), r);
3381
3381
  case "default":
3382
- return Q(o.innerType, r);
3382
+ return K(o.innerType, r);
3383
3383
  case "prefault":
3384
- return Q(o.innerType, r);
3384
+ return K(o.innerType, r);
3385
3385
  case "custom":
3386
3386
  return !1;
3387
3387
  case "transform":
3388
3388
  return !0;
3389
3389
  case "pipe":
3390
- return Q(o.in, r) || Q(o.out, r);
3390
+ return K(o.in, r) || K(o.out, r);
3391
3391
  case "success":
3392
3392
  return !1;
3393
3393
  case "catch":
@@ -3414,13 +3414,13 @@ function Nu(e) {
3414
3414
  return ru(Cu, e);
3415
3415
  }
3416
3416
  const zu = /* @__PURE__ */ y("ZodISODuration", (e, t) => {
3417
- Kc.init(e, t), Y.init(e, t);
3417
+ Qc.init(e, t), Y.init(e, t);
3418
3418
  });
3419
3419
  function Au(e) {
3420
3420
  return nu(zu, e);
3421
3421
  }
3422
3422
  const Ou = (e, t) => {
3423
- Fo.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
3423
+ Vo.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
3424
3424
  format: {
3425
3425
  value: (r) => Hi(e, r)
3426
3426
  // enumerable: false,
@@ -3446,7 +3446,7 @@ const Ou = (e, t) => {
3446
3446
  });
3447
3447
  }, er = y("ZodError", Ou, {
3448
3448
  Parent: Error
3449
- }), $u = /* @__PURE__ */ Ji(er), Mu = /* @__PURE__ */ Gi(er), Ru = /* @__PURE__ */ Jo(er), ia = /* @__PURE__ */ Go(er), W = /* @__PURE__ */ y("ZodType", (e, t) => (B.init(e, t), e.def = t, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(
3449
+ }), $u = /* @__PURE__ */ Ji(er), Mu = /* @__PURE__ */ Gi(er), Ru = /* @__PURE__ */ Ho(er), sa = /* @__PURE__ */ Jo(er), W = /* @__PURE__ */ y("ZodType", (e, t) => (B.init(e, t), e.def = t, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(
3450
3450
  {
3451
3451
  ...t,
3452
3452
  checks: [
@@ -3455,7 +3455,7 @@ const Ou = (e, t) => {
3455
3455
  ]
3456
3456
  }
3457
3457
  // { parent: true }
3458
- ), e.clone = (r, n) => Be(e, r, n), e.brand = () => e, e.register = ((r, n) => (r.add(e, n), e)), e.parse = (r, n) => $u(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => Ru(e, r, n), e.parseAsync = async (r, n) => Mu(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => ia(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(Nd(r, n)), e.superRefine = (r) => e.check(zd(r)), e.overwrite = (r) => e.check(vt(r)), e.optional = () => K(e), e.nullable = () => Mn(e), e.nullish = () => K(Mn(e)), e.nonoptional = (r) => _d(e, r), e.array = () => Te(e), e.or = (r) => ee([e, r]), e.and = (r) => ld(e, r), e.transform = (r) => Rn(e, md(r)), e.default = (r) => gd(e, r), e.prefault = (r) => yd(e, r), e.catch = (r) => wd(e, r), e.pipe = (r) => Rn(e, r), e.readonly = () => Td(e), e.describe = (r) => {
3458
+ ), e.clone = (r, n) => Be(e, r, n), e.brand = () => e, e.register = ((r, n) => (r.add(e, n), e)), e.parse = (r, n) => $u(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => Ru(e, r, n), e.parseAsync = async (r, n) => Mu(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => sa(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(Nd(r, n)), e.superRefine = (r) => e.check(zd(r)), e.overwrite = (r) => e.check(vt(r)), e.optional = () => Q(e), e.nullable = () => Mn(e), e.nullish = () => Q(Mn(e)), e.nonoptional = (r) => _d(e, r), e.array = () => Ee(e), e.or = (r) => ee([e, r]), e.and = (r) => ld(e, r), e.transform = (r) => Rn(e, md(r)), e.default = (r) => gd(e, r), e.prefault = (r) => yd(e, r), e.catch = (r) => wd(e, r), e.pipe = (r) => Rn(e, r), e.readonly = () => Td(e), e.describe = (r) => {
3459
3459
  const n = e.clone();
3460
3460
  return nt.add(n, { description: r }), n;
3461
3461
  }, Object.defineProperty(e, "description", {
@@ -3468,18 +3468,18 @@ const Ou = (e, t) => {
3468
3468
  return nt.get(e);
3469
3469
  const n = e.clone();
3470
3470
  return nt.add(n, r[0]), n;
3471
- }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), ca = /* @__PURE__ */ y("_ZodString", (e, t) => {
3471
+ }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), ia = /* @__PURE__ */ y("_ZodString", (e, t) => {
3472
3472
  Br.init(e, t), W.init(e, t);
3473
3473
  const r = e._zod.bag;
3474
- e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(uu(...n)), e.includes = (...n) => e.check(mu(...n)), e.startsWith = (...n) => e.check(hu(...n)), e.endsWith = (...n) => e.check(fu(...n)), e.min = (...n) => e.check(Jt(...n)), e.max = (...n) => e.check(aa(...n)), e.length = (...n) => e.check(sa(...n)), e.nonempty = (...n) => e.check(Jt(1, ...n)), e.lowercase = (n) => e.check(du(n)), e.uppercase = (n) => e.check(pu(n)), e.trim = () => e.check(vu()), e.normalize = (...n) => e.check(gu(...n)), e.toLowerCase = () => e.check(yu()), e.toUpperCase = () => e.check(_u());
3474
+ e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(uu(...n)), e.includes = (...n) => e.check(mu(...n)), e.startsWith = (...n) => e.check(hu(...n)), e.endsWith = (...n) => e.check(fu(...n)), e.min = (...n) => e.check(Jt(...n)), e.max = (...n) => e.check(oa(...n)), e.length = (...n) => e.check(aa(...n)), e.nonempty = (...n) => e.check(Jt(1, ...n)), e.lowercase = (n) => e.check(du(n)), e.uppercase = (n) => e.check(pu(n)), e.trim = () => e.check(vu()), e.normalize = (...n) => e.check(gu(...n)), e.toLowerCase = () => e.check(yu()), e.toUpperCase = () => e.check(_u());
3475
3475
  }), Pu = /* @__PURE__ */ y("ZodString", (e, t) => {
3476
- Br.init(e, t), ca.init(e, t), e.email = (r) => e.check(Ml(Zu, r)), e.url = (r) => e.check(Ll(Du, r)), e.jwt = (r) => e.check(Ql(Ku, r)), e.emoji = (r) => e.check(Ul(Lu, r)), e.guid = (r) => e.check(xn(On, r)), e.uuid = (r) => e.check(Rl(kt, r)), e.uuidv4 = (r) => e.check(Pl(kt, r)), e.uuidv6 = (r) => e.check(Zl(kt, r)), e.uuidv7 = (r) => e.check(Dl(kt, r)), e.nanoid = (r) => e.check(Bl(Uu, r)), e.guid = (r) => e.check(xn(On, r)), e.cuid = (r) => e.check(jl(Bu, r)), e.cuid2 = (r) => e.check(Vl(ju, r)), e.ulid = (r) => e.check(Fl(Vu, r)), e.base64 = (r) => e.check(oa(la, r)), e.base64url = (r) => e.check(Xl(Yu, r)), e.xid = (r) => e.check(Hl(Fu, r)), e.ksuid = (r) => e.check(Jl(Hu, r)), e.ipv4 = (r) => e.check(Gl(Ju, r)), e.ipv6 = (r) => e.check(Wl(Gu, r)), e.cidrv4 = (r) => e.check(ql(Wu, r)), e.cidrv6 = (r) => e.check(Yl(qu, r)), e.e164 = (r) => e.check(Kl(Xu, r)), e.datetime = (r) => e.check(Su(r)), e.date = (r) => e.check(xu(r)), e.time = (r) => e.check(Nu(r)), e.duration = (r) => e.check(Au(r));
3476
+ Br.init(e, t), ia.init(e, t), e.email = (r) => e.check(Ml(Zu, r)), e.url = (r) => e.check(Ll(Du, r)), e.jwt = (r) => e.check(Kl(Qu, r)), e.emoji = (r) => e.check(Ul(Lu, r)), e.guid = (r) => e.check(xn(On, r)), e.uuid = (r) => e.check(Rl(kt, r)), e.uuidv4 = (r) => e.check(Pl(kt, r)), e.uuidv6 = (r) => e.check(Zl(kt, r)), e.uuidv7 = (r) => e.check(Dl(kt, r)), e.nanoid = (r) => e.check(Bl(Uu, r)), e.guid = (r) => e.check(xn(On, r)), e.cuid = (r) => e.check(jl(Bu, r)), e.cuid2 = (r) => e.check(Vl(ju, r)), e.ulid = (r) => e.check(Fl(Vu, r)), e.base64 = (r) => e.check(na(ca, r)), e.base64url = (r) => e.check(Xl(Yu, r)), e.xid = (r) => e.check(Hl(Fu, r)), e.ksuid = (r) => e.check(Jl(Hu, r)), e.ipv4 = (r) => e.check(Gl(Ju, r)), e.ipv6 = (r) => e.check(Wl(Gu, r)), e.cidrv4 = (r) => e.check(ql(Wu, r)), e.cidrv6 = (r) => e.check(Yl(qu, r)), e.e164 = (r) => e.check(Ql(Xu, r)), e.datetime = (r) => e.check(Su(r)), e.date = (r) => e.check(xu(r)), e.time = (r) => e.check(Nu(r)), e.duration = (r) => e.check(Au(r));
3477
3477
  });
3478
3478
  function w(e) {
3479
3479
  return $l(Pu, e);
3480
3480
  }
3481
3481
  const Y = /* @__PURE__ */ y("ZodStringFormat", (e, t) => {
3482
- G.init(e, t), ca.init(e, t);
3482
+ G.init(e, t), ia.init(e, t);
3483
3483
  }), Zu = /* @__PURE__ */ y("ZodEmail", (e, t) => {
3484
3484
  Uc.init(e, t), Y.init(e, t);
3485
3485
  }), On = /* @__PURE__ */ y("ZodGUID", (e, t) => {
@@ -3503,38 +3503,38 @@ const Y = /* @__PURE__ */ y("ZodStringFormat", (e, t) => {
3503
3503
  }), Hu = /* @__PURE__ */ y("ZodKSUID", (e, t) => {
3504
3504
  Wc.init(e, t), Y.init(e, t);
3505
3505
  }), Ju = /* @__PURE__ */ y("ZodIPv4", (e, t) => {
3506
- Qc.init(e, t), Y.init(e, t);
3506
+ Kc.init(e, t), Y.init(e, t);
3507
3507
  }), Gu = /* @__PURE__ */ y("ZodIPv6", (e, t) => {
3508
3508
  el.init(e, t), Y.init(e, t);
3509
3509
  }), Wu = /* @__PURE__ */ y("ZodCIDRv4", (e, t) => {
3510
3510
  tl.init(e, t), Y.init(e, t);
3511
3511
  }), qu = /* @__PURE__ */ y("ZodCIDRv6", (e, t) => {
3512
3512
  rl.init(e, t), Y.init(e, t);
3513
- }), la = /* @__PURE__ */ y("ZodBase64", (e, t) => {
3513
+ }), ca = /* @__PURE__ */ y("ZodBase64", (e, t) => {
3514
3514
  nl.init(e, t), Y.init(e, t);
3515
3515
  });
3516
- function ua(e) {
3517
- return oa(la, e);
3516
+ function la(e) {
3517
+ return na(ca, e);
3518
3518
  }
3519
3519
  const Yu = /* @__PURE__ */ y("ZodBase64URL", (e, t) => {
3520
3520
  al.init(e, t), Y.init(e, t);
3521
3521
  }), Xu = /* @__PURE__ */ y("ZodE164", (e, t) => {
3522
3522
  sl.init(e, t), Y.init(e, t);
3523
- }), Ku = /* @__PURE__ */ y("ZodJWT", (e, t) => {
3523
+ }), Qu = /* @__PURE__ */ y("ZodJWT", (e, t) => {
3524
3524
  cl.init(e, t), Y.init(e, t);
3525
- }), da = /* @__PURE__ */ y("ZodNumber", (e, t) => {
3526
- ta.init(e, t), W.init(e, t), e.gt = (n, o) => e.check(Nn(n, o)), e.gte = (n, o) => e.check(dr(n, o)), e.min = (n, o) => e.check(dr(n, o)), e.lt = (n, o) => e.check(Cn(n, o)), e.lte = (n, o) => e.check(ur(n, o)), e.max = (n, o) => e.check(ur(n, o)), e.int = (n) => e.check($n(n)), e.safe = (n) => e.check($n(n)), e.positive = (n) => e.check(Nn(0, n)), e.nonnegative = (n) => e.check(dr(0, n)), e.negative = (n) => e.check(Cn(0, n)), e.nonpositive = (n) => e.check(ur(0, n)), e.multipleOf = (n, o) => e.check(zn(n, o)), e.step = (n, o) => e.check(zn(n, o)), e.finite = () => e;
3525
+ }), ua = /* @__PURE__ */ y("ZodNumber", (e, t) => {
3526
+ ea.init(e, t), W.init(e, t), e.gt = (n, o) => e.check(Nn(n, o)), e.gte = (n, o) => e.check(dr(n, o)), e.min = (n, o) => e.check(dr(n, o)), e.lt = (n, o) => e.check(Cn(n, o)), e.lte = (n, o) => e.check(ur(n, o)), e.max = (n, o) => e.check(ur(n, o)), e.int = (n) => e.check($n(n)), e.safe = (n) => e.check($n(n)), e.positive = (n) => e.check(Nn(0, n)), e.nonnegative = (n) => e.check(dr(0, n)), e.negative = (n) => e.check(Cn(0, n)), e.nonpositive = (n) => e.check(ur(0, n)), e.multipleOf = (n, o) => e.check(zn(n, o)), e.step = (n, o) => e.check(zn(n, o)), e.finite = () => e;
3527
3527
  const r = e._zod.bag;
3528
3528
  e.minValue = Math.max(r.minimum ?? Number.NEGATIVE_INFINITY, r.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(r.maximum ?? Number.POSITIVE_INFINITY, r.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (r.format ?? "").includes("int") || Number.isSafeInteger(r.multipleOf ?? 0.5), e.isFinite = !0, e.format = r.format ?? null;
3529
3529
  });
3530
3530
  function pt(e) {
3531
- return ou(da, e);
3531
+ return ou(ua, e);
3532
3532
  }
3533
- const Qu = /* @__PURE__ */ y("ZodNumberFormat", (e, t) => {
3534
- ll.init(e, t), da.init(e, t);
3533
+ const Ku = /* @__PURE__ */ y("ZodNumberFormat", (e, t) => {
3534
+ ll.init(e, t), ua.init(e, t);
3535
3535
  });
3536
3536
  function $n(e) {
3537
- return au(Qu, e);
3537
+ return au(Ku, e);
3538
3538
  }
3539
3539
  const ed = /* @__PURE__ */ y("ZodBoolean", (e, t) => {
3540
3540
  ul.init(e, t), W.init(e, t);
@@ -3561,13 +3561,13 @@ function le(e) {
3561
3561
  return lu(od, e);
3562
3562
  }
3563
3563
  const ad = /* @__PURE__ */ y("ZodArray", (e, t) => {
3564
- hl.init(e, t), W.init(e, t), e.element = t.element, e.min = (r, n) => e.check(Jt(r, n)), e.nonempty = (r) => e.check(Jt(1, r)), e.max = (r, n) => e.check(aa(r, n)), e.length = (r, n) => e.check(sa(r, n)), e.unwrap = () => e.element;
3564
+ hl.init(e, t), W.init(e, t), e.element = t.element, e.min = (r, n) => e.check(Jt(r, n)), e.nonempty = (r) => e.check(Jt(1, r)), e.max = (r, n) => e.check(oa(r, n)), e.length = (r, n) => e.check(aa(r, n)), e.unwrap = () => e.element;
3565
3565
  });
3566
- function Te(e, t) {
3566
+ function Ee(e, t) {
3567
3567
  return bu(ad, e, t);
3568
3568
  }
3569
3569
  const jr = /* @__PURE__ */ y("ZodObject", (e, t) => {
3570
- fl.init(e, t), W.init(e, t), Z(e, "shape", () => t.shape), e.keyof = () => tr(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: H() }), e.loose = () => e.clone({ ...e._zod.def, catchall: H() }), e.strict = () => e.clone({ ...e._zod.def, catchall: le() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => Ui(e, r), e.merge = (r) => Bi(e, r), e.pick = (r) => Di(e, r), e.omit = (r) => Li(e, r), e.partial = (...r) => ji(ma, e, r[0]), e.required = (...r) => Vi(ha, e, r[0]);
3570
+ fl.init(e, t), W.init(e, t), Z(e, "shape", () => t.shape), e.keyof = () => tr(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: H() }), e.loose = () => e.clone({ ...e._zod.def, catchall: H() }), e.strict = () => e.clone({ ...e._zod.def, catchall: le() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => Ui(e, r), e.merge = (r) => Bi(e, r), e.pick = (r) => Di(e, r), e.omit = (r) => Li(e, r), e.partial = (...r) => ji(pa, e, r[0]), e.required = (...r) => Vi(ma, e, r[0]);
3571
3571
  });
3572
3572
  function C(e, t) {
3573
3573
  const r = {
@@ -3599,18 +3599,18 @@ function Xe(e, t) {
3599
3599
  ...S(t)
3600
3600
  });
3601
3601
  }
3602
- const pa = /* @__PURE__ */ y("ZodUnion", (e, t) => {
3603
- ra.init(e, t), W.init(e, t), e.options = t.options;
3602
+ const da = /* @__PURE__ */ y("ZodUnion", (e, t) => {
3603
+ ta.init(e, t), W.init(e, t), e.options = t.options;
3604
3604
  });
3605
3605
  function ee(e, t) {
3606
- return new pa({
3606
+ return new da({
3607
3607
  type: "union",
3608
3608
  options: e,
3609
3609
  ...S(t)
3610
3610
  });
3611
3611
  }
3612
3612
  const sd = /* @__PURE__ */ y("ZodDiscriminatedUnion", (e, t) => {
3613
- pa.init(e, t), gl.init(e, t);
3613
+ da.init(e, t), gl.init(e, t);
3614
3614
  });
3615
3615
  function id(e, t, r) {
3616
3616
  return new sd({
@@ -3716,11 +3716,11 @@ function md(e) {
3716
3716
  transform: e
3717
3717
  });
3718
3718
  }
3719
- const ma = /* @__PURE__ */ y("ZodOptional", (e, t) => {
3719
+ const pa = /* @__PURE__ */ y("ZodOptional", (e, t) => {
3720
3720
  Il.init(e, t), W.init(e, t), e.unwrap = () => e._zod.def.innerType;
3721
3721
  });
3722
- function K(e) {
3723
- return new ma({
3722
+ function Q(e) {
3723
+ return new pa({
3724
3724
  type: "optional",
3725
3725
  innerType: e
3726
3726
  });
@@ -3758,11 +3758,11 @@ function yd(e, t) {
3758
3758
  }
3759
3759
  });
3760
3760
  }
3761
- const ha = /* @__PURE__ */ y("ZodNonOptional", (e, t) => {
3761
+ const ma = /* @__PURE__ */ y("ZodNonOptional", (e, t) => {
3762
3762
  kl.init(e, t), W.init(e, t), e.unwrap = () => e._zod.def.innerType;
3763
3763
  });
3764
3764
  function _d(e, t) {
3765
- return new ha({
3765
+ return new ma({
3766
3766
  type: "nonoptional",
3767
3767
  innerType: e,
3768
3768
  ...S(t)
@@ -4056,15 +4056,15 @@ function Jd(e) {
4056
4056
  function Gd() {
4057
4057
  return { type: "boolean" };
4058
4058
  }
4059
- function fa(e, t) {
4059
+ function ha(e, t) {
4060
4060
  return L(e.type._def, t);
4061
4061
  }
4062
4062
  var Wd = (e, t) => L(e.innerType._def, t);
4063
- function ga(e, t, r) {
4063
+ function fa(e, t, r) {
4064
4064
  const n = r ?? t.dateStrategy;
4065
4065
  if (Array.isArray(n))
4066
4066
  return {
4067
- anyOf: n.map((o, a) => ga(e, t, o))
4067
+ anyOf: n.map((o, a) => fa(e, t, o))
4068
4068
  };
4069
4069
  switch (n) {
4070
4070
  case "string":
@@ -4107,13 +4107,13 @@ function Yd(e, t) {
4107
4107
  function Xd(e, t) {
4108
4108
  return t.effectStrategy === "input" ? L(e.schema._def, t) : de();
4109
4109
  }
4110
- function Kd(e) {
4110
+ function Qd(e) {
4111
4111
  return {
4112
4112
  type: "string",
4113
4113
  enum: Array.from(e.values)
4114
4114
  };
4115
4115
  }
4116
- var Qd = (e) => "type" in e && e.type === "string" ? !1 : "allOf" in e;
4116
+ var Kd = (e) => "type" in e && e.type === "string" ? !1 : "allOf" in e;
4117
4117
  function ep(e, t) {
4118
4118
  const r = [
4119
4119
  L(e.left._def, {
@@ -4126,7 +4126,7 @@ function ep(e, t) {
4126
4126
  })
4127
4127
  ].filter((o) => !!o), n = [];
4128
4128
  return r.forEach((o) => {
4129
- if (Qd(o))
4129
+ if (Kd(o))
4130
4130
  n.push(...o.allOf);
4131
4131
  else {
4132
4132
  let a = o;
@@ -4192,7 +4192,7 @@ var pr = void 0, he = {
4192
4192
  nanoid: /^[a-zA-Z0-9_-]{21}$/,
4193
4193
  jwt: /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/
4194
4194
  };
4195
- function va(e, t) {
4195
+ function ga(e, t) {
4196
4196
  const r = {
4197
4197
  type: "string"
4198
4198
  };
@@ -4396,7 +4396,7 @@ function Dn(e, t) {
4396
4396
  }
4397
4397
  return a;
4398
4398
  }
4399
- function ya(e, t) {
4399
+ function va(e, t) {
4400
4400
  var r, n, o, a, i, s;
4401
4401
  const l = {
4402
4402
  type: "object",
@@ -4406,7 +4406,7 @@ function ya(e, t) {
4406
4406
  })) != null ? r : t.allowedAdditionalProperties
4407
4407
  };
4408
4408
  if (((n = e.keyType) == null ? void 0 : n._def.typeName) === N.ZodString && ((o = e.keyType._def.checks) != null && o.length)) {
4409
- const { type: c, ...p } = va(e.keyType._def, t);
4409
+ const { type: c, ...p } = ga(e.keyType._def, t);
4410
4410
  return {
4411
4411
  ...l,
4412
4412
  propertyNames: p
@@ -4420,7 +4420,7 @@ function ya(e, t) {
4420
4420
  }
4421
4421
  };
4422
4422
  if (((i = e.keyType) == null ? void 0 : i._def.typeName) === N.ZodBranded && e.keyType._def.type._def.typeName === N.ZodString && ((s = e.keyType._def.type._def.checks) != null && s.length)) {
4423
- const { type: c, ...p } = fa(
4423
+ const { type: c, ...p } = ha(
4424
4424
  e.keyType._def,
4425
4425
  t
4426
4426
  );
@@ -4434,7 +4434,7 @@ function ya(e, t) {
4434
4434
  }
4435
4435
  function op(e, t) {
4436
4436
  if (t.mapStrategy === "record")
4437
- return ya(e, t);
4437
+ return va(e, t);
4438
4438
  const r = L(e.keyType._def, {
4439
4439
  ...t,
4440
4440
  currentPath: [...t.currentPath, "items", "items", "0"]
@@ -4709,7 +4709,7 @@ function wp() {
4709
4709
  var Ip = (e, t) => L(e.innerType._def, t), Ep = (e, t, r) => {
4710
4710
  switch (t) {
4711
4711
  case N.ZodString:
4712
- return va(e, r);
4712
+ return ga(e, r);
4713
4713
  case N.ZodNumber:
4714
4714
  return dp(e);
4715
4715
  case N.ZodObject:
@@ -4719,7 +4719,7 @@ var Ip = (e, t) => L(e.innerType._def, t), Ep = (e, t, r) => {
4719
4719
  case N.ZodBoolean:
4720
4720
  return Gd();
4721
4721
  case N.ZodDate:
4722
- return ga(e, r);
4722
+ return fa(e, r);
4723
4723
  case N.ZodUndefined:
4724
4724
  return bp();
4725
4725
  case N.ZodNull:
@@ -4734,11 +4734,11 @@ var Ip = (e, t) => L(e.innerType._def, t), Ep = (e, t, r) => {
4734
4734
  case N.ZodTuple:
4735
4735
  return _p(e, r);
4736
4736
  case N.ZodRecord:
4737
- return ya(e, r);
4737
+ return va(e, r);
4738
4738
  case N.ZodLiteral:
4739
4739
  return tp(e);
4740
4740
  case N.ZodEnum:
4741
- return Kd(e);
4741
+ return Qd(e);
4742
4742
  case N.ZodNativeEnum:
4743
4743
  return ap(e);
4744
4744
  case N.ZodNullable:
@@ -4765,7 +4765,7 @@ var Ip = (e, t) => L(e.innerType._def, t), Ep = (e, t, r) => {
4765
4765
  case N.ZodDefault:
4766
4766
  return Yd(e, r);
4767
4767
  case N.ZodBranded:
4768
- return fa(e, r);
4768
+ return ha(e, r);
4769
4769
  case N.ZodReadonly:
4770
4770
  return Ip(e, r);
4771
4771
  case N.ZodCatch:
@@ -4910,7 +4910,7 @@ function zp(e, t) {
4910
4910
  });
4911
4911
  return Hr(o, {
4912
4912
  validate: async (a) => {
4913
- const i = await ia(e, a);
4913
+ const i = await sa(e, a);
4914
4914
  return i.success ? { success: !0, value: i.data } : { success: !1, error: i.error };
4915
4915
  }
4916
4916
  });
@@ -4946,7 +4946,7 @@ function Mp(e) {
4946
4946
  var Rp = Object.defineProperty, Pp = (e, t) => {
4947
4947
  for (var r in t)
4948
4948
  Rp(e, r, { get: t[r], enumerable: !0 });
4949
- }, _a = "AI_NoObjectGeneratedError", ba = `vercel.ai.error.${_a}`, Zp = Symbol.for(ba), wa, Ln = class extends ze {
4949
+ }, ya = "AI_NoObjectGeneratedError", _a = `vercel.ai.error.${ya}`, Zp = Symbol.for(_a), ba, Ln = class extends Ne {
4950
4950
  constructor({
4951
4951
  message: e = "No object generated.",
4952
4952
  cause: t,
@@ -4955,14 +4955,14 @@ var Rp = Object.defineProperty, Pp = (e, t) => {
4955
4955
  usage: o,
4956
4956
  finishReason: a
4957
4957
  }) {
4958
- super({ name: _a, message: e, cause: t }), this[wa] = !0, this.text = r, this.response = n, this.usage = o, this.finishReason = a;
4958
+ super({ name: ya, message: e, cause: t }), this[ba] = !0, this.text = r, this.response = n, this.usage = o, this.finishReason = a;
4959
4959
  }
4960
4960
  static isInstance(e) {
4961
- return ze.hasMarker(e, ba);
4961
+ return Ne.hasMarker(e, _a);
4962
4962
  }
4963
4963
  };
4964
- wa = Zp;
4965
- var Ia = ee([
4964
+ ba = Zp;
4965
+ var wa = ee([
4966
4966
  w(),
4967
4967
  Gt(Uint8Array),
4968
4968
  Gt(ArrayBuffer),
@@ -4981,36 +4981,36 @@ var Ia = ee([
4981
4981
  pt(),
4982
4982
  X(),
4983
4983
  kr(w(), mt),
4984
- Te(mt)
4984
+ Ee(mt)
4985
4985
  ])
4986
- ), R = kr(
4986
+ ), M = kr(
4987
4987
  w(),
4988
4988
  kr(w(), mt)
4989
- ), Ea = C({
4989
+ ), Ia = C({
4990
4990
  type: T("text"),
4991
4991
  text: w(),
4992
- providerOptions: R.optional()
4992
+ providerOptions: M.optional()
4993
4993
  }), Dp = C({
4994
4994
  type: T("image"),
4995
- image: ee([Ia, Gt(URL)]),
4995
+ image: ee([wa, Gt(URL)]),
4996
4996
  mediaType: w().optional(),
4997
- providerOptions: R.optional()
4998
- }), Ta = C({
4997
+ providerOptions: M.optional()
4998
+ }), Ea = C({
4999
4999
  type: T("file"),
5000
- data: ee([Ia, Gt(URL)]),
5000
+ data: ee([wa, Gt(URL)]),
5001
5001
  filename: w().optional(),
5002
5002
  mediaType: w(),
5003
- providerOptions: R.optional()
5003
+ providerOptions: M.optional()
5004
5004
  }), Lp = C({
5005
5005
  type: T("reasoning"),
5006
5006
  text: w(),
5007
- providerOptions: R.optional()
5007
+ providerOptions: M.optional()
5008
5008
  }), Up = C({
5009
5009
  type: T("tool-call"),
5010
5010
  toolCallId: w(),
5011
5011
  toolName: w(),
5012
5012
  input: H(),
5013
- providerOptions: R.optional(),
5013
+ providerOptions: M.optional(),
5014
5014
  providerExecuted: X().optional()
5015
5015
  }), Bp = id("type", [
5016
5016
  C({
@@ -5031,7 +5031,7 @@ var Ia = ee([
5031
5031
  }),
5032
5032
  C({
5033
5033
  type: T("content"),
5034
- value: Te(
5034
+ value: Ee(
5035
5035
  ee([
5036
5036
  C({
5037
5037
  type: T("text"),
@@ -5045,44 +5045,44 @@ var Ia = ee([
5045
5045
  ])
5046
5046
  )
5047
5047
  })
5048
- ]), Sa = C({
5048
+ ]), Ta = C({
5049
5049
  type: T("tool-result"),
5050
5050
  toolCallId: w(),
5051
5051
  toolName: w(),
5052
5052
  output: Bp,
5053
- providerOptions: R.optional()
5053
+ providerOptions: M.optional()
5054
5054
  }), jp = C(
5055
5055
  {
5056
5056
  role: T("system"),
5057
5057
  content: w(),
5058
- providerOptions: R.optional()
5058
+ providerOptions: M.optional()
5059
5059
  }
5060
5060
  ), Vp = C({
5061
5061
  role: T("user"),
5062
5062
  content: ee([
5063
5063
  w(),
5064
- Te(ee([Ea, Dp, Ta]))
5064
+ Ee(ee([Ia, Dp, Ea]))
5065
5065
  ]),
5066
- providerOptions: R.optional()
5066
+ providerOptions: M.optional()
5067
5067
  }), Fp = C({
5068
5068
  role: T("assistant"),
5069
5069
  content: ee([
5070
5070
  w(),
5071
- Te(
5071
+ Ee(
5072
5072
  ee([
5073
+ Ia,
5073
5074
  Ea,
5074
- Ta,
5075
5075
  Lp,
5076
5076
  Up,
5077
- Sa
5077
+ Ta
5078
5078
  ])
5079
5079
  )
5080
5080
  ]),
5081
- providerOptions: R.optional()
5081
+ providerOptions: M.optional()
5082
5082
  }), Hp = C({
5083
5083
  role: T("tool"),
5084
- content: Te(Sa),
5085
- providerOptions: R.optional()
5084
+ content: Ee(Ta),
5085
+ providerOptions: M.optional()
5086
5086
  });
5087
5087
  ee([
5088
5088
  jp,
@@ -5098,18 +5098,18 @@ var Jp = ee([
5098
5098
  V({
5099
5099
  type: T("text-start"),
5100
5100
  id: w(),
5101
- providerMetadata: R.optional()
5101
+ providerMetadata: M.optional()
5102
5102
  }),
5103
5103
  V({
5104
5104
  type: T("text-delta"),
5105
5105
  id: w(),
5106
5106
  delta: w(),
5107
- providerMetadata: R.optional()
5107
+ providerMetadata: M.optional()
5108
5108
  }),
5109
5109
  V({
5110
5110
  type: T("text-end"),
5111
5111
  id: w(),
5112
- providerMetadata: R.optional()
5112
+ providerMetadata: M.optional()
5113
5113
  }),
5114
5114
  V({
5115
5115
  type: T("error"),
@@ -5133,7 +5133,7 @@ var Jp = ee([
5133
5133
  toolName: w(),
5134
5134
  input: H(),
5135
5135
  providerExecuted: X().optional(),
5136
- providerMetadata: R.optional(),
5136
+ providerMetadata: M.optional(),
5137
5137
  dynamic: X().optional()
5138
5138
  }),
5139
5139
  V({
@@ -5142,7 +5142,7 @@ var Jp = ee([
5142
5142
  toolName: w(),
5143
5143
  input: H(),
5144
5144
  providerExecuted: X().optional(),
5145
- providerMetadata: R.optional(),
5145
+ providerMetadata: M.optional(),
5146
5146
  dynamic: X().optional(),
5147
5147
  errorText: w()
5148
5148
  }),
@@ -5164,23 +5164,23 @@ var Jp = ee([
5164
5164
  V({
5165
5165
  type: T("reasoning"),
5166
5166
  text: w(),
5167
- providerMetadata: R.optional()
5167
+ providerMetadata: M.optional()
5168
5168
  }),
5169
5169
  V({
5170
5170
  type: T("reasoning-start"),
5171
5171
  id: w(),
5172
- providerMetadata: R.optional()
5172
+ providerMetadata: M.optional()
5173
5173
  }),
5174
5174
  V({
5175
5175
  type: T("reasoning-delta"),
5176
5176
  id: w(),
5177
5177
  delta: w(),
5178
- providerMetadata: R.optional()
5178
+ providerMetadata: M.optional()
5179
5179
  }),
5180
5180
  V({
5181
5181
  type: T("reasoning-end"),
5182
5182
  id: w(),
5183
- providerMetadata: R.optional()
5183
+ providerMetadata: M.optional()
5184
5184
  }),
5185
5185
  V({
5186
5186
  type: T("reasoning-part-finish")
@@ -5190,7 +5190,7 @@ var Jp = ee([
5190
5190
  sourceId: w(),
5191
5191
  url: w(),
5192
5192
  title: w().optional(),
5193
- providerMetadata: R.optional()
5193
+ providerMetadata: M.optional()
5194
5194
  }),
5195
5195
  V({
5196
5196
  type: T("source-document"),
@@ -5198,13 +5198,13 @@ var Jp = ee([
5198
5198
  mediaType: w(),
5199
5199
  title: w(),
5200
5200
  filename: w().optional(),
5201
- providerMetadata: R.optional()
5201
+ providerMetadata: M.optional()
5202
5202
  }),
5203
5203
  V({
5204
5204
  type: T("file"),
5205
5205
  url: w(),
5206
5206
  mediaType: w(),
5207
- providerMetadata: R.optional()
5207
+ providerMetadata: M.optional()
5208
5208
  }),
5209
5209
  V({
5210
5210
  type: w().startsWith("data-"),
@@ -5238,7 +5238,7 @@ var Jp = ee([
5238
5238
  function Gp(e) {
5239
5239
  return e.type.startsWith("data-");
5240
5240
  }
5241
- function ka(e, t) {
5241
+ function Sa(e, t) {
5242
5242
  if (e === void 0 && t === void 0)
5243
5243
  return;
5244
5244
  if (e === void 0)
@@ -5252,7 +5252,7 @@ function ka(e, t) {
5252
5252
  if (o === void 0)
5253
5253
  continue;
5254
5254
  const a = n in e ? e[n] : void 0, i = o !== null && typeof o == "object" && !Array.isArray(o) && !(o instanceof Date) && !(o instanceof RegExp), s = a != null && typeof a == "object" && !Array.isArray(a) && !(a instanceof Date) && !(a instanceof RegExp);
5255
- i && s ? r[n] = ka(
5255
+ i && s ? r[n] = Sa(
5256
5256
  a,
5257
5257
  o
5258
5258
  ) : r[n] = o;
@@ -5507,7 +5507,7 @@ function Wp(e) {
5507
5507
  }
5508
5508
  return s;
5509
5509
  }
5510
- async function xa(e) {
5510
+ async function ka(e) {
5511
5511
  if (e === void 0)
5512
5512
  return { value: void 0, state: "undefined-input" };
5513
5513
  let t = await qt({ text: e });
@@ -5614,7 +5614,7 @@ function Xp({
5614
5614
  }
5615
5615
  async function E(_) {
5616
5616
  if (_ != null) {
5617
- const P = c.message.metadata != null ? ka(c.message.metadata, _) : _;
5617
+ const P = c.message.metadata != null ? Sa(c.message.metadata, _) : _;
5618
5618
  t != null && await Pn({
5619
5619
  value: P,
5620
5620
  schema: t
@@ -5715,7 +5715,7 @@ function Xp({
5715
5715
  case "tool-input-delta": {
5716
5716
  const _ = c.partialToolCalls[s.toolCallId];
5717
5717
  _.text += s.inputTextDelta;
5718
- const { value: P } = await xa(
5718
+ const { value: P } = await ka(
5719
5719
  _.text
5720
5720
  );
5721
5721
  _.dynamic ? b({
@@ -5871,7 +5871,7 @@ function Xp({
5871
5871
  })
5872
5872
  );
5873
5873
  }
5874
- async function Kp({
5874
+ async function Qp({
5875
5875
  stream: e,
5876
5876
  onError: t
5877
5877
  }) {
@@ -5893,7 +5893,7 @@ yt({
5893
5893
  size: 24
5894
5894
  });
5895
5895
  yt({ prefix: "aiobj", size: 24 });
5896
- var Qp = class {
5896
+ var Kp = class {
5897
5897
  constructor() {
5898
5898
  this.queue = [], this.isProcessing = !1;
5899
5899
  }
@@ -5942,7 +5942,7 @@ var tm = () => ({
5942
5942
  schema: t.jsonSchema
5943
5943
  },
5944
5944
  async parsePartial({ text: r }) {
5945
- const n = await xa(r);
5945
+ const n = await ka(r);
5946
5946
  switch (n.state) {
5947
5947
  case "failed-parse":
5948
5948
  case "undefined-input":
@@ -5990,27 +5990,27 @@ var tm = () => ({
5990
5990
  name: w(),
5991
5991
  version: w()
5992
5992
  }), Jr = Xe({
5993
- _meta: K(C({}).loose())
5993
+ _meta: Q(C({}).loose())
5994
5994
  }), ht = Jr, om = C({
5995
5995
  method: w(),
5996
- params: K(Jr)
5996
+ params: Q(Jr)
5997
5997
  }), am = Xe({
5998
- experimental: K(C({}).loose()),
5999
- logging: K(C({}).loose()),
6000
- prompts: K(
5998
+ experimental: Q(C({}).loose()),
5999
+ logging: Q(C({}).loose()),
6000
+ prompts: Q(
6001
6001
  Xe({
6002
- listChanged: K(X())
6002
+ listChanged: Q(X())
6003
6003
  })
6004
6004
  ),
6005
- resources: K(
6005
+ resources: Q(
6006
6006
  Xe({
6007
- subscribe: K(X()),
6008
- listChanged: K(X())
6007
+ subscribe: Q(X()),
6008
+ listChanged: Q(X())
6009
6009
  })
6010
6010
  ),
6011
- tools: K(
6011
+ tools: Q(
6012
6012
  Xe({
6013
- listChanged: K(X())
6013
+ listChanged: Q(X())
6014
6014
  })
6015
6015
  )
6016
6016
  });
@@ -6018,29 +6018,29 @@ ht.extend({
6018
6018
  protocolVersion: w(),
6019
6019
  capabilities: am,
6020
6020
  serverInfo: nm,
6021
- instructions: K(w())
6021
+ instructions: Q(w())
6022
6022
  });
6023
6023
  var sm = ht.extend({
6024
- nextCursor: K(w())
6024
+ nextCursor: Q(w())
6025
6025
  }), im = C({
6026
6026
  name: w(),
6027
- description: K(w()),
6027
+ description: Q(w()),
6028
6028
  inputSchema: C({
6029
6029
  type: T("object"),
6030
- properties: K(C({}).loose())
6030
+ properties: Q(C({}).loose())
6031
6031
  }).loose()
6032
6032
  }).loose();
6033
6033
  sm.extend({
6034
- tools: Te(im)
6034
+ tools: Ee(im)
6035
6035
  });
6036
6036
  var cm = C({
6037
6037
  type: T("text"),
6038
6038
  text: w()
6039
6039
  }).loose(), lm = C({
6040
6040
  type: T("image"),
6041
- data: ua(),
6041
+ data: la(),
6042
6042
  mimeType: w()
6043
- }).loose(), Ca = C({
6043
+ }).loose(), xa = C({
6044
6044
  /**
6045
6045
  * The URI of this resource.
6046
6046
  */
@@ -6048,17 +6048,17 @@ var cm = C({
6048
6048
  /**
6049
6049
  * The MIME type of this resource, if known.
6050
6050
  */
6051
- mimeType: K(w())
6052
- }).loose(), um = Ca.extend({
6051
+ mimeType: Q(w())
6052
+ }).loose(), um = xa.extend({
6053
6053
  text: w()
6054
- }), dm = Ca.extend({
6055
- blob: ua()
6054
+ }), dm = xa.extend({
6055
+ blob: la()
6056
6056
  }), pm = C({
6057
6057
  type: T("resource"),
6058
6058
  resource: ee([um, dm])
6059
6059
  }).loose();
6060
6060
  ht.extend({
6061
- content: Te(
6061
+ content: Ee(
6062
6062
  ee([cm, lm, pm])
6063
6063
  ),
6064
6064
  isError: X().default(!1).optional()
@@ -6080,14 +6080,14 @@ var rr = "2.0", mm = C({
6080
6080
  error: C({
6081
6081
  code: pt().int(),
6082
6082
  message: w(),
6083
- data: K(H())
6083
+ data: Q(H())
6084
6084
  })
6085
6085
  }).strict(), gm = C({
6086
6086
  jsonrpc: T(rr)
6087
6087
  }).merge(
6088
6088
  C({
6089
6089
  method: w(),
6090
- params: K(Jr)
6090
+ params: Q(Jr)
6091
6091
  })
6092
6092
  ).strict();
6093
6093
  ee([
@@ -6227,7 +6227,7 @@ var ym = class {
6227
6227
  onData: c,
6228
6228
  sendAutomaticallyWhen: p
6229
6229
  }) {
6230
- this.activeResponse = void 0, this.jobExecutor = new Qp(), this.sendMessage = async (d, g) => {
6230
+ this.activeResponse = void 0, this.jobExecutor = new Kp(), this.sendMessage = async (d, g) => {
6231
6231
  var f, m, h, v;
6232
6232
  if (d == null) {
6233
6233
  await this.makeRequest({
@@ -6409,7 +6409,7 @@ var ym = class {
6409
6409
  })
6410
6410
  )
6411
6411
  );
6412
- await Kp({
6412
+ await Qp({
6413
6413
  stream: Xp({
6414
6414
  stream: f,
6415
6415
  onToolCall: this.onToolCall,
@@ -6455,31 +6455,31 @@ var ym = class {
6455
6455
  type: T("text"),
6456
6456
  text: w(),
6457
6457
  state: tr(["streaming", "done"]).optional(),
6458
- providerMetadata: R.optional()
6458
+ providerMetadata: M.optional()
6459
6459
  }), wm = C({
6460
6460
  type: T("reasoning"),
6461
6461
  text: w(),
6462
6462
  state: tr(["streaming", "done"]).optional(),
6463
- providerMetadata: R.optional()
6463
+ providerMetadata: M.optional()
6464
6464
  }), Im = C({
6465
6465
  type: T("source-url"),
6466
6466
  sourceId: w(),
6467
6467
  url: w(),
6468
6468
  title: w().optional(),
6469
- providerMetadata: R.optional()
6469
+ providerMetadata: M.optional()
6470
6470
  }), Em = C({
6471
6471
  type: T("source-document"),
6472
6472
  sourceId: w(),
6473
6473
  mediaType: w(),
6474
6474
  title: w(),
6475
6475
  filename: w().optional(),
6476
- providerMetadata: R.optional()
6476
+ providerMetadata: M.optional()
6477
6477
  }), Tm = C({
6478
6478
  type: T("file"),
6479
6479
  mediaType: w(),
6480
6480
  filename: w().optional(),
6481
6481
  url: w(),
6482
- providerMetadata: R.optional()
6482
+ providerMetadata: M.optional()
6483
6483
  }), Sm = C({
6484
6484
  type: T("step-start")
6485
6485
  }), km = C({
@@ -6504,7 +6504,7 @@ var ym = class {
6504
6504
  input: H(),
6505
6505
  output: le().optional(),
6506
6506
  errorText: le().optional(),
6507
- callProviderMetadata: R.optional()
6507
+ callProviderMetadata: M.optional()
6508
6508
  }),
6509
6509
  C({
6510
6510
  type: T("dynamic-tool"),
@@ -6514,7 +6514,7 @@ var ym = class {
6514
6514
  input: H(),
6515
6515
  output: H(),
6516
6516
  errorText: le().optional(),
6517
- callProviderMetadata: R.optional(),
6517
+ callProviderMetadata: M.optional(),
6518
6518
  preliminary: X().optional()
6519
6519
  }),
6520
6520
  C({
@@ -6525,7 +6525,7 @@ var ym = class {
6525
6525
  input: H(),
6526
6526
  output: le().optional(),
6527
6527
  errorText: w(),
6528
- callProviderMetadata: R.optional()
6528
+ callProviderMetadata: M.optional()
6529
6529
  })
6530
6530
  ], Cm = [
6531
6531
  C({
@@ -6543,7 +6543,7 @@ var ym = class {
6543
6543
  input: H(),
6544
6544
  output: le().optional(),
6545
6545
  errorText: le().optional(),
6546
- callProviderMetadata: R.optional()
6546
+ callProviderMetadata: M.optional()
6547
6547
  }),
6548
6548
  C({
6549
6549
  type: w().startsWith("tool-"),
@@ -6552,7 +6552,7 @@ var ym = class {
6552
6552
  input: H(),
6553
6553
  output: H(),
6554
6554
  errorText: le().optional(),
6555
- callProviderMetadata: R.optional(),
6555
+ callProviderMetadata: M.optional(),
6556
6556
  preliminary: X().optional()
6557
6557
  }),
6558
6558
  C({
@@ -6562,14 +6562,14 @@ var ym = class {
6562
6562
  input: H(),
6563
6563
  output: le().optional(),
6564
6564
  errorText: w(),
6565
- callProviderMetadata: R.optional()
6565
+ callProviderMetadata: M.optional()
6566
6566
  })
6567
6567
  ];
6568
6568
  C({
6569
6569
  id: w(),
6570
6570
  role: tr(["system", "user", "assistant"]),
6571
6571
  metadata: H().optional(),
6572
- parts: Te(
6572
+ parts: Ee(
6573
6573
  ee([
6574
6574
  bm,
6575
6575
  wm,
@@ -6600,7 +6600,7 @@ function Am() {
6600
6600
  return hr(zm);
6601
6601
  }
6602
6602
  const Om = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), jn = { randomUUID: Om };
6603
- function $e(e, t, r) {
6603
+ function Oe(e, t, r) {
6604
6604
  if (jn.randomUUID && !e)
6605
6605
  return jn.randomUUID();
6606
6606
  e = e || {};
@@ -6610,23 +6610,23 @@ function $e(e, t, r) {
6610
6610
  return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Nm(n);
6611
6611
  }
6612
6612
  let fr = null, gr = null;
6613
- const Na = async () => (fr || (fr = import(
6613
+ const Ca = async () => (fr || (fr = import(
6614
6614
  /* webpackChunkName: "toast-react-toastify" */
6615
6615
  "./index.BwP0kG4H.js"
6616
- )), fr), za = async () => (gr || (gr = import(
6616
+ )), fr), Na = async () => (gr || (gr = import(
6617
6617
  /* webpackChunkName: "toast-utilities" */
6618
- "./index.BgObOSYj.js"
6618
+ "./index.DtjS4202.js"
6619
6619
  ).then((e) => e.utilities)), gr), $m = async () => {
6620
6620
  try {
6621
- await Promise.all([Na(), za()]);
6621
+ await Promise.all([Ca(), Na()]);
6622
6622
  } catch {
6623
6623
  }
6624
- }, Aa = async (e, t = "success", r) => {
6624
+ }, za = async (e, t = "success", r) => {
6625
6625
  try {
6626
6626
  window.dispatchEvent(new CustomEvent("toast-request"));
6627
6627
  const [{ toast: n, Slide: o }, { toastOptions: a }] = await Promise.all([
6628
- Na(),
6629
- za()
6628
+ Ca(),
6629
+ Na()
6630
6630
  ]), i = a({
6631
6631
  ...r,
6632
6632
  transition: o
@@ -6637,7 +6637,7 @@ const Na = async () => (fr || (fr = import(
6637
6637
  }, 100);
6638
6638
  } catch {
6639
6639
  }
6640
- }, Yt = (e, t) => Aa(e, "success", t), xf = (e, t) => Aa(e, "error", t), ct = "FOOTER_BOTTOM", Xt = "FOOTER_TOP", Pt = "APP_SET_FOOTER_POSITION", Oa = "APP_SET_FOOTER_HEIGHT", Mm = (e, t) => {
6640
+ }, Yt = (e, t) => za(e, "success", t), Tf = (e, t) => za(e, "error", t), ct = "FOOTER_BOTTOM", Xt = "FOOTER_TOP", Pt = "APP_SET_FOOTER_POSITION", Aa = "APP_SET_FOOTER_HEIGHT", Mm = (e, t) => {
6641
6641
  switch (t.type) {
6642
6642
  case Pt:
6643
6643
  return {
@@ -6645,7 +6645,7 @@ const Na = async () => (fr || (fr = import(
6645
6645
  footerPosition: t.payload.footerPosition,
6646
6646
  footerOffset: t.payload.footerOffset
6647
6647
  };
6648
- case Oa:
6648
+ case Aa:
6649
6649
  return {
6650
6650
  ...e,
6651
6651
  footerHeight: t.payload.footerHeight
@@ -6653,9 +6653,9 @@ const Na = async () => (fr || (fr = import(
6653
6653
  default:
6654
6654
  return e;
6655
6655
  }
6656
- }, Ke = "CHAT_SET_STATUS", $a = "CHAT_SET_USAGE", et = "CHAT_SET_ATTACHMENTS", Ma = "CHAT_SET_PROVIDER", je = "CHAT_RESET", Rm = (e, t) => {
6656
+ }, Qe = "CHAT_SET_STATUS", Oa = "CHAT_SET_USAGE", et = "CHAT_SET_ATTACHMENTS", $a = "CHAT_SET_PROVIDER", je = "CHAT_RESET", Rm = (e, t) => {
6657
6657
  switch (t.type) {
6658
- case $a:
6658
+ case Oa:
6659
6659
  return {
6660
6660
  ...e,
6661
6661
  tokenUsage: e.tokenUsage + t.payload.tokenUsage
@@ -6665,7 +6665,7 @@ const Na = async () => (fr || (fr = import(
6665
6665
  ...e,
6666
6666
  attachments: t.payload.attachments
6667
6667
  };
6668
- case Ke: {
6668
+ case Qe: {
6669
6669
  let r = !1, n = !1, o = !1, a = !1, i = "", s = 0, l = e.tokenUsage;
6670
6670
  return typeof t?.payload?.loading == "boolean" ? o = t.payload.loading : typeof e.loading == "boolean" && (o = e.loading), typeof t?.payload?.streaming == "boolean" ? n = t.payload.streaming : typeof e.streaming == "boolean" && (n = e.streaming), typeof t?.payload?.restoring == "boolean" ? (r = t.payload.restoring, i = t.payload.restoredModel || "", s = t.payload.restoredUsage || 0, r && (l = s)) : typeof e.restoring == "boolean" && (r = e.restoring, i = e.restoredModel || "", s = e.restoredUsage || 0), typeof t?.payload?.aborted == "boolean" ? a = t.payload.aborted : typeof e.aborted == "boolean" && (a = e.aborted), (n || o) && (r = !1, i = "", s = 0, a = !1), {
6671
6671
  ...e,
@@ -6681,7 +6681,7 @@ const Na = async () => (fr || (fr = import(
6681
6681
  lastStreamingTimestamp: n ? Date.now() : e.lastStreamingTimestamp
6682
6682
  };
6683
6683
  }
6684
- case Ma:
6684
+ case $a:
6685
6685
  return {
6686
6686
  ...e,
6687
6687
  provider: t.payload.provider
@@ -6707,14 +6707,14 @@ const Na = async () => (fr || (fr = import(
6707
6707
  }
6708
6708
  }, Pm = (e, t) => {
6709
6709
  switch (t?.type) {
6710
- case es:
6710
+ case Ka:
6711
6711
  return {
6712
6712
  searchString: t.payload.searchString,
6713
6713
  sortedCell: e.sortedCell,
6714
6714
  sortDirection: e.sortDirection
6715
6715
  };
6716
6716
  case Qa: {
6717
- const r = t.payload.sortDirection, n = r === Qe.ASC || r === Qe.DESC ? r : Qe.DESC;
6717
+ const r = t.payload.sortDirection, n = r === Ke.ASC || r === Ke.DESC ? r : Ke.DESC;
6718
6718
  return {
6719
6719
  searchString: e.searchString,
6720
6720
  sortedCell: t.payload.sortedCell,
@@ -6763,25 +6763,25 @@ function Lm() {
6763
6763
  }
6764
6764
  var Um = /* @__PURE__ */ Lm();
6765
6765
  const Bm = /* @__PURE__ */ Dm(Um);
6766
- var Ra = (e, t, r) => {
6766
+ var Ma = (e, t, r) => {
6767
6767
  if (!t.has(e))
6768
6768
  throw TypeError("Cannot " + r);
6769
- }, F = (e, t, r) => (Ra(e, t, "read from private field"), r ? r.call(e) : t.get(e)), ye = (e, t, r) => {
6769
+ }, F = (e, t, r) => (Ma(e, t, "read from private field"), r ? r.call(e) : t.get(e)), ye = (e, t, r) => {
6770
6770
  if (t.has(e))
6771
6771
  throw TypeError("Cannot add the same private member more than once");
6772
6772
  t instanceof WeakSet ? t.add(e) : t.set(e, r);
6773
- }, Ce = (e, t, r, n) => (Ra(e, t, "write to private field"), t.set(e, r), r);
6773
+ }, xe = (e, t, r, n) => (Ma(e, t, "write to private field"), t.set(e, r), r);
6774
6774
  function jm(e, t) {
6775
6775
  return t != null ? Bm(e, t) : e;
6776
6776
  }
6777
6777
  var pe, Zt, Dt, ot, at, st, Je, zr, Ar, Vm = class {
6778
6778
  constructor(e = []) {
6779
6779
  ye(this, pe, void 0), ye(this, Zt, "ready"), ye(this, Dt, void 0), ye(this, ot, /* @__PURE__ */ new Set()), ye(this, at, /* @__PURE__ */ new Set()), ye(this, st, /* @__PURE__ */ new Set()), this.pushMessage = (t) => {
6780
- Ce(this, pe, F(this, pe).concat(t)), F(this, Je).call(this);
6780
+ xe(this, pe, F(this, pe).concat(t)), F(this, Je).call(this);
6781
6781
  }, this.popMessage = () => {
6782
- Ce(this, pe, F(this, pe).slice(0, -1)), F(this, Je).call(this);
6782
+ xe(this, pe, F(this, pe).slice(0, -1)), F(this, Je).call(this);
6783
6783
  }, this.replaceMessage = (t, r) => {
6784
- Ce(this, pe, [
6784
+ xe(this, pe, [
6785
6785
  ...F(this, pe).slice(0, t),
6786
6786
  // We deep clone the message here to ensure the new React Compiler (currently in RC) detects deeply nested parts/metadata changes:
6787
6787
  this.snapshot(r),
@@ -6802,25 +6802,25 @@ var pe, Zt, Dt, ot, at, st, Je, zr, Ar, Vm = class {
6802
6802
  F(this, at).forEach((t) => t());
6803
6803
  }), ye(this, Ar, () => {
6804
6804
  F(this, st).forEach((t) => t());
6805
- }), Ce(this, pe, e);
6805
+ }), xe(this, pe, e);
6806
6806
  }
6807
6807
  get status() {
6808
6808
  return F(this, Zt);
6809
6809
  }
6810
6810
  set status(e) {
6811
- Ce(this, Zt, e), F(this, zr).call(this);
6811
+ xe(this, Zt, e), F(this, zr).call(this);
6812
6812
  }
6813
6813
  get error() {
6814
6814
  return F(this, Dt);
6815
6815
  }
6816
6816
  set error(e) {
6817
- Ce(this, Dt, e), F(this, Ar).call(this);
6817
+ xe(this, Dt, e), F(this, Ar).call(this);
6818
6818
  }
6819
6819
  get messages() {
6820
6820
  return F(this, pe);
6821
6821
  }
6822
6822
  set messages(e) {
6823
- Ce(this, pe, [...e]), F(this, Je).call(this);
6823
+ xe(this, pe, [...e]), F(this, Je).call(this);
6824
6824
  }
6825
6825
  };
6826
6826
  pe = /* @__PURE__ */ new WeakMap();
@@ -6835,7 +6835,7 @@ Ar = /* @__PURE__ */ new WeakMap();
6835
6835
  var Ge, Fn = class extends _m {
6836
6836
  constructor({ messages: e, ...t }) {
6837
6837
  const r = new Vm(e);
6838
- super({ ...t, state: r }), ye(this, Ge, void 0), this["~registerMessagesCallback"] = (n, o) => F(this, Ge)["~registerMessagesCallback"](n, o), this["~registerStatusCallback"] = (n) => F(this, Ge)["~registerStatusCallback"](n), this["~registerErrorCallback"] = (n) => F(this, Ge)["~registerErrorCallback"](n), Ce(this, Ge, r);
6838
+ super({ ...t, state: r }), ye(this, Ge, void 0), this["~registerMessagesCallback"] = (n, o) => F(this, Ge)["~registerMessagesCallback"](n, o), this["~registerStatusCallback"] = (n) => F(this, Ge)["~registerStatusCallback"](n), this["~registerErrorCallback"] = (n) => F(this, Ge)["~registerErrorCallback"](n), xe(this, Ge, r);
6839
6839
  }
6840
6840
  };
6841
6841
  Ge = /* @__PURE__ */ new WeakMap();
@@ -6871,7 +6871,7 @@ function Fm({
6871
6871
  },
6872
6872
  [n]
6873
6873
  );
6874
- return O(() => {
6874
+ return $(() => {
6875
6875
  t && n.current.resumeStream();
6876
6876
  }, [t, n]), {
6877
6877
  id: n.current.id,
@@ -6892,15 +6892,15 @@ const Hn = () => ({
6892
6892
  onError: /* @__PURE__ */ new Set(),
6893
6893
  onData: /* @__PURE__ */ new Set(),
6894
6894
  onToolCall: /* @__PURE__ */ new Set()
6895
- }), Pa = lo(null);
6895
+ }), Ra = As(null);
6896
6896
  function Ve(e = {}) {
6897
- const t = te(Pa);
6897
+ const t = te(Ra);
6898
6898
  if (!t)
6899
6899
  throw new Error("useAiChat must be used within a AiChatProvider");
6900
6900
  const r = J(e);
6901
- return O(() => {
6901
+ return $(() => {
6902
6902
  r.current = e;
6903
- }, [e]), O(() => {
6903
+ }, [e]), $(() => {
6904
6904
  const { onFinish: n, onError: o, onData: a, onToolCall: i } = r.current;
6905
6905
  return n && t.handlers.onFinish.add(n), o && t.handlers.onError.add(o), a && t.handlers.onData.add(a), i && t.handlers.onToolCall.add(i), () => {
6906
6906
  n && t.handlers.onFinish.delete(n), o && t.handlers.onError.delete(o), a && t.handlers.onData.delete(a), i && t.handlers.onToolCall.delete(i);
@@ -6915,8 +6915,8 @@ function Hm({
6915
6915
  children: e,
6916
6916
  value: t
6917
6917
  }) {
6918
- const r = J(Hn()), [n, o] = M("");
6919
- O(() => {
6918
+ const r = J(Hn()), [n, o] = R("");
6919
+ $(() => {
6920
6920
  r.current = Hn();
6921
6921
  }, [t]);
6922
6922
  const a = U((p) => {
@@ -6945,7 +6945,7 @@ function Hm({
6945
6945
  experimental_throttle: t.experimental_throttle
6946
6946
  });
6947
6947
  return /* @__PURE__ */ u(
6948
- Pa.Provider,
6948
+ Ra.Provider,
6949
6949
  {
6950
6950
  value: {
6951
6951
  chat: c,
@@ -6962,8 +6962,8 @@ const Jn = ({
6962
6962
  containerId: e,
6963
6963
  ...t
6964
6964
  }) => {
6965
- const [r, n] = M(xt);
6966
- return O(() => {
6965
+ const [r, n] = R(xt);
6966
+ return $(() => {
6967
6967
  if (!xt) {
6968
6968
  const o = async () => {
6969
6969
  try {
@@ -6983,36 +6983,11 @@ const Jn = ({
6983
6983
  };
6984
6984
  }
6985
6985
  }, []), r && yr ? /* @__PURE__ */ u(yr, { containerId: e, ...t }) : null;
6986
- }, Jm = () => {
6987
- const [e, t] = M(!1), [r, n] = M(!1);
6988
- O(() => {
6989
- if (!Ee() || !window.visualViewport)
6990
- return;
6991
- const i = window.visualViewport, s = window.innerHeight, l = 150, c = () => {
6992
- const d = s - i.height > l;
6993
- t(d);
6994
- };
6995
- return i.addEventListener("resize", c), i.addEventListener("scroll", c), () => {
6996
- i.removeEventListener("resize", c), i.removeEventListener("scroll", c);
6997
- };
6998
- }, []);
6999
- const o = (i) => {
7000
- n(i);
7001
- }, a = Ee() && r && e;
7002
- return {
7003
- isVirtualKeyboardVisible: e,
7004
- isInputFocused: r,
7005
- isVirtualKeyboardActive: a,
7006
- setInputFocus: o
7007
- };
7008
- }, Gm = lo(void 0), Wm = ({ children: e }) => {
7009
- const t = Jm();
7010
- return /* @__PURE__ */ u(Gm.Provider, { value: t, children: e });
7011
- }, qm = "z-20", Ym = "z-10", Wr = tt.createContext({
6986
+ }, Jm = "z-20", Gm = "z-10", Wr = tt.createContext({
7012
6987
  state: {
7013
6988
  searchString: "",
7014
6989
  sortedCell: "",
7015
- sortDirection: Qe.DESC
6990
+ sortDirection: Ke.DESC
7016
6991
  },
7017
6992
  dispatch: () => {
7018
6993
  }
@@ -7022,7 +6997,7 @@ const Jn = ({
7022
6997
  }
7023
6998
  }), ve = tt.createContext({
7024
6999
  state: {
7025
- provider: ts,
7000
+ provider: es,
7026
7001
  privateChat: !1,
7027
7002
  reasoning: !1,
7028
7003
  streaming: !1,
@@ -7048,42 +7023,42 @@ const Jn = ({
7048
7023
  },
7049
7024
  dispatch: () => {
7050
7025
  }
7051
- }), Xm = "av-tooltip", Km = "av-tooltip-arrow", Ct = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Qm = () => $("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), Gn = ({
7026
+ }), Wm = "av-tooltip", qm = "av-tooltip-arrow", Ct = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ym = () => O("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), Gn = ({
7052
7027
  mode: e
7053
- }) => $({
7028
+ }) => O({
7054
7029
  "bg-surface-darker": e === "dark" || e === "system",
7055
7030
  "bg-surface-light": e === "light" || e === "alt-system",
7056
7031
  "dark:bg-surface-light": e === "system",
7057
7032
  "dark:bg-surface-darker": e === "alt-system"
7058
- }), eh = ({
7033
+ }), Xm = ({
7059
7034
  mode: e
7060
- }) => $({
7035
+ }) => O({
7061
7036
  "text-copy-light": e === "dark" || e === "system",
7062
7037
  "text-copy-dark": e === "light" || e === "alt-system",
7063
7038
  "dark:text-copy-dark": e === "system",
7064
7039
  "dark:text-copy-light": e === "alt-system"
7065
- }), th = () => $("absolute", "size-2", "transform rotate-45"), rh = ({
7040
+ }), Qm = () => O("absolute", "size-2", "transform rotate-45"), Km = ({
7066
7041
  mode: e,
7067
7042
  className: t,
7068
7043
  tooltipClassName: r,
7069
7044
  arrowClassName: n
7070
7045
  }) => {
7071
- const o = $("relative inline-block", t), a = $(
7072
- Xm,
7073
- Qm(),
7046
+ const o = O("relative inline-block", t), a = O(
7047
+ Wm,
7048
+ Ym(),
7074
7049
  Gn({ mode: e }),
7075
- eh({ mode: e }),
7050
+ Xm({ mode: e }),
7076
7051
  r
7077
- ), i = $(
7078
- Km,
7079
- th(),
7052
+ ), i = O(
7053
+ qm,
7054
+ Qm(),
7080
7055
  Gn({ mode: e }),
7081
7056
  n
7082
7057
  );
7083
7058
  return { tooltip: a, arrow: i, wrapper: o };
7084
- }, nh = ({ delay: e = 300 }) => ({
7059
+ }, eh = ({ delay: e = 300 }) => ({
7085
7060
  animation: `av-tooltip-fade-in ${e}ms ease-in-out`
7086
- }), oh = 5e3, Se = ({
7061
+ }), th = 5e3, Te = ({
7087
7062
  trigger: e,
7088
7063
  label: t,
7089
7064
  placement: r = "top",
@@ -7095,14 +7070,14 @@ const Jn = ({
7095
7070
  }) => {
7096
7071
  const l = js(() => {
7097
7072
  h.stop(), m(!1);
7098
- }), c = J(null), p = J(null), [d, g] = M(!1), [f, m] = M(!1), h = Gs(() => {
7073
+ }), c = J(null), p = J(null), [d, g] = R(!1), [f, m] = R(!1), h = Gs(() => {
7099
7074
  m(!1);
7100
- }, oh), v = rh({
7075
+ }, th), v = Km({
7101
7076
  mode: n,
7102
7077
  className: a,
7103
7078
  tooltipClassName: i,
7104
7079
  arrowClassName: s
7105
- }), I = nh({ delay: o }), b = U(async () => {
7080
+ }), I = eh({ delay: o }), b = U(async () => {
7106
7081
  if (l.current && c.current && p.current) {
7107
7082
  const {
7108
7083
  x: z,
@@ -7112,12 +7087,12 @@ const Jn = ({
7112
7087
  } = await Os(l.current, c.current, {
7113
7088
  placement: r,
7114
7089
  middleware: [
7115
- mo(10),
7116
- ho({
7090
+ po(10),
7091
+ mo({
7117
7092
  crossAxis: r.includes("-"),
7118
7093
  fallbackAxisSideDirection: "start"
7119
7094
  }),
7120
- fo({ padding: 5 }),
7095
+ ho({ padding: 5 }),
7121
7096
  $s({ element: p.current })
7122
7097
  ]
7123
7098
  });
@@ -7141,7 +7116,7 @@ const Jn = ({
7141
7116
  });
7142
7117
  }
7143
7118
  }, [r, I, l]);
7144
- O(() => {
7119
+ $(() => {
7145
7120
  (async () => d && await b())();
7146
7121
  }, [b, d]);
7147
7122
  const E = () => {
@@ -7190,11 +7165,11 @@ try {
7190
7165
  });
7191
7166
  } catch {
7192
7167
  }
7193
- const ah = ({
7168
+ const rh = ({
7194
7169
  className: e,
7195
7170
  onClick: t
7196
7171
  }) => /* @__PURE__ */ u(
7197
- Se,
7172
+ Te,
7198
7173
  {
7199
7174
  label: "Attach files",
7200
7175
  mode: "light",
@@ -7209,29 +7184,29 @@ const ah = ({
7209
7184
  onClick: t,
7210
7185
  noBorder: !0,
7211
7186
  noBackground: !0,
7212
- children: /* @__PURE__ */ u(Qs, { size: _e, monotone: !0 })
7187
+ children: /* @__PURE__ */ u(Ks, { size: _e, monotone: !0 })
7213
7188
  }
7214
7189
  )
7215
7190
  }
7216
7191
  );
7217
- function Za(e, t) {
7218
- O(() => {
7192
+ function Pa(e, t) {
7193
+ $(() => {
7219
7194
  if (Ut() && typeof window < "u")
7220
7195
  return window.__VERSINI_CALLISTO_TAURI_EVENTS__ && (window.__VERSINI_CALLISTO_TAURI_EVENTS__[e] = t), () => {
7221
7196
  window.__VERSINI_CALLISTO_TAURI_EVENTS__ && (window.__VERSINI_CALLISTO_TAURI_EVENTS__[e] = null);
7222
7197
  };
7223
7198
  }, [e, t]);
7224
7199
  }
7225
- const sh = ({
7200
+ const nh = ({
7226
7201
  className: e
7227
7202
  }) => {
7228
- const { getAccessToken: t } = Me(), {
7203
+ const { getAccessToken: t } = $e(), {
7229
7204
  state: { streaming: r, loading: n },
7230
7205
  dispatch: o,
7231
7206
  setChatId: a,
7232
7207
  setInitialMessages: i
7233
7208
  } = te(ve), { id: s, setInput: l, stop: c } = Ve(), p = J(null), d = J(!1), g = U(() => {
7234
- a($e()), i([]), l(""), o({
7209
+ a(Oe()), i([]), l(""), o({
7235
7210
  type: je,
7236
7211
  payload: {
7237
7212
  privateChat: !1,
@@ -7244,7 +7219,7 @@ const sh = ({
7244
7219
  }
7245
7220
  });
7246
7221
  }, [a, i, l, o]);
7247
- Za("newChat", g), Pr(
7222
+ Pa("newChat", g), Pr(
7248
7223
  [
7249
7224
  [
7250
7225
  "mod+N",
@@ -7268,7 +7243,7 @@ const sh = ({
7268
7243
  );
7269
7244
  const f = async (h) => {
7270
7245
  h.preventDefault(), c(), o({
7271
- type: Ke,
7246
+ type: Qe,
7272
7247
  payload: {
7273
7248
  aborted: !0,
7274
7249
  streaming: !1,
@@ -7291,10 +7266,10 @@ const sh = ({
7291
7266
  }, m = (h) => {
7292
7267
  h.preventDefault(), g();
7293
7268
  };
7294
- return O(() => {
7295
- Ee() || ((r === !0 || n === !0) && !d.current && p.current && (d.current = !0, p.current.focus()), r === !1 && d.current && (d.current = !1));
7269
+ return $(() => {
7270
+ Le() || ((r === !0 || n === !0) && !d.current && p.current && (d.current = !0, p.current.focus()), r === !1 && d.current && (d.current = !1));
7296
7271
  }, [r, n]), /* @__PURE__ */ u(
7297
- Se,
7272
+ Te,
7298
7273
  {
7299
7274
  label: "New Chat",
7300
7275
  mode: "light",
@@ -7316,9 +7291,9 @@ const sh = ({
7316
7291
  }
7317
7292
  );
7318
7293
  }, Or = (e) => {
7319
- const { check: t } = rs();
7294
+ const { check: t } = ts();
7320
7295
  return t(e);
7321
- }, Wn = "av-messagebox", Nt = "av-panel", ih = ({
7296
+ }, Wn = "av-messagebox", Nt = "av-panel", oh = ({
7322
7297
  children: e,
7323
7298
  fill: t,
7324
7299
  viewBox: r,
@@ -7329,7 +7304,7 @@ const sh = ({
7329
7304
  semantic: s = !1,
7330
7305
  ...l
7331
7306
  }) => {
7332
- const c = $(a, n);
7307
+ const c = O(a, n);
7333
7308
  return /* @__PURE__ */ k(
7334
7309
  "svg",
7335
7310
  {
@@ -7361,14 +7336,14 @@ try {
7361
7336
  });
7362
7337
  } catch {
7363
7338
  }
7364
- const ch = ({
7339
+ const ah = ({
7365
7340
  className: e,
7366
7341
  viewBox: t,
7367
7342
  title: r,
7368
7343
  monotone: n,
7369
7344
  ...o
7370
7345
  }) => /* @__PURE__ */ u(
7371
- ih,
7346
+ oh,
7372
7347
  {
7373
7348
  defaultViewBox: "0 0 384 512",
7374
7349
  size: "size-5",
@@ -7398,21 +7373,21 @@ try {
7398
7373
  });
7399
7374
  } catch {
7400
7375
  }
7401
- const Da = ae.createContext(null);
7402
- function lh({
7376
+ const Za = ae.createContext(null);
7377
+ function sh({
7403
7378
  initialOpen: e = !1,
7404
7379
  open: t,
7405
7380
  onOpenChange: r
7406
7381
  } = {}) {
7407
- const [n, o] = ae.useState(e), [a, i] = ae.useState(), [s, l] = ae.useState(), c = t ?? n, p = r ?? o, d = yo({
7382
+ const [n, o] = ae.useState(e), [a, i] = ae.useState(), [s, l] = ae.useState(), c = t ?? n, p = r ?? o, d = vo({
7408
7383
  open: c,
7409
7384
  onOpenChange: p
7410
- }), g = d.context, f = _o(g, {
7385
+ }), g = d.context, f = yo(g, {
7411
7386
  enabled: t == null
7412
- }), m = bo(g, {
7387
+ }), m = _o(g, {
7413
7388
  outsidePress: !1,
7414
7389
  outsidePressEvent: "mousedown"
7415
- }), h = wo(g), v = Io([f, m, h]);
7390
+ }), h = bo(g), v = wo([f, m, h]);
7416
7391
  return ae.useMemo(
7417
7392
  () => ({
7418
7393
  open: c,
@@ -7428,27 +7403,27 @@ function lh({
7428
7403
  );
7429
7404
  }
7430
7405
  const nr = () => {
7431
- const e = ae.useContext(Da);
7406
+ const e = ae.useContext(Za);
7432
7407
  if (e == null)
7433
7408
  throw new Error("Modal components must be wrapped in <Modal />");
7434
7409
  return e;
7435
7410
  };
7436
- function uh({
7411
+ function ih({
7437
7412
  children: e,
7438
7413
  ...t
7439
7414
  }) {
7440
- const r = lh(t);
7441
- return /* @__PURE__ */ u(Da.Provider, { value: r, children: e });
7415
+ const r = sh(t);
7416
+ return /* @__PURE__ */ u(Za.Provider, { value: r, children: e });
7442
7417
  }
7443
- const dh = ae.forwardRef(function(e, t) {
7418
+ const ch = ae.forwardRef(function(e, t) {
7444
7419
  const { context: r, ...n } = nr(), o = Rr([n.refs.setFloating, t]);
7445
7420
  if (!r.open)
7446
7421
  return null;
7447
- const { overlayBackground: a, ...i } = e, s = $("grid place-items-center", {
7422
+ const { overlayBackground: a, ...i } = e, s = O("grid place-items-center", {
7448
7423
  [`${a}`]: a,
7449
7424
  "bg-black sm:bg-black/[.8]": !a
7450
7425
  });
7451
- return /* @__PURE__ */ u(go, { children: /* @__PURE__ */ u(Ms, { className: s, lockScroll: !0, children: /* @__PURE__ */ u(vo, { context: r, children: /* @__PURE__ */ u(
7426
+ return /* @__PURE__ */ u(fo, { children: /* @__PURE__ */ u(Ms, { className: s, lockScroll: !0, children: /* @__PURE__ */ u(go, { context: r, children: /* @__PURE__ */ u(
7452
7427
  "div",
7453
7428
  {
7454
7429
  ref: o,
@@ -7458,13 +7433,13 @@ const dh = ae.forwardRef(function(e, t) {
7458
7433
  children: i.children
7459
7434
  }
7460
7435
  ) }) }) });
7461
- }), ph = ae.forwardRef(function({ children: e, ...t }, r) {
7462
- const { setLabelId: n } = nr(), o = uo();
7436
+ }), lh = ae.forwardRef(function({ children: e, ...t }, r) {
7437
+ const { setLabelId: n } = nr(), o = lo();
7463
7438
  return ae.useLayoutEffect(() => (n(o), () => n(void 0)), [o, n]), /* @__PURE__ */ u("h1", { ...t, ref: r, id: o, children: e });
7464
- }), mh = ae.forwardRef(function({ children: e, ...t }, r) {
7465
- const { setDescriptionId: n } = nr(), o = uo();
7439
+ }), uh = ae.forwardRef(function({ children: e, ...t }, r) {
7440
+ const { setDescriptionId: n } = nr(), o = lo();
7466
7441
  return ae.useLayoutEffect(() => (n(o), () => n(void 0)), [o, n]), /* @__PURE__ */ u("div", { ...t, ref: r, id: o, children: e });
7467
- }), hh = ae.forwardRef(function(e, t) {
7442
+ }), dh = ae.forwardRef(function(e, t) {
7468
7443
  const { setOpen: r } = nr(), { trigger: n, className: o, ...a } = e, i = ae.useCallback(() => r(!1), [r]);
7469
7444
  return /* @__PURE__ */ u("div", { className: o, children: ae.cloneElement(n, {
7470
7445
  ref: t,
@@ -7485,24 +7460,24 @@ try {
7485
7460
  });
7486
7461
  } catch {
7487
7462
  }
7488
- const De = "panel", zt = "messagebox", fh = ({
7463
+ const Ze = "panel", zt = "messagebox", ph = ({
7489
7464
  className: e,
7490
7465
  kind: t,
7491
7466
  borderMode: r,
7492
7467
  animation: n,
7493
7468
  maxWidth: o = "medium"
7494
7469
  }) => ({
7495
- main: $("prose prose-lighter flex flex-col bg-surface-dark", {
7470
+ main: O("prose prose-lighter flex flex-col bg-surface-dark", {
7496
7471
  "duration-200 ease-out": n,
7497
- [`${Nt} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === De,
7498
- [`${Nt} w-full sm:w-[95%] md:max-w-2xl`]: t === De && !e && o === "small",
7499
- [`${Nt} w-full sm:w-[95%] md:max-w-3xl`]: t === De && !e && o === "medium",
7500
- [`${Nt} w-full sm:w-[95%] md:max-w-4xl`]: t === De && !e && o === "large",
7472
+ [`${Nt} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === Ze,
7473
+ [`${Nt} w-full sm:w-[95%] md:max-w-2xl`]: t === Ze && !e && o === "small",
7474
+ [`${Nt} w-full sm:w-[95%] md:max-w-3xl`]: t === Ze && !e && o === "medium",
7475
+ [`${Nt} w-full sm:w-[95%] md:max-w-4xl`]: t === Ze && !e && o === "large",
7501
7476
  [`${Wn} rounded-lg border-2`]: t === zt,
7502
7477
  [`${Wn} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === zt && !e,
7503
7478
  [`${e}`]: !!e,
7504
- "sm:border-border-dark": r === "dark" && t === De,
7505
- "sm:border-border-accent": r === "light" && t === De,
7479
+ "sm:border-border-dark": r === "dark" && t === Ze,
7480
+ "sm:border-border-accent": r === "light" && t === Ze,
7506
7481
  "border-border-dark": r === "dark" && t === zt,
7507
7482
  "border-border-accent": r === "light" && t === zt
7508
7483
  }),
@@ -7510,33 +7485,33 @@ const De = "panel", zt = "messagebox", fh = ({
7510
7485
  footer: "flex grow flex-col sm:p-4 p-2",
7511
7486
  header: "sm:p-4 mb-0 p-2",
7512
7487
  close: "sm:p-4 p-2"
7513
- }), gh = "slide", qn = "fade", vh = ({
7488
+ }), mh = "slide", qn = "fade", hh = ({
7514
7489
  open: e,
7515
7490
  onOpenChange: t,
7516
7491
  title: r,
7517
7492
  children: n,
7518
7493
  footer: o,
7519
7494
  borderMode: a = "light",
7520
- kind: i = De,
7495
+ kind: i = Ze,
7521
7496
  className: s,
7522
7497
  animation: l = !1,
7523
- animationType: c = gh,
7498
+ animationType: c = mh,
7524
7499
  maxWidth: p = "medium"
7525
7500
  }) => {
7526
- const d = J(""), [g, f] = M(
7501
+ const d = J(""), [g, f] = R(
7527
7502
  l ? c === qn ? { opacity: 0 } : {
7528
7503
  transform: "translateY(-100vh)"
7529
7504
  } : {}
7530
- ), m = fh({
7505
+ ), m = ph({
7531
7506
  className: s,
7532
7507
  kind: i,
7533
7508
  borderMode: a,
7534
7509
  animation: l,
7535
7510
  maxWidth: p
7536
7511
  });
7537
- return O(() => (e && (d.current = document.title, document.title = `${r} | ${d.current}`), () => {
7512
+ return $(() => (e && (d.current = document.title, document.title = `${r} | ${d.current}`), () => {
7538
7513
  e && (document.title = d.current);
7539
- }), [r, e]), O(() => {
7514
+ }), [r, e]), $(() => {
7540
7515
  if (l && e) {
7541
7516
  f(
7542
7517
  l ? c === qn ? { opacity: 0 } : {
@@ -7552,10 +7527,10 @@ const De = "panel", zt = "messagebox", fh = ({
7552
7527
  }, 100);
7553
7528
  return () => clearTimeout(h);
7554
7529
  }
7555
- }, [e, l, c]), /* @__PURE__ */ u(Ne, { children: e && /* @__PURE__ */ u(uh, { open: e, onOpenChange: t, children: /* @__PURE__ */ k(dh, { className: m.main, style: g, children: [
7530
+ }, [e, l, c]), /* @__PURE__ */ u(Ce, { children: e && /* @__PURE__ */ u(ih, { open: e, onOpenChange: t, children: /* @__PURE__ */ k(ch, { className: m.main, style: g, children: [
7556
7531
  /* @__PURE__ */ k("div", { className: "flex flex-row-reverse items-center justify-between", children: [
7557
7532
  /* @__PURE__ */ u(
7558
- hh,
7533
+ dh,
7559
7534
  {
7560
7535
  className: m.close,
7561
7536
  trigger: /* @__PURE__ */ u(
@@ -7565,14 +7540,14 @@ const De = "panel", zt = "messagebox", fh = ({
7565
7540
  focusMode: "light",
7566
7541
  noBorder: !0,
7567
7542
  label: "Close",
7568
- children: /* @__PURE__ */ u(ch, { monotone: !0 })
7543
+ children: /* @__PURE__ */ u(ah, { monotone: !0 })
7569
7544
  }
7570
7545
  )
7571
7546
  }
7572
7547
  ),
7573
- /* @__PURE__ */ u(ph, { className: m.header, children: r })
7548
+ /* @__PURE__ */ u(lh, { className: m.header, children: r })
7574
7549
  ] }),
7575
- /* @__PURE__ */ u(mh, { className: m.content, children: n }),
7550
+ /* @__PURE__ */ u(uh, { className: m.content, children: n }),
7576
7551
  o && /* @__PURE__ */ u("div", { className: m.footer, children: o })
7577
7552
  ] }) }) });
7578
7553
  };
@@ -7589,7 +7564,7 @@ try {
7589
7564
  });
7590
7565
  } catch {
7591
7566
  }
7592
- const yh = "av-toggle", _h = ({ narrow: e }) => $(
7567
+ const fh = "av-toggle", gh = ({ narrow: e }) => O(
7593
7568
  "peer",
7594
7569
  "rounded-full",
7595
7570
  {
@@ -7598,9 +7573,9 @@ const yh = "av-toggle", _h = ({ narrow: e }) => $(
7598
7573
  },
7599
7574
  // Smooth background/border transition when toggling
7600
7575
  "transition-colors duration-300 ease-in-out motion-reduce:transition-none"
7601
- ), bh = ({
7576
+ ), vh = ({
7602
7577
  focusMode: e
7603
- }) => $(
7578
+ }) => O(
7604
7579
  "peer-focus:outline",
7605
7580
  "peer-focus:outline-2",
7606
7581
  "peer-focus:outline-offset-2",
@@ -7610,7 +7585,7 @@ const yh = "av-toggle", _h = ({ narrow: e }) => $(
7610
7585
  "peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
7611
7586
  "peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
7612
7587
  }
7613
- ), wh = ({ narrow: e }) => $(
7588
+ ), yh = ({ narrow: e }) => O(
7614
7589
  {
7615
7590
  "peer-checked:after:translate-x-full": !e,
7616
7591
  "peer-checked:after:translate-x-4": e
@@ -7620,7 +7595,7 @@ const yh = "av-toggle", _h = ({ narrow: e }) => $(
7620
7595
  // knob circle and border color when checked
7621
7596
  "peer-checked:after:bg-white",
7622
7597
  "peer-checked:after:border-white"
7623
- ), Ih = ({ narrow: e }) => $(
7598
+ ), _h = ({ narrow: e }) => O(
7624
7599
  "after:left-[2px]",
7625
7600
  "after:top-[2px]",
7626
7601
  "after:border",
@@ -7636,28 +7611,28 @@ const yh = "av-toggle", _h = ({ narrow: e }) => $(
7636
7611
  // Narrow toggle knob (oval)
7637
7612
  " after:h-4 after:w-7": e
7638
7613
  }
7639
- ), Eh = ({
7614
+ ), bh = ({
7640
7615
  mode: e,
7641
7616
  noBorder: t
7642
- }) => $({
7617
+ }) => O({
7643
7618
  border: !t,
7644
7619
  "border-border-medium bg-surface-medium": e === "light",
7645
7620
  "border-border-light bg-surface-darker": e === "dark",
7646
7621
  "border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
7647
7622
  "border-border-medium bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
7648
- }), Th = ({
7623
+ }), wh = ({
7649
7624
  mode: e,
7650
7625
  labelHidden: t
7651
- }) => t ? "sr-only" : $("ml-2 text-sm", {
7626
+ }) => t ? "sr-only" : O("ml-2 text-sm", {
7652
7627
  "text-copy-dark": e === "light",
7653
7628
  "text-copy-lighter": e === "dark",
7654
7629
  "text-copy-lighter dark:text-copy-dark": e === "alt-system",
7655
7630
  "text-copy-dark dark:text-copy-lighter": e === "system"
7656
- }), Sh = ({ className: e }) => $(
7657
- yh,
7631
+ }), Ih = ({ className: e }) => O(
7632
+ fh,
7658
7633
  "relative flex cursor-pointer items-center",
7659
7634
  e
7660
- ), kh = ({
7635
+ ), Eh = ({
7661
7636
  mode: e,
7662
7637
  focusMode: t,
7663
7638
  labelHidden: r,
@@ -7665,17 +7640,17 @@ const yh = "av-toggle", _h = ({ narrow: e }) => $(
7665
7640
  noBorder: o,
7666
7641
  narrow: a
7667
7642
  }) => ({
7668
- toggle: $(
7643
+ toggle: O(
7644
+ gh({ narrow: a }),
7645
+ bh({ mode: e, noBorder: o }),
7646
+ vh({ focusMode: t }),
7669
7647
  _h({ narrow: a }),
7670
- Eh({ mode: e, noBorder: o }),
7671
- bh({ focusMode: t }),
7672
- Ih({ narrow: a }),
7673
- wh({ narrow: a })
7648
+ yh({ narrow: a })
7674
7649
  ),
7675
- label: Th({ mode: e, labelHidden: r }),
7650
+ label: wh({ mode: e, labelHidden: r }),
7676
7651
  input: "peer sr-only",
7677
- wrapper: Sh({ className: n })
7678
- }), xh = ({
7652
+ wrapper: Ih({ className: n })
7653
+ }), Th = ({
7679
7654
  checked: e = !1,
7680
7655
  onChange: t,
7681
7656
  label: r,
@@ -7687,7 +7662,7 @@ const yh = "av-toggle", _h = ({ narrow: e }) => $(
7687
7662
  noBorder: l = !1,
7688
7663
  narrow: c = !1
7689
7664
  }) => {
7690
- const p = kh({
7665
+ const p = Eh({
7691
7666
  mode: a,
7692
7667
  focusMode: i,
7693
7668
  labelHidden: n,
@@ -7777,7 +7752,7 @@ const Ue = ({
7777
7752
  columnGap: 2,
7778
7753
  children: [
7779
7754
  /* @__PURE__ */ u(We, { span: "auto", children: /* @__PURE__ */ u(
7780
- xh,
7755
+ Th,
7781
7756
  {
7782
7757
  narrow: !0,
7783
7758
  mode: "dark",
@@ -7796,7 +7771,7 @@ const Ue = ({
7796
7771
  }
7797
7772
  ) : d;
7798
7773
  return /* @__PURE__ */ u(
7799
- vh,
7774
+ hh,
7800
7775
  {
7801
7776
  kind: "messagebox",
7802
7777
  open: e,
@@ -7806,7 +7781,7 @@ const Ue = ({
7806
7781
  children: n
7807
7782
  }
7808
7783
  );
7809
- }, Ch = ({
7784
+ }, Sh = ({
7810
7785
  className: e
7811
7786
  }) => {
7812
7787
  const {
@@ -7814,11 +7789,11 @@ const Ue = ({
7814
7789
  dispatch: n,
7815
7790
  setChatId: o,
7816
7791
  setInitialMessages: a
7817
- } = te(ve), [i, s] = M(!1), [l, c] = M(!1), [p, d] = M(!1), [g, f] = Ye({
7818
- key: qe + ns,
7792
+ } = te(ve), [i, s] = R(!1), [l, c] = R(!1), [p, d] = R(!1), [g, f] = Ye({
7793
+ key: qe + rs,
7819
7794
  initialValue: ""
7820
7795
  }), m = Or(wr.TOOL.MEMORIES), h = (I) => {
7821
- o($e()), a([]), n({
7796
+ o(Oe()), a([]), n({
7822
7797
  type: je,
7823
7798
  payload: {
7824
7799
  privateChat: !t
@@ -7830,7 +7805,7 @@ const Ue = ({
7830
7805
  }
7831
7806
  });
7832
7807
  };
7833
- return /* @__PURE__ */ k(Ne, { children: [
7808
+ return /* @__PURE__ */ k(Ce, { children: [
7834
7809
  p && /* @__PURE__ */ k(
7835
7810
  Ue,
7836
7811
  {
@@ -7875,7 +7850,7 @@ const Ue = ({
7875
7850
  }
7876
7851
  ),
7877
7852
  /* @__PURE__ */ u(
7878
- Se,
7853
+ Te,
7879
7854
  {
7880
7855
  label: "Private Chat",
7881
7856
  mode: "light",
@@ -7923,7 +7898,7 @@ const Ue = ({
7923
7898
  return t.displayName || t.name || "Component";
7924
7899
  }
7925
7900
  return "Element";
7926
- }, La = po(
7901
+ }, Da = uo(
7927
7902
  ({
7928
7903
  trigger: e,
7929
7904
  children: t,
@@ -7934,7 +7909,7 @@ const Ue = ({
7934
7909
  focusMode: i = "system",
7935
7910
  ...s
7936
7911
  }, l) => {
7937
- const [c, p] = M(!1), [d, g] = M(!1), [f, m] = M(null), h = J([]), v = J([]), I = te($r), b = Eo(), E = Ps(), _ = To(), { floatingStyles: P, refs: z, context: x } = yo({
7912
+ const [c, p] = R(!1), [d, g] = R(!1), [f, m] = R(null), h = J([]), v = J([]), I = te($r), b = Io(), E = Ps(), _ = Eo(), { floatingStyles: P, refs: z, context: x } = vo({
7938
7913
  nodeId: E,
7939
7914
  open: c,
7940
7915
  onOpenChange: (ce) => {
@@ -7942,13 +7917,13 @@ const Ue = ({
7942
7917
  },
7943
7918
  placement: n,
7944
7919
  strategy: "fixed",
7945
- middleware: [mo({ mainAxis: 10 }), ho(), fo()],
7920
+ middleware: [po({ mainAxis: 10 }), mo(), ho()],
7946
7921
  whileElementsMounted: Zs
7947
- }), A = _o(x, {
7922
+ }), A = yo(x, {
7948
7923
  event: "mousedown",
7949
7924
  toggle: !0,
7950
7925
  ignoreMouse: !1
7951
- }), ie = wo(x, { role: "menu" }), be = bo(x, { bubbles: !0 }), ke = Ds(x, {
7926
+ }), ie = bo(x, { role: "menu" }), be = _o(x, { bubbles: !0 }), Se = Ds(x, {
7952
7927
  listRef: h,
7953
7928
  activeIndex: f,
7954
7929
  nested: !1,
@@ -7958,7 +7933,7 @@ const Ue = ({
7958
7933
  listRef: v,
7959
7934
  onMatch: c ? m : void 0,
7960
7935
  activeIndex: f
7961
- }), { getReferenceProps: me, getFloatingProps: _t, getItemProps: bt } = Io([A, ie, be, ke, j]), Fe = Yn(e) === "Button" || Yn(e) === "ButtonIcon", ar = Fe ? {
7936
+ }), { getReferenceProps: me, getFloatingProps: _t, getItemProps: bt } = wo([A, ie, be, Se, j]), Fe = Yn(e) === "Button" || Yn(e) === "ButtonIcon", ar = Fe ? {
7962
7937
  noInternalClick: Fe,
7963
7938
  focusMode: i,
7964
7939
  mode: a
@@ -7977,7 +7952,7 @@ const Ue = ({
7977
7952
  )
7978
7953
  }
7979
7954
  );
7980
- return O(() => {
7955
+ return $(() => {
7981
7956
  if (!b)
7982
7957
  return;
7983
7958
  function ce() {
@@ -7986,7 +7961,7 @@ const Ue = ({
7986
7961
  return b.events.on("click", ce), () => {
7987
7962
  b.events.off("click", ce);
7988
7963
  };
7989
- }, [b, o]), O(() => {
7964
+ }, [b, o]), $(() => {
7990
7965
  c && b && b.events.emit("menuopen", { nodeId: E });
7991
7966
  }, [b, c, E]), /* @__PURE__ */ k(Us, { id: E, children: [
7992
7967
  wt,
@@ -8000,8 +7975,8 @@ const Ue = ({
8000
7975
  setHasFocusInside: g,
8001
7976
  isOpen: c
8002
7977
  },
8003
- children: /* @__PURE__ */ u(Bs, { elementsRef: h, labelsRef: v, children: c && /* @__PURE__ */ u(go, { children: /* @__PURE__ */ u(
8004
- vo,
7978
+ children: /* @__PURE__ */ u(Bs, { elementsRef: h, labelsRef: v, children: c && /* @__PURE__ */ u(fo, { children: /* @__PURE__ */ u(
7979
+ go,
8005
7980
  {
8006
7981
  context: x,
8007
7982
  modal: !1,
@@ -8023,10 +7998,10 @@ const Ue = ({
8023
7998
  )
8024
7999
  ] });
8025
8000
  }
8026
- ), or = po((e, t) => /* @__PURE__ */ u(Rs, { children: /* @__PURE__ */ u(La, { ...e, ref: t }) }));
8001
+ ), or = uo((e, t) => /* @__PURE__ */ u(Rs, { children: /* @__PURE__ */ u(Da, { ...e, ref: t }) }));
8027
8002
  or.displayName = "Menu";
8028
- La.displayName = "MenuComponent";
8029
- const Nh = ({
8003
+ Da.displayName = "MenuComponent";
8004
+ const kh = ({
8030
8005
  children: e,
8031
8006
  fill: t,
8032
8007
  viewBox: r,
@@ -8037,7 +8012,7 @@ const Nh = ({
8037
8012
  semantic: s = !1,
8038
8013
  ...l
8039
8014
  }) => {
8040
- const c = $(a, n);
8015
+ const c = O(a, n);
8041
8016
  return /* @__PURE__ */ k(
8042
8017
  "svg",
8043
8018
  {
@@ -8069,14 +8044,14 @@ try {
8069
8044
  });
8070
8045
  } catch {
8071
8046
  }
8072
- const zh = ({
8047
+ const xh = ({
8073
8048
  className: e,
8074
8049
  viewBox: t,
8075
8050
  title: r,
8076
8051
  monotone: n,
8077
8052
  ...o
8078
8053
  }) => /* @__PURE__ */ k(
8079
- Nh,
8054
+ kh,
8080
8055
  {
8081
8056
  defaultViewBox: "0 0 448 512",
8082
8057
  size: "size-5",
@@ -8121,7 +8096,7 @@ const Ie = ae.forwardRef(
8121
8096
  ...s
8122
8097
  }, l) => {
8123
8098
  let c = "";
8124
- const p = ae.useContext($r), d = To({ label: t ? null : e }), g = Eo(), f = Rr([d.ref, l]);
8099
+ const p = ae.useContext($r), d = Eo({ label: t ? null : e }), g = Io(), f = Rr([d.ref, l]);
8125
8100
  if (n && o)
8126
8101
  return /* @__PURE__ */ u(
8127
8102
  "div",
@@ -8136,7 +8111,7 @@ const Ie = ae.forwardRef(
8136
8111
  }
8137
8112
  );
8138
8113
  r && (c = "pl-2");
8139
- const m = $(
8114
+ const m = O(
8140
8115
  "items-center flex-row",
8141
8116
  "m-0 first:mt-0 mt-2 sm:mt-1 px-2 py-1 flex w-full rounded-md border border-transparent text-left text-base outline-hidden focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline disabled:cursor-not-allowed disabled:text-copy-medium",
8142
8117
  {
@@ -8161,7 +8136,7 @@ const Ie = ae.forwardRef(
8161
8136
  }
8162
8137
  }),
8163
8138
  children: [
8164
- i && /* @__PURE__ */ u(zh, { className: "mr-2", size: "size-4" }),
8139
+ i && /* @__PURE__ */ u(xh, { className: "mr-2", size: "size-4" }),
8165
8140
  r,
8166
8141
  e && /* @__PURE__ */ u("span", { className: c, children: e })
8167
8142
  ]
@@ -8170,14 +8145,14 @@ const Ie = ae.forwardRef(
8170
8145
  }
8171
8146
  );
8172
8147
  Ie.displayName = "MenuItem";
8173
- const Ah = ({ className: e, ...t }) => {
8174
- const r = $(e, "my-1 border-t border-border-medium");
8148
+ const Ch = ({ className: e, ...t }) => {
8149
+ const r = O(e, "my-1 border-t border-border-medium");
8175
8150
  return /* @__PURE__ */ u("div", { className: r, ...t });
8176
- }, Ua = ({
8151
+ }, La = ({
8177
8152
  className: e,
8178
8153
  ...t
8179
8154
  }) => {
8180
- const r = $(
8155
+ const r = O(
8181
8156
  e,
8182
8157
  "pt-1 mb-2 text-sm text-copy-dark border-b border-border-medium"
8183
8158
  );
@@ -8196,20 +8171,20 @@ try {
8196
8171
  });
8197
8172
  } catch {
8198
8173
  }
8199
- const Oh = (e) => {
8174
+ const Nh = (e) => {
8200
8175
  for (let t = 0; t < e.length; t++)
8201
8176
  if (e[t].enabled)
8202
8177
  return !0;
8203
8178
  return !1;
8204
- }, $h = ({
8179
+ }, zh = ({
8205
8180
  className: e,
8206
8181
  defaultPlacement: t = "top-start"
8207
8182
  }) => {
8208
- const { dispatch: r, setChatId: n, setInitialMessages: o } = te(ve), { dispatch: a } = te(qr), { getAccessToken: i, user: s } = Me(), { data: l, isSuccess: c } = Kt({
8183
+ const { dispatch: r, setChatId: n, setInitialMessages: o } = te(ve), { dispatch: a } = te(qr), { getAccessToken: i, user: s } = $e(), { data: l, isSuccess: c } = Qt({
8209
8184
  user: s?.username,
8210
8185
  getAccessToken: i
8211
8186
  }), p = (f, m, h) => {
8212
- f.preventDefault(), n($e()), o([]), r({
8187
+ f.preventDefault(), n(Oe()), o([]), r({
8213
8188
  type: je,
8214
8189
  payload: {
8215
8190
  privateChat: h
@@ -8220,7 +8195,7 @@ const Oh = (e) => {
8220
8195
  prompt: m
8221
8196
  }
8222
8197
  });
8223
- }, d = c && l && l.tags && Oh(l.tags), g = /* @__PURE__ */ k(
8198
+ }, d = c && l && l.tags && Nh(l.tags), g = /* @__PURE__ */ k(
8224
8199
  or,
8225
8200
  {
8226
8201
  mode: "dark",
@@ -8237,7 +8212,7 @@ const Oh = (e) => {
8237
8212
  ),
8238
8213
  defaultPlacement: t,
8239
8214
  children: [
8240
- /* @__PURE__ */ u(Ua, { children: "Prompts" }),
8215
+ /* @__PURE__ */ u(La, { children: "Prompts" }),
8241
8216
  d && l.tags.map((f) => {
8242
8217
  let m = null;
8243
8218
  switch (f.slot) {
@@ -8268,7 +8243,7 @@ const Oh = (e) => {
8268
8243
  }
8269
8244
  );
8270
8245
  return d ? /* @__PURE__ */ u(
8271
- Se,
8246
+ Te,
8272
8247
  {
8273
8248
  label: "Prompts",
8274
8249
  mode: "light",
@@ -8276,7 +8251,7 @@ const Oh = (e) => {
8276
8251
  trigger: g
8277
8252
  }
8278
8253
  ) : /* @__PURE__ */ u("div", { className: e, children: g });
8279
- }, Mh = ({
8254
+ }, Ah = ({
8280
8255
  className: e
8281
8256
  }) => {
8282
8257
  const {
@@ -8284,11 +8259,11 @@ const Oh = (e) => {
8284
8259
  dispatch: n,
8285
8260
  setChatId: o,
8286
8261
  setInitialMessages: a
8287
- } = te(ve), [i, s] = M(!1), [l, c] = M(!1), [p, d] = Ye({
8288
- key: qe + os,
8262
+ } = te(ve), [i, s] = R(!1), [l, c] = R(!1), [p, d] = Ye({
8263
+ key: qe + ns,
8289
8264
  initialValue: ""
8290
- }), [g, f] = M(!1), m = (v) => {
8291
- o($e()), a([]), n({
8265
+ }), [g, f] = R(!1), m = (v) => {
8266
+ o(Oe()), a([]), n({
8292
8267
  type: je,
8293
8268
  payload: {
8294
8269
  reasoning: !t
@@ -8300,7 +8275,7 @@ const Oh = (e) => {
8300
8275
  }
8301
8276
  });
8302
8277
  };
8303
- return /* @__PURE__ */ k(Ne, { children: [
8278
+ return /* @__PURE__ */ k(Ce, { children: [
8304
8279
  l && /* @__PURE__ */ u(
8305
8280
  Ue,
8306
8281
  {
@@ -8340,7 +8315,7 @@ const Oh = (e) => {
8340
8315
  }
8341
8316
  ),
8342
8317
  /* @__PURE__ */ u(
8343
- Se,
8318
+ Te,
8344
8319
  {
8345
8320
  label: "Reasoning Chat",
8346
8321
  mode: "light",
@@ -8366,10 +8341,10 @@ const Oh = (e) => {
8366
8341
  }
8367
8342
  )
8368
8343
  ] });
8369
- }, Rh = ({
8344
+ }, Oh = ({
8370
8345
  className: e
8371
8346
  }) => {
8372
- const { user: t, getAccessToken: r } = Me(), {
8347
+ const { user: t, getAccessToken: r } = $e(), {
8373
8348
  dispatch: n,
8374
8349
  state: { tokenUsage: o, provider: a, privateChat: i }
8375
8350
  } = te(ve), { messages: s, id: l } = Ve(), { state: c } = te(Wr), { refetch: p } = oo({
@@ -8379,7 +8354,7 @@ const Oh = (e) => {
8379
8354
  sortDirection: c.sortDirection,
8380
8355
  sortedCell: c.sortedCell,
8381
8356
  getAccessToken: r
8382
- }), [d, g] = M(!1), [f, m] = M(!1), h = async () => {
8357
+ }), [d, g] = R(!1), [f, m] = R(!1), h = async () => {
8383
8358
  try {
8384
8359
  if (l && s && a) {
8385
8360
  const I = s.filter((b) => b.parts && b.parts.length > 0 ? b.parts.some(
@@ -8390,9 +8365,9 @@ const Oh = (e) => {
8390
8365
  content: b.parts?.filter((E) => E.type === "text").map((E) => E.text).join("") || "",
8391
8366
  id: b.id
8392
8367
  }));
8393
- await as({
8368
+ await os({
8394
8369
  accessToken: await r(),
8395
- type: ss.SAVE_CHAT,
8370
+ type: as.SAVE_CHAT,
8396
8371
  params: {
8397
8372
  userId: t?.username || "",
8398
8373
  id: l,
@@ -8406,7 +8381,7 @@ const Oh = (e) => {
8406
8381
  privateChat: !1,
8407
8382
  preserveTokenUsage: !0
8408
8383
  }
8409
- }), p(), await Yt(is, {
8384
+ }), p(), await Yt(ss, {
8410
8385
  containerId: "toggle-save"
8411
8386
  });
8412
8387
  }
@@ -8415,9 +8390,9 @@ const Oh = (e) => {
8415
8390
  }, v = (I) => {
8416
8391
  I && I.preventDefault(), o > 0 ? m(!f) : h();
8417
8392
  };
8418
- return O(() => {
8393
+ return $(() => {
8419
8394
  i && s?.length > 0 ? g(!0) : g(!1);
8420
- }, [i, s]), /* @__PURE__ */ k(Ne, { children: [
8395
+ }, [i, s]), /* @__PURE__ */ k(Ce, { children: [
8421
8396
  f && /* @__PURE__ */ u(
8422
8397
  Ue,
8423
8398
  {
@@ -8433,7 +8408,7 @@ const Oh = (e) => {
8433
8408
  }
8434
8409
  ),
8435
8410
  d && /* @__PURE__ */ u(
8436
- Se,
8411
+ Te,
8437
8412
  {
8438
8413
  label: "Save Private Chat",
8439
8414
  mode: "light",
@@ -8454,14 +8429,14 @@ const Oh = (e) => {
8454
8429
  }
8455
8430
  )
8456
8431
  ] });
8457
- }, Ph = ({
8432
+ }, $h = ({
8458
8433
  className: e
8459
8434
  }) => {
8460
8435
  const {
8461
8436
  state: { loading: t, streaming: r }
8462
8437
  } = te(ve);
8463
8438
  return /* @__PURE__ */ u(
8464
- Se,
8439
+ Te,
8465
8440
  {
8466
8441
  label: "Send Message",
8467
8442
  mode: "light",
@@ -8482,7 +8457,7 @@ const Oh = (e) => {
8482
8457
  )
8483
8458
  }
8484
8459
  );
8485
- }, Zh = [".pdf", ".txt"], Dh = [
8460
+ }, Mh = [".pdf", ".txt"], Rh = [
8486
8461
  ".js",
8487
8462
  ".cjs",
8488
8463
  ".mjs",
@@ -8497,30 +8472,30 @@ const Oh = (e) => {
8497
8472
  ".json",
8498
8473
  ".md"
8499
8474
  ], _r = [
8500
- ...Zh,
8501
- ...Dh
8502
- ], Mr = 400 * 1024, Lh = "text/plain", Uh = () => $(
8475
+ ...Mh,
8476
+ ...Rh
8477
+ ], Mr = 400 * 1024, Ph = "text/plain", Zh = () => O(
8503
8478
  "relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
8504
- ), Xn = () => $("bg-surface-darker"), Bh = () => $("text-copy-lighter caret-copy-light"), jh = () => $(
8479
+ ), Xn = () => O("bg-surface-darker"), Dh = () => O("text-copy-lighter caret-copy-light"), Lh = () => O(
8505
8480
  "has-[.av-prompt-editable:focus]:outline",
8506
8481
  "has-[.av-prompt-editable:focus]:outline-2",
8507
8482
  "has-[.av-prompt-editable:focus]:outline-offset-2",
8508
8483
  "has-[.av-prompt-editable:focus]:outline-focus-light"
8509
- ), Vh = () => $(
8484
+ ), Uh = () => O(
8510
8485
  "peer",
8511
8486
  "text-base resize-none overflow-hidden w-full text-inherit outline-none",
8512
8487
  "h-6 pr-2 pl-4"
8513
- ), Fh = ({ className: e }) => {
8514
- const t = $(
8515
- cs,
8516
- Uh(),
8488
+ ), Bh = ({ className: e }) => {
8489
+ const t = O(
8490
+ is,
8491
+ Zh(),
8517
8492
  Xn(),
8518
- Bh(),
8519
- jh(),
8493
+ Dh(),
8494
+ Lh(),
8520
8495
  e
8521
- ), r = $(
8522
- ls,
8523
- Vh(),
8496
+ ), r = O(
8497
+ cs,
8498
+ Uh(),
8524
8499
  Xn()
8525
8500
  );
8526
8501
  return {
@@ -8532,15 +8507,15 @@ const Oh = (e) => {
8532
8507
  return "0 Bytes";
8533
8508
  const t = 1024, r = ["Bytes", "KB", "MB", "GB"], n = Math.floor(Math.log(e) / Math.log(t));
8534
8509
  return parseFloat((e / Math.pow(t, n)).toFixed(2)) + " " + r[n];
8535
- }, Ba = (e) => e.reduce((t, r) => t + r.size, 0), Hh = (e) => e.type ? e : new File(
8510
+ }, Ua = (e) => e.reduce((t, r) => t + r.size, 0), jh = (e) => e.type ? e : new File(
8536
8511
  [e],
8537
8512
  // Use the original file content
8538
8513
  e.name,
8539
8514
  {
8540
- type: Lh,
8515
+ type: Ph,
8541
8516
  lastModified: e.lastModified
8542
8517
  }
8543
- ), Jh = ({
8518
+ ), Vh = ({
8544
8519
  files: e,
8545
8520
  clearFile: t
8546
8521
  }) => e && e.length > 0 && /* @__PURE__ */ k("div", { className: "px-4 py-2", children: [
@@ -8574,15 +8549,15 @@ const Oh = (e) => {
8574
8549
  )) }),
8575
8550
  /* @__PURE__ */ k("div", { className: "text-xs text-gray-400 mt-1 pl-1", children: [
8576
8551
  "Total: ",
8577
- Lt(Ba(Array.from(e))),
8552
+ Lt(Ua(Array.from(e))),
8578
8553
  " /",
8579
8554
  " ",
8580
8555
  Lt(Mr)
8581
8556
  ] })
8582
- ] }), ja = 24, Gh = 500, Va = 2, Wh = 5, qh = ja * Va, Kn = Wh * ja, Yh = "ready", Xh = "streaming", Kh = "error", Qh = "submitted", At = (e) => {
8583
- e.current && (e.current.style.height = `${qh}px`);
8584
- }, ef = () => {
8585
- const { user: e, getAccessToken: t } = Me(), r = Or(wr.ADDON.ATTACHMENTS), n = Or(wr.ADDON.REASONING), [o, a] = M(null), [i, s] = M(!1), [l, c] = M(!1), {
8557
+ ] }), Ba = 24, Fh = 500, ja = 2, Hh = 5, Jh = Ba * ja, Qn = Hh * Ba, Gh = "ready", Wh = "streaming", qh = "error", Yh = "submitted", At = (e) => {
8558
+ e.current && (e.current.style.height = `${Jh}px`);
8559
+ }, Xh = () => {
8560
+ const { user: e, getAccessToken: t } = $e(), r = Or(wr.ADDON.ATTACHMENTS), n = Or(wr.ADDON.REASONING), [o, a] = R(null), [i, s] = R(!1), [l, c] = R(!1), {
8586
8561
  dispatch: p,
8587
8562
  state: {
8588
8563
  reasoning: d,
@@ -8600,28 +8575,28 @@ const Oh = (e) => {
8600
8575
  sortDirection: _.sortDirection,
8601
8576
  sortedCell: _.sortedCell,
8602
8577
  getAccessToken: t
8603
- }), { data: z } = Kt({
8578
+ }), { data: z } = Qt({
8604
8579
  user: e?.username,
8605
8580
  getAccessToken: t
8606
- }), x = J(null), A = J(null), ie = J(!1), be = J(0), ke = J(null), j = J(null), me = us(), _t = Fh({
8581
+ }), x = J(null), A = J(null), ie = J(!1), be = J(0), Se = J(null), j = J(null), me = ls(), _t = Bh({
8607
8582
  className: ""
8608
- }), { setMessages: bt, status: Fe, id: ar, sendMessage: wt, input: ce, setInput: Pe } = Ve({
8583
+ }), { setMessages: bt, status: Fe, id: ar, sendMessage: wt, input: ce, setInput: Re } = Ve({
8609
8584
  onFinish: (D) => {
8610
8585
  P();
8611
8586
  const ne = D.message?.metadata;
8612
8587
  ne?.tokenUsage && p({
8613
- type: $a,
8588
+ type: Oa,
8614
8589
  payload: {
8615
8590
  tokenUsage: ne.tokenUsage
8616
8591
  }
8617
8592
  });
8618
8593
  }
8619
- }), Ja = U(
8594
+ }), Ha = U(
8620
8595
  (D) => {
8621
- Pe(D.target.value);
8596
+ Re(D.target.value);
8622
8597
  },
8623
- [Pe]
8624
- ), Ga = U(
8598
+ [Re]
8599
+ ), Ja = U(
8625
8600
  (D, re) => {
8626
8601
  if (D.preventDefault(), ce.trim()) {
8627
8602
  const ne = {
@@ -8644,33 +8619,33 @@ const Oh = (e) => {
8644
8619
  headers: re?.headers,
8645
8620
  body: ne
8646
8621
  }
8647
- ), Pe("");
8622
+ ), Re("");
8648
8623
  }
8649
8624
  },
8650
- [ce, wt, Pe, v, I]
8651
- ), Kr = U(
8625
+ [ce, wt, Re, v, I]
8626
+ ), Qr = U(
8652
8627
  async (D) => {
8653
- D === Yh && p({
8654
- type: Ke,
8628
+ D === Gh && p({
8629
+ type: Qe,
8655
8630
  payload: {
8656
8631
  loading: !1,
8657
8632
  streaming: !1
8658
8633
  }
8659
- }), D === Qh && p({
8660
- type: Ke,
8634
+ }), D === Yh && p({
8635
+ type: Qe,
8661
8636
  payload: {
8662
8637
  loading: !0,
8663
8638
  streaming: !1
8664
8639
  }
8665
- }), D === Xh && p({
8666
- type: Ke,
8640
+ }), D === Wh && p({
8641
+ type: Qe,
8667
8642
  payload: {
8668
8643
  loading: !1,
8669
8644
  streaming: !0
8670
8645
  }
8671
- }), D === Kh && setTimeout(() => {
8646
+ }), D === qh && setTimeout(() => {
8672
8647
  f || (p({
8673
- type: Ke,
8648
+ type: Qe,
8674
8649
  payload: {
8675
8650
  loading: !1,
8676
8651
  streaming: !1
@@ -8678,18 +8653,18 @@ const Oh = (e) => {
8678
8653
  }), bt((re) => [
8679
8654
  ...re,
8680
8655
  {
8681
- id: $e(),
8656
+ id: Oe(),
8682
8657
  role: lt,
8683
- parts: [{ type: "text", text: ds }]
8658
+ parts: [{ type: "text", text: us }]
8684
8659
  }
8685
8660
  ]));
8686
8661
  }, 1e3);
8687
8662
  },
8688
8663
  [p, bt, f]
8689
8664
  );
8690
- O(() => {
8691
- Fe && Kr(Fe);
8692
- }, [Fe, Kr]), O(() => {
8665
+ $(() => {
8666
+ Fe && Qr(Fe);
8667
+ }, [Fe, Qr]), $(() => {
8693
8668
  z?.sendOnEnter !== void 0 && c(z.sendOnEnter);
8694
8669
  }, [z]);
8695
8670
  const sr = U(() => {
@@ -8697,36 +8672,36 @@ const Oh = (e) => {
8697
8672
  return;
8698
8673
  j.current.style.height = "auto";
8699
8674
  const D = j.current.scrollHeight;
8700
- if (D > Kn) {
8701
- j.current.style.height = `${Kn}px`, j.current.style.overflowY = "scroll";
8675
+ if (D > Qn) {
8676
+ j.current.style.height = `${Qn}px`, j.current.style.overflowY = "scroll";
8702
8677
  return;
8703
8678
  }
8704
8679
  j.current.style.height = `${D}px`, j.current.style.overflowY = "hidden";
8705
- }, []), Wa = (D) => {
8680
+ }, []), Ga = (D) => {
8706
8681
  if (D.preventDefault(), D.target.files && D.target.files.length > 0) {
8707
- const re = o ? Array.from(o) : [], ne = Array.from(D.target.files), xe = [...re];
8708
- let Ze = !1;
8682
+ const re = o ? Array.from(o) : [], ne = Array.from(D.target.files), ke = [...re];
8683
+ let Pe = !1;
8709
8684
  for (const we of ne) {
8710
8685
  const ir = "." + we.name.split(".").pop()?.toLowerCase();
8711
- _r.includes(ir) ? xe.some(
8686
+ _r.includes(ir) ? ke.some(
8712
8687
  (cr) => cr.name === we.name && cr.size === we.size && cr.lastModified === we.lastModified
8713
- ) || xe.push(we) : Ze = !0;
8688
+ ) || ke.push(we) : Pe = !0;
8714
8689
  }
8715
- if (A.current && (A.current.value = ""), Ba(xe) > Mr) {
8690
+ if (A.current && (A.current.value = ""), Ua(ke) > Mr) {
8716
8691
  x.current = `Total file size exceeds the limit of ${Lt(
8717
8692
  Mr
8718
8693
  )}.`, s(!0);
8719
8694
  return;
8720
8695
  }
8721
- if (Ze) {
8696
+ if (Pe) {
8722
8697
  x.current = `Only ${_r.join(
8723
8698
  ", "
8724
8699
  )} files are allowed.`, s(!0);
8725
8700
  return;
8726
8701
  }
8727
- if (xe.length > 0) {
8702
+ if (ke.length > 0) {
8728
8703
  const we = new DataTransfer();
8729
- xe.forEach((ir) => we.items.add(ir)), a(we.files), p({
8704
+ ke.forEach((ir) => we.items.add(ir)), a(we.files), p({
8730
8705
  type: et,
8731
8706
  payload: {
8732
8707
  attachments: we.files.length
@@ -8734,9 +8709,9 @@ const Oh = (e) => {
8734
8709
  });
8735
8710
  }
8736
8711
  }
8737
- }, qa = () => {
8712
+ }, Wa = () => {
8738
8713
  A.current && A.current.click();
8739
- }, Ya = (D) => {
8714
+ }, qa = (D) => {
8740
8715
  if (!o)
8741
8716
  return;
8742
8717
  const re = new DataTransfer();
@@ -8748,64 +8723,64 @@ const Oh = (e) => {
8748
8723
  attachments: re.files.length
8749
8724
  }
8750
8725
  }), A.current && (A.current.value = "");
8751
- }, Xa = U(() => {
8726
+ }, Ya = U(() => {
8752
8727
  A.current && (A.current.value = ""), a(null);
8753
- }, []), Qr = async (D) => {
8728
+ }, []), Kr = async (D) => {
8754
8729
  D.preventDefault(), At(j);
8755
8730
  const re = await t();
8756
8731
  let ne;
8757
8732
  if (o && o.length > 0) {
8758
- const xe = Array.from(o).map(
8759
- (It) => Hh(It)
8760
- ), Ze = new DataTransfer();
8761
- xe.forEach((It) => Ze.items.add(It)), ne = Ze.files;
8733
+ const ke = Array.from(o).map(
8734
+ (It) => jh(It)
8735
+ ), Pe = new DataTransfer();
8736
+ ke.forEach((It) => Pe.items.add(It)), ne = Pe.files;
8762
8737
  }
8763
- Ga(D, {
8738
+ Ja(D, {
8764
8739
  headers: {
8765
8740
  "Content-Type": "application/json",
8766
8741
  authorization: `Bearer ${re}`,
8767
- [ps]: ar
8742
+ [ds]: ar
8768
8743
  },
8769
8744
  body: {
8770
8745
  reasoning: d
8771
8746
  },
8772
8747
  experimental_attachments: ne
8773
- }), Xa();
8774
- }, Ka = (D) => {
8775
- sr(), Ja(D);
8748
+ }), Ya();
8749
+ }, Xa = (D) => {
8750
+ sr(), Ha(D);
8776
8751
  };
8777
8752
  return Pr([
8778
8753
  [
8779
8754
  "mod+K",
8780
8755
  () => {
8781
- j && j.current && !Ee() && j.current.focus();
8756
+ j && j.current && !Le() && j.current.focus();
8782
8757
  }
8783
8758
  ]
8784
- ]), O(() => {
8759
+ ]), $(() => {
8785
8760
  if (b.prompt !== "") {
8786
8761
  const D = b.prompt.endsWith(":") && !b.prompt.endsWith(": ") ? b.prompt + " " : b.prompt;
8787
8762
  D.indexOf(tn) !== -1 ? navigator.clipboard.readText().then((ne) => {
8788
- const Ze = ne.startsWith("http://") || ne.startsWith("https://") ? ne : `"""${ne}"""`;
8789
- Pe(D.replace(tn, Ze));
8790
- }) : Pe(D), !Ee() && j.current && j.current.focus(), E({
8763
+ const Pe = ne.startsWith("http://") || ne.startsWith("https://") ? ne : `"""${ne}"""`;
8764
+ Re(D.replace(tn, Pe));
8765
+ }) : Re(D), !Le() && j.current && j.current.focus(), E({
8791
8766
  type: to
8792
8767
  });
8793
8768
  }
8794
- }, [b, E, Pe]), O(() => {
8769
+ }, [b, E, Re]), $(() => {
8795
8770
  if (ie.current === !1) {
8796
8771
  ie.current = !0, !ce && At(j);
8797
8772
  return;
8798
8773
  }
8799
8774
  m > 0 && m !== be.current ? (be.current = m, setTimeout(() => {
8800
8775
  j.current && (!ce && At(j), j.current.focus());
8801
- }, Gh)) : g === !1 && !ce && (At(j), !Ee() && j.current && j.current.focus());
8802
- }, [m, g, ce]), O(() => {
8776
+ }, Fh)) : g === !1 && !ce && (At(j), !Le() && j.current && j.current.focus());
8777
+ }, [m, g, ce]), $(() => {
8803
8778
  b.lastTriggeredTimestamp && setTimeout(() => {
8804
8779
  sr();
8805
8780
  }, 100);
8806
- }, [b.lastTriggeredTimestamp, sr]), O(() => {
8781
+ }, [b.lastTriggeredTimestamp, sr]), $(() => {
8807
8782
  h === 0 && (A.current && (A.current.value = ""), a(null));
8808
- }, [h]), /* @__PURE__ */ k(Ne, { children: [
8783
+ }, [h]), /* @__PURE__ */ k(Ce, { children: [
8809
8784
  /* @__PURE__ */ u(
8810
8785
  Ue,
8811
8786
  {
@@ -8822,21 +8797,21 @@ const Oh = (e) => {
8822
8797
  children: /* @__PURE__ */ u("p", { className: "m-0", children: x.current })
8823
8798
  }
8824
8799
  ),
8825
- /* @__PURE__ */ u("div", { className: _t.wrapper, ref: ke, children: /* @__PURE__ */ k("form", { onSubmit: Qr, children: [
8800
+ /* @__PURE__ */ u("div", { className: _t.wrapper, ref: Se, children: /* @__PURE__ */ k("form", { onSubmit: Kr, children: [
8826
8801
  /* @__PURE__ */ u("div", { id: me, className: "sr-only", children: Ir() ? rn : l ? nn : on }),
8827
8802
  /* @__PURE__ */ k("div", { className: "relative", children: [
8828
8803
  /* @__PURE__ */ u(
8829
8804
  "textarea",
8830
8805
  {
8831
8806
  required: !0,
8832
- rows: Va,
8807
+ rows: ja,
8833
8808
  ref: j,
8834
8809
  placeholder: Ir() ? rn : l ? nn : on,
8835
8810
  translate: "no",
8836
- onChange: Ka,
8811
+ onChange: Xa,
8837
8812
  value: ce,
8838
8813
  onKeyDown: Hs([
8839
- [l ? "enter" : "mod+Enter", Qr]
8814
+ [l ? "enter" : "mod+Enter", Kr]
8840
8815
  ]),
8841
8816
  className: _t.textArea,
8842
8817
  "aria-labelledby": me
@@ -8847,7 +8822,7 @@ const Oh = (e) => {
8847
8822
  {
8848
8823
  type: "file",
8849
8824
  ref: A,
8850
- onChange: Wa,
8825
+ onChange: Ga,
8851
8826
  className: "hidden",
8852
8827
  multiple: !0,
8853
8828
  accept: _r.join(","),
@@ -8855,44 +8830,44 @@ const Oh = (e) => {
8855
8830
  }
8856
8831
  )
8857
8832
  ] }),
8858
- /* @__PURE__ */ u(Jh, { files: o, clearFile: Ya }),
8833
+ /* @__PURE__ */ u(Vh, { files: o, clearFile: qa }),
8859
8834
  /* @__PURE__ */ k("div", { className: "p-2 flex items-center", children: [
8860
- /* @__PURE__ */ u(Ph, { className: "order-7 ml-auto" }),
8861
- /* @__PURE__ */ u(sh, { className: "order-1 mr-4 sm:mr-2" }),
8862
- /* @__PURE__ */ u($h, { className: "order-2 mr-4 sm:mr-2" }),
8835
+ /* @__PURE__ */ u($h, { className: "order-7 ml-auto" }),
8836
+ /* @__PURE__ */ u(nh, { className: "order-1 mr-4 sm:mr-2" }),
8837
+ /* @__PURE__ */ u(zh, { className: "order-2 mr-4 sm:mr-2" }),
8863
8838
  r && /* @__PURE__ */ u(
8864
- ah,
8839
+ rh,
8865
8840
  {
8866
8841
  className: "order-3 mr-4 sm:mr-2",
8867
- onClick: qa
8842
+ onClick: Wa
8868
8843
  }
8869
8844
  ),
8870
- n && /* @__PURE__ */ u(Mh, { className: "order-4 mr-4 sm:mr-2" }),
8871
- /* @__PURE__ */ u(Ch, { className: "order-5 mr-4 sm:mr-2" }),
8872
- /* @__PURE__ */ u(Rh, { className: "order-6" })
8845
+ n && /* @__PURE__ */ u(Ah, { className: "order-4 mr-4 sm:mr-2" }),
8846
+ /* @__PURE__ */ u(Sh, { className: "order-5 mr-4 sm:mr-2" }),
8847
+ /* @__PURE__ */ u(Oh, { className: "order-6" })
8873
8848
  ] })
8874
8849
  ] }) })
8875
8850
  ] });
8876
- }, Ot = "--sassy-bottom", tf = ({ isComponent: e }) => {
8851
+ }, Ot = "--sassy-bottom", Qh = ({ isComponent: e }) => {
8877
8852
  const {
8878
8853
  state: { loading: t, streaming: r, restoring: n }
8879
8854
  } = te(ve), {
8880
8855
  state: { footerHeight: o, footerPosition: a },
8881
8856
  dispatch: i
8882
- } = te(Yr), [s] = M(
8857
+ } = te(Yr), [s] = R(
8883
8858
  () => an[Math.floor(Math.random() * an.length)]
8884
- ), { messages: l } = Ve(), { height: c } = Xs(), { height: p } = Ks(), [d, g] = ao(), f = Bt(() => Ee(), []), m = c - p, h = Bt(() => {
8885
- const v = f ? hs : so;
8886
- return m > 0 && m < 100 ? ms : v;
8859
+ ), { messages: l } = Ve(), { height: c } = Xs(), { height: p } = Qs(), [d, g] = ao(), f = Bt(() => Le(), []), m = c - p, h = Bt(() => {
8860
+ const v = f ? ms : so;
8861
+ return m > 0 && m < 100 ? ps : v;
8887
8862
  }, [m, f]);
8888
- return O(() => {
8863
+ return $(() => {
8889
8864
  o !== g.height && i({
8890
- type: Oa,
8865
+ type: Aa,
8891
8866
  payload: {
8892
8867
  footerHeight: g.height
8893
8868
  }
8894
8869
  });
8895
- }, [g.height, o, i]), O(() => {
8870
+ }, [g.height, o, i]), $(() => {
8896
8871
  if (!d || !d.current)
8897
8872
  return;
8898
8873
  const v = d?.current?.style.getPropertyValue(Ot);
@@ -8943,51 +8918,51 @@ const Oh = (e) => {
8943
8918
  "footer",
8944
8919
  {
8945
8920
  ref: d,
8946
- className: $(
8921
+ className: O(
8947
8922
  "border-transparent mt-5",
8948
8923
  "bottom-(--sassy-bottom)",
8949
- qm
8924
+ Jm
8950
8925
  ),
8951
8926
  children: /* @__PURE__ */ k("div", { className: Er(), children: [
8952
- /* @__PURE__ */ u(ef, {}),
8927
+ /* @__PURE__ */ u(Xh, {}),
8953
8928
  /* @__PURE__ */ u("div", { className: "w-full text-center text-xs text-slate-300 pt-2", children: s })
8954
8929
  ] })
8955
8930
  }
8956
8931
  );
8957
8932
  }, $t = [
8958
8933
  {
8959
- id: fs,
8934
+ id: hs,
8960
8935
  label: "OpenAI",
8961
8936
  icon: hi
8962
8937
  },
8963
8938
  {
8964
- id: gs,
8939
+ id: fs,
8965
8940
  label: "Anthropic",
8966
8941
  icon: ei
8967
8942
  },
8968
8943
  {
8969
- id: vs,
8944
+ id: gs,
8970
8945
  label: "Google Gemini",
8971
8946
  icon: ci
8972
8947
  }
8973
- ], rf = ({ className: e }) => {
8948
+ ], Kh = ({ className: e }) => {
8974
8949
  const {
8975
8950
  dispatch: t,
8976
8951
  state: { privateChat: r },
8977
8952
  setChatId: n,
8978
8953
  setInitialMessages: o
8979
- } = te(ve), { getAccessToken: a, user: i } = Me(), { status: s } = Ve(), [l, c] = M(!1), p = U(() => {
8954
+ } = te(ve), { getAccessToken: a, user: i } = $e(), { status: s } = Ve(), [l, c] = R(!1), p = U(() => {
8980
8955
  l || ($m(), c(!0));
8981
- }, [l]), { isSuccess: d, refetch: g, data: f } = Kt({
8956
+ }, [l]), { isSuccess: d, refetch: g, data: f } = Qt({
8982
8957
  user: i?.username,
8983
8958
  getAccessToken: a
8984
8959
  }), m = async (b) => {
8985
8960
  try {
8986
- n($e()), o([]), b !== f?.provider && (await ys({
8961
+ n(Oe()), o([]), b !== f?.provider && (await vs({
8987
8962
  provider: b,
8988
8963
  accessToken: await a(),
8989
8964
  username: i?.username || ""
8990
- }), g(), await Yt(`${_s} ${b}`, {
8965
+ }), g(), await Yt(`${ys} ${b}`, {
8991
8966
  containerId: "toggle-provider"
8992
8967
  })), t({
8993
8968
  type: je,
@@ -9022,7 +8997,7 @@ const Oh = (e) => {
9022
8997
  ),
9023
8998
  defaultPlacement: "top-start",
9024
8999
  children: [
9025
- /* @__PURE__ */ u(Ua, { children: "Providers" }),
9000
+ /* @__PURE__ */ u(La, { children: "Providers" }),
9026
9001
  h && $t.map((b) => /* @__PURE__ */ u(
9027
9002
  Ie,
9028
9003
  {
@@ -9037,7 +9012,7 @@ const Oh = (e) => {
9037
9012
  }
9038
9013
  );
9039
9014
  return h ? /* @__PURE__ */ u(
9040
- Se,
9015
+ Te,
9041
9016
  {
9042
9017
  label: "Toggle Providers",
9043
9018
  mode: "light",
@@ -9046,76 +9021,76 @@ const Oh = (e) => {
9046
9021
  trigger: I
9047
9022
  }
9048
9023
  ) : /* @__PURE__ */ u("div", { className: e, children: I });
9049
- }, nf = Re(
9024
+ }, ef = Me(
9050
9025
  () => import(
9051
9026
  /* webpackChunkName: "modal-chunk" */
9052
- "./ProfileEntry.BuZL2tf0.js"
9027
+ "./ProfileEntry.qPN0Xe6S.js"
9053
9028
  ).then((e) => ({
9054
9029
  default: e.Profile
9055
9030
  }))
9056
- ), of = Re(
9031
+ ), tf = Me(
9057
9032
  () => import(
9058
9033
  /* webpackChunkName: "modal-chunk" */
9059
- "./SettingsEntry.DLsBdG9c.js"
9034
+ "./SettingsEntry.CH79zLy_.js"
9060
9035
  ).then((e) => ({
9061
9036
  default: e.SettingsPanel
9062
9037
  }))
9063
- ), af = Re(
9038
+ ), rf = Me(
9064
9039
  () => import(
9065
9040
  /* webpackChunkName: "modal-chunk" */
9066
- "./HistoryEntry.Do9b3mI3.js"
9041
+ "./HistoryEntry.CdAYZCrj.js"
9067
9042
  ).then((e) => ({
9068
9043
  default: e.HistoryPanel
9069
9044
  }))
9070
- ), sf = Re(
9045
+ ), nf = Me(
9071
9046
  () => import(
9072
9047
  /* webpackChunkName: "modal-chunk" */
9073
- "./AboutEntry.Byc5GXwY.js"
9048
+ "./AboutEntry.BH88UaZx.js"
9074
9049
  ).then((e) => ({ default: e.About }))
9075
- ), cf = Re(
9050
+ ), of = Me(
9076
9051
  () => import(
9077
9052
  /* webpackChunkName: "modal-chunk" */
9078
- "./UsageEntry.Cg_6TYnM.js"
9053
+ "./UsageEntry.axUSgiS0.js"
9079
9054
  ).then((e) => ({ default: e.Usage }))
9080
- ), lf = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ u(jt, { fallback: /* @__PURE__ */ u("div", {}), children: (() => {
9055
+ ), af = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ u(jt, { fallback: /* @__PURE__ */ u("div", {}), children: (() => {
9081
9056
  switch (e) {
9082
9057
  case "profile":
9083
- return /* @__PURE__ */ u(nf, { open: t, onOpenChange: r });
9058
+ return /* @__PURE__ */ u(ef, { open: t, onOpenChange: r });
9084
9059
  case "settings":
9085
- return /* @__PURE__ */ u(of, { open: t, onOpenChange: r });
9060
+ return /* @__PURE__ */ u(tf, { open: t, onOpenChange: r });
9086
9061
  case "history":
9087
- return /* @__PURE__ */ u(af, { open: t, onOpenChange: r });
9062
+ return /* @__PURE__ */ u(rf, { open: t, onOpenChange: r });
9088
9063
  case "about":
9089
- return /* @__PURE__ */ u(sf, { open: t, onOpenChange: r });
9064
+ return /* @__PURE__ */ u(nf, { open: t, onOpenChange: r });
9090
9065
  case "usage":
9091
- return /* @__PURE__ */ u(cf, { open: t, onOpenChange: r });
9066
+ return /* @__PURE__ */ u(of, { open: t, onOpenChange: r });
9092
9067
  default:
9093
9068
  return null;
9094
9069
  }
9095
- })() }) : null, uf = ({
9070
+ })() }) : null, sf = ({
9096
9071
  isComponent: e = !1
9097
9072
  }) => {
9098
- const { logout: t } = Me(), [r, n] = M(null), [o, a] = M(!1), [i, s] = M(!1), l = U(() => {
9073
+ const { logout: t } = $e(), [r, n] = R(null), [o, a] = R(!1), [i, s] = R(!1), l = U(() => {
9099
9074
  i || Promise.all([
9100
9075
  import(
9101
9076
  /* webpackChunkName: "modal-chunk" */
9102
- "./ProfileEntry.BuZL2tf0.js"
9077
+ "./ProfileEntry.qPN0Xe6S.js"
9103
9078
  ),
9104
9079
  import(
9105
9080
  /* webpackChunkName: "modal-chunk" */
9106
- "./SettingsEntry.DLsBdG9c.js"
9081
+ "./SettingsEntry.CH79zLy_.js"
9107
9082
  ),
9108
9083
  import(
9109
9084
  /* webpackChunkName: "modal-chunk" */
9110
- "./HistoryEntry.Do9b3mI3.js"
9085
+ "./HistoryEntry.CdAYZCrj.js"
9111
9086
  ),
9112
9087
  import(
9113
9088
  /* webpackChunkName: "modal-chunk" */
9114
- "./AboutEntry.Byc5GXwY.js"
9089
+ "./AboutEntry.BH88UaZx.js"
9115
9090
  ),
9116
9091
  import(
9117
9092
  /* webpackChunkName: "modal-chunk" */
9118
- "./UsageEntry.Cg_6TYnM.js"
9093
+ "./UsageEntry.axUSgiS0.js"
9119
9094
  )
9120
9095
  ]).finally(() => s(!0));
9121
9096
  }, [i]), c = U((f) => {
@@ -9125,7 +9100,7 @@ const Oh = (e) => {
9125
9100
  }, []), d = U(() => {
9126
9101
  c("settings");
9127
9102
  }, [c]);
9128
- Za("openSettings", d);
9103
+ Pa("openSettings", d);
9129
9104
  const g = () => {
9130
9105
  a(!o);
9131
9106
  };
@@ -9144,7 +9119,7 @@ const Oh = (e) => {
9144
9119
  * focus.
9145
9120
  */
9146
9121
  []
9147
- ), /* @__PURE__ */ k(Ne, { children: [
9122
+ ), /* @__PURE__ */ k(Ce, { children: [
9148
9123
  /* @__PURE__ */ u(
9149
9124
  Ue,
9150
9125
  {
@@ -9160,7 +9135,7 @@ const Oh = (e) => {
9160
9135
  }
9161
9136
  ),
9162
9137
  /* @__PURE__ */ u(
9163
- lf,
9138
+ af,
9164
9139
  {
9165
9140
  type: r,
9166
9141
  open: r !== null,
@@ -9175,9 +9150,9 @@ const Oh = (e) => {
9175
9150
  rowGap: 0,
9176
9151
  columnGap: 0,
9177
9152
  children: [
9178
- /* @__PURE__ */ u(We, { children: /* @__PURE__ */ u(rf, { className: " mr-4 sm:mr-2" }) }),
9153
+ /* @__PURE__ */ u(We, { children: /* @__PURE__ */ u(Kh, { className: " mr-4 sm:mr-2" }) }),
9179
9154
  /* @__PURE__ */ u(We, { children: /* @__PURE__ */ u(
9180
- Se,
9155
+ Te,
9181
9156
  {
9182
9157
  label: "Profile, Settings, etc.",
9183
9158
  mode: "light",
@@ -9240,8 +9215,8 @@ const Oh = (e) => {
9240
9215
  icon: /* @__PURE__ */ u(ui, {})
9241
9216
  }
9242
9217
  ),
9243
- !e && /* @__PURE__ */ k(Ne, { children: [
9244
- /* @__PURE__ */ u(Ah, {}),
9218
+ !e && /* @__PURE__ */ k(Ce, { children: [
9219
+ /* @__PURE__ */ u(Ch, {}),
9245
9220
  /* @__PURE__ */ u(
9246
9221
  Ie,
9247
9222
  {
@@ -9260,7 +9235,7 @@ const Oh = (e) => {
9260
9235
  }
9261
9236
  ) })
9262
9237
  ] });
9263
- }, df = ({
9238
+ }, cf = ({
9264
9239
  show: e,
9265
9240
  bottom: t,
9266
9241
  onClick: r,
@@ -9270,14 +9245,14 @@ const Oh = (e) => {
9270
9245
  "div",
9271
9246
  {
9272
9247
  style: { bottom: `${t}px` },
9273
- className: n || $(
9274
- Ym,
9248
+ className: n || O(
9249
+ Gm,
9275
9250
  "fixed left-1/2 transform -translate-x-1/2 isolate"
9276
9251
  ),
9277
9252
  children: /* @__PURE__ */ u(
9278
9253
  "button",
9279
9254
  {
9280
- className: $(
9255
+ className: O(
9281
9256
  "focus:outline-2",
9282
9257
  "focus:outline-focus-dark dark:focus:outline-focus-light",
9283
9258
  "av-button not-prose truncate text-copy-light rounded-full inline-flex items-center justify-center h-8 w-8 p-1 border border-white/20 dark:border-black/20 focus:outline-offset-2 disabled:opacity-50 dark:bg-slate-50/60 bg-slate-500/60 backdrop-blur-lg backdrop-saturate-150 disabled:cursor-auto opacity-90 hover:opacity-100 transition-opacity",
@@ -9305,14 +9280,14 @@ const Oh = (e) => {
9305
9280
  }
9306
9281
  )
9307
9282
  }
9308
- ) : null, Qn = "av-spinner", Fa = ({
9283
+ ) : null, Kn = "av-spinner", Va = ({
9309
9284
  spinnerRef: e,
9310
9285
  mode: t = "system",
9311
9286
  type: r = "circle",
9312
9287
  className: n
9313
9288
  }) => {
9314
- const o = r === "circle" ? $(
9315
- Qn,
9289
+ const o = r === "circle" ? O(
9290
+ Kn,
9316
9291
  "h-8 w-8",
9317
9292
  "align-[-0.125em]",
9318
9293
  "border-4",
@@ -9324,7 +9299,7 @@ const Oh = (e) => {
9324
9299
  "text-copy-accent dark:text-copy-dark": t === "alt-system"
9325
9300
  },
9326
9301
  n
9327
- ) : $(Qn, n), a = $("av-spinner__dot", {
9302
+ ) : O(Kn, n), a = O("av-spinner__dot", {
9328
9303
  "fill-copy-dark": t === "dark",
9329
9304
  "fill-copy-accent": t === "light",
9330
9305
  "fill-copy-dark dark:fill-copy-accent": t === "system",
@@ -9352,21 +9327,21 @@ try {
9352
9327
  });
9353
9328
  } catch {
9354
9329
  }
9355
- const pf = Re(
9356
- () => import("./index.CtrE2M7d.js").then((e) => ({ default: e.Bubble }))
9357
- ), Xr = (e) => /* @__PURE__ */ u(jt, { fallback: /* @__PURE__ */ u("span", { className: "inline-block" }), children: /* @__PURE__ */ u(pf, { ...e }) });
9330
+ const lf = Me(
9331
+ () => import("./index.Caa3MVly.js").then((e) => ({ default: e.Bubble }))
9332
+ ), Xr = (e) => /* @__PURE__ */ u(jt, { fallback: /* @__PURE__ */ u("span", { className: "inline-block" }), children: /* @__PURE__ */ u(lf, { ...e }) });
9358
9333
  Xr.displayName = "AsyncBubble";
9359
- const eo = 1, mf = 150, hf = Re(
9334
+ const eo = 1, uf = 150, df = Me(
9360
9335
  () => import(
9361
9336
  /* webpackChunkName: "LazyMessageAssistant" */
9362
- "./ChatBubbleAssistant.CxkyQIaL.js"
9337
+ "./ChatBubbleAssistant.tWJz9jxI.js"
9363
9338
  )
9364
- ), ff = Re(
9339
+ ), pf = Me(
9365
9340
  () => import(
9366
9341
  /* webpackChunkName: "LazyMessageUser" */
9367
- "./ChatBubbleUser.DuagpPMM.js"
9342
+ "./ChatBubbleUser.BsPt1Fgz.js"
9368
9343
  )
9369
- ), gf = tt.memo(
9344
+ ), mf = tt.memo(
9370
9345
  ({
9371
9346
  role: e,
9372
9347
  content: t,
@@ -9375,12 +9350,12 @@ const eo = 1, mf = 150, hf = Re(
9375
9350
  isLastAssistantMessage: o = !1,
9376
9351
  status: a
9377
9352
  }) => {
9378
- const [i, s] = M(!0), l = J(Date.now()), [c] = M(
9353
+ const [i, s] = R(!0), l = J(Date.now()), [c] = R(
9379
9354
  () => o && (a === "streaming" || a === "submitted")
9380
9355
  );
9381
- return O(() => {
9356
+ return $(() => {
9382
9357
  if (o && i && t && t.trim().length >= eo) {
9383
- const d = Date.now() - l.current, g = mf - d;
9358
+ const d = Date.now() - l.current, g = uf - d;
9384
9359
  if (g > 0) {
9385
9360
  const f = setTimeout(
9386
9361
  () => s(!1),
@@ -9391,10 +9366,10 @@ const eo = 1, mf = 150, hf = Re(
9391
9366
  s(!1);
9392
9367
  }
9393
9368
  }, [t, i, o]), e === io && t ? /* @__PURE__ */ k(jt, { fallback: /* @__PURE__ */ u("span", {}), children: [
9394
- /* @__PURE__ */ u(ff, { content: t }),
9369
+ /* @__PURE__ */ u(pf, { content: t }),
9395
9370
  ";"
9396
- ] }) : (e === lt || e === cn) && o && (a === "submitted" || a === "streaming") && i ? /* @__PURE__ */ u(Xr, { tail: !0, children: /* @__PURE__ */ u(Fa, { type: "dots" }) }) : (e === lt || e === cn) && t && t.trim().length >= eo ? /* @__PURE__ */ u(jt, { fallback: /* @__PURE__ */ u("span", {}), children: /* @__PURE__ */ u(
9397
- hf,
9371
+ ] }) : (e === lt || e === cn) && o && (a === "submitted" || a === "streaming") && i ? /* @__PURE__ */ u(Xr, { tail: !0, children: /* @__PURE__ */ u(Va, { type: "dots" }) }) : (e === lt || e === cn) && t && t.trim().length >= eo ? /* @__PURE__ */ u(jt, { fallback: /* @__PURE__ */ u("span", {}), children: /* @__PURE__ */ u(
9372
+ df,
9398
9373
  {
9399
9374
  role: e,
9400
9375
  content: t,
@@ -9405,7 +9380,7 @@ const eo = 1, mf = 150, hf = Re(
9405
9380
  }
9406
9381
  ) }) : null;
9407
9382
  }
9408
- ), vf = (e) => {
9383
+ ), hf = (e) => {
9409
9384
  if (e.parts && Array.isArray(e.parts)) {
9410
9385
  const t = e.parts.filter((r) => r.type === "text").map((r) => r.text).filter(Boolean);
9411
9386
  return t.length > 0 ? t.join(`
@@ -9414,7 +9389,7 @@ const eo = 1, mf = 150, hf = Re(
9414
9389
  if ("content" in e && typeof e.content == "string")
9415
9390
  return e.content;
9416
9391
  };
9417
- function yf(e) {
9392
+ function ff(e) {
9418
9393
  const t = e.metadata;
9419
9394
  if (t?.model)
9420
9395
  return { model: String(t.model) };
@@ -9428,14 +9403,14 @@ function yf(e) {
9428
9403
  }
9429
9404
  }
9430
9405
  }
9431
- const _f = () => {
9406
+ const gf = () => {
9432
9407
  const { messages: e, status: t } = Ve(), r = e ? e.map((a, i) => a.role === lt ? i : -1).filter((a) => a !== -1).pop() : -1, n = e && e.length > 0 ? e[e.length - 1] : null, o = (t === "submitted" || t === "streaming") && n?.role === io;
9433
9408
  return e && e.length > 0 ? /* @__PURE__ */ k("div", { className: "space-y-6 mt-2 @container", children: [
9434
9409
  e?.map((a, i) => {
9435
9410
  let s;
9436
- const l = `${i}-${a.role}`, c = vf(a), p = yf(a), d = a.role === lt && i === r;
9411
+ const l = `${i}-${a.role}`, c = hf(a), p = ff(a), d = a.role === lt && i === r;
9437
9412
  return /* @__PURE__ */ u(
9438
- gf,
9413
+ mf,
9439
9414
  {
9440
9415
  role: a.role,
9441
9416
  content: c,
@@ -9447,14 +9422,14 @@ const _f = () => {
9447
9422
  l
9448
9423
  );
9449
9424
  }),
9450
- o && /* @__PURE__ */ u(Xr, { tail: !0, children: /* @__PURE__ */ u(Fa, { type: "dots" }) })
9425
+ o && /* @__PURE__ */ u(Xr, { tail: !0, children: /* @__PURE__ */ u(Va, { type: "dots" }) })
9451
9426
  ] }) : null;
9452
- }, bf = () => {
9453
- const { isAuthenticated: e } = Me(), { ref: t, inViewport: r } = Ws(), n = J(null), o = J(null), {
9427
+ }, vf = () => {
9428
+ const { isAuthenticated: e } = $e(), { ref: t, inViewport: r } = Ws(), n = J(null), o = J(null), {
9454
9429
  state: { footerPosition: a, footerHeight: i, footerOffset: s }
9455
9430
  } = te(Yr), {
9456
9431
  state: { loading: l }
9457
- } = te(ve), { messages: c } = Ve(), p = J(0), d = bs({
9432
+ } = te(ve), { messages: c } = Ve(), p = J(0), d = _s({
9458
9433
  isAuthenticated: e,
9459
9434
  extraClass: "rounded-b-md relative border-b-16 border-slate-900"
9460
9435
  }), g = Ir() ? "mt-4" : "", f = U(() => {
@@ -9463,27 +9438,27 @@ const _f = () => {
9463
9438
  block: "end"
9464
9439
  });
9465
9440
  }, []);
9466
- return O(() => {
9441
+ return $(() => {
9467
9442
  l && f();
9468
- }, [l, f]), O(() => {
9469
- p.current = a === ct ? i + s + co + ws + 15 : 0;
9470
- }, [a, i, s]), /* @__PURE__ */ k(Ne, { children: [
9443
+ }, [l, f]), $(() => {
9444
+ p.current = a === ct ? i + s + co + bs + 15 : 0;
9445
+ }, [a, i, s]), /* @__PURE__ */ k(Ce, { children: [
9471
9446
  /* @__PURE__ */ k("div", { className: d, ref: n, children: [
9472
- /* @__PURE__ */ u(Is, { className: g }),
9473
- /* @__PURE__ */ u(_f, {}),
9447
+ /* @__PURE__ */ u(ws, { className: g }),
9448
+ /* @__PURE__ */ u(gf, {}),
9474
9449
  /* @__PURE__ */ u("div", { ref: t, className: "scroll-marker" }),
9475
9450
  /* @__PURE__ */ u(
9476
9451
  "div",
9477
9452
  {
9478
9453
  ref: o,
9479
- className: $({
9454
+ className: O({
9480
9455
  "pt-20": c && c.length > 1
9481
9456
  })
9482
9457
  }
9483
9458
  )
9484
9459
  ] }),
9485
9460
  /* @__PURE__ */ u(
9486
- df,
9461
+ cf,
9487
9462
  {
9488
9463
  show: !r && a === ct,
9489
9464
  bottom: p.current,
@@ -9492,32 +9467,32 @@ const _f = () => {
9492
9467
  )
9493
9468
  ] });
9494
9469
  };
9495
- function Ha({
9470
+ function Fa({
9496
9471
  isComponent: e = !1,
9497
9472
  headerHeight: t = 0
9498
9473
  }) {
9499
- const { user: r, getAccessToken: n } = Me(), [o, a] = M(`${ln}px`), [i, s] = ao(), [l, c] = M($e()), [p, d] = M([]), [g] = Ye({
9500
- key: qe + xs,
9474
+ const { user: r, getAccessToken: n } = $e(), [o, a] = R(`${ln}px`), [i, s] = ao(), [l, c] = R(Oe()), [p, d] = R([]), [g] = Ye({
9475
+ key: qe + ks,
9501
9476
  initialValue: ""
9502
9477
  }), [f] = Ye({
9503
- key: qe + ks,
9478
+ key: qe + Ss,
9504
9479
  initialValue: un
9505
9480
  }), [m] = Ye({
9506
- key: qe + Cs,
9507
- initialValue: Qe.DESC
9481
+ key: qe + xs,
9482
+ initialValue: Ke.DESC
9508
9483
  }), [h] = Ye({
9509
- key: qe + Ns,
9510
- initialValue: Qe.ASC
9484
+ key: qe + Cs,
9485
+ initialValue: Ke.ASC
9511
9486
  }), v = Bt(() => ({
9512
9487
  footerPosition: Xt,
9513
9488
  footerHeight: 0,
9514
- footerOffset: Ee() ? so : 0
9489
+ footerOffset: Le() ? so : 0
9515
9490
  }), []), [I, b] = Et(Mm, v), _ = {
9516
9491
  searchString: g,
9517
9492
  sortedCell: f,
9518
9493
  sortDirection: (() => {
9519
9494
  switch (f) {
9520
- case Ss:
9495
+ case Ts:
9521
9496
  return h;
9522
9497
  case un:
9523
9498
  default:
@@ -9543,7 +9518,7 @@ function Ha({
9543
9518
  attachments: 0,
9544
9519
  lastStreamingTimestamp: 0,
9545
9520
  lastResetTimestamp: 0
9546
- }), { data: ke } = Kt({
9521
+ }), { data: Se } = Qt({
9547
9522
  user: r?.username,
9548
9523
  getAccessToken: n
9549
9524
  }), j = Bt(() => new Gr({
@@ -9553,24 +9528,24 @@ function Ha({
9553
9528
  username: r?.username
9554
9529
  }
9555
9530
  }), [r?.username]);
9556
- return O(() => {
9531
+ return $(() => {
9557
9532
  document.getElementById("root")?.classList.replace("app-hidden", "fadeIn");
9558
- }, []), O(() => {
9559
- ke && ke.provider && be({
9560
- type: Ma,
9533
+ }, []), $(() => {
9534
+ Se && Se.provider && be({
9535
+ type: $a,
9561
9536
  payload: {
9562
- provider: ke.provider
9537
+ provider: Se.provider
9563
9538
  }
9564
9539
  });
9565
- }, [ke]), O(() => {
9540
+ }, [Se]), $(() => {
9566
9541
  try {
9567
9542
  const me = sessionStorage.getItem("sw-toggle-pending");
9568
- me && (me === "enabled" ? Yt(zs, { containerId: "toggle-save" }) : me === "disabled" && Yt(As, {
9543
+ me && (me === "enabled" ? Yt(Ns, { containerId: "toggle-save" }) : me === "disabled" && Yt(zs, {
9569
9544
  containerId: "toggle-save"
9570
9545
  }), sessionStorage.removeItem("sw-toggle-pending"));
9571
9546
  } catch {
9572
9547
  }
9573
- }, []), O(() => {
9548
+ }, []), $(() => {
9574
9549
  if (I.footerPosition === "FOOTER_BOTTOM") {
9575
9550
  const me = `calc(${s.height}px + 20px)`;
9576
9551
  a(
@@ -9578,9 +9553,9 @@ function Ha({
9578
9553
  );
9579
9554
  } else
9580
9555
  a(
9581
- Ee() ? `${Es}px` : `${ln}px`
9556
+ Le() ? `${Is}px` : `${ln}px`
9582
9557
  );
9583
- }, [I, s, t]), /* @__PURE__ */ u(Wm, { children: /* @__PURE__ */ u(
9558
+ }, [I, s, t]), /* @__PURE__ */ u(
9584
9559
  Wr.Provider,
9585
9560
  {
9586
9561
  value: {
@@ -9609,11 +9584,11 @@ function Ha({
9609
9584
  transport: j,
9610
9585
  experimental_throttle: 300,
9611
9586
  generateId() {
9612
- return $e();
9587
+ return Oe();
9613
9588
  }
9614
9589
  },
9615
9590
  children: [
9616
- /* @__PURE__ */ k("div", { className: Ts, children: [
9591
+ /* @__PURE__ */ k("div", { className: Es, children: [
9617
9592
  /* @__PURE__ */ u(Jn, { containerId: "toggle-save" }),
9618
9593
  /* @__PURE__ */ u(Jn, { containerId: "toggle-provider" })
9619
9594
  ] }),
@@ -9622,7 +9597,7 @@ function Ha({
9622
9597
  {
9623
9598
  ref: i,
9624
9599
  className: Er({ extraClass: "mt-5" }),
9625
- children: /* @__PURE__ */ u(uf, { isComponent: e })
9600
+ children: /* @__PURE__ */ u(sf, { isComponent: e })
9626
9601
  }
9627
9602
  ),
9628
9603
  /* @__PURE__ */ u(
@@ -9632,10 +9607,10 @@ function Ha({
9632
9607
  style: {
9633
9608
  height: o
9634
9609
  },
9635
- children: /* @__PURE__ */ u(bf, {})
9610
+ children: /* @__PURE__ */ u(vf, {})
9636
9611
  }
9637
9612
  ),
9638
- /* @__PURE__ */ u(tf, { isComponent: e })
9613
+ /* @__PURE__ */ u(Qh, { isComponent: e })
9639
9614
  ]
9640
9615
  }
9641
9616
  )
@@ -9644,32 +9619,32 @@ function Ha({
9644
9619
  }
9645
9620
  ) })
9646
9621
  }
9647
- ) });
9622
+ );
9648
9623
  }
9649
- Ha.displayName = "App";
9650
- const Cf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Ha }, Symbol.toStringTag, { value: "Module" }));
9624
+ Fa.displayName = "App";
9625
+ const Sf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Fa }, Symbol.toStringTag, { value: "Module" }));
9651
9626
  export {
9652
- Cf as App,
9627
+ Sf as App,
9653
9628
  Xr as AsyncBubble,
9654
- df as ButtonScroll,
9655
- Ma as CHAT_SET_PROVIDER,
9656
- Ke as CHAT_SET_STATUS,
9629
+ cf as ButtonScroll,
9630
+ $a as CHAT_SET_PROVIDER,
9631
+ Qe as CHAT_SET_STATUS,
9657
9632
  ve as ChatContext,
9658
9633
  Ue as ConfirmationPanel,
9659
9634
  Ye as E,
9660
9635
  Wr as HistoryContext,
9661
- xh as L,
9636
+ Th as L,
9662
9637
  Jn as LazyToastContainerWrapper,
9663
9638
  oi as a,
9664
- Qe as e,
9639
+ Ke as e,
9665
9640
  Dm as getDefaultExportFromCjs,
9666
9641
  Ws as p,
9667
9642
  ci as p$1,
9668
9643
  ei as p$2,
9669
- vh as se,
9670
- xf as showErrorToast,
9644
+ hh as se,
9645
+ Tf as showErrorToast,
9671
9646
  Yt as showSuccessToast,
9672
- Se as st,
9647
+ Te as st,
9673
9648
  Ve as useAiChat,
9674
9649
  Or as useCapability,
9675
9650
  hi as z