@versini/sassysaint 6.3.0 → 6.3.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,15 +1,15 @@
1
1
  import { jsx as l, jsxs as E, Fragment as ke } from "react/jsx-runtime";
2
- import { g as ye, ACTION_RESTORE as pn, ACTION_MESSAGE as Ve, ROLE_ASSISTANT as Pe, ACTION_RESET as Ie, ACTION_MODEL as la, ACTION_STREAMING as ca, ACTION_SORT as bn, ACTION_SEARCH as yn, ACTION_RESET_PROMPT as da, ACTION_TOGGLE_PROMPT as ua, DEFAULT_AI_ENGINE as Te, Y as He, L as vn, j as Nr, C as Cr, LOCAL_STORAGE_PREFIX as At, LOCAL_STORAGE_PRIVATE_DISCLOSURE as kn, un as Fe, ENGINE_ANTHROPIC as xt, ENGINE_OPENAI as Rr, PROMPT_CLASSNAME as xn, PROMPT_EDITABLE_AREA_CLASSNAME as wn, ROLE_SYSTEM as _n, ROLE_INTERNAL as Qt, ROLE_HIDDEN as En, STATS_SEPARATOR as Ir, CLIPBOARD_PROMPT as Lr, TYPE_QUESTION as Tn, ERROR_MESSAGE as Sn, ROLE_USER as $t, FOOTER_DISCLAIMER as Nn, isLastMessageFromRole as Cn, getMessageContaintWrapperClass as Rn, Logo as In, getMainPaddingClass as Or, r as Ln, LOCAL_STORAGE_SEARCH as On, LOCAL_STORAGE_SORT as An } from "./index.Cs6TmwRi.js";
2
+ import { f as ye, ACTION_RESTORE as pa, ACTION_MESSAGE as Ve, ROLE_ASSISTANT as De, ACTION_RESET as Ie, ACTION_MODEL as cn, ACTION_STREAMING as dn, ACTION_SORT as ba, ACTION_SEARCH as ya, ACTION_RESET_PROMPT as un, ACTION_TOGGLE_PROMPT as mn, DEFAULT_AI_ENGINE as Te, Y as He, L as va, j as Nr, C as Cr, LOCAL_STORAGE_PREFIX as Ot, LOCAL_STORAGE_PRIVATE_DISCLOSURE as ka, un as Fe, ENGINE_ANTHROPIC as xt, ENGINE_OPENAI as Rr, PROMPT_CLASSNAME as xa, PROMPT_EDITABLE_AREA_CLASSNAME as wa, ROLE_SYSTEM as _a, ROLE_INTERNAL as Qt, ROLE_HIDDEN as Ea, STATS_SEPARATOR as Ir, CLIPBOARD_PROMPT as Lr, TYPE_QUESTION as Ta, ERROR_MESSAGE as Sa, ROLE_USER as $t, FOOTER_DISCLAIMER as Na, isLastMessageFromRole as Ca, getMessageContaintWrapperClass as Ra, Logo as Ia, getMainPaddingClass as Ar, r as La, LOCAL_STORAGE_SEARCH as Aa, LOCAL_STORAGE_SORT as Oa } from "./index.BB_tYz2G.js";
3
3
  import f from "clsx";
4
4
  import * as G from "react";
5
- import V, { useEffect as $, useRef as A, useState as Z, useCallback as re, useSyncExternalStore as $n, useMemo as ma, useId as er, useContext as z, createContext as Bn, useLayoutEffect as Mn, useDebugValue as Vn, forwardRef as ga, lazy as fa, Suspense as Bt, useReducer as wt } from "react";
6
- import { useMergeRefs as tr, FloatingPortal as ha, FloatingOverlay as Pn, FloatingFocusManager as pa, useFloating as ba, useClick as ya, useDismiss as va, useRole as ka, useInteractions as xa, useFloatingTree as wa, useFloatingNodeId as Dn, useListItem as _a, offset as zn, flip as Un, shift as Hn, autoUpdate as Fn, useListNavigation as Wn, useTypeahead as Gn, FloatingNode as jn, FloatingList as qn, FloatingTree as Kn } from "@floating-ui/react";
7
- const Ar = ({
5
+ import V, { useEffect as $, useRef as O, useState as Z, useCallback as re, useSyncExternalStore as $a, useMemo as gn, useId as er, useContext as P, createContext as Ba, useLayoutEffect as Ma, useDebugValue as Va, forwardRef as fn, lazy as hn, Suspense as Bt, useReducer as wt } from "react";
6
+ import { useMergeRefs as tr, FloatingPortal as pn, FloatingOverlay as Da, FloatingFocusManager as bn, useFloating as yn, useClick as vn, useDismiss as kn, useRole as xn, useInteractions as wn, useFloatingTree as _n, useFloatingNodeId as za, useListItem as En, offset as Pa, flip as Ua, shift as Ha, autoUpdate as Fa, useListNavigation as Wa, useTypeahead as Ga, FloatingNode as ja, FloatingList as qa, FloatingTree as Ka } from "@floating-ui/react";
7
+ const Or = ({
8
8
  className: e,
9
9
  viewBox: t,
10
10
  title: r,
11
- monotone: a,
12
- ...n
11
+ monotone: n,
12
+ ...a
13
13
  }) => /* @__PURE__ */ l(
14
14
  ye,
15
15
  {
@@ -18,15 +18,15 @@ const Ar = ({
18
18
  viewBox: t,
19
19
  className: e,
20
20
  title: r || "Anthropic",
21
- ...n,
21
+ ...a,
22
22
  children: /* @__PURE__ */ l("path", { d: "M17.304 3.541h-3.672l6.696 16.918H24Zm-10.608 0L0 20.459h3.744l1.37-3.553h7.005l1.369 3.553h3.744L10.536 3.541Zm-.371 10.223L8.616 7.82l2.291 5.945Z" })
23
23
  }
24
- ), Yn = ({
24
+ ), Ya = ({
25
25
  className: e,
26
26
  viewBox: t,
27
27
  title: r,
28
- monotone: a,
29
- ...n
28
+ monotone: n,
29
+ ...a
30
30
  }) => /* @__PURE__ */ E(
31
31
  ye,
32
32
  {
@@ -35,7 +35,7 @@ const Ar = ({
35
35
  viewBox: t,
36
36
  className: e,
37
37
  title: r || "Book",
38
- ...n,
38
+ ...a,
39
39
  children: [
40
40
  /* @__PURE__ */ l(
41
41
  "path",
@@ -47,12 +47,12 @@ const Ar = ({
47
47
  /* @__PURE__ */ l("path", { d: "M0 88C0 39.4 39.4 0 88 0h304c30.9 0 56 25.1 56 56v288c0 22.3-13.1 41.6-32 50.6V464h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H80c-44.2 0-80-35.8-80-80 0-2.7.1-5.4.4-8H0zm80 312c-17.7 0-32 14.3-32 32s14.3 32 32 32h288v-64zm-32-41.3c9.8-4.3 20.6-6.7 32-6.7h312c4.4 0 8-3.6 8-8V56c0-4.4-3.6-8-8-8H88c-22.1 0-40 17.9-40 40zM160 112l8.8-17.7c2.9-5.9 11.4-5.9 14.3 0L192 112l17.7 8.8c5.9 2.9 5.9 11.4 0 14.3L192 144l-8.8 17.7c-2.9 5.9-11.4 5.9-14.3 0L160 144l-17.7-8.8c-5.9-2.9-5.9-11.4 0-14.3zm104 104 16.6-38.8c2.8-6.5 11.9-6.5 14.7 0L312 216l38.8 16.6c6.5 2.8 6.5 11.9 0 14.7L312 264l-16.6 38.8c-2.8 6.5-11.9 6.5-14.7 0L264 264l-38.8-16.6c-6.5-2.8-6.5-11.9 0-14.7z" })
48
48
  ]
49
49
  }
50
- ), Jn = ({
50
+ ), Ja = ({
51
51
  className: e,
52
52
  viewBox: t,
53
53
  title: r,
54
- monotone: a,
55
- ...n
54
+ monotone: n,
55
+ ...a
56
56
  }) => /* @__PURE__ */ l(
57
57
  ye,
58
58
  {
@@ -61,21 +61,21 @@ const Ar = ({
61
61
  viewBox: t,
62
62
  className: e,
63
63
  title: r || "Close",
64
- ...n,
64
+ ...a,
65
65
  children: /* @__PURE__ */ l(
66
66
  "path",
67
67
  {
68
68
  d: "M297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256l105.3-105.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3z",
69
- opacity: a ? "1" : "0.4"
69
+ opacity: n ? "1" : "0.4"
70
70
  }
71
71
  )
72
72
  }
73
- ), Xn = ({
73
+ ), Xa = ({
74
74
  className: e,
75
75
  viewBox: t,
76
76
  title: r,
77
- monotone: a,
78
- ...n
77
+ monotone: n,
78
+ ...a
79
79
  }) => /* @__PURE__ */ E(
80
80
  ye,
81
81
  {
@@ -84,24 +84,24 @@ const Ar = ({
84
84
  viewBox: t,
85
85
  className: e,
86
86
  title: r || "Edit",
87
- ...n,
87
+ ...a,
88
88
  children: [
89
89
  /* @__PURE__ */ l(
90
90
  "path",
91
91
  {
92
92
  d: "M0 160c0-53 43-96 96-96h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32 14.3-32 32v256c0 17.7 14.3 32 32 32h256c17.7 0 32-14.3 32-32v-96c0-17.7 14.3-32 32-32s32 14.3 32 32v96c0 53-43 96-96 96H96c-53 0-96-43-96-96z",
93
- opacity: a ? "1" : "0.4"
93
+ opacity: n ? "1" : "0.4"
94
94
  }
95
95
  ),
96
96
  /* @__PURE__ */ l("path", { d: "m392.4 21.7-30.1 30 97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2l-18.7-18.6c-21.9-21.9-57.3-21.9-79.2 0m-52.7 52.6L172.4 241.7c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5l167.3-167.4z" })
97
97
  ]
98
98
  }
99
- ), Zn = ({
99
+ ), Za = ({
100
100
  className: e,
101
101
  viewBox: t,
102
102
  title: r,
103
- monotone: a,
104
- ...n
103
+ monotone: n,
104
+ ...a
105
105
  }) => /* @__PURE__ */ E(
106
106
  ye,
107
107
  {
@@ -110,7 +110,7 @@ const Ar = ({
110
110
  viewBox: t,
111
111
  className: e,
112
112
  title: r || "Locked",
113
- ...n,
113
+ ...a,
114
114
  children: [
115
115
  /* @__PURE__ */ l(
116
116
  "path",
@@ -126,8 +126,8 @@ const Ar = ({
126
126
  className: e,
127
127
  viewBox: t,
128
128
  title: r,
129
- monotone: a,
130
- ...n
129
+ monotone: n,
130
+ ...a
131
131
  }) => /* @__PURE__ */ l(
132
132
  ye,
133
133
  {
@@ -136,15 +136,15 @@ const Ar = ({
136
136
  viewBox: t,
137
137
  className: e,
138
138
  title: r || "OpenAI",
139
- ...n,
139
+ ...a,
140
140
  children: /* @__PURE__ */ l("path", { d: "M22.282 9.821a5.99 5.99 0 0 0-.516-4.91 6.05 6.05 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.99 5.99 0 0 0-3.998 2.9 6.05 6.05 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.05 6.05 0 0 0 6.515 2.9A5.99 5.99 0 0 0 13.26 24a6.06 6.06 0 0 0 5.772-4.206 6 6 0 0 0 3.997-2.9 6.06 6.06 0 0 0-.747-7.073zM13.26 22.43a4.48 4.48 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.8.8 0 0 0 .392-.681v-6.737l2.02 1.168a.07.07 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494M3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.77.77 0 0 0 .78 0l5.843-3.369v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646M2.34 7.896a4.5 4.5 0 0 1 2.366-1.973V11.6a.77.77 0 0 0 .388.677l5.815 3.354-2.02 1.168a.08.08 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872zm16.597 3.855-5.833-3.387L15.119 7.2a.08.08 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.79.79 0 0 0-.407-.667zm2.01-3.023-.141-.085-4.774-2.782a.78.78 0 0 0-.785 0L9.409 9.23V6.897a.07.07 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66zm-12.64 4.135-2.02-1.164a.08.08 0 0 1-.038-.057V6.075a4.5 4.5 0 0 1 7.375-3.453l-.142.08-4.778 2.758a.8.8 0 0 0-.393.681zm1.097-2.365 2.602-1.5 2.607 1.5v2.999l-2.597 1.5-2.607-1.5Z" })
141
141
  }
142
- ), Qn = ({
142
+ ), Qa = ({
143
143
  className: e,
144
144
  viewBox: t,
145
145
  title: r,
146
- monotone: a,
147
- ...n
146
+ monotone: n,
147
+ ...a
148
148
  }) => /* @__PURE__ */ E(
149
149
  ye,
150
150
  {
@@ -153,7 +153,7 @@ const Ar = ({
153
153
  viewBox: t,
154
154
  className: e,
155
155
  title: r || "Send",
156
- ...n,
156
+ ...a,
157
157
  children: [
158
158
  /* @__PURE__ */ l(
159
159
  "path",
@@ -169,8 +169,8 @@ const Ar = ({
169
169
  className: e,
170
170
  viewBox: t,
171
171
  title: r,
172
- monotone: a,
173
- ...n
172
+ monotone: n,
173
+ ...a
174
174
  }) => /* @__PURE__ */ E(
175
175
  ye,
176
176
  {
@@ -179,7 +179,7 @@ const Ar = ({
179
179
  viewBox: t,
180
180
  className: e,
181
181
  title: r || "Unlocked",
182
- ...n,
182
+ ...a,
183
183
  children: [
184
184
  /* @__PURE__ */ l(
185
185
  "path",
@@ -209,8 +209,8 @@ const to = "av-header", ro = ({
209
209
  children: e,
210
210
  className: t,
211
211
  raw: r = !1,
212
- mode: a = "system",
213
- noColors: n = !1,
212
+ mode: n = "system",
213
+ noColors: a = !1,
214
214
  sticky: o = !1,
215
215
  noBorder: i = !1,
216
216
  noMargin: s = !1,
@@ -219,16 +219,16 @@ const to = "av-header", ro = ({
219
219
  const d = f(
220
220
  to,
221
221
  {
222
- "border-border-accent": a === "dark" && !r && !n && !i,
223
- "border-border-medium": a === "light" && !r && !n && !i,
224
- "border-border-accent dark:border-border-medium": a === "alt-system" && !r && !n && !i,
225
- "border-border-medium dark:border-border-accent": a === "system" && !r && !n && !i,
222
+ "border-border-accent": n === "dark" && !r && !a && !i,
223
+ "border-border-medium": n === "light" && !r && !a && !i,
224
+ "border-border-accent dark:border-border-medium": n === "alt-system" && !r && !a && !i,
225
+ "border-border-medium dark:border-border-accent": n === "system" && !r && !a && !i,
226
226
  "border-b-4": !r && !i,
227
- "border-transparent": !r && n,
228
- "bg-surface-dark": a === "dark" && !r && !n,
229
- "bg-surface-light": a === "light" && !r && !n,
230
- "bg-surface-dark dark:bg-surface-light": a === "alt-system" && !r && !n,
231
- "bg-surface-light dark:bg-surface-dark": a === "system" && !r && !n,
227
+ "border-transparent": !r && a,
228
+ "bg-surface-dark": n === "dark" && !r && !a,
229
+ "bg-surface-light": n === "light" && !r && !a,
230
+ "bg-surface-dark dark:bg-surface-light": n === "alt-system" && !r && !a,
231
+ "bg-surface-light dark:bg-surface-dark": n === "system" && !r && !a,
232
232
  "sticky top-0 z-50": o
233
233
  },
234
234
  t
@@ -239,38 +239,38 @@ const to = "av-header", ro = ({
239
239
  });
240
240
  return /* @__PURE__ */ l("header", { className: d, children: /* @__PURE__ */ l("div", { className: h, children: e }) });
241
241
  };
242
- function ao(e) {
242
+ function no(e) {
243
243
  const t = e.toLowerCase().split("+").map((o) => o.trim()), r = {
244
244
  alt: t.includes("alt"),
245
245
  ctrl: t.includes("ctrl"),
246
246
  meta: t.includes("meta"),
247
247
  mod: t.includes("mod"),
248
248
  shift: t.includes("shift")
249
- }, a = ["alt", "ctrl", "meta", "shift", "mod"], n = t.find((o) => !a.includes(o));
249
+ }, n = ["alt", "ctrl", "meta", "shift", "mod"], a = t.find((o) => !n.includes(o));
250
250
  return {
251
251
  ...r,
252
- key: n
252
+ key: a
253
253
  };
254
254
  }
255
- function no(e, t) {
256
- const { alt: r, ctrl: a, meta: n, mod: o, shift: i, key: s } = e, { altKey: c, ctrlKey: d, metaKey: h, shiftKey: u, key: m } = t;
255
+ function ao(e, t) {
256
+ const { alt: r, ctrl: n, meta: a, mod: o, shift: i, key: s } = e, { altKey: c, ctrlKey: d, metaKey: h, shiftKey: u, key: m } = t;
257
257
  if (r !== c)
258
258
  return !1;
259
259
  if (o) {
260
260
  if (!d && !h)
261
261
  return !1;
262
- } else if (a !== d || n !== h)
262
+ } else if (n !== d || a !== h)
263
263
  return !1;
264
264
  return i !== u ? !1 : !!(s && (m.toLowerCase() === s.toLowerCase() || t.code.replace("Key", "").toLowerCase() === s.toLowerCase()));
265
265
  }
266
- function Ea(e) {
267
- return (t) => no(ao(e), t);
266
+ function Tn(e) {
267
+ return (t) => ao(no(e), t);
268
268
  }
269
269
  function oo(e) {
270
270
  return (t) => {
271
271
  const r = "nativeEvent" in t ? t.nativeEvent : t;
272
- e.forEach(([a, n, o = { preventDefault: !0 }]) => {
273
- Ea(a)(r) && (o.preventDefault && t.preventDefault(), n(r));
272
+ e.forEach(([n, a, o = { preventDefault: !0 }]) => {
273
+ Tn(n)(r) && (o.preventDefault && t.preventDefault(), a(r));
274
274
  });
275
275
  };
276
276
  }
@@ -279,41 +279,41 @@ function io(e, t, r = !1) {
279
279
  }
280
280
  function so(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
281
281
  $(() => {
282
- const a = (n) => {
282
+ const n = (a) => {
283
283
  e.forEach(
284
284
  ([o, i, s = { preventDefault: !0 }]) => {
285
- Ea(o)(n) && io(n, t, r) && (s.preventDefault && n.preventDefault(), i(n));
285
+ Tn(o)(a) && io(a, t, r) && (s.preventDefault && a.preventDefault(), i(a));
286
286
  }
287
287
  );
288
288
  };
289
- return document.documentElement.addEventListener("keydown", a), () => document.documentElement.removeEventListener("keydown", a);
289
+ return document.documentElement.addEventListener("keydown", n), () => document.documentElement.removeEventListener("keydown", n);
290
290
  }, [e, t, r]);
291
291
  }
292
292
  function lo() {
293
- const e = A(null), [t, r] = Z(!1);
294
- return { ref: re((a) => {
295
- var n, o;
296
- typeof IntersectionObserver < "u" && (a && !e.current ? e.current = new IntersectionObserver(
293
+ const e = O(null), [t, r] = Z(!1);
294
+ return { ref: re((n) => {
295
+ var a, o;
296
+ typeof IntersectionObserver < "u" && (n && !e.current ? e.current = new IntersectionObserver(
297
297
  (i) => r(i.some((s) => s.isIntersecting))
298
- ) : (n = e.current) == null || n.disconnect(), a ? (o = e.current) == null || o.observe(a) : r(!1));
298
+ ) : (a = e.current) == null || a.disconnect(), n ? (o = e.current) == null || o.observe(n) : r(!1));
299
299
  }, []), inViewport: t };
300
300
  }
301
- function Ta(e, t) {
301
+ function Sn(e, t) {
302
302
  window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
303
303
  }
304
304
  const Br = (e, t) => {
305
305
  const r = JSON.stringify(
306
306
  typeof t == "function" ? t() : t
307
307
  );
308
- window.localStorage.setItem(e, r), Ta(e, r);
308
+ window.localStorage.setItem(e, r), Sn(e, r);
309
309
  }, co = (e) => {
310
- window.localStorage.removeItem(e), Ta(e, null);
310
+ window.localStorage.removeItem(e), Sn(e, null);
311
311
  }, Mr = (e) => window.localStorage.getItem(e), uo = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
312
312
  function Mt({
313
313
  key: e,
314
314
  initialValue: t
315
315
  }) {
316
- const r = $n(uo, () => Mr(e)), a = re(
316
+ const r = $a(uo, () => Mr(e)), n = re(
317
317
  (i) => {
318
318
  try {
319
319
  const s = typeof i == "function" ? i(JSON.parse(r)) : i;
@@ -323,21 +323,21 @@ function Mt({
323
323
  }
324
324
  },
325
325
  [e, r]
326
- ), n = re(() => {
327
- a(t);
328
- }, [t, a]), o = re(() => {
329
- a(null);
330
- }, [a]);
326
+ ), a = re(() => {
327
+ n(t);
328
+ }, [t, n]), o = re(() => {
329
+ n(null);
330
+ }, [n]);
331
331
  return $(() => {
332
332
  try {
333
333
  Mr(e) === null && typeof t < "u" && Br(e, t);
334
334
  } catch (i) {
335
335
  console.warn(i);
336
336
  }
337
- }, [e, t]), [r ? JSON.parse(r) : null, a, n, o];
337
+ }, [e, t]), [r ? JSON.parse(r) : null, n, a, o];
338
338
  }
339
339
  function mo(e) {
340
- return ma(() => e.every((t) => t == null) ? () => {
340
+ return gn(() => e.every((t) => t == null) ? () => {
341
341
  } : (t) => {
342
342
  e.forEach((r) => {
343
343
  typeof r == "function" ? r(t) : r != null && (r.current = t);
@@ -348,32 +348,32 @@ function go({
348
348
  value: e,
349
349
  defaultValue: t,
350
350
  finalValue: r,
351
- onChange: a = () => {
351
+ onChange: n = () => {
352
352
  },
353
- initialControlledDelay: n = 0
353
+ initialControlledDelay: a = 0
354
354
  }) {
355
355
  const [o, i] = Z(!1), [s, c] = Z(
356
356
  t !== void 0 ? t : r
357
357
  ), d = (h) => {
358
- c(h), a == null || a(h);
358
+ c(h), n == null || n(h);
359
359
  };
360
360
  return $(() => {
361
- (async () => e !== void 0 && !o && n > 0 && (await new Promise(
362
- (h) => setTimeout(h, n)
361
+ (async () => e !== void 0 && !o && a > 0 && (await new Promise(
362
+ (h) => setTimeout(h, a)
363
363
  ), i(!0)))();
364
- }, [e, n, o]), e !== void 0 ? !o && n > 0 ? ["", a, !0] : [e, a, !0] : [s, d, !1];
364
+ }, [e, a, o]), e !== void 0 ? !o && a > 0 ? ["", n, !0] : [e, n, !0] : [s, d, !1];
365
365
  }
366
366
  function fo(e) {
367
367
  return er();
368
368
  }
369
369
  /*!
370
- @versini/ui-table v3.0.16
370
+ @versini/ui-table v3.0.17
371
371
  © 2025 gizmette.com
372
372
  */
373
373
  try {
374
374
  window.__VERSINI_UI_TABLE__ || (window.__VERSINI_UI_TABLE__ = {
375
- version: "3.0.16",
376
- buildTime: "01/20/2025 03:51 PM EST",
375
+ version: "3.0.17",
376
+ buildTime: "01/24/2025 09:19 AM EST",
377
377
  homepage: "https://github.com/aversini/ui-components",
378
378
  license: "MIT"
379
379
  });
@@ -386,14 +386,14 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
386
386
  mode: e,
387
387
  className: t,
388
388
  wrapperClassName: r,
389
- stickyHeader: a,
390
- stickyFooter: n
389
+ stickyHeader: n,
390
+ stickyFooter: a
391
391
  }) => ({
392
392
  wrapper: f(
393
393
  "not-prose relative w-full rounded-lg shadow-md",
394
394
  {
395
- "overflow-x-auto": !a && !n,
396
- "overflow-y-scroll": a || n,
395
+ "overflow-x-auto": !n && !a,
396
+ "overflow-y-scroll": n || a,
397
397
  "bg-surface-darker": e === "dark" || e === "system",
398
398
  "bg-surface-light": e === "light" || e === "alt-system",
399
399
  "dark:bg-surface-light": e === "system",
@@ -472,20 +472,20 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
472
472
  cellWrapper: e,
473
473
  className: t,
474
474
  compact: r,
475
- mode: a,
476
- align: n
475
+ mode: n,
476
+ align: a
477
477
  }) => ({
478
478
  alignClasses: f({
479
- "flex justify-start text-left": n === "left",
480
- "flex justify-center text-center": n === "center",
481
- "flex justify-end text-right": n === "right"
479
+ "flex justify-start text-left": a === "left",
480
+ "flex justify-center text-center": a === "center",
481
+ "flex justify-end text-right": a === "right"
482
482
  }),
483
483
  mainClasses: f(
484
484
  {
485
- "text-copy-light": a === "dark" || a === "system",
486
- "text-copy-dark": a === "light" || a === "alt-system",
487
- "dark:text-copy-dark": a === "system",
488
- "dark:text-copy-light": a === "alt-system",
485
+ "text-copy-light": n === "dark" || n === "system",
486
+ "text-copy-dark": n === "light" || n === "alt-system",
487
+ "dark:text-copy-dark": n === "system",
488
+ "dark:text-copy-light": n === "alt-system",
489
489
  "px-4 py-3": !r && (e === it || e === rr),
490
490
  "p-4": !r && e === Ee,
491
491
  "px-2 py-1.5": r
@@ -494,67 +494,67 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
494
494
  )
495
495
  }), ko = ({
496
496
  buttonClassName: e
497
- }) => f("rounded-none text-sm", e), Vr = "av-button", ar = "icon", Sa = "button", Vt = "link", xo = ({
497
+ }) => f("rounded-none text-sm", e), Vr = "av-button", nr = "icon", Nn = "button", Vt = "link", xo = ({
498
498
  type: e,
499
499
  size: t,
500
500
  labelRight: r,
501
- labelLeft: a,
502
- align: n
501
+ labelLeft: n,
502
+ align: a
503
503
  }) => {
504
504
  const o = "max-h-8 py-0 px-2", i = "max-h-9 h-8 px-3", s = "max-h-12 py-2 px-4";
505
505
  switch (e) {
506
- case Sa:
506
+ case Nn:
507
507
  case Vt:
508
508
  return f({
509
509
  [o]: t === "small",
510
510
  [i]: t === "medium",
511
511
  [s]: t === "large"
512
512
  });
513
- case ar:
513
+ case nr:
514
514
  return f("inline-flex items-center", {
515
- "justify-center": n === "center",
516
- "justify-start": n === "left",
517
- "justify-end": n === "right",
518
- "h-6 w-6 p-0": t === "small" && !(r || a),
519
- "h-6 px-2": t === "small" && (r || a),
520
- "h-8 w-8 p-1": t === "medium" && !(r || a),
521
- "h-8 px-3": t === "medium" && (r || a),
522
- "h-12 w-12 p-2": t === "large" && !(r || a),
523
- "h-12 px-4": t === "large" && (r || a)
515
+ "justify-center": a === "center",
516
+ "justify-start": a === "left",
517
+ "justify-end": a === "right",
518
+ "h-6 w-6 p-0": t === "small" && !(r || n),
519
+ "h-6 px-2": t === "small" && (r || n),
520
+ "h-8 w-8 p-1": t === "medium" && !(r || n),
521
+ "h-8 px-3": t === "medium" && (r || n),
522
+ "h-12 w-12 p-2": t === "large" && !(r || n),
523
+ "h-12 px-4": t === "large" && (r || n)
524
524
  });
525
525
  }
526
526
  }, wo = ({
527
527
  type: e,
528
528
  size: t,
529
529
  labelRight: r,
530
- labelLeft: a
530
+ labelLeft: n
531
531
  }) => {
532
- const n = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
532
+ const a = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
533
533
  switch (e) {
534
- case Sa:
534
+ case Nn:
535
535
  case Vt:
536
536
  return f({
537
537
  "text-center": e === Vt,
538
- [n]: t === "small",
538
+ [a]: t === "small",
539
539
  [o]: t === "medium",
540
540
  [i]: t === "large"
541
541
  });
542
- case ar:
542
+ case nr:
543
543
  return f({
544
- [n]: t === "small" && (r || a),
545
- [o]: t === "medium" && (r || a),
546
- [i]: t === "large" && (r || a)
544
+ [a]: t === "small" && (r || n),
545
+ [o]: t === "medium" && (r || n),
546
+ [i]: t === "large" && (r || n)
547
547
  });
548
548
  }
549
549
  }, _o = ({
550
550
  mode: e,
551
551
  noBackground: t,
552
552
  noTruncate: r,
553
- variant: a
553
+ variant: n
554
554
  }) => {
555
555
  if (t)
556
556
  return "not-prose";
557
- if (a === "primary")
557
+ if (n === "primary")
558
558
  return f("not-prose", {
559
559
  truncate: !r,
560
560
  "text-copy-light": e === "dark" || e === "system",
@@ -562,7 +562,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
562
562
  "dark:text-copy-lighter": e === "system",
563
563
  "dark:text-copy-light": e === "alt-system"
564
564
  });
565
- if (a === "secondary")
565
+ if (n === "secondary")
566
566
  return f("not-prose", {
567
567
  truncate: !r,
568
568
  "text-copy-light": e === "light" || e === "system",
@@ -570,7 +570,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
570
570
  "dark:text-copy-lighter": e === "alt-system",
571
571
  "dark:text-copy-light": e === "system"
572
572
  });
573
- if (a === "danger")
573
+ if (n === "danger")
574
574
  return f("not-prose", {
575
575
  truncate: !r,
576
576
  "text-copy-light": e === "dark" || e === "system",
@@ -578,7 +578,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
578
578
  "dark:text-copy-lighter": e === "system",
579
579
  "dark:text-copy-light": e === "alt-system"
580
580
  });
581
- if (a === "selected")
581
+ if (n === "selected")
582
582
  return f("not-prose text-copy-lighter", {
583
583
  truncate: !r
584
584
  });
@@ -719,8 +719,8 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
719
719
  type: e,
720
720
  className: t,
721
721
  raw: r,
722
- mode: a,
723
- focusMode: n,
722
+ mode: n,
723
+ focusMode: a,
724
724
  disabled: o,
725
725
  fullWidth: i,
726
726
  size: s,
@@ -735,12 +735,12 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
735
735
  }) => (m || (m = "primary"), r ? f(Vr, t) : f(
736
736
  Vr,
737
737
  _o({
738
- mode: a,
738
+ mode: n,
739
739
  variant: m,
740
740
  noBackground: u,
741
741
  noTruncate: g
742
742
  }),
743
- Eo({ mode: a, noBackground: u, variant: m }),
743
+ Eo({ mode: n, noBackground: u, variant: m }),
744
744
  To({ radius: b }),
745
745
  xo({
746
746
  type: e,
@@ -750,52 +750,52 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
750
750
  align: p
751
751
  }),
752
752
  wo({ type: e, size: s, labelRight: d, labelLeft: h }),
753
- Co({ mode: a, variant: m, noBorder: c }),
754
- Ro({ focusMode: n }),
755
- So({ mode: a, variant: m, disabled: o }),
756
- No({ mode: a, variant: m, disabled: o }),
753
+ Co({ mode: n, variant: m, noBorder: c }),
754
+ Ro({ focusMode: a }),
755
+ So({ mode: n, variant: m, disabled: o }),
756
+ No({ mode: n, variant: m, disabled: o }),
757
757
  {
758
758
  "w-full": i,
759
759
  "disabled:cursor-not-allowed disabled:opacity-50": o
760
760
  },
761
761
  t
762
762
  )), Lo = (e, t, r) => {
763
- var a;
764
- !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
765
- }, Na = V.forwardRef((e, t) => {
766
- const { onClick: r, noInternalClick: a = !1, ...n } = e;
763
+ var n;
764
+ !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e == null ? void 0 : e.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
765
+ }, Cn = V.forwardRef((e, t) => {
766
+ const { onClick: r, noInternalClick: n = !1, ...a } = e;
767
767
  return /* @__PURE__ */ l(
768
768
  "button",
769
769
  {
770
770
  ref: t,
771
771
  onClick: (o) => {
772
- Lo(o, a, r);
772
+ Lo(o, n, r);
773
773
  },
774
- ...n
774
+ ...a
775
775
  }
776
776
  );
777
777
  });
778
- Na.displayName = "BaseButton";
778
+ Cn.displayName = "BaseButton";
779
779
  /*!
780
- @versini/ui-button v4.1.4
780
+ @versini/ui-button v4.1.5
781
781
  © 2025 gizmette.com
782
782
  */
783
783
  try {
784
784
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
785
- version: "4.1.4",
786
- buildTime: "01/20/2025 03:51 PM EST",
785
+ version: "4.1.5",
786
+ buildTime: "01/24/2025 09:19 AM EST",
787
787
  homepage: "https://github.com/aversini/ui-components",
788
788
  license: "MIT"
789
789
  });
790
790
  } catch {
791
791
  }
792
- const Ca = V.forwardRef(
792
+ const Rn = V.forwardRef(
793
793
  ({
794
794
  children: e,
795
795
  disabled: t = !1,
796
796
  mode: r = "system",
797
- focusMode: a = "system",
798
- fullWidth: n = !1,
797
+ focusMode: n = "system",
798
+ fullWidth: a = !1,
799
799
  className: o,
800
800
  type: i = "button",
801
801
  raw: s = !1,
@@ -812,10 +812,10 @@ const Ca = V.forwardRef(
812
812
  ...k
813
813
  }, w) => {
814
814
  const _ = Io({
815
- type: ar,
815
+ type: nr,
816
816
  mode: r,
817
- focusMode: a,
818
- fullWidth: n,
817
+ focusMode: n,
818
+ fullWidth: a,
819
819
  disabled: t,
820
820
  raw: s,
821
821
  className: o,
@@ -849,7 +849,7 @@ const Ca = V.forwardRef(
849
849
  }
850
850
  ) : "";
851
851
  return /* @__PURE__ */ l("div", { className: T, children: /* @__PURE__ */ E(
852
- Na,
852
+ Cn,
853
853
  {
854
854
  ref: w,
855
855
  className: _,
@@ -866,26 +866,26 @@ const Ca = V.forwardRef(
866
866
  ) });
867
867
  }
868
868
  );
869
- Ca.displayName = "ButtonSort";
870
- const nr = ({
869
+ Rn.displayName = "ButtonSort";
870
+ const ar = ({
871
871
  children: e,
872
872
  fill: t,
873
873
  viewBox: r,
874
- className: a,
875
- defaultViewBox: n,
874
+ className: n,
875
+ defaultViewBox: a,
876
876
  size: o,
877
877
  title: i,
878
878
  semantic: s = !1,
879
879
  ...c
880
880
  }) => {
881
- const d = f(o, a);
881
+ const d = f(o, n);
882
882
  return /* @__PURE__ */ E(ke, { children: [
883
883
  /* @__PURE__ */ l(
884
884
  "svg",
885
885
  {
886
886
  xmlns: "http://www.w3.org/2000/svg",
887
887
  className: d,
888
- viewBox: r || n,
888
+ viewBox: r || a,
889
889
  fill: t || "currentColor",
890
890
  role: "img",
891
891
  "aria-hidden": !s,
@@ -910,53 +910,53 @@ try {
910
910
  });
911
911
  } catch {
912
912
  }
913
- const Oo = ({
913
+ const Ao = ({
914
914
  className: e,
915
915
  viewBox: t,
916
916
  title: r,
917
- monotone: a,
918
- ...n
917
+ monotone: n,
918
+ ...a
919
919
  }) => /* @__PURE__ */ E(
920
- nr,
920
+ ar,
921
921
  {
922
922
  defaultViewBox: "0 0 576 512",
923
923
  size: "size-5",
924
924
  viewBox: t,
925
925
  className: e,
926
926
  title: r || "Sort",
927
- ...n,
927
+ ...a,
928
928
  children: [
929
929
  /* @__PURE__ */ l(
930
930
  "path",
931
931
  {
932
932
  d: "M297.4 137.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l41.3-41.4V448c0 17.7 14.3 32 32 32s32-14.3 32-32V141.3l41.4 41.4c12.5 12.5 32.8 12.5 45.3 0 6.2-6.2 9.4-14.4 9.4-22.6s-3.1-16.4-9.4-22.6l-96-96c-6.3-6.4-14.5-9.5-22.7-9.5s-16.4 3.1-22.6 9.4z",
933
- opacity: a ? "1" : "0.4"
933
+ opacity: n ? "1" : "0.4"
934
934
  }
935
935
  ),
936
936
  /* @__PURE__ */ l("path", { d: "M137.4 470.6c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 370.7V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v306.7l-41.4-41.3c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96z" })
937
937
  ]
938
938
  }
939
- ), Ao = ({
939
+ ), Oo = ({
940
940
  className: e,
941
941
  viewBox: t,
942
942
  title: r,
943
- monotone: a,
944
- ...n
943
+ monotone: n,
944
+ ...a
945
945
  }) => /* @__PURE__ */ E(
946
- nr,
946
+ ar,
947
947
  {
948
948
  defaultViewBox: "0 0 576 512",
949
949
  size: "size-5",
950
950
  viewBox: t,
951
951
  className: e,
952
952
  title: r || "Sort Down",
953
- ...n,
953
+ ...a,
954
954
  children: [
955
955
  /* @__PURE__ */ l(
956
956
  "path",
957
957
  {
958
958
  d: "M288 64c0-17.7 14.3-32 32-32h224c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32m0 128c0-17.7 14.3-32 32-32h160c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32m0 128c0-17.7 14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32h-96c-17.7 0-32-14.3-32-32m0 128c0-17.7 14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32h-32c-17.7 0-32-14.3-32-32",
959
- opacity: a ? "1" : "0.4"
959
+ opacity: n ? "1" : "0.4"
960
960
  }
961
961
  ),
962
962
  /* @__PURE__ */ l("path", { d: "M128 480c9 0 17.5-3.8 23.6-10.4l88-96c11.9-13 11.1-33.3-2-45.2s-33.3-11.1-45.2 2L160 365.7V64c0-17.7-14.3-32-32-32S96 46.3 96 64v301.7l-32.4-35.3c-11.9-13-32.2-13.9-45.2-2s-13.9 32.2-2 45.2l88 96c6.1 6.6 14.6 10.4 23.6 10.4" })
@@ -966,23 +966,23 @@ const Oo = ({
966
966
  className: e,
967
967
  viewBox: t,
968
968
  title: r,
969
- monotone: a,
970
- ...n
969
+ monotone: n,
970
+ ...a
971
971
  }) => /* @__PURE__ */ E(
972
- nr,
972
+ ar,
973
973
  {
974
974
  defaultViewBox: "0 0 576 512",
975
975
  size: "size-5",
976
976
  viewBox: t,
977
977
  className: e,
978
978
  title: r || "Sort Up",
979
- ...n,
979
+ ...a,
980
980
  children: [
981
981
  /* @__PURE__ */ l(
982
982
  "path",
983
983
  {
984
984
  d: "M288 64c0-17.7 14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32h-32c-17.7 0-32-14.3-32-32m0 128c0-17.7 14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32h-96c-17.7 0-32-14.3-32-32m0 128c0-17.7 14.3-32 32-32h160c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32m0 128c0-17.7 14.3-32 32-32h224c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32",
985
- opacity: a ? "1" : "0.4"
985
+ opacity: n ? "1" : "0.4"
986
986
  }
987
987
  ),
988
988
  /* @__PURE__ */ l("path", { d: "M128 32c9 0 17.5 3.8 23.6 10.4l88 96c11.9 13 11.1 33.3-2 45.2s-33.3 11.1-45.2-2L160 146.3V448c0 17.7-14.3 32-32 32s-32-14.3-32-32V146.3l-32.4 35.3c-11.9 13-32.2 13.9-45.2 2s-13.9-32.2-2-45.2l88-96C110.5 35.8 119 32 128 32" })
@@ -990,13 +990,13 @@ const Oo = ({
990
990
  }
991
991
  );
992
992
  /*!
993
- @versini/ui-icons v4.5.2
993
+ @versini/ui-icons v4.6.0
994
994
  © 2025 gizmette.com
995
995
  */
996
996
  try {
997
997
  window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
998
- version: "4.5.2",
999
- buildTime: "01/20/2025 01:49 PM EST",
998
+ version: "4.6.0",
999
+ buildTime: "01/20/2025 04:20 PM EST",
1000
1000
  homepage: "https://github.com/aversini/ui-components",
1001
1001
  license: "MIT"
1002
1002
  });
@@ -1012,8 +1012,8 @@ const Le = V.createContext({
1012
1012
  children: e,
1013
1013
  mode: t = "system",
1014
1014
  caption: r,
1015
- compact: a,
1016
- summary: n,
1015
+ compact: n,
1016
+ summary: a,
1017
1017
  className: o,
1018
1018
  wrapperClassName: i,
1019
1019
  maxHeight: s,
@@ -1031,7 +1031,7 @@ const Le = V.createContext({
1031
1031
  return /* @__PURE__ */ l(
1032
1032
  Le.Provider,
1033
1033
  {
1034
- value: { mode: t, stickyHeader: c, stickyFooter: d, compact: a },
1034
+ value: { mode: t, stickyHeader: c, stickyFooter: d, compact: n },
1035
1035
  children: /* @__PURE__ */ l(
1036
1036
  "div",
1037
1037
  {
@@ -1039,7 +1039,7 @@ const Le = V.createContext({
1039
1039
  ...s && {
1040
1040
  style: { maxHeight: s }
1041
1041
  },
1042
- children: /* @__PURE__ */ E("table", { className: u.table, summary: n, ...h, children: [
1042
+ children: /* @__PURE__ */ E("table", { className: u.table, summary: a, ...h, children: [
1043
1043
  r && /* @__PURE__ */ l("caption", { className: u.caption, children: r }),
1044
1044
  e
1045
1045
  ] })
@@ -1052,62 +1052,62 @@ const Le = V.createContext({
1052
1052
  className: t,
1053
1053
  ...r
1054
1054
  }) => {
1055
- const a = z(Le);
1056
- a.cellWrapper = it;
1057
- const n = po({
1055
+ const n = P(Le);
1056
+ n.cellWrapper = it;
1057
+ const a = po({
1058
1058
  className: t,
1059
- mode: a.mode,
1060
- stickyHeader: a.stickyHeader
1059
+ mode: n.mode,
1060
+ stickyHeader: n.stickyHeader
1061
1061
  });
1062
- return /* @__PURE__ */ l("thead", { className: n, ...r, children: e });
1062
+ return /* @__PURE__ */ l("thead", { className: a, ...r, children: e });
1063
1063
  }, Xl = ({
1064
1064
  children: e,
1065
1065
  className: t,
1066
1066
  ...r
1067
1067
  }) => {
1068
- const a = z(Le);
1069
- a.cellWrapper = rr;
1070
- const n = bo({
1068
+ const n = P(Le);
1069
+ n.cellWrapper = rr;
1070
+ const a = bo({
1071
1071
  className: t,
1072
- mode: a.mode,
1073
- stickyFooter: a.stickyFooter
1072
+ mode: n.mode,
1073
+ stickyFooter: n.stickyFooter
1074
1074
  });
1075
- return /* @__PURE__ */ l("tfoot", { className: n, ...r, children: e });
1075
+ return /* @__PURE__ */ l("tfoot", { className: a, ...r, children: e });
1076
1076
  }, Zl = ({ children: e, ...t }) => {
1077
- const r = z(Le);
1077
+ const r = P(Le);
1078
1078
  return r.cellWrapper = Ee, /* @__PURE__ */ l("tbody", { ...t, children: e });
1079
1079
  }, Ql = ({
1080
1080
  children: e,
1081
1081
  className: t,
1082
1082
  ...r
1083
1083
  }) => {
1084
- const a = z(Le), n = yo({
1085
- mode: a.mode,
1086
- cellWrapper: a.cellWrapper,
1084
+ const n = P(Le), a = yo({
1085
+ mode: n.mode,
1086
+ cellWrapper: n.cellWrapper,
1087
1087
  className: t
1088
1088
  });
1089
- return /* @__PURE__ */ l("tr", { className: n, ...r, children: e });
1089
+ return /* @__PURE__ */ l("tr", { className: a, ...r, children: e });
1090
1090
  }, Bo = ({
1091
1091
  children: e,
1092
1092
  component: t,
1093
1093
  className: r,
1094
- align: a,
1095
- ...n
1094
+ align: n,
1095
+ ...a
1096
1096
  }) => {
1097
- const o = z(Le), i = t || (o.cellWrapper === it ? "th" : "td"), { mainClasses: s, alignClasses: c } = vo({
1097
+ const o = P(Le), i = t || (o.cellWrapper === it ? "th" : "td"), { mainClasses: s, alignClasses: c } = vo({
1098
1098
  cellWrapper: o.cellWrapper,
1099
1099
  className: r,
1100
1100
  mode: o.mode,
1101
1101
  compact: o.compact,
1102
- align: a
1102
+ align: n
1103
1103
  });
1104
- return a ? /* @__PURE__ */ l(i, { className: s, ...n, children: /* @__PURE__ */ l("div", { className: c, children: e }) }) : /* @__PURE__ */ l(i, { className: s, ...n, children: e });
1104
+ return n ? /* @__PURE__ */ l(i, { className: s, ...a, children: /* @__PURE__ */ l("div", { className: c, children: e }) }) : /* @__PURE__ */ l(i, { className: s, ...a, children: e });
1105
1105
  }, ec = ({
1106
1106
  align: e,
1107
1107
  children: t,
1108
1108
  buttonClassName: r,
1109
- className: a,
1110
- component: n,
1109
+ className: n,
1110
+ component: a,
1111
1111
  focusMode: o = "alt-system",
1112
1112
  mode: i = "alt-system",
1113
1113
  onClick: s,
@@ -1120,13 +1120,13 @@ const Le = V.createContext({
1120
1120
  return /* @__PURE__ */ l(
1121
1121
  Bo,
1122
1122
  {
1123
- component: n,
1124
- className: a,
1123
+ component: a,
1124
+ className: n,
1125
1125
  role: "columnheader",
1126
1126
  "aria-sort": c === Be.ASC && d === h ? "ascending" : c === Be.DESC && d === h ? "descending" : "other",
1127
1127
  ...u,
1128
1128
  children: /* @__PURE__ */ l(
1129
- Ca,
1129
+ Rn,
1130
1130
  {
1131
1131
  active: d === h,
1132
1132
  className: m,
@@ -1137,7 +1137,7 @@ const Le = V.createContext({
1137
1137
  mode: i,
1138
1138
  fullWidth: !0,
1139
1139
  labelRight: t,
1140
- children: c === Be.ASC && d === h ? /* @__PURE__ */ l($o, { className: "size-4", monotone: !0 }) : c === Be.DESC && d === h ? /* @__PURE__ */ l(Ao, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Oo, { className: "size-4", monotone: !0 })
1140
+ children: c === Be.ASC && d === h ? /* @__PURE__ */ l($o, { className: "size-4", monotone: !0 }) : c === Be.DESC && d === h ? /* @__PURE__ */ l(Oo, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Ao, { className: "size-4", monotone: !0 })
1141
1141
  }
1142
1142
  )
1143
1143
  }
@@ -1150,7 +1150,7 @@ function Mo(e, t = 0) {
1150
1150
  }
1151
1151
  let _t;
1152
1152
  const Vo = new Uint8Array(16);
1153
- function Po() {
1153
+ function Do() {
1154
1154
  if (!_t) {
1155
1155
  if (typeof crypto > "u" || !crypto.getRandomValues)
1156
1156
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
@@ -1158,21 +1158,21 @@ function Po() {
1158
1158
  }
1159
1159
  return _t(Vo);
1160
1160
  }
1161
- const Do = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Pr = { randomUUID: Do };
1161
+ const zo = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Dr = { randomUUID: zo };
1162
1162
  function or(e, t, r) {
1163
- var n;
1164
- if (Pr.randomUUID && !e)
1165
- return Pr.randomUUID();
1163
+ var a;
1164
+ if (Dr.randomUUID && !e)
1165
+ return Dr.randomUUID();
1166
1166
  e = e || {};
1167
- const a = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? Po();
1168
- if (a.length < 16)
1167
+ const n = e.random ?? ((a = e.rng) == null ? void 0 : a.call(e)) ?? Do();
1168
+ if (n.length < 16)
1169
1169
  throw new Error("Random bytes length must be >= 16");
1170
- return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Mo(a);
1170
+ return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Mo(n);
1171
1171
  }
1172
- const zo = (e, t) => {
1173
- var r, a;
1174
- if ((t == null ? void 0 : t.type) === pn) {
1175
- const n = t.payload.messages.map((o) => ({
1172
+ const Po = (e, t) => {
1173
+ var r, n;
1174
+ if ((t == null ? void 0 : t.type) === pa) {
1175
+ const a = t.payload.messages.map((o) => ({
1176
1176
  message: {
1177
1177
  role: o.role,
1178
1178
  content: o.content,
@@ -1185,7 +1185,7 @@ const zo = (e, t) => {
1185
1185
  model: t.payload.model,
1186
1186
  usage: t.payload.usage,
1187
1187
  isComponent: e.isComponent,
1188
- messages: n,
1188
+ messages: a,
1189
1189
  engine: e.engine,
1190
1190
  prompts: e.prompts,
1191
1191
  streaming: e.streaming,
@@ -1193,16 +1193,16 @@ const zo = (e, t) => {
1193
1193
  };
1194
1194
  }
1195
1195
  if ((t == null ? void 0 : t.type) === Ve) {
1196
- const n = t.payload.message.role, o = t.payload.message.content, i = t.payload.message.name, s = t.payload.message.processingTime, c = t.payload.message.messageId;
1197
- if (n !== "") {
1196
+ const a = t.payload.message.role, o = t.payload.message.content, i = t.payload.message.name, s = t.payload.message.processingTime, c = t.payload.message.messageId;
1197
+ if (a !== "") {
1198
1198
  const d = {
1199
- role: n,
1199
+ role: a,
1200
1200
  content: o,
1201
1201
  name: i,
1202
1202
  processingTime: s,
1203
1203
  messageId: c
1204
1204
  };
1205
- if (n === Pe) {
1205
+ if (a === De) {
1206
1206
  const h = e.messages.findIndex(
1207
1207
  (u) => u.message.messageId === c
1208
1208
  );
@@ -1249,13 +1249,13 @@ const zo = (e, t) => {
1249
1249
  }
1250
1250
  }
1251
1251
  if ((t == null ? void 0 : t.type) === Ie) {
1252
- let n = !1;
1253
- return typeof ((r = t == null ? void 0 : t.payload) == null ? void 0 : r.private) == "boolean" ? n = t.payload.private : typeof e.private == "boolean" && (n = e.private), {
1252
+ let a = !1;
1253
+ return typeof ((r = t == null ? void 0 : t.payload) == null ? void 0 : r.private) == "boolean" ? a = t.payload.private : typeof e.private == "boolean" && (a = e.private), {
1254
1254
  ...e,
1255
1255
  id: or(),
1256
1256
  model: e.model,
1257
- engine: ((a = t == null ? void 0 : t.payload) == null ? void 0 : a.engine) || e.engine,
1258
- private: n,
1257
+ engine: ((n = t == null ? void 0 : t.payload) == null ? void 0 : n.engine) || e.engine,
1258
+ private: a,
1259
1259
  usage: 0,
1260
1260
  messages: [],
1261
1261
  isComponent: e.isComponent,
@@ -1264,7 +1264,7 @@ const zo = (e, t) => {
1264
1264
  lastTriggeredTimestamp: e.lastTriggeredTimestamp
1265
1265
  };
1266
1266
  }
1267
- if ((t == null ? void 0 : t.type) === la)
1267
+ if ((t == null ? void 0 : t.type) === cn)
1268
1268
  return {
1269
1269
  ...e,
1270
1270
  id: e.id,
@@ -1277,24 +1277,24 @@ const zo = (e, t) => {
1277
1277
  streaming: e.streaming,
1278
1278
  lastTriggeredTimestamp: e.lastTriggeredTimestamp
1279
1279
  };
1280
- if ((t == null ? void 0 : t.type) === ca) {
1281
- let n = e.lastTriggeredTimestamp;
1282
- return e.streaming !== t.payload.streaming && (n = (/* @__PURE__ */ new Date()).getTime()), {
1280
+ if ((t == null ? void 0 : t.type) === dn) {
1281
+ let a = e.lastTriggeredTimestamp;
1282
+ return e.streaming !== t.payload.streaming && (a = (/* @__PURE__ */ new Date()).getTime()), {
1283
1283
  ...e,
1284
1284
  streaming: t.payload.streaming,
1285
- lastTriggeredTimestamp: n
1285
+ lastTriggeredTimestamp: a
1286
1286
  };
1287
1287
  }
1288
1288
  return e;
1289
1289
  }, Uo = (e, t) => {
1290
1290
  switch (t == null ? void 0 : t.type) {
1291
- case yn:
1291
+ case ya:
1292
1292
  return {
1293
1293
  searchString: t.payload.searchString,
1294
1294
  sortedCell: e.sortedCell,
1295
1295
  sortDirection: e.sortDirection
1296
1296
  };
1297
- case bn:
1297
+ case ba:
1298
1298
  return {
1299
1299
  searchString: e.searchString,
1300
1300
  sortedCell: t.payload.sortedCell,
@@ -1305,12 +1305,12 @@ const zo = (e, t) => {
1305
1305
  }
1306
1306
  }, Ho = (e, t) => {
1307
1307
  switch (t == null ? void 0 : t.type) {
1308
- case ua:
1308
+ case mn:
1309
1309
  return {
1310
1310
  prompt: t.payload.prompt,
1311
1311
  lastTriggeredTimestamp: e.lastTriggeredTimestamp
1312
1312
  };
1313
- case da:
1313
+ case un:
1314
1314
  return {
1315
1315
  prompt: "",
1316
1316
  lastTriggeredTimestamp: (/* @__PURE__ */ new Date()).getTime()
@@ -1329,23 +1329,23 @@ var Xe = { exports: {} }, Et = {};
1329
1329
  * This source code is licensed under the MIT license found in the
1330
1330
  * LICENSE file in the root directory of this source tree.
1331
1331
  */
1332
- var Dr;
1332
+ var zr;
1333
1333
  function Fo() {
1334
- if (Dr) return Et;
1335
- Dr = 1;
1334
+ if (zr) return Et;
1335
+ zr = 1;
1336
1336
  var e = V;
1337
1337
  function t(u, m) {
1338
1338
  return u === m && (u !== 0 || 1 / u === 1 / m) || u !== u && m !== m;
1339
1339
  }
1340
- var r = typeof Object.is == "function" ? Object.is : t, a = e.useState, n = e.useEffect, o = e.useLayoutEffect, i = e.useDebugValue;
1340
+ var r = typeof Object.is == "function" ? Object.is : t, n = e.useState, a = e.useEffect, o = e.useLayoutEffect, i = e.useDebugValue;
1341
1341
  function s(u, m) {
1342
- var g = m(), p = a({ inst: { value: g, getSnapshot: m } }), b = p[0].inst, v = p[1];
1342
+ var g = m(), p = n({ inst: { value: g, getSnapshot: m } }), b = p[0].inst, v = p[1];
1343
1343
  return o(
1344
1344
  function() {
1345
1345
  b.value = g, b.getSnapshot = m, c(b) && v({ inst: b });
1346
1346
  },
1347
1347
  [u, g, m]
1348
- ), n(
1348
+ ), a(
1349
1349
  function() {
1350
1350
  return c(b) && v({ inst: b }), u(function() {
1351
1351
  c(b) && v({ inst: b });
@@ -1380,14 +1380,14 @@ var Tt = {};
1380
1380
  * This source code is licensed under the MIT license found in the
1381
1381
  * LICENSE file in the root directory of this source tree.
1382
1382
  */
1383
- var zr;
1383
+ var Pr;
1384
1384
  function Wo() {
1385
- return zr || (zr = 1, process.env.NODE_ENV !== "production" && function() {
1385
+ return Pr || (Pr = 1, process.env.NODE_ENV !== "production" && function() {
1386
1386
  function e(g, p) {
1387
1387
  return g === p && (g !== 0 || 1 / g === 1 / p) || g !== g && p !== p;
1388
1388
  }
1389
1389
  function t(g, p) {
1390
- h || n.startTransition === void 0 || (h = !0, console.error(
1390
+ h || a.startTransition === void 0 || (h = !0, console.error(
1391
1391
  "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
1392
1392
  ));
1393
1393
  var b = p();
@@ -1425,12 +1425,12 @@ function Wo() {
1425
1425
  return !0;
1426
1426
  }
1427
1427
  }
1428
- function a(g, p) {
1428
+ function n(g, p) {
1429
1429
  return p();
1430
1430
  }
1431
1431
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1432
- var n = V, o = typeof Object.is == "function" ? Object.is : e, i = n.useState, s = n.useEffect, c = n.useLayoutEffect, d = n.useDebugValue, h = !1, u = !1, m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : t;
1433
- Tt.useSyncExternalStore = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : m, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1432
+ var a = V, o = typeof Object.is == "function" ? Object.is : e, i = a.useState, s = a.useEffect, c = a.useLayoutEffect, d = a.useDebugValue, h = !1, u = !1, m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? n : t;
1433
+ Tt.useSyncExternalStore = a.useSyncExternalStore !== void 0 ? a.useSyncExternalStore : m, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1434
1434
  }()), Tt;
1435
1435
  }
1436
1436
  var Ur;
@@ -1438,22 +1438,22 @@ function Go() {
1438
1438
  return Ur || (Ur = 1, process.env.NODE_ENV === "production" ? Xe.exports = /* @__PURE__ */ Fo() : Xe.exports = /* @__PURE__ */ Wo()), Xe.exports;
1439
1439
  }
1440
1440
  var jo = /* @__PURE__ */ Go(), Hr = Object.prototype.hasOwnProperty;
1441
- function Pt(e, t) {
1442
- var r, a;
1441
+ function Dt(e, t) {
1442
+ var r, n;
1443
1443
  if (e === t) return !0;
1444
1444
  if (e && t && (r = e.constructor) === t.constructor) {
1445
1445
  if (r === Date) return e.getTime() === t.getTime();
1446
1446
  if (r === RegExp) return e.toString() === t.toString();
1447
1447
  if (r === Array) {
1448
- if ((a = e.length) === t.length)
1449
- for (; a-- && Pt(e[a], t[a]); ) ;
1450
- return a === -1;
1448
+ if ((n = e.length) === t.length)
1449
+ for (; n-- && Dt(e[n], t[n]); ) ;
1450
+ return n === -1;
1451
1451
  }
1452
1452
  if (!r || typeof e == "object") {
1453
- a = 0;
1453
+ n = 0;
1454
1454
  for (r in e)
1455
- if (Hr.call(e, r) && ++a && !Hr.call(t, r) || !(r in t) || !Pt(e[r], t[r])) return !1;
1456
- return Object.keys(t).length === a;
1455
+ if (Hr.call(e, r) && ++n && !Hr.call(t, r) || !(r in t) || !Dt(e[r], t[r])) return !1;
1456
+ return Object.keys(t).length === n;
1457
1457
  }
1458
1458
  }
1459
1459
  return e !== e && t !== t;
@@ -1462,19 +1462,19 @@ const ie = /* @__PURE__ */ new WeakMap(), he = () => {
1462
1462
  }, X = (
1463
1463
  /*#__NOINLINE__*/
1464
1464
  he()
1465
- ), Dt = Object, C = (e) => e === X, se = (e) => typeof e == "function", pe = (e, t) => ({
1465
+ ), zt = Object, C = (e) => e === X, se = (e) => typeof e == "function", pe = (e, t) => ({
1466
1466
  ...e,
1467
1467
  ...t
1468
- }), Ra = (e) => se(e.then), St = {}, Ze = {}, ir = "undefined", st = typeof window != ir, zt = typeof document != ir, qo = () => st && typeof window.requestAnimationFrame != ir, Ia = (e, t) => {
1468
+ }), In = (e) => se(e.then), St = {}, Ze = {}, ir = "undefined", st = typeof window != ir, Pt = typeof document != ir, qo = () => st && typeof window.requestAnimationFrame != ir, Ln = (e, t) => {
1469
1469
  const r = ie.get(e);
1470
1470
  return [
1471
1471
  // Getter
1472
1472
  () => !C(t) && e.get(t) || St,
1473
1473
  // Setter
1474
- (a) => {
1474
+ (n) => {
1475
1475
  if (!C(t)) {
1476
- const n = e.get(t);
1477
- t in Ze || (Ze[t] = n), r[5](t, pe(n, a), n || St);
1476
+ const a = e.get(t);
1477
+ t in Ze || (Ze[t] = a), r[5](t, pe(a, n), a || St);
1478
1478
  }
1479
1479
  },
1480
1480
  // Subscriber
@@ -1491,10 +1491,10 @@ const Ko = () => Ut, [Ht, Ft] = st && window.addEventListener ? [
1491
1491
  he,
1492
1492
  he
1493
1493
  ], Yo = () => {
1494
- const e = zt && document.visibilityState;
1494
+ const e = Pt && document.visibilityState;
1495
1495
  return C(e) || e !== "hidden";
1496
- }, Jo = (e) => (zt && document.addEventListener("visibilitychange", e), Ht("focus", e), () => {
1497
- zt && document.removeEventListener("visibilitychange", e), Ft("focus", e);
1496
+ }, Jo = (e) => (Pt && document.addEventListener("visibilitychange", e), Ht("focus", e), () => {
1497
+ Pt && document.removeEventListener("visibilitychange", e), Ft("focus", e);
1498
1498
  }), Xo = (e) => {
1499
1499
  const t = () => {
1500
1500
  Ut = !0, e();
@@ -1510,24 +1510,24 @@ const Ko = () => Ut, [Ht, Ft] = st && window.addEventListener ? [
1510
1510
  }, Qo = {
1511
1511
  initFocus: Jo,
1512
1512
  initReconnect: Xo
1513
- }, Fr = !V.useId, De = !st || "Deno" in globalThis, ei = (e) => qo() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Nt = De ? $ : Mn, Ct = typeof navigator < "u" && navigator.connection, Wr = !De && Ct && ([
1513
+ }, Fr = !V.useId, ze = !st || "Deno" in globalThis, ei = (e) => qo() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Nt = ze ? $ : Ma, Ct = typeof navigator < "u" && navigator.connection, Wr = !ze && Ct && ([
1514
1514
  "slow-2g",
1515
1515
  "2g"
1516
- ].includes(Ct.effectiveType) || Ct.saveData), Qe = /* @__PURE__ */ new WeakMap(), Rt = (e, t) => Dt.prototype.toString.call(e) === `[object ${t}]`;
1516
+ ].includes(Ct.effectiveType) || Ct.saveData), Qe = /* @__PURE__ */ new WeakMap(), Rt = (e, t) => zt.prototype.toString.call(e) === `[object ${t}]`;
1517
1517
  let ti = 0;
1518
1518
  const Wt = (e) => {
1519
- const t = typeof e, r = Rt(e, "Date"), a = Rt(e, "RegExp"), n = Rt(e, "Object");
1519
+ const t = typeof e, r = Rt(e, "Date"), n = Rt(e, "RegExp"), a = Rt(e, "Object");
1520
1520
  let o, i;
1521
- if (Dt(e) === e && !r && !a) {
1521
+ if (zt(e) === e && !r && !n) {
1522
1522
  if (o = Qe.get(e), o) return o;
1523
1523
  if (o = ++ti + "~", Qe.set(e, o), Array.isArray(e)) {
1524
1524
  for (o = "@", i = 0; i < e.length; i++)
1525
1525
  o += Wt(e[i]) + ",";
1526
1526
  Qe.set(e, o);
1527
1527
  }
1528
- if (n) {
1528
+ if (a) {
1529
1529
  o = "#";
1530
- const s = Dt.keys(e).sort();
1530
+ const s = zt.keys(e).sort();
1531
1531
  for (; !C(i = s.pop()); )
1532
1532
  C(e[i]) || (o += i + ":" + Wt(e[i]) + ",");
1533
1533
  Qe.set(e, o);
@@ -1549,21 +1549,21 @@ const Wt = (e) => {
1549
1549
  ];
1550
1550
  };
1551
1551
  let ri = 0;
1552
- const Gt = () => ++ri, La = 0, Oa = 1, Aa = 2, ai = 3;
1552
+ const Gt = () => ++ri, An = 0, On = 1, $n = 2, ni = 3;
1553
1553
  var $e = {
1554
1554
  __proto__: null,
1555
- ERROR_REVALIDATE_EVENT: ai,
1556
- FOCUS_EVENT: La,
1557
- MUTATE_EVENT: Aa,
1558
- RECONNECT_EVENT: Oa
1555
+ ERROR_REVALIDATE_EVENT: ni,
1556
+ FOCUS_EVENT: An,
1557
+ MUTATE_EVENT: $n,
1558
+ RECONNECT_EVENT: On
1559
1559
  };
1560
- async function $a(...e) {
1561
- const [t, r, a, n] = e, o = pe({
1560
+ async function Bn(...e) {
1561
+ const [t, r, n, a] = e, o = pe({
1562
1562
  populateCache: !0,
1563
1563
  throwOnError: !0
1564
- }, typeof n == "boolean" ? {
1565
- revalidate: n
1566
- } : n || {});
1564
+ }, typeof a == "boolean" ? {
1565
+ revalidate: a
1566
+ } : a || {});
1567
1567
  let i = o.populateCache;
1568
1568
  const s = o.rollbackOnError;
1569
1569
  let c = o.optimisticData;
@@ -1579,41 +1579,41 @@ async function $a(...e) {
1579
1579
  async function u(m) {
1580
1580
  const [g] = lt(m);
1581
1581
  if (!g) return;
1582
- const [p, b] = Ia(t, g), [v, y, k, w] = ie.get(t), _ = () => {
1582
+ const [p, b] = Ln(t, g), [v, y, k, w] = ie.get(t), _ = () => {
1583
1583
  const B = v[g];
1584
- return (se(o.revalidate) ? o.revalidate(p().data, m) : o.revalidate !== !1) && (delete k[g], delete w[g], B && B[0]) ? B[0](Aa).then(() => p().data) : p().data;
1584
+ return (se(o.revalidate) ? o.revalidate(p().data, m) : o.revalidate !== !1) && (delete k[g], delete w[g], B && B[0]) ? B[0]($n).then(() => p().data) : p().data;
1585
1585
  };
1586
1586
  if (e.length < 3)
1587
1587
  return _();
1588
- let x = a, T;
1588
+ let x = n, T;
1589
1589
  const S = Gt();
1590
1590
  y[g] = [
1591
1591
  S,
1592
1592
  0
1593
1593
  ];
1594
- const N = !C(c), D = p(), O = D.data, j = D._c, P = C(j) ? O : j;
1595
- if (N && (c = se(c) ? c(P, O) : c, b({
1594
+ const N = !C(c), z = p(), A = z.data, j = z._c, D = C(j) ? A : j;
1595
+ if (N && (c = se(c) ? c(D, A) : c, b({
1596
1596
  data: c,
1597
- _c: P
1597
+ _c: D
1598
1598
  })), se(x))
1599
1599
  try {
1600
- x = x(P);
1600
+ x = x(D);
1601
1601
  } catch (B) {
1602
1602
  T = B;
1603
1603
  }
1604
- if (x && Ra(x))
1604
+ if (x && In(x))
1605
1605
  if (x = await x.catch((B) => {
1606
1606
  T = B;
1607
1607
  }), S !== y[g][0]) {
1608
1608
  if (T) throw T;
1609
1609
  return x;
1610
1610
  } else T && N && d(T) && (i = !0, b({
1611
- data: P,
1611
+ data: D,
1612
1612
  _c: X
1613
1613
  }));
1614
1614
  if (i && !T)
1615
1615
  if (se(i)) {
1616
- const B = i(x, P);
1616
+ const B = i(x, D);
1617
1617
  b({
1618
1618
  data: B,
1619
1619
  error: X,
@@ -1639,9 +1639,9 @@ async function $a(...e) {
1639
1639
  const Gr = (e, t) => {
1640
1640
  for (const r in e)
1641
1641
  e[r][0] && e[r][0](t);
1642
- }, ni = (e, t) => {
1642
+ }, ai = (e, t) => {
1643
1643
  if (!ie.has(e)) {
1644
- const r = pe(Qo, t), a = {}, n = $a.bind(X, e);
1644
+ const r = pe(Qo, t), n = {}, a = Bn.bind(X, e);
1645
1645
  let o = he;
1646
1646
  const i = {}, s = (h, u) => {
1647
1647
  const m = i[h] || [];
@@ -1654,15 +1654,15 @@ const Gr = (e, t) => {
1654
1654
  p(u, m);
1655
1655
  }, d = () => {
1656
1656
  if (!ie.has(e) && (ie.set(e, [
1657
- a,
1657
+ n,
1658
1658
  {},
1659
1659
  {},
1660
1660
  {},
1661
- n,
1661
+ a,
1662
1662
  c,
1663
1663
  s
1664
- ]), !De)) {
1665
- const h = r.initFocus(setTimeout.bind(X, Gr.bind(X, a, La))), u = r.initReconnect(setTimeout.bind(X, Gr.bind(X, a, Oa)));
1664
+ ]), !ze)) {
1665
+ const h = r.initFocus(setTimeout.bind(X, Gr.bind(X, n, An))), u = r.initReconnect(setTimeout.bind(X, Gr.bind(X, n, On)));
1666
1666
  o = () => {
1667
1667
  h && h(), u && u(), ie.delete(e);
1668
1668
  };
@@ -1670,7 +1670,7 @@ const Gr = (e, t) => {
1670
1670
  };
1671
1671
  return d(), [
1672
1672
  e,
1673
- n,
1673
+ a,
1674
1674
  d,
1675
1675
  o
1676
1676
  ];
@@ -1679,10 +1679,10 @@ const Gr = (e, t) => {
1679
1679
  e,
1680
1680
  ie.get(e)[4]
1681
1681
  ];
1682
- }, oi = (e, t, r, a, n) => {
1683
- const o = r.errorRetryCount, i = n.retryCount, s = ~~((Math.random() + 0.5) * (1 << (i < 8 ? i : 8))) * r.errorRetryInterval;
1684
- !C(o) && i > o || setTimeout(a, s, n);
1685
- }, ii = Pt, [sr, si] = ni(/* @__PURE__ */ new Map()), li = pe(
1682
+ }, oi = (e, t, r, n, a) => {
1683
+ const o = r.errorRetryCount, i = a.retryCount, s = ~~((Math.random() + 0.5) * (1 << (i < 8 ? i : 8))) * r.errorRetryInterval;
1684
+ !C(o) && i > o || setTimeout(n, s, a);
1685
+ }, ii = Dt, [sr, si] = ai(/* @__PURE__ */ new Map()), li = pe(
1686
1686
  {
1687
1687
  // events
1688
1688
  onLoadingSlow: he,
@@ -1712,12 +1712,12 @@ const Gr = (e, t) => {
1712
1712
  ), ci = (e, t) => {
1713
1713
  const r = pe(e, t);
1714
1714
  if (t) {
1715
- const { use: a, fallback: n } = e, { use: o, fallback: i } = t;
1716
- a && o && (r.use = a.concat(o)), n && i && (r.fallback = pe(n, i));
1715
+ const { use: n, fallback: a } = e, { use: o, fallback: i } = t;
1716
+ n && o && (r.use = n.concat(o)), a && i && (r.fallback = pe(a, i));
1717
1717
  }
1718
1718
  return r;
1719
- }, di = Bn({}), ui = "$inf$", Ba = st && window.__SWR_DEVTOOLS_USE__, mi = Ba ? window.__SWR_DEVTOOLS_USE__ : [], gi = () => {
1720
- Ba && (window.__SWR_DEVTOOLS_REACT__ = V);
1719
+ }, di = Ba({}), ui = "$inf$", Mn = st && window.__SWR_DEVTOOLS_USE__, mi = Mn ? window.__SWR_DEVTOOLS_USE__ : [], gi = () => {
1720
+ Mn && (window.__SWR_DEVTOOLS_REACT__ = V);
1721
1721
  }, fi = (e) => se(e[1]) ? [
1722
1722
  e[0],
1723
1723
  e[1],
@@ -1726,29 +1726,29 @@ const Gr = (e, t) => {
1726
1726
  e[0],
1727
1727
  null,
1728
1728
  (e[1] === null ? e[2] : e[1]) || {}
1729
- ], hi = () => pe(li, z(di)), Ma = (e, t) => {
1730
- const [r, a] = lt(e), [, , , n] = ie.get(sr);
1731
- if (n[r]) return n[r];
1732
- const o = t(a);
1733
- return n[r] = o, o;
1734
- }, pi = (e) => (t, r, a) => e(t, r && ((...o) => {
1729
+ ], hi = () => pe(li, P(di)), Vn = (e, t) => {
1730
+ const [r, n] = lt(e), [, , , a] = ie.get(sr);
1731
+ if (a[r]) return a[r];
1732
+ const o = t(n);
1733
+ return a[r] = o, o;
1734
+ }, pi = (e) => (t, r, n) => e(t, r && ((...o) => {
1735
1735
  const [i] = lt(t), [, , , s] = ie.get(sr);
1736
1736
  if (i.startsWith(ui))
1737
1737
  return r(...o);
1738
1738
  const c = s[i];
1739
1739
  return C(c) ? r(...o) : (delete s[i], c);
1740
- }), a), bi = mi.concat(pi), yi = (e) => function(...r) {
1741
- const a = hi(), [n, o, i] = fi(r), s = ci(a, i);
1740
+ }), n), bi = mi.concat(pi), yi = (e) => function(...r) {
1741
+ const n = hi(), [a, o, i] = fi(r), s = ci(n, i);
1742
1742
  let c = e;
1743
1743
  const { use: d } = s, h = (d || []).concat(bi);
1744
1744
  for (let u = h.length; u--; )
1745
1745
  c = h[u](c);
1746
- return c(n, o || s.fetcher || null, s);
1746
+ return c(a, o || s.fetcher || null, s);
1747
1747
  }, vi = (e, t, r) => {
1748
- const a = t[e] || (t[e] = []);
1749
- return a.push(r), () => {
1750
- const n = a.indexOf(r);
1751
- n >= 0 && (a[n] = a[a.length - 1], a.pop());
1748
+ const n = t[e] || (t[e] = []);
1749
+ return n.push(r), () => {
1750
+ const a = n.indexOf(r);
1751
+ a >= 0 && (n[a] = n[n.length - 1], n.pop());
1752
1752
  };
1753
1753
  };
1754
1754
  gi();
@@ -1774,17 +1774,17 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1774
1774
  }), Lt = {
1775
1775
  dedupe: !0
1776
1776
  }, ki = (e, t, r) => {
1777
- const { cache: a, compare: n, suspense: o, fallbackData: i, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: d, refreshWhenHidden: h, refreshWhenOffline: u, keepPreviousData: m } = r, [g, p, b, v] = ie.get(a), [y, k] = lt(e), w = A(!1), _ = A(!1), x = A(y), T = A(t), S = A(r), N = () => S.current, D = () => N().isVisible() && N().isOnline(), [O, j, P, B] = Ia(a, y), R = A({}).current, Q = C(i) ? C(r.fallback) ? X : r.fallback[y] : i, K = (I, L) => {
1777
+ const { cache: n, compare: a, suspense: o, fallbackData: i, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: d, refreshWhenHidden: h, refreshWhenOffline: u, keepPreviousData: m } = r, [g, p, b, v] = ie.get(n), [y, k] = lt(e), w = O(!1), _ = O(!1), x = O(y), T = O(t), S = O(r), N = () => S.current, z = () => N().isVisible() && N().isOnline(), [A, j, D, B] = Ln(n, y), R = O({}).current, Q = C(i) ? C(r.fallback) ? X : r.fallback[y] : i, K = (I, L) => {
1778
1778
  for (const q in R) {
1779
1779
  const M = q;
1780
1780
  if (M === "data") {
1781
- if (!n(I[M], L[M]) && (!C(I[M]) || !n(Je, L[M])))
1781
+ if (!a(I[M], L[M]) && (!C(I[M]) || !a(Je, L[M])))
1782
1782
  return !1;
1783
1783
  } else if (L[M] !== I[M])
1784
1784
  return !1;
1785
1785
  }
1786
1786
  return !0;
1787
- }, Y = ma(() => {
1787
+ }, Y = gn(() => {
1788
1788
  const I = !y || !t ? !1 : C(s) ? N().isPaused() || o ? !1 : c !== !1 : s, L = (J) => {
1789
1789
  const ue = pe(J);
1790
1790
  return delete ue._k, I ? {
@@ -1792,28 +1792,28 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1792
1792
  isLoading: !0,
1793
1793
  ...ue
1794
1794
  } : ue;
1795
- }, q = O(), M = B(), oe = L(q), _e = q === M ? oe : L(M);
1795
+ }, q = A(), M = B(), oe = L(q), _e = q === M ? oe : L(M);
1796
1796
  let F = oe;
1797
1797
  return [
1798
1798
  () => {
1799
- const J = L(O());
1799
+ const J = L(A());
1800
1800
  return K(J, F) ? (F.data = J.data, F.isLoading = J.isLoading, F.isValidating = J.isValidating, F.error = J.error, F) : (F = J, J);
1801
1801
  },
1802
1802
  () => _e
1803
1803
  ];
1804
1804
  }, [
1805
- a,
1805
+ n,
1806
1806
  y
1807
1807
  ]), U = jo.useSyncExternalStore(re(
1808
- (I) => P(y, (L, q) => {
1808
+ (I) => D(y, (L, q) => {
1809
1809
  K(q, L) || I();
1810
1810
  }),
1811
1811
  // eslint-disable-next-line react-hooks/exhaustive-deps
1812
1812
  [
1813
- a,
1813
+ n,
1814
1814
  y
1815
1815
  ]
1816
- ), Y[0], Y[1]), H = !w.current, yt = g[y] && g[y].length > 0, xe = U.data, we = C(xe) ? Q && Ra(Q) ? It(Q) : Q : xe, Ye = U.error, kr = A(we), Je = m ? C(xe) ? kr.current : xe : we, xr = yt && !C(Ye) ? !1 : H && !C(s) ? s : N().isPaused() ? !1 : o ? C(we) ? !1 : c : C(we) || c, wr = !!(y && t && H && xr), gn = C(U.isValidating) ? wr : U.isValidating, fn = C(U.isLoading) ? wr : U.isLoading, Ae = re(
1816
+ ), Y[0], Y[1]), H = !w.current, yt = g[y] && g[y].length > 0, xe = U.data, we = C(xe) ? Q && In(Q) ? It(Q) : Q : xe, Ye = U.error, kr = O(we), Je = m ? C(xe) ? kr.current : xe : we, xr = yt && !C(Ye) ? !1 : H && !C(s) ? s : N().isPaused() ? !1 : o ? C(we) ? !1 : c : C(we) || c, wr = !!(y && t && H && xr), ga = C(U.isValidating) ? wr : U.isValidating, fa = C(U.isLoading) ? wr : U.isLoading, Oe = re(
1817
1817
  async (I) => {
1818
1818
  const L = T.current;
1819
1819
  if (!y || !L || _.current || N().isPaused())
@@ -1830,9 +1830,9 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1830
1830
  }, Sr = {
1831
1831
  isValidating: !0
1832
1832
  };
1833
- C(O().data) && (Sr.isLoading = !0);
1833
+ C(A().data) && (Sr.isLoading = !0);
1834
1834
  try {
1835
- if (F && (j(Sr), r.loadingTimeout && C(O().data) && setTimeout(() => {
1835
+ if (F && (j(Sr), r.loadingTimeout && C(A().data) && setTimeout(() => {
1836
1836
  oe && J() && N().onLoadingSlow(y, r);
1837
1837
  }, r.loadingTimeout), b[y] = [
1838
1838
  L(k),
@@ -1846,14 +1846,14 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1846
1846
  M <= te[1] || // case 3
1847
1847
  te[1] === 0))
1848
1848
  return Er(), F && J() && N().onDiscarded(y), !1;
1849
- const me = O().data;
1850
- ue.data = n(me, q) ? me : q, F && J() && N().onSuccess(q, y, r);
1849
+ const me = A().data;
1850
+ ue.data = a(me, q) ? me : q, F && J() && N().onSuccess(q, y, r);
1851
1851
  } catch (te) {
1852
1852
  Tr();
1853
1853
  const me = N(), { shouldRetryOnError: vt } = me;
1854
- me.isPaused() || (ue.error = te, F && J() && (me.onError(te, y, me), (vt === !0 || se(vt) && vt(te)) && (!N().revalidateOnFocus || !N().revalidateOnReconnect || D()) && me.onErrorRetry(te, y, me, (hn) => {
1854
+ me.isPaused() || (ue.error = te, F && J() && (me.onError(te, y, me), (vt === !0 || se(vt) && vt(te)) && (!N().revalidateOnFocus || !N().revalidateOnReconnect || z()) && me.onErrorRetry(te, y, me, (ha) => {
1855
1855
  const kt = g[y];
1856
- kt && kt[0] && kt[0]($e.ERROR_REVALIDATE_EVENT, hn);
1856
+ kt && kt[0] && kt[0]($e.ERROR_REVALIDATE_EVENT, ha);
1857
1857
  }, {
1858
1858
  retryCount: (_e.retryCount || 0) + 1,
1859
1859
  dedupe: !0
@@ -1874,11 +1874,11 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1874
1874
  // eslint-disable-next-line react-hooks/exhaustive-deps
1875
1875
  [
1876
1876
  y,
1877
- a
1877
+ n
1878
1878
  ]
1879
1879
  ), _r = re(
1880
1880
  // Use callback to make sure `keyRef.current` returns latest result every time
1881
- (...I) => $a(a, x.current, ...I),
1881
+ (...I) => Bn(n, x.current, ...I),
1882
1882
  // eslint-disable-next-line react-hooks/exhaustive-deps
1883
1883
  []
1884
1884
  );
@@ -1886,24 +1886,24 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1886
1886
  T.current = t, S.current = r, C(xe) || (kr.current = xe);
1887
1887
  }), Nt(() => {
1888
1888
  if (!y) return;
1889
- const I = Ae.bind(X, Lt);
1889
+ const I = Oe.bind(X, Lt);
1890
1890
  let L = 0;
1891
1891
  const M = vi(y, g, (oe, _e = {}) => {
1892
1892
  if (oe == $e.FOCUS_EVENT) {
1893
1893
  const F = Date.now();
1894
- N().revalidateOnFocus && F > L && D() && (L = F + N().focusThrottleInterval, I());
1894
+ N().revalidateOnFocus && F > L && z() && (L = F + N().focusThrottleInterval, I());
1895
1895
  } else if (oe == $e.RECONNECT_EVENT)
1896
- N().revalidateOnReconnect && D() && I();
1896
+ N().revalidateOnReconnect && z() && I();
1897
1897
  else {
1898
1898
  if (oe == $e.MUTATE_EVENT)
1899
- return Ae();
1899
+ return Oe();
1900
1900
  if (oe == $e.ERROR_REVALIDATE_EVENT)
1901
- return Ae(_e);
1901
+ return Oe(_e);
1902
1902
  }
1903
1903
  });
1904
1904
  return _.current = !1, x.current = y, w.current = !0, j({
1905
1905
  _k: k
1906
- }), xr && (C(we) || De ? I() : ei(I)), () => {
1906
+ }), xr && (C(we) || ze ? I() : ei(I)), () => {
1907
1907
  _.current = !0, M();
1908
1908
  };
1909
1909
  }, [
@@ -1911,11 +1911,11 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1911
1911
  ]), Nt(() => {
1912
1912
  let I;
1913
1913
  function L() {
1914
- const M = se(d) ? d(O().data) : d;
1914
+ const M = se(d) ? d(A().data) : d;
1915
1915
  M && I !== -1 && (I = setTimeout(q, M));
1916
1916
  }
1917
1917
  function q() {
1918
- !O().error && (h || N().isVisible()) && (u || N().isOnline()) ? Ae(Lt).then(L) : L();
1918
+ !A().error && (h || N().isVisible()) && (u || N().isOnline()) ? Oe(Lt).then(L) : L();
1919
1919
  }
1920
1920
  return L(), () => {
1921
1921
  I && (clearTimeout(I), I = -1);
@@ -1925,8 +1925,8 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1925
1925
  h,
1926
1926
  u,
1927
1927
  y
1928
- ]), Vn(Je), o && C(we) && y) {
1929
- if (!Fr && De)
1928
+ ]), Va(Je), o && C(we) && y) {
1929
+ if (!Fr && ze)
1930
1930
  throw new Error("Fallback data is required when using Suspense in SSR.");
1931
1931
  T.current = t, S.current = r, _.current = !1;
1932
1932
  const I = v[y];
@@ -1935,7 +1935,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1935
1935
  It(L);
1936
1936
  }
1937
1937
  if (C(Ye)) {
1938
- const L = Ae(Lt);
1938
+ const L = Oe(Lt);
1939
1939
  C(Je) || (L.status = "fulfilled", L.value = !0), It(L);
1940
1940
  } else
1941
1941
  throw Ye;
@@ -1949,10 +1949,10 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1949
1949
  return R.error = !0, Ye;
1950
1950
  },
1951
1951
  get isValidating() {
1952
- return R.isValidating = !0, gn;
1952
+ return R.isValidating = !0, ga;
1953
1953
  },
1954
1954
  get isLoading() {
1955
- return R.isLoading = !0, fn;
1955
+ return R.isLoading = !0, fa;
1956
1956
  }
1957
1957
  };
1958
1958
  }, xi = yi(ki), fe = {
@@ -2080,11 +2080,11 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
2080
2080
  schema: fe.SET_USER_PREFERENCES,
2081
2081
  method: "setUserPreferences"
2082
2082
  }
2083
- }, Va = process.env.PUBLIC_SASSY_API_SERVER_URL, wi = async ({
2083
+ }, Dn = process.env.PUBLIC_SASSY_API_SERVER_URL, wi = async ({
2084
2084
  query: e,
2085
2085
  data: t,
2086
2086
  headers: r = {}
2087
- }) => await fetch(`${Va}/graphql`, {
2087
+ }) => await fetch(`${Dn}/graphql`, {
2088
2088
  method: "POST",
2089
2089
  credentials: "include",
2090
2090
  headers: {
@@ -2096,19 +2096,19 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
2096
2096
  query: e,
2097
2097
  variables: t
2098
2098
  })
2099
- }), Pa = async ({
2099
+ }), zn = async ({
2100
2100
  accessToken: e,
2101
2101
  type: t,
2102
2102
  params: r = {}
2103
2103
  }) => {
2104
- const a = t != null && t.data ? t.data(r) : r;
2104
+ const n = t != null && t.data ? t.data(r) : r;
2105
2105
  try {
2106
- const n = `Bearer ${e}`, o = await wi({
2106
+ const a = `Bearer ${e}`, o = await wi({
2107
2107
  headers: {
2108
- authorization: n
2108
+ authorization: a
2109
2109
  },
2110
2110
  query: t.schema,
2111
- data: a
2111
+ data: n
2112
2112
  });
2113
2113
  if (o.status !== 200)
2114
2114
  return { status: o.status, data: [] };
@@ -2118,22 +2118,22 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
2118
2118
  data: i[t.method],
2119
2119
  errors: s
2120
2120
  };
2121
- } catch (n) {
2122
- return console.error(n), { status: 500, data: [] };
2121
+ } catch (a) {
2122
+ return console.error(a), { status: 500, data: [] };
2123
2123
  }
2124
2124
  }, _i = async ({
2125
2125
  accessToken: e,
2126
2126
  name: t,
2127
2127
  data: r,
2128
- method: a = "POST"
2128
+ method: n = "POST"
2129
2129
  }) => {
2130
- const n = `Bearer ${e}`;
2131
- return await fetch(`${Va}/api/${t}`, {
2132
- method: a,
2130
+ const a = `Bearer ${e}`;
2131
+ return await fetch(`${Dn}/api/${t}`, {
2132
+ method: n,
2133
2133
  credentials: "include",
2134
2134
  headers: {
2135
2135
  "Content-Type": "application/json",
2136
- authorization: n
2136
+ authorization: a
2137
2137
  },
2138
2138
  body: JSON.stringify(r)
2139
2139
  });
@@ -2141,13 +2141,13 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
2141
2141
  fetcher: e,
2142
2142
  scope: t,
2143
2143
  keys: r,
2144
- swrOptions: a,
2145
- getAccessToken: n
2144
+ swrOptions: n,
2145
+ getAccessToken: a
2146
2146
  }) => {
2147
2147
  const { data: o, error: i, isLoading: s, mutate: c } = xi(
2148
2148
  [t, ...r],
2149
- (d) => e(d, n),
2150
- { ...a }
2149
+ (d) => e(d, a),
2150
+ { ...n }
2151
2151
  );
2152
2152
  return { data: o, error: i, isLoading: s, mutate: c };
2153
2153
  }, dt = async ({
@@ -2155,13 +2155,13 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
2155
2155
  type: t,
2156
2156
  params: r
2157
2157
  }) => {
2158
- const a = await e(), n = await Pa({
2159
- accessToken: a,
2158
+ const n = await e(), a = await zn({
2159
+ accessToken: n,
2160
2160
  type: t,
2161
2161
  params: r
2162
2162
  });
2163
- if (n.status === 200 && n.errors === void 0)
2164
- return n.data;
2163
+ if (a.status === 200 && a.errors === void 0)
2164
+ return a.data;
2165
2165
  throw new Error("An error occurred while fetching the data.");
2166
2166
  }, Ei = async ([e, t], r) => dt({
2167
2167
  getAccessToken: r,
@@ -2198,13 +2198,13 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
2198
2198
  scope: "/stats",
2199
2199
  keys: e,
2200
2200
  getAccessToken: t
2201
- }), Da = async ([e, t, r, a], n) => dt({
2202
- getAccessToken: n,
2201
+ }), Pn = async ([e, t, r, n], a) => dt({
2202
+ getAccessToken: a,
2203
2203
  type: We.GET_CHATS,
2204
2204
  params: {
2205
2205
  user: t,
2206
2206
  searchString: r,
2207
- direction: a,
2207
+ direction: n,
2208
2208
  limit: 1,
2209
2209
  truncateSize: 100
2210
2210
  }
@@ -2212,7 +2212,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
2212
2212
  keys: e,
2213
2213
  getAccessToken: t
2214
2214
  }) => ct({
2215
- fetcher: Da,
2215
+ fetcher: Pn,
2216
2216
  scope: "/history",
2217
2217
  keys: e,
2218
2218
  getAccessToken: t,
@@ -2224,21 +2224,21 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
2224
2224
  keys: e,
2225
2225
  getAccessToken: t
2226
2226
  }) => {
2227
- Ma(["/history", ...e], (r) => Da(r, t));
2228
- }, za = async ([e], t) => dt({
2227
+ Vn(["/history", ...e], (r) => Pn(r, t));
2228
+ }, Un = async ([e], t) => dt({
2229
2229
  getAccessToken: t,
2230
2230
  type: We.GET_SERVER_CAPABILITIES
2231
- }), ac = ({
2231
+ }), nc = ({
2232
2232
  getAccessToken: e
2233
2233
  }) => ct({
2234
- fetcher: za,
2234
+ fetcher: Un,
2235
2235
  scope: "/capabilities",
2236
2236
  keys: [],
2237
2237
  getAccessToken: e
2238
2238
  }), Ni = ({
2239
2239
  getAccessToken: e
2240
2240
  }) => {
2241
- Ma(["/capabilities"], (t) => za(t, e));
2241
+ Vn(["/capabilities"], (t) => Un(t, e));
2242
2242
  }, Ci = "z-20", Ri = "z-10", de = V.createContext({
2243
2243
  state: {
2244
2244
  id: "",
@@ -2279,10 +2279,10 @@ try {
2279
2279
  });
2280
2280
  } catch {
2281
2281
  }
2282
- const Li = "av-tooltip", Oi = "av-tooltip-arrow", ze = Math.min, Se = Math.max, rt = Math.round, le = (e) => ({
2282
+ const Li = "av-tooltip", Ai = "av-tooltip-arrow", Pe = Math.min, Se = Math.max, rt = Math.round, le = (e) => ({
2283
2283
  x: e,
2284
2284
  y: e
2285
- }), Ai = {
2285
+ }), Oi = {
2286
2286
  left: "right",
2287
2287
  right: "left",
2288
2288
  bottom: "top",
@@ -2292,7 +2292,7 @@ const Li = "av-tooltip", Oi = "av-tooltip-arrow", ze = Math.min, Se = Math.max,
2292
2292
  end: "start"
2293
2293
  };
2294
2294
  function jt(e, t, r) {
2295
- return Se(e, ze(t, r));
2295
+ return Se(e, Pe(t, r));
2296
2296
  }
2297
2297
  function Ge(e, t) {
2298
2298
  return typeof e == "function" ? e(t) : e;
@@ -2303,7 +2303,7 @@ function ve(e) {
2303
2303
  function je(e) {
2304
2304
  return e.split("-")[1];
2305
2305
  }
2306
- function Ua(e) {
2306
+ function Hn(e) {
2307
2307
  return e === "x" ? "y" : "x";
2308
2308
  }
2309
2309
  function cr(e) {
@@ -2313,27 +2313,27 @@ function Ce(e) {
2313
2313
  return ["top", "bottom"].includes(ve(e)) ? "y" : "x";
2314
2314
  }
2315
2315
  function dr(e) {
2316
- return Ua(Ce(e));
2316
+ return Hn(Ce(e));
2317
2317
  }
2318
2318
  function Bi(e, t, r) {
2319
2319
  r === void 0 && (r = !1);
2320
- const a = je(e), n = dr(e), o = cr(n);
2321
- let i = n === "x" ? a === (r ? "end" : "start") ? "right" : "left" : a === "start" ? "bottom" : "top";
2322
- return t.reference[o] > t.floating[o] && (i = at(i)), [i, at(i)];
2320
+ const n = je(e), a = dr(e), o = cr(a);
2321
+ let i = a === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
2322
+ return t.reference[o] > t.floating[o] && (i = nt(i)), [i, nt(i)];
2323
2323
  }
2324
2324
  function Mi(e) {
2325
- const t = at(e);
2325
+ const t = nt(e);
2326
2326
  return [qt(e), t, qt(t)];
2327
2327
  }
2328
2328
  function qt(e) {
2329
2329
  return e.replace(/start|end/g, (t) => $i[t]);
2330
2330
  }
2331
2331
  function Vi(e, t, r) {
2332
- const a = ["left", "right"], n = ["right", "left"], o = ["top", "bottom"], i = ["bottom", "top"];
2332
+ const n = ["left", "right"], a = ["right", "left"], o = ["top", "bottom"], i = ["bottom", "top"];
2333
2333
  switch (e) {
2334
2334
  case "top":
2335
2335
  case "bottom":
2336
- return r ? t ? n : a : t ? a : n;
2336
+ return r ? t ? a : n : t ? n : a;
2337
2337
  case "left":
2338
2338
  case "right":
2339
2339
  return t ? o : i;
@@ -2341,15 +2341,15 @@ function Vi(e, t, r) {
2341
2341
  return [];
2342
2342
  }
2343
2343
  }
2344
- function Pi(e, t, r, a) {
2345
- const n = je(e);
2346
- let o = Vi(ve(e), r === "start", a);
2347
- return n && (o = o.map((i) => i + "-" + n), t && (o = o.concat(o.map(qt)))), o;
2344
+ function Di(e, t, r, n) {
2345
+ const a = je(e);
2346
+ let o = Vi(ve(e), r === "start", n);
2347
+ return a && (o = o.map((i) => i + "-" + a), t && (o = o.concat(o.map(qt)))), o;
2348
2348
  }
2349
- function at(e) {
2350
- return e.replace(/left|right|bottom|top/g, (t) => Ai[t]);
2349
+ function nt(e) {
2350
+ return e.replace(/left|right|bottom|top/g, (t) => Oi[t]);
2351
2351
  }
2352
- function Di(e) {
2352
+ function zi(e) {
2353
2353
  return {
2354
2354
  top: 0,
2355
2355
  right: 0,
@@ -2358,68 +2358,68 @@ function Di(e) {
2358
2358
  ...e
2359
2359
  };
2360
2360
  }
2361
- function Ha(e) {
2362
- return typeof e != "number" ? Di(e) : {
2361
+ function Fn(e) {
2362
+ return typeof e != "number" ? zi(e) : {
2363
2363
  top: e,
2364
2364
  right: e,
2365
2365
  bottom: e,
2366
2366
  left: e
2367
2367
  };
2368
2368
  }
2369
- function nt(e) {
2369
+ function at(e) {
2370
2370
  const {
2371
2371
  x: t,
2372
2372
  y: r,
2373
- width: a,
2374
- height: n
2373
+ width: n,
2374
+ height: a
2375
2375
  } = e;
2376
2376
  return {
2377
- width: a,
2378
- height: n,
2377
+ width: n,
2378
+ height: a,
2379
2379
  top: r,
2380
2380
  left: t,
2381
- right: t + a,
2382
- bottom: r + n,
2381
+ right: t + n,
2382
+ bottom: r + a,
2383
2383
  x: t,
2384
2384
  y: r
2385
2385
  };
2386
2386
  }
2387
2387
  function jr(e, t, r) {
2388
2388
  let {
2389
- reference: a,
2390
- floating: n
2389
+ reference: n,
2390
+ floating: a
2391
2391
  } = e;
2392
- const o = Ce(t), i = dr(t), s = cr(i), c = ve(t), d = o === "y", h = a.x + a.width / 2 - n.width / 2, u = a.y + a.height / 2 - n.height / 2, m = a[s] / 2 - n[s] / 2;
2392
+ const o = Ce(t), i = dr(t), s = cr(i), c = ve(t), d = o === "y", h = n.x + n.width / 2 - a.width / 2, u = n.y + n.height / 2 - a.height / 2, m = n[s] / 2 - a[s] / 2;
2393
2393
  let g;
2394
2394
  switch (c) {
2395
2395
  case "top":
2396
2396
  g = {
2397
2397
  x: h,
2398
- y: a.y - n.height
2398
+ y: n.y - a.height
2399
2399
  };
2400
2400
  break;
2401
2401
  case "bottom":
2402
2402
  g = {
2403
2403
  x: h,
2404
- y: a.y + a.height
2404
+ y: n.y + n.height
2405
2405
  };
2406
2406
  break;
2407
2407
  case "right":
2408
2408
  g = {
2409
- x: a.x + a.width,
2409
+ x: n.x + n.width,
2410
2410
  y: u
2411
2411
  };
2412
2412
  break;
2413
2413
  case "left":
2414
2414
  g = {
2415
- x: a.x - n.width,
2415
+ x: n.x - a.width,
2416
2416
  y: u
2417
2417
  };
2418
2418
  break;
2419
2419
  default:
2420
2420
  g = {
2421
- x: a.x,
2422
- y: a.y
2421
+ x: n.x,
2422
+ y: n.y
2423
2423
  };
2424
2424
  }
2425
2425
  switch (je(t)) {
@@ -2432,21 +2432,21 @@ function jr(e, t, r) {
2432
2432
  }
2433
2433
  return g;
2434
2434
  }
2435
- const zi = async (e, t, r) => {
2435
+ const Pi = async (e, t, r) => {
2436
2436
  const {
2437
- placement: a = "bottom",
2438
- strategy: n = "absolute",
2437
+ placement: n = "bottom",
2438
+ strategy: a = "absolute",
2439
2439
  middleware: o = [],
2440
2440
  platform: i
2441
2441
  } = r, s = o.filter(Boolean), c = await (i.isRTL == null ? void 0 : i.isRTL(t));
2442
2442
  let d = await i.getElementRects({
2443
2443
  reference: e,
2444
2444
  floating: t,
2445
- strategy: n
2445
+ strategy: a
2446
2446
  }), {
2447
2447
  x: h,
2448
2448
  y: u
2449
- } = jr(d, a, c), m = a, g = {}, p = 0;
2449
+ } = jr(d, n, c), m = n, g = {}, p = 0;
2450
2450
  for (let b = 0; b < s.length; b++) {
2451
2451
  const {
2452
2452
  name: v,
@@ -2459,9 +2459,9 @@ const zi = async (e, t, r) => {
2459
2459
  } = await y({
2460
2460
  x: h,
2461
2461
  y: u,
2462
- initialPlacement: a,
2462
+ initialPlacement: n,
2463
2463
  placement: m,
2464
- strategy: n,
2464
+ strategy: a,
2465
2465
  middlewareData: g,
2466
2466
  rects: d,
2467
2467
  platform: i,
@@ -2479,7 +2479,7 @@ const zi = async (e, t, r) => {
2479
2479
  }, x && p <= 50 && (p++, typeof x == "object" && (x.placement && (m = x.placement), x.rects && (d = x.rects === !0 ? await i.getElementRects({
2480
2480
  reference: e,
2481
2481
  floating: t,
2482
- strategy: n
2482
+ strategy: a
2483
2483
  }) : x.rects), {
2484
2484
  x: h,
2485
2485
  y: u
@@ -2489,16 +2489,16 @@ const zi = async (e, t, r) => {
2489
2489
  x: h,
2490
2490
  y: u,
2491
2491
  placement: m,
2492
- strategy: n,
2492
+ strategy: a,
2493
2493
  middlewareData: g
2494
2494
  };
2495
2495
  };
2496
- async function Fa(e, t) {
2496
+ async function Wn(e, t) {
2497
2497
  var r;
2498
2498
  t === void 0 && (t = {});
2499
2499
  const {
2500
- x: a,
2501
- y: n,
2500
+ x: n,
2501
+ y: a,
2502
2502
  platform: o,
2503
2503
  rects: i,
2504
2504
  elements: s,
@@ -2509,14 +2509,14 @@ async function Fa(e, t) {
2509
2509
  elementContext: u = "floating",
2510
2510
  altBoundary: m = !1,
2511
2511
  padding: g = 0
2512
- } = Ge(t, e), p = Ha(g), b = s[m ? u === "floating" ? "reference" : "floating" : u], v = nt(await o.getClippingRect({
2512
+ } = Ge(t, e), p = Fn(g), b = s[m ? u === "floating" ? "reference" : "floating" : u], v = at(await o.getClippingRect({
2513
2513
  element: (r = await (o.isElement == null ? void 0 : o.isElement(b))) == null || r ? b : b.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)),
2514
2514
  boundary: d,
2515
2515
  rootBoundary: h,
2516
2516
  strategy: c
2517
2517
  })), y = u === "floating" ? {
2518
- x: a,
2519
- y: n,
2518
+ x: n,
2519
+ y: a,
2520
2520
  width: i.floating.width,
2521
2521
  height: i.floating.height
2522
2522
  } : i.reference, k = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(s.floating)), w = await (o.isElement == null ? void 0 : o.isElement(k)) ? await (o.getScale == null ? void 0 : o.getScale(k)) || {
@@ -2525,7 +2525,7 @@ async function Fa(e, t) {
2525
2525
  } : {
2526
2526
  x: 1,
2527
2527
  y: 1
2528
- }, _ = nt(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
2528
+ }, _ = at(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
2529
2529
  elements: s,
2530
2530
  rect: y,
2531
2531
  offsetParent: k,
@@ -2544,8 +2544,8 @@ const Ui = (e) => ({
2544
2544
  async fn(t) {
2545
2545
  const {
2546
2546
  x: r,
2547
- y: a,
2548
- placement: n,
2547
+ y: n,
2548
+ placement: a,
2549
2549
  rects: o,
2550
2550
  platform: i,
2551
2551
  elements: s,
@@ -2556,13 +2556,13 @@ const Ui = (e) => ({
2556
2556
  } = Ge(e, t) || {};
2557
2557
  if (d == null)
2558
2558
  return {};
2559
- const u = Ha(h), m = {
2559
+ const u = Fn(h), m = {
2560
2560
  x: r,
2561
- y: a
2562
- }, g = dr(n), p = cr(g), b = await i.getDimensions(d), v = g === "y", y = v ? "top" : "left", k = v ? "bottom" : "right", w = v ? "clientHeight" : "clientWidth", _ = o.reference[p] + o.reference[g] - m[g] - o.floating[p], x = m[g] - o.reference[g], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
2561
+ y: n
2562
+ }, g = dr(a), p = cr(g), b = await i.getDimensions(d), v = g === "y", y = v ? "top" : "left", k = v ? "bottom" : "right", w = v ? "clientHeight" : "clientWidth", _ = o.reference[p] + o.reference[g] - m[g] - o.floating[p], x = m[g] - o.reference[g], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
2563
2563
  let S = T ? T[w] : 0;
2564
2564
  (!S || !await (i.isElement == null ? void 0 : i.isElement(T))) && (S = s.floating[w] || o.floating[p]);
2565
- const N = _ / 2 - x / 2, D = S / 2 - b[p] / 2 - 1, O = ze(u[y], D), j = ze(u[k], D), P = O, B = S - b[p] - j, R = S / 2 - b[p] / 2 + N, Q = jt(P, R, B), K = !c.arrow && je(n) != null && R !== Q && o.reference[p] / 2 - (R < P ? O : j) - b[p] / 2 < 0, Y = K ? R < P ? R - P : R - B : 0;
2565
+ const N = _ / 2 - x / 2, z = S / 2 - b[p] / 2 - 1, A = Pe(u[y], z), j = Pe(u[k], z), D = A, B = S - b[p] - j, R = S / 2 - b[p] / 2 + N, Q = jt(D, R, B), K = !c.arrow && je(a) != null && R !== Q && o.reference[p] / 2 - (R < D ? A : j) - b[p] / 2 < 0, Y = K ? R < D ? R - D : R - B : 0;
2566
2566
  return {
2567
2567
  [g]: m[g] + Y,
2568
2568
  data: {
@@ -2580,9 +2580,9 @@ const Ui = (e) => ({
2580
2580
  name: "flip",
2581
2581
  options: e,
2582
2582
  async fn(t) {
2583
- var r, a;
2583
+ var r, n;
2584
2584
  const {
2585
- placement: n,
2585
+ placement: a,
2586
2586
  middlewareData: o,
2587
2587
  rects: i,
2588
2588
  initialPlacement: s,
@@ -2599,36 +2599,36 @@ const Ui = (e) => ({
2599
2599
  } = Ge(e, t);
2600
2600
  if ((r = o.arrow) != null && r.alignmentOffset)
2601
2601
  return {};
2602
- const y = ve(n), k = Ce(s), w = ve(s) === s, _ = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), x = m || (w || !b ? [at(s)] : Mi(s)), T = p !== "none";
2603
- !m && T && x.push(...Pi(s, b, p, _));
2604
- const S = [s, ...x], N = await Fa(t, v), D = [];
2605
- let O = ((a = o.flip) == null ? void 0 : a.overflows) || [];
2606
- if (h && D.push(N[y]), u) {
2607
- const R = Bi(n, i, _);
2608
- D.push(N[R[0]], N[R[1]]);
2602
+ const y = ve(a), k = Ce(s), w = ve(s) === s, _ = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), x = m || (w || !b ? [nt(s)] : Mi(s)), T = p !== "none";
2603
+ !m && T && x.push(...Di(s, b, p, _));
2604
+ const S = [s, ...x], N = await Wn(t, v), z = [];
2605
+ let A = ((n = o.flip) == null ? void 0 : n.overflows) || [];
2606
+ if (h && z.push(N[y]), u) {
2607
+ const R = Bi(a, i, _);
2608
+ z.push(N[R[0]], N[R[1]]);
2609
2609
  }
2610
- if (O = [...O, {
2611
- placement: n,
2612
- overflows: D
2613
- }], !D.every((R) => R <= 0)) {
2614
- var j, P;
2610
+ if (A = [...A, {
2611
+ placement: a,
2612
+ overflows: z
2613
+ }], !z.every((R) => R <= 0)) {
2614
+ var j, D;
2615
2615
  const R = (((j = o.flip) == null ? void 0 : j.index) || 0) + 1, Q = S[R];
2616
2616
  if (Q)
2617
2617
  return {
2618
2618
  data: {
2619
2619
  index: R,
2620
- overflows: O
2620
+ overflows: A
2621
2621
  },
2622
2622
  reset: {
2623
2623
  placement: Q
2624
2624
  }
2625
2625
  };
2626
- let K = (P = O.filter((Y) => Y.overflows[0] <= 0).sort((Y, U) => Y.overflows[1] - U.overflows[1])[0]) == null ? void 0 : P.placement;
2626
+ let K = (D = A.filter((Y) => Y.overflows[0] <= 0).sort((Y, U) => Y.overflows[1] - U.overflows[1])[0]) == null ? void 0 : D.placement;
2627
2627
  if (!K)
2628
2628
  switch (g) {
2629
2629
  case "bestFit": {
2630
2630
  var B;
2631
- const Y = (B = O.filter((U) => {
2631
+ const Y = (B = A.filter((U) => {
2632
2632
  if (T) {
2633
2633
  const H = Ce(U.placement);
2634
2634
  return H === k || // Create a bias to the `y` side axis due to horizontal
@@ -2644,7 +2644,7 @@ const Ui = (e) => ({
2644
2644
  K = s;
2645
2645
  break;
2646
2646
  }
2647
- if (n !== K)
2647
+ if (a !== K)
2648
2648
  return {
2649
2649
  reset: {
2650
2650
  placement: K
@@ -2658,9 +2658,9 @@ const Ui = (e) => ({
2658
2658
  async function Fi(e, t) {
2659
2659
  const {
2660
2660
  placement: r,
2661
- platform: a,
2662
- elements: n
2663
- } = e, o = await (a.isRTL == null ? void 0 : a.isRTL(n.floating)), i = ve(r), s = je(r), c = Ce(r) === "y", d = ["left", "top"].includes(i) ? -1 : 1, h = o && c ? -1 : 1, u = Ge(t, e);
2661
+ platform: n,
2662
+ elements: a
2663
+ } = e, o = await (n.isRTL == null ? void 0 : n.isRTL(a.floating)), i = ve(r), s = je(r), c = Ce(r) === "y", d = ["left", "top"].includes(i) ? -1 : 1, h = o && c ? -1 : 1, u = Ge(t, e);
2664
2664
  let {
2665
2665
  mainAxis: m,
2666
2666
  crossAxis: g,
@@ -2687,15 +2687,15 @@ const Wi = function(e) {
2687
2687
  name: "offset",
2688
2688
  options: e,
2689
2689
  async fn(t) {
2690
- var r, a;
2690
+ var r, n;
2691
2691
  const {
2692
- x: n,
2692
+ x: a,
2693
2693
  y: o,
2694
2694
  placement: i,
2695
2695
  middlewareData: s
2696
2696
  } = t, c = await Fi(t, e);
2697
- return i === ((r = s.offset) == null ? void 0 : r.placement) && (a = s.arrow) != null && a.alignmentOffset ? {} : {
2698
- x: n + c.x,
2697
+ return i === ((r = s.offset) == null ? void 0 : r.placement) && (n = s.arrow) != null && n.alignmentOffset ? {} : {
2698
+ x: a + c.x,
2699
2699
  y: o + c.y,
2700
2700
  data: {
2701
2701
  ...c,
@@ -2711,8 +2711,8 @@ const Wi = function(e) {
2711
2711
  async fn(t) {
2712
2712
  const {
2713
2713
  x: r,
2714
- y: a,
2715
- placement: n
2714
+ y: n,
2715
+ placement: a
2716
2716
  } = t, {
2717
2717
  mainAxis: o = !0,
2718
2718
  crossAxis: i = !1,
@@ -2731,8 +2731,8 @@ const Wi = function(e) {
2731
2731
  ...c
2732
2732
  } = Ge(e, t), d = {
2733
2733
  x: r,
2734
- y: a
2735
- }, h = await Fa(t, c), u = Ce(ve(n)), m = Ua(u);
2734
+ y: n
2735
+ }, h = await Wn(t, c), u = Ce(ve(a)), m = Hn(u);
2736
2736
  let g = d[m], p = d[u];
2737
2737
  if (o) {
2738
2738
  const v = m === "y" ? "top" : "left", y = m === "y" ? "bottom" : "right", k = g + h[v], w = g - h[y];
@@ -2751,7 +2751,7 @@ const Wi = function(e) {
2751
2751
  ...b,
2752
2752
  data: {
2753
2753
  x: b.x - r,
2754
- y: b.y - a,
2754
+ y: b.y - n,
2755
2755
  enabled: {
2756
2756
  [m]: o,
2757
2757
  [u]: i
@@ -2764,8 +2764,8 @@ const Wi = function(e) {
2764
2764
  function mt() {
2765
2765
  return typeof window < "u";
2766
2766
  }
2767
- function Oe(e) {
2768
- return Wa(e) ? (e.nodeName || "").toLowerCase() : "#document";
2767
+ function Ae(e) {
2768
+ return Gn(e) ? (e.nodeName || "").toLowerCase() : "#document";
2769
2769
  }
2770
2770
  function ee(e) {
2771
2771
  var t;
@@ -2773,12 +2773,12 @@ function ee(e) {
2773
2773
  }
2774
2774
  function ge(e) {
2775
2775
  var t;
2776
- return (t = (Wa(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
2776
+ return (t = (Gn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
2777
2777
  }
2778
- function Wa(e) {
2778
+ function Gn(e) {
2779
2779
  return mt() ? e instanceof Node || e instanceof ee(e).Node : !1;
2780
2780
  }
2781
- function ae(e) {
2781
+ function ne(e) {
2782
2782
  return mt() ? e instanceof Element || e instanceof ee(e).Element : !1;
2783
2783
  }
2784
2784
  function ce(e) {
@@ -2791,13 +2791,13 @@ function qe(e) {
2791
2791
  const {
2792
2792
  overflow: t,
2793
2793
  overflowX: r,
2794
- overflowY: a,
2795
- display: n
2796
- } = ne(e);
2797
- return /auto|scroll|overlay|hidden|clip/.test(t + a + r) && !["inline", "contents"].includes(n);
2794
+ overflowY: n,
2795
+ display: a
2796
+ } = ae(e);
2797
+ return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && !["inline", "contents"].includes(a);
2798
2798
  }
2799
2799
  function ji(e) {
2800
- return ["table", "td", "th"].includes(Oe(e));
2800
+ return ["table", "td", "th"].includes(Ae(e));
2801
2801
  }
2802
2802
  function gt(e) {
2803
2803
  return [":popover-open", ":modal"].some((t) => {
@@ -2809,8 +2809,8 @@ function gt(e) {
2809
2809
  });
2810
2810
  }
2811
2811
  function ur(e) {
2812
- const t = mr(), r = ae(e) ? ne(e) : e;
2813
- return ["transform", "translate", "scale", "rotate", "perspective"].some((a) => r[a] ? r[a] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((a) => (r.willChange || "").includes(a)) || ["paint", "layout", "strict", "content"].some((a) => (r.contain || "").includes(a));
2812
+ const t = mr(), r = ne(e) ? ae(e) : e;
2813
+ return ["transform", "translate", "scale", "rotate", "perspective"].some((n) => r[n] ? r[n] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((n) => (r.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (r.contain || "").includes(n));
2814
2814
  }
2815
2815
  function qi(e) {
2816
2816
  let t = be(e);
@@ -2827,13 +2827,13 @@ function mr() {
2827
2827
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
2828
2828
  }
2829
2829
  function Re(e) {
2830
- return ["html", "body", "#document"].includes(Oe(e));
2830
+ return ["html", "body", "#document"].includes(Ae(e));
2831
2831
  }
2832
- function ne(e) {
2832
+ function ae(e) {
2833
2833
  return ee(e).getComputedStyle(e);
2834
2834
  }
2835
2835
  function ft(e) {
2836
- return ae(e) ? {
2836
+ return ne(e) ? {
2837
2837
  scrollLeft: e.scrollLeft,
2838
2838
  scrollTop: e.scrollTop
2839
2839
  } : {
@@ -2842,7 +2842,7 @@ function ft(e) {
2842
2842
  };
2843
2843
  }
2844
2844
  function be(e) {
2845
- if (Oe(e) === "html")
2845
+ if (Ae(e) === "html")
2846
2846
  return e;
2847
2847
  const t = (
2848
2848
  // Step into the shadow DOM of the parent of a slotted node.
@@ -2853,49 +2853,49 @@ function be(e) {
2853
2853
  );
2854
2854
  return qr(t) ? t.host : t;
2855
2855
  }
2856
- function Ga(e) {
2856
+ function jn(e) {
2857
2857
  const t = be(e);
2858
- return Re(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ce(t) && qe(t) ? t : Ga(t);
2858
+ return Re(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ce(t) && qe(t) ? t : jn(t);
2859
2859
  }
2860
- function ja(e, t, r) {
2861
- var a;
2860
+ function qn(e, t, r) {
2861
+ var n;
2862
2862
  t === void 0 && (t = []);
2863
- const n = Ga(e), o = n === ((a = e.ownerDocument) == null ? void 0 : a.body), i = ee(n);
2864
- return o ? t.concat(i, i.visualViewport || [], qe(n) ? n : [], []) : t.concat(n, ja(n, []));
2863
+ const a = jn(e), o = a === ((n = e.ownerDocument) == null ? void 0 : n.body), i = ee(a);
2864
+ return o ? t.concat(i, i.visualViewport || [], qe(a) ? a : [], []) : t.concat(a, qn(a, []));
2865
2865
  }
2866
2866
  function Kr(e) {
2867
2867
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
2868
2868
  }
2869
- function qa(e) {
2870
- const t = ne(e);
2871
- let r = parseFloat(t.width) || 0, a = parseFloat(t.height) || 0;
2872
- const n = ce(e), o = n ? e.offsetWidth : r, i = n ? e.offsetHeight : a, s = rt(r) !== o || rt(a) !== i;
2873
- return s && (r = o, a = i), {
2869
+ function Kn(e) {
2870
+ const t = ae(e);
2871
+ let r = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
2872
+ const a = ce(e), o = a ? e.offsetWidth : r, i = a ? e.offsetHeight : n, s = rt(r) !== o || rt(n) !== i;
2873
+ return s && (r = o, n = i), {
2874
2874
  width: r,
2875
- height: a,
2875
+ height: n,
2876
2876
  $: s
2877
2877
  };
2878
2878
  }
2879
- function Ka(e) {
2880
- return ae(e) ? e : e.contextElement;
2879
+ function Yn(e) {
2880
+ return ne(e) ? e : e.contextElement;
2881
2881
  }
2882
2882
  function Ne(e) {
2883
- const t = Ka(e);
2883
+ const t = Yn(e);
2884
2884
  if (!ce(t))
2885
2885
  return le(1);
2886
2886
  const r = t.getBoundingClientRect(), {
2887
- width: a,
2888
- height: n,
2887
+ width: n,
2888
+ height: a,
2889
2889
  $: o
2890
- } = qa(t);
2891
- let i = (o ? rt(r.width) : r.width) / a, s = (o ? rt(r.height) : r.height) / n;
2890
+ } = Kn(t);
2891
+ let i = (o ? rt(r.width) : r.width) / n, s = (o ? rt(r.height) : r.height) / a;
2892
2892
  return (!i || !Number.isFinite(i)) && (i = 1), (!s || !Number.isFinite(s)) && (s = 1), {
2893
2893
  x: i,
2894
2894
  y: s
2895
2895
  };
2896
2896
  }
2897
2897
  const Ki = /* @__PURE__ */ le(0);
2898
- function Ya(e) {
2898
+ function Jn(e) {
2899
2899
  const t = ee(e);
2900
2900
  return !mr() || !t.visualViewport ? Ki : {
2901
2901
  x: t.visualViewport.offsetLeft,
@@ -2905,22 +2905,22 @@ function Ya(e) {
2905
2905
  function Yi(e, t, r) {
2906
2906
  return t === void 0 && (t = !1), !r || t && r !== ee(e) ? !1 : t;
2907
2907
  }
2908
- function Ue(e, t, r, a) {
2908
+ function Ue(e, t, r, n) {
2909
2909
  t === void 0 && (t = !1), r === void 0 && (r = !1);
2910
- const n = e.getBoundingClientRect(), o = Ka(e);
2910
+ const a = e.getBoundingClientRect(), o = Yn(e);
2911
2911
  let i = le(1);
2912
- t && (a ? ae(a) && (i = Ne(a)) : i = Ne(e));
2913
- const s = Yi(o, r, a) ? Ya(o) : le(0);
2914
- let c = (n.left + s.x) / i.x, d = (n.top + s.y) / i.y, h = n.width / i.x, u = n.height / i.y;
2912
+ t && (n ? ne(n) && (i = Ne(n)) : i = Ne(e));
2913
+ const s = Yi(o, r, n) ? Jn(o) : le(0);
2914
+ let c = (a.left + s.x) / i.x, d = (a.top + s.y) / i.y, h = a.width / i.x, u = a.height / i.y;
2915
2915
  if (o) {
2916
- const m = ee(o), g = a && ae(a) ? ee(a) : a;
2916
+ const m = ee(o), g = n && ne(n) ? ee(n) : n;
2917
2917
  let p = m, b = Kr(p);
2918
- for (; b && a && g !== p; ) {
2919
- const v = Ne(b), y = b.getBoundingClientRect(), k = ne(b), w = y.left + (b.clientLeft + parseFloat(k.paddingLeft)) * v.x, _ = y.top + (b.clientTop + parseFloat(k.paddingTop)) * v.y;
2918
+ for (; b && n && g !== p; ) {
2919
+ const v = Ne(b), y = b.getBoundingClientRect(), k = ae(b), w = y.left + (b.clientLeft + parseFloat(k.paddingLeft)) * v.x, _ = y.top + (b.clientTop + parseFloat(k.paddingTop)) * v.y;
2920
2920
  c *= v.x, d *= v.y, h *= v.x, u *= v.y, c += w, d += _, p = ee(b), b = Kr(p);
2921
2921
  }
2922
2922
  }
2923
- return nt({
2923
+ return at({
2924
2924
  width: h,
2925
2925
  height: u,
2926
2926
  x: c,
@@ -2931,14 +2931,14 @@ function gr(e, t) {
2931
2931
  const r = ft(e).scrollLeft;
2932
2932
  return t ? t.left + r : Ue(ge(e)).left + r;
2933
2933
  }
2934
- function Ja(e, t, r) {
2934
+ function Xn(e, t, r) {
2935
2935
  r === void 0 && (r = !1);
2936
- const a = e.getBoundingClientRect(), n = a.left + t.scrollLeft - (r ? 0 : (
2936
+ const n = e.getBoundingClientRect(), a = n.left + t.scrollLeft - (r ? 0 : (
2937
2937
  // RTL <body> scrollbar.
2938
- gr(e, a)
2939
- )), o = a.top + t.scrollTop;
2938
+ gr(e, n)
2939
+ )), o = n.top + t.scrollTop;
2940
2940
  return {
2941
- x: n,
2941
+ x: a,
2942
2942
  y: o
2943
2943
  };
2944
2944
  }
@@ -2946,22 +2946,22 @@ function Ji(e) {
2946
2946
  let {
2947
2947
  elements: t,
2948
2948
  rect: r,
2949
- offsetParent: a,
2950
- strategy: n
2949
+ offsetParent: n,
2950
+ strategy: a
2951
2951
  } = e;
2952
- const o = n === "fixed", i = ge(a), s = t ? gt(t.floating) : !1;
2953
- if (a === i || s && o)
2952
+ const o = a === "fixed", i = ge(n), s = t ? gt(t.floating) : !1;
2953
+ if (n === i || s && o)
2954
2954
  return r;
2955
2955
  let c = {
2956
2956
  scrollLeft: 0,
2957
2957
  scrollTop: 0
2958
2958
  }, d = le(1);
2959
- const h = le(0), u = ce(a);
2960
- if ((u || !u && !o) && ((Oe(a) !== "body" || qe(i)) && (c = ft(a)), ce(a))) {
2961
- const g = Ue(a);
2962
- d = Ne(a), h.x = g.x + a.clientLeft, h.y = g.y + a.clientTop;
2959
+ const h = le(0), u = ce(n);
2960
+ if ((u || !u && !o) && ((Ae(n) !== "body" || qe(i)) && (c = ft(n)), ce(n))) {
2961
+ const g = Ue(n);
2962
+ d = Ne(n), h.x = g.x + n.clientLeft, h.y = g.y + n.clientTop;
2963
2963
  }
2964
- const m = i && !u && !o ? Ja(i, c, !0) : le(0);
2964
+ const m = i && !u && !o ? Xn(i, c, !0) : le(0);
2965
2965
  return {
2966
2966
  width: r.width * d.x,
2967
2967
  height: r.height * d.y,
@@ -2973,23 +2973,23 @@ function Xi(e) {
2973
2973
  return Array.from(e.getClientRects());
2974
2974
  }
2975
2975
  function Zi(e) {
2976
- const t = ge(e), r = ft(e), a = e.ownerDocument.body, n = Se(t.scrollWidth, t.clientWidth, a.scrollWidth, a.clientWidth), o = Se(t.scrollHeight, t.clientHeight, a.scrollHeight, a.clientHeight);
2976
+ const t = ge(e), r = ft(e), n = e.ownerDocument.body, a = Se(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), o = Se(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
2977
2977
  let i = -r.scrollLeft + gr(e);
2978
2978
  const s = -r.scrollTop;
2979
- return ne(a).direction === "rtl" && (i += Se(t.clientWidth, a.clientWidth) - n), {
2980
- width: n,
2979
+ return ae(n).direction === "rtl" && (i += Se(t.clientWidth, n.clientWidth) - a), {
2980
+ width: a,
2981
2981
  height: o,
2982
2982
  x: i,
2983
2983
  y: s
2984
2984
  };
2985
2985
  }
2986
2986
  function Qi(e, t) {
2987
- const r = ee(e), a = ge(e), n = r.visualViewport;
2988
- let o = a.clientWidth, i = a.clientHeight, s = 0, c = 0;
2989
- if (n) {
2990
- o = n.width, i = n.height;
2987
+ const r = ee(e), n = ge(e), a = r.visualViewport;
2988
+ let o = n.clientWidth, i = n.clientHeight, s = 0, c = 0;
2989
+ if (a) {
2990
+ o = a.width, i = a.height;
2991
2991
  const d = mr();
2992
- (!d || d && t === "fixed") && (s = n.offsetLeft, c = n.offsetTop);
2992
+ (!d || d && t === "fixed") && (s = a.offsetLeft, c = a.offsetTop);
2993
2993
  }
2994
2994
  return {
2995
2995
  width: o,
@@ -2999,7 +2999,7 @@ function Qi(e, t) {
2999
2999
  };
3000
3000
  }
3001
3001
  function es(e, t) {
3002
- const r = Ue(e, !0, t === "fixed"), a = r.top + e.clientTop, n = r.left + e.clientLeft, o = ce(e) ? Ne(e) : le(1), i = e.clientWidth * o.x, s = e.clientHeight * o.y, c = n * o.x, d = a * o.y;
3002
+ const r = Ue(e, !0, t === "fixed"), n = r.top + e.clientTop, a = r.left + e.clientLeft, o = ce(e) ? Ne(e) : le(1), i = e.clientWidth * o.x, s = e.clientHeight * o.y, c = a * o.x, d = n * o.y;
3003
3003
  return {
3004
3004
  width: i,
3005
3005
  height: s,
@@ -3008,52 +3008,52 @@ function es(e, t) {
3008
3008
  };
3009
3009
  }
3010
3010
  function Yr(e, t, r) {
3011
- let a;
3011
+ let n;
3012
3012
  if (t === "viewport")
3013
- a = Qi(e, r);
3013
+ n = Qi(e, r);
3014
3014
  else if (t === "document")
3015
- a = Zi(ge(e));
3016
- else if (ae(t))
3017
- a = es(t, r);
3015
+ n = Zi(ge(e));
3016
+ else if (ne(t))
3017
+ n = es(t, r);
3018
3018
  else {
3019
- const n = Ya(e);
3020
- a = {
3021
- x: t.x - n.x,
3022
- y: t.y - n.y,
3019
+ const a = Jn(e);
3020
+ n = {
3021
+ x: t.x - a.x,
3022
+ y: t.y - a.y,
3023
3023
  width: t.width,
3024
3024
  height: t.height
3025
3025
  };
3026
3026
  }
3027
- return nt(a);
3027
+ return at(n);
3028
3028
  }
3029
- function Xa(e, t) {
3029
+ function Zn(e, t) {
3030
3030
  const r = be(e);
3031
- return r === t || !ae(r) || Re(r) ? !1 : ne(r).position === "fixed" || Xa(r, t);
3031
+ return r === t || !ne(r) || Re(r) ? !1 : ae(r).position === "fixed" || Zn(r, t);
3032
3032
  }
3033
3033
  function ts(e, t) {
3034
3034
  const r = t.get(e);
3035
3035
  if (r)
3036
3036
  return r;
3037
- let a = ja(e, []).filter((s) => ae(s) && Oe(s) !== "body"), n = null;
3038
- const o = ne(e).position === "fixed";
3037
+ let n = qn(e, []).filter((s) => ne(s) && Ae(s) !== "body"), a = null;
3038
+ const o = ae(e).position === "fixed";
3039
3039
  let i = o ? be(e) : e;
3040
- for (; ae(i) && !Re(i); ) {
3041
- const s = ne(i), c = ur(i);
3042
- !c && s.position === "fixed" && (n = null), (o ? !c && !n : !c && s.position === "static" && n && ["absolute", "fixed"].includes(n.position) || qe(i) && !c && Xa(e, i)) ? a = a.filter((d) => d !== i) : n = s, i = be(i);
3040
+ for (; ne(i) && !Re(i); ) {
3041
+ const s = ae(i), c = ur(i);
3042
+ !c && s.position === "fixed" && (a = null), (o ? !c && !a : !c && s.position === "static" && a && ["absolute", "fixed"].includes(a.position) || qe(i) && !c && Zn(e, i)) ? n = n.filter((d) => d !== i) : a = s, i = be(i);
3043
3043
  }
3044
- return t.set(e, a), a;
3044
+ return t.set(e, n), n;
3045
3045
  }
3046
3046
  function rs(e) {
3047
3047
  let {
3048
3048
  element: t,
3049
3049
  boundary: r,
3050
- rootBoundary: a,
3051
- strategy: n
3050
+ rootBoundary: n,
3051
+ strategy: a
3052
3052
  } = e;
3053
- const o = [...r === "clippingAncestors" ? gt(t) ? [] : ts(t, this._c) : [].concat(r), a], i = o[0], s = o.reduce((c, d) => {
3054
- const h = Yr(t, d, n);
3055
- return c.top = Se(h.top, c.top), c.right = ze(h.right, c.right), c.bottom = ze(h.bottom, c.bottom), c.left = Se(h.left, c.left), c;
3056
- }, Yr(t, i, n));
3053
+ const o = [...r === "clippingAncestors" ? gt(t) ? [] : ts(t, this._c) : [].concat(r), n], i = o[0], s = o.reduce((c, d) => {
3054
+ const h = Yr(t, d, a);
3055
+ return c.top = Se(h.top, c.top), c.right = Pe(h.right, c.right), c.bottom = Pe(h.bottom, c.bottom), c.left = Se(h.left, c.left), c;
3056
+ }, Yr(t, i, a));
3057
3057
  return {
3058
3058
  width: s.right - s.left,
3059
3059
  height: s.bottom - s.top,
@@ -3061,29 +3061,29 @@ function rs(e) {
3061
3061
  y: s.top
3062
3062
  };
3063
3063
  }
3064
- function as(e) {
3064
+ function ns(e) {
3065
3065
  const {
3066
3066
  width: t,
3067
3067
  height: r
3068
- } = qa(e);
3068
+ } = Kn(e);
3069
3069
  return {
3070
3070
  width: t,
3071
3071
  height: r
3072
3072
  };
3073
3073
  }
3074
- function ns(e, t, r) {
3075
- const a = ce(t), n = ge(t), o = r === "fixed", i = Ue(e, !0, o, t);
3074
+ function as(e, t, r) {
3075
+ const n = ce(t), a = ge(t), o = r === "fixed", i = Ue(e, !0, o, t);
3076
3076
  let s = {
3077
3077
  scrollLeft: 0,
3078
3078
  scrollTop: 0
3079
3079
  };
3080
3080
  const c = le(0);
3081
- if (a || !a && !o)
3082
- if ((Oe(t) !== "body" || qe(n)) && (s = ft(t)), a) {
3081
+ if (n || !n && !o)
3082
+ if ((Ae(t) !== "body" || qe(a)) && (s = ft(t)), n) {
3083
3083
  const m = Ue(t, !0, o, t);
3084
3084
  c.x = m.x + t.clientLeft, c.y = m.y + t.clientTop;
3085
- } else n && (c.x = gr(n));
3086
- const d = n && !a && !o ? Ja(n, s) : le(0), h = i.left + s.scrollLeft - c.x - d.x, u = i.top + s.scrollTop - c.y - d.y;
3085
+ } else a && (c.x = gr(a));
3086
+ const d = a && !n && !o ? Xn(a, s) : le(0), h = i.left + s.scrollLeft - c.x - d.x, u = i.top + s.scrollTop - c.y - d.y;
3087
3087
  return {
3088
3088
  x: h,
3089
3089
  y: u,
@@ -3091,100 +3091,100 @@ function ns(e, t, r) {
3091
3091
  height: i.height
3092
3092
  };
3093
3093
  }
3094
- function Ot(e) {
3095
- return ne(e).position === "static";
3094
+ function At(e) {
3095
+ return ae(e).position === "static";
3096
3096
  }
3097
3097
  function Jr(e, t) {
3098
- if (!ce(e) || ne(e).position === "fixed")
3098
+ if (!ce(e) || ae(e).position === "fixed")
3099
3099
  return null;
3100
3100
  if (t)
3101
3101
  return t(e);
3102
3102
  let r = e.offsetParent;
3103
3103
  return ge(e) === r && (r = r.ownerDocument.body), r;
3104
3104
  }
3105
- function Za(e, t) {
3105
+ function Qn(e, t) {
3106
3106
  const r = ee(e);
3107
3107
  if (gt(e))
3108
3108
  return r;
3109
3109
  if (!ce(e)) {
3110
- let n = be(e);
3111
- for (; n && !Re(n); ) {
3112
- if (ae(n) && !Ot(n))
3113
- return n;
3114
- n = be(n);
3110
+ let a = be(e);
3111
+ for (; a && !Re(a); ) {
3112
+ if (ne(a) && !At(a))
3113
+ return a;
3114
+ a = be(a);
3115
3115
  }
3116
3116
  return r;
3117
3117
  }
3118
- let a = Jr(e, t);
3119
- for (; a && ji(a) && Ot(a); )
3120
- a = Jr(a, t);
3121
- return a && Re(a) && Ot(a) && !ur(a) ? r : a || qi(e) || r;
3118
+ let n = Jr(e, t);
3119
+ for (; n && ji(n) && At(n); )
3120
+ n = Jr(n, t);
3121
+ return n && Re(n) && At(n) && !ur(n) ? r : n || qi(e) || r;
3122
3122
  }
3123
3123
  const os = async function(e) {
3124
- const t = this.getOffsetParent || Za, r = this.getDimensions, a = await r(e.floating);
3124
+ const t = this.getOffsetParent || Qn, r = this.getDimensions, n = await r(e.floating);
3125
3125
  return {
3126
- reference: ns(e.reference, await t(e.floating), e.strategy),
3126
+ reference: as(e.reference, await t(e.floating), e.strategy),
3127
3127
  floating: {
3128
3128
  x: 0,
3129
3129
  y: 0,
3130
- width: a.width,
3131
- height: a.height
3130
+ width: n.width,
3131
+ height: n.height
3132
3132
  }
3133
3133
  };
3134
3134
  };
3135
3135
  function is(e) {
3136
- return ne(e).direction === "rtl";
3136
+ return ae(e).direction === "rtl";
3137
3137
  }
3138
3138
  const ss = {
3139
3139
  convertOffsetParentRelativeRectToViewportRelativeRect: Ji,
3140
3140
  getDocumentElement: ge,
3141
3141
  getClippingRect: rs,
3142
- getOffsetParent: Za,
3142
+ getOffsetParent: Qn,
3143
3143
  getElementRects: os,
3144
3144
  getClientRects: Xi,
3145
- getDimensions: as,
3145
+ getDimensions: ns,
3146
3146
  getScale: Ne,
3147
- isElement: ae,
3147
+ isElement: ne,
3148
3148
  isRTL: is
3149
3149
  }, ls = Wi, cs = Gi, ds = Hi, us = Ui, ms = (e, t, r) => {
3150
- const a = /* @__PURE__ */ new Map(), n = {
3150
+ const n = /* @__PURE__ */ new Map(), a = {
3151
3151
  platform: ss,
3152
3152
  ...r
3153
3153
  }, o = {
3154
- ...n.platform,
3155
- _c: a
3154
+ ...a.platform,
3155
+ _c: n
3156
3156
  };
3157
- return zi(e, t, {
3158
- ...n,
3157
+ return Pi(e, t, {
3158
+ ...a,
3159
3159
  platform: o
3160
3160
  });
3161
3161
  }, Xr = ["mousedown", "touchstart"];
3162
3162
  function gs(e, t, r) {
3163
- const a = A(null);
3163
+ const n = O(null);
3164
3164
  return $(() => {
3165
- const n = (o) => {
3165
+ const a = (o) => {
3166
3166
  const i = o ? o.target : void 0;
3167
3167
  if (Array.isArray(r)) {
3168
3168
  const s = !document.body.contains(i) && i.tagName !== "HTML";
3169
3169
  r.every(
3170
3170
  (c) => !!c && !o.composedPath().includes(c)
3171
3171
  ) && !s && e();
3172
- } else a.current && !a.current.contains(i) && e();
3172
+ } else n.current && !n.current.contains(i) && e();
3173
3173
  };
3174
3174
  return Xr.forEach(
3175
- (o) => document.addEventListener(o, n)
3175
+ (o) => document.addEventListener(o, a)
3176
3176
  ), () => {
3177
3177
  Xr.forEach(
3178
- (o) => document.removeEventListener(o, n)
3178
+ (o) => document.removeEventListener(o, a)
3179
3179
  );
3180
3180
  };
3181
- }, [e, r, t]), a;
3181
+ }, [e, r, t]), n;
3182
3182
  }
3183
3183
  function fs(e, t) {
3184
- const [r, a] = Z(!1), n = A(null), o = A(null), i = re(() => {
3185
- a((c) => (!c && (!n.current || n.current === -1) && (n.current = window.setInterval(o.current, t)), !0));
3184
+ const [r, n] = Z(!1), a = O(null), o = O(null), i = re(() => {
3185
+ n((c) => (!c && (!a.current || a.current === -1) && (a.current = window.setInterval(o.current, t)), !0));
3186
3186
  }, [t]), s = re(() => {
3187
- a(!1), window.clearInterval(n.current || -1), n.current = -1;
3187
+ n(!1), window.clearInterval(a.current || -1), a.current = -1;
3188
3188
  }, []);
3189
3189
  return $(() => (o.current = e, r && i(), s), [e, r, i, s]), { start: i, stop: s, active: r };
3190
3190
  }
@@ -3206,49 +3206,49 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, hs = (
3206
3206
  mode: e,
3207
3207
  className: t,
3208
3208
  tooltipClassName: r,
3209
- arrowClassName: a
3209
+ arrowClassName: n
3210
3210
  }) => {
3211
- const n = f("relative inline-block", t), o = f(
3211
+ const a = f("relative inline-block", t), o = f(
3212
3212
  Li,
3213
3213
  hs(),
3214
3214
  Zr({ mode: e }),
3215
3215
  ps({ mode: e }),
3216
3216
  r
3217
3217
  ), i = f(
3218
- Oi,
3218
+ Ai,
3219
3219
  bs(),
3220
3220
  Zr({ mode: e }),
3221
- a
3221
+ n
3222
3222
  );
3223
- return { tooltip: o, arrow: i, wrapper: n };
3223
+ return { tooltip: o, arrow: i, wrapper: a };
3224
3224
  }, vs = ({ delay: e = 300 }) => ({
3225
3225
  animation: `av-tooltip-fade-in ${e}ms ease-in-out`
3226
3226
  }), ks = 5e3, Ke = ({
3227
3227
  trigger: e,
3228
3228
  label: t,
3229
3229
  placement: r = "top",
3230
- mode: a = "system",
3231
- delay: n = 300,
3230
+ mode: n = "system",
3231
+ delay: a = 300,
3232
3232
  className: o,
3233
3233
  tooltipClassName: i,
3234
3234
  arrowClassName: s
3235
3235
  }) => {
3236
3236
  const c = gs(() => {
3237
3237
  b.stop(), p(!1);
3238
- }), d = A(null), h = A(null), [u, m] = Z(!1), [g, p] = Z(!1), b = fs(() => {
3238
+ }), d = O(null), h = O(null), [u, m] = Z(!1), [g, p] = Z(!1), b = fs(() => {
3239
3239
  p(!1);
3240
3240
  }, ks), v = ys({
3241
- mode: a,
3241
+ mode: n,
3242
3242
  className: o,
3243
3243
  tooltipClassName: i,
3244
3244
  arrowClassName: s
3245
- }), y = vs({ delay: n }), k = re(async () => {
3246
- var T, S, N, D;
3245
+ }), y = vs({ delay: a }), k = re(async () => {
3246
+ var T, S, N, z;
3247
3247
  if (c.current && d.current && h.current) {
3248
3248
  const {
3249
- x: O,
3249
+ x: A,
3250
3250
  y: j,
3251
- middlewareData: P,
3251
+ middlewareData: D,
3252
3252
  placement: B
3253
3253
  } = await ms(c.current, d.current, {
3254
3254
  placement: r,
@@ -3263,7 +3263,7 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, hs = (
3263
3263
  ]
3264
3264
  });
3265
3265
  (T = d == null ? void 0 : d.current) != null && T.style && Object.assign(d.current.style, {
3266
- left: et(O),
3266
+ left: et(A),
3267
3267
  top: et(j),
3268
3268
  ...y
3269
3269
  });
@@ -3274,8 +3274,8 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, hs = (
3274
3274
  left: "right"
3275
3275
  }[B.split("-")[0]];
3276
3276
  (S = h == null ? void 0 : h.current) != null && S.style && Object.assign(h.current.style, {
3277
- left: et((N = P.arrow) == null ? void 0 : N.x),
3278
- top: et((D = P.arrow) == null ? void 0 : D.y),
3277
+ left: et((N = D.arrow) == null ? void 0 : N.x),
3278
+ top: et((z = D.arrow) == null ? void 0 : z.y),
3279
3279
  right: "",
3280
3280
  bottom: "",
3281
3281
  [R]: "-4px"
@@ -3320,14 +3320,14 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, hs = (
3320
3320
  }, xs = ({
3321
3321
  className: e
3322
3322
  }) => {
3323
- const { state: t, dispatch: r } = z(de), a = A(null), n = A(!1), o = (i) => {
3323
+ const { state: t, dispatch: r } = P(de), n = O(null), a = O(!1), o = (i) => {
3324
3324
  i.preventDefault(), r({
3325
3325
  type: Ie
3326
3326
  });
3327
3327
  };
3328
3328
  return $(() => {
3329
3329
  var i;
3330
- (t == null ? void 0 : t.streaming) === !0 && !n.current && a.current && (n.current = !0, a.current.focus()), (t == null ? void 0 : t.streaming) === !1 && (n.current = !1, (i = a.current) == null || i.blur());
3330
+ (t == null ? void 0 : t.streaming) === !0 && !a.current && n.current && (a.current = !0, n.current.focus()), (t == null ? void 0 : t.streaming) === !1 && (a.current = !1, (i = n.current) == null || i.blur());
3331
3331
  }, [t]), /* @__PURE__ */ l(
3332
3332
  Ke,
3333
3333
  {
@@ -3342,37 +3342,37 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, hs = (
3342
3342
  mode: "dark",
3343
3343
  focusMode: "light",
3344
3344
  label: "New Chat",
3345
- ref: a,
3345
+ ref: n,
3346
3346
  onClick: o,
3347
- children: t != null && t.streaming ? /* @__PURE__ */ l(Jn, { size: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Xn, { size: "size-4" })
3347
+ children: t != null && t.streaming ? /* @__PURE__ */ l(Ja, { size: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Xa, { size: "size-4" })
3348
3348
  }
3349
3349
  )
3350
3350
  }
3351
3351
  );
3352
3352
  };
3353
3353
  /*!
3354
- @versini/ui-panel v1.3.15
3354
+ @versini/ui-panel v1.3.16
3355
3355
  © 2025 gizmette.com
3356
3356
  */
3357
3357
  try {
3358
3358
  window.__VERSINI_UI_PANEL__ || (window.__VERSINI_UI_PANEL__ = {
3359
- version: "1.3.15",
3360
- buildTime: "01/20/2025 03:51 PM EST",
3359
+ version: "1.3.16",
3360
+ buildTime: "01/24/2025 09:19 AM EST",
3361
3361
  homepage: "https://github.com/aversini/ui-components",
3362
3362
  license: "MIT"
3363
3363
  });
3364
3364
  } catch {
3365
3365
  }
3366
- const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Qa = "button", Kt = "link", ws = ({
3366
+ const Qr = "av-messagebox", en = "av-panel", tn = "av-button", ht = "icon", ea = "button", Kt = "link", ws = ({
3367
3367
  type: e,
3368
3368
  size: t,
3369
3369
  labelRight: r,
3370
- labelLeft: a,
3371
- align: n
3370
+ labelLeft: n,
3371
+ align: a
3372
3372
  }) => {
3373
3373
  const o = "max-h-8 py-0 px-2", i = "max-h-9 h-8 px-3", s = "max-h-12 py-2 px-4";
3374
3374
  switch (e) {
3375
- case Qa:
3375
+ case ea:
3376
3376
  case Kt:
3377
3377
  return f({
3378
3378
  [o]: t === "small",
@@ -3381,49 +3381,49 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Qa =
3381
3381
  });
3382
3382
  case ht:
3383
3383
  return f("inline-flex items-center", {
3384
- "justify-center": n === "center",
3385
- "justify-start": n === "left",
3386
- "justify-end": n === "right",
3387
- "h-6 w-6 p-0": t === "small" && !(r || a),
3388
- "h-6 px-2": t === "small" && (r || a),
3389
- "h-8 w-8 p-1": t === "medium" && !(r || a),
3390
- "h-8 px-3": t === "medium" && (r || a),
3391
- "h-12 w-12 p-2": t === "large" && !(r || a),
3392
- "h-12 px-4": t === "large" && (r || a)
3384
+ "justify-center": a === "center",
3385
+ "justify-start": a === "left",
3386
+ "justify-end": a === "right",
3387
+ "h-6 w-6 p-0": t === "small" && !(r || n),
3388
+ "h-6 px-2": t === "small" && (r || n),
3389
+ "h-8 w-8 p-1": t === "medium" && !(r || n),
3390
+ "h-8 px-3": t === "medium" && (r || n),
3391
+ "h-12 w-12 p-2": t === "large" && !(r || n),
3392
+ "h-12 px-4": t === "large" && (r || n)
3393
3393
  });
3394
3394
  }
3395
3395
  }, _s = ({
3396
3396
  type: e,
3397
3397
  size: t,
3398
3398
  labelRight: r,
3399
- labelLeft: a
3399
+ labelLeft: n
3400
3400
  }) => {
3401
- const n = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
3401
+ const a = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
3402
3402
  switch (e) {
3403
- case Qa:
3403
+ case ea:
3404
3404
  case Kt:
3405
3405
  return f({
3406
3406
  "text-center": e === Kt,
3407
- [n]: t === "small",
3407
+ [a]: t === "small",
3408
3408
  [o]: t === "medium",
3409
3409
  [i]: t === "large"
3410
3410
  });
3411
3411
  case ht:
3412
3412
  return f({
3413
- [n]: t === "small" && (r || a),
3414
- [o]: t === "medium" && (r || a),
3415
- [i]: t === "large" && (r || a)
3413
+ [a]: t === "small" && (r || n),
3414
+ [o]: t === "medium" && (r || n),
3415
+ [i]: t === "large" && (r || n)
3416
3416
  });
3417
3417
  }
3418
3418
  }, Es = ({
3419
3419
  mode: e,
3420
3420
  noBackground: t,
3421
3421
  noTruncate: r,
3422
- variant: a
3422
+ variant: n
3423
3423
  }) => {
3424
3424
  if (t)
3425
3425
  return "not-prose";
3426
- if (a === "primary")
3426
+ if (n === "primary")
3427
3427
  return f("not-prose", {
3428
3428
  truncate: !r,
3429
3429
  "text-copy-light": e === "dark" || e === "system",
@@ -3431,7 +3431,7 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Qa =
3431
3431
  "dark:text-copy-lighter": e === "system",
3432
3432
  "dark:text-copy-light": e === "alt-system"
3433
3433
  });
3434
- if (a === "secondary")
3434
+ if (n === "secondary")
3435
3435
  return f("not-prose", {
3436
3436
  truncate: !r,
3437
3437
  "text-copy-light": e === "light" || e === "system",
@@ -3439,7 +3439,7 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Qa =
3439
3439
  "dark:text-copy-lighter": e === "alt-system",
3440
3440
  "dark:text-copy-light": e === "system"
3441
3441
  });
3442
- if (a === "danger")
3442
+ if (n === "danger")
3443
3443
  return f("not-prose", {
3444
3444
  truncate: !r,
3445
3445
  "text-copy-light": e === "dark" || e === "system",
@@ -3447,7 +3447,7 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Qa =
3447
3447
  "dark:text-copy-lighter": e === "system",
3448
3448
  "dark:text-copy-light": e === "alt-system"
3449
3449
  });
3450
- if (a === "selected")
3450
+ if (n === "selected")
3451
3451
  return f("not-prose text-copy-lighter", {
3452
3452
  truncate: !r
3453
3453
  });
@@ -3596,12 +3596,12 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Qa =
3596
3596
  "dark:text-copy-accent-dark": e === "system"
3597
3597
  },
3598
3598
  r
3599
- ), en = ({
3599
+ ), ta = ({
3600
3600
  type: e,
3601
3601
  className: t,
3602
3602
  raw: r,
3603
- mode: a,
3604
- focusMode: n,
3603
+ mode: n,
3604
+ focusMode: a,
3605
3605
  disabled: o,
3606
3606
  fullWidth: i,
3607
3607
  size: s,
@@ -3613,15 +3613,15 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Qa =
3613
3613
  noTruncate: g,
3614
3614
  align: p,
3615
3615
  radius: b
3616
- }) => (m || (m = "primary"), r ? f(ta, t) : f(
3617
- ta,
3616
+ }) => (m || (m = "primary"), r ? f(tn, t) : f(
3617
+ tn,
3618
3618
  Es({
3619
- mode: a,
3619
+ mode: n,
3620
3620
  variant: m,
3621
3621
  noBackground: u,
3622
3622
  noTruncate: g
3623
3623
  }),
3624
- Ts({ mode: a, noBackground: u, variant: m }),
3624
+ Ts({ mode: n, noBackground: u, variant: m }),
3625
3625
  Ss({ radius: b }),
3626
3626
  ws({
3627
3627
  type: e,
@@ -3631,39 +3631,39 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Qa =
3631
3631
  align: p
3632
3632
  }),
3633
3633
  _s({ type: e, size: s, labelRight: d, labelLeft: h }),
3634
- Rs({ mode: a, variant: m, noBorder: c }),
3635
- Is({ focusMode: n }),
3636
- Ns({ mode: a, variant: m, disabled: o }),
3637
- Cs({ mode: a, variant: m, disabled: o }),
3634
+ Rs({ mode: n, variant: m, noBorder: c }),
3635
+ Is({ focusMode: a }),
3636
+ Ns({ mode: n, variant: m, disabled: o }),
3637
+ Cs({ mode: n, variant: m, disabled: o }),
3638
3638
  {
3639
3639
  "w-full": i,
3640
3640
  "disabled:cursor-not-allowed disabled:opacity-50": o
3641
3641
  },
3642
3642
  t
3643
- )), Os = (e, t, r) => {
3644
- var a;
3645
- !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
3643
+ )), As = (e, t, r) => {
3644
+ var n;
3645
+ !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e == null ? void 0 : e.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
3646
3646
  }, fr = V.forwardRef((e, t) => {
3647
- const { onClick: r, noInternalClick: a = !1, ...n } = e;
3647
+ const { onClick: r, noInternalClick: n = !1, ...a } = e;
3648
3648
  return /* @__PURE__ */ l(
3649
3649
  "button",
3650
3650
  {
3651
3651
  ref: t,
3652
3652
  onClick: (o) => {
3653
- Os(o, a, r);
3653
+ As(o, n, r);
3654
3654
  },
3655
- ...n
3655
+ ...a
3656
3656
  }
3657
3657
  );
3658
3658
  });
3659
3659
  fr.displayName = "BaseButton";
3660
- const tn = V.forwardRef(
3660
+ const ra = V.forwardRef(
3661
3661
  ({
3662
3662
  children: e,
3663
3663
  disabled: t = !1,
3664
3664
  mode: r = "system",
3665
- focusMode: a = "system",
3666
- fullWidth: n = !1,
3665
+ focusMode: n = "system",
3666
+ fullWidth: a = !1,
3667
3667
  className: o,
3668
3668
  type: i = "button",
3669
3669
  raw: s = !1,
@@ -3680,11 +3680,11 @@ const tn = V.forwardRef(
3680
3680
  iconClassName: k,
3681
3681
  ...w
3682
3682
  }, _) => {
3683
- const x = en({
3683
+ const x = ta({
3684
3684
  type: ht,
3685
3685
  mode: r,
3686
- focusMode: a,
3687
- fullWidth: n,
3686
+ focusMode: n,
3687
+ fullWidth: a,
3688
3688
  disabled: t,
3689
3689
  raw: s,
3690
3690
  className: o,
@@ -3708,34 +3708,34 @@ const tn = V.forwardRef(
3708
3708
  ...w,
3709
3709
  children: [
3710
3710
  g && /* @__PURE__ */ l("span", { className: "pr-2", children: g }),
3711
- /* @__PURE__ */ l("div", { className: T, children: e }),
3711
+ /* @__PURE__ */ l("span", { className: T, children: e }),
3712
3712
  m && /* @__PURE__ */ l("span", { className: "pl-2", children: m })
3713
3713
  ]
3714
3714
  }
3715
3715
  );
3716
3716
  }
3717
3717
  );
3718
- tn.displayName = "ButtonIcon";
3718
+ ra.displayName = "ButtonIcon";
3719
3719
  /*!
3720
- @versini/ui-button v4.1.4
3720
+ @versini/ui-button v4.1.5
3721
3721
  © 2025 gizmette.com
3722
3722
  */
3723
3723
  try {
3724
3724
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
3725
- version: "4.1.4",
3726
- buildTime: "01/20/2025 03:51 PM EST",
3725
+ version: "4.1.5",
3726
+ buildTime: "01/24/2025 09:19 AM EST",
3727
3727
  homepage: "https://github.com/aversini/ui-components",
3728
3728
  license: "MIT"
3729
3729
  });
3730
3730
  } catch {
3731
3731
  }
3732
- const As = V.forwardRef(
3732
+ const Os = V.forwardRef(
3733
3733
  ({
3734
3734
  children: e,
3735
3735
  disabled: t = !1,
3736
3736
  mode: r = "system",
3737
- focusMode: a = "system",
3738
- fullWidth: n = !1,
3737
+ focusMode: n = "system",
3738
+ fullWidth: a = !1,
3739
3739
  className: o,
3740
3740
  type: i = "button",
3741
3741
  raw: s = !1,
@@ -3751,11 +3751,11 @@ const As = V.forwardRef(
3751
3751
  radius: y = "large",
3752
3752
  ...k
3753
3753
  }, w) => {
3754
- const _ = en({
3754
+ const _ = ta({
3755
3755
  type: ht,
3756
3756
  mode: r,
3757
- focusMode: a,
3758
- fullWidth: n,
3757
+ focusMode: n,
3758
+ fullWidth: a,
3759
3759
  disabled: t,
3760
3760
  raw: s,
3761
3761
  className: o,
@@ -3806,26 +3806,26 @@ const As = V.forwardRef(
3806
3806
  ) });
3807
3807
  }
3808
3808
  );
3809
- As.displayName = "ButtonSort";
3809
+ Os.displayName = "ButtonSort";
3810
3810
  const $s = ({
3811
3811
  children: e,
3812
3812
  fill: t,
3813
3813
  viewBox: r,
3814
- className: a,
3815
- defaultViewBox: n,
3814
+ className: n,
3815
+ defaultViewBox: a,
3816
3816
  size: o,
3817
3817
  title: i,
3818
3818
  semantic: s = !1,
3819
3819
  ...c
3820
3820
  }) => {
3821
- const d = f(o, a);
3821
+ const d = f(o, n);
3822
3822
  return /* @__PURE__ */ E(ke, { children: [
3823
3823
  /* @__PURE__ */ l(
3824
3824
  "svg",
3825
3825
  {
3826
3826
  xmlns: "http://www.w3.org/2000/svg",
3827
3827
  className: d,
3828
- viewBox: r || n,
3828
+ viewBox: r || a,
3829
3829
  fill: t || "currentColor",
3830
3830
  role: "img",
3831
3831
  "aria-hidden": !s,
@@ -3854,8 +3854,8 @@ const Bs = ({
3854
3854
  className: e,
3855
3855
  viewBox: t,
3856
3856
  title: r,
3857
- monotone: a,
3858
- ...n
3857
+ monotone: n,
3858
+ ...a
3859
3859
  }) => /* @__PURE__ */ l(
3860
3860
  $s,
3861
3861
  {
@@ -3864,44 +3864,44 @@ const Bs = ({
3864
3864
  viewBox: t,
3865
3865
  className: e,
3866
3866
  title: r || "Close",
3867
- ...n,
3867
+ ...a,
3868
3868
  children: /* @__PURE__ */ l(
3869
3869
  "path",
3870
3870
  {
3871
3871
  d: "M297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256l105.3-105.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3z",
3872
- opacity: a ? "1" : "0.4"
3872
+ opacity: n ? "1" : "0.4"
3873
3873
  }
3874
3874
  )
3875
3875
  }
3876
3876
  );
3877
3877
  /*!
3878
- @versini/ui-icons v4.5.2
3878
+ @versini/ui-icons v4.6.0
3879
3879
  © 2025 gizmette.com
3880
3880
  */
3881
3881
  try {
3882
3882
  window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
3883
- version: "4.5.2",
3884
- buildTime: "01/20/2025 01:49 PM EST",
3883
+ version: "4.6.0",
3884
+ buildTime: "01/20/2025 04:20 PM EST",
3885
3885
  homepage: "https://github.com/aversini/ui-components",
3886
3886
  license: "MIT"
3887
3887
  });
3888
3888
  } catch {
3889
3889
  }
3890
- const rn = G.createContext(null);
3890
+ const na = G.createContext(null);
3891
3891
  function Ms({
3892
3892
  initialOpen: e = !1,
3893
3893
  open: t,
3894
3894
  onOpenChange: r
3895
3895
  } = {}) {
3896
- const [a, n] = G.useState(e), [o, i] = G.useState(), [s, c] = G.useState(), d = t ?? a, h = r ?? n, u = ba({
3896
+ const [n, a] = G.useState(e), [o, i] = G.useState(), [s, c] = G.useState(), d = t ?? n, h = r ?? a, u = yn({
3897
3897
  open: d,
3898
3898
  onOpenChange: h
3899
- }), m = u.context, g = ya(m, {
3899
+ }), m = u.context, g = vn(m, {
3900
3900
  enabled: t == null
3901
- }), p = va(m, {
3901
+ }), p = kn(m, {
3902
3902
  outsidePress: !1,
3903
3903
  outsidePressEvent: "mousedown"
3904
- }), b = ka(m), v = xa([g, p, b]);
3904
+ }), b = xn(m), v = wn([g, p, b]);
3905
3905
  return G.useMemo(
3906
3906
  () => ({
3907
3907
  open: d,
@@ -3917,7 +3917,7 @@ function Ms({
3917
3917
  );
3918
3918
  }
3919
3919
  const pt = () => {
3920
- const e = G.useContext(rn);
3920
+ const e = G.useContext(na);
3921
3921
  if (e == null)
3922
3922
  throw new Error("Modal components must be wrapped in <Modal />");
3923
3923
  return e;
@@ -3927,35 +3927,35 @@ function Vs({
3927
3927
  ...t
3928
3928
  }) {
3929
3929
  const r = Ms(t);
3930
- return /* @__PURE__ */ l(rn.Provider, { value: r, children: e });
3930
+ return /* @__PURE__ */ l(na.Provider, { value: r, children: e });
3931
3931
  }
3932
- const Ps = G.forwardRef(function(e, t) {
3933
- const { context: r, ...a } = pt(), n = tr([a.refs.setFloating, t]);
3932
+ const Ds = G.forwardRef(function(e, t) {
3933
+ const { context: r, ...n } = pt(), a = tr([n.refs.setFloating, t]);
3934
3934
  if (!r.open)
3935
3935
  return null;
3936
3936
  const { overlayBackground: o, ...i } = e, s = f("grid place-items-center", {
3937
3937
  [`${o}`]: o,
3938
3938
  "bg-black sm:bg-black/[.8]": !o
3939
3939
  });
3940
- return /* @__PURE__ */ l(ha, { children: /* @__PURE__ */ l(Pn, { className: s, lockScroll: !0, children: /* @__PURE__ */ l(pa, { context: r, children: /* @__PURE__ */ l(
3940
+ return /* @__PURE__ */ l(pn, { children: /* @__PURE__ */ l(Da, { className: s, lockScroll: !0, children: /* @__PURE__ */ l(bn, { context: r, children: /* @__PURE__ */ l(
3941
3941
  "div",
3942
3942
  {
3943
- ref: n,
3944
- "aria-labelledby": a.labelId,
3945
- "aria-describedby": a.descriptionId,
3946
- ...a.getFloatingProps(i),
3943
+ ref: a,
3944
+ "aria-labelledby": n.labelId,
3945
+ "aria-describedby": n.descriptionId,
3946
+ ...n.getFloatingProps(i),
3947
3947
  children: i.children
3948
3948
  }
3949
3949
  ) }) }) });
3950
- }), Ds = G.forwardRef(function({ children: e, ...t }, r) {
3951
- const { setLabelId: a } = pt(), n = er();
3952
- return G.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ l("h1", { ...t, ref: r, id: n, children: e });
3953
3950
  }), zs = G.forwardRef(function({ children: e, ...t }, r) {
3954
- const { setDescriptionId: a } = pt(), n = er();
3955
- return G.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ l("div", { ...t, ref: r, id: n, children: e });
3951
+ const { setLabelId: n } = pt(), a = er();
3952
+ return G.useLayoutEffect(() => (n(a), () => n(void 0)), [a, n]), /* @__PURE__ */ l("h1", { ...t, ref: r, id: a, children: e });
3953
+ }), Ps = G.forwardRef(function({ children: e, ...t }, r) {
3954
+ const { setDescriptionId: n } = pt(), a = er();
3955
+ return G.useLayoutEffect(() => (n(a), () => n(void 0)), [a, n]), /* @__PURE__ */ l("div", { ...t, ref: r, id: a, children: e });
3956
3956
  }), Us = G.forwardRef(function(e, t) {
3957
- const { setOpen: r } = pt(), { trigger: a, className: n, ...o } = e, i = G.useCallback(() => r(!1), [r]);
3958
- return /* @__PURE__ */ l("div", { className: n, children: G.cloneElement(a, {
3957
+ const { setOpen: r } = pt(), { trigger: n, className: a, ...o } = e, i = G.useCallback(() => r(!1), [r]);
3958
+ return /* @__PURE__ */ l("div", { className: a, children: G.cloneElement(n, {
3959
3959
  ref: t,
3960
3960
  onClick: i,
3961
3961
  ...o
@@ -3968,7 +3968,7 @@ const Ps = G.forwardRef(function(e, t) {
3968
3968
  try {
3969
3969
  window.__VERSINI_UI_MODAL__ || (window.__VERSINI_UI_MODAL__ = {
3970
3970
  version: "1.2.8",
3971
- buildTime: "01/20/2025 03:51 PM EST",
3971
+ buildTime: "01/24/2025 09:19 AM EST",
3972
3972
  homepage: "https://github.com/aversini/ui-components",
3973
3973
  license: "MIT"
3974
3974
  });
@@ -3980,8 +3980,8 @@ const Me = "panel", tt = "messagebox", Hs = ({
3980
3980
  borderMode: r
3981
3981
  }) => ({
3982
3982
  main: f("prose prose-lighter flex flex-col bg-surface-medium", {
3983
- [`${ea} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === Me,
3984
- [`${ea} w-full sm:w-[95%] md:max-w-2xl`]: t === Me && !e,
3983
+ [`${en} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === Me,
3984
+ [`${en} w-full sm:w-[95%] md:max-w-2xl`]: t === Me && !e,
3985
3985
  [`${Qr} rounded-lg border-2`]: t === tt,
3986
3986
  [`${Qr} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === tt && !e,
3987
3987
  [`${e}`]: !!e,
@@ -3998,23 +3998,23 @@ const Me = "panel", tt = "messagebox", Hs = ({
3998
3998
  open: e,
3999
3999
  onOpenChange: t,
4000
4000
  title: r,
4001
- children: a,
4002
- footer: n,
4001
+ children: n,
4002
+ footer: a,
4003
4003
  borderMode: o = "light",
4004
4004
  kind: i = Me,
4005
4005
  className: s
4006
4006
  }) => {
4007
- const c = A(""), d = Hs({ className: s, kind: i, borderMode: o });
4007
+ const c = O(""), d = Hs({ className: s, kind: i, borderMode: o });
4008
4008
  return $(() => (e && (c.current = document.title, document.title = `${r} | ${c.current}`), () => {
4009
4009
  e && (document.title = c.current);
4010
- }), [r, e]), /* @__PURE__ */ l(ke, { children: e && /* @__PURE__ */ l(Vs, { open: e, onOpenChange: t, children: /* @__PURE__ */ E(Ps, { className: d.main, children: [
4010
+ }), [r, e]), /* @__PURE__ */ l(ke, { children: e && /* @__PURE__ */ l(Vs, { open: e, onOpenChange: t, children: /* @__PURE__ */ E(Ds, { className: d.main, children: [
4011
4011
  /* @__PURE__ */ E("div", { className: "flex flex-row-reverse items-center justify-between", children: [
4012
4012
  /* @__PURE__ */ l(
4013
4013
  Us,
4014
4014
  {
4015
4015
  className: d.close,
4016
4016
  trigger: /* @__PURE__ */ l(
4017
- tn,
4017
+ ra,
4018
4018
  {
4019
4019
  mode: "dark",
4020
4020
  focusMode: "light",
@@ -4025,25 +4025,25 @@ const Me = "panel", tt = "messagebox", Hs = ({
4025
4025
  )
4026
4026
  }
4027
4027
  ),
4028
- /* @__PURE__ */ l(Ds, { className: d.header, children: r })
4028
+ /* @__PURE__ */ l(zs, { className: d.header, children: r })
4029
4029
  ] }),
4030
- /* @__PURE__ */ l(zs, { className: d.content, children: a }),
4031
- n && /* @__PURE__ */ l("div", { className: d.footer, children: n })
4030
+ /* @__PURE__ */ l(Ps, { className: d.content, children: n }),
4031
+ a && /* @__PURE__ */ l("div", { className: d.footer, children: a })
4032
4032
  ] }) }) });
4033
4033
  }, Ws = ({
4034
4034
  showConfirmation: e,
4035
4035
  setShowConfirmation: t,
4036
4036
  action: r,
4037
- children: a,
4038
- customStrings: n
4037
+ children: n,
4038
+ customStrings: a
4039
4039
  }) => /* @__PURE__ */ l(
4040
4040
  Fs,
4041
4041
  {
4042
4042
  kind: "messagebox",
4043
4043
  open: e,
4044
4044
  onOpenChange: t,
4045
- title: n.title,
4046
- footer: /* @__PURE__ */ E(vn, { columnGap: 2, alignHorizontal: "flex-end", children: [
4045
+ title: a.title,
4046
+ footer: /* @__PURE__ */ E(va, { columnGap: 2, alignHorizontal: "flex-end", children: [
4047
4047
  /* @__PURE__ */ l(Nr, { children: /* @__PURE__ */ l(
4048
4048
  Cr,
4049
4049
  {
@@ -4053,7 +4053,7 @@ const Me = "panel", tt = "messagebox", Hs = ({
4053
4053
  onClick: () => {
4054
4054
  t(!1);
4055
4055
  },
4056
- children: n.cancelAction
4056
+ children: a.cancelAction
4057
4057
  }
4058
4058
  ) }),
4059
4059
  /* @__PURE__ */ l(Nr, { children: /* @__PURE__ */ l(
@@ -4065,17 +4065,17 @@ const Me = "panel", tt = "messagebox", Hs = ({
4065
4065
  onClick: () => {
4066
4066
  t(!1), r();
4067
4067
  },
4068
- children: n.confirmAction
4068
+ children: a.confirmAction
4069
4069
  }
4070
4070
  ) })
4071
4071
  ] }),
4072
- children: a
4072
+ children: n
4073
4073
  }
4074
4074
  ), Gs = ({
4075
4075
  className: e
4076
4076
  }) => {
4077
- const { state: t, dispatch: r } = z(de), [a, n] = Z(!1), [o, i] = Mt({
4078
- key: At + kn,
4077
+ const { state: t, dispatch: r } = P(de), [n, a] = Z(!1), [o, i] = Mt({
4078
+ key: Ot + ka,
4079
4079
  initialValue: ""
4080
4080
  }), s = () => {
4081
4081
  r({
@@ -4089,8 +4089,8 @@ const Me = "panel", tt = "messagebox", Hs = ({
4089
4089
  /* @__PURE__ */ l(
4090
4090
  Ws,
4091
4091
  {
4092
- showConfirmation: a,
4093
- setShowConfirmation: n,
4092
+ showConfirmation: n,
4093
+ setShowConfirmation: a,
4094
4094
  action: s,
4095
4095
  customStrings: {
4096
4096
  confirmAction: "Continue",
@@ -4118,9 +4118,9 @@ const Me = "panel", tt = "messagebox", Hs = ({
4118
4118
  focusMode: "light",
4119
4119
  label: "Temporary Chat",
4120
4120
  onClick: (d) => {
4121
- d.preventDefault(), o ? s() : (i("true"), n(!a));
4121
+ d.preventDefault(), o ? s() : (i("true"), a(!n));
4122
4122
  },
4123
- children: t != null && t.private ? /* @__PURE__ */ l(Zn, { size: "size-4", className: "text-red-500" }) : /* @__PURE__ */ l(eo, { size: "size-4" })
4123
+ children: t != null && t.private ? /* @__PURE__ */ l(Za, { size: "size-4", className: "text-red-500" }) : /* @__PURE__ */ l(eo, { size: "size-4" })
4124
4124
  }
4125
4125
  )
4126
4126
  }
@@ -4135,7 +4135,7 @@ const Me = "panel", tt = "messagebox", Hs = ({
4135
4135
  setHasFocusInside: () => {
4136
4136
  },
4137
4137
  isOpen: !1
4138
- }), ra = (e) => {
4138
+ }), rn = (e) => {
4139
4139
  if (typeof e == "string")
4140
4140
  return e;
4141
4141
  if (typeof e == "function")
@@ -4146,42 +4146,42 @@ const Me = "panel", tt = "messagebox", Hs = ({
4146
4146
  return t.displayName || t.name || "Component";
4147
4147
  }
4148
4148
  return "Element";
4149
- }, an = ga(
4149
+ }, aa = fn(
4150
4150
  ({
4151
4151
  trigger: e,
4152
4152
  children: t,
4153
4153
  label: r = "Open menu",
4154
- defaultPlacement: a = "bottom-start",
4155
- onOpenChange: n,
4154
+ defaultPlacement: n = "bottom-start",
4155
+ onOpenChange: a,
4156
4156
  mode: o = "system",
4157
4157
  focusMode: i = "system",
4158
4158
  ...s
4159
4159
  }, c) => {
4160
- const [d, h] = Z(!1), [u, m] = Z(!1), [g, p] = Z(null), b = A([]), v = A([]), y = z(Yt), k = wa(), w = Dn(), _ = _a(), { floatingStyles: x, refs: T, context: S } = ba({
4160
+ const [d, h] = Z(!1), [u, m] = Z(!1), [g, p] = Z(null), b = O([]), v = O([]), y = P(Yt), k = _n(), w = za(), _ = En(), { floatingStyles: x, refs: T, context: S } = yn({
4161
4161
  nodeId: w,
4162
4162
  open: d,
4163
4163
  onOpenChange: (H) => {
4164
- h(H), n == null || n(H);
4164
+ h(H), a == null || a(H);
4165
4165
  },
4166
- placement: a,
4166
+ placement: n,
4167
4167
  strategy: "fixed",
4168
- middleware: [zn({ mainAxis: 10 }), Un(), Hn()],
4169
- whileElementsMounted: Fn
4170
- }), N = ya(S, {
4168
+ middleware: [Pa({ mainAxis: 10 }), Ua(), Ha()],
4169
+ whileElementsMounted: Fa
4170
+ }), N = vn(S, {
4171
4171
  event: "mousedown",
4172
4172
  toggle: !0,
4173
4173
  ignoreMouse: !1
4174
- }), D = ka(S, { role: "menu" }), O = va(S, { bubbles: !0 }), j = Wn(S, {
4174
+ }), z = xn(S, { role: "menu" }), A = kn(S, { bubbles: !0 }), j = Wa(S, {
4175
4175
  listRef: b,
4176
4176
  activeIndex: g,
4177
4177
  nested: !1,
4178
4178
  onNavigate: p,
4179
4179
  loop: !0
4180
- }), P = Gn(S, {
4180
+ }), D = Ga(S, {
4181
4181
  listRef: v,
4182
4182
  onMatch: d ? p : void 0,
4183
4183
  activeIndex: g
4184
- }), { getReferenceProps: B, getFloatingProps: R, getItemProps: Q } = xa([N, D, O, j, P]), K = ra(e) === "Button" || ra(e) === "ButtonIcon", Y = K ? {
4184
+ }), { getReferenceProps: B, getFloatingProps: R, getItemProps: Q } = wn([N, z, A, j, D]), K = rn(e) === "Button" || rn(e) === "ButtonIcon", Y = K ? {
4185
4185
  noInternalClick: K,
4186
4186
  focusMode: i,
4187
4187
  mode: o
@@ -4204,14 +4204,14 @@ const Me = "panel", tt = "messagebox", Hs = ({
4204
4204
  if (!k)
4205
4205
  return;
4206
4206
  function H() {
4207
- h(!1), n == null || n(!1);
4207
+ h(!1), a == null || a(!1);
4208
4208
  }
4209
4209
  return k.events.on("click", H), () => {
4210
4210
  k.events.off("click", H);
4211
4211
  };
4212
- }, [k, n]), $(() => {
4212
+ }, [k, a]), $(() => {
4213
4213
  d && k && k.events.emit("menuopen", { nodeId: w });
4214
- }, [k, d, w]), /* @__PURE__ */ E(jn, { id: w, children: [
4214
+ }, [k, d, w]), /* @__PURE__ */ E(ja, { id: w, children: [
4215
4215
  U,
4216
4216
  /* @__PURE__ */ l(
4217
4217
  Yt.Provider,
@@ -4223,8 +4223,8 @@ const Me = "panel", tt = "messagebox", Hs = ({
4223
4223
  setHasFocusInside: m,
4224
4224
  isOpen: d
4225
4225
  },
4226
- children: /* @__PURE__ */ l(qn, { elementsRef: b, labelsRef: v, children: d && /* @__PURE__ */ l(ha, { children: /* @__PURE__ */ l(
4227
- pa,
4226
+ children: /* @__PURE__ */ l(qa, { elementsRef: b, labelsRef: v, children: d && /* @__PURE__ */ l(pn, { children: /* @__PURE__ */ l(
4227
+ bn,
4228
4228
  {
4229
4229
  context: S,
4230
4230
  modal: !1,
@@ -4246,23 +4246,23 @@ const Me = "panel", tt = "messagebox", Hs = ({
4246
4246
  )
4247
4247
  ] });
4248
4248
  }
4249
- ), hr = ga((e, t) => /* @__PURE__ */ l(Kn, { children: /* @__PURE__ */ l(an, { ...e, ref: t }) }));
4249
+ ), hr = fn((e, t) => /* @__PURE__ */ l(Ka, { children: /* @__PURE__ */ l(aa, { ...e, ref: t }) }));
4250
4250
  hr.displayName = "Menu";
4251
- an.displayName = "MenuComponent";
4251
+ aa.displayName = "MenuComponent";
4252
4252
  const ot = G.forwardRef(
4253
4253
  ({
4254
4254
  label: e,
4255
4255
  disabled: t,
4256
4256
  icon: r,
4257
- raw: a = !1,
4258
- children: n,
4257
+ raw: n = !1,
4258
+ children: a,
4259
4259
  ignoreClick: o = !1,
4260
4260
  selected: i = !1,
4261
4261
  ...s
4262
4262
  }, c) => {
4263
4263
  let d = "";
4264
- const h = G.useContext(Yt), u = _a({ label: t ? null : e }), m = wa(), g = tr([u.ref, c]);
4265
- if (a && n)
4264
+ const h = G.useContext(Yt), u = En({ label: t ? null : e }), m = _n(), g = tr([u.ref, c]);
4265
+ if (n && a)
4266
4266
  return /* @__PURE__ */ l(
4267
4267
  "div",
4268
4268
  {
@@ -4273,7 +4273,7 @@ const ot = G.forwardRef(
4273
4273
  o || ((v = s.onClick) == null || v.call(s, b), m == null || m.events.emit("click"));
4274
4274
  }
4275
4275
  }),
4276
- children: n
4276
+ children: a
4277
4277
  }
4278
4278
  );
4279
4279
  r && (d = "pl-2");
@@ -4313,10 +4313,10 @@ const ot = G.forwardRef(
4313
4313
  }
4314
4314
  );
4315
4315
  ot.displayName = "MenuItem";
4316
- const nc = ({ className: e, ...t }) => {
4316
+ const ac = ({ className: e, ...t }) => {
4317
4317
  const r = f(e, "my-1 border-t border-border-medium");
4318
4318
  return /* @__PURE__ */ l("div", { className: r, ...t });
4319
- }, nn = ({
4319
+ }, oa = ({
4320
4320
  className: e,
4321
4321
  ...t
4322
4322
  }) => {
@@ -4348,21 +4348,21 @@ const js = (e) => {
4348
4348
  className: e,
4349
4349
  defaultPlacement: t = "top-start"
4350
4350
  }) => {
4351
- const { dispatch: r } = z(de), { dispatch: a } = z(ut), { getAccessToken: n, user: o } = Fe(), {
4351
+ const { dispatch: r } = P(de), { dispatch: n } = P(ut), { getAccessToken: a, user: o } = Fe(), {
4352
4352
  data: i,
4353
4353
  error: s,
4354
4354
  isLoading: c
4355
4355
  } = lr({
4356
4356
  keys: [o == null ? void 0 : o.username],
4357
- getAccessToken: n
4357
+ getAccessToken: a
4358
4358
  }), d = (h, u, m) => {
4359
4359
  h.preventDefault(), m && r({
4360
4360
  type: Ie,
4361
4361
  payload: {
4362
4362
  private: !0
4363
4363
  }
4364
- }), a({
4365
- type: ua,
4364
+ }), n({
4365
+ type: mn,
4366
4366
  payload: {
4367
4367
  prompt: u
4368
4368
  }
@@ -4379,10 +4379,10 @@ const js = (e) => {
4379
4379
  {
4380
4380
  mode: "dark",
4381
4381
  focusMode: "light",
4382
- trigger: /* @__PURE__ */ l(He, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ l(Yn, { size: "size-4" }) }),
4382
+ trigger: /* @__PURE__ */ l(He, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ l(Ya, { size: "size-4" }) }),
4383
4383
  defaultPlacement: t,
4384
4384
  children: [
4385
- /* @__PURE__ */ l(nn, { children: "Prompts" }),
4385
+ /* @__PURE__ */ l(oa, { children: "Prompts" }),
4386
4386
  i && i.tags && i.tags.map((h) => h.enabled && h.label && h.content && /* @__PURE__ */ l(
4387
4387
  ot,
4388
4388
  {
@@ -4433,7 +4433,7 @@ const js = (e) => {
4433
4433
  ) : null, Ys = ({
4434
4434
  className: e
4435
4435
  }) => {
4436
- const { state: t } = z(de);
4436
+ const { state: t } = P(de);
4437
4437
  return /* @__PURE__ */ l(
4438
4438
  Ke,
4439
4439
  {
@@ -4451,7 +4451,7 @@ const js = (e) => {
4451
4451
  type: "submit",
4452
4452
  mode: "light",
4453
4453
  focusMode: "light",
4454
- children: /* @__PURE__ */ l(Qn, { size: "size-4" })
4454
+ children: /* @__PURE__ */ l(Qa, { size: "size-4" })
4455
4455
  }
4456
4456
  )
4457
4457
  }
@@ -4459,21 +4459,21 @@ const js = (e) => {
4459
4459
  }, Js = ({
4460
4460
  className: e
4461
4461
  }) => {
4462
- const { state: t, dispatch: r } = z(de), { getAccessToken: a, user: n } = Fe(), {
4462
+ const { state: t, dispatch: r } = P(de), { getAccessToken: n, user: a } = Fe(), {
4463
4463
  data: o,
4464
4464
  error: i,
4465
4465
  isLoading: s,
4466
4466
  mutate: c
4467
4467
  } = lr({
4468
- keys: [n == null ? void 0 : n.username],
4469
- getAccessToken: a
4468
+ keys: [a == null ? void 0 : a.username],
4469
+ getAccessToken: n
4470
4470
  }), d = async (h) => {
4471
4471
  try {
4472
- await Pa({
4473
- accessToken: await a(),
4472
+ await zn({
4473
+ accessToken: await n(),
4474
4474
  type: We.SET_USER_PREFERENCES,
4475
4475
  params: {
4476
- user: n == null ? void 0 : n.username,
4476
+ user: a == null ? void 0 : a.username,
4477
4477
  engine: h
4478
4478
  }
4479
4479
  }), c({ ...o }), t && r({
@@ -4496,16 +4496,16 @@ const js = (e) => {
4496
4496
  {
4497
4497
  mode: "dark",
4498
4498
  focusMode: "light",
4499
- trigger: /* @__PURE__ */ l(He, { noBorder: !0, label: "Engines", children: o && o.engine === xt ? /* @__PURE__ */ l(Ar, { size: "size-4 sm:size-5" }) : /* @__PURE__ */ l($r, { size: "size-4 sm:size-5" }) }),
4499
+ trigger: /* @__PURE__ */ l(He, { noBorder: !0, label: "Engines", children: o && o.engine === xt ? /* @__PURE__ */ l(Or, { size: "size-4 sm:size-5" }) : /* @__PURE__ */ l($r, { size: "size-4 sm:size-5" }) }),
4500
4500
  defaultPlacement: "top-start",
4501
4501
  children: [
4502
- /* @__PURE__ */ l(nn, { children: "Engines" }),
4502
+ /* @__PURE__ */ l(oa, { children: "Engines" }),
4503
4503
  /* @__PURE__ */ l(
4504
4504
  ot,
4505
4505
  {
4506
4506
  selected: o && o.engine === xt,
4507
4507
  label: "Anthropic",
4508
- icon: /* @__PURE__ */ l(Ar, {}),
4508
+ icon: /* @__PURE__ */ l(Or, {}),
4509
4509
  onClick: () => d(xt)
4510
4510
  }
4511
4511
  ),
@@ -4525,7 +4525,7 @@ const js = (e) => {
4525
4525
  );
4526
4526
  }, Xs = () => f(
4527
4527
  "relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
4528
- ), aa = () => f("bg-surface-darker"), Zs = () => f("text-copy-lighter caret-copy-light"), Qs = () => f(
4528
+ ), nn = () => f("bg-surface-darker"), Zs = () => f("text-copy-lighter caret-copy-light"), Qs = () => f(
4529
4529
  "has-[.av-prompt-editable:focus]:outline",
4530
4530
  "has-[.av-prompt-editable:focus]:outline-2",
4531
4531
  "has-[.av-prompt-editable:focus]:outline-offset-2",
@@ -4536,16 +4536,16 @@ const js = (e) => {
4536
4536
  "h-6 pr-2 pl-4"
4537
4537
  ), tl = ({ className: e }) => {
4538
4538
  const t = f(
4539
- xn,
4539
+ xa,
4540
4540
  Xs(),
4541
- aa(),
4541
+ nn(),
4542
4542
  Zs(),
4543
4543
  Qs(),
4544
4544
  e
4545
4545
  ), r = f(
4546
- wn,
4546
+ wa,
4547
4547
  el(),
4548
- aa()
4548
+ nn()
4549
4549
  );
4550
4550
  return {
4551
4551
  wrapper: t,
@@ -4555,20 +4555,20 @@ const js = (e) => {
4555
4555
  className: e,
4556
4556
  label: t,
4557
4557
  value: r,
4558
- defaultValue: a,
4559
- onChange: n,
4558
+ defaultValue: n,
4559
+ onChange: a,
4560
4560
  onSubmit: o,
4561
4561
  ref: i,
4562
4562
  ...s
4563
4563
  }) => {
4564
- const { state: u } = z(de), { state: m } = z(ut), g = A(null), p = A(null), b = mo([i, p]), v = fo(), y = tl({
4564
+ const { state: u } = P(de), { state: m } = P(ut), g = O(null), p = O(null), b = mo([i, p]), v = fo(), y = tl({
4565
4565
  className: e
4566
4566
  }), [k, w] = go({
4567
4567
  value: r,
4568
4568
  initialControlledDelay: 20,
4569
- defaultValue: a,
4569
+ defaultValue: n,
4570
4570
  onChange: (S) => {
4571
- n && n({
4571
+ a && a({
4572
4572
  target: {
4573
4573
  value: S
4574
4574
  }
@@ -4630,23 +4630,23 @@ const js = (e) => {
4630
4630
  );
4631
4631
  }, Jt = (e, t) => {
4632
4632
  e({
4633
- type: ca,
4633
+ type: dn,
4634
4634
  payload: {
4635
4635
  streaming: t
4636
4636
  }
4637
4637
  });
4638
- }, na = (e) => {
4638
+ }, an = (e) => {
4639
4639
  Jt(e, !1), e({
4640
4640
  type: Ve,
4641
4641
  payload: {
4642
4642
  message: {
4643
4643
  role: Qt,
4644
- content: Sn
4644
+ content: Sa
4645
4645
  }
4646
4646
  }
4647
4647
  });
4648
- }, al = () => {
4649
- const { state: e, dispatch: t } = z(de), { state: r, dispatch: a } = z(ut), [n, o] = Z(""), { getAccessToken: i, user: s } = Fe(), c = A(null), d = A(
4648
+ }, nl = () => {
4649
+ const { state: e, dispatch: t } = P(de), { state: r, dispatch: n } = P(ut), [a, o] = Z(""), { getAccessToken: i, user: s } = Fe(), c = O(null), d = O(
4650
4650
  null
4651
4651
  );
4652
4652
  so([
@@ -4663,7 +4663,7 @@ const js = (e) => {
4663
4663
  payload: {
4664
4664
  message: {
4665
4665
  role: $t,
4666
- content: n
4666
+ content: a
4667
4667
  }
4668
4668
  }
4669
4669
  }), o("");
@@ -4676,7 +4676,7 @@ const js = (e) => {
4676
4676
  return;
4677
4677
  }
4678
4678
  const u = e.messages[e.messages.length - 1];
4679
- if (!(e.messages.length === 0 || u.message.role === Pe || u.message.role === _n || u.message.role === Qt || u.message.role === En))
4679
+ if (!(e.messages.length === 0 || u.message.role === De || u.message.role === _a || u.message.role === Qt || u.message.role === Ea))
4680
4680
  try {
4681
4681
  const g = await _i({
4682
4682
  accessToken: await i(),
@@ -4705,7 +4705,7 @@ const js = (e) => {
4705
4705
  k.substring(w + Ir.length)
4706
4706
  );
4707
4707
  t({
4708
- type: la,
4708
+ type: cn,
4709
4709
  payload: {
4710
4710
  model: x.model,
4711
4711
  usage: x.usage
@@ -4715,7 +4715,7 @@ const js = (e) => {
4715
4715
  payload: {
4716
4716
  message: {
4717
4717
  content: _,
4718
- role: Pe,
4718
+ role: De,
4719
4719
  messageId: p,
4720
4720
  processingTime: x.processingTime,
4721
4721
  name: x.name
@@ -4729,7 +4729,7 @@ const js = (e) => {
4729
4729
  payload: {
4730
4730
  message: {
4731
4731
  content: k,
4732
- role: Pe,
4732
+ role: De,
4733
4733
  messageId: p
4734
4734
  }
4735
4735
  }
@@ -4737,9 +4737,9 @@ const js = (e) => {
4737
4737
  }
4738
4738
  Jt(t, !1);
4739
4739
  } else
4740
- na(t);
4740
+ an(t);
4741
4741
  } catch (g) {
4742
- console.error(g), na(t);
4742
+ console.error(g), an(t);
4743
4743
  }
4744
4744
  })();
4745
4745
  }, [e == null ? void 0 : e.messages]), $(() => {
@@ -4747,70 +4747,70 @@ const js = (e) => {
4747
4747
  const u = r.prompt.endsWith(":") && !r.prompt.endsWith(": ") ? r.prompt + " " : r.prompt;
4748
4748
  u.indexOf(Lr) !== -1 ? navigator.clipboard.readText().then((g) => {
4749
4749
  o(u.replace(Lr, g));
4750
- }) : o(u), c.current && c.current.focus(), a({
4751
- type: da
4750
+ }) : o(u), c.current && c.current.focus(), n({
4751
+ type: un
4752
4752
  });
4753
4753
  }
4754
- }, [r, a]), $(() => {
4754
+ }, [r, n]), $(() => {
4755
4755
  e && e.usage === 0 && e.messages.length === 0 && (o(""), c.current && c.current.focus());
4756
4756
  }, [e]), $(() => {
4757
4757
  (e == null ? void 0 : e.streaming) === !1 && c.current && c.current.focus();
4758
4758
  }, [e]), /* @__PURE__ */ l(ke, { children: /* @__PURE__ */ l(
4759
4759
  rl,
4760
4760
  {
4761
- label: Tn,
4761
+ label: Ta,
4762
4762
  onSubmit: h,
4763
4763
  ref: c,
4764
- value: n,
4764
+ value: a,
4765
4765
  onChange: (u) => o(u.target.value)
4766
4766
  }
4767
4767
  ) });
4768
- }, nl = ({ isComponent: e }) => {
4769
- const { state: t } = z(de), r = A(!1), a = window.innerWidth < 403, [n, o] = Z(
4770
- a ? "bottom-4" : e ? "top-[300px]" : "top-[245px]"
4768
+ }, al = ({ isComponent: e }) => {
4769
+ const { state: t } = P(de), r = O(!1), n = window.innerWidth < 403, [a, o] = Z(
4770
+ n ? "bottom-4" : e ? "top-[300px]" : "top-[245px]"
4771
4771
  );
4772
4772
  return $(() => {
4773
- a || t && (!r.current && t.streaming && o("bottom-4"), r.current = !!t.streaming);
4774
- }, [t, a]), $(() => {
4775
- a || (t && t.messages.length === 0 && o(e ? "top-[300px]" : "top-[245px]"), t && !t.streaming && t.messages.length > 0 && o("bottom-4"));
4776
- }, [t, a, e]), /* @__PURE__ */ E(
4773
+ n || t && (!r.current && t.streaming && o("bottom-4"), r.current = !!t.streaming);
4774
+ }, [t, n]), $(() => {
4775
+ n || (t && t.messages.length === 0 && o(e ? "top-[300px]" : "top-[245px]"), t && !t.streaming && t.messages.length > 0 && o("bottom-4"));
4776
+ }, [t, n, e]), /* @__PURE__ */ E(
4777
4777
  "footer",
4778
4778
  {
4779
4779
  className: f(
4780
4780
  "px-2 sm:px-0 md:mx-auto md:max-w-4xl w-full fixed left-1/2 transform -translate-x-1/2",
4781
4781
  Ci,
4782
- n
4782
+ a
4783
4783
  ),
4784
4784
  children: [
4785
- /* @__PURE__ */ l(al, {}),
4786
- /* @__PURE__ */ l("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: Nn })
4785
+ /* @__PURE__ */ l(nl, {}),
4786
+ /* @__PURE__ */ l("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: Na })
4787
4787
  ]
4788
4788
  }
4789
4789
  );
4790
4790
  };
4791
4791
  /*!
4792
- @versini/ui-bubble v3.1.12
4792
+ @versini/ui-bubble v3.1.13
4793
4793
  © 2025 gizmette.com
4794
4794
  */
4795
4795
  try {
4796
4796
  window.__VERSINI_UI_BUBBLE__ || (window.__VERSINI_UI_BUBBLE__ = {
4797
- version: "3.1.12",
4798
- buildTime: "01/20/2025 03:52 PM EST",
4797
+ version: "3.1.13",
4798
+ buildTime: "01/24/2025 09:19 AM EST",
4799
4799
  homepage: "https://github.com/aversini/ui-components",
4800
4800
  license: "MIT"
4801
4801
  });
4802
4802
  } catch {
4803
4803
  }
4804
- const ol = "av-bubble", oa = "av-button", bt = "icon", on = "button", Xt = "link", il = ({
4804
+ const ol = "av-bubble", on = "av-button", bt = "icon", ia = "button", Xt = "link", il = ({
4805
4805
  type: e,
4806
4806
  size: t,
4807
4807
  labelRight: r,
4808
- labelLeft: a,
4809
- align: n
4808
+ labelLeft: n,
4809
+ align: a
4810
4810
  }) => {
4811
4811
  const o = "max-h-8 py-0 px-2", i = "max-h-9 h-8 px-3", s = "max-h-12 py-2 px-4";
4812
4812
  switch (e) {
4813
- case on:
4813
+ case ia:
4814
4814
  case Xt:
4815
4815
  return f({
4816
4816
  [o]: t === "small",
@@ -4819,49 +4819,49 @@ const ol = "av-bubble", oa = "av-button", bt = "icon", on = "button", Xt = "link
4819
4819
  });
4820
4820
  case bt:
4821
4821
  return f("inline-flex items-center", {
4822
- "justify-center": n === "center",
4823
- "justify-start": n === "left",
4824
- "justify-end": n === "right",
4825
- "h-6 w-6 p-0": t === "small" && !(r || a),
4826
- "h-6 px-2": t === "small" && (r || a),
4827
- "h-8 w-8 p-1": t === "medium" && !(r || a),
4828
- "h-8 px-3": t === "medium" && (r || a),
4829
- "h-12 w-12 p-2": t === "large" && !(r || a),
4830
- "h-12 px-4": t === "large" && (r || a)
4822
+ "justify-center": a === "center",
4823
+ "justify-start": a === "left",
4824
+ "justify-end": a === "right",
4825
+ "h-6 w-6 p-0": t === "small" && !(r || n),
4826
+ "h-6 px-2": t === "small" && (r || n),
4827
+ "h-8 w-8 p-1": t === "medium" && !(r || n),
4828
+ "h-8 px-3": t === "medium" && (r || n),
4829
+ "h-12 w-12 p-2": t === "large" && !(r || n),
4830
+ "h-12 px-4": t === "large" && (r || n)
4831
4831
  });
4832
4832
  }
4833
4833
  }, sl = ({
4834
4834
  type: e,
4835
4835
  size: t,
4836
4836
  labelRight: r,
4837
- labelLeft: a
4837
+ labelLeft: n
4838
4838
  }) => {
4839
- const n = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
4839
+ const a = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
4840
4840
  switch (e) {
4841
- case on:
4841
+ case ia:
4842
4842
  case Xt:
4843
4843
  return f({
4844
4844
  "text-center": e === Xt,
4845
- [n]: t === "small",
4845
+ [a]: t === "small",
4846
4846
  [o]: t === "medium",
4847
4847
  [i]: t === "large"
4848
4848
  });
4849
4849
  case bt:
4850
4850
  return f({
4851
- [n]: t === "small" && (r || a),
4852
- [o]: t === "medium" && (r || a),
4853
- [i]: t === "large" && (r || a)
4851
+ [a]: t === "small" && (r || n),
4852
+ [o]: t === "medium" && (r || n),
4853
+ [i]: t === "large" && (r || n)
4854
4854
  });
4855
4855
  }
4856
4856
  }, ll = ({
4857
4857
  mode: e,
4858
4858
  noBackground: t,
4859
4859
  noTruncate: r,
4860
- variant: a
4860
+ variant: n
4861
4861
  }) => {
4862
4862
  if (t)
4863
4863
  return "not-prose";
4864
- if (a === "primary")
4864
+ if (n === "primary")
4865
4865
  return f("not-prose", {
4866
4866
  truncate: !r,
4867
4867
  "text-copy-light": e === "dark" || e === "system",
@@ -4869,7 +4869,7 @@ const ol = "av-bubble", oa = "av-button", bt = "icon", on = "button", Xt = "link
4869
4869
  "dark:text-copy-lighter": e === "system",
4870
4870
  "dark:text-copy-light": e === "alt-system"
4871
4871
  });
4872
- if (a === "secondary")
4872
+ if (n === "secondary")
4873
4873
  return f("not-prose", {
4874
4874
  truncate: !r,
4875
4875
  "text-copy-light": e === "light" || e === "system",
@@ -4877,7 +4877,7 @@ const ol = "av-bubble", oa = "av-button", bt = "icon", on = "button", Xt = "link
4877
4877
  "dark:text-copy-lighter": e === "alt-system",
4878
4878
  "dark:text-copy-light": e === "system"
4879
4879
  });
4880
- if (a === "danger")
4880
+ if (n === "danger")
4881
4881
  return f("not-prose", {
4882
4882
  truncate: !r,
4883
4883
  "text-copy-light": e === "dark" || e === "system",
@@ -4885,7 +4885,7 @@ const ol = "av-bubble", oa = "av-button", bt = "icon", on = "button", Xt = "link
4885
4885
  "dark:text-copy-lighter": e === "system",
4886
4886
  "dark:text-copy-light": e === "alt-system"
4887
4887
  });
4888
- if (a === "selected")
4888
+ if (n === "selected")
4889
4889
  return f("not-prose text-copy-lighter", {
4890
4890
  truncate: !r
4891
4891
  });
@@ -5034,12 +5034,12 @@ const ol = "av-bubble", oa = "av-button", bt = "icon", on = "button", Xt = "link
5034
5034
  "dark:text-copy-accent-dark": e === "system"
5035
5035
  },
5036
5036
  r
5037
- ), sn = ({
5037
+ ), sa = ({
5038
5038
  type: e,
5039
5039
  className: t,
5040
5040
  raw: r,
5041
- mode: a,
5042
- focusMode: n,
5041
+ mode: n,
5042
+ focusMode: a,
5043
5043
  disabled: o,
5044
5044
  fullWidth: i,
5045
5045
  size: s,
@@ -5051,15 +5051,15 @@ const ol = "av-bubble", oa = "av-button", bt = "icon", on = "button", Xt = "link
5051
5051
  noTruncate: g,
5052
5052
  align: p,
5053
5053
  radius: b
5054
- }) => (m || (m = "primary"), r ? f(oa, t) : f(
5055
- oa,
5054
+ }) => (m || (m = "primary"), r ? f(on, t) : f(
5055
+ on,
5056
5056
  ll({
5057
- mode: a,
5057
+ mode: n,
5058
5058
  variant: m,
5059
5059
  noBackground: u,
5060
5060
  noTruncate: g
5061
5061
  }),
5062
- cl({ mode: a, noBackground: u, variant: m }),
5062
+ cl({ mode: n, noBackground: u, variant: m }),
5063
5063
  dl({ radius: b }),
5064
5064
  il({
5065
5065
  type: e,
@@ -5069,39 +5069,39 @@ const ol = "av-bubble", oa = "av-button", bt = "icon", on = "button", Xt = "link
5069
5069
  align: p
5070
5070
  }),
5071
5071
  sl({ type: e, size: s, labelRight: d, labelLeft: h }),
5072
- gl({ mode: a, variant: m, noBorder: c }),
5073
- fl({ focusMode: n }),
5074
- ul({ mode: a, variant: m, disabled: o }),
5075
- ml({ mode: a, variant: m, disabled: o }),
5072
+ gl({ mode: n, variant: m, noBorder: c }),
5073
+ fl({ focusMode: a }),
5074
+ ul({ mode: n, variant: m, disabled: o }),
5075
+ ml({ mode: n, variant: m, disabled: o }),
5076
5076
  {
5077
5077
  "w-full": i,
5078
5078
  "disabled:cursor-not-allowed disabled:opacity-50": o
5079
5079
  },
5080
5080
  t
5081
5081
  )), pl = (e, t, r) => {
5082
- var a;
5083
- !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
5082
+ var n;
5083
+ !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e == null ? void 0 : e.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
5084
5084
  }, pr = V.forwardRef((e, t) => {
5085
- const { onClick: r, noInternalClick: a = !1, ...n } = e;
5085
+ const { onClick: r, noInternalClick: n = !1, ...a } = e;
5086
5086
  return /* @__PURE__ */ l(
5087
5087
  "button",
5088
5088
  {
5089
5089
  ref: t,
5090
5090
  onClick: (o) => {
5091
- pl(o, a, r);
5091
+ pl(o, n, r);
5092
5092
  },
5093
- ...n
5093
+ ...a
5094
5094
  }
5095
5095
  );
5096
5096
  });
5097
5097
  pr.displayName = "BaseButton";
5098
- const ln = V.forwardRef(
5098
+ const la = V.forwardRef(
5099
5099
  ({
5100
5100
  children: e,
5101
5101
  disabled: t = !1,
5102
5102
  mode: r = "system",
5103
- focusMode: a = "system",
5104
- fullWidth: n = !1,
5103
+ focusMode: n = "system",
5104
+ fullWidth: a = !1,
5105
5105
  className: o,
5106
5106
  type: i = "button",
5107
5107
  raw: s = !1,
@@ -5118,11 +5118,11 @@ const ln = V.forwardRef(
5118
5118
  iconClassName: k,
5119
5119
  ...w
5120
5120
  }, _) => {
5121
- const x = sn({
5121
+ const x = sa({
5122
5122
  type: bt,
5123
5123
  mode: r,
5124
- focusMode: a,
5125
- fullWidth: n,
5124
+ focusMode: n,
5125
+ fullWidth: a,
5126
5126
  disabled: t,
5127
5127
  raw: s,
5128
5128
  className: o,
@@ -5146,22 +5146,22 @@ const ln = V.forwardRef(
5146
5146
  ...w,
5147
5147
  children: [
5148
5148
  g && /* @__PURE__ */ l("span", { className: "pr-2", children: g }),
5149
- /* @__PURE__ */ l("div", { className: T, children: e }),
5149
+ /* @__PURE__ */ l("span", { className: T, children: e }),
5150
5150
  m && /* @__PURE__ */ l("span", { className: "pl-2", children: m })
5151
5151
  ]
5152
5152
  }
5153
5153
  );
5154
5154
  }
5155
5155
  );
5156
- ln.displayName = "ButtonIcon";
5156
+ la.displayName = "ButtonIcon";
5157
5157
  /*!
5158
- @versini/ui-button v4.1.4
5158
+ @versini/ui-button v4.1.5
5159
5159
  © 2025 gizmette.com
5160
5160
  */
5161
5161
  try {
5162
5162
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
5163
- version: "4.1.4",
5164
- buildTime: "01/20/2025 03:51 PM EST",
5163
+ version: "4.1.5",
5164
+ buildTime: "01/24/2025 09:19 AM EST",
5165
5165
  homepage: "https://github.com/aversini/ui-components",
5166
5166
  license: "MIT"
5167
5167
  });
@@ -5172,8 +5172,8 @@ const bl = V.forwardRef(
5172
5172
  children: e,
5173
5173
  disabled: t = !1,
5174
5174
  mode: r = "system",
5175
- focusMode: a = "system",
5176
- fullWidth: n = !1,
5175
+ focusMode: n = "system",
5176
+ fullWidth: a = !1,
5177
5177
  className: o,
5178
5178
  type: i = "button",
5179
5179
  raw: s = !1,
@@ -5189,11 +5189,11 @@ const bl = V.forwardRef(
5189
5189
  radius: y = "large",
5190
5190
  ...k
5191
5191
  }, w) => {
5192
- const _ = sn({
5192
+ const _ = sa({
5193
5193
  type: bt,
5194
5194
  mode: r,
5195
- focusMode: a,
5196
- fullWidth: n,
5195
+ focusMode: n,
5196
+ fullWidth: a,
5197
5197
  disabled: t,
5198
5198
  raw: s,
5199
5199
  className: o,
@@ -5245,25 +5245,25 @@ const bl = V.forwardRef(
5245
5245
  }
5246
5246
  );
5247
5247
  bl.displayName = "ButtonSort";
5248
- const cn = ({
5248
+ const ca = ({
5249
5249
  children: e,
5250
5250
  fill: t,
5251
5251
  viewBox: r,
5252
- className: a,
5253
- defaultViewBox: n,
5252
+ className: n,
5253
+ defaultViewBox: a,
5254
5254
  size: o,
5255
5255
  title: i,
5256
5256
  semantic: s = !1,
5257
5257
  ...c
5258
5258
  }) => {
5259
- const d = f(o, a);
5259
+ const d = f(o, n);
5260
5260
  return /* @__PURE__ */ E(ke, { children: [
5261
5261
  /* @__PURE__ */ l(
5262
5262
  "svg",
5263
5263
  {
5264
5264
  xmlns: "http://www.w3.org/2000/svg",
5265
5265
  className: d,
5266
- viewBox: r || n,
5266
+ viewBox: r || a,
5267
5267
  fill: t || "currentColor",
5268
5268
  role: "img",
5269
5269
  "aria-hidden": !s,
@@ -5292,17 +5292,17 @@ const yl = ({
5292
5292
  className: e,
5293
5293
  viewBox: t,
5294
5294
  title: r,
5295
- monotone: a,
5296
- ...n
5295
+ monotone: n,
5296
+ ...a
5297
5297
  }) => /* @__PURE__ */ E(
5298
- cn,
5298
+ ca,
5299
5299
  {
5300
5300
  defaultViewBox: "0 0 448 512",
5301
5301
  size: "size-5",
5302
5302
  viewBox: t,
5303
5303
  className: e,
5304
5304
  title: r || "Copied",
5305
- ...n,
5305
+ ...a,
5306
5306
  children: [
5307
5307
  /* @__PURE__ */ l(
5308
5308
  "path",
@@ -5318,28 +5318,28 @@ const yl = ({
5318
5318
  className: e,
5319
5319
  viewBox: t,
5320
5320
  title: r,
5321
- monotone: a,
5322
- ...n
5321
+ monotone: n,
5322
+ ...a
5323
5323
  }) => /* @__PURE__ */ l(
5324
- cn,
5324
+ ca,
5325
5325
  {
5326
5326
  defaultViewBox: "0 0 512 512",
5327
5327
  size: "size-5",
5328
5328
  viewBox: t,
5329
5329
  className: e,
5330
5330
  title: r || "Copy",
5331
- ...n,
5331
+ ...a,
5332
5332
  children: /* @__PURE__ */ l("path", { d: "M64 464h224c8.8 0 16-7.2 16-16v-64h48v64c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h64v48H64c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16m160-160h224c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H224c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16m-64-16V64c0-35.3 28.7-64 64-64h224c35.3 0 64 28.7 64 64v224c0 35.3-28.7 64-64 64H224c-35.3 0-64-28.7-64-64" })
5333
5333
  }
5334
5334
  );
5335
5335
  /*!
5336
- @versini/ui-icons v4.5.2
5336
+ @versini/ui-icons v4.6.0
5337
5337
  © 2025 gizmette.com
5338
5338
  */
5339
5339
  try {
5340
5340
  window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
5341
- version: "4.5.2",
5342
- buildTime: "01/20/2025 01:49 PM EST",
5341
+ version: "4.6.0",
5342
+ buildTime: "01/20/2025 04:20 PM EST",
5343
5343
  homepage: "https://github.com/aversini/ui-components",
5344
5344
  license: "MIT"
5345
5345
  });
@@ -5367,14 +5367,14 @@ const kl = ({
5367
5367
  className: t,
5368
5368
  noMaxWidth: r
5369
5369
  }) => {
5370
- const a = f(
5370
+ const n = f(
5371
5371
  ol,
5372
5372
  "flex items-start",
5373
5373
  {
5374
5374
  "flex-row-reverse": e === "right"
5375
5375
  },
5376
5376
  t
5377
- ), n = f(
5377
+ ), a = f(
5378
5378
  "flex flex-col empty:hidden",
5379
5379
  kl({ kind: e, noMaxWidth: r }),
5380
5380
  wl({ kind: e }),
@@ -5385,8 +5385,8 @@ const kl = ({
5385
5385
  "mr-2": e === "right"
5386
5386
  });
5387
5387
  return {
5388
- wrapper: a,
5389
- main: n,
5388
+ wrapper: n,
5389
+ main: a,
5390
5390
  footer: o,
5391
5391
  copyButton: i
5392
5392
  };
@@ -5394,8 +5394,8 @@ const kl = ({
5394
5394
  children: e,
5395
5395
  kind: t = "left",
5396
5396
  className: r,
5397
- footer: a,
5398
- rawFooter: n,
5397
+ footer: n,
5398
+ rawFooter: a,
5399
5399
  copyToClipboard: o,
5400
5400
  copyToClipboardFocusMode: i = "system",
5401
5401
  copyToClipboardMode: s = "system",
@@ -5414,15 +5414,15 @@ const kl = ({
5414
5414
  }, [d]), /* @__PURE__ */ E("div", { className: u.wrapper, children: [
5415
5415
  /* @__PURE__ */ E("div", { children: [
5416
5416
  /* @__PURE__ */ l("div", { className: u.main, children: e }),
5417
- a && Object.keys(a).map((p) => a[p] ? /* @__PURE__ */ l("div", { className: "prose-p:m-0", children: /* @__PURE__ */ E("p", { className: u.footer, children: [
5417
+ n && Object.keys(n).map((p, b) => n[p] ? /* @__PURE__ */ l("div", { className: "prose-p:m-0", children: /* @__PURE__ */ E("p", { className: u.footer, children: [
5418
5418
  p,
5419
5419
  ": ",
5420
- a[p]
5421
- ] }) }, `-${p}`) : null),
5422
- n && n
5420
+ n[p]
5421
+ ] }) }, `${p}-${b}`) : null),
5422
+ a && a
5423
5423
  ] }),
5424
5424
  m && /* @__PURE__ */ l("div", { className: u.copyButton, children: /* @__PURE__ */ l(
5425
- ln,
5425
+ la,
5426
5426
  {
5427
5427
  noBorder: !0,
5428
5428
  noBackground: !0,
@@ -5436,12 +5436,12 @@ const kl = ({
5436
5436
  }
5437
5437
  ) })
5438
5438
  ] });
5439
- }, ia = "av-button", br = "icon", yr = "button", Zt = "link", Sl = ({
5439
+ }, sn = "av-button", br = "icon", yr = "button", Zt = "link", Sl = ({
5440
5440
  type: e,
5441
5441
  size: t,
5442
5442
  labelRight: r,
5443
- labelLeft: a,
5444
- align: n
5443
+ labelLeft: n,
5444
+ align: a
5445
5445
  }) => {
5446
5446
  const o = "max-h-8 py-0 px-2", i = "max-h-9 h-8 px-3", s = "max-h-12 py-2 px-4";
5447
5447
  switch (e) {
@@ -5454,49 +5454,49 @@ const kl = ({
5454
5454
  });
5455
5455
  case br:
5456
5456
  return f("inline-flex items-center", {
5457
- "justify-center": n === "center",
5458
- "justify-start": n === "left",
5459
- "justify-end": n === "right",
5460
- "h-6 w-6 p-0": t === "small" && !(r || a),
5461
- "h-6 px-2": t === "small" && (r || a),
5462
- "h-8 w-8 p-1": t === "medium" && !(r || a),
5463
- "h-8 px-3": t === "medium" && (r || a),
5464
- "h-12 w-12 p-2": t === "large" && !(r || a),
5465
- "h-12 px-4": t === "large" && (r || a)
5457
+ "justify-center": a === "center",
5458
+ "justify-start": a === "left",
5459
+ "justify-end": a === "right",
5460
+ "h-6 w-6 p-0": t === "small" && !(r || n),
5461
+ "h-6 px-2": t === "small" && (r || n),
5462
+ "h-8 w-8 p-1": t === "medium" && !(r || n),
5463
+ "h-8 px-3": t === "medium" && (r || n),
5464
+ "h-12 w-12 p-2": t === "large" && !(r || n),
5465
+ "h-12 px-4": t === "large" && (r || n)
5466
5466
  });
5467
5467
  }
5468
5468
  }, Nl = ({
5469
5469
  type: e,
5470
5470
  size: t,
5471
5471
  labelRight: r,
5472
- labelLeft: a
5472
+ labelLeft: n
5473
5473
  }) => {
5474
- const n = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
5474
+ const a = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
5475
5475
  switch (e) {
5476
5476
  case yr:
5477
5477
  case Zt:
5478
5478
  return f({
5479
5479
  "text-center": e === Zt,
5480
- [n]: t === "small",
5480
+ [a]: t === "small",
5481
5481
  [o]: t === "medium",
5482
5482
  [i]: t === "large"
5483
5483
  });
5484
5484
  case br:
5485
5485
  return f({
5486
- [n]: t === "small" && (r || a),
5487
- [o]: t === "medium" && (r || a),
5488
- [i]: t === "large" && (r || a)
5486
+ [a]: t === "small" && (r || n),
5487
+ [o]: t === "medium" && (r || n),
5488
+ [i]: t === "large" && (r || n)
5489
5489
  });
5490
5490
  }
5491
5491
  }, Cl = ({
5492
5492
  mode: e,
5493
5493
  noBackground: t,
5494
5494
  noTruncate: r,
5495
- variant: a
5495
+ variant: n
5496
5496
  }) => {
5497
5497
  if (t)
5498
5498
  return "not-prose";
5499
- if (a === "primary")
5499
+ if (n === "primary")
5500
5500
  return f("not-prose", {
5501
5501
  truncate: !r,
5502
5502
  "text-copy-light": e === "dark" || e === "system",
@@ -5504,7 +5504,7 @@ const kl = ({
5504
5504
  "dark:text-copy-lighter": e === "system",
5505
5505
  "dark:text-copy-light": e === "alt-system"
5506
5506
  });
5507
- if (a === "secondary")
5507
+ if (n === "secondary")
5508
5508
  return f("not-prose", {
5509
5509
  truncate: !r,
5510
5510
  "text-copy-light": e === "light" || e === "system",
@@ -5512,7 +5512,7 @@ const kl = ({
5512
5512
  "dark:text-copy-lighter": e === "alt-system",
5513
5513
  "dark:text-copy-light": e === "system"
5514
5514
  });
5515
- if (a === "danger")
5515
+ if (n === "danger")
5516
5516
  return f("not-prose", {
5517
5517
  truncate: !r,
5518
5518
  "text-copy-light": e === "dark" || e === "system",
@@ -5520,7 +5520,7 @@ const kl = ({
5520
5520
  "dark:text-copy-lighter": e === "system",
5521
5521
  "dark:text-copy-light": e === "alt-system"
5522
5522
  });
5523
- if (a === "selected")
5523
+ if (n === "selected")
5524
5524
  return f("not-prose text-copy-lighter", {
5525
5525
  truncate: !r
5526
5526
  });
@@ -5590,7 +5590,7 @@ const kl = ({
5590
5590
  });
5591
5591
  if (r === "selected")
5592
5592
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
5593
- }, Ol = ({
5593
+ }, Al = ({
5594
5594
  mode: e,
5595
5595
  disabled: t,
5596
5596
  variant: r
@@ -5620,7 +5620,7 @@ const kl = ({
5620
5620
  });
5621
5621
  if (r === "selected")
5622
5622
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
5623
- }, Al = ({
5623
+ }, Ol = ({
5624
5624
  mode: e,
5625
5625
  noBorder: t,
5626
5626
  variant: r
@@ -5657,12 +5657,12 @@ const kl = ({
5657
5657
  "focus:outline-focus-light": e === "light",
5658
5658
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
5659
5659
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
5660
- }), dn = ({
5660
+ }), da = ({
5661
5661
  type: e,
5662
5662
  className: t,
5663
5663
  raw: r,
5664
- mode: a,
5665
- focusMode: n,
5664
+ mode: n,
5665
+ focusMode: a,
5666
5666
  disabled: o,
5667
5667
  fullWidth: i,
5668
5668
  size: s,
@@ -5674,15 +5674,15 @@ const kl = ({
5674
5674
  noTruncate: g,
5675
5675
  align: p,
5676
5676
  radius: b
5677
- }) => (m || (m = "primary"), r ? f(ia, t) : f(
5678
- ia,
5677
+ }) => (m || (m = "primary"), r ? f(sn, t) : f(
5678
+ sn,
5679
5679
  Cl({
5680
- mode: a,
5680
+ mode: n,
5681
5681
  variant: m,
5682
5682
  noBackground: u,
5683
5683
  noTruncate: g
5684
5684
  }),
5685
- Rl({ mode: a, noBackground: u, variant: m }),
5685
+ Rl({ mode: n, noBackground: u, variant: m }),
5686
5686
  Il({ radius: b }),
5687
5687
  Sl({
5688
5688
  type: e,
@@ -5692,39 +5692,39 @@ const kl = ({
5692
5692
  align: p
5693
5693
  }),
5694
5694
  Nl({ type: e, size: s, labelRight: d, labelLeft: h }),
5695
- Al({ mode: a, variant: m, noBorder: c }),
5696
- $l({ focusMode: n }),
5697
- Ll({ mode: a, variant: m, disabled: o }),
5698
- Ol({ mode: a, variant: m, disabled: o }),
5695
+ Ol({ mode: n, variant: m, noBorder: c }),
5696
+ $l({ focusMode: a }),
5697
+ Ll({ mode: n, variant: m, disabled: o }),
5698
+ Al({ mode: n, variant: m, disabled: o }),
5699
5699
  {
5700
5700
  "w-full": i,
5701
5701
  "disabled:cursor-not-allowed disabled:opacity-50": o
5702
5702
  },
5703
5703
  t
5704
5704
  )), Bl = (e, t, r) => {
5705
- var a;
5706
- !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
5705
+ var n;
5706
+ !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e == null ? void 0 : e.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
5707
5707
  }, vr = V.forwardRef((e, t) => {
5708
- const { onClick: r, noInternalClick: a = !1, ...n } = e;
5708
+ const { onClick: r, noInternalClick: n = !1, ...a } = e;
5709
5709
  return /* @__PURE__ */ l(
5710
5710
  "button",
5711
5711
  {
5712
5712
  ref: t,
5713
5713
  onClick: (o) => {
5714
- Bl(o, a, r);
5714
+ Bl(o, n, r);
5715
5715
  },
5716
- ...n
5716
+ ...a
5717
5717
  }
5718
5718
  );
5719
5719
  });
5720
5720
  vr.displayName = "BaseButton";
5721
- const un = V.forwardRef(
5721
+ const ua = V.forwardRef(
5722
5722
  ({
5723
5723
  children: e,
5724
5724
  disabled: t = !1,
5725
5725
  mode: r = "system",
5726
- focusMode: a = "system",
5727
- fullWidth: n = !1,
5726
+ focusMode: n = "system",
5727
+ fullWidth: a = !1,
5728
5728
  className: o,
5729
5729
  size: i = "medium",
5730
5730
  raw: s = !1,
@@ -5734,11 +5734,11 @@ const un = V.forwardRef(
5734
5734
  radius: u = "large",
5735
5735
  ...m
5736
5736
  }, g) => {
5737
- const p = dn({
5737
+ const p = da({
5738
5738
  type: yr,
5739
5739
  mode: r,
5740
- focusMode: a,
5741
- fullWidth: n,
5740
+ focusMode: n,
5741
+ fullWidth: a,
5742
5742
  disabled: t,
5743
5743
  raw: s,
5744
5744
  className: o,
@@ -5760,15 +5760,15 @@ const un = V.forwardRef(
5760
5760
  );
5761
5761
  }
5762
5762
  );
5763
- un.displayName = "Button";
5763
+ ua.displayName = "Button";
5764
5764
  /*!
5765
- @versini/ui-button v4.1.4
5765
+ @versini/ui-button v4.1.5
5766
5766
  © 2025 gizmette.com
5767
5767
  */
5768
5768
  try {
5769
5769
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
5770
- version: "4.1.4",
5771
- buildTime: "01/20/2025 03:51 PM EST",
5770
+ version: "4.1.5",
5771
+ buildTime: "01/24/2025 09:19 AM EST",
5772
5772
  homepage: "https://github.com/aversini/ui-components",
5773
5773
  license: "MIT"
5774
5774
  });
@@ -5779,8 +5779,8 @@ const Ml = V.forwardRef(
5779
5779
  children: e,
5780
5780
  disabled: t = !1,
5781
5781
  mode: r = "system",
5782
- focusMode: a = "system",
5783
- fullWidth: n = !1,
5782
+ focusMode: n = "system",
5783
+ fullWidth: a = !1,
5784
5784
  className: o,
5785
5785
  type: i = "button",
5786
5786
  raw: s = !1,
@@ -5796,11 +5796,11 @@ const Ml = V.forwardRef(
5796
5796
  radius: y = "large",
5797
5797
  ...k
5798
5798
  }, w) => {
5799
- const _ = dn({
5799
+ const _ = da({
5800
5800
  type: br,
5801
5801
  mode: r,
5802
- focusMode: a,
5803
- fullWidth: n,
5802
+ focusMode: n,
5803
+ fullWidth: a,
5804
5804
  disabled: t,
5805
5805
  raw: s,
5806
5806
  className: o,
@@ -5852,7 +5852,7 @@ const Ml = V.forwardRef(
5852
5852
  }
5853
5853
  );
5854
5854
  Ml.displayName = "ButtonSort";
5855
- const Vl = 200, Pl = ({
5855
+ const Vl = 200, Dl = ({
5856
5856
  string: e,
5857
5857
  idealLength: t = Vl
5858
5858
  }) => {
@@ -5865,98 +5865,98 @@ const Vl = 200, Pl = ({
5865
5865
  string: e.slice(0, t + r),
5866
5866
  isTruncated: !0
5867
5867
  };
5868
- }, Dl = ({
5868
+ }, zl = ({
5869
5869
  children: e,
5870
5870
  length: t = 200,
5871
5871
  mode: r = "system",
5872
- focusMode: a = "system"
5872
+ focusMode: n = "system"
5873
5873
  }) => {
5874
- const [n, o] = Z(!1);
5874
+ const [a, o] = Z(!1);
5875
5875
  if (typeof e != "string")
5876
5876
  return e;
5877
- const { string: i, isTruncated: s } = Pl({
5877
+ const { string: i, isTruncated: s } = Dl({
5878
5878
  string: e,
5879
5879
  idealLength: t
5880
5880
  });
5881
5881
  return /* @__PURE__ */ E("span", { style: { wordBreak: "break-word" }, children: [
5882
- n ? e : i,
5882
+ a ? e : i,
5883
5883
  s && /* @__PURE__ */ l(
5884
- un,
5884
+ ua,
5885
5885
  {
5886
5886
  mode: r,
5887
- focusMode: a,
5887
+ focusMode: n,
5888
5888
  className: "ml-2",
5889
5889
  size: "small",
5890
5890
  onClick: (c) => {
5891
- c.preventDefault(), o(!n);
5891
+ c.preventDefault(), o(!a);
5892
5892
  },
5893
- children: n ? "less..." : "more..."
5893
+ children: a ? "less..." : "more..."
5894
5894
  }
5895
5895
  )
5896
5896
  ] });
5897
5897
  };
5898
5898
  /*!
5899
- @versini/ui-truncate v3.0.15
5899
+ @versini/ui-truncate v3.0.16
5900
5900
  © 2025 gizmette.com
5901
5901
  */
5902
5902
  try {
5903
5903
  window.__VERSINI_UI_TRUNCATE__ || (window.__VERSINI_UI_TRUNCATE__ = {
5904
- version: "3.0.15",
5905
- buildTime: "01/20/2025 03:52 PM EST",
5904
+ version: "3.0.16",
5905
+ buildTime: "01/24/2025 09:19 AM EST",
5906
5906
  homepage: "https://github.com/aversini/ui-components",
5907
5907
  license: "MIT"
5908
5908
  });
5909
5909
  } catch {
5910
5910
  }
5911
- const zl = ({ children: e }) => /* @__PURE__ */ l(
5911
+ const Pl = ({ children: e }) => /* @__PURE__ */ l(
5912
5912
  Tl,
5913
5913
  {
5914
5914
  kind: "right",
5915
5915
  copyToClipboard: e,
5916
5916
  copyToClipboardFocusMode: "light",
5917
- children: /* @__PURE__ */ l(Dl, { mode: "light", focusMode: "light", children: e })
5917
+ children: /* @__PURE__ */ l(zl, { mode: "light", focusMode: "light", children: e })
5918
5918
  }
5919
- ), sa = fa(
5919
+ ), ln = hn(
5920
5920
  () => import(
5921
5921
  /* webpackChunkName: "LazyMessageAssistant" */
5922
- "./MessageAssistant.CusoDhOy.js"
5922
+ "./MessageAssistant.DgBEj1fa.js"
5923
5923
  ).then((e) => e.MessageAssistant)
5924
5924
  ), Ul = () => {
5925
- const { state: e } = z(de);
5925
+ const { state: e } = P(de);
5926
5926
  return /* @__PURE__ */ E("div", { className: "space-y-6 mt-2 @container", children: [
5927
5927
  e && e.messages.length > 0 && e.messages.map((t, r) => {
5928
- const { role: a, content: n, name: o, processingTime: i } = t.message;
5929
- return (a === Pe || a === Qt) && n ? /* @__PURE__ */ l(Bt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(sa, { name: o, processingTime: i, children: n }) }, `${r}-${a}`) : a === $t && n ? /* @__PURE__ */ l(zl, { children: n }, `${r}-${a}`) : null;
5928
+ const { role: n, content: a, name: o, processingTime: i } = t.message;
5929
+ return (n === De || n === Qt) && a ? /* @__PURE__ */ l(Bt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(ln, { name: o, processingTime: i, children: a }) }, `${r}-${n}`) : n === $t && a ? /* @__PURE__ */ l(Pl, { children: a }, `${r}-${n}`) : null;
5930
5930
  }),
5931
- Cn($t, e) && /* @__PURE__ */ l(Bt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(sa, { loading: !0 }) })
5931
+ Ca($t, e) && /* @__PURE__ */ l(Bt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(ln, { loading: !0 }) })
5932
5932
  ] });
5933
5933
  }, Hl = () => {
5934
- const { isAuthenticated: e } = Fe(), { ref: t, inViewport: r } = lo(), a = Rn({
5934
+ const { isAuthenticated: e } = Fe(), { ref: t, inViewport: r } = lo(), n = Ra({
5935
5935
  isAuthenticated: e,
5936
5936
  extraClass: "rounded-b-md"
5937
5937
  });
5938
5938
  return /* @__PURE__ */ E(ke, { children: [
5939
- /* @__PURE__ */ E("div", { className: a, children: [
5940
- /* @__PURE__ */ l(In, {}),
5939
+ /* @__PURE__ */ E("div", { className: n, children: [
5940
+ /* @__PURE__ */ l(Ia, {}),
5941
5941
  /* @__PURE__ */ l(Ul, {}),
5942
5942
  /* @__PURE__ */ l("div", { ref: t })
5943
5943
  ] }),
5944
5944
  /* @__PURE__ */ l(Ks, { show: !r })
5945
5945
  ] });
5946
- }, Fl = fa(
5946
+ }, Fl = hn(
5947
5947
  () => import(
5948
5948
  /* webpackChunkName: "LazyHeader" */
5949
- "./index.BcqQB62k.js"
5949
+ "./index.DBdWZP64.js"
5950
5950
  )
5951
5951
  );
5952
- function mn({ isComponent: e = !1 }) {
5953
- const { user: t, getAccessToken: r } = Fe(), [a] = Mt({
5954
- key: At + On,
5952
+ function ma({ isComponent: e = !1 }) {
5953
+ const { user: t, getAccessToken: r } = Fe(), [n] = Mt({
5954
+ key: Ot + Aa,
5955
5955
  initialValue: ""
5956
- }), [n] = Mt({
5957
- key: At + An,
5956
+ }), [a] = Mt({
5957
+ key: Ot + Oa,
5958
5958
  initialValue: Be.ASC
5959
- }), [o, i] = wt(zo, {
5959
+ }), [o, i] = wt(Po, {
5960
5960
  id: or(),
5961
5961
  model: Te,
5962
5962
  engine: Te,
@@ -5965,9 +5965,9 @@ function mn({ isComponent: e = !1 }) {
5965
5965
  prompts: [],
5966
5966
  isComponent: e
5967
5967
  }), [s, c] = wt(Uo, {
5968
- searchString: a,
5968
+ searchString: n,
5969
5969
  sortedCell: "timestamp",
5970
- sortDirection: n
5970
+ sortDirection: a
5971
5971
  }), [d, h] = wt(Ho, {
5972
5972
  prompt: "",
5973
5973
  lastTriggeredTimestamp: 0
@@ -6017,16 +6017,16 @@ function mn({ isComponent: e = !1 }) {
6017
6017
  noMargin: !0,
6018
6018
  noPadding: !0,
6019
6019
  noBorder: !0,
6020
- className: Or({
6020
+ className: Ar({
6021
6021
  extraClass: "mt-5"
6022
6022
  }),
6023
6023
  children: /* @__PURE__ */ l(Bt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(Fl, {}) })
6024
6024
  }
6025
6025
  ),
6026
6026
  /* @__PURE__ */ l(
6027
- Ln,
6027
+ La,
6028
6028
  {
6029
- className: Or({
6029
+ className: Ar({
6030
6030
  extraClass: "max-h-[calc(100svh_-_250px)]"
6031
6031
  }),
6032
6032
  noMargin: !0,
@@ -6034,15 +6034,15 @@ function mn({ isComponent: e = !1 }) {
6034
6034
  children: /* @__PURE__ */ l(Hl, {})
6035
6035
  }
6036
6036
  ),
6037
- /* @__PURE__ */ l(nl, { isComponent: e })
6037
+ /* @__PURE__ */ l(al, { isComponent: e })
6038
6038
  ]
6039
6039
  }
6040
6040
  )
6041
6041
  }
6042
6042
  ) });
6043
6043
  }
6044
- mn.displayName = "App";
6045
- const oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: mn }, Symbol.toStringTag, { value: "Module" }));
6044
+ ma.displayName = "App";
6045
+ const oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: ma }, Symbol.toStringTag, { value: "Module" }));
6046
6046
  export {
6047
6047
  oc as App,
6048
6048
  de as AppContext,
@@ -6050,25 +6050,25 @@ export {
6050
6050
  Mt as E,
6051
6051
  Ii as HistoryContext,
6052
6052
  Fs as Ie,
6053
- nc as P,
6053
+ ac as P,
6054
6054
  ot as R,
6055
6055
  We as SERVICE_TYPES,
6056
6056
  Ke as _e,
6057
6057
  Xl as be,
6058
- Be as f,
6059
6058
  Yl as ge,
6060
6059
  Jl as he,
6061
6060
  fo as i,
6062
6061
  Bo as le,
6063
6062
  Tl as le$1,
6064
- Xn as m,
6063
+ Xa as m,
6065
6064
  Zl as me,
6066
6065
  hr as me$1,
6067
- Ar as p,
6068
- Pa as serviceCall,
6066
+ Or as p,
6067
+ Be as p$1,
6068
+ zn as serviceCall,
6069
6069
  Ql as ue,
6070
6070
  rc as useChatsHistory,
6071
- ac as useServerCapabilities,
6071
+ nc as useServerCapabilities,
6072
6072
  tc as useUserChatStats,
6073
6073
  lr as useUserPreferences,
6074
6074
  ec as ye,