@versini/sassysaint 8.51.7 → 8.52.0

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 (23) hide show
  1. package/dist/chunks/{AboutChangelog.DDPsUMZt.js → AboutChangelog.BXP_S_6h.js} +2 -2
  2. package/dist/chunks/{AboutEntry.ZpXcef48.js → AboutEntry.xxSM1oC2.js} +5 -5
  3. package/dist/chunks/{App.BuJoFApH.js → App.vcT52Cxv.js} +343 -347
  4. package/dist/chunks/{Chart.B_TvwXxw.js → Chart.BL7C958a.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.CSKXESRd.js → ChatBubbleAssistant.BvSTXfZu.js} +4 -4
  6. package/dist/chunks/{ChatBubbleUser.xVDiOcM1.js → ChatBubbleUser.DAG3DtIn.js} +3 -3
  7. package/dist/chunks/{ChatHistoryTable.BZcDwTQb.js → ChatHistoryTable.OynguQ8f.js} +3 -3
  8. package/dist/chunks/{HistoryEntry.DJd8wyU_.js → HistoryEntry.c-t2Qly1.js} +3 -3
  9. package/dist/chunks/{ProfileEntry.un5FevWN.js → ProfileEntry.Cp6GKTXd.js} +2 -2
  10. package/dist/chunks/{SettingsEntry.C8PZoiRl.js → SettingsEntry.CBvovzte.js} +3 -3
  11. package/dist/chunks/{Table.DHN6Yg9n.js → Table.BHKK2hx0.js} +2 -2
  12. package/dist/chunks/{UsageEntry.DOeus8Cu.js → UsageEntry.DQ8C9RD2.js} +3 -3
  13. package/dist/chunks/{index.Z5xhsgrm.js → index.4-oS1zsv.js} +1 -1
  14. package/dist/chunks/{index.CzdfhUv7.js → index.CQ6wFEdL.js} +3 -3
  15. package/dist/chunks/{index.BqFmsWjr.js → index.CTR90Zgl.js} +1 -1
  16. package/dist/chunks/{index.HAv3ex2j.js → index.Cs-kxUcH.js} +96 -96
  17. package/dist/chunks/{index.XmM-HffY.js → index.DOGFTmsP.js} +1 -1
  18. package/dist/chunks/{index.BqKp_YqM.js → index.MR8A9dOE.js} +2 -2
  19. package/dist/chunks/{index.Zdxgje2x.js → index.eMvwIUBJ.js} +1 -1
  20. package/dist/chunks/{useMarkdown.BJpdO7dl.js → useMarkdown.DboPchKq.js} +6 -6
  21. package/dist/components/SassySaint/SassySaint.js +1 -1
  22. package/dist/index.js +4 -4
  23. package/package.json +3 -3
@@ -1,12 +1,12 @@
1
- import { jsx as u, jsxs as x, Fragment as Ce } from "react/jsx-runtime";
2
- import { I as Y, 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 Bt, 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 ut, 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, isProbablyiPad as ps, INPUT_BOTTOM_OFFSET_EXTRA as ms, INPUT_BOTTOM_OFFSET_IPHONE as hs, INPUT_BOTTOM_OFFSET_IPAD as fs, INPUT_BOTTOM_OFFSET as so, getLayoutPaddingClass as Er, i$1 as gs, E as vs, y as ys, setNewProvider as _s, TOAST_PROVIDER_CHANGED as bs, LOG_OUT as sn, a as io, ne as cn, getMessageContaintWrapperClass as ws, UI_FOOTER_BUFFER as co, UI_BUTTON_SCROLL_BUFFER as Is, Logo as Es, UI_DEFAULT_MAIN_HEIGHT as ln, UI_DEFAULT_MAIN_HEIGHT_IPHONE as Ts, APP_CLASSNAME as Ss, Ae as un, ue as xs, LOCAL_STORAGE_SORT as ks, LOCAL_STORAGE_SEARCH as Cs, LOCAL_STORAGE_SORT_TIMESTAMP as Ns, LOCAL_STORAGE_SORT_TOKEN_USAGE as zs, TOAST_CACHE_ENABLED as As, TOAST_CACHE_DISABLED as Os } from "./index.HAv3ex2j.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 Bt, 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, le 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 ut, 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, isProbablyiPad as ps, INPUT_BOTTOM_OFFSET_EXTRA as ms, INPUT_BOTTOM_OFFSET_IPHONE as hs, INPUT_BOTTOM_OFFSET_IPAD as fs, INPUT_BOTTOM_OFFSET as so, getLayoutPaddingClass as Er, i$1 as gs, E as vs, y as ys, setNewProvider as _s, TOAST_PROVIDER_CHANGED as bs, LOG_OUT as sn, a as io, ne as cn, getMessageContaintWrapperClass as ws, UI_FOOTER_BUFFER as co, UI_BUTTON_SCROLL_BUFFER as Is, Logo as Es, UI_DEFAULT_MAIN_HEIGHT as ln, UI_DEFAULT_MAIN_HEIGHT_IPHONE as Ts, APP_CLASSNAME as Ss, Ae as un, ue as ks, LOCAL_STORAGE_SORT as xs, LOCAL_STORAGE_SEARCH as Cs, LOCAL_STORAGE_SORT_TIMESTAMP as Ns, LOCAL_STORAGE_SORT_TOKEN_USAGE as zs, TOAST_CACHE_ENABLED as As, TOAST_CACHE_DISABLED as Os } from "./index.Cs-kxUcH.js";
3
3
  import * as ae from "react";
4
- import tt, { useRef as G, useEffect as $, useState as P, useCallback as U, useSyncExternalStore as Pt, createContext as $s, useContext as te, useId as lo, forwardRef as uo, useMemo as it, Suspense as jt, lazy as Me, useReducer as Tt } from "react";
4
+ import tt, { useRef as J, useEffect as $, useState as P, useCallback as U, useSyncExternalStore as Pt, createContext as $s, useContext as te, useId as lo, forwardRef as uo, useMemo as it, Suspense as jt, lazy as Me, useReducer as Tt } from "react";
5
5
  import O from "clsx";
6
6
  import { computePosition as Ms, offset as po, flip as mo, shift as ho, arrow as Ps, useMergeRefs as Pr, FloatingPortal as fo, FloatingOverlay as Rs, FloatingFocusManager as go, useFloating as vo, useClick as yo, useDismiss as _o, useRole as bo, useInteractions as wo, FloatingTree as Zs, useFloatingTree as Io, useFloatingNodeId as Ds, useListItem as Eo, autoUpdate as Ls, useListNavigation as Us, useTypeahead as Bs, FloatingNode as js, FloatingList as Vs } from "@floating-ui/react";
7
7
  const dn = ["mousedown", "touchstart"];
8
8
  function Fs(e, t, r) {
9
- const n = G(null);
9
+ const n = J(null);
10
10
  return $(() => {
11
11
  const o = (a) => {
12
12
  const i = a ? a.target : void 0;
@@ -77,7 +77,7 @@ function Rr(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
77
77
  }, [e, t, r]);
78
78
  }
79
79
  function qs(e, t) {
80
- const [r, n] = P(!1), o = G(null), a = G(null), i = U(() => {
80
+ const [r, n] = P(!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;
@@ -85,7 +85,7 @@ function qs(e, t) {
85
85
  return $(() => (a.current = e, r && i(), s), [e, r, i, s]), { start: i, stop: s, active: r };
86
86
  }
87
87
  function Ys() {
88
- const e = G(null), [t, r] = P(!1);
88
+ const e = J(null), [t, r] = P(!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))
@@ -172,7 +172,7 @@ const ti = ({
172
172
  monotone: n,
173
173
  ...o
174
174
  }) => /* @__PURE__ */ u(
175
- Y,
175
+ q,
176
176
  {
177
177
  defaultViewBox: "0 0 448 512",
178
178
  size: "size-5",
@@ -189,7 +189,7 @@ const ti = ({
189
189
  monotone: n,
190
190
  ...o
191
191
  }) => /* @__PURE__ */ u(
192
- Y,
192
+ q,
193
193
  {
194
194
  defaultViewBox: "0 0 24 24",
195
195
  size: "size-5",
@@ -205,8 +205,8 @@ const ti = ({
205
205
  title: r,
206
206
  monotone: n,
207
207
  ...o
208
- }) => /* @__PURE__ */ x(
209
- Y,
208
+ }) => /* @__PURE__ */ k(
209
+ q,
210
210
  {
211
211
  defaultViewBox: "0 0 512 512",
212
212
  size: "size-5",
@@ -231,8 +231,8 @@ const ti = ({
231
231
  title: r,
232
232
  monotone: n,
233
233
  ...o
234
- }) => /* @__PURE__ */ x(
235
- Y,
234
+ }) => /* @__PURE__ */ k(
235
+ q,
236
236
  {
237
237
  defaultViewBox: "0 0 448 512",
238
238
  size: "size-5",
@@ -257,8 +257,8 @@ const ti = ({
257
257
  title: r,
258
258
  monotone: n,
259
259
  ...o
260
- }) => /* @__PURE__ */ x(
261
- Y,
260
+ }) => /* @__PURE__ */ k(
261
+ q,
262
262
  {
263
263
  defaultViewBox: "0 0 448 512",
264
264
  size: "size-5",
@@ -284,7 +284,7 @@ const ti = ({
284
284
  monotone: n,
285
285
  ...o
286
286
  }) => /* @__PURE__ */ u(
287
- Y,
287
+ q,
288
288
  {
289
289
  defaultViewBox: "0 0 384 512",
290
290
  size: "size-5",
@@ -307,7 +307,7 @@ const ti = ({
307
307
  monotone: n,
308
308
  ...o
309
309
  }) => /* @__PURE__ */ u(
310
- Y,
310
+ q,
311
311
  {
312
312
  defaultViewBox: "0 0 384 512",
313
313
  size: "size-5",
@@ -323,8 +323,8 @@ const ti = ({
323
323
  title: r,
324
324
  monotone: n,
325
325
  ...o
326
- }) => /* @__PURE__ */ x(
327
- Y,
326
+ }) => /* @__PURE__ */ k(
327
+ q,
328
328
  {
329
329
  defaultViewBox: "0 0 384 512",
330
330
  size: "size-5",
@@ -349,8 +349,8 @@ const ti = ({
349
349
  title: r,
350
350
  monotone: n,
351
351
  ...o
352
- }) => /* @__PURE__ */ x(
353
- Y,
352
+ }) => /* @__PURE__ */ k(
353
+ q,
354
354
  {
355
355
  defaultViewBox: "0 0 512 512",
356
356
  size: "size-5",
@@ -376,7 +376,7 @@ const ti = ({
376
376
  monotone: n,
377
377
  ...o
378
378
  }) => /* @__PURE__ */ u(
379
- Y,
379
+ q,
380
380
  {
381
381
  defaultViewBox: "0 0 24 24",
382
382
  size: "size-5",
@@ -392,8 +392,8 @@ const ti = ({
392
392
  title: r,
393
393
  monotone: n,
394
394
  ...o
395
- }) => /* @__PURE__ */ x(
396
- Y,
395
+ }) => /* @__PURE__ */ k(
396
+ q,
397
397
  {
398
398
  defaultViewBox: "0 0 512 512",
399
399
  size: "size-5",
@@ -418,8 +418,8 @@ const ti = ({
418
418
  title: r,
419
419
  monotone: n,
420
420
  ...o
421
- }) => /* @__PURE__ */ x(
422
- Y,
421
+ }) => /* @__PURE__ */ k(
422
+ q,
423
423
  {
424
424
  defaultViewBox: "0 0 512 512",
425
425
  size: "size-5",
@@ -444,8 +444,8 @@ const ti = ({
444
444
  title: r,
445
445
  monotone: n,
446
446
  ...o
447
- }) => /* @__PURE__ */ x(
448
- Y,
447
+ }) => /* @__PURE__ */ k(
448
+ q,
449
449
  {
450
450
  defaultViewBox: "0 0 384 512",
451
451
  size: "size-5",
@@ -470,8 +470,8 @@ const ti = ({
470
470
  title: r,
471
471
  monotone: n,
472
472
  ...o
473
- }) => /* @__PURE__ */ x(
474
- Y,
473
+ }) => /* @__PURE__ */ k(
474
+ q,
475
475
  {
476
476
  defaultViewBox: "0 0 448 512",
477
477
  size: "size-5",
@@ -496,8 +496,8 @@ const ti = ({
496
496
  title: r,
497
497
  monotone: n,
498
498
  ...o
499
- }) => /* @__PURE__ */ x(
500
- Y,
499
+ }) => /* @__PURE__ */ k(
500
+ q,
501
501
  {
502
502
  defaultViewBox: "0 0 576 512",
503
503
  size: "size-5",
@@ -523,7 +523,7 @@ const ti = ({
523
523
  monotone: n,
524
524
  ...o
525
525
  }) => /* @__PURE__ */ u(
526
- Y,
526
+ q,
527
527
  {
528
528
  defaultViewBox: "0 0 24 24",
529
529
  size: "size-5",
@@ -539,8 +539,8 @@ const ti = ({
539
539
  title: r,
540
540
  monotone: n,
541
541
  ...o
542
- }) => /* @__PURE__ */ x(
543
- Y,
542
+ }) => /* @__PURE__ */ k(
543
+ q,
544
544
  {
545
545
  defaultViewBox: "0 0 576 512",
546
546
  size: "size-5",
@@ -565,8 +565,8 @@ const ti = ({
565
565
  title: r,
566
566
  monotone: n,
567
567
  ...o
568
- }) => /* @__PURE__ */ x(
569
- Y,
568
+ }) => /* @__PURE__ */ k(
569
+ q,
570
570
  {
571
571
  defaultViewBox: "0 0 576 512",
572
572
  size: "size-5",
@@ -591,8 +591,8 @@ const ti = ({
591
591
  title: r,
592
592
  monotone: n,
593
593
  ...o
594
- }) => /* @__PURE__ */ x(
595
- Y,
594
+ }) => /* @__PURE__ */ k(
595
+ q,
596
596
  {
597
597
  defaultViewBox: "0 0 512 512",
598
598
  size: "size-5",
@@ -617,8 +617,8 @@ const ti = ({
617
617
  title: r,
618
618
  monotone: n,
619
619
  ...o
620
- }) => /* @__PURE__ */ x(
621
- Y,
620
+ }) => /* @__PURE__ */ k(
621
+ q,
622
622
  {
623
623
  defaultViewBox: "0 0 512 512",
624
624
  size: "size-5",
@@ -644,7 +644,7 @@ const ti = ({
644
644
  monotone: n,
645
645
  ...o
646
646
  }) => /* @__PURE__ */ u(
647
- Y,
647
+ q,
648
648
  {
649
649
  defaultViewBox: "0 0 448 512",
650
650
  size: "size-5",
@@ -660,8 +660,8 @@ const ti = ({
660
660
  title: r,
661
661
  monotone: n,
662
662
  ...o
663
- }) => /* @__PURE__ */ x(
664
- Y,
663
+ }) => /* @__PURE__ */ k(
664
+ q,
665
665
  {
666
666
  defaultViewBox: "0 0 512 512",
667
667
  size: "size-5",
@@ -686,8 +686,8 @@ const ti = ({
686
686
  title: r,
687
687
  monotone: n,
688
688
  ...o
689
- }) => /* @__PURE__ */ x(
690
- Y,
689
+ }) => /* @__PURE__ */ k(
690
+ q,
691
691
  {
692
692
  defaultViewBox: "0 0 448 512",
693
693
  size: "size-5",
@@ -723,7 +723,7 @@ try {
723
723
  });
724
724
  } catch {
725
725
  }
726
- var xo = "vercel.ai.error", Ti = Symbol.for(xo), ko, Si = class Co extends Error {
726
+ var ko = "vercel.ai.error", Ti = Symbol.for(ko), xo, Si = class Co extends Error {
727
727
  /**
728
728
  * Creates an AI SDK Error.
729
729
  *
@@ -737,7 +737,7 @@ var xo = "vercel.ai.error", Ti = Symbol.for(xo), ko, Si = class Co extends Error
737
737
  message: r,
738
738
  cause: n
739
739
  }) {
740
- super(r), this[ko] = !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,19 +745,19 @@ var xo = "vercel.ai.error", Ti = Symbol.for(xo), ko, Si = class Co 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 Co.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
- ko = Ti;
755
+ xo = Ti;
756
756
  var Ne = Si;
757
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 zo = "AI_InvalidArgumentError", Ao = `vercel.ai.error.${zo}`, xi = Symbol.for(Ao), Oo, ki = class extends Ne {
760
+ var zo = "AI_InvalidArgumentError", Ao = `vercel.ai.error.${zo}`, ki = Symbol.for(Ao), Oo, xi = class extends Ne {
761
761
  constructor({
762
762
  message: e,
763
763
  cause: t,
@@ -769,7 +769,7 @@ var zo = "AI_InvalidArgumentError", Ao = `vercel.ai.error.${zo}`, xi = Symbol.fo
769
769
  return Ne.hasMarker(e, Ao);
770
770
  }
771
771
  };
772
- Oo = xi;
772
+ Oo = ki;
773
773
  var $o = "AI_JSONParseError", Mo = `vercel.ai.error.${$o}`, Ci = Symbol.for(Mo), Po, fn = class extends Ne {
774
774
  constructor({ text: e, cause: t }) {
775
775
  super({
@@ -1360,7 +1360,7 @@ const _c = (e) => {
1360
1360
  continue: !t.abort
1361
1361
  });
1362
1362
  };
1363
- }), xc = /* @__PURE__ */ y("$ZodCheckMultipleOf", (e, t) => {
1363
+ }), kc = /* @__PURE__ */ y("$ZodCheckMultipleOf", (e, t) => {
1364
1364
  ue.init(e, t), e._zod.onattach.push((r) => {
1365
1365
  var n;
1366
1366
  (n = r._zod.bag).multipleOf ?? (n.multipleOf = t.value);
@@ -1376,7 +1376,7 @@ const _c = (e) => {
1376
1376
  continue: !t.abort
1377
1377
  });
1378
1378
  };
1379
- }), kc = /* @__PURE__ */ y("$ZodCheckNumberFormat", (e, t) => {
1379
+ }), xc = /* @__PURE__ */ y("$ZodCheckNumberFormat", (e, t) => {
1380
1380
  ue.init(e, t), t.format = t.format || "float64";
1381
1381
  const r = t.format?.includes("int"), n = r ? "int" : "number", [o, a] = Li[t.format];
1382
1382
  e._zod.onattach.push((i) => {
@@ -1689,10 +1689,10 @@ const Lc = {
1689
1689
  inst: e
1690
1690
  }), r;
1691
1691
  };
1692
- }), W = /* @__PURE__ */ y("$ZodStringFormat", (e, t) => {
1692
+ }), G = /* @__PURE__ */ y("$ZodStringFormat", (e, t) => {
1693
1693
  Kt.init(e, t), Br.init(e, t);
1694
1694
  }), Uc = /* @__PURE__ */ y("$ZodGUID", (e, t) => {
1695
- t.pattern ?? (t.pattern = ac), W.init(e, t);
1695
+ t.pattern ?? (t.pattern = ac), G.init(e, t);
1696
1696
  }), Bc = /* @__PURE__ */ y("$ZodUUID", (e, t) => {
1697
1697
  if (t.version) {
1698
1698
  const n = {
@@ -1710,11 +1710,11 @@ const Lc = {
1710
1710
  t.pattern ?? (t.pattern = vn(n));
1711
1711
  } else
1712
1712
  t.pattern ?? (t.pattern = vn());
1713
- W.init(e, t);
1713
+ G.init(e, t);
1714
1714
  }), jc = /* @__PURE__ */ y("$ZodEmail", (e, t) => {
1715
- t.pattern ?? (t.pattern = sc), W.init(e, t);
1715
+ t.pattern ?? (t.pattern = sc), G.init(e, t);
1716
1716
  }), Vc = /* @__PURE__ */ y("$ZodURL", (e, t) => {
1717
- W.init(e, t), e._zod.check = (r) => {
1717
+ G.init(e, t), e._zod.check = (r) => {
1718
1718
  try {
1719
1719
  const n = r.value, o = new URL(n), a = o.href;
1720
1720
  t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(o.hostname) || r.issues.push({
@@ -1746,34 +1746,34 @@ const Lc = {
1746
1746
  }
1747
1747
  };
1748
1748
  }), Fc = /* @__PURE__ */ y("$ZodEmoji", (e, t) => {
1749
- t.pattern ?? (t.pattern = cc()), W.init(e, t);
1749
+ t.pattern ?? (t.pattern = cc()), G.init(e, t);
1750
1750
  }), Hc = /* @__PURE__ */ y("$ZodNanoID", (e, t) => {
1751
- t.pattern ?? (t.pattern = nc), W.init(e, t);
1751
+ t.pattern ?? (t.pattern = nc), G.init(e, t);
1752
1752
  }), Jc = /* @__PURE__ */ y("$ZodCUID", (e, t) => {
1753
- t.pattern ?? (t.pattern = Qi), W.init(e, t);
1753
+ t.pattern ?? (t.pattern = Qi), G.init(e, t);
1754
1754
  }), Gc = /* @__PURE__ */ y("$ZodCUID2", (e, t) => {
1755
- t.pattern ?? (t.pattern = Ki), W.init(e, t);
1755
+ t.pattern ?? (t.pattern = Ki), G.init(e, t);
1756
1756
  }), Wc = /* @__PURE__ */ y("$ZodULID", (e, t) => {
1757
- t.pattern ?? (t.pattern = ec), W.init(e, t);
1757
+ t.pattern ?? (t.pattern = ec), G.init(e, t);
1758
1758
  }), qc = /* @__PURE__ */ y("$ZodXID", (e, t) => {
1759
- t.pattern ?? (t.pattern = tc), W.init(e, t);
1759
+ t.pattern ?? (t.pattern = tc), G.init(e, t);
1760
1760
  }), Yc = /* @__PURE__ */ y("$ZodKSUID", (e, t) => {
1761
- t.pattern ?? (t.pattern = rc), W.init(e, t);
1761
+ t.pattern ?? (t.pattern = rc), G.init(e, t);
1762
1762
  }), Xc = /* @__PURE__ */ y("$ZodISODateTime", (e, t) => {
1763
- t.pattern ?? (t.pattern = yc(t)), W.init(e, t);
1763
+ t.pattern ?? (t.pattern = yc(t)), G.init(e, t);
1764
1764
  }), Qc = /* @__PURE__ */ y("$ZodISODate", (e, t) => {
1765
- t.pattern ?? (t.pattern = gc), W.init(e, t);
1765
+ t.pattern ?? (t.pattern = gc), G.init(e, t);
1766
1766
  }), Kc = /* @__PURE__ */ y("$ZodISOTime", (e, t) => {
1767
- t.pattern ?? (t.pattern = vc(t)), W.init(e, t);
1767
+ t.pattern ?? (t.pattern = vc(t)), G.init(e, t);
1768
1768
  }), el = /* @__PURE__ */ y("$ZodISODuration", (e, t) => {
1769
- t.pattern ?? (t.pattern = oc), W.init(e, t);
1769
+ t.pattern ?? (t.pattern = oc), G.init(e, t);
1770
1770
  }), tl = /* @__PURE__ */ y("$ZodIPv4", (e, t) => {
1771
- t.pattern ?? (t.pattern = lc), W.init(e, t), e._zod.onattach.push((r) => {
1771
+ t.pattern ?? (t.pattern = lc), G.init(e, t), e._zod.onattach.push((r) => {
1772
1772
  const n = r._zod.bag;
1773
1773
  n.format = "ipv4";
1774
1774
  });
1775
1775
  }), rl = /* @__PURE__ */ y("$ZodIPv6", (e, t) => {
1776
- t.pattern ?? (t.pattern = uc), W.init(e, t), e._zod.onattach.push((r) => {
1776
+ t.pattern ?? (t.pattern = uc), G.init(e, t), e._zod.onattach.push((r) => {
1777
1777
  const n = r._zod.bag;
1778
1778
  n.format = "ipv6";
1779
1779
  }), e._zod.check = (r) => {
@@ -1790,9 +1790,9 @@ const Lc = {
1790
1790
  }
1791
1791
  };
1792
1792
  }), nl = /* @__PURE__ */ y("$ZodCIDRv4", (e, t) => {
1793
- t.pattern ?? (t.pattern = dc), W.init(e, t);
1793
+ t.pattern ?? (t.pattern = dc), G.init(e, t);
1794
1794
  }), ol = /* @__PURE__ */ y("$ZodCIDRv6", (e, t) => {
1795
- t.pattern ?? (t.pattern = pc), W.init(e, t), e._zod.check = (r) => {
1795
+ t.pattern ?? (t.pattern = pc), G.init(e, t), e._zod.check = (r) => {
1796
1796
  const [n, o] = r.value.split("/");
1797
1797
  try {
1798
1798
  if (!o)
@@ -1826,7 +1826,7 @@ function Ko(e) {
1826
1826
  }
1827
1827
  }
1828
1828
  const al = /* @__PURE__ */ y("$ZodBase64", (e, t) => {
1829
- t.pattern ?? (t.pattern = mc), W.init(e, t), e._zod.onattach.push((r) => {
1829
+ t.pattern ?? (t.pattern = mc), G.init(e, t), e._zod.onattach.push((r) => {
1830
1830
  r._zod.bag.contentEncoding = "base64";
1831
1831
  }), e._zod.check = (r) => {
1832
1832
  Ko(r.value) || r.issues.push({
@@ -1845,7 +1845,7 @@ function sl(e) {
1845
1845
  return Ko(r);
1846
1846
  }
1847
1847
  const il = /* @__PURE__ */ y("$ZodBase64URL", (e, t) => {
1848
- t.pattern ?? (t.pattern = Go), W.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
  sl(r.value) || r.issues.push({
@@ -1857,7 +1857,7 @@ const il = /* @__PURE__ */ y("$ZodBase64URL", (e, t) => {
1857
1857
  });
1858
1858
  };
1859
1859
  }), cl = /* @__PURE__ */ y("$ZodE164", (e, t) => {
1860
- t.pattern ?? (t.pattern = fc), W.init(e, t);
1860
+ t.pattern ?? (t.pattern = fc), G.init(e, t);
1861
1861
  });
1862
1862
  function ll(e, t = null) {
1863
1863
  try {
@@ -1874,7 +1874,7 @@ function ll(e, t = null) {
1874
1874
  }
1875
1875
  }
1876
1876
  const ul = /* @__PURE__ */ y("$ZodJWT", (e, t) => {
1877
- W.init(e, t), e._zod.check = (r) => {
1877
+ G.init(e, t), e._zod.check = (r) => {
1878
1878
  ll(r.value, t.alg) || r.issues.push({
1879
1879
  code: "invalid_format",
1880
1880
  format: "jwt",
@@ -1903,7 +1903,7 @@ const ul = /* @__PURE__ */ y("$ZodJWT", (e, t) => {
1903
1903
  }), r;
1904
1904
  };
1905
1905
  }), dl = /* @__PURE__ */ y("$ZodNumber", (e, t) => {
1906
- kc.init(e, t), ea.init(e, t);
1906
+ xc.init(e, t), ea.init(e, t);
1907
1907
  }), pl = /* @__PURE__ */ y("$ZodBoolean", (e, t) => {
1908
1908
  B.init(e, t), e._zod.pattern = Ic, e._zod.parse = (r, n) => {
1909
1909
  if (t.coerce)
@@ -1964,7 +1964,7 @@ const gl = /* @__PURE__ */ y("$ZodArray", (e, t) => {
1964
1964
  return a.length ? Promise.all(a).then(() => r) : r;
1965
1965
  };
1966
1966
  });
1967
- function xt(e, t, r) {
1967
+ function kt(e, t, r) {
1968
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) {
@@ -2066,8 +2066,8 @@ const vl = /* @__PURE__ */ y("$ZodObject", (e, t) => {
2066
2066
  d.value = {};
2067
2067
  const E = p.shape;
2068
2068
  for (const b of p.keys) {
2069
- const R = E[b], z = R._zod.run({ value: f[b], issues: [] }, g), k = R._zod.optin === "optional" && R._zod.optout === "optional";
2070
- z instanceof Promise ? m.push(z.then((A) => k ? _n(A, d, b, f) : xt(A, d, b))) : k ? _n(z, d, b, f) : xt(z, d, b);
2069
+ const R = E[b], z = R._zod.run({ value: f[b], issues: [] }, g), x = R._zod.optin === "optional" && R._zod.optout === "optional";
2070
+ z instanceof Promise ? m.push(z.then((A) => x ? _n(A, d, b, f) : kt(A, d, b))) : x ? _n(z, d, b, f) : kt(z, d, b);
2071
2071
  }
2072
2072
  }
2073
2073
  if (!c)
@@ -2081,7 +2081,7 @@ const vl = /* @__PURE__ */ y("$ZodObject", (e, t) => {
2081
2081
  continue;
2082
2082
  }
2083
2083
  const b = I.run({ value: f[E], issues: [] }, g);
2084
- b instanceof Promise ? m.push(b.then((R) => xt(R, d, E))) : xt(b, d, E);
2084
+ b instanceof Promise ? m.push(b.then((R) => kt(R, d, E))) : kt(b, d, E);
2085
2085
  }
2086
2086
  return h.length && d.issues.push({
2087
2087
  code: "unrecognized_keys",
@@ -2326,7 +2326,7 @@ const bl = /* @__PURE__ */ y("$ZodRecord", (e, t) => {
2326
2326
  const r = t.innerType._zod.pattern;
2327
2327
  return r ? new RegExp(`^(${Lr(r.source)}|null)$`) : void 0;
2328
2328
  }), Z(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (r, n) => r.value === null ? r : t.innerType._zod.run(r, n);
2329
- }), xl = /* @__PURE__ */ y("$ZodDefault", (e, t) => {
2329
+ }), kl = /* @__PURE__ */ y("$ZodDefault", (e, t) => {
2330
2330
  B.init(e, t), e._zod.optin = "optional", Z(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
2331
2331
  if (r.value === void 0)
2332
2332
  return r.value = t.defaultValue, r;
@@ -2337,7 +2337,7 @@ const bl = /* @__PURE__ */ y("$ZodRecord", (e, t) => {
2337
2337
  function In(e, t) {
2338
2338
  return e.value === void 0 && (e.value = t.defaultValue), e;
2339
2339
  }
2340
- const kl = /* @__PURE__ */ y("$ZodPrefault", (e, t) => {
2340
+ const xl = /* @__PURE__ */ y("$ZodPrefault", (e, t) => {
2341
2341
  B.init(e, t), e._zod.optin = "optional", Z(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => (r.value === void 0 && (r.value = t.defaultValue), t.innerType._zod.run(r, n));
2342
2342
  }), Cl = /* @__PURE__ */ y("$ZodNonOptional", (e, t) => {
2343
2343
  B.init(e, t), Z(e._zod, "values", () => {
@@ -2397,11 +2397,11 @@ const Ol = /* @__PURE__ */ y("$ZodLazy", (e, t) => {
2397
2397
  ue.init(e, t), B.init(e, t), e._zod.parse = (r, n) => r, e._zod.check = (r) => {
2398
2398
  const n = r.value, o = t.fn(n);
2399
2399
  if (o instanceof Promise)
2400
- return o.then((a) => xn(a, r, n, e));
2401
- xn(o, r, n, e);
2400
+ return o.then((a) => kn(a, r, n, e));
2401
+ kn(o, r, n, e);
2402
2402
  };
2403
2403
  });
2404
- function xn(e, t, r, n) {
2404
+ function kn(e, t, r, n) {
2405
2405
  if (!e) {
2406
2406
  const o = {
2407
2407
  code: "custom",
@@ -2467,7 +2467,7 @@ function Rl(e, t) {
2467
2467
  ...S(t)
2468
2468
  });
2469
2469
  }
2470
- function kn(e, t) {
2470
+ function xn(e, t) {
2471
2471
  return new e({
2472
2472
  type: "string",
2473
2473
  format: "guid",
@@ -2767,7 +2767,7 @@ function dr(e, t) {
2767
2767
  });
2768
2768
  }
2769
2769
  function zn(e, t) {
2770
- return new xc({
2770
+ return new kc({
2771
2771
  check: "multiple_of",
2772
2772
  ...S(t),
2773
2773
  value: e
@@ -3395,26 +3395,26 @@ function K(e, t) {
3395
3395
  }
3396
3396
  throw new Error(`Unknown schema type: ${o.type}`);
3397
3397
  }
3398
- const xu = /* @__PURE__ */ y("ZodISODateTime", (e, t) => {
3399
- Xc.init(e, t), X.init(e, t);
3398
+ const ku = /* @__PURE__ */ y("ZodISODateTime", (e, t) => {
3399
+ Xc.init(e, t), Y.init(e, t);
3400
3400
  });
3401
- function ku(e) {
3402
- return ru(xu, e);
3401
+ function xu(e) {
3402
+ return ru(ku, e);
3403
3403
  }
3404
3404
  const Cu = /* @__PURE__ */ y("ZodISODate", (e, t) => {
3405
- Qc.init(e, t), X.init(e, t);
3405
+ Qc.init(e, t), Y.init(e, t);
3406
3406
  });
3407
3407
  function Nu(e) {
3408
3408
  return nu(Cu, e);
3409
3409
  }
3410
3410
  const zu = /* @__PURE__ */ y("ZodISOTime", (e, t) => {
3411
- Kc.init(e, t), X.init(e, t);
3411
+ Kc.init(e, t), Y.init(e, t);
3412
3412
  });
3413
3413
  function Au(e) {
3414
3414
  return ou(zu, e);
3415
3415
  }
3416
3416
  const Ou = /* @__PURE__ */ y("ZodISODuration", (e, t) => {
3417
- el.init(e, t), X.init(e, t);
3417
+ el.init(e, t), Y.init(e, t);
3418
3418
  });
3419
3419
  function $u(e) {
3420
3420
  return au(Ou, e);
@@ -3446,7 +3446,7 @@ const Mu = (e, t) => {
3446
3446
  });
3447
3447
  }, er = y("ZodError", Mu, {
3448
3448
  Parent: Error
3449
- }), Pu = /* @__PURE__ */ Wi(er), Ru = /* @__PURE__ */ qi(er), Zu = /* @__PURE__ */ Ho(er), sa = /* @__PURE__ */ Jo(er), q = /* @__PURE__ */ y("ZodType", (e, t) => (B.init(e, t), e.def = t, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(
3449
+ }), Pu = /* @__PURE__ */ Wi(er), Ru = /* @__PURE__ */ qi(er), Zu = /* @__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 Mu = (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) => Pu(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => Zu(e, r, n), e.parseAsync = async (r, n) => Ru(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(Ad(r, n)), e.superRefine = (r) => e.check(Od(r)), e.overwrite = (r) => e.check(yt(r)), e.optional = () => Q(e), e.nullable = () => Mn(e), e.nullish = () => Q(Mn(e)), e.nonoptional = (r) => wd(e, r), e.array = () => Ee(e), e.or = (r) => ee([e, r]), e.and = (r) => dd(e, r), e.transform = (r) => Pn(e, fd(r)), e.default = (r) => yd(e, r), e.prefault = (r) => bd(e, r), e.catch = (r) => Ed(e, r), e.pipe = (r) => Pn(e, r), e.readonly = () => xd(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) => Pu(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => Zu(e, r, n), e.parseAsync = async (r, n) => Ru(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(Ad(r, n)), e.superRefine = (r) => e.check(Od(r)), e.overwrite = (r) => e.check(yt(r)), e.optional = () => Q(e), e.nullable = () => Mn(e), e.nullish = () => Q(Mn(e)), e.nonoptional = (r) => wd(e, r), e.array = () => Ee(e), e.or = (r) => ee([e, r]), e.and = (r) => dd(e, r), e.transform = (r) => Pn(e, fd(r)), e.default = (r) => yd(e, r), e.prefault = (r) => bd(e, r), e.catch = (r) => Ed(e, r), e.pipe = (r) => Pn(e, r), e.readonly = () => kd(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", {
@@ -3469,61 +3469,61 @@ const Mu = (e, t) => {
3469
3469
  const n = e.clone();
3470
3470
  return nt.add(n, r[0]), n;
3471
3471
  }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), ia = /* @__PURE__ */ y("_ZodString", (e, t) => {
3472
- Br.init(e, t), q.init(e, t);
3472
+ Br.init(e, t), W.init(e, t);
3473
3473
  const r = e._zod.bag;
3474
3474
  e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(pu(...n)), e.includes = (...n) => e.check(fu(...n)), e.startsWith = (...n) => e.check(gu(...n)), e.endsWith = (...n) => e.check(vu(...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(mu(n)), e.uppercase = (n) => e.check(hu(n)), e.trim = () => e.check(_u()), e.normalize = (...n) => e.check(yu(...n)), e.toLowerCase = () => e.check(bu()), e.toUpperCase = () => e.check(wu());
3475
3475
  }), Du = /* @__PURE__ */ y("ZodString", (e, t) => {
3476
- Br.init(e, t), ia.init(e, t), e.email = (r) => e.check(Rl(Lu, r)), e.url = (r) => e.check(Bl(Uu, r)), e.jwt = (r) => e.check(tu(ed, r)), e.emoji = (r) => e.check(jl(Bu, r)), e.guid = (r) => e.check(kn(On, r)), e.uuid = (r) => e.check(Zl(kt, r)), e.uuidv4 = (r) => e.check(Dl(kt, r)), e.uuidv6 = (r) => e.check(Ll(kt, r)), e.uuidv7 = (r) => e.check(Ul(kt, r)), e.nanoid = (r) => e.check(Vl(ju, r)), e.guid = (r) => e.check(kn(On, r)), e.cuid = (r) => e.check(Fl(Vu, r)), e.cuid2 = (r) => e.check(Hl(Fu, r)), e.ulid = (r) => e.check(Jl(Hu, r)), e.base64 = (r) => e.check(na(ca, r)), e.base64url = (r) => e.check(Kl(Qu, r)), e.xid = (r) => e.check(Gl(Ju, r)), e.ksuid = (r) => e.check(Wl(Gu, r)), e.ipv4 = (r) => e.check(ql(Wu, r)), e.ipv6 = (r) => e.check(Yl(qu, r)), e.cidrv4 = (r) => e.check(Xl(Yu, r)), e.cidrv6 = (r) => e.check(Ql(Xu, r)), e.e164 = (r) => e.check(eu(Ku, r)), e.datetime = (r) => e.check(ku(r)), e.date = (r) => e.check(Nu(r)), e.time = (r) => e.check(Au(r)), e.duration = (r) => e.check($u(r));
3476
+ Br.init(e, t), ia.init(e, t), e.email = (r) => e.check(Rl(Lu, r)), e.url = (r) => e.check(Bl(Uu, r)), e.jwt = (r) => e.check(tu(ed, r)), e.emoji = (r) => e.check(jl(Bu, r)), e.guid = (r) => e.check(xn(On, r)), e.uuid = (r) => e.check(Zl(xt, r)), e.uuidv4 = (r) => e.check(Dl(xt, r)), e.uuidv6 = (r) => e.check(Ll(xt, r)), e.uuidv7 = (r) => e.check(Ul(xt, r)), e.nanoid = (r) => e.check(Vl(ju, r)), e.guid = (r) => e.check(xn(On, r)), e.cuid = (r) => e.check(Fl(Vu, r)), e.cuid2 = (r) => e.check(Hl(Fu, r)), e.ulid = (r) => e.check(Jl(Hu, r)), e.base64 = (r) => e.check(na(ca, r)), e.base64url = (r) => e.check(Kl(Qu, r)), e.xid = (r) => e.check(Gl(Ju, r)), e.ksuid = (r) => e.check(Wl(Gu, r)), e.ipv4 = (r) => e.check(ql(Wu, r)), e.ipv6 = (r) => e.check(Yl(qu, r)), e.cidrv4 = (r) => e.check(Xl(Yu, r)), e.cidrv6 = (r) => e.check(Ql(Xu, r)), e.e164 = (r) => e.check(eu(Ku, r)), e.datetime = (r) => e.check(xu(r)), e.date = (r) => e.check(Nu(r)), e.time = (r) => e.check(Au(r)), e.duration = (r) => e.check($u(r));
3477
3477
  });
3478
3478
  function w(e) {
3479
3479
  return Pl(Du, e);
3480
3480
  }
3481
- const X = /* @__PURE__ */ y("ZodStringFormat", (e, t) => {
3482
- W.init(e, t), ia.init(e, t);
3481
+ const Y = /* @__PURE__ */ y("ZodStringFormat", (e, t) => {
3482
+ G.init(e, t), ia.init(e, t);
3483
3483
  }), Lu = /* @__PURE__ */ y("ZodEmail", (e, t) => {
3484
- jc.init(e, t), X.init(e, t);
3484
+ jc.init(e, t), Y.init(e, t);
3485
3485
  }), On = /* @__PURE__ */ y("ZodGUID", (e, t) => {
3486
- Uc.init(e, t), X.init(e, t);
3487
- }), kt = /* @__PURE__ */ y("ZodUUID", (e, t) => {
3488
- Bc.init(e, t), X.init(e, t);
3486
+ Uc.init(e, t), Y.init(e, t);
3487
+ }), xt = /* @__PURE__ */ y("ZodUUID", (e, t) => {
3488
+ Bc.init(e, t), Y.init(e, t);
3489
3489
  }), Uu = /* @__PURE__ */ y("ZodURL", (e, t) => {
3490
- Vc.init(e, t), X.init(e, t);
3490
+ Vc.init(e, t), Y.init(e, t);
3491
3491
  }), Bu = /* @__PURE__ */ y("ZodEmoji", (e, t) => {
3492
- Fc.init(e, t), X.init(e, t);
3492
+ Fc.init(e, t), Y.init(e, t);
3493
3493
  }), ju = /* @__PURE__ */ y("ZodNanoID", (e, t) => {
3494
- Hc.init(e, t), X.init(e, t);
3494
+ Hc.init(e, t), Y.init(e, t);
3495
3495
  }), Vu = /* @__PURE__ */ y("ZodCUID", (e, t) => {
3496
- Jc.init(e, t), X.init(e, t);
3496
+ Jc.init(e, t), Y.init(e, t);
3497
3497
  }), Fu = /* @__PURE__ */ y("ZodCUID2", (e, t) => {
3498
- Gc.init(e, t), X.init(e, t);
3498
+ Gc.init(e, t), Y.init(e, t);
3499
3499
  }), Hu = /* @__PURE__ */ y("ZodULID", (e, t) => {
3500
- Wc.init(e, t), X.init(e, t);
3500
+ Wc.init(e, t), Y.init(e, t);
3501
3501
  }), Ju = /* @__PURE__ */ y("ZodXID", (e, t) => {
3502
- qc.init(e, t), X.init(e, t);
3502
+ qc.init(e, t), Y.init(e, t);
3503
3503
  }), Gu = /* @__PURE__ */ y("ZodKSUID", (e, t) => {
3504
- Yc.init(e, t), X.init(e, t);
3504
+ Yc.init(e, t), Y.init(e, t);
3505
3505
  }), Wu = /* @__PURE__ */ y("ZodIPv4", (e, t) => {
3506
- tl.init(e, t), X.init(e, t);
3506
+ tl.init(e, t), Y.init(e, t);
3507
3507
  }), qu = /* @__PURE__ */ y("ZodIPv6", (e, t) => {
3508
- rl.init(e, t), X.init(e, t);
3508
+ rl.init(e, t), Y.init(e, t);
3509
3509
  }), Yu = /* @__PURE__ */ y("ZodCIDRv4", (e, t) => {
3510
- nl.init(e, t), X.init(e, t);
3510
+ nl.init(e, t), Y.init(e, t);
3511
3511
  }), Xu = /* @__PURE__ */ y("ZodCIDRv6", (e, t) => {
3512
- ol.init(e, t), X.init(e, t);
3512
+ ol.init(e, t), Y.init(e, t);
3513
3513
  }), ca = /* @__PURE__ */ y("ZodBase64", (e, t) => {
3514
- al.init(e, t), X.init(e, t);
3514
+ al.init(e, t), Y.init(e, t);
3515
3515
  });
3516
3516
  function la(e) {
3517
3517
  return na(ca, e);
3518
3518
  }
3519
3519
  const Qu = /* @__PURE__ */ y("ZodBase64URL", (e, t) => {
3520
- il.init(e, t), X.init(e, t);
3520
+ il.init(e, t), Y.init(e, t);
3521
3521
  }), Ku = /* @__PURE__ */ y("ZodE164", (e, t) => {
3522
- cl.init(e, t), X.init(e, t);
3522
+ cl.init(e, t), Y.init(e, t);
3523
3523
  }), ed = /* @__PURE__ */ y("ZodJWT", (e, t) => {
3524
- ul.init(e, t), X.init(e, t);
3524
+ ul.init(e, t), Y.init(e, t);
3525
3525
  }), ua = /* @__PURE__ */ y("ZodNumber", (e, t) => {
3526
- ea.init(e, t), q.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;
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
  });
@@ -3537,37 +3537,37 @@ function $n(e) {
3537
3537
  return iu(td, e);
3538
3538
  }
3539
3539
  const rd = /* @__PURE__ */ y("ZodBoolean", (e, t) => {
3540
- pl.init(e, t), q.init(e, t);
3540
+ pl.init(e, t), W.init(e, t);
3541
3541
  });
3542
- function H(e) {
3542
+ function X(e) {
3543
3543
  return cu(rd, e);
3544
3544
  }
3545
3545
  const nd = /* @__PURE__ */ y("ZodNull", (e, t) => {
3546
- ml.init(e, t), q.init(e, t);
3546
+ ml.init(e, t), W.init(e, t);
3547
3547
  });
3548
3548
  function od(e) {
3549
3549
  return lu(nd, e);
3550
3550
  }
3551
3551
  const ad = /* @__PURE__ */ y("ZodUnknown", (e, t) => {
3552
- hl.init(e, t), q.init(e, t);
3552
+ hl.init(e, t), W.init(e, t);
3553
3553
  });
3554
- function J() {
3554
+ function H() {
3555
3555
  return uu(ad);
3556
3556
  }
3557
3557
  const sd = /* @__PURE__ */ y("ZodNever", (e, t) => {
3558
- fl.init(e, t), q.init(e, t);
3558
+ fl.init(e, t), W.init(e, t);
3559
3559
  });
3560
3560
  function le(e) {
3561
3561
  return du(sd, e);
3562
3562
  }
3563
3563
  const id = /* @__PURE__ */ y("ZodArray", (e, t) => {
3564
- gl.init(e, t), q.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;
3564
+ gl.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
3566
  function Ee(e, t) {
3567
3567
  return Iu(id, e, t);
3568
3568
  }
3569
3569
  const jr = /* @__PURE__ */ y("ZodObject", (e, t) => {
3570
- vl.init(e, t), q.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: J() }), e.loose = () => e.clone({ ...e._zod.def, catchall: J() }), e.strict = () => e.clone({ ...e._zod.def, catchall: le() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => ji(e, r), e.merge = (r) => Vi(e, r), e.pick = (r) => Ui(e, r), e.omit = (r) => Bi(e, r), e.partial = (...r) => Fi(pa, e, r[0]), e.required = (...r) => Hi(ma, e, r[0]);
3570
+ vl.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) => ji(e, r), e.merge = (r) => Vi(e, r), e.pick = (r) => Ui(e, r), e.omit = (r) => Bi(e, r), e.partial = (...r) => Fi(pa, e, r[0]), e.required = (...r) => Hi(ma, e, r[0]);
3571
3571
  });
3572
3572
  function C(e, t) {
3573
3573
  const r = {
@@ -3595,12 +3595,12 @@ function Xe(e, t) {
3595
3595
  get shape() {
3596
3596
  return gt(this, "shape", { ...e }), this.shape;
3597
3597
  },
3598
- catchall: J(),
3598
+ catchall: H(),
3599
3599
  ...S(t)
3600
3600
  });
3601
3601
  }
3602
3602
  const da = /* @__PURE__ */ y("ZodUnion", (e, t) => {
3603
- ta.init(e, t), q.init(e, t), e.options = t.options;
3603
+ ta.init(e, t), W.init(e, t), e.options = t.options;
3604
3604
  });
3605
3605
  function ee(e, t) {
3606
3606
  return new da({
@@ -3621,7 +3621,7 @@ function ld(e, t, r) {
3621
3621
  });
3622
3622
  }
3623
3623
  const ud = /* @__PURE__ */ y("ZodIntersection", (e, t) => {
3624
- _l.init(e, t), q.init(e, t);
3624
+ _l.init(e, t), W.init(e, t);
3625
3625
  });
3626
3626
  function dd(e, t) {
3627
3627
  return new ud({
@@ -3631,9 +3631,9 @@ function dd(e, t) {
3631
3631
  });
3632
3632
  }
3633
3633
  const pd = /* @__PURE__ */ y("ZodRecord", (e, t) => {
3634
- bl.init(e, t), q.init(e, t), e.keyType = t.keyType, e.valueType = t.valueType;
3634
+ bl.init(e, t), W.init(e, t), e.keyType = t.keyType, e.valueType = t.valueType;
3635
3635
  });
3636
- function xr(e, t, r) {
3636
+ function kr(e, t, r) {
3637
3637
  return new pd({
3638
3638
  type: "record",
3639
3639
  keyType: e,
@@ -3641,8 +3641,8 @@ function xr(e, t, r) {
3641
3641
  ...S(r)
3642
3642
  });
3643
3643
  }
3644
- const kr = /* @__PURE__ */ y("ZodEnum", (e, t) => {
3645
- wl.init(e, t), q.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
3644
+ const xr = /* @__PURE__ */ y("ZodEnum", (e, t) => {
3645
+ wl.init(e, t), W.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
3646
3646
  const r = new Set(Object.keys(t.entries));
3647
3647
  e.extract = (n, o) => {
3648
3648
  const a = {};
@@ -3651,7 +3651,7 @@ const kr = /* @__PURE__ */ y("ZodEnum", (e, t) => {
3651
3651
  a[i] = t.entries[i];
3652
3652
  else
3653
3653
  throw new Error(`Key ${i} not found in enum`);
3654
- return new kr({
3654
+ return new xr({
3655
3655
  ...t,
3656
3656
  checks: [],
3657
3657
  ...S(o),
@@ -3664,7 +3664,7 @@ const kr = /* @__PURE__ */ y("ZodEnum", (e, t) => {
3664
3664
  delete a[i];
3665
3665
  else
3666
3666
  throw new Error(`Key ${i} not found in enum`);
3667
- return new kr({
3667
+ return new xr({
3668
3668
  ...t,
3669
3669
  checks: [],
3670
3670
  ...S(o),
@@ -3674,14 +3674,14 @@ const kr = /* @__PURE__ */ y("ZodEnum", (e, t) => {
3674
3674
  });
3675
3675
  function tr(e, t) {
3676
3676
  const r = Array.isArray(e) ? Object.fromEntries(e.map((n) => [n, n])) : e;
3677
- return new kr({
3677
+ return new xr({
3678
3678
  type: "enum",
3679
3679
  entries: r,
3680
3680
  ...S(t)
3681
3681
  });
3682
3682
  }
3683
3683
  const md = /* @__PURE__ */ y("ZodLiteral", (e, t) => {
3684
- Il.init(e, t), q.init(e, t), e.values = new Set(t.values), Object.defineProperty(e, "value", {
3684
+ Il.init(e, t), W.init(e, t), e.values = new Set(t.values), Object.defineProperty(e, "value", {
3685
3685
  get() {
3686
3686
  if (t.values.length > 1)
3687
3687
  throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
@@ -3697,7 +3697,7 @@ function T(e, t) {
3697
3697
  });
3698
3698
  }
3699
3699
  const hd = /* @__PURE__ */ y("ZodTransform", (e, t) => {
3700
- El.init(e, t), q.init(e, t), e._zod.parse = (r, n) => {
3700
+ El.init(e, t), W.init(e, t), e._zod.parse = (r, n) => {
3701
3701
  r.addIssue = (a) => {
3702
3702
  if (typeof a == "string")
3703
3703
  r.issues.push(pt(a, r.value, t));
@@ -3717,7 +3717,7 @@ function fd(e) {
3717
3717
  });
3718
3718
  }
3719
3719
  const pa = /* @__PURE__ */ y("ZodOptional", (e, t) => {
3720
- Tl.init(e, t), q.init(e, t), e.unwrap = () => e._zod.def.innerType;
3720
+ Tl.init(e, t), W.init(e, t), e.unwrap = () => e._zod.def.innerType;
3721
3721
  });
3722
3722
  function Q(e) {
3723
3723
  return new pa({
@@ -3726,7 +3726,7 @@ function Q(e) {
3726
3726
  });
3727
3727
  }
3728
3728
  const gd = /* @__PURE__ */ y("ZodNullable", (e, t) => {
3729
- Sl.init(e, t), q.init(e, t), e.unwrap = () => e._zod.def.innerType;
3729
+ Sl.init(e, t), W.init(e, t), e.unwrap = () => e._zod.def.innerType;
3730
3730
  });
3731
3731
  function Mn(e) {
3732
3732
  return new gd({
@@ -3735,7 +3735,7 @@ function Mn(e) {
3735
3735
  });
3736
3736
  }
3737
3737
  const vd = /* @__PURE__ */ y("ZodDefault", (e, t) => {
3738
- xl.init(e, t), q.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3738
+ kl.init(e, t), W.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3739
3739
  });
3740
3740
  function yd(e, t) {
3741
3741
  return new vd({
@@ -3747,7 +3747,7 @@ function yd(e, t) {
3747
3747
  });
3748
3748
  }
3749
3749
  const _d = /* @__PURE__ */ y("ZodPrefault", (e, t) => {
3750
- kl.init(e, t), q.init(e, t), e.unwrap = () => e._zod.def.innerType;
3750
+ xl.init(e, t), W.init(e, t), e.unwrap = () => e._zod.def.innerType;
3751
3751
  });
3752
3752
  function bd(e, t) {
3753
3753
  return new _d({
@@ -3759,7 +3759,7 @@ function bd(e, t) {
3759
3759
  });
3760
3760
  }
3761
3761
  const ma = /* @__PURE__ */ y("ZodNonOptional", (e, t) => {
3762
- Cl.init(e, t), q.init(e, t), e.unwrap = () => e._zod.def.innerType;
3762
+ Cl.init(e, t), W.init(e, t), e.unwrap = () => e._zod.def.innerType;
3763
3763
  });
3764
3764
  function wd(e, t) {
3765
3765
  return new ma({
@@ -3769,7 +3769,7 @@ function wd(e, t) {
3769
3769
  });
3770
3770
  }
3771
3771
  const Id = /* @__PURE__ */ y("ZodCatch", (e, t) => {
3772
- Nl.init(e, t), q.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3772
+ Nl.init(e, t), W.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3773
3773
  });
3774
3774
  function Ed(e, t) {
3775
3775
  return new Id({
@@ -3779,7 +3779,7 @@ function Ed(e, t) {
3779
3779
  });
3780
3780
  }
3781
3781
  const Td = /* @__PURE__ */ y("ZodPipe", (e, t) => {
3782
- zl.init(e, t), q.init(e, t), e.in = t.in, e.out = t.out;
3782
+ zl.init(e, t), W.init(e, t), e.in = t.in, e.out = t.out;
3783
3783
  });
3784
3784
  function Pn(e, t) {
3785
3785
  return new Td({
@@ -3790,25 +3790,25 @@ function Pn(e, t) {
3790
3790
  });
3791
3791
  }
3792
3792
  const Sd = /* @__PURE__ */ y("ZodReadonly", (e, t) => {
3793
- Al.init(e, t), q.init(e, t);
3793
+ Al.init(e, t), W.init(e, t);
3794
3794
  });
3795
- function xd(e) {
3795
+ function kd(e) {
3796
3796
  return new Sd({
3797
3797
  type: "readonly",
3798
3798
  innerType: e
3799
3799
  });
3800
3800
  }
3801
- const kd = /* @__PURE__ */ y("ZodLazy", (e, t) => {
3802
- Ol.init(e, t), q.init(e, t), e.unwrap = () => e._zod.def.getter();
3801
+ const xd = /* @__PURE__ */ y("ZodLazy", (e, t) => {
3802
+ Ol.init(e, t), W.init(e, t), e.unwrap = () => e._zod.def.getter();
3803
3803
  });
3804
3804
  function Cd(e) {
3805
- return new kd({
3805
+ return new xd({
3806
3806
  type: "lazy",
3807
3807
  getter: e
3808
3808
  });
3809
3809
  }
3810
3810
  const Vr = /* @__PURE__ */ y("ZodCustom", (e, t) => {
3811
- $l.init(e, t), q.init(e, t);
3811
+ $l.init(e, t), W.init(e, t);
3812
3812
  });
3813
3813
  function Nd(e) {
3814
3814
  const t = new ue({
@@ -3865,7 +3865,7 @@ var _t = ({
3865
3865
  if (e == null)
3866
3866
  return o;
3867
3867
  if (r.includes(n))
3868
- throw new ki({
3868
+ throw new xi({
3869
3869
  argument: "separator",
3870
3870
  message: `The separator "${n}" must not be part of the alphabet "${r}".`
3871
3871
  });
@@ -4796,20 +4796,20 @@ function L(e, t, r = !1) {
4796
4796
  return l;
4797
4797
  }
4798
4798
  if (o && !r) {
4799
- const l = xp(o, t);
4799
+ const l = kp(o, t);
4800
4800
  if (l !== void 0)
4801
4801
  return l;
4802
4802
  }
4803
4803
  const a = { def: e, path: t.currentPath, jsonSchema: void 0 };
4804
4804
  t.seen.set(e, a);
4805
4805
  const i = Sp(e, e.typeName, t), s = typeof i == "function" ? L(i(), t) : i;
4806
- if (s && kp(e, t, s), t.postProcess) {
4806
+ if (s && xp(e, t, s), t.postProcess) {
4807
4807
  const l = t.postProcess(s, e, t);
4808
4808
  return a.jsonSchema = s, l;
4809
4809
  }
4810
4810
  return a.jsonSchema = s, s;
4811
4811
  }
4812
- var xp = (e, t) => {
4812
+ var kp = (e, t) => {
4813
4813
  switch (t.$refStrategy) {
4814
4814
  case "root":
4815
4815
  return { $ref: e.path.join("/") };
@@ -4823,7 +4823,7 @@ var xp = (e, t) => {
4823
4823
  )}! Defaulting to any`
4824
4824
  ), de()) : t.$refStrategy === "seen" ? de() : void 0;
4825
4825
  }
4826
- }, kp = (e, t, r) => (e.description && (r.description = e.description), r), Cp = (e) => {
4826
+ }, xp = (e, t, r) => (e.description && (r.description = e.description), r), Cp = (e) => {
4827
4827
  const t = Jd(e), r = t.name !== void 0 ? [...t.basePath, t.definitionPath, t.name] : t.basePath;
4828
4828
  return {
4829
4829
  ...t,
@@ -4979,13 +4979,13 @@ var wa = ee([
4979
4979
  od(),
4980
4980
  w(),
4981
4981
  mt(),
4982
- H(),
4983
- xr(w(), ht),
4982
+ X(),
4983
+ kr(w(), ht),
4984
4984
  Ee(ht)
4985
4985
  ])
4986
- ), M = xr(
4986
+ ), M = kr(
4987
4987
  w(),
4988
- xr(w(), ht)
4988
+ kr(w(), ht)
4989
4989
  ), Ia = C({
4990
4990
  type: T("text"),
4991
4991
  text: w(),
@@ -5009,9 +5009,9 @@ var wa = ee([
5009
5009
  type: T("tool-call"),
5010
5010
  toolCallId: w(),
5011
5011
  toolName: w(),
5012
- input: J(),
5012
+ input: H(),
5013
5013
  providerOptions: M.optional(),
5014
- providerExecuted: H().optional()
5014
+ providerExecuted: X().optional()
5015
5015
  }), Vp = ld("type", [
5016
5016
  C({
5017
5017
  type: T("text"),
@@ -5119,8 +5119,8 @@ var Wp = ee([
5119
5119
  type: T("tool-input-start"),
5120
5120
  toolCallId: w(),
5121
5121
  toolName: w(),
5122
- providerExecuted: H().optional(),
5123
- dynamic: H().optional()
5122
+ providerExecuted: X().optional(),
5123
+ dynamic: X().optional()
5124
5124
  }),
5125
5125
  V({
5126
5126
  type: T("tool-input-delta"),
@@ -5131,35 +5131,35 @@ var Wp = ee([
5131
5131
  type: T("tool-input-available"),
5132
5132
  toolCallId: w(),
5133
5133
  toolName: w(),
5134
- input: J(),
5135
- providerExecuted: H().optional(),
5134
+ input: H(),
5135
+ providerExecuted: X().optional(),
5136
5136
  providerMetadata: M.optional(),
5137
- dynamic: H().optional()
5137
+ dynamic: X().optional()
5138
5138
  }),
5139
5139
  V({
5140
5140
  type: T("tool-input-error"),
5141
5141
  toolCallId: w(),
5142
5142
  toolName: w(),
5143
- input: J(),
5144
- providerExecuted: H().optional(),
5143
+ input: H(),
5144
+ providerExecuted: X().optional(),
5145
5145
  providerMetadata: M.optional(),
5146
- dynamic: H().optional(),
5146
+ dynamic: X().optional(),
5147
5147
  errorText: w()
5148
5148
  }),
5149
5149
  V({
5150
5150
  type: T("tool-output-available"),
5151
5151
  toolCallId: w(),
5152
- output: J(),
5153
- providerExecuted: H().optional(),
5154
- dynamic: H().optional(),
5155
- preliminary: H().optional()
5152
+ output: H(),
5153
+ providerExecuted: X().optional(),
5154
+ dynamic: X().optional(),
5155
+ preliminary: X().optional()
5156
5156
  }),
5157
5157
  V({
5158
5158
  type: T("tool-output-error"),
5159
5159
  toolCallId: w(),
5160
5160
  errorText: w(),
5161
- providerExecuted: H().optional(),
5162
- dynamic: H().optional()
5161
+ providerExecuted: X().optional(),
5162
+ dynamic: X().optional()
5163
5163
  }),
5164
5164
  V({
5165
5165
  type: T("reasoning"),
@@ -5209,8 +5209,8 @@ var Wp = ee([
5209
5209
  V({
5210
5210
  type: w().startsWith("data-"),
5211
5211
  id: w().optional(),
5212
- data: J(),
5213
- transient: H().optional()
5212
+ data: H(),
5213
+ transient: X().optional()
5214
5214
  }),
5215
5215
  V({
5216
5216
  type: T("start-step")
@@ -5221,18 +5221,18 @@ var Wp = ee([
5221
5221
  V({
5222
5222
  type: T("start"),
5223
5223
  messageId: w().optional(),
5224
- messageMetadata: J().optional()
5224
+ messageMetadata: H().optional()
5225
5225
  }),
5226
5226
  V({
5227
5227
  type: T("finish"),
5228
- messageMetadata: J().optional()
5228
+ messageMetadata: H().optional()
5229
5229
  }),
5230
5230
  V({
5231
5231
  type: T("abort")
5232
5232
  }),
5233
5233
  V({
5234
5234
  type: T("message-metadata"),
5235
- messageMetadata: J()
5235
+ messageMetadata: H()
5236
5236
  })
5237
5237
  ]);
5238
5238
  function qp(e) {
@@ -5507,7 +5507,7 @@ function Yp(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 });
@@ -5557,7 +5557,7 @@ function Kp({
5557
5557
  var d, g, f, m;
5558
5558
  function h(b) {
5559
5559
  const z = c.message.parts.filter(Rt).find(
5560
- (k) => k.toolCallId === b
5560
+ (x) => x.toolCallId === b
5561
5561
  );
5562
5562
  if (z == null)
5563
5563
  throw new Error(
@@ -5567,9 +5567,9 @@ function Kp({
5567
5567
  }
5568
5568
  function v(b) {
5569
5569
  const z = c.message.parts.filter(
5570
- (k) => k.type === "dynamic-tool"
5570
+ (x) => x.type === "dynamic-tool"
5571
5571
  ).find(
5572
- (k) => k.toolCallId === b
5572
+ (x) => x.toolCallId === b
5573
5573
  );
5574
5574
  if (z == null)
5575
5575
  throw new Error(
@@ -5581,35 +5581,35 @@ function Kp({
5581
5581
  var R;
5582
5582
  const z = c.message.parts.find(
5583
5583
  (ie) => Rt(ie) && ie.toolCallId === b.toolCallId
5584
- ), k = b, A = z;
5585
- z != null ? (z.state = b.state, A.input = k.input, A.output = k.output, A.errorText = k.errorText, A.rawInput = k.rawInput, A.preliminary = k.preliminary, A.providerExecuted = (R = k.providerExecuted) != null ? R : z.providerExecuted, k.providerMetadata != null && z.state === "input-available" && (z.callProviderMetadata = k.providerMetadata)) : c.message.parts.push({
5584
+ ), x = b, A = z;
5585
+ z != null ? (z.state = b.state, A.input = x.input, A.output = x.output, A.errorText = x.errorText, A.rawInput = x.rawInput, A.preliminary = x.preliminary, A.providerExecuted = (R = x.providerExecuted) != null ? R : z.providerExecuted, x.providerMetadata != null && z.state === "input-available" && (z.callProviderMetadata = x.providerMetadata)) : c.message.parts.push({
5586
5586
  type: `tool-${b.toolName}`,
5587
5587
  toolCallId: b.toolCallId,
5588
5588
  state: b.state,
5589
- input: k.input,
5590
- output: k.output,
5591
- rawInput: k.rawInput,
5592
- errorText: k.errorText,
5593
- providerExecuted: k.providerExecuted,
5594
- preliminary: k.preliminary,
5595
- ...k.providerMetadata != null ? { callProviderMetadata: k.providerMetadata } : {}
5589
+ input: x.input,
5590
+ output: x.output,
5591
+ rawInput: x.rawInput,
5592
+ errorText: x.errorText,
5593
+ providerExecuted: x.providerExecuted,
5594
+ preliminary: x.preliminary,
5595
+ ...x.providerMetadata != null ? { callProviderMetadata: x.providerMetadata } : {}
5596
5596
  });
5597
5597
  }
5598
5598
  function _(b) {
5599
5599
  var R;
5600
5600
  const z = c.message.parts.find(
5601
5601
  (ie) => ie.type === "dynamic-tool" && ie.toolCallId === b.toolCallId
5602
- ), k = b, A = z;
5603
- z != null ? (z.state = b.state, A.toolName = b.toolName, A.input = k.input, A.output = k.output, A.errorText = k.errorText, A.rawInput = (R = k.rawInput) != null ? R : A.rawInput, A.preliminary = k.preliminary, k.providerMetadata != null && z.state === "input-available" && (z.callProviderMetadata = k.providerMetadata)) : c.message.parts.push({
5602
+ ), x = b, A = z;
5603
+ z != null ? (z.state = b.state, A.toolName = b.toolName, A.input = x.input, A.output = x.output, A.errorText = x.errorText, A.rawInput = (R = x.rawInput) != null ? R : A.rawInput, A.preliminary = x.preliminary, x.providerMetadata != null && z.state === "input-available" && (z.callProviderMetadata = x.providerMetadata)) : c.message.parts.push({
5604
5604
  type: "dynamic-tool",
5605
5605
  toolName: b.toolName,
5606
5606
  toolCallId: b.toolCallId,
5607
5607
  state: b.state,
5608
- input: k.input,
5609
- output: k.output,
5610
- errorText: k.errorText,
5611
- preliminary: k.preliminary,
5612
- ...k.providerMetadata != null ? { callProviderMetadata: k.providerMetadata } : {}
5608
+ input: x.input,
5609
+ output: x.output,
5610
+ errorText: x.errorText,
5611
+ preliminary: x.preliminary,
5612
+ ...x.providerMetadata != null ? { callProviderMetadata: x.providerMetadata } : {}
5613
5613
  });
5614
5614
  }
5615
5615
  async function E(b) {
@@ -5715,7 +5715,7 @@ function Kp({
5715
5715
  case "tool-input-delta": {
5716
5716
  const b = c.partialToolCalls[s.toolCallId];
5717
5717
  b.text += s.inputTextDelta;
5718
- const { value: R } = await xa(
5718
+ const { value: R } = await ka(
5719
5719
  b.text
5720
5720
  );
5721
5721
  b.dynamic ? _({
@@ -5942,7 +5942,7 @@ var nm = () => ({
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":
@@ -5999,18 +5999,18 @@ var nm = () => ({
5999
5999
  logging: Q(C({}).loose()),
6000
6000
  prompts: Q(
6001
6001
  Xe({
6002
- listChanged: Q(H())
6002
+ listChanged: Q(X())
6003
6003
  })
6004
6004
  ),
6005
6005
  resources: Q(
6006
6006
  Xe({
6007
- subscribe: Q(H()),
6008
- listChanged: Q(H())
6007
+ subscribe: Q(X()),
6008
+ listChanged: Q(X())
6009
6009
  })
6010
6010
  ),
6011
6011
  tools: Q(
6012
6012
  Xe({
6013
- listChanged: Q(H())
6013
+ listChanged: Q(X())
6014
6014
  })
6015
6015
  )
6016
6016
  });
@@ -6040,7 +6040,7 @@ var um = C({
6040
6040
  type: T("image"),
6041
6041
  data: la(),
6042
6042
  mimeType: w()
6043
- }).loose(), ka = C({
6043
+ }).loose(), xa = C({
6044
6044
  /**
6045
6045
  * The URI of this resource.
6046
6046
  */
@@ -6049,9 +6049,9 @@ var um = C({
6049
6049
  * The MIME type of this resource, if known.
6050
6050
  */
6051
6051
  mimeType: Q(w())
6052
- }).loose(), pm = ka.extend({
6052
+ }).loose(), pm = xa.extend({
6053
6053
  text: w()
6054
- }), mm = ka.extend({
6054
+ }), mm = xa.extend({
6055
6055
  blob: la()
6056
6056
  }), hm = C({
6057
6057
  type: T("resource"),
@@ -6061,10 +6061,10 @@ ft.extend({
6061
6061
  content: Ee(
6062
6062
  ee([um, dm, hm])
6063
6063
  ),
6064
- isError: H().default(!1).optional()
6064
+ isError: X().default(!1).optional()
6065
6065
  }).or(
6066
6066
  ft.extend({
6067
- toolResult: J()
6067
+ toolResult: H()
6068
6068
  })
6069
6069
  );
6070
6070
  var rr = "2.0", fm = C({
@@ -6080,7 +6080,7 @@ var rr = "2.0", fm = C({
6080
6080
  error: C({
6081
6081
  code: mt().int(),
6082
6082
  message: w(),
6083
- data: Q(J())
6083
+ data: Q(H())
6084
6084
  })
6085
6085
  }).strict(), ym = C({
6086
6086
  jsonrpc: T(rr)
@@ -6474,25 +6474,25 @@ var bm = class {
6474
6474
  title: w(),
6475
6475
  filename: w().optional(),
6476
6476
  providerMetadata: M.optional()
6477
- }), xm = C({
6477
+ }), km = C({
6478
6478
  type: T("file"),
6479
6479
  mediaType: w(),
6480
6480
  filename: w().optional(),
6481
6481
  url: w(),
6482
6482
  providerMetadata: M.optional()
6483
- }), km = C({
6483
+ }), xm = C({
6484
6484
  type: T("step-start")
6485
6485
  }), Cm = C({
6486
6486
  type: w().startsWith("data-"),
6487
6487
  id: w().optional(),
6488
- data: J()
6488
+ data: H()
6489
6489
  }), Nm = [
6490
6490
  C({
6491
6491
  type: T("dynamic-tool"),
6492
6492
  toolName: w(),
6493
6493
  toolCallId: w(),
6494
6494
  state: T("input-streaming"),
6495
- input: J().optional(),
6495
+ input: H().optional(),
6496
6496
  output: le().optional(),
6497
6497
  errorText: le().optional()
6498
6498
  }),
@@ -6501,7 +6501,7 @@ var bm = class {
6501
6501
  toolName: w(),
6502
6502
  toolCallId: w(),
6503
6503
  state: T("input-available"),
6504
- input: J(),
6504
+ input: H(),
6505
6505
  output: le().optional(),
6506
6506
  errorText: le().optional(),
6507
6507
  callProviderMetadata: M.optional()
@@ -6511,18 +6511,18 @@ var bm = class {
6511
6511
  toolName: w(),
6512
6512
  toolCallId: w(),
6513
6513
  state: T("output-available"),
6514
- input: J(),
6515
- output: J(),
6514
+ input: H(),
6515
+ output: H(),
6516
6516
  errorText: le().optional(),
6517
6517
  callProviderMetadata: M.optional(),
6518
- preliminary: H().optional()
6518
+ preliminary: X().optional()
6519
6519
  }),
6520
6520
  C({
6521
6521
  type: T("dynamic-tool"),
6522
6522
  toolName: w(),
6523
6523
  toolCallId: w(),
6524
6524
  state: T("output-error"),
6525
- input: J(),
6525
+ input: H(),
6526
6526
  output: le().optional(),
6527
6527
  errorText: w(),
6528
6528
  callProviderMetadata: M.optional()
@@ -6532,8 +6532,7 @@ var bm = class {
6532
6532
  type: w().startsWith("tool-"),
6533
6533
  toolCallId: w(),
6534
6534
  state: T("input-streaming"),
6535
- providerExecuted: H().optional(),
6536
- input: J().optional(),
6535
+ input: H().optional(),
6537
6536
  output: le().optional(),
6538
6537
  errorText: le().optional()
6539
6538
  }),
@@ -6541,8 +6540,7 @@ var bm = class {
6541
6540
  type: w().startsWith("tool-"),
6542
6541
  toolCallId: w(),
6543
6542
  state: T("input-available"),
6544
- providerExecuted: H().optional(),
6545
- input: J(),
6543
+ input: H(),
6546
6544
  output: le().optional(),
6547
6545
  errorText: le().optional(),
6548
6546
  callProviderMetadata: M.optional()
@@ -6551,19 +6549,17 @@ var bm = class {
6551
6549
  type: w().startsWith("tool-"),
6552
6550
  toolCallId: w(),
6553
6551
  state: T("output-available"),
6554
- providerExecuted: H().optional(),
6555
- input: J(),
6556
- output: J(),
6552
+ input: H(),
6553
+ output: H(),
6557
6554
  errorText: le().optional(),
6558
6555
  callProviderMetadata: M.optional(),
6559
- preliminary: H().optional()
6556
+ preliminary: X().optional()
6560
6557
  }),
6561
6558
  C({
6562
6559
  type: w().startsWith("tool-"),
6563
6560
  toolCallId: w(),
6564
6561
  state: T("output-error"),
6565
- providerExecuted: H().optional(),
6566
- input: J(),
6562
+ input: H(),
6567
6563
  output: le().optional(),
6568
6564
  errorText: w(),
6569
6565
  callProviderMetadata: M.optional()
@@ -6572,15 +6568,15 @@ var bm = class {
6572
6568
  C({
6573
6569
  id: w(),
6574
6570
  role: tr(["system", "user", "assistant"]),
6575
- metadata: J().optional(),
6571
+ metadata: H().optional(),
6576
6572
  parts: Ee(
6577
6573
  ee([
6578
6574
  Im,
6579
6575
  Em,
6580
6576
  Tm,
6581
6577
  Sm,
6582
- xm,
6583
6578
  km,
6579
+ xm,
6584
6580
  Cm,
6585
6581
  ...Nm,
6586
6582
  ...zm
@@ -6619,7 +6615,7 @@ const Ca = async () => (fr || (fr = import(
6619
6615
  "./index.BwP0kG4H.js"
6620
6616
  )), fr), Na = async () => (gr || (gr = import(
6621
6617
  /* webpackChunkName: "toast-utilities" */
6622
- "./index.HAv3ex2j.js"
6618
+ "./index.Cs-kxUcH.js"
6623
6619
  ).then((e) => e.utilities)), gr), Pm = async () => {
6624
6620
  try {
6625
6621
  await Promise.all([Ca(), Na()]);
@@ -6641,7 +6637,7 @@ const Ca = async () => (fr || (fr = import(
6641
6637
  }, 100);
6642
6638
  } catch {
6643
6639
  }
6644
- }, Yt = (e, t) => za(e, "success", t), xf = (e, t) => za(e, "error", t), lt = "FOOTER_BOTTOM", Xt = "FOOTER_TOP", Zt = "APP_SET_FOOTER_POSITION", Aa = "APP_SET_FOOTER_HEIGHT", Rm = (e, t) => {
6640
+ }, Yt = (e, t) => za(e, "success", t), kf = (e, t) => za(e, "error", t), lt = "FOOTER_BOTTOM", Xt = "FOOTER_TOP", Zt = "APP_SET_FOOTER_POSITION", Aa = "APP_SET_FOOTER_HEIGHT", Rm = (e, t) => {
6645
6641
  switch (t.type) {
6646
6642
  case Zt:
6647
6643
  return {
@@ -6774,18 +6770,18 @@ var Ma = (e, t, r) => {
6774
6770
  if (t.has(e))
6775
6771
  throw TypeError("Cannot add the same private member more than once");
6776
6772
  t instanceof WeakSet ? t.add(e) : t.set(e, r);
6777
- }, ke = (e, t, r, n) => (Ma(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);
6778
6774
  function Fm(e, t) {
6779
6775
  return t != null ? Vm(e, t) : e;
6780
6776
  }
6781
6777
  var pe, Dt, Lt, ot, at, st, Je, zr, Ar, Hm = class {
6782
6778
  constructor(e = []) {
6783
6779
  ye(this, pe, void 0), ye(this, Dt, "ready"), ye(this, Lt, void 0), ye(this, ot, /* @__PURE__ */ new Set()), ye(this, at, /* @__PURE__ */ new Set()), ye(this, st, /* @__PURE__ */ new Set()), this.pushMessage = (t) => {
6784
- ke(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);
6785
6781
  }, this.popMessage = () => {
6786
- ke(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);
6787
6783
  }, this.replaceMessage = (t, r) => {
6788
- ke(this, pe, [
6784
+ xe(this, pe, [
6789
6785
  ...F(this, pe).slice(0, t),
6790
6786
  // We deep clone the message here to ensure the new React Compiler (currently in RC) detects deeply nested parts/metadata changes:
6791
6787
  this.snapshot(r),
@@ -6806,25 +6802,25 @@ var pe, Dt, Lt, ot, at, st, Je, zr, Ar, Hm = class {
6806
6802
  F(this, at).forEach((t) => t());
6807
6803
  }), ye(this, Ar, () => {
6808
6804
  F(this, st).forEach((t) => t());
6809
- }), ke(this, pe, e);
6805
+ }), xe(this, pe, e);
6810
6806
  }
6811
6807
  get status() {
6812
6808
  return F(this, Dt);
6813
6809
  }
6814
6810
  set status(e) {
6815
- ke(this, Dt, e), F(this, zr).call(this);
6811
+ xe(this, Dt, e), F(this, zr).call(this);
6816
6812
  }
6817
6813
  get error() {
6818
6814
  return F(this, Lt);
6819
6815
  }
6820
6816
  set error(e) {
6821
- ke(this, Lt, e), F(this, Ar).call(this);
6817
+ xe(this, Lt, e), F(this, Ar).call(this);
6822
6818
  }
6823
6819
  get messages() {
6824
6820
  return F(this, pe);
6825
6821
  }
6826
6822
  set messages(e) {
6827
- ke(this, pe, [...e]), F(this, Je).call(this);
6823
+ xe(this, pe, [...e]), F(this, Je).call(this);
6828
6824
  }
6829
6825
  };
6830
6826
  pe = /* @__PURE__ */ new WeakMap();
@@ -6839,7 +6835,7 @@ Ar = /* @__PURE__ */ new WeakMap();
6839
6835
  var Ge, Fn = class extends wm {
6840
6836
  constructor({ messages: e, ...t }) {
6841
6837
  const r = new Hm(e);
6842
- 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), ke(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);
6843
6839
  }
6844
6840
  };
6845
6841
  Ge = /* @__PURE__ */ new WeakMap();
@@ -6848,7 +6844,7 @@ function Jm({
6848
6844
  resume: t = !1,
6849
6845
  ...r
6850
6846
  } = {}) {
6851
- const n = G(
6847
+ const n = J(
6852
6848
  "chat" in r ? r.chat : new Fn(r)
6853
6849
  );
6854
6850
  ("chat" in r && r.chat !== n.current || "id" in r && n.current.id !== r.id) && (n.current = "chat" in r ? r.chat : new Fn(r));
@@ -6901,7 +6897,7 @@ function Ve(e = {}) {
6901
6897
  const t = te(Pa);
6902
6898
  if (!t)
6903
6899
  throw new Error("useAiChat must be used within a AiChatProvider");
6904
- const r = G(e);
6900
+ const r = J(e);
6905
6901
  return $(() => {
6906
6902
  r.current = e;
6907
6903
  }, [e]), $(() => {
@@ -6919,7 +6915,7 @@ function Gm({
6919
6915
  children: e,
6920
6916
  value: t
6921
6917
  }) {
6922
- const r = G(Hn()), [n, o] = P("");
6918
+ const r = J(Hn()), [n, o] = P("");
6923
6919
  $(() => {
6924
6920
  r.current = Hn();
6925
6921
  }, [t]);
@@ -7074,7 +7070,7 @@ const Jn = ({
7074
7070
  }) => {
7075
7071
  const l = Fs(() => {
7076
7072
  h.stop(), m(!1);
7077
- }), c = G(null), p = G(null), [d, g] = P(!1), [f, m] = P(!1), h = qs(() => {
7073
+ }), c = J(null), p = J(null), [d, g] = P(!1), [f, m] = P(!1), h = qs(() => {
7078
7074
  m(!1);
7079
7075
  }, nh), v = th({
7080
7076
  mode: n,
@@ -7085,7 +7081,7 @@ const Jn = ({
7085
7081
  if (l.current && c.current && p.current) {
7086
7082
  const {
7087
7083
  x: z,
7088
- y: k,
7084
+ y: x,
7089
7085
  middlewareData: A,
7090
7086
  placement: ie
7091
7087
  } = await Ms(l.current, c.current, {
@@ -7102,7 +7098,7 @@ const Jn = ({
7102
7098
  });
7103
7099
  c?.current?.style && Object.assign(c.current.style, {
7104
7100
  left: Nt(z),
7105
- top: Nt(k),
7101
+ top: Nt(x),
7106
7102
  ...I
7107
7103
  });
7108
7104
  const be = {
@@ -7130,7 +7126,7 @@ const Jn = ({
7130
7126
  }, R = () => {
7131
7127
  f || g(!1);
7132
7128
  };
7133
- return /* @__PURE__ */ x(
7129
+ return /* @__PURE__ */ k(
7134
7130
  "div",
7135
7131
  {
7136
7132
  className: v.wrapper,
@@ -7140,7 +7136,7 @@ const Jn = ({
7140
7136
  onClick: E,
7141
7137
  children: [
7142
7138
  e,
7143
- d && /* @__PURE__ */ x(
7139
+ d && /* @__PURE__ */ k(
7144
7140
  "div",
7145
7141
  {
7146
7142
  role: "tooltip",
@@ -7196,8 +7192,8 @@ const oh = ({
7196
7192
  function Ra(e, t) {
7197
7193
  $(() => {
7198
7194
  if (Bt() && typeof window < "u")
7199
- return window.__VERSINI_CALLISTO_TAURI_EVENTS__ && (window.__VERSINI_CALLISTO_TAURI_EVENTS__[e] = t), () => {
7200
- window.__VERSINI_CALLISTO_TAURI_EVENTS__ && (window.__VERSINI_CALLISTO_TAURI_EVENTS__[e] = null);
7195
+ return window.__VERSINI_DIGGITY_TAURI_EVENTS__ && (window.__VERSINI_DIGGITY_TAURI_EVENTS__[e] = t), () => {
7196
+ window.__VERSINI_DIGGITY_TAURI_EVENTS__ && (window.__VERSINI_DIGGITY_TAURI_EVENTS__[e] = null);
7201
7197
  };
7202
7198
  }, [e, t]);
7203
7199
  }
@@ -7209,7 +7205,7 @@ const ah = ({
7209
7205
  dispatch: o,
7210
7206
  setChatId: a,
7211
7207
  setInitialMessages: i
7212
- } = te(ve), { id: s, setInput: l, stop: c } = Ve(), p = G(null), d = G(!1), g = U(() => {
7208
+ } = te(ve), { id: s, setInput: l, stop: c } = Ve(), p = J(null), d = J(!1), g = U(() => {
7213
7209
  a(Oe()), i([]), l(""), o({
7214
7210
  type: je,
7215
7211
  payload: {
@@ -7309,7 +7305,7 @@ const ah = ({
7309
7305
  ...l
7310
7306
  }) => {
7311
7307
  const c = O(a, n);
7312
- return /* @__PURE__ */ x(
7308
+ return /* @__PURE__ */ k(
7313
7309
  "svg",
7314
7310
  {
7315
7311
  xmlns: "http://www.w3.org/2000/svg",
@@ -7502,7 +7498,7 @@ const Ze = "panel", At = "messagebox", hh = ({
7502
7498
  animationType: c = fh,
7503
7499
  maxWidth: p = "medium"
7504
7500
  }) => {
7505
- const d = G(""), [g, f] = P(
7501
+ const d = J(""), [g, f] = P(
7506
7502
  l ? c === qn ? { opacity: 0 } : {
7507
7503
  transform: "translateY(-100vh)"
7508
7504
  } : {}
@@ -7531,8 +7527,8 @@ const Ze = "panel", At = "messagebox", hh = ({
7531
7527
  }, 100);
7532
7528
  return () => clearTimeout(h);
7533
7529
  }
7534
- }, [e, l, c]), /* @__PURE__ */ u(Ce, { children: e && /* @__PURE__ */ u(lh, { open: e, onOpenChange: t, children: /* @__PURE__ */ x(uh, { className: m.main, style: g, children: [
7535
- /* @__PURE__ */ x("div", { className: "flex flex-row-reverse items-center justify-between", children: [
7530
+ }, [e, l, c]), /* @__PURE__ */ u(Ce, { children: e && /* @__PURE__ */ u(lh, { open: e, onOpenChange: t, children: /* @__PURE__ */ k(uh, { className: m.main, style: g, children: [
7531
+ /* @__PURE__ */ k("div", { className: "flex flex-row-reverse items-center justify-between", children: [
7536
7532
  /* @__PURE__ */ u(
7537
7533
  mh,
7538
7534
  {
@@ -7654,7 +7650,7 @@ const vh = "av-toggle", yh = ({ narrow: e }) => O(
7654
7650
  label: Eh({ mode: e, labelHidden: r }),
7655
7651
  input: "peer sr-only",
7656
7652
  wrapper: Th({ className: n })
7657
- }), xh = ({
7653
+ }), kh = ({
7658
7654
  checked: e = !1,
7659
7655
  onChange: t,
7660
7656
  label: r,
@@ -7676,7 +7672,7 @@ const vh = "av-toggle", yh = ({ narrow: e }) => O(
7676
7672
  }), d = (g) => {
7677
7673
  t?.(g.target.checked);
7678
7674
  };
7679
- return /* @__PURE__ */ x("label", { className: p.wrapper, children: [
7675
+ return /* @__PURE__ */ k("label", { className: p.wrapper, children: [
7680
7676
  /* @__PURE__ */ u(
7681
7677
  "input",
7682
7678
  {
@@ -7721,7 +7717,7 @@ const Ue = ({
7721
7717
  toggleChecked: c,
7722
7718
  onToggleChange: p
7723
7719
  }) => {
7724
- const d = /* @__PURE__ */ x(br, { columnGap: 2, alignHorizontal: "flex-end", children: [
7720
+ const d = /* @__PURE__ */ k(br, { columnGap: 2, alignHorizontal: "flex-end", children: [
7725
7721
  /* @__PURE__ */ u(We, { children: !a && /* @__PURE__ */ u(
7726
7722
  en,
7727
7723
  {
@@ -7748,7 +7744,7 @@ const Ue = ({
7748
7744
  children: o.confirmAction
7749
7745
  }
7750
7746
  ) })
7751
- ] }), g = s ? /* @__PURE__ */ x(
7747
+ ] }), g = s ? /* @__PURE__ */ k(
7752
7748
  br,
7753
7749
  {
7754
7750
  alignHorizontal: "space-between",
@@ -7756,7 +7752,7 @@ const Ue = ({
7756
7752
  columnGap: 2,
7757
7753
  children: [
7758
7754
  /* @__PURE__ */ u(We, { span: "auto", children: /* @__PURE__ */ u(
7759
- xh,
7755
+ kh,
7760
7756
  {
7761
7757
  narrow: !0,
7762
7758
  mode: "dark",
@@ -7785,7 +7781,7 @@ const Ue = ({
7785
7781
  children: n
7786
7782
  }
7787
7783
  );
7788
- }, kh = ({
7784
+ }, xh = ({
7789
7785
  className: e
7790
7786
  }) => {
7791
7787
  const {
@@ -7809,8 +7805,8 @@ const Ue = ({
7809
7805
  }
7810
7806
  });
7811
7807
  };
7812
- return /* @__PURE__ */ x(Ce, { children: [
7813
- p && /* @__PURE__ */ x(
7808
+ return /* @__PURE__ */ k(Ce, { children: [
7809
+ p && /* @__PURE__ */ k(
7814
7810
  Ue,
7815
7811
  {
7816
7812
  showConfirmation: p,
@@ -7844,8 +7840,8 @@ const Ue = ({
7844
7840
  cancelAction: "Cancel",
7845
7841
  title: "Private Chat"
7846
7842
  },
7847
- children: /* @__PURE__ */ x("ul", { children: [
7848
- /* @__PURE__ */ x("li", { children: [
7843
+ children: /* @__PURE__ */ k("ul", { children: [
7844
+ /* @__PURE__ */ k("li", { children: [
7849
7845
  "In Private Mode, your chat sessions will not be saved to your chat history. ",
7850
7846
  m && "Memories will also be disabled."
7851
7847
  ] }),
@@ -7913,7 +7909,7 @@ const Ue = ({
7913
7909
  focusMode: i = "system",
7914
7910
  ...s
7915
7911
  }, l) => {
7916
- const [c, p] = P(!1), [d, g] = P(!1), [f, m] = P(null), h = G([]), v = G([]), I = te($r), _ = Io(), E = Ds(), b = Eo(), { floatingStyles: R, refs: z, context: k } = vo({
7912
+ const [c, p] = P(!1), [d, g] = P(!1), [f, m] = P(null), h = J([]), v = J([]), I = te($r), _ = Io(), E = Ds(), b = Eo(), { floatingStyles: R, refs: z, context: x } = vo({
7917
7913
  nodeId: E,
7918
7914
  open: c,
7919
7915
  onOpenChange: (ce) => {
@@ -7923,17 +7919,17 @@ const Ue = ({
7923
7919
  strategy: "fixed",
7924
7920
  middleware: [po({ mainAxis: 10 }), mo(), ho()],
7925
7921
  whileElementsMounted: Ls
7926
- }), A = yo(k, {
7922
+ }), A = yo(x, {
7927
7923
  event: "mousedown",
7928
7924
  toggle: !0,
7929
7925
  ignoreMouse: !1
7930
- }), ie = bo(k, { role: "menu" }), be = _o(k, { bubbles: !0 }), Se = Us(k, {
7926
+ }), ie = bo(x, { role: "menu" }), be = _o(x, { bubbles: !0 }), Se = Us(x, {
7931
7927
  listRef: h,
7932
7928
  activeIndex: f,
7933
7929
  nested: !1,
7934
7930
  onNavigate: m,
7935
7931
  loop: !0
7936
- }), j = Bs(k, {
7932
+ }), j = Bs(x, {
7937
7933
  listRef: v,
7938
7934
  onMatch: c ? m : void 0,
7939
7935
  activeIndex: f
@@ -7967,7 +7963,7 @@ const Ue = ({
7967
7963
  };
7968
7964
  }, [_, o]), $(() => {
7969
7965
  c && _ && _.events.emit("menuopen", { nodeId: E });
7970
- }, [_, c, E]), /* @__PURE__ */ x(js, { id: E, children: [
7966
+ }, [_, c, E]), /* @__PURE__ */ k(js, { id: E, children: [
7971
7967
  It,
7972
7968
  /* @__PURE__ */ u(
7973
7969
  $r.Provider,
@@ -7982,7 +7978,7 @@ const Ue = ({
7982
7978
  children: /* @__PURE__ */ u(Vs, { elementsRef: h, labelsRef: v, children: c && /* @__PURE__ */ u(fo, { children: /* @__PURE__ */ u(
7983
7979
  go,
7984
7980
  {
7985
- context: k,
7981
+ context: x,
7986
7982
  modal: !1,
7987
7983
  initialFocus: 0,
7988
7984
  returnFocus: !0,
@@ -8017,7 +8013,7 @@ const Ch = ({
8017
8013
  ...l
8018
8014
  }) => {
8019
8015
  const c = O(a, n);
8020
- return /* @__PURE__ */ x(
8016
+ return /* @__PURE__ */ k(
8021
8017
  "svg",
8022
8018
  {
8023
8019
  xmlns: "http://www.w3.org/2000/svg",
@@ -8054,7 +8050,7 @@ const Nh = ({
8054
8050
  title: r,
8055
8051
  monotone: n,
8056
8052
  ...o
8057
- }) => /* @__PURE__ */ x(
8053
+ }) => /* @__PURE__ */ k(
8058
8054
  Ch,
8059
8055
  {
8060
8056
  defaultViewBox: "0 0 448 512",
@@ -8122,7 +8118,7 @@ const Ie = ae.forwardRef(
8122
8118
  "bg-none": !t && !i
8123
8119
  }
8124
8120
  );
8125
- return /* @__PURE__ */ x(
8121
+ return /* @__PURE__ */ k(
8126
8122
  "button",
8127
8123
  {
8128
8124
  ...s,
@@ -8199,7 +8195,7 @@ const Ah = (e) => {
8199
8195
  prompt: m
8200
8196
  }
8201
8197
  });
8202
- }, d = c && l && l.tags && Ah(l.tags), g = /* @__PURE__ */ x(
8198
+ }, d = c && l && l.tags && Ah(l.tags), g = /* @__PURE__ */ k(
8203
8199
  or,
8204
8200
  {
8205
8201
  mode: "dark",
@@ -8279,7 +8275,7 @@ const Ah = (e) => {
8279
8275
  }
8280
8276
  });
8281
8277
  };
8282
- return /* @__PURE__ */ x(Ce, { children: [
8278
+ return /* @__PURE__ */ k(Ce, { children: [
8283
8279
  l && /* @__PURE__ */ u(
8284
8280
  Ue,
8285
8281
  {
@@ -8311,7 +8307,7 @@ const Ah = (e) => {
8311
8307
  cancelAction: "Cancel",
8312
8308
  title: "Reasoning Chat"
8313
8309
  },
8314
- children: /* @__PURE__ */ x("ul", { children: [
8310
+ children: /* @__PURE__ */ k("ul", { children: [
8315
8311
  /* @__PURE__ */ u("li", { children: 'Your chat session will use "reasoning" model capabilities.' }),
8316
8312
  /* @__PURE__ */ u("li", { children: "Response times will increase. Be patient." }),
8317
8313
  /* @__PURE__ */ u("li", { children: "If you refresh your browser, the setting will revert to the default (non-reasoning) chat." })
@@ -8396,7 +8392,7 @@ const Ah = (e) => {
8396
8392
  };
8397
8393
  return $(() => {
8398
8394
  i && s?.length > 0 ? g(!0) : g(!1);
8399
- }, [i, s]), /* @__PURE__ */ x(Ce, { children: [
8395
+ }, [i, s]), /* @__PURE__ */ k(Ce, { children: [
8400
8396
  f && /* @__PURE__ */ u(
8401
8397
  Ue,
8402
8398
  {
@@ -8522,14 +8518,14 @@ const Ah = (e) => {
8522
8518
  ), Hh = ({
8523
8519
  files: e,
8524
8520
  clearFile: t
8525
- }) => e && e.length > 0 && /* @__PURE__ */ x("div", { className: "px-4 py-2", children: [
8526
- /* @__PURE__ */ u("div", { className: "flex flex-wrap gap-2", children: Array.from(e).map((r, n) => /* @__PURE__ */ x(
8521
+ }) => e && e.length > 0 && /* @__PURE__ */ k("div", { className: "px-4 py-2", children: [
8522
+ /* @__PURE__ */ u("div", { className: "flex flex-wrap gap-2", children: Array.from(e).map((r, n) => /* @__PURE__ */ k(
8527
8523
  "div",
8528
8524
  {
8529
8525
  className: "inline-flex items-center bg-slate-700 text-copy-lighter text-xs px-2 py-1 rounded-md",
8530
8526
  children: [
8531
8527
  /* @__PURE__ */ u("span", { className: "max-w-[150px] truncate", children: r.name }),
8532
- /* @__PURE__ */ x("span", { className: "mx-1 text-gray-400", children: [
8528
+ /* @__PURE__ */ k("span", { className: "mx-1 text-gray-400", children: [
8533
8529
  "(",
8534
8530
  Ut(r.size),
8535
8531
  ")"
@@ -8551,7 +8547,7 @@ const Ah = (e) => {
8551
8547
  },
8552
8548
  `${r.name}-${n}`
8553
8549
  )) }),
8554
- /* @__PURE__ */ x("div", { className: "text-xs text-gray-400 mt-1 pl-1", children: [
8550
+ /* @__PURE__ */ k("div", { className: "text-xs text-gray-400 mt-1 pl-1", children: [
8555
8551
  "Total: ",
8556
8552
  Ut(Ua(Array.from(e))),
8557
8553
  " /",
@@ -8582,7 +8578,7 @@ const Ah = (e) => {
8582
8578
  }), { data: z } = Qt({
8583
8579
  user: e?.username,
8584
8580
  getAccessToken: t
8585
- }), k = G(null), A = G(null), ie = G(!1), be = G(0), Se = G(null), j = G(null), me = ls(), bt = Vh({
8581
+ }), x = J(null), A = J(null), ie = J(!1), be = J(0), Se = J(null), j = J(null), me = ls(), bt = Vh({
8586
8582
  className: ""
8587
8583
  }), { setMessages: wt, status: Fe, id: ar, sendMessage: It, input: ce, setInput: Pe } = Ve({
8588
8584
  onFinish: (D) => {
@@ -8683,29 +8679,29 @@ const Ah = (e) => {
8683
8679
  j.current.style.height = `${D}px`, j.current.style.overflowY = "hidden";
8684
8680
  }, []), Ga = (D) => {
8685
8681
  if (D.preventDefault(), D.target.files && D.target.files.length > 0) {
8686
- const re = o ? Array.from(o) : [], ne = Array.from(D.target.files), xe = [...re];
8682
+ const re = o ? Array.from(o) : [], ne = Array.from(D.target.files), ke = [...re];
8687
8683
  let Re = !1;
8688
8684
  for (const we of ne) {
8689
8685
  const ir = "." + we.name.split(".").pop()?.toLowerCase();
8690
- _r.includes(ir) ? xe.some(
8686
+ _r.includes(ir) ? ke.some(
8691
8687
  (cr) => cr.name === we.name && cr.size === we.size && cr.lastModified === we.lastModified
8692
- ) || xe.push(we) : Re = !0;
8688
+ ) || ke.push(we) : Re = !0;
8693
8689
  }
8694
- if (A.current && (A.current.value = ""), Ua(xe) > Mr) {
8695
- k.current = `Total file size exceeds the limit of ${Ut(
8690
+ if (A.current && (A.current.value = ""), Ua(ke) > Mr) {
8691
+ x.current = `Total file size exceeds the limit of ${Ut(
8696
8692
  Mr
8697
8693
  )}.`, s(!0);
8698
8694
  return;
8699
8695
  }
8700
8696
  if (Re) {
8701
- k.current = `Only ${_r.join(
8697
+ x.current = `Only ${_r.join(
8702
8698
  ", "
8703
8699
  )} files are allowed.`, s(!0);
8704
8700
  return;
8705
8701
  }
8706
- if (xe.length > 0) {
8702
+ if (ke.length > 0) {
8707
8703
  const we = new DataTransfer();
8708
- xe.forEach((ir) => we.items.add(ir)), a(we.files), p({
8704
+ ke.forEach((ir) => we.items.add(ir)), a(we.files), p({
8709
8705
  type: et,
8710
8706
  payload: {
8711
8707
  attachments: we.files.length
@@ -8734,10 +8730,10 @@ const Ah = (e) => {
8734
8730
  const re = await t();
8735
8731
  let ne;
8736
8732
  if (o && o.length > 0) {
8737
- const xe = Array.from(o).map(
8733
+ const ke = Array.from(o).map(
8738
8734
  (Et) => Fh(Et)
8739
8735
  ), Re = new DataTransfer();
8740
- xe.forEach((Et) => Re.items.add(Et)), ne = Re.files;
8736
+ ke.forEach((Et) => Re.items.add(Et)), ne = Re.files;
8741
8737
  }
8742
8738
  Ja(D, {
8743
8739
  headers: {
@@ -8784,7 +8780,7 @@ const Ah = (e) => {
8784
8780
  }, 100);
8785
8781
  }, [_.lastTriggeredTimestamp, sr]), $(() => {
8786
8782
  h === 0 && (A.current && (A.current.value = ""), a(null));
8787
- }, [h]), /* @__PURE__ */ x(Ce, { children: [
8783
+ }, [h]), /* @__PURE__ */ k(Ce, { children: [
8788
8784
  /* @__PURE__ */ u(
8789
8785
  Ue,
8790
8786
  {
@@ -8798,12 +8794,12 @@ const Ah = (e) => {
8798
8794
  confirmAction: "Ok",
8799
8795
  title: "File Upload Restrictions"
8800
8796
  },
8801
- children: /* @__PURE__ */ u("p", { className: "m-0", children: k.current })
8797
+ children: /* @__PURE__ */ u("p", { className: "m-0", children: x.current })
8802
8798
  }
8803
8799
  ),
8804
- /* @__PURE__ */ u("div", { className: bt.wrapper, ref: Se, children: /* @__PURE__ */ x("form", { onSubmit: Kr, children: [
8800
+ /* @__PURE__ */ u("div", { className: bt.wrapper, ref: Se, children: /* @__PURE__ */ k("form", { onSubmit: Kr, children: [
8805
8801
  /* @__PURE__ */ u("div", { id: me, className: "sr-only", children: Ir() ? rn : l ? nn : on }),
8806
- /* @__PURE__ */ x("div", { className: "relative", children: [
8802
+ /* @__PURE__ */ k("div", { className: "relative", children: [
8807
8803
  /* @__PURE__ */ u(
8808
8804
  "textarea",
8809
8805
  {
@@ -8835,7 +8831,7 @@ const Ah = (e) => {
8835
8831
  )
8836
8832
  ] }),
8837
8833
  /* @__PURE__ */ u(Hh, { files: o, clearFile: qa }),
8838
- /* @__PURE__ */ x("div", { className: "p-2 flex items-center", children: [
8834
+ /* @__PURE__ */ k("div", { className: "p-2 flex items-center", children: [
8839
8835
  /* @__PURE__ */ u(Ph, { className: "order-7 ml-auto" }),
8840
8836
  /* @__PURE__ */ u(ah, { className: "order-1 mr-4 sm:mr-2" }),
8841
8837
  /* @__PURE__ */ u(Oh, { className: "order-2 mr-4 sm:mr-2" }),
@@ -8847,7 +8843,7 @@ const Ah = (e) => {
8847
8843
  }
8848
8844
  ),
8849
8845
  n && /* @__PURE__ */ u($h, { className: "order-4 mr-4 sm:mr-2" }),
8850
- /* @__PURE__ */ u(kh, { className: "order-5 mr-4 sm:mr-2" }),
8846
+ /* @__PURE__ */ u(xh, { className: "order-5 mr-4 sm:mr-2" }),
8851
8847
  /* @__PURE__ */ u(Mh, { className: "order-6" })
8852
8848
  ] })
8853
8849
  ] }) })
@@ -8927,7 +8923,7 @@ const Ah = (e) => {
8927
8923
  "bottom-(--sassy-bottom)",
8928
8924
  Wm
8929
8925
  ),
8930
- children: /* @__PURE__ */ x("div", { className: Er(), children: [
8926
+ children: /* @__PURE__ */ k("div", { className: Er(), children: [
8931
8927
  /* @__PURE__ */ u(Kh, {}),
8932
8928
  /* @__PURE__ */ u("div", { className: "w-full text-center text-xs text-slate-300 pt-2", children: s })
8933
8929
  ] })
@@ -8976,7 +8972,7 @@ const Ah = (e) => {
8976
8972
  });
8977
8973
  } catch {
8978
8974
  }
8979
- }, h = f && d, v = h && Mt.find((_) => f.provider === _.id)?.icon || Mt[0].icon, I = /* @__PURE__ */ x(
8975
+ }, h = f && d, v = h && Mt.find((_) => f.provider === _.id)?.icon || Mt[0].icon, I = /* @__PURE__ */ k(
8980
8976
  or,
8981
8977
  {
8982
8978
  mode: "dark",
@@ -9028,33 +9024,33 @@ const Ah = (e) => {
9028
9024
  }, rf = Me(
9029
9025
  () => import(
9030
9026
  /* webpackChunkName: "modal-chunk" */
9031
- "./ProfileEntry.un5FevWN.js"
9027
+ "./ProfileEntry.Cp6GKTXd.js"
9032
9028
  ).then((e) => ({
9033
9029
  default: e.Profile
9034
9030
  }))
9035
9031
  ), nf = Me(
9036
9032
  () => import(
9037
9033
  /* webpackChunkName: "modal-chunk" */
9038
- "./SettingsEntry.C8PZoiRl.js"
9034
+ "./SettingsEntry.CBvovzte.js"
9039
9035
  ).then((e) => ({
9040
9036
  default: e.SettingsPanel
9041
9037
  }))
9042
9038
  ), of = Me(
9043
9039
  () => import(
9044
9040
  /* webpackChunkName: "modal-chunk" */
9045
- "./HistoryEntry.DJd8wyU_.js"
9041
+ "./HistoryEntry.c-t2Qly1.js"
9046
9042
  ).then((e) => ({
9047
9043
  default: e.HistoryPanel
9048
9044
  }))
9049
9045
  ), af = Me(
9050
9046
  () => import(
9051
9047
  /* webpackChunkName: "modal-chunk" */
9052
- "./AboutEntry.ZpXcef48.js"
9048
+ "./AboutEntry.xxSM1oC2.js"
9053
9049
  ).then((e) => ({ default: e.About }))
9054
9050
  ), sf = Me(
9055
9051
  () => import(
9056
9052
  /* webpackChunkName: "modal-chunk" */
9057
- "./UsageEntry.DOeus8Cu.js"
9053
+ "./UsageEntry.DQ8C9RD2.js"
9058
9054
  ).then((e) => ({ default: e.Usage }))
9059
9055
  ), cf = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ u(jt, { fallback: /* @__PURE__ */ u("div", {}), children: (() => {
9060
9056
  switch (e) {
@@ -9078,23 +9074,23 @@ const Ah = (e) => {
9078
9074
  i || Promise.all([
9079
9075
  import(
9080
9076
  /* webpackChunkName: "modal-chunk" */
9081
- "./ProfileEntry.un5FevWN.js"
9077
+ "./ProfileEntry.Cp6GKTXd.js"
9082
9078
  ),
9083
9079
  import(
9084
9080
  /* webpackChunkName: "modal-chunk" */
9085
- "./SettingsEntry.C8PZoiRl.js"
9081
+ "./SettingsEntry.CBvovzte.js"
9086
9082
  ),
9087
9083
  import(
9088
9084
  /* webpackChunkName: "modal-chunk" */
9089
- "./HistoryEntry.DJd8wyU_.js"
9085
+ "./HistoryEntry.c-t2Qly1.js"
9090
9086
  ),
9091
9087
  import(
9092
9088
  /* webpackChunkName: "modal-chunk" */
9093
- "./AboutEntry.ZpXcef48.js"
9089
+ "./AboutEntry.xxSM1oC2.js"
9094
9090
  ),
9095
9091
  import(
9096
9092
  /* webpackChunkName: "modal-chunk" */
9097
- "./UsageEntry.DOeus8Cu.js"
9093
+ "./UsageEntry.DQ8C9RD2.js"
9098
9094
  )
9099
9095
  ]).finally(() => s(!0));
9100
9096
  }, [i]), c = U((f) => {
@@ -9123,7 +9119,7 @@ const Ah = (e) => {
9123
9119
  * focus.
9124
9120
  */
9125
9121
  []
9126
- ), /* @__PURE__ */ x(Ce, { children: [
9122
+ ), /* @__PURE__ */ k(Ce, { children: [
9127
9123
  /* @__PURE__ */ u(
9128
9124
  Ue,
9129
9125
  {
@@ -9146,7 +9142,7 @@ const Ah = (e) => {
9146
9142
  onOpenChange: p
9147
9143
  }
9148
9144
  ),
9149
- /* @__PURE__ */ u("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ x(
9145
+ /* @__PURE__ */ u("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ k(
9150
9146
  br,
9151
9147
  {
9152
9148
  alignHorizontal: "space-between",
@@ -9161,7 +9157,7 @@ const Ah = (e) => {
9161
9157
  label: "Profile, Settings, etc.",
9162
9158
  mode: "light",
9163
9159
  placement: "left",
9164
- trigger: /* @__PURE__ */ x(
9160
+ trigger: /* @__PURE__ */ k(
9165
9161
  or,
9166
9162
  {
9167
9163
  mode: "dark",
@@ -9219,7 +9215,7 @@ const Ah = (e) => {
9219
9215
  icon: /* @__PURE__ */ u(pi, {})
9220
9216
  }
9221
9217
  ),
9222
- !e && /* @__PURE__ */ x(Ce, { children: [
9218
+ !e && /* @__PURE__ */ k(Ce, { children: [
9223
9219
  /* @__PURE__ */ u(zh, {}),
9224
9220
  /* @__PURE__ */ u(
9225
9221
  Ie,
@@ -9309,8 +9305,8 @@ const Ah = (e) => {
9309
9305
  "fill-copy-dark dark:fill-copy-accent": t === "system",
9310
9306
  "fill-copy-accent dark:fill-copy-dark": t === "alt-system"
9311
9307
  });
9312
- return /* @__PURE__ */ x("div", { ref: e, className: o, role: "status", children: [
9313
- r === "dots" && /* @__PURE__ */ x("svg", { className: "h-8 w-8", children: [
9308
+ return /* @__PURE__ */ k("div", { ref: e, className: o, role: "status", children: [
9309
+ r === "dots" && /* @__PURE__ */ k("svg", { className: "h-8 w-8", children: [
9314
9310
  /* @__PURE__ */ u("circle", { className: a, cx: "6", cy: "50%", r: "3" }),
9315
9311
  /* @__PURE__ */ u("circle", { className: a, cx: "50%", cy: "50%", r: "3" }),
9316
9312
  /* @__PURE__ */ u("circle", { className: a, cx: "80%", cy: "50%", r: "3" })
@@ -9332,18 +9328,18 @@ try {
9332
9328
  } catch {
9333
9329
  }
9334
9330
  const df = Me(
9335
- () => import("./index.XmM-HffY.js").then((e) => ({ default: e.Bubble }))
9331
+ () => import("./index.DOGFTmsP.js").then((e) => ({ default: e.Bubble }))
9336
9332
  ), Xr = (e) => /* @__PURE__ */ u(jt, { fallback: /* @__PURE__ */ u("span", { className: "inline-block" }), children: /* @__PURE__ */ u(df, { ...e }) });
9337
9333
  Xr.displayName = "AsyncBubble";
9338
9334
  const eo = 1, pf = 150, mf = Me(
9339
9335
  () => import(
9340
9336
  /* webpackChunkName: "LazyMessageAssistant" */
9341
- "./ChatBubbleAssistant.CSKXESRd.js"
9337
+ "./ChatBubbleAssistant.BvSTXfZu.js"
9342
9338
  )
9343
9339
  ), hf = Me(
9344
9340
  () => import(
9345
9341
  /* webpackChunkName: "LazyMessageUser" */
9346
- "./ChatBubbleUser.xVDiOcM1.js"
9342
+ "./ChatBubbleUser.DAG3DtIn.js"
9347
9343
  )
9348
9344
  ), ff = tt.memo(
9349
9345
  ({
@@ -9354,7 +9350,7 @@ const eo = 1, pf = 150, mf = Me(
9354
9350
  isLastAssistantMessage: o = !1,
9355
9351
  status: a
9356
9352
  }) => {
9357
- const [i, s] = P(!0), l = G(Date.now()), [c] = P(
9353
+ const [i, s] = P(!0), l = J(Date.now()), [c] = P(
9358
9354
  () => o && (a === "streaming" || a === "submitted")
9359
9355
  );
9360
9356
  return $(() => {
@@ -9369,7 +9365,7 @@ const eo = 1, pf = 150, mf = Me(
9369
9365
  }
9370
9366
  s(!1);
9371
9367
  }
9372
- }, [t, i, o]), e === io && t ? /* @__PURE__ */ x(jt, { fallback: /* @__PURE__ */ u("span", {}), children: [
9368
+ }, [t, i, o]), e === io && t ? /* @__PURE__ */ k(jt, { fallback: /* @__PURE__ */ u("span", {}), children: [
9373
9369
  /* @__PURE__ */ u(hf, { content: t }),
9374
9370
  ";"
9375
9371
  ] }) : (e === ut || e === cn) && o && (a === "submitted" || a === "streaming") && i ? /* @__PURE__ */ u(Xr, { tail: !0, children: /* @__PURE__ */ u(Va, { type: "dots" }) }) : (e === ut || e === cn) && t && t.trim().length >= eo ? /* @__PURE__ */ u(jt, { fallback: /* @__PURE__ */ u("span", {}), children: /* @__PURE__ */ u(
@@ -9409,7 +9405,7 @@ function vf(e) {
9409
9405
  }
9410
9406
  const yf = () => {
9411
9407
  const { messages: e, status: t } = Ve(), r = e ? e.map((a, i) => a.role === ut ? 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;
9412
- return e && e.length > 0 ? /* @__PURE__ */ x("div", { className: "space-y-6 mt-2 @container", children: [
9408
+ return e && e.length > 0 ? /* @__PURE__ */ k("div", { className: "space-y-6 mt-2 @container", children: [
9413
9409
  e?.map((a, i) => {
9414
9410
  let s;
9415
9411
  const l = `${i}-${a.role}`, c = gf(a), p = vf(a), d = a.role === ut && i === r;
@@ -9429,11 +9425,11 @@ const yf = () => {
9429
9425
  o && /* @__PURE__ */ u(Xr, { tail: !0, children: /* @__PURE__ */ u(Va, { type: "dots" }) })
9430
9426
  ] }) : null;
9431
9427
  }, _f = () => {
9432
- const { isAuthenticated: e } = $e(), { ref: t, inViewport: r } = Ys(), n = G(null), o = G(null), {
9428
+ const { isAuthenticated: e } = $e(), { ref: t, inViewport: r } = Ys(), n = J(null), o = J(null), {
9433
9429
  state: { footerPosition: a, footerHeight: i, footerOffset: s }
9434
9430
  } = te(Yr), {
9435
9431
  state: { loading: l }
9436
- } = te(ve), { messages: c } = Ve(), p = G(0), d = ws({
9432
+ } = te(ve), { messages: c } = Ve(), p = J(0), d = ws({
9437
9433
  isAuthenticated: e,
9438
9434
  extraClass: "rounded-b-md relative border-b-16 border-slate-900"
9439
9435
  }), g = Ir() ? "mt-4" : "", f = U(() => {
@@ -9446,8 +9442,8 @@ const yf = () => {
9446
9442
  l && f();
9447
9443
  }, [l, f]), $(() => {
9448
9444
  p.current = a === lt ? i + s + co + Is + 15 : 0;
9449
- }, [a, i, s]), /* @__PURE__ */ x(Ce, { children: [
9450
- /* @__PURE__ */ x("div", { className: d, ref: n, children: [
9445
+ }, [a, i, s]), /* @__PURE__ */ k(Ce, { children: [
9446
+ /* @__PURE__ */ k("div", { className: d, ref: n, children: [
9451
9447
  /* @__PURE__ */ u(Es, { className: g }),
9452
9448
  /* @__PURE__ */ u(yf, {}),
9453
9449
  /* @__PURE__ */ u("div", { ref: t, className: "scroll-marker" }),
@@ -9479,7 +9475,7 @@ function Fa({
9479
9475
  key: qe + Cs,
9480
9476
  initialValue: ""
9481
9477
  }), [f] = Ye({
9482
- key: qe + ks,
9478
+ key: qe + xs,
9483
9479
  initialValue: un
9484
9480
  }), [m] = Ye({
9485
9481
  key: qe + Ns,
@@ -9496,7 +9492,7 @@ function Fa({
9496
9492
  sortedCell: f,
9497
9493
  sortDirection: (() => {
9498
9494
  switch (f) {
9499
- case xs:
9495
+ case ks:
9500
9496
  return h;
9501
9497
  case un:
9502
9498
  default:
@@ -9506,7 +9502,7 @@ function Fa({
9506
9502
  }, [R, z] = Tt(
9507
9503
  Dm,
9508
9504
  b
9509
- ), [k, A] = Tt(Lm, {
9505
+ ), [x, A] = Tt(Lm, {
9510
9506
  prompt: "",
9511
9507
  lastTriggeredTimestamp: 0
9512
9508
  }), [ie, be] = Tt(Zm, {
@@ -9569,7 +9565,7 @@ function Fa({
9569
9565
  children: /* @__PURE__ */ u(Yr.Provider, { value: { state: I, dispatch: _ }, children: /* @__PURE__ */ u(
9570
9566
  qr.Provider,
9571
9567
  {
9572
- value: { state: k, dispatch: A },
9568
+ value: { state: x, dispatch: A },
9573
9569
  children: /* @__PURE__ */ u(
9574
9570
  ve.Provider,
9575
9571
  {
@@ -9579,7 +9575,7 @@ function Fa({
9579
9575
  setChatId: c,
9580
9576
  setInitialMessages: d
9581
9577
  },
9582
- children: /* @__PURE__ */ x(
9578
+ children: /* @__PURE__ */ k(
9583
9579
  Gm,
9584
9580
  {
9585
9581
  value: {
@@ -9592,7 +9588,7 @@ function Fa({
9592
9588
  }
9593
9589
  },
9594
9590
  children: [
9595
- /* @__PURE__ */ x("div", { className: Ss, children: [
9591
+ /* @__PURE__ */ k("div", { className: Ss, children: [
9596
9592
  /* @__PURE__ */ u(Jn, { containerId: "toggle-save" }),
9597
9593
  /* @__PURE__ */ u(Jn, { containerId: "toggle-provider" })
9598
9594
  ] }),
@@ -9626,9 +9622,9 @@ function Fa({
9626
9622
  );
9627
9623
  }
9628
9624
  Fa.displayName = "App";
9629
- const kf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Fa }, Symbol.toStringTag, { value: "Module" }));
9625
+ const xf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Fa }, Symbol.toStringTag, { value: "Module" }));
9630
9626
  export {
9631
- kf as App,
9627
+ xf as App,
9632
9628
  Xr as AsyncBubble,
9633
9629
  uf as ButtonScroll,
9634
9630
  $a as CHAT_SET_PROVIDER,
@@ -9637,7 +9633,7 @@ export {
9637
9633
  Ue as ConfirmationPanel,
9638
9634
  Ye as E,
9639
9635
  Wr as HistoryContext,
9640
- xh as L,
9636
+ kh as L,
9641
9637
  Jn as LazyToastContainerWrapper,
9642
9638
  si as a,
9643
9639
  Ke as e,
@@ -9646,7 +9642,7 @@ export {
9646
9642
  ui as p$1,
9647
9643
  ri as p$2,
9648
9644
  gh as se,
9649
- xf as showErrorToast,
9645
+ kf as showErrorToast,
9650
9646
  Yt as showSuccessToast,
9651
9647
  Te as st,
9652
9648
  Ve as useAiChat,