@versini/sassysaint 8.29.1 → 8.30.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.
@@ -1,10 +1,10 @@
1
1
  import { jsx as i, jsxs as T, Fragment as ue } from "react/jsx-runtime";
2
- import { Subscribable as uo, pendingThenable as wa, resolveEnabled as ke, shallowEqualObjects as wr, resolveStaleTime as gt, noop as Er, isServer as kr, isValidTimeout as Ea, focusManager as ho, fetchState as fo, replaceData as ka, notifyManager as Sn, timeUntilStale as mo, shouldThrowError as po, useQueryClient as go, I as re, ACTION_SORT as yo, ACTION_SEARCH as bo, ACTION_RESET_PROMPT as Tn, ACTION_TOGGLE_PROMPT as Cn, le as Ce, DEFAULT_ICON_ACTION_SIZE as Te, n as Ve, isElectron as _a, isTauri as _r, isProbablyiPhone as Ae, L as In, j as yt, C as Sa, LOCAL_STORAGE_PREFIX as Ft, LOCAL_STORAGE_PRIVATE_DISCLOSURE as vo, LOCAL_STORAGE_REASONING_DISCLOSURE as wo, TOAST_CHAT_SAVED as Eo, TOAST_PROVIDER_CHANGED as ko, PROMPT_CLASSNAME as _o, PROMPT_EDITABLE_AREA_CLASSNAME as So, ERROR_MESSAGE as To, ROLE_INTERNAL as Sr, CLIPBOARD_PROMPT as Ta, isProbablyMobile as Ge, INPUT_PLACEHOLDER_TEXT_MOBILE as Ca, INPUT_PLACEHOLDER_TEXT_ENTER as Ia, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as xa, INPUT_BOTTOM_OFFSET_EXTRA as Co, INPUT_BOTTOM_OFFSET as xn, FOOTER_DISCLAIMER as Io, LOG_OUT as Ra, getMessageContaintWrapperClass as xo, UI_FOOTER_BUFFER as Rn, UI_BUTTON_SCROLL_BUFFER as Ro, Logo as Ao, UI_DEFAULT_MAIN_HEIGHT as Aa, APP_CLASSNAME as No, getMainPaddingClass as Na, r as Oo, LOCAL_STORAGE_SORT as $o, LOCAL_STORAGE_SEARCH as Po } from "./index.BQAhrmXB.js";
2
+ import { Subscribable as ho, pendingThenable as wa, resolveEnabled as ke, shallowEqualObjects as wr, resolveStaleTime as gt, noop as Er, isServer as kr, isValidTimeout as Ea, focusManager as fo, fetchState as mo, replaceData as ka, notifyManager as Tn, timeUntilStale as po, shouldThrowError as go, useQueryClient as yo, I as re, ACTION_SORT as bo, ACTION_SEARCH as vo, ACTION_RESET_PROMPT as Cn, ACTION_TOGGLE_PROMPT as In, le as Ce, DEFAULT_ICON_ACTION_SIZE as Te, n as Ve, isElectron as _a, isTauri as _r, isProbablyiPhone as Ae, L as xn, j as yt, C as Sa, LOCAL_STORAGE_PREFIX as Ft, LOCAL_STORAGE_PRIVATE_DISCLOSURE as wo, LOCAL_STORAGE_REASONING_DISCLOSURE as Eo, TOAST_CHAT_SAVED as ko, TOAST_PROVIDER_CHANGED as _o, PROMPT_CLASSNAME as So, PROMPT_EDITABLE_AREA_CLASSNAME as To, ERROR_MESSAGE as Co, ROLE_INTERNAL as Sr, CLIPBOARD_PROMPT as Ta, isProbablyMobile as Ge, INPUT_PLACEHOLDER_TEXT_MOBILE as Ca, INPUT_PLACEHOLDER_TEXT_ENTER as Ia, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as xa, INPUT_BOTTOM_OFFSET_EXTRA as Io, INPUT_BOTTOM_OFFSET as Rn, FOOTER_DISCLAIMERS as Ra, LOG_OUT as Aa, getMessageContaintWrapperClass as xo, UI_FOOTER_BUFFER as An, UI_BUTTON_SCROLL_BUFFER as Ro, Logo as Ao, UI_DEFAULT_MAIN_HEIGHT as Na, APP_CLASSNAME as No, getMainPaddingClass as Oa, r as Oo, LOCAL_STORAGE_SORT as $o, LOCAL_STORAGE_SEARCH as Po } from "./index.DafnfcdW.js";
3
3
  import * as Y from "react";
4
- import Z, { useEffect as $, useRef as R, useState as F, useCallback as W, useSyncExternalStore as Mo, useMemo as he, useId as Kr, useContext as X, useLayoutEffect as Oe, createContext as An, useDebugValue as Lo, forwardRef as Nn, Suspense as On, lazy as ot, useReducer as St } from "react";
4
+ import Z, { useEffect as $, useRef as R, useState as F, useCallback as W, useSyncExternalStore as Mo, useMemo as he, useId as Kr, useContext as X, useLayoutEffect as Oe, createContext as Nn, useDebugValue as Lo, forwardRef as On, Suspense as $n, lazy as ot, useReducer as St } from "react";
5
5
  import p from "clsx";
6
- import { computePosition as Do, offset as $n, flip as Pn, shift as Mn, arrow as Bo, useMergeRefs as Gr, FloatingPortal as Ln, FloatingOverlay as Ho, FloatingFocusManager as Dn, useFloating as Bn, useClick as Hn, useDismiss as Un, useRole as Vn, useInteractions as zn, FloatingTree as Uo, useFloatingTree as Fn, useFloatingNodeId as Vo, useListItem as jn, autoUpdate as zo, useListNavigation as Fo, useTypeahead as jo, FloatingNode as Wo, FloatingList as Ko } from "@floating-ui/react";
7
- var Go = class extends uo {
6
+ import { computePosition as Do, offset as Pn, flip as Mn, shift as Ln, arrow as Bo, useMergeRefs as Gr, FloatingPortal as Dn, FloatingOverlay as Ho, FloatingFocusManager as Bn, useFloating as Hn, useClick as Un, useDismiss as Vn, useRole as zn, useInteractions as Fn, FloatingTree as Uo, useFloatingTree as jn, useFloatingNodeId as Vo, useListItem as Wn, autoUpdate as zo, useListNavigation as Fo, useTypeahead as jo, FloatingNode as Wo, FloatingList as Ko } from "@floating-ui/react";
7
+ var Go = class extends ho {
8
8
  constructor(e, t) {
9
9
  super(), this.options = t, this.#r = e, this.#n = null, this.#a = wa(), this.options.experimental_prefetchInRender || this.#a.reject(
10
10
  new Error("experimental_prefetchInRender feature flag is not enabled")
@@ -31,7 +31,7 @@ var Go = class extends uo {
31
31
  this.refetch = this.refetch.bind(this);
32
32
  }
33
33
  onSubscribe() {
34
- this.listeners.size === 1 && (this.#e.addObserver(this), Oa(this.#e, this.options) ? this.#l() : this.updateResult(), this.#v());
34
+ this.listeners.size === 1 && (this.#e.addObserver(this), $a(this.#e, this.options) ? this.#l() : this.updateResult(), this.#v());
35
35
  }
36
36
  onUnsubscribe() {
37
37
  this.hasListeners() || this.destroy();
@@ -65,7 +65,7 @@ var Go = class extends uo {
65
65
  observer: this
66
66
  });
67
67
  const a = this.hasListeners();
68
- a && $a(
68
+ a && Pa(
69
69
  this.#e,
70
70
  r,
71
71
  this.options,
@@ -123,7 +123,7 @@ var Go = class extends uo {
123
123
  );
124
124
  if (kr || this.#t.isStale || !Ea(e))
125
125
  return;
126
- const r = mo(this.#t.dataUpdatedAt, e) + 1;
126
+ const r = po(this.#t.dataUpdatedAt, e) + 1;
127
127
  this.#i = setTimeout(() => {
128
128
  this.#t.isStale || this.updateResult();
129
129
  }, r);
@@ -133,7 +133,7 @@ var Go = class extends uo {
133
133
  }
134
134
  #b(e) {
135
135
  this.#E(), this.#s = e, !(kr || ke(this.options.enabled, this.#e) === !1 || !Ea(this.#s) || this.#s === 0) && (this.#c = setInterval(() => {
136
- (this.options.refetchIntervalInBackground || ho.isFocused()) && this.#l();
136
+ (this.options.refetchIntervalInBackground || fo.isFocused()) && this.#l();
137
137
  }, this.#s));
138
138
  }
139
139
  #v() {
@@ -149,10 +149,10 @@ var Go = class extends uo {
149
149
  const r = this.#e, a = this.options, n = this.#t, s = this.#o, o = this.#d, l = e !== r ? e.state : this.#m, { state: d } = e;
150
150
  let f = { ...d }, u = !1, h;
151
151
  if (t._optimisticResults) {
152
- const k = this.hasListeners(), x = !k && Oa(e, t), E = k && $a(e, r, t, a);
152
+ const k = this.hasListeners(), x = !k && $a(e, t), E = k && Pa(e, r, t, a);
153
153
  (x || E) && (f = {
154
154
  ...f,
155
- ...fo(d.data, e.options)
155
+ ...mo(d.data, e.options)
156
156
  }), t._optimisticResults === "isRestoring" && (f.fetchStatus = "idle");
157
157
  }
158
158
  let { error: m, errorUpdatedAt: g, status: y } = f;
@@ -260,7 +260,7 @@ var Go = class extends uo {
260
260
  this.updateResult(), this.hasListeners() && this.#v();
261
261
  }
262
262
  #_(e) {
263
- Sn.batch(() => {
263
+ Tn.batch(() => {
264
264
  e.listeners && this.listeners.forEach((t) => {
265
265
  t(this.#t);
266
266
  }), this.#r.getQueryCache().notify({
@@ -273,7 +273,7 @@ var Go = class extends uo {
273
273
  function Jo(e, t) {
274
274
  return ke(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
275
275
  }
276
- function Oa(e, t) {
276
+ function $a(e, t) {
277
277
  return Jo(e, t) || e.state.data !== void 0 && Tr(e, t, t.refetchOnMount);
278
278
  }
279
279
  function Tr(e, t, r) {
@@ -283,7 +283,7 @@ function Tr(e, t, r) {
283
283
  }
284
284
  return !1;
285
285
  }
286
- function $a(e, t, r, a) {
286
+ function Pa(e, t, r, a) {
287
287
  return (e !== t || ke(a.enabled, e) === !1) && (!r.suspense || e.state.status !== "error") && Jr(e, r);
288
288
  }
289
289
  function Jr(e, t) {
@@ -317,12 +317,12 @@ var Zo = Y.createContext(Xo()), ei = () => Y.useContext(Zo), ti = (e, t) => {
317
317
  throwOnError: r,
318
318
  query: a,
319
319
  suspense: n
320
- }) => e.isError && !t.isReset() && !e.isFetching && a && (n && e.data === void 0 || po(r, [e.error, a])), ni = (e) => {
320
+ }) => e.isError && !t.isReset() && !e.isFetching && a && (n && e.data === void 0 || go(r, [e.error, a])), ni = (e) => {
321
321
  if (e.suspense) {
322
322
  const t = (a) => a === "static" ? a : Math.max(a ?? 1e3, 1e3), r = e.staleTime;
323
323
  e.staleTime = typeof r == "function" ? (...a) => t(r(...a)) : t(r), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, 1e3));
324
324
  }
325
- }, si = (e, t) => e.isLoading && e.isFetching && !t, oi = (e, t) => e?.suspense && t.isPending, Pa = (e, t, r) => t.fetchOptimistic(e).catch(() => {
325
+ }, si = (e, t) => e.isLoading && e.isFetching && !t, oi = (e, t) => e?.suspense && t.isPending, Ma = (e, t, r) => t.fetchOptimistic(e).catch(() => {
326
326
  r.clearReset();
327
327
  });
328
328
  function ii(e, t, r) {
@@ -330,7 +330,7 @@ function ii(e, t, r) {
330
330
  throw new Error(
331
331
  'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
332
332
  );
333
- const a = Qo(), n = ei(), s = go(r), o = s.defaultQueryOptions(e);
333
+ const a = Qo(), n = ei(), s = yo(r), o = s.defaultQueryOptions(e);
334
334
  s.getDefaultOptions().queries?._experimental_beforeQuery?.(
335
335
  o
336
336
  ), process.env.NODE_ENV !== "production" && (o.queryFn || console.error(
@@ -345,7 +345,7 @@ function ii(e, t, r) {
345
345
  if (Y.useSyncExternalStore(
346
346
  Y.useCallback(
347
347
  (u) => {
348
- const h = f ? l.subscribe(Sn.batchCalls(u)) : Er;
348
+ const h = f ? l.subscribe(Tn.batchCalls(u)) : Er;
349
349
  return l.updateResult(), h;
350
350
  },
351
351
  [l, f]
@@ -355,7 +355,7 @@ function ii(e, t, r) {
355
355
  ), Y.useEffect(() => {
356
356
  l.setOptions(o);
357
357
  }, [o, l]), oi(o, d))
358
- throw Pa(o, l, n);
358
+ throw Ma(o, l, n);
359
359
  if (ai({
360
360
  result: d,
361
361
  errorResetBoundary: n,
@@ -369,7 +369,7 @@ function ii(e, t, r) {
369
369
  d
370
370
  ), o.experimental_prefetchInRender && !kr && si(d, a) && (c ? (
371
371
  // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
372
- Pa(o, l, n)
372
+ Ma(o, l, n)
373
373
  ) : (
374
374
  // subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
375
375
  s.getQueryCache().get(o.queryHash)?.promise
@@ -993,14 +993,14 @@ function Pi(e, t) {
993
993
  return !1;
994
994
  return o !== u ? !1 : !!(c && (h.toLowerCase() === c.toLowerCase() || t.code.replace("Key", "").toLowerCase() === c.toLowerCase()));
995
995
  }
996
- function Wn(e) {
996
+ function Kn(e) {
997
997
  return (t) => Pi($i(e), t);
998
998
  }
999
999
  function Mi(e) {
1000
1000
  return (t) => {
1001
1001
  const r = "nativeEvent" in t ? t.nativeEvent : t;
1002
1002
  e.forEach(([a, n, s = { preventDefault: !0 }]) => {
1003
- Wn(a)(r) && (s.preventDefault && t.preventDefault(), n(r));
1003
+ Kn(a)(r) && (s.preventDefault && t.preventDefault(), n(r));
1004
1004
  });
1005
1005
  };
1006
1006
  }
@@ -1012,7 +1012,7 @@ function qr(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
1012
1012
  const a = (n) => {
1013
1013
  e.forEach(
1014
1014
  ([s, o, c = { preventDefault: !0 }]) => {
1015
- Wn(s)(n) && Li(n, t, r) && (c.preventDefault && n.preventDefault(), o(n));
1015
+ Kn(s)(n) && Li(n, t, r) && (c.preventDefault && n.preventDefault(), o(n));
1016
1016
  }
1017
1017
  );
1018
1018
  };
@@ -1034,26 +1034,26 @@ function Bi() {
1034
1034
  e.current = !1;
1035
1035
  }), []), W(() => e.current, []);
1036
1036
  }
1037
- function Kn(e, t) {
1037
+ function Gn(e, t) {
1038
1038
  window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
1039
1039
  }
1040
- const Ma = (e, t) => {
1040
+ const La = (e, t) => {
1041
1041
  const r = JSON.stringify(
1042
1042
  typeof t == "function" ? t() : t
1043
1043
  );
1044
- window.localStorage.setItem(e, r), Kn(e, r);
1044
+ window.localStorage.setItem(e, r), Gn(e, r);
1045
1045
  }, Hi = (e) => {
1046
- window.localStorage.removeItem(e), Kn(e, null);
1047
- }, La = (e) => window.localStorage.getItem(e), Ui = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
1046
+ window.localStorage.removeItem(e), Gn(e, null);
1047
+ }, Da = (e) => window.localStorage.getItem(e), Ui = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
1048
1048
  function jt({
1049
1049
  key: e,
1050
1050
  initialValue: t
1051
1051
  }) {
1052
- const r = Mo(Ui, () => La(e)), a = W(
1052
+ const r = Mo(Ui, () => Da(e)), a = W(
1053
1053
  (o) => {
1054
1054
  try {
1055
1055
  const c = typeof o == "function" ? o(JSON.parse(r)) : o;
1056
- c == null ? Hi(e) : Ma(e, c);
1056
+ c == null ? Hi(e) : La(e, c);
1057
1057
  } catch (c) {
1058
1058
  console.warn(c);
1059
1059
  }
@@ -1066,7 +1066,7 @@ function jt({
1066
1066
  }, [a]);
1067
1067
  return $(() => {
1068
1068
  try {
1069
- La(e) === null && typeof t < "u" && Ma(e, t);
1069
+ Da(e) === null && typeof t < "u" && La(e, t);
1070
1070
  } catch (o) {
1071
1071
  console.warn(o);
1072
1072
  }
@@ -1082,7 +1082,7 @@ const Vi = {
1082
1082
  bottom: 0,
1083
1083
  right: 0
1084
1084
  };
1085
- function Gn(e) {
1085
+ function Jn(e) {
1086
1086
  const t = Bi(), r = R(0), a = R(null), [n, s] = F(Vi), o = he(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
1087
1087
  const l = c[0];
1088
1088
  l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
@@ -1096,7 +1096,7 @@ function Gn(e) {
1096
1096
  function zi(e) {
1097
1097
  return Kr();
1098
1098
  }
1099
- function Da(e, t) {
1099
+ function Ba(e, t) {
1100
1100
  $(() => (window.addEventListener(e, t, {
1101
1101
  passive: !0
1102
1102
  }), () => window.removeEventListener(e, t)), [e, t]);
@@ -1111,7 +1111,7 @@ function Fi() {
1111
1111
  height: window.innerHeight || 0
1112
1112
  });
1113
1113
  }, []);
1114
- return Da("resize", r), Da("orientationchange", r), $(r, []), e;
1114
+ return Ba("resize", r), Ba("orientationchange", r), $(r, []), e;
1115
1115
  }
1116
1116
  function ji() {
1117
1117
  const [e, t] = F({
@@ -1247,7 +1247,7 @@ const qt = "thead", Yr = "tfoot", tt = "tbody", ft = {
1247
1247
  )
1248
1248
  }), Yi = ({
1249
1249
  buttonClassName: e
1250
- }) => p("rounded-none text-sm", e), Ba = "av-button", Qr = "icon", Jn = "button", Cr = "link", Qi = ({
1250
+ }) => p("rounded-none text-sm", e), Ha = "av-button", Qr = "icon", qn = "button", Cr = "link", Qi = ({
1251
1251
  type: e,
1252
1252
  size: t,
1253
1253
  labelRight: r,
@@ -1257,7 +1257,7 @@ const qt = "thead", Yr = "tfoot", tt = "tbody", ft = {
1257
1257
  }) => {
1258
1258
  const o = "max-h-8 py-0 px-2", c = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
1259
1259
  switch (e) {
1260
- case Jn:
1260
+ case qn:
1261
1261
  case Cr:
1262
1262
  return p({
1263
1263
  [o]: t === "small",
@@ -1291,7 +1291,7 @@ const qt = "thead", Yr = "tfoot", tt = "tbody", ft = {
1291
1291
  }) => {
1292
1292
  const n = "text-sm font-medium", s = "text-base font-medium", o = "text-lg font-medium";
1293
1293
  switch (e) {
1294
- case Jn:
1294
+ case qn:
1295
1295
  case Cr:
1296
1296
  return p({
1297
1297
  "text-center": e === Cr,
@@ -1509,8 +1509,8 @@ const qt = "thead", Yr = "tfoot", tt = "tbody", ft = {
1509
1509
  align: g,
1510
1510
  radius: y,
1511
1511
  animated: v
1512
- }) => (h || (h = "primary"), r ? p(Ba, t) : p(
1513
- Ba,
1512
+ }) => (h || (h = "primary"), r ? p(Ha, t) : p(
1513
+ Ha,
1514
1514
  Zi({
1515
1515
  mode: a,
1516
1516
  variant: h,
@@ -1543,7 +1543,7 @@ const qt = "thead", Yr = "tfoot", tt = "tbody", ft = {
1543
1543
  )), lc = (e, t, r) => {
1544
1544
  var a;
1545
1545
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e?.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
1546
- }, qn = Z.forwardRef((e, t) => {
1546
+ }, Yn = Z.forwardRef((e, t) => {
1547
1547
  const { onClick: r, noInternalClick: a = !1, ...n } = e;
1548
1548
  return /* @__PURE__ */ i(
1549
1549
  "button",
@@ -1556,7 +1556,7 @@ const qt = "thead", Yr = "tfoot", tt = "tbody", ft = {
1556
1556
  }
1557
1557
  );
1558
1558
  });
1559
- qn.displayName = "BaseButton";
1559
+ Yn.displayName = "BaseButton";
1560
1560
  function dc() {
1561
1561
  const e = R(!1);
1562
1562
  return $(() => (e.current = !0, () => {
@@ -1606,7 +1606,7 @@ const Tt = {
1606
1606
  // px-3 x 2
1607
1607
  large: 16 * 2
1608
1608
  // px-4 x 2
1609
- }, mc = 2, pc = 300, Yn = Z.forwardRef(
1609
+ }, mc = 2, pc = 300, Qn = Z.forwardRef(
1610
1610
  ({
1611
1611
  children: e,
1612
1612
  disabled: t = !1,
@@ -1669,7 +1669,7 @@ const Tt = {
1669
1669
  ]), $(() => () => {
1670
1670
  M.current && clearTimeout(M.current);
1671
1671
  }, []), /* @__PURE__ */ i(
1672
- qn,
1672
+ Yn,
1673
1673
  {
1674
1674
  ref: q,
1675
1675
  className: b,
@@ -1679,7 +1679,7 @@ const Tt = {
1679
1679
  ...O,
1680
1680
  children: /* @__PURE__ */ T("div", { className: x, children: [
1681
1681
  /* @__PURE__ */ i(
1682
- Ha,
1682
+ Ua,
1683
1683
  {
1684
1684
  label: m,
1685
1685
  labelRef: A,
@@ -1690,7 +1690,7 @@ const Tt = {
1690
1690
  ),
1691
1691
  /* @__PURE__ */ i("span", { ref: P, className: _, children: e }),
1692
1692
  /* @__PURE__ */ i(
1693
- Ha,
1693
+ Ua,
1694
1694
  {
1695
1695
  label: h,
1696
1696
  labelRef: E,
@@ -1703,7 +1703,7 @@ const Tt = {
1703
1703
  }
1704
1704
  );
1705
1705
  }
1706
- ), Ha = ({
1706
+ ), Ua = ({
1707
1707
  labelRef: e,
1708
1708
  labelClass: t,
1709
1709
  label: r,
@@ -1718,7 +1718,7 @@ const Tt = {
1718
1718
  children: r && /* @__PURE__ */ i("span", { className: a, children: r })
1719
1719
  }
1720
1720
  );
1721
- Yn.displayName = "ButtonIcon";
1721
+ Qn.displayName = "ButtonIcon";
1722
1722
  /*!
1723
1723
  @versini/ui-button v6.0.9
1724
1724
  © 2025 gizmette.com
@@ -1732,7 +1732,7 @@ try {
1732
1732
  });
1733
1733
  } catch {
1734
1734
  }
1735
- const Qn = Z.forwardRef(
1735
+ const Xn = Z.forwardRef(
1736
1736
  ({
1737
1737
  children: e,
1738
1738
  mode: t = "system",
@@ -1758,7 +1758,7 @@ const Qn = Z.forwardRef(
1758
1758
  }
1759
1759
  ) : "";
1760
1760
  return /* @__PURE__ */ i("div", { className: o, children: /* @__PURE__ */ i(
1761
- Yn,
1761
+ Qn,
1762
1762
  {
1763
1763
  className: p("justify-center", r),
1764
1764
  ref: s,
@@ -1770,7 +1770,7 @@ const Qn = Z.forwardRef(
1770
1770
  ) });
1771
1771
  }
1772
1772
  );
1773
- Qn.displayName = "ButtonSort";
1773
+ Xn.displayName = "ButtonSort";
1774
1774
  const Xr = ({
1775
1775
  children: e,
1776
1776
  fill: t,
@@ -2030,7 +2030,7 @@ const ct = Z.createContext({
2030
2030
  "aria-sort": l === ft.ASC && d === f ? "ascending" : l === ft.DESC && d === f ? "descending" : "other",
2031
2031
  ...u,
2032
2032
  children: /* @__PURE__ */ i(
2033
- Qn,
2033
+ Xn,
2034
2034
  {
2035
2035
  active: d === f,
2036
2036
  className: h,
@@ -2076,10 +2076,10 @@ function kc() {
2076
2076
  }
2077
2077
  return tr(Ec);
2078
2078
  }
2079
- const _c = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ua = { randomUUID: _c };
2079
+ const _c = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Va = { randomUUID: _c };
2080
2080
  function He(e, t, r) {
2081
- if (Ua.randomUUID && !e)
2082
- return Ua.randomUUID();
2081
+ if (Va.randomUUID && !e)
2082
+ return Va.randomUUID();
2083
2083
  e = e || {};
2084
2084
  const a = e.random ?? e.rng?.() ?? kc();
2085
2085
  if (a.length < 16)
@@ -2087,7 +2087,7 @@ function He(e, t, r) {
2087
2087
  return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, wc(a);
2088
2088
  }
2089
2089
  let Ct = !1, rr = null;
2090
- const Va = ({
2090
+ const za = ({
2091
2091
  containerId: e,
2092
2092
  ...t
2093
2093
  }) => {
@@ -2109,7 +2109,7 @@ const Va = ({
2109
2109
  };
2110
2110
  }
2111
2111
  }, []), r && rr ? /* @__PURE__ */ i(rr, { containerId: e, ...t }) : null;
2112
- }, Je = "FOOTER_BOTTOM", Wt = "FOOTER_TOP", mt = "APP_SET_FOOTER_POSITION", Xn = "APP_SET_FOOTER_HEIGHT", Sc = (e, t) => {
2112
+ }, Je = "FOOTER_BOTTOM", Wt = "FOOTER_TOP", mt = "APP_SET_FOOTER_POSITION", Zn = "APP_SET_FOOTER_HEIGHT", Sc = (e, t) => {
2113
2113
  switch (t.type) {
2114
2114
  case mt:
2115
2115
  return {
@@ -2117,7 +2117,7 @@ const Va = ({
2117
2117
  footerPosition: t.payload.footerPosition,
2118
2118
  footerOffset: t.payload.footerOffset
2119
2119
  };
2120
- case Xn:
2120
+ case Zn:
2121
2121
  return {
2122
2122
  ...e,
2123
2123
  footerHeight: t.payload.footerHeight
@@ -2125,9 +2125,9 @@ const Va = ({
2125
2125
  default:
2126
2126
  return e;
2127
2127
  }
2128
- }, rt = "CHAT_SET_STATUS", Zn = "CHAT_SET_USAGE", nt = "CHAT_SET_ATTACHMENTS", es = "CHAT_SET_PROVIDER", Ye = "CHAT_RESET", Tc = (e, t) => {
2128
+ }, rt = "CHAT_SET_STATUS", es = "CHAT_SET_USAGE", nt = "CHAT_SET_ATTACHMENTS", ts = "CHAT_SET_PROVIDER", Ye = "CHAT_RESET", Tc = (e, t) => {
2129
2129
  switch (t.type) {
2130
- case Zn:
2130
+ case es:
2131
2131
  return {
2132
2132
  ...e,
2133
2133
  tokenUsage: e.tokenUsage + t.payload.tokenUsage
@@ -2153,7 +2153,7 @@ const Va = ({
2153
2153
  lastStreamingTimestamp: a ? Date.now() : e.lastStreamingTimestamp
2154
2154
  };
2155
2155
  }
2156
- case es:
2156
+ case ts:
2157
2157
  return {
2158
2158
  ...e,
2159
2159
  provider: t.payload.provider
@@ -2179,13 +2179,13 @@ const Va = ({
2179
2179
  }
2180
2180
  }, Cc = (e, t) => {
2181
2181
  switch (t?.type) {
2182
- case bo:
2182
+ case vo:
2183
2183
  return {
2184
2184
  searchString: t.payload.searchString,
2185
2185
  sortedCell: e.sortedCell,
2186
2186
  sortDirection: e.sortDirection
2187
2187
  };
2188
- case yo:
2188
+ case bo:
2189
2189
  return {
2190
2190
  searchString: e.searchString,
2191
2191
  sortedCell: t.payload.sortedCell,
@@ -2196,12 +2196,12 @@ const Va = ({
2196
2196
  }
2197
2197
  }, Ic = (e, t) => {
2198
2198
  switch (t?.type) {
2199
- case Cn:
2199
+ case In:
2200
2200
  return {
2201
2201
  prompt: t.payload.prompt,
2202
2202
  lastTriggeredTimestamp: e.lastTriggeredTimestamp
2203
2203
  };
2204
- case Tn:
2204
+ case Cn:
2205
2205
  return {
2206
2206
  prompt: "",
2207
2207
  lastTriggeredTimestamp: (/* @__PURE__ */ new Date()).getTime()
@@ -2405,7 +2405,7 @@ const Va = ({
2405
2405
  variables: t
2406
2406
  }),
2407
2407
  ...a
2408
- }), ts = async (e) => {
2408
+ }), rs = async (e) => {
2409
2409
  const t = e.type?.data ? e.type.data(e.params) : e.params;
2410
2410
  try {
2411
2411
  let r;
@@ -2441,7 +2441,7 @@ const Va = ({
2441
2441
  username: r
2442
2442
  }) => {
2443
2443
  try {
2444
- await ts({
2444
+ await rs({
2445
2445
  accessToken: t,
2446
2446
  type: ze.SET_USER_PREFERENCES,
2447
2447
  params: {
@@ -2497,7 +2497,7 @@ const Va = ({
2497
2497
  type: ze.GET_CHATS_STATS,
2498
2498
  getAccessToken: t
2499
2499
  })
2500
- }), rs = ({
2500
+ }), as = ({
2501
2501
  user: e,
2502
2502
  searchString: t,
2503
2503
  sortDirection: r,
@@ -2574,7 +2574,7 @@ const Va = ({
2574
2574
  return Promise.reject(n);
2575
2575
  }
2576
2576
  };
2577
- var as = "vercel.ai.error", Rc = Symbol.for(as), ns, Ac = class ss extends Error {
2577
+ var ns = "vercel.ai.error", Rc = Symbol.for(ns), ss, Ac = class os extends Error {
2578
2578
  /**
2579
2579
  * Creates an AI SDK Error.
2580
2580
  *
@@ -2588,7 +2588,7 @@ var as = "vercel.ai.error", Rc = Symbol.for(as), ns, Ac = class ss extends Error
2588
2588
  message: r,
2589
2589
  cause: a
2590
2590
  }) {
2591
- super(r), this[ns] = !0, this.name = t, this.cause = a;
2591
+ super(r), this[ss] = !0, this.name = t, this.cause = a;
2592
2592
  }
2593
2593
  /**
2594
2594
  * Checks if the given error is an AI SDK Error.
@@ -2596,56 +2596,56 @@ var as = "vercel.ai.error", Rc = Symbol.for(as), ns, Ac = class ss extends Error
2596
2596
  * @returns {boolean} True if the error is an AI SDK Error, false otherwise.
2597
2597
  */
2598
2598
  static isInstance(t) {
2599
- return ss.hasMarker(t, as);
2599
+ return os.hasMarker(t, ns);
2600
2600
  }
2601
2601
  static hasMarker(t, r) {
2602
2602
  const a = Symbol.for(r);
2603
2603
  return t != null && typeof t == "object" && a in t && typeof t[a] == "boolean" && t[a] === !0;
2604
2604
  }
2605
2605
  };
2606
- ns = Rc;
2606
+ ss = Rc;
2607
2607
  var st = Ac;
2608
- function os(e) {
2608
+ function is(e) {
2609
2609
  return e == null ? "unknown error" : typeof e == "string" ? e : e instanceof Error ? e.message : JSON.stringify(e);
2610
2610
  }
2611
- var is = "AI_InvalidArgumentError", cs = `vercel.ai.error.${is}`, Nc = Symbol.for(cs), ls, Oc = class extends st {
2611
+ var cs = "AI_InvalidArgumentError", ls = `vercel.ai.error.${cs}`, Nc = Symbol.for(ls), ds, Oc = class extends st {
2612
2612
  constructor({
2613
2613
  message: e,
2614
2614
  cause: t,
2615
2615
  argument: r
2616
2616
  }) {
2617
- super({ name: is, message: e, cause: t }), this[ls] = !0, this.argument = r;
2617
+ super({ name: cs, message: e, cause: t }), this[ds] = !0, this.argument = r;
2618
2618
  }
2619
2619
  static isInstance(e) {
2620
- return st.hasMarker(e, cs);
2620
+ return st.hasMarker(e, ls);
2621
2621
  }
2622
2622
  };
2623
- ls = Nc;
2624
- var ds = "AI_JSONParseError", us = `vercel.ai.error.${ds}`, $c = Symbol.for(us), hs, za = class extends st {
2623
+ ds = Nc;
2624
+ var us = "AI_JSONParseError", hs = `vercel.ai.error.${us}`, $c = Symbol.for(hs), fs, Fa = class extends st {
2625
2625
  constructor({ text: e, cause: t }) {
2626
2626
  super({
2627
- name: ds,
2627
+ name: us,
2628
2628
  message: `JSON parsing failed: Text: ${e}.
2629
- Error message: ${os(t)}`,
2629
+ Error message: ${is(t)}`,
2630
2630
  cause: t
2631
- }), this[hs] = !0, this.text = e;
2631
+ }), this[fs] = !0, this.text = e;
2632
2632
  }
2633
2633
  static isInstance(e) {
2634
- return st.hasMarker(e, us);
2634
+ return st.hasMarker(e, hs);
2635
2635
  }
2636
2636
  };
2637
- hs = $c;
2638
- var fs = "AI_TypeValidationError", ms = `vercel.ai.error.${fs}`, Pc = Symbol.for(ms), ps, Mc = class Ir extends st {
2637
+ fs = $c;
2638
+ var ms = "AI_TypeValidationError", ps = `vercel.ai.error.${ms}`, Pc = Symbol.for(ps), gs, Mc = class Ir extends st {
2639
2639
  constructor({ value: t, cause: r }) {
2640
2640
  super({
2641
- name: fs,
2641
+ name: ms,
2642
2642
  message: `Type validation failed: Value: ${JSON.stringify(t)}.
2643
- Error message: ${os(r)}`,
2643
+ Error message: ${is(r)}`,
2644
2644
  cause: r
2645
- }), this[ps] = !0, this.value = t;
2645
+ }), this[gs] = !0, this.value = t;
2646
2646
  }
2647
2647
  static isInstance(t) {
2648
- return st.hasMarker(t, ms);
2648
+ return st.hasMarker(t, ps);
2649
2649
  }
2650
2650
  /**
2651
2651
  * Wraps an error into a TypeValidationError.
@@ -2664,21 +2664,21 @@ Error message: ${os(r)}`,
2664
2664
  return Ir.isInstance(r) && r.value === t ? r : new Ir({ value: t, cause: r });
2665
2665
  }
2666
2666
  };
2667
- ps = Pc;
2668
- var Fa = Mc;
2667
+ gs = Pc;
2668
+ var ja = Mc;
2669
2669
  let Lc = (e, t = 21) => (r = t) => {
2670
2670
  let a = "", n = r | 0;
2671
2671
  for (; n--; )
2672
2672
  a += e[Math.random() * e.length | 0];
2673
2673
  return a;
2674
2674
  };
2675
- function gs(e) {
2675
+ function ys(e) {
2676
2676
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2677
2677
  }
2678
- var Ke = { exports: {} }, ja;
2678
+ var Ke = { exports: {} }, Wa;
2679
2679
  function Dc() {
2680
- if (ja) return Ke.exports;
2681
- ja = 1;
2680
+ if (Wa) return Ke.exports;
2681
+ Wa = 1;
2682
2682
  const e = typeof Buffer < "u", t = /"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/, r = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
2683
2683
  function a(c, l, d) {
2684
2684
  d == null && l !== null && typeof l == "object" && (d = l, l = void 0), e && Buffer.isBuffer(c) && (c = c.toString()), c && c.charCodeAt(0) === 65279 && (c = c.slice(1));
@@ -2749,7 +2749,7 @@ function Dc() {
2749
2749
  return Ke.exports = s, Ke.exports.default = s, Ke.exports.parse = s, Ke.exports.safeParse = o, Ke.exports.scan = n, Ke.exports;
2750
2750
  }
2751
2751
  var Bc = /* @__PURE__ */ Dc();
2752
- const Hc = /* @__PURE__ */ gs(Bc);
2752
+ const Hc = /* @__PURE__ */ ys(Bc);
2753
2753
  var Uc = ({
2754
2754
  prefix: e,
2755
2755
  size: t = 16,
@@ -2792,16 +2792,16 @@ function Wc({
2792
2792
  const a = r.validate(e);
2793
2793
  return a.success ? a : {
2794
2794
  success: !1,
2795
- error: Fa.wrap({ value: e, cause: a.error })
2795
+ error: ja.wrap({ value: e, cause: a.error })
2796
2796
  };
2797
2797
  } catch (a) {
2798
2798
  return {
2799
2799
  success: !1,
2800
- error: Fa.wrap({ value: e, cause: a })
2800
+ error: ja.wrap({ value: e, cause: a })
2801
2801
  };
2802
2802
  }
2803
2803
  }
2804
- function Wa({
2804
+ function Ka({
2805
2805
  text: e,
2806
2806
  schema: t
2807
2807
  }) {
@@ -2814,7 +2814,7 @@ function Wa({
2814
2814
  } catch (r) {
2815
2815
  return {
2816
2816
  success: !1,
2817
- error: za.isInstance(r) ? r : new za({ text: e, cause: r })
2817
+ error: Fa.isInstance(r) ? r : new Fa({ text: e, cause: r })
2818
2818
  };
2819
2819
  }
2820
2820
  }
@@ -3079,8 +3079,8 @@ function Gc(e) {
3079
3079
  function Jc(e) {
3080
3080
  if (e === void 0)
3081
3081
  return { value: void 0, state: "undefined-input" };
3082
- let t = Wa({ text: e });
3083
- return t.success ? { value: t.value, state: "successful-parse" } : (t = Wa({ text: Gc(e) }), t.success ? { value: t.value, state: "repaired-parse" } : { value: void 0, state: "failed-parse" });
3082
+ let t = Ka({ text: e });
3083
+ return t.success ? { value: t.value, state: "successful-parse" } : (t = Ka({ text: Gc(e) }), t.success ? { value: t.value, state: "repaired-parse" } : { value: void 0, state: "failed-parse" });
3084
3084
  }
3085
3085
  var qc = {
3086
3086
  code: "0",
@@ -3714,7 +3714,7 @@ function Rr(e) {
3714
3714
  return Math.max(t, (a = r.step) != null ? a : 0);
3715
3715
  }, 0);
3716
3716
  }
3717
- function ys(e) {
3717
+ function bs(e) {
3718
3718
  var t;
3719
3719
  return (t = e.parts) != null ? t : [
3720
3720
  ...e.toolInvocations ? e.toolInvocations.map((r) => ({
@@ -3734,7 +3734,7 @@ function ys(e) {
3734
3734
  function ar(e) {
3735
3735
  return e.map((t) => ({
3736
3736
  ...t,
3737
- parts: ys(t)
3737
+ parts: bs(t)
3738
3738
  }));
3739
3739
  }
3740
3740
  function Ar(e, t) {
@@ -3764,7 +3764,7 @@ function Ar(e, t) {
3764
3764
  return !1;
3765
3765
  return !0;
3766
3766
  }
3767
- async function Ka(e) {
3767
+ async function Ga(e) {
3768
3768
  if (!e)
3769
3769
  return [];
3770
3770
  if (globalThis.FileList && e instanceof globalThis.FileList)
@@ -3801,11 +3801,11 @@ function kl({
3801
3801
  r > 1 && // ensure there is a last message:
3802
3802
  s != null && // ensure we actually have new steps (to prevent infinite loops in case of errors):
3803
3803
  (a.length > t || Rr(s.toolInvocations) !== e) && // check that next step is possible:
3804
- bs(s) && // limit the number of automatic steps:
3804
+ vs(s) && // limit the number of automatic steps:
3805
3805
  ((n = Rr(s.toolInvocations)) != null ? n : 0) < r
3806
3806
  );
3807
3807
  }
3808
- function bs(e) {
3808
+ function vs(e) {
3809
3809
  if (e.role !== "assistant")
3810
3810
  return !1;
3811
3811
  const t = e.parts.reduce((a, n, s) => n.type === "step-start" ? s : a, -1), r = e.parts.slice(t + 1).filter((a) => a.type === "tool-invocation");
@@ -3841,10 +3841,10 @@ var It = { exports: {} }, nr = {};
3841
3841
  * This source code is licensed under the MIT license found in the
3842
3842
  * LICENSE file in the root directory of this source tree.
3843
3843
  */
3844
- var Ga;
3844
+ var Ja;
3845
3845
  function Sl() {
3846
- if (Ga) return nr;
3847
- Ga = 1;
3846
+ if (Ja) return nr;
3847
+ Ja = 1;
3848
3848
  var e = Z;
3849
3849
  function t(u, h) {
3850
3850
  return u === h && (u !== 0 || 1 / u === 1 / h) || u !== u && h !== h;
@@ -3892,9 +3892,9 @@ var sr = {};
3892
3892
  * This source code is licensed under the MIT license found in the
3893
3893
  * LICENSE file in the root directory of this source tree.
3894
3894
  */
3895
- var Ja;
3895
+ var qa;
3896
3896
  function Tl() {
3897
- return Ja || (Ja = 1, process.env.NODE_ENV !== "production" && function() {
3897
+ return qa || (qa = 1, process.env.NODE_ENV !== "production" && function() {
3898
3898
  function e(m, g) {
3899
3899
  return m === g && (m !== 0 || 1 / m === 1 / g) || m !== m && g !== g;
3900
3900
  }
@@ -3945,13 +3945,13 @@ function Tl() {
3945
3945
  sr.useSyncExternalStore = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : h, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
3946
3946
  }()), sr;
3947
3947
  }
3948
- var qa;
3948
+ var Ya;
3949
3949
  function Cl() {
3950
- return qa || (qa = 1, process.env.NODE_ENV === "production" ? It.exports = /* @__PURE__ */ Sl() : It.exports = /* @__PURE__ */ Tl()), It.exports;
3950
+ return Ya || (Ya = 1, process.env.NODE_ENV === "production" ? It.exports = /* @__PURE__ */ Sl() : It.exports = /* @__PURE__ */ Tl()), It.exports;
3951
3951
  }
3952
3952
  var Il = /* @__PURE__ */ Cl();
3953
- const vs = 0, ws = 1, Es = 2, Ya = 3;
3954
- var Qa = Object.prototype.hasOwnProperty;
3953
+ const ws = 0, Es = 1, ks = 2, Qa = 3;
3954
+ var Xa = Object.prototype.hasOwnProperty;
3955
3955
  function Nr(e, t) {
3956
3956
  var r, a;
3957
3957
  if (e === t) return !0;
@@ -3966,7 +3966,7 @@ function Nr(e, t) {
3966
3966
  if (!r || typeof e == "object") {
3967
3967
  a = 0;
3968
3968
  for (r in e)
3969
- if (Qa.call(e, r) && ++a && !Qa.call(t, r) || !(r in t) || !Nr(e[r], t[r])) return !1;
3969
+ if (Xa.call(e, r) && ++a && !Xa.call(t, r) || !(r in t) || !Nr(e[r], t[r])) return !1;
3970
3970
  return Object.keys(t).length === a;
3971
3971
  }
3972
3972
  }
@@ -3979,7 +3979,7 @@ const Ne = /* @__PURE__ */ new WeakMap(), Le = () => {
3979
3979
  ), Or = Object, K = (e) => e === de, Se = (e) => typeof e == "function", Ue = (e, t) => ({
3980
3980
  ...e,
3981
3981
  ...t
3982
- }), ks = (e) => Se(e.then), or = {}, xt = {}, ra = "undefined", wt = typeof window != ra, $r = typeof document != ra, xl = wt && "Deno" in window, Rl = () => wt && typeof window.requestAnimationFrame != ra, _s = (e, t) => {
3982
+ }), _s = (e) => Se(e.then), or = {}, xt = {}, ra = "undefined", wt = typeof window != ra, $r = typeof document != ra, xl = wt && "Deno" in window, Rl = () => wt && typeof window.requestAnimationFrame != ra, Ss = (e, t) => {
3983
3983
  const r = Ne.get(e);
3984
3984
  return [
3985
3985
  // Getter
@@ -4024,7 +4024,7 @@ const Al = () => Pr, [Mr, Lr] = wt && window.addEventListener ? [
4024
4024
  }, Ml = {
4025
4025
  initFocus: Ol,
4026
4026
  initReconnect: $l
4027
- }, Xa = !Z.useId, bt = !wt || xl, Ll = (e) => Rl() ? window.requestAnimationFrame(e) : setTimeout(e, 1), ir = bt ? $ : Oe, cr = typeof navigator < "u" && navigator.connection, Za = !bt && cr && ([
4027
+ }, Za = !Z.useId, bt = !wt || xl, Ll = (e) => Rl() ? window.requestAnimationFrame(e) : setTimeout(e, 1), ir = bt ? $ : Oe, cr = typeof navigator < "u" && navigator.connection, en = !bt && cr && ([
4028
4028
  "slow-2g",
4029
4029
  "2g"
4030
4030
  ].includes(cr.effectiveType) || cr.saveData), Rt = /* @__PURE__ */ new WeakMap(), Dl = (e) => Or.prototype.toString.call(e), lr = (e, t) => e === `[object ${t}]`;
@@ -4064,7 +4064,7 @@ const Dr = (e) => {
4064
4064
  };
4065
4065
  let Hl = 0;
4066
4066
  const Br = () => ++Hl;
4067
- async function Ss(...e) {
4067
+ async function Ts(...e) {
4068
4068
  const [t, r, a, n] = e, s = Ue({
4069
4069
  populateCache: !0,
4070
4070
  throwOnError: !0
@@ -4086,9 +4086,9 @@ async function Ss(...e) {
4086
4086
  async function u(h) {
4087
4087
  const [m] = aa(h);
4088
4088
  if (!m) return;
4089
- const [g, y] = _s(t, m), [v, w, C, S] = Ne.get(t), O = () => {
4089
+ const [g, y] = Ss(t, m), [v, w, C, S] = Ne.get(t), O = () => {
4090
4090
  const P = v[m];
4091
- return (Se(s.revalidate) ? s.revalidate(g().data, h) : s.revalidate !== !1) && (delete C[m], delete S[m], P && P[0]) ? P[0](Es).then(() => g().data) : g().data;
4091
+ return (Se(s.revalidate) ? s.revalidate(g().data, h) : s.revalidate !== !1) && (delete C[m], delete S[m], P && P[0]) ? P[0](ks).then(() => g().data) : g().data;
4092
4092
  };
4093
4093
  if (e.length < 3)
4094
4094
  return O();
@@ -4108,7 +4108,7 @@ async function Ss(...e) {
4108
4108
  } catch (P) {
4109
4109
  b = P, _ = !0;
4110
4110
  }
4111
- if (I && ks(I))
4111
+ if (I && _s(I))
4112
4112
  if (I = await I.catch((P) => {
4113
4113
  b = P, _ = !0;
4114
4114
  }), k !== w[m][0]) {
@@ -4143,12 +4143,12 @@ async function Ss(...e) {
4143
4143
  return I;
4144
4144
  }
4145
4145
  }
4146
- const en = (e, t) => {
4146
+ const tn = (e, t) => {
4147
4147
  for (const r in e)
4148
4148
  e[r][0] && e[r][0](t);
4149
4149
  }, Ul = (e, t) => {
4150
4150
  if (!Ne.has(e)) {
4151
- const r = Ue(Ml, t), a = /* @__PURE__ */ Object.create(null), n = Ss.bind(de, e);
4151
+ const r = Ue(Ml, t), a = /* @__PURE__ */ Object.create(null), n = Ts.bind(de, e);
4152
4152
  let s = Le;
4153
4153
  const o = /* @__PURE__ */ Object.create(null), c = (f, u) => {
4154
4154
  const h = o[f] || [];
@@ -4169,7 +4169,7 @@ const en = (e, t) => {
4169
4169
  l,
4170
4170
  c
4171
4171
  ]), !bt)) {
4172
- const f = r.initFocus(setTimeout.bind(de, en.bind(de, a, vs))), u = r.initReconnect(setTimeout.bind(de, en.bind(de, a, ws)));
4172
+ const f = r.initFocus(setTimeout.bind(de, tn.bind(de, a, ws))), u = r.initReconnect(setTimeout.bind(de, tn.bind(de, a, Es)));
4173
4173
  s = () => {
4174
4174
  f && f(), u && u(), Ne.delete(e);
4175
4175
  };
@@ -4189,7 +4189,7 @@ const en = (e, t) => {
4189
4189
  }, Vl = (e, t, r, a, n) => {
4190
4190
  const s = r.errorRetryCount, o = n.retryCount, c = ~~((Math.random() + 0.5) * (1 << (o < 8 ? o : 8))) * r.errorRetryInterval;
4191
4191
  !K(s) && o > s || setTimeout(a, c, n);
4192
- }, zl = Nr, [Ts, Fl] = Ul(/* @__PURE__ */ new Map()), jl = Ue(
4192
+ }, zl = Nr, [Cs, Fl] = Ul(/* @__PURE__ */ new Map()), jl = Ue(
4193
4193
  {
4194
4194
  // events
4195
4195
  onLoadingSlow: Le,
@@ -4203,14 +4203,14 @@ const en = (e, t) => {
4203
4203
  revalidateIfStale: !0,
4204
4204
  shouldRetryOnError: !0,
4205
4205
  // timeouts
4206
- errorRetryInterval: Za ? 1e4 : 5e3,
4206
+ errorRetryInterval: en ? 1e4 : 5e3,
4207
4207
  focusThrottleInterval: 5 * 1e3,
4208
4208
  dedupingInterval: 2 * 1e3,
4209
- loadingTimeout: Za ? 5e3 : 3e3,
4209
+ loadingTimeout: en ? 5e3 : 3e3,
4210
4210
  // providers
4211
4211
  compare: zl,
4212
4212
  isPaused: () => !1,
4213
- cache: Ts,
4213
+ cache: Cs,
4214
4214
  mutate: Fl,
4215
4215
  fallback: {}
4216
4216
  },
@@ -4223,8 +4223,8 @@ const en = (e, t) => {
4223
4223
  a && s && (r.use = a.concat(s)), n && o && (r.fallback = Ue(n, o));
4224
4224
  }
4225
4225
  return r;
4226
- }, Kl = An({}), Gl = "$inf$", Cs = wt && window.__SWR_DEVTOOLS_USE__, Jl = Cs ? window.__SWR_DEVTOOLS_USE__ : [], ql = () => {
4227
- Cs && (window.__SWR_DEVTOOLS_REACT__ = Z);
4226
+ }, Kl = Nn({}), Gl = "$inf$", Is = wt && window.__SWR_DEVTOOLS_USE__, Jl = Is ? window.__SWR_DEVTOOLS_USE__ : [], ql = () => {
4227
+ Is && (window.__SWR_DEVTOOLS_REACT__ = Z);
4228
4228
  }, Yl = (e) => Se(e[1]) ? [
4229
4229
  e[0],
4230
4230
  e[1],
@@ -4234,7 +4234,7 @@ const en = (e, t) => {
4234
4234
  null,
4235
4235
  (e[1] === null ? e[2] : e[1]) || {}
4236
4236
  ], Ql = () => Ue(jl, X(Kl)), Xl = (e) => (t, r, a) => e(t, r && ((...s) => {
4237
- const [o] = aa(t), [, , , c] = Ne.get(Ts);
4237
+ const [o] = aa(t), [, , , c] = Ne.get(Cs);
4238
4238
  if (o.startsWith(Gl))
4239
4239
  return r(...s);
4240
4240
  const l = c[o];
@@ -4276,7 +4276,7 @@ const dr = Z.use || // This extra generic is to avoid TypeScript mixing up the g
4276
4276
  }), ur = {
4277
4277
  dedupe: !0
4278
4278
  }, rd = (e, t, r) => {
4279
- const { cache: a, compare: n, suspense: s, fallbackData: o, revalidateOnMount: c, revalidateIfStale: l, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: u, keepPreviousData: h } = r, [m, g, y, v] = Ne.get(a), [w, C] = aa(e), S = R(!1), O = R(!1), I = R(w), b = R(t), _ = R(r), k = () => _.current, x = () => k().isVisible() && k().isOnline(), [E, V, A, z] = _s(a, w), P = R({}).current, J = K(o) ? K(r.fallback) ? de : r.fallback[w] : o, Q = (D, N) => {
4279
+ const { cache: a, compare: n, suspense: s, fallbackData: o, revalidateOnMount: c, revalidateIfStale: l, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: u, keepPreviousData: h } = r, [m, g, y, v] = Ne.get(a), [w, C] = aa(e), S = R(!1), O = R(!1), I = R(w), b = R(t), _ = R(r), k = () => _.current, x = () => k().isVisible() && k().isOnline(), [E, V, A, z] = Ss(a, w), P = R({}).current, J = K(o) ? K(r.fallback) ? de : r.fallback[w] : o, Q = (D, N) => {
4280
4280
  for (const j in P) {
4281
4281
  const U = j;
4282
4282
  if (U === "data") {
@@ -4315,13 +4315,13 @@ const dr = Z.use || // This extra generic is to avoid TypeScript mixing up the g
4315
4315
  a,
4316
4316
  w
4317
4317
  ]
4318
- ), L[0], L[1]), q = !S.current, B = m[w] && m[w].length > 0, ge = M.data, ve = K(ge) ? J && ks(J) ? dr(J) : J : ge, Pe = M.error, je = R(ve), Me = h ? K(ge) ? K(je.current) ? ve : je.current : ge : ve, We = B && !K(Pe) ? !1 : q && !K(c) ? c : k().isPaused() ? !1 : s ? K(ve) ? !1 : l : K(ve) || l, _e = !!(w && t && q && We), G = K(M.isValidating) ? _e : M.isValidating, se = K(M.isLoading) ? _e : M.isLoading, ie = W(
4318
+ ), L[0], L[1]), q = !S.current, B = m[w] && m[w].length > 0, ge = M.data, ve = K(ge) ? J && _s(J) ? dr(J) : J : ge, Pe = M.error, je = R(ve), Me = h ? K(ge) ? K(je.current) ? ve : je.current : ge : ve, We = B && !K(Pe) ? !1 : q && !K(c) ? c : k().isPaused() ? !1 : s ? K(ve) ? !1 : l : K(ve) || l, _e = !!(w && t && q && We), G = K(M.isValidating) ? _e : M.isValidating, se = K(M.isLoading) ? _e : M.isLoading, ie = W(
4319
4319
  async (D) => {
4320
4320
  const N = b.current;
4321
4321
  if (!w || !N || O.current || k().isPaused())
4322
4322
  return !1;
4323
4323
  let j, U, ne = !0;
4324
- const fe = D || {}, te = !y[w] || !fe.dedupe, ee = () => Xa ? !O.current && w === I.current && S.current : w === I.current, me = {
4324
+ const fe = D || {}, te = !y[w] || !fe.dedupe, ee = () => Za ? !O.current && w === I.current && S.current : w === I.current, me = {
4325
4325
  isValidating: !1,
4326
4326
  isLoading: !1
4327
4327
  }, Et = () => {
@@ -4355,7 +4355,7 @@ const dr = Z.use || // This extra generic is to avoid TypeScript mixing up the g
4355
4355
  const pe = k(), { shouldRetryOnError: Ie } = pe;
4356
4356
  pe.isPaused() || (me.error = le, te && ee() && (pe.onError(le, w, pe), (Ie === !0 || Se(Ie) && Ie(le)) && (!k().revalidateOnFocus || !k().revalidateOnReconnect || x()) && pe.onErrorRetry(le, w, pe, (Xe) => {
4357
4357
  const Ze = m[w];
4358
- Ze && Ze[0] && Ze[0](Ya, Xe);
4358
+ Ze && Ze[0] && Ze[0](Qa, Xe);
4359
4359
  }, {
4360
4360
  retryCount: (fe.retryCount || 0) + 1,
4361
4361
  dedupe: !0
@@ -4380,7 +4380,7 @@ const dr = Z.use || // This extra generic is to avoid TypeScript mixing up the g
4380
4380
  ]
4381
4381
  ), ye = W(
4382
4382
  // Use callback to make sure `keyRef.current` returns latest result every time
4383
- (...D) => Ss(a, I.current, ...D),
4383
+ (...D) => Ts(a, I.current, ...D),
4384
4384
  // eslint-disable-next-line react-hooks/exhaustive-deps
4385
4385
  []
4386
4386
  );
@@ -4392,15 +4392,15 @@ const dr = Z.use || // This extra generic is to avoid TypeScript mixing up the g
4392
4392
  let N = 0;
4393
4393
  k().revalidateOnFocus && (N = Date.now() + k().focusThrottleInterval);
4394
4394
  const U = td(w, m, (ne, fe = {}) => {
4395
- if (ne == vs) {
4395
+ if (ne == ws) {
4396
4396
  const te = Date.now();
4397
4397
  k().revalidateOnFocus && te > N && x() && (N = te + k().focusThrottleInterval, D());
4398
- } else if (ne == ws)
4398
+ } else if (ne == Es)
4399
4399
  k().revalidateOnReconnect && x() && D();
4400
4400
  else {
4401
- if (ne == Es)
4401
+ if (ne == ks)
4402
4402
  return ie();
4403
- if (ne == Ya)
4403
+ if (ne == Qa)
4404
4404
  return ie(fe);
4405
4405
  }
4406
4406
  });
@@ -4429,7 +4429,7 @@ const dr = Z.use || // This extra generic is to avoid TypeScript mixing up the g
4429
4429
  u,
4430
4430
  w
4431
4431
  ]), Lo(Me), s && K(ve) && w) {
4432
- if (!Xa && bt)
4432
+ if (!Za && bt)
4433
4433
  throw new Error("Fallback data is required when using Suspense in SSR.");
4434
4434
  b.current = t, _.current = r, O.current = !1;
4435
4435
  const D = v[w];
@@ -4459,10 +4459,10 @@ const dr = Z.use || // This extra generic is to avoid TypeScript mixing up the g
4459
4459
  }
4460
4460
  };
4461
4461
  }, At = ed(rd);
4462
- var hr, tn;
4462
+ var hr, rn;
4463
4463
  function ad() {
4464
- if (tn) return hr;
4465
- tn = 1;
4464
+ if (rn) return hr;
4465
+ rn = 1;
4466
4466
  function e(t, r) {
4467
4467
  if (typeof t != "function")
4468
4468
  throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof t}\`.`);
@@ -4478,8 +4478,8 @@ function ad() {
4478
4478
  return hr = e, hr;
4479
4479
  }
4480
4480
  var nd = /* @__PURE__ */ ad();
4481
- const sd = /* @__PURE__ */ gs(nd);
4482
- function rn(e, t) {
4481
+ const sd = /* @__PURE__ */ ys(nd);
4482
+ function an(e, t) {
4483
4483
  return t != null ? sd(e, t) : e;
4484
4484
  }
4485
4485
  function od(e) {
@@ -4546,7 +4546,7 @@ function id({
4546
4546
  try {
4547
4547
  const ee = new AbortController();
4548
4548
  M.current = ee;
4549
- const me = rn(x, C), Et = rn(
4549
+ const me = an(x, C), Et = an(
4550
4550
  A,
4551
4551
  C
4552
4552
  ), kt = E.current;
@@ -4661,14 +4661,14 @@ function id({
4661
4661
  experimental_attachments: U = H.experimental_attachments
4662
4662
  } = {}) => {
4663
4663
  var ne, fe;
4664
- const te = await Ka(
4664
+ const te = await Ga(
4665
4665
  U
4666
4666
  ), ee = E.current.concat({
4667
4667
  ...H,
4668
4668
  id: (ne = H.id) != null ? ne : y(),
4669
4669
  createdAt: (fe = H.createdAt) != null ? fe : /* @__PURE__ */ new Date(),
4670
4670
  experimental_attachments: te.length > 0 ? te : void 0,
4671
- parts: ys(H)
4671
+ parts: bs(H)
4672
4672
  });
4673
4673
  return B({ messages: ee, headers: N, body: j, data: D });
4674
4674
  },
@@ -4713,7 +4713,7 @@ function id({
4713
4713
  ...q.current,
4714
4714
  ...N
4715
4715
  });
4716
- const U = await Ka(
4716
+ const U = await Ga(
4717
4717
  D.experimental_attachments
4718
4718
  ), fe = {
4719
4719
  messages: E.current.concat({
@@ -4749,7 +4749,7 @@ function id({
4749
4749
  ), P === "submitted" || P === "streaming")
4750
4750
  return;
4751
4751
  const j = N[N.length - 1];
4752
- bs(j) && B({ messages: N });
4752
+ vs(j) && B({ messages: N });
4753
4753
  },
4754
4754
  [x, P, B]
4755
4755
  );
@@ -4773,14 +4773,14 @@ function id({
4773
4773
  addToolResult: ye
4774
4774
  };
4775
4775
  }
4776
- const an = () => ({
4776
+ const nn = () => ({
4777
4777
  onFinish: /* @__PURE__ */ new Set(),
4778
4778
  onError: /* @__PURE__ */ new Set(),
4779
4779
  onResponse: /* @__PURE__ */ new Set(),
4780
4780
  onToolCall: /* @__PURE__ */ new Set()
4781
- }), Is = An(null);
4781
+ }), xs = Nn(null);
4782
4782
  function Qe(e = {}) {
4783
- const t = X(Is);
4783
+ const t = X(xs);
4784
4784
  if (!t)
4785
4785
  throw new Error("useAiChat must be used within a AiChatProvider");
4786
4786
  const r = R(e);
@@ -4797,9 +4797,9 @@ function cd({
4797
4797
  children: e,
4798
4798
  value: t
4799
4799
  }) {
4800
- const r = R(an());
4800
+ const r = R(nn());
4801
4801
  $(() => {
4802
- r.current = an();
4802
+ r.current = nn();
4803
4803
  }, [t]);
4804
4804
  const a = W(
4805
4805
  (...l) => {
@@ -4833,7 +4833,7 @@ function cd({
4833
4833
  onToolCall: o
4834
4834
  });
4835
4835
  return /* @__PURE__ */ i(
4836
- Is.Provider,
4836
+ xs.Provider,
4837
4837
  {
4838
4838
  value: {
4839
4839
  chat: c,
@@ -4843,8 +4843,8 @@ function cd({
4843
4843
  }
4844
4844
  );
4845
4845
  }
4846
- const ld = "z-20", dd = "z-10", ud = "user", Gt = "assistant", na = "OpenAI", xs = "Anthropic", Rs = "Google", hd = "Perplexity", fd = na, md = "claude-sonnet-4", pd = "claude-3", gd = "gpt-4", yd = "o3", bd = "o4", vd = "gemini", wd = "sonar", Ed = {
4847
- [xs]: [
4846
+ const ld = "z-20", dd = "z-10", ud = "user", Gt = "assistant", na = "OpenAI", Rs = "Anthropic", As = "Google", hd = "Perplexity", fd = na, md = "claude-sonnet-4", pd = "claude-3", gd = "gpt-4", yd = "o3", bd = "o4", vd = "gemini", wd = "sonar", Ed = {
4847
+ [Rs]: [
4848
4848
  md,
4849
4849
  pd
4850
4850
  ],
@@ -4853,9 +4853,9 @@ const ld = "z-20", dd = "z-10", ud = "user", Gt = "assistant", na = "OpenAI", xs
4853
4853
  yd,
4854
4854
  bd
4855
4855
  ],
4856
- [Rs]: [vd],
4856
+ [As]: [vd],
4857
4857
  [hd]: [wd]
4858
- }, As = {
4858
+ }, Ns = {
4859
4859
  REASONING: "sassy:advanced:reasoning"
4860
4860
  }, kd = "x-callisto-chat-id", Zf = (e) => {
4861
4861
  for (const [t, r] of Object.entries(
@@ -4978,12 +4978,12 @@ let Hr = class extends Fe {
4978
4978
  }
4979
4979
  };
4980
4980
  ae(Hr, "code", "ERR_JWT_EXPIRED");
4981
- let Ns = class extends Fe {
4981
+ let Os = class extends Fe {
4982
4982
  constructor() {
4983
4983
  super(...arguments), ae(this, "code", "ERR_JOSE_ALG_NOT_ALLOWED");
4984
4984
  }
4985
4985
  };
4986
- ae(Ns, "code", "ERR_JOSE_ALG_NOT_ALLOWED");
4986
+ ae(Os, "code", "ERR_JOSE_ALG_NOT_ALLOWED");
4987
4987
  class De extends Fe {
4988
4988
  constructor() {
4989
4989
  super(...arguments), ae(this, "code", "ERR_JOSE_NOT_SUPPORTED");
@@ -5002,12 +5002,12 @@ let ca = class extends Fe {
5002
5002
  }
5003
5003
  };
5004
5004
  ae(ca, "code", "ERR_JWT_INVALID");
5005
- let Os = class extends Fe {
5005
+ let $s = class extends Fe {
5006
5006
  constructor(t = "signature verification failed", r) {
5007
5007
  super(t, r), ae(this, "code", "ERR_JWS_SIGNATURE_VERIFICATION_FAILED");
5008
5008
  }
5009
5009
  };
5010
- ae(Os, "code", "ERR_JWS_SIGNATURE_VERIFICATION_FAILED");
5010
+ ae($s, "code", "ERR_JWS_SIGNATURE_VERIFICATION_FAILED");
5011
5011
  function xe(e, t = "algorithm.name") {
5012
5012
  return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`);
5013
5013
  }
@@ -5086,7 +5086,7 @@ function Ad(e, t, r) {
5086
5086
  }
5087
5087
  Rd(e, r);
5088
5088
  }
5089
- function $s(e, t, ...r) {
5089
+ function Ps(e, t, ...r) {
5090
5090
  var a;
5091
5091
  if (r = r.filter(Boolean), r.length > 2) {
5092
5092
  const n = r.pop();
@@ -5094,17 +5094,17 @@ function $s(e, t, ...r) {
5094
5094
  } else r.length === 2 ? e += `one of type ${r[0]} or ${r[1]}.` : e += `of type ${r[0]}.`;
5095
5095
  return t == null ? e += ` Received ${t}` : typeof t == "function" && t.name ? e += ` Received function ${t.name}` : typeof t == "object" && t != null && (a = t.constructor) != null && a.name && (e += ` Received an instance of ${t.constructor.name}`), e;
5096
5096
  }
5097
- const Nd = (e, ...t) => $s("Key must be ", e, ...t);
5098
- function Ps(e, t, ...r) {
5099
- return $s(`Key for the ${e} algorithm must be `, t, ...r);
5097
+ const Nd = (e, ...t) => Ps("Key must be ", e, ...t);
5098
+ function Ms(e, t, ...r) {
5099
+ return Ps(`Key for the ${e} algorithm must be `, t, ...r);
5100
5100
  }
5101
- function Ms(e) {
5101
+ function Ls(e) {
5102
5102
  return e?.[Symbol.toStringTag] === "CryptoKey";
5103
5103
  }
5104
- function Ls(e) {
5104
+ function Ds(e) {
5105
5105
  return e?.[Symbol.toStringTag] === "KeyObject";
5106
5106
  }
5107
- const Ds = (e) => Ms(e) || Ls(e), Od = (...e) => {
5107
+ const Bs = (e) => Ls(e) || Ds(e), Od = (...e) => {
5108
5108
  const t = e.filter(Boolean);
5109
5109
  if (t.length === 0 || t.length === 1)
5110
5110
  return !0;
@@ -5329,7 +5329,7 @@ function Wd(e) {
5329
5329
  return e.kty === "oct" && typeof e.k == "string";
5330
5330
  }
5331
5331
  let Be;
5332
- const nn = async (e, t, r, a = !1) => {
5332
+ const sn = async (e, t, r, a = !1) => {
5333
5333
  Be || (Be = /* @__PURE__ */ new WeakMap());
5334
5334
  let n = Be.get(e);
5335
5335
  if (n != null && n[r])
@@ -5423,9 +5423,9 @@ const nn = async (e, t, r, a = !1) => {
5423
5423
  throw new TypeError("given KeyObject instance cannot be used for this algorithm");
5424
5424
  return a ? a[t] = o : Be.set(e, { [t]: o }), o;
5425
5425
  }, Gd = async (e, t) => {
5426
- if (e instanceof Uint8Array || Ms(e))
5426
+ if (e instanceof Uint8Array || Ls(e))
5427
5427
  return e;
5428
- if (Ls(e)) {
5428
+ if (Ds(e)) {
5429
5429
  if (e.type === "secret")
5430
5430
  return e.export();
5431
5431
  if ("toCryptoKey" in e && typeof e.toCryptoKey == "function")
@@ -5436,10 +5436,10 @@ const nn = async (e, t, r, a = !1) => {
5436
5436
  throw a;
5437
5437
  }
5438
5438
  let r = e.export({ format: "jwk" });
5439
- return nn(e, r, t);
5439
+ return sn(e, r, t);
5440
5440
  }
5441
5441
  if (la(e))
5442
- return e.k ? Ht(e.k) : nn(e, e, t, !0);
5442
+ return e.k ? Ht(e.k) : sn(e, e, t, !0);
5443
5443
  throw new Error("unreachable");
5444
5444
  }, et = (e) => e?.[Symbol.toStringTag], Ur = (e, t, r) => {
5445
5445
  var a, n;
@@ -5492,8 +5492,8 @@ const nn = async (e, t, r, a = !1) => {
5492
5492
  return;
5493
5493
  throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present');
5494
5494
  }
5495
- if (!Ds(t))
5496
- throw new TypeError(Ps(e, t, "CryptoKey", "KeyObject", "JSON Web Key", "Uint8Array"));
5495
+ if (!Bs(t))
5496
+ throw new TypeError(Ms(e, t, "CryptoKey", "KeyObject", "JSON Web Key", "Uint8Array"));
5497
5497
  if (t.type !== "secret")
5498
5498
  throw new TypeError(`${et(t)} instances for symmetric algorithms must be of type "secret"`);
5499
5499
  }
@@ -5511,8 +5511,8 @@ const nn = async (e, t, r, a = !1) => {
5511
5511
  return;
5512
5512
  throw new TypeError("JSON Web Key for this operation be a public JWK");
5513
5513
  }
5514
- if (!Ds(t))
5515
- throw new TypeError(Ps(e, t, "CryptoKey", "KeyObject", "JSON Web Key"));
5514
+ if (!Bs(t))
5515
+ throw new TypeError(Ms(e, t, "CryptoKey", "KeyObject", "JSON Web Key"));
5516
5516
  if (t.type === "secret")
5517
5517
  throw new TypeError(`${et(t)} instances for asymmetric algorithms must not be of type "secret"`);
5518
5518
  if (t.type === "public")
@@ -5608,7 +5608,7 @@ async function eu(e, t, r) {
5608
5608
  throw new oe('JWS "alg" (Algorithm) Header Parameter missing or invalid');
5609
5609
  const l = r && zd("algorithms", r.algorithms);
5610
5610
  if (l && !l.has(c))
5611
- throw new Ns('"alg" (Algorithm) Header Parameter value not allowed');
5611
+ throw new Os('"alg" (Algorithm) Header Parameter value not allowed');
5612
5612
  if (o) {
5613
5613
  if (typeof e.payload != "string")
5614
5614
  throw new oe("JWS Payload must be a string");
@@ -5625,7 +5625,7 @@ async function eu(e, t, r) {
5625
5625
  }
5626
5626
  const h = await Gd(t, c);
5627
5627
  if (!await Zd(c, h, u, f))
5628
- throw new Os();
5628
+ throw new $s();
5629
5629
  let m;
5630
5630
  if (o)
5631
5631
  try {
@@ -5646,7 +5646,7 @@ async function tu(e, t, r) {
5646
5646
  const c = await eu({ payload: n, protected: a, signature: s }, t, r), l = { payload: c.payload, protectedHeader: c.protectedHeader };
5647
5647
  return typeof t == "function" ? { ...l, key: c.key } : l;
5648
5648
  }
5649
- const ru = (e) => Math.floor(e.getTime() / 1e3), Bs = 60, Hs = Bs * 60, da = Hs * 24, au = da * 7, nu = da * 365.25, su = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, sn = (e) => {
5649
+ const ru = (e) => Math.floor(e.getTime() / 1e3), Hs = 60, Us = Hs * 60, da = Us * 24, au = da * 7, nu = da * 365.25, su = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, on = (e) => {
5650
5650
  const t = su.exec(e);
5651
5651
  if (!t || t[4] && t[1])
5652
5652
  throw new TypeError("Invalid time period format");
@@ -5665,14 +5665,14 @@ const ru = (e) => Math.floor(e.getTime() / 1e3), Bs = 60, Hs = Bs * 60, da = Hs
5665
5665
  case "min":
5666
5666
  case "mins":
5667
5667
  case "m":
5668
- n = Math.round(r * Bs);
5668
+ n = Math.round(r * Hs);
5669
5669
  break;
5670
5670
  case "hour":
5671
5671
  case "hours":
5672
5672
  case "hr":
5673
5673
  case "hrs":
5674
5674
  case "h":
5675
- n = Math.round(r * Hs);
5675
+ n = Math.round(r * Us);
5676
5676
  break;
5677
5677
  case "day":
5678
5678
  case "days":
@@ -5689,7 +5689,7 @@ const ru = (e) => Math.floor(e.getTime() / 1e3), Bs = 60, Hs = Bs * 60, da = Hs
5689
5689
  break;
5690
5690
  }
5691
5691
  return t[1] === "-" || t[4] === "ago" ? -n : n;
5692
- }, on = (e) => e.toLowerCase().replace(/^application\//, ""), ou = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
5692
+ }, cn = (e) => e.toLowerCase().replace(/^application\//, ""), ou = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
5693
5693
  function iu(e, t, r = {}) {
5694
5694
  let a;
5695
5695
  try {
@@ -5699,7 +5699,7 @@ function iu(e, t, r = {}) {
5699
5699
  if (!Jt(a))
5700
5700
  throw new ca("JWT Claims Set must be a top-level JSON object");
5701
5701
  const { typ: n } = r;
5702
- if (n && (typeof e.typ != "string" || on(e.typ) !== on(n)))
5702
+ if (n && (typeof e.typ != "string" || cn(e.typ) !== cn(n)))
5703
5703
  throw new Ee('unexpected "typ" JWT header value', a, "typ", "check_failed");
5704
5704
  const { requiredClaims: s = [], issuer: o, subject: c, audience: l, maxTokenAge: d } = r, f = [...s];
5705
5705
  d !== void 0 && f.push("iat"), l !== void 0 && f.push("aud"), c !== void 0 && f.push("sub"), o !== void 0 && f.push("iss");
@@ -5715,7 +5715,7 @@ function iu(e, t, r = {}) {
5715
5715
  let u;
5716
5716
  switch (typeof r.clockTolerance) {
5717
5717
  case "string":
5718
- u = sn(r.clockTolerance);
5718
+ u = on(r.clockTolerance);
5719
5719
  break;
5720
5720
  case "number":
5721
5721
  u = r.clockTolerance;
@@ -5742,7 +5742,7 @@ function iu(e, t, r = {}) {
5742
5742
  throw new Hr('"exp" claim timestamp check failed', a, "exp", "check_failed");
5743
5743
  }
5744
5744
  if (d) {
5745
- const g = m - a.iat, y = typeof d == "number" ? d : sn(d);
5745
+ const g = m - a.iat, y = typeof d == "number" ? d : on(d);
5746
5746
  if (g - u > y)
5747
5747
  throw new Hr('"iat" claim timestamp check failed (too far in the past)', a, "iat", "check_failed");
5748
5748
  if (g < 0 - u)
@@ -5771,7 +5771,7 @@ const lu = async (e) => {
5771
5771
  for (let e = 0; e < 256; ++e)
5772
5772
  du.push((e + 256).toString(16).slice(1));
5773
5773
  typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
5774
- const Us = async (e, t) => {
5774
+ const Vs = async (e, t) => {
5775
5775
  const r = await lu(e);
5776
5776
  if (!r || !r.payload)
5777
5777
  return !1;
@@ -5785,7 +5785,7 @@ const Us = async (e, t) => {
5785
5785
  return Array.isArray(t) ? t.every((n) => a.includes(n)) : Object.keys(t).some(
5786
5786
  (n) => t[n].every((s) => a.includes(s))
5787
5787
  );
5788
- }, uu = "av-tooltip", hu = "av-tooltip-arrow", cn = ["mousedown", "touchstart"];
5788
+ }, uu = "av-tooltip", hu = "av-tooltip-arrow", ln = ["mousedown", "touchstart"];
5789
5789
  function fu(e, t, r) {
5790
5790
  const a = R(null);
5791
5791
  return $(() => {
@@ -5798,10 +5798,10 @@ function fu(e, t, r) {
5798
5798
  ) && !c && e();
5799
5799
  } else a.current && !a.current.contains(o) && e();
5800
5800
  };
5801
- return cn.forEach(
5801
+ return ln.forEach(
5802
5802
  (s) => document.addEventListener(s, n)
5803
5803
  ), () => {
5804
- cn.forEach(
5804
+ ln.forEach(
5805
5805
  (s) => document.removeEventListener(s, n)
5806
5806
  );
5807
5807
  };
@@ -5815,7 +5815,7 @@ function mu(e, t) {
5815
5815
  }, []);
5816
5816
  return $(() => (s.current = e, r && o(), c), [e, r, o, c]), { start: o, stop: c, active: r };
5817
5817
  }
5818
- const Ot = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, pu = () => p("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), ln = ({
5818
+ const Ot = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, pu = () => p("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), dn = ({
5819
5819
  mode: e
5820
5820
  }) => p({
5821
5821
  "bg-surface-darker": e === "dark" || e === "system",
@@ -5838,13 +5838,13 @@ const Ot = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, pu = (
5838
5838
  const n = p("relative inline-block", t), s = p(
5839
5839
  uu,
5840
5840
  pu(),
5841
- ln({ mode: e }),
5841
+ dn({ mode: e }),
5842
5842
  gu({ mode: e }),
5843
5843
  r
5844
5844
  ), o = p(
5845
5845
  hu,
5846
5846
  yu(),
5847
- ln({ mode: e }),
5847
+ dn({ mode: e }),
5848
5848
  a
5849
5849
  );
5850
5850
  return { tooltip: s, arrow: o, wrapper: n };
@@ -5880,12 +5880,12 @@ const Ot = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, pu = (
5880
5880
  } = await Do(l.current, d.current, {
5881
5881
  placement: r,
5882
5882
  middleware: [
5883
- $n(10),
5884
- Pn({
5883
+ Pn(10),
5884
+ Mn({
5885
5885
  crossAxis: r.includes("-"),
5886
5886
  fallbackAxisSideDirection: "start"
5887
5887
  }),
5888
- Mn({ padding: 5 }),
5888
+ Ln({ padding: 5 }),
5889
5889
  Bo({ element: f.current })
5890
5890
  ]
5891
5891
  });
@@ -6072,7 +6072,7 @@ const Eu = ({
6072
6072
  )
6073
6073
  }
6074
6074
  );
6075
- }, dn = "av-messagebox", un = "av-panel", hn = "av-button", ua = "icon", Vs = "button", Vr = "link", _u = ({
6075
+ }, un = "av-messagebox", hn = "av-panel", fn = "av-button", ua = "icon", zs = "button", Vr = "link", _u = ({
6076
6076
  type: e,
6077
6077
  size: t,
6078
6078
  labelRight: r,
@@ -6082,7 +6082,7 @@ const Eu = ({
6082
6082
  }) => {
6083
6083
  const o = "max-h-8 py-0 px-2", c = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
6084
6084
  switch (e) {
6085
- case Vs:
6085
+ case zs:
6086
6086
  case Vr:
6087
6087
  return p({
6088
6088
  [o]: t === "small",
@@ -6116,7 +6116,7 @@ const Eu = ({
6116
6116
  }) => {
6117
6117
  const n = "text-sm font-medium", s = "text-base font-medium", o = "text-lg font-medium";
6118
6118
  switch (e) {
6119
- case Vs:
6119
+ case zs:
6120
6120
  case Vr:
6121
6121
  return p({
6122
6122
  "text-center": e === Vr,
@@ -6334,8 +6334,8 @@ const Eu = ({
6334
6334
  align: g,
6335
6335
  radius: y,
6336
6336
  animated: v
6337
- }) => (h || (h = "primary"), r ? p(hn, t) : p(
6338
- hn,
6337
+ }) => (h || (h = "primary"), r ? p(fn, t) : p(
6338
+ fn,
6339
6339
  Tu({
6340
6340
  mode: a,
6341
6341
  variant: h,
@@ -6368,7 +6368,7 @@ const Eu = ({
6368
6368
  )), Mu = (e, t, r) => {
6369
6369
  var a;
6370
6370
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e?.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
6371
- }, zs = Z.forwardRef((e, t) => {
6371
+ }, Fs = Z.forwardRef((e, t) => {
6372
6372
  const { onClick: r, noInternalClick: a = !1, ...n } = e;
6373
6373
  return /* @__PURE__ */ i(
6374
6374
  "button",
@@ -6381,7 +6381,7 @@ const Eu = ({
6381
6381
  }
6382
6382
  );
6383
6383
  });
6384
- zs.displayName = "BaseButton";
6384
+ Fs.displayName = "BaseButton";
6385
6385
  function Lu() {
6386
6386
  const e = R(!1);
6387
6387
  return $(() => (e.current = !0, () => {
@@ -6494,7 +6494,7 @@ const $t = {
6494
6494
  ]), $(() => () => {
6495
6495
  M.current && clearTimeout(M.current);
6496
6496
  }, []), /* @__PURE__ */ i(
6497
- zs,
6497
+ Fs,
6498
6498
  {
6499
6499
  ref: q,
6500
6500
  className: b,
@@ -6504,7 +6504,7 @@ const $t = {
6504
6504
  ...O,
6505
6505
  children: /* @__PURE__ */ T("div", { className: x, children: [
6506
6506
  /* @__PURE__ */ i(
6507
- fn,
6507
+ mn,
6508
6508
  {
6509
6509
  label: m,
6510
6510
  labelRef: A,
@@ -6515,7 +6515,7 @@ const $t = {
6515
6515
  ),
6516
6516
  /* @__PURE__ */ i("span", { ref: P, className: _, children: e }),
6517
6517
  /* @__PURE__ */ i(
6518
- fn,
6518
+ mn,
6519
6519
  {
6520
6520
  label: h,
6521
6521
  labelRef: E,
@@ -6528,7 +6528,7 @@ const $t = {
6528
6528
  }
6529
6529
  );
6530
6530
  }
6531
- ), fn = ({
6531
+ ), mn = ({
6532
6532
  labelRef: e,
6533
6533
  labelClass: t,
6534
6534
  label: r,
@@ -6676,21 +6676,21 @@ try {
6676
6676
  });
6677
6677
  } catch {
6678
6678
  }
6679
- const Fs = Y.createContext(null);
6679
+ const js = Y.createContext(null);
6680
6680
  function Wu({
6681
6681
  initialOpen: e = !1,
6682
6682
  open: t,
6683
6683
  onOpenChange: r
6684
6684
  } = {}) {
6685
- const [a, n] = Y.useState(e), [s, o] = Y.useState(), [c, l] = Y.useState(), d = t ?? a, f = r ?? n, u = Bn({
6685
+ const [a, n] = Y.useState(e), [s, o] = Y.useState(), [c, l] = Y.useState(), d = t ?? a, f = r ?? n, u = Hn({
6686
6686
  open: d,
6687
6687
  onOpenChange: f
6688
- }), h = u.context, m = Hn(h, {
6688
+ }), h = u.context, m = Un(h, {
6689
6689
  enabled: t == null
6690
- }), g = Un(h, {
6690
+ }), g = Vn(h, {
6691
6691
  outsidePress: !1,
6692
6692
  outsidePressEvent: "mousedown"
6693
- }), y = Vn(h), v = zn([m, g, y]);
6693
+ }), y = zn(h), v = Fn([m, g, y]);
6694
6694
  return Y.useMemo(
6695
6695
  () => ({
6696
6696
  open: d,
@@ -6706,7 +6706,7 @@ function Wu({
6706
6706
  );
6707
6707
  }
6708
6708
  const Qt = () => {
6709
- const e = Y.useContext(Fs);
6709
+ const e = Y.useContext(js);
6710
6710
  if (e == null)
6711
6711
  throw new Error("Modal components must be wrapped in <Modal />");
6712
6712
  return e;
@@ -6716,7 +6716,7 @@ function Ku({
6716
6716
  ...t
6717
6717
  }) {
6718
6718
  const r = Wu(t);
6719
- return /* @__PURE__ */ i(Fs.Provider, { value: r, children: e });
6719
+ return /* @__PURE__ */ i(js.Provider, { value: r, children: e });
6720
6720
  }
6721
6721
  const Gu = Y.forwardRef(function(e, t) {
6722
6722
  const { context: r, ...a } = Qt(), n = Gr([a.refs.setFloating, t]);
@@ -6726,7 +6726,7 @@ const Gu = Y.forwardRef(function(e, t) {
6726
6726
  [`${s}`]: s,
6727
6727
  "bg-black sm:bg-black/[.8]": !s
6728
6728
  });
6729
- return /* @__PURE__ */ i(Ln, { children: /* @__PURE__ */ i(Ho, { className: c, lockScroll: !0, children: /* @__PURE__ */ i(Dn, { context: r, children: /* @__PURE__ */ i(
6729
+ return /* @__PURE__ */ i(Dn, { children: /* @__PURE__ */ i(Ho, { className: c, lockScroll: !0, children: /* @__PURE__ */ i(Bn, { context: r, children: /* @__PURE__ */ i(
6730
6730
  "div",
6731
6731
  {
6732
6732
  ref: n,
@@ -6771,10 +6771,10 @@ const pt = "panel", Pt = "messagebox", Qu = ({
6771
6771
  }) => ({
6772
6772
  main: p("prose prose-lighter flex flex-col bg-surface-medium", {
6773
6773
  "duration-200 ease-out": a,
6774
- [`${un} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === pt,
6775
- [`${un} w-full sm:w-[95%] md:max-w-2xl`]: t === pt && !e,
6776
- [`${dn} rounded-lg border-2`]: t === Pt,
6777
- [`${dn} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === Pt && !e,
6774
+ [`${hn} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === pt,
6775
+ [`${hn} w-full sm:w-[95%] md:max-w-2xl`]: t === pt && !e,
6776
+ [`${un} rounded-lg border-2`]: t === Pt,
6777
+ [`${un} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === Pt && !e,
6778
6778
  [`${e}`]: !!e,
6779
6779
  "sm:border-border-dark": r === "dark" && t === pt,
6780
6780
  "sm:border-border-accent": r === "light" && t === pt,
@@ -6785,7 +6785,7 @@ const pt = "panel", Pt = "messagebox", Qu = ({
6785
6785
  footer: "flex grow flex-col sm:p-4 p-2",
6786
6786
  header: "sm:p-4 mb-0 p-2",
6787
6787
  close: "sm:p-4 p-2"
6788
- }), Xu = "slide", mn = "fade", Zu = ({
6788
+ }), Xu = "slide", pn = "fade", Zu = ({
6789
6789
  open: e,
6790
6790
  onOpenChange: t,
6791
6791
  title: r,
@@ -6798,7 +6798,7 @@ const pt = "panel", Pt = "messagebox", Qu = ({
6798
6798
  animationType: d = Xu
6799
6799
  }) => {
6800
6800
  const f = R(""), [u, h] = F(
6801
- l ? d === mn ? { opacity: 0 } : {
6801
+ l ? d === pn ? { opacity: 0 } : {
6802
6802
  transform: "translateY(-100vh)"
6803
6803
  } : {}
6804
6804
  ), m = Qu({
@@ -6812,7 +6812,7 @@ const pt = "panel", Pt = "messagebox", Qu = ({
6812
6812
  }), [r, e]), $(() => {
6813
6813
  if (l && e) {
6814
6814
  h(
6815
- l ? d === mn ? { opacity: 0 } : {
6815
+ l ? d === pn ? { opacity: 0 } : {
6816
6816
  transform: "translateY(-666vh)"
6817
6817
  } : {}
6818
6818
  );
@@ -6877,7 +6877,7 @@ const qe = ({
6877
6877
  open: e,
6878
6878
  onOpenChange: t,
6879
6879
  title: n.title,
6880
- footer: /* @__PURE__ */ T(In, { columnGap: 2, alignHorizontal: "flex-end", children: [
6880
+ footer: /* @__PURE__ */ T(xn, { columnGap: 2, alignHorizontal: "flex-end", children: [
6881
6881
  /* @__PURE__ */ i(yt, { children: !s && /* @__PURE__ */ i(
6882
6882
  Sa,
6883
6883
  {
@@ -6907,7 +6907,7 @@ const qe = ({
6907
6907
  ] }),
6908
6908
  children: a
6909
6909
  }
6910
- ), js = ({
6910
+ ), Ws = ({
6911
6911
  className: e
6912
6912
  }) => {
6913
6913
  const {
@@ -6916,7 +6916,7 @@ const qe = ({
6916
6916
  setChatId: n,
6917
6917
  setInitialMessages: s
6918
6918
  } = X(be), [o, c] = F(!1), [l, d] = F(!1), [f, u] = jt({
6919
- key: Ft + vo,
6919
+ key: Ft + wo,
6920
6920
  initialValue: ""
6921
6921
  }), h = (g) => {
6922
6922
  n(He()), s([]), a({
@@ -6999,7 +6999,7 @@ const qe = ({
6999
6999
  setHasFocusInside: () => {
7000
7000
  },
7001
7001
  isOpen: !1
7002
- }), pn = (e) => {
7002
+ }), gn = (e) => {
7003
7003
  if (typeof e == "string")
7004
7004
  return e;
7005
7005
  if (typeof e == "function")
@@ -7010,7 +7010,7 @@ const qe = ({
7010
7010
  return t.displayName || t.name || "Component";
7011
7011
  }
7012
7012
  return "Element";
7013
- }, Ws = Nn(
7013
+ }, Ks = On(
7014
7014
  ({
7015
7015
  trigger: e,
7016
7016
  children: t,
@@ -7021,7 +7021,7 @@ const qe = ({
7021
7021
  focusMode: o = "system",
7022
7022
  ...c
7023
7023
  }, l) => {
7024
- const [d, f] = F(!1), [u, h] = F(!1), [m, g] = F(null), y = R([]), v = R([]), w = X(zr), C = Fn(), S = Vo(), O = jn(), { floatingStyles: I, refs: b, context: _ } = Bn({
7024
+ const [d, f] = F(!1), [u, h] = F(!1), [m, g] = F(null), y = R([]), v = R([]), w = X(zr), C = jn(), S = Vo(), O = Wn(), { floatingStyles: I, refs: b, context: _ } = Hn({
7025
7025
  nodeId: S,
7026
7026
  open: d,
7027
7027
  onOpenChange: (q) => {
@@ -7029,13 +7029,13 @@ const qe = ({
7029
7029
  },
7030
7030
  placement: a,
7031
7031
  strategy: "fixed",
7032
- middleware: [$n({ mainAxis: 10 }), Pn(), Mn()],
7032
+ middleware: [Pn({ mainAxis: 10 }), Mn(), Ln()],
7033
7033
  whileElementsMounted: zo
7034
- }), k = Hn(_, {
7034
+ }), k = Un(_, {
7035
7035
  event: "mousedown",
7036
7036
  toggle: !0,
7037
7037
  ignoreMouse: !1
7038
- }), x = Vn(_, { role: "menu" }), E = Un(_, { bubbles: !0 }), V = Fo(_, {
7038
+ }), x = zn(_, { role: "menu" }), E = Vn(_, { bubbles: !0 }), V = Fo(_, {
7039
7039
  listRef: y,
7040
7040
  activeIndex: m,
7041
7041
  nested: !1,
@@ -7045,7 +7045,7 @@ const qe = ({
7045
7045
  listRef: v,
7046
7046
  onMatch: d ? g : void 0,
7047
7047
  activeIndex: m
7048
- }), { getReferenceProps: z, getFloatingProps: P, getItemProps: J } = zn([k, x, E, V, A]), Q = pn(e) === "Button" || pn(e) === "ButtonIcon", L = Q ? {
7048
+ }), { getReferenceProps: z, getFloatingProps: P, getItemProps: J } = Fn([k, x, E, V, A]), Q = gn(e) === "Button" || gn(e) === "ButtonIcon", L = Q ? {
7049
7049
  noInternalClick: Q,
7050
7050
  focusMode: o,
7051
7051
  mode: s
@@ -7087,8 +7087,8 @@ const qe = ({
7087
7087
  setHasFocusInside: h,
7088
7088
  isOpen: d
7089
7089
  },
7090
- children: /* @__PURE__ */ i(Ko, { elementsRef: y, labelsRef: v, children: d && /* @__PURE__ */ i(Ln, { children: /* @__PURE__ */ i(
7091
- Dn,
7090
+ children: /* @__PURE__ */ i(Ko, { elementsRef: y, labelsRef: v, children: d && /* @__PURE__ */ i(Dn, { children: /* @__PURE__ */ i(
7091
+ Bn,
7092
7092
  {
7093
7093
  context: _,
7094
7094
  modal: !1,
@@ -7110,9 +7110,9 @@ const qe = ({
7110
7110
  )
7111
7111
  ] });
7112
7112
  }
7113
- ), Xt = Nn((e, t) => /* @__PURE__ */ i(Uo, { children: /* @__PURE__ */ i(Ws, { ...e, ref: t }) }));
7113
+ ), Xt = On((e, t) => /* @__PURE__ */ i(Uo, { children: /* @__PURE__ */ i(Ks, { ...e, ref: t }) }));
7114
7114
  Xt.displayName = "Menu";
7115
- Ws.displayName = "MenuComponent";
7115
+ Ks.displayName = "MenuComponent";
7116
7116
  const eh = ({
7117
7117
  children: e,
7118
7118
  fill: t,
@@ -7208,7 +7208,7 @@ const Re = Y.forwardRef(
7208
7208
  ...c
7209
7209
  }, l) => {
7210
7210
  let d = "";
7211
- const f = Y.useContext(zr), u = jn({ label: t ? null : e }), h = Fn(), m = Gr([u.ref, l]);
7211
+ const f = Y.useContext(zr), u = Wn({ label: t ? null : e }), h = jn(), m = Gr([u.ref, l]);
7212
7212
  if (a && n)
7213
7213
  return /* @__PURE__ */ i(
7214
7214
  "div",
@@ -7263,7 +7263,7 @@ Re.displayName = "MenuItem";
7263
7263
  const rh = ({ className: e, ...t }) => {
7264
7264
  const r = p(e, "my-1 border-t border-border-medium");
7265
7265
  return /* @__PURE__ */ i("div", { className: r, ...t });
7266
- }, Ks = ({
7266
+ }, Gs = ({
7267
7267
  className: e,
7268
7268
  ...t
7269
7269
  }) => {
@@ -7305,7 +7305,7 @@ const ah = (e) => {
7305
7305
  privateChat: y
7306
7306
  }
7307
7307
  }), s({
7308
- type: Cn,
7308
+ type: In,
7309
7309
  payload: {
7310
7310
  prompt: g
7311
7311
  }
@@ -7318,7 +7318,7 @@ const ah = (e) => {
7318
7318
  trigger: /* @__PURE__ */ i(Ce, { noBorder: !0, label: "Prompts", disabled: !u, children: /* @__PURE__ */ i(ui, { size: Te }) }),
7319
7319
  defaultPlacement: t,
7320
7320
  children: [
7321
- /* @__PURE__ */ i(Ks, { children: "Prompts" }),
7321
+ /* @__PURE__ */ i(Gs, { children: "Prompts" }),
7322
7322
  u && l.tags.map((m) => {
7323
7323
  let g = null;
7324
7324
  switch (m.slot) {
@@ -7357,7 +7357,7 @@ const ah = (e) => {
7357
7357
  trigger: h
7358
7358
  }
7359
7359
  ) : /* @__PURE__ */ i("div", { className: e, children: h });
7360
- }, Gs = ({
7360
+ }, Js = ({
7361
7361
  className: e
7362
7362
  }) => {
7363
7363
  const {
@@ -7366,7 +7366,7 @@ const ah = (e) => {
7366
7366
  setChatId: n,
7367
7367
  setInitialMessages: s
7368
7368
  } = X(be), [o, c] = F(!1), [l, d] = F(!1), [f, u] = jt({
7369
- key: Ft + wo,
7369
+ key: Ft + Eo,
7370
7370
  initialValue: ""
7371
7371
  }), h = (g) => {
7372
7372
  n(He()), s([]), a({
@@ -7442,17 +7442,17 @@ const ah = (e) => {
7442
7442
  ] });
7443
7443
  };
7444
7444
  let pr = null, gr = null;
7445
- const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = async () => (gr || (gr = import("./index.BQAhrmXB.js").then((e) => e.utilities)), gr), sh = async () => {
7445
+ const qs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Ys = async () => (gr || (gr = import("./index.DafnfcdW.js").then((e) => e.utilities)), gr), sh = async () => {
7446
7446
  try {
7447
- await Promise.all([Js(), qs()]);
7447
+ await Promise.all([qs(), Ys()]);
7448
7448
  } catch {
7449
7449
  }
7450
- }, Ys = async (e, t = "success", r) => {
7450
+ }, Qs = async (e, t = "success", r) => {
7451
7451
  try {
7452
7452
  window.dispatchEvent(new CustomEvent("toast-request"));
7453
7453
  const [{ toast: a, Slide: n }, { toastOptions: s }] = await Promise.all([
7454
- Js(),
7455
- qs()
7454
+ qs(),
7455
+ Ys()
7456
7456
  ]), o = s({
7457
7457
  ...r,
7458
7458
  transition: n
@@ -7463,13 +7463,13 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
7463
7463
  }, 100);
7464
7464
  } catch {
7465
7465
  }
7466
- }, Qs = (e, t) => Ys(e, "success", t), sm = (e, t) => Ys(e, "error", t), Xs = ({
7466
+ }, Xs = (e, t) => Qs(e, "success", t), sm = (e, t) => Qs(e, "error", t), Zs = ({
7467
7467
  className: e
7468
7468
  }) => {
7469
7469
  const { user: t, getAccessToken: r } = Ve(), {
7470
7470
  dispatch: a,
7471
7471
  state: { tokenUsage: n, provider: s, privateChat: o }
7472
- } = X(be), { messages: c, id: l } = Qe(), { state: d } = X(sa), { refetch: f } = rs({
7472
+ } = X(be), { messages: c, id: l } = Qe(), { state: d } = X(sa), { refetch: f } = as({
7473
7473
  enabled: !1,
7474
7474
  user: t?.username || "",
7475
7475
  searchString: d.searchString,
@@ -7483,7 +7483,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
7483
7483
  content: S,
7484
7484
  id: O
7485
7485
  }));
7486
- await ts({
7486
+ await rs({
7487
7487
  accessToken: await r(),
7488
7488
  type: ze.SAVE_CHAT,
7489
7489
  params: {
@@ -7498,7 +7498,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
7498
7498
  payload: {
7499
7499
  privateChat: !1
7500
7500
  }
7501
- }), f(), await Qs(Eo, {
7501
+ }), f(), await Xs(ko, {
7502
7502
  containerId: "toggle-save"
7503
7503
  });
7504
7504
  }
@@ -7625,12 +7625,12 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
7625
7625
  icon: _i
7626
7626
  },
7627
7627
  {
7628
- id: xs,
7628
+ id: Rs,
7629
7629
  label: "Anthropic",
7630
7630
  icon: li
7631
7631
  },
7632
7632
  {
7633
- id: Rs,
7633
+ id: As,
7634
7634
  label: "Google Gemini",
7635
7635
  icon: yi
7636
7636
  }
@@ -7651,7 +7651,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
7651
7651
  provider: C,
7652
7652
  accessToken: await s(),
7653
7653
  username: o?.username || ""
7654
- }), h(), await Qs(`${ko} ${C}`, {
7654
+ }), h(), await Xs(`${_o} ${C}`, {
7655
7655
  containerId: "toggle-provider"
7656
7656
  })), t({
7657
7657
  type: Ye,
@@ -7685,7 +7685,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
7685
7685
  ),
7686
7686
  defaultPlacement: "top-start",
7687
7687
  children: [
7688
- /* @__PURE__ */ i(Ks, { children: "Providers" }),
7688
+ /* @__PURE__ */ i(Gs, { children: "Providers" }),
7689
7689
  y && Mt.map((C) => /* @__PURE__ */ i(
7690
7690
  Re,
7691
7691
  {
@@ -7728,7 +7728,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
7728
7728
  ...dh
7729
7729
  ], Fr = 400 * 1024, uh = "text/plain", hh = () => p(
7730
7730
  "relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
7731
- ), gn = () => p("bg-surface-darker"), fh = () => p("text-copy-lighter caret-copy-light"), mh = () => p(
7731
+ ), yn = () => p("bg-surface-darker"), fh = () => p("text-copy-lighter caret-copy-light"), mh = () => p(
7732
7732
  "has-[.av-prompt-editable:focus]:outline",
7733
7733
  "has-[.av-prompt-editable:focus]:outline-2",
7734
7734
  "has-[.av-prompt-editable:focus]:outline-offset-2",
@@ -7739,16 +7739,16 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
7739
7739
  "h-6 pr-2 pl-4"
7740
7740
  ), gh = ({ className: e }) => {
7741
7741
  const t = p(
7742
- _o,
7742
+ So,
7743
7743
  hh(),
7744
- gn(),
7744
+ yn(),
7745
7745
  fh(),
7746
7746
  mh(),
7747
7747
  e
7748
7748
  ), r = p(
7749
- So,
7749
+ To,
7750
7750
  ph(),
7751
- gn()
7751
+ yn()
7752
7752
  );
7753
7753
  return {
7754
7754
  wrapper: t,
@@ -7759,7 +7759,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
7759
7759
  return "0 Bytes";
7760
7760
  const t = 1024, r = ["Bytes", "KB", "MB", "GB"], a = Math.floor(Math.log(e) / Math.log(t));
7761
7761
  return parseFloat((e / Math.pow(t, a)).toFixed(2)) + " " + r[a];
7762
- }, Zs = (e) => e.reduce((t, r) => t + r.size, 0), yh = (e) => e.type ? e : new File(
7762
+ }, eo = (e) => e.reduce((t, r) => t + r.size, 0), yh = (e) => e.type ? e : new File(
7763
7763
  [e],
7764
7764
  // Use the original file content
7765
7765
  e.name,
@@ -7801,18 +7801,18 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
7801
7801
  )) }),
7802
7802
  /* @__PURE__ */ T("div", { className: "text-xs text-gray-400 mt-1 pl-1", children: [
7803
7803
  "Total: ",
7804
- Vt(Zs(Array.from(e))),
7804
+ Vt(eo(Array.from(e))),
7805
7805
  " /",
7806
7806
  " ",
7807
7807
  Vt(Fr)
7808
7808
  ] })
7809
- ] }), eo = 24, vh = 500, to = 2, wh = 5, Eh = eo * to, yn = wh * eo, kh = "ready", _h = "streaming", Sh = "error", Th = "submitted", Lt = (e) => {
7809
+ ] }), to = 24, vh = 500, ro = 2, wh = 5, Eh = to * ro, bn = wh * to, kh = "ready", _h = "streaming", Sh = "error", Th = "submitted", Lt = (e) => {
7810
7810
  e.current && (e.current.style.height = `${Eh}px`);
7811
7811
  }, Ch = () => {
7812
7812
  const { user: e, getAccessToken: t } = Ve(), [r, a] = F(!1), [n, s] = F(null), [o, c] = F(!1), [l, d] = F(!1), {
7813
7813
  dispatch: f,
7814
7814
  state: { reasoning: u, streaming: h, aborted: m, lastResetTimestamp: g, attachments: y }
7815
- } = X(be), { state: v, dispatch: w } = X(oa), { state: C } = X(sa), { refetch: S } = rs({
7815
+ } = X(be), { state: v, dispatch: w } = X(oa), { state: C } = X(sa), { refetch: S } = as({
7816
7816
  enabled: !1,
7817
7817
  user: e?.username || "",
7818
7818
  searchString: C.searchString,
@@ -7834,7 +7834,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
7834
7834
  } = Qe({
7835
7835
  onFinish: (G, { usage: se }) => {
7836
7836
  S(), f({
7837
- type: Zn,
7837
+ type: es,
7838
7838
  payload: {
7839
7839
  tokenUsage: se.totalTokens
7840
7840
  }
@@ -7872,7 +7872,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
7872
7872
  {
7873
7873
  id: He(),
7874
7874
  role: Sr,
7875
- content: To
7875
+ content: Co
7876
7876
  }
7877
7877
  ]));
7878
7878
  }, 1e3);
@@ -7889,8 +7889,8 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
7889
7889
  return;
7890
7890
  E.current.style.height = "auto";
7891
7891
  const G = E.current.scrollHeight;
7892
- if (G > yn) {
7893
- E.current.style.height = `${yn}px`, E.current.style.overflowY = "scroll";
7892
+ if (G > bn) {
7893
+ E.current.style.height = `${bn}px`, E.current.style.overflowY = "scroll";
7894
7894
  return;
7895
7895
  }
7896
7896
  E.current.style.height = `${G}px`, E.current.style.overflowY = "hidden";
@@ -7904,7 +7904,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
7904
7904
  (ne) => ne.name === N.name && ne.size === N.size && ne.lastModified === N.lastModified
7905
7905
  ) || ye.push(N) : H = !0;
7906
7906
  }
7907
- if (b.current && (b.current.value = ""), Zs(ye) > Fr) {
7907
+ if (b.current && (b.current.value = ""), eo(ye) > Fr) {
7908
7908
  I.current = `Total file size exceeds the limit of ${Vt(
7909
7909
  Fr
7910
7910
  )}.`, c(!0);
@@ -7979,7 +7979,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
7979
7979
  G.indexOf(Ta) !== -1 ? navigator.clipboard.readText().then((ie) => {
7980
7980
  P(G.replace(Ta, ie));
7981
7981
  }) : P(G), !Ae() && E.current && E.current.focus(), w({
7982
- type: Tn
7982
+ type: Cn
7983
7983
  });
7984
7984
  }
7985
7985
  }, [v, w, P]), $(() => {
@@ -7998,7 +7998,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
7998
7998
  (async () => {
7999
7999
  if (Ge())
8000
8000
  return;
8001
- const G = await t(), se = await Us(G, [As.REASONING]);
8001
+ const G = await t(), se = await Vs(G, [Ns.REASONING]);
8002
8002
  a(se);
8003
8003
  })();
8004
8004
  }, [t]), $(() => {
@@ -8027,7 +8027,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
8027
8027
  "textarea",
8028
8028
  {
8029
8029
  required: !0,
8030
- rows: to,
8030
+ rows: ro,
8031
8031
  ref: E,
8032
8032
  placeholder: Ge() ? Ca : l ? Ia : xa,
8033
8033
  translate: "no",
@@ -8072,9 +8072,9 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
8072
8072
  }
8073
8073
  ),
8074
8074
  !Ge() && /* @__PURE__ */ T(ue, { children: [
8075
- r && /* @__PURE__ */ i(Gs, { className: "order-4 mr-4 sm:mr-2" }),
8076
- /* @__PURE__ */ i(js, { className: "order-5 mr-4 sm:mr-2" }),
8077
- /* @__PURE__ */ i(Xs, { className: "order-6" })
8075
+ r && /* @__PURE__ */ i(Js, { className: "order-4 mr-4 sm:mr-2" }),
8076
+ /* @__PURE__ */ i(Ws, { className: "order-5 mr-4 sm:mr-2" }),
8077
+ /* @__PURE__ */ i(Zs, { className: "order-6" })
8078
8078
  ] })
8079
8079
  ] })
8080
8080
  ] }) })
@@ -8085,10 +8085,10 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
8085
8085
  } = X(be), {
8086
8086
  state: { footerHeight: n, footerPosition: s },
8087
8087
  dispatch: o
8088
- } = X(ia), { messages: c } = Qe(), { height: l } = Fi(), { height: d } = ji(), [f, u] = Gn(), h = he(() => Ae(), []), m = l - d, g = he(() => m > 0 && m < 100 ? Co : xn, [m]);
8088
+ } = X(ia), { messages: c } = Qe(), { height: l } = Fi(), { height: d } = ji(), [f, u] = Jn(), h = he(() => Ae(), []), m = l - d, g = he(() => m > 0 && m < 100 ? Io : Rn, [m]);
8089
8089
  return $(() => {
8090
8090
  n !== u.height && o({
8091
- type: Xn,
8091
+ type: Zn,
8092
8092
  payload: {
8093
8093
  footerHeight: u.height
8094
8094
  }
@@ -8167,23 +8167,23 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
8167
8167
  ),
8168
8168
  children: [
8169
8169
  /* @__PURE__ */ i(Ch, {}),
8170
- /* @__PURE__ */ i("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: Io })
8170
+ /* @__PURE__ */ i("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: Ra[Math.floor(Math.random() * Ra.length)] })
8171
8171
  ]
8172
8172
  }
8173
8173
  );
8174
8174
  }, xh = ot(
8175
- () => import("./ProfileEntry.BYWrCpL1.js").then((e) => ({ default: e.Profile }))
8175
+ () => import("./ProfileEntry.Bu8VqBQC.js").then((e) => ({ default: e.Profile }))
8176
8176
  ), Rh = ot(
8177
- () => import("./SettingsEntry.BspfcHrj.js").then((e) => ({
8177
+ () => import("./SettingsEntry.DR_wlmun.js").then((e) => ({
8178
8178
  default: e.SettingsPanel
8179
8179
  }))
8180
8180
  ), Ah = ot(
8181
- () => import("./HistoryEntry.vKi3eYMd.js").then((e) => ({ default: e.HistoryPanel }))
8181
+ () => import("./HistoryEntry.DkErrIRd.js").then((e) => ({ default: e.HistoryPanel }))
8182
8182
  ), Nh = ot(
8183
- () => import("./AboutEntry.uRTVBW38.js").then((e) => ({ default: e.About }))
8183
+ () => import("./AboutEntry.CrFmXpo-.js").then((e) => ({ default: e.About }))
8184
8184
  ), Oh = ot(
8185
- () => import("./UsageEntry.BO-kF-Z5.js").then((e) => ({ default: e.Usage }))
8186
- ), $h = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ i(On, { fallback: /* @__PURE__ */ i("div", {}), children: (() => {
8185
+ () => import("./UsageEntry.B6ciyjKF.js").then((e) => ({ default: e.Usage }))
8186
+ ), $h = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ i($n, { fallback: /* @__PURE__ */ i("div", {}), children: (() => {
8187
8187
  switch (e) {
8188
8188
  case "profile":
8189
8189
  return /* @__PURE__ */ i(xh, { open: t, onOpenChange: r });
@@ -8202,7 +8202,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
8202
8202
  isComponent: e = !1
8203
8203
  }) => {
8204
8204
  const { logout: t, getAccessToken: r } = Ve(), [a, n] = F(null), [s, o] = F(!1), [c, l] = F(!1), [d, f] = F(!1), u = W(() => {
8205
- d || (import("./ProfileEntry.BYWrCpL1.js"), import("./SettingsEntry.BspfcHrj.js"), import("./HistoryEntry.vKi3eYMd.js"), import("./AboutEntry.uRTVBW38.js"), import("./UsageEntry.BO-kF-Z5.js"), f(!0));
8205
+ d || (import("./ProfileEntry.Bu8VqBQC.js"), import("./SettingsEntry.DR_wlmun.js"), import("./HistoryEntry.DkErrIRd.js"), import("./AboutEntry.CrFmXpo-.js"), import("./UsageEntry.B6ciyjKF.js"), f(!0));
8206
8206
  }, [d]), h = (y) => {
8207
8207
  n(y);
8208
8208
  }, m = () => {
@@ -8214,7 +8214,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
8214
8214
  (async () => {
8215
8215
  if (!Ge())
8216
8216
  return;
8217
- const y = await r(), v = await Us(y, [As.REASONING]);
8217
+ const y = await r(), v = await Vs(y, [Ns.REASONING]);
8218
8218
  o(v);
8219
8219
  })();
8220
8220
  }, [r]), qr(
@@ -8240,9 +8240,9 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
8240
8240
  setShowConfirmation: l,
8241
8241
  action: t,
8242
8242
  customStrings: {
8243
- confirmAction: Ra,
8243
+ confirmAction: Aa,
8244
8244
  cancelAction: "Cancel",
8245
- title: Ra
8245
+ title: Aa
8246
8246
  },
8247
8247
  children: /* @__PURE__ */ i("p", { children: "Are you sure you want to log out?" })
8248
8248
  }
@@ -8256,7 +8256,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
8256
8256
  }
8257
8257
  ),
8258
8258
  /* @__PURE__ */ i("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ T(
8259
- In,
8259
+ xn,
8260
8260
  {
8261
8261
  alignHorizontal: "space-between",
8262
8262
  alignVertical: "center",
@@ -8265,9 +8265,9 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
8265
8265
  children: [
8266
8266
  /* @__PURE__ */ i(yt, { children: /* @__PURE__ */ i(ch, { className: " mr-4 sm:mr-2" }) }),
8267
8267
  /* @__PURE__ */ i(yt, { children: Ge() && /* @__PURE__ */ T(ue, { children: [
8268
- s && /* @__PURE__ */ i(Gs, { className: "mr-4 sm:mr-2" }),
8269
- /* @__PURE__ */ i(js, { className: "mr-4 sm:mr-2" }),
8270
- /* @__PURE__ */ i(Xs, {})
8268
+ s && /* @__PURE__ */ i(Js, { className: "mr-4 sm:mr-2" }),
8269
+ /* @__PURE__ */ i(Ws, { className: "mr-4 sm:mr-2" }),
8270
+ /* @__PURE__ */ i(Zs, {})
8271
8271
  ] }) }),
8272
8272
  /* @__PURE__ */ i(yt, { children: /* @__PURE__ */ i(
8273
8273
  $e,
@@ -8351,7 +8351,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
8351
8351
  }
8352
8352
  ) })
8353
8353
  ] });
8354
- }, zt = "av-bubble", bn = "av-button", fa = "icon", ro = "button", jr = "link", Mh = ({
8354
+ }, zt = "av-bubble", vn = "av-button", fa = "icon", ao = "button", jr = "link", Mh = ({
8355
8355
  type: e,
8356
8356
  size: t,
8357
8357
  labelRight: r,
@@ -8361,7 +8361,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
8361
8361
  }) => {
8362
8362
  const o = "max-h-8 py-0 px-2", c = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
8363
8363
  switch (e) {
8364
- case ro:
8364
+ case ao:
8365
8365
  case jr:
8366
8366
  return p({
8367
8367
  [o]: t === "small",
@@ -8395,7 +8395,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
8395
8395
  }) => {
8396
8396
  const n = "text-sm font-medium", s = "text-base font-medium", o = "text-lg font-medium";
8397
8397
  switch (e) {
8398
- case ro:
8398
+ case ao:
8399
8399
  case jr:
8400
8400
  return p({
8401
8401
  "text-center": e === jr,
@@ -8613,8 +8613,8 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
8613
8613
  align: g,
8614
8614
  radius: y,
8615
8615
  animated: v
8616
- }) => (h || (h = "primary"), r ? p(bn, t) : p(
8617
- bn,
8616
+ }) => (h || (h = "primary"), r ? p(vn, t) : p(
8617
+ vn,
8618
8618
  Dh({
8619
8619
  mode: a,
8620
8620
  variant: h,
@@ -8647,7 +8647,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
8647
8647
  )), Gh = (e, t, r) => {
8648
8648
  var a;
8649
8649
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e?.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
8650
- }, ao = Z.forwardRef((e, t) => {
8650
+ }, no = Z.forwardRef((e, t) => {
8651
8651
  const { onClick: r, noInternalClick: a = !1, ...n } = e;
8652
8652
  return /* @__PURE__ */ i(
8653
8653
  "button",
@@ -8660,7 +8660,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
8660
8660
  }
8661
8661
  );
8662
8662
  });
8663
- ao.displayName = "BaseButton";
8663
+ no.displayName = "BaseButton";
8664
8664
  function Jh() {
8665
8665
  const e = R(!1);
8666
8666
  return $(() => (e.current = !0, () => {
@@ -8773,7 +8773,7 @@ const Dt = {
8773
8773
  ]), $(() => () => {
8774
8774
  M.current && clearTimeout(M.current);
8775
8775
  }, []), /* @__PURE__ */ i(
8776
- ao,
8776
+ no,
8777
8777
  {
8778
8778
  ref: q,
8779
8779
  className: b,
@@ -8783,7 +8783,7 @@ const Dt = {
8783
8783
  ...O,
8784
8784
  children: /* @__PURE__ */ T("div", { className: x, children: [
8785
8785
  /* @__PURE__ */ i(
8786
- vn,
8786
+ wn,
8787
8787
  {
8788
8788
  label: m,
8789
8789
  labelRef: A,
@@ -8794,7 +8794,7 @@ const Dt = {
8794
8794
  ),
8795
8795
  /* @__PURE__ */ i("span", { ref: P, className: _, children: e }),
8796
8796
  /* @__PURE__ */ i(
8797
- vn,
8797
+ wn,
8798
8798
  {
8799
8799
  label: h,
8800
8800
  labelRef: E,
@@ -8807,7 +8807,7 @@ const Dt = {
8807
8807
  }
8808
8808
  );
8809
8809
  }
8810
- ), vn = ({
8810
+ ), wn = ({
8811
8811
  labelRef: e,
8812
8812
  labelClass: t,
8813
8813
  label: r,
@@ -8875,7 +8875,7 @@ const ef = Z.forwardRef(
8875
8875
  }
8876
8876
  );
8877
8877
  ef.displayName = "ButtonSort";
8878
- const no = ({
8878
+ const so = ({
8879
8879
  children: e,
8880
8880
  fill: t,
8881
8881
  viewBox: r,
@@ -8925,7 +8925,7 @@ const tf = ({
8925
8925
  monotone: a,
8926
8926
  ...n
8927
8927
  }) => /* @__PURE__ */ T(
8928
- no,
8928
+ so,
8929
8929
  {
8930
8930
  defaultViewBox: "0 0 448 512",
8931
8931
  size: "size-5",
@@ -8951,7 +8951,7 @@ const tf = ({
8951
8951
  monotone: a,
8952
8952
  ...n
8953
8953
  }) => /* @__PURE__ */ i(
8954
- no,
8954
+ so,
8955
8955
  {
8956
8956
  defaultViewBox: "0 0 512 512",
8957
8957
  size: "size-5",
@@ -9044,7 +9044,7 @@ const af = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
9044
9044
  footer: c,
9045
9045
  copyButton: l
9046
9046
  };
9047
- }, lf = "FOOTER_EMPTY", so = ({
9047
+ }, lf = "FOOTER_EMPTY", oo = ({
9048
9048
  children: e,
9049
9049
  kind: t = "left",
9050
9050
  className: r,
@@ -9115,14 +9115,14 @@ try {
9115
9115
  });
9116
9116
  } catch {
9117
9117
  }
9118
- const wn = "av-spinner", df = ({
9118
+ const En = "av-spinner", df = ({
9119
9119
  spinnerRef: e,
9120
9120
  mode: t = "system",
9121
9121
  type: r = "circle",
9122
9122
  className: a
9123
9123
  }) => {
9124
9124
  const n = r === "circle" ? p(
9125
- wn,
9125
+ En,
9126
9126
  "h-8 w-8",
9127
9127
  "align-[-0.125em]",
9128
9128
  "border-4",
@@ -9134,7 +9134,7 @@ const wn = "av-spinner", df = ({
9134
9134
  "text-copy-accent dark:text-copy-dark": t === "alt-system"
9135
9135
  },
9136
9136
  a
9137
- ) : p(wn, a), s = p("av-spinner__dot", {
9137
+ ) : p(En, a), s = p("av-spinner__dot", {
9138
9138
  "fill-copy-dark": t === "dark",
9139
9139
  "fill-copy-accent": t === "light",
9140
9140
  "fill-copy-dark dark:fill-copy-accent": t === "system",
@@ -9162,7 +9162,7 @@ try {
9162
9162
  });
9163
9163
  } catch {
9164
9164
  }
9165
- const En = "av-button", Zt = "icon", pa = "button", Wr = "link", uf = ({
9165
+ const kn = "av-button", Zt = "icon", pa = "button", Wr = "link", uf = ({
9166
9166
  type: e,
9167
9167
  size: t,
9168
9168
  labelRight: r,
@@ -9406,7 +9406,7 @@ const En = "av-button", Zt = "icon", pa = "button", Wr = "link", uf = ({
9406
9406
  animated: e
9407
9407
  }) => p({
9408
9408
  "transition-opacity duration-300 ease-in-out": e
9409
- }), oo = ({
9409
+ }), io = ({
9410
9410
  type: e,
9411
9411
  className: t,
9412
9412
  raw: r,
@@ -9424,8 +9424,8 @@ const En = "av-button", Zt = "icon", pa = "button", Wr = "link", uf = ({
9424
9424
  align: g,
9425
9425
  radius: y,
9426
9426
  animated: v
9427
- }) => (h || (h = "primary"), r ? p(En, t) : p(
9428
- En,
9427
+ }) => (h || (h = "primary"), r ? p(kn, t) : p(
9428
+ kn,
9429
9429
  ff({
9430
9430
  mode: a,
9431
9431
  variant: h,
@@ -9472,7 +9472,7 @@ const En = "av-button", Zt = "icon", pa = "button", Wr = "link", uf = ({
9472
9472
  );
9473
9473
  });
9474
9474
  ga.displayName = "BaseButton";
9475
- const io = Z.forwardRef(
9475
+ const co = Z.forwardRef(
9476
9476
  ({
9477
9477
  children: e,
9478
9478
  disabled: t = !1,
@@ -9488,7 +9488,7 @@ const io = Z.forwardRef(
9488
9488
  radius: u = "large",
9489
9489
  ...h
9490
9490
  }, m) => {
9491
- const g = oo({
9491
+ const g = io({
9492
9492
  type: pa,
9493
9493
  mode: r,
9494
9494
  focusMode: a,
@@ -9514,7 +9514,7 @@ const io = Z.forwardRef(
9514
9514
  );
9515
9515
  }
9516
9516
  );
9517
- io.displayName = "Button";
9517
+ co.displayName = "Button";
9518
9518
  function _f() {
9519
9519
  const e = R(!1);
9520
9520
  return $(() => (e.current = !0, () => {
@@ -9564,7 +9564,7 @@ const Bt = {
9564
9564
  // px-3 x 2
9565
9565
  large: 16 * 2
9566
9566
  // px-4 x 2
9567
- }, If = 2, xf = 300, co = Z.forwardRef(
9567
+ }, If = 2, xf = 300, lo = Z.forwardRef(
9568
9568
  ({
9569
9569
  children: e,
9570
9570
  disabled: t = !1,
@@ -9588,7 +9588,7 @@ const Bt = {
9588
9588
  animated: S = !1,
9589
9589
  ...O
9590
9590
  }, I) => {
9591
- const b = oo({
9591
+ const b = io({
9592
9592
  type: Zt,
9593
9593
  mode: r,
9594
9594
  focusMode: a,
@@ -9637,7 +9637,7 @@ const Bt = {
9637
9637
  ...O,
9638
9638
  children: /* @__PURE__ */ T("div", { className: x, children: [
9639
9639
  /* @__PURE__ */ i(
9640
- kn,
9640
+ _n,
9641
9641
  {
9642
9642
  label: m,
9643
9643
  labelRef: A,
@@ -9648,7 +9648,7 @@ const Bt = {
9648
9648
  ),
9649
9649
  /* @__PURE__ */ i("span", { ref: P, className: _, children: e }),
9650
9650
  /* @__PURE__ */ i(
9651
- kn,
9651
+ _n,
9652
9652
  {
9653
9653
  label: h,
9654
9654
  labelRef: E,
@@ -9661,7 +9661,7 @@ const Bt = {
9661
9661
  }
9662
9662
  );
9663
9663
  }
9664
- ), kn = ({
9664
+ ), _n = ({
9665
9665
  labelRef: e,
9666
9666
  labelClass: t,
9667
9667
  label: r,
@@ -9676,7 +9676,7 @@ const Bt = {
9676
9676
  children: r && /* @__PURE__ */ i("span", { className: a, children: r })
9677
9677
  }
9678
9678
  );
9679
- co.displayName = "ButtonIcon";
9679
+ lo.displayName = "ButtonIcon";
9680
9680
  /*!
9681
9681
  @versini/ui-button v6.0.9
9682
9682
  © 2025 gizmette.com
@@ -9716,7 +9716,7 @@ const Rf = Z.forwardRef(
9716
9716
  }
9717
9717
  ) : "";
9718
9718
  return /* @__PURE__ */ i("div", { className: o, children: /* @__PURE__ */ i(
9719
- co,
9719
+ lo,
9720
9720
  {
9721
9721
  className: p("justify-center", r),
9722
9722
  ref: s,
@@ -9758,7 +9758,7 @@ const Af = 200, Nf = ({
9758
9758
  return /* @__PURE__ */ T("span", { style: { wordBreak: "break-word" }, children: [
9759
9759
  n ? e : o,
9760
9760
  c && /* @__PURE__ */ i(
9761
- io,
9761
+ co,
9762
9762
  {
9763
9763
  mode: r,
9764
9764
  focusMode: a,
@@ -9786,7 +9786,7 @@ try {
9786
9786
  } catch {
9787
9787
  }
9788
9788
  const $f = ({ content: e }) => /* @__PURE__ */ i(
9789
- so,
9789
+ oo,
9790
9790
  {
9791
9791
  tail: !0,
9792
9792
  kind: "right",
@@ -9795,10 +9795,10 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
9795
9795
  className: "mt-3",
9796
9796
  children: /* @__PURE__ */ i(Of, { mode: "light", focusMode: "light", children: e })
9797
9797
  }
9798
- ), _n = 2, Pf = ot(
9798
+ ), Sn = 2, Pf = ot(
9799
9799
  () => import(
9800
9800
  /* webpackChunkName: "LazyMessageAssistant" */
9801
- "./ChatBubbleAssistant.Us3lU5MP.js"
9801
+ "./ChatBubbleAssistant.lWcRfu-V.js"
9802
9802
  )
9803
9803
  ), Mf = Z.memo(
9804
9804
  ({
@@ -9811,7 +9811,7 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
9811
9811
  const {
9812
9812
  state: { restoring: s, streaming: o }
9813
9813
  } = X(be);
9814
- return e === ud && t ? /* @__PURE__ */ i($f, { content: t }) : o && (e === Gt || e === Sr) && (!t || t && t.length < _n) ? /* @__PURE__ */ i(so, { tail: !0, children: /* @__PURE__ */ i(df, { type: "dots" }) }) : (e === Gt || e === Sr) && t && t.length >= _n ? /* @__PURE__ */ i(On, { fallback: /* @__PURE__ */ i("span", {}), children: /* @__PURE__ */ i(
9814
+ return e === ud && t ? /* @__PURE__ */ i($f, { content: t }) : o && (e === Gt || e === Sr) && (!t || t && t.length < Sn) ? /* @__PURE__ */ i(oo, { tail: !0, children: /* @__PURE__ */ i(df, { type: "dots" }) }) : (e === Gt || e === Sr) && t && t.length >= Sn ? /* @__PURE__ */ i($n, { fallback: /* @__PURE__ */ i("span", {}), children: /* @__PURE__ */ i(
9815
9815
  Pf,
9816
9816
  {
9817
9817
  role: e,
@@ -9868,7 +9868,7 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
9868
9868
  return $(() => {
9869
9869
  l && g();
9870
9870
  }, [l, g]), $(() => {
9871
- f.current = s === Je ? o + c + Rn + Ro : 0;
9871
+ f.current = s === Je ? o + c + An + Ro : 0;
9872
9872
  }, [s, o, c]), /* @__PURE__ */ T(ue, { children: [
9873
9873
  /* @__PURE__ */ T("div", { className: u, ref: a, children: [
9874
9874
  /* @__PURE__ */ i(Ao, { className: m }),
@@ -9886,11 +9886,11 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
9886
9886
  )
9887
9887
  ] });
9888
9888
  };
9889
- function lo({
9889
+ function uo({
9890
9890
  isComponent: e = !1,
9891
9891
  headerHeight: t = 0
9892
9892
  }) {
9893
- const { user: r, getAccessToken: a } = Ve(), [n, s] = F(`${Aa}px`), [o, c] = Gn(), [l, d] = F(He()), [f, u] = F([]), [h] = jt({
9893
+ const { user: r, getAccessToken: a } = Ve(), [n, s] = F(`${Na}px`), [o, c] = Jn(), [l, d] = F(He()), [f, u] = F([]), [h] = jt({
9894
9894
  key: Ft + Po,
9895
9895
  initialValue: ""
9896
9896
  }), [m] = jt({
@@ -9901,7 +9901,7 @@ function lo({
9901
9901
  return {
9902
9902
  footerPosition: k ? Je : Wt,
9903
9903
  footerHeight: 0,
9904
- footerOffset: k ? xn : 0
9904
+ footerOffset: k ? Rn : 0
9905
9905
  };
9906
9906
  }, []), [y, v] = St(Sc, g), [w, C] = St(Cc, {
9907
9907
  searchString: h,
@@ -9931,7 +9931,7 @@ function lo({
9931
9931
  document.getElementById("root")?.classList.replace("app-hidden", "fadeIn");
9932
9932
  }, []), $(() => {
9933
9933
  _ && _.provider && b({
9934
- type: es,
9934
+ type: ts,
9935
9935
  payload: {
9936
9936
  provider: _.provider
9937
9937
  }
@@ -9940,10 +9940,10 @@ function lo({
9940
9940
  if (y.footerPosition === "FOOTER_BOTTOM") {
9941
9941
  const k = `calc(${c.height}px + 20px)`;
9942
9942
  s(
9943
- `calc(100svh - ${t}px - ${k} - ${y.footerHeight}px - ${y.footerOffset}px - ${Rn}px)`
9943
+ `calc(100svh - ${t}px - ${k} - ${y.footerHeight}px - ${y.footerOffset}px - ${An}px)`
9944
9944
  );
9945
9945
  } else
9946
- s(`${Aa}px`);
9946
+ s(`${Na}px`);
9947
9947
  }, [y, c, t]), /* @__PURE__ */ i(
9948
9948
  sa.Provider,
9949
9949
  {
@@ -9984,8 +9984,8 @@ function lo({
9984
9984
  },
9985
9985
  children: [
9986
9986
  /* @__PURE__ */ T("div", { className: No, children: [
9987
- /* @__PURE__ */ i(Va, { containerId: "toggle-save" }),
9988
- /* @__PURE__ */ i(Va, { containerId: "toggle-provider" })
9987
+ /* @__PURE__ */ i(za, { containerId: "toggle-save" }),
9988
+ /* @__PURE__ */ i(za, { containerId: "toggle-provider" })
9989
9989
  ] }),
9990
9990
  /* @__PURE__ */ i(
9991
9991
  Oi,
@@ -9995,7 +9995,7 @@ function lo({
9995
9995
  noMargin: !0,
9996
9996
  noPadding: !0,
9997
9997
  noBorder: !0,
9998
- className: Na({
9998
+ className: Oa({
9999
9999
  extraClass: "mt-5"
10000
10000
  }),
10001
10001
  children: /* @__PURE__ */ i(Ph, { isComponent: e })
@@ -10004,7 +10004,7 @@ function lo({
10004
10004
  /* @__PURE__ */ i(
10005
10005
  Oo,
10006
10006
  {
10007
- className: Na({
10007
+ className: Oa({
10008
10008
  extraClass: "transition-all ease-in-out duration-500"
10009
10009
  }),
10010
10010
  noMargin: !0,
@@ -10026,13 +10026,13 @@ function lo({
10026
10026
  }
10027
10027
  );
10028
10028
  }
10029
- lo.displayName = "App";
10030
- const om = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: lo }, Symbol.toStringTag, { value: "Module" }));
10029
+ uo.displayName = "App";
10030
+ const om = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: uo }, Symbol.toStringTag, { value: "Module" }));
10031
10031
  export {
10032
10032
  jf as $e,
10033
10033
  om as App,
10034
10034
  oh as ButtonScroll,
10035
- es as CHAT_SET_PROVIDER,
10035
+ ts as CHAT_SET_PROVIDER,
10036
10036
  rt as CHAT_SET_STATUS,
10037
10037
  be as ChatContext,
10038
10038
  qe as ConfirmationPanel,
@@ -10041,10 +10041,10 @@ export {
10041
10041
  Kf as Ge,
10042
10042
  Ff as He,
10043
10043
  sa as HistoryContext,
10044
- Va as LazyToastContainerWrapper,
10044
+ za as LazyToastContainerWrapper,
10045
10045
  lf as Me,
10046
- Rs as O,
10047
- so as Oe,
10046
+ As as O,
10047
+ oo as Oe,
10048
10048
  vc as Pe,
10049
10049
  ft as R,
10050
10050
  ze as SERVICE_TYPES,
@@ -10053,23 +10053,23 @@ export {
10053
10053
  fi as a$1,
10054
10054
  $e as at,
10055
10055
  Di as b,
10056
- gs as getDefaultExportFromCjs,
10056
+ ys as getDefaultExportFromCjs,
10057
10057
  zi as i,
10058
10058
  Zf as j,
10059
- ts as mutateCall,
10059
+ rs as mutateCall,
10060
10060
  na as n,
10061
10061
  em as nt,
10062
- xs as o,
10062
+ Rs as o,
10063
10063
  _i as p,
10064
10064
  li as p$1,
10065
10065
  Gf as qe,
10066
10066
  Zu as rr,
10067
10067
  xc as setNewProvider,
10068
10068
  sm as showErrorToast,
10069
- Qs as showSuccessToast,
10069
+ Xs as showSuccessToast,
10070
10070
  Qe as useAiChat,
10071
10071
  Yf as useChangelogs,
10072
- rs as useChatsHistory,
10072
+ as as useChatsHistory,
10073
10073
  Xf as useChatsUsage,
10074
10074
  qf as useServerCapabilities,
10075
10075
  Qf as useUserChatStats,