@versini/sassysaint 8.28.0 → 8.29.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.BUg4dbxV.js → AboutChangelog.M90juRIy.js} +2 -2
- package/dist/chunks/{AboutEntry.CnQuVxBn.js → AboutEntry.kH6ltak0.js} +5 -5
- package/dist/chunks/{App.CzWaf0yZ.js → App.ChA2aFY5.js} +361 -346
- package/dist/chunks/{Chart.BPqfTada.js → Chart.Bmfd_QO7.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.BY2pIWGJ.js → ChatBubbleAssistant.D2ZDce3g.js} +3 -3
- package/dist/chunks/{HistoryEntry.MSbsoome.js → HistoryEntry.o-IldF0j.js} +2 -2
- package/dist/chunks/{I3HPI4QX.D24JNLrr.js → I3HPI4QX.cbrtRGdF.js} +1 -1
- package/dist/chunks/{ProfileEntry.CDiK8mzx.js → ProfileEntry.Ds8q8KOU.js} +2 -2
- package/dist/chunks/{SettingsEntry.Dv6Kehs1.js → SettingsEntry.JFli24PX.js} +2 -2
- package/dist/chunks/{UsageEntry.ejiD45yG.js → UsageEntry.DuVye9ur.js} +3 -3
- package/dist/chunks/{index.CchBMzAb.js → index.6-fBo4WQ.js} +1 -1
- package/dist/chunks/{index.XC3_OLY_.js → index.B3n7unRv.js} +2 -2
- package/dist/chunks/{index.BaSAk-yI.js → index.B6Xsle-o.js} +2 -2
- package/dist/chunks/{index.BpElisE9.js → index.BrdZJBor.js} +1 -1
- package/dist/chunks/{index.efoB7xgZ.js → index.DOlbcQYi.js} +3 -3
- package/dist/chunks/{index.CwYp2PVL.js → index.DlNPeSzB.js} +1 -1
- package/dist/chunks/{useMarkdown.h7SL4mI4.js → useMarkdown.C37WdAvM.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
@@ -1,12 +1,12 @@
|
|
1
1
|
import { jsx as i, jsxs as T, Fragment as ue } from "react/jsx-runtime";
|
2
|
-
import { Subscribable as uo, pendingThenable as
|
2
|
+
import { Subscribable as uo, pendingThenable as wa, resolveEnabled as ke, shallowEqualObjects as wr, resolveStaleTime as gt, noop as Er, isServer as kr, isValidTimeout as Ea, focusManager as ho, fetchState as fo, replaceData as ka, notifyManager as Sn, timeUntilStale as mo, shouldThrowError as po, useQueryClient as go, I as re, ACTION_SORT as yo, ACTION_SEARCH as bo, ACTION_RESET_PROMPT as Tn, ACTION_TOGGLE_PROMPT as Cn, le as Ce, DEFAULT_ICON_ACTION_SIZE as Te, n as Ve, isElectron as _a, isTauri as _r, isProbablyiPhone as Ae, L as In, j as yt, C as Sa, LOCAL_STORAGE_PREFIX as Ft, LOCAL_STORAGE_PRIVATE_DISCLOSURE as vo, LOCAL_STORAGE_REASONING_DISCLOSURE as wo, TOAST_CHAT_SAVED as Eo, TOAST_PROVIDER_CHANGED as ko, PROMPT_CLASSNAME as _o, PROMPT_EDITABLE_AREA_CLASSNAME as So, ERROR_MESSAGE as To, ROLE_INTERNAL as Sr, CLIPBOARD_PROMPT as Ta, isProbablyMobile as Ge, INPUT_PLACEHOLDER_TEXT_MOBILE as Ca, INPUT_PLACEHOLDER_TEXT_ENTER as Ia, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as xa, INPUT_BOTTOM_OFFSET_EXTRA as Co, INPUT_BOTTOM_OFFSET as xn, FOOTER_DISCLAIMER as Io, LOG_OUT as Ra, getMessageContaintWrapperClass as xo, UI_FOOTER_BUFFER as Rn, UI_BUTTON_SCROLL_BUFFER as Ro, Logo as Ao, UI_DEFAULT_MAIN_HEIGHT as Aa, APP_CLASSNAME as No, getMainPaddingClass as Na, r as Oo, LOCAL_STORAGE_SORT as $o, LOCAL_STORAGE_SEARCH as Po } from "./index.B6Xsle-o.js";
|
3
3
|
import * as Y from "react";
|
4
|
-
import Z, { useEffect as $, useRef as R, useState as F, useCallback as W, useSyncExternalStore as Mo, useMemo as he, useId as
|
4
|
+
import Z, { useEffect as $, useRef as R, useState as F, useCallback as W, useSyncExternalStore as Mo, useMemo as he, useId as Kr, useContext as X, useLayoutEffect as Oe, createContext as An, useDebugValue as Lo, forwardRef as Nn, Suspense as On, lazy as ot, useReducer as St } from "react";
|
5
5
|
import p from "clsx";
|
6
|
-
import { computePosition as Do, offset as
|
6
|
+
import { computePosition as Do, offset as $n, flip as Pn, shift as Mn, arrow as Bo, useMergeRefs as Gr, FloatingPortal as Ln, FloatingOverlay as Ho, FloatingFocusManager as Dn, useFloating as Bn, useClick as Hn, useDismiss as Un, useRole as Vn, useInteractions as zn, FloatingTree as Uo, useFloatingTree as Fn, useFloatingNodeId as Vo, useListItem as jn, autoUpdate as zo, useListNavigation as Fo, useTypeahead as jo, FloatingNode as Wo, FloatingList as Ko } from "@floating-ui/react";
|
7
7
|
var Go = class extends uo {
|
8
8
|
constructor(e, t) {
|
9
|
-
super(), this.options = t, this.#r = e, this.#n = null, this.#a =
|
9
|
+
super(), this.options = t, this.#r = e, this.#n = null, this.#a = wa(), this.options.experimental_prefetchInRender || this.#a.reject(
|
10
10
|
new Error("experimental_prefetchInRender feature flag is not enabled")
|
11
11
|
), this.bindMethods(), this.setOptions(t);
|
12
12
|
}
|
@@ -31,20 +31,20 @@ var Go = class extends uo {
|
|
31
31
|
this.refetch = this.refetch.bind(this);
|
32
32
|
}
|
33
33
|
onSubscribe() {
|
34
|
-
this.listeners.size === 1 && (this.#e.addObserver(this),
|
34
|
+
this.listeners.size === 1 && (this.#e.addObserver(this), Oa(this.#e, this.options) ? this.#l() : this.updateResult(), this.#v());
|
35
35
|
}
|
36
36
|
onUnsubscribe() {
|
37
37
|
this.hasListeners() || this.destroy();
|
38
38
|
}
|
39
39
|
shouldFetchOnReconnect() {
|
40
|
-
return
|
40
|
+
return Tr(
|
41
41
|
this.#e,
|
42
42
|
this.options,
|
43
43
|
this.options.refetchOnReconnect
|
44
44
|
);
|
45
45
|
}
|
46
46
|
shouldFetchOnWindowFocus() {
|
47
|
-
return
|
47
|
+
return Tr(
|
48
48
|
this.#e,
|
49
49
|
this.options,
|
50
50
|
this.options.refetchOnWindowFocus
|
@@ -65,7 +65,7 @@ var Go = class extends uo {
|
|
65
65
|
observer: this
|
66
66
|
});
|
67
67
|
const a = this.hasListeners();
|
68
|
-
a &&
|
68
|
+
a && $a(
|
69
69
|
this.#e,
|
70
70
|
r,
|
71
71
|
this.options,
|
@@ -121,7 +121,7 @@ var Go = class extends uo {
|
|
121
121
|
this.options.staleTime,
|
122
122
|
this.#e
|
123
123
|
);
|
124
|
-
if (kr || this.#t.isStale || !
|
124
|
+
if (kr || this.#t.isStale || !Ea(e))
|
125
125
|
return;
|
126
126
|
const r = mo(this.#t.dataUpdatedAt, e) + 1;
|
127
127
|
this.#i = setTimeout(() => {
|
@@ -132,7 +132,7 @@ var Go = class extends uo {
|
|
132
132
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#e) : this.options.refetchInterval) ?? !1;
|
133
133
|
}
|
134
134
|
#b(e) {
|
135
|
-
this.#E(), this.#s = e, !(kr || ke(this.options.enabled, this.#e) === !1 || !
|
135
|
+
this.#E(), this.#s = e, !(kr || ke(this.options.enabled, this.#e) === !1 || !Ea(this.#s) || this.#s === 0) && (this.#c = setInterval(() => {
|
136
136
|
(this.options.refetchIntervalInBackground || ho.isFocused()) && this.#l();
|
137
137
|
}, this.#s));
|
138
138
|
}
|
@@ -149,7 +149,7 @@ var Go = class extends uo {
|
|
149
149
|
const r = this.#e, a = this.options, n = this.#t, s = this.#o, o = this.#d, l = e !== r ? e.state : this.#m, { state: d } = e;
|
150
150
|
let f = { ...d }, u = !1, h;
|
151
151
|
if (t._optimisticResults) {
|
152
|
-
const k = this.hasListeners(), x = !k &&
|
152
|
+
const k = this.hasListeners(), x = !k && Oa(e, t), E = k && $a(e, r, t, a);
|
153
153
|
(x || E) && (f = {
|
154
154
|
...f,
|
155
155
|
...fo(d.data, e.options)
|
@@ -163,7 +163,7 @@ var Go = class extends uo {
|
|
163
163
|
n?.isPlaceholderData && t.placeholderData === o?.placeholderData ? (k = n.data, v = !0) : k = typeof t.placeholderData == "function" ? t.placeholderData(
|
164
164
|
this.#h?.state.data,
|
165
165
|
this.#h
|
166
|
-
) : t.placeholderData, k !== void 0 && (y = "success", h =
|
166
|
+
) : t.placeholderData, k !== void 0 && (y = "success", h = ka(
|
167
167
|
n?.data,
|
168
168
|
k,
|
169
169
|
t
|
@@ -174,7 +174,7 @@ var Go = class extends uo {
|
|
174
174
|
h = this.#u;
|
175
175
|
else
|
176
176
|
try {
|
177
|
-
this.#p = t.select, h = t.select(h), h =
|
177
|
+
this.#p = t.select, h = t.select(h), h = ka(n?.data, h, t), this.#u = h, this.#n = null;
|
178
178
|
} catch (k) {
|
179
179
|
this.#n = k;
|
180
180
|
}
|
@@ -202,7 +202,7 @@ var Go = class extends uo {
|
|
202
202
|
isPaused: f.fetchStatus === "paused",
|
203
203
|
isPlaceholderData: u,
|
204
204
|
isRefetchError: S && I,
|
205
|
-
isStale:
|
205
|
+
isStale: Jr(e, t),
|
206
206
|
refetch: this.refetch,
|
207
207
|
promise: this.#a,
|
208
208
|
isEnabled: ke(t.enabled, e) !== !1
|
@@ -211,7 +211,7 @@ var Go = class extends uo {
|
|
211
211
|
const k = (V) => {
|
212
212
|
_.status === "error" ? V.reject(_.error) : _.data !== void 0 && V.resolve(_.data);
|
213
213
|
}, x = () => {
|
214
|
-
const V = this.#a = _.promise =
|
214
|
+
const V = this.#a = _.promise = wa();
|
215
215
|
k(V);
|
216
216
|
}, E = this.#a;
|
217
217
|
switch (E.status) {
|
@@ -260,7 +260,7 @@ var Go = class extends uo {
|
|
260
260
|
this.updateResult(), this.hasListeners() && this.#v();
|
261
261
|
}
|
262
262
|
#_(e) {
|
263
|
-
|
263
|
+
Sn.batch(() => {
|
264
264
|
e.listeners && this.listeners.forEach((t) => {
|
265
265
|
t(this.#t);
|
266
266
|
}), this.#r.getQueryCache().notify({
|
@@ -273,20 +273,20 @@ var Go = class extends uo {
|
|
273
273
|
function Jo(e, t) {
|
274
274
|
return ke(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
|
275
275
|
}
|
276
|
-
function
|
277
|
-
return Jo(e, t) || e.state.data !== void 0 &&
|
276
|
+
function Oa(e, t) {
|
277
|
+
return Jo(e, t) || e.state.data !== void 0 && Tr(e, t, t.refetchOnMount);
|
278
278
|
}
|
279
|
-
function
|
279
|
+
function Tr(e, t, r) {
|
280
280
|
if (ke(t.enabled, e) !== !1 && gt(t.staleTime, e) !== "static") {
|
281
281
|
const a = typeof r == "function" ? r(e) : r;
|
282
|
-
return a === "always" || a !== !1 &&
|
282
|
+
return a === "always" || a !== !1 && Jr(e, t);
|
283
283
|
}
|
284
284
|
return !1;
|
285
285
|
}
|
286
|
-
function
|
287
|
-
return (e !== t || ke(a.enabled, e) === !1) && (!r.suspense || e.state.status !== "error") &&
|
286
|
+
function $a(e, t, r, a) {
|
287
|
+
return (e !== t || ke(a.enabled, e) === !1) && (!r.suspense || e.state.status !== "error") && Jr(e, r);
|
288
288
|
}
|
289
|
-
function
|
289
|
+
function Jr(e, t) {
|
290
290
|
return ke(t.enabled, e) !== !1 && e.isStaleByTime(gt(t.staleTime, e));
|
291
291
|
}
|
292
292
|
function qo(e, t) {
|
@@ -322,7 +322,7 @@ var Zo = Y.createContext(Xo()), ei = () => Y.useContext(Zo), ti = (e, t) => {
|
|
322
322
|
const t = (a) => a === "static" ? a : Math.max(a ?? 1e3, 1e3), r = e.staleTime;
|
323
323
|
e.staleTime = typeof r == "function" ? (...a) => t(r(...a)) : t(r), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, 1e3));
|
324
324
|
}
|
325
|
-
}, si = (e, t) => e.isLoading && e.isFetching && !t, oi = (e, t) => e?.suspense && t.isPending,
|
325
|
+
}, si = (e, t) => e.isLoading && e.isFetching && !t, oi = (e, t) => e?.suspense && t.isPending, Pa = (e, t, r) => t.fetchOptimistic(e).catch(() => {
|
326
326
|
r.clearReset();
|
327
327
|
});
|
328
328
|
function ii(e, t, r) {
|
@@ -345,7 +345,7 @@ function ii(e, t, r) {
|
|
345
345
|
if (Y.useSyncExternalStore(
|
346
346
|
Y.useCallback(
|
347
347
|
(u) => {
|
348
|
-
const h = f ? l.subscribe(
|
348
|
+
const h = f ? l.subscribe(Sn.batchCalls(u)) : Er;
|
349
349
|
return l.updateResult(), h;
|
350
350
|
},
|
351
351
|
[l, f]
|
@@ -355,7 +355,7 @@ function ii(e, t, r) {
|
|
355
355
|
), Y.useEffect(() => {
|
356
356
|
l.setOptions(o);
|
357
357
|
}, [o, l]), oi(o, d))
|
358
|
-
throw
|
358
|
+
throw Pa(o, l, n);
|
359
359
|
if (ai({
|
360
360
|
result: d,
|
361
361
|
errorResetBoundary: n,
|
@@ -369,7 +369,7 @@ function ii(e, t, r) {
|
|
369
369
|
d
|
370
370
|
), o.experimental_prefetchInRender && !kr && si(d, a) && (c ? (
|
371
371
|
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
372
|
-
|
372
|
+
Pa(o, l, n)
|
373
373
|
) : (
|
374
374
|
// subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
|
375
375
|
s.getQueryCache().get(o.queryHash)?.promise
|
@@ -993,26 +993,26 @@ function Pi(e, t) {
|
|
993
993
|
return !1;
|
994
994
|
return o !== u ? !1 : !!(c && (h.toLowerCase() === c.toLowerCase() || t.code.replace("Key", "").toLowerCase() === c.toLowerCase()));
|
995
995
|
}
|
996
|
-
function
|
996
|
+
function Wn(e) {
|
997
997
|
return (t) => Pi($i(e), t);
|
998
998
|
}
|
999
999
|
function Mi(e) {
|
1000
1000
|
return (t) => {
|
1001
1001
|
const r = "nativeEvent" in t ? t.nativeEvent : t;
|
1002
1002
|
e.forEach(([a, n, s = { preventDefault: !0 }]) => {
|
1003
|
-
|
1003
|
+
Wn(a)(r) && (s.preventDefault && t.preventDefault(), n(r));
|
1004
1004
|
});
|
1005
1005
|
};
|
1006
1006
|
}
|
1007
1007
|
function Li(e, t, r = !1) {
|
1008
1008
|
return e.target instanceof HTMLElement ? (r || !e.target.isContentEditable) && !t.includes(e.target.tagName) : !0;
|
1009
1009
|
}
|
1010
|
-
function
|
1010
|
+
function qr(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
|
1011
1011
|
$(() => {
|
1012
1012
|
const a = (n) => {
|
1013
1013
|
e.forEach(
|
1014
1014
|
([s, o, c = { preventDefault: !0 }]) => {
|
1015
|
-
|
1015
|
+
Wn(s)(n) && Li(n, t, r) && (c.preventDefault && n.preventDefault(), o(n));
|
1016
1016
|
}
|
1017
1017
|
);
|
1018
1018
|
};
|
@@ -1037,23 +1037,23 @@ function Bi() {
|
|
1037
1037
|
function Kn(e, t) {
|
1038
1038
|
window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
|
1039
1039
|
}
|
1040
|
-
const
|
1040
|
+
const Ma = (e, t) => {
|
1041
1041
|
const r = JSON.stringify(
|
1042
1042
|
typeof t == "function" ? t() : t
|
1043
1043
|
);
|
1044
1044
|
window.localStorage.setItem(e, r), Kn(e, r);
|
1045
1045
|
}, Hi = (e) => {
|
1046
1046
|
window.localStorage.removeItem(e), Kn(e, null);
|
1047
|
-
},
|
1047
|
+
}, La = (e) => window.localStorage.getItem(e), Ui = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
1048
1048
|
function jt({
|
1049
1049
|
key: e,
|
1050
1050
|
initialValue: t
|
1051
1051
|
}) {
|
1052
|
-
const r = Mo(Ui, () =>
|
1052
|
+
const r = Mo(Ui, () => La(e)), a = W(
|
1053
1053
|
(o) => {
|
1054
1054
|
try {
|
1055
1055
|
const c = typeof o == "function" ? o(JSON.parse(r)) : o;
|
1056
|
-
c == null ? Hi(e) :
|
1056
|
+
c == null ? Hi(e) : Ma(e, c);
|
1057
1057
|
} catch (c) {
|
1058
1058
|
console.warn(c);
|
1059
1059
|
}
|
@@ -1066,7 +1066,7 @@ function jt({
|
|
1066
1066
|
}, [a]);
|
1067
1067
|
return $(() => {
|
1068
1068
|
try {
|
1069
|
-
|
1069
|
+
La(e) === null && typeof t < "u" && Ma(e, t);
|
1070
1070
|
} catch (o) {
|
1071
1071
|
console.warn(o);
|
1072
1072
|
}
|
@@ -1094,9 +1094,9 @@ function Gn(e) {
|
|
1094
1094
|
}), [o, e]), [a, n];
|
1095
1095
|
}
|
1096
1096
|
function zi(e) {
|
1097
|
-
return
|
1097
|
+
return Kr();
|
1098
1098
|
}
|
1099
|
-
function
|
1099
|
+
function Da(e, t) {
|
1100
1100
|
$(() => (window.addEventListener(e, t, {
|
1101
1101
|
passive: !0
|
1102
1102
|
}), () => window.removeEventListener(e, t)), [e, t]);
|
@@ -1111,7 +1111,7 @@ function Fi() {
|
|
1111
1111
|
height: window.innerHeight || 0
|
1112
1112
|
});
|
1113
1113
|
}, []);
|
1114
|
-
return
|
1114
|
+
return Da("resize", r), Da("orientationchange", r), $(r, []), e;
|
1115
1115
|
}
|
1116
1116
|
function ji() {
|
1117
1117
|
const [e, t] = F({
|
@@ -1132,7 +1132,7 @@ function ji() {
|
|
1132
1132
|
window.visualViewport && (window.visualViewport.removeEventListener("resize", r), window.visualViewport.removeEventListener("orientationchange", r));
|
1133
1133
|
}), [r]), e;
|
1134
1134
|
}
|
1135
|
-
const qt = "thead",
|
1135
|
+
const qt = "thead", Yr = "tfoot", tt = "tbody", ft = {
|
1136
1136
|
ASC: "asc",
|
1137
1137
|
DESC: "desc"
|
1138
1138
|
}, Wi = ({
|
@@ -1200,7 +1200,7 @@ const qt = "thead", Jr = "tfoot", tt = "tbody", ft = {
|
|
1200
1200
|
mode: e,
|
1201
1201
|
className: t,
|
1202
1202
|
cellWrapper: r
|
1203
|
-
}) => r === qt || r ===
|
1203
|
+
}) => r === qt || r === Yr ? p(
|
1204
1204
|
{
|
1205
1205
|
"bg-table-head-dark": e === "dark" || e === "system",
|
1206
1206
|
"bg-table-head-light": e === "light" || e === "alt-system",
|
@@ -1239,7 +1239,7 @@ const qt = "thead", Jr = "tfoot", tt = "tbody", ft = {
|
|
1239
1239
|
"text-copy-dark": a === "light" || a === "alt-system",
|
1240
1240
|
"dark:text-copy-dark": a === "system",
|
1241
1241
|
"dark:text-copy-light": a === "alt-system",
|
1242
|
-
"px-4 py-3": !r && (e === qt || e ===
|
1242
|
+
"px-4 py-3": !r && (e === qt || e === Yr),
|
1243
1243
|
"p-4": !r && e === tt,
|
1244
1244
|
"px-2 py-1.5": r
|
1245
1245
|
},
|
@@ -1247,7 +1247,7 @@ const qt = "thead", Jr = "tfoot", tt = "tbody", ft = {
|
|
1247
1247
|
)
|
1248
1248
|
}), Yi = ({
|
1249
1249
|
buttonClassName: e
|
1250
|
-
}) => p("rounded-none text-sm", e),
|
1250
|
+
}) => p("rounded-none text-sm", e), Ba = "av-button", Qr = "icon", Jn = "button", Cr = "link", Qi = ({
|
1251
1251
|
type: e,
|
1252
1252
|
size: t,
|
1253
1253
|
labelRight: r,
|
@@ -1258,13 +1258,13 @@ const qt = "thead", Jr = "tfoot", tt = "tbody", ft = {
|
|
1258
1258
|
const o = "max-h-8 py-0 px-2", c = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
|
1259
1259
|
switch (e) {
|
1260
1260
|
case Jn:
|
1261
|
-
case
|
1261
|
+
case Cr:
|
1262
1262
|
return p({
|
1263
1263
|
[o]: t === "small",
|
1264
1264
|
[c]: t === "medium",
|
1265
1265
|
[l]: t === "large"
|
1266
1266
|
});
|
1267
|
-
case
|
1267
|
+
case Qr:
|
1268
1268
|
return p("flex items-center", {
|
1269
1269
|
"justify-center": n === "center",
|
1270
1270
|
"justify-start": n === "left",
|
@@ -1292,14 +1292,14 @@ const qt = "thead", Jr = "tfoot", tt = "tbody", ft = {
|
|
1292
1292
|
const n = "text-sm font-medium", s = "text-base font-medium", o = "text-lg font-medium";
|
1293
1293
|
switch (e) {
|
1294
1294
|
case Jn:
|
1295
|
-
case
|
1295
|
+
case Cr:
|
1296
1296
|
return p({
|
1297
|
-
"text-center": e ===
|
1297
|
+
"text-center": e === Cr,
|
1298
1298
|
[n]: t === "small",
|
1299
1299
|
[s]: t === "medium",
|
1300
1300
|
[o]: t === "large"
|
1301
1301
|
});
|
1302
|
-
case
|
1302
|
+
case Qr:
|
1303
1303
|
return p({
|
1304
1304
|
[n]: t === "small" && (r || a),
|
1305
1305
|
[s]: t === "medium" && (r || a),
|
@@ -1509,8 +1509,8 @@ const qt = "thead", Jr = "tfoot", tt = "tbody", ft = {
|
|
1509
1509
|
align: g,
|
1510
1510
|
radius: y,
|
1511
1511
|
animated: v
|
1512
|
-
}) => (h || (h = "primary"), r ? p(
|
1513
|
-
|
1512
|
+
}) => (h || (h = "primary"), r ? p(Ba, t) : p(
|
1513
|
+
Ba,
|
1514
1514
|
Zi({
|
1515
1515
|
mode: a,
|
1516
1516
|
variant: h,
|
@@ -1631,7 +1631,7 @@ const Tt = {
|
|
1631
1631
|
...O
|
1632
1632
|
}, I) => {
|
1633
1633
|
const b = cc({
|
1634
|
-
type:
|
1634
|
+
type: Qr,
|
1635
1635
|
mode: r,
|
1636
1636
|
focusMode: a,
|
1637
1637
|
fullWidth: n,
|
@@ -1679,7 +1679,7 @@ const Tt = {
|
|
1679
1679
|
...O,
|
1680
1680
|
children: /* @__PURE__ */ T("div", { className: x, children: [
|
1681
1681
|
/* @__PURE__ */ i(
|
1682
|
-
|
1682
|
+
Ha,
|
1683
1683
|
{
|
1684
1684
|
label: m,
|
1685
1685
|
labelRef: A,
|
@@ -1690,7 +1690,7 @@ const Tt = {
|
|
1690
1690
|
),
|
1691
1691
|
/* @__PURE__ */ i("span", { ref: P, className: _, children: e }),
|
1692
1692
|
/* @__PURE__ */ i(
|
1693
|
-
|
1693
|
+
Ha,
|
1694
1694
|
{
|
1695
1695
|
label: h,
|
1696
1696
|
labelRef: E,
|
@@ -1703,7 +1703,7 @@ const Tt = {
|
|
1703
1703
|
}
|
1704
1704
|
);
|
1705
1705
|
}
|
1706
|
-
),
|
1706
|
+
), Ha = ({
|
1707
1707
|
labelRef: e,
|
1708
1708
|
labelClass: t,
|
1709
1709
|
label: r,
|
@@ -1771,7 +1771,7 @@ const Qn = Z.forwardRef(
|
|
1771
1771
|
}
|
1772
1772
|
);
|
1773
1773
|
Qn.displayName = "ButtonSort";
|
1774
|
-
const
|
1774
|
+
const Xr = ({
|
1775
1775
|
children: e,
|
1776
1776
|
fill: t,
|
1777
1777
|
viewBox: r,
|
@@ -1821,7 +1821,7 @@ const gc = ({
|
|
1821
1821
|
monotone: a,
|
1822
1822
|
...n
|
1823
1823
|
}) => /* @__PURE__ */ T(
|
1824
|
-
|
1824
|
+
Xr,
|
1825
1825
|
{
|
1826
1826
|
defaultViewBox: "0 0 576 512",
|
1827
1827
|
size: "size-5",
|
@@ -1847,7 +1847,7 @@ const gc = ({
|
|
1847
1847
|
monotone: a,
|
1848
1848
|
...n
|
1849
1849
|
}) => /* @__PURE__ */ T(
|
1850
|
-
|
1850
|
+
Xr,
|
1851
1851
|
{
|
1852
1852
|
defaultViewBox: "0 0 576 512",
|
1853
1853
|
size: "size-5",
|
@@ -1873,7 +1873,7 @@ const gc = ({
|
|
1873
1873
|
monotone: a,
|
1874
1874
|
...n
|
1875
1875
|
}) => /* @__PURE__ */ T(
|
1876
|
-
|
1876
|
+
Xr,
|
1877
1877
|
{
|
1878
1878
|
defaultViewBox: "0 0 576 512",
|
1879
1879
|
size: "size-5",
|
@@ -1970,7 +1970,7 @@ const ct = Z.createContext({
|
|
1970
1970
|
...r
|
1971
1971
|
}) => {
|
1972
1972
|
const a = X(ct);
|
1973
|
-
a.cellWrapper =
|
1973
|
+
a.cellWrapper = Yr;
|
1974
1974
|
const n = Gi({
|
1975
1975
|
className: t,
|
1976
1976
|
mode: a.mode,
|
@@ -2076,10 +2076,10 @@ function kc() {
|
|
2076
2076
|
}
|
2077
2077
|
return tr(Ec);
|
2078
2078
|
}
|
2079
|
-
const _c = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
2079
|
+
const _c = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ua = { randomUUID: _c };
|
2080
2080
|
function He(e, t, r) {
|
2081
|
-
if (
|
2082
|
-
return
|
2081
|
+
if (Ua.randomUUID && !e)
|
2082
|
+
return Ua.randomUUID();
|
2083
2083
|
e = e || {};
|
2084
2084
|
const a = e.random ?? e.rng?.() ?? kc();
|
2085
2085
|
if (a.length < 16)
|
@@ -2087,7 +2087,7 @@ function He(e, t, r) {
|
|
2087
2087
|
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, wc(a);
|
2088
2088
|
}
|
2089
2089
|
let Ct = !1, rr = null;
|
2090
|
-
const
|
2090
|
+
const Va = ({
|
2091
2091
|
containerId: e,
|
2092
2092
|
...t
|
2093
2093
|
}) => {
|
@@ -2196,12 +2196,12 @@ const Ua = ({
|
|
2196
2196
|
}
|
2197
2197
|
}, Ic = (e, t) => {
|
2198
2198
|
switch (t?.type) {
|
2199
|
-
case
|
2199
|
+
case Cn:
|
2200
2200
|
return {
|
2201
2201
|
prompt: t.payload.prompt,
|
2202
2202
|
lastTriggeredTimestamp: e.lastTriggeredTimestamp
|
2203
2203
|
};
|
2204
|
-
case
|
2204
|
+
case Tn:
|
2205
2205
|
return {
|
2206
2206
|
prompt: "",
|
2207
2207
|
lastTriggeredTimestamp: (/* @__PURE__ */ new Date()).getTime()
|
@@ -2387,12 +2387,12 @@ const Ua = ({
|
|
2387
2387
|
schema: we.GET_USAGE,
|
2388
2388
|
method: "usage"
|
2389
2389
|
}
|
2390
|
-
},
|
2390
|
+
}, Zr = process.env.PUBLIC_SASSY_API_SERVER_URL, Kt = async ({
|
2391
2391
|
query: e,
|
2392
2392
|
data: t,
|
2393
2393
|
headers: r = {},
|
2394
2394
|
...a
|
2395
|
-
}) => await fetch(`${
|
2395
|
+
}) => await fetch(`${Zr}/graphql`, {
|
2396
2396
|
method: "POST",
|
2397
2397
|
credentials: "include",
|
2398
2398
|
headers: {
|
@@ -2621,7 +2621,7 @@ var is = "AI_InvalidArgumentError", cs = `vercel.ai.error.${is}`, Nc = Symbol.fo
|
|
2621
2621
|
}
|
2622
2622
|
};
|
2623
2623
|
ls = Nc;
|
2624
|
-
var ds = "AI_JSONParseError", us = `vercel.ai.error.${ds}`, $c = Symbol.for(us), hs,
|
2624
|
+
var ds = "AI_JSONParseError", us = `vercel.ai.error.${ds}`, $c = Symbol.for(us), hs, za = class extends st {
|
2625
2625
|
constructor({ text: e, cause: t }) {
|
2626
2626
|
super({
|
2627
2627
|
name: ds,
|
@@ -2635,7 +2635,7 @@ Error message: ${os(t)}`,
|
|
2635
2635
|
}
|
2636
2636
|
};
|
2637
2637
|
hs = $c;
|
2638
|
-
var fs = "AI_TypeValidationError", ms = `vercel.ai.error.${fs}`, Pc = Symbol.for(ms), ps, Mc = class
|
2638
|
+
var fs = "AI_TypeValidationError", ms = `vercel.ai.error.${fs}`, Pc = Symbol.for(ms), ps, Mc = class Ir extends st {
|
2639
2639
|
constructor({ value: t, cause: r }) {
|
2640
2640
|
super({
|
2641
2641
|
name: fs,
|
@@ -2661,11 +2661,11 @@ Error message: ${os(r)}`,
|
|
2661
2661
|
value: t,
|
2662
2662
|
cause: r
|
2663
2663
|
}) {
|
2664
|
-
return
|
2664
|
+
return Ir.isInstance(r) && r.value === t ? r : new Ir({ value: t, cause: r });
|
2665
2665
|
}
|
2666
2666
|
};
|
2667
2667
|
ps = Pc;
|
2668
|
-
var
|
2668
|
+
var Fa = Mc;
|
2669
2669
|
let Lc = (e, t = 21) => (r = t) => {
|
2670
2670
|
let a = "", n = r | 0;
|
2671
2671
|
for (; n--; )
|
@@ -2675,10 +2675,10 @@ let Lc = (e, t = 21) => (r = t) => {
|
|
2675
2675
|
function gs(e) {
|
2676
2676
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
2677
2677
|
}
|
2678
|
-
var Ke = { exports: {} },
|
2678
|
+
var Ke = { exports: {} }, ja;
|
2679
2679
|
function Dc() {
|
2680
|
-
if (
|
2681
|
-
|
2680
|
+
if (ja) return Ke.exports;
|
2681
|
+
ja = 1;
|
2682
2682
|
const e = typeof Buffer < "u", t = /"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/, r = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
|
2683
2683
|
function a(c, l, d) {
|
2684
2684
|
d == null && l !== null && typeof l == "object" && (d = l, l = void 0), e && Buffer.isBuffer(c) && (c = c.toString()), c && c.charCodeAt(0) === 65279 && (c = c.slice(1));
|
@@ -2765,12 +2765,12 @@ var Uc = ({
|
|
2765
2765
|
message: `The separator "${a}" must not be part of the alphabet "${r}".`
|
2766
2766
|
});
|
2767
2767
|
return (s) => `${e}${a}${n(s)}`;
|
2768
|
-
},
|
2768
|
+
}, ea = Uc(), xr = Symbol.for("vercel.ai.validator");
|
2769
2769
|
function Vc(e) {
|
2770
|
-
return { [
|
2770
|
+
return { [xr]: !0, validate: e };
|
2771
2771
|
}
|
2772
2772
|
function zc(e) {
|
2773
|
-
return typeof e == "object" && e !== null &&
|
2773
|
+
return typeof e == "object" && e !== null && xr in e && e[xr] === !0 && "validate" in e;
|
2774
2774
|
}
|
2775
2775
|
function Fc(e) {
|
2776
2776
|
return zc(e) ? e : jc(e);
|
@@ -2792,16 +2792,16 @@ function Wc({
|
|
2792
2792
|
const a = r.validate(e);
|
2793
2793
|
return a.success ? a : {
|
2794
2794
|
success: !1,
|
2795
|
-
error:
|
2795
|
+
error: Fa.wrap({ value: e, cause: a.error })
|
2796
2796
|
};
|
2797
2797
|
} catch (a) {
|
2798
2798
|
return {
|
2799
2799
|
success: !1,
|
2800
|
-
error:
|
2800
|
+
error: Fa.wrap({ value: e, cause: a })
|
2801
2801
|
};
|
2802
2802
|
}
|
2803
2803
|
}
|
2804
|
-
function
|
2804
|
+
function Wa({
|
2805
2805
|
text: e,
|
2806
2806
|
schema: t
|
2807
2807
|
}) {
|
@@ -2814,7 +2814,7 @@ function ja({
|
|
2814
2814
|
} catch (r) {
|
2815
2815
|
return {
|
2816
2816
|
success: !1,
|
2817
|
-
error:
|
2817
|
+
error: za.isInstance(r) ? r : new za({ text: e, cause: r })
|
2818
2818
|
};
|
2819
2819
|
}
|
2820
2820
|
}
|
@@ -3079,8 +3079,8 @@ function Gc(e) {
|
|
3079
3079
|
function Jc(e) {
|
3080
3080
|
if (e === void 0)
|
3081
3081
|
return { value: void 0, state: "undefined-input" };
|
3082
|
-
let t =
|
3083
|
-
return t.success ? { value: t.value, state: "successful-parse" } : (t =
|
3082
|
+
let t = Wa({ text: e });
|
3083
|
+
return t.success ? { value: t.value, state: "successful-parse" } : (t = Wa({ text: Gc(e) }), t.success ? { value: t.value, state: "repaired-parse" } : { value: void 0, state: "failed-parse" });
|
3084
3084
|
}
|
3085
3085
|
var qc = {
|
3086
3086
|
code: "0",
|
@@ -3272,7 +3272,7 @@ var qc = {
|
|
3272
3272
|
);
|
3273
3273
|
return { type: "file", value: e };
|
3274
3274
|
}
|
3275
|
-
},
|
3275
|
+
}, ta = [
|
3276
3276
|
qc,
|
3277
3277
|
Yc,
|
3278
3278
|
Qc,
|
@@ -3290,12 +3290,12 @@ var qc = {
|
|
3290
3290
|
ll,
|
3291
3291
|
dl
|
3292
3292
|
], ul = Object.fromEntries(
|
3293
|
-
|
3293
|
+
ta.map((e) => [e.code, e])
|
3294
3294
|
);
|
3295
3295
|
Object.fromEntries(
|
3296
|
-
|
3296
|
+
ta.map((e) => [e.name, e.code])
|
3297
3297
|
);
|
3298
|
-
var hl =
|
3298
|
+
var hl = ta.map((e) => e.code), fl = (e) => {
|
3299
3299
|
const t = e.indexOf(":");
|
3300
3300
|
if (t === -1)
|
3301
3301
|
throw new Error("Failed to parse stream string. No separator found.");
|
@@ -3405,7 +3405,7 @@ async function yl({
|
|
3405
3405
|
update: t,
|
3406
3406
|
onToolCall: r,
|
3407
3407
|
onFinish: a,
|
3408
|
-
generateId: n =
|
3408
|
+
generateId: n = ea,
|
3409
3409
|
getCurrentDate: s = () => /* @__PURE__ */ new Date(),
|
3410
3410
|
lastMessage: o
|
3411
3411
|
}) {
|
@@ -3605,7 +3605,7 @@ async function vl({
|
|
3605
3605
|
update: t,
|
3606
3606
|
onFinish: r,
|
3607
3607
|
getCurrentDate: a = () => /* @__PURE__ */ new Date(),
|
3608
|
-
generateId: n =
|
3608
|
+
generateId: n = ea
|
3609
3609
|
}) {
|
3610
3610
|
const s = { type: "text", text: "" }, o = {
|
3611
3611
|
id: n(),
|
@@ -3708,7 +3708,7 @@ async function El({
|
|
3708
3708
|
}
|
3709
3709
|
}
|
3710
3710
|
}
|
3711
|
-
function
|
3711
|
+
function Rr(e) {
|
3712
3712
|
return e?.reduce((t, r) => {
|
3713
3713
|
var a;
|
3714
3714
|
return Math.max(t, (a = r.step) != null ? a : 0);
|
@@ -3737,7 +3737,7 @@ function ar(e) {
|
|
3737
3737
|
parts: ys(t)
|
3738
3738
|
}));
|
3739
3739
|
}
|
3740
|
-
function
|
3740
|
+
function Ar(e, t) {
|
3741
3741
|
if (e === t)
|
3742
3742
|
return !0;
|
3743
3743
|
if (e == null || t == null)
|
@@ -3752,7 +3752,7 @@ function Rr(e, t) {
|
|
3752
3752
|
if (e.length !== t.length)
|
3753
3753
|
return !1;
|
3754
3754
|
for (let n = 0; n < e.length; n++)
|
3755
|
-
if (!
|
3755
|
+
if (!Ar(e[n], t[n]))
|
3756
3756
|
return !1;
|
3757
3757
|
return !0;
|
3758
3758
|
}
|
@@ -3760,11 +3760,11 @@ function Rr(e, t) {
|
|
3760
3760
|
if (r.length !== a.length)
|
3761
3761
|
return !1;
|
3762
3762
|
for (const n of r)
|
3763
|
-
if (!a.includes(n) || !
|
3763
|
+
if (!a.includes(n) || !Ar(e[n], t[n]))
|
3764
3764
|
return !1;
|
3765
3765
|
return !0;
|
3766
3766
|
}
|
3767
|
-
async function
|
3767
|
+
async function Ka(e) {
|
3768
3768
|
if (!e)
|
3769
3769
|
return [];
|
3770
3770
|
if (globalThis.FileList && e instanceof globalThis.FileList)
|
@@ -3800,9 +3800,9 @@ function kl({
|
|
3800
3800
|
// check if the feature is enabled:
|
3801
3801
|
r > 1 && // ensure there is a last message:
|
3802
3802
|
s != null && // ensure we actually have new steps (to prevent infinite loops in case of errors):
|
3803
|
-
(a.length > t ||
|
3803
|
+
(a.length > t || Rr(s.toolInvocations) !== e) && // check that next step is possible:
|
3804
3804
|
bs(s) && // limit the number of automatic steps:
|
3805
|
-
((n =
|
3805
|
+
((n = Rr(s.toolInvocations)) != null ? n : 0) < r
|
3806
3806
|
);
|
3807
3807
|
}
|
3808
3808
|
function bs(e) {
|
@@ -3841,10 +3841,10 @@ var It = { exports: {} }, nr = {};
|
|
3841
3841
|
* This source code is licensed under the MIT license found in the
|
3842
3842
|
* LICENSE file in the root directory of this source tree.
|
3843
3843
|
*/
|
3844
|
-
var
|
3844
|
+
var Ga;
|
3845
3845
|
function Sl() {
|
3846
|
-
if (
|
3847
|
-
|
3846
|
+
if (Ga) return nr;
|
3847
|
+
Ga = 1;
|
3848
3848
|
var e = Z;
|
3849
3849
|
function t(u, h) {
|
3850
3850
|
return u === h && (u !== 0 || 1 / u === 1 / h) || u !== u && h !== h;
|
@@ -3892,9 +3892,9 @@ var sr = {};
|
|
3892
3892
|
* This source code is licensed under the MIT license found in the
|
3893
3893
|
* LICENSE file in the root directory of this source tree.
|
3894
3894
|
*/
|
3895
|
-
var
|
3895
|
+
var Ja;
|
3896
3896
|
function Tl() {
|
3897
|
-
return
|
3897
|
+
return Ja || (Ja = 1, process.env.NODE_ENV !== "production" && function() {
|
3898
3898
|
function e(m, g) {
|
3899
3899
|
return m === g && (m !== 0 || 1 / m === 1 / g) || m !== m && g !== g;
|
3900
3900
|
}
|
@@ -3945,14 +3945,14 @@ function Tl() {
|
|
3945
3945
|
sr.useSyncExternalStore = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : h, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
3946
3946
|
}()), sr;
|
3947
3947
|
}
|
3948
|
-
var
|
3948
|
+
var qa;
|
3949
3949
|
function Cl() {
|
3950
|
-
return
|
3950
|
+
return qa || (qa = 1, process.env.NODE_ENV === "production" ? It.exports = /* @__PURE__ */ Sl() : It.exports = /* @__PURE__ */ Tl()), It.exports;
|
3951
3951
|
}
|
3952
3952
|
var Il = /* @__PURE__ */ Cl();
|
3953
|
-
const vs = 0, ws = 1, Es = 2,
|
3954
|
-
var
|
3955
|
-
function
|
3953
|
+
const vs = 0, ws = 1, Es = 2, Ya = 3;
|
3954
|
+
var Qa = Object.prototype.hasOwnProperty;
|
3955
|
+
function Nr(e, t) {
|
3956
3956
|
var r, a;
|
3957
3957
|
if (e === t) return !0;
|
3958
3958
|
if (e && t && (r = e.constructor) === t.constructor) {
|
@@ -3960,13 +3960,13 @@ function Ar(e, t) {
|
|
3960
3960
|
if (r === RegExp) return e.toString() === t.toString();
|
3961
3961
|
if (r === Array) {
|
3962
3962
|
if ((a = e.length) === t.length)
|
3963
|
-
for (; a-- &&
|
3963
|
+
for (; a-- && Nr(e[a], t[a]); ) ;
|
3964
3964
|
return a === -1;
|
3965
3965
|
}
|
3966
3966
|
if (!r || typeof e == "object") {
|
3967
3967
|
a = 0;
|
3968
3968
|
for (r in e)
|
3969
|
-
if (
|
3969
|
+
if (Qa.call(e, r) && ++a && !Qa.call(t, r) || !(r in t) || !Nr(e[r], t[r])) return !1;
|
3970
3970
|
return Object.keys(t).length === a;
|
3971
3971
|
}
|
3972
3972
|
}
|
@@ -3976,10 +3976,10 @@ const Ne = /* @__PURE__ */ new WeakMap(), Le = () => {
|
|
3976
3976
|
}, de = (
|
3977
3977
|
/*#__NOINLINE__*/
|
3978
3978
|
Le()
|
3979
|
-
),
|
3979
|
+
), Or = Object, K = (e) => e === de, Se = (e) => typeof e == "function", Ue = (e, t) => ({
|
3980
3980
|
...e,
|
3981
3981
|
...t
|
3982
|
-
}), ks = (e) => Se(e.then), or = {}, xt = {},
|
3982
|
+
}), ks = (e) => Se(e.then), or = {}, xt = {}, ra = "undefined", wt = typeof window != ra, $r = typeof document != ra, xl = wt && "Deno" in window, Rl = () => wt && typeof window.requestAnimationFrame != ra, _s = (e, t) => {
|
3983
3983
|
const r = Ne.get(e);
|
3984
3984
|
return [
|
3985
3985
|
// Getter
|
@@ -3997,26 +3997,26 @@ const Ne = /* @__PURE__ */ new WeakMap(), Le = () => {
|
|
3997
3997
|
() => !K(t) && t in xt ? xt[t] : !K(t) && e.get(t) || or
|
3998
3998
|
];
|
3999
3999
|
};
|
4000
|
-
let
|
4001
|
-
const Al = () =>
|
4000
|
+
let Pr = !0;
|
4001
|
+
const Al = () => Pr, [Mr, Lr] = wt && window.addEventListener ? [
|
4002
4002
|
window.addEventListener.bind(window),
|
4003
4003
|
window.removeEventListener.bind(window)
|
4004
4004
|
] : [
|
4005
4005
|
Le,
|
4006
4006
|
Le
|
4007
4007
|
], Nl = () => {
|
4008
|
-
const e =
|
4008
|
+
const e = $r && document.visibilityState;
|
4009
4009
|
return K(e) || e !== "hidden";
|
4010
|
-
}, Ol = (e) => (
|
4011
|
-
|
4010
|
+
}, Ol = (e) => ($r && document.addEventListener("visibilitychange", e), Mr("focus", e), () => {
|
4011
|
+
$r && document.removeEventListener("visibilitychange", e), Lr("focus", e);
|
4012
4012
|
}), $l = (e) => {
|
4013
4013
|
const t = () => {
|
4014
|
-
|
4014
|
+
Pr = !0, e();
|
4015
4015
|
}, r = () => {
|
4016
|
-
|
4016
|
+
Pr = !1;
|
4017
4017
|
};
|
4018
|
-
return
|
4019
|
-
|
4018
|
+
return Mr("online", t), Mr("offline", r), () => {
|
4019
|
+
Lr("online", t), Lr("offline", r);
|
4020
4020
|
};
|
4021
4021
|
}, Pl = {
|
4022
4022
|
isOnline: Al,
|
@@ -4024,32 +4024,32 @@ const Al = () => $r, [Pr, Mr] = wt && window.addEventListener ? [
|
|
4024
4024
|
}, Ml = {
|
4025
4025
|
initFocus: Ol,
|
4026
4026
|
initReconnect: $l
|
4027
|
-
},
|
4027
|
+
}, Xa = !Z.useId, bt = !wt || xl, Ll = (e) => Rl() ? window.requestAnimationFrame(e) : setTimeout(e, 1), ir = bt ? $ : Oe, cr = typeof navigator < "u" && navigator.connection, Za = !bt && cr && ([
|
4028
4028
|
"slow-2g",
|
4029
4029
|
"2g"
|
4030
|
-
].includes(cr.effectiveType) || cr.saveData), Rt = /* @__PURE__ */ new WeakMap(), Dl = (e) =>
|
4030
|
+
].includes(cr.effectiveType) || cr.saveData), Rt = /* @__PURE__ */ new WeakMap(), Dl = (e) => Or.prototype.toString.call(e), lr = (e, t) => e === `[object ${t}]`;
|
4031
4031
|
let Bl = 0;
|
4032
|
-
const
|
4032
|
+
const Dr = (e) => {
|
4033
4033
|
const t = typeof e, r = Dl(e), a = lr(r, "Date"), n = lr(r, "RegExp"), s = lr(r, "Object");
|
4034
4034
|
let o, c;
|
4035
|
-
if (
|
4035
|
+
if (Or(e) === e && !a && !n) {
|
4036
4036
|
if (o = Rt.get(e), o) return o;
|
4037
4037
|
if (o = ++Bl + "~", Rt.set(e, o), Array.isArray(e)) {
|
4038
4038
|
for (o = "@", c = 0; c < e.length; c++)
|
4039
|
-
o +=
|
4039
|
+
o += Dr(e[c]) + ",";
|
4040
4040
|
Rt.set(e, o);
|
4041
4041
|
}
|
4042
4042
|
if (s) {
|
4043
4043
|
o = "#";
|
4044
|
-
const l =
|
4044
|
+
const l = Or.keys(e).sort();
|
4045
4045
|
for (; !K(c = l.pop()); )
|
4046
|
-
K(e[c]) || (o += c + ":" +
|
4046
|
+
K(e[c]) || (o += c + ":" + Dr(e[c]) + ",");
|
4047
4047
|
Rt.set(e, o);
|
4048
4048
|
}
|
4049
4049
|
} else
|
4050
4050
|
o = a ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
|
4051
4051
|
return o;
|
4052
|
-
},
|
4052
|
+
}, aa = (e) => {
|
4053
4053
|
if (Se(e))
|
4054
4054
|
try {
|
4055
4055
|
e = e();
|
@@ -4057,13 +4057,13 @@ const Lr = (e) => {
|
|
4057
4057
|
e = "";
|
4058
4058
|
}
|
4059
4059
|
const t = e;
|
4060
|
-
return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ?
|
4060
|
+
return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? Dr(e) : "", [
|
4061
4061
|
e,
|
4062
4062
|
t
|
4063
4063
|
];
|
4064
4064
|
};
|
4065
4065
|
let Hl = 0;
|
4066
|
-
const
|
4066
|
+
const Br = () => ++Hl;
|
4067
4067
|
async function Ss(...e) {
|
4068
4068
|
const [t, r, a, n] = e, s = Ue({
|
4069
4069
|
populateCache: !0,
|
@@ -4084,7 +4084,7 @@ async function Ss(...e) {
|
|
4084
4084
|
}
|
4085
4085
|
return u(r);
|
4086
4086
|
async function u(h) {
|
4087
|
-
const [m] =
|
4087
|
+
const [m] = aa(h);
|
4088
4088
|
if (!m) return;
|
4089
4089
|
const [g, y] = _s(t, m), [v, w, C, S] = Ne.get(t), O = () => {
|
4090
4090
|
const P = v[m];
|
@@ -4093,7 +4093,7 @@ async function Ss(...e) {
|
|
4093
4093
|
if (e.length < 3)
|
4094
4094
|
return O();
|
4095
4095
|
let I = a, b, _ = !1;
|
4096
|
-
const k =
|
4096
|
+
const k = Br();
|
4097
4097
|
w[m] = [
|
4098
4098
|
k,
|
4099
4099
|
0
|
@@ -4132,7 +4132,7 @@ async function Ss(...e) {
|
|
4132
4132
|
error: de,
|
4133
4133
|
_c: de
|
4134
4134
|
});
|
4135
|
-
if (w[m][1] =
|
4135
|
+
if (w[m][1] = Br(), Promise.resolve(O()).then(() => {
|
4136
4136
|
y({
|
4137
4137
|
_c: de
|
4138
4138
|
});
|
@@ -4143,7 +4143,7 @@ async function Ss(...e) {
|
|
4143
4143
|
return I;
|
4144
4144
|
}
|
4145
4145
|
}
|
4146
|
-
const
|
4146
|
+
const en = (e, t) => {
|
4147
4147
|
for (const r in e)
|
4148
4148
|
e[r][0] && e[r][0](t);
|
4149
4149
|
}, Ul = (e, t) => {
|
@@ -4169,7 +4169,7 @@ const Za = (e, t) => {
|
|
4169
4169
|
l,
|
4170
4170
|
c
|
4171
4171
|
]), !bt)) {
|
4172
|
-
const f = r.initFocus(setTimeout.bind(de,
|
4172
|
+
const f = r.initFocus(setTimeout.bind(de, en.bind(de, a, vs))), u = r.initReconnect(setTimeout.bind(de, en.bind(de, a, ws)));
|
4173
4173
|
s = () => {
|
4174
4174
|
f && f(), u && u(), Ne.delete(e);
|
4175
4175
|
};
|
@@ -4189,7 +4189,7 @@ const Za = (e, t) => {
|
|
4189
4189
|
}, Vl = (e, t, r, a, n) => {
|
4190
4190
|
const s = r.errorRetryCount, o = n.retryCount, c = ~~((Math.random() + 0.5) * (1 << (o < 8 ? o : 8))) * r.errorRetryInterval;
|
4191
4191
|
!K(s) && o > s || setTimeout(a, c, n);
|
4192
|
-
}, zl =
|
4192
|
+
}, zl = Nr, [Ts, Fl] = Ul(/* @__PURE__ */ new Map()), jl = Ue(
|
4193
4193
|
{
|
4194
4194
|
// events
|
4195
4195
|
onLoadingSlow: Le,
|
@@ -4203,10 +4203,10 @@ const Za = (e, t) => {
|
|
4203
4203
|
revalidateIfStale: !0,
|
4204
4204
|
shouldRetryOnError: !0,
|
4205
4205
|
// timeouts
|
4206
|
-
errorRetryInterval:
|
4206
|
+
errorRetryInterval: Za ? 1e4 : 5e3,
|
4207
4207
|
focusThrottleInterval: 5 * 1e3,
|
4208
4208
|
dedupingInterval: 2 * 1e3,
|
4209
|
-
loadingTimeout:
|
4209
|
+
loadingTimeout: Za ? 5e3 : 3e3,
|
4210
4210
|
// providers
|
4211
4211
|
compare: zl,
|
4212
4212
|
isPaused: () => !1,
|
@@ -4223,7 +4223,7 @@ const Za = (e, t) => {
|
|
4223
4223
|
a && s && (r.use = a.concat(s)), n && o && (r.fallback = Ue(n, o));
|
4224
4224
|
}
|
4225
4225
|
return r;
|
4226
|
-
}, Kl =
|
4226
|
+
}, Kl = An({}), Gl = "$inf$", Cs = wt && window.__SWR_DEVTOOLS_USE__, Jl = Cs ? window.__SWR_DEVTOOLS_USE__ : [], ql = () => {
|
4227
4227
|
Cs && (window.__SWR_DEVTOOLS_REACT__ = Z);
|
4228
4228
|
}, Yl = (e) => Se(e[1]) ? [
|
4229
4229
|
e[0],
|
@@ -4234,7 +4234,7 @@ const Za = (e, t) => {
|
|
4234
4234
|
null,
|
4235
4235
|
(e[1] === null ? e[2] : e[1]) || {}
|
4236
4236
|
], Ql = () => Ue(jl, X(Kl)), Xl = (e) => (t, r, a) => e(t, r && ((...s) => {
|
4237
|
-
const [o] =
|
4237
|
+
const [o] = aa(t), [, , , c] = Ne.get(Ts);
|
4238
4238
|
if (o.startsWith(Gl))
|
4239
4239
|
return r(...s);
|
4240
4240
|
const l = c[o];
|
@@ -4276,7 +4276,7 @@ const dr = Z.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4276
4276
|
}), ur = {
|
4277
4277
|
dedupe: !0
|
4278
4278
|
}, rd = (e, t, r) => {
|
4279
|
-
const { cache: a, compare: n, suspense: s, fallbackData: o, revalidateOnMount: c, revalidateIfStale: l, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: u, keepPreviousData: h } = r, [m, g, y, v] = Ne.get(a), [w, C] =
|
4279
|
+
const { cache: a, compare: n, suspense: s, fallbackData: o, revalidateOnMount: c, revalidateIfStale: l, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: u, keepPreviousData: h } = r, [m, g, y, v] = Ne.get(a), [w, C] = aa(e), S = R(!1), O = R(!1), I = R(w), b = R(t), _ = R(r), k = () => _.current, x = () => k().isVisible() && k().isOnline(), [E, V, A, z] = _s(a, w), P = R({}).current, J = K(o) ? K(r.fallback) ? de : r.fallback[w] : o, Q = (D, N) => {
|
4280
4280
|
for (const j in P) {
|
4281
4281
|
const U = j;
|
4282
4282
|
if (U === "data") {
|
@@ -4321,7 +4321,7 @@ const dr = Z.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4321
4321
|
if (!w || !N || O.current || k().isPaused())
|
4322
4322
|
return !1;
|
4323
4323
|
let j, U, ne = !0;
|
4324
|
-
const fe = D || {}, te = !y[w] || !fe.dedupe, ee = () =>
|
4324
|
+
const fe = D || {}, te = !y[w] || !fe.dedupe, ee = () => Xa ? !O.current && w === I.current && S.current : w === I.current, me = {
|
4325
4325
|
isValidating: !1,
|
4326
4326
|
isLoading: !1
|
4327
4327
|
}, Et = () => {
|
@@ -4338,7 +4338,7 @@ const dr = Z.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4338
4338
|
ne && ee() && k().onLoadingSlow(w, r);
|
4339
4339
|
}, r.loadingTimeout), y[w] = [
|
4340
4340
|
N(C),
|
4341
|
-
|
4341
|
+
Br()
|
4342
4342
|
]), [j, U] = y[w], j = await j, te && setTimeout(kt, r.dedupingInterval), !y[w] || y[w][1] !== U)
|
4343
4343
|
return te && ee() && k().onDiscarded(w), !1;
|
4344
4344
|
me.error = de;
|
@@ -4355,7 +4355,7 @@ const dr = Z.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4355
4355
|
const pe = k(), { shouldRetryOnError: Ie } = pe;
|
4356
4356
|
pe.isPaused() || (me.error = le, te && ee() && (pe.onError(le, w, pe), (Ie === !0 || Se(Ie) && Ie(le)) && (!k().revalidateOnFocus || !k().revalidateOnReconnect || x()) && pe.onErrorRetry(le, w, pe, (Xe) => {
|
4357
4357
|
const Ze = m[w];
|
4358
|
-
Ze && Ze[0] && Ze[0](
|
4358
|
+
Ze && Ze[0] && Ze[0](Ya, Xe);
|
4359
4359
|
}, {
|
4360
4360
|
retryCount: (fe.retryCount || 0) + 1,
|
4361
4361
|
dedupe: !0
|
@@ -4400,7 +4400,7 @@ const dr = Z.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4400
4400
|
else {
|
4401
4401
|
if (ne == Es)
|
4402
4402
|
return ie();
|
4403
|
-
if (ne ==
|
4403
|
+
if (ne == Ya)
|
4404
4404
|
return ie(fe);
|
4405
4405
|
}
|
4406
4406
|
});
|
@@ -4429,7 +4429,7 @@ const dr = Z.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4429
4429
|
u,
|
4430
4430
|
w
|
4431
4431
|
]), Lo(Me), s && K(ve) && w) {
|
4432
|
-
if (!
|
4432
|
+
if (!Xa && bt)
|
4433
4433
|
throw new Error("Fallback data is required when using Suspense in SSR.");
|
4434
4434
|
b.current = t, _.current = r, O.current = !1;
|
4435
4435
|
const D = v[w];
|
@@ -4459,10 +4459,10 @@ const dr = Z.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4459
4459
|
}
|
4460
4460
|
};
|
4461
4461
|
}, At = ed(rd);
|
4462
|
-
var hr,
|
4462
|
+
var hr, tn;
|
4463
4463
|
function ad() {
|
4464
|
-
if (
|
4465
|
-
|
4464
|
+
if (tn) return hr;
|
4465
|
+
tn = 1;
|
4466
4466
|
function e(t, r) {
|
4467
4467
|
if (typeof t != "function")
|
4468
4468
|
throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof t}\`.`);
|
@@ -4479,13 +4479,13 @@ function ad() {
|
|
4479
4479
|
}
|
4480
4480
|
var nd = /* @__PURE__ */ ad();
|
4481
4481
|
const sd = /* @__PURE__ */ gs(nd);
|
4482
|
-
function
|
4482
|
+
function rn(e, t) {
|
4483
4483
|
return t != null ? sd(e, t) : e;
|
4484
4484
|
}
|
4485
4485
|
function od(e) {
|
4486
4486
|
const [t, r] = F(e);
|
4487
4487
|
return $(() => {
|
4488
|
-
|
4488
|
+
Ar(e, t) || r(e);
|
4489
4489
|
}, [e, t]), t;
|
4490
4490
|
}
|
4491
4491
|
function id({
|
@@ -4504,7 +4504,7 @@ function id({
|
|
4504
4504
|
credentials: h,
|
4505
4505
|
headers: m,
|
4506
4506
|
body: g,
|
4507
|
-
generateId: y =
|
4507
|
+
generateId: y = ea,
|
4508
4508
|
fetch: v,
|
4509
4509
|
keepLastMessageOnError: w = !0,
|
4510
4510
|
experimental_throttle: C
|
@@ -4540,13 +4540,13 @@ function id({
|
|
4540
4540
|
async (H, D = "generate") => {
|
4541
4541
|
var N, j;
|
4542
4542
|
J("submitted"), L(void 0);
|
4543
|
-
const U = ar(H.messages), ne = U.length, fe =
|
4543
|
+
const U = ar(H.messages), ne = U.length, fe = Rr(
|
4544
4544
|
(N = U[U.length - 1]) == null ? void 0 : N.toolInvocations
|
4545
4545
|
);
|
4546
4546
|
try {
|
4547
4547
|
const ee = new AbortController();
|
4548
4548
|
M.current = ee;
|
4549
|
-
const me =
|
4549
|
+
const me = rn(x, C), Et = rn(
|
4550
4550
|
A,
|
4551
4551
|
C
|
4552
4552
|
), kt = E.current;
|
@@ -4557,9 +4557,9 @@ function id({
|
|
4557
4557
|
content: Ie,
|
4558
4558
|
experimental_attachments: Xe,
|
4559
4559
|
data: Ze,
|
4560
|
-
annotations:
|
4561
|
-
toolInvocations:
|
4562
|
-
parts:
|
4560
|
+
annotations: ya,
|
4561
|
+
toolInvocations: ba,
|
4562
|
+
parts: va
|
4563
4563
|
}) => ({
|
4564
4564
|
role: pe,
|
4565
4565
|
content: Ie,
|
@@ -4567,9 +4567,9 @@ function id({
|
|
4567
4567
|
experimental_attachments: Xe
|
4568
4568
|
},
|
4569
4569
|
...Ze !== void 0 && { data: Ze },
|
4570
|
-
...
|
4571
|
-
...
|
4572
|
-
...
|
4570
|
+
...ya !== void 0 && { annotations: ya },
|
4571
|
+
...ba !== void 0 && { toolInvocations: ba },
|
4572
|
+
...va !== void 0 && { parts: va }
|
4573
4573
|
})
|
4574
4574
|
), le = z.current;
|
4575
4575
|
await El({
|
@@ -4661,7 +4661,7 @@ function id({
|
|
4661
4661
|
experimental_attachments: U = H.experimental_attachments
|
4662
4662
|
} = {}) => {
|
4663
4663
|
var ne, fe;
|
4664
|
-
const te = await
|
4664
|
+
const te = await Ka(
|
4665
4665
|
U
|
4666
4666
|
), ee = E.current.concat({
|
4667
4667
|
...H,
|
@@ -4713,7 +4713,7 @@ function id({
|
|
4713
4713
|
...q.current,
|
4714
4714
|
...N
|
4715
4715
|
});
|
4716
|
-
const U = await
|
4716
|
+
const U = await Ka(
|
4717
4717
|
D.experimental_attachments
|
4718
4718
|
), fe = {
|
4719
4719
|
messages: E.current.concat({
|
@@ -4773,12 +4773,12 @@ function id({
|
|
4773
4773
|
addToolResult: ye
|
4774
4774
|
};
|
4775
4775
|
}
|
4776
|
-
const
|
4776
|
+
const an = () => ({
|
4777
4777
|
onFinish: /* @__PURE__ */ new Set(),
|
4778
4778
|
onError: /* @__PURE__ */ new Set(),
|
4779
4779
|
onResponse: /* @__PURE__ */ new Set(),
|
4780
4780
|
onToolCall: /* @__PURE__ */ new Set()
|
4781
|
-
}), Is =
|
4781
|
+
}), Is = An(null);
|
4782
4782
|
function Qe(e = {}) {
|
4783
4783
|
const t = X(Is);
|
4784
4784
|
if (!t)
|
@@ -4797,9 +4797,9 @@ function cd({
|
|
4797
4797
|
children: e,
|
4798
4798
|
value: t
|
4799
4799
|
}) {
|
4800
|
-
const r = R(
|
4800
|
+
const r = R(an());
|
4801
4801
|
$(() => {
|
4802
|
-
r.current =
|
4802
|
+
r.current = an();
|
4803
4803
|
}, [t]);
|
4804
4804
|
const a = W(
|
4805
4805
|
(...l) => {
|
@@ -4843,12 +4843,12 @@ function cd({
|
|
4843
4843
|
}
|
4844
4844
|
);
|
4845
4845
|
}
|
4846
|
-
const ld = "z-20", dd = "z-10", ud = "user", Gt = "assistant",
|
4846
|
+
const ld = "z-20", dd = "z-10", ud = "user", Gt = "assistant", na = "OpenAI", xs = "Anthropic", Rs = "Google", hd = "Perplexity", fd = na, md = "claude-sonnet-4", pd = "claude-3", gd = "gpt-4", yd = "o3", bd = "o4", vd = "gemini", wd = "sonar", Ed = {
|
4847
4847
|
[xs]: [
|
4848
4848
|
md,
|
4849
4849
|
pd
|
4850
4850
|
],
|
4851
|
-
[
|
4851
|
+
[na]: [
|
4852
4852
|
gd,
|
4853
4853
|
yd,
|
4854
4854
|
bd
|
@@ -4864,11 +4864,11 @@ const ld = "z-20", dd = "z-10", ud = "user", Gt = "assistant", ra = "OpenAI", xs
|
|
4864
4864
|
if (r.some((a) => e.startsWith(a)))
|
4865
4865
|
return t;
|
4866
4866
|
return null;
|
4867
|
-
},
|
4867
|
+
}, sa = Z.createContext({
|
4868
4868
|
state: { searchString: "", sortedCell: "", sortDirection: "" },
|
4869
4869
|
dispatch: () => {
|
4870
4870
|
}
|
4871
|
-
}),
|
4871
|
+
}), oa = Z.createContext({
|
4872
4872
|
state: { prompt: "", lastTriggeredTimestamp: 0 },
|
4873
4873
|
dispatch: () => {
|
4874
4874
|
}
|
@@ -4892,7 +4892,7 @@ const ld = "z-20", dd = "z-10", ud = "user", Gt = "assistant", ra = "OpenAI", xs
|
|
4892
4892
|
},
|
4893
4893
|
setInitialMessages: () => {
|
4894
4894
|
}
|
4895
|
-
}),
|
4895
|
+
}), ia = Z.createContext({
|
4896
4896
|
state: {
|
4897
4897
|
footerPosition: Wt,
|
4898
4898
|
footerHeight: 0,
|
@@ -4972,12 +4972,12 @@ class Ee extends Fe {
|
|
4972
4972
|
}
|
4973
4973
|
}
|
4974
4974
|
ae(Ee, "code", "ERR_JWT_CLAIM_VALIDATION_FAILED");
|
4975
|
-
let
|
4975
|
+
let Hr = class extends Fe {
|
4976
4976
|
constructor(t, r, a = "unspecified", n = "unspecified") {
|
4977
4977
|
super(t, { cause: { claim: a, reason: n, payload: r } }), ae(this, "code", "ERR_JWT_EXPIRED"), ae(this, "claim"), ae(this, "reason"), ae(this, "payload"), this.claim = a, this.reason = n, this.payload = r;
|
4978
4978
|
}
|
4979
4979
|
};
|
4980
|
-
ae(
|
4980
|
+
ae(Hr, "code", "ERR_JWT_EXPIRED");
|
4981
4981
|
let Ns = class extends Fe {
|
4982
4982
|
constructor() {
|
4983
4983
|
super(...arguments), ae(this, "code", "ERR_JOSE_ALG_NOT_ALLOWED");
|
@@ -4996,12 +4996,12 @@ class oe extends Fe {
|
|
4996
4996
|
}
|
4997
4997
|
}
|
4998
4998
|
ae(oe, "code", "ERR_JWS_INVALID");
|
4999
|
-
let
|
4999
|
+
let ca = class extends Fe {
|
5000
5000
|
constructor() {
|
5001
5001
|
super(...arguments), ae(this, "code", "ERR_JWT_INVALID");
|
5002
5002
|
}
|
5003
5003
|
};
|
5004
|
-
ae(
|
5004
|
+
ae(ca, "code", "ERR_JWT_INVALID");
|
5005
5005
|
let Os = class extends Fe {
|
5006
5006
|
constructor(t = "signature verification failed", r) {
|
5007
5007
|
super(t, r), ae(this, "code", "ERR_JWS_SIGNATURE_VERIFICATION_FAILED");
|
@@ -5316,7 +5316,7 @@ const Vd = (e, t, r, a, n) => {
|
|
5316
5316
|
if (t)
|
5317
5317
|
return new Set(t);
|
5318
5318
|
};
|
5319
|
-
function
|
5319
|
+
function la(e) {
|
5320
5320
|
return Jt(e) && typeof e.kty == "string";
|
5321
5321
|
}
|
5322
5322
|
function Fd(e) {
|
@@ -5329,7 +5329,7 @@ function Wd(e) {
|
|
5329
5329
|
return e.kty === "oct" && typeof e.k == "string";
|
5330
5330
|
}
|
5331
5331
|
let Be;
|
5332
|
-
const
|
5332
|
+
const nn = async (e, t, r, a = !1) => {
|
5333
5333
|
Be || (Be = /* @__PURE__ */ new WeakMap());
|
5334
5334
|
let n = Be.get(e);
|
5335
5335
|
if (n != null && n[r])
|
@@ -5436,12 +5436,12 @@ const an = async (e, t, r, a = !1) => {
|
|
5436
5436
|
throw a;
|
5437
5437
|
}
|
5438
5438
|
let r = e.export({ format: "jwk" });
|
5439
|
-
return
|
5439
|
+
return nn(e, r, t);
|
5440
5440
|
}
|
5441
|
-
if (
|
5442
|
-
return e.k ? Ht(e.k) :
|
5441
|
+
if (la(e))
|
5442
|
+
return e.k ? Ht(e.k) : nn(e, e, t, !0);
|
5443
5443
|
throw new Error("unreachable");
|
5444
|
-
}, et = (e) => e?.[Symbol.toStringTag],
|
5444
|
+
}, et = (e) => e?.[Symbol.toStringTag], Ur = (e, t, r) => {
|
5445
5445
|
var a, n;
|
5446
5446
|
if (t.use !== void 0) {
|
5447
5447
|
let s;
|
@@ -5487,8 +5487,8 @@ const an = async (e, t, r, a = !1) => {
|
|
5487
5487
|
return !0;
|
5488
5488
|
}, Jd = (e, t, r) => {
|
5489
5489
|
if (!(t instanceof Uint8Array)) {
|
5490
|
-
if (
|
5491
|
-
if (Wd(t) &&
|
5490
|
+
if (la(t)) {
|
5491
|
+
if (Wd(t) && Ur(e, t, r))
|
5492
5492
|
return;
|
5493
5493
|
throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present');
|
5494
5494
|
}
|
@@ -5498,16 +5498,16 @@ const an = async (e, t, r, a = !1) => {
|
|
5498
5498
|
throw new TypeError(`${et(t)} instances for symmetric algorithms must be of type "secret"`);
|
5499
5499
|
}
|
5500
5500
|
}, qd = (e, t, r) => {
|
5501
|
-
if (
|
5501
|
+
if (la(t))
|
5502
5502
|
switch (r) {
|
5503
5503
|
case "decrypt":
|
5504
5504
|
case "sign":
|
5505
|
-
if (Fd(t) &&
|
5505
|
+
if (Fd(t) && Ur(e, t, r))
|
5506
5506
|
return;
|
5507
5507
|
throw new TypeError("JSON Web Key for this operation be a private JWK");
|
5508
5508
|
case "encrypt":
|
5509
5509
|
case "verify":
|
5510
|
-
if (jd(t) &&
|
5510
|
+
if (jd(t) && Ur(e, t, r))
|
5511
5511
|
return;
|
5512
5512
|
throw new TypeError("JSON Web Key for this operation be a public JWK");
|
5513
5513
|
}
|
@@ -5646,7 +5646,7 @@ async function tu(e, t, r) {
|
|
5646
5646
|
const c = await eu({ payload: n, protected: a, signature: s }, t, r), l = { payload: c.payload, protectedHeader: c.protectedHeader };
|
5647
5647
|
return typeof t == "function" ? { ...l, key: c.key } : l;
|
5648
5648
|
}
|
5649
|
-
const ru = (e) => Math.floor(e.getTime() / 1e3), Bs = 60, Hs = Bs * 60,
|
5649
|
+
const ru = (e) => Math.floor(e.getTime() / 1e3), Bs = 60, Hs = Bs * 60, da = Hs * 24, au = da * 7, nu = da * 365.25, su = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, sn = (e) => {
|
5650
5650
|
const t = su.exec(e);
|
5651
5651
|
if (!t || t[4] && t[1])
|
5652
5652
|
throw new TypeError("Invalid time period format");
|
@@ -5677,7 +5677,7 @@ const ru = (e) => Math.floor(e.getTime() / 1e3), Bs = 60, Hs = Bs * 60, ca = Hs
|
|
5677
5677
|
case "day":
|
5678
5678
|
case "days":
|
5679
5679
|
case "d":
|
5680
|
-
n = Math.round(r *
|
5680
|
+
n = Math.round(r * da);
|
5681
5681
|
break;
|
5682
5682
|
case "week":
|
5683
5683
|
case "weeks":
|
@@ -5689,7 +5689,7 @@ const ru = (e) => Math.floor(e.getTime() / 1e3), Bs = 60, Hs = Bs * 60, ca = Hs
|
|
5689
5689
|
break;
|
5690
5690
|
}
|
5691
5691
|
return t[1] === "-" || t[4] === "ago" ? -n : n;
|
5692
|
-
},
|
5692
|
+
}, on = (e) => e.toLowerCase().replace(/^application\//, ""), ou = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
|
5693
5693
|
function iu(e, t, r = {}) {
|
5694
5694
|
let a;
|
5695
5695
|
try {
|
@@ -5697,9 +5697,9 @@ function iu(e, t, r = {}) {
|
|
5697
5697
|
} catch {
|
5698
5698
|
}
|
5699
5699
|
if (!Jt(a))
|
5700
|
-
throw new
|
5700
|
+
throw new ca("JWT Claims Set must be a top-level JSON object");
|
5701
5701
|
const { typ: n } = r;
|
5702
|
-
if (n && (typeof e.typ != "string" ||
|
5702
|
+
if (n && (typeof e.typ != "string" || on(e.typ) !== on(n)))
|
5703
5703
|
throw new Ee('unexpected "typ" JWT header value', a, "typ", "check_failed");
|
5704
5704
|
const { requiredClaims: s = [], issuer: o, subject: c, audience: l, maxTokenAge: d } = r, f = [...s];
|
5705
5705
|
d !== void 0 && f.push("iat"), l !== void 0 && f.push("aud"), c !== void 0 && f.push("sub"), o !== void 0 && f.push("iss");
|
@@ -5715,7 +5715,7 @@ function iu(e, t, r = {}) {
|
|
5715
5715
|
let u;
|
5716
5716
|
switch (typeof r.clockTolerance) {
|
5717
5717
|
case "string":
|
5718
|
-
u =
|
5718
|
+
u = sn(r.clockTolerance);
|
5719
5719
|
break;
|
5720
5720
|
case "number":
|
5721
5721
|
u = r.clockTolerance;
|
@@ -5739,12 +5739,12 @@ function iu(e, t, r = {}) {
|
|
5739
5739
|
if (typeof a.exp != "number")
|
5740
5740
|
throw new Ee('"exp" claim must be a number', a, "exp", "invalid");
|
5741
5741
|
if (a.exp <= m - u)
|
5742
|
-
throw new
|
5742
|
+
throw new Hr('"exp" claim timestamp check failed', a, "exp", "check_failed");
|
5743
5743
|
}
|
5744
5744
|
if (d) {
|
5745
|
-
const g = m - a.iat, y = typeof d == "number" ? d :
|
5745
|
+
const g = m - a.iat, y = typeof d == "number" ? d : sn(d);
|
5746
5746
|
if (g - u > y)
|
5747
|
-
throw new
|
5747
|
+
throw new Hr('"iat" claim timestamp check failed (too far in the past)', a, "iat", "check_failed");
|
5748
5748
|
if (g < 0 - u)
|
5749
5749
|
throw new Ee('"iat" claim timestamp check failed (it should be in the past)', a, "iat", "check_failed");
|
5750
5750
|
}
|
@@ -5754,7 +5754,7 @@ async function cu(e, t, r) {
|
|
5754
5754
|
var a;
|
5755
5755
|
const n = await tu(e, t, r);
|
5756
5756
|
if ((a = n.protectedHeader.crit) != null && a.includes("b64") && n.protectedHeader.b64 === !1)
|
5757
|
-
throw new
|
5757
|
+
throw new ca("JWTs MUST NOT use unencoded payload");
|
5758
5758
|
const s = { payload: iu(n.protectedHeader, n.payload, r), protectedHeader: n.protectedHeader };
|
5759
5759
|
return typeof t == "function" ? { ...s, key: n.key } : s;
|
5760
5760
|
}
|
@@ -5785,7 +5785,7 @@ const Us = async (e, t) => {
|
|
5785
5785
|
return Array.isArray(t) ? t.every((n) => a.includes(n)) : Object.keys(t).some(
|
5786
5786
|
(n) => t[n].every((s) => a.includes(s))
|
5787
5787
|
);
|
5788
|
-
}, uu = "av-tooltip", hu = "av-tooltip-arrow",
|
5788
|
+
}, uu = "av-tooltip", hu = "av-tooltip-arrow", cn = ["mousedown", "touchstart"];
|
5789
5789
|
function fu(e, t, r) {
|
5790
5790
|
const a = R(null);
|
5791
5791
|
return $(() => {
|
@@ -5798,10 +5798,10 @@ function fu(e, t, r) {
|
|
5798
5798
|
) && !c && e();
|
5799
5799
|
} else a.current && !a.current.contains(o) && e();
|
5800
5800
|
};
|
5801
|
-
return
|
5801
|
+
return cn.forEach(
|
5802
5802
|
(s) => document.addEventListener(s, n)
|
5803
5803
|
), () => {
|
5804
|
-
|
5804
|
+
cn.forEach(
|
5805
5805
|
(s) => document.removeEventListener(s, n)
|
5806
5806
|
);
|
5807
5807
|
};
|
@@ -5815,7 +5815,7 @@ function mu(e, t) {
|
|
5815
5815
|
}, []);
|
5816
5816
|
return $(() => (s.current = e, r && o(), c), [e, r, o, c]), { start: o, stop: c, active: r };
|
5817
5817
|
}
|
5818
|
-
const Ot = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, pu = () => p("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"),
|
5818
|
+
const Ot = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, pu = () => p("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), ln = ({
|
5819
5819
|
mode: e
|
5820
5820
|
}) => p({
|
5821
5821
|
"bg-surface-darker": e === "dark" || e === "system",
|
@@ -5838,13 +5838,13 @@ const Ot = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, pu = (
|
|
5838
5838
|
const n = p("relative inline-block", t), s = p(
|
5839
5839
|
uu,
|
5840
5840
|
pu(),
|
5841
|
-
|
5841
|
+
ln({ mode: e }),
|
5842
5842
|
gu({ mode: e }),
|
5843
5843
|
r
|
5844
5844
|
), o = p(
|
5845
5845
|
hu,
|
5846
5846
|
yu(),
|
5847
|
-
|
5847
|
+
ln({ mode: e }),
|
5848
5848
|
a
|
5849
5849
|
);
|
5850
5850
|
return { tooltip: s, arrow: o, wrapper: n };
|
@@ -5880,12 +5880,12 @@ const Ot = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, pu = (
|
|
5880
5880
|
} = await Do(l.current, d.current, {
|
5881
5881
|
placement: r,
|
5882
5882
|
middleware: [
|
5883
|
-
|
5884
|
-
|
5883
|
+
$n(10),
|
5884
|
+
Pn({
|
5885
5885
|
crossAxis: r.includes("-"),
|
5886
5886
|
fallbackAxisSideDirection: "start"
|
5887
5887
|
}),
|
5888
|
-
|
5888
|
+
Mn({ padding: 5 }),
|
5889
5889
|
Bo({ element: f.current })
|
5890
5890
|
]
|
5891
5891
|
});
|
@@ -6002,18 +6002,18 @@ const Eu = ({
|
|
6002
6002
|
}
|
6003
6003
|
});
|
6004
6004
|
};
|
6005
|
-
|
6005
|
+
qr(
|
6006
6006
|
[
|
6007
6007
|
[
|
6008
6008
|
"mod+N",
|
6009
6009
|
() => {
|
6010
|
-
(
|
6010
|
+
(_a() || _r()) && h();
|
6011
6011
|
}
|
6012
6012
|
],
|
6013
6013
|
[
|
6014
6014
|
"mod+T",
|
6015
6015
|
() => {
|
6016
|
-
(
|
6016
|
+
(_a() || _r()) && h();
|
6017
6017
|
}
|
6018
6018
|
]
|
6019
6019
|
],
|
@@ -6035,7 +6035,7 @@ const Eu = ({
|
|
6035
6035
|
});
|
6036
6036
|
try {
|
6037
6037
|
const v = await t();
|
6038
|
-
await fetch(`${
|
6038
|
+
await fetch(`${Zr}/api/abort`, {
|
6039
6039
|
method: "POST",
|
6040
6040
|
headers: {
|
6041
6041
|
"Content-Type": "application/json",
|
@@ -6072,7 +6072,7 @@ const Eu = ({
|
|
6072
6072
|
)
|
6073
6073
|
}
|
6074
6074
|
);
|
6075
|
-
},
|
6075
|
+
}, dn = "av-messagebox", un = "av-panel", hn = "av-button", ua = "icon", Vs = "button", Vr = "link", _u = ({
|
6076
6076
|
type: e,
|
6077
6077
|
size: t,
|
6078
6078
|
labelRight: r,
|
@@ -6083,13 +6083,13 @@ const Eu = ({
|
|
6083
6083
|
const o = "max-h-8 py-0 px-2", c = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
|
6084
6084
|
switch (e) {
|
6085
6085
|
case Vs:
|
6086
|
-
case
|
6086
|
+
case Vr:
|
6087
6087
|
return p({
|
6088
6088
|
[o]: t === "small",
|
6089
6089
|
[c]: t === "medium",
|
6090
6090
|
[l]: t === "large"
|
6091
6091
|
});
|
6092
|
-
case
|
6092
|
+
case ua:
|
6093
6093
|
return p("flex items-center", {
|
6094
6094
|
"justify-center": n === "center",
|
6095
6095
|
"justify-start": n === "left",
|
@@ -6117,14 +6117,14 @@ const Eu = ({
|
|
6117
6117
|
const n = "text-sm font-medium", s = "text-base font-medium", o = "text-lg font-medium";
|
6118
6118
|
switch (e) {
|
6119
6119
|
case Vs:
|
6120
|
-
case
|
6120
|
+
case Vr:
|
6121
6121
|
return p({
|
6122
|
-
"text-center": e ===
|
6122
|
+
"text-center": e === Vr,
|
6123
6123
|
[n]: t === "small",
|
6124
6124
|
[s]: t === "medium",
|
6125
6125
|
[o]: t === "large"
|
6126
6126
|
});
|
6127
|
-
case
|
6127
|
+
case ua:
|
6128
6128
|
return p({
|
6129
6129
|
[n]: t === "small" && (r || a),
|
6130
6130
|
[s]: t === "medium" && (r || a),
|
@@ -6334,8 +6334,8 @@ const Eu = ({
|
|
6334
6334
|
align: g,
|
6335
6335
|
radius: y,
|
6336
6336
|
animated: v
|
6337
|
-
}) => (h || (h = "primary"), r ? p(
|
6338
|
-
|
6337
|
+
}) => (h || (h = "primary"), r ? p(hn, t) : p(
|
6338
|
+
hn,
|
6339
6339
|
Tu({
|
6340
6340
|
mode: a,
|
6341
6341
|
variant: h,
|
@@ -6431,7 +6431,7 @@ const $t = {
|
|
6431
6431
|
// px-3 x 2
|
6432
6432
|
large: 16 * 2
|
6433
6433
|
// px-4 x 2
|
6434
|
-
}, Uu = 2, Vu = 300,
|
6434
|
+
}, Uu = 2, Vu = 300, ha = Z.forwardRef(
|
6435
6435
|
({
|
6436
6436
|
children: e,
|
6437
6437
|
disabled: t = !1,
|
@@ -6456,7 +6456,7 @@ const $t = {
|
|
6456
6456
|
...O
|
6457
6457
|
}, I) => {
|
6458
6458
|
const b = Pu({
|
6459
|
-
type:
|
6459
|
+
type: ua,
|
6460
6460
|
mode: r,
|
6461
6461
|
focusMode: a,
|
6462
6462
|
fullWidth: n,
|
@@ -6504,7 +6504,7 @@ const $t = {
|
|
6504
6504
|
...O,
|
6505
6505
|
children: /* @__PURE__ */ T("div", { className: x, children: [
|
6506
6506
|
/* @__PURE__ */ i(
|
6507
|
-
|
6507
|
+
fn,
|
6508
6508
|
{
|
6509
6509
|
label: m,
|
6510
6510
|
labelRef: A,
|
@@ -6515,7 +6515,7 @@ const $t = {
|
|
6515
6515
|
),
|
6516
6516
|
/* @__PURE__ */ i("span", { ref: P, className: _, children: e }),
|
6517
6517
|
/* @__PURE__ */ i(
|
6518
|
-
|
6518
|
+
fn,
|
6519
6519
|
{
|
6520
6520
|
label: h,
|
6521
6521
|
labelRef: E,
|
@@ -6528,7 +6528,7 @@ const $t = {
|
|
6528
6528
|
}
|
6529
6529
|
);
|
6530
6530
|
}
|
6531
|
-
),
|
6531
|
+
), fn = ({
|
6532
6532
|
labelRef: e,
|
6533
6533
|
labelClass: t,
|
6534
6534
|
label: r,
|
@@ -6543,7 +6543,7 @@ const $t = {
|
|
6543
6543
|
children: r && /* @__PURE__ */ i("span", { className: a, children: r })
|
6544
6544
|
}
|
6545
6545
|
);
|
6546
|
-
|
6546
|
+
ha.displayName = "ButtonIcon";
|
6547
6547
|
/*!
|
6548
6548
|
@versini/ui-button v6.0.9
|
6549
6549
|
© 2025 gizmette.com
|
@@ -6583,7 +6583,7 @@ const zu = Z.forwardRef(
|
|
6583
6583
|
}
|
6584
6584
|
) : "";
|
6585
6585
|
return /* @__PURE__ */ i("div", { className: o, children: /* @__PURE__ */ i(
|
6586
|
-
|
6586
|
+
ha,
|
6587
6587
|
{
|
6588
6588
|
className: p("justify-center", r),
|
6589
6589
|
ref: s,
|
@@ -6682,15 +6682,15 @@ function Wu({
|
|
6682
6682
|
open: t,
|
6683
6683
|
onOpenChange: r
|
6684
6684
|
} = {}) {
|
6685
|
-
const [a, n] = Y.useState(e), [s, o] = Y.useState(), [c, l] = Y.useState(), d = t ?? a, f = r ?? n, u =
|
6685
|
+
const [a, n] = Y.useState(e), [s, o] = Y.useState(), [c, l] = Y.useState(), d = t ?? a, f = r ?? n, u = Bn({
|
6686
6686
|
open: d,
|
6687
6687
|
onOpenChange: f
|
6688
|
-
}), h = u.context, m =
|
6688
|
+
}), h = u.context, m = Hn(h, {
|
6689
6689
|
enabled: t == null
|
6690
|
-
}), g =
|
6690
|
+
}), g = Un(h, {
|
6691
6691
|
outsidePress: !1,
|
6692
6692
|
outsidePressEvent: "mousedown"
|
6693
|
-
}), y =
|
6693
|
+
}), y = Vn(h), v = zn([m, g, y]);
|
6694
6694
|
return Y.useMemo(
|
6695
6695
|
() => ({
|
6696
6696
|
open: d,
|
@@ -6719,14 +6719,14 @@ function Ku({
|
|
6719
6719
|
return /* @__PURE__ */ i(Fs.Provider, { value: r, children: e });
|
6720
6720
|
}
|
6721
6721
|
const Gu = Y.forwardRef(function(e, t) {
|
6722
|
-
const { context: r, ...a } = Qt(), n =
|
6722
|
+
const { context: r, ...a } = Qt(), n = Gr([a.refs.setFloating, t]);
|
6723
6723
|
if (!r.open)
|
6724
6724
|
return null;
|
6725
6725
|
const { overlayBackground: s, ...o } = e, c = p("grid place-items-center", {
|
6726
6726
|
[`${s}`]: s,
|
6727
6727
|
"bg-black sm:bg-black/[.8]": !s
|
6728
6728
|
});
|
6729
|
-
return /* @__PURE__ */ i(
|
6729
|
+
return /* @__PURE__ */ i(Ln, { children: /* @__PURE__ */ i(Ho, { className: c, lockScroll: !0, children: /* @__PURE__ */ i(Dn, { context: r, children: /* @__PURE__ */ i(
|
6730
6730
|
"div",
|
6731
6731
|
{
|
6732
6732
|
ref: n,
|
@@ -6737,10 +6737,10 @@ const Gu = Y.forwardRef(function(e, t) {
|
|
6737
6737
|
}
|
6738
6738
|
) }) }) });
|
6739
6739
|
}), Ju = Y.forwardRef(function({ children: e, ...t }, r) {
|
6740
|
-
const { setLabelId: a } = Qt(), n =
|
6740
|
+
const { setLabelId: a } = Qt(), n = Kr();
|
6741
6741
|
return Y.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ i("h1", { ...t, ref: r, id: n, children: e });
|
6742
6742
|
}), qu = Y.forwardRef(function({ children: e, ...t }, r) {
|
6743
|
-
const { setDescriptionId: a } = Qt(), n =
|
6743
|
+
const { setDescriptionId: a } = Qt(), n = Kr();
|
6744
6744
|
return Y.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ i("div", { ...t, ref: r, id: n, children: e });
|
6745
6745
|
}), Yu = Y.forwardRef(function(e, t) {
|
6746
6746
|
const { setOpen: r } = Qt(), { trigger: a, className: n, ...s } = e, o = Y.useCallback(() => r(!1), [r]);
|
@@ -6771,10 +6771,10 @@ const pt = "panel", Pt = "messagebox", Qu = ({
|
|
6771
6771
|
}) => ({
|
6772
6772
|
main: p("prose prose-lighter flex flex-col bg-surface-medium", {
|
6773
6773
|
"duration-200 ease-out": a,
|
6774
|
-
[`${
|
6775
|
-
[`${
|
6776
|
-
[`${
|
6777
|
-
[`${
|
6774
|
+
[`${un} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === pt,
|
6775
|
+
[`${un} w-full sm:w-[95%] md:max-w-2xl`]: t === pt && !e,
|
6776
|
+
[`${dn} rounded-lg border-2`]: t === Pt,
|
6777
|
+
[`${dn} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === Pt && !e,
|
6778
6778
|
[`${e}`]: !!e,
|
6779
6779
|
"sm:border-border-dark": r === "dark" && t === pt,
|
6780
6780
|
"sm:border-border-accent": r === "light" && t === pt,
|
@@ -6785,7 +6785,7 @@ const pt = "panel", Pt = "messagebox", Qu = ({
|
|
6785
6785
|
footer: "flex grow flex-col sm:p-4 p-2",
|
6786
6786
|
header: "sm:p-4 mb-0 p-2",
|
6787
6787
|
close: "sm:p-4 p-2"
|
6788
|
-
}), Xu = "slide",
|
6788
|
+
}), Xu = "slide", mn = "fade", Zu = ({
|
6789
6789
|
open: e,
|
6790
6790
|
onOpenChange: t,
|
6791
6791
|
title: r,
|
@@ -6798,7 +6798,7 @@ const pt = "panel", Pt = "messagebox", Qu = ({
|
|
6798
6798
|
animationType: d = Xu
|
6799
6799
|
}) => {
|
6800
6800
|
const f = R(""), [u, h] = F(
|
6801
|
-
l ? d ===
|
6801
|
+
l ? d === mn ? { opacity: 0 } : {
|
6802
6802
|
transform: "translateY(-100vh)"
|
6803
6803
|
} : {}
|
6804
6804
|
), m = Qu({
|
@@ -6812,7 +6812,7 @@ const pt = "panel", Pt = "messagebox", Qu = ({
|
|
6812
6812
|
}), [r, e]), $(() => {
|
6813
6813
|
if (l && e) {
|
6814
6814
|
h(
|
6815
|
-
l ? d ===
|
6815
|
+
l ? d === mn ? { opacity: 0 } : {
|
6816
6816
|
transform: "translateY(-666vh)"
|
6817
6817
|
} : {}
|
6818
6818
|
);
|
@@ -6832,7 +6832,7 @@ const pt = "panel", Pt = "messagebox", Qu = ({
|
|
6832
6832
|
{
|
6833
6833
|
className: m.close,
|
6834
6834
|
trigger: /* @__PURE__ */ i(
|
6835
|
-
|
6835
|
+
ha,
|
6836
6836
|
{
|
6837
6837
|
mode: "dark",
|
6838
6838
|
focusMode: "light",
|
@@ -6877,9 +6877,9 @@ const qe = ({
|
|
6877
6877
|
open: e,
|
6878
6878
|
onOpenChange: t,
|
6879
6879
|
title: n.title,
|
6880
|
-
footer: /* @__PURE__ */ T(
|
6880
|
+
footer: /* @__PURE__ */ T(In, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
6881
6881
|
/* @__PURE__ */ i(yt, { children: !s && /* @__PURE__ */ i(
|
6882
|
-
|
6882
|
+
Sa,
|
6883
6883
|
{
|
6884
6884
|
noBorder: !0,
|
6885
6885
|
mode: "dark",
|
@@ -6892,7 +6892,7 @@ const qe = ({
|
|
6892
6892
|
}
|
6893
6893
|
) }),
|
6894
6894
|
/* @__PURE__ */ i(yt, { children: /* @__PURE__ */ i(
|
6895
|
-
|
6895
|
+
Sa,
|
6896
6896
|
{
|
6897
6897
|
noBorder: !0,
|
6898
6898
|
mode: "dark",
|
@@ -6990,7 +6990,7 @@ const qe = ({
|
|
6990
6990
|
}
|
6991
6991
|
)
|
6992
6992
|
] });
|
6993
|
-
},
|
6993
|
+
}, zr = Y.createContext({
|
6994
6994
|
getItemProps: () => ({}),
|
6995
6995
|
activeIndex: null,
|
6996
6996
|
/* v8 ignore next 2 */
|
@@ -6999,7 +6999,7 @@ const qe = ({
|
|
6999
6999
|
setHasFocusInside: () => {
|
7000
7000
|
},
|
7001
7001
|
isOpen: !1
|
7002
|
-
}),
|
7002
|
+
}), pn = (e) => {
|
7003
7003
|
if (typeof e == "string")
|
7004
7004
|
return e;
|
7005
7005
|
if (typeof e == "function")
|
@@ -7010,7 +7010,7 @@ const qe = ({
|
|
7010
7010
|
return t.displayName || t.name || "Component";
|
7011
7011
|
}
|
7012
7012
|
return "Element";
|
7013
|
-
}, Ws =
|
7013
|
+
}, Ws = Nn(
|
7014
7014
|
({
|
7015
7015
|
trigger: e,
|
7016
7016
|
children: t,
|
@@ -7021,7 +7021,7 @@ const qe = ({
|
|
7021
7021
|
focusMode: o = "system",
|
7022
7022
|
...c
|
7023
7023
|
}, l) => {
|
7024
|
-
const [d, f] = F(!1), [u, h] = F(!1), [m, g] = F(null), y = R([]), v = R([]), w = X(
|
7024
|
+
const [d, f] = F(!1), [u, h] = F(!1), [m, g] = F(null), y = R([]), v = R([]), w = X(zr), C = Fn(), S = Vo(), O = jn(), { floatingStyles: I, refs: b, context: _ } = Bn({
|
7025
7025
|
nodeId: S,
|
7026
7026
|
open: d,
|
7027
7027
|
onOpenChange: (q) => {
|
@@ -7029,13 +7029,13 @@ const qe = ({
|
|
7029
7029
|
},
|
7030
7030
|
placement: a,
|
7031
7031
|
strategy: "fixed",
|
7032
|
-
middleware: [
|
7032
|
+
middleware: [$n({ mainAxis: 10 }), Pn(), Mn()],
|
7033
7033
|
whileElementsMounted: zo
|
7034
|
-
}), k =
|
7034
|
+
}), k = Hn(_, {
|
7035
7035
|
event: "mousedown",
|
7036
7036
|
toggle: !0,
|
7037
7037
|
ignoreMouse: !1
|
7038
|
-
}), x =
|
7038
|
+
}), x = Vn(_, { role: "menu" }), E = Un(_, { bubbles: !0 }), V = Fo(_, {
|
7039
7039
|
listRef: y,
|
7040
7040
|
activeIndex: m,
|
7041
7041
|
nested: !1,
|
@@ -7045,7 +7045,7 @@ const qe = ({
|
|
7045
7045
|
listRef: v,
|
7046
7046
|
onMatch: d ? g : void 0,
|
7047
7047
|
activeIndex: m
|
7048
|
-
}), { getReferenceProps: z, getFloatingProps: P, getItemProps: J } =
|
7048
|
+
}), { getReferenceProps: z, getFloatingProps: P, getItemProps: J } = zn([k, x, E, V, A]), Q = pn(e) === "Button" || pn(e) === "ButtonIcon", L = Q ? {
|
7049
7049
|
noInternalClick: Q,
|
7050
7050
|
focusMode: o,
|
7051
7051
|
mode: s
|
@@ -7056,7 +7056,7 @@ const qe = ({
|
|
7056
7056
|
"aria-label": r,
|
7057
7057
|
"data-open": d ? "" : void 0,
|
7058
7058
|
"data-focus-inside": u ? "" : void 0,
|
7059
|
-
ref:
|
7059
|
+
ref: Gr([b.setReference, O.ref, l]),
|
7060
7060
|
...z(
|
7061
7061
|
w.getItemProps({
|
7062
7062
|
...c
|
@@ -7078,7 +7078,7 @@ const qe = ({
|
|
7078
7078
|
}, [C, d, S]), /* @__PURE__ */ T(Wo, { id: S, children: [
|
7079
7079
|
M,
|
7080
7080
|
/* @__PURE__ */ i(
|
7081
|
-
|
7081
|
+
zr.Provider,
|
7082
7082
|
{
|
7083
7083
|
value: {
|
7084
7084
|
activeIndex: m,
|
@@ -7087,8 +7087,8 @@ const qe = ({
|
|
7087
7087
|
setHasFocusInside: h,
|
7088
7088
|
isOpen: d
|
7089
7089
|
},
|
7090
|
-
children: /* @__PURE__ */ i(Ko, { elementsRef: y, labelsRef: v, children: d && /* @__PURE__ */ i(
|
7091
|
-
|
7090
|
+
children: /* @__PURE__ */ i(Ko, { elementsRef: y, labelsRef: v, children: d && /* @__PURE__ */ i(Ln, { children: /* @__PURE__ */ i(
|
7091
|
+
Dn,
|
7092
7092
|
{
|
7093
7093
|
context: _,
|
7094
7094
|
modal: !1,
|
@@ -7110,7 +7110,7 @@ const qe = ({
|
|
7110
7110
|
)
|
7111
7111
|
] });
|
7112
7112
|
}
|
7113
|
-
), Xt =
|
7113
|
+
), Xt = Nn((e, t) => /* @__PURE__ */ i(Uo, { children: /* @__PURE__ */ i(Ws, { ...e, ref: t }) }));
|
7114
7114
|
Xt.displayName = "Menu";
|
7115
7115
|
Ws.displayName = "MenuComponent";
|
7116
7116
|
const eh = ({
|
@@ -7208,7 +7208,7 @@ const Re = Y.forwardRef(
|
|
7208
7208
|
...c
|
7209
7209
|
}, l) => {
|
7210
7210
|
let d = "";
|
7211
|
-
const f = Y.useContext(
|
7211
|
+
const f = Y.useContext(zr), u = jn({ label: t ? null : e }), h = Fn(), m = Gr([u.ref, l]);
|
7212
7212
|
if (a && n)
|
7213
7213
|
return /* @__PURE__ */ i(
|
7214
7214
|
"div",
|
@@ -7295,7 +7295,7 @@ const ah = (e) => {
|
|
7295
7295
|
className: e,
|
7296
7296
|
defaultPlacement: t = "top-start"
|
7297
7297
|
}) => {
|
7298
|
-
const { dispatch: r, setChatId: a, setInitialMessages: n } = X(be), { dispatch: s } = X(
|
7298
|
+
const { dispatch: r, setChatId: a, setInitialMessages: n } = X(be), { dispatch: s } = X(oa), { getAccessToken: o, user: c } = Ve(), { data: l, isSuccess: d } = Yt({
|
7299
7299
|
user: c?.username,
|
7300
7300
|
getAccessToken: o
|
7301
7301
|
}), f = (m, g, y) => {
|
@@ -7305,7 +7305,7 @@ const ah = (e) => {
|
|
7305
7305
|
privateChat: y
|
7306
7306
|
}
|
7307
7307
|
}), s({
|
7308
|
-
type:
|
7308
|
+
type: Cn,
|
7309
7309
|
payload: {
|
7310
7310
|
prompt: g
|
7311
7311
|
}
|
@@ -7442,7 +7442,7 @@ const ah = (e) => {
|
|
7442
7442
|
] });
|
7443
7443
|
};
|
7444
7444
|
let pr = null, gr = null;
|
7445
|
-
const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = async () => (gr || (gr = import("./index.
|
7445
|
+
const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = async () => (gr || (gr = import("./index.B6Xsle-o.js").then((e) => e.utilities)), gr), sh = async () => {
|
7446
7446
|
try {
|
7447
7447
|
await Promise.all([Js(), qs()]);
|
7448
7448
|
} catch {
|
@@ -7469,7 +7469,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
|
|
7469
7469
|
const { user: t, getAccessToken: r } = Ve(), {
|
7470
7470
|
dispatch: a,
|
7471
7471
|
state: { tokenUsage: n, provider: s, privateChat: o }
|
7472
|
-
} = X(be), { messages: c, id: l } = Qe(), { state: d } = X(
|
7472
|
+
} = X(be), { messages: c, id: l } = Qe(), { state: d } = X(sa), { refetch: f } = rs({
|
7473
7473
|
enabled: !1,
|
7474
7474
|
user: t?.username || "",
|
7475
7475
|
searchString: d.searchString,
|
@@ -7620,7 +7620,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
|
|
7620
7620
|
);
|
7621
7621
|
}, Mt = [
|
7622
7622
|
{
|
7623
|
-
id:
|
7623
|
+
id: na,
|
7624
7624
|
label: "OpenAI",
|
7625
7625
|
icon: _i
|
7626
7626
|
},
|
@@ -7726,9 +7726,9 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
|
|
7726
7726
|
], yr = [
|
7727
7727
|
...lh,
|
7728
7728
|
...dh
|
7729
|
-
],
|
7729
|
+
], Fr = 400 * 1024, uh = "text/plain", hh = () => p(
|
7730
7730
|
"relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
|
7731
|
-
),
|
7731
|
+
), gn = () => p("bg-surface-darker"), fh = () => p("text-copy-lighter caret-copy-light"), mh = () => p(
|
7732
7732
|
"has-[.av-prompt-editable:focus]:outline",
|
7733
7733
|
"has-[.av-prompt-editable:focus]:outline-2",
|
7734
7734
|
"has-[.av-prompt-editable:focus]:outline-offset-2",
|
@@ -7741,14 +7741,14 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
|
|
7741
7741
|
const t = p(
|
7742
7742
|
_o,
|
7743
7743
|
hh(),
|
7744
|
-
|
7744
|
+
gn(),
|
7745
7745
|
fh(),
|
7746
7746
|
mh(),
|
7747
7747
|
e
|
7748
7748
|
), r = p(
|
7749
7749
|
So,
|
7750
7750
|
ph(),
|
7751
|
-
|
7751
|
+
gn()
|
7752
7752
|
);
|
7753
7753
|
return {
|
7754
7754
|
wrapper: t,
|
@@ -7804,15 +7804,15 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
|
|
7804
7804
|
Vt(Zs(Array.from(e))),
|
7805
7805
|
" /",
|
7806
7806
|
" ",
|
7807
|
-
Vt(
|
7807
|
+
Vt(Fr)
|
7808
7808
|
] })
|
7809
|
-
] }), eo = 24, vh = 500, to = 2, wh = 5, Eh = eo * to,
|
7809
|
+
] }), eo = 24, vh = 500, to = 2, wh = 5, Eh = eo * to, yn = wh * eo, kh = "ready", _h = "streaming", Sh = "error", Th = "submitted", Lt = (e) => {
|
7810
7810
|
e.current && (e.current.style.height = `${Eh}px`);
|
7811
7811
|
}, Ch = () => {
|
7812
7812
|
const { user: e, getAccessToken: t } = Ve(), [r, a] = F(!1), [n, s] = F(null), [o, c] = F(!1), [l, d] = F(!1), {
|
7813
7813
|
dispatch: f,
|
7814
7814
|
state: { reasoning: u, streaming: h, aborted: m, lastResetTimestamp: g, attachments: y }
|
7815
|
-
} = X(be), { state: v, dispatch: w } = X(
|
7815
|
+
} = X(be), { state: v, dispatch: w } = X(oa), { state: C } = X(sa), { refetch: S } = rs({
|
7816
7816
|
enabled: !1,
|
7817
7817
|
user: e?.username || "",
|
7818
7818
|
searchString: C.searchString,
|
@@ -7871,7 +7871,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
|
|
7871
7871
|
...se,
|
7872
7872
|
{
|
7873
7873
|
id: He(),
|
7874
|
-
role:
|
7874
|
+
role: Sr,
|
7875
7875
|
content: To
|
7876
7876
|
}
|
7877
7877
|
]));
|
@@ -7889,8 +7889,8 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
|
|
7889
7889
|
return;
|
7890
7890
|
E.current.style.height = "auto";
|
7891
7891
|
const G = E.current.scrollHeight;
|
7892
|
-
if (G >
|
7893
|
-
E.current.style.height = `${
|
7892
|
+
if (G > yn) {
|
7893
|
+
E.current.style.height = `${yn}px`, E.current.style.overflowY = "scroll";
|
7894
7894
|
return;
|
7895
7895
|
}
|
7896
7896
|
E.current.style.height = `${G}px`, E.current.style.overflowY = "hidden";
|
@@ -7904,9 +7904,9 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
|
|
7904
7904
|
(ne) => ne.name === N.name && ne.size === N.size && ne.lastModified === N.lastModified
|
7905
7905
|
) || ye.push(N) : H = !0;
|
7906
7906
|
}
|
7907
|
-
if (b.current && (b.current.value = ""), Zs(ye) >
|
7907
|
+
if (b.current && (b.current.value = ""), Zs(ye) > Fr) {
|
7908
7908
|
I.current = `Total file size exceeds the limit of ${Vt(
|
7909
|
-
|
7909
|
+
Fr
|
7910
7910
|
)}.`, c(!0);
|
7911
7911
|
return;
|
7912
7912
|
}
|
@@ -7966,7 +7966,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
|
|
7966
7966
|
}, _e = (G) => {
|
7967
7967
|
ge(), J(G);
|
7968
7968
|
};
|
7969
|
-
return
|
7969
|
+
return qr([
|
7970
7970
|
[
|
7971
7971
|
"mod+K",
|
7972
7972
|
() => {
|
@@ -7976,10 +7976,10 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
|
|
7976
7976
|
]), $(() => {
|
7977
7977
|
if (v.prompt !== "") {
|
7978
7978
|
const G = v.prompt.endsWith(":") && !v.prompt.endsWith(": ") ? v.prompt + " " : v.prompt;
|
7979
|
-
G.indexOf(
|
7980
|
-
P(G.replace(
|
7979
|
+
G.indexOf(Ta) !== -1 ? navigator.clipboard.readText().then((ie) => {
|
7980
|
+
P(G.replace(Ta, ie));
|
7981
7981
|
}) : P(G), !Ae() && E.current && E.current.focus(), w({
|
7982
|
-
type:
|
7982
|
+
type: Tn
|
7983
7983
|
});
|
7984
7984
|
}
|
7985
7985
|
}, [v, w, P]), $(() => {
|
@@ -8021,7 +8021,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
|
|
8021
8021
|
}
|
8022
8022
|
),
|
8023
8023
|
/* @__PURE__ */ i("div", { className: A.wrapper, ref: x, children: /* @__PURE__ */ T("form", { onSubmit: We, children: [
|
8024
|
-
/* @__PURE__ */ i("div", { id: V, className: "sr-only", children: Ge() ?
|
8024
|
+
/* @__PURE__ */ i("div", { id: V, className: "sr-only", children: Ge() ? Ca : l ? Ia : xa }),
|
8025
8025
|
/* @__PURE__ */ T("div", { className: "relative", children: [
|
8026
8026
|
/* @__PURE__ */ i(
|
8027
8027
|
"textarea",
|
@@ -8029,7 +8029,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
|
|
8029
8029
|
required: !0,
|
8030
8030
|
rows: to,
|
8031
8031
|
ref: E,
|
8032
|
-
placeholder: Ge() ?
|
8032
|
+
placeholder: Ge() ? Ca : l ? Ia : xa,
|
8033
8033
|
translate: "no",
|
8034
8034
|
onChange: _e,
|
8035
8035
|
value: z,
|
@@ -8085,7 +8085,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
|
|
8085
8085
|
} = X(be), {
|
8086
8086
|
state: { footerHeight: n, footerPosition: s },
|
8087
8087
|
dispatch: o
|
8088
|
-
} = X(
|
8088
|
+
} = X(ia), { messages: c } = Qe(), { height: l } = Fi(), { height: d } = ji(), [f, u] = Gn(), h = he(() => Ae(), []), m = l - d, g = he(() => m > 0 && m < 100 ? Co : xn, [m]);
|
8089
8089
|
return $(() => {
|
8090
8090
|
n !== u.height && o({
|
8091
8091
|
type: Xn,
|
@@ -8172,18 +8172,18 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
|
|
8172
8172
|
}
|
8173
8173
|
);
|
8174
8174
|
}, xh = ot(
|
8175
|
-
() => import("./ProfileEntry.
|
8175
|
+
() => import("./ProfileEntry.Ds8q8KOU.js").then((e) => ({ default: e.Profile }))
|
8176
8176
|
), Rh = ot(
|
8177
|
-
() => import("./SettingsEntry.
|
8177
|
+
() => import("./SettingsEntry.JFli24PX.js").then((e) => ({
|
8178
8178
|
default: e.SettingsPanel
|
8179
8179
|
}))
|
8180
8180
|
), Ah = ot(
|
8181
|
-
() => import("./HistoryEntry.
|
8181
|
+
() => import("./HistoryEntry.o-IldF0j.js").then((e) => ({ default: e.HistoryPanel }))
|
8182
8182
|
), Nh = ot(
|
8183
|
-
() => import("./AboutEntry.
|
8183
|
+
() => import("./AboutEntry.kH6ltak0.js").then((e) => ({ default: e.About }))
|
8184
8184
|
), Oh = ot(
|
8185
|
-
() => import("./UsageEntry.
|
8186
|
-
), $h = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ i(
|
8185
|
+
() => import("./UsageEntry.DuVye9ur.js").then((e) => ({ default: e.Usage }))
|
8186
|
+
), $h = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ i(On, { fallback: /* @__PURE__ */ i("div", {}), children: (() => {
|
8187
8187
|
switch (e) {
|
8188
8188
|
case "profile":
|
8189
8189
|
return /* @__PURE__ */ i(xh, { open: t, onOpenChange: r });
|
@@ -8202,7 +8202,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
|
|
8202
8202
|
isComponent: e = !1
|
8203
8203
|
}) => {
|
8204
8204
|
const { logout: t, getAccessToken: r } = Ve(), [a, n] = F(null), [s, o] = F(!1), [c, l] = F(!1), [d, f] = F(!1), u = W(() => {
|
8205
|
-
d || (import("./ProfileEntry.
|
8205
|
+
d || (import("./ProfileEntry.Ds8q8KOU.js"), import("./SettingsEntry.JFli24PX.js"), import("./HistoryEntry.o-IldF0j.js"), import("./AboutEntry.kH6ltak0.js"), import("./UsageEntry.DuVye9ur.js"), f(!0));
|
8206
8206
|
}, [d]), h = (y) => {
|
8207
8207
|
n(y);
|
8208
8208
|
}, m = () => {
|
@@ -8217,7 +8217,22 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
|
|
8217
8217
|
const y = await r(), v = await Us(y, [As.REASONING]);
|
8218
8218
|
o(v);
|
8219
8219
|
})();
|
8220
|
-
}, [r]),
|
8220
|
+
}, [r]), qr(
|
8221
|
+
[
|
8222
|
+
[
|
8223
|
+
"mod+,",
|
8224
|
+
() => {
|
8225
|
+
_r() && h("settings");
|
8226
|
+
}
|
8227
|
+
]
|
8228
|
+
],
|
8229
|
+
/**
|
8230
|
+
* Removing the default tags that should not trigger the hotkey, e.g.
|
8231
|
+
* input, textarea and select, since we want to trigger the hotkey
|
8232
|
+
* regardless of the focus.
|
8233
|
+
*/
|
8234
|
+
[]
|
8235
|
+
), /* @__PURE__ */ T(ue, { children: [
|
8221
8236
|
/* @__PURE__ */ i(
|
8222
8237
|
qe,
|
8223
8238
|
{
|
@@ -8225,9 +8240,9 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
|
|
8225
8240
|
setShowConfirmation: l,
|
8226
8241
|
action: t,
|
8227
8242
|
customStrings: {
|
8228
|
-
confirmAction:
|
8243
|
+
confirmAction: Ra,
|
8229
8244
|
cancelAction: "Cancel",
|
8230
|
-
title:
|
8245
|
+
title: Ra
|
8231
8246
|
},
|
8232
8247
|
children: /* @__PURE__ */ i("p", { children: "Are you sure you want to log out?" })
|
8233
8248
|
}
|
@@ -8241,7 +8256,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
|
|
8241
8256
|
}
|
8242
8257
|
),
|
8243
8258
|
/* @__PURE__ */ i("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ T(
|
8244
|
-
|
8259
|
+
In,
|
8245
8260
|
{
|
8246
8261
|
alignHorizontal: "space-between",
|
8247
8262
|
alignVertical: "center",
|
@@ -8336,7 +8351,7 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
|
|
8336
8351
|
}
|
8337
8352
|
) })
|
8338
8353
|
] });
|
8339
|
-
}, zt = "av-bubble",
|
8354
|
+
}, zt = "av-bubble", bn = "av-button", fa = "icon", ro = "button", jr = "link", Mh = ({
|
8340
8355
|
type: e,
|
8341
8356
|
size: t,
|
8342
8357
|
labelRight: r,
|
@@ -8347,13 +8362,13 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
|
|
8347
8362
|
const o = "max-h-8 py-0 px-2", c = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
|
8348
8363
|
switch (e) {
|
8349
8364
|
case ro:
|
8350
|
-
case
|
8365
|
+
case jr:
|
8351
8366
|
return p({
|
8352
8367
|
[o]: t === "small",
|
8353
8368
|
[c]: t === "medium",
|
8354
8369
|
[l]: t === "large"
|
8355
8370
|
});
|
8356
|
-
case
|
8371
|
+
case fa:
|
8357
8372
|
return p("flex items-center", {
|
8358
8373
|
"justify-center": n === "center",
|
8359
8374
|
"justify-start": n === "left",
|
@@ -8381,14 +8396,14 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
|
|
8381
8396
|
const n = "text-sm font-medium", s = "text-base font-medium", o = "text-lg font-medium";
|
8382
8397
|
switch (e) {
|
8383
8398
|
case ro:
|
8384
|
-
case
|
8399
|
+
case jr:
|
8385
8400
|
return p({
|
8386
|
-
"text-center": e ===
|
8401
|
+
"text-center": e === jr,
|
8387
8402
|
[n]: t === "small",
|
8388
8403
|
[s]: t === "medium",
|
8389
8404
|
[o]: t === "large"
|
8390
8405
|
});
|
8391
|
-
case
|
8406
|
+
case fa:
|
8392
8407
|
return p({
|
8393
8408
|
[n]: t === "small" && (r || a),
|
8394
8409
|
[s]: t === "medium" && (r || a),
|
@@ -8598,8 +8613,8 @@ const Js = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), qs = as
|
|
8598
8613
|
align: g,
|
8599
8614
|
radius: y,
|
8600
8615
|
animated: v
|
8601
|
-
}) => (h || (h = "primary"), r ? p(
|
8602
|
-
|
8616
|
+
}) => (h || (h = "primary"), r ? p(bn, t) : p(
|
8617
|
+
bn,
|
8603
8618
|
Dh({
|
8604
8619
|
mode: a,
|
8605
8620
|
variant: h,
|
@@ -8695,7 +8710,7 @@ const Dt = {
|
|
8695
8710
|
// px-3 x 2
|
8696
8711
|
large: 16 * 2
|
8697
8712
|
// px-4 x 2
|
8698
|
-
}, Xh = 2, Zh = 300,
|
8713
|
+
}, Xh = 2, Zh = 300, ma = Z.forwardRef(
|
8699
8714
|
({
|
8700
8715
|
children: e,
|
8701
8716
|
disabled: t = !1,
|
@@ -8720,7 +8735,7 @@ const Dt = {
|
|
8720
8735
|
...O
|
8721
8736
|
}, I) => {
|
8722
8737
|
const b = Kh({
|
8723
|
-
type:
|
8738
|
+
type: fa,
|
8724
8739
|
mode: r,
|
8725
8740
|
focusMode: a,
|
8726
8741
|
fullWidth: n,
|
@@ -8768,7 +8783,7 @@ const Dt = {
|
|
8768
8783
|
...O,
|
8769
8784
|
children: /* @__PURE__ */ T("div", { className: x, children: [
|
8770
8785
|
/* @__PURE__ */ i(
|
8771
|
-
|
8786
|
+
vn,
|
8772
8787
|
{
|
8773
8788
|
label: m,
|
8774
8789
|
labelRef: A,
|
@@ -8779,7 +8794,7 @@ const Dt = {
|
|
8779
8794
|
),
|
8780
8795
|
/* @__PURE__ */ i("span", { ref: P, className: _, children: e }),
|
8781
8796
|
/* @__PURE__ */ i(
|
8782
|
-
|
8797
|
+
vn,
|
8783
8798
|
{
|
8784
8799
|
label: h,
|
8785
8800
|
labelRef: E,
|
@@ -8792,7 +8807,7 @@ const Dt = {
|
|
8792
8807
|
}
|
8793
8808
|
);
|
8794
8809
|
}
|
8795
|
-
),
|
8810
|
+
), vn = ({
|
8796
8811
|
labelRef: e,
|
8797
8812
|
labelClass: t,
|
8798
8813
|
label: r,
|
@@ -8807,7 +8822,7 @@ const Dt = {
|
|
8807
8822
|
children: r && /* @__PURE__ */ i("span", { className: a, children: r })
|
8808
8823
|
}
|
8809
8824
|
);
|
8810
|
-
|
8825
|
+
ma.displayName = "ButtonIcon";
|
8811
8826
|
/*!
|
8812
8827
|
@versini/ui-button v6.0.9
|
8813
8828
|
© 2025 gizmette.com
|
@@ -8847,7 +8862,7 @@ const ef = Z.forwardRef(
|
|
8847
8862
|
}
|
8848
8863
|
) : "";
|
8849
8864
|
return /* @__PURE__ */ i("div", { className: o, children: /* @__PURE__ */ i(
|
8850
|
-
|
8865
|
+
ma,
|
8851
8866
|
{
|
8852
8867
|
className: p("justify-center", r),
|
8853
8868
|
ref: s,
|
@@ -9072,7 +9087,7 @@ const af = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
9072
9087
|
s && s
|
9073
9088
|
] }),
|
9074
9089
|
g && /* @__PURE__ */ i("div", { className: m.copyButton, children: /* @__PURE__ */ i(
|
9075
|
-
|
9090
|
+
ma,
|
9076
9091
|
{
|
9077
9092
|
noBorder: !0,
|
9078
9093
|
noBackground: !0,
|
@@ -9100,14 +9115,14 @@ try {
|
|
9100
9115
|
});
|
9101
9116
|
} catch {
|
9102
9117
|
}
|
9103
|
-
const
|
9118
|
+
const wn = "av-spinner", df = ({
|
9104
9119
|
spinnerRef: e,
|
9105
9120
|
mode: t = "system",
|
9106
9121
|
type: r = "circle",
|
9107
9122
|
className: a
|
9108
9123
|
}) => {
|
9109
9124
|
const n = r === "circle" ? p(
|
9110
|
-
|
9125
|
+
wn,
|
9111
9126
|
"h-8 w-8",
|
9112
9127
|
"align-[-0.125em]",
|
9113
9128
|
"border-4",
|
@@ -9119,7 +9134,7 @@ const vn = "av-spinner", df = ({
|
|
9119
9134
|
"text-copy-accent dark:text-copy-dark": t === "alt-system"
|
9120
9135
|
},
|
9121
9136
|
a
|
9122
|
-
) : p(
|
9137
|
+
) : p(wn, a), s = p("av-spinner__dot", {
|
9123
9138
|
"fill-copy-dark": t === "dark",
|
9124
9139
|
"fill-copy-accent": t === "light",
|
9125
9140
|
"fill-copy-dark dark:fill-copy-accent": t === "system",
|
@@ -9147,7 +9162,7 @@ try {
|
|
9147
9162
|
});
|
9148
9163
|
} catch {
|
9149
9164
|
}
|
9150
|
-
const
|
9165
|
+
const En = "av-button", Zt = "icon", pa = "button", Wr = "link", uf = ({
|
9151
9166
|
type: e,
|
9152
9167
|
size: t,
|
9153
9168
|
labelRight: r,
|
@@ -9157,8 +9172,8 @@ const wn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9157
9172
|
}) => {
|
9158
9173
|
const o = "max-h-8 py-0 px-2", c = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
|
9159
9174
|
switch (e) {
|
9160
|
-
case
|
9161
|
-
case
|
9175
|
+
case pa:
|
9176
|
+
case Wr:
|
9162
9177
|
return p({
|
9163
9178
|
[o]: t === "small",
|
9164
9179
|
[c]: t === "medium",
|
@@ -9191,10 +9206,10 @@ const wn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9191
9206
|
}) => {
|
9192
9207
|
const n = "text-sm font-medium", s = "text-base font-medium", o = "text-lg font-medium";
|
9193
9208
|
switch (e) {
|
9194
|
-
case
|
9195
|
-
case
|
9209
|
+
case pa:
|
9210
|
+
case Wr:
|
9196
9211
|
return p({
|
9197
|
-
"text-center": e ===
|
9212
|
+
"text-center": e === Wr,
|
9198
9213
|
[n]: t === "small",
|
9199
9214
|
[s]: t === "medium",
|
9200
9215
|
[o]: t === "large"
|
@@ -9409,8 +9424,8 @@ const wn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9409
9424
|
align: g,
|
9410
9425
|
radius: y,
|
9411
9426
|
animated: v
|
9412
|
-
}) => (h || (h = "primary"), r ? p(
|
9413
|
-
|
9427
|
+
}) => (h || (h = "primary"), r ? p(En, t) : p(
|
9428
|
+
En,
|
9414
9429
|
ff({
|
9415
9430
|
mode: a,
|
9416
9431
|
variant: h,
|
@@ -9443,7 +9458,7 @@ const wn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9443
9458
|
)), kf = (e, t, r) => {
|
9444
9459
|
var a;
|
9445
9460
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e?.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
9446
|
-
},
|
9461
|
+
}, ga = Z.forwardRef((e, t) => {
|
9447
9462
|
const { onClick: r, noInternalClick: a = !1, ...n } = e;
|
9448
9463
|
return /* @__PURE__ */ i(
|
9449
9464
|
"button",
|
@@ -9456,7 +9471,7 @@ const wn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9456
9471
|
}
|
9457
9472
|
);
|
9458
9473
|
});
|
9459
|
-
|
9474
|
+
ga.displayName = "BaseButton";
|
9460
9475
|
const io = Z.forwardRef(
|
9461
9476
|
({
|
9462
9477
|
children: e,
|
@@ -9474,7 +9489,7 @@ const io = Z.forwardRef(
|
|
9474
9489
|
...h
|
9475
9490
|
}, m) => {
|
9476
9491
|
const g = oo({
|
9477
|
-
type:
|
9492
|
+
type: pa,
|
9478
9493
|
mode: r,
|
9479
9494
|
focusMode: a,
|
9480
9495
|
fullWidth: n,
|
@@ -9488,7 +9503,7 @@ const io = Z.forwardRef(
|
|
9488
9503
|
radius: u
|
9489
9504
|
});
|
9490
9505
|
return /* @__PURE__ */ i(
|
9491
|
-
|
9506
|
+
ga,
|
9492
9507
|
{
|
9493
9508
|
ref: m,
|
9494
9509
|
className: g,
|
@@ -9612,7 +9627,7 @@ const Bt = {
|
|
9612
9627
|
]), $(() => () => {
|
9613
9628
|
M.current && clearTimeout(M.current);
|
9614
9629
|
}, []), /* @__PURE__ */ i(
|
9615
|
-
|
9630
|
+
ga,
|
9616
9631
|
{
|
9617
9632
|
ref: q,
|
9618
9633
|
className: b,
|
@@ -9622,7 +9637,7 @@ const Bt = {
|
|
9622
9637
|
...O,
|
9623
9638
|
children: /* @__PURE__ */ T("div", { className: x, children: [
|
9624
9639
|
/* @__PURE__ */ i(
|
9625
|
-
|
9640
|
+
kn,
|
9626
9641
|
{
|
9627
9642
|
label: m,
|
9628
9643
|
labelRef: A,
|
@@ -9633,7 +9648,7 @@ const Bt = {
|
|
9633
9648
|
),
|
9634
9649
|
/* @__PURE__ */ i("span", { ref: P, className: _, children: e }),
|
9635
9650
|
/* @__PURE__ */ i(
|
9636
|
-
|
9651
|
+
kn,
|
9637
9652
|
{
|
9638
9653
|
label: h,
|
9639
9654
|
labelRef: E,
|
@@ -9646,7 +9661,7 @@ const Bt = {
|
|
9646
9661
|
}
|
9647
9662
|
);
|
9648
9663
|
}
|
9649
|
-
),
|
9664
|
+
), kn = ({
|
9650
9665
|
labelRef: e,
|
9651
9666
|
labelClass: t,
|
9652
9667
|
label: r,
|
@@ -9780,10 +9795,10 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
|
|
9780
9795
|
className: "mt-3",
|
9781
9796
|
children: /* @__PURE__ */ i(Of, { mode: "light", focusMode: "light", children: e })
|
9782
9797
|
}
|
9783
|
-
),
|
9798
|
+
), _n = 2, Pf = ot(
|
9784
9799
|
() => import(
|
9785
9800
|
/* webpackChunkName: "LazyMessageAssistant" */
|
9786
|
-
"./ChatBubbleAssistant.
|
9801
|
+
"./ChatBubbleAssistant.D2ZDce3g.js"
|
9787
9802
|
)
|
9788
9803
|
), Mf = Z.memo(
|
9789
9804
|
({
|
@@ -9796,7 +9811,7 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
|
|
9796
9811
|
const {
|
9797
9812
|
state: { restoring: s, streaming: o }
|
9798
9813
|
} = X(be);
|
9799
|
-
return e === ud && t ? /* @__PURE__ */ i($f, { content: t }) : o && (e === Gt || e ===
|
9814
|
+
return e === ud && t ? /* @__PURE__ */ i($f, { content: t }) : o && (e === Gt || e === Sr) && (!t || t && t.length < _n) ? /* @__PURE__ */ i(so, { tail: !0, children: /* @__PURE__ */ i(df, { type: "dots" }) }) : (e === Gt || e === Sr) && t && t.length >= _n ? /* @__PURE__ */ i(On, { fallback: /* @__PURE__ */ i("span", {}), children: /* @__PURE__ */ i(
|
9800
9815
|
Pf,
|
9801
9816
|
{
|
9802
9817
|
role: e,
|
@@ -9838,7 +9853,7 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
|
|
9838
9853
|
}, Df = () => {
|
9839
9854
|
const { isAuthenticated: e } = Ve(), { ref: t, inViewport: r } = Di(), a = R(null), n = R(null), {
|
9840
9855
|
state: { footerPosition: s, footerHeight: o, footerOffset: c }
|
9841
|
-
} = X(
|
9856
|
+
} = X(ia), {
|
9842
9857
|
state: { loading: l }
|
9843
9858
|
} = X(be), { messages: d } = Qe(), f = R(0), u = xo({
|
9844
9859
|
isAuthenticated: e,
|
@@ -9853,7 +9868,7 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
|
|
9853
9868
|
return $(() => {
|
9854
9869
|
l && g();
|
9855
9870
|
}, [l, g]), $(() => {
|
9856
|
-
f.current = s === Je ? o + c +
|
9871
|
+
f.current = s === Je ? o + c + Rn + Ro : 0;
|
9857
9872
|
}, [s, o, c]), /* @__PURE__ */ T(ue, { children: [
|
9858
9873
|
/* @__PURE__ */ T("div", { className: u, ref: a, children: [
|
9859
9874
|
/* @__PURE__ */ i(Ao, { className: m }),
|
@@ -9875,7 +9890,7 @@ function lo({
|
|
9875
9890
|
isComponent: e = !1,
|
9876
9891
|
headerHeight: t = 0
|
9877
9892
|
}) {
|
9878
|
-
const { user: r, getAccessToken: a } = Ve(), [n, s] = F(`${
|
9893
|
+
const { user: r, getAccessToken: a } = Ve(), [n, s] = F(`${Aa}px`), [o, c] = Gn(), [l, d] = F(He()), [f, u] = F([]), [h] = jt({
|
9879
9894
|
key: Ft + Po,
|
9880
9895
|
initialValue: ""
|
9881
9896
|
}), [m] = jt({
|
@@ -9886,7 +9901,7 @@ function lo({
|
|
9886
9901
|
return {
|
9887
9902
|
footerPosition: k ? Je : Wt,
|
9888
9903
|
footerHeight: 0,
|
9889
|
-
footerOffset: k ?
|
9904
|
+
footerOffset: k ? xn : 0
|
9890
9905
|
};
|
9891
9906
|
}, []), [y, v] = St(Sc, g), [w, C] = St(Cc, {
|
9892
9907
|
searchString: h,
|
@@ -9925,19 +9940,19 @@ function lo({
|
|
9925
9940
|
if (y.footerPosition === "FOOTER_BOTTOM") {
|
9926
9941
|
const k = `calc(${c.height}px + 20px)`;
|
9927
9942
|
s(
|
9928
|
-
`calc(100svh - ${t}px - ${k} - ${y.footerHeight}px - ${y.footerOffset}px - ${
|
9943
|
+
`calc(100svh - ${t}px - ${k} - ${y.footerHeight}px - ${y.footerOffset}px - ${Rn}px)`
|
9929
9944
|
);
|
9930
9945
|
} else
|
9931
|
-
s(`${
|
9946
|
+
s(`${Aa}px`);
|
9932
9947
|
}, [y, c, t]), /* @__PURE__ */ i(
|
9933
|
-
|
9948
|
+
sa.Provider,
|
9934
9949
|
{
|
9935
9950
|
value: {
|
9936
9951
|
state: w,
|
9937
9952
|
dispatch: C
|
9938
9953
|
},
|
9939
|
-
children: /* @__PURE__ */ i(
|
9940
|
-
|
9954
|
+
children: /* @__PURE__ */ i(ia.Provider, { value: { state: y, dispatch: v }, children: /* @__PURE__ */ i(
|
9955
|
+
oa.Provider,
|
9941
9956
|
{
|
9942
9957
|
value: { state: S, dispatch: O },
|
9943
9958
|
children: /* @__PURE__ */ i(
|
@@ -9954,7 +9969,7 @@ function lo({
|
|
9954
9969
|
{
|
9955
9970
|
value: {
|
9956
9971
|
id: l,
|
9957
|
-
api: `${
|
9972
|
+
api: `${Zr}/api/generate`,
|
9958
9973
|
initialMessages: f,
|
9959
9974
|
experimental_throttle: 300,
|
9960
9975
|
sendExtraMessageFields: !1,
|
@@ -9969,8 +9984,8 @@ function lo({
|
|
9969
9984
|
},
|
9970
9985
|
children: [
|
9971
9986
|
/* @__PURE__ */ T("div", { className: No, children: [
|
9972
|
-
/* @__PURE__ */ i(
|
9973
|
-
/* @__PURE__ */ i(
|
9987
|
+
/* @__PURE__ */ i(Va, { containerId: "toggle-save" }),
|
9988
|
+
/* @__PURE__ */ i(Va, { containerId: "toggle-provider" })
|
9974
9989
|
] }),
|
9975
9990
|
/* @__PURE__ */ i(
|
9976
9991
|
Oi,
|
@@ -9980,7 +9995,7 @@ function lo({
|
|
9980
9995
|
noMargin: !0,
|
9981
9996
|
noPadding: !0,
|
9982
9997
|
noBorder: !0,
|
9983
|
-
className:
|
9998
|
+
className: Na({
|
9984
9999
|
extraClass: "mt-5"
|
9985
10000
|
}),
|
9986
10001
|
children: /* @__PURE__ */ i(Ph, { isComponent: e })
|
@@ -9989,7 +10004,7 @@ function lo({
|
|
9989
10004
|
/* @__PURE__ */ i(
|
9990
10005
|
Oo,
|
9991
10006
|
{
|
9992
|
-
className:
|
10007
|
+
className: Na({
|
9993
10008
|
extraClass: "transition-all ease-in-out duration-500"
|
9994
10009
|
}),
|
9995
10010
|
noMargin: !0,
|
@@ -10025,8 +10040,8 @@ export {
|
|
10025
10040
|
Wf as Fe,
|
10026
10041
|
Kf as Ge,
|
10027
10042
|
Ff as He,
|
10028
|
-
|
10029
|
-
|
10043
|
+
sa as HistoryContext,
|
10044
|
+
Va as LazyToastContainerWrapper,
|
10030
10045
|
lf as Me,
|
10031
10046
|
Rs as O,
|
10032
10047
|
so as Oe,
|
@@ -10042,7 +10057,7 @@ export {
|
|
10042
10057
|
zi as i,
|
10043
10058
|
Zf as j,
|
10044
10059
|
ts as mutateCall,
|
10045
|
-
|
10060
|
+
na as n,
|
10046
10061
|
em as nt,
|
10047
10062
|
xs as o,
|
10048
10063
|
_i as p,
|