@versini/sassysaint 8.99.3 → 8.100.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/chunks/{AboutChangelog.C_qMLuiB.js → AboutChangelog.CRhwlTEk.js} +3 -3
  2. package/dist/chunks/AboutEntry.dpZ59YR5.js +83 -0
  3. package/dist/chunks/{App.BUZaV6AF.js → App.BGCRyBum.js} +331 -329
  4. package/dist/chunks/{Chart.DvSv2Eza.js → Chart.CWMn_NC0.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.DPvPqKP2.js → ChatBubbleAssistant.3HbqWdw7.js} +4 -4
  6. package/dist/chunks/{ChatBubbleUser.BCEiPwpY.js → ChatBubbleUser.DeTQjv1M.js} +6 -6
  7. package/dist/chunks/{ChatHistoryTable.BV0EO83B.js → ChatHistoryTable.Dvq6Fus8.js} +3 -3
  8. package/dist/chunks/{HistoryEntry.DdsxhGAV.js → HistoryEntry.Q2pKcHSB.js} +134 -133
  9. package/dist/chunks/{UserMemoriesPanel.B7Vh6shw.js → MemoriesEntry.Cskw19yH.js} +212 -209
  10. package/dist/chunks/{ProfileEntry.C-3cFRJF.js → ProfileEntry.C00E78C_.js} +76 -72
  11. package/dist/chunks/{SettingsEntry.AuH85ovZ.js → SettingsEntry.DFwJrngK.js} +116 -108
  12. package/dist/chunks/{UsageEntry.C5_CSslN.js → UsageEntry.BPZ7yPOX.js} +77 -76
  13. package/dist/chunks/{index.CHoYdZu2.js → index.BIxn7Wij.js} +3 -3
  14. package/dist/chunks/{index.DRSAc_Rh.js → index.C2pCFOLr.js} +1 -1
  15. package/dist/chunks/{index.DQOeZzJl.js → index.CTez5Lsb.js} +22 -22
  16. package/dist/chunks/{index.IFwWrDqI.js → index.CWA0zYs3.js} +4 -4
  17. package/dist/chunks/{index.BtC6g5QI.js → index.D45TMhi3.js} +1 -1
  18. package/dist/chunks/{index.C8gT8NUq.js → index.DJqpI1Fy.js} +2 -2
  19. package/dist/chunks/{index.3sEe64_a.js → index.DOJ-dFDl.js} +1 -1
  20. package/dist/chunks/{index.D3zzxjS0.js → index.QSaRoa3c.js} +1 -1
  21. package/dist/chunks/{index.BbB1hl1m.js → index.wgdXdgVK.js} +165 -165
  22. package/dist/chunks/{useMarkdown.CFmffPvi.js → useMarkdown.BbxV-Fsm.js} +9 -9
  23. package/dist/components/SassySaint/SassySaint.js +1 -1
  24. package/dist/index.js +4 -4
  25. package/package.json +3 -3
  26. package/dist/chunks/AboutEntry.CKKvxJXb.js +0 -79
@@ -1,6 +1,6 @@
1
1
  import { jsx as p, jsxs as N, Fragment as Me } from "react/jsx-runtime";
2
- import { ACTION_SORT as la, e$1 as ht, ACTION_SEARCH as ua, ACTION_RESET_PROMPT as po, ACTION_TOGGLE_PROMPT as fo, ChatContext as we, LOCAL_STORAGE_PREFIX as ke, LOCAL_STORAGE_CHAT_ID as Ut, n as Ie, useLocalStorage as Ae, isDev as da, isPWAMode as mo, isTauri as yt, useChat as pa, useClickOutside as fa, useInterval as ma, isProbablyiPhone as Ne, useTheme as Ce, ButtonIcon as Pe, IconAddLight as ha, DEFAULT_ICON_ACTION_SIZE as Oe, useUserPreferences as Fe, useHotkeys as Vr, IconCloseLight as ga, IconEditLight as va, serverUrl as ho, useEntitlements as Hr, useHaptic as ya, Button as go, L as Cr, j as st, useSaveChat as _a, LOCAL_STORAGE_PRIVATE_DISCLOSURE as ba, w as Jt, IconLockedLight as wa, IconUnlockedLight as Ia, IconSelected as Ea, IconUnSelected as Ta, IconNext as Sa, PromptsContext as Gr, IconBookSparklesLight as ka, IconRewrite as Ca, IconProofread as xa, IconMagic as Aa, LOCAL_STORAGE_REASONING_DISCLOSURE as Na, IconLightBulbLight as Oa, IconSendLight as Pa, INPUT_PLACEHOLDER_TEXT_IN_SESSION as vo, INPUT_PLACEHOLDER_TEXT_MORNING as Ra, INPUT_PLACEHOLDER_TEXT_TODAY as za, INPUT_PLACEHOLDER_TEXT_AFTERNOON as Ma, INPUT_PLACEHOLDER_TEXT_EVENING as $a, INPUT_PLACEHOLDER_TEXT_NIGHT as Za, INPUT_PLACEHOLDER_TEXT_DEFAULT as Da, PROMPT_EDITABLE_AREA_CLASSNAME as La, PROMPT_CLASSNAME as Ua, IconClose as Fa, AppContext as kt, HistoryContext as yo, useChatsHistory as ja, useUniqueId as Ba, j$1 as _o, ERROR_MESSAGE as Va, o as _t, CLIPBOARD_PROMPT as ln, getHotkeyHandler as Ha, U as Ga, FOOTER_DISCLAIMERS as un, isProbablyiPad as Ja, useResizeObserver as bo, useViewportSize as Wa, useVisualViewportSize as Ya, INPUT_BOTTOM_OFFSET_IPHONE as qa, INPUT_BOTTOM_OFFSET_IPAD as Xa, INPUT_BOTTOM_OFFSET as wo, INPUT_BOTTOM_OFFSET_EXTRA as pr, APP_SET_FOOTER_HEIGHT as Qa, FOOTER_TOP as xr, FOOTER_BOTTOM as gt, APP_SET_FOOTER_POSITION as fr, getLayoutPaddingClass as Ar, canEvaluateModels as dn, k as Ka, IconOpenAI as ei, a as ti, IconAnthropic as ri, i as ni, IconGoogleGemini as oi, s as si, x as ai, p as mr, setNewProvider as pn, TOAST_PROVIDER_CHANGED as fn, useQueryClient as ii, LOG_OUT as mn, IconProfile as ci, IconSliders as li, IconHistory as ui, IconEditUser as di, IconChart as pi, IconInfo as fi, IconBack as mi, IconSettings as hi, n$1 as Io, useInViewport as gi, useServerCapabilities as vi, getMessageContaintWrapperClass as yi, UI_FOOTER_BUFFER as Eo, UI_BUTTON_SCROLL_BUFFER as _i, Logo as bi, isProbablyMobile as wi, UI_DEFAULT_MAIN_HEIGHT as hn, e as Ii, appReducer as Ei, applyOledMode as Ti, APP_SET_OLED_MODE as Si, APP_SET_FULL_SCREEN as ki, APP_SET_THEME_MODE as Ci, APP_SET_THEME_PALETTE as xi, UI_DEFAULT_MAIN_HEIGHT_IPHONE as Ai, APP_CLASSNAME as Ni, y as gn, v as Oi, LOCAL_STORAGE_SORT as Pi, LOCAL_STORAGE_SEARCH as Ri, LOCAL_STORAGE_OLED_MODE as zi, LOCAL_STORAGE_FULL_SCREEN as Mi, LOCAL_STORAGE_SORT_TIMESTAMP as $i, LOCAL_STORAGE_SORT_TOKEN_USAGE as Zi, TOAST_CACHE_ENABLED as Di, TOAST_CACHE_DISABLED as Li } from "./index.BbB1hl1m.js";
3
- import To, { useRef as J, useCallback as X, useSyncExternalStore as hr, useEffect as $, useState as Z, createContext as Jr, useContext as Q, useMemo as me, forwardRef as Xe, useId as So, useLayoutEffect as or, cloneElement as Ui, Suspense as Wt, lazy as Re, useReducer as Pt } from "react";
2
+ import { ACTION_SORT as la, e$1 as ht, ACTION_SEARCH as ua, ACTION_RESET_PROMPT as po, ACTION_TOGGLE_PROMPT as fo, ChatContext as we, LOCAL_STORAGE_PREFIX as ke, LOCAL_STORAGE_CHAT_ID as Ut, n as Ie, useLocalStorage as Ae, isDev as da, isPWAMode as mo, isTauri as yt, useChat as pa, useClickOutside as fa, useInterval as ma, isProbablyiPhone as Ne, useTheme as Ce, ButtonIcon as Pe, IconAddLight as ha, DEFAULT_ICON_ACTION_SIZE as Oe, useUserPreferences as Fe, useHotkeys as Vr, IconCloseLight as ga, IconEditLight as va, serverUrl as ho, useEntitlements as Hr, useHaptic as ya, Button as go, L as Cr, j as st, useSaveChat as _a, LOCAL_STORAGE_PRIVATE_DISCLOSURE as ba, w as Jt, IconLockedLight as wa, IconUnlockedLight as Ia, IconSelected as Ea, IconUnSelected as Ta, IconNext as Sa, PromptsContext as Gr, IconBookSparklesLight as ka, IconRewrite as Ca, IconProofread as xa, IconMagic as Aa, LOCAL_STORAGE_REASONING_DISCLOSURE as Na, IconLightBulbLight as Oa, IconSendLight as Pa, INPUT_PLACEHOLDER_TEXT_IN_SESSION as vo, INPUT_PLACEHOLDER_TEXT_MORNING as Ra, INPUT_PLACEHOLDER_TEXT_TODAY as za, INPUT_PLACEHOLDER_TEXT_AFTERNOON as Ma, INPUT_PLACEHOLDER_TEXT_EVENING as $a, INPUT_PLACEHOLDER_TEXT_NIGHT as Za, INPUT_PLACEHOLDER_TEXT_DEFAULT as Da, PROMPT_EDITABLE_AREA_CLASSNAME as La, PROMPT_CLASSNAME as Ua, IconClose as Fa, AppContext as kt, HistoryContext as yo, useChatsHistory as ja, useUniqueId as Ba, j$1 as _o, ERROR_MESSAGE as Va, o as _t, CLIPBOARD_PROMPT as ln, getHotkeyHandler as Ha, U as Ga, FOOTER_DISCLAIMERS as un, isProbablyiPad as Ja, useResizeObserver as bo, useViewportSize as Wa, useVisualViewportSize as Ya, INPUT_BOTTOM_OFFSET_IPHONE as qa, INPUT_BOTTOM_OFFSET_IPAD as Xa, INPUT_BOTTOM_OFFSET as wo, INPUT_BOTTOM_OFFSET_EXTRA as pr, APP_SET_FOOTER_HEIGHT as Qa, FOOTER_TOP as xr, FOOTER_BOTTOM as gt, APP_SET_FOOTER_POSITION as fr, getLayoutPaddingClass as Ar, canEvaluateModels as dn, k as Ka, IconOpenAI as ei, a as ti, IconAnthropic as ri, i as ni, IconGoogleGemini as oi, s as si, x as ai, p as mr, setNewProvider as pn, TOAST_PROVIDER_CHANGED as fn, useQueryClient as ii, LOG_OUT as mn, IconProfile as ci, IconSliders as li, IconHistory as ui, IconEditUser as di, IconChart as pi, IconInfo as fi, IconBack as mi, IconSettings as hi, n$1 as Io, useInViewport as gi, useServerCapabilities as vi, getMessageContaintWrapperClass as yi, UI_FOOTER_BUFFER as Eo, UI_BUTTON_SCROLL_BUFFER as _i, Logo as bi, isProbablyMobile as wi, UI_DEFAULT_MAIN_HEIGHT as hn, e as Ii, appReducer as Ei, applyOledMode as Ti, APP_SET_OLED_MODE as Si, APP_SET_FULL_SCREEN as ki, APP_SET_THEME_MODE as Ci, APP_SET_THEME_PALETTE as xi, UI_DEFAULT_MAIN_HEIGHT_IPHONE as Ai, APP_CLASSNAME as Ni, y as gn, v as Oi, LOCAL_STORAGE_SORT as Pi, LOCAL_STORAGE_SEARCH as Ri, LOCAL_STORAGE_OLED_MODE as zi, LOCAL_STORAGE_FULL_SCREEN as Mi, LOCAL_STORAGE_SORT_TIMESTAMP as $i, LOCAL_STORAGE_SORT_TOKEN_USAGE as Zi, TOAST_CACHE_ENABLED as Di, TOAST_CACHE_DISABLED as Li } from "./index.wgdXdgVK.js";
3
+ import To, { useRef as V, useCallback as X, useSyncExternalStore as hr, useEffect as $, useState as Z, createContext as Jr, useContext as Q, useMemo as me, forwardRef as Xe, useId as So, useLayoutEffect as or, cloneElement as Ui, Suspense as Wt, lazy as Re, useReducer as Pt } from "react";
4
4
  import P, { clsx as $e } from "clsx";
5
5
  import { computePosition as Fi, offset as ko, flip as Co, shift as xo, arrow as ji, useMergeRefs as Wr, FloatingPortal as Nr, FloatingOverlay as Bi, FloatingFocusManager as Or, useFloating as Ao, useClick as No, useDismiss as Oo, useRole as Po, useInteractions as Ro, useFloatingParentNodeId as zo, FloatingTree as Vi, useListItem as Mo, useFloatingTree as $o, useFloatingNodeId as Hi, autoUpdate as Gi, useHover as Ji, safePolygon as Wi, useListNavigation as Yi, useTypeahead as qi, FloatingNode as vn, FloatingList as yn } from "@floating-ui/react";
6
6
  var Zo = "vercel.ai.error", Xi = Symbol.for(Zo), Do, Qi = class Lo extends Error {
@@ -110,7 +110,7 @@ function oc(e) {
110
110
  const { onEvent: t = gr, onError: r = gr, onRetry: n = gr, onComment: o } = e;
111
111
  let s = "", i = !0, a, c = "", l = "";
112
112
  function d(m) {
113
- const v = i ? m.replace(/^\xEF\xBB\xBF/, "") : m, [_, w] = sc(`${s}${v}`);
113
+ const y = i ? m.replace(/^\xEF\xBB\xBF/, "") : m, [_, w] = sc(`${s}${y}`);
114
114
  for (const I of _)
115
115
  u(I);
116
116
  s = w, i = !1;
@@ -124,31 +124,31 @@ function oc(e) {
124
124
  o && o(m.slice(m.startsWith(": ") ? 2 : 1));
125
125
  return;
126
126
  }
127
- const v = m.indexOf(":");
128
- if (v !== -1) {
129
- const _ = m.slice(0, v), w = m[v + 1] === " " ? 2 : 1, I = m.slice(v + w);
130
- y(_, I, m);
127
+ const y = m.indexOf(":");
128
+ if (y !== -1) {
129
+ const _ = m.slice(0, y), w = m[y + 1] === " " ? 2 : 1, I = m.slice(y + w);
130
+ v(_, I, m);
131
131
  return;
132
132
  }
133
- y(m, "", m);
133
+ v(m, "", m);
134
134
  }
135
- function y(m, v, _) {
135
+ function v(m, y, _) {
136
136
  switch (m) {
137
137
  case "event":
138
- l = v;
138
+ l = y;
139
139
  break;
140
140
  case "data":
141
- c = `${c}${v}
141
+ c = `${c}${y}
142
142
  `;
143
143
  break;
144
144
  case "id":
145
- a = v.includes("\0") ? void 0 : v;
145
+ a = y.includes("\0") ? void 0 : y;
146
146
  break;
147
147
  case "retry":
148
- /^\d+$/.test(v) ? n(parseInt(v, 10)) : r(
149
- new bn(`Invalid \`retry\` value: "${v}"`, {
148
+ /^\d+$/.test(y) ? n(parseInt(y, 10)) : r(
149
+ new bn(`Invalid \`retry\` value: "${y}"`, {
150
150
  type: "invalid-retry",
151
- value: v,
151
+ value: y,
152
152
  line: _
153
153
  })
154
154
  );
@@ -157,7 +157,7 @@ function oc(e) {
157
157
  r(
158
158
  new bn(
159
159
  `Unknown field "${m.length > 20 ? `${m.slice(0, 20)}…` : m}"`,
160
- { type: "unknown-field", field: m, value: v, line: _ }
160
+ { type: "unknown-field", field: m, value: y, line: _ }
161
161
  )
162
162
  );
163
163
  break;
@@ -918,12 +918,12 @@ const pl = {
918
918
  continue;
919
919
  } else if (c)
920
920
  continue;
921
- const u = s.issues.length, y = d._zod.check(s);
922
- if (y instanceof Promise && a?.async === !1)
921
+ const u = s.issues.length, v = d._zod.check(s);
922
+ if (v instanceof Promise && a?.async === !1)
923
923
  throw new bt();
924
- if (l || y instanceof Promise)
924
+ if (l || v instanceof Promise)
925
925
  l = (l ?? Promise.resolve()).then(async () => {
926
- await y, s.issues.length !== u && (c || (c = vt(s, u)));
926
+ await v, s.issues.length !== u && (c || (c = vt(s, u)));
927
927
  });
928
928
  else {
929
929
  if (s.issues.length === u)
@@ -969,10 +969,10 @@ const pl = {
969
969
  inst: e
970
970
  }), r;
971
971
  };
972
- }), V = /* @__PURE__ */ b("$ZodStringFormat", (e, t) => {
972
+ }), H = /* @__PURE__ */ b("$ZodStringFormat", (e, t) => {
973
973
  ar.init(e, t), Kr.init(e, t);
974
974
  }), fl = /* @__PURE__ */ b("$ZodGUID", (e, t) => {
975
- t.pattern ?? (t.pattern = Pc), V.init(e, t);
975
+ t.pattern ?? (t.pattern = Pc), H.init(e, t);
976
976
  }), ml = /* @__PURE__ */ b("$ZodUUID", (e, t) => {
977
977
  if (t.version) {
978
978
  const n = {
@@ -990,11 +990,11 @@ const pl = {
990
990
  t.pattern ?? (t.pattern = wn(n));
991
991
  } else
992
992
  t.pattern ?? (t.pattern = wn());
993
- V.init(e, t);
993
+ H.init(e, t);
994
994
  }), hl = /* @__PURE__ */ b("$ZodEmail", (e, t) => {
995
- t.pattern ?? (t.pattern = Rc), V.init(e, t);
995
+ t.pattern ?? (t.pattern = Rc), H.init(e, t);
996
996
  }), gl = /* @__PURE__ */ b("$ZodURL", (e, t) => {
997
- V.init(e, t), e._zod.check = (r) => {
997
+ H.init(e, t), e._zod.check = (r) => {
998
998
  try {
999
999
  const n = r.value, o = new URL(n), s = o.href;
1000
1000
  t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(o.hostname) || r.issues.push({
@@ -1026,34 +1026,34 @@ const pl = {
1026
1026
  }
1027
1027
  };
1028
1028
  }), vl = /* @__PURE__ */ b("$ZodEmoji", (e, t) => {
1029
- t.pattern ?? (t.pattern = Mc()), V.init(e, t);
1029
+ t.pattern ?? (t.pattern = Mc()), H.init(e, t);
1030
1030
  }), yl = /* @__PURE__ */ b("$ZodNanoID", (e, t) => {
1031
- t.pattern ?? (t.pattern = Nc), V.init(e, t);
1031
+ t.pattern ?? (t.pattern = Nc), H.init(e, t);
1032
1032
  }), _l = /* @__PURE__ */ b("$ZodCUID", (e, t) => {
1033
- t.pattern ?? (t.pattern = Sc), V.init(e, t);
1033
+ t.pattern ?? (t.pattern = Sc), H.init(e, t);
1034
1034
  }), bl = /* @__PURE__ */ b("$ZodCUID2", (e, t) => {
1035
- t.pattern ?? (t.pattern = kc), V.init(e, t);
1035
+ t.pattern ?? (t.pattern = kc), H.init(e, t);
1036
1036
  }), wl = /* @__PURE__ */ b("$ZodULID", (e, t) => {
1037
- t.pattern ?? (t.pattern = Cc), V.init(e, t);
1037
+ t.pattern ?? (t.pattern = Cc), H.init(e, t);
1038
1038
  }), Il = /* @__PURE__ */ b("$ZodXID", (e, t) => {
1039
- t.pattern ?? (t.pattern = xc), V.init(e, t);
1039
+ t.pattern ?? (t.pattern = xc), H.init(e, t);
1040
1040
  }), El = /* @__PURE__ */ b("$ZodKSUID", (e, t) => {
1041
- t.pattern ?? (t.pattern = Ac), V.init(e, t);
1041
+ t.pattern ?? (t.pattern = Ac), H.init(e, t);
1042
1042
  }), Tl = /* @__PURE__ */ b("$ZodISODateTime", (e, t) => {
1043
- t.pattern ?? (t.pattern = Hc(t)), V.init(e, t);
1043
+ t.pattern ?? (t.pattern = Hc(t)), H.init(e, t);
1044
1044
  }), Sl = /* @__PURE__ */ b("$ZodISODate", (e, t) => {
1045
- t.pattern ?? (t.pattern = Bc), V.init(e, t);
1045
+ t.pattern ?? (t.pattern = Bc), H.init(e, t);
1046
1046
  }), kl = /* @__PURE__ */ b("$ZodISOTime", (e, t) => {
1047
- t.pattern ?? (t.pattern = Vc(t)), V.init(e, t);
1047
+ t.pattern ?? (t.pattern = Vc(t)), H.init(e, t);
1048
1048
  }), Cl = /* @__PURE__ */ b("$ZodISODuration", (e, t) => {
1049
- t.pattern ?? (t.pattern = Oc), V.init(e, t);
1049
+ t.pattern ?? (t.pattern = Oc), H.init(e, t);
1050
1050
  }), xl = /* @__PURE__ */ b("$ZodIPv4", (e, t) => {
1051
- t.pattern ?? (t.pattern = $c), V.init(e, t), e._zod.onattach.push((r) => {
1051
+ t.pattern ?? (t.pattern = $c), H.init(e, t), e._zod.onattach.push((r) => {
1052
1052
  const n = r._zod.bag;
1053
1053
  n.format = "ipv4";
1054
1054
  });
1055
1055
  }), Al = /* @__PURE__ */ b("$ZodIPv6", (e, t) => {
1056
- t.pattern ?? (t.pattern = Zc), V.init(e, t), e._zod.onattach.push((r) => {
1056
+ t.pattern ?? (t.pattern = Zc), H.init(e, t), e._zod.onattach.push((r) => {
1057
1057
  const n = r._zod.bag;
1058
1058
  n.format = "ipv6";
1059
1059
  }), e._zod.check = (r) => {
@@ -1070,9 +1070,9 @@ const pl = {
1070
1070
  }
1071
1071
  };
1072
1072
  }), Nl = /* @__PURE__ */ b("$ZodCIDRv4", (e, t) => {
1073
- t.pattern ?? (t.pattern = Dc), V.init(e, t);
1073
+ t.pattern ?? (t.pattern = Dc), H.init(e, t);
1074
1074
  }), Ol = /* @__PURE__ */ b("$ZodCIDRv6", (e, t) => {
1075
- t.pattern ?? (t.pattern = Lc), V.init(e, t), e._zod.check = (r) => {
1075
+ t.pattern ?? (t.pattern = Lc), H.init(e, t), e._zod.check = (r) => {
1076
1076
  const [n, o] = r.value.split("/");
1077
1077
  try {
1078
1078
  if (!o)
@@ -1106,7 +1106,7 @@ function us(e) {
1106
1106
  }
1107
1107
  }
1108
1108
  const Pl = /* @__PURE__ */ b("$ZodBase64", (e, t) => {
1109
- t.pattern ?? (t.pattern = Uc), V.init(e, t), e._zod.onattach.push((r) => {
1109
+ t.pattern ?? (t.pattern = Uc), H.init(e, t), e._zod.onattach.push((r) => {
1110
1110
  r._zod.bag.contentEncoding = "base64";
1111
1111
  }), e._zod.check = (r) => {
1112
1112
  us(r.value) || r.issues.push({
@@ -1125,7 +1125,7 @@ function Rl(e) {
1125
1125
  return us(r);
1126
1126
  }
1127
1127
  const zl = /* @__PURE__ */ b("$ZodBase64URL", (e, t) => {
1128
- t.pattern ?? (t.pattern = os), V.init(e, t), e._zod.onattach.push((r) => {
1128
+ t.pattern ?? (t.pattern = os), H.init(e, t), e._zod.onattach.push((r) => {
1129
1129
  r._zod.bag.contentEncoding = "base64url";
1130
1130
  }), e._zod.check = (r) => {
1131
1131
  Rl(r.value) || r.issues.push({
@@ -1137,7 +1137,7 @@ const zl = /* @__PURE__ */ b("$ZodBase64URL", (e, t) => {
1137
1137
  });
1138
1138
  };
1139
1139
  }), Ml = /* @__PURE__ */ b("$ZodE164", (e, t) => {
1140
- t.pattern ?? (t.pattern = jc), V.init(e, t);
1140
+ t.pattern ?? (t.pattern = jc), H.init(e, t);
1141
1141
  });
1142
1142
  function $l(e, t = null) {
1143
1143
  try {
@@ -1154,7 +1154,7 @@ function $l(e, t = null) {
1154
1154
  }
1155
1155
  }
1156
1156
  const Zl = /* @__PURE__ */ b("$ZodJWT", (e, t) => {
1157
- V.init(e, t), e._zod.check = (r) => {
1157
+ H.init(e, t), e._zod.check = (r) => {
1158
1158
  $l(r.value, t.alg) || r.issues.push({
1159
1159
  code: "invalid_format",
1160
1160
  format: "jwt",
@@ -1257,44 +1257,44 @@ const Vl = /* @__PURE__ */ b("$ZodObject", (e, t) => {
1257
1257
  for (const g of u)
1258
1258
  if (!(t.shape[g] instanceof j))
1259
1259
  throw new Error(`Invalid element at key "${g}": expected a Zod schema`);
1260
- const y = dc(t.shape);
1260
+ const v = dc(t.shape);
1261
1261
  return {
1262
1262
  shape: t.shape,
1263
1263
  keys: u,
1264
1264
  keySet: new Set(u),
1265
1265
  numKeys: u.length,
1266
- optionalKeys: new Set(y)
1266
+ optionalKeys: new Set(v)
1267
1267
  };
1268
1268
  });
1269
1269
  L(e._zod, "propValues", () => {
1270
- const u = t.shape, y = {};
1270
+ const u = t.shape, v = {};
1271
1271
  for (const g in u) {
1272
1272
  const f = u[g]._zod;
1273
1273
  if (f.values) {
1274
- y[g] ?? (y[g] = /* @__PURE__ */ new Set());
1274
+ v[g] ?? (v[g] = /* @__PURE__ */ new Set());
1275
1275
  for (const m of f.values)
1276
- y[g].add(m);
1276
+ v[g].add(m);
1277
1277
  }
1278
1278
  }
1279
- return y;
1279
+ return v;
1280
1280
  });
1281
1281
  const n = (u) => {
1282
- const y = new dl(["shape", "payload", "ctx"]), g = r.value, f = (w) => {
1282
+ const v = new dl(["shape", "payload", "ctx"]), g = r.value, f = (w) => {
1283
1283
  const I = ut(w);
1284
1284
  return `shape[${I}]._zod.run({ value: input[${I}], issues: [] }, ctx)`;
1285
1285
  };
1286
- y.write("const input = payload.value;");
1286
+ v.write("const input = payload.value;");
1287
1287
  const m = /* @__PURE__ */ Object.create(null);
1288
- let v = 0;
1288
+ let y = 0;
1289
1289
  for (const w of g.keys)
1290
- m[w] = `key_${v++}`;
1291
- y.write("const newResult = {}");
1290
+ m[w] = `key_${y++}`;
1291
+ v.write("const newResult = {}");
1292
1292
  for (const w of g.keys)
1293
1293
  if (g.optionalKeys.has(w)) {
1294
1294
  const I = m[w];
1295
- y.write(`const ${I} = ${f(w)};`);
1295
+ v.write(`const ${I} = ${f(w)};`);
1296
1296
  const h = ut(w);
1297
- y.write(`
1297
+ v.write(`
1298
1298
  if (${I}.issues.length) {
1299
1299
  if (input[${h}] === undefined) {
1300
1300
  if (${h} in input) {
@@ -1316,20 +1316,20 @@ const Vl = /* @__PURE__ */ b("$ZodObject", (e, t) => {
1316
1316
  `);
1317
1317
  } else {
1318
1318
  const I = m[w];
1319
- y.write(`const ${I} = ${f(w)};`), y.write(`
1319
+ v.write(`const ${I} = ${f(w)};`), v.write(`
1320
1320
  if (${I}.issues.length) payload.issues = payload.issues.concat(${I}.issues.map(iss => ({
1321
1321
  ...iss,
1322
1322
  path: iss.path ? [${ut(w)}, ...iss.path] : [${ut(w)}]
1323
- })));`), y.write(`newResult[${ut(w)}] = ${I}.value`);
1323
+ })));`), v.write(`newResult[${ut(w)}] = ${I}.value`);
1324
1324
  }
1325
- y.write("payload.value = newResult;"), y.write("return payload;");
1326
- const _ = y.compile();
1325
+ v.write("payload.value = newResult;"), v.write("return payload;");
1326
+ const _ = v.compile();
1327
1327
  return (w, I) => _(u, w, I);
1328
1328
  };
1329
1329
  let o;
1330
1330
  const s = qt, i = !qo.jitless, c = i && lc.value, l = t.catchall;
1331
1331
  let d;
1332
- e._zod.parse = (u, y) => {
1332
+ e._zod.parse = (u, v) => {
1333
1333
  d ?? (d = r.value);
1334
1334
  const g = u.value;
1335
1335
  if (!s(g))
@@ -1340,27 +1340,27 @@ const Vl = /* @__PURE__ */ b("$ZodObject", (e, t) => {
1340
1340
  inst: e
1341
1341
  }), u;
1342
1342
  const f = [];
1343
- if (i && c && y?.async === !1 && y.jitless !== !0)
1344
- o || (o = n(t.shape)), u = o(u, y);
1343
+ if (i && c && v?.async === !1 && v.jitless !== !0)
1344
+ o || (o = n(t.shape)), u = o(u, v);
1345
1345
  else {
1346
1346
  u.value = {};
1347
1347
  const I = d.shape;
1348
1348
  for (const h of d.keys) {
1349
- const E = I[h], x = E._zod.run({ value: g[h], issues: [] }, y), T = E._zod.optin === "optional" && E._zod.optout === "optional";
1349
+ const E = I[h], x = E._zod.run({ value: g[h], issues: [] }, v), T = E._zod.optin === "optional" && E._zod.optout === "optional";
1350
1350
  x instanceof Promise ? f.push(x.then((C) => T ? En(C, u, h, g) : zt(C, u, h))) : T ? En(x, u, h, g) : zt(x, u, h);
1351
1351
  }
1352
1352
  }
1353
1353
  if (!l)
1354
1354
  return f.length ? Promise.all(f).then(() => u) : u;
1355
- const m = [], v = d.keySet, _ = l._zod, w = _.def.type;
1355
+ const m = [], y = d.keySet, _ = l._zod, w = _.def.type;
1356
1356
  for (const I of Object.keys(g)) {
1357
- if (v.has(I))
1357
+ if (y.has(I))
1358
1358
  continue;
1359
1359
  if (w === "never") {
1360
1360
  m.push(I);
1361
1361
  continue;
1362
1362
  }
1363
- const h = _.run({ value: g[I], issues: [] }, y);
1363
+ const h = _.run({ value: g[I], issues: [] }, v);
1364
1364
  h instanceof Promise ? f.push(h.then((E) => zt(E, u, I))) : zt(h, u, I);
1365
1365
  }
1366
1366
  return m.length && u.issues.push({
@@ -2192,17 +2192,17 @@ class Mn {
2192
2192
  ...r,
2193
2193
  schemaPath: [...r.schemaPath, t],
2194
2194
  path: r.path
2195
- }, y = t._zod.parent;
2196
- if (y)
2197
- a.ref = y, this.process(y, u), this.seen.get(y).isParent = !0;
2195
+ }, v = t._zod.parent;
2196
+ if (v)
2197
+ a.ref = v, this.process(v, u), this.seen.get(v).isParent = !0;
2198
2198
  else {
2199
2199
  const g = a.schema;
2200
2200
  switch (o.type) {
2201
2201
  case "string": {
2202
2202
  const f = g;
2203
2203
  f.type = "string";
2204
- const { minimum: m, maximum: v, format: _, patterns: w, contentEncoding: I } = t._zod.bag;
2205
- if (typeof m == "number" && (f.minLength = m), typeof v == "number" && (f.maxLength = v), _ && (f.format = s[_] ?? _, f.format === "" && delete f.format), I && (f.contentEncoding = I), w && w.size > 0) {
2204
+ const { minimum: m, maximum: y, format: _, patterns: w, contentEncoding: I } = t._zod.bag;
2205
+ if (typeof m == "number" && (f.minLength = m), typeof y == "number" && (f.maxLength = y), _ && (f.format = s[_] ?? _, f.format === "" && delete f.format), I && (f.contentEncoding = I), w && w.size > 0) {
2206
2206
  const h = [...w];
2207
2207
  h.length === 1 ? f.pattern = h[0].source : h.length > 1 && (a.schema.allOf = [
2208
2208
  ...h.map((E) => ({
@@ -2214,8 +2214,8 @@ class Mn {
2214
2214
  break;
2215
2215
  }
2216
2216
  case "number": {
2217
- const f = g, { minimum: m, maximum: v, format: _, multipleOf: w, exclusiveMaximum: I, exclusiveMinimum: h } = t._zod.bag;
2218
- typeof _ == "string" && _.includes("int") ? f.type = "integer" : f.type = "number", typeof h == "number" && (f.exclusiveMinimum = h), typeof m == "number" && (f.minimum = m, typeof h == "number" && (h >= m ? delete f.minimum : delete f.exclusiveMinimum)), typeof I == "number" && (f.exclusiveMaximum = I), typeof v == "number" && (f.maximum = v, typeof I == "number" && (I <= v ? delete f.maximum : delete f.exclusiveMaximum)), typeof w == "number" && (f.multipleOf = w);
2217
+ const f = g, { minimum: m, maximum: y, format: _, multipleOf: w, exclusiveMaximum: I, exclusiveMinimum: h } = t._zod.bag;
2218
+ typeof _ == "string" && _.includes("int") ? f.type = "integer" : f.type = "number", typeof h == "number" && (f.exclusiveMinimum = h), typeof m == "number" && (f.minimum = m, typeof h == "number" && (h >= m ? delete f.minimum : delete f.exclusiveMinimum)), typeof I == "number" && (f.exclusiveMaximum = I), typeof y == "number" && (f.maximum = y, typeof I == "number" && (I <= y ? delete f.maximum : delete f.exclusiveMaximum)), typeof w == "number" && (f.multipleOf = w);
2219
2219
  break;
2220
2220
  }
2221
2221
  case "boolean": {
@@ -2261,8 +2261,8 @@ class Mn {
2261
2261
  break;
2262
2262
  }
2263
2263
  case "array": {
2264
- const f = g, { minimum: m, maximum: v } = t._zod.bag;
2265
- typeof m == "number" && (f.minItems = m), typeof v == "number" && (f.maxItems = v), f.type = "array", f.items = this.process(o.element, { ...u, path: [...u.path, "items"] });
2264
+ const f = g, { minimum: m, maximum: y } = t._zod.bag;
2265
+ typeof m == "number" && (f.minItems = m), typeof y == "number" && (f.maxItems = y), f.type = "array", f.items = this.process(o.element, { ...u, path: [...u.path, "items"] });
2266
2266
  break;
2267
2267
  }
2268
2268
  case "object": {
@@ -2274,7 +2274,7 @@ class Mn {
2274
2274
  ...u,
2275
2275
  path: [...u.path, "properties", w]
2276
2276
  });
2277
- const v = new Set(Object.keys(m)), _ = new Set([...v].filter((w) => {
2277
+ const y = new Set(Object.keys(m)), _ = new Set([...y].filter((w) => {
2278
2278
  const I = o.shape[w]._zod;
2279
2279
  return this.io === "input" ? I.optin === void 0 : I.optout === void 0;
2280
2280
  }));
@@ -2286,9 +2286,9 @@ class Mn {
2286
2286
  }
2287
2287
  case "union": {
2288
2288
  const f = g;
2289
- f.anyOf = o.options.map((m, v) => this.process(m, {
2289
+ f.anyOf = o.options.map((m, y) => this.process(m, {
2290
2290
  ...u,
2291
- path: [...u.path, "anyOf", v]
2291
+ path: [...u.path, "anyOf", y]
2292
2292
  }));
2293
2293
  break;
2294
2294
  }
@@ -2296,12 +2296,12 @@ class Mn {
2296
2296
  const f = g, m = this.process(o.left, {
2297
2297
  ...u,
2298
2298
  path: [...u.path, "allOf", 0]
2299
- }), v = this.process(o.right, {
2299
+ }), y = this.process(o.right, {
2300
2300
  ...u,
2301
2301
  path: [...u.path, "allOf", 1]
2302
2302
  }), _ = (I) => "allOf" in I && Object.keys(I).length === 1, w = [
2303
2303
  ..._(m) ? m.allOf : [m],
2304
- ..._(v) ? v.allOf : [v]
2304
+ ..._(y) ? y.allOf : [y]
2305
2305
  ];
2306
2306
  f.allOf = w;
2307
2307
  break;
@@ -2321,8 +2321,8 @@ class Mn {
2321
2321
  ...u,
2322
2322
  path: [...u.path, "items"]
2323
2323
  }));
2324
- const { minimum: v, maximum: _ } = t._zod.bag;
2325
- typeof v == "number" && (f.minItems = v), typeof _ == "number" && (f.maxItems = _);
2324
+ const { minimum: y, maximum: _ } = t._zod.bag;
2325
+ typeof y == "number" && (f.minItems = y), typeof _ == "number" && (f.maxItems = _);
2326
2326
  break;
2327
2327
  }
2328
2328
  case "record": {
@@ -2345,26 +2345,26 @@ class Mn {
2345
2345
  }
2346
2346
  case "enum": {
2347
2347
  const f = g, m = Xo(o.entries);
2348
- m.every((v) => typeof v == "number") && (f.type = "number"), m.every((v) => typeof v == "string") && (f.type = "string"), f.enum = m;
2348
+ m.every((y) => typeof y == "number") && (f.type = "number"), m.every((y) => typeof y == "string") && (f.type = "string"), f.enum = m;
2349
2349
  break;
2350
2350
  }
2351
2351
  case "literal": {
2352
2352
  const f = g, m = [];
2353
- for (const v of o.values)
2354
- if (v === void 0) {
2353
+ for (const y of o.values)
2354
+ if (y === void 0) {
2355
2355
  if (this.unrepresentable === "throw")
2356
2356
  throw new Error("Literal `undefined` cannot be represented in JSON Schema");
2357
- } else if (typeof v == "bigint") {
2357
+ } else if (typeof y == "bigint") {
2358
2358
  if (this.unrepresentable === "throw")
2359
2359
  throw new Error("BigInt literals cannot be represented in JSON Schema");
2360
- m.push(Number(v));
2360
+ m.push(Number(y));
2361
2361
  } else
2362
- m.push(v);
2362
+ m.push(y);
2363
2363
  if (m.length !== 0) if (m.length === 1) {
2364
- const v = m[0];
2365
- f.type = v === null ? "null" : typeof v, f.const = v;
2364
+ const y = m[0];
2365
+ f.type = y === null ? "null" : typeof y, f.const = y;
2366
2366
  } else
2367
- m.every((v) => typeof v == "number") && (f.type = "number"), m.every((v) => typeof v == "string") && (f.type = "string"), m.every((v) => typeof v == "boolean") && (f.type = "string"), m.every((v) => v === null) && (f.type = "null"), f.enum = m;
2367
+ m.every((y) => typeof y == "number") && (f.type = "number"), m.every((y) => typeof y == "string") && (f.type = "string"), m.every((y) => typeof y == "boolean") && (f.type = "string"), m.every((y) => y === null) && (f.type = "null"), f.enum = m;
2368
2368
  break;
2369
2369
  }
2370
2370
  case "file": {
@@ -2372,8 +2372,8 @@ class Mn {
2372
2372
  type: "string",
2373
2373
  format: "binary",
2374
2374
  contentEncoding: "binary"
2375
- }, { minimum: v, maximum: _, mime: w } = t._zod.bag;
2376
- v !== void 0 && (m.minLength = v), _ !== void 0 && (m.maxLength = _), w ? w.length === 1 ? (m.contentMediaType = w[0], Object.assign(f, m)) : f.anyOf = w.map((I) => ({ ...m, contentMediaType: I })) : Object.assign(f, m);
2375
+ }, { minimum: y, maximum: _, mime: w } = t._zod.bag;
2376
+ y !== void 0 && (m.minLength = y), _ !== void 0 && (m.maxLength = _), w ? w.length === 1 ? (m.contentMediaType = w[0], Object.assign(f, m)) : f.anyOf = w.map((I) => ({ ...m, contentMediaType: I })) : Object.assign(f, m);
2377
2377
  break;
2378
2378
  }
2379
2379
  case "transform": {
@@ -2473,11 +2473,11 @@ class Mn {
2473
2473
  const s = (d) => {
2474
2474
  const u = this.target === "draft-2020-12" ? "$defs" : "definitions";
2475
2475
  if (n.external) {
2476
- const m = n.external.registry.get(d[0])?.id, v = n.external.uri ?? ((w) => w);
2476
+ const m = n.external.registry.get(d[0])?.id, y = n.external.uri ?? ((w) => w);
2477
2477
  if (m)
2478
- return { ref: v(m) };
2478
+ return { ref: y(m) };
2479
2479
  const _ = d[1].defId ?? d[1].schema.id ?? `schema${this.counter++}`;
2480
- return d[1].defId = _, { defId: _, ref: `${v("__shared")}#/${u}/${_}` };
2480
+ return d[1].defId = _, { defId: _, ref: `${y("__shared")}#/${u}/${_}` };
2481
2481
  }
2482
2482
  if (d[1] === o)
2483
2483
  return { ref: "#" };
@@ -2486,12 +2486,12 @@ class Mn {
2486
2486
  }, i = (d) => {
2487
2487
  if (d[1].schema.$ref)
2488
2488
  return;
2489
- const u = d[1], { ref: y, defId: g } = s(d);
2489
+ const u = d[1], { ref: v, defId: g } = s(d);
2490
2490
  u.def = { ...u.schema }, g && (u.defId = g);
2491
2491
  const f = u.schema;
2492
2492
  for (const m in f)
2493
2493
  delete f[m];
2494
- f.$ref = y;
2494
+ f.$ref = v;
2495
2495
  };
2496
2496
  if (n.cycles === "throw")
2497
2497
  for (const d of this.seen.entries()) {
@@ -2528,19 +2528,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
2528
2528
  }
2529
2529
  }
2530
2530
  const a = (d, u) => {
2531
- const y = this.seen.get(d), g = y.def ?? y.schema, f = { ...g };
2532
- if (y.ref === null)
2531
+ const v = this.seen.get(d), g = v.def ?? v.schema, f = { ...g };
2532
+ if (v.ref === null)
2533
2533
  return;
2534
- const m = y.ref;
2535
- if (y.ref = null, m) {
2534
+ const m = v.ref;
2535
+ if (v.ref = null, m) {
2536
2536
  a(m, u);
2537
- const v = this.seen.get(m).schema;
2538
- v.$ref && u.target === "draft-7" ? (g.allOf = g.allOf ?? [], g.allOf.push(v)) : (Object.assign(g, v), Object.assign(g, f));
2537
+ const y = this.seen.get(m).schema;
2538
+ y.$ref && u.target === "draft-7" ? (g.allOf = g.allOf ?? [], g.allOf.push(y)) : (Object.assign(g, y), Object.assign(g, f));
2539
2539
  }
2540
- y.isParent || this.override({
2540
+ v.isParent || this.override({
2541
2541
  zodSchema: d,
2542
2542
  jsonSchema: g,
2543
- path: y.path ?? []
2543
+ path: v.path ?? []
2544
2544
  });
2545
2545
  };
2546
2546
  for (const d of [...this.seen.entries()].reverse())
@@ -2726,7 +2726,7 @@ const cd = (e, t) => {
2726
2726
  });
2727
2727
  }, ir = b("ZodError", cd, {
2728
2728
  Parent: Error
2729
- }), ld = /* @__PURE__ */ wc(ir), ud = /* @__PURE__ */ Ic(ir), dd = /* @__PURE__ */ rs(ir), gs = /* @__PURE__ */ ns(ir), H = /* @__PURE__ */ b("ZodType", (e, t) => (j.init(e, t), e.def = t, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(
2729
+ }), ld = /* @__PURE__ */ wc(ir), ud = /* @__PURE__ */ Ic(ir), dd = /* @__PURE__ */ rs(ir), gs = /* @__PURE__ */ ns(ir), G = /* @__PURE__ */ b("ZodType", (e, t) => (j.init(e, t), e.def = t, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(
2730
2730
  {
2731
2731
  ...t,
2732
2732
  checks: [
@@ -2749,7 +2749,7 @@ const cd = (e, t) => {
2749
2749
  const n = e.clone();
2750
2750
  return dt.add(n, r[0]), n;
2751
2751
  }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), vs = /* @__PURE__ */ b("_ZodString", (e, t) => {
2752
- Kr.init(e, t), H.init(e, t);
2752
+ Kr.init(e, t), G.init(e, t);
2753
2753
  const r = e._zod.bag;
2754
2754
  e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Uu(...n)), e.includes = (...n) => e.check(Bu(...n)), e.startsWith = (...n) => e.check(Vu(...n)), e.endsWith = (...n) => e.check(Hu(...n)), e.min = (...n) => e.check(Qt(...n)), e.max = (...n) => e.check(ms(...n)), e.length = (...n) => e.check(hs(...n)), e.nonempty = (...n) => e.check(Qt(1, ...n)), e.lowercase = (n) => e.check(Fu(n)), e.uppercase = (n) => e.check(ju(n)), e.trim = () => e.check(Ju()), e.normalize = (...n) => e.check(Gu(...n)), e.toLowerCase = () => e.check(Wu()), e.toUpperCase = () => e.check(Yu());
2755
2755
  }), pd = /* @__PURE__ */ b("ZodString", (e, t) => {
@@ -2759,7 +2759,7 @@ function k(e) {
2759
2759
  return cu(pd, e);
2760
2760
  }
2761
2761
  const W = /* @__PURE__ */ b("ZodStringFormat", (e, t) => {
2762
- V.init(e, t), vs.init(e, t);
2762
+ H.init(e, t), vs.init(e, t);
2763
2763
  }), fd = /* @__PURE__ */ b("ZodEmail", (e, t) => {
2764
2764
  hl.init(e, t), W.init(e, t);
2765
2765
  }), $n = /* @__PURE__ */ b("ZodGUID", (e, t) => {
@@ -2799,7 +2799,7 @@ const W = /* @__PURE__ */ b("ZodStringFormat", (e, t) => {
2799
2799
  }), Ad = /* @__PURE__ */ b("ZodJWT", (e, t) => {
2800
2800
  Zl.init(e, t), W.init(e, t);
2801
2801
  }), ys = /* @__PURE__ */ b("ZodNumber", (e, t) => {
2802
- ds.init(e, t), H.init(e, t), e.gt = (n, o) => e.check(Rn(n, o)), e.gte = (n, o) => e.check(yr(n, o)), e.min = (n, o) => e.check(yr(n, o)), e.lt = (n, o) => e.check(Pn(n, o)), e.lte = (n, o) => e.check(vr(n, o)), e.max = (n, o) => e.check(vr(n, o)), e.int = (n) => e.check(Zn(n)), e.safe = (n) => e.check(Zn(n)), e.positive = (n) => e.check(Rn(0, n)), e.nonnegative = (n) => e.check(yr(0, n)), e.negative = (n) => e.check(Pn(0, n)), e.nonpositive = (n) => e.check(vr(0, n)), e.multipleOf = (n, o) => e.check(zn(n, o)), e.step = (n, o) => e.check(zn(n, o)), e.finite = () => e;
2802
+ ds.init(e, t), G.init(e, t), e.gt = (n, o) => e.check(Rn(n, o)), e.gte = (n, o) => e.check(yr(n, o)), e.min = (n, o) => e.check(yr(n, o)), e.lt = (n, o) => e.check(Pn(n, o)), e.lte = (n, o) => e.check(vr(n, o)), e.max = (n, o) => e.check(vr(n, o)), e.int = (n) => e.check(Zn(n)), e.safe = (n) => e.check(Zn(n)), e.positive = (n) => e.check(Rn(0, n)), e.nonnegative = (n) => e.check(yr(0, n)), e.negative = (n) => e.check(Pn(0, n)), e.nonpositive = (n) => e.check(vr(0, n)), e.multipleOf = (n, o) => e.check(zn(n, o)), e.step = (n, o) => e.check(zn(n, o)), e.finite = () => e;
2803
2803
  const r = e._zod.bag;
2804
2804
  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;
2805
2805
  });
@@ -2813,37 +2813,37 @@ function Zn(e) {
2813
2813
  return Mu(Od, e);
2814
2814
  }
2815
2815
  const Pd = /* @__PURE__ */ b("ZodBoolean", (e, t) => {
2816
- Ll.init(e, t), H.init(e, t);
2816
+ Ll.init(e, t), G.init(e, t);
2817
2817
  });
2818
2818
  function ie(e) {
2819
2819
  return $u(Pd, e);
2820
2820
  }
2821
2821
  const Rd = /* @__PURE__ */ b("ZodNull", (e, t) => {
2822
- Ul.init(e, t), H.init(e, t);
2822
+ Ul.init(e, t), G.init(e, t);
2823
2823
  });
2824
2824
  function zd(e) {
2825
2825
  return Zu(Rd, e);
2826
2826
  }
2827
2827
  const Md = /* @__PURE__ */ b("ZodUnknown", (e, t) => {
2828
- Fl.init(e, t), H.init(e, t);
2828
+ Fl.init(e, t), G.init(e, t);
2829
2829
  });
2830
2830
  function Se() {
2831
2831
  return Du(Md);
2832
2832
  }
2833
2833
  const $d = /* @__PURE__ */ b("ZodNever", (e, t) => {
2834
- jl.init(e, t), H.init(e, t);
2834
+ jl.init(e, t), G.init(e, t);
2835
2835
  });
2836
2836
  function _s(e) {
2837
2837
  return Lu($d, e);
2838
2838
  }
2839
2839
  const Zd = /* @__PURE__ */ b("ZodArray", (e, t) => {
2840
- Bl.init(e, t), H.init(e, t), e.element = t.element, e.min = (r, n) => e.check(Qt(r, n)), e.nonempty = (r) => e.check(Qt(1, r)), e.max = (r, n) => e.check(ms(r, n)), e.length = (r, n) => e.check(hs(r, n)), e.unwrap = () => e.element;
2840
+ Bl.init(e, t), G.init(e, t), e.element = t.element, e.min = (r, n) => e.check(Qt(r, n)), e.nonempty = (r) => e.check(Qt(1, r)), e.max = (r, n) => e.check(ms(r, n)), e.length = (r, n) => e.check(hs(r, n)), e.unwrap = () => e.element;
2841
2841
  });
2842
2842
  function it(e, t) {
2843
2843
  return qu(Zd, e, t);
2844
2844
  }
2845
2845
  const bs = /* @__PURE__ */ b("ZodObject", (e, t) => {
2846
- Vl.init(e, t), H.init(e, t), L(e, "shape", () => t.shape), e.keyof = () => Is(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Se() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Se() }), e.strict = () => e.clone({ ...e._zod.def, catchall: _s() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => hc(e, r), e.merge = (r) => gc(e, r), e.pick = (r) => fc(e, r), e.omit = (r) => mc(e, r), e.partial = (...r) => vc(Es, e, r[0]), e.required = (...r) => yc(Ts, e, r[0]);
2846
+ Vl.init(e, t), G.init(e, t), L(e, "shape", () => t.shape), e.keyof = () => Is(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Se() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Se() }), e.strict = () => e.clone({ ...e._zod.def, catchall: _s() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => hc(e, r), e.merge = (r) => gc(e, r), e.pick = (r) => fc(e, r), e.omit = (r) => mc(e, r), e.partial = (...r) => vc(Es, e, r[0]), e.required = (...r) => yc(Ts, e, r[0]);
2847
2847
  });
2848
2848
  function oe(e, t) {
2849
2849
  const r = {
@@ -2855,7 +2855,7 @@ function oe(e, t) {
2855
2855
  };
2856
2856
  return new bs(r);
2857
2857
  }
2858
- function G(e, t) {
2858
+ function J(e, t) {
2859
2859
  return new bs({
2860
2860
  type: "object",
2861
2861
  get shape() {
@@ -2866,7 +2866,7 @@ function G(e, t) {
2866
2866
  });
2867
2867
  }
2868
2868
  const ws = /* @__PURE__ */ b("ZodUnion", (e, t) => {
2869
- ps.init(e, t), H.init(e, t), e.options = t.options;
2869
+ ps.init(e, t), G.init(e, t), e.options = t.options;
2870
2870
  });
2871
2871
  function he(e, t) {
2872
2872
  return new ws({
@@ -2887,7 +2887,7 @@ function Ld(e, t, r) {
2887
2887
  });
2888
2888
  }
2889
2889
  const Ud = /* @__PURE__ */ b("ZodIntersection", (e, t) => {
2890
- Gl.init(e, t), H.init(e, t);
2890
+ Gl.init(e, t), G.init(e, t);
2891
2891
  });
2892
2892
  function Fd(e, t) {
2893
2893
  return new Ud({
@@ -2897,7 +2897,7 @@ function Fd(e, t) {
2897
2897
  });
2898
2898
  }
2899
2899
  const jd = /* @__PURE__ */ b("ZodRecord", (e, t) => {
2900
- Jl.init(e, t), H.init(e, t), e.keyType = t.keyType, e.valueType = t.valueType;
2900
+ Jl.init(e, t), G.init(e, t), e.keyType = t.keyType, e.valueType = t.valueType;
2901
2901
  });
2902
2902
  function zr(e, t, r) {
2903
2903
  return new jd({
@@ -2908,7 +2908,7 @@ function zr(e, t, r) {
2908
2908
  });
2909
2909
  }
2910
2910
  const Mr = /* @__PURE__ */ b("ZodEnum", (e, t) => {
2911
- Wl.init(e, t), H.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
2911
+ Wl.init(e, t), G.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
2912
2912
  const r = new Set(Object.keys(t.entries));
2913
2913
  e.extract = (n, o) => {
2914
2914
  const s = {};
@@ -2947,7 +2947,7 @@ function Is(e, t) {
2947
2947
  });
2948
2948
  }
2949
2949
  const Bd = /* @__PURE__ */ b("ZodLiteral", (e, t) => {
2950
- Yl.init(e, t), H.init(e, t), e.values = new Set(t.values), Object.defineProperty(e, "value", {
2950
+ Yl.init(e, t), G.init(e, t), e.values = new Set(t.values), Object.defineProperty(e, "value", {
2951
2951
  get() {
2952
2952
  if (t.values.length > 1)
2953
2953
  throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
@@ -2963,7 +2963,7 @@ function R(e, t) {
2963
2963
  });
2964
2964
  }
2965
2965
  const Vd = /* @__PURE__ */ b("ZodTransform", (e, t) => {
2966
- ql.init(e, t), H.init(e, t), e._zod.parse = (r, n) => {
2966
+ ql.init(e, t), G.init(e, t), e._zod.parse = (r, n) => {
2967
2967
  r.addIssue = (s) => {
2968
2968
  if (typeof s == "string")
2969
2969
  r.issues.push(wt(s, r.value, t));
@@ -2983,7 +2983,7 @@ function Hd(e) {
2983
2983
  });
2984
2984
  }
2985
2985
  const Es = /* @__PURE__ */ b("ZodOptional", (e, t) => {
2986
- Xl.init(e, t), H.init(e, t), e.unwrap = () => e._zod.def.innerType;
2986
+ Xl.init(e, t), G.init(e, t), e.unwrap = () => e._zod.def.innerType;
2987
2987
  });
2988
2988
  function Dn(e) {
2989
2989
  return new Es({
@@ -2992,7 +2992,7 @@ function Dn(e) {
2992
2992
  });
2993
2993
  }
2994
2994
  const Gd = /* @__PURE__ */ b("ZodNullable", (e, t) => {
2995
- Ql.init(e, t), H.init(e, t), e.unwrap = () => e._zod.def.innerType;
2995
+ Ql.init(e, t), G.init(e, t), e.unwrap = () => e._zod.def.innerType;
2996
2996
  });
2997
2997
  function Ln(e) {
2998
2998
  return new Gd({
@@ -3001,7 +3001,7 @@ function Ln(e) {
3001
3001
  });
3002
3002
  }
3003
3003
  const Jd = /* @__PURE__ */ b("ZodDefault", (e, t) => {
3004
- Kl.init(e, t), H.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3004
+ Kl.init(e, t), G.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3005
3005
  });
3006
3006
  function Wd(e, t) {
3007
3007
  return new Jd({
@@ -3013,7 +3013,7 @@ function Wd(e, t) {
3013
3013
  });
3014
3014
  }
3015
3015
  const Yd = /* @__PURE__ */ b("ZodPrefault", (e, t) => {
3016
- eu.init(e, t), H.init(e, t), e.unwrap = () => e._zod.def.innerType;
3016
+ eu.init(e, t), G.init(e, t), e.unwrap = () => e._zod.def.innerType;
3017
3017
  });
3018
3018
  function qd(e, t) {
3019
3019
  return new Yd({
@@ -3025,7 +3025,7 @@ function qd(e, t) {
3025
3025
  });
3026
3026
  }
3027
3027
  const Ts = /* @__PURE__ */ b("ZodNonOptional", (e, t) => {
3028
- tu.init(e, t), H.init(e, t), e.unwrap = () => e._zod.def.innerType;
3028
+ tu.init(e, t), G.init(e, t), e.unwrap = () => e._zod.def.innerType;
3029
3029
  });
3030
3030
  function Xd(e, t) {
3031
3031
  return new Ts({
@@ -3035,7 +3035,7 @@ function Xd(e, t) {
3035
3035
  });
3036
3036
  }
3037
3037
  const Qd = /* @__PURE__ */ b("ZodCatch", (e, t) => {
3038
- ru.init(e, t), H.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3038
+ ru.init(e, t), G.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3039
3039
  });
3040
3040
  function Kd(e, t) {
3041
3041
  return new Qd({
@@ -3045,7 +3045,7 @@ function Kd(e, t) {
3045
3045
  });
3046
3046
  }
3047
3047
  const ep = /* @__PURE__ */ b("ZodPipe", (e, t) => {
3048
- nu.init(e, t), H.init(e, t), e.in = t.in, e.out = t.out;
3048
+ nu.init(e, t), G.init(e, t), e.in = t.in, e.out = t.out;
3049
3049
  });
3050
3050
  function Un(e, t) {
3051
3051
  return new ep({
@@ -3056,7 +3056,7 @@ function Un(e, t) {
3056
3056
  });
3057
3057
  }
3058
3058
  const tp = /* @__PURE__ */ b("ZodReadonly", (e, t) => {
3059
- ou.init(e, t), H.init(e, t);
3059
+ ou.init(e, t), G.init(e, t);
3060
3060
  });
3061
3061
  function rp(e) {
3062
3062
  return new tp({
@@ -3065,7 +3065,7 @@ function rp(e) {
3065
3065
  });
3066
3066
  }
3067
3067
  const np = /* @__PURE__ */ b("ZodLazy", (e, t) => {
3068
- su.init(e, t), H.init(e, t), e.unwrap = () => e._zod.def.getter();
3068
+ su.init(e, t), G.init(e, t), e.unwrap = () => e._zod.def.getter();
3069
3069
  });
3070
3070
  function op(e) {
3071
3071
  return new np({
@@ -3074,7 +3074,7 @@ function op(e) {
3074
3074
  });
3075
3075
  }
3076
3076
  const en = /* @__PURE__ */ b("ZodCustom", (e, t) => {
3077
- au.init(e, t), H.init(e, t);
3077
+ au.init(e, t), G.init(e, t);
3078
3078
  });
3079
3079
  function sp(e) {
3080
3080
  const t = new ce({
@@ -4160,17 +4160,17 @@ var tf = (e, t) => {
4160
4160
  const n = nf(t);
4161
4161
  let o = typeof t == "object" && t.definitions ? Object.entries(t.definitions).reduce(
4162
4162
  (l, [d, u]) => {
4163
- var y;
4163
+ var v;
4164
4164
  return {
4165
4165
  ...l,
4166
- [d]: (y = F(
4166
+ [d]: (v = F(
4167
4167
  u._def,
4168
4168
  {
4169
4169
  ...n,
4170
4170
  currentPath: [...n.basePath, n.definitionPath, d]
4171
4171
  },
4172
4172
  !0
4173
- )) != null ? y : le()
4173
+ )) != null ? v : le()
4174
4174
  };
4175
4175
  },
4176
4176
  {}
@@ -4423,39 +4423,39 @@ At({
4423
4423
  var Tf = hp(
4424
4424
  () => Ns(
4425
4425
  he([
4426
- G({
4426
+ J({
4427
4427
  type: R("text-start"),
4428
4428
  id: k(),
4429
4429
  providerMetadata: q.optional()
4430
4430
  }),
4431
- G({
4431
+ J({
4432
4432
  type: R("text-delta"),
4433
4433
  id: k(),
4434
4434
  delta: k(),
4435
4435
  providerMetadata: q.optional()
4436
4436
  }),
4437
- G({
4437
+ J({
4438
4438
  type: R("text-end"),
4439
4439
  id: k(),
4440
4440
  providerMetadata: q.optional()
4441
4441
  }),
4442
- G({
4442
+ J({
4443
4443
  type: R("error"),
4444
4444
  errorText: k()
4445
4445
  }),
4446
- G({
4446
+ J({
4447
4447
  type: R("tool-input-start"),
4448
4448
  toolCallId: k(),
4449
4449
  toolName: k(),
4450
4450
  providerExecuted: ie().optional(),
4451
4451
  dynamic: ie().optional()
4452
4452
  }),
4453
- G({
4453
+ J({
4454
4454
  type: R("tool-input-delta"),
4455
4455
  toolCallId: k(),
4456
4456
  inputTextDelta: k()
4457
4457
  }),
4458
- G({
4458
+ J({
4459
4459
  type: R("tool-input-available"),
4460
4460
  toolCallId: k(),
4461
4461
  toolName: k(),
@@ -4464,7 +4464,7 @@ var Tf = hp(
4464
4464
  providerMetadata: q.optional(),
4465
4465
  dynamic: ie().optional()
4466
4466
  }),
4467
- G({
4467
+ J({
4468
4468
  type: R("tool-input-error"),
4469
4469
  toolCallId: k(),
4470
4470
  toolName: k(),
@@ -4474,7 +4474,7 @@ var Tf = hp(
4474
4474
  dynamic: ie().optional(),
4475
4475
  errorText: k()
4476
4476
  }),
4477
- G({
4477
+ J({
4478
4478
  type: R("tool-output-available"),
4479
4479
  toolCallId: k(),
4480
4480
  output: Se(),
@@ -4482,37 +4482,37 @@ var Tf = hp(
4482
4482
  dynamic: ie().optional(),
4483
4483
  preliminary: ie().optional()
4484
4484
  }),
4485
- G({
4485
+ J({
4486
4486
  type: R("tool-output-error"),
4487
4487
  toolCallId: k(),
4488
4488
  errorText: k(),
4489
4489
  providerExecuted: ie().optional(),
4490
4490
  dynamic: ie().optional()
4491
4491
  }),
4492
- G({
4492
+ J({
4493
4493
  type: R("reasoning-start"),
4494
4494
  id: k(),
4495
4495
  providerMetadata: q.optional()
4496
4496
  }),
4497
- G({
4497
+ J({
4498
4498
  type: R("reasoning-delta"),
4499
4499
  id: k(),
4500
4500
  delta: k(),
4501
4501
  providerMetadata: q.optional()
4502
4502
  }),
4503
- G({
4503
+ J({
4504
4504
  type: R("reasoning-end"),
4505
4505
  id: k(),
4506
4506
  providerMetadata: q.optional()
4507
4507
  }),
4508
- G({
4508
+ J({
4509
4509
  type: R("source-url"),
4510
4510
  sourceId: k(),
4511
4511
  url: k(),
4512
4512
  title: k().optional(),
4513
4513
  providerMetadata: q.optional()
4514
4514
  }),
4515
- G({
4515
+ J({
4516
4516
  type: R("source-document"),
4517
4517
  sourceId: k(),
4518
4518
  mediaType: k(),
@@ -4520,13 +4520,13 @@ var Tf = hp(
4520
4520
  filename: k().optional(),
4521
4521
  providerMetadata: q.optional()
4522
4522
  }),
4523
- G({
4523
+ J({
4524
4524
  type: R("file"),
4525
4525
  url: k(),
4526
4526
  mediaType: k(),
4527
4527
  providerMetadata: q.optional()
4528
4528
  }),
4529
- G({
4529
+ J({
4530
4530
  type: Ss(
4531
4531
  (e) => typeof e == "string" && e.startsWith("data-"),
4532
4532
  { message: 'Type must start with "data-"' }
@@ -4535,18 +4535,18 @@ var Tf = hp(
4535
4535
  data: Se(),
4536
4536
  transient: ie().optional()
4537
4537
  }),
4538
- G({
4538
+ J({
4539
4539
  type: R("start-step")
4540
4540
  }),
4541
- G({
4541
+ J({
4542
4542
  type: R("finish-step")
4543
4543
  }),
4544
- G({
4544
+ J({
4545
4545
  type: R("start"),
4546
4546
  messageId: k().optional(),
4547
4547
  messageMetadata: Se().optional()
4548
4548
  }),
4549
- G({
4549
+ J({
4550
4550
  type: R("finish"),
4551
4551
  finishReason: Is([
4552
4552
  "stop",
@@ -4559,10 +4559,10 @@ var Tf = hp(
4559
4559
  ]).optional(),
4560
4560
  messageMetadata: Se().optional()
4561
4561
  }),
4562
- G({
4562
+ J({
4563
4563
  type: R("abort")
4564
4564
  }),
4565
- G({
4565
+ J({
4566
4566
  type: R("message-metadata"),
4567
4567
  messageMetadata: Se()
4568
4568
  })
@@ -4888,7 +4888,7 @@ function Af({
4888
4888
  new TransformStream({
4889
4889
  async transform(a, c) {
4890
4890
  await n(async ({ state: l, write: d }) => {
4891
- var u, y, g, f;
4891
+ var u, v, g, f;
4892
4892
  function m(h) {
4893
4893
  const x = l.message.parts.filter(jt).find(
4894
4894
  (T) => T.toolCallId === h
@@ -4899,7 +4899,7 @@ function Af({
4899
4899
  );
4900
4900
  return x;
4901
4901
  }
4902
- function v(h) {
4902
+ function y(h) {
4903
4903
  const x = l.message.parts.filter(
4904
4904
  (T) => T.type === "dynamic-tool"
4905
4905
  ).find(
@@ -4974,7 +4974,7 @@ function Af({
4974
4974
  }
4975
4975
  case "text-end": {
4976
4976
  const h = l.activeTextParts[a.id];
4977
- h.state = "done", h.providerMetadata = (y = a.providerMetadata) != null ? y : h.providerMetadata, delete l.activeTextParts[a.id], d();
4977
+ h.state = "done", h.providerMetadata = (v = a.providerMetadata) != null ? v : h.providerMetadata, delete l.activeTextParts[a.id], d();
4978
4978
  break;
4979
4979
  }
4980
4980
  case "reasoning-start": {
@@ -5110,7 +5110,7 @@ function Af({
5110
5110
  }
5111
5111
  case "tool-output-available": {
5112
5112
  if (a.dynamic) {
5113
- const h = v(
5113
+ const h = y(
5114
5114
  a.toolCallId
5115
5115
  );
5116
5116
  w({
@@ -5138,7 +5138,7 @@ function Af({
5138
5138
  }
5139
5139
  case "tool-output-error": {
5140
5140
  if (a.dynamic) {
5141
- const h = v(
5141
+ const h = y(
5142
5142
  a.toolCallId
5143
5143
  );
5144
5144
  w({
@@ -5380,14 +5380,14 @@ var $f = class {
5380
5380
  requestMetadata: t.metadata,
5381
5381
  trigger: t.trigger,
5382
5382
  messageId: t.messageId
5383
- })), y = (n = u?.api) != null ? n : this.api, g = u?.headers !== void 0 ? We(u.headers) : d, f = u?.body !== void 0 ? u.body : {
5383
+ })), v = (n = u?.api) != null ? n : this.api, g = u?.headers !== void 0 ? We(u.headers) : d, f = u?.body !== void 0 ? u.body : {
5384
5384
  ...a,
5385
5385
  ...t.body,
5386
5386
  id: t.chatId,
5387
5387
  messages: t.messages,
5388
5388
  trigger: t.trigger,
5389
5389
  messageId: t.messageId
5390
- }, m = (o = u?.credentials) != null ? o : l, _ = await ((s = this.fetch) != null ? s : globalThis.fetch)(y, {
5390
+ }, m = (o = u?.credentials) != null ? o : l, _ = await ((s = this.fetch) != null ? s : globalThis.fetch)(v, {
5391
5391
  method: "POST",
5392
5392
  headers: jn(
5393
5393
  {
@@ -5421,10 +5421,10 @@ var $f = class {
5421
5421
  headers: l,
5422
5422
  credentials: c,
5423
5423
  requestMetadata: e.metadata
5424
- })), u = (r = d?.api) != null ? r : `${this.api}/${e.chatId}/stream`, y = d?.headers !== void 0 ? We(d.headers) : l, g = (n = d?.credentials) != null ? n : c, m = await ((o = this.fetch) != null ? o : globalThis.fetch)(u, {
5424
+ })), u = (r = d?.api) != null ? r : `${this.api}/${e.chatId}/stream`, v = d?.headers !== void 0 ? We(d.headers) : l, g = (n = d?.credentials) != null ? n : c, m = await ((o = this.fetch) != null ? o : globalThis.fetch)(u, {
5425
5425
  method: "GET",
5426
5426
  headers: jn(
5427
- y,
5427
+ v,
5428
5428
  `ai-sdk/${Wn}`,
5429
5429
  Fn()
5430
5430
  ),
@@ -5472,13 +5472,13 @@ var $f = class {
5472
5472
  onData: l,
5473
5473
  sendAutomaticallyWhen: d
5474
5474
  }) {
5475
- this.activeResponse = void 0, this.jobExecutor = new Of(), this.sendMessage = async (u, y) => {
5476
- var g, f, m, v;
5475
+ this.activeResponse = void 0, this.jobExecutor = new Of(), this.sendMessage = async (u, v) => {
5476
+ var g, f, m, y;
5477
5477
  if (u == null) {
5478
5478
  await this.makeRequest({
5479
5479
  trigger: "submit-message",
5480
5480
  messageId: (g = this.lastMessage) == null ? void 0 : g.id,
5481
- ...y
5481
+ ...v
5482
5482
  });
5483
5483
  return;
5484
5484
  }
@@ -5508,17 +5508,17 @@ var $f = class {
5508
5508
  this.state.pushMessage({
5509
5509
  ..._,
5510
5510
  id: (m = _.id) != null ? m : this.generateId(),
5511
- role: (v = _.role) != null ? v : "user",
5511
+ role: (y = _.role) != null ? y : "user",
5512
5512
  metadata: u.metadata
5513
5513
  });
5514
5514
  await this.makeRequest({
5515
5515
  trigger: "submit-message",
5516
5516
  messageId: u.messageId,
5517
- ...y
5517
+ ...v
5518
5518
  });
5519
5519
  }, this.regenerate = async ({
5520
5520
  messageId: u,
5521
- ...y
5521
+ ...v
5522
5522
  } = {}) => {
5523
5523
  const g = u == null ? this.state.messages.length - 1 : this.state.messages.findIndex((f) => f.id === u);
5524
5524
  if (g === -1)
@@ -5530,7 +5530,7 @@ var $f = class {
5530
5530
  ), await this.makeRequest({
5531
5531
  trigger: "regenerate-message",
5532
5532
  messageId: u,
5533
- ...y
5533
+ ...v
5534
5534
  });
5535
5535
  }, this.resumeStream = async (u = {}) => {
5536
5536
  await this.makeRequest({ trigger: "resume-stream", ...u });
@@ -5538,12 +5538,12 @@ var $f = class {
5538
5538
  this.status === "error" && (this.state.error = void 0, this.setStatus({ status: "ready" }));
5539
5539
  }, this.addToolOutput = async ({
5540
5540
  state: u = "output-available",
5541
- tool: y,
5541
+ tool: v,
5542
5542
  toolCallId: g,
5543
5543
  output: f,
5544
5544
  errorText: m
5545
5545
  }) => this.jobExecutor.run(async () => {
5546
- var v, _;
5546
+ var y, _;
5547
5547
  const w = this.state.messages, I = w[w.length - 1];
5548
5548
  this.state.replaceMessage(w.length - 1, {
5549
5549
  ...I,
@@ -5557,7 +5557,7 @@ var $f = class {
5557
5557
  output: f,
5558
5558
  errorText: m
5559
5559
  } : h
5560
- )), this.status !== "streaming" && this.status !== "submitted" && ((v = this.sendAutomaticallyWhen) != null && v.call(this, { messages: this.state.messages })) && this.makeRequest({
5560
+ )), this.status !== "streaming" && this.status !== "submitted" && ((y = this.sendAutomaticallyWhen) != null && y.call(this, { messages: this.state.messages })) && this.makeRequest({
5561
5561
  trigger: "submit-message",
5562
5562
  messageId: (_ = this.lastMessage) == null ? void 0 : _.id
5563
5563
  });
@@ -5605,7 +5605,7 @@ var $f = class {
5605
5605
  var s, i, a, c;
5606
5606
  this.setStatus({ status: "submitted", error: void 0 });
5607
5607
  const l = this.lastMessage;
5608
- let d = !1, u = !1, y = !1;
5608
+ let d = !1, u = !1, v = !1;
5609
5609
  try {
5610
5610
  const g = {
5611
5611
  state: xf({
@@ -5619,17 +5619,17 @@ var $f = class {
5619
5619
  }), this.activeResponse = g;
5620
5620
  let f;
5621
5621
  if (e === "resume-stream") {
5622
- const v = await this.transport.reconnectToStream({
5622
+ const y = await this.transport.reconnectToStream({
5623
5623
  chatId: this.id,
5624
5624
  metadata: t,
5625
5625
  headers: r,
5626
5626
  body: n
5627
5627
  });
5628
- if (v == null) {
5628
+ if (y == null) {
5629
5629
  this.setStatus({ status: "ready" });
5630
5630
  return;
5631
5631
  }
5632
- f = v;
5632
+ f = y;
5633
5633
  } else
5634
5634
  f = await this.transport.sendMessages({
5635
5635
  chatId: this.id,
@@ -5641,10 +5641,10 @@ var $f = class {
5641
5641
  trigger: e,
5642
5642
  messageId: o
5643
5643
  });
5644
- const m = (v) => (
5644
+ const m = (y) => (
5645
5645
  // serialize the job execution to avoid race conditions:
5646
5646
  this.jobExecutor.run(
5647
- () => v({
5647
+ () => y({
5648
5648
  state: g.state,
5649
5649
  write: () => {
5650
5650
  var _;
@@ -5664,18 +5664,18 @@ var $f = class {
5664
5664
  messageMetadataSchema: this.messageMetadataSchema,
5665
5665
  dataPartSchemas: this.dataPartSchemas,
5666
5666
  runUpdateMessageJob: m,
5667
- onError: (v) => {
5668
- throw v;
5667
+ onError: (y) => {
5668
+ throw y;
5669
5669
  }
5670
5670
  }),
5671
- onError: (v) => {
5672
- throw v;
5671
+ onError: (y) => {
5672
+ throw y;
5673
5673
  }
5674
5674
  }), this.setStatus({ status: "ready" });
5675
5675
  } catch (g) {
5676
5676
  if (d || g.name === "AbortError")
5677
5677
  return d = !0, this.setStatus({ status: "ready" }), null;
5678
- y = !0, g instanceof TypeError && (g.message.toLowerCase().includes("fetch") || g.message.toLowerCase().includes("network")) && (u = !0), this.onError && g instanceof Error && this.onError(g), this.setStatus({ status: "error", error: g });
5678
+ v = !0, g instanceof TypeError && (g.message.toLowerCase().includes("fetch") || g.message.toLowerCase().includes("network")) && (u = !0), this.onError && g instanceof Error && this.onError(g), this.setStatus({ status: "error", error: g });
5679
5679
  } finally {
5680
5680
  try {
5681
5681
  (i = this.onFinish) == null || i.call(this, {
@@ -5683,7 +5683,7 @@ var $f = class {
5683
5683
  messages: this.state.messages,
5684
5684
  isAbort: d,
5685
5685
  isDisconnect: u,
5686
- isError: y,
5686
+ isError: v,
5687
5687
  finishReason: (s = this.activeResponse) == null ? void 0 : s.state.finishReason
5688
5688
  });
5689
5689
  } catch (g) {
@@ -5691,7 +5691,7 @@ var $f = class {
5691
5691
  }
5692
5692
  this.activeResponse = void 0;
5693
5693
  }
5694
- (a = this.sendAutomaticallyWhen) != null && a.call(this, { messages: this.state.messages }) && !y && await this.makeRequest({
5694
+ (a = this.sendAutomaticallyWhen) != null && a.call(this, { messages: this.state.messages }) && !v && await this.makeRequest({
5695
5695
  trigger: "submit-message",
5696
5696
  messageId: (c = this.lastMessage) == null ? void 0 : c.id,
5697
5697
  metadata: t,
@@ -5732,7 +5732,7 @@ const Us = async () => (Ir || (Ir = import(
5732
5732
  "./index.790ujKXR.js"
5733
5733
  )), Ir), Fs = async () => (Er || (Er = import(
5734
5734
  /* webpackChunkName: "toast-utilities" */
5735
- "./index.BbB1hl1m.js"
5735
+ "./index.wgdXdgVK.js"
5736
5736
  ).then((e) => e.utilities)), Er), jf = async () => {
5737
5737
  try {
5738
5738
  await Promise.all([Us(), Fs()]);
@@ -5947,7 +5947,7 @@ function Qf({
5947
5947
  resume: t = !1,
5948
5948
  ...r
5949
5949
  } = {}) {
5950
- const n = J(
5950
+ const n = V(
5951
5951
  "chat" in r ? r.chat : new Kn(r)
5952
5952
  );
5953
5953
  ("chat" in r && r.chat !== n.current || "id" in r && n.current.id !== r.id) && (n.current = "chat" in r ? r.chat : new Kn(r));
@@ -6004,7 +6004,7 @@ function je(e = {}) {
6004
6004
  const t = Q(Gs);
6005
6005
  if (!t)
6006
6006
  throw new Error("useAiChat must be used within a AiChatProvider");
6007
- const r = J(e);
6007
+ const r = V(e);
6008
6008
  return $(() => {
6009
6009
  r.current = e;
6010
6010
  }, [e]), $(() => {
@@ -6022,7 +6022,7 @@ function Kf({
6022
6022
  children: e,
6023
6023
  value: t
6024
6024
  }) {
6025
- const r = J(eo()), [n, o] = Z("");
6025
+ const r = V(eo()), [n, o] = Z("");
6026
6026
  $(() => {
6027
6027
  r.current = eo();
6028
6028
  }, [t]);
@@ -6067,7 +6067,7 @@ function Kf({
6067
6067
  const em = ({ chatId: e }) => {
6068
6068
  const { messages: t } = je(), {
6069
6069
  state: { privateChat: r }
6070
- } = Q(we), n = J(e), o = J(!1);
6070
+ } = Q(we), n = V(e), o = V(!1);
6071
6071
  return $(() => {
6072
6072
  const s = n.current !== e, i = t.length > 0;
6073
6073
  i && !r ? (window.localStorage.setItem(
@@ -6198,9 +6198,9 @@ const sm = "av-tooltip", am = "av-tooltip-arrow", Zt = (e, t = "px") => typeof e
6198
6198
  animation: `av-tooltip-fade-in ${e}ms ease-in-out`
6199
6199
  }), pm = 5e3, fm = ({ trigger: e, label: t, placement: r = "top", mode: n = "system", animationDuration: o = 300, delay: s = 0, className: i, tooltipClassName: a, arrowClassName: c }) => {
6200
6200
  const l = fa(() => {
6201
- I.stop(), v(!1);
6202
- }), d = J(null), u = J(null), y = J(null), [g, f] = Z(!1), [m, v] = Z(!1), [_, w] = Z(!1), I = ma(() => {
6203
- v(!1);
6201
+ I.stop(), y(!1);
6202
+ }), d = V(null), u = V(null), v = V(null), [g, f] = Z(!1), [m, y] = Z(!1), [_, w] = Z(!1), I = ma(() => {
6203
+ y(!1);
6204
6204
  }, pm), h = um({
6205
6205
  mode: n,
6206
6206
  className: i,
@@ -6256,16 +6256,16 @@ const sm = "av-tooltip", am = "av-tooltip-arrow", Zt = (e, t = "px") => typeof e
6256
6256
  x,
6257
6257
  g
6258
6258
  ]), $(() => () => {
6259
- y.current && clearTimeout(y.current);
6259
+ v.current && clearTimeout(v.current);
6260
6260
  }, []);
6261
6261
  const T = () => {
6262
- y.current && (clearTimeout(y.current), y.current = null), f(!1), v(!0), I.start();
6262
+ v.current && (clearTimeout(v.current), v.current = null), f(!1), y(!0), I.start();
6263
6263
  }, C = () => {
6264
- m || (s > 0 ? y.current = setTimeout(() => {
6265
- f(!0), y.current = null;
6264
+ m || (s > 0 ? v.current = setTimeout(() => {
6265
+ f(!0), v.current = null;
6266
6266
  }, s) : f(!0));
6267
6267
  }, z = () => {
6268
- y.current && (clearTimeout(y.current), y.current = null), m || f(!1);
6268
+ v.current && (clearTimeout(v.current), v.current = null), m || f(!1);
6269
6269
  };
6270
6270
  return /* @__PURE__ */ N("div", {
6271
6271
  className: h.wrapper,
@@ -6346,7 +6346,7 @@ const hm = ({
6346
6346
  dispatch: s,
6347
6347
  setChatId: i,
6348
6348
  setInitialMessages: a
6349
- } = Q(we), { id: c, setInput: l, stop: d } = je(), u = J(null), y = J(!1), [g, f] = Ce(), { data: m, isSuccess: v } = Fe({
6349
+ } = Q(we), { id: c, setInput: l, stop: d } = je(), u = V(null), v = V(!1), [g, f] = Ce(), { data: m, isSuccess: y } = Fe({
6350
6350
  user: r?.username,
6351
6351
  getAccessToken: t
6352
6352
  }), _ = g(f.NewChat), w = X(() => {
@@ -6411,7 +6411,7 @@ const hm = ({
6411
6411
  E.preventDefault(), w();
6412
6412
  };
6413
6413
  return $(() => {
6414
- Ne() || ((n === !0 || o === !0) && !y.current && u.current && (y.current = !0, u.current.focus()), n === !1 && y.current && (y.current = !1));
6414
+ Ne() || ((n === !0 || o === !0) && !v.current && u.current && (v.current = !0, u.current.focus()), n === !1 && v.current && (v.current = !1));
6415
6415
  }, [n, o]), /* @__PURE__ */ p(
6416
6416
  Be,
6417
6417
  {
@@ -6429,7 +6429,7 @@ const hm = ({
6429
6429
  label: "New Chat",
6430
6430
  ref: u,
6431
6431
  onClick: n || o ? I : h,
6432
- disabled: !(v && m),
6432
+ disabled: !(y && m),
6433
6433
  children: n || o ? /* @__PURE__ */ p(
6434
6434
  ga,
6435
6435
  {
@@ -6481,24 +6481,24 @@ try {
6481
6481
  }
6482
6482
  const Ws = /* @__PURE__ */ Jr(null);
6483
6483
  function ym({ initialOpen: e = !1, open: t, onOpenChange: r, initialFocus: n } = {}) {
6484
- const [o, s] = Z(e), [i, a] = Z(), [c, l] = Z(), d = t ?? o, u = r ?? s, y = Ao({
6484
+ const [o, s] = Z(e), [i, a] = Z(), [c, l] = Z(), d = t ?? o, u = r ?? s, v = Ao({
6485
6485
  open: d,
6486
6486
  onOpenChange: u
6487
- }), g = y.context, f = No(g, {
6487
+ }), g = v.context, f = No(g, {
6488
6488
  enabled: t == null
6489
6489
  }), m = Oo(g, {
6490
6490
  outsidePress: !1,
6491
6491
  outsidePressEvent: "mousedown"
6492
- }), v = Po(g), _ = Ro([
6492
+ }), y = Po(g), _ = Ro([
6493
6493
  f,
6494
6494
  m,
6495
- v
6495
+ y
6496
6496
  ]);
6497
6497
  return me(() => ({
6498
6498
  open: d,
6499
6499
  setOpen: u,
6500
6500
  ..._,
6501
- ...y,
6501
+ ...v,
6502
6502
  labelId: i,
6503
6503
  descriptionId: c,
6504
6504
  setLabelId: a,
@@ -6508,7 +6508,7 @@ function ym({ initialOpen: e = !1, open: t, onOpenChange: r, initialFocus: n } =
6508
6508
  d,
6509
6509
  u,
6510
6510
  _,
6511
- y,
6511
+ v,
6512
6512
  i,
6513
6513
  c,
6514
6514
  n
@@ -6736,11 +6736,11 @@ const bm = /* @__PURE__ */ Xe(function(t, r) {
6736
6736
  ), maxWidth: d = (
6737
6737
  /* inlined export .MEDIUM */
6738
6738
  "medium"
6739
- ), maxHeight: u, blurEffect: y = (
6739
+ ), maxHeight: u, blurEffect: v = (
6740
6740
  /* inlined export .NONE */
6741
6741
  "none"
6742
6742
  ), initialFocus: g }) => {
6743
- const f = J(""), [m, v] = Z(c ? l === /* inlined export .ANIMATION_FADE */
6743
+ const f = V(""), [m, y] = Z(c ? l === /* inlined export .ANIMATION_FADE */
6744
6744
  "fade" ? {
6745
6745
  opacity: 0
6746
6746
  } : {
@@ -6752,7 +6752,7 @@ const bm = /* @__PURE__ */ Xe(function(t, r) {
6752
6752
  animation: c,
6753
6753
  maxWidth: d,
6754
6754
  maxHeight: u,
6755
- blurEffect: y,
6755
+ blurEffect: v,
6756
6756
  hasFooter: !!o
6757
6757
  });
6758
6758
  return $(() => (e && (f.current = document.title, document.title = `${r} | ${f.current}`), () => {
@@ -6762,14 +6762,14 @@ const bm = /* @__PURE__ */ Xe(function(t, r) {
6762
6762
  e
6763
6763
  ]), $(() => {
6764
6764
  if (c && e) {
6765
- v(c ? l === /* inlined export .ANIMATION_FADE */
6765
+ y(c ? l === /* inlined export .ANIMATION_FADE */
6766
6766
  "fade" ? {
6767
6767
  opacity: 0
6768
6768
  } : {
6769
6769
  transform: "translateY(-666vh)"
6770
6770
  } : {});
6771
6771
  const w = setTimeout(() => {
6772
- v(c ? l === /* inlined export .ANIMATION_FADE */
6772
+ y(c ? l === /* inlined export .ANIMATION_FADE */
6773
6773
  "fade" ? {
6774
6774
  opacity: 1
6775
6775
  } : {
@@ -6936,7 +6936,7 @@ const km = "av-toggle", Cm = ({ narrow: e }) => P(
6936
6936
  className: n
6937
6937
  }),
6938
6938
  toggleWrapper: Rm()
6939
- }), Mm = ({ checked: e = !1, onChange: t, label: r, labelHidden: n = !1, name: o, mode: s = "system", focusMode: i = "system", labelMode: a, className: c, noBorder: l = !1, narrow: d = !1, noHaptic: u = !1, labelPosition: y = "right", subLabel: g }) => {
6939
+ }), Mm = ({ checked: e = !1, onChange: t, label: r, labelHidden: n = !1, name: o, mode: s = "system", focusMode: i = "system", labelMode: a, className: c, noBorder: l = !1, narrow: d = !1, noHaptic: u = !1, labelPosition: v = "right", subLabel: g }) => {
6940
6940
  const { haptic: f } = ya(), m = zm({
6941
6941
  mode: s,
6942
6942
  focusMode: i,
@@ -6945,9 +6945,9 @@ const km = "av-toggle", Cm = ({ narrow: e }) => P(
6945
6945
  noBorder: l,
6946
6946
  narrow: d,
6947
6947
  labelMode: a,
6948
- labelPosition: y,
6948
+ labelPosition: v,
6949
6949
  subLabel: !!g
6950
- }), v = (w) => {
6950
+ }), y = (w) => {
6951
6951
  u || f(1), t?.(w.target.checked);
6952
6952
  }, _ = g ? /* @__PURE__ */ N("span", {
6953
6953
  className: "flex flex-col gap-0.5",
@@ -6968,7 +6968,7 @@ const km = "av-toggle", Cm = ({ narrow: e }) => P(
6968
6968
  return /* @__PURE__ */ N("label", {
6969
6969
  className: m.wrapper,
6970
6970
  children: [
6971
- y === "left" && _,
6971
+ v === "left" && _,
6972
6972
  /* @__PURE__ */ N("div", {
6973
6973
  className: m.toggleWrapper,
6974
6974
  children: [
@@ -6977,22 +6977,24 @@ const km = "av-toggle", Cm = ({ narrow: e }) => P(
6977
6977
  checked: e,
6978
6978
  type: "checkbox",
6979
6979
  className: m.input,
6980
- onChange: v
6980
+ onChange: y
6981
6981
  }),
6982
6982
  /* @__PURE__ */ p("div", {
6983
6983
  className: m.toggle
6984
6984
  })
6985
6985
  ]
6986
6986
  }),
6987
- y === "right" && _
6987
+ v === "right" && _
6988
6988
  ]
6989
6989
  });
6990
6990
  }, $m = ({
6991
6991
  onOpenChange: e,
6992
- label: t = "Dismiss"
6992
+ label: t = "Dismiss",
6993
+ ref: r
6993
6994
  }) => /* @__PURE__ */ p(
6994
6995
  go,
6995
6996
  {
6997
+ ref: r,
6996
6998
  mode: "light",
6997
6999
  variant: "secondary",
6998
7000
  focusMode: "light",
@@ -7017,12 +7019,13 @@ const km = "av-toggle", Cm = ({ narrow: e }) => P(
7017
7019
  toggleChecked: l,
7018
7020
  onToggleChange: d
7019
7021
  }) => {
7020
- const u = /* @__PURE__ */ N(Cr, { columnGap: 2, alignHorizontal: "flex-end", children: [
7022
+ const u = V(null), v = /* @__PURE__ */ N(Cr, { columnGap: 2, alignHorizontal: "flex-end", children: [
7021
7023
  /* @__PURE__ */ p(st, { children: !s && /* @__PURE__ */ p(
7022
7024
  $m,
7023
7025
  {
7024
7026
  onOpenChange: t,
7025
- label: o.cancelAction
7027
+ label: o.cancelAction,
7028
+ ref: u
7026
7029
  }
7027
7030
  ) }),
7028
7031
  /* @__PURE__ */ p(st, { children: /* @__PURE__ */ p(
@@ -7038,7 +7041,7 @@ const km = "av-toggle", Cm = ({ narrow: e }) => P(
7038
7041
  children: o.confirmAction
7039
7042
  }
7040
7043
  ) })
7041
- ] }), y = a ? /* @__PURE__ */ N(
7044
+ ] }), g = a ? /* @__PURE__ */ N(
7042
7045
  Cr,
7043
7046
  {
7044
7047
  alignHorizontal: "space-between",
@@ -7055,15 +7058,15 @@ const km = "av-toggle", Cm = ({ narrow: e }) => P(
7055
7058
  label: a,
7056
7059
  name: c || a.toLowerCase().replace(/\s+/g, "-"),
7057
7060
  checked: l,
7058
- onChange: (g) => {
7059
- d && d(g);
7061
+ onChange: (f) => {
7062
+ d && d(f);
7060
7063
  }
7061
7064
  }
7062
7065
  ) }),
7063
- /* @__PURE__ */ p(st, { span: "auto", children: u })
7066
+ /* @__PURE__ */ p(st, { span: "auto", children: v })
7064
7067
  ]
7065
7068
  }
7066
- ) : u;
7069
+ ) : v;
7067
7070
  return /* @__PURE__ */ p(
7068
7071
  Sm,
7069
7072
  {
@@ -7071,8 +7074,9 @@ const km = "av-toggle", Cm = ({ narrow: e }) => P(
7071
7074
  open: e,
7072
7075
  onOpenChange: t,
7073
7076
  title: o.title,
7074
- footer: y,
7077
+ footer: g,
7075
7078
  blurEffect: "large",
7079
+ initialFocus: u,
7076
7080
  children: n
7077
7081
  }
7078
7082
  );
@@ -7082,7 +7086,7 @@ const km = "av-toggle", Cm = ({ narrow: e }) => P(
7082
7086
  const { getAccessToken: t, user: r } = Ie(), {
7083
7087
  state: { privateChat: n, provider: o, tokenUsage: s },
7084
7088
  dispatch: i
7085
- } = Q(we), { messages: a, id: c } = je(), { mutateAsync: l } = _a({ getAccessToken: t }), [d, u] = Ce(), [y, g] = Z(!1), [f, m] = Z(!1), [v, _] = Ae({
7089
+ } = Q(we), { messages: a, id: c } = je(), { mutateAsync: l } = _a({ getAccessToken: t }), [d, u] = Ce(), [v, g] = Z(!1), [f, m] = Z(!1), [y, _] = Ae({
7086
7090
  key: ke + ba,
7087
7091
  initialValue: ""
7088
7092
  }), w = nr(Jt.TOOL.MEMORIES), { data: I, isSuccess: h } = Fe({
@@ -7135,12 +7139,12 @@ const km = "av-toggle", Cm = ({ narrow: e }) => P(
7135
7139
  {
7136
7140
  toggleLabel: "Don't show this again",
7137
7141
  toggleName: "private-disclosure",
7138
- toggleChecked: y,
7142
+ toggleChecked: v,
7139
7143
  onToggleChange: (T) => g(T),
7140
7144
  showConfirmation: f,
7141
7145
  setShowConfirmation: m,
7142
7146
  action: () => {
7143
- y && _("true"), E();
7147
+ v && _("true"), E();
7144
7148
  },
7145
7149
  customStrings: {
7146
7150
  confirmAction: "Continue",
@@ -7176,7 +7180,7 @@ const km = "av-toggle", Cm = ({ narrow: e }) => P(
7176
7180
  labelRight: n ? "private" : "",
7177
7181
  variant: n ? "danger" : "secondary",
7178
7182
  onClick: (T) => {
7179
- T && T.preventDefault(), !n && !v ? m(!0) : E();
7183
+ T && T.preventDefault(), !n && !y ? m(!0) : E();
7180
7184
  },
7181
7185
  className: "text-sm",
7182
7186
  disabled: !(h && I),
@@ -7229,7 +7233,7 @@ const Ht = /* @__PURE__ */ Jr({
7229
7233
  }
7230
7234
  return "Element";
7231
7235
  }, Fr = /* @__PURE__ */ Xe(({ trigger: e, children: t, label: r = "Open menu", defaultPlacement: n = "bottom-start", onOpenChange: o, mode: s = "system", focusMode: i = "system", ...a }, c) => {
7232
- const [l, d] = Z(!1), [u, y] = Z(!1), [g, f] = Z(null), [m, v] = Z(!1), _ = J([]), w = J([]), I = Q(Ht), h = $o(), E = Hi(), x = zo(), T = Mo({
7236
+ const [l, d] = Z(!1), [u, v] = Z(!1), [g, f] = Z(null), [m, y] = Z(!1), _ = V([]), w = V([]), I = Q(Ht), h = $o(), E = Hi(), x = zo(), T = Mo({
7233
7237
  label: r !== "Open menu" ? r : null
7234
7238
  }), C = x != null, { floatingStyles: z, refs: D, context: se } = Ao({
7235
7239
  nodeId: E,
@@ -7318,10 +7322,10 @@ const Ht = /* @__PURE__ */ Jr({
7318
7322
  x
7319
7323
  ]), $(() => {
7320
7324
  function K({ pointerType: et }) {
7321
- et !== "touch" && v(!0);
7325
+ et !== "touch" && y(!0);
7322
7326
  }
7323
7327
  function ge() {
7324
- v(!1);
7328
+ y(!1);
7325
7329
  }
7326
7330
  return window.addEventListener("pointermove", K, {
7327
7331
  once: !0,
@@ -7351,7 +7355,7 @@ const Ht = /* @__PURE__ */ Jr({
7351
7355
  ...a,
7352
7356
  className: K,
7353
7357
  onFocus(ge) {
7354
- a.onFocus?.(ge), y(!1), I.setHasFocusInside(!0);
7358
+ a.onFocus?.(ge), v(!1), I.setHasFocusInside(!0);
7355
7359
  },
7356
7360
  onMouseEnter(ge) {
7357
7361
  a.onMouseEnter?.(ge), I.allowHover && I.isOpen && I.setActiveIndex(T.index);
@@ -7373,7 +7377,7 @@ const Ht = /* @__PURE__ */ Jr({
7373
7377
  activeIndex: g,
7374
7378
  setActiveIndex: f,
7375
7379
  getItemProps: lt,
7376
- setHasFocusInside: y,
7380
+ setHasFocusInside: v,
7377
7381
  isOpen: l,
7378
7382
  allowHover: m,
7379
7383
  parent: I
@@ -7420,7 +7424,7 @@ const Ht = /* @__PURE__ */ Jr({
7420
7424
  activeIndex: g,
7421
7425
  setActiveIndex: f,
7422
7426
  getItemProps: lt,
7423
- setHasFocusInside: y,
7427
+ setHasFocusInside: v,
7424
7428
  isOpen: l,
7425
7429
  allowHover: m,
7426
7430
  parent: I
@@ -7462,7 +7466,7 @@ const be = /* @__PURE__ */ Xe(({ label: e, disabled: t, icon: r, raw: n = !1, ch
7462
7466
  let l = "";
7463
7467
  const d = Q(Ht), u = Mo({
7464
7468
  label: t ? null : e
7465
- }), y = $o(), g = Wr([
7469
+ }), v = $o(), g = Wr([
7466
7470
  u.ref,
7467
7471
  c
7468
7472
  ]);
@@ -7471,7 +7475,7 @@ const be = /* @__PURE__ */ Xe(({ label: e, disabled: t, icon: r, raw: n = !1, ch
7471
7475
  role: "menuitem",
7472
7476
  ...d.getItemProps({
7473
7477
  onClick(m) {
7474
- s || (a.onClick?.(m), y?.events.emit("click"));
7478
+ s || (a.onClick?.(m), v?.events.emit("click"));
7475
7479
  }
7476
7480
  }),
7477
7481
  children: o
@@ -7489,7 +7493,7 @@ const be = /* @__PURE__ */ Xe(({ label: e, disabled: t, icon: r, raw: n = !1, ch
7489
7493
  disabled: t,
7490
7494
  ...d.getItemProps({
7491
7495
  onClick(m) {
7492
- s || (a.onClick?.(m), y?.events.emit("click"));
7496
+ s || (a.onClick?.(m), v?.events.emit("click"));
7493
7497
  },
7494
7498
  onFocus(m) {
7495
7499
  a.onFocus?.(m), d.setHasFocusInside(!0);
@@ -7537,7 +7541,7 @@ const Dm = ({ className: e, ...t }) => {
7537
7541
  const { dispatch: r, setChatId: n, setInitialMessages: o } = Q(we), { dispatch: s } = Q(Gr), { getAccessToken: i, user: a } = Ie(), [c, l] = Ce(), { data: d, isSuccess: u } = Fe({
7538
7542
  user: a?.username,
7539
7543
  getAccessToken: i
7540
- }), y = (m, v, _) => {
7544
+ }), v = (m, y, _) => {
7541
7545
  m.preventDefault(), n(Ue()), o([]), r({
7542
7546
  type: at,
7543
7547
  payload: {
@@ -7546,7 +7550,7 @@ const Dm = ({ className: e, ...t }) => {
7546
7550
  }), s({
7547
7551
  type: fo,
7548
7552
  payload: {
7549
- prompt: v
7553
+ prompt: y
7550
7554
  }
7551
7555
  });
7552
7556
  }, g = u && d && d.tags && Lm(d.tags), f = /* @__PURE__ */ N(
@@ -7574,27 +7578,27 @@ const Dm = ({ className: e, ...t }) => {
7574
7578
  children: [
7575
7579
  /* @__PURE__ */ p(jr, { children: "Prompts" }),
7576
7580
  g && d.tags.map((m) => {
7577
- let v = null;
7581
+ let y = null;
7578
7582
  switch (m.slot) {
7579
7583
  case 0:
7580
- v = /* @__PURE__ */ p(Aa, {});
7584
+ y = /* @__PURE__ */ p(Aa, {});
7581
7585
  break;
7582
7586
  case 1:
7583
- v = /* @__PURE__ */ p(xa, {});
7587
+ y = /* @__PURE__ */ p(xa, {});
7584
7588
  break;
7585
7589
  case 2:
7586
- v = /* @__PURE__ */ p(Ca, {});
7590
+ y = /* @__PURE__ */ p(Ca, {});
7587
7591
  break;
7588
7592
  default:
7589
- v = null;
7593
+ y = null;
7590
7594
  break;
7591
7595
  }
7592
7596
  return m.enabled && m.label && m.content && /* @__PURE__ */ p(
7593
7597
  be,
7594
7598
  {
7595
7599
  label: m.label,
7596
- icon: v,
7597
- onClick: (_) => y(_, m.content, m?.privateChat)
7600
+ icon: y,
7601
+ onClick: (_) => v(_, m.content, m?.privateChat)
7598
7602
  },
7599
7603
  `prompt-button-${m.slot}`
7600
7604
  );
@@ -7619,10 +7623,10 @@ const Dm = ({ className: e, ...t }) => {
7619
7623
  dispatch: n,
7620
7624
  setChatId: o,
7621
7625
  setInitialMessages: s
7622
- } = Q(we), [i, a] = Ce(), [c, l] = Z(!1), [d, u] = Z(!1), [y, g] = Ae({
7626
+ } = Q(we), [i, a] = Ce(), [c, l] = Z(!1), [d, u] = Z(!1), [v, g] = Ae({
7623
7627
  key: ke + Na,
7624
7628
  initialValue: ""
7625
- }), [f, m] = Z(!1), v = (w) => {
7629
+ }), [f, m] = Z(!1), y = (w) => {
7626
7630
  o(Ue()), s([]), n({
7627
7631
  type: at,
7628
7632
  payload: {
@@ -7641,7 +7645,7 @@ const Dm = ({ className: e, ...t }) => {
7641
7645
  {
7642
7646
  showConfirmation: d,
7643
7647
  setShowConfirmation: u,
7644
- action: () => v(!0),
7648
+ action: () => y(!0),
7645
7649
  customStrings: {
7646
7650
  confirmAction: "Continue",
7647
7651
  cancelAction: "Cancel",
@@ -7660,7 +7664,7 @@ const Dm = ({ className: e, ...t }) => {
7660
7664
  showConfirmation: c,
7661
7665
  setShowConfirmation: l,
7662
7666
  action: () => {
7663
- f && g("true"), v();
7667
+ f && g("true"), y();
7664
7668
  },
7665
7669
  customStrings: {
7666
7670
  confirmAction: "Continue",
@@ -7692,7 +7696,7 @@ const Dm = ({ className: e, ...t }) => {
7692
7696
  label: "Reasoning Chat",
7693
7697
  variant: t ? "selected" : "secondary",
7694
7698
  onClick: (w) => {
7695
- w && w.preventDefault(), y ? r > 0 ? u(!d) : v() : l(!c);
7699
+ w && w.preventDefault(), v ? r > 0 ? u(!d) : y() : l(!c);
7696
7700
  },
7697
7701
  className: "text-sm",
7698
7702
  children: /* @__PURE__ */ p(
@@ -7940,12 +7944,12 @@ const Vm = [".png", ".jpg", ".jpeg", ".webp"], Hm = [".pdf", ".txt"], Gm = [
7940
7944
  const { user: e, getAccessToken: t } = Ie(), r = nr(Jt.ADDON.ATTACHMENTS), n = nr(Jt.ADDON.REASONING), { allowedModels: o } = Hr(), [s, i] = Z(null), [a, c] = Z(!1), [l, d] = Z(!1), {
7941
7945
  state: { oledMode: u }
7942
7946
  } = Q(kt), {
7943
- dispatch: y,
7947
+ dispatch: v,
7944
7948
  state: {
7945
7949
  reasoning: g,
7946
7950
  streaming: f,
7947
7951
  aborted: m,
7948
- lastResetTimestamp: v,
7952
+ lastResetTimestamp: y,
7949
7953
  attachments: _,
7950
7954
  provider: w,
7951
7955
  privateChat: I
@@ -7960,14 +7964,14 @@ const Vm = [".png", ".jpg", ".jpeg", ".webp"], Hm = [".pdf", ".txt"], Gm = [
7960
7964
  }), { data: C } = Fe({
7961
7965
  user: e?.username,
7962
7966
  getAccessToken: t
7963
- }), z = J(null), D = J(null), se = J(!1), M = J(0), Y = J(null), O = J(null), ue = Ba(), [de, Ve] = Ce(), ct = eh({
7967
+ }), z = V(null), D = V(null), se = V(!1), M = V(0), Y = V(null), O = V(null), ue = Ba(), [de, Ve] = Ce(), ct = eh({
7964
7968
  oledMode: u,
7965
7969
  placeholderColor: de(Ve.Placeholder)
7966
7970
  }), pe = n && C?.showReasoningButton, { setMessages: lt, status: Ke, id: Nt, sendMessage: Ot, input: Ee, setInput: K, messages: ge } = je({
7967
7971
  onFinish: (U) => {
7968
7972
  T();
7969
7973
  const te = U.message?.metadata;
7970
- te?.tokenUsage && y({
7974
+ te?.tokenUsage && v({
7971
7975
  type: Bs,
7972
7976
  payload: {
7973
7977
  tokenUsage: te.tokenUsage
@@ -8016,26 +8020,26 @@ const Vm = [".png", ".jpg", ".jpeg", ".webp"], Hm = [".pdf", ".txt"], Gm = [
8016
8020
  ]
8017
8021
  ), an = X(
8018
8022
  async (U) => {
8019
- U === hh && y({
8023
+ U === hh && v({
8020
8024
  type: qe,
8021
8025
  payload: {
8022
8026
  loading: !1,
8023
8027
  streaming: !1
8024
8028
  }
8025
- }), U === yh && y({
8029
+ }), U === yh && v({
8026
8030
  type: qe,
8027
8031
  payload: {
8028
8032
  loading: !0,
8029
8033
  streaming: !1
8030
8034
  }
8031
- }), U === gh && y({
8035
+ }), U === gh && v({
8032
8036
  type: qe,
8033
8037
  payload: {
8034
8038
  loading: !1,
8035
8039
  streaming: !0
8036
8040
  }
8037
8041
  }), U === vh && setTimeout(() => {
8038
- m || (y({
8042
+ m || (v({
8039
8043
  type: qe,
8040
8044
  payload: {
8041
8045
  loading: !1,
@@ -8051,7 +8055,7 @@ const Vm = [".png", ".jpg", ".jpeg", ".webp"], Hm = [".pdf", ".txt"], Gm = [
8051
8055
  ]));
8052
8056
  }, 1e3);
8053
8057
  },
8054
- [y, lt, m]
8058
+ [v, lt, m]
8055
8059
  );
8056
8060
  $(() => {
8057
8061
  Ke && an(Ke);
@@ -8092,7 +8096,7 @@ const Vm = [".png", ".jpg", ".jpeg", ".webp"], Hm = [".pdf", ".txt"], Gm = [
8092
8096
  }
8093
8097
  if (Ge.length > 0) {
8094
8098
  const ve = new DataTransfer();
8095
- Ge.forEach((ur) => ve.items.add(ur)), i(ve.files), y({
8099
+ Ge.forEach((ur) => ve.items.add(ur)), i(ve.files), v({
8096
8100
  type: Et,
8097
8101
  payload: {
8098
8102
  attachments: ve.files.length
@@ -8108,7 +8112,7 @@ const Vm = [".png", ".jpg", ".jpeg", ".webp"], Hm = [".pdf", ".txt"], Gm = [
8108
8112
  const re = new DataTransfer();
8109
8113
  Array.from(s).forEach((te) => {
8110
8114
  te !== U && re.items.add(te);
8111
- }), re.files.length === 0 ? i(null) : i(re.files), y({
8115
+ }), re.files.length === 0 ? i(null) : i(re.files), v({
8112
8116
  type: Et,
8113
8117
  payload: {
8114
8118
  attachments: re.files.length
@@ -8162,10 +8166,10 @@ const Vm = [".png", ".jpg", ".jpeg", ".webp"], Hm = [".pdf", ".txt"], Gm = [
8162
8166
  se.current = !0, !Ee && Dt(O);
8163
8167
  return;
8164
8168
  }
8165
- v > 0 && v !== M.current ? (M.current = v, setTimeout(() => {
8169
+ y > 0 && y !== M.current ? (M.current = y, setTimeout(() => {
8166
8170
  O.current && (!Ee && Dt(O), O.current.focus());
8167
8171
  }, ph)) : f === !1 && !Ee && (Dt(O), !Ne() && O.current && O.current.focus());
8168
- }, [v, f, Ee]), $(() => {
8172
+ }, [y, f, Ee]), $(() => {
8169
8173
  h.lastTriggeredTimestamp && setTimeout(() => {
8170
8174
  lr();
8171
8175
  }, 100);
@@ -8273,10 +8277,10 @@ const Vm = [".png", ".jpg", ".jpeg", ".webp"], Hm = [".pdf", ".txt"], Gm = [
8273
8277
  dispatch: a
8274
8278
  } = Q(kt), [c] = Z(
8275
8279
  () => un[Math.floor(Math.random() * un.length)]
8276
- ), l = me(() => Ne(), []), d = me(() => Ja(), []), { messages: u } = je(), [y, g] = bo(), [f, m] = Ce(), v = om(d), { height: _ } = Wa(), { height: w } = Ya(), I = d ? 0 : _ - w, h = me(() => {
8280
+ ), l = me(() => Ne(), []), d = me(() => Ja(), []), { messages: u } = je(), [v, g] = bo(), [f, m] = Ce(), y = om(d), { height: _ } = Wa(), { height: w } = Ya(), I = d ? 0 : _ - w, h = me(() => {
8277
8281
  const E = l ? qa : d ? Xa : wo;
8278
- return l ? I > 70 && I < 500 ? pr / 2 : E : d ? v ? pr : E : I > 0 && I < 100 ? pr : E;
8279
- }, [I, l, d, v]);
8282
+ return l ? I > 70 && I < 500 ? pr / 2 : E : d ? y ? pr : E : I > 0 && I < 100 ? pr : E;
8283
+ }, [I, l, d, y]);
8280
8284
  return $(() => {
8281
8285
  o !== g.height && a({
8282
8286
  type: Qa,
@@ -8285,10 +8289,10 @@ const Vm = [".png", ".jpg", ".jpeg", ".webp"], Hm = [".pdf", ".txt"], Gm = [
8285
8289
  }
8286
8290
  });
8287
8291
  }, [g.height, o, a]), or(() => {
8288
- if (!y || !y.current)
8292
+ if (!v || !v.current)
8289
8293
  return;
8290
- const E = y?.current?.style.getPropertyValue(Lt);
8291
- if (s === xr && (t && !r || n) && E !== `${h}px` && (y.current.style.setProperty(
8294
+ const E = v?.current?.style.getPropertyValue(Lt);
8295
+ if (s === xr && (t && !r || n) && E !== `${h}px` && (v.current.style.setProperty(
8292
8296
  Lt,
8293
8297
  `${h}px`
8294
8298
  ), a({
@@ -8297,7 +8301,7 @@ const Vm = [".png", ".jpg", ".jpeg", ".webp"], Hm = [".pdf", ".txt"], Gm = [
8297
8301
  footerPosition: gt,
8298
8302
  footerOffset: h
8299
8303
  }
8300
- })), s === gt && E !== `${h}px` && (y.current.style.setProperty(
8304
+ })), s === gt && E !== `${h}px` && (v.current.style.setProperty(
8301
8305
  Lt,
8302
8306
  `${h}px`
8303
8307
  ), a({
@@ -8308,7 +8312,7 @@ const Vm = [".png", ".jpg", ".jpeg", ".webp"], Hm = [".pdf", ".txt"], Gm = [
8308
8312
  }
8309
8313
  })), !t && !r && !n && u.length === 0 && _ > 0 && g.height > 0) {
8310
8314
  const x = `${_ - g.height - (e ? 300 : 245)}`;
8311
- E !== `${x}px` && Number(x) > 0 && (y?.current?.style.setProperty(
8315
+ E !== `${x}px` && Number(x) > 0 && (v?.current?.style.setProperty(
8312
8316
  Lt,
8313
8317
  `${x}px`
8314
8318
  ), a({
@@ -8320,7 +8324,7 @@ const Vm = [".png", ".jpg", ".jpeg", ".webp"], Hm = [".pdf", ".txt"], Gm = [
8320
8324
  }));
8321
8325
  }
8322
8326
  }, [
8323
- y,
8327
+ v,
8324
8328
  t,
8325
8329
  r,
8326
8330
  n,
@@ -8334,7 +8338,7 @@ const Vm = [".png", ".jpg", ".jpeg", ".webp"], Hm = [".pdf", ".txt"], Gm = [
8334
8338
  ]), /* @__PURE__ */ p(
8335
8339
  "footer",
8336
8340
  {
8337
- ref: y,
8341
+ ref: v,
8338
8342
  className: P(
8339
8343
  "border-transparent mt-5",
8340
8344
  "bottom-(--sassy-bottom)",
@@ -8380,11 +8384,11 @@ const Vm = [".png", ".jpg", ".jpeg", ".webp"], Hm = [".pdf", ".txt"], Gm = [
8380
8384
  state: { privateChat: r },
8381
8385
  setChatId: n,
8382
8386
  setInitialMessages: o
8383
- } = Q(we), { getAccessToken: s, user: i } = Ie(), { status: a } = je(), { allowedModels: c, status: l } = Hr(), [d, u] = Ce(), [y, g] = Z(!1), f = X(() => {
8384
- y || (jf(), g(!0));
8385
- }, [y]), {
8387
+ } = Q(we), { getAccessToken: s, user: i } = Ie(), { status: a } = je(), { allowedModels: c, status: l } = Hr(), [d, u] = Ce(), [v, g] = Z(!1), f = X(() => {
8388
+ v || (jf(), g(!0));
8389
+ }, [v]), {
8386
8390
  isSuccess: m,
8387
- refetch: v,
8391
+ refetch: y,
8388
8392
  data: _
8389
8393
  } = Fe({
8390
8394
  user: i?.username,
@@ -8412,7 +8416,7 @@ const Vm = [".png", ".jpg", ".jpeg", ".webp"], Hm = [".pdf", ".txt"], Gm = [
8412
8416
  provider: M,
8413
8417
  accessToken: await s(),
8414
8418
  username: i?.username || ""
8415
- }), v(), await rr(`${fn} ${M}`, {
8419
+ }), y(), await rr(`${fn} ${M}`, {
8416
8420
  containerId: "toggle-provider"
8417
8421
  })), t({
8418
8422
  type: at,
@@ -8430,7 +8434,7 @@ const Vm = [".png", ".jpg", ".jpeg", ".webp"], Hm = [".pdf", ".txt"], Gm = [
8430
8434
  model: Y,
8431
8435
  accessToken: await s(),
8432
8436
  username: i?.username || ""
8433
- }), v();
8437
+ }), y();
8434
8438
  const O = mr[Y] || Y;
8435
8439
  await rr(
8436
8440
  `${fn} ${M} (${O})`,
@@ -8530,41 +8534,39 @@ const Vm = [".png", ".jpg", ".jpeg", ".webp"], Hm = [".pdf", ".txt"], Gm = [
8530
8534
  }, Ih = Re(
8531
8535
  () => import(
8532
8536
  /* webpackChunkName: "modal-chunk" */
8533
- "./ProfileEntry.C-3cFRJF.js"
8537
+ "./ProfileEntry.C00E78C_.js"
8534
8538
  ).then((e) => ({
8535
8539
  default: e.Profile
8536
8540
  }))
8537
8541
  ), Eh = Re(
8538
8542
  () => import(
8539
8543
  /* webpackChunkName: "modal-chunk" */
8540
- "./SettingsEntry.AuH85ovZ.js"
8544
+ "./SettingsEntry.DFwJrngK.js"
8541
8545
  ).then((e) => ({
8542
8546
  default: e.SettingsPanel
8543
8547
  }))
8544
8548
  ), Th = Re(
8545
8549
  () => import(
8546
8550
  /* webpackChunkName: "modal-chunk" */
8547
- "./HistoryEntry.DdsxhGAV.js"
8551
+ "./HistoryEntry.Q2pKcHSB.js"
8548
8552
  ).then((e) => ({
8549
8553
  default: e.HistoryPanel
8550
8554
  }))
8551
8555
  ), Sh = Re(
8552
8556
  () => import(
8553
8557
  /* webpackChunkName: "modal-chunk" */
8554
- "./AboutEntry.CKKvxJXb.js"
8558
+ "./AboutEntry.dpZ59YR5.js"
8555
8559
  ).then((e) => ({ default: e.About }))
8556
8560
  ), kh = Re(
8557
8561
  () => import(
8558
8562
  /* webpackChunkName: "modal-chunk" */
8559
- "./UsageEntry.C5_CSslN.js"
8563
+ "./UsageEntry.BPZ7yPOX.js"
8560
8564
  ).then((e) => ({ default: e.Usage }))
8561
8565
  ), Ch = Re(
8562
8566
  () => import(
8563
8567
  /* webpackChunkName: "modal-chunk" */
8564
- "./UserMemoriesPanel.B7Vh6shw.js"
8565
- ).then(
8566
- (e) => ({ default: e.default })
8567
- )
8568
+ "./MemoriesEntry.Cskw19yH.js"
8569
+ ).then((e) => ({ default: e.default }))
8568
8570
  ), xh = ({
8569
8571
  open: e,
8570
8572
  onOpenChange: t
@@ -8603,7 +8605,7 @@ const Vm = [".png", ".jpg", ".jpeg", ".webp"], Hm = [".pdf", ".txt"], Gm = [
8603
8605
  } = Q(kt), { logout: r, getAccessToken: n, user: o } = Ie(), s = ii(), [i, a] = Ce(), { data: c, isSuccess: l } = Fe({
8604
8606
  user: o?.username,
8605
8607
  getAccessToken: n
8606
- }), [d, u] = Z(null), [y, g] = Z(!1), [f, m] = Z(!1), [v, _] = Z(!1), w = nr(Jt.TOOL.MEMORIES);
8608
+ }), [d, u] = Z(null), [v, g] = Z(!1), [f, m] = Z(!1), [y, _] = Z(!1), w = nr(Jt.TOOL.MEMORIES);
8607
8609
  $(() => {
8608
8610
  l && c && w && _(c?.useMemory ?? !1);
8609
8611
  }, [l, c, w]);
@@ -8611,23 +8613,23 @@ const Vm = [".png", ".jpg", ".jpeg", ".webp"], Hm = [".pdf", ".txt"], Gm = [
8611
8613
  f || Promise.all([
8612
8614
  import(
8613
8615
  /* webpackChunkName: "modal-chunk" */
8614
- "./ProfileEntry.C-3cFRJF.js"
8616
+ "./ProfileEntry.C00E78C_.js"
8615
8617
  ),
8616
8618
  import(
8617
8619
  /* webpackChunkName: "modal-chunk" */
8618
- "./SettingsEntry.AuH85ovZ.js"
8620
+ "./SettingsEntry.DFwJrngK.js"
8619
8621
  ),
8620
8622
  import(
8621
8623
  /* webpackChunkName: "modal-chunk" */
8622
- "./HistoryEntry.DdsxhGAV.js"
8624
+ "./HistoryEntry.Q2pKcHSB.js"
8623
8625
  ),
8624
8626
  import(
8625
8627
  /* webpackChunkName: "modal-chunk" */
8626
- "./AboutEntry.CKKvxJXb.js"
8628
+ "./AboutEntry.dpZ59YR5.js"
8627
8629
  ),
8628
8630
  import(
8629
8631
  /* webpackChunkName: "modal-chunk" */
8630
- "./UsageEntry.C5_CSslN.js"
8632
+ "./UsageEntry.BPZ7yPOX.js"
8631
8633
  )
8632
8634
  ]).finally(() => m(!0));
8633
8635
  }, [f]), h = X((z) => {
@@ -8639,7 +8641,7 @@ const Vm = [".png", ".jpg", ".jpeg", ".webp"], Hm = [".pdf", ".txt"], Gm = [
8639
8641
  }, [h]);
8640
8642
  Js("openSettings", x);
8641
8643
  const T = () => {
8642
- g(!y);
8644
+ g(!v);
8643
8645
  }, C = X(() => {
8644
8646
  s.clear(), r();
8645
8647
  }, [r, s]);
@@ -8662,7 +8664,7 @@ const Vm = [".png", ".jpg", ".jpeg", ".webp"], Hm = [".pdf", ".txt"], Gm = [
8662
8664
  /* @__PURE__ */ p(
8663
8665
  Tt,
8664
8666
  {
8665
- showConfirmation: y,
8667
+ showConfirmation: v,
8666
8668
  setShowConfirmation: g,
8667
8669
  action: C,
8668
8670
  customStrings: {
@@ -8745,7 +8747,7 @@ const Vm = [".png", ".jpg", ".jpeg", ".webp"], Hm = [".pdf", ".txt"], Gm = [
8745
8747
  icon: /* @__PURE__ */ p(ui, {})
8746
8748
  }
8747
8749
  ),
8748
- v && /* @__PURE__ */ p(
8750
+ y && /* @__PURE__ */ p(
8749
8751
  be,
8750
8752
  {
8751
8753
  label: "Memories",
@@ -8898,18 +8900,18 @@ const lo = "av-spinner", ea = ({ spinnerRef: e, mode: t = "system", type: r = "c
8898
8900
  ]
8899
8901
  });
8900
8902
  }, Ph = Re(
8901
- () => import("./index.IFwWrDqI.js").then((e) => ({ default: e.Bubble }))
8903
+ () => import("./index.CWA0zYs3.js").then((e) => ({ default: e.Bubble }))
8902
8904
  ), sn = (e) => /* @__PURE__ */ p(Wt, { fallback: /* @__PURE__ */ p("span", { className: "inline-block" }), children: /* @__PURE__ */ p(Ph, { ...e }) });
8903
8905
  sn.displayName = "AsyncBubble";
8904
8906
  const uo = 1, Rh = 150, zh = Re(
8905
8907
  () => import(
8906
8908
  /* webpackChunkName: "LazyMessageAssistant" */
8907
- "./ChatBubbleAssistant.DPvPqKP2.js"
8909
+ "./ChatBubbleAssistant.3HbqWdw7.js"
8908
8910
  )
8909
8911
  ), Mh = Re(
8910
8912
  () => import(
8911
8913
  /* webpackChunkName: "LazyMessageUser" */
8912
- "./ChatBubbleUser.BCEiPwpY.js"
8914
+ "./ChatBubbleUser.DeTQjv1M.js"
8913
8915
  )
8914
8916
  ), $h = To.memo(
8915
8917
  ({
@@ -8920,16 +8922,16 @@ const uo = 1, Rh = 150, zh = Re(
8920
8922
  isLastAssistantMessage: o = !1,
8921
8923
  status: s
8922
8924
  }) => {
8923
- const [i, a] = Z(!0), c = J(Date.now()), [l] = Z(
8925
+ const [i, a] = Z(!0), c = V(Date.now()), [l] = Z(
8924
8926
  () => o && (s === "streaming" || s === "submitted")
8925
8927
  );
8926
8928
  return $(() => {
8927
8929
  if (o && i && t && t.trim().length >= uo) {
8928
- const u = Date.now() - c.current, y = Rh - u;
8929
- if (y > 0) {
8930
+ const u = Date.now() - c.current, v = Rh - u;
8931
+ if (v > 0) {
8930
8932
  const g = setTimeout(
8931
8933
  () => a(!1),
8932
- y
8934
+ v
8933
8935
  );
8934
8936
  return () => clearTimeout(g);
8935
8937
  }
@@ -8992,23 +8994,23 @@ const Lh = () => {
8992
8994
  o && /* @__PURE__ */ p(sn, { tail: !0, children: /* @__PURE__ */ p(ea, { type: "dots" }) })
8993
8995
  ] }) : null;
8994
8996
  }, Uh = () => {
8995
- const { isAuthenticated: e } = Ie(), { ref: t, inViewport: r } = gi(), n = J(null), o = J(null), {
8997
+ const { isAuthenticated: e } = Ie(), { ref: t, inViewport: r } = gi(), n = V(null), o = V(null), {
8996
8998
  state: { footerPosition: s, footerHeight: i, footerOffset: a, oledMode: c }
8997
8999
  } = Q(kt), {
8998
9000
  state: { loading: l }
8999
- } = Q(we), { messages: d } = je(), u = J(0), { data: y, isSuccess: g } = vi(), f = yi({
9001
+ } = Q(we), { messages: d } = je(), u = V(0), { data: v, isSuccess: g } = vi(), f = yi({
9000
9002
  isAuthenticated: e,
9001
9003
  oledMode: c,
9002
9004
  extraClass: "rounded-b-md relative border-b-16 border-transparent"
9003
- }), m = wi() ? "mt-4" : "", v = X(() => {
9005
+ }), m = wi() ? "mt-4" : "", y = X(() => {
9004
9006
  o.current && o.current.scrollIntoView({
9005
9007
  behavior: "smooth",
9006
9008
  block: "end"
9007
9009
  });
9008
9010
  }, []);
9009
9011
  return $(() => {
9010
- l && v();
9011
- }, [l, v]), $(() => {
9012
+ l && y();
9013
+ }, [l, y]), $(() => {
9012
9014
  u.current = s === gt ? i + a + Eo + _i + 15 : 0;
9013
9015
  }, [s, i, a]), /* @__PURE__ */ N(Me, { children: [
9014
9016
  /* @__PURE__ */ N("div", { className: f, ref: n, children: [
@@ -9017,7 +9019,7 @@ const Lh = () => {
9017
9019
  {
9018
9020
  className: m,
9019
9021
  isCapabilitiesSuccess: g,
9020
- capabilities: y
9022
+ capabilities: v
9021
9023
  }
9022
9024
  ),
9023
9025
  /* @__PURE__ */ p(Lh, {}),
@@ -9037,7 +9039,7 @@ const Lh = () => {
9037
9039
  {
9038
9040
  show: !r && s === gt,
9039
9041
  bottom: u.current,
9040
- onClick: v
9042
+ onClick: y
9041
9043
  }
9042
9044
  )
9043
9045
  ] });
@@ -9046,7 +9048,7 @@ function ta({
9046
9048
  isComponent: e = !1,
9047
9049
  headerHeight: t = 0
9048
9050
  }) {
9049
- const { user: r, getAccessToken: n } = Ie(), [o, s] = Z(`${hn}px`), [i, a] = bo(), [c, l] = Z(Ue()), [d, u] = Z([]), [y] = Ae({
9051
+ const { user: r, getAccessToken: n } = Ie(), [o, s] = Z(`${hn}px`), [i, a] = bo(), [c, l] = Z(Ue()), [d, u] = Z([]), [v] = Ae({
9050
9052
  key: ke + Ri,
9051
9053
  initialValue: ""
9052
9054
  }), [g] = Ae({
@@ -9058,7 +9060,7 @@ function ta({
9058
9060
  }), [m] = Ae({
9059
9061
  key: ke + Zi,
9060
9062
  initialValue: ht.ASC
9061
- }), [v] = Ae({
9063
+ }), [y] = Ae({
9062
9064
  key: zi,
9063
9065
  initialValue: !1
9064
9066
  }), [_] = Ae({
@@ -9075,7 +9077,7 @@ function ta({
9075
9077
  const de = Ne(), Ve = mo();
9076
9078
  return de && Ve ? "mt-1" : "mt-5";
9077
9079
  }, []), T = {
9078
- searchString: y,
9080
+ searchString: v,
9079
9081
  sortedCell: g,
9080
9082
  sortDirection: (() => {
9081
9083
  switch (g) {
@@ -9123,11 +9125,11 @@ function ta({
9123
9125
  }), $(() => {
9124
9126
  document.getElementById("root")?.classList.replace("app-hidden", "fadeIn");
9125
9127
  }, []), $(() => {
9126
- Ti(v), h({
9128
+ Ti(y), h({
9127
9129
  type: Si,
9128
- payload: { oledMode: v }
9130
+ payload: { oledMode: y }
9129
9131
  });
9130
- }, [v]), $(() => {
9132
+ }, [y]), $(() => {
9131
9133
  h({
9132
9134
  type: ki,
9133
9135
  payload: { fullScreen: _ }