@versini/sassysaint 8.0.0 → 8.0.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 x, Fragment as Q } from "react/jsx-runtime";
2
- import { f as J, ACTION_SORT as Gt, ACTION_SEARCH as Ra, ACTION_RESET_PROMPT as Aa, ACTION_TOGGLE_PROMPT as La, useSWR as it, DEFAULT_AI_PROVIDER as qn, isProbablyiPhone as Jt, re as pe, DEFAULT_ICON_ACTION_SIZE as ke, L as yt, j as Te, C as Le, LOCAL_STORAGE_PREFIX as Be, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Zn, un as ae, useUserPreferences as bt, serviceCall as Ke, SERVICE_TYPES as Xe, PROVIDER_ANTHROPIC as Bt, PROVIDER_OPENAI as Mr, setNewProvider as $a, PROMPT_CLASSNAME as Qn, PROMPT_EDITABLE_AREA_CLASSNAME as eo, ROLE_INTERNAL as Yt, ERROR_MESSAGE as to, CLIPBOARD_PROMPT as Br, INPUT_PLACEHOLDER_TEXT as ro, FOOTER_DISCLAIMER as ao, useServerCapabilities as no, R as me, CARDS as K, renderDataAsList as ht, pluralize as dr, ABOUT_TITLE as oo, INFINITE_SCROLL_LIMIT as Or, INFINITE_SCROLL_THRESHOLD as Pr, LOCAL_STORAGE_SORT as Ma, useChatsHistory as so, LOCAL_STORAGE_SEARCH as Ba, HISTORY_TITLE as io, fe as lo, debounce as co, M as uo, isElectron as mo, l as zr, durationFormatter as ho, useUserChatStats as fo, PROFILE_TITLE as po, LOCAL_STORAGE_CHAT_DETAILS as go, SETTINGS_TITLE as yo, APP_NAME as bo, PROMPTS_DESCRIPTION as vo, getCurrentGeoLocation as ko, LOG_OUT as Dr, ROLE_ASSISTANT as wo, ROLE_USER as xo, getMessageContaintWrapperClass as _o, UI_FOOTER_BUFFER as Oa, UI_BUTTON_SCROLL_BUFFER as To, Logo as Io, UI_DEFAULT_MAIN_HEIGHT as Vr, usePreloadChatsHistory as No, serverUrl as Eo, getMainPaddingClass as Fr, I as Co } from "./index.qsG-2ad0.js";
2
+ import { f as J, ACTION_SORT as Gt, ACTION_SEARCH as Ra, ACTION_RESET_PROMPT as Aa, ACTION_TOGGLE_PROMPT as La, useSWR as it, DEFAULT_AI_PROVIDER as qn, isProbablyiPhone as Jt, re as pe, DEFAULT_ICON_ACTION_SIZE as we, L as yt, j as Te, C as Le, LOCAL_STORAGE_PREFIX as Be, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Zn, un as ae, useUserPreferences as bt, serviceCall as Ke, SERVICE_TYPES as Xe, PROVIDER_ANTHROPIC as Bt, PROVIDER_OPENAI as Mr, setNewProvider as $a, PROMPT_CLASSNAME as Qn, PROMPT_EDITABLE_AREA_CLASSNAME as eo, ROLE_INTERNAL as Yt, ERROR_MESSAGE as to, CLIPBOARD_PROMPT as Br, INPUT_PLACEHOLDER_TEXT as ro, FOOTER_DISCLAIMER as ao, useServerCapabilities as no, R as me, CARDS as K, renderDataAsList as ht, pluralize as dr, ABOUT_TITLE as oo, INFINITE_SCROLL_LIMIT as Or, INFINITE_SCROLL_THRESHOLD as Pr, LOCAL_STORAGE_SORT as Ma, useChatsHistory as so, LOCAL_STORAGE_SEARCH as Ba, HISTORY_TITLE as io, fe as lo, debounce as co, M as uo, isElectron as mo, l as Dr, durationFormatter as ho, useUserChatStats as fo, PROFILE_TITLE as po, LOCAL_STORAGE_CHAT_DETAILS as go, SETTINGS_TITLE as yo, APP_NAME as bo, PROMPTS_DESCRIPTION as vo, getCurrentGeoLocation as ko, LOG_OUT as zr, ROLE_ASSISTANT as wo, ROLE_USER as xo, getMessageContaintWrapperClass as _o, UI_FOOTER_BUFFER as Oa, UI_BUTTON_SCROLL_BUFFER as To, Logo as Io, UI_DEFAULT_MAIN_HEIGHT as Vr, usePreloadChatsHistory as No, serverUrl as Eo, getMainPaddingClass as Fr, I as Co } from "./index.DQKfDWnQ.js";
3
3
  import h from "clsx";
4
4
  import * as Z from "react";
5
5
  import G, { useEffect as B, useRef as A, useState as P, useCallback as U, useSyncExternalStore as So, useMemo as de, useId as vt, useLayoutEffect as ee, useContext as j, createContext as Ro, forwardRef as Pa, Fragment as Ao, useReducer as Ge, lazy as Lo, Suspense as Hr } from "react";
6
- import { useMergeRefs as ur, FloatingPortal as za, FloatingOverlay as $o, FloatingFocusManager as Da, useFloating as Va, useClick as Fa, useDismiss as Ha, useRole as Ua, useInteractions as ja, useFloatingTree as Wa, useFloatingNodeId as Mo, useListItem as Ga, offset as Bo, flip as Oo, shift as Po, autoUpdate as zo, useListNavigation as Do, useTypeahead as Vo, FloatingNode as Fo, FloatingList as Ho, FloatingTree as Uo } from "@floating-ui/react";
6
+ import { useMergeRefs as ur, FloatingPortal as Da, FloatingOverlay as $o, FloatingFocusManager as za, useFloating as Va, useClick as Fa, useDismiss as Ha, useRole as Ua, useInteractions as ja, useFloatingTree as Wa, useFloatingNodeId as Mo, useListItem as Ga, offset as Bo, flip as Oo, shift as Po, autoUpdate as Do, useListNavigation as zo, useTypeahead as Vo, FloatingNode as Fo, FloatingList as Ho, FloatingTree as Uo } from "@floating-ui/react";
7
7
  function Ja(e) {
8
8
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
9
9
  }
@@ -1078,11 +1078,11 @@ const kt = "thead", mr = "tfoot", Ae = "tbody", he = {
1078
1078
  "dark:text-copy-accent-dark": e === "system"
1079
1079
  },
1080
1080
  r
1081
- ), zs = ({
1081
+ ), Ds = ({
1082
1082
  animated: e
1083
1083
  }) => h({
1084
1084
  "transition-opacity duration-300 ease-in": e
1085
- }), Ds = ({
1085
+ }), zs = ({
1086
1086
  type: e,
1087
1087
  className: t,
1088
1088
  raw: r,
@@ -1221,7 +1221,7 @@ const js = {
1221
1221
  animated: E = !1,
1222
1222
  ...S
1223
1223
  }, b) => {
1224
- const _ = Ds({
1224
+ const _ = zs({
1225
1225
  type: wt,
1226
1226
  mode: r,
1227
1227
  focusMode: a,
@@ -1238,7 +1238,7 @@ const js = {
1238
1238
  radius: v,
1239
1239
  variant: T,
1240
1240
  animated: E
1241
- }), w = Ps({ mode: r, raw: l, iconClassName: I }), k = zs({ animated: E }), [N, O] = Ot(), [C, M] = Ot(), [R, L] = Ot(), V = A(0), $ = A(null), F = Hs([b, $]);
1241
+ }), w = Ps({ mode: r, raw: l, iconClassName: I }), k = Ds({ animated: E }), [N, O] = Ot(), [C, M] = Ot(), [R, L] = Ot(), V = A(0), $ = A(null), F = Hs([b, $]);
1242
1242
  return ee(() => {
1243
1243
  R && R.current && E && (V.current = L.width + Ws[m] + (c ? 0 : Gs));
1244
1244
  }, [L, R, m, c, E]), ee(() => {
@@ -1625,15 +1625,15 @@ for (let e = 0; e < 256; ++e)
1625
1625
  function ti(e, t = 0) {
1626
1626
  return (q[e[t + 0]] + q[e[t + 1]] + q[e[t + 2]] + q[e[t + 3]] + "-" + q[e[t + 4]] + q[e[t + 5]] + "-" + q[e[t + 6]] + q[e[t + 7]] + "-" + q[e[t + 8]] + q[e[t + 9]] + "-" + q[e[t + 10]] + q[e[t + 11]] + q[e[t + 12]] + q[e[t + 13]] + q[e[t + 14]] + q[e[t + 15]]).toLowerCase();
1627
1627
  }
1628
- let zt;
1628
+ let Dt;
1629
1629
  const ri = new Uint8Array(16);
1630
1630
  function ai() {
1631
- if (!zt) {
1631
+ if (!Dt) {
1632
1632
  if (typeof crypto > "u" || !crypto.getRandomValues)
1633
1633
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1634
- zt = crypto.getRandomValues.bind(crypto);
1634
+ Dt = crypto.getRandomValues.bind(crypto);
1635
1635
  }
1636
- return zt(ri);
1636
+ return Dt(ri);
1637
1637
  }
1638
1638
  const ni = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Kr = { randomUUID: ni };
1639
1639
  function Ee(e, t, r) {
@@ -1694,7 +1694,7 @@ const oi = (e, t) => {
1694
1694
  default:
1695
1695
  return e;
1696
1696
  }
1697
- }, _e = "CHAT_SET_STATUS", et = "CHAT_RESET", li = "CHAT_LOADING", ci = (e, t) => {
1697
+ }, ve = "CHAT_SET_STATUS", et = "CHAT_RESET", li = "CHAT_LOADING", ci = (e, t) => {
1698
1698
  var r, a;
1699
1699
  switch (t.type) {
1700
1700
  case li:
@@ -1702,7 +1702,7 @@ const oi = (e, t) => {
1702
1702
  ...e,
1703
1703
  lastLoadingTimestamp: Date.now()
1704
1704
  };
1705
- case _e:
1705
+ case ve:
1706
1706
  return {
1707
1707
  ...e,
1708
1708
  reseting: !1,
@@ -2317,7 +2317,7 @@ var Ri = {
2317
2317
  value: e
2318
2318
  };
2319
2319
  }
2320
- }, zi = {
2320
+ }, Di = {
2321
2321
  code: "d",
2322
2322
  name: "finish_message",
2323
2323
  parse: (e) => {
@@ -2336,7 +2336,7 @@ var Ri = {
2336
2336
  value: t
2337
2337
  };
2338
2338
  }
2339
- }, Di = {
2339
+ }, zi = {
2340
2340
  code: "e",
2341
2341
  name: "finish_step",
2342
2342
  parse: (e) => {
@@ -2399,8 +2399,8 @@ var Ri = {
2399
2399
  Bi,
2400
2400
  Oi,
2401
2401
  Pi,
2402
- zi,
2403
2402
  Di,
2403
+ zi,
2404
2404
  Vi,
2405
2405
  Fi,
2406
2406
  Hi
@@ -2798,7 +2798,7 @@ function gn(e) {
2798
2798
  ...e.content ? [{ type: "text", text: e.content }] : []
2799
2799
  ];
2800
2800
  }
2801
- function Dt(e) {
2801
+ function zt(e) {
2802
2802
  return e.map((t) => ({
2803
2803
  ...t,
2804
2804
  parts: gn(t)
@@ -2923,7 +2923,7 @@ function sl({
2923
2923
  [b, "messages"],
2924
2924
  null,
2925
2925
  {
2926
- fallbackData: r != null ? Dt(r) : _
2926
+ fallbackData: r != null ? zt(r) : _
2927
2927
  }
2928
2928
  ), N = A(w || []);
2929
2929
  B(() => {
@@ -2946,11 +2946,11 @@ function sl({
2946
2946
  };
2947
2947
  }, [f, p, g]);
2948
2948
  const H = U(
2949
- async (D) => {
2949
+ async (z) => {
2950
2950
  var Y, X;
2951
2951
  L("submitted"), $(void 0);
2952
- const z = Dt(D.messages), ne = z.length, be = tr(
2953
- (Y = z[z.length - 1]) == null ? void 0 : Y.toolInvocations
2952
+ const D = zt(z.messages), ne = D.length, be = tr(
2953
+ (Y = D[D.length - 1]) == null ? void 0 : Y.toolInvocations
2954
2954
  );
2955
2955
  try {
2956
2956
  const se = new AbortController();
@@ -2959,8 +2959,8 @@ function sl({
2959
2959
  C,
2960
2960
  I
2961
2961
  ), Kn = N.current;
2962
- je(z, !1);
2963
- const Xn = n ? z : z.map(
2962
+ je(D, !1);
2963
+ const Xn = n ? D : D.map(
2964
2964
  ({
2965
2965
  role: Mt,
2966
2966
  content: We,
@@ -2985,21 +2985,21 @@ function sl({
2985
2985
  api: e,
2986
2986
  body: (X = s == null ? void 0 : s({
2987
2987
  id: S,
2988
- messages: z,
2989
- requestData: D.data,
2990
- requestBody: D.body
2988
+ messages: D,
2989
+ requestData: z.data,
2990
+ requestBody: z.body
2991
2991
  })) != null ? X : {
2992
2992
  id: S,
2993
2993
  messages: Xn,
2994
- data: D.data,
2994
+ data: z.data,
2995
2995
  ...W.current.body,
2996
- ...D.body
2996
+ ...z.body
2997
2997
  },
2998
2998
  streamProtocol: c,
2999
2999
  credentials: W.current.credentials,
3000
3000
  headers: {
3001
3001
  ...W.current.headers,
3002
- ...D.headers
3002
+ ...z.headers
3003
3003
  },
3004
3004
  abortController: () => F.current,
3005
3005
  restoreMessagesOnFailure() {
@@ -3009,7 +3009,7 @@ function sl({
3009
3009
  onUpdate({ message: Mt, data: We, replaceLastMessage: st }) {
3010
3010
  L("streaming"), je(
3011
3011
  [
3012
- ...st ? z.slice(0, z.length - 1) : z,
3012
+ ...st ? D.slice(0, D.length - 1) : D,
3013
3013
  Mt
3014
3014
  ],
3015
3015
  !1
@@ -3022,7 +3022,7 @@ function sl({
3022
3022
  onFinish: u,
3023
3023
  generateId: y,
3024
3024
  fetch: v,
3025
- lastMessage: z[z.length - 1]
3025
+ lastMessage: D[D.length - 1]
3026
3026
  }), F.current = null, L("ready");
3027
3027
  } catch (se) {
3028
3028
  if (se.name === "AbortError")
@@ -3062,57 +3062,57 @@ function sl({
3062
3062
  S
3063
3063
  ]
3064
3064
  ), Re = U(
3065
- async (D, {
3065
+ async (z, {
3066
3066
  data: Y,
3067
3067
  headers: X,
3068
- body: z,
3068
+ body: D,
3069
3069
  experimental_attachments: ne
3070
3070
  } = {}) => {
3071
3071
  var be, oe;
3072
3072
  const se = await ea(
3073
3073
  ne
3074
3074
  ), je = N.current.concat({
3075
- ...D,
3076
- id: (be = D.id) != null ? be : y(),
3077
- createdAt: (oe = D.createdAt) != null ? oe : /* @__PURE__ */ new Date(),
3075
+ ...z,
3076
+ id: (be = z.id) != null ? be : y(),
3077
+ createdAt: (oe = z.createdAt) != null ? oe : /* @__PURE__ */ new Date(),
3078
3078
  experimental_attachments: se.length > 0 ? se : void 0,
3079
- parts: gn(D)
3079
+ parts: gn(z)
3080
3080
  });
3081
- return H({ messages: je, headers: X, body: z, data: Y });
3081
+ return H({ messages: je, headers: X, body: D, data: Y });
3082
3082
  },
3083
3083
  [H, y]
3084
3084
  ), Rt = U(
3085
- async ({ data: D, headers: Y, body: X } = {}) => {
3086
- const z = N.current;
3087
- if (z.length === 0)
3085
+ async ({ data: z, headers: Y, body: X } = {}) => {
3086
+ const D = N.current;
3087
+ if (D.length === 0)
3088
3088
  return null;
3089
- const ne = z[z.length - 1];
3089
+ const ne = D[D.length - 1];
3090
3090
  return H({
3091
- messages: ne.role === "assistant" ? z.slice(0, -1) : z,
3091
+ messages: ne.role === "assistant" ? D.slice(0, -1) : D,
3092
3092
  headers: Y,
3093
3093
  body: X,
3094
- data: D
3094
+ data: z
3095
3095
  });
3096
3096
  },
3097
3097
  [H]
3098
3098
  ), ot = U(() => {
3099
3099
  F.current && (F.current.abort(), F.current = null);
3100
3100
  }, []), At = U(
3101
- (D) => {
3102
- typeof D == "function" && (D = D(N.current));
3103
- const Y = Dt(D);
3101
+ (z) => {
3102
+ typeof z == "function" && (z = z(N.current));
3103
+ const Y = zt(z);
3104
3104
  k(Y, !1), N.current = Y;
3105
3105
  },
3106
3106
  [k]
3107
3107
  ), Lt = U(
3108
- (D) => {
3109
- typeof D == "function" && (D = D(M.current)), C(D, !1), M.current = D;
3108
+ (z) => {
3109
+ typeof z == "function" && (z = z(M.current)), C(z, !1), M.current = z;
3110
3110
  },
3111
3111
  [C]
3112
- ), [xe, Ue] = P(a), ye = U(
3113
- async (D, Y = {}, X) => {
3114
- var z;
3115
- if ((z = D == null ? void 0 : D.preventDefault) == null || z.call(D), !xe && !Y.allowEmptySubmit)
3112
+ ), [_e, Ue] = P(a), ye = U(
3113
+ async (z, Y = {}, X) => {
3114
+ var D;
3115
+ if ((D = z == null ? void 0 : z.preventDefault) == null || D.call(z), !_e && !Y.allowEmptySubmit)
3116
3116
  return;
3117
3117
  X && (W.current = {
3118
3118
  ...W.current,
@@ -3125,9 +3125,9 @@ function sl({
3125
3125
  id: y(),
3126
3126
  createdAt: /* @__PURE__ */ new Date(),
3127
3127
  role: "user",
3128
- content: xe,
3128
+ content: _e,
3129
3129
  experimental_attachments: ne.length > 0 ? ne : void 0,
3130
- parts: [{ type: "text", text: xe }]
3130
+ parts: [{ type: "text", text: _e }]
3131
3131
  }),
3132
3132
  headers: Y.headers,
3133
3133
  body: Y.body,
@@ -3135,19 +3135,19 @@ function sl({
3135
3135
  };
3136
3136
  H(oe), Ue("");
3137
3137
  },
3138
- [xe, y, H]
3139
- ), ue = (D) => {
3140
- Ue(D.target.value);
3138
+ [_e, y, H]
3139
+ ), ue = (z) => {
3140
+ Ue(z.target.value);
3141
3141
  }, $t = U(
3142
- ({ toolCallId: D, result: Y }) => {
3142
+ ({ toolCallId: z, result: Y }) => {
3143
3143
  const X = N.current;
3144
3144
  rl({
3145
3145
  messages: X,
3146
- toolCallId: D,
3146
+ toolCallId: z,
3147
3147
  toolResult: Y
3148
3148
  }), k(X, !1);
3149
- const z = X[X.length - 1];
3150
- yn(z) && H({ messages: X });
3149
+ const D = X[X.length - 1];
3150
+ yn(D) && H({ messages: X });
3151
3151
  },
3152
3152
  [k, H]
3153
3153
  );
@@ -3161,7 +3161,7 @@ function sl({
3161
3161
  append: Re,
3162
3162
  reload: Rt,
3163
3163
  stop: ot,
3164
- input: xe,
3164
+ input: _e,
3165
3165
  setInput: Ue,
3166
3166
  handleInputChange: ue,
3167
3167
  handleSubmit: ye,
@@ -3306,11 +3306,11 @@ function vn(e) {
3306
3306
  function vr(e) {
3307
3307
  return e === "y" ? "height" : "width";
3308
3308
  }
3309
- function ze(e) {
3309
+ function De(e) {
3310
3310
  return ["top", "bottom"].includes(Ce(e)) ? "y" : "x";
3311
3311
  }
3312
3312
  function kr(e) {
3313
- return vn(ze(e));
3313
+ return vn(De(e));
3314
3314
  }
3315
3315
  function fl(e, t, r) {
3316
3316
  r === void 0 && (r = !1);
@@ -3386,7 +3386,7 @@ function na(e, t, r) {
3386
3386
  reference: a,
3387
3387
  floating: n
3388
3388
  } = e;
3389
- const o = ze(t), s = kr(t), l = vr(s), c = Ce(t), d = o === "y", u = a.x + a.width / 2 - n.width / 2, m = a.y + a.height / 2 - n.height / 2, f = a[l] / 2 - n[l] / 2;
3389
+ const o = De(t), s = kr(t), l = vr(s), c = Ce(t), d = o === "y", u = a.x + a.width / 2 - n.width / 2, m = a.y + a.height / 2 - n.height / 2, f = a[l] / 2 - n[l] / 2;
3390
3390
  let p;
3391
3391
  switch (c) {
3392
3392
  case "top":
@@ -3596,7 +3596,7 @@ const kl = (e) => ({
3596
3596
  } = tt(e, t);
3597
3597
  if ((r = o.arrow) != null && r.alignmentOffset)
3598
3598
  return {};
3599
- const T = Ce(n), I = ze(l), E = Ce(l) === l, S = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), b = f || (E || !y ? [pt(l)] : pl(l)), _ = g !== "none";
3599
+ const T = Ce(n), I = De(l), E = Ce(l) === l, S = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), b = f || (E || !y ? [pt(l)] : pl(l)), _ = g !== "none";
3600
3600
  !f && _ && b.push(...yl(l, y, g, S));
3601
3601
  const w = [l, ...b], k = await wn(t, v), N = [];
3602
3602
  let O = ((a = o.flip) == null ? void 0 : a.overflows) || [];
@@ -3627,7 +3627,7 @@ const kl = (e) => ({
3627
3627
  var R;
3628
3628
  const F = (R = O.filter((W) => {
3629
3629
  if (_) {
3630
- const H = ze(W.placement);
3630
+ const H = De(W.placement);
3631
3631
  return H === I || // Create a bias to the `y` side axis due to horizontal
3632
3632
  // reading directions favoring greater width.
3633
3633
  H === "y";
@@ -3657,7 +3657,7 @@ async function xl(e, t) {
3657
3657
  placement: r,
3658
3658
  platform: a,
3659
3659
  elements: n
3660
- } = e, o = await (a.isRTL == null ? void 0 : a.isRTL(n.floating)), s = Ce(r), l = rt(r), c = ze(r) === "y", d = ["left", "top"].includes(s) ? -1 : 1, u = o && c ? -1 : 1, m = tt(t, e);
3660
+ } = e, o = await (a.isRTL == null ? void 0 : a.isRTL(n.floating)), s = Ce(r), l = rt(r), c = De(r) === "y", d = ["left", "top"].includes(s) ? -1 : 1, u = o && c ? -1 : 1, m = tt(t, e);
3661
3661
  let {
3662
3662
  mainAxis: f,
3663
3663
  crossAxis: p,
@@ -3729,7 +3729,7 @@ const _l = function(e) {
3729
3729
  } = tt(e, t), d = {
3730
3730
  x: r,
3731
3731
  y: a
3732
- }, u = await wn(t, c), m = ze(Ce(n)), f = vn(m);
3732
+ }, u = await wn(t, c), m = De(Ce(n)), f = vn(m);
3733
3733
  let p = d[f], g = d[m];
3734
3734
  if (o) {
3735
3735
  const v = f === "y" ? "top" : "left", T = f === "y" ? "bottom" : "right", I = p + u[v], E = p - u[T];
@@ -3768,7 +3768,7 @@ function te(e) {
3768
3768
  var t;
3769
3769
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
3770
3770
  }
3771
- function we(e) {
3771
+ function xe(e) {
3772
3772
  var t;
3773
3773
  return (t = (xn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
3774
3774
  }
@@ -3811,7 +3811,7 @@ function wr(e) {
3811
3811
  }
3812
3812
  function Nl(e) {
3813
3813
  let t = Ie(e);
3814
- for (; ge(t) && !De(t); ) {
3814
+ for (; ge(t) && !ze(t); ) {
3815
3815
  if (wr(t))
3816
3816
  return t;
3817
3817
  if (_t(t))
@@ -3823,7 +3823,7 @@ function Nl(e) {
3823
3823
  function xr() {
3824
3824
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
3825
3825
  }
3826
- function De(e) {
3826
+ function ze(e) {
3827
3827
  return ["html", "body", "#document"].includes(He(e));
3828
3828
  }
3829
3829
  function ce(e) {
@@ -3846,13 +3846,13 @@ function Ie(e) {
3846
3846
  e.assignedSlot || // DOM Element detected.
3847
3847
  e.parentNode || // ShadowRoot detected.
3848
3848
  oa(e) && e.host || // Fallback.
3849
- we(e)
3849
+ xe(e)
3850
3850
  );
3851
3851
  return oa(t) ? t.host : t;
3852
3852
  }
3853
3853
  function _n(e) {
3854
3854
  const t = Ie(e);
3855
- return De(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ge(t) && at(t) ? t : _n(t);
3855
+ return ze(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ge(t) && at(t) ? t : _n(t);
3856
3856
  }
3857
3857
  function Tn(e, t, r) {
3858
3858
  var a;
@@ -3926,7 +3926,7 @@ function Qe(e, t, r, a) {
3926
3926
  }
3927
3927
  function _r(e, t) {
3928
3928
  const r = Tt(e).scrollLeft;
3929
- return t ? t.left + r : Qe(we(e)).left + r;
3929
+ return t ? t.left + r : Qe(xe(e)).left + r;
3930
3930
  }
3931
3931
  function Cn(e, t, r) {
3932
3932
  r === void 0 && (r = !1);
@@ -3946,7 +3946,7 @@ function Sl(e) {
3946
3946
  offsetParent: a,
3947
3947
  strategy: n
3948
3948
  } = e;
3949
- const o = n === "fixed", s = we(a), l = t ? _t(t.floating) : !1;
3949
+ const o = n === "fixed", s = xe(a), l = t ? _t(t.floating) : !1;
3950
3950
  if (a === s || l && o)
3951
3951
  return r;
3952
3952
  let c = {
@@ -3970,7 +3970,7 @@ function Rl(e) {
3970
3970
  return Array.from(e.getClientRects());
3971
3971
  }
3972
3972
  function Al(e) {
3973
- const t = we(e), r = Tt(e), a = e.ownerDocument.body, n = $e(t.scrollWidth, t.clientWidth, a.scrollWidth, a.clientWidth), o = $e(t.scrollHeight, t.clientHeight, a.scrollHeight, a.clientHeight);
3973
+ const t = xe(e), r = Tt(e), a = e.ownerDocument.body, n = $e(t.scrollWidth, t.clientWidth, a.scrollWidth, a.clientWidth), o = $e(t.scrollHeight, t.clientHeight, a.scrollHeight, a.clientHeight);
3974
3974
  let s = -r.scrollLeft + _r(e);
3975
3975
  const l = -r.scrollTop;
3976
3976
  return ce(a).direction === "rtl" && (s += $e(t.clientWidth, a.clientWidth) - n), {
@@ -3981,7 +3981,7 @@ function Al(e) {
3981
3981
  };
3982
3982
  }
3983
3983
  function Ll(e, t) {
3984
- const r = te(e), a = we(e), n = r.visualViewport;
3984
+ const r = te(e), a = xe(e), n = r.visualViewport;
3985
3985
  let o = a.clientWidth, s = a.clientHeight, l = 0, c = 0;
3986
3986
  if (n) {
3987
3987
  o = n.width, s = n.height;
@@ -4009,7 +4009,7 @@ function ia(e, t, r) {
4009
4009
  if (t === "viewport")
4010
4010
  a = Ll(e, r);
4011
4011
  else if (t === "document")
4012
- a = Al(we(e));
4012
+ a = Al(xe(e));
4013
4013
  else if (le(t))
4014
4014
  a = $l(t, r);
4015
4015
  else {
@@ -4025,7 +4025,7 @@ function ia(e, t, r) {
4025
4025
  }
4026
4026
  function Sn(e, t) {
4027
4027
  const r = Ie(e);
4028
- return r === t || !le(r) || De(r) ? !1 : ce(r).position === "fixed" || Sn(r, t);
4028
+ return r === t || !le(r) || ze(r) ? !1 : ce(r).position === "fixed" || Sn(r, t);
4029
4029
  }
4030
4030
  function Ml(e, t) {
4031
4031
  const r = t.get(e);
@@ -4034,7 +4034,7 @@ function Ml(e, t) {
4034
4034
  let a = Tn(e, []).filter((l) => le(l) && He(l) !== "body"), n = null;
4035
4035
  const o = ce(e).position === "fixed";
4036
4036
  let s = o ? Ie(e) : e;
4037
- for (; le(s) && !De(s); ) {
4037
+ for (; le(s) && !ze(s); ) {
4038
4038
  const l = ce(s), c = wr(s);
4039
4039
  !c && l.position === "fixed" && (n = null), (o ? !c && !n : !c && l.position === "static" && n && ["absolute", "fixed"].includes(n.position) || at(s) && !c && Sn(e, s)) ? a = a.filter((d) => d !== s) : n = l, s = Ie(s);
4040
4040
  }
@@ -4069,7 +4069,7 @@ function Ol(e) {
4069
4069
  };
4070
4070
  }
4071
4071
  function Pl(e, t, r) {
4072
- const a = ge(t), n = we(t), o = r === "fixed", s = Qe(e, !0, o, t);
4072
+ const a = ge(t), n = xe(t), o = r === "fixed", s = Qe(e, !0, o, t);
4073
4073
  let l = {
4074
4074
  scrollLeft: 0,
4075
4075
  scrollTop: 0
@@ -4097,7 +4097,7 @@ function la(e, t) {
4097
4097
  if (t)
4098
4098
  return t(e);
4099
4099
  let r = e.offsetParent;
4100
- return we(e) === r && (r = r.ownerDocument.body), r;
4100
+ return xe(e) === r && (r = r.ownerDocument.body), r;
4101
4101
  }
4102
4102
  function Rn(e, t) {
4103
4103
  const r = te(e);
@@ -4105,7 +4105,7 @@ function Rn(e, t) {
4105
4105
  return r;
4106
4106
  if (!ge(e)) {
4107
4107
  let n = Ie(e);
4108
- for (; n && !De(n); ) {
4108
+ for (; n && !ze(n); ) {
4109
4109
  if (le(n) && !Ft(n))
4110
4110
  return n;
4111
4111
  n = Ie(n);
@@ -4115,9 +4115,9 @@ function Rn(e, t) {
4115
4115
  let a = la(e, t);
4116
4116
  for (; a && Il(a) && Ft(a); )
4117
4117
  a = la(a, t);
4118
- return a && De(a) && Ft(a) && !wr(a) ? r : a || Nl(e) || r;
4118
+ return a && ze(a) && Ft(a) && !wr(a) ? r : a || Nl(e) || r;
4119
4119
  }
4120
- const zl = async function(e) {
4120
+ const Dl = async function(e) {
4121
4121
  const t = this.getOffsetParent || Rn, r = this.getDimensions, a = await r(e.floating);
4122
4122
  return {
4123
4123
  reference: Pl(e.reference, await t(e.floating), e.strategy),
@@ -4129,20 +4129,20 @@ const zl = async function(e) {
4129
4129
  }
4130
4130
  };
4131
4131
  };
4132
- function Dl(e) {
4132
+ function zl(e) {
4133
4133
  return ce(e).direction === "rtl";
4134
4134
  }
4135
4135
  const Vl = {
4136
4136
  convertOffsetParentRelativeRectToViewportRelativeRect: Sl,
4137
- getDocumentElement: we,
4137
+ getDocumentElement: xe,
4138
4138
  getClippingRect: Bl,
4139
4139
  getOffsetParent: Rn,
4140
- getElementRects: zl,
4140
+ getElementRects: Dl,
4141
4141
  getClientRects: Rl,
4142
4142
  getDimensions: Ol,
4143
4143
  getScale: Me,
4144
4144
  isElement: le,
4145
- isRTL: Dl
4145
+ isRTL: zl
4146
4146
  }, Fl = _l, Hl = Tl, Ul = wl, jl = kl, Wl = (e, t, r) => {
4147
4147
  const a = /* @__PURE__ */ new Map(), n = {
4148
4148
  platform: Vl,
@@ -4322,8 +4322,16 @@ const lt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Yl = (
4322
4322
  dispatch: r,
4323
4323
  setChatId: a,
4324
4324
  setInitialMessages: n
4325
- } = j(re), { setInput: o } = Fe(), s = A(null), l = A(!1), c = (d) => {
4326
- d.preventDefault(), a(Ee()), n([]), o(""), r({
4325
+ } = j(re), { setInput: o, stop: s } = Fe(), l = A(null), c = A(!1), d = (m) => {
4326
+ m.preventDefault(), s(), r({
4327
+ type: ve,
4328
+ payload: {
4329
+ streaming: !1,
4330
+ loading: !1
4331
+ }
4332
+ });
4333
+ }, u = (m) => {
4334
+ m.preventDefault(), a(Ee()), n([]), o(""), r({
4327
4335
  type: et,
4328
4336
  payload: {
4329
4337
  privateChat: !1
@@ -4331,7 +4339,7 @@ const lt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Yl = (
4331
4339
  });
4332
4340
  };
4333
4341
  return B(() => {
4334
- Jt() || (t === !0 && !l.current && s.current && (l.current = !0, s.current.focus()), t === !1 && l.current && (l.current = !1));
4342
+ Jt() || (t === !0 && !c.current && l.current && (c.current = !0, l.current.focus()), t === !1 && c.current && (c.current = !1));
4335
4343
  }, [t]), /* @__PURE__ */ i(
4336
4344
  Se,
4337
4345
  {
@@ -4346,9 +4354,9 @@ const lt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Yl = (
4346
4354
  mode: "dark",
4347
4355
  focusMode: "light",
4348
4356
  label: "New Chat",
4349
- ref: s,
4350
- onClick: c,
4351
- children: t ? /* @__PURE__ */ i(Go, { size: ke, monotone: !0 }) : /* @__PURE__ */ i(Ko, { size: ke })
4357
+ ref: l,
4358
+ onClick: t ? d : u,
4359
+ children: t ? /* @__PURE__ */ i(Go, { size: we, monotone: !0 }) : /* @__PURE__ */ i(Ko, { size: we })
4352
4360
  }
4353
4361
  )
4354
4362
  }
@@ -5003,7 +5011,7 @@ const Ic = Z.forwardRef(function(e, t) {
5003
5011
  [`${o}`]: o,
5004
5012
  "bg-black sm:bg-black/[.8]": !o
5005
5013
  });
5006
- return /* @__PURE__ */ i(za, { children: /* @__PURE__ */ i($o, { className: l, lockScroll: !0, children: /* @__PURE__ */ i(Da, { context: r, children: /* @__PURE__ */ i(
5014
+ return /* @__PURE__ */ i(Da, { children: /* @__PURE__ */ i($o, { className: l, lockScroll: !0, children: /* @__PURE__ */ i(za, { context: r, children: /* @__PURE__ */ i(
5007
5015
  "div",
5008
5016
  {
5009
5017
  ref: n,
@@ -5195,7 +5203,7 @@ const Je = "panel", ct = "messagebox", Sc = ({
5195
5203
  m.preventDefault(), l ? d() : (c("true"), s(!o));
5196
5204
  },
5197
5205
  className: "text-sm",
5198
- children: t ? /* @__PURE__ */ i(Zo, { size: ke }) : /* @__PURE__ */ i(is, { size: ke })
5206
+ children: t ? /* @__PURE__ */ i(Zo, { size: we }) : /* @__PURE__ */ i(is, { size: we })
5199
5207
  }
5200
5208
  )
5201
5209
  }
@@ -5241,12 +5249,12 @@ const Je = "panel", ct = "messagebox", Sc = ({
5241
5249
  placement: a,
5242
5250
  strategy: "fixed",
5243
5251
  middleware: [Bo({ mainAxis: 10 }), Oo(), Po()],
5244
- whileElementsMounted: zo
5252
+ whileElementsMounted: Do
5245
5253
  }), k = Fa(w, {
5246
5254
  event: "mousedown",
5247
5255
  toggle: !0,
5248
5256
  ignoreMouse: !1
5249
- }), N = Ua(w, { role: "menu" }), O = Ha(w, { bubbles: !0 }), C = Do(w, {
5257
+ }), N = Ua(w, { role: "menu" }), O = Ha(w, { bubbles: !0 }), C = zo(w, {
5250
5258
  listRef: y,
5251
5259
  activeIndex: p,
5252
5260
  nested: !1,
@@ -5298,8 +5306,8 @@ const Je = "panel", ct = "messagebox", Sc = ({
5298
5306
  setHasFocusInside: f,
5299
5307
  isOpen: d
5300
5308
  },
5301
- children: /* @__PURE__ */ i(Ho, { elementsRef: y, labelsRef: v, children: d && /* @__PURE__ */ i(za, { children: /* @__PURE__ */ i(
5302
- Da,
5309
+ children: /* @__PURE__ */ i(Ho, { elementsRef: y, labelsRef: v, children: d && /* @__PURE__ */ i(Da, { children: /* @__PURE__ */ i(
5310
+ za,
5303
5311
  {
5304
5312
  context: w,
5305
5313
  modal: !1,
@@ -5407,7 +5415,7 @@ try {
5407
5415
  });
5408
5416
  } catch {
5409
5417
  }
5410
- const ve = Z.forwardRef(
5418
+ const ke = Z.forwardRef(
5411
5419
  ({
5412
5420
  label: e,
5413
5421
  disabled: t,
@@ -5470,7 +5478,7 @@ const ve = Z.forwardRef(
5470
5478
  );
5471
5479
  }
5472
5480
  );
5473
- ve.displayName = "MenuItem";
5481
+ ke.displayName = "MenuItem";
5474
5482
  const $c = ({ className: e, ...t }) => {
5475
5483
  const r = h(e, "my-1 border-t border-border-medium");
5476
5484
  return /* @__PURE__ */ i("div", { className: r, ...t });
@@ -5537,7 +5545,7 @@ const Mc = (e) => {
5537
5545
  {
5538
5546
  mode: "dark",
5539
5547
  focusMode: "light",
5540
- trigger: /* @__PURE__ */ i(pe, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ i(Wo, { size: ke }) }),
5548
+ trigger: /* @__PURE__ */ i(pe, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ i(Wo, { size: we }) }),
5541
5549
  defaultPlacement: t,
5542
5550
  children: [
5543
5551
  /* @__PURE__ */ i(Bn, { children: "Prompts" }),
@@ -5558,7 +5566,7 @@ const Mc = (e) => {
5558
5566
  break;
5559
5567
  }
5560
5568
  return f.enabled && f.label && f.content && /* @__PURE__ */ i(
5561
- ve,
5569
+ ke,
5562
5570
  {
5563
5571
  label: f.label,
5564
5572
  icon: p,
@@ -5622,7 +5630,7 @@ const Mc = (e) => {
5622
5630
  focusMode: "light",
5623
5631
  label: "Save Private Chat",
5624
5632
  onClick: u,
5625
- children: /* @__PURE__ */ i(Yo, { size: ke, monotone: !0 })
5633
+ children: /* @__PURE__ */ i(Yo, { size: we, monotone: !0 })
5626
5634
  }
5627
5635
  )
5628
5636
  }
@@ -5661,7 +5669,7 @@ const Mc = (e) => {
5661
5669
  }
5662
5670
  )
5663
5671
  }
5664
- ) : null, zc = ({
5672
+ ) : null, Dc = ({
5665
5673
  className: e
5666
5674
  }) => {
5667
5675
  const {
@@ -5684,12 +5692,12 @@ const Mc = (e) => {
5684
5692
  type: "submit",
5685
5693
  mode: "light",
5686
5694
  focusMode: "light",
5687
- children: /* @__PURE__ */ i(ns, { size: ke })
5695
+ children: /* @__PURE__ */ i(ns, { size: we })
5688
5696
  }
5689
5697
  )
5690
5698
  }
5691
5699
  );
5692
- }, Dc = ({
5700
+ }, zc = ({
5693
5701
  className: e
5694
5702
  }) => {
5695
5703
  const {
@@ -5726,12 +5734,12 @@ const Mc = (e) => {
5726
5734
  {
5727
5735
  mode: "dark",
5728
5736
  focusMode: "light",
5729
- trigger: /* @__PURE__ */ i(pe, { noBorder: !0, label: "Providers", children: t === Bt ? /* @__PURE__ */ i(Kt, { size: ke }) : /* @__PURE__ */ i(Xt, { size: ke }) }),
5737
+ trigger: /* @__PURE__ */ i(pe, { noBorder: !0, label: "Providers", children: t === Bt ? /* @__PURE__ */ i(Kt, { size: we }) : /* @__PURE__ */ i(Xt, { size: we }) }),
5730
5738
  defaultPlacement: "top-start",
5731
5739
  children: [
5732
5740
  /* @__PURE__ */ i(Bn, { children: "Providers" }),
5733
5741
  /* @__PURE__ */ i(
5734
- ve,
5742
+ ke,
5735
5743
  {
5736
5744
  selected: t === Bt,
5737
5745
  label: "Anthropic",
@@ -5740,7 +5748,7 @@ const Mc = (e) => {
5740
5748
  }
5741
5749
  ),
5742
5750
  /* @__PURE__ */ i(
5743
- ve,
5751
+ ke,
5744
5752
  {
5745
5753
  selected: t === Mr,
5746
5754
  label: "OpenAI",
@@ -5794,7 +5802,7 @@ const Mc = (e) => {
5794
5802
  } = Fe({
5795
5803
  onResponse: (b) => {
5796
5804
  f({
5797
- type: _e,
5805
+ type: ve,
5798
5806
  payload: {
5799
5807
  streaming: !0,
5800
5808
  loading: !1
@@ -5803,7 +5811,7 @@ const Mc = (e) => {
5803
5811
  },
5804
5812
  onToolCall: () => {
5805
5813
  f({
5806
- type: _e,
5814
+ type: ve,
5807
5815
  payload: {
5808
5816
  streaming: !1,
5809
5817
  loading: !0
@@ -5812,7 +5820,7 @@ const Mc = (e) => {
5812
5820
  },
5813
5821
  onFinish: (b, { usage: _ }) => {
5814
5822
  f({
5815
- type: _e,
5823
+ type: ve,
5816
5824
  payload: {
5817
5825
  streaming: !1,
5818
5826
  loading: !1,
@@ -5829,7 +5837,7 @@ const Mc = (e) => {
5829
5837
  content: to
5830
5838
  }
5831
5839
  ]), f({
5832
- type: _e,
5840
+ type: ve,
5833
5841
  payload: {
5834
5842
  streaming: !1,
5835
5843
  loading: !1
@@ -5850,7 +5858,7 @@ const Mc = (e) => {
5850
5858
  y.current.style.height = `${b}px`, y.current.style.overflowY = "hidden";
5851
5859
  }, []), E = async (b) => {
5852
5860
  b.preventDefault(), f({
5853
- type: _e,
5861
+ type: ve,
5854
5862
  payload: {
5855
5863
  loading: !0,
5856
5864
  streaming: !1
@@ -5916,7 +5924,7 @@ const Mc = (e) => {
5916
5924
  }
5917
5925
  ) }),
5918
5926
  /* @__PURE__ */ x("div", { className: "p-2 flex items-center", children: [
5919
- /* @__PURE__ */ i(zc, { className: "order-5 ml-auto" }),
5927
+ /* @__PURE__ */ i(Dc, { className: "order-5 ml-auto" }),
5920
5928
  /* @__PURE__ */ i(ec, { className: "order-1 mr-4 sm:mr-2" }),
5921
5929
  /* @__PURE__ */ i(Bc, { className: "order-2 mr-4 sm:mr-2" }),
5922
5930
  /* @__PURE__ */ i(Rc, { className: "order-3 mr-4 sm:mr-2" }),
@@ -6013,8 +6021,8 @@ const Mc = (e) => {
6013
6021
  header: K.ABOUT.TITLE_CLIENT,
6014
6022
  className: "prose-dark dark:prose-lighter",
6015
6023
  children: ht(e, {
6016
- [K.ABOUT.VERSION]: "8.0.0",
6017
- [K.ABOUT.BUILD_TIMESTAMP]: "02/25/2025 02:53 PM EST"
6024
+ [K.ABOUT.VERSION]: "8.0.1",
6025
+ [K.ABOUT.BUILD_TIMESTAMP]: "02/25/2025 07:11 PM EST"
6018
6026
  })
6019
6027
  }
6020
6028
  ) }),
@@ -6101,13 +6109,13 @@ const Mc = (e) => {
6101
6109
  accessToken: C,
6102
6110
  username: M
6103
6111
  }), N({
6104
- type: _e,
6112
+ type: ve,
6105
6113
  payload: {
6106
6114
  restoring: !0
6107
6115
  }
6108
6116
  }), T(""), setTimeout(() => {
6109
6117
  y(k.id), v(L.data.messages), N({
6110
- type: _e,
6118
+ type: ve,
6111
6119
  payload: {
6112
6120
  restoring: !1
6113
6121
  }
@@ -6358,7 +6366,7 @@ const Mc = (e) => {
6358
6366
  {
6359
6367
  className: "prose-dark dark:prose-lighter mt-4",
6360
6368
  header: /* @__PURE__ */ i("h2", { className: "m-0", children: /* @__PURE__ */ x(yt, { columnGap: 3, alignVertical: "center", children: [
6361
- /* @__PURE__ */ i(Te, { children: /* @__PURE__ */ i(zr, { size: "size-8" }) }),
6369
+ /* @__PURE__ */ i(Te, { children: /* @__PURE__ */ i(Dr, { size: "size-8" }) }),
6362
6370
  /* @__PURE__ */ i(Te, { children: /* @__PURE__ */ i("div", { children: K.PREFERENCES.PASSKEY_TITLE }) })
6363
6371
  ] }) }),
6364
6372
  children: [
@@ -6370,7 +6378,7 @@ const Mc = (e) => {
6370
6378
  className: "mt-2",
6371
6379
  onClick: a,
6372
6380
  labelLeft: K.PREFERENCES.PASSKEY_BUTTON,
6373
- children: /* @__PURE__ */ i(zr, { size: "size-5", monotone: !0 })
6381
+ children: /* @__PURE__ */ i(Dr, { size: "size-5", monotone: !0 })
6374
6382
  }
6375
6383
  )
6376
6384
  ]
@@ -6417,7 +6425,7 @@ try {
6417
6425
  });
6418
6426
  } catch {
6419
6427
  }
6420
- const zn = "av-text-area", td = "av-text-area-wrapper", Ut = "av-text-area-helper-text", rd = "av-text-area__control--right", ad = "av-text-area__control--left";
6428
+ const Dn = "av-text-area", td = "av-text-area-wrapper", Ut = "av-text-area-helper-text", rd = "av-text-area__control--right", ad = "av-text-area__control--left";
6421
6429
  function nd() {
6422
6430
  const e = A(!1);
6423
6431
  return B(() => (e.current = !0, () => {
@@ -6483,7 +6491,7 @@ function ld(e) {
6483
6491
  return typeof r == "number" || typeof r == "string" ? `${a}${r}` : `${a}${t}`;
6484
6492
  }
6485
6493
  }
6486
- const Dn = "SET_ANNOUNCEMENT", Vn = "CLEAR_ANNOUNCEMENT", cd = {
6494
+ const zn = "SET_ANNOUNCEMENT", Vn = "CLEAR_ANNOUNCEMENT", cd = {
6487
6495
  alert: null,
6488
6496
  alertdialog: null,
6489
6497
  log: "polite",
@@ -6493,7 +6501,7 @@ const Dn = "SET_ANNOUNCEMENT", Vn = "CLEAR_ANNOUNCEMENT", cd = {
6493
6501
  timer: "assertive"
6494
6502
  }, dd = (e, t) => {
6495
6503
  switch (t == null ? void 0 : t.type) {
6496
- case Dn:
6504
+ case zn:
6497
6505
  return {
6498
6506
  ...e,
6499
6507
  announcement: t.payload
@@ -6521,7 +6529,7 @@ const Dn = "SET_ANNOUNCEMENT", Vn = "CLEAR_ANNOUNCEMENT", cd = {
6521
6529
  dispatch: n
6522
6530
  }) => {
6523
6531
  clearTimeout(r.current), e !== null && n({
6524
- type: Dn,
6532
+ type: zn,
6525
6533
  payload: e
6526
6534
  }), t && (r.current = setTimeout(
6527
6535
  () => ud({
@@ -6714,7 +6722,7 @@ const fd = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
6714
6722
  td,
6715
6723
  e
6716
6724
  ), m = r ? h(t) : h(
6717
- zn,
6725
+ Dn,
6718
6726
  t,
6719
6727
  fd(),
6720
6728
  pd({ mode: l }),
@@ -6790,7 +6798,7 @@ const fd = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
6790
6798
  ...b
6791
6799
  }, _) => {
6792
6800
  var w;
6793
- const k = A(null), N = od([_, k]), [O, C] = wa(), [M, R] = wa(), L = A(80), V = A(-25), $ = A(null), F = A(30), W = A(null), H = ld({ id: e, prefix: `${zn}-` }), [Re, Rt] = P(0), [ot, At] = P(0), [Lt, xe] = P(
6801
+ const k = A(null), N = od([_, k]), [O, C] = wa(), [M, R] = wa(), L = A(80), V = A(-25), $ = A(null), F = A(30), W = A(null), H = ld({ id: e, prefix: `${Dn}-` }), [Re, Rt] = P(0), [ot, At] = P(0), [Lt, _e] = P(
6794
6802
  !!(!y && g)
6795
6803
  ), Ue = `${t} error, ${g}`, ye = kd({
6796
6804
  className: o,
@@ -6807,19 +6815,19 @@ const fd = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
6807
6815
  value: d,
6808
6816
  initialControlledDelay: 20,
6809
6817
  defaultValue: u,
6810
- onChange: (z) => {
6818
+ onChange: (D) => {
6811
6819
  I && I({
6812
6820
  target: {
6813
- value: z
6821
+ value: D
6814
6822
  }
6815
6823
  });
6816
6824
  }
6817
- }), D = (z) => {
6818
- $t(z.target.value);
6819
- }, Y = (z) => {
6820
- y && g && xe(!0), E && E(z);
6821
- }, X = (z) => {
6822
- y && g && !ue && xe(!1), S && S(z);
6825
+ }), z = (D) => {
6826
+ $t(D.target.value);
6827
+ }, Y = (D) => {
6828
+ y && g && _e(!0), E && E(D);
6829
+ }, X = (D) => {
6830
+ y && g && !ue && _e(!1), S && S(D);
6823
6831
  };
6824
6832
  return ee(() => {
6825
6833
  C && C.width && Rt(C.width + 18 + 10);
@@ -6829,14 +6837,14 @@ const fd = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
6829
6837
  n || k && k.current && ue !== void 0 && (k.current.style.height = "inherit", k.current.style.height = k.current.scrollHeight + "px");
6830
6838
  }, [ue, n]), ee(() => {
6831
6839
  n || setTimeout(() => {
6832
- var z;
6833
- (z = $ == null ? void 0 : $.current) == null || z.style.setProperty(
6840
+ var D;
6841
+ (D = $ == null ? void 0 : $.current) == null || D.style.setProperty(
6834
6842
  "--av-text-area-wrapper-transition",
6835
6843
  ue ? "none" : "all 0.2s ease-out"
6836
6844
  );
6837
6845
  }, 0);
6838
6846
  }, [ue, n]), ee(() => {
6839
- var z, ne;
6847
+ var D, ne;
6840
6848
  if (!n && k && k.current && ue !== void 0) {
6841
6849
  const { labelOffset: be, helperTextOffset: oe, scrollHeight: se } = wd({
6842
6850
  scrollHeight: k.current.scrollHeight,
@@ -6844,7 +6852,7 @@ const fd = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
6844
6852
  currentLabelOffset: V.current,
6845
6853
  currentHelperTextOffset: F.current
6846
6854
  });
6847
- be && (V.current = be, (z = $ == null ? void 0 : $.current) == null || z.style.setProperty(
6855
+ be && (V.current = be, (D = $ == null ? void 0 : $.current) == null || D.style.setProperty(
6848
6856
  "--av-text-area-label",
6849
6857
  `${be}px`
6850
6858
  )), oe && (F.current = oe, (ne = W == null ? void 0 : W.current) == null || ne.style.setProperty(
@@ -6894,7 +6902,7 @@ const fd = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
6894
6902
  }
6895
6903
  },
6896
6904
  value: ue,
6897
- onChange: D,
6905
+ onChange: z,
6898
6906
  onFocus: Y,
6899
6907
  onBlur: X,
6900
6908
  ...b
@@ -7352,9 +7360,9 @@ const xd = "av-toggle", _d = () => h("peer", "h-6", "w-11", "rounded-full"), Td
7352
7360
  setShowConfirmation: m,
7353
7361
  action: t,
7354
7362
  customStrings: {
7355
- confirmAction: Dr,
7363
+ confirmAction: zr,
7356
7364
  cancelAction: "Cancel",
7357
- title: Dr
7365
+ title: zr
7358
7366
  },
7359
7367
  children: /* @__PURE__ */ i("p", { children: "Are you sure you want to log out?" })
7360
7368
  }
@@ -7364,7 +7372,7 @@ const xd = "av-toggle", _d = () => h("peer", "h-6", "w-11", "rounded-full"), Td
7364
7372
  s && /* @__PURE__ */ i(Zc, { open: s, onOpenChange: l }),
7365
7373
  /* @__PURE__ */ i(Xc, { open: c, onOpenChange: d }),
7366
7374
  /* @__PURE__ */ i("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ x(yt, { alignHorizontal: "space-between", alignVertical: "center", children: [
7367
- /* @__PURE__ */ i(Te, { children: /* @__PURE__ */ i(Dc, {}) }),
7375
+ /* @__PURE__ */ i(Te, { children: /* @__PURE__ */ i(zc, {}) }),
7368
7376
  /* @__PURE__ */ i(Te, { children: /* @__PURE__ */ i(
7369
7377
  Se,
7370
7378
  {
@@ -7380,7 +7388,7 @@ const xd = "av-toggle", _d = () => h("peer", "h-6", "w-11", "rounded-full"), Td
7380
7388
  defaultPlacement: "bottom-end",
7381
7389
  children: [
7382
7390
  /* @__PURE__ */ i(
7383
- ve,
7391
+ ke,
7384
7392
  {
7385
7393
  label: "Profile",
7386
7394
  onClick: () => {
@@ -7390,7 +7398,7 @@ const xd = "av-toggle", _d = () => h("peer", "h-6", "w-11", "rounded-full"), Td
7390
7398
  }
7391
7399
  ),
7392
7400
  /* @__PURE__ */ i(
7393
- ve,
7401
+ ke,
7394
7402
  {
7395
7403
  label: "Settings",
7396
7404
  onClick: () => {
@@ -7400,7 +7408,7 @@ const xd = "av-toggle", _d = () => h("peer", "h-6", "w-11", "rounded-full"), Td
7400
7408
  }
7401
7409
  ),
7402
7410
  /* @__PURE__ */ i(
7403
- ve,
7411
+ ke,
7404
7412
  {
7405
7413
  label: "History",
7406
7414
  onClick: () => {
@@ -7410,7 +7418,7 @@ const xd = "av-toggle", _d = () => h("peer", "h-6", "w-11", "rounded-full"), Td
7410
7418
  }
7411
7419
  ),
7412
7420
  /* @__PURE__ */ i(
7413
- ve,
7421
+ ke,
7414
7422
  {
7415
7423
  label: "About",
7416
7424
  onClick: () => {
@@ -7422,7 +7430,7 @@ const xd = "av-toggle", _d = () => h("peer", "h-6", "w-11", "rounded-full"), Td
7422
7430
  !e && /* @__PURE__ */ x(Q, { children: [
7423
7431
  /* @__PURE__ */ i($c, {}),
7424
7432
  /* @__PURE__ */ i(
7425
- ve,
7433
+ ke,
7426
7434
  {
7427
7435
  label: "Log out",
7428
7436
  onClick: () => {
@@ -7578,13 +7586,13 @@ const $d = "av-bubble", _a = "av-button", Ct = "icon", Fn = "button", ir = "link
7578
7586
  if (r === "selected")
7579
7587
  return "bg-action-selected-dark";
7580
7588
  }
7581
- }, zd = ({
7589
+ }, Dd = ({
7582
7590
  radius: e
7583
7591
  }) => h({
7584
7592
  "rounded-full": e === "large",
7585
7593
  "rounded-md": e === "medium",
7586
7594
  "rounded-sm": e === "small"
7587
- }), Dd = ({
7595
+ }), zd = ({
7588
7596
  mode: e,
7589
7597
  disabled: t,
7590
7598
  variant: r
@@ -7724,7 +7732,7 @@ const $d = "av-bubble", _a = "av-button", Ct = "icon", Fn = "button", ir = "link
7724
7732
  noTruncate: p
7725
7733
  }),
7726
7734
  Pd({ mode: a, noBackground: m, variant: f }),
7727
- zd({ radius: y }),
7735
+ Dd({ radius: y }),
7728
7736
  Md({
7729
7737
  type: e,
7730
7738
  size: l,
@@ -7736,7 +7744,7 @@ const $d = "av-bubble", _a = "av-button", Ct = "icon", Fn = "button", ir = "link
7736
7744
  Bd({ type: e, size: l, labelRight: d, labelLeft: u }),
7737
7745
  Fd({ mode: a, variant: f, noBorder: c }),
7738
7746
  Hd({ focusMode: n }),
7739
- Dd({ mode: a, variant: f, disabled: o }),
7747
+ zd({ mode: a, variant: f, disabled: o }),
7740
7748
  Vd({ mode: a, variant: f, disabled: o }),
7741
7749
  {
7742
7750
  "w-full": s,
@@ -8814,7 +8822,7 @@ const Su = ({ content: e }) => /* @__PURE__ */ i(
8814
8822
  ), Sa = Lo(
8815
8823
  () => import(
8816
8824
  /* webpackChunkName: "LazyMessageAssistant" */
8817
- "./ChatBubbleAssistant.yu1vfSf_.js"
8825
+ "./ChatBubbleAssistant.CiaCBXya.js"
8818
8826
  ).then((e) => e.ChatBubbleAssistant)
8819
8827
  ), Ru = G.memo(
8820
8828
  ({
@@ -9020,9 +9028,9 @@ function Jn({
9020
9028
  );
9021
9029
  }
9022
9030
  Jn.displayName = "App";
9023
- const zu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Jn }, Symbol.toStringTag, { value: "Module" }));
9031
+ const Du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Jn }, Symbol.toStringTag, { value: "Module" }));
9024
9032
  export {
9025
- zu as App,
9033
+ Du as App,
9026
9034
  re as ChatContext,
9027
9035
  Oe as E,
9028
9036
  lr as Re,