@versini/sassysaint 8.44.0 → 8.44.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{AboutChangelog.B9LDoNtc.js → AboutChangelog.BLHJq-Bx.js} +2 -2
- package/dist/chunks/{AboutEntry.B9jJEb9d.js → AboutEntry.BItg_Z_k.js} +6 -6
- package/dist/chunks/{App.DIYzQxf_.js → App.BZtIT_71.js} +163 -163
- package/dist/chunks/{Chart.CNuG058Z.js → Chart.CjYL0_xH.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.Bk5qyJ52.js → ChatBubbleAssistant.CcLVLe6h.js} +3 -3
- package/dist/chunks/{HistoryEntry.CgDZa06o.js → HistoryEntry.CXmbpyvN.js} +2 -2
- package/dist/chunks/{LNWAZHJI.BXAtUUVV.js → LNWAZHJI.BFyrX4cF.js} +1 -1
- package/dist/chunks/{ProfileEntry.DRBuYvRq.js → ProfileEntry.Cjd0chWx.js} +2 -2
- package/dist/chunks/{SettingsEntry.htXx4sa8.js → SettingsEntry.Bf_QHI_c.js} +2 -2
- package/dist/chunks/{UsageEntry.QI6K99tl.js → UsageEntry.uYJ25BOH.js} +3 -3
- package/dist/chunks/{index.BrgPbG33.js → index.1P1jSZep.js} +1 -1
- package/dist/chunks/{index.ZNvM4on8.js → index.B6WNuA8u.js} +3 -3
- package/dist/chunks/{index.C3Pr02EG.js → index.BcjsrdyX.js} +2 -2
- package/dist/chunks/{index.ZgKBnAUj.js → index.CUG5oJCp.js} +2 -2
- package/dist/chunks/{index.w9lF8AKT.js → index.DNDMcWAX.js} +1 -1
- package/dist/chunks/{index.QerkiBRb.js → index.DrjLpZAY.js} +1 -1
- package/dist/chunks/{useMarkdown.Sw6-WRjC.js → useMarkdown.C0LVyK9z.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
@@ -1,9 +1,9 @@
|
|
1
1
|
import { jsx as u, jsxs as x, Fragment as we } from "react/jsx-runtime";
|
2
|
-
import { Subscribable as nc, pendingThenable as mn, resolveEnabled as $e, shallowEqualObjects as ia, resolveStaleTime as Mt, noop as ca, isServer as la, isValidTimeout as fn, focusManager as oc, fetchState as sc, replaceData as gn, notifyManager as Oo, timeUntilStale as ic, shouldThrowError as cc, useQueryClient as lc, I as ne, ACTION_SORT as uc, ACTION_SEARCH as dc, ACTION_RESET_PROMPT as zo, ACTION_TOGGLE_PROMPT as Po, isProbablyiPhone as Oe, oe as hc, ue as Pe, DEFAULT_ICON_ACTION_SIZE as ze, isTauri as Sr, n as Ue, L as Mo, j as Dt, C as yn, LOCAL_STORAGE_PREFIX as st, LOCAL_STORAGE_PRIVATE_DISCLOSURE as pc, LOCAL_STORAGE_REASONING_DISCLOSURE as mc, TOAST_CHAT_SAVED as fc, LOCAL_STORAGE_WEBSEARCH_DISCLOSURE as gc, ye as Lt, Oe as yc, PROMPT_CLASSNAME as vc, PROMPT_EDITABLE_AREA_CLASSNAME as bc, ERROR_MESSAGE as _c, c as Zt, CLIPBOARD_PROMPT as vn, isProbablyMobile as it, INPUT_PLACEHOLDER_TEXT_MOBILE as bn, INPUT_PLACEHOLDER_TEXT_ENTER as _n, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as wn, de as wc, FOOTER_DISCLAIMERS as kn, INPUT_BOTTOM_OFFSET_EXTRA as kc, INPUT_BOTTOM_OFFSET_IPHONE as Sc, INPUT_BOTTOM_OFFSET as Do, a as Ec, i as xc, E as Ic, TOAST_PROVIDER_CHANGED as Tc, LOG_OUT as Sn, s as Bo, ne as En, getMessageContaintWrapperClass as Cc, UI_FOOTER_BUFFER as Lo, UI_BUTTON_SCROLL_BUFFER as Nc, Logo as Ac, UI_DEFAULT_MAIN_HEIGHT as xn, APP_CLASSNAME as Rc, getMainPaddingClass as In, r as $c, ue$1 as Tn, pe as Oc, LOCAL_STORAGE_SORT as zc, LOCAL_STORAGE_SEARCH as Pc, LOCAL_STORAGE_SORT_TIMESTAMP as Mc, LOCAL_STORAGE_SORT_TOKEN_USAGE as Dc } from "./index.
|
2
|
+
import { Subscribable as nc, pendingThenable as mn, resolveEnabled as $e, shallowEqualObjects as ia, resolveStaleTime as Mt, noop as ca, isServer as la, isValidTimeout as fn, focusManager as oc, fetchState as sc, replaceData as gn, notifyManager as Oo, timeUntilStale as ic, shouldThrowError as cc, useQueryClient as lc, I as ne, ACTION_SORT as uc, ACTION_SEARCH as dc, ACTION_RESET_PROMPT as zo, ACTION_TOGGLE_PROMPT as Po, isProbablyiPhone as Oe, oe as hc, ue as Pe, DEFAULT_ICON_ACTION_SIZE as ze, isTauri as Sr, n as Ue, L as Mo, j as Dt, C as yn, LOCAL_STORAGE_PREFIX as st, LOCAL_STORAGE_PRIVATE_DISCLOSURE as pc, LOCAL_STORAGE_REASONING_DISCLOSURE as mc, TOAST_CHAT_SAVED as fc, LOCAL_STORAGE_WEBSEARCH_DISCLOSURE as gc, ye as Lt, Oe as yc, PROMPT_CLASSNAME as vc, PROMPT_EDITABLE_AREA_CLASSNAME as bc, ERROR_MESSAGE as _c, c as Zt, CLIPBOARD_PROMPT as vn, isProbablyMobile as it, INPUT_PLACEHOLDER_TEXT_MOBILE as bn, INPUT_PLACEHOLDER_TEXT_ENTER as _n, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as wn, de as wc, FOOTER_DISCLAIMERS as kn, INPUT_BOTTOM_OFFSET_EXTRA as kc, INPUT_BOTTOM_OFFSET_IPHONE as Sc, INPUT_BOTTOM_OFFSET as Do, a as Ec, i as xc, E as Ic, TOAST_PROVIDER_CHANGED as Tc, LOG_OUT as Sn, s as Bo, ne as En, getMessageContaintWrapperClass as Cc, UI_FOOTER_BUFFER as Lo, UI_BUTTON_SCROLL_BUFFER as Nc, Logo as Ac, UI_DEFAULT_MAIN_HEIGHT as xn, APP_CLASSNAME as Rc, getMainPaddingClass as In, r as $c, ue$1 as Tn, pe as Oc, LOCAL_STORAGE_SORT as zc, LOCAL_STORAGE_SEARCH as Pc, LOCAL_STORAGE_SORT_TIMESTAMP as Mc, LOCAL_STORAGE_SORT_TOKEN_USAGE as Dc } from "./index.BcjsrdyX.js";
|
3
3
|
import * as Y from "react";
|
4
4
|
import de, { useEffect as R, useRef as z, useState as M, useCallback as V, useSyncExternalStore as fr, useMemo as Ee, useId as Ta, useContext as re, useLayoutEffect as Ke, createContext as Zo, forwardRef as Uo, Suspense as Vo, lazy as St, useReducer as er } from "react";
|
5
5
|
import y from "clsx";
|
6
|
-
import { computePosition as Bc, offset as jo, flip as
|
6
|
+
import { computePosition as Bc, offset as jo, flip as Fo, shift as Ho, arrow as Lc, useMergeRefs as Ca, FloatingPortal as Wo, FloatingOverlay as Zc, FloatingFocusManager as Go, useFloating as Jo, useClick as Ko, useDismiss as qo, useRole as Yo, useInteractions as Qo, FloatingTree as Uc, useFloatingTree as Xo, useFloatingNodeId as Vc, useListItem as es, autoUpdate as jc, useListNavigation as Fc, useTypeahead as Hc, FloatingNode as Wc, FloatingList as Gc } from "@floating-ui/react";
|
7
7
|
var Jc = class extends nc {
|
8
8
|
constructor(e, t) {
|
9
9
|
super(), this.options = t, this.#r = e, this.#n = null, this.#a = mn(), this.bindMethods(), this.setOptions(t);
|
@@ -1120,7 +1120,7 @@ function as(e) {
|
|
1120
1120
|
s?.disconnect(), r.current && cancelAnimationFrame(r.current);
|
1121
1121
|
}), [s, e]), [a, n];
|
1122
1122
|
}
|
1123
|
-
function
|
1123
|
+
function Fl(e) {
|
1124
1124
|
return Ta();
|
1125
1125
|
}
|
1126
1126
|
function On(e, t) {
|
@@ -1128,7 +1128,7 @@ function On(e, t) {
|
|
1128
1128
|
passive: !0
|
1129
1129
|
}), () => window.removeEventListener(e, t)), [e, t]);
|
1130
1130
|
}
|
1131
|
-
function
|
1131
|
+
function Hl() {
|
1132
1132
|
const [e, t] = M({
|
1133
1133
|
width: 0,
|
1134
1134
|
height: 0
|
@@ -1522,7 +1522,7 @@ const cu = {
|
|
1522
1522
|
bottom: 0,
|
1523
1523
|
right: 0
|
1524
1524
|
};
|
1525
|
-
function
|
1525
|
+
function Hr(e) {
|
1526
1526
|
const t = su(), r = z(0), a = z(null), [n, o] = M(cu), s = Ee(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
1527
1527
|
const c = i[0];
|
1528
1528
|
c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
@@ -1588,14 +1588,14 @@ const tr = {
|
|
1588
1588
|
radius: v,
|
1589
1589
|
variant: E,
|
1590
1590
|
animated: k
|
1591
|
-
}), I = ru({ mode: r, raw: i, iconClassName: b, variant: E }), $ = au({ animated: k }), q = "flex items-center justify-center relative w-full h-full overflow-hidden", [N, U] =
|
1591
|
+
}), I = ru({ mode: r, raw: i, iconClassName: b, variant: E }), $ = au({ animated: k }), q = "flex items-center justify-center relative w-full h-full overflow-hidden", [N, U] = Hr(), [A, K] = Hr(), [ae, be] = Hr(), L = z(0), Z = z(null), F = z(null), ve = iu([D, Z]);
|
1592
1592
|
return Ke(() => {
|
1593
1593
|
ae && ae.current && k && (L.current = be.width + lu[d] + (c ? 0 : uu), Z.current && !Z.current.style.width && (Z.current.style.width = `${tr[d]}px`));
|
1594
1594
|
}, [be, ae, d, c, k]), Ke(() => {
|
1595
1595
|
if (Z && Z.current && k) {
|
1596
1596
|
let W = tr[d];
|
1597
|
-
m && N && U.width > 0 ? W = U.width + L.current : f && A && K.width > 0 && (W = K.width + L.current),
|
1598
|
-
N.current && m && (N.current.style.opacity = "1"), A.current && f && (A.current.style.opacity = "1"),
|
1597
|
+
m && N && U.width > 0 ? W = U.width + L.current : f && A && K.width > 0 && (W = K.width + L.current), F.current && clearTimeout(F.current), W !== parseInt(Z.current.style.width || "0", 10) && (N.current && (N.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"), Z.current.style.width = `${W}px`, W > tr[d] && (F.current = setTimeout(() => {
|
1598
|
+
N.current && m && (N.current.style.opacity = "1"), A.current && f && (A.current.style.opacity = "1"), F.current = null;
|
1599
1599
|
}, du * 0.8))), W === tr[d] && (N.current && (N.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"));
|
1600
1600
|
}
|
1601
1601
|
}, [
|
@@ -1608,7 +1608,7 @@ const tr = {
|
|
1608
1608
|
d,
|
1609
1609
|
k
|
1610
1610
|
]), R(() => () => {
|
1611
|
-
|
1611
|
+
F.current && clearTimeout(F.current);
|
1612
1612
|
}, []), /* @__PURE__ */ u(
|
1613
1613
|
os,
|
1614
1614
|
{
|
@@ -2632,13 +2632,13 @@ const Es = (e, t) => {
|
|
2632
2632
|
enumerable: !1
|
2633
2633
|
});
|
2634
2634
|
}, xs = w("$ZodError", Es), Is = w("$ZodError", Es, { Parent: Error });
|
2635
|
-
function
|
2635
|
+
function Fu(e, t = (r) => r.message) {
|
2636
2636
|
const r = {}, a = [];
|
2637
2637
|
for (const n of e.issues)
|
2638
2638
|
n.path.length > 0 ? (r[n.path[0]] = r[n.path[0]] || [], r[n.path[0]].push(t(n))) : a.push(t(n));
|
2639
2639
|
return { formErrors: a, fieldErrors: r };
|
2640
2640
|
}
|
2641
|
-
function
|
2641
|
+
function Hu(e, t) {
|
2642
2642
|
const r = t || function(o) {
|
2643
2643
|
return o.message;
|
2644
2644
|
}, a = { _errors: [] }, n = (o) => {
|
@@ -3144,9 +3144,9 @@ const Dd = {
|
|
3144
3144
|
t.pattern ?? (t.pattern = sd()), oe.init(e, t);
|
3145
3145
|
}), jd = /* @__PURE__ */ w("$ZodNanoID", (e, t) => {
|
3146
3146
|
t.pattern ?? (t.pattern = td), oe.init(e, t);
|
3147
|
-
}),
|
3147
|
+
}), Fd = /* @__PURE__ */ w("$ZodCUID", (e, t) => {
|
3148
3148
|
t.pattern ?? (t.pattern = qu), oe.init(e, t);
|
3149
|
-
}),
|
3149
|
+
}), Hd = /* @__PURE__ */ w("$ZodCUID2", (e, t) => {
|
3150
3150
|
t.pattern ?? (t.pattern = Yu), oe.init(e, t);
|
3151
3151
|
}), Wd = /* @__PURE__ */ w("$ZodULID", (e, t) => {
|
3152
3152
|
t.pattern ?? (t.pattern = Qu), oe.init(e, t);
|
@@ -3740,10 +3740,10 @@ const xh = /* @__PURE__ */ w("$ZodPrefault", (e, t) => {
|
|
3740
3740
|
return r ? new Set([...r].filter((a) => a !== void 0)) : void 0;
|
3741
3741
|
}), e._zod.parse = (r, a) => {
|
3742
3742
|
const n = t.innerType._zod.run(r, a);
|
3743
|
-
return n instanceof Promise ? n.then((o) =>
|
3743
|
+
return n instanceof Promise ? n.then((o) => Fn(o, e)) : Fn(n, e);
|
3744
3744
|
};
|
3745
3745
|
});
|
3746
|
-
function
|
3746
|
+
function Fn(e, t) {
|
3747
3747
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
3748
3748
|
code: "invalid_type",
|
3749
3749
|
expected: "nonoptional",
|
@@ -3771,10 +3771,10 @@ const Th = /* @__PURE__ */ w("$ZodCatch", (e, t) => {
|
|
3771
3771
|
}), Ch = /* @__PURE__ */ w("$ZodPipe", (e, t) => {
|
3772
3772
|
Q.init(e, t), G(e._zod, "values", () => t.in._zod.values), G(e._zod, "optin", () => t.in._zod.optin), G(e._zod, "optout", () => t.out._zod.optout), e._zod.parse = (r, a) => {
|
3773
3773
|
const n = t.in._zod.run(r, a);
|
3774
|
-
return n instanceof Promise ? n.then((o) =>
|
3774
|
+
return n instanceof Promise ? n.then((o) => Hn(o, t, a)) : Hn(n, t, a);
|
3775
3775
|
};
|
3776
3776
|
});
|
3777
|
-
function
|
3777
|
+
function Hn(e, t, r) {
|
3778
3778
|
return Bt(e) ? e : t.out._zod.run({ value: e.value, issues: e.issues }, r);
|
3779
3779
|
}
|
3780
3780
|
const Nh = /* @__PURE__ */ w("$ZodReadonly", (e, t) => {
|
@@ -3955,7 +3955,7 @@ function jh(e, t) {
|
|
3955
3955
|
...C(t)
|
3956
3956
|
});
|
3957
3957
|
}
|
3958
|
-
function
|
3958
|
+
function Fh(e, t) {
|
3959
3959
|
return new e({
|
3960
3960
|
type: "string",
|
3961
3961
|
format: "ulid",
|
@@ -3964,7 +3964,7 @@ function Hh(e, t) {
|
|
3964
3964
|
...C(t)
|
3965
3965
|
});
|
3966
3966
|
}
|
3967
|
-
function
|
3967
|
+
function Hh(e, t) {
|
3968
3968
|
return new e({
|
3969
3969
|
type: "string",
|
3970
3970
|
format: "xid",
|
@@ -4817,11 +4817,11 @@ function Rp(e) {
|
|
4817
4817
|
const $p = (e, t) => {
|
4818
4818
|
xs.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
4819
4819
|
format: {
|
4820
|
-
value: (r) =>
|
4820
|
+
value: (r) => Hu(e, r)
|
4821
4821
|
// enumerable: false,
|
4822
4822
|
},
|
4823
4823
|
flatten: {
|
4824
|
-
value: (r) =>
|
4824
|
+
value: (r) => Fu(e, r)
|
4825
4825
|
// enumerable: false,
|
4826
4826
|
},
|
4827
4827
|
addIssue: {
|
@@ -4868,7 +4868,7 @@ const $p = (e, t) => {
|
|
4868
4868
|
const r = e._zod.bag;
|
4869
4869
|
e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...a) => e.check(up(...a)), e.includes = (...a) => e.check(pp(...a)), e.startsWith = (...a) => e.check(mp(...a)), e.endsWith = (...a) => e.check(fp(...a)), e.min = (...a) => e.check(Tr(...a)), e.max = (...a) => e.check(Zs(...a)), e.length = (...a) => e.check(Us(...a)), e.nonempty = (...a) => e.check(Tr(1, ...a)), e.lowercase = (a) => e.check(dp(a)), e.uppercase = (a) => e.check(hp(a)), e.trim = () => e.check(yp()), e.normalize = (...a) => e.check(gp(...a)), e.toLowerCase = () => e.check(vp()), e.toUpperCase = () => e.check(bp());
|
4870
4870
|
}), Mp = /* @__PURE__ */ w("ZodString", (e, t) => {
|
4871
|
-
Ba.init(e, t), js.init(e, t), e.email = (r) => e.check(zh(Dp, r)), e.url = (r) => e.check(Lh(Bp, r)), e.jwt = (r) => e.check(Xh(Qp, r)), e.emoji = (r) => e.check(Zh(Lp, r)), e.guid = (r) => e.check(Jn(Xn, r)), e.uuid = (r) => e.check(Ph(nr, r)), e.uuidv4 = (r) => e.check(Mh(nr, r)), e.uuidv6 = (r) => e.check(Dh(nr, r)), e.uuidv7 = (r) => e.check(Bh(nr, r)), e.nanoid = (r) => e.check(Uh(Zp, r)), e.guid = (r) => e.check(Jn(Xn, r)), e.cuid = (r) => e.check(Vh(Up, r)), e.cuid2 = (r) => e.check(jh(Vp, r)), e.ulid = (r) => e.check(
|
4871
|
+
Ba.init(e, t), js.init(e, t), e.email = (r) => e.check(zh(Dp, r)), e.url = (r) => e.check(Lh(Bp, r)), e.jwt = (r) => e.check(Xh(Qp, r)), e.emoji = (r) => e.check(Zh(Lp, r)), e.guid = (r) => e.check(Jn(Xn, r)), e.uuid = (r) => e.check(Ph(nr, r)), e.uuidv4 = (r) => e.check(Mh(nr, r)), e.uuidv6 = (r) => e.check(Dh(nr, r)), e.uuidv7 = (r) => e.check(Bh(nr, r)), e.nanoid = (r) => e.check(Uh(Zp, r)), e.guid = (r) => e.check(Jn(Xn, r)), e.cuid = (r) => e.check(Vh(Up, r)), e.cuid2 = (r) => e.check(jh(Vp, r)), e.ulid = (r) => e.check(Fh(jp, r)), e.base64 = (r) => e.check(Ls(Fs, r)), e.base64url = (r) => e.check(Yh(qp, r)), e.xid = (r) => e.check(Hh(Fp, r)), e.ksuid = (r) => e.check(Wh(Hp, r)), e.ipv4 = (r) => e.check(Gh(Wp, r)), e.ipv6 = (r) => e.check(Jh(Gp, r)), e.cidrv4 = (r) => e.check(Kh(Jp, r)), e.cidrv6 = (r) => e.check(qh(Kp, r)), e.e164 = (r) => e.check(Qh(Yp, r)), e.datetime = (r) => e.check(xp(r)), e.date = (r) => e.check(Tp(r)), e.time = (r) => e.check(Np(r)), e.duration = (r) => e.check(Rp(r));
|
4872
4872
|
});
|
4873
4873
|
function S(e) {
|
4874
4874
|
return Oh(Mp, e);
|
@@ -4888,14 +4888,14 @@ const ie = /* @__PURE__ */ w("ZodStringFormat", (e, t) => {
|
|
4888
4888
|
}), Zp = /* @__PURE__ */ w("ZodNanoID", (e, t) => {
|
4889
4889
|
jd.init(e, t), ie.init(e, t);
|
4890
4890
|
}), Up = /* @__PURE__ */ w("ZodCUID", (e, t) => {
|
4891
|
-
Hd.init(e, t), ie.init(e, t);
|
4892
|
-
}), Vp = /* @__PURE__ */ w("ZodCUID2", (e, t) => {
|
4893
4891
|
Fd.init(e, t), ie.init(e, t);
|
4892
|
+
}), Vp = /* @__PURE__ */ w("ZodCUID2", (e, t) => {
|
4893
|
+
Hd.init(e, t), ie.init(e, t);
|
4894
4894
|
}), jp = /* @__PURE__ */ w("ZodULID", (e, t) => {
|
4895
4895
|
Wd.init(e, t), ie.init(e, t);
|
4896
|
-
}),
|
4896
|
+
}), Fp = /* @__PURE__ */ w("ZodXID", (e, t) => {
|
4897
4897
|
Gd.init(e, t), ie.init(e, t);
|
4898
|
-
}),
|
4898
|
+
}), Hp = /* @__PURE__ */ w("ZodKSUID", (e, t) => {
|
4899
4899
|
Jd.init(e, t), ie.init(e, t);
|
4900
4900
|
}), Wp = /* @__PURE__ */ w("ZodIPv4", (e, t) => {
|
4901
4901
|
Xd.init(e, t), ie.init(e, t);
|
@@ -4905,11 +4905,11 @@ const ie = /* @__PURE__ */ w("ZodStringFormat", (e, t) => {
|
|
4905
4905
|
th.init(e, t), ie.init(e, t);
|
4906
4906
|
}), Kp = /* @__PURE__ */ w("ZodCIDRv6", (e, t) => {
|
4907
4907
|
rh.init(e, t), ie.init(e, t);
|
4908
|
-
}),
|
4908
|
+
}), Fs = /* @__PURE__ */ w("ZodBase64", (e, t) => {
|
4909
4909
|
ah.init(e, t), ie.init(e, t);
|
4910
4910
|
});
|
4911
|
-
function
|
4912
|
-
return Ls(
|
4911
|
+
function Hs(e) {
|
4912
|
+
return Ls(Fs, e);
|
4913
4913
|
}
|
4914
4914
|
const qp = /* @__PURE__ */ w("ZodBase64URL", (e, t) => {
|
4915
4915
|
oh.init(e, t), ie.init(e, t);
|
@@ -5407,7 +5407,7 @@ var Vm = (e, t) => {
|
|
5407
5407
|
emailStrategy: "format:email",
|
5408
5408
|
base64Strategy: "contentEncoding:base64",
|
5409
5409
|
nameStrategy: "ref"
|
5410
|
-
},
|
5410
|
+
}, Fm = (e) => typeof e == "string" ? {
|
5411
5411
|
...no,
|
5412
5412
|
name: e
|
5413
5413
|
} : {
|
@@ -5417,7 +5417,7 @@ var Vm = (e, t) => {
|
|
5417
5417
|
function xe() {
|
5418
5418
|
return {};
|
5419
5419
|
}
|
5420
|
-
function
|
5420
|
+
function Hm(e, t) {
|
5421
5421
|
var r, a, n;
|
5422
5422
|
const o = {
|
5423
5423
|
type: "array"
|
@@ -6120,7 +6120,7 @@ var Sf = (e, t) => J(e.innerType._def, t), Ef = (e, t, r) => {
|
|
6120
6120
|
case B.ZodNull:
|
6121
6121
|
return cf();
|
6122
6122
|
case B.ZodArray:
|
6123
|
-
return
|
6123
|
+
return Hm(e, r);
|
6124
6124
|
case B.ZodUnion:
|
6125
6125
|
case B.ZodDiscriminatedUnion:
|
6126
6126
|
return lf(e, r);
|
@@ -6219,7 +6219,7 @@ var xf = (e, t) => {
|
|
6219
6219
|
), xe()) : t.$refStrategy === "seen" ? xe() : void 0;
|
6220
6220
|
}
|
6221
6221
|
}, If = (e, t, r) => (e.description && (r.description = e.description), r), Tf = (e) => {
|
6222
|
-
const t =
|
6222
|
+
const t = Fm(e), r = t.name !== void 0 ? [...t.basePath, t.definitionPath, t.name] : t.basePath;
|
6223
6223
|
return {
|
6224
6224
|
...t,
|
6225
6225
|
currentPath: r,
|
@@ -6369,18 +6369,18 @@ var ai = fe([
|
|
6369
6369
|
},
|
6370
6370
|
{ message: "Must be a Buffer" }
|
6371
6371
|
)
|
6372
|
-
]),
|
6372
|
+
]), Ft = Im(
|
6373
6373
|
() => fe([
|
6374
6374
|
rm(),
|
6375
6375
|
S(),
|
6376
6376
|
jt(),
|
6377
6377
|
le(),
|
6378
|
-
ma(S(),
|
6379
|
-
Ve(
|
6378
|
+
ma(S(), Ft),
|
6379
|
+
Ve(Ft)
|
6380
6380
|
])
|
6381
6381
|
), j = ma(
|
6382
6382
|
S(),
|
6383
|
-
ma(S(),
|
6383
|
+
ma(S(), Ft)
|
6384
6384
|
), ni = P({
|
6385
6385
|
type: T("text"),
|
6386
6386
|
text: S(),
|
@@ -6414,7 +6414,7 @@ var ai = fe([
|
|
6414
6414
|
}),
|
6415
6415
|
P({
|
6416
6416
|
type: T("json"),
|
6417
|
-
value:
|
6417
|
+
value: Ft
|
6418
6418
|
}),
|
6419
6419
|
P({
|
6420
6420
|
type: T("error-text"),
|
@@ -6422,7 +6422,7 @@ var ai = fe([
|
|
6422
6422
|
}),
|
6423
6423
|
P({
|
6424
6424
|
type: T("error-json"),
|
6425
|
-
value:
|
6425
|
+
value: Ft
|
6426
6426
|
}),
|
6427
6427
|
P({
|
6428
6428
|
type: T("content"),
|
@@ -6452,14 +6452,14 @@ var ai = fe([
|
|
6452
6452
|
content: S(),
|
6453
6453
|
providerOptions: j.optional()
|
6454
6454
|
}
|
6455
|
-
),
|
6455
|
+
), Ff = P({
|
6456
6456
|
role: T("user"),
|
6457
6457
|
content: fe([
|
6458
6458
|
S(),
|
6459
6459
|
Ve(fe([ni, Lf, oi]))
|
6460
6460
|
]),
|
6461
6461
|
providerOptions: j.optional()
|
6462
|
-
}),
|
6462
|
+
}), Hf = P({
|
6463
6463
|
role: T("assistant"),
|
6464
6464
|
content: fe([
|
6465
6465
|
S(),
|
@@ -6481,8 +6481,8 @@ var ai = fe([
|
|
6481
6481
|
});
|
6482
6482
|
fe([
|
6483
6483
|
jf,
|
6484
|
-
Hf,
|
6485
6484
|
Ff,
|
6485
|
+
Hf,
|
6486
6486
|
Wf
|
6487
6487
|
]);
|
6488
6488
|
Yt({
|
@@ -7386,7 +7386,7 @@ var rg = () => ({
|
|
7386
7386
|
version: S()
|
7387
7387
|
}), ja = wt({
|
7388
7388
|
_meta: ue(P({}).loose())
|
7389
|
-
}),
|
7389
|
+
}), Ht = ja, og = P({
|
7390
7390
|
method: S(),
|
7391
7391
|
params: ue(ja)
|
7392
7392
|
}), sg = wt({
|
@@ -7409,13 +7409,13 @@ var rg = () => ({
|
|
7409
7409
|
})
|
7410
7410
|
)
|
7411
7411
|
});
|
7412
|
-
|
7412
|
+
Ht.extend({
|
7413
7413
|
protocolVersion: S(),
|
7414
7414
|
capabilities: sg,
|
7415
7415
|
serverInfo: ng,
|
7416
7416
|
instructions: ue(S())
|
7417
7417
|
});
|
7418
|
-
var ig =
|
7418
|
+
var ig = Ht.extend({
|
7419
7419
|
nextCursor: ue(S())
|
7420
7420
|
}), cg = P({
|
7421
7421
|
name: S(),
|
@@ -7433,7 +7433,7 @@ var lg = P({
|
|
7433
7433
|
text: S()
|
7434
7434
|
}).loose(), ug = P({
|
7435
7435
|
type: T("image"),
|
7436
|
-
data:
|
7436
|
+
data: Hs(),
|
7437
7437
|
mimeType: S()
|
7438
7438
|
}).loose(), li = P({
|
7439
7439
|
/**
|
@@ -7447,18 +7447,18 @@ var lg = P({
|
|
7447
7447
|
}).loose(), dg = li.extend({
|
7448
7448
|
text: S()
|
7449
7449
|
}), hg = li.extend({
|
7450
|
-
blob:
|
7450
|
+
blob: Hs()
|
7451
7451
|
}), pg = P({
|
7452
7452
|
type: T("resource"),
|
7453
7453
|
resource: fe([dg, hg])
|
7454
7454
|
}).loose();
|
7455
|
-
|
7455
|
+
Ht.extend({
|
7456
7456
|
content: Ve(
|
7457
7457
|
fe([lg, ug, pg])
|
7458
7458
|
),
|
7459
7459
|
isError: le().default(!1).optional()
|
7460
7460
|
}).or(
|
7461
|
-
|
7461
|
+
Ht.extend({
|
7462
7462
|
toolResult: te()
|
7463
7463
|
})
|
7464
7464
|
);
|
@@ -7468,7 +7468,7 @@ var Br = "2.0", mg = P({
|
|
7468
7468
|
}).merge(og).strict(), fg = P({
|
7469
7469
|
jsonrpc: T(Br),
|
7470
7470
|
id: fe([S(), jt().int()]),
|
7471
|
-
result:
|
7471
|
+
result: Ht
|
7472
7472
|
}).strict(), gg = P({
|
7473
7473
|
jsonrpc: T(Br),
|
7474
7474
|
id: fe([S(), jt().int()]),
|
@@ -7590,7 +7590,7 @@ var bg = class {
|
|
7590
7590
|
throw new Error("The response body is empty.");
|
7591
7591
|
return this.processResponseStream(p.body);
|
7592
7592
|
}
|
7593
|
-
},
|
7593
|
+
}, Fa = class extends bg {
|
7594
7594
|
constructor(e = {}) {
|
7595
7595
|
super(e);
|
7596
7596
|
}
|
@@ -7612,7 +7612,7 @@ var bg = class {
|
|
7612
7612
|
constructor({
|
7613
7613
|
generateId: e = Rm,
|
7614
7614
|
id: t = e(),
|
7615
|
-
transport: r = new
|
7615
|
+
transport: r = new Fa(),
|
7616
7616
|
messageMetadataSchema: a,
|
7617
7617
|
dataPartSchemas: n,
|
7618
7618
|
state: o,
|
@@ -8009,14 +8009,14 @@ const ut = "FOOTER_BOTTOM", Rr = "FOOTER_TOP", $t = "APP_SET_FOOTER_POSITION", u
|
|
8009
8009
|
default:
|
8010
8010
|
return e;
|
8011
8011
|
}
|
8012
|
-
}, dt = "CHAT_SET_STATUS",
|
8012
|
+
}, dt = "CHAT_SET_STATUS", Ha = "CHAT_SET_USAGE", ht = "CHAT_SET_ATTACHMENTS", Wa = "CHAT_SET_PROVIDER", tt = "CHAT_RESET", Ga = "CHAT_SET_WEBSEARCH", di = (e, t) => {
|
8013
8013
|
switch (t.type) {
|
8014
8014
|
case Ga:
|
8015
8015
|
return {
|
8016
8016
|
...e,
|
8017
8017
|
webSearch: t.payload.webSearch
|
8018
8018
|
};
|
8019
|
-
case
|
8019
|
+
case Ha:
|
8020
8020
|
return {
|
8021
8021
|
...e,
|
8022
8022
|
tokenUsage: e.tokenUsage + t.payload.tokenUsage
|
@@ -8067,7 +8067,7 @@ const ut = "FOOTER_BOTTOM", Rr = "FOOTER_TOP", $t = "APP_SET_FOOTER_POSITION", u
|
|
8067
8067
|
default:
|
8068
8068
|
return e;
|
8069
8069
|
}
|
8070
|
-
}, Pg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, CHAT_RESET: tt, CHAT_SET_ATTACHMENTS: ht, CHAT_SET_PROVIDER: Wa, CHAT_SET_STATUS: dt, CHAT_SET_USAGE:
|
8070
|
+
}, Pg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, CHAT_RESET: tt, CHAT_SET_ATTACHMENTS: ht, CHAT_SET_PROVIDER: Wa, CHAT_SET_STATUS: dt, CHAT_SET_USAGE: Ha, CHAT_SET_WEBSEARCH: Ga, chatReducer: di }, Symbol.toStringTag, { value: "Module" })), Mg = (e, t) => {
|
8071
8071
|
switch (t?.type) {
|
8072
8072
|
case dc:
|
8073
8073
|
return {
|
@@ -8385,7 +8385,7 @@ var hi = (e, t, r) => {
|
|
8385
8385
|
function jg(e, t) {
|
8386
8386
|
return t != null ? Vg(e, t) : e;
|
8387
8387
|
}
|
8388
|
-
var Ie, yr, vr, Ot, zt, Pt, gt, va, ba,
|
8388
|
+
var Ie, yr, vr, Ot, zt, Pt, gt, va, ba, Fg = class {
|
8389
8389
|
constructor(e = []) {
|
8390
8390
|
Me(this, Ie, void 0), Me(this, yr, "ready"), Me(this, vr, void 0), Me(this, Ot, /* @__PURE__ */ new Set()), Me(this, zt, /* @__PURE__ */ new Set()), Me(this, Pt, /* @__PURE__ */ new Set()), this.pushMessage = (t) => {
|
8391
8391
|
We(this, Ie, ee(this, Ie).concat(t)), ee(this, gt).call(this);
|
@@ -8445,12 +8445,12 @@ va = /* @__PURE__ */ new WeakMap();
|
|
8445
8445
|
ba = /* @__PURE__ */ new WeakMap();
|
8446
8446
|
var yt, ho = class extends _g {
|
8447
8447
|
constructor({ messages: e, ...t }) {
|
8448
|
-
const r = new
|
8448
|
+
const r = new Fg(e);
|
8449
8449
|
super({ ...t, state: r }), Me(this, yt, void 0), this["~registerMessagesCallback"] = (a, n) => ee(this, yt)["~registerMessagesCallback"](a, n), this["~registerStatusCallback"] = (a) => ee(this, yt)["~registerStatusCallback"](a), this["~registerErrorCallback"] = (a) => ee(this, yt)["~registerErrorCallback"](a), We(this, yt, r);
|
8450
8450
|
}
|
8451
8451
|
};
|
8452
8452
|
yt = /* @__PURE__ */ new WeakMap();
|
8453
|
-
function
|
8453
|
+
function Hg({
|
8454
8454
|
experimental_throttle: e,
|
8455
8455
|
resume: t = !1,
|
8456
8456
|
...r
|
@@ -8542,10 +8542,10 @@ function Wg({
|
|
8542
8542
|
}, []), c = V(async (h) => {
|
8543
8543
|
for (const d of r.current.onToolCall)
|
8544
8544
|
await d(h);
|
8545
|
-
}, []), l =
|
8545
|
+
}, []), l = Hg({
|
8546
8546
|
id: t.id,
|
8547
8547
|
messages: t.messages,
|
8548
|
-
transport: t.transport || new
|
8548
|
+
transport: t.transport || new Fa({
|
8549
8549
|
api: t.api || "/api/chat",
|
8550
8550
|
body: t.body
|
8551
8551
|
}),
|
@@ -9709,14 +9709,14 @@ const ir = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, jy = (
|
|
9709
9709
|
"bg-surface-light": e === "light" || e === "alt-system",
|
9710
9710
|
"dark:bg-surface-light": e === "system",
|
9711
9711
|
"dark:bg-surface-darker": e === "alt-system"
|
9712
|
-
}),
|
9712
|
+
}), Fy = ({
|
9713
9713
|
mode: e
|
9714
9714
|
}) => y({
|
9715
9715
|
"text-copy-light": e === "dark" || e === "system",
|
9716
9716
|
"text-copy-dark": e === "light" || e === "alt-system",
|
9717
9717
|
"dark:text-copy-dark": e === "system",
|
9718
9718
|
"dark:text-copy-light": e === "alt-system"
|
9719
|
-
}),
|
9719
|
+
}), Hy = () => y("absolute", "size-2", "transform rotate-45"), Wy = ({
|
9720
9720
|
mode: e,
|
9721
9721
|
className: t,
|
9722
9722
|
tooltipClassName: r,
|
@@ -9726,11 +9726,11 @@ const ir = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, jy = (
|
|
9726
9726
|
Ly,
|
9727
9727
|
jy(),
|
9728
9728
|
bo({ mode: e }),
|
9729
|
-
|
9729
|
+
Fy({ mode: e }),
|
9730
9730
|
r
|
9731
9731
|
), s = y(
|
9732
9732
|
Zy,
|
9733
|
-
|
9733
|
+
Hy(),
|
9734
9734
|
bo({ mode: e }),
|
9735
9735
|
a
|
9736
9736
|
);
|
@@ -9767,11 +9767,11 @@ const ir = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, jy = (
|
|
9767
9767
|
placement: r,
|
9768
9768
|
middleware: [
|
9769
9769
|
jo(10),
|
9770
|
-
|
9770
|
+
Fo({
|
9771
9771
|
crossAxis: r.includes("-"),
|
9772
9772
|
fallbackAxisSideDirection: "start"
|
9773
9773
|
}),
|
9774
|
-
|
9774
|
+
Ho({ padding: 5 }),
|
9775
9775
|
Lc({ element: h.current })
|
9776
9776
|
]
|
9777
9777
|
});
|
@@ -10399,14 +10399,14 @@ const lr = {
|
|
10399
10399
|
radius: v,
|
10400
10400
|
variant: E,
|
10401
10401
|
animated: k
|
10402
|
-
}), I = s1({ mode: r, raw: i, iconClassName: b, variant: E }), $ = i1({ animated: k }), q = "flex items-center justify-center relative w-full h-full overflow-hidden", [N, U] = ta(), [A, K] = ta(), [ae, be] = ta(), L = z(0), Z = z(null),
|
10402
|
+
}), I = s1({ mode: r, raw: i, iconClassName: b, variant: E }), $ = i1({ animated: k }), q = "flex items-center justify-center relative w-full h-full overflow-hidden", [N, U] = ta(), [A, K] = ta(), [ae, be] = ta(), L = z(0), Z = z(null), F = z(null), ve = d1([D, Z]);
|
10403
10403
|
return Ke(() => {
|
10404
10404
|
ae && ae.current && k && (L.current = be.width + p1[d] + (c ? 0 : m1), Z.current && !Z.current.style.width && (Z.current.style.width = `${lr[d]}px`));
|
10405
10405
|
}, [be, ae, d, c, k]), Ke(() => {
|
10406
10406
|
if (Z && Z.current && k) {
|
10407
10407
|
let W = lr[d];
|
10408
|
-
m && N && U.width > 0 ? W = U.width + L.current : f && A && K.width > 0 && (W = K.width + L.current),
|
10409
|
-
N.current && m && (N.current.style.opacity = "1"), A.current && f && (A.current.style.opacity = "1"),
|
10408
|
+
m && N && U.width > 0 ? W = U.width + L.current : f && A && K.width > 0 && (W = K.width + L.current), F.current && clearTimeout(F.current), W !== parseInt(Z.current.style.width || "0", 10) && (N.current && (N.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"), Z.current.style.width = `${W}px`, W > lr[d] && (F.current = setTimeout(() => {
|
10409
|
+
N.current && m && (N.current.style.opacity = "1"), A.current && f && (A.current.style.opacity = "1"), F.current = null;
|
10410
10410
|
}, f1 * 0.8))), W === lr[d] && (N.current && (N.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"));
|
10411
10411
|
}
|
10412
10412
|
}, [
|
@@ -10419,7 +10419,7 @@ const lr = {
|
|
10419
10419
|
d,
|
10420
10420
|
k
|
10421
10421
|
]), R(() => () => {
|
10422
|
-
|
10422
|
+
F.current && clearTimeout(F.current);
|
10423
10423
|
}, []), /* @__PURE__ */ u(
|
10424
10424
|
Ci,
|
10425
10425
|
{
|
@@ -10968,19 +10968,19 @@ const et = ({
|
|
10968
10968
|
},
|
10969
10969
|
placement: a,
|
10970
10970
|
strategy: "fixed",
|
10971
|
-
middleware: [jo({ mainAxis: 10 }),
|
10971
|
+
middleware: [jo({ mainAxis: 10 }), Fo(), Ho()],
|
10972
10972
|
whileElementsMounted: jc
|
10973
10973
|
}), $ = Ko(I, {
|
10974
10974
|
event: "mousedown",
|
10975
10975
|
toggle: !0,
|
10976
10976
|
ignoreMouse: !1
|
10977
|
-
}), q = Yo(I, { role: "menu" }), N = qo(I, { bubbles: !0 }), U =
|
10977
|
+
}), q = Yo(I, { role: "menu" }), N = qo(I, { bubbles: !0 }), U = Fc(I, {
|
10978
10978
|
listRef: g,
|
10979
10979
|
activeIndex: f,
|
10980
10980
|
nested: !1,
|
10981
10981
|
onNavigate: p,
|
10982
10982
|
loop: !0
|
10983
|
-
}), A =
|
10983
|
+
}), A = Hc(I, {
|
10984
10984
|
listRef: v,
|
10985
10985
|
onMatch: l ? p : void 0,
|
10986
10986
|
activeIndex: f
|
@@ -10988,7 +10988,7 @@ const et = ({
|
|
10988
10988
|
noInternalClick: L,
|
10989
10989
|
focusMode: s,
|
10990
10990
|
mode: o
|
10991
|
-
} : {},
|
10991
|
+
} : {}, F = de.cloneElement(
|
10992
10992
|
e,
|
10993
10993
|
{
|
10994
10994
|
...Z,
|
@@ -11015,7 +11015,7 @@ const et = ({
|
|
11015
11015
|
}, [b, n]), R(() => {
|
11016
11016
|
l && b && b.events.emit("menuopen", { nodeId: k });
|
11017
11017
|
}, [b, l, k]), /* @__PURE__ */ x(Wc, { id: k, children: [
|
11018
|
-
|
11018
|
+
F,
|
11019
11019
|
/* @__PURE__ */ u(
|
11020
11020
|
Sa.Provider,
|
11021
11021
|
{
|
@@ -11393,7 +11393,7 @@ const zi = async () => (ra || (ra = import(
|
|
11393
11393
|
"./index.B8EJY2WR.js"
|
11394
11394
|
)), ra), Pi = async () => (aa || (aa = import(
|
11395
11395
|
/* webpackChunkName: "toast-utilities" */
|
11396
|
-
"./index.
|
11396
|
+
"./index.BcjsrdyX.js"
|
11397
11397
|
).then((e) => e.utilities)), aa), O1 = async () => {
|
11398
11398
|
try {
|
11399
11399
|
await Promise.all([zi(), Pi()]);
|
@@ -11583,7 +11583,7 @@ const zi = async () => (ra || (ra = import(
|
|
11583
11583
|
customStrings: {
|
11584
11584
|
confirmAction: "Enable",
|
11585
11585
|
cancelAction: "Cancel",
|
11586
|
-
title: "
|
11586
|
+
title: "Force Internet Lookup"
|
11587
11587
|
},
|
11588
11588
|
children: /* @__PURE__ */ x("ul", { className: "list-disc pl-5 space-y-2 text-sm", children: [
|
11589
11589
|
/* @__PURE__ */ x("li", { children: [
|
@@ -11604,7 +11604,7 @@ const zi = async () => (ra || (ra = import(
|
|
11604
11604
|
/* @__PURE__ */ u(
|
11605
11605
|
De,
|
11606
11606
|
{
|
11607
|
-
label: "
|
11607
|
+
label: "Force Internet Lookup",
|
11608
11608
|
mode: "light",
|
11609
11609
|
placement: "top",
|
11610
11610
|
className: e,
|
@@ -11616,7 +11616,7 @@ const zi = async () => (ra || (ra = import(
|
|
11616
11616
|
noBackground: !t,
|
11617
11617
|
mode: "dark",
|
11618
11618
|
focusMode: "light",
|
11619
|
-
label: "Force
|
11619
|
+
label: "Force Internet Lookup",
|
11620
11620
|
variant: t ? "selected" : "secondary",
|
11621
11621
|
onClick: p,
|
11622
11622
|
className: "text-sm",
|
@@ -11686,7 +11686,7 @@ const P1 = [".pdf", ".txt"], M1 = [
|
|
11686
11686
|
type: D1,
|
11687
11687
|
lastModified: e.lastModified
|
11688
11688
|
}
|
11689
|
-
),
|
11689
|
+
), F1 = ({
|
11690
11690
|
files: e,
|
11691
11691
|
clearFile: t
|
11692
11692
|
}) => e && e.length > 0 && /* @__PURE__ */ x("div", { className: "px-4 py-2", children: [
|
@@ -11725,7 +11725,7 @@ const P1 = [".pdf", ".txt"], M1 = [
|
|
11725
11725
|
" ",
|
11726
11726
|
wr(Ea)
|
11727
11727
|
] })
|
11728
|
-
] }), Zi = 24,
|
11728
|
+
] }), Zi = 24, H1 = 500, Ui = 2, W1 = 5, G1 = Zi * Ui, Io = W1 * Zi, J1 = "ready", K1 = "streaming", q1 = "error", Y1 = "submitted", dr = (e) => {
|
11729
11729
|
e.current && (e.current.style.height = `${G1}px`);
|
11730
11730
|
}, Q1 = () => {
|
11731
11731
|
const { user: e, getAccessToken: t } = Ue(), { setInputFocus: r } = fi(), [a, n] = M(!1), [o, s] = M(!1), [i, c] = M(null), [l, h] = M(!1), [d, m] = M(!1), {
|
@@ -11750,27 +11750,27 @@ const P1 = [".pdf", ".txt"], M1 = [
|
|
11750
11750
|
}), { data: N } = Qt({
|
11751
11751
|
user: e?.username,
|
11752
11752
|
getAccessToken: t
|
11753
|
-
}), U = z(null), A = z(null), K = z(!1), ae = z(0), be = z(null), L = z(null), Z =
|
11753
|
+
}), U = z(null), A = z(null), K = z(!1), ae = z(0), be = z(null), L = z(null), Z = Fl(), F = V1({
|
11754
11754
|
className: ""
|
11755
|
-
}), { setMessages: ve, status: W, id: qi, sendMessage: dn, input:
|
11756
|
-
onFinish: (
|
11755
|
+
}), { setMessages: ve, status: W, id: qi, sendMessage: dn, input: Fe, setInput: at } = mt({
|
11756
|
+
onFinish: (H) => {
|
11757
11757
|
q();
|
11758
|
-
const pe =
|
11758
|
+
const pe = H.message?.metadata;
|
11759
11759
|
pe?.tokenUsage && f({
|
11760
|
-
type:
|
11760
|
+
type: Ha,
|
11761
11761
|
payload: {
|
11762
11762
|
tokenUsage: pe.tokenUsage
|
11763
11763
|
}
|
11764
11764
|
});
|
11765
11765
|
}
|
11766
11766
|
}), Yi = V(
|
11767
|
-
(
|
11768
|
-
at(
|
11767
|
+
(H) => {
|
11768
|
+
at(H.target.value);
|
11769
11769
|
},
|
11770
11770
|
[at]
|
11771
11771
|
), Qi = V(
|
11772
|
-
(
|
11773
|
-
if (
|
11772
|
+
(H, he) => {
|
11773
|
+
if (H.preventDefault(), Fe.trim()) {
|
11774
11774
|
const pe = {
|
11775
11775
|
/**
|
11776
11776
|
* Include dynamic values that change during runtime. Static values like
|
@@ -11783,7 +11783,7 @@ const P1 = [".pdf", ".txt"], M1 = [
|
|
11783
11783
|
};
|
11784
11784
|
dn(
|
11785
11785
|
{
|
11786
|
-
text:
|
11786
|
+
text: Fe,
|
11787
11787
|
...he?.experimental_attachments && {
|
11788
11788
|
files: he.experimental_attachments
|
11789
11789
|
}
|
@@ -11795,28 +11795,28 @@ const P1 = [".pdf", ".txt"], M1 = [
|
|
11795
11795
|
), at("");
|
11796
11796
|
}
|
11797
11797
|
},
|
11798
|
-
[
|
11798
|
+
[Fe, dn, at, _, D, g]
|
11799
11799
|
), hn = V(
|
11800
|
-
async (
|
11801
|
-
|
11800
|
+
async (H) => {
|
11801
|
+
H === J1 && f({
|
11802
11802
|
type: dt,
|
11803
11803
|
payload: {
|
11804
11804
|
loading: !1,
|
11805
11805
|
streaming: !1
|
11806
11806
|
}
|
11807
|
-
}),
|
11807
|
+
}), H === Y1 && f({
|
11808
11808
|
type: dt,
|
11809
11809
|
payload: {
|
11810
11810
|
loading: !0,
|
11811
11811
|
streaming: !1
|
11812
11812
|
}
|
11813
|
-
}),
|
11813
|
+
}), H === K1 && f({
|
11814
11814
|
type: dt,
|
11815
11815
|
payload: {
|
11816
11816
|
loading: !1,
|
11817
11817
|
streaming: !0
|
11818
11818
|
}
|
11819
|
-
}),
|
11819
|
+
}), H === q1 && setTimeout(() => {
|
11820
11820
|
E || (f({
|
11821
11821
|
type: dt,
|
11822
11822
|
payload: {
|
@@ -11844,23 +11844,23 @@ const P1 = [".pdf", ".txt"], M1 = [
|
|
11844
11844
|
if (!L.current)
|
11845
11845
|
return;
|
11846
11846
|
L.current.style.height = "auto";
|
11847
|
-
const
|
11848
|
-
if (
|
11847
|
+
const H = L.current.scrollHeight;
|
11848
|
+
if (H > Io) {
|
11849
11849
|
L.current.style.height = `${Io}px`, L.current.style.overflowY = "scroll";
|
11850
11850
|
return;
|
11851
11851
|
}
|
11852
|
-
L.current.style.height = `${
|
11853
|
-
}, []), Xi = (
|
11854
|
-
if (
|
11855
|
-
const he = i ? Array.from(i) : [], pe = Array.from(
|
11852
|
+
L.current.style.height = `${H}px`, L.current.style.overflowY = "hidden";
|
11853
|
+
}, []), Xi = (H) => {
|
11854
|
+
if (H.preventDefault(), H.target.files && H.target.files.length > 0) {
|
11855
|
+
const he = i ? Array.from(i) : [], pe = Array.from(H.target.files), He = [...he];
|
11856
11856
|
let nt = !1;
|
11857
11857
|
for (const Be of pe) {
|
11858
11858
|
const jr = "." + Be.name.split(".").pop()?.toLowerCase();
|
11859
|
-
na.includes(jr) ?
|
11860
|
-
(
|
11861
|
-
) ||
|
11859
|
+
na.includes(jr) ? He.some(
|
11860
|
+
(Fr) => Fr.name === Be.name && Fr.size === Be.size && Fr.lastModified === Be.lastModified
|
11861
|
+
) || He.push(Be) : nt = !0;
|
11862
11862
|
}
|
11863
|
-
if (A.current && (A.current.value = ""), Li(
|
11863
|
+
if (A.current && (A.current.value = ""), Li(He) > Ea) {
|
11864
11864
|
U.current = `Total file size exceeds the limit of ${wr(
|
11865
11865
|
Ea
|
11866
11866
|
)}.`, h(!0);
|
@@ -11872,9 +11872,9 @@ const P1 = [".pdf", ".txt"], M1 = [
|
|
11872
11872
|
)} files are allowed.`, h(!0);
|
11873
11873
|
return;
|
11874
11874
|
}
|
11875
|
-
if (
|
11875
|
+
if (He.length > 0) {
|
11876
11876
|
const Be = new DataTransfer();
|
11877
|
-
|
11877
|
+
He.forEach((jr) => Be.items.add(jr)), c(Be.files), f({
|
11878
11878
|
type: ht,
|
11879
11879
|
payload: {
|
11880
11880
|
attachments: Be.files.length
|
@@ -11884,12 +11884,12 @@ const P1 = [".pdf", ".txt"], M1 = [
|
|
11884
11884
|
}
|
11885
11885
|
}, ec = () => {
|
11886
11886
|
A.current && A.current.click();
|
11887
|
-
}, tc = (
|
11887
|
+
}, tc = (H) => {
|
11888
11888
|
if (!i)
|
11889
11889
|
return;
|
11890
11890
|
const he = new DataTransfer();
|
11891
11891
|
Array.from(i).forEach((pe) => {
|
11892
|
-
pe !==
|
11892
|
+
pe !== H && he.items.add(pe);
|
11893
11893
|
}), he.files.length === 0 ? c(null) : c(he.files), f({
|
11894
11894
|
type: ht,
|
11895
11895
|
payload: {
|
@@ -11898,17 +11898,17 @@ const P1 = [".pdf", ".txt"], M1 = [
|
|
11898
11898
|
}), A.current && (A.current.value = "");
|
11899
11899
|
}, rc = V(() => {
|
11900
11900
|
A.current && (A.current.value = ""), c(null);
|
11901
|
-
}, []), pn = async (
|
11902
|
-
|
11901
|
+
}, []), pn = async (H) => {
|
11902
|
+
H.preventDefault(), dr(L);
|
11903
11903
|
const he = await t();
|
11904
11904
|
let pe;
|
11905
11905
|
if (i && i.length > 0) {
|
11906
|
-
const
|
11906
|
+
const He = Array.from(i).map(
|
11907
11907
|
(Xt) => j1(Xt)
|
11908
11908
|
), nt = new DataTransfer();
|
11909
|
-
|
11909
|
+
He.forEach((Xt) => nt.items.add(Xt)), pe = nt.files;
|
11910
11910
|
}
|
11911
|
-
Qi(
|
11911
|
+
Qi(H, {
|
11912
11912
|
headers: {
|
11913
11913
|
"Content-Type": "application/json",
|
11914
11914
|
authorization: `Bearer ${he}`,
|
@@ -11919,8 +11919,8 @@ const P1 = [".pdf", ".txt"], M1 = [
|
|
11919
11919
|
},
|
11920
11920
|
experimental_attachments: pe
|
11921
11921
|
}), rc();
|
11922
|
-
}, ac = (
|
11923
|
-
Vr(), Yi(
|
11922
|
+
}, ac = (H) => {
|
11923
|
+
Vr(), Yi(H);
|
11924
11924
|
};
|
11925
11925
|
return Aa([
|
11926
11926
|
[
|
@@ -11931,23 +11931,23 @@ const P1 = [".pdf", ".txt"], M1 = [
|
|
11931
11931
|
]
|
11932
11932
|
]), R(() => {
|
11933
11933
|
if (O.prompt !== "") {
|
11934
|
-
const
|
11935
|
-
|
11934
|
+
const H = O.prompt.endsWith(":") && !O.prompt.endsWith(": ") ? O.prompt + " " : O.prompt;
|
11935
|
+
H.indexOf(vn) !== -1 ? navigator.clipboard.readText().then((pe) => {
|
11936
11936
|
const nt = pe.startsWith("http://") || pe.startsWith("https://") ? pe : `"""${pe}"""`;
|
11937
|
-
at(
|
11938
|
-
}) : at(
|
11937
|
+
at(H.replace(vn, nt));
|
11938
|
+
}) : at(H), !Oe() && L.current && L.current.focus(), I({
|
11939
11939
|
type: zo
|
11940
11940
|
});
|
11941
11941
|
}
|
11942
11942
|
}, [O, I, at]), R(() => {
|
11943
11943
|
if (K.current === !1) {
|
11944
|
-
K.current = !0, !
|
11944
|
+
K.current = !0, !Fe && dr(L);
|
11945
11945
|
return;
|
11946
11946
|
}
|
11947
11947
|
b > 0 && b !== ae.current ? (ae.current = b, setTimeout(() => {
|
11948
|
-
L.current && (!
|
11949
|
-
},
|
11950
|
-
}, [b, v,
|
11948
|
+
L.current && (!Fe && dr(L), L.current.focus());
|
11949
|
+
}, H1)) : v === !1 && !Fe && (dr(L), !Oe() && L.current && L.current.focus());
|
11950
|
+
}, [b, v, Fe]), R(() => {
|
11951
11951
|
O.lastTriggeredTimestamp && setTimeout(() => {
|
11952
11952
|
Vr();
|
11953
11953
|
}, 100);
|
@@ -11955,7 +11955,7 @@ const P1 = [".pdf", ".txt"], M1 = [
|
|
11955
11955
|
(async () => {
|
11956
11956
|
if (it())
|
11957
11957
|
return;
|
11958
|
-
const
|
11958
|
+
const H = await t(), he = await Gt(H, [Lt.REASONING]), pe = await Gt(H, [Lt.WEBSEARCH]);
|
11959
11959
|
n(he), s(pe);
|
11960
11960
|
})();
|
11961
11961
|
}, [t]), R(() => {
|
@@ -11977,7 +11977,7 @@ const P1 = [".pdf", ".txt"], M1 = [
|
|
11977
11977
|
children: /* @__PURE__ */ u("p", { className: "m-0", children: U.current })
|
11978
11978
|
}
|
11979
11979
|
),
|
11980
|
-
/* @__PURE__ */ u("div", { className:
|
11980
|
+
/* @__PURE__ */ u("div", { className: F.wrapper, ref: be, children: /* @__PURE__ */ x("form", { onSubmit: pn, children: [
|
11981
11981
|
/* @__PURE__ */ u("div", { id: Z, className: "sr-only", children: it() ? bn : d ? _n : wn }),
|
11982
11982
|
/* @__PURE__ */ x("div", { className: "relative", children: [
|
11983
11983
|
/* @__PURE__ */ u(
|
@@ -11989,7 +11989,7 @@ const P1 = [".pdf", ".txt"], M1 = [
|
|
11989
11989
|
placeholder: it() ? bn : d ? _n : wn,
|
11990
11990
|
translate: "no",
|
11991
11991
|
onChange: ac,
|
11992
|
-
value:
|
11992
|
+
value: Fe,
|
11993
11993
|
onKeyDown: Dl([
|
11994
11994
|
[d ? "enter" : "mod+Enter", pn]
|
11995
11995
|
]),
|
@@ -11999,7 +11999,7 @@ const P1 = [".pdf", ".txt"], M1 = [
|
|
11999
11999
|
onBlur: () => {
|
12000
12000
|
Oe() && (document.body.removeAttribute("data-input-focused"), r(!1));
|
12001
12001
|
},
|
12002
|
-
className:
|
12002
|
+
className: F.textArea,
|
12003
12003
|
"aria-labelledby": Z
|
12004
12004
|
}
|
12005
12005
|
),
|
@@ -12016,7 +12016,7 @@ const P1 = [".pdf", ".txt"], M1 = [
|
|
12016
12016
|
}
|
12017
12017
|
)
|
12018
12018
|
] }),
|
12019
|
-
/* @__PURE__ */ u(
|
12019
|
+
/* @__PURE__ */ u(F1, { files: i, clearFile: tc }),
|
12020
12020
|
/* @__PURE__ */ x("div", { className: "p-2 flex items-center", children: [
|
12021
12021
|
/* @__PURE__ */ u(z1, { className: "order-7 ml-auto" }),
|
12022
12022
|
/* @__PURE__ */ u(qy, { className: "order-1 mr-4 sm:mr-2" }),
|
@@ -12045,7 +12045,7 @@ const P1 = [".pdf", ".txt"], M1 = [
|
|
12045
12045
|
dispatch: s
|
12046
12046
|
} = re(Qa), [i] = M(
|
12047
12047
|
() => kn[Math.floor(Math.random() * kn.length)]
|
12048
|
-
), { messages: c } = mt(), { height: l } =
|
12048
|
+
), { messages: c } = mt(), { height: l } = Hl(), { height: h } = Wl(), [d, m] = as(), f = Ee(() => Oe(), []), p = l - h, g = Ee(() => {
|
12049
12049
|
const v = f ? Sc : Do;
|
12050
12050
|
return p > 0 && p < 100 ? kc : v;
|
12051
12051
|
}, [p, f]);
|
@@ -12229,33 +12229,33 @@ const P1 = [".pdf", ".txt"], M1 = [
|
|
12229
12229
|
}, tv = St(
|
12230
12230
|
() => import(
|
12231
12231
|
/* webpackChunkName: "modal-profile" */
|
12232
|
-
"./ProfileEntry.
|
12232
|
+
"./ProfileEntry.Cjd0chWx.js"
|
12233
12233
|
).then((e) => ({
|
12234
12234
|
default: e.Profile
|
12235
12235
|
}))
|
12236
12236
|
), rv = St(
|
12237
12237
|
() => import(
|
12238
12238
|
/* webpackChunkName: "modal-settings" */
|
12239
|
-
"./SettingsEntry.
|
12239
|
+
"./SettingsEntry.Bf_QHI_c.js"
|
12240
12240
|
).then((e) => ({
|
12241
12241
|
default: e.SettingsPanel
|
12242
12242
|
}))
|
12243
12243
|
), av = St(
|
12244
12244
|
() => import(
|
12245
12245
|
/* webpackChunkName: "modal-history" */
|
12246
|
-
"./HistoryEntry.
|
12246
|
+
"./HistoryEntry.CXmbpyvN.js"
|
12247
12247
|
).then((e) => ({
|
12248
12248
|
default: e.HistoryPanel
|
12249
12249
|
}))
|
12250
12250
|
), nv = St(
|
12251
12251
|
() => import(
|
12252
12252
|
/* webpackChunkName: "modal-about" */
|
12253
|
-
"./AboutEntry.
|
12253
|
+
"./AboutEntry.BItg_Z_k.js"
|
12254
12254
|
).then((e) => ({ default: e.About }))
|
12255
12255
|
), ov = St(
|
12256
12256
|
() => import(
|
12257
12257
|
/* webpackChunkName: "modal-usage" */
|
12258
|
-
"./UsageEntry.
|
12258
|
+
"./UsageEntry.uYJ25BOH.js"
|
12259
12259
|
).then((e) => ({ default: e.Usage }))
|
12260
12260
|
), sv = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ u(Vo, { fallback: /* @__PURE__ */ u("div", {}), children: (() => {
|
12261
12261
|
switch (e) {
|
@@ -12278,19 +12278,19 @@ const P1 = [".pdf", ".txt"], M1 = [
|
|
12278
12278
|
const { logout: t, getAccessToken: r } = Ue(), [a, n] = M(null), [o, s] = M(!1), [i, c] = M(!1), [l, h] = M(!1), [d, m] = M(!1), f = V(() => {
|
12279
12279
|
l || (import(
|
12280
12280
|
/* webpackChunkName: "modal-profile" */
|
12281
|
-
"./ProfileEntry.
|
12281
|
+
"./ProfileEntry.Cjd0chWx.js"
|
12282
12282
|
), import(
|
12283
12283
|
/* webpackChunkName: "modal-settings" */
|
12284
|
-
"./SettingsEntry.
|
12284
|
+
"./SettingsEntry.Bf_QHI_c.js"
|
12285
12285
|
), import(
|
12286
12286
|
/* webpackChunkName: "modal-history" */
|
12287
|
-
"./HistoryEntry.
|
12287
|
+
"./HistoryEntry.CXmbpyvN.js"
|
12288
12288
|
), import(
|
12289
12289
|
/* webpackChunkName: "modal-about" */
|
12290
|
-
"./AboutEntry.
|
12290
|
+
"./AboutEntry.BItg_Z_k.js"
|
12291
12291
|
), import(
|
12292
12292
|
/* webpackChunkName: "modal-usage" */
|
12293
|
-
"./UsageEntry.
|
12293
|
+
"./UsageEntry.uYJ25BOH.js"
|
12294
12294
|
), h(!0));
|
12295
12295
|
}, [l]), p = V((b) => {
|
12296
12296
|
n(b);
|
@@ -12922,14 +12922,14 @@ const pr = {
|
|
12922
12922
|
radius: v,
|
12923
12923
|
variant: E,
|
12924
12924
|
animated: k
|
12925
|
-
}), I = vv({ mode: r, raw: i, iconClassName: b, variant: E }), $ = bv({ animated: k }), q = "flex items-center justify-center relative w-full h-full overflow-hidden", [N, U] = oa(), [A, K] = oa(), [ae, be] = oa(), L = z(0), Z = z(null),
|
12925
|
+
}), I = vv({ mode: r, raw: i, iconClassName: b, variant: E }), $ = bv({ animated: k }), q = "flex items-center justify-center relative w-full h-full overflow-hidden", [N, U] = oa(), [A, K] = oa(), [ae, be] = oa(), L = z(0), Z = z(null), F = z(null), ve = Sv([D, Z]);
|
12926
12926
|
return Ke(() => {
|
12927
12927
|
ae && ae.current && k && (L.current = be.width + xv[d] + (c ? 0 : Iv), Z.current && !Z.current.style.width && (Z.current.style.width = `${pr[d]}px`));
|
12928
12928
|
}, [be, ae, d, c, k]), Ke(() => {
|
12929
12929
|
if (Z && Z.current && k) {
|
12930
12930
|
let W = pr[d];
|
12931
|
-
m && N && U.width > 0 ? W = U.width + L.current : f && A && K.width > 0 && (W = K.width + L.current),
|
12932
|
-
N.current && m && (N.current.style.opacity = "1"), A.current && f && (A.current.style.opacity = "1"),
|
12931
|
+
m && N && U.width > 0 ? W = U.width + L.current : f && A && K.width > 0 && (W = K.width + L.current), F.current && clearTimeout(F.current), W !== parseInt(Z.current.style.width || "0", 10) && (N.current && (N.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"), Z.current.style.width = `${W}px`, W > pr[d] && (F.current = setTimeout(() => {
|
12932
|
+
N.current && m && (N.current.style.opacity = "1"), A.current && f && (A.current.style.opacity = "1"), F.current = null;
|
12933
12933
|
}, Tv * 0.8))), W === pr[d] && (N.current && (N.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"));
|
12934
12934
|
}
|
12935
12935
|
}, [
|
@@ -12942,7 +12942,7 @@ const pr = {
|
|
12942
12942
|
d,
|
12943
12943
|
k
|
12944
12944
|
]), R(() => () => {
|
12945
|
-
|
12945
|
+
F.current && clearTimeout(F.current);
|
12946
12946
|
}, []), /* @__PURE__ */ u(
|
12947
12947
|
ji,
|
12948
12948
|
{
|
@@ -13048,7 +13048,7 @@ const Cv = de.forwardRef(
|
|
13048
13048
|
}
|
13049
13049
|
);
|
13050
13050
|
Cv.displayName = "ButtonSort";
|
13051
|
-
const
|
13051
|
+
const Fi = ({
|
13052
13052
|
children: e,
|
13053
13053
|
fill: t,
|
13054
13054
|
viewBox: r,
|
@@ -13098,7 +13098,7 @@ const Nv = ({
|
|
13098
13098
|
monotone: a,
|
13099
13099
|
...n
|
13100
13100
|
}) => /* @__PURE__ */ x(
|
13101
|
-
|
13101
|
+
Fi,
|
13102
13102
|
{
|
13103
13103
|
defaultViewBox: "0 0 448 512",
|
13104
13104
|
size: "size-5",
|
@@ -13124,7 +13124,7 @@ const Nv = ({
|
|
13124
13124
|
monotone: a,
|
13125
13125
|
...n
|
13126
13126
|
}) => /* @__PURE__ */ u(
|
13127
|
-
|
13127
|
+
Fi,
|
13128
13128
|
{
|
13129
13129
|
defaultViewBox: "0 0 512 512",
|
13130
13130
|
size: "size-5",
|
@@ -13288,7 +13288,7 @@ try {
|
|
13288
13288
|
});
|
13289
13289
|
} catch {
|
13290
13290
|
}
|
13291
|
-
const No = "av-spinner",
|
13291
|
+
const No = "av-spinner", Hi = ({
|
13292
13292
|
spinnerRef: e,
|
13293
13293
|
mode: t = "system",
|
13294
13294
|
type: r = "circle",
|
@@ -13542,7 +13542,7 @@ const Ao = "av-button", Ur = "icon", ln = "button", Ia = "link", Dv = ({
|
|
13542
13542
|
});
|
13543
13543
|
if (r === "selected")
|
13544
13544
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
13545
|
-
},
|
13545
|
+
}, Fv = ({
|
13546
13546
|
mode: e,
|
13547
13547
|
noBorder: t,
|
13548
13548
|
variant: r
|
@@ -13572,7 +13572,7 @@ const Ao = "av-button", Ur = "icon", ln = "button", Ia = "link", Dv = ({
|
|
13572
13572
|
});
|
13573
13573
|
if (r === "selected")
|
13574
13574
|
return "border border-border-selected-dark";
|
13575
|
-
},
|
13575
|
+
}, Hv = ({
|
13576
13576
|
focusMode: e
|
13577
13577
|
}) => y("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
13578
13578
|
"focus:outline-focus-dark": e === "dark",
|
@@ -13647,8 +13647,8 @@ const Ao = "av-button", Ur = "icon", ln = "button", Ia = "link", Dv = ({
|
|
13647
13647
|
animated: v
|
13648
13648
|
}),
|
13649
13649
|
Bv({ type: e, size: i, labelRight: l, labelLeft: h }),
|
13650
|
-
|
13651
|
-
|
13650
|
+
Fv({ mode: a, variant: m, noBorder: c }),
|
13651
|
+
Hv({ focusMode: n }),
|
13652
13652
|
Vv({ mode: a, variant: m, disabled: o }),
|
13653
13653
|
jv({ mode: a, variant: m, disabled: o }),
|
13654
13654
|
{
|
@@ -13808,14 +13808,14 @@ const mr = {
|
|
13808
13808
|
radius: v,
|
13809
13809
|
variant: E,
|
13810
13810
|
animated: k
|
13811
|
-
}), I = Wv({ mode: r, raw: i, iconClassName: b, variant: E }), $ = Gv({ animated: k }), q = "flex items-center justify-center relative w-full h-full overflow-hidden", [N, U] = sa(), [A, K] = sa(), [ae, be] = sa(), L = z(0), Z = z(null),
|
13811
|
+
}), I = Wv({ mode: r, raw: i, iconClassName: b, variant: E }), $ = Gv({ animated: k }), q = "flex items-center justify-center relative w-full h-full overflow-hidden", [N, U] = sa(), [A, K] = sa(), [ae, be] = sa(), L = z(0), Z = z(null), F = z(null), ve = qv([D, Z]);
|
13812
13812
|
return Ke(() => {
|
13813
13813
|
ae && ae.current && k && (L.current = be.width + Qv[d] + (c ? 0 : Xv), Z.current && !Z.current.style.width && (Z.current.style.width = `${mr[d]}px`));
|
13814
13814
|
}, [be, ae, d, c, k]), Ke(() => {
|
13815
13815
|
if (Z && Z.current && k) {
|
13816
13816
|
let W = mr[d];
|
13817
|
-
m && N && U.width > 0 ? W = U.width + L.current : f && A && K.width > 0 && (W = K.width + L.current),
|
13818
|
-
N.current && m && (N.current.style.opacity = "1"), A.current && f && (A.current.style.opacity = "1"),
|
13817
|
+
m && N && U.width > 0 ? W = U.width + L.current : f && A && K.width > 0 && (W = K.width + L.current), F.current && clearTimeout(F.current), W !== parseInt(Z.current.style.width || "0", 10) && (N.current && (N.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"), Z.current.style.width = `${W}px`, W > mr[d] && (F.current = setTimeout(() => {
|
13818
|
+
N.current && m && (N.current.style.opacity = "1"), A.current && f && (A.current.style.opacity = "1"), F.current = null;
|
13819
13819
|
}, e2 * 0.8))), W === mr[d] && (N.current && (N.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"));
|
13820
13820
|
}
|
13821
13821
|
}, [
|
@@ -13828,7 +13828,7 @@ const mr = {
|
|
13828
13828
|
d,
|
13829
13829
|
k
|
13830
13830
|
]), R(() => () => {
|
13831
|
-
|
13831
|
+
F.current && clearTimeout(F.current);
|
13832
13832
|
}, []), /* @__PURE__ */ u(
|
13833
13833
|
un,
|
13834
13834
|
{
|
@@ -14004,7 +14004,7 @@ const o2 = ({ content: e }) => /* @__PURE__ */ u(
|
|
14004
14004
|
), $o = 1, s2 = 150, i2 = St(
|
14005
14005
|
() => import(
|
14006
14006
|
/* webpackChunkName: "LazyMessageAssistant" */
|
14007
|
-
"./ChatBubbleAssistant.
|
14007
|
+
"./ChatBubbleAssistant.CcLVLe6h.js"
|
14008
14008
|
)
|
14009
14009
|
), c2 = de.memo(
|
14010
14010
|
({
|
@@ -14030,7 +14030,7 @@ const o2 = ({ content: e }) => /* @__PURE__ */ u(
|
|
14030
14030
|
}
|
14031
14031
|
i(!1);
|
14032
14032
|
}
|
14033
|
-
}, [t, s, n]), e === Bo && t ? /* @__PURE__ */ u(o2, { content: t }) : (e === Zt || e === En) && n && (o === "submitted" || o === "streaming") && s ? /* @__PURE__ */ u(cn, { tail: !0, children: /* @__PURE__ */ u(
|
14033
|
+
}, [t, s, n]), e === Bo && t ? /* @__PURE__ */ u(o2, { content: t }) : (e === Zt || e === En) && n && (o === "submitted" || o === "streaming") && s ? /* @__PURE__ */ u(cn, { tail: !0, children: /* @__PURE__ */ u(Hi, { type: "dots" }) }) : (e === Zt || e === En) && t && t.trim().length >= $o ? /* @__PURE__ */ u(Vo, { fallback: /* @__PURE__ */ u("span", {}), children: /* @__PURE__ */ u(
|
14034
14034
|
i2,
|
14035
14035
|
{
|
14036
14036
|
role: e,
|
@@ -14084,7 +14084,7 @@ const d2 = () => {
|
|
14084
14084
|
c
|
14085
14085
|
);
|
14086
14086
|
}),
|
14087
|
-
n && /* @__PURE__ */ u(cn, { tail: !0, children: /* @__PURE__ */ u(
|
14087
|
+
n && /* @__PURE__ */ u(cn, { tail: !0, children: /* @__PURE__ */ u(Hi, { type: "dots" }) })
|
14088
14088
|
] }) : null;
|
14089
14089
|
}, h2 = () => {
|
14090
14090
|
const { isAuthenticated: e } = Ue(), { ref: t, inViewport: r } = Ll(), a = z(null), n = z(null), { isVirtualKeyboardActive: o } = fi(), {
|
@@ -14181,7 +14181,7 @@ function Ki({
|
|
14181
14181
|
}), { data: U } = Qt({
|
14182
14182
|
user: r?.username,
|
14183
14183
|
getAccessToken: a
|
14184
|
-
}), A = Ee(() => new
|
14184
|
+
}), A = Ee(() => new Fa({
|
14185
14185
|
api: `${Ja}/api/generate`,
|
14186
14186
|
// Only include static values in transport body.
|
14187
14187
|
body: {
|
@@ -14314,7 +14314,7 @@ export {
|
|
14314
14314
|
E2 as Ye,
|
14315
14315
|
ml as a,
|
14316
14316
|
Lg as getDefaultExportFromCjs,
|
14317
|
-
|
14317
|
+
Fl as i,
|
14318
14318
|
Ka as mutateCall,
|
14319
14319
|
N2 as nt,
|
14320
14320
|
Ll as p,
|