@versini/sassysaint 5.1.7 → 5.3.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/{App.UNweennI.js → App.DRTN2bgD.js} +431 -394
- package/dist/chunks/LazyHeader.5TbeOkDb.js +2756 -0
- package/dist/chunks/{LazyMarkdownWithExtra.DcgRg4l3.js → LazyMarkdownWithExtra.BHaS-6A0.js} +1 -1
- package/dist/chunks/{LazyMessageAssistant.Df46XIMv.js → LazyMessageAssistant.s5h7NaV1.js} +4 -4
- package/dist/chunks/{index.DpYYn2Ap.js → index.CKHEQpgF.js} +184 -182
- package/dist/chunks/{index.B6C-bgBL.js → index.Ck-_31wH.js} +63 -91
- package/dist/chunks/{index.jf7dGfT1.C4ay3jrh.js → index.jf7dGfT1.B5RD15ln.js} +4 -4
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +5 -5
- package/dist/chunks/LazyHeader.DddGp99j.js +0 -2035
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as l, jsxs as I, Fragment as ye } from "react/jsx-runtime";
|
|
2
|
-
import O, { createContext as lr, useReducer as
|
|
2
|
+
import O, { createContext as lr, useReducer as St, useRef as L, useCallback as q, useEffect as Q, useContext as Ze, useSyncExternalStore as dr, useId as kt, useState as j, useLayoutEffect as ct, useMemo as _t, lazy as Nt, Suspense as Rt } from "react";
|
|
3
3
|
import f from "clsx";
|
|
4
4
|
var ur = Object.defineProperty, mr = (e, t, r) => t in e ? ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, He = (e, t, r) => mr(e, typeof t != "symbol" ? t + "" : t, r);
|
|
5
5
|
/*!
|
|
@@ -42,11 +42,11 @@ function xt(e) {
|
|
|
42
42
|
function Ct(e) {
|
|
43
43
|
return e === "localhost" || /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e);
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
let x = class extends Error {
|
|
46
46
|
constructor({ message: t, code: r, cause: a, name: n }) {
|
|
47
47
|
super(t, { cause: a }), this.name = n ?? a.name, this.code = r;
|
|
48
48
|
}
|
|
49
|
-
}
|
|
49
|
+
};
|
|
50
50
|
function hr({ error: e, options: t }) {
|
|
51
51
|
var a, n;
|
|
52
52
|
const { publicKey: r } = t;
|
|
@@ -176,7 +176,7 @@ async function fr(e) {
|
|
|
176
176
|
try {
|
|
177
177
|
u = o.getPublicKeyAlgorithm();
|
|
178
178
|
} catch (c) {
|
|
179
|
-
|
|
179
|
+
Ge("getPublicKeyAlgorithm()", c);
|
|
180
180
|
}
|
|
181
181
|
let h;
|
|
182
182
|
if (typeof o.getPublicKey == "function")
|
|
@@ -184,14 +184,14 @@ async function fr(e) {
|
|
|
184
184
|
const c = o.getPublicKey();
|
|
185
185
|
c !== null && (h = H(c));
|
|
186
186
|
} catch (c) {
|
|
187
|
-
|
|
187
|
+
Ge("getPublicKey()", c);
|
|
188
188
|
}
|
|
189
189
|
let p;
|
|
190
190
|
if (typeof o.getAuthenticatorData == "function")
|
|
191
191
|
try {
|
|
192
192
|
p = H(o.getAuthenticatorData());
|
|
193
193
|
} catch (c) {
|
|
194
|
-
|
|
194
|
+
Ge("getAuthenticatorData()", c);
|
|
195
195
|
}
|
|
196
196
|
return {
|
|
197
197
|
id: a,
|
|
@@ -209,7 +209,7 @@ async function fr(e) {
|
|
|
209
209
|
authenticatorAttachment: Pt(r.authenticatorAttachment)
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Ge(e, t) {
|
|
213
213
|
console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
|
|
214
214
|
`, t);
|
|
215
215
|
}
|
|
@@ -405,14 +405,14 @@ class vr extends te {
|
|
|
405
405
|
return "ERR_JOSE_ALG_NOT_ALLOWED";
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
let
|
|
408
|
+
let G = class extends te {
|
|
409
409
|
constructor() {
|
|
410
410
|
super(...arguments), this.code = "ERR_JOSE_NOT_SUPPORTED";
|
|
411
411
|
}
|
|
412
412
|
static get code() {
|
|
413
413
|
return "ERR_JOSE_NOT_SUPPORTED";
|
|
414
414
|
}
|
|
415
|
-
},
|
|
415
|
+
}, k = class extends te {
|
|
416
416
|
constructor() {
|
|
417
417
|
super(...arguments), this.code = "ERR_JWS_INVALID";
|
|
418
418
|
}
|
|
@@ -441,10 +441,10 @@ function J(e, t = "algorithm.name") {
|
|
|
441
441
|
function Te(e, t) {
|
|
442
442
|
return e.name === t;
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function We(e) {
|
|
445
445
|
return parseInt(e.name.slice(4), 10);
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function Sr(e) {
|
|
448
448
|
switch (e) {
|
|
449
449
|
case "ES256":
|
|
450
450
|
return "P-256";
|
|
@@ -456,7 +456,7 @@ function kr(e) {
|
|
|
456
456
|
throw new Error("unreachable");
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
|
-
function
|
|
459
|
+
function kr(e, t) {
|
|
460
460
|
if (t.length && !t.some((r) => e.usages.includes(r))) {
|
|
461
461
|
let r = "CryptoKey does not support this operation, its usages must include ";
|
|
462
462
|
if (t.length > 2) {
|
|
@@ -474,7 +474,7 @@ function _r(e, t, ...r) {
|
|
|
474
474
|
if (!Te(e.algorithm, "HMAC"))
|
|
475
475
|
throw J("HMAC");
|
|
476
476
|
const a = parseInt(t.slice(2), 10);
|
|
477
|
-
if (
|
|
477
|
+
if (We(e.algorithm.hash) !== a)
|
|
478
478
|
throw J(`SHA-${a}`, "algorithm.hash");
|
|
479
479
|
break;
|
|
480
480
|
}
|
|
@@ -484,7 +484,7 @@ function _r(e, t, ...r) {
|
|
|
484
484
|
if (!Te(e.algorithm, "RSASSA-PKCS1-v1_5"))
|
|
485
485
|
throw J("RSASSA-PKCS1-v1_5");
|
|
486
486
|
const a = parseInt(t.slice(2), 10);
|
|
487
|
-
if (
|
|
487
|
+
if (We(e.algorithm.hash) !== a)
|
|
488
488
|
throw J(`SHA-${a}`, "algorithm.hash");
|
|
489
489
|
break;
|
|
490
490
|
}
|
|
@@ -494,7 +494,7 @@ function _r(e, t, ...r) {
|
|
|
494
494
|
if (!Te(e.algorithm, "RSA-PSS"))
|
|
495
495
|
throw J("RSA-PSS");
|
|
496
496
|
const a = parseInt(t.slice(2), 10);
|
|
497
|
-
if (
|
|
497
|
+
if (We(e.algorithm.hash) !== a)
|
|
498
498
|
throw J(`SHA-${a}`, "algorithm.hash");
|
|
499
499
|
break;
|
|
500
500
|
}
|
|
@@ -508,7 +508,7 @@ function _r(e, t, ...r) {
|
|
|
508
508
|
case "ES512": {
|
|
509
509
|
if (!Te(e.algorithm, "ECDSA"))
|
|
510
510
|
throw J("ECDSA");
|
|
511
|
-
const a =
|
|
511
|
+
const a = Sr(t);
|
|
512
512
|
if (e.algorithm.namedCurve !== a)
|
|
513
513
|
throw J(a, "algorithm.namedCurve");
|
|
514
514
|
break;
|
|
@@ -516,7 +516,7 @@ function _r(e, t, ...r) {
|
|
|
516
516
|
default:
|
|
517
517
|
throw new TypeError("CryptoKey does not support this operation");
|
|
518
518
|
}
|
|
519
|
-
|
|
519
|
+
kr(e, r);
|
|
520
520
|
}
|
|
521
521
|
function Lt(e, t, ...r) {
|
|
522
522
|
var a;
|
|
@@ -606,7 +606,7 @@ function Dr(e) {
|
|
|
606
606
|
}, r = e.d ? ["decrypt", "unwrapKey"] : ["encrypt", "wrapKey"];
|
|
607
607
|
break;
|
|
608
608
|
default:
|
|
609
|
-
throw new
|
|
609
|
+
throw new G('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
|
|
610
610
|
}
|
|
611
611
|
break;
|
|
612
612
|
}
|
|
@@ -628,7 +628,7 @@ function Dr(e) {
|
|
|
628
628
|
t = { name: "ECDH", namedCurve: e.crv }, r = e.d ? ["deriveBits"] : [];
|
|
629
629
|
break;
|
|
630
630
|
default:
|
|
631
|
-
throw new
|
|
631
|
+
throw new G('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
|
|
632
632
|
}
|
|
633
633
|
break;
|
|
634
634
|
}
|
|
@@ -644,12 +644,12 @@ function Dr(e) {
|
|
|
644
644
|
t = { name: e.crv }, r = e.d ? ["deriveBits"] : [];
|
|
645
645
|
break;
|
|
646
646
|
default:
|
|
647
|
-
throw new
|
|
647
|
+
throw new G('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
|
|
648
648
|
}
|
|
649
649
|
break;
|
|
650
650
|
}
|
|
651
651
|
default:
|
|
652
|
-
throw new
|
|
652
|
+
throw new G('Invalid or unsupported JWK "kty" (Key Type) Parameter value');
|
|
653
653
|
}
|
|
654
654
|
return { algorithm: t, keyUsages: r };
|
|
655
655
|
}
|
|
@@ -664,20 +664,20 @@ const Kt = async (e) => {
|
|
|
664
664
|
return delete n.alg, delete n.use, Le.subtle.importKey("jwk", n, ...a);
|
|
665
665
|
}, Ht = (e) => X(e);
|
|
666
666
|
let ae, ne;
|
|
667
|
-
const
|
|
667
|
+
const Gt = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Oe = async (e, t, r, a, n = !1) => {
|
|
668
668
|
let o = e.get(t);
|
|
669
669
|
if (o != null && o[a])
|
|
670
670
|
return o[a];
|
|
671
671
|
const s = await Kt({ ...r, alg: a });
|
|
672
672
|
return n && Object.freeze(t), o ? o[a] = s : e.set(t, { [a]: s }), s;
|
|
673
673
|
}, $r = (e, t) => {
|
|
674
|
-
if (
|
|
674
|
+
if (Gt(e)) {
|
|
675
675
|
let r = e.export({ format: "jwk" });
|
|
676
676
|
return delete r.d, delete r.dp, delete r.dq, delete r.p, delete r.q, delete r.qi, r.k ? Ht(r.k) : (ne || (ne = /* @__PURE__ */ new WeakMap()), Oe(ne, e, r, t));
|
|
677
677
|
}
|
|
678
678
|
return he(e) ? e.k ? X(e.k) : (ne || (ne = /* @__PURE__ */ new WeakMap()), Oe(ne, e, e, t, !0)) : e;
|
|
679
679
|
}, Lr = (e, t) => {
|
|
680
|
-
if (
|
|
680
|
+
if (Gt(e)) {
|
|
681
681
|
let r = e.export({ format: "jwk" });
|
|
682
682
|
return r.k ? Ht(r.k) : (ae || (ae = /* @__PURE__ */ new WeakMap()), Oe(ae, e, r, t));
|
|
683
683
|
}
|
|
@@ -706,7 +706,7 @@ const Wt = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
|
|
|
706
706
|
case z(e, [43, 101, 113]):
|
|
707
707
|
return "Ed448";
|
|
708
708
|
default:
|
|
709
|
-
throw new
|
|
709
|
+
throw new G("Invalid or unsupported EC Key Curve or OKP Key Sub Type");
|
|
710
710
|
}
|
|
711
711
|
}, Ur = async (e, t, r, a, n) => {
|
|
712
712
|
let o, s;
|
|
@@ -752,7 +752,7 @@ const Wt = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
|
|
|
752
752
|
o = { name: ut(i) }, s = ["verify"];
|
|
753
753
|
break;
|
|
754
754
|
default:
|
|
755
|
-
throw new
|
|
755
|
+
throw new G('Invalid or unsupported "alg" (Algorithm) value');
|
|
756
756
|
}
|
|
757
757
|
return Le.subtle.importKey(t, i, o, !1, s);
|
|
758
758
|
}, Kr = (e, t, r) => Ur(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
|
|
@@ -761,7 +761,7 @@ async function Hr(e, t, r) {
|
|
|
761
761
|
throw new TypeError('"spki" must be SPKI formatted string');
|
|
762
762
|
return Kr(e, t);
|
|
763
763
|
}
|
|
764
|
-
async function
|
|
764
|
+
async function Gr(e, t) {
|
|
765
765
|
if (!me(e))
|
|
766
766
|
throw new TypeError("JWK must be an object");
|
|
767
767
|
switch (t || (t = e.alg), e.kty) {
|
|
@@ -771,12 +771,12 @@ async function Wr(e, t) {
|
|
|
771
771
|
return X(e.k);
|
|
772
772
|
case "RSA":
|
|
773
773
|
if (e.oth !== void 0)
|
|
774
|
-
throw new
|
|
774
|
+
throw new G('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');
|
|
775
775
|
case "EC":
|
|
776
776
|
case "OKP":
|
|
777
777
|
return Kt({ ...e, alg: t });
|
|
778
778
|
default:
|
|
779
|
-
throw new
|
|
779
|
+
throw new G('Unsupported "kty" (Key Type) Parameter value');
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
782
|
const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], Xe = (e, t, r) => {
|
|
@@ -788,7 +788,7 @@ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], Xe = (e, t, r) =>
|
|
|
788
788
|
if (t.alg !== void 0 && t.alg !== e)
|
|
789
789
|
throw new TypeError(`Invalid key for this operation, when present its alg must be ${e}`);
|
|
790
790
|
return !0;
|
|
791
|
-
},
|
|
791
|
+
}, Wr = (e, t, r, a) => {
|
|
792
792
|
if (!(t instanceof Uint8Array)) {
|
|
793
793
|
if (a && he(t)) {
|
|
794
794
|
if (Pr(t) && Xe(e, t, r))
|
|
@@ -800,7 +800,7 @@ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], Xe = (e, t, r) =>
|
|
|
800
800
|
if (t.type !== "secret")
|
|
801
801
|
throw new TypeError(`${de(t)} instances for symmetric algorithms must be of type "secret"`);
|
|
802
802
|
}
|
|
803
|
-
},
|
|
803
|
+
}, Br = (e, t, r, a) => {
|
|
804
804
|
if (a && he(t))
|
|
805
805
|
switch (r) {
|
|
806
806
|
case "sign":
|
|
@@ -825,11 +825,11 @@ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], Xe = (e, t, r) =>
|
|
|
825
825
|
if (t.algorithm && r === "encrypt" && t.type === "private")
|
|
826
826
|
throw new TypeError(`${de(t)} instances for asymmetric algorithm encryption must be of type "public"`);
|
|
827
827
|
};
|
|
828
|
-
function
|
|
829
|
-
t.startsWith("HS") || t === "dir" || t.startsWith("PBES2") || /^A\d{3}(?:GCM)?KW$/.test(t) ?
|
|
828
|
+
function Wt(e, t, r, a) {
|
|
829
|
+
t.startsWith("HS") || t === "dir" || t.startsWith("PBES2") || /^A\d{3}(?:GCM)?KW$/.test(t) ? Wr(t, r, a, e) : Br(t, r, a, e);
|
|
830
830
|
}
|
|
831
|
-
|
|
832
|
-
const mt =
|
|
831
|
+
Wt.bind(void 0, !1);
|
|
832
|
+
const mt = Wt.bind(void 0, !0);
|
|
833
833
|
function Vr(e, t, r, a, n) {
|
|
834
834
|
if (n.crit !== void 0 && (a == null ? void 0 : a.crit) === void 0)
|
|
835
835
|
throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');
|
|
@@ -841,7 +841,7 @@ function Vr(e, t, r, a, n) {
|
|
|
841
841
|
r !== void 0 ? o = new Map([...Object.entries(r), ...t.entries()]) : o = t;
|
|
842
842
|
for (const s of a.crit) {
|
|
843
843
|
if (!o.has(s))
|
|
844
|
-
throw new
|
|
844
|
+
throw new G(`Extension Header Parameter "${s}" is not recognized`);
|
|
845
845
|
if (n[s] === void 0)
|
|
846
846
|
throw new e(`Extension Header Parameter "${s}" is missing`);
|
|
847
847
|
if (o.get(s) && a[s] === void 0)
|
|
@@ -877,7 +877,7 @@ function Fr(e, t) {
|
|
|
877
877
|
case "EdDSA":
|
|
878
878
|
return { name: t.name };
|
|
879
879
|
default:
|
|
880
|
-
throw new
|
|
880
|
+
throw new G(`alg ${e} is not supported either by JOSE or your javascript runtime`);
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
883
|
async function Yr(e, t, r) {
|
|
@@ -902,53 +902,53 @@ const zr = async (e, t, r, a) => {
|
|
|
902
902
|
};
|
|
903
903
|
async function jr(e, t, r) {
|
|
904
904
|
if (!me(e))
|
|
905
|
-
throw new
|
|
905
|
+
throw new k("Flattened JWS must be an object");
|
|
906
906
|
if (e.protected === void 0 && e.header === void 0)
|
|
907
|
-
throw new
|
|
907
|
+
throw new k('Flattened JWS must have either of the "protected" or "header" members');
|
|
908
908
|
if (e.protected !== void 0 && typeof e.protected != "string")
|
|
909
|
-
throw new
|
|
909
|
+
throw new k("JWS Protected Header incorrect type");
|
|
910
910
|
if (e.payload === void 0)
|
|
911
|
-
throw new
|
|
911
|
+
throw new k("JWS Payload missing");
|
|
912
912
|
if (typeof e.signature != "string")
|
|
913
|
-
throw new
|
|
913
|
+
throw new k("JWS Signature missing or incorrect type");
|
|
914
914
|
if (e.header !== void 0 && !me(e.header))
|
|
915
|
-
throw new
|
|
915
|
+
throw new k("JWS Unprotected Header incorrect type");
|
|
916
916
|
let a = {};
|
|
917
917
|
if (e.protected)
|
|
918
918
|
try {
|
|
919
919
|
const y = X(e.protected);
|
|
920
920
|
a = JSON.parse(be.decode(y));
|
|
921
921
|
} catch {
|
|
922
|
-
throw new
|
|
922
|
+
throw new k("JWS Protected Header is invalid");
|
|
923
923
|
}
|
|
924
924
|
if (!Nr(a, e.header))
|
|
925
|
-
throw new
|
|
925
|
+
throw new k("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
|
|
926
926
|
const n = {
|
|
927
927
|
...a,
|
|
928
928
|
...e.header
|
|
929
|
-
}, o = Vr(
|
|
929
|
+
}, o = Vr(k, /* @__PURE__ */ new Map([["b64", !0]]), r == null ? void 0 : r.crit, a, n);
|
|
930
930
|
let s = !0;
|
|
931
931
|
if (o.has("b64") && (s = a.b64, typeof s != "boolean"))
|
|
932
|
-
throw new
|
|
932
|
+
throw new k('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
|
|
933
933
|
const { alg: i } = n;
|
|
934
934
|
if (typeof i != "string" || !i)
|
|
935
|
-
throw new
|
|
935
|
+
throw new k('JWS "alg" (Algorithm) Header Parameter missing or invalid');
|
|
936
936
|
const u = r && Jr("algorithms", r.algorithms);
|
|
937
937
|
if (u && !u.has(i))
|
|
938
938
|
throw new vr('"alg" (Algorithm) Header Parameter value not allowed');
|
|
939
939
|
if (s) {
|
|
940
940
|
if (typeof e.payload != "string")
|
|
941
|
-
throw new
|
|
941
|
+
throw new k("JWS Payload must be a string");
|
|
942
942
|
} else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
|
|
943
|
-
throw new
|
|
943
|
+
throw new k("JWS Payload must be a string or an Uint8Array instance");
|
|
944
944
|
let h = !1;
|
|
945
|
-
typeof t == "function" ? (t = await t(a, e), h = !0, mt(i, t, "verify"), he(t) && (t = await
|
|
945
|
+
typeof t == "function" ? (t = await t(a, e), h = !0, mt(i, t, "verify"), he(t) && (t = await Gr(t, i))) : mt(i, t, "verify");
|
|
946
946
|
const p = Tr(we.encode(e.protected ?? ""), we.encode("."), typeof e.payload == "string" ? we.encode(e.payload) : e.payload);
|
|
947
947
|
let m;
|
|
948
948
|
try {
|
|
949
949
|
m = X(e.signature);
|
|
950
950
|
} catch {
|
|
951
|
-
throw new
|
|
951
|
+
throw new k("Failed to base64url decode the signature");
|
|
952
952
|
}
|
|
953
953
|
if (!await zr(i, t, m, p))
|
|
954
954
|
throw new Ar();
|
|
@@ -957,7 +957,7 @@ async function jr(e, t, r) {
|
|
|
957
957
|
try {
|
|
958
958
|
c = X(e.payload);
|
|
959
959
|
} catch {
|
|
960
|
-
throw new
|
|
960
|
+
throw new k("Failed to base64url decode the payload");
|
|
961
961
|
}
|
|
962
962
|
else typeof e.payload == "string" ? c = we.encode(e.payload) : c = e.payload;
|
|
963
963
|
const d = { payload: c };
|
|
@@ -965,14 +965,14 @@ async function jr(e, t, r) {
|
|
|
965
965
|
}
|
|
966
966
|
async function qr(e, t, r) {
|
|
967
967
|
if (e instanceof Uint8Array && (e = be.decode(e)), typeof e != "string")
|
|
968
|
-
throw new
|
|
968
|
+
throw new k("Compact JWS must be a string or Uint8Array");
|
|
969
969
|
const { 0: a, 1: n, 2: o, length: s } = e.split(".");
|
|
970
970
|
if (s !== 3)
|
|
971
|
-
throw new
|
|
971
|
+
throw new k("Invalid Compact JWS");
|
|
972
972
|
const i = await jr({ payload: n, protected: a, signature: o }, t, r), u = { payload: i.payload, protectedHeader: i.protectedHeader };
|
|
973
973
|
return typeof t == "function" ? { ...u, key: i.key } : u;
|
|
974
974
|
}
|
|
975
|
-
const Xr = (e) => Math.floor(e.getTime() / 1e3),
|
|
975
|
+
const Xr = (e) => Math.floor(e.getTime() / 1e3), Bt = 60, Vt = Bt * 60, tt = Vt * 24, Qr = tt * 7, Zr = tt * 365.25, ea = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, ht = (e) => {
|
|
976
976
|
const t = ea.exec(e);
|
|
977
977
|
if (!t || t[4] && t[1])
|
|
978
978
|
throw new TypeError("Invalid time period format");
|
|
@@ -991,7 +991,7 @@ const Xr = (e) => Math.floor(e.getTime() / 1e3), Gt = 60, Vt = Gt * 60, tt = Vt
|
|
|
991
991
|
case "min":
|
|
992
992
|
case "mins":
|
|
993
993
|
case "m":
|
|
994
|
-
n = Math.round(r *
|
|
994
|
+
n = Math.round(r * Bt);
|
|
995
995
|
break;
|
|
996
996
|
case "hour":
|
|
997
997
|
case "hours":
|
|
@@ -1127,8 +1127,8 @@ const fe = async (e) => {
|
|
|
1127
1127
|
}
|
|
1128
1128
|
};
|
|
1129
1129
|
var A = [];
|
|
1130
|
-
for (var
|
|
1131
|
-
A.push((
|
|
1130
|
+
for (var Be = 0; Be < 256; ++Be)
|
|
1131
|
+
A.push((Be + 256).toString(16).slice(1));
|
|
1132
1132
|
function ia(e, t = 0) {
|
|
1133
1133
|
return (A[e[t + 0]] + A[e[t + 1]] + A[e[t + 2]] + A[e[t + 3]] + "-" + A[e[t + 4]] + A[e[t + 5]] + "-" + A[e[t + 6]] + A[e[t + 7]] + "-" + A[e[t + 8]] + A[e[t + 9]] + "-" + A[e[t + 10]] + A[e[t + 11]] + A[e[t + 12]] + A[e[t + 13]] + A[e[t + 14]] + A[e[t + 15]]).toLowerCase();
|
|
1134
1134
|
}
|
|
@@ -1205,11 +1205,11 @@ function ve({
|
|
|
1205
1205
|
}
|
|
1206
1206
|
}, [e, t]), [r ? JSON.parse(r) : null, a, n, o];
|
|
1207
1207
|
}
|
|
1208
|
-
var
|
|
1208
|
+
var S = [];
|
|
1209
1209
|
for (var Ve = 0; Ve < 256; ++Ve)
|
|
1210
|
-
|
|
1210
|
+
S.push((Ve + 256).toString(16).slice(1));
|
|
1211
1211
|
function ya(e, t = 0) {
|
|
1212
|
-
return (
|
|
1212
|
+
return (S[e[t + 0]] + S[e[t + 1]] + S[e[t + 2]] + S[e[t + 3]] + "-" + S[e[t + 4]] + S[e[t + 5]] + "-" + S[e[t + 6]] + S[e[t + 7]] + "-" + S[e[t + 8]] + S[e[t + 9]] + "-" + S[e[t + 10]] + S[e[t + 11]] + S[e[t + 12]] + S[e[t + 13]] + S[e[t + 14]] + S[e[t + 15]]).toLowerCase();
|
|
1213
1213
|
}
|
|
1214
1214
|
var Ae, ba = new Uint8Array(16);
|
|
1215
1215
|
function Ea() {
|
|
@@ -1231,7 +1231,7 @@ function Je(e, t, r) {
|
|
|
1231
1231
|
const oe = "Your session has expired. For your security, please log in again to continue.", Ta = "Your session has been successfully terminated.", Fe = "Login failed. Please try again.", Ia = "Error getting access token, please re-authenticate.", va = "You forgot to wrap your component in <AuthProvider>.", Pe = {
|
|
1232
1232
|
dev: "https://auth.gizmette.local.com:3003",
|
|
1233
1233
|
prod: "https://mylogin.gizmette.com/auth"
|
|
1234
|
-
},
|
|
1234
|
+
}, Se = "@@auth@@", ge = "LOADING", Ne = "LOGIN", Ft = "LOGOUT", Ee = "success", W = "failure", Yt = "include", zt = "POST", jt = "application/json", ke = {
|
|
1235
1235
|
GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
|
|
1236
1236
|
$clientId: String!,
|
|
1237
1237
|
$username: String!,
|
|
@@ -1314,19 +1314,19 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1314
1314
|
}`
|
|
1315
1315
|
}, se = {
|
|
1316
1316
|
GET_REGISTRATION_OPTIONS: {
|
|
1317
|
-
schema:
|
|
1317
|
+
schema: ke.GET_REGISTRATION_OPTIONS,
|
|
1318
1318
|
method: "getPasskeyRegistrationOptions"
|
|
1319
1319
|
},
|
|
1320
1320
|
VERIFY_REGISTRATION: {
|
|
1321
|
-
schema:
|
|
1321
|
+
schema: ke.VERIFY_REGISTRATION,
|
|
1322
1322
|
method: "verifyPasskeyRegistration"
|
|
1323
1323
|
},
|
|
1324
1324
|
GET_AUTHENTICATION_OPTIONS: {
|
|
1325
|
-
schema:
|
|
1325
|
+
schema: ke.GET_AUTHENTICATION_OPTIONS,
|
|
1326
1326
|
method: "getPasskeyAuthenticationOptions"
|
|
1327
1327
|
},
|
|
1328
1328
|
VERIFY_AUTHENTICATION: {
|
|
1329
|
-
schema:
|
|
1329
|
+
schema: ke.VERIFY_AUTHENTICATION,
|
|
1330
1330
|
method: "verifyPasskeyAuthentication"
|
|
1331
1331
|
}
|
|
1332
1332
|
}, ie = async ({
|
|
@@ -1353,14 +1353,14 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1353
1353
|
}
|
|
1354
1354
|
);
|
|
1355
1355
|
if (o.status !== 200)
|
|
1356
|
-
return { status:
|
|
1356
|
+
return { status: W, data: [] };
|
|
1357
1357
|
const { data: s } = await o.json();
|
|
1358
1358
|
return {
|
|
1359
1359
|
status: Ee,
|
|
1360
1360
|
data: s[t.method]
|
|
1361
1361
|
};
|
|
1362
1362
|
} catch (n) {
|
|
1363
|
-
return console.error(n), { status:
|
|
1363
|
+
return console.error(n), { status: W, data: [] };
|
|
1364
1364
|
}
|
|
1365
1365
|
}, Me = async ({
|
|
1366
1366
|
type: e,
|
|
@@ -1381,14 +1381,14 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1381
1381
|
}
|
|
1382
1382
|
);
|
|
1383
1383
|
if (a.status !== 200)
|
|
1384
|
-
return { status:
|
|
1384
|
+
return { status: W, data: [] };
|
|
1385
1385
|
const { data: n } = await a.json();
|
|
1386
1386
|
return {
|
|
1387
1387
|
status: Ee,
|
|
1388
1388
|
data: n || []
|
|
1389
1389
|
};
|
|
1390
1390
|
} catch (a) {
|
|
1391
|
-
return console.error(a), { status:
|
|
1391
|
+
return console.error(a), { status: W, data: [] };
|
|
1392
1392
|
}
|
|
1393
1393
|
}, Aa = process.env.NODE_ENV === "production", qt = !Aa, Xt = {
|
|
1394
1394
|
isLoading: !0,
|
|
@@ -1397,14 +1397,14 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1397
1397
|
logoutReason: "",
|
|
1398
1398
|
debug: !1,
|
|
1399
1399
|
authenticationType: ""
|
|
1400
|
-
},
|
|
1400
|
+
}, Sa = (e) => {
|
|
1401
1401
|
try {
|
|
1402
1402
|
const t = sa(e);
|
|
1403
1403
|
return t ? t[_.USER_ID_KEY] : "";
|
|
1404
1404
|
} catch {
|
|
1405
1405
|
return "";
|
|
1406
1406
|
}
|
|
1407
|
-
},
|
|
1407
|
+
}, ka = async ({
|
|
1408
1408
|
userId: e,
|
|
1409
1409
|
clientId: t,
|
|
1410
1410
|
domain: r,
|
|
@@ -1421,11 +1421,11 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1421
1421
|
domain: r,
|
|
1422
1422
|
idToken: a
|
|
1423
1423
|
}
|
|
1424
|
-
})) == null ? void 0 : n.status) ||
|
|
1424
|
+
})) == null ? void 0 : n.status) || W
|
|
1425
1425
|
};
|
|
1426
1426
|
} catch {
|
|
1427
1427
|
return {
|
|
1428
|
-
status:
|
|
1428
|
+
status: W
|
|
1429
1429
|
};
|
|
1430
1430
|
}
|
|
1431
1431
|
}, _a = async ({
|
|
@@ -1492,12 +1492,12 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1492
1492
|
status: Ee,
|
|
1493
1493
|
data: n.data.code
|
|
1494
1494
|
} : {
|
|
1495
|
-
status:
|
|
1495
|
+
status: W,
|
|
1496
1496
|
data: ""
|
|
1497
1497
|
};
|
|
1498
1498
|
} catch {
|
|
1499
1499
|
return {
|
|
1500
|
-
status:
|
|
1500
|
+
status: W,
|
|
1501
1501
|
data: ""
|
|
1502
1502
|
};
|
|
1503
1503
|
}
|
|
@@ -1580,11 +1580,11 @@ class xa {
|
|
|
1580
1580
|
newAccessToken: s.accessToken,
|
|
1581
1581
|
newRefreshToken: s.refreshToken
|
|
1582
1582
|
}) : {
|
|
1583
|
-
status:
|
|
1583
|
+
status: W
|
|
1584
1584
|
};
|
|
1585
1585
|
} else
|
|
1586
1586
|
return {
|
|
1587
|
-
status:
|
|
1587
|
+
status: W
|
|
1588
1588
|
};
|
|
1589
1589
|
}
|
|
1590
1590
|
}
|
|
@@ -1634,19 +1634,19 @@ const Ca = (e) => q(
|
|
|
1634
1634
|
domain: a = "",
|
|
1635
1635
|
debug: n = !1
|
|
1636
1636
|
}) => {
|
|
1637
|
-
const [o, s] =
|
|
1637
|
+
const [o, s] = St(Pa, {
|
|
1638
1638
|
...Xt,
|
|
1639
1639
|
debug: n
|
|
1640
1640
|
}), i = Ca(n), u = L(!1), [h, p, , m] = ve({
|
|
1641
|
-
key: `${
|
|
1641
|
+
key: `${Se}::${r}::@@user@@`
|
|
1642
1642
|
}), [c, d, , y] = ve({
|
|
1643
|
-
key: `${
|
|
1643
|
+
key: `${Se}::${r}::@@access@@`
|
|
1644
1644
|
}), [b, v, , w] = ve(
|
|
1645
1645
|
{
|
|
1646
|
-
key: `${
|
|
1646
|
+
key: `${Se}::${r}::@@refresh@@`
|
|
1647
1647
|
}
|
|
1648
1648
|
), [C, D, , M] = ve({
|
|
1649
|
-
key: `${
|
|
1649
|
+
key: `${Se}::${r}::@@nonce@@`
|
|
1650
1650
|
}), Z = new xa(c, b), N = q(() => {
|
|
1651
1651
|
i("removeLocalStorage: removing local storage"), m(), y(), w(), M();
|
|
1652
1652
|
}, [
|
|
@@ -1655,7 +1655,7 @@ const Ca = (e) => q(
|
|
|
1655
1655
|
M,
|
|
1656
1656
|
w,
|
|
1657
1657
|
i
|
|
1658
|
-
]),
|
|
1658
|
+
]), B = q(
|
|
1659
1659
|
(g) => {
|
|
1660
1660
|
i(
|
|
1661
1661
|
"removeStateAndLocalStorage: removing state and local storage with reason: ",
|
|
@@ -1671,17 +1671,17 @@ const Ca = (e) => q(
|
|
|
1671
1671
|
), P = q(
|
|
1672
1672
|
async (g) => {
|
|
1673
1673
|
i("invalidateAndLogout: invalidating and logging out");
|
|
1674
|
-
const { user: T } = o, E = (T == null ? void 0 : T.userId) ||
|
|
1674
|
+
const { user: T } = o, E = (T == null ? void 0 : T.userId) || Sa(h);
|
|
1675
1675
|
E || i(
|
|
1676
1676
|
"invalidateAndLogout: user cannot be identified, logging out without userId"
|
|
1677
|
-
), await
|
|
1677
|
+
), await ka({
|
|
1678
1678
|
userId: E,
|
|
1679
1679
|
clientId: r,
|
|
1680
1680
|
domain: a,
|
|
1681
1681
|
idToken: h
|
|
1682
|
-
}),
|
|
1682
|
+
}), B(g || oe);
|
|
1683
1683
|
},
|
|
1684
|
-
[h, o, r, a,
|
|
1684
|
+
[h, o, r, a, B, i]
|
|
1685
1685
|
);
|
|
1686
1686
|
Q(() => {
|
|
1687
1687
|
if (!u.current)
|
|
@@ -1740,7 +1740,7 @@ const Ca = (e) => q(
|
|
|
1740
1740
|
email: re.email
|
|
1741
1741
|
}
|
|
1742
1742
|
}
|
|
1743
|
-
}), !0) : (
|
|
1743
|
+
}), !0) : (B(Fe), !1);
|
|
1744
1744
|
}
|
|
1745
1745
|
return !1;
|
|
1746
1746
|
}, pe = async (g) => {
|
|
@@ -1854,7 +1854,7 @@ const Ca = (e) => q(
|
|
|
1854
1854
|
email: E.data.email
|
|
1855
1855
|
}
|
|
1856
1856
|
}
|
|
1857
|
-
}), !0) : (
|
|
1857
|
+
}), !0) : (B(Fe), !1);
|
|
1858
1858
|
} catch {
|
|
1859
1859
|
return await ie({
|
|
1860
1860
|
accessToken: c,
|
|
@@ -1868,7 +1868,7 @@ const Ca = (e) => q(
|
|
|
1868
1868
|
domain: a,
|
|
1869
1869
|
sessionExpiration: t
|
|
1870
1870
|
}
|
|
1871
|
-
}),
|
|
1871
|
+
}), B(Fe), !1;
|
|
1872
1872
|
}
|
|
1873
1873
|
return !1;
|
|
1874
1874
|
};
|
|
@@ -1887,11 +1887,11 @@ const Ca = (e) => q(
|
|
|
1887
1887
|
children: e
|
|
1888
1888
|
}
|
|
1889
1889
|
) });
|
|
1890
|
-
}, rt = (e = Qt) => Ze(e),
|
|
1890
|
+
}, rt = (e = Qt) => Ze(e), go = "user", fo = "assistant", yo = "system", bo = "internal", Eo = "hidden", wo = "I'm having trouble right now. Please try again later.", Ye = "OpenAI", To = "OpenAI", Io = "Anthropic", vo = 128e3, Ao = "action-message", So = "action-reset", ko = "action-model", _o = "action-restore", No = "action-streaming", Ro = "action-engine", xo = "action-search", Co = "action-sort", Oo = "action-toggle-tag", Po = "action-reset-tags", ze = {
|
|
1891
1891
|
SUMMARIZE_ARTICLE: "summarize-article",
|
|
1892
1892
|
PROOFREAD_CONTENT: "proofread-content",
|
|
1893
1893
|
REPHRASE_CONTENT: "rephrase-content"
|
|
1894
|
-
},
|
|
1894
|
+
}, Do = {
|
|
1895
1895
|
[ze.SUMMARIZE_ARTICLE]: {
|
|
1896
1896
|
label: "Summarize...",
|
|
1897
1897
|
content: "Summarize this article: "
|
|
@@ -1901,7 +1901,7 @@ const Ca = (e) => q(
|
|
|
1901
1901
|
content: "Proofread this: "
|
|
1902
1902
|
},
|
|
1903
1903
|
[ze.REPHRASE_CONTENT]: { label: "Rephrase...", content: "Rephrase this: " }
|
|
1904
|
-
},
|
|
1904
|
+
}, $o = "sassy-saint-", Lo = "details", Mo = "search", Uo = "sort", Ko = "summarize-article", Ho = "proofread-content", Go = "rephrase-content", Wo = "engine-toggle", Bo = "==stats==", $a = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Tt = (e) => Number.isFinite(e) ? e : 0;
|
|
1905
1905
|
function La(e) {
|
|
1906
1906
|
return {
|
|
1907
1907
|
days: Math.trunc(e / 864e5),
|
|
@@ -1936,8 +1936,8 @@ function Ua(e) {
|
|
|
1936
1936
|
}
|
|
1937
1937
|
throw new TypeError("Expected a finite number or bigint");
|
|
1938
1938
|
}
|
|
1939
|
-
const Ka = (e) => e === 0 || e === 0n, Ha = (e, t) => t === 1 || t === 1n ? e : `${e}s`,
|
|
1940
|
-
function
|
|
1939
|
+
const Ka = (e) => e === 0 || e === 0n, Ha = (e, t) => t === 1 || t === 1n ? e : `${e}s`, Ga = 1e-7, Wa = 24n * 60n * 60n * 1000n;
|
|
1940
|
+
function Ba(e, t) {
|
|
1941
1941
|
const r = typeof e == "bigint";
|
|
1942
1942
|
if (!r && !Number.isFinite(e))
|
|
1943
1943
|
throw new TypeError("Expected a finite number or bigint");
|
|
@@ -1946,7 +1946,7 @@ function Ga(e, t) {
|
|
|
1946
1946
|
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);
|
|
1947
1947
|
let n = [];
|
|
1948
1948
|
const o = (p, m) => {
|
|
1949
|
-
const c = Math.floor(p * 10 ** m +
|
|
1949
|
+
const c = Math.floor(p * 10 ** m + Ga);
|
|
1950
1950
|
return (Math.round(c) / 10 ** m).toFixed(m);
|
|
1951
1951
|
}, s = (p, m, c, d) => {
|
|
1952
1952
|
if (!((n.length === 0 || !t.colonNotation) && Ka(p) && !(t.colonNotation && c === "m"))) {
|
|
@@ -1972,7 +1972,7 @@ function Ga(e, t) {
|
|
|
1972
1972
|
);
|
|
1973
1973
|
}
|
|
1974
1974
|
} else {
|
|
1975
|
-
const p = (r ? Number(e %
|
|
1975
|
+
const p = (r ? Number(e % Wa) : e) / 1e3 % 60, m = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, c = o(p, m), d = t.keepDecimalsOnWholeSeconds ? c : c.replace(/\.0+$/, "");
|
|
1976
1976
|
s(Number.parseFloat(d), "second", "s", d);
|
|
1977
1977
|
}
|
|
1978
1978
|
if (n.length === 0)
|
|
@@ -1980,7 +1980,7 @@ function Ga(e, t) {
|
|
|
1980
1980
|
const h = t.colonNotation ? ":" : " ";
|
|
1981
1981
|
return typeof t.unitCount == "number" && (n = n.slice(0, Math.max(t.unitCount, 1))), a + n.join(h);
|
|
1982
1982
|
}
|
|
1983
|
-
const Va = process.env.NODE_ENV === "production", at = !Va, Ja = at ? "gizmette.local.com" : "gizmette.com",
|
|
1983
|
+
const Va = process.env.NODE_ENV === "production", at = !Va, Ja = at ? "gizmette.local.com" : "gizmette.com", Vo = (e, t) => e.length > t ? e.substring(0, t) + "..." : e, Jo = async () => {
|
|
1984
1984
|
const e = {
|
|
1985
1985
|
/**
|
|
1986
1986
|
* A boolean value that indicates the application would
|
|
@@ -2029,11 +2029,11 @@ const Va = process.env.NODE_ENV === "production", at = !Va, Ja = at ? "gizmette.
|
|
|
2029
2029
|
e
|
|
2030
2030
|
);
|
|
2031
2031
|
});
|
|
2032
|
-
},
|
|
2032
|
+
}, Fo = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */ I("div", { className: "flex items-center justify-between", children: [
|
|
2033
2033
|
/* @__PURE__ */ l("dt", { className: "my-1 inline-block font-bold text-copy-dark dark:text-copy-lighter", children: r }),
|
|
2034
2034
|
/* @__PURE__ */ l("dd", { className: "my-1 inline-block", children: t[r] })
|
|
2035
2035
|
] }) }, `${e}-${r}`)) : null;
|
|
2036
|
-
function
|
|
2036
|
+
function Yo({
|
|
2037
2037
|
data: e,
|
|
2038
2038
|
formatter: t = (r) => r
|
|
2039
2039
|
}) {
|
|
@@ -2045,18 +2045,18 @@ function Jo({
|
|
|
2045
2045
|
);
|
|
2046
2046
|
return t(a ? a / r.length : 0);
|
|
2047
2047
|
}
|
|
2048
|
-
const
|
|
2048
|
+
const zo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, jo = new Intl.NumberFormat("en", {
|
|
2049
2049
|
style: "decimal",
|
|
2050
2050
|
signDisplay: "never",
|
|
2051
2051
|
minimumFractionDigits: 0,
|
|
2052
2052
|
maximumFractionDigits: 0
|
|
2053
|
-
}),
|
|
2053
|
+
}), qo = (e) => e > 0 ? Ba(e, {
|
|
2054
2054
|
secondsDecimalDigits: 2,
|
|
2055
2055
|
unitCount: 2
|
|
2056
2056
|
}) : "N/A", Fa = (e) => f(
|
|
2057
2057
|
"flex-1 space-y-6 overflow-y-auto rounded-md bg-slate-900 px-4 pb-10 text-base leading-6 text-slate-300 shadow-sm sm:text-base sm:leading-7",
|
|
2058
2058
|
e || at ? "pt-4" : "pt-10"
|
|
2059
|
-
),
|
|
2059
|
+
), Xo = (e, t) => t === 1 ? e : `${e}s`, It = "av-button", Ya = (e) => {
|
|
2060
2060
|
let t = "";
|
|
2061
2061
|
if (typeof e == "number" || typeof e == "string")
|
|
2062
2062
|
t = "m-" + e;
|
|
@@ -2464,13 +2464,13 @@ const rn = O.forwardRef(
|
|
|
2464
2464
|
);
|
|
2465
2465
|
rn.displayName = "ButtonSort";
|
|
2466
2466
|
/*!
|
|
2467
|
-
@versini/ui-card v1.0.
|
|
2467
|
+
@versini/ui-card v1.0.9
|
|
2468
2468
|
© 2024 gizmette.com
|
|
2469
2469
|
*/
|
|
2470
2470
|
try {
|
|
2471
2471
|
window.__VERSINI_UI_CARD__ || (window.__VERSINI_UI_CARD__ = {
|
|
2472
|
-
version: "1.0.
|
|
2473
|
-
buildTime: "
|
|
2472
|
+
version: "1.0.9",
|
|
2473
|
+
buildTime: "10/05/2024 07:22 PM EDT",
|
|
2474
2474
|
homepage: "https://github.com/aversini/ui-components",
|
|
2475
2475
|
license: "MIT"
|
|
2476
2476
|
});
|
|
@@ -2478,7 +2478,7 @@ try {
|
|
|
2478
2478
|
}
|
|
2479
2479
|
const Re = "av-card";
|
|
2480
2480
|
function an(e) {
|
|
2481
|
-
const t =
|
|
2481
|
+
const t = kt();
|
|
2482
2482
|
return `${e}${t}`;
|
|
2483
2483
|
}
|
|
2484
2484
|
const nn = (e) => {
|
|
@@ -3008,7 +3008,7 @@ function vn(e) {
|
|
|
3008
3008
|
}), [s, e]), [a, n];
|
|
3009
3009
|
}
|
|
3010
3010
|
function An(e) {
|
|
3011
|
-
const t =
|
|
3011
|
+
const t = kt();
|
|
3012
3012
|
if (!e)
|
|
3013
3013
|
return t;
|
|
3014
3014
|
if (typeof e == "number" || typeof e == "string")
|
|
@@ -3018,7 +3018,7 @@ function An(e) {
|
|
|
3018
3018
|
return typeof r == "number" || typeof r == "string" ? `${a}${r}` : `${a}${t}`;
|
|
3019
3019
|
}
|
|
3020
3020
|
}
|
|
3021
|
-
const ar = "SET_ANNOUNCEMENT", nr = "CLEAR_ANNOUNCEMENT",
|
|
3021
|
+
const ar = "SET_ANNOUNCEMENT", nr = "CLEAR_ANNOUNCEMENT", Sn = {
|
|
3022
3022
|
alert: null,
|
|
3023
3023
|
alertdialog: null,
|
|
3024
3024
|
log: "polite",
|
|
@@ -3026,7 +3026,7 @@ const ar = "SET_ANNOUNCEMENT", nr = "CLEAR_ANNOUNCEMENT", kn = {
|
|
|
3026
3026
|
progressbar: null,
|
|
3027
3027
|
status: "polite",
|
|
3028
3028
|
timer: "assertive"
|
|
3029
|
-
},
|
|
3029
|
+
}, kn = (e, t) => {
|
|
3030
3030
|
switch (t == null ? void 0 : t.type) {
|
|
3031
3031
|
case ar:
|
|
3032
3032
|
return {
|
|
@@ -3099,11 +3099,11 @@ function or({
|
|
|
3099
3099
|
visible: i,
|
|
3100
3100
|
...u
|
|
3101
3101
|
}) {
|
|
3102
|
-
const h = L(), p = L(), [m, c] =
|
|
3102
|
+
const h = L(), p = L(), [m, c] = St(kn, {
|
|
3103
3103
|
announcement: null
|
|
3104
3104
|
});
|
|
3105
3105
|
let d = r;
|
|
3106
|
-
typeof d > "u" && (d = a ?
|
|
3106
|
+
typeof d > "u" && (d = a ? Sn[a] : "assertive"), Q(() => {
|
|
3107
3107
|
Nn({
|
|
3108
3108
|
announcementTimeoutRef: h,
|
|
3109
3109
|
announcementDelay: n,
|
|
@@ -3150,7 +3150,7 @@ const Rn = (e) => {
|
|
|
3150
3150
|
try {
|
|
3151
3151
|
window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
|
|
3152
3152
|
version: "1.4.17",
|
|
3153
|
-
buildTime: "
|
|
3153
|
+
buildTime: "10/05/2024 07:22 PM EDT",
|
|
3154
3154
|
homepage: "https://github.com/aversini/ui-components",
|
|
3155
3155
|
license: "MIT"
|
|
3156
3156
|
});
|
|
@@ -3319,7 +3319,7 @@ const xn = ({
|
|
|
3319
3319
|
size: C = "md",
|
|
3320
3320
|
...D
|
|
3321
3321
|
}, M) => {
|
|
3322
|
-
const [Z, N] = vn(), [
|
|
3322
|
+
const [Z, N] = vn(), [B, P] = j(0), V = An({ id: e, prefix: `${rr}-` }), pe = `${t} error, ${y}`, ee = L(null), R = L(null), $ = {
|
|
3323
3323
|
xs: { label: "-25px", helperText: "30px" },
|
|
3324
3324
|
sm: { label: "-29px", helperText: "34px" },
|
|
3325
3325
|
md: { label: "-33px", helperText: "38px" },
|
|
@@ -3369,7 +3369,7 @@ const xn = ({
|
|
|
3369
3369
|
className: U.input,
|
|
3370
3370
|
...y && { "aria-describedby": `${V}-helper` },
|
|
3371
3371
|
...a && { "aria-invalid": "true" },
|
|
3372
|
-
...b && !n && { style: { paddingRight:
|
|
3372
|
+
...b && !n && { style: { paddingRight: B } },
|
|
3373
3373
|
...D
|
|
3374
3374
|
}
|
|
3375
3375
|
),
|
|
@@ -3439,7 +3439,7 @@ const Mn = 500, Un = 5e3, Kn = 2e4, sr = O.forwardRef(
|
|
|
3439
3439
|
message: `${r} hiding characters`
|
|
3440
3440
|
}), n && n(!0);
|
|
3441
3441
|
}, Kn));
|
|
3442
|
-
},
|
|
3442
|
+
}, B = (R) => {
|
|
3443
3443
|
R.preventDefault();
|
|
3444
3444
|
const $ = !w.current;
|
|
3445
3445
|
w.current = $, N(), y($), v({
|
|
@@ -3477,7 +3477,7 @@ const Mn = 500, Un = 5e3, Kn = 2e4, sr = O.forwardRef(
|
|
|
3477
3477
|
rightElement: O.cloneElement(h, {
|
|
3478
3478
|
ref: c,
|
|
3479
3479
|
label: Z,
|
|
3480
|
-
onClick:
|
|
3480
|
+
onClick: B,
|
|
3481
3481
|
onBlur: P,
|
|
3482
3482
|
disabled: t
|
|
3483
3483
|
}),
|
|
@@ -3498,19 +3498,19 @@ const Mn = 500, Un = 5e3, Kn = 2e4, sr = O.forwardRef(
|
|
|
3498
3498
|
);
|
|
3499
3499
|
sr.displayName = "TextInputMask";
|
|
3500
3500
|
/*!
|
|
3501
|
-
@versini/ui-textinput v1.2.
|
|
3501
|
+
@versini/ui-textinput v1.2.1
|
|
3502
3502
|
© 2024 gizmette.com
|
|
3503
3503
|
*/
|
|
3504
3504
|
try {
|
|
3505
3505
|
window.__VERSINI_UI_TEXTINPUT__ || (window.__VERSINI_UI_TEXTINPUT__ = {
|
|
3506
|
-
version: "1.2.
|
|
3507
|
-
buildTime: "
|
|
3506
|
+
version: "1.2.1",
|
|
3507
|
+
buildTime: "10/05/2024 07:22 PM EDT",
|
|
3508
3508
|
homepage: "https://github.com/aversini/ui-components",
|
|
3509
3509
|
license: "MIT"
|
|
3510
3510
|
});
|
|
3511
3511
|
} catch {
|
|
3512
3512
|
}
|
|
3513
|
-
const Hn = "ASK! ME! ANYTHING!", ir = "Sassy Saint",
|
|
3513
|
+
const Hn = "ASK! ME! ANYTHING!", ir = "Sassy Saint", Gn = "gizmette.com", Wn = "Log in", Bn = "Sign in with a Passkey", Qo = "Log out", Vn = "Password", Jn = "Powered by ", Zo = "Send", es = "Profile", ts = "Statistics", rs = "Chat history", as = "About", ns = "Type your question here", os = "Clear chat", ss = "Cancel chat", is = "N/A", cs = {
|
|
3514
3514
|
TAGS: {
|
|
3515
3515
|
TITLE: "Pre-filled tags",
|
|
3516
3516
|
DESCRIPTION: "Tags are pre-filled buttons available on the main screen, to help you quickly start requests."
|
|
@@ -3607,13 +3607,14 @@ const Fn = "av-footer", Yn = (e) => {
|
|
|
3607
3607
|
version: "",
|
|
3608
3608
|
models: [],
|
|
3609
3609
|
plugins: [],
|
|
3610
|
-
engine: Ye
|
|
3610
|
+
engine: Ye,
|
|
3611
|
+
engines: []
|
|
3611
3612
|
}
|
|
3612
|
-
}),
|
|
3613
|
+
}), ls = O.createContext({
|
|
3613
3614
|
state: { searchString: "", sortedCell: "", sortDirection: "" },
|
|
3614
3615
|
dispatch: () => {
|
|
3615
3616
|
}
|
|
3616
|
-
}),
|
|
3617
|
+
}), ds = O.createContext({
|
|
3617
3618
|
state: { tag: "" },
|
|
3618
3619
|
dispatch: () => {
|
|
3619
3620
|
}
|
|
@@ -3628,7 +3629,7 @@ const Fn = "av-footer", Yn = (e) => {
|
|
|
3628
3629
|
row1: /* @__PURE__ */ I("div", { children: [
|
|
3629
3630
|
ir,
|
|
3630
3631
|
" v",
|
|
3631
|
-
"5.0
|
|
3632
|
+
"5.2.0",
|
|
3632
3633
|
" - ",
|
|
3633
3634
|
Jn,
|
|
3634
3635
|
t && t.engine,
|
|
@@ -3638,14 +3639,14 @@ const Fn = "av-footer", Yn = (e) => {
|
|
|
3638
3639
|
"© ",
|
|
3639
3640
|
(/* @__PURE__ */ new Date()).getFullYear(),
|
|
3640
3641
|
" ",
|
|
3641
|
-
|
|
3642
|
+
Gn
|
|
3642
3643
|
] })
|
|
3643
3644
|
}
|
|
3644
3645
|
);
|
|
3645
3646
|
}, Xn = Nt(
|
|
3646
3647
|
() => import(
|
|
3647
3648
|
/* webpackChunkName: "LazyHeader" */
|
|
3648
|
-
"./LazyHeader.
|
|
3649
|
+
"./LazyHeader.5TbeOkDb.js"
|
|
3649
3650
|
)
|
|
3650
3651
|
), Qn = () => {
|
|
3651
3652
|
const { isAuthenticated: e } = rt();
|
|
@@ -3732,7 +3733,7 @@ const Fn = "av-footer", Yn = (e) => {
|
|
|
3732
3733
|
noBorder: !0,
|
|
3733
3734
|
type: "submit",
|
|
3734
3735
|
className: "mb-4 mt-6",
|
|
3735
|
-
children:
|
|
3736
|
+
children: Wn
|
|
3736
3737
|
}
|
|
3737
3738
|
) })
|
|
3738
3739
|
] }) }) }),
|
|
@@ -3745,7 +3746,7 @@ const Fn = "av-footer", Yn = (e) => {
|
|
|
3745
3746
|
fullWidth: !0,
|
|
3746
3747
|
noBorder: !0,
|
|
3747
3748
|
className: "mb-4 mt-1",
|
|
3748
|
-
labelRight:
|
|
3749
|
+
labelRight: Bn,
|
|
3749
3750
|
onClick: r,
|
|
3750
3751
|
children: /* @__PURE__ */ l(mn, { className: "size-7" })
|
|
3751
3752
|
}
|
|
@@ -3756,80 +3757,81 @@ const Fn = "av-footer", Yn = (e) => {
|
|
|
3756
3757
|
] });
|
|
3757
3758
|
}, eo = new URL(document.location.href).searchParams, to = !!eo.get("debug") || !1, ro = Nt(() => import(
|
|
3758
3759
|
/* webpackChunkName: "LazyApp" */
|
|
3759
|
-
"./App.
|
|
3760
|
+
"./App.DRTN2bgD.js"
|
|
3760
3761
|
).then((e) => e.App)), ao = ({ isComponent: e }) => {
|
|
3761
3762
|
const { isAuthenticated: t } = rt();
|
|
3762
3763
|
return t ? /* @__PURE__ */ l(Rt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(ro, { isComponent: e }) }) : /* @__PURE__ */ l(Zn, {});
|
|
3763
3764
|
}, no = ({
|
|
3764
3765
|
isComponent: e = !1,
|
|
3765
3766
|
domain: t = Ja
|
|
3766
|
-
}) => /* @__PURE__ */ l(ye, { children: /* @__PURE__ */ l(Da, { clientId: $a, domain: t, debug: to, children: /* @__PURE__ */ l(ao, { isComponent: e }) }) }),
|
|
3767
|
+
}) => /* @__PURE__ */ l(ye, { children: /* @__PURE__ */ l(Da, { clientId: $a, domain: t, debug: to, children: /* @__PURE__ */ l(ao, { isComponent: e }) }) }), us = ({ domain: e }) => /* @__PURE__ */ l(no, { isComponent: !0, domain: e });
|
|
3767
3768
|
export {
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3769
|
+
as as ABOUT_TITLE,
|
|
3770
|
+
Ro as ACTION_ENGINE,
|
|
3771
|
+
Ao as ACTION_MESSAGE,
|
|
3771
3772
|
ko as ACTION_MODEL,
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3773
|
+
So as ACTION_RESET,
|
|
3774
|
+
Po as ACTION_RESET_TAGS,
|
|
3775
|
+
_o as ACTION_RESTORE,
|
|
3776
|
+
xo as ACTION_SEARCH,
|
|
3777
|
+
Co as ACTION_SORT,
|
|
3778
|
+
No as ACTION_STREAMING,
|
|
3779
|
+
Oo as ACTION_TOGGLE_TAG,
|
|
3779
3780
|
jn as AppContext,
|
|
3780
3781
|
qn as AppFooter,
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3782
|
+
ss as CANCEL,
|
|
3783
|
+
cs as CARDS,
|
|
3784
|
+
os as CLEAR,
|
|
3784
3785
|
cn as D,
|
|
3785
3786
|
Ye as DEFAULT_AI_ENGINE,
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3787
|
+
Io as ENGINE_ANTHROPIC,
|
|
3788
|
+
To as ENGINE_OPENAI,
|
|
3789
|
+
wo as ERROR_MESSAGE,
|
|
3789
3790
|
ue as G,
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
Mo as
|
|
3797
|
-
|
|
3798
|
-
Ho as
|
|
3799
|
-
|
|
3800
|
-
|
|
3791
|
+
vo as GPT4_MAX_TOKENS,
|
|
3792
|
+
rs as HISTORY_TITLE,
|
|
3793
|
+
ls as HistoryContext,
|
|
3794
|
+
Lo as LOCAL_STORAGE_CHAT_DETAILS,
|
|
3795
|
+
Wo as LOCAL_STORAGE_ENGINE_TOGGLE,
|
|
3796
|
+
$o as LOCAL_STORAGE_PREFIX,
|
|
3797
|
+
Mo as LOCAL_STORAGE_SEARCH,
|
|
3798
|
+
Uo as LOCAL_STORAGE_SORT,
|
|
3799
|
+
Ho as LOCAL_STORAGE_TAG_PROOFREAD,
|
|
3800
|
+
Go as LOCAL_STORAGE_TAG_REPHRASE,
|
|
3801
|
+
Ko as LOCAL_STORAGE_TAG_SUMMARIZE,
|
|
3802
|
+
Qo as LOG_OUT,
|
|
3801
3803
|
Qn as MessagesContainerHeader,
|
|
3802
|
-
|
|
3804
|
+
is as NA,
|
|
3803
3805
|
Qe as O,
|
|
3804
|
-
|
|
3806
|
+
es as PROFILE_TITLE,
|
|
3805
3807
|
er as R,
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3808
|
+
fo as ROLE_ASSISTANT,
|
|
3809
|
+
Eo as ROLE_HIDDEN,
|
|
3810
|
+
bo as ROLE_INTERNAL,
|
|
3811
|
+
yo as ROLE_SYSTEM,
|
|
3812
|
+
go as ROLE_USER,
|
|
3813
|
+
Zo as SEND,
|
|
3814
|
+
ts as STATS,
|
|
3815
|
+
Bo as STATS_SEPARATOR,
|
|
3816
|
+
us as SassySaint,
|
|
3815
3817
|
ze as TAGS,
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3818
|
+
Do as TAG_CONTENT,
|
|
3819
|
+
ns as TYPE_QUESTION,
|
|
3820
|
+
ds as TagsContext,
|
|
3819
3821
|
vt as b,
|
|
3820
3822
|
fn as d,
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
+
qo as durationFormatter,
|
|
3824
|
+
Yo as extractAverage,
|
|
3823
3825
|
Ke as g,
|
|
3824
|
-
|
|
3826
|
+
Jo as getCurrentGeoLocation,
|
|
3825
3827
|
Fa as getMessageContaintWrapperClass,
|
|
3826
|
-
|
|
3828
|
+
zo as isLastMessageFromRole,
|
|
3827
3829
|
le as j,
|
|
3828
3830
|
st as me,
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3831
|
+
jo as numberFormatter,
|
|
3832
|
+
Xo as pluralize,
|
|
3833
|
+
Fo as renderDataAsList,
|
|
3832
3834
|
rt as rn,
|
|
3833
|
-
|
|
3835
|
+
Vo as truncate,
|
|
3834
3836
|
mn as v
|
|
3835
3837
|
};
|