@versini/sassysaint 8.51.2 → 8.51.4
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.
- package/dist/chunks/{AboutChangelog.B0ABVcR3.js → AboutChangelog.B2iLYso-.js} +2 -2
- package/dist/chunks/{AboutEntry.RAdDgbZn.js → AboutEntry.DL_BZdug.js} +7 -7
- package/dist/chunks/{App.DgDmQxHq.js → App.DW3SEZAt.js} +1157 -1157
- package/dist/chunks/{Chart.B_BX_1VH.js → Chart.CdQAfo9V.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.BSmvB9Qm.js → ChatBubbleAssistant.DxhKLZAL.js} +4 -4
- package/dist/chunks/{ChatBubbleUser.BGMI6epr.js → ChatBubbleUser.DC7NWOu0.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.DTbD4e2c.js → ChatHistoryTable.CVkzbQuz.js} +3 -3
- package/dist/chunks/{HistoryEntry.MelXI6_h.js → HistoryEntry.BmtF-e_u.js} +3 -3
- package/dist/chunks/{ProfileEntry.DuR7Jqvj.js → ProfileEntry.DWOIDM6V.js} +2 -2
- package/dist/chunks/{SettingsEntry.Dk7dcHde.js → SettingsEntry.Ct6fw0_o.js} +4 -4
- package/dist/chunks/{Table.C8e7XxYK.js → Table.Dyhr0stY.js} +2 -2
- package/dist/chunks/{UsageEntry.DbwrcQHb.js → UsageEntry.D-rqtME4.js} +3 -3
- package/dist/chunks/{index.OS0YPTsb.js → index.0ZE51cPB.js} +2 -2
- package/dist/chunks/{index.CgMjuThc.js → index.BhNGO46c.js} +1 -1
- package/dist/chunks/{index.D9eM50ip.js → index.CQQhB39x.js} +1 -1
- package/dist/chunks/{index.bieGnvCG.js → index.CtUeiyfd.js} +1 -1
- package/dist/chunks/{index.621rkxQM.js → index.DYExcxmu.js} +1 -1
- package/dist/chunks/{index.0jy1bv0L.js → index.GUQr4N4D.js} +524 -519
- package/dist/chunks/{index.D9PVJgPe.js → index.hAxX-yEn.js} +3 -3
- package/dist/chunks/{useMarkdown.CK8DF1Jt.js → useMarkdown.C-l3MlpI.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
@@ -1,6 +1,6 @@
|
|
1
|
-
import { jsx as h, jsxs as
|
1
|
+
import { jsx as h, jsxs as q, Fragment as Ar } from "react/jsx-runtime";
|
2
2
|
import * as H from "react";
|
3
|
-
import ie, { createContext as xt, useReducer as Ir, useCallback as Y, useRef as j, useEffect as
|
3
|
+
import ie, { createContext as xt, useReducer as Ir, useCallback as Y, useRef as j, useEffect as W, useSyncExternalStore as _s, useContext as at, useState as ne, useMemo as Je, useId as Rs, useLayoutEffect as Qe, Suspense as Cs, lazy as ks } from "react";
|
4
4
|
import y from "clsx";
|
5
5
|
var Oe = class {
|
6
6
|
constructor() {
|
@@ -18,7 +18,7 @@ var Oe = class {
|
|
18
18
|
}
|
19
19
|
onUnsubscribe() {
|
20
20
|
}
|
21
|
-
},
|
21
|
+
}, Os = {
|
22
22
|
// We need the wrapper function syntax below instead of direct references to
|
23
23
|
// global setTimeout etc.
|
24
24
|
//
|
@@ -33,14 +33,14 @@ var Oe = class {
|
|
33
33
|
clearTimeout: (e) => clearTimeout(e),
|
34
34
|
setInterval: (e, t) => setInterval(e, t),
|
35
35
|
clearInterval: (e) => clearInterval(e)
|
36
|
-
},
|
36
|
+
}, Ns = class {
|
37
37
|
// We cannot have TimeoutManager<T> as we must instantiate it with a concrete
|
38
38
|
// type at app boot; and if we leave that type, then any new timer provider
|
39
39
|
// would need to support ReturnType<typeof setTimeout>, which is infeasible.
|
40
40
|
//
|
41
41
|
// We settle for type safety for the TimeoutProvider type, and accept that
|
42
42
|
// this class is unsafe internally to allow for extension.
|
43
|
-
#e =
|
43
|
+
#e = Os;
|
44
44
|
#t = !1;
|
45
45
|
setTimeoutProvider(e) {
|
46
46
|
process.env.NODE_ENV !== "production" && this.#t && e !== this.#e && console.error(
|
@@ -60,14 +60,14 @@ var Oe = class {
|
|
60
60
|
clearInterval(e) {
|
61
61
|
this.#e.clearInterval(e);
|
62
62
|
}
|
63
|
-
}, fe = new
|
64
|
-
function
|
63
|
+
}, fe = new Ns();
|
64
|
+
function Ps(e) {
|
65
65
|
setTimeout(e, 0);
|
66
66
|
}
|
67
67
|
var me = typeof window > "u" || "Deno" in globalThis;
|
68
68
|
function G() {
|
69
69
|
}
|
70
|
-
function
|
70
|
+
function $s(e, t) {
|
71
71
|
return typeof e == "function" ? e(t) : e;
|
72
72
|
}
|
73
73
|
function Tt(e) {
|
@@ -130,7 +130,7 @@ function pe(e) {
|
|
130
130
|
function xe(e, t) {
|
131
131
|
return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((r) => xe(e[r], t[r])) : !1;
|
132
132
|
}
|
133
|
-
var
|
133
|
+
var xs = Object.prototype.hasOwnProperty;
|
134
134
|
function At(e, t) {
|
135
135
|
if (e === t)
|
136
136
|
return e;
|
@@ -141,7 +141,7 @@ function At(e, t) {
|
|
141
141
|
for (let f = 0; f < i; f++) {
|
142
142
|
const d = r ? f : n[f], u = e[d], l = t[d];
|
143
143
|
if (u === l) {
|
144
|
-
o[d] = u, (r ? f < a :
|
144
|
+
o[d] = u, (r ? f < a : xs.call(e, d)) && c++;
|
145
145
|
continue;
|
146
146
|
}
|
147
147
|
if (u === null || l === null || typeof u != "object" || typeof l != "object") {
|
@@ -176,7 +176,7 @@ function It(e) {
|
|
176
176
|
function Xt(e) {
|
177
177
|
return Object.prototype.toString.call(e) === "[object Object]";
|
178
178
|
}
|
179
|
-
function
|
179
|
+
function Ds(e) {
|
180
180
|
return new Promise((t) => {
|
181
181
|
fe.setTimeout(t, e);
|
182
182
|
});
|
@@ -197,11 +197,11 @@ function _t(e, t, r) {
|
|
197
197
|
}
|
198
198
|
return t;
|
199
199
|
}
|
200
|
-
function
|
200
|
+
function Ms(e, t, r = 0) {
|
201
201
|
const s = [...e, t];
|
202
202
|
return r && s.length > r ? s.slice(1) : s;
|
203
203
|
}
|
204
|
-
function
|
204
|
+
function Ls(e, t, r = 0) {
|
205
205
|
const s = [t, ...e];
|
206
206
|
return r && s.length > r ? s.slice(0, -1) : s;
|
207
207
|
}
|
@@ -214,7 +214,7 @@ function Rr(e, t) {
|
|
214
214
|
function Cr(e, t) {
|
215
215
|
return typeof e == "function" ? e(...t) : !!e;
|
216
216
|
}
|
217
|
-
var
|
217
|
+
var Us = class extends Oe {
|
218
218
|
#e;
|
219
219
|
#t;
|
220
220
|
#r;
|
@@ -251,7 +251,7 @@ var Ls = class extends Oe {
|
|
251
251
|
isFocused() {
|
252
252
|
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
|
253
253
|
}
|
254
|
-
}, Mt = new
|
254
|
+
}, Mt = new Us();
|
255
255
|
function Rt() {
|
256
256
|
let e, t;
|
257
257
|
const r = new Promise((a, n) => {
|
@@ -274,13 +274,13 @@ function Rt() {
|
|
274
274
|
}), t(a);
|
275
275
|
}, r;
|
276
276
|
}
|
277
|
-
var
|
278
|
-
function
|
277
|
+
var Fs = Ps;
|
278
|
+
function Hs() {
|
279
279
|
let e = [], t = 0, r = (o) => {
|
280
280
|
o();
|
281
281
|
}, s = (o) => {
|
282
282
|
o();
|
283
|
-
}, a =
|
283
|
+
}, a = Fs;
|
284
284
|
const n = (o) => {
|
285
285
|
t ? e.push(o) : a(() => {
|
286
286
|
r(o);
|
@@ -334,7 +334,7 @@ function Fs() {
|
|
334
334
|
}
|
335
335
|
};
|
336
336
|
}
|
337
|
-
var $ =
|
337
|
+
var $ = Hs(), Ks = class extends Oe {
|
338
338
|
#e = !0;
|
339
339
|
#t;
|
340
340
|
#r;
|
@@ -365,8 +365,8 @@ var $ = Fs(), Hs = class extends Oe {
|
|
365
365
|
isOnline() {
|
366
366
|
return this.#e;
|
367
367
|
}
|
368
|
-
}, Xe = new
|
369
|
-
function
|
368
|
+
}, Xe = new Ks();
|
369
|
+
function Gs(e) {
|
370
370
|
return Math.min(1e3 * 2 ** e, 3e4);
|
371
371
|
}
|
372
372
|
function kr(e) {
|
@@ -411,12 +411,12 @@ function Or(e) {
|
|
411
411
|
Promise.resolve(g).then(u).catch((E) => {
|
412
412
|
if (n())
|
413
413
|
return;
|
414
|
-
const k = e.retry ?? (me ? 0 : 3), A = e.retryDelay ??
|
414
|
+
const k = e.retry ?? (me ? 0 : 3), A = e.retryDelay ?? Gs, K = typeof A == "function" ? A(r, E) : A, R = k === !0 || typeof k == "number" && r < k || typeof k == "function" && k(r, E);
|
415
415
|
if (t || !R) {
|
416
416
|
l(E);
|
417
417
|
return;
|
418
418
|
}
|
419
|
-
r++, e.onFail?.(r, E),
|
419
|
+
r++, e.onFail?.(r, E), Ds(K).then(() => f() ? void 0 : m()).then(() => {
|
420
420
|
t ? l(E) : p();
|
421
421
|
});
|
422
422
|
});
|
@@ -451,7 +451,7 @@ var Nr = class {
|
|
451
451
|
clearGcTimeout() {
|
452
452
|
this.#e && (fe.clearTimeout(this.#e), this.#e = void 0);
|
453
453
|
}
|
454
|
-
},
|
454
|
+
}, Bs = class extends Nr {
|
455
455
|
#e;
|
456
456
|
#t;
|
457
457
|
#r;
|
@@ -747,7 +747,7 @@ function Zt(e) {
|
|
747
747
|
fetchStatus: "idle"
|
748
748
|
};
|
749
749
|
}
|
750
|
-
var
|
750
|
+
var Ws = class extends Oe {
|
751
751
|
constructor(e, t) {
|
752
752
|
super(), this.options = t, this.#e = e, this.#n = null, this.#o = Rt(), this.bindMethods(), this.setOptions(t);
|
753
753
|
}
|
@@ -817,7 +817,7 @@ var Bs = class extends Oe {
|
|
817
817
|
}
|
818
818
|
getOptimisticResult(e) {
|
819
819
|
const t = this.#e.getQueryCache().build(this.#e, e), r = this.createResult(t, e);
|
820
|
-
return
|
820
|
+
return js(this, r) && (this.#s = r, this.#i = this.options, this.#a = this.#t.state), r;
|
821
821
|
}
|
822
822
|
getCurrentResult() {
|
823
823
|
return this.#s;
|
@@ -1034,7 +1034,7 @@ function tr(e, t, r, s) {
|
|
1034
1034
|
function Lt(e, t) {
|
1035
1035
|
return J(t.enabled, e) !== !1 && e.isStaleByTime(de(t.staleTime, e));
|
1036
1036
|
}
|
1037
|
-
function
|
1037
|
+
function js(e, t) {
|
1038
1038
|
return !Ye(e.getCurrentResult(), t);
|
1039
1039
|
}
|
1040
1040
|
function rr(e) {
|
@@ -1065,14 +1065,14 @@ function rr(e) {
|
|
1065
1065
|
meta: t.options.meta
|
1066
1066
|
};
|
1067
1067
|
return u(Q), Q;
|
1068
|
-
})(), A = await l(k), { maxPages: K } = t.options, R = b ?
|
1068
|
+
})(), A = await l(k), { maxPages: K } = t.options, R = b ? Ls : Ms;
|
1069
1069
|
return {
|
1070
1070
|
pages: R(p.pages, A, K),
|
1071
1071
|
pageParams: R(p.pageParams, g, K)
|
1072
1072
|
};
|
1073
1073
|
};
|
1074
1074
|
if (a && n.length) {
|
1075
|
-
const p = a === "backward", g = p ?
|
1075
|
+
const p = a === "backward", g = p ? Vs : sr, b = {
|
1076
1076
|
pages: n,
|
1077
1077
|
pageParams: i
|
1078
1078
|
}, E = g(s, b);
|
@@ -1110,10 +1110,10 @@ function sr(e, { pages: t, pageParams: r }) {
|
|
1110
1110
|
r
|
1111
1111
|
) : void 0;
|
1112
1112
|
}
|
1113
|
-
function
|
1113
|
+
function Vs(e, { pages: t, pageParams: r }) {
|
1114
1114
|
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, r[0], r) : void 0;
|
1115
1115
|
}
|
1116
|
-
var
|
1116
|
+
var Js = class extends Nr {
|
1117
1117
|
#e;
|
1118
1118
|
#t;
|
1119
1119
|
#r;
|
@@ -1303,7 +1303,7 @@ function $r() {
|
|
1303
1303
|
submittedAt: 0
|
1304
1304
|
};
|
1305
1305
|
}
|
1306
|
-
var
|
1306
|
+
var Qs = class extends Oe {
|
1307
1307
|
constructor(e = {}) {
|
1308
1308
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#r = 0;
|
1309
1309
|
}
|
@@ -1311,7 +1311,7 @@ var Js = class extends Oe {
|
|
1311
1311
|
#t;
|
1312
1312
|
#r;
|
1313
1313
|
build(e, t, r) {
|
1314
|
-
const s = new
|
1314
|
+
const s = new Js({
|
1315
1315
|
mutationCache: this,
|
1316
1316
|
mutationId: ++this.#r,
|
1317
1317
|
options: e.defaultMutationOptions(t),
|
@@ -1394,7 +1394,7 @@ var Js = class extends Oe {
|
|
1394
1394
|
function Ue(e) {
|
1395
1395
|
return e.options.scope?.id;
|
1396
1396
|
}
|
1397
|
-
var
|
1397
|
+
var Ys = class extends Oe {
|
1398
1398
|
#e;
|
1399
1399
|
#t = void 0;
|
1400
1400
|
#r;
|
@@ -1456,7 +1456,7 @@ var Qs = class extends Oe {
|
|
1456
1456
|
});
|
1457
1457
|
});
|
1458
1458
|
}
|
1459
|
-
},
|
1459
|
+
}, zs = class extends Oe {
|
1460
1460
|
constructor(e = {}) {
|
1461
1461
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
1462
1462
|
}
|
@@ -1464,7 +1464,7 @@ var Qs = class extends Oe {
|
|
1464
1464
|
build(e, t, r) {
|
1465
1465
|
const s = t.queryKey, a = t.queryHash ?? Dt(s, t);
|
1466
1466
|
let n = this.get(a);
|
1467
|
-
return n || (n = new
|
1467
|
+
return n || (n = new Bs({
|
1468
1468
|
client: e,
|
1469
1469
|
queryKey: s,
|
1470
1470
|
queryHash: a,
|
@@ -1527,7 +1527,7 @@ var Qs = class extends Oe {
|
|
1527
1527
|
});
|
1528
1528
|
});
|
1529
1529
|
}
|
1530
|
-
},
|
1530
|
+
}, Xs = class {
|
1531
1531
|
#e;
|
1532
1532
|
#t;
|
1533
1533
|
#r;
|
@@ -1537,7 +1537,7 @@ var Qs = class extends Oe {
|
|
1537
1537
|
#o;
|
1538
1538
|
#n;
|
1539
1539
|
constructor(e = {}) {
|
1540
|
-
this.#e = e.queryCache || new
|
1540
|
+
this.#e = e.queryCache || new zs(), this.#t = e.mutationCache || new Qs(), this.#r = e.defaultOptions || {}, this.#s = /* @__PURE__ */ new Map(), this.#a = /* @__PURE__ */ new Map(), this.#i = 0;
|
1541
1541
|
}
|
1542
1542
|
mount() {
|
1543
1543
|
this.#i++, this.#i === 1 && (this.#o = Mt.subscribe(async (e) => {
|
@@ -1579,7 +1579,7 @@ var Qs = class extends Oe {
|
|
1579
1579
|
setQueryData(e, t, r) {
|
1580
1580
|
const s = this.defaultQueryOptions({ queryKey: e }), n = this.#e.get(
|
1581
1581
|
s.queryHash
|
1582
|
-
)?.state.data, i =
|
1582
|
+
)?.state.data, i = $s(t, n);
|
1583
1583
|
if (i !== void 0)
|
1584
1584
|
return this.#e.build(this, s).setData(i, { ...r, manual: !0 });
|
1585
1585
|
}
|
@@ -1737,13 +1737,13 @@ var Qs = class extends Oe {
|
|
1737
1737
|
if (!t)
|
1738
1738
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
1739
1739
|
return t;
|
1740
|
-
},
|
1740
|
+
}, Zs = ({
|
1741
1741
|
client: e,
|
1742
1742
|
children: t
|
1743
1743
|
}) => (H.useEffect(() => (e.mount(), () => {
|
1744
1744
|
e.unmount();
|
1745
|
-
}), [e]), /* @__PURE__ */ h(xr.Provider, { value: e, children: t })),
|
1746
|
-
function
|
1745
|
+
}), [e]), /* @__PURE__ */ h(xr.Provider, { value: e, children: t })), ea = H.createContext(!1), ta = () => H.useContext(ea);
|
1746
|
+
function ra() {
|
1747
1747
|
let e = !1;
|
1748
1748
|
return {
|
1749
1749
|
clearReset: () => {
|
@@ -1755,19 +1755,19 @@ function ta() {
|
|
1755
1755
|
isReset: () => e
|
1756
1756
|
};
|
1757
1757
|
}
|
1758
|
-
var
|
1758
|
+
var sa = H.createContext(ra()), aa = () => H.useContext(sa), na = (e, t) => {
|
1759
1759
|
(e.suspense || e.throwOnError || e.experimental_prefetchInRender) && (t.isReset() || (e.retryOnMount = !1));
|
1760
|
-
},
|
1760
|
+
}, ia = (e) => {
|
1761
1761
|
H.useEffect(() => {
|
1762
1762
|
e.clearReset();
|
1763
1763
|
}, [e]);
|
1764
|
-
},
|
1764
|
+
}, oa = ({
|
1765
1765
|
result: e,
|
1766
1766
|
errorResetBoundary: t,
|
1767
1767
|
throwOnError: r,
|
1768
1768
|
query: s,
|
1769
1769
|
suspense: a
|
1770
|
-
}) => e.isError && !t.isReset() && !e.isFetching && s && (a && e.data === void 0 || Cr(r, [e.error, s])),
|
1770
|
+
}) => e.isError && !t.isReset() && !e.isFetching && s && (a && e.data === void 0 || Cr(r, [e.error, s])), ca = (e) => {
|
1771
1771
|
if (e.suspense) {
|
1772
1772
|
const r = (a) => a === "static" ? a : Math.max(a ?? 1e3, 1e3), s = e.staleTime;
|
1773
1773
|
e.staleTime = typeof s == "function" ? (...a) => r(s(...a)) : r(s), typeof e.gcTime == "number" && (e.gcTime = Math.max(
|
@@ -1775,20 +1775,20 @@ var ra = H.createContext(ta()), sa = () => H.useContext(ra), aa = (e, t) => {
|
|
1775
1775
|
1e3
|
1776
1776
|
));
|
1777
1777
|
}
|
1778
|
-
},
|
1778
|
+
}, la = (e, t) => e.isLoading && e.isFetching && !t, ua = (e, t) => e?.suspense && t.isPending, ar = (e, t, r) => t.fetchOptimistic(e).catch(() => {
|
1779
1779
|
r.clearReset();
|
1780
1780
|
});
|
1781
|
-
function
|
1781
|
+
function da(e, t, r) {
|
1782
1782
|
if (process.env.NODE_ENV !== "production" && (typeof e != "object" || Array.isArray(e)))
|
1783
1783
|
throw new Error(
|
1784
1784
|
'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
|
1785
1785
|
);
|
1786
|
-
const s =
|
1786
|
+
const s = ta(), a = aa(), n = nt(), i = n.defaultQueryOptions(e);
|
1787
1787
|
n.getDefaultOptions().queries?._experimental_beforeQuery?.(
|
1788
1788
|
i
|
1789
1789
|
), process.env.NODE_ENV !== "production" && (i.queryFn || console.error(
|
1790
1790
|
`[${i.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
|
1791
|
-
)), i._optimisticResults = s ? "isRestoring" : "optimistic",
|
1791
|
+
)), i._optimisticResults = s ? "isRestoring" : "optimistic", ca(i), na(i, a), ia(a);
|
1792
1792
|
const o = !n.getQueryCache().get(i.queryHash), [c] = H.useState(
|
1793
1793
|
() => new t(
|
1794
1794
|
n,
|
@@ -1807,9 +1807,9 @@ function ua(e, t, r) {
|
|
1807
1807
|
() => c.getCurrentResult()
|
1808
1808
|
), H.useEffect(() => {
|
1809
1809
|
c.setOptions(i);
|
1810
|
-
}, [i, c]),
|
1810
|
+
}, [i, c]), ua(i, f))
|
1811
1811
|
throw ar(i, c, a);
|
1812
|
-
if (
|
1812
|
+
if (oa({
|
1813
1813
|
result: f,
|
1814
1814
|
errorResetBoundary: a,
|
1815
1815
|
throwOnError: i.throwOnError,
|
@@ -1820,7 +1820,7 @@ function ua(e, t, r) {
|
|
1820
1820
|
return n.getDefaultOptions().queries?._experimental_afterQuery?.(
|
1821
1821
|
i,
|
1822
1822
|
f
|
1823
|
-
), i.experimental_prefetchInRender && !me &&
|
1823
|
+
), i.experimental_prefetchInRender && !me && la(f, s) && (o ? (
|
1824
1824
|
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
1825
1825
|
ar(i, c, a)
|
1826
1826
|
) : (
|
@@ -1831,11 +1831,11 @@ function ua(e, t, r) {
|
|
1831
1831
|
}), i.notifyOnChangeProps ? f : c.trackResult(f);
|
1832
1832
|
}
|
1833
1833
|
function ye(e, t) {
|
1834
|
-
return
|
1834
|
+
return da(e, Ws);
|
1835
1835
|
}
|
1836
1836
|
function Dr(e, t) {
|
1837
1837
|
const r = nt(), [s] = H.useState(
|
1838
|
-
() => new
|
1838
|
+
() => new Ys(
|
1839
1839
|
r,
|
1840
1840
|
e
|
1841
1841
|
)
|
@@ -1887,7 +1887,7 @@ const Pe = {
|
|
1887
1887
|
NONCE_KEY: "_nonce",
|
1888
1888
|
AUTH_TYPE_KEY: "auth_type",
|
1889
1889
|
ISSUER: "gizmette.com"
|
1890
|
-
},
|
1890
|
+
}, ha = `-----BEGIN PUBLIC KEY-----
|
1891
1891
|
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsF6i3Jd9fY/3COqCw/m7
|
1892
1892
|
w5PKyTYLGAI2I6SIIdpe6i6DOCbEkmDz7LdVsBqwNtVi8gvWYIj+8ol6rU3qu1v5
|
1893
1893
|
i1Jd45GSK4kzkVdgCmQZbM5ak0KI99q5wsrAIzUd+LRJ2HRvWtr5IYdsIiXaQjle
|
@@ -1901,7 +1901,7 @@ awIDAQAB
|
|
1901
1901
|
LOGIN: "login",
|
1902
1902
|
REFRESH: "refresh"
|
1903
1903
|
}, Fe = new TextEncoder(), Ce = new TextDecoder();
|
1904
|
-
function
|
1904
|
+
function fa(...e) {
|
1905
1905
|
const t = e.reduce((a, { length: n }) => a + n, 0), r = new Uint8Array(t);
|
1906
1906
|
let s = 0;
|
1907
1907
|
for (const a of e)
|
@@ -1953,7 +1953,7 @@ let ge = class extends Error {
|
|
1953
1953
|
constructor(t, r, s = "unspecified", a = "unspecified") {
|
1954
1954
|
super(t, { cause: { claim: s, reason: a, payload: r } }), this.claim = s, this.reason = a, this.payload = r;
|
1955
1955
|
}
|
1956
|
-
},
|
1956
|
+
}, ma = class extends ge {
|
1957
1957
|
static code = "ERR_JOSE_ALG_NOT_ALLOWED";
|
1958
1958
|
code = "ERR_JOSE_ALG_NOT_ALLOWED";
|
1959
1959
|
}, ae = class extends ge {
|
@@ -1968,7 +1968,7 @@ let re = class extends ge {
|
|
1968
1968
|
static code = "ERR_JWT_INVALID";
|
1969
1969
|
code = "ERR_JWT_INVALID";
|
1970
1970
|
};
|
1971
|
-
class
|
1971
|
+
class pa extends ge {
|
1972
1972
|
static code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
|
1973
1973
|
code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
|
1974
1974
|
constructor(t = "signature verification failed", r) {
|
@@ -1984,7 +1984,7 @@ function Se(e, t) {
|
|
1984
1984
|
function ut(e) {
|
1985
1985
|
return parseInt(e.name.slice(4), 10);
|
1986
1986
|
}
|
1987
|
-
function
|
1987
|
+
function ya(e) {
|
1988
1988
|
switch (e) {
|
1989
1989
|
case "ES256":
|
1990
1990
|
return "P-256";
|
@@ -1996,11 +1996,11 @@ function pa(e) {
|
|
1996
1996
|
throw new Error("unreachable");
|
1997
1997
|
}
|
1998
1998
|
}
|
1999
|
-
function
|
1999
|
+
function ga(e, t) {
|
2000
2000
|
if (!e.usages.includes(t))
|
2001
2001
|
throw new TypeError(`CryptoKey does not support this operation, its usages must include ${t}.`);
|
2002
2002
|
}
|
2003
|
-
function
|
2003
|
+
function ba(e, t, r) {
|
2004
2004
|
switch (t) {
|
2005
2005
|
case "HS256":
|
2006
2006
|
case "HS384":
|
@@ -2050,7 +2050,7 @@ function ga(e, t, r) {
|
|
2050
2050
|
case "ES512": {
|
2051
2051
|
if (!Se(e.algorithm, "ECDSA"))
|
2052
2052
|
throw X("ECDSA");
|
2053
|
-
const s =
|
2053
|
+
const s = ya(t);
|
2054
2054
|
if (e.algorithm.namedCurve !== s)
|
2055
2055
|
throw X(s, "algorithm.namedCurve");
|
2056
2056
|
break;
|
@@ -2058,7 +2058,7 @@ function ga(e, t, r) {
|
|
2058
2058
|
default:
|
2059
2059
|
throw new TypeError("CryptoKey does not support this operation");
|
2060
2060
|
}
|
2061
|
-
|
2061
|
+
ga(e, r);
|
2062
2062
|
}
|
2063
2063
|
function Ur(e, t, ...r) {
|
2064
2064
|
if (r = r.filter(Boolean), r.length > 2) {
|
@@ -2067,7 +2067,7 @@ function Ur(e, t, ...r) {
|
|
2067
2067
|
} else r.length === 2 ? e += `one of type ${r[0]} or ${r[1]}.` : e += `of type ${r[0]}.`;
|
2068
2068
|
return t == null ? e += ` Received ${t}` : typeof t == "function" && t.name ? e += ` Received function ${t.name}` : typeof t == "object" && t != null && t.constructor?.name && (e += ` Received an instance of ${t.constructor.name}`), e;
|
2069
2069
|
}
|
2070
|
-
const
|
2070
|
+
const Ea = (e, ...t) => Ur("Key must be ", e, ...t);
|
2071
2071
|
function Fr(e, t, ...r) {
|
2072
2072
|
return Ur(`Key for the ${e} algorithm must be `, t, ...r);
|
2073
2073
|
}
|
@@ -2077,7 +2077,7 @@ function Hr(e) {
|
|
2077
2077
|
function Kr(e) {
|
2078
2078
|
return e?.[Symbol.toStringTag] === "KeyObject";
|
2079
2079
|
}
|
2080
|
-
const Gr = (e) => Hr(e) || Kr(e),
|
2080
|
+
const Gr = (e) => Hr(e) || Kr(e), wa = (...e) => {
|
2081
2081
|
const t = e.filter(Boolean);
|
2082
2082
|
if (t.length === 0 || t.length === 1)
|
2083
2083
|
return !0;
|
@@ -2096,11 +2096,11 @@ const Gr = (e) => Hr(e) || Kr(e), Ea = (...e) => {
|
|
2096
2096
|
}
|
2097
2097
|
return !0;
|
2098
2098
|
};
|
2099
|
-
function
|
2099
|
+
function Sa(e) {
|
2100
2100
|
return typeof e == "object" && e !== null;
|
2101
2101
|
}
|
2102
2102
|
const De = (e) => {
|
2103
|
-
if (!
|
2103
|
+
if (!Sa(e) || Object.prototype.toString.call(e) !== "[object Object]")
|
2104
2104
|
return !1;
|
2105
2105
|
if (Object.getPrototypeOf(e) === null)
|
2106
2106
|
return !0;
|
@@ -2108,7 +2108,7 @@ const De = (e) => {
|
|
2108
2108
|
for (; Object.getPrototypeOf(t) !== null; )
|
2109
2109
|
t = Object.getPrototypeOf(t);
|
2110
2110
|
return Object.getPrototypeOf(e) === t;
|
2111
|
-
},
|
2111
|
+
}, va = (e, t) => {
|
2112
2112
|
if (e.startsWith("RS") || e.startsWith("PS")) {
|
2113
2113
|
const { modulusLength: r } = t.algorithm;
|
2114
2114
|
if (typeof r != "number" || r < 2048)
|
@@ -2121,7 +2121,7 @@ const De = (e) => {
|
|
2121
2121
|
if (e[r] !== t[r])
|
2122
2122
|
return !1;
|
2123
2123
|
return !0;
|
2124
|
-
},
|
2124
|
+
}, Ta = (e) => ({ data: e, pos: 0 }), Ze = (e) => {
|
2125
2125
|
const t = e.data[e.pos++];
|
2126
2126
|
if (t & 128) {
|
2127
2127
|
const r = t & 127;
|
@@ -2137,18 +2137,18 @@ const De = (e) => {
|
|
2137
2137
|
}, Br = (e, t) => {
|
2138
2138
|
const r = e.data.subarray(e.pos, e.pos + t);
|
2139
2139
|
return e.pos += t, r;
|
2140
|
-
},
|
2140
|
+
}, Aa = (e) => {
|
2141
2141
|
et(e, 6, "Expected algorithm OID");
|
2142
2142
|
const t = Ze(e);
|
2143
2143
|
return Br(e, t);
|
2144
2144
|
};
|
2145
|
-
function
|
2145
|
+
function Ia(e) {
|
2146
2146
|
et(e, 48, "Invalid SPKI structure"), Ze(e), et(e, 48, "Expected algorithm identifier");
|
2147
2147
|
const t = Ze(e);
|
2148
2148
|
return { algIdStart: e.pos, algIdLength: t };
|
2149
2149
|
}
|
2150
|
-
const
|
2151
|
-
const t =
|
2150
|
+
const _a = (e) => {
|
2151
|
+
const t = Aa(e);
|
2152
2152
|
if (dt(t, [43, 101, 110]))
|
2153
2153
|
return "X25519";
|
2154
2154
|
if (!dt(t, [42, 134, 72, 206, 61, 2, 1]))
|
@@ -2163,7 +2163,7 @@ const Ia = (e) => {
|
|
2163
2163
|
if (dt(s, n))
|
2164
2164
|
return a;
|
2165
2165
|
throw new Error("Unsupported named curve");
|
2166
|
-
},
|
2166
|
+
}, Ra = async (e, t, r, s) => {
|
2167
2167
|
let a, n;
|
2168
2168
|
const i = () => ["verify"], o = () => ["encrypt", "wrapKey"];
|
2169
2169
|
switch (r) {
|
@@ -2218,15 +2218,15 @@ const Ia = (e) => {
|
|
2218
2218
|
throw new ae('Invalid or unsupported "alg" (Algorithm) value');
|
2219
2219
|
}
|
2220
2220
|
return crypto.subtle.importKey(e, t, a, s?.extractable ?? !0, n);
|
2221
|
-
},
|
2222
|
-
const s =
|
2221
|
+
}, Ca = (e, t) => Lr(e.replace(t, "")), ka = (e, t, r) => {
|
2222
|
+
const s = Ca(e, /(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g);
|
2223
2223
|
let a = r;
|
2224
2224
|
return t?.startsWith?.("ECDH-ES") && (a ||= {}, a.getNamedCurve = (n) => {
|
2225
|
-
const i =
|
2226
|
-
return
|
2227
|
-
}),
|
2225
|
+
const i = Ta(n);
|
2226
|
+
return Ia(i), _a(i);
|
2227
|
+
}), Ra("spki", s, t, a);
|
2228
2228
|
};
|
2229
|
-
function
|
2229
|
+
function Oa(e) {
|
2230
2230
|
let t, r;
|
2231
2231
|
switch (e.kty) {
|
2232
2232
|
case "AKP": {
|
@@ -2311,18 +2311,18 @@ function ka(e) {
|
|
2311
2311
|
}
|
2312
2312
|
return { algorithm: t, keyUsages: r };
|
2313
2313
|
}
|
2314
|
-
const
|
2314
|
+
const Na = async (e) => {
|
2315
2315
|
if (!e.alg)
|
2316
2316
|
throw new TypeError('"alg" argument is required when "jwk.alg" is not present');
|
2317
|
-
const { algorithm: t, keyUsages: r } =
|
2317
|
+
const { algorithm: t, keyUsages: r } = Oa(e), s = { ...e };
|
2318
2318
|
return s.kty !== "AKP" && delete s.alg, delete s.use, crypto.subtle.importKey("jwk", s, t, e.ext ?? !(e.d || e.priv), e.key_ops ?? r);
|
2319
2319
|
};
|
2320
|
-
async function
|
2320
|
+
async function Pa(e, t, r) {
|
2321
2321
|
if (e.indexOf("-----BEGIN PUBLIC KEY-----") !== 0)
|
2322
2322
|
throw new TypeError('"spki" must be SPKI formatted string');
|
2323
|
-
return
|
2323
|
+
return ka(e, t, r);
|
2324
2324
|
}
|
2325
|
-
const
|
2325
|
+
const $a = (e, t, r, s, a) => {
|
2326
2326
|
if (a.crit !== void 0 && s?.crit === void 0)
|
2327
2327
|
throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');
|
2328
2328
|
if (!s || s.crit === void 0)
|
@@ -2340,7 +2340,7 @@ const Pa = (e, t, r, s, a) => {
|
|
2340
2340
|
throw new e(`Extension Header Parameter "${i}" MUST be integrity protected`);
|
2341
2341
|
}
|
2342
2342
|
return new Set(s.crit);
|
2343
|
-
},
|
2343
|
+
}, xa = (e, t) => {
|
2344
2344
|
if (t !== void 0 && (!Array.isArray(t) || t.some((r) => typeof r != "string")))
|
2345
2345
|
throw new TypeError(`"${e}" option must be an array of strings`);
|
2346
2346
|
if (t)
|
@@ -2349,13 +2349,13 @@ const Pa = (e, t, r, s, a) => {
|
|
2349
2349
|
function Ut(e) {
|
2350
2350
|
return De(e) && typeof e.kty == "string";
|
2351
2351
|
}
|
2352
|
-
function
|
2352
|
+
function Da(e) {
|
2353
2353
|
return e.kty !== "oct" && (e.kty === "AKP" && typeof e.priv == "string" || typeof e.d == "string");
|
2354
2354
|
}
|
2355
|
-
function
|
2355
|
+
function Ma(e) {
|
2356
2356
|
return e.kty !== "oct" && typeof e.d > "u" && typeof e.priv > "u";
|
2357
2357
|
}
|
2358
|
-
function
|
2358
|
+
function La(e) {
|
2359
2359
|
return e.kty === "oct" && typeof e.k == "string";
|
2360
2360
|
}
|
2361
2361
|
let Re;
|
@@ -2364,9 +2364,9 @@ const ir = async (e, t, r, s = !1) => {
|
|
2364
2364
|
let a = Re.get(e);
|
2365
2365
|
if (a?.[r])
|
2366
2366
|
return a[r];
|
2367
|
-
const n = await
|
2367
|
+
const n = await Na({ ...t, alg: r });
|
2368
2368
|
return s && Object.freeze(e), a ? a[r] = n : Re.set(e, { [r]: n }), n;
|
2369
|
-
},
|
2369
|
+
}, Ua = (e, t) => {
|
2370
2370
|
Re ||= /* @__PURE__ */ new WeakMap();
|
2371
2371
|
let r = Re.get(e);
|
2372
2372
|
if (r?.[t])
|
@@ -2462,7 +2462,7 @@ const ir = async (e, t, r, s = !1) => {
|
|
2462
2462
|
if (!n)
|
2463
2463
|
throw new TypeError("given KeyObject instance cannot be used for this algorithm");
|
2464
2464
|
return r ? r[t] = n : Re.set(e, { [t]: n }), n;
|
2465
|
-
},
|
2465
|
+
}, Fa = async (e, t) => {
|
2466
2466
|
if (e instanceof Uint8Array || Hr(e))
|
2467
2467
|
return e;
|
2468
2468
|
if (Kr(e)) {
|
@@ -2470,7 +2470,7 @@ const ir = async (e, t, r, s = !1) => {
|
|
2470
2470
|
return e.export();
|
2471
2471
|
if ("toCryptoKey" in e && typeof e.toCryptoKey == "function")
|
2472
2472
|
try {
|
2473
|
-
return
|
2473
|
+
return Ua(e, t);
|
2474
2474
|
} catch (s) {
|
2475
2475
|
if (s instanceof TypeError)
|
2476
2476
|
throw s;
|
@@ -2524,10 +2524,10 @@ const ir = async (e, t, r, s = !1) => {
|
|
2524
2524
|
throw new TypeError(`Invalid key for this operation, its "key_ops" must include "${s}" when present`);
|
2525
2525
|
}
|
2526
2526
|
return !0;
|
2527
|
-
},
|
2527
|
+
}, Ha = (e, t, r) => {
|
2528
2528
|
if (!(t instanceof Uint8Array)) {
|
2529
2529
|
if (Ut(t)) {
|
2530
|
-
if (
|
2530
|
+
if (La(t) && Ot(e, t, r))
|
2531
2531
|
return;
|
2532
2532
|
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');
|
2533
2533
|
}
|
@@ -2536,17 +2536,17 @@ const ir = async (e, t, r, s = !1) => {
|
|
2536
2536
|
if (t.type !== "secret")
|
2537
2537
|
throw new TypeError(`${_e(t)} instances for symmetric algorithms must be of type "secret"`);
|
2538
2538
|
}
|
2539
|
-
},
|
2539
|
+
}, Ka = (e, t, r) => {
|
2540
2540
|
if (Ut(t))
|
2541
2541
|
switch (r) {
|
2542
2542
|
case "decrypt":
|
2543
2543
|
case "sign":
|
2544
|
-
if (
|
2544
|
+
if (Da(t) && Ot(e, t, r))
|
2545
2545
|
return;
|
2546
2546
|
throw new TypeError("JSON Web Key for this operation be a private JWK");
|
2547
2547
|
case "encrypt":
|
2548
2548
|
case "verify":
|
2549
|
-
if (
|
2549
|
+
if (Ma(t) && Ot(e, t, r))
|
2550
2550
|
return;
|
2551
2551
|
throw new TypeError("JSON Web Key for this operation be a public JWK");
|
2552
2552
|
}
|
@@ -2568,9 +2568,9 @@ const ir = async (e, t, r, s = !1) => {
|
|
2568
2568
|
case "encrypt":
|
2569
2569
|
throw new TypeError(`${_e(t)} instances for asymmetric algorithm encryption must be of type "public"`);
|
2570
2570
|
}
|
2571
|
-
},
|
2572
|
-
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) ?
|
2573
|
-
},
|
2571
|
+
}, Ga = (e, t, r) => {
|
2572
|
+
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) ? Ha(e, t, r) : Ka(e, t, r);
|
2573
|
+
}, Ba = (e, t) => {
|
2574
2574
|
const r = `SHA-${e.slice(-3)}`;
|
2575
2575
|
switch (e) {
|
2576
2576
|
case "HS256":
|
@@ -2599,24 +2599,24 @@ const ir = async (e, t, r, s = !1) => {
|
|
2599
2599
|
default:
|
2600
2600
|
throw new ae(`alg ${e} is not supported either by JOSE or your javascript runtime`);
|
2601
2601
|
}
|
2602
|
-
},
|
2602
|
+
}, Wa = async (e, t, r) => {
|
2603
2603
|
if (t instanceof Uint8Array) {
|
2604
2604
|
if (!e.startsWith("HS"))
|
2605
|
-
throw new TypeError(
|
2605
|
+
throw new TypeError(Ea(t, "CryptoKey", "KeyObject", "JSON Web Key"));
|
2606
2606
|
return crypto.subtle.importKey("raw", t, { hash: `SHA-${e.slice(-3)}`, name: "HMAC" }, !1, [r]);
|
2607
2607
|
}
|
2608
|
-
return
|
2608
|
+
return ba(t, e, r), t;
|
2609
2609
|
}, qa = async (e, t, r, s) => {
|
2610
|
-
const a = await
|
2611
|
-
|
2612
|
-
const n =
|
2610
|
+
const a = await Wa(e, t, "verify");
|
2611
|
+
va(e, a);
|
2612
|
+
const n = Ba(e, a.algorithm);
|
2613
2613
|
try {
|
2614
2614
|
return await crypto.subtle.verify(n, a, r, s);
|
2615
2615
|
} catch {
|
2616
2616
|
return !1;
|
2617
2617
|
}
|
2618
2618
|
};
|
2619
|
-
async function
|
2619
|
+
async function ja(e, t, r) {
|
2620
2620
|
if (!De(e))
|
2621
2621
|
throw new L("Flattened JWS must be an object");
|
2622
2622
|
if (e.protected === void 0 && e.header === void 0)
|
@@ -2637,38 +2637,38 @@ async function Wa(e, t, r) {
|
|
2637
2637
|
} catch {
|
2638
2638
|
throw new L("JWS Protected Header is invalid");
|
2639
2639
|
}
|
2640
|
-
if (!
|
2640
|
+
if (!wa(s, e.header))
|
2641
2641
|
throw new L("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
|
2642
2642
|
const a = {
|
2643
2643
|
...s,
|
2644
2644
|
...e.header
|
2645
|
-
}, n =
|
2645
|
+
}, n = $a(L, /* @__PURE__ */ new Map([["b64", !0]]), r?.crit, s, a);
|
2646
2646
|
let i = !0;
|
2647
2647
|
if (n.has("b64") && (i = s.b64, typeof i != "boolean"))
|
2648
2648
|
throw new L('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
|
2649
2649
|
const { alg: o } = a;
|
2650
2650
|
if (typeof o != "string" || !o)
|
2651
2651
|
throw new L('JWS "alg" (Algorithm) Header Parameter missing or invalid');
|
2652
|
-
const c = r &&
|
2652
|
+
const c = r && xa("algorithms", r.algorithms);
|
2653
2653
|
if (c && !c.has(o))
|
2654
|
-
throw new
|
2654
|
+
throw new ma('"alg" (Algorithm) Header Parameter value not allowed');
|
2655
2655
|
if (i) {
|
2656
2656
|
if (typeof e.payload != "string")
|
2657
2657
|
throw new L("JWS Payload must be a string");
|
2658
2658
|
} else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
|
2659
2659
|
throw new L("JWS Payload must be a string or an Uint8Array instance");
|
2660
2660
|
let f = !1;
|
2661
|
-
typeof t == "function" && (t = await t(s, e), f = !0),
|
2662
|
-
const d =
|
2661
|
+
typeof t == "function" && (t = await t(s, e), f = !0), Ga(o, t, "verify");
|
2662
|
+
const d = fa(Fe.encode(e.protected ?? ""), Fe.encode("."), typeof e.payload == "string" ? Fe.encode(e.payload) : e.payload);
|
2663
2663
|
let u;
|
2664
2664
|
try {
|
2665
2665
|
u = $e(e.signature);
|
2666
2666
|
} catch {
|
2667
2667
|
throw new L("Failed to base64url decode the signature");
|
2668
2668
|
}
|
2669
|
-
const l = await
|
2669
|
+
const l = await Fa(t, o);
|
2670
2670
|
if (!await qa(o, l, u, d))
|
2671
|
-
throw new
|
2671
|
+
throw new pa();
|
2672
2672
|
let m;
|
2673
2673
|
if (i)
|
2674
2674
|
try {
|
@@ -2680,17 +2680,17 @@ async function Wa(e, t, r) {
|
|
2680
2680
|
const p = { payload: m };
|
2681
2681
|
return e.protected !== void 0 && (p.protectedHeader = s), e.header !== void 0 && (p.unprotectedHeader = e.header), f ? { ...p, key: l } : p;
|
2682
2682
|
}
|
2683
|
-
async function
|
2683
|
+
async function Va(e, t, r) {
|
2684
2684
|
if (e instanceof Uint8Array && (e = Ce.decode(e)), typeof e != "string")
|
2685
2685
|
throw new L("Compact JWS must be a string or Uint8Array");
|
2686
2686
|
const { 0: s, 1: a, 2: n, length: i } = e.split(".");
|
2687
2687
|
if (i !== 3)
|
2688
2688
|
throw new L("Invalid Compact JWS");
|
2689
|
-
const o = await
|
2689
|
+
const o = await ja({ payload: a, protected: s, signature: n }, t, r), c = { payload: o.payload, protectedHeader: o.protectedHeader };
|
2690
2690
|
return typeof t == "function" ? { ...c, key: o.key } : c;
|
2691
2691
|
}
|
2692
|
-
const
|
2693
|
-
const t =
|
2692
|
+
const Ja = (e) => Math.floor(e.getTime() / 1e3), Wr = 60, qr = Wr * 60, Ft = qr * 24, Qa = Ft * 7, Ya = Ft * 365.25, za = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, or = (e) => {
|
2693
|
+
const t = za.exec(e);
|
2694
2694
|
if (!t || t[4] && t[1])
|
2695
2695
|
throw new TypeError("Invalid time period format");
|
2696
2696
|
const r = parseFloat(t[2]), s = t[3].toLowerCase();
|
@@ -2708,14 +2708,14 @@ const Va = (e) => Math.floor(e.getTime() / 1e3), qr = 60, Wr = qr * 60, Ft = Wr
|
|
2708
2708
|
case "min":
|
2709
2709
|
case "mins":
|
2710
2710
|
case "m":
|
2711
|
-
a = Math.round(r *
|
2711
|
+
a = Math.round(r * Wr);
|
2712
2712
|
break;
|
2713
2713
|
case "hour":
|
2714
2714
|
case "hours":
|
2715
2715
|
case "hr":
|
2716
2716
|
case "hrs":
|
2717
2717
|
case "h":
|
2718
|
-
a = Math.round(r *
|
2718
|
+
a = Math.round(r * qr);
|
2719
2719
|
break;
|
2720
2720
|
case "day":
|
2721
2721
|
case "days":
|
@@ -2725,15 +2725,15 @@ const Va = (e) => Math.floor(e.getTime() / 1e3), qr = 60, Wr = qr * 60, Ft = Wr
|
|
2725
2725
|
case "week":
|
2726
2726
|
case "weeks":
|
2727
2727
|
case "w":
|
2728
|
-
a = Math.round(r *
|
2728
|
+
a = Math.round(r * Qa);
|
2729
2729
|
break;
|
2730
2730
|
default:
|
2731
|
-
a = Math.round(r *
|
2731
|
+
a = Math.round(r * Ya);
|
2732
2732
|
break;
|
2733
2733
|
}
|
2734
2734
|
return t[1] === "-" || t[4] === "ago" ? -a : a;
|
2735
|
-
}, cr = (e) => e.includes("/") ? e.toLowerCase() : `application/${e.toLowerCase()}`,
|
2736
|
-
function
|
2735
|
+
}, cr = (e) => e.includes("/") ? e.toLowerCase() : `application/${e.toLowerCase()}`, Xa = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
|
2736
|
+
function Za(e, t, r = {}) {
|
2737
2737
|
let s;
|
2738
2738
|
try {
|
2739
2739
|
s = JSON.parse(Ce.decode(t));
|
@@ -2753,7 +2753,7 @@ function Xa(e, t, r = {}) {
|
|
2753
2753
|
throw new z('unexpected "iss" claim value', s, "iss", "check_failed");
|
2754
2754
|
if (o && s.sub !== o)
|
2755
2755
|
throw new z('unexpected "sub" claim value', s, "sub", "check_failed");
|
2756
|
-
if (c && !
|
2756
|
+
if (c && !Xa(s.aud, typeof c == "string" ? [c] : c))
|
2757
2757
|
throw new z('unexpected "aud" claim value', s, "aud", "check_failed");
|
2758
2758
|
let u;
|
2759
2759
|
switch (typeof r.clockTolerance) {
|
@@ -2769,7 +2769,7 @@ function Xa(e, t, r = {}) {
|
|
2769
2769
|
default:
|
2770
2770
|
throw new TypeError("Invalid clockTolerance option type");
|
2771
2771
|
}
|
2772
|
-
const { currentDate: l } = r, m =
|
2772
|
+
const { currentDate: l } = r, m = Ja(l || /* @__PURE__ */ new Date());
|
2773
2773
|
if ((s.iat !== void 0 || f) && typeof s.iat != "number")
|
2774
2774
|
throw new z('"iat" claim must be a number', s, "iat", "invalid");
|
2775
2775
|
if (s.nbf !== void 0) {
|
@@ -2793,14 +2793,14 @@ function Xa(e, t, r = {}) {
|
|
2793
2793
|
}
|
2794
2794
|
return s;
|
2795
2795
|
}
|
2796
|
-
async function
|
2797
|
-
const s = await
|
2796
|
+
async function en(e, t, r) {
|
2797
|
+
const s = await Va(e, t, r);
|
2798
2798
|
if (s.protectedHeader.crit?.includes("b64") && s.protectedHeader.b64 === !1)
|
2799
2799
|
throw new re("JWTs MUST NOT use unencoded payload");
|
2800
|
-
const a = { payload:
|
2800
|
+
const a = { payload: Za(s.protectedHeader, s.payload, r), protectedHeader: s.protectedHeader };
|
2801
2801
|
return typeof t == "function" ? { ...a, key: s.key } : a;
|
2802
2802
|
}
|
2803
|
-
function
|
2803
|
+
function tn(e) {
|
2804
2804
|
if (typeof e != "string")
|
2805
2805
|
throw new re("JWTs must use Compact JWS serialization, JWT must be a string");
|
2806
2806
|
const { 1: t, length: r } = e.split(".");
|
@@ -2828,65 +2828,65 @@ function en(e) {
|
|
2828
2828
|
}
|
2829
2829
|
const Me = async (e) => {
|
2830
2830
|
try {
|
2831
|
-
const t = F.ALG, r = await
|
2832
|
-
return await
|
2831
|
+
const t = F.ALG, r = await Pa(ha, t);
|
2832
|
+
return await en(e, r, {
|
2833
2833
|
issuer: F.ISSUER
|
2834
2834
|
});
|
2835
2835
|
} catch {
|
2836
2836
|
return;
|
2837
2837
|
}
|
2838
|
-
},
|
2838
|
+
}, rn = (e) => {
|
2839
2839
|
try {
|
2840
|
-
return
|
2840
|
+
return tn(e);
|
2841
2841
|
} catch {
|
2842
2842
|
return;
|
2843
2843
|
}
|
2844
2844
|
}, D = [];
|
2845
2845
|
for (let e = 0; e < 256; ++e)
|
2846
2846
|
D.push((e + 256).toString(16).slice(1));
|
2847
|
-
function
|
2847
|
+
function sn(e, t = 0) {
|
2848
2848
|
return (D[e[t + 0]] + D[e[t + 1]] + D[e[t + 2]] + D[e[t + 3]] + "-" + D[e[t + 4]] + D[e[t + 5]] + "-" + D[e[t + 6]] + D[e[t + 7]] + "-" + D[e[t + 8]] + D[e[t + 9]] + "-" + D[e[t + 10]] + D[e[t + 11]] + D[e[t + 12]] + D[e[t + 13]] + D[e[t + 14]] + D[e[t + 15]]).toLowerCase();
|
2849
2849
|
}
|
2850
2850
|
let ht;
|
2851
|
-
const
|
2852
|
-
function
|
2851
|
+
const an = new Uint8Array(16);
|
2852
|
+
function nn() {
|
2853
2853
|
if (!ht) {
|
2854
2854
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
2855
2855
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
2856
2856
|
ht = crypto.getRandomValues.bind(crypto);
|
2857
2857
|
}
|
2858
|
-
return ht(
|
2858
|
+
return ht(an);
|
2859
2859
|
}
|
2860
|
-
const
|
2860
|
+
const on = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), lr = { randomUUID: on };
|
2861
2861
|
function ur(e, t, r) {
|
2862
2862
|
if (lr.randomUUID && !e)
|
2863
2863
|
return lr.randomUUID();
|
2864
2864
|
e = e || {};
|
2865
|
-
const s = e.random ?? e.rng?.() ??
|
2865
|
+
const s = e.random ?? e.rng?.() ?? nn();
|
2866
2866
|
if (s.length < 16)
|
2867
2867
|
throw new Error("Random bytes length must be >= 16");
|
2868
|
-
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128,
|
2868
|
+
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, sn(s);
|
2869
2869
|
}
|
2870
|
-
const dr = globalThis.crypto,
|
2870
|
+
const dr = globalThis.crypto, cn = (e) => `${ur()}${ur()}`.slice(0, e), ln = (e) => btoa(
|
2871
2871
|
[...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")
|
2872
2872
|
);
|
2873
|
-
async function
|
2873
|
+
async function un(e) {
|
2874
2874
|
if (!dr.subtle)
|
2875
2875
|
throw new Error(
|
2876
2876
|
"crypto.subtle is available only in secure contexts (HTTPS)."
|
2877
2877
|
);
|
2878
2878
|
const t = new TextEncoder().encode(e), r = await dr.subtle.digest("SHA-256", t);
|
2879
|
-
return
|
2879
|
+
return ln(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
2880
2880
|
}
|
2881
|
-
async function
|
2882
|
-
const r =
|
2881
|
+
async function dn(e) {
|
2882
|
+
const r = cn(43), s = await un(r);
|
2883
2883
|
return {
|
2884
2884
|
code_verifier: r,
|
2885
2885
|
code_challenge: s
|
2886
2886
|
};
|
2887
2887
|
}
|
2888
2888
|
const jr = xt(null);
|
2889
|
-
var
|
2889
|
+
var hn = Object.defineProperty, fn = (e, t, r) => t in e ? hn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ft = (e, t, r) => fn(e, typeof t != "symbol" ? t + "" : t, r);
|
2890
2890
|
/*!
|
2891
2891
|
@versini/auth-provider v8.0.5
|
2892
2892
|
© 2025 gizmette.com
|
@@ -2914,9 +2914,9 @@ function tt(e) {
|
|
2914
2914
|
return n;
|
2915
2915
|
}
|
2916
2916
|
function Ht() {
|
2917
|
-
return
|
2917
|
+
return mn.stubThis(globalThis?.PublicKeyCredential !== void 0 && typeof globalThis.PublicKeyCredential == "function");
|
2918
2918
|
}
|
2919
|
-
const
|
2919
|
+
const mn = {
|
2920
2920
|
stubThis: (e) => e
|
2921
2921
|
};
|
2922
2922
|
function Vr(e) {
|
@@ -2948,7 +2948,7 @@ let U = class extends Error {
|
|
2948
2948
|
}), this.name = a ?? s.name, this.code = r;
|
2949
2949
|
}
|
2950
2950
|
};
|
2951
|
-
function
|
2951
|
+
function pn({ error: e, options: t }) {
|
2952
2952
|
const { publicKey: r } = t;
|
2953
2953
|
if (!r)
|
2954
2954
|
throw Error("options was missing required publicKey property");
|
@@ -3034,7 +3034,7 @@ function mn({ error: e, options: t }) {
|
|
3034
3034
|
}
|
3035
3035
|
return e;
|
3036
3036
|
}
|
3037
|
-
class
|
3037
|
+
class yn {
|
3038
3038
|
constructor() {
|
3039
3039
|
Object.defineProperty(this, "controller", {
|
3040
3040
|
enumerable: !0,
|
@@ -3058,12 +3058,12 @@ class pn {
|
|
3058
3058
|
}
|
3059
3059
|
}
|
3060
3060
|
}
|
3061
|
-
const Qr = new
|
3061
|
+
const Qr = new yn(), gn = ["cross-platform", "platform"];
|
3062
3062
|
function Yr(e) {
|
3063
|
-
if (e && !(
|
3063
|
+
if (e && !(gn.indexOf(e) < 0))
|
3064
3064
|
return e;
|
3065
3065
|
}
|
3066
|
-
async function
|
3066
|
+
async function bn(e) {
|
3067
3067
|
!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 });
|
3068
3068
|
const { optionsJSON: t, useAutoRegister: r = !1 } = e;
|
3069
3069
|
if (!Ht())
|
@@ -3082,7 +3082,7 @@ async function gn(e) {
|
|
3082
3082
|
try {
|
3083
3083
|
n = await navigator.credentials.create(a);
|
3084
3084
|
} catch (p) {
|
3085
|
-
throw
|
3085
|
+
throw pn({ error: p, options: a });
|
3086
3086
|
}
|
3087
3087
|
if (!n)
|
3088
3088
|
throw new Error("Registration was not completed");
|
@@ -3131,7 +3131,7 @@ function mt(e, t) {
|
|
3131
3131
|
console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
|
3132
3132
|
`, t);
|
3133
3133
|
}
|
3134
|
-
function
|
3134
|
+
function En() {
|
3135
3135
|
if (!Ht())
|
3136
3136
|
return pt.stubThis(new Promise((t) => t(!1)));
|
3137
3137
|
const e = globalThis.PublicKeyCredential;
|
@@ -3140,7 +3140,7 @@ function bn() {
|
|
3140
3140
|
const pt = {
|
3141
3141
|
stubThis: (e) => e
|
3142
3142
|
};
|
3143
|
-
function
|
3143
|
+
function wn({ error: e, options: t }) {
|
3144
3144
|
const { publicKey: r } = t;
|
3145
3145
|
if (!r)
|
3146
3146
|
throw Error("options was missing required publicKey property");
|
@@ -3181,7 +3181,7 @@ function En({ error: e, options: t }) {
|
|
3181
3181
|
}
|
3182
3182
|
return e;
|
3183
3183
|
}
|
3184
|
-
async function
|
3184
|
+
async function Sn(e) {
|
3185
3185
|
!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 });
|
3186
3186
|
const { optionsJSON: t, useBrowserAutofill: r = !1, verifyBrowserAutofillInput: s = !0 } = e;
|
3187
3187
|
if (!Ht())
|
@@ -3194,7 +3194,7 @@ async function wn(e) {
|
|
3194
3194
|
allowCredentials: a
|
3195
3195
|
}, i = {};
|
3196
3196
|
if (r) {
|
3197
|
-
if (!await
|
3197
|
+
if (!await En())
|
3198
3198
|
throw Error("Browser does not support WebAuthn autofill");
|
3199
3199
|
if (document.querySelectorAll("input[autocomplete$='webauthn']").length < 1 && s)
|
3200
3200
|
throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');
|
@@ -3205,7 +3205,7 @@ async function wn(e) {
|
|
3205
3205
|
try {
|
3206
3206
|
o = await navigator.credentials.get(i);
|
3207
3207
|
} catch (m) {
|
3208
|
-
throw
|
3208
|
+
throw wn({ error: m, options: i });
|
3209
3209
|
}
|
3210
3210
|
if (!o)
|
3211
3211
|
throw new Error("Authentication was not completed");
|
@@ -3233,18 +3233,18 @@ const hr = (e, t) => {
|
|
3233
3233
|
typeof t == "function" ? t() : t
|
3234
3234
|
);
|
3235
3235
|
window.localStorage.setItem(e, r), zr(e, r);
|
3236
|
-
},
|
3236
|
+
}, vn = (e) => {
|
3237
3237
|
window.localStorage.removeItem(e), zr(e, null);
|
3238
|
-
}, fr = (e) => window.localStorage.getItem(e),
|
3238
|
+
}, fr = (e) => window.localStorage.getItem(e), Tn = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
3239
3239
|
function He({
|
3240
3240
|
key: e,
|
3241
3241
|
initialValue: t
|
3242
3242
|
}) {
|
3243
|
-
const r =
|
3243
|
+
const r = _s(Tn, () => fr(e)), s = Y(
|
3244
3244
|
(i) => {
|
3245
3245
|
try {
|
3246
3246
|
const o = typeof i == "function" ? i(JSON.parse(r)) : i;
|
3247
|
-
o == null ?
|
3247
|
+
o == null ? vn(e) : hr(e, o);
|
3248
3248
|
} catch (o) {
|
3249
3249
|
console.warn(o);
|
3250
3250
|
}
|
@@ -3255,7 +3255,7 @@ function He({
|
|
3255
3255
|
}, [t, s]), n = Y(() => {
|
3256
3256
|
s(null);
|
3257
3257
|
}, [s]);
|
3258
|
-
return
|
3258
|
+
return W(() => {
|
3259
3259
|
try {
|
3260
3260
|
fr(e) === null && typeof t < "u" && hr(e, t);
|
3261
3261
|
} catch (i) {
|
@@ -3266,30 +3266,30 @@ function He({
|
|
3266
3266
|
const M = [];
|
3267
3267
|
for (let e = 0; e < 256; ++e)
|
3268
3268
|
M.push((e + 256).toString(16).slice(1));
|
3269
|
-
function
|
3269
|
+
function An(e, t = 0) {
|
3270
3270
|
return (M[e[t + 0]] + M[e[t + 1]] + M[e[t + 2]] + M[e[t + 3]] + "-" + M[e[t + 4]] + M[e[t + 5]] + "-" + M[e[t + 6]] + M[e[t + 7]] + "-" + M[e[t + 8]] + M[e[t + 9]] + "-" + M[e[t + 10]] + M[e[t + 11]] + M[e[t + 12]] + M[e[t + 13]] + M[e[t + 14]] + M[e[t + 15]]).toLowerCase();
|
3271
3271
|
}
|
3272
3272
|
let yt;
|
3273
|
-
const
|
3274
|
-
function
|
3273
|
+
const In = new Uint8Array(16);
|
3274
|
+
function _n() {
|
3275
3275
|
if (!yt) {
|
3276
3276
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
3277
3277
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
3278
3278
|
yt = crypto.getRandomValues.bind(crypto);
|
3279
3279
|
}
|
3280
|
-
return yt(
|
3280
|
+
return yt(In);
|
3281
3281
|
}
|
3282
|
-
const
|
3282
|
+
const Rn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), mr = { randomUUID: Rn };
|
3283
3283
|
function gt(e, t, r) {
|
3284
3284
|
if (mr.randomUUID && !e)
|
3285
3285
|
return mr.randomUUID();
|
3286
3286
|
e = e || {};
|
3287
|
-
const s = e.random ?? e.rng?.() ??
|
3287
|
+
const s = e.random ?? e.rng?.() ?? _n();
|
3288
3288
|
if (s.length < 16)
|
3289
3289
|
throw new Error("Random bytes length must be >= 16");
|
3290
|
-
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128,
|
3290
|
+
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, An(s);
|
3291
3291
|
}
|
3292
|
-
const ve = "Your session has expired. For your security, please log in again to continue.",
|
3292
|
+
const ve = "Your session has expired. For your security, please log in again to continue.", Cn = "Your session has been successfully terminated.", bt = "Login failed. Please try again.", kn = "Error getting access token, please re-authenticate.", On = "You forgot to wrap your component in <AuthProvider>.", Ke = "@@auth@@", Ne = "LOADING", qe = "LOGIN", Xr = "LOGOUT", Le = "success", ee = "failure", Zr = "include", es = "POST", ts = "application/json", Ge = {
|
3293
3293
|
GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
|
3294
3294
|
$clientId: String!,
|
3295
3295
|
$username: String!,
|
@@ -3444,21 +3444,21 @@ const ve = "Your session has expired. For your security, please log in again to
|
|
3444
3444
|
} catch (a) {
|
3445
3445
|
return console.error(a), { status: ee, data: [] };
|
3446
3446
|
}
|
3447
|
-
},
|
3447
|
+
}, Nn = process.env.NODE_ENV === "production", Pn = !Nn, rs = {
|
3448
3448
|
isLoading: !0,
|
3449
3449
|
isAuthenticated: !1,
|
3450
3450
|
user: void 0,
|
3451
3451
|
logoutReason: "",
|
3452
3452
|
debug: !1,
|
3453
3453
|
authenticationType: ""
|
3454
|
-
},
|
3454
|
+
}, $n = (e) => {
|
3455
3455
|
try {
|
3456
|
-
const t =
|
3456
|
+
const t = rn(e);
|
3457
3457
|
return t ? t[F.USER_ID_KEY] : "";
|
3458
3458
|
} catch {
|
3459
3459
|
return "";
|
3460
3460
|
}
|
3461
|
-
},
|
3461
|
+
}, xn = async ({
|
3462
3462
|
userId: e,
|
3463
3463
|
clientId: t,
|
3464
3464
|
domain: r,
|
@@ -3483,7 +3483,7 @@ const ve = "Your session has expired. For your security, please log in again to
|
|
3483
3483
|
status: ee
|
3484
3484
|
};
|
3485
3485
|
}
|
3486
|
-
},
|
3486
|
+
}, Dn = async ({
|
3487
3487
|
username: e,
|
3488
3488
|
password: t,
|
3489
3489
|
clientId: r,
|
@@ -3528,7 +3528,7 @@ const ve = "Your session has expired. For your security, please log in again to
|
|
3528
3528
|
status: !1
|
3529
3529
|
};
|
3530
3530
|
}
|
3531
|
-
},
|
3531
|
+
}, Mn = async ({
|
3532
3532
|
nonce: e,
|
3533
3533
|
clientId: t,
|
3534
3534
|
code_challenge: r,
|
@@ -3558,7 +3558,7 @@ const ve = "Your session has expired. For your security, please log in again to
|
|
3558
3558
|
data: ""
|
3559
3559
|
};
|
3560
3560
|
}
|
3561
|
-
},
|
3561
|
+
}, Ln = async ({
|
3562
3562
|
clientId: e,
|
3563
3563
|
userId: t,
|
3564
3564
|
nonce: r,
|
@@ -3595,7 +3595,7 @@ const ve = "Your session has expired. For your security, please log in again to
|
|
3595
3595
|
};
|
3596
3596
|
}
|
3597
3597
|
};
|
3598
|
-
class
|
3598
|
+
class Un {
|
3599
3599
|
constructor(t = null, r = null) {
|
3600
3600
|
ft(this, "refreshTokenPromise", null), ft(this, "accessToken"), ft(this, "refreshToken"), this.accessToken = t || "", this.refreshToken = r || "";
|
3601
3601
|
}
|
@@ -3628,7 +3628,7 @@ class Ln {
|
|
3628
3628
|
}) {
|
3629
3629
|
const i = await Me(this.refreshToken);
|
3630
3630
|
if (i && i.payload[F.USER_ID_KEY] !== "") {
|
3631
|
-
const o = await
|
3631
|
+
const o = await Ln({
|
3632
3632
|
endpoint: t,
|
3633
3633
|
clientId: r,
|
3634
3634
|
userId: s,
|
@@ -3651,7 +3651,7 @@ class Ln {
|
|
3651
3651
|
}
|
3652
3652
|
}
|
3653
3653
|
const Ie = () => {
|
3654
|
-
throw new Error(
|
3654
|
+
throw new Error(On);
|
3655
3655
|
}, ss = xt({
|
3656
3656
|
isAuthenticated: !1,
|
3657
3657
|
isLoading: !1,
|
@@ -3663,21 +3663,21 @@ const Ie = () => {
|
|
3663
3663
|
loginWithPasskey: Ie,
|
3664
3664
|
logoutReason: "",
|
3665
3665
|
authenticationType: ""
|
3666
|
-
}),
|
3666
|
+
}), Fn = () => ({
|
3667
3667
|
...at(ss)
|
3668
|
-
}),
|
3668
|
+
}), Hn = (e) => Y(
|
3669
3669
|
(...t) => {
|
3670
3670
|
e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
|
3671
3671
|
},
|
3672
3672
|
[e]
|
3673
|
-
),
|
3673
|
+
), Kn = ie.createContext({
|
3674
3674
|
state: rs,
|
3675
3675
|
dispatch: () => {
|
3676
3676
|
}
|
3677
|
-
}),
|
3677
|
+
}), Gn = (e, t) => t?.type === Ne ? {
|
3678
3678
|
...e,
|
3679
3679
|
isLoading: t.payload.isLoading
|
3680
|
-
} : t?.type ===
|
3680
|
+
} : t?.type === qe ? {
|
3681
3681
|
...e,
|
3682
3682
|
isLoading: !1,
|
3683
3683
|
isAuthenticated: !0,
|
@@ -3691,8 +3691,8 @@ const Ie = () => {
|
|
3691
3691
|
user: void 0,
|
3692
3692
|
authenticationType: "",
|
3693
3693
|
logoutReason: t.payload.logoutReason
|
3694
|
-
} : e,
|
3695
|
-
const t =
|
3694
|
+
} : e, Bn = ({ children: e }) => {
|
3695
|
+
const t = Fn();
|
3696
3696
|
return /* @__PURE__ */ h(jr.Provider, { value: t, children: e });
|
3697
3697
|
}, pr = ({
|
3698
3698
|
children: e,
|
@@ -3700,12 +3700,12 @@ const Ie = () => {
|
|
3700
3700
|
clientId: r,
|
3701
3701
|
domain: s = "",
|
3702
3702
|
debug: a = !1,
|
3703
|
-
endpoint: n =
|
3703
|
+
endpoint: n = Pn ? "https://auth.gizmette.local.com:3003" : "https://mylogin.gizmette.com/auth"
|
3704
3704
|
}) => {
|
3705
|
-
const [i, o] = Ir(
|
3705
|
+
const [i, o] = Ir(Gn, {
|
3706
3706
|
...rs,
|
3707
3707
|
debug: a
|
3708
|
-
}), c =
|
3708
|
+
}), c = Hn(a), f = j(!1), [d, u, , l] = He({
|
3709
3709
|
key: `${Ke}::${r}::@@user@@`
|
3710
3710
|
}), [m, p, , g] = He({
|
3711
3711
|
key: `${Ke}::${r}::@@access@@`
|
@@ -3715,7 +3715,7 @@ const Ie = () => {
|
|
3715
3715
|
}
|
3716
3716
|
), [A, K, , R] = He({
|
3717
3717
|
key: `${Ke}::${r}::@@nonce@@`
|
3718
|
-
}), Q = new
|
3718
|
+
}), Q = new Un(m, b), C = Y(() => {
|
3719
3719
|
c("removeLocalStorage: removing local storage"), l(), g(), k(), R();
|
3720
3720
|
}, [
|
3721
3721
|
g,
|
@@ -3739,10 +3739,10 @@ const Ie = () => {
|
|
3739
3739
|
), x = Y(
|
3740
3740
|
async (w) => {
|
3741
3741
|
c("invalidateAndLogout: invalidating and logging out");
|
3742
|
-
const { user: T } = i, S = T?.userId ||
|
3742
|
+
const { user: T } = i, S = T?.userId || $n(d);
|
3743
3743
|
S || c(
|
3744
3744
|
"invalidateAndLogout: user cannot be identified, logging out without userId"
|
3745
|
-
), await
|
3745
|
+
), await xn({
|
3746
3746
|
userId: S,
|
3747
3747
|
clientId: r,
|
3748
3748
|
domain: s,
|
@@ -3760,13 +3760,13 @@ const Ie = () => {
|
|
3760
3760
|
n
|
3761
3761
|
]
|
3762
3762
|
);
|
3763
|
-
|
3763
|
+
W(() => {
|
3764
3764
|
if (!f.current)
|
3765
3765
|
return i.isLoading && d !== null ? (async () => {
|
3766
3766
|
try {
|
3767
3767
|
const w = await Me(d);
|
3768
3768
|
w && w.payload[F.USER_ID_KEY] !== "" ? (c("useEffect: setting the authentication state"), o({
|
3769
|
-
type:
|
3769
|
+
type: qe,
|
3770
3770
|
payload: {
|
3771
3771
|
authenticationType: w.payload[F.AUTH_TYPE_KEY],
|
3772
3772
|
user: {
|
@@ -3789,14 +3789,14 @@ const Ie = () => {
|
|
3789
3789
|
o({ type: Ne, payload: { isLoading: !0 } }), C();
|
3790
3790
|
const S = gt();
|
3791
3791
|
K(S), c("login: Logging in with password");
|
3792
|
-
const { code_verifier: le, code_challenge: ue } = await
|
3792
|
+
const { code_verifier: le, code_challenge: ue } = await dn(), Jt = await Mn({
|
3793
3793
|
endpoint: n,
|
3794
3794
|
nonce: S,
|
3795
3795
|
clientId: r,
|
3796
3796
|
code_challenge: ue
|
3797
3797
|
});
|
3798
3798
|
if (Jt.status) {
|
3799
|
-
const we = await
|
3799
|
+
const we = await Dn({
|
3800
3800
|
endpoint: n,
|
3801
3801
|
username: w,
|
3802
3802
|
password: T,
|
@@ -3810,7 +3810,7 @@ const Ie = () => {
|
|
3810
3810
|
ua: navigator.userAgent
|
3811
3811
|
});
|
3812
3812
|
return we.status ? (u(we.idToken), p(we.accessToken), E(we.refreshToken), o({
|
3813
|
-
type:
|
3813
|
+
type: qe,
|
3814
3814
|
payload: {
|
3815
3815
|
authenticationType: Pe.CODE,
|
3816
3816
|
user: {
|
@@ -3823,7 +3823,7 @@ const Ie = () => {
|
|
3823
3823
|
}
|
3824
3824
|
return !1;
|
3825
3825
|
}, I = async (w) => {
|
3826
|
-
w?.preventDefault(), await x(
|
3826
|
+
w?.preventDefault(), await x(Cn);
|
3827
3827
|
}, N = async () => {
|
3828
3828
|
const { isAuthenticated: w, user: T } = i;
|
3829
3829
|
try {
|
@@ -3852,7 +3852,7 @@ const Ie = () => {
|
|
3852
3852
|
} catch {
|
3853
3853
|
return c(
|
3854
3854
|
"getAccessToken: exception occurred, invalidating and logging out"
|
3855
|
-
), await x(
|
3855
|
+
), await x(kn), "";
|
3856
3856
|
}
|
3857
3857
|
}, V = () => i.isAuthenticated && d ? d : "", ce = async () => {
|
3858
3858
|
const { user: w } = i;
|
@@ -3869,7 +3869,7 @@ const Ie = () => {
|
|
3869
3869
|
});
|
3870
3870
|
if (T.status)
|
3871
3871
|
try {
|
3872
|
-
const S = await
|
3872
|
+
const S = await bn({
|
3873
3873
|
optionsJSON: T.data
|
3874
3874
|
});
|
3875
3875
|
return T = await Ae({
|
@@ -3916,7 +3916,7 @@ const Ie = () => {
|
|
3916
3916
|
});
|
3917
3917
|
if (S.status)
|
3918
3918
|
try {
|
3919
|
-
const le = await
|
3919
|
+
const le = await Sn({
|
3920
3920
|
optionsJSON: S.data
|
3921
3921
|
});
|
3922
3922
|
return S = await Ae({
|
@@ -3934,7 +3934,7 @@ const Ie = () => {
|
|
3934
3934
|
ua: navigator.userAgent
|
3935
3935
|
}
|
3936
3936
|
}), S.data.status === Le ? (u(S.data.idToken), p(S.data.accessToken), E(S.data.refreshToken), o({
|
3937
|
-
type:
|
3937
|
+
type: qe,
|
3938
3938
|
payload: {
|
3939
3939
|
authenticationType: Pe.PASSKEY,
|
3940
3940
|
user: {
|
@@ -3962,7 +3962,7 @@ const Ie = () => {
|
|
3962
3962
|
}
|
3963
3963
|
return !1;
|
3964
3964
|
};
|
3965
|
-
return /* @__PURE__ */ h(
|
3965
|
+
return /* @__PURE__ */ h(Kn.Provider, { value: { state: i, dispatch: o }, children: /* @__PURE__ */ h(
|
3966
3966
|
ss.Provider,
|
3967
3967
|
{
|
3968
3968
|
value: {
|
@@ -3974,7 +3974,7 @@ const Ie = () => {
|
|
3974
3974
|
registeringForPasskey: ce,
|
3975
3975
|
loginWithPasskey: Ee
|
3976
3976
|
},
|
3977
|
-
children: /* @__PURE__ */ h(
|
3977
|
+
children: /* @__PURE__ */ h(Bn, { children: e })
|
3978
3978
|
}
|
3979
3979
|
) });
|
3980
3980
|
};
|
@@ -3996,7 +3996,7 @@ const as = () => {
|
|
3996
3996
|
if (!e)
|
3997
3997
|
throw new Error("useAuth must be used within an AuthHookProvider");
|
3998
3998
|
return e;
|
3999
|
-
},
|
3999
|
+
}, Bo = "I'm having trouble right now. Please try again later.", Wo = "action-search", qo = "action-sort", jo = "action-toggle-prompt", Vo = "action-reset-prompt", ns = "sassy-saint-", Jo = "search", Qo = "sort", Yo = "sort-timestamp", zo = "sort-token-usage", Xo = "sort-memory-direction", Zo = "sort-memory-column", ec = "private-disclosure", tc = "reasoning-disclosure", is = "service-worker", yr = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", rc = 10, sc = 30, ac = "av-prompt", nc = "av-prompt-editable", ic = "size-5 sm:size-4", oc = 30, cc = 15, lc = 130, uc = 160, dc = 16, hc = 24, fc = 76, mc = 76;
|
4000
4000
|
let Et = null, se = !1;
|
4001
4001
|
typeof window < "u" && "serviceWorker" in navigator && navigator.serviceWorker.addEventListener("controllerchange", () => {
|
4002
4002
|
se && (se = !1, window.location.reload());
|
@@ -4010,7 +4010,7 @@ function Nt() {
|
|
4010
4010
|
);
|
4011
4011
|
return e === null ? !1 : e === "true";
|
4012
4012
|
}
|
4013
|
-
function
|
4013
|
+
function Wn(e) {
|
4014
4014
|
localStorage.setItem(
|
4015
4015
|
ns + is,
|
4016
4016
|
e.toString()
|
@@ -4046,8 +4046,8 @@ async function qn() {
|
|
4046
4046
|
return console.error("[SW] Service worker un-registration failed:", e), !1;
|
4047
4047
|
}
|
4048
4048
|
}
|
4049
|
-
async function
|
4050
|
-
if (
|
4049
|
+
async function pc(e) {
|
4050
|
+
if (Wn(e), e) {
|
4051
4051
|
se = !0;
|
4052
4052
|
try {
|
4053
4053
|
sessionStorage.setItem("sw-toggle-pending", "enabled");
|
@@ -4068,14 +4068,14 @@ async function hc(e) {
|
|
4068
4068
|
} catch {
|
4069
4069
|
}
|
4070
4070
|
try {
|
4071
|
-
Kt() && await
|
4071
|
+
Kt() && await jn();
|
4072
4072
|
} catch (t) {
|
4073
4073
|
console.warn("[SW] Failed to invalidate cache:", t);
|
4074
4074
|
}
|
4075
4075
|
await qn(), window.location.reload();
|
4076
4076
|
}
|
4077
4077
|
}
|
4078
|
-
async function
|
4078
|
+
async function jn() {
|
4079
4079
|
try {
|
4080
4080
|
if ("caches" in window) {
|
4081
4081
|
const e = await caches.keys();
|
@@ -4101,7 +4101,7 @@ async function Wn() {
|
|
4101
4101
|
function wt() {
|
4102
4102
|
return "unknown";
|
4103
4103
|
}
|
4104
|
-
async function
|
4104
|
+
async function yc(e = {}) {
|
4105
4105
|
const { urlLimitPerCache: t } = e;
|
4106
4106
|
if (!("caches" in window))
|
4107
4107
|
return { version: wt(), caches: [], totalItems: 0 };
|
@@ -4128,26 +4128,26 @@ async function fc(e = {}) {
|
|
4128
4128
|
return console.warn("[SW] getCacheInfo failed:", r), { version: wt(), caches: [], totalItems: 0 };
|
4129
4129
|
}
|
4130
4130
|
}
|
4131
|
-
const
|
4132
|
-
[
|
4133
|
-
|
4134
|
-
|
4131
|
+
const gc = "user", bc = "assistant", Ec = "data", cs = "OpenAI", Vn = "Anthropic", Jn = "Google", Qn = "Perplexity", wc = cs, Yn = "claude-sonnet-4", zn = "claude-3", Xn = "gpt-", Zn = "o3", ei = "o4", ti = "gemini", ri = "sonar", si = {
|
4132
|
+
[Vn]: [
|
4133
|
+
Yn,
|
4134
|
+
zn
|
4135
4135
|
],
|
4136
4136
|
[cs]: [
|
4137
|
-
zn,
|
4138
4137
|
Xn,
|
4139
|
-
Zn
|
4138
|
+
Zn,
|
4139
|
+
ei
|
4140
4140
|
],
|
4141
|
-
[
|
4142
|
-
[
|
4143
|
-
},
|
4141
|
+
[Jn]: [ti],
|
4142
|
+
[Qn]: [ri]
|
4143
|
+
}, Sc = "x-callisto-chat-id", vc = (e) => {
|
4144
4144
|
for (const [t, r] of Object.entries(
|
4145
|
-
|
4145
|
+
si
|
4146
4146
|
))
|
4147
4147
|
if (r.some((s) => e.startsWith(s)))
|
4148
4148
|
return t;
|
4149
4149
|
return null;
|
4150
|
-
},
|
4150
|
+
}, Tc = "timestamp", Ac = "tokenUsage", O = "Callisto", Ic = {
|
4151
4151
|
TOOL: {
|
4152
4152
|
MEMORIES: "getUserMemories"
|
4153
4153
|
},
|
@@ -4156,13 +4156,13 @@ const mc = "user", pc = "assistant", yc = "data", cs = "OpenAI", jn = "Anthropic
|
|
4156
4156
|
REASONING: "addon:reasoning"
|
4157
4157
|
}
|
4158
4158
|
};
|
4159
|
-
function
|
4159
|
+
function ai(e) {
|
4160
4160
|
return e ? new Set(e) : null;
|
4161
4161
|
}
|
4162
|
-
function
|
4162
|
+
function ni(e, t, r) {
|
4163
4163
|
if (!t || Array.isArray(t) && t.length === 0)
|
4164
4164
|
return !0;
|
4165
|
-
const s = e instanceof Set ? e :
|
4165
|
+
const s = e instanceof Set ? e : ai(e);
|
4166
4166
|
return !s || s.size === 0 ? !1 : typeof t == "string" ? s.has(t) : r?.any === !0 ? t.some((a) => s.has(a)) : t.every((a) => s.has(a));
|
4167
4167
|
}
|
4168
4168
|
const B = {
|
@@ -4385,12 +4385,12 @@ const B = {
|
|
4385
4385
|
DELETE_MEMORIES: {
|
4386
4386
|
schema: B.DELETE_MEMORIES
|
4387
4387
|
}
|
4388
|
-
},
|
4388
|
+
}, ii = process.env.PUBLIC_SASSY_API_SERVER_URL, ke = async ({
|
4389
4389
|
query: e,
|
4390
4390
|
data: t,
|
4391
4391
|
headers: r = {},
|
4392
4392
|
...s
|
4393
|
-
}) => await fetch(`${
|
4393
|
+
}) => await fetch(`${ii}/graphql`, {
|
4394
4394
|
method: "POST",
|
4395
4395
|
credentials: "include",
|
4396
4396
|
headers: {
|
@@ -4403,7 +4403,7 @@ const B = {
|
|
4403
4403
|
variables: t
|
4404
4404
|
}),
|
4405
4405
|
...s
|
4406
|
-
}),
|
4406
|
+
}), oi = async (e) => {
|
4407
4407
|
const t = e.type?.data ? e.type.data(e.params) : e.params;
|
4408
4408
|
try {
|
4409
4409
|
let r;
|
@@ -4433,13 +4433,13 @@ const B = {
|
|
4433
4433
|
} catch (r) {
|
4434
4434
|
return console.error(r), { status: 500, data: [] };
|
4435
4435
|
}
|
4436
|
-
},
|
4436
|
+
}, _c = async ({
|
4437
4437
|
provider: e,
|
4438
4438
|
accessToken: t,
|
4439
4439
|
username: r
|
4440
4440
|
}) => {
|
4441
4441
|
try {
|
4442
|
-
await
|
4442
|
+
await oi({
|
4443
4443
|
accessToken: t,
|
4444
4444
|
type: te.SET_USER_PREFERENCES,
|
4445
4445
|
params: {
|
@@ -4457,13 +4457,13 @@ const B = {
|
|
4457
4457
|
PREFERENCES: "preferences",
|
4458
4458
|
USAGE: "usage",
|
4459
4459
|
USER_MEMORIES: "userMemories"
|
4460
|
-
},
|
4460
|
+
}, Rc = () => ye({
|
4461
4461
|
queryKey: [oe.CAPABILITIES],
|
4462
4462
|
queryFn: async () => await be({
|
4463
4463
|
type: te.GET_SERVER_CAPABILITIES,
|
4464
4464
|
noAuth: !0
|
4465
4465
|
})
|
4466
|
-
}),
|
4466
|
+
}), Cc = () => ye({
|
4467
4467
|
queryKey: [oe.CHANGELOGS],
|
4468
4468
|
queryFn: async () => await be({
|
4469
4469
|
type: te.GET_CHANGELOGS,
|
@@ -4472,7 +4472,7 @@ const B = {
|
|
4472
4472
|
client: !0
|
4473
4473
|
}
|
4474
4474
|
})
|
4475
|
-
}),
|
4475
|
+
}), ci = ({
|
4476
4476
|
user: e,
|
4477
4477
|
getAccessToken: t
|
4478
4478
|
}) => ye({
|
@@ -4484,7 +4484,7 @@ const B = {
|
|
4484
4484
|
type: te.GET_USER_PREFERENCES,
|
4485
4485
|
getAccessToken: t
|
4486
4486
|
})
|
4487
|
-
}),
|
4487
|
+
}), kc = ({
|
4488
4488
|
user: e,
|
4489
4489
|
getAccessToken: t
|
4490
4490
|
}) => ye({
|
@@ -4496,7 +4496,7 @@ const B = {
|
|
4496
4496
|
type: te.GET_CHATS_STATS,
|
4497
4497
|
getAccessToken: t
|
4498
4498
|
})
|
4499
|
-
}),
|
4499
|
+
}), Oc = ({
|
4500
4500
|
user: e,
|
4501
4501
|
searchString: t,
|
4502
4502
|
sortDirection: r,
|
@@ -4520,7 +4520,7 @@ const B = {
|
|
4520
4520
|
type: te.GET_CHATS,
|
4521
4521
|
getAccessToken: a
|
4522
4522
|
})
|
4523
|
-
}),
|
4523
|
+
}), Nc = ({
|
4524
4524
|
user: e,
|
4525
4525
|
month: t,
|
4526
4526
|
year: r = (/* @__PURE__ */ new Date()).getFullYear().toString(),
|
@@ -4538,7 +4538,7 @@ const B = {
|
|
4538
4538
|
type: te.GET_USAGE,
|
4539
4539
|
getAccessToken: s
|
4540
4540
|
})
|
4541
|
-
}),
|
4541
|
+
}), Pc = ({
|
4542
4542
|
user: e,
|
4543
4543
|
query: t,
|
4544
4544
|
getAccessToken: r,
|
@@ -4551,7 +4551,7 @@ const B = {
|
|
4551
4551
|
type: te.GET_USER_MEMORIES,
|
4552
4552
|
getAccessToken: r
|
4553
4553
|
})
|
4554
|
-
}),
|
4554
|
+
}), $c = ({
|
4555
4555
|
getAccessToken: e
|
4556
4556
|
}) => {
|
4557
4557
|
const t = nt();
|
@@ -4575,7 +4575,7 @@ const B = {
|
|
4575
4575
|
});
|
4576
4576
|
}
|
4577
4577
|
});
|
4578
|
-
},
|
4578
|
+
}, xc = ({
|
4579
4579
|
getAccessToken: e
|
4580
4580
|
}) => {
|
4581
4581
|
const t = nt();
|
@@ -4638,7 +4638,7 @@ const B = {
|
|
4638
4638
|
capabilities: /* @__PURE__ */ new Set(),
|
4639
4639
|
version: null,
|
4640
4640
|
status: "idle"
|
4641
|
-
},
|
4641
|
+
}, li = ({
|
4642
4642
|
user: e,
|
4643
4643
|
getAccessToken: t,
|
4644
4644
|
children: r
|
@@ -4664,19 +4664,19 @@ const B = {
|
|
4664
4664
|
}
|
4665
4665
|
return !1;
|
4666
4666
|
}, [n]);
|
4667
|
-
|
4667
|
+
W(() => {
|
4668
4668
|
s.status === "idle" && i();
|
4669
4669
|
}, [i, s.status]);
|
4670
|
-
const o =
|
4671
|
-
|
4670
|
+
const o = ci({ user: e, getAccessToken: t });
|
4671
|
+
W(() => {
|
4672
4672
|
o.isLoading && s.status === "idle" && a((u) => ({ ...u, status: "loading" }));
|
4673
|
-
}, [o.isLoading, s.status]),
|
4673
|
+
}, [o.isLoading, s.status]), W(() => {
|
4674
4674
|
o.isError && a((u) => ({
|
4675
4675
|
...u,
|
4676
4676
|
status: "error",
|
4677
4677
|
error: String(o.error)
|
4678
4678
|
}));
|
4679
|
-
}, [o.isError, o.error]),
|
4679
|
+
}, [o.isError, o.error]), W(() => {
|
4680
4680
|
const u = o.data?.entitlements;
|
4681
4681
|
if (u && (a({
|
4682
4682
|
capabilities: new Set(u.capabilities || []),
|
@@ -4723,7 +4723,7 @@ const B = {
|
|
4723
4723
|
}, [n]), d = Je(
|
4724
4724
|
() => ({
|
4725
4725
|
...s,
|
4726
|
-
check: (u, l) => s.status !== "ready" ? !1 :
|
4726
|
+
check: (u, l) => s.status !== "ready" ? !1 : ni(s.capabilities, u, { any: l?.any }),
|
4727
4727
|
loadFromProfile: c,
|
4728
4728
|
reset: f
|
4729
4729
|
}),
|
@@ -4731,14 +4731,14 @@ const B = {
|
|
4731
4731
|
);
|
4732
4732
|
return /* @__PURE__ */ h(ls.Provider, { value: d, children: r });
|
4733
4733
|
};
|
4734
|
-
function
|
4734
|
+
function Dc() {
|
4735
4735
|
const e = at(ls);
|
4736
4736
|
if (!e)
|
4737
4737
|
throw new Error("useEntitlements must be used within EntitlementsProvider");
|
4738
4738
|
return e;
|
4739
4739
|
}
|
4740
4740
|
const br = (e) => Number.isFinite(e) ? e : 0;
|
4741
|
-
function
|
4741
|
+
function ui(e) {
|
4742
4742
|
return {
|
4743
4743
|
days: Math.trunc(e / 864e5),
|
4744
4744
|
hours: Math.trunc(e / 36e5 % 24),
|
@@ -4749,7 +4749,7 @@ function li(e) {
|
|
4749
4749
|
nanoseconds: Math.trunc(br(e * 1e6) % 1e3)
|
4750
4750
|
};
|
4751
4751
|
}
|
4752
|
-
function
|
4752
|
+
function di(e) {
|
4753
4753
|
return {
|
4754
4754
|
days: e / 86400000n,
|
4755
4755
|
hours: e / 3600000n % 24n,
|
@@ -4760,20 +4760,20 @@ function ui(e) {
|
|
4760
4760
|
nanoseconds: 0n
|
4761
4761
|
};
|
4762
4762
|
}
|
4763
|
-
function
|
4763
|
+
function hi(e) {
|
4764
4764
|
switch (typeof e) {
|
4765
4765
|
case "number": {
|
4766
4766
|
if (Number.isFinite(e))
|
4767
|
-
return
|
4767
|
+
return ui(e);
|
4768
4768
|
break;
|
4769
4769
|
}
|
4770
4770
|
case "bigint":
|
4771
|
-
return
|
4771
|
+
return di(e);
|
4772
4772
|
}
|
4773
4773
|
throw new TypeError("Expected a finite number or bigint");
|
4774
4774
|
}
|
4775
|
-
const
|
4776
|
-
function
|
4775
|
+
const fi = (e) => e === 0 || e === 0n, mi = (e, t) => t === 1 || t === 1n ? e : `${e}s`, pi = 1e-7, yi = 24n * 60n * 60n * 1000n;
|
4776
|
+
function gi(e, t) {
|
4777
4777
|
const r = typeof e == "bigint";
|
4778
4778
|
if (!r && !Number.isFinite(e))
|
4779
4779
|
throw new TypeError("Expected a finite number or bigint");
|
@@ -4782,18 +4782,18 @@ function yi(e, t) {
|
|
4782
4782
|
e = e < 0 ? -e : e, t.colonNotation && (t.compact = !1, t.formatSubMilliseconds = !1, t.separateMilliseconds = !1, t.verbose = !1), t.compact && (t.unitCount = 1, t.secondsDecimalDigits = 0, t.millisecondsDecimalDigits = 0);
|
4783
4783
|
let a = [];
|
4784
4784
|
const n = (d, u) => {
|
4785
|
-
const l = Math.floor(d * 10 ** u +
|
4785
|
+
const l = Math.floor(d * 10 ** u + pi);
|
4786
4786
|
return (Math.round(l) / 10 ** u).toFixed(u);
|
4787
4787
|
}, i = (d, u, l, m) => {
|
4788
|
-
if (!((a.length === 0 || !t.colonNotation) &&
|
4788
|
+
if (!((a.length === 0 || !t.colonNotation) && fi(d) && !(t.colonNotation && l === "m"))) {
|
4789
4789
|
if (m ??= String(d), t.colonNotation) {
|
4790
4790
|
const p = m.includes(".") ? m.split(".")[0].length : m.length, g = a.length > 0 ? 2 : 1;
|
4791
4791
|
m = "0".repeat(Math.max(0, g - p)) + m;
|
4792
4792
|
} else
|
4793
|
-
m += t.verbose ? " " +
|
4793
|
+
m += t.verbose ? " " + mi(u, d) : l;
|
4794
4794
|
a.push(m);
|
4795
4795
|
}
|
4796
|
-
}, o =
|
4796
|
+
}, o = hi(e), c = BigInt(o.days);
|
4797
4797
|
if (t.hideYearAndDays ? i(BigInt(c) * 24n + BigInt(o.hours), "hour", "h") : (t.hideYear ? i(c, "day", "d") : (i(c / 365n, "year", "y"), i(c % 365n, "day", "d")), i(Number(o.hours), "hour", "h")), i(Number(o.minutes), "minute", "m"), !t.hideSeconds)
|
4798
4798
|
if (t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3) {
|
4799
4799
|
const d = Number(o.seconds), u = Number(o.milliseconds), l = Number(o.microseconds), m = Number(o.nanoseconds);
|
@@ -4809,7 +4809,7 @@ function yi(e, t) {
|
|
4809
4809
|
);
|
4810
4810
|
}
|
4811
4811
|
} else {
|
4812
|
-
const d = (r ? Number(e %
|
4812
|
+
const d = (r ? Number(e % yi) : e) / 1e3 % 60, u = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, l = n(d, u), m = t.keepDecimalsOnWholeSeconds ? l : l.replace(/\.0+$/, "");
|
4813
4813
|
i(Number.parseFloat(m), "second", "s", m);
|
4814
4814
|
}
|
4815
4815
|
if (a.length === 0)
|
@@ -4825,17 +4825,17 @@ const us = process.env.NODE_ENV === "production", Gt = !us, ds = Gt ? "gizmette.
|
|
4825
4825
|
min: a,
|
4826
4826
|
sec: n
|
4827
4827
|
};
|
4828
|
-
},
|
4828
|
+
}, bi = (e) => {
|
4829
4829
|
if (!e && e !== 0)
|
4830
4830
|
return "N/A";
|
4831
4831
|
const t = Bt(e, !1);
|
4832
4832
|
return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
|
4833
|
-
},
|
4833
|
+
}, Ei = (e) => {
|
4834
4834
|
if (!e && e !== 0)
|
4835
4835
|
return "N/A";
|
4836
4836
|
const t = Bt(e, !0);
|
4837
4837
|
return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
|
4838
|
-
},
|
4838
|
+
}, wi = async () => {
|
4839
4839
|
const e = {
|
4840
4840
|
/**
|
4841
4841
|
* A boolean value that indicates the application would like to receive the
|
@@ -4878,18 +4878,18 @@ const us = process.env.NODE_ENV === "production", Gt = !us, ds = Gt ? "gizmette.
|
|
4878
4878
|
e
|
4879
4879
|
);
|
4880
4880
|
});
|
4881
|
-
},
|
4881
|
+
}, Si = (e) => window.btoa(
|
4882
4882
|
encodeURIComponent(e).replace(
|
4883
4883
|
/%([0-9A-F]{2})/g,
|
4884
4884
|
function(r, s) {
|
4885
4885
|
return String.fromCharCode(+`0x${s}`);
|
4886
4886
|
}
|
4887
4887
|
)
|
4888
|
-
),
|
4888
|
+
), vi = (e) => decodeURIComponent(
|
4889
4889
|
window.atob(e).split("").map(function(t) {
|
4890
4890
|
return `%${`00${t.charCodeAt(0).toString(16)}`.slice(-2)}`;
|
4891
4891
|
}).join("")
|
4892
|
-
),
|
4892
|
+
), Ti = (e, t, r) => t ? Object.keys(t).map((s) => /* @__PURE__ */ h("dl", { className: "my-0", children: /* @__PURE__ */ q("div", { className: "flex items-center justify-between", children: [
|
4893
4893
|
/* @__PURE__ */ h(
|
4894
4894
|
"dt",
|
4895
4895
|
{
|
@@ -4911,7 +4911,7 @@ const us = process.env.NODE_ENV === "production", Gt = !us, ds = Gt ? "gizmette.
|
|
4911
4911
|
}
|
4912
4912
|
)
|
4913
4913
|
] }) }, `${e}-${s}`)) : null;
|
4914
|
-
function
|
4914
|
+
function Ai({
|
4915
4915
|
data: e,
|
4916
4916
|
formatter: t = (r) => r
|
4917
4917
|
}) {
|
@@ -4923,12 +4923,12 @@ function Ti({
|
|
4923
4923
|
);
|
4924
4924
|
return t(s ? s / r.length : 0);
|
4925
4925
|
}
|
4926
|
-
const
|
4926
|
+
const Ii = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, _i = new Intl.NumberFormat("en", {
|
4927
4927
|
style: "decimal",
|
4928
4928
|
signDisplay: "never",
|
4929
4929
|
minimumFractionDigits: 0,
|
4930
4930
|
maximumFractionDigits: 0
|
4931
|
-
}),
|
4931
|
+
}), Ri = (e) => e > 0 ? gi(e, {
|
4932
4932
|
secondsDecimalDigits: 2,
|
4933
4933
|
unitCount: 2
|
4934
4934
|
}) : "N/A", hs = ({
|
@@ -4948,18 +4948,21 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
4948
4948
|
"sm:px-5 px-2",
|
4949
4949
|
"transition-all ease-in-out duration-500",
|
4950
4950
|
e
|
4951
|
-
),
|
4951
|
+
), Ci = (e, t) => t === 1 ? e : `${e}s`, ki = (e, t) => {
|
4952
4952
|
let r;
|
4953
4953
|
return (...s) => {
|
4954
4954
|
window.clearTimeout(r), r = window.setTimeout(() => e(...s), t);
|
4955
4955
|
};
|
4956
|
-
}, ms = () => !!window?.__VERSINI_CALLISTO_TAURI__, ps = () => window.innerWidth < 403,
|
4956
|
+
}, ms = () => !!window?.__VERSINI_CALLISTO_TAURI__, ps = () => window.innerWidth < 403, ys = () => window.innerWidth >= 403 && window.innerWidth <= 1220, Oi = () => {
|
4957
4957
|
const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r = ps(), s = navigator.maxTouchPoints > 1;
|
4958
4958
|
return e && t && r && s;
|
4959
|
-
},
|
4959
|
+
}, Ni = () => {
|
4960
|
+
const e = ["iPad Simulator", "iPad"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = ys(), r = navigator.maxTouchPoints > 1;
|
4961
|
+
return e && t && r;
|
4962
|
+
}, Pi = (e) => {
|
4960
4963
|
const t = e.replace(/([A-Z])/g, " $1");
|
4961
4964
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
4962
|
-
},
|
4965
|
+
}, $i = ({
|
4963
4966
|
autoClose: e = 3e3,
|
4964
4967
|
containerId: t,
|
4965
4968
|
position: r = "top-center",
|
@@ -4983,7 +4986,7 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
4983
4986
|
theme: c,
|
4984
4987
|
transition: f,
|
4985
4988
|
icon: d
|
4986
|
-
}),
|
4989
|
+
}), Mc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, DOMAIN: ds, convertCamelCaseToReadable: Pi, convertDDToDMS: Bt, convertLatitudeToDMS: bi, convertLongitudeToDMS: Ei, debounce: ki, durationFormatter: Ri, extractAverage: Ai, getCurrentGeoLocation: wi, getLayoutPaddingClass: fs, getMessageContaintWrapperClass: hs, isDev: Gt, isLastMessageFromRole: Ii, isProbablyMobile: ps, isProbablyTablet: ys, isProbablyiPad: Ni, isProbablyiPhone: Oi, isProd: us, isTauri: ms, numberFormatter: _i, obfuscate: Si, pluralize: Ci, renderDataAsList: Ti, toastOptions: $i, unObfuscate: vi }, Symbol.toStringTag, { value: "Module" })), Er = "av-button", ct = "icon", Wt = "button", Pt = "link", xi = ({
|
4987
4990
|
type: e,
|
4988
4991
|
size: t,
|
4989
4992
|
labelRight: r,
|
@@ -4993,7 +4996,7 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
4993
4996
|
}) => {
|
4994
4997
|
const i = "max-h-8 py-0 px-2", o = "max-h-9 h-8 px-3", c = "max-h-12 py-2 px-4";
|
4995
4998
|
switch (e) {
|
4996
|
-
case
|
4999
|
+
case Wt:
|
4997
5000
|
case Pt:
|
4998
5001
|
return y({
|
4999
5002
|
[i]: t === "small",
|
@@ -5019,7 +5022,7 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5019
5022
|
"h-12": t === "large" && n && (r || s)
|
5020
5023
|
});
|
5021
5024
|
}
|
5022
|
-
},
|
5025
|
+
}, Di = ({
|
5023
5026
|
type: e,
|
5024
5027
|
size: t,
|
5025
5028
|
labelRight: r,
|
@@ -5027,7 +5030,7 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5027
5030
|
}) => {
|
5028
5031
|
const a = "text-sm font-medium", n = "text-base font-medium", i = "text-lg font-medium";
|
5029
5032
|
switch (e) {
|
5030
|
-
case
|
5033
|
+
case Wt:
|
5031
5034
|
case Pt:
|
5032
5035
|
return y({
|
5033
5036
|
"text-center": e === Pt,
|
@@ -5042,7 +5045,7 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5042
5045
|
[i]: t === "large" && (r || s)
|
5043
5046
|
});
|
5044
5047
|
}
|
5045
|
-
},
|
5048
|
+
}, Mi = ({
|
5046
5049
|
mode: e,
|
5047
5050
|
noBackground: t,
|
5048
5051
|
truncate: r,
|
@@ -5078,7 +5081,7 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5078
5081
|
return y("not-prose text-copy-lighter", {
|
5079
5082
|
truncate: r
|
5080
5083
|
});
|
5081
|
-
},
|
5084
|
+
}, Li = ({
|
5082
5085
|
mode: e,
|
5083
5086
|
noBackground: t,
|
5084
5087
|
variant: r
|
@@ -5108,13 +5111,13 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5108
5111
|
if (r === "selected")
|
5109
5112
|
return "bg-action-selected-dark";
|
5110
5113
|
}
|
5111
|
-
},
|
5114
|
+
}, Ui = ({
|
5112
5115
|
radius: e
|
5113
5116
|
}) => y({
|
5114
5117
|
"rounded-full": e === "large",
|
5115
5118
|
"rounded-md": e === "medium",
|
5116
5119
|
"rounded-xs": e === "small"
|
5117
|
-
}),
|
5120
|
+
}), Fi = ({
|
5118
5121
|
mode: e,
|
5119
5122
|
disabled: t,
|
5120
5123
|
variant: r
|
@@ -5152,7 +5155,7 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5152
5155
|
});
|
5153
5156
|
if (r === "selected")
|
5154
5157
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
5155
|
-
},
|
5158
|
+
}, Hi = ({
|
5156
5159
|
mode: e,
|
5157
5160
|
disabled: t,
|
5158
5161
|
variant: r
|
@@ -5190,7 +5193,7 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5190
5193
|
});
|
5191
5194
|
if (r === "selected")
|
5192
5195
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
5193
|
-
},
|
5196
|
+
}, Ki = ({
|
5194
5197
|
mode: e,
|
5195
5198
|
noBorder: t,
|
5196
5199
|
variant: r
|
@@ -5220,14 +5223,14 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5220
5223
|
});
|
5221
5224
|
if (r === "selected")
|
5222
5225
|
return "border border-border-selected-dark";
|
5223
|
-
},
|
5226
|
+
}, Gi = ({
|
5224
5227
|
focusMode: e
|
5225
5228
|
}) => y("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
5226
5229
|
"focus:outline-focus-dark": e === "dark",
|
5227
5230
|
"focus:outline-focus-light": e === "light",
|
5228
5231
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
5229
5232
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
5230
|
-
}),
|
5233
|
+
}), Bi = ({
|
5231
5234
|
mode: e,
|
5232
5235
|
raw: t,
|
5233
5236
|
iconClassName: r,
|
@@ -5254,11 +5257,11 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5254
5257
|
} : s === "selected" && (a = {
|
5255
5258
|
"text-copy-lighter": !0
|
5256
5259
|
}), y(a, r);
|
5257
|
-
},
|
5260
|
+
}, Wi = ({
|
5258
5261
|
animated: e
|
5259
5262
|
}) => y({
|
5260
5263
|
"transition-opacity duration-300 ease-in-out": e
|
5261
|
-
}),
|
5264
|
+
}), gs = ({
|
5262
5265
|
type: e,
|
5263
5266
|
className: t,
|
5264
5267
|
raw: r,
|
@@ -5278,15 +5281,15 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5278
5281
|
animated: b
|
5279
5282
|
}) => (l || (l = "primary"), r ? y(Er, t) : y(
|
5280
5283
|
Er,
|
5281
|
-
|
5284
|
+
Mi({
|
5282
5285
|
mode: s,
|
5283
5286
|
variant: l,
|
5284
5287
|
noBackground: u,
|
5285
5288
|
truncate: m
|
5286
5289
|
}),
|
5287
|
-
|
5288
|
-
|
5289
|
-
|
5290
|
+
Li({ mode: s, noBackground: u, variant: l }),
|
5291
|
+
Ui({ radius: g }),
|
5292
|
+
xi({
|
5290
5293
|
type: e,
|
5291
5294
|
size: o,
|
5292
5295
|
labelRight: f,
|
@@ -5294,11 +5297,11 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5294
5297
|
align: p,
|
5295
5298
|
animated: b
|
5296
5299
|
}),
|
5297
|
-
|
5298
|
-
|
5299
|
-
|
5300
|
-
|
5301
|
-
|
5300
|
+
Di({ type: e, size: o, labelRight: f, labelLeft: d }),
|
5301
|
+
Ki({ mode: s, variant: l, noBorder: c }),
|
5302
|
+
Gi({ focusMode: a }),
|
5303
|
+
Fi({ mode: s, variant: l, disabled: n }),
|
5304
|
+
Hi({ mode: s, variant: l, disabled: n }),
|
5302
5305
|
{
|
5303
5306
|
"w-full": i,
|
5304
5307
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
@@ -5307,23 +5310,23 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5307
5310
|
"transition-[width] duration-300 ease-in": e === ct && b
|
5308
5311
|
}),
|
5309
5312
|
t
|
5310
|
-
)),
|
5313
|
+
)), qi = (e, t, r) => {
|
5311
5314
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof e?.currentTarget?.focus == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
5312
|
-
},
|
5315
|
+
}, qt = ie.forwardRef((e, t) => {
|
5313
5316
|
const { onClick: r, noInternalClick: s = !1, ...a } = e;
|
5314
5317
|
return /* @__PURE__ */ h(
|
5315
5318
|
"button",
|
5316
5319
|
{
|
5317
5320
|
ref: t,
|
5318
5321
|
onClick: (n) => {
|
5319
|
-
|
5322
|
+
qi(n, s, r);
|
5320
5323
|
},
|
5321
5324
|
...a
|
5322
5325
|
}
|
5323
5326
|
);
|
5324
5327
|
});
|
5325
|
-
|
5326
|
-
const
|
5328
|
+
qt.displayName = "BaseButton";
|
5329
|
+
const bs = ie.forwardRef(
|
5327
5330
|
({
|
5328
5331
|
children: e,
|
5329
5332
|
disabled: t = !1,
|
@@ -5339,8 +5342,8 @@ const gs = ie.forwardRef(
|
|
5339
5342
|
radius: u = "large",
|
5340
5343
|
...l
|
5341
5344
|
}, m) => {
|
5342
|
-
const p =
|
5343
|
-
type:
|
5345
|
+
const p = gs({
|
5346
|
+
type: Wt,
|
5344
5347
|
mode: r,
|
5345
5348
|
focusMode: s,
|
5346
5349
|
fullWidth: a,
|
@@ -5354,7 +5357,7 @@ const gs = ie.forwardRef(
|
|
5354
5357
|
radius: u
|
5355
5358
|
});
|
5356
5359
|
return /* @__PURE__ */ h(
|
5357
|
-
|
5360
|
+
qt,
|
5358
5361
|
{
|
5359
5362
|
ref: m,
|
5360
5363
|
className: p,
|
@@ -5365,14 +5368,14 @@ const gs = ie.forwardRef(
|
|
5365
5368
|
);
|
5366
5369
|
}
|
5367
5370
|
);
|
5368
|
-
|
5369
|
-
function
|
5371
|
+
bs.displayName = "Button";
|
5372
|
+
function ji() {
|
5370
5373
|
const e = j(!1);
|
5371
|
-
return
|
5374
|
+
return W(() => (e.current = !0, () => {
|
5372
5375
|
e.current = !1;
|
5373
5376
|
}), []), Y(() => e.current, []);
|
5374
5377
|
}
|
5375
|
-
function
|
5378
|
+
function Es(e) {
|
5376
5379
|
return Je(() => e.every((t) => t == null) ? () => {
|
5377
5380
|
} : (t) => {
|
5378
5381
|
e.forEach((r) => {
|
@@ -5380,7 +5383,7 @@ function bs(e) {
|
|
5380
5383
|
});
|
5381
5384
|
}, [...e]);
|
5382
5385
|
}
|
5383
|
-
const
|
5386
|
+
const Vi = {
|
5384
5387
|
x: 0,
|
5385
5388
|
y: 0,
|
5386
5389
|
width: 0,
|
@@ -5391,18 +5394,18 @@ const Wi = {
|
|
5391
5394
|
right: 0
|
5392
5395
|
};
|
5393
5396
|
function je(e) {
|
5394
|
-
const t =
|
5397
|
+
const t = ji(), r = j(0), s = j(null), [a, n] = ne(Vi), i = Je(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((o) => {
|
5395
5398
|
const c = o[0];
|
5396
5399
|
c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
5397
5400
|
s.current && t() && n(c.contentRect);
|
5398
5401
|
}));
|
5399
5402
|
}), [t]);
|
5400
|
-
return
|
5403
|
+
return W(() => (s.current && i?.observe(s.current, e), () => {
|
5401
5404
|
i?.disconnect(), r.current && cancelAnimationFrame(r.current);
|
5402
5405
|
}), [i, e]), [s, a];
|
5403
5406
|
}
|
5404
|
-
function
|
5405
|
-
const t =
|
5407
|
+
function ws(e) {
|
5408
|
+
const t = Rs();
|
5406
5409
|
if (!e)
|
5407
5410
|
return t;
|
5408
5411
|
if (typeof e == "number" || typeof e == "string")
|
@@ -5419,14 +5422,14 @@ const Be = {
|
|
5419
5422
|
// w-8
|
5420
5423
|
large: 48
|
5421
5424
|
// w-12
|
5422
|
-
},
|
5425
|
+
}, Ji = {
|
5423
5426
|
small: 16,
|
5424
5427
|
// px-2 x 2
|
5425
5428
|
medium: 24,
|
5426
5429
|
// px-3 x 2
|
5427
5430
|
large: 32
|
5428
5431
|
// px-4 x 2
|
5429
|
-
},
|
5432
|
+
}, Qi = 2, Yi = 300, rt = ie.forwardRef(
|
5430
5433
|
({
|
5431
5434
|
children: e,
|
5432
5435
|
disabled: t = !1,
|
@@ -5450,7 +5453,7 @@ const Be = {
|
|
5450
5453
|
animated: A = !1,
|
5451
5454
|
...K
|
5452
5455
|
}, R) => {
|
5453
|
-
const Q =
|
5456
|
+
const Q = gs({
|
5454
5457
|
type: ct,
|
5455
5458
|
mode: r,
|
5456
5459
|
focusMode: s,
|
@@ -5467,15 +5470,15 @@ const Be = {
|
|
5467
5470
|
radius: b,
|
5468
5471
|
variant: E,
|
5469
5472
|
animated: A
|
5470
|
-
}), C =
|
5473
|
+
}), C = Bi({ mode: r, raw: o, iconClassName: k, variant: E }), v = Wi({ animated: A }), x = "flex items-center justify-center relative w-full h-full overflow-hidden", [_, I] = je(), [N, V] = je(), [ce, Ee] = je(), w = j(0), T = j(null), S = j(null), le = Es([R, T]);
|
5471
5474
|
return Qe(() => {
|
5472
|
-
ce && ce.current && A && (w.current = Ee.width +
|
5475
|
+
ce && ce.current && A && (w.current = Ee.width + Ji[u] + (c ? 0 : Qi), T.current && !T.current.style.width && (T.current.style.width = `${Be[u]}px`));
|
5473
5476
|
}, [Ee, ce, u, c, A]), Qe(() => {
|
5474
5477
|
if (T && T.current && A) {
|
5475
5478
|
let ue = Be[u];
|
5476
5479
|
l && _ && I.width > 0 ? ue = I.width + w.current : m && N && V.width > 0 && (ue = V.width + w.current), S.current && clearTimeout(S.current), ue !== parseInt(T.current.style.width || "0", 10) && (_.current && (_.current.style.opacity = "0"), N.current && (N.current.style.opacity = "0"), T.current.style.width = `${ue}px`, ue > Be[u] && (S.current = setTimeout(() => {
|
5477
5480
|
_.current && l && (_.current.style.opacity = "1"), N.current && m && (N.current.style.opacity = "1"), S.current = null;
|
5478
|
-
},
|
5481
|
+
}, Yi * 0.8))), ue === Be[u] && (_.current && (_.current.style.opacity = "0"), N.current && (N.current.style.opacity = "0"));
|
5479
5482
|
}
|
5480
5483
|
}, [
|
5481
5484
|
I,
|
@@ -5486,10 +5489,10 @@ const Be = {
|
|
5486
5489
|
N,
|
5487
5490
|
u,
|
5488
5491
|
A
|
5489
|
-
]),
|
5492
|
+
]), W(() => () => {
|
5490
5493
|
S.current && clearTimeout(S.current);
|
5491
5494
|
}, []), /* @__PURE__ */ h(
|
5492
|
-
|
5495
|
+
qt,
|
5493
5496
|
{
|
5494
5497
|
ref: le,
|
5495
5498
|
className: Q,
|
@@ -5497,7 +5500,7 @@ const Be = {
|
|
5497
5500
|
type: i,
|
5498
5501
|
"aria-label": f || d,
|
5499
5502
|
...K,
|
5500
|
-
children: /* @__PURE__ */
|
5503
|
+
children: /* @__PURE__ */ q("div", { className: x, children: [
|
5501
5504
|
/* @__PURE__ */ h(
|
5502
5505
|
wr,
|
5503
5506
|
{
|
@@ -5552,7 +5555,7 @@ try {
|
|
5552
5555
|
});
|
5553
5556
|
} catch {
|
5554
5557
|
}
|
5555
|
-
const
|
5558
|
+
const zi = ie.forwardRef(
|
5556
5559
|
({
|
5557
5560
|
children: e,
|
5558
5561
|
mode: t = "system",
|
@@ -5592,8 +5595,8 @@ const Qi = ie.forwardRef(
|
|
5592
5595
|
) });
|
5593
5596
|
}
|
5594
5597
|
);
|
5595
|
-
|
5596
|
-
const Ve = "av-card",
|
5598
|
+
zi.displayName = "ButtonSort";
|
5599
|
+
const Ve = "av-card", Xi = ({
|
5597
5600
|
className: e,
|
5598
5601
|
headerClassName: t,
|
5599
5602
|
bodyClassName: r,
|
@@ -5633,7 +5636,7 @@ const Ve = "av-card", Yi = ({
|
|
5633
5636
|
footer: d
|
5634
5637
|
};
|
5635
5638
|
};
|
5636
|
-
function
|
5639
|
+
function Zi({
|
5637
5640
|
id: e,
|
5638
5641
|
content: t,
|
5639
5642
|
userAriaLabelledby: r,
|
@@ -5641,7 +5644,7 @@ function zi({
|
|
5641
5644
|
}) {
|
5642
5645
|
return typeof t == "string" ? /* @__PURE__ */ h("h2", { id: e, className: s, children: t }) : r ? /* @__PURE__ */ h("div", { className: s, children: t }) : t ? /* @__PURE__ */ h("div", { className: s, id: e, children: t }) : null;
|
5643
5646
|
}
|
5644
|
-
const
|
5647
|
+
const eo = ({
|
5645
5648
|
header: e,
|
5646
5649
|
headerClassName: t,
|
5647
5650
|
footer: r,
|
@@ -5656,7 +5659,7 @@ const Xi = ({
|
|
5656
5659
|
...u
|
5657
5660
|
}) => {
|
5658
5661
|
let l = null, m = null;
|
5659
|
-
const p = typeof e == "string", g =
|
5662
|
+
const p = typeof e == "string", g = ws(Ve), b = Xi({
|
5660
5663
|
className: n,
|
5661
5664
|
headerClassName: t,
|
5662
5665
|
bodyClassName: i,
|
@@ -5665,7 +5668,7 @@ const Xi = ({
|
|
5665
5668
|
compact: f,
|
5666
5669
|
noBorder: d
|
5667
5670
|
});
|
5668
|
-
return p ? (l = g, m = l) : !p && e && o ? (l = null, m = o) : !p && e && !o ? (l = g, m = l) : (l = null, m = o || null), /* @__PURE__ */ h("div", { className: b.wrapper, children: /* @__PURE__ */
|
5671
|
+
return p ? (l = g, m = l) : !p && e && o ? (l = null, m = o) : !p && e && !o ? (l = g, m = l) : (l = null, m = o || null), /* @__PURE__ */ h("div", { className: b.wrapper, children: /* @__PURE__ */ q(
|
5669
5672
|
"section",
|
5670
5673
|
{
|
5671
5674
|
...m && {
|
@@ -5675,7 +5678,7 @@ const Xi = ({
|
|
5675
5678
|
...u,
|
5676
5679
|
children: [
|
5677
5680
|
/* @__PURE__ */ h(
|
5678
|
-
|
5681
|
+
Zi,
|
5679
5682
|
{
|
5680
5683
|
...l && { id: l },
|
5681
5684
|
content: e,
|
@@ -5714,7 +5717,7 @@ const lt = ({
|
|
5714
5717
|
...c
|
5715
5718
|
}) => {
|
5716
5719
|
const f = y(n, s);
|
5717
|
-
return /* @__PURE__ */
|
5720
|
+
return /* @__PURE__ */ q(
|
5718
5721
|
"svg",
|
5719
5722
|
{
|
5720
5723
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -5745,7 +5748,7 @@ try {
|
|
5745
5748
|
});
|
5746
5749
|
} catch {
|
5747
5750
|
}
|
5748
|
-
const
|
5751
|
+
const to = ({
|
5749
5752
|
className: e,
|
5750
5753
|
viewBox: t,
|
5751
5754
|
title: r,
|
@@ -5762,13 +5765,13 @@ const Zi = ({
|
|
5762
5765
|
...a,
|
5763
5766
|
children: /* @__PURE__ */ h("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" })
|
5764
5767
|
}
|
5765
|
-
),
|
5768
|
+
), ro = ({
|
5766
5769
|
className: e,
|
5767
5770
|
viewBox: t,
|
5768
5771
|
title: r,
|
5769
5772
|
monotone: s,
|
5770
5773
|
...a
|
5771
|
-
}) => /* @__PURE__ */
|
5774
|
+
}) => /* @__PURE__ */ q(
|
5772
5775
|
lt,
|
5773
5776
|
{
|
5774
5777
|
defaultViewBox: "0 0 640 512",
|
@@ -5788,7 +5791,7 @@ const Zi = ({
|
|
5788
5791
|
/* @__PURE__ */ h("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" })
|
5789
5792
|
]
|
5790
5793
|
}
|
5791
|
-
),
|
5794
|
+
), so = ({
|
5792
5795
|
className: e,
|
5793
5796
|
viewBox: t,
|
5794
5797
|
title: r,
|
@@ -5796,7 +5799,7 @@ const Zi = ({
|
|
5796
5799
|
...a
|
5797
5800
|
}) => {
|
5798
5801
|
const n = s ? "1" : "0.4";
|
5799
|
-
return /* @__PURE__ */
|
5802
|
+
return /* @__PURE__ */ q(
|
5800
5803
|
lt,
|
5801
5804
|
{
|
5802
5805
|
defaultViewBox: "0 0 190 190",
|
@@ -5824,13 +5827,13 @@ const Zi = ({
|
|
5824
5827
|
]
|
5825
5828
|
}
|
5826
5829
|
);
|
5827
|
-
},
|
5830
|
+
}, ao = ({
|
5828
5831
|
className: e,
|
5829
5832
|
viewBox: t,
|
5830
5833
|
title: r,
|
5831
5834
|
monotone: s,
|
5832
5835
|
...a
|
5833
|
-
}) => /* @__PURE__ */
|
5836
|
+
}) => /* @__PURE__ */ q(
|
5834
5837
|
lt,
|
5835
5838
|
{
|
5836
5839
|
defaultViewBox: "0 0 576 512",
|
@@ -5864,10 +5867,10 @@ try {
|
|
5864
5867
|
});
|
5865
5868
|
} catch {
|
5866
5869
|
}
|
5867
|
-
const
|
5870
|
+
const no = "av-flexgrid", We = "av-flexgrid-item", st = 0.25, $t = ie.createContext({
|
5868
5871
|
columnGap: 0,
|
5869
5872
|
rowGap: 0
|
5870
|
-
}),
|
5873
|
+
}), io = ({
|
5871
5874
|
children: e,
|
5872
5875
|
className: t,
|
5873
5876
|
columnGap: r = 1,
|
@@ -5893,7 +5896,7 @@ const so = "av-flexgrid", qe = "av-flexgrid-item", st = 0.25, $t = ie.createCont
|
|
5893
5896
|
marginLeft: r * -1 * st + "rem",
|
5894
5897
|
marginTop: s * -1 * st + "rem"
|
5895
5898
|
}, u = y(
|
5896
|
-
|
5899
|
+
no,
|
5897
5900
|
"box-border flex flex-wrap"
|
5898
5901
|
), l = { columnGap: r, rowGap: s };
|
5899
5902
|
return t ? /* @__PURE__ */ h("div", { className: t, children: /* @__PURE__ */ h("div", { className: u, style: d, ...f, children: /* @__PURE__ */ h($t.Provider, { value: l, children: e }) }) }) : /* @__PURE__ */ h("div", { className: u, style: d, ...f, children: /* @__PURE__ */ h($t.Provider, { value: l, children: e }) });
|
@@ -5970,25 +5973,25 @@ const so = "av-flexgrid", qe = "av-flexgrid-item", st = 0.25, $t = ie.createCont
|
|
5970
5973
|
"lg:basis-full": e === 12 && t === "lg",
|
5971
5974
|
"xl:basis-full": e === 12 && t === "xl",
|
5972
5975
|
"2xl:basis-full": e === 12 && t === "2xl"
|
5973
|
-
}),
|
5976
|
+
}), oo = ({
|
5974
5977
|
className: e,
|
5975
5978
|
span: t
|
5976
5979
|
}) => {
|
5977
5980
|
if (!t)
|
5978
|
-
return y(e,
|
5981
|
+
return y(e, We, "box-border basis-auto");
|
5979
5982
|
if (typeof t == "number")
|
5980
|
-
return y(e,
|
5983
|
+
return y(e, We, "box-border max-w-full", {
|
5981
5984
|
[`${St(t)}`]: !0
|
5982
5985
|
});
|
5983
5986
|
if (typeof t == "string")
|
5984
|
-
return y(e,
|
5987
|
+
return y(e, We, "box-border basis-auto", {
|
5985
5988
|
"max-w-full grow": t === "auto"
|
5986
5989
|
});
|
5987
5990
|
if (typeof t == "object") {
|
5988
5991
|
const r = Object.entries(t).map(([s, a]) => s === "fallback" ? St(a) : St(a, s));
|
5989
5992
|
return y(
|
5990
5993
|
e,
|
5991
|
-
|
5994
|
+
We,
|
5992
5995
|
"box-border",
|
5993
5996
|
r
|
5994
5997
|
);
|
@@ -6002,7 +6005,7 @@ const so = "av-flexgrid", qe = "av-flexgrid-item", st = 0.25, $t = ie.createCont
|
|
6002
6005
|
const { columnGap: a, rowGap: n } = at($t), i = {
|
6003
6006
|
paddingLeft: a * st + "rem",
|
6004
6007
|
paddingTop: n * st + "rem"
|
6005
|
-
}, o =
|
6008
|
+
}, o = oo({
|
6006
6009
|
className: t,
|
6007
6010
|
span: r
|
6008
6011
|
});
|
@@ -6021,7 +6024,7 @@ try {
|
|
6021
6024
|
});
|
6022
6025
|
} catch {
|
6023
6026
|
}
|
6024
|
-
const
|
6027
|
+
const Ss = "SET_ANNOUNCEMENT", vs = "CLEAR_ANNOUNCEMENT", co = {
|
6025
6028
|
alert: null,
|
6026
6029
|
alertdialog: null,
|
6027
6030
|
log: "polite",
|
@@ -6029,14 +6032,14 @@ const ws = "SET_ANNOUNCEMENT", Ss = "CLEAR_ANNOUNCEMENT", io = {
|
|
6029
6032
|
progressbar: null,
|
6030
6033
|
status: "polite",
|
6031
6034
|
timer: "assertive"
|
6032
|
-
},
|
6035
|
+
}, lo = (e, t) => {
|
6033
6036
|
switch (t?.type) {
|
6034
|
-
case
|
6037
|
+
case Ss:
|
6035
6038
|
return {
|
6036
6039
|
...e,
|
6037
6040
|
announcement: t.payload
|
6038
6041
|
};
|
6039
|
-
case
|
6042
|
+
case vs:
|
6040
6043
|
return {
|
6041
6044
|
...e,
|
6042
6045
|
announcement: null
|
@@ -6044,12 +6047,12 @@ const ws = "SET_ANNOUNCEMENT", Ss = "CLEAR_ANNOUNCEMENT", io = {
|
|
6044
6047
|
default:
|
6045
6048
|
return e;
|
6046
6049
|
}
|
6047
|
-
},
|
6050
|
+
}, uo = ({
|
6048
6051
|
onAnnouncementClear: e,
|
6049
6052
|
dispatch: t
|
6050
6053
|
}) => {
|
6051
6054
|
t({
|
6052
|
-
type:
|
6055
|
+
type: vs
|
6053
6056
|
}), typeof e == "function" && e();
|
6054
6057
|
}, Sr = ({
|
6055
6058
|
children: e,
|
@@ -6059,16 +6062,16 @@ const ws = "SET_ANNOUNCEMENT", Ss = "CLEAR_ANNOUNCEMENT", io = {
|
|
6059
6062
|
dispatch: a
|
6060
6063
|
}) => {
|
6061
6064
|
clearTimeout(r.current), e !== null && a({
|
6062
|
-
type:
|
6065
|
+
type: Ss,
|
6063
6066
|
payload: e
|
6064
6067
|
}), t && (r.current = setTimeout(
|
6065
|
-
() =>
|
6068
|
+
() => uo({
|
6066
6069
|
onAnnouncementClear: s,
|
6067
6070
|
dispatch: a
|
6068
6071
|
}),
|
6069
6072
|
t
|
6070
6073
|
));
|
6071
|
-
},
|
6074
|
+
}, ho = ({
|
6072
6075
|
children: e,
|
6073
6076
|
announcementTimeoutRef: t,
|
6074
6077
|
announcementDelay: r,
|
@@ -6091,7 +6094,7 @@ const ws = "SET_ANNOUNCEMENT", Ss = "CLEAR_ANNOUNCEMENT", io = {
|
|
6091
6094
|
dispatch: i
|
6092
6095
|
});
|
6093
6096
|
};
|
6094
|
-
function
|
6097
|
+
function Ts({
|
6095
6098
|
children: e,
|
6096
6099
|
className: t,
|
6097
6100
|
politeness: r,
|
@@ -6102,12 +6105,12 @@ function vs({
|
|
6102
6105
|
visible: o,
|
6103
6106
|
...c
|
6104
6107
|
}) {
|
6105
|
-
const f = j(null), d = j(null), [u, l] = Ir(
|
6108
|
+
const f = j(null), d = j(null), [u, l] = Ir(lo, {
|
6106
6109
|
announcement: null
|
6107
6110
|
});
|
6108
6111
|
let m = r;
|
6109
|
-
typeof m > "u" && (m = s ?
|
6110
|
-
|
6112
|
+
typeof m > "u" && (m = s ? co[s] : "assertive"), W(() => {
|
6113
|
+
ho({
|
6111
6114
|
announcementTimeoutRef: f,
|
6112
6115
|
announcementDelay: a,
|
6113
6116
|
children: e,
|
@@ -6149,21 +6152,21 @@ try {
|
|
6149
6152
|
});
|
6150
6153
|
} catch {
|
6151
6154
|
}
|
6152
|
-
const
|
6155
|
+
const As = "av-text-input", fo = "av-text-input-wrapper", vt = "av-text-input-helper-text", mo = ({
|
6153
6156
|
mode: e
|
6154
6157
|
}) => y({
|
6155
6158
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
6156
6159
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
6157
6160
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
6158
6161
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
6159
|
-
}),
|
6162
|
+
}), po = ({
|
6160
6163
|
focusMode: e
|
6161
6164
|
}) => y("focus:outline focus:outline-2 focus:outline-offset-2", {
|
6162
6165
|
"focus:outline-focus-dark": e === "dark",
|
6163
6166
|
"focus:outline-focus-light": e === "light",
|
6164
6167
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
6165
6168
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
6166
|
-
}),
|
6169
|
+
}), yo = ({
|
6167
6170
|
noBorder: e,
|
6168
6171
|
error: t
|
6169
6172
|
}) => y("border-2", {
|
@@ -6171,7 +6174,7 @@ const Ts = "av-text-input", uo = "av-text-input-wrapper", vt = "av-text-input-he
|
|
6171
6174
|
"focus:border-border-dark": !e && t,
|
6172
6175
|
"border-border-error-dark": !e && t,
|
6173
6176
|
"border-transparent": e
|
6174
|
-
}),
|
6177
|
+
}), go = ({
|
6175
6178
|
disabled: e,
|
6176
6179
|
raw: t,
|
6177
6180
|
error: r,
|
@@ -6195,7 +6198,7 @@ const Ts = "av-text-input", uo = "av-text-input-wrapper", vt = "av-text-input-he
|
|
6195
6198
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": s === "system",
|
6196
6199
|
"text-copy-lighter dark:text-copy-error-dark": s === "alt-system"
|
6197
6200
|
});
|
6198
|
-
},
|
6201
|
+
}, bo = ({
|
6199
6202
|
error: e,
|
6200
6203
|
raw: t,
|
6201
6204
|
mode: r,
|
@@ -6222,7 +6225,7 @@ const Ts = "av-text-input", uo = "av-text-input-wrapper", vt = "av-text-input-he
|
|
6222
6225
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": r === "system",
|
6223
6226
|
"dark:text-copy-error-dark text-copy-error-light bg-surface-darker": r === "alt-system"
|
6224
6227
|
});
|
6225
|
-
},
|
6228
|
+
}, Eo = ({
|
6226
6229
|
className: e,
|
6227
6230
|
inputClassName: t,
|
6228
6231
|
raw: r,
|
@@ -6236,7 +6239,7 @@ const Ts = "av-text-input", uo = "av-text-input-wrapper", vt = "av-text-input-he
|
|
6236
6239
|
}) => {
|
6237
6240
|
const d = r ? e : y(
|
6238
6241
|
"relative flex w-full flex-col justify-center",
|
6239
|
-
|
6242
|
+
fo,
|
6240
6243
|
e
|
6241
6244
|
);
|
6242
6245
|
let u = "";
|
@@ -6258,22 +6261,22 @@ const Ts = "av-text-input", uo = "av-text-input-wrapper", vt = "av-text-input-he
|
|
6258
6261
|
break;
|
6259
6262
|
}
|
6260
6263
|
const l = r ? y(t) : y(
|
6261
|
-
|
6264
|
+
As,
|
6262
6265
|
u,
|
6263
6266
|
"rounded-md text-base px-4",
|
6264
|
-
|
6265
|
-
|
6266
|
-
|
6267
|
+
mo({ mode: i }),
|
6268
|
+
po({ focusMode: o }),
|
6269
|
+
yo({ noBorder: a, error: n }),
|
6267
6270
|
{
|
6268
6271
|
"disabled:cursor-not-allowed disabled:opacity-50": s
|
6269
6272
|
},
|
6270
6273
|
t
|
6271
|
-
), m = r ? void 0 : "sr-only", p =
|
6274
|
+
), m = r ? void 0 : "sr-only", p = go({
|
6272
6275
|
disabled: s,
|
6273
6276
|
raw: r,
|
6274
6277
|
error: n,
|
6275
6278
|
mode: i
|
6276
|
-
}), g =
|
6279
|
+
}), g = bo({
|
6277
6280
|
error: n,
|
6278
6281
|
raw: r,
|
6279
6282
|
mode: i,
|
@@ -6309,13 +6312,13 @@ const Ts = "av-text-input", uo = "av-text-input-wrapper", vt = "av-text-input-he
|
|
6309
6312
|
size: E = "md",
|
6310
6313
|
...k
|
6311
6314
|
}, A) => {
|
6312
|
-
const [K, R] = je(), [Q, C] = ne(0), v =
|
6315
|
+
const [K, R] = je(), [Q, C] = ne(0), v = ws({ id: e, prefix: `${As}-` }), x = `${t} error, ${p}`, _ = j(null), I = j(null), N = {
|
6313
6316
|
xs: { label: "-25px", helperText: "30px" },
|
6314
6317
|
sm: { label: "-29px", helperText: "34px" },
|
6315
6318
|
md: { label: "-33px", helperText: "38px" },
|
6316
6319
|
lg: { label: "-15px", helperText: "22px" },
|
6317
6320
|
xl: { label: "-19px", helperText: "25px" }
|
6318
|
-
}, V =
|
6321
|
+
}, V = Eo({
|
6319
6322
|
className: n,
|
6320
6323
|
inputClassName: i,
|
6321
6324
|
error: s,
|
@@ -6335,7 +6338,7 @@ const Ts = "av-text-input", uo = "av-text-input-wrapper", vt = "av-text-input-he
|
|
6335
6338
|
"--av-text-input-helper-text",
|
6336
6339
|
Ee
|
6337
6340
|
);
|
6338
|
-
}, [E]), /* @__PURE__ */
|
6341
|
+
}, [E]), /* @__PURE__ */ q("div", { className: V.wrapper, children: [
|
6339
6342
|
/* @__PURE__ */ h(
|
6340
6343
|
"label",
|
6341
6344
|
{
|
@@ -6388,12 +6391,12 @@ const Ts = "av-text-input", uo = "av-text-input-wrapper", vt = "av-text-input-he
|
|
6388
6391
|
children: g
|
6389
6392
|
}
|
6390
6393
|
),
|
6391
|
-
s && p && /* @__PURE__ */ h(
|
6394
|
+
s && p && /* @__PURE__ */ h(Ts, { politeness: "polite", clearAnnouncementDelay: 500, children: x })
|
6392
6395
|
] });
|
6393
6396
|
}
|
6394
6397
|
);
|
6395
6398
|
jt.displayName = "TextInput";
|
6396
|
-
const
|
6399
|
+
const wo = 500, So = 5e3, vo = 2e4, Is = ie.forwardRef(
|
6397
6400
|
({
|
6398
6401
|
name: e,
|
6399
6402
|
disabled: t,
|
@@ -6410,19 +6413,19 @@ const bo = 500, Eo = 5e3, wo = 2e4, As = ie.forwardRef(
|
|
6410
6413
|
const [l, m] = ne(!0), [p, g] = ne({
|
6411
6414
|
message: null,
|
6412
6415
|
politeness: null
|
6413
|
-
}), b = j(!0), E = j(null), k = j(null), A =
|
6416
|
+
}), b = j(!0), E = j(null), k = j(null), A = Es([u, k]), K = l ? "Show" : "Hide", R = () => {
|
6414
6417
|
E.current && clearTimeout(E.current), b.current || (E.current = setTimeout(() => {
|
6415
6418
|
b.current = !0, m(!0), g({
|
6416
|
-
announcementTimeout:
|
6419
|
+
announcementTimeout: So,
|
6417
6420
|
politeness: "polite",
|
6418
6421
|
message: `${r} hiding characters`
|
6419
6422
|
}), a && a(!0);
|
6420
|
-
},
|
6423
|
+
}, vo));
|
6421
6424
|
}, Q = (I) => {
|
6422
6425
|
I.preventDefault();
|
6423
6426
|
const N = !b.current;
|
6424
6427
|
b.current = N, R(), m(N), g({
|
6425
|
-
announcementTimeout:
|
6428
|
+
announcementTimeout: wo,
|
6426
6429
|
politeness: "assertive",
|
6427
6430
|
message: N ? "Characters hidden" : "Characters showing"
|
6428
6431
|
}), a && a(N);
|
@@ -6436,9 +6439,9 @@ const bo = 500, Eo = 5e3, wo = 2e4, As = ie.forwardRef(
|
|
6436
6439
|
}, _ = (I) => {
|
6437
6440
|
R(), n && n(I);
|
6438
6441
|
};
|
6439
|
-
return
|
6442
|
+
return W(() => () => {
|
6440
6443
|
E.current && clearTimeout(E.current);
|
6441
|
-
}, []), /* @__PURE__ */
|
6444
|
+
}, []), /* @__PURE__ */ q(Ar, { children: [
|
6442
6445
|
/* @__PURE__ */ h(
|
6443
6446
|
jt,
|
6444
6447
|
{
|
@@ -6462,7 +6465,7 @@ const bo = 500, Eo = 5e3, wo = 2e4, As = ie.forwardRef(
|
|
6462
6465
|
}
|
6463
6466
|
),
|
6464
6467
|
/* @__PURE__ */ h(
|
6465
|
-
|
6468
|
+
Ts,
|
6466
6469
|
{
|
6467
6470
|
role: "status",
|
6468
6471
|
politeness: p.politeness,
|
@@ -6473,7 +6476,7 @@ const bo = 500, Eo = 5e3, wo = 2e4, As = ie.forwardRef(
|
|
6473
6476
|
] });
|
6474
6477
|
}
|
6475
6478
|
);
|
6476
|
-
|
6479
|
+
Is.displayName = "TextInputMask";
|
6477
6480
|
/*!
|
6478
6481
|
@versini/ui-textinput v5.0.1
|
6479
6482
|
© 2025 gizmette.com
|
@@ -6487,9 +6490,9 @@ try {
|
|
6487
6490
|
});
|
6488
6491
|
} catch {
|
6489
6492
|
}
|
6490
|
-
const
|
6491
|
-
Press Enter to send it or Shift+Enter for new line.`,
|
6492
|
-
Press Ctrl+Enter to send it or Enter for new line.`,
|
6493
|
+
const To = "ASK! ME! ANYTHING!", Ao = "Log in", Io = "Sign in with a Passkey", Lc = "Log out", _o = "Password", Uc = "Usage", Fc = "Profile", Hc = "Settings", Kc = "Chat history", Gc = "About", Vt = "Type your message here.", Bc = Vt, Wc = `${Vt}
|
6494
|
+
Press Enter to send it or Shift+Enter for new line.`, qc = `${Vt}
|
6495
|
+
Press Ctrl+Enter to send it or Enter for new line.`, jc = "{{clipboard}}", P = "Review important details.", Vc = [
|
6493
6496
|
`Sometimes, ${O} just makes stuff up. ${P}`,
|
6494
6497
|
`${O} may invent facts on the fly. ${P}`,
|
6495
6498
|
`${O} may be confidently wrong. ${P}`,
|
@@ -6510,17 +6513,17 @@ Press Ctrl+Enter to send it or Enter for new line.`, Bc = "{{clipboard}}", P = "
|
|
6510
6513
|
`Sometimes, ${O} howls at the moon. ${P}`,
|
6511
6514
|
`${O} may dig up imaginary bones. ${P}`,
|
6512
6515
|
`${O} may sniff out nonsense. ${P}`
|
6513
|
-
],
|
6516
|
+
], Jc = "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.", Qc = "Default provider set to", Yc = "Chat successfully deleted!", zc = "Chat successfully saved!", Xc = "Caching enabled. Assets are now stored locally.", Zc = "Caching disabled. Local asset cache cleared.", el = "av-sassy", tl = {
|
6514
6517
|
0: ["January", "February", "March"],
|
6515
6518
|
3: ["April", "May", "June"],
|
6516
6519
|
6: ["July", "August", "September"],
|
6517
6520
|
9: ["October", "November", "December"]
|
6518
|
-
},
|
6521
|
+
}, rl = {
|
6519
6522
|
0: ["Jan", "Feb", "Mar"],
|
6520
6523
|
3: ["Apr", "May", "Jun"],
|
6521
6524
|
6: ["Jul", "Aug", "Sep"],
|
6522
6525
|
9: ["Oct", "Nov", "Dec"]
|
6523
|
-
},
|
6526
|
+
}, sl = {
|
6524
6527
|
PREFERENCES: {
|
6525
6528
|
TITLE: "User profile",
|
6526
6529
|
NAME: "Name",
|
@@ -6560,7 +6563,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Bc = "{{clipboard}}", P = "
|
|
6560
6563
|
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.",
|
6561
6564
|
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."
|
6562
6565
|
}
|
6563
|
-
},
|
6566
|
+
}, Ro = ({ className: e }) => /* @__PURE__ */ q(
|
6564
6567
|
"div",
|
6565
6568
|
{
|
6566
6569
|
className: y(
|
@@ -6568,37 +6571,37 @@ Press Ctrl+Enter to send it or Enter for new line.`, Bc = "{{clipboard}}", P = "
|
|
6568
6571
|
"flex items-center justify-center text-slate-300"
|
6569
6572
|
),
|
6570
6573
|
children: [
|
6571
|
-
/* @__PURE__ */ h("div", { className: "basis-1/4", children: /* @__PURE__ */ h(
|
6572
|
-
/* @__PURE__ */
|
6574
|
+
/* @__PURE__ */ h("div", { className: "basis-1/4", children: /* @__PURE__ */ h(to, {}) }),
|
6575
|
+
/* @__PURE__ */ q("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
|
6573
6576
|
/* @__PURE__ */ h("h1", { children: O }),
|
6574
|
-
/* @__PURE__ */ h("h2", { children:
|
6577
|
+
/* @__PURE__ */ h("h2", { children: To })
|
6575
6578
|
] })
|
6576
6579
|
]
|
6577
6580
|
}
|
6578
|
-
),
|
6581
|
+
), Co = () => {
|
6579
6582
|
const { login: e, logoutReason: t, loginWithPasskey: r } = as(), [s, a] = ne(""), [n, i] = ne(""), [o, c] = ne(!0), [f, d] = ne({
|
6580
6583
|
username: "",
|
6581
6584
|
password: ""
|
6582
6585
|
}), u = async (l) => {
|
6583
6586
|
l.preventDefault(), await e(f.username, f.password) || (i(""), a("Invalid username or password"));
|
6584
6587
|
};
|
6585
|
-
return
|
6588
|
+
return W(() => {
|
6586
6589
|
document.getElementById("logo")?.classList.add("fadeOut"), setTimeout(() => {
|
6587
6590
|
document.getElementById("root")?.classList.replace("app-hidden", "fadeIn");
|
6588
6591
|
}, 500);
|
6589
|
-
}),
|
6592
|
+
}), W(() => {
|
6590
6593
|
t && i(t);
|
6591
|
-
}, [t]), /* @__PURE__ */
|
6594
|
+
}, [t]), /* @__PURE__ */ q("main", { className: fs({ extraClass: "mt-5" }), children: [
|
6592
6595
|
/* @__PURE__ */ h(
|
6593
6596
|
"div",
|
6594
6597
|
{
|
6595
6598
|
className: hs({
|
6596
6599
|
extraClass: "rounded-md pb-10"
|
6597
6600
|
}),
|
6598
|
-
children: /* @__PURE__ */ h(
|
6601
|
+
children: /* @__PURE__ */ h(Ro, {})
|
6599
6602
|
}
|
6600
6603
|
),
|
6601
|
-
/* @__PURE__ */ h("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ h(
|
6604
|
+
/* @__PURE__ */ h("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ h(io, { alignHorizontal: "center", children: /* @__PURE__ */ h(he, { span: 6, children: /* @__PURE__ */ q(eo, { mode: "dark", children: [
|
6602
6605
|
/* @__PURE__ */ h(he, { span: 12, className: "mt-7", children: n && /* @__PURE__ */ h("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: n }) }),
|
6603
6606
|
/* @__PURE__ */ h(he, { span: 12, children: /* @__PURE__ */ h(
|
6604
6607
|
jt,
|
@@ -6622,7 +6625,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Bc = "{{clipboard}}", P = "
|
|
6622
6625
|
}
|
6623
6626
|
) }),
|
6624
6627
|
/* @__PURE__ */ h(he, { span: 12, children: /* @__PURE__ */ h(
|
6625
|
-
|
6628
|
+
Is,
|
6626
6629
|
{
|
6627
6630
|
className: "mt-7",
|
6628
6631
|
required: !0,
|
@@ -6632,14 +6635,14 @@ Press Ctrl+Enter to send it or Enter for new line.`, Bc = "{{clipboard}}", P = "
|
|
6632
6635
|
mode: "dark",
|
6633
6636
|
focusMode: "light",
|
6634
6637
|
name: "password",
|
6635
|
-
label:
|
6638
|
+
label: _o,
|
6636
6639
|
rightElement: /* @__PURE__ */ h(
|
6637
6640
|
rt,
|
6638
6641
|
{
|
6639
6642
|
focusMode: "light",
|
6640
6643
|
mode: "dark",
|
6641
6644
|
label: o ? "Show" : "Hide",
|
6642
|
-
children: o ? /* @__PURE__ */ h(
|
6645
|
+
children: o ? /* @__PURE__ */ h(ao, {}) : /* @__PURE__ */ h(ro, {})
|
6643
6646
|
}
|
6644
6647
|
),
|
6645
6648
|
onMaskChange: c,
|
@@ -6654,7 +6657,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Bc = "{{clipboard}}", P = "
|
|
6654
6657
|
}
|
6655
6658
|
) }),
|
6656
6659
|
/* @__PURE__ */ h(he, { span: 12, children: /* @__PURE__ */ h(
|
6657
|
-
|
6660
|
+
bs,
|
6658
6661
|
{
|
6659
6662
|
mode: "dark",
|
6660
6663
|
focusMode: "light",
|
@@ -6662,10 +6665,10 @@ Press Ctrl+Enter to send it or Enter for new line.`, Bc = "{{clipboard}}", P = "
|
|
6662
6665
|
noBorder: !0,
|
6663
6666
|
type: "submit",
|
6664
6667
|
className: "mt-7",
|
6665
|
-
children:
|
6668
|
+
children: Ao
|
6666
6669
|
}
|
6667
6670
|
) }),
|
6668
|
-
!ms() && /* @__PURE__ */
|
6671
|
+
!ms() && /* @__PURE__ */ q(Ar, { children: [
|
6669
6672
|
/* @__PURE__ */ h(he, { span: 12, children: /* @__PURE__ */ h("div", { className: "text-center text-copy-light mt-2 mb-2", children: "or" }) }),
|
6670
6673
|
/* @__PURE__ */ h(he, { span: 12, children: /* @__PURE__ */ h(
|
6671
6674
|
rt,
|
@@ -6675,35 +6678,35 @@ Press Ctrl+Enter to send it or Enter for new line.`, Bc = "{{clipboard}}", P = "
|
|
6675
6678
|
focusMode: "light",
|
6676
6679
|
fullWidth: !0,
|
6677
6680
|
className: "mb-4",
|
6678
|
-
labelRight:
|
6681
|
+
labelRight: Io,
|
6679
6682
|
onClick: r,
|
6680
|
-
children: /* @__PURE__ */ h(
|
6683
|
+
children: /* @__PURE__ */ h(so, { size: "size-7" })
|
6681
6684
|
}
|
6682
6685
|
) })
|
6683
6686
|
] })
|
6684
6687
|
] }) }) }) })
|
6685
6688
|
] });
|
6686
|
-
},
|
6689
|
+
}, ko = new URL(document.location.href).searchParams, vr = !!ko.get("debug") || !1, Oo = ks(() => import(
|
6687
6690
|
/* webpackChunkName: "LazyApp" */
|
6688
|
-
"./App.
|
6689
|
-
).then((e) => e.App)),
|
6691
|
+
"./App.DW3SEZAt.js"
|
6692
|
+
).then((e) => e.App)), No = new Xs(), Tr = ({
|
6690
6693
|
isComponent: e,
|
6691
6694
|
headerHeight: t
|
6692
6695
|
}) => {
|
6693
6696
|
const { isAuthenticated: r, isLoading: s, user: a, getAccessToken: n } = as();
|
6694
|
-
return s ? /* @__PURE__ */ h("div", {}) : r ? /* @__PURE__ */ h(
|
6695
|
-
|
6697
|
+
return s ? /* @__PURE__ */ h("div", {}) : r ? /* @__PURE__ */ h(Cs, { fallback: /* @__PURE__ */ h("div", {}), children: /* @__PURE__ */ h(Zs, { client: No, children: /* @__PURE__ */ h(
|
6698
|
+
li,
|
6696
6699
|
{
|
6697
6700
|
user: a?.username,
|
6698
6701
|
getAccessToken: n,
|
6699
|
-
children: /* @__PURE__ */ h(
|
6702
|
+
children: /* @__PURE__ */ h(Oo, { isComponent: e, headerHeight: t })
|
6700
6703
|
}
|
6701
|
-
) }) }) : /* @__PURE__ */ h(
|
6702
|
-
},
|
6704
|
+
) }) }) : /* @__PURE__ */ h(Co, {});
|
6705
|
+
}, Po = ({
|
6703
6706
|
isComponent: e = !1,
|
6704
6707
|
headerHeight: t = 0,
|
6705
6708
|
domain: r = ds
|
6706
|
-
}) => (
|
6709
|
+
}) => (W(() => {
|
6707
6710
|
e || os().catch((s) => {
|
6708
6711
|
console.error("[SW] Failed to register service worker:", s);
|
6709
6712
|
});
|
@@ -6716,8 +6719,8 @@ Press Ctrl+Enter to send it or Enter for new line.`, Bc = "{{clipboard}}", P = "
|
|
6716
6719
|
endpoint: process.env.PUBLIC_AUTH_SERVER_URL,
|
6717
6720
|
children: /* @__PURE__ */ h(Tr, { isComponent: e, headerHeight: t })
|
6718
6721
|
}
|
6719
|
-
) : /* @__PURE__ */ h(pr, { clientId: yr, domain: r, debug: vr, children: /* @__PURE__ */ h(Tr, { isComponent: e, headerHeight: t }) })),
|
6720
|
-
|
6722
|
+
) : /* @__PURE__ */ h(pr, { clientId: yr, domain: r, debug: vr, children: /* @__PURE__ */ h(Tr, { isComponent: e, headerHeight: t }) })), al = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ h(
|
6723
|
+
Po,
|
6721
6724
|
{
|
6722
6725
|
isComponent: !0,
|
6723
6726
|
domain: e,
|
@@ -6725,112 +6728,114 @@ Press Ctrl+Enter to send it or Enter for new line.`, Bc = "{{clipboard}}", P = "
|
|
6725
6728
|
}
|
6726
6729
|
);
|
6727
6730
|
export {
|
6728
|
-
|
6729
|
-
|
6730
|
-
|
6731
|
-
|
6732
|
-
|
6733
|
-
|
6734
|
-
|
6735
|
-
|
6736
|
-
|
6737
|
-
|
6738
|
-
|
6739
|
-
|
6740
|
-
|
6741
|
-
|
6742
|
-
|
6743
|
-
|
6731
|
+
Gc as ABOUT_TITLE,
|
6732
|
+
Vo as ACTION_RESET_PROMPT,
|
6733
|
+
Wo as ACTION_SEARCH,
|
6734
|
+
qo as ACTION_SORT,
|
6735
|
+
jo as ACTION_TOGGLE_PROMPT,
|
6736
|
+
el as APP_CLASSNAME,
|
6737
|
+
Tc as Ae,
|
6738
|
+
bs as C,
|
6739
|
+
sl as CARDS,
|
6740
|
+
jc as CLIPBOARD_PROMPT,
|
6741
|
+
ic as DEFAULT_ICON_ACTION_SIZE,
|
6742
|
+
Vn as E,
|
6743
|
+
Bo as ERROR_MESSAGE,
|
6744
|
+
Sc as Ee,
|
6745
|
+
Vc as FOOTER_DISCLAIMERS,
|
6746
|
+
Kc as HISTORY_TITLE,
|
6744
6747
|
lt as I,
|
6745
|
-
|
6746
|
-
|
6747
|
-
|
6748
|
-
|
6749
|
-
|
6750
|
-
|
6751
|
-
|
6752
|
-
|
6753
|
-
|
6748
|
+
sc as INFINITE_SCROLL_LIMIT,
|
6749
|
+
rc as INFINITE_SCROLL_THRESHOLD,
|
6750
|
+
dc as INPUT_BOTTOM_OFFSET,
|
6751
|
+
mc as INPUT_BOTTOM_OFFSET_EXTRA,
|
6752
|
+
fc as INPUT_BOTTOM_OFFSET_IPAD,
|
6753
|
+
hc as INPUT_BOTTOM_OFFSET_IPHONE,
|
6754
|
+
qc as INPUT_PLACEHOLDER_TEXT_CMD_ENTER,
|
6755
|
+
Wc as INPUT_PLACEHOLDER_TEXT_ENTER,
|
6756
|
+
Bc as INPUT_PLACEHOLDER_TEXT_MOBILE,
|
6757
|
+
io as L,
|
6754
6758
|
ns as LOCAL_STORAGE_PREFIX,
|
6755
|
-
|
6756
|
-
|
6757
|
-
|
6758
|
-
|
6759
|
-
|
6760
|
-
|
6761
|
-
|
6762
|
-
|
6763
|
-
|
6764
|
-
|
6765
|
-
|
6766
|
-
|
6767
|
-
|
6768
|
-
|
6769
|
-
|
6759
|
+
ec as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
|
6760
|
+
tc as LOCAL_STORAGE_REASONING_DISCLOSURE,
|
6761
|
+
Jo as LOCAL_STORAGE_SEARCH,
|
6762
|
+
Qo as LOCAL_STORAGE_SORT,
|
6763
|
+
Zo as LOCAL_STORAGE_SORT_MEMORY_COLUMN,
|
6764
|
+
Xo as LOCAL_STORAGE_SORT_MEMORY_DIRECTION,
|
6765
|
+
Yo as LOCAL_STORAGE_SORT_TIMESTAMP,
|
6766
|
+
zo as LOCAL_STORAGE_SORT_TOKEN_USAGE,
|
6767
|
+
Lc as LOG_OUT,
|
6768
|
+
Ro as Logo,
|
6769
|
+
Fc as PROFILE_TITLE,
|
6770
|
+
Jc as PROMPTS_DESCRIPTION,
|
6771
|
+
ac as PROMPT_CLASSNAME,
|
6772
|
+
nc as PROMPT_EDITABLE_AREA_CLASSNAME,
|
6773
|
+
eo as S,
|
6770
6774
|
te as SERVICE_TYPES,
|
6771
|
-
|
6772
|
-
|
6773
|
-
|
6774
|
-
|
6775
|
-
|
6776
|
-
|
6777
|
-
|
6778
|
-
|
6779
|
-
|
6780
|
-
|
6781
|
-
|
6782
|
-
|
6783
|
-
|
6784
|
-
|
6775
|
+
Hc as SETTINGS_TITLE,
|
6776
|
+
al as SassySaint,
|
6777
|
+
Zc as TOAST_CACHE_DISABLED,
|
6778
|
+
Xc as TOAST_CACHE_ENABLED,
|
6779
|
+
Yc as TOAST_CHAT_DELETED,
|
6780
|
+
zc as TOAST_CHAT_SAVED,
|
6781
|
+
Qc as TOAST_PROVIDER_CHANGED,
|
6782
|
+
tl as TRIMESTERS,
|
6783
|
+
rl as TRIMESTERS_SHORT,
|
6784
|
+
cc as UI_BUTTON_SCROLL_BUFFER,
|
6785
|
+
lc as UI_DEFAULT_MAIN_HEIGHT,
|
6786
|
+
uc as UI_DEFAULT_MAIN_HEIGHT_IPHONE,
|
6787
|
+
oc as UI_FOOTER_BUFFER,
|
6788
|
+
Uc as USAGE_TITLE,
|
6785
6789
|
jt as Y,
|
6786
|
-
|
6787
|
-
|
6788
|
-
|
6789
|
-
|
6790
|
+
gc as a,
|
6791
|
+
zi as b,
|
6792
|
+
bc as c,
|
6793
|
+
Pi as convertCamelCaseToReadable,
|
6790
6794
|
O as de,
|
6791
|
-
|
6792
|
-
|
6793
|
-
|
6795
|
+
ki as debounce,
|
6796
|
+
yc as getCacheInfo,
|
6797
|
+
wi as getCurrentGeoLocation,
|
6794
6798
|
fs as getLayoutPaddingClass,
|
6795
6799
|
hs as getMessageContaintWrapperClass,
|
6796
6800
|
je as h,
|
6797
|
-
|
6798
|
-
|
6801
|
+
pc as handleServiceWorkerToggle,
|
6802
|
+
ws as i,
|
6799
6803
|
cs as i$1,
|
6800
6804
|
ps as isProbablyMobile,
|
6801
|
-
|
6805
|
+
Ni as isProbablyiPad,
|
6806
|
+
Oi as isProbablyiPhone,
|
6802
6807
|
Nt as isServiceWorkerEnabled,
|
6803
6808
|
ms as isTauri,
|
6804
6809
|
Pe as it,
|
6805
6810
|
he as j,
|
6806
|
-
|
6807
|
-
|
6811
|
+
so as l,
|
6812
|
+
oi as mutateCall,
|
6808
6813
|
as as n,
|
6809
|
-
|
6810
|
-
|
6811
|
-
|
6812
|
-
|
6813
|
-
|
6814
|
-
|
6815
|
-
|
6816
|
-
|
6817
|
-
|
6818
|
-
|
6814
|
+
Ec as ne,
|
6815
|
+
_i as numberFormatter,
|
6816
|
+
Es as o,
|
6817
|
+
Si as obfuscate,
|
6818
|
+
Ic as pe,
|
6819
|
+
Ci as pluralize,
|
6820
|
+
wc as re,
|
6821
|
+
Ti as renderDataAsList,
|
6822
|
+
ii as serverUrl,
|
6823
|
+
_c as setNewProvider,
|
6819
6824
|
rt as te,
|
6820
|
-
|
6821
|
-
|
6822
|
-
|
6823
|
-
|
6824
|
-
|
6825
|
-
|
6826
|
-
|
6827
|
-
|
6828
|
-
|
6829
|
-
|
6830
|
-
|
6831
|
-
|
6832
|
-
|
6833
|
-
|
6834
|
-
|
6835
|
-
|
6825
|
+
Ac as ue,
|
6826
|
+
vi as unObfuscate,
|
6827
|
+
Cc as useChangelogs,
|
6828
|
+
Oc as useChatsHistory,
|
6829
|
+
Nc as useChatsUsage,
|
6830
|
+
xc as useDeleteAllMemories,
|
6831
|
+
$c as useDeleteMemory,
|
6832
|
+
Dc as useEntitlements,
|
6833
|
+
Rc as useServerCapabilities,
|
6834
|
+
kc as useUserChatStats,
|
6835
|
+
Pc as useUserMemories,
|
6836
|
+
ci as useUserPreferences,
|
6837
|
+
Mc as utilities,
|
6838
|
+
Ts as x,
|
6839
|
+
Jn as y,
|
6840
|
+
vc as ye
|
6836
6841
|
};
|