@versini/sassysaint 8.92.2 → 8.94.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{AboutChangelog.ClrqYOiE.js → AboutChangelog.CG4vpwwD.js} +3 -3
- package/dist/chunks/{AboutEntry.L-3EWXSh.js → AboutEntry.w5vjTeL7.js} +5 -5
- package/dist/chunks/{App.Bed_fbQv.js → App.BtzZ2vTv.js} +16 -16
- package/dist/chunks/{Chart.CXU9w0QU.js → Chart.8DTAxBSj.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.DIGdiWbQ.js → ChatBubbleAssistant.CkScoM-D.js} +4 -4
- package/dist/chunks/{ChatBubbleUser.Bi7vtWaU.js → ChatBubbleUser.DVEU7ptq.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.CqgUw1OQ.js → ChatHistoryTable.CQtRi74J.js} +3 -3
- package/dist/chunks/{HistoryEntry.DukEHHSh.js → HistoryEntry.CKob4HvQ.js} +3 -3
- package/dist/chunks/{ProfileEntry.DwqW02Bc.js → ProfileEntry.ClXXL2fu.js} +2 -2
- package/dist/chunks/{SettingsEntry.DMEqY9x4.js → SettingsEntry.DzvNz96Q.js} +3 -3
- package/dist/chunks/UsageEntry.C0ecDK4S.js +240 -0
- package/dist/chunks/{UserMemoriesPanel.B9hO4KO1.js → UserMemoriesPanel.Bl-g8hI5.js} +4 -4
- package/dist/chunks/{index.D17PEaoT.js → index.BFaGjlXq.js} +1 -1
- package/dist/chunks/{index.W35vbF8N.js → index.BLe8rUGn.js} +1 -1
- package/dist/chunks/{index.B8CE00US.js → index.BNLREtum.js} +1027 -969
- package/dist/chunks/{index.B_fFXIzN.js → index.BaVUOyZq.js} +1 -1
- package/dist/chunks/{index.BAnjv3Rq.js → index.BbW73zrx.js} +3 -3
- package/dist/chunks/{index.v0RCRqNr.js → index.BrOQRpaM.js} +1 -1
- package/dist/chunks/{index.Cwy9OBLR.js → index.Cna41ve3.js} +2 -2
- package/dist/chunks/{index.ClSZM0X3.js → index.JezaMn5V.js} +1 -1
- package/dist/chunks/{index.Daq_IkiG.js → index.l_KrqN7B.js} +1 -1
- package/dist/chunks/{useMarkdown.CyMeAmZY.js → useMarkdown.TVIK7Xs-.js} +825 -807
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
- package/dist/chunks/UsageEntry.B0krRouG.js +0 -213
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { jsx as c, jsxs as E, Fragment as
|
|
1
|
+
import { jsx as c, jsxs as E, Fragment as Vr } from "react/jsx-runtime";
|
|
2
2
|
import * as Y from "react";
|
|
3
|
-
import ee, { createContext as Gt, useReducer as
|
|
3
|
+
import ee, { createContext as Gt, useReducer as Gr, useCallback as M, useRef as B, useEffect as A, useSyncExternalStore as zr, useContext as ze, useState as X, useMemo as Fe, useId as rn, useLayoutEffect as nt, Suspense as sn, lazy as nn } from "react";
|
|
4
4
|
import m from "clsx";
|
|
5
|
-
let
|
|
5
|
+
let an = "standard";
|
|
6
6
|
var k, U = ((k = {})[k.NewChat = 0] = "NewChat", k[k.Prompts = 1] = "Prompts", k[k.Attachment = 2] = "Attachment", k[k.PrivateChat = 3] = "PrivateChat", k[k.Reasoning = 4] = "Reasoning", k[k.Send = 5] = "Send", k[k.Header = 6] = "Header", k[k.Provider = 7] = "Provider", k[k.Logo = 8] = "Logo", k[k.Placeholder = 9] = "Placeholder", k[k.Footer = 10] = "Footer", k);
|
|
7
|
-
let
|
|
7
|
+
let kc = "user", Pc = "assistant", yt = "OpenAI", zt = "Anthropic", qt = "Google", on = "Perplexity", cn = yt, ln = [yt, zt, qt], qr = "gpt-5", Wr = "gpt-5-mini", jr = "gpt-5-nano", Qr = "gpt-4.1-nano", Yr = "claude-haiku-4-5", Jr = "claude-sonnet-4-5", Xr = "gemini-2.5-flash", Zr = "gemini-3-pro-preview", es = "sonar", ts = "sonar-pro", Nc = { [qr]: "GPT-5", [Wr]: "GPT-5 Mini", [jr]: "GPT-5 Nano", [Qr]: "GPT-4.1 Nano", [Yr]: "Claude Haiku 4.5", [Jr]: "Claude Sonnet 4.5", [Xr]: "Gemini 2.5 Flash", [Zr]: "Gemini 3 Pro", [es]: "Sonar", [ts]: "Sonar Pro" }, rs = { [yt]: [Qr, qr, Wr, jr], [zt]: [Yr, Jr], [qt]: [Xr, Zr], [on]: [es, ts] }, Mc = "x-diggidy-chat-id", xc = "timestamp", Lc = "tokenUsage", L = "Diggidy", Dc = { TOOL: { MEMORIES: "getUserMemories" }, ADDON: { ATTACHMENTS: "addon:attachments", REASONING: "addon:reasoning" } }, $c = (e) => {
|
|
8
8
|
if (!e || e.length === 0) return [];
|
|
9
9
|
let t = /* @__PURE__ */ new Set();
|
|
10
|
-
for (let r of e) for (let [s, n] of Object.entries(
|
|
11
|
-
return
|
|
12
|
-
},
|
|
10
|
+
for (let r of e) for (let [s, n] of Object.entries(rs)) n.includes(r) && (s === yt || s === zt || s === qt) && t.add(s);
|
|
11
|
+
return ln.filter((r) => t.has(r));
|
|
12
|
+
}, un = (e) => {
|
|
13
13
|
let t = /* @__PURE__ */ new Map();
|
|
14
14
|
if (!e || e.length === 0) return t;
|
|
15
|
-
for (let r of e) for (let [s, n] of Object.entries(
|
|
15
|
+
for (let r of e) for (let [s, n] of Object.entries(rs)) if (n.includes(r)) {
|
|
16
16
|
t.has(s) || t.set(s, []), t.get(s)?.push(r);
|
|
17
17
|
break;
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
|
-
},
|
|
21
|
-
for (let t of
|
|
20
|
+
}, Uc = (e) => {
|
|
21
|
+
for (let t of un(e).values()) if (t.length > 1) return !0;
|
|
22
22
|
return !1;
|
|
23
|
-
},
|
|
24
|
-
function
|
|
23
|
+
}, Hc = (e, t) => !!e && !!t && t.length !== 0 && t.includes(e);
|
|
24
|
+
function dn(e, t, r) {
|
|
25
25
|
if (!t || Array.isArray(t) && t.length === 0) return !0;
|
|
26
26
|
let s = e instanceof Set ? e : e ? new Set(e) : null;
|
|
27
27
|
return !!s && s.size !== 0 && (typeof t == "string" ? s.has(t) : r?.any === !0 ? t.some((n) => s.has(n)) : t.every((n) => s.has(n)));
|
|
28
28
|
}
|
|
29
|
-
var
|
|
30
|
-
const
|
|
29
|
+
var Fc = "subtle";
|
|
30
|
+
const hn = {
|
|
31
31
|
[U.NewChat]: "fill-[#7A9BC4]",
|
|
32
32
|
[U.Prompts]: "fill-[#B8A4D5]",
|
|
33
33
|
[U.Attachment]: "fill-[#D4B896]",
|
|
@@ -37,7 +37,7 @@ const dn = {
|
|
|
37
37
|
[U.Header]: "text-copy-medium",
|
|
38
38
|
[U.Provider]: "fill-copy-medium",
|
|
39
39
|
[U.Placeholder]: "placeholder:text-copy-medium/70"
|
|
40
|
-
},
|
|
40
|
+
}, fn = {
|
|
41
41
|
[U.NewChat]: "fill-[#91BBED] dark:fill-[#7A9BC4]",
|
|
42
42
|
[U.Prompts]: "fill-[#B89FDC] dark:fill-[#B8A4D5]",
|
|
43
43
|
[U.Attachment]: "fill-[#D7B286] dark:fill-[#D4B896]",
|
|
@@ -65,7 +65,7 @@ var De = class {
|
|
|
65
65
|
}
|
|
66
66
|
onUnsubscribe() {
|
|
67
67
|
}
|
|
68
|
-
},
|
|
68
|
+
}, pn = {
|
|
69
69
|
// We need the wrapper function syntax below instead of direct references to
|
|
70
70
|
// global setTimeout etc.
|
|
71
71
|
//
|
|
@@ -80,14 +80,14 @@ var De = class {
|
|
|
80
80
|
clearTimeout: (e) => clearTimeout(e),
|
|
81
81
|
setInterval: (e, t) => setInterval(e, t),
|
|
82
82
|
clearInterval: (e) => clearInterval(e)
|
|
83
|
-
},
|
|
83
|
+
}, yn = class {
|
|
84
84
|
// We cannot have TimeoutManager<T> as we must instantiate it with a concrete
|
|
85
85
|
// type at app boot; and if we leave that type, then any new timer provider
|
|
86
86
|
// would need to support ReturnType<typeof setTimeout>, which is infeasible.
|
|
87
87
|
//
|
|
88
88
|
// We settle for type safety for the TimeoutProvider type, and accept that
|
|
89
89
|
// this class is unsafe internally to allow for extension.
|
|
90
|
-
#e =
|
|
90
|
+
#e = pn;
|
|
91
91
|
#t = !1;
|
|
92
92
|
setTimeoutProvider(e) {
|
|
93
93
|
process.env.NODE_ENV !== "production" && this.#t && e !== this.#e && console.error(
|
|
@@ -107,20 +107,20 @@ var De = class {
|
|
|
107
107
|
clearInterval(e) {
|
|
108
108
|
this.#e.clearInterval(e);
|
|
109
109
|
}
|
|
110
|
-
}, ve = new
|
|
111
|
-
function
|
|
110
|
+
}, ve = new yn();
|
|
111
|
+
function mn(e) {
|
|
112
112
|
setTimeout(e, 0);
|
|
113
113
|
}
|
|
114
114
|
var Te = typeof window > "u" || "Deno" in globalThis;
|
|
115
115
|
function Z() {
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function gn(e, t) {
|
|
118
118
|
return typeof e == "function" ? e(t) : e;
|
|
119
119
|
}
|
|
120
120
|
function xt(e) {
|
|
121
121
|
return typeof e == "number" && e >= 0 && e !== 1 / 0;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function ss(e, t) {
|
|
124
124
|
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
125
125
|
}
|
|
126
126
|
function we(e, t) {
|
|
@@ -177,7 +177,7 @@ function Ie(e) {
|
|
|
177
177
|
function Be(e, t) {
|
|
178
178
|
return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((r) => Be(e[r], t[r])) : !1;
|
|
179
179
|
}
|
|
180
|
-
var
|
|
180
|
+
var En = Object.prototype.hasOwnProperty;
|
|
181
181
|
function Lt(e, t) {
|
|
182
182
|
if (e === t)
|
|
183
183
|
return e;
|
|
@@ -188,7 +188,7 @@ function Lt(e, t) {
|
|
|
188
188
|
for (let f = 0; f < i; f++) {
|
|
189
189
|
const d = r ? f : a[f], h = e[d], u = t[d];
|
|
190
190
|
if (h === u) {
|
|
191
|
-
o[d] = h, (r ? f < n :
|
|
191
|
+
o[d] = h, (r ? f < n : En.call(e, d)) && l++;
|
|
192
192
|
continue;
|
|
193
193
|
}
|
|
194
194
|
if (h === null || u === null || typeof h != "object" || typeof u != "object") {
|
|
@@ -200,7 +200,7 @@ function Lt(e, t) {
|
|
|
200
200
|
}
|
|
201
201
|
return n === i && l === n ? e : o;
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function at(e, t) {
|
|
204
204
|
if (!t || Object.keys(e).length !== Object.keys(t).length)
|
|
205
205
|
return !1;
|
|
206
206
|
for (const r in e)
|
|
@@ -223,7 +223,7 @@ function Dt(e) {
|
|
|
223
223
|
function lr(e) {
|
|
224
224
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function wn(e) {
|
|
227
227
|
return new Promise((t) => {
|
|
228
228
|
ve.setTimeout(t, e);
|
|
229
229
|
});
|
|
@@ -244,24 +244,24 @@ function $t(e, t, r) {
|
|
|
244
244
|
}
|
|
245
245
|
return t;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function Sn(e, t, r = 0) {
|
|
248
248
|
const s = [...e, t];
|
|
249
249
|
return r && s.length > r ? s.slice(1) : s;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function bn(e, t, r = 0) {
|
|
252
252
|
const s = [t, ...e];
|
|
253
253
|
return r && s.length > r ? s.slice(0, -1) : s;
|
|
254
254
|
}
|
|
255
|
-
var
|
|
256
|
-
function
|
|
257
|
-
return process.env.NODE_ENV !== "production" && e.queryFn ===
|
|
255
|
+
var it = Symbol();
|
|
256
|
+
function ns(e, t) {
|
|
257
|
+
return process.env.NODE_ENV !== "production" && e.queryFn === it && console.error(
|
|
258
258
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
|
|
259
|
-
), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn ===
|
|
259
|
+
), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === it ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function as(e, t) {
|
|
262
262
|
return typeof e == "function" ? e(...t) : !!e;
|
|
263
263
|
}
|
|
264
|
-
var
|
|
264
|
+
var vn = class extends De {
|
|
265
265
|
#e;
|
|
266
266
|
#t;
|
|
267
267
|
#r;
|
|
@@ -298,7 +298,7 @@ var bn = class extends De {
|
|
|
298
298
|
isFocused() {
|
|
299
299
|
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
|
|
300
300
|
}
|
|
301
|
-
}, jt = new
|
|
301
|
+
}, jt = new vn();
|
|
302
302
|
function Ut() {
|
|
303
303
|
let e, t;
|
|
304
304
|
const r = new Promise((n, a) => {
|
|
@@ -321,13 +321,13 @@ function Ut() {
|
|
|
321
321
|
}), t(n);
|
|
322
322
|
}, r;
|
|
323
323
|
}
|
|
324
|
-
var
|
|
325
|
-
function
|
|
324
|
+
var Tn = mn;
|
|
325
|
+
function In() {
|
|
326
326
|
let e = [], t = 0, r = (o) => {
|
|
327
327
|
o();
|
|
328
328
|
}, s = (o) => {
|
|
329
329
|
o();
|
|
330
|
-
}, n =
|
|
330
|
+
}, n = Tn;
|
|
331
331
|
const a = (o) => {
|
|
332
332
|
t ? e.push(o) : n(() => {
|
|
333
333
|
r(o);
|
|
@@ -381,7 +381,7 @@ function Tn() {
|
|
|
381
381
|
}
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
|
-
var F =
|
|
384
|
+
var F = In(), _n = class extends De {
|
|
385
385
|
#e = !0;
|
|
386
386
|
#t;
|
|
387
387
|
#r;
|
|
@@ -412,19 +412,19 @@ var F = Tn(), In = class extends De {
|
|
|
412
412
|
isOnline() {
|
|
413
413
|
return this.#e;
|
|
414
414
|
}
|
|
415
|
-
},
|
|
416
|
-
function
|
|
415
|
+
}, ot = new _n();
|
|
416
|
+
function An(e) {
|
|
417
417
|
return Math.min(1e3 * 2 ** e, 3e4);
|
|
418
418
|
}
|
|
419
|
-
function
|
|
420
|
-
return (e ?? "online") === "online" ?
|
|
419
|
+
function is(e) {
|
|
420
|
+
return (e ?? "online") === "online" ? ot.isOnline() : !0;
|
|
421
421
|
}
|
|
422
422
|
var Ht = class extends Error {
|
|
423
423
|
constructor(e) {
|
|
424
424
|
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
|
|
425
425
|
}
|
|
426
426
|
};
|
|
427
|
-
function
|
|
427
|
+
function os(e) {
|
|
428
428
|
let t = !1, r = 0, s;
|
|
429
429
|
const n = Ut(), a = () => n.status !== "pending", i = (g) => {
|
|
430
430
|
if (!a()) {
|
|
@@ -435,7 +435,7 @@ function is(e) {
|
|
|
435
435
|
t = !0;
|
|
436
436
|
}, l = () => {
|
|
437
437
|
t = !1;
|
|
438
|
-
}, f = () => jt.isFocused() && (e.networkMode === "always" ||
|
|
438
|
+
}, f = () => jt.isFocused() && (e.networkMode === "always" || ot.isOnline()) && e.canRun(), d = () => is(e.networkMode) && e.canRun(), h = (g) => {
|
|
439
439
|
a() || (s?.(), n.resolve(g));
|
|
440
440
|
}, u = (g) => {
|
|
441
441
|
a() || (s?.(), n.reject(g));
|
|
@@ -458,12 +458,12 @@ function is(e) {
|
|
|
458
458
|
Promise.resolve(g).then(h).catch((b) => {
|
|
459
459
|
if (a())
|
|
460
460
|
return;
|
|
461
|
-
const x = e.retry ?? (Te ? 0 : 3), R = e.retryDelay ??
|
|
461
|
+
const x = e.retry ?? (Te ? 0 : 3), R = e.retryDelay ?? An, J = typeof R == "function" ? R(r, b) : R, P = x === !0 || typeof x == "number" && r < x || typeof x == "function" && x(r, b);
|
|
462
462
|
if (t || !P) {
|
|
463
463
|
u(b);
|
|
464
464
|
return;
|
|
465
465
|
}
|
|
466
|
-
r++, e.onFail?.(r, b),
|
|
466
|
+
r++, e.onFail?.(r, b), wn(J).then(() => f() ? void 0 : p()).then(() => {
|
|
467
467
|
t ? u(b) : y();
|
|
468
468
|
});
|
|
469
469
|
});
|
|
@@ -479,7 +479,7 @@ function is(e) {
|
|
|
479
479
|
start: () => (d() ? y() : p().then(y), n)
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
|
-
var
|
|
482
|
+
var cs = class {
|
|
483
483
|
#e;
|
|
484
484
|
destroy() {
|
|
485
485
|
this.clearGcTimeout();
|
|
@@ -498,7 +498,7 @@ var os = class {
|
|
|
498
498
|
clearGcTimeout() {
|
|
499
499
|
this.#e && (ve.clearTimeout(this.#e), this.#e = void 0);
|
|
500
500
|
}
|
|
501
|
-
},
|
|
501
|
+
}, Rn = class extends cs {
|
|
502
502
|
#e;
|
|
503
503
|
#t;
|
|
504
504
|
#r;
|
|
@@ -554,7 +554,7 @@ var os = class {
|
|
|
554
554
|
);
|
|
555
555
|
}
|
|
556
556
|
isDisabled() {
|
|
557
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
557
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === it || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
|
|
558
558
|
}
|
|
559
559
|
isStatic() {
|
|
560
560
|
return this.getObserversCount() > 0 ? this.observers.some(
|
|
@@ -567,7 +567,7 @@ var os = class {
|
|
|
567
567
|
) : this.state.data === void 0 || this.state.isInvalidated;
|
|
568
568
|
}
|
|
569
569
|
isStaleByTime(e = 0) {
|
|
570
|
-
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !
|
|
570
|
+
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !ss(this.state.dataUpdatedAt, e);
|
|
571
571
|
}
|
|
572
572
|
onFocus() {
|
|
573
573
|
this.observers.find((t) => t.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#s?.continue();
|
|
@@ -610,7 +610,7 @@ var os = class {
|
|
|
610
610
|
get: () => (this.#o = !0, r.signal)
|
|
611
611
|
});
|
|
612
612
|
}, n = () => {
|
|
613
|
-
const o =
|
|
613
|
+
const o = ns(this.options, t), f = (() => {
|
|
614
614
|
const d = {
|
|
615
615
|
client: this.#n,
|
|
616
616
|
queryKey: this.queryKey,
|
|
@@ -634,7 +634,7 @@ var os = class {
|
|
|
634
634
|
};
|
|
635
635
|
return s(o), o;
|
|
636
636
|
})();
|
|
637
|
-
this.options.behavior?.onFetch(i, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== i.fetchOptions?.meta) && this.#a({ type: "fetch", meta: i.fetchOptions?.meta }), this.#s =
|
|
637
|
+
this.options.behavior?.onFetch(i, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== i.fetchOptions?.meta) && this.#a({ type: "fetch", meta: i.fetchOptions?.meta }), this.#s = os({
|
|
638
638
|
initialPromise: t?.initialPromise,
|
|
639
639
|
fn: i.fetchFn,
|
|
640
640
|
onCancel: (o) => {
|
|
@@ -715,7 +715,7 @@ var os = class {
|
|
|
715
715
|
case "fetch":
|
|
716
716
|
return {
|
|
717
717
|
...r,
|
|
718
|
-
...
|
|
718
|
+
...ls(r.data, this.options),
|
|
719
719
|
fetchMeta: e.meta ?? null
|
|
720
720
|
};
|
|
721
721
|
case "success":
|
|
@@ -761,11 +761,11 @@ var os = class {
|
|
|
761
761
|
});
|
|
762
762
|
}
|
|
763
763
|
};
|
|
764
|
-
function
|
|
764
|
+
function ls(e, t) {
|
|
765
765
|
return {
|
|
766
766
|
fetchFailureCount: 0,
|
|
767
767
|
fetchFailureReason: null,
|
|
768
|
-
fetchStatus:
|
|
768
|
+
fetchStatus: is(t.networkMode) ? "fetching" : "paused",
|
|
769
769
|
...e === void 0 && {
|
|
770
770
|
error: null,
|
|
771
771
|
status: "pending"
|
|
@@ -798,7 +798,7 @@ function dr(e) {
|
|
|
798
798
|
fetchStatus: "idle"
|
|
799
799
|
};
|
|
800
800
|
}
|
|
801
|
-
var
|
|
801
|
+
var Cn = class extends De {
|
|
802
802
|
constructor(e, t) {
|
|
803
803
|
super(), this.options = t, this.#e = e, this.#a = null, this.#o = Ut(), this.bindMethods(), this.setOptions(t);
|
|
804
804
|
}
|
|
@@ -851,7 +851,7 @@ var Rn = class extends De {
|
|
|
851
851
|
throw new Error(
|
|
852
852
|
"Expected enabled to be a boolean or a callback that returns a boolean"
|
|
853
853
|
);
|
|
854
|
-
this.#v(), this.#t.setOptions(this.options), t._defaulted && !
|
|
854
|
+
this.#v(), this.#t.setOptions(this.options), t._defaulted && !at(this.options, t) && this.#e.getQueryCache().notify({
|
|
855
855
|
type: "observerOptionsUpdated",
|
|
856
856
|
query: this.#t,
|
|
857
857
|
observer: this
|
|
@@ -868,7 +868,7 @@ var Rn = class extends De {
|
|
|
868
868
|
}
|
|
869
869
|
getOptimisticResult(e) {
|
|
870
870
|
const t = this.#e.getQueryCache().build(this.#e, e), r = this.createResult(t, e);
|
|
871
|
-
return
|
|
871
|
+
return kn(this, r) && (this.#n = r, this.#i = this.options, this.#s = this.#t.state), r;
|
|
872
872
|
}
|
|
873
873
|
getCurrentResult() {
|
|
874
874
|
return this.#n;
|
|
@@ -919,7 +919,7 @@ var Rn = class extends De {
|
|
|
919
919
|
);
|
|
920
920
|
if (Te || this.#n.isStale || !xt(e))
|
|
921
921
|
return;
|
|
922
|
-
const r =
|
|
922
|
+
const r = ss(this.#n.dataUpdatedAt, e) + 1;
|
|
923
923
|
this.#l = ve.setTimeout(() => {
|
|
924
924
|
this.#n.isStale || this.updateResult();
|
|
925
925
|
}, r);
|
|
@@ -948,7 +948,7 @@ var Rn = class extends De {
|
|
|
948
948
|
const I = this.hasListeners(), G = !I && hr(e, t), O = I && fr(e, r, t, s);
|
|
949
949
|
(G || O) && (d = {
|
|
950
950
|
...d,
|
|
951
|
-
...
|
|
951
|
+
...ls(f.data, e.options)
|
|
952
952
|
}), t._optimisticResults === "isRestoring" && (d.fetchStatus = "idle");
|
|
953
953
|
}
|
|
954
954
|
let { error: p, errorUpdatedAt: y, status: g } = d;
|
|
@@ -1026,7 +1026,7 @@ var Rn = class extends De {
|
|
|
1026
1026
|
}
|
|
1027
1027
|
updateResult() {
|
|
1028
1028
|
const e = this.#n, t = this.createResult(this.#t, this.options);
|
|
1029
|
-
if (this.#s = this.#t.state, this.#i = this.options, this.#s.data !== void 0 && (this.#f = this.#t),
|
|
1029
|
+
if (this.#s = this.#t.state, this.#i = this.options, this.#s.data !== void 0 && (this.#f = this.#t), at(t, e))
|
|
1030
1030
|
return;
|
|
1031
1031
|
this.#n = t;
|
|
1032
1032
|
const r = () => {
|
|
@@ -1066,11 +1066,11 @@ var Rn = class extends De {
|
|
|
1066
1066
|
});
|
|
1067
1067
|
}
|
|
1068
1068
|
};
|
|
1069
|
-
function
|
|
1069
|
+
function On(e, t) {
|
|
1070
1070
|
return re(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
|
|
1071
1071
|
}
|
|
1072
1072
|
function hr(e, t) {
|
|
1073
|
-
return
|
|
1073
|
+
return On(e, t) || e.state.data !== void 0 && Ft(e, t, t.refetchOnMount);
|
|
1074
1074
|
}
|
|
1075
1075
|
function Ft(e, t, r) {
|
|
1076
1076
|
if (re(t.enabled, e) !== !1 && we(t.staleTime, e) !== "static") {
|
|
@@ -1085,8 +1085,8 @@ function fr(e, t, r, s) {
|
|
|
1085
1085
|
function Qt(e, t) {
|
|
1086
1086
|
return re(t.enabled, e) !== !1 && e.isStaleByTime(we(t.staleTime, e));
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1089
|
-
return !
|
|
1088
|
+
function kn(e, t) {
|
|
1089
|
+
return !at(e.getCurrentResult(), t);
|
|
1090
1090
|
}
|
|
1091
1091
|
function pr(e) {
|
|
1092
1092
|
return {
|
|
@@ -1102,7 +1102,7 @@ function pr(e) {
|
|
|
1102
1102
|
d = !0;
|
|
1103
1103
|
}), t.signal)
|
|
1104
1104
|
});
|
|
1105
|
-
}, u =
|
|
1105
|
+
}, u = ns(t.options, t.fetchOptions), p = async (y, g, w) => {
|
|
1106
1106
|
if (d)
|
|
1107
1107
|
return Promise.reject();
|
|
1108
1108
|
if (g == null && y.pages.length)
|
|
@@ -1116,14 +1116,14 @@ function pr(e) {
|
|
|
1116
1116
|
meta: t.options.meta
|
|
1117
1117
|
};
|
|
1118
1118
|
return h(se), se;
|
|
1119
|
-
})(), R = await u(x), { maxPages: J } = t.options, P = w ?
|
|
1119
|
+
})(), R = await u(x), { maxPages: J } = t.options, P = w ? bn : Sn;
|
|
1120
1120
|
return {
|
|
1121
1121
|
pages: P(y.pages, R, J),
|
|
1122
1122
|
pageParams: P(y.pageParams, g, J)
|
|
1123
1123
|
};
|
|
1124
1124
|
};
|
|
1125
1125
|
if (n && a.length) {
|
|
1126
|
-
const y = n === "backward", g = y ?
|
|
1126
|
+
const y = n === "backward", g = y ? Pn : yr, w = {
|
|
1127
1127
|
pages: a,
|
|
1128
1128
|
pageParams: i
|
|
1129
1129
|
}, b = g(s, w);
|
|
@@ -1161,16 +1161,16 @@ function yr(e, { pages: t, pageParams: r }) {
|
|
|
1161
1161
|
r
|
|
1162
1162
|
) : void 0;
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1164
|
+
function Pn(e, { pages: t, pageParams: r }) {
|
|
1165
1165
|
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, r[0], r) : void 0;
|
|
1166
1166
|
}
|
|
1167
|
-
var
|
|
1167
|
+
var Nn = class extends cs {
|
|
1168
1168
|
#e;
|
|
1169
1169
|
#t;
|
|
1170
1170
|
#r;
|
|
1171
1171
|
#n;
|
|
1172
1172
|
constructor(e) {
|
|
1173
|
-
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#r = e.mutationCache, this.#t = [], this.state = e.state ||
|
|
1173
|
+
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#r = e.mutationCache, this.#t = [], this.state = e.state || us(), this.setOptions(e.options), this.scheduleGc();
|
|
1174
1174
|
}
|
|
1175
1175
|
setOptions(e) {
|
|
1176
1176
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -1207,7 +1207,7 @@ var Pn = class extends os {
|
|
|
1207
1207
|
meta: this.options.meta,
|
|
1208
1208
|
mutationKey: this.options.mutationKey
|
|
1209
1209
|
};
|
|
1210
|
-
this.#n =
|
|
1210
|
+
this.#n = os({
|
|
1211
1211
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e, r) : Promise.reject(new Error("No mutationFn found")),
|
|
1212
1212
|
onFail: (a, i) => {
|
|
1213
1213
|
this.#s({ type: "failed", failureCount: a, error: i });
|
|
@@ -1367,7 +1367,7 @@ var Pn = class extends os {
|
|
|
1367
1367
|
});
|
|
1368
1368
|
}
|
|
1369
1369
|
};
|
|
1370
|
-
function
|
|
1370
|
+
function us() {
|
|
1371
1371
|
return {
|
|
1372
1372
|
context: void 0,
|
|
1373
1373
|
data: void 0,
|
|
@@ -1380,7 +1380,7 @@ function ls() {
|
|
|
1380
1380
|
submittedAt: 0
|
|
1381
1381
|
};
|
|
1382
1382
|
}
|
|
1383
|
-
var
|
|
1383
|
+
var Mn = class extends De {
|
|
1384
1384
|
constructor(e = {}) {
|
|
1385
1385
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#r = 0;
|
|
1386
1386
|
}
|
|
@@ -1388,7 +1388,7 @@ var Nn = class extends De {
|
|
|
1388
1388
|
#t;
|
|
1389
1389
|
#r;
|
|
1390
1390
|
build(e, t, r) {
|
|
1391
|
-
const s = new
|
|
1391
|
+
const s = new Nn({
|
|
1392
1392
|
client: e,
|
|
1393
1393
|
mutationCache: this,
|
|
1394
1394
|
mutationId: ++this.#r,
|
|
@@ -1472,7 +1472,7 @@ var Nn = class extends De {
|
|
|
1472
1472
|
function We(e) {
|
|
1473
1473
|
return e.options.scope?.id;
|
|
1474
1474
|
}
|
|
1475
|
-
var
|
|
1475
|
+
var xn = class extends De {
|
|
1476
1476
|
#e;
|
|
1477
1477
|
#t = void 0;
|
|
1478
1478
|
#r;
|
|
@@ -1485,7 +1485,7 @@ var Mn = class extends De {
|
|
|
1485
1485
|
}
|
|
1486
1486
|
setOptions(e) {
|
|
1487
1487
|
const t = this.options;
|
|
1488
|
-
this.options = this.#e.defaultMutationOptions(e),
|
|
1488
|
+
this.options = this.#e.defaultMutationOptions(e), at(this.options, t) || this.#e.getMutationCache().notify({
|
|
1489
1489
|
type: "observerOptionsUpdated",
|
|
1490
1490
|
mutation: this.#r,
|
|
1491
1491
|
observer: this
|
|
@@ -1507,7 +1507,7 @@ var Mn = class extends De {
|
|
|
1507
1507
|
return this.#n = t, this.#r?.removeObserver(this), this.#r = this.#e.getMutationCache().build(this.#e, this.options), this.#r.addObserver(this), this.#r.execute(e);
|
|
1508
1508
|
}
|
|
1509
1509
|
#s() {
|
|
1510
|
-
const e = this.#r?.state ??
|
|
1510
|
+
const e = this.#r?.state ?? us();
|
|
1511
1511
|
this.#t = {
|
|
1512
1512
|
...e,
|
|
1513
1513
|
isPending: e.status === "pending",
|
|
@@ -1555,7 +1555,7 @@ var Mn = class extends De {
|
|
|
1555
1555
|
});
|
|
1556
1556
|
});
|
|
1557
1557
|
}
|
|
1558
|
-
},
|
|
1558
|
+
}, Ln = class extends De {
|
|
1559
1559
|
constructor(e = {}) {
|
|
1560
1560
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
1561
1561
|
}
|
|
@@ -1563,7 +1563,7 @@ var Mn = class extends De {
|
|
|
1563
1563
|
build(e, t, r) {
|
|
1564
1564
|
const s = t.queryKey, n = t.queryHash ?? Wt(s, t);
|
|
1565
1565
|
let a = this.get(n);
|
|
1566
|
-
return a || (a = new
|
|
1566
|
+
return a || (a = new Rn({
|
|
1567
1567
|
client: e,
|
|
1568
1568
|
queryKey: s,
|
|
1569
1569
|
queryHash: n,
|
|
@@ -1626,7 +1626,7 @@ var Mn = class extends De {
|
|
|
1626
1626
|
});
|
|
1627
1627
|
});
|
|
1628
1628
|
}
|
|
1629
|
-
},
|
|
1629
|
+
}, Dn = class {
|
|
1630
1630
|
#e;
|
|
1631
1631
|
#t;
|
|
1632
1632
|
#r;
|
|
@@ -1636,12 +1636,12 @@ var Mn = class extends De {
|
|
|
1636
1636
|
#o;
|
|
1637
1637
|
#a;
|
|
1638
1638
|
constructor(e = {}) {
|
|
1639
|
-
this.#e = e.queryCache || new
|
|
1639
|
+
this.#e = e.queryCache || new Ln(), this.#t = e.mutationCache || new Mn(), this.#r = e.defaultOptions || {}, this.#n = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#i = 0;
|
|
1640
1640
|
}
|
|
1641
1641
|
mount() {
|
|
1642
1642
|
this.#i++, this.#i === 1 && (this.#o = jt.subscribe(async (e) => {
|
|
1643
1643
|
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
1644
|
-
}), this.#a =
|
|
1644
|
+
}), this.#a = ot.subscribe(async (e) => {
|
|
1645
1645
|
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
1646
1646
|
}));
|
|
1647
1647
|
}
|
|
@@ -1678,7 +1678,7 @@ var Mn = class extends De {
|
|
|
1678
1678
|
setQueryData(e, t, r) {
|
|
1679
1679
|
const s = this.defaultQueryOptions({ queryKey: e }), a = this.#e.get(
|
|
1680
1680
|
s.queryHash
|
|
1681
|
-
)?.state.data, i =
|
|
1681
|
+
)?.state.data, i = gn(t, a);
|
|
1682
1682
|
if (i !== void 0)
|
|
1683
1683
|
return this.#e.build(this, s).setData(i, { ...r, manual: !0 });
|
|
1684
1684
|
}
|
|
@@ -1766,7 +1766,7 @@ var Mn = class extends De {
|
|
|
1766
1766
|
return e.behavior = pr(e.pages), this.ensureQueryData(e);
|
|
1767
1767
|
}
|
|
1768
1768
|
resumePausedMutations() {
|
|
1769
|
-
return
|
|
1769
|
+
return ot.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
1770
1770
|
}
|
|
1771
1771
|
getQueryCache() {
|
|
1772
1772
|
return this.#e;
|
|
@@ -1816,7 +1816,7 @@ var Mn = class extends De {
|
|
|
1816
1816
|
return t.queryHash || (t.queryHash = Wt(
|
|
1817
1817
|
t.queryKey,
|
|
1818
1818
|
t
|
|
1819
|
-
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn ===
|
|
1819
|
+
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === it && (t.enabled = !1), t;
|
|
1820
1820
|
}
|
|
1821
1821
|
defaultMutationOptions(e) {
|
|
1822
1822
|
return e?._defaulted ? e : {
|
|
@@ -1829,20 +1829,20 @@ var Mn = class extends De {
|
|
|
1829
1829
|
clear() {
|
|
1830
1830
|
this.#e.clear(), this.#t.clear();
|
|
1831
1831
|
}
|
|
1832
|
-
},
|
|
1832
|
+
}, ds = Y.createContext(
|
|
1833
1833
|
void 0
|
|
1834
1834
|
), le = (e) => {
|
|
1835
|
-
const t = Y.useContext(
|
|
1835
|
+
const t = Y.useContext(ds);
|
|
1836
1836
|
if (!t)
|
|
1837
1837
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
1838
1838
|
return t;
|
|
1839
|
-
},
|
|
1839
|
+
}, $n = ({
|
|
1840
1840
|
client: e,
|
|
1841
1841
|
children: t
|
|
1842
1842
|
}) => (Y.useEffect(() => (e.mount(), () => {
|
|
1843
1843
|
e.unmount();
|
|
1844
|
-
}), [e]), /* @__PURE__ */ c(
|
|
1845
|
-
function
|
|
1844
|
+
}), [e]), /* @__PURE__ */ c(ds.Provider, { value: e, children: t })), Un = Y.createContext(!1), Hn = () => Y.useContext(Un);
|
|
1845
|
+
function Fn() {
|
|
1846
1846
|
let e = !1;
|
|
1847
1847
|
return {
|
|
1848
1848
|
clearReset: () => {
|
|
@@ -1854,19 +1854,19 @@ function Hn() {
|
|
|
1854
1854
|
isReset: () => e
|
|
1855
1855
|
};
|
|
1856
1856
|
}
|
|
1857
|
-
var
|
|
1857
|
+
var Bn = Y.createContext(Fn()), Kn = () => Y.useContext(Bn), Vn = (e, t) => {
|
|
1858
1858
|
(e.suspense || e.throwOnError || e.experimental_prefetchInRender) && (t.isReset() || (e.retryOnMount = !1));
|
|
1859
|
-
},
|
|
1859
|
+
}, Gn = (e) => {
|
|
1860
1860
|
Y.useEffect(() => {
|
|
1861
1861
|
e.clearReset();
|
|
1862
1862
|
}, [e]);
|
|
1863
|
-
},
|
|
1863
|
+
}, zn = ({
|
|
1864
1864
|
result: e,
|
|
1865
1865
|
errorResetBoundary: t,
|
|
1866
1866
|
throwOnError: r,
|
|
1867
1867
|
query: s,
|
|
1868
1868
|
suspense: n
|
|
1869
|
-
}) => e.isError && !t.isReset() && !e.isFetching && s && (n && e.data === void 0 ||
|
|
1869
|
+
}) => e.isError && !t.isReset() && !e.isFetching && s && (n && e.data === void 0 || as(r, [e.error, s])), qn = (e) => {
|
|
1870
1870
|
if (e.suspense) {
|
|
1871
1871
|
const r = (n) => n === "static" ? n : Math.max(n ?? 1e3, 1e3), s = e.staleTime;
|
|
1872
1872
|
e.staleTime = typeof s == "function" ? (...n) => r(s(...n)) : r(s), typeof e.gcTime == "number" && (e.gcTime = Math.max(
|
|
@@ -1874,20 +1874,20 @@ var Fn = Y.createContext(Hn()), Bn = () => Y.useContext(Fn), Kn = (e, t) => {
|
|
|
1874
1874
|
1e3
|
|
1875
1875
|
));
|
|
1876
1876
|
}
|
|
1877
|
-
},
|
|
1877
|
+
}, Wn = (e, t) => e.isLoading && e.isFetching && !t, jn = (e, t) => e?.suspense && t.isPending, mr = (e, t, r) => t.fetchOptimistic(e).catch(() => {
|
|
1878
1878
|
r.clearReset();
|
|
1879
1879
|
});
|
|
1880
|
-
function
|
|
1880
|
+
function Qn(e, t, r) {
|
|
1881
1881
|
if (process.env.NODE_ENV !== "production" && (typeof e != "object" || Array.isArray(e)))
|
|
1882
1882
|
throw new Error(
|
|
1883
1883
|
'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'
|
|
1884
1884
|
);
|
|
1885
|
-
const s =
|
|
1885
|
+
const s = Hn(), n = Kn(), a = le(), i = a.defaultQueryOptions(e);
|
|
1886
1886
|
a.getDefaultOptions().queries?._experimental_beforeQuery?.(
|
|
1887
1887
|
i
|
|
1888
1888
|
), process.env.NODE_ENV !== "production" && (i.queryFn || console.error(
|
|
1889
1889
|
`[${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`
|
|
1890
|
-
)), i._optimisticResults = s ? "isRestoring" : "optimistic",
|
|
1890
|
+
)), i._optimisticResults = s ? "isRestoring" : "optimistic", qn(i), Vn(i, n), Gn(n);
|
|
1891
1891
|
const o = !a.getQueryCache().get(i.queryHash), [l] = Y.useState(
|
|
1892
1892
|
() => new t(
|
|
1893
1893
|
a,
|
|
@@ -1906,9 +1906,9 @@ function jn(e, t, r) {
|
|
|
1906
1906
|
() => l.getCurrentResult()
|
|
1907
1907
|
), Y.useEffect(() => {
|
|
1908
1908
|
l.setOptions(i);
|
|
1909
|
-
}, [i, l]),
|
|
1909
|
+
}, [i, l]), jn(i, f))
|
|
1910
1910
|
throw mr(i, l, n);
|
|
1911
|
-
if (
|
|
1911
|
+
if (zn({
|
|
1912
1912
|
result: f,
|
|
1913
1913
|
errorResetBoundary: n,
|
|
1914
1914
|
throwOnError: i.throwOnError,
|
|
@@ -1919,7 +1919,7 @@ function jn(e, t, r) {
|
|
|
1919
1919
|
return a.getDefaultOptions().queries?._experimental_afterQuery?.(
|
|
1920
1920
|
i,
|
|
1921
1921
|
f
|
|
1922
|
-
), i.experimental_prefetchInRender && !Te &&
|
|
1922
|
+
), i.experimental_prefetchInRender && !Te && Wn(f, s) && (o ? (
|
|
1923
1923
|
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
|
1924
1924
|
mr(i, l, n)
|
|
1925
1925
|
) : (
|
|
@@ -1930,11 +1930,11 @@ function jn(e, t, r) {
|
|
|
1930
1930
|
}), i.notifyOnChangeProps ? f : l.trackResult(f);
|
|
1931
1931
|
}
|
|
1932
1932
|
function pe(e, t) {
|
|
1933
|
-
return
|
|
1933
|
+
return Qn(e, Cn);
|
|
1934
1934
|
}
|
|
1935
1935
|
function Se(e, t) {
|
|
1936
1936
|
const r = le(), [s] = Y.useState(
|
|
1937
|
-
() => new
|
|
1937
|
+
() => new xn(
|
|
1938
1938
|
r,
|
|
1939
1939
|
e
|
|
1940
1940
|
)
|
|
@@ -1955,18 +1955,18 @@ function Se(e, t) {
|
|
|
1955
1955
|
},
|
|
1956
1956
|
[s]
|
|
1957
1957
|
);
|
|
1958
|
-
if (n.error &&
|
|
1958
|
+
if (n.error && as(s.options.throwOnError, [n.error]))
|
|
1959
1959
|
throw n.error;
|
|
1960
1960
|
return { ...n, mutate: a, mutateAsync: n.mutate };
|
|
1961
1961
|
}
|
|
1962
1962
|
/*!
|
|
1963
|
-
@versini/auth-common v4.6.
|
|
1963
|
+
@versini/auth-common v4.6.1
|
|
1964
1964
|
© 2025 gizmette.com
|
|
1965
1965
|
*/
|
|
1966
1966
|
try {
|
|
1967
1967
|
window.__VERSINI_AUTH_COMMON__ || (window.__VERSINI_AUTH_COMMON__ = {
|
|
1968
|
-
version: "4.6.
|
|
1969
|
-
buildTime: "11/
|
|
1968
|
+
version: "4.6.1",
|
|
1969
|
+
buildTime: "11/29/2025 08:06 PM EST",
|
|
1970
1970
|
homepage: "https://github.com/aversini/auth-client",
|
|
1971
1971
|
license: "MIT"
|
|
1972
1972
|
});
|
|
@@ -1976,7 +1976,7 @@ const Ue = {
|
|
|
1976
1976
|
CODE: "code",
|
|
1977
1977
|
REFRESH_TOKEN: "refresh_token",
|
|
1978
1978
|
PASSKEY: "passkey"
|
|
1979
|
-
},
|
|
1979
|
+
}, hs = {
|
|
1980
1980
|
CLIENT_ID: "X-Auth-ClientId"
|
|
1981
1981
|
}, Q = {
|
|
1982
1982
|
ALG: "RS256",
|
|
@@ -1986,7 +1986,7 @@ const Ue = {
|
|
|
1986
1986
|
NONCE_KEY: "_nonce",
|
|
1987
1987
|
AUTH_TYPE_KEY: "auth_type",
|
|
1988
1988
|
ISSUER: "gizmette.com"
|
|
1989
|
-
},
|
|
1989
|
+
}, Yn = `-----BEGIN PUBLIC KEY-----
|
|
1990
1990
|
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsF6i3Jd9fY/3COqCw/m7
|
|
1991
1991
|
w5PKyTYLGAI2I6SIIdpe6i6DOCbEkmDz7LdVsBqwNtVi8gvWYIj+8ol6rU3qu1v5
|
|
1992
1992
|
i1Jd45GSK4kzkVdgCmQZbM5ak0KI99q5wsrAIzUd+LRJ2HRvWtr5IYdsIiXaQjle
|
|
@@ -1994,20 +1994,30 @@ aMwPFOIcJH+rKfFgNcHLcaS5syp7zU1ANwZ+trgR+DifBr8TLVkBynmNeTyhDm2+
|
|
|
1994
1994
|
l0haqjMk0UoNPPE8iYBWUHQJJE1Dqstj65d6Eh5g64Pao25y4cmYJbKjiblIGEkE
|
|
1995
1995
|
sjqybA9mARAqh9k/eiIopecWSiffNQTwVQVd2I9ZH3BalhEXHlqFgrjz51kFqg81
|
|
1996
1996
|
awIDAQAB
|
|
1997
|
-
-----END PUBLIC KEY-----`,
|
|
1997
|
+
-----END PUBLIC KEY-----`, mt = {
|
|
1998
1998
|
CODE: "code",
|
|
1999
1999
|
LOGOUT: "logout",
|
|
2000
2000
|
LOGIN: "login",
|
|
2001
2001
|
REFRESH: "refresh"
|
|
2002
|
-
},
|
|
2003
|
-
function
|
|
2002
|
+
}, gr = new TextEncoder(), Le = new TextDecoder();
|
|
2003
|
+
function Jn(...e) {
|
|
2004
2004
|
const t = e.reduce((n, { length: a }) => n + a, 0), r = new Uint8Array(t);
|
|
2005
2005
|
let s = 0;
|
|
2006
2006
|
for (const n of e)
|
|
2007
2007
|
r.set(n, s), s += n.length;
|
|
2008
2008
|
return r;
|
|
2009
2009
|
}
|
|
2010
|
-
function
|
|
2010
|
+
function wt(e) {
|
|
2011
|
+
const t = new Uint8Array(e.length);
|
|
2012
|
+
for (let r = 0; r < e.length; r++) {
|
|
2013
|
+
const s = e.charCodeAt(r);
|
|
2014
|
+
if (s > 127)
|
|
2015
|
+
throw new TypeError("non-ASCII string encountered in encode()");
|
|
2016
|
+
t[r] = s;
|
|
2017
|
+
}
|
|
2018
|
+
return t;
|
|
2019
|
+
}
|
|
2020
|
+
function fs(e) {
|
|
2011
2021
|
if (Uint8Array.fromBase64)
|
|
2012
2022
|
return Uint8Array.fromBase64(e);
|
|
2013
2023
|
const t = atob(e), r = new Uint8Array(t.length);
|
|
@@ -2021,9 +2031,9 @@ function He(e) {
|
|
|
2021
2031
|
alphabet: "base64url"
|
|
2022
2032
|
});
|
|
2023
2033
|
let t = e;
|
|
2024
|
-
t instanceof Uint8Array && (t = Le.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/")
|
|
2034
|
+
t instanceof Uint8Array && (t = Le.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/");
|
|
2025
2035
|
try {
|
|
2026
|
-
return
|
|
2036
|
+
return fs(t);
|
|
2027
2037
|
} catch {
|
|
2028
2038
|
throw new TypeError("The input to be decoded is not correctly encoded.");
|
|
2029
2039
|
}
|
|
@@ -2043,7 +2053,7 @@ let _e = class extends Error {
|
|
|
2043
2053
|
constructor(t, r, s = "unspecified", n = "unspecified") {
|
|
2044
2054
|
super(t, { cause: { claim: s, reason: n, payload: r } }), this.claim = s, this.reason = n, this.payload = r;
|
|
2045
2055
|
}
|
|
2046
|
-
},
|
|
2056
|
+
}, Er = class extends _e {
|
|
2047
2057
|
static code = "ERR_JWT_EXPIRED";
|
|
2048
2058
|
code = "ERR_JWT_EXPIRED";
|
|
2049
2059
|
claim;
|
|
@@ -2052,10 +2062,12 @@ let _e = class extends Error {
|
|
|
2052
2062
|
constructor(t, r, s = "unspecified", n = "unspecified") {
|
|
2053
2063
|
super(t, { cause: { claim: s, reason: n, payload: r } }), this.claim = s, this.reason = n, this.payload = r;
|
|
2054
2064
|
}
|
|
2055
|
-
}
|
|
2065
|
+
};
|
|
2066
|
+
class Xn extends _e {
|
|
2056
2067
|
static code = "ERR_JOSE_ALG_NOT_ALLOWED";
|
|
2057
2068
|
code = "ERR_JOSE_ALG_NOT_ALLOWED";
|
|
2058
|
-
}
|
|
2069
|
+
}
|
|
2070
|
+
let fe = class extends _e {
|
|
2059
2071
|
static code = "ERR_JOSE_NOT_SUPPORTED";
|
|
2060
2072
|
code = "ERR_JOSE_NOT_SUPPORTED";
|
|
2061
2073
|
};
|
|
@@ -2067,23 +2079,18 @@ class de extends _e {
|
|
|
2067
2079
|
static code = "ERR_JWT_INVALID";
|
|
2068
2080
|
code = "ERR_JWT_INVALID";
|
|
2069
2081
|
}
|
|
2070
|
-
class
|
|
2082
|
+
let Zn = class extends _e {
|
|
2071
2083
|
static code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
|
|
2072
2084
|
code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
|
|
2073
2085
|
constructor(t = "signature verification failed", r) {
|
|
2074
2086
|
super(t, r);
|
|
2075
2087
|
}
|
|
2076
|
-
}
|
|
2077
|
-
|
|
2078
|
-
return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`);
|
|
2079
|
-
}
|
|
2080
|
-
function Ce(e, t) {
|
|
2081
|
-
return e.name === t;
|
|
2082
|
-
}
|
|
2088
|
+
};
|
|
2089
|
+
const ae = (e, t = "algorithm.name") => new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`), Ce = (e, t) => e.name === t;
|
|
2083
2090
|
function St(e) {
|
|
2084
2091
|
return parseInt(e.name.slice(4), 10);
|
|
2085
2092
|
}
|
|
2086
|
-
function
|
|
2093
|
+
function ea(e) {
|
|
2087
2094
|
switch (e) {
|
|
2088
2095
|
case "ES256":
|
|
2089
2096
|
return "P-256";
|
|
@@ -2095,11 +2102,11 @@ function Zn(e) {
|
|
|
2095
2102
|
throw new Error("unreachable");
|
|
2096
2103
|
}
|
|
2097
2104
|
}
|
|
2098
|
-
function
|
|
2105
|
+
function ta(e, t) {
|
|
2099
2106
|
if (!e.usages.includes(t))
|
|
2100
2107
|
throw new TypeError(`CryptoKey does not support this operation, its usages must include ${t}.`);
|
|
2101
2108
|
}
|
|
2102
|
-
function
|
|
2109
|
+
function ra(e, t, r) {
|
|
2103
2110
|
switch (t) {
|
|
2104
2111
|
case "HS256":
|
|
2105
2112
|
case "HS384":
|
|
@@ -2149,7 +2156,7 @@ function ta(e, t, r) {
|
|
|
2149
2156
|
case "ES512": {
|
|
2150
2157
|
if (!Ce(e.algorithm, "ECDSA"))
|
|
2151
2158
|
throw ae("ECDSA");
|
|
2152
|
-
const s =
|
|
2159
|
+
const s = ea(t);
|
|
2153
2160
|
if (e.algorithm.namedCurve !== s)
|
|
2154
2161
|
throw ae(s, "algorithm.namedCurve");
|
|
2155
2162
|
break;
|
|
@@ -2157,26 +2164,25 @@ function ta(e, t, r) {
|
|
|
2157
2164
|
default:
|
|
2158
2165
|
throw new TypeError("CryptoKey does not support this operation");
|
|
2159
2166
|
}
|
|
2160
|
-
|
|
2167
|
+
ta(e, r);
|
|
2161
2168
|
}
|
|
2162
|
-
function
|
|
2169
|
+
function ps(e, t, ...r) {
|
|
2163
2170
|
if (r = r.filter(Boolean), r.length > 2) {
|
|
2164
2171
|
const s = r.pop();
|
|
2165
2172
|
e += `one of type ${r.join(", ")}, or ${s}.`;
|
|
2166
2173
|
} else r.length === 2 ? e += `one of type ${r[0]} or ${r[1]}.` : e += `of type ${r[0]}.`;
|
|
2167
2174
|
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;
|
|
2168
2175
|
}
|
|
2169
|
-
const
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
const gs = (e) => ys(e) || ms(e), sa = (...e) => {
|
|
2176
|
+
const sa = (e, ...t) => ps("Key must be ", e, ...t), ys = (e, t, ...r) => ps(`Key for the ${e} algorithm must be `, t, ...r), ms = (e) => {
|
|
2177
|
+
if (e?.[Symbol.toStringTag] === "CryptoKey")
|
|
2178
|
+
return !0;
|
|
2179
|
+
try {
|
|
2180
|
+
return e instanceof CryptoKey;
|
|
2181
|
+
} catch {
|
|
2182
|
+
return !1;
|
|
2183
|
+
}
|
|
2184
|
+
}, gs = (e) => e?.[Symbol.toStringTag] === "KeyObject", Es = (e) => ms(e) || gs(e);
|
|
2185
|
+
function na(...e) {
|
|
2180
2186
|
const t = e.filter(Boolean);
|
|
2181
2187
|
if (t.length === 0 || t.length === 1)
|
|
2182
2188
|
return !0;
|
|
@@ -2194,12 +2200,10 @@ const gs = (e) => ys(e) || ms(e), sa = (...e) => {
|
|
|
2194
2200
|
}
|
|
2195
2201
|
}
|
|
2196
2202
|
return !0;
|
|
2197
|
-
};
|
|
2198
|
-
function na(e) {
|
|
2199
|
-
return typeof e == "object" && e !== null;
|
|
2200
2203
|
}
|
|
2201
|
-
const
|
|
2202
|
-
|
|
2204
|
+
const aa = (e) => typeof e == "object" && e !== null;
|
|
2205
|
+
function Ke(e) {
|
|
2206
|
+
if (!aa(e) || Object.prototype.toString.call(e) !== "[object Object]")
|
|
2203
2207
|
return !1;
|
|
2204
2208
|
if (Object.getPrototypeOf(e) === null)
|
|
2205
2209
|
return !0;
|
|
@@ -2207,20 +2211,22 @@ const Ke = (e) => {
|
|
|
2207
2211
|
for (; Object.getPrototypeOf(t) !== null; )
|
|
2208
2212
|
t = Object.getPrototypeOf(t);
|
|
2209
2213
|
return Object.getPrototypeOf(e) === t;
|
|
2210
|
-
}
|
|
2214
|
+
}
|
|
2215
|
+
function ia(e, t) {
|
|
2211
2216
|
if (e.startsWith("RS") || e.startsWith("PS")) {
|
|
2212
2217
|
const { modulusLength: r } = t.algorithm;
|
|
2213
2218
|
if (typeof r != "number" || r < 2048)
|
|
2214
2219
|
throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`);
|
|
2215
2220
|
}
|
|
2216
|
-
}
|
|
2221
|
+
}
|
|
2222
|
+
const bt = (e, t) => {
|
|
2217
2223
|
if (e.byteLength !== t.length)
|
|
2218
2224
|
return !1;
|
|
2219
2225
|
for (let r = 0; r < e.byteLength; r++)
|
|
2220
2226
|
if (e[r] !== t[r])
|
|
2221
2227
|
return !1;
|
|
2222
2228
|
return !0;
|
|
2223
|
-
},
|
|
2229
|
+
}, oa = (e) => ({ data: e, pos: 0 }), ct = (e) => {
|
|
2224
2230
|
const t = e.data[e.pos++];
|
|
2225
2231
|
if (t & 128) {
|
|
2226
2232
|
const r = t & 127;
|
|
@@ -2230,30 +2236,30 @@ const Ke = (e) => {
|
|
|
2230
2236
|
return s;
|
|
2231
2237
|
}
|
|
2232
2238
|
return t;
|
|
2233
|
-
},
|
|
2239
|
+
}, lt = (e, t, r) => {
|
|
2234
2240
|
if (e.data[e.pos++] !== t)
|
|
2235
2241
|
throw new Error(r);
|
|
2236
|
-
},
|
|
2242
|
+
}, ws = (e, t) => {
|
|
2237
2243
|
const r = e.data.subarray(e.pos, e.pos + t);
|
|
2238
2244
|
return e.pos += t, r;
|
|
2239
|
-
},
|
|
2240
|
-
|
|
2241
|
-
const t =
|
|
2242
|
-
return
|
|
2245
|
+
}, ca = (e) => {
|
|
2246
|
+
lt(e, 6, "Expected algorithm OID");
|
|
2247
|
+
const t = ct(e);
|
|
2248
|
+
return ws(e, t);
|
|
2243
2249
|
};
|
|
2244
|
-
function
|
|
2245
|
-
|
|
2246
|
-
const t =
|
|
2250
|
+
function la(e) {
|
|
2251
|
+
lt(e, 48, "Invalid SPKI structure"), ct(e), lt(e, 48, "Expected algorithm identifier");
|
|
2252
|
+
const t = ct(e);
|
|
2247
2253
|
return { algIdStart: e.pos, algIdLength: t };
|
|
2248
2254
|
}
|
|
2249
|
-
const
|
|
2250
|
-
const t =
|
|
2255
|
+
const ua = (e) => {
|
|
2256
|
+
const t = ca(e);
|
|
2251
2257
|
if (bt(t, [43, 101, 110]))
|
|
2252
2258
|
return "X25519";
|
|
2253
2259
|
if (!bt(t, [42, 134, 72, 206, 61, 2, 1]))
|
|
2254
2260
|
throw new Error("Unsupported key algorithm");
|
|
2255
|
-
|
|
2256
|
-
const r =
|
|
2261
|
+
lt(e, 6, "Expected curve OID");
|
|
2262
|
+
const r = ct(e), s = ws(e, r);
|
|
2257
2263
|
for (const { name: n, oid: a } of [
|
|
2258
2264
|
{ name: "P-256", oid: [42, 134, 72, 206, 61, 3, 1, 7] },
|
|
2259
2265
|
{ name: "P-384", oid: [43, 129, 4, 0, 34] },
|
|
@@ -2262,7 +2268,7 @@ const la = (e) => {
|
|
|
2262
2268
|
if (bt(s, a))
|
|
2263
2269
|
return n;
|
|
2264
2270
|
throw new Error("Unsupported named curve");
|
|
2265
|
-
},
|
|
2271
|
+
}, da = async (e, t, r, s) => {
|
|
2266
2272
|
let n, a;
|
|
2267
2273
|
const i = () => ["verify"], o = () => ["encrypt", "wrapKey"];
|
|
2268
2274
|
switch (r) {
|
|
@@ -2317,15 +2323,15 @@ const la = (e) => {
|
|
|
2317
2323
|
throw new fe('Invalid or unsupported "alg" (Algorithm) value');
|
|
2318
2324
|
}
|
|
2319
2325
|
return crypto.subtle.importKey(e, t, n, s?.extractable ?? !0, a);
|
|
2320
|
-
},
|
|
2321
|
-
const s =
|
|
2326
|
+
}, ha = (e, t) => fs(e.replace(t, "")), fa = (e, t, r) => {
|
|
2327
|
+
const s = ha(e, /(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g);
|
|
2322
2328
|
let n = r;
|
|
2323
2329
|
return t?.startsWith?.("ECDH-ES") && (n ||= {}, n.getNamedCurve = (a) => {
|
|
2324
|
-
const i =
|
|
2325
|
-
return
|
|
2326
|
-
}),
|
|
2330
|
+
const i = oa(a);
|
|
2331
|
+
return la(i), ua(i);
|
|
2332
|
+
}), da("spki", s, t, n);
|
|
2327
2333
|
};
|
|
2328
|
-
function
|
|
2334
|
+
function pa(e) {
|
|
2329
2335
|
let t, r;
|
|
2330
2336
|
switch (e.kty) {
|
|
2331
2337
|
case "AKP": {
|
|
@@ -2410,18 +2416,18 @@ function fa(e) {
|
|
|
2410
2416
|
}
|
|
2411
2417
|
return { algorithm: t, keyUsages: r };
|
|
2412
2418
|
}
|
|
2413
|
-
|
|
2419
|
+
async function ya(e) {
|
|
2414
2420
|
if (!e.alg)
|
|
2415
2421
|
throw new TypeError('"alg" argument is required when "jwk.alg" is not present');
|
|
2416
|
-
const { algorithm: t, keyUsages: r } =
|
|
2422
|
+
const { algorithm: t, keyUsages: r } = pa(e), s = { ...e };
|
|
2417
2423
|
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);
|
|
2418
|
-
}
|
|
2419
|
-
async function
|
|
2424
|
+
}
|
|
2425
|
+
async function ma(e, t, r) {
|
|
2420
2426
|
if (e.indexOf("-----BEGIN PUBLIC KEY-----") !== 0)
|
|
2421
2427
|
throw new TypeError('"spki" must be SPKI formatted string');
|
|
2422
|
-
return
|
|
2428
|
+
return fa(e, t, r);
|
|
2423
2429
|
}
|
|
2424
|
-
|
|
2430
|
+
function ga(e, t, r, s, n) {
|
|
2425
2431
|
if (n.crit !== void 0 && s?.crit === void 0)
|
|
2426
2432
|
throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');
|
|
2427
2433
|
if (!s || s.crit === void 0)
|
|
@@ -2439,33 +2445,23 @@ const ma = (e, t, r, s, n) => {
|
|
|
2439
2445
|
throw new e(`Extension Header Parameter "${i}" MUST be integrity protected`);
|
|
2440
2446
|
}
|
|
2441
2447
|
return new Set(s.crit);
|
|
2442
|
-
}
|
|
2448
|
+
}
|
|
2449
|
+
function Ea(e, t) {
|
|
2443
2450
|
if (t !== void 0 && (!Array.isArray(t) || t.some((r) => typeof r != "string")))
|
|
2444
2451
|
throw new TypeError(`"${e}" option must be an array of strings`);
|
|
2445
2452
|
if (t)
|
|
2446
2453
|
return new Set(t);
|
|
2447
|
-
};
|
|
2448
|
-
function Yt(e) {
|
|
2449
|
-
return Ke(e) && typeof e.kty == "string";
|
|
2450
|
-
}
|
|
2451
|
-
function Ea(e) {
|
|
2452
|
-
return e.kty !== "oct" && (e.kty === "AKP" && typeof e.priv == "string" || typeof e.d == "string");
|
|
2453
|
-
}
|
|
2454
|
-
function wa(e) {
|
|
2455
|
-
return e.kty !== "oct" && typeof e.d > "u" && typeof e.priv > "u";
|
|
2456
|
-
}
|
|
2457
|
-
function Sa(e) {
|
|
2458
|
-
return e.kty === "oct" && typeof e.k == "string";
|
|
2459
2454
|
}
|
|
2455
|
+
const Yt = (e) => Ke(e) && typeof e.kty == "string", wa = (e) => e.kty !== "oct" && (e.kty === "AKP" && typeof e.priv == "string" || typeof e.d == "string"), Sa = (e) => e.kty !== "oct" && e.d === void 0 && e.priv === void 0, ba = (e) => e.kty === "oct" && typeof e.k == "string";
|
|
2460
2456
|
let xe;
|
|
2461
|
-
const
|
|
2457
|
+
const wr = async (e, t, r, s = !1) => {
|
|
2462
2458
|
xe ||= /* @__PURE__ */ new WeakMap();
|
|
2463
2459
|
let n = xe.get(e);
|
|
2464
2460
|
if (n?.[r])
|
|
2465
2461
|
return n[r];
|
|
2466
|
-
const a = await
|
|
2462
|
+
const a = await ya({ ...t, alg: r });
|
|
2467
2463
|
return s && Object.freeze(e), n ? n[r] = a : xe.set(e, { [r]: a }), a;
|
|
2468
|
-
},
|
|
2464
|
+
}, va = (e, t) => {
|
|
2469
2465
|
xe ||= /* @__PURE__ */ new WeakMap();
|
|
2470
2466
|
let r = xe.get(e);
|
|
2471
2467
|
if (r?.[t])
|
|
@@ -2561,26 +2557,28 @@ const Er = async (e, t, r, s = !1) => {
|
|
|
2561
2557
|
if (!a)
|
|
2562
2558
|
throw new TypeError("given KeyObject instance cannot be used for this algorithm");
|
|
2563
2559
|
return r ? r[t] = a : xe.set(e, { [t]: a }), a;
|
|
2564
|
-
}
|
|
2565
|
-
|
|
2560
|
+
};
|
|
2561
|
+
async function Ta(e, t) {
|
|
2562
|
+
if (e instanceof Uint8Array || ms(e))
|
|
2566
2563
|
return e;
|
|
2567
|
-
if (
|
|
2564
|
+
if (gs(e)) {
|
|
2568
2565
|
if (e.type === "secret")
|
|
2569
2566
|
return e.export();
|
|
2570
2567
|
if ("toCryptoKey" in e && typeof e.toCryptoKey == "function")
|
|
2571
2568
|
try {
|
|
2572
|
-
return
|
|
2569
|
+
return va(e, t);
|
|
2573
2570
|
} catch (s) {
|
|
2574
2571
|
if (s instanceof TypeError)
|
|
2575
2572
|
throw s;
|
|
2576
2573
|
}
|
|
2577
2574
|
let r = e.export({ format: "jwk" });
|
|
2578
|
-
return
|
|
2575
|
+
return wr(e, r, t);
|
|
2579
2576
|
}
|
|
2580
2577
|
if (Yt(e))
|
|
2581
|
-
return e.k ? He(e.k) :
|
|
2578
|
+
return e.k ? He(e.k) : wr(e, e, t, !0);
|
|
2582
2579
|
throw new Error("unreachable");
|
|
2583
|
-
}
|
|
2580
|
+
}
|
|
2581
|
+
const Me = (e) => e?.[Symbol.toStringTag], Bt = (e, t, r) => {
|
|
2584
2582
|
if (t.use !== void 0) {
|
|
2585
2583
|
let s;
|
|
2586
2584
|
switch (r) {
|
|
@@ -2623,34 +2621,34 @@ const Er = async (e, t, r, s = !1) => {
|
|
|
2623
2621
|
throw new TypeError(`Invalid key for this operation, its "key_ops" must include "${s}" when present`);
|
|
2624
2622
|
}
|
|
2625
2623
|
return !0;
|
|
2626
|
-
},
|
|
2624
|
+
}, Ia = (e, t, r) => {
|
|
2627
2625
|
if (!(t instanceof Uint8Array)) {
|
|
2628
2626
|
if (Yt(t)) {
|
|
2629
|
-
if (
|
|
2627
|
+
if (ba(t) && Bt(e, t, r))
|
|
2630
2628
|
return;
|
|
2631
2629
|
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');
|
|
2632
2630
|
}
|
|
2633
|
-
if (!
|
|
2634
|
-
throw new TypeError(
|
|
2631
|
+
if (!Es(t))
|
|
2632
|
+
throw new TypeError(ys(e, t, "CryptoKey", "KeyObject", "JSON Web Key", "Uint8Array"));
|
|
2635
2633
|
if (t.type !== "secret")
|
|
2636
2634
|
throw new TypeError(`${Me(t)} instances for symmetric algorithms must be of type "secret"`);
|
|
2637
2635
|
}
|
|
2638
|
-
},
|
|
2636
|
+
}, _a = (e, t, r) => {
|
|
2639
2637
|
if (Yt(t))
|
|
2640
2638
|
switch (r) {
|
|
2641
2639
|
case "decrypt":
|
|
2642
2640
|
case "sign":
|
|
2643
|
-
if (
|
|
2641
|
+
if (wa(t) && Bt(e, t, r))
|
|
2644
2642
|
return;
|
|
2645
2643
|
throw new TypeError("JSON Web Key for this operation be a private JWK");
|
|
2646
2644
|
case "encrypt":
|
|
2647
2645
|
case "verify":
|
|
2648
|
-
if (
|
|
2646
|
+
if (Sa(t) && Bt(e, t, r))
|
|
2649
2647
|
return;
|
|
2650
2648
|
throw new TypeError("JSON Web Key for this operation be a public JWK");
|
|
2651
2649
|
}
|
|
2652
|
-
if (!
|
|
2653
|
-
throw new TypeError(
|
|
2650
|
+
if (!Es(t))
|
|
2651
|
+
throw new TypeError(ys(e, t, "CryptoKey", "KeyObject", "JSON Web Key"));
|
|
2654
2652
|
if (t.type === "secret")
|
|
2655
2653
|
throw new TypeError(`${Me(t)} instances for asymmetric algorithms must not be of type "secret"`);
|
|
2656
2654
|
if (t.type === "public")
|
|
@@ -2667,9 +2665,21 @@ const Er = async (e, t, r, s = !1) => {
|
|
|
2667
2665
|
case "encrypt":
|
|
2668
2666
|
throw new TypeError(`${Me(t)} instances for asymmetric algorithm encryption must be of type "public"`);
|
|
2669
2667
|
}
|
|
2670
|
-
}
|
|
2671
|
-
|
|
2672
|
-
|
|
2668
|
+
};
|
|
2669
|
+
function Aa(e, t, r) {
|
|
2670
|
+
switch (e.substring(0, 2)) {
|
|
2671
|
+
case "A1":
|
|
2672
|
+
case "A2":
|
|
2673
|
+
case "di":
|
|
2674
|
+
case "HS":
|
|
2675
|
+
case "PB":
|
|
2676
|
+
Ia(e, t, r);
|
|
2677
|
+
break;
|
|
2678
|
+
default:
|
|
2679
|
+
_a(e, t, r);
|
|
2680
|
+
}
|
|
2681
|
+
}
|
|
2682
|
+
function Ra(e, t) {
|
|
2673
2683
|
const r = `SHA-${e.slice(-3)}`;
|
|
2674
2684
|
switch (e) {
|
|
2675
2685
|
case "HS256":
|
|
@@ -2698,24 +2708,26 @@ const Er = async (e, t, r, s = !1) => {
|
|
|
2698
2708
|
default:
|
|
2699
2709
|
throw new fe(`alg ${e} is not supported either by JOSE or your javascript runtime`);
|
|
2700
2710
|
}
|
|
2701
|
-
}
|
|
2711
|
+
}
|
|
2712
|
+
async function Ca(e, t, r) {
|
|
2702
2713
|
if (t instanceof Uint8Array) {
|
|
2703
2714
|
if (!e.startsWith("HS"))
|
|
2704
|
-
throw new TypeError(
|
|
2715
|
+
throw new TypeError(sa(t, "CryptoKey", "KeyObject", "JSON Web Key"));
|
|
2705
2716
|
return crypto.subtle.importKey("raw", t, { hash: `SHA-${e.slice(-3)}`, name: "HMAC" }, !1, [r]);
|
|
2706
2717
|
}
|
|
2707
|
-
return
|
|
2708
|
-
}
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2718
|
+
return ra(t, e, r), t;
|
|
2719
|
+
}
|
|
2720
|
+
async function Oa(e, t, r, s) {
|
|
2721
|
+
const n = await Ca(e, t, "verify");
|
|
2722
|
+
ia(e, n);
|
|
2723
|
+
const a = Ra(e, n.algorithm);
|
|
2712
2724
|
try {
|
|
2713
2725
|
return await crypto.subtle.verify(a, n, r, s);
|
|
2714
2726
|
} catch {
|
|
2715
2727
|
return !1;
|
|
2716
2728
|
}
|
|
2717
|
-
}
|
|
2718
|
-
async function
|
|
2729
|
+
}
|
|
2730
|
+
async function ka(e, t, r) {
|
|
2719
2731
|
if (!Ke(e))
|
|
2720
2732
|
throw new W("Flattened JWS must be an object");
|
|
2721
2733
|
if (e.protected === void 0 && e.header === void 0)
|
|
@@ -2736,38 +2748,38 @@ async function Oa(e, t, r) {
|
|
|
2736
2748
|
} catch {
|
|
2737
2749
|
throw new W("JWS Protected Header is invalid");
|
|
2738
2750
|
}
|
|
2739
|
-
if (!
|
|
2751
|
+
if (!na(s, e.header))
|
|
2740
2752
|
throw new W("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
|
|
2741
2753
|
const n = {
|
|
2742
2754
|
...s,
|
|
2743
2755
|
...e.header
|
|
2744
|
-
}, a =
|
|
2756
|
+
}, a = ga(W, /* @__PURE__ */ new Map([["b64", !0]]), r?.crit, s, n);
|
|
2745
2757
|
let i = !0;
|
|
2746
2758
|
if (a.has("b64") && (i = s.b64, typeof i != "boolean"))
|
|
2747
2759
|
throw new W('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
|
|
2748
2760
|
const { alg: o } = n;
|
|
2749
2761
|
if (typeof o != "string" || !o)
|
|
2750
2762
|
throw new W('JWS "alg" (Algorithm) Header Parameter missing or invalid');
|
|
2751
|
-
const l = r &&
|
|
2763
|
+
const l = r && Ea("algorithms", r.algorithms);
|
|
2752
2764
|
if (l && !l.has(o))
|
|
2753
|
-
throw new
|
|
2765
|
+
throw new Xn('"alg" (Algorithm) Header Parameter value not allowed');
|
|
2754
2766
|
if (i) {
|
|
2755
2767
|
if (typeof e.payload != "string")
|
|
2756
2768
|
throw new W("JWS Payload must be a string");
|
|
2757
2769
|
} else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
|
|
2758
2770
|
throw new W("JWS Payload must be a string or an Uint8Array instance");
|
|
2759
2771
|
let f = !1;
|
|
2760
|
-
typeof t == "function" && (t = await t(s, e), f = !0),
|
|
2761
|
-
const d =
|
|
2772
|
+
typeof t == "function" && (t = await t(s, e), f = !0), Aa(o, t, "verify");
|
|
2773
|
+
const d = Jn(e.protected !== void 0 ? wt(e.protected) : new Uint8Array(), wt("."), typeof e.payload == "string" ? i ? wt(e.payload) : gr.encode(e.payload) : e.payload);
|
|
2762
2774
|
let h;
|
|
2763
2775
|
try {
|
|
2764
2776
|
h = He(e.signature);
|
|
2765
2777
|
} catch {
|
|
2766
2778
|
throw new W("Failed to base64url decode the signature");
|
|
2767
2779
|
}
|
|
2768
|
-
const u = await
|
|
2769
|
-
if (!await
|
|
2770
|
-
throw new
|
|
2780
|
+
const u = await Ta(t, o);
|
|
2781
|
+
if (!await Oa(o, u, h, d))
|
|
2782
|
+
throw new Zn();
|
|
2771
2783
|
let p;
|
|
2772
2784
|
if (i)
|
|
2773
2785
|
try {
|
|
@@ -2775,21 +2787,22 @@ async function Oa(e, t, r) {
|
|
|
2775
2787
|
} catch {
|
|
2776
2788
|
throw new W("Failed to base64url decode the payload");
|
|
2777
2789
|
}
|
|
2778
|
-
else typeof e.payload == "string" ? p =
|
|
2790
|
+
else typeof e.payload == "string" ? p = gr.encode(e.payload) : p = e.payload;
|
|
2779
2791
|
const y = { payload: p };
|
|
2780
2792
|
return e.protected !== void 0 && (y.protectedHeader = s), e.header !== void 0 && (y.unprotectedHeader = e.header), f ? { ...y, key: u } : y;
|
|
2781
2793
|
}
|
|
2782
|
-
async function
|
|
2794
|
+
async function Pa(e, t, r) {
|
|
2783
2795
|
if (e instanceof Uint8Array && (e = Le.decode(e)), typeof e != "string")
|
|
2784
2796
|
throw new W("Compact JWS must be a string or Uint8Array");
|
|
2785
2797
|
const { 0: s, 1: n, 2: a, length: i } = e.split(".");
|
|
2786
2798
|
if (i !== 3)
|
|
2787
2799
|
throw new W("Invalid Compact JWS");
|
|
2788
|
-
const o = await
|
|
2800
|
+
const o = await ka({ payload: n, protected: s, signature: a }, t, r), l = { payload: o.payload, protectedHeader: o.protectedHeader };
|
|
2789
2801
|
return typeof t == "function" ? { ...l, key: o.key } : l;
|
|
2790
2802
|
}
|
|
2791
|
-
const
|
|
2792
|
-
|
|
2803
|
+
const Na = (e) => Math.floor(e.getTime() / 1e3), Ss = 60, bs = Ss * 60, Jt = bs * 24, Ma = Jt * 7, xa = Jt * 365.25, La = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i;
|
|
2804
|
+
function Sr(e) {
|
|
2805
|
+
const t = La.exec(e);
|
|
2793
2806
|
if (!t || t[4] && t[1])
|
|
2794
2807
|
throw new TypeError("Invalid time period format");
|
|
2795
2808
|
const r = parseFloat(t[2]), s = t[3].toLowerCase();
|
|
@@ -2807,14 +2820,14 @@ const Pa = (e) => Math.floor(e.getTime() / 1e3), ws = 60, Ss = ws * 60, Jt = Ss
|
|
|
2807
2820
|
case "min":
|
|
2808
2821
|
case "mins":
|
|
2809
2822
|
case "m":
|
|
2810
|
-
n = Math.round(r *
|
|
2823
|
+
n = Math.round(r * Ss);
|
|
2811
2824
|
break;
|
|
2812
2825
|
case "hour":
|
|
2813
2826
|
case "hours":
|
|
2814
2827
|
case "hr":
|
|
2815
2828
|
case "hrs":
|
|
2816
2829
|
case "h":
|
|
2817
|
-
n = Math.round(r *
|
|
2830
|
+
n = Math.round(r * bs);
|
|
2818
2831
|
break;
|
|
2819
2832
|
case "day":
|
|
2820
2833
|
case "days":
|
|
@@ -2824,15 +2837,16 @@ const Pa = (e) => Math.floor(e.getTime() / 1e3), ws = 60, Ss = ws * 60, Jt = Ss
|
|
|
2824
2837
|
case "week":
|
|
2825
2838
|
case "weeks":
|
|
2826
2839
|
case "w":
|
|
2827
|
-
n = Math.round(r *
|
|
2840
|
+
n = Math.round(r * Ma);
|
|
2828
2841
|
break;
|
|
2829
2842
|
default:
|
|
2830
|
-
n = Math.round(r *
|
|
2843
|
+
n = Math.round(r * xa);
|
|
2831
2844
|
break;
|
|
2832
2845
|
}
|
|
2833
2846
|
return t[1] === "-" || t[4] === "ago" ? -n : n;
|
|
2834
|
-
}
|
|
2835
|
-
|
|
2847
|
+
}
|
|
2848
|
+
const br = (e) => e.includes("/") ? e.toLowerCase() : `application/${e.toLowerCase()}`, Da = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
|
|
2849
|
+
function $a(e, t, r = {}) {
|
|
2836
2850
|
let s;
|
|
2837
2851
|
try {
|
|
2838
2852
|
s = JSON.parse(Le.decode(t));
|
|
@@ -2841,7 +2855,7 @@ function Da(e, t, r = {}) {
|
|
|
2841
2855
|
if (!Ke(s))
|
|
2842
2856
|
throw new de("JWT Claims Set must be a top-level JSON object");
|
|
2843
2857
|
const { typ: n } = r;
|
|
2844
|
-
if (n && (typeof e.typ != "string" ||
|
|
2858
|
+
if (n && (typeof e.typ != "string" || br(e.typ) !== br(n)))
|
|
2845
2859
|
throw new ne('unexpected "typ" JWT header value', s, "typ", "check_failed");
|
|
2846
2860
|
const { requiredClaims: a = [], issuer: i, subject: o, audience: l, maxTokenAge: f } = r, d = [...a];
|
|
2847
2861
|
f !== void 0 && d.push("iat"), l !== void 0 && d.push("aud"), o !== void 0 && d.push("sub"), i !== void 0 && d.push("iss");
|
|
@@ -2852,12 +2866,12 @@ function Da(e, t, r = {}) {
|
|
|
2852
2866
|
throw new ne('unexpected "iss" claim value', s, "iss", "check_failed");
|
|
2853
2867
|
if (o && s.sub !== o)
|
|
2854
2868
|
throw new ne('unexpected "sub" claim value', s, "sub", "check_failed");
|
|
2855
|
-
if (l && !
|
|
2869
|
+
if (l && !Da(s.aud, typeof l == "string" ? [l] : l))
|
|
2856
2870
|
throw new ne('unexpected "aud" claim value', s, "aud", "check_failed");
|
|
2857
2871
|
let h;
|
|
2858
2872
|
switch (typeof r.clockTolerance) {
|
|
2859
2873
|
case "string":
|
|
2860
|
-
h =
|
|
2874
|
+
h = Sr(r.clockTolerance);
|
|
2861
2875
|
break;
|
|
2862
2876
|
case "number":
|
|
2863
2877
|
h = r.clockTolerance;
|
|
@@ -2868,7 +2882,7 @@ function Da(e, t, r = {}) {
|
|
|
2868
2882
|
default:
|
|
2869
2883
|
throw new TypeError("Invalid clockTolerance option type");
|
|
2870
2884
|
}
|
|
2871
|
-
const { currentDate: u } = r, p =
|
|
2885
|
+
const { currentDate: u } = r, p = Na(u || /* @__PURE__ */ new Date());
|
|
2872
2886
|
if ((s.iat !== void 0 || f) && typeof s.iat != "number")
|
|
2873
2887
|
throw new ne('"iat" claim must be a number', s, "iat", "invalid");
|
|
2874
2888
|
if (s.nbf !== void 0) {
|
|
@@ -2881,25 +2895,25 @@ function Da(e, t, r = {}) {
|
|
|
2881
2895
|
if (typeof s.exp != "number")
|
|
2882
2896
|
throw new ne('"exp" claim must be a number', s, "exp", "invalid");
|
|
2883
2897
|
if (s.exp <= p - h)
|
|
2884
|
-
throw new
|
|
2898
|
+
throw new Er('"exp" claim timestamp check failed', s, "exp", "check_failed");
|
|
2885
2899
|
}
|
|
2886
2900
|
if (f) {
|
|
2887
|
-
const y = p - s.iat, g = typeof f == "number" ? f :
|
|
2901
|
+
const y = p - s.iat, g = typeof f == "number" ? f : Sr(f);
|
|
2888
2902
|
if (y - h > g)
|
|
2889
|
-
throw new
|
|
2903
|
+
throw new Er('"iat" claim timestamp check failed (too far in the past)', s, "iat", "check_failed");
|
|
2890
2904
|
if (y < 0 - h)
|
|
2891
2905
|
throw new ne('"iat" claim timestamp check failed (it should be in the past)', s, "iat", "check_failed");
|
|
2892
2906
|
}
|
|
2893
2907
|
return s;
|
|
2894
2908
|
}
|
|
2895
|
-
async function
|
|
2896
|
-
const s = await
|
|
2909
|
+
async function Ua(e, t, r) {
|
|
2910
|
+
const s = await Pa(e, t, r);
|
|
2897
2911
|
if (s.protectedHeader.crit?.includes("b64") && s.protectedHeader.b64 === !1)
|
|
2898
2912
|
throw new de("JWTs MUST NOT use unencoded payload");
|
|
2899
|
-
const n = { payload:
|
|
2913
|
+
const n = { payload: $a(s.protectedHeader, s.payload, r), protectedHeader: s.protectedHeader };
|
|
2900
2914
|
return typeof t == "function" ? { ...n, key: s.key } : n;
|
|
2901
2915
|
}
|
|
2902
|
-
function
|
|
2916
|
+
function Ha(e) {
|
|
2903
2917
|
if (typeof e != "string")
|
|
2904
2918
|
throw new de("JWTs must use Compact JWS serialization, JWT must be a string");
|
|
2905
2919
|
const { 1: t, length: r } = e.split(".");
|
|
@@ -2927,73 +2941,73 @@ function Ua(e) {
|
|
|
2927
2941
|
}
|
|
2928
2942
|
const Ve = async (e) => {
|
|
2929
2943
|
try {
|
|
2930
|
-
const t = Q.ALG, r = await
|
|
2931
|
-
return await
|
|
2944
|
+
const t = Q.ALG, r = await ma(Yn, t);
|
|
2945
|
+
return await Ua(e, r, {
|
|
2932
2946
|
issuer: Q.ISSUER
|
|
2933
2947
|
});
|
|
2934
2948
|
} catch {
|
|
2935
2949
|
return;
|
|
2936
2950
|
}
|
|
2937
|
-
},
|
|
2951
|
+
}, Fa = (e) => {
|
|
2938
2952
|
try {
|
|
2939
|
-
return
|
|
2953
|
+
return Ha(e);
|
|
2940
2954
|
} catch {
|
|
2941
2955
|
return;
|
|
2942
2956
|
}
|
|
2943
2957
|
}, z = [];
|
|
2944
2958
|
for (let e = 0; e < 256; ++e)
|
|
2945
2959
|
z.push((e + 256).toString(16).slice(1));
|
|
2946
|
-
function
|
|
2960
|
+
function Ba(e, t = 0) {
|
|
2947
2961
|
return (z[e[t + 0]] + z[e[t + 1]] + z[e[t + 2]] + z[e[t + 3]] + "-" + z[e[t + 4]] + z[e[t + 5]] + "-" + z[e[t + 6]] + z[e[t + 7]] + "-" + z[e[t + 8]] + z[e[t + 9]] + "-" + z[e[t + 10]] + z[e[t + 11]] + z[e[t + 12]] + z[e[t + 13]] + z[e[t + 14]] + z[e[t + 15]]).toLowerCase();
|
|
2948
2962
|
}
|
|
2949
2963
|
let vt;
|
|
2950
|
-
const
|
|
2951
|
-
function
|
|
2964
|
+
const Ka = new Uint8Array(16);
|
|
2965
|
+
function Va() {
|
|
2952
2966
|
if (!vt) {
|
|
2953
2967
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
2954
2968
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
2955
2969
|
vt = crypto.getRandomValues.bind(crypto);
|
|
2956
2970
|
}
|
|
2957
|
-
return vt(
|
|
2971
|
+
return vt(Ka);
|
|
2958
2972
|
}
|
|
2959
|
-
const
|
|
2960
|
-
function
|
|
2961
|
-
if (
|
|
2962
|
-
return
|
|
2973
|
+
const Ga = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), vr = { randomUUID: Ga };
|
|
2974
|
+
function Tr(e, t, r) {
|
|
2975
|
+
if (vr.randomUUID && !e)
|
|
2976
|
+
return vr.randomUUID();
|
|
2963
2977
|
e = e || {};
|
|
2964
|
-
const s = e.random ?? e.rng?.() ??
|
|
2978
|
+
const s = e.random ?? e.rng?.() ?? Va();
|
|
2965
2979
|
if (s.length < 16)
|
|
2966
2980
|
throw new Error("Random bytes length must be >= 16");
|
|
2967
|
-
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128,
|
|
2981
|
+
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, Ba(s);
|
|
2968
2982
|
}
|
|
2969
|
-
const
|
|
2983
|
+
const Ir = globalThis.crypto, za = (e) => `${Tr()}${Tr()}`.slice(0, e), qa = (e) => btoa(
|
|
2970
2984
|
[...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")
|
|
2971
2985
|
);
|
|
2972
|
-
async function
|
|
2973
|
-
if (!
|
|
2986
|
+
async function Wa(e) {
|
|
2987
|
+
if (!Ir.subtle)
|
|
2974
2988
|
throw new Error(
|
|
2975
2989
|
"crypto.subtle is available only in secure contexts (HTTPS)."
|
|
2976
2990
|
);
|
|
2977
|
-
const t = new TextEncoder().encode(e), r = await
|
|
2978
|
-
return
|
|
2991
|
+
const t = new TextEncoder().encode(e), r = await Ir.subtle.digest("SHA-256", t);
|
|
2992
|
+
return qa(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
2979
2993
|
}
|
|
2980
|
-
async function
|
|
2981
|
-
const r =
|
|
2994
|
+
async function ja(e) {
|
|
2995
|
+
const r = za(43), s = await Wa(r);
|
|
2982
2996
|
return {
|
|
2983
2997
|
code_verifier: r,
|
|
2984
2998
|
code_challenge: s
|
|
2985
2999
|
};
|
|
2986
3000
|
}
|
|
2987
|
-
const
|
|
2988
|
-
var
|
|
3001
|
+
const vs = Gt(null);
|
|
3002
|
+
var Qa = Object.defineProperty, Ya = (e, t, r) => t in e ? Qa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Tt = (e, t, r) => Ya(e, typeof t != "symbol" ? t + "" : t, r);
|
|
2989
3003
|
/*!
|
|
2990
|
-
@versini/auth-provider v8.1.
|
|
3004
|
+
@versini/auth-provider v8.1.1
|
|
2991
3005
|
© 2025 gizmette.com
|
|
2992
3006
|
*/
|
|
2993
3007
|
try {
|
|
2994
3008
|
window.__VERSINI_AUTH_CLIENT__ || (window.__VERSINI_AUTH_CLIENT__ = {
|
|
2995
|
-
version: "8.1.
|
|
2996
|
-
buildTime: "11/
|
|
3009
|
+
version: "8.1.1",
|
|
3010
|
+
buildTime: "11/29/2025 08:06 PM EST",
|
|
2997
3011
|
homepage: "https://github.com/aversini/auth-client",
|
|
2998
3012
|
license: "MIT"
|
|
2999
3013
|
});
|
|
@@ -3006,23 +3020,23 @@ function ie(e) {
|
|
|
3006
3020
|
r += String.fromCharCode(s);
|
|
3007
3021
|
return btoa(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
|
3008
3022
|
}
|
|
3009
|
-
function
|
|
3023
|
+
function ut(e) {
|
|
3010
3024
|
const t = e.replace(/-/g, "+").replace(/_/g, "/"), r = (4 - t.length % 4) % 4, s = t.padEnd(t.length + r, "="), n = atob(s), a = new ArrayBuffer(n.length), i = new Uint8Array(a);
|
|
3011
3025
|
for (let o = 0; o < n.length; o++)
|
|
3012
3026
|
i[o] = n.charCodeAt(o);
|
|
3013
3027
|
return a;
|
|
3014
3028
|
}
|
|
3015
3029
|
function Xt() {
|
|
3016
|
-
return
|
|
3030
|
+
return Ja.stubThis(globalThis?.PublicKeyCredential !== void 0 && typeof globalThis.PublicKeyCredential == "function");
|
|
3017
3031
|
}
|
|
3018
|
-
const
|
|
3032
|
+
const Ja = {
|
|
3019
3033
|
stubThis: (e) => e
|
|
3020
3034
|
};
|
|
3021
|
-
function
|
|
3035
|
+
function Ts(e) {
|
|
3022
3036
|
const { id: t } = e;
|
|
3023
3037
|
return {
|
|
3024
3038
|
...e,
|
|
3025
|
-
id:
|
|
3039
|
+
id: ut(t),
|
|
3026
3040
|
/**
|
|
3027
3041
|
* `descriptor.transports` is an array of our `AuthenticatorTransportFuture` that includes newer
|
|
3028
3042
|
* transports that TypeScript's DOM lib is ignorant of. Convince TS that our list of transports
|
|
@@ -3031,7 +3045,7 @@ function vs(e) {
|
|
|
3031
3045
|
transports: e.transports
|
|
3032
3046
|
};
|
|
3033
3047
|
}
|
|
3034
|
-
function
|
|
3048
|
+
function Is(e) {
|
|
3035
3049
|
return (
|
|
3036
3050
|
// Consider localhost valid as well since it's okay wrt Secure Contexts
|
|
3037
3051
|
e === "localhost" || /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)
|
|
@@ -3047,7 +3061,7 @@ class j extends Error {
|
|
|
3047
3061
|
}), this.name = n ?? s.name, this.code = r;
|
|
3048
3062
|
}
|
|
3049
3063
|
}
|
|
3050
|
-
function
|
|
3064
|
+
function Xa({ error: e, options: t }) {
|
|
3051
3065
|
const { publicKey: r } = t;
|
|
3052
3066
|
if (!r)
|
|
3053
3067
|
throw Error("options was missing required publicKey property");
|
|
@@ -3105,7 +3119,7 @@ function Ja({ error: e, options: t }) {
|
|
|
3105
3119
|
});
|
|
3106
3120
|
if (e.name === "SecurityError") {
|
|
3107
3121
|
const s = globalThis.location.hostname;
|
|
3108
|
-
if (
|
|
3122
|
+
if (Is(s)) {
|
|
3109
3123
|
if (r.rp.id !== s)
|
|
3110
3124
|
return new j({
|
|
3111
3125
|
message: `The RP ID "${r.rp.id}" is invalid for this domain`,
|
|
@@ -3133,7 +3147,7 @@ function Ja({ error: e, options: t }) {
|
|
|
3133
3147
|
}
|
|
3134
3148
|
return e;
|
|
3135
3149
|
}
|
|
3136
|
-
class
|
|
3150
|
+
class Za {
|
|
3137
3151
|
constructor() {
|
|
3138
3152
|
Object.defineProperty(this, "controller", {
|
|
3139
3153
|
enumerable: !0,
|
|
@@ -3157,31 +3171,31 @@ class Xa {
|
|
|
3157
3171
|
}
|
|
3158
3172
|
}
|
|
3159
3173
|
}
|
|
3160
|
-
const
|
|
3161
|
-
function
|
|
3162
|
-
if (e && !(
|
|
3174
|
+
const _s = new Za(), ei = ["cross-platform", "platform"];
|
|
3175
|
+
function As(e) {
|
|
3176
|
+
if (e && !(ei.indexOf(e) < 0))
|
|
3163
3177
|
return e;
|
|
3164
3178
|
}
|
|
3165
|
-
async function
|
|
3179
|
+
async function ti(e) {
|
|
3166
3180
|
!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 });
|
|
3167
3181
|
const { optionsJSON: t, useAutoRegister: r = !1 } = e;
|
|
3168
3182
|
if (!Xt())
|
|
3169
3183
|
throw new Error("WebAuthn is not supported in this browser");
|
|
3170
3184
|
const s = {
|
|
3171
3185
|
...t,
|
|
3172
|
-
challenge:
|
|
3186
|
+
challenge: ut(t.challenge),
|
|
3173
3187
|
user: {
|
|
3174
3188
|
...t.user,
|
|
3175
|
-
id:
|
|
3189
|
+
id: ut(t.user.id)
|
|
3176
3190
|
},
|
|
3177
|
-
excludeCredentials: t.excludeCredentials?.map(
|
|
3191
|
+
excludeCredentials: t.excludeCredentials?.map(Ts)
|
|
3178
3192
|
}, n = {};
|
|
3179
|
-
r && (n.mediation = "conditional"), n.publicKey = s, n.signal =
|
|
3193
|
+
r && (n.mediation = "conditional"), n.publicKey = s, n.signal = _s.createNewAbortSignal();
|
|
3180
3194
|
let a;
|
|
3181
3195
|
try {
|
|
3182
3196
|
a = await navigator.credentials.create(n);
|
|
3183
3197
|
} catch (y) {
|
|
3184
|
-
throw
|
|
3198
|
+
throw Xa({ error: y, options: n });
|
|
3185
3199
|
}
|
|
3186
3200
|
if (!a)
|
|
3187
3201
|
throw new Error("Registration was not completed");
|
|
@@ -3223,14 +3237,14 @@ async function ei(e) {
|
|
|
3223
3237
|
},
|
|
3224
3238
|
type: f,
|
|
3225
3239
|
clientExtensionResults: a.getClientExtensionResults(),
|
|
3226
|
-
authenticatorAttachment:
|
|
3240
|
+
authenticatorAttachment: As(a.authenticatorAttachment)
|
|
3227
3241
|
};
|
|
3228
3242
|
}
|
|
3229
3243
|
function It(e, t) {
|
|
3230
3244
|
console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
|
|
3231
3245
|
`, t);
|
|
3232
3246
|
}
|
|
3233
|
-
function
|
|
3247
|
+
function ri() {
|
|
3234
3248
|
if (!Xt())
|
|
3235
3249
|
return _t.stubThis(new Promise((t) => t(!1)));
|
|
3236
3250
|
const e = globalThis.PublicKeyCredential;
|
|
@@ -3239,7 +3253,7 @@ function ti() {
|
|
|
3239
3253
|
const _t = {
|
|
3240
3254
|
stubThis: (e) => e
|
|
3241
3255
|
};
|
|
3242
|
-
function
|
|
3256
|
+
function si({ error: e, options: t }) {
|
|
3243
3257
|
const { publicKey: r } = t;
|
|
3244
3258
|
if (!r)
|
|
3245
3259
|
throw Error("options was missing required publicKey property");
|
|
@@ -3259,7 +3273,7 @@ function ri({ error: e, options: t }) {
|
|
|
3259
3273
|
});
|
|
3260
3274
|
if (e.name === "SecurityError") {
|
|
3261
3275
|
const s = globalThis.location.hostname;
|
|
3262
|
-
if (
|
|
3276
|
+
if (Is(s)) {
|
|
3263
3277
|
if (r.rpId !== s)
|
|
3264
3278
|
return new j({
|
|
3265
3279
|
message: `The RP ID "${r.rpId}" is invalid for this domain`,
|
|
@@ -3280,31 +3294,31 @@ function ri({ error: e, options: t }) {
|
|
|
3280
3294
|
}
|
|
3281
3295
|
return e;
|
|
3282
3296
|
}
|
|
3283
|
-
async function
|
|
3297
|
+
async function ni(e) {
|
|
3284
3298
|
!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 });
|
|
3285
3299
|
const { optionsJSON: t, useBrowserAutofill: r = !1, verifyBrowserAutofillInput: s = !0 } = e;
|
|
3286
3300
|
if (!Xt())
|
|
3287
3301
|
throw new Error("WebAuthn is not supported in this browser");
|
|
3288
3302
|
let n;
|
|
3289
|
-
t.allowCredentials?.length !== 0 && (n = t.allowCredentials?.map(
|
|
3303
|
+
t.allowCredentials?.length !== 0 && (n = t.allowCredentials?.map(Ts));
|
|
3290
3304
|
const a = {
|
|
3291
3305
|
...t,
|
|
3292
|
-
challenge:
|
|
3306
|
+
challenge: ut(t.challenge),
|
|
3293
3307
|
allowCredentials: n
|
|
3294
3308
|
}, i = {};
|
|
3295
3309
|
if (r) {
|
|
3296
|
-
if (!await
|
|
3310
|
+
if (!await ri())
|
|
3297
3311
|
throw Error("Browser does not support WebAuthn autofill");
|
|
3298
3312
|
if (document.querySelectorAll("input[autocomplete$='webauthn']").length < 1 && s)
|
|
3299
3313
|
throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');
|
|
3300
3314
|
i.mediation = "conditional", a.allowCredentials = [];
|
|
3301
3315
|
}
|
|
3302
|
-
i.publicKey = a, i.signal =
|
|
3316
|
+
i.publicKey = a, i.signal = _s.createNewAbortSignal();
|
|
3303
3317
|
let o;
|
|
3304
3318
|
try {
|
|
3305
3319
|
o = await navigator.credentials.get(i);
|
|
3306
3320
|
} catch (p) {
|
|
3307
|
-
throw
|
|
3321
|
+
throw si({ error: p, options: i });
|
|
3308
3322
|
}
|
|
3309
3323
|
if (!o)
|
|
3310
3324
|
throw new Error("Authentication was not completed");
|
|
@@ -3321,74 +3335,98 @@ async function si(e) {
|
|
|
3321
3335
|
},
|
|
3322
3336
|
type: h,
|
|
3323
3337
|
clientExtensionResults: o.getClientExtensionResults(),
|
|
3324
|
-
authenticatorAttachment:
|
|
3338
|
+
authenticatorAttachment: As(o.authenticatorAttachment)
|
|
3325
3339
|
};
|
|
3326
3340
|
}
|
|
3327
|
-
|
|
3328
|
-
|
|
3341
|
+
/*!
|
|
3342
|
+
@versini/ui-hooks v5.2.0
|
|
3343
|
+
© 2025 gizmette.com
|
|
3344
|
+
*/
|
|
3345
|
+
try {
|
|
3346
|
+
window.__VERSINI_UI_HOOKS__ || (window.__VERSINI_UI_HOOKS__ = {
|
|
3347
|
+
version: "5.2.0",
|
|
3348
|
+
buildTime: "11/04/2025 03:42 PM EST",
|
|
3349
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
3350
|
+
license: "MIT"
|
|
3351
|
+
});
|
|
3352
|
+
} catch {
|
|
3353
|
+
}
|
|
3354
|
+
function Rs(e, t) {
|
|
3355
|
+
window.dispatchEvent(new StorageEvent("storage", {
|
|
3356
|
+
key: e,
|
|
3357
|
+
newValue: t
|
|
3358
|
+
}));
|
|
3329
3359
|
}
|
|
3330
|
-
const
|
|
3331
|
-
const r = JSON.stringify(
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
window.localStorage.
|
|
3335
|
-
},
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
}) {
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
console.warn(o);
|
|
3349
|
-
}
|
|
3350
|
-
},
|
|
3351
|
-
[e, r]
|
|
3352
|
-
), n = M(() => {
|
|
3360
|
+
const _r = (e, t) => {
|
|
3361
|
+
const r = JSON.stringify(typeof t == "function" ? t() : t);
|
|
3362
|
+
window.localStorage.setItem(e, r), Rs(e, r);
|
|
3363
|
+
}, ai = (e) => {
|
|
3364
|
+
window.localStorage.removeItem(e), Rs(e, null);
|
|
3365
|
+
}, Ar = (e) => window.localStorage.getItem(e), ii = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
3366
|
+
function je({ key: e, initialValue: t }) {
|
|
3367
|
+
const r = zr(ii, () => Ar(e)), s = M((i) => {
|
|
3368
|
+
try {
|
|
3369
|
+
const o = typeof i == "function" ? i(JSON.parse(r)) : i;
|
|
3370
|
+
o == null ? ai(e) : _r(e, o);
|
|
3371
|
+
} catch (o) {
|
|
3372
|
+
console.warn(o);
|
|
3373
|
+
}
|
|
3374
|
+
}, [
|
|
3375
|
+
e,
|
|
3376
|
+
r
|
|
3377
|
+
]), n = M(() => {
|
|
3353
3378
|
s(t);
|
|
3354
|
-
}, [
|
|
3379
|
+
}, [
|
|
3380
|
+
t,
|
|
3381
|
+
s
|
|
3382
|
+
]), a = M(() => {
|
|
3355
3383
|
s(null);
|
|
3356
|
-
}, [
|
|
3384
|
+
}, [
|
|
3385
|
+
s
|
|
3386
|
+
]);
|
|
3357
3387
|
return A(() => {
|
|
3358
3388
|
try {
|
|
3359
|
-
|
|
3389
|
+
Ar(e) === null && typeof t < "u" && _r(e, t);
|
|
3360
3390
|
} catch (i) {
|
|
3361
3391
|
console.warn(i);
|
|
3362
3392
|
}
|
|
3363
|
-
}, [
|
|
3393
|
+
}, [
|
|
3394
|
+
e,
|
|
3395
|
+
t
|
|
3396
|
+
]), [
|
|
3397
|
+
r ? JSON.parse(r) : null,
|
|
3398
|
+
s,
|
|
3399
|
+
n,
|
|
3400
|
+
a
|
|
3401
|
+
];
|
|
3364
3402
|
}
|
|
3365
3403
|
const q = [];
|
|
3366
3404
|
for (let e = 0; e < 256; ++e)
|
|
3367
3405
|
q.push((e + 256).toString(16).slice(1));
|
|
3368
|
-
function
|
|
3406
|
+
function oi(e, t = 0) {
|
|
3369
3407
|
return (q[e[t + 0]] + q[e[t + 1]] + q[e[t + 2]] + q[e[t + 3]] + "-" + q[e[t + 4]] + q[e[t + 5]] + "-" + q[e[t + 6]] + q[e[t + 7]] + "-" + q[e[t + 8]] + q[e[t + 9]] + "-" + q[e[t + 10]] + q[e[t + 11]] + q[e[t + 12]] + q[e[t + 13]] + q[e[t + 14]] + q[e[t + 15]]).toLowerCase();
|
|
3370
3408
|
}
|
|
3371
3409
|
let At;
|
|
3372
|
-
const
|
|
3373
|
-
function
|
|
3410
|
+
const ci = new Uint8Array(16);
|
|
3411
|
+
function li() {
|
|
3374
3412
|
if (!At) {
|
|
3375
3413
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
3376
3414
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
3377
3415
|
At = crypto.getRandomValues.bind(crypto);
|
|
3378
3416
|
}
|
|
3379
|
-
return At(
|
|
3417
|
+
return At(ci);
|
|
3380
3418
|
}
|
|
3381
|
-
const
|
|
3419
|
+
const ui = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Rr = { randomUUID: ui };
|
|
3382
3420
|
function Rt(e, t, r) {
|
|
3383
|
-
if (
|
|
3384
|
-
return
|
|
3421
|
+
if (Rr.randomUUID && !e)
|
|
3422
|
+
return Rr.randomUUID();
|
|
3385
3423
|
e = e || {};
|
|
3386
|
-
const s = e.random ?? e.rng?.() ??
|
|
3424
|
+
const s = e.random ?? e.rng?.() ?? li();
|
|
3387
3425
|
if (s.length < 16)
|
|
3388
3426
|
throw new Error("Random bytes length must be >= 16");
|
|
3389
|
-
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128,
|
|
3427
|
+
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, oi(s);
|
|
3390
3428
|
}
|
|
3391
|
-
const Oe = "Your session has expired. For your security, please log in again to continue.",
|
|
3429
|
+
const Oe = "Your session has expired. For your security, please log in again to continue.", di = "Your session has been successfully terminated.", Ct = "Login failed. Please try again.", hi = "Error getting access token, please re-authenticate.", fi = "You forgot to wrap your component in <AuthProvider>.", Qe = "@@auth@@", $e = "LOADING", tt = "LOGIN", Cs = "LOGOUT", qe = "success", ce = "failure", Os = "include", ks = "POST", Ps = "application/json", Ye = {
|
|
3392
3430
|
GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
|
|
3393
3431
|
$clientId: String!,
|
|
3394
3432
|
$username: String!,
|
|
@@ -3471,19 +3509,19 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
|
3471
3509
|
}`
|
|
3472
3510
|
}, ke = {
|
|
3473
3511
|
GET_REGISTRATION_OPTIONS: {
|
|
3474
|
-
schema:
|
|
3512
|
+
schema: Ye.GET_REGISTRATION_OPTIONS,
|
|
3475
3513
|
method: "getPasskeyRegistrationOptions"
|
|
3476
3514
|
},
|
|
3477
3515
|
VERIFY_REGISTRATION: {
|
|
3478
|
-
schema:
|
|
3516
|
+
schema: Ye.VERIFY_REGISTRATION,
|
|
3479
3517
|
method: "verifyPasskeyRegistration"
|
|
3480
3518
|
},
|
|
3481
3519
|
GET_AUTHENTICATION_OPTIONS: {
|
|
3482
|
-
schema:
|
|
3520
|
+
schema: Ye.GET_AUTHENTICATION_OPTIONS,
|
|
3483
3521
|
method: "getPasskeyAuthenticationOptions"
|
|
3484
3522
|
},
|
|
3485
3523
|
VERIFY_AUTHENTICATION: {
|
|
3486
|
-
schema:
|
|
3524
|
+
schema: Ye.VERIFY_AUTHENTICATION,
|
|
3487
3525
|
method: "verifyPasskeyAuthentication"
|
|
3488
3526
|
}
|
|
3489
3527
|
}, Pe = async ({
|
|
@@ -3495,12 +3533,12 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
|
3495
3533
|
}) => {
|
|
3496
3534
|
try {
|
|
3497
3535
|
const a = `Bearer ${e}`, i = await fetch(`${n}/graphql`, {
|
|
3498
|
-
credentials:
|
|
3499
|
-
method:
|
|
3536
|
+
credentials: Os,
|
|
3537
|
+
method: ks,
|
|
3500
3538
|
headers: {
|
|
3501
3539
|
authorization: a,
|
|
3502
|
-
"Content-Type":
|
|
3503
|
-
[
|
|
3540
|
+
"Content-Type": Ps,
|
|
3541
|
+
[hs.CLIENT_ID]: `${r}`
|
|
3504
3542
|
},
|
|
3505
3543
|
body: JSON.stringify({
|
|
3506
3544
|
query: t.schema,
|
|
@@ -3517,7 +3555,7 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
|
3517
3555
|
} catch (a) {
|
|
3518
3556
|
return console.error(a), { status: ce, data: [] };
|
|
3519
3557
|
}
|
|
3520
|
-
},
|
|
3558
|
+
}, gt = async ({
|
|
3521
3559
|
type: e,
|
|
3522
3560
|
clientId: t,
|
|
3523
3561
|
params: r = {},
|
|
@@ -3525,11 +3563,11 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
|
3525
3563
|
}) => {
|
|
3526
3564
|
try {
|
|
3527
3565
|
const n = await fetch(`${s}/${e}`, {
|
|
3528
|
-
credentials:
|
|
3529
|
-
method:
|
|
3566
|
+
credentials: Os,
|
|
3567
|
+
method: ks,
|
|
3530
3568
|
headers: {
|
|
3531
|
-
"Content-Type":
|
|
3532
|
-
[
|
|
3569
|
+
"Content-Type": Ps,
|
|
3570
|
+
[hs.CLIENT_ID]: `${t}`
|
|
3533
3571
|
},
|
|
3534
3572
|
body: JSON.stringify(r)
|
|
3535
3573
|
});
|
|
@@ -3543,21 +3581,21 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
|
3543
3581
|
} catch (n) {
|
|
3544
3582
|
return console.error(n), { status: ce, data: [] };
|
|
3545
3583
|
}
|
|
3546
|
-
},
|
|
3584
|
+
}, pi = process.env.NODE_ENV === "production", yi = !pi, Ns = {
|
|
3547
3585
|
isLoading: !0,
|
|
3548
3586
|
isAuthenticated: !1,
|
|
3549
3587
|
user: void 0,
|
|
3550
3588
|
logoutReason: "",
|
|
3551
3589
|
debug: !1,
|
|
3552
3590
|
authenticationType: ""
|
|
3553
|
-
},
|
|
3591
|
+
}, mi = (e) => {
|
|
3554
3592
|
try {
|
|
3555
|
-
const t =
|
|
3593
|
+
const t = Fa(e);
|
|
3556
3594
|
return t ? t[Q.USER_ID_KEY] : "";
|
|
3557
3595
|
} catch {
|
|
3558
3596
|
return "";
|
|
3559
3597
|
}
|
|
3560
|
-
},
|
|
3598
|
+
}, gi = async ({
|
|
3561
3599
|
userId: e,
|
|
3562
3600
|
clientId: t,
|
|
3563
3601
|
domain: r,
|
|
@@ -3566,9 +3604,9 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
|
3566
3604
|
}) => {
|
|
3567
3605
|
try {
|
|
3568
3606
|
return {
|
|
3569
|
-
status: (await
|
|
3607
|
+
status: (await gt({
|
|
3570
3608
|
endpoint: n,
|
|
3571
|
-
type:
|
|
3609
|
+
type: mt.LOGOUT,
|
|
3572
3610
|
clientId: t,
|
|
3573
3611
|
params: {
|
|
3574
3612
|
userId: e,
|
|
@@ -3582,7 +3620,7 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
|
3582
3620
|
status: ce
|
|
3583
3621
|
};
|
|
3584
3622
|
}
|
|
3585
|
-
},
|
|
3623
|
+
}, Ei = async ({
|
|
3586
3624
|
username: e,
|
|
3587
3625
|
password: t,
|
|
3588
3626
|
clientId: r,
|
|
@@ -3596,9 +3634,9 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
|
3596
3634
|
endpoint: d
|
|
3597
3635
|
}) => {
|
|
3598
3636
|
try {
|
|
3599
|
-
const h = await
|
|
3637
|
+
const h = await gt({
|
|
3600
3638
|
endpoint: d,
|
|
3601
|
-
type:
|
|
3639
|
+
type: mt.LOGIN,
|
|
3602
3640
|
clientId: r,
|
|
3603
3641
|
params: {
|
|
3604
3642
|
type: n,
|
|
@@ -3627,16 +3665,16 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
|
3627
3665
|
status: !1
|
|
3628
3666
|
};
|
|
3629
3667
|
}
|
|
3630
|
-
},
|
|
3668
|
+
}, wi = async ({
|
|
3631
3669
|
nonce: e,
|
|
3632
3670
|
clientId: t,
|
|
3633
3671
|
code_challenge: r,
|
|
3634
3672
|
endpoint: s
|
|
3635
3673
|
}) => {
|
|
3636
3674
|
try {
|
|
3637
|
-
const n = await
|
|
3675
|
+
const n = await gt({
|
|
3638
3676
|
endpoint: s,
|
|
3639
|
-
type:
|
|
3677
|
+
type: mt.CODE,
|
|
3640
3678
|
clientId: t,
|
|
3641
3679
|
params: {
|
|
3642
3680
|
type: Ue.CODE,
|
|
@@ -3657,7 +3695,7 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
|
3657
3695
|
data: ""
|
|
3658
3696
|
};
|
|
3659
3697
|
}
|
|
3660
|
-
},
|
|
3698
|
+
}, Si = async ({
|
|
3661
3699
|
clientId: e,
|
|
3662
3700
|
userId: t,
|
|
3663
3701
|
nonce: r,
|
|
@@ -3667,9 +3705,9 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
|
3667
3705
|
endpoint: i
|
|
3668
3706
|
}) => {
|
|
3669
3707
|
try {
|
|
3670
|
-
const o = await
|
|
3708
|
+
const o = await gt({
|
|
3671
3709
|
endpoint: i,
|
|
3672
|
-
type:
|
|
3710
|
+
type: mt.REFRESH,
|
|
3673
3711
|
clientId: e,
|
|
3674
3712
|
params: {
|
|
3675
3713
|
type: Ue.REFRESH_TOKEN,
|
|
@@ -3694,7 +3732,7 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
|
3694
3732
|
};
|
|
3695
3733
|
}
|
|
3696
3734
|
};
|
|
3697
|
-
class
|
|
3735
|
+
class bi {
|
|
3698
3736
|
constructor(t = null, r = null) {
|
|
3699
3737
|
Tt(this, "refreshTokenPromise", null), Tt(this, "accessToken"), Tt(this, "refreshToken"), this.accessToken = t || "", this.refreshToken = r || "";
|
|
3700
3738
|
}
|
|
@@ -3727,7 +3765,7 @@ class Si {
|
|
|
3727
3765
|
}) {
|
|
3728
3766
|
const i = await Ve(this.refreshToken);
|
|
3729
3767
|
if (i && i.payload[Q.USER_ID_KEY] !== "") {
|
|
3730
|
-
const o = await
|
|
3768
|
+
const o = await Si({
|
|
3731
3769
|
endpoint: t,
|
|
3732
3770
|
clientId: r,
|
|
3733
3771
|
userId: s,
|
|
@@ -3750,8 +3788,8 @@ class Si {
|
|
|
3750
3788
|
}
|
|
3751
3789
|
}
|
|
3752
3790
|
const Ne = () => {
|
|
3753
|
-
throw new Error(
|
|
3754
|
-
},
|
|
3791
|
+
throw new Error(fi);
|
|
3792
|
+
}, Ms = Gt({
|
|
3755
3793
|
isAuthenticated: !1,
|
|
3756
3794
|
isLoading: !1,
|
|
3757
3795
|
login: Ne,
|
|
@@ -3762,59 +3800,59 @@ const Ne = () => {
|
|
|
3762
3800
|
loginWithPasskey: Ne,
|
|
3763
3801
|
logoutReason: "",
|
|
3764
3802
|
authenticationType: ""
|
|
3765
|
-
}),
|
|
3766
|
-
...ze(
|
|
3767
|
-
}),
|
|
3803
|
+
}), vi = () => ({
|
|
3804
|
+
...ze(Ms)
|
|
3805
|
+
}), Ti = (e) => M(
|
|
3768
3806
|
(...t) => {
|
|
3769
3807
|
e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
|
|
3770
3808
|
},
|
|
3771
3809
|
[e]
|
|
3772
|
-
),
|
|
3773
|
-
state:
|
|
3810
|
+
), Ii = ee.createContext({
|
|
3811
|
+
state: Ns,
|
|
3774
3812
|
dispatch: () => {
|
|
3775
3813
|
}
|
|
3776
|
-
}),
|
|
3814
|
+
}), _i = (e, t) => t?.type === $e ? {
|
|
3777
3815
|
...e,
|
|
3778
3816
|
isLoading: t.payload.isLoading
|
|
3779
|
-
} : t?.type ===
|
|
3817
|
+
} : t?.type === tt ? {
|
|
3780
3818
|
...e,
|
|
3781
3819
|
isLoading: !1,
|
|
3782
3820
|
isAuthenticated: !0,
|
|
3783
3821
|
user: t.payload.user,
|
|
3784
3822
|
authenticationType: t.payload.authenticationType,
|
|
3785
3823
|
logoutReason: ""
|
|
3786
|
-
} : t?.type ===
|
|
3824
|
+
} : t?.type === Cs ? {
|
|
3787
3825
|
...e,
|
|
3788
3826
|
isLoading: !1,
|
|
3789
3827
|
isAuthenticated: !1,
|
|
3790
3828
|
user: void 0,
|
|
3791
3829
|
authenticationType: "",
|
|
3792
3830
|
logoutReason: t.payload.logoutReason
|
|
3793
|
-
} : e,
|
|
3794
|
-
const t =
|
|
3795
|
-
return /* @__PURE__ */ c(
|
|
3796
|
-
},
|
|
3831
|
+
} : e, Ai = ({ children: e }) => {
|
|
3832
|
+
const t = vi();
|
|
3833
|
+
return /* @__PURE__ */ c(vs.Provider, { value: t, children: e });
|
|
3834
|
+
}, Cr = ({
|
|
3797
3835
|
children: e,
|
|
3798
3836
|
sessionExpiration: t,
|
|
3799
3837
|
clientId: r,
|
|
3800
3838
|
domain: s = "",
|
|
3801
3839
|
debug: n = !1,
|
|
3802
|
-
endpoint: a =
|
|
3840
|
+
endpoint: a = yi ? "https://auth.gizmette.local.com:3003" : "https://mylogin.gizmette.com/auth"
|
|
3803
3841
|
}) => {
|
|
3804
|
-
const [i, o] =
|
|
3805
|
-
...
|
|
3842
|
+
const [i, o] = Gr(_i, {
|
|
3843
|
+
...Ns,
|
|
3806
3844
|
debug: n
|
|
3807
|
-
}), l =
|
|
3808
|
-
key: `${
|
|
3809
|
-
}), [p, y, , g] =
|
|
3810
|
-
key: `${
|
|
3811
|
-
}), [w, b, , x] =
|
|
3845
|
+
}), l = Ti(n), f = B(!1), [d, h, , u] = je({
|
|
3846
|
+
key: `${Qe}::${r}::@@user@@`
|
|
3847
|
+
}), [p, y, , g] = je({
|
|
3848
|
+
key: `${Qe}::${r}::@@access@@`
|
|
3849
|
+
}), [w, b, , x] = je(
|
|
3812
3850
|
{
|
|
3813
|
-
key: `${
|
|
3851
|
+
key: `${Qe}::${r}::@@refresh@@`
|
|
3814
3852
|
}
|
|
3815
|
-
), [R, J, , P] =
|
|
3816
|
-
key: `${
|
|
3817
|
-
}), se = new
|
|
3853
|
+
), [R, J, , P] = je({
|
|
3854
|
+
key: `${Qe}::${r}::@@nonce@@`
|
|
3855
|
+
}), se = new bi(p, w), N = M(() => {
|
|
3818
3856
|
l("removeLocalStorage: removing local storage"), u(), g(), x(), P();
|
|
3819
3857
|
}, [
|
|
3820
3858
|
g,
|
|
@@ -3828,7 +3866,7 @@ const Ne = () => {
|
|
|
3828
3866
|
"removeStateAndLocalStorage: removing state and local storage with reason: ",
|
|
3829
3867
|
v
|
|
3830
3868
|
), o({
|
|
3831
|
-
type:
|
|
3869
|
+
type: Cs,
|
|
3832
3870
|
payload: {
|
|
3833
3871
|
logoutReason: v || Oe
|
|
3834
3872
|
}
|
|
@@ -3838,10 +3876,10 @@ const Ne = () => {
|
|
|
3838
3876
|
), G = M(
|
|
3839
3877
|
async (v) => {
|
|
3840
3878
|
l("invalidateAndLogout: invalidating and logging out");
|
|
3841
|
-
const { user: _ } = i, T = _?.userId ||
|
|
3879
|
+
const { user: _ } = i, T = _?.userId || mi(d);
|
|
3842
3880
|
T || l(
|
|
3843
3881
|
"invalidateAndLogout: user cannot be identified, logging out without userId"
|
|
3844
|
-
), await
|
|
3882
|
+
), await gi({
|
|
3845
3883
|
userId: T,
|
|
3846
3884
|
clientId: r,
|
|
3847
3885
|
domain: s,
|
|
@@ -3865,7 +3903,7 @@ const Ne = () => {
|
|
|
3865
3903
|
try {
|
|
3866
3904
|
const v = await Ve(d);
|
|
3867
3905
|
v && v.payload[Q.USER_ID_KEY] !== "" ? (l("useEffect: setting the authentication state"), o({
|
|
3868
|
-
type:
|
|
3906
|
+
type: tt,
|
|
3869
3907
|
payload: {
|
|
3870
3908
|
authenticationType: v.payload[Q.AUTH_TYPE_KEY],
|
|
3871
3909
|
user: {
|
|
@@ -3888,14 +3926,14 @@ const Ne = () => {
|
|
|
3888
3926
|
o({ type: $e, payload: { isLoading: !0 } }), N();
|
|
3889
3927
|
const T = Rt();
|
|
3890
3928
|
J(T), l("login: Logging in with password");
|
|
3891
|
-
const { code_verifier: ge, code_challenge: Ee } = await
|
|
3929
|
+
const { code_verifier: ge, code_challenge: Ee } = await ja(), ar = await wi({
|
|
3892
3930
|
endpoint: a,
|
|
3893
3931
|
nonce: T,
|
|
3894
3932
|
clientId: r,
|
|
3895
3933
|
code_challenge: Ee
|
|
3896
3934
|
});
|
|
3897
3935
|
if (ar.status) {
|
|
3898
|
-
const Re = await
|
|
3936
|
+
const Re = await Ei({
|
|
3899
3937
|
endpoint: a,
|
|
3900
3938
|
username: v,
|
|
3901
3939
|
password: _,
|
|
@@ -3909,7 +3947,7 @@ const Ne = () => {
|
|
|
3909
3947
|
ua: navigator.userAgent
|
|
3910
3948
|
});
|
|
3911
3949
|
return Re.status ? (h(Re.idToken), y(Re.accessToken), b(Re.refreshToken), o({
|
|
3912
|
-
type:
|
|
3950
|
+
type: tt,
|
|
3913
3951
|
payload: {
|
|
3914
3952
|
authenticationType: Ue.CODE,
|
|
3915
3953
|
user: {
|
|
@@ -3922,7 +3960,7 @@ const Ne = () => {
|
|
|
3922
3960
|
}
|
|
3923
3961
|
return !1;
|
|
3924
3962
|
}, C = async (v) => {
|
|
3925
|
-
v?.preventDefault(), await G(
|
|
3963
|
+
v?.preventDefault(), await G(di);
|
|
3926
3964
|
}, D = async () => {
|
|
3927
3965
|
const { isAuthenticated: v, user: _ } = i;
|
|
3928
3966
|
try {
|
|
@@ -3951,7 +3989,7 @@ const Ne = () => {
|
|
|
3951
3989
|
} catch {
|
|
3952
3990
|
return l(
|
|
3953
3991
|
"getAccessToken: exception occurred, invalidating and logging out"
|
|
3954
|
-
), await G(
|
|
3992
|
+
), await G(hi), "";
|
|
3955
3993
|
}
|
|
3956
3994
|
}, te = () => i.isAuthenticated && d ? d : "", me = async () => {
|
|
3957
3995
|
const { user: v } = i;
|
|
@@ -3968,7 +4006,7 @@ const Ne = () => {
|
|
|
3968
4006
|
});
|
|
3969
4007
|
if (_.status)
|
|
3970
4008
|
try {
|
|
3971
|
-
const T = await
|
|
4009
|
+
const T = await ti({
|
|
3972
4010
|
optionsJSON: _.data
|
|
3973
4011
|
});
|
|
3974
4012
|
return _ = await Pe({
|
|
@@ -4015,7 +4053,7 @@ const Ne = () => {
|
|
|
4015
4053
|
});
|
|
4016
4054
|
if (T.status)
|
|
4017
4055
|
try {
|
|
4018
|
-
const ge = await
|
|
4056
|
+
const ge = await ni({
|
|
4019
4057
|
optionsJSON: T.data
|
|
4020
4058
|
});
|
|
4021
4059
|
return T = await Pe({
|
|
@@ -4033,7 +4071,7 @@ const Ne = () => {
|
|
|
4033
4071
|
ua: navigator.userAgent
|
|
4034
4072
|
}
|
|
4035
4073
|
}), T.data.status === qe ? (h(T.data.idToken), y(T.data.accessToken), b(T.data.refreshToken), o({
|
|
4036
|
-
type:
|
|
4074
|
+
type: tt,
|
|
4037
4075
|
payload: {
|
|
4038
4076
|
authenticationType: Ue.PASSKEY,
|
|
4039
4077
|
user: {
|
|
@@ -4061,8 +4099,8 @@ const Ne = () => {
|
|
|
4061
4099
|
}
|
|
4062
4100
|
return !1;
|
|
4063
4101
|
};
|
|
4064
|
-
return /* @__PURE__ */ c(
|
|
4065
|
-
|
|
4102
|
+
return /* @__PURE__ */ c(Ii.Provider, { value: { state: i, dispatch: o }, children: /* @__PURE__ */ c(
|
|
4103
|
+
Ms.Provider,
|
|
4066
4104
|
{
|
|
4067
4105
|
value: {
|
|
4068
4106
|
...i,
|
|
@@ -4073,29 +4111,29 @@ const Ne = () => {
|
|
|
4073
4111
|
registeringForPasskey: me,
|
|
4074
4112
|
loginWithPasskey: Ae
|
|
4075
4113
|
},
|
|
4076
|
-
children: /* @__PURE__ */ c(
|
|
4114
|
+
children: /* @__PURE__ */ c(Ai, { children: e })
|
|
4077
4115
|
}
|
|
4078
4116
|
) });
|
|
4079
4117
|
};
|
|
4080
4118
|
/*!
|
|
4081
|
-
@versini/auth-provider v8.1.
|
|
4119
|
+
@versini/auth-provider v8.1.1
|
|
4082
4120
|
© 2025 gizmette.com
|
|
4083
4121
|
*/
|
|
4084
4122
|
try {
|
|
4085
4123
|
window.__VERSINI_AUTH_CLIENT__ || (window.__VERSINI_AUTH_CLIENT__ = {
|
|
4086
|
-
version: "8.1.
|
|
4087
|
-
buildTime: "11/
|
|
4124
|
+
version: "8.1.1",
|
|
4125
|
+
buildTime: "11/29/2025 08:06 PM EST",
|
|
4088
4126
|
homepage: "https://github.com/aversini/auth-client",
|
|
4089
4127
|
license: "MIT"
|
|
4090
4128
|
});
|
|
4091
4129
|
} catch {
|
|
4092
4130
|
}
|
|
4093
|
-
const
|
|
4094
|
-
const e = ze(
|
|
4131
|
+
const xs = () => {
|
|
4132
|
+
const e = ze(vs);
|
|
4095
4133
|
if (!e)
|
|
4096
4134
|
throw new Error("useAuth must be used within an AuthHookProvider");
|
|
4097
4135
|
return e;
|
|
4098
|
-
},
|
|
4136
|
+
}, qc = "I'm having trouble right now. Please try again later.", Wc = "action-search", jc = "action-sort", Qc = "action-toggle-prompt", Yc = "action-reset-prompt", Ls = "sassy-saint-", Jc = "search", Xc = "sort", Zc = "sort-timestamp", el = "sort-token-usage", tl = "sort-memory-direction", rl = "sort-memory-column", sl = "favorites-only", nl = "usage-view-mode", al = "usage-time-range", il = "usage-selected-month", ol = "private-disclosure", cl = "reasoning-disclosure", Ds = "service-worker", ll = "chat-id", ul = "sassysaint-oled-mode", dl = "sassysaint-full-screen", Or = "data-oled-mode", kr = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", hl = 20, fl = 30, pl = "av-prompt", yl = "av-prompt-editable", ml = "size-5 sm:size-4", gl = 30, El = 15, wl = 130, Sl = 160, bl = 16, vl = 24, Tl = 76, Il = 76;
|
|
4099
4137
|
let Ot = null, he = !1;
|
|
4100
4138
|
typeof window < "u" && "serviceWorker" in navigator && navigator.serviceWorker.addEventListener("controllerchange", () => {
|
|
4101
4139
|
he && (he = !1, window.location.reload());
|
|
@@ -4105,17 +4143,17 @@ function Zt() {
|
|
|
4105
4143
|
}
|
|
4106
4144
|
function Kt() {
|
|
4107
4145
|
const e = localStorage.getItem(
|
|
4108
|
-
|
|
4146
|
+
Ls + Ds
|
|
4109
4147
|
);
|
|
4110
4148
|
return e === null ? !1 : e === "true";
|
|
4111
4149
|
}
|
|
4112
|
-
function
|
|
4150
|
+
function Ri(e) {
|
|
4113
4151
|
localStorage.setItem(
|
|
4114
|
-
|
|
4152
|
+
Ls + Ds,
|
|
4115
4153
|
e.toString()
|
|
4116
4154
|
);
|
|
4117
4155
|
}
|
|
4118
|
-
async function
|
|
4156
|
+
async function $s() {
|
|
4119
4157
|
if (!Kt())
|
|
4120
4158
|
return !1;
|
|
4121
4159
|
if (!Zt())
|
|
@@ -4135,7 +4173,7 @@ async function Ds() {
|
|
|
4135
4173
|
return console.error("[SW] Service worker registration failed:", e), !1;
|
|
4136
4174
|
}
|
|
4137
4175
|
}
|
|
4138
|
-
async function
|
|
4176
|
+
async function Ci() {
|
|
4139
4177
|
if (!Zt())
|
|
4140
4178
|
return !1;
|
|
4141
4179
|
try {
|
|
@@ -4145,14 +4183,14 @@ async function Ri() {
|
|
|
4145
4183
|
return console.error("[SW] Service worker un-registration failed:", e), !1;
|
|
4146
4184
|
}
|
|
4147
4185
|
}
|
|
4148
|
-
async function
|
|
4149
|
-
if (
|
|
4186
|
+
async function _l(e) {
|
|
4187
|
+
if (Ri(e), e) {
|
|
4150
4188
|
he = !0;
|
|
4151
4189
|
try {
|
|
4152
4190
|
sessionStorage.setItem("sw-toggle-pending", "enabled");
|
|
4153
4191
|
} catch {
|
|
4154
4192
|
}
|
|
4155
|
-
await
|
|
4193
|
+
await $s(), navigator.serviceWorker.controller && he && (he = !1, window.location.reload());
|
|
4156
4194
|
try {
|
|
4157
4195
|
navigator.serviceWorker.ready.then(() => {
|
|
4158
4196
|
he && Kt() && (he = !1, window.location.reload());
|
|
@@ -4167,14 +4205,14 @@ async function bl(e) {
|
|
|
4167
4205
|
} catch {
|
|
4168
4206
|
}
|
|
4169
4207
|
try {
|
|
4170
|
-
Zt() && await
|
|
4208
|
+
Zt() && await Oi();
|
|
4171
4209
|
} catch (t) {
|
|
4172
4210
|
console.warn("[SW] Failed to invalidate cache:", t);
|
|
4173
4211
|
}
|
|
4174
|
-
await
|
|
4212
|
+
await Ci(), window.location.reload();
|
|
4175
4213
|
}
|
|
4176
4214
|
}
|
|
4177
|
-
async function
|
|
4215
|
+
async function Oi() {
|
|
4178
4216
|
try {
|
|
4179
4217
|
if ("caches" in window) {
|
|
4180
4218
|
const e = await caches.keys();
|
|
@@ -4200,7 +4238,7 @@ async function Ci() {
|
|
|
4200
4238
|
function kt() {
|
|
4201
4239
|
return "unknown";
|
|
4202
4240
|
}
|
|
4203
|
-
async function
|
|
4241
|
+
async function Al(e = {}) {
|
|
4204
4242
|
const { urlLimitPerCache: t } = e;
|
|
4205
4243
|
if (!("caches" in window))
|
|
4206
4244
|
return { version: kt(), caches: [], totalItems: 0 };
|
|
@@ -4227,19 +4265,19 @@ async function vl(e = {}) {
|
|
|
4227
4265
|
return console.warn("[SW] getCacheInfo failed:", r), { version: kt(), caches: [], totalItems: 0 };
|
|
4228
4266
|
}
|
|
4229
4267
|
}
|
|
4230
|
-
const
|
|
4231
|
-
function
|
|
4268
|
+
const Pr = (e) => Number.isFinite(e) ? e : 0;
|
|
4269
|
+
function ki(e) {
|
|
4232
4270
|
return {
|
|
4233
4271
|
days: Math.trunc(e / 864e5),
|
|
4234
4272
|
hours: Math.trunc(e / 36e5 % 24),
|
|
4235
4273
|
minutes: Math.trunc(e / 6e4 % 60),
|
|
4236
4274
|
seconds: Math.trunc(e / 1e3 % 60),
|
|
4237
4275
|
milliseconds: Math.trunc(e % 1e3),
|
|
4238
|
-
microseconds: Math.trunc(
|
|
4239
|
-
nanoseconds: Math.trunc(
|
|
4276
|
+
microseconds: Math.trunc(Pr(e * 1e3) % 1e3),
|
|
4277
|
+
nanoseconds: Math.trunc(Pr(e * 1e6) % 1e3)
|
|
4240
4278
|
};
|
|
4241
4279
|
}
|
|
4242
|
-
function
|
|
4280
|
+
function Pi(e) {
|
|
4243
4281
|
return {
|
|
4244
4282
|
days: e / 86400000n,
|
|
4245
4283
|
hours: e / 3600000n % 24n,
|
|
@@ -4250,20 +4288,20 @@ function ki(e) {
|
|
|
4250
4288
|
nanoseconds: 0n
|
|
4251
4289
|
};
|
|
4252
4290
|
}
|
|
4253
|
-
function
|
|
4291
|
+
function Ni(e) {
|
|
4254
4292
|
switch (typeof e) {
|
|
4255
4293
|
case "number": {
|
|
4256
4294
|
if (Number.isFinite(e))
|
|
4257
|
-
return
|
|
4295
|
+
return ki(e);
|
|
4258
4296
|
break;
|
|
4259
4297
|
}
|
|
4260
4298
|
case "bigint":
|
|
4261
|
-
return
|
|
4299
|
+
return Pi(e);
|
|
4262
4300
|
}
|
|
4263
4301
|
throw new TypeError("Expected a finite number or bigint");
|
|
4264
4302
|
}
|
|
4265
|
-
const
|
|
4266
|
-
function
|
|
4303
|
+
const Mi = (e) => e === 0 || e === 0n, xi = (e, t) => t === 1 || t === 1n ? e : `${e}s`, Li = 1e-7, Di = 24n * 60n * 60n * 1000n;
|
|
4304
|
+
function $i(e, t) {
|
|
4267
4305
|
const r = typeof e == "bigint";
|
|
4268
4306
|
if (!r && !Number.isFinite(e))
|
|
4269
4307
|
throw new TypeError("Expected a finite number or bigint");
|
|
@@ -4272,18 +4310,18 @@ function Di(e, t) {
|
|
|
4272
4310
|
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);
|
|
4273
4311
|
let n = [];
|
|
4274
4312
|
const a = (d, h) => {
|
|
4275
|
-
const u = Math.floor(d * 10 ** h +
|
|
4313
|
+
const u = Math.floor(d * 10 ** h + Li);
|
|
4276
4314
|
return (Math.round(u) / 10 ** h).toFixed(h);
|
|
4277
4315
|
}, i = (d, h, u, p) => {
|
|
4278
|
-
if (!((n.length === 0 || !t.colonNotation) &&
|
|
4316
|
+
if (!((n.length === 0 || !t.colonNotation) && Mi(d) && !(t.colonNotation && u === "m"))) {
|
|
4279
4317
|
if (p ??= String(d), t.colonNotation) {
|
|
4280
4318
|
const y = p.includes(".") ? p.split(".")[0].length : p.length, g = n.length > 0 ? 2 : 1;
|
|
4281
4319
|
p = "0".repeat(Math.max(0, g - y)) + p;
|
|
4282
4320
|
} else
|
|
4283
|
-
p += t.verbose ? " " +
|
|
4321
|
+
p += t.verbose ? " " + xi(h, d) : u;
|
|
4284
4322
|
n.push(p);
|
|
4285
4323
|
}
|
|
4286
|
-
}, o =
|
|
4324
|
+
}, o = Ni(e), l = BigInt(o.days);
|
|
4287
4325
|
if (t.hideYearAndDays ? i(BigInt(l) * 24n + BigInt(o.hours), "hour", "h") : (t.hideYear ? i(l, "day", "d") : (i(l / 365n, "year", "y"), i(l % 365n, "day", "d")), i(Number(o.hours), "hour", "h")), i(Number(o.minutes), "minute", "m"), !t.hideSeconds)
|
|
4288
4326
|
if (t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3 && !t.subSecondsAsDecimals) {
|
|
4289
4327
|
const d = Number(o.seconds), h = Number(o.milliseconds), u = Number(o.microseconds), p = Number(o.nanoseconds);
|
|
@@ -4299,7 +4337,7 @@ function Di(e, t) {
|
|
|
4299
4337
|
);
|
|
4300
4338
|
}
|
|
4301
4339
|
} else {
|
|
4302
|
-
const d = (r ? Number(e %
|
|
4340
|
+
const d = (r ? Number(e % Di) : e) / 1e3 % 60, h = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, u = a(d, h), p = t.keepDecimalsOnWholeSeconds ? u : u.replace(/\.0+$/, "");
|
|
4303
4341
|
i(Number.parseFloat(p), "second", "s", p);
|
|
4304
4342
|
}
|
|
4305
4343
|
if (n.length === 0)
|
|
@@ -4307,7 +4345,7 @@ function Di(e, t) {
|
|
|
4307
4345
|
const f = t.colonNotation ? ":" : " ";
|
|
4308
4346
|
return typeof t.unitCount == "number" && (n = n.slice(0, Math.max(t.unitCount, 1))), s + n.join(f);
|
|
4309
4347
|
}
|
|
4310
|
-
const
|
|
4348
|
+
const Us = process.env.NODE_ENV === "production", dt = !Us, Hs = dt ? "gizmette.local.com" : "gizmette.com", er = (e, t) => {
|
|
4311
4349
|
const r = e < 0 ? t ? "W" : "S" : t ? "E" : "N", s = 0 | Math.abs(e), n = 0 | Math.abs(e) * 60 % 60, a = (0 | Math.abs(e) * 60 % 1 * 6e3) / 100;
|
|
4312
4350
|
return {
|
|
4313
4351
|
dir: r,
|
|
@@ -4315,17 +4353,17 @@ const $s = process.env.NODE_ENV === "production", ht = !$s, Us = ht ? "gizmette.
|
|
|
4315
4353
|
min: n,
|
|
4316
4354
|
sec: a
|
|
4317
4355
|
};
|
|
4318
|
-
},
|
|
4356
|
+
}, Ui = (e) => {
|
|
4319
4357
|
if (!e && e !== 0)
|
|
4320
4358
|
return "N/A";
|
|
4321
4359
|
const t = er(e, !1);
|
|
4322
4360
|
return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
|
|
4323
|
-
},
|
|
4361
|
+
}, Hi = (e) => {
|
|
4324
4362
|
if (!e && e !== 0)
|
|
4325
4363
|
return "N/A";
|
|
4326
4364
|
const t = er(e, !0);
|
|
4327
4365
|
return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
|
|
4328
|
-
},
|
|
4366
|
+
}, Fi = async () => {
|
|
4329
4367
|
const e = {
|
|
4330
4368
|
/**
|
|
4331
4369
|
* A boolean value that indicates the application would like to receive the
|
|
@@ -4368,18 +4406,18 @@ const $s = process.env.NODE_ENV === "production", ht = !$s, Us = ht ? "gizmette.
|
|
|
4368
4406
|
e
|
|
4369
4407
|
);
|
|
4370
4408
|
});
|
|
4371
|
-
},
|
|
4409
|
+
}, Bi = (e) => window.btoa(
|
|
4372
4410
|
encodeURIComponent(e).replace(
|
|
4373
4411
|
/%([0-9A-F]{2})/g,
|
|
4374
4412
|
function(r, s) {
|
|
4375
4413
|
return String.fromCharCode(+`0x${s}`);
|
|
4376
4414
|
}
|
|
4377
4415
|
)
|
|
4378
|
-
),
|
|
4416
|
+
), Ki = (e) => decodeURIComponent(
|
|
4379
4417
|
window.atob(e).split("").map(function(t) {
|
|
4380
4418
|
return `%${`00${t.charCodeAt(0).toString(16)}`.slice(-2)}`;
|
|
4381
4419
|
}).join("")
|
|
4382
|
-
),
|
|
4420
|
+
), Vi = (e, t, r) => t ? Object.keys(t).map((s) => /* @__PURE__ */ c("dl", { className: "my-0", children: /* @__PURE__ */ E("div", { className: "flex items-center justify-between", children: [
|
|
4383
4421
|
/* @__PURE__ */ c(
|
|
4384
4422
|
"dt",
|
|
4385
4423
|
{
|
|
@@ -4401,7 +4439,7 @@ const $s = process.env.NODE_ENV === "production", ht = !$s, Us = ht ? "gizmette.
|
|
|
4401
4439
|
}
|
|
4402
4440
|
)
|
|
4403
4441
|
] }) }, `${e}-${s}`)) : null;
|
|
4404
|
-
function
|
|
4442
|
+
function Gi({
|
|
4405
4443
|
data: e,
|
|
4406
4444
|
formatter: t = (r) => r
|
|
4407
4445
|
}) {
|
|
@@ -4413,22 +4451,22 @@ function Vi({
|
|
|
4413
4451
|
);
|
|
4414
4452
|
return t(s ? s / r.length : 0);
|
|
4415
4453
|
}
|
|
4416
|
-
const
|
|
4454
|
+
const zi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, qi = new Intl.NumberFormat("en", {
|
|
4417
4455
|
style: "decimal",
|
|
4418
4456
|
signDisplay: "never",
|
|
4419
4457
|
minimumFractionDigits: 0,
|
|
4420
4458
|
maximumFractionDigits: 0
|
|
4421
|
-
}),
|
|
4459
|
+
}), Wi = (e) => e > 0 ? $i(e, {
|
|
4422
4460
|
secondsDecimalDigits: 2,
|
|
4423
4461
|
unitCount: 2
|
|
4424
|
-
}) : "N/A",
|
|
4462
|
+
}) : "N/A", Fs = ({
|
|
4425
4463
|
isAuthenticated: e,
|
|
4426
4464
|
extraClass: t,
|
|
4427
4465
|
oledMode: r
|
|
4428
4466
|
}) => m("px-4", "flex-1 overflow-y-auto", e ? "pt-0" : "pt-10", t, {
|
|
4429
4467
|
"bg-slate-900/95 dark:bg-slate-900": r,
|
|
4430
4468
|
"bg-slate-900": !r
|
|
4431
|
-
}),
|
|
4469
|
+
}), Bs = ({
|
|
4432
4470
|
extraClass: e,
|
|
4433
4471
|
fullScreen: t
|
|
4434
4472
|
} = {}) => m(
|
|
@@ -4441,21 +4479,21 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4441
4479
|
"md:max-w-svw": t
|
|
4442
4480
|
},
|
|
4443
4481
|
e
|
|
4444
|
-
),
|
|
4482
|
+
), ji = (e, t) => t === 1 ? e : `${e}s`, Qi = (e, t) => {
|
|
4445
4483
|
let r;
|
|
4446
4484
|
return (...s) => {
|
|
4447
4485
|
window.clearTimeout(r), r = window.setTimeout(() => e(...s), t);
|
|
4448
4486
|
};
|
|
4449
|
-
},
|
|
4450
|
-
const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r =
|
|
4487
|
+
}, Ks = () => !!window?.__VERSINI_DIGGIDY_TAURI__, Vs = () => window.innerWidth < 403, Gs = () => window.innerWidth >= 403 && window.innerWidth <= 1220, Yi = () => {
|
|
4488
|
+
const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r = Vs(), s = navigator.maxTouchPoints > 1;
|
|
4451
4489
|
return e && t && r && s;
|
|
4452
|
-
},
|
|
4453
|
-
const e = ["iPad Simulator", "iPad"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t =
|
|
4490
|
+
}, Ji = () => {
|
|
4491
|
+
const e = ["iPad Simulator", "iPad"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = Gs(), r = navigator.maxTouchPoints > 1;
|
|
4454
4492
|
return e && t && r;
|
|
4455
|
-
},
|
|
4493
|
+
}, Xi = () => window.matchMedia("(display-mode: standalone)").matches || window.navigator.standalone === !0, Zi = (e) => {
|
|
4456
4494
|
const t = e.replace(/([A-Z])/g, " $1");
|
|
4457
4495
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
4458
|
-
},
|
|
4496
|
+
}, eo = ({
|
|
4459
4497
|
autoClose: e = 3e3,
|
|
4460
4498
|
containerId: t,
|
|
4461
4499
|
position: r = "top-center",
|
|
@@ -4479,9 +4517,9 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4479
4517
|
theme: l,
|
|
4480
4518
|
transition: f,
|
|
4481
4519
|
icon: d
|
|
4482
|
-
}),
|
|
4483
|
-
e ? document.documentElement.setAttribute(
|
|
4484
|
-
},
|
|
4520
|
+
}), to = (e, t) => t === "ready" && !!e && e.length > 0, ro = (e) => {
|
|
4521
|
+
e ? document.documentElement.setAttribute(Or, "true") : document.documentElement.removeAttribute(Or);
|
|
4522
|
+
}, Rl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, DOMAIN: Hs, applyOledMode: ro, canEvaluateModels: to, convertCamelCaseToReadable: Zi, convertDDToDMS: er, convertLatitudeToDMS: Ui, convertLongitudeToDMS: Hi, debounce: Qi, durationFormatter: Wi, extractAverage: Gi, getCurrentGeoLocation: Fi, getLayoutPaddingClass: Bs, getMessageContaintWrapperClass: Fs, isDev: dt, isLastMessageFromRole: zi, isPWAMode: Xi, isProbablyMobile: Vs, isProbablyTablet: Gs, isProbablyiPad: Ji, isProbablyiPhone: Yi, isProd: Us, isTauri: Ks, numberFormatter: qi, obfuscate: Bi, pluralize: ji, renderDataAsList: Vi, toastOptions: eo, unObfuscate: Ki }, Symbol.toStringTag, { value: "Module" })), H = {
|
|
4485
4523
|
GET_LOCATION: `query GetLocation($latitude: Float!, $longitude: Float!) {
|
|
4486
4524
|
location(latitude: $latitude, longitude: $longitude) {
|
|
4487
4525
|
country
|
|
@@ -4810,12 +4848,12 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4810
4848
|
schema: H.RESTORE_MEMORY,
|
|
4811
4849
|
method: "restoreMemory"
|
|
4812
4850
|
}
|
|
4813
|
-
},
|
|
4851
|
+
}, so = process.env.PUBLIC_SASSY_API_SERVER_URL, ht = async ({
|
|
4814
4852
|
query: e,
|
|
4815
4853
|
data: t,
|
|
4816
4854
|
headers: r = {},
|
|
4817
4855
|
...s
|
|
4818
|
-
}) => await fetch(`${
|
|
4856
|
+
}) => await fetch(`${so}/graphql`, {
|
|
4819
4857
|
method: "POST",
|
|
4820
4858
|
credentials: "include",
|
|
4821
4859
|
headers: {
|
|
@@ -4833,13 +4871,13 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4833
4871
|
try {
|
|
4834
4872
|
let r;
|
|
4835
4873
|
if (e.noAuth === !0)
|
|
4836
|
-
r = await
|
|
4874
|
+
r = await ht({
|
|
4837
4875
|
query: e.type.schema,
|
|
4838
4876
|
data: t
|
|
4839
4877
|
});
|
|
4840
4878
|
else {
|
|
4841
4879
|
const a = `Bearer ${e.accessToken}`;
|
|
4842
|
-
r = await
|
|
4880
|
+
r = await ht({
|
|
4843
4881
|
headers: {
|
|
4844
4882
|
authorization: a
|
|
4845
4883
|
},
|
|
@@ -4860,7 +4898,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4860
4898
|
} catch (r) {
|
|
4861
4899
|
throw console.error(r), r;
|
|
4862
4900
|
}
|
|
4863
|
-
},
|
|
4901
|
+
}, Cl = async ({
|
|
4864
4902
|
provider: e,
|
|
4865
4903
|
model: t,
|
|
4866
4904
|
accessToken: r,
|
|
@@ -4875,7 +4913,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4875
4913
|
type: V.SET_USER_PREFERENCES,
|
|
4876
4914
|
params: n
|
|
4877
4915
|
});
|
|
4878
|
-
},
|
|
4916
|
+
}, Ol = async ({
|
|
4879
4917
|
plan: e,
|
|
4880
4918
|
accessToken: t,
|
|
4881
4919
|
username: r
|
|
@@ -4896,13 +4934,13 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4896
4934
|
USAGE: "usage",
|
|
4897
4935
|
USER_MEMORIES: "userMemories",
|
|
4898
4936
|
EXPIRED_MEMORIES: "expiredMemories"
|
|
4899
|
-
},
|
|
4937
|
+
}, kl = () => pe({
|
|
4900
4938
|
queryKey: [K.CAPABILITIES],
|
|
4901
4939
|
queryFn: async () => await ye({
|
|
4902
4940
|
type: V.GET_SERVER_CAPABILITIES,
|
|
4903
4941
|
noAuth: !0
|
|
4904
4942
|
})
|
|
4905
|
-
}),
|
|
4943
|
+
}), Pl = () => pe({
|
|
4906
4944
|
queryKey: [K.CHANGELOGS],
|
|
4907
4945
|
queryFn: async () => await ye({
|
|
4908
4946
|
type: V.GET_CHANGELOGS,
|
|
@@ -4911,7 +4949,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4911
4949
|
client: !0
|
|
4912
4950
|
}
|
|
4913
4951
|
})
|
|
4914
|
-
}),
|
|
4952
|
+
}), no = ({
|
|
4915
4953
|
user: e,
|
|
4916
4954
|
getAccessToken: t
|
|
4917
4955
|
}) => pe({
|
|
@@ -4923,7 +4961,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4923
4961
|
type: V.GET_USER_PREFERENCES,
|
|
4924
4962
|
getAccessToken: t
|
|
4925
4963
|
})
|
|
4926
|
-
}),
|
|
4964
|
+
}), Nl = ({
|
|
4927
4965
|
user: e,
|
|
4928
4966
|
getAccessToken: t
|
|
4929
4967
|
}) => pe({
|
|
@@ -4935,7 +4973,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4935
4973
|
type: V.GET_CHATS_STATS,
|
|
4936
4974
|
getAccessToken: t
|
|
4937
4975
|
})
|
|
4938
|
-
}),
|
|
4976
|
+
}), Ml = ({
|
|
4939
4977
|
user: e,
|
|
4940
4978
|
searchString: t,
|
|
4941
4979
|
sortDirection: r,
|
|
@@ -4959,7 +4997,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4959
4997
|
type: V.GET_CHATS,
|
|
4960
4998
|
getAccessToken: n
|
|
4961
4999
|
})
|
|
4962
|
-
}),
|
|
5000
|
+
}), xl = ({
|
|
4963
5001
|
chatId: e,
|
|
4964
5002
|
getAccessToken: t,
|
|
4965
5003
|
enabled: r = !0
|
|
@@ -4971,7 +5009,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4971
5009
|
type: V.GET_CHAT,
|
|
4972
5010
|
getAccessToken: t
|
|
4973
5011
|
})
|
|
4974
|
-
}),
|
|
5012
|
+
}), Ll = ({
|
|
4975
5013
|
getAccessToken: e
|
|
4976
5014
|
}) => {
|
|
4977
5015
|
const t = le();
|
|
@@ -4995,7 +5033,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4995
5033
|
t.invalidateQueries({ queryKey: [K.CHATS, s.userId] });
|
|
4996
5034
|
}
|
|
4997
5035
|
});
|
|
4998
|
-
},
|
|
5036
|
+
}, Dl = ({
|
|
4999
5037
|
getAccessToken: e
|
|
5000
5038
|
}) => {
|
|
5001
5039
|
const t = le();
|
|
@@ -5012,7 +5050,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5012
5050
|
t.invalidateQueries({ queryKey: [K.CHATS, s.userId] });
|
|
5013
5051
|
}
|
|
5014
5052
|
});
|
|
5015
|
-
},
|
|
5053
|
+
}, $l = ({
|
|
5016
5054
|
getAccessToken: e
|
|
5017
5055
|
}) => {
|
|
5018
5056
|
const t = le();
|
|
@@ -5029,7 +5067,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5029
5067
|
t.invalidateQueries({ queryKey: [K.CHATS, s.userId] });
|
|
5030
5068
|
}
|
|
5031
5069
|
});
|
|
5032
|
-
},
|
|
5070
|
+
}, Ul = ({
|
|
5033
5071
|
user: e,
|
|
5034
5072
|
month: t,
|
|
5035
5073
|
year: r = (/* @__PURE__ */ new Date()).getFullYear().toString(),
|
|
@@ -5051,7 +5089,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5051
5089
|
type: V.GET_USAGE,
|
|
5052
5090
|
getAccessToken: a
|
|
5053
5091
|
})
|
|
5054
|
-
}),
|
|
5092
|
+
}), Hl = ({
|
|
5055
5093
|
user: e,
|
|
5056
5094
|
query: t,
|
|
5057
5095
|
getAccessToken: r,
|
|
@@ -5064,7 +5102,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5064
5102
|
type: V.GET_USER_MEMORIES,
|
|
5065
5103
|
getAccessToken: r
|
|
5066
5104
|
})
|
|
5067
|
-
}),
|
|
5105
|
+
}), Fl = ({
|
|
5068
5106
|
getAccessToken: e
|
|
5069
5107
|
}) => {
|
|
5070
5108
|
const t = le();
|
|
@@ -5088,7 +5126,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5088
5126
|
});
|
|
5089
5127
|
}
|
|
5090
5128
|
});
|
|
5091
|
-
},
|
|
5129
|
+
}, Bl = ({
|
|
5092
5130
|
getAccessToken: e
|
|
5093
5131
|
}) => {
|
|
5094
5132
|
const t = le();
|
|
@@ -5112,7 +5150,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5112
5150
|
});
|
|
5113
5151
|
}
|
|
5114
5152
|
});
|
|
5115
|
-
},
|
|
5153
|
+
}, Kl = ({
|
|
5116
5154
|
getAccessToken: e
|
|
5117
5155
|
}) => {
|
|
5118
5156
|
const t = le();
|
|
@@ -5131,7 +5169,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5131
5169
|
});
|
|
5132
5170
|
}
|
|
5133
5171
|
});
|
|
5134
|
-
},
|
|
5172
|
+
}, Vl = ({
|
|
5135
5173
|
getAccessToken: e
|
|
5136
5174
|
}) => {
|
|
5137
5175
|
const t = le();
|
|
@@ -5150,7 +5188,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5150
5188
|
});
|
|
5151
5189
|
}
|
|
5152
5190
|
});
|
|
5153
|
-
},
|
|
5191
|
+
}, Gl = ({
|
|
5154
5192
|
user: e,
|
|
5155
5193
|
query: t,
|
|
5156
5194
|
getAccessToken: r,
|
|
@@ -5163,7 +5201,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5163
5201
|
type: V.GET_EXPIRED_MEMORIES,
|
|
5164
5202
|
getAccessToken: r
|
|
5165
5203
|
})
|
|
5166
|
-
}),
|
|
5204
|
+
}), zl = ({
|
|
5167
5205
|
getAccessToken: e
|
|
5168
5206
|
}) => {
|
|
5169
5207
|
const t = le();
|
|
@@ -5197,13 +5235,13 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5197
5235
|
const n = t?.data ? t.data(e) : e;
|
|
5198
5236
|
let a;
|
|
5199
5237
|
if (r === !0)
|
|
5200
|
-
a = await
|
|
5238
|
+
a = await ht({
|
|
5201
5239
|
query: t.schema,
|
|
5202
5240
|
data: n
|
|
5203
5241
|
});
|
|
5204
5242
|
else if (s) {
|
|
5205
5243
|
const f = await s();
|
|
5206
|
-
a = await
|
|
5244
|
+
a = await ht({
|
|
5207
5245
|
headers: {
|
|
5208
5246
|
authorization: `Bearer ${f}`
|
|
5209
5247
|
},
|
|
@@ -5223,19 +5261,19 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5223
5261
|
} catch (n) {
|
|
5224
5262
|
return Promise.reject(n);
|
|
5225
5263
|
}
|
|
5226
|
-
},
|
|
5264
|
+
}, zs = Gt(
|
|
5227
5265
|
void 0
|
|
5228
|
-
),
|
|
5266
|
+
), Nr = {
|
|
5229
5267
|
capabilities: /* @__PURE__ */ new Set(),
|
|
5230
5268
|
allowedModels: [],
|
|
5231
5269
|
version: null,
|
|
5232
5270
|
status: "idle"
|
|
5233
|
-
},
|
|
5271
|
+
}, ao = ({
|
|
5234
5272
|
user: e,
|
|
5235
5273
|
getAccessToken: t,
|
|
5236
5274
|
children: r
|
|
5237
5275
|
}) => {
|
|
5238
|
-
const [s, n] = X(
|
|
5276
|
+
const [s, n] = X(Nr), a = Fe(
|
|
5239
5277
|
() => e ? `entitlements:${e}` : null,
|
|
5240
5278
|
[e]
|
|
5241
5279
|
), i = M(() => {
|
|
@@ -5260,7 +5298,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5260
5298
|
A(() => {
|
|
5261
5299
|
s.status === "idle" && i();
|
|
5262
5300
|
}, [i, s.status]);
|
|
5263
|
-
const o =
|
|
5301
|
+
const o = no({ user: e, getAccessToken: t });
|
|
5264
5302
|
A(() => {
|
|
5265
5303
|
o.isLoading && s.status === "idle" && n((h) => ({ ...h, status: "loading" }));
|
|
5266
5304
|
}, [o.isLoading, s.status]), A(() => {
|
|
@@ -5312,7 +5350,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5312
5350
|
},
|
|
5313
5351
|
[a]
|
|
5314
5352
|
), f = M(() => {
|
|
5315
|
-
if (n(
|
|
5353
|
+
if (n(Nr), a)
|
|
5316
5354
|
try {
|
|
5317
5355
|
sessionStorage.removeItem(a);
|
|
5318
5356
|
} catch {
|
|
@@ -5320,16 +5358,16 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5320
5358
|
}, [a]), d = Fe(
|
|
5321
5359
|
() => ({
|
|
5322
5360
|
...s,
|
|
5323
|
-
check: (h, u) => s.status !== "ready" ? !1 :
|
|
5361
|
+
check: (h, u) => s.status !== "ready" ? !1 : dn(s.capabilities, h, { any: u?.any }),
|
|
5324
5362
|
loadFromProfile: l,
|
|
5325
5363
|
reset: f
|
|
5326
5364
|
}),
|
|
5327
5365
|
[s, l, f]
|
|
5328
5366
|
);
|
|
5329
|
-
return /* @__PURE__ */ c(
|
|
5367
|
+
return /* @__PURE__ */ c(zs.Provider, { value: d, children: r });
|
|
5330
5368
|
};
|
|
5331
|
-
function
|
|
5332
|
-
const e = ze(
|
|
5369
|
+
function ql() {
|
|
5370
|
+
const e = ze(zs);
|
|
5333
5371
|
if (!e)
|
|
5334
5372
|
throw new Error("useEntitlements must be used within EntitlementsProvider");
|
|
5335
5373
|
return e;
|
|
@@ -5378,7 +5416,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5378
5416
|
e
|
|
5379
5417
|
]
|
|
5380
5418
|
});
|
|
5381
|
-
},
|
|
5419
|
+
}, Wl = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ c(S, {
|
|
5382
5420
|
defaultViewBox: "0 0 448 512",
|
|
5383
5421
|
size: "size-5",
|
|
5384
5422
|
viewBox: t,
|
|
@@ -5388,7 +5426,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5388
5426
|
children: /* @__PURE__ */ c("path", {
|
|
5389
5427
|
d: "M240 64c0-8.8-7.2-16-16-16s-16 7.2-16 16v176H32c-8.8 0-16 7.2-16 16s7.2 16 16 16h176v176c0 8.8 7.2 16 16 16s16-7.2 16-16V272h176c8.8 0 16-7.2 16-16s-7.2-16-16-16H240z"
|
|
5390
5428
|
})
|
|
5391
|
-
}),
|
|
5429
|
+
}), jl = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ c(S, {
|
|
5392
5430
|
defaultViewBox: "0 0 24 24",
|
|
5393
5431
|
size: "size-5",
|
|
5394
5432
|
viewBox: t,
|
|
@@ -5398,7 +5436,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5398
5436
|
children: /* @__PURE__ */ c("path", {
|
|
5399
5437
|
d: "M17.304 3.541h-3.672l6.696 16.918H24Zm-10.608 0L0 20.459h3.744l1.37-3.553h7.005l1.369 3.553h3.744L10.536 3.541Zm-.371 10.223L8.616 7.82l2.291 5.945Z"
|
|
5400
5438
|
})
|
|
5401
|
-
}),
|
|
5439
|
+
}), Ql = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5402
5440
|
defaultViewBox: "0 0 512 512",
|
|
5403
5441
|
size: "size-5",
|
|
5404
5442
|
viewBox: t,
|
|
@@ -5414,7 +5452,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5414
5452
|
d: "M32 0h160c17.7 0 32 14.3 32 32s-14.3 32-32 32h-82.7l233.3 233.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L64 109.3V192c0 17.7-14.3 32-32 32S0 209.7 0 192V32C0 14.3 14.3 0 32 0"
|
|
5415
5453
|
})
|
|
5416
5454
|
]
|
|
5417
|
-
}),
|
|
5455
|
+
}), Yl = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5418
5456
|
defaultViewBox: "0 0 448 512",
|
|
5419
5457
|
size: "size-5",
|
|
5420
5458
|
viewBox: t,
|
|
@@ -5430,7 +5468,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5430
5468
|
d: "M64 0C28.7 0 0 28.7 0 64v384c0 35.3 28.7 64 64 64h368c8.8 0 16-7.2 16-16s-7.2-16-16-16h-16v-66.7c18.6-6.6 32-24.4 32-45.3V48c0-26.5-21.5-48-48-48zm320 416v64H64c-17.7 0-32-14.3-32-32s14.3-32 32-32zM64 384c-11.7 0-22.6 3.1-32 8.6V64c0-17.7 14.3-32 32-32h336c8.8 0 16 7.2 16 16v320c0 8.8-7.2 16-16 16zm201.9-213.1-16.5 38.6-38.6 16.5c-19.4 8.3-19.4 35.8 0 44.1l38.6 16.5 16.5 38.6c8.3 19.4 35.8 19.4 44.1 0l16.5-38.6 38.6-16.5c19.4-8.3 19.4-35.8 0-44.1l-38.6-16.5-16.5-38.6c-8.3-19.4-35.8-19.4-44.1 0m22.1 29.7 11.7 27.3c1.6 3.8 4.6 6.8 8.4 8.4l27.3 11.7-27.3 11.7c-3.8 1.6-6.8 4.6-8.4 8.4L288 295.4l-11.7-27.3c-1.6-3.8-4.6-6.8-8.4-8.4L240.6 248l27.3-11.7c3.8-1.6 6.8-4.6 8.4-8.4zm-135-78.8 7-14 7 14c1.5 3.1 4.1 5.6 7.2 7.2l14 7-14 7c-3.1 1.5-5.6 4.1-7.2 7.2l-7 14-7-14c-1.5-3.1-4.1-5.6-7.2-7.2l-14-7 14-7c3.1-1.5 5.6-4.1 7.2-7.2m28.5-42.7c-8.8-17.7-34.1-17.7-42.9 0l-11.8 23.6-23.6 11.8c-17.7 8.8-17.7 34.1 0 42.9l23.6 11.8 11.8 23.6c8.8 17.7 34.1 17.7 42.9 0l11.8-23.6 23.6-11.8c17.7-8.8 17.7-34.1 0-42.9l-23.6-11.8-11.8-23.5z"
|
|
5431
5469
|
})
|
|
5432
5470
|
]
|
|
5433
|
-
}),
|
|
5471
|
+
}), Jl = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5434
5472
|
defaultViewBox: "0 0 448 512",
|
|
5435
5473
|
size: "size-5",
|
|
5436
5474
|
viewBox: t,
|
|
@@ -5446,7 +5484,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5446
5484
|
d: "M368 96c-26.5 0-48 21.5-48 48v288c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V144c0-26.5-21.5-48-48-48zM48 224c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48z"
|
|
5447
5485
|
})
|
|
5448
5486
|
]
|
|
5449
|
-
}),
|
|
5487
|
+
}), Xl = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ c(S, {
|
|
5450
5488
|
defaultViewBox: "0 0 384 512",
|
|
5451
5489
|
size: "size-5",
|
|
5452
5490
|
viewBox: t,
|
|
@@ -5457,7 +5495,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5457
5495
|
d: "M297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256l105.3-105.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3z",
|
|
5458
5496
|
opacity: s ? "1" : "0.4"
|
|
5459
5497
|
})
|
|
5460
|
-
}),
|
|
5498
|
+
}), Zl = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ c(S, {
|
|
5461
5499
|
defaultViewBox: "0 0 384 512",
|
|
5462
5500
|
size: "size-5",
|
|
5463
5501
|
viewBox: t,
|
|
@@ -5467,7 +5505,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5467
5505
|
children: /* @__PURE__ */ c("path", {
|
|
5468
5506
|
d: "M324.5 411.1c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L214.6 256l132.5-132.5c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L192 233.4 59.6 100.9c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6L169.4 256 36.9 388.5c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L192 278.6z"
|
|
5469
5507
|
})
|
|
5470
|
-
}),
|
|
5508
|
+
}), io = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5471
5509
|
defaultViewBox: "0 0 448 512",
|
|
5472
5510
|
size: "size-5",
|
|
5473
5511
|
viewBox: t,
|
|
@@ -5483,7 +5521,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5483
5521
|
d: "M337 175c9.4 9.4 9.4 24.6 0 33.9L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0z"
|
|
5484
5522
|
})
|
|
5485
5523
|
]
|
|
5486
|
-
}),
|
|
5524
|
+
}), oo = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ c(S, {
|
|
5487
5525
|
defaultViewBox: "0 0 512 512",
|
|
5488
5526
|
size: "size-5",
|
|
5489
5527
|
viewBox: t,
|
|
@@ -5493,7 +5531,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5493
5531
|
children: /* @__PURE__ */ c("path", {
|
|
5494
5532
|
d: "M64 464h224c8.8 0 16-7.2 16-16v-64h48v64c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h64v48H64c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16m160-160h224c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H224c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16m-64-16V64c0-35.3 28.7-64 64-64h224c35.3 0 64 28.7 64 64v224c0 35.3-28.7 64-64 64H224c-35.3 0-64-28.7-64-64"
|
|
5495
5533
|
})
|
|
5496
|
-
}),
|
|
5534
|
+
}), eu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5497
5535
|
defaultViewBox: "0 0 448 512",
|
|
5498
5536
|
size: "size-5",
|
|
5499
5537
|
viewBox: t,
|
|
@@ -5509,7 +5547,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5509
5547
|
d: "M163.8 0c-12.1 0-23.2 6.8-28.6 17.7L128 32H32C14.3 32 0 46.3 0 64s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-96l-7.2-14.3C307.4 6.8 296.3 0 284.2 0z"
|
|
5510
5548
|
})
|
|
5511
5549
|
]
|
|
5512
|
-
}),
|
|
5550
|
+
}), co = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ c(S, {
|
|
5513
5551
|
defaultViewBox: "0 0 1200 500",
|
|
5514
5552
|
size: "w-full",
|
|
5515
5553
|
viewBox: t,
|
|
@@ -5519,7 +5557,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5519
5557
|
children: /* @__PURE__ */ c("path", {
|
|
5520
5558
|
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"
|
|
5521
5559
|
})
|
|
5522
|
-
}),
|
|
5560
|
+
}), tu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5523
5561
|
defaultViewBox: "0 0 512 512",
|
|
5524
5562
|
size: "size-5",
|
|
5525
5563
|
viewBox: t,
|
|
@@ -5535,7 +5573,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5535
5573
|
d: "m392.4 21.7-30.1 30 97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2l-18.7-18.6c-21.9-21.9-57.3-21.9-79.2 0m-52.7 52.6L172.4 241.7c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5l167.3-167.4z"
|
|
5536
5574
|
})
|
|
5537
5575
|
]
|
|
5538
|
-
}),
|
|
5576
|
+
}), ru = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5539
5577
|
defaultViewBox: "0 0 512 512",
|
|
5540
5578
|
size: "size-5",
|
|
5541
5579
|
viewBox: t,
|
|
@@ -5551,7 +5589,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5551
5589
|
d: "m454.6 45.3 12.1 12.1c12.5 12.5 12.5 32.8 0 45.3L440 129.4 382.6 72l26.7-26.7c12.5-12.5 32.8-12.5 45.3 0M189 265.6l171-171 57.4 57.4-171 171c-4.2 4.2-9.6 7.2-15.4 8.6l-65.6 15.1 15.1-65.7c1.3-5.8 4.3-11.2 8.6-15.4zm197.7-243L166.4 243c-8.5 8.5-14.4 19.2-17.1 30.9l-20.9 90.6c-1.2 5.4.4 11 4.3 14.9s9.5 5.5 14.9 4.3l90.6-20.9c11.7-2.7 22.4-8.6 30.9-17.1l220.3-220.4c25-25 25-65.5 0-90.5l-12.1-12.2c-25-25-65.5-25-90.5 0zM80 64C35.8 64 0 99.8 0 144v288c0 44.2 35.8 80 80 80h288c44.2 0 80-35.8 80-80V304c0-8.8-7.2-16-16-16s-16 7.2-16 16v128c0 26.5-21.5 48-48 48H80c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h128c8.8 0 16-7.2 16-16s-7.2-16-16-16z"
|
|
5552
5590
|
})
|
|
5553
5591
|
]
|
|
5554
|
-
}),
|
|
5592
|
+
}), su = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5555
5593
|
defaultViewBox: "0 0 640 512",
|
|
5556
5594
|
size: "size-5",
|
|
5557
5595
|
viewBox: t,
|
|
@@ -5567,7 +5605,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5567
5605
|
d: "m557.2 235.7-29.4 29.4 71 71 29.4-29.4c15.6-15.6 15.6-40.9 0-56.6l-14.4-14.4c-15.6-15.6-40.9-15.6-56.6 0m-52 52L375.9 417c-4.1 4.1-7 9.2-8.4 14.9l-15 60.1c-1.4 5.5.2 11.2 4.2 15.2s9.7 5.6 15.2 4.2l60.1-15c5.6-1.4 10.8-4.3 14.9-8.4l129.2-129.3-71-71z"
|
|
5568
5606
|
})
|
|
5569
5607
|
]
|
|
5570
|
-
}),
|
|
5608
|
+
}), nu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ c(S, {
|
|
5571
5609
|
defaultViewBox: "0 0 24 24",
|
|
5572
5610
|
size: "size-5",
|
|
5573
5611
|
viewBox: t,
|
|
@@ -5577,7 +5615,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5577
5615
|
children: /* @__PURE__ */ c("path", {
|
|
5578
5616
|
d: "M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81"
|
|
5579
5617
|
})
|
|
5580
|
-
}),
|
|
5618
|
+
}), lo = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5581
5619
|
defaultViewBox: "0 0 640 512",
|
|
5582
5620
|
size: "size-5",
|
|
5583
5621
|
viewBox: t,
|
|
@@ -5593,7 +5631,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5593
5631
|
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"
|
|
5594
5632
|
})
|
|
5595
5633
|
]
|
|
5596
|
-
}),
|
|
5634
|
+
}), au = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5597
5635
|
defaultViewBox: "0 0 512 512",
|
|
5598
5636
|
size: "size-5",
|
|
5599
5637
|
viewBox: t,
|
|
@@ -5609,7 +5647,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5609
5647
|
d: "M256 128c13.3 0 24 10.7 24 24v94.1l65 65c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-72-72c-4.5-4.5-7-10.6-7-17V152c0-13.3 10.7-24 24-24z"
|
|
5610
5648
|
})
|
|
5611
5649
|
]
|
|
5612
|
-
}),
|
|
5650
|
+
}), iu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5613
5651
|
defaultViewBox: "0 0 512 512",
|
|
5614
5652
|
size: "size-5",
|
|
5615
5653
|
viewBox: t,
|
|
@@ -5625,7 +5663,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5625
5663
|
d: "M256 128a32 32 0 1 1 0 64 32 32 0 1 1 0-64m-64 120c0-13.3 10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24h-80c-13.3 0-24-10.7-24-24s10.7-24 24-24h24v-64h-24c-13.3 0-24-10.7-24-24"
|
|
5626
5664
|
})
|
|
5627
5665
|
]
|
|
5628
|
-
}),
|
|
5666
|
+
}), ou = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5629
5667
|
defaultViewBox: "0 0 384 512",
|
|
5630
5668
|
size: "size-5",
|
|
5631
5669
|
viewBox: t,
|
|
@@ -5641,7 +5679,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5641
5679
|
d: "M310.3 258.1c16.2-23.3 25.7-51.5 25.7-82.1 0-79.5-64.5-144-144-144S48 96.5 48 176c0 30.6 9.5 58.8 25.7 82.1 4.1 5.9 8.8 12.3 13.6 19 12.7 17.5 27.1 37.2 38 57.1 8.9 16.2 13.7 33.3 16.2 49.9L109 384c-2.2-12-5.9-23.7-11.8-34.5-9.9-18-22.2-34.9-34.5-51.8-5.2-7.1-10.4-14.2-15.4-21.4C27.6 247.9 16 213.3 16 176 16 78.8 94.8 0 192 0s176 78.8 176 176c0 37.3-11.6 71.9-31.4 100.3-5 7.2-10.2 14.3-15.4 21.4-12.3 16.8-24.6 33.7-34.5 51.8-5.9 10.8-9.6 22.5-11.8 34.5h-32.4c2.5-16.6 7.3-33.7 16.2-49.9 10.9-20 25.3-39.7 38-57.1 4.9-6.7 9.5-13 13.6-19zM192 96c-44.2 0-80 35.8-80 80 0 8.8-7.2 16-16 16s-16-7.2-16-16c0-61.9 50.1-112 112-112 8.8 0 16 7.2 16 16s-7.2 16-16 16m-45.3 352c6.6 18.6 24.4 32 45.3 32s38.7-13.4 45.3-32h-90.5zM112 432v-5.3c0-5.9 4.8-10.7 10.7-10.7h138.7c5.9 0 10.7 4.8 10.7 10.7v5.3c0 44.2-35.8 80-80 80s-80-35.8-80-80z"
|
|
5642
5680
|
})
|
|
5643
5681
|
]
|
|
5644
|
-
}),
|
|
5682
|
+
}), cu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5645
5683
|
defaultViewBox: "0 0 448 512",
|
|
5646
5684
|
size: "size-5",
|
|
5647
5685
|
viewBox: t,
|
|
@@ -5657,7 +5695,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5657
5695
|
d: "M224 32c53 0 96 43 96 96v64H128v-64c0-53 43-96 96-96M96 128v64H80c-44.2 0-80 35.8-80 80v160c0 44.2 35.8 80 80 80h288c44.2 0 80-35.8 80-80V272c0-44.2-35.8-80-80-80h-16v-64C352 57.3 294.7 0 224 0S96 57.3 96 128m-16 96h288c26.5 0 48 21.5 48 48v160c0 26.5-21.5 48-48 48H80c-26.5 0-48-21.5-48-48V272c0-26.5 21.5-48 48-48m160 88c0-8.8-7.2-16-16-16s-16 7.2-16 16v80c0 8.8 7.2 16 16 16s16-7.2 16-16z"
|
|
5658
5696
|
})
|
|
5659
5697
|
]
|
|
5660
|
-
}),
|
|
5698
|
+
}), lu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5661
5699
|
defaultViewBox: "0 0 576 512",
|
|
5662
5700
|
size: "size-5",
|
|
5663
5701
|
viewBox: t,
|
|
@@ -5673,7 +5711,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5673
5711
|
d: "M419.2 227.2 316.7 124.7 46.1 395.4c-18.7 18.7-18.7 49.1 0 67.9l34.6 34.6c18.7 18.7 49.1 18.7 67.9 0z"
|
|
5674
5712
|
})
|
|
5675
5713
|
]
|
|
5676
|
-
}),
|
|
5714
|
+
}), uu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5677
5715
|
defaultViewBox: "0 0 448 512",
|
|
5678
5716
|
size: "size-5",
|
|
5679
5717
|
viewBox: t,
|
|
@@ -5689,7 +5727,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5689
5727
|
d: "M438.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L370.7 256 233.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"
|
|
5690
5728
|
})
|
|
5691
5729
|
]
|
|
5692
|
-
}),
|
|
5730
|
+
}), du = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ c(S, {
|
|
5693
5731
|
defaultViewBox: "0 0 24 24",
|
|
5694
5732
|
size: "size-5",
|
|
5695
5733
|
viewBox: t,
|
|
@@ -5699,7 +5737,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5699
5737
|
children: /* @__PURE__ */ c("path", {
|
|
5700
5738
|
d: "M22.282 9.821a5.99 5.99 0 0 0-.516-4.91 6.05 6.05 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.99 5.99 0 0 0-3.998 2.9 6.05 6.05 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.05 6.05 0 0 0 6.515 2.9A5.99 5.99 0 0 0 13.26 24a6.06 6.06 0 0 0 5.772-4.206 6 6 0 0 0 3.997-2.9 6.06 6.06 0 0 0-.747-7.073zM13.26 22.43a4.48 4.48 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.8.8 0 0 0 .392-.681v-6.737l2.02 1.168a.07.07 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494M3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.77.77 0 0 0 .78 0l5.843-3.369v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646M2.34 7.896a4.5 4.5 0 0 1 2.366-1.973V11.6a.77.77 0 0 0 .388.677l5.815 3.354-2.02 1.168a.08.08 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872zm16.597 3.855-5.833-3.387L15.119 7.2a.08.08 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.79.79 0 0 0-.407-.667zm2.01-3.023-.141-.085-4.774-2.782a.78.78 0 0 0-.785 0L9.409 9.23V6.897a.07.07 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66zm-12.64 4.135-2.02-1.164a.08.08 0 0 1-.038-.057V6.075a4.5 4.5 0 0 1 7.375-3.453l-.142.08-4.778 2.758a.8.8 0 0 0-.393.681zm1.097-2.365 2.602-1.5 2.607 1.5v2.999l-2.597 1.5-2.607-1.5Z"
|
|
5701
5739
|
})
|
|
5702
|
-
}),
|
|
5740
|
+
}), uo = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => {
|
|
5703
5741
|
const a = s ? "1" : "0.4";
|
|
5704
5742
|
return /* @__PURE__ */ E(S, {
|
|
5705
5743
|
defaultViewBox: "0 0 190 190",
|
|
@@ -5722,7 +5760,23 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5722
5760
|
})
|
|
5723
5761
|
]
|
|
5724
5762
|
});
|
|
5725
|
-
},
|
|
5763
|
+
}, hu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5764
|
+
defaultViewBox: "0 0 448 512",
|
|
5765
|
+
size: "size-5",
|
|
5766
|
+
viewBox: t,
|
|
5767
|
+
className: e,
|
|
5768
|
+
title: r || "Previous",
|
|
5769
|
+
...n,
|
|
5770
|
+
children: [
|
|
5771
|
+
/* @__PURE__ */ c("path", {
|
|
5772
|
+
d: "m77.3 256 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H109.3z",
|
|
5773
|
+
opacity: s ? "1" : "0.4"
|
|
5774
|
+
}),
|
|
5775
|
+
/* @__PURE__ */ c("path", {
|
|
5776
|
+
d: "M9.4 278.6c-12.5-12.5-12.5-32.8 0-45.3l160-160c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L77.3 256l137.3 137.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-160-160z"
|
|
5777
|
+
})
|
|
5778
|
+
]
|
|
5779
|
+
}), fu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5726
5780
|
defaultViewBox: "0 0 576 512",
|
|
5727
5781
|
size: "size-5",
|
|
5728
5782
|
viewBox: t,
|
|
@@ -5738,7 +5792,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5738
5792
|
d: "M176 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128m-32 32c-44.2 0-80 35.8-80 80 0 8.8 7.2 16 16 16h192c8.8 0 16-7.2 16-16 0-44.2-35.8-80-80-80z"
|
|
5739
5793
|
})
|
|
5740
5794
|
]
|
|
5741
|
-
}),
|
|
5795
|
+
}), pu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5742
5796
|
defaultViewBox: "0 0 576 512",
|
|
5743
5797
|
size: "size-5",
|
|
5744
5798
|
viewBox: t,
|
|
@@ -5754,7 +5808,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5754
5808
|
d: "M566.6 265.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l73.4 73.3 169.4-169.3c12.5-12.5 32.8-12.5 45.3 0z"
|
|
5755
5809
|
})
|
|
5756
5810
|
]
|
|
5757
|
-
}),
|
|
5811
|
+
}), yu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5758
5812
|
defaultViewBox: "0 0 512 512",
|
|
5759
5813
|
size: "size-5",
|
|
5760
5814
|
viewBox: t,
|
|
@@ -5770,7 +5824,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5770
5824
|
d: "M64 128c-35.3 0-64 28.7-64 64v256c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64zm32 64h192c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32-14.3-32-32s14.3-32 32-32"
|
|
5771
5825
|
})
|
|
5772
5826
|
]
|
|
5773
|
-
}),
|
|
5827
|
+
}), mu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5774
5828
|
defaultViewBox: "0 0 512 512",
|
|
5775
5829
|
size: "size-5",
|
|
5776
5830
|
viewBox: t,
|
|
@@ -5786,7 +5840,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5786
5840
|
d: "m406.1 16-39.7 39.7 89.3 89.3 39.8-38.9c19.1-18.7 19.2-49.4.4-68.2l-22-21.9C455.1-2.8 424.7-2.7 406 16zm-62.4 62.4L200.5 221.8c-7 7-12.3 15.6-15.4 25l-23.8 71.3c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l71.5-23.9c9.2-3.1 17.6-8.2 24.5-15l145.1-142.1z"
|
|
5787
5841
|
})
|
|
5788
5842
|
]
|
|
5789
|
-
}),
|
|
5843
|
+
}), gu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5790
5844
|
defaultViewBox: "0 0 512 512",
|
|
5791
5845
|
size: "size-5",
|
|
5792
5846
|
viewBox: t,
|
|
@@ -5802,7 +5856,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5802
5856
|
d: "m330.7 376 126.7 126.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L376 330.7c-12.7 17.3-28 32.6-45.3 45.3"
|
|
5803
5857
|
})
|
|
5804
5858
|
]
|
|
5805
|
-
}),
|
|
5859
|
+
}), Eu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5806
5860
|
defaultViewBox: "0 0 512 512",
|
|
5807
5861
|
size: "size-5",
|
|
5808
5862
|
viewBox: t,
|
|
@@ -5818,7 +5872,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5818
5872
|
d: "M256 160a96 96 0 1 0 0 192 96 96 0 1 0 0-192"
|
|
5819
5873
|
})
|
|
5820
5874
|
]
|
|
5821
|
-
}),
|
|
5875
|
+
}), wu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5822
5876
|
defaultViewBox: "0 0 512 512",
|
|
5823
5877
|
size: "size-5",
|
|
5824
5878
|
viewBox: t,
|
|
@@ -5834,7 +5888,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5834
5888
|
d: "M511.6 36.9c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256C5.5 266.3-.7 277.8.1 290s8.4 22.9 19.6 27.6L160 376v93c0 23.8 19.3 43 43 43 13.1 0 25.4-5.9 33.6-16.1l52.8-66h.1l114.2 47.6c9.1 3.8 19.4 3.2 28-1.6s14.5-13.3 16-23l64-416zm-253 380.2-47 58.8c-2.1 2.6-5.3 4.1-8.6 4.1-6.1 0-11-4.9-11-11v-79.7zm43.1-16.7-96.6-40.3 269-289.6L416 448l-114.2-47.6zM450.5 48.8 173.6 347 32 288z"
|
|
5835
5889
|
})
|
|
5836
5890
|
]
|
|
5837
|
-
}),
|
|
5891
|
+
}), Su = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ c(S, {
|
|
5838
5892
|
defaultViewBox: "0 0 448 512",
|
|
5839
5893
|
size: "size-5",
|
|
5840
5894
|
viewBox: t,
|
|
@@ -5844,7 +5898,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5844
5898
|
children: /* @__PURE__ */ c("path", {
|
|
5845
5899
|
d: "M432 256a48 48 0 1 1-96 0 48 48 0 1 1 96 0m-160 0a48 48 0 1 1-96 0 48 48 0 1 1 96 0M64 304a48 48 0 1 1 0-96 48 48 0 1 1 0 96"
|
|
5846
5900
|
})
|
|
5847
|
-
}),
|
|
5901
|
+
}), ho = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5848
5902
|
defaultViewBox: "0 0 576 512",
|
|
5849
5903
|
size: "size-5",
|
|
5850
5904
|
viewBox: t,
|
|
@@ -5860,7 +5914,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5860
5914
|
d: "M224 256c35.3 0 64-28.7 64-64 0-7.1-1.2-13.9-3.3-20.3-1.8-5.5 1.6-11.9 7.4-11.7 40.8 1.7 77.5 29.6 88.6 71.1 13.7 51.2-16.7 103.9-67.9 117.6S208.9 332 195.2 280.8c-1.9-6.9-2.9-13.9-3.2-20.7-.3-5.8 6.1-9.2 11.7-7.4 6.4 2.1 13.2 3.3 20.3 3.3"
|
|
5861
5915
|
})
|
|
5862
5916
|
]
|
|
5863
|
-
}),
|
|
5917
|
+
}), bu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5864
5918
|
defaultViewBox: "0 0 512 512",
|
|
5865
5919
|
size: "size-5",
|
|
5866
5920
|
viewBox: t,
|
|
@@ -5876,7 +5930,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5876
5930
|
d: "M128 416a32 32 0 1 1 64 0 32 32 0 1 1-64 0m112 0a80 80 0 1 0-160 0 80 80 0 1 0 160 0m80-160a32 32 0 1 1 64 0 32 32 0 1 1-64 0m112 0a80 80 0 1 0-160 0 80 80 0 1 0 160 0M192 128a32 32 0 1 1 0-64 32 32 0 1 1 0 64m0-112a80 80 0 1 0 0 160 80 80 0 1 0 0-160"
|
|
5877
5931
|
})
|
|
5878
5932
|
]
|
|
5879
|
-
}),
|
|
5933
|
+
}), vu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5880
5934
|
defaultViewBox: "0 0 512 512",
|
|
5881
5935
|
size: "size-5",
|
|
5882
5936
|
viewBox: t,
|
|
@@ -5892,7 +5946,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5892
5946
|
d: "M270.3 112.9c-2.7-5.5-8.3-8.9-14.3-8.9s-11.7 3.5-14.3 8.9l-36.2 73.4-81.1 11.8c-6 .9-11 5.1-12.9 10.9s-.3 12.2 4 16.4l58.6 57.2-13.8 80.7c-1 6 1.4 12.1 6.4 15.6s11.5 4.1 16.9 1.2l72.4-38 72.5 38.1c5.4 2.8 11.9 2.4 16.9-1.2s7.4-9.6 6.4-15.6L338 282.7l58.6-57.2c4.4-4.3 5.9-10.6 4-16.4s-6.9-10-12.9-10.9l-81-11.8-36.2-73.4z"
|
|
5893
5947
|
})
|
|
5894
5948
|
]
|
|
5895
|
-
}),
|
|
5949
|
+
}), Tu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5896
5950
|
defaultViewBox: "0 0 512 512",
|
|
5897
5951
|
size: "size-5",
|
|
5898
5952
|
viewBox: t,
|
|
@@ -5908,7 +5962,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5908
5962
|
d: "M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448m0 480a256 256 0 1 0 0-512 256 256 0 1 0 0 512m14.3-399.1c-2.7-5.5-8.3-8.9-14.3-8.9s-11.7 3.5-14.3 8.9l-36.2 73.4-81 11.8c-6 .9-11 5.1-12.9 10.9s-.3 12.2 4 16.4l58.6 57.2-13.8 80.7c-1 6 1.4 12.1 6.4 15.6s11.5 4.1 16.8 1.2l72.4-38 72.5 38.1c5.4 2.8 11.9 2.4 16.9-1.2s7.4-9.6 6.4-15.6L338 282.7l58.6-57.2c4.4-4.3 5.9-10.6 4-16.4s-6.9-10-12.9-10.9l-81.1-11.8-36.2-73.4zm-40 95.1 25.7-51.8 25.6 51.9c2.3 4.7 6.8 8 12 8.8l57.3 8.3-41.5 40.4c-3.8 3.7-5.5 9-4.6 14.2l9.8 57.1-51.2-26.9c-4.7-2.5-10.2-2.5-14.9 0l-51.2 26.9 9.8-57.1c.9-5.2-.8-10.5-4.6-14.2L161 225.1l57.3-8.3c5.2-.8 9.7-4 12-8.8"
|
|
5909
5963
|
})
|
|
5910
5964
|
]
|
|
5911
|
-
}),
|
|
5965
|
+
}), Iu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5912
5966
|
defaultViewBox: "0 0 448 512",
|
|
5913
5967
|
size: "size-5",
|
|
5914
5968
|
viewBox: t,
|
|
@@ -5924,7 +5978,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5924
5978
|
d: "M224 32c-53 0-96 43-96 96v64h240c44.2 0 80 35.8 80 80v160c0 44.2-35.8 80-80 80H80c-44.2 0-80-35.8-80-80V272c0-44.2 35.8-80 80-80h16v-64C96 57.3 153.3 0 224 0c58 0 107 38.6 122.7 91.4 2.5 8.5-2.3 17.4-10.8 19.9s-17.4-2.3-19.9-10.8C304.2 60.9 267.5 32 224 32M80 224c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm184 144h-80c-8.8 0-16-7.2-16-16s7.2-16 16-16h80c8.8 0 16 7.2 16 16s-7.2 16-16 16"
|
|
5925
5979
|
})
|
|
5926
5980
|
]
|
|
5927
|
-
}),
|
|
5981
|
+
}), _u = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ c(S, {
|
|
5928
5982
|
defaultViewBox: "0 0 512 512",
|
|
5929
5983
|
size: "size-5",
|
|
5930
5984
|
viewBox: t,
|
|
@@ -5949,11 +6003,11 @@ try {
|
|
|
5949
6003
|
});
|
|
5950
6004
|
} catch {
|
|
5951
6005
|
}
|
|
5952
|
-
const
|
|
6006
|
+
const Mr = [
|
|
5953
6007
|
"mousedown",
|
|
5954
6008
|
"touchstart"
|
|
5955
6009
|
];
|
|
5956
|
-
function
|
|
6010
|
+
function Au(e, t, r) {
|
|
5957
6011
|
const s = B(null);
|
|
5958
6012
|
return A(() => {
|
|
5959
6013
|
const n = (a) => {
|
|
@@ -5963,8 +6017,8 @@ function bu(e, t, r) {
|
|
|
5963
6017
|
r.every((f) => !!f && !a.composedPath().includes(f)) && !o && e();
|
|
5964
6018
|
} else s.current && !s.current.contains(i) && e();
|
|
5965
6019
|
};
|
|
5966
|
-
return
|
|
5967
|
-
|
|
6020
|
+
return Mr.forEach((a) => document.addEventListener(a, n)), () => {
|
|
6021
|
+
Mr.forEach((a) => document.removeEventListener(a, n));
|
|
5968
6022
|
};
|
|
5969
6023
|
}, [
|
|
5970
6024
|
e,
|
|
@@ -5972,9 +6026,9 @@ function bu(e, t, r) {
|
|
|
5972
6026
|
t
|
|
5973
6027
|
]), s;
|
|
5974
6028
|
}
|
|
5975
|
-
const Pt = 50,
|
|
5976
|
-
let oe = null,
|
|
5977
|
-
const
|
|
6029
|
+
const Pt = 50, xr = 120;
|
|
6030
|
+
let oe = null, Je = 0;
|
|
6031
|
+
const fo = () => {
|
|
5978
6032
|
if (typeof window > "u" || oe && document.body.contains(oe))
|
|
5979
6033
|
return;
|
|
5980
6034
|
const e = document.querySelector('label[data-haptic-singleton="true"]');
|
|
@@ -5987,21 +6041,21 @@ const ho = () => {
|
|
|
5987
6041
|
t.type = "checkbox", t.setAttribute("switch", ""), t.style.display = "none", t.setAttribute("aria-hidden", "true"), t.dataset.hapticSingleton = "true";
|
|
5988
6042
|
const r = document.createElement("label");
|
|
5989
6043
|
r.style.display = "none", r.setAttribute("aria-hidden", "true"), r.dataset.hapticSingleton = "true", r.appendChild(t), document.body.appendChild(r), oe = r;
|
|
5990
|
-
},
|
|
6044
|
+
}, po = () => {
|
|
5991
6045
|
oe && document.body && document.body.contains(oe) && document.body.removeChild(oe), oe = null;
|
|
5992
|
-
},
|
|
6046
|
+
}, Ru = () => {
|
|
5993
6047
|
const e = B(/* @__PURE__ */ new Set());
|
|
5994
6048
|
A(() => {
|
|
5995
|
-
|
|
6049
|
+
Je++;
|
|
5996
6050
|
try {
|
|
5997
|
-
|
|
6051
|
+
fo();
|
|
5998
6052
|
} catch (s) {
|
|
5999
|
-
throw
|
|
6053
|
+
throw Je--, s;
|
|
6000
6054
|
}
|
|
6001
6055
|
return () => {
|
|
6002
6056
|
for (const s of e.current)
|
|
6003
6057
|
clearTimeout(s);
|
|
6004
|
-
e.current.clear(),
|
|
6058
|
+
e.current.clear(), Je--, Je === 0 && po();
|
|
6005
6059
|
};
|
|
6006
6060
|
}, []);
|
|
6007
6061
|
const t = M(() => {
|
|
@@ -6020,14 +6074,14 @@ const ho = () => {
|
|
|
6020
6074
|
if (navigator?.vibrate && s > 1) {
|
|
6021
6075
|
const n = [];
|
|
6022
6076
|
for (let a = 0; a < s; a++)
|
|
6023
|
-
n.push(Pt), a < s - 1 && n.push(
|
|
6077
|
+
n.push(Pt), a < s - 1 && n.push(xr - Pt);
|
|
6024
6078
|
navigator.vibrate(n);
|
|
6025
6079
|
return;
|
|
6026
6080
|
}
|
|
6027
6081
|
for (let n = 0; n < s; n++) {
|
|
6028
6082
|
const a = setTimeout(() => {
|
|
6029
6083
|
t(), e.current.delete(a);
|
|
6030
|
-
}, n *
|
|
6084
|
+
}, n * xr);
|
|
6031
6085
|
e.current.add(a);
|
|
6032
6086
|
}
|
|
6033
6087
|
}
|
|
@@ -6036,7 +6090,7 @@ const ho = () => {
|
|
|
6036
6090
|
])
|
|
6037
6091
|
};
|
|
6038
6092
|
};
|
|
6039
|
-
function
|
|
6093
|
+
function yo(e) {
|
|
6040
6094
|
const t = e.toLowerCase().split("+").map((a) => a.trim()), r = {
|
|
6041
6095
|
alt: t.includes("alt"),
|
|
6042
6096
|
ctrl: t.includes("ctrl"),
|
|
@@ -6055,7 +6109,7 @@ function po(e) {
|
|
|
6055
6109
|
key: n
|
|
6056
6110
|
};
|
|
6057
6111
|
}
|
|
6058
|
-
function
|
|
6112
|
+
function mo(e, t) {
|
|
6059
6113
|
const { alt: r, ctrl: s, meta: n, mod: a, shift: i, key: o } = e, { altKey: l, ctrlKey: f, metaKey: d, shiftKey: h, key: u } = t;
|
|
6060
6114
|
if (r !== l)
|
|
6061
6115
|
return !1;
|
|
@@ -6066,23 +6120,23 @@ function yo(e, t) {
|
|
|
6066
6120
|
return !1;
|
|
6067
6121
|
return i !== h ? !1 : !!(o && (u.toLowerCase() === o.toLowerCase() || t.code.replace("Key", "").toLowerCase() === o.toLowerCase()));
|
|
6068
6122
|
}
|
|
6069
|
-
function
|
|
6070
|
-
return (t) => yo(
|
|
6123
|
+
function qs(e) {
|
|
6124
|
+
return (t) => mo(yo(e), t);
|
|
6071
6125
|
}
|
|
6072
|
-
function
|
|
6126
|
+
function Cu(e) {
|
|
6073
6127
|
return (t) => {
|
|
6074
6128
|
const r = "nativeEvent" in t ? t.nativeEvent : t;
|
|
6075
6129
|
e.forEach(([s, n, a = {
|
|
6076
6130
|
preventDefault: !0
|
|
6077
6131
|
}]) => {
|
|
6078
|
-
|
|
6132
|
+
qs(s)(r) && (a.preventDefault && t.preventDefault(), n(r));
|
|
6079
6133
|
});
|
|
6080
6134
|
};
|
|
6081
6135
|
}
|
|
6082
|
-
function
|
|
6136
|
+
function go(e, t, r = !1) {
|
|
6083
6137
|
return e.target instanceof HTMLElement ? (r || !e.target.isContentEditable) && !t.includes(e.target.tagName) : !0;
|
|
6084
6138
|
}
|
|
6085
|
-
function
|
|
6139
|
+
function Ou(e, t = [
|
|
6086
6140
|
"INPUT",
|
|
6087
6141
|
"TEXTAREA",
|
|
6088
6142
|
"SELECT"
|
|
@@ -6092,7 +6146,7 @@ function Iu(e, t = [
|
|
|
6092
6146
|
e.forEach(([a, i, o = {
|
|
6093
6147
|
preventDefault: !0
|
|
6094
6148
|
}]) => {
|
|
6095
|
-
|
|
6149
|
+
qs(a)(n) && go(n, t, r) && (o.preventDefault && n.preventDefault(), i(n));
|
|
6096
6150
|
});
|
|
6097
6151
|
};
|
|
6098
6152
|
return document.documentElement.addEventListener("keydown", s), () => document.documentElement.removeEventListener("keydown", s);
|
|
@@ -6102,7 +6156,7 @@ function Iu(e, t = [
|
|
|
6102
6156
|
r
|
|
6103
6157
|
]);
|
|
6104
6158
|
}
|
|
6105
|
-
function
|
|
6159
|
+
function ku(e, t) {
|
|
6106
6160
|
const [r, s] = X(!1), n = B(null), a = B(null), i = M(() => {
|
|
6107
6161
|
s((l) => (!l && (!n.current || n.current === -1) && (n.current = window.setInterval(a.current, t)), !0));
|
|
6108
6162
|
}, [
|
|
@@ -6121,7 +6175,7 @@ function _u(e, t) {
|
|
|
6121
6175
|
active: r
|
|
6122
6176
|
};
|
|
6123
6177
|
}
|
|
6124
|
-
function
|
|
6178
|
+
function Pu() {
|
|
6125
6179
|
const e = B(null), [t, r] = X(!1);
|
|
6126
6180
|
return {
|
|
6127
6181
|
ref: M((n) => {
|
|
@@ -6130,29 +6184,29 @@ function Au() {
|
|
|
6130
6184
|
inViewport: t
|
|
6131
6185
|
};
|
|
6132
6186
|
}
|
|
6133
|
-
function
|
|
6187
|
+
function Eo() {
|
|
6134
6188
|
const e = B(!1);
|
|
6135
6189
|
return A(() => (e.current = !0, () => {
|
|
6136
6190
|
e.current = !1;
|
|
6137
6191
|
}), []), M(() => e.current, []);
|
|
6138
6192
|
}
|
|
6139
|
-
function
|
|
6193
|
+
function Ws(e, t) {
|
|
6140
6194
|
window.dispatchEvent(new StorageEvent("storage", {
|
|
6141
6195
|
key: e,
|
|
6142
6196
|
newValue: t
|
|
6143
6197
|
}));
|
|
6144
6198
|
}
|
|
6145
|
-
const
|
|
6199
|
+
const Lr = (e, t) => {
|
|
6146
6200
|
const r = JSON.stringify(typeof t == "function" ? t() : t);
|
|
6147
|
-
window.localStorage.setItem(e, r),
|
|
6148
|
-
},
|
|
6149
|
-
window.localStorage.removeItem(e),
|
|
6150
|
-
},
|
|
6151
|
-
function
|
|
6152
|
-
const s =
|
|
6201
|
+
window.localStorage.setItem(e, r), Ws(e, r);
|
|
6202
|
+
}, wo = (e) => {
|
|
6203
|
+
window.localStorage.removeItem(e), Ws(e, null);
|
|
6204
|
+
}, Dr = (e) => window.localStorage.getItem(e), So = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
6205
|
+
function Nu({ key: e, initialValue: t }) {
|
|
6206
|
+
const s = zr(So, () => Dr(e)), n = M((o) => {
|
|
6153
6207
|
try {
|
|
6154
6208
|
const l = typeof o == "function" ? o(JSON.parse(s)) : o;
|
|
6155
|
-
l == null ?
|
|
6209
|
+
l == null ? wo(e) : Lr(e, l);
|
|
6156
6210
|
} catch (l) {
|
|
6157
6211
|
console.warn(l);
|
|
6158
6212
|
}
|
|
@@ -6171,7 +6225,7 @@ function Ru({ key: e, initialValue: t }) {
|
|
|
6171
6225
|
]);
|
|
6172
6226
|
return A(() => {
|
|
6173
6227
|
try {
|
|
6174
|
-
|
|
6228
|
+
Dr(e) === null && typeof t < "u" && Lr(e, t);
|
|
6175
6229
|
} catch (o) {
|
|
6176
6230
|
console.warn(o);
|
|
6177
6231
|
}
|
|
@@ -6185,7 +6239,7 @@ function Ru({ key: e, initialValue: t }) {
|
|
|
6185
6239
|
i
|
|
6186
6240
|
];
|
|
6187
6241
|
}
|
|
6188
|
-
function
|
|
6242
|
+
function js(e) {
|
|
6189
6243
|
return Fe(() => e.every((t) => t == null) ? () => {
|
|
6190
6244
|
} : (t) => {
|
|
6191
6245
|
e.forEach((r) => {
|
|
@@ -6195,7 +6249,7 @@ function Ws(e) {
|
|
|
6195
6249
|
...e
|
|
6196
6250
|
]);
|
|
6197
6251
|
}
|
|
6198
|
-
const
|
|
6252
|
+
const bo = {
|
|
6199
6253
|
x: 0,
|
|
6200
6254
|
y: 0,
|
|
6201
6255
|
width: 0,
|
|
@@ -6205,8 +6259,8 @@ const So = {
|
|
|
6205
6259
|
bottom: 0,
|
|
6206
6260
|
right: 0
|
|
6207
6261
|
};
|
|
6208
|
-
function
|
|
6209
|
-
const t =
|
|
6262
|
+
function rt(e) {
|
|
6263
|
+
const t = Eo(), r = B(0), s = B(null), [n, a] = X(bo), i = Fe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((o) => {
|
|
6210
6264
|
const l = o[0];
|
|
6211
6265
|
l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
6212
6266
|
s.current && t() && a(l.contentRect);
|
|
@@ -6224,7 +6278,7 @@ function st(e) {
|
|
|
6224
6278
|
n
|
|
6225
6279
|
];
|
|
6226
6280
|
}
|
|
6227
|
-
function
|
|
6281
|
+
function Mu({ value: e, defaultValue: t, finalValue: r, onChange: s = () => {
|
|
6228
6282
|
}, initialControlledDelay: n = 0 }) {
|
|
6229
6283
|
const [a, i] = X(!1), [o, l] = X(t !== void 0 ? t : r), f = (d) => {
|
|
6230
6284
|
l(d), s?.(d);
|
|
@@ -6249,8 +6303,8 @@ function Cu({ value: e, defaultValue: t, finalValue: r, onChange: s = () => {
|
|
|
6249
6303
|
!1
|
|
6250
6304
|
];
|
|
6251
6305
|
}
|
|
6252
|
-
function
|
|
6253
|
-
const t =
|
|
6306
|
+
function Qs(e) {
|
|
6307
|
+
const t = rn();
|
|
6254
6308
|
if (!e)
|
|
6255
6309
|
return t;
|
|
6256
6310
|
if (typeof e == "number" || typeof e == "string")
|
|
@@ -6260,7 +6314,7 @@ function js(e) {
|
|
|
6260
6314
|
return typeof r == "number" || typeof r == "string" ? `${s}${r}` : `${s}${t}`;
|
|
6261
6315
|
}
|
|
6262
6316
|
}
|
|
6263
|
-
function
|
|
6317
|
+
function $r(e, t) {
|
|
6264
6318
|
A(() => (window.addEventListener(e, t, {
|
|
6265
6319
|
passive: !0
|
|
6266
6320
|
}), () => window.removeEventListener(e, t)), [
|
|
@@ -6268,7 +6322,7 @@ function Dr(e, t) {
|
|
|
6268
6322
|
t
|
|
6269
6323
|
]);
|
|
6270
6324
|
}
|
|
6271
|
-
function
|
|
6325
|
+
function xu() {
|
|
6272
6326
|
const [e, t] = X({
|
|
6273
6327
|
width: 0,
|
|
6274
6328
|
height: 0
|
|
@@ -6278,9 +6332,9 @@ function Ou() {
|
|
|
6278
6332
|
height: window.innerHeight || 0
|
|
6279
6333
|
});
|
|
6280
6334
|
}, []);
|
|
6281
|
-
return
|
|
6335
|
+
return $r("resize", r), $r("orientationchange", r), A(r, []), e;
|
|
6282
6336
|
}
|
|
6283
|
-
function
|
|
6337
|
+
function Lu() {
|
|
6284
6338
|
const [e, t] = X({
|
|
6285
6339
|
width: 0,
|
|
6286
6340
|
height: 0
|
|
@@ -6313,30 +6367,30 @@ try {
|
|
|
6313
6367
|
});
|
|
6314
6368
|
} catch {
|
|
6315
6369
|
}
|
|
6316
|
-
const
|
|
6370
|
+
const Ur = "av-button", vo = (e, t, r) => {
|
|
6317
6371
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof e?.currentTarget?.focus == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
|
6318
6372
|
}, tr = /* @__PURE__ */ ee.forwardRef((e, t) => {
|
|
6319
6373
|
const { onClick: r, noInternalClick: s = !1, ...n } = e;
|
|
6320
6374
|
return /* @__PURE__ */ c("button", {
|
|
6321
6375
|
ref: t,
|
|
6322
6376
|
onClick: (a) => {
|
|
6323
|
-
|
|
6377
|
+
vo(a, s, r);
|
|
6324
6378
|
},
|
|
6325
6379
|
...n
|
|
6326
6380
|
});
|
|
6327
6381
|
});
|
|
6328
6382
|
tr.displayName = "BaseButton";
|
|
6329
|
-
const
|
|
6383
|
+
const Et = "icon", rr = "button", ft = "link", To = ({ type: e, size: t, labelRight: r, labelLeft: s, align: n, animated: a }) => {
|
|
6330
6384
|
const i = "max-h-8 py-0 px-2", o = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
|
|
6331
6385
|
switch (e) {
|
|
6332
6386
|
case rr:
|
|
6333
|
-
case
|
|
6387
|
+
case ft:
|
|
6334
6388
|
return m({
|
|
6335
6389
|
[i]: t === "small",
|
|
6336
6390
|
[o]: t === "medium",
|
|
6337
6391
|
[l]: t === "large"
|
|
6338
6392
|
});
|
|
6339
|
-
case
|
|
6393
|
+
case Et:
|
|
6340
6394
|
return m("flex items-center", {
|
|
6341
6395
|
"justify-center": n === "center",
|
|
6342
6396
|
"justify-start": n === "left",
|
|
@@ -6355,25 +6409,25 @@ const wt = "icon", rr = "button", pt = "link", vo = ({ type: e, size: t, labelRi
|
|
|
6355
6409
|
"h-12": t === "large" && a && (r || s)
|
|
6356
6410
|
});
|
|
6357
6411
|
}
|
|
6358
|
-
},
|
|
6412
|
+
}, Io = ({ type: e, size: t, labelRight: r, labelLeft: s }) => {
|
|
6359
6413
|
const n = "text-sm font-medium", a = "text-base font-medium", i = "text-lg font-medium";
|
|
6360
6414
|
switch (e) {
|
|
6361
6415
|
case rr:
|
|
6362
|
-
case
|
|
6416
|
+
case ft:
|
|
6363
6417
|
return m({
|
|
6364
|
-
"text-center": e ===
|
|
6418
|
+
"text-center": e === ft,
|
|
6365
6419
|
[n]: t === "small",
|
|
6366
6420
|
[a]: t === "medium",
|
|
6367
6421
|
[i]: t === "large"
|
|
6368
6422
|
});
|
|
6369
|
-
case
|
|
6423
|
+
case Et:
|
|
6370
6424
|
return m({
|
|
6371
6425
|
[n]: t === "small" && (r || s),
|
|
6372
6426
|
[a]: t === "medium" && (r || s),
|
|
6373
6427
|
[i]: t === "large" && (r || s)
|
|
6374
6428
|
});
|
|
6375
6429
|
}
|
|
6376
|
-
},
|
|
6430
|
+
}, _o = ({ mode: e, noBackground: t, truncate: r, variant: s }) => {
|
|
6377
6431
|
if (t)
|
|
6378
6432
|
return "not-prose";
|
|
6379
6433
|
if (s === "primary")
|
|
@@ -6404,7 +6458,7 @@ const wt = "icon", rr = "button", pt = "link", vo = ({ type: e, size: t, labelRi
|
|
|
6404
6458
|
return m("not-prose text-copy-lighter", {
|
|
6405
6459
|
truncate: r
|
|
6406
6460
|
});
|
|
6407
|
-
},
|
|
6461
|
+
}, Ao = ({ mode: e, noBackground: t, variant: r }) => {
|
|
6408
6462
|
if (!t) {
|
|
6409
6463
|
if (r === "primary")
|
|
6410
6464
|
return m({
|
|
@@ -6430,11 +6484,11 @@ const wt = "icon", rr = "button", pt = "link", vo = ({ type: e, size: t, labelRi
|
|
|
6430
6484
|
if (r === "selected")
|
|
6431
6485
|
return "bg-action-selected-dark";
|
|
6432
6486
|
}
|
|
6433
|
-
},
|
|
6487
|
+
}, Ro = ({ radius: e }) => m({
|
|
6434
6488
|
"rounded-full": e === "large",
|
|
6435
6489
|
"rounded-md": e === "medium",
|
|
6436
6490
|
"rounded-xs": e === "small"
|
|
6437
|
-
}),
|
|
6491
|
+
}), Co = ({ mode: e, disabled: t, variant: r }) => {
|
|
6438
6492
|
if (t)
|
|
6439
6493
|
return "";
|
|
6440
6494
|
if (r === "primary")
|
|
@@ -6468,7 +6522,7 @@ const wt = "icon", rr = "button", pt = "link", vo = ({ type: e, size: t, labelRi
|
|
|
6468
6522
|
});
|
|
6469
6523
|
if (r === "selected")
|
|
6470
6524
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
6471
|
-
},
|
|
6525
|
+
}, Oo = ({ mode: e, disabled: t, variant: r }) => {
|
|
6472
6526
|
if (t)
|
|
6473
6527
|
return "";
|
|
6474
6528
|
if (r === "primary")
|
|
@@ -6502,7 +6556,7 @@ const wt = "icon", rr = "button", pt = "link", vo = ({ type: e, size: t, labelRi
|
|
|
6502
6556
|
});
|
|
6503
6557
|
if (r === "selected")
|
|
6504
6558
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
6505
|
-
},
|
|
6559
|
+
}, ko = ({ mode: e, noBorder: t, variant: r }) => {
|
|
6506
6560
|
if (t)
|
|
6507
6561
|
return "border border-transparent";
|
|
6508
6562
|
if (r === "primary")
|
|
@@ -6528,12 +6582,12 @@ const wt = "icon", rr = "button", pt = "link", vo = ({ type: e, size: t, labelRi
|
|
|
6528
6582
|
});
|
|
6529
6583
|
if (r === "selected")
|
|
6530
6584
|
return "border border-border-selected-dark";
|
|
6531
|
-
},
|
|
6585
|
+
}, Po = ({ focusMode: e }) => m("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
6532
6586
|
"focus:outline-focus-dark": e === "dark",
|
|
6533
6587
|
"focus:outline-focus-light": e === "light",
|
|
6534
6588
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
6535
6589
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
6536
|
-
}),
|
|
6590
|
+
}), No = ({ mode: e, raw: t, iconClassName: r, variant: s = "primary" }) => {
|
|
6537
6591
|
if (t)
|
|
6538
6592
|
return "";
|
|
6539
6593
|
let n = {};
|
|
@@ -6555,42 +6609,42 @@ const wt = "icon", rr = "button", pt = "link", vo = ({ type: e, size: t, labelRi
|
|
|
6555
6609
|
} : s === "selected" && (n = {
|
|
6556
6610
|
"text-copy-lighter": !0
|
|
6557
6611
|
}), m(n, r);
|
|
6558
|
-
},
|
|
6612
|
+
}, Mo = ({ animated: e }) => m({
|
|
6559
6613
|
"transition-opacity duration-300 ease-in-out": e
|
|
6560
|
-
}), sr = ({ type: e, className: t, raw: r, mode: s, focusMode: n, disabled: a, fullWidth: i, size: o, noBorder: l, labelRight: f, labelLeft: d, noBackground: h, variant: u, truncate: p, align: y, radius: g, animated: w }) => (u || (u = "primary"), r ? m(
|
|
6614
|
+
}), sr = ({ type: e, className: t, raw: r, mode: s, focusMode: n, disabled: a, fullWidth: i, size: o, noBorder: l, labelRight: f, labelLeft: d, noBackground: h, variant: u, truncate: p, align: y, radius: g, animated: w }) => (u || (u = "primary"), r ? m(Ur, t) : m(Ur, _o({
|
|
6561
6615
|
mode: s,
|
|
6562
6616
|
variant: u,
|
|
6563
6617
|
noBackground: h,
|
|
6564
6618
|
truncate: p
|
|
6565
|
-
}),
|
|
6619
|
+
}), Ao({
|
|
6566
6620
|
mode: s,
|
|
6567
6621
|
noBackground: h,
|
|
6568
6622
|
variant: u
|
|
6569
|
-
}),
|
|
6623
|
+
}), Ro({
|
|
6570
6624
|
radius: g
|
|
6571
|
-
}),
|
|
6625
|
+
}), To({
|
|
6572
6626
|
type: e,
|
|
6573
6627
|
size: o,
|
|
6574
6628
|
labelRight: f,
|
|
6575
6629
|
labelLeft: d,
|
|
6576
6630
|
align: y,
|
|
6577
6631
|
animated: w
|
|
6578
|
-
}),
|
|
6632
|
+
}), Io({
|
|
6579
6633
|
type: e,
|
|
6580
6634
|
size: o,
|
|
6581
6635
|
labelRight: f,
|
|
6582
6636
|
labelLeft: d
|
|
6583
|
-
}),
|
|
6637
|
+
}), ko({
|
|
6584
6638
|
mode: s,
|
|
6585
6639
|
variant: u,
|
|
6586
6640
|
noBorder: l
|
|
6587
|
-
}),
|
|
6641
|
+
}), Po({
|
|
6588
6642
|
focusMode: n
|
|
6589
|
-
}),
|
|
6643
|
+
}), Co({
|
|
6590
6644
|
mode: s,
|
|
6591
6645
|
variant: u,
|
|
6592
6646
|
disabled: a
|
|
6593
|
-
}),
|
|
6647
|
+
}), Oo({
|
|
6594
6648
|
mode: s,
|
|
6595
6649
|
variant: u,
|
|
6596
6650
|
disabled: a
|
|
@@ -6598,8 +6652,8 @@ const wt = "icon", rr = "button", pt = "link", vo = ({ type: e, size: t, labelRi
|
|
|
6598
6652
|
"w-full": i,
|
|
6599
6653
|
"disabled:cursor-not-allowed disabled:opacity-50": a
|
|
6600
6654
|
}, m({
|
|
6601
|
-
"transition-[width] duration-300 ease-in": e ===
|
|
6602
|
-
}), t)),
|
|
6655
|
+
"transition-[width] duration-300 ease-in": e === Et && w
|
|
6656
|
+
}), t)), Ys = /* @__PURE__ */ ee.forwardRef(({ children: e, disabled: t = !1, mode: r = "system", focusMode: s = "system", fullWidth: n = !1, className: a, size: i = "medium", raw: o = !1, noBorder: l = !1, variant: f = "primary", truncate: d = !1, radius: h = "large", ...u }, p) => {
|
|
6603
6657
|
const y = sr({
|
|
6604
6658
|
type: rr,
|
|
6605
6659
|
mode: r,
|
|
@@ -6622,18 +6676,18 @@ const wt = "icon", rr = "button", pt = "link", vo = ({ type: e, size: t, labelRi
|
|
|
6622
6676
|
children: e
|
|
6623
6677
|
});
|
|
6624
6678
|
});
|
|
6625
|
-
|
|
6626
|
-
const
|
|
6679
|
+
Ys.displayName = "Button";
|
|
6680
|
+
const Xe = {
|
|
6627
6681
|
small: 24,
|
|
6628
6682
|
medium: 32,
|
|
6629
6683
|
large: 48
|
|
6630
|
-
},
|
|
6684
|
+
}, xo = {
|
|
6631
6685
|
small: 16,
|
|
6632
6686
|
medium: 24,
|
|
6633
6687
|
large: 32
|
|
6634
|
-
},
|
|
6688
|
+
}, Lo = 2, Do = 300, Ge = /* @__PURE__ */ ee.forwardRef(({ children: e, disabled: t = !1, mode: r = "system", focusMode: s = "system", fullWidth: n = !1, className: a, type: i = "button", raw: o = !1, noBorder: l = !1, "aria-label": f, label: d, size: h = "medium", labelRight: u, labelLeft: p, noBackground: y = !1, align: g = "center", radius: w = "large", variant: b = "secondary", iconClassName: x, animated: R = !1, ...J }, P) => {
|
|
6635
6689
|
const se = sr({
|
|
6636
|
-
type:
|
|
6690
|
+
type: Et,
|
|
6637
6691
|
mode: r,
|
|
6638
6692
|
focusMode: s,
|
|
6639
6693
|
fullWidth: n,
|
|
@@ -6649,31 +6703,31 @@ const Ze = {
|
|
|
6649
6703
|
radius: w,
|
|
6650
6704
|
variant: b,
|
|
6651
6705
|
animated: R
|
|
6652
|
-
}), N =
|
|
6706
|
+
}), N = No({
|
|
6653
6707
|
mode: r,
|
|
6654
6708
|
raw: o,
|
|
6655
6709
|
iconClassName: x,
|
|
6656
6710
|
variant: b
|
|
6657
|
-
}), I =
|
|
6711
|
+
}), I = Mo({
|
|
6658
6712
|
animated: R
|
|
6659
|
-
}), G = "flex items-center justify-center relative w-full h-full overflow-hidden", [O, C] =
|
|
6713
|
+
}), G = "flex items-center justify-center relative w-full h-full overflow-hidden", [O, C] = rt(), [D, te] = rt(), [me, Ae] = rt(), v = B(0), _ = B(null), T = B(null), ge = js([
|
|
6660
6714
|
P,
|
|
6661
6715
|
_
|
|
6662
6716
|
]);
|
|
6663
|
-
return
|
|
6664
|
-
me && me.current && R && (v.current = Ae.width +
|
|
6717
|
+
return nt(() => {
|
|
6718
|
+
me && me.current && R && (v.current = Ae.width + xo[h] + (l ? 0 : Lo), _.current && !_.current.style.width && (_.current.style.width = `${Xe[h]}px`));
|
|
6665
6719
|
}, [
|
|
6666
6720
|
Ae,
|
|
6667
6721
|
me,
|
|
6668
6722
|
h,
|
|
6669
6723
|
l,
|
|
6670
6724
|
R
|
|
6671
|
-
]),
|
|
6725
|
+
]), nt(() => {
|
|
6672
6726
|
if (_ && _.current && R) {
|
|
6673
|
-
let Ee =
|
|
6674
|
-
u && O && C.width > 0 ? Ee = C.width + v.current : p && D && te.width > 0 && (Ee = te.width + v.current), T.current && clearTimeout(T.current), Ee !== parseInt(_.current.style.width || "0", 10) && (O.current && (O.current.style.opacity = "0"), D.current && (D.current.style.opacity = "0"), _.current.style.width = `${Ee}px`, Ee >
|
|
6727
|
+
let Ee = Xe[h];
|
|
6728
|
+
u && O && C.width > 0 ? Ee = C.width + v.current : p && D && te.width > 0 && (Ee = te.width + v.current), T.current && clearTimeout(T.current), Ee !== parseInt(_.current.style.width || "0", 10) && (O.current && (O.current.style.opacity = "0"), D.current && (D.current.style.opacity = "0"), _.current.style.width = `${Ee}px`, Ee > Xe[h] && (T.current = setTimeout(() => {
|
|
6675
6729
|
O.current && u && (O.current.style.opacity = "1"), D.current && p && (D.current.style.opacity = "1"), T.current = null;
|
|
6676
|
-
},
|
|
6730
|
+
}, Do * 0.8))), Ee === Xe[h] && (O.current && (O.current.style.opacity = "0"), D.current && (D.current.style.opacity = "0"));
|
|
6677
6731
|
}
|
|
6678
6732
|
}, [
|
|
6679
6733
|
C,
|
|
@@ -6696,7 +6750,7 @@ const Ze = {
|
|
|
6696
6750
|
children: /* @__PURE__ */ E("div", {
|
|
6697
6751
|
className: G,
|
|
6698
6752
|
children: [
|
|
6699
|
-
/* @__PURE__ */ c(
|
|
6753
|
+
/* @__PURE__ */ c(Hr, {
|
|
6700
6754
|
label: p,
|
|
6701
6755
|
labelRef: D,
|
|
6702
6756
|
labelClass: I,
|
|
@@ -6708,7 +6762,7 @@ const Ze = {
|
|
|
6708
6762
|
className: N,
|
|
6709
6763
|
children: e
|
|
6710
6764
|
}),
|
|
6711
|
-
/* @__PURE__ */ c(
|
|
6765
|
+
/* @__PURE__ */ c(Hr, {
|
|
6712
6766
|
label: u,
|
|
6713
6767
|
labelRef: O,
|
|
6714
6768
|
labelClass: I,
|
|
@@ -6718,7 +6772,7 @@ const Ze = {
|
|
|
6718
6772
|
]
|
|
6719
6773
|
})
|
|
6720
6774
|
});
|
|
6721
|
-
}),
|
|
6775
|
+
}), Hr = ({ labelRef: e, labelClass: t, label: r, labelInnerClass: s, initiallyHidden: n = !1 }) => /* @__PURE__ */ c("span", {
|
|
6722
6776
|
ref: e,
|
|
6723
6777
|
className: t,
|
|
6724
6778
|
style: n ? {
|
|
@@ -6730,7 +6784,7 @@ const Ze = {
|
|
|
6730
6784
|
})
|
|
6731
6785
|
});
|
|
6732
6786
|
Ge.displayName = "ButtonIcon";
|
|
6733
|
-
const
|
|
6787
|
+
const $o = /* @__PURE__ */ ee.forwardRef(({ copyToClipboard: e, ...t }, r) => {
|
|
6734
6788
|
const [s, n] = X(!1), a = () => {
|
|
6735
6789
|
typeof e == "string" && (navigator.clipboard.writeText(e), n(!0)), typeof e == "function" && (navigator.clipboard.writeText(e()), n(!0));
|
|
6736
6790
|
};
|
|
@@ -6750,17 +6804,17 @@ const Do = /* @__PURE__ */ ee.forwardRef(({ copyToClipboard: e, ...t }, r) => {
|
|
|
6750
6804
|
label: s ? "Copied to clipboard" : "Copy to clipboard",
|
|
6751
6805
|
onClick: a,
|
|
6752
6806
|
disabled: s,
|
|
6753
|
-
children: s ? /* @__PURE__ */ c(
|
|
6807
|
+
children: s ? /* @__PURE__ */ c(io, {
|
|
6754
6808
|
size: "size-3"
|
|
6755
|
-
}) : /* @__PURE__ */ c(
|
|
6809
|
+
}) : /* @__PURE__ */ c(oo, {
|
|
6756
6810
|
size: "size-3"
|
|
6757
6811
|
})
|
|
6758
6812
|
});
|
|
6759
6813
|
});
|
|
6760
|
-
|
|
6761
|
-
const
|
|
6814
|
+
$o.displayName = "ButtonCopy";
|
|
6815
|
+
const Uo = /* @__PURE__ */ ee.forwardRef(({ children: e, mode: t = "system", focusMode: r = "system", fullWidth: s = !1, className: n, size: a = "small", raw: i = !1, noBorder: o = !1, target: l, truncate: f = !1, noNewWindowIcon: d = !1, radius: h = "large", ...u }, p) => {
|
|
6762
6816
|
const y = sr({
|
|
6763
|
-
type:
|
|
6817
|
+
type: ft,
|
|
6764
6818
|
mode: t,
|
|
6765
6819
|
focusMode: r,
|
|
6766
6820
|
fullWidth: s,
|
|
@@ -6815,8 +6869,8 @@ const $o = /* @__PURE__ */ ee.forwardRef(({ children: e, mode: t = "system", foc
|
|
|
6815
6869
|
})
|
|
6816
6870
|
});
|
|
6817
6871
|
});
|
|
6818
|
-
|
|
6819
|
-
const
|
|
6872
|
+
Uo.displayName = "ButtonLink";
|
|
6873
|
+
const Ho = /* @__PURE__ */ ee.forwardRef(({ children: e, mode: t = "system", className: r, active: s = !1, ...n }, a) => {
|
|
6820
6874
|
const i = s ? m("relative", "focus-within:static", "focus-within:after:border-transparent", "after:absolute", "after:content-['']", "after:border-b-2", "after:bottom-[-4px]", "after:left-0", "after:right-0", {
|
|
6821
6875
|
"after:border-table-dark": t === "dark",
|
|
6822
6876
|
"after:border-table-light": t === "light",
|
|
@@ -6837,7 +6891,7 @@ const Uo = /* @__PURE__ */ ee.forwardRef(({ children: e, mode: t = "system", cla
|
|
|
6837
6891
|
})
|
|
6838
6892
|
});
|
|
6839
6893
|
});
|
|
6840
|
-
|
|
6894
|
+
Ho.displayName = "ButtonSort";
|
|
6841
6895
|
/*!
|
|
6842
6896
|
@versini/ui-card v5.1.1
|
|
6843
6897
|
© 2025 gizmette.com
|
|
@@ -6851,8 +6905,8 @@ try {
|
|
|
6851
6905
|
});
|
|
6852
6906
|
} catch {
|
|
6853
6907
|
}
|
|
6854
|
-
const
|
|
6855
|
-
const o = m(
|
|
6908
|
+
const st = "av-card", Fo = ({ className: e, headerClassName: t, bodyClassName: r, footerClassName: s, mode: n, compact: a, noBorder: i }) => {
|
|
6909
|
+
const o = m(st, "rounded-md", {
|
|
6856
6910
|
"border-none": i,
|
|
6857
6911
|
"border-2": !i,
|
|
6858
6912
|
"p-4": !a,
|
|
@@ -6862,7 +6916,7 @@ const nt = "av-card", Ho = ({ className: e, headerClassName: t, bodyClassName: r
|
|
|
6862
6916
|
"border-border-dark bg-surface-lighter text-copy-dark": n === "light",
|
|
6863
6917
|
"border-border-dark bg-surface-lighter text-copy-dark dark:border-border-accent dark:bg-surface-dark dark:text-copy-light": n === "system",
|
|
6864
6918
|
"border-border-accent bg-surface-dark text-copy-light dark:border-border-dark dark:bg-surface-lighter dark:text-copy-dark": n === "alt-system"
|
|
6865
|
-
}, e), l = t || m(`${
|
|
6919
|
+
}, e), l = t || m(`${st}__header mt-0 border-b-2`, {
|
|
6866
6920
|
"text-copy-light border-border-accent": n === "darker",
|
|
6867
6921
|
"border-border-accent": n === "dark",
|
|
6868
6922
|
"border-border-medium": n === "light",
|
|
@@ -6870,7 +6924,7 @@ const nt = "av-card", Ho = ({ className: e, headerClassName: t, bodyClassName: r
|
|
|
6870
6924
|
"border-border-accent dark:border-border-medium": n === "alt-system",
|
|
6871
6925
|
"mb-4": !a,
|
|
6872
6926
|
"mb-2": a
|
|
6873
|
-
}), f = m(r), d = s || m(`${
|
|
6927
|
+
}), f = m(r), d = s || m(`${st}__footer pt-2`);
|
|
6874
6928
|
return {
|
|
6875
6929
|
wrapper: o,
|
|
6876
6930
|
header: l,
|
|
@@ -6878,7 +6932,7 @@ const nt = "av-card", Ho = ({ className: e, headerClassName: t, bodyClassName: r
|
|
|
6878
6932
|
footer: d
|
|
6879
6933
|
};
|
|
6880
6934
|
};
|
|
6881
|
-
function
|
|
6935
|
+
function Bo({ id: e, content: t, userAriaLabelledby: r, className: s }) {
|
|
6882
6936
|
return typeof t == "string" ? /* @__PURE__ */ c("h2", {
|
|
6883
6937
|
id: e,
|
|
6884
6938
|
className: s,
|
|
@@ -6892,9 +6946,9 @@ function Fo({ id: e, content: t, userAriaLabelledby: r, className: s }) {
|
|
|
6892
6946
|
children: t
|
|
6893
6947
|
}) : null;
|
|
6894
6948
|
}
|
|
6895
|
-
const
|
|
6949
|
+
const Ko = ({ header: e, headerClassName: t, footer: r, footerClassName: s, children: n, className: a, bodyClassName: i, "aria-labelledby": o, mode: l = "system", compact: f = !1, noBorder: d = !1, ...h }) => {
|
|
6896
6950
|
let u = null, p = null;
|
|
6897
|
-
const y = typeof e == "string", g =
|
|
6951
|
+
const y = typeof e == "string", g = Qs(st), w = Fo({
|
|
6898
6952
|
className: a,
|
|
6899
6953
|
headerClassName: t,
|
|
6900
6954
|
bodyClassName: i,
|
|
@@ -6912,7 +6966,7 @@ const Bo = ({ header: e, headerClassName: t, footer: r, footerClassName: s, chil
|
|
|
6912
6966
|
className: w.body,
|
|
6913
6967
|
...h,
|
|
6914
6968
|
children: [
|
|
6915
|
-
/* @__PURE__ */ c(
|
|
6969
|
+
/* @__PURE__ */ c(Bo, {
|
|
6916
6970
|
...u && {
|
|
6917
6971
|
id: u
|
|
6918
6972
|
},
|
|
@@ -6930,10 +6984,10 @@ const Bo = ({ header: e, headerClassName: t, footer: r, footerClassName: s, chil
|
|
|
6930
6984
|
]
|
|
6931
6985
|
})
|
|
6932
6986
|
});
|
|
6933
|
-
},
|
|
6987
|
+
}, Vo = "av-flexgrid", Ze = "av-flexgrid-item", pt = 0.25, Vt = ee.createContext({
|
|
6934
6988
|
columnGap: 0,
|
|
6935
6989
|
rowGap: 0
|
|
6936
|
-
}),
|
|
6990
|
+
}), Go = ({
|
|
6937
6991
|
children: e,
|
|
6938
6992
|
className: t,
|
|
6939
6993
|
columnGap: r = 1,
|
|
@@ -6956,10 +7010,10 @@ const Bo = ({ header: e, headerClassName: t, footer: r, footerClassName: s, chil
|
|
|
6956
7010
|
* by the columnGap and rowGap that will be applied
|
|
6957
7011
|
* to all FlexgridItems (see context and paddings).
|
|
6958
7012
|
*/
|
|
6959
|
-
marginLeft: r * -1 *
|
|
6960
|
-
marginTop: s * -1 *
|
|
7013
|
+
marginLeft: r * -1 * pt + "rem",
|
|
7014
|
+
marginTop: s * -1 * pt + "rem"
|
|
6961
7015
|
}, h = m(
|
|
6962
|
-
|
|
7016
|
+
Vo,
|
|
6963
7017
|
"box-border flex flex-wrap"
|
|
6964
7018
|
), u = { columnGap: r, rowGap: s };
|
|
6965
7019
|
return t ? /* @__PURE__ */ c("div", { className: t, children: /* @__PURE__ */ c("div", { className: h, style: d, ...f, children: /* @__PURE__ */ c(Vt.Provider, { value: u, children: e }) }) }) : /* @__PURE__ */ c("div", { className: h, style: d, ...f, children: /* @__PURE__ */ c(Vt.Provider, { value: u, children: e }) });
|
|
@@ -7036,25 +7090,25 @@ const Bo = ({ header: e, headerClassName: t, footer: r, footerClassName: s, chil
|
|
|
7036
7090
|
"lg:basis-full": e === 12 && t === "lg",
|
|
7037
7091
|
"xl:basis-full": e === 12 && t === "xl",
|
|
7038
7092
|
"2xl:basis-full": e === 12 && t === "2xl"
|
|
7039
|
-
}),
|
|
7093
|
+
}), zo = ({
|
|
7040
7094
|
className: e,
|
|
7041
7095
|
span: t
|
|
7042
7096
|
}) => {
|
|
7043
7097
|
if (!t)
|
|
7044
|
-
return m(e,
|
|
7098
|
+
return m(e, Ze, "box-border basis-auto");
|
|
7045
7099
|
if (typeof t == "number")
|
|
7046
|
-
return m(e,
|
|
7100
|
+
return m(e, Ze, "box-border max-w-full", {
|
|
7047
7101
|
[`${Nt(t)}`]: !0
|
|
7048
7102
|
});
|
|
7049
7103
|
if (typeof t == "string")
|
|
7050
|
-
return m(e,
|
|
7104
|
+
return m(e, Ze, "box-border basis-auto", {
|
|
7051
7105
|
"max-w-full grow": t === "auto"
|
|
7052
7106
|
});
|
|
7053
7107
|
if (typeof t == "object") {
|
|
7054
7108
|
const r = Object.entries(t).map(([s, n]) => s === "fallback" ? Nt(n) : Nt(n, s));
|
|
7055
7109
|
return m(
|
|
7056
7110
|
e,
|
|
7057
|
-
|
|
7111
|
+
Ze,
|
|
7058
7112
|
"box-border",
|
|
7059
7113
|
r
|
|
7060
7114
|
);
|
|
@@ -7066,9 +7120,9 @@ const Bo = ({ header: e, headerClassName: t, footer: r, footerClassName: s, chil
|
|
|
7066
7120
|
...s
|
|
7067
7121
|
}) => {
|
|
7068
7122
|
const { columnGap: n, rowGap: a } = ze(Vt), i = {
|
|
7069
|
-
paddingLeft: n *
|
|
7070
|
-
paddingTop: a *
|
|
7071
|
-
}, o =
|
|
7123
|
+
paddingLeft: n * pt + "rem",
|
|
7124
|
+
paddingTop: a * pt + "rem"
|
|
7125
|
+
}, o = zo({
|
|
7072
7126
|
className: t,
|
|
7073
7127
|
span: r
|
|
7074
7128
|
});
|
|
@@ -7100,7 +7154,7 @@ try {
|
|
|
7100
7154
|
});
|
|
7101
7155
|
} catch {
|
|
7102
7156
|
}
|
|
7103
|
-
const
|
|
7157
|
+
const Js = "SET_ANNOUNCEMENT", Xs = "CLEAR_ANNOUNCEMENT", qo = {
|
|
7104
7158
|
alert: null,
|
|
7105
7159
|
alertdialog: null,
|
|
7106
7160
|
log: "polite",
|
|
@@ -7108,14 +7162,14 @@ const Ys = "SET_ANNOUNCEMENT", Js = "CLEAR_ANNOUNCEMENT", zo = {
|
|
|
7108
7162
|
progressbar: null,
|
|
7109
7163
|
status: "polite",
|
|
7110
7164
|
timer: "assertive"
|
|
7111
|
-
},
|
|
7165
|
+
}, Wo = (e, t) => {
|
|
7112
7166
|
switch (t?.type) {
|
|
7113
|
-
case
|
|
7167
|
+
case Js:
|
|
7114
7168
|
return {
|
|
7115
7169
|
...e,
|
|
7116
7170
|
announcement: t.payload
|
|
7117
7171
|
};
|
|
7118
|
-
case
|
|
7172
|
+
case Xs:
|
|
7119
7173
|
return {
|
|
7120
7174
|
...e,
|
|
7121
7175
|
announcement: null
|
|
@@ -7123,26 +7177,26 @@ const Ys = "SET_ANNOUNCEMENT", Js = "CLEAR_ANNOUNCEMENT", zo = {
|
|
|
7123
7177
|
default:
|
|
7124
7178
|
return e;
|
|
7125
7179
|
}
|
|
7126
|
-
},
|
|
7180
|
+
}, jo = ({ onAnnouncementClear: e, dispatch: t }) => {
|
|
7127
7181
|
t({
|
|
7128
|
-
type:
|
|
7182
|
+
type: Xs
|
|
7129
7183
|
}), typeof e == "function" && e();
|
|
7130
|
-
},
|
|
7184
|
+
}, Fr = ({ children: e, clearAnnouncementDelay: t, clearAnnouncementTimeoutRef: r, onAnnouncementClear: s, dispatch: n }) => {
|
|
7131
7185
|
clearTimeout(r.current), e !== null && n({
|
|
7132
|
-
type:
|
|
7186
|
+
type: Js,
|
|
7133
7187
|
payload: e
|
|
7134
|
-
}), t && (r.current = setTimeout(() =>
|
|
7188
|
+
}), t && (r.current = setTimeout(() => jo({
|
|
7135
7189
|
onAnnouncementClear: s,
|
|
7136
7190
|
dispatch: n
|
|
7137
7191
|
}), t));
|
|
7138
|
-
},
|
|
7139
|
-
clearTimeout(t.current), r ? t.current = setTimeout(
|
|
7192
|
+
}, Qo = ({ children: e, announcementTimeoutRef: t, announcementDelay: r, clearAnnouncementDelay: s, clearAnnouncementTimeoutRef: n, onAnnouncementClear: a, dispatch: i }) => {
|
|
7193
|
+
clearTimeout(t.current), r ? t.current = setTimeout(Fr, r, {
|
|
7140
7194
|
children: e,
|
|
7141
7195
|
clearAnnouncementDelay: s,
|
|
7142
7196
|
clearAnnouncementTimeoutRef: n,
|
|
7143
7197
|
onAnnouncementClear: a,
|
|
7144
7198
|
dispatch: i
|
|
7145
|
-
}) :
|
|
7199
|
+
}) : Fr({
|
|
7146
7200
|
children: e,
|
|
7147
7201
|
clearAnnouncementDelay: s,
|
|
7148
7202
|
clearAnnouncementTimeoutRef: n,
|
|
@@ -7150,13 +7204,13 @@ const Ys = "SET_ANNOUNCEMENT", Js = "CLEAR_ANNOUNCEMENT", zo = {
|
|
|
7150
7204
|
dispatch: i
|
|
7151
7205
|
});
|
|
7152
7206
|
};
|
|
7153
|
-
function
|
|
7154
|
-
const f = B(null), d = B(null), [h, u] =
|
|
7207
|
+
function Zs({ children: e, className: t, politeness: r, role: s = null, announcementDelay: n, clearAnnouncementDelay: a, onAnnouncementClear: i, visible: o, ...l }) {
|
|
7208
|
+
const f = B(null), d = B(null), [h, u] = Gr(Wo, {
|
|
7155
7209
|
announcement: null
|
|
7156
7210
|
});
|
|
7157
7211
|
let p = r;
|
|
7158
|
-
typeof p > "u" && (p = s ?
|
|
7159
|
-
|
|
7212
|
+
typeof p > "u" && (p = s ? qo[s] : "assertive"), A(() => {
|
|
7213
|
+
Qo({
|
|
7160
7214
|
announcementTimeoutRef: f,
|
|
7161
7215
|
announcementDelay: n,
|
|
7162
7216
|
children: e,
|
|
@@ -7197,22 +7251,22 @@ try {
|
|
|
7197
7251
|
});
|
|
7198
7252
|
} catch {
|
|
7199
7253
|
}
|
|
7200
|
-
const
|
|
7254
|
+
const en = "av-text-input", Yo = "av-text-input-wrapper", Mt = "av-text-input-helper-text", Jo = ({ mode: e }) => m({
|
|
7201
7255
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
7202
7256
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
7203
7257
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
7204
7258
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
7205
|
-
}),
|
|
7259
|
+
}), Xo = ({ focusMode: e }) => m("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
7206
7260
|
"focus:outline-focus-dark": e === "dark",
|
|
7207
7261
|
"focus:outline-focus-light": e === "light",
|
|
7208
7262
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
7209
7263
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
7210
|
-
}),
|
|
7264
|
+
}), Zo = ({ noBorder: e, error: t }) => m("border-2", {
|
|
7211
7265
|
"border-border-dark": !e && !t,
|
|
7212
7266
|
"focus:border-border-dark": !e && t,
|
|
7213
7267
|
"border-border-error-dark": !e && t,
|
|
7214
7268
|
"border-transparent": e
|
|
7215
|
-
}),
|
|
7269
|
+
}), ec = ({ disabled: e, raw: t, error: r, mode: s }) => {
|
|
7216
7270
|
if (t)
|
|
7217
7271
|
return "";
|
|
7218
7272
|
if (e)
|
|
@@ -7231,7 +7285,7 @@ const Zs = "av-text-input", Qo = "av-text-input-wrapper", Mt = "av-text-input-he
|
|
|
7231
7285
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": s === "system",
|
|
7232
7286
|
"text-copy-lighter dark:text-copy-error-dark": s === "alt-system"
|
|
7233
7287
|
});
|
|
7234
|
-
},
|
|
7288
|
+
}, tc = ({ error: e, raw: t, mode: r, disabled: s }) => {
|
|
7235
7289
|
if (t)
|
|
7236
7290
|
return "";
|
|
7237
7291
|
if (s)
|
|
@@ -7250,8 +7304,8 @@ const Zs = "av-text-input", Qo = "av-text-input-wrapper", Mt = "av-text-input-he
|
|
|
7250
7304
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": r === "system",
|
|
7251
7305
|
"dark:text-copy-error-dark text-copy-error-light bg-surface-darker": r === "alt-system"
|
|
7252
7306
|
});
|
|
7253
|
-
},
|
|
7254
|
-
const d = r ? e : m("relative flex w-full flex-col justify-center",
|
|
7307
|
+
}, rc = ({ className: e, inputClassName: t, raw: r, disabled: s, noBorder: n, error: a, mode: i, focusMode: o, size: l, rightElementClassName: f }) => {
|
|
7308
|
+
const d = r ? e : m("relative flex w-full flex-col justify-center", Yo, e);
|
|
7255
7309
|
let h = "";
|
|
7256
7310
|
switch (l) {
|
|
7257
7311
|
case "xs":
|
|
@@ -7270,21 +7324,21 @@ const Zs = "av-text-input", Qo = "av-text-input-wrapper", Mt = "av-text-input-he
|
|
|
7270
7324
|
h = "h-12";
|
|
7271
7325
|
break;
|
|
7272
7326
|
}
|
|
7273
|
-
const u = r ? m(t) : m(
|
|
7327
|
+
const u = r ? m(t) : m(en, h, "rounded-md text-base px-4", Jo({
|
|
7274
7328
|
mode: i
|
|
7275
|
-
}), Jo({
|
|
7276
|
-
focusMode: o
|
|
7277
7329
|
}), Xo({
|
|
7330
|
+
focusMode: o
|
|
7331
|
+
}), Zo({
|
|
7278
7332
|
noBorder: n,
|
|
7279
7333
|
error: a
|
|
7280
7334
|
}), {
|
|
7281
7335
|
"disabled:cursor-not-allowed disabled:opacity-50": s
|
|
7282
|
-
}, t), p = r ? void 0 : "sr-only", y =
|
|
7336
|
+
}, t), p = r ? void 0 : "sr-only", y = ec({
|
|
7283
7337
|
disabled: s,
|
|
7284
7338
|
raw: r,
|
|
7285
7339
|
error: a,
|
|
7286
7340
|
mode: i
|
|
7287
|
-
}), g =
|
|
7341
|
+
}), g = tc({
|
|
7288
7342
|
error: a,
|
|
7289
7343
|
raw: r,
|
|
7290
7344
|
mode: i,
|
|
@@ -7299,9 +7353,9 @@ const Zs = "av-text-input", Qo = "av-text-input-wrapper", Mt = "av-text-input-he
|
|
|
7299
7353
|
rightElement: w
|
|
7300
7354
|
};
|
|
7301
7355
|
}, nr = /* @__PURE__ */ ee.forwardRef(({ id: e, name: t, label: r, error: s = !1, raw: n = !1, className: a, inputClassName: i, mode: o = "system", focusMode: l = "system", disabled: f = !1, noBorder: d = !1, labelId: h, labelHidden: u = !1, type: p = "text", helperText: y = "", rightElement: g, rightElementClassName: w, size: b = "md", ...x }, R) => {
|
|
7302
|
-
const [J, P] =
|
|
7356
|
+
const [J, P] = rt(), [se, N] = X(0), I = Qs({
|
|
7303
7357
|
id: e,
|
|
7304
|
-
prefix: `${
|
|
7358
|
+
prefix: `${en}-`
|
|
7305
7359
|
}), G = `${t} error, ${y}`, O = B(null), C = B(null), D = {
|
|
7306
7360
|
xs: {
|
|
7307
7361
|
label: "-25px",
|
|
@@ -7323,7 +7377,7 @@ const Zs = "av-text-input", Qo = "av-text-input-wrapper", Mt = "av-text-input-he
|
|
|
7323
7377
|
label: "-19px",
|
|
7324
7378
|
helperText: "25px"
|
|
7325
7379
|
}
|
|
7326
|
-
}, te =
|
|
7380
|
+
}, te = rc({
|
|
7327
7381
|
className: a,
|
|
7328
7382
|
inputClassName: i,
|
|
7329
7383
|
error: s,
|
|
@@ -7335,11 +7389,11 @@ const Zs = "av-text-input", Qo = "av-text-input-wrapper", Mt = "av-text-input-he
|
|
|
7335
7389
|
size: b,
|
|
7336
7390
|
rightElementClassName: w
|
|
7337
7391
|
});
|
|
7338
|
-
return
|
|
7392
|
+
return nt(() => {
|
|
7339
7393
|
P && P.width && N(P.width + 18 + 10);
|
|
7340
7394
|
}, [
|
|
7341
7395
|
P
|
|
7342
|
-
]),
|
|
7396
|
+
]), nt(() => {
|
|
7343
7397
|
const { label: me, helperText: Ae } = D[b];
|
|
7344
7398
|
O?.current?.style.setProperty("--av-text-input-label", me), C?.current?.style.setProperty("--av-text-input-helper-text", Ae);
|
|
7345
7399
|
}, [
|
|
@@ -7392,7 +7446,7 @@ const Zs = "av-text-input", Qo = "av-text-input-wrapper", Mt = "av-text-input-he
|
|
|
7392
7446
|
className: te.rightElement,
|
|
7393
7447
|
children: g
|
|
7394
7448
|
}),
|
|
7395
|
-
s && y && /* @__PURE__ */ c(
|
|
7449
|
+
s && y && /* @__PURE__ */ c(Zs, {
|
|
7396
7450
|
politeness: "polite",
|
|
7397
7451
|
clearAnnouncementDelay: 500,
|
|
7398
7452
|
children: G
|
|
@@ -7401,26 +7455,26 @@ const Zs = "av-text-input", Qo = "av-text-input-wrapper", Mt = "av-text-input-he
|
|
|
7401
7455
|
});
|
|
7402
7456
|
});
|
|
7403
7457
|
nr.displayName = "TextInput";
|
|
7404
|
-
const
|
|
7458
|
+
const sc = 500, nc = 5e3, ac = 2e4, tn = /* @__PURE__ */ ee.forwardRef(({ name: e, disabled: t, label: r, labelHidden: s, onMaskChange: n, onChange: a, onBlur: i, onFocus: o, onTextInputMaskBlur: l, rightElement: f, ...d }, h) => {
|
|
7405
7459
|
const [u, p] = X(!0), [y, g] = X({
|
|
7406
7460
|
message: null,
|
|
7407
7461
|
politeness: null
|
|
7408
|
-
}), w = B(!0), b = B(null), x = B(null), R =
|
|
7462
|
+
}), w = B(!0), b = B(null), x = B(null), R = js([
|
|
7409
7463
|
h,
|
|
7410
7464
|
x
|
|
7411
7465
|
]), J = u ? "Show" : "Hide", P = () => {
|
|
7412
7466
|
b.current && clearTimeout(b.current), w.current || (b.current = setTimeout(() => {
|
|
7413
7467
|
w.current = !0, p(!0), g({
|
|
7414
|
-
announcementTimeout:
|
|
7468
|
+
announcementTimeout: nc,
|
|
7415
7469
|
politeness: "polite",
|
|
7416
7470
|
message: `${r} hiding characters`
|
|
7417
7471
|
}), n && n(!0);
|
|
7418
|
-
},
|
|
7472
|
+
}, ac));
|
|
7419
7473
|
}, se = (C) => {
|
|
7420
7474
|
C.preventDefault();
|
|
7421
7475
|
const D = !w.current;
|
|
7422
7476
|
w.current = D, P(), p(D), g({
|
|
7423
|
-
announcementTimeout:
|
|
7477
|
+
announcementTimeout: sc,
|
|
7424
7478
|
politeness: "assertive",
|
|
7425
7479
|
message: D ? "Characters hidden" : "Characters showing"
|
|
7426
7480
|
}), n && n(D);
|
|
@@ -7436,7 +7490,7 @@ const rc = 500, sc = 5e3, nc = 2e4, en = /* @__PURE__ */ ee.forwardRef(({ name:
|
|
|
7436
7490
|
};
|
|
7437
7491
|
return A(() => () => {
|
|
7438
7492
|
b.current && clearTimeout(b.current);
|
|
7439
|
-
}, []), /* @__PURE__ */ E(
|
|
7493
|
+
}, []), /* @__PURE__ */ E(Vr, {
|
|
7440
7494
|
children: [
|
|
7441
7495
|
/* @__PURE__ */ c(nr, {
|
|
7442
7496
|
ref: R,
|
|
@@ -7457,7 +7511,7 @@ const rc = 500, sc = 5e3, nc = 2e4, en = /* @__PURE__ */ ee.forwardRef(({ name:
|
|
|
7457
7511
|
}),
|
|
7458
7512
|
...d
|
|
7459
7513
|
}),
|
|
7460
|
-
/* @__PURE__ */ c(
|
|
7514
|
+
/* @__PURE__ */ c(Zs, {
|
|
7461
7515
|
role: "status",
|
|
7462
7516
|
politeness: y.politeness,
|
|
7463
7517
|
clearAnnouncementDelay: y.announcementTimeout,
|
|
@@ -7466,8 +7520,8 @@ const rc = 500, sc = 5e3, nc = 2e4, en = /* @__PURE__ */ ee.forwardRef(({ name:
|
|
|
7466
7520
|
]
|
|
7467
7521
|
});
|
|
7468
7522
|
});
|
|
7469
|
-
|
|
7470
|
-
const
|
|
7523
|
+
tn.displayName = "TextInputMask";
|
|
7524
|
+
const ic = "ASK! ME! ANYTHING!", oc = "Log in with a password", cc = "Log in with a Passkey", Du = "Log out", lc = "Password", $u = "Usage", Uu = "Profile", Hu = "Settings", Fu = "Chat history", Bu = "About", Ku = "Type your message...", Vu = "How can I help you this morning?", Gu = "How can I help you this afternoon?", zu = "How can I help you this evening?", qu = "How can I help you tonight?", Wu = "How can I help you today?", ju = "How can I help you?", Qu = "{{clipboard}}", $ = "Review important details.", Yu = [
|
|
7471
7525
|
`Sometimes, ${L} just makes stuff up. ${$}`,
|
|
7472
7526
|
`${L} may invent facts on the fly. ${$}`,
|
|
7473
7527
|
`${L} may be confidently wrong. ${$}`,
|
|
@@ -7488,23 +7542,23 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7488
7542
|
`Sometimes, ${L} howls at the moon. ${$}`,
|
|
7489
7543
|
`${L} may dig up imaginary bones. ${$}`,
|
|
7490
7544
|
`${L} may sniff out nonsense. ${$}`
|
|
7491
|
-
],
|
|
7545
|
+
], Ju = "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.", Xu = "Default provider set to", Zu = "Chat successfully deleted!", ed = "Caching enabled. Assets are now stored locally.", td = "Caching disabled. Local asset cache cleared.", rd = "av-sassy", sd = {
|
|
7492
7546
|
0: ["January", "February", "March"],
|
|
7493
7547
|
3: ["April", "May", "June"],
|
|
7494
7548
|
6: ["July", "August", "September"],
|
|
7495
7549
|
9: ["October", "November", "December"]
|
|
7496
|
-
},
|
|
7550
|
+
}, nd = {
|
|
7497
7551
|
0: ["Jan", "Feb", "Mar"],
|
|
7498
7552
|
3: ["Apr", "May", "Jun"],
|
|
7499
7553
|
6: ["Jul", "Aug", "Sep"],
|
|
7500
7554
|
9: ["Oct", "Nov", "Dec"]
|
|
7501
|
-
},
|
|
7555
|
+
}, et = {
|
|
7502
7556
|
TODAY: "today",
|
|
7503
7557
|
YESTERDAY: "yesterday",
|
|
7504
7558
|
SPECIFIC_MONTH: "specificMonth",
|
|
7505
7559
|
CURRENT_YEAR: "currentYear",
|
|
7506
7560
|
LAST_YEAR: "lastYear"
|
|
7507
|
-
},
|
|
7561
|
+
}, ad = [
|
|
7508
7562
|
"January",
|
|
7509
7563
|
"February",
|
|
7510
7564
|
"March",
|
|
@@ -7517,12 +7571,12 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7517
7571
|
"October",
|
|
7518
7572
|
"November",
|
|
7519
7573
|
"December"
|
|
7520
|
-
],
|
|
7521
|
-
[
|
|
7522
|
-
[
|
|
7523
|
-
[
|
|
7524
|
-
[
|
|
7525
|
-
},
|
|
7574
|
+
], id = {
|
|
7575
|
+
[et.TODAY]: "Today",
|
|
7576
|
+
[et.YESTERDAY]: "Yesterday",
|
|
7577
|
+
[et.CURRENT_YEAR]: `${(/* @__PURE__ */ new Date()).getFullYear()} by trimester`,
|
|
7578
|
+
[et.LAST_YEAR]: `${(/* @__PURE__ */ new Date()).getFullYear() - 1} by trimester`
|
|
7579
|
+
}, od = {
|
|
7526
7580
|
PREFERENCES: {
|
|
7527
7581
|
TITLE: "User profile",
|
|
7528
7582
|
USERNAME: "Username",
|
|
@@ -7574,38 +7628,38 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7574
7628
|
SEND_ON_ENTER: "This 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.",
|
|
7575
7629
|
USE_MEMORY: "This option allows you to choose whether you want to enable memory for your chats. When enabled, Diggidy will remember your previous interactions and use them to provide more relevant responses."
|
|
7576
7630
|
}
|
|
7577
|
-
},
|
|
7631
|
+
}, uc = {
|
|
7578
7632
|
ASC: "asc",
|
|
7579
7633
|
DESC: "desc"
|
|
7580
|
-
},
|
|
7634
|
+
}, cd = "FOOTER_BOTTOM", dc = "FOOTER_TOP", hc = "APP_SET_FOOTER_POSITION", fc = "APP_SET_FOOTER_HEIGHT", pc = "APP_SET_OLED_MODE", yc = "APP_SET_FULL_SCREEN", mc = "APP_SET_THEME_MODE", gc = "APP_SET_THEME_PALETTE", ld = (e, t) => {
|
|
7581
7635
|
switch (t.type) {
|
|
7582
|
-
case
|
|
7636
|
+
case hc:
|
|
7583
7637
|
return {
|
|
7584
7638
|
...e,
|
|
7585
7639
|
footerPosition: t.payload.footerPosition,
|
|
7586
7640
|
footerOffset: t.payload.footerOffset
|
|
7587
7641
|
};
|
|
7588
|
-
case
|
|
7642
|
+
case fc:
|
|
7589
7643
|
return {
|
|
7590
7644
|
...e,
|
|
7591
7645
|
footerHeight: t.payload.footerHeight
|
|
7592
7646
|
};
|
|
7593
|
-
case
|
|
7647
|
+
case pc:
|
|
7594
7648
|
return {
|
|
7595
7649
|
...e,
|
|
7596
7650
|
oledMode: t.payload.oledMode
|
|
7597
7651
|
};
|
|
7598
|
-
case
|
|
7652
|
+
case yc:
|
|
7599
7653
|
return {
|
|
7600
7654
|
...e,
|
|
7601
7655
|
fullScreen: t.payload.fullScreen
|
|
7602
7656
|
};
|
|
7603
|
-
case
|
|
7657
|
+
case mc:
|
|
7604
7658
|
return {
|
|
7605
7659
|
...e,
|
|
7606
7660
|
themeMode: t.payload.themeMode
|
|
7607
7661
|
};
|
|
7608
|
-
case
|
|
7662
|
+
case gc:
|
|
7609
7663
|
return {
|
|
7610
7664
|
...e,
|
|
7611
7665
|
themePalette: t.payload.themePalette
|
|
@@ -7613,21 +7667,21 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7613
7667
|
default:
|
|
7614
7668
|
return e;
|
|
7615
7669
|
}
|
|
7616
|
-
},
|
|
7670
|
+
}, ud = ee.createContext({
|
|
7617
7671
|
state: {
|
|
7618
7672
|
searchString: "",
|
|
7619
7673
|
sortedCell: "",
|
|
7620
|
-
sortDirection:
|
|
7674
|
+
sortDirection: uc.DESC
|
|
7621
7675
|
},
|
|
7622
7676
|
dispatch: () => {
|
|
7623
7677
|
}
|
|
7624
|
-
}),
|
|
7678
|
+
}), dd = ee.createContext({
|
|
7625
7679
|
state: { prompt: "", lastTriggeredTimestamp: 0 },
|
|
7626
7680
|
dispatch: () => {
|
|
7627
7681
|
}
|
|
7628
|
-
}),
|
|
7682
|
+
}), hd = ee.createContext({
|
|
7629
7683
|
state: {
|
|
7630
|
-
provider:
|
|
7684
|
+
provider: cn,
|
|
7631
7685
|
privateChat: !1,
|
|
7632
7686
|
reasoning: !1,
|
|
7633
7687
|
streaming: !1,
|
|
@@ -7645,41 +7699,41 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7645
7699
|
},
|
|
7646
7700
|
setInitialMessages: () => {
|
|
7647
7701
|
}
|
|
7648
|
-
}),
|
|
7702
|
+
}), Ec = ee.createContext({
|
|
7649
7703
|
state: {
|
|
7650
|
-
footerPosition:
|
|
7704
|
+
footerPosition: dc,
|
|
7651
7705
|
footerHeight: 0,
|
|
7652
7706
|
footerOffset: 0,
|
|
7653
7707
|
oledMode: !1,
|
|
7654
7708
|
fullScreen: !1,
|
|
7655
|
-
themeMode:
|
|
7709
|
+
themeMode: an
|
|
7656
7710
|
},
|
|
7657
7711
|
dispatch: () => {
|
|
7658
7712
|
}
|
|
7659
|
-
}),
|
|
7713
|
+
}), wc = (e) => {
|
|
7660
7714
|
const t = document.documentElement;
|
|
7661
7715
|
Array.from(t.style).filter((r) => r.startsWith("--av-")).forEach((r) => t.style.removeProperty(r)), e && Object.entries(e).forEach(([r, s]) => {
|
|
7662
7716
|
t.style.setProperty(r, s);
|
|
7663
7717
|
});
|
|
7664
|
-
},
|
|
7718
|
+
}, Sc = () => {
|
|
7665
7719
|
const {
|
|
7666
7720
|
state: { oledMode: e, themePalette: t }
|
|
7667
|
-
} = ze(
|
|
7721
|
+
} = ze(Ec), r = Fe(() => {
|
|
7668
7722
|
if (t)
|
|
7669
7723
|
return e ? t.oled : t.normal;
|
|
7670
7724
|
}, [t, e]);
|
|
7671
7725
|
return A(() => {
|
|
7672
|
-
r?.cssVariables &&
|
|
7726
|
+
r?.cssVariables && wc(r.cssVariables);
|
|
7673
7727
|
}, [r]), [M(
|
|
7674
7728
|
(n) => r?.colors[n] || "",
|
|
7675
7729
|
[r]
|
|
7676
7730
|
), U];
|
|
7677
|
-
},
|
|
7731
|
+
}, bc = ({
|
|
7678
7732
|
className: e,
|
|
7679
7733
|
isCapabilitiesSuccess: t,
|
|
7680
7734
|
capabilities: r
|
|
7681
7735
|
}) => {
|
|
7682
|
-
const [s, n] =
|
|
7736
|
+
const [s, n] = Sc(), a = s(n.Logo) || "prose-h1:text-copy-medium prose-h2:text-copy-medium text-copy-medium";
|
|
7683
7737
|
return /* @__PURE__ */ E(
|
|
7684
7738
|
"div",
|
|
7685
7739
|
{
|
|
@@ -7689,7 +7743,7 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7689
7743
|
"flex items-center justify-center"
|
|
7690
7744
|
),
|
|
7691
7745
|
children: [
|
|
7692
|
-
/* @__PURE__ */ c("div", { className: m("basis-1/4", a), children: /* @__PURE__ */ c(
|
|
7746
|
+
/* @__PURE__ */ c("div", { className: m("basis-1/4", a), children: /* @__PURE__ */ c(co, {}) }),
|
|
7693
7747
|
/* @__PURE__ */ E(
|
|
7694
7748
|
"div",
|
|
7695
7749
|
{
|
|
@@ -7704,15 +7758,15 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7704
7758
|
),
|
|
7705
7759
|
children: [
|
|
7706
7760
|
/* @__PURE__ */ c("h1", { children: L }),
|
|
7707
|
-
/* @__PURE__ */ c("h2", { children:
|
|
7761
|
+
/* @__PURE__ */ c("h2", { children: ic })
|
|
7708
7762
|
]
|
|
7709
7763
|
}
|
|
7710
7764
|
)
|
|
7711
7765
|
]
|
|
7712
7766
|
}
|
|
7713
7767
|
);
|
|
7714
|
-
},
|
|
7715
|
-
const { login: e, logoutReason: t, loginWithPasskey: r } =
|
|
7768
|
+
}, vc = () => {
|
|
7769
|
+
const { login: e, logoutReason: t, loginWithPasskey: r } = xs(), [s, n] = X(""), [a, i] = X(""), [o, l] = X(!0), [f, d] = X({
|
|
7716
7770
|
username: "",
|
|
7717
7771
|
password: ""
|
|
7718
7772
|
}), h = async (u) => {
|
|
@@ -7724,17 +7778,17 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7724
7778
|
}, 500);
|
|
7725
7779
|
}), A(() => {
|
|
7726
7780
|
t && i(t);
|
|
7727
|
-
}, [t]), /* @__PURE__ */ E("main", { className:
|
|
7781
|
+
}, [t]), /* @__PURE__ */ E("main", { className: Bs({ extraClass: "mt-5" }), children: [
|
|
7728
7782
|
/* @__PURE__ */ c(
|
|
7729
7783
|
"div",
|
|
7730
7784
|
{
|
|
7731
|
-
className:
|
|
7785
|
+
className: Fs({
|
|
7732
7786
|
extraClass: "rounded-md pb-10"
|
|
7733
7787
|
}),
|
|
7734
|
-
children: /* @__PURE__ */ c(
|
|
7788
|
+
children: /* @__PURE__ */ c(bc, {})
|
|
7735
7789
|
}
|
|
7736
7790
|
),
|
|
7737
|
-
/* @__PURE__ */ c("form", { className: "mt-5", onSubmit: h, children: /* @__PURE__ */ c(
|
|
7791
|
+
/* @__PURE__ */ c("form", { className: "mt-5", onSubmit: h, children: /* @__PURE__ */ c(Go, { alignHorizontal: "center", children: /* @__PURE__ */ c(be, { span: 6, children: /* @__PURE__ */ E(Ko, { mode: "dark", children: [
|
|
7738
7792
|
/* @__PURE__ */ c(be, { span: 12, className: "mt-7", children: a && /* @__PURE__ */ c("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: a }) }),
|
|
7739
7793
|
/* @__PURE__ */ c(be, { span: 12, children: /* @__PURE__ */ c(
|
|
7740
7794
|
nr,
|
|
@@ -7758,7 +7812,7 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7758
7812
|
}
|
|
7759
7813
|
) }),
|
|
7760
7814
|
/* @__PURE__ */ c(be, { span: 12, children: /* @__PURE__ */ c(
|
|
7761
|
-
|
|
7815
|
+
tn,
|
|
7762
7816
|
{
|
|
7763
7817
|
className: "mt-7",
|
|
7764
7818
|
required: !0,
|
|
@@ -7768,14 +7822,14 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7768
7822
|
mode: "dark",
|
|
7769
7823
|
focusMode: "light",
|
|
7770
7824
|
name: "password",
|
|
7771
|
-
label:
|
|
7825
|
+
label: lc,
|
|
7772
7826
|
rightElement: /* @__PURE__ */ c(
|
|
7773
7827
|
Ge,
|
|
7774
7828
|
{
|
|
7775
7829
|
focusMode: "light",
|
|
7776
7830
|
mode: "dark",
|
|
7777
7831
|
label: o ? "Show" : "Hide",
|
|
7778
|
-
children: o ? /* @__PURE__ */ c(
|
|
7832
|
+
children: o ? /* @__PURE__ */ c(ho, {}) : /* @__PURE__ */ c(lo, {})
|
|
7779
7833
|
}
|
|
7780
7834
|
),
|
|
7781
7835
|
onMaskChange: l,
|
|
@@ -7790,7 +7844,7 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7790
7844
|
}
|
|
7791
7845
|
) }),
|
|
7792
7846
|
/* @__PURE__ */ c(be, { span: 12, children: /* @__PURE__ */ c(
|
|
7793
|
-
|
|
7847
|
+
Ys,
|
|
7794
7848
|
{
|
|
7795
7849
|
mode: "dark",
|
|
7796
7850
|
focusMode: "light",
|
|
@@ -7798,10 +7852,10 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7798
7852
|
noBorder: !0,
|
|
7799
7853
|
type: "submit",
|
|
7800
7854
|
className: "mt-7",
|
|
7801
|
-
children:
|
|
7855
|
+
children: oc
|
|
7802
7856
|
}
|
|
7803
7857
|
) }),
|
|
7804
|
-
!
|
|
7858
|
+
!Ks() && /* @__PURE__ */ E(Vr, { children: [
|
|
7805
7859
|
/* @__PURE__ */ c(be, { span: 12, children: /* @__PURE__ */ c("div", { className: "text-center text-copy-light mt-2 mb-2", children: "or" }) }),
|
|
7806
7860
|
/* @__PURE__ */ c(be, { span: 12, children: /* @__PURE__ */ c(
|
|
7807
7861
|
Ge,
|
|
@@ -7811,256 +7865,260 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7811
7865
|
focusMode: "light",
|
|
7812
7866
|
fullWidth: !0,
|
|
7813
7867
|
className: "mb-4",
|
|
7814
|
-
labelRight:
|
|
7868
|
+
labelRight: cc,
|
|
7815
7869
|
onClick: r,
|
|
7816
|
-
children: /* @__PURE__ */ c(
|
|
7870
|
+
children: /* @__PURE__ */ c(uo, { size: "size-7" })
|
|
7817
7871
|
}
|
|
7818
7872
|
) })
|
|
7819
7873
|
] })
|
|
7820
7874
|
] }) }) }) })
|
|
7821
7875
|
] });
|
|
7822
|
-
},
|
|
7876
|
+
}, Tc = new URL(document.location.href).searchParams, Br = !!Tc.get("debug") || !1, Ic = nn(() => import(
|
|
7823
7877
|
/* webpackChunkName: "LazyApp" */
|
|
7824
|
-
"./App.
|
|
7825
|
-
).then((e) => e.App)),
|
|
7878
|
+
"./App.BtzZ2vTv.js"
|
|
7879
|
+
).then((e) => e.App)), _c = new Dn(), Kr = ({
|
|
7826
7880
|
isComponent: e,
|
|
7827
7881
|
headerHeight: t
|
|
7828
7882
|
}) => {
|
|
7829
|
-
const { isAuthenticated: r, isLoading: s, user: n, getAccessToken: a } =
|
|
7830
|
-
return s ? /* @__PURE__ */ c("div", {}) : r ? /* @__PURE__ */ c(
|
|
7831
|
-
|
|
7883
|
+
const { isAuthenticated: r, isLoading: s, user: n, getAccessToken: a } = xs();
|
|
7884
|
+
return s ? /* @__PURE__ */ c("div", {}) : r ? /* @__PURE__ */ c(sn, { fallback: /* @__PURE__ */ c("div", {}), children: /* @__PURE__ */ c($n, { client: _c, children: /* @__PURE__ */ c(
|
|
7885
|
+
ao,
|
|
7832
7886
|
{
|
|
7833
7887
|
user: n?.username,
|
|
7834
7888
|
getAccessToken: a,
|
|
7835
|
-
children: /* @__PURE__ */ c(
|
|
7889
|
+
children: /* @__PURE__ */ c(Ic, { isComponent: e, headerHeight: t })
|
|
7836
7890
|
}
|
|
7837
|
-
) }) }) : /* @__PURE__ */ c(
|
|
7838
|
-
},
|
|
7891
|
+
) }) }) : /* @__PURE__ */ c(vc, {});
|
|
7892
|
+
}, Ac = ({
|
|
7839
7893
|
isComponent: e = !1,
|
|
7840
7894
|
headerHeight: t = 0,
|
|
7841
|
-
domain: r =
|
|
7895
|
+
domain: r = Hs,
|
|
7842
7896
|
extraProps: s
|
|
7843
|
-
}) => (
|
|
7897
|
+
}) => (dt && console.info(
|
|
7844
7898
|
`==> [${Date.now()}] Bootstrapping SassySaint Client with props: `,
|
|
7845
7899
|
{ isComponent: e, domain: r, headerHeight: t, extraProps: s }
|
|
7846
7900
|
), A(() => {
|
|
7847
|
-
e ||
|
|
7901
|
+
e || $s().catch((n) => {
|
|
7848
7902
|
console.error("[SW] Failed to register service worker:", n);
|
|
7849
7903
|
});
|
|
7850
|
-
}, [e]),
|
|
7851
|
-
|
|
7904
|
+
}, [e]), dt ? /* @__PURE__ */ c(
|
|
7905
|
+
Cr,
|
|
7852
7906
|
{
|
|
7853
|
-
clientId:
|
|
7907
|
+
clientId: kr,
|
|
7854
7908
|
domain: r,
|
|
7855
|
-
debug:
|
|
7909
|
+
debug: Br,
|
|
7856
7910
|
endpoint: process.env.PUBLIC_AUTH_SERVER_URL,
|
|
7857
|
-
children: /* @__PURE__ */ c(
|
|
7911
|
+
children: /* @__PURE__ */ c(Kr, { isComponent: e, headerHeight: t })
|
|
7858
7912
|
}
|
|
7859
|
-
) : /* @__PURE__ */ c(
|
|
7860
|
-
|
|
7913
|
+
) : /* @__PURE__ */ c(Cr, { clientId: kr, domain: r, debug: Br, children: /* @__PURE__ */ c(Kr, { isComponent: e, headerHeight: t }) })), fd = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ c(
|
|
7914
|
+
Ac,
|
|
7861
7915
|
{
|
|
7862
7916
|
isComponent: !0,
|
|
7863
7917
|
domain: e,
|
|
7864
7918
|
headerHeight: t,
|
|
7865
|
-
extraProps: [
|
|
7919
|
+
extraProps: [hn, fn]
|
|
7866
7920
|
}
|
|
7867
7921
|
);
|
|
7868
7922
|
export {
|
|
7869
|
-
|
|
7870
|
-
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
|
|
7874
|
-
|
|
7875
|
-
|
|
7876
|
-
|
|
7877
|
-
|
|
7878
|
-
|
|
7879
|
-
|
|
7880
|
-
|
|
7881
|
-
|
|
7882
|
-
|
|
7883
|
-
|
|
7923
|
+
Bu as ABOUT_TITLE,
|
|
7924
|
+
Yc as ACTION_RESET_PROMPT,
|
|
7925
|
+
Wc as ACTION_SEARCH,
|
|
7926
|
+
jc as ACTION_SORT,
|
|
7927
|
+
Qc as ACTION_TOGGLE_PROMPT,
|
|
7928
|
+
rd as APP_CLASSNAME,
|
|
7929
|
+
fc as APP_SET_FOOTER_HEIGHT,
|
|
7930
|
+
hc as APP_SET_FOOTER_POSITION,
|
|
7931
|
+
yc as APP_SET_FULL_SCREEN,
|
|
7932
|
+
pc as APP_SET_OLED_MODE,
|
|
7933
|
+
mc as APP_SET_THEME_MODE,
|
|
7934
|
+
gc as APP_SET_THEME_PALETTE,
|
|
7935
|
+
Ec as AppContext,
|
|
7936
|
+
Ys as Button,
|
|
7937
|
+
$o as ButtonCopy,
|
|
7884
7938
|
Ge as ButtonIcon,
|
|
7885
|
-
|
|
7886
|
-
|
|
7887
|
-
|
|
7888
|
-
|
|
7889
|
-
|
|
7890
|
-
|
|
7891
|
-
|
|
7892
|
-
|
|
7893
|
-
|
|
7894
|
-
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
|
|
7904
|
-
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
|
|
7916
|
-
|
|
7917
|
-
|
|
7918
|
-
|
|
7919
|
-
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
|
|
7925
|
-
|
|
7926
|
-
|
|
7927
|
-
|
|
7928
|
-
|
|
7929
|
-
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
|
|
7933
|
-
|
|
7934
|
-
|
|
7935
|
-
|
|
7936
|
-
|
|
7937
|
-
|
|
7938
|
-
|
|
7939
|
-
|
|
7940
|
-
|
|
7941
|
-
|
|
7942
|
-
|
|
7943
|
-
|
|
7944
|
-
|
|
7945
|
-
|
|
7946
|
-
|
|
7947
|
-
|
|
7948
|
-
|
|
7949
|
-
|
|
7950
|
-
|
|
7951
|
-
|
|
7952
|
-
|
|
7953
|
-
|
|
7954
|
-
|
|
7955
|
-
Jc as
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
Zc as
|
|
7960
|
-
|
|
7961
|
-
|
|
7962
|
-
|
|
7963
|
-
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
7967
|
-
|
|
7968
|
-
|
|
7939
|
+
Ho as ButtonSort_private,
|
|
7940
|
+
od as CARDS,
|
|
7941
|
+
Qu as CLIPBOARD_PROMPT,
|
|
7942
|
+
Ko as Card,
|
|
7943
|
+
hd as ChatContext,
|
|
7944
|
+
ml as DEFAULT_ICON_ACTION_SIZE,
|
|
7945
|
+
qc as ERROR_MESSAGE,
|
|
7946
|
+
cd as FOOTER_BOTTOM,
|
|
7947
|
+
Yu as FOOTER_DISCLAIMERS,
|
|
7948
|
+
dc as FOOTER_TOP,
|
|
7949
|
+
Fu as HISTORY_TITLE,
|
|
7950
|
+
ud as HistoryContext,
|
|
7951
|
+
fl as INFINITE_SCROLL_LIMIT,
|
|
7952
|
+
hl as INFINITE_SCROLL_THRESHOLD,
|
|
7953
|
+
bl as INPUT_BOTTOM_OFFSET,
|
|
7954
|
+
Il as INPUT_BOTTOM_OFFSET_EXTRA,
|
|
7955
|
+
Tl as INPUT_BOTTOM_OFFSET_IPAD,
|
|
7956
|
+
vl as INPUT_BOTTOM_OFFSET_IPHONE,
|
|
7957
|
+
Gu as INPUT_PLACEHOLDER_TEXT_AFTERNOON,
|
|
7958
|
+
ju as INPUT_PLACEHOLDER_TEXT_DEFAULT,
|
|
7959
|
+
zu as INPUT_PLACEHOLDER_TEXT_EVENING,
|
|
7960
|
+
Ku as INPUT_PLACEHOLDER_TEXT_IN_SESSION,
|
|
7961
|
+
Vu as INPUT_PLACEHOLDER_TEXT_MORNING,
|
|
7962
|
+
qu as INPUT_PLACEHOLDER_TEXT_NIGHT,
|
|
7963
|
+
Wu as INPUT_PLACEHOLDER_TEXT_TODAY,
|
|
7964
|
+
Wl as IconAddLight,
|
|
7965
|
+
jl as IconAnthropic,
|
|
7966
|
+
Ql as IconBack,
|
|
7967
|
+
Yl as IconBookSparklesLight,
|
|
7968
|
+
Jl as IconChart,
|
|
7969
|
+
Xl as IconClose,
|
|
7970
|
+
Zl as IconCloseLight,
|
|
7971
|
+
io as IconCopied,
|
|
7972
|
+
oo as IconCopy,
|
|
7973
|
+
eu as IconDelete,
|
|
7974
|
+
tu as IconEdit,
|
|
7975
|
+
ru as IconEditLight,
|
|
7976
|
+
su as IconEditUser,
|
|
7977
|
+
nu as IconGoogleGemini,
|
|
7978
|
+
au as IconHistory,
|
|
7979
|
+
iu as IconInfo,
|
|
7980
|
+
ou as IconLightBulbLight,
|
|
7981
|
+
cu as IconLockedLight,
|
|
7982
|
+
lu as IconMagic,
|
|
7983
|
+
uu as IconNext,
|
|
7984
|
+
du as IconOpenAI,
|
|
7985
|
+
uo as IconPasskey,
|
|
7986
|
+
hu as IconPrevious,
|
|
7987
|
+
fu as IconProfile,
|
|
7988
|
+
pu as IconProofread,
|
|
7989
|
+
yu as IconRestore,
|
|
7990
|
+
mu as IconRewrite,
|
|
7991
|
+
gu as IconSearch,
|
|
7992
|
+
Eu as IconSelected,
|
|
7993
|
+
wu as IconSendLight,
|
|
7994
|
+
Su as IconSettings,
|
|
7995
|
+
bu as IconSliders,
|
|
7996
|
+
vu as IconStarInCircle,
|
|
7997
|
+
Tu as IconStarInCircleLight,
|
|
7998
|
+
_u as IconUnSelected,
|
|
7999
|
+
Iu as IconUnlockedLight,
|
|
8000
|
+
Fc as K,
|
|
8001
|
+
Go as L,
|
|
8002
|
+
ll as LOCAL_STORAGE_CHAT_ID,
|
|
8003
|
+
sl as LOCAL_STORAGE_FAVORITES_ONLY,
|
|
8004
|
+
dl as LOCAL_STORAGE_FULL_SCREEN,
|
|
8005
|
+
ul as LOCAL_STORAGE_OLED_MODE,
|
|
8006
|
+
Ls as LOCAL_STORAGE_PREFIX,
|
|
8007
|
+
ol as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
|
|
8008
|
+
cl as LOCAL_STORAGE_REASONING_DISCLOSURE,
|
|
8009
|
+
Jc as LOCAL_STORAGE_SEARCH,
|
|
8010
|
+
Xc as LOCAL_STORAGE_SORT,
|
|
8011
|
+
rl as LOCAL_STORAGE_SORT_MEMORY_COLUMN,
|
|
8012
|
+
tl as LOCAL_STORAGE_SORT_MEMORY_DIRECTION,
|
|
8013
|
+
Zc as LOCAL_STORAGE_SORT_TIMESTAMP,
|
|
8014
|
+
el as LOCAL_STORAGE_SORT_TOKEN_USAGE,
|
|
8015
|
+
il as LOCAL_STORAGE_USAGE_SELECTED_MONTH,
|
|
8016
|
+
al as LOCAL_STORAGE_USAGE_TIME_RANGE,
|
|
8017
|
+
nl as LOCAL_STORAGE_USAGE_VIEW_MODE,
|
|
8018
|
+
Du as LOG_OUT,
|
|
8019
|
+
Zs as LiveRegion,
|
|
8020
|
+
bc as Logo,
|
|
8021
|
+
ad as MONTHS,
|
|
8022
|
+
Uu as PROFILE_TITLE,
|
|
8023
|
+
Ju as PROMPTS_DESCRIPTION,
|
|
8024
|
+
pl as PROMPT_CLASSNAME,
|
|
8025
|
+
yl as PROMPT_EDITABLE_AREA_CLASSNAME,
|
|
8026
|
+
dd as PromptsContext,
|
|
7969
8027
|
V as SERVICE_TYPES,
|
|
7970
|
-
|
|
7971
|
-
|
|
7972
|
-
|
|
7973
|
-
|
|
7974
|
-
|
|
7975
|
-
|
|
7976
|
-
|
|
7977
|
-
|
|
7978
|
-
|
|
7979
|
-
|
|
8028
|
+
Hu as SETTINGS_TITLE,
|
|
8029
|
+
fd as SassySaint,
|
|
8030
|
+
et as TIME_RANGES,
|
|
8031
|
+
id as TIME_RANGE_LABELS,
|
|
8032
|
+
td as TOAST_CACHE_DISABLED,
|
|
8033
|
+
ed as TOAST_CACHE_ENABLED,
|
|
8034
|
+
Zu as TOAST_CHAT_DELETED,
|
|
8035
|
+
Xu as TOAST_PROVIDER_CHANGED,
|
|
8036
|
+
sd as TRIMESTERS,
|
|
8037
|
+
nd as TRIMESTERS_SHORT,
|
|
7980
8038
|
nr as TextInput,
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
|
|
7986
|
-
|
|
8039
|
+
Mc as U,
|
|
8040
|
+
El as UI_BUTTON_SCROLL_BUFFER,
|
|
8041
|
+
wl as UI_DEFAULT_MAIN_HEIGHT,
|
|
8042
|
+
Sl as UI_DEFAULT_MAIN_HEIGHT_IPHONE,
|
|
8043
|
+
gl as UI_FOOTER_BUFFER,
|
|
8044
|
+
$u as USAGE_TITLE,
|
|
7987
8045
|
L as V,
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
|
|
7992
|
-
|
|
7993
|
-
|
|
7994
|
-
|
|
7995
|
-
|
|
7996
|
-
|
|
7997
|
-
|
|
7998
|
-
|
|
7999
|
-
|
|
8000
|
-
|
|
8001
|
-
|
|
8046
|
+
Uc as W,
|
|
8047
|
+
yt as a,
|
|
8048
|
+
ld as appReducer,
|
|
8049
|
+
ro as applyOledMode,
|
|
8050
|
+
to as canEvaluateModels,
|
|
8051
|
+
Zi as convertCamelCaseToReadable,
|
|
8052
|
+
Qi as debounce,
|
|
8053
|
+
an as e,
|
|
8054
|
+
uc as e$1,
|
|
8055
|
+
Al as getCacheInfo,
|
|
8056
|
+
Fi as getCurrentGeoLocation,
|
|
8057
|
+
Cu as getHotkeyHandler,
|
|
8058
|
+
Bs as getLayoutPaddingClass,
|
|
8059
|
+
Fs as getMessageContaintWrapperClass,
|
|
8002
8060
|
ue as graphQLRequest,
|
|
8003
|
-
|
|
8061
|
+
_l as handleServiceWorkerToggle,
|
|
8004
8062
|
zt as i,
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
8009
|
-
|
|
8063
|
+
dt as isDev,
|
|
8064
|
+
Xi as isPWAMode,
|
|
8065
|
+
Vs as isProbablyMobile,
|
|
8066
|
+
Ji as isProbablyiPad,
|
|
8067
|
+
Yi as isProbablyiPhone,
|
|
8010
8068
|
Kt as isServiceWorkerEnabled,
|
|
8011
|
-
|
|
8012
|
-
Ue as it,
|
|
8069
|
+
Ks as isTauri,
|
|
8013
8070
|
be as j,
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
8022
|
-
|
|
8023
|
-
|
|
8071
|
+
Hc as j$1,
|
|
8072
|
+
$c as k,
|
|
8073
|
+
xs as n,
|
|
8074
|
+
kc as n$1,
|
|
8075
|
+
qi as numberFormatter,
|
|
8076
|
+
Pc as o,
|
|
8077
|
+
Bi as obfuscate,
|
|
8078
|
+
Nc as p,
|
|
8079
|
+
ji as pluralize,
|
|
8080
|
+
Vi as renderDataAsList,
|
|
8024
8081
|
qt as s,
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
|
|
8036
|
-
|
|
8037
|
-
|
|
8038
|
-
|
|
8039
|
-
|
|
8040
|
-
|
|
8041
|
-
|
|
8042
|
-
|
|
8043
|
-
|
|
8044
|
-
|
|
8045
|
-
|
|
8082
|
+
so as serverUrl,
|
|
8083
|
+
Cl as setNewProvider,
|
|
8084
|
+
Ol as setUserPlan,
|
|
8085
|
+
Ue as st,
|
|
8086
|
+
Ki as unObfuscate,
|
|
8087
|
+
Pl as useChangelogs,
|
|
8088
|
+
xl as useChat,
|
|
8089
|
+
Ml as useChatsHistory,
|
|
8090
|
+
Ul as useChatsUsage,
|
|
8091
|
+
Au as useClickOutside,
|
|
8092
|
+
Kl as useDeleteAllActiveMemories,
|
|
8093
|
+
Vl as useDeleteAllExpiredMemories,
|
|
8094
|
+
Dl as useDeleteChat,
|
|
8095
|
+
Bl as useDeleteMemory,
|
|
8096
|
+
ql as useEntitlements,
|
|
8097
|
+
Gl as useExpiredMemories,
|
|
8098
|
+
Ru as useHaptic,
|
|
8099
|
+
Ou as useHotkeys,
|
|
8100
|
+
Pu as useInViewport,
|
|
8101
|
+
ku as useInterval,
|
|
8102
|
+
Nu as useLocalStorage,
|
|
8103
|
+
js as useMergeRefs,
|
|
8046
8104
|
le as useQueryClient,
|
|
8047
|
-
|
|
8048
|
-
|
|
8049
|
-
|
|
8050
|
-
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
|
|
8060
|
-
|
|
8061
|
-
|
|
8062
|
-
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
-
|
|
8105
|
+
rt as useResizeObserver,
|
|
8106
|
+
zl as useRestoreMemory,
|
|
8107
|
+
Ll as useSaveChat,
|
|
8108
|
+
kl as useServerCapabilities,
|
|
8109
|
+
Sc as useTheme,
|
|
8110
|
+
$l as useToggleFavoriteChat,
|
|
8111
|
+
Mu as useUncontrolled,
|
|
8112
|
+
Qs as useUniqueId,
|
|
8113
|
+
Fl as useUpdateMemory,
|
|
8114
|
+
Nl as useUserChatStats,
|
|
8115
|
+
Hl as useUserMemories,
|
|
8116
|
+
no as useUserPreferences,
|
|
8117
|
+
xu as useViewportSize,
|
|
8118
|
+
Lu as useVisualViewportSize,
|
|
8119
|
+
Rl as utilities,
|
|
8120
|
+
Lc as v,
|
|
8121
|
+
Dc as w,
|
|
8122
|
+
un as x,
|
|
8123
|
+
xc as y
|
|
8066
8124
|
};
|