@versini/sassysaint 8.34.2 → 8.35.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
1
  import { jsx as i, jsxs as T, Fragment as ue } from "react/jsx-runtime";
2
- import { Subscribable as ho, pendingThenable as ka, resolveEnabled as Ee, shallowEqualObjects as Er, resolveStaleTime as gt, noop as _r, isServer as Sr, isValidTimeout as Ea, focusManager as mo, fetchState as fo, replaceData as _a, notifyManager as _s, timeUntilStale as po, shouldThrowError as go, useQueryClient as yo, I as re, ACTION_SORT as bo, ACTION_SEARCH as vo, ACTION_RESET_PROMPT as Ss, ACTION_TOGGLE_PROMPT as Ts, ue as xe, DEFAULT_ICON_ACTION_SIZE as Te, isTauri as Wt, n as Ve, isProbablyiPhone as Ae, L as xs, j as yt, C as Sa, LOCAL_STORAGE_PREFIX as jt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as wo, LOCAL_STORAGE_REASONING_DISCLOSURE as ko, TOAST_CHAT_SAVED as Eo, PROMPT_CLASSNAME as _o, PROMPT_EDITABLE_AREA_CLASSNAME as So, ERROR_MESSAGE as To, ROLE_INTERNAL as Tr, CLIPBOARD_PROMPT as Ta, isProbablyMobile as Je, INPUT_PLACEHOLDER_TEXT_MOBILE as xa, INPUT_PLACEHOLDER_TEXT_ENTER as Ca, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as Ia, FOOTER_DISCLAIMERS as Ra, INPUT_BOTTOM_OFFSET_EXTRA as xo, INPUT_BOTTOM_OFFSET_IPHONE as Co, INPUT_BOTTOM_OFFSET as Cs, TOAST_PROVIDER_CHANGED as Io, LOG_OUT as Aa, getMessageContaintWrapperClass as Ro, UI_FOOTER_BUFFER as Is, UI_BUTTON_SCROLL_BUFFER as Ao, Logo as No, UI_DEFAULT_MAIN_HEIGHT as Na, APP_CLASSNAME as Oo, getMainPaddingClass as Oa, r as $o, LOCAL_STORAGE_SORT as Po, LOCAL_STORAGE_SEARCH as Mo } from "./index.DOg0VpsL.js";
2
+ import { Subscribable as ho, pendingThenable as ka, resolveEnabled as Ee, shallowEqualObjects as Er, resolveStaleTime as gt, noop as _r, isServer as Sr, isValidTimeout as Ea, focusManager as mo, fetchState as fo, replaceData as _a, notifyManager as _s, timeUntilStale as po, shouldThrowError as go, useQueryClient as yo, I as re, ACTION_SORT as bo, ACTION_SEARCH as vo, ACTION_RESET_PROMPT as Ss, ACTION_TOGGLE_PROMPT as Ts, ue as xe, DEFAULT_ICON_ACTION_SIZE as Te, isTauri as Wt, n as Ve, isProbablyiPhone as Ae, L as xs, j as yt, C as Sa, LOCAL_STORAGE_PREFIX as jt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as wo, LOCAL_STORAGE_REASONING_DISCLOSURE as ko, TOAST_CHAT_SAVED as Eo, PROMPT_CLASSNAME as _o, PROMPT_EDITABLE_AREA_CLASSNAME as So, ERROR_MESSAGE as To, ROLE_INTERNAL as Tr, CLIPBOARD_PROMPT as Ta, isProbablyMobile as Je, INPUT_PLACEHOLDER_TEXT_MOBILE as xa, INPUT_PLACEHOLDER_TEXT_ENTER as Ca, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as Ia, FOOTER_DISCLAIMERS as Ra, INPUT_BOTTOM_OFFSET_EXTRA as xo, INPUT_BOTTOM_OFFSET_IPHONE as Co, INPUT_BOTTOM_OFFSET as Cs, TOAST_PROVIDER_CHANGED as Io, LOG_OUT as Aa, getMessageContaintWrapperClass as Ro, UI_FOOTER_BUFFER as Is, UI_BUTTON_SCROLL_BUFFER as Ao, Logo as No, UI_DEFAULT_MAIN_HEIGHT as Na, APP_CLASSNAME as Oo, getMainPaddingClass as Oa, r as $o, LOCAL_STORAGE_SORT as Po, LOCAL_STORAGE_SEARCH as Mo } from "./index.D4EO-rWf.js";
3
3
  import * as Y from "react";
4
- import Z, { useEffect as $, useRef as R, useState as z, useCallback as V, useSyncExternalStore as Lo, useMemo as he, useId as Kr, useContext as X, useLayoutEffect as Oe, createContext as Rs, useDebugValue as Do, forwardRef as As, Suspense as Ns, lazy as it, useReducer as St } from "react";
4
+ import Z, { useEffect as $, useRef as R, useState as z, useCallback as V, useSyncExternalStore as Lo, useMemo as he, useId as Kr, useContext as X, useLayoutEffect as Oe, createContext as Rs, useDebugValue as Bo, forwardRef as As, Suspense as Ns, lazy as it, useReducer as St } from "react";
5
5
  import p from "clsx";
6
- import { computePosition as Bo, offset as Os, flip as $s, shift as Ps, arrow as Uo, useMergeRefs as Jr, FloatingPortal as Ms, FloatingOverlay as Ho, FloatingFocusManager as Ls, useFloating as Ds, useClick as Bs, useDismiss as Us, useRole as Hs, useInteractions as Vs, FloatingTree as Vo, useFloatingTree as zs, useFloatingNodeId as zo, useListItem as Fs, autoUpdate as Fo, useListNavigation as Wo, useTypeahead as jo, FloatingNode as Go, FloatingList as Ko } from "@floating-ui/react";
6
+ import { computePosition as Do, offset as Os, flip as $s, shift as Ps, arrow as Uo, useMergeRefs as Jr, FloatingPortal as Ms, FloatingOverlay as Ho, FloatingFocusManager as Ls, useFloating as Bs, useClick as Ds, useDismiss as Us, useRole as Hs, useInteractions as Vs, FloatingTree as Vo, useFloatingTree as zs, useFloatingNodeId as zo, useListItem as Fs, autoUpdate as Fo, useListNavigation as Wo, useTypeahead as jo, FloatingNode as Go, FloatingList as Ko } from "@floating-ui/react";
7
7
  var Jo = class extends ho {
8
8
  constructor(e, t) {
9
9
  super(), this.options = t, this.#r = e, this.#s = null, this.#a = ka(), this.options.experimental_prefetchInRender || this.#a.reject(
@@ -1004,7 +1004,7 @@ function Li(e) {
1004
1004
  });
1005
1005
  };
1006
1006
  }
1007
- function Di(e, t, r = !1) {
1007
+ function Bi(e, t, r = !1) {
1008
1008
  return e.target instanceof HTMLElement ? (r || !e.target.isContentEditable) && !t.includes(e.target.tagName) : !0;
1009
1009
  }
1010
1010
  function Yr(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
@@ -1012,14 +1012,14 @@ function Yr(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
1012
1012
  const a = (s) => {
1013
1013
  e.forEach(
1014
1014
  ([n, o, c = { preventDefault: !0 }]) => {
1015
- Ws(n)(s) && Di(s, t, r) && (c.preventDefault && s.preventDefault(), o(s));
1015
+ Ws(n)(s) && Bi(s, t, r) && (c.preventDefault && s.preventDefault(), o(s));
1016
1016
  }
1017
1017
  );
1018
1018
  };
1019
1019
  return document.documentElement.addEventListener("keydown", a), () => document.documentElement.removeEventListener("keydown", a);
1020
1020
  }, [e, t, r]);
1021
1021
  }
1022
- function Bi() {
1022
+ function Di() {
1023
1023
  const e = R(null), [t, r] = z(!1);
1024
1024
  return { ref: V((a) => {
1025
1025
  var s, n;
@@ -1044,12 +1044,12 @@ const La = (e, t) => {
1044
1044
  window.localStorage.setItem(e, r), js(e, r);
1045
1045
  }, Hi = (e) => {
1046
1046
  window.localStorage.removeItem(e), js(e, null);
1047
- }, Da = (e) => window.localStorage.getItem(e), Vi = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
1047
+ }, Ba = (e) => window.localStorage.getItem(e), Vi = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
1048
1048
  function Gt({
1049
1049
  key: e,
1050
1050
  initialValue: t
1051
1051
  }) {
1052
- const r = Lo(Vi, () => Da(e)), a = V(
1052
+ const r = Lo(Vi, () => Ba(e)), a = V(
1053
1053
  (o) => {
1054
1054
  try {
1055
1055
  const c = typeof o == "function" ? o(JSON.parse(r)) : o;
@@ -1066,7 +1066,7 @@ function Gt({
1066
1066
  }, [a]);
1067
1067
  return $(() => {
1068
1068
  try {
1069
- Da(e) === null && typeof t < "u" && La(e, t);
1069
+ Ba(e) === null && typeof t < "u" && La(e, t);
1070
1070
  } catch (o) {
1071
1071
  console.warn(o);
1072
1072
  }
@@ -1096,7 +1096,7 @@ function Gs(e) {
1096
1096
  function Fi(e) {
1097
1097
  return Kr();
1098
1098
  }
1099
- function Ba(e, t) {
1099
+ function Da(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 Wi() {
1111
1111
  height: window.innerHeight || 0
1112
1112
  });
1113
1113
  }, []);
1114
- return Ba("resize", r), Ba("orientationchange", r), $(r, []), e;
1114
+ return Da("resize", r), Da("orientationchange", r), $(r, []), e;
1115
1115
  }
1116
1116
  function ji() {
1117
1117
  const [e, t] = z({
@@ -1567,10 +1567,10 @@ const Tt = {
1567
1567
  M && M.current && S && (Q.current = J.width + cc[u] + (l ? 0 : lc), L.current && !L.current.style.width && (L.current.style.width = `${Tt[u]}px`));
1568
1568
  }, [J, M, u, l, S]), Oe(() => {
1569
1569
  if (L && L.current && S) {
1570
- let B = Tt[u];
1571
- h && w && F.width > 0 ? B = F.width + Q.current : f && O && W.width > 0 && (B = W.width + Q.current), P.current && clearTimeout(P.current), B !== parseInt(L.current.style.width || "0", 10) && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"), L.current.style.width = `${B}px`, B > Tt[u] && (P.current = setTimeout(() => {
1570
+ let D = Tt[u];
1571
+ h && w && F.width > 0 ? D = F.width + Q.current : f && O && W.width > 0 && (D = W.width + Q.current), P.current && clearTimeout(P.current), D !== parseInt(L.current.style.width || "0", 10) && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"), L.current.style.width = `${D}px`, D > Tt[u] && (P.current = setTimeout(() => {
1572
1572
  w.current && h && (w.current.style.opacity = "1"), O.current && f && (O.current.style.opacity = "1"), P.current = null;
1573
- }, dc * 0.8))), B === Tt[u] && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"));
1573
+ }, dc * 0.8))), D === Tt[u] && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"));
1574
1574
  }
1575
1575
  }, [
1576
1576
  F,
@@ -1942,7 +1942,7 @@ const lt = Z.createContext({
1942
1942
  )
1943
1943
  }), vc = ({
1944
1944
  buttonClassName: e
1945
- }) => p("rounded-none text-sm", e), Fm = ({
1945
+ }) => p("rounded-none text-sm", e), Wm = ({
1946
1946
  children: e,
1947
1947
  mode: t = "system",
1948
1948
  caption: r,
@@ -1981,7 +1981,7 @@ const lt = Z.createContext({
1981
1981
  )
1982
1982
  }
1983
1983
  );
1984
- }, Wm = ({
1984
+ }, jm = ({
1985
1985
  children: e,
1986
1986
  className: t,
1987
1987
  ...r
@@ -1994,7 +1994,7 @@ const lt = Z.createContext({
1994
1994
  stickyHeader: a.stickyHeader
1995
1995
  });
1996
1996
  return /* @__PURE__ */ i("thead", { className: s, ...r, children: e });
1997
- }, jm = ({
1997
+ }, Gm = ({
1998
1998
  children: e,
1999
1999
  className: t,
2000
2000
  ...r
@@ -2007,10 +2007,10 @@ const lt = Z.createContext({
2007
2007
  stickyFooter: a.stickyFooter
2008
2008
  });
2009
2009
  return /* @__PURE__ */ i("tfoot", { className: s, ...r, children: e });
2010
- }, Gm = ({ children: e, ...t }) => {
2010
+ }, Km = ({ children: e, ...t }) => {
2011
2011
  const r = X(lt);
2012
2012
  return r.cellWrapper = rt, /* @__PURE__ */ i("tbody", { ...t, children: e });
2013
- }, Km = ({
2013
+ }, Jm = ({
2014
2014
  children: e,
2015
2015
  className: t,
2016
2016
  ...r
@@ -2036,7 +2036,7 @@ const lt = Z.createContext({
2036
2036
  align: a
2037
2037
  });
2038
2038
  return a ? /* @__PURE__ */ i(o, { className: c, ...s, children: /* @__PURE__ */ i("div", { className: l, children: e }) }) : /* @__PURE__ */ i(o, { className: c, ...s, children: e });
2039
- }, Jm = ({
2039
+ }, qm = ({
2040
2040
  align: e,
2041
2041
  children: t,
2042
2042
  buttonClassName: r,
@@ -2554,7 +2554,7 @@ Error message: ${sn(r)}`,
2554
2554
  };
2555
2555
  fn = Mc;
2556
2556
  var Fa = Lc;
2557
- let Dc = (e, t = 21) => (r = t) => {
2557
+ let Bc = (e, t = 21) => (r = t) => {
2558
2558
  let a = "", s = r | 0;
2559
2559
  for (; s--; )
2560
2560
  a += e[Math.random() * e.length | 0];
@@ -2564,7 +2564,7 @@ function pn(e) {
2564
2564
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2565
2565
  }
2566
2566
  var Ge = { exports: {} }, Wa;
2567
- function Bc() {
2567
+ function Dc() {
2568
2568
  if (Wa) return Ge.exports;
2569
2569
  Wa = 1;
2570
2570
  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*:/;
@@ -2636,7 +2636,7 @@ function Bc() {
2636
2636
  }
2637
2637
  return Ge.exports = n, Ge.exports.default = n, Ge.exports.parse = n, Ge.exports.safeParse = o, Ge.exports.scan = s, Ge.exports;
2638
2638
  }
2639
- var Uc = /* @__PURE__ */ Bc();
2639
+ var Uc = /* @__PURE__ */ Dc();
2640
2640
  const Hc = /* @__PURE__ */ pn(Uc);
2641
2641
  var Vc = ({
2642
2642
  prefix: e,
@@ -2644,7 +2644,7 @@ var Vc = ({
2644
2644
  alphabet: r = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
2645
2645
  separator: a = "-"
2646
2646
  } = {}) => {
2647
- const s = Dc(r, t);
2647
+ const s = Bc(r, t);
2648
2648
  if (e == null)
2649
2649
  return s;
2650
2650
  if (r.includes(a))
@@ -3886,7 +3886,7 @@ const Ne = /* @__PURE__ */ new WeakMap(), Le = () => {
3886
3886
  ];
3887
3887
  };
3888
3888
  let Mr = !0;
3889
- const Nl = () => Mr, [Lr, Dr] = wt && window.addEventListener ? [
3889
+ const Nl = () => Mr, [Lr, Br] = wt && window.addEventListener ? [
3890
3890
  window.addEventListener.bind(window),
3891
3891
  window.removeEventListener.bind(window)
3892
3892
  ] : [
@@ -3896,7 +3896,7 @@ const Nl = () => Mr, [Lr, Dr] = wt && window.addEventListener ? [
3896
3896
  const e = Pr && document.visibilityState;
3897
3897
  return G(e) || e !== "hidden";
3898
3898
  }, $l = (e) => (Pr && document.addEventListener("visibilitychange", e), Lr("focus", e), () => {
3899
- Pr && document.removeEventListener("visibilitychange", e), Dr("focus", e);
3899
+ Pr && document.removeEventListener("visibilitychange", e), Br("focus", e);
3900
3900
  }), Pl = (e) => {
3901
3901
  const t = () => {
3902
3902
  Mr = !0, e();
@@ -3904,7 +3904,7 @@ const Nl = () => Mr, [Lr, Dr] = wt && window.addEventListener ? [
3904
3904
  Mr = !1;
3905
3905
  };
3906
3906
  return Lr("online", t), Lr("offline", r), () => {
3907
- Dr("online", t), Dr("offline", r);
3907
+ Br("online", t), Br("offline", r);
3908
3908
  };
3909
3909
  }, Ml = {
3910
3910
  isOnline: Nl,
@@ -3912,26 +3912,26 @@ const Nl = () => Mr, [Lr, Dr] = wt && window.addEventListener ? [
3912
3912
  }, Ll = {
3913
3913
  initFocus: $l,
3914
3914
  initReconnect: Pl
3915
- }, Xa = !Z.useId, bt = !wt || Rl, Dl = (e) => Al() ? window.requestAnimationFrame(e) : setTimeout(e, 1), cr = bt ? $ : Oe, lr = typeof navigator < "u" && navigator.connection, Za = !bt && lr && ([
3915
+ }, Xa = !Z.useId, bt = !wt || Rl, Bl = (e) => Al() ? window.requestAnimationFrame(e) : setTimeout(e, 1), cr = bt ? $ : Oe, lr = typeof navigator < "u" && navigator.connection, Za = !bt && lr && ([
3916
3916
  "slow-2g",
3917
3917
  "2g"
3918
- ].includes(lr.effectiveType) || lr.saveData), It = /* @__PURE__ */ new WeakMap(), Bl = (e) => $r.prototype.toString.call(e), dr = (e, t) => e === `[object ${t}]`;
3918
+ ].includes(lr.effectiveType) || lr.saveData), It = /* @__PURE__ */ new WeakMap(), Dl = (e) => $r.prototype.toString.call(e), dr = (e, t) => e === `[object ${t}]`;
3919
3919
  let Ul = 0;
3920
- const Br = (e) => {
3921
- const t = typeof e, r = Bl(e), a = dr(r, "Date"), s = dr(r, "RegExp"), n = dr(r, "Object");
3920
+ const Dr = (e) => {
3921
+ const t = typeof e, r = Dl(e), a = dr(r, "Date"), s = dr(r, "RegExp"), n = dr(r, "Object");
3922
3922
  let o, c;
3923
3923
  if ($r(e) === e && !a && !s) {
3924
3924
  if (o = It.get(e), o) return o;
3925
3925
  if (o = ++Ul + "~", It.set(e, o), Array.isArray(e)) {
3926
3926
  for (o = "@", c = 0; c < e.length; c++)
3927
- o += Br(e[c]) + ",";
3927
+ o += Dr(e[c]) + ",";
3928
3928
  It.set(e, o);
3929
3929
  }
3930
3930
  if (n) {
3931
3931
  o = "#";
3932
3932
  const l = $r.keys(e).sort();
3933
3933
  for (; !G(c = l.pop()); )
3934
- G(e[c]) || (o += c + ":" + Br(e[c]) + ",");
3934
+ G(e[c]) || (o += c + ":" + Dr(e[c]) + ",");
3935
3935
  It.set(e, o);
3936
3936
  }
3937
3937
  } else
@@ -3945,7 +3945,7 @@ const Br = (e) => {
3945
3945
  e = "";
3946
3946
  }
3947
3947
  const t = e;
3948
- return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? Br(e) : "", [
3948
+ return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? Dr(e) : "", [
3949
3949
  e,
3950
3950
  t
3951
3951
  ];
@@ -4164,20 +4164,20 @@ const ur = Z.use || // This extra generic is to avoid TypeScript mixing up the g
4164
4164
  }), hr = {
4165
4165
  dedupe: !0
4166
4166
  }, ad = (e, t, r) => {
4167
- const { cache: a, compare: s, suspense: n, fallbackData: o, revalidateOnMount: c, revalidateIfStale: l, refreshInterval: d, refreshWhenHidden: m, refreshWhenOffline: u, keepPreviousData: h } = r, [f, g, y, k] = Ne.get(a), [b, x] = sa(e), S = R(!1), N = R(!1), C = R(b), v = R(t), _ = R(r), E = () => _.current, I = () => E().isVisible() && E().isOnline(), [w, F, O, W] = En(a, b), M = R({}).current, J = G(o) ? G(r.fallback) ? de : r.fallback[b] : o, Q = (D, A) => {
4167
+ const { cache: a, compare: s, suspense: n, fallbackData: o, revalidateOnMount: c, revalidateIfStale: l, refreshInterval: d, refreshWhenHidden: m, refreshWhenOffline: u, keepPreviousData: h } = r, [f, g, y, k] = Ne.get(a), [b, x] = sa(e), S = R(!1), N = R(!1), C = R(b), v = R(t), _ = R(r), E = () => _.current, I = () => E().isVisible() && E().isOnline(), [w, F, O, W] = En(a, b), M = R({}).current, J = G(o) ? G(r.fallback) ? de : r.fallback[b] : o, Q = (B, A) => {
4168
4168
  for (const j in M) {
4169
4169
  const H = j;
4170
4170
  if (H === "data") {
4171
- if (!s(D[H], A[H]) && (!G(D[H]) || !s(Me, A[H])))
4171
+ if (!s(B[H], A[H]) && (!G(B[H]) || !s(Me, A[H])))
4172
4172
  return !1;
4173
- } else if (A[H] !== D[H])
4173
+ } else if (A[H] !== B[H])
4174
4174
  return !1;
4175
4175
  }
4176
4176
  return !0;
4177
4177
  }, L = he(() => {
4178
- const D = !b || !t ? !1 : G(c) ? E().isPaused() || n ? !1 : l !== !1 : c, A = (ee) => {
4178
+ const B = !b || !t ? !1 : G(c) ? E().isPaused() || n ? !1 : l !== !1 : c, A = (ee) => {
4179
4179
  const fe = He(ee);
4180
- return delete fe._k, D ? {
4180
+ return delete fe._k, B ? {
4181
4181
  isValidating: !0,
4182
4182
  isLoading: !0,
4183
4183
  ...fe
@@ -4195,21 +4195,21 @@ const ur = Z.use || // This extra generic is to avoid TypeScript mixing up the g
4195
4195
  a,
4196
4196
  b
4197
4197
  ]), P = Il.useSyncExternalStore(V(
4198
- (D) => O(b, (A, j) => {
4199
- Q(j, A) || D();
4198
+ (B) => O(b, (A, j) => {
4199
+ Q(j, A) || B();
4200
4200
  }),
4201
4201
  // eslint-disable-next-line react-hooks/exhaustive-deps
4202
4202
  [
4203
4203
  a,
4204
4204
  b
4205
4205
  ]
4206
- ), L[0], L[1]), q = !S.current, B = f[b] && f[b].length > 0, ge = P.data, ve = G(ge) ? J && kn(J) ? ur(J) : J : ge, Pe = P.error, We = R(ve), Me = h ? G(ge) ? G(We.current) ? ve : We.current : ge : ve, je = B && !G(Pe) ? !1 : q && !G(c) ? c : E().isPaused() ? !1 : n ? G(ve) ? !1 : l : G(ve) || l, _e = !!(b && t && q && je), K = G(P.isValidating) ? _e : P.isValidating, ne = G(P.isLoading) ? _e : P.isLoading, ie = V(
4207
- async (D) => {
4206
+ ), L[0], L[1]), q = !S.current, D = f[b] && f[b].length > 0, ge = P.data, ve = G(ge) ? J && kn(J) ? ur(J) : J : ge, Pe = P.error, We = R(ve), Me = h ? G(ge) ? G(We.current) ? ve : We.current : ge : ve, je = D && !G(Pe) ? !1 : q && !G(c) ? c : E().isPaused() ? !1 : n ? G(ve) ? !1 : l : G(ve) || l, _e = !!(b && t && q && je), K = G(P.isValidating) ? _e : P.isValidating, ne = G(P.isLoading) ? _e : P.isLoading, ie = V(
4207
+ async (B) => {
4208
4208
  const A = v.current;
4209
4209
  if (!b || !A || N.current || E().isPaused())
4210
4210
  return !1;
4211
4211
  let j, H, se = !0;
4212
- const me = D || {}, te = !y[b] || !me.dedupe, ee = () => Xa ? !N.current && b === C.current && S.current : b === C.current, fe = {
4212
+ const me = B || {}, te = !y[b] || !me.dedupe, ee = () => Xa ? !N.current && b === C.current && S.current : b === C.current, fe = {
4213
4213
  isValidating: !1,
4214
4214
  isLoading: !1
4215
4215
  }, kt = () => {
@@ -4268,7 +4268,7 @@ const ur = Z.use || // This extra generic is to avoid TypeScript mixing up the g
4268
4268
  ]
4269
4269
  ), ye = V(
4270
4270
  // Use callback to make sure `keyRef.current` returns latest result every time
4271
- (...D) => _n(a, C.current, ...D),
4271
+ (...B) => _n(a, C.current, ...B),
4272
4272
  // eslint-disable-next-line react-hooks/exhaustive-deps
4273
4273
  []
4274
4274
  );
@@ -4276,15 +4276,15 @@ const ur = Z.use || // This extra generic is to avoid TypeScript mixing up the g
4276
4276
  v.current = t, _.current = r, G(ge) || (We.current = ge);
4277
4277
  }), cr(() => {
4278
4278
  if (!b) return;
4279
- const D = ie.bind(de, hr);
4279
+ const B = ie.bind(de, hr);
4280
4280
  let A = 0;
4281
4281
  E().revalidateOnFocus && (A = Date.now() + E().focusThrottleInterval);
4282
4282
  const H = rd(b, f, (se, me = {}) => {
4283
4283
  if (se == bn) {
4284
4284
  const te = Date.now();
4285
- E().revalidateOnFocus && te > A && I() && (A = te + E().focusThrottleInterval, D());
4285
+ E().revalidateOnFocus && te > A && I() && (A = te + E().focusThrottleInterval, B());
4286
4286
  } else if (se == vn)
4287
- E().revalidateOnReconnect && I() && D();
4287
+ E().revalidateOnReconnect && I() && B();
4288
4288
  else {
4289
4289
  if (se == wn)
4290
4290
  return ie();
@@ -4294,35 +4294,35 @@ const ur = Z.use || // This extra generic is to avoid TypeScript mixing up the g
4294
4294
  });
4295
4295
  return N.current = !1, C.current = b, S.current = !0, F({
4296
4296
  _k: x
4297
- }), je && (y[b] || (G(ve) || bt ? D() : Dl(D))), () => {
4297
+ }), je && (y[b] || (G(ve) || bt ? B() : Bl(B))), () => {
4298
4298
  N.current = !0, H();
4299
4299
  };
4300
4300
  }, [
4301
4301
  b
4302
4302
  ]), cr(() => {
4303
- let D;
4303
+ let B;
4304
4304
  function A() {
4305
4305
  const H = Se(d) ? d(w().data) : d;
4306
- H && D !== -1 && (D = setTimeout(j, H));
4306
+ H && B !== -1 && (B = setTimeout(j, H));
4307
4307
  }
4308
4308
  function j() {
4309
4309
  !w().error && (m || E().isVisible()) && (u || E().isOnline()) ? ie(hr).then(A) : A();
4310
4310
  }
4311
4311
  return A(), () => {
4312
- D && (clearTimeout(D), D = -1);
4312
+ B && (clearTimeout(B), B = -1);
4313
4313
  };
4314
4314
  }, [
4315
4315
  d,
4316
4316
  m,
4317
4317
  u,
4318
4318
  b
4319
- ]), Do(Me), n && G(ve) && b) {
4319
+ ]), Bo(Me), n && G(ve) && b) {
4320
4320
  if (!Xa && bt)
4321
4321
  throw new Error("Fallback data is required when using Suspense in SSR.");
4322
4322
  v.current = t, _.current = r, N.current = !1;
4323
- const D = k[b];
4324
- if (!G(D)) {
4325
- const A = ye(D);
4323
+ const B = k[b];
4324
+ if (!G(B)) {
4325
+ const A = ye(B);
4326
4326
  ur(A);
4327
4327
  }
4328
4328
  if (G(Pe)) {
@@ -4424,8 +4424,8 @@ function cd({
4424
4424
  body: g
4425
4425
  };
4426
4426
  }, [h, f, g]);
4427
- const B = V(
4428
- async (U, D = "generate") => {
4427
+ const D = V(
4428
+ async (U, B = "generate") => {
4429
4429
  var A, j;
4430
4430
  J("submitted"), L(void 0);
4431
4431
  const H = sr(U.messages), se = H.length, me = Ar(
@@ -4502,7 +4502,7 @@ function cd({
4502
4502
  generateId: y,
4503
4503
  fetch: k,
4504
4504
  lastMessage: H[H.length - 1],
4505
- requestType: D
4505
+ requestType: B
4506
4506
  }), P.current = null, J("ready");
4507
4507
  } catch (ee) {
4508
4508
  if (ee.name === "AbortError")
@@ -4515,7 +4515,7 @@ function cd({
4515
4515
  originalMessageCount: se,
4516
4516
  maxSteps: c,
4517
4517
  messages: te
4518
- }) && await B({ messages: te });
4518
+ }) && await D({ messages: te });
4519
4519
  },
4520
4520
  [
4521
4521
  I,
@@ -4543,7 +4543,7 @@ function cd({
4543
4543
  ]
4544
4544
  ), ge = V(
4545
4545
  async (U, {
4546
- data: D,
4546
+ data: B,
4547
4547
  headers: A,
4548
4548
  body: j,
4549
4549
  experimental_attachments: H = U.experimental_attachments
@@ -4558,33 +4558,33 @@ function cd({
4558
4558
  experimental_attachments: te.length > 0 ? te : void 0,
4559
4559
  parts: gn(U)
4560
4560
  });
4561
- return B({ messages: ee, headers: A, body: j, data: D });
4561
+ return D({ messages: ee, headers: A, body: j, data: B });
4562
4562
  },
4563
- [B, y]
4563
+ [D, y]
4564
4564
  ), ve = V(
4565
- async ({ data: U, headers: D, body: A } = {}) => {
4565
+ async ({ data: U, headers: B, body: A } = {}) => {
4566
4566
  const j = w.current;
4567
4567
  if (j.length === 0)
4568
4568
  return null;
4569
4569
  const H = j[j.length - 1];
4570
- return B({
4570
+ return D({
4571
4571
  messages: H.role === "assistant" ? j.slice(0, -1) : j,
4572
- headers: D,
4572
+ headers: B,
4573
4573
  body: A,
4574
4574
  data: U
4575
4575
  });
4576
4576
  },
4577
- [B]
4577
+ [D]
4578
4578
  ), Pe = V(() => {
4579
4579
  P.current && (P.current.abort(), P.current = null);
4580
4580
  }, []), We = V(async () => {
4581
4581
  const U = w.current;
4582
- B({ messages: U }, "resume");
4583
- }, [B]), Me = V(
4582
+ D({ messages: U }, "resume");
4583
+ }, [D]), Me = V(
4584
4584
  (U) => {
4585
4585
  typeof U == "function" && (U = U(w.current));
4586
- const D = sr(U);
4587
- I(D, !1), w.current = D;
4586
+ const B = sr(U);
4587
+ I(B, !1), w.current = B;
4588
4588
  },
4589
4589
  [I]
4590
4590
  ), je = V(
@@ -4593,16 +4593,16 @@ function cd({
4593
4593
  },
4594
4594
  [O]
4595
4595
  ), [_e, K] = z(a), ne = V(
4596
- async (U, D = {}, A) => {
4596
+ async (U, B = {}, A) => {
4597
4597
  var j;
4598
- if ((j = U?.preventDefault) == null || j.call(U), !_e && !D.allowEmptySubmit)
4598
+ if ((j = U?.preventDefault) == null || j.call(U), !_e && !B.allowEmptySubmit)
4599
4599
  return;
4600
4600
  A && (q.current = {
4601
4601
  ...q.current,
4602
4602
  ...A
4603
4603
  });
4604
4604
  const H = await Ga(
4605
- D.experimental_attachments
4605
+ B.experimental_attachments
4606
4606
  ), me = {
4607
4607
  messages: w.current.concat({
4608
4608
  id: y(),
@@ -4612,22 +4612,22 @@ function cd({
4612
4612
  experimental_attachments: H.length > 0 ? H : void 0,
4613
4613
  parts: [{ type: "text", text: _e }]
4614
4614
  }),
4615
- headers: D.headers,
4616
- body: D.body,
4617
- data: D.data
4615
+ headers: B.headers,
4616
+ body: B.body,
4617
+ data: B.data
4618
4618
  };
4619
- B(me), K("");
4619
+ D(me), K("");
4620
4620
  },
4621
- [_e, y, B]
4621
+ [_e, y, D]
4622
4622
  ), ie = (U) => {
4623
4623
  K(U.target.value);
4624
4624
  }, ye = V(
4625
- ({ toolCallId: U, result: D }) => {
4625
+ ({ toolCallId: U, result: B }) => {
4626
4626
  const A = w.current;
4627
4627
  if (Sl({
4628
4628
  messages: A,
4629
4629
  toolCallId: U,
4630
- toolResult: D
4630
+ toolResult: B
4631
4631
  }), I(
4632
4632
  [
4633
4633
  ...A.slice(0, A.length - 1),
@@ -4637,9 +4637,9 @@ function cd({
4637
4637
  ), M === "submitted" || M === "streaming")
4638
4638
  return;
4639
4639
  const j = A[A.length - 1];
4640
- yn(j) && B({ messages: A });
4640
+ yn(j) && D({ messages: A });
4641
4641
  },
4642
- [I, M, B]
4642
+ [I, M, D]
4643
4643
  );
4644
4644
  return {
4645
4645
  messages: E ?? [],
@@ -4761,13 +4761,13 @@ const ss = ({
4761
4761
  CHANGELOGS: "changelogs",
4762
4762
  PREFERENCES: "preferences",
4763
4763
  USAGE: "usage"
4764
- }, qm = () => ct({
4764
+ }, Ym = () => ct({
4765
4765
  queryKey: [dt.CAPABILITIES],
4766
4766
  queryFn: async () => await ut({
4767
4767
  type: ze.GET_SERVER_CAPABILITIES,
4768
4768
  noAuth: !0
4769
4769
  })
4770
- }), Ym = () => ct({
4770
+ }), Qm = () => ct({
4771
4771
  queryKey: [dt.CHANGELOGS],
4772
4772
  queryFn: async () => await ut({
4773
4773
  type: ze.GET_CHANGELOGS,
@@ -4788,7 +4788,7 @@ const ss = ({
4788
4788
  type: ze.GET_USER_PREFERENCES,
4789
4789
  getAccessToken: t
4790
4790
  })
4791
- }), Qm = ({
4791
+ }), Xm = ({
4792
4792
  user: e,
4793
4793
  getAccessToken: t
4794
4794
  }) => ct({
@@ -4824,7 +4824,7 @@ const ss = ({
4824
4824
  type: ze.GET_CHATS,
4825
4825
  getAccessToken: s
4826
4826
  })
4827
- }), Xm = ({
4827
+ }), Zm = ({
4828
4828
  user: e,
4829
4829
  month: t,
4830
4830
  year: r = (/* @__PURE__ */ new Date()).getFullYear().toString(),
@@ -4878,23 +4878,24 @@ const ss = ({
4878
4878
  } catch (s) {
4879
4879
  return Promise.reject(s);
4880
4880
  }
4881
- }, dd = "z-20", ud = "z-10", hd = "user", qt = "assistant", na = "OpenAI", In = "Anthropic", Rn = "Google", md = "Perplexity", fd = na, pd = "claude-sonnet-4", gd = "claude-3", yd = "gpt-4", bd = "o3", vd = "o4", wd = "gemini", kd = "sonar", Ed = {
4881
+ }, dd = "z-20", ud = "z-10", hd = "user", qt = "assistant", na = "OpenAI", In = "Anthropic", Rn = "Google", md = "Perplexity", fd = na, pd = "claude-sonnet-4", gd = "claude-3", yd = "gpt-4", bd = "gpt-5", vd = "o3", wd = "o4", kd = "gemini", Ed = "sonar", _d = {
4882
4882
  [In]: [
4883
4883
  pd,
4884
4884
  gd
4885
4885
  ],
4886
4886
  [na]: [
4887
- yd,
4888
4887
  bd,
4889
- vd
4888
+ yd,
4889
+ vd,
4890
+ wd
4890
4891
  ],
4891
- [Rn]: [wd],
4892
- [md]: [kd]
4892
+ [Rn]: [kd],
4893
+ [md]: [Ed]
4893
4894
  }, An = {
4894
4895
  REASONING: "sassy:advanced:reasoning"
4895
- }, _d = "x-callisto-chat-id", Zm = (e) => {
4896
+ }, Sd = "x-callisto-chat-id", ef = (e) => {
4896
4897
  for (const [t, r] of Object.entries(
4897
- Ed
4898
+ _d
4898
4899
  ))
4899
4900
  if (r.some((a) => e.startsWith(a)))
4900
4901
  return t;
@@ -4936,7 +4937,7 @@ const ss = ({
4936
4937
  dispatch: () => {
4937
4938
  }
4938
4939
  });
4939
- var Sd = Object.defineProperty, Td = (e, t, r) => t in e ? Sd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ae = (e, t, r) => Td(e, typeof t != "symbol" ? t + "" : t, r);
4940
+ var Td = Object.defineProperty, xd = (e, t, r) => t in e ? Td(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ae = (e, t, r) => xd(e, typeof t != "symbol" ? t + "" : t, r);
4940
4941
  /*!
4941
4942
  @versini/auth-common v4.5.0
4942
4943
  © 2025 gizmette.com
@@ -4950,14 +4951,14 @@ try {
4950
4951
  });
4951
4952
  } catch {
4952
4953
  }
4953
- const ef = {
4954
+ const tf = {
4954
4955
  PASSKEY: "passkey"
4955
4956
  }, st = {
4956
4957
  ALG: "RS256",
4957
4958
  SCOPES_KEY: "scopes",
4958
4959
  SCOPE_KEY: "scope",
4959
4960
  ISSUER: "gizmette.com"
4960
- }, xd = `-----BEGIN PUBLIC KEY-----
4961
+ }, Cd = `-----BEGIN PUBLIC KEY-----
4961
4962
  MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsF6i3Jd9fY/3COqCw/m7
4962
4963
  w5PKyTYLGAI2I6SIIdpe6i6DOCbEkmDz7LdVsBqwNtVi8gvWYIj+8ol6rU3qu1v5
4963
4964
  i1Jd45GSK4kzkVdgCmQZbM5ak0KI99q5wsrAIzUd+LRJ2HRvWtr5IYdsIiXaQjle
@@ -4966,14 +4967,14 @@ l0haqjMk0UoNPPE8iYBWUHQJJE1Dqstj65d6Eh5g64Pao25y4cmYJbKjiblIGEkE
4966
4967
  sjqybA9mARAqh9k/eiIopecWSiffNQTwVQVd2I9ZH3BalhEXHlqFgrjz51kFqg81
4967
4968
  awIDAQAB
4968
4969
  -----END PUBLIC KEY-----`, Nt = new TextEncoder(), vt = new TextDecoder();
4969
- function Cd(...e) {
4970
+ function Id(...e) {
4970
4971
  const t = e.reduce((s, { length: n }) => s + n, 0), r = new Uint8Array(t);
4971
4972
  let a = 0;
4972
4973
  for (const s of e)
4973
4974
  r.set(s, a), a += s.length;
4974
4975
  return r;
4975
4976
  }
4976
- function Id(e) {
4977
+ function Rd(e) {
4977
4978
  if (Uint8Array.fromBase64)
4978
4979
  return Uint8Array.fromBase64(e);
4979
4980
  const t = atob(e), r = new Uint8Array(t.length);
@@ -4989,7 +4990,7 @@ function Ht(e) {
4989
4990
  let t = e;
4990
4991
  t instanceof Uint8Array && (t = vt.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "");
4991
4992
  try {
4992
- return Id(t);
4993
+ return Rd(t);
4993
4994
  } catch {
4994
4995
  throw new TypeError("The input to be decoded is not correctly encoded.");
4995
4996
  }
@@ -5019,12 +5020,12 @@ class Nn extends Fe {
5019
5020
  }
5020
5021
  }
5021
5022
  ae(Nn, "code", "ERR_JOSE_ALG_NOT_ALLOWED");
5022
- class De extends Fe {
5023
+ class Be extends Fe {
5023
5024
  constructor() {
5024
5025
  super(...arguments), ae(this, "code", "ERR_JOSE_NOT_SUPPORTED");
5025
5026
  }
5026
5027
  }
5027
- ae(De, "code", "ERR_JOSE_NOT_SUPPORTED");
5028
+ ae(Be, "code", "ERR_JOSE_NOT_SUPPORTED");
5028
5029
  class oe extends Fe {
5029
5030
  constructor() {
5030
5031
  super(...arguments), ae(this, "code", "ERR_JWS_INVALID");
@@ -5052,7 +5053,7 @@ function ht(e, t) {
5052
5053
  function pr(e) {
5053
5054
  return parseInt(e.name.slice(4), 10);
5054
5055
  }
5055
- function Rd(e) {
5056
+ function Ad(e) {
5056
5057
  switch (e) {
5057
5058
  case "ES256":
5058
5059
  return "P-256";
@@ -5064,11 +5065,11 @@ function Rd(e) {
5064
5065
  throw new Error("unreachable");
5065
5066
  }
5066
5067
  }
5067
- function Ad(e, t) {
5068
+ function Nd(e, t) {
5068
5069
  if (!e.usages.includes(t))
5069
5070
  throw new TypeError(`CryptoKey does not support this operation, its usages must include ${t}.`);
5070
5071
  }
5071
- function Nd(e, t, r) {
5072
+ function Od(e, t, r) {
5072
5073
  switch (t) {
5073
5074
  case "HS256":
5074
5075
  case "HS384":
@@ -5111,7 +5112,7 @@ function Nd(e, t, r) {
5111
5112
  case "ES512": {
5112
5113
  if (!ht(e.algorithm, "ECDSA"))
5113
5114
  throw Ie("ECDSA");
5114
- const a = Rd(t);
5115
+ const a = Ad(t);
5115
5116
  if (e.algorithm.namedCurve !== a)
5116
5117
  throw Ie(a, "algorithm.namedCurve");
5117
5118
  break;
@@ -5119,7 +5120,7 @@ function Nd(e, t, r) {
5119
5120
  default:
5120
5121
  throw new TypeError("CryptoKey does not support this operation");
5121
5122
  }
5122
- Ad(e, r);
5123
+ Nd(e, r);
5123
5124
  }
5124
5125
  function $n(e, t, ...r) {
5125
5126
  var a;
@@ -5129,7 +5130,7 @@ function $n(e, t, ...r) {
5129
5130
  } else r.length === 2 ? e += `one of type ${r[0]} or ${r[1]}.` : e += `of type ${r[0]}.`;
5130
5131
  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;
5131
5132
  }
5132
- const Od = (e, ...t) => $n("Key must be ", e, ...t);
5133
+ const $d = (e, ...t) => $n("Key must be ", e, ...t);
5133
5134
  function Pn(e, t, ...r) {
5134
5135
  return $n(`Key for the ${e} algorithm must be `, t, ...r);
5135
5136
  }
@@ -5139,7 +5140,7 @@ function Mn(e) {
5139
5140
  function Ln(e) {
5140
5141
  return e?.[Symbol.toStringTag] === "KeyObject";
5141
5142
  }
5142
- const Dn = (e) => Mn(e) || Ln(e), $d = (...e) => {
5143
+ const Bn = (e) => Mn(e) || Ln(e), Pd = (...e) => {
5143
5144
  const t = e.filter(Boolean);
5144
5145
  if (t.length === 0 || t.length === 1)
5145
5146
  return !0;
@@ -5158,11 +5159,11 @@ const Dn = (e) => Mn(e) || Ln(e), $d = (...e) => {
5158
5159
  }
5159
5160
  return !0;
5160
5161
  };
5161
- function Pd(e) {
5162
+ function Md(e) {
5162
5163
  return typeof e == "object" && e !== null;
5163
5164
  }
5164
5165
  const Yt = (e) => {
5165
- if (!Pd(e) || Object.prototype.toString.call(e) !== "[object Object]")
5166
+ if (!Md(e) || Object.prototype.toString.call(e) !== "[object Object]")
5166
5167
  return !1;
5167
5168
  if (Object.getPrototypeOf(e) === null)
5168
5169
  return !0;
@@ -5170,7 +5171,7 @@ const Yt = (e) => {
5170
5171
  for (; Object.getPrototypeOf(t) !== null; )
5171
5172
  t = Object.getPrototypeOf(t);
5172
5173
  return Object.getPrototypeOf(e) === t;
5173
- }, Md = (e, t) => {
5174
+ }, Ld = (e, t) => {
5174
5175
  if (e.startsWith("RS") || e.startsWith("PS")) {
5175
5176
  const { modulusLength: r } = t.algorithm;
5176
5177
  if (typeof r != "number" || r < 2048)
@@ -5183,7 +5184,7 @@ const Yt = (e) => {
5183
5184
  return !1;
5184
5185
  const s = e.subarray(a, a + t.length);
5185
5186
  return s.length !== t.length ? !1 : s.every((n, o) => n === t[o]) || Vt(e, t, a + 1);
5186
- }, Ld = (e) => {
5187
+ }, Bd = (e) => {
5187
5188
  switch (!0) {
5188
5189
  case Vt(e, [42, 134, 72, 206, 61, 3, 1, 7]):
5189
5190
  return "P-256";
@@ -5230,7 +5231,7 @@ const Yt = (e) => {
5230
5231
  case "ECDH-ES+A128KW":
5231
5232
  case "ECDH-ES+A192KW":
5232
5233
  case "ECDH-ES+A256KW": {
5233
- const l = Ld(c);
5234
+ const l = Bd(c);
5234
5235
  n = l != null && l.startsWith("P-") ? { name: "ECDH", namedCurve: l } : { name: "X25519" }, o = [];
5235
5236
  break;
5236
5237
  }
@@ -5239,11 +5240,11 @@ const Yt = (e) => {
5239
5240
  n = { name: "Ed25519" }, o = ["verify"];
5240
5241
  break;
5241
5242
  default:
5242
- throw new De('Invalid or unsupported "alg" (Algorithm) value');
5243
+ throw new Be('Invalid or unsupported "alg" (Algorithm) value');
5243
5244
  }
5244
5245
  return crypto.subtle.importKey(t, c, n, !0, o);
5245
- }, Bd = (e, t, r) => Dd(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
5246
- function Ud(e) {
5246
+ }, Ud = (e, t, r) => Dd(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
5247
+ function Hd(e) {
5247
5248
  let t, r;
5248
5249
  switch (e.kty) {
5249
5250
  case "RSA": {
@@ -5268,7 +5269,7 @@ function Ud(e) {
5268
5269
  }, r = e.d ? ["decrypt", "unwrapKey"] : ["encrypt", "wrapKey"];
5269
5270
  break;
5270
5271
  default:
5271
- throw new De('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
5272
+ throw new Be('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
5272
5273
  }
5273
5274
  break;
5274
5275
  }
@@ -5290,7 +5291,7 @@ function Ud(e) {
5290
5291
  t = { name: "ECDH", namedCurve: e.crv }, r = e.d ? ["deriveBits"] : [];
5291
5292
  break;
5292
5293
  default:
5293
- throw new De('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
5294
+ throw new Be('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
5294
5295
  }
5295
5296
  break;
5296
5297
  }
@@ -5307,27 +5308,27 @@ function Ud(e) {
5307
5308
  t = { name: e.crv }, r = e.d ? ["deriveBits"] : [];
5308
5309
  break;
5309
5310
  default:
5310
- throw new De('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
5311
+ throw new Be('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
5311
5312
  }
5312
5313
  break;
5313
5314
  }
5314
5315
  default:
5315
- throw new De('Invalid or unsupported JWK "kty" (Key Type) Parameter value');
5316
+ throw new Be('Invalid or unsupported JWK "kty" (Key Type) Parameter value');
5316
5317
  }
5317
5318
  return { algorithm: t, keyUsages: r };
5318
5319
  }
5319
- const Hd = async (e) => {
5320
+ const Vd = async (e) => {
5320
5321
  if (!e.alg)
5321
5322
  throw new TypeError('"alg" argument is required when "jwk.alg" is not present');
5322
- const { algorithm: t, keyUsages: r } = Ud(e), a = { ...e };
5323
+ const { algorithm: t, keyUsages: r } = Hd(e), a = { ...e };
5323
5324
  return delete a.alg, delete a.use, crypto.subtle.importKey("jwk", a, t, e.ext ?? !e.d, e.key_ops ?? r);
5324
5325
  };
5325
- async function Vd(e, t, r) {
5326
+ async function zd(e, t, r) {
5326
5327
  if (e.indexOf("-----BEGIN PUBLIC KEY-----") !== 0)
5327
5328
  throw new TypeError('"spki" must be SPKI formatted string');
5328
- return Bd(e, t);
5329
+ return Ud(e, t);
5329
5330
  }
5330
- const zd = (e, t, r, a, s) => {
5331
+ const Fd = (e, t, r, a, s) => {
5331
5332
  if (s.crit !== void 0 && a?.crit === void 0)
5332
5333
  throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');
5333
5334
  if (!a || a.crit === void 0)
@@ -5338,14 +5339,14 @@ const zd = (e, t, r, a, s) => {
5338
5339
  r !== void 0 ? n = new Map([...Object.entries(r), ...t.entries()]) : n = t;
5339
5340
  for (const o of a.crit) {
5340
5341
  if (!n.has(o))
5341
- throw new De(`Extension Header Parameter "${o}" is not recognized`);
5342
+ throw new Be(`Extension Header Parameter "${o}" is not recognized`);
5342
5343
  if (s[o] === void 0)
5343
5344
  throw new e(`Extension Header Parameter "${o}" is missing`);
5344
5345
  if (n.get(o) && a[o] === void 0)
5345
5346
  throw new e(`Extension Header Parameter "${o}" MUST be integrity protected`);
5346
5347
  }
5347
5348
  return new Set(a.crit);
5348
- }, Fd = (e, t) => {
5349
+ }, Wd = (e, t) => {
5349
5350
  if (t !== void 0 && (!Array.isArray(t) || t.some((r) => typeof r != "string")))
5350
5351
  throw new TypeError(`"${e}" option must be an array of strings`);
5351
5352
  if (t)
@@ -5354,27 +5355,27 @@ const zd = (e, t, r, a, s) => {
5354
5355
  function da(e) {
5355
5356
  return Yt(e) && typeof e.kty == "string";
5356
5357
  }
5357
- function Wd(e) {
5358
+ function jd(e) {
5358
5359
  return e.kty !== "oct" && typeof e.d == "string";
5359
5360
  }
5360
- function jd(e) {
5361
+ function Gd(e) {
5361
5362
  return e.kty !== "oct" && typeof e.d > "u";
5362
5363
  }
5363
- function Gd(e) {
5364
+ function Kd(e) {
5364
5365
  return e.kty === "oct" && typeof e.k == "string";
5365
5366
  }
5366
- let Be;
5367
+ let De;
5367
5368
  const ns = async (e, t, r, a = !1) => {
5368
- Be || (Be = /* @__PURE__ */ new WeakMap());
5369
- let s = Be.get(e);
5369
+ De || (De = /* @__PURE__ */ new WeakMap());
5370
+ let s = De.get(e);
5370
5371
  if (s != null && s[r])
5371
5372
  return s[r];
5372
- const n = await Hd({ ...t, alg: r });
5373
- return a && Object.freeze(e), s ? s[r] = n : Be.set(e, { [r]: n }), n;
5374
- }, Kd = (e, t) => {
5373
+ const n = await Vd({ ...t, alg: r });
5374
+ return a && Object.freeze(e), s ? s[r] = n : De.set(e, { [r]: n }), n;
5375
+ }, Jd = (e, t) => {
5375
5376
  var r;
5376
- Be || (Be = /* @__PURE__ */ new WeakMap());
5377
- let a = Be.get(e);
5377
+ De || (De = /* @__PURE__ */ new WeakMap());
5378
+ let a = De.get(e);
5378
5379
  if (a != null && a[t])
5379
5380
  return a[t];
5380
5381
  const s = e.type === "public", n = !!s;
@@ -5456,8 +5457,8 @@ const ns = async (e, t, r, a = !1) => {
5456
5457
  }
5457
5458
  if (!o)
5458
5459
  throw new TypeError("given KeyObject instance cannot be used for this algorithm");
5459
- return a ? a[t] = o : Be.set(e, { [t]: o }), o;
5460
- }, Jd = async (e, t) => {
5460
+ return a ? a[t] = o : De.set(e, { [t]: o }), o;
5461
+ }, qd = async (e, t) => {
5461
5462
  if (e instanceof Uint8Array || Mn(e))
5462
5463
  return e;
5463
5464
  if (Ln(e)) {
@@ -5465,7 +5466,7 @@ const ns = async (e, t, r, a = !1) => {
5465
5466
  return e.export();
5466
5467
  if ("toCryptoKey" in e && typeof e.toCryptoKey == "function")
5467
5468
  try {
5468
- return Kd(e, t);
5469
+ return Jd(e, t);
5469
5470
  } catch (a) {
5470
5471
  if (a instanceof TypeError)
5471
5472
  throw a;
@@ -5520,33 +5521,33 @@ const ns = async (e, t, r, a = !1) => {
5520
5521
  throw new TypeError(`Invalid key for this operation, its "key_ops" must include "${n}" when present`);
5521
5522
  }
5522
5523
  return !0;
5523
- }, qd = (e, t, r) => {
5524
+ }, Yd = (e, t, r) => {
5524
5525
  if (!(t instanceof Uint8Array)) {
5525
5526
  if (da(t)) {
5526
- if (Gd(t) && Vr(e, t, r))
5527
+ if (Kd(t) && Vr(e, t, r))
5527
5528
  return;
5528
5529
  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');
5529
5530
  }
5530
- if (!Dn(t))
5531
+ if (!Bn(t))
5531
5532
  throw new TypeError(Pn(e, t, "CryptoKey", "KeyObject", "JSON Web Key", "Uint8Array"));
5532
5533
  if (t.type !== "secret")
5533
5534
  throw new TypeError(`${tt(t)} instances for symmetric algorithms must be of type "secret"`);
5534
5535
  }
5535
- }, Yd = (e, t, r) => {
5536
+ }, Qd = (e, t, r) => {
5536
5537
  if (da(t))
5537
5538
  switch (r) {
5538
5539
  case "decrypt":
5539
5540
  case "sign":
5540
- if (Wd(t) && Vr(e, t, r))
5541
+ if (jd(t) && Vr(e, t, r))
5541
5542
  return;
5542
5543
  throw new TypeError("JSON Web Key for this operation be a private JWK");
5543
5544
  case "encrypt":
5544
5545
  case "verify":
5545
- if (jd(t) && Vr(e, t, r))
5546
+ if (Gd(t) && Vr(e, t, r))
5546
5547
  return;
5547
5548
  throw new TypeError("JSON Web Key for this operation be a public JWK");
5548
5549
  }
5549
- if (!Dn(t))
5550
+ if (!Bn(t))
5550
5551
  throw new TypeError(Pn(e, t, "CryptoKey", "KeyObject", "JSON Web Key"));
5551
5552
  if (t.type === "secret")
5552
5553
  throw new TypeError(`${tt(t)} instances for asymmetric algorithms must not be of type "secret"`);
@@ -5564,9 +5565,9 @@ const ns = async (e, t, r, a = !1) => {
5564
5565
  case "encrypt":
5565
5566
  throw new TypeError(`${tt(t)} instances for asymmetric algorithm encryption must be of type "public"`);
5566
5567
  }
5567
- }, Qd = (e, t, r) => {
5568
- e.startsWith("HS") || e === "dir" || e.startsWith("PBES2") || /^A(?:128|192|256)(?:GCM)?(?:KW)?$/.test(e) || /^A(?:128|192|256)CBC-HS(?:256|384|512)$/.test(e) ? qd(e, t, r) : Yd(e, t, r);
5569
- }, Xd = (e, t) => {
5568
+ }, Xd = (e, t, r) => {
5569
+ e.startsWith("HS") || e === "dir" || e.startsWith("PBES2") || /^A(?:128|192|256)(?:GCM)?(?:KW)?$/.test(e) || /^A(?:128|192|256)CBC-HS(?:256|384|512)$/.test(e) ? Yd(e, t, r) : Qd(e, t, r);
5570
+ }, Zd = (e, t) => {
5570
5571
  const r = `SHA-${e.slice(-3)}`;
5571
5572
  switch (e) {
5572
5573
  case "HS256":
@@ -5589,26 +5590,26 @@ const ns = async (e, t, r, a = !1) => {
5589
5590
  case "EdDSA":
5590
5591
  return { name: "Ed25519" };
5591
5592
  default:
5592
- throw new De(`alg ${e} is not supported either by JOSE or your javascript runtime`);
5593
+ throw new Be(`alg ${e} is not supported either by JOSE or your javascript runtime`);
5593
5594
  }
5594
- }, Zd = async (e, t, r) => {
5595
+ }, eu = async (e, t, r) => {
5595
5596
  if (t instanceof Uint8Array) {
5596
5597
  if (!e.startsWith("HS"))
5597
- throw new TypeError(Od(t, "CryptoKey", "KeyObject", "JSON Web Key"));
5598
+ throw new TypeError($d(t, "CryptoKey", "KeyObject", "JSON Web Key"));
5598
5599
  return crypto.subtle.importKey("raw", t, { hash: `SHA-${e.slice(-3)}`, name: "HMAC" }, !1, [r]);
5599
5600
  }
5600
- return Nd(t, e, r), t;
5601
- }, eu = async (e, t, r, a) => {
5602
- const s = await Zd(e, t, "verify");
5603
- Md(e, s);
5604
- const n = Xd(e, s.algorithm);
5601
+ return Od(t, e, r), t;
5602
+ }, tu = async (e, t, r, a) => {
5603
+ const s = await eu(e, t, "verify");
5604
+ Ld(e, s);
5605
+ const n = Zd(e, s.algorithm);
5605
5606
  try {
5606
5607
  return await crypto.subtle.verify(n, s, r, a);
5607
5608
  } catch {
5608
5609
  return !1;
5609
5610
  }
5610
5611
  };
5611
- async function tu(e, t, r) {
5612
+ async function ru(e, t, r) {
5612
5613
  if (!Yt(e))
5613
5614
  throw new oe("Flattened JWS must be an object");
5614
5615
  if (e.protected === void 0 && e.header === void 0)
@@ -5629,19 +5630,19 @@ async function tu(e, t, r) {
5629
5630
  } catch {
5630
5631
  throw new oe("JWS Protected Header is invalid");
5631
5632
  }
5632
- if (!$d(a, e.header))
5633
+ if (!Pd(a, e.header))
5633
5634
  throw new oe("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
5634
5635
  const s = {
5635
5636
  ...a,
5636
5637
  ...e.header
5637
- }, n = zd(oe, /* @__PURE__ */ new Map([["b64", !0]]), r?.crit, a, s);
5638
+ }, n = Fd(oe, /* @__PURE__ */ new Map([["b64", !0]]), r?.crit, a, s);
5638
5639
  let o = !0;
5639
5640
  if (n.has("b64") && (o = a.b64, typeof o != "boolean"))
5640
5641
  throw new oe('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
5641
5642
  const { alg: c } = s;
5642
5643
  if (typeof c != "string" || !c)
5643
5644
  throw new oe('JWS "alg" (Algorithm) Header Parameter missing or invalid');
5644
- const l = r && Fd("algorithms", r.algorithms);
5645
+ const l = r && Wd("algorithms", r.algorithms);
5645
5646
  if (l && !l.has(c))
5646
5647
  throw new Nn('"alg" (Algorithm) Header Parameter value not allowed');
5647
5648
  if (o) {
@@ -5650,16 +5651,16 @@ async function tu(e, t, r) {
5650
5651
  } else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
5651
5652
  throw new oe("JWS Payload must be a string or an Uint8Array instance");
5652
5653
  let d = !1;
5653
- typeof t == "function" && (t = await t(a, e), d = !0), Qd(c, t, "verify");
5654
- const m = Cd(Nt.encode(e.protected ?? ""), Nt.encode("."), typeof e.payload == "string" ? Nt.encode(e.payload) : e.payload);
5654
+ typeof t == "function" && (t = await t(a, e), d = !0), Xd(c, t, "verify");
5655
+ const m = Id(Nt.encode(e.protected ?? ""), Nt.encode("."), typeof e.payload == "string" ? Nt.encode(e.payload) : e.payload);
5655
5656
  let u;
5656
5657
  try {
5657
5658
  u = Ht(e.signature);
5658
5659
  } catch {
5659
5660
  throw new oe("Failed to base64url decode the signature");
5660
5661
  }
5661
- const h = await Jd(t, c);
5662
- if (!await eu(c, h, u, m))
5662
+ const h = await qd(t, c);
5663
+ if (!await tu(c, h, u, m))
5663
5664
  throw new On();
5664
5665
  let f;
5665
5666
  if (o)
@@ -5672,17 +5673,17 @@ async function tu(e, t, r) {
5672
5673
  const g = { payload: f };
5673
5674
  return e.protected !== void 0 && (g.protectedHeader = a), e.header !== void 0 && (g.unprotectedHeader = e.header), d ? { ...g, key: h } : g;
5674
5675
  }
5675
- async function ru(e, t, r) {
5676
+ async function au(e, t, r) {
5676
5677
  if (e instanceof Uint8Array && (e = vt.decode(e)), typeof e != "string")
5677
5678
  throw new oe("Compact JWS must be a string or Uint8Array");
5678
5679
  const { 0: a, 1: s, 2: n, length: o } = e.split(".");
5679
5680
  if (o !== 3)
5680
5681
  throw new oe("Invalid Compact JWS");
5681
- const c = await tu({ payload: s, protected: a, signature: n }, t, r), l = { payload: c.payload, protectedHeader: c.protectedHeader };
5682
+ const c = await ru({ payload: s, protected: a, signature: n }, t, r), l = { payload: c.payload, protectedHeader: c.protectedHeader };
5682
5683
  return typeof t == "function" ? { ...l, key: c.key } : l;
5683
5684
  }
5684
- const au = (e) => Math.floor(e.getTime() / 1e3), Bn = 60, Un = Bn * 60, ua = Un * 24, su = ua * 7, nu = ua * 365.25, ou = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, os = (e) => {
5685
- const t = ou.exec(e);
5685
+ const su = (e) => Math.floor(e.getTime() / 1e3), Dn = 60, Un = Dn * 60, ua = Un * 24, nu = ua * 7, ou = ua * 365.25, iu = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, os = (e) => {
5686
+ const t = iu.exec(e);
5686
5687
  if (!t || t[4] && t[1])
5687
5688
  throw new TypeError("Invalid time period format");
5688
5689
  const r = parseFloat(t[2]), a = t[3].toLowerCase();
@@ -5700,7 +5701,7 @@ const au = (e) => Math.floor(e.getTime() / 1e3), Bn = 60, Un = Bn * 60, ua = Un
5700
5701
  case "min":
5701
5702
  case "mins":
5702
5703
  case "m":
5703
- s = Math.round(r * Bn);
5704
+ s = Math.round(r * Dn);
5704
5705
  break;
5705
5706
  case "hour":
5706
5707
  case "hours":
@@ -5717,15 +5718,15 @@ const au = (e) => Math.floor(e.getTime() / 1e3), Bn = 60, Un = Bn * 60, ua = Un
5717
5718
  case "week":
5718
5719
  case "weeks":
5719
5720
  case "w":
5720
- s = Math.round(r * su);
5721
+ s = Math.round(r * nu);
5721
5722
  break;
5722
5723
  default:
5723
- s = Math.round(r * nu);
5724
+ s = Math.round(r * ou);
5724
5725
  break;
5725
5726
  }
5726
5727
  return t[1] === "-" || t[4] === "ago" ? -s : s;
5727
- }, is = (e) => e.toLowerCase().replace(/^application\//, ""), iu = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
5728
- function cu(e, t, r = {}) {
5728
+ }, is = (e) => e.toLowerCase().replace(/^application\//, ""), cu = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
5729
+ function lu(e, t, r = {}) {
5729
5730
  let a;
5730
5731
  try {
5731
5732
  a = JSON.parse(vt.decode(t));
@@ -5745,7 +5746,7 @@ function cu(e, t, r = {}) {
5745
5746
  throw new ke('unexpected "iss" claim value', a, "iss", "check_failed");
5746
5747
  if (c && a.sub !== c)
5747
5748
  throw new ke('unexpected "sub" claim value', a, "sub", "check_failed");
5748
- if (l && !iu(a.aud, typeof l == "string" ? [l] : l))
5749
+ if (l && !cu(a.aud, typeof l == "string" ? [l] : l))
5749
5750
  throw new ke('unexpected "aud" claim value', a, "aud", "check_failed");
5750
5751
  let u;
5751
5752
  switch (typeof r.clockTolerance) {
@@ -5761,7 +5762,7 @@ function cu(e, t, r = {}) {
5761
5762
  default:
5762
5763
  throw new TypeError("Invalid clockTolerance option type");
5763
5764
  }
5764
- const { currentDate: h } = r, f = au(h || /* @__PURE__ */ new Date());
5765
+ const { currentDate: h } = r, f = su(h || /* @__PURE__ */ new Date());
5765
5766
  if ((a.iat !== void 0 || d) && typeof a.iat != "number")
5766
5767
  throw new ke('"iat" claim must be a number', a, "iat", "invalid");
5767
5768
  if (a.nbf !== void 0) {
@@ -5785,29 +5786,29 @@ function cu(e, t, r = {}) {
5785
5786
  }
5786
5787
  return a;
5787
5788
  }
5788
- async function lu(e, t, r) {
5789
+ async function du(e, t, r) {
5789
5790
  var a;
5790
- const s = await ru(e, t, r);
5791
+ const s = await au(e, t, r);
5791
5792
  if ((a = s.protectedHeader.crit) != null && a.includes("b64") && s.protectedHeader.b64 === !1)
5792
5793
  throw new la("JWTs MUST NOT use unencoded payload");
5793
- const n = { payload: cu(s.protectedHeader, s.payload, r), protectedHeader: s.protectedHeader };
5794
+ const n = { payload: lu(s.protectedHeader, s.payload, r), protectedHeader: s.protectedHeader };
5794
5795
  return typeof t == "function" ? { ...n, key: s.key } : n;
5795
5796
  }
5796
- const du = async (e) => {
5797
+ const uu = async (e) => {
5797
5798
  try {
5798
- const t = st.ALG, r = await Vd(xd, t);
5799
- return await lu(e, r, {
5799
+ const t = st.ALG, r = await zd(Cd, t);
5800
+ return await du(e, r, {
5800
5801
  issuer: st.ISSUER
5801
5802
  });
5802
5803
  } catch {
5803
5804
  return;
5804
5805
  }
5805
- }, uu = [];
5806
+ }, hu = [];
5806
5807
  for (let e = 0; e < 256; ++e)
5807
- uu.push((e + 256).toString(16).slice(1));
5808
+ hu.push((e + 256).toString(16).slice(1));
5808
5809
  typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
5809
5810
  const Hn = async (e, t) => {
5810
- const r = await du(e);
5811
+ const r = await uu(e);
5811
5812
  if (!r || !r.payload)
5812
5813
  return !1;
5813
5814
  let a = [];
@@ -5820,8 +5821,8 @@ const Hn = async (e, t) => {
5820
5821
  return Array.isArray(t) ? t.every((s) => a.includes(s)) : Object.keys(t).some(
5821
5822
  (s) => t[s].every((n) => a.includes(n))
5822
5823
  );
5823
- }, hu = "av-tooltip", mu = "av-tooltip-arrow", cs = ["mousedown", "touchstart"];
5824
- function fu(e, t, r) {
5824
+ }, mu = "av-tooltip", fu = "av-tooltip-arrow", cs = ["mousedown", "touchstart"];
5825
+ function pu(e, t, r) {
5825
5826
  const a = R(null);
5826
5827
  return $(() => {
5827
5828
  const s = (n) => {
@@ -5842,7 +5843,7 @@ function fu(e, t, r) {
5842
5843
  };
5843
5844
  }, [e, r, t]), a;
5844
5845
  }
5845
- function pu(e, t) {
5846
+ function gu(e, t) {
5846
5847
  const [r, a] = z(!1), s = R(null), n = R(null), o = V(() => {
5847
5848
  a((l) => (!l && (!s.current || s.current === -1) && (s.current = window.setInterval(n.current, t)), !0));
5848
5849
  }, [t]), c = V(() => {
@@ -5850,42 +5851,42 @@ function pu(e, t) {
5850
5851
  }, []);
5851
5852
  return $(() => (n.current = e, r && o(), c), [e, r, o, c]), { start: o, stop: c, active: r };
5852
5853
  }
5853
- const Ot = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gu = () => p("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), ls = ({
5854
+ const Ot = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, yu = () => p("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), ls = ({
5854
5855
  mode: e
5855
5856
  }) => p({
5856
5857
  "bg-surface-darker": e === "dark" || e === "system",
5857
5858
  "bg-surface-light": e === "light" || e === "alt-system",
5858
5859
  "dark:bg-surface-light": e === "system",
5859
5860
  "dark:bg-surface-darker": e === "alt-system"
5860
- }), yu = ({
5861
+ }), bu = ({
5861
5862
  mode: e
5862
5863
  }) => p({
5863
5864
  "text-copy-light": e === "dark" || e === "system",
5864
5865
  "text-copy-dark": e === "light" || e === "alt-system",
5865
5866
  "dark:text-copy-dark": e === "system",
5866
5867
  "dark:text-copy-light": e === "alt-system"
5867
- }), bu = () => p("absolute", "size-2", "transform rotate-45"), vu = ({
5868
+ }), vu = () => p("absolute", "size-2", "transform rotate-45"), wu = ({
5868
5869
  mode: e,
5869
5870
  className: t,
5870
5871
  tooltipClassName: r,
5871
5872
  arrowClassName: a
5872
5873
  }) => {
5873
5874
  const s = p("relative inline-block", t), n = p(
5874
- hu,
5875
- gu(),
5875
+ mu,
5876
+ yu(),
5876
5877
  ls({ mode: e }),
5877
- yu({ mode: e }),
5878
+ bu({ mode: e }),
5878
5879
  r
5879
5880
  ), o = p(
5880
- mu,
5881
- bu(),
5881
+ fu,
5882
+ vu(),
5882
5883
  ls({ mode: e }),
5883
5884
  a
5884
5885
  );
5885
5886
  return { tooltip: n, arrow: o, wrapper: s };
5886
- }, wu = ({ delay: e = 300 }) => ({
5887
+ }, ku = ({ delay: e = 300 }) => ({
5887
5888
  animation: `av-tooltip-fade-in ${e}ms ease-in-out`
5888
- }), ku = 5e3, $e = ({
5889
+ }), Eu = 5e3, $e = ({
5889
5890
  trigger: e,
5890
5891
  label: t,
5891
5892
  placement: r = "top",
@@ -5895,23 +5896,23 @@ const Ot = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gu = (
5895
5896
  tooltipClassName: o,
5896
5897
  arrowClassName: c
5897
5898
  }) => {
5898
- const l = fu(() => {
5899
+ const l = pu(() => {
5899
5900
  y.stop(), g(!1);
5900
- }), d = R(null), m = R(null), [u, h] = z(!1), [f, g] = z(!1), y = pu(() => {
5901
+ }), d = R(null), m = R(null), [u, h] = z(!1), [f, g] = z(!1), y = gu(() => {
5901
5902
  g(!1);
5902
- }, ku), k = vu({
5903
+ }, Eu), k = wu({
5903
5904
  mode: a,
5904
5905
  className: n,
5905
5906
  tooltipClassName: o,
5906
5907
  arrowClassName: c
5907
- }), b = wu({ delay: s }), x = V(async () => {
5908
+ }), b = ku({ delay: s }), x = V(async () => {
5908
5909
  if (l.current && d.current && m.current) {
5909
5910
  const {
5910
5911
  x: v,
5911
5912
  y: _,
5912
5913
  middlewareData: E,
5913
5914
  placement: I
5914
- } = await Bo(l.current, d.current, {
5915
+ } = await Do(l.current, d.current, {
5915
5916
  placement: r,
5916
5917
  middleware: [
5917
5918
  Os(10),
@@ -5992,7 +5993,7 @@ try {
5992
5993
  });
5993
5994
  } catch {
5994
5995
  }
5995
- const Eu = ({
5996
+ const _u = ({
5996
5997
  className: e,
5997
5998
  onClick: t
5998
5999
  }) => /* @__PURE__ */ i(
@@ -6010,6 +6011,7 @@ const Eu = ({
6010
6011
  label: "Attach files",
6011
6012
  onClick: t,
6012
6013
  noBorder: !0,
6014
+ noBackground: !0,
6013
6015
  children: /* @__PURE__ */ i(li, { size: Te, monotone: !0 })
6014
6016
  }
6015
6017
  )
@@ -6023,7 +6025,7 @@ function Vn(e, t) {
6023
6025
  };
6024
6026
  }, [e, t]);
6025
6027
  }
6026
- const _u = ({
6028
+ const Su = ({
6027
6029
  className: e
6028
6030
  }) => {
6029
6031
  const { getAccessToken: t } = Ve(), {
@@ -6105,6 +6107,7 @@ const _u = ({
6105
6107
  xe,
6106
6108
  {
6107
6109
  noBorder: !0,
6110
+ noBackground: !0,
6108
6111
  mode: "dark",
6109
6112
  focusMode: "light",
6110
6113
  label: "New Chat",
@@ -6115,7 +6118,7 @@ const _u = ({
6115
6118
  )
6116
6119
  }
6117
6120
  );
6118
- }, ds = "av-messagebox", $t = "av-panel", us = "av-button", ha = "icon", zn = "button", zr = "link", Su = ({
6121
+ }, ds = "av-messagebox", $t = "av-panel", us = "av-button", ha = "icon", zn = "button", zr = "link", Tu = ({
6119
6122
  type: e,
6120
6123
  size: t,
6121
6124
  labelRight: r,
@@ -6151,7 +6154,7 @@ const _u = ({
6151
6154
  "h-12": t === "large" && n && (r || a)
6152
6155
  });
6153
6156
  }
6154
- }, Tu = ({
6157
+ }, xu = ({
6155
6158
  type: e,
6156
6159
  size: t,
6157
6160
  labelRight: r,
@@ -6174,7 +6177,7 @@ const _u = ({
6174
6177
  [o]: t === "large" && (r || a)
6175
6178
  });
6176
6179
  }
6177
- }, xu = ({
6180
+ }, Cu = ({
6178
6181
  mode: e,
6179
6182
  noBackground: t,
6180
6183
  truncate: r,
@@ -6210,7 +6213,7 @@ const _u = ({
6210
6213
  return p("not-prose text-copy-lighter", {
6211
6214
  truncate: r
6212
6215
  });
6213
- }, Cu = ({
6216
+ }, Iu = ({
6214
6217
  mode: e,
6215
6218
  noBackground: t,
6216
6219
  variant: r
@@ -6240,13 +6243,13 @@ const _u = ({
6240
6243
  if (r === "selected")
6241
6244
  return "bg-action-selected-dark";
6242
6245
  }
6243
- }, Iu = ({
6246
+ }, Ru = ({
6244
6247
  radius: e
6245
6248
  }) => p({
6246
6249
  "rounded-full": e === "large",
6247
6250
  "rounded-md": e === "medium",
6248
6251
  "rounded-xs": e === "small"
6249
- }), Ru = ({
6252
+ }), Au = ({
6250
6253
  mode: e,
6251
6254
  disabled: t,
6252
6255
  variant: r
@@ -6284,7 +6287,7 @@ const _u = ({
6284
6287
  });
6285
6288
  if (r === "selected")
6286
6289
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
6287
- }, Au = ({
6290
+ }, Nu = ({
6288
6291
  mode: e,
6289
6292
  disabled: t,
6290
6293
  variant: r
@@ -6322,7 +6325,7 @@ const _u = ({
6322
6325
  });
6323
6326
  if (r === "selected")
6324
6327
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
6325
- }, Nu = ({
6328
+ }, Ou = ({
6326
6329
  mode: e,
6327
6330
  noBorder: t,
6328
6331
  variant: r
@@ -6352,14 +6355,14 @@ const _u = ({
6352
6355
  });
6353
6356
  if (r === "selected")
6354
6357
  return "border border-border-selected-dark";
6355
- }, Ou = ({
6358
+ }, $u = ({
6356
6359
  focusMode: e
6357
6360
  }) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
6358
6361
  "focus:outline-focus-dark": e === "dark",
6359
6362
  "focus:outline-focus-light": e === "light",
6360
6363
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
6361
6364
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
6362
- }), $u = ({
6365
+ }), Pu = ({
6363
6366
  mode: e,
6364
6367
  raw: t,
6365
6368
  iconClassName: r,
@@ -6386,11 +6389,11 @@ const _u = ({
6386
6389
  } : a === "selected" && (s = {
6387
6390
  "text-copy-lighter": !0
6388
6391
  }), p(s, r);
6389
- }, Pu = ({
6392
+ }, Mu = ({
6390
6393
  animated: e
6391
6394
  }) => p({
6392
6395
  "transition-opacity duration-300 ease-in-out": e
6393
- }), Mu = ({
6396
+ }), Lu = ({
6394
6397
  type: e,
6395
6398
  className: t,
6396
6399
  raw: r,
@@ -6410,15 +6413,15 @@ const _u = ({
6410
6413
  animated: k
6411
6414
  }) => (h || (h = "primary"), r ? p(us, t) : p(
6412
6415
  us,
6413
- xu({
6416
+ Cu({
6414
6417
  mode: a,
6415
6418
  variant: h,
6416
6419
  noBackground: u,
6417
6420
  truncate: f
6418
6421
  }),
6419
- Cu({ mode: a, noBackground: u, variant: h }),
6420
- Iu({ radius: y }),
6421
- Su({
6422
+ Iu({ mode: a, noBackground: u, variant: h }),
6423
+ Ru({ radius: y }),
6424
+ Tu({
6422
6425
  type: e,
6423
6426
  size: c,
6424
6427
  labelRight: d,
@@ -6426,11 +6429,11 @@ const _u = ({
6426
6429
  align: g,
6427
6430
  animated: k
6428
6431
  }),
6429
- Tu({ type: e, size: c, labelRight: d, labelLeft: m }),
6430
- Nu({ mode: a, variant: h, noBorder: l }),
6431
- Ou({ focusMode: s }),
6432
- Ru({ mode: a, variant: h, disabled: n }),
6432
+ xu({ type: e, size: c, labelRight: d, labelLeft: m }),
6433
+ Ou({ mode: a, variant: h, noBorder: l }),
6434
+ $u({ focusMode: s }),
6433
6435
  Au({ mode: a, variant: h, disabled: n }),
6436
+ Nu({ mode: a, variant: h, disabled: n }),
6434
6437
  {
6435
6438
  "w-full": o,
6436
6439
  "disabled:cursor-not-allowed disabled:opacity-50": n
@@ -6439,7 +6442,7 @@ const _u = ({
6439
6442
  "transition-[width] duration-300 ease-in": k
6440
6443
  }),
6441
6444
  t
6442
- )), Lu = (e, t, r) => {
6445
+ )), Bu = (e, t, r) => {
6443
6446
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof e?.currentTarget?.focus == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
6444
6447
  }, Fn = Z.forwardRef((e, t) => {
6445
6448
  const { onClick: r, noInternalClick: a = !1, ...s } = e;
@@ -6448,7 +6451,7 @@ const _u = ({
6448
6451
  {
6449
6452
  ref: t,
6450
6453
  onClick: (n) => {
6451
- Lu(n, a, r);
6454
+ Bu(n, a, r);
6452
6455
  },
6453
6456
  ...s
6454
6457
  }
@@ -6461,7 +6464,7 @@ function Du() {
6461
6464
  e.current = !1;
6462
6465
  }), []), V(() => e.current, []);
6463
6466
  }
6464
- function Bu(e) {
6467
+ function Uu(e) {
6465
6468
  return he(() => e.every((t) => t == null) ? () => {
6466
6469
  } : (t) => {
6467
6470
  e.forEach((r) => {
@@ -6469,7 +6472,7 @@ function Bu(e) {
6469
6472
  });
6470
6473
  }, [...e]);
6471
6474
  }
6472
- const Uu = {
6475
+ const Hu = {
6473
6476
  x: 0,
6474
6477
  y: 0,
6475
6478
  width: 0,
@@ -6480,7 +6483,7 @@ const Uu = {
6480
6483
  right: 0
6481
6484
  };
6482
6485
  function gr(e) {
6483
- const t = Du(), r = R(0), a = R(null), [s, n] = z(Uu), o = he(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
6486
+ const t = Du(), r = R(0), a = R(null), [s, n] = z(Hu), o = he(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
6484
6487
  const l = c[0];
6485
6488
  l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
6486
6489
  a.current && t() && n(l.contentRect);
@@ -6497,14 +6500,14 @@ const Pt = {
6497
6500
  // w-8
6498
6501
  large: 48
6499
6502
  // w-12
6500
- }, Hu = {
6503
+ }, Vu = {
6501
6504
  small: 16,
6502
6505
  // px-2 x 2
6503
6506
  medium: 24,
6504
6507
  // px-3 x 2
6505
6508
  large: 32
6506
6509
  // px-4 x 2
6507
- }, Vu = 2, zu = 300, ma = Z.forwardRef(
6510
+ }, zu = 2, Fu = 300, ma = Z.forwardRef(
6508
6511
  ({
6509
6512
  children: e,
6510
6513
  disabled: t = !1,
@@ -6528,7 +6531,7 @@ const Pt = {
6528
6531
  animated: S = !1,
6529
6532
  ...N
6530
6533
  }, C) => {
6531
- const v = Mu({
6534
+ const v = Lu({
6532
6535
  type: ha,
6533
6536
  mode: r,
6534
6537
  focusMode: a,
@@ -6545,15 +6548,15 @@ const Pt = {
6545
6548
  radius: k,
6546
6549
  variant: b,
6547
6550
  animated: S
6548
- }), _ = $u({ mode: r, raw: c, iconClassName: x, variant: b }), E = Pu({ animated: S }), I = "flex items-center justify-center relative w-full h-full overflow-hidden", [w, F] = gr(), [O, W] = gr(), [M, J] = gr(), Q = R(0), L = R(null), P = R(null), q = Bu([C, L]);
6551
+ }), _ = Pu({ mode: r, raw: c, iconClassName: x, variant: b }), E = Mu({ animated: S }), I = "flex items-center justify-center relative w-full h-full overflow-hidden", [w, F] = gr(), [O, W] = gr(), [M, J] = gr(), Q = R(0), L = R(null), P = R(null), q = Uu([C, L]);
6549
6552
  return Oe(() => {
6550
- M && M.current && S && (Q.current = J.width + Hu[u] + (l ? 0 : Vu), L.current && !L.current.style.width && (L.current.style.width = `${Pt[u]}px`));
6553
+ M && M.current && S && (Q.current = J.width + Vu[u] + (l ? 0 : zu), L.current && !L.current.style.width && (L.current.style.width = `${Pt[u]}px`));
6551
6554
  }, [J, M, u, l, S]), Oe(() => {
6552
6555
  if (L && L.current && S) {
6553
- let B = Pt[u];
6554
- h && w && F.width > 0 ? B = F.width + Q.current : f && O && W.width > 0 && (B = W.width + Q.current), P.current && clearTimeout(P.current), B !== parseInt(L.current.style.width || "0", 10) && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"), L.current.style.width = `${B}px`, B > Pt[u] && (P.current = setTimeout(() => {
6556
+ let D = Pt[u];
6557
+ h && w && F.width > 0 ? D = F.width + Q.current : f && O && W.width > 0 && (D = W.width + Q.current), P.current && clearTimeout(P.current), D !== parseInt(L.current.style.width || "0", 10) && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"), L.current.style.width = `${D}px`, D > Pt[u] && (P.current = setTimeout(() => {
6555
6558
  w.current && h && (w.current.style.opacity = "1"), O.current && f && (O.current.style.opacity = "1"), P.current = null;
6556
- }, zu * 0.8))), B === Pt[u] && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"));
6559
+ }, Fu * 0.8))), D === Pt[u] && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"));
6557
6560
  }
6558
6561
  }, [
6559
6562
  F,
@@ -6630,7 +6633,7 @@ try {
6630
6633
  });
6631
6634
  } catch {
6632
6635
  }
6633
- const Fu = Z.forwardRef(
6636
+ const Wu = Z.forwardRef(
6634
6637
  ({
6635
6638
  children: e,
6636
6639
  mode: t = "system",
@@ -6668,8 +6671,8 @@ const Fu = Z.forwardRef(
6668
6671
  ) });
6669
6672
  }
6670
6673
  );
6671
- Fu.displayName = "ButtonSort";
6672
- const Wu = ({
6674
+ Wu.displayName = "ButtonSort";
6675
+ const ju = ({
6673
6676
  children: e,
6674
6677
  fill: t,
6675
6678
  viewBox: r,
@@ -6712,14 +6715,14 @@ try {
6712
6715
  });
6713
6716
  } catch {
6714
6717
  }
6715
- const ju = ({
6718
+ const Gu = ({
6716
6719
  className: e,
6717
6720
  viewBox: t,
6718
6721
  title: r,
6719
6722
  monotone: a,
6720
6723
  ...s
6721
6724
  }) => /* @__PURE__ */ i(
6722
- Wu,
6725
+ ju,
6723
6726
  {
6724
6727
  defaultViewBox: "0 0 384 512",
6725
6728
  size: "size-5",
@@ -6750,15 +6753,15 @@ try {
6750
6753
  } catch {
6751
6754
  }
6752
6755
  const Wn = Y.createContext(null);
6753
- function Gu({
6756
+ function Ku({
6754
6757
  initialOpen: e = !1,
6755
6758
  open: t,
6756
6759
  onOpenChange: r
6757
6760
  } = {}) {
6758
- const [a, s] = Y.useState(e), [n, o] = Y.useState(), [c, l] = Y.useState(), d = t ?? a, m = r ?? s, u = Ds({
6761
+ const [a, s] = Y.useState(e), [n, o] = Y.useState(), [c, l] = Y.useState(), d = t ?? a, m = r ?? s, u = Bs({
6759
6762
  open: d,
6760
6763
  onOpenChange: m
6761
- }), h = u.context, f = Bs(h, {
6764
+ }), h = u.context, f = Ds(h, {
6762
6765
  enabled: t == null
6763
6766
  }), g = Us(h, {
6764
6767
  outsidePress: !1,
@@ -6784,14 +6787,14 @@ const Zt = () => {
6784
6787
  throw new Error("Modal components must be wrapped in <Modal />");
6785
6788
  return e;
6786
6789
  };
6787
- function Ku({
6790
+ function Ju({
6788
6791
  children: e,
6789
6792
  ...t
6790
6793
  }) {
6791
- const r = Gu(t);
6794
+ const r = Ku(t);
6792
6795
  return /* @__PURE__ */ i(Wn.Provider, { value: r, children: e });
6793
6796
  }
6794
- const Ju = Y.forwardRef(function(e, t) {
6797
+ const qu = Y.forwardRef(function(e, t) {
6795
6798
  const { context: r, ...a } = Zt(), s = Jr([a.refs.setFloating, t]);
6796
6799
  if (!r.open)
6797
6800
  return null;
@@ -6809,13 +6812,13 @@ const Ju = Y.forwardRef(function(e, t) {
6809
6812
  children: o.children
6810
6813
  }
6811
6814
  ) }) }) });
6812
- }), qu = Y.forwardRef(function({ children: e, ...t }, r) {
6815
+ }), Yu = Y.forwardRef(function({ children: e, ...t }, r) {
6813
6816
  const { setLabelId: a } = Zt(), s = Kr();
6814
6817
  return Y.useLayoutEffect(() => (a(s), () => a(void 0)), [s, a]), /* @__PURE__ */ i("h1", { ...t, ref: r, id: s, children: e });
6815
- }), Yu = Y.forwardRef(function({ children: e, ...t }, r) {
6818
+ }), Qu = Y.forwardRef(function({ children: e, ...t }, r) {
6816
6819
  const { setDescriptionId: a } = Zt(), s = Kr();
6817
6820
  return Y.useLayoutEffect(() => (a(s), () => a(void 0)), [s, a]), /* @__PURE__ */ i("div", { ...t, ref: r, id: s, children: e });
6818
- }), Qu = Y.forwardRef(function(e, t) {
6821
+ }), Xu = Y.forwardRef(function(e, t) {
6819
6822
  const { setOpen: r } = Zt(), { trigger: a, className: s, ...n } = e, o = Y.useCallback(() => r(!1), [r]);
6820
6823
  return /* @__PURE__ */ i("div", { className: s, children: Y.cloneElement(a, {
6821
6824
  ref: t,
@@ -6836,7 +6839,7 @@ try {
6836
6839
  });
6837
6840
  } catch {
6838
6841
  }
6839
- const Ke = "panel", Mt = "messagebox", Xu = ({
6842
+ const Ke = "panel", Mt = "messagebox", Zu = ({
6840
6843
  className: e,
6841
6844
  kind: t,
6842
6845
  borderMode: r,
@@ -6861,7 +6864,7 @@ const Ke = "panel", Mt = "messagebox", Xu = ({
6861
6864
  footer: "flex grow flex-col sm:p-4 p-2",
6862
6865
  header: "sm:p-4 mb-0 p-2",
6863
6866
  close: "sm:p-4 p-2"
6864
- }), Zu = "slide", ms = "fade", eh = ({
6867
+ }), eh = "slide", ms = "fade", th = ({
6865
6868
  open: e,
6866
6869
  onOpenChange: t,
6867
6870
  title: r,
@@ -6871,14 +6874,14 @@ const Ke = "panel", Mt = "messagebox", Xu = ({
6871
6874
  kind: o = Ke,
6872
6875
  className: c,
6873
6876
  animation: l = !1,
6874
- animationType: d = Zu,
6877
+ animationType: d = eh,
6875
6878
  maxWidth: m = "medium"
6876
6879
  }) => {
6877
6880
  const u = R(""), [h, f] = z(
6878
6881
  l ? d === ms ? { opacity: 0 } : {
6879
6882
  transform: "translateY(-100vh)"
6880
6883
  } : {}
6881
- ), g = Xu({
6884
+ ), g = Zu({
6882
6885
  className: c,
6883
6886
  kind: o,
6884
6887
  borderMode: n,
@@ -6903,10 +6906,10 @@ const Ke = "panel", Mt = "messagebox", Xu = ({
6903
6906
  }, 100);
6904
6907
  return () => clearTimeout(y);
6905
6908
  }
6906
- }, [e, l, d]), /* @__PURE__ */ i(ue, { children: e && /* @__PURE__ */ i(Ku, { open: e, onOpenChange: t, children: /* @__PURE__ */ T(Ju, { className: g.main, style: h, children: [
6909
+ }, [e, l, d]), /* @__PURE__ */ i(ue, { children: e && /* @__PURE__ */ i(Ju, { open: e, onOpenChange: t, children: /* @__PURE__ */ T(qu, { className: g.main, style: h, children: [
6907
6910
  /* @__PURE__ */ T("div", { className: "flex flex-row-reverse items-center justify-between", children: [
6908
6911
  /* @__PURE__ */ i(
6909
- Qu,
6912
+ Xu,
6910
6913
  {
6911
6914
  className: g.close,
6912
6915
  trigger: /* @__PURE__ */ i(
@@ -6916,14 +6919,14 @@ const Ke = "panel", Mt = "messagebox", Xu = ({
6916
6919
  focusMode: "light",
6917
6920
  noBorder: !0,
6918
6921
  label: "Close",
6919
- children: /* @__PURE__ */ i(ju, { monotone: !0 })
6922
+ children: /* @__PURE__ */ i(Gu, { monotone: !0 })
6920
6923
  }
6921
6924
  )
6922
6925
  }
6923
6926
  ),
6924
- /* @__PURE__ */ i(qu, { className: g.header, children: r })
6927
+ /* @__PURE__ */ i(Yu, { className: g.header, children: r })
6925
6928
  ] }),
6926
- /* @__PURE__ */ i(Yu, { className: g.content, children: a }),
6929
+ /* @__PURE__ */ i(Qu, { className: g.content, children: a }),
6927
6930
  s && /* @__PURE__ */ i("div", { className: g.footer, children: s })
6928
6931
  ] }) }) });
6929
6932
  };
@@ -6949,7 +6952,7 @@ const Ye = ({
6949
6952
  noCancelAction: n = !1,
6950
6953
  primaryActionVariant: o = "danger"
6951
6954
  }) => /* @__PURE__ */ i(
6952
- eh,
6955
+ th,
6953
6956
  {
6954
6957
  kind: "messagebox",
6955
6958
  open: e,
@@ -7055,6 +7058,7 @@ const Ye = ({
7055
7058
  xe,
7056
7059
  {
7057
7060
  noBorder: !0,
7061
+ noBackground: !t,
7058
7062
  animated: !0,
7059
7063
  mode: "dark",
7060
7064
  focusMode: "light",
@@ -7103,7 +7107,7 @@ const Ye = ({
7103
7107
  focusMode: o = "system",
7104
7108
  ...c
7105
7109
  }, l) => {
7106
- const [d, m] = z(!1), [u, h] = z(!1), [f, g] = z(null), y = R([]), k = R([]), b = X(Fr), x = zs(), S = zo(), N = Fs(), { floatingStyles: C, refs: v, context: _ } = Ds({
7110
+ const [d, m] = z(!1), [u, h] = z(!1), [f, g] = z(null), y = R([]), k = R([]), b = X(Fr), x = zs(), S = zo(), N = Fs(), { floatingStyles: C, refs: v, context: _ } = Bs({
7107
7111
  nodeId: S,
7108
7112
  open: d,
7109
7113
  onOpenChange: (q) => {
@@ -7113,7 +7117,7 @@ const Ye = ({
7113
7117
  strategy: "fixed",
7114
7118
  middleware: [Os({ mainAxis: 10 }), $s(), Ps()],
7115
7119
  whileElementsMounted: Fo
7116
- }), E = Bs(_, {
7120
+ }), E = Ds(_, {
7117
7121
  event: "mousedown",
7118
7122
  toggle: !0,
7119
7123
  ignoreMouse: !1
@@ -7195,7 +7199,7 @@ const Ye = ({
7195
7199
  ), er = As((e, t) => /* @__PURE__ */ i(Vo, { children: /* @__PURE__ */ i(Gn, { ...e, ref: t }) }));
7196
7200
  er.displayName = "Menu";
7197
7201
  Gn.displayName = "MenuComponent";
7198
- const th = ({
7202
+ const rh = ({
7199
7203
  children: e,
7200
7204
  fill: t,
7201
7205
  viewBox: r,
@@ -7238,14 +7242,14 @@ try {
7238
7242
  });
7239
7243
  } catch {
7240
7244
  }
7241
- const rh = ({
7245
+ const ah = ({
7242
7246
  className: e,
7243
7247
  viewBox: t,
7244
7248
  title: r,
7245
7249
  monotone: a,
7246
7250
  ...s
7247
7251
  }) => /* @__PURE__ */ T(
7248
- th,
7252
+ rh,
7249
7253
  {
7250
7254
  defaultViewBox: "0 0 448 512",
7251
7255
  size: "size-5",
@@ -7330,7 +7334,7 @@ const Re = Y.forwardRef(
7330
7334
  }
7331
7335
  }),
7332
7336
  children: [
7333
- o && /* @__PURE__ */ i(rh, { className: "mr-2", size: "size-4" }),
7337
+ o && /* @__PURE__ */ i(ah, { className: "mr-2", size: "size-4" }),
7334
7338
  r,
7335
7339
  e && /* @__PURE__ */ i("span", { className: d, children: e })
7336
7340
  ]
@@ -7339,7 +7343,7 @@ const Re = Y.forwardRef(
7339
7343
  }
7340
7344
  );
7341
7345
  Re.displayName = "MenuItem";
7342
- const ah = ({ className: e, ...t }) => {
7346
+ const sh = ({ className: e, ...t }) => {
7343
7347
  const r = p(e, "my-1 border-t border-border-medium");
7344
7348
  return /* @__PURE__ */ i("div", { className: r, ...t });
7345
7349
  }, Kn = ({
@@ -7365,12 +7369,12 @@ try {
7365
7369
  });
7366
7370
  } catch {
7367
7371
  }
7368
- const sh = (e) => {
7372
+ const nh = (e) => {
7369
7373
  for (let t = 0; t < e.length; t++)
7370
7374
  if (e[t].enabled)
7371
7375
  return !0;
7372
7376
  return !1;
7373
- }, nh = ({
7377
+ }, oh = ({
7374
7378
  className: e,
7375
7379
  defaultPlacement: t = "top-start"
7376
7380
  }) => {
@@ -7389,12 +7393,21 @@ const sh = (e) => {
7389
7393
  prompt: g
7390
7394
  }
7391
7395
  });
7392
- }, u = d && l && l.tags && sh(l.tags), h = /* @__PURE__ */ T(
7396
+ }, u = d && l && l.tags && nh(l.tags), h = /* @__PURE__ */ T(
7393
7397
  er,
7394
7398
  {
7395
7399
  mode: "dark",
7396
7400
  focusMode: "light",
7397
- trigger: /* @__PURE__ */ i(xe, { noBorder: !0, label: "Prompts", disabled: !u, children: /* @__PURE__ */ i(hi, { size: Te }) }),
7401
+ trigger: /* @__PURE__ */ i(
7402
+ xe,
7403
+ {
7404
+ noBorder: !0,
7405
+ noBackground: !0,
7406
+ label: "Prompts",
7407
+ disabled: !u,
7408
+ children: /* @__PURE__ */ i(hi, { size: Te })
7409
+ }
7410
+ ),
7398
7411
  defaultPlacement: t,
7399
7412
  children: [
7400
7413
  /* @__PURE__ */ i(Kn, { children: "Prompts" }),
@@ -7505,6 +7518,7 @@ const sh = (e) => {
7505
7518
  {
7506
7519
  noBorder: !0,
7507
7520
  animated: !0,
7521
+ noBackground: !t,
7508
7522
  mode: "dark",
7509
7523
  focusMode: "light",
7510
7524
  label: "Reasoning Chat",
@@ -7521,7 +7535,7 @@ const sh = (e) => {
7521
7535
  ] });
7522
7536
  };
7523
7537
  let yr = null, br = null;
7524
- const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = async () => (br || (br = import("./index.DOg0VpsL.js").then((e) => e.utilities)), br), oh = async () => {
7538
+ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = async () => (br || (br = import("./index.D4EO-rWf.js").then((e) => e.utilities)), br), ih = async () => {
7525
7539
  try {
7526
7540
  await Promise.all([qn(), Yn()]);
7527
7541
  } catch {
@@ -7542,7 +7556,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
7542
7556
  }, 100);
7543
7557
  } catch {
7544
7558
  }
7545
- }, Xn = (e, t) => Qn(e, "success", t), sf = (e, t) => Qn(e, "error", t), Zn = ({
7559
+ }, Xn = (e, t) => Qn(e, "success", t), nf = (e, t) => Qn(e, "error", t), Zn = ({
7546
7560
  className: e
7547
7561
  }) => {
7548
7562
  const { user: t, getAccessToken: r } = Ve(), {
@@ -7616,6 +7630,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
7616
7630
  xe,
7617
7631
  {
7618
7632
  noBorder: !0,
7633
+ noBackground: !0,
7619
7634
  mode: "dark",
7620
7635
  focusMode: "light",
7621
7636
  label: "Save Private Chat",
@@ -7626,7 +7641,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
7626
7641
  }
7627
7642
  )
7628
7643
  ] });
7629
- }, ih = ({
7644
+ }, ch = ({
7630
7645
  className: e
7631
7646
  }) => {
7632
7647
  const {
@@ -7654,7 +7669,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
7654
7669
  )
7655
7670
  }
7656
7671
  );
7657
- }, ch = [".pdf", ".txt"], lh = [
7672
+ }, lh = [".pdf", ".txt"], dh = [
7658
7673
  ".js",
7659
7674
  ".cjs",
7660
7675
  ".mjs",
@@ -7669,30 +7684,30 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
7669
7684
  ".json",
7670
7685
  ".md"
7671
7686
  ], vr = [
7672
- ...ch,
7673
- ...lh
7674
- ], Wr = 400 * 1024, dh = "text/plain", uh = () => p(
7687
+ ...lh,
7688
+ ...dh
7689
+ ], Wr = 400 * 1024, uh = "text/plain", hh = () => p(
7675
7690
  "relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
7676
- ), ps = () => p("bg-surface-darker"), hh = () => p("text-copy-lighter caret-copy-light"), mh = () => p(
7691
+ ), ps = () => p("bg-surface-darker"), mh = () => p("text-copy-lighter caret-copy-light"), fh = () => p(
7677
7692
  "has-[.av-prompt-editable:focus]:outline",
7678
7693
  "has-[.av-prompt-editable:focus]:outline-2",
7679
7694
  "has-[.av-prompt-editable:focus]:outline-offset-2",
7680
7695
  "has-[.av-prompt-editable:focus]:outline-focus-light"
7681
- ), fh = () => p(
7696
+ ), ph = () => p(
7682
7697
  "peer",
7683
7698
  "text-base resize-none overflow-hidden w-full text-inherit outline-none",
7684
7699
  "h-6 pr-2 pl-4"
7685
- ), ph = ({ className: e }) => {
7700
+ ), gh = ({ className: e }) => {
7686
7701
  const t = p(
7687
7702
  _o,
7688
- uh(),
7689
- ps(),
7690
7703
  hh(),
7704
+ ps(),
7691
7705
  mh(),
7706
+ fh(),
7692
7707
  e
7693
7708
  ), r = p(
7694
7709
  So,
7695
- fh(),
7710
+ ph(),
7696
7711
  ps()
7697
7712
  );
7698
7713
  return {
@@ -7704,15 +7719,15 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
7704
7719
  return "0 Bytes";
7705
7720
  const t = 1024, r = ["Bytes", "KB", "MB", "GB"], a = Math.floor(Math.log(e) / Math.log(t));
7706
7721
  return parseFloat((e / Math.pow(t, a)).toFixed(2)) + " " + r[a];
7707
- }, eo = (e) => e.reduce((t, r) => t + r.size, 0), gh = (e) => e.type ? e : new File(
7722
+ }, eo = (e) => e.reduce((t, r) => t + r.size, 0), yh = (e) => e.type ? e : new File(
7708
7723
  [e],
7709
7724
  // Use the original file content
7710
7725
  e.name,
7711
7726
  {
7712
- type: dh,
7727
+ type: uh,
7713
7728
  lastModified: e.lastModified
7714
7729
  }
7715
- ), yh = ({
7730
+ ), bh = ({
7716
7731
  files: e,
7717
7732
  clearFile: t
7718
7733
  }) => e && e.length > 0 && /* @__PURE__ */ T("div", { className: "px-4 py-2", children: [
@@ -7751,9 +7766,9 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
7751
7766
  " ",
7752
7767
  zt(Wr)
7753
7768
  ] })
7754
- ] }), to = 24, bh = 500, ro = 2, vh = 5, wh = to * ro, gs = vh * to, kh = "ready", Eh = "streaming", _h = "error", Sh = "submitted", Lt = (e) => {
7755
- e.current && (e.current.style.height = `${wh}px`);
7756
- }, Th = () => {
7769
+ ] }), to = 24, vh = 500, ro = 2, wh = 5, kh = to * ro, gs = wh * to, Eh = "ready", _h = "streaming", Sh = "error", Th = "submitted", Lt = (e) => {
7770
+ e.current && (e.current.style.height = `${kh}px`);
7771
+ }, xh = () => {
7757
7772
  const { user: e, getAccessToken: t } = Ve(), [r, a] = z(!1), [s, n] = z(null), [o, c] = z(!1), [l, d] = z(!1), {
7758
7773
  dispatch: m,
7759
7774
  state: { reasoning: u, streaming: h, aborted: f, lastResetTimestamp: g, attachments: y }
@@ -7767,7 +7782,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
7767
7782
  }), { data: N } = Xt({
7768
7783
  user: e?.username,
7769
7784
  getAccessToken: t
7770
- }), C = R(null), v = R(null), _ = R(!1), E = R(0), I = R(null), w = R(null), F = Fi(), O = ph({
7785
+ }), C = R(null), v = R(null), _ = R(!1), E = R(0), I = R(null), w = R(null), F = Fi(), O = gh({
7771
7786
  className: ""
7772
7787
  }), {
7773
7788
  input: W,
@@ -7786,27 +7801,27 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
7786
7801
  }
7787
7802
  });
7788
7803
  }
7789
- }), B = V(
7804
+ }), D = V(
7790
7805
  async (K) => {
7791
- K === kh && m({
7806
+ K === Eh && m({
7792
7807
  type: at,
7793
7808
  payload: {
7794
7809
  loading: !1,
7795
7810
  streaming: !1
7796
7811
  }
7797
- }), K === Sh && m({
7812
+ }), K === Th && m({
7798
7813
  type: at,
7799
7814
  payload: {
7800
7815
  loading: !0,
7801
7816
  streaming: !1
7802
7817
  }
7803
- }), K === Eh && m({
7818
+ }), K === _h && m({
7804
7819
  type: at,
7805
7820
  payload: {
7806
7821
  loading: !1,
7807
7822
  streaming: !0
7808
7823
  }
7809
- }), K === _h && setTimeout(() => {
7824
+ }), K === Sh && setTimeout(() => {
7810
7825
  f || (m({
7811
7826
  type: at,
7812
7827
  payload: {
@@ -7826,8 +7841,8 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
7826
7841
  [m, L, f]
7827
7842
  );
7828
7843
  $(() => {
7829
- P && B(P);
7830
- }, [P, B]), $(() => {
7844
+ P && D(P);
7845
+ }, [P, D]), $(() => {
7831
7846
  N?.sendOnEnter !== void 0 && d(N.sendOnEnter);
7832
7847
  }, [N]);
7833
7848
  const ge = V(() => {
@@ -7894,15 +7909,15 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
7894
7909
  let ie;
7895
7910
  if (s && s.length > 0) {
7896
7911
  const ye = Array.from(s).map(
7897
- (D) => gh(D)
7912
+ (B) => yh(B)
7898
7913
  ), U = new DataTransfer();
7899
- ye.forEach((D) => U.items.add(D)), ie = U.files;
7914
+ ye.forEach((B) => U.items.add(B)), ie = U.files;
7900
7915
  }
7901
7916
  Q(K, {
7902
7917
  headers: {
7903
7918
  "Content-Type": "application/json",
7904
7919
  authorization: `Bearer ${ne}`,
7905
- [_d]: q
7920
+ [Sd]: q
7906
7921
  },
7907
7922
  body: {
7908
7923
  reasoning: u
@@ -7935,7 +7950,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
7935
7950
  }
7936
7951
  g > 0 && g !== E.current ? (E.current = g, setTimeout(() => {
7937
7952
  w.current && (!W && Lt(w), w.current.focus());
7938
- }, bh)) : h === !1 && !W && (Lt(w), !Ae() && w.current && w.current.focus());
7953
+ }, vh)) : h === !1 && !W && (Lt(w), !Ae() && w.current && w.current.focus());
7939
7954
  }, [g, h, W]), $(() => {
7940
7955
  k.lastTriggeredTimestamp && setTimeout(() => {
7941
7956
  ge();
@@ -8005,13 +8020,13 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8005
8020
  }
8006
8021
  )
8007
8022
  ] }),
8008
- /* @__PURE__ */ i(yh, { files: s, clearFile: We }),
8023
+ /* @__PURE__ */ i(bh, { files: s, clearFile: We }),
8009
8024
  /* @__PURE__ */ T("div", { className: "p-2 flex items-center", children: [
8010
- /* @__PURE__ */ i(ih, { className: "order-7 ml-auto" }),
8011
- /* @__PURE__ */ i(_u, { className: "order-1 mr-4 sm:mr-2" }),
8012
- /* @__PURE__ */ i(nh, { className: "order-2 mr-4 sm:mr-2" }),
8025
+ /* @__PURE__ */ i(ch, { className: "order-7 ml-auto" }),
8026
+ /* @__PURE__ */ i(Su, { className: "order-1 mr-4 sm:mr-2" }),
8027
+ /* @__PURE__ */ i(oh, { className: "order-2 mr-4 sm:mr-2" }),
8013
8028
  /* @__PURE__ */ i(
8014
- Eu,
8029
+ _u,
8015
8030
  {
8016
8031
  className: "order-3 mr-4 sm:mr-2",
8017
8032
  onClick: Pe
@@ -8025,7 +8040,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8025
8040
  ] })
8026
8041
  ] }) })
8027
8042
  ] });
8028
- }, mt = "--sassy-bottom", xh = ({ isComponent: e }) => {
8043
+ }, mt = "--sassy-bottom", Ch = ({ isComponent: e }) => {
8029
8044
  const {
8030
8045
  state: { loading: t, streaming: r, restoring: a }
8031
8046
  } = X(be), {
@@ -8117,12 +8132,12 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8117
8132
  dd
8118
8133
  ),
8119
8134
  children: [
8120
- /* @__PURE__ */ i(Th, {}),
8135
+ /* @__PURE__ */ i(xh, {}),
8121
8136
  /* @__PURE__ */ i("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: c })
8122
8137
  ]
8123
8138
  }
8124
8139
  );
8125
- }, Dt = [
8140
+ }, Bt = [
8126
8141
  {
8127
8142
  id: na,
8128
8143
  label: "OpenAI",
@@ -8138,14 +8153,14 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8138
8153
  label: "Google Gemini",
8139
8154
  icon: bi
8140
8155
  }
8141
- ], Ch = ({ className: e }) => {
8156
+ ], Ih = ({ className: e }) => {
8142
8157
  const {
8143
8158
  dispatch: t,
8144
8159
  state: { privateChat: r },
8145
8160
  setChatId: a,
8146
8161
  setInitialMessages: s
8147
8162
  } = X(be), { getAccessToken: n, user: o } = Ve(), { status: c } = Xe(), [l, d] = z(!1), m = V(() => {
8148
- l || (oh(), d(!0));
8163
+ l || (ih(), d(!0));
8149
8164
  }, [l]), { isSuccess: u, refetch: h, data: f } = Xt({
8150
8165
  user: o?.username,
8151
8166
  getAccessToken: n
@@ -8165,7 +8180,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8165
8180
  });
8166
8181
  } catch {
8167
8182
  }
8168
- }, y = f && u, k = y && Dt.find((x) => f.provider === x.id)?.icon || Dt[0].icon, b = /* @__PURE__ */ T(
8183
+ }, y = f && u, k = y && Bt.find((x) => f.provider === x.id)?.icon || Bt[0].icon, b = /* @__PURE__ */ T(
8169
8184
  er,
8170
8185
  {
8171
8186
  mode: "dark",
@@ -8191,7 +8206,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8191
8206
  defaultPlacement: "top-start",
8192
8207
  children: [
8193
8208
  /* @__PURE__ */ i(Kn, { children: "Providers" }),
8194
- y && Dt.map((x) => /* @__PURE__ */ i(
8209
+ y && Bt.map((x) => /* @__PURE__ */ i(
8195
8210
  Re,
8196
8211
  {
8197
8212
  selected: f.provider === x.id,
@@ -8214,42 +8229,42 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8214
8229
  trigger: b
8215
8230
  }
8216
8231
  ) : /* @__PURE__ */ i("div", { className: e, children: b });
8217
- }, Ih = it(
8218
- () => import("./ProfileEntry.sDQ3hEDB.js").then((e) => ({
8232
+ }, Rh = it(
8233
+ () => import("./ProfileEntry.BfqhkGd4.js").then((e) => ({
8219
8234
  default: e.Profile
8220
8235
  }))
8221
- ), Rh = it(
8222
- () => import("./SettingsEntry.Bxm2vlzw.js").then((e) => ({
8236
+ ), Ah = it(
8237
+ () => import("./SettingsEntry.DI6otfb9.js").then((e) => ({
8223
8238
  default: e.SettingsPanel
8224
8239
  }))
8225
- ), Ah = it(
8226
- () => import("./HistoryEntry.cNivgXUK.js").then((e) => ({
8240
+ ), Nh = it(
8241
+ () => import("./HistoryEntry.DR1uwD9W.js").then((e) => ({
8227
8242
  default: e.HistoryPanel
8228
8243
  }))
8229
- ), Nh = it(
8230
- () => import("./AboutEntry.D5y4ZF9S.js").then((e) => ({ default: e.About }))
8231
8244
  ), Oh = it(
8232
- () => import("./UsageEntry.CanqLKxk.js").then((e) => ({ default: e.Usage }))
8233
- ), $h = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ i(Ns, { fallback: /* @__PURE__ */ i("div", {}), children: (() => {
8245
+ () => import("./AboutEntry.B7Lg7snn.js").then((e) => ({ default: e.About }))
8246
+ ), $h = it(
8247
+ () => import("./UsageEntry.DrVt2tZr.js").then((e) => ({ default: e.Usage }))
8248
+ ), Ph = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ i(Ns, { fallback: /* @__PURE__ */ i("div", {}), children: (() => {
8234
8249
  switch (e) {
8235
8250
  case "profile":
8236
- return /* @__PURE__ */ i(Ih, { open: t, onOpenChange: r });
8237
- case "settings":
8238
8251
  return /* @__PURE__ */ i(Rh, { open: t, onOpenChange: r });
8239
- case "history":
8252
+ case "settings":
8240
8253
  return /* @__PURE__ */ i(Ah, { open: t, onOpenChange: r });
8241
- case "about":
8254
+ case "history":
8242
8255
  return /* @__PURE__ */ i(Nh, { open: t, onOpenChange: r });
8243
- case "usage":
8256
+ case "about":
8244
8257
  return /* @__PURE__ */ i(Oh, { open: t, onOpenChange: r });
8258
+ case "usage":
8259
+ return /* @__PURE__ */ i($h, { open: t, onOpenChange: r });
8245
8260
  default:
8246
8261
  return null;
8247
8262
  }
8248
- })() }) : null, Ph = ({
8263
+ })() }) : null, Mh = ({
8249
8264
  isComponent: e = !1
8250
8265
  }) => {
8251
8266
  const { logout: t, getAccessToken: r } = Ve(), [a, s] = z(null), [n, o] = z(!1), [c, l] = z(!1), [d, m] = z(!1), u = V(() => {
8252
- d || (import("./ProfileEntry.sDQ3hEDB.js"), import("./SettingsEntry.Bxm2vlzw.js"), import("./HistoryEntry.cNivgXUK.js"), import("./AboutEntry.D5y4ZF9S.js"), import("./UsageEntry.CanqLKxk.js"), m(!0));
8267
+ d || (import("./ProfileEntry.BfqhkGd4.js"), import("./SettingsEntry.DI6otfb9.js"), import("./HistoryEntry.DR1uwD9W.js"), import("./AboutEntry.B7Lg7snn.js"), import("./UsageEntry.DrVt2tZr.js"), m(!0));
8253
8268
  }, [d]), h = V((k) => {
8254
8269
  s(k);
8255
8270
  }, []), f = V(() => {
@@ -8299,7 +8314,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8299
8314
  }
8300
8315
  ),
8301
8316
  /* @__PURE__ */ i(
8302
- $h,
8317
+ Ph,
8303
8318
  {
8304
8319
  type: a,
8305
8320
  open: a !== null,
@@ -8314,7 +8329,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8314
8329
  rowGap: 0,
8315
8330
  columnGap: 0,
8316
8331
  children: [
8317
- /* @__PURE__ */ i(yt, { children: /* @__PURE__ */ i(Ch, { className: " mr-4 sm:mr-2" }) }),
8332
+ /* @__PURE__ */ i(yt, { children: /* @__PURE__ */ i(Ih, { className: " mr-4 sm:mr-2" }) }),
8318
8333
  /* @__PURE__ */ i(yt, { children: Je() && /* @__PURE__ */ T(ue, { children: [
8319
8334
  n && /* @__PURE__ */ i(Jn, { className: "mr-4 sm:mr-2" }),
8320
8335
  /* @__PURE__ */ i(jn, { className: "mr-4 sm:mr-2" }),
@@ -8385,7 +8400,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8385
8400
  }
8386
8401
  ),
8387
8402
  !e && /* @__PURE__ */ T(ue, { children: [
8388
- /* @__PURE__ */ i(ah, {}),
8403
+ /* @__PURE__ */ i(sh, {}),
8389
8404
  /* @__PURE__ */ i(
8390
8405
  Re,
8391
8406
  {
@@ -8404,7 +8419,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8404
8419
  }
8405
8420
  ) })
8406
8421
  ] });
8407
- }, Mh = ({
8422
+ }, Lh = ({
8408
8423
  show: e,
8409
8424
  bottom: t,
8410
8425
  onClick: r,
@@ -8449,7 +8464,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8449
8464
  }
8450
8465
  )
8451
8466
  }
8452
- ) : null, Ft = "av-bubble", ys = "av-button", fa = "icon", ao = "button", jr = "link", Lh = ({
8467
+ ) : null, Ft = "av-bubble", ys = "av-button", fa = "icon", ao = "button", jr = "link", Bh = ({
8453
8468
  type: e,
8454
8469
  size: t,
8455
8470
  labelRight: r,
@@ -8508,7 +8523,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8508
8523
  [o]: t === "large" && (r || a)
8509
8524
  });
8510
8525
  }
8511
- }, Bh = ({
8526
+ }, Uh = ({
8512
8527
  mode: e,
8513
8528
  noBackground: t,
8514
8529
  truncate: r,
@@ -8544,7 +8559,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8544
8559
  return p("not-prose text-copy-lighter", {
8545
8560
  truncate: r
8546
8561
  });
8547
- }, Uh = ({
8562
+ }, Hh = ({
8548
8563
  mode: e,
8549
8564
  noBackground: t,
8550
8565
  variant: r
@@ -8574,13 +8589,13 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8574
8589
  if (r === "selected")
8575
8590
  return "bg-action-selected-dark";
8576
8591
  }
8577
- }, Hh = ({
8592
+ }, Vh = ({
8578
8593
  radius: e
8579
8594
  }) => p({
8580
8595
  "rounded-full": e === "large",
8581
8596
  "rounded-md": e === "medium",
8582
8597
  "rounded-xs": e === "small"
8583
- }), Vh = ({
8598
+ }), zh = ({
8584
8599
  mode: e,
8585
8600
  disabled: t,
8586
8601
  variant: r
@@ -8618,7 +8633,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8618
8633
  });
8619
8634
  if (r === "selected")
8620
8635
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
8621
- }, zh = ({
8636
+ }, Fh = ({
8622
8637
  mode: e,
8623
8638
  disabled: t,
8624
8639
  variant: r
@@ -8656,7 +8671,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8656
8671
  });
8657
8672
  if (r === "selected")
8658
8673
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
8659
- }, Fh = ({
8674
+ }, Wh = ({
8660
8675
  mode: e,
8661
8676
  noBorder: t,
8662
8677
  variant: r
@@ -8686,14 +8701,14 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8686
8701
  });
8687
8702
  if (r === "selected")
8688
8703
  return "border border-border-selected-dark";
8689
- }, Wh = ({
8704
+ }, jh = ({
8690
8705
  focusMode: e
8691
8706
  }) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
8692
8707
  "focus:outline-focus-dark": e === "dark",
8693
8708
  "focus:outline-focus-light": e === "light",
8694
8709
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
8695
8710
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
8696
- }), jh = ({
8711
+ }), Gh = ({
8697
8712
  mode: e,
8698
8713
  raw: t,
8699
8714
  iconClassName: r,
@@ -8720,11 +8735,11 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8720
8735
  } : a === "selected" && (s = {
8721
8736
  "text-copy-lighter": !0
8722
8737
  }), p(s, r);
8723
- }, Gh = ({
8738
+ }, Kh = ({
8724
8739
  animated: e
8725
8740
  }) => p({
8726
8741
  "transition-opacity duration-300 ease-in-out": e
8727
- }), Kh = ({
8742
+ }), Jh = ({
8728
8743
  type: e,
8729
8744
  className: t,
8730
8745
  raw: r,
@@ -8744,15 +8759,15 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8744
8759
  animated: k
8745
8760
  }) => (h || (h = "primary"), r ? p(ys, t) : p(
8746
8761
  ys,
8747
- Bh({
8762
+ Uh({
8748
8763
  mode: a,
8749
8764
  variant: h,
8750
8765
  noBackground: u,
8751
8766
  truncate: f
8752
8767
  }),
8753
- Uh({ mode: a, noBackground: u, variant: h }),
8754
- Hh({ radius: y }),
8755
- Lh({
8768
+ Hh({ mode: a, noBackground: u, variant: h }),
8769
+ Vh({ radius: y }),
8770
+ Bh({
8756
8771
  type: e,
8757
8772
  size: c,
8758
8773
  labelRight: d,
@@ -8761,10 +8776,10 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8761
8776
  animated: k
8762
8777
  }),
8763
8778
  Dh({ type: e, size: c, labelRight: d, labelLeft: m }),
8764
- Fh({ mode: a, variant: h, noBorder: l }),
8765
- Wh({ focusMode: s }),
8766
- Vh({ mode: a, variant: h, disabled: n }),
8779
+ Wh({ mode: a, variant: h, noBorder: l }),
8780
+ jh({ focusMode: s }),
8767
8781
  zh({ mode: a, variant: h, disabled: n }),
8782
+ Fh({ mode: a, variant: h, disabled: n }),
8768
8783
  {
8769
8784
  "w-full": o,
8770
8785
  "disabled:cursor-not-allowed disabled:opacity-50": n
@@ -8773,7 +8788,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8773
8788
  "transition-[width] duration-300 ease-in": k
8774
8789
  }),
8775
8790
  t
8776
- )), Jh = (e, t, r) => {
8791
+ )), qh = (e, t, r) => {
8777
8792
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof e?.currentTarget?.focus == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
8778
8793
  }, so = Z.forwardRef((e, t) => {
8779
8794
  const { onClick: r, noInternalClick: a = !1, ...s } = e;
@@ -8782,20 +8797,20 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8782
8797
  {
8783
8798
  ref: t,
8784
8799
  onClick: (n) => {
8785
- Jh(n, a, r);
8800
+ qh(n, a, r);
8786
8801
  },
8787
8802
  ...s
8788
8803
  }
8789
8804
  );
8790
8805
  });
8791
8806
  so.displayName = "BaseButton";
8792
- function qh() {
8807
+ function Yh() {
8793
8808
  const e = R(!1);
8794
8809
  return $(() => (e.current = !0, () => {
8795
8810
  e.current = !1;
8796
8811
  }), []), V(() => e.current, []);
8797
8812
  }
8798
- function Yh(e) {
8813
+ function Qh(e) {
8799
8814
  return he(() => e.every((t) => t == null) ? () => {
8800
8815
  } : (t) => {
8801
8816
  e.forEach((r) => {
@@ -8803,7 +8818,7 @@ function Yh(e) {
8803
8818
  });
8804
8819
  }, [...e]);
8805
8820
  }
8806
- const Qh = {
8821
+ const Xh = {
8807
8822
  x: 0,
8808
8823
  y: 0,
8809
8824
  width: 0,
@@ -8814,7 +8829,7 @@ const Qh = {
8814
8829
  right: 0
8815
8830
  };
8816
8831
  function wr(e) {
8817
- const t = qh(), r = R(0), a = R(null), [s, n] = z(Qh), o = he(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
8832
+ const t = Yh(), r = R(0), a = R(null), [s, n] = z(Xh), o = he(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
8818
8833
  const l = c[0];
8819
8834
  l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
8820
8835
  a.current && t() && n(l.contentRect);
@@ -8824,21 +8839,21 @@ function wr(e) {
8824
8839
  o?.disconnect(), r.current && cancelAnimationFrame(r.current);
8825
8840
  }), [o, e]), [a, s];
8826
8841
  }
8827
- const Bt = {
8842
+ const Dt = {
8828
8843
  small: 24,
8829
8844
  // w-6
8830
8845
  medium: 32,
8831
8846
  // w-8
8832
8847
  large: 48
8833
8848
  // w-12
8834
- }, Xh = {
8849
+ }, Zh = {
8835
8850
  small: 16,
8836
8851
  // px-2 x 2
8837
8852
  medium: 24,
8838
8853
  // px-3 x 2
8839
8854
  large: 32
8840
8855
  // px-4 x 2
8841
- }, Zh = 2, em = 300, pa = Z.forwardRef(
8856
+ }, em = 2, tm = 300, pa = Z.forwardRef(
8842
8857
  ({
8843
8858
  children: e,
8844
8859
  disabled: t = !1,
@@ -8862,7 +8877,7 @@ const Bt = {
8862
8877
  animated: S = !1,
8863
8878
  ...N
8864
8879
  }, C) => {
8865
- const v = Kh({
8880
+ const v = Jh({
8866
8881
  type: fa,
8867
8882
  mode: r,
8868
8883
  focusMode: a,
@@ -8879,15 +8894,15 @@ const Bt = {
8879
8894
  radius: k,
8880
8895
  variant: b,
8881
8896
  animated: S
8882
- }), _ = jh({ mode: r, raw: c, iconClassName: x, variant: b }), E = Gh({ animated: S }), I = "flex items-center justify-center relative w-full h-full overflow-hidden", [w, F] = wr(), [O, W] = wr(), [M, J] = wr(), Q = R(0), L = R(null), P = R(null), q = Yh([C, L]);
8897
+ }), _ = Gh({ mode: r, raw: c, iconClassName: x, variant: b }), E = Kh({ animated: S }), I = "flex items-center justify-center relative w-full h-full overflow-hidden", [w, F] = wr(), [O, W] = wr(), [M, J] = wr(), Q = R(0), L = R(null), P = R(null), q = Qh([C, L]);
8883
8898
  return Oe(() => {
8884
- M && M.current && S && (Q.current = J.width + Xh[u] + (l ? 0 : Zh), L.current && !L.current.style.width && (L.current.style.width = `${Bt[u]}px`));
8899
+ M && M.current && S && (Q.current = J.width + Zh[u] + (l ? 0 : em), L.current && !L.current.style.width && (L.current.style.width = `${Dt[u]}px`));
8885
8900
  }, [J, M, u, l, S]), Oe(() => {
8886
8901
  if (L && L.current && S) {
8887
- let B = Bt[u];
8888
- h && w && F.width > 0 ? B = F.width + Q.current : f && O && W.width > 0 && (B = W.width + Q.current), P.current && clearTimeout(P.current), B !== parseInt(L.current.style.width || "0", 10) && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"), L.current.style.width = `${B}px`, B > Bt[u] && (P.current = setTimeout(() => {
8902
+ let D = Dt[u];
8903
+ h && w && F.width > 0 ? D = F.width + Q.current : f && O && W.width > 0 && (D = W.width + Q.current), P.current && clearTimeout(P.current), D !== parseInt(L.current.style.width || "0", 10) && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"), L.current.style.width = `${D}px`, D > Dt[u] && (P.current = setTimeout(() => {
8889
8904
  w.current && h && (w.current.style.opacity = "1"), O.current && f && (O.current.style.opacity = "1"), P.current = null;
8890
- }, em * 0.8))), B === Bt[u] && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"));
8905
+ }, tm * 0.8))), D === Dt[u] && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"));
8891
8906
  }
8892
8907
  }, [
8893
8908
  F,
@@ -8964,7 +8979,7 @@ try {
8964
8979
  });
8965
8980
  } catch {
8966
8981
  }
8967
- const tm = Z.forwardRef(
8982
+ const rm = Z.forwardRef(
8968
8983
  ({
8969
8984
  children: e,
8970
8985
  mode: t = "system",
@@ -9002,7 +9017,7 @@ const tm = Z.forwardRef(
9002
9017
  ) });
9003
9018
  }
9004
9019
  );
9005
- tm.displayName = "ButtonSort";
9020
+ rm.displayName = "ButtonSort";
9006
9021
  const no = ({
9007
9022
  children: e,
9008
9023
  fill: t,
@@ -9046,7 +9061,7 @@ try {
9046
9061
  });
9047
9062
  } catch {
9048
9063
  }
9049
- const rm = ({
9064
+ const am = ({
9050
9065
  className: e,
9051
9066
  viewBox: t,
9052
9067
  title: r,
@@ -9072,7 +9087,7 @@ const rm = ({
9072
9087
  /* @__PURE__ */ i("path", { d: "M337 175c9.4 9.4 9.4 24.6 0 33.9L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0z" })
9073
9088
  ]
9074
9089
  }
9075
- ), am = ({
9090
+ ), sm = ({
9076
9091
  className: e,
9077
9092
  viewBox: t,
9078
9093
  title: r,
@@ -9103,20 +9118,20 @@ try {
9103
9118
  });
9104
9119
  } catch {
9105
9120
  }
9106
- const sm = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
9121
+ const nm = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
9107
9122
  "max-w-xs sm:max-w-md md:max-w-2xl": !t,
9108
9123
  "lg:max-w-3xl": e === "left" && !t
9109
- }), nm = ({ kind: e }) => p({
9124
+ }), om = ({ kind: e }) => p({
9110
9125
  "bg-surface-lighter dark:bg-surface-dark": e === "left",
9111
9126
  "bg-surface-accent": e === "right"
9112
- }), om = ({ kind: e }) => p(
9127
+ }), im = ({ kind: e }) => p(
9113
9128
  "prose prose-dark dark:prose-lighter",
9114
9129
  "prose-blockquote:my-1",
9115
9130
  "prose-ol:my-1 prose-ul:my-1",
9116
9131
  {
9117
9132
  "text-copy-lighter": e === "right"
9118
9133
  }
9119
- ), im = ({ kind: e, tail: t }) => {
9134
+ ), cm = ({ kind: e, tail: t }) => {
9120
9135
  if (t)
9121
9136
  return p(
9122
9137
  `${Ft}-${e}-tail`,
@@ -9137,7 +9152,7 @@ const sm = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
9137
9152
  "rounded-tr-xl": e === "left",
9138
9153
  "rounded-tl-xl": e === "right"
9139
9154
  });
9140
- }, cm = ({
9155
+ }, lm = ({
9141
9156
  kind: e,
9142
9157
  className: t,
9143
9158
  contentClassName: r,
@@ -9155,10 +9170,10 @@ const sm = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
9155
9170
  ), o = p(
9156
9171
  `${Ft}-content`,
9157
9172
  "flex flex-col empty:hidden",
9158
- sm({ kind: e, noMaxWidth: a }),
9173
+ nm({ kind: e, noMaxWidth: a }),
9174
+ im({ kind: e }),
9159
9175
  om({ kind: e }),
9160
- nm({ kind: e }),
9161
- im({ kind: e, tail: s }),
9176
+ cm({ kind: e, tail: s }),
9162
9177
  r
9163
9178
  ), c = "pr-2 pt-1 text-end text-xs text-copy-light", l = p("flex flex-col-reverse sm:flex-row", {
9164
9179
  "ml-2": e === "left" && !s,
@@ -9172,7 +9187,7 @@ const sm = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
9172
9187
  footer: c,
9173
9188
  copyButton: l
9174
9189
  };
9175
- }, lm = "FOOTER_EMPTY", oo = ({
9190
+ }, dm = "FOOTER_EMPTY", oo = ({
9176
9191
  children: e,
9177
9192
  kind: t = "left",
9178
9193
  className: r,
@@ -9185,7 +9200,7 @@ const sm = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
9185
9200
  noMaxWidth: d = !1,
9186
9201
  tail: m = !1
9187
9202
  }) => {
9188
- const [u, h] = z(!1), f = cm({
9203
+ const [u, h] = z(!1), f = lm({
9189
9204
  kind: t,
9190
9205
  className: r,
9191
9206
  contentClassName: a,
@@ -9206,7 +9221,7 @@ const sm = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
9206
9221
  /* @__PURE__ */ i("div", { className: f.main, children: e }),
9207
9222
  s && Object.keys(s).map((k, b) => {
9208
9223
  const x = s[k];
9209
- return x === lm ? /* @__PURE__ */ i("div", { className: "prose-p:m-0", children: /* @__PURE__ */ i("p", { className: f.footer, "aria-hidden": "true", children: /* @__PURE__ */ i("span", { className: "invisible", children: " " }) }) }, `${k}-${b}`) : x ? /* @__PURE__ */ i("div", { className: "prose-p:m-0", children: /* @__PURE__ */ T("p", { className: f.footer, children: [
9224
+ return x === dm ? /* @__PURE__ */ i("div", { className: "prose-p:m-0", children: /* @__PURE__ */ i("p", { className: f.footer, "aria-hidden": "true", children: /* @__PURE__ */ i("span", { className: "invisible", children: " " }) }) }, `${k}-${b}`) : x ? /* @__PURE__ */ i("div", { className: "prose-p:m-0", children: /* @__PURE__ */ T("p", { className: f.footer, children: [
9210
9225
  k,
9211
9226
  ": ",
9212
9227
  x
@@ -9225,7 +9240,7 @@ const sm = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
9225
9240
  label: u ? "Copied to clipboard" : "Copy to clipboard",
9226
9241
  onClick: y,
9227
9242
  disabled: u,
9228
- children: u ? /* @__PURE__ */ i(rm, { size: "size-3" }) : /* @__PURE__ */ i(am, { size: "size-3" })
9243
+ children: u ? /* @__PURE__ */ i(am, { size: "size-3" }) : /* @__PURE__ */ i(sm, { size: "size-3" })
9229
9244
  }
9230
9245
  ) })
9231
9246
  ] });
@@ -9243,7 +9258,7 @@ try {
9243
9258
  });
9244
9259
  } catch {
9245
9260
  }
9246
- const vs = "av-spinner", dm = ({
9261
+ const vs = "av-spinner", um = ({
9247
9262
  spinnerRef: e,
9248
9263
  mode: t = "system",
9249
9264
  type: r = "circle",
@@ -9290,7 +9305,7 @@ try {
9290
9305
  });
9291
9306
  } catch {
9292
9307
  }
9293
- const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
9308
+ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", hm = ({
9294
9309
  type: e,
9295
9310
  size: t,
9296
9311
  labelRight: r,
@@ -9326,7 +9341,7 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
9326
9341
  "h-12": t === "large" && n && (r || a)
9327
9342
  });
9328
9343
  }
9329
- }, hm = ({
9344
+ }, mm = ({
9330
9345
  type: e,
9331
9346
  size: t,
9332
9347
  labelRight: r,
@@ -9349,7 +9364,7 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
9349
9364
  [o]: t === "large" && (r || a)
9350
9365
  });
9351
9366
  }
9352
- }, mm = ({
9367
+ }, fm = ({
9353
9368
  mode: e,
9354
9369
  noBackground: t,
9355
9370
  truncate: r,
@@ -9385,7 +9400,7 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
9385
9400
  return p("not-prose text-copy-lighter", {
9386
9401
  truncate: r
9387
9402
  });
9388
- }, fm = ({
9403
+ }, pm = ({
9389
9404
  mode: e,
9390
9405
  noBackground: t,
9391
9406
  variant: r
@@ -9415,13 +9430,13 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
9415
9430
  if (r === "selected")
9416
9431
  return "bg-action-selected-dark";
9417
9432
  }
9418
- }, pm = ({
9433
+ }, gm = ({
9419
9434
  radius: e
9420
9435
  }) => p({
9421
9436
  "rounded-full": e === "large",
9422
9437
  "rounded-md": e === "medium",
9423
9438
  "rounded-xs": e === "small"
9424
- }), gm = ({
9439
+ }), ym = ({
9425
9440
  mode: e,
9426
9441
  disabled: t,
9427
9442
  variant: r
@@ -9459,7 +9474,7 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
9459
9474
  });
9460
9475
  if (r === "selected")
9461
9476
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
9462
- }, ym = ({
9477
+ }, bm = ({
9463
9478
  mode: e,
9464
9479
  disabled: t,
9465
9480
  variant: r
@@ -9497,7 +9512,7 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
9497
9512
  });
9498
9513
  if (r === "selected")
9499
9514
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
9500
- }, bm = ({
9515
+ }, vm = ({
9501
9516
  mode: e,
9502
9517
  noBorder: t,
9503
9518
  variant: r
@@ -9527,14 +9542,14 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
9527
9542
  });
9528
9543
  if (r === "selected")
9529
9544
  return "border border-border-selected-dark";
9530
- }, vm = ({
9545
+ }, wm = ({
9531
9546
  focusMode: e
9532
9547
  }) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
9533
9548
  "focus:outline-focus-dark": e === "dark",
9534
9549
  "focus:outline-focus-light": e === "light",
9535
9550
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
9536
9551
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
9537
- }), wm = ({
9552
+ }), km = ({
9538
9553
  mode: e,
9539
9554
  raw: t,
9540
9555
  iconClassName: r,
@@ -9561,7 +9576,7 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
9561
9576
  } : a === "selected" && (s = {
9562
9577
  "text-copy-lighter": !0
9563
9578
  }), p(s, r);
9564
- }, km = ({
9579
+ }, Em = ({
9565
9580
  animated: e
9566
9581
  }) => p({
9567
9582
  "transition-opacity duration-300 ease-in-out": e
@@ -9585,15 +9600,15 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
9585
9600
  animated: k
9586
9601
  }) => (h || (h = "primary"), r ? p(ws, t) : p(
9587
9602
  ws,
9588
- mm({
9603
+ fm({
9589
9604
  mode: a,
9590
9605
  variant: h,
9591
9606
  noBackground: u,
9592
9607
  truncate: f
9593
9608
  }),
9594
- fm({ mode: a, noBackground: u, variant: h }),
9595
- pm({ radius: y }),
9596
- um({
9609
+ pm({ mode: a, noBackground: u, variant: h }),
9610
+ gm({ radius: y }),
9611
+ hm({
9597
9612
  type: e,
9598
9613
  size: c,
9599
9614
  labelRight: d,
@@ -9601,11 +9616,11 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
9601
9616
  align: g,
9602
9617
  animated: k
9603
9618
  }),
9604
- hm({ type: e, size: c, labelRight: d, labelLeft: m }),
9605
- bm({ mode: a, variant: h, noBorder: l }),
9606
- vm({ focusMode: s }),
9607
- gm({ mode: a, variant: h, disabled: n }),
9619
+ mm({ type: e, size: c, labelRight: d, labelLeft: m }),
9620
+ vm({ mode: a, variant: h, noBorder: l }),
9621
+ wm({ focusMode: s }),
9608
9622
  ym({ mode: a, variant: h, disabled: n }),
9623
+ bm({ mode: a, variant: h, disabled: n }),
9609
9624
  {
9610
9625
  "w-full": o,
9611
9626
  "disabled:cursor-not-allowed disabled:opacity-50": n
@@ -9614,7 +9629,7 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
9614
9629
  "transition-[width] duration-300 ease-in": e === tr && k
9615
9630
  }),
9616
9631
  t
9617
- )), Em = (e, t, r) => {
9632
+ )), _m = (e, t, r) => {
9618
9633
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof e?.currentTarget?.focus == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
9619
9634
  }, ya = Z.forwardRef((e, t) => {
9620
9635
  const { onClick: r, noInternalClick: a = !1, ...s } = e;
@@ -9623,7 +9638,7 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
9623
9638
  {
9624
9639
  ref: t,
9625
9640
  onClick: (n) => {
9626
- Em(n, a, r);
9641
+ _m(n, a, r);
9627
9642
  },
9628
9643
  ...s
9629
9644
  }
@@ -9673,13 +9688,13 @@ const co = Z.forwardRef(
9673
9688
  }
9674
9689
  );
9675
9690
  co.displayName = "Button";
9676
- function _m() {
9691
+ function Sm() {
9677
9692
  const e = R(!1);
9678
9693
  return $(() => (e.current = !0, () => {
9679
9694
  e.current = !1;
9680
9695
  }), []), V(() => e.current, []);
9681
9696
  }
9682
- function Sm(e) {
9697
+ function Tm(e) {
9683
9698
  return he(() => e.every((t) => t == null) ? () => {
9684
9699
  } : (t) => {
9685
9700
  e.forEach((r) => {
@@ -9687,7 +9702,7 @@ function Sm(e) {
9687
9702
  });
9688
9703
  }, [...e]);
9689
9704
  }
9690
- const Tm = {
9705
+ const xm = {
9691
9706
  x: 0,
9692
9707
  y: 0,
9693
9708
  width: 0,
@@ -9698,7 +9713,7 @@ const Tm = {
9698
9713
  right: 0
9699
9714
  };
9700
9715
  function kr(e) {
9701
- const t = _m(), r = R(0), a = R(null), [s, n] = z(Tm), o = he(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
9716
+ const t = Sm(), r = R(0), a = R(null), [s, n] = z(xm), o = he(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
9702
9717
  const l = c[0];
9703
9718
  l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
9704
9719
  a.current && t() && n(l.contentRect);
@@ -9715,14 +9730,14 @@ const Ut = {
9715
9730
  // w-8
9716
9731
  large: 48
9717
9732
  // w-12
9718
- }, xm = {
9733
+ }, Cm = {
9719
9734
  small: 16,
9720
9735
  // px-2 x 2
9721
9736
  medium: 24,
9722
9737
  // px-3 x 2
9723
9738
  large: 32
9724
9739
  // px-4 x 2
9725
- }, Cm = 2, Im = 300, lo = Z.forwardRef(
9740
+ }, Im = 2, Rm = 300, lo = Z.forwardRef(
9726
9741
  ({
9727
9742
  children: e,
9728
9743
  disabled: t = !1,
@@ -9763,15 +9778,15 @@ const Ut = {
9763
9778
  radius: k,
9764
9779
  variant: b,
9765
9780
  animated: S
9766
- }), _ = wm({ mode: r, raw: c, iconClassName: x, variant: b }), E = km({ animated: S }), I = "flex items-center justify-center relative w-full h-full overflow-hidden", [w, F] = kr(), [O, W] = kr(), [M, J] = kr(), Q = R(0), L = R(null), P = R(null), q = Sm([C, L]);
9781
+ }), _ = km({ mode: r, raw: c, iconClassName: x, variant: b }), E = Em({ animated: S }), I = "flex items-center justify-center relative w-full h-full overflow-hidden", [w, F] = kr(), [O, W] = kr(), [M, J] = kr(), Q = R(0), L = R(null), P = R(null), q = Tm([C, L]);
9767
9782
  return Oe(() => {
9768
- M && M.current && S && (Q.current = J.width + xm[u] + (l ? 0 : Cm), L.current && !L.current.style.width && (L.current.style.width = `${Ut[u]}px`));
9783
+ M && M.current && S && (Q.current = J.width + Cm[u] + (l ? 0 : Im), L.current && !L.current.style.width && (L.current.style.width = `${Ut[u]}px`));
9769
9784
  }, [J, M, u, l, S]), Oe(() => {
9770
9785
  if (L && L.current && S) {
9771
- let B = Ut[u];
9772
- h && w && F.width > 0 ? B = F.width + Q.current : f && O && W.width > 0 && (B = W.width + Q.current), P.current && clearTimeout(P.current), B !== parseInt(L.current.style.width || "0", 10) && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"), L.current.style.width = `${B}px`, B > Ut[u] && (P.current = setTimeout(() => {
9786
+ let D = Ut[u];
9787
+ h && w && F.width > 0 ? D = F.width + Q.current : f && O && W.width > 0 && (D = W.width + Q.current), P.current && clearTimeout(P.current), D !== parseInt(L.current.style.width || "0", 10) && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"), L.current.style.width = `${D}px`, D > Ut[u] && (P.current = setTimeout(() => {
9773
9788
  w.current && h && (w.current.style.opacity = "1"), O.current && f && (O.current.style.opacity = "1"), P.current = null;
9774
- }, Im * 0.8))), B === Ut[u] && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"));
9789
+ }, Rm * 0.8))), D === Ut[u] && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"));
9775
9790
  }
9776
9791
  }, [
9777
9792
  F,
@@ -9848,7 +9863,7 @@ try {
9848
9863
  });
9849
9864
  } catch {
9850
9865
  }
9851
- const Rm = Z.forwardRef(
9866
+ const Am = Z.forwardRef(
9852
9867
  ({
9853
9868
  children: e,
9854
9869
  mode: t = "system",
@@ -9886,10 +9901,10 @@ const Rm = Z.forwardRef(
9886
9901
  ) });
9887
9902
  }
9888
9903
  );
9889
- Rm.displayName = "ButtonSort";
9890
- const Am = 200, Nm = ({
9904
+ Am.displayName = "ButtonSort";
9905
+ const Nm = 200, Om = ({
9891
9906
  string: e,
9892
- idealLength: t = Am
9907
+ idealLength: t = Nm
9893
9908
  }) => {
9894
9909
  if (e.length <= t)
9895
9910
  return { string: e, isTruncated: !1 };
@@ -9900,7 +9915,7 @@ const Am = 200, Nm = ({
9900
9915
  string: e.slice(0, t + r),
9901
9916
  isTruncated: !0
9902
9917
  };
9903
- }, Om = ({
9918
+ }, $m = ({
9904
9919
  children: e,
9905
9920
  length: t = 200,
9906
9921
  mode: r = "system",
@@ -9909,7 +9924,7 @@ const Am = 200, Nm = ({
9909
9924
  const [s, n] = z(!1);
9910
9925
  if (typeof e != "string")
9911
9926
  return e;
9912
- const { string: o, isTruncated: c } = Nm({
9927
+ const { string: o, isTruncated: c } = Om({
9913
9928
  string: e,
9914
9929
  idealLength: t
9915
9930
  });
@@ -9943,7 +9958,7 @@ try {
9943
9958
  });
9944
9959
  } catch {
9945
9960
  }
9946
- const $m = ({ content: e }) => /* @__PURE__ */ i(
9961
+ const Pm = ({ content: e }) => /* @__PURE__ */ i(
9947
9962
  oo,
9948
9963
  {
9949
9964
  tail: !0,
@@ -9951,14 +9966,14 @@ const $m = ({ content: e }) => /* @__PURE__ */ i(
9951
9966
  copyToClipboard: e,
9952
9967
  copyToClipboardFocusMode: "light",
9953
9968
  className: "mt-3",
9954
- children: /* @__PURE__ */ i(Om, { mode: "light", focusMode: "light", children: e })
9969
+ children: /* @__PURE__ */ i($m, { mode: "light", focusMode: "light", children: e })
9955
9970
  }
9956
- ), Es = 2, Pm = it(
9971
+ ), Es = 2, Mm = it(
9957
9972
  () => import(
9958
9973
  /* webpackChunkName: "LazyMessageAssistant" */
9959
- "./ChatBubbleAssistant.CzWEbv8c.js"
9974
+ "./ChatBubbleAssistant.D2DBE01w.js"
9960
9975
  )
9961
- ), Mm = Z.memo(
9976
+ ), Lm = Z.memo(
9962
9977
  ({
9963
9978
  role: e,
9964
9979
  content: t,
@@ -9969,8 +9984,8 @@ const $m = ({ content: e }) => /* @__PURE__ */ i(
9969
9984
  const {
9970
9985
  state: { restoring: n, streaming: o }
9971
9986
  } = X(be);
9972
- return e === hd && t ? /* @__PURE__ */ i($m, { content: t }) : o && (e === qt || e === Tr) && (!t || t && t.length < Es) ? /* @__PURE__ */ i(oo, { tail: !0, children: /* @__PURE__ */ i(dm, { type: "dots" }) }) : (e === qt || e === Tr) && t && t.length >= Es ? /* @__PURE__ */ i(Ns, { fallback: /* @__PURE__ */ i("span", {}), children: /* @__PURE__ */ i(
9973
- Pm,
9987
+ return e === hd && t ? /* @__PURE__ */ i(Pm, { content: t }) : o && (e === qt || e === Tr) && (!t || t && t.length < Es) ? /* @__PURE__ */ i(oo, { tail: !0, children: /* @__PURE__ */ i(um, { type: "dots" }) }) : (e === qt || e === Tr) && t && t.length >= Es ? /* @__PURE__ */ i(Ns, { fallback: /* @__PURE__ */ i("span", {}), children: /* @__PURE__ */ i(
9988
+ Mm,
9974
9989
  {
9975
9990
  role: e,
9976
9991
  content: t,
@@ -9981,7 +9996,7 @@ const $m = ({ content: e }) => /* @__PURE__ */ i(
9981
9996
  }
9982
9997
  ) }) : null;
9983
9998
  }
9984
- ), Lm = () => {
9999
+ ), Bm = () => {
9985
10000
  const { messages: e } = Xe(), t = e ? e.map((r, a) => r.role === qt ? a : -1).filter((r) => r !== -1).pop() : -1;
9986
10001
  return e && e.length > 0 ? /* @__PURE__ */ i("div", { className: "space-y-6 mt-2 @container", children: e?.map((r, a) => {
9987
10002
  let s;
@@ -9997,7 +10012,7 @@ const $m = ({ content: e }) => /* @__PURE__ */ i(
9997
10012
  }), c = o && o.length > 0 ? o.filter(Boolean).join(`
9998
10013
  `) : void 0, l = r.role === qt && a === t;
9999
10014
  return /* @__PURE__ */ i(
10000
- Mm,
10015
+ Lm,
10001
10016
  {
10002
10017
  role: r.role,
10003
10018
  content: c,
@@ -10009,7 +10024,7 @@ const $m = ({ content: e }) => /* @__PURE__ */ i(
10009
10024
  );
10010
10025
  }) }) : null;
10011
10026
  }, Dm = () => {
10012
- const { isAuthenticated: e } = Ve(), { ref: t, inViewport: r } = Bi(), a = R(null), s = R(null), {
10027
+ const { isAuthenticated: e } = Ve(), { ref: t, inViewport: r } = Di(), a = R(null), s = R(null), {
10013
10028
  state: { footerPosition: n, footerHeight: o, footerOffset: c }
10014
10029
  } = X(ca), {
10015
10030
  state: { loading: l }
@@ -10030,12 +10045,12 @@ const $m = ({ content: e }) => /* @__PURE__ */ i(
10030
10045
  }, [n, o, c]), /* @__PURE__ */ T(ue, { children: [
10031
10046
  /* @__PURE__ */ T("div", { className: u, ref: a, children: [
10032
10047
  /* @__PURE__ */ i(No, { className: f }),
10033
- /* @__PURE__ */ i(Lm, {}),
10048
+ /* @__PURE__ */ i(Bm, {}),
10034
10049
  /* @__PURE__ */ i("div", { ref: t, className: "scroll-marker" }),
10035
10050
  /* @__PURE__ */ i("div", { ref: s, className: "pt-20" })
10036
10051
  ] }),
10037
10052
  /* @__PURE__ */ i(
10038
- Mh,
10053
+ Lh,
10039
10054
  {
10040
10055
  show: !r && n === qe,
10041
10056
  bottom: m.current,
@@ -10156,7 +10171,7 @@ function uo({
10156
10171
  className: Oa({
10157
10172
  extraClass: "mt-5"
10158
10173
  }),
10159
- children: /* @__PURE__ */ i(Ph, { isComponent: e })
10174
+ children: /* @__PURE__ */ i(Mh, { isComponent: e })
10160
10175
  }
10161
10176
  ),
10162
10177
  /* @__PURE__ */ i(
@@ -10173,7 +10188,7 @@ function uo({
10173
10188
  children: /* @__PURE__ */ i(Dm, {})
10174
10189
  }
10175
10190
  ),
10176
- /* @__PURE__ */ i(xh, { isComponent: e })
10191
+ /* @__PURE__ */ i(Ch, { isComponent: e })
10177
10192
  ]
10178
10193
  }
10179
10194
  )
@@ -10185,51 +10200,51 @@ function uo({
10185
10200
  );
10186
10201
  }
10187
10202
  uo.displayName = "App";
10188
- const nf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: uo }, Symbol.toStringTag, { value: "Module" }));
10203
+ const of = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: uo }, Symbol.toStringTag, { value: "Module" }));
10189
10204
  export {
10190
- nf as App,
10191
- Mh as ButtonScroll,
10205
+ of as App,
10206
+ Lh as ButtonScroll,
10192
10207
  Zs as CHAT_SET_PROVIDER,
10193
10208
  at as CHAT_SET_STATUS,
10194
10209
  be as ChatContext,
10195
10210
  Ye as ConfirmationPanel,
10196
- Fm as De,
10211
+ Wm as De,
10197
10212
  Gt as E,
10198
10213
  ft as E$1,
10199
- jm as Fe,
10200
- Gm as Ge,
10201
- Wm as He,
10214
+ Gm as Fe,
10215
+ Km as Ge,
10216
+ jm as He,
10202
10217
  oa as HistoryContext,
10203
10218
  ss as LazyToastContainerWrapper,
10204
- lm as Me,
10219
+ dm as Me,
10205
10220
  Rn as O,
10206
10221
  oo as Oe,
10207
10222
  wc as Pe,
10208
10223
  ze as SERVICE_TYPES,
10209
- Jm as Ye,
10224
+ qm as Ye,
10210
10225
  bi as a,
10211
10226
  fi as a$1,
10212
- Bi as b,
10227
+ Di as b,
10213
10228
  pn as getDefaultExportFromCjs,
10214
10229
  Fi as i,
10215
- Zm as k,
10230
+ ef as k,
10216
10231
  en as mutateCall,
10217
10232
  na as n,
10218
- ef as nt,
10219
- In as o,
10233
+ tf as nt,
10220
10234
  Si as p,
10221
10235
  di as p$1,
10222
- Km as qe,
10236
+ Jm as qe,
10223
10237
  Rc as setNewProvider,
10224
- sf as showErrorToast,
10238
+ nf as showErrorToast,
10225
10239
  Xn as showSuccessToast,
10226
10240
  $e as st,
10227
- eh as tt,
10241
+ In as t,
10242
+ th as tt,
10228
10243
  Xe as useAiChat,
10229
- Ym as useChangelogs,
10244
+ Qm as useChangelogs,
10230
10245
  Cn as useChatsHistory,
10231
- Xm as useChatsUsage,
10232
- qm as useServerCapabilities,
10233
- Qm as useUserChatStats,
10246
+ Zm as useChatsUsage,
10247
+ Ym as useServerCapabilities,
10248
+ Xm as useUserChatStats,
10234
10249
  Xt as useUserPreferences
10235
10250
  };