@versini/sassysaint 8.69.0 → 8.70.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 (27) hide show
  1. package/dist/chunks/{AboutChangelog.C1qlLGOL.js → AboutChangelog._T5Lr2_6.js} +2 -2
  2. package/dist/chunks/{AboutEntry.MVgAFIQi.js → AboutEntry.DJ0OUM4_.js} +7 -7
  3. package/dist/chunks/{App.DnIeRbwI.js → App.CcqDGZun.js} +264 -261
  4. package/dist/chunks/{Chart.D4LA295Y.js → Chart.Dm81lz3L.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.B9uKu0Zq.js → ChatBubbleAssistant.D4Ru1U9N.js} +4 -4
  6. package/dist/chunks/{ChatBubbleUser.DBArpWQj.js → ChatBubbleUser.CvpUTP0y.js} +3 -3
  7. package/dist/chunks/{ChatHistoryTable.DpDPvpwx.js → ChatHistoryTable.CDC3cvyT.js} +3 -3
  8. package/dist/chunks/{HistoryEntry.DyYYZjb-.js → HistoryEntry.C_3ek905.js} +3 -3
  9. package/dist/chunks/{ProfileEntry.BkfA5ilN.js → ProfileEntry.BcL78DD5.js} +2 -2
  10. package/dist/chunks/SettingsEntry.F8OD9jcf.js +444 -0
  11. package/dist/chunks/{Table.BSsGkgB1.js → Table.DvDzjCKJ.js} +2 -2
  12. package/dist/chunks/{UsageEntry.DA9Z1z3A.js → UsageEntry.BJMW3Rxc.js} +3 -3
  13. package/dist/chunks/UserMemoriesPanel.BByjrVlZ.js +347 -0
  14. package/dist/chunks/{index.DH2l4xnG.js → index.5sFEsLHg.js} +1 -1
  15. package/dist/chunks/{index.B3XB6cTq.js → index.B-4Q-F7F.js} +2 -2
  16. package/dist/chunks/{index.CaDLl4vX.js → index.BE-5S88E.js} +1 -1
  17. package/dist/chunks/{index.DXaLvF3n.js → index.ByjDYmg9.js} +487 -455
  18. package/dist/chunks/{index.BtXviUD3.js → index.CRvAVi49.js} +3 -3
  19. package/dist/chunks/index.CpmMOFcw.js +357 -0
  20. package/dist/chunks/{index.CKRmoShZ.js → index.DAjlwxaV.js} +1 -1
  21. package/dist/chunks/{index.Dta1BrG6.js → index.DZlzg3MC.js} +1 -1
  22. package/dist/chunks/{useMarkdown.BAKJP0y9.js → useMarkdown.4pam55Dz.js} +6 -6
  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/SettingsEntry.CfM4w4sE.js +0 -794
  27. package/dist/chunks/UserMemoriesPanel.BI0GoJUN.js +0 -208
@@ -1,5 +1,5 @@
1
1
  import { jsx as l, jsxs as T, Fragment as Oe } from "react/jsx-runtime";
2
- import { I as H, ACTION_SORT as ws, ACTION_SEARCH as Is, ACTION_RESET_PROMPT as To, ACTION_TOGGLE_PROMPT as So, LOCAL_STORAGE_PREFIX as Le, LOCAL_STORAGE_CHAT_ID as xo, n as ve, isDev as Es, isPWAMode as ko, mutateCall as Co, SERVICE_TYPES as No, B as Ts, te as Se, DEFAULT_ICON_ACTION_SIZE as Ae, isTauri as Xt, useUserPreferences as Je, isProbablyiPhone as Ue, serverUrl as zo, useEntitlements as Jr, L as zr, j as it, C as hn, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Ss, nt as Kt, LOCAL_STORAGE_REASONING_DISCLOSURE as xs, useChatsHistory as Ao, TOAST_CHAT_SAVED as ks, PROMPT_CLASSNAME as Cs, PROMPT_EDITABLE_AREA_CLASSNAME as Ns, i as zs, Et as Oo, ERROR_MESSAGE as As, E as bt, CLIPBOARD_PROMPT as fn, INPUT_PLACEHOLDER_TEXT_MOBILE as gn, INPUT_PLACEHOLDER_TEXT_ENTER as vn, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as yn, isProbablyMobile as Ar, K as Os, FOOTER_DISCLAIMERS as _n, h as $o, isProbablyiPad as $s, INPUT_BOTTOM_OFFSET_EXTRA as bn, INPUT_BOTTOM_OFFSET_IPHONE as Ms, INPUT_BOTTOM_OFFSET_IPAD as Rs, INPUT_BOTTOM_OFFSET as Mo, getLayoutPaddingClass as Or, canEvaluateModels as wn, st as Ps, r as Zs, O as Ds, c as Ls, H as Bs, x as vr, setNewProvider as In, TOAST_PROVIDER_CHANGED as En, LOG_OUT as Tn, e as Ro, Y as Sn, useServerCapabilities as Us, getMessageContaintWrapperClass as js, UI_FOOTER_BUFFER as Po, UI_BUTTON_SCROLL_BUFFER as Vs, Logo as Fs, UI_DEFAULT_MAIN_HEIGHT as xn, UI_DEFAULT_MAIN_HEIGHT_IPHONE as Hs, APP_CLASSNAME as Js, Z as kn, J as Gs, LOCAL_STORAGE_SORT as Ws, LOCAL_STORAGE_SEARCH as Ys, LOCAL_STORAGE_SORT_TIMESTAMP as qs, LOCAL_STORAGE_SORT_TOKEN_USAGE as Xs, TOAST_CACHE_ENABLED as Ks, TOAST_CACHE_DISABLED as Qs } from "./index.DXaLvF3n.js";
2
+ import { I as H, ACTION_SORT as ws, ACTION_SEARCH as Is, ACTION_RESET_PROMPT as To, ACTION_TOGGLE_PROMPT as So, LOCAL_STORAGE_PREFIX as Le, LOCAL_STORAGE_CHAT_ID as xo, n as ve, isDev as Es, isPWAMode as ko, mutateCall as Co, SERVICE_TYPES as No, B as Ts, te as Se, DEFAULT_ICON_ACTION_SIZE as Ae, isTauri as Xt, useUserPreferences as Je, isProbablyiPhone as Ue, serverUrl as zo, useEntitlements as Jr, L as zr, j as it, C as hn, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Ss, nt as Kt, LOCAL_STORAGE_REASONING_DISCLOSURE as xs, useChatsHistory as Ao, TOAST_CHAT_SAVED as ks, PROMPT_CLASSNAME as Cs, PROMPT_EDITABLE_AREA_CLASSNAME as Ns, i as zs, Et as Oo, ERROR_MESSAGE as As, E as bt, CLIPBOARD_PROMPT as fn, INPUT_PLACEHOLDER_TEXT_MOBILE as gn, INPUT_PLACEHOLDER_TEXT_ENTER as vn, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as yn, isProbablyMobile as Ar, K as Os, FOOTER_DISCLAIMERS as _n, h as $o, isProbablyiPad as $s, INPUT_BOTTOM_OFFSET_EXTRA as bn, INPUT_BOTTOM_OFFSET_IPHONE as Ms, INPUT_BOTTOM_OFFSET_IPAD as Rs, INPUT_BOTTOM_OFFSET as Mo, getLayoutPaddingClass as Or, canEvaluateModels as wn, st as Ps, r as Zs, O as Ds, c as Ls, H as Bs, x as vr, setNewProvider as In, TOAST_PROVIDER_CHANGED as En, LOG_OUT as Tn, e as Ro, Y as Sn, useServerCapabilities as Us, getMessageContaintWrapperClass as js, UI_FOOTER_BUFFER as Po, UI_BUTTON_SCROLL_BUFFER as Vs, Logo as Fs, UI_DEFAULT_MAIN_HEIGHT as xn, UI_DEFAULT_MAIN_HEIGHT_IPHONE as Hs, APP_CLASSNAME as Js, Z as kn, J as Gs, LOCAL_STORAGE_SORT as Ws, LOCAL_STORAGE_SEARCH as Ys, LOCAL_STORAGE_SORT_TIMESTAMP as qs, LOCAL_STORAGE_SORT_TOKEN_USAGE as Xs, TOAST_CACHE_ENABLED as Ks, TOAST_CACHE_DISABLED as Qs } from "./index.ByjDYmg9.js";
3
3
  import * as ie from "react";
4
4
  import dt, { useRef as U, useEffect as $, useCallback as L, useState as R, useSyncExternalStore as Ft, createContext as ei, useContext as ne, useId as Zo, forwardRef as Do, useMemo as ze, Suspense as Qt, lazy as Me, useReducer as Rt, useLayoutEffect as ti } from "react";
5
5
  import A from "clsx";
@@ -105,7 +105,7 @@ function gi(e) {
105
105
  };
106
106
  }
107
107
  function vi(e, t) {
108
- const { alt: r, ctrl: n, meta: o, mod: a, shift: i, key: s } = e, { altKey: u, ctrlKey: c, metaKey: p, shiftKey: d, key: f } = t;
108
+ const { alt: r, ctrl: n, meta: o, mod: a, shift: i, key: s } = e, { altKey: u, ctrlKey: c, metaKey: p, shiftKey: d, key: g } = t;
109
109
  if (r !== u)
110
110
  return !1;
111
111
  if (a) {
@@ -113,7 +113,7 @@ function vi(e, t) {
113
113
  return !1;
114
114
  } else if (n !== c || o !== p)
115
115
  return !1;
116
- return i !== d ? !1 : !!(s && (f.toLowerCase() === s.toLowerCase() || t.code.replace("Key", "").toLowerCase() === s.toLowerCase()));
116
+ return i !== d ? !1 : !!(s && (g.toLowerCase() === s.toLowerCase() || t.code.replace("Key", "").toLowerCase() === s.toLowerCase()));
117
117
  }
118
118
  function qo(e) {
119
119
  return (t) => vi(gi(e), t);
@@ -928,7 +928,7 @@ function nc(e) {
928
928
  }
929
929
  function d(m) {
930
930
  if (m === "") {
931
- g();
931
+ f();
932
932
  return;
933
933
  }
934
934
  if (m.startsWith(":")) {
@@ -938,12 +938,12 @@ function nc(e) {
938
938
  const v = m.indexOf(":");
939
939
  if (v !== -1) {
940
940
  const I = m.slice(0, v), b = m[v + 1] === " " ? 2 : 1, w = m.slice(v + b);
941
- f(I, w, m);
941
+ g(I, w, m);
942
942
  return;
943
943
  }
944
- f(m, "", m);
944
+ g(m, "", m);
945
945
  }
946
- function f(m, v, I) {
946
+ function g(m, v, I) {
947
947
  switch (m) {
948
948
  case "event":
949
949
  c = v;
@@ -974,7 +974,7 @@ function nc(e) {
974
974
  break;
975
975
  }
976
976
  }
977
- function g() {
977
+ function f() {
978
978
  u.length > 0 && t({
979
979
  id: s,
980
980
  event: c || void 0,
@@ -1729,12 +1729,12 @@ const dl = {
1729
1729
  continue;
1730
1730
  } else if (u)
1731
1731
  continue;
1732
- const d = a.issues.length, f = p._zod.check(a);
1733
- if (f instanceof Promise && s?.async === !1)
1732
+ const d = a.issues.length, g = p._zod.check(a);
1733
+ if (g instanceof Promise && s?.async === !1)
1734
1734
  throw new wt();
1735
- if (c || f instanceof Promise)
1735
+ if (c || g instanceof Promise)
1736
1736
  c = (c ?? Promise.resolve()).then(async () => {
1737
- await f, a.issues.length !== d && (u || (u = yt(a, d)));
1737
+ await g, a.issues.length !== d && (u || (u = yt(a, d)));
1738
1738
  });
1739
1739
  else {
1740
1740
  if (a.issues.length === d)
@@ -2065,47 +2065,47 @@ const Vl = /* @__PURE__ */ _("$ZodObject", (e, t) => {
2065
2065
  j.init(e, t);
2066
2066
  const r = Yr(() => {
2067
2067
  const d = Object.keys(t.shape);
2068
- for (const g of d)
2069
- if (!(t.shape[g] instanceof j))
2070
- throw new Error(`Invalid element at key "${g}": expected a Zod schema`);
2071
- const f = uc(t.shape);
2068
+ for (const f of d)
2069
+ if (!(t.shape[f] instanceof j))
2070
+ throw new Error(`Invalid element at key "${f}": expected a Zod schema`);
2071
+ const g = uc(t.shape);
2072
2072
  return {
2073
2073
  shape: t.shape,
2074
2074
  keys: d,
2075
2075
  keySet: new Set(d),
2076
2076
  numKeys: d.length,
2077
- optionalKeys: new Set(f)
2077
+ optionalKeys: new Set(g)
2078
2078
  };
2079
2079
  });
2080
2080
  Z(e._zod, "propValues", () => {
2081
- const d = t.shape, f = {};
2082
- for (const g in d) {
2083
- const h = d[g]._zod;
2081
+ const d = t.shape, g = {};
2082
+ for (const f in d) {
2083
+ const h = d[f]._zod;
2084
2084
  if (h.values) {
2085
- f[g] ?? (f[g] = /* @__PURE__ */ new Set());
2085
+ g[f] ?? (g[f] = /* @__PURE__ */ new Set());
2086
2086
  for (const m of h.values)
2087
- f[g].add(m);
2087
+ g[f].add(m);
2088
2088
  }
2089
2089
  }
2090
- return f;
2090
+ return g;
2091
2091
  });
2092
2092
  const n = (d) => {
2093
- const f = new ul(["shape", "payload", "ctx"]), g = r.value, h = (b) => {
2093
+ const g = new ul(["shape", "payload", "ctx"]), f = r.value, h = (b) => {
2094
2094
  const w = mt(b);
2095
2095
  return `shape[${w}]._zod.run({ value: input[${w}], issues: [] }, ctx)`;
2096
2096
  };
2097
- f.write("const input = payload.value;");
2097
+ g.write("const input = payload.value;");
2098
2098
  const m = /* @__PURE__ */ Object.create(null);
2099
2099
  let v = 0;
2100
- for (const b of g.keys)
2100
+ for (const b of f.keys)
2101
2101
  m[b] = `key_${v++}`;
2102
- f.write("const newResult = {}");
2103
- for (const b of g.keys)
2104
- if (g.optionalKeys.has(b)) {
2102
+ g.write("const newResult = {}");
2103
+ for (const b of f.keys)
2104
+ if (f.optionalKeys.has(b)) {
2105
2105
  const w = m[b];
2106
- f.write(`const ${w} = ${h(b)};`);
2106
+ g.write(`const ${w} = ${h(b)};`);
2107
2107
  const y = mt(b);
2108
- f.write(`
2108
+ g.write(`
2109
2109
  if (${w}.issues.length) {
2110
2110
  if (input[${y}] === undefined) {
2111
2111
  if (${y} in input) {
@@ -2127,57 +2127,57 @@ const Vl = /* @__PURE__ */ _("$ZodObject", (e, t) => {
2127
2127
  `);
2128
2128
  } else {
2129
2129
  const w = m[b];
2130
- f.write(`const ${w} = ${h(b)};`), f.write(`
2130
+ g.write(`const ${w} = ${h(b)};`), g.write(`
2131
2131
  if (${w}.issues.length) payload.issues = payload.issues.concat(${w}.issues.map(iss => ({
2132
2132
  ...iss,
2133
2133
  path: iss.path ? [${mt(b)}, ...iss.path] : [${mt(b)}]
2134
- })));`), f.write(`newResult[${mt(b)}] = ${w}.value`);
2134
+ })));`), g.write(`newResult[${mt(b)}] = ${w}.value`);
2135
2135
  }
2136
- f.write("payload.value = newResult;"), f.write("return payload;");
2137
- const I = f.compile();
2136
+ g.write("payload.value = newResult;"), g.write("return payload;");
2137
+ const I = g.compile();
2138
2138
  return (b, w) => I(d, b, w);
2139
2139
  };
2140
2140
  let o;
2141
2141
  const a = tr, i = !da.jitless, u = i && cc.value, c = t.catchall;
2142
2142
  let p;
2143
- e._zod.parse = (d, f) => {
2143
+ e._zod.parse = (d, g) => {
2144
2144
  p ?? (p = r.value);
2145
- const g = d.value;
2146
- if (!a(g))
2145
+ const f = d.value;
2146
+ if (!a(f))
2147
2147
  return d.issues.push({
2148
2148
  expected: "object",
2149
2149
  code: "invalid_type",
2150
- input: g,
2150
+ input: f,
2151
2151
  inst: e
2152
2152
  }), d;
2153
2153
  const h = [];
2154
- if (i && u && f?.async === !1 && f.jitless !== !0)
2155
- o || (o = n(t.shape)), d = o(d, f);
2154
+ if (i && u && g?.async === !1 && g.jitless !== !0)
2155
+ o || (o = n(t.shape)), d = o(d, g);
2156
2156
  else {
2157
2157
  d.value = {};
2158
2158
  const w = p.shape;
2159
2159
  for (const y of p.keys) {
2160
- const k = w[y], O = k._zod.run({ value: g[y], issues: [] }, f), x = k._zod.optin === "optional" && k._zod.optout === "optional";
2161
- O instanceof Promise ? h.push(O.then((M) => x ? Ln(M, d, y, g) : Dt(M, d, y))) : x ? Ln(O, d, y, g) : Dt(O, d, y);
2160
+ const k = w[y], O = k._zod.run({ value: f[y], issues: [] }, g), x = k._zod.optin === "optional" && k._zod.optout === "optional";
2161
+ O instanceof Promise ? h.push(O.then((M) => x ? Ln(M, d, y, f) : Dt(M, d, y))) : x ? Ln(O, d, y, f) : Dt(O, d, y);
2162
2162
  }
2163
2163
  }
2164
2164
  if (!c)
2165
2165
  return h.length ? Promise.all(h).then(() => d) : d;
2166
2166
  const m = [], v = p.keySet, I = c._zod, b = I.def.type;
2167
- for (const w of Object.keys(g)) {
2167
+ for (const w of Object.keys(f)) {
2168
2168
  if (v.has(w))
2169
2169
  continue;
2170
2170
  if (b === "never") {
2171
2171
  m.push(w);
2172
2172
  continue;
2173
2173
  }
2174
- const y = I.run({ value: g[w], issues: [] }, f);
2174
+ const y = I.run({ value: f[w], issues: [] }, g);
2175
2175
  y instanceof Promise ? h.push(y.then((k) => Dt(k, d, w))) : Dt(y, d, w);
2176
2176
  }
2177
2177
  return m.length && d.issues.push({
2178
2178
  code: "unrecognized_keys",
2179
2179
  keys: m,
2180
- input: g,
2180
+ input: f,
2181
2181
  inst: e
2182
2182
  }), h.length ? Promise.all(h).then(() => d) : d;
2183
2183
  };
@@ -3003,14 +3003,14 @@ class Xn {
3003
3003
  ...r,
3004
3004
  schemaPath: [...r.schemaPath, t],
3005
3005
  path: r.path
3006
- }, f = t._zod.parent;
3007
- if (f)
3008
- s.ref = f, this.process(f, d), this.seen.get(f).isParent = !0;
3006
+ }, g = t._zod.parent;
3007
+ if (g)
3008
+ s.ref = g, this.process(g, d), this.seen.get(g).isParent = !0;
3009
3009
  else {
3010
- const g = s.schema;
3010
+ const f = s.schema;
3011
3011
  switch (o.type) {
3012
3012
  case "string": {
3013
- const h = g;
3013
+ const h = f;
3014
3014
  h.type = "string";
3015
3015
  const { minimum: m, maximum: v, format: I, patterns: b, contentEncoding: w } = t._zod.bag;
3016
3016
  if (typeof m == "number" && (h.minLength = m), typeof v == "number" && (h.maxLength = v), I && (h.format = a[I] ?? I, h.format === "" && delete h.format), w && (h.contentEncoding = w), b && b.size > 0) {
@@ -3025,12 +3025,12 @@ class Xn {
3025
3025
  break;
3026
3026
  }
3027
3027
  case "number": {
3028
- const h = g, { minimum: m, maximum: v, format: I, multipleOf: b, exclusiveMaximum: w, exclusiveMinimum: y } = t._zod.bag;
3028
+ const h = f, { minimum: m, maximum: v, format: I, multipleOf: b, exclusiveMaximum: w, exclusiveMinimum: y } = t._zod.bag;
3029
3029
  typeof I == "string" && I.includes("int") ? h.type = "integer" : h.type = "number", typeof y == "number" && (h.exclusiveMinimum = y), typeof m == "number" && (h.minimum = m, typeof y == "number" && (y >= m ? delete h.minimum : delete h.exclusiveMinimum)), typeof w == "number" && (h.exclusiveMaximum = w), typeof v == "number" && (h.maximum = v, typeof w == "number" && (w <= v ? delete h.maximum : delete h.exclusiveMaximum)), typeof b == "number" && (h.multipleOf = b);
3030
3030
  break;
3031
3031
  }
3032
3032
  case "boolean": {
3033
- const h = g;
3033
+ const h = f;
3034
3034
  h.type = "boolean";
3035
3035
  break;
3036
3036
  }
@@ -3045,7 +3045,7 @@ class Xn {
3045
3045
  break;
3046
3046
  }
3047
3047
  case "null": {
3048
- g.type = "null";
3048
+ f.type = "null";
3049
3049
  break;
3050
3050
  }
3051
3051
  case "any":
@@ -3063,7 +3063,7 @@ class Xn {
3063
3063
  break;
3064
3064
  }
3065
3065
  case "never": {
3066
- g.not = {};
3066
+ f.not = {};
3067
3067
  break;
3068
3068
  }
3069
3069
  case "date": {
@@ -3072,12 +3072,12 @@ class Xn {
3072
3072
  break;
3073
3073
  }
3074
3074
  case "array": {
3075
- const h = g, { minimum: m, maximum: v } = t._zod.bag;
3075
+ const h = f, { minimum: m, maximum: v } = t._zod.bag;
3076
3076
  typeof m == "number" && (h.minItems = m), typeof v == "number" && (h.maxItems = v), h.type = "array", h.items = this.process(o.element, { ...d, path: [...d.path, "items"] });
3077
3077
  break;
3078
3078
  }
3079
3079
  case "object": {
3080
- const h = g;
3080
+ const h = f;
3081
3081
  h.type = "object", h.properties = {};
3082
3082
  const m = o.shape;
3083
3083
  for (const b in m)
@@ -3096,7 +3096,7 @@ class Xn {
3096
3096
  break;
3097
3097
  }
3098
3098
  case "union": {
3099
- const h = g;
3099
+ const h = f;
3100
3100
  h.anyOf = o.options.map((m, v) => this.process(m, {
3101
3101
  ...d,
3102
3102
  path: [...d.path, "anyOf", v]
@@ -3104,7 +3104,7 @@ class Xn {
3104
3104
  break;
3105
3105
  }
3106
3106
  case "intersection": {
3107
- const h = g, m = this.process(o.left, {
3107
+ const h = f, m = this.process(o.left, {
3108
3108
  ...d,
3109
3109
  path: [...d.path, "allOf", 0]
3110
3110
  }), v = this.process(o.right, {
@@ -3118,7 +3118,7 @@ class Xn {
3118
3118
  break;
3119
3119
  }
3120
3120
  case "tuple": {
3121
- const h = g;
3121
+ const h = f;
3122
3122
  h.type = "array";
3123
3123
  const m = o.items.map((b, w) => this.process(b, { ...d, path: [...d.path, "prefixItems", w] }));
3124
3124
  if (this.target === "draft-2020-12" ? h.prefixItems = m : h.items = m, o.rest) {
@@ -3137,7 +3137,7 @@ class Xn {
3137
3137
  break;
3138
3138
  }
3139
3139
  case "record": {
3140
- const h = g;
3140
+ const h = f;
3141
3141
  h.type = "object", h.propertyNames = this.process(o.keyType, { ...d, path: [...d.path, "propertyNames"] }), h.additionalProperties = this.process(o.valueType, {
3142
3142
  ...d,
3143
3143
  path: [...d.path, "additionalProperties"]
@@ -3155,12 +3155,12 @@ class Xn {
3155
3155
  break;
3156
3156
  }
3157
3157
  case "enum": {
3158
- const h = g, m = pa(o.entries);
3158
+ const h = f, m = pa(o.entries);
3159
3159
  m.every((v) => typeof v == "number") && (h.type = "number"), m.every((v) => typeof v == "string") && (h.type = "string"), h.enum = m;
3160
3160
  break;
3161
3161
  }
3162
3162
  case "literal": {
3163
- const h = g, m = [];
3163
+ const h = f, m = [];
3164
3164
  for (const v of o.values)
3165
3165
  if (v === void 0) {
3166
3166
  if (this.unrepresentable === "throw")
@@ -3179,7 +3179,7 @@ class Xn {
3179
3179
  break;
3180
3180
  }
3181
3181
  case "file": {
3182
- const h = g, m = {
3182
+ const h = f, m = {
3183
3183
  type: "string",
3184
3184
  format: "binary",
3185
3185
  contentEncoding: "binary"
@@ -3194,7 +3194,7 @@ class Xn {
3194
3194
  }
3195
3195
  case "nullable": {
3196
3196
  const h = this.process(o.innerType, d);
3197
- g.anyOf = [h, { type: "null" }];
3197
+ f.anyOf = [h, { type: "null" }];
3198
3198
  break;
3199
3199
  }
3200
3200
  case "nonoptional": {
@@ -3202,16 +3202,16 @@ class Xn {
3202
3202
  break;
3203
3203
  }
3204
3204
  case "success": {
3205
- const h = g;
3205
+ const h = f;
3206
3206
  h.type = "boolean";
3207
3207
  break;
3208
3208
  }
3209
3209
  case "default": {
3210
- this.process(o.innerType, d), s.ref = o.innerType, g.default = JSON.parse(JSON.stringify(o.defaultValue));
3210
+ this.process(o.innerType, d), s.ref = o.innerType, f.default = JSON.parse(JSON.stringify(o.defaultValue));
3211
3211
  break;
3212
3212
  }
3213
3213
  case "prefault": {
3214
- this.process(o.innerType, d), s.ref = o.innerType, this.io === "input" && (g._prefault = JSON.parse(JSON.stringify(o.defaultValue)));
3214
+ this.process(o.innerType, d), s.ref = o.innerType, this.io === "input" && (f._prefault = JSON.parse(JSON.stringify(o.defaultValue)));
3215
3215
  break;
3216
3216
  }
3217
3217
  case "catch": {
@@ -3222,7 +3222,7 @@ class Xn {
3222
3222
  } catch {
3223
3223
  throw new Error("Dynamic catch values are not supported in JSON Schema");
3224
3224
  }
3225
- g.default = h;
3225
+ f.default = h;
3226
3226
  break;
3227
3227
  }
3228
3228
  case "nan": {
@@ -3231,7 +3231,7 @@ class Xn {
3231
3231
  break;
3232
3232
  }
3233
3233
  case "template_literal": {
3234
- const h = g, m = t._zod.pattern;
3234
+ const h = f, m = t._zod.pattern;
3235
3235
  if (!m)
3236
3236
  throw new Error("Pattern not found in template literal");
3237
3237
  h.type = "string", h.pattern = m.source;
@@ -3243,7 +3243,7 @@ class Xn {
3243
3243
  break;
3244
3244
  }
3245
3245
  case "readonly": {
3246
- this.process(o.innerType, d), s.ref = o.innerType, g.readOnly = !0;
3246
+ this.process(o.innerType, d), s.ref = o.innerType, f.readOnly = !0;
3247
3247
  break;
3248
3248
  }
3249
3249
  // passthrough types
@@ -3292,17 +3292,17 @@ class Xn {
3292
3292
  }
3293
3293
  if (p[1] === o)
3294
3294
  return { ref: "#" };
3295
- const g = `#/${d}/`, h = p[1].schema.id ?? `__schema${this.counter++}`;
3296
- return { defId: h, ref: g + h };
3295
+ const f = `#/${d}/`, h = p[1].schema.id ?? `__schema${this.counter++}`;
3296
+ return { defId: h, ref: f + h };
3297
3297
  }, i = (p) => {
3298
3298
  if (p[1].schema.$ref)
3299
3299
  return;
3300
- const d = p[1], { ref: f, defId: g } = a(p);
3301
- d.def = { ...d.schema }, g && (d.defId = g);
3300
+ const d = p[1], { ref: g, defId: f } = a(p);
3301
+ d.def = { ...d.schema }, f && (d.defId = f);
3302
3302
  const h = d.schema;
3303
3303
  for (const m in h)
3304
3304
  delete h[m];
3305
- h.$ref = f;
3305
+ h.$ref = g;
3306
3306
  };
3307
3307
  if (n.cycles === "throw")
3308
3308
  for (const p of this.seen.entries()) {
@@ -3319,8 +3319,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
3319
3319
  continue;
3320
3320
  }
3321
3321
  if (n.external) {
3322
- const g = n.external.registry.get(p[0])?.id;
3323
- if (t !== p[0] && g) {
3322
+ const f = n.external.registry.get(p[0])?.id;
3323
+ if (t !== p[0] && f) {
3324
3324
  i(p);
3325
3325
  continue;
3326
3326
  }
@@ -3339,19 +3339,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
3339
3339
  }
3340
3340
  }
3341
3341
  const s = (p, d) => {
3342
- const f = this.seen.get(p), g = f.def ?? f.schema, h = { ...g };
3343
- if (f.ref === null)
3342
+ const g = this.seen.get(p), f = g.def ?? g.schema, h = { ...f };
3343
+ if (g.ref === null)
3344
3344
  return;
3345
- const m = f.ref;
3346
- if (f.ref = null, m) {
3345
+ const m = g.ref;
3346
+ if (g.ref = null, m) {
3347
3347
  s(m, d);
3348
3348
  const v = this.seen.get(m).schema;
3349
- v.$ref && d.target === "draft-7" ? (g.allOf = g.allOf ?? [], g.allOf.push(v)) : (Object.assign(g, v), Object.assign(g, h));
3349
+ v.$ref && d.target === "draft-7" ? (f.allOf = f.allOf ?? [], f.allOf.push(v)) : (Object.assign(f, v), Object.assign(f, h));
3350
3350
  }
3351
- f.isParent || this.override({
3351
+ g.isParent || this.override({
3352
3352
  zodSchema: p,
3353
- jsonSchema: g,
3354
- path: f.path ?? []
3353
+ jsonSchema: f,
3354
+ path: g.path ?? []
3355
3355
  });
3356
3356
  };
3357
3357
  for (const p of [...this.seen.entries()].reverse())
@@ -4957,17 +4957,17 @@ var em = (e, t) => {
4957
4957
  const n = rm(t);
4958
4958
  let o = typeof t == "object" && t.definitions ? Object.entries(t.definitions).reduce(
4959
4959
  (c, [p, d]) => {
4960
- var f;
4960
+ var g;
4961
4961
  return {
4962
4962
  ...c,
4963
- [p]: (f = B(
4963
+ [p]: (g = B(
4964
4964
  d._def,
4965
4965
  {
4966
4966
  ...n,
4967
4967
  currentPath: [...n.basePath, n.definitionPath, p]
4968
4968
  },
4969
4969
  !0
4970
- )) != null ? f : fe()
4970
+ )) != null ? g : fe()
4971
4971
  };
4972
4972
  },
4973
4973
  {}
@@ -5674,7 +5674,7 @@ function km({
5674
5674
  new TransformStream({
5675
5675
  async transform(s, u) {
5676
5676
  await n(async ({ state: c, write: p }) => {
5677
- var d, f, g, h;
5677
+ var d, g, f, h;
5678
5678
  function m(y) {
5679
5679
  const O = c.message.parts.filter(Ht).find(
5680
5680
  (x) => x.toolCallId === y
@@ -5759,7 +5759,7 @@ function km({
5759
5759
  }
5760
5760
  case "text-end": {
5761
5761
  const y = c.activeTextParts[s.id];
5762
- y.state = "done", y.providerMetadata = (f = s.providerMetadata) != null ? f : y.providerMetadata, delete c.activeTextParts[s.id], p();
5762
+ y.state = "done", y.providerMetadata = (g = s.providerMetadata) != null ? g : y.providerMetadata, delete c.activeTextParts[s.id], p();
5763
5763
  break;
5764
5764
  }
5765
5765
  case "reasoning-start": {
@@ -5774,7 +5774,7 @@ function km({
5774
5774
  }
5775
5775
  case "reasoning-delta": {
5776
5776
  const y = c.activeReasoningParts[s.id];
5777
- y.text += s.delta, y.providerMetadata = (g = s.providerMetadata) != null ? g : y.providerMetadata, p();
5777
+ y.text += s.delta, y.providerMetadata = (f = s.providerMetadata) != null ? f : y.providerMetadata, p();
5778
5778
  break;
5779
5779
  }
5780
5780
  case "reasoning-end": {
@@ -6266,7 +6266,7 @@ var Wm = class {
6266
6266
  requestMetadata: t.metadata,
6267
6267
  trigger: t.trigger,
6268
6268
  messageId: t.messageId
6269
- })), d = (n = p?.api) != null ? n : this.api, f = p?.headers !== void 0 ? p.headers : { ...u, ...t.headers }, g = p?.body !== void 0 ? p.body : {
6269
+ })), d = (n = p?.api) != null ? n : this.api, g = p?.headers !== void 0 ? p.headers : { ...u, ...t.headers }, f = p?.body !== void 0 ? p.body : {
6270
6270
  ...s,
6271
6271
  ...t.body,
6272
6272
  id: t.chatId,
@@ -6278,12 +6278,12 @@ var Wm = class {
6278
6278
  headers: no(
6279
6279
  {
6280
6280
  "Content-Type": "application/json",
6281
- ...f
6281
+ ...g
6282
6282
  },
6283
6283
  `ai-sdk/${co}`,
6284
6284
  ro()
6285
6285
  ),
6286
- body: JSON.stringify(g),
6286
+ body: JSON.stringify(f),
6287
6287
  credentials: h,
6288
6288
  signal: e
6289
6289
  });
@@ -6304,14 +6304,14 @@ var Wm = class {
6304
6304
  headers: { ...s, ...e.headers },
6305
6305
  credentials: u,
6306
6306
  requestMetadata: e.metadata
6307
- })), p = (r = c?.api) != null ? r : `${this.api}/${e.chatId}/stream`, d = c?.headers !== void 0 ? c.headers : { ...s, ...e.headers }, f = (n = c?.credentials) != null ? n : u, h = await ((o = this.fetch) != null ? o : globalThis.fetch)(p, {
6307
+ })), p = (r = c?.api) != null ? r : `${this.api}/${e.chatId}/stream`, d = c?.headers !== void 0 ? c.headers : { ...s, ...e.headers }, g = (n = c?.credentials) != null ? n : u, h = await ((o = this.fetch) != null ? o : globalThis.fetch)(p, {
6308
6308
  method: "GET",
6309
6309
  headers: no(
6310
6310
  d,
6311
6311
  `ai-sdk/${co}`,
6312
6312
  ro()
6313
6313
  ),
6314
- credentials: f
6314
+ credentials: g
6315
6315
  });
6316
6316
  if (h.status === 204)
6317
6317
  return null;
@@ -6355,13 +6355,13 @@ var Wm = class {
6355
6355
  onData: c,
6356
6356
  sendAutomaticallyWhen: p
6357
6357
  }) {
6358
- this.activeResponse = void 0, this.jobExecutor = new Nm(), this.sendMessage = async (d, f) => {
6359
- var g, h, m, v;
6358
+ this.activeResponse = void 0, this.jobExecutor = new Nm(), this.sendMessage = async (d, g) => {
6359
+ var f, h, m, v;
6360
6360
  if (d == null) {
6361
6361
  await this.makeRequest({
6362
6362
  trigger: "submit-message",
6363
- messageId: (g = this.lastMessage) == null ? void 0 : g.id,
6364
- ...f
6363
+ messageId: (f = this.lastMessage) == null ? void 0 : f.id,
6364
+ ...g
6365
6365
  });
6366
6366
  return;
6367
6367
  }
@@ -6397,23 +6397,23 @@ var Wm = class {
6397
6397
  await this.makeRequest({
6398
6398
  trigger: "submit-message",
6399
6399
  messageId: d.messageId,
6400
- ...f
6400
+ ...g
6401
6401
  });
6402
6402
  }, this.regenerate = async ({
6403
6403
  messageId: d,
6404
- ...f
6404
+ ...g
6405
6405
  } = {}) => {
6406
- const g = d == null ? this.state.messages.length - 1 : this.state.messages.findIndex((h) => h.id === d);
6407
- if (g === -1)
6406
+ const f = d == null ? this.state.messages.length - 1 : this.state.messages.findIndex((h) => h.id === d);
6407
+ if (f === -1)
6408
6408
  throw new Error(`message ${d} not found`);
6409
6409
  this.state.messages = this.state.messages.slice(
6410
6410
  0,
6411
6411
  // if the message is a user message, we need to include it in the request:
6412
- this.messages[g].role === "assistant" ? g : g + 1
6412
+ this.messages[f].role === "assistant" ? f : f + 1
6413
6413
  ), await this.makeRequest({
6414
6414
  trigger: "regenerate-message",
6415
6415
  messageId: d,
6416
- ...f
6416
+ ...g
6417
6417
  });
6418
6418
  }, this.resumeStream = async (d = {}) => {
6419
6419
  await this.makeRequest({ trigger: "resume-stream", ...d });
@@ -6421,8 +6421,8 @@ var Wm = class {
6421
6421
  this.status === "error" && (this.state.error = void 0, this.setStatus({ status: "ready" }));
6422
6422
  }, this.addToolResult = async ({
6423
6423
  state: d = "output-available",
6424
- tool: f,
6425
- toolCallId: g,
6424
+ tool: g,
6425
+ toolCallId: f,
6426
6426
  output: h,
6427
6427
  errorText: m
6428
6428
  }) => this.jobExecutor.run(async () => {
@@ -6431,10 +6431,10 @@ var Wm = class {
6431
6431
  this.state.replaceMessage(b.length - 1, {
6432
6432
  ...w,
6433
6433
  parts: w.parts.map(
6434
- (y) => lo(y) && y.toolCallId === g ? { ...y, state: d, output: h, errorText: m } : y
6434
+ (y) => lo(y) && y.toolCallId === f ? { ...y, state: d, output: h, errorText: m } : y
6435
6435
  )
6436
6436
  }), this.activeResponse && (this.activeResponse.state.message.parts = this.activeResponse.state.message.parts.map(
6437
- (y) => lo(y) && y.toolCallId === g ? {
6437
+ (y) => lo(y) && y.toolCallId === f ? {
6438
6438
  ...y,
6439
6439
  state: d,
6440
6440
  output: h,
@@ -6490,17 +6490,17 @@ var Wm = class {
6490
6490
  const u = this.lastMessage;
6491
6491
  let c = !1, p = !1, d = !1;
6492
6492
  try {
6493
- const f = {
6493
+ const g = {
6494
6494
  state: xm({
6495
6495
  lastMessage: this.state.snapshot(u),
6496
6496
  messageId: this.generateId()
6497
6497
  }),
6498
6498
  abortController: new AbortController()
6499
6499
  };
6500
- f.abortController.signal.addEventListener("abort", () => {
6500
+ g.abortController.signal.addEventListener("abort", () => {
6501
6501
  c = !0;
6502
- }), this.activeResponse = f;
6503
- let g;
6502
+ }), this.activeResponse = g;
6503
+ let f;
6504
6504
  if (e === "resume-stream") {
6505
6505
  const m = await this.transport.reconnectToStream({
6506
6506
  chatId: this.id,
@@ -6512,12 +6512,12 @@ var Wm = class {
6512
6512
  this.setStatus({ status: "ready" });
6513
6513
  return;
6514
6514
  }
6515
- g = m;
6515
+ f = m;
6516
6516
  } else
6517
- g = await this.transport.sendMessages({
6517
+ f = await this.transport.sendMessages({
6518
6518
  chatId: this.id,
6519
6519
  messages: this.state.messages,
6520
- abortSignal: f.abortController.signal,
6520
+ abortSignal: g.abortController.signal,
6521
6521
  metadata: t,
6522
6522
  headers: r,
6523
6523
  body: n,
@@ -6528,20 +6528,20 @@ var Wm = class {
6528
6528
  // serialize the job execution to avoid race conditions:
6529
6529
  this.jobExecutor.run(
6530
6530
  () => m({
6531
- state: f.state,
6531
+ state: g.state,
6532
6532
  write: () => {
6533
6533
  var v;
6534
- this.setStatus({ status: "streaming" }), f.state.message.id === ((v = this.lastMessage) == null ? void 0 : v.id) ? this.state.replaceMessage(
6534
+ this.setStatus({ status: "streaming" }), g.state.message.id === ((v = this.lastMessage) == null ? void 0 : v.id) ? this.state.replaceMessage(
6535
6535
  this.state.messages.length - 1,
6536
- f.state.message
6537
- ) : this.state.pushMessage(f.state.message);
6536
+ g.state.message
6537
+ ) : this.state.pushMessage(g.state.message);
6538
6538
  }
6539
6539
  })
6540
6540
  )
6541
6541
  );
6542
6542
  await Cm({
6543
6543
  stream: km({
6544
- stream: g,
6544
+ stream: f,
6545
6545
  onToolCall: this.onToolCall,
6546
6546
  onData: this.onData,
6547
6547
  messageMetadataSchema: this.messageMetadataSchema,
@@ -6555,10 +6555,10 @@ var Wm = class {
6555
6555
  throw m;
6556
6556
  }
6557
6557
  }), this.setStatus({ status: "ready" });
6558
- } catch (f) {
6559
- if (c || f.name === "AbortError")
6558
+ } catch (g) {
6559
+ if (c || g.name === "AbortError")
6560
6560
  return c = !0, this.setStatus({ status: "ready" }), null;
6561
- d = !0, f instanceof TypeError && (f.message.toLowerCase().includes("fetch") || f.message.toLowerCase().includes("network")) && (p = !0), this.onError && f instanceof Error && this.onError(f), this.setStatus({ status: "error", error: f });
6561
+ d = !0, g instanceof TypeError && (g.message.toLowerCase().includes("fetch") || g.message.toLowerCase().includes("network")) && (p = !0), this.onError && g instanceof Error && this.onError(g), this.setStatus({ status: "error", error: g });
6562
6562
  } finally {
6563
6563
  try {
6564
6564
  (a = this.onFinish) == null || a.call(this, {
@@ -6568,8 +6568,8 @@ var Wm = class {
6568
6568
  isDisconnect: p,
6569
6569
  isError: d
6570
6570
  });
6571
- } catch (f) {
6572
- console.error(f);
6571
+ } catch (g) {
6572
+ console.error(g);
6573
6573
  }
6574
6574
  this.activeResponse = void 0;
6575
6575
  }
@@ -6614,7 +6614,7 @@ const ns = async () => (Sr || (Sr = import(
6614
6614
  "./index.790ujKXR.js"
6615
6615
  )), Sr), os = async () => (xr || (xr = import(
6616
6616
  /* webpackChunkName: "toast-utilities" */
6617
- "./index.DXaLvF3n.js"
6617
+ "./index.ByjDYmg9.js"
6618
6618
  ).then((e) => e.utilities)), xr), eh = async () => {
6619
6619
  try {
6620
6620
  await Promise.all([ns(), os()]);
@@ -6990,32 +6990,33 @@ const go = ({
6990
6990
  }
6991
6991
  }, []), r && Cr ? /* @__PURE__ */ l(Cr, { containerId: e, ...t }) : null;
6992
6992
  }, mh = ({
6993
- setChatId: e,
6994
- setInitialMessages: t,
6995
- dispatchChat: r,
6996
- stateProvider: n
6993
+ currentChatId: e,
6994
+ setChatId: t,
6995
+ setInitialMessages: r,
6996
+ dispatchChat: n,
6997
+ stateProvider: o
6997
6998
  }) => {
6998
- const { user: o, getAccessToken: a } = ve(), [i, s] = R(!1), [u] = Be({
6999
+ const { user: a, getAccessToken: i } = ve(), [s, u] = R(!1), [c] = Be({
6999
7000
  key: Le + xo,
7000
7001
  initialValue: ""
7001
7002
  });
7002
7003
  return $(() => {
7003
7004
  (async () => {
7004
- if ((Es || ko()) && !(!u || i || !o?.username))
7005
+ if ((Es || ko()) && !(!c || s || !a?.username) && c !== e)
7005
7006
  try {
7006
- const d = await a(), f = await Co({
7007
- accessToken: d,
7007
+ const g = await i(), f = await Co({
7008
+ accessToken: g,
7008
7009
  type: No.GET_CHAT,
7009
7010
  params: {
7010
- id: u
7011
+ id: c
7011
7012
  }
7012
7013
  });
7013
- f.data && f.data.messages && (f.data.provider && n !== f.data.provider && r({
7014
+ f.data && f.data.messages && (f.data.provider && o !== f.data.provider && n({
7014
7015
  type: sn,
7015
7016
  payload: {
7016
7017
  provider: f.data.provider
7017
7018
  }
7018
- }), r({
7019
+ }), n({
7019
7020
  type: Qe,
7020
7021
  payload: {
7021
7022
  streaming: !1,
@@ -7024,21 +7025,22 @@ const go = ({
7024
7025
  restoredModel: f.data?.model || "",
7025
7026
  restoredUsage: f.data?.tokenUsage || 0
7026
7027
  }
7027
- }), e(u), t(f.data.messages), s(!0));
7028
- } catch (d) {
7029
- console.error("Failed to restore chat from cache:", d);
7028
+ }), t(c), r(f.data.messages), u(!0));
7029
+ } catch (g) {
7030
+ console.error("Failed to restore chat from cache:", g);
7030
7031
  }
7031
7032
  })();
7032
7033
  }, [
7033
- u,
7034
- i,
7035
- o?.username,
7036
- a,
7037
- n,
7034
+ c,
7038
7035
  e,
7036
+ s,
7037
+ a?.username,
7038
+ i,
7039
+ o,
7039
7040
  t,
7040
- r
7041
- ]), { hasRestoredFromCache: i };
7041
+ r,
7042
+ n
7043
+ ]), { hasRestoredFromCache: s };
7042
7044
  }, hh = "z-20", fh = "z-10", cn = dt.createContext({
7043
7045
  state: {
7044
7046
  searchString: "",
@@ -7126,7 +7128,7 @@ const go = ({
7126
7128
  }) => {
7127
7129
  const u = pi(() => {
7128
7130
  m.stop(), h(!1);
7129
- }), c = U(null), p = U(null), [d, f] = R(!1), [g, h] = R(!1), m = bi(() => {
7131
+ }), c = U(null), p = U(null), [d, g] = R(!1), [f, h] = R(!1), m = bi(() => {
7130
7132
  h(!1);
7131
7133
  }, Eh), v = wh({
7132
7134
  mode: n,
@@ -7176,11 +7178,11 @@ const go = ({
7176
7178
  (async () => d && await b())();
7177
7179
  }, [b, d]);
7178
7180
  const w = () => {
7179
- f(!1), h(!0), m.start();
7181
+ g(!1), h(!0), m.start();
7180
7182
  }, y = () => {
7181
- g || f(!0);
7183
+ f || g(!0);
7182
7184
  }, k = () => {
7183
- g || f(!1);
7185
+ f || g(!1);
7184
7186
  };
7185
7187
  return /* @__PURE__ */ T(
7186
7188
  "div",
@@ -7261,7 +7263,7 @@ const Sh = ({
7261
7263
  dispatch: a,
7262
7264
  setChatId: i,
7263
7265
  setInitialMessages: s
7264
- } = ne(xe), { id: u, setInput: c, stop: p } = We(), d = U(null), f = U(!1), { data: g, isSuccess: h } = Je({
7266
+ } = ne(xe), { id: u, setInput: c, stop: p } = We(), d = U(null), g = U(!1), { data: f, isSuccess: h } = Je({
7265
7267
  user: r?.username,
7266
7268
  getAccessToken: t
7267
7269
  }), m = L(() => {
@@ -7326,7 +7328,7 @@ const Sh = ({
7326
7328
  b.preventDefault(), m();
7327
7329
  };
7328
7330
  return $(() => {
7329
- Ue() || ((n === !0 || o === !0) && !f.current && d.current && (f.current = !0, d.current.focus()), n === !1 && f.current && (f.current = !1));
7331
+ Ue() || ((n === !0 || o === !0) && !g.current && d.current && (g.current = !0, d.current.focus()), n === !1 && g.current && (g.current = !1));
7330
7332
  }, [n, o]), /* @__PURE__ */ l(
7331
7333
  Re,
7332
7334
  {
@@ -7344,7 +7346,7 @@ const Sh = ({
7344
7346
  label: "New Chat",
7345
7347
  ref: d,
7346
7348
  onClick: n || o ? v : I,
7347
- disabled: !(h && g),
7349
+ disabled: !(h && f),
7348
7350
  children: n || o ? /* @__PURE__ */ l(Oi, { size: Ae, monotone: !0 }) : /* @__PURE__ */ l(Mi, { size: Ae })
7349
7351
  }
7350
7352
  )
@@ -7442,12 +7444,12 @@ function zh({
7442
7444
  const [n, o] = ie.useState(e), [a, i] = ie.useState(), [s, u] = ie.useState(), c = t ?? n, p = r ?? o, d = jo({
7443
7445
  open: c,
7444
7446
  onOpenChange: p
7445
- }), f = d.context, g = Vo(f, {
7447
+ }), g = d.context, f = Vo(g, {
7446
7448
  enabled: t == null
7447
- }), h = Fo(f, {
7449
+ }), h = Fo(g, {
7448
7450
  outsidePress: !1,
7449
7451
  outsidePressEvent: "mousedown"
7450
- }), m = Ho(f), v = Jo([g, h, m]);
7452
+ }), m = Ho(g), v = Jo([f, h, m]);
7451
7453
  return ie.useMemo(
7452
7454
  () => ({
7453
7455
  open: c,
@@ -7575,7 +7577,7 @@ const Ee = "panel", qe = "messagebox", Ph = ({
7575
7577
  maxWidth: p = "medium",
7576
7578
  maxHeight: d
7577
7579
  }) => {
7578
- const f = U(""), [g, h] = R(
7580
+ const g = U(""), [f, h] = R(
7579
7581
  u ? c === yo ? { opacity: 0 } : {
7580
7582
  transform: "translateY(-100vh)"
7581
7583
  } : {}
@@ -7587,8 +7589,8 @@ const Ee = "panel", qe = "messagebox", Ph = ({
7587
7589
  maxWidth: p,
7588
7590
  maxHeight: d
7589
7591
  });
7590
- return $(() => (e && (f.current = document.title, document.title = `${r} | ${f.current}`), () => {
7591
- e && (document.title = f.current);
7592
+ return $(() => (e && (g.current = document.title, document.title = `${r} | ${g.current}`), () => {
7593
+ e && (document.title = g.current);
7592
7594
  }), [r, e]), $(() => {
7593
7595
  if (u && e) {
7594
7596
  h(
@@ -7605,7 +7607,7 @@ const Ee = "panel", qe = "messagebox", Ph = ({
7605
7607
  }, 100);
7606
7608
  return () => clearTimeout(v);
7607
7609
  }
7608
- }, [e, u, c]), /* @__PURE__ */ l(Oe, { children: e && /* @__PURE__ */ l(Ah, { open: e, onOpenChange: t, children: /* @__PURE__ */ T(Oh, { className: m.main, style: g, children: [
7610
+ }, [e, u, c]), /* @__PURE__ */ l(Oe, { children: e && /* @__PURE__ */ l(Ah, { open: e, onOpenChange: t, children: /* @__PURE__ */ T(Oh, { className: m.main, style: f, children: [
7609
7611
  /* @__PURE__ */ T("div", { className: "flex flex-row-reverse items-center justify-between", children: [
7610
7612
  /* @__PURE__ */ l(
7611
7613
  Rh,
@@ -7744,7 +7746,7 @@ const Lh = "av-toggle", Bh = ({ narrow: e }) => A(
7744
7746
  narrow: p = !1,
7745
7747
  noHaptic: d = !1
7746
7748
  }) => {
7747
- const { haptic: f } = fi(), g = Gh({
7749
+ const { haptic: g } = fi(), f = Gh({
7748
7750
  mode: a,
7749
7751
  focusMode: i,
7750
7752
  labelHidden: n,
@@ -7753,21 +7755,21 @@ const Lh = "av-toggle", Bh = ({ narrow: e }) => A(
7753
7755
  narrow: p,
7754
7756
  labelMode: s
7755
7757
  }), h = (m) => {
7756
- d || f(1), t?.(m.target.checked);
7758
+ d || g(1), t?.(m.target.checked);
7757
7759
  };
7758
- return /* @__PURE__ */ T("label", { className: g.wrapper, children: [
7760
+ return /* @__PURE__ */ T("label", { className: f.wrapper, children: [
7759
7761
  /* @__PURE__ */ l(
7760
7762
  "input",
7761
7763
  {
7762
7764
  name: o,
7763
7765
  checked: e,
7764
7766
  type: "checkbox",
7765
- className: g.input,
7767
+ className: f.input,
7766
7768
  onChange: h
7767
7769
  }
7768
7770
  ),
7769
- /* @__PURE__ */ l("div", { className: g.toggle }),
7770
- /* @__PURE__ */ l("span", { className: g.label, children: r })
7771
+ /* @__PURE__ */ l("div", { className: f.toggle }),
7772
+ /* @__PURE__ */ l("span", { className: f.label, children: r })
7771
7773
  ] });
7772
7774
  };
7773
7775
  /*!
@@ -7827,7 +7829,7 @@ const et = ({
7827
7829
  children: o.confirmAction
7828
7830
  }
7829
7831
  ) })
7830
- ] }), f = s ? /* @__PURE__ */ T(
7832
+ ] }), g = s ? /* @__PURE__ */ T(
7831
7833
  zr,
7832
7834
  {
7833
7835
  alignHorizontal: "space-between",
@@ -7844,8 +7846,8 @@ const et = ({
7844
7846
  label: s,
7845
7847
  name: u || s.toLowerCase().replace(/\s+/g, "-"),
7846
7848
  checked: c,
7847
- onChange: (g) => {
7848
- p && p(g);
7849
+ onChange: (f) => {
7850
+ p && p(f);
7849
7851
  }
7850
7852
  }
7851
7853
  ) }),
@@ -7860,7 +7862,7 @@ const et = ({
7860
7862
  open: e,
7861
7863
  onOpenChange: t,
7862
7864
  title: o.title,
7863
- footer: f,
7865
+ footer: g,
7864
7866
  children: n
7865
7867
  }
7866
7868
  );
@@ -7872,7 +7874,7 @@ const et = ({
7872
7874
  dispatch: a,
7873
7875
  setChatId: i,
7874
7876
  setInitialMessages: s
7875
- } = ne(xe), [u, c] = R(!1), [p, d] = R(!1), [f, g] = R(!1), [h, m] = Be({
7877
+ } = ne(xe), [u, c] = R(!1), [p, d] = R(!1), [g, f] = R(!1), [h, m] = Be({
7876
7878
  key: Le + Ss,
7877
7879
  initialValue: ""
7878
7880
  }), v = cr(Kt.TOOL.MEMORIES), { data: I, isSuccess: b } = Je({
@@ -7892,11 +7894,11 @@ const et = ({
7892
7894
  });
7893
7895
  };
7894
7896
  return /* @__PURE__ */ T(Oe, { children: [
7895
- f && /* @__PURE__ */ T(
7897
+ g && /* @__PURE__ */ T(
7896
7898
  et,
7897
7899
  {
7898
- showConfirmation: f,
7899
- setShowConfirmation: g,
7900
+ showConfirmation: g,
7901
+ setShowConfirmation: f,
7900
7902
  action: () => w(!0),
7901
7903
  customStrings: {
7902
7904
  confirmAction: "Continue",
@@ -7954,7 +7956,7 @@ const et = ({
7954
7956
  labelRight: n ? "private" : "",
7955
7957
  variant: n ? "danger" : "secondary",
7956
7958
  onClick: (k) => {
7957
- k && k.preventDefault(), h ? o > 0 ? g(!f) : w() : d(!p);
7959
+ k && k.preventDefault(), h ? o > 0 ? f(!g) : w() : d(!p);
7958
7960
  },
7959
7961
  className: "text-sm",
7960
7962
  disabled: !(b && I) || n && o > 0,
@@ -8079,7 +8081,7 @@ const Yt = ie.createContext({
8079
8081
  focusMode: i = "system",
8080
8082
  ...s
8081
8083
  }, u) => {
8082
- const [c, p] = R(!1), [d, f] = R(!1), [g, h] = R(null), [m, v] = R(!1), I = U([]), b = U([]), w = ne(Yt), y = Wo(), k = si(), O = Go(), x = Yo({ label: r !== "Open menu" ? r : null }), M = O != null, { floatingStyles: C, refs: W, context: X } = jo({
8084
+ const [c, p] = R(!1), [d, g] = R(!1), [f, h] = R(null), [m, v] = R(!1), I = U([]), b = U([]), w = ne(Yt), y = Wo(), k = si(), O = Go(), x = Yo({ label: r !== "Open menu" ? r : null }), M = O != null, { floatingStyles: C, refs: W, context: X } = jo({
8083
8085
  nodeId: k,
8084
8086
  open: c,
8085
8087
  onOpenChange: (pe) => {
@@ -8109,14 +8111,14 @@ const Yt = ie.createContext({
8109
8111
  ignoreMouse: M && m
8110
8112
  }), de = Ho(X, { role: "menu" }), Pe = Fo(X, { bubbles: !0 }), ye = ui(X, {
8111
8113
  listRef: I,
8112
- activeIndex: g,
8114
+ activeIndex: f,
8113
8115
  nested: M,
8114
8116
  onNavigate: h,
8115
8117
  loop: !0
8116
8118
  }), Ot = di(X, {
8117
8119
  listRef: b,
8118
8120
  onMatch: c ? h : void 0,
8119
- activeIndex: g
8121
+ activeIndex: f
8120
8122
  }), { getReferenceProps: rt, getFloatingProps: $t, getItemProps: pt } = Jo([le, V, de, Pe, ye, Ot]), _e = Gr([W.setReference, x.ref, u]);
8121
8123
  $(() => {
8122
8124
  if (!y)
@@ -8177,7 +8179,7 @@ const Yt = ie.createContext({
8177
8179
  ...s,
8178
8180
  className: pe,
8179
8181
  onFocus(me) {
8180
- s.onFocus?.(me), f(!1), w.setHasFocusInside(!0);
8182
+ s.onFocus?.(me), g(!1), w.setHasFocusInside(!0);
8181
8183
  },
8182
8184
  onMouseEnter(me) {
8183
8185
  s.onMouseEnter?.(me), w.allowHover && w.isOpen && w.setActiveIndex(x.index);
@@ -8194,10 +8196,10 @@ const Yt = ie.createContext({
8194
8196
  Yt.Provider,
8195
8197
  {
8196
8198
  value: {
8197
- activeIndex: g,
8199
+ activeIndex: f,
8198
8200
  setActiveIndex: h,
8199
8201
  getItemProps: pt,
8200
- setHasFocusInside: f,
8202
+ setHasFocusInside: g,
8201
8203
  isOpen: c,
8202
8204
  allowHover: m,
8203
8205
  parent: w
@@ -8246,10 +8248,10 @@ const Yt = ie.createContext({
8246
8248
  Yt.Provider,
8247
8249
  {
8248
8250
  value: {
8249
- activeIndex: g,
8251
+ activeIndex: f,
8250
8252
  setActiveIndex: h,
8251
8253
  getItemProps: pt,
8252
- setHasFocusInside: f,
8254
+ setHasFocusInside: g,
8253
8255
  isOpen: c,
8254
8256
  allowHover: m,
8255
8257
  parent: w
@@ -8335,7 +8337,7 @@ const Xh = ({
8335
8337
  ...s
8336
8338
  }, u) => {
8337
8339
  let c = "";
8338
- const p = ie.useContext(Yt), d = Yo({ label: t ? null : e }), f = Wo(), g = Gr([d.ref, u]);
8340
+ const p = ie.useContext(Yt), d = Yo({ label: t ? null : e }), g = Wo(), f = Gr([d.ref, u]);
8339
8341
  if (n && o)
8340
8342
  return /* @__PURE__ */ l(
8341
8343
  "div",
@@ -8343,7 +8345,7 @@ const Xh = ({
8343
8345
  role: "menuitem",
8344
8346
  ...p.getItemProps({
8345
8347
  onClick(m) {
8346
- a || (s.onClick?.(m), f?.events.emit("click"));
8348
+ a || (s.onClick?.(m), g?.events.emit("click"));
8347
8349
  }
8348
8350
  }),
8349
8351
  children: o
@@ -8366,14 +8368,14 @@ const Xh = ({
8366
8368
  "button",
8367
8369
  {
8368
8370
  ...s,
8369
- ref: g,
8371
+ ref: f,
8370
8372
  role: "menuitem",
8371
8373
  className: h,
8372
8374
  tabIndex: 0,
8373
8375
  disabled: t,
8374
8376
  ...p.getItemProps({
8375
8377
  onClick(m) {
8376
- a || (s.onClick?.(m), f?.events.emit("click"));
8378
+ a || (s.onClick?.(m), g?.events.emit("click"));
8377
8379
  },
8378
8380
  onFocus(m) {
8379
8381
  s.onFocus?.(m), p.setHasFocusInside(!0);
@@ -8430,8 +8432,8 @@ const ef = (e) => {
8430
8432
  const { dispatch: r, setChatId: n, setInitialMessages: o } = ne(xe), { dispatch: a } = ne(ln), { getAccessToken: i, user: s } = ve(), { data: u, isSuccess: c } = Je({
8431
8433
  user: s?.username,
8432
8434
  getAccessToken: i
8433
- }), p = (g, h, m) => {
8434
- g.preventDefault(), n($e()), o([]), r({
8435
+ }), p = (f, h, m) => {
8436
+ f.preventDefault(), n($e()), o([]), r({
8435
8437
  type: He,
8436
8438
  payload: {
8437
8439
  privateChat: m
@@ -8442,7 +8444,7 @@ const ef = (e) => {
8442
8444
  prompt: h
8443
8445
  }
8444
8446
  });
8445
- }, d = c && u && u.tags && ef(u.tags), f = /* @__PURE__ */ T(
8447
+ }, d = c && u && u.tags && ef(u.tags), g = /* @__PURE__ */ T(
8446
8448
  kt,
8447
8449
  {
8448
8450
  mode: "dark",
@@ -8460,9 +8462,9 @@ const ef = (e) => {
8460
8462
  defaultPlacement: t,
8461
8463
  children: [
8462
8464
  /* @__PURE__ */ l(Fr, { children: "Prompts" }),
8463
- d && u.tags.map((g) => {
8465
+ d && u.tags.map((f) => {
8464
8466
  let h = null;
8465
- switch (g.slot) {
8467
+ switch (f.slot) {
8466
8468
  case 0:
8467
8469
  h = /* @__PURE__ */ l(Ui, {});
8468
8470
  break;
@@ -8476,14 +8478,14 @@ const ef = (e) => {
8476
8478
  h = null;
8477
8479
  break;
8478
8480
  }
8479
- return g.enabled && g.label && g.content && /* @__PURE__ */ l(
8481
+ return f.enabled && f.label && f.content && /* @__PURE__ */ l(
8480
8482
  Te,
8481
8483
  {
8482
- label: g.label,
8484
+ label: f.label,
8483
8485
  icon: h,
8484
- onClick: (m) => p(m, g.content, g?.privateChat)
8486
+ onClick: (m) => p(m, f.content, f?.privateChat)
8485
8487
  },
8486
- `prompt-button-${g.slot}`
8488
+ `prompt-button-${f.slot}`
8487
8489
  );
8488
8490
  })
8489
8491
  ]
@@ -8495,9 +8497,9 @@ const ef = (e) => {
8495
8497
  label: "Prompts",
8496
8498
  mode: "light",
8497
8499
  className: e,
8498
- trigger: f
8500
+ trigger: g
8499
8501
  }
8500
- ) : /* @__PURE__ */ l("div", { className: e, children: f });
8502
+ ) : /* @__PURE__ */ l("div", { className: e, children: g });
8501
8503
  }, rf = ({
8502
8504
  className: e
8503
8505
  }) => {
@@ -8509,7 +8511,7 @@ const ef = (e) => {
8509
8511
  } = ne(xe), [i, s] = R(!1), [u, c] = R(!1), [p, d] = Be({
8510
8512
  key: Le + xs,
8511
8513
  initialValue: ""
8512
- }), [f, g] = R(!1), h = (v) => {
8514
+ }), [g, f] = R(!1), h = (v) => {
8513
8515
  o($e()), a([]), n({
8514
8516
  type: He,
8515
8517
  payload: {
@@ -8542,12 +8544,12 @@ const ef = (e) => {
8542
8544
  {
8543
8545
  toggleLabel: "Don't show this again",
8544
8546
  toggleName: "reasoning-disclosure",
8545
- toggleChecked: f,
8546
- onToggleChange: (v) => g(v),
8547
+ toggleChecked: g,
8548
+ onToggleChange: (v) => f(v),
8547
8549
  showConfirmation: i,
8548
8550
  setShowConfirmation: s,
8549
8551
  action: () => {
8550
- f && d("true"), h();
8552
+ g && d("true"), h();
8551
8553
  },
8552
8554
  customStrings: {
8553
8555
  confirmAction: "Continue",
@@ -8601,7 +8603,7 @@ const ef = (e) => {
8601
8603
  sortDirection: c.sortDirection,
8602
8604
  sortedCell: c.sortedCell,
8603
8605
  getAccessToken: r
8604
- }), [d, f] = R(!1), [g, h] = R(!1), m = async () => {
8606
+ }), [d, g] = R(!1), [f, h] = R(!1), m = async () => {
8605
8607
  try {
8606
8608
  if (u && s && a) {
8607
8609
  const I = s.filter((b) => b.parts && b.parts.length > 0 ? b.parts.some(
@@ -8635,15 +8637,15 @@ const ef = (e) => {
8635
8637
  } catch {
8636
8638
  }
8637
8639
  }, v = (I) => {
8638
- I && I.preventDefault(), o > 0 ? h(!g) : m();
8640
+ I && I.preventDefault(), o > 0 ? h(!f) : m();
8639
8641
  };
8640
8642
  return $(() => {
8641
- i && s?.length > 0 ? f(!0) : f(!1);
8643
+ i && s?.length > 0 ? g(!0) : g(!1);
8642
8644
  }, [i, s]), /* @__PURE__ */ T(Oe, { children: [
8643
- g && /* @__PURE__ */ l(
8645
+ f && /* @__PURE__ */ l(
8644
8646
  et,
8645
8647
  {
8646
- showConfirmation: g,
8648
+ showConfirmation: f,
8647
8649
  setShowConfirmation: h,
8648
8650
  action: m,
8649
8651
  customStrings: {
@@ -8811,8 +8813,8 @@ const ef = (e) => {
8811
8813
  const { user: e, getAccessToken: t } = ve(), r = cr(Kt.ADDON.ATTACHMENTS), n = cr(Kt.ADDON.REASONING), { allowedModels: o } = Jr(), [a, i] = R(null), [s, u] = R(!1), [c, p] = R(!1), {
8812
8814
  dispatch: d,
8813
8815
  state: {
8814
- reasoning: f,
8815
- streaming: g,
8816
+ reasoning: g,
8817
+ streaming: f,
8816
8818
  aborted: h,
8817
8819
  lastResetTimestamp: m,
8818
8820
  attachments: v,
@@ -9000,7 +9002,7 @@ const ef = (e) => {
9000
9002
  [Os]: $t
9001
9003
  },
9002
9004
  body: {
9003
- reasoning: f
9005
+ reasoning: g
9004
9006
  },
9005
9007
  experimental_attachments: re
9006
9008
  }), _s();
@@ -9031,8 +9033,8 @@ const ef = (e) => {
9031
9033
  }
9032
9034
  m > 0 && m !== X.current ? (X.current = m, setTimeout(() => {
9033
9035
  V.current && (!_e && jt(V), V.current.focus());
9034
- }, gf)) : g === !1 && !_e && (jt(V), !Ue() && V.current && V.current.focus());
9035
- }, [m, g, _e]), $(() => {
9036
+ }, gf)) : f === !1 && !_e && (jt(V), !Ue() && V.current && V.current.focus());
9037
+ }, [m, f, _e]), $(() => {
9036
9038
  w.lastTriggeredTimestamp && setTimeout(() => {
9037
9039
  me();
9038
9040
  }, 100);
@@ -9141,18 +9143,18 @@ const ef = (e) => {
9141
9143
  dispatch: i
9142
9144
  } = ne(un), [s] = R(
9143
9145
  () => _n[Math.floor(Math.random() * _n.length)]
9144
- ), { messages: u } = We(), { height: c } = Ti(), { height: p } = Si(), [d, f] = $o(), g = ze(() => Ue(), []), h = ze(() => $s(), []), m = c - p, v = ze(() => {
9145
- const I = g ? Ms : h ? Rs : Mo;
9146
- return m > 70 && m < 500 ? g ? bn / 2 : bn : I;
9147
- }, [m, g, h]);
9146
+ ), { messages: u } = We(), { height: c } = Ti(), { height: p } = Si(), [d, g] = $o(), f = ze(() => Ue(), []), h = ze(() => $s(), []), m = c - p, v = ze(() => {
9147
+ const I = f ? Ms : h ? Rs : Mo;
9148
+ return m > 70 && m < 500 ? f ? bn / 2 : bn : I;
9149
+ }, [m, f, h]);
9148
9150
  return $(() => {
9149
- o !== f.height && i({
9151
+ o !== g.height && i({
9150
9152
  type: ss,
9151
9153
  payload: {
9152
- footerHeight: f.height
9154
+ footerHeight: g.height
9153
9155
  }
9154
9156
  });
9155
- }, [f.height, o, i]), $(() => {
9157
+ }, [g.height, o, i]), $(() => {
9156
9158
  if (!d || !d.current)
9157
9159
  return;
9158
9160
  const I = d?.current?.style.getPropertyValue(Vt);
@@ -9174,8 +9176,8 @@ const ef = (e) => {
9174
9176
  }), d.current.style.setProperty(
9175
9177
  Vt,
9176
9178
  `${v}px`
9177
- )), !t && !r && !n && u.length === 0 && c > 0 && f.height > 0) {
9178
- const b = `${c - f.height - (e ? 300 : 245)}`;
9179
+ )), !t && !r && !n && u.length === 0 && c > 0 && g.height > 0) {
9180
+ const b = `${c - g.height - (e ? 300 : 245)}`;
9179
9181
  I !== `${b}px` && Number(b) > 0 && (i({
9180
9182
  type: Jt,
9181
9183
  payload: {
@@ -9195,7 +9197,7 @@ const ef = (e) => {
9195
9197
  e,
9196
9198
  u,
9197
9199
  c,
9198
- f.height,
9200
+ g.height,
9199
9201
  a,
9200
9202
  v,
9201
9203
  i
@@ -9236,10 +9238,10 @@ const ef = (e) => {
9236
9238
  state: { privateChat: r },
9237
9239
  setChatId: n,
9238
9240
  setInitialMessages: o
9239
- } = ne(xe), { getAccessToken: a, user: i } = ve(), { status: s } = We(), { allowedModels: u, status: c } = Jr(), [p, d] = R(!1), f = L(() => {
9241
+ } = ne(xe), { getAccessToken: a, user: i } = ve(), { status: s } = We(), { allowedModels: u, status: c } = Jr(), [p, d] = R(!1), g = L(() => {
9240
9242
  p || (eh(), d(!0));
9241
9243
  }, [p]), {
9242
- isSuccess: g,
9244
+ isSuccess: f,
9243
9245
  refetch: h,
9244
9246
  data: m
9245
9247
  } = Je({
@@ -9303,7 +9305,7 @@ const ef = (e) => {
9303
9305
  });
9304
9306
  } catch {
9305
9307
  }
9306
- }, k = m && g, O = k && v.find(
9308
+ }, k = m && f, O = k && v.find(
9307
9309
  (C) => m.provider === C.id
9308
9310
  )?.icon || v[0]?.icon, x = ze(() => !m?.useNestedModelSelection || !m?.model || !u || !Oo(m.model, u) ? null : vr[m.model] || m.model, [m?.useNestedModelSelection, m?.model, u]), M = /* @__PURE__ */ l(Oe, { children: /* @__PURE__ */ T(
9309
9311
  kt,
@@ -9317,8 +9319,8 @@ const ef = (e) => {
9317
9319
  noBackground: !0,
9318
9320
  label: "Providers",
9319
9321
  disabled: !k,
9320
- onMouseEnter: f,
9321
- onFocus: f,
9322
+ onMouseEnter: g,
9323
+ onFocus: g,
9322
9324
  children: /* @__PURE__ */ l(
9323
9325
  O,
9324
9326
  {
@@ -9377,38 +9379,38 @@ const ef = (e) => {
9377
9379
  }, xf = Me(
9378
9380
  () => import(
9379
9381
  /* webpackChunkName: "modal-chunk" */
9380
- "./ProfileEntry.BkfA5ilN.js"
9382
+ "./ProfileEntry.BcL78DD5.js"
9381
9383
  ).then((e) => ({
9382
9384
  default: e.Profile
9383
9385
  }))
9384
9386
  ), kf = Me(
9385
9387
  () => import(
9386
9388
  /* webpackChunkName: "modal-chunk" */
9387
- "./SettingsEntry.CfM4w4sE.js"
9389
+ "./SettingsEntry.F8OD9jcf.js"
9388
9390
  ).then((e) => ({
9389
9391
  default: e.SettingsPanel
9390
9392
  }))
9391
9393
  ), Cf = Me(
9392
9394
  () => import(
9393
9395
  /* webpackChunkName: "modal-chunk" */
9394
- "./HistoryEntry.DyYYZjb-.js"
9396
+ "./HistoryEntry.C_3ek905.js"
9395
9397
  ).then((e) => ({
9396
9398
  default: e.HistoryPanel
9397
9399
  }))
9398
9400
  ), Nf = Me(
9399
9401
  () => import(
9400
9402
  /* webpackChunkName: "modal-chunk" */
9401
- "./AboutEntry.MVgAFIQi.js"
9403
+ "./AboutEntry.DJ0OUM4_.js"
9402
9404
  ).then((e) => ({ default: e.About }))
9403
9405
  ), zf = Me(
9404
9406
  () => import(
9405
9407
  /* webpackChunkName: "modal-chunk" */
9406
- "./UsageEntry.DA9Z1z3A.js"
9408
+ "./UsageEntry.BJMW3Rxc.js"
9407
9409
  ).then((e) => ({ default: e.Usage }))
9408
9410
  ), Af = Me(
9409
9411
  () => import(
9410
9412
  /* webpackChunkName: "modal-chunk" */
9411
- "./UserMemoriesPanel.BI0GoJUN.js"
9413
+ "./UserMemoriesPanel.BByjrVlZ.js"
9412
9414
  ).then(
9413
9415
  (e) => ({ default: e.default })
9414
9416
  )
@@ -9448,31 +9450,31 @@ const ef = (e) => {
9448
9450
  const { logout: t, getAccessToken: r, user: n } = ve(), { data: o, isSuccess: a } = Je({
9449
9451
  user: n?.username,
9450
9452
  getAccessToken: r
9451
- }), [i, s] = R(null), [u, c] = R(!1), [p, d] = R(!1), [f, g] = R(!1), h = cr(Kt.TOOL.MEMORIES);
9453
+ }), [i, s] = R(null), [u, c] = R(!1), [p, d] = R(!1), [g, f] = R(!1), h = cr(Kt.TOOL.MEMORIES);
9452
9454
  $(() => {
9453
- a && o && h && g(o?.useMemory ?? !1);
9455
+ a && o && h && f(o?.useMemory ?? !1);
9454
9456
  }, [a, o, h]);
9455
9457
  const m = L(() => {
9456
9458
  p || Promise.all([
9457
9459
  import(
9458
9460
  /* webpackChunkName: "modal-chunk" */
9459
- "./ProfileEntry.BkfA5ilN.js"
9461
+ "./ProfileEntry.BcL78DD5.js"
9460
9462
  ),
9461
9463
  import(
9462
9464
  /* webpackChunkName: "modal-chunk" */
9463
- "./SettingsEntry.CfM4w4sE.js"
9465
+ "./SettingsEntry.F8OD9jcf.js"
9464
9466
  ),
9465
9467
  import(
9466
9468
  /* webpackChunkName: "modal-chunk" */
9467
- "./HistoryEntry.DyYYZjb-.js"
9469
+ "./HistoryEntry.C_3ek905.js"
9468
9470
  ),
9469
9471
  import(
9470
9472
  /* webpackChunkName: "modal-chunk" */
9471
- "./AboutEntry.MVgAFIQi.js"
9473
+ "./AboutEntry.DJ0OUM4_.js"
9472
9474
  ),
9473
9475
  import(
9474
9476
  /* webpackChunkName: "modal-chunk" */
9475
- "./UsageEntry.DA9Z1z3A.js"
9477
+ "./UsageEntry.BJMW3Rxc.js"
9476
9478
  )
9477
9479
  ]).finally(() => d(!0));
9478
9480
  }, [p]), v = L((y) => {
@@ -9581,7 +9583,7 @@ const ef = (e) => {
9581
9583
  icon: /* @__PURE__ */ l(Zi, {})
9582
9584
  }
9583
9585
  ),
9584
- f && /* @__PURE__ */ l(
9586
+ g && /* @__PURE__ */ l(
9585
9587
  Te,
9586
9588
  {
9587
9589
  label: "Memories",
@@ -9718,18 +9720,18 @@ try {
9718
9720
  } catch {
9719
9721
  }
9720
9722
  const Pf = Me(
9721
- () => import("./index.Dta1BrG6.js").then((e) => ({ default: e.Bubble }))
9723
+ () => import("./index.DZlzg3MC.js").then((e) => ({ default: e.Bubble }))
9722
9724
  ), pn = (e) => /* @__PURE__ */ l(Qt, { fallback: /* @__PURE__ */ l("span", { className: "inline-block" }), children: /* @__PURE__ */ l(Pf, { ...e }) });
9723
9725
  pn.displayName = "AsyncBubble";
9724
9726
  const Eo = 1, Zf = 150, Df = Me(
9725
9727
  () => import(
9726
9728
  /* webpackChunkName: "LazyMessageAssistant" */
9727
- "./ChatBubbleAssistant.B9uKu0Zq.js"
9729
+ "./ChatBubbleAssistant.D4Ru1U9N.js"
9728
9730
  )
9729
9731
  ), Lf = Me(
9730
9732
  () => import(
9731
9733
  /* webpackChunkName: "LazyMessageUser" */
9732
- "./ChatBubbleUser.DBArpWQj.js"
9734
+ "./ChatBubbleUser.CvpUTP0y.js"
9733
9735
  )
9734
9736
  ), Bf = dt.memo(
9735
9737
  ({
@@ -9745,13 +9747,13 @@ const Eo = 1, Zf = 150, Df = Me(
9745
9747
  );
9746
9748
  return $(() => {
9747
9749
  if (o && i && t && t.trim().length >= Eo) {
9748
- const d = Date.now() - u.current, f = Zf - d;
9749
- if (f > 0) {
9750
- const g = setTimeout(
9750
+ const d = Date.now() - u.current, g = Zf - d;
9751
+ if (g > 0) {
9752
+ const f = setTimeout(
9751
9753
  () => s(!1),
9752
- f
9754
+ g
9753
9755
  );
9754
- return () => clearTimeout(g);
9756
+ return () => clearTimeout(f);
9755
9757
  }
9756
9758
  s(!1);
9757
9759
  }
@@ -9816,7 +9818,7 @@ const Vf = () => {
9816
9818
  state: { footerPosition: a, footerHeight: i, footerOffset: s }
9817
9819
  } = ne(un), {
9818
9820
  state: { loading: u }
9819
- } = ne(xe), { messages: c } = We(), p = U(0), { data: d, isSuccess: f } = Us(), g = js({
9821
+ } = ne(xe), { messages: c } = We(), p = U(0), { data: d, isSuccess: g } = Us(), f = js({
9820
9822
  isAuthenticated: e,
9821
9823
  extraClass: "rounded-b-md relative border-b-16 border-slate-900"
9822
9824
  }), h = Ar() ? "mt-4" : "", m = L(() => {
@@ -9830,12 +9832,12 @@ const Vf = () => {
9830
9832
  }, [u, m]), $(() => {
9831
9833
  p.current = a === _t ? i + s + Po + Vs + 15 : 0;
9832
9834
  }, [a, i, s]), /* @__PURE__ */ T(Oe, { children: [
9833
- /* @__PURE__ */ T("div", { className: g, ref: n, children: [
9835
+ /* @__PURE__ */ T("div", { className: f, ref: n, children: [
9834
9836
  /* @__PURE__ */ l(
9835
9837
  Fs,
9836
9838
  {
9837
9839
  className: h,
9838
- isCapabilitiesSuccess: f,
9840
+ isCapabilitiesSuccess: g,
9839
9841
  capabilities: d
9840
9842
  }
9841
9843
  ),
@@ -9865,10 +9867,10 @@ function gs({
9865
9867
  isComponent: e = !1,
9866
9868
  headerHeight: t = 0
9867
9869
  }) {
9868
- const { user: r, getAccessToken: n } = ve(), [o, a] = R(`${xn}px`), [i, s] = $o(), [u, c] = R($e()), [p, d] = R([]), [f] = Be({
9870
+ const { user: r, getAccessToken: n } = ve(), [o, a] = R(`${xn}px`), [i, s] = $o(), [u, c] = R($e()), [p, d] = R([]), [g] = Be({
9869
9871
  key: Le + Ys,
9870
9872
  initialValue: ""
9871
- }), [g] = Be({
9873
+ }), [f] = Be({
9872
9874
  key: Le + Ws,
9873
9875
  initialValue: kn
9874
9876
  }), [h] = Be({
@@ -9885,10 +9887,10 @@ function gs({
9885
9887
  const de = Ue(), Pe = ko();
9886
9888
  return de && Pe ? "mt-1" : "mt-5";
9887
9889
  }, []), k = {
9888
- searchString: f,
9889
- sortedCell: g,
9890
+ searchString: g,
9891
+ sortedCell: f,
9890
9892
  sortDirection: (() => {
9891
- switch (g) {
9893
+ switch (f) {
9892
9894
  case Gs:
9893
9895
  return m;
9894
9896
  case kn:
@@ -9926,6 +9928,7 @@ function gs({
9926
9928
  }
9927
9929
  }), [r?.username]);
9928
9930
  return mh({
9931
+ currentChatId: u,
9929
9932
  setChatId: c,
9930
9933
  setInitialMessages: d,
9931
9934
  dispatchChat: X,