@versini/sassysaint 4.0.3 → 4.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{App.D304Xevg.js → App.Bv1AXGNM.js} +3 -3
- package/dist/chunks/{LazyHeader.DZqy-k6Q.js → LazyHeader.B-Inpb_l.js} +6 -6
- package/dist/chunks/{LazyMarkdownWithExtra.BXbx8ZuU.js → LazyMarkdownWithExtra.AVk47oNE.js} +1 -1
- package/dist/chunks/{LazyMessageAssistant.s7N5AkfQ.js → LazyMessageAssistant.kSKFTYLO.js} +4 -4
- package/dist/chunks/{index.7JJYsiGN.CAXaixDN.js → index.7JJYsiGN.BMjQHxRo.js} +1 -1
- package/dist/chunks/{index.hKY7O9up.js → index.B5_Pppr9.js} +95 -91
- package/dist/chunks/{useLocalStorage.guy7-rXk.js → useLocalStorage.Bz8cVadw.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as E, jsx as n, Fragment as ye } from "react/jsx-runtime";
|
|
2
|
-
import { O as Be, s as Ve, S as De, f$1 as ze, M as $e, U as Ue, r as Fe, o as Pe, n as fe, l as Ge, a as q, isLastMessageFromRole as he, x as xe, CANCEL as je, CLEAR as We, ACTION_RESET as be, ROLE_ASSISTANT as M, ROLE_INTERNAL as Z, ROLE_USER as K, zr as ee, ROLE_SYSTEM as Ye, ROLE_HIDDEN as qe, MODEL_GPT4 as ke, STATS_SEPARATOR as le, ACTION_MODEL as Ce, ACTION_MESSAGE as V, TYPE_QUESTION as Je, SEND as Qe, ACTION_STREAMING as Te, ERROR_MESSAGE as Xe, getMessageContaintWrapperClass as Ke, MessagesContainerHeader as Ze, ACTION_SEARCH as er, ACTION_SORT as rr, ACTION_RESTORE as tr, ACTION_LOCATION as B, getCurrentGeoLocation as or, c as sr, AppFooter as ar, LOCAL_STORAGE_PREFIX as J, LOCAL_STORAGE_SEARCH as nr, LOCAL_STORAGE_SORT as lr, LOCAL_STORAGE_LOCATION as cr } from "./index.
|
|
3
|
-
import { g as ve, AppContext as P, restCall as ir, E as Q, serviceCall as ce, SERVICE_TYPES as ie, HistoryContext as dr, k as ur } from "./useLocalStorage.
|
|
2
|
+
import { O as Be, s as Ve, S as De, f$1 as ze, M as $e, U as Ue, r as Fe, o as Pe, n as fe, l as Ge, a as q, isLastMessageFromRole as he, x as xe, CANCEL as je, CLEAR as We, ACTION_RESET as be, ROLE_ASSISTANT as M, ROLE_INTERNAL as Z, ROLE_USER as K, zr as ee, ROLE_SYSTEM as Ye, ROLE_HIDDEN as qe, MODEL_GPT4 as ke, STATS_SEPARATOR as le, ACTION_MODEL as Ce, ACTION_MESSAGE as V, TYPE_QUESTION as Je, SEND as Qe, ACTION_STREAMING as Te, ERROR_MESSAGE as Xe, getMessageContaintWrapperClass as Ke, MessagesContainerHeader as Ze, ACTION_SEARCH as er, ACTION_SORT as rr, ACTION_RESTORE as tr, ACTION_LOCATION as B, getCurrentGeoLocation as or, c as sr, AppFooter as ar, LOCAL_STORAGE_PREFIX as J, LOCAL_STORAGE_SEARCH as nr, LOCAL_STORAGE_SORT as lr, LOCAL_STORAGE_LOCATION as cr } from "./index.B5_Pppr9.js";
|
|
3
|
+
import { g as ve, AppContext as P, restCall as ir, E as Q, serviceCall as ce, SERVICE_TYPES as ie, HistoryContext as dr, k as ur } from "./useLocalStorage.Bz8cVadw.js";
|
|
4
4
|
import pr, { useState as I, useEffect as S, useRef as x, useLayoutEffect as $, useContext as re, lazy as mr, Suspense as de, useReducer as ue, useCallback as gr } from "react";
|
|
5
5
|
import g from "clsx";
|
|
6
6
|
const yr = ({
|
|
@@ -475,7 +475,7 @@ const Br = () => {
|
|
|
475
475
|
children: r != null && r.streaming ? je : We
|
|
476
476
|
}
|
|
477
477
|
) }) : null;
|
|
478
|
-
}, me = mr(() => import("./LazyMessageAssistant.
|
|
478
|
+
}, me = mr(() => import("./LazyMessageAssistant.kSKFTYLO.js").then((e) => e.LazyMessageAssistant)), Vr = () => {
|
|
479
479
|
const { state: e } = re(P);
|
|
480
480
|
return /* @__PURE__ */ E(ye, { children: [
|
|
481
481
|
e && e.messages.length > 0 && e.messages.map((r, o) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as c, jsx as e, Fragment as x } from "react/jsx-runtime";
|
|
2
|
-
import { O as _, i$1 as le, N as de, p as De, o as _e, g as A, N$1 as z, CARDS as N, renderDataAsList as $, pluralize as Z, ABOUT_TITLE as ze, MODEL_GPT4 as Be, numberFormatter as Ve, durationFormatter as Ce, NA as Pe, ROLE_ASSISTANT as Fe, extractAverage as Ge, GPT4_MAX_TOKENS as $e, zr as Y, STATS as Ne, b as F, j as E, x as ee, LOCAL_STORAGE_PREFIX as te, LOCAL_STORAGE_SORT as Ue, ACTION_RESET as je, ACTION_RESTORE as Ye, truncate as Ke, ACTION_SORT as re, LOCAL_STORAGE_SEARCH as We, Y as Xe, ACTION_SEARCH as Je, HISTORY_TITLE as qe, LOCAL_STORAGE_CHAT_DETAILS as Qe, LOCAL_STORAGE_LOCATION as Ze,
|
|
2
|
+
import { O as _, i$1 as le, N as de, p as De, o as _e, g as A, N$1 as z, CARDS as N, renderDataAsList as $, pluralize as Z, ABOUT_TITLE as ze, MODEL_GPT4 as Be, numberFormatter as Ve, durationFormatter as Ce, NA as Pe, ROLE_ASSISTANT as Fe, extractAverage as Ge, GPT4_MAX_TOKENS as $e, zr as Y, STATS as Ne, b as F, j as E, x as ee, LOCAL_STORAGE_PREFIX as te, LOCAL_STORAGE_SORT as Ue, ACTION_RESET as je, ACTION_RESTORE as Ye, truncate as Ke, ACTION_SORT as re, LOCAL_STORAGE_SEARCH as We, Y as Xe, ACTION_SEARCH as Je, HISTORY_TITLE as qe, LOCAL_STORAGE_CHAT_DETAILS as Qe, LOCAL_STORAGE_LOCATION as Ze, v as et, ACTION_LOCATION as me, getCurrentGeoLocation as tt, convertLatitudeToDMS as at, convertLongitudeToDMS as st, PROFILE_TITLE as nt, LOG_OUT as ue } from "./index.B5_Pppr9.js";
|
|
3
3
|
import * as ce from "react";
|
|
4
4
|
import rt, { forwardRef as Te, useState as T, useRef as U, useContext as R, useEffect as O, Suspense as ot, lazy as ct, useId as it } from "react";
|
|
5
|
-
import { g as lt, AppContext as K, serviceCall as se, SERVICE_TYPES as ne, HistoryContext as ye, E as ae, k as I, et as dt, at as mt, lt as oe, J as M, ct as ut, st as ht, rt as pt } from "./useLocalStorage.
|
|
5
|
+
import { g as lt, AppContext as K, serviceCall as se, SERVICE_TYPES as ne, HistoryContext as ye, E as ae, k as I, et as dt, at as mt, lt as oe, J as M, ct as ut, st as ht, rt as pt } from "./useLocalStorage.Bz8cVadw.js";
|
|
6
6
|
import v from "clsx";
|
|
7
7
|
import { useFloatingTree as be, useFloatingNodeId as ft, useListItem as Se, useFloating as gt, offset as Ct, flip as Nt, shift as Tt, autoUpdate as yt, useClick as bt, useRole as St, useDismiss as wt, useListNavigation as kt, useTypeahead as xt, useInteractions as Et, useMergeRefs as we, FloatingNode as vt, FloatingList as It, FloatingPortal as At, FloatingFocusManager as Ht, FloatingTree as Mt } from "@floating-ui/react";
|
|
8
8
|
const ie = ce.createContext({
|
|
@@ -197,7 +197,7 @@ const Rt = ({ className: t, ...a }) => {
|
|
|
197
197
|
header: "p-4 mb-0",
|
|
198
198
|
close: "p-4"
|
|
199
199
|
}), W = (t) => ct(
|
|
200
|
-
() => import("./index.7JJYsiGN.
|
|
200
|
+
() => import("./index.7JJYsiGN.BMjQHxRo.js").then((a) => ({
|
|
201
201
|
default: a[t]
|
|
202
202
|
}))
|
|
203
203
|
), Dt = W("Modal"), _t = W("ModalClose"), zt = W("ModalContent"), Bt = W("ModalDescription"), Vt = W("ModalHeading"), X = ({
|
|
@@ -602,8 +602,8 @@ const sa = ({ stats: t }) => {
|
|
|
602
602
|
header: N.ABOUT.TITLE_CLIENT,
|
|
603
603
|
className: "prose-dark dark:prose-lighter",
|
|
604
604
|
children: $(r, {
|
|
605
|
-
[N.ABOUT.VERSION]: "4.0.
|
|
606
|
-
[N.ABOUT.BUILD_TIMESTAMP]: "08/
|
|
605
|
+
[N.ABOUT.VERSION]: "4.0.4",
|
|
606
|
+
[N.ABOUT.BUILD_TIMESTAMP]: "08/31/2024 05:34 PM EDT"
|
|
607
607
|
})
|
|
608
608
|
}
|
|
609
609
|
) }),
|
|
@@ -1134,7 +1134,7 @@ const pa = ({
|
|
|
1134
1134
|
spacing: { t: 4 },
|
|
1135
1135
|
className: "prose-dark dark:prose-lighter",
|
|
1136
1136
|
header: /* @__PURE__ */ e("h2", { className: "m-0", children: /* @__PURE__ */ c(F, { columnGap: 3, alignVertical: "center", children: [
|
|
1137
|
-
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(et, { className: "size-
|
|
1137
|
+
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(et, { className: "size-8 text-center" }) }),
|
|
1138
1138
|
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ e("div", { children: "Passkey" }) })
|
|
1139
1139
|
] }) }),
|
|
1140
1140
|
children: /* @__PURE__ */ c(F, { columnGap: 3, alignVertical: "center", children: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _i } from "react/jsx-runtime";
|
|
2
|
-
import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.
|
|
2
|
+
import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.kSKFTYLO.js";
|
|
3
3
|
const U0 = (
|
|
4
4
|
// Note: overloads like this are needed to support optional generics.
|
|
5
5
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as He, jsx as re, Fragment as or } from "react/jsx-runtime";
|
|
2
|
-
import { c$1 as ot, S as at, LOCAL_STORAGE_PREFIX as wi, LOCAL_STORAGE_CHAT_DETAILS as Si, durationFormatter as Ci } from "./index.
|
|
3
|
-
import { AppContext as Ei, E as Ai } from "./useLocalStorage.
|
|
2
|
+
import { c$1 as ot, S as at, LOCAL_STORAGE_PREFIX as wi, LOCAL_STORAGE_CHAT_DETAILS as Si, durationFormatter as Ci } from "./index.B5_Pppr9.js";
|
|
3
|
+
import { AppContext as Ei, E as Ai } from "./useLocalStorage.Bz8cVadw.js";
|
|
4
4
|
import { lazy as Ii, useContext as Ti, Suspense as Pi } from "react";
|
|
5
|
-
import { T as ut } from "./App.
|
|
5
|
+
import { T as ut } from "./App.Bv1AXGNM.js";
|
|
6
6
|
import cn from "clsx";
|
|
7
7
|
const Li = ({
|
|
8
8
|
spinnerRef: e,
|
|
@@ -8618,7 +8618,7 @@ function sf(e) {
|
|
|
8618
8618
|
i.push(af(n)), o.push(Tc()), l.push(Pc(n));
|
|
8619
8619
|
}
|
|
8620
8620
|
const cf = Ii(
|
|
8621
|
-
() => import("./LazyMarkdownWithExtra.
|
|
8621
|
+
() => import("./LazyMarkdownWithExtra.AVk47oNE.js")
|
|
8622
8622
|
), In = {
|
|
8623
8623
|
MODEL: "Model",
|
|
8624
8624
|
PLUGIN: "Plugin",
|
|
@@ -3,7 +3,7 @@ import y from "clsx";
|
|
|
3
3
|
import * as c from "react";
|
|
4
4
|
import { useRef as C, useReducer as M, useEffect as _, useId as x } from "react";
|
|
5
5
|
import { useMergeRefs as S, FloatingPortal as F, FloatingOverlay as O, FloatingFocusManager as P, useFloating as k, useClick as L, useDismiss as V, useRole as B, useInteractions as U } from "@floating-ui/react";
|
|
6
|
-
import { S as j } from "./index.
|
|
6
|
+
import { S as j } from "./index.B5_Pppr9.js";
|
|
7
7
|
const b = "SET_ANNOUNCEMENT", w = "CLEAR_ANNOUNCEMENT", q = {
|
|
8
8
|
alert: null,
|
|
9
9
|
alertdialog: null,
|
|
@@ -141,8 +141,8 @@ class lr {
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
const
|
|
145
|
-
function
|
|
144
|
+
const At = new lr(), ur = ["cross-platform", "platform"];
|
|
145
|
+
function St(e) {
|
|
146
146
|
if (e && !(ur.indexOf(e) < 0))
|
|
147
147
|
return e;
|
|
148
148
|
}
|
|
@@ -159,7 +159,7 @@ async function mr(e) {
|
|
|
159
159
|
},
|
|
160
160
|
excludeCredentials: (m = e.excludeCredentials) == null ? void 0 : m.map(It)
|
|
161
161
|
} };
|
|
162
|
-
t.signal =
|
|
162
|
+
t.signal = At.createNewAbortSignal();
|
|
163
163
|
let r;
|
|
164
164
|
try {
|
|
165
165
|
r = await navigator.credentials.create(t);
|
|
@@ -206,7 +206,7 @@ async function mr(e) {
|
|
|
206
206
|
},
|
|
207
207
|
type: s,
|
|
208
208
|
clientExtensionResults: r.getClientExtensionResults(),
|
|
209
|
-
authenticatorAttachment:
|
|
209
|
+
authenticatorAttachment: St(r.authenticatorAttachment)
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
212
|
function Me(e, t) {
|
|
@@ -278,7 +278,7 @@ async function gr(e, t = !1) {
|
|
|
278
278
|
throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');
|
|
279
279
|
n.mediation = "conditional", a.allowCredentials = [];
|
|
280
280
|
}
|
|
281
|
-
n.publicKey = a, n.signal =
|
|
281
|
+
n.publicKey = a, n.signal = At.createNewAbortSignal();
|
|
282
282
|
let o;
|
|
283
283
|
try {
|
|
284
284
|
o = await navigator.credentials.get(n);
|
|
@@ -300,7 +300,7 @@ async function gr(e, t = !1) {
|
|
|
300
300
|
},
|
|
301
301
|
type: h,
|
|
302
302
|
clientExtensionResults: o.getClientExtensionResults(),
|
|
303
|
-
authenticatorAttachment:
|
|
303
|
+
authenticatorAttachment: St(o.authenticatorAttachment)
|
|
304
304
|
};
|
|
305
305
|
}
|
|
306
306
|
/*!
|
|
@@ -413,7 +413,7 @@ class Y extends q {
|
|
|
413
413
|
return "ERR_JOSE_NOT_SUPPORTED";
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
let
|
|
416
|
+
let S = class extends q {
|
|
417
417
|
constructor() {
|
|
418
418
|
super(...arguments), this.code = "ERR_JWS_INVALID";
|
|
419
419
|
}
|
|
@@ -531,7 +531,7 @@ const rt = (e, ...t) => Rt("Key must be ", e, ...t);
|
|
|
531
531
|
function Nt(e, t, ...r) {
|
|
532
532
|
return Rt(`Key for the ${e} algorithm must be `, t, ...r);
|
|
533
533
|
}
|
|
534
|
-
const xt = (e) => _t(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", ve = ["CryptoKey"],
|
|
534
|
+
const xt = (e) => _t(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", ve = ["CryptoKey"], Ar = (...e) => {
|
|
535
535
|
const t = e.filter(Boolean);
|
|
536
536
|
if (t.length === 0 || t.length === 1)
|
|
537
537
|
return !0;
|
|
@@ -550,11 +550,11 @@ const xt = (e) => _t(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) ===
|
|
|
550
550
|
}
|
|
551
551
|
return !0;
|
|
552
552
|
};
|
|
553
|
-
function
|
|
553
|
+
function Sr(e) {
|
|
554
554
|
return typeof e == "object" && e !== null;
|
|
555
555
|
}
|
|
556
|
-
function
|
|
557
|
-
if (!
|
|
556
|
+
function Ae(e) {
|
|
557
|
+
if (!Sr(e) || Object.prototype.toString.call(e) !== "[object Object]")
|
|
558
558
|
return !1;
|
|
559
559
|
if (Object.getPrototypeOf(e) === null)
|
|
560
560
|
return !0;
|
|
@@ -840,46 +840,46 @@ const Gr = async (e, t, r, a) => {
|
|
|
840
840
|
}
|
|
841
841
|
};
|
|
842
842
|
async function Wr(e, t, r) {
|
|
843
|
-
if (!
|
|
844
|
-
throw new
|
|
843
|
+
if (!Ae(e))
|
|
844
|
+
throw new S("Flattened JWS must be an object");
|
|
845
845
|
if (e.protected === void 0 && e.header === void 0)
|
|
846
|
-
throw new
|
|
846
|
+
throw new S('Flattened JWS must have either of the "protected" or "header" members');
|
|
847
847
|
if (e.protected !== void 0 && typeof e.protected != "string")
|
|
848
|
-
throw new
|
|
848
|
+
throw new S("JWS Protected Header incorrect type");
|
|
849
849
|
if (e.payload === void 0)
|
|
850
|
-
throw new
|
|
850
|
+
throw new S("JWS Payload missing");
|
|
851
851
|
if (typeof e.signature != "string")
|
|
852
|
-
throw new
|
|
853
|
-
if (e.header !== void 0 && !
|
|
854
|
-
throw new
|
|
852
|
+
throw new S("JWS Signature missing or incorrect type");
|
|
853
|
+
if (e.header !== void 0 && !Ae(e.header))
|
|
854
|
+
throw new S("JWS Unprotected Header incorrect type");
|
|
855
855
|
let a = {};
|
|
856
856
|
if (e.protected)
|
|
857
857
|
try {
|
|
858
858
|
const f = se(e.protected);
|
|
859
859
|
a = JSON.parse(de.decode(f));
|
|
860
860
|
} catch {
|
|
861
|
-
throw new
|
|
861
|
+
throw new S("JWS Protected Header is invalid");
|
|
862
862
|
}
|
|
863
|
-
if (!
|
|
864
|
-
throw new
|
|
863
|
+
if (!Ar(a, e.header))
|
|
864
|
+
throw new S("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
|
|
865
865
|
const n = {
|
|
866
866
|
...a,
|
|
867
867
|
...e.header
|
|
868
|
-
}, o = Ur(
|
|
868
|
+
}, o = Ur(S, /* @__PURE__ */ new Map([["b64", !0]]), r == null ? void 0 : r.crit, a, n);
|
|
869
869
|
let s = !0;
|
|
870
870
|
if (o.has("b64") && (s = a.b64, typeof s != "boolean"))
|
|
871
|
-
throw new
|
|
871
|
+
throw new S('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
|
|
872
872
|
const { alg: i } = n;
|
|
873
873
|
if (typeof i != "string" || !i)
|
|
874
|
-
throw new
|
|
874
|
+
throw new S('JWS "alg" (Algorithm) Header Parameter missing or invalid');
|
|
875
875
|
const u = r && Hr("algorithms", r.algorithms);
|
|
876
876
|
if (u && !u.has(i))
|
|
877
877
|
throw new Er('"alg" (Algorithm) Header Parameter value not allowed');
|
|
878
878
|
if (s) {
|
|
879
879
|
if (typeof e.payload != "string")
|
|
880
|
-
throw new
|
|
880
|
+
throw new S("JWS Payload must be a string");
|
|
881
881
|
} else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
|
|
882
|
-
throw new
|
|
882
|
+
throw new S("JWS Payload must be a string or an Uint8Array instance");
|
|
883
883
|
let h = !1;
|
|
884
884
|
typeof t == "function" && (t = await t(a, e), h = !0), Mr(i, t, "verify");
|
|
885
885
|
const p = yr(ue.encode(e.protected ?? ""), ue.encode("."), typeof e.payload == "string" ? ue.encode(e.payload) : e.payload);
|
|
@@ -887,7 +887,7 @@ async function Wr(e, t, r) {
|
|
|
887
887
|
try {
|
|
888
888
|
m = se(e.signature);
|
|
889
889
|
} catch {
|
|
890
|
-
throw new
|
|
890
|
+
throw new S("Failed to base64url decode the signature");
|
|
891
891
|
}
|
|
892
892
|
if (!await Gr(i, t, m, p))
|
|
893
893
|
throw new wr();
|
|
@@ -896,7 +896,7 @@ async function Wr(e, t, r) {
|
|
|
896
896
|
try {
|
|
897
897
|
d = se(e.payload);
|
|
898
898
|
} catch {
|
|
899
|
-
throw new
|
|
899
|
+
throw new S("Failed to base64url decode the payload");
|
|
900
900
|
}
|
|
901
901
|
else typeof e.payload == "string" ? d = ue.encode(e.payload) : d = e.payload;
|
|
902
902
|
const l = { payload: d };
|
|
@@ -904,10 +904,10 @@ async function Wr(e, t, r) {
|
|
|
904
904
|
}
|
|
905
905
|
async function Vr(e, t, r) {
|
|
906
906
|
if (e instanceof Uint8Array && (e = de.decode(e)), typeof e != "string")
|
|
907
|
-
throw new
|
|
907
|
+
throw new S("Compact JWS must be a string or Uint8Array");
|
|
908
908
|
const { 0: a, 1: n, 2: o, length: s } = e.split(".");
|
|
909
909
|
if (s !== 3)
|
|
910
|
-
throw new
|
|
910
|
+
throw new S("Invalid Compact JWS");
|
|
911
911
|
const i = await Wr({ payload: n, protected: a, signature: o }, t, r), u = { payload: i.payload, protectedHeader: i.protectedHeader };
|
|
912
912
|
return typeof t == "function" ? { ...u, key: i.key } : u;
|
|
913
913
|
}
|
|
@@ -960,7 +960,7 @@ const Jr = (e) => Math.floor(e.getTime() / 1e3), Dt = 60, $t = Dt * 60, je = $t
|
|
|
960
960
|
a = JSON.parse(de.decode(t));
|
|
961
961
|
} catch {
|
|
962
962
|
}
|
|
963
|
-
if (!
|
|
963
|
+
if (!Ae(a))
|
|
964
964
|
throw new G("JWT Claims Set must be a top-level JSON object");
|
|
965
965
|
const { typ: n } = r;
|
|
966
966
|
if (n && (typeof e.typ != "string" || ot(e.typ) !== ot(n)))
|
|
@@ -1045,7 +1045,7 @@ function Zr(e) {
|
|
|
1045
1045
|
} catch {
|
|
1046
1046
|
throw new G("Failed to parse the decoded payload as JSON");
|
|
1047
1047
|
}
|
|
1048
|
-
if (!
|
|
1048
|
+
if (!Ae(n))
|
|
1049
1049
|
throw new G("Invalid JWT Claims Set");
|
|
1050
1050
|
return n;
|
|
1051
1051
|
}
|
|
@@ -1144,11 +1144,11 @@ function pe({
|
|
|
1144
1144
|
}
|
|
1145
1145
|
}, [e, t]), [r ? JSON.parse(r) : null, a, n, o];
|
|
1146
1146
|
}
|
|
1147
|
-
var
|
|
1147
|
+
var A = [];
|
|
1148
1148
|
for (var Ge = 0; Ge < 256; ++Ge)
|
|
1149
|
-
|
|
1149
|
+
A.push((Ge + 256).toString(16).slice(1));
|
|
1150
1150
|
function ua(e, t = 0) {
|
|
1151
|
-
return (
|
|
1151
|
+
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();
|
|
1152
1152
|
}
|
|
1153
1153
|
var ge, ma = new Uint8Array(16);
|
|
1154
1154
|
function ha() {
|
|
@@ -1167,7 +1167,7 @@ function We(e, t, r) {
|
|
|
1167
1167
|
var a = e.random || (e.rng || ha)();
|
|
1168
1168
|
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, ua(a);
|
|
1169
1169
|
}
|
|
1170
|
-
const X = "Your session has expired. For your security, please log in again to continue.", ga = "Your session has been successfully terminated.", Ve = "Login failed. Please try again.", fa = "Error getting access token, please re-authenticate.", ya = "You forgot to wrap your component in <AuthProvider>.",
|
|
1170
|
+
const X = "Your session has expired. For your security, please log in again to continue.", ga = "Your session has been successfully terminated.", Ve = "Login failed. Please try again.", fa = "Error getting access token, please re-authenticate.", ya = "You forgot to wrap your component in <AuthProvider>.", Se = {
|
|
1171
1171
|
dev: "https://auth.gizmette.local.com:3003",
|
|
1172
1172
|
prod: "https://mylogin.gizmette.com/auth"
|
|
1173
1173
|
}, fe = "@@auth@@", oe = "LOADING", we = "LOGIN", Mt = "LOGOUT", le = "success", M = "failure", Ut = "include", Ht = "POST", Kt = "application/json", ye = {
|
|
@@ -1275,7 +1275,7 @@ const X = "Your session has expired. For your security, please log in again to c
|
|
|
1275
1275
|
}) => {
|
|
1276
1276
|
try {
|
|
1277
1277
|
const n = `Bearer ${e}`, o = await fetch(
|
|
1278
|
-
Bt ? `${
|
|
1278
|
+
Bt ? `${Se.dev}/graphql` : `${Se.prod}/graphql`,
|
|
1279
1279
|
{
|
|
1280
1280
|
credentials: Ut,
|
|
1281
1281
|
method: Ht,
|
|
@@ -1307,7 +1307,7 @@ const X = "Your session has expired. For your security, please log in again to c
|
|
|
1307
1307
|
}) => {
|
|
1308
1308
|
try {
|
|
1309
1309
|
const a = await fetch(
|
|
1310
|
-
Bt ? `${
|
|
1310
|
+
Bt ? `${Se.dev}/${e}` : `${Se.prod}/${e}`,
|
|
1311
1311
|
{
|
|
1312
1312
|
credentials: Ut,
|
|
1313
1313
|
method: Ht,
|
|
@@ -1473,7 +1473,7 @@ const X = "Your session has expired. For your security, please log in again to c
|
|
|
1473
1473
|
};
|
|
1474
1474
|
}
|
|
1475
1475
|
};
|
|
1476
|
-
class
|
|
1476
|
+
class Aa {
|
|
1477
1477
|
constructor(t = null, r = null) {
|
|
1478
1478
|
Le(this, "refreshTokenPromise", null), Le(this, "accessToken"), Le(this, "refreshToken"), this.accessToken = t || "", this.refreshToken = r || "";
|
|
1479
1479
|
}
|
|
@@ -1524,7 +1524,7 @@ class Sa {
|
|
|
1524
1524
|
};
|
|
1525
1525
|
}
|
|
1526
1526
|
}
|
|
1527
|
-
const
|
|
1527
|
+
const Sa = (e) => z(
|
|
1528
1528
|
(...t) => {
|
|
1529
1529
|
e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
|
|
1530
1530
|
},
|
|
@@ -1570,7 +1570,7 @@ const Aa = (e) => z(
|
|
|
1570
1570
|
const [o, s] = ft(_a, {
|
|
1571
1571
|
...Gt,
|
|
1572
1572
|
debug: n
|
|
1573
|
-
}), i =
|
|
1573
|
+
}), i = Sa(n), u = W(!1), [h, p, , m] = pe({
|
|
1574
1574
|
key: `${fe}::${r}::@@user@@`
|
|
1575
1575
|
}), [d, l, , f] = pe({
|
|
1576
1576
|
key: `${fe}::${r}::@@access@@`
|
|
@@ -1580,7 +1580,7 @@ const Aa = (e) => z(
|
|
|
1580
1580
|
}
|
|
1581
1581
|
), [U, H, , O] = pe({
|
|
1582
1582
|
key: `${fe}::${r}::@@nonce@@`
|
|
1583
|
-
}), ae = new
|
|
1583
|
+
}), ae = new Aa(d, E), P = z(() => {
|
|
1584
1584
|
i("removeLocalStorage: removing local storage"), m(), f(), w(), O();
|
|
1585
1585
|
}, [
|
|
1586
1586
|
f,
|
|
@@ -1901,12 +1901,12 @@ const Ua = process.env.NODE_ENV === "production", Qe = !Ua, Ha = Qe ? "gizmette.
|
|
|
1901
1901
|
min: n,
|
|
1902
1902
|
sec: o
|
|
1903
1903
|
};
|
|
1904
|
-
},
|
|
1904
|
+
}, Ao = (e) => {
|
|
1905
1905
|
if (!e && e !== 0)
|
|
1906
1906
|
return "N/A";
|
|
1907
1907
|
const t = Vt(e, !1);
|
|
1908
1908
|
return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
|
|
1909
|
-
},
|
|
1909
|
+
}, So = (e) => {
|
|
1910
1910
|
if (!e && e !== 0)
|
|
1911
1911
|
return "N/A";
|
|
1912
1912
|
const t = Vt(e, !0);
|
|
@@ -2945,7 +2945,7 @@ try {
|
|
|
2945
2945
|
});
|
|
2946
2946
|
} catch {
|
|
2947
2947
|
}
|
|
2948
|
-
const
|
|
2948
|
+
const An = (e) => {
|
|
2949
2949
|
let t = "";
|
|
2950
2950
|
if (typeof e == "number" || typeof e == "string")
|
|
2951
2951
|
t = "m-" + e;
|
|
@@ -2966,7 +2966,7 @@ const Sn = (e) => {
|
|
|
2966
2966
|
semantic: u = !1,
|
|
2967
2967
|
...h
|
|
2968
2968
|
}) => {
|
|
2969
|
-
const p =
|
|
2969
|
+
const p = An(s), m = g(
|
|
2970
2970
|
p,
|
|
2971
2971
|
a || o
|
|
2972
2972
|
);
|
|
@@ -2989,19 +2989,19 @@ const Sn = (e) => {
|
|
|
2989
2989
|
] });
|
|
2990
2990
|
};
|
|
2991
2991
|
/*!
|
|
2992
|
-
@versini/ui-private v1.4.
|
|
2992
|
+
@versini/ui-private v1.4.8
|
|
2993
2993
|
© 2024 gizmette.com
|
|
2994
2994
|
*/
|
|
2995
2995
|
try {
|
|
2996
2996
|
window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
|
|
2997
|
-
version: "1.4.
|
|
2998
|
-
buildTime: "
|
|
2997
|
+
version: "1.4.8",
|
|
2998
|
+
buildTime: "08/31/2024 05:10 PM EDT",
|
|
2999
2999
|
homepage: "https://github.com/aversini/ui-components",
|
|
3000
3000
|
license: "MIT"
|
|
3001
3001
|
});
|
|
3002
3002
|
} catch {
|
|
3003
3003
|
}
|
|
3004
|
-
const
|
|
3004
|
+
const Sn = ({
|
|
3005
3005
|
className: e,
|
|
3006
3006
|
viewBox: t,
|
|
3007
3007
|
spacing: r,
|
|
@@ -3061,35 +3061,39 @@ const An = ({
|
|
|
3061
3061
|
title: a,
|
|
3062
3062
|
monotone: n,
|
|
3063
3063
|
...o
|
|
3064
|
-
}) =>
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3064
|
+
}) => {
|
|
3065
|
+
const s = n ? "1" : "0.4";
|
|
3066
|
+
return /* @__PURE__ */ I(
|
|
3067
|
+
Oe,
|
|
3068
|
+
{
|
|
3069
|
+
defaultViewBox: "0 0 216 216",
|
|
3070
|
+
defaultClassName: "size-5",
|
|
3071
|
+
viewBox: t,
|
|
3072
|
+
className: e,
|
|
3073
|
+
spacing: r,
|
|
3074
|
+
title: a || "Passkey",
|
|
3075
|
+
...o,
|
|
3076
|
+
children: [
|
|
3077
|
+
/* @__PURE__ */ c(
|
|
3078
|
+
"path",
|
|
3079
|
+
{
|
|
3080
|
+
opacity: s,
|
|
3081
|
+
d: "M172.32,96.79c0,13.78-8.48,25.5-20.29,29.78l7.14,11.83l-10.57,13l10.57,12.71l-17.04,22.87l-12.01-12.82 v-25.9v-22.56c-10.68-4.85-18.15-15.97-18.15-28.91c0-17.4,13.51-31.51,30.18-31.51C158.81,65.28,172.32,79.39,172.32,96.79z M142.14,101.61c4.02,0,7.28-3.4,7.28-7.6c0-4.2-3.26-7.61-7.28-7.61s-7.28,3.4-7.28,7.61 C134.85,98.21,138.12,101.61,142.14,101.61z"
|
|
3082
|
+
}
|
|
3083
|
+
),
|
|
3084
|
+
/* @__PURE__ */ c(
|
|
3085
|
+
"path",
|
|
3086
|
+
{
|
|
3087
|
+
opacity: s,
|
|
3088
|
+
d: "M172.41,96.88c0,13.62-8.25,25.23-19.83,29.67l6.58,11.84l-9.73,13l9.73,12.71l-17.03,23.05v-25.9v-32.77 v-26.87c4.02,0,7.28-3.41,7.28-7.6c0-4.2-3.26-7.61-7.28-7.61V65.28C158.86,65.28,172.41,79.43,172.41,96.88z"
|
|
3089
|
+
}
|
|
3090
|
+
),
|
|
3091
|
+
/* @__PURE__ */ c("path", { d: "M120.24,131.43c-9.75-8-16.3-20.3-17.2-34.27H50.8c-10.96,0-19.84,9.01-19.84,20.13v25.17 c0,5.56,4.44,10.07,9.92,10.07h69.44c5.48,0,9.92-4.51,9.92-10.07V131.43z" }),
|
|
3092
|
+
/* @__PURE__ */ c("path", { d: "M73.16,91.13c-2.42-0.46-4.82-0.89-7.11-1.86C57.4,85.64,52.36,78.95,50.73,69.5 c-1.12-6.47-0.59-12.87,2.03-18.92c3.72-8.6,10.39-13.26,19.15-14.84c5.24-0.94,10.46-0.73,15.5,1.15 c7.59,2.82,12.68,8.26,15.03,16.24c2.38,8.05,2.03,16.1-1.56,23.72c-3.72,7.96-10.21,12.23-18.42,13.9 c-0.68,0.14-1.37,0.27-2.05,0.41C78,91.13,75.58,91.13,73.16,91.13z" })
|
|
3093
|
+
]
|
|
3094
|
+
}
|
|
3095
|
+
);
|
|
3096
|
+
}, Rn = ({
|
|
3093
3097
|
className: e,
|
|
3094
3098
|
viewBox: t,
|
|
3095
3099
|
spacing: r,
|
|
@@ -3119,13 +3123,13 @@ const An = ({
|
|
|
3119
3123
|
}
|
|
3120
3124
|
);
|
|
3121
3125
|
/*!
|
|
3122
|
-
@versini/ui-icons v1.
|
|
3126
|
+
@versini/ui-icons v1.12.0
|
|
3123
3127
|
© 2024 gizmette.com
|
|
3124
3128
|
*/
|
|
3125
3129
|
try {
|
|
3126
3130
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
3127
|
-
version: "1.
|
|
3128
|
-
buildTime: "
|
|
3131
|
+
version: "1.12.0",
|
|
3132
|
+
buildTime: "08/31/2024 05:10 PM EDT",
|
|
3129
3133
|
homepage: "https://github.com/aversini/ui-components",
|
|
3130
3134
|
license: "MIT"
|
|
3131
3135
|
});
|
|
@@ -3340,7 +3344,7 @@ const On = "ASK! ME! ANYTHING!", tr = "Sassy Saint", Pn = "gizmette.com", Dn = "
|
|
|
3340
3344
|
row1: /* @__PURE__ */ I("div", { children: [
|
|
3341
3345
|
tr,
|
|
3342
3346
|
" v",
|
|
3343
|
-
"4.0.
|
|
3347
|
+
"4.0.4",
|
|
3344
3348
|
" - ",
|
|
3345
3349
|
Mn,
|
|
3346
3350
|
Qe && e && e.models.length > 0 && e.models[0] === "development" ? " - Development Mode" : ""
|
|
@@ -3352,12 +3356,12 @@ const On = "ASK! ME! ANYTHING!", tr = "Sassy Saint", Pn = "gizmette.com", Dn = "
|
|
|
3352
3356
|
Pn
|
|
3353
3357
|
] })
|
|
3354
3358
|
}
|
|
3355
|
-
), Hn = wt(() => import("./LazyHeader.
|
|
3359
|
+
), Hn = wt(() => import("./LazyHeader.B-Inpb_l.js")), Kn = () => {
|
|
3356
3360
|
const { isAuthenticated: e } = qe();
|
|
3357
3361
|
return /* @__PURE__ */ I(ce, { children: [
|
|
3358
3362
|
e && /* @__PURE__ */ c(Tt, { fallback: /* @__PURE__ */ c("div", {}), children: /* @__PURE__ */ c(Hn, {}) }),
|
|
3359
3363
|
/* @__PURE__ */ I("div", { className: "flex items-center justify-center", children: [
|
|
3360
|
-
/* @__PURE__ */ c("div", { className: "basis-1/4", children: /* @__PURE__ */ c(
|
|
3364
|
+
/* @__PURE__ */ c("div", { className: "basis-1/4", children: /* @__PURE__ */ c(Sn, {}) }),
|
|
3361
3365
|
/* @__PURE__ */ I("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
|
|
3362
3366
|
/* @__PURE__ */ c("h1", { children: tr }),
|
|
3363
3367
|
/* @__PURE__ */ c("h2", { children: On })
|
|
@@ -3452,14 +3456,14 @@ const On = "ASK! ME! ANYTHING!", tr = "Sassy Saint", Pn = "gizmette.com", Dn = "
|
|
|
3452
3456
|
className: "mb-4 mt-1",
|
|
3453
3457
|
labelRight: $n,
|
|
3454
3458
|
onClick: r,
|
|
3455
|
-
children: /* @__PURE__ */ c(_n, { className: "size-
|
|
3459
|
+
children: /* @__PURE__ */ c(_n, { className: "size-7" })
|
|
3456
3460
|
}
|
|
3457
3461
|
) }) })
|
|
3458
3462
|
] })
|
|
3459
3463
|
] }),
|
|
3460
3464
|
/* @__PURE__ */ c(Un, {})
|
|
3461
3465
|
] });
|
|
3462
|
-
}, Gn = new URL(document.location.href).searchParams, Wn = !!Gn.get("debug") || !1, Vn = wt(() => import("./App.
|
|
3466
|
+
}, Gn = new URL(document.location.href).searchParams, Wn = !!Gn.get("debug") || !1, Vn = wt(() => import("./App.Bv1AXGNM.js").then((e) => e.App)), Jn = ({ isComponent: e }) => {
|
|
3463
3467
|
const { isAuthenticated: t } = qe();
|
|
3464
3468
|
return t ? /* @__PURE__ */ c(Tt, { fallback: /* @__PURE__ */ c("div", {}), children: /* @__PURE__ */ c(Vn, { isComponent: e }) }) : /* @__PURE__ */ c(Bn, {});
|
|
3465
3469
|
}, Fn = ({
|
|
@@ -3515,13 +3519,12 @@ export {
|
|
|
3515
3519
|
gt as b,
|
|
3516
3520
|
rn as c,
|
|
3517
3521
|
Lo as c$1,
|
|
3518
|
-
|
|
3519
|
-
|
|
3522
|
+
Ao as convertLatitudeToDMS,
|
|
3523
|
+
So as convertLongitudeToDMS,
|
|
3520
3524
|
Co as durationFormatter,
|
|
3521
3525
|
Ro as extractAverage,
|
|
3522
3526
|
Jt as f,
|
|
3523
3527
|
an as f$1,
|
|
3524
|
-
_n as f$2,
|
|
3525
3528
|
Oe as g,
|
|
3526
3529
|
ko as getCurrentGeoLocation,
|
|
3527
3530
|
Ka as getMessageContaintWrapperClass,
|
|
@@ -3539,6 +3542,7 @@ export {
|
|
|
3539
3542
|
_o as renderDataAsList,
|
|
3540
3543
|
Po as s,
|
|
3541
3544
|
vo as truncate,
|
|
3545
|
+
_n as v,
|
|
3542
3546
|
zt as x,
|
|
3543
3547
|
qe as zr
|
|
3544
3548
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as _, Fragment as M, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import m from "clsx";
|
|
3
3
|
import w, { useContext as k, useSyncExternalStore as W, useCallback as S, useEffect as P } from "react";
|
|
4
|
-
import { A as U, i as F, f as q, S as j, MODEL_GPT4 as J } from "./index.
|
|
4
|
+
import { A as U, i as F, f as q, S as j, MODEL_GPT4 as J } from "./index.B5_Pppr9.js";
|
|
5
5
|
const Q = (e) => {
|
|
6
6
|
let a = "";
|
|
7
7
|
if (typeof e == "number" || typeof e == "string")
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { SassySaint as r } from "./chunks/index.
|
|
1
|
+
import { SassySaint as r } from "./chunks/index.B5_Pppr9.js";
|
|
2
2
|
/*!
|
|
3
|
-
@sassysaint/client v4.0.
|
|
3
|
+
@sassysaint/client v4.0.4
|
|
4
4
|
© 2024 gizmette.com
|
|
5
5
|
*/
|
|
6
6
|
try {
|
|
7
7
|
window.__VERSINI_SASSY_GLOBAL__ || (window.__VERSINI_SASSY_GLOBAL__ = {
|
|
8
|
-
version: "4.0.
|
|
9
|
-
buildTime: "08/
|
|
8
|
+
version: "4.0.4",
|
|
9
|
+
buildTime: "08/31/2024 05:34 PM EDT",
|
|
10
10
|
license: "MIT"
|
|
11
11
|
});
|
|
12
12
|
} catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/sassysaint",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"react-dom": "18.3.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@sassysaint/client": "4.0.
|
|
33
|
+
"@sassysaint/client": "4.0.4",
|
|
34
34
|
"@versini/ui-styles": "1.9.5"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"sideEffects": [
|
|
42
42
|
"**/*.css"
|
|
43
43
|
],
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "641847d4e0abbea835a41cbb4ef5672471afcd18"
|
|
45
45
|
}
|