@versini/sassysaint 5.4.10 → 5.4.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  import { jsx as o, jsxs as y, Fragment as _ } from "react/jsx-runtime";
2
- import { g as B, R as P, CARDS as T, renderDataAsList as oe, pluralize as he, AppContext as se, ABOUT_TITLE as Dt, DEFAULT_AI_ENGINE as te, numberFormatter as $t, durationFormatter as Qe, NA as Vt, ROLE_ASSISTANT as Ft, extractAverage as Ht, GPT4_MAX_TOKENS as Gt, un as W, STATS as Xe, L as q, j as L, C as F, HistoryContext as Je, LOCAL_STORAGE_PREFIX as ie, LOCAL_STORAGE_SORT as Ut, O as j, ACTION_RESET as et, ACTION_RESTORE as jt, ACTION_SORT as $e, LOCAL_STORAGE_SEARCH as Kt, ye as xe, ACTION_SEARCH as Wt, debounce as Yt, HISTORY_TITLE as qt, LOCAL_STORAGE_ENGINE_TOGGLE as tt, ENGINE_OPENAI as Ne, ENGINE_ANTHROPIC as me, APP_NAME as Zt, ACTION_ENGINE as rt, getCurrentGeoLocation as Qt, TagsContext as Xt, TAGS_DESCRIPTION as Jt, ACTION_SET_TAGS as er, LOCAL_STORAGE_CHAT_DETAILS as tr, M as rr, i as Ve, PROFILE_TITLE as or, LOG_OUT as Fe } from "./index.2dkXMDMm.js";
3
- import { serviceCall as D, SERVICE_TYPES as $, E as le, ce as ar, se as nr, he as we, be as sr, oe as V, ge as ir, ne as lr, f as U, Le as He, h as Ge } from "./index.PNVAoZsW.js";
2
+ import { g as O, R as L, CARDS as N, renderDataAsList as oe, pluralize as he, AppContext as se, ABOUT_TITLE as Dt, DEFAULT_AI_ENGINE as te, numberFormatter as Vt, durationFormatter as Qe, NA as $t, ROLE_ASSISTANT as Ft, extractAverage as Ht, GPT4_MAX_TOKENS as Gt, un as W, STATS as Xe, L as q, j as z, C as F, HistoryContext as Je, LOCAL_STORAGE_PREFIX as ie, LOCAL_STORAGE_SORT as Ut, O as j, ACTION_RESET as et, ACTION_RESTORE as jt, ACTION_SORT as Ve, LOCAL_STORAGE_SEARCH as Kt, ye as xe, ACTION_SEARCH as Wt, debounce as Yt, HISTORY_TITLE as qt, LOCAL_STORAGE_ENGINE_TOGGLE as tt, ENGINE_OPENAI as Te, ENGINE_ANTHROPIC as me, APP_NAME as Zt, ACTION_ENGINE as rt, getCurrentGeoLocation as Qt, TagsContext as Xt, TAGS_DESCRIPTION as Jt, ACTION_SET_TAGS as er, LOCAL_STORAGE_CHAT_DETAILS as tr, M as rr, z as $e, PROFILE_TITLE as or, LOG_OUT as Fe } from "./index.SBEBWYWL.js";
3
+ import { serviceCall as D, SERVICE_TYPES as V, E as ce, ce as ar, se as nr, he as we, be as sr, oe as $, ge as ir, ne as cr, f as U, Le as He, h as Ge } from "./index.BQqipbFO.js";
4
4
  import * as f from "react";
5
- import E, { useId as Ae, forwardRef as ot, useState as I, useRef as Z, useContext as O, useEffect as H } from "react";
5
+ import E, { useId as Ae, forwardRef as ot, useState as I, useRef as Z, useContext as P, useEffect as H } from "react";
6
6
  import k from "clsx";
7
- import { useFloatingTree as at, useFloatingNodeId as cr, useListItem as nt, useFloating as st, offset as dr, flip as ur, shift as mr, autoUpdate as hr, useClick as it, useRole as lt, useDismiss as ct, useListNavigation as gr, useTypeahead as fr, useInteractions as dt, useMergeRefs as Me, FloatingNode as pr, FloatingList as br, FloatingPortal as ut, FloatingFocusManager as mt, FloatingTree as vr, FloatingOverlay as yr } from "@floating-ui/react";
7
+ import { useFloatingTree as at, useFloatingNodeId as lr, useListItem as nt, useFloating as st, offset as dr, flip as ur, shift as mr, autoUpdate as hr, useClick as it, useRole as ct, useDismiss as lt, useListNavigation as gr, useTypeahead as fr, useInteractions as dt, useMergeRefs as Me, FloatingNode as pr, FloatingList as br, FloatingPortal as ut, FloatingFocusManager as mt, FloatingTree as vr, FloatingOverlay as yr } from "@floating-ui/react";
8
8
  const ht = ({
9
9
  className: e,
10
10
  viewBox: t,
@@ -12,10 +12,10 @@ const ht = ({
12
12
  monotone: a,
13
13
  ...n
14
14
  }) => /* @__PURE__ */ o(
15
- B,
15
+ O,
16
16
  {
17
17
  defaultViewBox: "0 0 256 176",
18
- defaultClassName: "size-5",
18
+ size: "size-5",
19
19
  viewBox: t,
20
20
  className: e,
21
21
  title: r || "Anthropic",
@@ -29,10 +29,10 @@ const ht = ({
29
29
  monotone: a,
30
30
  ...n
31
31
  }) => /* @__PURE__ */ y(
32
- B,
32
+ O,
33
33
  {
34
34
  defaultViewBox: "0 0 512 512",
35
- defaultClassName: "size-5",
35
+ size: "size-5",
36
36
  viewBox: t,
37
37
  className: e,
38
38
  title: r || "Back",
@@ -55,10 +55,10 @@ const ht = ({
55
55
  monotone: a,
56
56
  ...n
57
57
  }) => /* @__PURE__ */ y(
58
- B,
58
+ O,
59
59
  {
60
60
  defaultViewBox: "0 0 448 512",
61
- defaultClassName: "size-5",
61
+ size: "size-5",
62
62
  viewBox: t,
63
63
  className: e,
64
64
  title: r || "Chart",
@@ -74,17 +74,17 @@ const ht = ({
74
74
  /* @__PURE__ */ o("path", { d: "M368 96c-26.5 0-48 21.5-48 48V432c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V144c0-26.5-21.5-48-48-48H368zM48 224c-26.5 0-48 21.5-48 48V432c0 26.5 21.5 48 48 48H80c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48H48z" })
75
75
  ]
76
76
  }
77
- ), Nr = ({
77
+ ), Tr = ({
78
78
  className: e,
79
79
  viewBox: t,
80
80
  title: r,
81
81
  monotone: a,
82
82
  ...n
83
83
  }) => /* @__PURE__ */ y(
84
- B,
84
+ O,
85
85
  {
86
86
  defaultViewBox: "0 0 448 512",
87
- defaultClassName: "size-5",
87
+ size: "size-5",
88
88
  viewBox: t,
89
89
  className: e,
90
90
  title: r || "Delete",
@@ -107,10 +107,10 @@ const ht = ({
107
107
  monotone: a,
108
108
  ...n
109
109
  }) => /* @__PURE__ */ y(
110
- B,
110
+ O,
111
111
  {
112
112
  defaultViewBox: "0 0 512 512",
113
- defaultClassName: "size-5",
113
+ size: "size-5",
114
114
  viewBox: t,
115
115
  className: e,
116
116
  title: r || "History",
@@ -126,17 +126,17 @@ const ht = ({
126
126
  /* @__PURE__ */ o("path", { d: "M256 128c13.3 0 24 10.7 24 24v94.1l65 65c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-72-72c-4.5-4.5-7-10.6-7-17V152c0-13.3 10.7-24 24-24z" })
127
127
  ]
128
128
  }
129
- ), Tr = ({
129
+ ), Nr = ({
130
130
  className: e,
131
131
  viewBox: t,
132
132
  title: r,
133
133
  monotone: a,
134
134
  ...n
135
135
  }) => /* @__PURE__ */ y(
136
- B,
136
+ O,
137
137
  {
138
138
  defaultViewBox: "0 0 512 512",
139
- defaultClassName: "size-5",
139
+ size: "size-5",
140
140
  viewBox: t,
141
141
  className: e,
142
142
  title: r || "Info",
@@ -159,10 +159,10 @@ const ht = ({
159
159
  monotone: a,
160
160
  ...n
161
161
  }) => /* @__PURE__ */ o(
162
- B,
162
+ O,
163
163
  {
164
164
  defaultViewBox: "0 0 24 24",
165
- defaultClassName: "size-5",
165
+ size: "size-5",
166
166
  viewBox: t,
167
167
  className: e,
168
168
  title: r || "OpenAI",
@@ -182,10 +182,10 @@ const ht = ({
182
182
  monotone: a,
183
183
  ...n
184
184
  }) => /* @__PURE__ */ y(
185
- B,
185
+ O,
186
186
  {
187
187
  defaultViewBox: "0 0 576 512",
188
- defaultClassName: "size-5",
188
+ size: "size-5",
189
189
  viewBox: t,
190
190
  className: e,
191
191
  title: r || "Profile",
@@ -208,10 +208,10 @@ const ht = ({
208
208
  monotone: a,
209
209
  ...n
210
210
  }) => /* @__PURE__ */ y(
211
- B,
211
+ O,
212
212
  {
213
213
  defaultViewBox: "0 0 512 512",
214
- defaultClassName: "size-5",
214
+ size: "size-5",
215
215
  viewBox: t,
216
216
  className: e,
217
217
  title: r || "Restore",
@@ -234,10 +234,10 @@ const ht = ({
234
234
  monotone: a,
235
235
  ...n
236
236
  }) => /* @__PURE__ */ o(
237
- B,
237
+ O,
238
238
  {
239
239
  defaultViewBox: "0 0 448 512",
240
- defaultClassName: "size-5",
240
+ size: "size-5",
241
241
  viewBox: t,
242
242
  className: e,
243
243
  title: r || "Settings",
@@ -277,11 +277,11 @@ const Ee = f.createContext({
277
277
  onOpenChange: n,
278
278
  mode: i = "system",
279
279
  focusMode: s = "system",
280
- ...l
280
+ ...c
281
281
  }, g) => {
282
- const [c, u] = I(!1), [p, b] = I(!1), [h, m] = I(null), d = Z([]), v = Z([]), N = O(Ee), C = at(), w = cr(), S = nt(), { floatingStyles: A, refs: M, context: R } = st({
282
+ const [l, u] = I(!1), [p, b] = I(!1), [h, m] = I(null), d = Z([]), v = Z([]), T = P(Ee), C = at(), w = lr(), S = nt(), { floatingStyles: A, refs: M, context: R } = st({
283
283
  nodeId: w,
284
- open: c,
284
+ open: l,
285
285
  onOpenChange: (J) => {
286
286
  u(J), n == null || n(J);
287
287
  },
@@ -293,7 +293,7 @@ const Ee = f.createContext({
293
293
  event: "mousedown",
294
294
  toggle: !0,
295
295
  ignoreMouse: !1
296
- }), ce = lt(R, { role: "menu" }), de = ct(R, { bubbles: !0 }), X = gr(R, {
296
+ }), le = ct(R, { role: "menu" }), de = lt(R, { bubbles: !0 }), X = gr(R, {
297
297
  listRef: d,
298
298
  activeIndex: h,
299
299
  nested: !1,
@@ -301,23 +301,23 @@ const Ee = f.createContext({
301
301
  loop: !0
302
302
  }), ye = fr(R, {
303
303
  listRef: v,
304
- onMatch: c ? m : void 0,
304
+ onMatch: l ? m : void 0,
305
305
  activeIndex: h
306
- }), { getReferenceProps: ke, getFloatingProps: Ce, getItemProps: z } = dt([x, ce, de, X, ye]), De = Ue(e) === "Button" || Ue(e) === "ButtonIcon", Bt = De ? {
306
+ }), { getReferenceProps: ke, getFloatingProps: Ce, getItemProps: B } = dt([x, le, de, X, ye]), De = Ue(e) === "Button" || Ue(e) === "ButtonIcon", Ot = De ? {
307
307
  noInternalClick: De,
308
308
  focusMode: s,
309
309
  mode: i
310
- } : {}, zt = E.cloneElement(
310
+ } : {}, Bt = E.cloneElement(
311
311
  e,
312
312
  {
313
- ...Bt,
313
+ ...Ot,
314
314
  "aria-label": r,
315
- "data-open": c ? "" : void 0,
315
+ "data-open": l ? "" : void 0,
316
316
  "data-focus-inside": p ? "" : void 0,
317
317
  ref: Me([M.setReference, S.ref, g]),
318
318
  ...ke(
319
- N.getItemProps({
320
- ...l
319
+ T.getItemProps({
320
+ ...c
321
321
  })
322
322
  )
323
323
  }
@@ -332,20 +332,20 @@ const Ee = f.createContext({
332
332
  C.events.off("click", J);
333
333
  };
334
334
  }, [C, n]), H(() => {
335
- c && C && C.events.emit("menuopen", { nodeId: w });
336
- }, [C, c, w]), /* @__PURE__ */ y(pr, { id: w, children: [
337
- zt,
335
+ l && C && C.events.emit("menuopen", { nodeId: w });
336
+ }, [C, l, w]), /* @__PURE__ */ y(pr, { id: w, children: [
337
+ Bt,
338
338
  /* @__PURE__ */ o(
339
339
  Ee.Provider,
340
340
  {
341
341
  value: {
342
342
  activeIndex: h,
343
343
  setActiveIndex: m,
344
- getItemProps: z,
344
+ getItemProps: B,
345
345
  setHasFocusInside: b,
346
- isOpen: c
346
+ isOpen: l
347
347
  },
348
- children: /* @__PURE__ */ o(br, { elementsRef: d, labelsRef: v, children: c && /* @__PURE__ */ o(ut, { children: /* @__PURE__ */ o(
348
+ children: /* @__PURE__ */ o(br, { elementsRef: d, labelsRef: v, children: l && /* @__PURE__ */ o(ut, { children: /* @__PURE__ */ o(
349
349
  mt,
350
350
  {
351
351
  context: R,
@@ -380,14 +380,14 @@ const G = f.forwardRef(
380
380
  children: n,
381
381
  ignoreClick: i = !1,
382
382
  ...s
383
- }, l) => {
383
+ }, c) => {
384
384
  let g = "";
385
- const c = f.useContext(Ee), u = nt({ label: t ? null : e }), p = at(), b = Me([u.ref, l]);
385
+ const l = f.useContext(Ee), u = nt({ label: t ? null : e }), p = at(), b = Me([u.ref, c]);
386
386
  return a && n ? /* @__PURE__ */ o(
387
387
  "div",
388
388
  {
389
389
  role: "menuitem",
390
- ...c.getItemProps({
390
+ ...l.getItemProps({
391
391
  onClick(h) {
392
392
  var m;
393
393
  i || ((m = s.onClick) == null || m.call(s, h), p == null || p.events.emit("click"));
@@ -404,14 +404,14 @@ const G = f.forwardRef(
404
404
  className: "m-0 flex w-full rounded-md border border-transparent bg-none px-2 py-2 text-left text-base outline-none focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline disabled:cursor-not-allowed disabled:text-copy-medium sm:py-1",
405
405
  tabIndex: 0,
406
406
  disabled: t,
407
- ...c.getItemProps({
407
+ ...l.getItemProps({
408
408
  onClick(h) {
409
409
  var m;
410
410
  i || ((m = s.onClick) == null || m.call(s, h), p == null || p.events.emit("click"));
411
411
  },
412
412
  onFocus(h) {
413
413
  var m;
414
- (m = s.onFocus) == null || m.call(s, h), c.setHasFocusInside(!0);
414
+ (m = s.onFocus) == null || m.call(s, h), l.setHasFocusInside(!0);
415
415
  }
416
416
  }),
417
417
  children: [
@@ -428,59 +428,59 @@ const Sr = ({ className: e, ...t }) => {
428
428
  return /* @__PURE__ */ o("div", { className: r, ...t });
429
429
  };
430
430
  /*!
431
- @versini/ui-menu v2.0.2
431
+ @versini/ui-menu v2.0.5
432
432
  © 2024 gizmette.com
433
433
  */
434
434
  try {
435
435
  window.__VERSINI_UI_MENU__ || (window.__VERSINI_UI_MENU__ = {
436
- version: "2.0.2",
437
- buildTime: "12/30/2024 12:27 PM EST",
436
+ version: "2.0.5",
437
+ buildTime: "12/30/2024 05:27 PM EST",
438
438
  homepage: "https://github.com/aversini/ui-components",
439
439
  license: "MIT"
440
440
  });
441
441
  } catch {
442
442
  }
443
443
  /*!
444
- @versini/ui-togglegroup v2.0.2
444
+ @versini/ui-togglegroup v2.0.4
445
445
  © 2024 gizmette.com
446
446
  */
447
447
  try {
448
448
  window.__VERSINI_UI_TOGGLEGROUP__ || (window.__VERSINI_UI_TOGGLEGROUP__ = {
449
- version: "2.0.2",
450
- buildTime: "12/30/2024 12:27 PM EST",
449
+ version: "2.0.4",
450
+ buildTime: "12/30/2024 05:27 PM EST",
451
451
  homepage: "https://github.com/aversini/ui-components",
452
452
  license: "MIT"
453
453
  });
454
454
  } catch {
455
455
  }
456
456
  const _r = "av-togglegroup", Rr = "av-togglegroup-item-wrapper", Ar = "av-togglegroup-item";
457
- function Le(e, t = []) {
457
+ function ze(e, t = []) {
458
458
  let r = [];
459
459
  function a(i, s) {
460
- const l = f.createContext(s), g = r.length;
460
+ const c = f.createContext(s), g = r.length;
461
461
  r = [...r, s];
462
- const c = (p) => {
462
+ const l = (p) => {
463
463
  var b;
464
- const { scope: h, children: m, ...d } = p, v = ((b = h == null ? void 0 : h[e]) == null ? void 0 : b[g]) || l, N = f.useMemo(() => d, Object.values(d));
465
- return /* @__PURE__ */ o(v.Provider, { value: N, children: m });
464
+ const { scope: h, children: m, ...d } = p, v = ((b = h == null ? void 0 : h[e]) == null ? void 0 : b[g]) || c, T = f.useMemo(() => d, Object.values(d));
465
+ return /* @__PURE__ */ o(v.Provider, { value: T, children: m });
466
466
  };
467
- c.displayName = i + "Provider";
467
+ l.displayName = i + "Provider";
468
468
  function u(p, b) {
469
469
  var h;
470
- const m = ((h = b == null ? void 0 : b[e]) == null ? void 0 : h[g]) || l, d = f.useContext(m);
470
+ const m = ((h = b == null ? void 0 : b[e]) == null ? void 0 : h[g]) || c, d = f.useContext(m);
471
471
  if (d) return d;
472
472
  if (s !== void 0) return s;
473
473
  throw new Error(`\`${p}\` must be used within \`${i}\``);
474
474
  }
475
- return [c, u];
475
+ return [l, u];
476
476
  }
477
477
  const n = () => {
478
478
  const i = r.map((s) => f.createContext(s));
479
479
  return function(s) {
480
- const l = (s == null ? void 0 : s[e]) || i;
480
+ const c = (s == null ? void 0 : s[e]) || i;
481
481
  return f.useMemo(
482
- () => ({ [`__scope${e}`]: { ...s, [e]: l } }),
483
- [s, l]
482
+ () => ({ [`__scope${e}`]: { ...s, [e]: c } }),
483
+ [s, c]
484
484
  );
485
485
  };
486
486
  };
@@ -495,9 +495,9 @@ function Mr(...e) {
495
495
  scopeName: n.scopeName
496
496
  }));
497
497
  return function(n) {
498
- const i = a.reduce((s, { useScope: l, scopeName: g }) => {
499
- const c = l(n)[`__scope${g}`];
500
- return { ...s, ...c };
498
+ const i = a.reduce((s, { useScope: c, scopeName: g }) => {
499
+ const l = c(n)[`__scope${g}`];
500
+ return { ...s, ...l };
501
501
  }, {});
502
502
  return f.useMemo(() => ({ [`__scope${t.scopeName}`]: i }), [i]);
503
503
  };
@@ -529,10 +529,10 @@ function Se(...e) {
529
529
  return f.useCallback(pt(...e), e);
530
530
  }
531
531
  var ge = f.forwardRef((e, t) => {
532
- const { children: r, ...a } = e, n = f.Children.toArray(r), i = n.find(Pr);
532
+ const { children: r, ...a } = e, n = f.Children.toArray(r), i = n.find(Lr);
533
533
  if (i) {
534
- const s = i.props.children, l = n.map((g) => g === i ? f.Children.count(s) > 1 ? f.Children.only(null) : f.isValidElement(s) ? s.props.children : null : g);
535
- return /* @__PURE__ */ o(_e, { ...a, ref: t, children: f.isValidElement(s) ? f.cloneElement(s, void 0, l) : null });
534
+ const s = i.props.children, c = n.map((g) => g === i ? f.Children.count(s) > 1 ? f.Children.only(null) : f.isValidElement(s) ? s.props.children : null : g);
535
+ return /* @__PURE__ */ o(_e, { ...a, ref: t, children: f.isValidElement(s) ? f.cloneElement(s, void 0, c) : null });
536
536
  }
537
537
  return /* @__PURE__ */ o(_e, { ...a, ref: t, children: r });
538
538
  });
@@ -540,9 +540,9 @@ ge.displayName = "Slot";
540
540
  var _e = f.forwardRef((e, t) => {
541
541
  const { children: r, ...a } = e;
542
542
  if (f.isValidElement(r)) {
543
- const n = Br(r);
543
+ const n = Or(r);
544
544
  return f.cloneElement(r, {
545
- ...Or(a, r.props),
545
+ ...Pr(a, r.props),
546
546
  // @ts-ignore
547
547
  ref: t ? pt(t, n) : n
548
548
  });
@@ -550,11 +550,11 @@ var _e = f.forwardRef((e, t) => {
550
550
  return f.Children.count(r) > 1 ? f.Children.only(null) : null;
551
551
  });
552
552
  _e.displayName = "SlotClone";
553
- var Lr = ({ children: e }) => /* @__PURE__ */ o(_, { children: e });
554
- function Pr(e) {
555
- return f.isValidElement(e) && e.type === Lr;
553
+ var zr = ({ children: e }) => /* @__PURE__ */ o(_, { children: e });
554
+ function Lr(e) {
555
+ return f.isValidElement(e) && e.type === zr;
556
556
  }
557
- function Or(e, t) {
557
+ function Pr(e, t) {
558
558
  const r = { ...t };
559
559
  for (const a in t) {
560
560
  const n = e[a], i = t[a];
@@ -564,12 +564,12 @@ function Or(e, t) {
564
564
  }
565
565
  return { ...e, ...r };
566
566
  }
567
- function Br(e) {
567
+ function Or(e) {
568
568
  var t, r;
569
569
  let a = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, n = a && "isReactWarning" in a && a.isReactWarning;
570
570
  return n ? e.ref : (a = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, n = a && "isReactWarning" in a && a.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
571
571
  }
572
- var zr = [
572
+ var Br = [
573
573
  "a",
574
574
  "button",
575
575
  "div",
@@ -586,10 +586,10 @@ var zr = [
586
586
  "span",
587
587
  "svg",
588
588
  "ul"
589
- ], ne = zr.reduce((e, t) => {
589
+ ], ne = Br.reduce((e, t) => {
590
590
  const r = f.forwardRef((a, n) => {
591
- const { asChild: i, ...s } = a, l = i ? ge : t;
592
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ o(l, { ...s, ref: n });
591
+ const { asChild: i, ...s } = a, c = i ? ge : t;
592
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ o(c, { ...s, ref: n });
593
593
  });
594
594
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
595
595
  }, {});
@@ -600,28 +600,28 @@ function K(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
600
600
  };
601
601
  }
602
602
  function Dr(e) {
603
- const t = e + "CollectionProvider", [r, a] = Le(t), [n, i] = r(
603
+ const t = e + "CollectionProvider", [r, a] = ze(t), [n, i] = r(
604
604
  t,
605
605
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
606
606
  ), s = (h) => {
607
- const { scope: m, children: d } = h, v = E.useRef(null), N = E.useRef(/* @__PURE__ */ new Map()).current;
608
- return /* @__PURE__ */ o(n, { scope: m, itemMap: N, collectionRef: v, children: d });
607
+ const { scope: m, children: d } = h, v = E.useRef(null), T = E.useRef(/* @__PURE__ */ new Map()).current;
608
+ return /* @__PURE__ */ o(n, { scope: m, itemMap: T, collectionRef: v, children: d });
609
609
  };
610
610
  s.displayName = t;
611
- const l = e + "CollectionSlot", g = E.forwardRef(
611
+ const c = e + "CollectionSlot", g = E.forwardRef(
612
612
  (h, m) => {
613
- const { scope: d, children: v } = h, N = i(l, d), C = Se(m, N.collectionRef);
613
+ const { scope: d, children: v } = h, T = i(c, d), C = Se(m, T.collectionRef);
614
614
  return /* @__PURE__ */ o(ge, { ref: C, children: v });
615
615
  }
616
616
  );
617
- g.displayName = l;
618
- const c = e + "CollectionItemSlot", u = "data-radix-collection-item", p = E.forwardRef(
617
+ g.displayName = c;
618
+ const l = e + "CollectionItemSlot", u = "data-radix-collection-item", p = E.forwardRef(
619
619
  (h, m) => {
620
- const { scope: d, children: v, ...N } = h, C = E.useRef(null), w = Se(m, C), S = i(c, d);
621
- return E.useEffect(() => (S.itemMap.set(C, { ref: C, ...N }), () => void S.itemMap.delete(C))), /* @__PURE__ */ o(ge, { [u]: "", ref: w, children: v });
620
+ const { scope: d, children: v, ...T } = h, C = E.useRef(null), w = Se(m, C), S = i(l, d);
621
+ return E.useEffect(() => (S.itemMap.set(C, { ref: C, ...T }), () => void S.itemMap.delete(C))), /* @__PURE__ */ o(ge, { [u]: "", ref: w, children: v });
622
622
  }
623
623
  );
624
- p.displayName = c;
624
+ p.displayName = l;
625
625
  function b(h) {
626
626
  const m = i(e + "CollectionConsumer", h);
627
627
  return E.useCallback(() => {
@@ -629,7 +629,7 @@ function Dr(e) {
629
629
  if (!d) return [];
630
630
  const v = Array.from(d.querySelectorAll(`[${u}]`));
631
631
  return Array.from(m.itemMap.values()).sort(
632
- (N, C) => v.indexOf(N.ref.current) - v.indexOf(C.ref.current)
632
+ (T, C) => v.indexOf(T.ref.current) - v.indexOf(C.ref.current)
633
633
  );
634
634
  }, [m.collectionRef, m.itemMap]);
635
635
  }
@@ -639,16 +639,16 @@ function Dr(e) {
639
639
  a
640
640
  ];
641
641
  }
642
- var $r = globalThis != null && globalThis.document ? f.useLayoutEffect : () => {
643
- }, Vr = f.useId || (() => {
642
+ var Vr = globalThis != null && globalThis.document ? f.useLayoutEffect : () => {
643
+ }, $r = f.useId || (() => {
644
644
  }), Fr = 0;
645
645
  function Hr(e) {
646
- const [t, r] = f.useState(Vr());
647
- return $r(() => {
646
+ const [t, r] = f.useState($r());
647
+ return Vr(() => {
648
648
  r((a) => a ?? String(Fr++));
649
649
  }, [e]), t ? `radix-${t}` : "";
650
650
  }
651
- function Pe(e) {
651
+ function Le(e) {
652
652
  const t = f.useRef(e);
653
653
  return f.useEffect(() => {
654
654
  t.current = e;
@@ -663,15 +663,15 @@ function pe({
663
663
  onChange: r = () => {
664
664
  }
665
665
  }) {
666
- const [a, n] = Gr({ defaultProp: t, onChange: r }), i = e !== void 0, s = i ? e : a, l = Pe(r), g = f.useCallback(
667
- (c) => {
666
+ const [a, n] = Gr({ defaultProp: t, onChange: r }), i = e !== void 0, s = i ? e : a, c = Le(r), g = f.useCallback(
667
+ (l) => {
668
668
  if (i) {
669
- const u = typeof c == "function" ? c(e) : c;
670
- u !== e && l(u);
669
+ const u = typeof l == "function" ? l(e) : l;
670
+ u !== e && c(u);
671
671
  } else
672
- n(c);
672
+ n(l);
673
673
  },
674
- [i, e, n, l]
674
+ [i, e, n, c]
675
675
  );
676
676
  return [s, g];
677
677
  }
@@ -679,7 +679,7 @@ function Gr({
679
679
  defaultProp: e,
680
680
  onChange: t
681
681
  }) {
682
- const r = f.useState(e), [a] = r, n = f.useRef(a), i = Pe(t);
682
+ const r = f.useState(e), [a] = r, n = f.useRef(a), i = Le(t);
683
683
  return f.useEffect(() => {
684
684
  n.current !== a && (i(a), n.current = a);
685
685
  }, [a, n, i]), r;
@@ -689,7 +689,7 @@ function bt(e) {
689
689
  const t = f.useContext(Ur);
690
690
  return e || t || "ltr";
691
691
  }
692
- var Te = "rovingFocusGroup.onEntryFocus", jr = { bubbles: !1, cancelable: !0 }, be = "RovingFocusGroup", [Re, vt, Kr] = Dr(be), [Wr, yt] = Le(
692
+ var Ne = "rovingFocusGroup.onEntryFocus", jr = { bubbles: !1, cancelable: !0 }, be = "RovingFocusGroup", [Re, vt, Kr] = Dr(be), [Wr, yt] = ze(
693
693
  be,
694
694
  [Kr]
695
695
  ), [Yr, qr] = Wr(be), kt = f.forwardRef(
@@ -703,20 +703,20 @@ var Zr = f.forwardRef((e, t) => {
703
703
  loop: n = !1,
704
704
  dir: i,
705
705
  currentTabStopId: s,
706
- defaultCurrentTabStopId: l,
706
+ defaultCurrentTabStopId: c,
707
707
  onCurrentTabStopIdChange: g,
708
- onEntryFocus: c,
708
+ onEntryFocus: l,
709
709
  preventScrollOnEntryFocus: u = !1,
710
710
  ...p
711
711
  } = e, b = f.useRef(null), h = Se(t, b), m = bt(i), [d = null, v] = pe({
712
712
  prop: s,
713
- defaultProp: l,
713
+ defaultProp: c,
714
714
  onChange: g
715
- }), [N, C] = f.useState(!1), w = Pe(c), S = vt(r), A = f.useRef(!1), [M, R] = f.useState(0);
715
+ }), [T, C] = f.useState(!1), w = Le(l), S = vt(r), A = f.useRef(!1), [M, R] = f.useState(0);
716
716
  return f.useEffect(() => {
717
717
  const x = b.current;
718
718
  if (x)
719
- return x.addEventListener(Te, w), () => x.removeEventListener(Te, w);
719
+ return x.addEventListener(Ne, w), () => x.removeEventListener(Ne, w);
720
720
  }, [w]), /* @__PURE__ */ o(
721
721
  Yr,
722
722
  {
@@ -741,7 +741,7 @@ var Zr = f.forwardRef((e, t) => {
741
741
  children: /* @__PURE__ */ o(
742
742
  ne.div,
743
743
  {
744
- tabIndex: N || M === 0 ? -1 : 0,
744
+ tabIndex: T || M === 0 ? -1 : 0,
745
745
  "data-orientation": a,
746
746
  ...p,
747
747
  ref: h,
@@ -750,13 +750,13 @@ var Zr = f.forwardRef((e, t) => {
750
750
  A.current = !0;
751
751
  }),
752
752
  onFocus: K(e.onFocus, (x) => {
753
- const ce = !A.current;
754
- if (x.target === x.currentTarget && ce && !N) {
755
- const de = new CustomEvent(Te, jr);
753
+ const le = !A.current;
754
+ if (x.target === x.currentTarget && le && !T) {
755
+ const de = new CustomEvent(Ne, jr);
756
756
  if (x.currentTarget.dispatchEvent(de), !de.defaultPrevented) {
757
- const X = S().filter((z) => z.focusable), ye = X.find((z) => z.active), ke = X.find((z) => z.id === d), Ce = [ye, ke, ...X].filter(
757
+ const X = S().filter((B) => B.focusable), ye = X.find((B) => B.active), ke = X.find((B) => B.id === d), Ce = [ye, ke, ...X].filter(
758
758
  Boolean
759
- ).map((z) => z.ref.current);
759
+ ).map((B) => B.ref.current);
760
760
  wt(Ce, u);
761
761
  }
762
762
  }
@@ -767,7 +767,7 @@ var Zr = f.forwardRef((e, t) => {
767
767
  )
768
768
  }
769
769
  );
770
- }), Ct = "RovingFocusGroupItem", Nt = f.forwardRef(
770
+ }), Ct = "RovingFocusGroupItem", Tt = f.forwardRef(
771
771
  (e, t) => {
772
772
  const {
773
773
  __scopeRovingFocusGroup: r,
@@ -775,7 +775,7 @@ var Zr = f.forwardRef((e, t) => {
775
775
  active: n = !1,
776
776
  tabStopId: i,
777
777
  ...s
778
- } = e, l = Hr(), g = i || l, c = qr(Ct, r), u = c.currentTabStopId === g, p = vt(r), { onFocusableItemAdd: b, onFocusableItemRemove: h } = c;
778
+ } = e, c = Hr(), g = i || c, l = qr(Ct, r), u = l.currentTabStopId === g, p = vt(r), { onFocusableItemAdd: b, onFocusableItemRemove: h } = l;
779
779
  return f.useEffect(() => {
780
780
  if (a)
781
781
  return b(), () => h();
@@ -790,29 +790,29 @@ var Zr = f.forwardRef((e, t) => {
790
790
  ne.span,
791
791
  {
792
792
  tabIndex: u ? 0 : -1,
793
- "data-orientation": c.orientation,
793
+ "data-orientation": l.orientation,
794
794
  ...s,
795
795
  ref: t,
796
796
  onMouseDown: K(e.onMouseDown, (m) => {
797
- a ? c.onItemFocus(g) : m.preventDefault();
797
+ a ? l.onItemFocus(g) : m.preventDefault();
798
798
  }),
799
- onFocus: K(e.onFocus, () => c.onItemFocus(g)),
799
+ onFocus: K(e.onFocus, () => l.onItemFocus(g)),
800
800
  onKeyDown: K(e.onKeyDown, (m) => {
801
801
  if (m.key === "Tab" && m.shiftKey) {
802
- c.onItemShiftTab();
802
+ l.onItemShiftTab();
803
803
  return;
804
804
  }
805
805
  if (m.target !== m.currentTarget) return;
806
- const d = Jr(m, c.orientation, c.dir);
806
+ const d = Jr(m, l.orientation, l.dir);
807
807
  if (d !== void 0) {
808
808
  if (m.metaKey || m.ctrlKey || m.altKey || m.shiftKey) return;
809
809
  m.preventDefault();
810
- let v = p().filter((N) => N.focusable).map((N) => N.ref.current);
810
+ let v = p().filter((T) => T.focusable).map((T) => T.ref.current);
811
811
  if (d === "last") v.reverse();
812
812
  else if (d === "prev" || d === "next") {
813
813
  d === "prev" && v.reverse();
814
- const N = v.indexOf(m.currentTarget);
815
- v = c.loop ? eo(v, N + 1) : v.slice(N + 1);
814
+ const T = v.indexOf(m.currentTarget);
815
+ v = l.loop ? eo(v, T + 1) : v.slice(T + 1);
816
816
  }
817
817
  setTimeout(() => wt(v));
818
818
  }
@@ -823,7 +823,7 @@ var Zr = f.forwardRef((e, t) => {
823
823
  );
824
824
  }
825
825
  );
826
- Nt.displayName = Ct;
826
+ Tt.displayName = Ct;
827
827
  var Qr = {
828
828
  ArrowLeft: "prev",
829
829
  ArrowUp: "prev",
@@ -850,8 +850,8 @@ function wt(e, t = !1) {
850
850
  function eo(e, t) {
851
851
  return e.map((r, a) => e[(t + a) % e.length]);
852
852
  }
853
- var to = kt, ro = Nt, oo = "Toggle", Tt = f.forwardRef((e, t) => {
854
- const { pressed: r, defaultPressed: a = !1, onPressedChange: n, ...i } = e, [s = !1, l] = pe({
853
+ var to = kt, ro = Tt, oo = "Toggle", Nt = f.forwardRef((e, t) => {
854
+ const { pressed: r, defaultPressed: a = !1, onPressedChange: n, ...i } = e, [s = !1, c] = pe({
855
855
  prop: r,
856
856
  onChange: n,
857
857
  defaultProp: a
@@ -866,15 +866,15 @@ var to = kt, ro = Nt, oo = "Toggle", Tt = f.forwardRef((e, t) => {
866
866
  ...i,
867
867
  ref: t,
868
868
  onClick: K(e.onClick, () => {
869
- e.disabled || l(!s);
869
+ e.disabled || c(!s);
870
870
  })
871
871
  }
872
872
  );
873
873
  });
874
- Tt.displayName = oo;
875
- var Q = "ToggleGroup", [xt, ha] = Le(Q, [
874
+ Nt.displayName = oo;
875
+ var Q = "ToggleGroup", [xt, ha] = ze(Q, [
876
876
  yt
877
- ]), Et = yt(), Oe = E.forwardRef((e, t) => {
877
+ ]), Et = yt(), Pe = E.forwardRef((e, t) => {
878
878
  const { type: r, ...a } = e;
879
879
  if (r === "single")
880
880
  return /* @__PURE__ */ o(ao, { ...a, ref: t });
@@ -882,7 +882,7 @@ var Q = "ToggleGroup", [xt, ha] = Le(Q, [
882
882
  return /* @__PURE__ */ o(no, { ...a, ref: t });
883
883
  throw new Error(`Missing prop \`type\` expected on \`${Q}\``);
884
884
  });
885
- Oe.displayName = Q;
885
+ Pe.displayName = Q;
886
886
  var [It, St] = xt(Q), ao = E.forwardRef((e, t) => {
887
887
  const {
888
888
  value: r,
@@ -890,7 +890,7 @@ var [It, St] = xt(Q), ao = E.forwardRef((e, t) => {
890
890
  onValueChange: n = () => {
891
891
  },
892
892
  ...i
893
- } = e, [s, l] = pe({
893
+ } = e, [s, c] = pe({
894
894
  prop: r,
895
895
  defaultProp: a,
896
896
  onChange: n
@@ -901,8 +901,8 @@ var [It, St] = xt(Q), ao = E.forwardRef((e, t) => {
901
901
  scope: e.__scopeToggleGroup,
902
902
  type: "single",
903
903
  value: s ? [s] : [],
904
- onItemActivate: l,
905
- onItemDeactivate: E.useCallback(() => l(""), [l]),
904
+ onItemActivate: c,
905
+ onItemDeactivate: E.useCallback(() => c(""), [c]),
906
906
  children: /* @__PURE__ */ o(_t, { ...i, ref: t })
907
907
  }
908
908
  );
@@ -913,16 +913,16 @@ var [It, St] = xt(Q), ao = E.forwardRef((e, t) => {
913
913
  onValueChange: n = () => {
914
914
  },
915
915
  ...i
916
- } = e, [s = [], l] = pe({
916
+ } = e, [s = [], c] = pe({
917
917
  prop: r,
918
918
  defaultProp: a,
919
919
  onChange: n
920
920
  }), g = E.useCallback(
921
- (u) => l((p = []) => [...p, u]),
922
- [l]
923
- ), c = E.useCallback(
924
- (u) => l((p = []) => p.filter((b) => b !== u)),
925
- [l]
921
+ (u) => c((p = []) => [...p, u]),
922
+ [c]
923
+ ), l = E.useCallback(
924
+ (u) => c((p = []) => p.filter((b) => b !== u)),
925
+ [c]
926
926
  );
927
927
  return /* @__PURE__ */ o(
928
928
  It,
@@ -931,12 +931,12 @@ var [It, St] = xt(Q), ao = E.forwardRef((e, t) => {
931
931
  type: "multiple",
932
932
  value: s,
933
933
  onItemActivate: g,
934
- onItemDeactivate: c,
934
+ onItemDeactivate: l,
935
935
  children: /* @__PURE__ */ o(_t, { ...i, ref: t })
936
936
  }
937
937
  );
938
938
  });
939
- Oe.displayName = Q;
939
+ Pe.displayName = Q;
940
940
  var [so, io] = xt(Q), _t = E.forwardRef(
941
941
  (e, t) => {
942
942
  const {
@@ -945,24 +945,24 @@ var [so, io] = xt(Q), _t = E.forwardRef(
945
945
  rovingFocus: n = !0,
946
946
  orientation: i,
947
947
  dir: s,
948
- loop: l = !0,
948
+ loop: c = !0,
949
949
  ...g
950
- } = e, c = Et(r), u = bt(s), p = { role: "group", dir: u, ...g };
950
+ } = e, l = Et(r), u = bt(s), p = { role: "group", dir: u, ...g };
951
951
  return /* @__PURE__ */ o(so, { scope: r, rovingFocus: n, disabled: a, children: n ? /* @__PURE__ */ o(
952
952
  to,
953
953
  {
954
954
  asChild: !0,
955
- ...c,
955
+ ...l,
956
956
  orientation: i,
957
957
  dir: u,
958
- loop: l,
958
+ loop: c,
959
959
  children: /* @__PURE__ */ o(ne.div, { ...p, ref: t })
960
960
  }
961
961
  ) : /* @__PURE__ */ o(ne.div, { ...p, ref: t }) });
962
962
  }
963
963
  ), fe = "ToggleGroupItem", Rt = E.forwardRef(
964
964
  (e, t) => {
965
- const r = St(fe, e.__scopeToggleGroup), a = io(fe, e.__scopeToggleGroup), n = Et(e.__scopeToggleGroup), i = r.value.includes(e.value), s = a.disabled || e.disabled, l = { ...e, pressed: i, disabled: s }, g = E.useRef(null);
965
+ const r = St(fe, e.__scopeToggleGroup), a = io(fe, e.__scopeToggleGroup), n = Et(e.__scopeToggleGroup), i = r.value.includes(e.value), s = a.disabled || e.disabled, c = { ...e, pressed: i, disabled: s }, g = E.useRef(null);
966
966
  return a.rovingFocus ? /* @__PURE__ */ o(
967
967
  ro,
968
968
  {
@@ -971,19 +971,19 @@ var [so, io] = xt(Q), _t = E.forwardRef(
971
971
  focusable: !s,
972
972
  active: i,
973
973
  ref: g,
974
- children: /* @__PURE__ */ o(Ke, { ...l, ref: t })
974
+ children: /* @__PURE__ */ o(Ke, { ...c, ref: t })
975
975
  }
976
- ) : /* @__PURE__ */ o(Ke, { ...l, ref: t });
976
+ ) : /* @__PURE__ */ o(Ke, { ...c, ref: t });
977
977
  }
978
978
  );
979
979
  Rt.displayName = fe;
980
980
  var Ke = E.forwardRef(
981
981
  (e, t) => {
982
- const { __scopeToggleGroup: r, value: a, ...n } = e, i = St(fe, r), s = { role: "radio", "aria-checked": e.pressed, "aria-pressed": void 0 }, l = i.type === "single" ? s : void 0;
982
+ const { __scopeToggleGroup: r, value: a, ...n } = e, i = St(fe, r), s = { role: "radio", "aria-checked": e.pressed, "aria-pressed": void 0 }, c = i.type === "single" ? s : void 0;
983
983
  return /* @__PURE__ */ o(
984
- Tt,
984
+ Nt,
985
985
  {
986
- ...l,
986
+ ...c,
987
987
  ...n,
988
988
  ref: t,
989
989
  onPressedChange: (g) => {
@@ -992,7 +992,7 @@ var Ke = E.forwardRef(
992
992
  }
993
993
  );
994
994
  }
995
- ), lo = Oe, co = Rt;
995
+ ), co = Pe, lo = Rt;
996
996
  const At = E.createContext({
997
997
  size: "medium",
998
998
  focusMode: "system",
@@ -1062,32 +1062,32 @@ const At = E.createContext({
1062
1062
  mode: n = "system",
1063
1063
  focusMode: i = "system",
1064
1064
  size: s = "medium",
1065
- defaultValue: l,
1065
+ defaultValue: c,
1066
1066
  className: g,
1067
- ...c
1067
+ ...l
1068
1068
  }) => {
1069
1069
  const u = po({ mode: n, className: g }), p = { size: s, focusMode: i, mode: n };
1070
1070
  return /* @__PURE__ */ o(At.Provider, { value: p, children: /* @__PURE__ */ o(
1071
- lo,
1071
+ co,
1072
1072
  {
1073
1073
  disabled: a,
1074
1074
  className: u,
1075
1075
  value: t,
1076
- defaultValue: l,
1076
+ defaultValue: c,
1077
1077
  onValueChange: r,
1078
- ...c,
1078
+ ...l,
1079
1079
  type: "single",
1080
1080
  children: e
1081
1081
  }
1082
1082
  ) });
1083
1083
  }, vo = ({ value: e, disabled: t }) => {
1084
- const { size: r, focusMode: a, mode: n } = O(At), { itemClass: i, wrapperClass: s } = fo({
1084
+ const { size: r, focusMode: a, mode: n } = P(At), { itemClass: i, wrapperClass: s } = fo({
1085
1085
  focusMode: a,
1086
1086
  mode: n,
1087
1087
  size: r
1088
1088
  });
1089
1089
  return /* @__PURE__ */ o("div", { className: s, children: /* @__PURE__ */ o(
1090
- co,
1090
+ lo,
1091
1091
  {
1092
1092
  disabled: t,
1093
1093
  className: i,
@@ -1097,40 +1097,40 @@ const At = E.createContext({
1097
1097
  ) });
1098
1098
  };
1099
1099
  /*!
1100
- @versini/ui-panel v1.2.7
1100
+ @versini/ui-panel v1.2.10
1101
1101
  © 2024 gizmette.com
1102
1102
  */
1103
1103
  try {
1104
1104
  window.__VERSINI_UI_PANEL__ || (window.__VERSINI_UI_PANEL__ = {
1105
- version: "1.2.7",
1106
- buildTime: "12/30/2024 12:27 PM EST",
1105
+ version: "1.2.10",
1106
+ buildTime: "12/30/2024 05:27 PM EST",
1107
1107
  homepage: "https://github.com/aversini/ui-components",
1108
1108
  license: "MIT"
1109
1109
  });
1110
1110
  } catch {
1111
1111
  }
1112
- const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo = "button", ko = "link", Co = ({
1112
+ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Oe = "icon", yo = "button", ko = "link", Co = ({
1113
1113
  type: e,
1114
1114
  size: t,
1115
1115
  labelRight: r,
1116
1116
  labelLeft: a,
1117
1117
  align: n
1118
1118
  }) => {
1119
- const i = "text-sm font-medium max-h-8 py-0", s = "text-base font-medium max-h-9 py-1", l = "text-lg font-medium max-h-12 py-2";
1119
+ const i = "text-sm font-medium max-h-8 py-0", s = "text-base font-medium max-h-9 py-1", c = "text-lg font-medium max-h-12 py-2";
1120
1120
  switch (e) {
1121
1121
  case yo:
1122
1122
  return k("px-4", {
1123
1123
  [i]: t === "small",
1124
1124
  [s]: t === "medium",
1125
- [l]: t === "large"
1125
+ [c]: t === "large"
1126
1126
  });
1127
1127
  case ko:
1128
1128
  return k("px-4 text-center", {
1129
1129
  [i]: t === "small",
1130
1130
  [s]: t === "medium",
1131
- [l]: t === "large"
1131
+ [c]: t === "large"
1132
1132
  });
1133
- case Be:
1133
+ case Oe:
1134
1134
  return k("inline-flex items-center", {
1135
1135
  "justify-center": n === "center",
1136
1136
  "justify-start": n === "left",
@@ -1143,7 +1143,7 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo =
1143
1143
  "h-12 px-4 text-lg font-medium": t === "large" && (r || a)
1144
1144
  });
1145
1145
  }
1146
- }, No = ({
1146
+ }, To = ({
1147
1147
  mode: e,
1148
1148
  noBackground: t,
1149
1149
  noTruncate: r,
@@ -1235,7 +1235,7 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo =
1235
1235
  "hover:bg-action-selected-dark-hover dark:hover:bg-action-selected-light-hover": e === "system",
1236
1236
  "hover:bg-action-selected-light-hover dark:hover:bg-action-selected-dark-hover": e === "alt-system"
1237
1237
  });
1238
- }, To = ({
1238
+ }, No = ({
1239
1239
  mode: e,
1240
1240
  disabled: t,
1241
1241
  variant: r
@@ -1320,9 +1320,9 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo =
1320
1320
  focusMode: n,
1321
1321
  disabled: i,
1322
1322
  fullWidth: s,
1323
- size: l,
1323
+ size: c,
1324
1324
  noBorder: g,
1325
- labelRight: c,
1325
+ labelRight: l,
1326
1326
  labelLeft: u,
1327
1327
  noBackground: p,
1328
1328
  variant: b,
@@ -1331,18 +1331,18 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo =
1331
1331
  radius: d
1332
1332
  }) => (b || (b = "primary"), r ? k(qe, t) : k(
1333
1333
  qe,
1334
- No({
1334
+ To({
1335
1335
  mode: a,
1336
1336
  variant: b,
1337
1337
  noBackground: p,
1338
1338
  noTruncate: h,
1339
1339
  radius: d
1340
1340
  }),
1341
- Co({ type: e, size: l, labelRight: c, labelLeft: u, align: m }),
1341
+ Co({ type: e, size: c, labelRight: l, labelLeft: u, align: m }),
1342
1342
  xo({ mode: a, variant: b, noBorder: g }),
1343
1343
  Eo({ focusMode: n }),
1344
1344
  wo({ mode: a, variant: b, disabled: i }),
1345
- To({ mode: a, variant: b, disabled: i }),
1345
+ No({ mode: a, variant: b, disabled: i }),
1346
1346
  {
1347
1347
  "w-full": s,
1348
1348
  "disabled:cursor-not-allowed disabled:opacity-50": i
@@ -1351,7 +1351,7 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo =
1351
1351
  )), Io = (e, t, r) => {
1352
1352
  var a;
1353
1353
  !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);
1354
- }, ze = E.forwardRef((e, t) => {
1354
+ }, Be = E.forwardRef((e, t) => {
1355
1355
  const { onClick: r, noInternalClick: a = !1, ...n } = e;
1356
1356
  return /* @__PURE__ */ o(
1357
1357
  "button",
@@ -1364,8 +1364,8 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo =
1364
1364
  }
1365
1365
  );
1366
1366
  });
1367
- ze.displayName = "BaseButton";
1368
- const Lt = E.forwardRef(
1367
+ Be.displayName = "BaseButton";
1368
+ const zt = E.forwardRef(
1369
1369
  ({
1370
1370
  children: e,
1371
1371
  disabled: t = !1,
@@ -1374,9 +1374,9 @@ const Lt = E.forwardRef(
1374
1374
  fullWidth: n = !1,
1375
1375
  className: i,
1376
1376
  type: s = "button",
1377
- raw: l = !1,
1377
+ raw: c = !1,
1378
1378
  noBorder: g = !1,
1379
- "aria-label": c,
1379
+ "aria-label": l,
1380
1380
  label: u,
1381
1381
  size: p = "medium",
1382
1382
  labelRight: b,
@@ -1384,15 +1384,15 @@ const Lt = E.forwardRef(
1384
1384
  noBackground: m = !1,
1385
1385
  align: d = "center",
1386
1386
  radius: v = "large",
1387
- ...N
1387
+ ...T
1388
1388
  }, C) => {
1389
1389
  const w = Mt({
1390
- type: Be,
1390
+ type: Oe,
1391
1391
  mode: r,
1392
1392
  focusMode: a,
1393
1393
  fullWidth: n,
1394
1394
  disabled: t,
1395
- raw: l,
1395
+ raw: c,
1396
1396
  className: i,
1397
1397
  noBorder: g,
1398
1398
  size: p,
@@ -1402,20 +1402,20 @@ const Lt = E.forwardRef(
1402
1402
  align: d,
1403
1403
  radius: v
1404
1404
  }), S = k({
1405
- "text-copy-accent-dark": r === "light" && !l,
1406
- "text-copy-light": r === "dark" && !l,
1407
- "text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !l,
1408
- "text-copy-light dark:text-copy-accent-dark": r === "system" && !l
1405
+ "text-copy-accent-dark": r === "light" && !c,
1406
+ "text-copy-light": r === "dark" && !c,
1407
+ "text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
1408
+ "text-copy-light dark:text-copy-accent-dark": r === "system" && !c
1409
1409
  });
1410
1410
  return /* @__PURE__ */ y(
1411
- ze,
1411
+ Be,
1412
1412
  {
1413
1413
  ref: C,
1414
1414
  className: w,
1415
1415
  disabled: t,
1416
1416
  type: s,
1417
- "aria-label": c || u,
1418
- ...N,
1417
+ "aria-label": l || u,
1418
+ ...T,
1419
1419
  children: [
1420
1420
  h && /* @__PURE__ */ o("span", { className: "pr-2", children: h }),
1421
1421
  /* @__PURE__ */ o("div", { className: S, children: e }),
@@ -1425,15 +1425,15 @@ const Lt = E.forwardRef(
1425
1425
  );
1426
1426
  }
1427
1427
  );
1428
- Lt.displayName = "ButtonIcon";
1428
+ zt.displayName = "ButtonIcon";
1429
1429
  /*!
1430
- @versini/ui-button v2.2.0
1430
+ @versini/ui-button v3.0.1
1431
1431
  © 2024 gizmette.com
1432
1432
  */
1433
1433
  try {
1434
1434
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
1435
- version: "2.2.0",
1436
- buildTime: "12/30/2024 12:27 PM EST",
1435
+ version: "3.0.1",
1436
+ buildTime: "12/30/2024 05:27 PM EST",
1437
1437
  homepage: "https://github.com/aversini/ui-components",
1438
1438
  license: "MIT"
1439
1439
  });
@@ -1448,9 +1448,9 @@ const So = E.forwardRef(
1448
1448
  fullWidth: n = !1,
1449
1449
  className: i,
1450
1450
  type: s = "button",
1451
- raw: l = !1,
1451
+ raw: c = !1,
1452
1452
  noBorder: g = !1,
1453
- "aria-label": c,
1453
+ "aria-label": l,
1454
1454
  label: u,
1455
1455
  size: p = "medium",
1456
1456
  labelRight: b,
@@ -1458,16 +1458,16 @@ const So = E.forwardRef(
1458
1458
  noBackground: m = !1,
1459
1459
  align: d = "center",
1460
1460
  active: v = !1,
1461
- radius: N = "large",
1461
+ radius: T = "large",
1462
1462
  ...C
1463
1463
  }, w) => {
1464
1464
  const S = Mt({
1465
- type: Be,
1465
+ type: Oe,
1466
1466
  mode: r,
1467
1467
  focusMode: a,
1468
1468
  fullWidth: n,
1469
1469
  disabled: t,
1470
- raw: l,
1470
+ raw: c,
1471
1471
  className: i,
1472
1472
  noBorder: g,
1473
1473
  size: p,
@@ -1475,12 +1475,12 @@ const So = E.forwardRef(
1475
1475
  labelLeft: h,
1476
1476
  noBackground: m,
1477
1477
  align: d,
1478
- radius: N
1478
+ radius: T
1479
1479
  }), A = k({
1480
- "text-copy-accent-dark": r === "light" && !l,
1481
- "text-copy-light": r === "dark" && !l,
1482
- "text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !l,
1483
- "text-copy-light dark:text-copy-accent-dark": r === "system" && !l
1480
+ "text-copy-accent-dark": r === "light" && !c,
1481
+ "text-copy-light": r === "dark" && !c,
1482
+ "text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
1483
+ "text-copy-light dark:text-copy-accent-dark": r === "system" && !c
1484
1484
  }), M = v ? k(
1485
1485
  "relative",
1486
1486
  "focus-within:static",
@@ -1499,13 +1499,13 @@ const So = E.forwardRef(
1499
1499
  }
1500
1500
  ) : "";
1501
1501
  return /* @__PURE__ */ o("div", { className: M, children: /* @__PURE__ */ y(
1502
- ze,
1502
+ Be,
1503
1503
  {
1504
1504
  ref: w,
1505
1505
  className: S,
1506
1506
  disabled: t,
1507
1507
  type: s,
1508
- "aria-label": c || u,
1508
+ "aria-label": l || u,
1509
1509
  ...C,
1510
1510
  children: [
1511
1511
  h && /* @__PURE__ */ o("span", { className: "pr-2", children: h }),
@@ -1523,38 +1523,38 @@ const _o = ({
1523
1523
  viewBox: r,
1524
1524
  className: a,
1525
1525
  defaultViewBox: n,
1526
- defaultClassName: i,
1526
+ size: i,
1527
1527
  title: s,
1528
- semantic: l = !1,
1528
+ semantic: c = !1,
1529
1529
  ...g
1530
1530
  }) => {
1531
- const c = k(a || i);
1531
+ const l = k(i, a);
1532
1532
  return /* @__PURE__ */ y(_, { children: [
1533
1533
  /* @__PURE__ */ o(
1534
1534
  "svg",
1535
1535
  {
1536
1536
  xmlns: "http://www.w3.org/2000/svg",
1537
- className: c,
1537
+ className: l,
1538
1538
  viewBox: r || n,
1539
1539
  fill: t || "currentColor",
1540
1540
  role: "img",
1541
- "aria-hidden": !l,
1541
+ "aria-hidden": !c,
1542
1542
  focusable: !1,
1543
1543
  ...g,
1544
1544
  children: e
1545
1545
  }
1546
1546
  ),
1547
- s && l && /* @__PURE__ */ o("span", { className: "sr-only", children: s })
1547
+ s && c && /* @__PURE__ */ o("span", { className: "sr-only", children: s })
1548
1548
  ] });
1549
1549
  };
1550
1550
  /*!
1551
- @versini/ui-svgicon v2.0.2
1551
+ @versini/ui-svgicon v3.0.1
1552
1552
  © 2024 gizmette.com
1553
1553
  */
1554
1554
  try {
1555
1555
  window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
1556
- version: "2.0.2",
1557
- buildTime: "12/30/2024 12:27 PM EST",
1556
+ version: "3.0.1",
1557
+ buildTime: "12/30/2024 05:27 PM EST",
1558
1558
  homepage: "https://github.com/aversini/ui-components",
1559
1559
  license: "MIT"
1560
1560
  });
@@ -1570,7 +1570,7 @@ const Ro = ({
1570
1570
  _o,
1571
1571
  {
1572
1572
  defaultViewBox: "0 0 384 512",
1573
- defaultClassName: "size-5",
1573
+ size: "size-5",
1574
1574
  viewBox: t,
1575
1575
  className: e,
1576
1576
  title: r || "Close",
@@ -1579,49 +1579,49 @@ const Ro = ({
1579
1579
  }
1580
1580
  );
1581
1581
  /*!
1582
- @versini/ui-icons v2.0.2
1582
+ @versini/ui-icons v3.0.1
1583
1583
  © 2024 gizmette.com
1584
1584
  */
1585
1585
  try {
1586
1586
  window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
1587
- version: "2.0.2",
1588
- buildTime: "12/30/2024 12:27 PM EST",
1587
+ version: "3.0.1",
1588
+ buildTime: "12/30/2024 05:27 PM EST",
1589
1589
  homepage: "https://github.com/aversini/ui-components",
1590
1590
  license: "MIT"
1591
1591
  });
1592
1592
  } catch {
1593
1593
  }
1594
- const Pt = f.createContext(null);
1594
+ const Lt = f.createContext(null);
1595
1595
  function Ao({
1596
1596
  initialOpen: e = !1,
1597
1597
  open: t,
1598
1598
  onOpenChange: r
1599
1599
  } = {}) {
1600
- const [a, n] = f.useState(e), [i, s] = f.useState(), [l, g] = f.useState(), c = t ?? a, u = r ?? n, p = st({
1601
- open: c,
1600
+ const [a, n] = f.useState(e), [i, s] = f.useState(), [c, g] = f.useState(), l = t ?? a, u = r ?? n, p = st({
1601
+ open: l,
1602
1602
  onOpenChange: u
1603
1603
  }), b = p.context, h = it(b, {
1604
1604
  enabled: t == null
1605
- }), m = ct(b, {
1605
+ }), m = lt(b, {
1606
1606
  outsidePress: !1,
1607
1607
  outsidePressEvent: "mousedown"
1608
- }), d = lt(b), v = dt([h, m, d]);
1608
+ }), d = ct(b), v = dt([h, m, d]);
1609
1609
  return f.useMemo(
1610
1610
  () => ({
1611
- open: c,
1611
+ open: l,
1612
1612
  setOpen: u,
1613
1613
  ...v,
1614
1614
  ...p,
1615
1615
  labelId: i,
1616
- descriptionId: l,
1616
+ descriptionId: c,
1617
1617
  setLabelId: s,
1618
1618
  setDescriptionId: g
1619
1619
  }),
1620
- [c, u, v, p, i, l]
1620
+ [l, u, v, p, i, c]
1621
1621
  );
1622
1622
  }
1623
1623
  const ve = () => {
1624
- const e = f.useContext(Pt);
1624
+ const e = f.useContext(Lt);
1625
1625
  if (e == null)
1626
1626
  throw new Error("Modal components must be wrapped in <Modal />");
1627
1627
  return e;
@@ -1631,17 +1631,17 @@ function Mo({
1631
1631
  ...t
1632
1632
  }) {
1633
1633
  const r = Ao(t);
1634
- return /* @__PURE__ */ o(Pt.Provider, { value: r, children: e });
1634
+ return /* @__PURE__ */ o(Lt.Provider, { value: r, children: e });
1635
1635
  }
1636
- const Lo = f.forwardRef(function(e, t) {
1636
+ const zo = f.forwardRef(function(e, t) {
1637
1637
  const { context: r, ...a } = ve(), n = Me([a.refs.setFloating, t]);
1638
1638
  if (!r.open)
1639
1639
  return null;
1640
- const { overlayBackground: i, ...s } = e, l = k("grid place-items-center", {
1640
+ const { overlayBackground: i, ...s } = e, c = k("grid place-items-center", {
1641
1641
  [`${i}`]: i,
1642
1642
  "bg-black sm:bg-black/[.8]": !i
1643
1643
  });
1644
- return /* @__PURE__ */ o(ut, { children: /* @__PURE__ */ o(yr, { className: l, lockScroll: !0, children: /* @__PURE__ */ o(mt, { context: r, children: /* @__PURE__ */ o(
1644
+ return /* @__PURE__ */ o(ut, { children: /* @__PURE__ */ o(yr, { className: c, lockScroll: !0, children: /* @__PURE__ */ o(mt, { context: r, children: /* @__PURE__ */ o(
1645
1645
  "div",
1646
1646
  {
1647
1647
  ref: n,
@@ -1651,13 +1651,13 @@ const Lo = f.forwardRef(function(e, t) {
1651
1651
  children: s.children
1652
1652
  }
1653
1653
  ) }) }) });
1654
- }), Po = f.forwardRef(function({ children: e, ...t }, r) {
1654
+ }), Lo = f.forwardRef(function({ children: e, ...t }, r) {
1655
1655
  const { setLabelId: a } = ve(), n = Ae();
1656
1656
  return f.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ o("h1", { ...t, ref: r, id: n, children: e });
1657
- }), Oo = f.forwardRef(function({ children: e, ...t }, r) {
1657
+ }), Po = f.forwardRef(function({ children: e, ...t }, r) {
1658
1658
  const { setDescriptionId: a } = ve(), n = Ae();
1659
1659
  return f.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ o("div", { ...t, ref: r, id: n, children: e });
1660
- }), Bo = f.forwardRef(function(e, t) {
1660
+ }), Oo = f.forwardRef(function(e, t) {
1661
1661
  const { setOpen: r } = ve(), { trigger: a, className: n, ...i } = e, s = f.useCallback(() => r(!1), [r]);
1662
1662
  return /* @__PURE__ */ o("div", { className: n, children: f.cloneElement(a, {
1663
1663
  ref: t,
@@ -1666,19 +1666,19 @@ const Lo = f.forwardRef(function(e, t) {
1666
1666
  }) });
1667
1667
  });
1668
1668
  /*!
1669
- @versini/ui-modal v1.1.4
1669
+ @versini/ui-modal v1.1.6
1670
1670
  © 2024 gizmette.com
1671
1671
  */
1672
1672
  try {
1673
1673
  window.__VERSINI_UI_MODAL__ || (window.__VERSINI_UI_MODAL__ = {
1674
- version: "1.1.4",
1675
- buildTime: "12/30/2024 12:27 PM EST",
1674
+ version: "1.1.6",
1675
+ buildTime: "12/30/2024 05:27 PM EST",
1676
1676
  homepage: "https://github.com/aversini/ui-components",
1677
1677
  license: "MIT"
1678
1678
  });
1679
1679
  } catch {
1680
1680
  }
1681
- const ee = "panel", ue = "messagebox", zo = ({
1681
+ const ee = "panel", ue = "messagebox", Bo = ({
1682
1682
  className: e,
1683
1683
  kind: t,
1684
1684
  borderMode: r
@@ -1706,19 +1706,19 @@ const ee = "panel", ue = "messagebox", zo = ({
1706
1706
  footer: n,
1707
1707
  borderMode: i = "light",
1708
1708
  kind: s = ee,
1709
- className: l
1709
+ className: c
1710
1710
  }) => {
1711
- const g = Z(""), c = zo({ className: l, kind: s, borderMode: i });
1711
+ const g = Z(""), l = Bo({ className: c, kind: s, borderMode: i });
1712
1712
  return H(() => (e && (g.current = document.title, document.title = `${r} | ${g.current}`), () => {
1713
1713
  e && (document.title = g.current);
1714
- }), [r, e]), /* @__PURE__ */ o(_, { children: e && /* @__PURE__ */ o(Mo, { open: e, onOpenChange: t, children: /* @__PURE__ */ y(Lo, { className: c.main, children: [
1714
+ }), [r, e]), /* @__PURE__ */ o(_, { children: e && /* @__PURE__ */ o(Mo, { open: e, onOpenChange: t, children: /* @__PURE__ */ y(zo, { className: l.main, children: [
1715
1715
  /* @__PURE__ */ y("div", { className: "flex flex-row-reverse items-center justify-between", children: [
1716
1716
  /* @__PURE__ */ o(
1717
- Bo,
1717
+ Oo,
1718
1718
  {
1719
- className: c.close,
1719
+ className: l.close,
1720
1720
  trigger: /* @__PURE__ */ o(
1721
- Lt,
1721
+ zt,
1722
1722
  {
1723
1723
  mode: "dark",
1724
1724
  focusMode: "light",
@@ -1729,47 +1729,47 @@ const ee = "panel", ue = "messagebox", zo = ({
1729
1729
  )
1730
1730
  }
1731
1731
  ),
1732
- /* @__PURE__ */ o(Po, { className: c.header, children: r })
1732
+ /* @__PURE__ */ o(Lo, { className: l.header, children: r })
1733
1733
  ] }),
1734
- /* @__PURE__ */ o(Oo, { className: c.content, children: a }),
1735
- n && /* @__PURE__ */ o("div", { className: c.footer, children: n })
1734
+ /* @__PURE__ */ o(Po, { className: l.content, children: a }),
1735
+ n && /* @__PURE__ */ o("div", { className: l.footer, children: n })
1736
1736
  ] }) }) });
1737
1737
  }, Do = ({ stats: e }) => {
1738
1738
  const t = (e == null ? void 0 : e.plugins) || [], r = (e == null ? void 0 : e.version) || "", a = (e == null ? void 0 : e.models) || [], n = ae(), i = ae();
1739
1739
  return /* @__PURE__ */ y(_, { children: [
1740
1740
  /* @__PURE__ */ o("div", { className: "mb-4", children: /* @__PURE__ */ o(
1741
- P,
1741
+ L,
1742
1742
  {
1743
- header: T.ABOUT.TITLE_CLIENT,
1743
+ header: N.ABOUT.TITLE_CLIENT,
1744
1744
  className: "prose-dark dark:prose-lighter",
1745
1745
  children: oe(n, {
1746
- [T.ABOUT.VERSION]: "5.11.0",
1747
- [T.ABOUT.BUILD_TIMESTAMP]: "12/30/2024 01:34 PM EST"
1746
+ [N.ABOUT.VERSION]: "5.11.2",
1747
+ [N.ABOUT.BUILD_TIMESTAMP]: "12/30/2024 06:07 PM EST"
1748
1748
  })
1749
1749
  }
1750
1750
  ) }),
1751
1751
  /* @__PURE__ */ o(
1752
- P,
1752
+ L,
1753
1753
  {
1754
- header: T.ABOUT.TITLE_SERVER,
1754
+ header: N.ABOUT.TITLE_SERVER,
1755
1755
  className: "prose-dark dark:prose-lighter",
1756
1756
  children: oe(i, {
1757
- [T.ABOUT.VERSION]: r,
1758
- [he(T.ABOUT.ENGINE, a.length)]: /* @__PURE__ */ o(_, { children: a.map((s) => /* @__PURE__ */ o("div", { className: "text-right", children: s }, s)) }),
1759
- [he(T.ABOUT.PLUGIN, t.length)]: /* @__PURE__ */ o(_, { children: t.map((s) => /* @__PURE__ */ o("div", { className: "text-right", children: s }, s)) })
1757
+ [N.ABOUT.VERSION]: r,
1758
+ [he(N.ABOUT.ENGINE, a.length)]: /* @__PURE__ */ o(_, { children: a.map((s) => /* @__PURE__ */ o("div", { className: "text-right", children: s }, s)) }),
1759
+ [he(N.ABOUT.PLUGIN, t.length)]: /* @__PURE__ */ o(_, { children: t.map((s) => /* @__PURE__ */ o("div", { className: "text-right", children: s }, s)) })
1760
1760
  })
1761
1761
  }
1762
1762
  )
1763
1763
  ] });
1764
- }, $o = ({
1764
+ }, Vo = ({
1765
1765
  open: e,
1766
1766
  onOpenChange: t
1767
1767
  }) => {
1768
- const { serverStats: r } = O(se);
1768
+ const { serverStats: r } = P(se);
1769
1769
  return /* @__PURE__ */ o(Y, { open: e, onOpenChange: t, title: Dt, children: /* @__PURE__ */ o(Do, { stats: r }) });
1770
- }, Vo = (e) => Qe(e), Fo = (e) => {
1770
+ }, $o = (e) => Qe(e), Fo = (e) => {
1771
1771
  if (!e || e.length === 0)
1772
- return Vt;
1772
+ return $t;
1773
1773
  const t = e.filter(
1774
1774
  (r) => {
1775
1775
  var a, n;
@@ -1778,35 +1778,35 @@ const ee = "panel", ue = "messagebox", zo = ({
1778
1778
  ).map((r) => r.message.processingTime);
1779
1779
  return Ht({
1780
1780
  data: t,
1781
- formatter: Vo
1781
+ formatter: $o
1782
1782
  });
1783
1783
  }, Ho = ({
1784
1784
  isAuthenticated: e,
1785
1785
  stats: t
1786
1786
  }) => {
1787
- const { state: r } = O(se), a = Gt - Number(r == null ? void 0 : r.usage), n = ae(), i = ae();
1787
+ const { state: r } = P(se), a = Gt - Number(r == null ? void 0 : r.usage), n = ae(), i = ae();
1788
1788
  return e ? /* @__PURE__ */ y(_, { children: [
1789
1789
  r && r.messages.length > 0 && /* @__PURE__ */ o("div", { className: "mb-4", children: /* @__PURE__ */ o(
1790
- P,
1790
+ L,
1791
1791
  {
1792
- header: T.CURRENT_STATISTICS.TITLE,
1792
+ header: N.CURRENT_STATISTICS.TITLE,
1793
1793
  className: "prose-dark dark:prose-lighter",
1794
1794
  children: oe(n, {
1795
- [T.CURRENT_STATISTICS.MODEL_NAME]: (r == null ? void 0 : r.model) || te,
1796
- [T.CURRENT_STATISTICS.TOKENS_USED]: r == null ? void 0 : r.usage,
1797
- [T.CURRENT_STATISTICS.REMAINING_TOKENS]: $t.format(a),
1798
- [T.CURRENT_STATISTICS.PROCESSING_TIME]: Fo(r == null ? void 0 : r.messages)
1795
+ [N.CURRENT_STATISTICS.MODEL_NAME]: (r == null ? void 0 : r.model) || te,
1796
+ [N.CURRENT_STATISTICS.TOKENS_USED]: r == null ? void 0 : r.usage,
1797
+ [N.CURRENT_STATISTICS.REMAINING_TOKENS]: Vt.format(a),
1798
+ [N.CURRENT_STATISTICS.PROCESSING_TIME]: Fo(r == null ? void 0 : r.messages)
1799
1799
  })
1800
1800
  }
1801
1801
  ) }),
1802
1802
  /* @__PURE__ */ o(
1803
- P,
1803
+ L,
1804
1804
  {
1805
- header: T.MAIN_STATISTICS.TITLE,
1805
+ header: N.MAIN_STATISTICS.TITLE,
1806
1806
  className: "prose-dark dark:prose-lighter",
1807
1807
  children: oe(i, {
1808
- [he(T.MAIN_STATISTICS.TOTAL, t.totalChats)]: t.totalChats,
1809
- [T.MAIN_STATISTICS.PROCESSING_TIME]: Qe(
1808
+ [he(N.MAIN_STATISTICS.TOTAL, t.totalChats)]: t.totalChats,
1809
+ [N.MAIN_STATISTICS.PROCESSING_TIME]: Qe(
1810
1810
  t.averageProcessingTimes
1811
1811
  )
1812
1812
  })
@@ -1824,19 +1824,19 @@ const ee = "panel", ue = "messagebox", zo = ({
1824
1824
  return H(() => {
1825
1825
  !e || !s || (async () => {
1826
1826
  try {
1827
- const l = await D({
1827
+ const c = await D({
1828
1828
  accessToken: await i(),
1829
- type: $.GET_CHATS_STATS,
1829
+ type: V.GET_CHATS_STATS,
1830
1830
  params: {
1831
1831
  userId: s.username
1832
1832
  }
1833
1833
  });
1834
- l.status === 200 && a(l.data);
1834
+ c.status === 200 && a(c.data);
1835
1835
  } catch {
1836
1836
  }
1837
1837
  })();
1838
1838
  }, [e, i, s]), /* @__PURE__ */ o(Y, { open: e, onOpenChange: t, title: Xe, children: /* @__PURE__ */ o(Ho, { isAuthenticated: n, stats: r }) });
1839
- }, Ot = ({
1839
+ }, Pt = ({
1840
1840
  showConfirmation: e,
1841
1841
  setShowConfirmation: t,
1842
1842
  action: r,
@@ -1850,7 +1850,7 @@ const ee = "panel", ue = "messagebox", zo = ({
1850
1850
  onOpenChange: t,
1851
1851
  title: n.title,
1852
1852
  footer: /* @__PURE__ */ y(q, { columnGap: 2, alignHorizontal: "flex-end", children: [
1853
- /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o(
1853
+ /* @__PURE__ */ o(z, { children: /* @__PURE__ */ o(
1854
1854
  F,
1855
1855
  {
1856
1856
  mode: "dark",
@@ -1862,7 +1862,7 @@ const ee = "panel", ue = "messagebox", zo = ({
1862
1862
  children: n.cancelAction
1863
1863
  }
1864
1864
  ) }),
1865
- /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o(
1865
+ /* @__PURE__ */ o(z, { children: /* @__PURE__ */ o(
1866
1866
  F,
1867
1867
  {
1868
1868
  mode: "dark",
@@ -1881,7 +1881,7 @@ const ee = "panel", ue = "messagebox", zo = ({
1881
1881
  try {
1882
1882
  const n = await D({
1883
1883
  accessToken: a,
1884
- type: $.GET_CHAT,
1884
+ type: V.GET_CHAT,
1885
1885
  params: {
1886
1886
  id: e.id
1887
1887
  }
@@ -1910,14 +1910,14 @@ const ee = "panel", ue = "messagebox", zo = ({
1910
1910
  id: 0,
1911
1911
  timestamp: "",
1912
1912
  message: ""
1913
- }), [l, g] = I(!1), { state: c, dispatch: u } = O(Je), [, p] = le({
1913
+ }), [c, g] = I(!1), { state: l, dispatch: u } = P(Je), [, p] = ce({
1914
1914
  key: ie + Ut,
1915
- initialValue: c.sortDirection
1915
+ initialValue: l.sortDirection
1916
1916
  }), b = (d) => {
1917
- switch (c.sortDirection) {
1917
+ switch (l.sortDirection) {
1918
1918
  case U.ASC:
1919
1919
  p(U.DESC), u({
1920
- type: $e,
1920
+ type: Ve,
1921
1921
  payload: {
1922
1922
  sortedCell: d,
1923
1923
  sortDirection: U.DESC
@@ -1926,7 +1926,7 @@ const ee = "panel", ue = "messagebox", zo = ({
1926
1926
  break;
1927
1927
  default:
1928
1928
  p(U.ASC), u({
1929
- type: $e,
1929
+ type: Ve,
1930
1930
  payload: {
1931
1931
  sortedCell: d,
1932
1932
  sortDirection: U.ASC
@@ -1937,22 +1937,22 @@ const ee = "panel", ue = "messagebox", zo = ({
1937
1937
  };
1938
1938
  return /* @__PURE__ */ y(_, { children: [
1939
1939
  /* @__PURE__ */ y(
1940
- Ot,
1940
+ Pt,
1941
1941
  {
1942
- showConfirmation: l,
1942
+ showConfirmation: c,
1943
1943
  setShowConfirmation: g,
1944
1944
  action: async () => {
1945
1945
  const d = s.current;
1946
1946
  try {
1947
1947
  const v = await D({
1948
1948
  accessToken: await i(),
1949
- type: $.DELETE_CHAT,
1949
+ type: V.DELETE_CHAT,
1950
1950
  params: {
1951
1951
  userId: (n == null ? void 0 : n.username) || "",
1952
1952
  id: d.id,
1953
1953
  limit: 1,
1954
- searchString: c.searchString,
1955
- direction: c.sortDirection,
1954
+ searchString: l.searchString,
1955
+ direction: l.sortDirection,
1956
1956
  truncateSize: 100
1957
1957
  }
1958
1958
  });
@@ -1997,23 +1997,23 @@ const ee = "panel", ue = "messagebox", zo = ({
1997
1997
  buttonClassName: "text-xs sm:text-sm",
1998
1998
  cellId: "timestamp",
1999
1999
  align: "left",
2000
- sortDirection: c.sortDirection,
2001
- sortedCell: c.sortedCell,
2000
+ sortDirection: l.sortDirection,
2001
+ sortedCell: l.sortedCell,
2002
2002
  onClick: () => {
2003
2003
  b("timestamp");
2004
2004
  },
2005
2005
  children: "Date"
2006
2006
  }
2007
2007
  ),
2008
- /* @__PURE__ */ o(V, { className: "text-xs sm:text-sm", children: "First message" }),
2009
- /* @__PURE__ */ o(V, { className: "text-xs sm:text-sm", children: "Model" }),
2010
- /* @__PURE__ */ o(V, { className: "text-xs sm:text-sm text-right", children: "Actions" })
2008
+ /* @__PURE__ */ o($, { className: "text-xs sm:text-sm", children: "First message" }),
2009
+ /* @__PURE__ */ o($, { className: "text-xs sm:text-sm", children: "Model" }),
2010
+ /* @__PURE__ */ o($, { className: "text-xs sm:text-sm text-right", children: "Actions" })
2011
2011
  ] }) }),
2012
2012
  /* @__PURE__ */ o(ir, { children: e.data.map((d, v) => {
2013
- var N, C;
2014
- return ((N = d == null ? void 0 : d.messages) == null ? void 0 : N.length) > 0 ? /* @__PURE__ */ y(we, { children: [
2013
+ var T, C;
2014
+ return ((T = d == null ? void 0 : d.messages) == null ? void 0 : T.length) > 0 ? /* @__PURE__ */ y(we, { children: [
2015
2015
  /* @__PURE__ */ o(
2016
- V,
2016
+ $,
2017
2017
  {
2018
2018
  component: "th",
2019
2019
  scope: "row",
@@ -2022,7 +2022,7 @@ const ee = "panel", ue = "messagebox", zo = ({
2022
2022
  }
2023
2023
  ),
2024
2024
  /* @__PURE__ */ o(
2025
- V,
2025
+ $,
2026
2026
  {
2027
2027
  className: "max-w-[100px] text-white sm:max-w-full text-xs sm:text-sm",
2028
2028
  style: {
@@ -2031,11 +2031,11 @@ const ee = "panel", ue = "messagebox", zo = ({
2031
2031
  children: d.messages.length > 0 ? (C = d.messages[0]) == null ? void 0 : C.content : ""
2032
2032
  }
2033
2033
  ),
2034
- /* @__PURE__ */ o(V, { component: "th", scope: "row", className: "text-gray-400", children: /* @__PURE__ */ y(q, { alignHorizontal: "center", children: [
2035
- d.model && d.model.startsWith("claude") && /* @__PURE__ */ o(ht, { className: "size-4 sm:size-5" }),
2036
- d.model && d.model.startsWith("gpt") && /* @__PURE__ */ o(gt, { className: "size-4 sm:size-5" })
2034
+ /* @__PURE__ */ o($, { component: "th", scope: "row", className: "text-gray-400", children: /* @__PURE__ */ y(q, { alignHorizontal: "center", children: [
2035
+ d.model && d.model.startsWith("claude") && /* @__PURE__ */ o(ht, { size: "size-4 sm:size-5" }),
2036
+ d.model && d.model.startsWith("gpt") && /* @__PURE__ */ o(gt, { size: "size-4 sm:size-5" })
2037
2037
  ] }) }),
2038
- /* @__PURE__ */ o(V, { className: "px-2", children: /* @__PURE__ */ y("div", { className: "flex justify-end gap-2", children: [
2038
+ /* @__PURE__ */ o($, { className: "px-2", children: /* @__PURE__ */ y("div", { className: "flex justify-end gap-2", children: [
2039
2039
  /* @__PURE__ */ o(
2040
2040
  j,
2041
2041
  {
@@ -2051,7 +2051,7 @@ const ee = "panel", ue = "messagebox", zo = ({
2051
2051
  w
2052
2052
  );
2053
2053
  },
2054
- children: /* @__PURE__ */ o(Er, { className: "h-3 w-3", monotone: !0 })
2054
+ children: /* @__PURE__ */ o(Er, { size: "size-3", monotone: !0 })
2055
2055
  }
2056
2056
  ),
2057
2057
  /* @__PURE__ */ o(
@@ -2066,15 +2066,15 @@ const ee = "panel", ue = "messagebox", zo = ({
2066
2066
  id: d.id,
2067
2067
  timestamp: d.timestamp,
2068
2068
  message: d.messages.length > 0 ? (w = d.messages[0]) == null ? void 0 : w.content : ""
2069
- }, g(!l);
2069
+ }, g(!c);
2070
2070
  },
2071
- children: /* @__PURE__ */ o("div", { className: "text-red-400", children: /* @__PURE__ */ o(Nr, { className: "h-3 w-3", monotone: !0 }) })
2071
+ children: /* @__PURE__ */ o("div", { className: "text-red-400", children: /* @__PURE__ */ o(Tr, { size: "size-3", monotone: !0 }) })
2072
2072
  }
2073
2073
  )
2074
2074
  ] }) })
2075
- ] }, `${T.HISTORY.TITLE}-${d.id}-${v}`) : null;
2075
+ ] }, `${N.HISTORY.TITLE}-${d.id}-${v}`) : null;
2076
2076
  }) }),
2077
- /* @__PURE__ */ o(lr, { children: /* @__PURE__ */ o(we, { children: /* @__PURE__ */ o(V, { colSpan: 4, children: /* @__PURE__ */ o("div", { children: he(
2077
+ /* @__PURE__ */ o(cr, { children: /* @__PURE__ */ o(we, { children: /* @__PURE__ */ o($, { colSpan: 4, children: /* @__PURE__ */ o("div", { children: he(
2078
2078
  `${e.data.length} chat`,
2079
2079
  e.data.length
2080
2080
  ) }) }) }) })
@@ -2093,7 +2093,7 @@ const ee = "panel", ue = "messagebox", zo = ({
2093
2093
  try {
2094
2094
  const n = await D({
2095
2095
  accessToken: r,
2096
- type: $.GET_CHATS,
2096
+ type: V.GET_CHATS,
2097
2097
  params: {
2098
2098
  userId: t,
2099
2099
  searchString: e,
@@ -2109,23 +2109,23 @@ const ee = "panel", ue = "messagebox", zo = ({
2109
2109
  }
2110
2110
  return [];
2111
2111
  }, Ko = ({ onOpenChange: e }) => {
2112
- const { isAuthenticated: t, getAccessToken: r, user: a } = W(), n = Z(null), i = Z(!1), { dispatch: s } = O(se), { state: l, dispatch: g } = O(Je), [, c] = le({
2112
+ const { isAuthenticated: t, getAccessToken: r, user: a } = W(), n = Z(null), i = Z(!1), { dispatch: s } = P(se), { state: c, dispatch: g } = P(Je), [, l] = ce({
2113
2113
  key: ie + Kt,
2114
- initialValue: l.searchString
2114
+ initialValue: c.searchString
2115
2115
  }), [u, p] = I({
2116
2116
  data: [],
2117
- sortedDirection: l.sortDirection
2117
+ sortedDirection: c.sortDirection
2118
2118
  }), b = async (d) => {
2119
- const v = await r(), N = await Ze({
2119
+ const v = await r(), T = await Ze({
2120
2120
  searchString: d,
2121
2121
  username: a == null ? void 0 : a.username,
2122
2122
  accessToken: v,
2123
- direction: l.sortDirection
2123
+ direction: c.sortDirection
2124
2124
  });
2125
2125
  p({
2126
- data: N,
2127
- sortedDirection: l.sortDirection
2128
- }), c(d), g({
2126
+ data: T,
2127
+ sortedDirection: c.sortDirection
2128
+ }), l(d), g({
2129
2129
  type: Wt,
2130
2130
  payload: { searchString: d }
2131
2131
  });
@@ -2138,49 +2138,50 @@ const ee = "panel", ue = "messagebox", zo = ({
2138
2138
  i.current || (async () => {
2139
2139
  i.current = !0;
2140
2140
  const d = await r(), v = await Ze({
2141
- searchString: l.searchString,
2141
+ searchString: c.searchString,
2142
2142
  username: a == null ? void 0 : a.username,
2143
2143
  accessToken: d,
2144
- direction: l.sortDirection
2144
+ direction: c.sortDirection
2145
2145
  });
2146
2146
  p({
2147
2147
  data: v,
2148
- sortedDirection: l.sortDirection
2148
+ sortedDirection: c.sortDirection
2149
2149
  });
2150
2150
  })();
2151
2151
  }), H(() => {
2152
- if (l.sortDirection !== u.sortedDirection) {
2153
- const d = [...u.data].sort((v, N) => {
2154
- if (l.sortedCell === "timestamp") {
2155
- const C = new Date(v[l.sortedCell]).getTime(), w = new Date(N[l.sortedCell]).getTime();
2156
- return l.sortDirection === U.ASC ? C - w : w - C;
2152
+ if (c.sortDirection !== u.sortedDirection) {
2153
+ const d = [...u.data].sort((v, T) => {
2154
+ if (c.sortedCell === "timestamp") {
2155
+ const C = new Date(v[c.sortedCell]).getTime(), w = new Date(T[c.sortedCell]).getTime();
2156
+ return c.sortDirection === U.ASC ? C - w : w - C;
2157
2157
  }
2158
2158
  return 0;
2159
2159
  });
2160
2160
  p({
2161
2161
  data: d,
2162
- sortedDirection: l.sortDirection
2162
+ sortedDirection: c.sortDirection
2163
2163
  });
2164
2164
  }
2165
- }, [u, l]), t ? u && u.data && /* @__PURE__ */ y(_, { children: [
2165
+ }, [u, c]), t ? u && u.data && /* @__PURE__ */ y(_, { children: [
2166
2166
  /* @__PURE__ */ o("form", { autoComplete: "off", onSubmit: m, children: /* @__PURE__ */ o(
2167
2167
  xe,
2168
2168
  {
2169
2169
  autoComplete: "off",
2170
2170
  autoCorrect: "off",
2171
2171
  ref: n,
2172
- defaultValue: l.searchString,
2172
+ defaultValue: c.searchString,
2173
2173
  focusMode: "light",
2174
2174
  mode: "dark",
2175
2175
  name: "Search",
2176
2176
  label: "Search",
2177
2177
  onChange: h,
2178
2178
  className: "mt-2 mb-2",
2179
- ...l.searchString && {
2179
+ ...c.searchString && {
2180
2180
  rightElement: /* @__PURE__ */ o(
2181
2181
  F,
2182
2182
  {
2183
- disabled: !l.searchString,
2183
+ type: "button",
2184
+ disabled: !c.searchString,
2184
2185
  mode: "light",
2185
2186
  focusMode: "light",
2186
2187
  noBorder: !0,
@@ -2210,13 +2211,13 @@ const ee = "panel", ue = "messagebox", zo = ({
2210
2211
  onOpenChange: t
2211
2212
  }) => /* @__PURE__ */ o(Y, { open: e, onOpenChange: t, title: qt, children: /* @__PURE__ */ o(Ko, { onOpenChange: t }) });
2212
2213
  /*!
2213
- @versini/ui-toggle v2.0.2
2214
+ @versini/ui-toggle v2.0.4
2214
2215
  © 2024 gizmette.com
2215
2216
  */
2216
2217
  try {
2217
2218
  window.__VERSINI_UI_TOGGLE__ || (window.__VERSINI_UI_TOGGLE__ = {
2218
- version: "2.0.2",
2219
- buildTime: "12/30/2024 12:27 PM EST",
2219
+ version: "2.0.4",
2220
+ buildTime: "12/30/2024 05:27 PM EST",
2220
2221
  homepage: "https://github.com/aversini/ui-components",
2221
2222
  license: "MIT"
2222
2223
  });
@@ -2299,51 +2300,51 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2299
2300
  name: n,
2300
2301
  mode: i = "system",
2301
2302
  focusMode: s = "system",
2302
- className: l,
2303
+ className: c,
2303
2304
  noBorder: g = !1
2304
2305
  }) => {
2305
- const c = ra({
2306
+ const l = ra({
2306
2307
  mode: i,
2307
2308
  focusMode: s,
2308
2309
  labelHidden: a,
2309
- className: l,
2310
+ className: c,
2310
2311
  noBorder: g
2311
2312
  }), u = (p) => {
2312
2313
  t == null || t(p.target.checked);
2313
2314
  };
2314
- return /* @__PURE__ */ y("label", { className: c.wrapper, children: [
2315
+ return /* @__PURE__ */ y("label", { className: l.wrapper, children: [
2315
2316
  /* @__PURE__ */ o(
2316
2317
  "input",
2317
2318
  {
2318
2319
  name: n,
2319
2320
  checked: e,
2320
2321
  type: "checkbox",
2321
- className: c.input,
2322
+ className: l.input,
2322
2323
  onChange: u
2323
2324
  }
2324
2325
  ),
2325
- /* @__PURE__ */ o("div", { className: c.toggle }),
2326
- /* @__PURE__ */ o("span", { className: c.label, children: r })
2326
+ /* @__PURE__ */ o("div", { className: l.toggle }),
2327
+ /* @__PURE__ */ o("span", { className: l.label, children: r })
2327
2328
  ] });
2328
2329
  }, oa = ({
2329
2330
  open: e,
2330
2331
  onOpenChange: t
2331
2332
  }) => {
2332
- const { dispatch: r } = O(se), { getAccessToken: a, user: n } = W(), [i, s] = I({
2333
+ const { dispatch: r } = P(se), { getAccessToken: a, user: n } = W(), [i, s] = I({
2333
2334
  loaded: !1,
2334
2335
  instructions: "",
2335
2336
  loadingLocation: !1,
2336
2337
  location: "",
2337
2338
  engine: te
2338
- }), [l, g] = le({
2339
+ }), [c, g] = ce({
2339
2340
  key: ie + tt,
2340
2341
  initialValue: !1
2341
- }), c = async (h) => {
2342
+ }), l = async (h) => {
2342
2343
  h.preventDefault();
2343
2344
  try {
2344
2345
  await D({
2345
2346
  accessToken: await a(),
2346
- type: $.SET_USER_PREFERENCES,
2347
+ type: V.SET_USER_PREFERENCES,
2347
2348
  params: {
2348
2349
  user: n == null ? void 0 : n.username,
2349
2350
  instructions: i.instructions,
@@ -2367,13 +2368,13 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2367
2368
  try {
2368
2369
  const h = Date.now(), m = await Qt(), d = await D({
2369
2370
  accessToken: await a(),
2370
- type: $.GET_LOCATION,
2371
+ type: V.GET_LOCATION,
2371
2372
  params: {
2372
2373
  latitude: m.latitude,
2373
2374
  longitude: m.longitude
2374
2375
  }
2375
- }), N = Date.now() - h;
2376
- if (N < 2e3 && await new Promise((C) => setTimeout(C, 2e3 - N)), d.status === 200) {
2376
+ }), T = Date.now() - h;
2377
+ if (T < 2e3 && await new Promise((C) => setTimeout(C, 2e3 - T)), d.status === 200) {
2377
2378
  const { city: C, state: w, country: S, displayName: A } = d.data, M = C && w && S ? `${C}, ${w}, ${S}` : A;
2378
2379
  s((R) => ({
2379
2380
  ...R,
@@ -2393,12 +2394,12 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2393
2394
  }, p = (h) => {
2394
2395
  s((m) => ({
2395
2396
  ...m,
2396
- engine: h ? Ne : me
2397
+ engine: h ? Te : me
2397
2398
  }));
2398
2399
  }, b = (h) => {
2399
2400
  s((m) => ({
2400
2401
  ...m,
2401
- engine: h ? me : Ne
2402
+ engine: h ? me : Te
2402
2403
  }));
2403
2404
  };
2404
2405
  return H(() => {
@@ -2416,7 +2417,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2416
2417
  try {
2417
2418
  const h = await D({
2418
2419
  accessToken: await a(),
2419
- type: $.GET_USER_PREFERENCES,
2420
+ type: V.GET_USER_PREFERENCES,
2420
2421
  params: {
2421
2422
  user: n.username
2422
2423
  }
@@ -2444,7 +2445,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2444
2445
  alignHorizontal: "flex-end",
2445
2446
  className: "pb-8 sm:pb-0",
2446
2447
  children: [
2447
- /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o(
2448
+ /* @__PURE__ */ o(z, { children: /* @__PURE__ */ o(
2448
2449
  F,
2449
2450
  {
2450
2451
  mode: "dark",
@@ -2456,14 +2457,14 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2456
2457
  children: "Cancel"
2457
2458
  }
2458
2459
  ) }),
2459
- /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o(
2460
+ /* @__PURE__ */ o(z, { children: /* @__PURE__ */ o(
2460
2461
  F,
2461
2462
  {
2462
2463
  mode: "dark",
2463
2464
  variant: "danger",
2464
2465
  focusMode: "light",
2465
2466
  onClick: async (h) => {
2466
- t(!1), await c(h);
2467
+ t(!1), await l(h);
2467
2468
  },
2468
2469
  children: "Save"
2469
2470
  }
@@ -2473,7 +2474,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2473
2474
  ),
2474
2475
  children: /* @__PURE__ */ y(_, { children: [
2475
2476
  /* @__PURE__ */ y(
2476
- P,
2477
+ L,
2477
2478
  {
2478
2479
  header: "AI Engine",
2479
2480
  className: "prose-dark dark:prose-lighter",
@@ -2486,7 +2487,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2486
2487
  label: "OpenAI",
2487
2488
  name: "OpenAI",
2488
2489
  onChange: p,
2489
- checked: i.engine === Ne
2490
+ checked: i.engine === Te
2490
2491
  }
2491
2492
  ),
2492
2493
  /* @__PURE__ */ o(
@@ -2509,7 +2510,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2509
2510
  label: "Show Quick Engine Toggle",
2510
2511
  name: "show-toggle-engine-menu",
2511
2512
  onChange: g,
2512
- checked: l
2513
+ checked: c
2513
2514
  }
2514
2515
  ),
2515
2516
  /* @__PURE__ */ o("p", { className: "text-xs", children: "This option introduces a new menu on the left side of the screen, enabling you to quickly switch between engines." })
@@ -2517,7 +2518,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2517
2518
  }
2518
2519
  ),
2519
2520
  /* @__PURE__ */ y(
2520
- P,
2521
+ L,
2521
2522
  {
2522
2523
  header: "Custom Instructions",
2523
2524
  className: "prose-dark dark:prose-lighter mt-4",
@@ -2551,7 +2552,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2551
2552
  }
2552
2553
  ),
2553
2554
  /* @__PURE__ */ y(
2554
- P,
2555
+ L,
2555
2556
  {
2556
2557
  header: "Location",
2557
2558
  className: "prose-dark dark:prose-lighter mt-4",
@@ -2595,7 +2596,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2595
2596
  open: e,
2596
2597
  onOpenChange: t
2597
2598
  }) => {
2598
- const { state: r, dispatch: a } = O(Xt), { getAccessToken: n, user: i } = W(), [s, l] = I({
2599
+ const { state: r, dispatch: a } = P(Xt), { getAccessToken: n, user: i } = W(), [s, c] = I({
2599
2600
  tags: [...r.tags]
2600
2601
  }), g = ({
2601
2602
  slot: u,
@@ -2603,27 +2604,27 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2603
2604
  label: b,
2604
2605
  content: h
2605
2606
  }) => {
2606
- l((m) => {
2607
+ c((m) => {
2607
2608
  const d = m.tags, v = {
2608
2609
  slot: u,
2609
2610
  label: b,
2610
2611
  content: h,
2611
2612
  enabled: p
2612
- }, N = d.findIndex((C) => C.slot === u);
2613
- return N === -1 ? {
2613
+ }, T = d.findIndex((C) => C.slot === u);
2614
+ return T === -1 ? {
2614
2615
  ...m,
2615
2616
  tags: [...d, { ...v, slot: u }]
2616
- } : (d[N] = v, {
2617
+ } : (d[T] = v, {
2617
2618
  ...m,
2618
2619
  tags: [...d]
2619
2620
  });
2620
2621
  });
2621
- }, c = async (u) => {
2622
+ }, l = async (u) => {
2622
2623
  u.preventDefault();
2623
2624
  try {
2624
2625
  await D({
2625
2626
  accessToken: await n(),
2626
- type: $.SET_USER_PREFERENCES,
2627
+ type: V.SET_USER_PREFERENCES,
2627
2628
  params: {
2628
2629
  user: i == null ? void 0 : i.username,
2629
2630
  tags: s.tags
@@ -2650,7 +2651,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2650
2651
  alignHorizontal: "flex-end",
2651
2652
  className: "pb-8 sm:pb-0",
2652
2653
  children: [
2653
- /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o(
2654
+ /* @__PURE__ */ o(z, { children: /* @__PURE__ */ o(
2654
2655
  F,
2655
2656
  {
2656
2657
  mode: "dark",
@@ -2662,14 +2663,14 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2662
2663
  children: "Cancel"
2663
2664
  }
2664
2665
  ) }),
2665
- /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o(
2666
+ /* @__PURE__ */ o(z, { children: /* @__PURE__ */ o(
2666
2667
  F,
2667
2668
  {
2668
2669
  mode: "dark",
2669
2670
  variant: "danger",
2670
2671
  focusMode: "light",
2671
2672
  onClick: async (u) => {
2672
- t(!1), await c(u);
2673
+ t(!1), await l(u);
2673
2674
  },
2674
2675
  children: "Save"
2675
2676
  }
@@ -2680,13 +2681,13 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2680
2681
  children: [
2681
2682
  /* @__PURE__ */ o("p", { children: Jt }),
2682
2683
  s.tags && s.tags.map((u) => /* @__PURE__ */ y(
2683
- P,
2684
+ L,
2684
2685
  {
2685
2686
  header: `Tag ${u.slot + 1}`,
2686
2687
  className: "prose-dark dark:prose-lighter mb-2",
2687
2688
  children: [
2688
2689
  /* @__PURE__ */ y(q, { className: "mt-8 mb-6", columnGap: 2, rowGap: 6, children: [
2689
- /* @__PURE__ */ o(L, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ o(
2690
+ /* @__PURE__ */ o(z, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ o(
2690
2691
  xe,
2691
2692
  {
2692
2693
  label: "Label",
@@ -2702,7 +2703,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2702
2703
  }
2703
2704
  }
2704
2705
  ) }),
2705
- /* @__PURE__ */ o(L, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ o(
2706
+ /* @__PURE__ */ o(z, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ o(
2706
2707
  xe,
2707
2708
  {
2708
2709
  label: "Content",
@@ -2745,41 +2746,41 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2745
2746
  }
2746
2747
  );
2747
2748
  }, na = () => {
2748
- const { isAuthenticated: e, user: t, registeringForPasskey: r, authenticationType: a } = W(), [n, i] = le({
2749
+ const { isAuthenticated: e, user: t, registeringForPasskey: r, authenticationType: a } = W(), [n, i] = ce({
2749
2750
  key: ie + tr,
2750
2751
  initialValue: !1
2751
- }), [s, l] = I(!1), [g, c] = I(!1), u = ae(), p = (t == null ? void 0 : t.username) || "", b = (d) => {
2752
+ }), [s, c] = I(!1), [g, l] = I(!1), u = ae(), p = (t == null ? void 0 : t.username) || "", b = (d) => {
2752
2753
  i(d);
2753
2754
  }, h = () => {
2754
- l(!s);
2755
+ c(!s);
2755
2756
  }, m = () => {
2756
- c(!g);
2757
+ l(!g);
2757
2758
  };
2758
2759
  return e && p ? /* @__PURE__ */ y(_, { children: [
2759
2760
  s && /* @__PURE__ */ o(
2760
2761
  oa,
2761
2762
  {
2762
2763
  open: s,
2763
- onOpenChange: l
2764
+ onOpenChange: c
2764
2765
  }
2765
2766
  ),
2766
- g && /* @__PURE__ */ o(aa, { open: g, onOpenChange: c }),
2767
+ g && /* @__PURE__ */ o(aa, { open: g, onOpenChange: l }),
2767
2768
  /* @__PURE__ */ y(
2768
- P,
2769
+ L,
2769
2770
  {
2770
- header: T.PREFERENCES.TITLE,
2771
+ header: N.PREFERENCES.TITLE,
2771
2772
  className: "prose-dark dark:prose-lighter",
2772
2773
  children: [
2773
2774
  oe(u, {
2774
- [T.PREFERENCES.NAME]: p,
2775
- [T.PREFERENCES.EMAIL]: (t == null ? void 0 : t.email) || "",
2776
- [T.PREFERENCES.ENGINE_DETAILS]: /* @__PURE__ */ o(
2775
+ [N.PREFERENCES.NAME]: p,
2776
+ [N.PREFERENCES.EMAIL]: (t == null ? void 0 : t.email) || "",
2777
+ [N.PREFERENCES.ENGINE_DETAILS]: /* @__PURE__ */ o(
2777
2778
  re,
2778
2779
  {
2779
2780
  noBorder: !0,
2780
2781
  labelHidden: !0,
2781
- label: T.PREFERENCES.ENGINE_DETAILS,
2782
- name: T.PREFERENCES.ENGINE_DETAILS,
2782
+ label: N.PREFERENCES.ENGINE_DETAILS,
2783
+ name: N.PREFERENCES.ENGINE_DETAILS,
2783
2784
  onChange: b,
2784
2785
  checked: n
2785
2786
  }
@@ -2792,7 +2793,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2792
2793
  size: "small",
2793
2794
  onClick: h,
2794
2795
  labelLeft: "Engine Fine Tuning",
2795
- children: /* @__PURE__ */ o(Ge, { className: "size-3", monotone: !0 })
2796
+ children: /* @__PURE__ */ o(Ge, { size: "size-3", monotone: !0 })
2796
2797
  }
2797
2798
  ),
2798
2799
  /* @__PURE__ */ o(
@@ -2802,30 +2803,30 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2802
2803
  size: "small",
2803
2804
  onClick: m,
2804
2805
  labelLeft: "Tags",
2805
- children: /* @__PURE__ */ o(Ge, { className: "size-3", monotone: !0 })
2806
+ children: /* @__PURE__ */ o(Ge, { size: "size-3", monotone: !0 })
2806
2807
  }
2807
2808
  )
2808
2809
  ]
2809
2810
  }
2810
2811
  ),
2811
2812
  a !== rr.PASSKEY && /* @__PURE__ */ y(
2812
- P,
2813
+ L,
2813
2814
  {
2814
2815
  className: "prose-dark dark:prose-lighter mt-4",
2815
2816
  header: /* @__PURE__ */ o("h2", { className: "m-0", children: /* @__PURE__ */ y(q, { columnGap: 3, alignVertical: "center", children: [
2816
- /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o(Ve, { className: "size-8" }) }),
2817
- /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o("div", { children: T.PREFERENCES.PASSKEY_TITLE }) })
2817
+ /* @__PURE__ */ o(z, { children: /* @__PURE__ */ o($e, { size: "size-8" }) }),
2818
+ /* @__PURE__ */ o(z, { children: /* @__PURE__ */ o("div", { children: N.PREFERENCES.PASSKEY_TITLE }) })
2818
2819
  ] }) }),
2819
2820
  children: [
2820
- /* @__PURE__ */ o("p", { children: T.PREFERENCES.PASSKEY_INSTRUCTIONS }),
2821
+ /* @__PURE__ */ o("p", { children: N.PREFERENCES.PASSKEY_INSTRUCTIONS }),
2821
2822
  /* @__PURE__ */ o(
2822
2823
  j,
2823
2824
  {
2824
2825
  size: "small",
2825
2826
  className: "mt-2",
2826
2827
  onClick: r,
2827
- labelLeft: T.PREFERENCES.PASSKEY_BUTTON,
2828
- children: /* @__PURE__ */ o(Ve, { className: "size-5", monotone: !0 })
2828
+ labelLeft: N.PREFERENCES.PASSKEY_BUTTON,
2829
+ children: /* @__PURE__ */ o($e, { size: "size-5", monotone: !0 })
2829
2830
  }
2830
2831
  )
2831
2832
  ]
@@ -2836,15 +2837,15 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2836
2837
  open: e,
2837
2838
  onOpenChange: t
2838
2839
  }) => /* @__PURE__ */ o(Y, { open: e, onOpenChange: t, title: or, children: /* @__PURE__ */ o(na, {}) }), ga = () => {
2839
- const { state: e, dispatch: t, serverStats: r } = O(se), [a, n] = I((e == null ? void 0 : e.engine) || te), [i, s] = I(!1), [l, g] = I(!1), [c, u] = I(!1), [p, b] = I(!1), [h, m] = I(!1), [d] = le({
2840
+ const { state: e, dispatch: t, serverStats: r } = P(se), [a, n] = I((e == null ? void 0 : e.engine) || te), [i, s] = I(!1), [c, g] = I(!1), [l, u] = I(!1), [p, b] = I(!1), [h, m] = I(!1), [d] = ce({
2840
2841
  key: ie + tt,
2841
2842
  initialValue: !1
2842
- }), { logout: v, getAccessToken: N, user: C } = W(), w = () => {
2843
+ }), { logout: v, getAccessToken: T, user: C } = W(), w = () => {
2843
2844
  s(!i);
2844
2845
  }, S = () => {
2845
- g(!l);
2846
+ g(!c);
2846
2847
  }, A = () => {
2847
- u(!c);
2848
+ u(!l);
2848
2849
  }, M = () => {
2849
2850
  b(!p);
2850
2851
  }, R = () => {
@@ -2854,7 +2855,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2854
2855
  e && e.engine && e.engine !== a && n(e.engine);
2855
2856
  }, [e, a]), /* @__PURE__ */ y(_, { children: [
2856
2857
  /* @__PURE__ */ o(
2857
- Ot,
2858
+ Pt,
2858
2859
  {
2859
2860
  showConfirmation: h,
2860
2861
  setShowConfirmation: m,
@@ -2868,9 +2869,9 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2868
2869
  }
2869
2870
  ),
2870
2871
  /* @__PURE__ */ o(sa, { open: i, onOpenChange: s }),
2871
- /* @__PURE__ */ o(Go, { open: l, onOpenChange: g }),
2872
- /* @__PURE__ */ o(Wo, { open: c, onOpenChange: u }),
2873
- /* @__PURE__ */ o($o, { open: p, onOpenChange: b }),
2872
+ /* @__PURE__ */ o(Go, { open: c, onOpenChange: g }),
2873
+ /* @__PURE__ */ o(Wo, { open: l, onOpenChange: u }),
2874
+ /* @__PURE__ */ o(Vo, { open: p, onOpenChange: b }),
2874
2875
  /* @__PURE__ */ y("div", { className: "relative", children: [
2875
2876
  d && r && /* @__PURE__ */ o("div", { className: "absolute bottom-[-28px] left-[-7px]", children: /* @__PURE__ */ o(
2876
2877
  Ie,
@@ -2890,8 +2891,8 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2890
2891
  if (x)
2891
2892
  try {
2892
2893
  await D({
2893
- accessToken: await N(),
2894
- type: $.SET_USER_PREFERENCES,
2894
+ accessToken: await T(),
2895
+ type: V.SET_USER_PREFERENCES,
2895
2896
  params: {
2896
2897
  user: C == null ? void 0 : C.username,
2897
2898
  engine: x
@@ -2949,7 +2950,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2949
2950
  {
2950
2951
  label: "About",
2951
2952
  onClick: M,
2952
- icon: /* @__PURE__ */ o(Tr, {})
2953
+ icon: /* @__PURE__ */ o(Nr, {})
2953
2954
  }
2954
2955
  ),
2955
2956
  e && e.id && !e.isComponent && /* @__PURE__ */ y(_, { children: [