@versini/sassysaint 8.105.1 → 8.106.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 (30) hide show
  1. package/dist/chunks/{AboutChangelog.BOo6xnQU.js → AboutChangelog.s7GI6rKD.js} +2 -2
  2. package/dist/chunks/{AboutEntry.BJrEy0cG.js → AboutEntry.C1pRBz7A.js} +7 -7
  3. package/dist/chunks/{App.CJwakCK6.js → App.BeuOuicv.js} +257 -257
  4. package/dist/chunks/{Chart.Du7EB2GA.js → Chart.C88S0q6n.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.C0hLrPzq.js → ChatBubbleAssistant.nUmdAzup.js} +5 -5
  6. package/dist/chunks/{ChatBubbleUser.CkbwjjY3.js → ChatBubbleUser.BUuPXYPp.js} +3 -3
  7. package/dist/chunks/{ChatHistoryTable.B-BpH1Lu.js → ChatHistoryTable.BIjlz3xY.js} +23 -25
  8. package/dist/chunks/{HistoryEntry.DaXJ8Q-f.js → HistoryEntry.B-078Lxf.js} +6 -6
  9. package/dist/chunks/{LoginEntry.O7xxzGCC.js → LoginEntry.B2RvYN-T.js} +4 -4
  10. package/dist/chunks/{LogoEntry.DJZqUqg7.js → LogoEntry.1MaZ0gB8.js} +3 -4
  11. package/dist/chunks/{MemoriesEntry.2v0Kr4-K.js → MemoriesEntry.DpL1iLZb.js} +177 -169
  12. package/dist/chunks/{ProfileEntry.DL1hPr1o.js → ProfileEntry.T8wth0Is.js} +4 -4
  13. package/dist/chunks/{SettingsEntry.BBz6Yx2v.js → SettingsEntry.CjOxw1Yx.js} +5 -5
  14. package/dist/chunks/{Table.KI0EOT13.js → Table.Bgj47jSZ.js} +127 -105
  15. package/dist/chunks/{UsageEntry.HApOoMRD.js → UsageEntry.B4I_GNgi.js} +5 -5
  16. package/dist/chunks/{index.BsjHgnVB.js → index.B-dNm2To.js} +1 -1
  17. package/dist/chunks/{index.DedGiEIm.js → index.B3dMRcN0.js} +3 -3
  18. package/dist/chunks/{index.CEBjkMRt.js → index.BBcCFGIa.js} +1 -1
  19. package/dist/chunks/{index.DTy8CE3T.js → index.BV0ooasI.js} +1 -1
  20. package/dist/chunks/{index.DMqMfGAO.js → index.C09CfrST.js} +1 -1
  21. package/dist/chunks/{index.DeAiHvMD.js → index.CzK9z_fW.js} +2 -2
  22. package/dist/chunks/{index.DAhP7ZLu.js → index.DaJTH3fN.js} +1 -1
  23. package/dist/chunks/{index.Bh0XSa-M.js → index.DbqNbLqk.js} +1 -1
  24. package/dist/chunks/{index.G5bXk8Yy.js → index.DlzoJhEl.js} +994 -994
  25. package/dist/chunks/{index.rGG3tlcN.js → index.lXY3xvX_.js} +1 -1
  26. package/dist/chunks/{useMarkdown.CTOUBBx6.js → useMarkdown.BNKEX2AA.js} +7 -7
  27. package/dist/components/SassySaint/SassySaint.js +1 -1
  28. package/dist/index.js +4 -4
  29. package/dist/style.css +1 -1
  30. package/package.json +3 -3
@@ -1,10 +1,10 @@
1
1
  import { jsx as h, jsxs as $, Fragment as ct } from "react/jsx-runtime";
2
- import { ACTION_SORT as au, ACTION_SEARCH as iu, ACTION_RESET_PROMPT as Za, ACTION_TOGGLE_PROMPT as Fa, LOCAL_STORAGE_PREFIX as je, LOCAL_STORAGE_CHAT_ID as Vn, n as $e, isDev as cu, isTauri as on, useChat as lu, DEFAULT_ICON_ACTION_SIZE as Qe, useUserPreferences as vt, serverUrl as Ua, useEntitlements as No, useSaveChat as uu, LOCAL_STORAGE_PRIVATE_DISCLOSURE as du, w as er, LOCAL_STORAGE_REASONING_DISCLOSURE as fu, PROMPT_EDITABLE_AREA_CLASSNAME as pu, PROMPT_CLASSNAME as mu, j as ja, ERROR_MESSAGE as hu, o as sn, U as gu, INPUT_BOTTOM_OFFSET_IPHONE as vu, INPUT_BOTTOM_OFFSET_IPAD as yu, INPUT_BOTTOM_OFFSET as Ba, INPUT_BOTTOM_OFFSET_EXTRA as zr, getLayoutPaddingClass as lo, canEvaluateModels as ls, k as wu, a as bu, i as _u, s as Eu, x as Su, p as Zr, setNewProvider as us, useQueryClient as Iu, n$1 as Va, useServerCapabilities as Cu, getMessageContaintWrapperClass as Tu, UI_FOOTER_BUFFER as Ha, UI_BUTTON_SCROLL_BUFFER as xu, UI_DEFAULT_MAIN_HEIGHT as ds, e as Au, applyOledMode as Ru, UI_DEFAULT_MAIN_HEIGHT_IPHONE as Ou, y as fs, v as Nu, LOCAL_STORAGE_SORT as Mu, LOCAL_STORAGE_SEARCH as Pu, LOCAL_STORAGE_OLED_MODE as ku, LOCAL_STORAGE_FULL_SCREEN as Du, LOCAL_STORAGE_SORT_TIMESTAMP as $u, LOCAL_STORAGE_SORT_TOKEN_USAGE as Lu } from "./index.G5bXk8Yy.js";
2
+ import { ACTION_SORT as au, ACTION_SEARCH as iu, ACTION_RESET_PROMPT as Za, ACTION_TOGGLE_PROMPT as Fa, LOCAL_STORAGE_PREFIX as je, LOCAL_STORAGE_CHAT_ID as Vn, n as $e, isDev as cu, isTauri as on, useChat as lu, DEFAULT_ICON_ACTION_SIZE as Qe, useUserPreferences as vt, serverUrl as Ua, useEntitlements as No, useSaveChat as uu, LOCAL_STORAGE_PRIVATE_DISCLOSURE as du, w as er, LOCAL_STORAGE_REASONING_DISCLOSURE as fu, PROMPT_EDITABLE_AREA_CLASSNAME as pu, PROMPT_CLASSNAME as mu, j as ja, ERROR_MESSAGE as hu, o as sn, U as gu, INPUT_BOTTOM_OFFSET_IPHONE as vu, INPUT_BOTTOM_OFFSET_IPAD as yu, INPUT_BOTTOM_OFFSET as Ba, INPUT_BOTTOM_OFFSET_EXTRA as zr, getLayoutPaddingClass as lo, canEvaluateModels as ls, k as wu, a as bu, i as _u, s as Eu, x as Su, p as Zr, setNewProvider as us, useQueryClient as Iu, n$1 as Va, useServerCapabilities as Cu, getMessageContaintWrapperClass as Tu, UI_FOOTER_BUFFER as Ha, UI_BUTTON_SCROLL_BUFFER as xu, UI_DEFAULT_MAIN_HEIGHT as ds, e as Au, applyOledMode as Ru, UI_DEFAULT_MAIN_HEIGHT_IPHONE as Ou, y as fs, v as Nu, LOCAL_STORAGE_SORT as Mu, LOCAL_STORAGE_SEARCH as ku, LOCAL_STORAGE_OLED_MODE as Pu, LOCAL_STORAGE_FULL_SCREEN as Du, LOCAL_STORAGE_SORT_TIMESTAMP as $u, LOCAL_STORAGE_SORT_TOKEN_USAGE as Lu } from "./index.DlzoJhEl.js";
3
3
  import * as w from "react";
4
4
  import st, { useSyncExternalStore as Hn, useCallback as G, useEffect as U, useRef as X, useState as B, createContext as Wa, useContext as ue, useMemo as xe, forwardRef as wr, useId as Ga, useLayoutEffect as vn, cloneElement as Ka, Suspense as tr, lazy as nt, useReducer as Rn } from "react";
5
- import { e as tn, ChatContext as Le, useTheme as Ke, ButtonIcon as rt, IconAddLight as zu, IconCloseLight as Zu, IconEditLight as Fu, Button as Ya, L as uo, j as Ft, IconLockedLight as Uu, IconUnlockedLight as ju, IconNext as Bu, IconSelected as Vu, IconUnSelected as Hu, PromptsContext as Mo, IconBookSparklesLight as Wu, IconRewrite as Gu, IconProofread as Ku, IconMagic as Yu, IconLightBulbLight as Ju, IconSendLight as Xu, INPUT_PLACEHOLDER_TEXT_IN_SESSION as Ja, INPUT_PLACEHOLDER_TEXT_MORNING as qu, INPUT_PLACEHOLDER_TEXT_TODAY as Qu, INPUT_PLACEHOLDER_TEXT_AFTERNOON as ed, INPUT_PLACEHOLDER_TEXT_EVENING as td, INPUT_PLACEHOLDER_TEXT_NIGHT as nd, INPUT_PLACEHOLDER_TEXT_DEFAULT as rd, IconClose as od, AppContext as yn, useUniqueId as sd, CLIPBOARD_PROMPT as ps, FOOTER_DISCLAIMERS as ms, useResizeObserver as Xa, APP_SET_FOOTER_HEIGHT as ad, FOOTER_TOP as fo, FOOTER_BOTTOM as nn, APP_SET_FOOTER_POSITION as Fr, IconOpenAI as id, IconAnthropic as cd, IconGoogleGemini as ld, TOAST_PROVIDER_CHANGED as hs, LOG_OUT as gs, IconProfile as ud, IconSliders as dd, IconHistory as fd, IconEditUser as pd, IconChart as md, IconInfo as hd, IconBack as gd, IconSettings as vd, Logo as yd, appReducer as wd, APP_SET_OLED_MODE as bd, APP_SET_FULL_SCREEN as _d, APP_SET_THEME_MODE as Ed, APP_SET_THEME_PALETTE as Sd, HistoryContext as Id, APP_CLASSNAME as Cd, TOAST_CACHE_ENABLED as Td, TOAST_CACHE_DISABLED as xd } from "./LogoEntry.DJZqUqg7.js";
5
+ import { e as tn, ChatContext as Le, useTheme as Ke, ButtonIcon as rt, IconAddLight as zu, IconCloseLight as Zu, IconEditLight as Fu, Button as Ya, L as uo, j as Ft, IconLockedLight as Uu, IconUnlockedLight as ju, IconNext as Bu, IconSelected as Vu, IconUnSelected as Hu, PromptsContext as Mo, IconBookSparklesLight as Wu, IconRewrite as Gu, IconProofread as Ku, IconMagic as Yu, IconLightBulbLight as Ju, IconSendLight as Xu, INPUT_PLACEHOLDER_TEXT_IN_SESSION as Ja, INPUT_PLACEHOLDER_TEXT_MORNING as qu, INPUT_PLACEHOLDER_TEXT_TODAY as Qu, INPUT_PLACEHOLDER_TEXT_AFTERNOON as ed, INPUT_PLACEHOLDER_TEXT_EVENING as td, INPUT_PLACEHOLDER_TEXT_NIGHT as nd, INPUT_PLACEHOLDER_TEXT_DEFAULT as rd, IconClose as od, AppContext as yn, useUniqueId as sd, CLIPBOARD_PROMPT as ps, FOOTER_DISCLAIMERS as ms, useResizeObserver as Xa, APP_SET_FOOTER_HEIGHT as ad, FOOTER_TOP as fo, FOOTER_BOTTOM as nn, APP_SET_FOOTER_POSITION as Fr, IconOpenAI as id, IconAnthropic as cd, IconGoogleGemini as ld, TOAST_PROVIDER_CHANGED as hs, LOG_OUT as gs, IconProfile as ud, IconSliders as dd, IconHistory as fd, IconEditUser as pd, IconChart as md, IconInfo as hd, IconBack as gd, IconSettings as vd, Logo as yd, appReducer as wd, APP_SET_OLED_MODE as bd, APP_SET_FULL_SCREEN as _d, APP_SET_THEME_MODE as Ed, APP_SET_THEME_PALETTE as Sd, HistoryContext as Id, APP_CLASSNAME as Cd, TOAST_CACHE_ENABLED as Td, TOAST_CACHE_DISABLED as xd } from "./LogoEntry.1MaZ0gB8.js";
6
6
  import Z, { clsx as lt } from "clsx";
7
- import { useMergeRefs as Ad, FloatingPortal as Rd, FloatingOverlay as Od, FloatingFocusManager as Nd, useFloating as Md, useClick as Pd, useDismiss as kd, useRole as Dd, useInteractions as $d } from "@floating-ui/react";
7
+ import { useMergeRefs as Ad, FloatingPortal as Rd, FloatingOverlay as Od, FloatingFocusManager as Nd, useFloating as Md, useClick as kd, useDismiss as Pd, useRole as Dd, useInteractions as $d } from "@floating-ui/react";
8
8
  import * as qa from "react-dom";
9
9
  import Ld from "react-dom";
10
10
  /*!
@@ -82,7 +82,7 @@ try {
82
82
  });
83
83
  } catch {
84
84
  }
85
- const v0 = (e, t) => {
85
+ const vI = (e, t) => {
86
86
  let n;
87
87
  return (...r) => {
88
88
  window.clearTimeout(n), n = window.setTimeout(() => e(...r), t);
@@ -99,14 +99,14 @@ const v0 = (e, t) => {
99
99
  "iPad"
100
100
  ].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = Fd(), n = navigator.maxTouchPoints > 1;
101
101
  return e && t && n;
102
- }, ti = () => window.matchMedia("(display-mode: standalone)").matches || window.navigator.standalone === !0, y0 = (e, t) => t === 1 ? e : `${e}s`, w0 = new Intl.NumberFormat("en", {
102
+ }, ti = () => window.matchMedia("(display-mode: standalone)").matches || window.navigator.standalone === !0, yI = (e, t) => t === 1 ? e : `${e}s`, wI = new Intl.NumberFormat("en", {
103
103
  signDisplay: "never",
104
104
  maximumFractionDigits: 0
105
- }), b0 = (e) => window.btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g, function(n, r) {
105
+ }), bI = (e) => window.btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g, function(n, r) {
106
106
  return String.fromCharCode(+`0x${r}`);
107
- })), _0 = (e) => decodeURIComponent(window.atob(e).split("").map(function(t) {
107
+ })), _I = (e) => decodeURIComponent(window.atob(e).split("").map(function(t) {
108
108
  return `%${`00${t.charCodeAt(0).toString(16)}`.slice(-2)}`;
109
- }).join("")), E0 = (e) => {
109
+ }).join("")), EI = (e) => {
110
110
  if (!e)
111
111
  return "";
112
112
  const t = e.replace(/([A-Z])/g, " $1").replace(/\s+/g, " ").trim();
@@ -370,7 +370,7 @@ function gi(e) {
370
370
  function qd(e, t) {
371
371
  return typeof t == "bigint" ? t.toString() : t;
372
372
  }
373
- function Po(e) {
373
+ function ko(e) {
374
374
  return {
375
375
  get value() {
376
376
  {
@@ -380,7 +380,7 @@ function Po(e) {
380
380
  }
381
381
  };
382
382
  }
383
- function ko(e) {
383
+ function Po(e) {
384
384
  return e == null;
385
385
  }
386
386
  function Do(e) {
@@ -424,7 +424,7 @@ const vi = Error.captureStackTrace ? Error.captureStackTrace : (...e) => {
424
424
  function rr(e) {
425
425
  return typeof e == "object" && e !== null && !Array.isArray(e);
426
426
  }
427
- const ef = Po(() => {
427
+ const ef = ko(() => {
428
428
  if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
429
429
  return !1;
430
430
  try {
@@ -691,7 +691,7 @@ const pf = (e) => (t, n, r, o) => {
691
691
  function xf() {
692
692
  return new RegExp(Tf, "u");
693
693
  }
694
- const Af = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Rf = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/, Of = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Nf = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Mf = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Si = /^[A-Za-z0-9_-]*$/, Pf = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/, kf = /^\+(?:[0-9]){6,14}[0-9]$/, Ii = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Df = /* @__PURE__ */ new RegExp(`^${Ii}$`);
694
+ const Af = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Rf = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/, Of = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Nf = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Mf = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Si = /^[A-Za-z0-9_-]*$/, kf = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/, Pf = /^\+(?:[0-9]){6,14}[0-9]$/, Ii = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Df = /* @__PURE__ */ new RegExp(`^${Ii}$`);
695
695
  function Ci(e) {
696
696
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
697
697
  return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
@@ -825,7 +825,7 @@ const zf = (e) => {
825
825
  var n;
826
826
  be.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
827
827
  const o = r.value;
828
- return !ko(o) && o.length !== void 0;
828
+ return !Po(o) && o.length !== void 0;
829
829
  }), e._zod.onattach.push((r) => {
830
830
  const o = r._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
831
831
  t.maximum < o && (r._zod.bag.maximum = t.maximum);
@@ -848,7 +848,7 @@ const zf = (e) => {
848
848
  var n;
849
849
  be.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
850
850
  const o = r.value;
851
- return !ko(o) && o.length !== void 0;
851
+ return !Po(o) && o.length !== void 0;
852
852
  }), e._zod.onattach.push((r) => {
853
853
  const o = r._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
854
854
  t.minimum > o && (r._zod.bag.minimum = t.minimum);
@@ -871,7 +871,7 @@ const zf = (e) => {
871
871
  var n;
872
872
  be.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
873
873
  const o = r.value;
874
- return !ko(o) && o.length !== void 0;
874
+ return !Po(o) && o.length !== void 0;
875
875
  }), e._zod.onattach.push((r) => {
876
876
  const o = r._zod.bag;
877
877
  o.minimum = t.length, o.maximum = t.length, o.length = t.length;
@@ -1110,7 +1110,7 @@ const op = {
1110
1110
  code: "invalid_format",
1111
1111
  format: "url",
1112
1112
  note: "Invalid hostname",
1113
- pattern: Pf.source,
1113
+ pattern: kf.source,
1114
1114
  input: n.value,
1115
1115
  inst: e,
1116
1116
  continue: !t.abort
@@ -1246,7 +1246,7 @@ const Tp = /* @__PURE__ */ I("$ZodBase64URL", (e, t) => {
1246
1246
  });
1247
1247
  };
1248
1248
  }), xp = /* @__PURE__ */ I("$ZodE164", (e, t) => {
1249
- t.pattern ?? (t.pattern = kf), te.init(e, t);
1249
+ t.pattern ?? (t.pattern = Pf), te.init(e, t);
1250
1250
  });
1251
1251
  function Ap(e, t = null) {
1252
1252
  try {
@@ -1318,9 +1318,9 @@ const Rp = /* @__PURE__ */ I("$ZodJWT", (e, t) => {
1318
1318
  inst: e
1319
1319
  }), n;
1320
1320
  };
1321
- }), Pp = /* @__PURE__ */ I("$ZodUnknown", (e, t) => {
1321
+ }), kp = /* @__PURE__ */ I("$ZodUnknown", (e, t) => {
1322
1322
  Q.init(e, t), e._zod.parse = (n) => n;
1323
- }), kp = /* @__PURE__ */ I("$ZodNever", (e, t) => {
1323
+ }), Pp = /* @__PURE__ */ I("$ZodNever", (e, t) => {
1324
1324
  Q.init(e, t), e._zod.parse = (n, r) => (n.issues.push({
1325
1325
  expected: "never",
1326
1326
  code: "invalid_type",
@@ -1361,7 +1361,7 @@ function Ss(e, t, n, r) {
1361
1361
  }
1362
1362
  const $p = /* @__PURE__ */ I("$ZodObject", (e, t) => {
1363
1363
  Q.init(e, t);
1364
- const n = Po(() => {
1364
+ const n = ko(() => {
1365
1365
  const u = Object.keys(t.shape);
1366
1366
  for (const m of u)
1367
1367
  if (!(t.shape[m] instanceof Q))
@@ -1535,7 +1535,7 @@ const Ni = /* @__PURE__ */ I("$ZodUnion", (e, t) => {
1535
1535
  }
1536
1536
  return o;
1537
1537
  });
1538
- const r = Po(() => {
1538
+ const r = ko(() => {
1539
1539
  const o = t.options, s = /* @__PURE__ */ new Map();
1540
1540
  for (const i of o) {
1541
1541
  const a = i._zod.propValues[t.discriminator];
@@ -2139,7 +2139,7 @@ function jr(e, t) {
2139
2139
  inclusive: !0
2140
2140
  });
2141
2141
  }
2142
- function Ps(e, t) {
2142
+ function ks(e, t) {
2143
2143
  return new Ai({
2144
2144
  check: "greater_than",
2145
2145
  ...N(t),
@@ -2155,14 +2155,14 @@ function Br(e, t) {
2155
2155
  inclusive: !0
2156
2156
  });
2157
2157
  }
2158
- function ks(e, t) {
2158
+ function Ps(e, t) {
2159
2159
  return new Hf({
2160
2160
  check: "multiple_of",
2161
2161
  ...N(t),
2162
2162
  value: e
2163
2163
  });
2164
2164
  }
2165
- function Pi(e, t) {
2165
+ function ki(e, t) {
2166
2166
  return new Gf({
2167
2167
  check: "max_length",
2168
2168
  ...N(t),
@@ -2176,7 +2176,7 @@ function sr(e, t) {
2176
2176
  minimum: e
2177
2177
  });
2178
2178
  }
2179
- function ki(e, t) {
2179
+ function Pi(e, t) {
2180
2180
  return new Yf({
2181
2181
  check: "length_equals",
2182
2182
  ...N(t),
@@ -2191,14 +2191,14 @@ function Mm(e, t) {
2191
2191
  pattern: e
2192
2192
  });
2193
2193
  }
2194
- function Pm(e) {
2194
+ function km(e) {
2195
2195
  return new Xf({
2196
2196
  check: "string_format",
2197
2197
  format: "lowercase",
2198
2198
  ...N(e)
2199
2199
  });
2200
2200
  }
2201
- function km(e) {
2201
+ function Pm(e) {
2202
2202
  return new qf({
2203
2203
  check: "string_format",
2204
2204
  format: "uppercase",
@@ -2844,7 +2844,7 @@ const eh = (e, t) => {
2844
2844
  ]
2845
2845
  }
2846
2846
  // { parent: true }
2847
- ), e.clone = (n, r) => Rt(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => th(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => rh(e, n, r), e.parseAsync = async (n, r) => nh(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => Di(e, n, r), e.spa = e.safeParseAsync, e.refine = (n, r) => e.check(qh(n, r)), e.superRefine = (n) => e.check(Qh(n)), e.overwrite = (n) => e.check(bn(n)), e.optional = () => zs(e), e.nullable = () => Zs(e), e.nullish = () => zs(Zs(e)), e.nonoptional = (n) => Bh(e, n), e.array = () => Ht(e), e.or = (n) => Re([e, n]), e.and = (n) => Ph(e, n), e.transform = (n) => Fs(e, Lh(n)), e.default = (n) => Fh(e, n), e.prefault = (n) => jh(e, n), e.catch = (n) => Hh(e, n), e.pipe = (n) => Fs(e, n), e.readonly = () => Kh(e), e.describe = (n) => {
2847
+ ), e.clone = (n, r) => Rt(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => th(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => rh(e, n, r), e.parseAsync = async (n, r) => nh(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => Di(e, n, r), e.spa = e.safeParseAsync, e.refine = (n, r) => e.check(qh(n, r)), e.superRefine = (n) => e.check(Qh(n)), e.overwrite = (n) => e.check(bn(n)), e.optional = () => zs(e), e.nullable = () => Zs(e), e.nullish = () => zs(Zs(e)), e.nonoptional = (n) => Bh(e, n), e.array = () => Ht(e), e.or = (n) => Re([e, n]), e.and = (n) => kh(e, n), e.transform = (n) => Fs(e, Lh(n)), e.default = (n) => Fh(e, n), e.prefault = (n) => jh(e, n), e.catch = (n) => Hh(e, n), e.pipe = (n) => Fs(e, n), e.readonly = () => Kh(e), e.describe = (n) => {
2848
2848
  const r = e.clone();
2849
2849
  return Jt.add(r, { description: n }), r;
2850
2850
  }, Object.defineProperty(e, "description", {
@@ -2860,7 +2860,7 @@ const eh = (e, t) => {
2860
2860
  }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), $i = /* @__PURE__ */ I("_ZodString", (e, t) => {
2861
2861
  Lo.init(e, t), ne.init(e, t);
2862
2862
  const n = e._zod.bag;
2863
- e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(Mm(...r)), e.includes = (...r) => e.check(Dm(...r)), e.startsWith = (...r) => e.check($m(...r)), e.endsWith = (...r) => e.check(Lm(...r)), e.min = (...r) => e.check(sr(...r)), e.max = (...r) => e.check(Pi(...r)), e.length = (...r) => e.check(ki(...r)), e.nonempty = (...r) => e.check(sr(1, ...r)), e.lowercase = (r) => e.check(Pm(r)), e.uppercase = (r) => e.check(km(r)), e.trim = () => e.check(Zm()), e.normalize = (...r) => e.check(zm(...r)), e.toLowerCase = () => e.check(Fm()), e.toUpperCase = () => e.check(Um());
2863
+ e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(Mm(...r)), e.includes = (...r) => e.check(Dm(...r)), e.startsWith = (...r) => e.check($m(...r)), e.endsWith = (...r) => e.check(Lm(...r)), e.min = (...r) => e.check(sr(...r)), e.max = (...r) => e.check(ki(...r)), e.length = (...r) => e.check(Pi(...r)), e.nonempty = (...r) => e.check(sr(1, ...r)), e.lowercase = (r) => e.check(km(r)), e.uppercase = (r) => e.check(Pm(r)), e.trim = () => e.check(Zm()), e.normalize = (...r) => e.check(zm(...r)), e.toLowerCase = () => e.check(Fm()), e.toUpperCase = () => e.check(Um());
2864
2864
  }), oh = /* @__PURE__ */ I("ZodString", (e, t) => {
2865
2865
  Lo.init(e, t), $i.init(e, t), e.email = (n) => e.check(tm(sh, n)), e.url = (n) => e.check(am(ah, n)), e.jwt = (n) => e.check(_m(_h, n)), e.emoji = (n) => e.check(im(ih, n)), e.guid = (n) => e.check(Ns($s, n)), e.uuid = (n) => e.check(nm(Mn, n)), e.uuidv4 = (n) => e.check(rm(Mn, n)), e.uuidv6 = (n) => e.check(om(Mn, n)), e.uuidv7 = (n) => e.check(sm(Mn, n)), e.nanoid = (n) => e.check(cm(ch, n)), e.guid = (n) => e.check(Ns($s, n)), e.cuid = (n) => e.check(lm(lh, n)), e.cuid2 = (n) => e.check(um(uh, n)), e.ulid = (n) => e.check(dm(dh, n)), e.base64 = (n) => e.check(ym(yh, n)), e.base64url = (n) => e.check(wm(wh, n)), e.xid = (n) => e.check(fm(fh, n)), e.ksuid = (n) => e.check(pm(ph, n)), e.ipv4 = (n) => e.check(mm(mh, n)), e.ipv6 = (n) => e.check(hm(hh, n)), e.cidrv4 = (n) => e.check(gm(gh, n)), e.cidrv6 = (n) => e.check(vm(vh, n)), e.e164 = (n) => e.check(bm(bh, n)), e.datetime = (n) => e.check(Gm(n)), e.date = (n) => e.check(Ym(n)), e.time = (n) => e.check(Xm(n)), e.duration = (n) => e.check(Qm(n));
2866
2866
  });
@@ -2908,7 +2908,7 @@ const oe = /* @__PURE__ */ I("ZodStringFormat", (e, t) => {
2908
2908
  }), _h = /* @__PURE__ */ I("ZodJWT", (e, t) => {
2909
2909
  Rp.init(e, t), oe.init(e, t);
2910
2910
  }), Li = /* @__PURE__ */ I("ZodNumber", (e, t) => {
2911
- Oi.init(e, t), ne.init(e, t), e.gt = (r, o) => e.check(Ps(r, o)), e.gte = (r, o) => e.check(Br(r, o)), e.min = (r, o) => e.check(Br(r, o)), e.lt = (r, o) => e.check(Ms(r, o)), e.lte = (r, o) => e.check(jr(r, o)), e.max = (r, o) => e.check(jr(r, o)), e.int = (r) => e.check(Ls(r)), e.safe = (r) => e.check(Ls(r)), e.positive = (r) => e.check(Ps(0, r)), e.nonnegative = (r) => e.check(Br(0, r)), e.negative = (r) => e.check(Ms(0, r)), e.nonpositive = (r) => e.check(jr(0, r)), e.multipleOf = (r, o) => e.check(ks(r, o)), e.step = (r, o) => e.check(ks(r, o)), e.finite = () => e;
2911
+ Oi.init(e, t), ne.init(e, t), e.gt = (r, o) => e.check(ks(r, o)), e.gte = (r, o) => e.check(Br(r, o)), e.min = (r, o) => e.check(Br(r, o)), e.lt = (r, o) => e.check(Ms(r, o)), e.lte = (r, o) => e.check(jr(r, o)), e.max = (r, o) => e.check(jr(r, o)), e.int = (r) => e.check(Ls(r)), e.safe = (r) => e.check(Ls(r)), e.positive = (r) => e.check(ks(0, r)), e.nonnegative = (r) => e.check(Br(0, r)), e.negative = (r) => e.check(Ms(0, r)), e.nonpositive = (r) => e.check(jr(0, r)), e.multipleOf = (r, o) => e.check(Ps(r, o)), e.step = (r, o) => e.check(Ps(r, o)), e.finite = () => e;
2912
2912
  const n = e._zod.bag;
2913
2913
  e.minValue = Math.max(n.minimum ?? Number.NEGATIVE_INFINITY, n.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(n.maximum ?? Number.POSITIVE_INFINITY, n.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? 0.5), e.isFinite = !0, e.format = n.format ?? null;
2914
2914
  });
@@ -2934,19 +2934,19 @@ function Th(e) {
2934
2934
  return Rm(Ch, e);
2935
2935
  }
2936
2936
  const xh = /* @__PURE__ */ I("ZodUnknown", (e, t) => {
2937
- Pp.init(e, t), ne.init(e, t);
2937
+ kp.init(e, t), ne.init(e, t);
2938
2938
  });
2939
2939
  function Ze() {
2940
2940
  return Om(xh);
2941
2941
  }
2942
2942
  const Ah = /* @__PURE__ */ I("ZodNever", (e, t) => {
2943
- kp.init(e, t), ne.init(e, t);
2943
+ Pp.init(e, t), ne.init(e, t);
2944
2944
  });
2945
2945
  function zi(e) {
2946
2946
  return Nm(Ah, e);
2947
2947
  }
2948
2948
  const Rh = /* @__PURE__ */ I("ZodArray", (e, t) => {
2949
- Dp.init(e, t), ne.init(e, t), e.element = t.element, e.min = (n, r) => e.check(sr(n, r)), e.nonempty = (n) => e.check(sr(1, n)), e.max = (n, r) => e.check(Pi(n, r)), e.length = (n, r) => e.check(ki(n, r)), e.unwrap = () => e.element;
2949
+ Dp.init(e, t), ne.init(e, t), e.element = t.element, e.min = (n, r) => e.check(sr(n, r)), e.nonempty = (n) => e.check(sr(1, n)), e.max = (n, r) => e.check(ki(n, r)), e.length = (n, r) => e.check(Pi(n, r)), e.unwrap = () => e.element;
2950
2950
  });
2951
2951
  function Ht(e, t) {
2952
2952
  return jm(Rh, e, t);
@@ -2998,18 +2998,18 @@ function Nh(e, t, n) {
2998
2998
  const Mh = /* @__PURE__ */ I("ZodIntersection", (e, t) => {
2999
2999
  zp.init(e, t), ne.init(e, t);
3000
3000
  });
3001
- function Ph(e, t) {
3001
+ function kh(e, t) {
3002
3002
  return new Mh({
3003
3003
  type: "intersection",
3004
3004
  left: e,
3005
3005
  right: t
3006
3006
  });
3007
3007
  }
3008
- const kh = /* @__PURE__ */ I("ZodRecord", (e, t) => {
3008
+ const Ph = /* @__PURE__ */ I("ZodRecord", (e, t) => {
3009
3009
  Zp.init(e, t), ne.init(e, t), e.keyType = t.keyType, e.valueType = t.valueType;
3010
3010
  });
3011
3011
  function ho(e, t, n) {
3012
- return new kh({
3012
+ return new Ph({
3013
3013
  type: "record",
3014
3014
  keyType: e,
3015
3015
  valueType: t,
@@ -3392,7 +3392,7 @@ function ug({
3392
3392
  })
3393
3393
  );
3394
3394
  }
3395
- async function kt(e) {
3395
+ async function Pt(e) {
3396
3396
  return typeof e == "function" && (e = e()), Promise.resolve(e);
3397
3397
  }
3398
3398
  function Wn(e) {
@@ -3970,7 +3970,7 @@ var Mg = (e, t) => {
3970
3970
  );
3971
3971
  return n.length ? { anyOf: n } : void 0;
3972
3972
  };
3973
- function Pg(e, t) {
3973
+ function kg(e, t) {
3974
3974
  if (["ZodString", "ZodNumber", "ZodBigInt", "ZodBoolean", "ZodNull"].includes(
3975
3975
  e.innerType._def.typeName
3976
3976
  ) && (!e.innerType._def.checks || !e.innerType._def.checks.length))
@@ -3986,7 +3986,7 @@ function Pg(e, t) {
3986
3986
  });
3987
3987
  return n && { anyOf: [n, { type: "null" }] };
3988
3988
  }
3989
- function kg(e) {
3989
+ function Pg(e) {
3990
3990
  const t = {
3991
3991
  type: "number"
3992
3992
  };
@@ -4134,7 +4134,7 @@ var Hg = (e, t) => J(e.innerType._def, t), Wg = (e, t, n) => {
4134
4134
  case z.ZodString:
4135
4135
  return Gi(e, n);
4136
4136
  case z.ZodNumber:
4137
- return kg(e);
4137
+ return Pg(e);
4138
4138
  case z.ZodObject:
4139
4139
  return Dg(e, n);
4140
4140
  case z.ZodBigInt:
@@ -4165,7 +4165,7 @@ var Hg = (e, t) => J(e.innerType._def, t), Wg = (e, t, n) => {
4165
4165
  case z.ZodNativeEnum:
4166
4166
  return Ag(e);
4167
4167
  case z.ZodNullable:
4168
- return Pg(e, n);
4168
+ return kg(e, n);
4169
4169
  case z.ZodOptional:
4170
4170
  return zg(e, n);
4171
4171
  case z.ZodMap:
@@ -5041,7 +5041,7 @@ function bv({
5041
5041
  function _(y) {
5042
5042
  var C, T;
5043
5043
  const S = l.message.parts.find(
5044
- (P) => P.type === "dynamic-tool" && P.toolCallId === y.toolCallId
5044
+ (k) => k.type === "dynamic-tool" && k.toolCallId === y.toolCallId
5045
5045
  ), x = y, O = S;
5046
5046
  S != null ? (S.state = y.state, O.toolName = y.toolName, O.input = x.input, O.output = x.output, O.errorText = x.errorText, O.rawInput = (C = x.rawInput) != null ? C : O.rawInput, O.preliminary = x.preliminary, O.providerExecuted = (T = x.providerExecuted) != null ? T : S.providerExecuted, x.providerMetadata != null && S.state === "input-available" && (S.callProviderMetadata = x.providerMetadata)) : l.message.parts.push({
5047
5047
  type: "dynamic-tool",
@@ -5476,7 +5476,7 @@ var xv = class {
5476
5476
  ...t
5477
5477
  }) {
5478
5478
  var n, r, o, s, i;
5479
- const a = await kt(this.body), c = await kt(this.headers), l = await kt(this.credentials), d = {
5479
+ const a = await Pt(this.body), c = await Pt(this.headers), l = await Pt(this.credentials), d = {
5480
5480
  ...Ct(c),
5481
5481
  ...Ct(t.headers)
5482
5482
  }, u = await ((n = this.prepareSendMessagesRequest) == null ? void 0 : n.call(this, {
@@ -5520,7 +5520,7 @@ var xv = class {
5520
5520
  }
5521
5521
  async reconnectToStream(e) {
5522
5522
  var t, n, r, o, s;
5523
- const i = await kt(this.body), a = await kt(this.headers), c = await kt(this.credentials), l = {
5523
+ const i = await Pt(this.body), a = await Pt(this.headers), c = await Pt(this.credentials), l = {
5524
5524
  ...Ct(a),
5525
5525
  ...Ct(e.headers)
5526
5526
  }, d = await ((t = this.prepareReconnectToStreamRequest) == null ? void 0 : t.call(this, {
@@ -5841,8 +5841,8 @@ const sc = async () => (Gr || (Gr = import(
5841
5841
  "./index.790ujKXR.js"
5842
5842
  )), Gr), ac = async () => (Kr || (Kr = import(
5843
5843
  /* webpackChunkName: "toast-utilities" */
5844
- "./index.G5bXk8Yy.js"
5845
- ).then((e) => e.utilities)), Kr), Pv = async () => {
5844
+ "./index.DlzoJhEl.js"
5845
+ ).then((e) => e.utilities)), Kr), kv = async () => {
5846
5846
  try {
5847
5847
  await Promise.all([sc(), ac()]);
5848
5848
  } catch {
@@ -5863,7 +5863,7 @@ const sc = async () => (Gr || (Gr = import(
5863
5863
  }, 100);
5864
5864
  } catch {
5865
5865
  }
5866
- }, lr = (e, t) => ic(e, "success", t), kv = (e, t) => ic(e, "error", t), xt = "CHAT_SET_STATUS", cc = "CHAT_SET_USAGE", un = "CHAT_SET_ATTACHMENTS", wo = "CHAT_SET_PRIVATE", lc = "CHAT_SET_PROVIDER", Bt = "CHAT_RESET", Dv = (e, t) => {
5866
+ }, lr = (e, t) => ic(e, "success", t), Pv = (e, t) => ic(e, "error", t), xt = "CHAT_SET_STATUS", cc = "CHAT_SET_USAGE", un = "CHAT_SET_ATTACHMENTS", wo = "CHAT_SET_PRIVATE", lc = "CHAT_SET_PROVIDER", Bt = "CHAT_RESET", Dv = (e, t) => {
5867
5867
  switch (t.type) {
5868
5868
  case cc:
5869
5869
  return {
@@ -6189,26 +6189,26 @@ const Hv = ({ chatId: e }) => {
6189
6189
  ), o.current = !1), r.current = e;
6190
6190
  }, [e, t.length, n]), null;
6191
6191
  };
6192
- let Pn = !1, Jr = null;
6192
+ let kn = !1, Jr = null;
6193
6193
  const ta = ({
6194
6194
  containerId: e,
6195
6195
  ...t
6196
6196
  }) => {
6197
- const [n, r] = B(Pn);
6197
+ const [n, r] = B(kn);
6198
6198
  return U(() => {
6199
- if (!Pn) {
6199
+ if (!kn) {
6200
6200
  const o = async () => {
6201
6201
  try {
6202
6202
  const { ToastContainer: i } = await import(
6203
6203
  /* webpackChunkName: "toast-react-toastify" */
6204
6204
  "./index.790ujKXR.js"
6205
6205
  );
6206
- Jr = i, Pn = !0, r(!0);
6206
+ Jr = i, kn = !0, r(!0);
6207
6207
  } catch (i) {
6208
6208
  console.error("Failed to load ToastContainer:", i);
6209
6209
  }
6210
6210
  }, s = () => {
6211
- Pn || o();
6211
+ kn || o();
6212
6212
  };
6213
6213
  return window.addEventListener("toast-request", s), () => {
6214
6214
  window.removeEventListener("toast-request", s);
@@ -6426,7 +6426,7 @@ function jo(e, t = [
6426
6426
  n
6427
6427
  ]);
6428
6428
  }
6429
- const ny = ["top", "right", "bottom", "left"], mt = Math.min, Se = Math.max, ur = Math.round, kn = Math.floor, He = (e) => ({
6429
+ const ny = ["top", "right", "bottom", "left"], mt = Math.min, Se = Math.max, ur = Math.round, Pn = Math.floor, He = (e) => ({
6430
6430
  x: e,
6431
6431
  y: e
6432
6432
  }), ry = {
@@ -6710,12 +6710,12 @@ const my = (e) => ({
6710
6710
  }, m = Ho(o), p = Vo(m), f = await i.getDimensions(l), v = m === "y", b = v ? "top" : "left", _ = v ? "bottom" : "right", E = v ? "clientHeight" : "clientWidth", y = s.reference[p] + s.reference[m] - g[m] - s.floating[p], C = g[m] - s.reference[m], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
6711
6711
  let S = T ? T[E] : 0;
6712
6712
  (!S || !await (i.isElement == null ? void 0 : i.isElement(T))) && (S = a.floating[E] || s.floating[p]);
6713
- const x = y / 2 - C / 2, O = S / 2 - f[p] / 2 - 1, P = mt(u[b], O), W = mt(u[_], O), A = P, D = S - f[p] - W, k = S / 2 - f[p] / 2 + x, q = Eo(A, k, D), F = !c.arrow && Wt(o) != null && k !== q && s.reference[p] / 2 - (k < A ? P : W) - f[p] / 2 < 0, V = F ? k < A ? k - A : k - D : 0;
6713
+ const x = y / 2 - C / 2, O = S / 2 - f[p] / 2 - 1, k = mt(u[b], O), W = mt(u[_], O), A = k, D = S - f[p] - W, P = S / 2 - f[p] / 2 + x, q = Eo(A, P, D), F = !c.arrow && Wt(o) != null && P !== q && s.reference[p] / 2 - (P < A ? k : W) - f[p] / 2 < 0, V = F ? P < A ? P - A : P - D : 0;
6714
6714
  return {
6715
6715
  [m]: g[m] + V,
6716
6716
  data: {
6717
6717
  [m]: q,
6718
- centerOffset: k - q - V,
6718
+ centerOffset: P - q - V,
6719
6719
  ...F && {
6720
6720
  alignmentOffset: V
6721
6721
  }
@@ -6750,35 +6750,35 @@ const my = (e) => ({
6750
6750
  const b = tt(o), _ = Be(a), E = tt(a) === a, y = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), C = g || (E || !f ? [dr(a)] : iy(a)), T = p !== "none";
6751
6751
  !g && T && C.push(...dy(a, f, p, y));
6752
6752
  const S = [a, ...C], x = await dn(t, v), O = [];
6753
- let P = ((r = s.flip) == null ? void 0 : r.overflows) || [];
6753
+ let k = ((r = s.flip) == null ? void 0 : r.overflows) || [];
6754
6754
  if (d && O.push(x[b]), u) {
6755
- const k = ay(o, i, y);
6756
- O.push(x[k[0]], x[k[1]]);
6755
+ const P = ay(o, i, y);
6756
+ O.push(x[P[0]], x[P[1]]);
6757
6757
  }
6758
- if (P = [...P, {
6758
+ if (k = [...k, {
6759
6759
  placement: o,
6760
6760
  overflows: O
6761
- }], !O.every((k) => k <= 0)) {
6761
+ }], !O.every((P) => P <= 0)) {
6762
6762
  var W, A;
6763
- const k = (((W = s.flip) == null ? void 0 : W.index) || 0) + 1, q = S[k];
6763
+ const P = (((W = s.flip) == null ? void 0 : W.index) || 0) + 1, q = S[P];
6764
6764
  if (q && (!(u === "alignment" ? _ !== Be(q) : !1) || // We leave the current main axis only if every placement on that axis
6765
6765
  // overflows the main axis.
6766
- P.every((L) => Be(L.placement) === _ ? L.overflows[0] > 0 : !0)))
6766
+ k.every((L) => Be(L.placement) === _ ? L.overflows[0] > 0 : !0)))
6767
6767
  return {
6768
6768
  data: {
6769
- index: k,
6770
- overflows: P
6769
+ index: P,
6770
+ overflows: k
6771
6771
  },
6772
6772
  reset: {
6773
6773
  placement: q
6774
6774
  }
6775
6775
  };
6776
- let F = (A = P.filter((V) => V.overflows[0] <= 0).sort((V, L) => V.overflows[1] - L.overflows[1])[0]) == null ? void 0 : A.placement;
6776
+ let F = (A = k.filter((V) => V.overflows[0] <= 0).sort((V, L) => V.overflows[1] - L.overflows[1])[0]) == null ? void 0 : A.placement;
6777
6777
  if (!F)
6778
6778
  switch (m) {
6779
6779
  case "bestFit": {
6780
6780
  var D;
6781
- const V = (D = P.filter((L) => {
6781
+ const V = (D = k.filter((L) => {
6782
6782
  if (T) {
6783
6783
  const R = Be(L.placement);
6784
6784
  return R === _ || // Create a bias to the `y` side axis due to horizontal
@@ -7029,8 +7029,8 @@ const yy = function(e) {
7029
7029
  const _ = f - d.top - d.bottom, E = p - d.left - d.right, y = mt(f - d[v], _), C = mt(p - d[b], E), T = !t.middlewareData.shift;
7030
7030
  let S = y, x = C;
7031
7031
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (x = E), (r = t.middlewareData.shift) != null && r.enabled.y && (S = _), T && !g) {
7032
- const P = Se(d.left, 0), W = Se(d.right, 0), A = Se(d.top, 0), D = Se(d.bottom, 0);
7033
- m ? x = p - 2 * (P !== 0 || W !== 0 ? P + W : Se(d.left, d.right)) : S = f - 2 * (A !== 0 || D !== 0 ? A + D : Se(d.top, d.bottom));
7032
+ const k = Se(d.left, 0), W = Se(d.right, 0), A = Se(d.top, 0), D = Se(d.bottom, 0);
7033
+ m ? x = p - 2 * (k !== 0 || W !== 0 ? k + W : Se(d.left, d.right)) : S = f - 2 * (A !== 0 || D !== 0 ? A + D : Se(d.top, d.bottom));
7034
7034
  }
7035
7035
  await c({
7036
7036
  ...t,
@@ -7063,7 +7063,7 @@ function Ye(e) {
7063
7063
  function hc(e) {
7064
7064
  return Sr() ? e instanceof Node || e instanceof Ie(e).Node : !1;
7065
7065
  }
7066
- function ke(e) {
7066
+ function Pe(e) {
7067
7067
  return Sr() ? e instanceof Element || e instanceof Ie(e).Element : !1;
7068
7068
  }
7069
7069
  function We(e) {
@@ -7098,7 +7098,7 @@ function Ir(e) {
7098
7098
  }
7099
7099
  const Ty = ["transform", "translate", "scale", "rotate", "perspective"], xy = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Ay = ["paint", "layout", "strict", "content"];
7100
7100
  function Wo(e) {
7101
- const t = Go(), n = ke(e) ? De(e) : e;
7101
+ const t = Go(), n = Pe(e) ? De(e) : e;
7102
7102
  return Ty.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || xy.some((r) => (n.willChange || "").includes(r)) || Ay.some((r) => (n.contain || "").includes(r));
7103
7103
  }
7104
7104
  function Ry(e) {
@@ -7123,7 +7123,7 @@ function De(e) {
7123
7123
  return Ie(e).getComputedStyle(e);
7124
7124
  }
7125
7125
  function Cr(e) {
7126
- return ke(e) ? {
7126
+ return Pe(e) ? {
7127
7127
  scrollLeft: e.scrollLeft,
7128
7128
  scrollTop: e.scrollTop
7129
7129
  } : {
@@ -7171,7 +7171,7 @@ function vc(e) {
7171
7171
  };
7172
7172
  }
7173
7173
  function Ko(e) {
7174
- return ke(e) ? e : e.contextElement;
7174
+ return Pe(e) ? e : e.contextElement;
7175
7175
  }
7176
7176
  function Ut(e) {
7177
7177
  const t = Ko(e);
@@ -7203,11 +7203,11 @@ function At(e, t, n, r) {
7203
7203
  t === void 0 && (t = !1), n === void 0 && (n = !1);
7204
7204
  const o = e.getBoundingClientRect(), s = Ko(e);
7205
7205
  let i = He(1);
7206
- t && (r ? ke(r) && (i = Ut(r)) : i = Ut(e));
7206
+ t && (r ? Pe(r) && (i = Ut(r)) : i = Ut(e));
7207
7207
  const a = My(s, n, r) ? yc(s) : He(0);
7208
7208
  let c = (o.left + a.x) / i.x, l = (o.top + a.y) / i.y, d = o.width / i.x, u = o.height / i.y;
7209
7209
  if (s) {
7210
- const g = Ie(s), m = r && ke(r) ? Ie(r) : r;
7210
+ const g = Ie(s), m = r && Pe(r) ? Ie(r) : r;
7211
7211
  let p = g, f = Io(p);
7212
7212
  for (; f && r && m !== p; ) {
7213
7213
  const v = Ut(f), b = f.getBoundingClientRect(), _ = De(f), E = b.left + (f.clientLeft + parseFloat(_.paddingLeft)) * v.x, y = b.top + (f.clientTop + parseFloat(_.paddingTop)) * v.y;
@@ -7232,7 +7232,7 @@ function wc(e, t) {
7232
7232
  y: o
7233
7233
  };
7234
7234
  }
7235
- function Py(e) {
7235
+ function ky(e) {
7236
7236
  let {
7237
7237
  elements: t,
7238
7238
  rect: n,
@@ -7259,7 +7259,7 @@ function Py(e) {
7259
7259
  y: n.y * l.y - c.scrollTop * l.y + d.y + g.y
7260
7260
  };
7261
7261
  }
7262
- function ky(e) {
7262
+ function Py(e) {
7263
7263
  return Array.from(e.getClientRects());
7264
7264
  }
7265
7265
  function Dy(e) {
@@ -7310,7 +7310,7 @@ function ua(e, t, n) {
7310
7310
  r = $y(e, n);
7311
7311
  else if (t === "document")
7312
7312
  r = Dy(Ye(e));
7313
- else if (ke(t))
7313
+ else if (Pe(t))
7314
7314
  r = zy(t, n);
7315
7315
  else {
7316
7316
  const o = yc(e);
@@ -7325,16 +7325,16 @@ function ua(e, t, n) {
7325
7325
  }
7326
7326
  function bc(e, t) {
7327
7327
  const n = ht(e);
7328
- return n === t || !ke(n) || Vt(n) ? !1 : De(n).position === "fixed" || bc(n, t);
7328
+ return n === t || !Pe(n) || Vt(n) ? !1 : De(n).position === "fixed" || bc(n, t);
7329
7329
  }
7330
7330
  function Zy(e, t) {
7331
7331
  const n = t.get(e);
7332
7332
  if (n)
7333
7333
  return n;
7334
- let r = fn(e, [], !1).filter((a) => ke(a) && Gt(a) !== "body"), o = null;
7334
+ let r = fn(e, [], !1).filter((a) => Pe(a) && Gt(a) !== "body"), o = null;
7335
7335
  const s = De(e).position === "fixed";
7336
7336
  let i = s ? ht(e) : e;
7337
- for (; ke(i) && !Vt(i); ) {
7337
+ for (; Pe(i) && !Vt(i); ) {
7338
7338
  const a = De(i), c = Wo(i);
7339
7339
  !c && a.position === "fixed" && (o = null), (s ? !c && !o : !c && a.position === "static" && !!o && Ly.has(o.position) || En(i) && !c && bc(e, i)) ? r = r.filter((d) => d !== i) : o = a, i = ht(i);
7340
7340
  }
@@ -7410,7 +7410,7 @@ function _c(e, t) {
7410
7410
  if (!We(e)) {
7411
7411
  let o = ht(e);
7412
7412
  for (; o && !Vt(o); ) {
7413
- if (ke(o) && !Xr(o))
7413
+ if (Pe(o) && !Xr(o))
7414
7414
  return o;
7415
7415
  o = ht(o);
7416
7416
  }
@@ -7437,15 +7437,15 @@ function Vy(e) {
7437
7437
  return De(e).direction === "rtl";
7438
7438
  }
7439
7439
  const Hy = {
7440
- convertOffsetParentRelativeRectToViewportRelativeRect: Py,
7440
+ convertOffsetParentRelativeRectToViewportRelativeRect: ky,
7441
7441
  getDocumentElement: Ye,
7442
7442
  getClippingRect: Fy,
7443
7443
  getOffsetParent: _c,
7444
7444
  getElementRects: By,
7445
- getClientRects: ky,
7445
+ getClientRects: Py,
7446
7446
  getDimensions: Uy,
7447
7447
  getScale: Ut,
7448
- isElement: ke,
7448
+ isElement: Pe,
7449
7449
  isRTL: Vy
7450
7450
  };
7451
7451
  function Ec(e, t) {
@@ -7468,7 +7468,7 @@ function Wy(e, t) {
7468
7468
  } = l;
7469
7469
  if (a || t(), !g || !m)
7470
7470
  return;
7471
- const p = kn(u), f = kn(o.clientWidth - (d + g)), v = kn(o.clientHeight - (u + m)), b = kn(d), E = {
7471
+ const p = Pn(u), f = Pn(o.clientWidth - (d + g)), v = Pn(o.clientHeight - (u + m)), b = Pn(d), E = {
7472
7472
  rootMargin: -p + "px " + -f + "px " + -v + "px " + -b + "px",
7473
7473
  threshold: Se(0, mt(1, c)) || 1
7474
7474
  };
@@ -7666,7 +7666,7 @@ const Qy = "av-tooltip", ew = "av-tooltip-arrow", Dn = (e, t = "px") => typeof e
7666
7666
  animationDuration: o
7667
7667
  }), T = G(async () => {
7668
7668
  if (l.current && d.current && u.current) {
7669
- const { x: P, y: W, middlewareData: A, placement: D } = await Tc(l.current, d.current, {
7669
+ const { x: k, y: W, middlewareData: A, placement: D } = await Tc(l.current, d.current, {
7670
7670
  placement: n,
7671
7671
  middleware: [
7672
7672
  Sc(10),
@@ -7683,11 +7683,11 @@ const Qy = "av-tooltip", ew = "av-tooltip-arrow", Dn = (e, t = "px") => typeof e
7683
7683
  ]
7684
7684
  });
7685
7685
  d?.current?.style && Object.assign(d.current.style, {
7686
- left: Dn(P),
7686
+ left: Dn(k),
7687
7687
  top: Dn(W),
7688
7688
  ...C
7689
7689
  });
7690
- const k = {
7690
+ const P = {
7691
7691
  top: "bottom",
7692
7692
  right: "left",
7693
7693
  bottom: "top",
@@ -7698,7 +7698,7 @@ const Qy = "av-tooltip", ew = "av-tooltip-arrow", Dn = (e, t = "px") => typeof e
7698
7698
  top: Dn(A.arrow?.y),
7699
7699
  right: "",
7700
7700
  bottom: "",
7701
- [k]: "-4px"
7701
+ [P]: "-4px"
7702
7702
  }), _(!0);
7703
7703
  }
7704
7704
  }, [
@@ -7909,13 +7909,13 @@ const lw = ({
7909
7909
  return t(e);
7910
7910
  };
7911
7911
  /*!
7912
- @versini/ui-panel v8.0.6
7912
+ @versini/ui-panel v8.0.7
7913
7913
  © 2025 gizmette.com
7914
7914
  */
7915
7915
  try {
7916
7916
  window.__VERSINI_UI_PANEL__ || (window.__VERSINI_UI_PANEL__ = {
7917
- version: "8.0.6",
7918
- buildTime: "12/18/2025 07:21 PM EST",
7917
+ version: "8.0.7",
7918
+ buildTime: "12/18/2025 07:40 PM EST",
7919
7919
  homepage: "https://www.npmjs.com/package/@versini/ui-panel",
7920
7920
  license: "MIT"
7921
7921
  });
@@ -7923,13 +7923,13 @@ try {
7923
7923
  }
7924
7924
  const uw = "av-messagebox", dw = "av-panel", Xe = "messagebox";
7925
7925
  /*!
7926
- @versini/ui-modal v3.2.0
7926
+ @versini/ui-modal v3.2.1
7927
7927
  © 2025 gizmette.com
7928
7928
  */
7929
7929
  try {
7930
7930
  window.__VERSINI_UI_MODAL__ || (window.__VERSINI_UI_MODAL__ = {
7931
- version: "3.2.0",
7932
- buildTime: "12/18/2025 07:21 PM EST",
7931
+ version: "3.2.1",
7932
+ buildTime: "12/18/2025 07:40 PM EST",
7933
7933
  homepage: "https://github.com/aversini/ui-components",
7934
7934
  license: "MIT"
7935
7935
  });
@@ -7940,9 +7940,9 @@ function fw({ initialOpen: e = !1, open: t, onOpenChange: n, initialFocus: r } =
7940
7940
  const [o, s] = B(e), [i, a] = B(), [c, l] = B(), d = t ?? o, u = n ?? s, g = Md({
7941
7941
  open: d,
7942
7942
  onOpenChange: u
7943
- }), m = g.context, p = Pd(m, {
7943
+ }), m = g.context, p = kd(m, {
7944
7944
  enabled: t == null
7945
- }), f = kd(m, {
7945
+ }), f = Pd(m, {
7946
7946
  outsidePress: !1,
7947
7947
  outsidePressEvent: "mousedown"
7948
7948
  }), v = Dd(m), b = $d([
@@ -8520,7 +8520,7 @@ const Sw = "av-toggle", Iw = ({ narrow: e }) => Z(
8520
8520
  g === "right" && b
8521
8521
  ]
8522
8522
  });
8523
- }, Pw = ({
8523
+ }, kw = ({
8524
8524
  onOpenChange: e,
8525
8525
  label: t = "Dismiss",
8526
8526
  ref: n
@@ -8554,7 +8554,7 @@ const Sw = "av-toggle", Iw = ({ narrow: e }) => Z(
8554
8554
  }) => {
8555
8555
  const u = X(null), g = /* @__PURE__ */ $(uo, { columnGap: 2, alignHorizontal: "flex-end", children: [
8556
8556
  /* @__PURE__ */ h(Ft, { children: !s && /* @__PURE__ */ h(
8557
- Pw,
8557
+ kw,
8558
8558
  {
8559
8559
  onOpenChange: t,
8560
8560
  label: o.cancelAction,
@@ -8613,7 +8613,7 @@ const Sw = "av-toggle", Iw = ({ narrow: e }) => Z(
8613
8613
  children: r
8614
8614
  }
8615
8615
  );
8616
- }, kw = ({
8616
+ }, Pw = ({
8617
8617
  className: e
8618
8618
  }) => {
8619
8619
  const { getAccessToken: t, user: n } = $e(), {
@@ -8641,11 +8641,11 @@ const Sw = "av-toggle", Iw = ({ narrow: e }) => Z(
8641
8641
  }
8642
8642
  let x = [];
8643
8643
  !S && a && a.length > 0 && (x = a.filter((O) => O.parts && O.parts.length > 0 ? O.parts.some(
8644
- (P) => P.type === "text" && P.text?.trim()
8644
+ (k) => k.type === "text" && k.text?.trim()
8645
8645
  ) : !1).map((O) => ({
8646
8646
  role: O.role,
8647
8647
  // Convert v5 parts array to v4-style content string for storage.
8648
- content: O.parts?.filter((P) => P.type === "text").map((P) => P.text).join("") || "",
8648
+ content: O.parts?.filter((k) => k.type === "text").map((k) => k.text).join("") || "",
8649
8649
  id: O.id
8650
8650
  }))), await l({
8651
8651
  userId: n?.username || "",
@@ -8661,7 +8661,7 @@ const Sw = "av-toggle", Iw = ({ narrow: e }) => Z(
8661
8661
  }
8662
8662
  });
8663
8663
  } catch {
8664
- await kv("Failed to toggle privacy. Please try again.", {
8664
+ await Pv("Failed to toggle privacy. Please try again.", {
8665
8665
  containerId: "toggle-privacy"
8666
8666
  });
8667
8667
  }
@@ -8991,7 +8991,7 @@ var Gw = "DismissableLayer", To = "dismissableLayer.update", Kw = "dismissableLa
8991
8991
  layers: /* @__PURE__ */ new Set(),
8992
8992
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
8993
8993
  branches: /* @__PURE__ */ new Set()
8994
- }), Pc = w.forwardRef(
8994
+ }), kc = w.forwardRef(
8995
8995
  (e, t) => {
8996
8996
  const {
8997
8997
  disableOutsidePointerEvents: n = !1,
@@ -9002,11 +9002,11 @@ var Gw = "DismissableLayer", To = "dismissableLayer.update", Kw = "dismissableLa
9002
9002
  onDismiss: a,
9003
9003
  ...c
9004
9004
  } = e, l = w.useContext(Mc), [d, u] = w.useState(null), g = d?.ownerDocument ?? globalThis?.document, [, m] = w.useState({}), p = we(t, (S) => u(S)), f = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), b = f.indexOf(v), _ = d ? f.indexOf(d) : -1, E = l.layersWithOutsidePointerEventsDisabled.size > 0, y = _ >= b, C = qw((S) => {
9005
- const x = S.target, O = [...l.branches].some((P) => P.contains(x));
9005
+ const x = S.target, O = [...l.branches].some((k) => k.contains(x));
9006
9006
  !y || O || (o?.(S), i?.(S), S.defaultPrevented || a?.());
9007
9007
  }, g), T = Qw((S) => {
9008
9008
  const x = S.target;
9009
- [...l.branches].some((P) => P.contains(x)) || (s?.(S), i?.(S), S.defaultPrevented || a?.());
9009
+ [...l.branches].some((k) => k.contains(x)) || (s?.(S), i?.(S), S.defaultPrevented || a?.());
9010
9010
  }, g);
9011
9011
  return Ww((S) => {
9012
9012
  _ === l.layers.size - 1 && (r?.(S), !S.defaultPrevented && a && (S.preventDefault(), a()));
@@ -9039,7 +9039,7 @@ var Gw = "DismissableLayer", To = "dismissableLayer.update", Kw = "dismissableLa
9039
9039
  );
9040
9040
  }
9041
9041
  );
9042
- Pc.displayName = Gw;
9042
+ kc.displayName = Gw;
9043
9043
  var Jw = "DismissableLayerBranch", Xw = w.forwardRef((e, t) => {
9044
9044
  const n = w.useContext(Mc), r = w.useRef(null), o = we(t, r);
9045
9045
  return w.useEffect(() => {
@@ -9058,7 +9058,7 @@ function qw(e, t = globalThis?.document) {
9058
9058
  const s = (a) => {
9059
9059
  if (a.target && !r.current) {
9060
9060
  let c = function() {
9061
- kc(
9061
+ Pc(
9062
9062
  Kw,
9063
9063
  n,
9064
9064
  l,
@@ -9085,7 +9085,7 @@ function Qw(e, t = globalThis?.document) {
9085
9085
  const n = Ge(e), r = w.useRef(!1);
9086
9086
  return w.useEffect(() => {
9087
9087
  const o = (s) => {
9088
- s.target && !r.current && kc(Yw, n, { originalEvent: s }, {
9088
+ s.target && !r.current && Pc(Yw, n, { originalEvent: s }, {
9089
9089
  discrete: !1
9090
9090
  });
9091
9091
  };
@@ -9099,7 +9099,7 @@ function wa() {
9099
9099
  const e = new CustomEvent(To);
9100
9100
  document.dispatchEvent(e);
9101
9101
  }
9102
- function kc(e, t, n, { discrete: r }) {
9102
+ function Pc(e, t, n, { discrete: r }) {
9103
9103
  const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
9104
9104
  t && o.addEventListener(e, t, { once: !0 }), r ? Rc(o, s) : o.dispatchEvent(s);
9105
9105
  }
@@ -9324,7 +9324,7 @@ function fb(e) {
9324
9324
  L !== T.current && (T.current = L, f(L));
9325
9325
  }, []), E = w.useCallback((L) => {
9326
9326
  L !== S.current && (S.current = L, b(L));
9327
- }, []), y = s || p, C = i || v, T = w.useRef(null), S = w.useRef(null), x = w.useRef(d), O = c != null, P = no(c), W = no(o), A = no(l), D = w.useCallback(() => {
9327
+ }, []), y = s || p, C = i || v, T = w.useRef(null), S = w.useRef(null), x = w.useRef(d), O = c != null, k = no(c), W = no(o), A = no(l), D = w.useCallback(() => {
9328
9328
  if (!T.current || !S.current)
9329
9329
  return;
9330
9330
  const L = {
@@ -9341,7 +9341,7 @@ function fb(e) {
9341
9341
  // setting it to `true` when `open === false` (must be specified).
9342
9342
  isPositioned: A.current !== !1
9343
9343
  };
9344
- k.current && !hr(x.current, ie) && (x.current = ie, qa.flushSync(() => {
9344
+ P.current && !hr(x.current, ie) && (x.current = ie, qa.flushSync(() => {
9345
9345
  u(ie);
9346
9346
  }));
9347
9347
  });
@@ -9352,16 +9352,16 @@ function fb(e) {
9352
9352
  isPositioned: !1
9353
9353
  })));
9354
9354
  }, [l]);
9355
- const k = w.useRef(!1);
9356
- Jn(() => (k.current = !0, () => {
9357
- k.current = !1;
9355
+ const P = w.useRef(!1);
9356
+ Jn(() => (P.current = !0, () => {
9357
+ P.current = !1;
9358
9358
  }), []), Jn(() => {
9359
9359
  if (y && (T.current = y), C && (S.current = C), y && C) {
9360
- if (P.current)
9361
- return P.current(y, C, D);
9360
+ if (k.current)
9361
+ return k.current(y, C, D);
9362
9362
  D();
9363
9363
  }
9364
- }, [y, C, D, P, O]);
9364
+ }, [y, C, D, k, O]);
9365
9365
  const q = w.useMemo(() => ({
9366
9366
  reference: T,
9367
9367
  floating: S,
@@ -9513,12 +9513,12 @@ var Xo = "PopperContent", [Cb, Tb] = Zc(Xo), Hc = w.forwardRef(
9513
9513
  updatePositionStrategy: m = "optimized",
9514
9514
  onPlaced: p,
9515
9515
  ...f
9516
- } = e, v = Uc(Xo, n), [b, _] = w.useState(null), E = we(t, (se) => _(se)), [y, C] = w.useState(null), T = Sb(y), S = T?.width ?? 0, x = T?.height ?? 0, O = r + (s !== "center" ? "-" + s : ""), P = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, W = Array.isArray(l) ? l : [l], A = W.length > 0, D = {
9517
- padding: P,
9516
+ } = e, v = Uc(Xo, n), [b, _] = w.useState(null), E = we(t, (se) => _(se)), [y, C] = w.useState(null), T = Sb(y), S = T?.width ?? 0, x = T?.height ?? 0, O = r + (s !== "center" ? "-" + s : ""), k = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, W = Array.isArray(l) ? l : [l], A = W.length > 0, D = {
9517
+ padding: k,
9518
9518
  boundary: W.filter(Ab),
9519
9519
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
9520
9520
  altBoundary: A
9521
- }, { refs: k, floatingStyles: q, placement: F, isPositioned: V, middlewareData: L } = fb({
9521
+ }, { refs: P, floatingStyles: q, placement: F, isPositioned: V, middlewareData: L } = fb({
9522
9522
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
9523
9523
  strategy: "fixed",
9524
9524
  placement: O,
@@ -9539,9 +9539,9 @@ var Xo = "PopperContent", [Cb, Tb] = Zc(Xo), Hc = w.forwardRef(
9539
9539
  c && vb({ ...D }),
9540
9540
  yb({
9541
9541
  ...D,
9542
- apply: ({ elements: se, rects: ot, availableWidth: Kt, availableHeight: Pr }) => {
9543
- const { width: kr, height: Dr } = ot.reference, Mt = se.floating.style;
9544
- Mt.setProperty("--radix-popper-available-width", `${Kt}px`), Mt.setProperty("--radix-popper-available-height", `${Pr}px`), Mt.setProperty("--radix-popper-anchor-width", `${kr}px`), Mt.setProperty("--radix-popper-anchor-height", `${Dr}px`);
9542
+ apply: ({ elements: se, rects: ot, availableWidth: Kt, availableHeight: kr }) => {
9543
+ const { width: Pr, height: Dr } = ot.reference, Mt = se.floating.style;
9544
+ Mt.setProperty("--radix-popper-available-width", `${Kt}px`), Mt.setProperty("--radix-popper-available-height", `${kr}px`), Mt.setProperty("--radix-popper-anchor-width", `${Pr}px`), Mt.setProperty("--radix-popper-anchor-height", `${Dr}px`);
9545
9545
  }
9546
9546
  }),
9547
9547
  y && bb({ element: y, padding: a }),
@@ -9558,7 +9558,7 @@ var Xo = "PopperContent", [Cb, Tb] = Zc(Xo), Hc = w.forwardRef(
9558
9558
  }, [b]), /* @__PURE__ */ h(
9559
9559
  "div",
9560
9560
  {
9561
- ref: k.setFloating,
9561
+ ref: P.setFloating,
9562
9562
  "data-radix-popper-content-wrapper": "",
9563
9563
  style: {
9564
9564
  ...q,
@@ -9677,14 +9677,14 @@ function Kc(e) {
9677
9677
  const [t, n = "center"] = e.split("-");
9678
9678
  return [t, n];
9679
9679
  }
9680
- var Yc = jc, Ob = Vc, Nb = Hc, Mb = Gc, Pb = "Portal", Jc = w.forwardRef((e, t) => {
9680
+ var Yc = jc, Ob = Vc, Nb = Hc, Mb = Gc, kb = "Portal", Jc = w.forwardRef((e, t) => {
9681
9681
  const { container: n, ...r } = e, [o, s] = w.useState(!1);
9682
9682
  gt(() => s(!0), []);
9683
9683
  const i = n || o && globalThis?.document?.body;
9684
9684
  return i ? Ld.createPortal(/* @__PURE__ */ h(ve.div, { ...r, ref: t }), i) : null;
9685
9685
  });
9686
- Jc.displayName = Pb;
9687
- function kb(e, t) {
9686
+ Jc.displayName = kb;
9687
+ function Pb(e, t) {
9688
9688
  return w.useReducer((n, r) => t[n][r] ?? n, e);
9689
9689
  }
9690
9690
  var In = (e) => {
@@ -9693,7 +9693,7 @@ var In = (e) => {
9693
9693
  };
9694
9694
  In.displayName = "Presence";
9695
9695
  function Db(e) {
9696
- const [t, n] = w.useState(), r = w.useRef(null), o = w.useRef(e), s = w.useRef("none"), i = e ? "mounted" : "unmounted", [a, c] = kb(i, {
9696
+ const [t, n] = w.useState(), r = w.useRef(null), o = w.useRef(e), s = w.useRef("none"), i = e ? "mounted" : "unmounted", [a, c] = Pb(i, {
9697
9697
  mounted: {
9698
9698
  UNMOUNT: "unmounted",
9699
9699
  ANIMATION_OUT: "unmountSuspended"
@@ -9812,8 +9812,8 @@ var jb = w.forwardRef((e, t) => {
9812
9812
  onFocus: H(e.onFocus, (x) => {
9813
9813
  const O = !C.current;
9814
9814
  if (x.target === x.currentTarget && O && !b) {
9815
- const P = new CustomEvent(ro, Lb);
9816
- if (x.currentTarget.dispatchEvent(P), !P.defaultPrevented) {
9815
+ const k = new CustomEvent(ro, Lb);
9816
+ if (x.currentTarget.dispatchEvent(k), !k.defaultPrevented) {
9817
9817
  const W = y().filter((F) => F.focusable), A = W.find((F) => F.active), D = W.find((F) => F.id === f), q = [A, D, ...W].filter(
9818
9818
  Boolean
9819
9819
  ).map((F) => F.ref.current);
@@ -10363,8 +10363,8 @@ function M_(e) {
10363
10363
  var b = Un(f), _ = n.current, E = "deltaX" in f ? f.deltaX : _[0] - b[0], y = "deltaY" in f ? f.deltaY : _[1] - b[1], C, T = f.target, S = Math.abs(E) > Math.abs(y) ? "h" : "v";
10364
10364
  if ("touches" in f && S === "h" && T.type === "range")
10365
10365
  return !1;
10366
- var x = window.getSelection(), O = x && x.anchorNode, P = O ? O === T || O.contains(T) : !1;
10367
- if (P)
10366
+ var x = window.getSelection(), O = x && x.anchorNode, k = O ? O === T || O.contains(T) : !1;
10367
+ if (k)
10368
10368
  return !1;
10369
10369
  var W = Aa(S, T);
10370
10370
  if (!W)
@@ -10393,7 +10393,7 @@ function M_(e) {
10393
10393
  }
10394
10394
  }
10395
10395
  }, []), l = w.useCallback(function(f, v, b, _) {
10396
- var E = { name: f, delta: v, target: b, should: _, shadowParent: P_(b) };
10396
+ var E = { name: f, delta: v, target: b, should: _, shadowParent: k_(b) };
10397
10397
  t.current.push(E), setTimeout(function() {
10398
10398
  t.current = t.current.filter(function(y) {
10399
10399
  return y !== E;
@@ -10425,14 +10425,14 @@ function M_(e) {
10425
10425
  m ? w.createElement(__, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
10426
10426
  );
10427
10427
  }
10428
- function P_(e) {
10428
+ function k_(e) {
10429
10429
  for (var t = null; e !== null; )
10430
10430
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
10431
10431
  return t;
10432
10432
  }
10433
- const k_ = c_(al, M_);
10433
+ const P_ = c_(al, M_);
10434
10434
  var dl = w.forwardRef(function(e, t) {
10435
- return w.createElement(Rr, Ue({}, e, { ref: t, sideCar: k_ }));
10435
+ return w.createElement(Rr, Ue({}, e, { ref: t, sideCar: P_ }));
10436
10436
  });
10437
10437
  dl.classNames = Rr.classNames;
10438
10438
  var Ro = ["Enter", " "], D_ = ["ArrowDown", "PageUp", "Home"], fl = ["ArrowUp", "PageDown", "End"], $_ = [...D_, ...fl], L_ = {
@@ -10549,10 +10549,10 @@ var Ae = "MenuContent", [V_, es] = Ot(Ae), wl = w.forwardRef(
10549
10549
  onDismiss: m,
10550
10550
  disableOutsideScroll: p,
10551
10551
  ...f
10552
- } = e, v = bt(Ae, n), b = An(Ae, n), _ = xn(n), E = ml(n), y = Z_(n), [C, T] = w.useState(null), S = w.useRef(null), x = we(t, S, v.onContentChange), O = w.useRef(0), P = w.useRef(""), W = w.useRef(0), A = w.useRef(null), D = w.useRef("right"), k = w.useRef(0), q = p ? dl : w.Fragment, F = p ? { as: G_, allowPinchZoom: !0 } : void 0, V = (R) => {
10553
- const ie = P.current + R, _e = y().filter((se) => !se.disabled), me = document.activeElement, Ee = _e.find((se) => se.ref.current === me)?.textValue, _t = _e.map((se) => se.textValue), Nt = sE(_t, ie, Ee), Je = _e.find((se) => se.textValue === Nt)?.ref.current;
10552
+ } = e, v = bt(Ae, n), b = An(Ae, n), _ = xn(n), E = ml(n), y = Z_(n), [C, T] = w.useState(null), S = w.useRef(null), x = we(t, S, v.onContentChange), O = w.useRef(0), k = w.useRef(""), W = w.useRef(0), A = w.useRef(null), D = w.useRef("right"), P = w.useRef(0), q = p ? dl : w.Fragment, F = p ? { as: G_, allowPinchZoom: !0 } : void 0, V = (R) => {
10553
+ const ie = k.current + R, _e = y().filter((se) => !se.disabled), me = document.activeElement, Ee = _e.find((se) => se.ref.current === me)?.textValue, _t = _e.map((se) => se.textValue), Nt = sE(_t, ie, Ee), Je = _e.find((se) => se.textValue === Nt)?.ref.current;
10554
10554
  (function se(ot) {
10555
- P.current = ot, window.clearTimeout(O.current), ot !== "" && (O.current = window.setTimeout(() => se(""), 1e3));
10555
+ k.current = ot, window.clearTimeout(O.current), ot !== "" && (O.current = window.setTimeout(() => se(""), 1e3));
10556
10556
  })(ie), Je && setTimeout(() => Je.focus());
10557
10557
  };
10558
10558
  w.useEffect(() => () => window.clearTimeout(O.current), []), eb();
@@ -10561,7 +10561,7 @@ var Ae = "MenuContent", [V_, es] = Ot(Ae), wl = w.forwardRef(
10561
10561
  V_,
10562
10562
  {
10563
10563
  scope: n,
10564
- searchRef: P,
10564
+ searchRef: k,
10565
10565
  onItemEnter: w.useCallback(
10566
10566
  (R) => {
10567
10567
  L(R) && R.preventDefault();
@@ -10594,7 +10594,7 @@ var Ae = "MenuContent", [V_, es] = Ot(Ae), wl = w.forwardRef(
10594
10594
  }),
10595
10595
  onUnmountAutoFocus: i,
10596
10596
  children: /* @__PURE__ */ h(
10597
- Pc,
10597
+ kc,
10598
10598
  {
10599
10599
  asChild: !0,
10600
10600
  disableOutsidePointerEvents: a,
@@ -10639,15 +10639,15 @@ var Ae = "MenuContent", [V_, es] = Ot(Ae), wl = w.forwardRef(
10639
10639
  fl.includes(R.key) && Je.reverse(), rE(Je);
10640
10640
  }),
10641
10641
  onBlur: H(e.onBlur, (R) => {
10642
- R.currentTarget.contains(R.target) || (window.clearTimeout(O.current), P.current = "");
10642
+ R.currentTarget.contains(R.target) || (window.clearTimeout(O.current), k.current = "");
10643
10643
  }),
10644
10644
  onPointerMove: H(
10645
10645
  e.onPointerMove,
10646
10646
  gn((R) => {
10647
- const ie = R.target, _e = k.current !== R.clientX;
10647
+ const ie = R.target, _e = P.current !== R.clientX;
10648
10648
  if (R.currentTarget.contains(ie) && _e) {
10649
- const me = R.clientX > k.current ? "right" : "left";
10650
- D.current = me, k.current = R.clientX;
10649
+ const me = R.clientX > P.current ? "right" : "left";
10650
+ D.current = me, P.current = R.clientX;
10651
10651
  }
10652
10652
  })
10653
10653
  )
@@ -10870,7 +10870,7 @@ var os = "MenuSub", [nE, Nl] = Ot(os), Ml = (e) => {
10870
10870
  ) });
10871
10871
  };
10872
10872
  Ml.displayName = os;
10873
- var en = "MenuSubTrigger", Pl = w.forwardRef(
10873
+ var en = "MenuSubTrigger", kl = w.forwardRef(
10874
10874
  (e, t) => {
10875
10875
  const n = bt(en, e.__scopeMenu), r = An(en, e.__scopeMenu), o = Nl(en, e.__scopeMenu), s = es(en, e.__scopeMenu), i = w.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: c } = s, l = { __scopeMenu: e.__scopeMenu }, d = w.useCallback(() => {
10876
10876
  i.current && window.clearTimeout(i.current), i.current = null;
@@ -10937,10 +10937,10 @@ var en = "MenuSubTrigger", Pl = w.forwardRef(
10937
10937
  ) });
10938
10938
  }
10939
10939
  );
10940
- Pl.displayName = en;
10941
- var kl = "MenuSubContent", Dl = w.forwardRef(
10940
+ kl.displayName = en;
10941
+ var Pl = "MenuSubContent", Dl = w.forwardRef(
10942
10942
  (e, t) => {
10943
- const n = vl(Ae, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = bt(Ae, e.__scopeMenu), i = An(Ae, e.__scopeMenu), a = Nl(kl, e.__scopeMenu), c = w.useRef(null), l = we(t, c);
10943
+ const n = vl(Ae, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = bt(Ae, e.__scopeMenu), i = An(Ae, e.__scopeMenu), a = Nl(Pl, e.__scopeMenu), c = w.useRef(null), l = we(t, c);
10944
10944
  return /* @__PURE__ */ h(hn.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ h(In, { present: r || s.open, children: /* @__PURE__ */ h(hn.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ h(
10945
10945
  ts,
10946
10946
  {
@@ -10971,7 +10971,7 @@ var kl = "MenuSubContent", Dl = w.forwardRef(
10971
10971
  ) }) }) });
10972
10972
  }
10973
10973
  );
10974
- Dl.displayName = kl;
10974
+ Dl.displayName = Pl;
10975
10975
  function $l(e) {
10976
10976
  return e ? "open" : "closed";
10977
10977
  }
@@ -11015,7 +11015,7 @@ function iE(e, t) {
11015
11015
  function gn(e) {
11016
11016
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
11017
11017
  }
11018
- var cE = gl, lE = qo, uE = yl, dE = wl, fE = ns, pE = bl, mE = Or, hE = El, gE = Il, vE = Tl, yE = Al, wE = Rl, bE = Ol, _E = Ml, EE = Pl, SE = Dl, Nr = "DropdownMenu", [IE] = Sn(
11018
+ var cE = gl, lE = qo, uE = yl, dE = wl, fE = ns, pE = bl, mE = Or, hE = El, gE = Il, vE = Tl, yE = Al, wE = Rl, bE = Ol, _E = Ml, EE = kl, SE = Dl, Nr = "DropdownMenu", [IE] = Sn(
11019
11019
  Nr,
11020
11020
  [pl]
11021
11021
  ), he = pl(), [CE, Ll] = IE(Nr), zl = (e) => {
@@ -11138,11 +11138,11 @@ var NE = "DropdownMenuCheckboxItem", ME = w.forwardRef((e, t) => {
11138
11138
  return /* @__PURE__ */ h(hE, { ...o, ...r, ref: t });
11139
11139
  });
11140
11140
  ME.displayName = NE;
11141
- var PE = "DropdownMenuRadioGroup", kE = w.forwardRef((e, t) => {
11141
+ var kE = "DropdownMenuRadioGroup", PE = w.forwardRef((e, t) => {
11142
11142
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11143
11143
  return /* @__PURE__ */ h(gE, { ...o, ...r, ref: t });
11144
11144
  });
11145
- kE.displayName = PE;
11145
+ PE.displayName = kE;
11146
11146
  var DE = "DropdownMenuRadioItem", $E = w.forwardRef((e, t) => {
11147
11147
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11148
11148
  return /* @__PURE__ */ h(vE, { ...o, ...r, ref: t });
@@ -11212,7 +11212,7 @@ try {
11212
11212
  });
11213
11213
  } catch {
11214
11214
  }
11215
- const Pa = (e) => {
11215
+ const ka = (e) => {
11216
11216
  if (typeof e == "string")
11217
11217
  return e;
11218
11218
  if (typeof e == "function")
@@ -11238,7 +11238,7 @@ try {
11238
11238
  } catch {
11239
11239
  }
11240
11240
  const QE = "z-100 rounded-md bg-surface-light shadow-sm shadow-border-dark outline-hidden p-3 sm:p-2 prose prose-dark", eS = "z-[60] rounded-md bg-surface-light shadow-sm shadow-border-dark outline-hidden p-3 sm:p-2 mx-3", tS = Z("flex items-center flex-row justify-between", "w-full", "m-0 first:mt-0 mt-2 sm:mt-1 px-2 py-1", "rounded-md border border-transparent", "text-left text-base select-none cursor-pointer", "outline-hidden focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline", "disabled:cursor-not-allowed disabled:text-copy-medium", "data-[highlighted]:bg-surface-lighter data-[highlighted]:border-border-medium data-[highlighted]:underline", "data-[state=open]:bg-surface-lighter"), nS = (e) => e ? e.startsWith("top") ? "top" : e.startsWith("left") ? "left" : e.startsWith("right") ? "right" : "bottom" : "bottom", rS = (e) => !e || e.endsWith("-start") ? "start" : e.endsWith("-end") ? "end" : "center", Mr = ({ trigger: e, children: t, label: n = "Open menu", defaultPlacement: r = "bottom-start", onOpenChange: o, mode: s = "system", focusMode: i = "system", sideOffset: a = 10, modal: c = !0 }) => {
11241
- const [l, d] = B(!1), [u, g] = B(void 0), m = Pa(e) === "Button" || Pa(e) === "ButtonIcon", p = m ? {
11241
+ const [l, d] = B(!1), [u, g] = B(void 0), m = ka(e) === "Button" || ka(e) === "ButtonIcon", p = m ? {
11242
11242
  noInternalClick: m,
11243
11243
  focusMode: i,
11244
11244
  mode: s
@@ -11353,7 +11353,7 @@ try {
11353
11353
  });
11354
11354
  } catch {
11355
11355
  }
11356
- const oS = Z("flex flex-row items-center", "w-full", "m-0 first:mt-0 mt-2 sm:mt-1 px-2 py-1", "rounded-md border border-transparent", "text-left text-base select-none cursor-pointer", "outline-hidden focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline", "disabled:cursor-not-allowed disabled:text-copy-medium", "data-[highlighted]:bg-surface-lighter data-[highlighted]:border-border-medium data-[highlighted]:underline", "data-[disabled]:cursor-not-allowed data-[disabled]:text-copy-medium"), Pe = ({ label: e, disabled: t, icon: n, raw: r = !1, children: o, ignoreClick: s = !1, selected: i, onSelect: a, onClick: c, onFocus: l, ...d }) => {
11356
+ const oS = Z("flex flex-row items-center", "w-full", "m-0 first:mt-0 mt-2 sm:mt-1 px-2 py-1", "rounded-md border border-transparent", "text-left text-base select-none cursor-pointer", "outline-hidden focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline", "disabled:cursor-not-allowed disabled:text-copy-medium", "data-[highlighted]:bg-surface-lighter data-[highlighted]:border-border-medium data-[highlighted]:underline", "data-[disabled]:cursor-not-allowed data-[disabled]:text-copy-medium"), ke = ({ label: e, disabled: t, icon: n, raw: r = !1, children: o, ignoreClick: s = !1, selected: i, onSelect: a, onClick: c, onFocus: l, ...d }) => {
11357
11357
  let u = "";
11358
11358
  if (r && o)
11359
11359
  return /* @__PURE__ */ h(Ma, {
@@ -11393,7 +11393,7 @@ const oS = Z("flex flex-row items-center", "w-full", "m-0 first:mt-0 mt-2 sm:mt-
11393
11393
  ]
11394
11394
  });
11395
11395
  };
11396
- Pe.displayName = "DropdownMenuItem";
11396
+ ke.displayName = "DropdownMenuItem";
11397
11397
  const sS = (e) => {
11398
11398
  for (let t = 0; t < e.length; t++)
11399
11399
  if (e[t].enabled)
@@ -11459,7 +11459,7 @@ const sS = (e) => {
11459
11459
  break;
11460
11460
  }
11461
11461
  return f.enabled && f.label && f.content && /* @__PURE__ */ h(
11462
- Pe,
11462
+ ke,
11463
11463
  {
11464
11464
  label: f.label,
11465
11465
  icon: v,
@@ -11618,17 +11618,17 @@ const sS = (e) => {
11618
11618
  };
11619
11619
  function lS(e) {
11620
11620
  const [t, n] = B(
11621
- () => ka()
11621
+ () => Pa()
11622
11622
  );
11623
11623
  return U(() => {
11624
11624
  const r = setInterval(() => {
11625
- const o = ka();
11625
+ const o = Pa();
11626
11626
  n((s) => s !== o ? o : s);
11627
11627
  }, 3e3);
11628
11628
  return () => clearInterval(r);
11629
11629
  }, []), e ? Ja : t;
11630
11630
  }
11631
- function ka() {
11631
+ function Pa() {
11632
11632
  const e = (/* @__PURE__ */ new Date()).getHours();
11633
11633
  return e >= 5 && e < 11 ? qu : e >= 11 && e < 12 ? Qu : e >= 12 && e < 17 ? ed : e >= 17 && e < 21 ? td : e >= 21 && e < 24 ? nd : rd;
11634
11634
  }
@@ -11666,8 +11666,8 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
11666
11666
  ), hS = () => lt(
11667
11667
  "relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
11668
11668
  ), gS = ({ oledMode: e }) => lt({
11669
- "bg-slate-900/95 dark:bg-slate-900": e,
11670
- "bg-slate-900": !e
11669
+ "bg-surface-darker/95 dark:bg-surface-darker": e,
11670
+ "bg-surface-darker": !e
11671
11671
  }), vS = () => lt("text-copy-lighter caret-copy-light"), yS = ({ oledMode: e }) => lt(
11672
11672
  "has-[.av-prompt-editable:focus]:outline",
11673
11673
  "has-[.av-prompt-editable:focus]:outline-2",
@@ -11705,10 +11705,10 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
11705
11705
  /* @__PURE__ */ h("div", { className: "flex flex-wrap gap-2", children: Array.from(e).map((n, r) => /* @__PURE__ */ $(
11706
11706
  "div",
11707
11707
  {
11708
- className: "inline-flex items-center bg-slate-700 text-copy-lighter text-xs px-2 py-1 rounded-md",
11708
+ className: "inline-flex items-center bg-surface-dark text-copy-lighter text-xs px-2 py-1 rounded-md",
11709
11709
  children: [
11710
- /* @__PURE__ */ h("span", { className: "max-w-[150px] truncate", children: n.name }),
11711
- /* @__PURE__ */ $("span", { className: "mx-1 text-gray-400", children: [
11710
+ /* @__PURE__ */ h("span", { className: "max-w-37 truncate", children: n.name }),
11711
+ /* @__PURE__ */ $("span", { className: "mx-1 text-copy-medium", children: [
11712
11712
  "(",
11713
11713
  Qn(n.size),
11714
11714
  ")"
@@ -11730,7 +11730,7 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
11730
11730
  },
11731
11731
  `${n.name}-${r}`
11732
11732
  )) }),
11733
- /* @__PURE__ */ $("div", { className: "text-xs text-gray-400 mt-1 pl-1", children: [
11733
+ /* @__PURE__ */ $("div", { className: "text-xs text-copy-medium mt-1 pl-1", children: [
11734
11734
  "Total: ",
11735
11735
  Qn(ql(Array.from(e))),
11736
11736
  " /",
@@ -11804,8 +11804,8 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
11804
11804
  }
11805
11805
  }, NS = async (e, t = Ql, n = as) => await Promise.all(
11806
11806
  e.map((o) => eu(o) ? OS(o, t, n) : Promise.resolve(o))
11807
- ), tu = 24, MS = 500, nu = 1, PS = 5, kS = tu * nu, $a = PS * tu, DS = "ready", $S = "streaming", LS = "error", zS = "submitted", jn = (e) => {
11808
- e.current && (e.current.style.height = `${kS}px`);
11807
+ ), tu = 24, MS = 500, nu = 1, kS = 5, PS = tu * nu, $a = kS * tu, DS = "ready", $S = "streaming", LS = "error", zS = "submitted", jn = (e) => {
11808
+ e.current && (e.current.style.height = `${PS}px`);
11809
11809
  }, ZS = () => {
11810
11810
  const { user: e, getAccessToken: t } = $e(), n = pr(er.ADDON.ATTACHMENTS), r = pr(er.ADDON.REASONING), { allowedModels: o } = No(), [s, i] = B(null), [a, c] = B(!1), [l, d] = B(!1), {
11811
11811
  state: { oledMode: u }
@@ -11823,9 +11823,9 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
11823
11823
  } = ue(Le), { state: y, dispatch: C } = ue(Mo), { data: T } = vt({
11824
11824
  user: e?.username,
11825
11825
  getAccessToken: t
11826
- }), S = X(null), x = X(null), O = X(!1), P = X(0), W = X(null), A = X(null), D = sd(), [k, q] = Ke(), F = bS({
11826
+ }), S = X(null), x = X(null), O = X(!1), k = X(0), W = X(null), A = X(null), D = sd(), [P, q] = Ke(), F = bS({
11827
11827
  oledMode: u,
11828
- placeholderColor: k(q.Placeholder)
11828
+ placeholderColor: P(q.Placeholder)
11829
11829
  }), V = r && T?.showReasoningButton, { setMessages: L, status: R, id: ie, sendMessage: _e, input: me, setInput: Ee, messages: _t } = yt({
11830
11830
  onFinish: (Y) => {
11831
11831
  const le = Y.message?.metadata;
@@ -11930,22 +11930,22 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
11930
11930
  return;
11931
11931
  }
11932
11932
  A.current.style.height = `${Y}px`, A.current.style.overflowY = "hidden";
11933
- }, []), Pr = async (Y) => {
11933
+ }, []), kr = async (Y) => {
11934
11934
  if (Y.preventDefault(), Y.target.files && Y.target.files.length > 0) {
11935
- const de = s ? Array.from(s) : [], le = Array.from(Y.target.files), Pt = [...de];
11935
+ const de = s ? Array.from(s) : [], le = Array.from(Y.target.files), kt = [...de];
11936
11936
  let Et = !1;
11937
11937
  for (const Oe of le) {
11938
11938
  const $r = "." + Oe.name.split(".").pop()?.toLowerCase();
11939
- It.includes($r) ? Pt.some(
11939
+ It.includes($r) ? kt.some(
11940
11940
  (Lr) => Lr.name === Oe.name && Lr.size === Oe.size && Lr.lastModified === Oe.lastModified
11941
- ) || Pt.push(Oe) : Et = !0;
11941
+ ) || kt.push(Oe) : Et = !0;
11942
11942
  }
11943
11943
  if (x.current && (x.current.value = ""), Et) {
11944
11944
  const Oe = It.length > 1 ? `${It.slice(0, -1).join(", ")} and ${It[It.length - 1]}` : It[0];
11945
11945
  S.current = `Only ${Oe} files are allowed.`, c(!0);
11946
11946
  return;
11947
11947
  }
11948
- const St = await NS(Pt);
11948
+ const St = await NS(kt);
11949
11949
  if (ql(St) > Oo) {
11950
11950
  S.current = `Total file size exceeds the limit of ${Qn(
11951
11951
  Oo
@@ -11962,7 +11962,7 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
11962
11962
  });
11963
11963
  }
11964
11964
  }
11965
- }, kr = () => {
11965
+ }, Pr = () => {
11966
11966
  x.current && x.current.click();
11967
11967
  }, Dr = (Y) => {
11968
11968
  if (!s)
@@ -11983,10 +11983,10 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
11983
11983
  const de = await t();
11984
11984
  let le;
11985
11985
  if (s && s.length > 0) {
11986
- const Pt = Array.from(s).map(
11986
+ const kt = Array.from(s).map(
11987
11987
  (St) => mS(St)
11988
11988
  ), Et = new DataTransfer();
11989
- Pt.forEach((St) => Et.items.add(St)), le = Et.files;
11989
+ kt.forEach((St) => Et.items.add(St)), le = Et.files;
11990
11990
  }
11991
11991
  se(Y, {
11992
11992
  headers: {
@@ -12024,7 +12024,7 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
12024
12024
  O.current = !0, !me && jn(A);
12025
12025
  return;
12026
12026
  }
12027
- v > 0 && v !== P.current ? (P.current = v, setTimeout(() => {
12027
+ v > 0 && v !== k.current ? (k.current = v, setTimeout(() => {
12028
12028
  A.current && (!me && jn(A), A.current.focus());
12029
12029
  }, MS)) : p === !1 && !me && (jn(A), !Ve() && A.current && A.current.focus());
12030
12030
  }, [v, p, me]), U(() => {
@@ -12075,7 +12075,7 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
12075
12075
  {
12076
12076
  type: "file",
12077
12077
  ref: x,
12078
- onChange: Pr,
12078
+ onChange: kr,
12079
12079
  className: "hidden",
12080
12080
  multiple: !0,
12081
12081
  accept: It.join(","),
@@ -12111,12 +12111,12 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
12111
12111
  "mr-3": V,
12112
12112
  "mr-4": !V
12113
12113
  }),
12114
- onClick: kr
12114
+ onClick: Pr
12115
12115
  }
12116
12116
  ),
12117
12117
  V && /* @__PURE__ */ h(iS, { className: Z("order-4 mr-3 sm:mr-2") }),
12118
12118
  /* @__PURE__ */ h(
12119
- kw,
12119
+ Pw,
12120
12120
  {
12121
12121
  className: Z("order-5 mr-3 sm:mr-2", {
12122
12122
  "mr-3": V,
@@ -12243,7 +12243,7 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
12243
12243
  setChatId: r,
12244
12244
  setInitialMessages: o
12245
12245
  } = ue(Le), { getAccessToken: s, user: i } = $e(), { status: a } = yt(), { allowedModels: c, status: l } = No(), [d, u] = Ke(), [g, m] = B(!1), p = G(() => {
12246
- g || (Pv(), m(!0));
12246
+ g || (kv(), m(!0));
12247
12247
  }, [g]), {
12248
12248
  isSuccess: f,
12249
12249
  refetch: v,
@@ -12254,8 +12254,8 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
12254
12254
  }), _ = xe(() => {
12255
12255
  if (ls(c, l)) {
12256
12256
  const A = wu(c), D = co.filter(
12257
- (k) => A.includes(
12258
- k.id
12257
+ (P) => A.includes(
12258
+ P.id
12259
12259
  )
12260
12260
  );
12261
12261
  return D.length > 0 ? D : co;
@@ -12293,9 +12293,9 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
12293
12293
  accessToken: await s(),
12294
12294
  username: i?.username || ""
12295
12295
  }), v();
12296
- const k = Zr[D] || D;
12296
+ const P = Zr[D] || D;
12297
12297
  await lr(
12298
- `${hs} ${A} (${k})`,
12298
+ `${hs} ${A} (${P})`,
12299
12299
  {
12300
12300
  containerId: "toggle-provider"
12301
12301
  }
@@ -12311,7 +12311,7 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
12311
12311
  }
12312
12312
  }, S = b && f, x = S && _.find(
12313
12313
  (A) => b.provider === A.id
12314
- )?.icon || _[0]?.icon, O = xe(() => !b?.useNestedModelSelection || !b?.model || !c || !ja(b.model, c) ? null : Zr[b.model] || b.model, [b?.useNestedModelSelection, b?.model, c]), P = /* @__PURE__ */ h(ct, { children: /* @__PURE__ */ $(
12314
+ )?.icon || _[0]?.icon, O = xe(() => !b?.useNestedModelSelection || !b?.model || !c || !ja(b.model, c) ? null : Zr[b.model] || b.model, [b?.useNestedModelSelection, b?.model, c]), k = /* @__PURE__ */ h(ct, { children: /* @__PURE__ */ $(
12315
12315
  Mr,
12316
12316
  {
12317
12317
  mode: "light",
@@ -12351,7 +12351,7 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
12351
12351
  }
12352
12352
  ),
12353
12353
  D.map((q) => /* @__PURE__ */ h(
12354
- Pe,
12354
+ ke,
12355
12355
  {
12356
12356
  selected: b.provider === A.id && b.model === q,
12357
12357
  label: Zr[q] || q,
@@ -12360,7 +12360,7 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
12360
12360
  q
12361
12361
  ))
12362
12362
  ] }, A.id) : /* @__PURE__ */ h(
12363
- Pe,
12363
+ ke,
12364
12364
  {
12365
12365
  selected: b.provider === A.id,
12366
12366
  label: A.label,
@@ -12381,7 +12381,7 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
12381
12381
  mode: "light",
12382
12382
  placement: "right",
12383
12383
  className: e,
12384
- trigger: P
12384
+ trigger: k
12385
12385
  }
12386
12386
  ),
12387
12387
  O && /* @__PURE__ */ h(
@@ -12394,42 +12394,42 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
12394
12394
  children: O
12395
12395
  }
12396
12396
  )
12397
- ] }) : /* @__PURE__ */ h("div", { className: e, children: P });
12397
+ ] }) : /* @__PURE__ */ h("div", { className: e, children: k });
12398
12398
  }, jS = nt(
12399
12399
  () => import(
12400
12400
  /* webpackChunkName: "modal-chunk" */
12401
- "./ProfileEntry.DL1hPr1o.js"
12401
+ "./ProfileEntry.T8wth0Is.js"
12402
12402
  ).then((e) => ({
12403
12403
  default: e.Profile
12404
12404
  }))
12405
12405
  ), BS = nt(
12406
12406
  () => import(
12407
12407
  /* webpackChunkName: "modal-chunk" */
12408
- "./SettingsEntry.BBz6Yx2v.js"
12408
+ "./SettingsEntry.CjOxw1Yx.js"
12409
12409
  ).then((e) => ({
12410
12410
  default: e.SettingsPanel
12411
12411
  }))
12412
12412
  ), VS = nt(
12413
12413
  () => import(
12414
12414
  /* webpackChunkName: "modal-chunk" */
12415
- "./HistoryEntry.DaXJ8Q-f.js"
12415
+ "./HistoryEntry.B-078Lxf.js"
12416
12416
  ).then((e) => ({
12417
12417
  default: e.HistoryPanel
12418
12418
  }))
12419
12419
  ), HS = nt(
12420
12420
  () => import(
12421
12421
  /* webpackChunkName: "modal-chunk" */
12422
- "./AboutEntry.BJrEy0cG.js"
12422
+ "./AboutEntry.C1pRBz7A.js"
12423
12423
  ).then((e) => ({ default: e.About }))
12424
12424
  ), WS = nt(
12425
12425
  () => import(
12426
12426
  /* webpackChunkName: "modal-chunk" */
12427
- "./UsageEntry.HApOoMRD.js"
12427
+ "./UsageEntry.B4I_GNgi.js"
12428
12428
  ).then((e) => ({ default: e.Usage }))
12429
12429
  ), GS = nt(
12430
12430
  () => import(
12431
12431
  /* webpackChunkName: "modal-chunk" */
12432
- "./MemoriesEntry.2v0Kr4-K.js"
12432
+ "./MemoriesEntry.DpL1iLZb.js"
12433
12433
  ).then((e) => ({ default: e.default }))
12434
12434
  ), KS = ({
12435
12435
  open: e,
@@ -12477,23 +12477,23 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
12477
12477
  p || Promise.all([
12478
12478
  import(
12479
12479
  /* webpackChunkName: "modal-chunk" */
12480
- "./ProfileEntry.DL1hPr1o.js"
12480
+ "./ProfileEntry.T8wth0Is.js"
12481
12481
  ),
12482
12482
  import(
12483
12483
  /* webpackChunkName: "modal-chunk" */
12484
- "./SettingsEntry.BBz6Yx2v.js"
12484
+ "./SettingsEntry.CjOxw1Yx.js"
12485
12485
  ),
12486
12486
  import(
12487
12487
  /* webpackChunkName: "modal-chunk" */
12488
- "./HistoryEntry.DaXJ8Q-f.js"
12488
+ "./HistoryEntry.B-078Lxf.js"
12489
12489
  ),
12490
12490
  import(
12491
12491
  /* webpackChunkName: "modal-chunk" */
12492
- "./AboutEntry.BJrEy0cG.js"
12492
+ "./AboutEntry.C1pRBz7A.js"
12493
12493
  ),
12494
12494
  import(
12495
12495
  /* webpackChunkName: "modal-chunk" */
12496
- "./UsageEntry.HApOoMRD.js"
12496
+ "./UsageEntry.B4I_GNgi.js"
12497
12497
  )
12498
12498
  ]).finally(() => f(!0));
12499
12499
  }, [p]), y = G((O) => {
@@ -12551,8 +12551,8 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
12551
12551
  "div",
12552
12552
  {
12553
12553
  className: Z("py-4 px-4 rounded-t-md", {
12554
- "bg-slate-900": !t,
12555
- "bg-slate-900/95 dark:bg-slate-900": t
12554
+ "bg-surface-darker": !t,
12555
+ "bg-surface-darker/95 dark:bg-surface-darker": t
12556
12556
  }),
12557
12557
  children: /* @__PURE__ */ $(
12558
12558
  uo,
@@ -12588,7 +12588,7 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
12588
12588
  defaultPlacement: "bottom-end",
12589
12589
  children: [
12590
12590
  /* @__PURE__ */ h(
12591
- Pe,
12591
+ ke,
12592
12592
  {
12593
12593
  label: "Profile",
12594
12594
  onClick: () => y("profile"),
@@ -12596,7 +12596,7 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
12596
12596
  }
12597
12597
  ),
12598
12598
  /* @__PURE__ */ h(
12599
- Pe,
12599
+ ke,
12600
12600
  {
12601
12601
  label: "Settings",
12602
12602
  onClick: () => y("settings"),
@@ -12604,7 +12604,7 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
12604
12604
  }
12605
12605
  ),
12606
12606
  /* @__PURE__ */ h(
12607
- Pe,
12607
+ ke,
12608
12608
  {
12609
12609
  label: "History",
12610
12610
  onClick: () => y("history"),
@@ -12612,7 +12612,7 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
12612
12612
  }
12613
12613
  ),
12614
12614
  v && /* @__PURE__ */ h(
12615
- Pe,
12615
+ ke,
12616
12616
  {
12617
12617
  label: "Memories",
12618
12618
  onClick: () => y("memories"),
@@ -12620,7 +12620,7 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
12620
12620
  }
12621
12621
  ),
12622
12622
  !e && /* @__PURE__ */ h(
12623
- Pe,
12623
+ ke,
12624
12624
  {
12625
12625
  label: "Usage",
12626
12626
  onClick: () => y("usage"),
@@ -12628,7 +12628,7 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
12628
12628
  }
12629
12629
  ),
12630
12630
  /* @__PURE__ */ h(
12631
- Pe,
12631
+ ke,
12632
12632
  {
12633
12633
  label: "About",
12634
12634
  onClick: () => y("about"),
@@ -12638,7 +12638,7 @@ const uS = [".png", ".jpg", ".jpeg", ".webp"], dS = [".pdf", ".txt"], fS = [
12638
12638
  !e && /* @__PURE__ */ $(ct, { children: [
12639
12639
  /* @__PURE__ */ h(Xl, {}),
12640
12640
  /* @__PURE__ */ h(
12641
- Pe,
12641
+ ke,
12642
12642
  {
12643
12643
  label: "Log out",
12644
12644
  onClick: S,
@@ -12702,7 +12702,7 @@ const qS = ({
12702
12702
  "size-8",
12703
12703
  "rounded-full",
12704
12704
  "opacity-90 hover:opacity-100",
12705
- "bg-slate-500/60 dark:bg-slate-50/60",
12705
+ "bg-surface-medium/60 dark:bg-surface-lighter/60",
12706
12706
  "backdrop-blur-lg backdrop-saturate-150",
12707
12707
  "border border-white/20 dark:border-black/20",
12708
12708
  "focus:outline-2 focus:outline-focus-dark focus:outline-offset-2"
@@ -12787,20 +12787,20 @@ const La = "av-spinner", ru = ({ spinnerRef: e, mode: t = "system", type: n = "c
12787
12787
  ]
12788
12788
  });
12789
12789
  }, QS = nt(
12790
- () => import("./index.BsjHgnVB.js").then((e) => ({ default: e.Bubble }))
12790
+ () => import("./index.B-dNm2To.js").then((e) => ({ default: e.Bubble }))
12791
12791
  ), is = (e) => /* @__PURE__ */ h(tr, { fallback: /* @__PURE__ */ h("span", { className: "inline-block" }), children: /* @__PURE__ */ h(QS, { ...e }) });
12792
12792
  is.displayName = "AsyncBubble";
12793
- const za = 1, e0 = 150, t0 = nt(
12793
+ const za = 1, eI = 150, tI = nt(
12794
12794
  () => import(
12795
12795
  /* webpackChunkName: "LazyMessageAssistant" */
12796
- "./ChatBubbleAssistant.C0hLrPzq.js"
12796
+ "./ChatBubbleAssistant.nUmdAzup.js"
12797
12797
  )
12798
- ), n0 = nt(
12798
+ ), nI = nt(
12799
12799
  () => import(
12800
12800
  /* webpackChunkName: "LazyMessageUser" */
12801
- "./ChatBubbleUser.CkbwjjY3.js"
12801
+ "./ChatBubbleUser.BUuPXYPp.js"
12802
12802
  )
12803
- ), r0 = st.memo(
12803
+ ), rI = st.memo(
12804
12804
  ({
12805
12805
  role: e,
12806
12806
  content: t,
@@ -12814,7 +12814,7 @@ const za = 1, e0 = 150, t0 = nt(
12814
12814
  );
12815
12815
  return U(() => {
12816
12816
  if (o && i && t && t.trim().length >= za) {
12817
- const u = Date.now() - c.current, g = e0 - u;
12817
+ const u = Date.now() - c.current, g = eI - u;
12818
12818
  if (g > 0) {
12819
12819
  const m = setTimeout(
12820
12820
  () => a(!1),
@@ -12824,8 +12824,8 @@ const za = 1, e0 = 150, t0 = nt(
12824
12824
  }
12825
12825
  a(!1);
12826
12826
  }
12827
- }, [t, i, o]), e === Va && t ? /* @__PURE__ */ h(tr, { fallback: /* @__PURE__ */ h("span", {}), children: /* @__PURE__ */ h(n0, { content: t }) }) : e === sn && o && (s === "submitted" || s === "streaming") && i ? /* @__PURE__ */ h(is, { tail: !0, children: /* @__PURE__ */ h(ru, { type: "dots" }) }) : e === sn && t && t.trim().length >= za ? /* @__PURE__ */ h(tr, { fallback: /* @__PURE__ */ h("span", {}), children: /* @__PURE__ */ h(
12828
- t0,
12827
+ }, [t, i, o]), e === Va && t ? /* @__PURE__ */ h(tr, { fallback: /* @__PURE__ */ h("span", {}), children: /* @__PURE__ */ h(nI, { content: t }) }) : e === sn && o && (s === "submitted" || s === "streaming") && i ? /* @__PURE__ */ h(is, { tail: !0, children: /* @__PURE__ */ h(ru, { type: "dots" }) }) : e === sn && t && t.trim().length >= za ? /* @__PURE__ */ h(tr, { fallback: /* @__PURE__ */ h("span", {}), children: /* @__PURE__ */ h(
12828
+ tI,
12829
12829
  {
12830
12830
  role: e,
12831
12831
  content: t,
@@ -12836,7 +12836,7 @@ const za = 1, e0 = 150, t0 = nt(
12836
12836
  }
12837
12837
  ) }) : null;
12838
12838
  }
12839
- ), o0 = (e) => {
12839
+ ), oI = (e) => {
12840
12840
  if (e.parts && Array.isArray(e.parts)) {
12841
12841
  const t = e.parts.filter((n) => n.type === "text").map((n) => n.text).filter(Boolean);
12842
12842
  return t.length > 0 ? t.join(`
@@ -12845,7 +12845,7 @@ const za = 1, e0 = 150, t0 = nt(
12845
12845
  if ("content" in e && typeof e.content == "string")
12846
12846
  return e.content;
12847
12847
  };
12848
- function s0(e) {
12848
+ function sI(e) {
12849
12849
  const t = e.metadata;
12850
12850
  if (t?.model)
12851
12851
  return { model: String(t.model) };
@@ -12859,14 +12859,14 @@ function s0(e) {
12859
12859
  }
12860
12860
  }
12861
12861
  }
12862
- const a0 = () => {
12862
+ const aI = () => {
12863
12863
  const { messages: e, status: t } = yt(), n = e ? e.map((s, i) => s.role === sn ? i : -1).filter((s) => s !== -1).pop() : -1, r = e && e.length > 0 ? e[e.length - 1] : null, o = (t === "submitted" || t === "streaming") && r?.role === Va;
12864
12864
  return e && e.length > 0 ? /* @__PURE__ */ $("div", { className: "space-y-6 mt-2 @container", children: [
12865
12865
  e?.map((s, i) => {
12866
12866
  let a;
12867
- const c = `${i}-${s.role}`, l = o0(s), d = s0(s), u = s.role === sn && i === n;
12867
+ const c = `${i}-${s.role}`, l = oI(s), d = sI(s), u = s.role === sn && i === n;
12868
12868
  return /* @__PURE__ */ h(
12869
- r0,
12869
+ rI,
12870
12870
  {
12871
12871
  role: s.role,
12872
12872
  content: l,
@@ -12880,7 +12880,7 @@ const a0 = () => {
12880
12880
  }),
12881
12881
  o && /* @__PURE__ */ h(is, { tail: !0, children: /* @__PURE__ */ h(ru, { type: "dots" }) })
12882
12882
  ] }) : null;
12883
- }, i0 = () => {
12883
+ }, iI = () => {
12884
12884
  const { isAuthenticated: e } = $e(), { ref: t, inViewport: n } = XS(), r = X(null), o = X(null), {
12885
12885
  state: { footerPosition: s, footerHeight: i, footerOffset: a, oledMode: c }
12886
12886
  } = ue(yn), {
@@ -12909,7 +12909,7 @@ const a0 = () => {
12909
12909
  capabilities: g
12910
12910
  }
12911
12911
  ),
12912
- /* @__PURE__ */ h(a0, {}),
12912
+ /* @__PURE__ */ h(aI, {}),
12913
12913
  /* @__PURE__ */ h("div", { ref: t, className: "scroll-marker" }),
12914
12914
  /* @__PURE__ */ h(
12915
12915
  "div",
@@ -12936,7 +12936,7 @@ function ou({
12936
12936
  headerHeight: t = 0
12937
12937
  }) {
12938
12938
  const { user: n, getAccessToken: r } = $e(), [o, s] = B(`${ds}px`), [i, a] = Xa(), [c, l] = B(pt()), [d, u] = B([]), [g] = qe({
12939
- key: je + Pu,
12939
+ key: je + ku,
12940
12940
  initialValue: ""
12941
12941
  }), [m] = qe({
12942
12942
  key: je + Mu,
@@ -12948,7 +12948,7 @@ function ou({
12948
12948
  key: je + Lu,
12949
12949
  initialValue: tn.ASC
12950
12950
  }), [v] = qe({
12951
- key: ku,
12951
+ key: Pu,
12952
12952
  initialValue: !1
12953
12953
  }), [b] = qe({
12954
12954
  key: Du,
@@ -12978,7 +12978,7 @@ function ou({
12978
12978
  }, [x, O] = Rn(
12979
12979
  $v,
12980
12980
  S
12981
- ), [P, W] = Rn(Lv, {
12981
+ ), [k, W] = Rn(Lv, {
12982
12982
  prompt: "",
12983
12983
  lastTriggeredTimestamp: 0
12984
12984
  }), [A, D] = Rn(Dv, {
@@ -12994,7 +12994,7 @@ function ou({
12994
12994
  attachments: 0,
12995
12995
  lastStreamingTimestamp: 0,
12996
12996
  lastResetTimestamp: 0
12997
- }), { data: k } = vt({
12997
+ }), { data: P } = vt({
12998
12998
  user: n?.username,
12999
12999
  getAccessToken: r
13000
13000
  }), q = xe(() => new Uo({
@@ -13022,21 +13022,21 @@ function ou({
13022
13022
  payload: { fullScreen: b }
13023
13023
  });
13024
13024
  }, [b]), U(() => {
13025
- k?.themeMode && y({
13025
+ P?.themeMode && y({
13026
13026
  type: Ed,
13027
- payload: { themeMode: k.themeMode }
13028
- }), k?.themePalette && y({
13027
+ payload: { themeMode: P.themeMode }
13028
+ }), P?.themePalette && y({
13029
13029
  type: Sd,
13030
- payload: { themePalette: k.themePalette }
13030
+ payload: { themePalette: P.themePalette }
13031
13031
  });
13032
- }, [k]), U(() => {
13033
- k && k.provider && D({
13032
+ }, [P]), U(() => {
13033
+ P && P.provider && D({
13034
13034
  type: lc,
13035
13035
  payload: {
13036
- provider: k.provider
13036
+ provider: P.provider
13037
13037
  }
13038
13038
  });
13039
- }, [k]), U(() => {
13039
+ }, [P]), U(() => {
13040
13040
  try {
13041
13041
  const F = sessionStorage.getItem("sw-toggle-pending");
13042
13042
  F && (F === "enabled" ? lr(Td, { containerId: "toggle-save" }) : F === "disabled" && lr(xd, {
@@ -13071,7 +13071,7 @@ function ou({
13071
13071
  children: /* @__PURE__ */ h(yn.Provider, { value: { state: E, dispatch: y }, children: /* @__PURE__ */ h(
13072
13072
  Mo.Provider,
13073
13073
  {
13074
- value: { state: P, dispatch: W },
13074
+ value: { state: k, dispatch: W },
13075
13075
  children: /* @__PURE__ */ h(
13076
13076
  Le.Provider,
13077
13077
  {
@@ -13117,7 +13117,7 @@ function ou({
13117
13117
  style: {
13118
13118
  height: o
13119
13119
  },
13120
- children: /* @__PURE__ */ h(i0, {})
13120
+ children: /* @__PURE__ */ h(iI, {})
13121
13121
  }
13122
13122
  ),
13123
13123
  /* @__PURE__ */ h(FS, { isComponent: e })
@@ -13132,35 +13132,35 @@ function ou({
13132
13132
  );
13133
13133
  }
13134
13134
  ou.displayName = "App";
13135
- const S0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: ou }, Symbol.toStringTag, { value: "Module" }));
13135
+ const SI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: ou }, Symbol.toStringTag, { value: "Module" }));
13136
13136
  export {
13137
- S0 as App,
13137
+ SI as App,
13138
13138
  is as AsyncBubble,
13139
13139
  qS as ButtonScroll,
13140
13140
  Bt as CHAT_RESET,
13141
13141
  un as CHAT_SET_ATTACHMENTS,
13142
13142
  xt as CHAT_SET_STATUS,
13143
- Pw as CancelButton,
13143
+ kw as CancelButton,
13144
13144
  pn as ConfirmationPanel,
13145
13145
  Mr as DropdownMenu,
13146
13146
  yr as DropdownMenuGroupLabel,
13147
- Pe as DropdownMenuItem,
13147
+ ke as DropdownMenuItem,
13148
13148
  Jl as DropdownMenuSub,
13149
13149
  ta as LazyToastContainerWrapper,
13150
13150
  ww as Panel,
13151
13151
  wt as ResponsiveTooltip,
13152
13152
  Mw as Toggle,
13153
- E0 as convertStringToHumanReadable,
13154
- v0 as debounce,
13153
+ EI as convertStringToHumanReadable,
13154
+ vI as debounce,
13155
13155
  rv as getDefaultExportFromCjs,
13156
13156
  ei as isProbablyMobile,
13157
- w0 as numberFormatter,
13158
- b0 as obfuscate,
13159
- y0 as pluralize,
13160
- Pv as preloadToast,
13161
- kv as showErrorToast,
13157
+ wI as numberFormatter,
13158
+ bI as obfuscate,
13159
+ yI as pluralize,
13160
+ kv as preloadToast,
13161
+ Pv as showErrorToast,
13162
13162
  lr as showSuccessToast,
13163
- _0 as unObfuscate,
13163
+ _I as unObfuscate,
13164
13164
  yt as useAiChat,
13165
13165
  pr as useCapability,
13166
13166
  XS as useInViewport,