@gram-ai/elements 1.13.9 → 1.14.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/README.md +41 -352
- package/dist/elements.cjs +9 -6
- package/dist/elements.css +1 -1
- package/dist/elements.js +502 -451
- package/dist/hooks/useElements.d.ts +4 -0
- package/package.json +8 -4
package/dist/elements.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as c, Fragment as At, jsxs as O } from "react/jsx-runtime";
|
|
2
|
-
import { j as _, s as P, $ as qs, a as Xs, b as Ys, c as Qs, d as el, e as tl, f as nl, g as rl, h as il, i as al, k as ol, l as sl, m as ll, n as cl, o as ul, p as dl, q as ml, r as fl, t as pl, u as gl, v as vl, w as hl, x as bl, y as yl, z as $l, A as xl, B as _l, C as wl, D as Sl, E as Il, F as kl, G as Nl, H as El, I as Ol, J as Cl, K as Pl, L as Tl, M as Dl, N as Rl, O as Al, P as jl, Q as Ul, R as zl, S as Ml, T as Ll, U as Fl, V as Zl, W as Wl, X as Bl, Y as Vl, Z as Jl, _ as Gl, a0 as Hl, a1 as Kl, a2 as ql, a3 as Xl, a4 as Yl, a5 as Ql, a6 as ec, a7 as tc, a8 as nc, a9 as rc, aa as ic, ab as ac, ac as oc, ad as sc, ae as lc, af as cc, ag as uc, ah as dc, ai as mc, aj as fc, ak as pc, al as gc, am as vc, an as hc, ao as bc, ap as yc, aq as $c, ar as xc, as as _c, at as wc, au as Sc, av as Ic, aw as kc, ax as Nc, ay as Ec, az as Oc, aA as Cc, aB as Pc, aC as Tc, aD as Dc, aE as Rc, aF as Ac, aG as jc, aH as Uc, aI as zc, aJ as Mc, aK as
|
|
3
|
-
import { getExternalStoreMessages as Sn, unstable_createMessageConverter as Jp, useAssistantApi as
|
|
2
|
+
import { j as _, s as P, $ as qs, a as Xs, b as Ys, c as Qs, d as el, e as tl, f as nl, g as rl, h as il, i as al, k as ol, l as sl, m as ll, n as cl, o as ul, p as dl, q as ml, r as fl, t as pl, u as gl, v as vl, w as hl, x as bl, y as yl, z as $l, A as xl, B as _l, C as wl, D as Sl, E as Il, F as kl, G as Nl, H as El, I as Ol, J as Cl, K as Pl, L as Tl, M as Dl, N as Rl, O as Al, P as jl, Q as Ul, R as zl, S as Ml, T as Ll, U as Fl, V as Zl, W as Wl, X as Bl, Y as Vl, Z as Jl, _ as Gl, a0 as Hl, a1 as Kl, a2 as ql, a3 as Xl, a4 as Yl, a5 as Ql, a6 as ec, a7 as tc, a8 as nc, a9 as rc, aa as ic, ab as ac, ac as oc, ad as sc, ae as lc, af as cc, ag as uc, ah as dc, ai as mc, aj as fc, ak as pc, al as gc, am as vc, an as hc, ao as bc, ap as yc, aq as $c, ar as xc, as as _c, at as wc, au as Sc, av as Ic, aw as kc, ax as Nc, ay as Ec, az as Oc, aA as Cc, aB as Pc, aC as Tc, aD as Dc, aE as Rc, aF as Ac, aG as jc, aH as Uc, aI as zc, aJ as Mc, aK as hi, aL as Lc, aM as bi, aN as yi, aO as Fc, aP as Zc, aQ as $i, aR as xi, aS as Wc, aT as Bc, aU as Vc, aV as Jc, aW as Gc, aX as Hc, aY as Kc, aZ as qc, a_ as Xc, a$ as Yc, b0 as _i, b1 as wi, b2 as Si, b3 as Ii, b4 as ki, b5 as Qc, b6 as eu, b7 as tu, b8 as nu, b9 as ru, ba as iu, bb as au, bc as ou, bd as su, be as lu, bf as cu, bg as uu, bh as du, bi as Ni, bj as mu, bk as fu, bl as pu, bm as gu, bn as Ei, bo as xn, bp as vu, bq as Oi, br as hu, bs as bu, bt as yu, bu as $u, bv as xu, bw as _u, bx as wu, by as Su, bz as Iu, bA as ku, bB as Nu, bC as Eu, bD as Ou, bE as Ci, bF as Cu, bG as Pi, bH as Ti, bI as _n, bJ as Pu, bK as Tu, bL as Di, bM as Ri, bN as Ai, bO as ji, bP as Ui, bQ as zi, bR as Du, bS as Ru, bT as Au, bU as Mi, bV as ju, bW as Li, bX as Uu, bY as Fi, bZ as Zi, b_ as zu, b$ as Mu, c0 as Lu, c1 as Fu, c2 as Wi, c3 as Zu, c4 as Wu, c5 as Bu, c6 as Bi, c7 as Vu, c8 as Vi, c9 as Ju, ca as Gu, cb as Hu, cc as Ji, cd as Ku, ce as qu, cf as Xu, cg as Yu, ch as Qu, ci as ed, cj as td, ck as Gi, cl as Hi, cm as Ki, cn as nd, co as rd, cp as id, cq as ad, cr as od, cs as sd, ct as ld, cu as qi, cv as Xi, cw as cd, cx as Yi, cy as ud, cz as dd, cA as md, cB as fd, cC as pd, cD as gd, cE as vd, cF as Qi, cG as hd, cH as bd, cI as yd, cJ as $d, cK as xd, cL as _d, cM as wd, cN as ea, cO as jn, cP as Sd, cQ as Id, cR as kd, cS as Nd, cT as Ed, cU as ta, cV as na, cW as Od, cX as ra, cY as Cd, cZ as Pd, c_ as Td, c$ as Dd, d0 as Rd, d1 as Ad, d2 as ia, d3 as aa, d4 as oa, d5 as jd, d6 as Ud, d7 as zd, d8 as Md, d9 as Ld, da as Fd, db as Zd, dc as sa, dd as la, de as ca, df as Wd, dg as ua, dh as da, di as ma, dj as fa, dk as pa, dl as Bd, dm as Vd, dn as Jd, dp as Gd, dq as Hd, dr as Kd, ds as qd, dt as Xd, du as Yd, dv as Qd, dw as em, dx as tm, dy as nm, dz as rm, dA as im, dB as am, dC as om, dD as sm, dE as lm, dF as cm, dG as um, dH as dm, dI as mm, dJ as fm, dK as pm, dL as gm, dM as vm, dN as hm, dO as bm, dP as ym, dQ as $m, dR as xm, dS as _m, dT as wm, dU as Sm, dV as Im, dW as km, dX as Nm, dY as Em, dZ as Om, d_ as Cm, d$ as Pm, e0 as Tm, e1 as Dm, e2 as Rm, e3 as Am, e4 as jm, e5 as Um, e6 as zm, e7 as Mm, e8 as Lm, e9 as Fm, ea as Zm, eb as Wm, ec as Bm, ed as Vm, ee as Jm, ef as Gm, eg as Hm, eh as Km, ei as qm, ej as Xm, ek as Ym, el as Qm, em as ef, en as tf, eo as nf, ep as rf, eq as af, er as of, es as sf, et as yr, eu as lf, ev as Me, ew as cf, ex as uf, ey as df, ez as X, eA as mf, eB as ff, eC as pf, eD as gf, eE as vf, eF as hf, eG as bf, eH as Un, eI as yf, eJ as $f, eK as xf, eL as _f, eM as ga, eN as wf, eO as Sf, eP as If, eQ as kf, eR as Nf, eS as va, eT as Ef, eU as Of, eV as Cf, eW as Pf, eX as Tf, eY as Df, eZ as Rf, e_ as Af, e$ as jf, f0 as mt, f1 as Uf, f2 as zf, f3 as Mf, f4 as Lf, f5 as Ff, f6 as Zf, f7 as Wf, f8 as Bf, f9 as Vf, fa as Jf, fb as Gf, fc as ha, fd as T, fe as Hf, ff as Kf, fg as qf, fh as Xf, fi as Yf, fj as Qf, fk as ep, fl as tp, fm as np, fn as ba, fo as rp, fp as ip, fq as ya, fr as z, fs as ap, ft as op, fu as sp, fv as lp, fw as cp, fx as up, fy as dp, fz as mp, fA as fp, fB as jt, fC as pp, fD as gp, fE as vp, fF as hp, fG as bp, fH as yp, fI as $p, fJ as xp, fK as _p, fL as U, fM as E, fN as wp, fO as Sp, fP as Ip, fQ as kp, fR as Np, fS as Ep, fT as Op, fU as Cp, fV as Pp, fW as Tp, fX as Dp, fY as $a, fZ as re, f_ as xe, f$ as Rp, g0 as Ap, g1 as jp, g2 as Up, g3 as zp, g4 as Mp, g5 as Lp, g6 as Fp, g7 as Fe, g8 as Ze, g9 as $r, ga as xr, gb as xa, gc as _r, gd as wn, ge as Bt, gf as Zp, gg as Wp, gh as Bp, gi as Vp, gj as wr, gk as _a } from "./index-DxNldiiY.js";
|
|
3
|
+
import { getExternalStoreMessages as Sn, unstable_createMessageConverter as Jp, useAssistantApi as wa, INTERNAL as Sa, useRuntimeAdapters as Gp, useExternalStoreRuntime as Hp, unstable_useCloudThreadListAdapter as Kp, unstable_useRemoteThreadListRuntime as qp, useAssistantState as se, AssistantRuntimeProvider as Xp, useScrollLock as Yp, MessagePrimitive as Te, ComposerPrimitive as ge, AttachmentPrimitive as In, ThreadPrimitive as _e, ErrorPrimitive as Sr, BranchPickerPrimitive as it, ActionBarPrimitive as ut } from "@assistant-ui/react";
|
|
4
4
|
import * as f from "react";
|
|
5
|
-
import
|
|
6
|
-
import { c as M, r as
|
|
7
|
-
import { LazyMotion as Vt, domAnimation as
|
|
5
|
+
import Ia, { useRef as we, useCallback as Ut, useState as K, useEffect as Pe, useMemo as Ie, useSyncExternalStore as sn, useLayoutEffect as Qp, forwardRef as eg, memo as zn } from "react";
|
|
6
|
+
import { c as M, r as Ir, E as tg, a as ng, b as k, u as Y, C as rg, d as Le, e as et, f as ka } from "./index-SAJg5Cz7.js";
|
|
7
|
+
import { LazyMotion as Vt, domAnimation as Na, AnimatePresence as Ea, MotionConfig as Oa, domMax as Ca } from "motion/react";
|
|
8
8
|
import * as fe from "motion/react-m";
|
|
9
9
|
import { unstable_memoizeMarkdownComponents as ig, useIsMarkdownCodeBlock as ag, MarkdownTextPrimitive as og } from "@assistant-ui/react-markdown";
|
|
10
10
|
import sg from "remark-gfm";
|
|
11
|
-
import * as
|
|
11
|
+
import * as Pa from "react-dom";
|
|
12
12
|
import lg from "react-dom";
|
|
13
13
|
import { codeToHtml as cg } from "shiki";
|
|
14
14
|
import { useShallow as ug } from "zustand/shallow";
|
|
15
|
-
var
|
|
15
|
+
var kr = (t, n) => {
|
|
16
16
|
if (n == null) return [];
|
|
17
17
|
let a = t.findIndex((i) => i.id === n);
|
|
18
18
|
if (a === -1)
|
|
@@ -22,7 +22,7 @@ var Ir = (t, n) => {
|
|
|
22
22
|
for (; t[a + 1]?.role === "assistant"; )
|
|
23
23
|
a++;
|
|
24
24
|
return t.slice(0, a + 1);
|
|
25
|
-
},
|
|
25
|
+
}, Nr = (t) => {
|
|
26
26
|
const a = [
|
|
27
27
|
...t.content.filter((i) => i.type !== "file"),
|
|
28
28
|
...t.attachments?.flatMap(
|
|
@@ -247,7 +247,7 @@ function pg() {
|
|
|
247
247
|
localeError: fg()
|
|
248
248
|
};
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function Er(t, n, a, i) {
|
|
251
251
|
const e = Math.abs(t), r = e % 10, o = e % 100;
|
|
252
252
|
return o >= 11 && o <= 19 ? i : r === 1 ? n : r >= 2 && r <= 4 ? a : i;
|
|
253
253
|
}
|
|
@@ -343,7 +343,7 @@ const gg = () => {
|
|
|
343
343
|
case "too_big": {
|
|
344
344
|
const r = e.inclusive ? "<=" : "<", o = n(e.origin);
|
|
345
345
|
if (o) {
|
|
346
|
-
const s = Number(e.maximum), u =
|
|
346
|
+
const s = Number(e.maximum), u = Er(s, o.unit.one, o.unit.few, o.unit.many);
|
|
347
347
|
return `Занадта вялікі: чакалася, што ${e.origin ?? "значэнне"} павінна ${o.verb} ${r}${e.maximum.toString()} ${u}`;
|
|
348
348
|
}
|
|
349
349
|
return `Занадта вялікі: чакалася, што ${e.origin ?? "значэнне"} павінна быць ${r}${e.maximum.toString()}`;
|
|
@@ -351,7 +351,7 @@ const gg = () => {
|
|
|
351
351
|
case "too_small": {
|
|
352
352
|
const r = e.inclusive ? ">=" : ">", o = n(e.origin);
|
|
353
353
|
if (o) {
|
|
354
|
-
const s = Number(e.minimum), u =
|
|
354
|
+
const s = Number(e.minimum), u = Er(s, o.unit.one, o.unit.few, o.unit.many);
|
|
355
355
|
return `Занадта малы: чакалася, што ${e.origin} павінна ${o.verb} ${r}${e.minimum.toString()} ${u}`;
|
|
356
356
|
}
|
|
357
357
|
return `Занадта малы: чакалася, што ${e.origin} павінна быць ${r}${e.minimum.toString()}`;
|
|
@@ -962,7 +962,7 @@ const Eg = (t) => {
|
|
|
962
962
|
}
|
|
963
963
|
};
|
|
964
964
|
};
|
|
965
|
-
function
|
|
965
|
+
function Ta() {
|
|
966
966
|
return {
|
|
967
967
|
localeError: Og()
|
|
968
968
|
};
|
|
@@ -2362,13 +2362,13 @@ const av = () => {
|
|
|
2362
2362
|
}
|
|
2363
2363
|
};
|
|
2364
2364
|
};
|
|
2365
|
-
function
|
|
2365
|
+
function Da() {
|
|
2366
2366
|
return {
|
|
2367
2367
|
localeError: av()
|
|
2368
2368
|
};
|
|
2369
2369
|
}
|
|
2370
2370
|
function ov() {
|
|
2371
|
-
return
|
|
2371
|
+
return Da();
|
|
2372
2372
|
}
|
|
2373
2373
|
const sv = () => {
|
|
2374
2374
|
const t = {
|
|
@@ -2488,7 +2488,7 @@ const cv = (t) => ot(typeof t, t), ot = (t, n = void 0) => {
|
|
|
2488
2488
|
}
|
|
2489
2489
|
return t;
|
|
2490
2490
|
}, at = (t) => t.charAt(0).toUpperCase() + t.slice(1);
|
|
2491
|
-
function
|
|
2491
|
+
function Or(t) {
|
|
2492
2492
|
const n = Math.abs(t), a = n % 10, i = n % 100;
|
|
2493
2493
|
return i >= 11 && i <= 19 || a === 0 ? "many" : a === 1 ? "one" : "few";
|
|
2494
2494
|
}
|
|
@@ -2607,14 +2607,14 @@ const uv = () => {
|
|
|
2607
2607
|
case "invalid_value":
|
|
2608
2608
|
return i.values.length === 1 ? `Privalo būti ${P(i.values[0])}` : `Privalo būti vienas iš ${_(i.values, "|")} pasirinkimų`;
|
|
2609
2609
|
case "too_big": {
|
|
2610
|
-
const e = ot(i.origin), r = n(i.origin,
|
|
2610
|
+
const e = ot(i.origin), r = n(i.origin, Or(Number(i.maximum)), i.inclusive ?? !1, "smaller");
|
|
2611
2611
|
if (r?.verb)
|
|
2612
2612
|
return `${at(e ?? i.origin ?? "reikšmė")} ${r.verb} ${i.maximum.toString()} ${r.unit ?? "elementų"}`;
|
|
2613
2613
|
const o = i.inclusive ? "ne didesnis kaip" : "mažesnis kaip";
|
|
2614
2614
|
return `${at(e ?? i.origin ?? "reikšmė")} turi būti ${o} ${i.maximum.toString()} ${r?.unit}`;
|
|
2615
2615
|
}
|
|
2616
2616
|
case "too_small": {
|
|
2617
|
-
const e = ot(i.origin), r = n(i.origin,
|
|
2617
|
+
const e = ot(i.origin), r = n(i.origin, Or(Number(i.minimum)), i.inclusive ?? !1, "bigger");
|
|
2618
2618
|
if (r?.verb)
|
|
2619
2619
|
return `${at(e ?? i.origin ?? "reikšmė")} ${r.verb} ${i.minimum.toString()} ${r.unit ?? "elementų"}`;
|
|
2620
2620
|
const o = i.inclusive ? "ne mažesnis kaip" : "didesnis kaip";
|
|
@@ -3392,7 +3392,7 @@ function Nv() {
|
|
|
3392
3392
|
localeError: kv()
|
|
3393
3393
|
};
|
|
3394
3394
|
}
|
|
3395
|
-
function
|
|
3395
|
+
function Cr(t, n, a, i) {
|
|
3396
3396
|
const e = Math.abs(t), r = e % 10, o = e % 100;
|
|
3397
3397
|
return o >= 11 && o <= 19 ? i : r === 1 ? n : r >= 2 && r <= 4 ? a : i;
|
|
3398
3398
|
}
|
|
@@ -3488,7 +3488,7 @@ const Ev = () => {
|
|
|
3488
3488
|
case "too_big": {
|
|
3489
3489
|
const r = e.inclusive ? "<=" : "<", o = n(e.origin);
|
|
3490
3490
|
if (o) {
|
|
3491
|
-
const s = Number(e.maximum), u =
|
|
3491
|
+
const s = Number(e.maximum), u = Cr(s, o.unit.one, o.unit.few, o.unit.many);
|
|
3492
3492
|
return `Слишком большое значение: ожидалось, что ${e.origin ?? "значение"} будет иметь ${r}${e.maximum.toString()} ${u}`;
|
|
3493
3493
|
}
|
|
3494
3494
|
return `Слишком большое значение: ожидалось, что ${e.origin ?? "значение"} будет ${r}${e.maximum.toString()}`;
|
|
@@ -3496,7 +3496,7 @@ const Ev = () => {
|
|
|
3496
3496
|
case "too_small": {
|
|
3497
3497
|
const r = e.inclusive ? ">=" : ">", o = n(e.origin);
|
|
3498
3498
|
if (o) {
|
|
3499
|
-
const s = Number(e.minimum), u =
|
|
3499
|
+
const s = Number(e.minimum), u = Cr(s, o.unit.one, o.unit.few, o.unit.many);
|
|
3500
3500
|
return `Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${r}${e.minimum.toString()} ${u}`;
|
|
3501
3501
|
}
|
|
3502
3502
|
return `Слишком маленькое значение: ожидалось, что ${e.origin} будет ${r}${e.minimum.toString()}`;
|
|
@@ -4079,13 +4079,13 @@ const Fv = () => {
|
|
|
4079
4079
|
}
|
|
4080
4080
|
};
|
|
4081
4081
|
};
|
|
4082
|
-
function
|
|
4082
|
+
function Ra() {
|
|
4083
4083
|
return {
|
|
4084
4084
|
localeError: Fv()
|
|
4085
4085
|
};
|
|
4086
4086
|
}
|
|
4087
4087
|
function Zv() {
|
|
4088
|
-
return
|
|
4088
|
+
return Ra();
|
|
4089
4089
|
}
|
|
4090
4090
|
const Wv = () => {
|
|
4091
4091
|
const t = {
|
|
@@ -4552,7 +4552,7 @@ function Yv() {
|
|
|
4552
4552
|
localeError: Xv()
|
|
4553
4553
|
};
|
|
4554
4554
|
}
|
|
4555
|
-
const
|
|
4555
|
+
const Aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4556
4556
|
__proto__: null,
|
|
4557
4557
|
ar: mg,
|
|
4558
4558
|
az: pg,
|
|
@@ -4562,7 +4562,7 @@ const Ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4562
4562
|
cs: wg,
|
|
4563
4563
|
da: Ig,
|
|
4564
4564
|
de: Ng,
|
|
4565
|
-
en:
|
|
4565
|
+
en: Ta,
|
|
4566
4566
|
eo: Tg,
|
|
4567
4567
|
es: Rg,
|
|
4568
4568
|
fa: jg,
|
|
@@ -4577,7 +4577,7 @@ const Ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4577
4577
|
ja: tv,
|
|
4578
4578
|
ka: iv,
|
|
4579
4579
|
kh: ov,
|
|
4580
|
-
km:
|
|
4580
|
+
km: Da,
|
|
4581
4581
|
ko: lv,
|
|
4582
4582
|
lt: dv,
|
|
4583
4583
|
mk: fv,
|
|
@@ -4595,7 +4595,7 @@ const Ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4595
4595
|
th: Uv,
|
|
4596
4596
|
tr: Lv,
|
|
4597
4597
|
ua: Zv,
|
|
4598
|
-
uk:
|
|
4598
|
+
uk: Ra,
|
|
4599
4599
|
ur: Bv,
|
|
4600
4600
|
vi: Jv,
|
|
4601
4601
|
yo: Yv,
|
|
@@ -4703,15 +4703,15 @@ const Ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4703
4703
|
$ZodUnknown: Uc,
|
|
4704
4704
|
$ZodVoid: zc,
|
|
4705
4705
|
$ZodXID: Mc,
|
|
4706
|
-
$brand:
|
|
4706
|
+
$brand: hi,
|
|
4707
4707
|
$constructor: Lc,
|
|
4708
|
-
$input:
|
|
4709
|
-
$output:
|
|
4708
|
+
$input: bi,
|
|
4709
|
+
$output: yi,
|
|
4710
4710
|
Doc: Fc,
|
|
4711
4711
|
JSONSchema: Qv,
|
|
4712
4712
|
JSONSchemaGenerator: Zc,
|
|
4713
|
-
NEVER:
|
|
4714
|
-
TimePrecision:
|
|
4713
|
+
NEVER: $i,
|
|
4714
|
+
TimePrecision: xi,
|
|
4715
4715
|
_any: Wc,
|
|
4716
4716
|
_array: Bc,
|
|
4717
4717
|
_base64: Vc,
|
|
@@ -4722,11 +4722,11 @@ const Ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4722
4722
|
_check: qc,
|
|
4723
4723
|
_cidrv4: Xc,
|
|
4724
4724
|
_cidrv6: Yc,
|
|
4725
|
-
_coercedBigint:
|
|
4726
|
-
_coercedBoolean:
|
|
4727
|
-
_coercedDate:
|
|
4728
|
-
_coercedNumber:
|
|
4729
|
-
_coercedString:
|
|
4725
|
+
_coercedBigint: _i,
|
|
4726
|
+
_coercedBoolean: wi,
|
|
4727
|
+
_coercedDate: Si,
|
|
4728
|
+
_coercedNumber: Ii,
|
|
4729
|
+
_coercedString: ki,
|
|
4730
4730
|
_cuid: Qc,
|
|
4731
4731
|
_cuid2: eu,
|
|
4732
4732
|
_custom: tu,
|
|
@@ -4740,15 +4740,15 @@ const Ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4740
4740
|
_emoji: cu,
|
|
4741
4741
|
_encode: uu,
|
|
4742
4742
|
_encodeAsync: du,
|
|
4743
|
-
_endsWith:
|
|
4743
|
+
_endsWith: Ni,
|
|
4744
4744
|
_enum: mu,
|
|
4745
4745
|
_file: fu,
|
|
4746
4746
|
_float32: pu,
|
|
4747
4747
|
_float64: gu,
|
|
4748
|
-
_gt:
|
|
4748
|
+
_gt: Ei,
|
|
4749
4749
|
_gte: xn,
|
|
4750
4750
|
_guid: vu,
|
|
4751
|
-
_includes:
|
|
4751
|
+
_includes: Oi,
|
|
4752
4752
|
_int: hu,
|
|
4753
4753
|
_int32: bu,
|
|
4754
4754
|
_int64: yu,
|
|
@@ -4762,45 +4762,45 @@ const Ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4762
4762
|
_jwt: Nu,
|
|
4763
4763
|
_ksuid: Eu,
|
|
4764
4764
|
_lazy: Ou,
|
|
4765
|
-
_length:
|
|
4765
|
+
_length: Ci,
|
|
4766
4766
|
_literal: Cu,
|
|
4767
|
-
_lowercase:
|
|
4768
|
-
_lt:
|
|
4767
|
+
_lowercase: Pi,
|
|
4768
|
+
_lt: Ti,
|
|
4769
4769
|
_lte: _n,
|
|
4770
4770
|
_mac: Pu,
|
|
4771
4771
|
_map: Tu,
|
|
4772
4772
|
_max: _n,
|
|
4773
|
-
_maxLength:
|
|
4774
|
-
_maxSize:
|
|
4775
|
-
_mime:
|
|
4773
|
+
_maxLength: Di,
|
|
4774
|
+
_maxSize: Ri,
|
|
4775
|
+
_mime: Ai,
|
|
4776
4776
|
_min: xn,
|
|
4777
|
-
_minLength:
|
|
4778
|
-
_minSize:
|
|
4779
|
-
_multipleOf:
|
|
4777
|
+
_minLength: ji,
|
|
4778
|
+
_minSize: Ui,
|
|
4779
|
+
_multipleOf: zi,
|
|
4780
4780
|
_nan: Du,
|
|
4781
4781
|
_nanoid: Ru,
|
|
4782
4782
|
_nativeEnum: Au,
|
|
4783
|
-
_negative:
|
|
4783
|
+
_negative: Mi,
|
|
4784
4784
|
_never: ju,
|
|
4785
|
-
_nonnegative:
|
|
4785
|
+
_nonnegative: Li,
|
|
4786
4786
|
_nonoptional: Uu,
|
|
4787
|
-
_nonpositive:
|
|
4788
|
-
_normalize:
|
|
4787
|
+
_nonpositive: Fi,
|
|
4788
|
+
_normalize: Zi,
|
|
4789
4789
|
_null: zu,
|
|
4790
4790
|
_nullable: Mu,
|
|
4791
4791
|
_number: Lu,
|
|
4792
4792
|
_optional: Fu,
|
|
4793
|
-
_overwrite:
|
|
4793
|
+
_overwrite: Wi,
|
|
4794
4794
|
_parse: Zu,
|
|
4795
4795
|
_parseAsync: Wu,
|
|
4796
4796
|
_pipe: Bu,
|
|
4797
|
-
_positive:
|
|
4797
|
+
_positive: Bi,
|
|
4798
4798
|
_promise: Vu,
|
|
4799
|
-
_property:
|
|
4799
|
+
_property: Vi,
|
|
4800
4800
|
_readonly: Ju,
|
|
4801
4801
|
_record: Gu,
|
|
4802
4802
|
_refine: Hu,
|
|
4803
|
-
_regex:
|
|
4803
|
+
_regex: Ji,
|
|
4804
4804
|
_safeDecode: Ku,
|
|
4805
4805
|
_safeDecodeAsync: qu,
|
|
4806
4806
|
_safeEncode: Xu,
|
|
@@ -4808,9 +4808,9 @@ const Ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4808
4808
|
_safeParse: Qu,
|
|
4809
4809
|
_safeParseAsync: ed,
|
|
4810
4810
|
_set: td,
|
|
4811
|
-
_size:
|
|
4812
|
-
_slugify:
|
|
4813
|
-
_startsWith:
|
|
4811
|
+
_size: Gi,
|
|
4812
|
+
_slugify: Hi,
|
|
4813
|
+
_startsWith: Ki,
|
|
4814
4814
|
_string: nd,
|
|
4815
4815
|
_stringFormat: rd,
|
|
4816
4816
|
_stringbool: id,
|
|
@@ -4818,10 +4818,10 @@ const Ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4818
4818
|
_superRefine: od,
|
|
4819
4819
|
_symbol: sd,
|
|
4820
4820
|
_templateLiteral: ld,
|
|
4821
|
-
_toLowerCase:
|
|
4822
|
-
_toUpperCase:
|
|
4821
|
+
_toLowerCase: qi,
|
|
4822
|
+
_toUpperCase: Xi,
|
|
4823
4823
|
_transform: cd,
|
|
4824
|
-
_trim:
|
|
4824
|
+
_trim: Yi,
|
|
4825
4825
|
_tuple: ud,
|
|
4826
4826
|
_uint32: dd,
|
|
4827
4827
|
_uint64: md,
|
|
@@ -4829,7 +4829,7 @@ const Ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4829
4829
|
_undefined: pd,
|
|
4830
4830
|
_union: gd,
|
|
4831
4831
|
_unknown: vd,
|
|
4832
|
-
_uppercase:
|
|
4832
|
+
_uppercase: Qi,
|
|
4833
4833
|
_url: hd,
|
|
4834
4834
|
_uuid: bd,
|
|
4835
4835
|
_uuidv4: yd,
|
|
@@ -4837,27 +4837,27 @@ const Ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4837
4837
|
_uuidv7: xd,
|
|
4838
4838
|
_void: _d,
|
|
4839
4839
|
_xid: wd,
|
|
4840
|
-
clone:
|
|
4840
|
+
clone: ea,
|
|
4841
4841
|
config: jn,
|
|
4842
4842
|
decode: Sd,
|
|
4843
4843
|
decodeAsync: Id,
|
|
4844
4844
|
describe: kd,
|
|
4845
4845
|
encode: Nd,
|
|
4846
4846
|
encodeAsync: Ed,
|
|
4847
|
-
flattenError:
|
|
4848
|
-
formatError:
|
|
4847
|
+
flattenError: ta,
|
|
4848
|
+
formatError: na,
|
|
4849
4849
|
globalConfig: Od,
|
|
4850
|
-
globalRegistry:
|
|
4850
|
+
globalRegistry: ra,
|
|
4851
4851
|
isValidBase64: Cd,
|
|
4852
4852
|
isValidBase64URL: Pd,
|
|
4853
4853
|
isValidJWT: Td,
|
|
4854
|
-
locales:
|
|
4854
|
+
locales: Aa,
|
|
4855
4855
|
meta: Dd,
|
|
4856
4856
|
parse: Rd,
|
|
4857
4857
|
parseAsync: Ad,
|
|
4858
|
-
prettifyError:
|
|
4859
|
-
regexes:
|
|
4860
|
-
registry:
|
|
4858
|
+
prettifyError: ia,
|
|
4859
|
+
regexes: aa,
|
|
4860
|
+
registry: oa,
|
|
4861
4861
|
safeDecode: jd,
|
|
4862
4862
|
safeDecodeAsync: Ud,
|
|
4863
4863
|
safeEncode: zd,
|
|
@@ -4865,25 +4865,25 @@ const Ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4865
4865
|
safeParse: Ld,
|
|
4866
4866
|
safeParseAsync: Fd,
|
|
4867
4867
|
toDotPath: Zd,
|
|
4868
|
-
toJSONSchema:
|
|
4869
|
-
treeifyError:
|
|
4870
|
-
util:
|
|
4868
|
+
toJSONSchema: sa,
|
|
4869
|
+
treeifyError: la,
|
|
4870
|
+
util: ca,
|
|
4871
4871
|
version: Wd
|
|
4872
4872
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4873
4873
|
function th(t) {
|
|
4874
|
-
return
|
|
4874
|
+
return ki(ua, t);
|
|
4875
4875
|
}
|
|
4876
4876
|
function nh(t) {
|
|
4877
|
-
return
|
|
4877
|
+
return Ii(da, t);
|
|
4878
4878
|
}
|
|
4879
4879
|
function rh(t) {
|
|
4880
|
-
return
|
|
4880
|
+
return wi(ma, t);
|
|
4881
4881
|
}
|
|
4882
4882
|
function ih(t) {
|
|
4883
|
-
return
|
|
4883
|
+
return _i(fa, t);
|
|
4884
4884
|
}
|
|
4885
4885
|
function ah(t) {
|
|
4886
|
-
return
|
|
4886
|
+
return Si(pa, t);
|
|
4887
4887
|
}
|
|
4888
4888
|
const oh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4889
4889
|
__proto__: null,
|
|
@@ -4893,21 +4893,21 @@ const oh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4893
4893
|
number: nh,
|
|
4894
4894
|
string: th
|
|
4895
4895
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4896
|
-
jn(
|
|
4897
|
-
const
|
|
4896
|
+
jn(Ta());
|
|
4897
|
+
const Pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4898
4898
|
__proto__: null,
|
|
4899
|
-
$brand:
|
|
4900
|
-
$input:
|
|
4901
|
-
$output:
|
|
4902
|
-
NEVER:
|
|
4903
|
-
TimePrecision:
|
|
4899
|
+
$brand: hi,
|
|
4900
|
+
$input: bi,
|
|
4901
|
+
$output: yi,
|
|
4902
|
+
NEVER: $i,
|
|
4903
|
+
TimePrecision: xi,
|
|
4904
4904
|
ZodAny: Bd,
|
|
4905
4905
|
ZodArray: Vd,
|
|
4906
4906
|
ZodBase64: Jd,
|
|
4907
4907
|
ZodBase64URL: Gd,
|
|
4908
|
-
ZodBigInt:
|
|
4908
|
+
ZodBigInt: fa,
|
|
4909
4909
|
ZodBigIntFormat: Hd,
|
|
4910
|
-
ZodBoolean:
|
|
4910
|
+
ZodBoolean: ma,
|
|
4911
4911
|
ZodCIDRv4: Kd,
|
|
4912
4912
|
ZodCIDRv6: qd,
|
|
4913
4913
|
ZodCUID: Xd,
|
|
@@ -4916,7 +4916,7 @@ const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4916
4916
|
ZodCodec: em,
|
|
4917
4917
|
ZodCustom: tm,
|
|
4918
4918
|
ZodCustomStringFormat: nm,
|
|
4919
|
-
ZodDate:
|
|
4919
|
+
ZodDate: pa,
|
|
4920
4920
|
ZodDefault: rm,
|
|
4921
4921
|
ZodDiscriminatedUnion: im,
|
|
4922
4922
|
ZodE164: am,
|
|
@@ -4950,7 +4950,7 @@ const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4950
4950
|
ZodNonOptional: Pm,
|
|
4951
4951
|
ZodNull: Tm,
|
|
4952
4952
|
ZodNullable: Dm,
|
|
4953
|
-
ZodNumber:
|
|
4953
|
+
ZodNumber: da,
|
|
4954
4954
|
ZodNumberFormat: Rm,
|
|
4955
4955
|
ZodObject: Am,
|
|
4956
4956
|
ZodOptional: jm,
|
|
@@ -4961,7 +4961,7 @@ const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4961
4961
|
ZodRealError: Fm,
|
|
4962
4962
|
ZodRecord: Zm,
|
|
4963
4963
|
ZodSet: Wm,
|
|
4964
|
-
ZodString:
|
|
4964
|
+
ZodString: ua,
|
|
4965
4965
|
ZodStringFormat: Bm,
|
|
4966
4966
|
ZodSuccess: Vm,
|
|
4967
4967
|
ZodSymbol: Jm,
|
|
@@ -4979,7 +4979,7 @@ const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4979
4979
|
ZodXID: af,
|
|
4980
4980
|
_ZodString: of,
|
|
4981
4981
|
_default: sf,
|
|
4982
|
-
_function:
|
|
4982
|
+
_function: yr,
|
|
4983
4983
|
any: lf,
|
|
4984
4984
|
array: Me,
|
|
4985
4985
|
base64: cf,
|
|
@@ -4990,7 +4990,7 @@ const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4990
4990
|
check: ff,
|
|
4991
4991
|
cidrv4: pf,
|
|
4992
4992
|
cidrv6: gf,
|
|
4993
|
-
clone:
|
|
4993
|
+
clone: ea,
|
|
4994
4994
|
codec: vf,
|
|
4995
4995
|
coerce: oh,
|
|
4996
4996
|
config: jn,
|
|
@@ -5002,30 +5002,30 @@ const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5002
5002
|
decode: $f,
|
|
5003
5003
|
decodeAsync: xf,
|
|
5004
5004
|
describe: _f,
|
|
5005
|
-
discriminatedUnion:
|
|
5005
|
+
discriminatedUnion: ga,
|
|
5006
5006
|
e164: wf,
|
|
5007
5007
|
email: Sf,
|
|
5008
5008
|
emoji: If,
|
|
5009
5009
|
encode: kf,
|
|
5010
5010
|
encodeAsync: Nf,
|
|
5011
|
-
endsWith:
|
|
5012
|
-
enum:
|
|
5011
|
+
endsWith: Ni,
|
|
5012
|
+
enum: va,
|
|
5013
5013
|
file: Ef,
|
|
5014
|
-
flattenError:
|
|
5014
|
+
flattenError: ta,
|
|
5015
5015
|
float32: Of,
|
|
5016
5016
|
float64: Cf,
|
|
5017
|
-
formatError:
|
|
5018
|
-
function:
|
|
5017
|
+
formatError: na,
|
|
5018
|
+
function: yr,
|
|
5019
5019
|
getErrorMap: Pf,
|
|
5020
|
-
globalRegistry:
|
|
5021
|
-
gt:
|
|
5020
|
+
globalRegistry: ra,
|
|
5021
|
+
gt: Ei,
|
|
5022
5022
|
gte: xn,
|
|
5023
5023
|
guid: Tf,
|
|
5024
5024
|
hash: Df,
|
|
5025
5025
|
hex: Rf,
|
|
5026
5026
|
hostname: Af,
|
|
5027
5027
|
httpUrl: jf,
|
|
5028
|
-
includes:
|
|
5028
|
+
includes: Oi,
|
|
5029
5029
|
instanceof: mt,
|
|
5030
5030
|
int: Uf,
|
|
5031
5031
|
int32: zf,
|
|
@@ -5038,55 +5038,55 @@ const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5038
5038
|
jwt: Vf,
|
|
5039
5039
|
keyof: Jf,
|
|
5040
5040
|
ksuid: Gf,
|
|
5041
|
-
lazy:
|
|
5042
|
-
length:
|
|
5041
|
+
lazy: ha,
|
|
5042
|
+
length: Ci,
|
|
5043
5043
|
literal: T,
|
|
5044
|
-
locales:
|
|
5044
|
+
locales: Aa,
|
|
5045
5045
|
looseObject: Hf,
|
|
5046
|
-
lowercase:
|
|
5047
|
-
lt:
|
|
5046
|
+
lowercase: Pi,
|
|
5047
|
+
lt: Ti,
|
|
5048
5048
|
lte: _n,
|
|
5049
5049
|
mac: Kf,
|
|
5050
5050
|
map: qf,
|
|
5051
|
-
maxLength:
|
|
5052
|
-
maxSize:
|
|
5051
|
+
maxLength: Di,
|
|
5052
|
+
maxSize: Ri,
|
|
5053
5053
|
meta: Xf,
|
|
5054
|
-
mime:
|
|
5055
|
-
minLength:
|
|
5056
|
-
minSize:
|
|
5057
|
-
multipleOf:
|
|
5054
|
+
mime: Ai,
|
|
5055
|
+
minLength: ji,
|
|
5056
|
+
minSize: Ui,
|
|
5057
|
+
multipleOf: zi,
|
|
5058
5058
|
nan: Yf,
|
|
5059
5059
|
nanoid: Qf,
|
|
5060
5060
|
nativeEnum: ep,
|
|
5061
|
-
negative:
|
|
5061
|
+
negative: Mi,
|
|
5062
5062
|
never: tp,
|
|
5063
|
-
nonnegative:
|
|
5063
|
+
nonnegative: Li,
|
|
5064
5064
|
nonoptional: np,
|
|
5065
|
-
nonpositive:
|
|
5066
|
-
normalize:
|
|
5067
|
-
null:
|
|
5065
|
+
nonpositive: Fi,
|
|
5066
|
+
normalize: Zi,
|
|
5067
|
+
null: ba,
|
|
5068
5068
|
nullable: rp,
|
|
5069
5069
|
nullish: ip,
|
|
5070
|
-
number:
|
|
5070
|
+
number: ya,
|
|
5071
5071
|
object: z,
|
|
5072
5072
|
optional: ap,
|
|
5073
|
-
overwrite:
|
|
5073
|
+
overwrite: Wi,
|
|
5074
5074
|
parse: op,
|
|
5075
5075
|
parseAsync: sp,
|
|
5076
5076
|
partialRecord: lp,
|
|
5077
5077
|
pipe: cp,
|
|
5078
|
-
positive:
|
|
5078
|
+
positive: Bi,
|
|
5079
5079
|
prefault: up,
|
|
5080
5080
|
preprocess: dp,
|
|
5081
|
-
prettifyError:
|
|
5081
|
+
prettifyError: ia,
|
|
5082
5082
|
promise: mp,
|
|
5083
|
-
property:
|
|
5083
|
+
property: Vi,
|
|
5084
5084
|
readonly: fp,
|
|
5085
5085
|
record: jt,
|
|
5086
5086
|
refine: pp,
|
|
5087
|
-
regex:
|
|
5088
|
-
regexes:
|
|
5089
|
-
registry:
|
|
5087
|
+
regex: Ji,
|
|
5088
|
+
regexes: aa,
|
|
5089
|
+
registry: oa,
|
|
5090
5090
|
safeDecode: gp,
|
|
5091
5091
|
safeDecodeAsync: vp,
|
|
5092
5092
|
safeEncode: hp,
|
|
@@ -5095,9 +5095,9 @@ const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5095
5095
|
safeParseAsync: $p,
|
|
5096
5096
|
set: xp,
|
|
5097
5097
|
setErrorMap: _p,
|
|
5098
|
-
size:
|
|
5099
|
-
slugify:
|
|
5100
|
-
startsWith:
|
|
5098
|
+
size: Gi,
|
|
5099
|
+
slugify: Hi,
|
|
5100
|
+
startsWith: Ki,
|
|
5101
5101
|
strictObject: U,
|
|
5102
5102
|
string: E,
|
|
5103
5103
|
stringFormat: wp,
|
|
@@ -5106,22 +5106,22 @@ const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5106
5106
|
superRefine: kp,
|
|
5107
5107
|
symbol: Np,
|
|
5108
5108
|
templateLiteral: Ep,
|
|
5109
|
-
toJSONSchema:
|
|
5110
|
-
toLowerCase:
|
|
5111
|
-
toUpperCase:
|
|
5109
|
+
toJSONSchema: sa,
|
|
5110
|
+
toLowerCase: qi,
|
|
5111
|
+
toUpperCase: Xi,
|
|
5112
5112
|
transform: Op,
|
|
5113
|
-
treeifyError:
|
|
5114
|
-
trim:
|
|
5113
|
+
treeifyError: la,
|
|
5114
|
+
trim: Yi,
|
|
5115
5115
|
tuple: Cp,
|
|
5116
5116
|
uint32: Pp,
|
|
5117
5117
|
uint64: Tp,
|
|
5118
5118
|
ulid: Dp,
|
|
5119
|
-
undefined:
|
|
5119
|
+
undefined: $a,
|
|
5120
5120
|
union: re,
|
|
5121
5121
|
unknown: xe,
|
|
5122
|
-
uppercase:
|
|
5122
|
+
uppercase: Qi,
|
|
5123
5123
|
url: Rp,
|
|
5124
|
-
util:
|
|
5124
|
+
util: ca,
|
|
5125
5125
|
uuid: Ap,
|
|
5126
5126
|
uuidv4: jp,
|
|
5127
5127
|
uuidv6: Up,
|
|
@@ -5135,7 +5135,7 @@ function sh(t) {
|
|
|
5135
5135
|
var lh = Object.defineProperty, ch = (t, n) => {
|
|
5136
5136
|
for (var a in n)
|
|
5137
5137
|
lh(t, a, { get: n[a], enumerable: !0 });
|
|
5138
|
-
},
|
|
5138
|
+
}, ja = "AI_NoObjectGeneratedError", Ua = `vercel.ai.error.${ja}`, uh = Symbol.for(Ua), za, Tr = class extends wr {
|
|
5139
5139
|
constructor({
|
|
5140
5140
|
message: t = "No object generated.",
|
|
5141
5141
|
cause: n,
|
|
@@ -5144,14 +5144,14 @@ var lh = Object.defineProperty, ch = (t, n) => {
|
|
|
5144
5144
|
usage: e,
|
|
5145
5145
|
finishReason: r
|
|
5146
5146
|
}) {
|
|
5147
|
-
super({ name:
|
|
5147
|
+
super({ name: ja, message: t, cause: n }), this[za] = !0, this.text = a, this.response = i, this.usage = e, this.finishReason = r;
|
|
5148
5148
|
}
|
|
5149
5149
|
static isInstance(t) {
|
|
5150
|
-
return
|
|
5150
|
+
return wr.hasMarker(t, Ua);
|
|
5151
5151
|
}
|
|
5152
5152
|
};
|
|
5153
|
-
|
|
5154
|
-
var
|
|
5153
|
+
za = uh;
|
|
5154
|
+
var Dr = "5.0.108", Ma = re([
|
|
5155
5155
|
E(),
|
|
5156
5156
|
mt(Uint8Array),
|
|
5157
5157
|
mt(ArrayBuffer),
|
|
@@ -5163,11 +5163,11 @@ var Tr = "5.0.108", za = re([
|
|
|
5163
5163
|
},
|
|
5164
5164
|
{ message: "Must be a Buffer" }
|
|
5165
5165
|
)
|
|
5166
|
-
]), ft =
|
|
5166
|
+
]), ft = ha(
|
|
5167
5167
|
() => re([
|
|
5168
|
-
ha(),
|
|
5169
|
-
E(),
|
|
5170
5168
|
ba(),
|
|
5169
|
+
E(),
|
|
5170
|
+
ya(),
|
|
5171
5171
|
X(),
|
|
5172
5172
|
jt(E(), ft),
|
|
5173
5173
|
Me(ft)
|
|
@@ -5175,18 +5175,18 @@ var Tr = "5.0.108", za = re([
|
|
|
5175
5175
|
), F = jt(
|
|
5176
5176
|
E(),
|
|
5177
5177
|
jt(E(), ft)
|
|
5178
|
-
),
|
|
5178
|
+
), La = z({
|
|
5179
5179
|
type: T("text"),
|
|
5180
5180
|
text: E(),
|
|
5181
5181
|
providerOptions: F.optional()
|
|
5182
5182
|
}), dh = z({
|
|
5183
5183
|
type: T("image"),
|
|
5184
|
-
image: re([
|
|
5184
|
+
image: re([Ma, mt(URL)]),
|
|
5185
5185
|
mediaType: E().optional(),
|
|
5186
5186
|
providerOptions: F.optional()
|
|
5187
|
-
}),
|
|
5187
|
+
}), Fa = z({
|
|
5188
5188
|
type: T("file"),
|
|
5189
|
-
data: re([
|
|
5189
|
+
data: re([Ma, mt(URL)]),
|
|
5190
5190
|
filename: E().optional(),
|
|
5191
5191
|
mediaType: E(),
|
|
5192
5192
|
providerOptions: F.optional()
|
|
@@ -5201,7 +5201,7 @@ var Tr = "5.0.108", za = re([
|
|
|
5201
5201
|
input: xe(),
|
|
5202
5202
|
providerOptions: F.optional(),
|
|
5203
5203
|
providerExecuted: X().optional()
|
|
5204
|
-
}), ph =
|
|
5204
|
+
}), ph = ga("type", [
|
|
5205
5205
|
z({
|
|
5206
5206
|
type: T("text"),
|
|
5207
5207
|
value: E()
|
|
@@ -5234,7 +5234,7 @@ var Tr = "5.0.108", za = re([
|
|
|
5234
5234
|
])
|
|
5235
5235
|
)
|
|
5236
5236
|
})
|
|
5237
|
-
]),
|
|
5237
|
+
]), Za = z({
|
|
5238
5238
|
type: T("tool-result"),
|
|
5239
5239
|
toolCallId: E(),
|
|
5240
5240
|
toolName: E(),
|
|
@@ -5250,7 +5250,7 @@ var Tr = "5.0.108", za = re([
|
|
|
5250
5250
|
role: T("user"),
|
|
5251
5251
|
content: re([
|
|
5252
5252
|
E(),
|
|
5253
|
-
Me(re([
|
|
5253
|
+
Me(re([La, dh, Fa]))
|
|
5254
5254
|
]),
|
|
5255
5255
|
providerOptions: F.optional()
|
|
5256
5256
|
}), hh = z({
|
|
@@ -5259,18 +5259,18 @@ var Tr = "5.0.108", za = re([
|
|
|
5259
5259
|
E(),
|
|
5260
5260
|
Me(
|
|
5261
5261
|
re([
|
|
5262
|
-
Ma,
|
|
5263
5262
|
La,
|
|
5263
|
+
Fa,
|
|
5264
5264
|
mh,
|
|
5265
5265
|
fh,
|
|
5266
|
-
|
|
5266
|
+
Za
|
|
5267
5267
|
])
|
|
5268
5268
|
)
|
|
5269
5269
|
]),
|
|
5270
5270
|
providerOptions: F.optional()
|
|
5271
5271
|
}), bh = z({
|
|
5272
5272
|
role: T("tool"),
|
|
5273
|
-
content: Me(
|
|
5273
|
+
content: Me(Za),
|
|
5274
5274
|
providerOptions: F.optional()
|
|
5275
5275
|
});
|
|
5276
5276
|
re([
|
|
@@ -5427,7 +5427,7 @@ var yh = Zp(
|
|
|
5427
5427
|
}),
|
|
5428
5428
|
U({
|
|
5429
5429
|
type: T("finish"),
|
|
5430
|
-
finishReason:
|
|
5430
|
+
finishReason: va([
|
|
5431
5431
|
"stop",
|
|
5432
5432
|
"length",
|
|
5433
5433
|
"content-filter",
|
|
@@ -5451,7 +5451,7 @@ var yh = Zp(
|
|
|
5451
5451
|
function $h(t) {
|
|
5452
5452
|
return t.type.startsWith("data-");
|
|
5453
5453
|
}
|
|
5454
|
-
function
|
|
5454
|
+
function Wa(t, n) {
|
|
5455
5455
|
if (t === void 0 && n === void 0)
|
|
5456
5456
|
return;
|
|
5457
5457
|
if (t === void 0)
|
|
@@ -5465,7 +5465,7 @@ function Za(t, n) {
|
|
|
5465
5465
|
if (e === void 0)
|
|
5466
5466
|
continue;
|
|
5467
5467
|
const r = i in t ? t[i] : void 0, o = e !== null && typeof e == "object" && !Array.isArray(e) && !(e instanceof Date) && !(e instanceof RegExp), s = r != null && typeof r == "object" && !Array.isArray(r) && !(r instanceof Date) && !(r instanceof RegExp);
|
|
5468
|
-
o && s ? a[i] =
|
|
5468
|
+
o && s ? a[i] = Wa(
|
|
5469
5469
|
r,
|
|
5470
5470
|
e
|
|
5471
5471
|
) : a[i] = e;
|
|
@@ -5720,7 +5720,7 @@ function xh(t) {
|
|
|
5720
5720
|
}
|
|
5721
5721
|
return s;
|
|
5722
5722
|
}
|
|
5723
|
-
async function
|
|
5723
|
+
async function Ba(t) {
|
|
5724
5724
|
if (t === void 0)
|
|
5725
5725
|
return { value: void 0, state: "undefined-input" };
|
|
5726
5726
|
let n = await wn({ text: t });
|
|
@@ -5732,10 +5732,10 @@ function dt(t) {
|
|
|
5732
5732
|
function _h(t) {
|
|
5733
5733
|
return t.type === "dynamic-tool";
|
|
5734
5734
|
}
|
|
5735
|
-
function
|
|
5735
|
+
function Rr(t) {
|
|
5736
5736
|
return dt(t) || _h(t);
|
|
5737
5737
|
}
|
|
5738
|
-
function
|
|
5738
|
+
function Ar(t) {
|
|
5739
5739
|
return t.type.split("-").slice(1).join("-");
|
|
5740
5740
|
}
|
|
5741
5741
|
function wh({
|
|
@@ -5828,8 +5828,8 @@ function Sh({
|
|
|
5828
5828
|
}
|
|
5829
5829
|
async function S(b) {
|
|
5830
5830
|
if (b != null) {
|
|
5831
|
-
const I = l.message.metadata != null ?
|
|
5832
|
-
n != null && await
|
|
5831
|
+
const I = l.message.metadata != null ? Wa(l.message.metadata, b) : b;
|
|
5832
|
+
n != null && await _r({
|
|
5833
5833
|
value: I,
|
|
5834
5834
|
schema: n
|
|
5835
5835
|
}), l.message.metadata = I;
|
|
@@ -5930,7 +5930,7 @@ function Sh({
|
|
|
5930
5930
|
case "tool-input-delta": {
|
|
5931
5931
|
const b = l.partialToolCalls[s.toolCallId];
|
|
5932
5932
|
b.text += s.inputTextDelta;
|
|
5933
|
-
const { value: I } = await
|
|
5933
|
+
const { value: I } = await Ba(
|
|
5934
5934
|
b.text
|
|
5935
5935
|
);
|
|
5936
5936
|
b.dynamic ? x({
|
|
@@ -6004,7 +6004,7 @@ function Sh({
|
|
|
6004
6004
|
const b = g(s.toolCallId);
|
|
6005
6005
|
$({
|
|
6006
6006
|
toolCallId: s.toolCallId,
|
|
6007
|
-
toolName:
|
|
6007
|
+
toolName: Ar(b),
|
|
6008
6008
|
state: "output-available",
|
|
6009
6009
|
input: b.input,
|
|
6010
6010
|
output: s.output,
|
|
@@ -6032,7 +6032,7 @@ function Sh({
|
|
|
6032
6032
|
const b = g(s.toolCallId);
|
|
6033
6033
|
$({
|
|
6034
6034
|
toolCallId: s.toolCallId,
|
|
6035
|
-
toolName:
|
|
6035
|
+
toolName: Ar(b),
|
|
6036
6036
|
state: "output-error",
|
|
6037
6037
|
input: b.input,
|
|
6038
6038
|
rawInput: b.rawInput,
|
|
@@ -6069,7 +6069,7 @@ function Sh({
|
|
|
6069
6069
|
}
|
|
6070
6070
|
default:
|
|
6071
6071
|
if ($h(s)) {
|
|
6072
|
-
a?.[s.type] != null && await
|
|
6072
|
+
a?.[s.type] != null && await _r({
|
|
6073
6073
|
value: s.data,
|
|
6074
6074
|
schema: a[s.type]
|
|
6075
6075
|
});
|
|
@@ -6161,7 +6161,7 @@ var Eh = () => ({
|
|
|
6161
6161
|
schema: n.jsonSchema
|
|
6162
6162
|
},
|
|
6163
6163
|
async parsePartial({ text: a }) {
|
|
6164
|
-
const i = await
|
|
6164
|
+
const i = await Ba(a);
|
|
6165
6165
|
switch (i.state) {
|
|
6166
6166
|
case "failed-parse":
|
|
6167
6167
|
case "undefined-input":
|
|
@@ -6181,7 +6181,7 @@ var Eh = () => ({
|
|
|
6181
6181
|
async parseOutput({ text: a }, i) {
|
|
6182
6182
|
const e = await wn({ text: a });
|
|
6183
6183
|
if (!e.success)
|
|
6184
|
-
throw new
|
|
6184
|
+
throw new Tr({
|
|
6185
6185
|
message: "No object generated: could not parse the response.",
|
|
6186
6186
|
cause: e.error,
|
|
6187
6187
|
text: a,
|
|
@@ -6194,7 +6194,7 @@ var Eh = () => ({
|
|
|
6194
6194
|
schema: n
|
|
6195
6195
|
});
|
|
6196
6196
|
if (!r.success)
|
|
6197
|
-
throw new
|
|
6197
|
+
throw new Tr({
|
|
6198
6198
|
message: "No object generated: response did not match schema.",
|
|
6199
6199
|
cause: r.error,
|
|
6200
6200
|
text: a,
|
|
@@ -6268,13 +6268,13 @@ var Ph = class {
|
|
|
6268
6268
|
messageId: n.messageId
|
|
6269
6269
|
}, g = (e = m?.credentials) != null ? e : l, $ = await ((r = this.fetch) != null ? r : globalThis.fetch)(v, {
|
|
6270
6270
|
method: "POST",
|
|
6271
|
-
headers:
|
|
6271
|
+
headers: $r(
|
|
6272
6272
|
{
|
|
6273
6273
|
"Content-Type": "application/json",
|
|
6274
6274
|
...p
|
|
6275
6275
|
},
|
|
6276
|
-
`ai-sdk/${
|
|
6277
|
-
|
|
6276
|
+
`ai-sdk/${Dr}`,
|
|
6277
|
+
xr()
|
|
6278
6278
|
),
|
|
6279
6279
|
body: JSON.stringify(h),
|
|
6280
6280
|
credentials: g,
|
|
@@ -6302,10 +6302,10 @@ var Ph = class {
|
|
|
6302
6302
|
requestMetadata: t.metadata
|
|
6303
6303
|
})), m = (a = d?.api) != null ? a : `${this.api}/${t.chatId}/stream`, v = d?.headers !== void 0 ? Ze(d.headers) : l, p = (i = d?.credentials) != null ? i : u, g = await ((e = this.fetch) != null ? e : globalThis.fetch)(m, {
|
|
6304
6304
|
method: "GET",
|
|
6305
|
-
headers:
|
|
6305
|
+
headers: $r(
|
|
6306
6306
|
v,
|
|
6307
|
-
`ai-sdk/${
|
|
6308
|
-
|
|
6307
|
+
`ai-sdk/${Dr}`,
|
|
6308
|
+
xr()
|
|
6309
6309
|
),
|
|
6310
6310
|
credentials: p
|
|
6311
6311
|
});
|
|
@@ -6319,7 +6319,7 @@ var Ph = class {
|
|
|
6319
6319
|
throw new Error("The response body is empty.");
|
|
6320
6320
|
return this.processResponseStream(g.body);
|
|
6321
6321
|
}
|
|
6322
|
-
},
|
|
6322
|
+
}, Va = class extends Ph {
|
|
6323
6323
|
constructor(t = {}) {
|
|
6324
6324
|
super(t);
|
|
6325
6325
|
}
|
|
@@ -6339,9 +6339,9 @@ var Ph = class {
|
|
|
6339
6339
|
}
|
|
6340
6340
|
}, Th = class {
|
|
6341
6341
|
constructor({
|
|
6342
|
-
generateId: t =
|
|
6342
|
+
generateId: t = xa,
|
|
6343
6343
|
id: n = t(),
|
|
6344
|
-
transport: a = new
|
|
6344
|
+
transport: a = new Va(),
|
|
6345
6345
|
messageMetadataSchema: i,
|
|
6346
6346
|
dataPartSchemas: e,
|
|
6347
6347
|
state: r,
|
|
@@ -6427,10 +6427,10 @@ var Ph = class {
|
|
|
6427
6427
|
this.state.replaceMessage(x.length - 1, {
|
|
6428
6428
|
...S,
|
|
6429
6429
|
parts: S.parts.map(
|
|
6430
|
-
(b) =>
|
|
6430
|
+
(b) => Rr(b) && b.toolCallId === p ? { ...b, state: m, output: h, errorText: g } : b
|
|
6431
6431
|
)
|
|
6432
6432
|
}), this.activeResponse && (this.activeResponse.state.message.parts = this.activeResponse.state.message.parts.map(
|
|
6433
|
-
(b) =>
|
|
6433
|
+
(b) => Rr(b) && b.toolCallId === p ? {
|
|
6434
6434
|
...b,
|
|
6435
6435
|
state: m,
|
|
6436
6436
|
output: h,
|
|
@@ -6585,7 +6585,7 @@ var Ph = class {
|
|
|
6585
6585
|
accept: "image/*, text/plain, text/html, text/markdown, text/csv, text/xml, text/json, text/css",
|
|
6586
6586
|
async add({ file: t }) {
|
|
6587
6587
|
return {
|
|
6588
|
-
id:
|
|
6588
|
+
id: xa(),
|
|
6589
6589
|
type: t.type.startsWith("image/") ? "image" : "file",
|
|
6590
6590
|
name: t.name,
|
|
6591
6591
|
file: t,
|
|
@@ -6610,7 +6610,7 @@ var Ph = class {
|
|
|
6610
6610
|
},
|
|
6611
6611
|
async remove() {
|
|
6612
6612
|
}
|
|
6613
|
-
},
|
|
6613
|
+
}, jr = (t) => Sn(t);
|
|
6614
6614
|
function Ah(t) {
|
|
6615
6615
|
return t.replace(/[}\]"]+$/, "");
|
|
6616
6616
|
}
|
|
@@ -6699,7 +6699,7 @@ var ln = (t, n) => !t.parts || t.parts.length === 0 ? [] : t.parts.filter((a) =>
|
|
|
6699
6699
|
name: i.substring(5),
|
|
6700
6700
|
data: a.data
|
|
6701
6701
|
} : (console.warn(`Unsupported message part type: ${i}`), null);
|
|
6702
|
-
}).filter(Boolean),
|
|
6702
|
+
}).filter(Boolean), Ur = Jp(
|
|
6703
6703
|
(t, n) => {
|
|
6704
6704
|
const a = /* @__PURE__ */ new Date();
|
|
6705
6705
|
switch (t.role) {
|
|
@@ -6774,7 +6774,7 @@ var ln = (t, n) => !t.parts || t.parts.length === 0 ? [] : t.parts.filter((a) =>
|
|
|
6774
6774
|
getId(t) {
|
|
6775
6775
|
return t.id;
|
|
6776
6776
|
}
|
|
6777
|
-
}, { MessageRepository: Uh } =
|
|
6777
|
+
}, { MessageRepository: Uh } = Sa, zh = (t, n) => ({
|
|
6778
6778
|
headId: n.headId,
|
|
6779
6779
|
messages: n.messages.map((a) => {
|
|
6780
6780
|
const i = t([a.message])[0];
|
|
@@ -6784,7 +6784,7 @@ var ln = (t, n) => !t.parts || t.parts.length === 0 ? [] : t.parts.filter((a) =>
|
|
|
6784
6784
|
};
|
|
6785
6785
|
})
|
|
6786
6786
|
}), Mh = (t, n, a, i, e) => {
|
|
6787
|
-
const r = we(!1), o =
|
|
6787
|
+
const r = we(!1), o = wa(), s = Ut(
|
|
6788
6788
|
() => o.threadListItem.source ? o.threadListItem() : null,
|
|
6789
6789
|
[o]
|
|
6790
6790
|
), [u, l] = K(!1), d = we(/* @__PURE__ */ new Set()), m = we(() => e);
|
|
@@ -6849,7 +6849,7 @@ var ln = (t, n) => !t.parts || t.parts.length === 0 ? [] : t.parts.filter((a) =>
|
|
|
6849
6849
|
toCreateMessage: a,
|
|
6850
6850
|
cancelPendingToolCallsOnSend: i = !0
|
|
6851
6851
|
} = {}) => {
|
|
6852
|
-
const e = Gp(), r = t.status === "submitted" || t.status === "streaming", [o, s] = K({}), u =
|
|
6852
|
+
const e = Gp(), r = t.status === "submitted" || t.status === "streaming", [o, s] = K({}), u = Ur.useThreadMessages({
|
|
6853
6853
|
isRunning: r,
|
|
6854
6854
|
messages: t.messages,
|
|
6855
6855
|
metadata: Ie(
|
|
@@ -6863,7 +6863,7 @@ var ln = (t, n) => !t.parts || t.parts.length === 0 ? [] : t.parts.filter((a) =>
|
|
|
6863
6863
|
get current() {
|
|
6864
6864
|
return p;
|
|
6865
6865
|
}
|
|
6866
|
-
})), d =
|
|
6866
|
+
})), d = Sa.useToolInvocations({
|
|
6867
6867
|
state: {
|
|
6868
6868
|
messages: u,
|
|
6869
6869
|
isRunning: r
|
|
@@ -6880,7 +6880,7 @@ var ln = (t, n) => !t.parts || t.parts.length === 0 ? [] : t.parts.filter((a) =>
|
|
|
6880
6880
|
}), m = Mh(
|
|
6881
6881
|
l,
|
|
6882
6882
|
n?.history ?? e?.history,
|
|
6883
|
-
|
|
6883
|
+
Ur.toThreadMessages,
|
|
6884
6884
|
jh,
|
|
6885
6885
|
(h) => {
|
|
6886
6886
|
t.setMessages(h);
|
|
@@ -6915,36 +6915,36 @@ var ln = (t, n) => !t.parts || t.parts.length === 0 ? [] : t.parts.filter((a) =>
|
|
|
6915
6915
|
isRunning: r,
|
|
6916
6916
|
messages: u,
|
|
6917
6917
|
setMessages: (h) => t.setMessages(
|
|
6918
|
-
h.map(
|
|
6918
|
+
h.map(jr).filter(Boolean).flat()
|
|
6919
6919
|
),
|
|
6920
6920
|
onImport: (h) => t.setMessages(
|
|
6921
|
-
h.map(
|
|
6921
|
+
h.map(jr).filter(Boolean).flat()
|
|
6922
6922
|
),
|
|
6923
6923
|
onCancel: async () => {
|
|
6924
6924
|
t.stop(), d.abort();
|
|
6925
6925
|
},
|
|
6926
6926
|
onNew: async (h) => {
|
|
6927
6927
|
v();
|
|
6928
|
-
const g = (a ??
|
|
6928
|
+
const g = (a ?? Nr)(h);
|
|
6929
6929
|
await t.sendMessage(g, {
|
|
6930
6930
|
metadata: h.runConfig
|
|
6931
6931
|
});
|
|
6932
6932
|
},
|
|
6933
6933
|
onEdit: async (h) => {
|
|
6934
6934
|
v();
|
|
6935
|
-
const g =
|
|
6935
|
+
const g = kr(
|
|
6936
6936
|
t.messages,
|
|
6937
6937
|
h.parentId
|
|
6938
6938
|
);
|
|
6939
6939
|
t.setMessages(g);
|
|
6940
|
-
const y = (a ??
|
|
6940
|
+
const y = (a ?? Nr)(h);
|
|
6941
6941
|
await t.sendMessage(y, {
|
|
6942
6942
|
metadata: h.runConfig
|
|
6943
6943
|
});
|
|
6944
6944
|
},
|
|
6945
6945
|
onReload: async (h, g) => {
|
|
6946
6946
|
v();
|
|
6947
|
-
const y =
|
|
6947
|
+
const y = kr(t.messages, h);
|
|
6948
6948
|
t.setMessages(y), await t.regenerate({ metadata: g.runConfig });
|
|
6949
6949
|
},
|
|
6950
6950
|
onAddToolResult: ({ toolCallId: h, result: g, isError: y }) => {
|
|
@@ -6969,10 +6969,10 @@ var ln = (t, n) => !t.parts || t.parts.length === 0 ? [] : t.parts.filter((a) =>
|
|
|
6969
6969
|
isLoading: m
|
|
6970
6970
|
});
|
|
6971
6971
|
return p;
|
|
6972
|
-
}, cn,
|
|
6972
|
+
}, cn, zr;
|
|
6973
6973
|
function Fh() {
|
|
6974
|
-
if (
|
|
6975
|
-
|
|
6974
|
+
if (zr) return cn;
|
|
6975
|
+
zr = 1;
|
|
6976
6976
|
function t(n, a) {
|
|
6977
6977
|
if (typeof n != "function")
|
|
6978
6978
|
throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof n}\`.`);
|
|
@@ -6990,11 +6990,11 @@ function Fh() {
|
|
|
6990
6990
|
var Zh = /* @__PURE__ */ Fh();
|
|
6991
6991
|
const Wh = /* @__PURE__ */ sh(Zh);
|
|
6992
6992
|
var wt = { exports: {} }, un = {};
|
|
6993
|
-
var
|
|
6993
|
+
var Mr;
|
|
6994
6994
|
function Bh() {
|
|
6995
|
-
if (
|
|
6996
|
-
|
|
6997
|
-
var t =
|
|
6995
|
+
if (Mr) return un;
|
|
6996
|
+
Mr = 1;
|
|
6997
|
+
var t = Ia;
|
|
6998
6998
|
function n(m, v) {
|
|
6999
6999
|
return m === v && (m !== 0 || 1 / m === 1 / v) || m !== m && v !== v;
|
|
7000
7000
|
}
|
|
@@ -7032,9 +7032,9 @@ function Bh() {
|
|
|
7032
7032
|
return un.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : d, un;
|
|
7033
7033
|
}
|
|
7034
7034
|
var dn = {};
|
|
7035
|
-
var
|
|
7035
|
+
var Lr;
|
|
7036
7036
|
function Vh() {
|
|
7037
|
-
return
|
|
7037
|
+
return Lr || (Lr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
7038
7038
|
function t(p, h) {
|
|
7039
7039
|
return p === h && (p !== 0 || 1 / p === 1 / h) || p !== p && h !== h;
|
|
7040
7040
|
}
|
|
@@ -7081,22 +7081,22 @@ function Vh() {
|
|
|
7081
7081
|
return h();
|
|
7082
7082
|
}
|
|
7083
7083
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
7084
|
-
var e =
|
|
7084
|
+
var e = Ia, r = typeof Object.is == "function" ? Object.is : t, o = e.useState, s = e.useEffect, u = e.useLayoutEffect, l = e.useDebugValue, d = !1, m = !1, v = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? i : n;
|
|
7085
7085
|
dn.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : v, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
7086
7086
|
})()), dn;
|
|
7087
7087
|
}
|
|
7088
|
-
var
|
|
7088
|
+
var Fr;
|
|
7089
7089
|
function Jh() {
|
|
7090
|
-
return
|
|
7090
|
+
return Fr || (Fr = 1, process.env.NODE_ENV === "production" ? wt.exports = Bh() : wt.exports = Vh()), wt.exports;
|
|
7091
7091
|
}
|
|
7092
|
-
var Gh = Jh(),
|
|
7092
|
+
var Gh = Jh(), Ja = (t, n, a) => {
|
|
7093
7093
|
if (!n.has(t))
|
|
7094
7094
|
throw TypeError("Cannot " + a);
|
|
7095
|
-
}, j = (t, n, a) => (
|
|
7095
|
+
}, j = (t, n, a) => (Ja(t, n, "read from private field"), a ? a.call(t) : n.get(t)), me = (t, n, a) => {
|
|
7096
7096
|
if (n.has(t))
|
|
7097
7097
|
throw TypeError("Cannot add the same private member more than once");
|
|
7098
7098
|
n instanceof WeakSet ? n.add(t) : n.set(t, a);
|
|
7099
|
-
}, Oe = (t, n, a, i) => (
|
|
7099
|
+
}, Oe = (t, n, a, i) => (Ja(t, n, "write to private field"), n.set(t, a), a);
|
|
7100
7100
|
function Hh(t, n) {
|
|
7101
7101
|
return n != null ? Wh(t, n) : t;
|
|
7102
7102
|
}
|
|
@@ -7158,7 +7158,7 @@ ct = /* @__PURE__ */ new WeakMap();
|
|
|
7158
7158
|
Je = /* @__PURE__ */ new WeakMap();
|
|
7159
7159
|
kn = /* @__PURE__ */ new WeakMap();
|
|
7160
7160
|
Nn = /* @__PURE__ */ new WeakMap();
|
|
7161
|
-
var Ge,
|
|
7161
|
+
var Ge, Zr = class extends Th {
|
|
7162
7162
|
constructor({ messages: n, ...a }) {
|
|
7163
7163
|
const i = new Kh(n);
|
|
7164
7164
|
super({ ...a, state: i }), me(this, Ge, void 0), this["~registerMessagesCallback"] = (e, r) => j(this, Ge)["~registerMessagesCallback"](e, r), this["~registerStatusCallback"] = (e) => j(this, Ge)["~registerStatusCallback"](e), this["~registerErrorCallback"] = (e) => j(this, Ge)["~registerErrorCallback"](e), Oe(this, Ge, i);
|
|
@@ -7171,9 +7171,9 @@ function qh({
|
|
|
7171
7171
|
...a
|
|
7172
7172
|
} = {}) {
|
|
7173
7173
|
const i = we(
|
|
7174
|
-
"chat" in a ? a.chat : new
|
|
7174
|
+
"chat" in a ? a.chat : new Zr(a)
|
|
7175
7175
|
);
|
|
7176
|
-
("chat" in a && a.chat !== i.current || "id" in a && i.current.id !== a.id) && (i.current = "chat" in a ? a.chat : new
|
|
7176
|
+
("chat" in a && a.chat !== i.current || "id" in a && i.current.id !== a.id) && (i.current = "chat" in a ? a.chat : new Zr(a));
|
|
7177
7177
|
const r = Ut(
|
|
7178
7178
|
(d) => i.current["~registerMessagesCallback"](d, t),
|
|
7179
7179
|
// `chatRef.current.id` is required to trigger re-subscription when the chat ID changes
|
|
@@ -7222,14 +7222,14 @@ var Xh = (t) => Object.fromEntries(
|
|
|
7222
7222
|
n,
|
|
7223
7223
|
{
|
|
7224
7224
|
...a.description ? { description: a.description } : void 0,
|
|
7225
|
-
parameters: a.parameters instanceof
|
|
7225
|
+
parameters: a.parameters instanceof Pr.ZodType ? Pr.toJSONSchema(a.parameters) : a.parameters
|
|
7226
7226
|
}
|
|
7227
7227
|
])
|
|
7228
7228
|
), Yh = (t) => Object.fromEntries(
|
|
7229
7229
|
Object.entries(t).filter(
|
|
7230
7230
|
([, n]) => !n.disabled && n.type !== "backend"
|
|
7231
7231
|
)
|
|
7232
|
-
), En = class extends
|
|
7232
|
+
), En = class extends Va {
|
|
7233
7233
|
runtime;
|
|
7234
7234
|
constructor(t) {
|
|
7235
7235
|
super({
|
|
@@ -7326,11 +7326,11 @@ const lb = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], ht = M("check",
|
|
|
7326
7326
|
const cb = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Mn = M("chevron-down", cb);
|
|
7327
7327
|
const ub = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], db = M("chevron-left", ub);
|
|
7328
7328
|
const mb = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], fb = M("chevron-right", mb);
|
|
7329
|
-
const pb = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]],
|
|
7329
|
+
const pb = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Ga = M("chevron-up", pb);
|
|
7330
7330
|
const gb = [
|
|
7331
7331
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
7332
7332
|
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
|
|
7333
|
-
],
|
|
7333
|
+
], Ha = M("copy", gb);
|
|
7334
7334
|
const vb = [
|
|
7335
7335
|
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
|
|
7336
7336
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
@@ -7338,7 +7338,16 @@ const vb = [
|
|
|
7338
7338
|
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
7339
7339
|
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
7340
7340
|
], hb = M("file-text", vb);
|
|
7341
|
-
const bb = [
|
|
7341
|
+
const bb = [
|
|
7342
|
+
["path", { d: "M12 2v4", key: "3427ic" }],
|
|
7343
|
+
["path", { d: "m16.2 7.8 2.9-2.9", key: "r700ao" }],
|
|
7344
|
+
["path", { d: "M18 12h4", key: "wj9ykh" }],
|
|
7345
|
+
["path", { d: "m16.2 16.2 2.9 2.9", key: "1bxg5t" }],
|
|
7346
|
+
["path", { d: "M12 18v4", key: "jadmvz" }],
|
|
7347
|
+
["path", { d: "m4.9 19.1 2.9-2.9", key: "bwix9q" }],
|
|
7348
|
+
["path", { d: "M2 12h4", key: "j09sii" }],
|
|
7349
|
+
["path", { d: "m4.9 4.9 2.9 2.9", key: "giyufr" }]
|
|
7350
|
+
], Ln = M("loader", bb);
|
|
7342
7351
|
const yb = [
|
|
7343
7352
|
["path", { d: "M8 3H5a2 2 0 0 0-2 2v3", key: "1dcmit" }],
|
|
7344
7353
|
["path", { d: "M21 8V5a2 2 0 0 0-2-2h-3", key: "1e4gt3" }],
|
|
@@ -7402,7 +7411,7 @@ const Ub = [
|
|
|
7402
7411
|
const Mb = [
|
|
7403
7412
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
7404
7413
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
7405
|
-
],
|
|
7414
|
+
], Fn = M("x", Mb), Lb = "/chat/completions", Fb = "You are a helpful assistant that can answer questions and help with tasks.";
|
|
7406
7415
|
function Zb(t, n) {
|
|
7407
7416
|
return `
|
|
7408
7417
|
${Fb}
|
|
@@ -7419,7 +7428,7 @@ const gS = ({
|
|
|
7419
7428
|
config: n
|
|
7420
7429
|
}) => {
|
|
7421
7430
|
const [a, i] = K(
|
|
7422
|
-
n.model?.defaultModel ??
|
|
7431
|
+
n.model?.defaultModel ?? _a[0]
|
|
7423
7432
|
), [e, r] = K(
|
|
7424
7433
|
n.modal?.defaultExpanded ?? !1
|
|
7425
7434
|
), [o, s] = K(n.modal?.defaultOpen), u = tb({
|
|
@@ -7434,7 +7443,7 @@ const gS = ({
|
|
|
7434
7443
|
messages: d,
|
|
7435
7444
|
system: Zb(
|
|
7436
7445
|
n.systemPrompt,
|
|
7437
|
-
n.plugins ??
|
|
7446
|
+
n.plugins ?? Ir
|
|
7438
7447
|
),
|
|
7439
7448
|
id: l,
|
|
7440
7449
|
config: {
|
|
@@ -7458,35 +7467,35 @@ const gS = ({
|
|
|
7458
7467
|
setIsExpanded: r,
|
|
7459
7468
|
isOpen: o ?? !1,
|
|
7460
7469
|
setIsOpen: s,
|
|
7461
|
-
plugins: n.plugins ??
|
|
7470
|
+
plugins: n.plugins ?? Ir
|
|
7462
7471
|
},
|
|
7463
7472
|
children: t
|
|
7464
7473
|
}
|
|
7465
7474
|
) });
|
|
7466
7475
|
};
|
|
7467
|
-
function
|
|
7476
|
+
function Wr(t, n) {
|
|
7468
7477
|
if (typeof t == "function")
|
|
7469
7478
|
return t(n);
|
|
7470
7479
|
t != null && (t.current = n);
|
|
7471
7480
|
}
|
|
7472
|
-
function
|
|
7481
|
+
function Zn(...t) {
|
|
7473
7482
|
return (n) => {
|
|
7474
7483
|
let a = !1;
|
|
7475
7484
|
const i = t.map((e) => {
|
|
7476
|
-
const r =
|
|
7485
|
+
const r = Wr(e, n);
|
|
7477
7486
|
return !a && typeof r == "function" && (a = !0), r;
|
|
7478
7487
|
});
|
|
7479
7488
|
if (a)
|
|
7480
7489
|
return () => {
|
|
7481
7490
|
for (let e = 0; e < i.length; e++) {
|
|
7482
7491
|
const r = i[e];
|
|
7483
|
-
typeof r == "function" ? r() :
|
|
7492
|
+
typeof r == "function" ? r() : Wr(t[e], null);
|
|
7484
7493
|
}
|
|
7485
7494
|
};
|
|
7486
7495
|
};
|
|
7487
7496
|
}
|
|
7488
7497
|
function Q(...t) {
|
|
7489
|
-
return f.useCallback(
|
|
7498
|
+
return f.useCallback(Zn(...t), t);
|
|
7490
7499
|
}
|
|
7491
7500
|
var Wb = Symbol.for("react.lazy"), zt = f[" use ".trim().toString()];
|
|
7492
7501
|
function Bb(t) {
|
|
@@ -7516,7 +7525,7 @@ function Jb(t) {
|
|
|
7516
7525
|
let { children: e, ...r } = a;
|
|
7517
7526
|
if (Ka(e) && typeof zt == "function" && (e = zt(e._payload)), f.isValidElement(e)) {
|
|
7518
7527
|
const o = Xb(e), s = qb(r, e.props);
|
|
7519
|
-
return e.type !== f.Fragment && (s.ref = i ?
|
|
7528
|
+
return e.type !== f.Fragment && (s.ref = i ? Zn(i, o) : o), f.cloneElement(e, s);
|
|
7520
7529
|
}
|
|
7521
7530
|
return f.Children.count(e) > 1 ? f.Children.only(null) : null;
|
|
7522
7531
|
});
|
|
@@ -7547,13 +7556,13 @@ function Xb(t) {
|
|
|
7547
7556
|
let n = Object.getOwnPropertyDescriptor(t.props, "ref")?.get, a = n && "isReactWarning" in n && n.isReactWarning;
|
|
7548
7557
|
return a ? t.ref : (n = Object.getOwnPropertyDescriptor(t, "ref")?.get, a = n && "isReactWarning" in n && n.isReactWarning, a ? t.props.ref : t.props.ref || t.ref);
|
|
7549
7558
|
}
|
|
7550
|
-
const
|
|
7559
|
+
const Br = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Vr = ng, Yb = (t, n) => (a) => {
|
|
7551
7560
|
var i;
|
|
7552
|
-
if (n?.variants == null) return
|
|
7561
|
+
if (n?.variants == null) return Vr(t, a?.class, a?.className);
|
|
7553
7562
|
const { variants: e, defaultVariants: r } = n, o = Object.keys(e).map((l) => {
|
|
7554
7563
|
const d = a?.[l], m = r?.[l];
|
|
7555
7564
|
if (d === null) return null;
|
|
7556
|
-
const v =
|
|
7565
|
+
const v = Br(d) || Br(m);
|
|
7557
7566
|
return e[l][v];
|
|
7558
7567
|
}), s = a && Object.entries(a).reduce((l, d) => {
|
|
7559
7568
|
let [m, v] = d;
|
|
@@ -7575,7 +7584,7 @@ const Wr = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Br = ng, Y
|
|
|
7575
7584
|
v
|
|
7576
7585
|
] : l;
|
|
7577
7586
|
}, []);
|
|
7578
|
-
return
|
|
7587
|
+
return Vr(t, o, u, a?.class, a?.className);
|
|
7579
7588
|
}, Qb = Yb(
|
|
7580
7589
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
7581
7590
|
{
|
|
@@ -7681,7 +7690,7 @@ function ty(...t) {
|
|
|
7681
7690
|
return a.scopeName = n.scopeName, a;
|
|
7682
7691
|
}
|
|
7683
7692
|
// @__NO_SIDE_EFFECTS__
|
|
7684
|
-
function
|
|
7693
|
+
function Wn(t) {
|
|
7685
7694
|
const n = /* @__PURE__ */ ny(t), a = f.forwardRef((i, e) => {
|
|
7686
7695
|
const { children: r, ...o } = i, s = f.Children.toArray(r), u = s.find(iy);
|
|
7687
7696
|
if (u) {
|
|
@@ -7698,7 +7707,7 @@ function ny(t) {
|
|
|
7698
7707
|
const { children: e, ...r } = a;
|
|
7699
7708
|
if (f.isValidElement(e)) {
|
|
7700
7709
|
const o = oy(e), s = ay(r, e.props);
|
|
7701
|
-
return e.type !== f.Fragment && (s.ref = i ?
|
|
7710
|
+
return e.type !== f.Fragment && (s.ref = i ? Zn(i, o) : o), f.cloneElement(e, s);
|
|
7702
7711
|
}
|
|
7703
7712
|
return f.Children.count(e) > 1 ? f.Children.only(null) : null;
|
|
7704
7713
|
});
|
|
@@ -7747,14 +7756,14 @@ var sy = [
|
|
|
7747
7756
|
"svg",
|
|
7748
7757
|
"ul"
|
|
7749
7758
|
], G = sy.reduce((t, n) => {
|
|
7750
|
-
const a = /* @__PURE__ */
|
|
7759
|
+
const a = /* @__PURE__ */ Wn(`Primitive.${n}`), i = f.forwardRef((e, r) => {
|
|
7751
7760
|
const { asChild: o, ...s } = e, u = o ? a : n;
|
|
7752
7761
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c(u, { ...s, ref: r });
|
|
7753
7762
|
});
|
|
7754
7763
|
return i.displayName = `Primitive.${n}`, { ...t, [n]: i };
|
|
7755
7764
|
}, {});
|
|
7756
7765
|
function ly(t, n) {
|
|
7757
|
-
t &&
|
|
7766
|
+
t && Pa.flushSync(() => t.dispatchEvent(n));
|
|
7758
7767
|
}
|
|
7759
7768
|
function je(t) {
|
|
7760
7769
|
const n = f.useRef(t);
|
|
@@ -7771,7 +7780,7 @@ function cy(t, n = globalThis?.document) {
|
|
|
7771
7780
|
return n.addEventListener("keydown", i, { capture: !0 }), () => n.removeEventListener("keydown", i, { capture: !0 });
|
|
7772
7781
|
}, [a, n]);
|
|
7773
7782
|
}
|
|
7774
|
-
var uy = "DismissableLayer", On = "dismissableLayer.update", dy = "dismissableLayer.pointerDownOutside", my = "dismissableLayer.focusOutside",
|
|
7783
|
+
var uy = "DismissableLayer", On = "dismissableLayer.update", dy = "dismissableLayer.pointerDownOutside", my = "dismissableLayer.focusOutside", Jr, Qa = f.createContext({
|
|
7775
7784
|
layers: /* @__PURE__ */ new Set(),
|
|
7776
7785
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
7777
7786
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -7796,11 +7805,11 @@ var uy = "DismissableLayer", On = "dismissableLayer.update", dy = "dismissableLa
|
|
|
7796
7805
|
x === l.layers.size - 1 && (i?.(w), !w.defaultPrevented && s && (w.preventDefault(), s()));
|
|
7797
7806
|
}, v), f.useEffect(() => {
|
|
7798
7807
|
if (d)
|
|
7799
|
-
return a && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
7800
|
-
a && l.layersWithOutsidePointerEventsDisabled.size === 1 && (v.body.style.pointerEvents =
|
|
7808
|
+
return a && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Jr = v.body.style.pointerEvents, v.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(d)), l.layers.add(d), Gr(), () => {
|
|
7809
|
+
a && l.layersWithOutsidePointerEventsDisabled.size === 1 && (v.body.style.pointerEvents = Jr);
|
|
7801
7810
|
};
|
|
7802
7811
|
}, [d, v, a, l]), f.useEffect(() => () => {
|
|
7803
|
-
d && (l.layers.delete(d), l.layersWithOutsidePointerEventsDisabled.delete(d),
|
|
7812
|
+
d && (l.layers.delete(d), l.layersWithOutsidePointerEventsDisabled.delete(d), Gr());
|
|
7804
7813
|
}, [d, l]), f.useEffect(() => {
|
|
7805
7814
|
const w = () => p({});
|
|
7806
7815
|
return document.addEventListener(On, w), () => document.removeEventListener(On, w);
|
|
@@ -7879,7 +7888,7 @@ function vy(t, n = globalThis?.document) {
|
|
|
7879
7888
|
onBlurCapture: () => i.current = !1
|
|
7880
7889
|
};
|
|
7881
7890
|
}
|
|
7882
|
-
function
|
|
7891
|
+
function Gr() {
|
|
7883
7892
|
const t = new CustomEvent(On);
|
|
7884
7893
|
document.dispatchEvent(t);
|
|
7885
7894
|
}
|
|
@@ -7920,22 +7929,22 @@ function Ne(t) {
|
|
|
7920
7929
|
function tt(t) {
|
|
7921
7930
|
return t.split("-")[1];
|
|
7922
7931
|
}
|
|
7923
|
-
function
|
|
7932
|
+
function Bn(t) {
|
|
7924
7933
|
return t === "x" ? "y" : "x";
|
|
7925
7934
|
}
|
|
7926
|
-
function
|
|
7935
|
+
function Vn(t) {
|
|
7927
7936
|
return t === "y" ? "height" : "width";
|
|
7928
7937
|
}
|
|
7929
7938
|
const _y = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
7930
7939
|
function ve(t) {
|
|
7931
7940
|
return _y.has(Ne(t)) ? "y" : "x";
|
|
7932
7941
|
}
|
|
7933
|
-
function
|
|
7934
|
-
return
|
|
7942
|
+
function Jn(t) {
|
|
7943
|
+
return Bn(ve(t));
|
|
7935
7944
|
}
|
|
7936
7945
|
function wy(t, n, a) {
|
|
7937
7946
|
a === void 0 && (a = !1);
|
|
7938
|
-
const i = tt(t), e =
|
|
7947
|
+
const i = tt(t), e = Jn(t), r = Vn(e);
|
|
7939
7948
|
let o = e === "x" ? i === (a ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
|
|
7940
7949
|
return n.reference[r] > n.floating[r] && (o = Lt(o)), [o, Lt(o)];
|
|
7941
7950
|
}
|
|
@@ -7946,12 +7955,12 @@ function Sy(t) {
|
|
|
7946
7955
|
function Pn(t) {
|
|
7947
7956
|
return t.replace(/start|end/g, (n) => xy[n]);
|
|
7948
7957
|
}
|
|
7949
|
-
const
|
|
7958
|
+
const Hr = ["left", "right"], Kr = ["right", "left"], Iy = ["top", "bottom"], ky = ["bottom", "top"];
|
|
7950
7959
|
function Ny(t, n, a) {
|
|
7951
7960
|
switch (t) {
|
|
7952
7961
|
case "top":
|
|
7953
7962
|
case "bottom":
|
|
7954
|
-
return a ? n ?
|
|
7963
|
+
return a ? n ? Kr : Hr : n ? Hr : Kr;
|
|
7955
7964
|
case "left":
|
|
7956
7965
|
case "right":
|
|
7957
7966
|
return n ? Iy : ky;
|
|
@@ -8002,12 +8011,12 @@ function Ft(t) {
|
|
|
8002
8011
|
y: a
|
|
8003
8012
|
};
|
|
8004
8013
|
}
|
|
8005
|
-
function
|
|
8014
|
+
function qr(t, n, a) {
|
|
8006
8015
|
let {
|
|
8007
8016
|
reference: i,
|
|
8008
8017
|
floating: e
|
|
8009
8018
|
} = t;
|
|
8010
|
-
const r = ve(n), o =
|
|
8019
|
+
const r = ve(n), o = Jn(n), s = Vn(o), u = Ne(n), l = r === "y", d = i.x + i.width / 2 - e.width / 2, m = i.y + i.height / 2 - e.height / 2, v = i[s] / 2 - e[s] / 2;
|
|
8011
8020
|
let p;
|
|
8012
8021
|
switch (u) {
|
|
8013
8022
|
case "top":
|
|
@@ -8064,7 +8073,7 @@ const Cy = async (t, n, a) => {
|
|
|
8064
8073
|
}), {
|
|
8065
8074
|
x: d,
|
|
8066
8075
|
y: m
|
|
8067
|
-
} =
|
|
8076
|
+
} = qr(l, i, u), v = i, p = {}, h = 0;
|
|
8068
8077
|
for (let g = 0; g < s.length; g++) {
|
|
8069
8078
|
const {
|
|
8070
8079
|
name: y,
|
|
@@ -8101,7 +8110,7 @@ const Cy = async (t, n, a) => {
|
|
|
8101
8110
|
}) : I.rects), {
|
|
8102
8111
|
x: d,
|
|
8103
8112
|
y: m
|
|
8104
|
-
} =
|
|
8113
|
+
} = qr(l, v, u)), g = -1);
|
|
8105
8114
|
}
|
|
8106
8115
|
return {
|
|
8107
8116
|
x: d,
|
|
@@ -8177,7 +8186,7 @@ const Py = (t) => ({
|
|
|
8177
8186
|
const m = to(d), v = {
|
|
8178
8187
|
x: a,
|
|
8179
8188
|
y: i
|
|
8180
|
-
}, p =
|
|
8189
|
+
}, p = Jn(e), h = Vn(p), g = await o.getDimensions(l), y = p === "y", $ = y ? "top" : "left", x = y ? "bottom" : "right", S = y ? "clientHeight" : "clientWidth", b = r.reference[h] + r.reference[p] - v[p] - r.floating[h], I = v[p] - r.reference[p], N = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l));
|
|
8181
8190
|
let w = N ? N[S] : 0;
|
|
8182
8191
|
(!w || !await (o.isElement == null ? void 0 : o.isElement(N))) && (w = s.floating[S] || r.floating[h]);
|
|
8183
8192
|
const C = b / 2 - I / 2, R = w / 2 - g[h] / 2 - 1, A = De(m[$], R), Z = De(m[x], R), H = A, B = w - g[h] - Z, L = w / 2 - g[h] / 2 + C, ee = Cn(H, L, B), V = !u.arrow && tt(e) != null && L !== ee && r.reference[h] / 2 - (L < H ? A : Z) - g[h] / 2 < 0, J = V ? L < H ? L - H : L - B : 0;
|
|
@@ -8275,7 +8284,7 @@ const Py = (t) => ({
|
|
|
8275
8284
|
}
|
|
8276
8285
|
};
|
|
8277
8286
|
};
|
|
8278
|
-
function
|
|
8287
|
+
function Xr(t, n) {
|
|
8279
8288
|
return {
|
|
8280
8289
|
top: t.top - n.height,
|
|
8281
8290
|
right: t.right - n.width,
|
|
@@ -8283,7 +8292,7 @@ function qr(t, n) {
|
|
|
8283
8292
|
left: t.left - n.width
|
|
8284
8293
|
};
|
|
8285
8294
|
}
|
|
8286
|
-
function
|
|
8295
|
+
function Yr(t) {
|
|
8287
8296
|
return yy.some((n) => t[n] >= 0);
|
|
8288
8297
|
}
|
|
8289
8298
|
const Dy = function(t) {
|
|
@@ -8302,11 +8311,11 @@ const Dy = function(t) {
|
|
|
8302
8311
|
const r = await pt(n, {
|
|
8303
8312
|
...e,
|
|
8304
8313
|
elementContext: "reference"
|
|
8305
|
-
}), o =
|
|
8314
|
+
}), o = Xr(r, a.reference);
|
|
8306
8315
|
return {
|
|
8307
8316
|
data: {
|
|
8308
8317
|
referenceHiddenOffsets: o,
|
|
8309
|
-
referenceHidden:
|
|
8318
|
+
referenceHidden: Yr(o)
|
|
8310
8319
|
}
|
|
8311
8320
|
};
|
|
8312
8321
|
}
|
|
@@ -8314,11 +8323,11 @@ const Dy = function(t) {
|
|
|
8314
8323
|
const r = await pt(n, {
|
|
8315
8324
|
...e,
|
|
8316
8325
|
altBoundary: !0
|
|
8317
|
-
}), o =
|
|
8326
|
+
}), o = Xr(r, a.floating);
|
|
8318
8327
|
return {
|
|
8319
8328
|
data: {
|
|
8320
8329
|
escapedOffsets: o,
|
|
8321
|
-
escaped:
|
|
8330
|
+
escaped: Yr(o)
|
|
8322
8331
|
}
|
|
8323
8332
|
};
|
|
8324
8333
|
}
|
|
@@ -8405,7 +8414,7 @@ const Ay = function(t) {
|
|
|
8405
8414
|
} = ke(t, n), l = {
|
|
8406
8415
|
x: a,
|
|
8407
8416
|
y: i
|
|
8408
|
-
}, d = await pt(n, u), m = ve(Ne(e)), v =
|
|
8417
|
+
}, d = await pt(n, u), m = ve(Ne(e)), v = Bn(m);
|
|
8409
8418
|
let p = l[v], h = l[m];
|
|
8410
8419
|
if (r) {
|
|
8411
8420
|
const y = v === "y" ? "top" : "left", $ = v === "y" ? "bottom" : "right", x = p + d[y], S = p - d[$];
|
|
@@ -8450,7 +8459,7 @@ const Ay = function(t) {
|
|
|
8450
8459
|
} = ke(t, n), d = {
|
|
8451
8460
|
x: a,
|
|
8452
8461
|
y: i
|
|
8453
|
-
}, m = ve(e), v =
|
|
8462
|
+
}, m = ve(e), v = Bn(m);
|
|
8454
8463
|
let p = d[v], h = d[m];
|
|
8455
8464
|
const g = ke(s, n), y = typeof g == "number" ? {
|
|
8456
8465
|
mainAxis: g,
|
|
@@ -8539,7 +8548,7 @@ function le(t) {
|
|
|
8539
8548
|
function ye(t) {
|
|
8540
8549
|
return Gt() ? t instanceof HTMLElement || t instanceof ne(t).HTMLElement : !1;
|
|
8541
8550
|
}
|
|
8542
|
-
function
|
|
8551
|
+
function Qr(t) {
|
|
8543
8552
|
return !Gt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof ne(t).ShadowRoot;
|
|
8544
8553
|
}
|
|
8545
8554
|
const My = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
@@ -8567,14 +8576,14 @@ function Ht(t) {
|
|
|
8567
8576
|
});
|
|
8568
8577
|
}
|
|
8569
8578
|
const Wy = ["transform", "translate", "scale", "rotate", "perspective"], By = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Vy = ["paint", "layout", "strict", "content"];
|
|
8570
|
-
function
|
|
8571
|
-
const n =
|
|
8579
|
+
function Gn(t) {
|
|
8580
|
+
const n = Hn(), a = le(t) ? ce(t) : t;
|
|
8572
8581
|
return Wy.some((i) => a[i] ? a[i] !== "none" : !1) || (a.containerType ? a.containerType !== "normal" : !1) || !n && (a.backdropFilter ? a.backdropFilter !== "none" : !1) || !n && (a.filter ? a.filter !== "none" : !1) || By.some((i) => (a.willChange || "").includes(i)) || Vy.some((i) => (a.contain || "").includes(i));
|
|
8573
8582
|
}
|
|
8574
8583
|
function Jy(t) {
|
|
8575
8584
|
let n = Re(t);
|
|
8576
8585
|
for (; ye(n) && !Xe(n); ) {
|
|
8577
|
-
if (
|
|
8586
|
+
if (Gn(n))
|
|
8578
8587
|
return n;
|
|
8579
8588
|
if (Ht(n))
|
|
8580
8589
|
return null;
|
|
@@ -8582,7 +8591,7 @@ function Jy(t) {
|
|
|
8582
8591
|
}
|
|
8583
8592
|
return null;
|
|
8584
8593
|
}
|
|
8585
|
-
function
|
|
8594
|
+
function Hn() {
|
|
8586
8595
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
8587
8596
|
}
|
|
8588
8597
|
const Gy = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
@@ -8608,10 +8617,10 @@ function Re(t) {
|
|
|
8608
8617
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
8609
8618
|
t.assignedSlot || // DOM Element detected.
|
|
8610
8619
|
t.parentNode || // ShadowRoot detected.
|
|
8611
|
-
|
|
8620
|
+
Qr(t) && t.host || // Fallback.
|
|
8612
8621
|
$e(t)
|
|
8613
8622
|
);
|
|
8614
|
-
return
|
|
8623
|
+
return Qr(n) ? n.host : n;
|
|
8615
8624
|
}
|
|
8616
8625
|
function io(t) {
|
|
8617
8626
|
const n = Re(t);
|
|
@@ -8640,11 +8649,11 @@ function ao(t) {
|
|
|
8640
8649
|
$: s
|
|
8641
8650
|
};
|
|
8642
8651
|
}
|
|
8643
|
-
function
|
|
8652
|
+
function Kn(t) {
|
|
8644
8653
|
return le(t) ? t : t.contextElement;
|
|
8645
8654
|
}
|
|
8646
8655
|
function Ke(t) {
|
|
8647
|
-
const n =
|
|
8656
|
+
const n = Kn(t);
|
|
8648
8657
|
if (!ye(n))
|
|
8649
8658
|
return he(1);
|
|
8650
8659
|
const a = n.getBoundingClientRect(), {
|
|
@@ -8661,7 +8670,7 @@ function Ke(t) {
|
|
|
8661
8670
|
const Hy = /* @__PURE__ */ he(0);
|
|
8662
8671
|
function oo(t) {
|
|
8663
8672
|
const n = ne(t);
|
|
8664
|
-
return !
|
|
8673
|
+
return !Hn() || !n.visualViewport ? Hy : {
|
|
8665
8674
|
x: n.visualViewport.offsetLeft,
|
|
8666
8675
|
y: n.visualViewport.offsetTop
|
|
8667
8676
|
};
|
|
@@ -8671,7 +8680,7 @@ function Ky(t, n, a) {
|
|
|
8671
8680
|
}
|
|
8672
8681
|
function Ue(t, n, a, i) {
|
|
8673
8682
|
n === void 0 && (n = !1), a === void 0 && (a = !1);
|
|
8674
|
-
const e = t.getBoundingClientRect(), r =
|
|
8683
|
+
const e = t.getBoundingClientRect(), r = Kn(t);
|
|
8675
8684
|
let o = he(1);
|
|
8676
8685
|
n && (i ? le(i) && (o = Ke(i)) : o = Ke(t));
|
|
8677
8686
|
const s = Ky(r, a, i) ? oo(r) : he(0);
|
|
@@ -8743,20 +8752,20 @@ function Yy(t) {
|
|
|
8743
8752
|
y: s
|
|
8744
8753
|
};
|
|
8745
8754
|
}
|
|
8746
|
-
const
|
|
8755
|
+
const ei = 25;
|
|
8747
8756
|
function Qy(t, n) {
|
|
8748
8757
|
const a = ne(t), i = $e(t), e = a.visualViewport;
|
|
8749
8758
|
let r = i.clientWidth, o = i.clientHeight, s = 0, u = 0;
|
|
8750
8759
|
if (e) {
|
|
8751
8760
|
r = e.width, o = e.height;
|
|
8752
|
-
const d =
|
|
8761
|
+
const d = Hn();
|
|
8753
8762
|
(!d || d && n === "fixed") && (s = e.offsetLeft, u = e.offsetTop);
|
|
8754
8763
|
}
|
|
8755
8764
|
const l = qt(i);
|
|
8756
8765
|
if (l <= 0) {
|
|
8757
8766
|
const d = i.ownerDocument, m = d.body, v = getComputedStyle(m), p = d.compatMode === "CSS1Compat" && parseFloat(v.marginLeft) + parseFloat(v.marginRight) || 0, h = Math.abs(i.clientWidth - m.clientWidth - p);
|
|
8758
|
-
h <=
|
|
8759
|
-
} else l <=
|
|
8767
|
+
h <= ei && (r -= h);
|
|
8768
|
+
} else l <= ei && (r += l);
|
|
8760
8769
|
return {
|
|
8761
8770
|
width: r,
|
|
8762
8771
|
height: o,
|
|
@@ -8774,7 +8783,7 @@ function t$(t, n) {
|
|
|
8774
8783
|
y: l
|
|
8775
8784
|
};
|
|
8776
8785
|
}
|
|
8777
|
-
function
|
|
8786
|
+
function ti(t, n, a) {
|
|
8778
8787
|
let i;
|
|
8779
8788
|
if (n === "viewport")
|
|
8780
8789
|
i = Qy(t, a);
|
|
@@ -8805,7 +8814,7 @@ function n$(t, n) {
|
|
|
8805
8814
|
const r = ce(t).position === "fixed";
|
|
8806
8815
|
let o = r ? Re(t) : t;
|
|
8807
8816
|
for (; le(o) && !Xe(o); ) {
|
|
8808
|
-
const s = ce(o), u =
|
|
8817
|
+
const s = ce(o), u = Gn(o);
|
|
8809
8818
|
!u && s.position === "fixed" && (e = null), (r ? !u && !e : !u && s.position === "static" && !!e && e$.has(e.position) || yt(o) && !u && lo(t, o)) ? i = i.filter((d) => d !== o) : e = s, o = Re(o);
|
|
8810
8819
|
}
|
|
8811
8820
|
return n.set(t, i), i;
|
|
@@ -8818,9 +8827,9 @@ function r$(t) {
|
|
|
8818
8827
|
strategy: e
|
|
8819
8828
|
} = t;
|
|
8820
8829
|
const o = [...a === "clippingAncestors" ? Ht(n) ? [] : n$(n, this._c) : [].concat(a), i], s = o[0], u = o.reduce((l, d) => {
|
|
8821
|
-
const m =
|
|
8830
|
+
const m = ti(n, d, e);
|
|
8822
8831
|
return l.top = te(m.top, l.top), l.right = De(m.right, l.right), l.bottom = De(m.bottom, l.bottom), l.left = te(m.left, l.left), l;
|
|
8823
|
-
},
|
|
8832
|
+
}, ti(n, s, e));
|
|
8824
8833
|
return {
|
|
8825
8834
|
width: u.right - u.left,
|
|
8826
8835
|
height: u.bottom - u.top,
|
|
@@ -8865,7 +8874,7 @@ function a$(t, n, a) {
|
|
|
8865
8874
|
function mn(t) {
|
|
8866
8875
|
return ce(t).position === "static";
|
|
8867
8876
|
}
|
|
8868
|
-
function
|
|
8877
|
+
function ni(t, n) {
|
|
8869
8878
|
if (!ye(t) || ce(t).position === "fixed")
|
|
8870
8879
|
return null;
|
|
8871
8880
|
if (n)
|
|
@@ -8886,10 +8895,10 @@ function co(t, n) {
|
|
|
8886
8895
|
}
|
|
8887
8896
|
return a;
|
|
8888
8897
|
}
|
|
8889
|
-
let i =
|
|
8898
|
+
let i = ni(t, n);
|
|
8890
8899
|
for (; i && Fy(i) && mn(i); )
|
|
8891
|
-
i =
|
|
8892
|
-
return i && Xe(i) && mn(i) && !
|
|
8900
|
+
i = ni(i, n);
|
|
8901
|
+
return i && Xe(i) && mn(i) && !Gn(i) ? a : i || Jy(t) || a;
|
|
8893
8902
|
}
|
|
8894
8903
|
const o$ = async function(t) {
|
|
8895
8904
|
const n = this.getOffsetParent || co, a = this.getDimensions, i = await a(t.floating);
|
|
@@ -8975,7 +8984,7 @@ function u$(t, n, a, i) {
|
|
|
8975
8984
|
elementResize: o = typeof ResizeObserver == "function",
|
|
8976
8985
|
layoutShift: s = typeof IntersectionObserver == "function",
|
|
8977
8986
|
animationFrame: u = !1
|
|
8978
|
-
} = i, l =
|
|
8987
|
+
} = i, l = Kn(t), d = e || r ? [...l ? gt(l) : [], ...gt(n)] : [];
|
|
8979
8988
|
d.forEach(($) => {
|
|
8980
8989
|
e && $.addEventListener("scroll", a, {
|
|
8981
8990
|
passive: !0
|
|
@@ -9003,7 +9012,7 @@ function u$(t, n, a, i) {
|
|
|
9003
9012
|
}), m?.(), ($ = p) == null || $.disconnect(), p = null, u && cancelAnimationFrame(h);
|
|
9004
9013
|
};
|
|
9005
9014
|
}
|
|
9006
|
-
const d$ = Ay, m$ = jy, f$ = Ty, p$ = zy, g$ = Dy,
|
|
9015
|
+
const d$ = Ay, m$ = jy, f$ = Ty, p$ = zy, g$ = Dy, ri = Py, v$ = Uy, h$ = (t, n, a) => {
|
|
9007
9016
|
const i = /* @__PURE__ */ new Map(), e = {
|
|
9008
9017
|
platform: l$,
|
|
9009
9018
|
...a
|
|
@@ -9051,7 +9060,7 @@ function Zt(t, n) {
|
|
|
9051
9060
|
function mo(t) {
|
|
9052
9061
|
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
9053
9062
|
}
|
|
9054
|
-
function
|
|
9063
|
+
function ii(t, n) {
|
|
9055
9064
|
const a = mo(t);
|
|
9056
9065
|
return Math.round(n * a) / a;
|
|
9057
9066
|
}
|
|
@@ -9105,7 +9114,7 @@ function $$(t) {
|
|
|
9105
9114
|
// setting it to `true` when `open === false` (must be specified).
|
|
9106
9115
|
isPositioned: H.current !== !1
|
|
9107
9116
|
};
|
|
9108
|
-
L.current && !Zt(C.current, de) && (C.current = de,
|
|
9117
|
+
L.current && !Zt(C.current, de) && (C.current = de, Pa.flushSync(() => {
|
|
9109
9118
|
m(de);
|
|
9110
9119
|
}));
|
|
9111
9120
|
});
|
|
@@ -9142,7 +9151,7 @@ function $$(t) {
|
|
|
9142
9151
|
};
|
|
9143
9152
|
if (!V.floating)
|
|
9144
9153
|
return D;
|
|
9145
|
-
const q =
|
|
9154
|
+
const q = ii(V.floating, d.x), de = ii(V.floating, d.y);
|
|
9146
9155
|
return s ? {
|
|
9147
9156
|
...D,
|
|
9148
9157
|
transform: "translate(" + q + "px, " + de + "px)",
|
|
@@ -9175,10 +9184,10 @@ const x$ = (t) => {
|
|
|
9175
9184
|
element: i,
|
|
9176
9185
|
padding: e
|
|
9177
9186
|
} = typeof t == "function" ? t(a) : t;
|
|
9178
|
-
return i && n(i) ? i.current != null ?
|
|
9187
|
+
return i && n(i) ? i.current != null ? ri({
|
|
9179
9188
|
element: i.current,
|
|
9180
9189
|
padding: e
|
|
9181
|
-
}).fn(a) : {} : i ?
|
|
9190
|
+
}).fn(a) : {} : i ? ri({
|
|
9182
9191
|
element: i,
|
|
9183
9192
|
padding: e
|
|
9184
9193
|
}).fn(a) : {};
|
|
@@ -9245,11 +9254,11 @@ function P$(t) {
|
|
|
9245
9254
|
a(void 0);
|
|
9246
9255
|
}, [t]), n;
|
|
9247
9256
|
}
|
|
9248
|
-
var
|
|
9257
|
+
var qn = "Popper", [po, Xt] = bt(qn), [T$, go] = po(qn), vo = (t) => {
|
|
9249
9258
|
const { __scopePopper: n, children: a } = t, [i, e] = f.useState(null);
|
|
9250
9259
|
return /* @__PURE__ */ c(T$, { scope: n, anchor: i, onAnchorChange: e, children: a });
|
|
9251
9260
|
};
|
|
9252
|
-
vo.displayName =
|
|
9261
|
+
vo.displayName = qn;
|
|
9253
9262
|
var ho = "PopperAnchor", bo = f.forwardRef(
|
|
9254
9263
|
(t, n) => {
|
|
9255
9264
|
const { __scopePopper: a, virtualRef: i, ...e } = t, r = go(ho, a), o = f.useRef(null), s = Q(n, o), u = f.useRef(null);
|
|
@@ -9260,7 +9269,7 @@ var ho = "PopperAnchor", bo = f.forwardRef(
|
|
|
9260
9269
|
}
|
|
9261
9270
|
);
|
|
9262
9271
|
bo.displayName = ho;
|
|
9263
|
-
var
|
|
9272
|
+
var Xn = "PopperContent", [D$, R$] = po(Xn), yo = f.forwardRef(
|
|
9264
9273
|
(t, n) => {
|
|
9265
9274
|
const {
|
|
9266
9275
|
__scopePopper: a,
|
|
@@ -9277,7 +9286,7 @@ var qn = "PopperContent", [D$, R$] = po(qn), yo = f.forwardRef(
|
|
|
9277
9286
|
updatePositionStrategy: p = "optimized",
|
|
9278
9287
|
onPlaced: h,
|
|
9279
9288
|
...g
|
|
9280
|
-
} = t, y = go(
|
|
9289
|
+
} = t, y = go(Xn, a), [$, x] = f.useState(null), S = Q(n, (rt) => x(rt)), [b, I] = f.useState(null), N = P$(b), w = N?.width ?? 0, C = N?.height ?? 0, R = i + (r !== "center" ? "-" + r : ""), A = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, Z = Array.isArray(l) ? l : [l], H = Z.length > 0, B = {
|
|
9281
9290
|
padding: A,
|
|
9282
9291
|
boundary: Z.filter(j$),
|
|
9283
9292
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -9303,8 +9312,8 @@ var qn = "PopperContent", [D$, R$] = po(qn), yo = f.forwardRef(
|
|
|
9303
9312
|
u && I$({ ...B }),
|
|
9304
9313
|
k$({
|
|
9305
9314
|
...B,
|
|
9306
|
-
apply: ({ elements: rt, rects:
|
|
9307
|
-
const { width: Hs, height: Ks } =
|
|
9315
|
+
apply: ({ elements: rt, rects: br, availableWidth: Js, availableHeight: Gs }) => {
|
|
9316
|
+
const { width: Hs, height: Ks } = br.reference, _t = rt.floating.style;
|
|
9308
9317
|
_t.setProperty("--radix-popper-available-width", `${Js}px`), _t.setProperty("--radix-popper-available-height", `${Gs}px`), _t.setProperty("--radix-popper-anchor-width", `${Hs}px`), _t.setProperty("--radix-popper-anchor-height", `${Ks}px`);
|
|
9309
9318
|
}
|
|
9310
9319
|
}),
|
|
@@ -9312,10 +9321,10 @@ var qn = "PopperContent", [D$, R$] = po(qn), yo = f.forwardRef(
|
|
|
9312
9321
|
U$({ arrowWidth: w, arrowHeight: C }),
|
|
9313
9322
|
v && N$({ strategy: "referenceHidden", ...B })
|
|
9314
9323
|
]
|
|
9315
|
-
}), [q, de] = _o(V),
|
|
9324
|
+
}), [q, de] = _o(V), hr = je(h);
|
|
9316
9325
|
ae(() => {
|
|
9317
|
-
J &&
|
|
9318
|
-
}, [J,
|
|
9326
|
+
J && hr?.();
|
|
9327
|
+
}, [J, hr]);
|
|
9319
9328
|
const Fs = D.arrow?.x, Zs = D.arrow?.y, Ws = D.arrow?.centerOffset !== 0, [Bs, Vs] = f.useState();
|
|
9320
9329
|
return ae(() => {
|
|
9321
9330
|
$ && Vs(window.getComputedStyle($).zIndex);
|
|
@@ -9373,7 +9382,7 @@ var qn = "PopperContent", [D$, R$] = po(qn), yo = f.forwardRef(
|
|
|
9373
9382
|
);
|
|
9374
9383
|
}
|
|
9375
9384
|
);
|
|
9376
|
-
yo.displayName =
|
|
9385
|
+
yo.displayName = Xn;
|
|
9377
9386
|
var $o = "PopperArrow", A$ = {
|
|
9378
9387
|
top: "bottom",
|
|
9379
9388
|
right: "left",
|
|
@@ -9441,7 +9450,7 @@ function _o(t) {
|
|
|
9441
9450
|
const [n, a = "center"] = t.split("-");
|
|
9442
9451
|
return [n, a];
|
|
9443
9452
|
}
|
|
9444
|
-
var wo = vo,
|
|
9453
|
+
var wo = vo, Yn = bo, So = yo, Io = xo, z$ = "Portal", Yt = f.forwardRef((t, n) => {
|
|
9445
9454
|
const { container: a, ...i } = t, [e, r] = f.useState(!1);
|
|
9446
9455
|
ae(() => r(!0), []);
|
|
9447
9456
|
const o = a || e && globalThis?.document?.body;
|
|
@@ -9584,7 +9593,7 @@ var V$ = Object.freeze({
|
|
|
9584
9593
|
ko.displayName = J$;
|
|
9585
9594
|
var G$ = ko, [en] = bt("Tooltip", [
|
|
9586
9595
|
Xt
|
|
9587
|
-
]), tn = Xt(), No = "TooltipProvider", H$ = 700, Dn = "tooltip.open", [K$,
|
|
9596
|
+
]), tn = Xt(), No = "TooltipProvider", H$ = 700, Dn = "tooltip.open", [K$, Qn] = en(No), Eo = (t) => {
|
|
9588
9597
|
const {
|
|
9589
9598
|
__scopeTooltip: n,
|
|
9590
9599
|
delayDuration: a = H$,
|
|
@@ -9629,7 +9638,7 @@ var vt = "Tooltip", [q$, $t] = en(vt), Oo = (t) => {
|
|
|
9629
9638
|
onOpenChange: r,
|
|
9630
9639
|
disableHoverableContent: o,
|
|
9631
9640
|
delayDuration: s
|
|
9632
|
-
} = t, u =
|
|
9641
|
+
} = t, u = Qn(vt, t.__scopeTooltip), l = tn(n), [d, m] = f.useState(null), v = He(), p = f.useRef(0), h = o ?? u.disableHoverableContent, g = s ?? u.delayDuration, y = f.useRef(!1), [$, x] = Qt({
|
|
9633
9642
|
prop: i,
|
|
9634
9643
|
defaultProp: e ?? !1,
|
|
9635
9644
|
onChange: (w) => {
|
|
@@ -9672,8 +9681,8 @@ var vt = "Tooltip", [q$, $t] = en(vt), Oo = (t) => {
|
|
|
9672
9681
|
Oo.displayName = vt;
|
|
9673
9682
|
var Rn = "TooltipTrigger", Co = f.forwardRef(
|
|
9674
9683
|
(t, n) => {
|
|
9675
|
-
const { __scopeTooltip: a, ...i } = t, e = $t(Rn, a), r =
|
|
9676
|
-
return f.useEffect(() => () => document.removeEventListener("pointerup", m), [m]), /* @__PURE__ */ c(
|
|
9684
|
+
const { __scopeTooltip: a, ...i } = t, e = $t(Rn, a), r = Qn(Rn, a), o = tn(a), s = f.useRef(null), u = Q(n, s, e.onTriggerChange), l = f.useRef(!1), d = f.useRef(!1), m = f.useCallback(() => l.current = !1, []);
|
|
9685
|
+
return f.useEffect(() => () => document.removeEventListener("pointerup", m), [m]), /* @__PURE__ */ c(Yn, { asChild: !0, ...o, children: /* @__PURE__ */ c(
|
|
9677
9686
|
G.button,
|
|
9678
9687
|
{
|
|
9679
9688
|
"aria-describedby": e.open ? e.contentId : void 0,
|
|
@@ -9699,20 +9708,20 @@ var Rn = "TooltipTrigger", Co = f.forwardRef(
|
|
|
9699
9708
|
}
|
|
9700
9709
|
);
|
|
9701
9710
|
Co.displayName = Rn;
|
|
9702
|
-
var
|
|
9711
|
+
var er = "TooltipPortal", [X$, Y$] = en(er, {
|
|
9703
9712
|
forceMount: void 0
|
|
9704
9713
|
}), Po = (t) => {
|
|
9705
|
-
const { __scopeTooltip: n, forceMount: a, children: i, container: e } = t, r = $t(
|
|
9714
|
+
const { __scopeTooltip: n, forceMount: a, children: i, container: e } = t, r = $t(er, n);
|
|
9706
9715
|
return /* @__PURE__ */ c(X$, { scope: n, forceMount: a, children: /* @__PURE__ */ c(Ee, { present: a || r.open, children: /* @__PURE__ */ c(Yt, { asChild: !0, container: e, children: i }) }) });
|
|
9707
9716
|
};
|
|
9708
|
-
Po.displayName =
|
|
9717
|
+
Po.displayName = er;
|
|
9709
9718
|
var Ye = "TooltipContent", To = f.forwardRef(
|
|
9710
9719
|
(t, n) => {
|
|
9711
9720
|
const a = Y$(Ye, t.__scopeTooltip), { forceMount: i = a.forceMount, side: e = "top", ...r } = t, o = $t(Ye, t.__scopeTooltip);
|
|
9712
9721
|
return /* @__PURE__ */ c(Ee, { present: i || o.open, children: o.disableHoverableContent ? /* @__PURE__ */ c(Do, { side: e, ...r, ref: n }) : /* @__PURE__ */ c(Q$, { side: e, ...r, ref: n }) });
|
|
9713
9722
|
}
|
|
9714
9723
|
), Q$ = f.forwardRef((t, n) => {
|
|
9715
|
-
const a = $t(Ye, t.__scopeTooltip), i =
|
|
9724
|
+
const a = $t(Ye, t.__scopeTooltip), i = Qn(Ye, t.__scopeTooltip), e = f.useRef(null), r = Q(n, e), [o, s] = f.useState(null), { trigger: u, onClose: l } = a, d = e.current, { onPointerInTransitChange: m } = i, v = f.useCallback(() => {
|
|
9716
9725
|
s(null), m(!1);
|
|
9717
9726
|
}, [m]), p = f.useCallback(
|
|
9718
9727
|
(h, g) => {
|
|
@@ -9905,17 +9914,17 @@ function jo({
|
|
|
9905
9914
|
}
|
|
9906
9915
|
);
|
|
9907
9916
|
}
|
|
9908
|
-
function
|
|
9917
|
+
function tr({
|
|
9909
9918
|
...t
|
|
9910
9919
|
}) {
|
|
9911
9920
|
return /* @__PURE__ */ c(jo, { children: /* @__PURE__ */ c(ux, { "data-slot": "tooltip", ...t }) });
|
|
9912
9921
|
}
|
|
9913
|
-
function
|
|
9922
|
+
function nr({
|
|
9914
9923
|
...t
|
|
9915
9924
|
}) {
|
|
9916
9925
|
return /* @__PURE__ */ c(dx, { "data-slot": "tooltip-trigger", ...t });
|
|
9917
9926
|
}
|
|
9918
|
-
function
|
|
9927
|
+
function rr({
|
|
9919
9928
|
className: t,
|
|
9920
9929
|
sideOffset: n = 0,
|
|
9921
9930
|
children: a,
|
|
@@ -9946,8 +9955,8 @@ const oe = eg(
|
|
|
9946
9955
|
align: i = "center",
|
|
9947
9956
|
className: e,
|
|
9948
9957
|
...r
|
|
9949
|
-
}, o) => /* @__PURE__ */ O(
|
|
9950
|
-
/* @__PURE__ */ c(
|
|
9958
|
+
}, o) => /* @__PURE__ */ O(tr, { children: [
|
|
9959
|
+
/* @__PURE__ */ c(nr, { asChild: !0, children: /* @__PURE__ */ O(
|
|
9951
9960
|
be,
|
|
9952
9961
|
{
|
|
9953
9962
|
variant: "ghost",
|
|
@@ -9961,7 +9970,7 @@ const oe = eg(
|
|
|
9961
9970
|
]
|
|
9962
9971
|
}
|
|
9963
9972
|
) }),
|
|
9964
|
-
/* @__PURE__ */ c(
|
|
9973
|
+
/* @__PURE__ */ c(rr, { side: a, align: i, children: n })
|
|
9965
9974
|
] })
|
|
9966
9975
|
);
|
|
9967
9976
|
oe.displayName = "TooltipIconButton";
|
|
@@ -9992,7 +10001,7 @@ const vx = () => {
|
|
|
9992
10001
|
return i ? /* @__PURE__ */ O("div", { className: "aui-code-header-root bg-muted-foreground/15 text-foreground dark:bg-muted-foreground/20 mt-4 flex items-center justify-between gap-4 rounded-t-lg px-4 py-2 text-sm font-semibold", children: [
|
|
9993
10002
|
/* @__PURE__ */ c("span", { className: "aui-code-header-language lowercase [&>span]:text-xs", children: t }),
|
|
9994
10003
|
/* @__PURE__ */ O(oe, { tooltip: "Copy", onClick: o, children: [
|
|
9995
|
-
!e && /* @__PURE__ */ c(
|
|
10004
|
+
!e && /* @__PURE__ */ c(Ha, {}),
|
|
9996
10005
|
e && /* @__PURE__ */ c(ht, {})
|
|
9997
10006
|
] })
|
|
9998
10007
|
] }) : null;
|
|
@@ -10196,7 +10205,7 @@ const vx = () => {
|
|
|
10196
10205
|
})
|
|
10197
10206
|
), xx = z({
|
|
10198
10207
|
content: Me($x)
|
|
10199
|
-
}).or(
|
|
10208
|
+
}).or($a());
|
|
10200
10209
|
function zo(t) {
|
|
10201
10210
|
return t.replace(/[-_]/g, " ").split(/(?=[A-Z])/).join(" ").split(/\s+/).map((n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase()).join(" ");
|
|
10202
10211
|
}
|
|
@@ -10208,7 +10217,7 @@ const _x = ({
|
|
|
10208
10217
|
}) => {
|
|
10209
10218
|
const r = se(({ message: v }) => v).parts.filter((v) => v.type === "tool-call"), o = r.findIndex(
|
|
10210
10219
|
(v) => v.toolName === t
|
|
10211
|
-
), s = Ie(() => n.type === "complete" ? /* @__PURE__ */ c(ht, { className: "size-4 text-emerald-500" }) : n.type === "incomplete" ? /* @__PURE__ */ c(rg, { className: "size-4 text-rose-500" }) : /* @__PURE__ */ c(
|
|
10220
|
+
), s = Ie(() => n.type === "complete" ? /* @__PURE__ */ c(ht, { className: "size-4 text-emerald-500" }) : n.type === "incomplete" ? /* @__PURE__ */ c(rg, { className: "size-4 text-rose-500" }) : /* @__PURE__ */ c(Ln, { className: "text-muted-foreground size-4 animate-spin" }), [n]), u = Le(), [l, d] = K(!1), m = (v) => {
|
|
10212
10221
|
v.stopPropagation(), d(!l);
|
|
10213
10222
|
};
|
|
10214
10223
|
return /* @__PURE__ */ O(
|
|
@@ -10240,7 +10249,7 @@ const _x = ({
|
|
|
10240
10249
|
size: "icon",
|
|
10241
10250
|
className: "cursor-pointer hover:bg-transparent",
|
|
10242
10251
|
onClick: m,
|
|
10243
|
-
children: l ? /* @__PURE__ */ c(
|
|
10252
|
+
children: l ? /* @__PURE__ */ c(Ga, { className: "size-4" }) : /* @__PURE__ */ c(Mn, { className: "size-4" })
|
|
10244
10253
|
}
|
|
10245
10254
|
) })
|
|
10246
10255
|
]
|
|
@@ -10267,8 +10276,8 @@ function wx({ result: t, args: n }) {
|
|
|
10267
10276
|
Sx,
|
|
10268
10277
|
{
|
|
10269
10278
|
tabs: [
|
|
10270
|
-
{ id: "result", label: "
|
|
10271
|
-
{ id: "args", label: "
|
|
10279
|
+
{ id: "result", label: "Output" },
|
|
10280
|
+
{ id: "args", label: "Arguments" }
|
|
10272
10281
|
],
|
|
10273
10282
|
activeTab: a,
|
|
10274
10283
|
onTabClick: (r, o) => {
|
|
@@ -10276,20 +10285,25 @@ function wx({ result: t, args: n }) {
|
|
|
10276
10285
|
}
|
|
10277
10286
|
}
|
|
10278
10287
|
),
|
|
10279
|
-
/* @__PURE__ */ O("div", { className: "bg-background flex w-full flex-col items-start gap-4 border-t", children: [
|
|
10288
|
+
/* @__PURE__ */ O("div", { className: "bg-background relative flex w-full flex-col items-start gap-4 border-t", children: [
|
|
10280
10289
|
/* @__PURE__ */ c(
|
|
10281
|
-
|
|
10290
|
+
"div",
|
|
10282
10291
|
{
|
|
10283
|
-
|
|
10284
|
-
|
|
10285
|
-
|
|
10292
|
+
className: k(
|
|
10293
|
+
"w-full transition-opacity",
|
|
10294
|
+
a === "args" ? "opacity-100" : "pointer-events-none absolute opacity-0"
|
|
10295
|
+
),
|
|
10296
|
+
children: /* @__PURE__ */ c(Mo, { text: JSON.stringify(n, null, 2), language: "json" })
|
|
10286
10297
|
}
|
|
10287
10298
|
),
|
|
10288
10299
|
/* @__PURE__ */ c(
|
|
10289
|
-
|
|
10300
|
+
"div",
|
|
10290
10301
|
{
|
|
10291
|
-
|
|
10292
|
-
|
|
10302
|
+
className: k(
|
|
10303
|
+
"w-full transition-opacity",
|
|
10304
|
+
a === "result" ? "opacity-100" : "pointer-events-none absolute opacity-0"
|
|
10305
|
+
),
|
|
10306
|
+
children: /* @__PURE__ */ c(Ix, { result: t })
|
|
10293
10307
|
}
|
|
10294
10308
|
)
|
|
10295
10309
|
] })
|
|
@@ -10300,12 +10314,12 @@ function Sx({
|
|
|
10300
10314
|
activeTab: n,
|
|
10301
10315
|
onTabClick: a
|
|
10302
10316
|
}) {
|
|
10303
|
-
return /* @__PURE__ */ c("div", { className: "bg-muted flex h-full items-center
|
|
10317
|
+
return /* @__PURE__ */ c("div", { className: "bg-muted flex h-full items-center px-3 py-2", children: t.map((i) => /* @__PURE__ */ c(
|
|
10304
10318
|
"button",
|
|
10305
10319
|
{
|
|
10306
10320
|
onClick: (e) => a(e, i.id),
|
|
10307
10321
|
className: k(
|
|
10308
|
-
"rounded-md px-3 py-1 text-sm font-medium transition-all",
|
|
10322
|
+
"cursor-pointer rounded-md px-3 py-1 text-sm font-medium transition-all",
|
|
10309
10323
|
n === i.id ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
10310
10324
|
),
|
|
10311
10325
|
children: i.label
|
|
@@ -10329,10 +10343,24 @@ function Ix({
|
|
|
10329
10343
|
case "image": {
|
|
10330
10344
|
const r = `data:image/png;base64,${i.data}`;
|
|
10331
10345
|
return /* @__PURE__ */ c(
|
|
10332
|
-
"
|
|
10346
|
+
"div",
|
|
10333
10347
|
{
|
|
10334
|
-
|
|
10335
|
-
|
|
10348
|
+
className: "flex items-center justify-center rounded-lg p-5",
|
|
10349
|
+
style: {
|
|
10350
|
+
backgroundImage: `linear-gradient(45deg, #ccc 25%, transparent 25%),
|
|
10351
|
+
linear-gradient(135deg, #ccc 25%, transparent 25%),
|
|
10352
|
+
linear-gradient(45deg, transparent 75%, #ccc 75%),
|
|
10353
|
+
linear-gradient(135deg, transparent 75%, #ccc 75%)`,
|
|
10354
|
+
backgroundSize: "25px 25px",
|
|
10355
|
+
backgroundPosition: "0 0, 12.5px 0, 12.5px -12.5px, 0px 12.5px"
|
|
10356
|
+
},
|
|
10357
|
+
children: /* @__PURE__ */ c(
|
|
10358
|
+
"img",
|
|
10359
|
+
{
|
|
10360
|
+
src: r,
|
|
10361
|
+
className: "max-h-[300px] max-w-full object-contain"
|
|
10362
|
+
}
|
|
10363
|
+
)
|
|
10336
10364
|
},
|
|
10337
10365
|
e
|
|
10338
10366
|
);
|
|
@@ -10426,7 +10454,7 @@ function Nx(t, n) {
|
|
|
10426
10454
|
return t;
|
|
10427
10455
|
}
|
|
10428
10456
|
}
|
|
10429
|
-
var nn = "Collapsible", [Ex] = bt(nn), [Ox,
|
|
10457
|
+
var nn = "Collapsible", [Ex] = bt(nn), [Ox, ir] = Ex(nn), Lo = f.forwardRef(
|
|
10430
10458
|
(t, n) => {
|
|
10431
10459
|
const {
|
|
10432
10460
|
__scopeCollapsible: a,
|
|
@@ -10452,7 +10480,7 @@ var nn = "Collapsible", [Ex] = bt(nn), [Ox, rr] = Ex(nn), Lo = f.forwardRef(
|
|
|
10452
10480
|
children: /* @__PURE__ */ c(
|
|
10453
10481
|
G.div,
|
|
10454
10482
|
{
|
|
10455
|
-
"data-state":
|
|
10483
|
+
"data-state": or(u),
|
|
10456
10484
|
"data-disabled": r ? "" : void 0,
|
|
10457
10485
|
...s,
|
|
10458
10486
|
ref: n
|
|
@@ -10465,14 +10493,14 @@ var nn = "Collapsible", [Ex] = bt(nn), [Ox, rr] = Ex(nn), Lo = f.forwardRef(
|
|
|
10465
10493
|
Lo.displayName = nn;
|
|
10466
10494
|
var Fo = "CollapsibleTrigger", Zo = f.forwardRef(
|
|
10467
10495
|
(t, n) => {
|
|
10468
|
-
const { __scopeCollapsible: a, ...i } = t, e =
|
|
10496
|
+
const { __scopeCollapsible: a, ...i } = t, e = ir(Fo, a);
|
|
10469
10497
|
return /* @__PURE__ */ c(
|
|
10470
10498
|
G.button,
|
|
10471
10499
|
{
|
|
10472
10500
|
type: "button",
|
|
10473
10501
|
"aria-controls": e.contentId,
|
|
10474
10502
|
"aria-expanded": e.open || !1,
|
|
10475
|
-
"data-state":
|
|
10503
|
+
"data-state": or(e.open),
|
|
10476
10504
|
"data-disabled": e.disabled ? "" : void 0,
|
|
10477
10505
|
disabled: e.disabled,
|
|
10478
10506
|
...i,
|
|
@@ -10483,15 +10511,15 @@ var Fo = "CollapsibleTrigger", Zo = f.forwardRef(
|
|
|
10483
10511
|
}
|
|
10484
10512
|
);
|
|
10485
10513
|
Zo.displayName = Fo;
|
|
10486
|
-
var
|
|
10514
|
+
var ar = "CollapsibleContent", Wo = f.forwardRef(
|
|
10487
10515
|
(t, n) => {
|
|
10488
|
-
const { forceMount: a, ...i } = t, e =
|
|
10516
|
+
const { forceMount: a, ...i } = t, e = ir(ar, t.__scopeCollapsible);
|
|
10489
10517
|
return /* @__PURE__ */ c(Ee, { present: a || e.open, children: ({ present: r }) => /* @__PURE__ */ c(Cx, { ...i, ref: n, present: r }) });
|
|
10490
10518
|
}
|
|
10491
10519
|
);
|
|
10492
|
-
Wo.displayName =
|
|
10520
|
+
Wo.displayName = ar;
|
|
10493
10521
|
var Cx = f.forwardRef((t, n) => {
|
|
10494
|
-
const { __scopeCollapsible: a, present: i, children: e, ...r } = t, o =
|
|
10522
|
+
const { __scopeCollapsible: a, present: i, children: e, ...r } = t, o = ir(ar, a), [s, u] = f.useState(i), l = f.useRef(null), d = Q(n, l), m = f.useRef(0), v = m.current, p = f.useRef(0), h = p.current, g = o.open || s, y = f.useRef(g), $ = f.useRef(void 0);
|
|
10495
10523
|
return f.useEffect(() => {
|
|
10496
10524
|
const x = requestAnimationFrame(() => y.current = !1);
|
|
10497
10525
|
return () => cancelAnimationFrame(x);
|
|
@@ -10508,7 +10536,7 @@ var Cx = f.forwardRef((t, n) => {
|
|
|
10508
10536
|
}, [o.open, i]), /* @__PURE__ */ c(
|
|
10509
10537
|
G.div,
|
|
10510
10538
|
{
|
|
10511
|
-
"data-state":
|
|
10539
|
+
"data-state": or(o.open),
|
|
10512
10540
|
"data-disabled": o.disabled ? "" : void 0,
|
|
10513
10541
|
id: o.contentId,
|
|
10514
10542
|
hidden: !g,
|
|
@@ -10523,7 +10551,7 @@ var Cx = f.forwardRef((t, n) => {
|
|
|
10523
10551
|
}
|
|
10524
10552
|
);
|
|
10525
10553
|
});
|
|
10526
|
-
function
|
|
10554
|
+
function or(t) {
|
|
10527
10555
|
return t ? "open" : "closed";
|
|
10528
10556
|
}
|
|
10529
10557
|
var Px = Lo;
|
|
@@ -10554,8 +10582,8 @@ function Rx({
|
|
|
10554
10582
|
}
|
|
10555
10583
|
);
|
|
10556
10584
|
}
|
|
10557
|
-
const
|
|
10558
|
-
const a = we(null), [i, e] = K(!1), r = Yp(a,
|
|
10585
|
+
const ai = 200, Bo = ({ className: t, children: n }) => {
|
|
10586
|
+
const a = we(null), [i, e] = K(!1), r = Yp(a, ai), o = Ut(
|
|
10559
10587
|
(s) => {
|
|
10560
10588
|
s || r(), e(s);
|
|
10561
10589
|
},
|
|
@@ -10569,7 +10597,7 @@ const ii = 200, Bo = ({ className: t, children: n }) => {
|
|
|
10569
10597
|
onOpenChange: o,
|
|
10570
10598
|
className: k("aui-reasoning-root mb-4 w-full", t),
|
|
10571
10599
|
style: {
|
|
10572
|
-
"--animation-duration": `${
|
|
10600
|
+
"--animation-duration": `${ai}ms`
|
|
10573
10601
|
},
|
|
10574
10602
|
children: n
|
|
10575
10603
|
}
|
|
@@ -10691,7 +10719,7 @@ const Ux = () => /* @__PURE__ */ c(Uo, {}), zx = ({
|
|
|
10691
10719
|
Go.displayName = "Reasoning";
|
|
10692
10720
|
const Ho = zn(zx);
|
|
10693
10721
|
Ho.displayName = "ReasoningGroup";
|
|
10694
|
-
var pn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount",
|
|
10722
|
+
var pn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount", oi = { bubbles: !1, cancelable: !0 }, Mx = "FocusScope", sr = f.forwardRef((t, n) => {
|
|
10695
10723
|
const {
|
|
10696
10724
|
loop: a = !1,
|
|
10697
10725
|
trapped: i = !1,
|
|
@@ -10730,16 +10758,16 @@ var pn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount", ai
|
|
|
10730
10758
|
}
|
|
10731
10759
|
}, [i, s, p.paused]), f.useEffect(() => {
|
|
10732
10760
|
if (s) {
|
|
10733
|
-
|
|
10761
|
+
li.add(p);
|
|
10734
10762
|
const g = document.activeElement;
|
|
10735
10763
|
if (!s.contains(g)) {
|
|
10736
|
-
const $ = new CustomEvent(pn,
|
|
10764
|
+
const $ = new CustomEvent(pn, oi);
|
|
10737
10765
|
s.addEventListener(pn, l), s.dispatchEvent($), $.defaultPrevented || (Lx(Vx(Ko(s)), { select: !0 }), document.activeElement === g && Ce(s));
|
|
10738
10766
|
}
|
|
10739
10767
|
return () => {
|
|
10740
10768
|
s.removeEventListener(pn, l), setTimeout(() => {
|
|
10741
|
-
const $ = new CustomEvent(gn,
|
|
10742
|
-
s.addEventListener(gn, d), s.dispatchEvent($), $.defaultPrevented || Ce(g ?? document.body, { select: !0 }), s.removeEventListener(gn, d),
|
|
10769
|
+
const $ = new CustomEvent(gn, oi);
|
|
10770
|
+
s.addEventListener(gn, d), s.dispatchEvent($), $.defaultPrevented || Ce(g ?? document.body, { select: !0 }), s.removeEventListener(gn, d), li.remove(p);
|
|
10743
10771
|
}, 0);
|
|
10744
10772
|
};
|
|
10745
10773
|
}
|
|
@@ -10757,14 +10785,14 @@ var pn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount", ai
|
|
|
10757
10785
|
);
|
|
10758
10786
|
return /* @__PURE__ */ c(G.div, { tabIndex: -1, ...o, ref: v, onKeyDown: h });
|
|
10759
10787
|
});
|
|
10760
|
-
|
|
10788
|
+
sr.displayName = Mx;
|
|
10761
10789
|
function Lx(t, { select: n = !1 } = {}) {
|
|
10762
10790
|
const a = document.activeElement;
|
|
10763
10791
|
for (const i of t)
|
|
10764
10792
|
if (Ce(i, { select: n }), document.activeElement !== a) return;
|
|
10765
10793
|
}
|
|
10766
10794
|
function Fx(t) {
|
|
10767
|
-
const n = Ko(t), a =
|
|
10795
|
+
const n = Ko(t), a = si(n, t), i = si(n.reverse(), t);
|
|
10768
10796
|
return [a, i];
|
|
10769
10797
|
}
|
|
10770
10798
|
function Ko(t) {
|
|
@@ -10777,7 +10805,7 @@ function Ko(t) {
|
|
|
10777
10805
|
for (; a.nextNode(); ) n.push(a.currentNode);
|
|
10778
10806
|
return n;
|
|
10779
10807
|
}
|
|
10780
|
-
function
|
|
10808
|
+
function si(t, n) {
|
|
10781
10809
|
for (const a of t)
|
|
10782
10810
|
if (!Zx(a, { upTo: n })) return a;
|
|
10783
10811
|
}
|
|
@@ -10799,20 +10827,20 @@ function Ce(t, { select: n = !1 } = {}) {
|
|
|
10799
10827
|
t.focus({ preventScroll: !0 }), t !== a && Wx(t) && n && t.select();
|
|
10800
10828
|
}
|
|
10801
10829
|
}
|
|
10802
|
-
var
|
|
10830
|
+
var li = Bx();
|
|
10803
10831
|
function Bx() {
|
|
10804
10832
|
let t = [];
|
|
10805
10833
|
return {
|
|
10806
10834
|
add(n) {
|
|
10807
10835
|
const a = t[0];
|
|
10808
|
-
n !== a && a?.pause(), t =
|
|
10836
|
+
n !== a && a?.pause(), t = ci(t, n), t.unshift(n);
|
|
10809
10837
|
},
|
|
10810
10838
|
remove(n) {
|
|
10811
|
-
t =
|
|
10839
|
+
t = ci(t, n), t[0]?.resume();
|
|
10812
10840
|
}
|
|
10813
10841
|
};
|
|
10814
10842
|
}
|
|
10815
|
-
function
|
|
10843
|
+
function ci(t, n) {
|
|
10816
10844
|
const a = [...t], i = a.indexOf(n);
|
|
10817
10845
|
return i !== -1 && a.splice(i, 1), a;
|
|
10818
10846
|
}
|
|
@@ -10823,12 +10851,12 @@ var vn = 0;
|
|
|
10823
10851
|
function qo() {
|
|
10824
10852
|
f.useEffect(() => {
|
|
10825
10853
|
const t = document.querySelectorAll("[data-radix-focus-guard]");
|
|
10826
|
-
return document.body.insertAdjacentElement("afterbegin", t[0] ??
|
|
10854
|
+
return document.body.insertAdjacentElement("afterbegin", t[0] ?? ui()), document.body.insertAdjacentElement("beforeend", t[1] ?? ui()), vn++, () => {
|
|
10827
10855
|
vn === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((n) => n.remove()), vn--;
|
|
10828
10856
|
};
|
|
10829
10857
|
}, []);
|
|
10830
10858
|
}
|
|
10831
|
-
function
|
|
10859
|
+
function ui() {
|
|
10832
10860
|
const t = document.createElement("span");
|
|
10833
10861
|
return t.setAttribute("data-radix-focus-guard", ""), t.tabIndex = 0, t.style.outline = "none", t.style.opacity = "0", t.style.position = "fixed", t.style.pointerEvents = "none", t;
|
|
10834
10862
|
}
|
|
@@ -10879,7 +10907,7 @@ function Kx(t, n) {
|
|
|
10879
10907
|
})[0];
|
|
10880
10908
|
return a.callback = n, a.facade;
|
|
10881
10909
|
}
|
|
10882
|
-
var qx = typeof window < "u" ? f.useLayoutEffect : f.useEffect,
|
|
10910
|
+
var qx = typeof window < "u" ? f.useLayoutEffect : f.useEffect, di = /* @__PURE__ */ new WeakMap();
|
|
10883
10911
|
function Xx(t, n) {
|
|
10884
10912
|
var a = Kx(null, function(i) {
|
|
10885
10913
|
return t.forEach(function(e) {
|
|
@@ -10887,7 +10915,7 @@ function Xx(t, n) {
|
|
|
10887
10915
|
});
|
|
10888
10916
|
});
|
|
10889
10917
|
return qx(function() {
|
|
10890
|
-
var i =
|
|
10918
|
+
var i = di.get(a);
|
|
10891
10919
|
if (i) {
|
|
10892
10920
|
var e = new Set(i), r = new Set(t), o = a.current;
|
|
10893
10921
|
e.forEach(function(s) {
|
|
@@ -10896,7 +10924,7 @@ function Xx(t, n) {
|
|
|
10896
10924
|
e.has(s) || hn(s, o);
|
|
10897
10925
|
});
|
|
10898
10926
|
}
|
|
10899
|
-
|
|
10927
|
+
di.set(a, t);
|
|
10900
10928
|
}, [t]), a;
|
|
10901
10929
|
}
|
|
10902
10930
|
function Yx(t) {
|
|
@@ -11106,13 +11134,13 @@ var o_ = function() {
|
|
|
11106
11134
|
`).concat(Hx, ": ").concat(s, `px;
|
|
11107
11135
|
}
|
|
11108
11136
|
`);
|
|
11109
|
-
},
|
|
11137
|
+
}, mi = function() {
|
|
11110
11138
|
var t = parseInt(document.body.getAttribute(qe) || "0", 10);
|
|
11111
11139
|
return isFinite(t) ? t : 0;
|
|
11112
11140
|
}, f_ = function() {
|
|
11113
11141
|
f.useEffect(function() {
|
|
11114
|
-
return document.body.setAttribute(qe, (
|
|
11115
|
-
var t =
|
|
11142
|
+
return document.body.setAttribute(qe, (mi() + 1).toString()), function() {
|
|
11143
|
+
var t = mi() - 1;
|
|
11116
11144
|
t <= 0 ? document.body.removeAttribute(qe) : document.body.setAttribute(qe, t.toString());
|
|
11117
11145
|
};
|
|
11118
11146
|
}, []);
|
|
@@ -11150,7 +11178,7 @@ var We = An ? { passive: !1 } : !1, g_ = function(t) {
|
|
|
11150
11178
|
return ts(t, "overflowY");
|
|
11151
11179
|
}, h_ = function(t) {
|
|
11152
11180
|
return ts(t, "overflowX");
|
|
11153
|
-
},
|
|
11181
|
+
}, fi = function(t, n) {
|
|
11154
11182
|
var a = n.ownerDocument, i = n;
|
|
11155
11183
|
do {
|
|
11156
11184
|
typeof ShadowRoot < "u" && i instanceof ShadowRoot && (i = i.host);
|
|
@@ -11200,9 +11228,9 @@ var We = An ? { passive: !1 } : !1, g_ = function(t) {
|
|
|
11200
11228
|
return (d && Math.abs(m) < 1 || !d && Math.abs(v) < 1) && (l = !0), l;
|
|
11201
11229
|
}, Nt = function(t) {
|
|
11202
11230
|
return "changedTouches" in t ? [t.changedTouches[0].clientX, t.changedTouches[0].clientY] : [0, 0];
|
|
11203
|
-
}, fi = function(t) {
|
|
11204
|
-
return [t.deltaX, t.deltaY];
|
|
11205
11231
|
}, pi = function(t) {
|
|
11232
|
+
return [t.deltaX, t.deltaY];
|
|
11233
|
+
}, gi = function(t) {
|
|
11206
11234
|
return t && "current" in t ? t.current : t;
|
|
11207
11235
|
}, __ = function(t, n) {
|
|
11208
11236
|
return t[0] === n[0] && t[1] === n[1];
|
|
@@ -11219,7 +11247,7 @@ function I_(t) {
|
|
|
11219
11247
|
}, [t]), f.useEffect(function() {
|
|
11220
11248
|
if (t.inert) {
|
|
11221
11249
|
document.body.classList.add("block-interactivity-".concat(e));
|
|
11222
|
-
var g = Jx([t.lockRef.current], (t.shards || []).map(
|
|
11250
|
+
var g = Jx([t.lockRef.current], (t.shards || []).map(gi), !0).filter(Boolean);
|
|
11223
11251
|
return g.forEach(function(y) {
|
|
11224
11252
|
return y.classList.add("allow-interactivity-".concat(e));
|
|
11225
11253
|
}), function() {
|
|
@@ -11238,10 +11266,10 @@ function I_(t) {
|
|
|
11238
11266
|
var C = window.getSelection(), R = C && C.anchorNode, A = R ? R === N || R.contains(N) : !1;
|
|
11239
11267
|
if (A)
|
|
11240
11268
|
return !1;
|
|
11241
|
-
var Z =
|
|
11269
|
+
var Z = fi(w, N);
|
|
11242
11270
|
if (!Z)
|
|
11243
11271
|
return !0;
|
|
11244
|
-
if (Z ? I = w : (I = w === "v" ? "h" : "v", Z =
|
|
11272
|
+
if (Z ? I = w : (I = w === "v" ? "h" : "v", Z = fi(w, N)), !Z)
|
|
11245
11273
|
return !1;
|
|
11246
11274
|
if (!i.current && "changedTouches" in g && (S || b) && (i.current = I), !I)
|
|
11247
11275
|
return !0;
|
|
@@ -11250,7 +11278,7 @@ function I_(t) {
|
|
|
11250
11278
|
}, []), u = f.useCallback(function(g) {
|
|
11251
11279
|
var y = g;
|
|
11252
11280
|
if (!(!Be.length || Be[Be.length - 1] !== r)) {
|
|
11253
|
-
var $ = "deltaY" in y ?
|
|
11281
|
+
var $ = "deltaY" in y ? pi(y) : Nt(y), x = n.current.filter(function(I) {
|
|
11254
11282
|
return I.name === y.type && (I.target === y.target || y.target === I.shadowParent) && __(I.delta, $);
|
|
11255
11283
|
})[0];
|
|
11256
11284
|
if (x && x.should) {
|
|
@@ -11258,7 +11286,7 @@ function I_(t) {
|
|
|
11258
11286
|
return;
|
|
11259
11287
|
}
|
|
11260
11288
|
if (!x) {
|
|
11261
|
-
var S = (o.current.shards || []).map(
|
|
11289
|
+
var S = (o.current.shards || []).map(gi).filter(Boolean).filter(function(I) {
|
|
11262
11290
|
return I.contains(y.target);
|
|
11263
11291
|
}), b = S.length > 0 ? s(y, S[0]) : !o.current.noIsolation;
|
|
11264
11292
|
b && y.cancelable && y.preventDefault();
|
|
@@ -11274,7 +11302,7 @@ function I_(t) {
|
|
|
11274
11302
|
}, []), d = f.useCallback(function(g) {
|
|
11275
11303
|
a.current = Nt(g), i.current = void 0;
|
|
11276
11304
|
}, []), m = f.useCallback(function(g) {
|
|
11277
|
-
l(g.type,
|
|
11305
|
+
l(g.type, pi(g), g.target, s(g, t.lockRef.current));
|
|
11278
11306
|
}, []), v = f.useCallback(function(g) {
|
|
11279
11307
|
l(g.type, Nt(g), g.target, s(g, t.lockRef.current));
|
|
11280
11308
|
}, []);
|
|
@@ -11303,10 +11331,10 @@ function k_(t) {
|
|
|
11303
11331
|
return n;
|
|
11304
11332
|
}
|
|
11305
11333
|
const N_ = t_(Qo, I_);
|
|
11306
|
-
var
|
|
11334
|
+
var lr = f.forwardRef(function(t, n) {
|
|
11307
11335
|
return f.createElement(rn, pe({}, t, { ref: n, sideCar: N_ }));
|
|
11308
11336
|
});
|
|
11309
|
-
|
|
11337
|
+
lr.classNames = rn.classNames;
|
|
11310
11338
|
var E_ = function(t) {
|
|
11311
11339
|
if (typeof document > "u")
|
|
11312
11340
|
return null;
|
|
@@ -11397,7 +11425,7 @@ var ls = "DialogTrigger", cs = f.forwardRef(
|
|
|
11397
11425
|
"aria-haspopup": "dialog",
|
|
11398
11426
|
"aria-expanded": e.open,
|
|
11399
11427
|
"aria-controls": e.contentId,
|
|
11400
|
-
"data-state":
|
|
11428
|
+
"data-state": dr(e.open),
|
|
11401
11429
|
...i,
|
|
11402
11430
|
ref: r,
|
|
11403
11431
|
onClick: W(t.onClick, e.onOpenToggle)
|
|
@@ -11406,13 +11434,13 @@ var ls = "DialogTrigger", cs = f.forwardRef(
|
|
|
11406
11434
|
}
|
|
11407
11435
|
);
|
|
11408
11436
|
cs.displayName = ls;
|
|
11409
|
-
var
|
|
11437
|
+
var cr = "DialogPortal", [T_, us] = os(cr, {
|
|
11410
11438
|
forceMount: void 0
|
|
11411
11439
|
}), ds = (t) => {
|
|
11412
|
-
const { __scopeDialog: n, forceMount: a, children: i, container: e } = t, r = ue(
|
|
11440
|
+
const { __scopeDialog: n, forceMount: a, children: i, container: e } = t, r = ue(cr, n);
|
|
11413
11441
|
return /* @__PURE__ */ c(T_, { scope: n, forceMount: a, children: f.Children.map(i, (o) => /* @__PURE__ */ c(Ee, { present: a || r.open, children: /* @__PURE__ */ c(Yt, { asChild: !0, container: e, children: o }) })) });
|
|
11414
11442
|
};
|
|
11415
|
-
ds.displayName =
|
|
11443
|
+
ds.displayName = cr;
|
|
11416
11444
|
var Wt = "DialogOverlay", ms = f.forwardRef(
|
|
11417
11445
|
(t, n) => {
|
|
11418
11446
|
const a = us(Wt, t.__scopeDialog), { forceMount: i = a.forceMount, ...e } = t, r = ue(Wt, t.__scopeDialog);
|
|
@@ -11420,16 +11448,16 @@ var Wt = "DialogOverlay", ms = f.forwardRef(
|
|
|
11420
11448
|
}
|
|
11421
11449
|
);
|
|
11422
11450
|
ms.displayName = Wt;
|
|
11423
|
-
var D_ = /* @__PURE__ */
|
|
11451
|
+
var D_ = /* @__PURE__ */ Wn("DialogOverlay.RemoveScroll"), R_ = f.forwardRef(
|
|
11424
11452
|
(t, n) => {
|
|
11425
11453
|
const { __scopeDialog: a, ...i } = t, e = ue(Wt, a);
|
|
11426
11454
|
return (
|
|
11427
11455
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
11428
11456
|
// ie. when `Overlay` and `Content` are siblings
|
|
11429
|
-
/* @__PURE__ */ c(
|
|
11457
|
+
/* @__PURE__ */ c(lr, { as: D_, allowPinchZoom: !0, shards: [e.contentRef], children: /* @__PURE__ */ c(
|
|
11430
11458
|
G.div,
|
|
11431
11459
|
{
|
|
11432
|
-
"data-state":
|
|
11460
|
+
"data-state": dr(e.open),
|
|
11433
11461
|
...i,
|
|
11434
11462
|
ref: n,
|
|
11435
11463
|
style: { pointerEvents: "auto", ...i.style }
|
|
@@ -11497,7 +11525,7 @@ var A_ = f.forwardRef(
|
|
|
11497
11525
|
const { __scopeDialog: a, trapFocus: i, onOpenAutoFocus: e, onCloseAutoFocus: r, ...o } = t, s = ue(ze, a), u = f.useRef(null), l = Q(n, u);
|
|
11498
11526
|
return qo(), /* @__PURE__ */ O(At, { children: [
|
|
11499
11527
|
/* @__PURE__ */ c(
|
|
11500
|
-
|
|
11528
|
+
sr,
|
|
11501
11529
|
{
|
|
11502
11530
|
asChild: !0,
|
|
11503
11531
|
loop: !0,
|
|
@@ -11511,7 +11539,7 @@ var A_ = f.forwardRef(
|
|
|
11511
11539
|
id: s.contentId,
|
|
11512
11540
|
"aria-describedby": s.descriptionId,
|
|
11513
11541
|
"aria-labelledby": s.titleId,
|
|
11514
|
-
"data-state":
|
|
11542
|
+
"data-state": dr(s.open),
|
|
11515
11543
|
...o,
|
|
11516
11544
|
ref: l,
|
|
11517
11545
|
onDismiss: () => s.onOpenChange(!1)
|
|
@@ -11525,13 +11553,13 @@ var A_ = f.forwardRef(
|
|
|
11525
11553
|
] })
|
|
11526
11554
|
] });
|
|
11527
11555
|
}
|
|
11528
|
-
),
|
|
11556
|
+
), ur = "DialogTitle", gs = f.forwardRef(
|
|
11529
11557
|
(t, n) => {
|
|
11530
|
-
const { __scopeDialog: a, ...i } = t, e = ue(
|
|
11558
|
+
const { __scopeDialog: a, ...i } = t, e = ue(ur, a);
|
|
11531
11559
|
return /* @__PURE__ */ c(G.h2, { id: e.titleId, ...i, ref: n });
|
|
11532
11560
|
}
|
|
11533
11561
|
);
|
|
11534
|
-
gs.displayName =
|
|
11562
|
+
gs.displayName = ur;
|
|
11535
11563
|
var vs = "DialogDescription", U_ = f.forwardRef(
|
|
11536
11564
|
(t, n) => {
|
|
11537
11565
|
const { __scopeDialog: a, ...i } = t, e = ue(vs, a);
|
|
@@ -11554,12 +11582,12 @@ var hs = "DialogClose", bs = f.forwardRef(
|
|
|
11554
11582
|
}
|
|
11555
11583
|
);
|
|
11556
11584
|
bs.displayName = hs;
|
|
11557
|
-
function
|
|
11585
|
+
function dr(t) {
|
|
11558
11586
|
return t ? "open" : "closed";
|
|
11559
11587
|
}
|
|
11560
11588
|
var ys = "DialogTitleWarning", [vS, $s] = ey(ys, {
|
|
11561
11589
|
contentName: ze,
|
|
11562
|
-
titleName:
|
|
11590
|
+
titleName: ur,
|
|
11563
11591
|
docsSlug: "dialog"
|
|
11564
11592
|
}), z_ = ({ titleId: t }) => {
|
|
11565
11593
|
const n = $s(ys), a = `\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
|
|
@@ -11633,7 +11661,7 @@ function Y_({
|
|
|
11633
11661
|
"data-slot": "dialog-close",
|
|
11634
11662
|
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
11635
11663
|
children: [
|
|
11636
|
-
/* @__PURE__ */ c(
|
|
11664
|
+
/* @__PURE__ */ c(Fn, {}),
|
|
11637
11665
|
/* @__PURE__ */ c("span", { className: "sr-only", children: "Close" })
|
|
11638
11666
|
]
|
|
11639
11667
|
}
|
|
@@ -11724,7 +11752,7 @@ var nw = [
|
|
|
11724
11752
|
"span",
|
|
11725
11753
|
"svg",
|
|
11726
11754
|
"ul"
|
|
11727
|
-
],
|
|
11755
|
+
], mr = nw.reduce((t, n) => {
|
|
11728
11756
|
const a = /* @__PURE__ */ qa(`Primitive.${n}`), i = f.forwardRef((e, r) => {
|
|
11729
11757
|
const { asChild: o, ...s } = e, u = o ? a : n;
|
|
11730
11758
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c(u, { ...s, ref: r });
|
|
@@ -11742,7 +11770,7 @@ function iw() {
|
|
|
11742
11770
|
return () => {
|
|
11743
11771
|
};
|
|
11744
11772
|
}
|
|
11745
|
-
var
|
|
11773
|
+
var fr = "Avatar", [aw] = ew(fr), [ow, xs] = aw(fr), _s = f.forwardRef(
|
|
11746
11774
|
(t, n) => {
|
|
11747
11775
|
const { __scopeAvatar: a, ...i } = t, [e, r] = f.useState("idle");
|
|
11748
11776
|
return /* @__PURE__ */ c(
|
|
@@ -11751,12 +11779,12 @@ var mr = "Avatar", [aw] = ew(mr), [ow, xs] = aw(mr), _s = f.forwardRef(
|
|
|
11751
11779
|
scope: a,
|
|
11752
11780
|
imageLoadingStatus: e,
|
|
11753
11781
|
onImageLoadingStatusChange: r,
|
|
11754
|
-
children: /* @__PURE__ */ c(
|
|
11782
|
+
children: /* @__PURE__ */ c(mr.span, { ...i, ref: n })
|
|
11755
11783
|
}
|
|
11756
11784
|
);
|
|
11757
11785
|
}
|
|
11758
11786
|
);
|
|
11759
|
-
_s.displayName =
|
|
11787
|
+
_s.displayName = fr;
|
|
11760
11788
|
var ws = "AvatarImage", Ss = f.forwardRef(
|
|
11761
11789
|
(t, n) => {
|
|
11762
11790
|
const { __scopeAvatar: a, src: i, onLoadingStatusChange: e = () => {
|
|
@@ -11765,7 +11793,7 @@ var ws = "AvatarImage", Ss = f.forwardRef(
|
|
|
11765
11793
|
});
|
|
11766
11794
|
return ae(() => {
|
|
11767
11795
|
s !== "idle" && u(s);
|
|
11768
|
-
}, [s, u]), s === "loaded" ? /* @__PURE__ */ c(
|
|
11796
|
+
}, [s, u]), s === "loaded" ? /* @__PURE__ */ c(mr.img, { ...r, ref: n, src: i }) : null;
|
|
11769
11797
|
}
|
|
11770
11798
|
);
|
|
11771
11799
|
Ss.displayName = ws;
|
|
@@ -11777,19 +11805,19 @@ var Is = "AvatarFallback", ks = f.forwardRef(
|
|
|
11777
11805
|
const u = window.setTimeout(() => s(!0), i);
|
|
11778
11806
|
return () => window.clearTimeout(u);
|
|
11779
11807
|
}
|
|
11780
|
-
}, [i]), o && r.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ c(
|
|
11808
|
+
}, [i]), o && r.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ c(mr.span, { ...e, ref: n }) : null;
|
|
11781
11809
|
}
|
|
11782
11810
|
);
|
|
11783
11811
|
ks.displayName = Is;
|
|
11784
|
-
function
|
|
11812
|
+
function vi(t, n) {
|
|
11785
11813
|
return t ? n ? (t.src !== n && (t.src = n), t.complete && t.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
11786
11814
|
}
|
|
11787
11815
|
function sw(t, { referrerPolicy: n, crossOrigin: a }) {
|
|
11788
11816
|
const i = rw(), e = f.useRef(null), r = i ? (e.current || (e.current = new window.Image()), e.current) : null, [o, s] = f.useState(
|
|
11789
|
-
() =>
|
|
11817
|
+
() => vi(r, t)
|
|
11790
11818
|
);
|
|
11791
11819
|
return ae(() => {
|
|
11792
|
-
s(
|
|
11820
|
+
s(vi(r, t));
|
|
11793
11821
|
}, [r, t]), ae(() => {
|
|
11794
11822
|
const u = (m) => () => {
|
|
11795
11823
|
s(m);
|
|
@@ -11912,7 +11940,7 @@ const pw = (t) => {
|
|
|
11912
11940
|
/* @__PURE__ */ c(fw, { delayMs: t ? 200 : 0, children: /* @__PURE__ */ c(hb, { className: "aui-attachment-tile-fallback-icon text-muted-foreground size-8" }) })
|
|
11913
11941
|
] });
|
|
11914
11942
|
}, Es = () => {
|
|
11915
|
-
const n =
|
|
11943
|
+
const n = wa().attachment.source === "composer", a = se(
|
|
11916
11944
|
({ attachment: e }) => e.type === "image"
|
|
11917
11945
|
), i = se(({ attachment: e }) => {
|
|
11918
11946
|
const r = e.type;
|
|
@@ -11929,7 +11957,7 @@ const pw = (t) => {
|
|
|
11929
11957
|
}
|
|
11930
11958
|
}
|
|
11931
11959
|
});
|
|
11932
|
-
return /* @__PURE__ */ O(
|
|
11960
|
+
return /* @__PURE__ */ O(tr, { children: [
|
|
11933
11961
|
/* @__PURE__ */ O(
|
|
11934
11962
|
In.Root,
|
|
11935
11963
|
{
|
|
@@ -11938,7 +11966,7 @@ const pw = (t) => {
|
|
|
11938
11966
|
a && "aui-attachment-root-composer only:[&>#attachment-tile]:size-24"
|
|
11939
11967
|
),
|
|
11940
11968
|
children: [
|
|
11941
|
-
/* @__PURE__ */ c(vw, { children: /* @__PURE__ */ c(
|
|
11969
|
+
/* @__PURE__ */ c(vw, { children: /* @__PURE__ */ c(nr, { asChild: !0, children: /* @__PURE__ */ c(
|
|
11942
11970
|
"div",
|
|
11943
11971
|
{
|
|
11944
11972
|
className: k(
|
|
@@ -11955,7 +11983,7 @@ const pw = (t) => {
|
|
|
11955
11983
|
]
|
|
11956
11984
|
}
|
|
11957
11985
|
),
|
|
11958
|
-
/* @__PURE__ */ c(
|
|
11986
|
+
/* @__PURE__ */ c(rr, { side: "top", children: /* @__PURE__ */ c(In.Name, {}) })
|
|
11959
11987
|
] });
|
|
11960
11988
|
}, bw = () => /* @__PURE__ */ c(In.Remove, { asChild: !0, children: /* @__PURE__ */ c(
|
|
11961
11989
|
oe,
|
|
@@ -11963,7 +11991,7 @@ const pw = (t) => {
|
|
|
11963
11991
|
tooltip: "Remove file",
|
|
11964
11992
|
className: "aui-attachment-tile-remove text-muted-foreground hover:[&_svg]:text-destructive absolute top-1.5 right-1.5 size-3.5 rounded-full bg-white opacity-100 shadow-sm hover:!bg-white [&_svg]:text-black",
|
|
11965
11993
|
side: "top",
|
|
11966
|
-
children: /* @__PURE__ */ c(
|
|
11994
|
+
children: /* @__PURE__ */ c(Fn, { className: "aui-attachment-remove-icon size-3 dark:stroke-[2.5px]" })
|
|
11967
11995
|
}
|
|
11968
11996
|
) }), yw = () => /* @__PURE__ */ c("div", { className: "aui-user-message-attachments-end col-span-full col-start-1 row-start-1 flex w-full flex-row justify-end gap-2", children: /* @__PURE__ */ c(Te.Attachments, { components: { Attachment: Es } }) }), $w = () => /* @__PURE__ */ c("div", { className: "aui-composer-attachments mb-2 flex w-full flex-row items-center gap-2 overflow-x-auto px-1.5 pt-0.5 pb-1 empty:hidden", children: /* @__PURE__ */ c(
|
|
11969
11997
|
ge.Attachments,
|
|
@@ -11982,7 +12010,7 @@ const pw = (t) => {
|
|
|
11982
12010
|
"aria-label": "Add Attachment",
|
|
11983
12011
|
children: /* @__PURE__ */ c(Tb, { className: "aui-attachment-add-icon size-5 stroke-[1.5px]" })
|
|
11984
12012
|
}
|
|
11985
|
-
) }),
|
|
12013
|
+
) }), pr = () => {
|
|
11986
12014
|
const { config: t } = Y(), n = t.theme ?? {};
|
|
11987
12015
|
return Ie(() => {
|
|
11988
12016
|
const { colorScheme: a = "light" } = n;
|
|
@@ -12028,7 +12056,7 @@ Cs.displayName = on;
|
|
|
12028
12056
|
var Ps = "PopoverAnchor", ww = f.forwardRef(
|
|
12029
12057
|
(t, n) => {
|
|
12030
12058
|
const { __scopePopover: a, ...i } = t, e = Ae(Ps, a), r = xt(a), { onCustomAnchorAdd: o, onCustomAnchorRemove: s } = e;
|
|
12031
|
-
return f.useEffect(() => (o(), () => s()), [o, s]), /* @__PURE__ */ c(
|
|
12059
|
+
return f.useEffect(() => (o(), () => s()), [o, s]), /* @__PURE__ */ c(Yn, { ...r, ...i, ref: n });
|
|
12032
12060
|
}
|
|
12033
12061
|
);
|
|
12034
12062
|
ww.displayName = Ps;
|
|
@@ -12047,17 +12075,17 @@ var Ts = "PopoverTrigger", Ds = f.forwardRef(
|
|
|
12047
12075
|
onClick: W(t.onClick, e.onOpenToggle)
|
|
12048
12076
|
}
|
|
12049
12077
|
);
|
|
12050
|
-
return e.hasCustomAnchor ? s : /* @__PURE__ */ c(
|
|
12078
|
+
return e.hasCustomAnchor ? s : /* @__PURE__ */ c(Yn, { asChild: !0, ...r, children: s });
|
|
12051
12079
|
}
|
|
12052
12080
|
);
|
|
12053
12081
|
Ds.displayName = Ts;
|
|
12054
|
-
var
|
|
12082
|
+
var gr = "PopoverPortal", [Sw, Iw] = Os(gr, {
|
|
12055
12083
|
forceMount: void 0
|
|
12056
12084
|
}), Rs = (t) => {
|
|
12057
|
-
const { __scopePopover: n, forceMount: a, children: i, container: e } = t, r = Ae(
|
|
12085
|
+
const { __scopePopover: n, forceMount: a, children: i, container: e } = t, r = Ae(gr, n);
|
|
12058
12086
|
return /* @__PURE__ */ c(Sw, { scope: n, forceMount: a, children: /* @__PURE__ */ c(Ee, { present: a || r.open, children: /* @__PURE__ */ c(Yt, { asChild: !0, container: e, children: i }) }) });
|
|
12059
12087
|
};
|
|
12060
|
-
Rs.displayName =
|
|
12088
|
+
Rs.displayName = gr;
|
|
12061
12089
|
var Qe = "PopoverContent", As = f.forwardRef(
|
|
12062
12090
|
(t, n) => {
|
|
12063
12091
|
const a = Iw(Qe, t.__scopePopover), { forceMount: i = a.forceMount, ...e } = t, r = Ae(Qe, t.__scopePopover);
|
|
@@ -12065,13 +12093,13 @@ var Qe = "PopoverContent", As = f.forwardRef(
|
|
|
12065
12093
|
}
|
|
12066
12094
|
);
|
|
12067
12095
|
As.displayName = Qe;
|
|
12068
|
-
var kw = /* @__PURE__ */
|
|
12096
|
+
var kw = /* @__PURE__ */ Wn("PopoverContent.RemoveScroll"), Nw = f.forwardRef(
|
|
12069
12097
|
(t, n) => {
|
|
12070
12098
|
const a = Ae(Qe, t.__scopePopover), i = f.useRef(null), e = Q(n, i), r = f.useRef(!1);
|
|
12071
12099
|
return f.useEffect(() => {
|
|
12072
12100
|
const o = i.current;
|
|
12073
12101
|
if (o) return as(o);
|
|
12074
|
-
}, []), /* @__PURE__ */ c(
|
|
12102
|
+
}, []), /* @__PURE__ */ c(lr, { as: kw, allowPinchZoom: !0, children: /* @__PURE__ */ c(
|
|
12075
12103
|
js,
|
|
12076
12104
|
{
|
|
12077
12105
|
...t,
|
|
@@ -12133,7 +12161,7 @@ var kw = /* @__PURE__ */ Zn("PopoverContent.RemoveScroll"), Nw = f.forwardRef(
|
|
|
12133
12161
|
...m
|
|
12134
12162
|
} = t, v = Ae(Qe, a), p = xt(a);
|
|
12135
12163
|
return qo(), /* @__PURE__ */ c(
|
|
12136
|
-
|
|
12164
|
+
sr,
|
|
12137
12165
|
{
|
|
12138
12166
|
asChild: !0,
|
|
12139
12167
|
loop: !0,
|
|
@@ -12233,13 +12261,13 @@ function zw({
|
|
|
12233
12261
|
const Se = [0.23, 1, 0.32, 1], Mw = ({ children: t }) => {
|
|
12234
12262
|
const n = et(), a = se(({ message: m }) => m).parts, i = a.filter((m) => m.type === "tool-call"), e = i.some(
|
|
12235
12263
|
(m) => m.status?.type === "running"
|
|
12236
|
-
), r = Ie(() => e ? /* @__PURE__ */ c(
|
|
12264
|
+
), r = Ie(() => e ? /* @__PURE__ */ c(Ln, { className: "text-muted-foreground size-4 animate-spin" }) : /* @__PURE__ */ c(ht, { className: "size-4 text-green-500" }), [e]), { config: o } = Y(), [s, u] = K(
|
|
12237
12265
|
o.tools?.expandToolGroupsByDefault ?? !1
|
|
12238
12266
|
), l = Le(), d = Ie(() => {
|
|
12239
12267
|
const m = a.filter((v) => v.type === "tool-call");
|
|
12240
12268
|
return m.length === 0 ? "No tools called" : m.length === 1 ? `Calling ${zo(m[0].toolName)}...` : e ? `Calling ${m.length} tools...` : `Executed ${m.length} tools`;
|
|
12241
12269
|
}, [a, e]);
|
|
12242
|
-
return /* @__PURE__ */ c(Vt, { features:
|
|
12270
|
+
return /* @__PURE__ */ c(Vt, { features: Na, children: i.length > 1 ? /* @__PURE__ */ O(
|
|
12243
12271
|
"button",
|
|
12244
12272
|
{
|
|
12245
12273
|
className: k(
|
|
@@ -12278,13 +12306,13 @@ const Se = [0.23, 1, 0.32, 1], Mw = ({ children: t }) => {
|
|
|
12278
12306
|
size: "icon",
|
|
12279
12307
|
className: "cursor-pointer hover:bg-transparent",
|
|
12280
12308
|
onClick: () => u(!s),
|
|
12281
|
-
children: s ? /* @__PURE__ */ c(
|
|
12309
|
+
children: s ? /* @__PURE__ */ c(Ga, { className: "size-4" }) : /* @__PURE__ */ c(Mn, { className: "size-4" })
|
|
12282
12310
|
}
|
|
12283
12311
|
) })
|
|
12284
12312
|
]
|
|
12285
12313
|
}
|
|
12286
12314
|
),
|
|
12287
|
-
/* @__PURE__ */ c(
|
|
12315
|
+
/* @__PURE__ */ c(Ea, { children: s && /* @__PURE__ */ c(
|
|
12288
12316
|
fe.div,
|
|
12289
12317
|
{
|
|
12290
12318
|
initial: { height: 0, opacity: 0, y: -10 },
|
|
@@ -12306,9 +12334,9 @@ const Se = [0.23, 1, 0.32, 1], Mw = ({ children: t }) => {
|
|
|
12306
12334
|
children: t
|
|
12307
12335
|
}
|
|
12308
12336
|
) });
|
|
12309
|
-
},
|
|
12310
|
-
const t =
|
|
12311
|
-
return /* @__PURE__ */ c(Vt, { features:
|
|
12337
|
+
}, vr = () => {
|
|
12338
|
+
const t = pr(), n = Le(), { config: a } = Y(), i = a.components ?? {};
|
|
12339
|
+
return /* @__PURE__ */ c(Vt, { features: Na, children: /* @__PURE__ */ c(Oa, { reducedMotion: "user", children: /* @__PURE__ */ c(
|
|
12312
12340
|
_e.Root,
|
|
12313
12341
|
{
|
|
12314
12342
|
className: k(
|
|
@@ -12422,7 +12450,7 @@ const Se = [0.23, 1, 0.32, 1], Mw = ({ children: t }) => {
|
|
|
12422
12450
|
"aui-thread-welcome-suggestions w-full",
|
|
12423
12451
|
a("gap-md"),
|
|
12424
12452
|
a("py-lg"),
|
|
12425
|
-
e ? "flex flex-wrap items-center justify-center" : "grid @md:grid-cols-2"
|
|
12453
|
+
e ? "flex flex-wrap items-center justify-center" : i.length === 1 ? "flex" : "grid @md:grid-cols-2"
|
|
12426
12454
|
),
|
|
12427
12455
|
children: i.map((r, o) => /* @__PURE__ */ c(
|
|
12428
12456
|
fe.div,
|
|
@@ -12444,14 +12472,14 @@ const Se = [0.23, 1, 0.32, 1], Mw = ({ children: t }) => {
|
|
|
12444
12472
|
{
|
|
12445
12473
|
variant: "ghost",
|
|
12446
12474
|
className: k(
|
|
12447
|
-
"aui-thread-welcome-suggestion dark:hover:bg-accent/60 h-auto border text-left whitespace-break-spaces",
|
|
12475
|
+
"aui-thread-welcome-suggestion dark:hover:bg-accent/60 h-auto w-full border text-left whitespace-break-spaces",
|
|
12448
12476
|
a("text-base"),
|
|
12449
|
-
e ? `flex-row items-center ${a("gap-sm")} ${a("px-md")} ${a("py-sm")} ${n("full")}` : `w-full
|
|
12477
|
+
e ? `flex-row items-center ${a("gap-sm")} ${a("px-md")} ${a("py-sm")} ${n("full")}` : `w-full flex-1 flex-col flex-wrap items-start justify-start ${a("gap-sm")} ${a("px-lg")} ${a("py-md")} ${n("xl")}`
|
|
12450
12478
|
),
|
|
12451
12479
|
"aria-label": r.action,
|
|
12452
12480
|
children: [
|
|
12453
12481
|
/* @__PURE__ */ c("span", { className: "aui-thread-welcome-suggestion-text-1 text-sm font-medium", children: r.title }),
|
|
12454
|
-
/* @__PURE__ */ c("span", { className: "aui-thread-welcome-suggestion-text-2 text-muted-foreground text-
|
|
12482
|
+
/* @__PURE__ */ c("span", { className: "aui-thread-welcome-suggestion-text-2 text-muted-foreground text-sm", children: r.label })
|
|
12455
12483
|
]
|
|
12456
12484
|
}
|
|
12457
12485
|
) })
|
|
@@ -12513,9 +12541,9 @@ const Se = [0.23, 1, 0.32, 1], Mw = ({ children: t }) => {
|
|
|
12513
12541
|
const d = o.current;
|
|
12514
12542
|
d && d.scrollHeight > 0 && (d.scrollTop = s.current);
|
|
12515
12543
|
}), u.current = a;
|
|
12516
|
-
}, [a]), /* @__PURE__ */ c(jo, { children: /* @__PURE__ */ O(
|
|
12544
|
+
}, [a]), /* @__PURE__ */ c(jo, { children: /* @__PURE__ */ O(tr, { open: e, onOpenChange: r, children: [
|
|
12517
12545
|
/* @__PURE__ */ O(jw, { open: a, onOpenChange: i, children: [
|
|
12518
|
-
/* @__PURE__ */ c(
|
|
12546
|
+
/* @__PURE__ */ c(nr, { asChild: !0, children: /* @__PURE__ */ c(Uw, { asChild: !0, children: /* @__PURE__ */ c(
|
|
12519
12547
|
be,
|
|
12520
12548
|
{
|
|
12521
12549
|
variant: "ghost",
|
|
@@ -12541,7 +12569,7 @@ const Se = [0.23, 1, 0.32, 1], Mw = ({ children: t }) => {
|
|
|
12541
12569
|
onScroll: (d) => {
|
|
12542
12570
|
s.current = d.currentTarget.scrollTop;
|
|
12543
12571
|
},
|
|
12544
|
-
children:
|
|
12572
|
+
children: _a.map((d) => /* @__PURE__ */ O(
|
|
12545
12573
|
be,
|
|
12546
12574
|
{
|
|
12547
12575
|
onClick: () => {
|
|
@@ -12561,7 +12589,7 @@ const Se = [0.23, 1, 0.32, 1], Mw = ({ children: t }) => {
|
|
|
12561
12589
|
}
|
|
12562
12590
|
)
|
|
12563
12591
|
] }),
|
|
12564
|
-
/* @__PURE__ */ c(
|
|
12592
|
+
/* @__PURE__ */ c(rr, { side: "bottom", align: "start", children: "Model Settings" })
|
|
12565
12593
|
] }) });
|
|
12566
12594
|
}, Vw = () => {
|
|
12567
12595
|
const { config: t } = Y(), n = et(), a = t.composer ?? { attachments: !0 };
|
|
@@ -12598,7 +12626,7 @@ const Se = [0.23, 1, 0.32, 1], Mw = ({ children: t }) => {
|
|
|
12598
12626
|
}
|
|
12599
12627
|
) }) })
|
|
12600
12628
|
] });
|
|
12601
|
-
}, Jw = () => /* @__PURE__ */ c(Te.Error, { children: /* @__PURE__ */ c(
|
|
12629
|
+
}, Jw = () => /* @__PURE__ */ c(Te.Error, { children: /* @__PURE__ */ c(Sr.Root, { className: "aui-message-error-root border-destructive bg-destructive/10 text-destructive dark:bg-destructive/5 mt-2 rounded-md border p-3 text-sm dark:text-red-200", children: /* @__PURE__ */ c(Sr.Message, { className: "aui-message-error-message line-clamp-2" }) }) }), Gw = () => {
|
|
12602
12630
|
const { config: t } = Y(), n = t.tools ?? {}, a = t.components ?? {};
|
|
12603
12631
|
return /* @__PURE__ */ c(Te.Root, { asChild: !0, children: /* @__PURE__ */ O(
|
|
12604
12632
|
"div",
|
|
@@ -12642,7 +12670,7 @@ const Se = [0.23, 1, 0.32, 1], Mw = ({ children: t }) => {
|
|
|
12642
12670
|
children: [
|
|
12643
12671
|
/* @__PURE__ */ c(ut.Copy, { asChild: !0, children: /* @__PURE__ */ O(oe, { tooltip: "Copy", children: [
|
|
12644
12672
|
/* @__PURE__ */ c(Te.If, { copied: !0, children: /* @__PURE__ */ c(ht, {}) }),
|
|
12645
|
-
/* @__PURE__ */ c(Te.If, { copied: !1, children: /* @__PURE__ */ c(
|
|
12673
|
+
/* @__PURE__ */ c(Te.If, { copied: !1, children: /* @__PURE__ */ c(Ha, {}) })
|
|
12646
12674
|
] }) }),
|
|
12647
12675
|
/* @__PURE__ */ c(ut.Reload, { asChild: !0, children: /* @__PURE__ */ c(oe, { tooltip: "Refresh", children: /* @__PURE__ */ c(Rb, {}) }) })
|
|
12648
12676
|
]
|
|
@@ -12729,7 +12757,7 @@ const Se = [0.23, 1, 0.32, 1], Mw = ({ children: t }) => {
|
|
|
12729
12757
|
ease: Se
|
|
12730
12758
|
}
|
|
12731
12759
|
}, eS = () => {
|
|
12732
|
-
const { config: t } = Y(), n =
|
|
12760
|
+
const { config: t } = Y(), n = pr(), a = et(), i = Le(), [e, r] = K(t.modal?.defaultOpen ?? !1), { expandable: o, isExpanded: s, setIsExpanded: u } = Ls(), l = t.modal?.title, d = t.modal?.icon, m = t.modal?.position ?? "bottom-right", v = tS(m), p = Ie(
|
|
12733
12761
|
() => t.modal?.dimensions?.default ?? {
|
|
12734
12762
|
width: "500px",
|
|
12735
12763
|
height: "600px",
|
|
@@ -12745,15 +12773,17 @@ const Se = [0.23, 1, 0.32, 1], Mw = ({ children: t }) => {
|
|
|
12745
12773
|
), y = se(({ thread: b }) => b).messages.some(
|
|
12746
12774
|
(b) => b.status?.type === "running"
|
|
12747
12775
|
), $ = s ? h.width : p.width, x = s ? h.height : p.height, S = p.maxHeight;
|
|
12748
|
-
return /* @__PURE__ */ c(Vt, { features:
|
|
12776
|
+
return /* @__PURE__ */ c(Vt, { features: Ca, children: /* @__PURE__ */ c(Oa, { reducedMotion: "user", transition: Qw, children: /* @__PURE__ */ c(
|
|
12749
12777
|
"div",
|
|
12750
12778
|
{
|
|
12751
12779
|
className: k(
|
|
12752
|
-
"aui-root aui-modal-anchor fixed z-
|
|
12780
|
+
"aui-root aui-modal-anchor fixed z-[9999]",
|
|
12753
12781
|
v,
|
|
12754
|
-
n.className
|
|
12782
|
+
n.className,
|
|
12783
|
+
a("lg"),
|
|
12784
|
+
e && "shadow-xl"
|
|
12755
12785
|
),
|
|
12756
|
-
children: /* @__PURE__ */ c(
|
|
12786
|
+
children: /* @__PURE__ */ c(Ea, { mode: "wait", children: e ? /* @__PURE__ */ O(
|
|
12757
12787
|
fe.div,
|
|
12758
12788
|
{
|
|
12759
12789
|
layout: !0,
|
|
@@ -12787,14 +12817,23 @@ const Se = [0.23, 1, 0.32, 1], Mw = ({ children: t }) => {
|
|
|
12787
12817
|
ease: Se
|
|
12788
12818
|
},
|
|
12789
12819
|
children: [
|
|
12790
|
-
/* @__PURE__ */ c("div", { className: k("flex min-w-0 items-center"), children: /* @__PURE__ */
|
|
12820
|
+
/* @__PURE__ */ c("div", { className: k("flex min-w-0 items-center"), children: /* @__PURE__ */ O(
|
|
12791
12821
|
"span",
|
|
12792
12822
|
{
|
|
12793
12823
|
className: k(
|
|
12794
|
-
"text-md flex items-center truncate font-medium",
|
|
12824
|
+
"text-md flex items-center gap-2 truncate font-medium",
|
|
12795
12825
|
y && "shimmer"
|
|
12796
12826
|
),
|
|
12797
|
-
children:
|
|
12827
|
+
children: [
|
|
12828
|
+
/* @__PURE__ */ c("span", { className: "truncate", children: l }),
|
|
12829
|
+
y && /* @__PURE__ */ c(
|
|
12830
|
+
Ln,
|
|
12831
|
+
{
|
|
12832
|
+
className: "text-muted-foreground size-4.5 animate-spin",
|
|
12833
|
+
strokeWidth: 1.25
|
|
12834
|
+
}
|
|
12835
|
+
)
|
|
12836
|
+
]
|
|
12798
12837
|
}
|
|
12799
12838
|
) }),
|
|
12800
12839
|
/* @__PURE__ */ O("div", { className: "flex flex-row items-center justify-end gap-1", children: [
|
|
@@ -12808,7 +12847,19 @@ const Se = [0.23, 1, 0.32, 1], Mw = ({ children: t }) => {
|
|
|
12808
12847
|
),
|
|
12809
12848
|
"aria-pressed": s,
|
|
12810
12849
|
"aria-label": s ? "Collapse assistant" : "Expand assistant",
|
|
12811
|
-
children: s ? /* @__PURE__ */ c(
|
|
12850
|
+
children: s ? /* @__PURE__ */ c(
|
|
12851
|
+
Sb,
|
|
12852
|
+
{
|
|
12853
|
+
strokeWidth: 2,
|
|
12854
|
+
className: "size-3.5 rotate-90"
|
|
12855
|
+
}
|
|
12856
|
+
) : /* @__PURE__ */ c(
|
|
12857
|
+
$b,
|
|
12858
|
+
{
|
|
12859
|
+
strokeWidth: 2,
|
|
12860
|
+
className: "size-3.5 rotate-90"
|
|
12861
|
+
}
|
|
12862
|
+
)
|
|
12812
12863
|
}
|
|
12813
12864
|
) : null,
|
|
12814
12865
|
/* @__PURE__ */ c(
|
|
@@ -12819,7 +12870,7 @@ const Se = [0.23, 1, 0.32, 1], Mw = ({ children: t }) => {
|
|
|
12819
12870
|
},
|
|
12820
12871
|
className: "text-muted-foreground hover:text-foreground hover:bg-accent -mr-1 flex size-8 cursor-pointer items-center justify-center rounded-md transition-colors",
|
|
12821
12872
|
"aria-label": `Close ${l}`,
|
|
12822
|
-
children: /* @__PURE__ */ c(
|
|
12873
|
+
children: /* @__PURE__ */ c(Fn, { className: "size-4.5" })
|
|
12823
12874
|
}
|
|
12824
12875
|
)
|
|
12825
12876
|
] })
|
|
@@ -12837,7 +12888,7 @@ const Se = [0.23, 1, 0.32, 1], Mw = ({ children: t }) => {
|
|
|
12837
12888
|
delay: 0.05,
|
|
12838
12889
|
ease: Se
|
|
12839
12890
|
},
|
|
12840
|
-
children: /* @__PURE__ */ c(
|
|
12891
|
+
children: /* @__PURE__ */ c(vr, {})
|
|
12841
12892
|
}
|
|
12842
12893
|
)
|
|
12843
12894
|
]
|
|
@@ -12883,14 +12934,14 @@ function tS(t) {
|
|
|
12883
12934
|
case "bottom-right":
|
|
12884
12935
|
return "right-4 bottom-4";
|
|
12885
12936
|
default:
|
|
12886
|
-
|
|
12937
|
+
ka(t);
|
|
12887
12938
|
}
|
|
12888
12939
|
}
|
|
12889
12940
|
const nS = () => {
|
|
12890
|
-
const { config: t } = Y(), n =
|
|
12941
|
+
const { config: t } = Y(), n = pr(), a = t.sidecar ?? {}, { title: i, dimensions: e } = a, { isExpanded: r, setIsExpanded: o } = Ls(), u = se(({ thread: l }) => l).messages.some(
|
|
12891
12942
|
(l) => l.status?.type === "running"
|
|
12892
12943
|
);
|
|
12893
|
-
return /* @__PURE__ */ c(Vt, { features:
|
|
12944
|
+
return /* @__PURE__ */ c(Vt, { features: Ca, children: /* @__PURE__ */ O(
|
|
12894
12945
|
fe.div,
|
|
12895
12946
|
{
|
|
12896
12947
|
initial: {
|
|
@@ -12929,7 +12980,7 @@ const nS = () => {
|
|
|
12929
12980
|
}
|
|
12930
12981
|
) })
|
|
12931
12982
|
] }),
|
|
12932
|
-
/* @__PURE__ */ c("div", { className: "aui-sidecar-content h-[calc(100%-3.5rem)] overflow-hidden", children: /* @__PURE__ */ c(
|
|
12983
|
+
/* @__PURE__ */ c("div", { className: "aui-sidecar-content h-[calc(100%-3.5rem)] overflow-hidden", children: /* @__PURE__ */ c(vr, {}) })
|
|
12933
12984
|
]
|
|
12934
12985
|
}
|
|
12935
12986
|
) });
|
|
@@ -12937,13 +12988,13 @@ const nS = () => {
|
|
|
12937
12988
|
const { config: t } = Y();
|
|
12938
12989
|
switch (t.variant) {
|
|
12939
12990
|
case "standalone":
|
|
12940
|
-
return /* @__PURE__ */ c(
|
|
12991
|
+
return /* @__PURE__ */ c(vr, {});
|
|
12941
12992
|
case "sidecar":
|
|
12942
12993
|
return /* @__PURE__ */ c(nS, {});
|
|
12943
12994
|
case "widget":
|
|
12944
12995
|
return /* @__PURE__ */ c(eS, {});
|
|
12945
12996
|
default:
|
|
12946
|
-
|
|
12997
|
+
ka(t.variant);
|
|
12947
12998
|
}
|
|
12948
12999
|
};
|
|
12949
13000
|
export {
|