@versini/sassysaint 8.25.0 → 8.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { jsx as i, jsxs as T, Fragment as ue } from "react/jsx-runtime";
2
- import { Subscribable as lo, pendingThenable as ba, resolveEnabled as ke, shallowEqualObjects as wr, resolveStaleTime as pt, noop as Er, isServer as kr, isValidTimeout as va, focusManager as uo, fetchState as ho, replaceData as wa, notifyManager as kn, timeUntilStale as fo, shouldThrowError as mo, useQueryClient as po, I as re, ACTION_SORT as go, ACTION_SEARCH as yo, ACTION_RESET_PROMPT as _n, ACTION_TOGGLE_PROMPT as Sn, le as Ce, DEFAULT_ICON_ACTION_SIZE as Te, n as Ue, isElectron as Ea, isProbablyiPhone as yt, L as Tn, j as gt, C as ka, LOCAL_STORAGE_PREFIX as Ft, LOCAL_STORAGE_PRIVATE_DISCLOSURE as bo, LOCAL_STORAGE_REASONING_DISCLOSURE as vo, TOAST_CHAT_SAVED as wo, TOAST_PROVIDER_CHANGED as Eo, PROMPT_CLASSNAME as ko, PROMPT_EDITABLE_AREA_CLASSNAME as _o, ERROR_MESSAGE as So, ROLE_INTERNAL as _r, CLIPBOARD_PROMPT as _a, isProbablyMobile as Xe, INPUT_PLACEHOLDER_TEXT_MOBILE as Sa, INPUT_PLACEHOLDER_TEXT_ENTER as Ta, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as Ca, INPUT_BOTTOM_OFFSET_EXTRA as To, INPUT_BOTTOM_OFFSET as Cn, FOOTER_DISCLAIMER as Co, LOG_OUT as Ia, getMessageContaintWrapperClass as Io, UI_FOOTER_BUFFER as In, UI_BUTTON_SCROLL_BUFFER as xo, Logo as Ro, UI_DEFAULT_MAIN_HEIGHT as xa, APP_CLASSNAME as Ao, getMainPaddingClass as Ra, r as No, LOCAL_STORAGE_SORT as Oo, LOCAL_STORAGE_SEARCH as $o } from "./index.DzKPIAXc.js";
2
+ import { Subscribable as lo, pendingThenable as ba, resolveEnabled as ke, shallowEqualObjects as wr, resolveStaleTime as pt, noop as Er, isServer as kr, isValidTimeout as va, focusManager as uo, fetchState as ho, replaceData as wa, notifyManager as kn, timeUntilStale as fo, shouldThrowError as mo, useQueryClient as po, I as re, ACTION_SORT as go, ACTION_SEARCH as yo, ACTION_RESET_PROMPT as _n, ACTION_TOGGLE_PROMPT as Sn, le as Ce, DEFAULT_ICON_ACTION_SIZE as Te, n as Ue, isElectron as Ea, isProbablyiPhone as yt, L as Tn, j as gt, C as ka, LOCAL_STORAGE_PREFIX as Ft, LOCAL_STORAGE_PRIVATE_DISCLOSURE as bo, LOCAL_STORAGE_REASONING_DISCLOSURE as vo, TOAST_CHAT_SAVED as wo, TOAST_PROVIDER_CHANGED as Eo, PROMPT_CLASSNAME as ko, PROMPT_EDITABLE_AREA_CLASSNAME as _o, ERROR_MESSAGE as So, ROLE_INTERNAL as _r, CLIPBOARD_PROMPT as _a, isProbablyMobile as Xe, INPUT_PLACEHOLDER_TEXT_MOBILE as Sa, INPUT_PLACEHOLDER_TEXT_ENTER as Ta, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as Ca, INPUT_BOTTOM_OFFSET_EXTRA as To, INPUT_BOTTOM_OFFSET as Cn, FOOTER_DISCLAIMER as Co, LOG_OUT as Ia, getMessageContaintWrapperClass as Io, UI_FOOTER_BUFFER as In, UI_BUTTON_SCROLL_BUFFER as xo, Logo as Ro, UI_DEFAULT_MAIN_HEIGHT as xa, APP_CLASSNAME as Ao, getMainPaddingClass as Ra, r as No, LOCAL_STORAGE_SORT as Oo, LOCAL_STORAGE_SEARCH as $o } from "./index.CJ4xsAr8.js";
3
3
  import * as Y from "react";
4
4
  import Z, { useEffect as $, useRef as R, useState as F, useCallback as W, useSyncExternalStore as Po, useMemo as he, useId as Wr, useContext as X, useLayoutEffect as Ne, createContext as xn, useDebugValue as Mo, forwardRef as Rn, Suspense as An, lazy as nt, useReducer as St } from "react";
5
5
  import p from "clsx";
@@ -1912,7 +1912,7 @@ const ot = Z.createContext({
1912
1912
  stickyHeader: !1,
1913
1913
  stickyFooter: !1,
1914
1914
  compact: !1
1915
- }), Ff = ({
1915
+ }), zf = ({
1916
1916
  children: e,
1917
1917
  mode: t = "system",
1918
1918
  caption: r,
@@ -1951,7 +1951,7 @@ const ot = Z.createContext({
1951
1951
  )
1952
1952
  }
1953
1953
  );
1954
- }, jf = ({
1954
+ }, Ff = ({
1955
1955
  children: e,
1956
1956
  className: t,
1957
1957
  ...r
@@ -1964,7 +1964,7 @@ const ot = Z.createContext({
1964
1964
  stickyHeader: a.stickyHeader
1965
1965
  });
1966
1966
  return /* @__PURE__ */ i("thead", { className: n, ...r, children: e });
1967
- }, Wf = ({
1967
+ }, jf = ({
1968
1968
  children: e,
1969
1969
  className: t,
1970
1970
  ...r
@@ -1977,10 +1977,10 @@ const ot = Z.createContext({
1977
1977
  stickyFooter: a.stickyFooter
1978
1978
  });
1979
1979
  return /* @__PURE__ */ i("tfoot", { className: n, ...r, children: e });
1980
- }, Kf = ({ children: e, ...t }) => {
1980
+ }, Wf = ({ children: e, ...t }) => {
1981
1981
  const r = X(ot);
1982
1982
  return r.cellWrapper = Ze, /* @__PURE__ */ i("tbody", { ...t, children: e });
1983
- }, Gf = ({
1983
+ }, Kf = ({
1984
1984
  children: e,
1985
1985
  className: t,
1986
1986
  ...r
@@ -2006,7 +2006,7 @@ const ot = Z.createContext({
2006
2006
  align: a
2007
2007
  });
2008
2008
  return a ? /* @__PURE__ */ i(o, { className: c, ...n, children: /* @__PURE__ */ i("div", { className: l, children: e }) }) : /* @__PURE__ */ i(o, { className: c, ...n, children: e });
2009
- }, Jf = ({
2009
+ }, Gf = ({
2010
2010
  align: e,
2011
2011
  children: t,
2012
2012
  buttonClassName: r,
@@ -2458,13 +2458,13 @@ const Ha = ({
2458
2458
  CHANGELOGS: "changelogs",
2459
2459
  PREFERENCES: "preferences",
2460
2460
  USAGE: "usage"
2461
- }, qf = () => st({
2461
+ }, Jf = () => st({
2462
2462
  queryKey: [it.CAPABILITIES],
2463
2463
  queryFn: async () => await ct({
2464
2464
  type: Ve.GET_SERVER_CAPABILITIES,
2465
2465
  noAuth: !0
2466
2466
  })
2467
- }), Yf = () => st({
2467
+ }), qf = () => st({
2468
2468
  queryKey: [it.CHANGELOGS],
2469
2469
  queryFn: async () => await ct({
2470
2470
  type: Ve.GET_CHANGELOGS,
@@ -2485,7 +2485,7 @@ const Ha = ({
2485
2485
  type: Ve.GET_USER_PREFERENCES,
2486
2486
  getAccessToken: t
2487
2487
  })
2488
- }), Qf = ({
2488
+ }), Yf = ({
2489
2489
  user: e,
2490
2490
  getAccessToken: t
2491
2491
  }) => st({
@@ -2519,7 +2519,7 @@ const Ha = ({
2519
2519
  type: Ve.GET_CHATS,
2520
2520
  getAccessToken: a
2521
2521
  })
2522
- }), Xf = ({
2522
+ }), Qf = ({
2523
2523
  user: e,
2524
2524
  month: t,
2525
2525
  year: r = (/* @__PURE__ */ new Date()).getFullYear().toString(),
@@ -4857,7 +4857,7 @@ const cd = "z-20", ld = "z-10", dd = "user", Gt = "assistant", ra = "OpenAI", Is
4857
4857
  [ud]: [vd]
4858
4858
  }, Rs = {
4859
4859
  REASONING: "sassy:advanced:reasoning"
4860
- }, Ed = "x-callisto-chat-id", Zf = (e) => {
4860
+ }, Ed = "x-callisto-chat-id", Xf = (e) => {
4861
4861
  for (const [t, r] of Object.entries(
4862
4862
  wd
4863
4863
  ))
@@ -4915,7 +4915,7 @@ try {
4915
4915
  });
4916
4916
  } catch {
4917
4917
  }
4918
- const em = {
4918
+ const Zf = {
4919
4919
  PASSKEY: "passkey"
4920
4920
  }, tt = {
4921
4921
  ALG: "RS256",
@@ -7442,7 +7442,7 @@ const rh = (e) => {
7442
7442
  ] });
7443
7443
  };
7444
7444
  let pr = null, gr = null;
7445
- const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = async () => (gr || (gr = import("./index.DzKPIAXc.js").then((e) => e.utilities)), gr), nh = async () => {
7445
+ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = async () => (gr || (gr = import("./index.CJ4xsAr8.js").then((e) => e.utilities)), gr), nh = async () => {
7446
7446
  try {
7447
7447
  await Promise.all([Gs(), Js()]);
7448
7448
  } catch {
@@ -7463,7 +7463,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
7463
7463
  }, 100);
7464
7464
  } catch {
7465
7465
  }
7466
- }, Ys = (e, t) => qs(e, "success", t), sm = (e, t) => qs(e, "error", t), Qs = ({
7466
+ }, Ys = (e, t) => qs(e, "success", t), nm = (e, t) => qs(e, "error", t), Qs = ({
7467
7467
  className: e
7468
7468
  }) => {
7469
7469
  const { user: t, getAccessToken: r } = Ue(), {
@@ -8166,18 +8166,18 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
8166
8166
  }
8167
8167
  );
8168
8168
  }, Ih = nt(
8169
- () => import("./ProfileEntry.Dw68Fulu.js").then((e) => ({ default: e.Profile }))
8169
+ () => import("./ProfileEntry.DGA1XuAX.js").then((e) => ({ default: e.Profile }))
8170
8170
  ), xh = nt(
8171
- () => import("./SettingsEntry.DK5ClUuQ.js").then((e) => ({
8171
+ () => import("./SettingsEntry.BWU8Hn98.js").then((e) => ({
8172
8172
  default: e.SettingsPanel
8173
8173
  }))
8174
8174
  ), Rh = nt(
8175
- () => import("./HistoryEntry.BsLCRi5A.js").then((e) => ({ default: e.HistoryPanel }))
8175
+ () => import("./HistoryEntry.DCLK_WA_.js").then((e) => ({ default: e.HistoryPanel }))
8176
8176
  ), Ah = nt(
8177
- () => import("./AboutEntry.CCqQ0Ggh.js").then((e) => ({ default: e.About }))
8177
+ () => import("./AboutEntry.3vmmHPmH.js").then((e) => ({ default: e.About }))
8178
8178
  ), Nh = nt(
8179
- () => import("./UsageEntry.zFWoBow-.js").then((e) => ({ default: e.Usage }))
8180
- ), Oh = () => /* @__PURE__ */ i("div", { className: "fixed inset-0 bg-black/50 flex items-center justify-center z-50", children: /* @__PURE__ */ i("div", { className: "bg-surface-darker rounded-md p-4 text-copy-light", children: "Loading..." }) }), $h = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ i(An, { fallback: /* @__PURE__ */ i(Oh, {}), children: (() => {
8179
+ () => import("./UsageEntry.DEKx92R9.js").then((e) => ({ default: e.Usage }))
8180
+ ), Oh = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ i(An, { fallback: /* @__PURE__ */ i("div", {}), children: (() => {
8181
8181
  switch (e) {
8182
8182
  case "profile":
8183
8183
  return /* @__PURE__ */ i(Ih, { open: t, onOpenChange: r });
@@ -8192,11 +8192,11 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
8192
8192
  default:
8193
8193
  return null;
8194
8194
  }
8195
- })() }) : null, Ph = ({
8195
+ })() }) : null, $h = ({
8196
8196
  isComponent: e = !1
8197
8197
  }) => {
8198
8198
  const { logout: t, getAccessToken: r } = Ue(), [a, n] = F(null), [s, o] = F(!1), [c, l] = F(!1), [d, f] = F(!1), u = W(() => {
8199
- d || (import("./ProfileEntry.Dw68Fulu.js"), import("./SettingsEntry.DK5ClUuQ.js"), import("./HistoryEntry.BsLCRi5A.js"), import("./AboutEntry.CCqQ0Ggh.js"), import("./UsageEntry.zFWoBow-.js"), f(!0));
8199
+ d || (import("./ProfileEntry.DGA1XuAX.js"), import("./SettingsEntry.BWU8Hn98.js"), import("./HistoryEntry.DCLK_WA_.js"), import("./AboutEntry.3vmmHPmH.js"), import("./UsageEntry.DEKx92R9.js"), f(!0));
8200
8200
  }, [d]), h = (y) => {
8201
8201
  n(y);
8202
8202
  }, m = () => {
@@ -8227,7 +8227,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
8227
8227
  }
8228
8228
  ),
8229
8229
  /* @__PURE__ */ i(
8230
- $h,
8230
+ Oh,
8231
8231
  {
8232
8232
  type: a,
8233
8233
  open: a !== null,
@@ -8330,7 +8330,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
8330
8330
  }
8331
8331
  ) })
8332
8332
  ] });
8333
- }, zt = "av-bubble", gn = "av-button", ua = "icon", to = "button", Fr = "link", Mh = ({
8333
+ }, zt = "av-bubble", gn = "av-button", ua = "icon", to = "button", Fr = "link", Ph = ({
8334
8334
  type: e,
8335
8335
  size: t,
8336
8336
  labelRight: r,
@@ -8366,7 +8366,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
8366
8366
  "h-12": t === "large" && s && (r || a)
8367
8367
  });
8368
8368
  }
8369
- }, Lh = ({
8369
+ }, Mh = ({
8370
8370
  type: e,
8371
8371
  size: t,
8372
8372
  labelRight: r,
@@ -8389,7 +8389,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
8389
8389
  [o]: t === "large" && (r || a)
8390
8390
  });
8391
8391
  }
8392
- }, Dh = ({
8392
+ }, Lh = ({
8393
8393
  mode: e,
8394
8394
  noBackground: t,
8395
8395
  truncate: r,
@@ -8425,7 +8425,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
8425
8425
  return p("not-prose text-copy-lighter", {
8426
8426
  truncate: r
8427
8427
  });
8428
- }, Bh = ({
8428
+ }, Dh = ({
8429
8429
  mode: e,
8430
8430
  noBackground: t,
8431
8431
  variant: r
@@ -8455,13 +8455,13 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
8455
8455
  if (r === "selected")
8456
8456
  return "bg-action-selected-dark";
8457
8457
  }
8458
- }, Hh = ({
8458
+ }, Bh = ({
8459
8459
  radius: e
8460
8460
  }) => p({
8461
8461
  "rounded-full": e === "large",
8462
8462
  "rounded-md": e === "medium",
8463
8463
  "rounded-xs": e === "small"
8464
- }), Uh = ({
8464
+ }), Hh = ({
8465
8465
  mode: e,
8466
8466
  disabled: t,
8467
8467
  variant: r
@@ -8491,7 +8491,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
8491
8491
  });
8492
8492
  if (r === "selected")
8493
8493
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
8494
- }, Vh = ({
8494
+ }, Uh = ({
8495
8495
  mode: e,
8496
8496
  disabled: t,
8497
8497
  variant: r
@@ -8521,7 +8521,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
8521
8521
  });
8522
8522
  if (r === "selected")
8523
8523
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
8524
- }, zh = ({
8524
+ }, Vh = ({
8525
8525
  mode: e,
8526
8526
  noBorder: t,
8527
8527
  variant: r
@@ -8551,14 +8551,14 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
8551
8551
  });
8552
8552
  if (r === "selected")
8553
8553
  return "border border-border-selected-dark";
8554
- }, Fh = ({
8554
+ }, zh = ({
8555
8555
  focusMode: e
8556
8556
  }) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
8557
8557
  "focus:outline-focus-dark": e === "dark",
8558
8558
  "focus:outline-focus-light": e === "light",
8559
8559
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
8560
8560
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
8561
- }), jh = ({
8561
+ }), Fh = ({
8562
8562
  mode: e,
8563
8563
  raw: t,
8564
8564
  iconClassName: r
@@ -8570,11 +8570,11 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
8570
8570
  "dark:text-copy-accent-dark": e === "system"
8571
8571
  },
8572
8572
  r
8573
- ), Wh = ({
8573
+ ), jh = ({
8574
8574
  animated: e
8575
8575
  }) => p({
8576
8576
  "transition-opacity duration-300 ease-in-out": e
8577
- }), Kh = ({
8577
+ }), Wh = ({
8578
8578
  type: e,
8579
8579
  className: t,
8580
8580
  raw: r,
@@ -8594,15 +8594,15 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
8594
8594
  animated: v
8595
8595
  }) => (h || (h = "primary"), r ? p(gn, t) : p(
8596
8596
  gn,
8597
- Dh({
8597
+ Lh({
8598
8598
  mode: a,
8599
8599
  variant: h,
8600
8600
  noBackground: u,
8601
8601
  truncate: m
8602
8602
  }),
8603
- Bh({ mode: a, noBackground: u, variant: h }),
8604
- Hh({ radius: y }),
8605
- Mh({
8603
+ Dh({ mode: a, noBackground: u, variant: h }),
8604
+ Bh({ radius: y }),
8605
+ Ph({
8606
8606
  type: e,
8607
8607
  size: c,
8608
8608
  labelRight: d,
@@ -8610,11 +8610,11 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
8610
8610
  align: g,
8611
8611
  animated: v
8612
8612
  }),
8613
- Lh({ type: e, size: c, labelRight: d, labelLeft: f }),
8614
- zh({ mode: a, variant: h, noBorder: l }),
8615
- Fh({ focusMode: n }),
8613
+ Mh({ type: e, size: c, labelRight: d, labelLeft: f }),
8614
+ Vh({ mode: a, variant: h, noBorder: l }),
8615
+ zh({ focusMode: n }),
8616
+ Hh({ mode: a, variant: h, disabled: s }),
8616
8617
  Uh({ mode: a, variant: h, disabled: s }),
8617
- Vh({ mode: a, variant: h, disabled: s }),
8618
8618
  {
8619
8619
  "w-full": o,
8620
8620
  "disabled:cursor-not-allowed disabled:opacity-50": s
@@ -8623,7 +8623,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
8623
8623
  "transition-[width] duration-300 ease-in": v
8624
8624
  }),
8625
8625
  t
8626
- )), Gh = (e, t, r) => {
8626
+ )), Kh = (e, t, r) => {
8627
8627
  var a;
8628
8628
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e?.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
8629
8629
  }, ro = Z.forwardRef((e, t) => {
@@ -8633,20 +8633,20 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
8633
8633
  {
8634
8634
  ref: t,
8635
8635
  onClick: (s) => {
8636
- Gh(s, a, r);
8636
+ Kh(s, a, r);
8637
8637
  },
8638
8638
  ...n
8639
8639
  }
8640
8640
  );
8641
8641
  });
8642
8642
  ro.displayName = "BaseButton";
8643
- function Jh() {
8643
+ function Gh() {
8644
8644
  const e = R(!1);
8645
8645
  return $(() => (e.current = !0, () => {
8646
8646
  e.current = !1;
8647
8647
  }), []), W(() => e.current, []);
8648
8648
  }
8649
- function qh(e) {
8649
+ function Jh(e) {
8650
8650
  return he(() => e.every((t) => t == null) ? () => {
8651
8651
  } : (t) => {
8652
8652
  e.forEach((r) => {
@@ -8654,7 +8654,7 @@ function qh(e) {
8654
8654
  });
8655
8655
  }, [...e]);
8656
8656
  }
8657
- const Yh = {
8657
+ const qh = {
8658
8658
  x: 0,
8659
8659
  y: 0,
8660
8660
  width: 0,
@@ -8665,7 +8665,7 @@ const Yh = {
8665
8665
  right: 0
8666
8666
  };
8667
8667
  function br(e) {
8668
- const t = Jh(), r = R(0), a = R(null), [n, s] = F(Yh), o = he(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
8668
+ const t = Gh(), r = R(0), a = R(null), [n, s] = F(qh), o = he(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
8669
8669
  const l = c[0];
8670
8670
  l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
8671
8671
  a.current && t() && s(l.contentRect);
@@ -8682,14 +8682,14 @@ const Dt = {
8682
8682
  // w-8
8683
8683
  large: 48
8684
8684
  // w-12
8685
- }, Qh = {
8685
+ }, Yh = {
8686
8686
  small: 8 * 2,
8687
8687
  // px-2 x 2
8688
8688
  medium: 12 * 2,
8689
8689
  // px-3 x 2
8690
8690
  large: 16 * 2
8691
8691
  // px-4 x 2
8692
- }, Xh = 2, Zh = 300, ha = Z.forwardRef(
8692
+ }, Qh = 2, Xh = 300, ha = Z.forwardRef(
8693
8693
  ({
8694
8694
  children: e,
8695
8695
  disabled: t = !1,
@@ -8713,7 +8713,7 @@ const Dt = {
8713
8713
  animated: S = !1,
8714
8714
  ...O
8715
8715
  }, I) => {
8716
- const b = Kh({
8716
+ const b = Wh({
8717
8717
  type: ua,
8718
8718
  mode: r,
8719
8719
  focusMode: a,
@@ -8730,15 +8730,15 @@ const Dt = {
8730
8730
  radius: v,
8731
8731
  variant: w,
8732
8732
  animated: S
8733
- }), _ = jh({ mode: r, raw: c, iconClassName: C }), k = Wh({ animated: S }), x = "flex items-center justify-center relative w-full h-full overflow-hidden", [E, V] = br(), [A, z] = br(), [P, J] = br(), Q = R(0), L = R(null), M = R(null), q = qh([I, L]);
8733
+ }), _ = Fh({ mode: r, raw: c, iconClassName: C }), k = jh({ animated: S }), x = "flex items-center justify-center relative w-full h-full overflow-hidden", [E, V] = br(), [A, z] = br(), [P, J] = br(), Q = R(0), L = R(null), M = R(null), q = Jh([I, L]);
8734
8734
  return Ne(() => {
8735
- P && P.current && S && (Q.current = J.width + Qh[u] + (l ? 0 : Xh), L.current && !L.current.style.width && (L.current.style.width = `${Dt[u]}px`));
8735
+ P && P.current && S && (Q.current = J.width + Yh[u] + (l ? 0 : Qh), L.current && !L.current.style.width && (L.current.style.width = `${Dt[u]}px`));
8736
8736
  }, [J, P, u, l, S]), Ne(() => {
8737
8737
  if (L && L.current && S) {
8738
8738
  let B = Dt[u];
8739
8739
  h && E && V.width > 0 ? B = V.width + Q.current : m && A && z.width > 0 && (B = z.width + Q.current), M.current && clearTimeout(M.current), B !== parseInt(L.current.style.width || "0", 10) && (E.current && (E.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"), L.current.style.width = `${B}px`, B > Dt[u] && (M.current = setTimeout(() => {
8740
8740
  E.current && h && (E.current.style.opacity = "1"), A.current && m && (A.current.style.opacity = "1"), M.current = null;
8741
- }, Zh * 0.8))), B === Dt[u] && (E.current && (E.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"));
8741
+ }, Xh * 0.8))), B === Dt[u] && (E.current && (E.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"));
8742
8742
  }
8743
8743
  }, [
8744
8744
  V,
@@ -8815,7 +8815,7 @@ try {
8815
8815
  });
8816
8816
  } catch {
8817
8817
  }
8818
- const ef = Z.forwardRef(
8818
+ const Zh = Z.forwardRef(
8819
8819
  ({
8820
8820
  children: e,
8821
8821
  mode: t = "system",
@@ -8853,7 +8853,7 @@ const ef = Z.forwardRef(
8853
8853
  ) });
8854
8854
  }
8855
8855
  );
8856
- ef.displayName = "ButtonSort";
8856
+ Zh.displayName = "ButtonSort";
8857
8857
  const ao = ({
8858
8858
  children: e,
8859
8859
  fill: t,
@@ -8897,7 +8897,7 @@ try {
8897
8897
  });
8898
8898
  } catch {
8899
8899
  }
8900
- const tf = ({
8900
+ const ef = ({
8901
8901
  className: e,
8902
8902
  viewBox: t,
8903
8903
  title: r,
@@ -8923,7 +8923,7 @@ const tf = ({
8923
8923
  /* @__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" })
8924
8924
  ]
8925
8925
  }
8926
- ), rf = ({
8926
+ ), tf = ({
8927
8927
  className: e,
8928
8928
  viewBox: t,
8929
8929
  title: r,
@@ -8954,20 +8954,20 @@ try {
8954
8954
  });
8955
8955
  } catch {
8956
8956
  }
8957
- const af = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
8957
+ const rf = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
8958
8958
  "max-w-xs sm:max-w-md md:max-w-2xl": !t,
8959
8959
  "lg:max-w-3xl": e === "left" && !t
8960
- }), nf = ({ kind: e }) => p({
8960
+ }), af = ({ kind: e }) => p({
8961
8961
  "bg-surface-lighter dark:bg-surface-dark": e === "left",
8962
8962
  "bg-surface-accent": e === "right"
8963
- }), sf = ({ kind: e }) => p(
8963
+ }), nf = ({ kind: e }) => p(
8964
8964
  "prose prose-dark dark:prose-lighter",
8965
8965
  "prose-blockquote:my-1",
8966
8966
  "prose-ol:my-1 prose-ul:my-1",
8967
8967
  {
8968
8968
  "text-copy-lighter": e === "right"
8969
8969
  }
8970
- ), of = ({ kind: e, tail: t }) => {
8970
+ ), sf = ({ kind: e, tail: t }) => {
8971
8971
  if (t)
8972
8972
  return p(
8973
8973
  `${zt}-${e}-tail`,
@@ -8988,7 +8988,7 @@ const af = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
8988
8988
  "rounded-tr-xl": e === "left",
8989
8989
  "rounded-tl-xl": e === "right"
8990
8990
  });
8991
- }, cf = ({
8991
+ }, of = ({
8992
8992
  kind: e,
8993
8993
  className: t,
8994
8994
  contentClassName: r,
@@ -9006,10 +9006,10 @@ const af = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
9006
9006
  ), o = p(
9007
9007
  `${zt}-content`,
9008
9008
  "flex flex-col empty:hidden",
9009
- af({ kind: e, noMaxWidth: a }),
9010
- sf({ kind: e }),
9009
+ rf({ kind: e, noMaxWidth: a }),
9011
9010
  nf({ kind: e }),
9012
- of({ kind: e, tail: n }),
9011
+ af({ kind: e }),
9012
+ sf({ kind: e, tail: n }),
9013
9013
  r
9014
9014
  ), c = "pr-2 pt-1 text-end text-xs text-copy-light", l = p("flex flex-col-reverse sm:flex-row", {
9015
9015
  "ml-2": e === "left" && !n,
@@ -9023,7 +9023,7 @@ const af = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
9023
9023
  footer: c,
9024
9024
  copyButton: l
9025
9025
  };
9026
- }, lf = "FOOTER_EMPTY", no = ({
9026
+ }, cf = "FOOTER_EMPTY", no = ({
9027
9027
  children: e,
9028
9028
  kind: t = "left",
9029
9029
  className: r,
@@ -9036,7 +9036,7 @@ const af = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
9036
9036
  noMaxWidth: d = !1,
9037
9037
  tail: f = !1
9038
9038
  }) => {
9039
- const [u, h] = F(!1), m = cf({
9039
+ const [u, h] = F(!1), m = of({
9040
9040
  kind: t,
9041
9041
  className: r,
9042
9042
  contentClassName: a,
@@ -9057,7 +9057,7 @@ const af = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
9057
9057
  /* @__PURE__ */ i("div", { className: m.main, children: e }),
9058
9058
  n && Object.keys(n).map((v, w) => {
9059
9059
  const C = n[v];
9060
- return C === lf ? /* @__PURE__ */ i("div", { className: "prose-p:m-0", children: /* @__PURE__ */ i("p", { className: m.footer, "aria-hidden": "true", children: /* @__PURE__ */ i("span", { className: "invisible", children: " " }) }) }, `${v}-${w}`) : C ? /* @__PURE__ */ i("div", { className: "prose-p:m-0", children: /* @__PURE__ */ T("p", { className: m.footer, children: [
9060
+ return C === cf ? /* @__PURE__ */ i("div", { className: "prose-p:m-0", children: /* @__PURE__ */ i("p", { className: m.footer, "aria-hidden": "true", children: /* @__PURE__ */ i("span", { className: "invisible", children: " " }) }) }, `${v}-${w}`) : C ? /* @__PURE__ */ i("div", { className: "prose-p:m-0", children: /* @__PURE__ */ T("p", { className: m.footer, children: [
9061
9061
  v,
9062
9062
  ": ",
9063
9063
  C
@@ -9076,7 +9076,7 @@ const af = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
9076
9076
  label: u ? "Copied to clipboard" : "Copy to clipboard",
9077
9077
  onClick: y,
9078
9078
  disabled: u,
9079
- children: u ? /* @__PURE__ */ i(tf, { size: "size-3" }) : /* @__PURE__ */ i(rf, { size: "size-3" })
9079
+ children: u ? /* @__PURE__ */ i(ef, { size: "size-3" }) : /* @__PURE__ */ i(tf, { size: "size-3" })
9080
9080
  }
9081
9081
  ) })
9082
9082
  ] });
@@ -9094,7 +9094,7 @@ try {
9094
9094
  });
9095
9095
  } catch {
9096
9096
  }
9097
- const bn = "av-spinner", df = ({
9097
+ const bn = "av-spinner", lf = ({
9098
9098
  spinnerRef: e,
9099
9099
  mode: t = "system",
9100
9100
  type: r = "circle",
@@ -9141,7 +9141,7 @@ try {
9141
9141
  });
9142
9142
  } catch {
9143
9143
  }
9144
- const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
9144
+ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", df = ({
9145
9145
  type: e,
9146
9146
  size: t,
9147
9147
  labelRight: r,
@@ -9177,7 +9177,7 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
9177
9177
  "h-12": t === "large" && s && (r || a)
9178
9178
  });
9179
9179
  }
9180
- }, hf = ({
9180
+ }, uf = ({
9181
9181
  type: e,
9182
9182
  size: t,
9183
9183
  labelRight: r,
@@ -9200,7 +9200,7 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
9200
9200
  [o]: t === "large" && (r || a)
9201
9201
  });
9202
9202
  }
9203
- }, ff = ({
9203
+ }, hf = ({
9204
9204
  mode: e,
9205
9205
  noBackground: t,
9206
9206
  truncate: r,
@@ -9236,7 +9236,7 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
9236
9236
  return p("not-prose text-copy-lighter", {
9237
9237
  truncate: r
9238
9238
  });
9239
- }, mf = ({
9239
+ }, ff = ({
9240
9240
  mode: e,
9241
9241
  noBackground: t,
9242
9242
  variant: r
@@ -9266,13 +9266,13 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
9266
9266
  if (r === "selected")
9267
9267
  return "bg-action-selected-dark";
9268
9268
  }
9269
- }, pf = ({
9269
+ }, mf = ({
9270
9270
  radius: e
9271
9271
  }) => p({
9272
9272
  "rounded-full": e === "large",
9273
9273
  "rounded-md": e === "medium",
9274
9274
  "rounded-xs": e === "small"
9275
- }), gf = ({
9275
+ }), pf = ({
9276
9276
  mode: e,
9277
9277
  disabled: t,
9278
9278
  variant: r
@@ -9302,7 +9302,7 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
9302
9302
  });
9303
9303
  if (r === "selected")
9304
9304
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
9305
- }, yf = ({
9305
+ }, gf = ({
9306
9306
  mode: e,
9307
9307
  disabled: t,
9308
9308
  variant: r
@@ -9332,7 +9332,7 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
9332
9332
  });
9333
9333
  if (r === "selected")
9334
9334
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
9335
- }, bf = ({
9335
+ }, yf = ({
9336
9336
  mode: e,
9337
9337
  noBorder: t,
9338
9338
  variant: r
@@ -9362,14 +9362,14 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
9362
9362
  });
9363
9363
  if (r === "selected")
9364
9364
  return "border border-border-selected-dark";
9365
- }, vf = ({
9365
+ }, bf = ({
9366
9366
  focusMode: e
9367
9367
  }) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
9368
9368
  "focus:outline-focus-dark": e === "dark",
9369
9369
  "focus:outline-focus-light": e === "light",
9370
9370
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
9371
9371
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
9372
- }), wf = ({
9372
+ }), vf = ({
9373
9373
  mode: e,
9374
9374
  raw: t,
9375
9375
  iconClassName: r
@@ -9381,7 +9381,7 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
9381
9381
  "dark:text-copy-accent-dark": e === "system"
9382
9382
  },
9383
9383
  r
9384
- ), Ef = ({
9384
+ ), wf = ({
9385
9385
  animated: e
9386
9386
  }) => p({
9387
9387
  "transition-opacity duration-300 ease-in-out": e
@@ -9405,15 +9405,15 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
9405
9405
  animated: v
9406
9406
  }) => (h || (h = "primary"), r ? p(vn, t) : p(
9407
9407
  vn,
9408
- ff({
9408
+ hf({
9409
9409
  mode: a,
9410
9410
  variant: h,
9411
9411
  noBackground: u,
9412
9412
  truncate: m
9413
9413
  }),
9414
- mf({ mode: a, noBackground: u, variant: h }),
9415
- pf({ radius: y }),
9416
- uf({
9414
+ ff({ mode: a, noBackground: u, variant: h }),
9415
+ mf({ radius: y }),
9416
+ df({
9417
9417
  type: e,
9418
9418
  size: c,
9419
9419
  labelRight: d,
@@ -9421,11 +9421,11 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
9421
9421
  align: g,
9422
9422
  animated: v
9423
9423
  }),
9424
- hf({ type: e, size: c, labelRight: d, labelLeft: f }),
9425
- bf({ mode: a, variant: h, noBorder: l }),
9426
- vf({ focusMode: n }),
9424
+ uf({ type: e, size: c, labelRight: d, labelLeft: f }),
9425
+ yf({ mode: a, variant: h, noBorder: l }),
9426
+ bf({ focusMode: n }),
9427
+ pf({ mode: a, variant: h, disabled: s }),
9427
9428
  gf({ mode: a, variant: h, disabled: s }),
9428
- yf({ mode: a, variant: h, disabled: s }),
9429
9429
  {
9430
9430
  "w-full": o,
9431
9431
  "disabled:cursor-not-allowed disabled:opacity-50": s
@@ -9434,7 +9434,7 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
9434
9434
  "transition-[width] duration-300 ease-in": e === Zt && v
9435
9435
  }),
9436
9436
  t
9437
- )), kf = (e, t, r) => {
9437
+ )), Ef = (e, t, r) => {
9438
9438
  var a;
9439
9439
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e?.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
9440
9440
  }, ma = Z.forwardRef((e, t) => {
@@ -9444,7 +9444,7 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
9444
9444
  {
9445
9445
  ref: t,
9446
9446
  onClick: (s) => {
9447
- kf(s, a, r);
9447
+ Ef(s, a, r);
9448
9448
  },
9449
9449
  ...n
9450
9450
  }
@@ -9494,13 +9494,13 @@ const oo = Z.forwardRef(
9494
9494
  }
9495
9495
  );
9496
9496
  oo.displayName = "Button";
9497
- function _f() {
9497
+ function kf() {
9498
9498
  const e = R(!1);
9499
9499
  return $(() => (e.current = !0, () => {
9500
9500
  e.current = !1;
9501
9501
  }), []), W(() => e.current, []);
9502
9502
  }
9503
- function Sf(e) {
9503
+ function _f(e) {
9504
9504
  return he(() => e.every((t) => t == null) ? () => {
9505
9505
  } : (t) => {
9506
9506
  e.forEach((r) => {
@@ -9508,7 +9508,7 @@ function Sf(e) {
9508
9508
  });
9509
9509
  }, [...e]);
9510
9510
  }
9511
- const Tf = {
9511
+ const Sf = {
9512
9512
  x: 0,
9513
9513
  y: 0,
9514
9514
  width: 0,
@@ -9519,7 +9519,7 @@ const Tf = {
9519
9519
  right: 0
9520
9520
  };
9521
9521
  function vr(e) {
9522
- const t = _f(), r = R(0), a = R(null), [n, s] = F(Tf), o = he(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
9522
+ const t = kf(), r = R(0), a = R(null), [n, s] = F(Sf), o = he(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
9523
9523
  const l = c[0];
9524
9524
  l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
9525
9525
  a.current && t() && s(l.contentRect);
@@ -9536,14 +9536,14 @@ const Bt = {
9536
9536
  // w-8
9537
9537
  large: 48
9538
9538
  // w-12
9539
- }, Cf = {
9539
+ }, Tf = {
9540
9540
  small: 8 * 2,
9541
9541
  // px-2 x 2
9542
9542
  medium: 12 * 2,
9543
9543
  // px-3 x 2
9544
9544
  large: 16 * 2
9545
9545
  // px-4 x 2
9546
- }, If = 2, xf = 300, io = Z.forwardRef(
9546
+ }, Cf = 2, If = 300, io = Z.forwardRef(
9547
9547
  ({
9548
9548
  children: e,
9549
9549
  disabled: t = !1,
@@ -9584,15 +9584,15 @@ const Bt = {
9584
9584
  radius: v,
9585
9585
  variant: w,
9586
9586
  animated: S
9587
- }), _ = wf({ mode: r, raw: c, iconClassName: C }), k = Ef({ animated: S }), x = "flex items-center justify-center relative w-full h-full overflow-hidden", [E, V] = vr(), [A, z] = vr(), [P, J] = vr(), Q = R(0), L = R(null), M = R(null), q = Sf([I, L]);
9587
+ }), _ = vf({ mode: r, raw: c, iconClassName: C }), k = wf({ animated: S }), x = "flex items-center justify-center relative w-full h-full overflow-hidden", [E, V] = vr(), [A, z] = vr(), [P, J] = vr(), Q = R(0), L = R(null), M = R(null), q = _f([I, L]);
9588
9588
  return Ne(() => {
9589
- P && P.current && S && (Q.current = J.width + Cf[u] + (l ? 0 : If), L.current && !L.current.style.width && (L.current.style.width = `${Bt[u]}px`));
9589
+ P && P.current && S && (Q.current = J.width + Tf[u] + (l ? 0 : Cf), L.current && !L.current.style.width && (L.current.style.width = `${Bt[u]}px`));
9590
9590
  }, [J, P, u, l, S]), Ne(() => {
9591
9591
  if (L && L.current && S) {
9592
9592
  let B = Bt[u];
9593
9593
  h && E && V.width > 0 ? B = V.width + Q.current : m && A && z.width > 0 && (B = z.width + Q.current), M.current && clearTimeout(M.current), B !== parseInt(L.current.style.width || "0", 10) && (E.current && (E.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"), L.current.style.width = `${B}px`, B > Bt[u] && (M.current = setTimeout(() => {
9594
9594
  E.current && h && (E.current.style.opacity = "1"), A.current && m && (A.current.style.opacity = "1"), M.current = null;
9595
- }, xf * 0.8))), B === Bt[u] && (E.current && (E.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"));
9595
+ }, If * 0.8))), B === Bt[u] && (E.current && (E.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"));
9596
9596
  }
9597
9597
  }, [
9598
9598
  V,
@@ -9669,7 +9669,7 @@ try {
9669
9669
  });
9670
9670
  } catch {
9671
9671
  }
9672
- const Rf = Z.forwardRef(
9672
+ const xf = Z.forwardRef(
9673
9673
  ({
9674
9674
  children: e,
9675
9675
  mode: t = "system",
@@ -9707,10 +9707,10 @@ const Rf = Z.forwardRef(
9707
9707
  ) });
9708
9708
  }
9709
9709
  );
9710
- Rf.displayName = "ButtonSort";
9711
- const Af = 200, Nf = ({
9710
+ xf.displayName = "ButtonSort";
9711
+ const Rf = 200, Af = ({
9712
9712
  string: e,
9713
- idealLength: t = Af
9713
+ idealLength: t = Rf
9714
9714
  }) => {
9715
9715
  if (e.length <= t)
9716
9716
  return { string: e, isTruncated: !1 };
@@ -9721,7 +9721,7 @@ const Af = 200, Nf = ({
9721
9721
  string: e.slice(0, t + r),
9722
9722
  isTruncated: !0
9723
9723
  };
9724
- }, Of = ({
9724
+ }, Nf = ({
9725
9725
  children: e,
9726
9726
  length: t = 200,
9727
9727
  mode: r = "system",
@@ -9730,7 +9730,7 @@ const Af = 200, Nf = ({
9730
9730
  const [n, s] = F(!1);
9731
9731
  if (typeof e != "string")
9732
9732
  return e;
9733
- const { string: o, isTruncated: c } = Nf({
9733
+ const { string: o, isTruncated: c } = Af({
9734
9734
  string: e,
9735
9735
  idealLength: t
9736
9736
  });
@@ -9764,7 +9764,7 @@ try {
9764
9764
  });
9765
9765
  } catch {
9766
9766
  }
9767
- const $f = ({ content: e }) => /* @__PURE__ */ i(
9767
+ const Of = ({ content: e }) => /* @__PURE__ */ i(
9768
9768
  no,
9769
9769
  {
9770
9770
  tail: !0,
@@ -9772,14 +9772,14 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
9772
9772
  copyToClipboard: e,
9773
9773
  copyToClipboardFocusMode: "light",
9774
9774
  className: "mt-3",
9775
- children: /* @__PURE__ */ i(Of, { mode: "light", focusMode: "light", children: e })
9775
+ children: /* @__PURE__ */ i(Nf, { mode: "light", focusMode: "light", children: e })
9776
9776
  }
9777
- ), En = 2, Pf = nt(
9777
+ ), En = 2, $f = nt(
9778
9778
  () => import(
9779
9779
  /* webpackChunkName: "LazyMessageAssistant" */
9780
- "./ChatBubbleAssistant.CgnmkLWA.js"
9780
+ "./ChatBubbleAssistant.HIDiXPqt.js"
9781
9781
  )
9782
- ), Mf = Z.memo(
9782
+ ), Pf = Z.memo(
9783
9783
  ({
9784
9784
  role: e,
9785
9785
  content: t,
@@ -9790,8 +9790,8 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
9790
9790
  const {
9791
9791
  state: { restoring: s, streaming: o }
9792
9792
  } = X(be);
9793
- return e === dd && t ? /* @__PURE__ */ i($f, { content: t }) : o && (e === Gt || e === _r) && (!t || t && t.length < En) ? /* @__PURE__ */ i(no, { tail: !0, children: /* @__PURE__ */ i(df, { type: "dots" }) }) : (e === Gt || e === _r) && t && t.length >= En ? /* @__PURE__ */ i(An, { fallback: /* @__PURE__ */ i("span", {}), children: /* @__PURE__ */ i(
9794
- Pf,
9793
+ return e === dd && t ? /* @__PURE__ */ i(Of, { content: t }) : o && (e === Gt || e === _r) && (!t || t && t.length < En) ? /* @__PURE__ */ i(no, { tail: !0, children: /* @__PURE__ */ i(lf, { type: "dots" }) }) : (e === Gt || e === _r) && t && t.length >= En ? /* @__PURE__ */ i(An, { fallback: /* @__PURE__ */ i("span", {}), children: /* @__PURE__ */ i(
9794
+ $f,
9795
9795
  {
9796
9796
  role: e,
9797
9797
  content: t,
@@ -9802,7 +9802,7 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
9802
9802
  }
9803
9803
  ) }) : null;
9804
9804
  }
9805
- ), Lf = () => {
9805
+ ), Mf = () => {
9806
9806
  const { messages: e } = lt(), t = e ? e.map((r, a) => r.role === Gt ? a : -1).filter((r) => r !== -1).pop() : -1;
9807
9807
  return e && e.length > 0 ? /* @__PURE__ */ i("div", { className: "space-y-6 mt-2 @container", children: e?.map((r, a) => {
9808
9808
  let n;
@@ -9818,7 +9818,7 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
9818
9818
  }), c = o && o.length > 0 ? o.filter(Boolean).join(`
9819
9819
  `) : void 0, l = r.role === Gt && a === t;
9820
9820
  return /* @__PURE__ */ i(
9821
- Mf,
9821
+ Pf,
9822
9822
  {
9823
9823
  role: r.role,
9824
9824
  content: c,
@@ -9829,7 +9829,7 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
9829
9829
  s
9830
9830
  );
9831
9831
  }) }) : null;
9832
- }, Df = () => {
9832
+ }, Lf = () => {
9833
9833
  const { isAuthenticated: e } = Ue(), { ref: t, inViewport: r } = Li(), a = R(null), n = R(null), {
9834
9834
  state: { footerPosition: s, footerHeight: o, footerOffset: c }
9835
9835
  } = X(sa), {
@@ -9850,7 +9850,7 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
9850
9850
  }, [s, o, c]), /* @__PURE__ */ T(ue, { children: [
9851
9851
  /* @__PURE__ */ T("div", { className: f, ref: a, children: [
9852
9852
  /* @__PURE__ */ i(Ro, {}),
9853
- /* @__PURE__ */ i(Lf, {}),
9853
+ /* @__PURE__ */ i(Mf, {}),
9854
9854
  /* @__PURE__ */ i("div", { ref: t, className: "scroll-marker" }),
9855
9855
  /* @__PURE__ */ i("div", { ref: n, className: "pt-20" })
9856
9856
  ] }),
@@ -9978,7 +9978,7 @@ function co({
9978
9978
  className: Ra({
9979
9979
  extraClass: "mt-5"
9980
9980
  }),
9981
- children: /* @__PURE__ */ i(Ph, { isComponent: e })
9981
+ children: /* @__PURE__ */ i($h, { isComponent: e })
9982
9982
  }
9983
9983
  ),
9984
9984
  /* @__PURE__ */ i(
@@ -9992,7 +9992,7 @@ function co({
9992
9992
  style: {
9993
9993
  height: n
9994
9994
  },
9995
- children: /* @__PURE__ */ i(Df, {})
9995
+ children: /* @__PURE__ */ i(Lf, {})
9996
9996
  }
9997
9997
  ),
9998
9998
  /* @__PURE__ */ i(Ch, { isComponent: e })
@@ -10007,51 +10007,51 @@ function co({
10007
10007
  );
10008
10008
  }
10009
10009
  co.displayName = "App";
10010
- const om = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: co }, Symbol.toStringTag, { value: "Module" }));
10010
+ const sm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: co }, Symbol.toStringTag, { value: "Module" }));
10011
10011
  export {
10012
- jf as $e,
10013
- om as App,
10012
+ Ff as $e,
10013
+ sm as App,
10014
10014
  sh as ButtonScroll,
10015
10015
  Zn as CHAT_SET_PROVIDER,
10016
10016
  et as CHAT_SET_STATUS,
10017
10017
  be as ChatContext,
10018
10018
  Ge as ConfirmationPanel,
10019
10019
  jt as E,
10020
- Wf as Fe,
10021
- Kf as Ge,
10022
- Ff as He,
10020
+ jf as Fe,
10021
+ Wf as Ge,
10022
+ zf as He,
10023
10023
  aa as HistoryContext,
10024
10024
  Ha as LazyToastContainerWrapper,
10025
- lf as Me,
10025
+ cf as Me,
10026
10026
  xs as O,
10027
10027
  no as Oe,
10028
10028
  bc as Pe,
10029
10029
  ht as R,
10030
10030
  Ve as SERVICE_TYPES,
10031
- Jf as Ye,
10031
+ Gf as Ye,
10032
10032
  gi as a,
10033
10033
  hi as a$1,
10034
10034
  Oe as at,
10035
10035
  Li as b,
10036
10036
  ps as getDefaultExportFromCjs,
10037
10037
  Vi as i,
10038
- Zf as j,
10038
+ Xf as j,
10039
10039
  es as mutateCall,
10040
10040
  ra as n,
10041
- em as nt,
10041
+ Zf as nt,
10042
10042
  Is as o,
10043
10043
  ki as p,
10044
10044
  ci as p$1,
10045
- Gf as qe,
10045
+ Kf as qe,
10046
10046
  Xu as rr,
10047
10047
  Ic as setNewProvider,
10048
- sm as showErrorToast,
10048
+ nm as showErrorToast,
10049
10049
  Ys as showSuccessToast,
10050
10050
  lt as useAiChat,
10051
- Yf as useChangelogs,
10051
+ qf as useChangelogs,
10052
10052
  ts as useChatsHistory,
10053
- Xf as useChatsUsage,
10054
- qf as useServerCapabilities,
10055
- Qf as useUserChatStats,
10053
+ Qf as useChatsUsage,
10054
+ Jf as useServerCapabilities,
10055
+ Yf as useUserChatStats,
10056
10056
  Yt as useUserPreferences
10057
10057
  };