@versini/sassysaint 5.1.6 → 5.2.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.
@@ -176,7 +176,7 @@ async function fr(e) {
176
176
  try {
177
177
  u = o.getPublicKeyAlgorithm();
178
178
  } catch (c) {
179
- We("getPublicKeyAlgorithm()", c);
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
- We("getPublicKey()", c);
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
- We("getAuthenticatorData()", c);
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 We(e, t) {
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,7 +405,7 @@ class vr extends te {
405
405
  return "ERR_JOSE_ALG_NOT_ALLOWED";
406
406
  }
407
407
  }
408
- let W = class extends te {
408
+ let G = class extends te {
409
409
  constructor() {
410
410
  super(...arguments), this.code = "ERR_JOSE_NOT_SUPPORTED";
411
411
  }
@@ -441,7 +441,7 @@ function J(e, t = "algorithm.name") {
441
441
  function Te(e, t) {
442
442
  return e.name === t;
443
443
  }
444
- function Be(e) {
444
+ function We(e) {
445
445
  return parseInt(e.name.slice(4), 10);
446
446
  }
447
447
  function kr(e) {
@@ -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 (Be(e.algorithm.hash) !== a)
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 (Be(e.algorithm.hash) !== a)
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 (Be(e.algorithm.hash) !== a)
497
+ if (We(e.algorithm.hash) !== a)
498
498
  throw J(`SHA-${a}`, "algorithm.hash");
499
499
  break;
500
500
  }
@@ -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 W('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
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 W('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
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 W('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
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 W('Invalid or unsupported JWK "kty" (Key Type) Parameter value');
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 Wt = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Oe = async (e, t, r, a, n = !1) => {
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 (Wt(e)) {
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 (Wt(e)) {
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 W("Invalid or unsupported EC Key Curve or OKP Key Sub Type");
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 W('Invalid or unsupported "alg" (Algorithm) value');
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 Wr(e, t) {
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 W('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');
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 W('Unsupported "kty" (Key Type) Parameter value');
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
- }, Br = (e, t, r, a) => {
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
- }, Gr = (e, t, r, a) => {
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 Bt(e, t, r, a) {
829
- t.startsWith("HS") || t === "dir" || t.startsWith("PBES2") || /^A\d{3}(?:GCM)?KW$/.test(t) ? Br(t, r, a, e) : Gr(t, r, a, e);
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
- Bt.bind(void 0, !1);
832
- const mt = Bt.bind(void 0, !0);
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 W(`Extension Header Parameter "${s}" is not recognized`);
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 W(`alg ${e} is not supported either by JOSE or your javascript runtime`);
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) {
@@ -942,7 +942,7 @@ async function jr(e, t, r) {
942
942
  } else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
943
943
  throw new S("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 Wr(t, i))) : mt(i, t, "verify");
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 {
@@ -972,7 +972,7 @@ async function qr(e, t, r) {
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), Gt = 60, Vt = Gt * 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) => {
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 * Gt);
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 Ge = 0; Ge < 256; ++Ge)
1131
- A.push((Ge + 256).toString(16).slice(1));
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
  }
@@ -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
- }, ke = "@@auth@@", ge = "LOADING", Ne = "LOGIN", Ft = "LOGOUT", Ee = "success", B = "failure", Yt = "include", zt = "POST", jt = "application/json", Se = {
1234
+ }, ke = "@@auth@@", ge = "LOADING", Ne = "LOGIN", Ft = "LOGOUT", Ee = "success", W = "failure", Yt = "include", zt = "POST", jt = "application/json", Se = {
1235
1235
  GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
1236
1236
  $clientId: String!,
1237
1237
  $username: String!,
@@ -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: B, data: [] };
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: B, data: [] };
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: B, data: [] };
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: B, data: [] };
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,
@@ -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) || B
1424
+ })) == null ? void 0 : n.status) || W
1425
1425
  };
1426
1426
  } catch {
1427
1427
  return {
1428
- status: B
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: B,
1495
+ status: W,
1496
1496
  data: ""
1497
1497
  };
1498
1498
  } catch {
1499
1499
  return {
1500
- status: B,
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: B
1583
+ status: W
1584
1584
  };
1585
1585
  } else
1586
1586
  return {
1587
- status: B
1587
+ status: W
1588
1588
  };
1589
1589
  }
1590
1590
  }
@@ -1655,7 +1655,7 @@ const Ca = (e) => q(
1655
1655
  M,
1656
1656
  w,
1657
1657
  i
1658
- ]), G = q(
1658
+ ]), B = q(
1659
1659
  (g) => {
1660
1660
  i(
1661
1661
  "removeStateAndLocalStorage: removing state and local storage with reason: ",
@@ -1679,9 +1679,9 @@ const Ca = (e) => q(
1679
1679
  clientId: r,
1680
1680
  domain: a,
1681
1681
  idToken: h
1682
- }), G(g || oe);
1682
+ }), B(g || oe);
1683
1683
  },
1684
- [h, o, r, a, G, i]
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) : (G(Fe), !1);
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) : (G(Fe), !1);
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
- }), G(Fe), !1;
1871
+ }), B(Fe), !1;
1872
1872
  }
1873
1873
  return !1;
1874
1874
  };
@@ -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
- }, Do = "sassy-saint-", $o = "details", Lo = "search", Mo = "sort", Uo = "summarize-article", Ko = "proofread-content", Ho = "rephrase-content", Wo = "==stats==", $a = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Tt = (e) => Number.isFinite(e) ? e : 0;
1904
+ }, Do = "sassy-saint-", $o = "details", Lo = "search", Mo = "sort", Uo = "summarize-article", Ko = "proofread-content", Ho = "rephrase-content", Go = "engine-toggle", Wo = "==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`, Wa = 1e-7, Ba = 24n * 60n * 60n * 1000n;
1940
- function Ga(e, t) {
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 + Wa);
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 % Ba) : e) / 1e3 % 60, m = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, c = o(p, m), d = t.keepDecimalsOnWholeSeconds ? c : c.replace(/\.0+$/, "");
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", Bo = (e, t) => e.length > t ? e.substring(0, t) + "..." : e, Go = async () => {
1983
+ const Va = process.env.NODE_ENV === "production", at = !Va, Ja = at ? "gizmette.local.com" : "gizmette.com", Bo = (e, t) => e.length > t ? e.substring(0, t) + "..." : e, Vo = 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
- }, Vo = (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: [
2032
+ }, Jo = (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 Jo({
2036
+ function Fo({
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 Fo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, Yo = new Intl.NumberFormat("en", {
2048
+ const Yo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, zo = new Intl.NumberFormat("en", {
2049
2049
  style: "decimal",
2050
2050
  signDisplay: "never",
2051
2051
  minimumFractionDigits: 0,
2052
2052
  maximumFractionDigits: 0
2053
- }), zo = (e) => e > 0 ? Ga(e, {
2053
+ }), jo = (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
- ), jo = (e, t) => t === 1 ? e : `${e}s`, It = "av-button", Ya = (e) => {
2059
+ ), qo = (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;
@@ -3319,7 +3319,7 @@ const xn = ({
3319
3319
  size: C = "md",
3320
3320
  ...D
3321
3321
  }, M) => {
3322
- const [Z, N] = vn(), [G, P] = j(0), V = An({ id: e, prefix: `${rr}-` }), pe = `${t} error, ${y}`, ee = L(null), R = L(null), $ = {
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: G } },
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
- }, G = (R) => {
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: G,
3480
+ onClick: B,
3481
3481
  onBlur: P,
3482
3482
  disabled: t
3483
3483
  }),
@@ -3510,7 +3510,7 @@ try {
3510
3510
  });
3511
3511
  } catch {
3512
3512
  }
3513
- const Hn = "ASK! ME! ANYTHING!", ir = "Sassy Saint", Wn = "gizmette.com", Bn = "Log in", Gn = "Sign in with a Passkey", qo = "Log out", Vn = "Password", Jn = "Powered by ", Xo = "Send", Qo = "Profile", Zo = "Statistics", es = "Chat history", ts = "About", rs = "Type your question here", as = "Clear chat", ns = "Cancel chat", os = "N/A", ss = {
3513
+ const Hn = "ASK! ME! ANYTHING!", ir = "Sassy Saint", Gn = "gizmette.com", Wn = "Log in", Bn = "Sign in with a Passkey", Xo = "Log out", Vn = "Password", Jn = "Powered by ", Qo = "Send", Zo = "Profile", es = "Statistics", ts = "Chat history", rs = "About", as = "Type your question here", ns = "Clear chat", os = "Cancel chat", ss = "N/A", is = {
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
- }), is = O.createContext({
3613
+ }), cs = O.createContext({
3613
3614
  state: { searchString: "", sortedCell: "", sortDirection: "" },
3614
3615
  dispatch: () => {
3615
3616
  }
3616
- }), cs = O.createContext({
3617
+ }), ls = 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.1",
3632
+ "5.1.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
- Wn
3642
+ Gn
3642
3643
  ] })
3643
3644
  }
3644
3645
  );
3645
3646
  }, Xn = Nt(
3646
3647
  () => import(
3647
3648
  /* webpackChunkName: "LazyHeader" */
3648
- "./LazyHeader.DPlhG-1q.js"
3649
+ "./LazyHeader.QLLnRIqL.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: Bn
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: Gn,
3749
+ labelRight: Bn,
3749
3750
  onClick: r,
3750
3751
  children: /* @__PURE__ */ l(mn, { className: "size-7" })
3751
3752
  }
@@ -3756,16 +3757,16 @@ 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.68xrhTIC.js"
3760
+ "./App.DKRoa2tE.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 }) }) }), ls = ({ domain: e }) => /* @__PURE__ */ l(no, { isComponent: !0, domain: e });
3767
+ }) => /* @__PURE__ */ l(ye, { children: /* @__PURE__ */ l(Da, { clientId: $a, domain: t, debug: to, children: /* @__PURE__ */ l(ao, { isComponent: e }) }) }), ds = ({ domain: e }) => /* @__PURE__ */ l(no, { isComponent: !0, domain: e });
3767
3768
  export {
3768
- ts as ABOUT_TITLE,
3769
+ rs as ABOUT_TITLE,
3769
3770
  No as ACTION_ENGINE,
3770
3771
  vo as ACTION_MESSAGE,
3771
3772
  ko as ACTION_MODEL,
@@ -3778,9 +3779,9 @@ export {
3778
3779
  Co as ACTION_TOGGLE_TAG,
3779
3780
  jn as AppContext,
3780
3781
  qn as AppFooter,
3781
- ns as CANCEL,
3782
- ss as CARDS,
3783
- as as CLEAR,
3782
+ os as CANCEL,
3783
+ is as CARDS,
3784
+ ns as CLEAR,
3784
3785
  cn as D,
3785
3786
  Ye as DEFAULT_AI_ENGINE,
3786
3787
  To as ENGINE_ANTHROPIC,
@@ -3788,47 +3789,48 @@ export {
3788
3789
  Eo as ERROR_MESSAGE,
3789
3790
  ue as G,
3790
3791
  Io as GPT4_MAX_TOKENS,
3791
- es as HISTORY_TITLE,
3792
- is as HistoryContext,
3792
+ ts as HISTORY_TITLE,
3793
+ cs as HistoryContext,
3793
3794
  $o as LOCAL_STORAGE_CHAT_DETAILS,
3795
+ Go as LOCAL_STORAGE_ENGINE_TOGGLE,
3794
3796
  Do as LOCAL_STORAGE_PREFIX,
3795
3797
  Lo as LOCAL_STORAGE_SEARCH,
3796
3798
  Mo as LOCAL_STORAGE_SORT,
3797
3799
  Ko as LOCAL_STORAGE_TAG_PROOFREAD,
3798
3800
  Ho as LOCAL_STORAGE_TAG_REPHRASE,
3799
3801
  Uo as LOCAL_STORAGE_TAG_SUMMARIZE,
3800
- qo as LOG_OUT,
3802
+ Xo as LOG_OUT,
3801
3803
  Qn as MessagesContainerHeader,
3802
- os as NA,
3804
+ ss as NA,
3803
3805
  Qe as O,
3804
- Qo as PROFILE_TITLE,
3806
+ Zo as PROFILE_TITLE,
3805
3807
  er as R,
3806
3808
  go as ROLE_ASSISTANT,
3807
3809
  bo as ROLE_HIDDEN,
3808
3810
  yo as ROLE_INTERNAL,
3809
3811
  fo as ROLE_SYSTEM,
3810
3812
  po as ROLE_USER,
3811
- Xo as SEND,
3812
- Zo as STATS,
3813
+ Qo as SEND,
3814
+ es as STATS,
3813
3815
  Wo as STATS_SEPARATOR,
3814
- ls as SassySaint,
3816
+ ds as SassySaint,
3815
3817
  ze as TAGS,
3816
3818
  Po as TAG_CONTENT,
3817
- rs as TYPE_QUESTION,
3818
- cs as TagsContext,
3819
+ as as TYPE_QUESTION,
3820
+ ls as TagsContext,
3819
3821
  vt as b,
3820
3822
  fn as d,
3821
- zo as durationFormatter,
3822
- Jo as extractAverage,
3823
+ jo as durationFormatter,
3824
+ Fo as extractAverage,
3823
3825
  Ke as g,
3824
- Go as getCurrentGeoLocation,
3826
+ Vo as getCurrentGeoLocation,
3825
3827
  Fa as getMessageContaintWrapperClass,
3826
- Fo as isLastMessageFromRole,
3828
+ Yo as isLastMessageFromRole,
3827
3829
  le as j,
3828
3830
  st as me,
3829
- Yo as numberFormatter,
3830
- jo as pluralize,
3831
- Vo as renderDataAsList,
3831
+ zo as numberFormatter,
3832
+ qo as pluralize,
3833
+ Jo as renderDataAsList,
3832
3834
  rt as rn,
3833
3835
  Bo as truncate,
3834
3836
  mn as v