@versini/sassysaint 8.23.0 → 8.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- var An = (e) => {
1
+ var In = (e) => {
2
2
  throw TypeError(e);
3
3
  };
4
- var xr = (e, t, r) => t.has(e) || An("Cannot " + r);
5
- var f = (e, t, r) => (xr(e, t, "read from private field"), r ? r.call(e) : t.get(e)), A = (e, t, r) => t.has(e) ? An("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), w = (e, t, r, n) => (xr(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), Q = (e, t, r) => (xr(e, t, "access private method"), r);
4
+ var xr = (e, t, r) => t.has(e) || In("Cannot " + r);
5
+ var f = (e, t, r) => (xr(e, t, "read from private field"), r ? r.call(e) : t.get(e)), A = (e, t, r) => t.has(e) ? In("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), w = (e, t, r, n) => (xr(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), Q = (e, t, r) => (xr(e, t, "access private method"), r);
6
6
  var Jt = (e, t, r, n) => ({
7
7
  set _(s) {
8
8
  w(e, t, s, r);
@@ -13,7 +13,7 @@ var Jt = (e, t, r, n) => ({
13
13
  });
14
14
  import { jsx as p, jsxs as te, Fragment as dr } from "react/jsx-runtime";
15
15
  import * as oe from "react";
16
- import ke, { createContext as ls, useReducer as us, useCallback as Ae, useRef as J, useEffect as de, useSyncExternalStore as ki, useContext as yn, useLayoutEffect as fr, useState as Te, useMemo as Tr, useId as ds, Suspense as Ri, lazy as Oi } from "react";
16
+ import ke, { createContext as us, useReducer as ds, useCallback as Ae, useRef as J, useEffect as de, useSyncExternalStore as Ri, useContext as yn, useLayoutEffect as fr, useState as Te, useMemo as Tr, useId as fs, Suspense as Oi, lazy as _i } from "react";
17
17
  import b from "clsx";
18
18
  var Ar = class {
19
19
  constructor() {
@@ -34,22 +34,22 @@ var Ar = class {
34
34
  }, Ir = typeof window > "u" || "Deno" in globalThis;
35
35
  function ce() {
36
36
  }
37
- function _i(e, t) {
37
+ function Ci(e, t) {
38
38
  return typeof e == "function" ? e(t) : e;
39
39
  }
40
- function Ci(e) {
40
+ function Ni(e) {
41
41
  return typeof e == "number" && e >= 0 && e !== 1 / 0;
42
42
  }
43
- function Ni(e, t) {
43
+ function Pi(e, t) {
44
44
  return Math.max(e + (t || 0) - Date.now(), 0);
45
45
  }
46
46
  function zr(e, t) {
47
47
  return typeof e == "function" ? e(t) : e;
48
48
  }
49
- function Pi(e, t) {
49
+ function xi(e, t) {
50
50
  return typeof e == "function" ? e(t) : e;
51
51
  }
52
- function In(e, t) {
52
+ function kn(e, t) {
53
53
  const {
54
54
  type: r = "all",
55
55
  exact: n,
@@ -72,7 +72,7 @@ function In(e, t) {
72
72
  }
73
73
  return !(typeof o == "boolean" && t.isStale() !== o || s && s !== t.state.fetchStatus || i && !i(t));
74
74
  }
75
- function kn(e, t) {
75
+ function Rn(e, t) {
76
76
  const { exact: r, status: n, predicate: s, mutationKey: i } = e;
77
77
  if (i) {
78
78
  if (!t.options.mutationKey)
@@ -100,7 +100,7 @@ function Ct(e, t) {
100
100
  function Qr(e, t) {
101
101
  if (e === t)
102
102
  return e;
103
- const r = Rn(e) && Rn(t);
103
+ const r = On(e) && On(t);
104
104
  if (r || Yr(e) && Yr(t)) {
105
105
  const n = r ? e : Object.keys(e), s = n.length, i = r ? t : Object.keys(t), a = i.length, o = r ? [] : {};
106
106
  let c = 0;
@@ -112,7 +112,7 @@ function Qr(e, t) {
112
112
  }
113
113
  return t;
114
114
  }
115
- function wu(e, t) {
115
+ function vu(e, t) {
116
116
  if (!t || Object.keys(e).length !== Object.keys(t).length)
117
117
  return !1;
118
118
  for (const r in e)
@@ -120,27 +120,27 @@ function wu(e, t) {
120
120
  return !1;
121
121
  return !0;
122
122
  }
123
- function Rn(e) {
123
+ function On(e) {
124
124
  return Array.isArray(e) && e.length === Object.keys(e).length;
125
125
  }
126
126
  function Yr(e) {
127
- if (!On(e))
127
+ if (!_n(e))
128
128
  return !1;
129
129
  const t = e.constructor;
130
130
  if (t === void 0)
131
131
  return !0;
132
132
  const r = t.prototype;
133
- return !(!On(r) || !r.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
133
+ return !(!_n(r) || !r.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
134
134
  }
135
- function On(e) {
135
+ function _n(e) {
136
136
  return Object.prototype.toString.call(e) === "[object Object]";
137
137
  }
138
- function xi(e) {
138
+ function Di(e) {
139
139
  return new Promise((t) => {
140
140
  setTimeout(t, e);
141
141
  });
142
142
  }
143
- function Di(e, t, r) {
143
+ function $i(e, t, r) {
144
144
  if (typeof r.structuralSharing == "function")
145
145
  return r.structuralSharing(e, t);
146
146
  if (r.structuralSharing !== !1) {
@@ -156,24 +156,24 @@ function Di(e, t, r) {
156
156
  }
157
157
  return t;
158
158
  }
159
- function $i(e, t, r = 0) {
159
+ function Li(e, t, r = 0) {
160
160
  const n = [...e, t];
161
161
  return r && n.length > r ? n.slice(1) : n;
162
162
  }
163
- function Li(e, t, r = 0) {
163
+ function Mi(e, t, r = 0) {
164
164
  const n = [t, ...e];
165
165
  return r && n.length > r ? n.slice(0, -1) : n;
166
166
  }
167
167
  var hr = Symbol();
168
- function fs(e, t) {
168
+ function hs(e, t) {
169
169
  return process.env.NODE_ENV !== "production" && e.queryFn === hr && console.error(
170
170
  `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
171
171
  ), !e.queryFn && (t != null && t.initialPromise) ? () => t.initialPromise : !e.queryFn || e.queryFn === hr ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
172
172
  }
173
- function vu(e, t) {
173
+ function Eu(e, t) {
174
174
  return typeof e == "function" ? e(...t) : !!e;
175
175
  }
176
- var Be, Ne, st, es, Mi = (es = class extends Ar {
176
+ var Be, Ne, st, ts, Ui = (ts = class extends Ar {
177
177
  constructor() {
178
178
  super();
179
179
  A(this, Be);
@@ -214,7 +214,7 @@ var Be, Ne, st, es, Mi = (es = class extends Ar {
214
214
  var t;
215
215
  return typeof f(this, Be) == "boolean" ? f(this, Be) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
216
216
  }
217
- }, Be = new WeakMap(), Ne = new WeakMap(), st = new WeakMap(), es), hs = new Mi(), it, Pe, at, ts, Ui = (ts = class extends Ar {
217
+ }, Be = new WeakMap(), Ne = new WeakMap(), st = new WeakMap(), ts), ys = new Ui(), it, Pe, at, rs, Ki = (rs = class extends Ar {
218
218
  constructor() {
219
219
  super();
220
220
  A(this, it, !0);
@@ -248,8 +248,8 @@ var Be, Ne, st, es, Mi = (es = class extends Ar {
248
248
  isOnline() {
249
249
  return f(this, it);
250
250
  }
251
- }, it = new WeakMap(), Pe = new WeakMap(), at = new WeakMap(), ts), Nt = new Ui();
252
- function Ki() {
251
+ }, it = new WeakMap(), Pe = new WeakMap(), at = new WeakMap(), rs), Nt = new Ki();
252
+ function Hi() {
253
253
  let e, t;
254
254
  const r = new Promise((s, i) => {
255
255
  e = s, t = i;
@@ -271,30 +271,30 @@ function Ki() {
271
271
  }), t(s);
272
272
  }, r;
273
273
  }
274
- function Hi(e) {
274
+ function Fi(e) {
275
275
  return Math.min(1e3 * 2 ** e, 3e4);
276
276
  }
277
- function ys(e) {
277
+ function ms(e) {
278
278
  return (e ?? "online") === "online" ? Nt.isOnline() : !0;
279
279
  }
280
- var ms = class extends Error {
280
+ var ps = class extends Error {
281
281
  constructor(e) {
282
282
  super("CancelledError"), this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
283
283
  }
284
284
  };
285
285
  function Dr(e) {
286
- return e instanceof ms;
286
+ return e instanceof ps;
287
287
  }
288
- function ps(e) {
288
+ function gs(e) {
289
289
  let t = !1, r = 0, n = !1, s;
290
- const i = Ki(), a = (g) => {
290
+ const i = Hi(), a = (g) => {
291
291
  var E;
292
- n || (h(new ms(g)), (E = e.abort) == null || E.call(e));
292
+ n || (h(new ps(g)), (E = e.abort) == null || E.call(e));
293
293
  }, o = () => {
294
294
  t = !0;
295
295
  }, c = () => {
296
296
  t = !1;
297
- }, u = () => hs.isFocused() && (e.networkMode === "always" || Nt.isOnline()) && e.canRun(), d = () => ys(e.networkMode) && e.canRun(), l = (g) => {
297
+ }, u = () => ys.isFocused() && (e.networkMode === "always" || Nt.isOnline()) && e.canRun(), d = () => ms(e.networkMode) && e.canRun(), l = (g) => {
298
298
  var E;
299
299
  n || (n = !0, (E = e.onSuccess) == null || E.call(e, g), s == null || s(), i.resolve(g));
300
300
  }, h = (g) => {
@@ -322,12 +322,12 @@ function ps(e) {
322
322
  var M;
323
323
  if (n)
324
324
  return;
325
- const _ = e.retry ?? (Ir ? 0 : 3), T = e.retryDelay ?? Hi, k = typeof T == "function" ? T(r, I) : T, C = _ === !0 || typeof _ == "number" && r < _ || typeof _ == "function" && _(r, I);
325
+ const _ = e.retry ?? (Ir ? 0 : 3), T = e.retryDelay ?? Fi, k = typeof T == "function" ? T(r, I) : T, C = _ === !0 || typeof _ == "number" && r < _ || typeof _ == "function" && _(r, I);
326
326
  if (t || !C) {
327
327
  h(I);
328
328
  return;
329
329
  }
330
- r++, (M = e.onFail) == null || M.call(e, r, I), xi(k).then(() => u() ? void 0 : y()).then(() => {
330
+ r++, (M = e.onFail) == null || M.call(e, r, I), Di(k).then(() => u() ? void 0 : y()).then(() => {
331
331
  t ? h(I) : m();
332
332
  });
333
333
  });
@@ -342,13 +342,13 @@ function ps(e) {
342
342
  start: () => (d() ? m() : y().then(m), i)
343
343
  };
344
344
  }
345
- var Fi = (e) => setTimeout(e, 0);
346
- function Bi() {
345
+ var Bi = (e) => setTimeout(e, 0);
346
+ function Vi() {
347
347
  let e = [], t = 0, r = (o) => {
348
348
  o();
349
349
  }, n = (o) => {
350
350
  o();
351
- }, s = Fi;
351
+ }, s = Bi;
352
352
  const i = (o) => {
353
353
  t ? e.push(o) : s(() => {
354
354
  r(o);
@@ -402,7 +402,7 @@ function Bi() {
402
402
  }
403
403
  };
404
404
  }
405
- var ee = Bi(), Ve, rs, gs = (rs = class {
405
+ var ee = Vi(), Ve, ns, bs = (ns = class {
406
406
  constructor() {
407
407
  A(this, Ve);
408
408
  }
@@ -410,7 +410,7 @@ var ee = Bi(), Ve, rs, gs = (rs = class {
410
410
  this.clearGcTimeout();
411
411
  }
412
412
  scheduleGc() {
413
- this.clearGcTimeout(), Ci(this.gcTime) && w(this, Ve, setTimeout(() => {
413
+ this.clearGcTimeout(), Ni(this.gcTime) && w(this, Ve, setTimeout(() => {
414
414
  this.optionalRemove();
415
415
  }, this.gcTime));
416
416
  }
@@ -423,7 +423,7 @@ var ee = Bi(), Ve, rs, gs = (rs = class {
423
423
  clearGcTimeout() {
424
424
  f(this, Ve) && (clearTimeout(f(this, Ve)), w(this, Ve, void 0));
425
425
  }
426
- }, Ve = new WeakMap(), rs), ot, ct, ie, je, Y, Ht, Ge, le, Ee, ns, Vi = (ns = class extends gs {
426
+ }, Ve = new WeakMap(), ns), ot, ct, ie, je, Y, Ht, Ge, le, Ee, ss, ji = (ss = class extends bs {
427
427
  constructor(t) {
428
428
  super();
429
429
  A(this, le);
@@ -434,7 +434,7 @@ var ee = Bi(), Ve, rs, gs = (rs = class {
434
434
  A(this, Y);
435
435
  A(this, Ht);
436
436
  A(this, Ge);
437
- w(this, Ge, !1), w(this, Ht, t.defaultOptions), this.setOptions(t.options), this.observers = [], w(this, je, t.client), w(this, ie, f(this, je).getQueryCache()), this.queryKey = t.queryKey, this.queryHash = t.queryHash, w(this, ot, Gi(this.options)), this.state = t.state ?? f(this, ot), this.scheduleGc();
437
+ w(this, Ge, !1), w(this, Ht, t.defaultOptions), this.setOptions(t.options), this.observers = [], w(this, je, t.client), w(this, ie, f(this, je).getQueryCache()), this.queryKey = t.queryKey, this.queryHash = t.queryHash, w(this, ot, qi(this.options)), this.state = t.state ?? f(this, ot), this.scheduleGc();
438
438
  }
439
439
  get meta() {
440
440
  return this.options.meta;
@@ -450,7 +450,7 @@ var ee = Bi(), Ve, rs, gs = (rs = class {
450
450
  !this.observers.length && this.state.fetchStatus === "idle" && f(this, ie).remove(this);
451
451
  }
452
452
  setData(t, r) {
453
- const n = Di(this.state.data, t, this.options);
453
+ const n = $i(this.state.data, t, this.options);
454
454
  return Q(this, le, Ee).call(this, {
455
455
  data: n,
456
456
  type: "success",
@@ -474,7 +474,7 @@ var ee = Bi(), Ve, rs, gs = (rs = class {
474
474
  }
475
475
  isActive() {
476
476
  return this.observers.some(
477
- (t) => Pi(t.options.enabled, this) !== !1
477
+ (t) => xi(t.options.enabled, this) !== !1
478
478
  );
479
479
  }
480
480
  isDisabled() {
@@ -491,7 +491,7 @@ var ee = Bi(), Ve, rs, gs = (rs = class {
491
491
  ) : this.state.data === void 0 || this.state.isInvalidated;
492
492
  }
493
493
  isStaleByTime(t = 0) {
494
- return this.state.data === void 0 ? !0 : t === "static" ? !1 : this.state.isInvalidated ? !0 : !Ni(this.state.dataUpdatedAt, t);
494
+ return this.state.data === void 0 ? !0 : t === "static" ? !1 : this.state.isInvalidated ? !0 : !Pi(this.state.dataUpdatedAt, t);
495
495
  }
496
496
  onFocus() {
497
497
  var r;
@@ -536,7 +536,7 @@ var ee = Bi(), Ve, rs, gs = (rs = class {
536
536
  get: () => (w(this, Ge, !0), n.signal)
537
537
  });
538
538
  }, i = () => {
539
- const l = fs(this.options, r), h = {
539
+ const l = hs(this.options, r), h = {
540
540
  client: f(this, je),
541
541
  queryKey: this.queryKey,
542
542
  meta: this.meta
@@ -574,7 +574,7 @@ var ee = Bi(), Ve, rs, gs = (rs = class {
574
574
  this
575
575
  )), this.scheduleGc();
576
576
  };
577
- return w(this, Y, ps({
577
+ return w(this, Y, gs({
578
578
  initialPromise: r == null ? void 0 : r.initialPromise,
579
579
  fn: a.fetchFn,
580
580
  abort: n.abort.bind(n),
@@ -637,7 +637,7 @@ var ee = Bi(), Ve, rs, gs = (rs = class {
637
637
  case "fetch":
638
638
  return {
639
639
  ...n,
640
- ...ji(n.data, this.options),
640
+ ...Gi(n.data, this.options),
641
641
  fetchMeta: t.meta ?? null
642
642
  };
643
643
  case "success":
@@ -684,19 +684,19 @@ var ee = Bi(), Ve, rs, gs = (rs = class {
684
684
  n.onQueryUpdate();
685
685
  }), f(this, ie).notify({ query: this, type: "updated", action: t });
686
686
  });
687
- }, ns);
688
- function ji(e, t) {
687
+ }, ss);
688
+ function Gi(e, t) {
689
689
  return {
690
690
  fetchFailureCount: 0,
691
691
  fetchFailureReason: null,
692
- fetchStatus: ys(t.networkMode) ? "fetching" : "paused",
692
+ fetchStatus: ms(t.networkMode) ? "fetching" : "paused",
693
693
  ...e === void 0 && {
694
694
  error: null,
695
695
  status: "pending"
696
696
  }
697
697
  };
698
698
  }
699
- function Gi(e) {
699
+ function qi(e) {
700
700
  const t = typeof e.initialData == "function" ? e.initialData() : e.initialData, r = t !== void 0, n = r ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
701
701
  return {
702
702
  data: t,
@@ -713,7 +713,7 @@ function Gi(e) {
713
713
  fetchStatus: "idle"
714
714
  };
715
715
  }
716
- var ye, ss, qi = (ss = class extends Ar {
716
+ var ye, is, Wi = (is = class extends Ar {
717
717
  constructor(t = {}) {
718
718
  super();
719
719
  A(this, ye);
@@ -722,7 +722,7 @@ var ye, ss, qi = (ss = class extends Ar {
722
722
  build(t, r, n) {
723
723
  const s = r.queryKey, i = r.queryHash ?? mn(s, r);
724
724
  let a = this.get(i);
725
- return a || (a = new Vi({
725
+ return a || (a = new ji({
726
726
  client: t,
727
727
  queryKey: s,
728
728
  queryHash: i,
@@ -757,12 +757,12 @@ var ye, ss, qi = (ss = class extends Ar {
757
757
  find(t) {
758
758
  const r = { exact: !0, ...t };
759
759
  return this.getAll().find(
760
- (n) => In(r, n)
760
+ (n) => kn(r, n)
761
761
  );
762
762
  }
763
763
  findAll(t = {}) {
764
764
  const r = this.getAll();
765
- return Object.keys(t).length > 0 ? r.filter((n) => In(t, n)) : r;
765
+ return Object.keys(t).length > 0 ? r.filter((n) => kn(t, n)) : r;
766
766
  }
767
767
  notify(t) {
768
768
  ee.batch(() => {
@@ -785,14 +785,14 @@ var ye, ss, qi = (ss = class extends Ar {
785
785
  });
786
786
  });
787
787
  }
788
- }, ye = new WeakMap(), ss), me, Z, qe, pe, Ce, is, Wi = (is = class extends gs {
788
+ }, ye = new WeakMap(), is), me, Z, qe, pe, Ce, as, Ji = (as = class extends bs {
789
789
  constructor(t) {
790
790
  super();
791
791
  A(this, pe);
792
792
  A(this, me);
793
793
  A(this, Z);
794
794
  A(this, qe);
795
- this.mutationId = t.mutationId, w(this, Z, t.mutationCache), w(this, me, []), this.state = t.state || Ji(), this.setOptions(t.options), this.scheduleGc();
795
+ this.mutationId = t.mutationId, w(this, Z, t.mutationCache), w(this, me, []), this.state = t.state || zi(), this.setOptions(t.options), this.scheduleGc();
796
796
  }
797
797
  setOptions(t) {
798
798
  this.options = t, this.updateGcTime(this.options.gcTime);
@@ -827,7 +827,7 @@ var ye, ss, qi = (ss = class extends Ar {
827
827
  const r = () => {
828
828
  Q(this, pe, Ce).call(this, { type: "continue" });
829
829
  };
830
- w(this, qe, ps({
830
+ w(this, qe, gs({
831
831
  fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
832
832
  onFail: (v, R) => {
833
833
  Q(this, pe, Ce).call(this, { type: "failed", failureCount: v, error: R });
@@ -971,8 +971,8 @@ var ye, ss, qi = (ss = class extends Ar {
971
971
  action: t
972
972
  });
973
973
  });
974
- }, is);
975
- function Ji() {
974
+ }, as);
975
+ function zi() {
976
976
  return {
977
977
  context: void 0,
978
978
  data: void 0,
@@ -985,7 +985,7 @@ function Ji() {
985
985
  submittedAt: 0
986
986
  };
987
987
  }
988
- var Se, ue, Ft, as, zi = (as = class extends Ar {
988
+ var Se, ue, Ft, os, Qi = (os = class extends Ar {
989
989
  constructor(t = {}) {
990
990
  super();
991
991
  A(this, Se);
@@ -994,7 +994,7 @@ var Se, ue, Ft, as, zi = (as = class extends Ar {
994
994
  this.config = t, w(this, Se, /* @__PURE__ */ new Set()), w(this, ue, /* @__PURE__ */ new Map()), w(this, Ft, 0);
995
995
  }
996
996
  build(t, r, n) {
997
- const s = new Wi({
997
+ const s = new Ji({
998
998
  mutationCache: this,
999
999
  mutationId: ++Jt(this, Ft)._,
1000
1000
  options: t.defaultMutationOptions(r),
@@ -1057,11 +1057,11 @@ var Se, ue, Ft, as, zi = (as = class extends Ar {
1057
1057
  find(t) {
1058
1058
  const r = { exact: !0, ...t };
1059
1059
  return this.getAll().find(
1060
- (n) => kn(r, n)
1060
+ (n) => Rn(r, n)
1061
1061
  );
1062
1062
  }
1063
1063
  findAll(t = {}) {
1064
- return this.getAll().filter((r) => kn(t, r));
1064
+ return this.getAll().filter((r) => Rn(t, r));
1065
1065
  }
1066
1066
  notify(t) {
1067
1067
  ee.batch(() => {
@@ -1078,12 +1078,12 @@ var Se, ue, Ft, as, zi = (as = class extends Ar {
1078
1078
  )
1079
1079
  );
1080
1080
  }
1081
- }, Se = new WeakMap(), ue = new WeakMap(), Ft = new WeakMap(), as);
1081
+ }, Se = new WeakMap(), ue = new WeakMap(), Ft = new WeakMap(), os);
1082
1082
  function zt(e) {
1083
1083
  var t;
1084
1084
  return (t = e.options.scope) == null ? void 0 : t.id;
1085
1085
  }
1086
- function _n(e) {
1086
+ function Cn(e) {
1087
1087
  return {
1088
1088
  onFetch: (t, r) => {
1089
1089
  var d, l, h, y, m;
@@ -1098,7 +1098,7 @@ function _n(e) {
1098
1098
  g = !0;
1099
1099
  }), t.signal)
1100
1100
  });
1101
- }, I = fs(t.options, t.fetchOptions), _ = async (T, k, C) => {
1101
+ }, I = hs(t.options, t.fetchOptions), _ = async (T, k, C) => {
1102
1102
  if (g)
1103
1103
  return Promise.reject();
1104
1104
  if (k == null && T.pages.length)
@@ -1113,14 +1113,14 @@ function _n(e) {
1113
1113
  E(M);
1114
1114
  const F = await I(
1115
1115
  M
1116
- ), { maxPages: O } = t.options, v = C ? Li : $i;
1116
+ ), { maxPages: O } = t.options, v = C ? Mi : Li;
1117
1117
  return {
1118
1118
  pages: v(T.pages, F, O),
1119
1119
  pageParams: v(T.pageParams, k, O)
1120
1120
  };
1121
1121
  };
1122
1122
  if (s && i.length) {
1123
- const T = s === "backward", k = T ? Qi : Cn, C = {
1123
+ const T = s === "backward", k = T ? Yi : Nn, C = {
1124
1124
  pages: i,
1125
1125
  pageParams: a
1126
1126
  }, M = k(n, C);
@@ -1128,7 +1128,7 @@ function _n(e) {
1128
1128
  } else {
1129
1129
  const T = e ?? i.length;
1130
1130
  do {
1131
- const k = c === 0 ? a[0] ?? n.initialPageParam : Cn(n, o);
1131
+ const k = c === 0 ? a[0] ?? n.initialPageParam : Nn(n, o);
1132
1132
  if (c > 0 && k == null)
1133
1133
  break;
1134
1134
  o = await _(o, k), c++;
@@ -1153,7 +1153,7 @@ function _n(e) {
1153
1153
  }
1154
1154
  };
1155
1155
  }
1156
- function Cn(e, { pages: t, pageParams: r }) {
1156
+ function Nn(e, { pages: t, pageParams: r }) {
1157
1157
  const n = t.length - 1;
1158
1158
  return t.length > 0 ? e.getNextPageParam(
1159
1159
  t[n],
@@ -1162,11 +1162,11 @@ function Cn(e, { pages: t, pageParams: r }) {
1162
1162
  r
1163
1163
  ) : void 0;
1164
1164
  }
1165
- function Qi(e, { pages: t, pageParams: r }) {
1165
+ function Yi(e, { pages: t, pageParams: r }) {
1166
1166
  var n;
1167
1167
  return t.length > 0 ? (n = e.getPreviousPageParam) == null ? void 0 : n.call(e, t[0], t, r[0], r) : void 0;
1168
1168
  }
1169
- var U, xe, De, lt, ut, $e, dt, ft, os, Yi = (os = class {
1169
+ var U, xe, De, lt, ut, $e, dt, ft, cs, Xi = (cs = class {
1170
1170
  constructor(e = {}) {
1171
1171
  A(this, U);
1172
1172
  A(this, xe);
@@ -1176,10 +1176,10 @@ var U, xe, De, lt, ut, $e, dt, ft, os, Yi = (os = class {
1176
1176
  A(this, $e);
1177
1177
  A(this, dt);
1178
1178
  A(this, ft);
1179
- w(this, U, e.queryCache || new qi()), w(this, xe, e.mutationCache || new zi()), w(this, De, e.defaultOptions || {}), w(this, lt, /* @__PURE__ */ new Map()), w(this, ut, /* @__PURE__ */ new Map()), w(this, $e, 0);
1179
+ w(this, U, e.queryCache || new Wi()), w(this, xe, e.mutationCache || new Qi()), w(this, De, e.defaultOptions || {}), w(this, lt, /* @__PURE__ */ new Map()), w(this, ut, /* @__PURE__ */ new Map()), w(this, $e, 0);
1180
1180
  }
1181
1181
  mount() {
1182
- Jt(this, $e)._++, f(this, $e) === 1 && (w(this, dt, hs.subscribe(async (e) => {
1182
+ Jt(this, $e)._++, f(this, $e) === 1 && (w(this, dt, ys.subscribe(async (e) => {
1183
1183
  e && (await this.resumePausedMutations(), f(this, U).onFocus());
1184
1184
  })), w(this, ft, Nt.subscribe(async (e) => {
1185
1185
  e && (await this.resumePausedMutations(), f(this, U).onOnline());
@@ -1220,7 +1220,7 @@ var U, xe, De, lt, ut, $e, dt, ft, os, Yi = (os = class {
1220
1220
  setQueryData(e, t, r) {
1221
1221
  const n = this.defaultQueryOptions({ queryKey: e }), s = f(this, U).get(
1222
1222
  n.queryHash
1223
- ), i = s == null ? void 0 : s.state.data, a = _i(t, i);
1223
+ ), i = s == null ? void 0 : s.state.data, a = Ci(t, i);
1224
1224
  if (a !== void 0)
1225
1225
  return f(this, U).build(this, n).setData(a, { ...r, manual: !0 });
1226
1226
  }
@@ -1300,13 +1300,13 @@ var U, xe, De, lt, ut, $e, dt, ft, os, Yi = (os = class {
1300
1300
  return this.fetchQuery(e).then(ce).catch(ce);
1301
1301
  }
1302
1302
  fetchInfiniteQuery(e) {
1303
- return e.behavior = _n(e.pages), this.fetchQuery(e);
1303
+ return e.behavior = Cn(e.pages), this.fetchQuery(e);
1304
1304
  }
1305
1305
  prefetchInfiniteQuery(e) {
1306
1306
  return this.fetchInfiniteQuery(e).then(ce).catch(ce);
1307
1307
  }
1308
1308
  ensureInfiniteQueryData(e) {
1309
- return e.behavior = _n(e.pages), this.ensureQueryData(e);
1309
+ return e.behavior = Cn(e.pages), this.ensureQueryData(e);
1310
1310
  }
1311
1311
  resumePausedMutations() {
1312
1312
  return Nt.isOnline() ? f(this, xe).resumePausedMutations() : Promise.resolve();
@@ -1372,30 +1372,30 @@ var U, xe, De, lt, ut, $e, dt, ft, os, Yi = (os = class {
1372
1372
  clear() {
1373
1373
  f(this, U).clear(), f(this, xe).clear();
1374
1374
  }
1375
- }, U = new WeakMap(), xe = new WeakMap(), De = new WeakMap(), lt = new WeakMap(), ut = new WeakMap(), $e = new WeakMap(), dt = new WeakMap(), ft = new WeakMap(), os), bs = oe.createContext(
1375
+ }, U = new WeakMap(), xe = new WeakMap(), De = new WeakMap(), lt = new WeakMap(), ut = new WeakMap(), $e = new WeakMap(), dt = new WeakMap(), ft = new WeakMap(), cs), ws = oe.createContext(
1376
1376
  void 0
1377
- ), Xi = (e) => {
1378
- const t = oe.useContext(bs);
1377
+ ), Zi = (e) => {
1378
+ const t = oe.useContext(ws);
1379
1379
  if (e)
1380
1380
  return e;
1381
1381
  if (!t)
1382
1382
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
1383
1383
  return t;
1384
- }, Zi = ({
1384
+ }, ea = ({
1385
1385
  client: e,
1386
1386
  children: t
1387
1387
  }) => (oe.useEffect(() => (e.mount(), () => {
1388
1388
  e.unmount();
1389
- }), [e]), /* @__PURE__ */ p(bs.Provider, { value: e, children: t })), ea = (e, t) => e === t, yr = Symbol("solid-proxy"), ws = typeof Proxy == "function", mr = {
1390
- equals: ea
1391
- }, vs = ks, Re = 1, pr = 2, Es = {
1389
+ }), [e]), /* @__PURE__ */ p(ws.Provider, { value: e, children: t })), ta = (e, t) => e === t, yr = Symbol("solid-proxy"), vs = typeof Proxy == "function", mr = {
1390
+ equals: ta
1391
+ }, Es = Rs, Re = 1, pr = 2, Ss = {
1392
1392
  owned: null,
1393
1393
  cleanups: null,
1394
1394
  context: null,
1395
1395
  owner: null
1396
1396
  }, $r = {}, P = null, L = null, X = null, Ie = null, kr = 0;
1397
1397
  function Je(e, t) {
1398
- const r = L, n = P, s = e.length === 0, i = t === void 0 ? n : t, a = s ? Es : {
1398
+ const r = L, n = P, s = e.length === 0, i = t === void 0 ? n : t, a = s ? Ss : {
1399
1399
  owned: null,
1400
1400
  cleanups: null,
1401
1401
  context: i ? i.context : null,
@@ -1415,10 +1415,10 @@ function ne(e, t) {
1415
1415
  observers: null,
1416
1416
  observerSlots: null,
1417
1417
  comparator: t.equals || void 0
1418
- }, n = (s) => (typeof s == "function" && (s = s(r.value)), Is(r, s));
1419
- return [As.bind(r), n];
1418
+ }, n = (s) => (typeof s == "function" && (s = s(r.value)), ks(r, s));
1419
+ return [Is.bind(r), n];
1420
1420
  }
1421
- function ta(e, t, r) {
1421
+ function ra(e, t, r) {
1422
1422
  const n = Rr(e, t, !0, Re);
1423
1423
  St(n);
1424
1424
  }
@@ -1426,20 +1426,20 @@ function ze(e, t, r) {
1426
1426
  const n = Rr(e, t, !1, Re);
1427
1427
  St(n);
1428
1428
  }
1429
- function Ss(e, t, r) {
1430
- vs = da;
1429
+ function Ts(e, t, r) {
1430
+ Es = fa;
1431
1431
  const n = Rr(e, t, !1, Re);
1432
1432
  (!r || !r.render) && (n.user = !0), Ie ? Ie.push(n) : St(n);
1433
1433
  }
1434
1434
  function W(e, t, r) {
1435
1435
  r = r ? Object.assign({}, mr, r) : mr;
1436
1436
  const n = Rr(e, t, !0, 0);
1437
- return n.observers = null, n.observerSlots = null, n.comparator = r.equals || void 0, St(n), As.bind(n);
1437
+ return n.observers = null, n.observerSlots = null, n.comparator = r.equals || void 0, St(n), Is.bind(n);
1438
1438
  }
1439
- function ra(e) {
1439
+ function na(e) {
1440
1440
  return e && typeof e == "object" && "then" in e;
1441
1441
  }
1442
- function na(e, t, r) {
1442
+ function sa(e, t, r) {
1443
1443
  let n, s, i;
1444
1444
  n = !0, s = e, i = {};
1445
1445
  let a = null, o = $r, c = !1, u = "initialValue" in i, d = typeof n == "function" && W(n);
@@ -1479,7 +1479,7 @@ function na(e, t, r) {
1479
1479
  refetching: O
1480
1480
  })
1481
1481
  );
1482
- return ra(R) ? (a = R, "value" in R ? (R.status === "success" ? k(a, R.value, void 0, v) : k(a, void 0, Xr(R.value), v), R) : (c = !0, queueMicrotask(() => c = !1), be(() => {
1482
+ return na(R) ? (a = R, "value" in R ? (R.status === "success" ? k(a, R.value, void 0, v) : k(a, void 0, Xr(R.value), v), R) : (c = !0, queueMicrotask(() => c = !1), be(() => {
1483
1483
  T(u ? "refreshing" : "pending"), I();
1484
1484
  }, !1), R.then(
1485
1485
  ($) => k(R, $, void 0, v),
@@ -1507,7 +1507,7 @@ function na(e, t, r) {
1507
1507
  return h();
1508
1508
  }
1509
1509
  }
1510
- }), d ? ta(() => F(!1)) : F(!1), [
1510
+ }), d ? ra(() => F(!1)) : F(!1), [
1511
1511
  M,
1512
1512
  {
1513
1513
  refetch: F,
@@ -1515,7 +1515,7 @@ function na(e, t, r) {
1515
1515
  }
1516
1516
  ];
1517
1517
  }
1518
- function Eu(e) {
1518
+ function Su(e) {
1519
1519
  return be(e, !1);
1520
1520
  }
1521
1521
  function z(e) {
@@ -1528,7 +1528,7 @@ function z(e) {
1528
1528
  L = t;
1529
1529
  }
1530
1530
  }
1531
- function Su(e, t, r) {
1531
+ function Tu(e, t, r) {
1532
1532
  const n = Array.isArray(e);
1533
1533
  let s, i = r && r.defer;
1534
1534
  return (a) => {
@@ -1543,16 +1543,16 @@ function Su(e, t, r) {
1543
1543
  return s = o, c;
1544
1544
  };
1545
1545
  }
1546
- function sa(e) {
1547
- Ss(() => z(e));
1546
+ function ia(e) {
1547
+ Ts(() => z(e));
1548
1548
  }
1549
1549
  function Pt(e) {
1550
1550
  return P === null || (P.cleanups === null ? P.cleanups = [e] : P.cleanups.push(e)), e;
1551
1551
  }
1552
- function ia() {
1552
+ function aa() {
1553
1553
  return P;
1554
1554
  }
1555
- function aa(e, t) {
1555
+ function oa(e, t) {
1556
1556
  const r = P, n = L;
1557
1557
  P = e, L = null;
1558
1558
  try {
@@ -1563,7 +1563,7 @@ function aa(e, t) {
1563
1563
  P = r, L = n;
1564
1564
  }
1565
1565
  }
1566
- function oa(e) {
1566
+ function ca(e) {
1567
1567
  const t = L, r = P;
1568
1568
  return Promise.resolve().then(() => {
1569
1569
  L = t, P = r;
@@ -1571,30 +1571,30 @@ function oa(e) {
1571
1571
  return be(e, !1), L = P = null, n ? n.done : void 0;
1572
1572
  });
1573
1573
  }
1574
- var [ca, Tu] = /* @__PURE__ */ ne(!1);
1575
- function Au() {
1576
- return [ca, oa];
1574
+ var [la, Au] = /* @__PURE__ */ ne(!1);
1575
+ function Iu() {
1576
+ return [la, ca];
1577
1577
  }
1578
- function Iu(e, t) {
1578
+ function ku(e, t) {
1579
1579
  const r = Symbol("context");
1580
1580
  return {
1581
1581
  id: r,
1582
- Provider: fa(r),
1582
+ Provider: ha(r),
1583
1583
  defaultValue: e
1584
1584
  };
1585
1585
  }
1586
- function ku(e) {
1586
+ function Ru(e) {
1587
1587
  let t;
1588
1588
  return P && P.context && (t = P.context[e.id]) !== void 0 ? t : e.defaultValue;
1589
1589
  }
1590
- function Ts(e) {
1590
+ function As(e) {
1591
1591
  const t = W(e), r = W(() => Zr(t()));
1592
1592
  return r.toArray = () => {
1593
1593
  const n = r();
1594
1594
  return Array.isArray(n) ? n : n != null ? [n] : [];
1595
1595
  }, r;
1596
1596
  }
1597
- function As() {
1597
+ function Is() {
1598
1598
  if (this.sources && this.state)
1599
1599
  if (this.state === Re) St(this);
1600
1600
  else {
@@ -1607,12 +1607,12 @@ function As() {
1607
1607
  }
1608
1608
  return this.value;
1609
1609
  }
1610
- function Is(e, t, r) {
1610
+ function ks(e, t, r) {
1611
1611
  let n = e.value;
1612
1612
  return (!e.comparator || !e.comparator(n, t)) && (e.value = t, e.observers && e.observers.length && be(() => {
1613
1613
  for (let s = 0; s < e.observers.length; s += 1) {
1614
1614
  const i = e.observers[s];
1615
- i.state || (i.pure ? X.push(i) : Ie.push(i), i.observers && Rs(i)), i.state = Re;
1615
+ i.state || (i.pure ? X.push(i) : Ie.push(i), i.observers && Os(i)), i.state = Re;
1616
1616
  }
1617
1617
  if (X.length > 1e6)
1618
1618
  throw X = [], new Error();
@@ -1622,13 +1622,13 @@ function St(e) {
1622
1622
  if (!e.fn) return;
1623
1623
  xt(e);
1624
1624
  const t = kr;
1625
- la(
1625
+ ua(
1626
1626
  e,
1627
1627
  e.value,
1628
1628
  t
1629
1629
  );
1630
1630
  }
1631
- function la(e, t, r) {
1631
+ function ua(e, t, r) {
1632
1632
  let n;
1633
1633
  const s = P, i = L;
1634
1634
  L = P = e;
@@ -1639,7 +1639,7 @@ function la(e, t, r) {
1639
1639
  } finally {
1640
1640
  L = i, P = s;
1641
1641
  }
1642
- (!e.updatedAt || e.updatedAt <= r) && (e.updatedAt != null && "observers" in e ? Is(e, n) : e.value = n, e.updatedAt = r);
1642
+ (!e.updatedAt || e.updatedAt <= r) && (e.updatedAt != null && "observers" in e ? ks(e, n) : e.value = n, e.updatedAt = r);
1643
1643
  }
1644
1644
  function Rr(e, t, r, n = Re, s) {
1645
1645
  const i = {
@@ -1655,7 +1655,7 @@ function Rr(e, t, r, n = Re, s) {
1655
1655
  context: P ? P.context : null,
1656
1656
  pure: r
1657
1657
  };
1658
- return P === null || P !== Es && (P.owned ? P.owned.push(i) : P.owned = [i]), i;
1658
+ return P === null || P !== Ss && (P.owned ? P.owned.push(i) : P.owned = [i]), i;
1659
1659
  }
1660
1660
  function gr(e) {
1661
1661
  if (e.state === 0) return;
@@ -1678,20 +1678,20 @@ function be(e, t) {
1678
1678
  t || (X = []), Ie ? r = !0 : Ie = [], kr++;
1679
1679
  try {
1680
1680
  const n = e();
1681
- return ua(r), n;
1681
+ return da(r), n;
1682
1682
  } catch (n) {
1683
1683
  r || (Ie = null), X = null, pn(n);
1684
1684
  }
1685
1685
  }
1686
- function ua(e) {
1687
- if (X && (ks(X), X = null), e) return;
1686
+ function da(e) {
1687
+ if (X && (Rs(X), X = null), e) return;
1688
1688
  const t = Ie;
1689
- Ie = null, t.length && be(() => vs(t), !1);
1689
+ Ie = null, t.length && be(() => Es(t), !1);
1690
1690
  }
1691
- function ks(e) {
1691
+ function Rs(e) {
1692
1692
  for (let t = 0; t < e.length; t++) gr(e[t]);
1693
1693
  }
1694
- function da(e) {
1694
+ function fa(e) {
1695
1695
  let t, r = 0;
1696
1696
  for (t = 0; t < e.length; t++) {
1697
1697
  const n = e[t];
@@ -1709,10 +1709,10 @@ function br(e, t) {
1709
1709
  }
1710
1710
  }
1711
1711
  }
1712
- function Rs(e) {
1712
+ function Os(e) {
1713
1713
  for (let t = 0; t < e.observers.length; t += 1) {
1714
1714
  const r = e.observers[t];
1715
- r.state || (r.state = pr, r.pure ? X.push(r) : Ie.push(r), r.observers && Rs(r));
1715
+ r.state || (r.state = pr, r.pure ? X.push(r) : Ie.push(r), r.observers && Os(r));
1716
1716
  }
1717
1717
  }
1718
1718
  function xt(e) {
@@ -1759,14 +1759,14 @@ function Zr(e) {
1759
1759
  }
1760
1760
  return e;
1761
1761
  }
1762
- function fa(e, t) {
1762
+ function ha(e, t) {
1763
1763
  return function(n) {
1764
1764
  let s;
1765
1765
  return ze(
1766
1766
  () => s = z(() => (P.context = {
1767
1767
  ...P.context,
1768
1768
  [e]: n.value
1769
- }, Ts(() => n.children))),
1769
+ }, As(() => n.children))),
1770
1770
  void 0
1771
1771
  ), s;
1772
1772
  };
@@ -1775,7 +1775,7 @@ var en = Symbol("fallback");
1775
1775
  function wr(e) {
1776
1776
  for (let t = 0; t < e.length; t++) e[t]();
1777
1777
  }
1778
- function ha(e, t, r = {}) {
1778
+ function ya(e, t, r = {}) {
1779
1779
  let n = [], s = [], i = [], a = 0, o = t.length > 1 ? [] : null;
1780
1780
  return Pt(() => wr(i)), () => {
1781
1781
  let c = e() || [], u = c.length, d, l;
@@ -1810,7 +1810,7 @@ function ha(e, t, r = {}) {
1810
1810
  }
1811
1811
  };
1812
1812
  }
1813
- function ya(e, t, r = {}) {
1813
+ function ma(e, t, r = {}) {
1814
1814
  let n = [], s = [], i = [], a = [], o = 0, c;
1815
1815
  return Pt(() => wr(i)), () => {
1816
1816
  const u = e() || [], d = u.length;
@@ -1830,7 +1830,7 @@ function ya(e, t, r = {}) {
1830
1830
  }
1831
1831
  };
1832
1832
  }
1833
- function ma(e, t) {
1833
+ function pa(e, t) {
1834
1834
  return z(() => e(t || {}));
1835
1835
  }
1836
1836
  function Qt() {
@@ -1863,19 +1863,19 @@ var tn = {
1863
1863
  function Lr(e) {
1864
1864
  return (e = typeof e == "function" ? e() : e) ? e : {};
1865
1865
  }
1866
- function pa() {
1866
+ function ga() {
1867
1867
  for (let e = 0, t = this.length; e < t; ++e) {
1868
1868
  const r = this[e]();
1869
1869
  if (r !== void 0) return r;
1870
1870
  }
1871
1871
  }
1872
- function ga(...e) {
1872
+ function ba(...e) {
1873
1873
  let t = !1;
1874
1874
  for (let a = 0; a < e.length; a++) {
1875
1875
  const o = e[a];
1876
1876
  t = t || !!o && yr in o, e[a] = typeof o == "function" ? (t = !0, W(o)) : o;
1877
1877
  }
1878
- if (ws && t)
1878
+ if (vs && t)
1879
1879
  return new Proxy(
1880
1880
  {
1881
1881
  get(a) {
@@ -1911,7 +1911,7 @@ function ga(...e) {
1911
1911
  n[d] = l.get ? {
1912
1912
  enumerable: !0,
1913
1913
  configurable: !0,
1914
- get: pa.bind(r[d] = [l.get.bind(o)])
1914
+ get: ga.bind(r[d] = [l.get.bind(o)])
1915
1915
  } : l.value !== void 0 ? l : void 0;
1916
1916
  else {
1917
1917
  const h = r[d];
@@ -1926,8 +1926,8 @@ function ga(...e) {
1926
1926
  }
1927
1927
  return s;
1928
1928
  }
1929
- function ba(e, ...t) {
1930
- if (ws && yr in e) {
1929
+ function wa(e, ...t) {
1930
+ if (vs && yr in e) {
1931
1931
  const s = new Set(t.length > 1 ? t.flat() : t[0]), i = t.map((a) => new Proxy(
1932
1932
  {
1933
1933
  get(o) {
@@ -1969,11 +1969,11 @@ function ba(e, ...t) {
1969
1969
  }
1970
1970
  return [...n, r];
1971
1971
  }
1972
- function wa(e) {
1972
+ function va(e) {
1973
1973
  let t, r;
1974
1974
  const n = (s) => {
1975
1975
  if (!t) {
1976
- const [a] = na(() => (r || (r = e())).then((o) => o.default));
1976
+ const [a] = sa(() => (r || (r = e())).then((o) => o.default));
1977
1977
  t = a;
1978
1978
  }
1979
1979
  let i;
@@ -1983,24 +1983,24 @@ function wa(e) {
1983
1983
  };
1984
1984
  return n.preload = () => r || ((r = e()).then((s) => t = () => s.default), r), n;
1985
1985
  }
1986
- var va = 0;
1987
- function Ru() {
1988
- return `cl-${va++}`;
1986
+ var Ea = 0;
1987
+ function Ou() {
1988
+ return `cl-${Ea++}`;
1989
1989
  }
1990
- var Os = (e) => `Stale read from <${e}>.`;
1991
- function Ou(e) {
1990
+ var _s = (e) => `Stale read from <${e}>.`;
1991
+ function _u(e) {
1992
1992
  const t = "fallback" in e && {
1993
1993
  fallback: () => e.fallback
1994
1994
  };
1995
- return W(ha(() => e.each, e.children, t || void 0));
1995
+ return W(ya(() => e.each, e.children, t || void 0));
1996
1996
  }
1997
- function _u(e) {
1997
+ function Cu(e) {
1998
1998
  const t = "fallback" in e && {
1999
1999
  fallback: () => e.fallback
2000
2000
  };
2001
- return W(ya(() => e.each, e.children, t || void 0));
2001
+ return W(ma(() => e.each, e.children, t || void 0));
2002
2002
  }
2003
- function Cu(e) {
2003
+ function Nu(e) {
2004
2004
  const t = e.keyed, r = W(() => e.when, void 0, void 0), n = t ? r : W(r, void 0, {
2005
2005
  equals: (s, i) => !s == !i
2006
2006
  });
@@ -2012,7 +2012,7 @@ function Cu(e) {
2012
2012
  return typeof i == "function" && i.length > 0 ? z(
2013
2013
  () => i(
2014
2014
  t ? s : () => {
2015
- if (!z(n)) throw Os("Show");
2015
+ if (!z(n)) throw _s("Show");
2016
2016
  return r();
2017
2017
  }
2018
2018
  )
@@ -2024,8 +2024,8 @@ function Cu(e) {
2024
2024
  void 0
2025
2025
  );
2026
2026
  }
2027
- function Nu(e) {
2028
- const t = Ts(() => e.children), r = W(() => {
2027
+ function Pu(e) {
2028
+ const t = As(() => e.children), r = W(() => {
2029
2029
  const n = t(), s = Array.isArray(n) ? n : [n];
2030
2030
  let i = () => {
2031
2031
  };
@@ -2050,7 +2050,7 @@ function Nu(e) {
2050
2050
  () => o(
2051
2051
  a.keyed ? i() : () => {
2052
2052
  var u;
2053
- if (((u = z(r)()) == null ? void 0 : u[0]) !== s) throw Os("Match");
2053
+ if (((u = z(r)()) == null ? void 0 : u[0]) !== s) throw _s("Match");
2054
2054
  return i();
2055
2055
  }
2056
2056
  )
@@ -2060,10 +2060,10 @@ function Nu(e) {
2060
2060
  void 0
2061
2061
  );
2062
2062
  }
2063
- function Pu(e) {
2063
+ function xu(e) {
2064
2064
  return e;
2065
2065
  }
2066
- var Ea = [
2066
+ var Sa = [
2067
2067
  "allowfullscreen",
2068
2068
  "async",
2069
2069
  "autofocus",
@@ -2089,7 +2089,7 @@ var Ea = [
2089
2089
  "reversed",
2090
2090
  "seamless",
2091
2091
  "selected"
2092
- ], Sa = /* @__PURE__ */ new Set([
2092
+ ], Ta = /* @__PURE__ */ new Set([
2093
2093
  "className",
2094
2094
  "value",
2095
2095
  "readOnly",
@@ -2097,16 +2097,16 @@ var Ea = [
2097
2097
  "isMap",
2098
2098
  "noModule",
2099
2099
  "playsInline",
2100
- ...Ea
2101
- ]), Ta = /* @__PURE__ */ new Set([
2100
+ ...Sa
2101
+ ]), Aa = /* @__PURE__ */ new Set([
2102
2102
  "innerHTML",
2103
2103
  "textContent",
2104
2104
  "innerText",
2105
2105
  "children"
2106
- ]), Aa = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
2106
+ ]), Ia = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
2107
2107
  className: "class",
2108
2108
  htmlFor: "for"
2109
- }), Ia = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
2109
+ }), ka = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
2110
2110
  class: "className",
2111
2111
  formnovalidate: {
2112
2112
  $: "formNoValidate",
@@ -2131,11 +2131,11 @@ var Ea = [
2131
2131
  TEXTAREA: 1
2132
2132
  }
2133
2133
  });
2134
- function ka(e, t) {
2135
- const r = Ia[e];
2134
+ function Ra(e, t) {
2135
+ const r = ka[e];
2136
2136
  return typeof r == "object" ? r[t] ? r.$ : void 0 : r;
2137
2137
  }
2138
- var Ra = /* @__PURE__ */ new Set([
2138
+ var Oa = /* @__PURE__ */ new Set([
2139
2139
  "beforeinput",
2140
2140
  "click",
2141
2141
  "dblclick",
@@ -2158,7 +2158,7 @@ var Ra = /* @__PURE__ */ new Set([
2158
2158
  "touchend",
2159
2159
  "touchmove",
2160
2160
  "touchstart"
2161
- ]), Oa = /* @__PURE__ */ new Set([
2161
+ ]), _a = /* @__PURE__ */ new Set([
2162
2162
  "altGlyph",
2163
2163
  "altGlyphDef",
2164
2164
  "altGlyphItem",
@@ -2236,11 +2236,11 @@ var Ra = /* @__PURE__ */ new Set([
2236
2236
  "use",
2237
2237
  "view",
2238
2238
  "vkern"
2239
- ]), _a = {
2239
+ ]), Ca = {
2240
2240
  xlink: "http://www.w3.org/1999/xlink",
2241
2241
  xml: "http://www.w3.org/XML/1998/namespace"
2242
2242
  };
2243
- function Ca(e, t, r) {
2243
+ function Na(e, t, r) {
2244
2244
  let n = r.length, s = t.length, i = n, a = 0, o = 0, c = t[s - 1].nextSibling, u = null;
2245
2245
  for (; a < s || o < i; ) {
2246
2246
  if (t[a] === r[o]) {
@@ -2280,7 +2280,7 @@ function Ca(e, t, r) {
2280
2280
  }
2281
2281
  }
2282
2282
  var It = "_$DX_DELEGATE";
2283
- function Na(e, t, r, n = {}) {
2283
+ function Pa(e, t, r, n = {}) {
2284
2284
  let s;
2285
2285
  return Je((i) => {
2286
2286
  s = i, t === document ? e() : nn(t, e(), t.firstChild ? null : void 0, r);
@@ -2288,7 +2288,7 @@ function Na(e, t, r, n = {}) {
2288
2288
  s(), t.textContent = "";
2289
2289
  };
2290
2290
  }
2291
- function xu(e, t, r, n) {
2291
+ function Du(e, t, r, n) {
2292
2292
  let s;
2293
2293
  const i = () => {
2294
2294
  const o = document.createElement("template");
@@ -2296,32 +2296,32 @@ function xu(e, t, r, n) {
2296
2296
  }, a = () => (s || (s = i())).cloneNode(!0);
2297
2297
  return a.cloneNode = a, a;
2298
2298
  }
2299
- function Pa(e, t = window.document) {
2299
+ function xa(e, t = window.document) {
2300
2300
  const r = t[It] || (t[It] = /* @__PURE__ */ new Set());
2301
2301
  for (let n = 0, s = e.length; n < s; n++) {
2302
2302
  const i = e[n];
2303
- r.has(i) || (r.add(i), t.addEventListener(i, _s));
2303
+ r.has(i) || (r.add(i), t.addEventListener(i, Cs));
2304
2304
  }
2305
2305
  }
2306
- function Du(e = window.document) {
2306
+ function $u(e = window.document) {
2307
2307
  if (e[It]) {
2308
- for (let t of e[It].keys()) e.removeEventListener(t, _s);
2308
+ for (let t of e[It].keys()) e.removeEventListener(t, Cs);
2309
2309
  delete e[It];
2310
2310
  }
2311
2311
  }
2312
2312
  function rn(e, t, r) {
2313
2313
  r == null ? e.removeAttribute(t) : e.setAttribute(t, r);
2314
2314
  }
2315
- function xa(e, t, r, n) {
2315
+ function Da(e, t, r, n) {
2316
2316
  n == null ? e.removeAttributeNS(t, r) : e.setAttributeNS(t, r, n);
2317
2317
  }
2318
- function Da(e, t, r) {
2318
+ function $a(e, t, r) {
2319
2319
  r ? e.setAttribute(t, "") : e.removeAttribute(t);
2320
2320
  }
2321
- function $a(e, t) {
2321
+ function La(e, t) {
2322
2322
  t == null ? e.removeAttribute("class") : e.className = t;
2323
2323
  }
2324
- function La(e, t, r, n) {
2324
+ function Ma(e, t, r, n) {
2325
2325
  if (n)
2326
2326
  Array.isArray(r) ? (e[`$$${t}`] = r[0], e[`$$${t}Data`] = r[1]) : e[`$$${t}`] = r;
2327
2327
  else if (Array.isArray(r)) {
@@ -2329,20 +2329,20 @@ function La(e, t, r, n) {
2329
2329
  e.addEventListener(t, r[0] = (i) => s.call(e, r[1], i));
2330
2330
  } else e.addEventListener(t, r, typeof r != "function" && r);
2331
2331
  }
2332
- function Ma(e, t, r = {}) {
2332
+ function Ua(e, t, r = {}) {
2333
2333
  const n = Object.keys(t || {}), s = Object.keys(r);
2334
2334
  let i, a;
2335
2335
  for (i = 0, a = s.length; i < a; i++) {
2336
2336
  const o = s[i];
2337
- !o || o === "undefined" || t[o] || (Nn(e, o, !1), delete r[o]);
2337
+ !o || o === "undefined" || t[o] || (Pn(e, o, !1), delete r[o]);
2338
2338
  }
2339
2339
  for (i = 0, a = n.length; i < a; i++) {
2340
2340
  const o = n[i], c = !!t[o];
2341
- !o || o === "undefined" || r[o] === c || !c || (Nn(e, o, !0), r[o] = c);
2341
+ !o || o === "undefined" || r[o] === c || !c || (Pn(e, o, !0), r[o] = c);
2342
2342
  }
2343
2343
  return r;
2344
2344
  }
2345
- function Ua(e, t, r) {
2345
+ function Ka(e, t, r) {
2346
2346
  if (!t) return r ? rn(e, "style") : t;
2347
2347
  const n = e.style;
2348
2348
  if (typeof t == "string") return n.cssText = t;
@@ -2354,45 +2354,45 @@ function Ua(e, t, r) {
2354
2354
  s = t[i], s !== r[i] && (n.setProperty(i, s), r[i] = s);
2355
2355
  return r;
2356
2356
  }
2357
- function Ka(e, t = {}, r, n) {
2357
+ function Ha(e, t = {}, r, n) {
2358
2358
  const s = {};
2359
2359
  return n || ze(
2360
2360
  () => s.children = Dt(e, t.children, s.children)
2361
- ), ze(() => typeof t.ref == "function" && Ha(t.ref, e)), ze(() => Fa(e, t, r, !0, s, !0)), s;
2361
+ ), ze(() => typeof t.ref == "function" && Fa(t.ref, e)), ze(() => Ba(e, t, r, !0, s, !0)), s;
2362
2362
  }
2363
- function Ha(e, t, r) {
2363
+ function Fa(e, t, r) {
2364
2364
  return z(() => e(t, r));
2365
2365
  }
2366
2366
  function nn(e, t, r, n) {
2367
2367
  if (r !== void 0 && !n && (n = []), typeof t != "function") return Dt(e, t, n, r);
2368
2368
  ze((s) => Dt(e, t(), s, r), n);
2369
2369
  }
2370
- function Fa(e, t, r, n, s = {}, i = !1) {
2370
+ function Ba(e, t, r, n, s = {}, i = !1) {
2371
2371
  t || (t = {});
2372
2372
  for (const a in s)
2373
2373
  if (!(a in t)) {
2374
2374
  if (a === "children") continue;
2375
- s[a] = Pn(e, a, null, s[a], r, i, t);
2375
+ s[a] = xn(e, a, null, s[a], r, i, t);
2376
2376
  }
2377
2377
  for (const a in t) {
2378
2378
  if (a === "children")
2379
2379
  continue;
2380
2380
  const o = t[a];
2381
- s[a] = Pn(e, a, o, s[a], r, i, t);
2381
+ s[a] = xn(e, a, o, s[a], r, i, t);
2382
2382
  }
2383
2383
  }
2384
- function Ba(e) {
2384
+ function Va(e) {
2385
2385
  return e.toLowerCase().replace(/-([a-z])/g, (t, r) => r.toUpperCase());
2386
2386
  }
2387
- function Nn(e, t, r) {
2387
+ function Pn(e, t, r) {
2388
2388
  const n = t.trim().split(/\s+/);
2389
2389
  for (let s = 0, i = n.length; s < i; s++)
2390
2390
  e.classList.toggle(n[s], r);
2391
2391
  }
2392
- function Pn(e, t, r, n, s, i, a) {
2392
+ function xn(e, t, r, n, s, i, a) {
2393
2393
  let o, c, u, d, l;
2394
- if (t === "style") return Ua(e, r, n);
2395
- if (t === "classList") return Ma(e, r, n);
2394
+ if (t === "style") return Ka(e, r, n);
2395
+ if (t === "classList") return Ua(e, r, n);
2396
2396
  if (r === n) return n;
2397
2397
  if (t === "ref")
2398
2398
  i || r(e);
@@ -2403,25 +2403,25 @@ function Pn(e, t, r, n, s, i, a) {
2403
2403
  const h = t.slice(10);
2404
2404
  n && e.removeEventListener(h, n, !0), r && e.addEventListener(h, r, !0);
2405
2405
  } else if (t.slice(0, 2) === "on") {
2406
- const h = t.slice(2).toLowerCase(), y = Ra.has(h);
2406
+ const h = t.slice(2).toLowerCase(), y = Oa.has(h);
2407
2407
  if (!y && n) {
2408
2408
  const m = Array.isArray(n) ? n[0] : n;
2409
2409
  e.removeEventListener(h, m);
2410
2410
  }
2411
- (y || r) && (La(e, h, r, y), y && Pa([h]));
2411
+ (y || r) && (Ma(e, h, r, y), y && xa([h]));
2412
2412
  } else if (t.slice(0, 5) === "attr:")
2413
2413
  rn(e, t.slice(5), r);
2414
2414
  else if (t.slice(0, 5) === "bool:")
2415
- Da(e, t.slice(5), r);
2416
- else if ((l = t.slice(0, 5) === "prop:") || (u = Ta.has(t)) || !s && ((d = ka(t, e.tagName)) || (c = Sa.has(t))) || (o = e.nodeName.includes("-") || "is" in a))
2417
- l && (t = t.slice(5), c = !0), t === "class" || t === "className" ? $a(e, r) : o && !c && !u ? e[Ba(t)] = r : e[d || t] = r;
2415
+ $a(e, t.slice(5), r);
2416
+ else if ((l = t.slice(0, 5) === "prop:") || (u = Aa.has(t)) || !s && ((d = Ra(t, e.tagName)) || (c = Ta.has(t))) || (o = e.nodeName.includes("-") || "is" in a))
2417
+ l && (t = t.slice(5), c = !0), t === "class" || t === "className" ? La(e, r) : o && !c && !u ? e[Va(t)] = r : e[d || t] = r;
2418
2418
  else {
2419
- const h = s && t.indexOf(":") > -1 && _a[t.split(":")[0]];
2420
- h ? xa(e, h, t, r) : rn(e, Aa[t] || t, r);
2419
+ const h = s && t.indexOf(":") > -1 && Ca[t.split(":")[0]];
2420
+ h ? Da(e, h, t, r) : rn(e, Ia[t] || t, r);
2421
2421
  }
2422
2422
  return r;
2423
2423
  }
2424
- function _s(e) {
2424
+ function Cs(e) {
2425
2425
  let t = e.target;
2426
2426
  const r = `$$${e.type}`, n = e.target, s = e.currentTarget, i = (c) => Object.defineProperty(e, "target", {
2427
2427
  configurable: !0,
@@ -2482,7 +2482,7 @@ function Dt(e, t, r, n, s) {
2482
2482
  return ze(() => r = Dt(e, o, r, n, !0)), () => r;
2483
2483
  if (o.length === 0) {
2484
2484
  if (r = Ye(e, r, n), a) return r;
2485
- } else c ? r.length === 0 ? xn(e, o, n) : Ca(e, r, o) : (r && Ye(e), xn(e, o));
2485
+ } else c ? r.length === 0 ? Dn(e, o, n) : Na(e, r, o) : (r && Ye(e), Dn(e, o));
2486
2486
  r = o;
2487
2487
  } else if (t.nodeType) {
2488
2488
  if (Array.isArray(r)) {
@@ -2519,7 +2519,7 @@ function sn(e, t, r, n) {
2519
2519
  }
2520
2520
  return s;
2521
2521
  }
2522
- function xn(e, t, r = null) {
2522
+ function Dn(e, t, r = null) {
2523
2523
  for (let n = 0, s = t.length; n < s; n++) e.insertBefore(t[n], r);
2524
2524
  }
2525
2525
  function Ye(e, t, r, n) {
@@ -2537,22 +2537,22 @@ function Ye(e, t, r, n) {
2537
2537
  } else e.insertBefore(s, r);
2538
2538
  return [s];
2539
2539
  }
2540
- var Va = "http://www.w3.org/2000/svg";
2541
- function Cs(e, t = !1) {
2542
- return t ? document.createElementNS(Va, e) : document.createElement(e);
2540
+ var ja = "http://www.w3.org/2000/svg";
2541
+ function Ns(e, t = !1) {
2542
+ return t ? document.createElementNS(ja, e) : document.createElement(e);
2543
2543
  }
2544
- function $u(e) {
2545
- const { useShadow: t } = e, r = document.createTextNode(""), n = () => e.mount || document.body, s = ia();
2544
+ function Lu(e) {
2545
+ const { useShadow: t } = e, r = document.createTextNode(""), n = () => e.mount || document.body, s = aa();
2546
2546
  let i;
2547
- return Ss(
2547
+ return Ts(
2548
2548
  () => {
2549
- i || (i = aa(s, () => W(() => e.children)));
2549
+ i || (i = oa(s, () => W(() => e.children)));
2550
2550
  const a = n();
2551
2551
  if (a instanceof HTMLHeadElement) {
2552
2552
  const [o, c] = ne(!1), u = () => c(!0);
2553
2553
  Je((d) => nn(a, () => o() ? d() : i(), null)), Pt(u);
2554
2554
  } else {
2555
- const o = Cs(e.isSVG ? "g" : "div", e.isSVG), c = t && o.attachShadow ? o.attachShadow({
2555
+ const o = Ns(e.isSVG ? "g" : "div", e.isSVG), c = t && o.attachShadow ? o.attachShadow({
2556
2556
  mode: "open"
2557
2557
  }) : o;
2558
2558
  Object.defineProperty(o, "_$host", {
@@ -2569,7 +2569,7 @@ function $u(e) {
2569
2569
  }
2570
2570
  ), r;
2571
2571
  }
2572
- function ja(e, t) {
2572
+ function Ga(e, t) {
2573
2573
  const r = W(e);
2574
2574
  return W(() => {
2575
2575
  const n = r();
@@ -2577,16 +2577,16 @@ function ja(e, t) {
2577
2577
  case "function":
2578
2578
  return z(() => n(t));
2579
2579
  case "string":
2580
- const s = Oa.has(n), i = Cs(n, s);
2581
- return Ka(i, t, s), i;
2580
+ const s = _a.has(n), i = Ns(n, s);
2581
+ return Ha(i, t, s), i;
2582
2582
  }
2583
2583
  });
2584
2584
  }
2585
- function Lu(e) {
2586
- const [, t] = ba(e, ["component"]);
2587
- return ja(() => e.component, t);
2585
+ function Mu(e) {
2586
+ const [, t] = wa(e, ["component"]);
2587
+ return Ga(() => e.component, t);
2588
2588
  }
2589
- var Ga = class {
2589
+ var qa = class {
2590
2590
  constructor() {
2591
2591
  this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
2592
2592
  }
@@ -2602,9 +2602,9 @@ var Ga = class {
2602
2602
  clear() {
2603
2603
  this.keyToValue.clear(), this.valueToKey.clear();
2604
2604
  }
2605
- }, Ns = class {
2605
+ }, Ps = class {
2606
2606
  constructor(e) {
2607
- this.generateIdentifier = e, this.kv = new Ga();
2607
+ this.generateIdentifier = e, this.kv = new qa();
2608
2608
  }
2609
2609
  register(e, t) {
2610
2610
  this.kv.getByValue(e) || (t || (t = this.generateIdentifier(e)), this.kv.set(t, e));
@@ -2618,7 +2618,7 @@ var Ga = class {
2618
2618
  getValue(e) {
2619
2619
  return this.kv.getByKey(e);
2620
2620
  }
2621
- }, qa = class extends Ns {
2621
+ }, Wa = class extends Ps {
2622
2622
  constructor() {
2623
2623
  super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
2624
2624
  }
@@ -2629,7 +2629,7 @@ var Ga = class {
2629
2629
  return this.classToAllowedProps.get(e);
2630
2630
  }
2631
2631
  };
2632
- function Wa(e) {
2632
+ function Ja(e) {
2633
2633
  if ("values" in Object)
2634
2634
  return Object.values(e);
2635
2635
  const t = [];
@@ -2637,8 +2637,8 @@ function Wa(e) {
2637
2637
  e.hasOwnProperty(r) && t.push(e[r]);
2638
2638
  return t;
2639
2639
  }
2640
- function Ja(e, t) {
2641
- const r = Wa(e);
2640
+ function za(e, t) {
2641
+ const r = Ja(e);
2642
2642
  if ("find" in r)
2643
2643
  return r.find(t);
2644
2644
  const n = r;
@@ -2654,14 +2654,14 @@ function vt(e, t) {
2654
2654
  function or(e, t) {
2655
2655
  return e.indexOf(t) !== -1;
2656
2656
  }
2657
- function Dn(e, t) {
2657
+ function $n(e, t) {
2658
2658
  for (let r = 0; r < e.length; r++) {
2659
2659
  const n = e[r];
2660
2660
  if (t(n))
2661
2661
  return n;
2662
2662
  }
2663
2663
  }
2664
- var za = class {
2664
+ var Qa = class {
2665
2665
  constructor() {
2666
2666
  this.transfomers = {};
2667
2667
  }
@@ -2669,12 +2669,12 @@ var za = class {
2669
2669
  this.transfomers[e.name] = e;
2670
2670
  }
2671
2671
  findApplicable(e) {
2672
- return Ja(this.transfomers, (t) => t.isApplicable(e));
2672
+ return za(this.transfomers, (t) => t.isApplicable(e));
2673
2673
  }
2674
2674
  findByName(e) {
2675
2675
  return this.transfomers[e];
2676
2676
  }
2677
- }, Qa = (e) => Object.prototype.toString.call(e).slice(8, -1), Ps = (e) => typeof e > "u", Ya = (e) => e === null, $t = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, an = (e) => $t(e) && Object.keys(e).length === 0, Ue = (e) => Array.isArray(e), Xa = (e) => typeof e == "string", Za = (e) => typeof e == "number" && !isNaN(e), eo = (e) => typeof e == "boolean", to = (e) => e instanceof RegExp, Lt = (e) => e instanceof Map, Mt = (e) => e instanceof Set, xs = (e) => Qa(e) === "Symbol", ro = (e) => e instanceof Date && !isNaN(e.valueOf()), no = (e) => e instanceof Error, $n = (e) => typeof e == "number" && isNaN(e), so = (e) => eo(e) || Ya(e) || Ps(e) || Za(e) || Xa(e) || xs(e), io = (e) => typeof e == "bigint", ao = (e) => e === 1 / 0 || e === -1 / 0, oo = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), co = (e) => e instanceof URL, Ds = (e) => e.replace(/\./g, "\\."), Mr = (e) => e.map(String).map(Ds).join("."), kt = (e) => {
2677
+ }, Ya = (e) => Object.prototype.toString.call(e).slice(8, -1), xs = (e) => typeof e > "u", Xa = (e) => e === null, $t = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, an = (e) => $t(e) && Object.keys(e).length === 0, Ue = (e) => Array.isArray(e), Za = (e) => typeof e == "string", eo = (e) => typeof e == "number" && !isNaN(e), to = (e) => typeof e == "boolean", ro = (e) => e instanceof RegExp, Lt = (e) => e instanceof Map, Mt = (e) => e instanceof Set, Ds = (e) => Ya(e) === "Symbol", no = (e) => e instanceof Date && !isNaN(e.valueOf()), so = (e) => e instanceof Error, Ln = (e) => typeof e == "number" && isNaN(e), io = (e) => to(e) || Xa(e) || xs(e) || eo(e) || Za(e) || Ds(e), ao = (e) => typeof e == "bigint", oo = (e) => e === 1 / 0 || e === -1 / 0, co = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), lo = (e) => e instanceof URL, $s = (e) => e.replace(/\./g, "\\."), Mr = (e) => e.map(String).map($s).join("."), kt = (e) => {
2678
2678
  const t = [];
2679
2679
  let r = "";
2680
2680
  for (let s = 0; s < e.length; s++) {
@@ -2700,12 +2700,12 @@ function fe(e, t, r, n) {
2700
2700
  untransform: n
2701
2701
  };
2702
2702
  }
2703
- var $s = [
2704
- fe(Ps, "undefined", () => null, () => {
2703
+ var Ls = [
2704
+ fe(xs, "undefined", () => null, () => {
2705
2705
  }),
2706
- fe(io, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : e),
2707
- fe(ro, "Date", (e) => e.toISOString(), (e) => new Date(e)),
2708
- fe(no, "Error", (e, t) => {
2706
+ fe(ao, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : e),
2707
+ fe(no, "Date", (e) => e.toISOString(), (e) => new Date(e)),
2708
+ fe(so, "Error", (e, t) => {
2709
2709
  const r = {
2710
2710
  name: e.name,
2711
2711
  message: e.message
@@ -2719,7 +2719,7 @@ var $s = [
2719
2719
  r[n] = e[n];
2720
2720
  }), r;
2721
2721
  }),
2722
- fe(to, "regexp", (e) => "" + e, (e) => {
2722
+ fe(ro, "regexp", (e) => "" + e, (e) => {
2723
2723
  const t = e.slice(1, e.lastIndexOf("/")), r = e.slice(e.lastIndexOf("/") + 1);
2724
2724
  return new RegExp(t, r);
2725
2725
  }),
@@ -2732,9 +2732,9 @@ var $s = [
2732
2732
  (e) => new Set(e)
2733
2733
  ),
2734
2734
  fe(Lt, "map", (e) => [...e.entries()], (e) => new Map(e)),
2735
- fe((e) => $n(e) || ao(e), "number", (e) => $n(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
2735
+ fe((e) => Ln(e) || oo(e), "number", (e) => Ln(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
2736
2736
  fe((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
2737
- fe(co, "URL", (e) => e.toString(), (e) => new URL(e))
2737
+ fe(lo, "URL", (e) => e.toString(), (e) => new URL(e))
2738
2738
  ];
2739
2739
  function Or(e, t, r, n) {
2740
2740
  return {
@@ -2744,12 +2744,12 @@ function Or(e, t, r, n) {
2744
2744
  untransform: n
2745
2745
  };
2746
2746
  }
2747
- var Ls = Or((e, t) => xs(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, r) => {
2747
+ var Ms = Or((e, t) => Ds(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, r) => {
2748
2748
  const n = r.symbolRegistry.getValue(t[1]);
2749
2749
  if (!n)
2750
2750
  throw new Error("Trying to deserialize unknown symbol");
2751
2751
  return n;
2752
- }), lo = [
2752
+ }), uo = [
2753
2753
  Int8Array,
2754
2754
  Uint8Array,
2755
2755
  Int16Array,
@@ -2759,16 +2759,16 @@ var Ls = Or((e, t) => xs(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
2759
2759
  Float32Array,
2760
2760
  Float64Array,
2761
2761
  Uint8ClampedArray
2762
- ].reduce((e, t) => (e[t.name] = t, e), {}), Ms = Or(oo, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
2763
- const r = lo[t[1]];
2762
+ ].reduce((e, t) => (e[t.name] = t, e), {}), Us = Or(co, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
2763
+ const r = uo[t[1]];
2764
2764
  if (!r)
2765
2765
  throw new Error("Trying to deserialize unknown typed array");
2766
2766
  return new r(e);
2767
2767
  });
2768
- function Us(e, t) {
2768
+ function Ks(e, t) {
2769
2769
  return e != null && e.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1;
2770
2770
  }
2771
- var Ks = Or(Us, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
2771
+ var Hs = Or(Ks, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
2772
2772
  const r = t.classRegistry.getAllowedProps(e.constructor);
2773
2773
  if (!r)
2774
2774
  return { ...e };
@@ -2781,44 +2781,44 @@ var Ks = Or(Us, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
2781
2781
  if (!n)
2782
2782
  throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");
2783
2783
  return Object.assign(Object.create(n.prototype), e);
2784
- }), Hs = Or((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, r) => {
2784
+ }), Fs = Or((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, r) => {
2785
2785
  const n = r.customTransformerRegistry.findByName(t[1]);
2786
2786
  if (!n)
2787
2787
  throw new Error("Trying to deserialize unknown custom value");
2788
2788
  return n.deserialize(e);
2789
- }), uo = [Ks, Ls, Hs, Ms], Ln = (e, t) => {
2790
- const r = Dn(uo, (s) => s.isApplicable(e, t));
2789
+ }), fo = [Hs, Ms, Fs, Us], Mn = (e, t) => {
2790
+ const r = $n(fo, (s) => s.isApplicable(e, t));
2791
2791
  if (r)
2792
2792
  return {
2793
2793
  value: r.transform(e, t),
2794
2794
  type: r.annotation(e, t)
2795
2795
  };
2796
- const n = Dn($s, (s) => s.isApplicable(e, t));
2796
+ const n = $n(Ls, (s) => s.isApplicable(e, t));
2797
2797
  if (n)
2798
2798
  return {
2799
2799
  value: n.transform(e, t),
2800
2800
  type: n.annotation
2801
2801
  };
2802
- }, Fs = {};
2803
- $s.forEach((e) => {
2804
- Fs[e.annotation] = e;
2802
+ }, Bs = {};
2803
+ Ls.forEach((e) => {
2804
+ Bs[e.annotation] = e;
2805
2805
  });
2806
- var fo = (e, t, r) => {
2806
+ var ho = (e, t, r) => {
2807
2807
  if (Ue(t))
2808
2808
  switch (t[0]) {
2809
2809
  case "symbol":
2810
- return Ls.untransform(e, t, r);
2810
+ return Ms.untransform(e, t, r);
2811
2811
  case "class":
2812
- return Ks.untransform(e, t, r);
2813
- case "custom":
2814
2812
  return Hs.untransform(e, t, r);
2813
+ case "custom":
2814
+ return Fs.untransform(e, t, r);
2815
2815
  case "typed-array":
2816
- return Ms.untransform(e, t, r);
2816
+ return Us.untransform(e, t, r);
2817
2817
  default:
2818
2818
  throw new Error("Unknown transformation: " + t);
2819
2819
  }
2820
2820
  else {
2821
- const n = Fs[t];
2821
+ const n = Bs[t];
2822
2822
  if (!n)
2823
2823
  throw new Error("Unknown transformation: " + t);
2824
2824
  return n.untransform(e, r);
@@ -2829,7 +2829,7 @@ var fo = (e, t, r) => {
2829
2829
  r.next(), t--;
2830
2830
  return r.next().value;
2831
2831
  };
2832
- function Bs(e) {
2832
+ function Vs(e) {
2833
2833
  if (or(e, "__proto__"))
2834
2834
  throw new Error("__proto__ is not allowed as a property");
2835
2835
  if (or(e, "prototype"))
@@ -2837,8 +2837,8 @@ function Bs(e) {
2837
2837
  if (or(e, "constructor"))
2838
2838
  throw new Error("constructor is not allowed as a property");
2839
2839
  }
2840
- var ho = (e, t) => {
2841
- Bs(t);
2840
+ var yo = (e, t) => {
2841
+ Vs(t);
2842
2842
  for (let r = 0; r < t.length; r++) {
2843
2843
  const n = t[r];
2844
2844
  if (Mt(e))
@@ -2858,7 +2858,7 @@ var ho = (e, t) => {
2858
2858
  }
2859
2859
  return e;
2860
2860
  }, on = (e, t, r) => {
2861
- if (Bs(t), t.length === 0)
2861
+ if (Vs(t), t.length === 0)
2862
2862
  return r(e);
2863
2863
  let n = e;
2864
2864
  for (let i = 0; i < t.length - 1; i++) {
@@ -2918,14 +2918,14 @@ function cn(e, t, r = []) {
2918
2918
  cn(i, t, [...r, ...kt(a)]);
2919
2919
  }), t(n, r);
2920
2920
  }
2921
- function yo(e, t, r) {
2921
+ function mo(e, t, r) {
2922
2922
  return cn(t, (n, s) => {
2923
- e = on(e, s, (i) => fo(i, n, r));
2923
+ e = on(e, s, (i) => ho(i, n, r));
2924
2924
  }), e;
2925
2925
  }
2926
- function mo(e, t) {
2926
+ function po(e, t) {
2927
2927
  function r(n, s) {
2928
- const i = ho(e, kt(s));
2928
+ const i = yo(e, kt(s));
2929
2929
  n.map(kt).forEach((a) => {
2930
2930
  e = on(e, a, () => i);
2931
2931
  });
@@ -2939,12 +2939,12 @@ function mo(e, t) {
2939
2939
  vt(t, r);
2940
2940
  return e;
2941
2941
  }
2942
- var po = (e, t) => $t(e) || Ue(e) || Lt(e) || Mt(e) || Us(e, t);
2943
- function go(e, t, r) {
2942
+ var go = (e, t) => $t(e) || Ue(e) || Lt(e) || Mt(e) || Ks(e, t);
2943
+ function bo(e, t, r) {
2944
2944
  const n = r.get(e);
2945
2945
  n ? n.push(t) : r.set(e, [t]);
2946
2946
  }
2947
- function bo(e, t) {
2947
+ function wo(e, t) {
2948
2948
  const r = {};
2949
2949
  let n;
2950
2950
  return e.forEach((s) => {
@@ -2955,18 +2955,18 @@ function bo(e, t) {
2955
2955
  i.length === 0 ? n = a.map(Mr) : r[Mr(i)] = a.map(Mr);
2956
2956
  }), n ? an(r) ? [n] : [n, r] : an(r) ? void 0 : r;
2957
2957
  }
2958
- var Vs = (e, t, r, n, s = [], i = [], a = /* @__PURE__ */ new Map()) => {
2959
- const o = so(e);
2958
+ var js = (e, t, r, n, s = [], i = [], a = /* @__PURE__ */ new Map()) => {
2959
+ const o = io(e);
2960
2960
  if (!o) {
2961
- go(e, s, t);
2961
+ bo(e, s, t);
2962
2962
  const y = a.get(e);
2963
2963
  if (y)
2964
2964
  return n ? {
2965
2965
  transformedValue: null
2966
2966
  } : y;
2967
2967
  }
2968
- if (!po(e, r)) {
2969
- const y = Ln(e, r), m = y ? {
2968
+ if (!go(e, r)) {
2969
+ const y = Mn(e, r), m = y ? {
2970
2970
  transformedValue: y.value,
2971
2971
  annotations: [y.type]
2972
2972
  } : {
@@ -2978,13 +2978,13 @@ var Vs = (e, t, r, n, s = [], i = [], a = /* @__PURE__ */ new Map()) => {
2978
2978
  return {
2979
2979
  transformedValue: null
2980
2980
  };
2981
- const c = Ln(e, r), u = (c == null ? void 0 : c.value) ?? e, d = Ue(u) ? [] : {}, l = {};
2981
+ const c = Mn(e, r), u = (c == null ? void 0 : c.value) ?? e, d = Ue(u) ? [] : {}, l = {};
2982
2982
  vt(u, (y, m) => {
2983
2983
  if (m === "__proto__" || m === "constructor" || m === "prototype")
2984
2984
  throw new Error(`Detected property ${m}. This is a prototype pollution risk, please remove it from your object.`);
2985
- const g = Vs(y, t, r, n, [...s, m], [...i, e], a);
2985
+ const g = js(y, t, r, n, [...s, m], [...i, e], a);
2986
2986
  d[m] = g.transformedValue, Ue(g.annotations) ? l[m] = g.annotations : $t(g.annotations) && vt(g.annotations, (E, I) => {
2987
- l[Ds(m) + "." + I] = E;
2987
+ l[$s(m) + "." + I] = E;
2988
2988
  });
2989
2989
  });
2990
2990
  const h = an(l) ? {
@@ -2996,19 +2996,19 @@ var Vs = (e, t, r, n, s = [], i = [], a = /* @__PURE__ */ new Map()) => {
2996
2996
  };
2997
2997
  return o || a.set(e, h), h;
2998
2998
  };
2999
- function js(e) {
2999
+ function Gs(e) {
3000
3000
  return Object.prototype.toString.call(e).slice(8, -1);
3001
3001
  }
3002
- function Mn(e) {
3003
- return js(e) === "Array";
3002
+ function Un(e) {
3003
+ return Gs(e) === "Array";
3004
3004
  }
3005
- function wo(e) {
3006
- if (js(e) !== "Object")
3005
+ function vo(e) {
3006
+ if (Gs(e) !== "Object")
3007
3007
  return !1;
3008
3008
  const t = Object.getPrototypeOf(e);
3009
3009
  return !!t && t.constructor === Object && t === Object.prototype;
3010
3010
  }
3011
- function vo(e, t, r, n, s) {
3011
+ function Eo(e, t, r, n, s) {
3012
3012
  const i = {}.propertyIsEnumerable.call(n, t) ? "enumerable" : "nonenumerable";
3013
3013
  i === "enumerable" && (e[t] = r), s && i === "nonenumerable" && Object.defineProperty(e, t, {
3014
3014
  value: r,
@@ -3018,16 +3018,16 @@ function vo(e, t, r, n, s) {
3018
3018
  });
3019
3019
  }
3020
3020
  function ln(e, t = {}) {
3021
- if (Mn(e))
3021
+ if (Un(e))
3022
3022
  return e.map((s) => ln(s, t));
3023
- if (!wo(e))
3023
+ if (!vo(e))
3024
3024
  return e;
3025
3025
  const r = Object.getOwnPropertyNames(e), n = Object.getOwnPropertySymbols(e);
3026
3026
  return [...r, ...n].reduce((s, i) => {
3027
- if (Mn(t.props) && !t.props.includes(i))
3027
+ if (Un(t.props) && !t.props.includes(i))
3028
3028
  return s;
3029
3029
  const a = e[i], o = ln(a, t);
3030
- return vo(s, i, o, e, t.nonenumerable), s;
3030
+ return Eo(s, i, o, e, t.nonenumerable), s;
3031
3031
  }, {});
3032
3032
  }
3033
3033
  var D = class {
@@ -3035,17 +3035,17 @@ var D = class {
3035
3035
  * @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
3036
3036
  */
3037
3037
  constructor({ dedupe: e = !1 } = {}) {
3038
- this.classRegistry = new qa(), this.symbolRegistry = new Ns((t) => t.description ?? ""), this.customTransformerRegistry = new za(), this.allowedErrorProps = [], this.dedupe = e;
3038
+ this.classRegistry = new Wa(), this.symbolRegistry = new Ps((t) => t.description ?? ""), this.customTransformerRegistry = new Qa(), this.allowedErrorProps = [], this.dedupe = e;
3039
3039
  }
3040
3040
  serialize(e) {
3041
- const t = /* @__PURE__ */ new Map(), r = Vs(e, t, this, this.dedupe), n = {
3041
+ const t = /* @__PURE__ */ new Map(), r = js(e, t, this, this.dedupe), n = {
3042
3042
  json: r.transformedValue
3043
3043
  };
3044
3044
  r.annotations && (n.meta = {
3045
3045
  ...n.meta,
3046
3046
  values: r.annotations
3047
3047
  });
3048
- const s = bo(t, this.dedupe);
3048
+ const s = wo(t, this.dedupe);
3049
3049
  return s && (n.meta = {
3050
3050
  ...n.meta,
3051
3051
  referentialEqualities: s
@@ -3054,7 +3054,7 @@ var D = class {
3054
3054
  deserialize(e) {
3055
3055
  const { json: t, meta: r } = e;
3056
3056
  let n = ln(t);
3057
- return r != null && r.values && (n = yo(n, r.values, this)), r != null && r.referentialEqualities && (n = mo(n, r.referentialEqualities)), n;
3057
+ return r != null && r.values && (n = mo(n, r.values, this)), r != null && r.referentialEqualities && (n = po(n, r.referentialEqualities)), n;
3058
3058
  }
3059
3059
  stringify(e) {
3060
3060
  return JSON.stringify(this.serialize(e));
@@ -3087,44 +3087,44 @@ D.registerClass = D.defaultInstance.registerClass.bind(D.defaultInstance);
3087
3087
  D.registerSymbol = D.defaultInstance.registerSymbol.bind(D.defaultInstance);
3088
3088
  D.registerCustom = D.defaultInstance.registerCustom.bind(D.defaultInstance);
3089
3089
  D.allowErrorProps = D.defaultInstance.allowErrorProps.bind(D.defaultInstance);
3090
- var Eo = D.serialize, Mu = D.stringify;
3091
- function Uu(e) {
3090
+ var So = D.serialize, Uu = D.stringify;
3091
+ function Ku(e) {
3092
3092
  return e.state.fetchStatus === "fetching" ? "fetching" : e.getObserversCount() ? e.state.fetchStatus === "paused" ? "paused" : e.isStale() ? "stale" : "fresh" : "inactive";
3093
3093
  }
3094
- function Ku(e, t) {
3094
+ function Hu(e, t) {
3095
3095
  return `${e}${t.charAt(0).toUpperCase() + t.slice(1)}`;
3096
3096
  }
3097
- function Hu({
3097
+ function Fu({
3098
3098
  queryState: e,
3099
3099
  observerCount: t,
3100
3100
  isStale: r
3101
3101
  }) {
3102
3102
  return e.fetchStatus === "fetching" ? "blue" : t ? e.fetchStatus === "paused" ? "purple" : r ? "yellow" : "green" : "gray";
3103
3103
  }
3104
- function Fu({
3104
+ function Bu({
3105
3105
  status: e,
3106
3106
  isPaused: t
3107
3107
  }) {
3108
3108
  return t ? "purple" : e === "error" ? "red" : e === "pending" ? "yellow" : e === "success" ? "green" : "gray";
3109
3109
  }
3110
- function Bu(e) {
3110
+ function Vu(e) {
3111
3111
  return e === "fresh" ? "green" : e === "stale" ? "yellow" : e === "paused" ? "purple" : e === "inactive" ? "gray" : "blue";
3112
3112
  }
3113
- var Vu = (e, t = !1) => {
3113
+ var ju = (e, t = !1) => {
3114
3114
  const {
3115
3115
  json: r
3116
- } = Eo(e);
3116
+ } = So(e);
3117
3117
  return JSON.stringify(r, null, t ? 2 : void 0);
3118
- }, Yt = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, So = (e, t) => e.queryHash.localeCompare(t.queryHash), Gs = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, To = (e, t) => Yt(e) === Yt(t) ? Gs(e, t) : Yt(e) > Yt(t) ? 1 : -1, ju = {
3119
- status: To,
3120
- "query hash": So,
3121
- "last updated": Gs
3122
- }, Xt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, qs = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, Ao = (e, t) => Xt(e) === Xt(t) ? qs(e, t) : Xt(e) > Xt(t) ? 1 : -1, Gu = {
3118
+ }, Yt = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, To = (e, t) => e.queryHash.localeCompare(t.queryHash), qs = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, Ao = (e, t) => Yt(e) === Yt(t) ? qs(e, t) : Yt(e) > Yt(t) ? 1 : -1, Gu = {
3123
3119
  status: Ao,
3120
+ "query hash": To,
3124
3121
  "last updated": qs
3125
- }, qu = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), Wu = () => {
3122
+ }, Xt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, Ws = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, Io = (e, t) => Xt(e) === Xt(t) ? Ws(e, t) : Xt(e) > Xt(t) ? 1 : -1, qu = {
3123
+ status: Io,
3124
+ "last updated": Ws
3125
+ }, Wu = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), Ju = () => {
3126
3126
  const [e, t] = ne("dark");
3127
- return sa(() => {
3127
+ return ia(() => {
3128
3128
  const r = window.matchMedia("(prefers-color-scheme: dark)");
3129
3129
  t(r.matches ? "dark" : "light");
3130
3130
  const n = (s) => {
@@ -3192,11 +3192,11 @@ var Vu = (e, t = !1) => {
3192
3192
  return r[n] = er(r[n], s), r;
3193
3193
  }
3194
3194
  return e;
3195
- }, Io = (e, t) => {
3195
+ }, ko = (e, t) => {
3196
3196
  if (!e || document.querySelector("#_goober") || (t == null ? void 0 : t.querySelector("#_goober"))) return;
3197
3197
  const n = document.createElement("style"), s = document.createTextNode("");
3198
3198
  n.appendChild(s), n.id = "_goober", n.setAttribute("nonce", e), t ? t.appendChild(n) : document.head.appendChild(n);
3199
- }, ht, Bt, Vt, jt, We, Gt, yt, mt, pt, gt, bt, wt, qt, cs, ko = (cs = class {
3199
+ }, ht, Bt, Vt, jt, We, Gt, yt, mt, pt, gt, bt, wt, qt, ls, Ro = (ls = class {
3200
3200
  constructor(e) {
3201
3201
  A(this, ht);
3202
3202
  A(this, Bt);
@@ -3243,10 +3243,10 @@ var Vu = (e, t = !1) => {
3243
3243
  mount(e) {
3244
3244
  if (f(this, We))
3245
3245
  throw new Error("Devtools is already mounted");
3246
- const t = Na(() => {
3246
+ const t = Pa(() => {
3247
3247
  const r = this, [n] = f(this, mt), [s] = f(this, pt), [i] = f(this, gt), [a] = f(this, bt), [o] = f(this, ht);
3248
3248
  let c;
3249
- return f(this, wt) ? c = f(this, wt) : (c = wa(() => import("./2ZEF3XTO.D1WQFvio.js")), w(this, wt, c)), Io(f(this, Gt), f(this, yt)), ma(c, ga({
3249
+ return f(this, wt) ? c = f(this, wt) : (c = va(() => import("./2ZEF3XTO.DAgnOZCI.js")), w(this, wt, c)), ko(f(this, Gt), f(this, yt)), pa(c, ba({
3250
3250
  get queryFlavor() {
3251
3251
  return f(r, Vt);
3252
3252
  },
@@ -3285,9 +3285,9 @@ var Vu = (e, t = !1) => {
3285
3285
  throw new Error("Devtools is not mounted");
3286
3286
  (e = f(this, qt)) == null || e.call(this), w(this, We, !1);
3287
3287
  }
3288
- }, ht = new WeakMap(), Bt = new WeakMap(), Vt = new WeakMap(), jt = new WeakMap(), We = new WeakMap(), Gt = new WeakMap(), yt = new WeakMap(), mt = new WeakMap(), pt = new WeakMap(), gt = new WeakMap(), bt = new WeakMap(), wt = new WeakMap(), qt = new WeakMap(), cs);
3289
- function Ro(e) {
3290
- const t = Xi(e.client), r = oe.useRef(null), {
3288
+ }, ht = new WeakMap(), Bt = new WeakMap(), Vt = new WeakMap(), jt = new WeakMap(), We = new WeakMap(), Gt = new WeakMap(), yt = new WeakMap(), mt = new WeakMap(), pt = new WeakMap(), gt = new WeakMap(), bt = new WeakMap(), wt = new WeakMap(), qt = new WeakMap(), ls);
3289
+ function Oo(e) {
3290
+ const t = Zi(e.client), r = oe.useRef(null), {
3291
3291
  buttonPosition: n,
3292
3292
  position: s,
3293
3293
  initialIsOpen: i,
@@ -3295,7 +3295,7 @@ function Ro(e) {
3295
3295
  styleNonce: o,
3296
3296
  shadowDOMTarget: c
3297
3297
  } = e, [u] = oe.useState(
3298
- new ko({
3298
+ new Ro({
3299
3299
  client: t,
3300
3300
  queryFlavor: "React Query",
3301
3301
  version: "5",
@@ -3322,9 +3322,9 @@ function Ro(e) {
3322
3322
  u.unmount();
3323
3323
  }), [u]), /* @__PURE__ */ p("div", { dir: "ltr", className: "tsqd-parent-container", ref: r });
3324
3324
  }
3325
- var Oo = process.env.NODE_ENV !== "development" ? function() {
3325
+ var _o = process.env.NODE_ENV !== "development" ? function() {
3326
3326
  return null;
3327
- } : Ro, _o = Object.defineProperty, Co = (e, t, r) => t in e ? _o(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, K = (e, t, r) => Co(e, typeof t != "symbol" ? t + "" : t, r);
3327
+ } : Oo, Co = Object.defineProperty, No = (e, t, r) => t in e ? Co(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, K = (e, t, r) => No(e, typeof t != "symbol" ? t + "" : t, r);
3328
3328
  /*!
3329
3329
  @versini/auth-common v4.3.0
3330
3330
  © 2025 gizmette.com
@@ -3342,7 +3342,7 @@ const Rt = {
3342
3342
  CODE: "code",
3343
3343
  REFRESH_TOKEN: "refresh_token",
3344
3344
  PASSKEY: "passkey"
3345
- }, Ws = {
3345
+ }, Js = {
3346
3346
  CLIENT_ID: "X-Auth-ClientId"
3347
3347
  }, q = {
3348
3348
  ALG: "RS256",
@@ -3352,7 +3352,7 @@ const Rt = {
3352
3352
  NONCE_KEY: "_nonce",
3353
3353
  AUTH_TYPE_KEY: "auth_type",
3354
3354
  ISSUER: "gizmette.com"
3355
- }, No = `-----BEGIN PUBLIC KEY-----
3355
+ }, Po = `-----BEGIN PUBLIC KEY-----
3356
3356
  MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsF6i3Jd9fY/3COqCw/m7
3357
3357
  w5PKyTYLGAI2I6SIIdpe6i6DOCbEkmDz7LdVsBqwNtVi8gvWYIj+8ol6rU3qu1v5
3358
3358
  i1Jd45GSK4kzkVdgCmQZbM5ak0KI99q5wsrAIzUd+LRJ2HRvWtr5IYdsIiXaQjle
@@ -3366,14 +3366,14 @@ awIDAQAB
3366
3366
  LOGIN: "login",
3367
3367
  REFRESH: "refresh"
3368
3368
  }, tr = new TextEncoder(), Et = new TextDecoder();
3369
- function Po(...e) {
3369
+ function xo(...e) {
3370
3370
  const t = e.reduce((s, { length: i }) => s + i, 0), r = new Uint8Array(t);
3371
3371
  let n = 0;
3372
3372
  for (const s of e)
3373
3373
  r.set(s, n), n += s.length;
3374
3374
  return r;
3375
3375
  }
3376
- function xo(e) {
3376
+ function Do(e) {
3377
3377
  if (Uint8Array.fromBase64)
3378
3378
  return Uint8Array.fromBase64(e);
3379
3379
  const t = atob(e), r = new Uint8Array(t.length);
@@ -3389,7 +3389,7 @@ function Ot(e) {
3389
3389
  let t = e;
3390
3390
  t instanceof Uint8Array && (t = Et.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "");
3391
3391
  try {
3392
- return xo(t);
3392
+ return Do(t);
3393
3393
  } catch {
3394
3394
  throw new TypeError("The input to be decoded is not correctly encoded.");
3395
3395
  }
@@ -3413,12 +3413,12 @@ let un = class extends Ke {
3413
3413
  }
3414
3414
  };
3415
3415
  K(un, "code", "ERR_JWT_EXPIRED");
3416
- let Js = class extends Ke {
3416
+ let zs = class extends Ke {
3417
3417
  constructor() {
3418
3418
  super(...arguments), K(this, "code", "ERR_JOSE_ALG_NOT_ALLOWED");
3419
3419
  }
3420
3420
  };
3421
- K(Js, "code", "ERR_JOSE_ALG_NOT_ALLOWED");
3421
+ K(zs, "code", "ERR_JOSE_ALG_NOT_ALLOWED");
3422
3422
  let Le = class extends Ke {
3423
3423
  constructor() {
3424
3424
  super(...arguments), K(this, "code", "ERR_JOSE_NOT_SUPPORTED");
@@ -3437,12 +3437,12 @@ let he = class extends Ke {
3437
3437
  }
3438
3438
  };
3439
3439
  K(he, "code", "ERR_JWT_INVALID");
3440
- let zs = class extends Ke {
3440
+ let Qs = class extends Ke {
3441
3441
  constructor(t = "signature verification failed", r) {
3442
3442
  super(t, r), K(this, "code", "ERR_JWS_SIGNATURE_VERIFICATION_FAILED");
3443
3443
  }
3444
3444
  };
3445
- K(zs, "code", "ERR_JWS_SIGNATURE_VERIFICATION_FAILED");
3445
+ K(Qs, "code", "ERR_JWS_SIGNATURE_VERIFICATION_FAILED");
3446
3446
  function ve(e, t = "algorithm.name") {
3447
3447
  return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`);
3448
3448
  }
@@ -3452,7 +3452,7 @@ function Tt(e, t) {
3452
3452
  function Ur(e) {
3453
3453
  return parseInt(e.name.slice(4), 10);
3454
3454
  }
3455
- function Do(e) {
3455
+ function $o(e) {
3456
3456
  switch (e) {
3457
3457
  case "ES256":
3458
3458
  return "P-256";
@@ -3464,11 +3464,11 @@ function Do(e) {
3464
3464
  throw new Error("unreachable");
3465
3465
  }
3466
3466
  }
3467
- function $o(e, t) {
3467
+ function Lo(e, t) {
3468
3468
  if (!e.usages.includes(t))
3469
3469
  throw new TypeError(`CryptoKey does not support this operation, its usages must include ${t}.`);
3470
3470
  }
3471
- function Lo(e, t, r) {
3471
+ function Mo(e, t, r) {
3472
3472
  switch (t) {
3473
3473
  case "HS256":
3474
3474
  case "HS384":
@@ -3511,7 +3511,7 @@ function Lo(e, t, r) {
3511
3511
  case "ES512": {
3512
3512
  if (!Tt(e.algorithm, "ECDSA"))
3513
3513
  throw ve("ECDSA");
3514
- const n = Do(t);
3514
+ const n = $o(t);
3515
3515
  if (e.algorithm.namedCurve !== n)
3516
3516
  throw ve(n, "algorithm.namedCurve");
3517
3517
  break;
@@ -3519,9 +3519,9 @@ function Lo(e, t, r) {
3519
3519
  default:
3520
3520
  throw new TypeError("CryptoKey does not support this operation");
3521
3521
  }
3522
- $o(e, r);
3522
+ Lo(e, r);
3523
3523
  }
3524
- function Qs(e, t, ...r) {
3524
+ function Ys(e, t, ...r) {
3525
3525
  var n;
3526
3526
  if (r = r.filter(Boolean), r.length > 2) {
3527
3527
  const s = r.pop();
@@ -3529,17 +3529,17 @@ function Qs(e, t, ...r) {
3529
3529
  } else r.length === 2 ? e += `one of type ${r[0]} or ${r[1]}.` : e += `of type ${r[0]}.`;
3530
3530
  return t == null ? e += ` Received ${t}` : typeof t == "function" && t.name ? e += ` Received function ${t.name}` : typeof t == "object" && t != null && (n = t.constructor) != null && n.name && (e += ` Received an instance of ${t.constructor.name}`), e;
3531
3531
  }
3532
- const Mo = (e, ...t) => Qs("Key must be ", e, ...t);
3533
- function Ys(e, t, ...r) {
3534
- return Qs(`Key for the ${e} algorithm must be `, t, ...r);
3532
+ const Uo = (e, ...t) => Ys("Key must be ", e, ...t);
3533
+ function Xs(e, t, ...r) {
3534
+ return Ys(`Key for the ${e} algorithm must be `, t, ...r);
3535
3535
  }
3536
- function Xs(e) {
3536
+ function Zs(e) {
3537
3537
  return (e == null ? void 0 : e[Symbol.toStringTag]) === "CryptoKey";
3538
3538
  }
3539
- function Zs(e) {
3539
+ function ei(e) {
3540
3540
  return (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject";
3541
3541
  }
3542
- const ei = (e) => Xs(e) || Zs(e), Uo = (...e) => {
3542
+ const ti = (e) => Zs(e) || ei(e), Ko = (...e) => {
3543
3543
  const t = e.filter(Boolean);
3544
3544
  if (t.length === 0 || t.length === 1)
3545
3545
  return !0;
@@ -3558,11 +3558,11 @@ const ei = (e) => Xs(e) || Zs(e), Uo = (...e) => {
3558
3558
  }
3559
3559
  return !0;
3560
3560
  };
3561
- function Ko(e) {
3561
+ function Ho(e) {
3562
3562
  return typeof e == "object" && e !== null;
3563
3563
  }
3564
3564
  const Ut = (e) => {
3565
- if (!Ko(e) || Object.prototype.toString.call(e) !== "[object Object]")
3565
+ if (!Ho(e) || Object.prototype.toString.call(e) !== "[object Object]")
3566
3566
  return !1;
3567
3567
  if (Object.getPrototypeOf(e) === null)
3568
3568
  return !0;
@@ -3570,7 +3570,7 @@ const Ut = (e) => {
3570
3570
  for (; Object.getPrototypeOf(t) !== null; )
3571
3571
  t = Object.getPrototypeOf(t);
3572
3572
  return Object.getPrototypeOf(e) === t;
3573
- }, Ho = (e, t) => {
3573
+ }, Fo = (e, t) => {
3574
3574
  if (e.startsWith("RS") || e.startsWith("PS")) {
3575
3575
  const { modulusLength: r } = t.algorithm;
3576
3576
  if (typeof r != "number" || r < 2048)
@@ -3583,7 +3583,7 @@ const Ut = (e) => {
3583
3583
  return !1;
3584
3584
  const s = e.subarray(n, n + t.length);
3585
3585
  return s.length !== t.length ? !1 : s.every((i, a) => i === t[a]) || cr(e, t, n + 1);
3586
- }, Fo = (e) => {
3586
+ }, Bo = (e) => {
3587
3587
  switch (!0) {
3588
3588
  case cr(e, [42, 134, 72, 206, 61, 3, 1, 7]):
3589
3589
  return "P-256";
@@ -3594,7 +3594,7 @@ const Ut = (e) => {
3594
3594
  default:
3595
3595
  return;
3596
3596
  }
3597
- }, Bo = async (e, t, r, n, s) => {
3597
+ }, Vo = async (e, t, r, n, s) => {
3598
3598
  let i, a;
3599
3599
  const o = new Uint8Array(atob(r.replace(e, "")).split("").map((c) => c.charCodeAt(0)));
3600
3600
  switch (n) {
@@ -3630,7 +3630,7 @@ const Ut = (e) => {
3630
3630
  case "ECDH-ES+A128KW":
3631
3631
  case "ECDH-ES+A192KW":
3632
3632
  case "ECDH-ES+A256KW": {
3633
- const c = Fo(o);
3633
+ const c = Bo(o);
3634
3634
  i = c != null && c.startsWith("P-") ? { name: "ECDH", namedCurve: c } : { name: "X25519" }, a = [];
3635
3635
  break;
3636
3636
  }
@@ -3642,8 +3642,8 @@ const Ut = (e) => {
3642
3642
  throw new Le('Invalid or unsupported "alg" (Algorithm) value');
3643
3643
  }
3644
3644
  return crypto.subtle.importKey(t, o, i, !0, a);
3645
- }, Vo = (e, t, r) => Bo(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
3646
- function jo(e) {
3645
+ }, jo = (e, t, r) => Vo(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
3646
+ function Go(e) {
3647
3647
  let t, r;
3648
3648
  switch (e.kty) {
3649
3649
  case "RSA": {
@@ -3716,18 +3716,18 @@ function jo(e) {
3716
3716
  }
3717
3717
  return { algorithm: t, keyUsages: r };
3718
3718
  }
3719
- const Go = async (e) => {
3719
+ const qo = async (e) => {
3720
3720
  if (!e.alg)
3721
3721
  throw new TypeError('"alg" argument is required when "jwk.alg" is not present');
3722
- const { algorithm: t, keyUsages: r } = jo(e), n = { ...e };
3722
+ const { algorithm: t, keyUsages: r } = Go(e), n = { ...e };
3723
3723
  return delete n.alg, delete n.use, crypto.subtle.importKey("jwk", n, t, e.ext ?? !e.d, e.key_ops ?? r);
3724
3724
  };
3725
- async function qo(e, t, r) {
3725
+ async function Wo(e, t, r) {
3726
3726
  if (e.indexOf("-----BEGIN PUBLIC KEY-----") !== 0)
3727
3727
  throw new TypeError('"spki" must be SPKI formatted string');
3728
- return Vo(e, t);
3728
+ return jo(e, t);
3729
3729
  }
3730
- const Wo = (e, t, r, n, s) => {
3730
+ const Jo = (e, t, r, n, s) => {
3731
3731
  if (s.crit !== void 0 && (n == null ? void 0 : n.crit) === void 0)
3732
3732
  throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');
3733
3733
  if (!n || n.crit === void 0)
@@ -3745,7 +3745,7 @@ const Wo = (e, t, r, n, s) => {
3745
3745
  throw new e(`Extension Header Parameter "${a}" MUST be integrity protected`);
3746
3746
  }
3747
3747
  return new Set(n.crit);
3748
- }, Jo = (e, t) => {
3748
+ }, zo = (e, t) => {
3749
3749
  if (t !== void 0 && (!Array.isArray(t) || t.some((r) => typeof r != "string")))
3750
3750
  throw new TypeError(`"${e}" option must be an array of strings`);
3751
3751
  if (t)
@@ -3754,24 +3754,24 @@ const Wo = (e, t, r, n, s) => {
3754
3754
  function gn(e) {
3755
3755
  return Ut(e) && typeof e.kty == "string";
3756
3756
  }
3757
- function zo(e) {
3757
+ function Qo(e) {
3758
3758
  return e.kty !== "oct" && typeof e.d == "string";
3759
3759
  }
3760
- function Qo(e) {
3760
+ function Yo(e) {
3761
3761
  return e.kty !== "oct" && typeof e.d > "u";
3762
3762
  }
3763
- function Yo(e) {
3763
+ function Xo(e) {
3764
3764
  return e.kty === "oct" && typeof e.k == "string";
3765
3765
  }
3766
3766
  let Me;
3767
- const Un = async (e, t, r, n = !1) => {
3767
+ const Kn = async (e, t, r, n = !1) => {
3768
3768
  Me || (Me = /* @__PURE__ */ new WeakMap());
3769
3769
  let s = Me.get(e);
3770
3770
  if (s != null && s[r])
3771
3771
  return s[r];
3772
- const i = await Go({ ...t, alg: r });
3772
+ const i = await qo({ ...t, alg: r });
3773
3773
  return n && Object.freeze(e), s ? s[r] = i : Me.set(e, { [r]: i }), i;
3774
- }, Xo = (e, t) => {
3774
+ }, Zo = (e, t) => {
3775
3775
  var r;
3776
3776
  Me || (Me = /* @__PURE__ */ new WeakMap());
3777
3777
  let n = Me.get(e);
@@ -3857,24 +3857,24 @@ const Un = async (e, t, r, n = !1) => {
3857
3857
  if (!a)
3858
3858
  throw new TypeError("given KeyObject instance cannot be used for this algorithm");
3859
3859
  return n ? n[t] = a : Me.set(e, { [t]: a }), a;
3860
- }, Zo = async (e, t) => {
3861
- if (e instanceof Uint8Array || Xs(e))
3860
+ }, ec = async (e, t) => {
3861
+ if (e instanceof Uint8Array || Zs(e))
3862
3862
  return e;
3863
- if (Zs(e)) {
3863
+ if (ei(e)) {
3864
3864
  if (e.type === "secret")
3865
3865
  return e.export();
3866
3866
  if ("toCryptoKey" in e && typeof e.toCryptoKey == "function")
3867
3867
  try {
3868
- return Xo(e, t);
3868
+ return Zo(e, t);
3869
3869
  } catch (n) {
3870
3870
  if (n instanceof TypeError)
3871
3871
  throw n;
3872
3872
  }
3873
3873
  let r = e.export({ format: "jwk" });
3874
- return Un(e, r, t);
3874
+ return Kn(e, r, t);
3875
3875
  }
3876
3876
  if (gn(e))
3877
- return e.k ? Ot(e.k) : Un(e, e, t, !0);
3877
+ return e.k ? Ot(e.k) : Kn(e, e, t, !0);
3878
3878
  throw new Error("unreachable");
3879
3879
  }, rt = (e) => e == null ? void 0 : e[Symbol.toStringTag], dn = (e, t, r) => {
3880
3880
  var n, s;
@@ -3920,34 +3920,34 @@ const Un = async (e, t, r, n = !1) => {
3920
3920
  throw new TypeError(`Invalid key for this operation, its "key_ops" must include "${i}" when present`);
3921
3921
  }
3922
3922
  return !0;
3923
- }, ec = (e, t, r) => {
3923
+ }, tc = (e, t, r) => {
3924
3924
  if (!(t instanceof Uint8Array)) {
3925
3925
  if (gn(t)) {
3926
- if (Yo(t) && dn(e, t, r))
3926
+ if (Xo(t) && dn(e, t, r))
3927
3927
  return;
3928
3928
  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');
3929
3929
  }
3930
- if (!ei(t))
3931
- throw new TypeError(Ys(e, t, "CryptoKey", "KeyObject", "JSON Web Key", "Uint8Array"));
3930
+ if (!ti(t))
3931
+ throw new TypeError(Xs(e, t, "CryptoKey", "KeyObject", "JSON Web Key", "Uint8Array"));
3932
3932
  if (t.type !== "secret")
3933
3933
  throw new TypeError(`${rt(t)} instances for symmetric algorithms must be of type "secret"`);
3934
3934
  }
3935
- }, tc = (e, t, r) => {
3935
+ }, rc = (e, t, r) => {
3936
3936
  if (gn(t))
3937
3937
  switch (r) {
3938
3938
  case "decrypt":
3939
3939
  case "sign":
3940
- if (zo(t) && dn(e, t, r))
3940
+ if (Qo(t) && dn(e, t, r))
3941
3941
  return;
3942
3942
  throw new TypeError("JSON Web Key for this operation be a private JWK");
3943
3943
  case "encrypt":
3944
3944
  case "verify":
3945
- if (Qo(t) && dn(e, t, r))
3945
+ if (Yo(t) && dn(e, t, r))
3946
3946
  return;
3947
3947
  throw new TypeError("JSON Web Key for this operation be a public JWK");
3948
3948
  }
3949
- if (!ei(t))
3950
- throw new TypeError(Ys(e, t, "CryptoKey", "KeyObject", "JSON Web Key"));
3949
+ if (!ti(t))
3950
+ throw new TypeError(Xs(e, t, "CryptoKey", "KeyObject", "JSON Web Key"));
3951
3951
  if (t.type === "secret")
3952
3952
  throw new TypeError(`${rt(t)} instances for asymmetric algorithms must not be of type "secret"`);
3953
3953
  if (t.type === "public")
@@ -3964,9 +3964,9 @@ const Un = async (e, t, r, n = !1) => {
3964
3964
  case "encrypt":
3965
3965
  throw new TypeError(`${rt(t)} instances for asymmetric algorithm encryption must be of type "public"`);
3966
3966
  }
3967
- }, rc = (e, t, r) => {
3968
- e.startsWith("HS") || e === "dir" || e.startsWith("PBES2") || /^A(?:128|192|256)(?:GCM)?(?:KW)?$/.test(e) || /^A(?:128|192|256)CBC-HS(?:256|384|512)$/.test(e) ? ec(e, t, r) : tc(e, t, r);
3969
- }, nc = (e, t) => {
3967
+ }, nc = (e, t, r) => {
3968
+ e.startsWith("HS") || e === "dir" || e.startsWith("PBES2") || /^A(?:128|192|256)(?:GCM)?(?:KW)?$/.test(e) || /^A(?:128|192|256)CBC-HS(?:256|384|512)$/.test(e) ? tc(e, t, r) : rc(e, t, r);
3969
+ }, sc = (e, t) => {
3970
3970
  const r = `SHA-${e.slice(-3)}`;
3971
3971
  switch (e) {
3972
3972
  case "HS256":
@@ -3991,24 +3991,24 @@ const Un = async (e, t, r, n = !1) => {
3991
3991
  default:
3992
3992
  throw new Le(`alg ${e} is not supported either by JOSE or your javascript runtime`);
3993
3993
  }
3994
- }, sc = async (e, t, r) => {
3994
+ }, ic = async (e, t, r) => {
3995
3995
  if (t instanceof Uint8Array) {
3996
3996
  if (!e.startsWith("HS"))
3997
- throw new TypeError(Mo(t, "CryptoKey", "KeyObject", "JSON Web Key"));
3997
+ throw new TypeError(Uo(t, "CryptoKey", "KeyObject", "JSON Web Key"));
3998
3998
  return crypto.subtle.importKey("raw", t, { hash: `SHA-${e.slice(-3)}`, name: "HMAC" }, !1, [r]);
3999
3999
  }
4000
- return Lo(t, e, r), t;
4001
- }, ic = async (e, t, r, n) => {
4002
- const s = await sc(e, t, "verify");
4003
- Ho(e, s);
4004
- const i = nc(e, s.algorithm);
4000
+ return Mo(t, e, r), t;
4001
+ }, ac = async (e, t, r, n) => {
4002
+ const s = await ic(e, t, "verify");
4003
+ Fo(e, s);
4004
+ const i = sc(e, s.algorithm);
4005
4005
  try {
4006
4006
  return await crypto.subtle.verify(i, s, r, n);
4007
4007
  } catch {
4008
4008
  return !1;
4009
4009
  }
4010
4010
  };
4011
- async function ac(e, t, r) {
4011
+ async function oc(e, t, r) {
4012
4012
  if (!Ut(e))
4013
4013
  throw new B("Flattened JWS must be an object");
4014
4014
  if (e.protected === void 0 && e.header === void 0)
@@ -4029,38 +4029,38 @@ async function ac(e, t, r) {
4029
4029
  } catch {
4030
4030
  throw new B("JWS Protected Header is invalid");
4031
4031
  }
4032
- if (!Uo(n, e.header))
4032
+ if (!Ko(n, e.header))
4033
4033
  throw new B("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
4034
4034
  const s = {
4035
4035
  ...n,
4036
4036
  ...e.header
4037
- }, i = Wo(B, /* @__PURE__ */ new Map([["b64", !0]]), r == null ? void 0 : r.crit, n, s);
4037
+ }, i = Jo(B, /* @__PURE__ */ new Map([["b64", !0]]), r == null ? void 0 : r.crit, n, s);
4038
4038
  let a = !0;
4039
4039
  if (i.has("b64") && (a = n.b64, typeof a != "boolean"))
4040
4040
  throw new B('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
4041
4041
  const { alg: o } = s;
4042
4042
  if (typeof o != "string" || !o)
4043
4043
  throw new B('JWS "alg" (Algorithm) Header Parameter missing or invalid');
4044
- const c = r && Jo("algorithms", r.algorithms);
4044
+ const c = r && zo("algorithms", r.algorithms);
4045
4045
  if (c && !c.has(o))
4046
- throw new Js('"alg" (Algorithm) Header Parameter value not allowed');
4046
+ throw new zs('"alg" (Algorithm) Header Parameter value not allowed');
4047
4047
  if (a) {
4048
4048
  if (typeof e.payload != "string")
4049
4049
  throw new B("JWS Payload must be a string");
4050
4050
  } else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
4051
4051
  throw new B("JWS Payload must be a string or an Uint8Array instance");
4052
4052
  let u = !1;
4053
- typeof t == "function" && (t = await t(n, e), u = !0), rc(o, t, "verify");
4054
- const d = Po(tr.encode(e.protected ?? ""), tr.encode("."), typeof e.payload == "string" ? tr.encode(e.payload) : e.payload);
4053
+ typeof t == "function" && (t = await t(n, e), u = !0), nc(o, t, "verify");
4054
+ const d = xo(tr.encode(e.protected ?? ""), tr.encode("."), typeof e.payload == "string" ? tr.encode(e.payload) : e.payload);
4055
4055
  let l;
4056
4056
  try {
4057
4057
  l = Ot(e.signature);
4058
4058
  } catch {
4059
4059
  throw new B("Failed to base64url decode the signature");
4060
4060
  }
4061
- const h = await Zo(t, o);
4062
- if (!await ic(o, h, l, d))
4063
- throw new zs();
4061
+ const h = await ec(t, o);
4062
+ if (!await ac(o, h, l, d))
4063
+ throw new Qs();
4064
4064
  let y;
4065
4065
  if (a)
4066
4066
  try {
@@ -4072,17 +4072,17 @@ async function ac(e, t, r) {
4072
4072
  const m = { payload: y };
4073
4073
  return e.protected !== void 0 && (m.protectedHeader = n), e.header !== void 0 && (m.unprotectedHeader = e.header), u ? { ...m, key: h } : m;
4074
4074
  }
4075
- async function oc(e, t, r) {
4075
+ async function cc(e, t, r) {
4076
4076
  if (e instanceof Uint8Array && (e = Et.decode(e)), typeof e != "string")
4077
4077
  throw new B("Compact JWS must be a string or Uint8Array");
4078
4078
  const { 0: n, 1: s, 2: i, length: a } = e.split(".");
4079
4079
  if (a !== 3)
4080
4080
  throw new B("Invalid Compact JWS");
4081
- const o = await ac({ payload: s, protected: n, signature: i }, t, r), c = { payload: o.payload, protectedHeader: o.protectedHeader };
4081
+ const o = await oc({ payload: s, protected: n, signature: i }, t, r), c = { payload: o.payload, protectedHeader: o.protectedHeader };
4082
4082
  return typeof t == "function" ? { ...c, key: o.key } : c;
4083
4083
  }
4084
- const cc = (e) => Math.floor(e.getTime() / 1e3), ti = 60, ri = ti * 60, bn = ri * 24, lc = bn * 7, uc = bn * 365.25, dc = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, Kn = (e) => {
4085
- const t = dc.exec(e);
4084
+ const lc = (e) => Math.floor(e.getTime() / 1e3), ri = 60, ni = ri * 60, bn = ni * 24, uc = bn * 7, dc = bn * 365.25, fc = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, Hn = (e) => {
4085
+ const t = fc.exec(e);
4086
4086
  if (!t || t[4] && t[1])
4087
4087
  throw new TypeError("Invalid time period format");
4088
4088
  const r = parseFloat(t[2]), n = t[3].toLowerCase();
@@ -4100,14 +4100,14 @@ const cc = (e) => Math.floor(e.getTime() / 1e3), ti = 60, ri = ti * 60, bn = ri
4100
4100
  case "min":
4101
4101
  case "mins":
4102
4102
  case "m":
4103
- s = Math.round(r * ti);
4103
+ s = Math.round(r * ri);
4104
4104
  break;
4105
4105
  case "hour":
4106
4106
  case "hours":
4107
4107
  case "hr":
4108
4108
  case "hrs":
4109
4109
  case "h":
4110
- s = Math.round(r * ri);
4110
+ s = Math.round(r * ni);
4111
4111
  break;
4112
4112
  case "day":
4113
4113
  case "days":
@@ -4117,15 +4117,15 @@ const cc = (e) => Math.floor(e.getTime() / 1e3), ti = 60, ri = ti * 60, bn = ri
4117
4117
  case "week":
4118
4118
  case "weeks":
4119
4119
  case "w":
4120
- s = Math.round(r * lc);
4120
+ s = Math.round(r * uc);
4121
4121
  break;
4122
4122
  default:
4123
- s = Math.round(r * uc);
4123
+ s = Math.round(r * dc);
4124
4124
  break;
4125
4125
  }
4126
4126
  return t[1] === "-" || t[4] === "ago" ? -s : s;
4127
- }, Hn = (e) => e.toLowerCase().replace(/^application\//, ""), fc = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
4128
- function hc(e, t, r = {}) {
4127
+ }, Fn = (e) => e.toLowerCase().replace(/^application\//, ""), hc = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
4128
+ function yc(e, t, r = {}) {
4129
4129
  let n;
4130
4130
  try {
4131
4131
  n = JSON.parse(Et.decode(t));
@@ -4134,7 +4134,7 @@ function hc(e, t, r = {}) {
4134
4134
  if (!Ut(n))
4135
4135
  throw new he("JWT Claims Set must be a top-level JSON object");
4136
4136
  const { typ: s } = r;
4137
- if (s && (typeof e.typ != "string" || Hn(e.typ) !== Hn(s)))
4137
+ if (s && (typeof e.typ != "string" || Fn(e.typ) !== Fn(s)))
4138
4138
  throw new ae('unexpected "typ" JWT header value', n, "typ", "check_failed");
4139
4139
  const { requiredClaims: i = [], issuer: a, subject: o, audience: c, maxTokenAge: u } = r, d = [...i];
4140
4140
  u !== void 0 && d.push("iat"), c !== void 0 && d.push("aud"), o !== void 0 && d.push("sub"), a !== void 0 && d.push("iss");
@@ -4145,12 +4145,12 @@ function hc(e, t, r = {}) {
4145
4145
  throw new ae('unexpected "iss" claim value', n, "iss", "check_failed");
4146
4146
  if (o && n.sub !== o)
4147
4147
  throw new ae('unexpected "sub" claim value', n, "sub", "check_failed");
4148
- if (c && !fc(n.aud, typeof c == "string" ? [c] : c))
4148
+ if (c && !hc(n.aud, typeof c == "string" ? [c] : c))
4149
4149
  throw new ae('unexpected "aud" claim value', n, "aud", "check_failed");
4150
4150
  let l;
4151
4151
  switch (typeof r.clockTolerance) {
4152
4152
  case "string":
4153
- l = Kn(r.clockTolerance);
4153
+ l = Hn(r.clockTolerance);
4154
4154
  break;
4155
4155
  case "number":
4156
4156
  l = r.clockTolerance;
@@ -4161,7 +4161,7 @@ function hc(e, t, r = {}) {
4161
4161
  default:
4162
4162
  throw new TypeError("Invalid clockTolerance option type");
4163
4163
  }
4164
- const { currentDate: h } = r, y = cc(h || /* @__PURE__ */ new Date());
4164
+ const { currentDate: h } = r, y = lc(h || /* @__PURE__ */ new Date());
4165
4165
  if ((n.iat !== void 0 || u) && typeof n.iat != "number")
4166
4166
  throw new ae('"iat" claim must be a number', n, "iat", "invalid");
4167
4167
  if (n.nbf !== void 0) {
@@ -4177,7 +4177,7 @@ function hc(e, t, r = {}) {
4177
4177
  throw new un('"exp" claim timestamp check failed', n, "exp", "check_failed");
4178
4178
  }
4179
4179
  if (u) {
4180
- const m = y - n.iat, g = typeof u == "number" ? u : Kn(u);
4180
+ const m = y - n.iat, g = typeof u == "number" ? u : Hn(u);
4181
4181
  if (m - l > g)
4182
4182
  throw new un('"iat" claim timestamp check failed (too far in the past)', n, "iat", "check_failed");
4183
4183
  if (m < 0 - l)
@@ -4185,15 +4185,15 @@ function hc(e, t, r = {}) {
4185
4185
  }
4186
4186
  return n;
4187
4187
  }
4188
- async function yc(e, t, r) {
4188
+ async function mc(e, t, r) {
4189
4189
  var n;
4190
- const s = await oc(e, t, r);
4190
+ const s = await cc(e, t, r);
4191
4191
  if ((n = s.protectedHeader.crit) != null && n.includes("b64") && s.protectedHeader.b64 === !1)
4192
4192
  throw new he("JWTs MUST NOT use unencoded payload");
4193
- const i = { payload: hc(s.protectedHeader, s.payload, r), protectedHeader: s.protectedHeader };
4193
+ const i = { payload: yc(s.protectedHeader, s.payload, r), protectedHeader: s.protectedHeader };
4194
4194
  return typeof t == "function" ? { ...i, key: s.key } : i;
4195
4195
  }
4196
- function mc(e) {
4196
+ function pc(e) {
4197
4197
  if (typeof e != "string")
4198
4198
  throw new he("JWTs must use Compact JWS serialization, JWT must be a string");
4199
4199
  const { 1: t, length: r } = e.split(".");
@@ -4221,66 +4221,66 @@ function mc(e) {
4221
4221
  }
4222
4222
  const Kt = async (e) => {
4223
4223
  try {
4224
- const t = q.ALG, r = await qo(No, t);
4225
- return await yc(e, r, {
4224
+ const t = q.ALG, r = await Wo(Po, t);
4225
+ return await mc(e, r, {
4226
4226
  issuer: q.ISSUER
4227
4227
  });
4228
4228
  } catch {
4229
4229
  return;
4230
4230
  }
4231
- }, pc = (e) => {
4231
+ }, gc = (e) => {
4232
4232
  try {
4233
- return mc(e);
4233
+ return pc(e);
4234
4234
  } catch {
4235
4235
  return;
4236
4236
  }
4237
4237
  }, V = [];
4238
4238
  for (let e = 0; e < 256; ++e)
4239
4239
  V.push((e + 256).toString(16).slice(1));
4240
- function gc(e, t = 0) {
4240
+ function bc(e, t = 0) {
4241
4241
  return (V[e[t + 0]] + V[e[t + 1]] + V[e[t + 2]] + V[e[t + 3]] + "-" + V[e[t + 4]] + V[e[t + 5]] + "-" + V[e[t + 6]] + V[e[t + 7]] + "-" + V[e[t + 8]] + V[e[t + 9]] + "-" + V[e[t + 10]] + V[e[t + 11]] + V[e[t + 12]] + V[e[t + 13]] + V[e[t + 14]] + V[e[t + 15]]).toLowerCase();
4242
4242
  }
4243
4243
  let Kr;
4244
- const bc = new Uint8Array(16);
4245
- function wc() {
4244
+ const wc = new Uint8Array(16);
4245
+ function vc() {
4246
4246
  if (!Kr) {
4247
4247
  if (typeof crypto > "u" || !crypto.getRandomValues)
4248
4248
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
4249
4249
  Kr = crypto.getRandomValues.bind(crypto);
4250
4250
  }
4251
- return Kr(bc);
4251
+ return Kr(wc);
4252
4252
  }
4253
- const vc = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Fn = { randomUUID: vc };
4254
- function Bn(e, t, r) {
4253
+ const Ec = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Bn = { randomUUID: Ec };
4254
+ function Vn(e, t, r) {
4255
4255
  var n;
4256
- if (Fn.randomUUID && !e)
4257
- return Fn.randomUUID();
4256
+ if (Bn.randomUUID && !e)
4257
+ return Bn.randomUUID();
4258
4258
  e = e || {};
4259
- const s = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? wc();
4259
+ const s = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? vc();
4260
4260
  if (s.length < 16)
4261
4261
  throw new Error("Random bytes length must be >= 16");
4262
- return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, gc(s);
4262
+ return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, bc(s);
4263
4263
  }
4264
- const Vn = globalThis.crypto, Ec = (e) => `${Bn()}${Bn()}`.slice(0, e), Sc = (e) => btoa(
4264
+ const jn = globalThis.crypto, Sc = (e) => `${Vn()}${Vn()}`.slice(0, e), Tc = (e) => btoa(
4265
4265
  [...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")
4266
4266
  );
4267
- async function Tc(e) {
4268
- if (!Vn.subtle)
4267
+ async function Ac(e) {
4268
+ if (!jn.subtle)
4269
4269
  throw new Error(
4270
4270
  "crypto.subtle is available only in secure contexts (HTTPS)."
4271
4271
  );
4272
- const t = new TextEncoder().encode(e), r = await Vn.subtle.digest("SHA-256", t);
4273
- return Sc(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
4272
+ const t = new TextEncoder().encode(e), r = await jn.subtle.digest("SHA-256", t);
4273
+ return Tc(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
4274
4274
  }
4275
- async function Ac(e) {
4276
- const t = Ec(43), r = await Tc(t);
4275
+ async function Ic(e) {
4276
+ const t = Sc(43), r = await Ac(t);
4277
4277
  return {
4278
4278
  code_verifier: t,
4279
4279
  code_challenge: r
4280
4280
  };
4281
4281
  }
4282
- const ni = ls(null);
4283
- var Ic = Object.defineProperty, kc = (e, t, r) => t in e ? Ic(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Hr = (e, t, r) => kc(e, typeof t != "symbol" ? t + "" : t, r);
4282
+ const si = us(null);
4283
+ var kc = Object.defineProperty, Rc = (e, t, r) => t in e ? kc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Hr = (e, t, r) => Rc(e, typeof t != "symbol" ? t + "" : t, r);
4284
4284
  /*!
4285
4285
  @versini/auth-provider v8.0.2
4286
4286
  © 2025 gizmette.com
@@ -4308,12 +4308,12 @@ function vr(e) {
4308
4308
  return i;
4309
4309
  }
4310
4310
  function wn() {
4311
- return Rc.stubThis((globalThis == null ? void 0 : globalThis.PublicKeyCredential) !== void 0 && typeof globalThis.PublicKeyCredential == "function");
4311
+ return Oc.stubThis((globalThis == null ? void 0 : globalThis.PublicKeyCredential) !== void 0 && typeof globalThis.PublicKeyCredential == "function");
4312
4312
  }
4313
- const Rc = {
4313
+ const Oc = {
4314
4314
  stubThis: (e) => e
4315
4315
  };
4316
- function si(e) {
4316
+ function ii(e) {
4317
4317
  const { id: t } = e;
4318
4318
  return {
4319
4319
  ...e,
@@ -4326,7 +4326,7 @@ function si(e) {
4326
4326
  transports: e.transports
4327
4327
  };
4328
4328
  }
4329
- function ii(e) {
4329
+ function ai(e) {
4330
4330
  return (
4331
4331
  // Consider localhost valid as well since it's okay wrt Secure Contexts
4332
4332
  e === "localhost" || /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)
@@ -4342,7 +4342,7 @@ let G = class extends Error {
4342
4342
  }), this.name = s ?? n.name, this.code = r;
4343
4343
  }
4344
4344
  };
4345
- function Oc({ error: e, options: t }) {
4345
+ function _c({ error: e, options: t }) {
4346
4346
  var n, s, i;
4347
4347
  const { publicKey: r } = t;
4348
4348
  if (!r)
@@ -4401,7 +4401,7 @@ function Oc({ error: e, options: t }) {
4401
4401
  });
4402
4402
  if (e.name === "SecurityError") {
4403
4403
  const a = globalThis.location.hostname;
4404
- if (ii(a)) {
4404
+ if (ai(a)) {
4405
4405
  if (r.rp.id !== a)
4406
4406
  return new G({
4407
4407
  message: `The RP ID "${r.rp.id}" is invalid for this domain`,
@@ -4429,7 +4429,7 @@ function Oc({ error: e, options: t }) {
4429
4429
  }
4430
4430
  return e;
4431
4431
  }
4432
- class _c {
4432
+ class Cc {
4433
4433
  constructor() {
4434
4434
  Object.defineProperty(this, "controller", {
4435
4435
  enumerable: !0,
@@ -4453,12 +4453,12 @@ class _c {
4453
4453
  }
4454
4454
  }
4455
4455
  }
4456
- const ai = new _c(), Cc = ["cross-platform", "platform"];
4457
- function oi(e) {
4458
- if (e && !(Cc.indexOf(e) < 0))
4456
+ const oi = new Cc(), Nc = ["cross-platform", "platform"];
4457
+ function ci(e) {
4458
+ if (e && !(Nc.indexOf(e) < 0))
4459
4459
  return e;
4460
4460
  }
4461
- async function Nc(e) {
4461
+ async function Pc(e) {
4462
4462
  var m;
4463
4463
  !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 });
4464
4464
  const { optionsJSON: t, useAutoRegister: r = !1 } = e;
@@ -4471,14 +4471,14 @@ async function Nc(e) {
4471
4471
  ...t.user,
4472
4472
  id: vr(t.user.id)
4473
4473
  },
4474
- excludeCredentials: (m = t.excludeCredentials) == null ? void 0 : m.map(si)
4474
+ excludeCredentials: (m = t.excludeCredentials) == null ? void 0 : m.map(ii)
4475
4475
  }, s = {};
4476
- r && (s.mediation = "conditional"), s.publicKey = n, s.signal = ai.createNewAbortSignal();
4476
+ r && (s.mediation = "conditional"), s.publicKey = n, s.signal = oi.createNewAbortSignal();
4477
4477
  let i;
4478
4478
  try {
4479
4479
  i = await navigator.credentials.create(s);
4480
4480
  } catch (g) {
4481
- throw Oc({ error: g, options: s });
4481
+ throw _c({ error: g, options: s });
4482
4482
  }
4483
4483
  if (!i)
4484
4484
  throw new Error("Registration was not completed");
@@ -4520,14 +4520,14 @@ async function Nc(e) {
4520
4520
  },
4521
4521
  type: u,
4522
4522
  clientExtensionResults: i.getClientExtensionResults(),
4523
- authenticatorAttachment: oi(i.authenticatorAttachment)
4523
+ authenticatorAttachment: ci(i.authenticatorAttachment)
4524
4524
  };
4525
4525
  }
4526
4526
  function Fr(e, t) {
4527
4527
  console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
4528
4528
  `, t);
4529
4529
  }
4530
- function Pc() {
4530
+ function xc() {
4531
4531
  if (!wn())
4532
4532
  return Br.stubThis(new Promise((t) => t(!1)));
4533
4533
  const e = globalThis.PublicKeyCredential;
@@ -4536,7 +4536,7 @@ function Pc() {
4536
4536
  const Br = {
4537
4537
  stubThis: (e) => e
4538
4538
  };
4539
- function xc({ error: e, options: t }) {
4539
+ function Dc({ error: e, options: t }) {
4540
4540
  const { publicKey: r } = t;
4541
4541
  if (!r)
4542
4542
  throw Error("options was missing required publicKey property");
@@ -4556,7 +4556,7 @@ function xc({ error: e, options: t }) {
4556
4556
  });
4557
4557
  if (e.name === "SecurityError") {
4558
4558
  const n = globalThis.location.hostname;
4559
- if (ii(n)) {
4559
+ if (ai(n)) {
4560
4560
  if (r.rpId !== n)
4561
4561
  return new G({
4562
4562
  message: `The RP ID "${r.rpId}" is invalid for this domain`,
@@ -4577,32 +4577,32 @@ function xc({ error: e, options: t }) {
4577
4577
  }
4578
4578
  return e;
4579
4579
  }
4580
- async function Dc(e) {
4580
+ async function $c(e) {
4581
4581
  var y, m;
4582
4582
  !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 });
4583
4583
  const { optionsJSON: t, useBrowserAutofill: r = !1, verifyBrowserAutofillInput: n = !0 } = e;
4584
4584
  if (!wn())
4585
4585
  throw new Error("WebAuthn is not supported in this browser");
4586
4586
  let s;
4587
- ((y = t.allowCredentials) == null ? void 0 : y.length) !== 0 && (s = (m = t.allowCredentials) == null ? void 0 : m.map(si));
4587
+ ((y = t.allowCredentials) == null ? void 0 : y.length) !== 0 && (s = (m = t.allowCredentials) == null ? void 0 : m.map(ii));
4588
4588
  const i = {
4589
4589
  ...t,
4590
4590
  challenge: vr(t.challenge),
4591
4591
  allowCredentials: s
4592
4592
  }, a = {};
4593
4593
  if (r) {
4594
- if (!await Pc())
4594
+ if (!await xc())
4595
4595
  throw Error("Browser does not support WebAuthn autofill");
4596
4596
  if (document.querySelectorAll("input[autocomplete$='webauthn']").length < 1 && n)
4597
4597
  throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');
4598
4598
  a.mediation = "conditional", i.allowCredentials = [];
4599
4599
  }
4600
- a.publicKey = i, a.signal = ai.createNewAbortSignal();
4600
+ a.publicKey = i, a.signal = oi.createNewAbortSignal();
4601
4601
  let o;
4602
4602
  try {
4603
4603
  o = await navigator.credentials.get(a);
4604
4604
  } catch (g) {
4605
- throw xc({ error: g, options: a });
4605
+ throw Dc({ error: g, options: a });
4606
4606
  }
4607
4607
  if (!o)
4608
4608
  throw new Error("Authentication was not completed");
@@ -4619,29 +4619,29 @@ async function Dc(e) {
4619
4619
  },
4620
4620
  type: l,
4621
4621
  clientExtensionResults: o.getClientExtensionResults(),
4622
- authenticatorAttachment: oi(o.authenticatorAttachment)
4622
+ authenticatorAttachment: ci(o.authenticatorAttachment)
4623
4623
  };
4624
4624
  }
4625
- function ci(e, t) {
4625
+ function li(e, t) {
4626
4626
  window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
4627
4627
  }
4628
- const jn = (e, t) => {
4628
+ const Gn = (e, t) => {
4629
4629
  const r = JSON.stringify(
4630
4630
  typeof t == "function" ? t() : t
4631
4631
  );
4632
- window.localStorage.setItem(e, r), ci(e, r);
4633
- }, $c = (e) => {
4634
- window.localStorage.removeItem(e), ci(e, null);
4635
- }, Gn = (e) => window.localStorage.getItem(e), Lc = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
4632
+ window.localStorage.setItem(e, r), li(e, r);
4633
+ }, Lc = (e) => {
4634
+ window.localStorage.removeItem(e), li(e, null);
4635
+ }, qn = (e) => window.localStorage.getItem(e), Mc = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
4636
4636
  function rr({
4637
4637
  key: e,
4638
4638
  initialValue: t
4639
4639
  }) {
4640
- const r = ki(Lc, () => Gn(e)), n = Ae(
4640
+ const r = Ri(Mc, () => qn(e)), n = Ae(
4641
4641
  (a) => {
4642
4642
  try {
4643
4643
  const o = typeof a == "function" ? a(JSON.parse(r)) : a;
4644
- o == null ? $c(e) : jn(e, o);
4644
+ o == null ? Lc(e) : Gn(e, o);
4645
4645
  } catch (o) {
4646
4646
  console.warn(o);
4647
4647
  }
@@ -4654,7 +4654,7 @@ function rr({
4654
4654
  }, [n]);
4655
4655
  return de(() => {
4656
4656
  try {
4657
- Gn(e) === null && typeof t < "u" && jn(e, t);
4657
+ qn(e) === null && typeof t < "u" && Gn(e, t);
4658
4658
  } catch (a) {
4659
4659
  console.warn(a);
4660
4660
  }
@@ -4663,31 +4663,31 @@ function rr({
4663
4663
  const j = [];
4664
4664
  for (let e = 0; e < 256; ++e)
4665
4665
  j.push((e + 256).toString(16).slice(1));
4666
- function Mc(e, t = 0) {
4666
+ function Uc(e, t = 0) {
4667
4667
  return (j[e[t + 0]] + j[e[t + 1]] + j[e[t + 2]] + j[e[t + 3]] + "-" + j[e[t + 4]] + j[e[t + 5]] + "-" + j[e[t + 6]] + j[e[t + 7]] + "-" + j[e[t + 8]] + j[e[t + 9]] + "-" + j[e[t + 10]] + j[e[t + 11]] + j[e[t + 12]] + j[e[t + 13]] + j[e[t + 14]] + j[e[t + 15]]).toLowerCase();
4668
4668
  }
4669
4669
  let Vr;
4670
- const Uc = new Uint8Array(16);
4671
- function Kc() {
4670
+ const Kc = new Uint8Array(16);
4671
+ function Hc() {
4672
4672
  if (!Vr) {
4673
4673
  if (typeof crypto > "u" || !crypto.getRandomValues)
4674
4674
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
4675
4675
  Vr = crypto.getRandomValues.bind(crypto);
4676
4676
  }
4677
- return Vr(Uc);
4677
+ return Vr(Kc);
4678
4678
  }
4679
- const Hc = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), qn = { randomUUID: Hc };
4679
+ const Fc = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Wn = { randomUUID: Fc };
4680
4680
  function jr(e, t, r) {
4681
4681
  var s;
4682
- if (qn.randomUUID && !e)
4683
- return qn.randomUUID();
4682
+ if (Wn.randomUUID && !e)
4683
+ return Wn.randomUUID();
4684
4684
  e = e || {};
4685
- const n = e.random ?? ((s = e.rng) == null ? void 0 : s.call(e)) ?? Kc();
4685
+ const n = e.random ?? ((s = e.rng) == null ? void 0 : s.call(e)) ?? Hc();
4686
4686
  if (n.length < 16)
4687
4687
  throw new Error("Random bytes length must be >= 16");
4688
- return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Mc(n);
4688
+ return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Uc(n);
4689
4689
  }
4690
- const Xe = "Your session has expired. For your security, please log in again to continue.", Fc = "Your session has been successfully terminated.", Gr = "Login failed. Please try again.", Bc = "Error getting access token, please re-authenticate.", Vc = "You forgot to wrap your component in <AuthProvider>.", nr = "@@auth@@", At = "LOADING", lr = "LOGIN", li = "LOGOUT", Wt = "success", we = "failure", ui = "include", di = "POST", fi = "application/json", sr = {
4690
+ const Xe = "Your session has expired. For your security, please log in again to continue.", Bc = "Your session has been successfully terminated.", Gr = "Login failed. Please try again.", Vc = "Error getting access token, please re-authenticate.", jc = "You forgot to wrap your component in <AuthProvider>.", nr = "@@auth@@", At = "LOADING", lr = "LOGIN", ui = "LOGOUT", Wt = "success", we = "failure", di = "include", fi = "POST", hi = "application/json", sr = {
4691
4691
  GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
4692
4692
  $clientId: String!,
4693
4693
  $username: String!,
@@ -4794,12 +4794,12 @@ const Xe = "Your session has expired. For your security, please log in again to
4794
4794
  }) => {
4795
4795
  try {
4796
4796
  const i = `Bearer ${e}`, a = await fetch(`${s}/graphql`, {
4797
- credentials: ui,
4798
- method: di,
4797
+ credentials: di,
4798
+ method: fi,
4799
4799
  headers: {
4800
4800
  authorization: i,
4801
- "Content-Type": fi,
4802
- [Ws.CLIENT_ID]: `${r}`
4801
+ "Content-Type": hi,
4802
+ [Js.CLIENT_ID]: `${r}`
4803
4803
  },
4804
4804
  body: JSON.stringify({
4805
4805
  query: t.schema,
@@ -4824,11 +4824,11 @@ const Xe = "Your session has expired. For your security, please log in again to
4824
4824
  }) => {
4825
4825
  try {
4826
4826
  const s = await fetch(`${n}/${e}`, {
4827
- credentials: ui,
4828
- method: di,
4827
+ credentials: di,
4828
+ method: fi,
4829
4829
  headers: {
4830
- "Content-Type": fi,
4831
- [Ws.CLIENT_ID]: `${t}`
4830
+ "Content-Type": hi,
4831
+ [Js.CLIENT_ID]: `${t}`
4832
4832
  },
4833
4833
  body: JSON.stringify(r)
4834
4834
  });
@@ -4842,21 +4842,21 @@ const Xe = "Your session has expired. For your security, please log in again to
4842
4842
  } catch (s) {
4843
4843
  return console.error(s), { status: we, data: [] };
4844
4844
  }
4845
- }, jc = process.env.NODE_ENV === "production", Gc = !jc, hi = {
4845
+ }, Gc = process.env.NODE_ENV === "production", qc = !Gc, yi = {
4846
4846
  isLoading: !0,
4847
4847
  isAuthenticated: !1,
4848
4848
  user: void 0,
4849
4849
  logoutReason: "",
4850
4850
  debug: !1,
4851
4851
  authenticationType: ""
4852
- }, qc = (e) => {
4852
+ }, Wc = (e) => {
4853
4853
  try {
4854
- const t = pc(e);
4854
+ const t = gc(e);
4855
4855
  return t ? t[q.USER_ID_KEY] : "";
4856
4856
  } catch {
4857
4857
  return "";
4858
4858
  }
4859
- }, Wc = async ({
4859
+ }, Jc = async ({
4860
4860
  userId: e,
4861
4861
  clientId: t,
4862
4862
  domain: r,
@@ -4882,7 +4882,7 @@ const Xe = "Your session has expired. For your security, please log in again to
4882
4882
  status: we
4883
4883
  };
4884
4884
  }
4885
- }, Jc = async ({
4885
+ }, zc = async ({
4886
4886
  username: e,
4887
4887
  password: t,
4888
4888
  clientId: r,
@@ -4928,7 +4928,7 @@ const Xe = "Your session has expired. For your security, please log in again to
4928
4928
  status: !1
4929
4929
  };
4930
4930
  }
4931
- }, zc = async ({
4931
+ }, Qc = async ({
4932
4932
  nonce: e,
4933
4933
  clientId: t,
4934
4934
  code_challenge: r,
@@ -4959,7 +4959,7 @@ const Xe = "Your session has expired. For your security, please log in again to
4959
4959
  data: ""
4960
4960
  };
4961
4961
  }
4962
- }, Qc = async ({
4962
+ }, Yc = async ({
4963
4963
  clientId: e,
4964
4964
  userId: t,
4965
4965
  nonce: r,
@@ -4997,7 +4997,7 @@ const Xe = "Your session has expired. For your security, please log in again to
4997
4997
  };
4998
4998
  }
4999
4999
  };
5000
- class Yc {
5000
+ class Xc {
5001
5001
  constructor(t = null, r = null) {
5002
5002
  Hr(this, "refreshTokenPromise", null), Hr(this, "accessToken"), Hr(this, "refreshToken"), this.accessToken = t || "", this.refreshToken = r || "";
5003
5003
  }
@@ -5030,7 +5030,7 @@ class Yc {
5030
5030
  }) {
5031
5031
  const a = await Kt(this.refreshToken);
5032
5032
  if (a && a.payload[q.USER_ID_KEY] !== "") {
5033
- const o = await Qc({
5033
+ const o = await Yc({
5034
5034
  endpoint: t,
5035
5035
  clientId: r,
5036
5036
  userId: n,
@@ -5053,8 +5053,8 @@ class Yc {
5053
5053
  }
5054
5054
  }
5055
5055
  const tt = () => {
5056
- throw new Error(Vc);
5057
- }, yi = ls({
5056
+ throw new Error(jc);
5057
+ }, mi = us({
5058
5058
  isAuthenticated: !1,
5059
5059
  isLoading: !1,
5060
5060
  login: tt,
@@ -5065,18 +5065,18 @@ const tt = () => {
5065
5065
  loginWithPasskey: tt,
5066
5066
  logoutReason: "",
5067
5067
  authenticationType: ""
5068
- }), Xc = () => ({
5069
- ...yn(yi)
5070
- }), Zc = (e) => Ae(
5068
+ }), Zc = () => ({
5069
+ ...yn(mi)
5070
+ }), el = (e) => Ae(
5071
5071
  (...t) => {
5072
5072
  e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
5073
5073
  },
5074
5074
  [e]
5075
- ), el = ke.createContext({
5076
- state: hi,
5075
+ ), tl = ke.createContext({
5076
+ state: yi,
5077
5077
  dispatch: () => {
5078
5078
  }
5079
- }), tl = (e, t) => (t == null ? void 0 : t.type) === At ? {
5079
+ }), rl = (e, t) => (t == null ? void 0 : t.type) === At ? {
5080
5080
  ...e,
5081
5081
  isLoading: t.payload.isLoading
5082
5082
  } : (t == null ? void 0 : t.type) === lr ? {
@@ -5086,28 +5086,28 @@ const tt = () => {
5086
5086
  user: t.payload.user,
5087
5087
  authenticationType: t.payload.authenticationType,
5088
5088
  logoutReason: ""
5089
- } : (t == null ? void 0 : t.type) === li ? {
5089
+ } : (t == null ? void 0 : t.type) === ui ? {
5090
5090
  ...e,
5091
5091
  isLoading: !1,
5092
5092
  isAuthenticated: !1,
5093
5093
  user: void 0,
5094
5094
  authenticationType: "",
5095
5095
  logoutReason: t.payload.logoutReason
5096
- } : e, rl = ({ children: e }) => {
5097
- const t = Xc();
5098
- return /* @__PURE__ */ p(ni.Provider, { value: t, children: e });
5099
- }, Wn = ({
5096
+ } : e, nl = ({ children: e }) => {
5097
+ const t = Zc();
5098
+ return /* @__PURE__ */ p(si.Provider, { value: t, children: e });
5099
+ }, Jn = ({
5100
5100
  children: e,
5101
5101
  sessionExpiration: t,
5102
5102
  clientId: r,
5103
5103
  domain: n = "",
5104
5104
  debug: s = !1,
5105
- endpoint: i = Gc ? "https://auth.gizmette.local.com:3003" : "https://mylogin.gizmette.com/auth"
5105
+ endpoint: i = qc ? "https://auth.gizmette.local.com:3003" : "https://mylogin.gizmette.com/auth"
5106
5106
  }) => {
5107
- const [a, o] = us(tl, {
5108
- ...hi,
5107
+ const [a, o] = ds(rl, {
5108
+ ...yi,
5109
5109
  debug: s
5110
- }), c = Zc(s), u = J(!1), [d, l, , h] = rr({
5110
+ }), c = el(s), u = J(!1), [d, l, , h] = rr({
5111
5111
  key: `${nr}::${r}::@@user@@`
5112
5112
  }), [y, m, , g] = rr({
5113
5113
  key: `${nr}::${r}::@@access@@`
@@ -5117,7 +5117,7 @@ const tt = () => {
5117
5117
  }
5118
5118
  ), [T, k, , C] = rr({
5119
5119
  key: `${nr}::${r}::@@nonce@@`
5120
- }), M = new Yc(y, E), F = Ae(() => {
5120
+ }), M = new Xc(y, E), F = Ae(() => {
5121
5121
  c("removeLocalStorage: removing local storage"), h(), g(), _(), C();
5122
5122
  }, [
5123
5123
  g,
@@ -5131,7 +5131,7 @@ const tt = () => {
5131
5131
  "removeStateAndLocalStorage: removing state and local storage with reason: ",
5132
5132
  S
5133
5133
  ), o({
5134
- type: li,
5134
+ type: ui,
5135
5135
  payload: {
5136
5136
  logoutReason: S || Xe
5137
5137
  }
@@ -5141,10 +5141,10 @@ const tt = () => {
5141
5141
  ), v = Ae(
5142
5142
  async (S) => {
5143
5143
  c("invalidateAndLogout: invalidating and logging out");
5144
- const { user: x } = a, N = (x == null ? void 0 : x.userId) || qc(d);
5144
+ const { user: x } = a, N = (x == null ? void 0 : x.userId) || Wc(d);
5145
5145
  N || c(
5146
5146
  "invalidateAndLogout: user cannot be identified, logging out without userId"
5147
- ), await Wc({
5147
+ ), await Jc({
5148
5148
  userId: N,
5149
5149
  clientId: r,
5150
5150
  domain: n,
@@ -5191,14 +5191,14 @@ const tt = () => {
5191
5191
  o({ type: At, payload: { isLoading: !0 } }), F();
5192
5192
  const N = jr();
5193
5193
  k(N), c("login: Logging in with password");
5194
- const { code_verifier: Oe, code_challenge: _e } = await Ac(), Tn = await zc({
5194
+ const { code_verifier: Oe, code_challenge: _e } = await Ic(), An = await Qc({
5195
5195
  endpoint: i,
5196
5196
  nonce: N,
5197
5197
  clientId: r,
5198
5198
  code_challenge: _e
5199
5199
  });
5200
- if (Tn.status) {
5201
- const Qe = await Jc({
5200
+ if (An.status) {
5201
+ const Qe = await zc({
5202
5202
  endpoint: i,
5203
5203
  username: S,
5204
5204
  password: x,
@@ -5206,7 +5206,7 @@ const tt = () => {
5206
5206
  sessionExpiration: t,
5207
5207
  nonce: N,
5208
5208
  type: Rt.CODE,
5209
- code: Tn.data,
5209
+ code: An.data,
5210
5210
  code_verifier: Oe,
5211
5211
  domain: n,
5212
5212
  ua: navigator.userAgent
@@ -5225,7 +5225,7 @@ const tt = () => {
5225
5225
  }
5226
5226
  return !1;
5227
5227
  }, $ = async (S) => {
5228
- S == null || S.preventDefault(), await v(Fc);
5228
+ S == null || S.preventDefault(), await v(Bc);
5229
5229
  }, H = async () => {
5230
5230
  const { isAuthenticated: S, user: x } = a;
5231
5231
  try {
@@ -5254,7 +5254,7 @@ const tt = () => {
5254
5254
  } catch {
5255
5255
  return c(
5256
5256
  "getAccessToken: exception occurred, invalidating and logging out"
5257
- ), await v(Bc), "";
5257
+ ), await v(Vc), "";
5258
5258
  }
5259
5259
  }, re = () => a.isAuthenticated && d ? d : "", se = async () => {
5260
5260
  const { user: S } = a;
@@ -5271,7 +5271,7 @@ const tt = () => {
5271
5271
  });
5272
5272
  if (x.status)
5273
5273
  try {
5274
- const N = await Nc({
5274
+ const N = await Pc({
5275
5275
  optionsJSON: x.data
5276
5276
  });
5277
5277
  return x = await et({
@@ -5318,7 +5318,7 @@ const tt = () => {
5318
5318
  });
5319
5319
  if (N.status)
5320
5320
  try {
5321
- const Oe = await Dc({
5321
+ const Oe = await $c({
5322
5322
  optionsJSON: N.data
5323
5323
  });
5324
5324
  return N = await et({
@@ -5364,8 +5364,8 @@ const tt = () => {
5364
5364
  }
5365
5365
  return !1;
5366
5366
  };
5367
- return /* @__PURE__ */ p(el.Provider, { value: { state: a, dispatch: o }, children: /* @__PURE__ */ p(
5368
- yi.Provider,
5367
+ return /* @__PURE__ */ p(tl.Provider, { value: { state: a, dispatch: o }, children: /* @__PURE__ */ p(
5368
+ mi.Provider,
5369
5369
  {
5370
5370
  value: {
5371
5371
  ...a,
@@ -5376,7 +5376,7 @@ const tt = () => {
5376
5376
  registeringForPasskey: se,
5377
5377
  loginWithPasskey: He
5378
5378
  },
5379
- children: /* @__PURE__ */ p(rl, { children: e })
5379
+ children: /* @__PURE__ */ p(nl, { children: e })
5380
5380
  }
5381
5381
  ) });
5382
5382
  };
@@ -5393,12 +5393,12 @@ try {
5393
5393
  });
5394
5394
  } catch {
5395
5395
  }
5396
- const mi = () => {
5397
- const e = yn(ni);
5396
+ const pi = () => {
5397
+ const e = yn(si);
5398
5398
  if (!e)
5399
5399
  throw new Error("useAuth must be used within an AuthHookProvider");
5400
5400
  return e;
5401
- }, rd = "data", nd = "I'm having trouble right now. Please try again later.", sd = "action-search", id = "action-sort", ad = "action-toggle-prompt", od = "action-reset-prompt", cd = "sassy-saint-", ld = "details", ud = "search", dd = "sort", fd = "private-disclosure", hd = "reasoning-disclosure", Jn = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", yd = 10, md = 30, pd = "av-prompt", gd = "av-prompt-editable", bd = "size-5 sm:size-4", wd = 30, vd = 10, Ed = 130, nl = process.env.NODE_ENV === "production", pi = !nl, sl = pi ? "gizmette.local.com" : "gizmette.com", Sd = async () => {
5401
+ }, nd = "data", sd = "I'm having trouble right now. Please try again later.", id = "action-search", ad = "action-sort", od = "action-toggle-prompt", cd = "action-reset-prompt", ld = "sassy-saint-", ud = "details", dd = "search", fd = "sort", hd = "private-disclosure", yd = "reasoning-disclosure", zn = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", md = 10, pd = 30, gd = "av-prompt", bd = "av-prompt-editable", wd = "size-5 sm:size-4", vd = 30, Ed = 10, Sd = 130, sl = process.env.NODE_ENV === "production", gi = !sl, il = gi ? "gizmette.local.com" : "gizmette.com", Td = async () => {
5402
5402
  const e = {
5403
5403
  /**
5404
5404
  * A boolean value that indicates the application would
@@ -5447,18 +5447,18 @@ const mi = () => {
5447
5447
  e
5448
5448
  );
5449
5449
  });
5450
- }, Td = (e) => window.btoa(
5450
+ }, Ad = (e) => window.btoa(
5451
5451
  encodeURIComponent(e).replace(
5452
5452
  /%([0-9A-F]{2})/g,
5453
5453
  function(r, n) {
5454
5454
  return String.fromCharCode(+`0x${n}`);
5455
5455
  }
5456
5456
  )
5457
- ), Ad = (e) => decodeURIComponent(
5457
+ ), Id = (e) => decodeURIComponent(
5458
5458
  window.atob(e).split("").map(function(t) {
5459
5459
  return `%${`00${t.charCodeAt(0).toString(16)}`.slice(-2)}`;
5460
5460
  }).join("")
5461
- ), Id = (e, t, r) => t ? Object.keys(t).map((n) => /* @__PURE__ */ p("dl", { className: "my-0", children: /* @__PURE__ */ te("div", { className: "flex items-center justify-between", children: [
5461
+ ), kd = (e, t, r) => t ? Object.keys(t).map((n) => /* @__PURE__ */ p("dl", { className: "my-0", children: /* @__PURE__ */ te("div", { className: "flex items-center justify-between", children: [
5462
5462
  /* @__PURE__ */ p(
5463
5463
  "dt",
5464
5464
  {
@@ -5479,12 +5479,12 @@ const mi = () => {
5479
5479
  children: t[n]
5480
5480
  }
5481
5481
  )
5482
- ] }) }, `${e}-${n}`)) : null, kd = new Intl.NumberFormat("en", {
5482
+ ] }) }, `${e}-${n}`)) : null, Rd = new Intl.NumberFormat("en", {
5483
5483
  style: "decimal",
5484
5484
  signDisplay: "never",
5485
5485
  minimumFractionDigits: 0,
5486
5486
  maximumFractionDigits: 0
5487
- }), il = ({
5487
+ }), al = ({
5488
5488
  isAuthenticated: e,
5489
5489
  extraClass: t
5490
5490
  }) => b(
@@ -5493,20 +5493,20 @@ const mi = () => {
5493
5493
  "flex-1 overflow-y-auto",
5494
5494
  e ? "pt-0" : "pt-10",
5495
5495
  t
5496
- ), al = ({
5496
+ ), ol = ({
5497
5497
  extraClass: e
5498
- } = {}) => b("px-2 sm:px-0", e), Rd = (e, t) => t === 1 ? e : `${e}s`, Od = (e, t) => {
5498
+ } = {}) => b("px-2 sm:px-0", e), Od = (e, t) => t === 1 ? e : `${e}s`, _d = (e, t) => {
5499
5499
  let r;
5500
5500
  return (...n) => {
5501
5501
  window.clearTimeout(r), r = window.setTimeout(() => e(...n), t);
5502
5502
  };
5503
- }, ol = () => !!(window != null && window.__VERSINI_CALLISTO_ELECTRON__), gi = () => window.innerWidth < 403, _d = () => {
5504
- const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r = gi(), n = navigator.maxTouchPoints > 1;
5503
+ }, cl = () => !!(window != null && window.__VERSINI_CALLISTO_ELECTRON__), bi = () => window.innerWidth < 403, Cd = () => {
5504
+ const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r = bi(), n = navigator.maxTouchPoints > 1;
5505
5505
  return e && t && r && n;
5506
- }, Cd = (e) => {
5506
+ }, Nd = (e) => {
5507
5507
  const t = e.replace(/([A-Z])/g, " $1");
5508
5508
  return t.charAt(0).toUpperCase() + t.slice(1);
5509
- }, Nd = ({
5509
+ }, Pd = ({
5510
5510
  autoClose: e = 3e3,
5511
5511
  containerId: t,
5512
5512
  position: r = "top-center",
@@ -5530,7 +5530,7 @@ const mi = () => {
5530
5530
  theme: c,
5531
5531
  transition: u,
5532
5532
  icon: d
5533
- }), zn = "av-button", Nr = "icon", vn = "button", fn = "link", cl = ({
5533
+ }), Qn = "av-button", Nr = "icon", vn = "button", fn = "link", ll = ({
5534
5534
  type: e,
5535
5535
  size: t,
5536
5536
  labelRight: r,
@@ -5566,7 +5566,7 @@ const mi = () => {
5566
5566
  "h-12": t === "large" && i && (r || n)
5567
5567
  });
5568
5568
  }
5569
- }, ll = ({
5569
+ }, ul = ({
5570
5570
  type: e,
5571
5571
  size: t,
5572
5572
  labelRight: r,
@@ -5589,7 +5589,7 @@ const mi = () => {
5589
5589
  [a]: t === "large" && (r || n)
5590
5590
  });
5591
5591
  }
5592
- }, ul = ({
5592
+ }, dl = ({
5593
5593
  mode: e,
5594
5594
  noBackground: t,
5595
5595
  truncate: r,
@@ -5625,7 +5625,7 @@ const mi = () => {
5625
5625
  return b("not-prose text-copy-lighter", {
5626
5626
  truncate: r
5627
5627
  });
5628
- }, dl = ({
5628
+ }, fl = ({
5629
5629
  mode: e,
5630
5630
  noBackground: t,
5631
5631
  variant: r
@@ -5655,13 +5655,13 @@ const mi = () => {
5655
5655
  if (r === "selected")
5656
5656
  return "bg-action-selected-dark";
5657
5657
  }
5658
- }, fl = ({
5658
+ }, hl = ({
5659
5659
  radius: e
5660
5660
  }) => b({
5661
5661
  "rounded-full": e === "large",
5662
5662
  "rounded-md": e === "medium",
5663
5663
  "rounded-xs": e === "small"
5664
- }), hl = ({
5664
+ }), yl = ({
5665
5665
  mode: e,
5666
5666
  disabled: t,
5667
5667
  variant: r
@@ -5691,7 +5691,7 @@ const mi = () => {
5691
5691
  });
5692
5692
  if (r === "selected")
5693
5693
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
5694
- }, yl = ({
5694
+ }, ml = ({
5695
5695
  mode: e,
5696
5696
  disabled: t,
5697
5697
  variant: r
@@ -5721,7 +5721,7 @@ const mi = () => {
5721
5721
  });
5722
5722
  if (r === "selected")
5723
5723
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
5724
- }, ml = ({
5724
+ }, pl = ({
5725
5725
  mode: e,
5726
5726
  noBorder: t,
5727
5727
  variant: r
@@ -5751,14 +5751,14 @@ const mi = () => {
5751
5751
  });
5752
5752
  if (r === "selected")
5753
5753
  return "border border-border-selected-dark";
5754
- }, pl = ({
5754
+ }, gl = ({
5755
5755
  focusMode: e
5756
5756
  }) => b("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
5757
5757
  "focus:outline-focus-dark": e === "dark",
5758
5758
  "focus:outline-focus-light": e === "light",
5759
5759
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
5760
5760
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
5761
- }), gl = ({
5761
+ }), bl = ({
5762
5762
  mode: e,
5763
5763
  raw: t,
5764
5764
  iconClassName: r
@@ -5770,11 +5770,11 @@ const mi = () => {
5770
5770
  "dark:text-copy-accent-dark": e === "system"
5771
5771
  },
5772
5772
  r
5773
- ), bl = ({
5773
+ ), wl = ({
5774
5774
  animated: e
5775
5775
  }) => b({
5776
5776
  "transition-opacity duration-300 ease-in-out": e
5777
- }), bi = ({
5777
+ }), wi = ({
5778
5778
  type: e,
5779
5779
  className: t,
5780
5780
  raw: r,
@@ -5792,17 +5792,17 @@ const mi = () => {
5792
5792
  align: m,
5793
5793
  radius: g,
5794
5794
  animated: E
5795
- }) => (h || (h = "primary"), r ? b(zn, t) : b(
5796
- zn,
5797
- ul({
5795
+ }) => (h || (h = "primary"), r ? b(Qn, t) : b(
5796
+ Qn,
5797
+ dl({
5798
5798
  mode: n,
5799
5799
  variant: h,
5800
5800
  noBackground: l,
5801
5801
  truncate: y
5802
5802
  }),
5803
- dl({ mode: n, noBackground: l, variant: h }),
5804
- fl({ radius: g }),
5805
- cl({
5803
+ fl({ mode: n, noBackground: l, variant: h }),
5804
+ hl({ radius: g }),
5805
+ ll({
5806
5806
  type: e,
5807
5807
  size: o,
5808
5808
  labelRight: u,
@@ -5810,11 +5810,11 @@ const mi = () => {
5810
5810
  align: m,
5811
5811
  animated: E
5812
5812
  }),
5813
- ll({ type: e, size: o, labelRight: u, labelLeft: d }),
5814
- ml({ mode: n, variant: h, noBorder: c }),
5815
- pl({ focusMode: s }),
5816
- hl({ mode: n, variant: h, disabled: i }),
5813
+ ul({ type: e, size: o, labelRight: u, labelLeft: d }),
5814
+ pl({ mode: n, variant: h, noBorder: c }),
5815
+ gl({ focusMode: s }),
5817
5816
  yl({ mode: n, variant: h, disabled: i }),
5817
+ ml({ mode: n, variant: h, disabled: i }),
5818
5818
  {
5819
5819
  "w-full": a,
5820
5820
  "disabled:cursor-not-allowed disabled:opacity-50": i
@@ -5823,7 +5823,7 @@ const mi = () => {
5823
5823
  "transition-[width] duration-300 ease-in": e === Nr && E
5824
5824
  }),
5825
5825
  t
5826
- )), wl = (e, t, r) => {
5826
+ )), vl = (e, t, r) => {
5827
5827
  var n;
5828
5828
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e == null ? void 0 : e.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
5829
5829
  }, En = ke.forwardRef((e, t) => {
@@ -5833,14 +5833,14 @@ const mi = () => {
5833
5833
  {
5834
5834
  ref: t,
5835
5835
  onClick: (i) => {
5836
- wl(i, n, r);
5836
+ vl(i, n, r);
5837
5837
  },
5838
5838
  ...s
5839
5839
  }
5840
5840
  );
5841
5841
  });
5842
5842
  En.displayName = "BaseButton";
5843
- const wi = ke.forwardRef(
5843
+ const vi = ke.forwardRef(
5844
5844
  ({
5845
5845
  children: e,
5846
5846
  disabled: t = !1,
@@ -5856,7 +5856,7 @@ const wi = ke.forwardRef(
5856
5856
  radius: l = "large",
5857
5857
  ...h
5858
5858
  }, y) => {
5859
- const m = bi({
5859
+ const m = wi({
5860
5860
  type: vn,
5861
5861
  mode: r,
5862
5862
  focusMode: n,
@@ -5882,14 +5882,14 @@ const wi = ke.forwardRef(
5882
5882
  );
5883
5883
  }
5884
5884
  );
5885
- wi.displayName = "Button";
5886
- function vl() {
5885
+ vi.displayName = "Button";
5886
+ function El() {
5887
5887
  const e = J(!1);
5888
5888
  return de(() => (e.current = !0, () => {
5889
5889
  e.current = !1;
5890
5890
  }), []), Ae(() => e.current, []);
5891
5891
  }
5892
- function El(e) {
5892
+ function Sl(e) {
5893
5893
  return Tr(() => e.every((t) => t == null) ? () => {
5894
5894
  } : (t) => {
5895
5895
  e.forEach((r) => {
@@ -5897,7 +5897,7 @@ function El(e) {
5897
5897
  });
5898
5898
  }, e);
5899
5899
  }
5900
- const Sl = {
5900
+ const Tl = {
5901
5901
  x: 0,
5902
5902
  y: 0,
5903
5903
  width: 0,
@@ -5908,7 +5908,7 @@ const Sl = {
5908
5908
  right: 0
5909
5909
  };
5910
5910
  function qr(e) {
5911
- const t = vl(), r = J(0), n = J(null), [s, i] = Te(Sl), a = Tr(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((o) => {
5911
+ const t = El(), r = J(0), n = J(null), [s, i] = Te(Tl), a = Tr(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((o) => {
5912
5912
  const c = o[0];
5913
5913
  c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
5914
5914
  n.current && t() && i(c.contentRect);
@@ -5925,14 +5925,14 @@ const ir = {
5925
5925
  // w-8
5926
5926
  large: 48
5927
5927
  // w-12
5928
- }, Tl = {
5928
+ }, Al = {
5929
5929
  small: 8 * 2,
5930
5930
  // px-2 x 2
5931
5931
  medium: 12 * 2,
5932
5932
  // px-3 x 2
5933
5933
  large: 16 * 2
5934
5934
  // px-4 x 2
5935
- }, Al = 2, Il = 300, Er = ke.forwardRef(
5935
+ }, Il = 2, kl = 300, Er = ke.forwardRef(
5936
5936
  ({
5937
5937
  children: e,
5938
5938
  disabled: t = !1,
@@ -5956,7 +5956,7 @@ const ir = {
5956
5956
  animated: T = !1,
5957
5957
  ...k
5958
5958
  }, C) => {
5959
- const M = bi({
5959
+ const M = wi({
5960
5960
  type: Nr,
5961
5961
  mode: r,
5962
5962
  focusMode: n,
@@ -5973,15 +5973,15 @@ const ir = {
5973
5973
  radius: E,
5974
5974
  variant: I,
5975
5975
  animated: T
5976
- }), F = gl({ mode: r, raw: o, iconClassName: _ }), O = bl({ animated: T }), v = "flex items-center justify-center relative w-full h-full overflow-hidden", [R, $] = qr(), [H, re] = qr(), [se, He] = qr(), S = J(0), x = J(null), N = J(null), Oe = El([C, x]);
5976
+ }), F = bl({ mode: r, raw: o, iconClassName: _ }), O = wl({ animated: T }), v = "flex items-center justify-center relative w-full h-full overflow-hidden", [R, $] = qr(), [H, re] = qr(), [se, He] = qr(), S = J(0), x = J(null), N = J(null), Oe = Sl([C, x]);
5977
5977
  return fr(() => {
5978
- se && se.current && T && (S.current = He.width + Tl[l] + (c ? 0 : Al), x.current && !x.current.style.width && (x.current.style.width = `${ir[l]}px`));
5978
+ se && se.current && T && (S.current = He.width + Al[l] + (c ? 0 : Il), x.current && !x.current.style.width && (x.current.style.width = `${ir[l]}px`));
5979
5979
  }, [He, se, l, c, T]), fr(() => {
5980
5980
  if (x && x.current && T) {
5981
5981
  let _e = ir[l];
5982
5982
  h && R && $.width > 0 ? _e = $.width + S.current : y && H && re.width > 0 && (_e = re.width + S.current), N.current && clearTimeout(N.current), _e !== parseInt(x.current.style.width || "0", 10) && (R.current && (R.current.style.opacity = "0"), H.current && (H.current.style.opacity = "0"), x.current.style.width = `${_e}px`, _e > ir[l] && (N.current = setTimeout(() => {
5983
5983
  R.current && h && (R.current.style.opacity = "1"), H.current && y && (H.current.style.opacity = "1"), N.current = null;
5984
- }, Il * 0.8))), _e === ir[l] && (R.current && (R.current.style.opacity = "0"), H.current && (H.current.style.opacity = "0"));
5984
+ }, kl * 0.8))), _e === ir[l] && (R.current && (R.current.style.opacity = "0"), H.current && (H.current.style.opacity = "0"));
5985
5985
  }
5986
5986
  }, [
5987
5987
  $,
@@ -6005,7 +6005,7 @@ const ir = {
6005
6005
  ...k,
6006
6006
  children: /* @__PURE__ */ te("div", { className: v, children: [
6007
6007
  /* @__PURE__ */ p(
6008
- Qn,
6008
+ Yn,
6009
6009
  {
6010
6010
  label: y,
6011
6011
  labelRef: H,
@@ -6016,7 +6016,7 @@ const ir = {
6016
6016
  ),
6017
6017
  /* @__PURE__ */ p("span", { ref: se, className: F, children: e }),
6018
6018
  /* @__PURE__ */ p(
6019
- Qn,
6019
+ Yn,
6020
6020
  {
6021
6021
  label: h,
6022
6022
  labelRef: R,
@@ -6029,7 +6029,7 @@ const ir = {
6029
6029
  }
6030
6030
  );
6031
6031
  }
6032
- ), Qn = ({
6032
+ ), Yn = ({
6033
6033
  labelRef: e,
6034
6034
  labelClass: t,
6035
6035
  label: r,
@@ -6058,7 +6058,7 @@ try {
6058
6058
  });
6059
6059
  } catch {
6060
6060
  }
6061
- const kl = ke.forwardRef(
6061
+ const Rl = ke.forwardRef(
6062
6062
  ({
6063
6063
  children: e,
6064
6064
  mode: t = "system",
@@ -6096,13 +6096,13 @@ const kl = ke.forwardRef(
6096
6096
  ) });
6097
6097
  }
6098
6098
  );
6099
- kl.displayName = "ButtonSort";
6099
+ Rl.displayName = "ButtonSort";
6100
6100
  const ur = "av-card";
6101
- function Rl(e) {
6102
- const t = ds();
6101
+ function Ol(e) {
6102
+ const t = fs();
6103
6103
  return `${e}${t}`;
6104
6104
  }
6105
- const Ol = ({
6105
+ const _l = ({
6106
6106
  className: e,
6107
6107
  headerClassName: t,
6108
6108
  bodyClassName: r,
@@ -6142,7 +6142,7 @@ const Ol = ({
6142
6142
  footer: d
6143
6143
  };
6144
6144
  };
6145
- function _l({
6145
+ function Cl({
6146
6146
  id: e,
6147
6147
  content: t,
6148
6148
  userAriaLabelledby: r,
@@ -6150,7 +6150,7 @@ function _l({
6150
6150
  }) {
6151
6151
  return typeof t == "string" ? /* @__PURE__ */ p("h2", { id: e, className: n, children: t }) : r ? /* @__PURE__ */ p("div", { className: n, children: t }) : t ? /* @__PURE__ */ p("div", { className: n, id: e, children: t }) : null;
6152
6152
  }
6153
- const Cl = ({
6153
+ const Nl = ({
6154
6154
  header: e,
6155
6155
  headerClassName: t,
6156
6156
  footer: r,
@@ -6165,7 +6165,7 @@ const Cl = ({
6165
6165
  ...l
6166
6166
  }) => {
6167
6167
  let h = null, y = null;
6168
- const m = typeof e == "string", g = Rl(ur), E = Ol({
6168
+ const m = typeof e == "string", g = Ol(ur), E = _l({
6169
6169
  className: i,
6170
6170
  headerClassName: t,
6171
6171
  bodyClassName: a,
@@ -6184,7 +6184,7 @@ const Cl = ({
6184
6184
  ...l,
6185
6185
  children: [
6186
6186
  /* @__PURE__ */ p(
6187
- _l,
6187
+ Cl,
6188
6188
  {
6189
6189
  ...h && { id: h },
6190
6190
  content: e,
@@ -6254,7 +6254,7 @@ try {
6254
6254
  });
6255
6255
  } catch {
6256
6256
  }
6257
- const Nl = ({
6257
+ const Pl = ({
6258
6258
  className: e,
6259
6259
  viewBox: t,
6260
6260
  title: r,
@@ -6271,7 +6271,7 @@ const Nl = ({
6271
6271
  ...s,
6272
6272
  children: /* @__PURE__ */ p("path", { d: "M927.943 30.81c0-2.381-1.191-5.954-3.573-7.145-7.146-4.763-19.055-1.19-26.2 0-17.864 2.382-34.537 4.764-53.592 4.764-26.2 0-53.591-1.19-79.791-4.764-23.819-3.572-44.064-10.718-69.074-3.572-35.727 9.527-58.355 38.109-57.164 75.028 1.191 21.436-2.382 38.109-9.527 57.164-7.146 17.864-15.482 20.245-32.155 20.245-115.52 0-229.848-1.19-345.367 0h-63.119c-29.773 0-59.546 5.955-89.319 0-21.436-4.763-42.873-15.482-58.355-30.964-3.573-3.572-10.718-14.29-14.29-14.29-4.765 1.19-4.765 15.481-4.765 19.054 0 15.482 5.955 30.964 5.955 46.446s-7.145 28.582-11.91 42.873c-4.763 16.673-4.763 33.346-2.381 50.019 4.764 27.39 9.527 55.973 11.91 84.555 2.381 25.01 2.381 48.828 4.763 73.837 2.382 20.246 3.573 29.773 29.773 33.346 30.964 4.764 30.964-5.955 38.11-26.2 9.527-25.01 17.863-51.21 27.39-76.22 8.337-19.054 15.482-60.736 67.883-40.49 28.582 10.718 58.355 16.672 88.128 25.009 32.155 8.336 65.5 16.673 97.655 22.627 65.501 13.1 132.193 20.246 200.075 23.819 7.146 0 11.91 0 16.673 5.954 17.864 22.628-3.573 63.119 41.682 70.265 40.491 5.954 40.491-22.628 45.255-47.637 2.382-14.291 4.764-27.391 8.337-40.492 1.19-5.954 5.954-11.909 10.718-15.481 55.973-33.346 88.128-98.847 78.6-164.347-1.19-10.719-4.763-21.437-3.572-33.346 2.382-23.819 32.155-33.346 50.018-42.873 22.628-13.1 47.637-25.01 66.692-42.873 13.1-11.91 23.818-27.392 29.773-44.064 3.573-5.955 5.955-14.292 4.764-20.246M737.395 190.395c-2.381 25.01-13.1 36.919-35.727 41.682-40.491 8.337-66.692-19.054-54.783-58.355 8.337-26.2 17.864-51.21 29.773-75.028 11.91-23.818 22.628-23.818 36.919-1.19 17.864 28.581 27.391 59.545 23.818 92.891m38.11-109.564c-7.146 0-13.1-5.955-13.1-13.1 0-7.146 5.954-13.1 13.1-13.1 7.145 0 13.1 5.954 13.1 13.1 0 7.145-5.955 13.1-13.1 13.1" })
6273
6273
  }
6274
- ), Pl = ({
6274
+ ), xl = ({
6275
6275
  className: e,
6276
6276
  viewBox: t,
6277
6277
  title: r,
@@ -6297,7 +6297,7 @@ const Nl = ({
6297
6297
  /* @__PURE__ */ p("path", { d: "M5.1 9.2C13.3-1.2 28.4-3.1 38.8 5.1l592 464c10.4 8.2 12.3 23.3 4.1 33.7s-23.3 12.3-33.7 4.1l-592-464C-1.2 34.7-3.1 19.6 5.1 9.2" })
6298
6298
  ]
6299
6299
  }
6300
- ), xl = ({
6300
+ ), Dl = ({
6301
6301
  className: e,
6302
6302
  viewBox: t,
6303
6303
  title: r,
@@ -6333,7 +6333,7 @@ const Nl = ({
6333
6333
  ]
6334
6334
  }
6335
6335
  );
6336
- }, Dl = ({
6336
+ }, $l = ({
6337
6337
  className: e,
6338
6338
  viewBox: t,
6339
6339
  title: r,
@@ -6373,7 +6373,7 @@ try {
6373
6373
  });
6374
6374
  } catch {
6375
6375
  }
6376
- const $l = "av-main", Ll = ({
6376
+ const Ll = "av-main", Ml = ({
6377
6377
  children: e,
6378
6378
  className: t,
6379
6379
  raw: r = !1,
@@ -6382,7 +6382,7 @@ const $l = "av-main", Ll = ({
6382
6382
  ...i
6383
6383
  }) => {
6384
6384
  const a = b(
6385
- $l,
6385
+ Ll,
6386
6386
  {
6387
6387
  "mt-2 sm:mt-3": !r && !n,
6388
6388
  "p-2": !r && !s,
@@ -6405,10 +6405,10 @@ try {
6405
6405
  });
6406
6406
  } catch {
6407
6407
  }
6408
- const Ml = "av-flexgrid", ar = "av-flexgrid-item", Sr = 0.25, hn = ke.createContext({
6408
+ const Ul = "av-flexgrid", ar = "av-flexgrid-item", Sr = 0.25, hn = ke.createContext({
6409
6409
  columnGap: 0,
6410
6410
  rowGap: 0
6411
- }), Ul = ({
6411
+ }), Kl = ({
6412
6412
  children: e,
6413
6413
  className: t,
6414
6414
  columnGap: r = 1,
@@ -6434,7 +6434,7 @@ const Ml = "av-flexgrid", ar = "av-flexgrid-item", Sr = 0.25, hn = ke.createCont
6434
6434
  marginLeft: r * -1 * Sr + "rem",
6435
6435
  marginTop: n * -1 * Sr + "rem"
6436
6436
  }, l = b(
6437
- Ml,
6437
+ Ul,
6438
6438
  "box-border flex flex-wrap"
6439
6439
  ), h = { columnGap: r, rowGap: n };
6440
6440
  return t ? /* @__PURE__ */ p("div", { className: t, children: /* @__PURE__ */ p("div", { className: l, style: d, ...u, children: /* @__PURE__ */ p(hn.Provider, { value: h, children: e }) }) }) : /* @__PURE__ */ p("div", { className: l, style: d, ...u, children: /* @__PURE__ */ p(hn.Provider, { value: h, children: e }) });
@@ -6511,7 +6511,7 @@ const Ml = "av-flexgrid", ar = "av-flexgrid-item", Sr = 0.25, hn = ke.createCont
6511
6511
  "lg:basis-full": e === 12 && t === "lg",
6512
6512
  "xl:basis-full": e === 12 && t === "xl",
6513
6513
  "2xl:basis-full": e === 12 && t === "2xl"
6514
- }), Kl = ({
6514
+ }), Hl = ({
6515
6515
  className: e,
6516
6516
  span: t
6517
6517
  }) => {
@@ -6543,7 +6543,7 @@ const Ml = "av-flexgrid", ar = "av-flexgrid-item", Sr = 0.25, hn = ke.createCont
6543
6543
  const { columnGap: s, rowGap: i } = yn(hn), a = {
6544
6544
  paddingLeft: s * Sr + "rem",
6545
6545
  paddingTop: i * Sr + "rem"
6546
- }, o = Kl({
6546
+ }, o = Hl({
6547
6547
  className: t,
6548
6548
  span: r
6549
6549
  });
@@ -6562,14 +6562,14 @@ try {
6562
6562
  });
6563
6563
  } catch {
6564
6564
  }
6565
- const vi = "av-text-input", Hl = "av-text-input-wrapper", Jr = "av-text-input-helper-text";
6566
- function Fl() {
6565
+ const Ei = "av-text-input", Fl = "av-text-input-wrapper", Jr = "av-text-input-helper-text";
6566
+ function Bl() {
6567
6567
  const e = J(!1);
6568
6568
  return de(() => (e.current = !0, () => {
6569
6569
  e.current = !1;
6570
6570
  }), []), Ae(() => e.current, []);
6571
6571
  }
6572
- const Bl = {
6572
+ const Vl = {
6573
6573
  x: 0,
6574
6574
  y: 0,
6575
6575
  width: 0,
@@ -6579,8 +6579,8 @@ const Bl = {
6579
6579
  bottom: 0,
6580
6580
  right: 0
6581
6581
  };
6582
- function Vl(e) {
6583
- const t = Fl(), r = J(0), n = J(null), [s, i] = Te(Bl), a = Tr(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((o) => {
6582
+ function jl(e) {
6583
+ const t = Bl(), r = J(0), n = J(null), [s, i] = Te(Vl), a = Tr(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((o) => {
6584
6584
  const c = o[0];
6585
6585
  c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
6586
6586
  n.current && t() && i(c.contentRect);
@@ -6590,8 +6590,8 @@ function Vl(e) {
6590
6590
  a == null || a.disconnect(), r.current && cancelAnimationFrame(r.current);
6591
6591
  }), [a, e]), [n, s];
6592
6592
  }
6593
- function jl(e) {
6594
- const t = ds();
6593
+ function Gl(e) {
6594
+ const t = fs();
6595
6595
  if (!e)
6596
6596
  return t;
6597
6597
  if (typeof e == "number" || typeof e == "string")
@@ -6601,7 +6601,7 @@ function jl(e) {
6601
6601
  return typeof r == "number" || typeof r == "string" ? `${n}${r}` : `${n}${t}`;
6602
6602
  }
6603
6603
  }
6604
- const Ei = "SET_ANNOUNCEMENT", Si = "CLEAR_ANNOUNCEMENT", Gl = {
6604
+ const Si = "SET_ANNOUNCEMENT", Ti = "CLEAR_ANNOUNCEMENT", ql = {
6605
6605
  alert: null,
6606
6606
  alertdialog: null,
6607
6607
  log: "polite",
@@ -6609,14 +6609,14 @@ const Ei = "SET_ANNOUNCEMENT", Si = "CLEAR_ANNOUNCEMENT", Gl = {
6609
6609
  progressbar: null,
6610
6610
  status: "polite",
6611
6611
  timer: "assertive"
6612
- }, ql = (e, t) => {
6612
+ }, Wl = (e, t) => {
6613
6613
  switch (t == null ? void 0 : t.type) {
6614
- case Ei:
6614
+ case Si:
6615
6615
  return {
6616
6616
  ...e,
6617
6617
  announcement: t.payload
6618
6618
  };
6619
- case Si:
6619
+ case Ti:
6620
6620
  return {
6621
6621
  ...e,
6622
6622
  announcement: null
@@ -6624,14 +6624,14 @@ const Ei = "SET_ANNOUNCEMENT", Si = "CLEAR_ANNOUNCEMENT", Gl = {
6624
6624
  default:
6625
6625
  return e;
6626
6626
  }
6627
- }, Wl = ({
6627
+ }, Jl = ({
6628
6628
  onAnnouncementClear: e,
6629
6629
  dispatch: t
6630
6630
  }) => {
6631
6631
  t({
6632
- type: Si
6632
+ type: Ti
6633
6633
  }), typeof e == "function" && e();
6634
- }, Yn = ({
6634
+ }, Xn = ({
6635
6635
  children: e,
6636
6636
  clearAnnouncementDelay: t,
6637
6637
  clearAnnouncementTimeoutRef: r,
@@ -6639,16 +6639,16 @@ const Ei = "SET_ANNOUNCEMENT", Si = "CLEAR_ANNOUNCEMENT", Gl = {
6639
6639
  dispatch: s
6640
6640
  }) => {
6641
6641
  clearTimeout(r.current), e !== null && s({
6642
- type: Ei,
6642
+ type: Si,
6643
6643
  payload: e
6644
6644
  }), t && (r.current = setTimeout(
6645
- () => Wl({
6645
+ () => Jl({
6646
6646
  onAnnouncementClear: n,
6647
6647
  dispatch: s
6648
6648
  }),
6649
6649
  t
6650
6650
  ));
6651
- }, Jl = ({
6651
+ }, zl = ({
6652
6652
  children: e,
6653
6653
  announcementTimeoutRef: t,
6654
6654
  announcementDelay: r,
@@ -6657,13 +6657,13 @@ const Ei = "SET_ANNOUNCEMENT", Si = "CLEAR_ANNOUNCEMENT", Gl = {
6657
6657
  onAnnouncementClear: i,
6658
6658
  dispatch: a
6659
6659
  }) => {
6660
- clearTimeout(t.current), r ? t.current = setTimeout(Yn, r, {
6660
+ clearTimeout(t.current), r ? t.current = setTimeout(Xn, r, {
6661
6661
  children: e,
6662
6662
  clearAnnouncementDelay: n,
6663
6663
  clearAnnouncementTimeoutRef: s,
6664
6664
  onAnnouncementClear: i,
6665
6665
  dispatch: a
6666
- }) : Yn({
6666
+ }) : Xn({
6667
6667
  children: e,
6668
6668
  clearAnnouncementDelay: n,
6669
6669
  clearAnnouncementTimeoutRef: s,
@@ -6671,7 +6671,7 @@ const Ei = "SET_ANNOUNCEMENT", Si = "CLEAR_ANNOUNCEMENT", Gl = {
6671
6671
  dispatch: a
6672
6672
  });
6673
6673
  };
6674
- function Ti({
6674
+ function Ai({
6675
6675
  children: e,
6676
6676
  className: t,
6677
6677
  politeness: r,
@@ -6682,12 +6682,12 @@ function Ti({
6682
6682
  visible: o,
6683
6683
  ...c
6684
6684
  }) {
6685
- const u = J(null), d = J(null), [l, h] = us(ql, {
6685
+ const u = J(null), d = J(null), [l, h] = ds(Wl, {
6686
6686
  announcement: null
6687
6687
  });
6688
6688
  let y = r;
6689
- typeof y > "u" && (y = n ? Gl[n] : "assertive"), de(() => {
6690
- Jl({
6689
+ typeof y > "u" && (y = n ? ql[n] : "assertive"), de(() => {
6690
+ zl({
6691
6691
  announcementTimeoutRef: u,
6692
6692
  announcementDelay: s,
6693
6693
  children: e,
@@ -6729,21 +6729,21 @@ try {
6729
6729
  });
6730
6730
  } catch {
6731
6731
  }
6732
- const zl = ({
6732
+ const Ql = ({
6733
6733
  mode: e
6734
6734
  }) => b({
6735
6735
  "bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
6736
6736
  "bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
6737
6737
  "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
6738
6738
  "bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
6739
- }), Ql = ({
6739
+ }), Yl = ({
6740
6740
  focusMode: e
6741
6741
  }) => b("focus:outline focus:outline-2 focus:outline-offset-2", {
6742
6742
  "focus:outline-focus-dark": e === "dark",
6743
6743
  "focus:outline-focus-light": e === "light",
6744
6744
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
6745
6745
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
6746
- }), Yl = ({
6746
+ }), Xl = ({
6747
6747
  noBorder: e,
6748
6748
  error: t
6749
6749
  }) => b("border-2", {
@@ -6751,7 +6751,7 @@ const zl = ({
6751
6751
  "focus:border-border-dark": !e && t,
6752
6752
  "border-border-error-dark": !e && t,
6753
6753
  "border-transparent": e
6754
- }), Xl = ({
6754
+ }), Zl = ({
6755
6755
  disabled: e,
6756
6756
  raw: t,
6757
6757
  error: r,
@@ -6775,7 +6775,7 @@ const zl = ({
6775
6775
  "text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": n === "system",
6776
6776
  "text-copy-lighter dark:text-copy-error-dark": n === "alt-system"
6777
6777
  });
6778
- }, Zl = ({
6778
+ }, eu = ({
6779
6779
  error: e,
6780
6780
  raw: t,
6781
6781
  mode: r,
@@ -6802,7 +6802,7 @@ const zl = ({
6802
6802
  "text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": r === "system",
6803
6803
  "dark:text-copy-error-dark text-copy-error-light bg-surface-darker": r === "alt-system"
6804
6804
  });
6805
- }, eu = ({
6805
+ }, tu = ({
6806
6806
  className: e,
6807
6807
  inputClassName: t,
6808
6808
  raw: r,
@@ -6816,7 +6816,7 @@ const zl = ({
6816
6816
  }) => {
6817
6817
  const d = r ? e : b(
6818
6818
  "relative flex w-full flex-col justify-center",
6819
- Hl,
6819
+ Fl,
6820
6820
  e
6821
6821
  );
6822
6822
  let l = "";
@@ -6838,22 +6838,22 @@ const zl = ({
6838
6838
  break;
6839
6839
  }
6840
6840
  const h = r ? b(t) : b(
6841
- vi,
6841
+ Ei,
6842
6842
  l,
6843
6843
  "rounded-md text-base px-4",
6844
- zl({ mode: a }),
6845
- Ql({ focusMode: o }),
6846
- Yl({ noBorder: s, error: i }),
6844
+ Ql({ mode: a }),
6845
+ Yl({ focusMode: o }),
6846
+ Xl({ noBorder: s, error: i }),
6847
6847
  {
6848
6848
  "disabled:cursor-not-allowed disabled:opacity-50": n
6849
6849
  },
6850
6850
  t
6851
- ), y = r ? void 0 : "sr-only", m = Xl({
6851
+ ), y = r ? void 0 : "sr-only", m = Zl({
6852
6852
  disabled: n,
6853
6853
  raw: r,
6854
6854
  error: i,
6855
6855
  mode: a
6856
- }), g = Zl({
6856
+ }), g = eu({
6857
6857
  error: i,
6858
6858
  raw: r,
6859
6859
  mode: a,
@@ -6889,13 +6889,13 @@ const zl = ({
6889
6889
  size: I = "md",
6890
6890
  ..._
6891
6891
  }, T) => {
6892
- const [k, C] = Vl(), [M, F] = Te(0), O = jl({ id: e, prefix: `${vi}-` }), v = `${t} error, ${m}`, R = J(null), $ = J(null), H = {
6892
+ const [k, C] = jl(), [M, F] = Te(0), O = Gl({ id: e, prefix: `${Ei}-` }), v = `${t} error, ${m}`, R = J(null), $ = J(null), H = {
6893
6893
  xs: { label: "-25px", helperText: "30px" },
6894
6894
  sm: { label: "-29px", helperText: "34px" },
6895
6895
  md: { label: "-33px", helperText: "38px" },
6896
6896
  lg: { label: "-15px", helperText: "22px" },
6897
6897
  xl: { label: "-19px", helperText: "25px" }
6898
- }, re = eu({
6898
+ }, re = tu({
6899
6899
  className: i,
6900
6900
  inputClassName: a,
6901
6901
  error: n,
@@ -6969,12 +6969,12 @@ const zl = ({
6969
6969
  children: g
6970
6970
  }
6971
6971
  ),
6972
- n && m && /* @__PURE__ */ p(Ti, { politeness: "polite", clearAnnouncementDelay: 500, children: v })
6972
+ n && m && /* @__PURE__ */ p(Ai, { politeness: "polite", clearAnnouncementDelay: 500, children: v })
6973
6973
  ] });
6974
6974
  }
6975
6975
  );
6976
6976
  Sn.displayName = "TextInput";
6977
- function tu(e) {
6977
+ function ru(e) {
6978
6978
  return Tr(() => e.every((t) => t == null) ? () => {
6979
6979
  } : (t) => {
6980
6980
  e.forEach((r) => {
@@ -6982,7 +6982,7 @@ function tu(e) {
6982
6982
  });
6983
6983
  }, e);
6984
6984
  }
6985
- const ru = 500, nu = 5e3, su = 2e4, Ai = ke.forwardRef(
6985
+ const nu = 500, su = 5e3, iu = 2e4, Ii = ke.forwardRef(
6986
6986
  ({
6987
6987
  name: e,
6988
6988
  disabled: t,
@@ -6999,19 +6999,19 @@ const ru = 500, nu = 5e3, su = 2e4, Ai = ke.forwardRef(
6999
6999
  const [h, y] = Te(!0), [m, g] = Te({
7000
7000
  message: null,
7001
7001
  politeness: null
7002
- }), E = J(!0), I = J(null), _ = J(null), T = tu([l, _]), k = h ? "Show" : "Hide", C = () => {
7002
+ }), E = J(!0), I = J(null), _ = J(null), T = ru([l, _]), k = h ? "Show" : "Hide", C = () => {
7003
7003
  I.current && clearTimeout(I.current), E.current || (I.current = setTimeout(() => {
7004
7004
  E.current = !0, y(!0), g({
7005
- announcementTimeout: nu,
7005
+ announcementTimeout: su,
7006
7006
  politeness: "polite",
7007
7007
  message: `${r} hiding characters`
7008
7008
  }), s && s(!0);
7009
- }, su));
7009
+ }, iu));
7010
7010
  }, M = ($) => {
7011
7011
  $.preventDefault();
7012
7012
  const H = !E.current;
7013
7013
  E.current = H, C(), y(H), g({
7014
- announcementTimeout: ru,
7014
+ announcementTimeout: nu,
7015
7015
  politeness: "assertive",
7016
7016
  message: H ? "Characters hidden" : "Characters showing"
7017
7017
  }), s && s(H);
@@ -7052,7 +7052,7 @@ const ru = 500, nu = 5e3, su = 2e4, Ai = ke.forwardRef(
7052
7052
  }
7053
7053
  ),
7054
7054
  /* @__PURE__ */ p(
7055
- Ti,
7055
+ Ai,
7056
7056
  {
7057
7057
  role: "status",
7058
7058
  politeness: m.politeness,
@@ -7063,7 +7063,7 @@ const ru = 500, nu = 5e3, su = 2e4, Ai = ke.forwardRef(
7063
7063
  ] });
7064
7064
  }
7065
7065
  );
7066
- Ai.displayName = "TextInputMask";
7066
+ Ii.displayName = "TextInputMask";
7067
7067
  /*!
7068
7068
  @versini/ui-textinput v4.0.3
7069
7069
  © 2025 gizmette.com
@@ -7077,19 +7077,19 @@ try {
7077
7077
  });
7078
7078
  } catch {
7079
7079
  }
7080
- const iu = "ASK! ME! ANYTHING!", Ii = "Callisto", au = "Log in", ou = "Sign in with a Passkey", Pd = "Log out", cu = "Password", xd = "Usage", Dd = "Profile", $d = "Settings", Ld = "Chat history", Md = "About", Ud = "Type your question here.", Kd = `Type your question here.
7081
- Press Enter to send it or Shift+Enter for new line.`, Hd = `Type your question here.
7082
- Press Ctrl+Enter to send it or Enter for new line.`, Fd = "{{clipboard}}", Bd = `Sometimes, ${Ii} hallucinates. Review important details.`, Vd = "Prompts are pre-filled menus available on the main screen, to help you quickly start requests. If you select the 'Private Chat' checkbox, the corresponding chat will not be saved. If you select the 'Clipboard Access' checkbox, your clipboard content (if any) will be provided to the request.", jd = "Default provider set to", Gd = "Chat successfully deleted!", qd = "Chat successfully saved!", Wd = "av-sassy", Jd = {
7080
+ const au = "ASK! ME! ANYTHING!", ki = "Callisto", ou = "Log in", cu = "Sign in with a Passkey", xd = "Log out", lu = "Password", Dd = "Usage", $d = "Profile", Ld = "Settings", Md = "Chat history", Ud = "About", Tn = "Type your message here.", Kd = Tn, Hd = `${Tn}
7081
+ Press Enter to send it or Shift+Enter for new line.`, Fd = `${Tn}
7082
+ Press Ctrl+Enter to send it or Enter for new line.`, Bd = "{{clipboard}}", Vd = `Sometimes, ${ki} hallucinates. Review important details.`, jd = "Prompts are pre-filled menus available on the main screen, to help you quickly start requests. If you select the 'Private Chat' checkbox, the corresponding chat will not be saved. If you select the 'Clipboard Access' checkbox, your clipboard content (if any) will be provided to the request.", Gd = "Default provider set to", qd = "Chat successfully deleted!", Wd = "Chat successfully saved!", Jd = "av-sassy", zd = {
7083
7083
  0: ["January", "February", "March"],
7084
7084
  3: ["April", "May", "June"],
7085
7085
  6: ["July", "August", "September"],
7086
7086
  9: ["October", "November", "December"]
7087
- }, zd = {
7087
+ }, Qd = {
7088
7088
  0: ["Jan", "Feb", "Mar"],
7089
7089
  3: ["Apr", "May", "Jun"],
7090
7090
  6: ["Jul", "Aug", "Sep"],
7091
7091
  9: ["Oct", "Nov", "Dec"]
7092
- }, Qd = {
7092
+ }, Yd = {
7093
7093
  PREFERENCES: {
7094
7094
  TITLE: "User profile",
7095
7095
  NAME: "Name",
@@ -7125,25 +7125,25 @@ Press Ctrl+Enter to send it or Enter for new line.`, Fd = "{{clipboard}}", Bd =
7125
7125
  SEND_ON_ENTER: "The following option allows you to choose whether you want to send a message when you press Enter or if you want to use Ctrl+Enter (Cmd+Enter on Mac). If you choose to send a message on Enter, you will need use Shift+Enter to insert a new line.",
7126
7126
  USE_MEMORY: "The following option allows you to choose whether you want to enable memory for your chats. When enabled, Callisto will remember your previous interactions and use them to provide more relevant responses."
7127
7127
  }
7128
- }, lu = () => /* @__PURE__ */ te(
7128
+ }, uu = () => /* @__PURE__ */ te(
7129
7129
  "div",
7130
7130
  {
7131
7131
  className: b(
7132
7132
  {
7133
- "mt-4": gi()
7133
+ "mt-4": bi()
7134
7134
  },
7135
7135
  "flex items-center justify-center text-slate-300"
7136
7136
  ),
7137
7137
  children: [
7138
- /* @__PURE__ */ p("div", { className: "basis-1/4", children: /* @__PURE__ */ p(Nl, {}) }),
7138
+ /* @__PURE__ */ p("div", { className: "basis-1/4", children: /* @__PURE__ */ p(Pl, {}) }),
7139
7139
  /* @__PURE__ */ te("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
7140
- /* @__PURE__ */ p("h1", { children: Ii }),
7141
- /* @__PURE__ */ p("h2", { children: iu })
7140
+ /* @__PURE__ */ p("h1", { children: ki }),
7141
+ /* @__PURE__ */ p("h2", { children: au })
7142
7142
  ] })
7143
7143
  ]
7144
7144
  }
7145
- ), uu = () => {
7146
- const { login: e, logoutReason: t, loginWithPasskey: r } = mi(), [n, s] = Te(""), [i, a] = Te(""), [o, c] = Te(!0), [u, d] = Te({
7145
+ ), du = () => {
7146
+ const { login: e, logoutReason: t, loginWithPasskey: r } = pi(), [n, s] = Te(""), [i, a] = Te(""), [o, c] = Te(!0), [u, d] = Te({
7147
7147
  username: "",
7148
7148
  password: ""
7149
7149
  }), l = async (h) => {
@@ -7158,9 +7158,9 @@ Press Ctrl+Enter to send it or Enter for new line.`, Fd = "{{clipboard}}", Bd =
7158
7158
  }), de(() => {
7159
7159
  t && a(t);
7160
7160
  }, [t]), /* @__PURE__ */ p(dr, { children: /* @__PURE__ */ te(
7161
- Ll,
7161
+ Ml,
7162
7162
  {
7163
- className: al({
7163
+ className: ol({
7164
7164
  extraClass: "mt-5"
7165
7165
  }),
7166
7166
  noMargin: !0,
@@ -7169,13 +7169,13 @@ Press Ctrl+Enter to send it or Enter for new line.`, Fd = "{{clipboard}}", Bd =
7169
7169
  /* @__PURE__ */ p(
7170
7170
  "div",
7171
7171
  {
7172
- className: il({
7172
+ className: al({
7173
7173
  extraClass: "rounded-md"
7174
7174
  }),
7175
- children: /* @__PURE__ */ p(lu, {})
7175
+ children: /* @__PURE__ */ p(uu, {})
7176
7176
  }
7177
7177
  ),
7178
- /* @__PURE__ */ p("form", { className: "mt-5", onSubmit: l, children: /* @__PURE__ */ p(Ul, { alignHorizontal: "center", children: /* @__PURE__ */ p(Fe, { span: 6, children: /* @__PURE__ */ te(Cl, { mode: "dark", children: [
7178
+ /* @__PURE__ */ p("form", { className: "mt-5", onSubmit: l, children: /* @__PURE__ */ p(Kl, { alignHorizontal: "center", children: /* @__PURE__ */ p(Fe, { span: 6, children: /* @__PURE__ */ te(Nl, { mode: "dark", children: [
7179
7179
  /* @__PURE__ */ p(Fe, { span: 12, className: "mt-7", children: i && /* @__PURE__ */ p("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: i }) }),
7180
7180
  /* @__PURE__ */ p(Fe, { span: 12, children: /* @__PURE__ */ p(
7181
7181
  Sn,
@@ -7199,7 +7199,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Fd = "{{clipboard}}", Bd =
7199
7199
  }
7200
7200
  ) }),
7201
7201
  /* @__PURE__ */ p(Fe, { span: 12, children: /* @__PURE__ */ p(
7202
- Ai,
7202
+ Ii,
7203
7203
  {
7204
7204
  className: "mt-7",
7205
7205
  required: !0,
@@ -7209,14 +7209,14 @@ Press Ctrl+Enter to send it or Enter for new line.`, Fd = "{{clipboard}}", Bd =
7209
7209
  mode: "dark",
7210
7210
  focusMode: "light",
7211
7211
  name: "password",
7212
- label: cu,
7212
+ label: lu,
7213
7213
  rightElement: /* @__PURE__ */ p(
7214
7214
  Er,
7215
7215
  {
7216
7216
  focusMode: "light",
7217
7217
  mode: "dark",
7218
7218
  label: o ? "Show" : "Hide",
7219
- children: o ? /* @__PURE__ */ p(Dl, {}) : /* @__PURE__ */ p(Pl, {})
7219
+ children: o ? /* @__PURE__ */ p($l, {}) : /* @__PURE__ */ p(xl, {})
7220
7220
  }
7221
7221
  ),
7222
7222
  onMaskChange: c,
@@ -7231,7 +7231,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Fd = "{{clipboard}}", Bd =
7231
7231
  }
7232
7232
  ) }),
7233
7233
  /* @__PURE__ */ p(Fe, { span: 12, children: /* @__PURE__ */ p(
7234
- wi,
7234
+ vi,
7235
7235
  {
7236
7236
  mode: "light",
7237
7237
  focusMode: "light",
@@ -7239,10 +7239,10 @@ Press Ctrl+Enter to send it or Enter for new line.`, Fd = "{{clipboard}}", Bd =
7239
7239
  noBorder: !0,
7240
7240
  type: "submit",
7241
7241
  className: "mt-7",
7242
- children: au
7242
+ children: ou
7243
7243
  }
7244
7244
  ) }),
7245
- !ol() && /* @__PURE__ */ te(dr, { children: [
7245
+ !cl() && /* @__PURE__ */ te(dr, { children: [
7246
7246
  /* @__PURE__ */ p(Fe, { span: 12, children: /* @__PURE__ */ p("div", { className: "text-center text-copy-light mt-2 mb-2", children: "or" }) }),
7247
7247
  /* @__PURE__ */ p(Fe, { span: 12, children: /* @__PURE__ */ p(
7248
7248
  Er,
@@ -7252,9 +7252,9 @@ Press Ctrl+Enter to send it or Enter for new line.`, Fd = "{{clipboard}}", Bd =
7252
7252
  focusMode: "light",
7253
7253
  fullWidth: !0,
7254
7254
  className: "mb-4",
7255
- labelRight: ou,
7255
+ labelRight: cu,
7256
7256
  onClick: r,
7257
- children: /* @__PURE__ */ p(xl, { size: "size-7" })
7257
+ children: /* @__PURE__ */ p(Dl, { size: "size-7" })
7258
7258
  }
7259
7259
  ) })
7260
7260
  ] })
@@ -7262,33 +7262,33 @@ Press Ctrl+Enter to send it or Enter for new line.`, Fd = "{{clipboard}}", Bd =
7262
7262
  ]
7263
7263
  }
7264
7264
  ) });
7265
- }, du = new URL(document.location.href).searchParams, Xn = !!du.get("debug") || !1, fu = Oi(() => import(
7265
+ }, fu = new URL(document.location.href).searchParams, Zn = !!fu.get("debug") || !1, hu = _i(() => import(
7266
7266
  /* webpackChunkName: "LazyApp" */
7267
- "./App.DImhDfvY.js"
7268
- ).then((e) => e.App)), hu = new Yi(), Zn = ({
7267
+ "./App.B0Dmvq_e.js"
7268
+ ).then((e) => e.App)), yu = new Xi(), es = ({
7269
7269
  isComponent: e,
7270
7270
  headerHeight: t
7271
7271
  }) => {
7272
- const { isAuthenticated: r } = mi();
7273
- return r ? /* @__PURE__ */ p(Ri, { fallback: /* @__PURE__ */ p("div", {}), children: /* @__PURE__ */ te(Zi, { client: hu, children: [
7274
- /* @__PURE__ */ p(Oo, {}),
7275
- /* @__PURE__ */ p(fu, { isComponent: e, headerHeight: t })
7276
- ] }) }) : /* @__PURE__ */ p(uu, {});
7277
- }, yu = ({
7272
+ const { isAuthenticated: r } = pi();
7273
+ return r ? /* @__PURE__ */ p(Oi, { fallback: /* @__PURE__ */ p("div", {}), children: /* @__PURE__ */ te(ea, { client: yu, children: [
7274
+ /* @__PURE__ */ p(_o, {}),
7275
+ /* @__PURE__ */ p(hu, { isComponent: e, headerHeight: t })
7276
+ ] }) }) : /* @__PURE__ */ p(du, {});
7277
+ }, mu = ({
7278
7278
  isComponent: e = !1,
7279
7279
  headerHeight: t = 0,
7280
- domain: r = sl
7281
- }) => pi ? /* @__PURE__ */ p(
7282
- Wn,
7280
+ domain: r = il
7281
+ }) => gi ? /* @__PURE__ */ p(
7282
+ Jn,
7283
7283
  {
7284
- clientId: Jn,
7284
+ clientId: zn,
7285
7285
  domain: r,
7286
- debug: Xn,
7286
+ debug: Zn,
7287
7287
  endpoint: process.env.PUBLIC_AUTH_SERVER_URL,
7288
- children: /* @__PURE__ */ p(Zn, { isComponent: e, headerHeight: t })
7288
+ children: /* @__PURE__ */ p(es, { isComponent: e, headerHeight: t })
7289
7289
  }
7290
- ) : /* @__PURE__ */ p(Wn, { clientId: Jn, domain: r, debug: Xn, children: /* @__PURE__ */ p(Zn, { isComponent: e, headerHeight: t }) }), Yd = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ p(
7291
- yu,
7290
+ ) : /* @__PURE__ */ p(Jn, { clientId: zn, domain: r, debug: Zn, children: /* @__PURE__ */ p(es, { isComponent: e, headerHeight: t }) }), Xd = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ p(
7291
+ mu,
7292
7292
  {
7293
7293
  isComponent: !0,
7294
7294
  domain: e,
@@ -7296,133 +7296,133 @@ Press Ctrl+Enter to send it or Enter for new line.`, Fd = "{{clipboard}}", Bd =
7296
7296
  }
7297
7297
  );
7298
7298
  export {
7299
- Md as ABOUT_TITLE,
7300
- od as ACTION_RESET_PROMPT,
7301
- sd as ACTION_SEARCH,
7302
- id as ACTION_SORT,
7303
- ad as ACTION_TOGGLE_PROMPT,
7304
- Wd as APP_CLASSNAME,
7305
- Ii as APP_NAME,
7306
- wi as C,
7307
- Qd as CARDS,
7308
- Fd as CLIPBOARD_PROMPT,
7309
- bd as DEFAULT_ICON_ACTION_SIZE,
7310
- Lu as Dynamic,
7311
- nd as ERROR_MESSAGE,
7312
- Bd as FOOTER_DISCLAIMER,
7313
- Ou as For,
7314
- Ld as HISTORY_TITLE,
7299
+ Ud as ABOUT_TITLE,
7300
+ cd as ACTION_RESET_PROMPT,
7301
+ id as ACTION_SEARCH,
7302
+ ad as ACTION_SORT,
7303
+ od as ACTION_TOGGLE_PROMPT,
7304
+ Jd as APP_CLASSNAME,
7305
+ ki as APP_NAME,
7306
+ vi as C,
7307
+ Yd as CARDS,
7308
+ Bd as CLIPBOARD_PROMPT,
7309
+ wd as DEFAULT_ICON_ACTION_SIZE,
7310
+ Mu as Dynamic,
7311
+ sd as ERROR_MESSAGE,
7312
+ Vd as FOOTER_DISCLAIMER,
7313
+ _u as For,
7314
+ Md as HISTORY_TITLE,
7315
7315
  Pr as I,
7316
- md as INFINITE_SCROLL_LIMIT,
7317
- yd as INFINITE_SCROLL_THRESHOLD,
7318
- Hd as INPUT_PLACEHOLDER_TEXT_CMD_ENTER,
7319
- Kd as INPUT_PLACEHOLDER_TEXT_ENTER,
7320
- Ud as INPUT_PLACEHOLDER_TEXT_MOBILE,
7321
- _u as Index,
7322
- Ul as L,
7323
- ld as LOCAL_STORAGE_CHAT_DETAILS,
7324
- cd as LOCAL_STORAGE_PREFIX,
7325
- fd as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
7326
- hd as LOCAL_STORAGE_REASONING_DISCLOSURE,
7327
- ud as LOCAL_STORAGE_SEARCH,
7328
- dd as LOCAL_STORAGE_SORT,
7329
- Pd as LOG_OUT,
7330
- lu as Logo,
7331
- Pu as Match,
7332
- Dd as PROFILE_TITLE,
7333
- Vd as PROMPTS_DESCRIPTION,
7334
- pd as PROMPT_CLASSNAME,
7335
- gd as PROMPT_EDITABLE_AREA_CLASSNAME,
7336
- $u as Portal,
7337
- rd as ROLE_INTERNAL,
7338
- Cl as S,
7339
- $d as SETTINGS_TITLE,
7340
- Yd as SassySaint,
7341
- Cu as Show,
7316
+ pd as INFINITE_SCROLL_LIMIT,
7317
+ md as INFINITE_SCROLL_THRESHOLD,
7318
+ Fd as INPUT_PLACEHOLDER_TEXT_CMD_ENTER,
7319
+ Hd as INPUT_PLACEHOLDER_TEXT_ENTER,
7320
+ Kd as INPUT_PLACEHOLDER_TEXT_MOBILE,
7321
+ Cu as Index,
7322
+ Kl as L,
7323
+ ud as LOCAL_STORAGE_CHAT_DETAILS,
7324
+ ld as LOCAL_STORAGE_PREFIX,
7325
+ hd as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
7326
+ yd as LOCAL_STORAGE_REASONING_DISCLOSURE,
7327
+ dd as LOCAL_STORAGE_SEARCH,
7328
+ fd as LOCAL_STORAGE_SORT,
7329
+ xd as LOG_OUT,
7330
+ uu as Logo,
7331
+ xu as Match,
7332
+ $d as PROFILE_TITLE,
7333
+ jd as PROMPTS_DESCRIPTION,
7334
+ gd as PROMPT_CLASSNAME,
7335
+ bd as PROMPT_EDITABLE_AREA_CLASSNAME,
7336
+ Lu as Portal,
7337
+ nd as ROLE_INTERNAL,
7338
+ Nl as S,
7339
+ Ld as SETTINGS_TITLE,
7340
+ Xd as SassySaint,
7341
+ Nu as Show,
7342
7342
  Ar as Subscribable,
7343
- Nu as Switch,
7344
- Gd as TOAST_CHAT_DELETED,
7345
- qd as TOAST_CHAT_SAVED,
7346
- jd as TOAST_PROVIDER_CHANGED,
7347
- Jd as TRIMESTERS,
7348
- zd as TRIMESTERS_SHORT,
7349
- vd as UI_BUTTON_SCROLL_BUFFER,
7350
- Ed as UI_DEFAULT_MAIN_HEIGHT,
7351
- wd as UI_FOOTER_BUFFER,
7352
- xd as USAGE_TITLE,
7353
- La as addEventListener,
7354
- Eu as batch,
7355
- $a as className,
7356
- Du as clearDelegatedEvents,
7357
- Cd as convertCamelCaseToReadable,
7358
- qu as convertRemToPixels,
7359
- ma as createComponent,
7360
- ta as createComputed,
7361
- Iu as createContext,
7362
- Ss as createEffect,
7343
+ Pu as Switch,
7344
+ qd as TOAST_CHAT_DELETED,
7345
+ Wd as TOAST_CHAT_SAVED,
7346
+ Gd as TOAST_PROVIDER_CHANGED,
7347
+ zd as TRIMESTERS,
7348
+ Qd as TRIMESTERS_SHORT,
7349
+ Ed as UI_BUTTON_SCROLL_BUFFER,
7350
+ Sd as UI_DEFAULT_MAIN_HEIGHT,
7351
+ vd as UI_FOOTER_BUFFER,
7352
+ Dd as USAGE_TITLE,
7353
+ Ma as addEventListener,
7354
+ Su as batch,
7355
+ La as className,
7356
+ $u as clearDelegatedEvents,
7357
+ Nd as convertCamelCaseToReadable,
7358
+ Wu as convertRemToPixels,
7359
+ pa as createComponent,
7360
+ ra as createComputed,
7361
+ ku as createContext,
7362
+ Ts as createEffect,
7363
7363
  W as createMemo,
7364
7364
  ze as createRenderEffect,
7365
7365
  Je as createRoot,
7366
7366
  ne as createSignal,
7367
- Ru as createUniqueId,
7368
- Od as debounce,
7369
- Pa as delegateEvents,
7367
+ Ou as createUniqueId,
7368
+ _d as debounce,
7369
+ xa as delegateEvents,
7370
7370
  er as deleteNestedDataByPath,
7371
- Vu as displayValue,
7371
+ ju as displayValue,
7372
7372
  Sn as fe,
7373
- ji as fetchState,
7374
- hs as focusManager,
7375
- Sd as getCurrentGeoLocation,
7376
- al as getMainPaddingClass,
7377
- il as getMessageContaintWrapperClass,
7378
- Fu as getMutationStatusColor,
7379
- Wu as getPreferredColorScheme,
7380
- Hu as getQueryStatusColor,
7381
- Bu as getQueryStatusColorByLabel,
7382
- Uu as getQueryStatusLabel,
7383
- Ku as getSidedProp,
7373
+ Gi as fetchState,
7374
+ ys as focusManager,
7375
+ Td as getCurrentGeoLocation,
7376
+ ol as getMainPaddingClass,
7377
+ al as getMessageContaintWrapperClass,
7378
+ Bu as getMutationStatusColor,
7379
+ Ju as getPreferredColorScheme,
7380
+ Fu as getQueryStatusColor,
7381
+ Vu as getQueryStatusColorByLabel,
7382
+ Ku as getQueryStatusLabel,
7383
+ Hu as getSidedProp,
7384
7384
  nn as insert,
7385
- ol as isElectron,
7386
- gi as isProbablyMobile,
7387
- _d as isProbablyiPhone,
7385
+ cl as isElectron,
7386
+ bi as isProbablyMobile,
7387
+ Cd as isProbablyiPhone,
7388
7388
  Ir as isServer,
7389
- Ci as isValidTimeout,
7389
+ Ni as isValidTimeout,
7390
7390
  Fe as j,
7391
- xl as l,
7391
+ Dl as l,
7392
7392
  Er as le,
7393
- ga as mergeProps,
7394
- Gu as mutationSortFns,
7395
- mi as n,
7393
+ ba as mergeProps,
7394
+ qu as mutationSortFns,
7395
+ pi as n,
7396
7396
  ce as noop,
7397
7397
  ee as notifyManager,
7398
- kd as numberFormatter,
7399
- Td as obfuscate,
7400
- Su as on,
7398
+ Rd as numberFormatter,
7399
+ Ad as obfuscate,
7400
+ Tu as on,
7401
7401
  Pt as onCleanup,
7402
- sa as onMount,
7403
- Ki as pendingThenable,
7404
- Rd as pluralize,
7405
- Ll as r,
7406
- Id as renderDataAsList,
7407
- Di as replaceData,
7408
- Pi as resolveEnabled,
7402
+ ia as onMount,
7403
+ Hi as pendingThenable,
7404
+ Od as pluralize,
7405
+ Ml as r,
7406
+ kd as renderDataAsList,
7407
+ $i as replaceData,
7408
+ xi as resolveEnabled,
7409
7409
  zr as resolveStaleTime,
7410
- Eo as serialize,
7410
+ So as serialize,
7411
7411
  rn as setAttribute,
7412
- wu as shallowEqualObjects,
7413
- vu as shouldThrowError,
7414
- ju as sortFns,
7415
- ba as splitProps,
7416
- Ka as spread,
7417
- Mu as stringify,
7418
- xu as template,
7419
- Ni as timeUntilStale,
7420
- Nd as toastOptions,
7421
- Ad as unObfuscate,
7412
+ vu as shallowEqualObjects,
7413
+ Eu as shouldThrowError,
7414
+ Gu as sortFns,
7415
+ wa as splitProps,
7416
+ Ha as spread,
7417
+ Uu as stringify,
7418
+ Du as template,
7419
+ Pi as timeUntilStale,
7420
+ Pd as toastOptions,
7421
+ Id as unObfuscate,
7422
7422
  z as untrack,
7423
7423
  Zt as updateNestedDataByPath,
7424
- Ha as use,
7425
- ku as useContext,
7426
- Xi as useQueryClient,
7427
- Au as useTransition
7424
+ Fa as use,
7425
+ Ru as useContext,
7426
+ Zi as useQueryClient,
7427
+ Iu as useTransition
7428
7428
  };