@versini/sassysaint 8.26.2 → 8.26.3
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.-nxQGKGb.js → AboutChangelog.7ueKzWyF.js} +2 -2
- package/dist/chunks/{AboutEntry.CmsqzDO0.js → AboutEntry.DhljBqVO.js} +5 -5
- package/dist/chunks/{App.BVP_PtVu.js → App.9D7tAP-W.js} +110 -112
- package/dist/chunks/{Chart.DuSxXlS-.js → Chart.DA3KPOhe.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.AKasFgYI.js → ChatBubbleAssistant.DUDmGgnN.js} +3 -3
- package/dist/chunks/{HistoryEntry.dbqf5xJU.js → HistoryEntry.C92fhlNu.js} +2 -2
- package/dist/chunks/{I3HPI4QX.BJW7_j9L.js → I3HPI4QX.DUpsHxtP.js} +1 -1
- package/dist/chunks/{ProfileEntry.CvIH-BRb.js → ProfileEntry.Bmyl_deB.js} +2 -2
- package/dist/chunks/{SettingsEntry.DQK31axq.js → SettingsEntry.CO4vgrKR.js} +2 -2
- package/dist/chunks/{UsageEntry.D3MF8C1S.js → UsageEntry.BGyXJHmv.js} +3 -3
- package/dist/chunks/{index.C8gYaKGn.js → index.1NVu-BYL.js} +2 -2
- package/dist/chunks/{index.DTFfqqp0.js → index.CMwAtVjF.js} +1 -1
- package/dist/chunks/{index.BuLqaQE6.js → index.CZXC4tuS.js} +2 -2
- package/dist/chunks/{index.C1ktAodx.js → index.ClAz6-Y-.js} +3 -3
- package/dist/chunks/{index.BCR7emVW.js → index.Dkj1FYyK.js} +1 -1
- package/dist/chunks/{index.BPlhK7Uv.js → index.DqNRauDV.js} +1 -1
- package/dist/chunks/{useMarkdown.OItCHZKS.js → useMarkdown.B-P_2-Ze.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
2
|
-
import { b as m, ButtonScroll as n } from "./App.
|
2
|
+
import { b as m, ButtonScroll as n } from "./App.9D7tAP-W.js";
|
3
3
|
import { useRef as f, useCallback as u, useLayoutEffect as p } from "react";
|
4
|
-
import { useMarkdown as d } from "./useMarkdown.
|
4
|
+
import { useMarkdown as d } from "./useMarkdown.B-P_2-Ze.js";
|
5
5
|
const v = ({ content: o }) => {
|
6
6
|
const [l, t] = d(), { ref: a, inViewport: c } = m(), e = f(null), i = u(() => {
|
7
7
|
e.current && e.current.scrollIntoView({
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { jsxs as g, Fragment as n, jsx as e } from "react/jsx-runtime";
|
2
|
-
import { i as c, useServerCapabilities as u, useChangelogs as A, rr as E } from "./App.
|
3
|
-
import { S as a, renderDataAsList as d, CARDS as r, pluralize as I, isProbablyMobile as S, ABOUT_TITLE as O } from "./index.
|
2
|
+
import { i as c, useServerCapabilities as u, useChangelogs as A, rr as E } from "./App.9D7tAP-W.js";
|
3
|
+
import { S as a, renderDataAsList as d, CARDS as r, pluralize as I, isProbablyMobile as S, ABOUT_TITLE as O } from "./index.1NVu-BYL.js";
|
4
4
|
import B from "clsx";
|
5
5
|
import { Suspense as C, lazy as U } from "react";
|
6
6
|
const L = U(
|
7
7
|
() => import(
|
8
8
|
/* webpackChunkName: "LazyAboutChangelog" */
|
9
|
-
"./AboutChangelog
|
9
|
+
"./AboutChangelog.7ueKzWyF.js"
|
10
10
|
)
|
11
11
|
), N = () => {
|
12
12
|
const s = c(), i = c(), { data: t, isSuccess: m } = u(), { data: h, isSuccess: T } = A(), b = t?.version || "", o = t?.models || [], p = t?.buildTime || "";
|
@@ -17,8 +17,8 @@ const L = U(
|
|
17
17
|
header: r.ABOUT.TITLE_CLIENT,
|
18
18
|
className: "prose-dark dark:prose-lighter mb-4",
|
19
19
|
children: d(s, {
|
20
|
-
[r.ABOUT.VERSION]: "8.26.
|
21
|
-
[r.ABOUT.BUILD_TIMESTAMP]: "07/
|
20
|
+
[r.ABOUT.VERSION]: "8.26.3",
|
21
|
+
[r.ABOUT.BUILD_TIMESTAMP]: "07/19/2025 01:19 PM EDT"
|
22
22
|
})
|
23
23
|
}
|
24
24
|
),
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx as i, jsxs as T, Fragment as ue } from "react/jsx-runtime";
|
2
|
-
import { Subscribable as lo, pendingThenable as ba, resolveEnabled as ke, shallowEqualObjects as wr, resolveStaleTime as
|
2
|
+
import { Subscribable as lo, pendingThenable as ba, resolveEnabled as ke, shallowEqualObjects as wr, resolveStaleTime as gt, noop as Er, isServer as kr, isValidTimeout as va, focusManager as uo, fetchState as ho, replaceData as wa, notifyManager as kn, timeUntilStale as fo, shouldThrowError as mo, useQueryClient as po, I as re, ACTION_SORT as go, ACTION_SEARCH as yo, ACTION_RESET_PROMPT as _n, ACTION_TOGGLE_PROMPT as Sn, le as Ce, DEFAULT_ICON_ACTION_SIZE as Te, n as Ue, isElectron as Ea, isProbablyiPhone as rt, L as Tn, j as yt, C as ka, LOCAL_STORAGE_PREFIX as Ft, LOCAL_STORAGE_PRIVATE_DISCLOSURE as bo, LOCAL_STORAGE_REASONING_DISCLOSURE as vo, TOAST_CHAT_SAVED as wo, TOAST_PROVIDER_CHANGED as Eo, PROMPT_CLASSNAME as ko, PROMPT_EDITABLE_AREA_CLASSNAME as _o, ERROR_MESSAGE as So, ROLE_INTERNAL as _r, CLIPBOARD_PROMPT as _a, isProbablyMobile as Xe, INPUT_PLACEHOLDER_TEXT_MOBILE as Sa, INPUT_PLACEHOLDER_TEXT_ENTER as Ta, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as Ca, INPUT_BOTTOM_OFFSET_EXTRA as To, INPUT_BOTTOM_OFFSET as Cn, FOOTER_DISCLAIMER as Co, LOG_OUT as Ia, getMessageContaintWrapperClass as Io, UI_FOOTER_BUFFER as In, UI_BUTTON_SCROLL_BUFFER as xo, Logo as Ro, UI_DEFAULT_MAIN_HEIGHT as xa, APP_CLASSNAME as Ao, getMainPaddingClass as Ra, r as No, LOCAL_STORAGE_SORT as Oo, LOCAL_STORAGE_SEARCH as $o } from "./index.1NVu-BYL.js";
|
3
3
|
import * as Y from "react";
|
4
|
-
import Z, { useEffect as $, useRef as R, useState as F, useCallback as W, useSyncExternalStore as Po, useMemo as he, useId as Wr, useContext as X, useLayoutEffect as Ne, createContext as xn, useDebugValue as Mo, forwardRef as Rn, Suspense as An, lazy as
|
4
|
+
import Z, { useEffect as $, useRef as R, useState as F, useCallback as W, useSyncExternalStore as Po, useMemo as he, useId as Wr, useContext as X, useLayoutEffect as Ne, createContext as xn, useDebugValue as Mo, forwardRef as Rn, Suspense as An, lazy as st, useReducer as St } from "react";
|
5
5
|
import p from "clsx";
|
6
6
|
import { computePosition as Lo, offset as Nn, flip as On, shift as $n, arrow as Do, useMergeRefs as Kr, FloatingPortal as Pn, FloatingOverlay as Bo, FloatingFocusManager as Mn, useFloating as Ln, useClick as Dn, useDismiss as Bn, useRole as Hn, useInteractions as Un, FloatingTree as Ho, useFloatingTree as Vn, useFloatingNodeId as Uo, useListItem as zn, autoUpdate as Vo, useListNavigation as zo, useTypeahead as Fo, FloatingNode as jo, FloatingList as Wo } from "@floating-ui/react";
|
7
7
|
var Ko = class extends lo {
|
@@ -70,7 +70,7 @@ var Ko = class extends lo {
|
|
70
70
|
r,
|
71
71
|
this.options,
|
72
72
|
t
|
73
|
-
) && this.#l(), this.updateResult(), a && (this.#e !== r || ke(this.options.enabled, this.#e) !== ke(t.enabled, this.#e) ||
|
73
|
+
) && this.#l(), this.updateResult(), a && (this.#e !== r || ke(this.options.enabled, this.#e) !== ke(t.enabled, this.#e) || gt(this.options.staleTime, this.#e) !== gt(t.staleTime, this.#e)) && this.#g();
|
74
74
|
const n = this.#y();
|
75
75
|
a && (this.#e !== r || ke(this.options.enabled, this.#e) !== ke(t.enabled, this.#e) || n !== this.#s) && this.#b(n);
|
76
76
|
}
|
@@ -117,7 +117,7 @@ var Ko = class extends lo {
|
|
117
117
|
}
|
118
118
|
#g() {
|
119
119
|
this.#w();
|
120
|
-
const e =
|
120
|
+
const e = gt(
|
121
121
|
this.options.staleTime,
|
122
122
|
this.#e
|
123
123
|
);
|
@@ -277,7 +277,7 @@ function Aa(e, t) {
|
|
277
277
|
return Go(e, t) || e.state.data !== void 0 && Sr(e, t, t.refetchOnMount);
|
278
278
|
}
|
279
279
|
function Sr(e, t, r) {
|
280
|
-
if (ke(t.enabled, e) !== !1 &&
|
280
|
+
if (ke(t.enabled, e) !== !1 && gt(t.staleTime, e) !== "static") {
|
281
281
|
const a = typeof r == "function" ? r(e) : r;
|
282
282
|
return a === "always" || a !== !1 && Gr(e, t);
|
283
283
|
}
|
@@ -287,7 +287,7 @@ function Na(e, t, r, a) {
|
|
287
287
|
return (e !== t || ke(a.enabled, e) === !1) && (!r.suspense || e.state.status !== "error") && Gr(e, r);
|
288
288
|
}
|
289
289
|
function Gr(e, t) {
|
290
|
-
return ke(t.enabled, e) !== !1 && e.isStaleByTime(
|
290
|
+
return ke(t.enabled, e) !== !1 && e.isStaleByTime(gt(t.staleTime, e));
|
291
291
|
}
|
292
292
|
function Jo(e, t) {
|
293
293
|
return !wr(e.getCurrentResult(), t);
|
@@ -377,7 +377,7 @@ function oi(e, t, r) {
|
|
377
377
|
l.updateResult();
|
378
378
|
}), o.notifyOnChangeProps ? d : l.trackResult(d);
|
379
379
|
}
|
380
|
-
function
|
380
|
+
function ot(e, t) {
|
381
381
|
return oi(e, Ko, t);
|
382
382
|
}
|
383
383
|
const ii = ({
|
@@ -1132,7 +1132,7 @@ function Fi() {
|
|
1132
1132
|
window.visualViewport && (window.visualViewport.removeEventListener("resize", r), window.visualViewport.removeEventListener("orientationchange", r));
|
1133
1133
|
}), [r]), e;
|
1134
1134
|
}
|
1135
|
-
const qt = "thead", Jr = "tfoot", Ze = "tbody",
|
1135
|
+
const qt = "thead", Jr = "tfoot", Ze = "tbody", ft = {
|
1136
1136
|
ASC: "asc",
|
1137
1137
|
DESC: "desc"
|
1138
1138
|
}, ji = ({
|
@@ -1906,7 +1906,7 @@ try {
|
|
1906
1906
|
});
|
1907
1907
|
} catch {
|
1908
1908
|
}
|
1909
|
-
const
|
1909
|
+
const it = Z.createContext({
|
1910
1910
|
mode: "light",
|
1911
1911
|
cellWrapper: "thead",
|
1912
1912
|
stickyHeader: !1,
|
@@ -1933,7 +1933,7 @@ const ot = Z.createContext({
|
|
1933
1933
|
stickyFooter: d
|
1934
1934
|
});
|
1935
1935
|
return /* @__PURE__ */ i(
|
1936
|
-
|
1936
|
+
it.Provider,
|
1937
1937
|
{
|
1938
1938
|
value: { mode: t, stickyHeader: l, stickyFooter: d, compact: a },
|
1939
1939
|
children: /* @__PURE__ */ i(
|
@@ -1956,7 +1956,7 @@ const ot = Z.createContext({
|
|
1956
1956
|
className: t,
|
1957
1957
|
...r
|
1958
1958
|
}) => {
|
1959
|
-
const a = X(
|
1959
|
+
const a = X(it);
|
1960
1960
|
a.cellWrapper = qt;
|
1961
1961
|
const n = Wi({
|
1962
1962
|
className: t,
|
@@ -1969,7 +1969,7 @@ const ot = Z.createContext({
|
|
1969
1969
|
className: t,
|
1970
1970
|
...r
|
1971
1971
|
}) => {
|
1972
|
-
const a = X(
|
1972
|
+
const a = X(it);
|
1973
1973
|
a.cellWrapper = Jr;
|
1974
1974
|
const n = Ki({
|
1975
1975
|
className: t,
|
@@ -1978,14 +1978,14 @@ const ot = Z.createContext({
|
|
1978
1978
|
});
|
1979
1979
|
return /* @__PURE__ */ i("tfoot", { className: n, ...r, children: e });
|
1980
1980
|
}, Wf = ({ children: e, ...t }) => {
|
1981
|
-
const r = X(
|
1981
|
+
const r = X(it);
|
1982
1982
|
return r.cellWrapper = Ze, /* @__PURE__ */ i("tbody", { ...t, children: e });
|
1983
1983
|
}, Kf = ({
|
1984
1984
|
children: e,
|
1985
1985
|
className: t,
|
1986
1986
|
...r
|
1987
1987
|
}) => {
|
1988
|
-
const a = X(
|
1988
|
+
const a = X(it), n = Gi({
|
1989
1989
|
mode: a.mode,
|
1990
1990
|
cellWrapper: a.cellWrapper,
|
1991
1991
|
className: t
|
@@ -1998,7 +1998,7 @@ const ot = Z.createContext({
|
|
1998
1998
|
align: a,
|
1999
1999
|
...n
|
2000
2000
|
}) => {
|
2001
|
-
const s = X(
|
2001
|
+
const s = X(it), o = t || (s.cellWrapper === qt ? "th" : "td"), { mainClasses: c, alignClasses: l } = Ji({
|
2002
2002
|
cellWrapper: s.cellWrapper,
|
2003
2003
|
className: r,
|
2004
2004
|
mode: s.mode,
|
@@ -2027,7 +2027,7 @@ const ot = Z.createContext({
|
|
2027
2027
|
component: n,
|
2028
2028
|
className: a,
|
2029
2029
|
role: "columnheader",
|
2030
|
-
"aria-sort": l ===
|
2030
|
+
"aria-sort": l === ft.ASC && d === f ? "ascending" : l === ft.DESC && d === f ? "descending" : "other",
|
2031
2031
|
...u,
|
2032
2032
|
children: /* @__PURE__ */ i(
|
2033
2033
|
Yn,
|
@@ -2041,7 +2041,7 @@ const ot = Z.createContext({
|
|
2041
2041
|
mode: o,
|
2042
2042
|
fullWidth: !0,
|
2043
2043
|
labelRight: t,
|
2044
|
-
children: l ===
|
2044
|
+
children: l === ft.ASC && d === f ? /* @__PURE__ */ i(yc, { className: "size-4", monotone: !0 }) : l === ft.DESC && d === f ? /* @__PURE__ */ i(gc, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ i(pc, { className: "size-4", monotone: !0 })
|
2045
2045
|
}
|
2046
2046
|
)
|
2047
2047
|
}
|
@@ -2109,9 +2109,9 @@ const Ha = ({
|
|
2109
2109
|
};
|
2110
2110
|
}
|
2111
2111
|
}, []), r && rr ? /* @__PURE__ */ i(rr, { containerId: e, ...t }) : null;
|
2112
|
-
}, Ke = "FOOTER_BOTTOM", Wt = "FOOTER_TOP",
|
2112
|
+
}, Ke = "FOOTER_BOTTOM", Wt = "FOOTER_TOP", mt = "APP_SET_FOOTER_POSITION", Qn = "APP_SET_FOOTER_HEIGHT", _c = (e, t) => {
|
2113
2113
|
switch (t.type) {
|
2114
|
-
case
|
2114
|
+
case mt:
|
2115
2115
|
return {
|
2116
2116
|
...e,
|
2117
2117
|
footerPosition: t.payload.footerPosition,
|
@@ -2125,14 +2125,14 @@ const Ha = ({
|
|
2125
2125
|
default:
|
2126
2126
|
return e;
|
2127
2127
|
}
|
2128
|
-
}, et = "CHAT_SET_STATUS", Xn = "CHAT_SET_USAGE",
|
2128
|
+
}, et = "CHAT_SET_STATUS", Xn = "CHAT_SET_USAGE", at = "CHAT_SET_ATTACHMENTS", Zn = "CHAT_SET_PROVIDER", Je = "CHAT_RESET", Sc = (e, t) => {
|
2129
2129
|
switch (t.type) {
|
2130
2130
|
case Xn:
|
2131
2131
|
return {
|
2132
2132
|
...e,
|
2133
2133
|
tokenUsage: e.tokenUsage + t.payload.tokenUsage
|
2134
2134
|
};
|
2135
|
-
case
|
2135
|
+
case at:
|
2136
2136
|
return {
|
2137
2137
|
...e,
|
2138
2138
|
attachments: t.payload.attachments
|
@@ -2451,22 +2451,22 @@ const Ha = ({
|
|
2451
2451
|
});
|
2452
2452
|
} catch {
|
2453
2453
|
}
|
2454
|
-
},
|
2454
|
+
}, ct = {
|
2455
2455
|
CHATS: "chats",
|
2456
2456
|
CHATS_STATS: "chatsStats",
|
2457
2457
|
CAPABILITIES: "capabilities",
|
2458
2458
|
CHANGELOGS: "changelogs",
|
2459
2459
|
PREFERENCES: "preferences",
|
2460
2460
|
USAGE: "usage"
|
2461
|
-
}, Jf = () =>
|
2462
|
-
queryKey: [
|
2463
|
-
queryFn: async () => await
|
2461
|
+
}, Jf = () => ot({
|
2462
|
+
queryKey: [ct.CAPABILITIES],
|
2463
|
+
queryFn: async () => await lt({
|
2464
2464
|
type: Ve.GET_SERVER_CAPABILITIES,
|
2465
2465
|
noAuth: !0
|
2466
2466
|
})
|
2467
|
-
}), qf = () =>
|
2468
|
-
queryKey: [
|
2469
|
-
queryFn: async () => await
|
2467
|
+
}), qf = () => ot({
|
2468
|
+
queryKey: [ct.CHANGELOGS],
|
2469
|
+
queryFn: async () => await lt({
|
2470
2470
|
type: Ve.GET_CHANGELOGS,
|
2471
2471
|
noAuth: !0,
|
2472
2472
|
params: {
|
@@ -2476,9 +2476,9 @@ const Ha = ({
|
|
2476
2476
|
}), Yt = ({
|
2477
2477
|
user: e,
|
2478
2478
|
getAccessToken: t
|
2479
|
-
}) =>
|
2480
|
-
queryKey: [
|
2481
|
-
queryFn: async () => await
|
2479
|
+
}) => ot({
|
2480
|
+
queryKey: [ct.PREFERENCES, e],
|
2481
|
+
queryFn: async () => await lt({
|
2482
2482
|
params: {
|
2483
2483
|
user: e
|
2484
2484
|
},
|
@@ -2488,9 +2488,9 @@ const Ha = ({
|
|
2488
2488
|
}), Yf = ({
|
2489
2489
|
user: e,
|
2490
2490
|
getAccessToken: t
|
2491
|
-
}) =>
|
2492
|
-
queryKey: [
|
2493
|
-
queryFn: async () => await
|
2491
|
+
}) => ot({
|
2492
|
+
queryKey: [ct.CHATS_STATS, e],
|
2493
|
+
queryFn: async () => await lt({
|
2494
2494
|
params: {
|
2495
2495
|
user: e
|
2496
2496
|
},
|
@@ -2503,12 +2503,12 @@ const Ha = ({
|
|
2503
2503
|
sortDirection: r,
|
2504
2504
|
getAccessToken: a,
|
2505
2505
|
enabled: n = !0
|
2506
|
-
}) =>
|
2506
|
+
}) => ot({
|
2507
2507
|
enabled: n,
|
2508
2508
|
staleTime: 60 * 1e3,
|
2509
2509
|
// 1 minute
|
2510
|
-
queryKey: [
|
2511
|
-
queryFn: async () => await
|
2510
|
+
queryKey: [ct.CHATS, e, t, r],
|
2511
|
+
queryFn: async () => await lt({
|
2512
2512
|
params: {
|
2513
2513
|
user: e,
|
2514
2514
|
searchString: t,
|
@@ -2525,10 +2525,10 @@ const Ha = ({
|
|
2525
2525
|
year: r = (/* @__PURE__ */ new Date()).getFullYear().toString(),
|
2526
2526
|
getAccessToken: a,
|
2527
2527
|
enabled: n = !0
|
2528
|
-
}) =>
|
2528
|
+
}) => ot({
|
2529
2529
|
enabled: n,
|
2530
|
-
queryKey: [
|
2531
|
-
queryFn: async () => await
|
2530
|
+
queryKey: [ct.USAGE, e, t, r],
|
2531
|
+
queryFn: async () => await lt({
|
2532
2532
|
params: {
|
2533
2533
|
user: e,
|
2534
2534
|
month: t,
|
@@ -2537,7 +2537,7 @@ const Ha = ({
|
|
2537
2537
|
type: Ve.GET_USAGE,
|
2538
2538
|
getAccessToken: a
|
2539
2539
|
})
|
2540
|
-
}),
|
2540
|
+
}), lt = async ({
|
2541
2541
|
params: e,
|
2542
2542
|
type: t,
|
2543
2543
|
noAuth: r,
|
@@ -2604,11 +2604,11 @@ var rs = "vercel.ai.error", xc = Symbol.for(rs), as, Rc = class ns extends Error
|
|
2604
2604
|
}
|
2605
2605
|
};
|
2606
2606
|
as = xc;
|
2607
|
-
var
|
2607
|
+
var nt = Rc;
|
2608
2608
|
function ss(e) {
|
2609
2609
|
return e == null ? "unknown error" : typeof e == "string" ? e : e instanceof Error ? e.message : JSON.stringify(e);
|
2610
2610
|
}
|
2611
|
-
var os = "AI_InvalidArgumentError", is = `vercel.ai.error.${os}`, Ac = Symbol.for(is), cs, Nc = class extends
|
2611
|
+
var os = "AI_InvalidArgumentError", is = `vercel.ai.error.${os}`, Ac = Symbol.for(is), cs, Nc = class extends nt {
|
2612
2612
|
constructor({
|
2613
2613
|
message: e,
|
2614
2614
|
cause: t,
|
@@ -2617,11 +2617,11 @@ var os = "AI_InvalidArgumentError", is = `vercel.ai.error.${os}`, Ac = Symbol.fo
|
|
2617
2617
|
super({ name: os, message: e, cause: t }), this[cs] = !0, this.argument = r;
|
2618
2618
|
}
|
2619
2619
|
static isInstance(e) {
|
2620
|
-
return
|
2620
|
+
return nt.hasMarker(e, is);
|
2621
2621
|
}
|
2622
2622
|
};
|
2623
2623
|
cs = Ac;
|
2624
|
-
var ls = "AI_JSONParseError", ds = `vercel.ai.error.${ls}`, Oc = Symbol.for(ds), us, Ua = class extends
|
2624
|
+
var ls = "AI_JSONParseError", ds = `vercel.ai.error.${ls}`, Oc = Symbol.for(ds), us, Ua = class extends nt {
|
2625
2625
|
constructor({ text: e, cause: t }) {
|
2626
2626
|
super({
|
2627
2627
|
name: ls,
|
@@ -2631,11 +2631,11 @@ Error message: ${ss(t)}`,
|
|
2631
2631
|
}), this[us] = !0, this.text = e;
|
2632
2632
|
}
|
2633
2633
|
static isInstance(e) {
|
2634
|
-
return
|
2634
|
+
return nt.hasMarker(e, ds);
|
2635
2635
|
}
|
2636
2636
|
};
|
2637
2637
|
us = Oc;
|
2638
|
-
var hs = "AI_TypeValidationError", fs = `vercel.ai.error.${hs}`, $c = Symbol.for(fs), ms, Pc = class Cr extends
|
2638
|
+
var hs = "AI_TypeValidationError", fs = `vercel.ai.error.${hs}`, $c = Symbol.for(fs), ms, Pc = class Cr extends nt {
|
2639
2639
|
constructor({ value: t, cause: r }) {
|
2640
2640
|
super({
|
2641
2641
|
name: hs,
|
@@ -2645,7 +2645,7 @@ Error message: ${ss(r)}`,
|
|
2645
2645
|
}), this[ms] = !0, this.value = t;
|
2646
2646
|
}
|
2647
2647
|
static isInstance(t) {
|
2648
|
-
return
|
2648
|
+
return nt.hasMarker(t, fs);
|
2649
2649
|
}
|
2650
2650
|
/**
|
2651
2651
|
* Wraps an error into a TypeValidationError.
|
@@ -4779,7 +4779,7 @@ const tn = () => ({
|
|
4779
4779
|
onResponse: /* @__PURE__ */ new Set(),
|
4780
4780
|
onToolCall: /* @__PURE__ */ new Set()
|
4781
4781
|
}), Cs = xn(null);
|
4782
|
-
function
|
4782
|
+
function dt(e = {}) {
|
4783
4783
|
const t = X(Cs);
|
4784
4784
|
if (!t)
|
4785
4785
|
throw new Error("useAiChat must be used within a AiChatProvider");
|
@@ -5011,7 +5011,7 @@ ae(Ns, "code", "ERR_JWS_SIGNATURE_VERIFICATION_FAILED");
|
|
5011
5011
|
function xe(e, t = "algorithm.name") {
|
5012
5012
|
return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`);
|
5013
5013
|
}
|
5014
|
-
function
|
5014
|
+
function ut(e, t) {
|
5015
5015
|
return e.name === t;
|
5016
5016
|
}
|
5017
5017
|
function fr(e) {
|
@@ -5038,7 +5038,7 @@ function Rd(e, t, r) {
|
|
5038
5038
|
case "HS256":
|
5039
5039
|
case "HS384":
|
5040
5040
|
case "HS512": {
|
5041
|
-
if (!
|
5041
|
+
if (!ut(e.algorithm, "HMAC"))
|
5042
5042
|
throw xe("HMAC");
|
5043
5043
|
const a = parseInt(t.slice(2), 10);
|
5044
5044
|
if (fr(e.algorithm.hash) !== a)
|
@@ -5048,7 +5048,7 @@ function Rd(e, t, r) {
|
|
5048
5048
|
case "RS256":
|
5049
5049
|
case "RS384":
|
5050
5050
|
case "RS512": {
|
5051
|
-
if (!
|
5051
|
+
if (!ut(e.algorithm, "RSASSA-PKCS1-v1_5"))
|
5052
5052
|
throw xe("RSASSA-PKCS1-v1_5");
|
5053
5053
|
const a = parseInt(t.slice(2), 10);
|
5054
5054
|
if (fr(e.algorithm.hash) !== a)
|
@@ -5058,7 +5058,7 @@ function Rd(e, t, r) {
|
|
5058
5058
|
case "PS256":
|
5059
5059
|
case "PS384":
|
5060
5060
|
case "PS512": {
|
5061
|
-
if (!
|
5061
|
+
if (!ut(e.algorithm, "RSA-PSS"))
|
5062
5062
|
throw xe("RSA-PSS");
|
5063
5063
|
const a = parseInt(t.slice(2), 10);
|
5064
5064
|
if (fr(e.algorithm.hash) !== a)
|
@@ -5067,14 +5067,14 @@ function Rd(e, t, r) {
|
|
5067
5067
|
}
|
5068
5068
|
case "Ed25519":
|
5069
5069
|
case "EdDSA": {
|
5070
|
-
if (!
|
5070
|
+
if (!ut(e.algorithm, "Ed25519"))
|
5071
5071
|
throw xe("Ed25519");
|
5072
5072
|
break;
|
5073
5073
|
}
|
5074
5074
|
case "ES256":
|
5075
5075
|
case "ES384":
|
5076
5076
|
case "ES512": {
|
5077
|
-
if (!
|
5077
|
+
if (!ut(e.algorithm, "ECDSA"))
|
5078
5078
|
throw xe("ECDSA");
|
5079
5079
|
const a = Id(t);
|
5080
5080
|
if (e.algorithm.namedCurve !== a)
|
@@ -5988,7 +5988,7 @@ const wu = ({
|
|
5988
5988
|
dispatch: n,
|
5989
5989
|
setChatId: s,
|
5990
5990
|
setInitialMessages: o
|
5991
|
-
} = X(be), { id: c, setInput: l, stop: d } =
|
5991
|
+
} = X(be), { id: c, setInput: l, stop: d } = dt(), f = R(null), u = R(!1), h = () => {
|
5992
5992
|
s(Be()), o([]), l(""), n({
|
5993
5993
|
type: Je,
|
5994
5994
|
payload: {
|
@@ -5996,7 +5996,7 @@ const wu = ({
|
|
5996
5996
|
reasoning: !1
|
5997
5997
|
}
|
5998
5998
|
}), n({
|
5999
|
-
type:
|
5999
|
+
type: at,
|
6000
6000
|
payload: {
|
6001
6001
|
attachments: 0
|
6002
6002
|
}
|
@@ -6050,7 +6050,7 @@ const wu = ({
|
|
6050
6050
|
y.preventDefault(), h();
|
6051
6051
|
};
|
6052
6052
|
return $(() => {
|
6053
|
-
|
6053
|
+
rt() || ((r === !0 || a === !0) && !u.current && f.current && (u.current = !0, f.current.focus()), r === !1 && u.current && (u.current = !1));
|
6054
6054
|
}, [r, a]), /* @__PURE__ */ i(
|
6055
6055
|
Oe,
|
6056
6056
|
{
|
@@ -6763,7 +6763,7 @@ try {
|
|
6763
6763
|
});
|
6764
6764
|
} catch {
|
6765
6765
|
}
|
6766
|
-
const
|
6766
|
+
const pt = "panel", Pt = "messagebox", Yu = ({
|
6767
6767
|
className: e,
|
6768
6768
|
kind: t,
|
6769
6769
|
borderMode: r,
|
@@ -6771,13 +6771,13 @@ const mt = "panel", Pt = "messagebox", Yu = ({
|
|
6771
6771
|
}) => ({
|
6772
6772
|
main: p("prose prose-lighter flex flex-col bg-surface-medium", {
|
6773
6773
|
"duration-200 ease-out": a,
|
6774
|
-
[`${ln} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t ===
|
6775
|
-
[`${ln} w-full sm:w-[95%] md:max-w-2xl`]: t ===
|
6774
|
+
[`${ln} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === pt,
|
6775
|
+
[`${ln} w-full sm:w-[95%] md:max-w-2xl`]: t === pt && !e,
|
6776
6776
|
[`${cn} rounded-lg border-2`]: t === Pt,
|
6777
6777
|
[`${cn} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === Pt && !e,
|
6778
6778
|
[`${e}`]: !!e,
|
6779
|
-
"sm:border-border-dark": r === "dark" && t ===
|
6780
|
-
"sm:border-border-accent": r === "light" && t ===
|
6779
|
+
"sm:border-border-dark": r === "dark" && t === pt,
|
6780
|
+
"sm:border-border-accent": r === "light" && t === pt,
|
6781
6781
|
"border-border-dark": r === "dark" && t === Pt,
|
6782
6782
|
"border-border-accent": r === "light" && t === Pt
|
6783
6783
|
}),
|
@@ -6792,7 +6792,7 @@ const mt = "panel", Pt = "messagebox", Yu = ({
|
|
6792
6792
|
children: a,
|
6793
6793
|
footer: n,
|
6794
6794
|
borderMode: s = "light",
|
6795
|
-
kind: o =
|
6795
|
+
kind: o = pt,
|
6796
6796
|
className: c,
|
6797
6797
|
animation: l = !1,
|
6798
6798
|
animationType: d = Qu
|
@@ -6878,7 +6878,7 @@ const Ge = ({
|
|
6878
6878
|
onOpenChange: t,
|
6879
6879
|
title: n.title,
|
6880
6880
|
footer: /* @__PURE__ */ T(Tn, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
6881
|
-
/* @__PURE__ */ i(
|
6881
|
+
/* @__PURE__ */ i(yt, { children: !s && /* @__PURE__ */ i(
|
6882
6882
|
ka,
|
6883
6883
|
{
|
6884
6884
|
noBorder: !0,
|
@@ -6891,7 +6891,7 @@ const Ge = ({
|
|
6891
6891
|
children: n.cancelAction
|
6892
6892
|
}
|
6893
6893
|
) }),
|
6894
|
-
/* @__PURE__ */ i(
|
6894
|
+
/* @__PURE__ */ i(yt, { children: /* @__PURE__ */ i(
|
6895
6895
|
ka,
|
6896
6896
|
{
|
6897
6897
|
noBorder: !0,
|
@@ -6925,7 +6925,7 @@ const Ge = ({
|
|
6925
6925
|
privateChat: !t
|
6926
6926
|
}
|
6927
6927
|
}), g && a({
|
6928
|
-
type:
|
6928
|
+
type: at,
|
6929
6929
|
payload: {
|
6930
6930
|
attachments: 0
|
6931
6931
|
}
|
@@ -7375,7 +7375,7 @@ const rh = (e) => {
|
|
7375
7375
|
reasoning: !t
|
7376
7376
|
}
|
7377
7377
|
}), g && a({
|
7378
|
-
type:
|
7378
|
+
type: at,
|
7379
7379
|
payload: {
|
7380
7380
|
attachments: 0
|
7381
7381
|
}
|
@@ -7442,7 +7442,7 @@ const rh = (e) => {
|
|
7442
7442
|
] });
|
7443
7443
|
};
|
7444
7444
|
let pr = null, gr = null;
|
7445
|
-
const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = async () => (gr || (gr = import("./index.
|
7445
|
+
const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = async () => (gr || (gr = import("./index.1NVu-BYL.js").then((e) => e.utilities)), gr), nh = async () => {
|
7446
7446
|
try {
|
7447
7447
|
await Promise.all([Gs(), Js()]);
|
7448
7448
|
} catch {
|
@@ -7469,7 +7469,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
7469
7469
|
const { user: t, getAccessToken: r } = Ue(), {
|
7470
7470
|
dispatch: a,
|
7471
7471
|
state: { tokenUsage: n, provider: s, privateChat: o }
|
7472
|
-
} = X(be), { messages: c, id: l } =
|
7472
|
+
} = X(be), { messages: c, id: l } = dt(), { state: d } = X(aa), { refetch: f } = ts({
|
7473
7473
|
enabled: !1,
|
7474
7474
|
user: t?.username || "",
|
7475
7475
|
searchString: d.searchString,
|
@@ -7640,7 +7640,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
7640
7640
|
state: { privateChat: r },
|
7641
7641
|
setChatId: a,
|
7642
7642
|
setInitialMessages: n
|
7643
|
-
} = X(be), { getAccessToken: s, user: o } = Ue(), { status: c } =
|
7643
|
+
} = X(be), { getAccessToken: s, user: o } = Ue(), { status: c } = dt(), [l, d] = F(!1), f = W(() => {
|
7644
7644
|
l || (nh(), d(!0));
|
7645
7645
|
}, [l]), { isSuccess: u, refetch: h, data: m } = Yt({
|
7646
7646
|
user: o?.username,
|
@@ -7831,7 +7831,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
7831
7831
|
setMessages: L,
|
7832
7832
|
status: M,
|
7833
7833
|
id: q
|
7834
|
-
} =
|
7834
|
+
} = dt({
|
7835
7835
|
onFinish: (G, { usage: se }) => {
|
7836
7836
|
S(), f({
|
7837
7837
|
type: Xn,
|
@@ -7919,7 +7919,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
7919
7919
|
if (ye.length > 0) {
|
7920
7920
|
const N = new DataTransfer();
|
7921
7921
|
ye.forEach((j) => N.items.add(j)), s(N.files), f({
|
7922
|
-
type:
|
7922
|
+
type: at,
|
7923
7923
|
payload: {
|
7924
7924
|
attachments: N.files.length
|
7925
7925
|
}
|
@@ -7935,7 +7935,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
7935
7935
|
Array.from(n).forEach((ie) => {
|
7936
7936
|
ie !== G && se.items.add(ie);
|
7937
7937
|
}), se.files.length === 0 ? s(null) : s(se.files), f({
|
7938
|
-
type:
|
7938
|
+
type: at,
|
7939
7939
|
payload: {
|
7940
7940
|
attachments: se.files.length
|
7941
7941
|
}
|
@@ -7970,7 +7970,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
7970
7970
|
[
|
7971
7971
|
"mod+K",
|
7972
7972
|
() => {
|
7973
|
-
E && E.current && !
|
7973
|
+
E && E.current && !rt() && E.current.focus();
|
7974
7974
|
}
|
7975
7975
|
]
|
7976
7976
|
]), $(() => {
|
@@ -7978,7 +7978,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
7978
7978
|
const G = v.prompt.endsWith(":") && !v.prompt.endsWith(": ") ? v.prompt + " " : v.prompt;
|
7979
7979
|
G.indexOf(_a) !== -1 ? navigator.clipboard.readText().then((ie) => {
|
7980
7980
|
P(G.replace(_a, ie));
|
7981
|
-
}) : P(G), !
|
7981
|
+
}) : P(G), !rt() && E.current && E.current.focus(), w({
|
7982
7982
|
type: _n
|
7983
7983
|
});
|
7984
7984
|
}
|
@@ -7989,7 +7989,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
7989
7989
|
}
|
7990
7990
|
g > 0 && g !== k.current ? (k.current = g, setTimeout(() => {
|
7991
7991
|
E.current && (!z && Lt(E), E.current.focus());
|
7992
|
-
}, bh)) : h === !1 && !z && (Lt(E), E.current && E.current.focus());
|
7992
|
+
}, bh)) : h === !1 && !z && (Lt(E), !rt() && E.current && E.current.focus());
|
7993
7993
|
}, [g, h, z]), $(() => {
|
7994
7994
|
v.lastTriggeredTimestamp && setTimeout(() => {
|
7995
7995
|
ge();
|
@@ -8073,13 +8073,13 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8073
8073
|
] })
|
8074
8074
|
] }) })
|
8075
8075
|
] });
|
8076
|
-
},
|
8076
|
+
}, ht = "--sassy-bottom", Ch = ({ isComponent: e }) => {
|
8077
8077
|
const {
|
8078
8078
|
state: { loading: t, streaming: r, restoring: a }
|
8079
8079
|
} = X(be), {
|
8080
8080
|
state: { footerHeight: n, footerPosition: s },
|
8081
8081
|
dispatch: o
|
8082
|
-
} = X(sa), { messages: c } =
|
8082
|
+
} = X(sa), { messages: c } = dt(), { height: l } = zi(), { height: d } = Fi(), [f, u] = Kn(), h = he(() => rt(), []), m = l - d, g = he(() => m > 0 && m < 100 ? To : Cn, [m]);
|
8083
8083
|
return $(() => {
|
8084
8084
|
n !== u.height && o({
|
8085
8085
|
type: Qn,
|
@@ -8090,48 +8090,48 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8090
8090
|
}, [u.height, n, o]), $(() => {
|
8091
8091
|
if (!f || !f.current)
|
8092
8092
|
return;
|
8093
|
-
const y = f?.current?.style.getPropertyValue(
|
8093
|
+
const y = f?.current?.style.getPropertyValue(ht);
|
8094
8094
|
if (h) {
|
8095
8095
|
y !== `${g}px` && (o({
|
8096
|
-
type:
|
8096
|
+
type: mt,
|
8097
8097
|
payload: {
|
8098
8098
|
footerPosition: Ke,
|
8099
8099
|
footerOffset: g
|
8100
8100
|
}
|
8101
8101
|
}), f.current.style.setProperty(
|
8102
|
-
|
8102
|
+
ht,
|
8103
8103
|
`${g}px`
|
8104
8104
|
));
|
8105
8105
|
return;
|
8106
8106
|
}
|
8107
8107
|
if (s === Wt && (t && !r || a) && y !== `${g}px` && (o({
|
8108
|
-
type:
|
8108
|
+
type: mt,
|
8109
8109
|
payload: {
|
8110
8110
|
footerPosition: Ke,
|
8111
8111
|
footerOffset: g
|
8112
8112
|
}
|
8113
8113
|
}), f.current.style.setProperty(
|
8114
|
-
|
8114
|
+
ht,
|
8115
8115
|
`${g}px`
|
8116
8116
|
)), s === Ke && y !== `${g}px` && (o({
|
8117
|
-
type:
|
8117
|
+
type: mt,
|
8118
8118
|
payload: {
|
8119
8119
|
footerPosition: Ke,
|
8120
8120
|
footerOffset: g
|
8121
8121
|
}
|
8122
8122
|
}), f.current.style.setProperty(
|
8123
|
-
|
8123
|
+
ht,
|
8124
8124
|
`${g}px`
|
8125
8125
|
)), !t && !r && !a && c.length === 0 && l > 0 && u.height > 0) {
|
8126
8126
|
const v = `${l - u.height - (e ? 300 : 245)}`;
|
8127
8127
|
y !== `${v}px` && Number(v) > 0 && (o({
|
8128
|
-
type:
|
8128
|
+
type: mt,
|
8129
8129
|
payload: {
|
8130
8130
|
footerPosition: Wt,
|
8131
8131
|
footerOffset: Number(v)
|
8132
8132
|
}
|
8133
8133
|
}), f?.current?.style.setProperty(
|
8134
|
-
|
8134
|
+
ht,
|
8135
8135
|
`${v}px`
|
8136
8136
|
));
|
8137
8137
|
}
|
@@ -8165,18 +8165,18 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8165
8165
|
]
|
8166
8166
|
}
|
8167
8167
|
);
|
8168
|
-
}, Ih =
|
8169
|
-
() => import("./ProfileEntry.
|
8170
|
-
), xh =
|
8171
|
-
() => import("./SettingsEntry.
|
8168
|
+
}, Ih = st(
|
8169
|
+
() => import("./ProfileEntry.Bmyl_deB.js").then((e) => ({ default: e.Profile }))
|
8170
|
+
), xh = st(
|
8171
|
+
() => import("./SettingsEntry.CO4vgrKR.js").then((e) => ({
|
8172
8172
|
default: e.SettingsPanel
|
8173
8173
|
}))
|
8174
|
-
), Rh =
|
8175
|
-
() => import("./HistoryEntry.
|
8176
|
-
), Ah =
|
8177
|
-
() => import("./AboutEntry.
|
8178
|
-
), Nh =
|
8179
|
-
() => import("./UsageEntry.
|
8174
|
+
), Rh = st(
|
8175
|
+
() => import("./HistoryEntry.C92fhlNu.js").then((e) => ({ default: e.HistoryPanel }))
|
8176
|
+
), Ah = st(
|
8177
|
+
() => import("./AboutEntry.DhljBqVO.js").then((e) => ({ default: e.About }))
|
8178
|
+
), Nh = st(
|
8179
|
+
() => import("./UsageEntry.BGyXJHmv.js").then((e) => ({ default: e.Usage }))
|
8180
8180
|
), Oh = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ i(An, { fallback: /* @__PURE__ */ i("div", {}), children: (() => {
|
8181
8181
|
switch (e) {
|
8182
8182
|
case "profile":
|
@@ -8196,7 +8196,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8196
8196
|
isComponent: e = !1
|
8197
8197
|
}) => {
|
8198
8198
|
const { logout: t, getAccessToken: r } = Ue(), [a, n] = F(null), [s, o] = F(!1), [c, l] = F(!1), [d, f] = F(!1), u = W(() => {
|
8199
|
-
d || (import("./ProfileEntry.
|
8199
|
+
d || (import("./ProfileEntry.Bmyl_deB.js"), import("./SettingsEntry.CO4vgrKR.js"), import("./HistoryEntry.C92fhlNu.js"), import("./AboutEntry.DhljBqVO.js"), import("./UsageEntry.BGyXJHmv.js"), f(!0));
|
8200
8200
|
}, [d]), h = (y) => {
|
8201
8201
|
n(y);
|
8202
8202
|
}, m = () => {
|
@@ -8242,13 +8242,13 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8242
8242
|
rowGap: 0,
|
8243
8243
|
columnGap: 0,
|
8244
8244
|
children: [
|
8245
|
-
/* @__PURE__ */ i(
|
8246
|
-
/* @__PURE__ */ i(
|
8245
|
+
/* @__PURE__ */ i(yt, { children: /* @__PURE__ */ i(ih, { className: " mr-4 sm:mr-2" }) }),
|
8246
|
+
/* @__PURE__ */ i(yt, { children: Xe() && /* @__PURE__ */ T(ue, { children: [
|
8247
8247
|
s && /* @__PURE__ */ i(Ks, { className: "mr-4 sm:mr-2" }),
|
8248
8248
|
/* @__PURE__ */ i(Fs, { className: "mr-4 sm:mr-2" }),
|
8249
8249
|
/* @__PURE__ */ i(Qs, {})
|
8250
8250
|
] }) }),
|
8251
|
-
/* @__PURE__ */ i(
|
8251
|
+
/* @__PURE__ */ i(yt, { children: /* @__PURE__ */ i(
|
8252
8252
|
Oe,
|
8253
8253
|
{
|
8254
8254
|
label: "Profile, Settings, etc.",
|
@@ -9774,10 +9774,10 @@ const Of = ({ content: e }) => /* @__PURE__ */ i(
|
|
9774
9774
|
className: "mt-3",
|
9775
9775
|
children: /* @__PURE__ */ i(Nf, { mode: "light", focusMode: "light", children: e })
|
9776
9776
|
}
|
9777
|
-
), En = 2, $f =
|
9777
|
+
), En = 2, $f = st(
|
9778
9778
|
() => import(
|
9779
9779
|
/* webpackChunkName: "LazyMessageAssistant" */
|
9780
|
-
"./ChatBubbleAssistant.
|
9780
|
+
"./ChatBubbleAssistant.DUDmGgnN.js"
|
9781
9781
|
)
|
9782
9782
|
), Pf = Z.memo(
|
9783
9783
|
({
|
@@ -9803,7 +9803,7 @@ const Of = ({ content: e }) => /* @__PURE__ */ i(
|
|
9803
9803
|
) }) : null;
|
9804
9804
|
}
|
9805
9805
|
), Mf = () => {
|
9806
|
-
const { messages: e } =
|
9806
|
+
const { messages: e } = dt(), t = e ? e.map((r, a) => r.role === Gt ? a : -1).filter((r) => r !== -1).pop() : -1;
|
9807
9807
|
return e && e.length > 0 ? /* @__PURE__ */ i("div", { className: "space-y-6 mt-2 @container", children: e?.map((r, a) => {
|
9808
9808
|
let n;
|
9809
9809
|
const s = `${a}-${r.role}`, o = r.parts.map((d) => {
|
@@ -9873,9 +9873,9 @@ function co({
|
|
9873
9873
|
initialValue: ""
|
9874
9874
|
}), [m] = jt({
|
9875
9875
|
key: Ft + Oo,
|
9876
|
-
initialValue:
|
9876
|
+
initialValue: ft.ASC
|
9877
9877
|
}), g = he(() => {
|
9878
|
-
const k =
|
9878
|
+
const k = rt();
|
9879
9879
|
return {
|
9880
9880
|
footerPosition: k ? Ke : Wt,
|
9881
9881
|
footerHeight: 0,
|
@@ -9906,9 +9906,7 @@ function co({
|
|
9906
9906
|
getAccessToken: a
|
9907
9907
|
});
|
9908
9908
|
return $(() => {
|
9909
|
-
|
9910
|
-
document.getElementById("root")?.classList.replace("app-hidden", "fadeIn");
|
9911
|
-
}, 500);
|
9909
|
+
document.getElementById("root")?.classList.replace("app-hidden", "fadeIn");
|
9912
9910
|
}, []), $(() => {
|
9913
9911
|
_ && _.provider && b({
|
9914
9912
|
type: Zn,
|
@@ -10026,7 +10024,7 @@ export {
|
|
10026
10024
|
xs as O,
|
10027
10025
|
no as Oe,
|
10028
10026
|
bc as Pe,
|
10029
|
-
|
10027
|
+
ft as R,
|
10030
10028
|
Ve as SERVICE_TYPES,
|
10031
10029
|
Gf as Ye,
|
10032
10030
|
gi as a,
|
@@ -10047,7 +10045,7 @@ export {
|
|
10047
10045
|
Ic as setNewProvider,
|
10048
10046
|
nm as showErrorToast,
|
10049
10047
|
Ys as showSuccessToast,
|
10050
|
-
|
10048
|
+
dt as useAiChat,
|
10051
10049
|
qf as useChangelogs,
|
10052
10050
|
ts as useChatsHistory,
|
10053
10051
|
Qf as useChatsUsage,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx as Tp } from "react/jsx-runtime";
|
2
|
-
import { getDefaultExportFromCjs as ln } from "./App.
|
2
|
+
import { getDefaultExportFromCjs as ln } from "./App.9D7tAP-W.js";
|
3
3
|
import Ap, { useState as Cp, useEffect as Pp } from "react";
|
4
|
-
import { TRIMESTERS as rn, TRIMESTERS_SHORT as Op, isProbablyMobile as Lp } from "./index.
|
4
|
+
import { TRIMESTERS as rn, TRIMESTERS_SHORT as Op, isProbablyMobile as Lp } from "./index.1NVu-BYL.js";
|
5
5
|
var ls = { exports: {} }, Ep = ls.exports, on;
|
6
6
|
function Ip() {
|
7
7
|
return on || (on = 1, function(ve, ne) {
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { jsx as T } from "react/jsx-runtime";
|
2
|
-
import { ChatContext as b, E as _, Me as N, Oe as S } from "./App.
|
2
|
+
import { ChatContext as b, E as _, Me as N, Oe as S } from "./App.9D7tAP-W.js";
|
3
3
|
import L from "clsx";
|
4
4
|
import k, { useState as E, useRef as g, useEffect as O, useContext as w } from "react";
|
5
|
-
import { LOCAL_STORAGE_PREFIX as F, LOCAL_STORAGE_CHAT_DETAILS as G, convertCamelCaseToReadable as U, numberFormatter as I, pluralize as P, ROLE_INTERNAL as v } from "./index.
|
6
|
-
import { useMarkdown as y } from "./useMarkdown.
|
5
|
+
import { LOCAL_STORAGE_PREFIX as F, LOCAL_STORAGE_CHAT_DETAILS as G, convertCamelCaseToReadable as U, numberFormatter as I, pluralize as P, ROLE_INTERNAL as v } from "./index.1NVu-BYL.js";
|
6
|
+
import { useMarkdown as y } from "./useMarkdown.B-P_2-Ze.js";
|
7
7
|
const D = 2, j = D * 1e3, h = "", q = (e) => e * (2 - e);
|
8
8
|
function V(e, a = !0) {
|
9
9
|
const [i, C] = E(0), [c, p] = E(0), [t, A] = E(e), r = g(0), s = g(0);
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsxs as s, jsx as e, Fragment as Z } from "react/jsx-runtime";
|
2
|
-
import { I as H, n as G, INFINITE_SCROLL_LIMIT as M, INFINITE_SCROLL_THRESHOLD as B, LOCAL_STORAGE_PREFIX as U, LOCAL_STORAGE_SORT as ee, APP_CLASSNAME as te, le as b, CARDS as se, pluralize as ae, ACTION_SORT as V, TOAST_CHAT_DELETED as re, TOAST_PROVIDER_CHANGED as oe, LOCAL_STORAGE_SEARCH as ce, HISTORY_TITLE as ne, fe as ie, debounce as le, ACTION_SEARCH as de } from "./index.
|
3
|
-
import { HistoryContext as Y, ChatContext as j, useAiChat as me, E as q, useUserPreferences as he, ConfirmationPanel as ue, LazyToastContainerWrapper as pe, He as Ce, $e as Se, qe as _, Pe as l, Ye as ge, Ge as ye, j as fe, a as xe, p as Te, p$1 as ve, at as $, Fe as we, mutateCall as P, SERVICE_TYPES as F, showErrorToast as Ee, R as x, O as De, n as Ne, o as Ae, setNewProvider as Ie, CHAT_SET_PROVIDER as Re, showSuccessToast as ze, CHAT_SET_STATUS as _e, useChatsHistory as be, rr as ke, a$1 as Le } from "./App.
|
2
|
+
import { I as H, n as G, INFINITE_SCROLL_LIMIT as M, INFINITE_SCROLL_THRESHOLD as B, LOCAL_STORAGE_PREFIX as U, LOCAL_STORAGE_SORT as ee, APP_CLASSNAME as te, le as b, CARDS as se, pluralize as ae, ACTION_SORT as V, TOAST_CHAT_DELETED as re, TOAST_PROVIDER_CHANGED as oe, LOCAL_STORAGE_SEARCH as ce, HISTORY_TITLE as ne, fe as ie, debounce as le, ACTION_SEARCH as de } from "./index.1NVu-BYL.js";
|
3
|
+
import { HistoryContext as Y, ChatContext as j, useAiChat as me, E as q, useUserPreferences as he, ConfirmationPanel as ue, LazyToastContainerWrapper as pe, He as Ce, $e as Se, qe as _, Pe as l, Ye as ge, Ge as ye, j as fe, a as xe, p as Te, p$1 as ve, at as $, Fe as we, mutateCall as P, SERVICE_TYPES as F, showErrorToast as Ee, R as x, O as De, n as Ne, o as Ae, setNewProvider as Ie, CHAT_SET_PROVIDER as Re, showSuccessToast as ze, CHAT_SET_STATUS as _e, useChatsHistory as be, rr as ke, a$1 as Le } from "./App.9D7tAP-W.js";
|
4
4
|
import { useRef as k, useState as D, useContext as N, useCallback as He, useEffect as L, Fragment as Oe } from "react";
|
5
5
|
const Me = ({
|
6
6
|
className: a,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { createContext as be, createSignal as R, onMount as Mt, createEffect as B, createMemo as M, createComponent as p, Portal as Lo, Show as z, template as _, insert as k, createRenderEffect as N, className as T, clearDelegatedEvents as ms, delegateEvents as rr, useContext as xe, onCleanup as U, sortFns as Gn, mutationSortFns as Hn, on as ct, setAttribute as A, getSidedProp as vs, use as Mn, batch as bs, getQueryStatusLabel as Lt, getMutationStatusColor as _t, getQueryStatusColor as xs, getQueryStatusColorByLabel as ws, displayValue as bn, For as $s, convertRemToPixels as Rr, untrack as Rt, useTransition as Cs, spread as Ss, mergeProps as j, createRoot as zr, serialize as ks, Index as Es, updateNestedDataByPath as or, addEventListener as Ms, stringify as Ds, Match as Rn, Switch as As, deleteNestedDataByPath as Ts, createUniqueId as Ke, splitProps as X, Dynamic as Fs, createComputed as Is, getPreferredColorScheme as Ps } from "./index.
|
1
|
+
import { createContext as be, createSignal as R, onMount as Mt, createEffect as B, createMemo as M, createComponent as p, Portal as Lo, Show as z, template as _, insert as k, createRenderEffect as N, className as T, clearDelegatedEvents as ms, delegateEvents as rr, useContext as xe, onCleanup as U, sortFns as Gn, mutationSortFns as Hn, on as ct, setAttribute as A, getSidedProp as vs, use as Mn, batch as bs, getQueryStatusLabel as Lt, getMutationStatusColor as _t, getQueryStatusColor as xs, getQueryStatusColorByLabel as ws, displayValue as bn, For as $s, convertRemToPixels as Rr, untrack as Rt, useTransition as Cs, spread as Ss, mergeProps as j, createRoot as zr, serialize as ks, Index as Es, updateNestedDataByPath as or, addEventListener as Ms, stringify as Ds, Match as Rn, Switch as As, deleteNestedDataByPath as Ts, createUniqueId as Ke, splitProps as X, Dynamic as Fs, createComputed as Is, getPreferredColorScheme as Ps } from "./index.1NVu-BYL.js";
|
2
2
|
var Ls = (e) => e != null, Os = (e) => e.filter(Ls);
|
3
3
|
function qs(e) {
|
4
4
|
return (...t) => {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsxs as s, Fragment as m, jsx as e } from "react/jsx-runtime";
|
2
|
-
import { i as h, nt as S, rr as R } from "./App.
|
3
|
-
import { n as N, S as l, renderDataAsList as P, CARDS as r, isElectron as p, le as T, l as E, L as C, j as a, PROFILE_TITLE as u } from "./index.
|
2
|
+
import { i as h, nt as S, rr as R } from "./App.9D7tAP-W.js";
|
3
|
+
import { n as N, S as l, renderDataAsList as P, CARDS as r, isElectron as p, le as T, l as E, L as C, j as a, PROFILE_TITLE as u } from "./index.1NVu-BYL.js";
|
4
4
|
const A = () => {
|
5
5
|
const { isAuthenticated: n, user: i, registeringForPasskey: c, authenticationType: o } = N(), d = h(), t = i?.username || "";
|
6
6
|
return n && t ? /* @__PURE__ */ s(m, { children: [
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsxs as N, jsx as l } from "react/jsx-runtime";
|
2
|
-
import { n as ve, LOCAL_STORAGE_PREFIX as se, LOCAL_STORAGE_CHAT_DETAILS as _e, LOCAL_STORAGE_SERVICE_WORKER as we, isServiceWorkerEnabled as Ce, isStandaloneMode as Se, SETTINGS_TITLE as Ie, S as U, CARDS as P, APP_NAME as Ae, C as ae, PROMPTS_DESCRIPTION as Re, L as Le, j as ce, getCurrentGeoLocation as Oe, handleServiceWorkerToggle as Me } from "./index.
|
3
|
-
import { useUserPreferences as De, E as ie, rr as Pe, mutateCall as de, SERVICE_TYPES as ue } from "./App.
|
2
|
+
import { n as ve, LOCAL_STORAGE_PREFIX as se, LOCAL_STORAGE_CHAT_DETAILS as _e, LOCAL_STORAGE_SERVICE_WORKER as we, isServiceWorkerEnabled as Ce, isStandaloneMode as Se, SETTINGS_TITLE as Ie, S as U, CARDS as P, APP_NAME as Ae, C as ae, PROMPTS_DESCRIPTION as Re, L as Le, j as ce, getCurrentGeoLocation as Oe, handleServiceWorkerToggle as Me } from "./index.1NVu-BYL.js";
|
3
|
+
import { useUserPreferences as De, E as ie, rr as Pe, mutateCall as de, SERVICE_TYPES as ue } from "./App.9D7tAP-W.js";
|
4
4
|
import Ge, { useRef as v, useState as y, useLayoutEffect as z, useMemo as pe, useEffect as j, useId as Be, useReducer as He, useCallback as Ve } from "react";
|
5
5
|
import i from "clsx";
|
6
6
|
const he = "av-text-area", Ue = "av-text-area-wrapper", oe = "av-text-area-helper-text", $e = "av-text-area__control--right", Fe = "av-text-area__control--left";
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
2
|
-
import { n as f, USAGE_TITLE as U, S as T, renderDataAsList as v, CARDS as n, L as E, j as L, C as S, pluralize as i } from "./index.
|
3
|
-
import { i as M, useUserChatStats as _, useChatsUsage as D, rr as z } from "./App.
|
2
|
+
import { n as f, USAGE_TITLE as U, S as T, renderDataAsList as v, CARDS as n, L as E, j as L, C as S, pluralize as i } from "./index.1NVu-BYL.js";
|
3
|
+
import { i as M, useUserChatStats as _, useChatsUsage as D, rr as z } from "./App.9D7tAP-W.js";
|
4
4
|
import { useState as O, Suspense as P, lazy as j } from "react";
|
5
5
|
const s = [0, 3, 6, 9], G = j(() => import(
|
6
6
|
/* webpackChunkName: "LazyChart" */
|
7
|
-
"./Chart.
|
7
|
+
"./Chart.DA3KPOhe.js"
|
8
8
|
)), w = ({
|
9
9
|
open: m,
|
10
10
|
onOpenChange: I
|
@@ -3179,7 +3179,7 @@ var pu = (e, t = !1) => {
|
|
3179
3179
|
const t = Mi(() => {
|
3180
3180
|
const r = this, [n] = this.#i, [s] = this.#c, [i] = this.#l, [a] = this.#u, [o] = this.#e;
|
3181
3181
|
let c;
|
3182
|
-
return this.#d ? c = this.#d : (c = Ai(() => import("./I3HPI4QX.
|
3182
|
+
return this.#d ? c = this.#d : (c = Ai(() => import("./I3HPI4QX.DUpsHxtP.js")), this.#d = c), _a(this.#o, this.#a), vi(c, Si({
|
3183
3183
|
get queryFlavor() {
|
3184
3184
|
return r.#r;
|
3185
3185
|
},
|
@@ -7390,7 +7390,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, cd = "{{clipboard}}", ld =
|
|
7390
7390
|
);
|
7391
7391
|
}, Fl = new URL(document.location.href).searchParams, an = !!Fl.get("debug") || !1, Kl = xs(() => import(
|
7392
7392
|
/* webpackChunkName: "LazyApp" */
|
7393
|
-
"./App.
|
7393
|
+
"./App.9D7tAP-W.js"
|
7394
7394
|
).then((e) => e.App)), Hl = new ri(), on = ({
|
7395
7395
|
isComponent: e,
|
7396
7396
|
headerHeight: t
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { convert as se, visitParents as Me, unicodeWhitespace as I, unicodePunctuation as N, normalizeIdentifier as _, classifyCharacter as W, visit as _e, toString as ce, EXIT as Oe, asciiAlphanumeric as Z, asciiAlpha as P, markdownLineEndingOrSpace as A, asciiControl as je, blankLine as Be, factorySpace as S, splice as q, resolveAll as We, markdownLineEnding as R, markdownSpace as T, combineExtensions as $e } from "./useMarkdown.
|
1
|
+
import { convert as se, visitParents as Me, unicodeWhitespace as I, unicodePunctuation as N, normalizeIdentifier as _, classifyCharacter as W, visit as _e, toString as ce, EXIT as Oe, asciiAlphanumeric as Z, asciiAlpha as P, markdownLineEndingOrSpace as A, asciiControl as je, blankLine as Be, factorySpace as S, splice as q, resolveAll as We, markdownLineEnding as R, markdownSpace as T, combineExtensions as $e } from "./useMarkdown.B-P_2-Ze.js";
|
2
2
|
import { longestStreak as qe } from "./index.Cyw5OC0t.js";
|
3
3
|
function ne(e, n) {
|
4
4
|
const t = String(e);
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { find as Aa, parse as Ft, parse$1 as Ht, normalize as Pt, html as Ta, svg as Ba, visitParents as Na, SKIP as Da } from "./useMarkdown.
|
2
|
-
import { toText as Ca } from "./index.
|
1
|
+
import { find as Aa, parse as Ft, parse$1 as Ht, normalize as Pt, html as Ta, svg as Ba, visitParents as Na, SKIP as Da } from "./useMarkdown.B-P_2-Ze.js";
|
2
|
+
import { toText as Ca } from "./index.DqNRauDV.js";
|
3
3
|
const Gt = /[#.]/g;
|
4
4
|
function qa(r, e) {
|
5
5
|
const t = r || "", a = {};
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { getDefaultExportFromCjs as kn } from "./App.
|
2
|
-
import { visit as In } from "./useMarkdown.
|
3
|
-
import { toText as Cn } from "./index.
|
1
|
+
import { getDefaultExportFromCjs as kn } from "./App.9D7tAP-W.js";
|
2
|
+
import { visit as In } from "./useMarkdown.B-P_2-Ze.js";
|
3
|
+
import { toText as Cn } from "./index.DqNRauDV.js";
|
4
4
|
function xn(e) {
|
5
5
|
const t = e.regex, i = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), a = "decltype\\(auto\\)", r = "[a-zA-Z_]\\w*::", d = "(?!struct)(" + a + "|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", c = {
|
6
6
|
className: "type",
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import * as rn from "react/jsx-runtime";
|
2
2
|
import { jsx as se, jsxs as Pn, Fragment as Er } from "react/jsx-runtime";
|
3
|
-
import { le as Ir, unObfuscate as Tr, obfuscate as Pr } from "./index.
|
3
|
+
import { le as Ir, unObfuscate as Tr, obfuscate as Pr } from "./index.1NVu-BYL.js";
|
4
4
|
import Ar, { useState as Lt, useEffect as _t, useRef as Re, useCallback as zr } from "react";
|
5
|
-
import { getDefaultExportFromCjs as vt } from "./App.
|
5
|
+
import { getDefaultExportFromCjs as vt } from "./App.9D7tAP-W.js";
|
6
6
|
import Lr from "clsx";
|
7
7
|
const Nt = ({
|
8
8
|
children: e,
|
@@ -6867,7 +6867,7 @@ class ou {
|
|
6867
6867
|
if (!this.remarkGfm) {
|
6868
6868
|
const { default: n } = await import(
|
6869
6869
|
/* webpackChunkName: "LazyRemarkGfm" */
|
6870
|
-
"./index.
|
6870
|
+
"./index.CMwAtVjF.js"
|
6871
6871
|
);
|
6872
6872
|
this.remarkGfm = n;
|
6873
6873
|
}
|
@@ -6878,7 +6878,7 @@ class ou {
|
|
6878
6878
|
pu("https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css");
|
6879
6879
|
const { default: n } = await import(
|
6880
6880
|
/* webpackChunkName: "LazyRehypeKatex" */
|
6881
|
-
"./index.
|
6881
|
+
"./index.CZXC4tuS.js"
|
6882
6882
|
);
|
6883
6883
|
this.rehypeKatex = n;
|
6884
6884
|
}
|
@@ -6888,7 +6888,7 @@ class ou {
|
|
6888
6888
|
if (!this.remarkMath) {
|
6889
6889
|
const { default: n } = await import(
|
6890
6890
|
/* webpackChunkName: "LazyRemarkMath" */
|
6891
|
-
"./index.
|
6891
|
+
"./index.Dkj1FYyK.js"
|
6892
6892
|
);
|
6893
6893
|
this.remarkMath = n;
|
6894
6894
|
}
|
@@ -6898,7 +6898,7 @@ class ou {
|
|
6898
6898
|
if (!this.rehypeHighlight) {
|
6899
6899
|
const { default: n } = await import(
|
6900
6900
|
/* webpackChunkName: "LazyRehypeHighlight" */
|
6901
|
-
"./index.
|
6901
|
+
"./index.ClAz6-Y-.js"
|
6902
6902
|
);
|
6903
6903
|
this.rehypeHighlight = n;
|
6904
6904
|
}
|
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.1NVu-BYL.js";
|
2
2
|
/*!
|
3
|
-
@sassysaint/client v8.26.
|
3
|
+
@sassysaint/client v8.26.3
|
4
4
|
© 2025 gizmette.com
|
5
5
|
*/
|
6
6
|
try {
|
7
7
|
window.__VERSINI_SASSY_GLOBAL__ || (window.__VERSINI_SASSY_GLOBAL__ = {
|
8
|
-
version: "8.26.
|
9
|
-
buildTime: "07/
|
8
|
+
version: "8.26.3",
|
9
|
+
buildTime: "07/19/2025 01:19 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": "8.26.
|
3
|
+
"version": "8.26.3",
|
4
4
|
"license": "MIT",
|
5
5
|
"author": "Arno Versini",
|
6
6
|
"publishConfig": {
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"react-dom": "^18.3.1 || ^19.0.0"
|
31
31
|
},
|
32
32
|
"devDependencies": {
|
33
|
-
"@sassysaint/client": "8.26.
|
33
|
+
"@sassysaint/client": "8.26.3",
|
34
34
|
"@tailwindcss/vite": "4.1.11",
|
35
35
|
"@versini/ui-styles": "5.0.7"
|
36
36
|
},
|
@@ -42,5 +42,5 @@
|
|
42
42
|
"sideEffects": [
|
43
43
|
"**/*.css"
|
44
44
|
],
|
45
|
-
"gitHead": "
|
45
|
+
"gitHead": "3d45d51b9b83eab0f987f9da505747fed42e840a"
|
46
46
|
}
|