@versini/sassysaint 5.4.15 → 5.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  import { jsx as o, jsxs as y, Fragment as _ } from "react/jsx-runtime";
2
- import { g as O, R as L, CARDS as x, renderDataAsList as oe, pluralize as he, 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, LOCAL_STORAGE_PREFIX as se, LOCAL_STORAGE_SORT as Ut, O as j, ACTION_RESET as Je, ACTION_RESTORE as jt, ACTION_SORT as Ve, LOCAL_STORAGE_SEARCH as Kt, ye as Ne, ACTION_SEARCH as Wt, debounce as Yt, HISTORY_TITLE as qt, LOCAL_STORAGE_ENGINE_TOGGLE as et, ENGINE_OPENAI as Te, ENGINE_ANTHROPIC as me, APP_NAME as Zt, ACTION_ENGINE as tt, getCurrentGeoLocation as Qt, TAGS_DESCRIPTION as Xt, ACTION_SET_TAGS as Jt, LOCAL_STORAGE_CHAT_DETAILS as er, M as tr, z as $e, PROFILE_TITLE as rr, LOG_OUT as Fe } from "./index.D8QVMbN9.js";
3
- import { AppContext as ie, serviceCall as D, SERVICE_TYPES as V, HistoryContext as rt, E as ce, ce as or, se as ar, he as we, be as nr, oe as $, ge as sr, ne as ir, f as U, Le as He, TagsContext as cr, h as Ge } from "./index.Dn9p043U.js";
2
+ import { g as M, R as P, CARDS as x, renderDataAsList as oe, pluralize as he, 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 L, C as F, LOCAL_STORAGE_PREFIX as se, LOCAL_STORAGE_SORT as Ut, O as j, ACTION_RESET as Je, ACTION_RESTORE as jt, ACTION_SORT as Ve, LOCAL_STORAGE_SEARCH as Kt, ye as Ne, ACTION_SEARCH as Wt, debounce as Yt, HISTORY_TITLE as qt, LOCAL_STORAGE_ENGINE_TOGGLE as et, ENGINE_OPENAI as we, ENGINE_ANTHROPIC as me, APP_NAME as Zt, ACTION_ENGINE as tt, getCurrentGeoLocation as Qt, TAGS_DESCRIPTION as Xt, ACTION_SET_TAGS as Jt, LOCAL_STORAGE_CHAT_DETAILS as er, M as tr, z as $e, PROFILE_TITLE as rr, LOG_OUT as Fe } from "./index.UHRCFkiB.js";
3
+ import { AppContext as ie, serviceCall as D, SERVICE_TYPES as V, HistoryContext as rt, E as ce, ce as or, se as ar, he as Te, be as nr, oe as $, ge as sr, ne as ir, f as U, Fe as He, TagsContext as cr } from "./index.CqSoo2Fx.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 P, useEffect as H } from "react";
5
+ import E, { useId as Ae, forwardRef as ot, useState as I, useRef as Z, useContext as B, useEffect as H } from "react";
6
6
  import k from "clsx";
7
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 = ({
@@ -12,7 +12,7 @@ const ht = ({
12
12
  monotone: a,
13
13
  ...n
14
14
  }) => /* @__PURE__ */ o(
15
- O,
15
+ M,
16
16
  {
17
17
  defaultViewBox: "0 0 256 176",
18
18
  size: "size-5",
@@ -29,7 +29,7 @@ const ht = ({
29
29
  monotone: a,
30
30
  ...n
31
31
  }) => /* @__PURE__ */ y(
32
- O,
32
+ M,
33
33
  {
34
34
  defaultViewBox: "0 0 512 512",
35
35
  size: "size-5",
@@ -55,7 +55,7 @@ const ht = ({
55
55
  monotone: a,
56
56
  ...n
57
57
  }) => /* @__PURE__ */ y(
58
- O,
58
+ M,
59
59
  {
60
60
  defaultViewBox: "0 0 448 512",
61
61
  size: "size-5",
@@ -74,14 +74,14 @@ 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
- ), Tr = ({
77
+ ), wr = ({
78
78
  className: e,
79
79
  viewBox: t,
80
80
  title: r,
81
81
  monotone: a,
82
82
  ...n
83
83
  }) => /* @__PURE__ */ y(
84
- O,
84
+ M,
85
85
  {
86
86
  defaultViewBox: "0 0 448 512",
87
87
  size: "size-5",
@@ -100,14 +100,40 @@ const ht = ({
100
100
  /* @__PURE__ */ o("path", { d: "M163.8 0c-12.1 0-23.2 6.8-28.6 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8z" })
101
101
  ]
102
102
  }
103
- ), wr = ({
103
+ ), Ge = ({
104
104
  className: e,
105
105
  viewBox: t,
106
106
  title: r,
107
107
  monotone: a,
108
108
  ...n
109
109
  }) => /* @__PURE__ */ y(
110
- O,
110
+ M,
111
+ {
112
+ defaultViewBox: "0 0 512 512",
113
+ size: "size-5",
114
+ viewBox: t,
115
+ className: e,
116
+ title: r || "Edit",
117
+ ...n,
118
+ children: [
119
+ /* @__PURE__ */ o(
120
+ "path",
121
+ {
122
+ opacity: a ? "1" : "0.4",
123
+ 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 32V416c0 17.7 14.3 32 32 32H352c17.7 0 32-14.3 32-32V320c0-17.7 14.3-32 32-32s32 14.3 32 32v96c0 53-43 96-96 96H96c-53 0-96-43-96-96V160z"
124
+ }
125
+ ),
126
+ /* @__PURE__ */ o("path", { d: "M392.4 21.7L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0zM339.7 74.3L172.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.5L437.7 172.3 339.7 74.3z" })
127
+ ]
128
+ }
129
+ ), Tr = ({
130
+ className: e,
131
+ viewBox: t,
132
+ title: r,
133
+ monotone: a,
134
+ ...n
135
+ }) => /* @__PURE__ */ y(
136
+ M,
111
137
  {
112
138
  defaultViewBox: "0 0 512 512",
113
139
  size: "size-5",
@@ -133,7 +159,7 @@ const ht = ({
133
159
  monotone: a,
134
160
  ...n
135
161
  }) => /* @__PURE__ */ y(
136
- O,
162
+ M,
137
163
  {
138
164
  defaultViewBox: "0 0 512 512",
139
165
  size: "size-5",
@@ -159,7 +185,7 @@ const ht = ({
159
185
  monotone: a,
160
186
  ...n
161
187
  }) => /* @__PURE__ */ o(
162
- O,
188
+ M,
163
189
  {
164
190
  defaultViewBox: "0 0 24 24",
165
191
  size: "size-5",
@@ -182,7 +208,7 @@ const ht = ({
182
208
  monotone: a,
183
209
  ...n
184
210
  }) => /* @__PURE__ */ y(
185
- O,
211
+ M,
186
212
  {
187
213
  defaultViewBox: "0 0 576 512",
188
214
  size: "size-5",
@@ -208,7 +234,7 @@ const ht = ({
208
234
  monotone: a,
209
235
  ...n
210
236
  }) => /* @__PURE__ */ y(
211
- O,
237
+ M,
212
238
  {
213
239
  defaultViewBox: "0 0 512 512",
214
240
  size: "size-5",
@@ -234,7 +260,7 @@ const ht = ({
234
260
  monotone: a,
235
261
  ...n
236
262
  }) => /* @__PURE__ */ o(
237
- O,
263
+ M,
238
264
  {
239
265
  defaultViewBox: "0 0 448 512",
240
266
  size: "size-5",
@@ -279,8 +305,8 @@ const Ee = f.createContext({
279
305
  focusMode: s = "system",
280
306
  ...c
281
307
  }, g) => {
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
- nodeId: w,
308
+ const [l, u] = I(!1), [p, b] = I(!1), [h, m] = I(null), d = Z([]), v = Z([]), w = B(Ee), C = at(), T = lr(), S = nt(), { floatingStyles: A, refs: z, context: R } = st({
309
+ nodeId: T,
284
310
  open: l,
285
311
  onOpenChange: (J) => {
286
312
  u(J), n == null || n(J);
@@ -303,20 +329,20 @@ const Ee = f.createContext({
303
329
  listRef: v,
304
330
  onMatch: l ? m : void 0,
305
331
  activeIndex: h
306
- }), { getReferenceProps: ke, getFloatingProps: Ce, getItemProps: B } = dt([N, le, de, X, ye]), De = Ue(e) === "Button" || Ue(e) === "ButtonIcon", Ot = De ? {
332
+ }), { getReferenceProps: ke, getFloatingProps: Ce, getItemProps: O } = dt([N, le, de, X, ye]), De = Ue(e) === "Button" || Ue(e) === "ButtonIcon", Bt = De ? {
307
333
  noInternalClick: De,
308
334
  focusMode: s,
309
335
  mode: i
310
- } : {}, Bt = E.cloneElement(
336
+ } : {}, Ot = E.cloneElement(
311
337
  e,
312
338
  {
313
- ...Ot,
339
+ ...Bt,
314
340
  "aria-label": r,
315
341
  "data-open": l ? "" : void 0,
316
342
  "data-focus-inside": p ? "" : void 0,
317
- ref: Me([M.setReference, S.ref, g]),
343
+ ref: Me([z.setReference, S.ref, g]),
318
344
  ...ke(
319
- T.getItemProps({
345
+ w.getItemProps({
320
346
  ...c
321
347
  })
322
348
  )
@@ -332,16 +358,16 @@ const Ee = f.createContext({
332
358
  C.events.off("click", J);
333
359
  };
334
360
  }, [C, n]), H(() => {
335
- l && C && C.events.emit("menuopen", { nodeId: w });
336
- }, [C, l, w]), /* @__PURE__ */ y(pr, { id: w, children: [
337
- Bt,
361
+ l && C && C.events.emit("menuopen", { nodeId: T });
362
+ }, [C, l, T]), /* @__PURE__ */ y(pr, { id: T, children: [
363
+ Ot,
338
364
  /* @__PURE__ */ o(
339
365
  Ee.Provider,
340
366
  {
341
367
  value: {
342
368
  activeIndex: h,
343
369
  setActiveIndex: m,
344
- getItemProps: B,
370
+ getItemProps: O,
345
371
  setHasFocusInside: b,
346
372
  isOpen: l
347
373
  },
@@ -355,7 +381,7 @@ const Ee = f.createContext({
355
381
  children: /* @__PURE__ */ o(
356
382
  "div",
357
383
  {
358
- ref: M.setFloating,
384
+ ref: z.setFloating,
359
385
  className: "rounded-md bg-surface-light p-4 shadow-sm shadow-border-dark outline-none sm:p-2",
360
386
  style: A,
361
387
  ...Ce(),
@@ -461,8 +487,8 @@ function ze(e, t = []) {
461
487
  r = [...r, s];
462
488
  const l = (p) => {
463
489
  var b;
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 });
490
+ const { scope: h, children: m, ...d } = p, v = ((b = h == null ? void 0 : h[e]) == null ? void 0 : b[g]) || c, w = f.useMemo(() => d, Object.values(d));
491
+ return /* @__PURE__ */ o(v.Provider, { value: w, children: m });
466
492
  };
467
493
  l.displayName = i + "Provider";
468
494
  function u(p, b) {
@@ -540,7 +566,7 @@ ge.displayName = "Slot";
540
566
  var _e = f.forwardRef((e, t) => {
541
567
  const { children: r, ...a } = e;
542
568
  if (f.isValidElement(r)) {
543
- const n = Or(r);
569
+ const n = Br(r);
544
570
  return f.cloneElement(r, {
545
571
  ...Pr(a, r.props),
546
572
  // @ts-ignore
@@ -564,12 +590,12 @@ function Pr(e, t) {
564
590
  }
565
591
  return { ...e, ...r };
566
592
  }
567
- function Or(e) {
593
+ function Br(e) {
568
594
  var t, r;
569
595
  let a = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, n = a && "isReactWarning" in a && a.isReactWarning;
570
596
  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
597
  }
572
- var Br = [
598
+ var Or = [
573
599
  "a",
574
600
  "button",
575
601
  "div",
@@ -586,7 +612,7 @@ var Br = [
586
612
  "span",
587
613
  "svg",
588
614
  "ul"
589
- ], ne = Br.reduce((e, t) => {
615
+ ], ne = Or.reduce((e, t) => {
590
616
  const r = f.forwardRef((a, n) => {
591
617
  const { asChild: i, ...s } = a, c = i ? ge : t;
592
618
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ o(c, { ...s, ref: n });
@@ -604,21 +630,21 @@ function Dr(e) {
604
630
  t,
605
631
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
606
632
  ), s = (h) => {
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 });
633
+ const { scope: m, children: d } = h, v = E.useRef(null), w = E.useRef(/* @__PURE__ */ new Map()).current;
634
+ return /* @__PURE__ */ o(n, { scope: m, itemMap: w, collectionRef: v, children: d });
609
635
  };
610
636
  s.displayName = t;
611
637
  const c = e + "CollectionSlot", g = E.forwardRef(
612
638
  (h, m) => {
613
- const { scope: d, children: v } = h, T = i(c, d), C = Se(m, T.collectionRef);
639
+ const { scope: d, children: v } = h, w = i(c, d), C = Se(m, w.collectionRef);
614
640
  return /* @__PURE__ */ o(ge, { ref: C, children: v });
615
641
  }
616
642
  );
617
643
  g.displayName = c;
618
644
  const l = e + "CollectionItemSlot", u = "data-radix-collection-item", p = E.forwardRef(
619
645
  (h, m) => {
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 });
646
+ const { scope: d, children: v, ...w } = h, C = E.useRef(null), T = Se(m, C), S = i(l, d);
647
+ return E.useEffect(() => (S.itemMap.set(C, { ref: C, ...w }), () => void S.itemMap.delete(C))), /* @__PURE__ */ o(ge, { [u]: "", ref: T, children: v });
622
648
  }
623
649
  );
624
650
  p.displayName = l;
@@ -629,7 +655,7 @@ function Dr(e) {
629
655
  if (!d) return [];
630
656
  const v = Array.from(d.querySelectorAll(`[${u}]`));
631
657
  return Array.from(m.itemMap.values()).sort(
632
- (T, C) => v.indexOf(T.ref.current) - v.indexOf(C.ref.current)
658
+ (w, C) => v.indexOf(w.ref.current) - v.indexOf(C.ref.current)
633
659
  );
634
660
  }, [m.collectionRef, m.itemMap]);
635
661
  }
@@ -712,12 +738,12 @@ var Zr = f.forwardRef((e, t) => {
712
738
  prop: s,
713
739
  defaultProp: c,
714
740
  onChange: g
715
- }), [T, C] = f.useState(!1), w = Le(l), S = vt(r), A = f.useRef(!1), [M, R] = f.useState(0);
741
+ }), [w, C] = f.useState(!1), T = Le(l), S = vt(r), A = f.useRef(!1), [z, R] = f.useState(0);
716
742
  return f.useEffect(() => {
717
743
  const N = b.current;
718
744
  if (N)
719
- return N.addEventListener(xe, w), () => N.removeEventListener(xe, w);
720
- }, [w]), /* @__PURE__ */ o(
745
+ return N.addEventListener(xe, T), () => N.removeEventListener(xe, T);
746
+ }, [T]), /* @__PURE__ */ o(
721
747
  Yr,
722
748
  {
723
749
  scope: r,
@@ -741,7 +767,7 @@ var Zr = f.forwardRef((e, t) => {
741
767
  children: /* @__PURE__ */ o(
742
768
  ne.div,
743
769
  {
744
- tabIndex: T || M === 0 ? -1 : 0,
770
+ tabIndex: w || z === 0 ? -1 : 0,
745
771
  "data-orientation": a,
746
772
  ...p,
747
773
  ref: h,
@@ -751,13 +777,13 @@ var Zr = f.forwardRef((e, t) => {
751
777
  }),
752
778
  onFocus: K(e.onFocus, (N) => {
753
779
  const le = !A.current;
754
- if (N.target === N.currentTarget && le && !T) {
780
+ if (N.target === N.currentTarget && le && !w) {
755
781
  const de = new CustomEvent(xe, jr);
756
782
  if (N.currentTarget.dispatchEvent(de), !de.defaultPrevented) {
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(
783
+ const X = S().filter((O) => O.focusable), ye = X.find((O) => O.active), ke = X.find((O) => O.id === d), Ce = [ye, ke, ...X].filter(
758
784
  Boolean
759
- ).map((B) => B.ref.current);
760
- wt(Ce, u);
785
+ ).map((O) => O.ref.current);
786
+ Tt(Ce, u);
761
787
  }
762
788
  }
763
789
  A.current = !1;
@@ -767,7 +793,7 @@ var Zr = f.forwardRef((e, t) => {
767
793
  )
768
794
  }
769
795
  );
770
- }), Ct = "RovingFocusGroupItem", Tt = f.forwardRef(
796
+ }), Ct = "RovingFocusGroupItem", wt = f.forwardRef(
771
797
  (e, t) => {
772
798
  const {
773
799
  __scopeRovingFocusGroup: r,
@@ -807,14 +833,14 @@ var Zr = f.forwardRef((e, t) => {
807
833
  if (d !== void 0) {
808
834
  if (m.metaKey || m.ctrlKey || m.altKey || m.shiftKey) return;
809
835
  m.preventDefault();
810
- let v = p().filter((T) => T.focusable).map((T) => T.ref.current);
836
+ let v = p().filter((w) => w.focusable).map((w) => w.ref.current);
811
837
  if (d === "last") v.reverse();
812
838
  else if (d === "prev" || d === "next") {
813
839
  d === "prev" && v.reverse();
814
- const T = v.indexOf(m.currentTarget);
815
- v = l.loop ? eo(v, T + 1) : v.slice(T + 1);
840
+ const w = v.indexOf(m.currentTarget);
841
+ v = l.loop ? eo(v, w + 1) : v.slice(w + 1);
816
842
  }
817
- setTimeout(() => wt(v));
843
+ setTimeout(() => Tt(v));
818
844
  }
819
845
  })
820
846
  }
@@ -823,7 +849,7 @@ var Zr = f.forwardRef((e, t) => {
823
849
  );
824
850
  }
825
851
  );
826
- Tt.displayName = Ct;
852
+ wt.displayName = Ct;
827
853
  var Qr = {
828
854
  ArrowLeft: "prev",
829
855
  ArrowUp: "prev",
@@ -842,7 +868,7 @@ function Jr(e, t, r) {
842
868
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(a)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(a)))
843
869
  return Qr[a];
844
870
  }
845
- function wt(e, t = !1) {
871
+ function Tt(e, t = !1) {
846
872
  const r = document.activeElement;
847
873
  for (const a of e)
848
874
  if (a === r || (a.focus({ preventScroll: t }), document.activeElement !== r)) return;
@@ -850,7 +876,7 @@ function wt(e, t = !1) {
850
876
  function eo(e, t) {
851
877
  return e.map((r, a) => e[(t + a) % e.length]);
852
878
  }
853
- var to = kt, ro = Tt, oo = "Toggle", xt = f.forwardRef((e, t) => {
879
+ var to = kt, ro = wt, oo = "Toggle", xt = f.forwardRef((e, t) => {
854
880
  const { pressed: r, defaultPressed: a = !1, onPressedChange: n, ...i } = e, [s = !1, c] = pe({
855
881
  prop: r,
856
882
  onChange: n,
@@ -1081,7 +1107,7 @@ const At = E.createContext({
1081
1107
  }
1082
1108
  ) });
1083
1109
  }, vo = ({ value: e, disabled: t }) => {
1084
- const { size: r, focusMode: a, mode: n } = P(At), { itemClass: i, wrapperClass: s } = fo({
1110
+ const { size: r, focusMode: a, mode: n } = B(At), { itemClass: i, wrapperClass: s } = fo({
1085
1111
  focusMode: a,
1086
1112
  mode: n,
1087
1113
  size: r
@@ -1109,7 +1135,7 @@ try {
1109
1135
  });
1110
1136
  } catch {
1111
1137
  }
1112
- const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Oe = "icon", yo = "button", ko = "link", Co = ({
1138
+ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo = "button", ko = "link", Co = ({
1113
1139
  type: e,
1114
1140
  size: t,
1115
1141
  labelRight: r,
@@ -1130,7 +1156,7 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Oe = "icon", yo =
1130
1156
  [s]: t === "medium",
1131
1157
  [c]: t === "large"
1132
1158
  });
1133
- case Oe:
1159
+ case Be:
1134
1160
  return k("inline-flex items-center", {
1135
1161
  "justify-center": n === "center",
1136
1162
  "justify-start": n === "left",
@@ -1143,7 +1169,7 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Oe = "icon", yo =
1143
1169
  "h-12 px-4 text-lg font-medium": t === "large" && (r || a)
1144
1170
  });
1145
1171
  }
1146
- }, To = ({
1172
+ }, wo = ({
1147
1173
  mode: e,
1148
1174
  noBackground: t,
1149
1175
  noTruncate: r,
@@ -1200,7 +1226,7 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Oe = "icon", yo =
1200
1226
  "bg-action-selected-dark text-copy-light dark:bg-action-selected-light dark:text-copy-lighter": e === "system",
1201
1227
  "bg-action-selected-light text-copy-lighter dark:bg-action-selected-dark dark:text-copy-light": e === "alt-system"
1202
1228
  });
1203
- }, wo = ({
1229
+ }, To = ({
1204
1230
  mode: e,
1205
1231
  disabled: t,
1206
1232
  variant: r
@@ -1331,7 +1357,7 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Oe = "icon", yo =
1331
1357
  radius: d
1332
1358
  }) => (b || (b = "primary"), r ? k(qe, t) : k(
1333
1359
  qe,
1334
- To({
1360
+ wo({
1335
1361
  mode: a,
1336
1362
  variant: b,
1337
1363
  noBackground: p,
@@ -1347,7 +1373,7 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Oe = "icon", yo =
1347
1373
  }),
1348
1374
  No({ mode: a, variant: b, noBorder: g }),
1349
1375
  Eo({ focusMode: n }),
1350
- wo({ mode: a, variant: b, disabled: i }),
1376
+ To({ mode: a, variant: b, disabled: i }),
1351
1377
  xo({ mode: a, variant: b, disabled: i }),
1352
1378
  {
1353
1379
  "w-full": s,
@@ -1357,7 +1383,7 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Oe = "icon", yo =
1357
1383
  )), Io = (e, t, r) => {
1358
1384
  var a;
1359
1385
  !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);
1360
- }, Be = E.forwardRef((e, t) => {
1386
+ }, Oe = E.forwardRef((e, t) => {
1361
1387
  const { onClick: r, noInternalClick: a = !1, ...n } = e;
1362
1388
  return /* @__PURE__ */ o(
1363
1389
  "button",
@@ -1370,7 +1396,7 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Oe = "icon", yo =
1370
1396
  }
1371
1397
  );
1372
1398
  });
1373
- Be.displayName = "BaseButton";
1399
+ Oe.displayName = "BaseButton";
1374
1400
  const zt = E.forwardRef(
1375
1401
  ({
1376
1402
  children: e,
@@ -1390,10 +1416,10 @@ const zt = E.forwardRef(
1390
1416
  noBackground: m = !1,
1391
1417
  align: d = "center",
1392
1418
  radius: v = "large",
1393
- ...T
1419
+ ...w
1394
1420
  }, C) => {
1395
- const w = Mt({
1396
- type: Oe,
1421
+ const T = Mt({
1422
+ type: Be,
1397
1423
  mode: r,
1398
1424
  focusMode: a,
1399
1425
  fullWidth: n,
@@ -1414,14 +1440,14 @@ const zt = E.forwardRef(
1414
1440
  "text-copy-light dark:text-copy-accent-dark": r === "system" && !c
1415
1441
  });
1416
1442
  return /* @__PURE__ */ y(
1417
- Be,
1443
+ Oe,
1418
1444
  {
1419
1445
  ref: C,
1420
- className: w,
1446
+ className: T,
1421
1447
  disabled: t,
1422
1448
  type: s,
1423
1449
  "aria-label": l || u,
1424
- ...T,
1450
+ ...w,
1425
1451
  children: [
1426
1452
  h && /* @__PURE__ */ o("span", { className: "pr-2", children: h }),
1427
1453
  /* @__PURE__ */ o("div", { className: S, children: e }),
@@ -1464,11 +1490,11 @@ const So = E.forwardRef(
1464
1490
  noBackground: m = !1,
1465
1491
  align: d = "center",
1466
1492
  active: v = !1,
1467
- radius: T = "large",
1493
+ radius: w = "large",
1468
1494
  ...C
1469
- }, w) => {
1495
+ }, T) => {
1470
1496
  const S = Mt({
1471
- type: Oe,
1497
+ type: Be,
1472
1498
  mode: r,
1473
1499
  focusMode: a,
1474
1500
  fullWidth: n,
@@ -1481,13 +1507,13 @@ const So = E.forwardRef(
1481
1507
  labelLeft: h,
1482
1508
  noBackground: m,
1483
1509
  align: d,
1484
- radius: T
1510
+ radius: w
1485
1511
  }), A = k({
1486
1512
  "text-copy-accent-dark": r === "light" && !c,
1487
1513
  "text-copy-light": r === "dark" && !c,
1488
1514
  "text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
1489
1515
  "text-copy-light dark:text-copy-accent-dark": r === "system" && !c
1490
- }), M = v ? k(
1516
+ }), z = v ? k(
1491
1517
  "relative",
1492
1518
  "focus-within:static",
1493
1519
  "focus-within:after:border-transparent",
@@ -1504,10 +1530,10 @@ const So = E.forwardRef(
1504
1530
  "after:border-table-light dark:after:border-table-dark": r === "alt-system"
1505
1531
  }
1506
1532
  ) : "";
1507
- return /* @__PURE__ */ o("div", { className: M, children: /* @__PURE__ */ y(
1508
- Be,
1533
+ return /* @__PURE__ */ o("div", { className: z, children: /* @__PURE__ */ y(
1534
+ Oe,
1509
1535
  {
1510
- ref: w,
1536
+ ref: T,
1511
1537
  className: S,
1512
1538
  disabled: t,
1513
1539
  type: s,
@@ -1663,7 +1689,7 @@ const zo = f.forwardRef(function(e, t) {
1663
1689
  }), Po = f.forwardRef(function({ children: e, ...t }, r) {
1664
1690
  const { setDescriptionId: a } = ve(), n = Ae();
1665
1691
  return f.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ o("div", { ...t, ref: r, id: n, children: e });
1666
- }), Oo = f.forwardRef(function(e, t) {
1692
+ }), Bo = f.forwardRef(function(e, t) {
1667
1693
  const { setOpen: r } = ve(), { trigger: a, className: n, ...i } = e, s = f.useCallback(() => r(!1), [r]);
1668
1694
  return /* @__PURE__ */ o("div", { className: n, children: f.cloneElement(a, {
1669
1695
  ref: t,
@@ -1684,7 +1710,7 @@ try {
1684
1710
  });
1685
1711
  } catch {
1686
1712
  }
1687
- const ee = "panel", ue = "messagebox", Bo = ({
1713
+ const ee = "panel", ue = "messagebox", Oo = ({
1688
1714
  className: e,
1689
1715
  kind: t,
1690
1716
  borderMode: r
@@ -1714,13 +1740,13 @@ const ee = "panel", ue = "messagebox", Bo = ({
1714
1740
  kind: s = ee,
1715
1741
  className: c
1716
1742
  }) => {
1717
- const g = Z(""), l = Bo({ className: c, kind: s, borderMode: i });
1743
+ const g = Z(""), l = Oo({ className: c, kind: s, borderMode: i });
1718
1744
  return H(() => (e && (g.current = document.title, document.title = `${r} | ${g.current}`), () => {
1719
1745
  e && (document.title = g.current);
1720
1746
  }), [r, e]), /* @__PURE__ */ o(_, { children: e && /* @__PURE__ */ o(Mo, { open: e, onOpenChange: t, children: /* @__PURE__ */ y(zo, { className: l.main, children: [
1721
1747
  /* @__PURE__ */ y("div", { className: "flex flex-row-reverse items-center justify-between", children: [
1722
1748
  /* @__PURE__ */ o(
1723
- Oo,
1749
+ Bo,
1724
1750
  {
1725
1751
  className: l.close,
1726
1752
  trigger: /* @__PURE__ */ o(
@@ -1744,18 +1770,18 @@ const ee = "panel", ue = "messagebox", Bo = ({
1744
1770
  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();
1745
1771
  return /* @__PURE__ */ y(_, { children: [
1746
1772
  /* @__PURE__ */ o("div", { className: "mb-4", children: /* @__PURE__ */ o(
1747
- L,
1773
+ P,
1748
1774
  {
1749
1775
  header: x.ABOUT.TITLE_CLIENT,
1750
1776
  className: "prose-dark dark:prose-lighter",
1751
1777
  children: oe(n, {
1752
- [x.ABOUT.VERSION]: "5.12.0",
1753
- [x.ABOUT.BUILD_TIMESTAMP]: "12/31/2024 01:38 PM EST"
1778
+ [x.ABOUT.VERSION]: "5.13.0",
1779
+ [x.ABOUT.BUILD_TIMESTAMP]: "12/31/2024 06:58 PM EST"
1754
1780
  })
1755
1781
  }
1756
1782
  ) }),
1757
1783
  /* @__PURE__ */ o(
1758
- L,
1784
+ P,
1759
1785
  {
1760
1786
  header: x.ABOUT.TITLE_SERVER,
1761
1787
  className: "prose-dark dark:prose-lighter",
@@ -1771,7 +1797,7 @@ const ee = "panel", ue = "messagebox", Bo = ({
1771
1797
  open: e,
1772
1798
  onOpenChange: t
1773
1799
  }) => {
1774
- const { serverStats: r } = P(ie);
1800
+ const { serverStats: r } = B(ie);
1775
1801
  return /* @__PURE__ */ o(Y, { open: e, onOpenChange: t, title: Dt, children: /* @__PURE__ */ o(Do, { stats: r }) });
1776
1802
  }, $o = (e) => Qe(e), Fo = (e) => {
1777
1803
  if (!e || e.length === 0)
@@ -1790,10 +1816,10 @@ const ee = "panel", ue = "messagebox", Bo = ({
1790
1816
  isAuthenticated: e,
1791
1817
  stats: t
1792
1818
  }) => {
1793
- const { state: r } = P(ie), a = Gt - Number(r == null ? void 0 : r.usage), n = ae(), i = ae();
1819
+ const { state: r } = B(ie), a = Gt - Number(r == null ? void 0 : r.usage), n = ae(), i = ae();
1794
1820
  return e ? /* @__PURE__ */ y(_, { children: [
1795
1821
  r && r.messages.length > 0 && /* @__PURE__ */ o("div", { className: "mb-4", children: /* @__PURE__ */ o(
1796
- L,
1822
+ P,
1797
1823
  {
1798
1824
  header: x.CURRENT_STATISTICS.TITLE,
1799
1825
  className: "prose-dark dark:prose-lighter",
@@ -1806,7 +1832,7 @@ const ee = "panel", ue = "messagebox", Bo = ({
1806
1832
  }
1807
1833
  ) }),
1808
1834
  /* @__PURE__ */ o(
1809
- L,
1835
+ P,
1810
1836
  {
1811
1837
  header: x.MAIN_STATISTICS.TITLE,
1812
1838
  className: "prose-dark dark:prose-lighter",
@@ -1856,7 +1882,7 @@ const ee = "panel", ue = "messagebox", Bo = ({
1856
1882
  onOpenChange: t,
1857
1883
  title: n.title,
1858
1884
  footer: /* @__PURE__ */ y(q, { columnGap: 2, alignHorizontal: "flex-end", children: [
1859
- /* @__PURE__ */ o(z, { children: /* @__PURE__ */ o(
1885
+ /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o(
1860
1886
  F,
1861
1887
  {
1862
1888
  mode: "dark",
@@ -1868,7 +1894,7 @@ const ee = "panel", ue = "messagebox", Bo = ({
1868
1894
  children: n.cancelAction
1869
1895
  }
1870
1896
  ) }),
1871
- /* @__PURE__ */ o(z, { children: /* @__PURE__ */ o(
1897
+ /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o(
1872
1898
  F,
1873
1899
  {
1874
1900
  mode: "dark",
@@ -1916,7 +1942,7 @@ const ee = "panel", ue = "messagebox", Bo = ({
1916
1942
  id: 0,
1917
1943
  timestamp: "",
1918
1944
  message: ""
1919
- }), [c, g] = I(!1), { state: l, dispatch: u } = P(rt), [, p] = ce({
1945
+ }), [c, g] = I(!1), { state: l, dispatch: u } = B(rt), [, p] = ce({
1920
1946
  key: se + Ut,
1921
1947
  initialValue: l.sortDirection
1922
1948
  }), b = (d) => {
@@ -1996,7 +2022,7 @@ const ee = "panel", ue = "messagebox", Bo = ({
1996
2022
  compact: !0,
1997
2023
  wrapperClassName: "max-h-[60vh] min-h-[60vh]",
1998
2024
  children: [
1999
- /* @__PURE__ */ o(ar, { children: /* @__PURE__ */ y(we, { children: [
2025
+ /* @__PURE__ */ o(ar, { children: /* @__PURE__ */ y(Te, { children: [
2000
2026
  /* @__PURE__ */ o(
2001
2027
  nr,
2002
2028
  {
@@ -2016,8 +2042,8 @@ const ee = "panel", ue = "messagebox", Bo = ({
2016
2042
  /* @__PURE__ */ o($, { className: "text-xs sm:text-sm text-right", children: "Actions" })
2017
2043
  ] }) }),
2018
2044
  /* @__PURE__ */ o(sr, { children: e.data.map((d, v) => {
2019
- var T, C;
2020
- return ((T = d == null ? void 0 : d.messages) == null ? void 0 : T.length) > 0 ? /* @__PURE__ */ y(we, { children: [
2045
+ var w, C;
2046
+ return ((w = d == null ? void 0 : d.messages) == null ? void 0 : w.length) > 0 ? /* @__PURE__ */ y(Te, { children: [
2021
2047
  /* @__PURE__ */ o(
2022
2048
  $,
2023
2049
  {
@@ -2049,12 +2075,12 @@ const ee = "panel", ue = "messagebox", Bo = ({
2049
2075
  noBorder: !0,
2050
2076
  label: "Restore chat",
2051
2077
  onClick: async () => {
2052
- const w = await i();
2078
+ const T = await i();
2053
2079
  Uo(
2054
2080
  d,
2055
2081
  r,
2056
2082
  a,
2057
- w
2083
+ T
2058
2084
  );
2059
2085
  },
2060
2086
  children: /* @__PURE__ */ o(Er, { size: "size-3", monotone: !0 })
@@ -2067,20 +2093,20 @@ const ee = "panel", ue = "messagebox", Bo = ({
2067
2093
  noBorder: !0,
2068
2094
  label: "Delete chat",
2069
2095
  onClick: () => {
2070
- var w;
2096
+ var T;
2071
2097
  s.current = {
2072
2098
  id: d.id,
2073
2099
  timestamp: d.timestamp,
2074
- message: d.messages.length > 0 ? (w = d.messages[0]) == null ? void 0 : w.content : ""
2100
+ message: d.messages.length > 0 ? (T = d.messages[0]) == null ? void 0 : T.content : ""
2075
2101
  }, g(!c);
2076
2102
  },
2077
- children: /* @__PURE__ */ o("div", { className: "text-red-400", children: /* @__PURE__ */ o(Tr, { size: "size-3", monotone: !0 }) })
2103
+ children: /* @__PURE__ */ o("div", { className: "text-red-400", children: /* @__PURE__ */ o(wr, { size: "size-3", monotone: !0 }) })
2078
2104
  }
2079
2105
  )
2080
2106
  ] }) })
2081
2107
  ] }, `${x.HISTORY.TITLE}-${d.id}-${v}`) : null;
2082
2108
  }) }),
2083
- /* @__PURE__ */ o(ir, { children: /* @__PURE__ */ o(we, { children: /* @__PURE__ */ o($, { colSpan: 4, children: /* @__PURE__ */ o("div", { children: he(
2109
+ /* @__PURE__ */ o(ir, { children: /* @__PURE__ */ o(Te, { children: /* @__PURE__ */ o($, { colSpan: 4, children: /* @__PURE__ */ o("div", { children: he(
2084
2110
  `${e.data.length} chat`,
2085
2111
  e.data.length
2086
2112
  ) }) }) }) })
@@ -2115,21 +2141,21 @@ const ee = "panel", ue = "messagebox", Bo = ({
2115
2141
  }
2116
2142
  return [];
2117
2143
  }, Ko = ({ onOpenChange: e }) => {
2118
- const { isAuthenticated: t, getAccessToken: r, user: a } = W(), n = Z(null), i = Z(!1), { dispatch: s } = P(ie), { state: c, dispatch: g } = P(rt), [, l] = ce({
2144
+ const { isAuthenticated: t, getAccessToken: r, user: a } = W(), n = Z(null), i = Z(!1), { dispatch: s } = B(ie), { state: c, dispatch: g } = B(rt), [, l] = ce({
2119
2145
  key: se + Kt,
2120
2146
  initialValue: c.searchString
2121
2147
  }), [u, p] = I({
2122
2148
  data: [],
2123
2149
  sortedDirection: c.sortDirection
2124
2150
  }), b = async (d) => {
2125
- const v = await r(), T = await Ze({
2151
+ const v = await r(), w = await Ze({
2126
2152
  searchString: d,
2127
2153
  username: a == null ? void 0 : a.username,
2128
2154
  accessToken: v,
2129
2155
  direction: c.sortDirection
2130
2156
  });
2131
2157
  p({
2132
- data: T,
2158
+ data: w,
2133
2159
  sortedDirection: c.sortDirection
2134
2160
  }), l(d), g({
2135
2161
  type: Wt,
@@ -2156,10 +2182,10 @@ const ee = "panel", ue = "messagebox", Bo = ({
2156
2182
  })();
2157
2183
  }), H(() => {
2158
2184
  if (c.sortDirection !== u.sortedDirection) {
2159
- const d = [...u.data].sort((v, T) => {
2185
+ const d = [...u.data].sort((v, w) => {
2160
2186
  if (c.sortedCell === "timestamp") {
2161
- const C = new Date(v[c.sortedCell]).getTime(), w = new Date(T[c.sortedCell]).getTime();
2162
- return c.sortDirection === U.ASC ? C - w : w - C;
2187
+ const C = new Date(v[c.sortedCell]).getTime(), T = new Date(w[c.sortedCell]).getTime();
2188
+ return c.sortDirection === U.ASC ? C - T : T - C;
2163
2189
  }
2164
2190
  return 0;
2165
2191
  });
@@ -2337,7 +2363,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2337
2363
  open: e,
2338
2364
  onOpenChange: t
2339
2365
  }) => {
2340
- const { dispatch: r } = P(ie), { getAccessToken: a, user: n } = W(), [i, s] = I({
2366
+ const { dispatch: r } = B(ie), { getAccessToken: a, user: n } = W(), [i, s] = I({
2341
2367
  loaded: !1,
2342
2368
  instructions: "",
2343
2369
  loadingLocation: !1,
@@ -2380,13 +2406,13 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2380
2406
  latitude: m.latitude,
2381
2407
  longitude: m.longitude
2382
2408
  }
2383
- }), T = Date.now() - h;
2384
- if (T < 2e3 && await new Promise((C) => setTimeout(C, 2e3 - T)), d.status === 200) {
2385
- const { city: C, state: w, country: S, displayName: A } = d.data, M = C && w && S ? `${C}, ${w}, ${S}` : A;
2409
+ }), w = Date.now() - h;
2410
+ if (w < 2e3 && await new Promise((C) => setTimeout(C, 2e3 - w)), d.status === 200) {
2411
+ const { city: C, state: T, country: S, displayName: A } = d.data, z = C && T && S ? `${C}, ${T}, ${S}` : A;
2386
2412
  s((R) => ({
2387
2413
  ...R,
2388
2414
  loaded: !0,
2389
- location: M,
2415
+ location: z,
2390
2416
  loadingLocation: !1
2391
2417
  }));
2392
2418
  } else
@@ -2401,12 +2427,12 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2401
2427
  }, p = (h) => {
2402
2428
  s((m) => ({
2403
2429
  ...m,
2404
- engine: h ? Te : me
2430
+ engine: h ? we : me
2405
2431
  }));
2406
2432
  }, b = (h) => {
2407
2433
  s((m) => ({
2408
2434
  ...m,
2409
- engine: h ? me : Te
2435
+ engine: h ? me : we
2410
2436
  }));
2411
2437
  };
2412
2438
  return H(() => {
@@ -2452,7 +2478,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2452
2478
  alignHorizontal: "flex-end",
2453
2479
  className: "pb-8 sm:pb-0",
2454
2480
  children: [
2455
- /* @__PURE__ */ o(z, { children: /* @__PURE__ */ o(
2481
+ /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o(
2456
2482
  F,
2457
2483
  {
2458
2484
  mode: "dark",
@@ -2464,7 +2490,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2464
2490
  children: "Cancel"
2465
2491
  }
2466
2492
  ) }),
2467
- /* @__PURE__ */ o(z, { children: /* @__PURE__ */ o(
2493
+ /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o(
2468
2494
  F,
2469
2495
  {
2470
2496
  mode: "dark",
@@ -2481,7 +2507,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2481
2507
  ),
2482
2508
  children: /* @__PURE__ */ y(_, { children: [
2483
2509
  /* @__PURE__ */ y(
2484
- L,
2510
+ P,
2485
2511
  {
2486
2512
  header: "AI Engine",
2487
2513
  className: "prose-dark dark:prose-lighter",
@@ -2494,7 +2520,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2494
2520
  label: "OpenAI",
2495
2521
  name: "OpenAI",
2496
2522
  onChange: p,
2497
- checked: i.engine === Te
2523
+ checked: i.engine === we
2498
2524
  }
2499
2525
  ),
2500
2526
  /* @__PURE__ */ o(
@@ -2525,7 +2551,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2525
2551
  }
2526
2552
  ),
2527
2553
  /* @__PURE__ */ y(
2528
- L,
2554
+ P,
2529
2555
  {
2530
2556
  header: "Custom Instructions",
2531
2557
  className: "prose-dark dark:prose-lighter mt-4",
@@ -2559,7 +2585,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2559
2585
  }
2560
2586
  ),
2561
2587
  /* @__PURE__ */ y(
2562
- L,
2588
+ P,
2563
2589
  {
2564
2590
  header: "Location",
2565
2591
  className: "prose-dark dark:prose-lighter mt-4",
@@ -2603,7 +2629,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2603
2629
  open: e,
2604
2630
  onOpenChange: t
2605
2631
  }) => {
2606
- const { state: r, dispatch: a } = P(cr), { getAccessToken: n, user: i } = W(), [s, c] = I({
2632
+ const { state: r, dispatch: a } = B(cr), { getAccessToken: n, user: i } = W(), [s, c] = I({
2607
2633
  tags: [...r.tags]
2608
2634
  }), g = ({
2609
2635
  slot: u,
@@ -2617,11 +2643,11 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2617
2643
  label: b,
2618
2644
  content: h,
2619
2645
  enabled: p
2620
- }, T = d.findIndex((C) => C.slot === u);
2621
- return T === -1 ? {
2646
+ }, w = d.findIndex((C) => C.slot === u);
2647
+ return w === -1 ? {
2622
2648
  ...m,
2623
2649
  tags: [...d, { ...v, slot: u }]
2624
- } : (d[T] = v, {
2650
+ } : (d[w] = v, {
2625
2651
  ...m,
2626
2652
  tags: [...d]
2627
2653
  });
@@ -2658,7 +2684,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2658
2684
  alignHorizontal: "flex-end",
2659
2685
  className: "pb-8 sm:pb-0",
2660
2686
  children: [
2661
- /* @__PURE__ */ o(z, { children: /* @__PURE__ */ o(
2687
+ /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o(
2662
2688
  F,
2663
2689
  {
2664
2690
  mode: "dark",
@@ -2670,7 +2696,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2670
2696
  children: "Cancel"
2671
2697
  }
2672
2698
  ) }),
2673
- /* @__PURE__ */ o(z, { children: /* @__PURE__ */ o(
2699
+ /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o(
2674
2700
  F,
2675
2701
  {
2676
2702
  mode: "dark",
@@ -2688,13 +2714,13 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2688
2714
  children: [
2689
2715
  /* @__PURE__ */ o("p", { children: Xt }),
2690
2716
  s.tags && s.tags.map((u) => /* @__PURE__ */ y(
2691
- L,
2717
+ P,
2692
2718
  {
2693
2719
  header: `Tag ${u.slot + 1}`,
2694
2720
  className: "prose-dark dark:prose-lighter mb-2",
2695
2721
  children: [
2696
2722
  /* @__PURE__ */ y(q, { className: "mt-8 mb-6", columnGap: 2, rowGap: 6, children: [
2697
- /* @__PURE__ */ o(z, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ o(
2723
+ /* @__PURE__ */ o(L, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ o(
2698
2724
  Ne,
2699
2725
  {
2700
2726
  label: "Label",
@@ -2710,7 +2736,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2710
2736
  }
2711
2737
  }
2712
2738
  ) }),
2713
- /* @__PURE__ */ o(z, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ o(
2739
+ /* @__PURE__ */ o(L, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ o(
2714
2740
  Ne,
2715
2741
  {
2716
2742
  label: "Content",
@@ -2773,7 +2799,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2773
2799
  ),
2774
2800
  g && /* @__PURE__ */ o(aa, { open: g, onOpenChange: l }),
2775
2801
  /* @__PURE__ */ y(
2776
- L,
2802
+ P,
2777
2803
  {
2778
2804
  header: x.PREFERENCES.TITLE,
2779
2805
  className: "prose-dark dark:prose-lighter",
@@ -2817,12 +2843,12 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2817
2843
  }
2818
2844
  ),
2819
2845
  a !== tr.PASSKEY && /* @__PURE__ */ y(
2820
- L,
2846
+ P,
2821
2847
  {
2822
2848
  className: "prose-dark dark:prose-lighter mt-4",
2823
2849
  header: /* @__PURE__ */ o("h2", { className: "m-0", children: /* @__PURE__ */ y(q, { columnGap: 3, alignVertical: "center", children: [
2824
- /* @__PURE__ */ o(z, { children: /* @__PURE__ */ o($e, { size: "size-8" }) }),
2825
- /* @__PURE__ */ o(z, { children: /* @__PURE__ */ o("div", { children: x.PREFERENCES.PASSKEY_TITLE }) })
2850
+ /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o($e, { size: "size-8" }) }),
2851
+ /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o("div", { children: x.PREFERENCES.PASSKEY_TITLE }) })
2826
2852
  ] }) }),
2827
2853
  children: [
2828
2854
  /* @__PURE__ */ o("p", { children: x.PREFERENCES.PASSKEY_INSTRUCTIONS }),
@@ -2844,16 +2870,16 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2844
2870
  open: e,
2845
2871
  onOpenChange: t
2846
2872
  }) => /* @__PURE__ */ o(Y, { open: e, onOpenChange: t, title: rr, children: /* @__PURE__ */ o(na, {}) }), ga = () => {
2847
- const { state: e, dispatch: t, serverStats: r } = P(ie), [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({
2873
+ const { state: e, dispatch: t, serverStats: r } = B(ie), [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({
2848
2874
  key: se + et,
2849
2875
  initialValue: !1
2850
- }), { logout: v, getAccessToken: T, user: C } = W(), w = () => {
2876
+ }), { logout: v, getAccessToken: w, user: C } = W(), T = () => {
2851
2877
  s(!i);
2852
2878
  }, S = () => {
2853
2879
  g(!c);
2854
2880
  }, A = () => {
2855
2881
  u(!l);
2856
- }, M = () => {
2882
+ }, z = () => {
2857
2883
  b(!p);
2858
2884
  }, R = () => {
2859
2885
  m(!h);
@@ -2898,7 +2924,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2898
2924
  if (N)
2899
2925
  try {
2900
2926
  await D({
2901
- accessToken: await T(),
2927
+ accessToken: await w(),
2902
2928
  type: V.SET_USER_PREFERENCES,
2903
2929
  params: {
2904
2930
  user: C == null ? void 0 : C.username,
@@ -2932,7 +2958,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2932
2958
  G,
2933
2959
  {
2934
2960
  label: "Profile",
2935
- onClick: w,
2961
+ onClick: T,
2936
2962
  icon: /* @__PURE__ */ o(Nr, {})
2937
2963
  }
2938
2964
  ),
@@ -2949,14 +2975,14 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2949
2975
  {
2950
2976
  label: "History",
2951
2977
  onClick: A,
2952
- icon: /* @__PURE__ */ o(wr, {})
2978
+ icon: /* @__PURE__ */ o(Tr, {})
2953
2979
  }
2954
2980
  ),
2955
2981
  /* @__PURE__ */ o(
2956
2982
  G,
2957
2983
  {
2958
2984
  label: "About",
2959
- onClick: M,
2985
+ onClick: z,
2960
2986
  icon: /* @__PURE__ */ o(xr, {})
2961
2987
  }
2962
2988
  ),