@versini/sassysaint 8.75.4 → 8.76.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/chunks/{AboutChangelog.DE5M5CPF.js → AboutChangelog.0kKcS_nT.js} +2 -2
  2. package/dist/chunks/{AboutEntry.CC4Geu98.js → AboutEntry.pKgicvGA.js} +7 -7
  3. package/dist/chunks/{App.ENGe9H1T.js → App.CtFpHv2O.js} +205 -204
  4. package/dist/chunks/{Chart.DpZtBOl0.js → Chart.DD1RkG8X.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.e2Qi5r3T.js → ChatBubbleAssistant.K55U7Bno.js} +13 -13
  6. package/dist/chunks/{ChatBubbleUser.DP1w-8LC.js → ChatBubbleUser.DsX56Kxx.js} +3 -3
  7. package/dist/chunks/{ChatHistoryTable.BKu_ZZU9.js → ChatHistoryTable.BvEUTjiq.js} +17 -17
  8. package/dist/chunks/{HistoryEntry.ghac4Dvt.js → HistoryEntry.BSOPWYO2.js} +20 -20
  9. package/dist/chunks/{ProfileEntry.B5p6jUni.js → ProfileEntry.Bb-kLfDX.js} +18 -18
  10. package/dist/chunks/{SettingsEntry.DRaXHqD7.js → SettingsEntry.DrmBVh-w.js} +10 -10
  11. package/dist/chunks/{Table.DFmbCLqy.js → Table.BbIvEnBz.js} +2 -2
  12. package/dist/chunks/{UsageEntry.v3rZzEkE.js → UsageEntry.O3YdUF30.js} +8 -8
  13. package/dist/chunks/{UserMemoriesPanel.CxSpeQVc.js → UserMemoriesPanel.Dl5GlyBr.js} +22 -22
  14. package/dist/chunks/{index.DkACWoJr.js → index.B9mUNJfd.js} +1 -1
  15. package/dist/chunks/{index.DQMZ9_rK.js → index.BNusLsEn.js} +13 -13
  16. package/dist/chunks/{index.CGU26igb.js → index.BeIiCAAq.js} +2 -2
  17. package/dist/chunks/{index.DrNijiOb.js → index.Czv_1MTM.js} +559 -622
  18. package/dist/chunks/{index.BxFHN1eH.js → index.DEKgWsou.js} +1 -1
  19. package/dist/chunks/{index.DTuvjVrw.js → index.DGkW9g6n.js} +3 -3
  20. package/dist/chunks/{index.Cnc9HRbd.js → index.DUl-LwyU.js} +1 -1
  21. package/dist/chunks/{index.CyFKAjrJ.js → index.icjUE8II.js} +24 -24
  22. package/dist/chunks/{useMarkdown.CYvX9qkp.js → useMarkdown.Bf7wGKkC.js} +6 -6
  23. package/dist/components/SassySaint/SassySaint.js +1 -1
  24. package/dist/index.js +4 -4
  25. package/dist/style.css +1 -1
  26. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
1
  import { jsx as l, jsxs as E, Fragment as Oe } from "react/jsx-runtime";
2
- import { I as H, ACTION_SORT as ps, ACTION_SEARCH as ms, ACTION_RESET_PROMPT as vo, ACTION_TOGGLE_PROMPT as yo, LOCAL_STORAGE_PREFIX as Le, LOCAL_STORAGE_CHAT_ID as _o, n as ge, isDev as fs, isPWAMode as bo, useChat as hs, F as gs, te as Ee, DEFAULT_ICON_ACTION_SIZE as ze, isTauri as qt, useUserPreferences as He, isProbablyiPhone as Ue, serverUrl as wo, useEntitlements as Vr, L as kr, j as it, C as sn, LOCAL_STORAGE_PRIVATE_DISCLOSURE as vs, ot as Yt, LOCAL_STORAGE_REASONING_DISCLOSURE as ys, useSaveChat as _s, TOAST_CHAT_SAVED as bs, PROMPT_CLASSNAME as ws, PROMPT_EDITABLE_AREA_CLASSNAME as Is, useChatsHistory as Es, i as Ts, rt as Io, ERROR_MESSAGE as xs, E as wt, CLIPBOARD_PROMPT as cn, INPUT_PLACEHOLDER_TEXT_MOBILE as ln, INPUT_PLACEHOLDER_TEXT_ENTER as un, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as dn, isProbablyMobile as Cr, Z as Ss, FOOTER_DISCLAIMERS as pn, h as Eo, isProbablyiPad as ks, INPUT_BOTTOM_OFFSET_EXTRA as mn, INPUT_BOTTOM_OFFSET_IPHONE as Cs, INPUT_BOTTOM_OFFSET_IPAD as Ns, INPUT_BOTTOM_OFFSET as To, getLayoutPaddingClass as Nr, canEvaluateModels as fn, et as zs, r as As, O as Os, c as Ms, V as $s, j$1 as fr, setNewProvider as hn, TOAST_PROVIDER_CHANGED as gn, useQueryClient as Ps, LOG_OUT as vn, e as xo, b as yn, useServerCapabilities as Rs, getMessageContaintWrapperClass as Zs, UI_FOOTER_BUFFER as So, UI_BUTTON_SCROLL_BUFFER as Ds, Logo as Ls, UI_DEFAULT_MAIN_HEIGHT as _n, applyOledMode as Us, UI_DEFAULT_MAIN_HEIGHT_IPHONE as Bs, APP_CLASSNAME as js, J as bn, Q as Vs, LOCAL_STORAGE_SORT as Fs, LOCAL_STORAGE_SEARCH as Hs, LOCAL_STORAGE_OLED_MODE as Gs, LOCAL_STORAGE_FULL_SCREEN as Js, LOCAL_STORAGE_SORT_TIMESTAMP as Ws, LOCAL_STORAGE_SORT_TOKEN_USAGE as qs, TOAST_CACHE_ENABLED as Ys, TOAST_CACHE_DISABLED as Xs } from "./index.DrNijiOb.js";
2
+ import { I as H, ACTION_SORT as ps, ACTION_SEARCH as ms, ACTION_RESET_PROMPT as vo, ACTION_TOGGLE_PROMPT as yo, LOCAL_STORAGE_PREFIX as Le, LOCAL_STORAGE_CHAT_ID as _o, n as ge, isDev as fs, isPWAMode as bo, useChat as hs, W as gs, te as Ee, DEFAULT_ICON_ACTION_SIZE as ze, isTauri as Yt, useUserPreferences as He, isProbablyiPhone as Ue, serverUrl as wo, useEntitlements as Vr, L as kr, j as it, C$1 as sn, LOCAL_STORAGE_PRIVATE_DISCLOSURE as vs, C as qt, LOCAL_STORAGE_REASONING_DISCLOSURE as ys, useSaveChat as _s, TOAST_CHAT_SAVED as bs, PROMPT_CLASSNAME as ws, PROMPT_EDITABLE_AREA_CLASSNAME as Is, useChatsHistory as Es, i as Ts, Y$1 as Io, ERROR_MESSAGE as xs, t as wt, CLIPBOARD_PROMPT as cn, INPUT_PLACEHOLDER_TEXT_MOBILE as ln, INPUT_PLACEHOLDER_TEXT_ENTER as un, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as dn, isProbablyMobile as Cr, m as Ss, FOOTER_DISCLAIMERS as pn, h$1 as Eo, isProbablyiPad as ks, INPUT_BOTTOM_OFFSET_EXTRA as mn, INPUT_BOTTOM_OFFSET_IPHONE as Cs, INPUT_BOTTOM_OFFSET_IPAD as Ns, INPUT_BOTTOM_OFFSET as To, getLayoutPaddingClass as Nr, canEvaluateModels as fn, w as zs, Z as As, E as Os, z as Ms, x$1 as $s, N as fr, setNewProvider as hn, TOAST_PROVIDER_CHANGED as gn, useQueryClient as Ps, LOG_OUT as vn, $ as xo, J as yn, useServerCapabilities as Rs, getMessageContaintWrapperClass as Zs, UI_FOOTER_BUFFER as So, UI_BUTTON_SCROLL_BUFFER as Ds, Logo as Ls, UI_DEFAULT_MAIN_HEIGHT as _n, applyOledMode as Us, UI_DEFAULT_MAIN_HEIGHT_IPHONE as Bs, APP_CLASSNAME as js, f as bn, h as Vs, LOCAL_STORAGE_SORT as Fs, LOCAL_STORAGE_SEARCH as Hs, LOCAL_STORAGE_OLED_MODE as Gs, LOCAL_STORAGE_FULL_SCREEN as Js, LOCAL_STORAGE_SORT_TIMESTAMP as Ws, LOCAL_STORAGE_SORT_TOKEN_USAGE as Ys, TOAST_CACHE_ENABLED as qs, TOAST_CACHE_DISABLED as Xs } from "./index.Czv_1MTM.js";
3
3
  import * as oe from "react";
4
4
  import ut, { useRef as j, useEffect as O, useCallback as Z, useState as P, useSyncExternalStore as jt, createContext as Qs, useContext as K, useId as ko, forwardRef as Co, useMemo as Ne, Suspense as Xt, lazy as $e, useReducer as Mt, useLayoutEffect as Ks } from "react";
5
5
  import z from "clsx";
@@ -814,7 +814,7 @@ try {
814
814
  });
815
815
  } catch {
816
816
  }
817
- var jo = "vercel.ai.error", Wi = Symbol.for(jo), Vo, qi = class Fo extends Error {
817
+ var jo = "vercel.ai.error", Wi = Symbol.for(jo), Vo, Yi = class Fo extends Error {
818
818
  /**
819
819
  * Creates an AI SDK Error.
820
820
  *
@@ -844,11 +844,11 @@ var jo = "vercel.ai.error", Wi = Symbol.for(jo), Vo, qi = class Fo extends Error
844
844
  }
845
845
  };
846
846
  Vo = Wi;
847
- var Be = qi;
847
+ var Be = Yi;
848
848
  function Ho(e) {
849
849
  return e == null ? "unknown error" : typeof e == "string" ? e : e instanceof Error ? e.message : JSON.stringify(e);
850
850
  }
851
- var Go = "AI_InvalidArgumentError", Jo = `vercel.ai.error.${Go}`, Yi = Symbol.for(Jo), Wo, Xi = class extends Be {
851
+ var Go = "AI_InvalidArgumentError", Jo = `vercel.ai.error.${Go}`, qi = Symbol.for(Jo), Wo, Xi = class extends Be {
852
852
  constructor({
853
853
  message: e,
854
854
  cause: t,
@@ -860,18 +860,18 @@ var Go = "AI_InvalidArgumentError", Jo = `vercel.ai.error.${Go}`, Yi = Symbol.fo
860
860
  return Be.hasMarker(e, Jo);
861
861
  }
862
862
  };
863
- Wo = Yi;
864
- var qo = "AI_JSONParseError", Yo = `vercel.ai.error.${qo}`, Qi = Symbol.for(Yo), Xo, Cn = class extends Be {
863
+ Wo = qi;
864
+ var Yo = "AI_JSONParseError", qo = `vercel.ai.error.${Yo}`, Qi = Symbol.for(qo), Xo, Cn = class extends Be {
865
865
  constructor({ text: e, cause: t }) {
866
866
  super({
867
- name: qo,
867
+ name: Yo,
868
868
  message: `JSON parsing failed: Text: ${e}.
869
869
  Error message: ${Ho(t)}`,
870
870
  cause: t
871
871
  }), this[Xo] = !0, this.text = e;
872
872
  }
873
873
  static isInstance(e) {
874
- return Be.hasMarker(e, Yo);
874
+ return Be.hasMarker(e, qo);
875
875
  }
876
876
  };
877
877
  Xo = Qi;
@@ -1298,7 +1298,7 @@ function Ve(e, t, r) {
1298
1298
  }
1299
1299
  return delete n.inst, delete n.continue, t?.reportInput || delete n.input, n;
1300
1300
  }
1301
- function qr(e) {
1301
+ function Yr(e) {
1302
1302
  return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
1303
1303
  }
1304
1304
  function Et(...e) {
@@ -1410,7 +1410,7 @@ function jc(e) {
1410
1410
  const Vc = (e) => {
1411
1411
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
1412
1412
  return new RegExp(`^${t}$`);
1413
- }, Fc = /^\d+$/, Hc = /^-?\d+(?:\.\d+)?/i, Gc = /true|false/i, Jc = /null/i, Wc = /^[^A-Z]*$/, qc = /^[^a-z]*$/, ce = /* @__PURE__ */ _("$ZodCheck", (e, t) => {
1413
+ }, Fc = /^\d+$/, Hc = /^-?\d+(?:\.\d+)?/i, Gc = /true|false/i, Jc = /null/i, Wc = /^[^A-Z]*$/, Yc = /^[^a-z]*$/, ce = /* @__PURE__ */ _("$ZodCheck", (e, t) => {
1414
1414
  var r;
1415
1415
  e._zod ?? (e._zod = {}), e._zod.def = t, (r = e._zod).onattach ?? (r.onattach = []);
1416
1416
  }), pa = {
@@ -1451,7 +1451,7 @@ const Vc = (e) => {
1451
1451
  continue: !t.abort
1452
1452
  });
1453
1453
  };
1454
- }), Yc = /* @__PURE__ */ _("$ZodCheckMultipleOf", (e, t) => {
1454
+ }), qc = /* @__PURE__ */ _("$ZodCheckMultipleOf", (e, t) => {
1455
1455
  ce.init(e, t), e._zod.onattach.push((r) => {
1456
1456
  var n;
1457
1457
  (n = r._zod.bag).multipleOf ?? (n.multipleOf = t.value);
@@ -1535,7 +1535,7 @@ const Vc = (e) => {
1535
1535
  const o = n.value;
1536
1536
  if (o.length <= t.maximum)
1537
1537
  return;
1538
- const i = qr(o);
1538
+ const i = Yr(o);
1539
1539
  n.issues.push({
1540
1540
  origin: i,
1541
1541
  code: "too_big",
@@ -1558,7 +1558,7 @@ const Vc = (e) => {
1558
1558
  const o = n.value;
1559
1559
  if (o.length >= t.minimum)
1560
1560
  return;
1561
- const i = qr(o);
1561
+ const i = Yr(o);
1562
1562
  n.issues.push({
1563
1563
  origin: i,
1564
1564
  code: "too_small",
@@ -1581,7 +1581,7 @@ const Vc = (e) => {
1581
1581
  const o = n.value, a = o.length;
1582
1582
  if (a === t.length)
1583
1583
  return;
1584
- const i = qr(o), s = a > t.length;
1584
+ const i = Yr(o), s = a > t.length;
1585
1585
  n.issues.push({
1586
1586
  origin: i,
1587
1587
  ...s ? { code: "too_big", maximum: t.length } : { code: "too_small", minimum: t.length },
@@ -1624,7 +1624,7 @@ const Vc = (e) => {
1624
1624
  }), rl = /* @__PURE__ */ _("$ZodCheckLowerCase", (e, t) => {
1625
1625
  t.pattern ?? (t.pattern = Wc), cr.init(e, t);
1626
1626
  }), nl = /* @__PURE__ */ _("$ZodCheckUpperCase", (e, t) => {
1627
- t.pattern ?? (t.pattern = qc), cr.init(e, t);
1627
+ t.pattern ?? (t.pattern = Yc), cr.init(e, t);
1628
1628
  }), ol = /* @__PURE__ */ _("$ZodCheckIncludes", (e, t) => {
1629
1629
  ce.init(e, t);
1630
1630
  const r = kt(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
@@ -1766,7 +1766,7 @@ const ll = {
1766
1766
  vendor: "zod",
1767
1767
  version: 1
1768
1768
  };
1769
- }), Yr = /* @__PURE__ */ _("$ZodString", (e, t) => {
1769
+ }), qr = /* @__PURE__ */ _("$ZodString", (e, t) => {
1770
1770
  V.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Vc(e._zod.bag), e._zod.parse = (r, n) => {
1771
1771
  if (t.coerce)
1772
1772
  try {
@@ -1781,7 +1781,7 @@ const ll = {
1781
1781
  }), r;
1782
1782
  };
1783
1783
  }), G = /* @__PURE__ */ _("$ZodStringFormat", (e, t) => {
1784
- cr.init(e, t), Yr.init(e, t);
1784
+ cr.init(e, t), qr.init(e, t);
1785
1785
  }), ul = /* @__PURE__ */ _("$ZodGUID", (e, t) => {
1786
1786
  t.pattern ?? (t.pattern = Nc), G.init(e, t);
1787
1787
  }), dl = /* @__PURE__ */ _("$ZodUUID", (e, t) => {
@@ -2412,12 +2412,12 @@ const Fl = /* @__PURE__ */ _("$ZodRecord", (e, t) => {
2412
2412
  const r = t.innerType._zod.pattern;
2413
2413
  return r ? new RegExp(`^(${Wr(r.source)})?$`) : void 0;
2414
2414
  }), e._zod.parse = (r, n) => t.innerType._zod.optin === "optional" ? t.innerType._zod.run(r, n) : r.value === void 0 ? r : t.innerType._zod.run(r, n);
2415
- }), ql = /* @__PURE__ */ _("$ZodNullable", (e, t) => {
2415
+ }), Yl = /* @__PURE__ */ _("$ZodNullable", (e, t) => {
2416
2416
  V.init(e, t), D(e._zod, "optin", () => t.innerType._zod.optin), D(e._zod, "optout", () => t.innerType._zod.optout), D(e._zod, "pattern", () => {
2417
2417
  const r = t.innerType._zod.pattern;
2418
2418
  return r ? new RegExp(`^(${Wr(r.source)}|null)$`) : void 0;
2419
2419
  }), D(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (r, n) => r.value === null ? r : t.innerType._zod.run(r, n);
2420
- }), Yl = /* @__PURE__ */ _("$ZodDefault", (e, t) => {
2420
+ }), ql = /* @__PURE__ */ _("$ZodDefault", (e, t) => {
2421
2421
  V.init(e, t), e._zod.optin = "optional", D(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
2422
2422
  if (r.value === void 0)
2423
2423
  return r.value = t.defaultValue, r;
@@ -2858,7 +2858,7 @@ function yr(e, t) {
2858
2858
  });
2859
2859
  }
2860
2860
  function Vn(e, t) {
2861
- return new Yc({
2861
+ return new qc({
2862
2862
  check: "multiple_of",
2863
2863
  ...T(t),
2864
2864
  value: e
@@ -2968,7 +2968,7 @@ function Wu(e, t, r) {
2968
2968
  ...n
2969
2969
  });
2970
2970
  }
2971
- function qu(e, t, r) {
2971
+ function Yu(e, t, r) {
2972
2972
  return new e({
2973
2973
  type: "custom",
2974
2974
  check: "custom",
@@ -3377,7 +3377,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
3377
3377
  }
3378
3378
  }
3379
3379
  }
3380
- function Yu(e, t) {
3380
+ function qu(e, t) {
3381
3381
  if (e instanceof ya) {
3382
3382
  const n = new Fn(t), o = {};
3383
3383
  for (const s of e._idmap.entries()) {
@@ -3487,25 +3487,25 @@ function Q(e, t) {
3487
3487
  throw new Error(`Unknown schema type: ${o.type}`);
3488
3488
  }
3489
3489
  const Xu = /* @__PURE__ */ _("ZodISODateTime", (e, t) => {
3490
- wl.init(e, t), q.init(e, t);
3490
+ wl.init(e, t), Y.init(e, t);
3491
3491
  });
3492
3492
  function Qu(e) {
3493
3493
  return ku(Xu, e);
3494
3494
  }
3495
3495
  const Ku = /* @__PURE__ */ _("ZodISODate", (e, t) => {
3496
- Il.init(e, t), q.init(e, t);
3496
+ Il.init(e, t), Y.init(e, t);
3497
3497
  });
3498
3498
  function ed(e) {
3499
3499
  return Cu(Ku, e);
3500
3500
  }
3501
3501
  const td = /* @__PURE__ */ _("ZodISOTime", (e, t) => {
3502
- El.init(e, t), q.init(e, t);
3502
+ El.init(e, t), Y.init(e, t);
3503
3503
  });
3504
3504
  function rd(e) {
3505
3505
  return Nu(td, e);
3506
3506
  }
3507
3507
  const nd = /* @__PURE__ */ _("ZodISODuration", (e, t) => {
3508
- Tl.init(e, t), q.init(e, t);
3508
+ Tl.init(e, t), Y.init(e, t);
3509
3509
  });
3510
3510
  function od(e) {
3511
3511
  return zu(nd, e);
@@ -3546,7 +3546,7 @@ const ad = (e, t) => {
3546
3546
  ]
3547
3547
  }
3548
3548
  // { parent: true }
3549
- ), e.clone = (r, n) => tt(e, r, n), e.brand = () => e, e.register = ((r, n) => (r.add(e, n), e)), e.parse = (r, n) => sd(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => cd(e, r, n), e.parseAsync = async (r, n) => id(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => wa(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(op(r, n)), e.superRefine = (r) => e.check(ap(r)), e.overwrite = (r) => e.check(Ct(r)), e.optional = () => Jn(e), e.nullable = () => Wn(e), e.nullish = () => Jn(Wn(e)), e.nonoptional = (r) => qd(e, r), e.array = () => dt(e), e.or = (r) => he([e, r]), e.and = (r) => Dd(e, r), e.transform = (r) => qn(e, Vd(r)), e.default = (r) => Gd(e, r), e.prefault = (r) => Wd(e, r), e.catch = (r) => Xd(e, r), e.pipe = (r) => qn(e, r), e.readonly = () => ep(e), e.describe = (r) => {
3549
+ ), e.clone = (r, n) => tt(e, r, n), e.brand = () => e, e.register = ((r, n) => (r.add(e, n), e)), e.parse = (r, n) => sd(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => cd(e, r, n), e.parseAsync = async (r, n) => id(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => wa(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(op(r, n)), e.superRefine = (r) => e.check(ap(r)), e.overwrite = (r) => e.check(Ct(r)), e.optional = () => Jn(e), e.nullable = () => Wn(e), e.nullish = () => Jn(Wn(e)), e.nonoptional = (r) => Yd(e, r), e.array = () => dt(e), e.or = (r) => he([e, r]), e.and = (r) => Dd(e, r), e.transform = (r) => Yn(e, Vd(r)), e.default = (r) => Gd(e, r), e.prefault = (r) => Wd(e, r), e.catch = (r) => Xd(e, r), e.pipe = (r) => Yn(e, r), e.readonly = () => ep(e), e.describe = (r) => {
3550
3550
  const n = e.clone();
3551
3551
  return ht.add(n, { description: r }), n;
3552
3552
  }, Object.defineProperty(e, "description", {
@@ -3560,55 +3560,55 @@ const ad = (e, t) => {
3560
3560
  const n = e.clone();
3561
3561
  return ht.add(n, r[0]), n;
3562
3562
  }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), Ia = /* @__PURE__ */ _("_ZodString", (e, t) => {
3563
- Yr.init(e, t), J.init(e, t);
3563
+ qr.init(e, t), J.init(e, t);
3564
3564
  const r = e._zod.bag;
3565
3565
  e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Zu(...n)), e.includes = (...n) => e.check(Uu(...n)), e.startsWith = (...n) => e.check(Bu(...n)), e.endsWith = (...n) => e.check(ju(...n)), e.min = (...n) => e.check(tr(...n)), e.max = (...n) => e.check(_a(...n)), e.length = (...n) => e.check(ba(...n)), e.nonempty = (...n) => e.check(tr(1, ...n)), e.lowercase = (n) => e.check(Du(n)), e.uppercase = (n) => e.check(Lu(n)), e.trim = () => e.check(Fu()), e.normalize = (...n) => e.check(Vu(...n)), e.toLowerCase = () => e.check(Hu()), e.toUpperCase = () => e.check(Gu());
3566
3566
  }), ld = /* @__PURE__ */ _("ZodString", (e, t) => {
3567
- Yr.init(e, t), Ia.init(e, t), e.email = (r) => e.check(su(ud, r)), e.url = (r) => e.check(du(dd, r)), e.jwt = (r) => e.check(Su(Sd, r)), e.emoji = (r) => e.check(pu(pd, r)), e.guid = (r) => e.check(Un(Hn, r)), e.uuid = (r) => e.check(iu(Zt, r)), e.uuidv4 = (r) => e.check(cu(Zt, r)), e.uuidv6 = (r) => e.check(lu(Zt, r)), e.uuidv7 = (r) => e.check(uu(Zt, r)), e.nanoid = (r) => e.check(mu(md, r)), e.guid = (r) => e.check(Un(Hn, r)), e.cuid = (r) => e.check(fu(fd, r)), e.cuid2 = (r) => e.check(hu(hd, r)), e.ulid = (r) => e.check(gu(gd, r)), e.base64 = (r) => e.check(Eu(Ed, r)), e.base64url = (r) => e.check(Tu(Td, r)), e.xid = (r) => e.check(vu(vd, r)), e.ksuid = (r) => e.check(yu(yd, r)), e.ipv4 = (r) => e.check(_u(_d, r)), e.ipv6 = (r) => e.check(bu(bd, r)), e.cidrv4 = (r) => e.check(wu(wd, r)), e.cidrv6 = (r) => e.check(Iu(Id, r)), e.e164 = (r) => e.check(xu(xd, r)), e.datetime = (r) => e.check(Qu(r)), e.date = (r) => e.check(ed(r)), e.time = (r) => e.check(rd(r)), e.duration = (r) => e.check(od(r));
3567
+ qr.init(e, t), Ia.init(e, t), e.email = (r) => e.check(su(ud, r)), e.url = (r) => e.check(du(dd, r)), e.jwt = (r) => e.check(Su(Sd, r)), e.emoji = (r) => e.check(pu(pd, r)), e.guid = (r) => e.check(Un(Hn, r)), e.uuid = (r) => e.check(iu(Zt, r)), e.uuidv4 = (r) => e.check(cu(Zt, r)), e.uuidv6 = (r) => e.check(lu(Zt, r)), e.uuidv7 = (r) => e.check(uu(Zt, r)), e.nanoid = (r) => e.check(mu(md, r)), e.guid = (r) => e.check(Un(Hn, r)), e.cuid = (r) => e.check(fu(fd, r)), e.cuid2 = (r) => e.check(hu(hd, r)), e.ulid = (r) => e.check(gu(gd, r)), e.base64 = (r) => e.check(Eu(Ed, r)), e.base64url = (r) => e.check(Tu(Td, r)), e.xid = (r) => e.check(vu(vd, r)), e.ksuid = (r) => e.check(yu(yd, r)), e.ipv4 = (r) => e.check(_u(_d, r)), e.ipv6 = (r) => e.check(bu(bd, r)), e.cidrv4 = (r) => e.check(wu(wd, r)), e.cidrv6 = (r) => e.check(Iu(Id, r)), e.e164 = (r) => e.check(xu(xd, r)), e.datetime = (r) => e.check(Qu(r)), e.date = (r) => e.check(ed(r)), e.time = (r) => e.check(rd(r)), e.duration = (r) => e.check(od(r));
3568
3568
  });
3569
3569
  function S(e) {
3570
3570
  return au(ld, e);
3571
3571
  }
3572
- const q = /* @__PURE__ */ _("ZodStringFormat", (e, t) => {
3572
+ const Y = /* @__PURE__ */ _("ZodStringFormat", (e, t) => {
3573
3573
  G.init(e, t), Ia.init(e, t);
3574
3574
  }), ud = /* @__PURE__ */ _("ZodEmail", (e, t) => {
3575
- pl.init(e, t), q.init(e, t);
3575
+ pl.init(e, t), Y.init(e, t);
3576
3576
  }), Hn = /* @__PURE__ */ _("ZodGUID", (e, t) => {
3577
- ul.init(e, t), q.init(e, t);
3577
+ ul.init(e, t), Y.init(e, t);
3578
3578
  }), Zt = /* @__PURE__ */ _("ZodUUID", (e, t) => {
3579
- dl.init(e, t), q.init(e, t);
3579
+ dl.init(e, t), Y.init(e, t);
3580
3580
  }), dd = /* @__PURE__ */ _("ZodURL", (e, t) => {
3581
- ml.init(e, t), q.init(e, t);
3581
+ ml.init(e, t), Y.init(e, t);
3582
3582
  }), pd = /* @__PURE__ */ _("ZodEmoji", (e, t) => {
3583
- fl.init(e, t), q.init(e, t);
3583
+ fl.init(e, t), Y.init(e, t);
3584
3584
  }), md = /* @__PURE__ */ _("ZodNanoID", (e, t) => {
3585
- hl.init(e, t), q.init(e, t);
3585
+ hl.init(e, t), Y.init(e, t);
3586
3586
  }), fd = /* @__PURE__ */ _("ZodCUID", (e, t) => {
3587
- gl.init(e, t), q.init(e, t);
3587
+ gl.init(e, t), Y.init(e, t);
3588
3588
  }), hd = /* @__PURE__ */ _("ZodCUID2", (e, t) => {
3589
- vl.init(e, t), q.init(e, t);
3589
+ vl.init(e, t), Y.init(e, t);
3590
3590
  }), gd = /* @__PURE__ */ _("ZodULID", (e, t) => {
3591
- yl.init(e, t), q.init(e, t);
3591
+ yl.init(e, t), Y.init(e, t);
3592
3592
  }), vd = /* @__PURE__ */ _("ZodXID", (e, t) => {
3593
- _l.init(e, t), q.init(e, t);
3593
+ _l.init(e, t), Y.init(e, t);
3594
3594
  }), yd = /* @__PURE__ */ _("ZodKSUID", (e, t) => {
3595
- bl.init(e, t), q.init(e, t);
3595
+ bl.init(e, t), Y.init(e, t);
3596
3596
  }), _d = /* @__PURE__ */ _("ZodIPv4", (e, t) => {
3597
- xl.init(e, t), q.init(e, t);
3597
+ xl.init(e, t), Y.init(e, t);
3598
3598
  }), bd = /* @__PURE__ */ _("ZodIPv6", (e, t) => {
3599
- Sl.init(e, t), q.init(e, t);
3599
+ Sl.init(e, t), Y.init(e, t);
3600
3600
  }), wd = /* @__PURE__ */ _("ZodCIDRv4", (e, t) => {
3601
- kl.init(e, t), q.init(e, t);
3601
+ kl.init(e, t), Y.init(e, t);
3602
3602
  }), Id = /* @__PURE__ */ _("ZodCIDRv6", (e, t) => {
3603
- Cl.init(e, t), q.init(e, t);
3603
+ Cl.init(e, t), Y.init(e, t);
3604
3604
  }), Ed = /* @__PURE__ */ _("ZodBase64", (e, t) => {
3605
- Nl.init(e, t), q.init(e, t);
3605
+ Nl.init(e, t), Y.init(e, t);
3606
3606
  }), Td = /* @__PURE__ */ _("ZodBase64URL", (e, t) => {
3607
- Al.init(e, t), q.init(e, t);
3607
+ Al.init(e, t), Y.init(e, t);
3608
3608
  }), xd = /* @__PURE__ */ _("ZodE164", (e, t) => {
3609
- Ol.init(e, t), q.init(e, t);
3609
+ Ol.init(e, t), Y.init(e, t);
3610
3610
  }), Sd = /* @__PURE__ */ _("ZodJWT", (e, t) => {
3611
- $l.init(e, t), q.init(e, t);
3611
+ $l.init(e, t), Y.init(e, t);
3612
3612
  }), Ea = /* @__PURE__ */ _("ZodNumber", (e, t) => {
3613
3613
  ga.init(e, t), J.init(e, t), e.gt = (n, o) => e.check(jn(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(Bn(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(Gn(n)), e.safe = (n) => e.check(Gn(n)), e.positive = (n) => e.check(jn(0, n)), e.nonnegative = (n) => e.check(yr(0, n)), e.negative = (n) => e.check(Bn(0, n)), e.nonpositive = (n) => e.check(vr(0, n)), e.multipleOf = (n, o) => e.check(Vn(n, o)), e.step = (n, o) => e.check(Vn(n, o)), e.finite = () => e;
3614
3614
  const r = e._zod.bag;
@@ -3803,7 +3803,7 @@ function Jn(e) {
3803
3803
  });
3804
3804
  }
3805
3805
  const Fd = /* @__PURE__ */ _("ZodNullable", (e, t) => {
3806
- ql.init(e, t), J.init(e, t), e.unwrap = () => e._zod.def.innerType;
3806
+ Yl.init(e, t), J.init(e, t), e.unwrap = () => e._zod.def.innerType;
3807
3807
  });
3808
3808
  function Wn(e) {
3809
3809
  return new Fd({
@@ -3812,7 +3812,7 @@ function Wn(e) {
3812
3812
  });
3813
3813
  }
3814
3814
  const Hd = /* @__PURE__ */ _("ZodDefault", (e, t) => {
3815
- Yl.init(e, t), J.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3815
+ ql.init(e, t), J.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3816
3816
  });
3817
3817
  function Gd(e, t) {
3818
3818
  return new Hd({
@@ -3838,18 +3838,18 @@ function Wd(e, t) {
3838
3838
  const Ca = /* @__PURE__ */ _("ZodNonOptional", (e, t) => {
3839
3839
  Ql.init(e, t), J.init(e, t), e.unwrap = () => e._zod.def.innerType;
3840
3840
  });
3841
- function qd(e, t) {
3841
+ function Yd(e, t) {
3842
3842
  return new Ca({
3843
3843
  type: "nonoptional",
3844
3844
  innerType: e,
3845
3845
  ...T(t)
3846
3846
  });
3847
3847
  }
3848
- const Yd = /* @__PURE__ */ _("ZodCatch", (e, t) => {
3848
+ const qd = /* @__PURE__ */ _("ZodCatch", (e, t) => {
3849
3849
  Kl.init(e, t), J.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3850
3850
  });
3851
3851
  function Xd(e, t) {
3852
- return new Yd({
3852
+ return new qd({
3853
3853
  type: "catch",
3854
3854
  innerType: e,
3855
3855
  catchValue: typeof t == "function" ? t : () => t
@@ -3858,7 +3858,7 @@ function Xd(e, t) {
3858
3858
  const Qd = /* @__PURE__ */ _("ZodPipe", (e, t) => {
3859
3859
  eu.init(e, t), J.init(e, t), e.in = t.in, e.out = t.out;
3860
3860
  });
3861
- function qn(e, t) {
3861
+ function Yn(e, t) {
3862
3862
  return new Qd({
3863
3863
  type: "pipe",
3864
3864
  in: e,
@@ -3898,7 +3898,7 @@ function Na(e, t) {
3898
3898
  return Wu(Xr, e ?? (() => !0), t);
3899
3899
  }
3900
3900
  function op(e, t = {}) {
3901
- return qu(Xr, e, t);
3901
+ return Yu(Xr, e, t);
3902
3902
  }
3903
3903
  function ap(e) {
3904
3904
  const t = np((r) => (r.addIssue = (n) => {
@@ -3948,7 +3948,7 @@ var Nt = ({
3948
3948
  });
3949
3949
  return () => `${e}${n}${o()}`;
3950
3950
  }, sp = Nt();
3951
- function Yn(e = globalThis) {
3951
+ function qn(e = globalThis) {
3952
3952
  var t, r, n;
3953
3953
  return e.window ? "runtime/browser" : (t = e.navigator) != null && t.userAgent ? `runtime/${e.navigator.userAgent.toLowerCase()}` : (n = (r = e.process) == null ? void 0 : r.versions) != null && n.node ? `runtime/node.js/${e.process.version.substring(0)}` : e.EdgeRuntime ? "runtime/vercel-edge" : "runtime/unknown";
3954
3954
  }
@@ -4771,7 +4771,7 @@ function Wp(e, t) {
4771
4771
  };
4772
4772
  return e.minSize && (n.minItems = e.minSize.value), e.maxSize && (n.maxItems = e.maxSize.value), n;
4773
4773
  }
4774
- function qp(e, t) {
4774
+ function Yp(e, t) {
4775
4775
  return e.rest ? {
4776
4776
  type: "array",
4777
4777
  minItems: e.items.length,
@@ -4803,7 +4803,7 @@ function qp(e, t) {
4803
4803
  )
4804
4804
  };
4805
4805
  }
4806
- function Yp() {
4806
+ function qp() {
4807
4807
  return {
4808
4808
  not: de()
4809
4809
  };
@@ -4826,7 +4826,7 @@ var Qp = (e, t) => U(e.innerType._def, t), Kp = (e, t, r) => {
4826
4826
  case A.ZodDate:
4827
4827
  return Aa(e, r);
4828
4828
  case A.ZodUndefined:
4829
- return Yp();
4829
+ return qp();
4830
4830
  case A.ZodNull:
4831
4831
  return Zp();
4832
4832
  case A.ZodArray:
@@ -4837,7 +4837,7 @@ var Qp = (e, t) => U(e.innerType._def, t), Kp = (e, t, r) => {
4837
4837
  case A.ZodIntersection:
4838
4838
  return zp(e, r);
4839
4839
  case A.ZodTuple:
4840
- return qp(e, r);
4840
+ return Yp(e, r);
4841
4841
  case A.ZodRecord:
4842
4842
  return Ma(e, r);
4843
4843
  case A.ZodLiteral:
@@ -5012,7 +5012,7 @@ function sm(e, t) {
5012
5012
  const n = (r = void 0) != null ? r : !1;
5013
5013
  return Kr(
5014
5014
  // defer json schema creation to avoid unnecessary computation when only validation is needed
5015
- () => Yu(e, {
5015
+ () => qu(e, {
5016
5016
  target: "draft-7",
5017
5017
  io: "output",
5018
5018
  reused: n ? "ref" : "inline"
@@ -5098,34 +5098,34 @@ var ro = "5.0.86", Da = he([
5098
5098
  $r(S(), Tt),
5099
5099
  dt(Tt)
5100
5100
  ])
5101
- ), Y = $r(
5101
+ ), q = $r(
5102
5102
  S(),
5103
5103
  $r(S(), Tt)
5104
5104
  ), La = ne({
5105
5105
  type: M("text"),
5106
5106
  text: S(),
5107
- providerOptions: Y.optional()
5107
+ providerOptions: q.optional()
5108
5108
  }), fm = ne({
5109
5109
  type: M("image"),
5110
5110
  image: he([Da, rr(URL)]),
5111
5111
  mediaType: S().optional(),
5112
- providerOptions: Y.optional()
5112
+ providerOptions: q.optional()
5113
5113
  }), Ua = ne({
5114
5114
  type: M("file"),
5115
5115
  data: he([Da, rr(URL)]),
5116
5116
  filename: S().optional(),
5117
5117
  mediaType: S(),
5118
- providerOptions: Y.optional()
5118
+ providerOptions: q.optional()
5119
5119
  }), hm = ne({
5120
5120
  type: M("reasoning"),
5121
5121
  text: S(),
5122
- providerOptions: Y.optional()
5122
+ providerOptions: q.optional()
5123
5123
  }), gm = ne({
5124
5124
  type: M("tool-call"),
5125
5125
  toolCallId: S(),
5126
5126
  toolName: S(),
5127
5127
  input: Se(),
5128
- providerOptions: Y.optional(),
5128
+ providerOptions: q.optional(),
5129
5129
  providerExecuted: ie().optional()
5130
5130
  }), vm = Rd("type", [
5131
5131
  ne({
@@ -5165,12 +5165,12 @@ var ro = "5.0.86", Da = he([
5165
5165
  toolCallId: S(),
5166
5166
  toolName: S(),
5167
5167
  output: vm,
5168
- providerOptions: Y.optional()
5168
+ providerOptions: q.optional()
5169
5169
  }), ym = ne(
5170
5170
  {
5171
5171
  role: M("system"),
5172
5172
  content: S(),
5173
- providerOptions: Y.optional()
5173
+ providerOptions: q.optional()
5174
5174
  }
5175
5175
  ), _m = ne({
5176
5176
  role: M("user"),
@@ -5178,7 +5178,7 @@ var ro = "5.0.86", Da = he([
5178
5178
  S(),
5179
5179
  dt(he([La, fm, Ua]))
5180
5180
  ]),
5181
- providerOptions: Y.optional()
5181
+ providerOptions: q.optional()
5182
5182
  }), bm = ne({
5183
5183
  role: M("assistant"),
5184
5184
  content: he([
@@ -5193,11 +5193,11 @@ var ro = "5.0.86", Da = he([
5193
5193
  ])
5194
5194
  )
5195
5195
  ]),
5196
- providerOptions: Y.optional()
5196
+ providerOptions: q.optional()
5197
5197
  }), wm = ne({
5198
5198
  role: M("tool"),
5199
5199
  content: dt(Ba),
5200
- providerOptions: Y.optional()
5200
+ providerOptions: q.optional()
5201
5201
  });
5202
5202
  he([
5203
5203
  ym,
@@ -5215,18 +5215,18 @@ var Im = fp(
5215
5215
  W({
5216
5216
  type: M("text-start"),
5217
5217
  id: S(),
5218
- providerMetadata: Y.optional()
5218
+ providerMetadata: q.optional()
5219
5219
  }),
5220
5220
  W({
5221
5221
  type: M("text-delta"),
5222
5222
  id: S(),
5223
5223
  delta: S(),
5224
- providerMetadata: Y.optional()
5224
+ providerMetadata: q.optional()
5225
5225
  }),
5226
5226
  W({
5227
5227
  type: M("text-end"),
5228
5228
  id: S(),
5229
- providerMetadata: Y.optional()
5229
+ providerMetadata: q.optional()
5230
5230
  }),
5231
5231
  W({
5232
5232
  type: M("error"),
@@ -5250,7 +5250,7 @@ var Im = fp(
5250
5250
  toolName: S(),
5251
5251
  input: Se(),
5252
5252
  providerExecuted: ie().optional(),
5253
- providerMetadata: Y.optional(),
5253
+ providerMetadata: q.optional(),
5254
5254
  dynamic: ie().optional()
5255
5255
  }),
5256
5256
  W({
@@ -5259,7 +5259,7 @@ var Im = fp(
5259
5259
  toolName: S(),
5260
5260
  input: Se(),
5261
5261
  providerExecuted: ie().optional(),
5262
- providerMetadata: Y.optional(),
5262
+ providerMetadata: q.optional(),
5263
5263
  dynamic: ie().optional(),
5264
5264
  errorText: S()
5265
5265
  }),
@@ -5281,25 +5281,25 @@ var Im = fp(
5281
5281
  W({
5282
5282
  type: M("reasoning-start"),
5283
5283
  id: S(),
5284
- providerMetadata: Y.optional()
5284
+ providerMetadata: q.optional()
5285
5285
  }),
5286
5286
  W({
5287
5287
  type: M("reasoning-delta"),
5288
5288
  id: S(),
5289
5289
  delta: S(),
5290
- providerMetadata: Y.optional()
5290
+ providerMetadata: q.optional()
5291
5291
  }),
5292
5292
  W({
5293
5293
  type: M("reasoning-end"),
5294
5294
  id: S(),
5295
- providerMetadata: Y.optional()
5295
+ providerMetadata: q.optional()
5296
5296
  }),
5297
5297
  W({
5298
5298
  type: M("source-url"),
5299
5299
  sourceId: S(),
5300
5300
  url: S(),
5301
5301
  title: S().optional(),
5302
- providerMetadata: Y.optional()
5302
+ providerMetadata: q.optional()
5303
5303
  }),
5304
5304
  W({
5305
5305
  type: M("source-document"),
@@ -5307,13 +5307,13 @@ var Im = fp(
5307
5307
  mediaType: S(),
5308
5308
  title: S(),
5309
5309
  filename: S().optional(),
5310
- providerMetadata: Y.optional()
5310
+ providerMetadata: q.optional()
5311
5311
  }),
5312
5312
  W({
5313
5313
  type: M("file"),
5314
5314
  url: S(),
5315
5315
  mediaType: S(),
5316
- providerMetadata: Y.optional()
5316
+ providerMetadata: q.optional()
5317
5317
  }),
5318
5318
  W({
5319
5319
  type: Na(
@@ -6175,7 +6175,7 @@ var $m = class {
6175
6175
  ...g
6176
6176
  },
6177
6177
  `ai-sdk/${ro}`,
6178
- Yn()
6178
+ qn()
6179
6179
  ),
6180
6180
  body: JSON.stringify(f),
6181
6181
  credentials: p,
@@ -6206,7 +6206,7 @@ var $m = class {
6206
6206
  headers: Xn(
6207
6207
  h,
6208
6208
  `ai-sdk/${ro}`,
6209
- Yn()
6209
+ qn()
6210
6210
  ),
6211
6211
  credentials: g
6212
6212
  });
@@ -6511,7 +6511,7 @@ const Fa = async () => (Ir || (Ir = import(
6511
6511
  "./index.790ujKXR.js"
6512
6512
  )), Ir), Ha = async () => (Er || (Er = import(
6513
6513
  /* webpackChunkName: "toast-utilities" */
6514
- "./index.DrNijiOb.js"
6514
+ "./index.Czv_1MTM.js"
6515
6515
  ).then((e) => e.utilities)), Er), Um = async () => {
6516
6516
  try {
6517
6517
  await Promise.all([Fa(), Ha()]);
@@ -6533,7 +6533,7 @@ const Fa = async () => (Ir || (Ir = import(
6533
6533
  }, 100);
6534
6534
  } catch {
6535
6535
  }
6536
- }, xt = (e, t) => Ga(e, "success", t), Dh = (e, t) => Ga(e, "error", t), bt = "FOOTER_BOTTOM", ar = "FOOTER_TOP", Ft = "APP_SET_FOOTER_POSITION", Ja = "APP_SET_FOOTER_HEIGHT", Wa = "APP_SET_OLED_MODE", qa = "APP_SET_FULL_SCREEN", Bm = (e, t) => {
6536
+ }, xt = (e, t) => Ga(e, "success", t), Lh = (e, t) => Ga(e, "error", t), bt = "FOOTER_BOTTOM", ar = "FOOTER_TOP", Ft = "APP_SET_FOOTER_POSITION", Ja = "APP_SET_FOOTER_HEIGHT", Wa = "APP_SET_OLED_MODE", Ya = "APP_SET_FULL_SCREEN", Bm = (e, t) => {
6537
6537
  switch (t.type) {
6538
6538
  case Ft:
6539
6539
  return {
@@ -6551,7 +6551,7 @@ const Fa = async () => (Ir || (Ir = import(
6551
6551
  ...e,
6552
6552
  oledMode: t.payload.oledMode
6553
6553
  };
6554
- case qa:
6554
+ case Ya:
6555
6555
  return {
6556
6556
  ...e,
6557
6557
  fullScreen: t.payload.fullScreen
@@ -6559,9 +6559,9 @@ const Fa = async () => (Ir || (Ir = import(
6559
6559
  default:
6560
6560
  return e;
6561
6561
  }
6562
- }, Ke = "CHAT_SET_STATUS", Ya = "CHAT_SET_USAGE", lt = "CHAT_SET_ATTACHMENTS", tn = "CHAT_SET_PROVIDER", Fe = "CHAT_RESET", jm = (e, t) => {
6562
+ }, Ke = "CHAT_SET_STATUS", qa = "CHAT_SET_USAGE", lt = "CHAT_SET_ATTACHMENTS", tn = "CHAT_SET_PROVIDER", Fe = "CHAT_RESET", jm = (e, t) => {
6563
6563
  switch (t.type) {
6564
- case Ya:
6564
+ case qa:
6565
6565
  return {
6566
6566
  ...e,
6567
6567
  tokenUsage: e.tokenUsage + t.payload.tokenUsage
@@ -6677,7 +6677,7 @@ var Xa = (e, t, r) => {
6677
6677
  function Wm(e, t) {
6678
6678
  return t != null ? Jm(e, t) : e;
6679
6679
  }
6680
- var fe, Ht, Gt, gt, vt, yt, at, Dr, Lr, qm = class {
6680
+ var fe, Ht, Gt, gt, vt, yt, at, Dr, Lr, Ym = class {
6681
6681
  constructor(e = []) {
6682
6682
  xe(this, fe, void 0), xe(this, Ht, "ready"), xe(this, Gt, void 0), xe(this, gt, /* @__PURE__ */ new Set()), xe(this, vt, /* @__PURE__ */ new Set()), xe(this, yt, /* @__PURE__ */ new Set()), this.pushMessage = (t) => {
6683
6683
  De(this, fe, F(this, fe).concat(t)), F(this, at).call(this);
@@ -6737,12 +6737,12 @@ Dr = /* @__PURE__ */ new WeakMap();
6737
6737
  Lr = /* @__PURE__ */ new WeakMap();
6738
6738
  var st, io = class extends Pm {
6739
6739
  constructor({ messages: e, ...t }) {
6740
- const r = new qm(e);
6740
+ const r = new Ym(e);
6741
6741
  super({ ...t, state: r }), xe(this, st, void 0), this["~registerMessagesCallback"] = (n, o) => F(this, st)["~registerMessagesCallback"](n, o), this["~registerStatusCallback"] = (n) => F(this, st)["~registerStatusCallback"](n), this["~registerErrorCallback"] = (n) => F(this, st)["~registerErrorCallback"](n), De(this, st, r);
6742
6742
  }
6743
6743
  };
6744
6744
  st = /* @__PURE__ */ new WeakMap();
6745
- function Ym({
6745
+ function qm({
6746
6746
  experimental_throttle: e,
6747
6747
  resume: t = !1,
6748
6748
  ...r
@@ -6834,7 +6834,7 @@ function Xm({
6834
6834
  }, []), u = Z(async (m) => {
6835
6835
  for (const d of r.current.onToolCall)
6836
6836
  await d(m);
6837
- }, []), c = Ym({
6837
+ }, []), c = qm({
6838
6838
  id: t.id,
6839
6839
  messages: t.messages,
6840
6840
  transport: t.transport || new en({
@@ -7147,7 +7147,7 @@ const df = ({
7147
7147
  );
7148
7148
  function es(e, t) {
7149
7149
  O(() => {
7150
- if (qt() && typeof window < "u")
7150
+ if (Yt() && typeof window < "u")
7151
7151
  return window.__VERSINI_DIGGIDY_TAURI_EVENTS__ && (window.__VERSINI_DIGGIDY_TAURI_EVENTS__[e] = t), () => {
7152
7152
  window.__VERSINI_DIGGIDY_TAURI_EVENTS__ && (window.__VERSINI_DIGGIDY_TAURI_EVENTS__[e] = null);
7153
7153
  };
@@ -7183,13 +7183,13 @@ const pf = ({
7183
7183
  [
7184
7184
  "mod+N",
7185
7185
  () => {
7186
- qt() && p();
7186
+ Yt() && p();
7187
7187
  }
7188
7188
  ],
7189
7189
  [
7190
7190
  "mod+T",
7191
7191
  () => {
7192
- qt() && p();
7192
+ Yt() && p();
7193
7193
  }
7194
7194
  ]
7195
7195
  ],
@@ -7420,7 +7420,7 @@ try {
7420
7420
  });
7421
7421
  } catch {
7422
7422
  }
7423
- const we = "panel", qe = "messagebox", Ef = ({
7423
+ const we = "panel", Ye = "messagebox", Ef = ({
7424
7424
  className: e,
7425
7425
  kind: t,
7426
7426
  borderMode: r,
@@ -7447,13 +7447,13 @@ const we = "panel", qe = "messagebox", Ef = ({
7447
7447
  /**
7448
7448
  * Messagebox styles
7449
7449
  */
7450
- [`${mf} rounded-lg border-2`]: t === qe,
7451
- "w-[95%] sm:w-[50%] md:max-w-2xl": t === qe && !e,
7452
- "max-h-[20%]": t === qe && i === "small",
7453
- "max-h-[50%]": t === qe && i === "medium",
7454
- "max-h-[95%]": t === qe && i === "large",
7455
- "border-border-dark": r === "dark" && t === qe,
7456
- "border-border-accent": r === "light" && t === qe,
7450
+ [`${mf} rounded-lg border-2`]: t === Ye,
7451
+ "w-[95%] sm:w-[50%] md:max-w-2xl": t === Ye && !e,
7452
+ "max-h-[20%]": t === Ye && i === "small",
7453
+ "max-h-[50%]": t === Ye && i === "medium",
7454
+ "max-h-[95%]": t === Ye && i === "large",
7455
+ "border-border-dark": r === "dark" && t === Ye,
7456
+ "border-border-accent": r === "light" && t === Ye,
7457
7457
  [`${e}`]: !!e
7458
7458
  }),
7459
7459
  content: "flex flex-col py-2 sm:py-4 sm:px-4 px-2 overflow-y-auto",
@@ -7775,7 +7775,7 @@ const et = ({
7775
7775
  } = K(Te), [u, c] = P(!1), [m, d] = P(!1), [h, g] = P(!1), [f, p] = ke({
7776
7776
  key: Le + vs,
7777
7777
  initialValue: ""
7778
- }), y = sr(Yt.TOOL.MEMORIES), { data: I, isSuccess: b } = He({
7778
+ }), y = sr(qt.TOOL.MEMORIES), { data: I, isSuccess: b } = He({
7779
7779
  user: r?.username,
7780
7780
  getAccessToken: t
7781
7781
  }), w = (x) => {
@@ -8596,7 +8596,7 @@ const Bf = (e) => {
8596
8596
  )
8597
8597
  }
8598
8598
  );
8599
- }, Gf = [".pdf", ".txt"], Jf = [
8599
+ }, Gf = [".png", ".jpg", ".jpeg", ".webp"], Jf = [".pdf", ".txt"], Wf = [
8600
8600
  ".js",
8601
8601
  ".cjs",
8602
8602
  ".mjs",
@@ -8610,15 +8610,16 @@ const Bf = (e) => {
8610
8610
  ".html",
8611
8611
  ".json",
8612
8612
  ".md"
8613
- ], Ye = [
8614
- ...Gf,
8615
- ...Jf
8616
- ], jr = 400 * 1024, Wf = "text/plain", qf = () => z(
8613
+ ], qe = [
8614
+ ...Jf,
8615
+ ...Wf,
8616
+ ...Gf
8617
+ ], jr = 400 * 1024, Yf = "text/plain", qf = () => z(
8617
8618
  "relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
8618
- ), Yf = ({ oledMode: e }) => z({
8619
+ ), Xf = ({ oledMode: e }) => z({
8619
8620
  "bg-slate-900/95 dark:bg-slate-900": e,
8620
8621
  "bg-slate-900": !e
8621
- }), Xf = () => z("text-copy-lighter caret-copy-light"), Qf = ({ oledMode: e }) => z(
8622
+ }), Qf = () => z("text-copy-lighter caret-copy-light"), Kf = ({ oledMode: e }) => z(
8622
8623
  "has-[.av-prompt-editable:focus]:outline",
8623
8624
  "has-[.av-prompt-editable:focus]:outline-2",
8624
8625
  "has-[.av-prompt-editable:focus]:outline-offset-2",
@@ -8626,7 +8627,7 @@ const Bf = (e) => {
8626
8627
  "has-[.av-prompt-editable:focus]:outline-focus-light": !e,
8627
8628
  "dark:has-[.av-prompt-editable:focus]:outline-focus-light has-[.av-prompt-editable:focus]:outline-focus-dark": e
8628
8629
  }
8629
- ), Kf = ({ oledMode: e }) => z(
8630
+ ), eh = ({ oledMode: e }) => z(
8630
8631
  "peer",
8631
8632
  "text-base resize-none overflow-hidden w-full text-inherit outline-none",
8632
8633
  "h-6 pr-2 pl-3",
@@ -8634,20 +8635,20 @@ const Bf = (e) => {
8634
8635
  "placeholder:text-surface-light dark:placeholder:text-surface-medium": e,
8635
8636
  "placeholder:text-surface-medium": !e
8636
8637
  }
8637
- ), eh = ({
8638
+ ), th = ({
8638
8639
  className: e,
8639
8640
  oledMode: t
8640
8641
  }) => {
8641
8642
  const r = z(
8642
8643
  ws,
8643
8644
  qf(),
8644
- Yf({ oledMode: t }),
8645
- Xf(),
8646
- Qf({ oledMode: t }),
8645
+ Xf({ oledMode: t }),
8646
+ Qf(),
8647
+ Kf({ oledMode: t }),
8647
8648
  e
8648
8649
  ), n = z(
8649
8650
  Is,
8650
- Kf({ oledMode: t })
8651
+ eh({ oledMode: t })
8651
8652
  );
8652
8653
  return {
8653
8654
  wrapper: r,
@@ -8658,15 +8659,15 @@ const Bf = (e) => {
8658
8659
  return "0 Bytes";
8659
8660
  const t = 1024, r = ["Bytes", "KB", "MB", "GB"], n = Math.floor(Math.log(e) / Math.log(t));
8660
8661
  return parseFloat((e / Math.pow(t, n)).toFixed(2)) + " " + r[n];
8661
- }, rs = (e) => e.reduce((t, r) => t + r.size, 0), th = (e) => e.type ? e : new File(
8662
+ }, rs = (e) => e.reduce((t, r) => t + r.size, 0), rh = (e) => e.type ? e : new File(
8662
8663
  [e],
8663
8664
  // Use the original file content
8664
8665
  e.name,
8665
8666
  {
8666
- type: Wf,
8667
+ type: Yf,
8667
8668
  lastModified: e.lastModified
8668
8669
  }
8669
- ), rh = ({
8670
+ ), nh = ({
8670
8671
  files: e,
8671
8672
  clearFile: t
8672
8673
  }) => e && e.length > 0 && /* @__PURE__ */ E("div", { className: "px-4 py-2", children: [
@@ -8705,10 +8706,10 @@ const Bf = (e) => {
8705
8706
  " ",
8706
8707
  Wt(jr)
8707
8708
  ] })
8708
- ] }), ns = 24, nh = 500, os = 2, oh = 5, ah = ns * os, fo = oh * ns, sh = "ready", ih = "streaming", ch = "error", lh = "submitted", Ut = (e) => {
8709
- e.current && (e.current.style.height = `${ah}px`);
8710
- }, uh = () => {
8711
- const { user: e, getAccessToken: t } = ge(), r = sr(Yt.ADDON.ATTACHMENTS), n = sr(Yt.ADDON.REASONING), { allowedModels: o } = Vr(), [a, i] = P(null), [s, u] = P(!1), [c, m] = P(!1), {
8709
+ ] }), ns = 24, oh = 500, os = 2, ah = 5, sh = ns * os, fo = ah * ns, ih = "ready", ch = "streaming", lh = "error", uh = "submitted", Ut = (e) => {
8710
+ e.current && (e.current.style.height = `${sh}px`);
8711
+ }, dh = () => {
8712
+ const { user: e, getAccessToken: t } = ge(), r = sr(qt.ADDON.ATTACHMENTS), n = sr(qt.ADDON.REASONING), { allowedModels: o } = Vr(), [a, i] = P(null), [s, u] = P(!1), [c, m] = P(!1), {
8712
8713
  dispatch: d,
8713
8714
  state: {
8714
8715
  reasoning: h,
@@ -8731,7 +8732,7 @@ const Bf = (e) => {
8731
8732
  }), { data: k } = He({
8732
8733
  user: e?.username,
8733
8734
  getAccessToken: t
8734
- }), C = j(null), R = j(null), X = j(!1), le = j(0), Je = j(null), B = j(null), rt = Ts(), ue = eh({
8735
+ }), C = j(null), R = j(null), X = j(!1), le = j(0), Je = j(null), B = j(null), rt = Ts(), ue = th({
8735
8736
  oledMode: $,
8736
8737
  className: ""
8737
8738
  }), ae = n && k?.showReasoningButton, { setMessages: pt, status: nt, id: At, sendMessage: mt, input: ve, setInput: Ae } = Ge({
@@ -8739,7 +8740,7 @@ const Bf = (e) => {
8739
8740
  N();
8740
8741
  const ee = L.message?.metadata;
8741
8742
  ee?.tokenUsage && d({
8742
- type: Ya,
8743
+ type: qa,
8743
8744
  payload: {
8744
8745
  tokenUsage: ee.tokenUsage
8745
8746
  }
@@ -8787,25 +8788,25 @@ const Bf = (e) => {
8787
8788
  ]
8788
8789
  ), me = Z(
8789
8790
  async (L) => {
8790
- L === sh && d({
8791
+ L === ih && d({
8791
8792
  type: Ke,
8792
8793
  payload: {
8793
8794
  loading: !1,
8794
8795
  streaming: !1
8795
8796
  }
8796
- }), L === lh && d({
8797
+ }), L === uh && d({
8797
8798
  type: Ke,
8798
8799
  payload: {
8799
8800
  loading: !0,
8800
8801
  streaming: !1
8801
8802
  }
8802
- }), L === ih && d({
8803
+ }), L === ch && d({
8803
8804
  type: Ke,
8804
8805
  payload: {
8805
8806
  loading: !1,
8806
8807
  streaming: !0
8807
8808
  }
8808
- }), L === ch && setTimeout(() => {
8809
+ }), L === lh && setTimeout(() => {
8809
8810
  f || (d({
8810
8811
  type: Ke,
8811
8812
  payload: {
@@ -8845,7 +8846,7 @@ const Bf = (e) => {
8845
8846
  let We = !1;
8846
8847
  for (const ye of ee) {
8847
8848
  const pr = "." + ye.name.split(".").pop()?.toLowerCase();
8848
- Ye.includes(pr) ? Ze.some(
8849
+ qe.includes(pr) ? Ze.some(
8849
8850
  (mr) => mr.name === ye.name && mr.size === ye.size && mr.lastModified === ye.lastModified
8850
8851
  ) || Ze.push(ye) : We = !0;
8851
8852
  }
@@ -8856,7 +8857,7 @@ const Bf = (e) => {
8856
8857
  return;
8857
8858
  }
8858
8859
  if (We) {
8859
- const ye = Ye.length > 1 ? `${Ye.slice(0, -1).join(", ")} and ${Ye[Ye.length - 1]}` : Ye[0];
8860
+ const ye = qe.length > 1 ? `${qe.slice(0, -1).join(", ")} and ${qe[qe.length - 1]}` : qe[0];
8860
8861
  C.current = `Only ${ye} files are allowed.`, u(!0);
8861
8862
  return;
8862
8863
  }
@@ -8892,7 +8893,7 @@ const Bf = (e) => {
8892
8893
  let ee;
8893
8894
  if (a && a.length > 0) {
8894
8895
  const Ze = Array.from(a).map(
8895
- (Ot) => th(Ot)
8896
+ (Ot) => rh(Ot)
8896
8897
  ), We = new DataTransfer();
8897
8898
  Ze.forEach((Ot) => We.items.add(Ot)), ee = We.files;
8898
8899
  }
@@ -8934,7 +8935,7 @@ const Bf = (e) => {
8934
8935
  }
8935
8936
  p > 0 && p !== le.current ? (le.current = p, setTimeout(() => {
8936
8937
  B.current && (!ve && Ut(B), B.current.focus());
8937
- }, nh)) : g === !1 && !ve && (Ut(B), !Ue() && B.current && B.current.focus());
8938
+ }, oh)) : g === !1 && !ve && (Ut(B), !Ue() && B.current && B.current.focus());
8938
8939
  }, [p, g, ve]), O(() => {
8939
8940
  w.lastTriggeredTimestamp && setTimeout(() => {
8940
8941
  Re();
@@ -8986,12 +8987,12 @@ const Bf = (e) => {
8986
8987
  onChange: is,
8987
8988
  className: "hidden",
8988
8989
  multiple: !0,
8989
- accept: Ye.join(","),
8990
+ accept: qe.join(","),
8990
8991
  "aria-label": "Upload files"
8991
8992
  }
8992
8993
  )
8993
8994
  ] }),
8994
- /* @__PURE__ */ l(rh, { files: a, clearFile: ls }),
8995
+ /* @__PURE__ */ l(nh, { files: a, clearFile: ls }),
8995
8996
  /* @__PURE__ */ E("div", { className: "p-2 flex items-center", children: [
8996
8997
  /* @__PURE__ */ l(Hf, { className: "order-7 ml-auto" }),
8997
8998
  /* @__PURE__ */ l(
@@ -9036,7 +9037,7 @@ const Bf = (e) => {
9036
9037
  ] })
9037
9038
  ] }) })
9038
9039
  ] });
9039
- }, Bt = "--sassy-bottom", dh = ({ isComponent: e }) => {
9040
+ }, Bt = "--sassy-bottom", ph = ({ isComponent: e }) => {
9040
9041
  const {
9041
9042
  state: { loading: t, streaming: r, restoring: n }
9042
9043
  } = K(Te), {
@@ -9112,7 +9113,7 @@ const Bf = (e) => {
9112
9113
  ef
9113
9114
  ),
9114
9115
  children: /* @__PURE__ */ E("div", { className: Nr({ fullScreen: i }), children: [
9115
- /* @__PURE__ */ l(uh, {}),
9116
+ /* @__PURE__ */ l(dh, {}),
9116
9117
  /* @__PURE__ */ l(
9117
9118
  "div",
9118
9119
  {
@@ -9142,7 +9143,7 @@ const Bf = (e) => {
9142
9143
  label: "Google Gemini",
9143
9144
  icon: $i
9144
9145
  }
9145
- ], ph = ({ className: e }) => {
9146
+ ], mh = ({ className: e }) => {
9146
9147
  const {
9147
9148
  dispatch: t,
9148
9149
  state: { privateChat: r },
@@ -9286,75 +9287,75 @@ const Bf = (e) => {
9286
9287
  ),
9287
9288
  N && /* @__PURE__ */ l("span", { className: "text-xs text-surface-light font-medium select-none", children: N })
9288
9289
  ] }) : /* @__PURE__ */ l("div", { className: e, children: k });
9289
- }, mh = $e(
9290
+ }, fh = $e(
9290
9291
  () => import(
9291
9292
  /* webpackChunkName: "modal-chunk" */
9292
- "./ProfileEntry.B5p6jUni.js"
9293
+ "./ProfileEntry.Bb-kLfDX.js"
9293
9294
  ).then((e) => ({
9294
9295
  default: e.Profile
9295
9296
  }))
9296
- ), fh = $e(
9297
+ ), hh = $e(
9297
9298
  () => import(
9298
9299
  /* webpackChunkName: "modal-chunk" */
9299
- "./SettingsEntry.DRaXHqD7.js"
9300
+ "./SettingsEntry.DrmBVh-w.js"
9300
9301
  ).then((e) => ({
9301
9302
  default: e.SettingsPanel
9302
9303
  }))
9303
- ), hh = $e(
9304
+ ), gh = $e(
9304
9305
  () => import(
9305
9306
  /* webpackChunkName: "modal-chunk" */
9306
- "./HistoryEntry.ghac4Dvt.js"
9307
+ "./HistoryEntry.BSOPWYO2.js"
9307
9308
  ).then((e) => ({
9308
9309
  default: e.HistoryPanel
9309
9310
  }))
9310
- ), gh = $e(
9311
+ ), vh = $e(
9311
9312
  () => import(
9312
9313
  /* webpackChunkName: "modal-chunk" */
9313
- "./AboutEntry.CC4Geu98.js"
9314
+ "./AboutEntry.pKgicvGA.js"
9314
9315
  ).then((e) => ({ default: e.About }))
9315
- ), vh = $e(
9316
+ ), yh = $e(
9316
9317
  () => import(
9317
9318
  /* webpackChunkName: "modal-chunk" */
9318
- "./UsageEntry.v3rZzEkE.js"
9319
+ "./UsageEntry.O3YdUF30.js"
9319
9320
  ).then((e) => ({ default: e.Usage }))
9320
- ), yh = $e(
9321
+ ), _h = $e(
9321
9322
  () => import(
9322
9323
  /* webpackChunkName: "modal-chunk" */
9323
- "./UserMemoriesPanel.CxSpeQVc.js"
9324
+ "./UserMemoriesPanel.Dl5GlyBr.js"
9324
9325
  ).then(
9325
9326
  (e) => ({ default: e.default })
9326
9327
  )
9327
- ), _h = ({
9328
+ ), bh = ({
9328
9329
  open: e,
9329
9330
  onOpenChange: t
9330
9331
  }) => {
9331
9332
  const { user: r } = ge();
9332
9333
  return /* @__PURE__ */ l(
9333
- yh,
9334
+ _h,
9334
9335
  {
9335
9336
  open: e,
9336
9337
  onOpenChange: t,
9337
9338
  user: r?.username
9338
9339
  }
9339
9340
  );
9340
- }, bh = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ l(Xt, { fallback: /* @__PURE__ */ l("div", {}), children: (() => {
9341
+ }, wh = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ l(Xt, { fallback: /* @__PURE__ */ l("div", {}), children: (() => {
9341
9342
  switch (e) {
9342
9343
  case "profile":
9343
- return /* @__PURE__ */ l(mh, { open: t, onOpenChange: r });
9344
- case "settings":
9345
9344
  return /* @__PURE__ */ l(fh, { open: t, onOpenChange: r });
9346
- case "history":
9345
+ case "settings":
9347
9346
  return /* @__PURE__ */ l(hh, { open: t, onOpenChange: r });
9348
- case "about":
9347
+ case "history":
9349
9348
  return /* @__PURE__ */ l(gh, { open: t, onOpenChange: r });
9350
- case "usage":
9349
+ case "about":
9351
9350
  return /* @__PURE__ */ l(vh, { open: t, onOpenChange: r });
9351
+ case "usage":
9352
+ return /* @__PURE__ */ l(yh, { open: t, onOpenChange: r });
9352
9353
  case "memories":
9353
- return /* @__PURE__ */ l(_h, { open: t, onOpenChange: r });
9354
+ return /* @__PURE__ */ l(bh, { open: t, onOpenChange: r });
9354
9355
  default:
9355
9356
  return null;
9356
9357
  }
9357
- })() }) : null, wh = ({
9358
+ })() }) : null, Ih = ({
9358
9359
  isComponent: e = !1
9359
9360
  }) => {
9360
9361
  const {
@@ -9362,7 +9363,7 @@ const Bf = (e) => {
9362
9363
  } = K(zt), { logout: r, getAccessToken: n, user: o } = ge(), a = Ps(), { data: i, isSuccess: s } = He({
9363
9364
  user: o?.username,
9364
9365
  getAccessToken: n
9365
- }), [u, c] = P(null), [m, d] = P(!1), [h, g] = P(!1), [f, p] = P(!1), y = sr(Yt.TOOL.MEMORIES);
9366
+ }), [u, c] = P(null), [m, d] = P(!1), [h, g] = P(!1), [f, p] = P(!1), y = sr(qt.TOOL.MEMORIES);
9366
9367
  O(() => {
9367
9368
  s && i && y && p(i?.useMemory ?? !1);
9368
9369
  }, [s, i, y]);
@@ -9370,23 +9371,23 @@ const Bf = (e) => {
9370
9371
  h || Promise.all([
9371
9372
  import(
9372
9373
  /* webpackChunkName: "modal-chunk" */
9373
- "./ProfileEntry.B5p6jUni.js"
9374
+ "./ProfileEntry.Bb-kLfDX.js"
9374
9375
  ),
9375
9376
  import(
9376
9377
  /* webpackChunkName: "modal-chunk" */
9377
- "./SettingsEntry.DRaXHqD7.js"
9378
+ "./SettingsEntry.DrmBVh-w.js"
9378
9379
  ),
9379
9380
  import(
9380
9381
  /* webpackChunkName: "modal-chunk" */
9381
- "./HistoryEntry.ghac4Dvt.js"
9382
+ "./HistoryEntry.BSOPWYO2.js"
9382
9383
  ),
9383
9384
  import(
9384
9385
  /* webpackChunkName: "modal-chunk" */
9385
- "./AboutEntry.CC4Geu98.js"
9386
+ "./AboutEntry.pKgicvGA.js"
9386
9387
  ),
9387
9388
  import(
9388
9389
  /* webpackChunkName: "modal-chunk" */
9389
- "./UsageEntry.v3rZzEkE.js"
9390
+ "./UsageEntry.O3YdUF30.js"
9390
9391
  )
9391
9392
  ]).finally(() => g(!0));
9392
9393
  }, [h]), b = Z((N) => {
@@ -9407,7 +9408,7 @@ const Bf = (e) => {
9407
9408
  [
9408
9409
  "mod+,",
9409
9410
  () => {
9410
- qt() && b("settings");
9411
+ Yt() && b("settings");
9411
9412
  }
9412
9413
  ]
9413
9414
  ],
@@ -9433,7 +9434,7 @@ const Bf = (e) => {
9433
9434
  }
9434
9435
  ),
9435
9436
  /* @__PURE__ */ l(
9436
- bh,
9437
+ wh,
9437
9438
  {
9438
9439
  type: u,
9439
9440
  open: u !== null,
@@ -9455,7 +9456,7 @@ const Bf = (e) => {
9455
9456
  rowGap: 0,
9456
9457
  columnGap: 0,
9457
9458
  children: [
9458
- /* @__PURE__ */ l(it, { children: /* @__PURE__ */ l(ph, { className: "mr-2" }) }),
9459
+ /* @__PURE__ */ l(it, { children: /* @__PURE__ */ l(mh, { className: "mr-2" }) }),
9459
9460
  /* @__PURE__ */ l(it, { children: /* @__PURE__ */ l(
9460
9461
  Pe,
9461
9462
  {
@@ -9550,7 +9551,7 @@ const Bf = (e) => {
9550
9551
  }
9551
9552
  )
9552
9553
  ] });
9553
- }, Ih = ({
9554
+ }, Eh = ({
9554
9555
  show: e,
9555
9556
  bottom: t,
9556
9557
  onClick: r,
@@ -9642,21 +9643,21 @@ try {
9642
9643
  });
9643
9644
  } catch {
9644
9645
  }
9645
- const Eh = $e(
9646
- () => import("./index.CyFKAjrJ.js").then((e) => ({ default: e.Bubble }))
9647
- ), on = (e) => /* @__PURE__ */ l(Xt, { fallback: /* @__PURE__ */ l("span", { className: "inline-block" }), children: /* @__PURE__ */ l(Eh, { ...e }) });
9646
+ const Th = $e(
9647
+ () => import("./index.icjUE8II.js").then((e) => ({ default: e.Bubble }))
9648
+ ), on = (e) => /* @__PURE__ */ l(Xt, { fallback: /* @__PURE__ */ l("span", { className: "inline-block" }), children: /* @__PURE__ */ l(Th, { ...e }) });
9648
9649
  on.displayName = "AsyncBubble";
9649
- const go = 1, Th = 150, xh = $e(
9650
+ const go = 1, xh = 150, Sh = $e(
9650
9651
  () => import(
9651
9652
  /* webpackChunkName: "LazyMessageAssistant" */
9652
- "./ChatBubbleAssistant.e2Qi5r3T.js"
9653
+ "./ChatBubbleAssistant.K55U7Bno.js"
9653
9654
  )
9654
- ), Sh = $e(
9655
+ ), kh = $e(
9655
9656
  () => import(
9656
9657
  /* webpackChunkName: "LazyMessageUser" */
9657
- "./ChatBubbleUser.DP1w-8LC.js"
9658
+ "./ChatBubbleUser.DsX56Kxx.js"
9658
9659
  )
9659
- ), kh = ut.memo(
9660
+ ), Ch = ut.memo(
9660
9661
  ({
9661
9662
  role: e,
9662
9663
  content: t,
@@ -9670,7 +9671,7 @@ const go = 1, Th = 150, xh = $e(
9670
9671
  );
9671
9672
  return O(() => {
9672
9673
  if (o && i && t && t.trim().length >= go) {
9673
- const d = Date.now() - u.current, h = Th - d;
9674
+ const d = Date.now() - u.current, h = xh - d;
9674
9675
  if (h > 0) {
9675
9676
  const g = setTimeout(
9676
9677
  () => s(!1),
@@ -9680,8 +9681,8 @@ const go = 1, Th = 150, xh = $e(
9680
9681
  }
9681
9682
  s(!1);
9682
9683
  }
9683
- }, [t, i, o]), e === xo && t ? /* @__PURE__ */ l(Xt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(Sh, { content: t }) }) : (e === wt || e === yn) && o && (a === "submitted" || a === "streaming") && i ? /* @__PURE__ */ l(on, { tail: !0, children: /* @__PURE__ */ l(as, { type: "dots" }) }) : (e === wt || e === yn) && t && t.trim().length >= go ? /* @__PURE__ */ l(Xt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(
9684
- xh,
9684
+ }, [t, i, o]), e === xo && t ? /* @__PURE__ */ l(Xt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(kh, { content: t }) }) : (e === wt || e === yn) && o && (a === "submitted" || a === "streaming") && i ? /* @__PURE__ */ l(on, { tail: !0, children: /* @__PURE__ */ l(as, { type: "dots" }) }) : (e === wt || e === yn) && t && t.trim().length >= go ? /* @__PURE__ */ l(Xt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(
9685
+ Sh,
9685
9686
  {
9686
9687
  role: e,
9687
9688
  content: t,
@@ -9692,7 +9693,7 @@ const go = 1, Th = 150, xh = $e(
9692
9693
  }
9693
9694
  ) }) : null;
9694
9695
  }
9695
- ), Ch = (e) => {
9696
+ ), Nh = (e) => {
9696
9697
  if (e.parts && Array.isArray(e.parts)) {
9697
9698
  const t = e.parts.filter((r) => r.type === "text").map((r) => r.text).filter(Boolean);
9698
9699
  return t.length > 0 ? t.join(`
@@ -9701,7 +9702,7 @@ const go = 1, Th = 150, xh = $e(
9701
9702
  if ("content" in e && typeof e.content == "string")
9702
9703
  return e.content;
9703
9704
  };
9704
- function Nh(e) {
9705
+ function zh(e) {
9705
9706
  const t = e.metadata;
9706
9707
  if (t?.model)
9707
9708
  return { model: String(t.model) };
@@ -9715,14 +9716,14 @@ function Nh(e) {
9715
9716
  }
9716
9717
  }
9717
9718
  }
9718
- const zh = () => {
9719
+ const Ah = () => {
9719
9720
  const { messages: e, status: t } = Ge(), r = e ? e.map((a, i) => a.role === wt ? i : -1).filter((a) => a !== -1).pop() : -1, n = e && e.length > 0 ? e[e.length - 1] : null, o = (t === "submitted" || t === "streaming") && n?.role === xo;
9720
9721
  return e && e.length > 0 ? /* @__PURE__ */ E("div", { className: "space-y-6 mt-2 @container", children: [
9721
9722
  e?.map((a, i) => {
9722
9723
  let s;
9723
- const u = `${i}-${a.role}`, c = Ch(a), m = Nh(a), d = a.role === wt && i === r;
9724
+ const u = `${i}-${a.role}`, c = Nh(a), m = zh(a), d = a.role === wt && i === r;
9724
9725
  return /* @__PURE__ */ l(
9725
- kh,
9726
+ Ch,
9726
9727
  {
9727
9728
  role: a.role,
9728
9729
  content: c,
@@ -9736,7 +9737,7 @@ const zh = () => {
9736
9737
  }),
9737
9738
  o && /* @__PURE__ */ l(on, { tail: !0, children: /* @__PURE__ */ l(as, { type: "dots" }) })
9738
9739
  ] }) : null;
9739
- }, Ah = () => {
9740
+ }, Oh = () => {
9740
9741
  const { isAuthenticated: e } = ge(), { ref: t, inViewport: r } = _i(), n = j(null), o = j(null), {
9741
9742
  state: { footerPosition: a, footerHeight: i, footerOffset: s, oledMode: u }
9742
9743
  } = K(zt), {
@@ -9766,7 +9767,7 @@ const zh = () => {
9766
9767
  oledMode: u
9767
9768
  }
9768
9769
  ),
9769
- /* @__PURE__ */ l(zh, {}),
9770
+ /* @__PURE__ */ l(Ah, {}),
9770
9771
  /* @__PURE__ */ l("div", { ref: t, className: "scroll-marker" }),
9771
9772
  /* @__PURE__ */ l(
9772
9773
  "div",
@@ -9779,7 +9780,7 @@ const zh = () => {
9779
9780
  )
9780
9781
  ] }),
9781
9782
  /* @__PURE__ */ l(
9782
- Ih,
9783
+ Eh,
9783
9784
  {
9784
9785
  show: !r && a === bt,
9785
9786
  bottom: d.current,
@@ -9802,7 +9803,7 @@ function ss({
9802
9803
  key: Le + Ws,
9803
9804
  initialValue: ct.DESC
9804
9805
  }), [p] = ke({
9805
- key: Le + qs,
9806
+ key: Le + Ys,
9806
9807
  initialValue: ct.ASC
9807
9808
  }), [y] = ke({
9808
9809
  key: Gs,
@@ -9875,7 +9876,7 @@ function ss({
9875
9876
  });
9876
9877
  }, [y]), O(() => {
9877
9878
  v({
9878
- type: qa,
9879
+ type: Ya,
9879
9880
  payload: { fullScreen: I }
9880
9881
  });
9881
9882
  }, [I]), O(() => {
@@ -9888,7 +9889,7 @@ function ss({
9888
9889
  }, [B]), O(() => {
9889
9890
  try {
9890
9891
  const ue = sessionStorage.getItem("sw-toggle-pending");
9891
- ue && (ue === "enabled" ? xt(Ys, { containerId: "toggle-save" }) : ue === "disabled" && xt(Xs, {
9892
+ ue && (ue === "enabled" ? xt(qs, { containerId: "toggle-save" }) : ue === "disabled" && xt(Xs, {
9892
9893
  containerId: "toggle-save"
9893
9894
  }), sessionStorage.removeItem("sw-toggle-pending"));
9894
9895
  } catch {
@@ -9949,7 +9950,7 @@ function ss({
9949
9950
  extraClass: x,
9950
9951
  fullScreen: I
9951
9952
  }),
9952
- children: /* @__PURE__ */ l(wh, { isComponent: e })
9953
+ children: /* @__PURE__ */ l(Ih, { isComponent: e })
9953
9954
  }
9954
9955
  ),
9955
9956
  /* @__PURE__ */ l(
@@ -9959,10 +9960,10 @@ function ss({
9959
9960
  style: {
9960
9961
  height: o
9961
9962
  },
9962
- children: /* @__PURE__ */ l(Ah, {})
9963
+ children: /* @__PURE__ */ l(Oh, {})
9963
9964
  }
9964
9965
  ),
9965
- /* @__PURE__ */ l(dh, { isComponent: e })
9966
+ /* @__PURE__ */ l(ph, { isComponent: e })
9966
9967
  ]
9967
9968
  }
9968
9969
  )
@@ -9974,14 +9975,14 @@ function ss({
9974
9975
  );
9975
9976
  }
9976
9977
  ss.displayName = "App";
9977
- const Lh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: ss }, Symbol.toStringTag, { value: "Module" }));
9978
+ const Uh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: ss }, Symbol.toStringTag, { value: "Module" }));
9978
9979
  export {
9979
- qa as APP_SET_FULL_SCREEN,
9980
+ Ya as APP_SET_FULL_SCREEN,
9980
9981
  Wa as APP_SET_OLED_MODE,
9981
- Lh as App,
9982
+ Uh as App,
9982
9983
  zt as AppContext,
9983
9984
  on as AsyncBubble,
9984
- Ih as ButtonScroll,
9985
+ Eh as ButtonScroll,
9985
9986
  tn as CHAT_SET_PROVIDER,
9986
9987
  Ke as CHAT_SET_STATUS,
9987
9988
  Te as ChatContext,
@@ -9997,7 +9998,7 @@ export {
9997
9998
  $i as p$1,
9998
9999
  xi as p$2,
9999
10000
  Um as preloadToast,
10000
- Dh as showErrorToast,
10001
+ Lh as showErrorToast,
10001
10002
  xt as showSuccessToast,
10002
10003
  Pe as st,
10003
10004
  Ge as useAiChat,