@versini/sassysaint 8.18.3 → 8.20.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/{2ZEF3XTO.B8199u5X.js → 2ZEF3XTO.DobSV-4V.js} +1 -1
- package/dist/chunks/{AboutChangelog.DmasmPOR.js → AboutChangelog.0vUNkYPF.js} +2 -2
- package/dist/chunks/{App.BIobhMvu.js → App.BOWLzWG_.js} +380 -357
- package/dist/chunks/{Chart.B2Fjll0b.js → Chart.B1XXC8JD.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.CpcYygtw.js → ChatBubbleAssistant.1R9UIrP8.js} +3 -3
- package/dist/chunks/{index.BoS6HL4i.js → index.7gXorH-1.js} +2 -2
- package/dist/chunks/{index.I0e9wDKl.js → index.C9U-Fttf.js} +3 -3
- package/dist/chunks/{index.rHKiORnk.js → index.D3Yrj60b.js} +1 -1
- package/dist/chunks/{index.D2L6rLXw.js → index.DMyQxWuU.js} +1 -1
- package/dist/chunks/{index.L2NiRf1n.js → index.DtCto41L.js} +1 -1
- package/dist/chunks/{index.BzkOvGYl.js → index.oy8h5VB0.js} +2 -2
- package/dist/chunks/{useMarkdown.CehRPmVe.js → useMarkdown.JS55FUxk.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
@@ -4,7 +4,7 @@ var ln = (e) => {
|
|
4
4
|
var ha = (e, t, r) => t.has(e) || ln("Cannot " + r);
|
5
5
|
var O = (e, t, r) => (ha(e, t, "read from private field"), r ? r.call(e) : t.get(e)), ye = (e, t, r) => t.has(e) ? ln("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), ce = (e, t, r, a) => (ha(e, t, "write to private field"), a ? a.call(e, r) : t.set(e, r), r), he = (e, t, r) => (ha(e, t, "access private method"), r);
|
6
6
|
import { jsx as c, jsxs as A, Fragment as fe } from "react/jsx-runtime";
|
7
|
-
import { Subscribable as Nl, pendingThenable as cn, resolveEnabled as
|
7
|
+
import { Subscribable as Nl, pendingThenable as cn, resolveEnabled as Ge, shallowEqualObjects as La, resolveStaleTime as Br, noop as Pa, isServer as Da, isValidTimeout as dn, focusManager as Al, fetchState as Rl, replaceData as un, notifyManager as ks, timeUntilStale as $l, shouldThrowError as Ol, useQueryClient as Ll, I as ne, ACTION_SORT as Ma, ACTION_SEARCH as Es, ACTION_RESET_PROMPT as Ts, ACTION_TOGGLE_PROMPT as xs, le as Ne, DEFAULT_ICON_ACTION_SIZE as Qe, n as Pe, isElectron as Ba, isProbablyiPhone as za, L as fr, j as qe, C as xt, LOCAL_STORAGE_PREFIX as Ct, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Pl, LOCAL_STORAGE_REASONING_DISCLOSURE as Dl, TOAST_CHAT_SAVED as Ml, toastOptions as Wr, TOAST_PROVIDER_CHANGED as Ss, PROMPT_CLASSNAME as Bl, PROMPT_EDITABLE_AREA_CLASSNAME as zl, ERROR_MESSAGE as Hl, ROLE_INTERNAL as Ha, CLIPBOARD_PROMPT as fn, isProbablyMobile as ot, INPUT_PLACEHOLDER_TEXT as hn, FOOTER_DISCLAIMER as Vl, S as Me, renderDataAsList as jr, CARDS as de, pluralize as rr, ABOUT_TITLE as Ul, INFINITE_SCROLL_LIMIT as mn, INFINITE_SCROLL_THRESHOLD as pn, LOCAL_STORAGE_SORT as Cs, APP_CLASSNAME as Is, TOAST_CHAT_DELETED as Fl, LOCAL_STORAGE_SEARCH as Ns, HISTORY_TITLE as Wl, fe as jl, debounce as Gl, l as gn, PROFILE_TITLE as Kl, LOCAL_STORAGE_CHAT_DETAILS as Jl, SETTINGS_TITLE as ql, APP_NAME as Yl, PROMPTS_DESCRIPTION as Ql, getCurrentGeoLocation as Xl, USAGE_TITLE as Zl, LOG_OUT as yn, getMessageContaintWrapperClass as ec, UI_FOOTER_BUFFER as As, UI_BUTTON_SCROLL_BUFFER as tc, Logo as rc, UI_DEFAULT_MAIN_HEIGHT as bn, getMainPaddingClass as vn, r as ac } from "./index.7gXorH-1.js";
|
8
8
|
import * as oe from "react";
|
9
9
|
import W, { useEffect as B, useRef as R, useState as H, useCallback as Q, useSyncExternalStore as Rs, useMemo as De, useId as ea, useContext as re, useLayoutEffect as we, isValidElement as ta, cloneElement as xo, createContext as $s, useDebugValue as oc, forwardRef as Os, Suspense as So, lazy as Co, Fragment as nc, useReducer as Zt } from "react";
|
10
10
|
import g from "clsx";
|
@@ -62,7 +62,7 @@ var Ie, X, dr, ke, kt, zt, it, lt, ur, Ht, Vt, Et, Tt, ct, Ut, te, er, Va, Ua, F
|
|
62
62
|
}
|
63
63
|
setOptions(t) {
|
64
64
|
const r = this.options, a = O(this, X);
|
65
|
-
if (this.options = O(this, Ie).defaultQueryOptions(t), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof
|
65
|
+
if (this.options = O(this, Ie).defaultQueryOptions(t), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof Ge(this.options.enabled, O(this, X)) != "boolean")
|
66
66
|
throw new Error(
|
67
67
|
"Expected enabled to be a boolean or a callback that returns a boolean"
|
68
68
|
);
|
@@ -77,9 +77,9 @@ var Ie, X, dr, ke, kt, zt, it, lt, ur, Ht, Vt, Et, Tt, ct, Ut, te, er, Va, Ua, F
|
|
77
77
|
a,
|
78
78
|
this.options,
|
79
79
|
r
|
80
|
-
) && he(this, te, er).call(this), this.updateResult(), o && (O(this, X) !== a ||
|
80
|
+
) && he(this, te, er).call(this), this.updateResult(), o && (O(this, X) !== a || Ge(this.options.enabled, O(this, X)) !== Ge(r.enabled, O(this, X)) || Br(this.options.staleTime, O(this, X)) !== Br(r.staleTime, O(this, X))) && he(this, te, Va).call(this);
|
81
81
|
const n = he(this, te, Ua).call(this);
|
82
|
-
o && (O(this, X) !== a ||
|
82
|
+
o && (O(this, X) !== a || Ge(this.options.enabled, O(this, X)) !== Ge(r.enabled, O(this, X)) || n !== O(this, ct)) && he(this, te, Fa).call(this, n);
|
83
83
|
}
|
84
84
|
getOptimisticResult(t) {
|
85
85
|
const r = O(this, Ie).getQueryCache().build(O(this, Ie), t), a = this.createResult(r, t);
|
@@ -115,7 +115,7 @@ var Ie, X, dr, ke, kt, zt, it, lt, ur, Ht, Vt, Et, Tt, ct, Ut, te, er, Va, Ua, F
|
|
115
115
|
}).then(() => (this.updateResult(), O(this, ke)));
|
116
116
|
}
|
117
117
|
createResult(t, r) {
|
118
|
-
var
|
118
|
+
var S;
|
119
119
|
const a = O(this, X), o = this.options, n = O(this, ke), s = O(this, kt), i = O(this, zt), d = t !== a ? t.state : O(this, dr), { state: f } = t;
|
120
120
|
let u = { ...f }, h = !1, m;
|
121
121
|
if (r._optimisticResults) {
|
@@ -131,7 +131,7 @@ var Ie, X, dr, ke, kt, zt, it, lt, ur, Ht, Vt, Et, Tt, ct, Ut, te, er, Va, Ua, F
|
|
131
131
|
if (r.placeholderData !== void 0 && m === void 0 && b === "pending") {
|
132
132
|
let x;
|
133
133
|
n != null && n.isPlaceholderData && r.placeholderData === (i == null ? void 0 : i.placeholderData) ? (x = n.data, w = !0) : x = typeof r.placeholderData == "function" ? r.placeholderData(
|
134
|
-
(
|
134
|
+
(S = O(this, Vt)) == null ? void 0 : S.state.data,
|
135
135
|
O(this, Vt)
|
136
136
|
) : r.placeholderData, x !== void 0 && (b = "success", m = un(
|
137
137
|
n == null ? void 0 : n.data,
|
@@ -149,12 +149,12 @@ var Ie, X, dr, ke, kt, zt, it, lt, ur, Ht, Vt, Et, Tt, ct, Ut, te, er, Va, Ua, F
|
|
149
149
|
ce(this, lt, x);
|
150
150
|
}
|
151
151
|
O(this, lt) && (p = O(this, lt), m = O(this, Ht), y = Date.now(), b = "error");
|
152
|
-
const _ = u.fetchStatus === "fetching", k = b === "pending",
|
152
|
+
const _ = u.fetchStatus === "fetching", k = b === "pending", C = b === "error", I = k && _, v = m !== void 0, T = {
|
153
153
|
status: b,
|
154
154
|
fetchStatus: u.fetchStatus,
|
155
155
|
isPending: k,
|
156
156
|
isSuccess: b === "success",
|
157
|
-
isError:
|
157
|
+
isError: C,
|
158
158
|
isInitialLoading: I,
|
159
159
|
isLoading: I,
|
160
160
|
data: m,
|
@@ -168,10 +168,10 @@ var Ie, X, dr, ke, kt, zt, it, lt, ur, Ht, Vt, Et, Tt, ct, Ut, te, er, Va, Ua, F
|
|
168
168
|
isFetchedAfterMount: u.dataUpdateCount > d.dataUpdateCount || u.errorUpdateCount > d.errorUpdateCount,
|
169
169
|
isFetching: _,
|
170
170
|
isRefetching: _ && !k,
|
171
|
-
isLoadingError:
|
171
|
+
isLoadingError: C && !v,
|
172
172
|
isPaused: u.fetchStatus === "paused",
|
173
173
|
isPlaceholderData: h,
|
174
|
-
isRefetchError:
|
174
|
+
isRefetchError: C && v,
|
175
175
|
isStale: No(t, r),
|
176
176
|
refetch: this.refetch,
|
177
177
|
promise: O(this, it)
|
@@ -243,7 +243,7 @@ var Ie, X, dr, ke, kt, zt, it, lt, ur, Ht, Vt, Et, Tt, ct, Ut, te, er, Va, Ua, F
|
|
243
243
|
}, Ua = function() {
|
244
244
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(O(this, X)) : this.options.refetchInterval) ?? !1;
|
245
245
|
}, Fa = function(t) {
|
246
|
-
he(this, te, Ga).call(this), ce(this, ct, t), !(Da ||
|
246
|
+
he(this, te, Ga).call(this), ce(this, ct, t), !(Da || Ge(this.options.enabled, O(this, X)) === !1 || !dn(O(this, ct)) || O(this, ct) === 0) && ce(this, Tt, setInterval(() => {
|
247
247
|
(this.options.refetchIntervalInBackground || Al.isFocused()) && he(this, te, er).call(this);
|
248
248
|
}, O(this, ct)));
|
249
249
|
}, Wa = function() {
|
@@ -269,23 +269,23 @@ var Ie, X, dr, ke, kt, zt, it, lt, ur, Ht, Vt, Et, Tt, ct, Ut, te, er, Va, Ua, F
|
|
269
269
|
});
|
270
270
|
}, _s);
|
271
271
|
function bc(e, t) {
|
272
|
-
return
|
272
|
+
return Ge(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
|
273
273
|
}
|
274
274
|
function wn(e, t) {
|
275
275
|
return bc(e, t) || e.state.data !== void 0 && Ja(e, t, t.refetchOnMount);
|
276
276
|
}
|
277
277
|
function Ja(e, t, r) {
|
278
|
-
if (
|
278
|
+
if (Ge(t.enabled, e) !== !1) {
|
279
279
|
const a = typeof r == "function" ? r(e) : r;
|
280
280
|
return a === "always" || a !== !1 && No(e, t);
|
281
281
|
}
|
282
282
|
return !1;
|
283
283
|
}
|
284
284
|
function _n(e, t, r, a) {
|
285
|
-
return (e !== t ||
|
285
|
+
return (e !== t || Ge(a.enabled, e) === !1) && (!r.suspense || e.state.status !== "error") && No(e, r);
|
286
286
|
}
|
287
287
|
function No(e, t) {
|
288
|
-
return
|
288
|
+
return Ge(t.enabled, e) !== !1 && e.isStaleByTime(Br(t.staleTime, e));
|
289
289
|
}
|
290
290
|
function vc(e, t) {
|
291
291
|
return !La(e.getCurrentResult(), t);
|
@@ -1213,7 +1213,7 @@ function fd() {
|
|
1213
1213
|
window.visualViewport && (window.visualViewport.removeEventListener("resize", r), window.visualViewport.removeEventListener("orientationchange", r));
|
1214
1214
|
}), [r]), e;
|
1215
1215
|
}
|
1216
|
-
const ra = "thead", Ao = "tfoot", Dt = "tbody",
|
1216
|
+
const ra = "thead", Ao = "tfoot", Dt = "tbody", Ke = {
|
1217
1217
|
ASC: "asc",
|
1218
1218
|
DESC: "desc"
|
1219
1219
|
}, hd = ({
|
@@ -1709,7 +1709,7 @@ const Tr = {
|
|
1709
1709
|
variant: w = "primary",
|
1710
1710
|
iconClassName: _,
|
1711
1711
|
animated: k = !1,
|
1712
|
-
...
|
1712
|
+
...C
|
1713
1713
|
}, I) => {
|
1714
1714
|
const v = Ad({
|
1715
1715
|
type: Ro,
|
@@ -1728,7 +1728,7 @@ const Tr = {
|
|
1728
1728
|
radius: b,
|
1729
1729
|
variant: w,
|
1730
1730
|
animated: k
|
1731
|
-
}), E = Id({ mode: r, raw: i, iconClassName: _ }), T = Nd({ animated: k }),
|
1731
|
+
}), E = Id({ mode: r, raw: i, iconClassName: _ }), T = Nd({ animated: k }), S = "flex items-center justify-center relative w-full h-full overflow-hidden", [x, $] = ma(), [N, P] = ma(), [M, V] = ma(), F = R(0), L = R(null), D = R(null), J = Od([I, L]);
|
1732
1732
|
return we(() => {
|
1733
1733
|
M && M.current && k && (F.current = V.width + Pd[u] + (l ? 0 : Dd), L.current && !L.current.style.width && (L.current.style.width = `${Tr[u]}px`));
|
1734
1734
|
}, [V, M, u, l, k]), we(() => {
|
@@ -1757,8 +1757,8 @@ const Tr = {
|
|
1757
1757
|
disabled: t,
|
1758
1758
|
type: s,
|
1759
1759
|
"aria-label": d || f,
|
1760
|
-
...
|
1761
|
-
children: /* @__PURE__ */ A("div", { className:
|
1760
|
+
...C,
|
1761
|
+
children: /* @__PURE__ */ A("div", { className: S, children: [
|
1762
1762
|
/* @__PURE__ */ c(
|
1763
1763
|
Cn,
|
1764
1764
|
{
|
@@ -2108,7 +2108,7 @@ const Jt = W.createContext({
|
|
2108
2108
|
component: o,
|
2109
2109
|
className: a,
|
2110
2110
|
role: "columnheader",
|
2111
|
-
"aria-sort": l ===
|
2111
|
+
"aria-sort": l === Ke.ASC && d === f ? "ascending" : l === Ke.DESC && d === f ? "descending" : "other",
|
2112
2112
|
...u,
|
2113
2113
|
children: /* @__PURE__ */ c(
|
2114
2114
|
ti,
|
@@ -2122,7 +2122,7 @@ const Jt = W.createContext({
|
|
2122
2122
|
mode: s,
|
2123
2123
|
fullWidth: !0,
|
2124
2124
|
labelRight: t,
|
2125
|
-
children: l ===
|
2125
|
+
children: l === Ke.ASC && d === f ? /* @__PURE__ */ c(Hd, { className: "size-4", monotone: !0 }) : l === Ke.DESC && d === f ? /* @__PURE__ */ c(zd, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ c(Bd, { className: "size-4", monotone: !0 })
|
2126
2126
|
}
|
2127
2127
|
)
|
2128
2128
|
}
|
@@ -2175,7 +2175,7 @@ function Yd(e) {
|
|
2175
2175
|
}
|
2176
2176
|
Yd(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
2177
2177
|
`);
|
2178
|
-
var hr = (e) => typeof e == "number" && !isNaN(e), Nt = (e) => typeof e == "string",
|
2178
|
+
var hr = (e) => typeof e == "number" && !isNaN(e), Nt = (e) => typeof e == "string", nt = (e) => typeof e == "function", Qd = (e) => Nt(e) || hr(e), Ya = (e) => Nt(e) || nt(e) ? e : null, Xd = (e, t) => e === !1 || hr(e) && e > 0 ? e : t, Qa = (e) => ta(e) || Nt(e) || nt(e) || hr(e);
|
2179
2179
|
function Zd(e, t, r = 300) {
|
2180
2180
|
let { scrollHeight: a, style: o } = e;
|
2181
2181
|
requestAnimationFrame(() => {
|
@@ -2204,7 +2204,7 @@ function Nn(e, t) {
|
|
2204
2204
|
return { content: ai(e.content, e.props), containerId: e.props.containerId, id: e.props.toastId, theme: e.props.theme, type: e.props.type, data: e.props.data || {}, isLoading: e.props.isLoading, icon: e.props.icon, reason: e.removalReason, status: t };
|
2205
2205
|
}
|
2206
2206
|
function ai(e, t, r = !1) {
|
2207
|
-
return ta(e) && !Nt(e.type) ? xo(e, { closeToast: t.closeToast, toastProps: t, data: t.data, isPaused: r }) :
|
2207
|
+
return ta(e) && !Nt(e.type) ? xo(e, { closeToast: t.closeToast, toastProps: t, data: t.data, isPaused: r }) : nt(e) ? e({ closeToast: t.closeToast, toastProps: t, data: t.data, isPaused: r }) : e;
|
2208
2208
|
}
|
2209
2209
|
function eu({ closeToast: e, theme: t, ariaLabel: r = "close" }) {
|
2210
2210
|
return W.createElement("button", { className: `Toastify__close-button Toastify__close-button--${t}`, type: "button", onClick: (a) => {
|
@@ -2214,7 +2214,7 @@ function eu({ closeToast: e, theme: t, ariaLabel: r = "close" }) {
|
|
2214
2214
|
function tu({ delay: e, isRunning: t, closeToast: r, type: a = "default", hide: o, className: n, controlledProgress: s, progress: i, rtl: l, isIn: d, theme: f }) {
|
2215
2215
|
let u = o || s && i === 0, h = { animationDuration: `${e}ms`, animationPlayState: t ? "running" : "paused" };
|
2216
2216
|
s && (h.transform = `scaleX(${i})`);
|
2217
|
-
let m = g("Toastify__progress-bar", s ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${f}`, `Toastify__progress-bar--${a}`, { "Toastify__progress-bar--rtl": l }), p =
|
2217
|
+
let m = g("Toastify__progress-bar", s ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${f}`, `Toastify__progress-bar--${a}`, { "Toastify__progress-bar--rtl": l }), p = nt(n) ? n({ rtl: l, type: a, defaultClassName: m }) : g(m, n), y = { [s && i >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: s && i < 1 ? null : () => {
|
2218
2218
|
d && r();
|
2219
2219
|
} };
|
2220
2220
|
return W.createElement("div", { className: "Toastify__progress-bar--wrp", "data-hidden": u }, W.createElement("div", { className: `Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${a}` }), W.createElement("div", { role: "progressbar", "aria-hidden": u ? "true" : "false", "aria-label": "notification timer", className: p, style: h, ...y }));
|
@@ -2223,17 +2223,17 @@ var ru = 1, oi = () => `${ru++}`;
|
|
2223
2223
|
function au(e, t, r) {
|
2224
2224
|
let a = 1, o = 0, n = [], s = [], i = t, l = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Set(), f = (_) => (d.add(_), () => d.delete(_)), u = () => {
|
2225
2225
|
s = Array.from(l.values()), d.forEach((_) => _());
|
2226
|
-
}, h = ({ containerId: _, toastId: k, updateId:
|
2227
|
-
let I = _ ? _ !== e : e !== 1, v = l.has(k) &&
|
2226
|
+
}, h = ({ containerId: _, toastId: k, updateId: C }) => {
|
2227
|
+
let I = _ ? _ !== e : e !== 1, v = l.has(k) && C == null;
|
2228
2228
|
return I || v;
|
2229
2229
|
}, m = (_, k) => {
|
2230
|
-
l.forEach((
|
2230
|
+
l.forEach((C) => {
|
2231
2231
|
var I;
|
2232
|
-
(k == null || k ===
|
2232
|
+
(k == null || k === C.props.toastId) && ((I = C.toggle) == null || I.call(C, _));
|
2233
2233
|
});
|
2234
2234
|
}, p = (_) => {
|
2235
|
-
var k,
|
2236
|
-
(
|
2235
|
+
var k, C;
|
2236
|
+
(C = (k = _.props) == null ? void 0 : k.onClose) == null || C.call(k, _.removalReason), _.isActive = !1;
|
2237
2237
|
}, y = (_) => {
|
2238
2238
|
if (_ == null) l.forEach(p);
|
2239
2239
|
else {
|
@@ -2244,20 +2244,20 @@ function au(e, t, r) {
|
|
2244
2244
|
}, b = () => {
|
2245
2245
|
o -= n.length, n = [];
|
2246
2246
|
}, w = (_) => {
|
2247
|
-
var k,
|
2247
|
+
var k, C;
|
2248
2248
|
let { toastId: I, updateId: v } = _.props, E = v == null;
|
2249
|
-
_.staleId && l.delete(_.staleId), _.isActive = !0, l.set(I, _), u(), r(Nn(_, E ? "added" : "updated")), E && ((
|
2249
|
+
_.staleId && l.delete(_.staleId), _.isActive = !0, l.set(I, _), u(), r(Nn(_, E ? "added" : "updated")), E && ((C = (k = _.props).onOpen) == null || C.call(k));
|
2250
2250
|
};
|
2251
2251
|
return { id: e, props: i, observe: f, toggle: m, removeToast: y, toasts: l, clearQueue: b, buildToast: (_, k) => {
|
2252
2252
|
if (h(k)) return;
|
2253
|
-
let { toastId:
|
2254
|
-
|
2255
|
-
let x = { ...i, style: i.toastStyle, key: a++, ...Object.fromEntries(Object.entries(k).filter(([N, P]) => P != null)), toastId:
|
2256
|
-
l.get(
|
2253
|
+
let { toastId: C, updateId: I, data: v, staleId: E, delay: T } = k, S = I == null;
|
2254
|
+
S && o++;
|
2255
|
+
let x = { ...i, style: i.toastStyle, key: a++, ...Object.fromEntries(Object.entries(k).filter(([N, P]) => P != null)), toastId: C, updateId: I, data: v, isIn: !1, className: Ya(k.className || i.toastClassName), progressClassName: Ya(k.progressClassName || i.progressClassName), autoClose: k.isLoading ? !1 : Xd(k.autoClose, i.autoClose), closeToast(N) {
|
2256
|
+
l.get(C).removalReason = N, y(C);
|
2257
2257
|
}, deleteToast() {
|
2258
|
-
let N = l.get(
|
2258
|
+
let N = l.get(C);
|
2259
2259
|
if (N != null) {
|
2260
|
-
if (r(Nn(N, "removed")), l.delete(
|
2260
|
+
if (r(Nn(N, "removed")), l.delete(C), o--, o < 0 && (o = 0), n.length > 0) {
|
2261
2261
|
w(n.shift());
|
2262
2262
|
return;
|
2263
2263
|
}
|
@@ -2266,14 +2266,14 @@ function au(e, t, r) {
|
|
2266
2266
|
} };
|
2267
2267
|
x.closeButton = i.closeButton, k.closeButton === !1 || Qa(k.closeButton) ? x.closeButton = k.closeButton : k.closeButton === !0 && (x.closeButton = Qa(i.closeButton) ? i.closeButton : !0);
|
2268
2268
|
let $ = { content: _, props: x, staleId: E };
|
2269
|
-
i.limit && i.limit > 0 && o > i.limit &&
|
2269
|
+
i.limit && i.limit > 0 && o > i.limit && S ? n.push($) : hr(T) ? setTimeout(() => {
|
2270
2270
|
w($);
|
2271
2271
|
}, T) : w($);
|
2272
2272
|
}, setProps(_) {
|
2273
2273
|
i = _;
|
2274
2274
|
}, setToggle: (_, k) => {
|
2275
|
-
let
|
2276
|
-
|
2275
|
+
let C = l.get(_);
|
2276
|
+
C && (C.toggle = k);
|
2277
2277
|
}, isToastActive: (_) => {
|
2278
2278
|
var k;
|
2279
2279
|
return (k = l.get(_)) == null ? void 0 : k.isActive;
|
@@ -2377,7 +2377,7 @@ function hu(e, { pending: t, error: r, success: a }, o) {
|
|
2377
2377
|
}
|
2378
2378
|
let h = { type: d, ...s, ...o, data: u }, m = Nt(f) ? { render: f } : f;
|
2379
2379
|
return n ? ee.update(n, { ...h, ...m }) : ee(m.render, { ...h, ...m }), u;
|
2380
|
-
}, l =
|
2380
|
+
}, l = nt(e) ? e() : e;
|
2381
2381
|
return l.then((d) => i("success", a, d)).catch((d) => i("error", r, d)), l;
|
2382
2382
|
}
|
2383
2383
|
ee.promise = hu;
|
@@ -2444,8 +2444,8 @@ function gu(e) {
|
|
2444
2444
|
}
|
2445
2445
|
}
|
2446
2446
|
function y(E) {
|
2447
|
-
let { top: T, bottom:
|
2448
|
-
E.nativeEvent.type !== "touchend" && e.pauseOnHover && E.clientX >= x && E.clientX <= $ && E.clientY >= T && E.clientY <=
|
2447
|
+
let { top: T, bottom: S, left: x, right: $ } = n.current.getBoundingClientRect();
|
2448
|
+
E.nativeEvent.type !== "touchend" && e.pauseOnHover && E.clientX >= x && E.clientX <= $ && E.clientY >= T && E.clientY <= S ? w() : b();
|
2449
2449
|
}
|
2450
2450
|
function b() {
|
2451
2451
|
r(!0);
|
@@ -2454,17 +2454,17 @@ function gu(e) {
|
|
2454
2454
|
r(!1);
|
2455
2455
|
}
|
2456
2456
|
function _() {
|
2457
|
-
s.didMove = !1, document.addEventListener("pointermove",
|
2457
|
+
s.didMove = !1, document.addEventListener("pointermove", C), document.addEventListener("pointerup", I);
|
2458
2458
|
}
|
2459
2459
|
function k() {
|
2460
|
-
document.removeEventListener("pointermove",
|
2460
|
+
document.removeEventListener("pointermove", C), document.removeEventListener("pointerup", I);
|
2461
2461
|
}
|
2462
|
-
function
|
2462
|
+
function C(E) {
|
2463
2463
|
let T = n.current;
|
2464
2464
|
if (s.canDrag && T) {
|
2465
2465
|
s.didMove = !0, t && w(), e.draggableDirection === "x" ? s.delta = E.clientX - s.start : s.delta = E.clientY - s.start, s.start !== E.clientX && (s.canCloseOnClick = !1);
|
2466
|
-
let
|
2467
|
-
T.style.transform = `translate3d(${
|
2466
|
+
let S = e.draggableDirection === "x" ? `${s.delta}px, var(--y)` : `0, calc(${s.delta}px + var(--y))`;
|
2467
|
+
T.style.transform = `translate3d(${S},0)`, T.style.opacity = `${1 - Math.abs(s.delta / s.removalDistance)}`;
|
2468
2468
|
}
|
2469
2469
|
}
|
2470
2470
|
function I() {
|
@@ -2502,17 +2502,17 @@ function ku() {
|
|
2502
2502
|
var Za = { info: vu, warning: bu, success: wu, error: _u, spinner: ku }, Eu = (e) => e in Za;
|
2503
2503
|
function Tu({ theme: e, type: t, isLoading: r, icon: a }) {
|
2504
2504
|
let o = null, n = { theme: e, type: t };
|
2505
|
-
return a === !1 || (
|
2505
|
+
return a === !1 || (nt(a) ? o = a({ ...n, isLoading: r }) : ta(a) ? o = xo(a, n) : r ? o = Za.spinner() : Eu(t) && (o = Za[t](n))), o;
|
2506
2506
|
}
|
2507
2507
|
var xu = (e) => {
|
2508
|
-
let { isRunning: t, preventExitTransition: r, toastRef: a, eventHandlers: o, playToast: n } = gu(e), { closeButton: s, children: i, autoClose: l, onClick: d, type: f, hideProgressBar: u, closeToast: h, transition: m, position: p, className: y, style: b, progressClassName: w, updateId: _, role: k, progress:
|
2509
|
-
return s === !1 || (
|
2508
|
+
let { isRunning: t, preventExitTransition: r, toastRef: a, eventHandlers: o, playToast: n } = gu(e), { closeButton: s, children: i, autoClose: l, onClick: d, type: f, hideProgressBar: u, closeToast: h, transition: m, position: p, className: y, style: b, progressClassName: w, updateId: _, role: k, progress: C, rtl: I, toastId: v, deleteToast: E, isIn: T, isLoading: S, closeOnClick: x, theme: $, ariaLabel: N } = e, P = g("Toastify__toast", `Toastify__toast-theme--${$}`, `Toastify__toast--${f}`, { "Toastify__toast--rtl": I }, { "Toastify__toast--close-on-click": x }), M = nt(y) ? y({ rtl: I, position: p, type: f, defaultClassName: P }) : g(P, y), V = Tu(e), F = !!C || !l, L = { closeToast: h, type: f, theme: $ }, D = null;
|
2509
|
+
return s === !1 || (nt(s) ? D = s(L) : ta(s) ? D = xo(s, L) : D = eu(L)), W.createElement(m, { isIn: T, done: E, position: p, preventExitTransition: r, nodeRef: a, playToast: n }, W.createElement("div", { id: v, tabIndex: 0, onClick: d, "data-in": T, className: M, ...o, style: b, ref: a, ...T && { role: k, "aria-label": N } }, V != null && W.createElement("div", { className: g("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !S }) }, V), ai(i, e, !t), D, !e.customProgressBar && W.createElement(tu, { ..._ && !F ? { key: `p-${_}` } : {}, rtl: I, theme: $, delay: l, isRunning: t, isIn: T, closeToast: h, hide: u, type: f, className: w, controlledProgress: F, progress: C || 0 })));
|
2510
2510
|
}, ci = (e, t = !1) => ({ enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t }), Su = ri(ci("bounce", !0)), Gr = ri(ci("slide", !0)), Cu = { position: "top-right", transition: Su, autoClose: 5e3, closeButton: !0, pauseOnHover: !0, pauseOnFocusLoss: !0, draggable: "touch", draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light", "aria-label": "Notifications Alt+T", hotKeys: (e) => e.altKey && e.code === "KeyT" };
|
2511
2511
|
function eo(e) {
|
2512
2512
|
let t = { ...Cu, ...e }, r = e.stacked, [a, o] = H(!0), n = R(null), { getToastToRender: s, isToastActive: i, count: l } = pu(t), { className: d, style: f, rtl: u, containerId: h, hotKeys: m } = t;
|
2513
2513
|
function p(b) {
|
2514
2514
|
let w = g("Toastify__toast-container", `Toastify__toast-container--${b}`, { "Toastify__toast-container--rtl": u });
|
2515
|
-
return
|
2515
|
+
return nt(d) ? d({ position: b, rtl: u, defaultClassName: w }) : g(w, Ya(d));
|
2516
2516
|
}
|
2517
2517
|
function y() {
|
2518
2518
|
r && (o(!0), ee.play());
|
@@ -2520,12 +2520,12 @@ function eo(e) {
|
|
2520
2520
|
return yu(() => {
|
2521
2521
|
var b;
|
2522
2522
|
if (r) {
|
2523
|
-
let w = n.current.querySelectorAll('[data-in="true"]'), _ = 12, k = (b = t.position) == null ? void 0 : b.includes("top"),
|
2523
|
+
let w = n.current.querySelectorAll('[data-in="true"]'), _ = 12, k = (b = t.position) == null ? void 0 : b.includes("top"), C = 0, I = 0;
|
2524
2524
|
Array.from(w).reverse().forEach((v, E) => {
|
2525
2525
|
let T = v;
|
2526
2526
|
T.classList.add("Toastify__toast--stacked"), E > 0 && (T.dataset.collapsed = `${a}`), T.dataset.pos || (T.dataset.pos = k ? "top" : "bot");
|
2527
|
-
let
|
2528
|
-
T.style.setProperty("--y", `${k ?
|
2527
|
+
let S = C * (a ? 0.2 : 1) + (a ? 0 : _ * E);
|
2528
|
+
T.style.setProperty("--y", `${k ? S : S * -1}px`), T.style.setProperty("--g", `${_}`), T.style.setProperty("--s", `${1 - (a ? I : 0)}`), C += T.offsetHeight, I += 0.025;
|
2529
2529
|
});
|
2530
2530
|
}
|
2531
2531
|
}, [a, l, r]), B(() => {
|
@@ -2541,7 +2541,7 @@ function eo(e) {
|
|
2541
2541
|
r && (o(!1), ee.pause());
|
2542
2542
|
}, onMouseLeave: y, "aria-live": "polite", "aria-atomic": "false", "aria-relevant": "additions text", "aria-label": t["aria-label"] }, s((b, w) => {
|
2543
2543
|
let _ = w.length ? { ...f } : { ...f, pointerEvents: "none" };
|
2544
|
-
return W.createElement("div", { tabIndex: -1, className: p(b), "data-stacked": r, style: _, key: `c-${b}` }, w.map(({ content: k, props:
|
2544
|
+
return W.createElement("div", { tabIndex: -1, className: p(b), "data-stacked": r, style: _, key: `c-${b}` }, w.map(({ content: k, props: C }) => W.createElement(xu, { ...C, stacked: r, collapseAll: y, isIn: i(C.toastId, C.containerId), key: `t-${C.key}` }, k)));
|
2545
2545
|
}));
|
2546
2546
|
}
|
2547
2547
|
const ar = "FOOTER_BOTTOM", to = "FOOTER_TOP", zr = "APP_SET_FOOTER_POSITION", di = "APP_SET_FOOTER_HEIGHT", Iu = (e, t) => {
|
@@ -3762,66 +3762,66 @@ async function Tf({
|
|
3762
3762
|
onStartStepPart: b
|
3763
3763
|
}) {
|
3764
3764
|
const w = e.getReader(), _ = new TextDecoder(), k = [];
|
3765
|
-
let
|
3765
|
+
let C = 0;
|
3766
3766
|
for (; ; ) {
|
3767
3767
|
const { value: I } = await w.read();
|
3768
|
-
if (I && (k.push(I),
|
3768
|
+
if (I && (k.push(I), C += I.length, I[I.length - 1] !== kf))
|
3769
3769
|
continue;
|
3770
3770
|
if (k.length === 0)
|
3771
3771
|
break;
|
3772
|
-
const v = Ef(k,
|
3773
|
-
|
3772
|
+
const v = Ef(k, C);
|
3773
|
+
C = 0;
|
3774
3774
|
const E = _.decode(v, { stream: !0 }).split(`
|
3775
3775
|
`).filter((T) => T !== "").map(_f);
|
3776
|
-
for (const { type: T, value:
|
3776
|
+
for (const { type: T, value: S } of E)
|
3777
3777
|
switch (T) {
|
3778
3778
|
case "text":
|
3779
|
-
await (t == null ? void 0 : t(
|
3779
|
+
await (t == null ? void 0 : t(S));
|
3780
3780
|
break;
|
3781
3781
|
case "reasoning":
|
3782
|
-
await (r == null ? void 0 : r(
|
3782
|
+
await (r == null ? void 0 : r(S));
|
3783
3783
|
break;
|
3784
3784
|
case "reasoning_signature":
|
3785
|
-
await (a == null ? void 0 : a(
|
3785
|
+
await (a == null ? void 0 : a(S));
|
3786
3786
|
break;
|
3787
3787
|
case "redacted_reasoning":
|
3788
|
-
await (o == null ? void 0 : o(
|
3788
|
+
await (o == null ? void 0 : o(S));
|
3789
3789
|
break;
|
3790
3790
|
case "file":
|
3791
|
-
await (s == null ? void 0 : s(
|
3791
|
+
await (s == null ? void 0 : s(S));
|
3792
3792
|
break;
|
3793
3793
|
case "source":
|
3794
|
-
await (n == null ? void 0 : n(
|
3794
|
+
await (n == null ? void 0 : n(S));
|
3795
3795
|
break;
|
3796
3796
|
case "data":
|
3797
|
-
await (i == null ? void 0 : i(
|
3797
|
+
await (i == null ? void 0 : i(S));
|
3798
3798
|
break;
|
3799
3799
|
case "error":
|
3800
|
-
await (l == null ? void 0 : l(
|
3800
|
+
await (l == null ? void 0 : l(S));
|
3801
3801
|
break;
|
3802
3802
|
case "message_annotations":
|
3803
|
-
await (m == null ? void 0 : m(
|
3803
|
+
await (m == null ? void 0 : m(S));
|
3804
3804
|
break;
|
3805
3805
|
case "tool_call_streaming_start":
|
3806
|
-
await (d == null ? void 0 : d(
|
3806
|
+
await (d == null ? void 0 : d(S));
|
3807
3807
|
break;
|
3808
3808
|
case "tool_call_delta":
|
3809
|
-
await (f == null ? void 0 : f(
|
3809
|
+
await (f == null ? void 0 : f(S));
|
3810
3810
|
break;
|
3811
3811
|
case "tool_call":
|
3812
|
-
await (u == null ? void 0 : u(
|
3812
|
+
await (u == null ? void 0 : u(S));
|
3813
3813
|
break;
|
3814
3814
|
case "tool_result":
|
3815
|
-
await (h == null ? void 0 : h(
|
3815
|
+
await (h == null ? void 0 : h(S));
|
3816
3816
|
break;
|
3817
3817
|
case "finish_message":
|
3818
|
-
await (p == null ? void 0 : p(
|
3818
|
+
await (p == null ? void 0 : p(S));
|
3819
3819
|
break;
|
3820
3820
|
case "finish_step":
|
3821
|
-
await (y == null ? void 0 : y(
|
3821
|
+
await (y == null ? void 0 : y(S));
|
3822
3822
|
break;
|
3823
3823
|
case "start_step":
|
3824
|
-
await (b == null ? void 0 : b(
|
3824
|
+
await (b == null ? void 0 : b(S));
|
3825
3825
|
break;
|
3826
3826
|
default: {
|
3827
3827
|
const x = T;
|
@@ -3856,7 +3856,7 @@ async function xf({
|
|
3856
3856
|
let h, m, p;
|
3857
3857
|
function y(v, E) {
|
3858
3858
|
const T = u.parts.find(
|
3859
|
-
(
|
3859
|
+
(S) => S.type === "tool-invocation" && S.toolInvocation.toolCallId === v
|
3860
3860
|
);
|
3861
3861
|
T != null ? T.toolInvocation = E : u.parts.push({
|
3862
3862
|
type: "tool-invocation",
|
@@ -3870,7 +3870,7 @@ async function xf({
|
|
3870
3870
|
completionTokens: NaN,
|
3871
3871
|
promptTokens: NaN,
|
3872
3872
|
totalTokens: NaN
|
3873
|
-
},
|
3873
|
+
}, C = "unknown";
|
3874
3874
|
function I() {
|
3875
3875
|
const v = [...b];
|
3876
3876
|
w != null && w.length && (u.annotations = w);
|
@@ -3952,14 +3952,14 @@ async function xf({
|
|
3952
3952
|
onToolCallDeltaPart(v) {
|
3953
3953
|
const E = _[v.toolCallId];
|
3954
3954
|
E.text += v.argsTextDelta;
|
3955
|
-
const { value: T } = tf(E.text),
|
3955
|
+
const { value: T } = tf(E.text), S = {
|
3956
3956
|
state: "partial-call",
|
3957
3957
|
step: E.step,
|
3958
3958
|
toolCallId: v.toolCallId,
|
3959
3959
|
toolName: E.toolName,
|
3960
3960
|
args: T
|
3961
3961
|
};
|
3962
|
-
u.toolInvocations[E.index] =
|
3962
|
+
u.toolInvocations[E.index] = S, y(v.toolCallId, S), I();
|
3963
3963
|
},
|
3964
3964
|
async onToolCallPart(v) {
|
3965
3965
|
const E = {
|
@@ -3970,13 +3970,13 @@ async function xf({
|
|
3970
3970
|
if (_[v.toolCallId] != null ? u.toolInvocations[_[v.toolCallId].index] = E : (u.toolInvocations == null && (u.toolInvocations = []), u.toolInvocations.push(E)), y(v.toolCallId, E), I(), r) {
|
3971
3971
|
const T = await r({ toolCall: v });
|
3972
3972
|
if (T != null) {
|
3973
|
-
const
|
3973
|
+
const S = {
|
3974
3974
|
state: "result",
|
3975
3975
|
step: f,
|
3976
3976
|
...v,
|
3977
3977
|
result: T
|
3978
3978
|
};
|
3979
|
-
u.toolInvocations[u.toolInvocations.length - 1] =
|
3979
|
+
u.toolInvocations[u.toolInvocations.length - 1] = S, y(v.toolCallId, S), I();
|
3980
3980
|
}
|
3981
3981
|
}
|
3982
3982
|
},
|
@@ -3991,12 +3991,12 @@ async function xf({
|
|
3991
3991
|
throw new Error(
|
3992
3992
|
"tool_result must be preceded by a tool_call with the same toolCallId"
|
3993
3993
|
);
|
3994
|
-
const
|
3994
|
+
const S = {
|
3995
3995
|
...E[T],
|
3996
3996
|
state: "result",
|
3997
3997
|
...v
|
3998
3998
|
};
|
3999
|
-
E[T] =
|
3999
|
+
E[T] = S, y(v.toolCallId, S), I();
|
4000
4000
|
},
|
4001
4001
|
onDataPart(v) {
|
4002
4002
|
b.push(...v), I();
|
@@ -4011,12 +4011,12 @@ async function xf({
|
|
4011
4011
|
d || (u.id = v.messageId), u.parts.push({ type: "step-start" }), I();
|
4012
4012
|
},
|
4013
4013
|
onFinishMessagePart(v) {
|
4014
|
-
|
4014
|
+
C = v.finishReason, v.usage != null && (k = Zu(v.usage));
|
4015
4015
|
},
|
4016
4016
|
onErrorPart(v) {
|
4017
4017
|
throw new Error(v);
|
4018
4018
|
}
|
4019
|
-
}), a == null || a({ message: u, finishReason:
|
4019
|
+
}), a == null || a({ message: u, finishReason: C, usage: k });
|
4020
4020
|
}
|
4021
4021
|
async function Sf({
|
4022
4022
|
stream: e,
|
@@ -4094,14 +4094,14 @@ async function Nf({
|
|
4094
4094
|
},
|
4095
4095
|
signal: (b = n == null ? void 0 : n()) == null ? void 0 : b.signal,
|
4096
4096
|
credentials: a
|
4097
|
-
})).catch((
|
4098
|
-
throw s(),
|
4097
|
+
})).catch((C) => {
|
4098
|
+
throw s(), C;
|
4099
4099
|
});
|
4100
4100
|
if (i)
|
4101
4101
|
try {
|
4102
4102
|
await i(k);
|
4103
|
-
} catch (
|
4104
|
-
throw
|
4103
|
+
} catch (C) {
|
4104
|
+
throw C;
|
4105
4105
|
}
|
4106
4106
|
if (!k.ok)
|
4107
4107
|
throw s(), new Error(
|
@@ -4125,16 +4125,16 @@ async function Nf({
|
|
4125
4125
|
update: l,
|
4126
4126
|
lastMessage: m,
|
4127
4127
|
onToolCall: f,
|
4128
|
-
onFinish({ message:
|
4129
|
-
d &&
|
4128
|
+
onFinish({ message: C, finishReason: I, usage: v }) {
|
4129
|
+
d && C != null && d(C, { usage: v, finishReason: I });
|
4130
4130
|
},
|
4131
4131
|
generateId: u
|
4132
4132
|
});
|
4133
4133
|
return;
|
4134
4134
|
}
|
4135
4135
|
default: {
|
4136
|
-
const
|
4137
|
-
throw new Error(`Unknown stream protocol: ${
|
4136
|
+
const C = r;
|
4137
|
+
throw new Error(`Unknown stream protocol: ${C}`);
|
4138
4138
|
}
|
4139
4139
|
}
|
4140
4140
|
}
|
@@ -4402,15 +4402,15 @@ function so(e, t) {
|
|
4402
4402
|
}
|
4403
4403
|
return e !== e && t !== t;
|
4404
4404
|
}
|
4405
|
-
const
|
4405
|
+
const at = /* @__PURE__ */ new WeakMap(), dt = () => {
|
4406
4406
|
}, Ee = (
|
4407
4407
|
/*#__NOINLINE__*/
|
4408
4408
|
dt()
|
4409
|
-
), io = Object, Z = (e) => e === Ee,
|
4409
|
+
), io = Object, Z = (e) => e === Ee, Je = (e) => typeof e == "function", mt = (e, t) => ({
|
4410
4410
|
...e,
|
4411
4411
|
...t
|
4412
|
-
}), $i = (e) =>
|
4413
|
-
const r =
|
4412
|
+
}), $i = (e) => Je(e.then), wa = {}, Sr = {}, Bo = "undefined", gr = typeof window != Bo, lo = typeof document != Bo, Df = gr && "Deno" in window, Mf = () => gr && typeof window.requestAnimationFrame != Bo, Oi = (e, t) => {
|
4413
|
+
const r = at.get(e);
|
4414
4414
|
return [
|
4415
4415
|
// Getter
|
4416
4416
|
() => !Z(t) && e.get(t) || wa,
|
@@ -4480,7 +4480,7 @@ const ho = (e) => {
|
|
4480
4480
|
n = r ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
|
4481
4481
|
return n;
|
4482
4482
|
}, zo = (e) => {
|
4483
|
-
if (
|
4483
|
+
if (Je(e))
|
4484
4484
|
try {
|
4485
4485
|
e = e();
|
4486
4486
|
} catch {
|
@@ -4505,7 +4505,7 @@ async function Li(...e) {
|
|
4505
4505
|
const i = n.rollbackOnError;
|
4506
4506
|
let l = n.optimisticData;
|
4507
4507
|
const d = (h) => typeof i == "function" ? i(h) : i !== !1, f = n.throwOnError;
|
4508
|
-
if (
|
4508
|
+
if (Je(r)) {
|
4509
4509
|
const h = r, m = [], p = t.keys();
|
4510
4510
|
for (const y of p)
|
4511
4511
|
// Skip the special useSWRInfinite and useSWRSubscription keys.
|
@@ -4516,23 +4516,23 @@ async function Li(...e) {
|
|
4516
4516
|
async function u(h) {
|
4517
4517
|
const [m] = zo(h);
|
4518
4518
|
if (!m) return;
|
4519
|
-
const [p, y] = Oi(t, m), [b, w, _, k] =
|
4519
|
+
const [p, y] = Oi(t, m), [b, w, _, k] = at.get(t), C = () => {
|
4520
4520
|
const P = b[m];
|
4521
|
-
return (
|
4521
|
+
return (Je(n.revalidate) ? n.revalidate(p().data, h) : n.revalidate !== !1) && (delete _[m], delete k[m], P && P[0]) ? P[0](Ri).then(() => p().data) : p().data;
|
4522
4522
|
};
|
4523
4523
|
if (e.length < 3)
|
4524
|
-
return
|
4524
|
+
return C();
|
4525
4525
|
let I = a, v;
|
4526
4526
|
const E = mo();
|
4527
4527
|
w[m] = [
|
4528
4528
|
E,
|
4529
4529
|
0
|
4530
4530
|
];
|
4531
|
-
const T = !Z(l),
|
4532
|
-
if (T && (l =
|
4531
|
+
const T = !Z(l), S = p(), x = S.data, $ = S._c, N = Z($) ? x : $;
|
4532
|
+
if (T && (l = Je(l) ? l(N, x) : l, y({
|
4533
4533
|
data: l,
|
4534
4534
|
_c: N
|
4535
|
-
})),
|
4535
|
+
})), Je(I))
|
4536
4536
|
try {
|
4537
4537
|
I = I(N);
|
4538
4538
|
} catch (P) {
|
@@ -4549,7 +4549,7 @@ async function Li(...e) {
|
|
4549
4549
|
_c: Ee
|
4550
4550
|
}));
|
4551
4551
|
if (s && !v)
|
4552
|
-
if (
|
4552
|
+
if (Je(s)) {
|
4553
4553
|
const P = s(I, N);
|
4554
4554
|
y({
|
4555
4555
|
data: P,
|
@@ -4562,7 +4562,7 @@ async function Li(...e) {
|
|
4562
4562
|
error: Ee,
|
4563
4563
|
_c: Ee
|
4564
4564
|
});
|
4565
|
-
if (w[m][1] = mo(), Promise.resolve(
|
4565
|
+
if (w[m][1] = mo(), Promise.resolve(C()).then(() => {
|
4566
4566
|
y({
|
4567
4567
|
_c: Ee
|
4568
4568
|
});
|
@@ -4577,7 +4577,7 @@ const Un = (e, t) => {
|
|
4577
4577
|
for (const r in e)
|
4578
4578
|
e[r][0] && e[r][0](t);
|
4579
4579
|
}, Kf = (e, t) => {
|
4580
|
-
if (!
|
4580
|
+
if (!at.has(e)) {
|
4581
4581
|
const r = mt(Ff, t), a = {}, o = Li.bind(Ee, e);
|
4582
4582
|
let n = dt;
|
4583
4583
|
const s = {}, i = (f, u) => {
|
@@ -4590,7 +4590,7 @@ const Un = (e, t) => {
|
|
4590
4590
|
for (const p of m)
|
4591
4591
|
p(u, h);
|
4592
4592
|
}, d = () => {
|
4593
|
-
if (!
|
4593
|
+
if (!at.has(e) && (at.set(e, [
|
4594
4594
|
a,
|
4595
4595
|
{},
|
4596
4596
|
{},
|
@@ -4601,7 +4601,7 @@ const Un = (e, t) => {
|
|
4601
4601
|
]), !sr)) {
|
4602
4602
|
const f = r.initFocus(setTimeout.bind(Ee, Un.bind(Ee, a, Ni))), u = r.initReconnect(setTimeout.bind(Ee, Un.bind(Ee, a, Ai)));
|
4603
4603
|
n = () => {
|
4604
|
-
f && f(), u && u(),
|
4604
|
+
f && f(), u && u(), at.delete(e);
|
4605
4605
|
};
|
4606
4606
|
}
|
4607
4607
|
};
|
@@ -4614,7 +4614,7 @@ const Un = (e, t) => {
|
|
4614
4614
|
}
|
4615
4615
|
return [
|
4616
4616
|
e,
|
4617
|
-
|
4617
|
+
at.get(e)[4]
|
4618
4618
|
];
|
4619
4619
|
}, Jf = (e, t, r, a, o) => {
|
4620
4620
|
const n = r.errorRetryCount, s = o.retryCount, i = ~~((Math.random() + 0.5) * (1 << (s < 8 ? s : 8))) * r.errorRetryInterval;
|
@@ -4655,7 +4655,7 @@ const Un = (e, t) => {
|
|
4655
4655
|
return r;
|
4656
4656
|
}, Zf = $s({}), eh = "$inf$", Di = gr && window.__SWR_DEVTOOLS_USE__, th = Di ? window.__SWR_DEVTOOLS_USE__ : [], rh = () => {
|
4657
4657
|
Di && (window.__SWR_DEVTOOLS_REACT__ = W);
|
4658
|
-
}, ah = (e) =>
|
4658
|
+
}, ah = (e) => Je(e[1]) ? [
|
4659
4659
|
e[0],
|
4660
4660
|
e[1],
|
4661
4661
|
e[2] || {}
|
@@ -4664,7 +4664,7 @@ const Un = (e, t) => {
|
|
4664
4664
|
null,
|
4665
4665
|
(e[1] === null ? e[2] : e[1]) || {}
|
4666
4666
|
], oh = () => mt(Qf, re(Zf)), nh = (e) => (t, r, a) => e(t, r && ((...n) => {
|
4667
|
-
const [s] = zo(t), [, , , i] =
|
4667
|
+
const [s] = zo(t), [, , , i] = at.get(Pi);
|
4668
4668
|
if (s.startsWith(eh))
|
4669
4669
|
return r(...n);
|
4670
4670
|
const l = i[s];
|
@@ -4706,7 +4706,7 @@ const Ta = W.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4706
4706
|
}), xa = {
|
4707
4707
|
dedupe: !0
|
4708
4708
|
}, ch = (e, t, r) => {
|
4709
|
-
const { cache: a, compare: o, suspense: n, fallbackData: s, revalidateOnMount: i, revalidateIfStale: l, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: u, keepPreviousData: h } = r, [m, p, y, b] =
|
4709
|
+
const { cache: a, compare: o, suspense: n, fallbackData: s, revalidateOnMount: i, revalidateIfStale: l, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: u, keepPreviousData: h } = r, [m, p, y, b] = at.get(a), [w, _] = zo(e), k = R(!1), C = R(!1), I = R(w), v = R(t), E = R(r), T = () => E.current, S = () => T().isVisible() && T().isOnline(), [x, $, N, P] = Oi(a, w), M = R({}).current, V = Z(s) ? Z(r.fallback) ? Ee : r.fallback[w] : s, F = (z, G) => {
|
4710
4710
|
for (const q in M) {
|
4711
4711
|
const K = q;
|
4712
4712
|
if (K === "data") {
|
@@ -4745,13 +4745,13 @@ const Ta = W.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4745
4745
|
a,
|
4746
4746
|
w
|
4747
4747
|
]
|
4748
|
-
), L[0], L[1]), J = !k.current, U = m[w] && m[w].length > 0, xe = D.data, Se = Z(xe) ? V && $i(V) ? Ta(V) : V : xe, ze = D.error,
|
4748
|
+
), L[0], L[1]), J = !k.current, U = m[w] && m[w].length > 0, xe = D.data, Se = Z(xe) ? V && $i(V) ? Ta(V) : V : xe, ze = D.error, Ze = R(Se), Y = h ? Z(xe) ? Z(Ze.current) ? Se : Ze.current : xe : Se, ie = U && !Z(ze) ? !1 : J && !Z(i) ? i : T().isPaused() ? !1 : n ? Z(Se) ? !1 : l : Z(Se) || l, ae = !!(w && t && J && ie), me = Z(D.isValidating) ? ae : D.isValidating, Ce = Z(D.isLoading) ? ae : D.isLoading, ve = Q(
|
4749
4749
|
async (z) => {
|
4750
4750
|
const G = v.current;
|
4751
|
-
if (!w || !G ||
|
4751
|
+
if (!w || !G || C.current || T().isPaused())
|
4752
4752
|
return !1;
|
4753
4753
|
let q, K, pe = !0;
|
4754
|
-
const Re = z || {}, le = !y[w] || !Re.dedupe, se = () => Hn ? !
|
4754
|
+
const Re = z || {}, le = !y[w] || !Re.dedupe, se = () => Hn ? !C.current && w === I.current && k.current : w === I.current, $e = {
|
4755
4755
|
isValidating: !1,
|
4756
4756
|
isLoading: !1
|
4757
4757
|
}, _r = () => {
|
@@ -4782,8 +4782,8 @@ const Ta = W.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4782
4782
|
$e.data = o(Oe, q) ? Oe : q, le && se() && T().onSuccess(q, w, r);
|
4783
4783
|
} catch (_e) {
|
4784
4784
|
kr();
|
4785
|
-
const Oe = T(), { shouldRetryOnError:
|
4786
|
-
Oe.isPaused() || ($e.error = _e, le && se() && (Oe.onError(_e, w, Oe), (
|
4785
|
+
const Oe = T(), { shouldRetryOnError: et } = Oe;
|
4786
|
+
Oe.isPaused() || ($e.error = _e, le && se() && (Oe.onError(_e, w, Oe), (et === !0 || Je(et) && et(_e)) && (!T().revalidateOnFocus || !T().revalidateOnReconnect || S()) && Oe.onErrorRetry(_e, w, Oe, (Ot) => {
|
4787
4787
|
const Lt = m[w];
|
4788
4788
|
Lt && Lt[0] && Lt[0](Bn, Ot);
|
4789
4789
|
}, {
|
@@ -4815,7 +4815,7 @@ const Ta = W.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4815
4815
|
[]
|
4816
4816
|
);
|
4817
4817
|
if (_a(() => {
|
4818
|
-
v.current = t, E.current = r, Z(xe) || (
|
4818
|
+
v.current = t, E.current = r, Z(xe) || (Ze.current = xe);
|
4819
4819
|
}), _a(() => {
|
4820
4820
|
if (!w) return;
|
4821
4821
|
const z = ve.bind(Ee, xa);
|
@@ -4823,9 +4823,9 @@ const Ta = W.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4823
4823
|
const K = lh(w, m, (pe, Re = {}) => {
|
4824
4824
|
if (pe == Ni) {
|
4825
4825
|
const le = Date.now();
|
4826
|
-
T().revalidateOnFocus && le > G &&
|
4826
|
+
T().revalidateOnFocus && le > G && S() && (G = le + T().focusThrottleInterval, z());
|
4827
4827
|
} else if (pe == Ai)
|
4828
|
-
T().revalidateOnReconnect &&
|
4828
|
+
T().revalidateOnReconnect && S() && z();
|
4829
4829
|
else {
|
4830
4830
|
if (pe == Ri)
|
4831
4831
|
return ve();
|
@@ -4833,17 +4833,17 @@ const Ta = W.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4833
4833
|
return ve(Re);
|
4834
4834
|
}
|
4835
4835
|
});
|
4836
|
-
return
|
4836
|
+
return C.current = !1, I.current = w, k.current = !0, $({
|
4837
4837
|
_k: _
|
4838
4838
|
}), ie && (Z(Se) || sr ? z() : Wf(z)), () => {
|
4839
|
-
|
4839
|
+
C.current = !0, K();
|
4840
4840
|
};
|
4841
4841
|
}, [
|
4842
4842
|
w
|
4843
4843
|
]), _a(() => {
|
4844
4844
|
let z;
|
4845
4845
|
function G() {
|
4846
|
-
const K =
|
4846
|
+
const K = Je(d) ? d(x().data) : d;
|
4847
4847
|
K && z !== -1 && (z = setTimeout(q, K));
|
4848
4848
|
}
|
4849
4849
|
function q() {
|
@@ -4860,7 +4860,7 @@ const Ta = W.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4860
4860
|
]), oc(Y), n && Z(Se) && w) {
|
4861
4861
|
if (!Hn && sr)
|
4862
4862
|
throw new Error("Fallback data is required when using Suspense in SSR.");
|
4863
|
-
v.current = t, E.current = r,
|
4863
|
+
v.current = t, E.current = r, C.current = !1;
|
4864
4864
|
const z = b[w];
|
4865
4865
|
if (!Z(z)) {
|
4866
4866
|
const G = bt(z);
|
@@ -4938,10 +4938,10 @@ function mh({
|
|
4938
4938
|
keepLastMessageOnError: w = !0,
|
4939
4939
|
experimental_throttle: _
|
4940
4940
|
} = {}) {
|
4941
|
-
const [k] = H(y),
|
4941
|
+
const [k] = H(y), C = t ?? k, I = typeof e == "string" ? [e, C] : C, v = hh(r ?? []), E = De(
|
4942
4942
|
() => ya(v),
|
4943
4943
|
[v]
|
4944
|
-
), { data: T, mutate:
|
4944
|
+
), { data: T, mutate: S } = Ir(
|
4945
4945
|
[I, "messages"],
|
4946
4946
|
null,
|
4947
4947
|
{ fallbackData: E }
|
@@ -4975,7 +4975,7 @@ function mh({
|
|
4975
4975
|
try {
|
4976
4976
|
const se = new AbortController();
|
4977
4977
|
D.current = se;
|
4978
|
-
const $e = Wn(
|
4978
|
+
const $e = Wn(S, _), _r = Wn(
|
4979
4979
|
N,
|
4980
4980
|
_
|
4981
4981
|
), kr = x.current;
|
@@ -4983,7 +4983,7 @@ function mh({
|
|
4983
4983
|
const Er = o ? K : K.map(
|
4984
4984
|
({
|
4985
4985
|
role: Oe,
|
4986
|
-
content:
|
4986
|
+
content: et,
|
4987
4987
|
experimental_attachments: Ot,
|
4988
4988
|
data: Lt,
|
4989
4989
|
annotations: on,
|
@@ -4991,7 +4991,7 @@ function mh({
|
|
4991
4991
|
parts: sn
|
4992
4992
|
}) => ({
|
4993
4993
|
role: Oe,
|
4994
|
-
content:
|
4994
|
+
content: et,
|
4995
4995
|
...Ot !== void 0 && {
|
4996
4996
|
experimental_attachments: Ot
|
4997
4997
|
},
|
@@ -5004,12 +5004,12 @@ function mh({
|
|
5004
5004
|
await Nf({
|
5005
5005
|
api: e,
|
5006
5006
|
body: (q = s == null ? void 0 : s({
|
5007
|
-
id:
|
5007
|
+
id: C,
|
5008
5008
|
messages: K,
|
5009
5009
|
requestData: j.data,
|
5010
5010
|
requestBody: j.body
|
5011
5011
|
})) != null ? q : {
|
5012
|
-
id:
|
5012
|
+
id: C,
|
5013
5013
|
messages: Er,
|
5014
5014
|
data: j.data,
|
5015
5015
|
...J.current.body,
|
@@ -5026,15 +5026,15 @@ function mh({
|
|
5026
5026
|
w || $e(kr, !1);
|
5027
5027
|
},
|
5028
5028
|
onResponse: d,
|
5029
|
-
onUpdate({ message: Oe, data:
|
5029
|
+
onUpdate({ message: Oe, data: et, replaceLastMessage: Ot }) {
|
5030
5030
|
V("streaming"), $e(
|
5031
5031
|
[
|
5032
5032
|
...Ot ? K.slice(0, K.length - 1) : K,
|
5033
5033
|
Oe
|
5034
5034
|
],
|
5035
5035
|
!1
|
5036
|
-
),
|
5037
|
-
[..._e ?? [], ...
|
5036
|
+
), et != null && et.length && _r(
|
5037
|
+
[..._e ?? [], ...et],
|
5038
5038
|
!1
|
5039
5039
|
);
|
5040
5040
|
},
|
@@ -5059,7 +5059,7 @@ function mh({
|
|
5059
5059
|
}) && await U({ messages: le });
|
5060
5060
|
},
|
5061
5061
|
[
|
5062
|
-
|
5062
|
+
S,
|
5063
5063
|
V,
|
5064
5064
|
e,
|
5065
5065
|
J,
|
@@ -5080,7 +5080,7 @@ function mh({
|
|
5080
5080
|
b,
|
5081
5081
|
w,
|
5082
5082
|
_,
|
5083
|
-
|
5083
|
+
C
|
5084
5084
|
]
|
5085
5085
|
), xe = Q(
|
5086
5086
|
async (j, {
|
@@ -5118,16 +5118,16 @@ function mh({
|
|
5118
5118
|
[U]
|
5119
5119
|
), ze = Q(() => {
|
5120
5120
|
D.current && (D.current.abort(), D.current = null);
|
5121
|
-
}, []),
|
5121
|
+
}, []), Ze = Q(async () => {
|
5122
5122
|
const j = x.current;
|
5123
5123
|
U({ messages: j }, "resume");
|
5124
5124
|
}, [U]), Y = Q(
|
5125
5125
|
(j) => {
|
5126
5126
|
typeof j == "function" && (j = j(x.current));
|
5127
5127
|
const z = ya(j);
|
5128
|
-
|
5128
|
+
S(z, !1), x.current = z;
|
5129
5129
|
},
|
5130
|
-
[
|
5130
|
+
[S]
|
5131
5131
|
), ie = Q(
|
5132
5132
|
(j) => {
|
5133
5133
|
typeof j == "function" && (j = j(P.current)), N(j, !1), P.current = j;
|
@@ -5169,7 +5169,7 @@ function mh({
|
|
5169
5169
|
messages: G,
|
5170
5170
|
toolCallId: j,
|
5171
5171
|
toolResult: z
|
5172
|
-
}),
|
5172
|
+
}), S(
|
5173
5173
|
[
|
5174
5174
|
...G.slice(0, G.length - 1),
|
5175
5175
|
{ ...G[G.length - 1] }
|
@@ -5180,11 +5180,11 @@ function mh({
|
|
5180
5180
|
const q = G[G.length - 1];
|
5181
5181
|
Ii(q) && U({ messages: G });
|
5182
5182
|
},
|
5183
|
-
[
|
5183
|
+
[S, M, U]
|
5184
5184
|
);
|
5185
5185
|
return {
|
5186
5186
|
messages: T ?? [],
|
5187
|
-
id:
|
5187
|
+
id: C,
|
5188
5188
|
setMessages: Y,
|
5189
5189
|
data: $,
|
5190
5190
|
setData: ie,
|
@@ -5192,7 +5192,7 @@ function mh({
|
|
5192
5192
|
append: xe,
|
5193
5193
|
reload: Se,
|
5194
5194
|
stop: ze,
|
5195
|
-
experimental_resume:
|
5195
|
+
experimental_resume: Ze,
|
5196
5196
|
input: ae,
|
5197
5197
|
setInput: me,
|
5198
5198
|
handleInputChange: ve,
|
@@ -5435,7 +5435,7 @@ let Hi = class extends yt {
|
|
5435
5435
|
}
|
5436
5436
|
};
|
5437
5437
|
ue(Hi, "code", "ERR_JWS_SIGNATURE_VERIFICATION_FAILED");
|
5438
|
-
function
|
5438
|
+
function tt(e, t = "algorithm.name") {
|
5439
5439
|
return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`);
|
5440
5440
|
}
|
5441
5441
|
function Xt(e, t) {
|
@@ -5466,46 +5466,46 @@ function Mh(e, t, r) {
|
|
5466
5466
|
case "HS384":
|
5467
5467
|
case "HS512": {
|
5468
5468
|
if (!Xt(e.algorithm, "HMAC"))
|
5469
|
-
throw
|
5469
|
+
throw tt("HMAC");
|
5470
5470
|
const a = parseInt(t.slice(2), 10);
|
5471
5471
|
if (Ca(e.algorithm.hash) !== a)
|
5472
|
-
throw
|
5472
|
+
throw tt(`SHA-${a}`, "algorithm.hash");
|
5473
5473
|
break;
|
5474
5474
|
}
|
5475
5475
|
case "RS256":
|
5476
5476
|
case "RS384":
|
5477
5477
|
case "RS512": {
|
5478
5478
|
if (!Xt(e.algorithm, "RSASSA-PKCS1-v1_5"))
|
5479
|
-
throw
|
5479
|
+
throw tt("RSASSA-PKCS1-v1_5");
|
5480
5480
|
const a = parseInt(t.slice(2), 10);
|
5481
5481
|
if (Ca(e.algorithm.hash) !== a)
|
5482
|
-
throw
|
5482
|
+
throw tt(`SHA-${a}`, "algorithm.hash");
|
5483
5483
|
break;
|
5484
5484
|
}
|
5485
5485
|
case "PS256":
|
5486
5486
|
case "PS384":
|
5487
5487
|
case "PS512": {
|
5488
5488
|
if (!Xt(e.algorithm, "RSA-PSS"))
|
5489
|
-
throw
|
5489
|
+
throw tt("RSA-PSS");
|
5490
5490
|
const a = parseInt(t.slice(2), 10);
|
5491
5491
|
if (Ca(e.algorithm.hash) !== a)
|
5492
|
-
throw
|
5492
|
+
throw tt(`SHA-${a}`, "algorithm.hash");
|
5493
5493
|
break;
|
5494
5494
|
}
|
5495
5495
|
case "Ed25519":
|
5496
5496
|
case "EdDSA": {
|
5497
5497
|
if (!Xt(e.algorithm, "Ed25519"))
|
5498
|
-
throw
|
5498
|
+
throw tt("Ed25519");
|
5499
5499
|
break;
|
5500
5500
|
}
|
5501
5501
|
case "ES256":
|
5502
5502
|
case "ES384":
|
5503
5503
|
case "ES512": {
|
5504
5504
|
if (!Xt(e.algorithm, "ECDSA"))
|
5505
|
-
throw
|
5505
|
+
throw tt("ECDSA");
|
5506
5506
|
const a = Ph(t);
|
5507
5507
|
if (e.algorithm.namedCurve !== a)
|
5508
|
-
throw
|
5508
|
+
throw tt(a, "algorithm.namedCurve");
|
5509
5509
|
break;
|
5510
5510
|
}
|
5511
5511
|
default:
|
@@ -6207,7 +6207,7 @@ const Ji = async (e, t) => {
|
|
6207
6207
|
return Array.isArray(t) ? t.every((n) => o.includes(n)) : Object.keys(t).some(
|
6208
6208
|
(n) => t[n].every((s) => o.includes(s))
|
6209
6209
|
);
|
6210
|
-
}, bm = "av-tooltip", vm = "av-tooltip-arrow", lr = Math.min, Mt = Math.max, Qr = Math.round,
|
6210
|
+
}, bm = "av-tooltip", vm = "av-tooltip-arrow", lr = Math.min, Mt = Math.max, Qr = Math.round, Ye = (e) => ({
|
6211
6211
|
x: e,
|
6212
6212
|
y: e
|
6213
6213
|
}), wm = {
|
@@ -6382,7 +6382,7 @@ const Cm = async (e, t, r) => {
|
|
6382
6382
|
} = i[y], {
|
6383
6383
|
x: _,
|
6384
6384
|
y: k,
|
6385
|
-
data:
|
6385
|
+
data: C,
|
6386
6386
|
reset: I
|
6387
6387
|
} = await w({
|
6388
6388
|
x: f,
|
@@ -6402,7 +6402,7 @@ const Cm = async (e, t, r) => {
|
|
6402
6402
|
...m,
|
6403
6403
|
[b]: {
|
6404
6404
|
...m[b],
|
6405
|
-
...
|
6405
|
+
...C
|
6406
6406
|
}
|
6407
6407
|
}, I && p <= 50 && (p++, typeof I == "object" && (I.placement && (h = I.placement), I.rects && (d = I.rects === !0 ? await s.getElementRects({
|
6408
6408
|
reference: e,
|
@@ -6453,17 +6453,17 @@ async function Qi(e, t) {
|
|
6453
6453
|
} : {
|
6454
6454
|
x: 1,
|
6455
6455
|
y: 1
|
6456
|
-
},
|
6456
|
+
}, C = Zr(n.convertOffsetParentRelativeRectToViewportRelativeRect ? await n.convertOffsetParentRelativeRectToViewportRelativeRect({
|
6457
6457
|
elements: i,
|
6458
6458
|
rect: w,
|
6459
6459
|
offsetParent: _,
|
6460
6460
|
strategy: l
|
6461
6461
|
}) : w);
|
6462
6462
|
return {
|
6463
|
-
top: (b.top -
|
6464
|
-
bottom: (
|
6465
|
-
left: (b.left -
|
6466
|
-
right: (
|
6463
|
+
top: (b.top - C.top + p.top) / k.y,
|
6464
|
+
bottom: (C.bottom - b.bottom + p.bottom) / k.y,
|
6465
|
+
left: (b.left - C.left + p.left) / k.x,
|
6466
|
+
right: (C.right - b.right + p.right) / k.x
|
6467
6467
|
};
|
6468
6468
|
}
|
6469
6469
|
const Im = (e) => ({
|
@@ -6487,10 +6487,10 @@ const Im = (e) => ({
|
|
6487
6487
|
const u = Yi(f), h = {
|
6488
6488
|
x: r,
|
6489
6489
|
y: a
|
6490
|
-
}, m = Jo(o), p = Ko(m), y = await s.getDimensions(d), b = m === "y", w = b ? "top" : "left", _ = b ? "bottom" : "right", k = b ? "clientHeight" : "clientWidth",
|
6490
|
+
}, m = Jo(o), p = Ko(m), y = await s.getDimensions(d), b = m === "y", w = b ? "top" : "left", _ = b ? "bottom" : "right", k = b ? "clientHeight" : "clientWidth", C = n.reference[p] + n.reference[m] - h[m] - n.floating[p], I = h[m] - n.reference[m], v = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
|
6491
6491
|
let E = v ? v[k] : 0;
|
6492
6492
|
(!E || !await (s.isElement == null ? void 0 : s.isElement(v))) && (E = i.floating[k] || n.floating[p]);
|
6493
|
-
const T =
|
6493
|
+
const T = C / 2 - I / 2, S = E / 2 - y[p] / 2 - 1, x = lr(u[w], S), $ = lr(u[_], S), N = x, P = E - y[p] - $, M = E / 2 - y[p] / 2 + T, V = yo(N, M, P), F = !l.arrow && vr(o) != null && M !== V && n.reference[p] / 2 - (M < N ? x : $) - y[p] / 2 < 0, L = F ? M < N ? M - N : M - P : 0;
|
6494
6494
|
return {
|
6495
6495
|
[m]: h[m] + L,
|
6496
6496
|
data: {
|
@@ -6527,18 +6527,18 @@ const Im = (e) => ({
|
|
6527
6527
|
} = br(e, t);
|
6528
6528
|
if ((r = n.arrow) != null && r.alignmentOffset)
|
6529
6529
|
return {};
|
6530
|
-
const w = At(o), _ = St(i), k = At(i) === i,
|
6531
|
-
!h && v && I.push(...xm(i, y, p,
|
6532
|
-
const E = [i, ...I], T = await Qi(t, b),
|
6530
|
+
const w = At(o), _ = St(i), k = At(i) === i, C = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), I = h || (k || !y ? [Xr(i)] : Em(i)), v = p !== "none";
|
6531
|
+
!h && v && I.push(...xm(i, y, p, C));
|
6532
|
+
const E = [i, ...I], T = await Qi(t, b), S = [];
|
6533
6533
|
let x = ((a = n.flip) == null ? void 0 : a.overflows) || [];
|
6534
|
-
if (f &&
|
6535
|
-
const V = km(o, s,
|
6536
|
-
|
6534
|
+
if (f && S.push(T[w]), u) {
|
6535
|
+
const V = km(o, s, C);
|
6536
|
+
S.push(T[V[0]], T[V[1]]);
|
6537
6537
|
}
|
6538
6538
|
if (x = [...x, {
|
6539
6539
|
placement: o,
|
6540
|
-
overflows:
|
6541
|
-
}], !
|
6540
|
+
overflows: S
|
6541
|
+
}], !S.every((V) => V <= 0)) {
|
6542
6542
|
var $, N;
|
6543
6543
|
const V = ((($ = n.flip) == null ? void 0 : $.index) || 0) + 1, F = E[V];
|
6544
6544
|
if (F) {
|
@@ -6703,7 +6703,7 @@ function Le(e) {
|
|
6703
6703
|
var t;
|
6704
6704
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
6705
6705
|
}
|
6706
|
-
function
|
6706
|
+
function st(e) {
|
6707
6707
|
var t;
|
6708
6708
|
return (t = (Xi(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
6709
6709
|
}
|
@@ -6713,7 +6713,7 @@ function Xi(e) {
|
|
6713
6713
|
function Fe(e) {
|
6714
6714
|
return ia() ? e instanceof Element || e instanceof Le(e).Element : !1;
|
6715
6715
|
}
|
6716
|
-
function
|
6716
|
+
function Xe(e) {
|
6717
6717
|
return ia() ? e instanceof HTMLElement || e instanceof Le(e).HTMLElement : !1;
|
6718
6718
|
}
|
6719
6719
|
function Yn(e) {
|
@@ -6746,7 +6746,7 @@ function qo(e) {
|
|
6746
6746
|
}
|
6747
6747
|
function Lm(e) {
|
6748
6748
|
let t = pt(e);
|
6749
|
-
for (;
|
6749
|
+
for (; Xe(t) && !Gt(t); ) {
|
6750
6750
|
if (qo(t))
|
6751
6751
|
return t;
|
6752
6752
|
if (la(t))
|
@@ -6781,13 +6781,13 @@ function pt(e) {
|
|
6781
6781
|
e.assignedSlot || // DOM Element detected.
|
6782
6782
|
e.parentNode || // ShadowRoot detected.
|
6783
6783
|
Yn(e) && e.host || // Fallback.
|
6784
|
-
|
6784
|
+
st(e)
|
6785
6785
|
);
|
6786
6786
|
return Yn(t) ? t.host : t;
|
6787
6787
|
}
|
6788
6788
|
function Zi(e) {
|
6789
6789
|
const t = pt(e);
|
6790
|
-
return Gt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
6790
|
+
return Gt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Xe(t) && wr(t) ? t : Zi(t);
|
6791
6791
|
}
|
6792
6792
|
function el(e, t, r) {
|
6793
6793
|
var a;
|
@@ -6801,7 +6801,7 @@ function Qn(e) {
|
|
6801
6801
|
function tl(e) {
|
6802
6802
|
const t = We(e);
|
6803
6803
|
let r = parseFloat(t.width) || 0, a = parseFloat(t.height) || 0;
|
6804
|
-
const o =
|
6804
|
+
const o = Xe(e), n = o ? e.offsetWidth : r, s = o ? e.offsetHeight : a, i = Qr(r) !== n || Qr(a) !== s;
|
6805
6805
|
return i && (r = n, a = s), {
|
6806
6806
|
width: r,
|
6807
6807
|
height: a,
|
@@ -6813,8 +6813,8 @@ function rl(e) {
|
|
6813
6813
|
}
|
6814
6814
|
function Bt(e) {
|
6815
6815
|
const t = rl(e);
|
6816
|
-
if (!
|
6817
|
-
return
|
6816
|
+
if (!Xe(t))
|
6817
|
+
return Ye(1);
|
6818
6818
|
const r = t.getBoundingClientRect(), {
|
6819
6819
|
width: a,
|
6820
6820
|
height: o,
|
@@ -6826,7 +6826,7 @@ function Bt(e) {
|
|
6826
6826
|
y: i
|
6827
6827
|
};
|
6828
6828
|
}
|
6829
|
-
const Pm = /* @__PURE__ */
|
6829
|
+
const Pm = /* @__PURE__ */ Ye(0);
|
6830
6830
|
function al(e) {
|
6831
6831
|
const t = Le(e);
|
6832
6832
|
return !Yo() || !t.visualViewport ? Pm : {
|
@@ -6840,16 +6840,16 @@ function Dm(e, t, r) {
|
|
6840
6840
|
function cr(e, t, r, a) {
|
6841
6841
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
6842
6842
|
const o = e.getBoundingClientRect(), n = rl(e);
|
6843
|
-
let s =
|
6843
|
+
let s = Ye(1);
|
6844
6844
|
t && (a ? Fe(a) && (s = Bt(a)) : s = Bt(e));
|
6845
|
-
const i = Dm(n, r, a) ? al(n) :
|
6845
|
+
const i = Dm(n, r, a) ? al(n) : Ye(0);
|
6846
6846
|
let l = (o.left + i.x) / s.x, d = (o.top + i.y) / s.y, f = o.width / s.x, u = o.height / s.y;
|
6847
6847
|
if (n) {
|
6848
6848
|
const h = Le(n), m = a && Fe(a) ? Le(a) : a;
|
6849
6849
|
let p = h, y = Qn(p);
|
6850
6850
|
for (; y && a && m !== p; ) {
|
6851
|
-
const b = Bt(y), w = y.getBoundingClientRect(), _ = We(y), k = w.left + (y.clientLeft + parseFloat(_.paddingLeft)) * b.x,
|
6852
|
-
l *= b.x, d *= b.y, f *= b.x, u *= b.y, l += k, d +=
|
6851
|
+
const b = Bt(y), w = y.getBoundingClientRect(), _ = We(y), k = w.left + (y.clientLeft + parseFloat(_.paddingLeft)) * b.x, C = w.top + (y.clientTop + parseFloat(_.paddingTop)) * b.y;
|
6852
|
+
l *= b.x, d *= b.y, f *= b.x, u *= b.y, l += k, d += C, p = Le(y), y = Qn(p);
|
6853
6853
|
}
|
6854
6854
|
}
|
6855
6855
|
return Zr({
|
@@ -6861,7 +6861,7 @@ function cr(e, t, r, a) {
|
|
6861
6861
|
}
|
6862
6862
|
function Qo(e, t) {
|
6863
6863
|
const r = ca(e).scrollLeft;
|
6864
|
-
return t ? t.left + r : cr(
|
6864
|
+
return t ? t.left + r : cr(st(e)).left + r;
|
6865
6865
|
}
|
6866
6866
|
function ol(e, t, r) {
|
6867
6867
|
r === void 0 && (r = !1);
|
@@ -6881,19 +6881,19 @@ function Mm(e) {
|
|
6881
6881
|
offsetParent: a,
|
6882
6882
|
strategy: o
|
6883
6883
|
} = e;
|
6884
|
-
const n = o === "fixed", s =
|
6884
|
+
const n = o === "fixed", s = st(a), i = t ? la(t.floating) : !1;
|
6885
6885
|
if (a === s || i && n)
|
6886
6886
|
return r;
|
6887
6887
|
let l = {
|
6888
6888
|
scrollLeft: 0,
|
6889
6889
|
scrollTop: 0
|
6890
|
-
}, d =
|
6891
|
-
const f =
|
6892
|
-
if ((u || !u && !n) && ((Yt(a) !== "body" || wr(s)) && (l = ca(a)),
|
6890
|
+
}, d = Ye(1);
|
6891
|
+
const f = Ye(0), u = Xe(a);
|
6892
|
+
if ((u || !u && !n) && ((Yt(a) !== "body" || wr(s)) && (l = ca(a)), Xe(a))) {
|
6893
6893
|
const m = cr(a);
|
6894
6894
|
d = Bt(a), f.x = m.x + a.clientLeft, f.y = m.y + a.clientTop;
|
6895
6895
|
}
|
6896
|
-
const h = s && !u && !n ? ol(s, l, !0) :
|
6896
|
+
const h = s && !u && !n ? ol(s, l, !0) : Ye(0);
|
6897
6897
|
return {
|
6898
6898
|
width: r.width * d.x,
|
6899
6899
|
height: r.height * d.y,
|
@@ -6905,7 +6905,7 @@ function Bm(e) {
|
|
6905
6905
|
return Array.from(e.getClientRects());
|
6906
6906
|
}
|
6907
6907
|
function zm(e) {
|
6908
|
-
const t =
|
6908
|
+
const t = st(e), r = ca(e), a = e.ownerDocument.body, o = Mt(t.scrollWidth, t.clientWidth, a.scrollWidth, a.clientWidth), n = Mt(t.scrollHeight, t.clientHeight, a.scrollHeight, a.clientHeight);
|
6909
6909
|
let s = -r.scrollLeft + Qo(e);
|
6910
6910
|
const i = -r.scrollTop;
|
6911
6911
|
return We(a).direction === "rtl" && (s += Mt(t.clientWidth, a.clientWidth) - o), {
|
@@ -6916,7 +6916,7 @@ function zm(e) {
|
|
6916
6916
|
};
|
6917
6917
|
}
|
6918
6918
|
function Hm(e, t) {
|
6919
|
-
const r = Le(e), a =
|
6919
|
+
const r = Le(e), a = st(e), o = r.visualViewport;
|
6920
6920
|
let n = a.clientWidth, s = a.clientHeight, i = 0, l = 0;
|
6921
6921
|
if (o) {
|
6922
6922
|
n = o.width, s = o.height;
|
@@ -6931,7 +6931,7 @@ function Hm(e, t) {
|
|
6931
6931
|
};
|
6932
6932
|
}
|
6933
6933
|
function Vm(e, t) {
|
6934
|
-
const r = cr(e, !0, t === "fixed"), a = r.top + e.clientTop, o = r.left + e.clientLeft, n =
|
6934
|
+
const r = cr(e, !0, t === "fixed"), a = r.top + e.clientTop, o = r.left + e.clientLeft, n = Xe(e) ? Bt(e) : Ye(1), s = e.clientWidth * n.x, i = e.clientHeight * n.y, l = o * n.x, d = a * n.y;
|
6935
6935
|
return {
|
6936
6936
|
width: s,
|
6937
6937
|
height: i,
|
@@ -6944,7 +6944,7 @@ function Xn(e, t, r) {
|
|
6944
6944
|
if (t === "viewport")
|
6945
6945
|
a = Hm(e, r);
|
6946
6946
|
else if (t === "document")
|
6947
|
-
a = zm(
|
6947
|
+
a = zm(st(e));
|
6948
6948
|
else if (Fe(t))
|
6949
6949
|
a = Vm(t, r);
|
6950
6950
|
else {
|
@@ -7004,12 +7004,12 @@ function Wm(e) {
|
|
7004
7004
|
};
|
7005
7005
|
}
|
7006
7006
|
function jm(e, t, r) {
|
7007
|
-
const a =
|
7007
|
+
const a = Xe(t), o = st(t), n = r === "fixed", s = cr(e, !0, n, t);
|
7008
7008
|
let i = {
|
7009
7009
|
scrollLeft: 0,
|
7010
7010
|
scrollTop: 0
|
7011
7011
|
};
|
7012
|
-
const l =
|
7012
|
+
const l = Ye(0);
|
7013
7013
|
function d() {
|
7014
7014
|
l.x = Qo(o);
|
7015
7015
|
}
|
@@ -7019,7 +7019,7 @@ function jm(e, t, r) {
|
|
7019
7019
|
l.x = m.x + t.clientLeft, l.y = m.y + t.clientTop;
|
7020
7020
|
} else o && d();
|
7021
7021
|
n && !a && o && d();
|
7022
|
-
const f = o && !a && !n ? ol(o, i) :
|
7022
|
+
const f = o && !a && !n ? ol(o, i) : Ye(0), u = s.left + i.scrollLeft - l.x - f.x, h = s.top + i.scrollTop - l.y - f.y;
|
7023
7023
|
return {
|
7024
7024
|
x: u,
|
7025
7025
|
y: h,
|
@@ -7031,18 +7031,18 @@ function Ia(e) {
|
|
7031
7031
|
return We(e).position === "static";
|
7032
7032
|
}
|
7033
7033
|
function Zn(e, t) {
|
7034
|
-
if (!
|
7034
|
+
if (!Xe(e) || We(e).position === "fixed")
|
7035
7035
|
return null;
|
7036
7036
|
if (t)
|
7037
7037
|
return t(e);
|
7038
7038
|
let r = e.offsetParent;
|
7039
|
-
return
|
7039
|
+
return st(e) === r && (r = r.ownerDocument.body), r;
|
7040
7040
|
}
|
7041
7041
|
function sl(e, t) {
|
7042
7042
|
const r = Le(e);
|
7043
7043
|
if (la(e))
|
7044
7044
|
return r;
|
7045
|
-
if (!
|
7045
|
+
if (!Xe(e)) {
|
7046
7046
|
let o = pt(e);
|
7047
7047
|
for (; o && !Gt(o); ) {
|
7048
7048
|
if (Fe(o) && !Ia(o))
|
@@ -7073,7 +7073,7 @@ function Km(e) {
|
|
7073
7073
|
}
|
7074
7074
|
const Jm = {
|
7075
7075
|
convertOffsetParentRelativeRectToViewportRelativeRect: Mm,
|
7076
|
-
getDocumentElement:
|
7076
|
+
getDocumentElement: st,
|
7077
7077
|
getClippingRect: Fm,
|
7078
7078
|
getOffsetParent: sl,
|
7079
7079
|
getElementRects: Gm,
|
@@ -7159,7 +7159,7 @@ const Ar = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, rp = (
|
|
7159
7159
|
return { tooltip: n, arrow: s, wrapper: o };
|
7160
7160
|
}, sp = ({ delay: e = 300 }) => ({
|
7161
7161
|
animation: `av-tooltip-fade-in ${e}ms ease-in-out`
|
7162
|
-
}), ip = 5e3,
|
7162
|
+
}), ip = 5e3, je = ({
|
7163
7163
|
trigger: e,
|
7164
7164
|
label: t,
|
7165
7165
|
placement: r = "top",
|
@@ -7179,7 +7179,7 @@ const Ar = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, rp = (
|
|
7179
7179
|
tooltipClassName: s,
|
7180
7180
|
arrowClassName: i
|
7181
7181
|
}), w = sp({ delay: o }), _ = Q(async () => {
|
7182
|
-
var v, E, T,
|
7182
|
+
var v, E, T, S;
|
7183
7183
|
if (l.current && d.current && f.current) {
|
7184
7184
|
const {
|
7185
7185
|
x,
|
@@ -7211,7 +7211,7 @@ const Ar = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, rp = (
|
|
7211
7211
|
}[P.split("-")[0]];
|
7212
7212
|
(E = f == null ? void 0 : f.current) != null && E.style && Object.assign(f.current.style, {
|
7213
7213
|
left: Ar((T = N.arrow) == null ? void 0 : T.x),
|
7214
|
-
top: Ar((
|
7214
|
+
top: Ar((S = N.arrow) == null ? void 0 : S.y),
|
7215
7215
|
right: "",
|
7216
7216
|
bottom: "",
|
7217
7217
|
[M]: "-4px"
|
@@ -7223,7 +7223,7 @@ const Ar = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, rp = (
|
|
7223
7223
|
}, [_, u]);
|
7224
7224
|
const k = () => {
|
7225
7225
|
h(!1), p(!0), y.start();
|
7226
|
-
},
|
7226
|
+
}, C = () => {
|
7227
7227
|
m || h(!0);
|
7228
7228
|
}, I = () => {
|
7229
7229
|
m || h(!1);
|
@@ -7233,7 +7233,7 @@ const Ar = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, rp = (
|
|
7233
7233
|
{
|
7234
7234
|
className: b.wrapper,
|
7235
7235
|
ref: l,
|
7236
|
-
onMouseEnter:
|
7236
|
+
onMouseEnter: C,
|
7237
7237
|
onMouseLeave: I,
|
7238
7238
|
onClick: k,
|
7239
7239
|
children: [
|
@@ -7271,7 +7271,7 @@ const lp = ({
|
|
7271
7271
|
className: e,
|
7272
7272
|
onClick: t
|
7273
7273
|
}) => /* @__PURE__ */ c(
|
7274
|
-
|
7274
|
+
je,
|
7275
7275
|
{
|
7276
7276
|
label: "Attach files",
|
7277
7277
|
mode: "light",
|
@@ -7285,7 +7285,7 @@ const lp = ({
|
|
7285
7285
|
label: "Attach files",
|
7286
7286
|
onClick: t,
|
7287
7287
|
noBorder: !0,
|
7288
|
-
children: /* @__PURE__ */ c($c, { size:
|
7288
|
+
children: /* @__PURE__ */ c($c, { size: Qe, monotone: !0 })
|
7289
7289
|
}
|
7290
7290
|
)
|
7291
7291
|
}
|
@@ -7361,7 +7361,7 @@ const lp = ({
|
|
7361
7361
|
return B(() => {
|
7362
7362
|
za() || ((r === !0 || a === !0) && !u.current && f.current && (u.current = !0, f.current.focus()), r === !1 && u.current && (u.current = !1));
|
7363
7363
|
}, [r, a]), /* @__PURE__ */ c(
|
7364
|
-
|
7364
|
+
je,
|
7365
7365
|
{
|
7366
7366
|
label: "New Chat",
|
7367
7367
|
mode: "light",
|
@@ -7376,7 +7376,7 @@ const lp = ({
|
|
7376
7376
|
label: "New Chat",
|
7377
7377
|
ref: f,
|
7378
7378
|
onClick: r || a ? m : p,
|
7379
|
-
children: r || a ? /* @__PURE__ */ c(Dc, { size:
|
7379
|
+
children: r || a ? /* @__PURE__ */ c(Dc, { size: Qe, monotone: !0 }) : /* @__PURE__ */ c(zc, { size: Qe })
|
7380
7380
|
}
|
7381
7381
|
)
|
7382
7382
|
}
|
@@ -7762,7 +7762,7 @@ const Rr = {
|
|
7762
7762
|
variant: w = "primary",
|
7763
7763
|
iconClassName: _,
|
7764
7764
|
animated: k = !1,
|
7765
|
-
...
|
7765
|
+
...C
|
7766
7766
|
}, I) => {
|
7767
7767
|
const v = _p({
|
7768
7768
|
type: Xo,
|
@@ -7781,7 +7781,7 @@ const Rr = {
|
|
7781
7781
|
radius: b,
|
7782
7782
|
variant: w,
|
7783
7783
|
animated: k
|
7784
|
-
}), E = vp({ mode: r, raw: i, iconClassName: _ }), T = wp({ animated: k }),
|
7784
|
+
}), E = vp({ mode: r, raw: i, iconClassName: _ }), T = wp({ animated: k }), S = "flex items-center justify-center relative w-full h-full overflow-hidden", [x, $] = Na(), [N, P] = Na(), [M, V] = Na(), F = R(0), L = R(null), D = R(null), J = Tp([I, L]);
|
7785
7785
|
return we(() => {
|
7786
7786
|
M && M.current && k && (F.current = V.width + Sp[u] + (l ? 0 : Cp), L.current && !L.current.style.width && (L.current.style.width = `${Rr[u]}px`));
|
7787
7787
|
}, [V, M, u, l, k]), we(() => {
|
@@ -7810,8 +7810,8 @@ const Rr = {
|
|
7810
7810
|
disabled: t,
|
7811
7811
|
type: s,
|
7812
7812
|
"aria-label": d || f,
|
7813
|
-
...
|
7814
|
-
children: /* @__PURE__ */ A("div", { className:
|
7813
|
+
...C,
|
7814
|
+
children: /* @__PURE__ */ A("div", { className: S, children: [
|
7815
7815
|
/* @__PURE__ */ c(
|
7816
7816
|
ns,
|
7817
7817
|
{
|
@@ -8187,7 +8187,7 @@ const gt = ({
|
|
8187
8187
|
onOpenChange: t,
|
8188
8188
|
title: o.title,
|
8189
8189
|
footer: /* @__PURE__ */ A(fr, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
8190
|
-
/* @__PURE__ */ c(
|
8190
|
+
/* @__PURE__ */ c(qe, { children: !n && /* @__PURE__ */ c(
|
8191
8191
|
xt,
|
8192
8192
|
{
|
8193
8193
|
noBorder: !0,
|
@@ -8200,7 +8200,7 @@ const gt = ({
|
|
8200
8200
|
children: o.cancelAction
|
8201
8201
|
}
|
8202
8202
|
) }),
|
8203
|
-
/* @__PURE__ */ c(
|
8203
|
+
/* @__PURE__ */ c(qe, { children: /* @__PURE__ */ c(
|
8204
8204
|
xt,
|
8205
8205
|
{
|
8206
8206
|
noBorder: !0,
|
@@ -8273,7 +8273,7 @@ const gt = ({
|
|
8273
8273
|
}
|
8274
8274
|
),
|
8275
8275
|
/* @__PURE__ */ c(
|
8276
|
-
|
8276
|
+
je,
|
8277
8277
|
{
|
8278
8278
|
label: "Private Chat",
|
8279
8279
|
mode: "light",
|
@@ -8293,7 +8293,7 @@ const gt = ({
|
|
8293
8293
|
p && p.preventDefault(), f ? r > 0 ? d(!l) : h() : (u("true"), i(!s));
|
8294
8294
|
},
|
8295
8295
|
className: "text-sm",
|
8296
|
-
children: t ? /* @__PURE__ */ c(Fc, { size:
|
8296
|
+
children: t ? /* @__PURE__ */ c(Fc, { size: Qe }) : /* @__PURE__ */ c(Zc, { size: Qe })
|
8297
8297
|
}
|
8298
8298
|
)
|
8299
8299
|
}
|
@@ -8330,7 +8330,7 @@ const gt = ({
|
|
8330
8330
|
focusMode: s = "system",
|
8331
8331
|
...i
|
8332
8332
|
}, l) => {
|
8333
|
-
const [d, f] = H(!1), [u, h] = H(!1), [m, p] = H(null), y = R([]), b = R([]), w = re(wo), _ = Vs(), k = lc(),
|
8333
|
+
const [d, f] = H(!1), [u, h] = H(!1), [m, p] = H(null), y = R([]), b = R([]), w = re(wo), _ = Vs(), k = lc(), C = Us(), { floatingStyles: I, refs: v, context: E } = Ds({
|
8334
8334
|
nodeId: k,
|
8335
8335
|
open: d,
|
8336
8336
|
onOpenChange: (J) => {
|
@@ -8344,7 +8344,7 @@ const gt = ({
|
|
8344
8344
|
event: "mousedown",
|
8345
8345
|
toggle: !0,
|
8346
8346
|
ignoreMouse: !1
|
8347
|
-
}),
|
8347
|
+
}), S = zs(E, { role: "menu" }), x = Bs(E, { bubbles: !0 }), $ = hc(E, {
|
8348
8348
|
listRef: y,
|
8349
8349
|
activeIndex: m,
|
8350
8350
|
nested: !1,
|
@@ -8354,7 +8354,7 @@ const gt = ({
|
|
8354
8354
|
listRef: b,
|
8355
8355
|
onMatch: d ? p : void 0,
|
8356
8356
|
activeIndex: m
|
8357
|
-
}), { getReferenceProps: P, getFloatingProps: M, getItemProps: V } = Hs([T,
|
8357
|
+
}), { getReferenceProps: P, getFloatingProps: M, getItemProps: V } = Hs([T, S, x, $, N]), F = is(e) === "Button" || is(e) === "ButtonIcon", L = F ? {
|
8358
8358
|
noInternalClick: F,
|
8359
8359
|
focusMode: s,
|
8360
8360
|
mode: n
|
@@ -8365,7 +8365,7 @@ const gt = ({
|
|
8365
8365
|
"aria-label": r,
|
8366
8366
|
"data-open": d ? "" : void 0,
|
8367
8367
|
"data-focus-inside": u ? "" : void 0,
|
8368
|
-
ref: Io([v.setReference,
|
8368
|
+
ref: Io([v.setReference, C.ref, l]),
|
8369
8369
|
...P(
|
8370
8370
|
w.getItemProps({
|
8371
8371
|
...i
|
@@ -8505,7 +8505,7 @@ try {
|
|
8505
8505
|
});
|
8506
8506
|
} catch {
|
8507
8507
|
}
|
8508
|
-
const
|
8508
|
+
const rt = oe.forwardRef(
|
8509
8509
|
({
|
8510
8510
|
label: e,
|
8511
8511
|
disabled: t,
|
@@ -8568,7 +8568,7 @@ const tt = oe.forwardRef(
|
|
8568
8568
|
);
|
8569
8569
|
}
|
8570
8570
|
);
|
8571
|
-
|
8571
|
+
rt.displayName = "MenuItem";
|
8572
8572
|
const Up = ({ className: e, ...t }) => {
|
8573
8573
|
const r = g(e, "my-1 border-t border-border-medium");
|
8574
8574
|
return /* @__PURE__ */ c("div", { className: r, ...t });
|
@@ -8621,7 +8621,7 @@ const Fp = (e) => {
|
|
8621
8621
|
});
|
8622
8622
|
};
|
8623
8623
|
return d && l && l.tags && Fp(l.tags) && /* @__PURE__ */ c(
|
8624
|
-
|
8624
|
+
je,
|
8625
8625
|
{
|
8626
8626
|
label: "Prompts",
|
8627
8627
|
mode: "light",
|
@@ -8631,7 +8631,7 @@ const Fp = (e) => {
|
|
8631
8631
|
{
|
8632
8632
|
mode: "dark",
|
8633
8633
|
focusMode: "light",
|
8634
|
-
trigger: /* @__PURE__ */ c(Ne, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ c(Lc, { size:
|
8634
|
+
trigger: /* @__PURE__ */ c(Ne, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ c(Lc, { size: Qe }) }),
|
8635
8635
|
defaultPlacement: t,
|
8636
8636
|
children: [
|
8637
8637
|
/* @__PURE__ */ c(fl, { children: "Prompts" }),
|
@@ -8652,7 +8652,7 @@ const Fp = (e) => {
|
|
8652
8652
|
break;
|
8653
8653
|
}
|
8654
8654
|
return u.enabled && u.label && u.content && /* @__PURE__ */ c(
|
8655
|
-
|
8655
|
+
rt,
|
8656
8656
|
{
|
8657
8657
|
label: u.label,
|
8658
8658
|
icon: h,
|
@@ -8728,7 +8728,7 @@ const Fp = (e) => {
|
|
8728
8728
|
}
|
8729
8729
|
),
|
8730
8730
|
/* @__PURE__ */ c(
|
8731
|
-
|
8731
|
+
je,
|
8732
8732
|
{
|
8733
8733
|
label: "Reasoning Chat",
|
8734
8734
|
mode: "light",
|
@@ -8747,7 +8747,7 @@ const Fp = (e) => {
|
|
8747
8747
|
p && p.preventDefault(), f ? r > 0 ? d(!l) : h() : (u("true"), i(!s));
|
8748
8748
|
},
|
8749
8749
|
className: "text-sm",
|
8750
|
-
children: /* @__PURE__ */ c(Uc, { size:
|
8750
|
+
children: /* @__PURE__ */ c(Uc, { size: Qe })
|
8751
8751
|
}
|
8752
8752
|
)
|
8753
8753
|
}
|
@@ -8768,10 +8768,10 @@ const Fp = (e) => {
|
|
8768
8768
|
}), [u, h] = H(!1), [m, p] = H(!1), y = async () => {
|
8769
8769
|
try {
|
8770
8770
|
if (l && i && n) {
|
8771
|
-
const w = i.filter(({ content: _ }) => _).map(({ role: _, content: k, id:
|
8771
|
+
const w = i.filter(({ content: _ }) => _).map(({ role: _, content: k, id: C }) => ({
|
8772
8772
|
role: _,
|
8773
8773
|
content: k,
|
8774
|
-
id:
|
8774
|
+
id: C
|
8775
8775
|
}));
|
8776
8776
|
await Wt({
|
8777
8777
|
accessToken: await r(),
|
@@ -8819,7 +8819,7 @@ const Fp = (e) => {
|
|
8819
8819
|
}
|
8820
8820
|
),
|
8821
8821
|
u && /* @__PURE__ */ c(
|
8822
|
-
|
8822
|
+
je,
|
8823
8823
|
{
|
8824
8824
|
label: "Save Private Chat",
|
8825
8825
|
mode: "light",
|
@@ -8833,7 +8833,7 @@ const Fp = (e) => {
|
|
8833
8833
|
focusMode: "light",
|
8834
8834
|
label: "Save Private Chat",
|
8835
8835
|
onClick: b,
|
8836
|
-
children: /* @__PURE__ */ c(Bc, { size:
|
8836
|
+
children: /* @__PURE__ */ c(Bc, { size: Qe, monotone: !0 })
|
8837
8837
|
}
|
8838
8838
|
)
|
8839
8839
|
}
|
@@ -8891,7 +8891,7 @@ const Fp = (e) => {
|
|
8891
8891
|
state: { loading: t, streaming: r }
|
8892
8892
|
} = re(Ae);
|
8893
8893
|
return /* @__PURE__ */ c(
|
8894
|
-
|
8894
|
+
je,
|
8895
8895
|
{
|
8896
8896
|
label: "Send Message",
|
8897
8897
|
mode: "light",
|
@@ -8907,7 +8907,7 @@ const Fp = (e) => {
|
|
8907
8907
|
type: "submit",
|
8908
8908
|
mode: "light",
|
8909
8909
|
focusMode: "light",
|
8910
|
-
children: /* @__PURE__ */ c(Yc, { size:
|
8910
|
+
children: /* @__PURE__ */ c(Yc, { size: Qe })
|
8911
8911
|
}
|
8912
8912
|
)
|
8913
8913
|
}
|
@@ -8959,7 +8959,7 @@ const Fp = (e) => {
|
|
8959
8959
|
}
|
8960
8960
|
};
|
8961
8961
|
return f && l ? /* @__PURE__ */ c(fe, { children: /* @__PURE__ */ c(
|
8962
|
-
|
8962
|
+
je,
|
8963
8963
|
{
|
8964
8964
|
label: "Toggle Providers",
|
8965
8965
|
mode: "light",
|
@@ -8975,7 +8975,7 @@ const Fp = (e) => {
|
|
8975
8975
|
h.icon,
|
8976
8976
|
{
|
8977
8977
|
className: i === "streaming" ? "av-pulsate-icon" : "",
|
8978
|
-
size:
|
8978
|
+
size: Qe
|
8979
8979
|
},
|
8980
8980
|
h.id
|
8981
8981
|
) : null
|
@@ -8984,7 +8984,7 @@ const Fp = (e) => {
|
|
8984
8984
|
children: [
|
8985
8985
|
/* @__PURE__ */ c(fl, { children: "Providers" }),
|
8986
8986
|
ls.map((h) => /* @__PURE__ */ c(
|
8987
|
-
|
8987
|
+
rt,
|
8988
8988
|
{
|
8989
8989
|
selected: f.provider === h.id,
|
8990
8990
|
label: h.label,
|
@@ -9107,7 +9107,7 @@ const Fp = (e) => {
|
|
9107
9107
|
searchString: b.searchString,
|
9108
9108
|
sortDirection: b.sortDirection,
|
9109
9109
|
getAccessToken: t
|
9110
|
-
}), _ = R(null), k = R(null),
|
9110
|
+
}), _ = R(null), k = R(null), C = R(!1), I = R(0), v = R(null), E = R(null), T = or(), S = tg({
|
9111
9111
|
className: ""
|
9112
9112
|
}), {
|
9113
9113
|
input: x,
|
@@ -9248,7 +9248,7 @@ const Fp = (e) => {
|
|
9248
9248
|
},
|
9249
9249
|
experimental_attachments: ae
|
9250
9250
|
}), Se();
|
9251
|
-
},
|
9251
|
+
}, Ze = (Y) => {
|
9252
9252
|
D(), N(Y);
|
9253
9253
|
};
|
9254
9254
|
return qs([
|
@@ -9268,8 +9268,8 @@ const Fp = (e) => {
|
|
9268
9268
|
});
|
9269
9269
|
}
|
9270
9270
|
}, [p, y, $]), B(() => {
|
9271
|
-
if (
|
9272
|
-
|
9271
|
+
if (C.current === !1) {
|
9272
|
+
C.current = !0, !x && Or(E);
|
9273
9273
|
return;
|
9274
9274
|
}
|
9275
9275
|
h > 0 && h !== I.current ? (I.current = h, setTimeout(() => {
|
@@ -9281,7 +9281,7 @@ const Fp = (e) => {
|
|
9281
9281
|
}, 100);
|
9282
9282
|
}, [p.lastTriggeredTimestamp, D]), B(() => {
|
9283
9283
|
(async () => {
|
9284
|
-
if (
|
9284
|
+
if (ot())
|
9285
9285
|
return;
|
9286
9286
|
const Y = await t(), ie = await Ji(Y, [Bi.REASONING]);
|
9287
9287
|
a(ie);
|
@@ -9305,7 +9305,7 @@ const Fp = (e) => {
|
|
9305
9305
|
children: /* @__PURE__ */ c("p", { className: "m-0", children: _.current })
|
9306
9306
|
}
|
9307
9307
|
),
|
9308
|
-
/* @__PURE__ */ c("div", { className:
|
9308
|
+
/* @__PURE__ */ c("div", { className: S.wrapper, ref: v, children: /* @__PURE__ */ A("form", { onSubmit: ze, children: [
|
9309
9309
|
/* @__PURE__ */ c("div", { id: T, className: "sr-only", children: hn }),
|
9310
9310
|
/* @__PURE__ */ A("div", { className: "relative", children: [
|
9311
9311
|
/* @__PURE__ */ c(
|
@@ -9316,10 +9316,10 @@ const Fp = (e) => {
|
|
9316
9316
|
ref: E,
|
9317
9317
|
placeholder: hn,
|
9318
9318
|
translate: "no",
|
9319
|
-
onChange:
|
9319
|
+
onChange: Ze,
|
9320
9320
|
value: x,
|
9321
9321
|
onKeyDown: od([["mod+Enter", ze]]),
|
9322
|
-
className:
|
9322
|
+
className: S.textArea,
|
9323
9323
|
"aria-labelledby": T
|
9324
9324
|
}
|
9325
9325
|
),
|
@@ -9348,7 +9348,7 @@ const Fp = (e) => {
|
|
9348
9348
|
onClick: U
|
9349
9349
|
}
|
9350
9350
|
),
|
9351
|
-
!
|
9351
|
+
!ot() && /* @__PURE__ */ A(fe, { children: [
|
9352
9352
|
r && /* @__PURE__ */ c(hl, { className: "order-4 mr-4 sm:mr-2" }),
|
9353
9353
|
/* @__PURE__ */ c(dl, { className: "order-5 mr-4 sm:mr-2" }),
|
9354
9354
|
/* @__PURE__ */ c(ml, { className: "order-6" })
|
@@ -9440,7 +9440,7 @@ const Fp = (e) => {
|
|
9440
9440
|
}, hg = Co(
|
9441
9441
|
() => import(
|
9442
9442
|
/* webpackChunkName: "LazyAboutChangelog" */
|
9443
|
-
"./AboutChangelog.
|
9443
|
+
"./AboutChangelog.0vUNkYPF.js"
|
9444
9444
|
)
|
9445
9445
|
), mg = () => {
|
9446
9446
|
const e = or(), t = or(), { data: r, isSuccess: a } = $u(), { data: o, isSuccess: n } = Ou(), s = (r == null ? void 0 : r.version) || "", i = (r == null ? void 0 : r.models) || [];
|
@@ -9451,8 +9451,8 @@ const Fp = (e) => {
|
|
9451
9451
|
header: de.ABOUT.TITLE_CLIENT,
|
9452
9452
|
className: "prose-dark dark:prose-lighter mb-4",
|
9453
9453
|
children: jr(e, {
|
9454
|
-
[de.ABOUT.VERSION]: "8.
|
9455
|
-
[de.ABOUT.BUILD_TIMESTAMP]: "05/
|
9454
|
+
[de.ABOUT.VERSION]: "8.20.0",
|
9455
|
+
[de.ABOUT.BUILD_TIMESTAMP]: "05/27/2025 10:27 AM EDT"
|
9456
9456
|
})
|
9457
9457
|
}
|
9458
9458
|
),
|
@@ -9474,7 +9474,7 @@ const Fp = (e) => {
|
|
9474
9474
|
header: de.ABOUT.TITLE_CHANGELOG,
|
9475
9475
|
headerClassName: "av-card__header mt-0 border-b-2 border-border-accent mb-4 leading-10",
|
9476
9476
|
className: g("prose-lighter dark:prose-lighter min-h-[334px]", {
|
9477
|
-
"mb-5":
|
9477
|
+
"mb-5": ot()
|
9478
9478
|
}),
|
9479
9479
|
children: n ? /* @__PURE__ */ c(So, { fallback: /* @__PURE__ */ c("div", { children: "Loading..." }), children: /* @__PURE__ */ c(hg, { content: o.client }) }) : null
|
9480
9480
|
}
|
@@ -9510,36 +9510,36 @@ const Fp = (e) => {
|
|
9510
9510
|
}), { refetch: k } = pr({
|
9511
9511
|
user: o == null ? void 0 : o.username,
|
9512
9512
|
getAccessToken: n
|
9513
|
-
}),
|
9513
|
+
}), C = (S) => {
|
9514
9514
|
switch (h.sortDirection) {
|
9515
|
-
case
|
9516
|
-
_(
|
9515
|
+
case Ke.ASC:
|
9516
|
+
_(Ke.DESC), m({
|
9517
9517
|
type: Ma,
|
9518
9518
|
payload: {
|
9519
|
-
sortedCell:
|
9520
|
-
sortDirection:
|
9519
|
+
sortedCell: S,
|
9520
|
+
sortDirection: Ke.DESC
|
9521
9521
|
}
|
9522
9522
|
});
|
9523
9523
|
break;
|
9524
9524
|
default:
|
9525
|
-
_(
|
9525
|
+
_(Ke.ASC), m({
|
9526
9526
|
type: Ma,
|
9527
9527
|
payload: {
|
9528
|
-
sortedCell:
|
9529
|
-
sortDirection:
|
9528
|
+
sortedCell: S,
|
9529
|
+
sortDirection: Ke.ASC
|
9530
9530
|
}
|
9531
9531
|
});
|
9532
9532
|
break;
|
9533
9533
|
}
|
9534
9534
|
}, I = async () => {
|
9535
|
-
const
|
9535
|
+
const S = i.current;
|
9536
9536
|
try {
|
9537
9537
|
await Wt({
|
9538
9538
|
accessToken: await n(),
|
9539
9539
|
type: Be.DELETE_CHAT,
|
9540
9540
|
params: {
|
9541
9541
|
userId: (o == null ? void 0 : o.username) || "",
|
9542
|
-
id:
|
9542
|
+
id: S.id
|
9543
9543
|
}
|
9544
9544
|
}), a(""), ee.error(
|
9545
9545
|
Fl,
|
@@ -9551,14 +9551,14 @@ const Fp = (e) => {
|
|
9551
9551
|
);
|
9552
9552
|
} catch {
|
9553
9553
|
}
|
9554
|
-
}, v = async (
|
9554
|
+
}, v = async (S, x, $, N, P, M) => {
|
9555
9555
|
var V, F;
|
9556
9556
|
try {
|
9557
9557
|
const L = await Wt({
|
9558
9558
|
accessToken: N,
|
9559
9559
|
type: Be.GET_CHAT,
|
9560
9560
|
params: {
|
9561
|
-
id:
|
9561
|
+
id: S.id
|
9562
9562
|
}
|
9563
9563
|
});
|
9564
9564
|
L.status === 200 && (L.data.provider !== M && (await fi({
|
@@ -9583,17 +9583,17 @@ const Fp = (e) => {
|
|
9583
9583
|
restoredModel: ((V = L.data) == null ? void 0 : V.model) || "",
|
9584
9584
|
restoredUsage: ((F = L.data) == null ? void 0 : F.usage) || 0
|
9585
9585
|
}
|
9586
|
-
}), w(""), y(
|
9586
|
+
}), w(""), y(S.id), b(L.data.messages), $(!1));
|
9587
9587
|
} catch {
|
9588
9588
|
}
|
9589
|
-
}, E = Q((
|
9590
|
-
|
9589
|
+
}, E = Q((S) => {
|
9590
|
+
S[0].isIntersecting && u(($) => $ + mn);
|
9591
9591
|
}, []);
|
9592
9592
|
return B(() => {
|
9593
|
-
const
|
9593
|
+
const S = {
|
9594
9594
|
// root: null,
|
9595
9595
|
rootMargin: "20px"
|
9596
|
-
}, x = new IntersectionObserver(E,
|
9596
|
+
}, x = new IntersectionObserver(E, S);
|
9597
9597
|
s.current && x.observe(s.current);
|
9598
9598
|
}), /* @__PURE__ */ A(fe, { children: [
|
9599
9599
|
/* @__PURE__ */ A(
|
@@ -9637,7 +9637,7 @@ const Fp = (e) => {
|
|
9637
9637
|
sortDirection: h.sortDirection,
|
9638
9638
|
sortedCell: h.sortedCell,
|
9639
9639
|
onClick: () => {
|
9640
|
-
|
9640
|
+
C("timestamp");
|
9641
9641
|
},
|
9642
9642
|
children: "Date"
|
9643
9643
|
}
|
@@ -9646,10 +9646,10 @@ const Fp = (e) => {
|
|
9646
9646
|
/* @__PURE__ */ c(Ve, { className: "text-xs sm:text-sm", children: "Provider" }),
|
9647
9647
|
/* @__PURE__ */ c(Ve, { className: "text-xs sm:text-sm text-right", children: "Actions" })
|
9648
9648
|
] }) }),
|
9649
|
-
/* @__PURE__ */ c(Wd, { children: e.slice(0, f).map((
|
9649
|
+
/* @__PURE__ */ c(Wd, { children: e.slice(0, f).map((S, x) => {
|
9650
9650
|
var M, V;
|
9651
|
-
const $ =
|
9652
|
-
return ((V =
|
9651
|
+
const $ = S.summary || (S.messages.length > 0 ? (M = S.messages[0]) == null ? void 0 : M.content : ""), N = S.model ? Ih(S.model) : null, P = N ? gg[N] : null;
|
9652
|
+
return ((V = S == null ? void 0 : S.messages) == null ? void 0 : V.length) > 0 ? /* @__PURE__ */ A(nc, { children: [
|
9653
9653
|
x === f - pn && /* @__PURE__ */ c("tr", { ref: s }),
|
9654
9654
|
/* @__PURE__ */ A(pa, { children: [
|
9655
9655
|
/* @__PURE__ */ c(Ve, { children: x + 1 }),
|
@@ -9659,7 +9659,7 @@ const Fp = (e) => {
|
|
9659
9659
|
component: "th",
|
9660
9660
|
scope: "row",
|
9661
9661
|
className: "text-gray-400 sm:whitespace-nowrap text-xs sm:text-sm max-w-20 sm:max-w-none",
|
9662
|
-
children:
|
9662
|
+
children: S.timestamp.split(",")[0]
|
9663
9663
|
}
|
9664
9664
|
),
|
9665
9665
|
/* @__PURE__ */ c(
|
@@ -9679,51 +9679,74 @@ const Fp = (e) => {
|
|
9679
9679
|
scope: "row",
|
9680
9680
|
className: "text-gray-400",
|
9681
9681
|
align: "center",
|
9682
|
-
children: P ? /* @__PURE__ */ c(
|
9682
|
+
children: P ? /* @__PURE__ */ c(
|
9683
|
+
P,
|
9684
|
+
{
|
9685
|
+
size: "size-4 sm:size-5",
|
9686
|
+
semantic: !0,
|
9687
|
+
title: S.model || N
|
9688
|
+
}
|
9689
|
+
) : null
|
9683
9690
|
}
|
9684
9691
|
),
|
9685
9692
|
/* @__PURE__ */ A(Ve, { align: "right", children: [
|
9686
9693
|
/* @__PURE__ */ c(
|
9687
|
-
|
9694
|
+
je,
|
9688
9695
|
{
|
9689
|
-
className: "mr-2",
|
9690
|
-
focusMode: "alt-system",
|
9691
|
-
noBorder: !0,
|
9692
9696
|
label: "Restore chat",
|
9693
|
-
|
9694
|
-
|
9695
|
-
|
9696
|
-
|
9697
|
-
|
9698
|
-
|
9699
|
-
|
9700
|
-
|
9701
|
-
|
9702
|
-
|
9703
|
-
|
9704
|
-
|
9697
|
+
mode: "alt-system",
|
9698
|
+
placement: "top",
|
9699
|
+
trigger: /* @__PURE__ */ c(
|
9700
|
+
Ne,
|
9701
|
+
{
|
9702
|
+
className: "mr-2",
|
9703
|
+
focusMode: "alt-system",
|
9704
|
+
noBorder: !0,
|
9705
|
+
label: "Restore chat",
|
9706
|
+
onClick: async () => {
|
9707
|
+
const F = await n();
|
9708
|
+
v(
|
9709
|
+
S,
|
9710
|
+
t,
|
9711
|
+
r,
|
9712
|
+
F,
|
9713
|
+
(o == null ? void 0 : o.username) || "",
|
9714
|
+
p
|
9715
|
+
);
|
9716
|
+
},
|
9717
|
+
children: /* @__PURE__ */ c(Kc, { size: "size-3", monotone: !0 })
|
9718
|
+
}
|
9719
|
+
)
|
9705
9720
|
}
|
9706
9721
|
),
|
9707
9722
|
/* @__PURE__ */ c(
|
9708
|
-
|
9723
|
+
je,
|
9709
9724
|
{
|
9710
|
-
focusMode: "alt-system",
|
9711
|
-
noBorder: !0,
|
9712
9725
|
label: "Delete chat",
|
9713
|
-
|
9714
|
-
|
9715
|
-
|
9716
|
-
|
9717
|
-
|
9718
|
-
|
9719
|
-
|
9720
|
-
|
9721
|
-
|
9726
|
+
mode: "alt-system",
|
9727
|
+
placement: "top",
|
9728
|
+
trigger: /* @__PURE__ */ c(
|
9729
|
+
Ne,
|
9730
|
+
{
|
9731
|
+
focusMode: "alt-system",
|
9732
|
+
noBorder: !0,
|
9733
|
+
label: "Delete chat",
|
9734
|
+
onClick: () => {
|
9735
|
+
var F;
|
9736
|
+
i.current = {
|
9737
|
+
id: S.id,
|
9738
|
+
timestamp: S.timestamp,
|
9739
|
+
message: S.messages.length > 0 ? (F = S.messages[0]) == null ? void 0 : F.content : ""
|
9740
|
+
}, d(!l);
|
9741
|
+
},
|
9742
|
+
children: /* @__PURE__ */ c("div", { className: "text-red-400", children: /* @__PURE__ */ c(Mc, { size: "size-3", monotone: !0 }) })
|
9743
|
+
}
|
9744
|
+
)
|
9722
9745
|
}
|
9723
9746
|
)
|
9724
9747
|
] })
|
9725
9748
|
] })
|
9726
|
-
] }, `${de.HISTORY.TITLE}-${
|
9749
|
+
] }, `${de.HISTORY.TITLE}-${S.id}-${x}`) : null;
|
9727
9750
|
}) }),
|
9728
9751
|
/* @__PURE__ */ c(Fd, { children: /* @__PURE__ */ c(pa, { children: /* @__PURE__ */ c(Ve, { colSpan: 1e3, children: /* @__PURE__ */ c("div", { children: rr(
|
9729
9752
|
`${e.length} chat`,
|
@@ -9765,7 +9788,7 @@ const Fp = (e) => {
|
|
9765
9788
|
return /* @__PURE__ */ c(
|
9766
9789
|
Qt,
|
9767
9790
|
{
|
9768
|
-
animation: !
|
9791
|
+
animation: !ot(),
|
9769
9792
|
open: e,
|
9770
9793
|
onOpenChange: t,
|
9771
9794
|
title: Wl,
|
@@ -9835,8 +9858,8 @@ const Fp = (e) => {
|
|
9835
9858
|
{
|
9836
9859
|
className: "prose-dark dark:prose-lighter mt-4",
|
9837
9860
|
header: /* @__PURE__ */ c("h2", { className: "m-0", children: /* @__PURE__ */ A(fr, { columnGap: 3, alignVertical: "center", children: [
|
9838
|
-
/* @__PURE__ */ c(
|
9839
|
-
/* @__PURE__ */ c(
|
9861
|
+
/* @__PURE__ */ c(qe, { children: /* @__PURE__ */ c(gn, { size: "size-8" }) }),
|
9862
|
+
/* @__PURE__ */ c(qe, { children: /* @__PURE__ */ c("div", { children: de.PREFERENCES.PASSKEY_TITLE }) })
|
9840
9863
|
] }) }),
|
9841
9864
|
children: [
|
9842
9865
|
/* @__PURE__ */ c("p", { children: de.PREFERENCES.PASSKEY_INSTRUCTIONS }),
|
@@ -9860,7 +9883,7 @@ const Fp = (e) => {
|
|
9860
9883
|
}) => /* @__PURE__ */ c(
|
9861
9884
|
Qt,
|
9862
9885
|
{
|
9863
|
-
animation: !
|
9886
|
+
animation: !ot(),
|
9864
9887
|
open: e,
|
9865
9888
|
onOpenChange: t,
|
9866
9889
|
title: Kl,
|
@@ -10235,11 +10258,11 @@ const Lg = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
10235
10258
|
leftElement: w,
|
10236
10259
|
onChange: _,
|
10237
10260
|
onFocus: k,
|
10238
|
-
onBlur:
|
10261
|
+
onBlur: C,
|
10239
10262
|
...I
|
10240
10263
|
}, v) => {
|
10241
10264
|
var E;
|
10242
|
-
const T = R(null),
|
10265
|
+
const T = R(null), S = xg([v, T]), [x, $] = hs(), [N, P] = hs(), M = R(80), V = R(-25), F = R(null), L = R(30), D = R(null), J = Ig({ id: e, prefix: `${bl}-` }), [U, xe] = H(0), [Se, ze] = H(0), [Ze, Y] = H(
|
10243
10266
|
!!(!y && p)
|
10244
10267
|
), ie = `${t} error, ${p}`, ae = Hg({
|
10245
10268
|
className: n,
|
@@ -10268,7 +10291,7 @@ const Lg = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
10268
10291
|
}, bt = (z) => {
|
10269
10292
|
y && p && Y(!0), k && k(z);
|
10270
10293
|
}, j = (z) => {
|
10271
|
-
y && p && !me && Y(!1),
|
10294
|
+
y && p && !me && Y(!1), C && C(z);
|
10272
10295
|
};
|
10273
10296
|
return we(() => {
|
10274
10297
|
$ && $.width && xe($.width + 18 + 10);
|
@@ -10325,7 +10348,7 @@ const Lg = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
10325
10348
|
/* @__PURE__ */ c(
|
10326
10349
|
"textarea",
|
10327
10350
|
{
|
10328
|
-
ref:
|
10351
|
+
ref: S,
|
10329
10352
|
id: J,
|
10330
10353
|
name: t,
|
10331
10354
|
disabled: u,
|
@@ -10359,7 +10382,7 @@ const Lg = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
10359
10382
|
children: r
|
10360
10383
|
}
|
10361
10384
|
),
|
10362
|
-
|
10385
|
+
Ze && /* @__PURE__ */ c(
|
10363
10386
|
"div",
|
10364
10387
|
{
|
10365
10388
|
ref: D,
|
@@ -10573,23 +10596,23 @@ const Qg = ({
|
|
10573
10596
|
});
|
10574
10597
|
} catch {
|
10575
10598
|
}
|
10576
|
-
},
|
10599
|
+
}, C = () => {
|
10577
10600
|
s(), t(!1);
|
10578
10601
|
}, I = ({
|
10579
10602
|
enabled: v = !1,
|
10580
10603
|
privateChat: E = !1,
|
10581
10604
|
clipboardAccess: T = !1,
|
10582
|
-
...
|
10605
|
+
...S
|
10583
10606
|
}) => {
|
10584
10607
|
f((x) => {
|
10585
10608
|
const $ = x.prompts, N = {
|
10586
|
-
...
|
10609
|
+
...S,
|
10587
10610
|
enabled: v,
|
10588
10611
|
privateChat: E,
|
10589
10612
|
clipboardAccess: T
|
10590
10613
|
};
|
10591
10614
|
T ? N.content = N.content.replace(/{{clipboard}}/g, "") + " {{clipboard}}" : N.content = N.content.replace(/{{clipboard}}/g, "");
|
10592
|
-
const P = $.findIndex((M) => M.slot ===
|
10615
|
+
const P = $.findIndex((M) => M.slot === S.slot);
|
10593
10616
|
return P === -1 ? {
|
10594
10617
|
...x,
|
10595
10618
|
prompts: [...$, { ...N }]
|
@@ -10604,9 +10627,9 @@ const Qg = ({
|
|
10604
10627
|
}, [o]), n ? /* @__PURE__ */ c(
|
10605
10628
|
Qt,
|
10606
10629
|
{
|
10607
|
-
animation: !
|
10630
|
+
animation: !ot(),
|
10608
10631
|
open: e,
|
10609
|
-
onOpenChange:
|
10632
|
+
onOpenChange: C,
|
10610
10633
|
title: ql,
|
10611
10634
|
footer: /* @__PURE__ */ A(
|
10612
10635
|
fr,
|
@@ -10615,17 +10638,17 @@ const Qg = ({
|
|
10615
10638
|
alignHorizontal: "flex-end",
|
10616
10639
|
className: "pb-8 sm:pb-0",
|
10617
10640
|
children: [
|
10618
|
-
/* @__PURE__ */ c(
|
10641
|
+
/* @__PURE__ */ c(qe, { children: /* @__PURE__ */ c(
|
10619
10642
|
xt,
|
10620
10643
|
{
|
10621
10644
|
mode: "dark",
|
10622
10645
|
variant: "secondary",
|
10623
10646
|
focusMode: "light",
|
10624
|
-
onClick:
|
10647
|
+
onClick: C,
|
10625
10648
|
children: "Cancel"
|
10626
10649
|
}
|
10627
10650
|
) }),
|
10628
|
-
/* @__PURE__ */ c(
|
10651
|
+
/* @__PURE__ */ c(qe, { children: /* @__PURE__ */ c(
|
10629
10652
|
xt,
|
10630
10653
|
{
|
10631
10654
|
mode: "dark",
|
@@ -10805,7 +10828,7 @@ const Qg = ({
|
|
10805
10828
|
) : null;
|
10806
10829
|
}, wt = [0, 3, 6, 9], Xg = Co(() => import(
|
10807
10830
|
/* webpackChunkName: "LazyChart" */
|
10808
|
-
"./Chart.
|
10831
|
+
"./Chart.B1XXC8JD.js"
|
10809
10832
|
)), Zg = ({
|
10810
10833
|
open: e,
|
10811
10834
|
onOpenChange: t
|
@@ -10828,7 +10851,7 @@ const Qg = ({
|
|
10828
10851
|
return /* @__PURE__ */ c(
|
10829
10852
|
Qt,
|
10830
10853
|
{
|
10831
|
-
animation: !
|
10854
|
+
animation: !ot(),
|
10832
10855
|
open: e,
|
10833
10856
|
onOpenChange: t,
|
10834
10857
|
title: Zl,
|
@@ -10863,7 +10886,7 @@ const Qg = ({
|
|
10863
10886
|
children: l && i && i.usage && i.usage.series && i.usage.series.length ? /* @__PURE__ */ A(So, { fallback: /* @__PURE__ */ c("div", {}), children: [
|
10864
10887
|
/* @__PURE__ */ c("div", { className: "pt-4" }),
|
10865
10888
|
/* @__PURE__ */ c(Xg, { usage: i.usage.series, page: f }),
|
10866
|
-
/* @__PURE__ */ c(fr, { className: "mt-2", alignHorizontal: "center", children: /* @__PURE__ */ A(
|
10889
|
+
/* @__PURE__ */ c(fr, { className: "mt-2", alignHorizontal: "center", children: /* @__PURE__ */ A(qe, { children: [
|
10867
10890
|
/* @__PURE__ */ c(
|
10868
10891
|
xt,
|
10869
10892
|
{
|
@@ -10900,7 +10923,7 @@ const Qg = ({
|
|
10900
10923
|
s(!n);
|
10901
10924
|
}, k = () => {
|
10902
10925
|
l(!i);
|
10903
|
-
},
|
10926
|
+
}, C = () => {
|
10904
10927
|
f(!d);
|
10905
10928
|
}, I = () => {
|
10906
10929
|
h(!u);
|
@@ -10909,7 +10932,7 @@ const Qg = ({
|
|
10909
10932
|
};
|
10910
10933
|
return B(() => {
|
10911
10934
|
(async () => {
|
10912
|
-
if (!
|
10935
|
+
if (!ot())
|
10913
10936
|
return;
|
10914
10937
|
const E = await r(), T = await Ji(E, [Bi.REASONING]);
|
10915
10938
|
p(T);
|
@@ -10942,14 +10965,14 @@ const Qg = ({
|
|
10942
10965
|
rowGap: 0,
|
10943
10966
|
columnGap: 0,
|
10944
10967
|
children: [
|
10945
|
-
/* @__PURE__ */ c(
|
10946
|
-
/* @__PURE__ */ c(
|
10968
|
+
/* @__PURE__ */ c(qe, { children: /* @__PURE__ */ c(Kp, { className: " mr-4 sm:mr-2" }) }),
|
10969
|
+
/* @__PURE__ */ c(qe, { children: ot() && /* @__PURE__ */ A(fe, { children: [
|
10947
10970
|
m && /* @__PURE__ */ c(hl, { className: "mr-4 sm:mr-2" }),
|
10948
10971
|
/* @__PURE__ */ c(dl, { className: "mr-4 sm:mr-2" }),
|
10949
10972
|
/* @__PURE__ */ c(ml, {})
|
10950
10973
|
] }) }),
|
10951
|
-
/* @__PURE__ */ c(
|
10952
|
-
|
10974
|
+
/* @__PURE__ */ c(qe, { children: /* @__PURE__ */ c(
|
10975
|
+
je,
|
10953
10976
|
{
|
10954
10977
|
label: "Profile, Settings, etc.",
|
10955
10978
|
mode: "light",
|
@@ -10963,7 +10986,7 @@ const Qg = ({
|
|
10963
10986
|
defaultPlacement: "bottom-end",
|
10964
10987
|
children: [
|
10965
10988
|
/* @__PURE__ */ c(
|
10966
|
-
|
10989
|
+
rt,
|
10967
10990
|
{
|
10968
10991
|
label: "Profile",
|
10969
10992
|
onClick: w,
|
@@ -10971,7 +10994,7 @@ const Qg = ({
|
|
10971
10994
|
}
|
10972
10995
|
),
|
10973
10996
|
/* @__PURE__ */ c(
|
10974
|
-
|
10997
|
+
rt,
|
10975
10998
|
{
|
10976
10999
|
label: "Settings",
|
10977
11000
|
onClick: _,
|
@@ -10979,7 +11002,7 @@ const Qg = ({
|
|
10979
11002
|
}
|
10980
11003
|
),
|
10981
11004
|
/* @__PURE__ */ c(
|
10982
|
-
|
11005
|
+
rt,
|
10983
11006
|
{
|
10984
11007
|
label: "History",
|
10985
11008
|
onClick: k,
|
@@ -10987,7 +11010,7 @@ const Qg = ({
|
|
10987
11010
|
}
|
10988
11011
|
),
|
10989
11012
|
/* @__PURE__ */ c(
|
10990
|
-
|
11013
|
+
rt,
|
10991
11014
|
{
|
10992
11015
|
label: "Usage",
|
10993
11016
|
onClick: I,
|
@@ -10995,17 +11018,17 @@ const Qg = ({
|
|
10995
11018
|
}
|
10996
11019
|
),
|
10997
11020
|
/* @__PURE__ */ c(
|
10998
|
-
|
11021
|
+
rt,
|
10999
11022
|
{
|
11000
11023
|
label: "About",
|
11001
|
-
onClick:
|
11024
|
+
onClick: C,
|
11002
11025
|
icon: /* @__PURE__ */ c(Vc, {})
|
11003
11026
|
}
|
11004
11027
|
),
|
11005
11028
|
!e && /* @__PURE__ */ A(fe, { children: [
|
11006
11029
|
/* @__PURE__ */ c(Up, {}),
|
11007
11030
|
/* @__PURE__ */ c(
|
11008
|
-
|
11031
|
+
rt,
|
11009
11032
|
{
|
11010
11033
|
label: "Log out",
|
11011
11034
|
onClick: v,
|
@@ -11403,7 +11426,7 @@ const Dr = {
|
|
11403
11426
|
variant: w = "primary",
|
11404
11427
|
iconClassName: _,
|
11405
11428
|
animated: k = !1,
|
11406
|
-
...
|
11429
|
+
...C
|
11407
11430
|
}, I) => {
|
11408
11431
|
const v = f1({
|
11409
11432
|
type: en,
|
@@ -11422,7 +11445,7 @@ const Dr = {
|
|
11422
11445
|
radius: b,
|
11423
11446
|
variant: w,
|
11424
11447
|
animated: k
|
11425
|
-
}), E = d1({ mode: r, raw: i, iconClassName: _ }), T = u1({ animated: k }),
|
11448
|
+
}), E = d1({ mode: r, raw: i, iconClassName: _ }), T = u1({ animated: k }), S = "flex items-center justify-center relative w-full h-full overflow-hidden", [x, $] = $a(), [N, P] = $a(), [M, V] = $a(), F = R(0), L = R(null), D = R(null), J = p1([I, L]);
|
11426
11449
|
return we(() => {
|
11427
11450
|
M && M.current && k && (F.current = V.width + y1[u] + (l ? 0 : b1), L.current && !L.current.style.width && (L.current.style.width = `${Dr[u]}px`));
|
11428
11451
|
}, [V, M, u, l, k]), we(() => {
|
@@ -11451,8 +11474,8 @@ const Dr = {
|
|
11451
11474
|
disabled: t,
|
11452
11475
|
type: s,
|
11453
11476
|
"aria-label": d || f,
|
11454
|
-
...
|
11455
|
-
children: /* @__PURE__ */ A("div", { className:
|
11477
|
+
...C,
|
11478
|
+
children: /* @__PURE__ */ A("div", { className: S, children: [
|
11456
11479
|
/* @__PURE__ */ c(
|
11457
11480
|
gs,
|
11458
11481
|
{
|
@@ -12257,7 +12280,7 @@ const Mr = {
|
|
12257
12280
|
variant: w = "primary",
|
12258
12281
|
iconClassName: _,
|
12259
12282
|
animated: k = !1,
|
12260
|
-
...
|
12283
|
+
...C
|
12261
12284
|
}, I) => {
|
12262
12285
|
const v = xl({
|
12263
12286
|
type: fa,
|
@@ -12276,7 +12299,7 @@ const Mr = {
|
|
12276
12299
|
radius: b,
|
12277
12300
|
variant: w,
|
12278
12301
|
animated: k
|
12279
|
-
}), E = z1({ mode: r, raw: i, iconClassName: _ }), T = H1({ animated: k }),
|
12302
|
+
}), E = z1({ mode: r, raw: i, iconClassName: _ }), T = H1({ animated: k }), S = "flex items-center justify-center relative w-full h-full overflow-hidden", [x, $] = Oa(), [N, P] = Oa(), [M, V] = Oa(), F = R(0), L = R(null), D = R(null), J = F1([I, L]);
|
12280
12303
|
return we(() => {
|
12281
12304
|
M && M.current && k && (F.current = V.width + j1[u] + (l ? 0 : G1), L.current && !L.current.style.width && (L.current.style.width = `${Mr[u]}px`));
|
12282
12305
|
}, [V, M, u, l, k]), we(() => {
|
@@ -12305,8 +12328,8 @@ const Mr = {
|
|
12305
12328
|
disabled: t,
|
12306
12329
|
type: s,
|
12307
12330
|
"aria-label": d || f,
|
12308
|
-
...
|
12309
|
-
children: /* @__PURE__ */ A("div", { className:
|
12331
|
+
...C,
|
12332
|
+
children: /* @__PURE__ */ A("div", { className: S, children: [
|
12310
12333
|
/* @__PURE__ */ c(
|
12311
12334
|
vs,
|
12312
12335
|
{
|
@@ -12469,7 +12492,7 @@ const X1 = ({ content: e }) => /* @__PURE__ */ c(
|
|
12469
12492
|
), ws = 2, Z1 = Co(
|
12470
12493
|
() => import(
|
12471
12494
|
/* webpackChunkName: "LazyMessageAssistant" */
|
12472
|
-
"./ChatBubbleAssistant.
|
12495
|
+
"./ChatBubbleAssistant.1R9UIrP8.js"
|
12473
12496
|
)
|
12474
12497
|
), ey = W.memo(
|
12475
12498
|
({
|
@@ -12566,7 +12589,7 @@ function Il({
|
|
12566
12589
|
initialValue: ""
|
12567
12590
|
}), [m] = It({
|
12568
12591
|
key: Ct + Cs,
|
12569
|
-
initialValue:
|
12592
|
+
initialValue: Ke.ASC
|
12570
12593
|
}), [p, y] = Zt(Iu, {
|
12571
12594
|
footerPosition: "FOOTER_TOP",
|
12572
12595
|
footerHeight: 0,
|
@@ -12578,7 +12601,7 @@ function Il({
|
|
12578
12601
|
}), [_, k] = Zt(Ru, {
|
12579
12602
|
prompt: "",
|
12580
12603
|
lastTriggeredTimestamp: 0
|
12581
|
-
}), [
|
12604
|
+
}), [C, I] = Zt(Nu, {
|
12582
12605
|
provider: "",
|
12583
12606
|
// OpenAI, Anthropic, etc.
|
12584
12607
|
privateChat: !1,
|
@@ -12631,7 +12654,7 @@ function Il({
|
|
12631
12654
|
Ae.Provider,
|
12632
12655
|
{
|
12633
12656
|
value: {
|
12634
|
-
state:
|
12657
|
+
state: C,
|
12635
12658
|
dispatch: I,
|
12636
12659
|
setChatId: d,
|
12637
12660
|
setInitialMessages: u
|
@@ -12646,8 +12669,8 @@ function Il({
|
|
12646
12669
|
experimental_throttle: 300,
|
12647
12670
|
sendExtraMessageFields: !1,
|
12648
12671
|
body: {
|
12649
|
-
privateChat:
|
12650
|
-
provider:
|
12672
|
+
privateChat: C.privateChat,
|
12673
|
+
provider: C.provider,
|
12651
12674
|
username: r == null ? void 0 : r.username
|
12652
12675
|
},
|
12653
12676
|
generateId() {
|