@versini/sassysaint 8.45.0 → 8.45.2

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.
Files changed (22) hide show
  1. package/dist/chunks/{AboutChangelog.CHzBOLAT.js → AboutChangelog.C6oH50h4.js} +2 -2
  2. package/dist/chunks/{AboutEntry.CS0eObdc.js → AboutEntry.orFTcty4.js} +6 -6
  3. package/dist/chunks/{App.C12jugrG.js → App.DeYjNv3C.js} +22 -14
  4. package/dist/chunks/{Chart.CDWHI0VS.js → Chart.Cr0N8mI4.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.egWZooZC.js → ChatBubbleAssistant.DgbZYb4u.js} +3 -3
  6. package/dist/chunks/{ChatHistoryTable.HBnJp47c.js → ChatHistoryTable.CsrQKpEH.js} +2 -2
  7. package/dist/chunks/{HistoryEntry.Bb3zh7jR.js → HistoryEntry.1EM8mu6w.js} +3 -3
  8. package/dist/chunks/{LNWAZHJI.CTyyKpQO.js → LNWAZHJI.BI0FUPaO.js} +1 -1
  9. package/dist/chunks/{ProfileEntry.TnqGqfzg.js → ProfileEntry.Cu_mVNRC.js} +2 -2
  10. package/dist/chunks/{SettingsEntry.DH2IsCwd.js → SettingsEntry.Bneh2pUJ.js} +3 -4
  11. package/dist/chunks/{UsageEntry.DdkS6nzO.js → UsageEntry.B5IcgSmx.js} +3 -3
  12. package/dist/chunks/{index.CNlRhhtO.js → index.-CukmApz.js} +1 -1
  13. package/dist/chunks/{index.Dmmaw_4V.js → index.BHKLZQAt.js} +3 -3
  14. package/dist/chunks/{index.WnSSuCFw.js → index.Bmr0Qz5s.js} +1 -1
  15. package/dist/chunks/{index.CGHxJbIi.js → index.CB8uE3c6.js} +1 -1
  16. package/dist/chunks/{index.f_L_h2JJ.js → index.Cb-kZLrM.js} +218 -213
  17. package/dist/chunks/{index.DEWBYyMz.js → index.DgUGinS3.js} +2 -2
  18. package/dist/chunks/{useMarkdown.BH4ZFLi-.js → useMarkdown.3XbJDU6D.js} +6 -6
  19. package/dist/components/SassySaint/SassySaint.js +1 -1
  20. package/dist/index.js +4 -4
  21. package/dist/style.css +1 -1
  22. package/package.json +3 -3
@@ -1,6 +1,6 @@
1
- import { jsx as y, jsxs as X, Fragment as un } from "react/jsx-runtime";
1
+ import { jsx as y, jsxs as X, Fragment as dn } from "react/jsx-runtime";
2
2
  import * as te from "react";
3
- import he, { createContext as dn, useReducer as fn, useCallback as de, useRef as j, useEffect as Z, useSyncExternalStore as Ms, useContext as wr, useLayoutEffect as bt, useState as ue, useMemo as Rt, useId as hn, Suspense as Ls, lazy as Us } from "react";
3
+ import he, { createContext as fn, useReducer as hn, useCallback as de, useRef as j, useEffect as Z, useSyncExternalStore as Ms, useContext as vr, useLayoutEffect as bt, useState as ue, useMemo as Rt, useId as mn, Suspense as Ls, lazy as Us } from "react";
4
4
  import g from "clsx";
5
5
  var Ct = class {
6
6
  constructor() {
@@ -36,7 +36,7 @@ function tr(e, t) {
36
36
  function Bs(e, t) {
37
37
  return typeof e == "function" ? e(t) : e;
38
38
  }
39
- function xr(e, t) {
39
+ function $r(e, t) {
40
40
  const {
41
41
  type: r = "all",
42
42
  exact: n,
@@ -47,7 +47,7 @@ function xr(e, t) {
47
47
  } = e;
48
48
  if (o) {
49
49
  if (n) {
50
- if (t.queryHash !== vr(o, t.options))
50
+ if (t.queryHash !== Er(o, t.options))
51
51
  return !1;
52
52
  } else if (!We(t.queryKey, o))
53
53
  return !1;
@@ -59,7 +59,7 @@ function xr(e, t) {
59
59
  }
60
60
  return !(typeof a == "boolean" && t.isStale() !== a || s && s !== t.state.fetchStatus || i && !i(t));
61
61
  }
62
- function $r(e, t) {
62
+ function Dr(e, t) {
63
63
  const { exact: r, status: n, predicate: s, mutationKey: i } = e;
64
64
  if (i) {
65
65
  if (!t.options.mutationKey)
@@ -72,7 +72,7 @@ function $r(e, t) {
72
72
  }
73
73
  return !(n && t.state.status !== n || s && !s(t));
74
74
  }
75
- function vr(e, t) {
75
+ function Er(e, t) {
76
76
  return (t?.queryKeyHashFn || Ve)(e);
77
77
  }
78
78
  function Ve(e) {
@@ -87,7 +87,7 @@ function We(e, t) {
87
87
  function rr(e, t) {
88
88
  if (e === t)
89
89
  return e;
90
- const r = Dr(e) && Dr(t);
90
+ const r = Mr(e) && Mr(t);
91
91
  if (r || nr(e) && nr(t)) {
92
92
  const n = r ? e : Object.keys(e), s = n.length, i = r ? t : Object.keys(t), o = i.length, a = r ? [] : {}, c = new Set(n);
93
93
  let d = 0;
@@ -107,19 +107,19 @@ function ou(e, t) {
107
107
  return !1;
108
108
  return !0;
109
109
  }
110
- function Dr(e) {
110
+ function Mr(e) {
111
111
  return Array.isArray(e) && e.length === Object.keys(e).length;
112
112
  }
113
113
  function nr(e) {
114
- if (!Mr(e))
114
+ if (!Lr(e))
115
115
  return !1;
116
116
  const t = e.constructor;
117
117
  if (t === void 0)
118
118
  return !0;
119
119
  const r = t.prototype;
120
- return !(!Mr(r) || !r.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
120
+ return !(!Lr(r) || !r.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
121
121
  }
122
- function Mr(e) {
122
+ function Lr(e) {
123
123
  return Object.prototype.toString.call(e) === "[object Object]";
124
124
  }
125
125
  function Vs(e) {
@@ -152,7 +152,7 @@ function Gs(e, t, r = 0) {
152
152
  return r && n.length > r ? n.slice(0, -1) : n;
153
153
  }
154
154
  var wt = Symbol();
155
- function mn(e, t) {
155
+ function yn(e, t) {
156
156
  return process.env.NODE_ENV !== "production" && e.queryFn === wt && console.error(
157
157
  `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
158
158
  ), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === wt ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
@@ -197,7 +197,7 @@ var qs = class extends Ct {
197
197
  isFocused() {
198
198
  return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
199
199
  }
200
- }, yn = new qs(), Js = class extends Ct {
200
+ }, pn = new qs(), Js = class extends Ct {
201
201
  #e = !0;
202
202
  #t;
203
203
  #r;
@@ -254,10 +254,10 @@ function Qs() {
254
254
  function zs(e) {
255
255
  return Math.min(1e3 * 2 ** e, 3e4);
256
256
  }
257
- function pn(e) {
257
+ function gn(e) {
258
258
  return (e ?? "online") === "online" ? je.isOnline() : !0;
259
259
  }
260
- var gn = class extends Error {
260
+ var sr = class extends Error {
261
261
  constructor(e) {
262
262
  super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
263
263
  }
@@ -265,12 +265,15 @@ var gn = class extends Error {
265
265
  function bn(e) {
266
266
  let t = !1, r = 0, n;
267
267
  const s = Qs(), i = () => s.status !== "pending", o = (p) => {
268
- i() || (f(new gn(p)), e.abort?.());
268
+ if (!i()) {
269
+ const b = new sr(p);
270
+ f(b), e.onCancel?.(b);
271
+ }
269
272
  }, a = () => {
270
273
  t = !0;
271
274
  }, c = () => {
272
275
  t = !1;
273
- }, d = () => yn.isFocused() && (e.networkMode === "always" || je.isOnline()) && e.canRun(), u = () => pn(e.networkMode) && e.canRun(), l = (p) => {
276
+ }, d = () => pn.isFocused() && (e.networkMode === "always" || je.isOnline()) && e.canRun(), u = () => gn(e.networkMode) && e.canRun(), l = (p) => {
274
277
  i() || (n?.(), s.resolve(p));
275
278
  }, f = (p) => {
276
279
  i() || (n?.(), s.reject(p));
@@ -500,7 +503,7 @@ var z = Xs(), wn = class {
500
503
  get: () => (this.#a = !0, r.signal)
501
504
  });
502
505
  }, s = () => {
503
- const a = mn(this.options, t), d = (() => {
506
+ const a = yn(this.options, t), d = (() => {
504
507
  const u = {
505
508
  client: this.#s,
506
509
  queryKey: this.queryKey,
@@ -527,7 +530,12 @@ var z = Xs(), wn = class {
527
530
  this.options.behavior?.onFetch(o, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== o.fetchOptions?.meta) && this.#i({ type: "fetch", meta: o.fetchOptions?.meta }), this.#n = bn({
528
531
  initialPromise: t?.initialPromise,
529
532
  fn: o.fetchFn,
530
- abort: r.abort.bind(r),
533
+ onCancel: (a) => {
534
+ a instanceof sr && a.revert && this.setState({
535
+ ...this.#t,
536
+ fetchStatus: "idle"
537
+ }), r.abort();
538
+ },
531
539
  onFail: (a, c) => {
532
540
  this.#i({ type: "failed", failureCount: a, error: c });
533
541
  },
@@ -554,14 +562,11 @@ var z = Xs(), wn = class {
554
562
  this
555
563
  ), a;
556
564
  } catch (a) {
557
- if (a instanceof gn) {
565
+ if (a instanceof sr) {
558
566
  if (a.silent)
559
567
  return this.#n.promise;
560
568
  if (a.revert) {
561
- if (this.setState({
562
- ...this.#t,
563
- fetchStatus: "idle"
564
- }), this.state.data === void 0)
569
+ if (this.state.data === void 0)
565
570
  throw a;
566
571
  return this.state.data;
567
572
  }
@@ -657,7 +662,7 @@ function ei(e, t) {
657
662
  return {
658
663
  fetchFailureCount: 0,
659
664
  fetchFailureReason: null,
660
- fetchStatus: pn(t.networkMode) ? "fetching" : "paused",
665
+ fetchStatus: gn(t.networkMode) ? "fetching" : "paused",
661
666
  ...e === void 0 && {
662
667
  error: null,
663
668
  status: "pending"
@@ -687,7 +692,7 @@ var ri = class extends Ct {
687
692
  }
688
693
  #e;
689
694
  build(e, t, r) {
690
- const n = t.queryKey, s = t.queryHash ?? vr(n, t);
695
+ const n = t.queryKey, s = t.queryHash ?? Er(n, t);
691
696
  let i = this.get(s);
692
697
  return i || (i = new Zs({
693
698
  client: e,
@@ -724,12 +729,12 @@ var ri = class extends Ct {
724
729
  find(e) {
725
730
  const t = { exact: !0, ...e };
726
731
  return this.getAll().find(
727
- (r) => xr(t, r)
732
+ (r) => $r(t, r)
728
733
  );
729
734
  }
730
735
  findAll(e = {}) {
731
736
  const t = this.getAll();
732
- return Object.keys(e).length > 0 ? t.filter((r) => xr(e, r)) : t;
737
+ return Object.keys(e).length > 0 ? t.filter((r) => $r(e, r)) : t;
733
738
  }
734
739
  notify(e) {
735
740
  z.batch(() => {
@@ -1008,11 +1013,11 @@ var ii = class extends Ct {
1008
1013
  find(e) {
1009
1014
  const t = { exact: !0, ...e };
1010
1015
  return this.getAll().find(
1011
- (r) => $r(t, r)
1016
+ (r) => Dr(t, r)
1012
1017
  );
1013
1018
  }
1014
1019
  findAll(e = {}) {
1015
- return this.getAll().filter((t) => $r(e, t));
1020
+ return this.getAll().filter((t) => Dr(e, t));
1016
1021
  }
1017
1022
  notify(e) {
1018
1023
  z.batch(() => {
@@ -1033,7 +1038,7 @@ var ii = class extends Ct {
1033
1038
  function tt(e) {
1034
1039
  return e.options.scope?.id;
1035
1040
  }
1036
- function Lr(e) {
1041
+ function Ur(e) {
1037
1042
  return {
1038
1043
  onFetch: (t, r) => {
1039
1044
  const n = t.options, s = t.fetchOptions?.meta?.fetchMore?.direction, i = t.state.data?.pages || [], o = t.state.data?.pageParams || [];
@@ -1047,7 +1052,7 @@ function Lr(e) {
1047
1052
  u = !0;
1048
1053
  }), t.signal)
1049
1054
  });
1050
- }, f = mn(t.options, t.fetchOptions), h = async (m, p, b) => {
1055
+ }, f = yn(t.options, t.fetchOptions), h = async (m, p, b) => {
1051
1056
  if (u)
1052
1057
  return Promise.reject();
1053
1058
  if (p == null && m.pages.length)
@@ -1068,7 +1073,7 @@ function Lr(e) {
1068
1073
  };
1069
1074
  };
1070
1075
  if (s && i.length) {
1071
- const m = s === "backward", p = m ? ai : Ur, b = {
1076
+ const m = s === "backward", p = m ? ai : Fr, b = {
1072
1077
  pages: i,
1073
1078
  pageParams: o
1074
1079
  }, w = p(n, b);
@@ -1076,7 +1081,7 @@ function Lr(e) {
1076
1081
  } else {
1077
1082
  const m = e ?? i.length;
1078
1083
  do {
1079
- const p = c === 0 ? o[0] ?? n.initialPageParam : Ur(n, a);
1084
+ const p = c === 0 ? o[0] ?? n.initialPageParam : Fr(n, a);
1080
1085
  if (c > 0 && p == null)
1081
1086
  break;
1082
1087
  a = await h(a, p), c++;
@@ -1097,7 +1102,7 @@ function Lr(e) {
1097
1102
  }
1098
1103
  };
1099
1104
  }
1100
- function Ur(e, { pages: t, pageParams: r }) {
1105
+ function Fr(e, { pages: t, pageParams: r }) {
1101
1106
  const n = t.length - 1;
1102
1107
  return t.length > 0 ? e.getNextPageParam(
1103
1108
  t[n],
@@ -1122,7 +1127,7 @@ var oi = class {
1122
1127
  this.#e = e.queryCache || new ri(), this.#t = e.mutationCache || new ii(), this.#r = e.defaultOptions || {}, this.#s = /* @__PURE__ */ new Map(), this.#n = /* @__PURE__ */ new Map(), this.#o = 0;
1123
1128
  }
1124
1129
  mount() {
1125
- this.#o++, this.#o === 1 && (this.#a = yn.subscribe(async (e) => {
1130
+ this.#o++, this.#o === 1 && (this.#a = pn.subscribe(async (e) => {
1126
1131
  e && (await this.resumePausedMutations(), this.#e.onFocus());
1127
1132
  }), this.#i = je.subscribe(async (e) => {
1128
1133
  e && (await this.resumePausedMutations(), this.#e.onOnline());
@@ -1240,13 +1245,13 @@ var oi = class {
1240
1245
  return this.fetchQuery(e).then(re).catch(re);
1241
1246
  }
1242
1247
  fetchInfiniteQuery(e) {
1243
- return e.behavior = Lr(e.pages), this.fetchQuery(e);
1248
+ return e.behavior = Ur(e.pages), this.fetchQuery(e);
1244
1249
  }
1245
1250
  prefetchInfiniteQuery(e) {
1246
1251
  return this.fetchInfiniteQuery(e).then(re).catch(re);
1247
1252
  }
1248
1253
  ensureInfiniteQueryData(e) {
1249
- return e.behavior = Lr(e.pages), this.ensureQueryData(e);
1254
+ return e.behavior = Ur(e.pages), this.ensureQueryData(e);
1250
1255
  }
1251
1256
  resumePausedMutations() {
1252
1257
  return je.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
@@ -1296,7 +1301,7 @@ var oi = class {
1296
1301
  ...e,
1297
1302
  _defaulted: !0
1298
1303
  };
1299
- return t.queryHash || (t.queryHash = vr(
1304
+ return t.queryHash || (t.queryHash = Er(
1300
1305
  t.queryKey,
1301
1306
  t
1302
1307
  )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === wt && (t.enabled = !1), t;
@@ -1502,7 +1507,7 @@ function In(e, t) {
1502
1507
  try {
1503
1508
  return ae(t, !0);
1504
1509
  } catch (s) {
1505
- Er(s);
1510
+ Sr(s);
1506
1511
  } finally {
1507
1512
  I = r, x = n;
1508
1513
  }
@@ -1532,7 +1537,7 @@ function mu(e) {
1532
1537
  return I && I.context && (t = I.context[e.id]) !== void 0 ? t : e.defaultValue;
1533
1538
  }
1534
1539
  function kn(e) {
1535
- const t = K(e), r = K(() => sr(t()));
1540
+ const t = K(e), r = K(() => ir(t()));
1536
1541
  return r.toArray = () => {
1537
1542
  const n = r();
1538
1543
  return Array.isArray(n) ? n : n != null ? [n] : [];
@@ -1575,7 +1580,7 @@ function bi(e, t, r) {
1575
1580
  try {
1576
1581
  n = e.fn(t);
1577
1582
  } catch (o) {
1578
- return e.pure && (e.state = me, e.owned && e.owned.forEach(qe), e.owned = null), e.updatedAt = r + 1, Er(o);
1583
+ return e.pure && (e.state = me, e.owned && e.owned.forEach(qe), e.owned = null), e.updatedAt = r + 1, Sr(o);
1579
1584
  } finally {
1580
1585
  x = i, I = s;
1581
1586
  }
@@ -1620,7 +1625,7 @@ function ae(e, t) {
1620
1625
  const n = e();
1621
1626
  return wi(r), n;
1622
1627
  } catch (n) {
1623
- r || (fe = null), J = null, Er(n);
1628
+ r || (fe = null), J = null, Sr(n);
1624
1629
  }
1625
1630
  }
1626
1631
  function wi(e) {
@@ -1684,15 +1689,15 @@ function ht(e) {
1684
1689
  cause: e
1685
1690
  });
1686
1691
  }
1687
- function Er(e, t = I) {
1692
+ function Sr(e, t = I) {
1688
1693
  throw ht(e);
1689
1694
  }
1690
- function sr(e) {
1691
- if (typeof e == "function" && !e.length) return sr(e());
1695
+ function ir(e) {
1696
+ if (typeof e == "function" && !e.length) return ir(e());
1692
1697
  if (Array.isArray(e)) {
1693
1698
  const t = [];
1694
1699
  for (let r = 0; r < e.length; r++) {
1695
- const n = sr(e[r]);
1700
+ const n = ir(e[r]);
1696
1701
  Array.isArray(n) ? t.push.apply(t, n) : t.push(n);
1697
1702
  }
1698
1703
  return t;
@@ -1708,7 +1713,7 @@ function Ei(e, t) {
1708
1713
  }, kn(() => n.children))), void 0), s;
1709
1714
  };
1710
1715
  }
1711
- var ir = Symbol("fallback");
1716
+ var ar = Symbol("fallback");
1712
1717
  function It(e) {
1713
1718
  for (let t = 0; t < e.length; t++) e[t]();
1714
1719
  }
@@ -1719,7 +1724,7 @@ function Si(e, t, r = {}) {
1719
1724
  return G(() => {
1720
1725
  let h, m, p, b, w, k, S, O, R;
1721
1726
  if (d === 0)
1722
- o !== 0 && (It(i), i = [], n = [], s = [], o = 0, a && (a = [])), r.fallback && (n = [ir], s[0] = Te((q) => (i[0] = q, r.fallback())), o = 1);
1727
+ o !== 0 && (It(i), i = [], n = [], s = [], o = 0, a && (a = [])), r.fallback && (n = [ar], s[0] = Te((q) => (i[0] = q, r.fallback())), o = 1);
1723
1728
  else if (o === 0) {
1724
1729
  for (s = new Array(d), l = 0; l < d; l++)
1725
1730
  n[l] = c[l], s[l] = Te(f);
@@ -1753,8 +1758,8 @@ function Ti(e, t, r = {}) {
1753
1758
  const d = e() || [], u = d.length;
1754
1759
  return G(() => {
1755
1760
  if (u === 0)
1756
- return a !== 0 && (It(i), i = [], n = [], s = [], a = 0, o = []), r.fallback && (n = [ir], s[0] = Te((f) => (i[0] = f, r.fallback())), a = 1), s;
1757
- for (n[0] === ir && (i[0](), i = [], n = [], s = [], a = 0), c = 0; c < u; c++)
1761
+ return a !== 0 && (It(i), i = [], n = [], s = [], a = 0, o = []), r.fallback && (n = [ar], s[0] = Te((f) => (i[0] = f, r.fallback())), a = 1), s;
1762
+ for (n[0] === ar && (i[0](), i = [], n = [], s = [], a = 0), c = 0; c < u; c++)
1758
1763
  c < n.length && n[c] !== d[c] ? o[c](() => d[c]) : c >= n.length && (s[c] = Te(l));
1759
1764
  for (; c < n.length; c++)
1760
1765
  i[c]();
@@ -1773,7 +1778,7 @@ function Ai(e, t) {
1773
1778
  function rt() {
1774
1779
  return !0;
1775
1780
  }
1776
- var ar = {
1781
+ var or = {
1777
1782
  get(e, t, r) {
1778
1783
  return t === vt ? r : e.get(t);
1779
1784
  },
@@ -1830,7 +1835,7 @@ function ki(...e) {
1830
1835
  for (let a = 0; a < e.length; a++) o.push(...Object.keys(Kt(e[a])));
1831
1836
  return [...new Set(o)];
1832
1837
  }
1833
- }, ar);
1838
+ }, or);
1834
1839
  const r = {}, n = /* @__PURE__ */ Object.create(null);
1835
1840
  for (let o = e.length - 1; o >= 0; o--) {
1836
1841
  const a = e[o];
@@ -1871,7 +1876,7 @@ function Oi(e, ...t) {
1871
1876
  keys() {
1872
1877
  return o.filter((a) => a in e);
1873
1878
  }
1874
- }, ar));
1879
+ }, or));
1875
1880
  return i.push(new Proxy({
1876
1881
  get(o) {
1877
1882
  return s.has(o) ? void 0 : e[o];
@@ -1882,7 +1887,7 @@ function Oi(e, ...t) {
1882
1887
  keys() {
1883
1888
  return Object.keys(e).filter((o) => !s.has(o));
1884
1889
  }
1885
- }, ar)), i;
1890
+ }, or)), i;
1886
1891
  }
1887
1892
  const r = {}, n = t.map(() => ({}));
1888
1893
  for (const s of Object.getOwnPropertyNames(e)) {
@@ -2126,7 +2131,7 @@ var Fe = "_$DX_DELEGATE";
2126
2131
  function Ki(e, t, r, n = {}) {
2127
2132
  let s;
2128
2133
  return Te((i) => {
2129
- s = i, t === document ? e() : cr(t, e(), t.firstChild ? null : void 0, r);
2134
+ s = i, t === document ? e() : lr(t, e(), t.firstChild ? null : void 0, r);
2130
2135
  }, n.owner), () => {
2131
2136
  s(), t.textContent = "";
2132
2137
  };
@@ -2152,7 +2157,7 @@ function Tu(e = window.document) {
2152
2157
  delete e[Fe];
2153
2158
  }
2154
2159
  }
2155
- function or(e, t, r) {
2160
+ function cr(e, t, r) {
2156
2161
  r == null ? e.removeAttribute(t) : e.setAttribute(t, r);
2157
2162
  }
2158
2163
  function Bi(e, t, r, n) {
@@ -2177,16 +2182,16 @@ function Gi(e, t, r = {}) {
2177
2182
  let i, o;
2178
2183
  for (i = 0, o = s.length; i < o; i++) {
2179
2184
  const a = s[i];
2180
- !a || a === "undefined" || t[a] || (Fr(e, a, !1), delete r[a]);
2185
+ !a || a === "undefined" || t[a] || (Kr(e, a, !1), delete r[a]);
2181
2186
  }
2182
2187
  for (i = 0, o = n.length; i < o; i++) {
2183
2188
  const a = n[i], c = !!t[a];
2184
- !a || a === "undefined" || r[a] === c || !c || (Fr(e, a, !0), r[a] = c);
2189
+ !a || a === "undefined" || r[a] === c || !c || (Kr(e, a, !0), r[a] = c);
2185
2190
  }
2186
2191
  return r;
2187
2192
  }
2188
2193
  function qi(e, t, r) {
2189
- if (!t) return r ? or(e, "style") : t;
2194
+ if (!t) return r ? cr(e, "style") : t;
2190
2195
  const n = e.style;
2191
2196
  if (typeof t == "string") return n.cssText = t;
2192
2197
  typeof r == "string" && (n.cssText = r = void 0), r || (r = {}), t || (t = {});
@@ -2204,7 +2209,7 @@ function Ji(e, t = {}, r, n) {
2204
2209
  function Qi(e, t, r) {
2205
2210
  return G(() => e(t, r));
2206
2211
  }
2207
- function cr(e, t, r, n) {
2212
+ function lr(e, t, r, n) {
2208
2213
  if (r !== void 0 && !n && (n = []), typeof t != "function") return Je(e, t, n, r);
2209
2214
  Ae((s) => Je(e, t(), s, r), n);
2210
2215
  }
@@ -2213,23 +2218,23 @@ function zi(e, t, r, n, s = {}, i = !1) {
2213
2218
  for (const o in s)
2214
2219
  if (!(o in t)) {
2215
2220
  if (o === "children") continue;
2216
- s[o] = Kr(e, o, null, s[o], r, i, t);
2221
+ s[o] = Hr(e, o, null, s[o], r, i, t);
2217
2222
  }
2218
2223
  for (const o in t) {
2219
2224
  if (o === "children")
2220
2225
  continue;
2221
2226
  const a = t[o];
2222
- s[o] = Kr(e, o, a, s[o], r, i, t);
2227
+ s[o] = Hr(e, o, a, s[o], r, i, t);
2223
2228
  }
2224
2229
  }
2225
2230
  function Yi(e) {
2226
2231
  return e.toLowerCase().replace(/-([a-z])/g, (t, r) => r.toUpperCase());
2227
2232
  }
2228
- function Fr(e, t, r) {
2233
+ function Kr(e, t, r) {
2229
2234
  const n = t.trim().split(/\s+/);
2230
2235
  for (let s = 0, i = n.length; s < i; s++) e.classList.toggle(n[s], r);
2231
2236
  }
2232
- function Kr(e, t, r, n, s, i, o) {
2237
+ function Hr(e, t, r, n, s, i, o) {
2233
2238
  let a, c, d, u, l;
2234
2239
  if (t === "style") return qi(e, r, n);
2235
2240
  if (t === "classList") return Gi(e, r, n);
@@ -2250,14 +2255,14 @@ function Kr(e, t, r, n, s, i, o) {
2250
2255
  }
2251
2256
  (h || r) && (ji(e, f, r, h), h && Hi([f]));
2252
2257
  } else if (t.slice(0, 5) === "attr:")
2253
- or(e, t.slice(5), r);
2258
+ cr(e, t.slice(5), r);
2254
2259
  else if (t.slice(0, 5) === "bool:")
2255
2260
  Vi(e, t.slice(5), r);
2256
2261
  else if ((l = t.slice(0, 5) === "prop:") || (d = Pi.has(t)) || !s && ((u = Di(t, e.tagName)) || (c = Ni.has(t))) || (a = e.nodeName.includes("-") || "is" in o))
2257
2262
  l && (t = t.slice(5), c = !0), t === "class" || t === "className" ? Wi(e, r) : a && !c && !d ? e[Yi(t)] = r : e[u || t] = r;
2258
2263
  else {
2259
2264
  const f = s && t.indexOf(":") > -1 && Ui[t.split(":")[0]];
2260
- f ? Bi(e, f, t, r) : or(e, xi[t] || t, r);
2265
+ f ? Bi(e, f, t, r) : cr(e, xi[t] || t, r);
2261
2266
  }
2262
2267
  return r;
2263
2268
  }
@@ -2318,11 +2323,11 @@ function Je(e, t, r, n, s) {
2318
2323
  }), () => r;
2319
2324
  if (Array.isArray(t)) {
2320
2325
  const a = [], c = r && Array.isArray(r);
2321
- if (lr(a, t, r, s))
2326
+ if (ur(a, t, r, s))
2322
2327
  return Ae(() => r = Je(e, a, r, n, !0)), () => r;
2323
2328
  if (a.length === 0) {
2324
2329
  if (r = Oe(e, r, n), o) return r;
2325
- } else c ? r.length === 0 ? Hr(e, a, n) : Fi(e, r, a) : (r && Oe(e), Hr(e, a));
2330
+ } else c ? r.length === 0 ? Br(e, a, n) : Fi(e, r, a) : (r && Oe(e), Br(e, a));
2326
2331
  r = a;
2327
2332
  } else if (t.nodeType) {
2328
2333
  if (Array.isArray(r)) {
@@ -2334,18 +2339,18 @@ function Je(e, t, r, n, s) {
2334
2339
  }
2335
2340
  return r;
2336
2341
  }
2337
- function lr(e, t, r, n) {
2342
+ function ur(e, t, r, n) {
2338
2343
  let s = !1;
2339
2344
  for (let i = 0, o = t.length; i < o; i++) {
2340
2345
  let a = t[i], c = r && r[e.length], d;
2341
2346
  if (!(a == null || a === !0 || a === !1)) if ((d = typeof a) == "object" && a.nodeType)
2342
2347
  e.push(a);
2343
2348
  else if (Array.isArray(a))
2344
- s = lr(e, a, c) || s;
2349
+ s = ur(e, a, c) || s;
2345
2350
  else if (d === "function")
2346
2351
  if (n) {
2347
2352
  for (; typeof a == "function"; ) a = a();
2348
- s = lr(e, Array.isArray(a) ? a : [a], Array.isArray(c) ? c : [c]) || s;
2353
+ s = ur(e, Array.isArray(a) ? a : [a], Array.isArray(c) ? c : [c]) || s;
2349
2354
  } else
2350
2355
  e.push(a), s = !0;
2351
2356
  else {
@@ -2355,7 +2360,7 @@ function lr(e, t, r, n) {
2355
2360
  }
2356
2361
  return s;
2357
2362
  }
2358
- function Hr(e, t, r = null) {
2363
+ function Br(e, t, r = null) {
2359
2364
  for (let n = 0, s = t.length; n < s; n++) e.insertBefore(t[n], r);
2360
2365
  }
2361
2366
  function Oe(e, t, r, n) {
@@ -2387,7 +2392,7 @@ function Au(e) {
2387
2392
  const o = n();
2388
2393
  if (o instanceof HTMLHeadElement) {
2389
2394
  const [a, c] = Y(!1), d = () => c(!0);
2390
- Te((u) => cr(o, () => a() ? u() : i(), null)), Ge(d);
2395
+ Te((u) => lr(o, () => a() ? u() : i(), null)), Ge(d);
2391
2396
  } else {
2392
2397
  const a = xn(e.isSVG ? "g" : "div", e.isSVG), c = t && a.attachShadow ? a.attachShadow({
2393
2398
  mode: "open"
@@ -2397,7 +2402,7 @@ function Au(e) {
2397
2402
  return r.parentNode;
2398
2403
  },
2399
2404
  configurable: !0
2400
- }), cr(c, i), o.appendChild(a), e.ref && e.ref(a), Ge(() => o.removeChild(a));
2405
+ }), lr(c, i), o.appendChild(a), e.ref && e.ref(a), Ge(() => o.removeChild(a));
2401
2406
  }
2402
2407
  }, void 0, {
2403
2408
  render: !0
@@ -2488,7 +2493,7 @@ function $e(e, t) {
2488
2493
  function mt(e, t) {
2489
2494
  return e.indexOf(t) !== -1;
2490
2495
  }
2491
- function Br(e, t) {
2496
+ function Vr(e, t) {
2492
2497
  for (let r = 0; r < e.length; r++) {
2493
2498
  const n = e[r];
2494
2499
  if (t(n))
@@ -2508,7 +2513,7 @@ var sa = class {
2508
2513
  findByName(e) {
2509
2514
  return this.transfomers[e];
2510
2515
  }
2511
- }, ia = (e) => Object.prototype.toString.call(e).slice(8, -1), Dn = (e) => typeof e > "u", aa = (e) => e === null, Qe = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, ur = (e) => Qe(e) && Object.keys(e).length === 0, ve = (e) => Array.isArray(e), oa = (e) => typeof e == "string", ca = (e) => typeof e == "number" && !isNaN(e), la = (e) => typeof e == "boolean", ua = (e) => e instanceof RegExp, ze = (e) => e instanceof Map, Ye = (e) => e instanceof Set, Mn = (e) => ia(e) === "Symbol", da = (e) => e instanceof Date && !isNaN(e.valueOf()), fa = (e) => e instanceof Error, Vr = (e) => typeof e == "number" && isNaN(e), ha = (e) => la(e) || aa(e) || Dn(e) || ca(e) || oa(e) || Mn(e), ma = (e) => typeof e == "bigint", ya = (e) => e === 1 / 0 || e === -1 / 0, pa = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), ga = (e) => e instanceof URL, Ln = (e) => e.replace(/\./g, "\\."), Ht = (e) => e.map(String).map(Ln).join("."), Ke = (e) => {
2516
+ }, ia = (e) => Object.prototype.toString.call(e).slice(8, -1), Dn = (e) => typeof e > "u", aa = (e) => e === null, Qe = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, dr = (e) => Qe(e) && Object.keys(e).length === 0, ve = (e) => Array.isArray(e), oa = (e) => typeof e == "string", ca = (e) => typeof e == "number" && !isNaN(e), la = (e) => typeof e == "boolean", ua = (e) => e instanceof RegExp, ze = (e) => e instanceof Map, Ye = (e) => e instanceof Set, Mn = (e) => ia(e) === "Symbol", da = (e) => e instanceof Date && !isNaN(e.valueOf()), fa = (e) => e instanceof Error, Wr = (e) => typeof e == "number" && isNaN(e), ha = (e) => la(e) || aa(e) || Dn(e) || ca(e) || oa(e) || Mn(e), ma = (e) => typeof e == "bigint", ya = (e) => e === 1 / 0 || e === -1 / 0, pa = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), ga = (e) => e instanceof URL, Ln = (e) => e.replace(/\./g, "\\."), Ht = (e) => e.map(String).map(Ln).join("."), Ke = (e) => {
2512
2517
  const t = [];
2513
2518
  let r = "";
2514
2519
  for (let s = 0; s < e.length; s++) {
@@ -2566,7 +2571,7 @@ var Un = [
2566
2571
  (e) => new Set(e)
2567
2572
  ),
2568
2573
  ne(ze, "map", (e) => [...e.entries()], (e) => new Map(e)),
2569
- ne((e) => Vr(e) || ya(e), "number", (e) => Vr(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
2574
+ ne((e) => Wr(e) || ya(e), "number", (e) => Wr(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
2570
2575
  ne((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
2571
2576
  ne(ga, "URL", (e) => e.toString(), (e) => new URL(e))
2572
2577
  ];
@@ -2620,14 +2625,14 @@ var Bn = $t(Hn, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
2620
2625
  if (!n)
2621
2626
  throw new Error("Trying to deserialize unknown custom value");
2622
2627
  return n.deserialize(e);
2623
- }), wa = [Bn, Fn, Vn, Kn], Wr = (e, t) => {
2624
- const r = Br(wa, (s) => s.isApplicable(e, t));
2628
+ }), wa = [Bn, Fn, Vn, Kn], jr = (e, t) => {
2629
+ const r = Vr(wa, (s) => s.isApplicable(e, t));
2625
2630
  if (r)
2626
2631
  return {
2627
2632
  value: r.transform(e, t),
2628
2633
  type: r.annotation(e, t)
2629
2634
  };
2630
- const n = Br(Un, (s) => s.isApplicable(e, t));
2635
+ const n = Vr(Un, (s) => s.isApplicable(e, t));
2631
2636
  if (n)
2632
2637
  return {
2633
2638
  value: n.transform(e, t),
@@ -2693,7 +2698,7 @@ var Ea = (e, t) => {
2693
2698
  e = e[n];
2694
2699
  }
2695
2700
  return e;
2696
- }, dr = (e, t, r) => {
2701
+ }, fr = (e, t, r) => {
2697
2702
  if (jn(t), t.length === 0)
2698
2703
  return r(e);
2699
2704
  let n = e;
@@ -2742,34 +2747,34 @@ var Ea = (e, t) => {
2742
2747
  }
2743
2748
  return e;
2744
2749
  };
2745
- function fr(e, t, r = []) {
2750
+ function hr(e, t, r = []) {
2746
2751
  if (!e)
2747
2752
  return;
2748
2753
  if (!ve(e)) {
2749
- $e(e, (i, o) => fr(i, t, [...r, ...Ke(o)]));
2754
+ $e(e, (i, o) => hr(i, t, [...r, ...Ke(o)]));
2750
2755
  return;
2751
2756
  }
2752
2757
  const [n, s] = e;
2753
2758
  s && $e(s, (i, o) => {
2754
- fr(i, t, [...r, ...Ke(o)]);
2759
+ hr(i, t, [...r, ...Ke(o)]);
2755
2760
  }), t(n, r);
2756
2761
  }
2757
2762
  function Sa(e, t, r) {
2758
- return fr(t, (n, s) => {
2759
- e = dr(e, s, (i) => va(i, n, r));
2763
+ return hr(t, (n, s) => {
2764
+ e = fr(e, s, (i) => va(i, n, r));
2760
2765
  }), e;
2761
2766
  }
2762
2767
  function Ta(e, t) {
2763
2768
  function r(n, s) {
2764
2769
  const i = Ea(e, Ke(s));
2765
2770
  n.map(Ke).forEach((o) => {
2766
- e = dr(e, o, () => i);
2771
+ e = fr(e, o, () => i);
2767
2772
  });
2768
2773
  }
2769
2774
  if (ve(t)) {
2770
2775
  const [n, s] = t;
2771
2776
  n.forEach((i) => {
2772
- e = dr(e, Ke(i), () => e);
2777
+ e = fr(e, Ke(i), () => e);
2773
2778
  }), s && $e(s, r);
2774
2779
  } else
2775
2780
  $e(t, r);
@@ -2789,7 +2794,7 @@ function ka(e, t) {
2789
2794
  t || (s = s.map((a) => a.map(String)).sort((a, c) => a.length - c.length));
2790
2795
  const [i, ...o] = s;
2791
2796
  i.length === 0 ? n = o.map(Ht) : r[Ht(i)] = o.map(Ht);
2792
- }), n ? ur(r) ? [n] : [n, r] : ur(r) ? void 0 : r;
2797
+ }), n ? dr(r) ? [n] : [n, r] : dr(r) ? void 0 : r;
2793
2798
  }
2794
2799
  var Gn = (e, t, r, n, s = [], i = [], o = /* @__PURE__ */ new Map()) => {
2795
2800
  const a = ha(e);
@@ -2802,7 +2807,7 @@ var Gn = (e, t, r, n, s = [], i = [], o = /* @__PURE__ */ new Map()) => {
2802
2807
  } : h;
2803
2808
  }
2804
2809
  if (!Aa(e, r)) {
2805
- const h = Wr(e, r), m = h ? {
2810
+ const h = jr(e, r), m = h ? {
2806
2811
  transformedValue: h.value,
2807
2812
  annotations: [h.type]
2808
2813
  } : {
@@ -2814,7 +2819,7 @@ var Gn = (e, t, r, n, s = [], i = [], o = /* @__PURE__ */ new Map()) => {
2814
2819
  return {
2815
2820
  transformedValue: null
2816
2821
  };
2817
- const c = Wr(e, r), d = c?.value ?? e, u = ve(d) ? [] : {}, l = {};
2822
+ const c = jr(e, r), d = c?.value ?? e, u = ve(d) ? [] : {}, l = {};
2818
2823
  $e(d, (h, m) => {
2819
2824
  if (m === "__proto__" || m === "constructor" || m === "prototype")
2820
2825
  throw new Error(`Detected property ${m}. This is a prototype pollution risk, please remove it from your object.`);
@@ -2823,7 +2828,7 @@ var Gn = (e, t, r, n, s = [], i = [], o = /* @__PURE__ */ new Map()) => {
2823
2828
  l[Ln(m) + "." + w] = b;
2824
2829
  });
2825
2830
  });
2826
- const f = ur(l) ? {
2831
+ const f = dr(l) ? {
2827
2832
  transformedValue: u,
2828
2833
  annotations: c ? [c.type] : void 0
2829
2834
  } : {
@@ -2835,7 +2840,7 @@ var Gn = (e, t, r, n, s = [], i = [], o = /* @__PURE__ */ new Map()) => {
2835
2840
  function qn(e) {
2836
2841
  return Object.prototype.toString.call(e).slice(8, -1);
2837
2842
  }
2838
- function jr(e) {
2843
+ function Gr(e) {
2839
2844
  return qn(e) === "Array";
2840
2845
  }
2841
2846
  function Oa(e) {
@@ -2853,16 +2858,16 @@ function _a(e, t, r, n, s) {
2853
2858
  configurable: !0
2854
2859
  });
2855
2860
  }
2856
- function hr(e, t = {}) {
2857
- if (jr(e))
2858
- return e.map((s) => hr(s, t));
2861
+ function mr(e, t = {}) {
2862
+ if (Gr(e))
2863
+ return e.map((s) => mr(s, t));
2859
2864
  if (!Oa(e))
2860
2865
  return e;
2861
2866
  const r = Object.getOwnPropertyNames(e), n = Object.getOwnPropertySymbols(e);
2862
2867
  return [...r, ...n].reduce((s, i) => {
2863
- if (jr(t.props) && !t.props.includes(i))
2868
+ if (Gr(t.props) && !t.props.includes(i))
2864
2869
  return s;
2865
- const o = e[i], a = hr(o, t);
2870
+ const o = e[i], a = mr(o, t);
2866
2871
  return _a(s, i, a, e, t.nonenumerable), s;
2867
2872
  }, {});
2868
2873
  }
@@ -2889,7 +2894,7 @@ var C = class {
2889
2894
  }
2890
2895
  deserialize(e) {
2891
2896
  const { json: t, meta: r } = e;
2892
- let n = hr(t);
2897
+ let n = mr(t);
2893
2898
  return r?.values && (n = Sa(n, r.values, this)), r?.referentialEqualities && (n = Ta(n, r.referentialEqualities)), n;
2894
2899
  }
2895
2900
  stringify(e) {
@@ -3084,7 +3089,7 @@ var Pu = (e, t = !1) => {
3084
3089
  const t = Ki(() => {
3085
3090
  const r = this, [n] = this.#i, [s] = this.#c, [i] = this.#l, [o] = this.#u, [a] = this.#f, [c] = this.#e;
3086
3091
  let d;
3087
- return this.#d ? d = this.#d : (d = _i(() => import("./LNWAZHJI.CTyyKpQO.js")), this.#d = d), xa(this.#o, this.#a), Ai(d, ki({
3092
+ return this.#d ? d = this.#d : (d = _i(() => import("./LNWAZHJI.BI0FUPaO.js")), this.#d = d), xa(this.#o, this.#a), Ai(d, ki({
3088
3093
  get queryFlavor() {
3089
3094
  return r.#r;
3090
3095
  },
@@ -3249,12 +3254,12 @@ let ee = class extends Ee {
3249
3254
  }
3250
3255
  };
3251
3256
  $(ee, "code", "ERR_JWT_CLAIM_VALIDATION_FAILED");
3252
- let mr = class extends Ee {
3257
+ let yr = class extends Ee {
3253
3258
  constructor(t, r, n = "unspecified", s = "unspecified") {
3254
3259
  super(t, { cause: { claim: n, reason: s, payload: r } }), $(this, "code", "ERR_JWT_EXPIRED"), $(this, "claim"), $(this, "reason"), $(this, "payload"), this.claim = n, this.reason = s, this.payload = r;
3255
3260
  }
3256
3261
  };
3257
- $(mr, "code", "ERR_JWT_EXPIRED");
3262
+ $(yr, "code", "ERR_JWT_EXPIRED");
3258
3263
  let Yn = class extends Ee {
3259
3264
  constructor() {
3260
3265
  super(...arguments), $(this, "code", "ERR_JOSE_ALG_NOT_ALLOWED");
@@ -3593,7 +3598,7 @@ const to = (e, t, r, n, s) => {
3593
3598
  if (t)
3594
3599
  return new Set(t);
3595
3600
  };
3596
- function Sr(e) {
3601
+ function Tr(e) {
3597
3602
  return Xe(e) && typeof e.kty == "string";
3598
3603
  }
3599
3604
  function no(e) {
@@ -3606,7 +3611,7 @@ function io(e) {
3606
3611
  return e.kty === "oct" && typeof e.k == "string";
3607
3612
  }
3608
3613
  let we;
3609
- const Gr = async (e, t, r, n = !1) => {
3614
+ const qr = async (e, t, r, n = !1) => {
3610
3615
  we || (we = /* @__PURE__ */ new WeakMap());
3611
3616
  let s = we.get(e);
3612
3617
  if (s != null && s[r])
@@ -3713,12 +3718,12 @@ const Gr = async (e, t, r, n = !1) => {
3713
3718
  throw n;
3714
3719
  }
3715
3720
  let r = e.export({ format: "jwk" });
3716
- return Gr(e, r, t);
3721
+ return qr(e, r, t);
3717
3722
  }
3718
- if (Sr(e))
3719
- return e.k ? Be(e.k) : Gr(e, e, t, !0);
3723
+ if (Tr(e))
3724
+ return e.k ? Be(e.k) : qr(e, e, t, !0);
3720
3725
  throw new Error("unreachable");
3721
- }, Pe = (e) => e?.[Symbol.toStringTag], yr = (e, t, r) => {
3726
+ }, Pe = (e) => e?.[Symbol.toStringTag], pr = (e, t, r) => {
3722
3727
  var n, s;
3723
3728
  if (t.use !== void 0) {
3724
3729
  let i;
@@ -3764,8 +3769,8 @@ const Gr = async (e, t, r, n = !1) => {
3764
3769
  return !0;
3765
3770
  }, co = (e, t, r) => {
3766
3771
  if (!(t instanceof Uint8Array)) {
3767
- if (Sr(t)) {
3768
- if (io(t) && yr(e, t, r))
3772
+ if (Tr(t)) {
3773
+ if (io(t) && pr(e, t, r))
3769
3774
  return;
3770
3775
  throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present');
3771
3776
  }
@@ -3775,16 +3780,16 @@ const Gr = async (e, t, r, n = !1) => {
3775
3780
  throw new TypeError(`${Pe(t)} instances for symmetric algorithms must be of type "secret"`);
3776
3781
  }
3777
3782
  }, lo = (e, t, r) => {
3778
- if (Sr(t))
3783
+ if (Tr(t))
3779
3784
  switch (r) {
3780
3785
  case "decrypt":
3781
3786
  case "sign":
3782
- if (no(t) && yr(e, t, r))
3787
+ if (no(t) && pr(e, t, r))
3783
3788
  return;
3784
3789
  throw new TypeError("JSON Web Key for this operation be a private JWK");
3785
3790
  case "encrypt":
3786
3791
  case "verify":
3787
- if (so(t) && yr(e, t, r))
3792
+ if (so(t) && pr(e, t, r))
3788
3793
  return;
3789
3794
  throw new TypeError("JSON Web Key for this operation be a public JWK");
3790
3795
  }
@@ -3923,7 +3928,7 @@ async function po(e, t, r) {
3923
3928
  const a = await yo({ payload: s, protected: n, signature: i }, t, r), c = { payload: a.payload, protectedHeader: a.protectedHeader };
3924
3929
  return typeof t == "function" ? { ...c, key: a.key } : c;
3925
3930
  }
3926
- const go = (e) => Math.floor(e.getTime() / 1e3), ss = 60, is = ss * 60, Tr = is * 24, bo = Tr * 7, wo = Tr * 365.25, vo = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, qr = (e) => {
3931
+ const go = (e) => Math.floor(e.getTime() / 1e3), ss = 60, is = ss * 60, Ar = is * 24, bo = Ar * 7, wo = Ar * 365.25, vo = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, Jr = (e) => {
3927
3932
  const t = vo.exec(e);
3928
3933
  if (!t || t[4] && t[1])
3929
3934
  throw new TypeError("Invalid time period format");
@@ -3954,7 +3959,7 @@ const go = (e) => Math.floor(e.getTime() / 1e3), ss = 60, is = ss * 60, Tr = is
3954
3959
  case "day":
3955
3960
  case "days":
3956
3961
  case "d":
3957
- s = Math.round(r * Tr);
3962
+ s = Math.round(r * Ar);
3958
3963
  break;
3959
3964
  case "week":
3960
3965
  case "weeks":
@@ -3966,7 +3971,7 @@ const go = (e) => Math.floor(e.getTime() / 1e3), ss = 60, is = ss * 60, Tr = is
3966
3971
  break;
3967
3972
  }
3968
3973
  return t[1] === "-" || t[4] === "ago" ? -s : s;
3969
- }, Jr = (e) => e.toLowerCase().replace(/^application\//, ""), Eo = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
3974
+ }, Qr = (e) => e.toLowerCase().replace(/^application\//, ""), Eo = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
3970
3975
  function So(e, t, r = {}) {
3971
3976
  let n;
3972
3977
  try {
@@ -3976,7 +3981,7 @@ function So(e, t, r = {}) {
3976
3981
  if (!Xe(n))
3977
3982
  throw new se("JWT Claims Set must be a top-level JSON object");
3978
3983
  const { typ: s } = r;
3979
- if (s && (typeof e.typ != "string" || Jr(e.typ) !== Jr(s)))
3984
+ if (s && (typeof e.typ != "string" || Qr(e.typ) !== Qr(s)))
3980
3985
  throw new ee('unexpected "typ" JWT header value', n, "typ", "check_failed");
3981
3986
  const { requiredClaims: i = [], issuer: o, subject: a, audience: c, maxTokenAge: d } = r, u = [...i];
3982
3987
  d !== void 0 && u.push("iat"), c !== void 0 && u.push("aud"), a !== void 0 && u.push("sub"), o !== void 0 && u.push("iss");
@@ -3992,7 +3997,7 @@ function So(e, t, r = {}) {
3992
3997
  let l;
3993
3998
  switch (typeof r.clockTolerance) {
3994
3999
  case "string":
3995
- l = qr(r.clockTolerance);
4000
+ l = Jr(r.clockTolerance);
3996
4001
  break;
3997
4002
  case "number":
3998
4003
  l = r.clockTolerance;
@@ -4016,12 +4021,12 @@ function So(e, t, r = {}) {
4016
4021
  if (typeof n.exp != "number")
4017
4022
  throw new ee('"exp" claim must be a number', n, "exp", "invalid");
4018
4023
  if (n.exp <= h - l)
4019
- throw new mr('"exp" claim timestamp check failed', n, "exp", "check_failed");
4024
+ throw new yr('"exp" claim timestamp check failed', n, "exp", "check_failed");
4020
4025
  }
4021
4026
  if (d) {
4022
- const m = h - n.iat, p = typeof d == "number" ? d : qr(d);
4027
+ const m = h - n.iat, p = typeof d == "number" ? d : Jr(d);
4023
4028
  if (m - l > p)
4024
- throw new mr('"iat" claim timestamp check failed (too far in the past)', n, "iat", "check_failed");
4029
+ throw new yr('"iat" claim timestamp check failed (too far in the past)', n, "iat", "check_failed");
4025
4030
  if (m < 0 - l)
4026
4031
  throw new ee('"iat" claim timestamp check failed (it should be in the past)', n, "iat", "check_failed");
4027
4032
  }
@@ -4092,26 +4097,26 @@ function _o() {
4092
4097
  }
4093
4098
  return Vt(Oo);
4094
4099
  }
4095
- const Ro = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Qr = { randomUUID: Ro };
4096
- function zr(e, t, r) {
4100
+ const Ro = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), zr = { randomUUID: Ro };
4101
+ function Yr(e, t, r) {
4097
4102
  var n;
4098
- if (Qr.randomUUID && !e)
4099
- return Qr.randomUUID();
4103
+ if (zr.randomUUID && !e)
4104
+ return zr.randomUUID();
4100
4105
  e = e || {};
4101
4106
  const s = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? _o();
4102
4107
  if (s.length < 16)
4103
4108
  throw new Error("Random bytes length must be >= 16");
4104
4109
  return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, ko(s);
4105
4110
  }
4106
- const Yr = globalThis.crypto, Co = (e) => `${zr()}${zr()}`.slice(0, e), No = (e) => btoa(
4111
+ const Xr = globalThis.crypto, Co = (e) => `${Yr()}${Yr()}`.slice(0, e), No = (e) => btoa(
4107
4112
  [...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")
4108
4113
  );
4109
4114
  async function Po(e) {
4110
- if (!Yr.subtle)
4115
+ if (!Xr.subtle)
4111
4116
  throw new Error(
4112
4117
  "crypto.subtle is available only in secure contexts (HTTPS)."
4113
4118
  );
4114
- const t = new TextEncoder().encode(e), r = await Yr.subtle.digest("SHA-256", t);
4119
+ const t = new TextEncoder().encode(e), r = await Xr.subtle.digest("SHA-256", t);
4115
4120
  return No(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
4116
4121
  }
4117
4122
  async function xo(e) {
@@ -4121,7 +4126,7 @@ async function xo(e) {
4121
4126
  code_challenge: r
4122
4127
  };
4123
4128
  }
4124
- const as = dn(null);
4129
+ const as = fn(null);
4125
4130
  var $o = Object.defineProperty, Do = (e, t, r) => t in e ? $o(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Wt = (e, t, r) => Do(e, typeof t != "symbol" ? t + "" : t, r);
4126
4131
  /*!
4127
4132
  @versini/auth-provider v8.0.4
@@ -4149,7 +4154,7 @@ function kt(e) {
4149
4154
  o[a] = s.charCodeAt(a);
4150
4155
  return i;
4151
4156
  }
4152
- function Ar() {
4157
+ function Ir() {
4153
4158
  return Mo.stubThis(globalThis?.PublicKeyCredential !== void 0 && typeof globalThis.PublicKeyCredential == "function");
4154
4159
  }
4155
4160
  const Mo = {
@@ -4302,7 +4307,7 @@ function us(e) {
4302
4307
  async function Ko(e) {
4303
4308
  !e.optionsJSON && e.challenge && (console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."), e = { optionsJSON: e });
4304
4309
  const { optionsJSON: t, useAutoRegister: r = !1 } = e;
4305
- if (!Ar())
4310
+ if (!Ir())
4306
4311
  throw new Error("WebAuthn is not supported in this browser");
4307
4312
  const n = {
4308
4313
  ...t,
@@ -4368,7 +4373,7 @@ function jt(e, t) {
4368
4373
  `, t);
4369
4374
  }
4370
4375
  function Ho() {
4371
- if (!Ar())
4376
+ if (!Ir())
4372
4377
  return Gt.stubThis(new Promise((t) => t(!1)));
4373
4378
  const e = globalThis.PublicKeyCredential;
4374
4379
  return e?.isConditionalMediationAvailable === void 0 ? Gt.stubThis(new Promise((t) => t(!1))) : Gt.stubThis(e.isConditionalMediationAvailable());
@@ -4420,7 +4425,7 @@ function Bo({ error: e, options: t }) {
4420
4425
  async function Vo(e) {
4421
4426
  !e.optionsJSON && e.challenge && (console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."), e = { optionsJSON: e });
4422
4427
  const { optionsJSON: t, useBrowserAutofill: r = !1, verifyBrowserAutofillInput: n = !0 } = e;
4423
- if (!Ar())
4428
+ if (!Ir())
4424
4429
  throw new Error("WebAuthn is not supported in this browser");
4425
4430
  let s;
4426
4431
  t.allowCredentials?.length !== 0 && (s = t.allowCredentials?.map(os));
@@ -4464,23 +4469,23 @@ async function Vo(e) {
4464
4469
  function ds(e, t) {
4465
4470
  window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
4466
4471
  }
4467
- const Xr = (e, t) => {
4472
+ const Zr = (e, t) => {
4468
4473
  const r = JSON.stringify(
4469
4474
  typeof t == "function" ? t() : t
4470
4475
  );
4471
4476
  window.localStorage.setItem(e, r), ds(e, r);
4472
4477
  }, Wo = (e) => {
4473
4478
  window.localStorage.removeItem(e), ds(e, null);
4474
- }, Zr = (e) => window.localStorage.getItem(e), jo = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
4479
+ }, en = (e) => window.localStorage.getItem(e), jo = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
4475
4480
  function ct({
4476
4481
  key: e,
4477
4482
  initialValue: t
4478
4483
  }) {
4479
- const r = Ms(jo, () => Zr(e)), n = de(
4484
+ const r = Ms(jo, () => en(e)), n = de(
4480
4485
  (o) => {
4481
4486
  try {
4482
4487
  const a = typeof o == "function" ? o(JSON.parse(r)) : o;
4483
- a == null ? Wo(e) : Xr(e, a);
4488
+ a == null ? Wo(e) : Zr(e, a);
4484
4489
  } catch (a) {
4485
4490
  console.warn(a);
4486
4491
  }
@@ -4493,7 +4498,7 @@ function ct({
4493
4498
  }, [n]);
4494
4499
  return Z(() => {
4495
4500
  try {
4496
- Zr(e) === null && typeof t < "u" && Xr(e, t);
4501
+ en(e) === null && typeof t < "u" && Zr(e, t);
4497
4502
  } catch (o) {
4498
4503
  console.warn(o);
4499
4504
  }
@@ -4515,10 +4520,10 @@ function Jo() {
4515
4520
  }
4516
4521
  return qt(qo);
4517
4522
  }
4518
- const Qo = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), en = { randomUUID: Qo };
4523
+ const Qo = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), tn = { randomUUID: Qo };
4519
4524
  function Jt(e, t, r) {
4520
- if (en.randomUUID && !e)
4521
- return en.randomUUID();
4525
+ if (tn.randomUUID && !e)
4526
+ return tn.randomUUID();
4522
4527
  e = e || {};
4523
4528
  const n = e.random ?? e.rng?.() ?? Jo();
4524
4529
  if (n.length < 16)
@@ -4888,7 +4893,7 @@ class ac {
4888
4893
  }
4889
4894
  const Ne = () => {
4890
4895
  throw new Error(Xo);
4891
- }, gs = dn({
4896
+ }, gs = fn({
4892
4897
  isAuthenticated: !1,
4893
4898
  isLoading: !1,
4894
4899
  login: Ne,
@@ -4900,7 +4905,7 @@ const Ne = () => {
4900
4905
  logoutReason: "",
4901
4906
  authenticationType: ""
4902
4907
  }), oc = () => ({
4903
- ...wr(gs)
4908
+ ...vr(gs)
4904
4909
  }), cc = (e) => de(
4905
4910
  (...t) => {
4906
4911
  e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
@@ -4930,7 +4935,7 @@ const Ne = () => {
4930
4935
  } : e, dc = ({ children: e }) => {
4931
4936
  const t = oc();
4932
4937
  return /* @__PURE__ */ y(as.Provider, { value: t, children: e });
4933
- }, tn = ({
4938
+ }, rn = ({
4934
4939
  children: e,
4935
4940
  sessionExpiration: t,
4936
4941
  clientId: r,
@@ -4938,7 +4943,7 @@ const Ne = () => {
4938
4943
  debug: s = !1,
4939
4944
  endpoint: i = ec ? "https://auth.gizmette.local.com:3003" : "https://mylogin.gizmette.com/auth"
4940
4945
  }) => {
4941
- const [o, a] = fn(uc, {
4946
+ const [o, a] = hn(uc, {
4942
4947
  ...ps,
4943
4948
  debug: s
4944
4949
  }), c = cc(s), d = j(!1), [u, l, , f] = ct({
@@ -5025,13 +5030,13 @@ const Ne = () => {
5025
5030
  a({ type: Ue, payload: { isLoading: !0 } }), Q();
5026
5031
  const A = Jt();
5027
5032
  O(A), c("login: Logging in with password");
5028
- const { code_verifier: pe, code_challenge: ge } = await xo(), Pr = await sc({
5033
+ const { code_verifier: pe, code_challenge: ge } = await xo(), xr = await sc({
5029
5034
  endpoint: i,
5030
5035
  nonce: A,
5031
5036
  clientId: r,
5032
5037
  code_challenge: ge
5033
5038
  });
5034
- if (Pr.status) {
5039
+ if (xr.status) {
5035
5040
  const ke = await nc({
5036
5041
  endpoint: i,
5037
5042
  username: T,
@@ -5040,7 +5045,7 @@ const Ne = () => {
5040
5045
  sessionExpiration: t,
5041
5046
  nonce: A,
5042
5047
  type: He.CODE,
5043
- code: Pr.data,
5048
+ code: xr.data,
5044
5049
  code_verifier: pe,
5045
5050
  domain: n,
5046
5051
  ua: navigator.userAgent
@@ -5228,19 +5233,19 @@ try {
5228
5233
  } catch {
5229
5234
  }
5230
5235
  const bs = () => {
5231
- const e = wr(as);
5236
+ const e = vr(as);
5232
5237
  if (!e)
5233
5238
  throw new Error("useAuth must be used within an AuthHookProvider");
5234
5239
  return e;
5235
- }, Gu = "I'm having trouble right now. Please try again later.", qu = "action-search", Ju = "action-sort", Qu = "action-toggle-prompt", zu = "action-reset-prompt", ws = "sassy-saint-", Yu = "search", Xu = "sort", Zu = "sort-timestamp", ed = "sort-token-usage", td = "private-disclosure", rd = "reasoning-disclosure", nd = "websearch-disclosure", vs = "service-worker", rn = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", sd = 10, id = 30, ad = "av-prompt", od = "av-prompt-editable", cd = "size-5 sm:size-4", ld = 30, ud = 15, dd = 130, fd = 16, hd = 24, md = 76;
5240
+ }, Gu = "I'm having trouble right now. Please try again later.", qu = "action-search", Ju = "action-sort", Qu = "action-toggle-prompt", zu = "action-reset-prompt", ws = "sassy-saint-", Yu = "search", Xu = "sort", Zu = "sort-timestamp", ed = "sort-token-usage", td = "private-disclosure", rd = "reasoning-disclosure", nd = "websearch-disclosure", vs = "service-worker", nn = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", sd = 10, id = 30, ad = "av-prompt", od = "av-prompt-editable", cd = "size-5 sm:size-4", ld = 30, ud = 15, dd = 130, fd = 16, hd = 24, md = 76;
5236
5241
  let zt = null, le = !1;
5237
5242
  typeof window < "u" && "serviceWorker" in navigator && navigator.serviceWorker.addEventListener("controllerchange", () => {
5238
5243
  le && (le = !1, window.location.reload());
5239
5244
  });
5240
- function Ir() {
5245
+ function kr() {
5241
5246
  return "serviceWorker" in navigator;
5242
5247
  }
5243
- function pr() {
5248
+ function gr() {
5244
5249
  const e = localStorage.getItem(
5245
5250
  ws + vs
5246
5251
  );
@@ -5253,9 +5258,9 @@ function fc(e) {
5253
5258
  );
5254
5259
  }
5255
5260
  async function Es() {
5256
- if (!pr())
5261
+ if (!gr())
5257
5262
  return !1;
5258
- if (!Ir())
5263
+ if (!kr())
5259
5264
  return console.warn("[SW] Service workers not supported"), !1;
5260
5265
  try {
5261
5266
  return zt = await navigator.serviceWorker.register("/sw.js", {
@@ -5273,7 +5278,7 @@ async function Es() {
5273
5278
  }
5274
5279
  }
5275
5280
  async function hc() {
5276
- if (!Ir())
5281
+ if (!kr())
5277
5282
  return !1;
5278
5283
  try {
5279
5284
  const e = await navigator.serviceWorker.getRegistration();
@@ -5292,9 +5297,9 @@ async function yd(e) {
5292
5297
  await Es(), navigator.serviceWorker.controller && le && (le = !1, window.location.reload());
5293
5298
  try {
5294
5299
  navigator.serviceWorker.ready.then(() => {
5295
- le && pr() && (le = !1, window.location.reload());
5300
+ le && gr() && (le = !1, window.location.reload());
5296
5301
  }), setTimeout(() => {
5297
- le && pr() && (le = !1, window.location.reload());
5302
+ le && gr() && (le = !1, window.location.reload());
5298
5303
  }, 3e3);
5299
5304
  } catch {
5300
5305
  }
@@ -5304,7 +5309,7 @@ async function yd(e) {
5304
5309
  } catch {
5305
5310
  }
5306
5311
  try {
5307
- Ir() && await mc();
5312
+ kr() && await mc();
5308
5313
  } catch (t) {
5309
5314
  console.warn("[SW] Failed to invalidate cache:", t);
5310
5315
  }
@@ -5364,7 +5369,7 @@ async function pd(e = {}) {
5364
5369
  return console.warn("[SW] getCacheInfo failed:", r), { version: Yt(), caches: [], totalItems: 0 };
5365
5370
  }
5366
5371
  }
5367
- const nn = (e) => Number.isFinite(e) ? e : 0;
5372
+ const sn = (e) => Number.isFinite(e) ? e : 0;
5368
5373
  function yc(e) {
5369
5374
  return {
5370
5375
  days: Math.trunc(e / 864e5),
@@ -5372,8 +5377,8 @@ function yc(e) {
5372
5377
  minutes: Math.trunc(e / 6e4 % 60),
5373
5378
  seconds: Math.trunc(e / 1e3 % 60),
5374
5379
  milliseconds: Math.trunc(e % 1e3),
5375
- microseconds: Math.trunc(nn(e * 1e3) % 1e3),
5376
- nanoseconds: Math.trunc(nn(e * 1e6) % 1e3)
5380
+ microseconds: Math.trunc(sn(e * 1e3) % 1e3),
5381
+ nanoseconds: Math.trunc(sn(e * 1e6) % 1e3)
5377
5382
  };
5378
5383
  }
5379
5384
  function pc(e) {
@@ -5444,7 +5449,7 @@ function Sc(e, t) {
5444
5449
  const d = t.colonNotation ? ":" : " ";
5445
5450
  return typeof t.unitCount == "number" && (s = s.slice(0, Math.max(t.unitCount, 1))), n + s.join(d);
5446
5451
  }
5447
- const Ss = process.env.NODE_ENV === "production", kr = !Ss, Ts = kr ? "gizmette.local.com" : "gizmette.com", Or = (e, t) => {
5452
+ const Ss = process.env.NODE_ENV === "production", Or = !Ss, Ts = Or ? "gizmette.local.com" : "gizmette.com", _r = (e, t) => {
5448
5453
  const r = e < 0 ? t ? "W" : "S" : t ? "E" : "N", n = 0 | Math.abs(e), s = 0 | Math.abs(e) * 60 % 60, i = (0 | Math.abs(e) * 60 % 1 * 6e3) / 100;
5449
5454
  return {
5450
5455
  dir: r,
@@ -5455,12 +5460,12 @@ const Ss = process.env.NODE_ENV === "production", kr = !Ss, Ts = kr ? "gizmette.
5455
5460
  }, Tc = (e) => {
5456
5461
  if (!e && e !== 0)
5457
5462
  return "N/A";
5458
- const t = Or(e, !1);
5463
+ const t = _r(e, !1);
5459
5464
  return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
5460
5465
  }, Ac = (e) => {
5461
5466
  if (!e && e !== 0)
5462
5467
  return "N/A";
5463
- const t = Or(e, !0);
5468
+ const t = _r(e, !0);
5464
5469
  return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
5465
5470
  }, Ic = async () => {
5466
5471
  const e = {
@@ -5562,7 +5567,7 @@ const Cc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5562
5567
  isAuthenticated: e,
5563
5568
  extraClass: t
5564
5569
  }) => g(
5565
- "px-4 pb-10",
5570
+ "px-4",
5566
5571
  "bg-slate-900",
5567
5572
  "flex-1 overflow-y-auto",
5568
5573
  e ? "pt-0" : "pt-10",
@@ -5604,7 +5609,7 @@ const Cc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5604
5609
  theme: c,
5605
5610
  transition: d,
5606
5611
  icon: u
5607
- }), gd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, DOMAIN: Ts, convertCamelCaseToReadable: Mc, convertDDToDMS: Or, convertLatitudeToDMS: Tc, convertLongitudeToDMS: Ac, debounce: $c, durationFormatter: Pc, extractAverage: Rc, getCurrentGeoLocation: Ic, getMainPaddingClass: Is, getMessageContaintWrapperClass: As, isDev: kr, isLastMessageFromRole: Cc, isProbablyMobile: Os, isProbablyiPhone: Dc, isProd: Ss, isTauri: ks, numberFormatter: Nc, obfuscate: kc, pluralize: xc, renderDataAsList: _c, toastOptions: Lc, unObfuscate: Oc }, Symbol.toStringTag, { value: "Module" })), sn = "av-button", Lt = "icon", _r = "button", gr = "link", Uc = ({
5612
+ }), gd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, DOMAIN: Ts, convertCamelCaseToReadable: Mc, convertDDToDMS: _r, convertLatitudeToDMS: Tc, convertLongitudeToDMS: Ac, debounce: $c, durationFormatter: Pc, extractAverage: Rc, getCurrentGeoLocation: Ic, getMainPaddingClass: Is, getMessageContaintWrapperClass: As, isDev: Or, isLastMessageFromRole: Cc, isProbablyMobile: Os, isProbablyiPhone: Dc, isProd: Ss, isTauri: ks, numberFormatter: Nc, obfuscate: kc, pluralize: xc, renderDataAsList: _c, toastOptions: Lc, unObfuscate: Oc }, Symbol.toStringTag, { value: "Module" })), an = "av-button", Lt = "icon", Rr = "button", br = "link", Uc = ({
5608
5613
  type: e,
5609
5614
  size: t,
5610
5615
  labelRight: r,
@@ -5614,8 +5619,8 @@ const Cc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5614
5619
  }) => {
5615
5620
  const o = "max-h-8 py-0 px-2", a = "max-h-9 h-8 px-3", c = "max-h-12 py-2 px-4";
5616
5621
  switch (e) {
5617
- case _r:
5618
- case gr:
5622
+ case Rr:
5623
+ case br:
5619
5624
  return g({
5620
5625
  [o]: t === "small",
5621
5626
  [a]: t === "medium",
@@ -5648,10 +5653,10 @@ const Cc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5648
5653
  }) => {
5649
5654
  const s = "text-sm font-medium", i = "text-base font-medium", o = "text-lg font-medium";
5650
5655
  switch (e) {
5651
- case _r:
5652
- case gr:
5656
+ case Rr:
5657
+ case br:
5653
5658
  return g({
5654
- "text-center": e === gr,
5659
+ "text-center": e === br,
5655
5660
  [s]: t === "small",
5656
5661
  [i]: t === "medium",
5657
5662
  [o]: t === "large"
@@ -5897,8 +5902,8 @@ const Cc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5897
5902
  align: m,
5898
5903
  radius: p,
5899
5904
  animated: b
5900
- }) => (f || (f = "primary"), r ? g(sn, t) : g(
5901
- sn,
5905
+ }) => (f || (f = "primary"), r ? g(an, t) : g(
5906
+ an,
5902
5907
  Kc({
5903
5908
  mode: n,
5904
5909
  variant: f,
@@ -5930,7 +5935,7 @@ const Cc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5930
5935
  t
5931
5936
  )), Qc = (e, t, r) => {
5932
5937
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof e?.currentTarget?.focus == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
5933
- }, Rr = he.forwardRef((e, t) => {
5938
+ }, Cr = he.forwardRef((e, t) => {
5934
5939
  const { onClick: r, noInternalClick: n = !1, ...s } = e;
5935
5940
  return /* @__PURE__ */ y(
5936
5941
  "button",
@@ -5943,7 +5948,7 @@ const Cc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5943
5948
  }
5944
5949
  );
5945
5950
  });
5946
- Rr.displayName = "BaseButton";
5951
+ Cr.displayName = "BaseButton";
5947
5952
  const Rs = he.forwardRef(
5948
5953
  ({
5949
5954
  children: e,
@@ -5961,7 +5966,7 @@ const Rs = he.forwardRef(
5961
5966
  ...f
5962
5967
  }, h) => {
5963
5968
  const m = _s({
5964
- type: _r,
5969
+ type: Rr,
5965
5970
  mode: r,
5966
5971
  focusMode: n,
5967
5972
  fullWidth: s,
@@ -5975,7 +5980,7 @@ const Rs = he.forwardRef(
5975
5980
  radius: l
5976
5981
  });
5977
5982
  return /* @__PURE__ */ y(
5978
- Rr,
5983
+ Cr,
5979
5984
  {
5980
5985
  ref: h,
5981
5986
  className: m,
@@ -6099,7 +6104,7 @@ const dt = {
6099
6104
  ]), Z(() => () => {
6100
6105
  A.current && clearTimeout(A.current);
6101
6106
  }, []), /* @__PURE__ */ y(
6102
- Rr,
6107
+ Cr,
6103
6108
  {
6104
6109
  ref: pe,
6105
6110
  className: q,
@@ -6109,7 +6114,7 @@ const dt = {
6109
6114
  ...O,
6110
6115
  children: /* @__PURE__ */ X("div", { className: _, children: [
6111
6116
  /* @__PURE__ */ y(
6112
- an,
6117
+ on,
6113
6118
  {
6114
6119
  label: h,
6115
6120
  labelRef: E,
@@ -6120,7 +6125,7 @@ const dt = {
6120
6125
  ),
6121
6126
  /* @__PURE__ */ y("span", { ref: ye, className: Q, children: e }),
6122
6127
  /* @__PURE__ */ y(
6123
- an,
6128
+ on,
6124
6129
  {
6125
6130
  label: f,
6126
6131
  labelRef: v,
@@ -6133,7 +6138,7 @@ const dt = {
6133
6138
  }
6134
6139
  );
6135
6140
  }
6136
- ), an = ({
6141
+ ), on = ({
6137
6142
  labelRef: e,
6138
6143
  labelClass: t,
6139
6144
  label: r,
@@ -6205,7 +6210,7 @@ const rl = he.forwardRef(
6205
6210
  rl.displayName = "ButtonSort";
6206
6211
  const gt = "av-card";
6207
6212
  function nl(e) {
6208
- const t = hn();
6213
+ const t = mn();
6209
6214
  return `${e}${t}`;
6210
6215
  }
6211
6216
  const sl = ({
@@ -6511,7 +6516,7 @@ try {
6511
6516
  });
6512
6517
  } catch {
6513
6518
  }
6514
- const hl = "av-flexgrid", ft = "av-flexgrid-item", _t = 0.25, br = he.createContext({
6519
+ const hl = "av-flexgrid", ft = "av-flexgrid-item", _t = 0.25, wr = he.createContext({
6515
6520
  columnGap: 0,
6516
6521
  rowGap: 0
6517
6522
  }), ml = ({
@@ -6543,7 +6548,7 @@ const hl = "av-flexgrid", ft = "av-flexgrid-item", _t = 0.25, br = he.createCont
6543
6548
  hl,
6544
6549
  "box-border flex flex-wrap"
6545
6550
  ), f = { columnGap: r, rowGap: n };
6546
- return t ? /* @__PURE__ */ y("div", { className: t, children: /* @__PURE__ */ y("div", { className: l, style: u, ...d, children: /* @__PURE__ */ y(br.Provider, { value: f, children: e }) }) }) : /* @__PURE__ */ y("div", { className: l, style: u, ...d, children: /* @__PURE__ */ y(br.Provider, { value: f, children: e }) });
6551
+ return t ? /* @__PURE__ */ y("div", { className: t, children: /* @__PURE__ */ y("div", { className: l, style: u, ...d, children: /* @__PURE__ */ y(wr.Provider, { value: f, children: e }) }) }) : /* @__PURE__ */ y("div", { className: l, style: u, ...d, children: /* @__PURE__ */ y(wr.Provider, { value: f, children: e }) });
6547
6552
  }, Zt = (e, t) => g({
6548
6553
  "basis-1/12": e === 1 && !t,
6549
6554
  "sm:basis-1/12": e === 1 && t === "sm",
@@ -6646,7 +6651,7 @@ const hl = "av-flexgrid", ft = "av-flexgrid-item", _t = 0.25, br = he.createCont
6646
6651
  span: r,
6647
6652
  ...n
6648
6653
  }) => {
6649
- const { columnGap: s, rowGap: i } = wr(br), o = {
6654
+ const { columnGap: s, rowGap: i } = vr(wr), o = {
6650
6655
  paddingLeft: s * _t + "rem",
6651
6656
  paddingTop: i * _t + "rem"
6652
6657
  }, a = yl({
@@ -6697,7 +6702,7 @@ function wl(e) {
6697
6702
  }), [o, e]), [n, s];
6698
6703
  }
6699
6704
  function vl(e) {
6700
- const t = hn();
6705
+ const t = mn();
6701
6706
  if (!e)
6702
6707
  return t;
6703
6708
  if (typeof e == "number" || typeof e == "string")
@@ -6737,7 +6742,7 @@ const Ns = "SET_ANNOUNCEMENT", Ps = "CLEAR_ANNOUNCEMENT", El = {
6737
6742
  t({
6738
6743
  type: Ps
6739
6744
  }), typeof e == "function" && e();
6740
- }, on = ({
6745
+ }, cn = ({
6741
6746
  children: e,
6742
6747
  clearAnnouncementDelay: t,
6743
6748
  clearAnnouncementTimeoutRef: r,
@@ -6763,13 +6768,13 @@ const Ns = "SET_ANNOUNCEMENT", Ps = "CLEAR_ANNOUNCEMENT", El = {
6763
6768
  onAnnouncementClear: i,
6764
6769
  dispatch: o
6765
6770
  }) => {
6766
- clearTimeout(t.current), r ? t.current = setTimeout(on, r, {
6771
+ clearTimeout(t.current), r ? t.current = setTimeout(cn, r, {
6767
6772
  children: e,
6768
6773
  clearAnnouncementDelay: n,
6769
6774
  clearAnnouncementTimeoutRef: s,
6770
6775
  onAnnouncementClear: i,
6771
6776
  dispatch: o
6772
- }) : on({
6777
+ }) : cn({
6773
6778
  children: e,
6774
6779
  clearAnnouncementDelay: n,
6775
6780
  clearAnnouncementTimeoutRef: s,
@@ -6788,7 +6793,7 @@ function xs({
6788
6793
  visible: a,
6789
6794
  ...c
6790
6795
  }) {
6791
- const d = j(null), u = j(null), [l, f] = fn(Sl, {
6796
+ const d = j(null), u = j(null), [l, f] = hn(Sl, {
6792
6797
  announcement: null
6793
6798
  });
6794
6799
  let h = r;
@@ -6973,7 +6978,7 @@ const Il = ({
6973
6978
  helperText: p,
6974
6979
  rightElement: b
6975
6980
  };
6976
- }, Cr = he.forwardRef(
6981
+ }, Nr = he.forwardRef(
6977
6982
  ({
6978
6983
  id: e,
6979
6984
  name: t,
@@ -7078,7 +7083,7 @@ const Il = ({
7078
7083
  ] });
7079
7084
  }
7080
7085
  );
7081
- Cr.displayName = "TextInput";
7086
+ Nr.displayName = "TextInput";
7082
7087
  function Nl(e) {
7083
7088
  return Rt(() => e.every((t) => t == null) ? () => {
7084
7089
  } : (t) => {
@@ -7132,9 +7137,9 @@ const Pl = 500, xl = 5e3, $l = 2e4, $s = he.forwardRef(
7132
7137
  };
7133
7138
  return Z(() => () => {
7134
7139
  w.current && clearTimeout(w.current);
7135
- }, []), /* @__PURE__ */ X(un, { children: [
7140
+ }, []), /* @__PURE__ */ X(dn, { children: [
7136
7141
  /* @__PURE__ */ y(
7137
- Cr,
7142
+ Nr,
7138
7143
  {
7139
7144
  ref: S,
7140
7145
  name: e,
@@ -7203,8 +7208,8 @@ const bd = "user", wd = "assistant", vd = "data", Ds = "OpenAI", Dl = "Anthropic
7203
7208
  if (r.some((n) => e.startsWith(n)))
7204
7209
  return t;
7205
7210
  return null;
7206
- }, Id = "timestamp", kd = "tokenUsage", D = "Callisto", Jl = "ASK! ME! ANYTHING!", Ql = "Log in", zl = "Sign in with a Passkey", Od = "Log out", Yl = "Password", _d = "Usage", Rd = "Profile", Cd = "Settings", Nd = "Chat history", Pd = "About", Nr = "Type your message here.", xd = Nr, $d = `${Nr}
7207
- Press Enter to send it or Shift+Enter for new line.`, Dd = `${Nr}
7211
+ }, Id = "timestamp", kd = "tokenUsage", D = "Callisto", Jl = "ASK! ME! ANYTHING!", Ql = "Log in", zl = "Sign in with a Passkey", Od = "Log out", Yl = "Password", _d = "Usage", Rd = "Profile", Cd = "Settings", Nd = "Chat history", Pd = "About", Pr = "Type your message here.", xd = Pr, $d = `${Pr}
7212
+ Press Enter to send it or Shift+Enter for new line.`, Dd = `${Pr}
7208
7213
  Press Ctrl+Enter to send it or Enter for new line.`, Md = "{{clipboard}}", M = "Review important details.", Ld = [
7209
7214
  `Sometimes, ${D} just makes stuff up. ${M}`,
7210
7215
  `${D} may invent facts on the fly. ${M}`,
@@ -7325,7 +7330,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Md = "{{clipboard}}", M = "
7325
7330
  /* @__PURE__ */ y("form", { className: "mt-5", onSubmit: l, children: /* @__PURE__ */ y(ml, { alignHorizontal: "center", children: /* @__PURE__ */ y(Se, { span: 6, children: /* @__PURE__ */ X(al, { mode: "dark", children: [
7326
7331
  /* @__PURE__ */ y(Se, { span: 12, className: "mt-7", children: i && /* @__PURE__ */ y("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: i }) }),
7327
7332
  /* @__PURE__ */ y(Se, { span: 12, children: /* @__PURE__ */ y(
7328
- Cr,
7333
+ Nr,
7329
7334
  {
7330
7335
  className: "mt-7",
7331
7336
  required: !0,
@@ -7389,7 +7394,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Md = "{{clipboard}}", M = "
7389
7394
  children: Ql
7390
7395
  }
7391
7396
  ) }),
7392
- !ks() && /* @__PURE__ */ X(un, { children: [
7397
+ !ks() && /* @__PURE__ */ X(dn, { children: [
7393
7398
  /* @__PURE__ */ y(Se, { span: 12, children: /* @__PURE__ */ y("div", { className: "text-center text-copy-light mt-2 mb-2", children: "or" }) }),
7394
7399
  /* @__PURE__ */ y(Se, { span: 12, children: /* @__PURE__ */ y(
7395
7400
  Ot,
@@ -7409,10 +7414,10 @@ Press Ctrl+Enter to send it or Enter for new line.`, Md = "{{clipboard}}", M = "
7409
7414
  ]
7410
7415
  }
7411
7416
  );
7412
- }, eu = new URL(document.location.href).searchParams, cn = !!eu.get("debug") || !1, tu = Us(() => import(
7417
+ }, eu = new URL(document.location.href).searchParams, ln = !!eu.get("debug") || !1, tu = Us(() => import(
7413
7418
  /* webpackChunkName: "LazyApp" */
7414
- "./App.C12jugrG.js"
7415
- ).then((e) => e.App)), ru = new oi(), ln = ({
7419
+ "./App.DeYjNv3C.js"
7420
+ ).then((e) => e.App)), ru = new oi(), un = ({
7416
7421
  isComponent: e,
7417
7422
  headerHeight: t
7418
7423
  }) => {
@@ -7429,16 +7434,16 @@ Press Ctrl+Enter to send it or Enter for new line.`, Md = "{{clipboard}}", M = "
7429
7434
  e || Es().catch((n) => {
7430
7435
  console.error("[SW] Failed to register service worker:", n);
7431
7436
  });
7432
- }, [e]), kr ? /* @__PURE__ */ y(
7433
- tn,
7437
+ }, [e]), Or ? /* @__PURE__ */ y(
7438
+ rn,
7434
7439
  {
7435
- clientId: rn,
7440
+ clientId: nn,
7436
7441
  domain: r,
7437
- debug: cn,
7442
+ debug: ln,
7438
7443
  endpoint: process.env.PUBLIC_AUTH_SERVER_URL,
7439
- children: /* @__PURE__ */ y(ln, { isComponent: e, headerHeight: t })
7444
+ children: /* @__PURE__ */ y(un, { isComponent: e, headerHeight: t })
7440
7445
  }
7441
- ) : /* @__PURE__ */ y(tn, { clientId: rn, domain: r, debug: cn, children: /* @__PURE__ */ y(ln, { isComponent: e, headerHeight: t }) })), Jd = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ y(
7446
+ ) : /* @__PURE__ */ y(rn, { clientId: nn, domain: r, debug: ln, children: /* @__PURE__ */ y(un, { isComponent: e, headerHeight: t }) })), Jd = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ y(
7442
7447
  nu,
7443
7448
  {
7444
7449
  isComponent: !0,
@@ -7532,7 +7537,7 @@ export {
7532
7537
  at as deleteNestedDataByPath,
7533
7538
  Pu as displayValue,
7534
7539
  ei as fetchState,
7535
- yn as focusManager,
7540
+ pn as focusManager,
7536
7541
  pd as getCacheInfo,
7537
7542
  Ic as getCurrentGeoLocation,
7538
7543
  Is as getMainPaddingClass,
@@ -7545,11 +7550,11 @@ export {
7545
7550
  _u as getSidedProp,
7546
7551
  yd as handleServiceWorkerToggle,
7547
7552
  Dl as i,
7548
- cr as insert,
7553
+ lr as insert,
7549
7554
  Os as isProbablyMobile,
7550
7555
  Dc as isProbablyiPhone,
7551
7556
  Nt as isServer,
7552
- pr as isServiceWorkerEnabled,
7557
+ gr as isServiceWorkerEnabled,
7553
7558
  ks as isTauri,
7554
7559
  Ks as isValidTimeout,
7555
7560
  Se as j,
@@ -7568,7 +7573,7 @@ export {
7568
7573
  Ge as onCleanup,
7569
7574
  mi as onMount,
7570
7575
  kd as pe,
7571
- Cr as pe$1,
7576
+ Nr as pe$1,
7572
7577
  Qs as pendingThenable,
7573
7578
  xc as pluralize,
7574
7579
  fl as r,
@@ -7578,7 +7583,7 @@ export {
7578
7583
  tr as resolveStaleTime,
7579
7584
  bd as s,
7580
7585
  Ra as serialize,
7581
- or as setAttribute,
7586
+ cr as setAttribute,
7582
7587
  ou as shallowEqualObjects,
7583
7588
  cu as shouldThrowError,
7584
7589
  xu as sortFns,