@versini/sassysaint 8.42.2 → 8.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{AboutChangelog.BkNkL6XT.js → AboutChangelog.DwrqvJLa.js} +2 -2
- package/dist/chunks/{AboutEntry.BkheS22s.js → AboutEntry.PxBeQCbN.js} +6 -6
- package/dist/chunks/{App.LB-VjAKc.js → App.lIa74yNL.js} +3513 -3366
- package/dist/chunks/{Chart.C5bHgMnj.js → Chart.C79YrYuT.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.DDE6wagx.js → ChatBubbleAssistant.CVFn_NoB.js} +3 -3
- package/dist/chunks/{HistoryEntry.Bwb54pyq.js → HistoryEntry.B-ZUT5Nr.js} +2 -2
- package/dist/chunks/{LNWAZHJI.CsMjKeDy.js → LNWAZHJI.UC1-wqRa.js} +1 -1
- package/dist/chunks/{ProfileEntry.C68D2YNq.js → ProfileEntry.DaJnIWsM.js} +2 -2
- package/dist/chunks/{SettingsEntry.Cz8kWB5X.js → SettingsEntry.BBpxzySb.js} +34 -34
- package/dist/chunks/{UsageEntry.BPnFpida.js → UsageEntry.Clf6VYny.js} +3 -3
- package/dist/chunks/{index.DXEgUSxs.js → index.Be1V058M.js} +1 -1
- package/dist/chunks/{index.BelZuQjs.js → index.C5JI91s5.js} +216 -214
- package/dist/chunks/{index.DVMqsazP.js → index.Cofzonux.js} +1 -1
- package/dist/chunks/{index.Cuvb46-v.js → index.Cp15FWas.js} +1 -1
- package/dist/chunks/{index.BMH9B-L4.js → index.DTK3bagF.js} +2 -2
- package/dist/chunks/{index.5cZ0mkHb.js → index.vFNj1J0u.js} +3 -3
- package/dist/chunks/{useMarkdown.FF5vDuZM.js → useMarkdown.FhgT7Fw1.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +3 -3
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx as y, jsxs as X, Fragment as on } from "react/jsx-runtime";
|
2
2
|
import * as te from "react";
|
3
|
-
import fe, { createContext as cn, useReducer as ln, useCallback as ue, useRef as
|
3
|
+
import fe, { createContext as cn, useReducer as ln, useCallback as ue, useRef as j, useEffect as Z, useSyncExternalStore as xs, useContext as pr, useLayoutEffect as gt, useState as le, useMemo as Rt, useId as un, Suspense as $s, lazy as Ds } from "react";
|
4
4
|
import g from "clsx";
|
5
5
|
var _t = class {
|
6
6
|
constructor() {
|
@@ -99,7 +99,7 @@ function er(e, t) {
|
|
99
99
|
}
|
100
100
|
return t;
|
101
101
|
}
|
102
|
-
function
|
102
|
+
function iu(e, t) {
|
103
103
|
if (!t || Object.keys(e).length !== Object.keys(t).length)
|
104
104
|
return !1;
|
105
105
|
for (const r in e)
|
@@ -157,10 +157,10 @@ function dn(e, t) {
|
|
157
157
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
|
158
158
|
), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === bt ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
159
159
|
}
|
160
|
-
function
|
160
|
+
function au(e, t) {
|
161
161
|
return typeof e == "function" ? e(...t) : !!e;
|
162
162
|
}
|
163
|
-
var
|
163
|
+
var Ws = class extends _t {
|
164
164
|
#e;
|
165
165
|
#t;
|
166
166
|
#r;
|
@@ -197,7 +197,7 @@ var js = class extends _t {
|
|
197
197
|
isFocused() {
|
198
198
|
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
|
199
199
|
}
|
200
|
-
}, fn = new
|
200
|
+
}, fn = new Ws(), js = class extends _t {
|
201
201
|
#e = !0;
|
202
202
|
#t;
|
203
203
|
#r;
|
@@ -228,7 +228,7 @@ var js = class extends _t {
|
|
228
228
|
isOnline() {
|
229
229
|
return this.#e;
|
230
230
|
}
|
231
|
-
},
|
231
|
+
}, We = new js();
|
232
232
|
function Gs() {
|
233
233
|
let e, t;
|
234
234
|
const r = new Promise((s, i) => {
|
@@ -255,7 +255,7 @@ function qs(e) {
|
|
255
255
|
return Math.min(1e3 * 2 ** e, 3e4);
|
256
256
|
}
|
257
257
|
function hn(e) {
|
258
|
-
return (e ?? "online") === "online" ?
|
258
|
+
return (e ?? "online") === "online" ? We.isOnline() : !0;
|
259
259
|
}
|
260
260
|
var mn = class extends Error {
|
261
261
|
constructor(e) {
|
@@ -270,7 +270,7 @@ function yn(e) {
|
|
270
270
|
t = !0;
|
271
271
|
}, c = () => {
|
272
272
|
t = !1;
|
273
|
-
}, d = () => fn.isFocused() && (e.networkMode === "always" ||
|
273
|
+
}, d = () => fn.isFocused() && (e.networkMode === "always" || We.isOnline()) && e.canRun(), u = () => hn(e.networkMode) && e.canRun(), l = (p) => {
|
274
274
|
i() || (n?.(), s.resolve(p));
|
275
275
|
}, f = (p) => {
|
276
276
|
i() || (n?.(), s.reject(p));
|
@@ -1124,7 +1124,7 @@ var si = class {
|
|
1124
1124
|
mount() {
|
1125
1125
|
this.#o++, this.#o === 1 && (this.#a = fn.subscribe(async (e) => {
|
1126
1126
|
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
1127
|
-
}), this.#i =
|
1127
|
+
}), this.#i = We.subscribe(async (e) => {
|
1128
1128
|
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
1129
1129
|
}));
|
1130
1130
|
}
|
@@ -1249,7 +1249,7 @@ var si = class {
|
|
1249
1249
|
return e.behavior = $r(e.pages), this.ensureQueryData(e);
|
1250
1250
|
}
|
1251
1251
|
resumePausedMutations() {
|
1252
|
-
return
|
1252
|
+
return We.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
1253
1253
|
}
|
1254
1254
|
getQueryCache() {
|
1255
1255
|
return this.#e;
|
@@ -1459,7 +1459,7 @@ function ui(e, t, r) {
|
|
1459
1459
|
mutate: h
|
1460
1460
|
}];
|
1461
1461
|
}
|
1462
|
-
function
|
1462
|
+
function ou(e) {
|
1463
1463
|
return ae(e, !1);
|
1464
1464
|
}
|
1465
1465
|
function G(e) {
|
@@ -1472,7 +1472,7 @@ function G(e) {
|
|
1472
1472
|
x = t;
|
1473
1473
|
}
|
1474
1474
|
}
|
1475
|
-
function
|
1475
|
+
function cu(e, t, r) {
|
1476
1476
|
const n = Array.isArray(e);
|
1477
1477
|
let s, i = r && r.defer;
|
1478
1478
|
return (o) => {
|
@@ -1490,7 +1490,7 @@ function ou(e, t, r) {
|
|
1490
1490
|
function di(e) {
|
1491
1491
|
En(() => G(e));
|
1492
1492
|
}
|
1493
|
-
function
|
1493
|
+
function je(e) {
|
1494
1494
|
return I === null || (I.cleanups === null ? I.cleanups = [e] : I.cleanups.push(e)), e;
|
1495
1495
|
}
|
1496
1496
|
function fi() {
|
@@ -1515,11 +1515,11 @@ function hi(e) {
|
|
1515
1515
|
return ae(e, !1), x = I = null, n ? n.done : void 0;
|
1516
1516
|
});
|
1517
1517
|
}
|
1518
|
-
var [mi,
|
1519
|
-
function
|
1518
|
+
var [mi, lu] = /* @__PURE__ */ Y(!1);
|
1519
|
+
function uu() {
|
1520
1520
|
return [mi, hi];
|
1521
1521
|
}
|
1522
|
-
function
|
1522
|
+
function du(e, t) {
|
1523
1523
|
const r = Symbol("context");
|
1524
1524
|
return {
|
1525
1525
|
id: r,
|
@@ -1527,7 +1527,7 @@ function uu(e, t) {
|
|
1527
1527
|
defaultValue: e
|
1528
1528
|
};
|
1529
1529
|
}
|
1530
|
-
function
|
1530
|
+
function fu(e) {
|
1531
1531
|
let t;
|
1532
1532
|
return I && I.context && (t = I.context[e.id]) !== void 0 ? t : e.defaultValue;
|
1533
1533
|
}
|
@@ -1714,7 +1714,7 @@ function At(e) {
|
|
1714
1714
|
}
|
1715
1715
|
function wi(e, t, r = {}) {
|
1716
1716
|
let n = [], s = [], i = [], o = 0, a = t.length > 1 ? [] : null;
|
1717
|
-
return
|
1717
|
+
return je(() => At(i)), () => {
|
1718
1718
|
let c = e() || [], d = c.length, u, l;
|
1719
1719
|
return G(() => {
|
1720
1720
|
let h, m, p, b, w, k, S, O, _;
|
@@ -1749,7 +1749,7 @@ function wi(e, t, r = {}) {
|
|
1749
1749
|
}
|
1750
1750
|
function vi(e, t, r = {}) {
|
1751
1751
|
let n = [], s = [], i = [], o = [], a = 0, c;
|
1752
|
-
return
|
1752
|
+
return je(() => At(i)), () => {
|
1753
1753
|
const d = e() || [], u = d.length;
|
1754
1754
|
return G(() => {
|
1755
1755
|
if (u === 0)
|
@@ -1907,23 +1907,23 @@ function Ii(e) {
|
|
1907
1907
|
return n.preload = () => r || ((r = e()).then((s) => t = () => s.default), r), n;
|
1908
1908
|
}
|
1909
1909
|
var ki = 0;
|
1910
|
-
function
|
1910
|
+
function hu() {
|
1911
1911
|
return `cl-${ki++}`;
|
1912
1912
|
}
|
1913
1913
|
var Rn = (e) => `Stale read from <${e}>.`;
|
1914
|
-
function
|
1914
|
+
function mu(e) {
|
1915
1915
|
const t = "fallback" in e && {
|
1916
1916
|
fallback: () => e.fallback
|
1917
1917
|
};
|
1918
1918
|
return K(wi(() => e.each, e.children, t || void 0));
|
1919
1919
|
}
|
1920
|
-
function
|
1920
|
+
function yu(e) {
|
1921
1921
|
const t = "fallback" in e && {
|
1922
1922
|
fallback: () => e.fallback
|
1923
1923
|
};
|
1924
1924
|
return K(vi(() => e.each, e.children, t || void 0));
|
1925
1925
|
}
|
1926
|
-
function
|
1926
|
+
function pu(e) {
|
1927
1927
|
const t = e.keyed, r = K(() => e.when, void 0, void 0), n = t ? r : K(r, void 0, {
|
1928
1928
|
equals: (s, i) => !s == !i
|
1929
1929
|
});
|
@@ -1939,7 +1939,7 @@ function yu(e) {
|
|
1939
1939
|
return e.fallback;
|
1940
1940
|
}, void 0, void 0);
|
1941
1941
|
}
|
1942
|
-
function
|
1942
|
+
function gu(e) {
|
1943
1943
|
const t = Tn(() => e.children), r = K(() => {
|
1944
1944
|
const n = t(), s = Array.isArray(n) ? n : [n];
|
1945
1945
|
let i = () => {
|
@@ -1962,7 +1962,7 @@ function pu(e) {
|
|
1962
1962
|
})) : a;
|
1963
1963
|
}, void 0, void 0);
|
1964
1964
|
}
|
1965
|
-
function
|
1965
|
+
function bu(e) {
|
1966
1966
|
return e;
|
1967
1967
|
}
|
1968
1968
|
var Oi = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], Ri = /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...Oi]), _i = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), Ci = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
@@ -2082,7 +2082,7 @@ var xi = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextme
|
|
2082
2082
|
]), Di = {
|
2083
2083
|
xlink: "http://www.w3.org/1999/xlink",
|
2084
2084
|
xml: "http://www.w3.org/XML/1998/namespace"
|
2085
|
-
},
|
2085
|
+
}, wu = (e) => K(() => e());
|
2086
2086
|
function Mi(e, t, r) {
|
2087
2087
|
let n = r.length, s = t.length, i = n, o = 0, a = 0, c = t[s - 1].nextSibling, d = null;
|
2088
2088
|
for (; o < s || a < i; ) {
|
@@ -2131,7 +2131,7 @@ function Li(e, t, r, n = {}) {
|
|
2131
2131
|
s(), t.textContent = "";
|
2132
2132
|
};
|
2133
2133
|
}
|
2134
|
-
function
|
2134
|
+
function vu(e, t, r, n) {
|
2135
2135
|
let s;
|
2136
2136
|
const i = () => {
|
2137
2137
|
const a = document.createElement("template");
|
@@ -2146,7 +2146,7 @@ function Ui(e, t = window.document) {
|
|
2146
2146
|
r.has(i) || (r.add(i), t.addEventListener(i, _n));
|
2147
2147
|
}
|
2148
2148
|
}
|
2149
|
-
function
|
2149
|
+
function Eu(e = window.document) {
|
2150
2150
|
if (e[Ue]) {
|
2151
2151
|
for (let t of e[Ue].keys()) e.removeEventListener(t, _n);
|
2152
2152
|
delete e[Ue];
|
@@ -2185,7 +2185,7 @@ function Vi(e, t, r = {}) {
|
|
2185
2185
|
}
|
2186
2186
|
return r;
|
2187
2187
|
}
|
2188
|
-
function
|
2188
|
+
function Wi(e, t, r) {
|
2189
2189
|
if (!t) return r ? ir(e, "style") : t;
|
2190
2190
|
const n = e.style;
|
2191
2191
|
if (typeof t == "string") return n.cssText = t;
|
@@ -2197,7 +2197,7 @@ function ji(e, t, r) {
|
|
2197
2197
|
s = t[i], s !== r[i] && (n.setProperty(i, s), r[i] = s);
|
2198
2198
|
return r;
|
2199
2199
|
}
|
2200
|
-
function
|
2200
|
+
function ji(e, t = {}, r, n) {
|
2201
2201
|
const s = {};
|
2202
2202
|
return n || Te(() => s.children = qe(e, t.children, s.children)), Te(() => typeof t.ref == "function" && Gi(t.ref, e)), Te(() => qi(e, t, r, !0, s, !0)), s;
|
2203
2203
|
}
|
@@ -2231,7 +2231,7 @@ function Mr(e, t, r) {
|
|
2231
2231
|
}
|
2232
2232
|
function Lr(e, t, r, n, s, i, o) {
|
2233
2233
|
let a, c, d, u, l;
|
2234
|
-
if (t === "style") return
|
2234
|
+
if (t === "style") return Wi(e, r, n);
|
2235
2235
|
if (t === "classList") return Vi(e, r, n);
|
2236
2236
|
if (r === n) return n;
|
2237
2237
|
if (t === "ref")
|
@@ -2377,7 +2377,7 @@ var zi = "http://www.w3.org/2000/svg";
|
|
2377
2377
|
function Cn(e, t = !1) {
|
2378
2378
|
return t ? document.createElementNS(zi, e) : document.createElement(e);
|
2379
2379
|
}
|
2380
|
-
function
|
2380
|
+
function Su(e) {
|
2381
2381
|
const {
|
2382
2382
|
useShadow: t
|
2383
2383
|
} = e, r = document.createTextNode(""), n = () => e.mount || document.body, s = fi();
|
@@ -2387,7 +2387,7 @@ function Eu(e) {
|
|
2387
2387
|
const o = n();
|
2388
2388
|
if (o instanceof HTMLHeadElement) {
|
2389
2389
|
const [a, c] = Y(!1), d = () => c(!0);
|
2390
|
-
Se((u) => ar(o, () => a() ? u() : i(), null)),
|
2390
|
+
Se((u) => ar(o, () => a() ? u() : i(), null)), je(d);
|
2391
2391
|
} else {
|
2392
2392
|
const a = Cn(e.isSVG ? "g" : "div", e.isSVG), c = t && a.attachShadow ? a.attachShadow({
|
2393
2393
|
mode: "open"
|
@@ -2397,7 +2397,7 @@ function Eu(e) {
|
|
2397
2397
|
return r.parentNode;
|
2398
2398
|
},
|
2399
2399
|
configurable: !0
|
2400
|
-
}), ar(c, i), o.appendChild(a), e.ref && e.ref(a),
|
2400
|
+
}), ar(c, i), o.appendChild(a), e.ref && e.ref(a), je(() => o.removeChild(a));
|
2401
2401
|
}
|
2402
2402
|
}, void 0, {
|
2403
2403
|
render: !0
|
@@ -2412,11 +2412,11 @@ function Qi(e, t) {
|
|
2412
2412
|
return G(() => n(t));
|
2413
2413
|
case "string":
|
2414
2414
|
const s = $i.has(n), i = Cn(n, s);
|
2415
|
-
return
|
2415
|
+
return ji(i, t, s), i;
|
2416
2416
|
}
|
2417
2417
|
});
|
2418
2418
|
}
|
2419
|
-
function
|
2419
|
+
function Tu(e) {
|
2420
2420
|
const [, t] = Ai(e, ["component"]);
|
2421
2421
|
return Qi(() => e.component, t);
|
2422
2422
|
}
|
@@ -2832,14 +2832,14 @@ var Vn = (e, t, r, n, s = [], i = [], o = /* @__PURE__ */ new Map()) => {
|
|
2832
2832
|
};
|
2833
2833
|
return a || o.set(e, f), f;
|
2834
2834
|
};
|
2835
|
-
function
|
2835
|
+
function Wn(e) {
|
2836
2836
|
return Object.prototype.toString.call(e).slice(8, -1);
|
2837
2837
|
}
|
2838
2838
|
function Br(e) {
|
2839
|
-
return
|
2839
|
+
return Wn(e) === "Array";
|
2840
2840
|
}
|
2841
2841
|
function Aa(e) {
|
2842
|
-
if (
|
2842
|
+
if (Wn(e) !== "Object")
|
2843
2843
|
return !1;
|
2844
2844
|
const t = Object.getPrototypeOf(e);
|
2845
2845
|
return !!t && t.constructor === Object && t === Object.prototype;
|
@@ -2923,42 +2923,42 @@ C.registerClass = C.defaultInstance.registerClass.bind(C.defaultInstance);
|
|
2923
2923
|
C.registerSymbol = C.defaultInstance.registerSymbol.bind(C.defaultInstance);
|
2924
2924
|
C.registerCustom = C.defaultInstance.registerCustom.bind(C.defaultInstance);
|
2925
2925
|
C.allowErrorProps = C.defaultInstance.allowErrorProps.bind(C.defaultInstance);
|
2926
|
-
var ka = C.serialize,
|
2927
|
-
function
|
2926
|
+
var ka = C.serialize, Au = C.stringify;
|
2927
|
+
function Iu(e) {
|
2928
2928
|
return e.state.fetchStatus === "fetching" ? "fetching" : e.getObserversCount() ? e.state.fetchStatus === "paused" ? "paused" : e.isStale() ? "stale" : "fresh" : "inactive";
|
2929
2929
|
}
|
2930
|
-
function
|
2930
|
+
function ku(e, t) {
|
2931
2931
|
return `${e}${t.charAt(0).toUpperCase() + t.slice(1)}`;
|
2932
2932
|
}
|
2933
|
-
function
|
2933
|
+
function Ou({
|
2934
2934
|
queryState: e,
|
2935
2935
|
observerCount: t,
|
2936
2936
|
isStale: r
|
2937
2937
|
}) {
|
2938
2938
|
return e.fetchStatus === "fetching" ? "blue" : t ? e.fetchStatus === "paused" ? "purple" : r ? "yellow" : "green" : "gray";
|
2939
2939
|
}
|
2940
|
-
function
|
2940
|
+
function Ru({
|
2941
2941
|
status: e,
|
2942
2942
|
isPaused: t
|
2943
2943
|
}) {
|
2944
2944
|
return t ? "purple" : e === "error" ? "red" : e === "pending" ? "yellow" : e === "success" ? "green" : "gray";
|
2945
2945
|
}
|
2946
|
-
function
|
2946
|
+
function _u(e) {
|
2947
2947
|
return e === "fresh" ? "green" : e === "stale" ? "yellow" : e === "paused" ? "purple" : e === "inactive" ? "gray" : "blue";
|
2948
2948
|
}
|
2949
|
-
var
|
2949
|
+
var Cu = (e, t = !1) => {
|
2950
2950
|
const {
|
2951
2951
|
json: r
|
2952
2952
|
} = ka(e);
|
2953
2953
|
return JSON.stringify(r, null, t ? 2 : void 0);
|
2954
|
-
}, rt = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, Oa = (e, t) => e.queryHash.localeCompare(t.queryHash),
|
2954
|
+
}, rt = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, Oa = (e, t) => e.queryHash.localeCompare(t.queryHash), jn = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, Ra = (e, t) => rt(e) === rt(t) ? jn(e, t) : rt(e) > rt(t) ? 1 : -1, Nu = {
|
2955
2955
|
status: Ra,
|
2956
2956
|
"query hash": Oa,
|
2957
|
-
"last updated":
|
2958
|
-
}, nt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, Gn = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, _a = (e, t) => nt(e) === nt(t) ? Gn(e, t) : nt(e) > nt(t) ? 1 : -1,
|
2957
|
+
"last updated": jn
|
2958
|
+
}, nt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, Gn = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, _a = (e, t) => nt(e) === nt(t) ? Gn(e, t) : nt(e) > nt(t) ? 1 : -1, Pu = {
|
2959
2959
|
status: _a,
|
2960
2960
|
"last updated": Gn
|
2961
|
-
},
|
2961
|
+
}, xu = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), $u = () => {
|
2962
2962
|
const [e, t] = Y("dark");
|
2963
2963
|
return di(() => {
|
2964
2964
|
const r = window.matchMedia("(prefers-color-scheme: dark)");
|
@@ -2966,7 +2966,7 @@ var _u = (e, t = !1) => {
|
|
2966
2966
|
const n = (s) => {
|
2967
2967
|
t(s.matches ? "dark" : "light");
|
2968
2968
|
};
|
2969
|
-
r.addEventListener("change", n),
|
2969
|
+
r.addEventListener("change", n), je(() => r.removeEventListener("change", n));
|
2970
2970
|
}), e;
|
2971
2971
|
}, st = (e, t, r) => {
|
2972
2972
|
if (t.length === 0)
|
@@ -3084,7 +3084,7 @@ var _u = (e, t = !1) => {
|
|
3084
3084
|
const t = Li(() => {
|
3085
3085
|
const r = this, [n] = this.#i, [s] = this.#c, [i] = this.#l, [o] = this.#u, [a] = this.#f, [c] = this.#e;
|
3086
3086
|
let d;
|
3087
|
-
return this.#d ? d = this.#d : (d = Ii(() => import("./LNWAZHJI.
|
3087
|
+
return this.#d ? d = this.#d : (d = Ii(() => import("./LNWAZHJI.UC1-wqRa.js")), this.#d = d), Ca(this.#o, this.#a), Ei(d, Ti({
|
3088
3088
|
get queryFlavor() {
|
3089
3089
|
return r.#r;
|
3090
3090
|
},
|
@@ -3140,7 +3140,7 @@ function Pa(e) {
|
|
3140
3140
|
client: t,
|
3141
3141
|
queryFlavor: "React Query",
|
3142
3142
|
version: "5",
|
3143
|
-
onlineManager:
|
3143
|
+
onlineManager: We,
|
3144
3144
|
buttonPosition: n,
|
3145
3145
|
position: s,
|
3146
3146
|
initialIsOpen: i,
|
@@ -3186,7 +3186,7 @@ const Ke = {
|
|
3186
3186
|
PASSKEY: "passkey"
|
3187
3187
|
}, qn = {
|
3188
3188
|
CLIENT_ID: "X-Auth-ClientId"
|
3189
|
-
},
|
3189
|
+
}, W = {
|
3190
3190
|
ALG: "RS256",
|
3191
3191
|
USER_ID_KEY: "sub",
|
3192
3192
|
USERNAME_KEY: "username",
|
@@ -3400,11 +3400,11 @@ const es = (e) => Xn(e) || Zn(e), Va = (...e) => {
|
|
3400
3400
|
}
|
3401
3401
|
return !0;
|
3402
3402
|
};
|
3403
|
-
function
|
3403
|
+
function Wa(e) {
|
3404
3404
|
return typeof e == "object" && e !== null;
|
3405
3405
|
}
|
3406
3406
|
const Ye = (e) => {
|
3407
|
-
if (!
|
3407
|
+
if (!Wa(e) || Object.prototype.toString.call(e) !== "[object Object]")
|
3408
3408
|
return !1;
|
3409
3409
|
if (Object.getPrototypeOf(e) === null)
|
3410
3410
|
return !0;
|
@@ -3412,7 +3412,7 @@ const Ye = (e) => {
|
|
3412
3412
|
for (; Object.getPrototypeOf(t) !== null; )
|
3413
3413
|
t = Object.getPrototypeOf(t);
|
3414
3414
|
return Object.getPrototypeOf(e) === t;
|
3415
|
-
},
|
3415
|
+
}, ja = (e, t) => {
|
3416
3416
|
if (e.startsWith("RS") || e.startsWith("PS")) {
|
3417
3417
|
const { modulusLength: r } = t.algorithm;
|
3418
3418
|
if (typeof r != "number" || r < 2048)
|
@@ -3842,7 +3842,7 @@ const Vr = async (e, t, r, n = !1) => {
|
|
3842
3842
|
return Ha(t, e, r), t;
|
3843
3843
|
}, uo = async (e, t, r, n) => {
|
3844
3844
|
const s = await lo(e, t, "verify");
|
3845
|
-
|
3845
|
+
ja(e, s);
|
3846
3846
|
const i = co(e, s.algorithm);
|
3847
3847
|
try {
|
3848
3848
|
return await crypto.subtle.verify(i, s, r, n);
|
@@ -3923,7 +3923,7 @@ async function ho(e, t, r) {
|
|
3923
3923
|
const a = await fo({ payload: s, protected: n, signature: i }, t, r), c = { payload: a.payload, protectedHeader: a.protectedHeader };
|
3924
3924
|
return typeof t == "function" ? { ...c, key: a.key } : c;
|
3925
3925
|
}
|
3926
|
-
const mo = (e) => Math.floor(e.getTime() / 1e3), ts = 60, rs = ts * 60, vr = rs * 24, yo = vr * 7, po = vr * 365.25, go = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,
|
3926
|
+
const mo = (e) => Math.floor(e.getTime() / 1e3), ts = 60, rs = ts * 60, vr = rs * 24, yo = vr * 7, po = vr * 365.25, go = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, Wr = (e) => {
|
3927
3927
|
const t = go.exec(e);
|
3928
3928
|
if (!t || t[4] && t[1])
|
3929
3929
|
throw new TypeError("Invalid time period format");
|
@@ -3966,7 +3966,7 @@ const mo = (e) => Math.floor(e.getTime() / 1e3), ts = 60, rs = ts * 60, vr = rs
|
|
3966
3966
|
break;
|
3967
3967
|
}
|
3968
3968
|
return t[1] === "-" || t[4] === "ago" ? -s : s;
|
3969
|
-
},
|
3969
|
+
}, jr = (e) => e.toLowerCase().replace(/^application\//, ""), bo = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
|
3970
3970
|
function wo(e, t, r = {}) {
|
3971
3971
|
let n;
|
3972
3972
|
try {
|
@@ -3976,7 +3976,7 @@ function wo(e, t, r = {}) {
|
|
3976
3976
|
if (!Ye(n))
|
3977
3977
|
throw new se("JWT Claims Set must be a top-level JSON object");
|
3978
3978
|
const { typ: s } = r;
|
3979
|
-
if (s && (typeof e.typ != "string" ||
|
3979
|
+
if (s && (typeof e.typ != "string" || jr(e.typ) !== jr(s)))
|
3980
3980
|
throw new ee('unexpected "typ" JWT header value', n, "typ", "check_failed");
|
3981
3981
|
const { requiredClaims: i = [], issuer: o, subject: a, audience: c, maxTokenAge: d } = r, u = [...i];
|
3982
3982
|
d !== void 0 && u.push("iat"), c !== void 0 && u.push("aud"), a !== void 0 && u.push("sub"), o !== void 0 && u.push("iss");
|
@@ -3992,7 +3992,7 @@ function wo(e, t, r = {}) {
|
|
3992
3992
|
let l;
|
3993
3993
|
switch (typeof r.clockTolerance) {
|
3994
3994
|
case "string":
|
3995
|
-
l =
|
3995
|
+
l = Wr(r.clockTolerance);
|
3996
3996
|
break;
|
3997
3997
|
case "number":
|
3998
3998
|
l = r.clockTolerance;
|
@@ -4019,7 +4019,7 @@ function wo(e, t, r = {}) {
|
|
4019
4019
|
throw new fr('"exp" claim timestamp check failed', n, "exp", "check_failed");
|
4020
4020
|
}
|
4021
4021
|
if (d) {
|
4022
|
-
const m = h - n.iat, p = typeof d == "number" ? d :
|
4022
|
+
const m = h - n.iat, p = typeof d == "number" ? d : Wr(d);
|
4023
4023
|
if (m - l > p)
|
4024
4024
|
throw new fr('"iat" claim timestamp check failed (too far in the past)', n, "iat", "check_failed");
|
4025
4025
|
if (m < 0 - l)
|
@@ -4063,9 +4063,9 @@ function Eo(e) {
|
|
4063
4063
|
}
|
4064
4064
|
const Xe = async (e) => {
|
4065
4065
|
try {
|
4066
|
-
const t =
|
4066
|
+
const t = W.ALG, r = await Ya(Ma, t);
|
4067
4067
|
return await vo(e, r, {
|
4068
|
-
issuer:
|
4068
|
+
issuer: W.ISSUER
|
4069
4069
|
});
|
4070
4070
|
} catch {
|
4071
4071
|
return;
|
@@ -4330,7 +4330,7 @@ async function Lo(e) {
|
|
4330
4330
|
try {
|
4331
4331
|
l = c.getPublicKeyAlgorithm();
|
4332
4332
|
} catch (m) {
|
4333
|
-
|
4333
|
+
Wt("getPublicKeyAlgorithm()", m);
|
4334
4334
|
}
|
4335
4335
|
let f;
|
4336
4336
|
if (typeof c.getPublicKey == "function")
|
@@ -4338,14 +4338,14 @@ async function Lo(e) {
|
|
4338
4338
|
const m = c.getPublicKey();
|
4339
4339
|
m !== null && (f = ie(m));
|
4340
4340
|
} catch (m) {
|
4341
|
-
|
4341
|
+
Wt("getPublicKey()", m);
|
4342
4342
|
}
|
4343
4343
|
let h;
|
4344
4344
|
if (typeof c.getAuthenticatorData == "function")
|
4345
4345
|
try {
|
4346
4346
|
h = ie(c.getAuthenticatorData());
|
4347
4347
|
} catch (m) {
|
4348
|
-
|
4348
|
+
Wt("getAuthenticatorData()", m);
|
4349
4349
|
}
|
4350
4350
|
return {
|
4351
4351
|
id: o,
|
@@ -4363,17 +4363,17 @@ async function Lo(e) {
|
|
4363
4363
|
authenticatorAttachment: os(i.authenticatorAttachment)
|
4364
4364
|
};
|
4365
4365
|
}
|
4366
|
-
function
|
4366
|
+
function Wt(e, t) {
|
4367
4367
|
console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
|
4368
4368
|
`, t);
|
4369
4369
|
}
|
4370
4370
|
function Uo() {
|
4371
4371
|
if (!Er())
|
4372
|
-
return
|
4372
|
+
return jt.stubThis(new Promise((t) => t(!1)));
|
4373
4373
|
const e = globalThis.PublicKeyCredential;
|
4374
|
-
return e?.isConditionalMediationAvailable === void 0 ?
|
4374
|
+
return e?.isConditionalMediationAvailable === void 0 ? jt.stubThis(new Promise((t) => t(!1))) : jt.stubThis(e.isConditionalMediationAvailable());
|
4375
4375
|
}
|
4376
|
-
const
|
4376
|
+
const jt = {
|
4377
4377
|
stubThis: (e) => e
|
4378
4378
|
};
|
4379
4379
|
function Fo({ error: e, options: t }) {
|
@@ -4506,21 +4506,21 @@ function Vo(e, t = 0) {
|
|
4506
4506
|
return (B[e[t + 0]] + B[e[t + 1]] + B[e[t + 2]] + B[e[t + 3]] + "-" + B[e[t + 4]] + B[e[t + 5]] + "-" + B[e[t + 6]] + B[e[t + 7]] + "-" + B[e[t + 8]] + B[e[t + 9]] + "-" + B[e[t + 10]] + B[e[t + 11]] + B[e[t + 12]] + B[e[t + 13]] + B[e[t + 14]] + B[e[t + 15]]).toLowerCase();
|
4507
4507
|
}
|
4508
4508
|
let Gt;
|
4509
|
-
const
|
4510
|
-
function
|
4509
|
+
const Wo = new Uint8Array(16);
|
4510
|
+
function jo() {
|
4511
4511
|
if (!Gt) {
|
4512
4512
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
4513
4513
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
4514
4514
|
Gt = crypto.getRandomValues.bind(crypto);
|
4515
4515
|
}
|
4516
|
-
return Gt(
|
4516
|
+
return Gt(Wo);
|
4517
4517
|
}
|
4518
4518
|
const Go = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Yr = { randomUUID: Go };
|
4519
4519
|
function qt(e, t, r) {
|
4520
4520
|
if (Yr.randomUUID && !e)
|
4521
4521
|
return Yr.randomUUID();
|
4522
4522
|
e = e || {};
|
4523
|
-
const n = e.random ?? e.rng?.() ??
|
4523
|
+
const n = e.random ?? e.rng?.() ?? jo();
|
4524
4524
|
if (n.length < 16)
|
4525
4525
|
throw new Error("Random bytes length must be >= 16");
|
4526
4526
|
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Vo(n);
|
@@ -4690,7 +4690,7 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
4690
4690
|
}, Xo = (e) => {
|
4691
4691
|
try {
|
4692
4692
|
const t = So(e);
|
4693
|
-
return t ? t[
|
4693
|
+
return t ? t[W.USER_ID_KEY] : "";
|
4694
4694
|
} catch {
|
4695
4695
|
return "";
|
4696
4696
|
}
|
@@ -4749,12 +4749,12 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
4749
4749
|
ua: d
|
4750
4750
|
}
|
4751
4751
|
}), f = await Xe(l?.data?.idToken);
|
4752
|
-
return f && f.payload[
|
4752
|
+
return f && f.payload[W.USER_ID_KEY] !== "" && f.payload[W.NONCE_KEY] === n ? {
|
4753
4753
|
idToken: l.data.idToken,
|
4754
4754
|
accessToken: l.data.accessToken,
|
4755
4755
|
refreshToken: l.data.refreshToken,
|
4756
|
-
userId: f.payload[
|
4757
|
-
email: f.payload[
|
4756
|
+
userId: f.payload[W.USER_ID_KEY],
|
4757
|
+
email: f.payload[W.EMAIL_KEY],
|
4758
4758
|
status: !0
|
4759
4759
|
} : {
|
4760
4760
|
status: !1
|
@@ -4817,10 +4817,10 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
4817
4817
|
domain: i
|
4818
4818
|
}
|
4819
4819
|
}), c = await Xe(a?.data?.accessToken);
|
4820
|
-
return c && c.payload[
|
4820
|
+
return c && c.payload[W.USER_ID_KEY] !== "" && c.payload[W.NONCE_KEY] === r ? {
|
4821
4821
|
accessToken: a.data.accessToken,
|
4822
4822
|
refreshToken: a.data.refreshToken,
|
4823
|
-
userId: c.payload[
|
4823
|
+
userId: c.payload[W.USER_ID_KEY],
|
4824
4824
|
status: !0
|
4825
4825
|
} : {
|
4826
4826
|
status: !1
|
@@ -4863,7 +4863,7 @@ class nc {
|
|
4863
4863
|
domain: i
|
4864
4864
|
}) {
|
4865
4865
|
const o = await Xe(this.refreshToken);
|
4866
|
-
if (o && o.payload[
|
4866
|
+
if (o && o.payload[W.USER_ID_KEY] !== "") {
|
4867
4867
|
const a = await rc({
|
4868
4868
|
endpoint: t,
|
4869
4869
|
clientId: r,
|
@@ -4941,7 +4941,7 @@ const Ce = () => {
|
|
4941
4941
|
const [o, a] = ln(oc, {
|
4942
4942
|
...hs,
|
4943
4943
|
debug: s
|
4944
|
-
}), c = ic(s), d =
|
4944
|
+
}), c = ic(s), d = j(!1), [u, l, , f] = ot({
|
4945
4945
|
key: `${ct}::${r}::@@user@@`
|
4946
4946
|
}), [h, m, , p] = ot({
|
4947
4947
|
key: `${ct}::${r}::@@access@@`
|
@@ -5001,14 +5001,14 @@ const Ce = () => {
|
|
5001
5001
|
return o.isLoading && u !== null ? (async () => {
|
5002
5002
|
try {
|
5003
5003
|
const T = await Xe(u);
|
5004
|
-
T && T.payload[
|
5004
|
+
T && T.payload[W.USER_ID_KEY] !== "" ? (c("useEffect: setting the authentication state"), a({
|
5005
5005
|
type: yt,
|
5006
5006
|
payload: {
|
5007
|
-
authenticationType: T.payload[
|
5007
|
+
authenticationType: T.payload[W.AUTH_TYPE_KEY],
|
5008
5008
|
user: {
|
5009
|
-
userId: T.payload[
|
5010
|
-
username: T.payload[
|
5011
|
-
email: T.payload[
|
5009
|
+
userId: T.payload[W.USER_ID_KEY],
|
5010
|
+
username: T.payload[W.USERNAME_KEY],
|
5011
|
+
email: T.payload[W.EMAIL_KEY]
|
5012
5012
|
}
|
5013
5013
|
}
|
5014
5014
|
})) : (c("useEffect: invalid JWT, invalidating and logging out"), await R(Oe));
|
@@ -5067,7 +5067,7 @@ const Ce = () => {
|
|
5067
5067
|
if (h) {
|
5068
5068
|
c("getAccessToken");
|
5069
5069
|
const ye = await Xe(h);
|
5070
|
-
if (ye && ye.payload[
|
5070
|
+
if (ye && ye.payload[W.USER_ID_KEY] !== "")
|
5071
5071
|
return h;
|
5072
5072
|
}
|
5073
5073
|
c("getAccessToken: invalid access token, trying to refresh it");
|
@@ -5232,7 +5232,7 @@ const ys = () => {
|
|
5232
5232
|
if (!e)
|
5233
5233
|
throw new Error("useAuth must be used within an AuthHookProvider");
|
5234
5234
|
return e;
|
5235
|
-
},
|
5235
|
+
}, Wu = "I'm having trouble right now. Please try again later.", ju = "action-search", Gu = "action-sort", qu = "action-toggle-prompt", Ju = "action-reset-prompt", ps = "sassy-saint-", zu = "search", Qu = "sort", Yu = "sort-timestamp", Xu = "sort-token-usage", Zu = "private-disclosure", ed = "reasoning-disclosure", td = "websearch-disclosure", gs = "service-worker", Zr = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", rd = 10, nd = 30, sd = "av-prompt", id = "av-prompt-editable", ad = "size-5 sm:size-4", od = 30, cd = 15, ld = 130, ud = 16, dd = 24, fd = 76;
|
5236
5236
|
let zt = null;
|
5237
5237
|
function Sr() {
|
5238
5238
|
return "serviceWorker" in navigator;
|
@@ -5281,7 +5281,7 @@ async function dc() {
|
|
5281
5281
|
return console.error("[SW] Service worker un-registration failed:", e), !1;
|
5282
5282
|
}
|
5283
5283
|
}
|
5284
|
-
async function
|
5284
|
+
async function hd(e) {
|
5285
5285
|
if (uc(e), e)
|
5286
5286
|
await bs();
|
5287
5287
|
else {
|
@@ -5556,7 +5556,7 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5556
5556
|
theme: c,
|
5557
5557
|
transition: d,
|
5558
5558
|
icon: u
|
5559
|
-
}),
|
5559
|
+
}), md = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, DOMAIN: vs, convertCamelCaseToReadable: $c, convertDDToDMS: Ar, convertLatitudeToDMS: Ec, convertLongitudeToDMS: Sc, debounce: Pc, durationFormatter: Cc, extractAverage: Oc, getCurrentGeoLocation: Tc, getMainPaddingClass: Ss, getMessageContaintWrapperClass: Es, isDev: Tr, isLastMessageFromRole: Rc, isProbablyMobile: As, isProbablyiPhone: xc, isProd: ws, isTauri: Ts, numberFormatter: _c, obfuscate: Ac, pluralize: Nc, renderDataAsList: kc, toastOptions: Dc, unObfuscate: Ic }, Symbol.toStringTag, { value: "Module" })), tn = "av-button", Mt = "icon", Ir = "button", mr = "link", Mc = ({
|
5560
5560
|
type: e,
|
5561
5561
|
size: t,
|
5562
5562
|
labelRight: r,
|
@@ -5793,14 +5793,14 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5793
5793
|
});
|
5794
5794
|
if (r === "selected")
|
5795
5795
|
return "border border-border-selected-dark";
|
5796
|
-
},
|
5796
|
+
}, Wc = ({
|
5797
5797
|
focusMode: e
|
5798
5798
|
}) => g("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
5799
5799
|
"focus:outline-focus-dark": e === "dark",
|
5800
5800
|
"focus:outline-focus-light": e === "light",
|
5801
5801
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
5802
5802
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
5803
|
-
}),
|
5803
|
+
}), jc = ({
|
5804
5804
|
mode: e,
|
5805
5805
|
raw: t,
|
5806
5806
|
iconClassName: r,
|
@@ -5869,7 +5869,7 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5869
5869
|
}),
|
5870
5870
|
Lc({ type: e, size: a, labelRight: d, labelLeft: u }),
|
5871
5871
|
Vc({ mode: n, variant: f, noBorder: c }),
|
5872
|
-
|
5872
|
+
Wc({ focusMode: s }),
|
5873
5873
|
Hc({ mode: n, variant: f, disabled: i }),
|
5874
5874
|
Bc({ mode: n, variant: f, disabled: i }),
|
5875
5875
|
{
|
@@ -5940,7 +5940,7 @@ const ks = fe.forwardRef(
|
|
5940
5940
|
);
|
5941
5941
|
ks.displayName = "Button";
|
5942
5942
|
function Jc() {
|
5943
|
-
const e =
|
5943
|
+
const e = j(!1);
|
5944
5944
|
return Z(() => (e.current = !0, () => {
|
5945
5945
|
e.current = !1;
|
5946
5946
|
}), []), ue(() => e.current, []);
|
@@ -5964,7 +5964,7 @@ const Qc = {
|
|
5964
5964
|
right: 0
|
5965
5965
|
};
|
5966
5966
|
function Qt(e) {
|
5967
|
-
const t = Jc(), r =
|
5967
|
+
const t = Jc(), r = j(0), n = j(null), [s, i] = le(Qc), o = Rt(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((a) => {
|
5968
5968
|
const c = a[0];
|
5969
5969
|
c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
5970
5970
|
n.current && t() && i(c.contentRect);
|
@@ -6029,7 +6029,7 @@ const ut = {
|
|
6029
6029
|
radius: b,
|
6030
6030
|
variant: w,
|
6031
6031
|
animated: S
|
6032
|
-
}), z =
|
6032
|
+
}), z = jc({ mode: r, raw: a, iconClassName: k, variant: w }), L = Gc({ animated: S }), R = "flex items-center justify-center relative w-full h-full overflow-hidden", [v, N] = Qt(), [E, U] = Qt(), [me, Ae] = Qt(), T = j(0), P = j(null), A = j(null), ye = zc([_, P]);
|
6033
6033
|
return gt(() => {
|
6034
6034
|
me && me.current && S && (T.current = Ae.width + Yc[l] + (c ? 0 : Xc), P.current && !P.current.style.width && (P.current.style.width = `${ut[l]}px`));
|
6035
6035
|
}, [Ae, me, l, c, S]), gt(() => {
|
@@ -6622,7 +6622,7 @@ try {
|
|
6622
6622
|
}
|
6623
6623
|
const Os = "av-text-input", ml = "av-text-input-wrapper", Xt = "av-text-input-helper-text";
|
6624
6624
|
function yl() {
|
6625
|
-
const e =
|
6625
|
+
const e = j(!1);
|
6626
6626
|
return Z(() => (e.current = !0, () => {
|
6627
6627
|
e.current = !1;
|
6628
6628
|
}), []), ue(() => e.current, []);
|
@@ -6638,7 +6638,7 @@ const pl = {
|
|
6638
6638
|
right: 0
|
6639
6639
|
};
|
6640
6640
|
function gl(e) {
|
6641
|
-
const t = yl(), r =
|
6641
|
+
const t = yl(), r = j(0), n = j(null), [s, i] = le(pl), o = Rt(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((a) => {
|
6642
6642
|
const c = a[0];
|
6643
6643
|
c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
6644
6644
|
n.current && t() && i(c.contentRect);
|
@@ -6740,7 +6740,7 @@ function Cs({
|
|
6740
6740
|
visible: a,
|
6741
6741
|
...c
|
6742
6742
|
}) {
|
6743
|
-
const d =
|
6743
|
+
const d = j(null), u = j(null), [l, f] = ln(vl, {
|
6744
6744
|
announcement: null
|
6745
6745
|
});
|
6746
6746
|
let h = r;
|
@@ -6947,7 +6947,7 @@ const Tl = ({
|
|
6947
6947
|
size: w = "md",
|
6948
6948
|
...k
|
6949
6949
|
}, S) => {
|
6950
|
-
const [O, _] = gl(), [q, z] = le(0), L = bl({ id: e, prefix: `${Os}-` }), R = `${t} error, ${m}`, v =
|
6950
|
+
const [O, _] = gl(), [q, z] = le(0), L = bl({ id: e, prefix: `${Os}-` }), R = `${t} error, ${m}`, v = j(null), N = j(null), E = {
|
6951
6951
|
xs: { label: "-25px", helperText: "30px" },
|
6952
6952
|
sm: { label: "-29px", helperText: "34px" },
|
6953
6953
|
md: { label: "-33px", helperText: "38px" },
|
@@ -7056,7 +7056,7 @@ const Cl = 500, Nl = 5e3, Pl = 2e4, Ns = fe.forwardRef(
|
|
7056
7056
|
const [f, h] = le(!0), [m, p] = le({
|
7057
7057
|
message: null,
|
7058
7058
|
politeness: null
|
7059
|
-
}), b =
|
7059
|
+
}), b = j(!0), w = j(null), k = j(null), S = _l([l, k]), O = f ? "Show" : "Hide", _ = () => {
|
7060
7060
|
w.current && clearTimeout(w.current), b.current || (w.current = setTimeout(() => {
|
7061
7061
|
b.current = !0, h(!0), p({
|
7062
7062
|
announcementTimeout: Nl,
|
@@ -7133,7 +7133,7 @@ try {
|
|
7133
7133
|
});
|
7134
7134
|
} catch {
|
7135
7135
|
}
|
7136
|
-
const
|
7136
|
+
const yd = "user", pd = "assistant", gd = "data", Ps = "OpenAI", xl = "Anthropic", $l = "Google", Dl = "Perplexity", bd = Ps, Ml = "claude-sonnet-4", Ll = "claude-3", Ul = "gpt-", Fl = "o3", Kl = "o4", Hl = "gemini", Bl = "sonar", Vl = {
|
7137
7137
|
[xl]: [
|
7138
7138
|
Ml,
|
7139
7139
|
Ll
|
@@ -7145,18 +7145,19 @@ const hd = "user", md = "assistant", yd = "data", Ps = "OpenAI", xl = "Anthropic
|
|
7145
7145
|
],
|
7146
7146
|
[$l]: [Hl],
|
7147
7147
|
[Dl]: [Bl]
|
7148
|
-
},
|
7149
|
-
REASONING:
|
7150
|
-
|
7148
|
+
}, Wl = "sassy:advanced:reasoning", jl = "sassy:advanced:websearch", wd = {
|
7149
|
+
REASONING: Wl,
|
7150
|
+
WEBSEARCH: jl
|
7151
|
+
}, vd = "x-callisto-chat-id", Ed = (e) => {
|
7151
7152
|
for (const [t, r] of Object.entries(
|
7152
7153
|
Vl
|
7153
7154
|
))
|
7154
7155
|
if (r.some((n) => e.startsWith(n)))
|
7155
7156
|
return t;
|
7156
7157
|
return null;
|
7157
|
-
},
|
7158
|
-
Press Enter to send it or Shift+Enter for new line.`,
|
7159
|
-
Press Ctrl+Enter to send it or Enter for new line.`,
|
7158
|
+
}, Sd = "timestamp", Td = "tokenUsage", D = "Callisto", Gl = "ASK! ME! ANYTHING!", ql = "Log in", Jl = "Sign in with a Passkey", Ad = "Log out", zl = "Password", Id = "Usage", kd = "Profile", Od = "Settings", Rd = "Chat history", _d = "About", Rr = "Type your message here.", Cd = Rr, Nd = `${Rr}
|
7159
|
+
Press Enter to send it or Shift+Enter for new line.`, Pd = `${Rr}
|
7160
|
+
Press Ctrl+Enter to send it or Enter for new line.`, xd = "{{clipboard}}", M = "Review important details.", $d = [
|
7160
7161
|
`Sometimes, ${D} just makes stuff up. ${M}`,
|
7161
7162
|
`${D} may invent facts on the fly. ${M}`,
|
7162
7163
|
`${D} may be confidently wrong. ${M}`,
|
@@ -7177,17 +7178,17 @@ Press Ctrl+Enter to send it or Enter for new line.`, Nd = "{{clipboard}}", M = "
|
|
7177
7178
|
`Sometimes, ${D} howls at the moon. ${M}`,
|
7178
7179
|
`${D} may dig up imaginary bones. ${M}`,
|
7179
7180
|
`${D} may sniff out nonsense. ${M}`
|
7180
|
-
],
|
7181
|
+
], Dd = "Prompts are pre-filled menus available on the main screen, to help you quickly start requests. If you select the 'Private Chat' checkbox, the corresponding chat will not be saved. If you select the 'Clipboard Access' checkbox, your clipboard content (if any) will be provided to the request.", Md = "Default provider set to", Ld = "Chat successfully deleted!", Ud = "Chat successfully saved!", Fd = "av-sassy", Kd = {
|
7181
7182
|
0: ["January", "February", "March"],
|
7182
7183
|
3: ["April", "May", "June"],
|
7183
7184
|
6: ["July", "August", "September"],
|
7184
7185
|
9: ["October", "November", "December"]
|
7185
|
-
},
|
7186
|
+
}, Hd = {
|
7186
7187
|
0: ["Jan", "Feb", "Mar"],
|
7187
7188
|
3: ["Apr", "May", "Jun"],
|
7188
7189
|
6: ["Jul", "Aug", "Sep"],
|
7189
7190
|
9: ["Oct", "Nov", "Dec"]
|
7190
|
-
},
|
7191
|
+
}, Bd = {
|
7191
7192
|
PREFERENCES: {
|
7192
7193
|
TITLE: "User profile",
|
7193
7194
|
NAME: "Name",
|
@@ -7227,7 +7228,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Nd = "{{clipboard}}", M = "
|
|
7227
7228
|
SEND_ON_ENTER: "The following option allows you to choose whether you want to send a message when you press Enter or if you want to use Ctrl+Enter (Cmd+Enter on Mac). If you choose to send a message on Enter, you will need use Shift+Enter to insert a new line.",
|
7228
7229
|
USE_MEMORY: "The following option allows you to choose whether you want to enable memory for your chats. When enabled, Callisto will remember your previous interactions and use them to provide more relevant responses."
|
7229
7230
|
}
|
7230
|
-
},
|
7231
|
+
}, Ql = ({ className: e }) => /* @__PURE__ */ X(
|
7231
7232
|
"div",
|
7232
7233
|
{
|
7233
7234
|
className: g(
|
@@ -7238,11 +7239,11 @@ Press Ctrl+Enter to send it or Enter for new line.`, Nd = "{{clipboard}}", M = "
|
|
7238
7239
|
/* @__PURE__ */ y("div", { className: "basis-1/4", children: /* @__PURE__ */ y(il, {}) }),
|
7239
7240
|
/* @__PURE__ */ X("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
|
7240
7241
|
/* @__PURE__ */ y("h1", { children: D }),
|
7241
|
-
/* @__PURE__ */ y("h2", { children:
|
7242
|
+
/* @__PURE__ */ y("h2", { children: Gl })
|
7242
7243
|
] })
|
7243
7244
|
]
|
7244
7245
|
}
|
7245
|
-
),
|
7246
|
+
), Yl = () => {
|
7246
7247
|
const { login: e, logoutReason: t, loginWithPasskey: r } = ys(), [n, s] = le(""), [i, o] = le(""), [a, c] = le(!0), [d, u] = le({
|
7247
7248
|
username: "",
|
7248
7249
|
password: ""
|
@@ -7270,7 +7271,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Nd = "{{clipboard}}", M = "
|
|
7270
7271
|
className: Es({
|
7271
7272
|
extraClass: "rounded-md"
|
7272
7273
|
}),
|
7273
|
-
children: /* @__PURE__ */ y(
|
7274
|
+
children: /* @__PURE__ */ y(Ql, {})
|
7274
7275
|
}
|
7275
7276
|
),
|
7276
7277
|
/* @__PURE__ */ y("form", { className: "mt-5", onSubmit: l, children: /* @__PURE__ */ y(fl, { alignHorizontal: "center", children: /* @__PURE__ */ y(Ee, { span: 6, children: /* @__PURE__ */ X(sl, { mode: "dark", children: [
|
@@ -7307,7 +7308,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Nd = "{{clipboard}}", M = "
|
|
7307
7308
|
mode: "dark",
|
7308
7309
|
focusMode: "light",
|
7309
7310
|
name: "password",
|
7310
|
-
label:
|
7311
|
+
label: zl,
|
7311
7312
|
rightElement: /* @__PURE__ */ y(
|
7312
7313
|
kt,
|
7313
7314
|
{
|
@@ -7337,7 +7338,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Nd = "{{clipboard}}", M = "
|
|
7337
7338
|
noBorder: !0,
|
7338
7339
|
type: "submit",
|
7339
7340
|
className: "mt-7",
|
7340
|
-
children:
|
7341
|
+
children: ql
|
7341
7342
|
}
|
7342
7343
|
) }),
|
7343
7344
|
!Ts() && /* @__PURE__ */ X(on, { children: [
|
@@ -7350,7 +7351,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Nd = "{{clipboard}}", M = "
|
|
7350
7351
|
focusMode: "light",
|
7351
7352
|
fullWidth: !0,
|
7352
7353
|
className: "mb-4",
|
7353
|
-
labelRight:
|
7354
|
+
labelRight: Jl,
|
7354
7355
|
onClick: r,
|
7355
7356
|
children: /* @__PURE__ */ y(ol, { size: "size-7" })
|
7356
7357
|
}
|
@@ -7360,19 +7361,19 @@ Press Ctrl+Enter to send it or Enter for new line.`, Nd = "{{clipboard}}", M = "
|
|
7360
7361
|
]
|
7361
7362
|
}
|
7362
7363
|
);
|
7363
|
-
},
|
7364
|
+
}, Xl = new URL(document.location.href).searchParams, sn = !!Xl.get("debug") || !1, Zl = Ds(() => import(
|
7364
7365
|
/* webpackChunkName: "LazyApp" */
|
7365
|
-
"./App.
|
7366
|
-
).then((e) => e.App)),
|
7366
|
+
"./App.lIa74yNL.js"
|
7367
|
+
).then((e) => e.App)), eu = new si(), an = ({
|
7367
7368
|
isComponent: e,
|
7368
7369
|
headerHeight: t
|
7369
7370
|
}) => {
|
7370
7371
|
const { isAuthenticated: r, isLoading: n } = ys();
|
7371
|
-
return n ? /* @__PURE__ */ y("div", {}) : r ? /* @__PURE__ */ y($s, { fallback: /* @__PURE__ */ y("div", {}), children: /* @__PURE__ */ X(ai, { client:
|
7372
|
+
return n ? /* @__PURE__ */ y("div", {}) : r ? /* @__PURE__ */ y($s, { fallback: /* @__PURE__ */ y("div", {}), children: /* @__PURE__ */ X(ai, { client: eu, children: [
|
7372
7373
|
/* @__PURE__ */ y(xa, {}),
|
7373
|
-
/* @__PURE__ */ y(
|
7374
|
-
] }) }) : /* @__PURE__ */ y(
|
7375
|
-
},
|
7374
|
+
/* @__PURE__ */ y(Zl, { isComponent: e, headerHeight: t })
|
7375
|
+
] }) }) : /* @__PURE__ */ y(Yl, {});
|
7376
|
+
}, tu = ({
|
7376
7377
|
isComponent: e = !1,
|
7377
7378
|
headerHeight: t = 0,
|
7378
7379
|
domain: r = vs
|
@@ -7389,8 +7390,8 @@ Press Ctrl+Enter to send it or Enter for new line.`, Nd = "{{clipboard}}", M = "
|
|
7389
7390
|
endpoint: process.env.PUBLIC_AUTH_SERVER_URL,
|
7390
7391
|
children: /* @__PURE__ */ y(an, { isComponent: e, headerHeight: t })
|
7391
7392
|
}
|
7392
|
-
) : /* @__PURE__ */ y(Xr, { clientId: Zr, domain: r, debug: sn, children: /* @__PURE__ */ y(an, { isComponent: e, headerHeight: t }) })),
|
7393
|
-
|
7393
|
+
) : /* @__PURE__ */ y(Xr, { clientId: Zr, domain: r, debug: sn, children: /* @__PURE__ */ y(an, { isComponent: e, headerHeight: t }) })), Vd = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ y(
|
7394
|
+
tu,
|
7394
7395
|
{
|
7395
7396
|
isComponent: !0,
|
7396
7397
|
domain: e,
|
@@ -7398,100 +7399,101 @@ Press Ctrl+Enter to send it or Enter for new line.`, Nd = "{{clipboard}}", M = "
|
|
7398
7399
|
}
|
7399
7400
|
);
|
7400
7401
|
export {
|
7401
|
-
|
7402
|
-
|
7402
|
+
_d as ABOUT_TITLE,
|
7403
|
+
Ju as ACTION_RESET_PROMPT,
|
7403
7404
|
ju as ACTION_SEARCH,
|
7404
|
-
|
7405
|
-
|
7406
|
-
|
7405
|
+
Gu as ACTION_SORT,
|
7406
|
+
qu as ACTION_TOGGLE_PROMPT,
|
7407
|
+
Fd as APP_CLASSNAME,
|
7407
7408
|
Ed as Ae,
|
7408
7409
|
ks as C,
|
7409
|
-
|
7410
|
-
|
7411
|
-
|
7412
|
-
|
7410
|
+
Bd as CARDS,
|
7411
|
+
xd as CLIPBOARD_PROMPT,
|
7412
|
+
ad as DEFAULT_ICON_ACTION_SIZE,
|
7413
|
+
Tu as Dynamic,
|
7413
7414
|
$l as E,
|
7414
|
-
|
7415
|
-
|
7416
|
-
|
7417
|
-
|
7418
|
-
kd as HISTORY_TITLE,
|
7415
|
+
Wu as ERROR_MESSAGE,
|
7416
|
+
$d as FOOTER_DISCLAIMERS,
|
7417
|
+
mu as For,
|
7418
|
+
Rd as HISTORY_TITLE,
|
7419
7419
|
Lt as I,
|
7420
|
-
|
7421
|
-
|
7422
|
-
|
7423
|
-
|
7424
|
-
|
7425
|
-
|
7426
|
-
|
7427
|
-
|
7428
|
-
|
7420
|
+
nd as INFINITE_SCROLL_LIMIT,
|
7421
|
+
rd as INFINITE_SCROLL_THRESHOLD,
|
7422
|
+
ud as INPUT_BOTTOM_OFFSET,
|
7423
|
+
fd as INPUT_BOTTOM_OFFSET_EXTRA,
|
7424
|
+
dd as INPUT_BOTTOM_OFFSET_IPHONE,
|
7425
|
+
Pd as INPUT_PLACEHOLDER_TEXT_CMD_ENTER,
|
7426
|
+
Nd as INPUT_PLACEHOLDER_TEXT_ENTER,
|
7427
|
+
Cd as INPUT_PLACEHOLDER_TEXT_MOBILE,
|
7428
|
+
yu as Index,
|
7429
7429
|
fl as L,
|
7430
7430
|
ps as LOCAL_STORAGE_PREFIX,
|
7431
|
-
|
7432
|
-
|
7433
|
-
|
7431
|
+
Zu as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
|
7432
|
+
ed as LOCAL_STORAGE_REASONING_DISCLOSURE,
|
7433
|
+
zu as LOCAL_STORAGE_SEARCH,
|
7434
7434
|
gs as LOCAL_STORAGE_SERVICE_WORKER,
|
7435
|
-
|
7436
|
-
|
7437
|
-
|
7438
|
-
|
7439
|
-
|
7440
|
-
|
7441
|
-
|
7442
|
-
|
7443
|
-
|
7444
|
-
|
7445
|
-
|
7435
|
+
Qu as LOCAL_STORAGE_SORT,
|
7436
|
+
Yu as LOCAL_STORAGE_SORT_TIMESTAMP,
|
7437
|
+
Xu as LOCAL_STORAGE_SORT_TOKEN_USAGE,
|
7438
|
+
td as LOCAL_STORAGE_WEBSEARCH_DISCLOSURE,
|
7439
|
+
Ad as LOG_OUT,
|
7440
|
+
Ql as Logo,
|
7441
|
+
bu as Match,
|
7442
|
+
D as Oe,
|
7443
|
+
kd as PROFILE_TITLE,
|
7444
|
+
Dd as PROMPTS_DESCRIPTION,
|
7445
|
+
sd as PROMPT_CLASSNAME,
|
7446
|
+
id as PROMPT_EDITABLE_AREA_CLASSNAME,
|
7447
|
+
Su as Portal,
|
7446
7448
|
sl as S,
|
7447
|
-
|
7448
|
-
|
7449
|
-
|
7449
|
+
Od as SETTINGS_TITLE,
|
7450
|
+
Vd as SassySaint,
|
7451
|
+
pu as Show,
|
7450
7452
|
_t as Subscribable,
|
7451
|
-
|
7452
|
-
|
7453
|
-
|
7454
|
-
|
7455
|
-
|
7456
|
-
|
7457
|
-
|
7458
|
-
|
7459
|
-
|
7460
|
-
|
7453
|
+
gu as Switch,
|
7454
|
+
Ld as TOAST_CHAT_DELETED,
|
7455
|
+
Ud as TOAST_CHAT_SAVED,
|
7456
|
+
Md as TOAST_PROVIDER_CHANGED,
|
7457
|
+
Kd as TRIMESTERS,
|
7458
|
+
Hd as TRIMESTERS_SHORT,
|
7459
|
+
cd as UI_BUTTON_SCROLL_BUFFER,
|
7460
|
+
ld as UI_DEFAULT_MAIN_HEIGHT,
|
7461
|
+
od as UI_FOOTER_BUFFER,
|
7462
|
+
Id as USAGE_TITLE,
|
7461
7463
|
Ps as a,
|
7462
7464
|
Bi as addEventListener,
|
7463
|
-
|
7464
|
-
|
7465
|
+
ou as batch,
|
7466
|
+
pd as c,
|
7465
7467
|
Hi as className,
|
7466
|
-
|
7468
|
+
Eu as clearDelegatedEvents,
|
7467
7469
|
$c as convertCamelCaseToReadable,
|
7468
|
-
|
7470
|
+
xu as convertRemToPixels,
|
7469
7471
|
Ei as createComponent,
|
7470
7472
|
ci as createComputed,
|
7471
|
-
|
7473
|
+
du as createContext,
|
7472
7474
|
En as createEffect,
|
7473
7475
|
K as createMemo,
|
7474
7476
|
Te as createRenderEffect,
|
7475
7477
|
Se as createRoot,
|
7476
7478
|
Y as createSignal,
|
7477
|
-
|
7478
|
-
|
7479
|
+
hu as createUniqueId,
|
7480
|
+
vd as de,
|
7479
7481
|
Pc as debounce,
|
7480
7482
|
Ui as delegateEvents,
|
7481
7483
|
it as deleteNestedDataByPath,
|
7482
|
-
|
7484
|
+
Cu as displayValue,
|
7483
7485
|
Ys as fetchState,
|
7484
7486
|
fn as focusManager,
|
7485
7487
|
Tc as getCurrentGeoLocation,
|
7486
7488
|
Ss as getMainPaddingClass,
|
7487
7489
|
Es as getMessageContaintWrapperClass,
|
7488
|
-
|
7489
|
-
|
7490
|
-
|
7491
|
-
|
7492
|
-
|
7493
|
-
|
7494
|
-
|
7490
|
+
Ru as getMutationStatusColor,
|
7491
|
+
$u as getPreferredColorScheme,
|
7492
|
+
Ou as getQueryStatusColor,
|
7493
|
+
_u as getQueryStatusColorByLabel,
|
7494
|
+
Iu as getQueryStatusLabel,
|
7495
|
+
ku as getSidedProp,
|
7496
|
+
hd as handleServiceWorkerToggle,
|
7495
7497
|
xl as i,
|
7496
7498
|
ar as insert,
|
7497
7499
|
As as isProbablyMobile,
|
@@ -7502,48 +7504,48 @@ export {
|
|
7502
7504
|
Ls as isValidTimeout,
|
7503
7505
|
Ee as j,
|
7504
7506
|
ol as l,
|
7505
|
-
|
7507
|
+
wu as memo,
|
7506
7508
|
Ti as mergeProps,
|
7507
|
-
|
7509
|
+
Pu as mutationSortFns,
|
7508
7510
|
ys as n,
|
7509
|
-
|
7511
|
+
gd as ne,
|
7510
7512
|
re as noop,
|
7511
7513
|
Q as notifyManager,
|
7512
7514
|
_c as numberFormatter,
|
7513
7515
|
Ac as obfuscate,
|
7514
|
-
|
7515
|
-
|
7516
|
+
bd as oe,
|
7517
|
+
cu as on,
|
7518
|
+
je as onCleanup,
|
7516
7519
|
di as onMount,
|
7517
|
-
|
7520
|
+
Td as pe,
|
7518
7521
|
Or as pe$1,
|
7519
7522
|
Gs as pendingThenable,
|
7520
7523
|
Nc as pluralize,
|
7521
7524
|
ul as r,
|
7522
|
-
yd as re,
|
7523
7525
|
kc as renderDataAsList,
|
7524
7526
|
Hs as replaceData,
|
7525
7527
|
Fs as resolveEnabled,
|
7526
7528
|
Zt as resolveStaleTime,
|
7527
|
-
|
7529
|
+
yd as s,
|
7528
7530
|
ka as serialize,
|
7529
7531
|
ir as setAttribute,
|
7530
|
-
|
7531
|
-
|
7532
|
-
|
7532
|
+
iu as shallowEqualObjects,
|
7533
|
+
au as shouldThrowError,
|
7534
|
+
Nu as sortFns,
|
7533
7535
|
Ai as splitProps,
|
7534
|
-
|
7535
|
-
|
7536
|
-
|
7536
|
+
ji as spread,
|
7537
|
+
Au as stringify,
|
7538
|
+
vu as template,
|
7537
7539
|
Us as timeUntilStale,
|
7538
7540
|
kt as ue,
|
7539
|
-
|
7541
|
+
Sd as ue$1,
|
7540
7542
|
Ic as unObfuscate,
|
7541
7543
|
G as untrack,
|
7542
7544
|
st as updateNestedDataByPath,
|
7543
7545
|
Gi as use,
|
7544
|
-
|
7546
|
+
fu as useContext,
|
7545
7547
|
ii as useQueryClient,
|
7546
|
-
|
7547
|
-
|
7548
|
-
|
7548
|
+
uu as useTransition,
|
7549
|
+
md as utilities,
|
7550
|
+
wd as ye
|
7549
7551
|
};
|