teodor-new-chat-ui 3.0.83 → 3.0.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +397 -393
- package/dist/index.umd.js +16 -16
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as f from "react";
|
|
2
|
-
import K, { useState as de, useRef as ze, useCallback as We, useEffect as Ue, useReducer as Dp, useMemo as sn, createContext as xc, useContext as vc, createElement as
|
|
2
|
+
import K, { useState as de, useRef as ze, useCallback as We, useEffect as Ue, useReducer as Dp, useMemo as sn, createContext as xc, useContext as vc, createElement as to, useLayoutEffect as Lp } from "react";
|
|
3
3
|
import { Square as Fp, Send as Bp, X as Un, ExternalLink as $p, Download as Hp, Image as bc, FileText as za, Loader as zp, ChevronUp as fr, ChevronDown as zn, Copy as Ua, Edit as Wa, RotateCcw as Zs, Bot as Va, Wrench as Up, User as Wp, ChevronRight as Vp, Check as Oi, Circle as Gp, Edit3 as wc, Paperclip as Ga, Loader2 as Kp, Plus as Yp, FileSpreadsheet as qp, MessageSquarePlus as Xp, MessageSquare as Jp, Calendar as Zp, Trash2 as Qp, PanelLeft as em, Settings as tm, Server as nm, EyeOff as rm, Eye as om, Layout as sm, MessageCircle as im, Save as am } from "lucide-react";
|
|
4
4
|
import { Slot as Qn, createSlot as Yn, createSlottable as lm } from "@radix-ui/react-slot";
|
|
5
5
|
import { cva as Pr } from "class-variance-authority";
|
|
6
6
|
import { clsx as cm } from "clsx";
|
|
7
7
|
import { twMerge as um } from "tailwind-merge";
|
|
8
|
-
import * as
|
|
8
|
+
import * as Bo from "react-dom";
|
|
9
9
|
import yc from "react-dom";
|
|
10
10
|
var Qs = { exports: {} }, lr = {};
|
|
11
11
|
/**
|
|
@@ -474,9 +474,9 @@ function fm() {
|
|
|
474
474
|
} else
|
|
475
475
|
Dn.setExtraStackFrame(null);
|
|
476
476
|
}
|
|
477
|
-
var
|
|
478
|
-
|
|
479
|
-
function
|
|
477
|
+
var Ts;
|
|
478
|
+
Ts = !1;
|
|
479
|
+
function Rs(R) {
|
|
480
480
|
return typeof R == "object" && R !== null && R.$$typeof === t;
|
|
481
481
|
}
|
|
482
482
|
function Da() {
|
|
@@ -527,15 +527,15 @@ Check the top-level render call using <` + te + ">.");
|
|
|
527
527
|
if (tt(R))
|
|
528
528
|
for (var te = 0; te < R.length; te++) {
|
|
529
529
|
var ge = R[te];
|
|
530
|
-
|
|
530
|
+
Rs(ge) && Fa(ge, U);
|
|
531
531
|
}
|
|
532
|
-
else if (
|
|
532
|
+
else if (Rs(R))
|
|
533
533
|
R._store && (R._store.validated = !0);
|
|
534
534
|
else if (R) {
|
|
535
535
|
var Ae = p(R);
|
|
536
536
|
if (typeof Ae == "function" && Ae !== R.entries)
|
|
537
537
|
for (var Me = Ae.call(R), Ee; !(Ee = Me.next()).done; )
|
|
538
|
-
|
|
538
|
+
Rs(Ee.value) && Fa(Ee.value, U);
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
}
|
|
@@ -556,8 +556,8 @@ Check the top-level render call using <` + te + ">.");
|
|
|
556
556
|
if (te) {
|
|
557
557
|
var ge = G(U);
|
|
558
558
|
ie(te, R.props, "prop", ge, R);
|
|
559
|
-
} else if (U.PropTypes !== void 0 && !
|
|
560
|
-
|
|
559
|
+
} else if (U.PropTypes !== void 0 && !Ts) {
|
|
560
|
+
Ts = !0;
|
|
561
561
|
var Ae = G(U);
|
|
562
562
|
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Ae || "Unknown");
|
|
563
563
|
}
|
|
@@ -623,10 +623,10 @@ function Sc(e, t) {
|
|
|
623
623
|
return e.apply(t, arguments);
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
|
-
const { toString: hm } = Object.prototype, { getPrototypeOf: Mi } = Object, { iterator:
|
|
626
|
+
const { toString: hm } = Object.prototype, { getPrototypeOf: Mi } = Object, { iterator: $o, toStringTag: Cc } = Symbol, Ho = /* @__PURE__ */ ((e) => (t) => {
|
|
627
627
|
const n = hm.call(t);
|
|
628
628
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
629
|
-
})(/* @__PURE__ */ Object.create(null)), $t = (e) => (e = e.toLowerCase(), (t) =>
|
|
629
|
+
})(/* @__PURE__ */ Object.create(null)), $t = (e) => (e = e.toLowerCase(), (t) => Ho(t) === e), zo = (e) => (t) => typeof t === e, { isArray: er } = Array, qn = zo("undefined");
|
|
630
630
|
function _r(e) {
|
|
631
631
|
return e !== null && !qn(e) && e.constructor !== null && !qn(e.constructor) && pt(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
632
632
|
}
|
|
@@ -635,11 +635,11 @@ function pm(e) {
|
|
|
635
635
|
let t;
|
|
636
636
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Tc(e.buffer), t;
|
|
637
637
|
}
|
|
638
|
-
const mm =
|
|
639
|
-
if (
|
|
638
|
+
const mm = zo("string"), pt = zo("function"), Rc = zo("number"), Or = (e) => e !== null && typeof e == "object", gm = (e) => e === !0 || e === !1, no = (e) => {
|
|
639
|
+
if (Ho(e) !== "object")
|
|
640
640
|
return !1;
|
|
641
641
|
const t = Mi(e);
|
|
642
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Cc in e) && !(
|
|
642
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Cc in e) && !($o in e);
|
|
643
643
|
}, xm = (e) => {
|
|
644
644
|
if (!Or(e) || _r(e))
|
|
645
645
|
return !1;
|
|
@@ -650,7 +650,7 @@ const mm = Uo("string"), pt = Uo("function"), Rc = Uo("number"), Or = (e) => e !
|
|
|
650
650
|
}
|
|
651
651
|
}, vm = $t("Date"), bm = $t("File"), wm = $t("Blob"), ym = $t("FileList"), Sm = (e) => Or(e) && pt(e.pipe), Cm = (e) => {
|
|
652
652
|
let t;
|
|
653
|
-
return e && (typeof FormData == "function" && e instanceof FormData || pt(e.append) && ((t =
|
|
653
|
+
return e && (typeof FormData == "function" && e instanceof FormData || pt(e.append) && ((t = Ho(e)) === "formdata" || // detect form-data instance
|
|
654
654
|
t === "object" && pt(e.toString) && e.toString() === "[object FormData]"));
|
|
655
655
|
}, Tm = $t("URLSearchParams"), [Rm, Em, Im, Nm] = ["ReadableStream", "Request", "Response", "Headers"].map($t), jm = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
656
656
|
function Mr(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
@@ -684,7 +684,7 @@ const bn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
|
|
|
684
684
|
function ei() {
|
|
685
685
|
const { caseless: e, skipUndefined: t } = Ic(this) && this || {}, n = {}, r = (o, s) => {
|
|
686
686
|
const i = e && Ec(n, s) || s;
|
|
687
|
-
|
|
687
|
+
no(n[i]) && no(o) ? n[i] = ei(n[i], o) : no(o) ? n[i] = ei({}, o) : er(o) ? n[i] = o.slice() : (!t || !qn(o)) && (n[i] = o);
|
|
688
688
|
};
|
|
689
689
|
for (let o = 0, s = arguments.length; o < s; o++)
|
|
690
690
|
arguments[o] && Mr(arguments[o], r);
|
|
@@ -720,7 +720,7 @@ const Am = (e, t, n, { allOwnKeys: r } = {}) => (Mr(t, (o, s) => {
|
|
|
720
720
|
n[t] = e[t];
|
|
721
721
|
return n;
|
|
722
722
|
}, Dm = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Mi(Uint8Array)), Lm = (e, t) => {
|
|
723
|
-
const r = (e && e[
|
|
723
|
+
const r = (e && e[$o]).call(e);
|
|
724
724
|
let o;
|
|
725
725
|
for (; (o = r.next()) && !o.done; ) {
|
|
726
726
|
const s = o.value;
|
|
@@ -768,7 +768,7 @@ const Am = (e, t, n, { allOwnKeys: r } = {}) => (Mr(t, (o, s) => {
|
|
|
768
768
|
}, Wm = () => {
|
|
769
769
|
}, Vm = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
770
770
|
function Gm(e) {
|
|
771
|
-
return !!(e && pt(e.append) && e[Cc] === "FormData" && e[
|
|
771
|
+
return !!(e && pt(e.append) && e[Cc] === "FormData" && e[$o]);
|
|
772
772
|
}
|
|
773
773
|
const Km = (e) => {
|
|
774
774
|
const t = new Array(10), n = (r, o) => {
|
|
@@ -796,7 +796,7 @@ const Km = (e) => {
|
|
|
796
796
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
797
797
|
typeof setImmediate == "function",
|
|
798
798
|
pt(bn.postMessage)
|
|
799
|
-
), Xm = typeof queueMicrotask < "u" ? queueMicrotask.bind(bn) : typeof process < "u" && process.nextTick || jc, Jm = (e) => e != null && pt(e[
|
|
799
|
+
), Xm = typeof queueMicrotask < "u" ? queueMicrotask.bind(bn) : typeof process < "u" && process.nextTick || jc, Jm = (e) => e != null && pt(e[$o]), k = {
|
|
800
800
|
isArray: er,
|
|
801
801
|
isArrayBuffer: Tc,
|
|
802
802
|
isBuffer: _r,
|
|
@@ -806,7 +806,7 @@ const Km = (e) => {
|
|
|
806
806
|
isNumber: Rc,
|
|
807
807
|
isBoolean: gm,
|
|
808
808
|
isObject: Or,
|
|
809
|
-
isPlainObject:
|
|
809
|
+
isPlainObject: no,
|
|
810
810
|
isEmptyObject: xm,
|
|
811
811
|
isReadableStream: Rm,
|
|
812
812
|
isRequest: Em,
|
|
@@ -829,7 +829,7 @@ const Km = (e) => {
|
|
|
829
829
|
stripBOM: km,
|
|
830
830
|
inherits: Pm,
|
|
831
831
|
toFlatObject: _m,
|
|
832
|
-
kindOf:
|
|
832
|
+
kindOf: Ho,
|
|
833
833
|
kindOfTest: $t,
|
|
834
834
|
endsWith: Om,
|
|
835
835
|
toArray: Mm,
|
|
@@ -926,7 +926,7 @@ function Qm(e) {
|
|
|
926
926
|
const eg = k.toFlatObject(k, {}, null, function(t) {
|
|
927
927
|
return /^is[A-Z]/.test(t);
|
|
928
928
|
});
|
|
929
|
-
function
|
|
929
|
+
function Uo(e, t, n) {
|
|
930
930
|
if (!k.isObject(e))
|
|
931
931
|
throw new TypeError("target must be an object");
|
|
932
932
|
t = t || new FormData(), n = k.toFlatObject(n, {
|
|
@@ -1004,7 +1004,7 @@ function Ja(e) {
|
|
|
1004
1004
|
});
|
|
1005
1005
|
}
|
|
1006
1006
|
function Di(e, t) {
|
|
1007
|
-
this._pairs = [], e &&
|
|
1007
|
+
this._pairs = [], e && Uo(e, this, t);
|
|
1008
1008
|
}
|
|
1009
1009
|
const _c = Di.prototype;
|
|
1010
1010
|
_c.append = function(t, n) {
|
|
@@ -1115,7 +1115,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", lg
|
|
|
1115
1115
|
...sg
|
|
1116
1116
|
};
|
|
1117
1117
|
function ug(e, t) {
|
|
1118
|
-
return
|
|
1118
|
+
return Uo(e, new lt.classes.URLSearchParams(), {
|
|
1119
1119
|
visitor: function(n, r, o, s) {
|
|
1120
1120
|
return lt.isNode && k.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
1121
1121
|
},
|
|
@@ -1178,7 +1178,7 @@ const Dr = {
|
|
|
1178
1178
|
return ug(t, this.formSerializer).toString();
|
|
1179
1179
|
if ((a = k.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
1180
1180
|
const c = this.env && this.env.FormData;
|
|
1181
|
-
return
|
|
1181
|
+
return Uo(
|
|
1182
1182
|
a ? { "files[]": t } : t,
|
|
1183
1183
|
c && new c(),
|
|
1184
1184
|
this.formSerializer
|
|
@@ -1257,8 +1257,8 @@ const pg = k.toObjectSet([
|
|
|
1257
1257
|
function ur(e) {
|
|
1258
1258
|
return e && String(e).trim().toLowerCase();
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1261
|
-
return e === !1 || e == null ? e : k.isArray(e) ? e.map(
|
|
1260
|
+
function ro(e) {
|
|
1261
|
+
return e === !1 || e == null ? e : k.isArray(e) ? e.map(ro) : String(e);
|
|
1262
1262
|
}
|
|
1263
1263
|
function gg(e) {
|
|
1264
1264
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -1268,7 +1268,7 @@ function gg(e) {
|
|
|
1268
1268
|
return t;
|
|
1269
1269
|
}
|
|
1270
1270
|
const xg = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
1271
|
-
function
|
|
1271
|
+
function Es(e, t, n, r, o) {
|
|
1272
1272
|
if (k.isFunction(r))
|
|
1273
1273
|
return r.call(this, t, n);
|
|
1274
1274
|
if (o && (t = n), !!k.isString(t)) {
|
|
@@ -1303,7 +1303,7 @@ let mt = class {
|
|
|
1303
1303
|
if (!d)
|
|
1304
1304
|
throw new Error("header name must be a non-empty string");
|
|
1305
1305
|
const h = k.findKey(o, d);
|
|
1306
|
-
(!h || o[h] === void 0 || u === !0 || u === void 0 && o[h] !== !1) && (o[h || c] =
|
|
1306
|
+
(!h || o[h] === void 0 || u === !0 || u === void 0 && o[h] !== !1) && (o[h || c] = ro(a));
|
|
1307
1307
|
}
|
|
1308
1308
|
const i = (a, c) => k.forEach(a, (u, d) => s(u, d, c));
|
|
1309
1309
|
if (k.isPlainObject(t) || t instanceof this.constructor)
|
|
@@ -1342,7 +1342,7 @@ let mt = class {
|
|
|
1342
1342
|
has(t, n) {
|
|
1343
1343
|
if (t = ur(t), t) {
|
|
1344
1344
|
const r = k.findKey(this, t);
|
|
1345
|
-
return !!(r && this[r] !== void 0 && (!n ||
|
|
1345
|
+
return !!(r && this[r] !== void 0 && (!n || Es(this, this[r], r, n)));
|
|
1346
1346
|
}
|
|
1347
1347
|
return !1;
|
|
1348
1348
|
}
|
|
@@ -1352,7 +1352,7 @@ let mt = class {
|
|
|
1352
1352
|
function s(i) {
|
|
1353
1353
|
if (i = ur(i), i) {
|
|
1354
1354
|
const a = k.findKey(r, i);
|
|
1355
|
-
a && (!n ||
|
|
1355
|
+
a && (!n || Es(r, r[a], a, n)) && (delete r[a], o = !0);
|
|
1356
1356
|
}
|
|
1357
1357
|
}
|
|
1358
1358
|
return k.isArray(t) ? t.forEach(s) : s(t), o;
|
|
@@ -1362,7 +1362,7 @@ let mt = class {
|
|
|
1362
1362
|
let r = n.length, o = !1;
|
|
1363
1363
|
for (; r--; ) {
|
|
1364
1364
|
const s = n[r];
|
|
1365
|
-
(!t ||
|
|
1365
|
+
(!t || Es(this, this[s], s, t, !0)) && (delete this[s], o = !0);
|
|
1366
1366
|
}
|
|
1367
1367
|
return o;
|
|
1368
1368
|
}
|
|
@@ -1371,11 +1371,11 @@ let mt = class {
|
|
|
1371
1371
|
return k.forEach(this, (o, s) => {
|
|
1372
1372
|
const i = k.findKey(r, s);
|
|
1373
1373
|
if (i) {
|
|
1374
|
-
n[i] =
|
|
1374
|
+
n[i] = ro(o), delete n[s];
|
|
1375
1375
|
return;
|
|
1376
1376
|
}
|
|
1377
1377
|
const a = t ? vg(s) : String(s).trim();
|
|
1378
|
-
a !== s && delete n[s], n[a] =
|
|
1378
|
+
a !== s && delete n[s], n[a] = ro(o), r[a] = !0;
|
|
1379
1379
|
}), this;
|
|
1380
1380
|
}
|
|
1381
1381
|
concat(...t) {
|
|
@@ -1429,7 +1429,7 @@ k.reduceDescriptors(mt.prototype, ({ value: e }, t) => {
|
|
|
1429
1429
|
};
|
|
1430
1430
|
});
|
|
1431
1431
|
k.freezeMethods(mt);
|
|
1432
|
-
function
|
|
1432
|
+
function Is(e, t) {
|
|
1433
1433
|
const n = this || Dr, r = t || n, o = mt.from(r.headers);
|
|
1434
1434
|
let s = r.data;
|
|
1435
1435
|
return k.forEach(e, function(a) {
|
|
@@ -1487,7 +1487,7 @@ function Sg(e, t) {
|
|
|
1487
1487
|
}, r - h)));
|
|
1488
1488
|
}, () => o && i(o)];
|
|
1489
1489
|
}
|
|
1490
|
-
const
|
|
1490
|
+
const So = (e, t, n = 3) => {
|
|
1491
1491
|
let r = 0;
|
|
1492
1492
|
const o = yg(50, 250);
|
|
1493
1493
|
return Sg((s) => {
|
|
@@ -1687,7 +1687,7 @@ const $c = (e) => {
|
|
|
1687
1687
|
)), p = null;
|
|
1688
1688
|
}, s === void 0 && i.setContentType(null), "setRequestHeader" in p && k.forEach(i.toJSON(), function(E, C) {
|
|
1689
1689
|
p.setRequestHeader(C, E);
|
|
1690
|
-
}), k.isUndefined(o.withCredentials) || (p.withCredentials = !!o.withCredentials), a && a !== "json" && (p.responseType = o.responseType), u && ([m, x] =
|
|
1690
|
+
}), k.isUndefined(o.withCredentials) || (p.withCredentials = !!o.withCredentials), a && a !== "json" && (p.responseType = o.responseType), u && ([m, x] = So(u, !0), p.addEventListener("progress", m)), c && p.upload && ([h, v] = So(c), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (d = (y) => {
|
|
1691
1691
|
p && (r(!y || y.type ? new tr(null, e, p) : y), p.abort(), p = null);
|
|
1692
1692
|
}, o.cancelToken && o.cancelToken.subscribe(d), o.signal && (o.signal.aborted ? d() : o.signal.addEventListener("abort", d)));
|
|
1693
1693
|
const w = wg(o.url);
|
|
@@ -1866,7 +1866,7 @@ const $c = (e) => {
|
|
|
1866
1866
|
if (k.isFormData(b) && (oe = X.headers.get("content-type")) && I.setContentType(oe), X.body) {
|
|
1867
1867
|
const [F, ee] = el(
|
|
1868
1868
|
$,
|
|
1869
|
-
|
|
1869
|
+
So(tl(T))
|
|
1870
1870
|
);
|
|
1871
1871
|
b = rl(X.body, ol, F, ee);
|
|
1872
1872
|
}
|
|
@@ -1891,7 +1891,7 @@ const $c = (e) => {
|
|
|
1891
1891
|
});
|
|
1892
1892
|
const oe = k.toFiniteNumber(O.headers.get("content-length")), [F, ee] = C && el(
|
|
1893
1893
|
oe,
|
|
1894
|
-
|
|
1894
|
+
So(tl(C), !0)
|
|
1895
1895
|
) || [];
|
|
1896
1896
|
O = new r(
|
|
1897
1897
|
rl(O.body, ol, F, () => {
|
|
@@ -1981,36 +1981,36 @@ const ll = (e) => `- ${e}`, Dg = (e) => k.isFunction(e) || e === null || e === !
|
|
|
1981
1981
|
},
|
|
1982
1982
|
adapters: ri
|
|
1983
1983
|
};
|
|
1984
|
-
function
|
|
1984
|
+
function Ns(e) {
|
|
1985
1985
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1986
1986
|
throw new tr(null, e);
|
|
1987
1987
|
}
|
|
1988
1988
|
function cl(e) {
|
|
1989
|
-
return
|
|
1989
|
+
return Ns(e), e.headers = mt.from(e.headers), e.data = Is.call(
|
|
1990
1990
|
e,
|
|
1991
1991
|
e.transformRequest
|
|
1992
1992
|
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), zc.getAdapter(e.adapter || Dr.adapter, e)(e).then(function(r) {
|
|
1993
|
-
return
|
|
1993
|
+
return Ns(e), r.data = Is.call(
|
|
1994
1994
|
e,
|
|
1995
1995
|
e.transformResponse,
|
|
1996
1996
|
r
|
|
1997
1997
|
), r.headers = mt.from(r.headers), r;
|
|
1998
1998
|
}, function(r) {
|
|
1999
|
-
return Lc(r) || (
|
|
1999
|
+
return Lc(r) || (Ns(e), r && r.response && (r.response.data = Is.call(
|
|
2000
2000
|
e,
|
|
2001
2001
|
e.transformResponse,
|
|
2002
2002
|
r.response
|
|
2003
2003
|
), r.response.headers = mt.from(r.response.headers))), Promise.reject(r);
|
|
2004
2004
|
});
|
|
2005
2005
|
}
|
|
2006
|
-
const Uc = "1.12.2",
|
|
2006
|
+
const Uc = "1.12.2", Wo = {};
|
|
2007
2007
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
2008
|
-
|
|
2008
|
+
Wo[e] = function(r) {
|
|
2009
2009
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
2010
2010
|
};
|
|
2011
2011
|
});
|
|
2012
2012
|
const ul = {};
|
|
2013
|
-
|
|
2013
|
+
Wo.transitional = function(t, n, r) {
|
|
2014
2014
|
function o(s, i) {
|
|
2015
2015
|
return "[Axios v" + Uc + "] Transitional option '" + s + "'" + i + (r ? ". " + r : "");
|
|
2016
2016
|
}
|
|
@@ -2028,7 +2028,7 @@ Vo.transitional = function(t, n, r) {
|
|
|
2028
2028
|
)), t ? t(s, i, a) : !0;
|
|
2029
2029
|
};
|
|
2030
2030
|
};
|
|
2031
|
-
|
|
2031
|
+
Wo.spelling = function(t) {
|
|
2032
2032
|
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
2033
2033
|
};
|
|
2034
2034
|
function Lg(e, t, n) {
|
|
@@ -2048,10 +2048,10 @@ function Lg(e, t, n) {
|
|
|
2048
2048
|
throw new we("Unknown option " + s, we.ERR_BAD_OPTION);
|
|
2049
2049
|
}
|
|
2050
2050
|
}
|
|
2051
|
-
const
|
|
2051
|
+
const oo = {
|
|
2052
2052
|
assertOptions: Lg,
|
|
2053
|
-
validators:
|
|
2054
|
-
}, Ut =
|
|
2053
|
+
validators: Wo
|
|
2054
|
+
}, Ut = oo.validators;
|
|
2055
2055
|
let yn = class {
|
|
2056
2056
|
constructor(t) {
|
|
2057
2057
|
this.defaults = t || {}, this.interceptors = {
|
|
@@ -2087,16 +2087,16 @@ let yn = class {
|
|
|
2087
2087
|
_request(t, n) {
|
|
2088
2088
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Cn(this.defaults, n);
|
|
2089
2089
|
const { transitional: r, paramsSerializer: o, headers: s } = n;
|
|
2090
|
-
r !== void 0 &&
|
|
2090
|
+
r !== void 0 && oo.assertOptions(r, {
|
|
2091
2091
|
silentJSONParsing: Ut.transitional(Ut.boolean),
|
|
2092
2092
|
forcedJSONParsing: Ut.transitional(Ut.boolean),
|
|
2093
2093
|
clarifyTimeoutError: Ut.transitional(Ut.boolean)
|
|
2094
2094
|
}, !1), o != null && (k.isFunction(o) ? n.paramsSerializer = {
|
|
2095
2095
|
serialize: o
|
|
2096
|
-
} :
|
|
2096
|
+
} : oo.assertOptions(o, {
|
|
2097
2097
|
encode: Ut.function,
|
|
2098
2098
|
serialize: Ut.function
|
|
2099
|
-
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0),
|
|
2099
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), oo.assertOptions(n, {
|
|
2100
2100
|
baseUrl: Ut.spelling("baseURL"),
|
|
2101
2101
|
withXsrfToken: Ut.spelling("withXSRFToken")
|
|
2102
2102
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -2337,7 +2337,7 @@ Ye.CanceledError = tr;
|
|
|
2337
2337
|
Ye.CancelToken = Fg;
|
|
2338
2338
|
Ye.isCancel = Lc;
|
|
2339
2339
|
Ye.VERSION = Uc;
|
|
2340
|
-
Ye.toFormData =
|
|
2340
|
+
Ye.toFormData = Uo;
|
|
2341
2341
|
Ye.AxiosError = we;
|
|
2342
2342
|
Ye.Cancel = Ye.CanceledError;
|
|
2343
2343
|
Ye.all = function(t) {
|
|
@@ -2370,13 +2370,13 @@ const {
|
|
|
2370
2370
|
mergeConfig: lR
|
|
2371
2371
|
} = Ye, dl = typeof window < "u" ? window.__API_BASE_URL__ : void 0, si = dl ? dl.replace(/\/+$/, "") : void 0;
|
|
2372
2372
|
!si && typeof window < "u" && console.warn("API base URL is not configured. The API client will need to be configured via apiConfig prop or window.__API_BASE_URL__.");
|
|
2373
|
-
let
|
|
2373
|
+
let Co = null;
|
|
2374
2374
|
const ii = /* @__PURE__ */ new Set();
|
|
2375
2375
|
function Hg() {
|
|
2376
|
-
return
|
|
2376
|
+
return Co;
|
|
2377
2377
|
}
|
|
2378
2378
|
function fl(e) {
|
|
2379
|
-
|
|
2379
|
+
Co = e, ii.forEach((t) => t(e));
|
|
2380
2380
|
}
|
|
2381
2381
|
function zg(e) {
|
|
2382
2382
|
return ii.add(e), () => ii.delete(e);
|
|
@@ -2388,7 +2388,7 @@ const Nt = Ye.create({
|
|
|
2388
2388
|
timeout: 3e4,
|
|
2389
2389
|
withCredentials: !0
|
|
2390
2390
|
});
|
|
2391
|
-
Nt.interceptors.request.use((e) => (
|
|
2391
|
+
Nt.interceptors.request.use((e) => (Co && (e.headers.Authorization = `Bearer ${Co}`), e));
|
|
2392
2392
|
Nt.interceptors.response.use(
|
|
2393
2393
|
(e) => e,
|
|
2394
2394
|
(e) => Promise.reject(e)
|
|
@@ -2660,16 +2660,16 @@ function Jg(e, t) {
|
|
|
2660
2660
|
switch (t.type) {
|
|
2661
2661
|
case "reset":
|
|
2662
2662
|
return {
|
|
2663
|
-
messages:
|
|
2663
|
+
messages: js(((n = t.payload) == null ? void 0 : n.messages) ?? []),
|
|
2664
2664
|
assemblingId: null,
|
|
2665
2665
|
lastCheckpointId: null,
|
|
2666
2666
|
toolIndex: {},
|
|
2667
2667
|
lastBranch: null
|
|
2668
2668
|
};
|
|
2669
2669
|
case "seed":
|
|
2670
|
-
return { ...e, messages:
|
|
2670
|
+
return { ...e, messages: js(t.payload.messages) };
|
|
2671
2671
|
case "prepend": {
|
|
2672
|
-
const r =
|
|
2672
|
+
const r = js(t.payload.messages);
|
|
2673
2673
|
if (!r.length) return e;
|
|
2674
2674
|
const o = new Set(e.messages.map((i) => i.id)), s = r.filter((i) => !o.has(i.id));
|
|
2675
2675
|
return s.length ? { ...e, messages: [...s, ...e.messages] } : e;
|
|
@@ -2731,15 +2731,15 @@ function hl(e, t) {
|
|
|
2731
2731
|
return { ...e, assemblingId: r, messages: [...e.messages, s] };
|
|
2732
2732
|
}
|
|
2733
2733
|
if (t.type === "token") {
|
|
2734
|
-
const r = e.assemblingId ??
|
|
2734
|
+
const r = e.assemblingId ?? As(e.messages);
|
|
2735
2735
|
return r ? { ...e, messages: Qg(e.messages, r, t.content) } : e;
|
|
2736
2736
|
}
|
|
2737
2737
|
if (t.type === "message_delta") {
|
|
2738
|
-
const r = e.assemblingId ??
|
|
2738
|
+
const r = e.assemblingId ?? As(e.messages);
|
|
2739
2739
|
return r ? { ...e, messages: pl(e.messages, r, t.delta) } : e;
|
|
2740
2740
|
}
|
|
2741
2741
|
if (t.type === "message_end") {
|
|
2742
|
-
const r = e.assemblingId ??
|
|
2742
|
+
const r = e.assemblingId ?? As(e.messages);
|
|
2743
2743
|
if (!r) return { ...e, assemblingId: null };
|
|
2744
2744
|
const o = e.messages, s = o.findIndex((i) => i.id === r && i.role === "assistant");
|
|
2745
2745
|
if (s >= 0 && !((n = o[s].content) == null ? void 0 : n.some((c) => {
|
|
@@ -2788,7 +2788,7 @@ function hl(e, t) {
|
|
|
2788
2788
|
}
|
|
2789
2789
|
return e;
|
|
2790
2790
|
}
|
|
2791
|
-
function
|
|
2791
|
+
function js(e) {
|
|
2792
2792
|
return e.filter((t) => {
|
|
2793
2793
|
if (t.role !== "assistant") return !0;
|
|
2794
2794
|
const n = (t.content || []).some(
|
|
@@ -2800,7 +2800,7 @@ function As(e) {
|
|
|
2800
2800
|
return !!(n || r);
|
|
2801
2801
|
});
|
|
2802
2802
|
}
|
|
2803
|
-
function
|
|
2803
|
+
function As(e) {
|
|
2804
2804
|
for (let t = e.length - 1; t >= 0; t--)
|
|
2805
2805
|
if (e[t].role === "assistant") return e[t].id;
|
|
2806
2806
|
return null;
|
|
@@ -2921,7 +2921,7 @@ async function ix(e, t = [], n, r, o, s) {
|
|
|
2921
2921
|
return { contentParts: i, filesInfo: a };
|
|
2922
2922
|
}
|
|
2923
2923
|
const Gc = xc(null);
|
|
2924
|
-
function
|
|
2924
|
+
function so({ children: e, apiConfig: t, onError: n, onThreadChange: r, initialThreadId: o = null, historyPageSize: s, autoLoadInitial: i = !0, enableFileAgentRouting: a = !1, fileAgentId: c = "invoice_reader" }) {
|
|
2925
2925
|
const u = Tn;
|
|
2926
2926
|
Ue(() => {
|
|
2927
2927
|
t && u.updateConfig({
|
|
@@ -3356,7 +3356,7 @@ function lx({
|
|
|
3356
3356
|
) })
|
|
3357
3357
|
] }) });
|
|
3358
3358
|
}
|
|
3359
|
-
const cx = K.memo(lx),
|
|
3359
|
+
const cx = K.memo(lx), Vo = 0, fn = 1, nr = 2, Yc = 4;
|
|
3360
3360
|
function ml(e) {
|
|
3361
3361
|
return () => e;
|
|
3362
3362
|
}
|
|
@@ -3382,7 +3382,7 @@ function fx(...e) {
|
|
|
3382
3382
|
}
|
|
3383
3383
|
function rr() {
|
|
3384
3384
|
}
|
|
3385
|
-
function
|
|
3385
|
+
function Go(e, t) {
|
|
3386
3386
|
return t(e), e;
|
|
3387
3387
|
}
|
|
3388
3388
|
function hx(e, t) {
|
|
@@ -3395,7 +3395,7 @@ function ke(e, t) {
|
|
|
3395
3395
|
return e(fn, t);
|
|
3396
3396
|
}
|
|
3397
3397
|
function ye(e, t) {
|
|
3398
|
-
e(
|
|
3398
|
+
e(Vo, t);
|
|
3399
3399
|
}
|
|
3400
3400
|
function $i(e) {
|
|
3401
3401
|
e(nr);
|
|
@@ -3404,7 +3404,7 @@ function Ke(e) {
|
|
|
3404
3404
|
return e(Yc);
|
|
3405
3405
|
}
|
|
3406
3406
|
function le(e, t) {
|
|
3407
|
-
return ke(e, dx(t,
|
|
3407
|
+
return ke(e, dx(t, Vo));
|
|
3408
3408
|
}
|
|
3409
3409
|
function Mt(e, t) {
|
|
3410
3410
|
const n = e(fn, (r) => {
|
|
@@ -3510,7 +3510,7 @@ function V(e) {
|
|
|
3510
3510
|
const n = Re();
|
|
3511
3511
|
return (r, o) => {
|
|
3512
3512
|
switch (r) {
|
|
3513
|
-
case
|
|
3513
|
+
case Vo:
|
|
3514
3514
|
t = o;
|
|
3515
3515
|
break;
|
|
3516
3516
|
case fn: {
|
|
@@ -3524,13 +3524,13 @@ function V(e) {
|
|
|
3524
3524
|
};
|
|
3525
3525
|
}
|
|
3526
3526
|
function ut(e, t) {
|
|
3527
|
-
return
|
|
3527
|
+
return Go(V(t), (n) => le(e, n));
|
|
3528
3528
|
}
|
|
3529
3529
|
function Re() {
|
|
3530
3530
|
const e = [];
|
|
3531
3531
|
return (t, n) => {
|
|
3532
3532
|
switch (t) {
|
|
3533
|
-
case
|
|
3533
|
+
case Vo:
|
|
3534
3534
|
e.slice().forEach((r) => {
|
|
3535
3535
|
r(n);
|
|
3536
3536
|
});
|
|
@@ -3547,7 +3547,7 @@ function Re() {
|
|
|
3547
3547
|
};
|
|
3548
3548
|
}
|
|
3549
3549
|
function wt(e) {
|
|
3550
|
-
return
|
|
3550
|
+
return Go(Re(), (t) => le(e, t));
|
|
3551
3551
|
}
|
|
3552
3552
|
function Ie(e, t = [], { singleton: n } = { singleton: !0 }) {
|
|
3553
3553
|
return {
|
|
@@ -3810,7 +3810,7 @@ function bt(e, t, n) {
|
|
|
3810
3810
|
function Wn() {
|
|
3811
3811
|
return yr;
|
|
3812
3812
|
}
|
|
3813
|
-
function
|
|
3813
|
+
function Ko(e, t, n) {
|
|
3814
3814
|
if (De(e))
|
|
3815
3815
|
return [];
|
|
3816
3816
|
const r = Lt(e, t)[0];
|
|
@@ -3826,9 +3826,9 @@ function ci(e, t) {
|
|
|
3826
3826
|
return r;
|
|
3827
3827
|
{
|
|
3828
3828
|
const [s, i] = eu(r);
|
|
3829
|
-
return
|
|
3829
|
+
return io(et(e, { k: s, l: Qc(r), v: i }));
|
|
3830
3830
|
}
|
|
3831
|
-
} else return t < n ?
|
|
3831
|
+
} else return t < n ? io(et(e, { l: ci(r, t) })) : io(et(e, { r: ci(o, t) }));
|
|
3832
3832
|
}
|
|
3833
3833
|
function wn(e) {
|
|
3834
3834
|
return De(e) ? [] : [...wn(e.l), { k: e.k, v: e.v }, ...wn(e.r)];
|
|
@@ -3840,12 +3840,12 @@ function ui(e, t, n) {
|
|
|
3840
3840
|
let a = [];
|
|
3841
3841
|
return r > t && (a = a.concat(ui(o, t, n))), r >= t && r <= n && a.push({ k: r, v: i }), r <= n && (a = a.concat(ui(s, t, n))), a;
|
|
3842
3842
|
}
|
|
3843
|
-
function
|
|
3843
|
+
function io(e) {
|
|
3844
3844
|
const { l: t, lvl: n, r } = e;
|
|
3845
3845
|
if (r.lvl >= n - 1 && t.lvl >= n - 1)
|
|
3846
3846
|
return e;
|
|
3847
3847
|
if (n > r.lvl + 1) {
|
|
3848
|
-
if (
|
|
3848
|
+
if (ks(t))
|
|
3849
3849
|
return nu(et(e, { lvl: n - 1 }));
|
|
3850
3850
|
if (!De(t) && !De(t.r))
|
|
3851
3851
|
return et(t.r, {
|
|
@@ -3858,10 +3858,10 @@ function ao(e) {
|
|
|
3858
3858
|
});
|
|
3859
3859
|
throw new Error("Unexpected empty nodes");
|
|
3860
3860
|
} else {
|
|
3861
|
-
if (
|
|
3861
|
+
if (ks(e))
|
|
3862
3862
|
return di(et(e, { lvl: n - 1 }));
|
|
3863
3863
|
if (!De(r) && !De(r.l)) {
|
|
3864
|
-
const o = r.l, s =
|
|
3864
|
+
const o = r.l, s = ks(o) ? r.lvl - 1 : r.lvl;
|
|
3865
3865
|
return et(o, {
|
|
3866
3866
|
l: et(e, {
|
|
3867
3867
|
lvl: n - 1,
|
|
@@ -3884,9 +3884,9 @@ function et(e, t) {
|
|
|
3884
3884
|
);
|
|
3885
3885
|
}
|
|
3886
3886
|
function Qc(e) {
|
|
3887
|
-
return De(e.r) ? e.l :
|
|
3887
|
+
return De(e.r) ? e.l : io(et(e, { r: Qc(e.r) }));
|
|
3888
3888
|
}
|
|
3889
|
-
function
|
|
3889
|
+
function ks(e) {
|
|
3890
3890
|
return De(e) || e.lvl > e.r.lvl;
|
|
3891
3891
|
}
|
|
3892
3892
|
function eu(e) {
|
|
@@ -3921,9 +3921,9 @@ const zi = Ie(
|
|
|
3921
3921
|
{ singleton: !0 }
|
|
3922
3922
|
);
|
|
3923
3923
|
function ou(e, t, n) {
|
|
3924
|
-
return e[
|
|
3924
|
+
return e[To(e, t, n)];
|
|
3925
3925
|
}
|
|
3926
|
-
function
|
|
3926
|
+
function To(e, t, n, r = 0) {
|
|
3927
3927
|
let o = e.length - 1;
|
|
3928
3928
|
for (; r <= o; ) {
|
|
3929
3929
|
const s = Math.floor((r + o) / 2), i = e[s], a = n(i, t);
|
|
@@ -3942,13 +3942,13 @@ function Ro(e, t, n, r = 0) {
|
|
|
3942
3942
|
throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`);
|
|
3943
3943
|
}
|
|
3944
3944
|
function Cx(e, t, n, r) {
|
|
3945
|
-
const o =
|
|
3945
|
+
const o = To(e, t, r), s = To(e, n, r, o);
|
|
3946
3946
|
return e.slice(o, s + 1);
|
|
3947
3947
|
}
|
|
3948
3948
|
function ln(e, t) {
|
|
3949
3949
|
return Math.round(e.getBoundingClientRect()[t]);
|
|
3950
3950
|
}
|
|
3951
|
-
function
|
|
3951
|
+
function Yo(e) {
|
|
3952
3952
|
return !De(e.groupOffsetTree);
|
|
3953
3953
|
}
|
|
3954
3954
|
function Ui({ index: e }, t) {
|
|
@@ -3973,7 +3973,7 @@ function Rx(e, t) {
|
|
|
3973
3973
|
e = bt(e, 0, s);
|
|
3974
3974
|
continue;
|
|
3975
3975
|
}
|
|
3976
|
-
const a =
|
|
3976
|
+
const a = Ko(e, i - 1, o + 1);
|
|
3977
3977
|
if (a.some(Px(r)))
|
|
3978
3978
|
continue;
|
|
3979
3979
|
let c = !1, u = !1;
|
|
@@ -3996,7 +3996,7 @@ function Tr(e, t, n) {
|
|
|
3996
3996
|
return a > 0 ? a + n : a;
|
|
3997
3997
|
}
|
|
3998
3998
|
function su(e, t) {
|
|
3999
|
-
if (!
|
|
3999
|
+
if (!Yo(t))
|
|
4000
4000
|
return e;
|
|
4001
4001
|
let n = 0;
|
|
4002
4002
|
for (; t.groupIndices[n] <= e + n; )
|
|
@@ -4052,12 +4052,12 @@ function wl(e, t) {
|
|
|
4052
4052
|
function fi(e, t, n, r) {
|
|
4053
4053
|
let o = e, s = 0, i = 0, a = 0, c = 0;
|
|
4054
4054
|
if (t !== 0) {
|
|
4055
|
-
c =
|
|
4055
|
+
c = To(o, t - 1, Ui), a = o[c].offset;
|
|
4056
4056
|
const u = Lt(n, t - 1);
|
|
4057
4057
|
s = u[0], i = u[1], o.length && o[c].size === Lt(n, t)[1] && (c -= 1), o = o.slice(0, c + 1);
|
|
4058
4058
|
} else
|
|
4059
4059
|
o = [];
|
|
4060
|
-
for (const { start: u, value: d } of
|
|
4060
|
+
for (const { start: u, value: d } of Ko(n, t, 1 / 0)) {
|
|
4061
4061
|
const h = u - s, m = h * i + a + h * r;
|
|
4062
4062
|
o.push({
|
|
4063
4063
|
index: u,
|
|
@@ -4345,7 +4345,7 @@ const au = Ie(
|
|
|
4345
4345
|
), le(
|
|
4346
4346
|
B(
|
|
4347
4347
|
Ze(o, t, r),
|
|
4348
|
-
pe(([c, u]) =>
|
|
4348
|
+
pe(([c, u]) => Yo(u)),
|
|
4349
4349
|
re(([c, u, d]) => Lt(u.groupOffsetTree, Math.max(c - d, 0), "v")[0]),
|
|
4350
4350
|
Be(),
|
|
4351
4351
|
re((c) => [c])
|
|
@@ -4644,9 +4644,9 @@ const Rr = "up", mr = "down", Lx = "none", Fx = {
|
|
|
4644
4644
|
scrollDirection: p,
|
|
4645
4645
|
scrollVelocity: b
|
|
4646
4646
|
};
|
|
4647
|
-
}, $e(ft)),
|
|
4647
|
+
}, $e(ft)), Ro = "top", Eo = "bottom", yl = "none";
|
|
4648
4648
|
function Sl(e, t, n) {
|
|
4649
|
-
return typeof e == "number" ? n === Rr && t ===
|
|
4649
|
+
return typeof e == "number" ? n === Rr && t === Ro || n === mr && t === Eo ? e : 0 : n === Rr ? t === Ro ? e.main : e.reverse : t === Eo ? e.main : e.reverse;
|
|
4650
4650
|
}
|
|
4651
4651
|
function Cl(e, t) {
|
|
4652
4652
|
var n;
|
|
@@ -4681,10 +4681,10 @@ const Gi = Ie(
|
|
|
4681
4681
|
]) => {
|
|
4682
4682
|
const E = d - w, C = p + b, T = Math.max(m - E, 0);
|
|
4683
4683
|
let S = yl;
|
|
4684
|
-
const I = Cl(y,
|
|
4684
|
+
const I = Cl(y, Ro), N = Cl(y, Eo);
|
|
4685
4685
|
return v -= w, v += m + b, x += m + b, x -= w, v > d + C - I && (S = Rr), x < d - T + h + N && (S = mr), S !== yl ? [
|
|
4686
|
-
Math.max(E - m - Sl(g,
|
|
4687
|
-
E - T - b + h + Sl(g,
|
|
4686
|
+
Math.max(E - m - Sl(g, Ro, S) - I, 0),
|
|
4687
|
+
E - T - b + h + Sl(g, Eo, S) + N
|
|
4688
4688
|
] : null;
|
|
4689
4689
|
}
|
|
4690
4690
|
),
|
|
@@ -4707,7 +4707,7 @@ const Gi = Ie(
|
|
|
4707
4707
|
{ singleton: !0 }
|
|
4708
4708
|
);
|
|
4709
4709
|
function $x(e, t, n) {
|
|
4710
|
-
if (
|
|
4710
|
+
if (Yo(t)) {
|
|
4711
4711
|
const r = su(e, t);
|
|
4712
4712
|
return [
|
|
4713
4713
|
{ index: Lt(t.groupOffsetTree, r)[0], offset: 0, size: 0 },
|
|
@@ -4716,7 +4716,7 @@ function $x(e, t, n) {
|
|
|
4716
4716
|
}
|
|
4717
4717
|
return [{ data: n == null ? void 0 : n[0], index: e, offset: 0, size: 0 }];
|
|
4718
4718
|
}
|
|
4719
|
-
const
|
|
4719
|
+
const Ps = {
|
|
4720
4720
|
bottom: 0,
|
|
4721
4721
|
firstItemIndex: 0,
|
|
4722
4722
|
items: [],
|
|
@@ -4727,7 +4727,7 @@ const _s = {
|
|
|
4727
4727
|
topListHeight: 0,
|
|
4728
4728
|
totalCount: 0
|
|
4729
4729
|
};
|
|
4730
|
-
function
|
|
4730
|
+
function ao(e, t, n, r, o, s) {
|
|
4731
4731
|
const { lastIndex: i, lastOffset: a, lastSize: c } = o;
|
|
4732
4732
|
let u = 0, d = 0;
|
|
4733
4733
|
if (e.length > 0) {
|
|
@@ -4762,14 +4762,14 @@ function uu(e, t, n, r, o, s) {
|
|
|
4762
4762
|
offset: 0,
|
|
4763
4763
|
size: 0
|
|
4764
4764
|
}));
|
|
4765
|
-
return
|
|
4765
|
+
return ao(u, [], a, o, n, r);
|
|
4766
4766
|
}
|
|
4767
4767
|
function Tl(e, t, n) {
|
|
4768
4768
|
if (e.length === 0)
|
|
4769
4769
|
return [];
|
|
4770
|
-
if (!
|
|
4770
|
+
if (!Yo(t))
|
|
4771
4771
|
return e.map((u) => ({ ...u, index: u.index + n, originalIndex: u.index }));
|
|
4772
|
-
const r = e[0].index, o = e[e.length - 1].index, s = [], i =
|
|
4772
|
+
const r = e[0].index, o = e[e.length - 1].index, s = [], i = Ko(t.groupOffsetTree, r, o);
|
|
4773
4773
|
let a, c = 0;
|
|
4774
4774
|
for (const u of e) {
|
|
4775
4775
|
(!a || a.end < u.index) && (a = i.shift(), c = t.groupIndices.indexOf(a.start));
|
|
@@ -4838,11 +4838,11 @@ const kn = Ie(
|
|
|
4838
4838
|
]) => {
|
|
4839
4839
|
const L = N, { offsetTree: q, sizeTree: O } = L, _ = Ke(p);
|
|
4840
4840
|
if (I === 0)
|
|
4841
|
-
return { ...
|
|
4841
|
+
return { ...Ps, totalCount: I };
|
|
4842
4842
|
if (T === 0 && S === 0)
|
|
4843
|
-
return _ === 0 ? { ...
|
|
4843
|
+
return _ === 0 ? { ...Ps, totalCount: I } : uu(_, j, N, G, A, $ || []);
|
|
4844
4844
|
if (De(O))
|
|
4845
|
-
return _ > 0 ? null :
|
|
4845
|
+
return _ > 0 ? null : ao(
|
|
4846
4846
|
$x(Vi(j, I), L, $),
|
|
4847
4847
|
[],
|
|
4848
4848
|
I,
|
|
@@ -4854,18 +4854,18 @@ const kn = Ie(
|
|
|
4854
4854
|
if (W.length > 0) {
|
|
4855
4855
|
const he = W[0], be = W[W.length - 1];
|
|
4856
4856
|
let Y = 0;
|
|
4857
|
-
for (const P of
|
|
4857
|
+
for (const P of Ko(O, he, be)) {
|
|
4858
4858
|
const Z = P.value, ne = Math.max(P.start, he), ae = Math.min(P.end, be);
|
|
4859
4859
|
for (let se = ne; se <= ae; se++)
|
|
4860
4860
|
z.push({ data: $ == null ? void 0 : $[se], index: se, offset: Y, size: Z }), Y += Z;
|
|
4861
4861
|
}
|
|
4862
4862
|
}
|
|
4863
4863
|
if (!M)
|
|
4864
|
-
return
|
|
4864
|
+
return ao([], z, I, A, L, G);
|
|
4865
4865
|
const X = W.length > 0 ? W[W.length - 1] + 1 : 0, oe = Nx(q, T, S, X);
|
|
4866
4866
|
if (oe.length === 0)
|
|
4867
4867
|
return null;
|
|
4868
|
-
const F = I - 1, ee =
|
|
4868
|
+
const F = I - 1, ee = Go([], (he) => {
|
|
4869
4869
|
for (const be of oe) {
|
|
4870
4870
|
const Y = be.value;
|
|
4871
4871
|
let P = Y.offset, Z = be.start;
|
|
@@ -4881,14 +4881,14 @@ const kn = Ie(
|
|
|
4881
4881
|
he.push({ data: $ == null ? void 0 : $[se], index: se, offset: P, size: ne }), P += ne + A;
|
|
4882
4882
|
}
|
|
4883
4883
|
});
|
|
4884
|
-
return
|
|
4884
|
+
return ao(ee, z, I, A, L, G);
|
|
4885
4885
|
}
|
|
4886
4886
|
),
|
|
4887
4887
|
//@ts-expect-error filter needs to be fixed
|
|
4888
4888
|
pe((T) => T !== null),
|
|
4889
4889
|
Be()
|
|
4890
4890
|
),
|
|
4891
|
-
|
|
4891
|
+
Ps
|
|
4892
4892
|
);
|
|
4893
4893
|
le(
|
|
4894
4894
|
B(
|
|
@@ -5538,7 +5538,7 @@ function xu(e, t, n) {
|
|
|
5538
5538
|
return i.reduce((b, w) => (b[w] = mx(p[t.events[w]]), b), {});
|
|
5539
5539
|
}
|
|
5540
5540
|
const h = K.forwardRef((p, b) => {
|
|
5541
|
-
const { children: w, ...y } = p, [E] = K.useState(() =>
|
|
5541
|
+
const { children: w, ...y } = p, [E] = K.useState(() => Go(xx(e), (S) => {
|
|
5542
5542
|
c(S, y);
|
|
5543
5543
|
})), [C] = K.useState(gl(d, E));
|
|
5544
5544
|
Gr(() => {
|
|
@@ -5590,7 +5590,7 @@ function xu(e, t, n) {
|
|
|
5590
5590
|
};
|
|
5591
5591
|
}
|
|
5592
5592
|
const vu = K.createContext(void 0), bu = K.createContext(void 0), wu = typeof document < "u" ? K.useLayoutEffect : K.useEffect;
|
|
5593
|
-
function
|
|
5593
|
+
function _s(e) {
|
|
5594
5594
|
return "self" in e;
|
|
5595
5595
|
}
|
|
5596
5596
|
function ev(e) {
|
|
@@ -5601,8 +5601,8 @@ function yu(e, t, n, r = rr, o, s) {
|
|
|
5601
5601
|
(m) => {
|
|
5602
5602
|
let v, x, g;
|
|
5603
5603
|
const p = m.target;
|
|
5604
|
-
if (ev(p) ||
|
|
5605
|
-
const w =
|
|
5604
|
+
if (ev(p) || _s(p)) {
|
|
5605
|
+
const w = _s(p) ? p : p.defaultView;
|
|
5606
5606
|
g = s ? w.scrollX : w.scrollY, v = s ? w.document.documentElement.scrollWidth : w.document.documentElement.scrollHeight, x = s ? w.innerWidth : w.innerHeight;
|
|
5607
5607
|
} else
|
|
5608
5608
|
g = s ? p.scrollLeft : p.scrollTop, v = s ? p.scrollWidth : p.scrollHeight, x = s ? p.offsetWidth : p.offsetHeight;
|
|
@@ -5629,7 +5629,7 @@ function yu(e, t, n, r = rr, o, s) {
|
|
|
5629
5629
|
return;
|
|
5630
5630
|
const x = m.behavior === "smooth";
|
|
5631
5631
|
let g, p, b;
|
|
5632
|
-
|
|
5632
|
+
_s(v) ? (p = Math.max(
|
|
5633
5633
|
ln(v.document.documentElement, s ? "width" : "height"),
|
|
5634
5634
|
s ? v.document.documentElement.scrollWidth : v.document.documentElement.scrollHeight
|
|
5635
5635
|
), g = s ? v.innerWidth : v.innerHeight, b = s ? window.scrollX : window.scrollY) : (p = v[s ? "scrollWidth" : "scrollHeight"], g = ln(v, s ? "width" : "height"), b = v[s ? "scrollLeft" : "scrollTop"]);
|
|
@@ -5647,11 +5647,11 @@ function yu(e, t, n, r = rr, o, s) {
|
|
|
5647
5647
|
}
|
|
5648
5648
|
return { scrollByCallback: h, scrollerRef: i, scrollToCallback: d };
|
|
5649
5649
|
}
|
|
5650
|
-
const
|
|
5650
|
+
const Os = "-webkit-sticky", El = "sticky", Yi = mu(() => {
|
|
5651
5651
|
if (typeof document > "u")
|
|
5652
5652
|
return El;
|
|
5653
5653
|
const e = document.createElement("div");
|
|
5654
|
-
return e.style.position =
|
|
5654
|
+
return e.style.position = Os, e.style.position === Os ? Os : El;
|
|
5655
5655
|
});
|
|
5656
5656
|
function qi(e) {
|
|
5657
5657
|
return e;
|
|
@@ -5725,7 +5725,7 @@ const tv = /* @__PURE__ */ Ie(() => {
|
|
|
5725
5725
|
style: G,
|
|
5726
5726
|
children: (e ? t.topItems : t.items).map((A) => {
|
|
5727
5727
|
const $ = A.originalIndex, L = I($ + t.firstItemIndex, A.data, u);
|
|
5728
|
-
return N ? /* @__PURE__ */
|
|
5728
|
+
return N ? /* @__PURE__ */ to(
|
|
5729
5729
|
E,
|
|
5730
5730
|
{
|
|
5731
5731
|
...ct(E, u),
|
|
@@ -5735,7 +5735,7 @@ const tv = /* @__PURE__ */ Ie(() => {
|
|
|
5735
5735
|
type: A.type || "item",
|
|
5736
5736
|
...A.type === "group" ? {} : { groupIndex: A.groupIndex }
|
|
5737
5737
|
}
|
|
5738
|
-
) : A.type === "group" ? /* @__PURE__ */
|
|
5738
|
+
) : A.type === "group" ? /* @__PURE__ */ to(
|
|
5739
5739
|
S,
|
|
5740
5740
|
{
|
|
5741
5741
|
...ct(S, u),
|
|
@@ -5746,7 +5746,7 @@ const tv = /* @__PURE__ */ Ie(() => {
|
|
|
5746
5746
|
style: ov
|
|
5747
5747
|
},
|
|
5748
5748
|
d(A.index, u)
|
|
5749
|
-
) : /* @__PURE__ */
|
|
5749
|
+
) : /* @__PURE__ */ to(
|
|
5750
5750
|
T,
|
|
5751
5751
|
{
|
|
5752
5752
|
...ct(T, u),
|
|
@@ -5773,7 +5773,7 @@ const tv = /* @__PURE__ */ Ie(() => {
|
|
|
5773
5773
|
outline: "none",
|
|
5774
5774
|
overflowX: "auto",
|
|
5775
5775
|
position: "relative"
|
|
5776
|
-
},
|
|
5776
|
+
}, qo = (e) => ({
|
|
5777
5777
|
height: "100%",
|
|
5778
5778
|
position: "absolute",
|
|
5779
5779
|
top: 0,
|
|
@@ -5876,7 +5876,7 @@ const fv = ({ children: e }) => {
|
|
|
5876
5876
|
), a = An(i, !0, ve("skipAnimationFrameInResizeObserver"));
|
|
5877
5877
|
return K.useEffect(() => {
|
|
5878
5878
|
t && (n(t.viewportHeight), r(t.itemHeight));
|
|
5879
|
-
}, [t, n, r]), /* @__PURE__ */ l.jsx("div", { "data-viewport-type": "element", ref: a, style:
|
|
5879
|
+
}, [t, n, r]), /* @__PURE__ */ l.jsx("div", { "data-viewport-type": "element", ref: a, style: qo(o), children: e });
|
|
5880
5880
|
}, hv = ({ children: e }) => {
|
|
5881
5881
|
const t = K.useContext(vu), n = Rt("windowViewportRect"), r = Rt("fixedItemHeight"), o = ve("customScrollParent"), s = Jc(
|
|
5882
5882
|
n,
|
|
@@ -5885,7 +5885,7 @@ const fv = ({ children: e }) => {
|
|
|
5885
5885
|
), i = ve("alignToBottom");
|
|
5886
5886
|
return K.useEffect(() => {
|
|
5887
5887
|
t && (r(t.itemHeight), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: 100 }));
|
|
5888
|
-
}, [t, n, r]), /* @__PURE__ */ l.jsx("div", { "data-viewport-type": "window", ref: s, style:
|
|
5888
|
+
}, [t, n, r]), /* @__PURE__ */ l.jsx("div", { "data-viewport-type": "window", ref: s, style: qo(i), children: e });
|
|
5889
5889
|
}, pv = ({ children: e }) => {
|
|
5890
5890
|
const t = ve("TopItemListComponent") || "div", n = ve("headerHeight"), r = { ...lv, marginTop: `${n}px` }, o = ve("context");
|
|
5891
5891
|
return /* @__PURE__ */ l.jsx(t, { style: r, ...ct(t, o), children: e });
|
|
@@ -6017,7 +6017,7 @@ const Nl = {
|
|
|
6017
6017
|
offsetBottom: 0,
|
|
6018
6018
|
offsetTop: 0,
|
|
6019
6019
|
top: 0
|
|
6020
|
-
}, { ceil: jl, floor:
|
|
6020
|
+
}, { ceil: jl, floor: Io, max: gr, min: Ms, round: Al } = Math;
|
|
6021
6021
|
function kl(e, t, n) {
|
|
6022
6022
|
return Array.from({ length: t - e + 1 }).map((r, o) => ({ data: n === null ? null : n[o + e], index: o + e }));
|
|
6023
6023
|
}
|
|
@@ -6142,7 +6142,7 @@ const Tv = /* @__PURE__ */ Ie(
|
|
|
6142
6142
|
}
|
|
6143
6143
|
const rt = Ru(tt, Fe, xe);
|
|
6144
6144
|
let st, Qe;
|
|
6145
|
-
ue ? Z === 0 && ne === 0 && Oe > 0 ? (st = 0, Qe = Oe - 1) : (st = rt *
|
|
6145
|
+
ue ? Z === 0 && ne === 0 && Oe > 0 ? (st = 0, Qe = Oe - 1) : (st = rt * Io((Z + H) / (ie + H)), Qe = rt * jl((ne + H) / (ie + H)) - 1, Qe = Ms(P - 1, gr(Qe, rt - 1)), st = Ms(Qe, gr(0, st))) : (st = 0, Qe = -1);
|
|
6146
6146
|
const At = kl(st, Qe, Le), { bottom: qe, top: it } = Pl(je, ae, se, At), Ve = jl(P / rt), at = Ve * ie + (Ve - 1) * H - qe;
|
|
6147
6147
|
return { bottom: qe, itemHeight: ie, items: At, itemWidth: Fe, offsetBottom: at, offsetTop: it, top: it };
|
|
6148
6148
|
}
|
|
@@ -6216,7 +6216,7 @@ const Tv = /* @__PURE__ */ Ie(
|
|
|
6216
6216
|
re(([P, Z, ne, ae, se]) => {
|
|
6217
6217
|
const je = lu(P), { align: Le, behavior: Oe, offset: ue } = je;
|
|
6218
6218
|
let Pe = je.index;
|
|
6219
|
-
Pe === "LAST" && (Pe = ae - 1), Pe = gr(0, Pe,
|
|
6219
|
+
Pe === "LAST" && (Pe = ae - 1), Pe = gr(0, Pe, Ms(ae - 1, Pe));
|
|
6220
6220
|
let xe = hi(Z, se, ne, Pe);
|
|
6221
6221
|
return Le === "end" ? xe = Al(xe - Z.height + ne.height) : Le === "center" && (xe = Al(xe - Z.height / 2 + ne.height / 2)), ue && (xe += ue), { behavior: Oe, top: xe };
|
|
6222
6222
|
})
|
|
@@ -6281,7 +6281,7 @@ const Tv = /* @__PURE__ */ Ie(
|
|
|
6281
6281
|
$e(Gi, ft, Br, pu, pn, Ki, hn)
|
|
6282
6282
|
);
|
|
6283
6283
|
function Ru(e, t, n) {
|
|
6284
|
-
return gr(1,
|
|
6284
|
+
return gr(1, Io((e + n) / (Io(t) + n)));
|
|
6285
6285
|
}
|
|
6286
6286
|
function Pl(e, t, n, r) {
|
|
6287
6287
|
const { height: o } = n;
|
|
@@ -6291,7 +6291,7 @@ function Pl(e, t, n, r) {
|
|
|
6291
6291
|
return { bottom: hi(e, t, n, r[r.length - 1].index) + o, top: s };
|
|
6292
6292
|
}
|
|
6293
6293
|
function hi(e, t, n, r) {
|
|
6294
|
-
const o = Ru(e.width, n.width, t.column), s =
|
|
6294
|
+
const o = Ru(e.width, n.width, t.column), s = Io(r / o), i = s * n.height + gr(0, s - 1) * t.row;
|
|
6295
6295
|
return i > 0 ? i + t.row : i;
|
|
6296
6296
|
}
|
|
6297
6297
|
const Rv = /* @__PURE__ */ Ie(() => {
|
|
@@ -6366,7 +6366,7 @@ const Rv = /* @__PURE__ */ Ie(() => {
|
|
|
6366
6366
|
width: e.itemWidth
|
|
6367
6367
|
},
|
|
6368
6368
|
w
|
|
6369
|
-
) : /* @__PURE__ */
|
|
6369
|
+
) : /* @__PURE__ */ to(
|
|
6370
6370
|
a,
|
|
6371
6371
|
{
|
|
6372
6372
|
...ct(a, d),
|
|
@@ -6416,12 +6416,12 @@ const Rv = /* @__PURE__ */ Ie(() => {
|
|
|
6416
6416
|
);
|
|
6417
6417
|
return K.useEffect(() => {
|
|
6418
6418
|
t && (r({ height: t.viewportHeight, width: t.viewportWidth }), n({ height: t.itemHeight, width: t.itemWidth }));
|
|
6419
|
-
}, [t, r, n]), /* @__PURE__ */ l.jsx("div", { ref: o, style:
|
|
6419
|
+
}, [t, r, n]), /* @__PURE__ */ l.jsx("div", { ref: o, style: qo(!1), children: e });
|
|
6420
6420
|
}, kv = ({ children: e }) => {
|
|
6421
6421
|
const t = K.useContext(bu), n = Et("windowViewportRect"), r = Et("itemDimensions"), o = He("customScrollParent"), s = Jc(n, o, !1);
|
|
6422
6422
|
return K.useEffect(() => {
|
|
6423
6423
|
t && (r({ height: t.itemHeight, width: t.itemWidth }), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: t.viewportWidth }));
|
|
6424
|
-
}, [t, n, r]), /* @__PURE__ */ l.jsx("div", { ref: s, style:
|
|
6424
|
+
}, [t, n, r]), /* @__PURE__ */ l.jsx("div", { ref: s, style: qo(!1), children: e });
|
|
6425
6425
|
}, Pv = /* @__PURE__ */ K.memo(function({ ...e }) {
|
|
6426
6426
|
const t = He("useWindowScroll"), n = He("customScrollParent"), r = n || t ? Ov : _v, o = n || t ? kv : Av, s = He("context");
|
|
6427
6427
|
return /* @__PURE__ */ l.jsx(r, { ...e, ...ct(r, s), children: /* @__PURE__ */ l.jsxs(o, { children: [
|
|
@@ -6667,7 +6667,7 @@ var Hv = [
|
|
|
6667
6667
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
6668
6668
|
}, {});
|
|
6669
6669
|
function Nu(e, t) {
|
|
6670
|
-
e &&
|
|
6670
|
+
e && Bo.flushSync(() => e.dispatchEvent(t));
|
|
6671
6671
|
}
|
|
6672
6672
|
function zv(e, t) {
|
|
6673
6673
|
return f.useReducer((n, r) => t[n][r] ?? n, e);
|
|
@@ -6742,7 +6742,7 @@ function Dt(e) {
|
|
|
6742
6742
|
n((r) => r ?? String(Gv++));
|
|
6743
6743
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
6744
6744
|
}
|
|
6745
|
-
var
|
|
6745
|
+
var Xo = "Collapsible", [Kv, cR] = Ht(Xo), [Yv, Zi] = Kv(Xo), ju = f.forwardRef(
|
|
6746
6746
|
(e, t) => {
|
|
6747
6747
|
const {
|
|
6748
6748
|
__scopeCollapsible: n,
|
|
@@ -6755,7 +6755,7 @@ var Jo = "Collapsible", [Kv, cR] = Ht(Jo), [Yv, Zi] = Kv(Jo), ju = f.forwardRef(
|
|
|
6755
6755
|
prop: r,
|
|
6756
6756
|
defaultProp: o ?? !1,
|
|
6757
6757
|
onChange: i,
|
|
6758
|
-
caller:
|
|
6758
|
+
caller: Xo
|
|
6759
6759
|
});
|
|
6760
6760
|
return /* @__PURE__ */ l.jsx(
|
|
6761
6761
|
Yv,
|
|
@@ -6778,7 +6778,7 @@ var Jo = "Collapsible", [Kv, cR] = Ht(Jo), [Yv, Zi] = Kv(Jo), ju = f.forwardRef(
|
|
|
6778
6778
|
);
|
|
6779
6779
|
}
|
|
6780
6780
|
);
|
|
6781
|
-
ju.displayName =
|
|
6781
|
+
ju.displayName = Xo;
|
|
6782
6782
|
var Au = "CollapsibleTrigger", ku = f.forwardRef(
|
|
6783
6783
|
(e, t) => {
|
|
6784
6784
|
const { __scopeCollapsible: n, ...r } = e, o = Zi(Au, n);
|
|
@@ -6856,12 +6856,12 @@ const Ml = Jv, Dl = ku, Pu = new URL("data:video/mp2t;base64,Ly8vIDxyZWZlcmVuY2U
|
|
|
6856
6856
|
if (typeof navigator > "u") return !1;
|
|
6857
6857
|
const e = navigator.userAgent.toLowerCase();
|
|
6858
6858
|
return e.includes("safari") && !e.includes("chrome") && !e.includes("android");
|
|
6859
|
-
})(),
|
|
6859
|
+
})(), Jo = Zv && !(Qv && eb), ta = (e) => typeof e == "object" && e !== null, Ds = (e) => typeof e == "function" ? e : ta(e) && typeof e.parse == "function" ? e.parse : null;
|
|
6860
6860
|
let qr = null;
|
|
6861
6861
|
async function Ll(e) {
|
|
6862
6862
|
try {
|
|
6863
6863
|
qr || (qr = import("./marked.esm-BES7aiR_.js"));
|
|
6864
|
-
const t = await qr, n = ta(t) ? t : {}, r =
|
|
6864
|
+
const t = await qr, n = ta(t) ? t : {}, r = Ds(n.parse) ?? Ds(n.marked) ?? Ds(n.default);
|
|
6865
6865
|
return r ? r(e) : "";
|
|
6866
6866
|
} catch (t) {
|
|
6867
6867
|
throw qr = null, t;
|
|
@@ -6870,7 +6870,7 @@ async function Ll(e) {
|
|
|
6870
6870
|
const tb = (e) => ta(e) && typeof e.highlightElement == "function" ? { highlightElement: e.highlightElement } : null;
|
|
6871
6871
|
console.log("[MarkdownContent] worker url", xr);
|
|
6872
6872
|
const vr = [];
|
|
6873
|
-
let
|
|
6873
|
+
let lo = !1;
|
|
6874
6874
|
const _u = {
|
|
6875
6875
|
addEventListener: () => {
|
|
6876
6876
|
},
|
|
@@ -6891,7 +6891,7 @@ function pi(e) {
|
|
|
6891
6891
|
an.removeEventListener("error", Fl);
|
|
6892
6892
|
} catch {
|
|
6893
6893
|
}
|
|
6894
|
-
an = e,
|
|
6894
|
+
an = e, lo = !0;
|
|
6895
6895
|
try {
|
|
6896
6896
|
an.addEventListener("error", Fl);
|
|
6897
6897
|
} catch (t) {
|
|
@@ -6911,7 +6911,7 @@ function pi(e) {
|
|
|
6911
6911
|
}
|
|
6912
6912
|
}
|
|
6913
6913
|
function nb(e) {
|
|
6914
|
-
if (!
|
|
6914
|
+
if (!Jo)
|
|
6915
6915
|
return null;
|
|
6916
6916
|
const t = e.indexOf("data:");
|
|
6917
6917
|
if (t === -1)
|
|
@@ -6932,7 +6932,7 @@ function nb(e) {
|
|
|
6932
6932
|
}
|
|
6933
6933
|
}
|
|
6934
6934
|
async function rb(e) {
|
|
6935
|
-
if (
|
|
6935
|
+
if (Jo)
|
|
6936
6936
|
try {
|
|
6937
6937
|
let t = "";
|
|
6938
6938
|
const n = await fetch(e);
|
|
@@ -6974,7 +6974,7 @@ function ob() {
|
|
|
6974
6974
|
console.warn("[MarkdownContent] worker constructor failed, will try fetch+blob fallback", e), rb(xr);
|
|
6975
6975
|
}
|
|
6976
6976
|
}
|
|
6977
|
-
|
|
6977
|
+
Jo ? ob() : console.warn("[MarkdownContent] module workers not supported; falling back to main-thread markdown parsing");
|
|
6978
6978
|
const dr = /* @__PURE__ */ new Map();
|
|
6979
6979
|
function sb(e, t = !1) {
|
|
6980
6980
|
if (t) {
|
|
@@ -6998,7 +6998,7 @@ function ib(e, t) {
|
|
|
6998
6998
|
};
|
|
6999
6999
|
}, [e, t]), n;
|
|
7000
7000
|
}
|
|
7001
|
-
function
|
|
7001
|
+
function Ls({
|
|
7002
7002
|
content: e,
|
|
7003
7003
|
className: t = "",
|
|
7004
7004
|
fallback: n = /* @__PURE__ */ l.jsx("div", { "aria-busy": !0, children: "Rendering…" }),
|
|
@@ -7017,7 +7017,7 @@ function Xr({
|
|
|
7017
7017
|
v.html !== c && u(v.html);
|
|
7018
7018
|
return;
|
|
7019
7019
|
}
|
|
7020
|
-
if (v && v.html !== c && u(v.html), !
|
|
7020
|
+
if (v && v.html !== c && u(v.html), !Jo) {
|
|
7021
7021
|
let S = !1;
|
|
7022
7022
|
return (async () => {
|
|
7023
7023
|
try {
|
|
@@ -7067,8 +7067,8 @@ function Xr({
|
|
|
7067
7067
|
}, s);
|
|
7068
7068
|
h.current.push({ type: "timeout", id: S });
|
|
7069
7069
|
};
|
|
7070
|
-
|
|
7071
|
-
const C = ((S, I, N) => I ? N ? S > 2e4 ? 15e3 : S > 8e3 ? 8e3 : S > 2e3 ? 3e3 : 1e3 : S > 2e4 ? 1e4 : S > 8e3 ? 5e3 : S > 2e3 ? 2e3 : 600 : Math.min(15e3, 2e3 + Math.floor(S * 0.5)))(i.length,
|
|
7070
|
+
lo ? y() : vr.push(y);
|
|
7071
|
+
const C = ((S, I, N) => I ? N ? S > 2e4 ? 15e3 : S > 8e3 ? 8e3 : S > 2e3 ? 3e3 : 1e3 : S > 2e4 ? 1e4 : S > 8e3 ? 5e3 : S > 2e3 ? 2e3 : 600 : Math.min(15e3, 2e3 + Math.floor(S * 0.5)))(i.length, lo, r), T = window.setTimeout(async () => {
|
|
7072
7072
|
if (!g) {
|
|
7073
7073
|
console.warn("[MarkdownContent] worker timeout (ms=" + C + "), falling back to main-thread parse for", a);
|
|
7074
7074
|
try {
|
|
@@ -7080,7 +7080,7 @@ function Xr({
|
|
|
7080
7080
|
}
|
|
7081
7081
|
}, C);
|
|
7082
7082
|
return () => {
|
|
7083
|
-
if (x = !1, clearTimeout(T), an.removeEventListener("message", b), d.current === p && (d.current = null), !
|
|
7083
|
+
if (x = !1, clearTimeout(T), an.removeEventListener("message", b), d.current === p && (d.current = null), !lo) {
|
|
7084
7084
|
const S = vr.indexOf(y);
|
|
7085
7085
|
S >= 0 && vr.splice(S, 1);
|
|
7086
7086
|
}
|
|
@@ -7208,11 +7208,11 @@ const Bs = /* @__PURE__ */ new Map(), $l = (e) => {
|
|
|
7208
7208
|
toasts: e.toasts.filter((n) => n.id !== t.toastId)
|
|
7209
7209
|
};
|
|
7210
7210
|
}
|
|
7211
|
-
},
|
|
7212
|
-
let
|
|
7211
|
+
}, co = [];
|
|
7212
|
+
let uo = { toasts: [] };
|
|
7213
7213
|
function br(e) {
|
|
7214
|
-
|
|
7215
|
-
t(
|
|
7214
|
+
uo = db(uo, e), co.forEach((t) => {
|
|
7215
|
+
t(uo);
|
|
7216
7216
|
});
|
|
7217
7217
|
}
|
|
7218
7218
|
function fb({ ...e }) {
|
|
@@ -7237,10 +7237,10 @@ function fb({ ...e }) {
|
|
|
7237
7237
|
};
|
|
7238
7238
|
}
|
|
7239
7239
|
function na() {
|
|
7240
|
-
const [e, t] = f.useState(
|
|
7241
|
-
return f.useEffect(() => (
|
|
7242
|
-
const n =
|
|
7243
|
-
n > -1 &&
|
|
7240
|
+
const [e, t] = f.useState(uo);
|
|
7241
|
+
return f.useEffect(() => (co.push(t), () => {
|
|
7242
|
+
const n = co.indexOf(t);
|
|
7243
|
+
n > -1 && co.splice(n, 1);
|
|
7244
7244
|
}), [e]), {
|
|
7245
7245
|
...e,
|
|
7246
7246
|
toast: fb,
|
|
@@ -7381,7 +7381,7 @@ function Du(e, t, n, { discrete: r }) {
|
|
|
7381
7381
|
const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
7382
7382
|
t && o.addEventListener(e, t, { once: !0 }), r ? Nu(o, s) : o.dispatchEvent(s);
|
|
7383
7383
|
}
|
|
7384
|
-
var $s = "focusScope.autoFocusOnMount", Hs = "focusScope.autoFocusOnUnmount", Ul = { bubbles: !1, cancelable: !0 }, yb = "FocusScope",
|
|
7384
|
+
var $s = "focusScope.autoFocusOnMount", Hs = "focusScope.autoFocusOnUnmount", Ul = { bubbles: !1, cancelable: !0 }, yb = "FocusScope", Zo = f.forwardRef((e, t) => {
|
|
7385
7385
|
const {
|
|
7386
7386
|
loop: n = !1,
|
|
7387
7387
|
trapped: r = !1,
|
|
@@ -7447,7 +7447,7 @@ var $s = "focusScope.autoFocusOnMount", Hs = "focusScope.autoFocusOnUnmount", Ul
|
|
|
7447
7447
|
);
|
|
7448
7448
|
return /* @__PURE__ */ l.jsx(me.div, { tabIndex: -1, ...i, ref: m, onKeyDown: x });
|
|
7449
7449
|
});
|
|
7450
|
-
|
|
7450
|
+
Zo.displayName = yb;
|
|
7451
7451
|
function Sb(e, { select: t = !1 } = {}) {
|
|
7452
7452
|
const n = document.activeElement;
|
|
7453
7453
|
for (const r of e)
|
|
@@ -7510,14 +7510,14 @@ function Gl(e, t) {
|
|
|
7510
7510
|
function Ib(e) {
|
|
7511
7511
|
return e.filter((t) => t.tagName !== "A");
|
|
7512
7512
|
}
|
|
7513
|
-
var Nb = "Portal",
|
|
7513
|
+
var Nb = "Portal", Qo = f.forwardRef((e, t) => {
|
|
7514
7514
|
var a;
|
|
7515
7515
|
const { container: n, ...r } = e, [o, s] = f.useState(!1);
|
|
7516
7516
|
nt(() => s(!0), []);
|
|
7517
7517
|
const i = n || o && ((a = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : a.body);
|
|
7518
7518
|
return i ? yc.createPortal(/* @__PURE__ */ l.jsx(me.div, { ...r, ref: t }), i) : null;
|
|
7519
7519
|
});
|
|
7520
|
-
|
|
7520
|
+
Qo.displayName = Nb;
|
|
7521
7521
|
var zs = 0;
|
|
7522
7522
|
function ra() {
|
|
7523
7523
|
f.useEffect(() => {
|
|
@@ -7553,7 +7553,7 @@ function jb(e, t, n) {
|
|
|
7553
7553
|
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
7554
7554
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
7555
7555
|
}
|
|
7556
|
-
var
|
|
7556
|
+
var fo = "right-scroll-bar-position", ho = "width-before-scroll-bar", Ab = "with-scroll-bars-hidden", kb = "--removed-body-scroll-bar-size";
|
|
7557
7557
|
function Us(e, t) {
|
|
7558
7558
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
7559
7559
|
}
|
|
@@ -7675,7 +7675,7 @@ function Fb(e, t) {
|
|
|
7675
7675
|
return e.useMedium(t), Bu;
|
|
7676
7676
|
}
|
|
7677
7677
|
var $u = Lb(), Ws = function() {
|
|
7678
|
-
},
|
|
7678
|
+
}, es = f.forwardRef(function(e, t) {
|
|
7679
7679
|
var n = f.useRef(null), r = f.useState({
|
|
7680
7680
|
onScrollCapture: Ws,
|
|
7681
7681
|
onWheelCapture: Ws,
|
|
@@ -7688,14 +7688,14 @@ var $u = Lb(), Ws = function() {
|
|
|
7688
7688
|
i ? f.cloneElement(f.Children.only(a), Vt(Vt({}, S), { ref: T })) : f.createElement(w, Vt({}, S, { className: c, ref: T }), a)
|
|
7689
7689
|
);
|
|
7690
7690
|
});
|
|
7691
|
-
|
|
7691
|
+
es.defaultProps = {
|
|
7692
7692
|
enabled: !0,
|
|
7693
7693
|
removeScrollBar: !0,
|
|
7694
7694
|
inert: !1
|
|
7695
7695
|
};
|
|
7696
|
-
|
|
7697
|
-
fullWidth:
|
|
7698
|
-
zeroRight:
|
|
7696
|
+
es.classNames = {
|
|
7697
|
+
fullWidth: ho,
|
|
7698
|
+
zeroRight: fo
|
|
7699
7699
|
};
|
|
7700
7700
|
var Bb = function() {
|
|
7701
7701
|
if (typeof __webpack_nonce__ < "u")
|
|
@@ -7785,19 +7785,19 @@ var Ub = function() {
|
|
|
7785
7785
|
].filter(Boolean).join(""), `
|
|
7786
7786
|
}
|
|
7787
7787
|
|
|
7788
|
-
.`).concat(
|
|
7788
|
+
.`).concat(fo, ` {
|
|
7789
7789
|
right: `).concat(a, "px ").concat(r, `;
|
|
7790
7790
|
}
|
|
7791
7791
|
|
|
7792
|
-
.`).concat(
|
|
7792
|
+
.`).concat(ho, ` {
|
|
7793
7793
|
margin-right: `).concat(a, "px ").concat(r, `;
|
|
7794
7794
|
}
|
|
7795
7795
|
|
|
7796
|
-
.`).concat(
|
|
7796
|
+
.`).concat(fo, " .").concat(fo, ` {
|
|
7797
7797
|
right: 0 `).concat(r, `;
|
|
7798
7798
|
}
|
|
7799
7799
|
|
|
7800
|
-
.`).concat(
|
|
7800
|
+
.`).concat(ho, " .").concat(ho, ` {
|
|
7801
7801
|
margin-right: 0 `).concat(r, `;
|
|
7802
7802
|
}
|
|
7803
7803
|
|
|
@@ -7825,12 +7825,12 @@ var Ub = function() {
|
|
|
7825
7825
|
}, gi = !1;
|
|
7826
7826
|
if (typeof window < "u")
|
|
7827
7827
|
try {
|
|
7828
|
-
var
|
|
7828
|
+
var Xr = Object.defineProperty({}, "passive", {
|
|
7829
7829
|
get: function() {
|
|
7830
7830
|
return gi = !0, !0;
|
|
7831
7831
|
}
|
|
7832
7832
|
});
|
|
7833
|
-
window.addEventListener("test",
|
|
7833
|
+
window.addEventListener("test", Xr, Xr), window.removeEventListener("test", Xr, Xr);
|
|
7834
7834
|
} catch {
|
|
7835
7835
|
gi = !1;
|
|
7836
7836
|
}
|
|
@@ -7897,7 +7897,7 @@ var Fn = gi ? { passive: !1 } : !1, Zb = function(e) {
|
|
|
7897
7897
|
c && (t.contains(a) || t === a)
|
|
7898
7898
|
);
|
|
7899
7899
|
return (d && Math.abs(h) < 1 || !d && Math.abs(m) < 1) && (u = !0), u;
|
|
7900
|
-
},
|
|
7900
|
+
}, Jr = function(e) {
|
|
7901
7901
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
7902
7902
|
}, Jl = function(e) {
|
|
7903
7903
|
return [e.deltaX, e.deltaY];
|
|
@@ -7931,7 +7931,7 @@ function lw(e) {
|
|
|
7931
7931
|
var a = f.useCallback(function(g, p) {
|
|
7932
7932
|
if ("touches" in g && g.touches.length === 2 || g.type === "wheel" && g.ctrlKey)
|
|
7933
7933
|
return !i.current.allowPinchZoom;
|
|
7934
|
-
var b =
|
|
7934
|
+
var b = Jr(g), w = n.current, y = "deltaX" in g ? g.deltaX : w[0] - b[0], E = "deltaY" in g ? g.deltaY : w[1] - b[1], C, T = g.target, S = Math.abs(y) > Math.abs(E) ? "h" : "v";
|
|
7935
7935
|
if ("touches" in g && S === "h" && T.type === "range")
|
|
7936
7936
|
return !1;
|
|
7937
7937
|
var I = Xl(S, T);
|
|
@@ -7946,7 +7946,7 @@ function lw(e) {
|
|
|
7946
7946
|
}, []), c = f.useCallback(function(g) {
|
|
7947
7947
|
var p = g;
|
|
7948
7948
|
if (!(!Bn.length || Bn[Bn.length - 1] !== s)) {
|
|
7949
|
-
var b = "deltaY" in p ? Jl(p) :
|
|
7949
|
+
var b = "deltaY" in p ? Jl(p) : Jr(p), w = t.current.filter(function(C) {
|
|
7950
7950
|
return C.name === p.type && (C.target === p.target || p.target === C.shadowParent) && sw(C.delta, b);
|
|
7951
7951
|
})[0];
|
|
7952
7952
|
if (w && w.should) {
|
|
@@ -7968,11 +7968,11 @@ function lw(e) {
|
|
|
7968
7968
|
});
|
|
7969
7969
|
}, 1);
|
|
7970
7970
|
}, []), d = f.useCallback(function(g) {
|
|
7971
|
-
n.current =
|
|
7971
|
+
n.current = Jr(g), r.current = void 0;
|
|
7972
7972
|
}, []), h = f.useCallback(function(g) {
|
|
7973
7973
|
u(g.type, Jl(g), g.target, a(g, e.lockRef.current));
|
|
7974
7974
|
}, []), m = f.useCallback(function(g) {
|
|
7975
|
-
u(g.type,
|
|
7975
|
+
u(g.type, Jr(g), g.target, a(g, e.lockRef.current));
|
|
7976
7976
|
}, []);
|
|
7977
7977
|
f.useEffect(function() {
|
|
7978
7978
|
return Bn.push(s), e.setCallbacks({
|
|
@@ -7999,16 +7999,16 @@ function cw(e) {
|
|
|
7999
7999
|
return t;
|
|
8000
8000
|
}
|
|
8001
8001
|
const uw = Fb($u, lw);
|
|
8002
|
-
var
|
|
8003
|
-
return f.createElement(
|
|
8002
|
+
var ts = f.forwardRef(function(e, t) {
|
|
8003
|
+
return f.createElement(es, Vt({}, e, { ref: t, sideCar: uw }));
|
|
8004
8004
|
});
|
|
8005
|
-
|
|
8005
|
+
ts.classNames = es.classNames;
|
|
8006
8006
|
var dw = function(e) {
|
|
8007
8007
|
if (typeof document > "u")
|
|
8008
8008
|
return null;
|
|
8009
8009
|
var t = Array.isArray(e) ? e[0] : e;
|
|
8010
8010
|
return t.ownerDocument.body;
|
|
8011
|
-
}, $n = /* @__PURE__ */ new WeakMap(),
|
|
8011
|
+
}, $n = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), Qr = {}, Gs = 0, Vu = function(e) {
|
|
8012
8012
|
return e && (e.host || Vu(e.parentNode));
|
|
8013
8013
|
}, fw = function(e, t) {
|
|
8014
8014
|
return t.map(function(n) {
|
|
@@ -8021,8 +8021,8 @@ var dw = function(e) {
|
|
|
8021
8021
|
});
|
|
8022
8022
|
}, hw = function(e, t, n, r) {
|
|
8023
8023
|
var o = fw(t, Array.isArray(e) ? e : [e]);
|
|
8024
|
-
|
|
8025
|
-
var s =
|
|
8024
|
+
Qr[n] || (Qr[n] = /* @__PURE__ */ new WeakMap());
|
|
8025
|
+
var s = Qr[n], i = [], a = /* @__PURE__ */ new Set(), c = new Set(o), u = function(h) {
|
|
8026
8026
|
!h || a.has(h) || (a.add(h), u(h.parentNode));
|
|
8027
8027
|
};
|
|
8028
8028
|
o.forEach(u);
|
|
@@ -8033,7 +8033,7 @@ var dw = function(e) {
|
|
|
8033
8033
|
else
|
|
8034
8034
|
try {
|
|
8035
8035
|
var v = m.getAttribute(r), x = v !== null && v !== "false", g = ($n.get(m) || 0) + 1, p = (s.get(m) || 0) + 1;
|
|
8036
|
-
$n.set(m, g), s.set(m, p), i.push(m), g === 1 && x &&
|
|
8036
|
+
$n.set(m, g), s.set(m, p), i.push(m), g === 1 && x && Zr.set(m, !0), p === 1 && m.setAttribute(n, "true"), x || m.setAttribute(r, "true");
|
|
8037
8037
|
} catch (b) {
|
|
8038
8038
|
console.error("aria-hidden: cannot operate on ", m, b);
|
|
8039
8039
|
}
|
|
@@ -8042,8 +8042,8 @@ var dw = function(e) {
|
|
|
8042
8042
|
return d(t), a.clear(), Gs++, function() {
|
|
8043
8043
|
i.forEach(function(h) {
|
|
8044
8044
|
var m = $n.get(h) - 1, v = s.get(h) - 1;
|
|
8045
|
-
$n.set(h, m), s.set(h, v), m || (
|
|
8046
|
-
}), Gs--, Gs || ($n = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(),
|
|
8045
|
+
$n.set(h, m), s.set(h, v), m || (Zr.has(h) || h.removeAttribute(r), Zr.delete(h)), v || h.removeAttribute(n);
|
|
8046
|
+
}), Gs--, Gs || ($n = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), Qr = {});
|
|
8047
8047
|
};
|
|
8048
8048
|
}, oa = function(e, t, n) {
|
|
8049
8049
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -8051,7 +8051,7 @@ var dw = function(e) {
|
|
|
8051
8051
|
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), hw(r, o, n, "aria-hidden")) : function() {
|
|
8052
8052
|
return null;
|
|
8053
8053
|
};
|
|
8054
|
-
},
|
|
8054
|
+
}, ns = "Dialog", [Gu, uR] = Ht(ns), [pw, zt] = Gu(ns), Ku = (e) => {
|
|
8055
8055
|
const {
|
|
8056
8056
|
__scopeDialog: t,
|
|
8057
8057
|
children: n,
|
|
@@ -8063,7 +8063,7 @@ var dw = function(e) {
|
|
|
8063
8063
|
prop: r,
|
|
8064
8064
|
defaultProp: o ?? !1,
|
|
8065
8065
|
onChange: s,
|
|
8066
|
-
caller:
|
|
8066
|
+
caller: ns
|
|
8067
8067
|
});
|
|
8068
8068
|
return /* @__PURE__ */ l.jsx(
|
|
8069
8069
|
pw,
|
|
@@ -8082,7 +8082,7 @@ var dw = function(e) {
|
|
|
8082
8082
|
}
|
|
8083
8083
|
);
|
|
8084
8084
|
};
|
|
8085
|
-
Ku.displayName =
|
|
8085
|
+
Ku.displayName = ns;
|
|
8086
8086
|
var Yu = "DialogTrigger", qu = f.forwardRef(
|
|
8087
8087
|
(e, t) => {
|
|
8088
8088
|
const { __scopeDialog: n, ...r } = e, o = zt(Yu, n), s = Ce(t, o.triggerRef);
|
|
@@ -8106,23 +8106,23 @@ var sa = "DialogPortal", [mw, Xu] = Gu(sa, {
|
|
|
8106
8106
|
forceMount: void 0
|
|
8107
8107
|
}), Ju = (e) => {
|
|
8108
8108
|
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = zt(sa, t);
|
|
8109
|
-
return /* @__PURE__ */ l.jsx(mw, { scope: t, forceMount: n, children: f.Children.map(r, (i) => /* @__PURE__ */ l.jsx(xt, { present: n || s.open, children: /* @__PURE__ */ l.jsx(
|
|
8109
|
+
return /* @__PURE__ */ l.jsx(mw, { scope: t, forceMount: n, children: f.Children.map(r, (i) => /* @__PURE__ */ l.jsx(xt, { present: n || s.open, children: /* @__PURE__ */ l.jsx(Qo, { asChild: !0, container: o, children: i }) })) });
|
|
8110
8110
|
};
|
|
8111
8111
|
Ju.displayName = sa;
|
|
8112
|
-
var
|
|
8112
|
+
var No = "DialogOverlay", Zu = f.forwardRef(
|
|
8113
8113
|
(e, t) => {
|
|
8114
|
-
const n = Xu(
|
|
8114
|
+
const n = Xu(No, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = zt(No, e.__scopeDialog);
|
|
8115
8115
|
return s.modal ? /* @__PURE__ */ l.jsx(xt, { present: r || s.open, children: /* @__PURE__ */ l.jsx(xw, { ...o, ref: t }) }) : null;
|
|
8116
8116
|
}
|
|
8117
8117
|
);
|
|
8118
|
-
Zu.displayName =
|
|
8118
|
+
Zu.displayName = No;
|
|
8119
8119
|
var gw = Yn("DialogOverlay.RemoveScroll"), xw = f.forwardRef(
|
|
8120
8120
|
(e, t) => {
|
|
8121
|
-
const { __scopeDialog: n, ...r } = e, o = zt(
|
|
8121
|
+
const { __scopeDialog: n, ...r } = e, o = zt(No, n);
|
|
8122
8122
|
return (
|
|
8123
8123
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
8124
8124
|
// ie. when `Overlay` and `Content` are siblings
|
|
8125
|
-
/* @__PURE__ */ l.jsx(
|
|
8125
|
+
/* @__PURE__ */ l.jsx(ts, { as: gw, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ l.jsx(
|
|
8126
8126
|
me.div,
|
|
8127
8127
|
{
|
|
8128
8128
|
"data-state": aa(o.open),
|
|
@@ -8196,7 +8196,7 @@ var vw = f.forwardRef(
|
|
|
8196
8196
|
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...i } = e, a = zt(En, n), c = f.useRef(null), u = Ce(t, c);
|
|
8197
8197
|
return ra(), /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
8198
8198
|
/* @__PURE__ */ l.jsx(
|
|
8199
|
-
|
|
8199
|
+
Zo,
|
|
8200
8200
|
{
|
|
8201
8201
|
asChild: !0,
|
|
8202
8202
|
loop: !0,
|
|
@@ -8276,9 +8276,9 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
8276
8276
|
const o = (s = e.current) == null ? void 0 : s.getAttribute("aria-describedby");
|
|
8277
8277
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
8278
8278
|
}, [r, e, t]), null;
|
|
8279
|
-
}, ld = Ku, Cw = qu, cd = Ju,
|
|
8279
|
+
}, ld = Ku, Cw = qu, cd = Ju, rs = Zu, os = Qu, Sn = td, ss = rd, ud = sd;
|
|
8280
8280
|
const Tw = ld, Rw = cd, dd = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
|
|
8281
|
-
|
|
8281
|
+
rs,
|
|
8282
8282
|
{
|
|
8283
8283
|
ref: n,
|
|
8284
8284
|
className: D(
|
|
@@ -8288,7 +8288,7 @@ const Tw = ld, Rw = cd, dd = f.forwardRef(({ className: e, ...t }, n) => /* @__P
|
|
|
8288
8288
|
...t
|
|
8289
8289
|
}
|
|
8290
8290
|
));
|
|
8291
|
-
dd.displayName =
|
|
8291
|
+
dd.displayName = rs.displayName;
|
|
8292
8292
|
const fd = f.forwardRef(({ className: e, children: t, ...n }, r) => {
|
|
8293
8293
|
const o = f.useMemo(() => {
|
|
8294
8294
|
let s = !1;
|
|
@@ -8308,7 +8308,7 @@ const fd = f.forwardRef(({ className: e, children: t, ...n }, r) => {
|
|
|
8308
8308
|
return /* @__PURE__ */ l.jsxs(Rw, { children: [
|
|
8309
8309
|
/* @__PURE__ */ l.jsx(dd, {}),
|
|
8310
8310
|
/* @__PURE__ */ l.jsxs(
|
|
8311
|
-
|
|
8311
|
+
os,
|
|
8312
8312
|
{
|
|
8313
8313
|
ref: r,
|
|
8314
8314
|
className: D(
|
|
@@ -8328,7 +8328,7 @@ const fd = f.forwardRef(({ className: e, children: t, ...n }, r) => {
|
|
|
8328
8328
|
)
|
|
8329
8329
|
] });
|
|
8330
8330
|
});
|
|
8331
|
-
fd.displayName =
|
|
8331
|
+
fd.displayName = os.displayName;
|
|
8332
8332
|
const hd = ({
|
|
8333
8333
|
className: e,
|
|
8334
8334
|
...t
|
|
@@ -8356,14 +8356,14 @@ const pd = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
|
|
|
8356
8356
|
));
|
|
8357
8357
|
pd.displayName = Sn.displayName;
|
|
8358
8358
|
const Ew = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
|
|
8359
|
-
|
|
8359
|
+
ss,
|
|
8360
8360
|
{
|
|
8361
8361
|
ref: n,
|
|
8362
8362
|
className: D("text-sm text-muted-foreground", e),
|
|
8363
8363
|
...t
|
|
8364
8364
|
}
|
|
8365
8365
|
));
|
|
8366
|
-
Ew.displayName =
|
|
8366
|
+
Ew.displayName = ss.displayName;
|
|
8367
8367
|
function Iw({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
|
|
8368
8368
|
const [s, i] = de(!1), [a, c] = de(null), [u, d] = de(null), { toast: h } = na();
|
|
8369
8369
|
Ue(() => {
|
|
@@ -8472,7 +8472,7 @@ function Iw({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
|
|
|
8472
8472
|
/* @__PURE__ */ l.jsx("div", { className: "flex-1 overflow-hidden", children: g() })
|
|
8473
8473
|
] }) });
|
|
8474
8474
|
}
|
|
8475
|
-
const
|
|
8475
|
+
const po = "prose prose-sm max-w-none break-words dark:prose-invert prose-headings:break-words prose-p:break-words prose-li:break-words prose-td:break-words prose-th:break-words prose-a:break-all prose-code:break-words prose-blockquote:break-words";
|
|
8476
8476
|
function Nw({ className: e }) {
|
|
8477
8477
|
const [t, n] = de(0);
|
|
8478
8478
|
return Ue(() => {
|
|
@@ -8562,7 +8562,7 @@ const jw = K.memo(function({
|
|
|
8562
8562
|
}
|
|
8563
8563
|
}, se = () => {
|
|
8564
8564
|
const ue = D(
|
|
8565
|
-
"rounded-lg px-4 py-3 relative
|
|
8565
|
+
"rounded-lg px-4 py-3 relative min-w-0 max-w-full break-words",
|
|
8566
8566
|
O && "px-3 py-2 text-sm"
|
|
8567
8567
|
);
|
|
8568
8568
|
switch (_) {
|
|
@@ -8634,7 +8634,7 @@ const jw = K.memo(function({
|
|
|
8634
8634
|
if (z && S && !d) {
|
|
8635
8635
|
const xe = $w(t.content);
|
|
8636
8636
|
if (xe && kw(xe))
|
|
8637
|
-
return /* @__PURE__ */ l.jsx(
|
|
8637
|
+
return /* @__PURE__ */ l.jsx(Ls, { content: xe.trim(), hideFallbackDuringStreaming: !0 });
|
|
8638
8638
|
const H = Hn(t.content);
|
|
8639
8639
|
return /* @__PURE__ */ l.jsx("div", { className: "font-mono text-sm text-current", children: /* @__PURE__ */ l.jsx("pre", { className: D("whitespace-pre-wrap break-words text-current", O && "text-xs"), children: H }) });
|
|
8640
8640
|
}
|
|
@@ -8643,13 +8643,17 @@ const jw = K.memo(function({
|
|
|
8643
8643
|
r ? /* @__PURE__ */ l.jsxs("div", { className: "relative", children: [
|
|
8644
8644
|
(() => {
|
|
8645
8645
|
const xe = Ks(be);
|
|
8646
|
-
|
|
8647
|
-
|
|
8646
|
+
if (xe !== null)
|
|
8647
|
+
return /* @__PURE__ */ l.jsx(Ql, { data: xe });
|
|
8648
|
+
const H = _w(Pw(be));
|
|
8649
|
+
return /* @__PURE__ */ l.jsx(
|
|
8650
|
+
"pre",
|
|
8648
8651
|
{
|
|
8649
|
-
|
|
8650
|
-
|
|
8651
|
-
|
|
8652
|
-
|
|
8652
|
+
className: D(
|
|
8653
|
+
"whitespace-pre-wrap break-words font-sans text-sm leading-relaxed",
|
|
8654
|
+
O && "text-xs"
|
|
8655
|
+
),
|
|
8656
|
+
children: H
|
|
8653
8657
|
}
|
|
8654
8658
|
);
|
|
8655
8659
|
})(),
|
|
@@ -8661,7 +8665,7 @@ const jw = K.memo(function({
|
|
|
8661
8665
|
const H = oe.trim();
|
|
8662
8666
|
if (H.length > v)
|
|
8663
8667
|
return /* @__PURE__ */ l.jsxs(Ml, { open: N, onOpenChange: j, children: [
|
|
8664
|
-
/* @__PURE__ */ l.jsx("div", { className: D("text-sm text-[hsl(var(--chat-bubble-user-text))]", O && "text-xs"), children: N ? /* @__PURE__ */ l.jsx(
|
|
8668
|
+
/* @__PURE__ */ l.jsx("div", { className: D("text-sm text-[hsl(var(--chat-bubble-user-text))]", O && "text-xs"), children: N ? /* @__PURE__ */ l.jsx(Ls, { content: H, hideFallbackDuringStreaming: !0 }) : /* @__PURE__ */ l.jsxs("pre", { className: D("font-sans whitespace-pre-wrap break-words bg-transparent p-0 m-0 text-[hsl(var(--chat-bubble-user-text))]", O && "text-xs"), children: [
|
|
8665
8669
|
H.substring(0, v),
|
|
8666
8670
|
"..."
|
|
8667
8671
|
] }) }),
|
|
@@ -8685,7 +8689,7 @@ const jw = K.memo(function({
|
|
|
8685
8689
|
] });
|
|
8686
8690
|
}
|
|
8687
8691
|
return /* @__PURE__ */ l.jsx(
|
|
8688
|
-
|
|
8692
|
+
Ls,
|
|
8689
8693
|
{
|
|
8690
8694
|
content: oe.trim(),
|
|
8691
8695
|
isStreaming: r,
|
|
@@ -8911,11 +8915,11 @@ function Ks(e) {
|
|
|
8911
8915
|
}
|
|
8912
8916
|
function Ql({ data: e }) {
|
|
8913
8917
|
if (Array.isArray(e))
|
|
8914
|
-
return e.every((n) => n === null || ["string", "number", "boolean"].includes(typeof n)) ? /* @__PURE__ */ l.jsx("div", { className:
|
|
8918
|
+
return e.every((n) => n === null || ["string", "number", "boolean"].includes(typeof n)) ? /* @__PURE__ */ l.jsx("div", { className: po, children: /* @__PURE__ */ l.jsx("ul", { className: "list-disc pl-5", children: e.map((n, r) => /* @__PURE__ */ l.jsx("li", { children: String(n) }, r)) }) }) : /* @__PURE__ */ l.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: wr(e) });
|
|
8915
8919
|
if (e && typeof e == "object") {
|
|
8916
8920
|
const t = Array.isArray(e.distilled_facts) ? e.distilled_facts : null, n = Array.isArray(e.follow_up_queries) ? e.follow_up_queries : null, r = typeof e.is_sufficient == "boolean" ? e.is_sufficient : void 0;
|
|
8917
8921
|
if (t || n || typeof r == "boolean")
|
|
8918
|
-
return /* @__PURE__ */ l.jsxs("div", { className:
|
|
8922
|
+
return /* @__PURE__ */ l.jsxs("div", { className: po, children: [
|
|
8919
8923
|
typeof r == "boolean" && /* @__PURE__ */ l.jsxs("p", { children: [
|
|
8920
8924
|
/* @__PURE__ */ l.jsx("strong", { children: "Is sufficient:" }),
|
|
8921
8925
|
" ",
|
|
@@ -8931,7 +8935,7 @@ function Ql({ data: e }) {
|
|
|
8931
8935
|
] })
|
|
8932
8936
|
] });
|
|
8933
8937
|
const o = Object.entries(e);
|
|
8934
|
-
return /* @__PURE__ */ l.jsx("div", { className:
|
|
8938
|
+
return /* @__PURE__ */ l.jsx("div", { className: po, children: /* @__PURE__ */ l.jsx("dl", { className: "mt-0", children: o.map(([s, i]) => /* @__PURE__ */ l.jsxs("div", { className: "mb-1", children: [
|
|
8935
8939
|
/* @__PURE__ */ l.jsxs("dt", { className: "inline font-medium mr-1", children: [
|
|
8936
8940
|
s,
|
|
8937
8941
|
":"
|
|
@@ -8948,7 +8952,7 @@ function Ow(e) {
|
|
|
8948
8952
|
if (Array.isArray(e) && e.every((r) => r === null || ["string", "number", "boolean"].includes(typeof r)))
|
|
8949
8953
|
return e.join(", ");
|
|
8950
8954
|
try {
|
|
8951
|
-
return /* @__PURE__ */ l.jsx("code", { className: "text-xs", children: JSON.stringify(
|
|
8955
|
+
return /* @__PURE__ */ l.jsx("code", { className: "text-xs", children: JSON.stringify(jo(e)) });
|
|
8952
8956
|
} catch {
|
|
8953
8957
|
return String(e);
|
|
8954
8958
|
}
|
|
@@ -8956,12 +8960,12 @@ function Ow(e) {
|
|
|
8956
8960
|
function md(e) {
|
|
8957
8961
|
return !!(e && typeof e == "object" && (e.type === "file" || e.mimeType || e.filename || e.sourceType === "base64"));
|
|
8958
8962
|
}
|
|
8959
|
-
function
|
|
8963
|
+
function jo(e) {
|
|
8960
8964
|
if (typeof e == "string")
|
|
8961
8965
|
return e.length > 2e3 ? e.slice(0, 2e3) + "... [truncated]" : e;
|
|
8962
8966
|
if (e && typeof e == "object") {
|
|
8963
8967
|
if (Array.isArray(e)) {
|
|
8964
|
-
const n = e.map(
|
|
8968
|
+
const n = e.map(jo).filter((r) => r !== void 0);
|
|
8965
8969
|
return n.length ? n : void 0;
|
|
8966
8970
|
}
|
|
8967
8971
|
if (md(e)) return;
|
|
@@ -8971,7 +8975,7 @@ function Ao(e) {
|
|
|
8971
8975
|
if (n === "data" && typeof r == "string" && r.length > 100)
|
|
8972
8976
|
t[n] = `[base64 ${r.length} chars omitted]`;
|
|
8973
8977
|
else {
|
|
8974
|
-
const o =
|
|
8978
|
+
const o = jo(r);
|
|
8975
8979
|
o !== void 0 && (t[n] = o);
|
|
8976
8980
|
}
|
|
8977
8981
|
}
|
|
@@ -8983,7 +8987,7 @@ function wr(e) {
|
|
|
8983
8987
|
if (typeof e == "string") return e;
|
|
8984
8988
|
if (md(e)) return "";
|
|
8985
8989
|
try {
|
|
8986
|
-
const t =
|
|
8990
|
+
const t = jo(e);
|
|
8987
8991
|
return t === void 0 ? "" : typeof t == "string" ? t : JSON.stringify(t, null, 2);
|
|
8988
8992
|
} catch {
|
|
8989
8993
|
return "";
|
|
@@ -9073,7 +9077,7 @@ function Bw({ issues: e }) {
|
|
|
9073
9077
|
{ key: "viability", title: "Viability" },
|
|
9074
9078
|
{ key: "other", title: "Other" }
|
|
9075
9079
|
];
|
|
9076
|
-
return /* @__PURE__ */ l.jsx("div", { className:
|
|
9080
|
+
return /* @__PURE__ */ l.jsx("div", { className: po, children: t.map((n) => {
|
|
9077
9081
|
const r = e[n.key];
|
|
9078
9082
|
return !r || !r.length ? null : /* @__PURE__ */ l.jsxs("div", { className: "mb-4", children: [
|
|
9079
9083
|
/* @__PURE__ */ l.jsxs("h4", { className: "font-semibold mb-2", children: [
|
|
@@ -9259,7 +9263,7 @@ function Hw({
|
|
|
9259
9263
|
}
|
|
9260
9264
|
) });
|
|
9261
9265
|
}
|
|
9262
|
-
const
|
|
9266
|
+
const mo = 1e4;
|
|
9263
9267
|
function zw(e) {
|
|
9264
9268
|
if (typeof e != "string")
|
|
9265
9269
|
return String(e);
|
|
@@ -9287,7 +9291,7 @@ function zw(e) {
|
|
|
9287
9291
|
`).replace(/<li>(.*?)<\/li>/gi, `- $1
|
|
9288
9292
|
`).trim() : n.replace(/</g, "<").replace(/>/g, ">").trim();
|
|
9289
9293
|
}
|
|
9290
|
-
function Uw(e, t =
|
|
9294
|
+
function Uw(e, t = mo) {
|
|
9291
9295
|
if (!e || typeof e != "string")
|
|
9292
9296
|
throw new Error("Invalid content: must be a non-empty string");
|
|
9293
9297
|
if (e.length > t)
|
|
@@ -9339,11 +9343,11 @@ function la(e) {
|
|
|
9339
9343
|
];
|
|
9340
9344
|
}
|
|
9341
9345
|
var Vw = f.createContext(void 0);
|
|
9342
|
-
function
|
|
9346
|
+
function is(e) {
|
|
9343
9347
|
const t = f.useContext(Vw);
|
|
9344
9348
|
return e || t || "ltr";
|
|
9345
9349
|
}
|
|
9346
|
-
const Gw = ["top", "right", "bottom", "left"], un = Math.min, vt = Math.max,
|
|
9350
|
+
const Gw = ["top", "right", "bottom", "left"], un = Math.min, vt = Math.max, Ao = Math.round, eo = Math.floor, Yt = (e) => ({
|
|
9347
9351
|
x: e,
|
|
9348
9352
|
y: e
|
|
9349
9353
|
}), Kw = {
|
|
@@ -9384,10 +9388,10 @@ function Xw(e, t, n) {
|
|
|
9384
9388
|
n === void 0 && (n = !1);
|
|
9385
9389
|
const r = or(e), o = da(e), s = ua(o);
|
|
9386
9390
|
let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
9387
|
-
return t.reference[s] > t.floating[s] && (i =
|
|
9391
|
+
return t.reference[s] > t.floating[s] && (i = ko(i)), [i, ko(i)];
|
|
9388
9392
|
}
|
|
9389
9393
|
function Jw(e) {
|
|
9390
|
-
const t =
|
|
9394
|
+
const t = ko(e);
|
|
9391
9395
|
return [vi(e), t, vi(t)];
|
|
9392
9396
|
}
|
|
9393
9397
|
function vi(e) {
|
|
@@ -9411,7 +9415,7 @@ function ty(e, t, n, r) {
|
|
|
9411
9415
|
let s = ey(nn(e), n === "start", r);
|
|
9412
9416
|
return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(vi)))), s;
|
|
9413
9417
|
}
|
|
9414
|
-
function
|
|
9418
|
+
function ko(e) {
|
|
9415
9419
|
return e.replace(/left|right|bottom|top/g, (t) => Kw[t]);
|
|
9416
9420
|
}
|
|
9417
9421
|
function ny(e) {
|
|
@@ -9431,7 +9435,7 @@ function xd(e) {
|
|
|
9431
9435
|
left: e
|
|
9432
9436
|
};
|
|
9433
9437
|
}
|
|
9434
|
-
function
|
|
9438
|
+
function Po(e) {
|
|
9435
9439
|
const {
|
|
9436
9440
|
x: t,
|
|
9437
9441
|
y: n,
|
|
@@ -9574,7 +9578,7 @@ async function Er(e, t) {
|
|
|
9574
9578
|
elementContext: h = "floating",
|
|
9575
9579
|
altBoundary: m = !1,
|
|
9576
9580
|
padding: v = 0
|
|
9577
|
-
} = tn(t, e), x = xd(v), p = a[m ? h === "floating" ? "reference" : "floating" : h], b =
|
|
9581
|
+
} = tn(t, e), x = xd(v), p = a[m ? h === "floating" ? "reference" : "floating" : h], b = Po(await s.getClippingRect({
|
|
9578
9582
|
element: (n = await (s.isElement == null ? void 0 : s.isElement(p))) == null || n ? p : p.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)),
|
|
9579
9583
|
boundary: u,
|
|
9580
9584
|
rootBoundary: d,
|
|
@@ -9590,7 +9594,7 @@ async function Er(e, t) {
|
|
|
9590
9594
|
} : {
|
|
9591
9595
|
x: 1,
|
|
9592
9596
|
y: 1
|
|
9593
|
-
}, C =
|
|
9597
|
+
}, C = Po(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
9594
9598
|
elements: a,
|
|
9595
9599
|
rect: w,
|
|
9596
9600
|
offsetParent: y,
|
|
@@ -9664,7 +9668,7 @@ const oy = (e) => ({
|
|
|
9664
9668
|
} = tn(e, t);
|
|
9665
9669
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
9666
9670
|
return {};
|
|
9667
|
-
const b = nn(o), w = Kt(a), y = nn(a) === a, E = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), C = m || (y || !g ? [
|
|
9671
|
+
const b = nn(o), w = Kt(a), y = nn(a) === a, E = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), C = m || (y || !g ? [ko(a)] : Jw(a)), T = x !== "none";
|
|
9668
9672
|
!m && T && C.push(...ty(a, g, x, E));
|
|
9669
9673
|
const S = [a, ...C], I = await Er(t, p), N = [];
|
|
9670
9674
|
let j = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
@@ -9963,7 +9967,7 @@ const ly = function(e) {
|
|
|
9963
9967
|
}
|
|
9964
9968
|
};
|
|
9965
9969
|
};
|
|
9966
|
-
function
|
|
9970
|
+
function as() {
|
|
9967
9971
|
return typeof window < "u";
|
|
9968
9972
|
}
|
|
9969
9973
|
function sr(e) {
|
|
@@ -9978,16 +9982,16 @@ function Jt(e) {
|
|
|
9978
9982
|
return (t = (bd(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
9979
9983
|
}
|
|
9980
9984
|
function bd(e) {
|
|
9981
|
-
return
|
|
9985
|
+
return as() ? e instanceof Node || e instanceof yt(e).Node : !1;
|
|
9982
9986
|
}
|
|
9983
9987
|
function Ft(e) {
|
|
9984
|
-
return
|
|
9988
|
+
return as() ? e instanceof Element || e instanceof yt(e).Element : !1;
|
|
9985
9989
|
}
|
|
9986
9990
|
function qt(e) {
|
|
9987
|
-
return
|
|
9991
|
+
return as() ? e instanceof HTMLElement || e instanceof yt(e).HTMLElement : !1;
|
|
9988
9992
|
}
|
|
9989
9993
|
function sc(e) {
|
|
9990
|
-
return !
|
|
9994
|
+
return !as() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof yt(e).ShadowRoot;
|
|
9991
9995
|
}
|
|
9992
9996
|
const fy = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
9993
9997
|
function Hr(e) {
|
|
@@ -10004,7 +10008,7 @@ function py(e) {
|
|
|
10004
10008
|
return hy.has(sr(e));
|
|
10005
10009
|
}
|
|
10006
10010
|
const my = [":popover-open", ":modal"];
|
|
10007
|
-
function
|
|
10011
|
+
function ls(e) {
|
|
10008
10012
|
return my.some((t) => {
|
|
10009
10013
|
try {
|
|
10010
10014
|
return e.matches(t);
|
|
@@ -10023,7 +10027,7 @@ function by(e) {
|
|
|
10023
10027
|
for (; qt(t) && !Xn(t); ) {
|
|
10024
10028
|
if (fa(t))
|
|
10025
10029
|
return t;
|
|
10026
|
-
if (
|
|
10030
|
+
if (ls(t))
|
|
10027
10031
|
return null;
|
|
10028
10032
|
t = dn(t);
|
|
10029
10033
|
}
|
|
@@ -10039,7 +10043,7 @@ function Xn(e) {
|
|
|
10039
10043
|
function Bt(e) {
|
|
10040
10044
|
return yt(e).getComputedStyle(e);
|
|
10041
10045
|
}
|
|
10042
|
-
function
|
|
10046
|
+
function cs(e) {
|
|
10043
10047
|
return Ft(e) ? {
|
|
10044
10048
|
scrollLeft: e.scrollLeft,
|
|
10045
10049
|
scrollTop: e.scrollTop
|
|
@@ -10080,7 +10084,7 @@ function bi(e) {
|
|
|
10080
10084
|
function yd(e) {
|
|
10081
10085
|
const t = Bt(e);
|
|
10082
10086
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
10083
|
-
const o = qt(e), s = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, a =
|
|
10087
|
+
const o = qt(e), s = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, a = Ao(n) !== s || Ao(r) !== i;
|
|
10084
10088
|
return a && (n = s, r = i), {
|
|
10085
10089
|
width: n,
|
|
10086
10090
|
height: r,
|
|
@@ -10099,7 +10103,7 @@ function Gn(e) {
|
|
|
10099
10103
|
height: o,
|
|
10100
10104
|
$: s
|
|
10101
10105
|
} = yd(t);
|
|
10102
|
-
let i = (s ?
|
|
10106
|
+
let i = (s ? Ao(n.width) : n.width) / r, a = (s ? Ao(n.height) : n.height) / o;
|
|
10103
10107
|
return (!i || !Number.isFinite(i)) && (i = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
10104
10108
|
x: i,
|
|
10105
10109
|
y: a
|
|
@@ -10131,19 +10135,19 @@ function In(e, t, n, r) {
|
|
|
10131
10135
|
c *= p.x, u *= p.y, d *= p.x, h *= p.y, c += y, u += E, x = yt(g), g = bi(x);
|
|
10132
10136
|
}
|
|
10133
10137
|
}
|
|
10134
|
-
return
|
|
10138
|
+
return Po({
|
|
10135
10139
|
width: d,
|
|
10136
10140
|
height: h,
|
|
10137
10141
|
x: c,
|
|
10138
10142
|
y: u
|
|
10139
10143
|
});
|
|
10140
10144
|
}
|
|
10141
|
-
function
|
|
10142
|
-
const n =
|
|
10145
|
+
function us(e, t) {
|
|
10146
|
+
const n = cs(e).scrollLeft;
|
|
10143
10147
|
return t ? t.left + n : In(Jt(e)).left + n;
|
|
10144
10148
|
}
|
|
10145
10149
|
function Cd(e, t) {
|
|
10146
|
-
const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft -
|
|
10150
|
+
const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - us(e, n), o = n.top + t.scrollTop;
|
|
10147
10151
|
return {
|
|
10148
10152
|
x: r,
|
|
10149
10153
|
y: o
|
|
@@ -10156,7 +10160,7 @@ function Cy(e) {
|
|
|
10156
10160
|
offsetParent: r,
|
|
10157
10161
|
strategy: o
|
|
10158
10162
|
} = e;
|
|
10159
|
-
const s = o === "fixed", i = Jt(r), a = t ?
|
|
10163
|
+
const s = o === "fixed", i = Jt(r), a = t ? ls(t.floating) : !1;
|
|
10160
10164
|
if (r === i || a && s)
|
|
10161
10165
|
return n;
|
|
10162
10166
|
let c = {
|
|
@@ -10164,7 +10168,7 @@ function Cy(e) {
|
|
|
10164
10168
|
scrollTop: 0
|
|
10165
10169
|
}, u = Yt(1);
|
|
10166
10170
|
const d = Yt(0), h = qt(r);
|
|
10167
|
-
if ((h || !h && !s) && ((sr(r) !== "body" || Hr(i)) && (c =
|
|
10171
|
+
if ((h || !h && !s) && ((sr(r) !== "body" || Hr(i)) && (c = cs(r)), qt(r))) {
|
|
10168
10172
|
const v = In(r);
|
|
10169
10173
|
u = Gn(r), d.x = v.x + r.clientLeft, d.y = v.y + r.clientTop;
|
|
10170
10174
|
}
|
|
@@ -10180,8 +10184,8 @@ function Ty(e) {
|
|
|
10180
10184
|
return Array.from(e.getClientRects());
|
|
10181
10185
|
}
|
|
10182
10186
|
function Ry(e) {
|
|
10183
|
-
const t = Jt(e), n =
|
|
10184
|
-
let i = -n.scrollLeft +
|
|
10187
|
+
const t = Jt(e), n = cs(e), r = e.ownerDocument.body, o = vt(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = vt(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
10188
|
+
let i = -n.scrollLeft + us(e);
|
|
10185
10189
|
const a = -n.scrollTop;
|
|
10186
10190
|
return Bt(r).direction === "rtl" && (i += vt(t.clientWidth, r.clientWidth) - o), {
|
|
10187
10191
|
width: o,
|
|
@@ -10199,7 +10203,7 @@ function Ey(e, t) {
|
|
|
10199
10203
|
const d = ha();
|
|
10200
10204
|
(!d || d && t === "fixed") && (a = o.offsetLeft, c = o.offsetTop);
|
|
10201
10205
|
}
|
|
10202
|
-
const u =
|
|
10206
|
+
const u = us(r);
|
|
10203
10207
|
if (u <= 0) {
|
|
10204
10208
|
const d = r.ownerDocument, h = d.body, m = getComputedStyle(h), v = d.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, x = Math.abs(r.clientWidth - h.clientWidth - v);
|
|
10205
10209
|
x <= ic && (s -= x);
|
|
@@ -10238,7 +10242,7 @@ function ac(e, t, n) {
|
|
|
10238
10242
|
height: t.height
|
|
10239
10243
|
};
|
|
10240
10244
|
}
|
|
10241
|
-
return
|
|
10245
|
+
return Po(r);
|
|
10242
10246
|
}
|
|
10243
10247
|
function Td(e, t) {
|
|
10244
10248
|
const n = dn(e);
|
|
@@ -10264,7 +10268,7 @@ function Ay(e) {
|
|
|
10264
10268
|
rootBoundary: r,
|
|
10265
10269
|
strategy: o
|
|
10266
10270
|
} = e;
|
|
10267
|
-
const i = [...n === "clippingAncestors" ?
|
|
10271
|
+
const i = [...n === "clippingAncestors" ? ls(t) ? [] : jy(t, this._c) : [].concat(n), r], a = i[0], c = i.reduce((u, d) => {
|
|
10268
10272
|
const h = ac(t, d, o);
|
|
10269
10273
|
return u.top = vt(h.top, u.top), u.right = un(h.right, u.right), u.bottom = un(h.bottom, u.bottom), u.left = vt(h.left, u.left), u;
|
|
10270
10274
|
}, ac(t, a, o));
|
|
@@ -10293,10 +10297,10 @@ function Py(e, t, n) {
|
|
|
10293
10297
|
};
|
|
10294
10298
|
const c = Yt(0);
|
|
10295
10299
|
function u() {
|
|
10296
|
-
c.x =
|
|
10300
|
+
c.x = us(o);
|
|
10297
10301
|
}
|
|
10298
10302
|
if (r || !r && !s)
|
|
10299
|
-
if ((sr(t) !== "body" || Hr(o)) && (a =
|
|
10303
|
+
if ((sr(t) !== "body" || Hr(o)) && (a = cs(t)), r) {
|
|
10300
10304
|
const v = In(t, !0, s, t);
|
|
10301
10305
|
c.x = v.x + t.clientLeft, c.y = v.y + t.clientTop;
|
|
10302
10306
|
} else o && u();
|
|
@@ -10322,7 +10326,7 @@ function lc(e, t) {
|
|
|
10322
10326
|
}
|
|
10323
10327
|
function Rd(e, t) {
|
|
10324
10328
|
const n = yt(e);
|
|
10325
|
-
if (
|
|
10329
|
+
if (ls(e))
|
|
10326
10330
|
return n;
|
|
10327
10331
|
if (!qt(e)) {
|
|
10328
10332
|
let o = dn(e);
|
|
@@ -10385,7 +10389,7 @@ function Dy(e, t) {
|
|
|
10385
10389
|
} = u;
|
|
10386
10390
|
if (a || t(), !m || !v)
|
|
10387
10391
|
return;
|
|
10388
|
-
const x =
|
|
10392
|
+
const x = eo(h), g = eo(o.clientWidth - (d + m)), p = eo(o.clientHeight - (h + v)), b = eo(d), y = {
|
|
10389
10393
|
rootMargin: -x + "px " + -g + "px " + -p + "px " + -b + "px",
|
|
10390
10394
|
threshold: vt(0, un(1, c)) || 1
|
|
10391
10395
|
};
|
|
@@ -10464,8 +10468,8 @@ const Fy = ly, By = cy, $y = sy, Hy = dy, zy = iy, cc = oy, Uy = uy, Wy = (e, t,
|
|
|
10464
10468
|
});
|
|
10465
10469
|
};
|
|
10466
10470
|
var Vy = typeof document < "u", Gy = function() {
|
|
10467
|
-
},
|
|
10468
|
-
function
|
|
10471
|
+
}, go = Vy ? Lp : Gy;
|
|
10472
|
+
function _o(e, t) {
|
|
10469
10473
|
if (e === t)
|
|
10470
10474
|
return !0;
|
|
10471
10475
|
if (typeof e != typeof t)
|
|
@@ -10477,7 +10481,7 @@ function Oo(e, t) {
|
|
|
10477
10481
|
if (Array.isArray(e)) {
|
|
10478
10482
|
if (n = e.length, n !== t.length) return !1;
|
|
10479
10483
|
for (r = n; r-- !== 0; )
|
|
10480
|
-
if (!
|
|
10484
|
+
if (!_o(e[r], t[r]))
|
|
10481
10485
|
return !1;
|
|
10482
10486
|
return !0;
|
|
10483
10487
|
}
|
|
@@ -10488,7 +10492,7 @@ function Oo(e, t) {
|
|
|
10488
10492
|
return !1;
|
|
10489
10493
|
for (r = n; r-- !== 0; ) {
|
|
10490
10494
|
const s = o[r];
|
|
10491
|
-
if (!(s === "_owner" && e.$$typeof) && !
|
|
10495
|
+
if (!(s === "_owner" && e.$$typeof) && !_o(e[s], t[s]))
|
|
10492
10496
|
return !1;
|
|
10493
10497
|
}
|
|
10494
10498
|
return !0;
|
|
@@ -10504,7 +10508,7 @@ function uc(e, t) {
|
|
|
10504
10508
|
}
|
|
10505
10509
|
function qs(e) {
|
|
10506
10510
|
const t = f.useRef(e);
|
|
10507
|
-
return
|
|
10511
|
+
return go(() => {
|
|
10508
10512
|
t.current = e;
|
|
10509
10513
|
}), t;
|
|
10510
10514
|
}
|
|
@@ -10530,7 +10534,7 @@ function Ky(e) {
|
|
|
10530
10534
|
middlewareData: {},
|
|
10531
10535
|
isPositioned: !1
|
|
10532
10536
|
}), [m, v] = f.useState(r);
|
|
10533
|
-
|
|
10537
|
+
_o(m, r) || v(r);
|
|
10534
10538
|
const [x, g] = f.useState(null), [p, b] = f.useState(null), w = f.useCallback((O) => {
|
|
10535
10539
|
O !== T.current && (T.current = O, g(O));
|
|
10536
10540
|
}, []), y = f.useCallback((O) => {
|
|
@@ -10552,21 +10556,21 @@ function Ky(e) {
|
|
|
10552
10556
|
// setting it to `true` when `open === false` (must be specified).
|
|
10553
10557
|
isPositioned: W.current !== !1
|
|
10554
10558
|
};
|
|
10555
|
-
A.current && !
|
|
10559
|
+
A.current && !_o(I.current, z) && (I.current = z, Bo.flushSync(() => {
|
|
10556
10560
|
h(z);
|
|
10557
10561
|
}));
|
|
10558
10562
|
});
|
|
10559
10563
|
}, [m, t, n, M, W]);
|
|
10560
|
-
|
|
10564
|
+
go(() => {
|
|
10561
10565
|
u === !1 && I.current.isPositioned && (I.current.isPositioned = !1, h((O) => ({
|
|
10562
10566
|
...O,
|
|
10563
10567
|
isPositioned: !1
|
|
10564
10568
|
})));
|
|
10565
10569
|
}, [u]);
|
|
10566
10570
|
const A = f.useRef(!1);
|
|
10567
|
-
|
|
10571
|
+
go(() => (A.current = !0, () => {
|
|
10568
10572
|
A.current = !1;
|
|
10569
|
-
}), []),
|
|
10573
|
+
}), []), go(() => {
|
|
10570
10574
|
if (E && (T.current = E), C && (S.current = C), E && C) {
|
|
10571
10575
|
if (j.current)
|
|
10572
10576
|
return j.current(E, C, G);
|
|
@@ -10909,7 +10913,7 @@ var mS = f.forwardRef((e, t) => {
|
|
|
10909
10913
|
onEntryFocus: u,
|
|
10910
10914
|
preventScrollOnEntryFocus: d = !1,
|
|
10911
10915
|
...h
|
|
10912
|
-
} = e, m = f.useRef(null), v = Ce(t, m), x =
|
|
10916
|
+
} = e, m = f.useRef(null), v = Ce(t, m), x = is(s), [g, p] = cn({
|
|
10913
10917
|
prop: i,
|
|
10914
10918
|
defaultProp: a ?? null,
|
|
10915
10919
|
onChange: c,
|
|
@@ -11064,8 +11068,8 @@ var wS = Hd, yS = Ud, yi = ["Enter", " "], SS = ["ArrowDown", "PageUp", "Home"],
|
|
|
11064
11068
|
IS,
|
|
11065
11069
|
ir,
|
|
11066
11070
|
$d
|
|
11067
|
-
]),
|
|
11068
|
-
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, a =
|
|
11071
|
+
]), ds = ir(), Kd = $d(), [NS, _n] = Pn(Ur), [jS, Wr] = Pn(Ur), Yd = (e) => {
|
|
11072
|
+
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, a = ds(t), [c, u] = f.useState(null), d = f.useRef(!1), h = ot(s), m = is(o);
|
|
11069
11073
|
return f.useEffect(() => {
|
|
11070
11074
|
const v = () => {
|
|
11071
11075
|
d.current = !0, document.addEventListener("pointerdown", x, { capture: !0, once: !0 }), document.addEventListener("pointermove", x, { capture: !0, once: !0 });
|
|
@@ -11098,7 +11102,7 @@ var wS = Hd, yS = Ud, yi = ["Enter", " "], SS = ["ArrowDown", "PageUp", "Home"],
|
|
|
11098
11102
|
Yd.displayName = Ur;
|
|
11099
11103
|
var AS = "MenuAnchor", ya = f.forwardRef(
|
|
11100
11104
|
(e, t) => {
|
|
11101
|
-
const { __scopeMenu: n, ...r } = e, o =
|
|
11105
|
+
const { __scopeMenu: n, ...r } = e, o = ds(n);
|
|
11102
11106
|
return /* @__PURE__ */ l.jsx(va, { ...o, ...r, ref: t });
|
|
11103
11107
|
}
|
|
11104
11108
|
);
|
|
@@ -11107,7 +11111,7 @@ var Sa = "MenuPortal", [kS, qd] = Pn(Sa, {
|
|
|
11107
11111
|
forceMount: void 0
|
|
11108
11112
|
}), Xd = (e) => {
|
|
11109
11113
|
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = _n(Sa, t);
|
|
11110
|
-
return /* @__PURE__ */ l.jsx(kS, { scope: t, forceMount: n, children: /* @__PURE__ */ l.jsx(xt, { present: n || s.open, children: /* @__PURE__ */ l.jsx(
|
|
11114
|
+
return /* @__PURE__ */ l.jsx(kS, { scope: t, forceMount: n, children: /* @__PURE__ */ l.jsx(xt, { present: n || s.open, children: /* @__PURE__ */ l.jsx(Qo, { asChild: !0, container: o, children: r }) }) });
|
|
11111
11115
|
};
|
|
11112
11116
|
Xd.displayName = Sa;
|
|
11113
11117
|
var It = "MenuContent", [PS, Ca] = Pn(It), Jd = f.forwardRef(
|
|
@@ -11168,7 +11172,7 @@ var It = "MenuContent", [PS, Ca] = Pn(It), Jd = f.forwardRef(
|
|
|
11168
11172
|
onDismiss: v,
|
|
11169
11173
|
disableOutsideScroll: x,
|
|
11170
11174
|
...g
|
|
11171
|
-
} = e, p = _n(It, n), b = Wr(It, n), w =
|
|
11175
|
+
} = e, p = _n(It, n), b = Wr(It, n), w = ds(n), y = Kd(n), E = ES(n), [C, T] = f.useState(null), S = f.useRef(null), I = Ce(t, S, p.onContentChange), N = f.useRef(0), j = f.useRef(""), M = f.useRef(0), W = f.useRef(null), G = f.useRef("right"), A = f.useRef(0), $ = x ? ts : f.Fragment, L = x ? { as: MS, allowPinchZoom: !0 } : void 0, q = (_) => {
|
|
11172
11176
|
var Y, P;
|
|
11173
11177
|
const z = j.current + _, X = E().filter((Z) => !Z.disabled), oe = document.activeElement, F = (Y = X.find((Z) => Z.ref.current === oe)) == null ? void 0 : Y.textValue, ee = X.map((Z) => Z.textValue), he = KS(ee, z, F), be = (P = X.find((Z) => Z.textValue === he)) == null ? void 0 : P.ref.current;
|
|
11174
11178
|
(function Z(ne) {
|
|
@@ -11209,7 +11213,7 @@ var It = "MenuContent", [PS, Ca] = Pn(It), Jd = f.forwardRef(
|
|
|
11209
11213
|
W.current = _;
|
|
11210
11214
|
}, []),
|
|
11211
11215
|
children: /* @__PURE__ */ l.jsx($, { ...L, children: /* @__PURE__ */ l.jsx(
|
|
11212
|
-
|
|
11216
|
+
Zo,
|
|
11213
11217
|
{
|
|
11214
11218
|
asChild: !0,
|
|
11215
11219
|
trapped: o,
|
|
@@ -11303,9 +11307,9 @@ var LS = "MenuLabel", Zd = f.forwardRef(
|
|
|
11303
11307
|
}
|
|
11304
11308
|
);
|
|
11305
11309
|
Zd.displayName = LS;
|
|
11306
|
-
var
|
|
11310
|
+
var Oo = "MenuItem", dc = "menu.itemSelect", fs = f.forwardRef(
|
|
11307
11311
|
(e, t) => {
|
|
11308
|
-
const { disabled: n = !1, onSelect: r, ...o } = e, s = f.useRef(null), i = Wr(
|
|
11312
|
+
const { disabled: n = !1, onSelect: r, ...o } = e, s = f.useRef(null), i = Wr(Oo, e.__scopeMenu), a = Ca(Oo, e.__scopeMenu), c = Ce(t, s), u = f.useRef(!1), d = () => {
|
|
11309
11313
|
const h = s.current;
|
|
11310
11314
|
if (!n && h) {
|
|
11311
11315
|
const m = new CustomEvent(dc, { bubbles: !0, cancelable: !0 });
|
|
@@ -11335,10 +11339,10 @@ var Mo = "MenuItem", dc = "menu.itemSelect", hs = f.forwardRef(
|
|
|
11335
11339
|
);
|
|
11336
11340
|
}
|
|
11337
11341
|
);
|
|
11338
|
-
|
|
11342
|
+
fs.displayName = Oo;
|
|
11339
11343
|
var Qd = f.forwardRef(
|
|
11340
11344
|
(e, t) => {
|
|
11341
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = Ca(
|
|
11345
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = Ca(Oo, n), a = Kd(n), c = f.useRef(null), u = Ce(t, c), [d, h] = f.useState(!1), [m, v] = f.useState("");
|
|
11342
11346
|
return f.useEffect(() => {
|
|
11343
11347
|
const x = c.current;
|
|
11344
11348
|
x && v((x.textContent ?? "").trim());
|
|
@@ -11378,16 +11382,16 @@ var Qd = f.forwardRef(
|
|
|
11378
11382
|
(e, t) => {
|
|
11379
11383
|
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
11380
11384
|
return /* @__PURE__ */ l.jsx(sf, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ l.jsx(
|
|
11381
|
-
|
|
11385
|
+
fs,
|
|
11382
11386
|
{
|
|
11383
11387
|
role: "menuitemcheckbox",
|
|
11384
|
-
"aria-checked":
|
|
11388
|
+
"aria-checked": Mo(n) ? "mixed" : n,
|
|
11385
11389
|
...o,
|
|
11386
11390
|
ref: t,
|
|
11387
11391
|
"data-state": Ia(n),
|
|
11388
11392
|
onSelect: Q(
|
|
11389
11393
|
o.onSelect,
|
|
11390
|
-
() => r == null ? void 0 : r(
|
|
11394
|
+
() => r == null ? void 0 : r(Mo(n) ? !0 : !n),
|
|
11391
11395
|
{ checkForDefaultPrevented: !1 }
|
|
11392
11396
|
)
|
|
11393
11397
|
}
|
|
@@ -11410,7 +11414,7 @@ var rf = "MenuRadioItem", of = f.forwardRef(
|
|
|
11410
11414
|
(e, t) => {
|
|
11411
11415
|
const { value: n, ...r } = e, o = $S(rf, e.__scopeMenu), s = n === o.value;
|
|
11412
11416
|
return /* @__PURE__ */ l.jsx(sf, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ l.jsx(
|
|
11413
|
-
|
|
11417
|
+
fs,
|
|
11414
11418
|
{
|
|
11415
11419
|
role: "menuitemradio",
|
|
11416
11420
|
"aria-checked": s,
|
|
@@ -11439,7 +11443,7 @@ var Ea = "MenuItemIndicator", [sf, HS] = Pn(
|
|
|
11439
11443
|
return /* @__PURE__ */ l.jsx(
|
|
11440
11444
|
xt,
|
|
11441
11445
|
{
|
|
11442
|
-
present: r ||
|
|
11446
|
+
present: r || Mo(s.checked) || s.checked === !0,
|
|
11443
11447
|
children: /* @__PURE__ */ l.jsx(
|
|
11444
11448
|
me.span,
|
|
11445
11449
|
{
|
|
@@ -11470,7 +11474,7 @@ var zS = "MenuSeparator", lf = f.forwardRef(
|
|
|
11470
11474
|
lf.displayName = zS;
|
|
11471
11475
|
var US = "MenuArrow", cf = f.forwardRef(
|
|
11472
11476
|
(e, t) => {
|
|
11473
|
-
const { __scopeMenu: n, ...r } = e, o =
|
|
11477
|
+
const { __scopeMenu: n, ...r } = e, o = ds(n);
|
|
11474
11478
|
return /* @__PURE__ */ l.jsx(wa, { ...o, ...r, ref: t });
|
|
11475
11479
|
}
|
|
11476
11480
|
);
|
|
@@ -11585,11 +11589,11 @@ hf.displayName = ff;
|
|
|
11585
11589
|
function pf(e) {
|
|
11586
11590
|
return e ? "open" : "closed";
|
|
11587
11591
|
}
|
|
11588
|
-
function
|
|
11592
|
+
function Mo(e) {
|
|
11589
11593
|
return e === "indeterminate";
|
|
11590
11594
|
}
|
|
11591
11595
|
function Ia(e) {
|
|
11592
|
-
return
|
|
11596
|
+
return Mo(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
11593
11597
|
}
|
|
11594
11598
|
function VS(e) {
|
|
11595
11599
|
const t = document.activeElement;
|
|
@@ -11625,10 +11629,10 @@ function qS(e, t) {
|
|
|
11625
11629
|
function jr(e) {
|
|
11626
11630
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
11627
11631
|
}
|
|
11628
|
-
var XS = Yd, JS = ya, ZS = Xd, QS = Jd, e0 = Ra, t0 = Zd, n0 =
|
|
11629
|
-
|
|
11632
|
+
var XS = Yd, JS = ya, ZS = Xd, QS = Jd, e0 = Ra, t0 = Zd, n0 = fs, r0 = ef, o0 = nf, s0 = of, i0 = af, a0 = lf, l0 = cf, c0 = df, u0 = hf, hs = "DropdownMenu", [d0, hR] = Ht(
|
|
11633
|
+
hs,
|
|
11630
11634
|
[Gd]
|
|
11631
|
-
), ht = Gd(), [f0, mf] = d0(
|
|
11635
|
+
), ht = Gd(), [f0, mf] = d0(hs), gf = (e) => {
|
|
11632
11636
|
const {
|
|
11633
11637
|
__scopeDropdownMenu: t,
|
|
11634
11638
|
children: n,
|
|
@@ -11641,7 +11645,7 @@ var XS = Yd, JS = ya, ZS = Xd, QS = Jd, e0 = Ra, t0 = Zd, n0 = hs, r0 = ef, o0 =
|
|
|
11641
11645
|
prop: o,
|
|
11642
11646
|
defaultProp: s ?? !1,
|
|
11643
11647
|
onChange: i,
|
|
11644
|
-
caller:
|
|
11648
|
+
caller: hs
|
|
11645
11649
|
});
|
|
11646
11650
|
return /* @__PURE__ */ l.jsx(
|
|
11647
11651
|
f0,
|
|
@@ -11658,7 +11662,7 @@ var XS = Yd, JS = ya, ZS = Xd, QS = Jd, e0 = Ra, t0 = Zd, n0 = hs, r0 = ef, o0 =
|
|
|
11658
11662
|
}
|
|
11659
11663
|
);
|
|
11660
11664
|
};
|
|
11661
|
-
gf.displayName =
|
|
11665
|
+
gf.displayName = hs;
|
|
11662
11666
|
var xf = "DropdownMenuTrigger", vf = f.forwardRef(
|
|
11663
11667
|
(e, t) => {
|
|
11664
11668
|
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = mf(xf, n), i = ht(n);
|
|
@@ -11912,7 +11916,7 @@ const F0 = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
|
|
|
11912
11916
|
}
|
|
11913
11917
|
));
|
|
11914
11918
|
F0.displayName = Df.displayName;
|
|
11915
|
-
function
|
|
11919
|
+
function xo({
|
|
11916
11920
|
className: e = "",
|
|
11917
11921
|
placeholder: t = "Type your message...",
|
|
11918
11922
|
autoFocus: n = !0,
|
|
@@ -11996,8 +12000,8 @@ function vo({
|
|
|
11996
12000
|
p && !he && (h == null || h(p));
|
|
11997
12001
|
}, [p, he, h]);
|
|
11998
12002
|
const H = (J) => {
|
|
11999
|
-
if (J.length >
|
|
12000
|
-
return `Message too long (${J.length}/${
|
|
12003
|
+
if (J.length > mo)
|
|
12004
|
+
return `Message too long (${J.length}/${mo} characters)`;
|
|
12001
12005
|
try {
|
|
12002
12006
|
return Ww(J), null;
|
|
12003
12007
|
} catch (ce) {
|
|
@@ -12243,7 +12247,7 @@ function vo({
|
|
|
12243
12247
|
placeholder: M ? "Edit your message..." : t,
|
|
12244
12248
|
isStreaming: x,
|
|
12245
12249
|
disabled: !1,
|
|
12246
|
-
maxLength:
|
|
12250
|
+
maxLength: mo,
|
|
12247
12251
|
onSend: Fe,
|
|
12248
12252
|
onCancelEdit: rt,
|
|
12249
12253
|
onStop: w,
|
|
@@ -12284,7 +12288,7 @@ var Na = "ScrollArea", [$f, pR] = Ht(Na), [$0, jt] = $f(Na), Hf = f.forwardRef(
|
|
|
12284
12288
|
dir: o,
|
|
12285
12289
|
scrollHideDelay: s = 600,
|
|
12286
12290
|
...i
|
|
12287
|
-
} = e, [a, c] = f.useState(null), [u, d] = f.useState(null), [h, m] = f.useState(null), [v, x] = f.useState(null), [g, p] = f.useState(null), [b, w] = f.useState(0), [y, E] = f.useState(0), [C, T] = f.useState(!1), [S, I] = f.useState(!1), N = Ce(t, (M) => c(M)), j =
|
|
12291
|
+
} = e, [a, c] = f.useState(null), [u, d] = f.useState(null), [h, m] = f.useState(null), [v, x] = f.useState(null), [g, p] = f.useState(null), [b, w] = f.useState(0), [y, E] = f.useState(0), [C, T] = f.useState(!1), [S, I] = f.useState(!1), N = Ce(t, (M) => c(M)), j = is(o);
|
|
12288
12292
|
return /* @__PURE__ */ l.jsx(
|
|
12289
12293
|
$0,
|
|
12290
12294
|
{
|
|
@@ -12402,7 +12406,7 @@ var H0 = f.forwardRef((e, t) => {
|
|
|
12402
12406
|
}
|
|
12403
12407
|
) });
|
|
12404
12408
|
}), z0 = f.forwardRef((e, t) => {
|
|
12405
|
-
const { forceMount: n, ...r } = e, o = jt(Zt, e.__scopeScrollArea), s = e.orientation === "horizontal", i =
|
|
12409
|
+
const { forceMount: n, ...r } = e, o = jt(Zt, e.__scopeScrollArea), s = e.orientation === "horizontal", i = ms(() => c("SCROLL_END"), 100), [a, c] = B0("hidden", {
|
|
12406
12410
|
hidden: {
|
|
12407
12411
|
SCROLL: "scrolling"
|
|
12408
12412
|
},
|
|
@@ -12446,7 +12450,7 @@ var H0 = f.forwardRef((e, t) => {
|
|
|
12446
12450
|
}
|
|
12447
12451
|
) });
|
|
12448
12452
|
}), Wf = f.forwardRef((e, t) => {
|
|
12449
|
-
const n = jt(Zt, e.__scopeScrollArea), { forceMount: r, ...o } = e, [s, i] = f.useState(!1), a = e.orientation === "horizontal", c =
|
|
12453
|
+
const n = jt(Zt, e.__scopeScrollArea), { forceMount: r, ...o } = e, [s, i] = f.useState(!1), a = e.orientation === "horizontal", c = ms(() => {
|
|
12450
12454
|
if (n.viewport) {
|
|
12451
12455
|
const u = n.viewport.offsetWidth < n.viewport.scrollWidth, d = n.viewport.offsetHeight < n.viewport.scrollHeight;
|
|
12452
12456
|
i(a ? u : d);
|
|
@@ -12529,7 +12533,7 @@ var H0 = f.forwardRef((e, t) => {
|
|
|
12529
12533
|
bottom: 0,
|
|
12530
12534
|
left: s.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0,
|
|
12531
12535
|
right: s.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0,
|
|
12532
|
-
"--radix-scroll-area-thumb-width":
|
|
12536
|
+
"--radix-scroll-area-thumb-width": ps(n) + "px",
|
|
12533
12537
|
...e.style
|
|
12534
12538
|
},
|
|
12535
12539
|
onThumbPointerDown: (d) => e.onThumbPointerDown(d.x),
|
|
@@ -12546,8 +12550,8 @@ var H0 = f.forwardRef((e, t) => {
|
|
|
12546
12550
|
viewport: s.viewport.offsetWidth,
|
|
12547
12551
|
scrollbar: {
|
|
12548
12552
|
size: c.current.clientWidth,
|
|
12549
|
-
paddingStart:
|
|
12550
|
-
paddingEnd:
|
|
12553
|
+
paddingStart: Lo(i.paddingLeft),
|
|
12554
|
+
paddingEnd: Lo(i.paddingRight)
|
|
12551
12555
|
}
|
|
12552
12556
|
});
|
|
12553
12557
|
}
|
|
@@ -12569,7 +12573,7 @@ var H0 = f.forwardRef((e, t) => {
|
|
|
12569
12573
|
right: s.dir === "ltr" ? 0 : void 0,
|
|
12570
12574
|
left: s.dir === "rtl" ? 0 : void 0,
|
|
12571
12575
|
bottom: "var(--radix-scroll-area-corner-height)",
|
|
12572
|
-
"--radix-scroll-area-thumb-height":
|
|
12576
|
+
"--radix-scroll-area-thumb-height": ps(n) + "px",
|
|
12573
12577
|
...e.style
|
|
12574
12578
|
},
|
|
12575
12579
|
onThumbPointerDown: (d) => e.onThumbPointerDown(d.y),
|
|
@@ -12586,8 +12590,8 @@ var H0 = f.forwardRef((e, t) => {
|
|
|
12586
12590
|
viewport: s.viewport.offsetHeight,
|
|
12587
12591
|
scrollbar: {
|
|
12588
12592
|
size: c.current.clientHeight,
|
|
12589
|
-
paddingStart:
|
|
12590
|
-
paddingEnd:
|
|
12593
|
+
paddingStart: Lo(i.paddingTop),
|
|
12594
|
+
paddingEnd: Lo(i.paddingBottom)
|
|
12591
12595
|
}
|
|
12592
12596
|
});
|
|
12593
12597
|
}
|
|
@@ -12606,7 +12610,7 @@ var H0 = f.forwardRef((e, t) => {
|
|
|
12606
12610
|
onWheelScroll: d,
|
|
12607
12611
|
onResize: h,
|
|
12608
12612
|
...m
|
|
12609
|
-
} = e, v = jt(Zt, n), [x, g] = f.useState(null), p = Ce(t, (N) => g(N)), b = f.useRef(null), w = f.useRef(""), y = v.viewport, E = r.content - r.viewport, C = ot(d), T = ot(c), S =
|
|
12613
|
+
} = e, v = jt(Zt, n), [x, g] = f.useState(null), p = Ce(t, (N) => g(N)), b = f.useRef(null), w = f.useRef(""), y = v.viewport, E = r.content - r.viewport, C = ot(d), T = ot(c), S = ms(h, 10);
|
|
12610
12614
|
function I(N) {
|
|
12611
12615
|
if (b.current) {
|
|
12612
12616
|
const j = N.clientX - b.current.left, M = N.clientY - b.current.top;
|
|
@@ -12647,17 +12651,17 @@ var H0 = f.forwardRef((e, t) => {
|
|
|
12647
12651
|
)
|
|
12648
12652
|
}
|
|
12649
12653
|
);
|
|
12650
|
-
}),
|
|
12654
|
+
}), Do = "ScrollAreaThumb", Kf = f.forwardRef(
|
|
12651
12655
|
(e, t) => {
|
|
12652
|
-
const { forceMount: n, ...r } = e, o = Vf(
|
|
12656
|
+
const { forceMount: n, ...r } = e, o = Vf(Do, e.__scopeScrollArea);
|
|
12653
12657
|
return /* @__PURE__ */ l.jsx(xt, { present: n || o.hasThumb, children: /* @__PURE__ */ l.jsx(G0, { ref: t, ...r }) });
|
|
12654
12658
|
}
|
|
12655
12659
|
), G0 = f.forwardRef(
|
|
12656
12660
|
(e, t) => {
|
|
12657
|
-
const { __scopeScrollArea: n, style: r, ...o } = e, s = jt(
|
|
12661
|
+
const { __scopeScrollArea: n, style: r, ...o } = e, s = jt(Do, n), i = Vf(Do, n), { onThumbPositionChange: a } = i, c = Ce(
|
|
12658
12662
|
t,
|
|
12659
12663
|
(h) => i.onThumbChange(h)
|
|
12660
|
-
), u = f.useRef(void 0), d =
|
|
12664
|
+
), u = f.useRef(void 0), d = ms(() => {
|
|
12661
12665
|
u.current && (u.current(), u.current = void 0);
|
|
12662
12666
|
}, 100);
|
|
12663
12667
|
return f.useEffect(() => {
|
|
@@ -12691,7 +12695,7 @@ var H0 = f.forwardRef((e, t) => {
|
|
|
12691
12695
|
);
|
|
12692
12696
|
}
|
|
12693
12697
|
);
|
|
12694
|
-
Kf.displayName =
|
|
12698
|
+
Kf.displayName = Do;
|
|
12695
12699
|
var ka = "ScrollAreaCorner", Yf = f.forwardRef(
|
|
12696
12700
|
(e, t) => {
|
|
12697
12701
|
const n = jt(ka, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
|
|
@@ -12726,23 +12730,23 @@ var K0 = f.forwardRef((e, t) => {
|
|
|
12726
12730
|
}
|
|
12727
12731
|
) : null;
|
|
12728
12732
|
});
|
|
12729
|
-
function
|
|
12733
|
+
function Lo(e) {
|
|
12730
12734
|
return e ? parseInt(e, 10) : 0;
|
|
12731
12735
|
}
|
|
12732
12736
|
function qf(e, t) {
|
|
12733
12737
|
const n = e / t;
|
|
12734
12738
|
return isNaN(n) ? 0 : n;
|
|
12735
12739
|
}
|
|
12736
|
-
function
|
|
12740
|
+
function ps(e) {
|
|
12737
12741
|
const t = qf(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
|
|
12738
12742
|
return Math.max(r, 18);
|
|
12739
12743
|
}
|
|
12740
12744
|
function Y0(e, t, n, r = "ltr") {
|
|
12741
|
-
const o =
|
|
12745
|
+
const o = ps(n), s = o / 2, i = t || s, a = o - i, c = n.scrollbar.paddingStart + i, u = n.scrollbar.size - n.scrollbar.paddingEnd - a, d = n.content - n.viewport, h = r === "ltr" ? [0, d] : [d * -1, 0];
|
|
12742
12746
|
return Xf([c, u], h)(e);
|
|
12743
12747
|
}
|
|
12744
12748
|
function fc(e, t, n = "ltr") {
|
|
12745
|
-
const r =
|
|
12749
|
+
const r = ps(t), o = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - o, i = t.content - t.viewport, a = s - r, c = n === "ltr" ? [0, i] : [i * -1, 0], u = Ci(e, c);
|
|
12746
12750
|
return Xf([0, i], [0, a])(u);
|
|
12747
12751
|
}
|
|
12748
12752
|
function Xf(e, t) {
|
|
@@ -12763,7 +12767,7 @@ var q0 = (e, t = () => {
|
|
|
12763
12767
|
(i || a) && t(), n = s, r = window.requestAnimationFrame(o);
|
|
12764
12768
|
}(), () => window.cancelAnimationFrame(r);
|
|
12765
12769
|
};
|
|
12766
|
-
function
|
|
12770
|
+
function ms(e, t) {
|
|
12767
12771
|
const n = ot(e), r = f.useRef(0);
|
|
12768
12772
|
return f.useEffect(() => () => window.clearTimeout(r.current), []), f.useCallback(() => {
|
|
12769
12773
|
window.clearTimeout(r.current), r.current = window.setTimeout(n, t);
|
|
@@ -13092,7 +13096,7 @@ const Pa = f.forwardRef(
|
|
|
13092
13096
|
);
|
|
13093
13097
|
Pa.displayName = ih.displayName;
|
|
13094
13098
|
const ah = ld, aC = Cw, lC = cd, lh = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
|
|
13095
|
-
|
|
13099
|
+
rs,
|
|
13096
13100
|
{
|
|
13097
13101
|
className: D(
|
|
13098
13102
|
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
@@ -13102,7 +13106,7 @@ const ah = ld, aC = Cw, lC = cd, lh = f.forwardRef(({ className: e, ...t }, n) =
|
|
|
13102
13106
|
ref: n
|
|
13103
13107
|
}
|
|
13104
13108
|
));
|
|
13105
|
-
lh.displayName =
|
|
13109
|
+
lh.displayName = rs.displayName;
|
|
13106
13110
|
const cC = Pr(
|
|
13107
13111
|
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
13108
13112
|
{
|
|
@@ -13121,7 +13125,7 @@ const cC = Pr(
|
|
|
13121
13125
|
), _a = f.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => /* @__PURE__ */ l.jsxs(lC, { children: [
|
|
13122
13126
|
/* @__PURE__ */ l.jsx(lh, {}),
|
|
13123
13127
|
/* @__PURE__ */ l.jsxs(
|
|
13124
|
-
|
|
13128
|
+
os,
|
|
13125
13129
|
{
|
|
13126
13130
|
ref: o,
|
|
13127
13131
|
className: D(cC({ side: e }), t),
|
|
@@ -13136,7 +13140,7 @@ const cC = Pr(
|
|
|
13136
13140
|
}
|
|
13137
13141
|
)
|
|
13138
13142
|
] }));
|
|
13139
|
-
_a.displayName =
|
|
13143
|
+
_a.displayName = os.displayName;
|
|
13140
13144
|
const ch = ({
|
|
13141
13145
|
className: e,
|
|
13142
13146
|
...t
|
|
@@ -13161,14 +13165,14 @@ const uh = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
|
|
|
13161
13165
|
));
|
|
13162
13166
|
uh.displayName = Sn.displayName;
|
|
13163
13167
|
const dh = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
|
|
13164
|
-
|
|
13168
|
+
ss,
|
|
13165
13169
|
{
|
|
13166
13170
|
ref: n,
|
|
13167
13171
|
className: D("text-sm text-muted-foreground", e),
|
|
13168
13172
|
...t
|
|
13169
13173
|
}
|
|
13170
13174
|
));
|
|
13171
|
-
dh.displayName =
|
|
13175
|
+
dh.displayName = ss.displayName;
|
|
13172
13176
|
function pc({
|
|
13173
13177
|
className: e,
|
|
13174
13178
|
...t
|
|
@@ -13204,9 +13208,9 @@ var fh = Object.freeze({
|
|
|
13204
13208
|
)
|
|
13205
13209
|
);
|
|
13206
13210
|
hh.displayName = uC;
|
|
13207
|
-
var dC = hh, [
|
|
13211
|
+
var dC = hh, [gs, bR] = Ht("Tooltip", [
|
|
13208
13212
|
ir
|
|
13209
|
-
]),
|
|
13213
|
+
]), xs = ir(), ph = "TooltipProvider", fC = 700, Ri = "tooltip.open", [hC, Oa] = gs(ph), mh = (e) => {
|
|
13210
13214
|
const {
|
|
13211
13215
|
__scopeTooltip: t,
|
|
13212
13216
|
delayDuration: n = fC,
|
|
@@ -13242,7 +13246,7 @@ var dC = hh, [xs, bR] = Ht("Tooltip", [
|
|
|
13242
13246
|
);
|
|
13243
13247
|
};
|
|
13244
13248
|
mh.displayName = ph;
|
|
13245
|
-
var kr = "Tooltip", [pC,
|
|
13249
|
+
var kr = "Tooltip", [pC, vs] = gs(kr), gh = (e) => {
|
|
13246
13250
|
const {
|
|
13247
13251
|
__scopeTooltip: t,
|
|
13248
13252
|
children: n,
|
|
@@ -13251,7 +13255,7 @@ var kr = "Tooltip", [pC, bs] = xs(kr), gh = (e) => {
|
|
|
13251
13255
|
onOpenChange: s,
|
|
13252
13256
|
disableHoverableContent: i,
|
|
13253
13257
|
delayDuration: a
|
|
13254
|
-
} = e, c = Oa(kr, e.__scopeTooltip), u =
|
|
13258
|
+
} = e, c = Oa(kr, e.__scopeTooltip), u = xs(t), [d, h] = f.useState(null), m = Dt(), v = f.useRef(0), x = i ?? c.disableHoverableContent, g = a ?? c.delayDuration, p = f.useRef(!1), [b, w] = cn({
|
|
13255
13259
|
prop: r,
|
|
13256
13260
|
defaultProp: o ?? !1,
|
|
13257
13261
|
onChange: (S) => {
|
|
@@ -13294,7 +13298,7 @@ var kr = "Tooltip", [pC, bs] = xs(kr), gh = (e) => {
|
|
|
13294
13298
|
gh.displayName = kr;
|
|
13295
13299
|
var Ei = "TooltipTrigger", xh = f.forwardRef(
|
|
13296
13300
|
(e, t) => {
|
|
13297
|
-
const { __scopeTooltip: n, ...r } = e, o =
|
|
13301
|
+
const { __scopeTooltip: n, ...r } = e, o = vs(Ei, n), s = Oa(Ei, n), i = xs(n), a = f.useRef(null), c = Ce(t, a, o.onTriggerChange), u = f.useRef(!1), d = f.useRef(!1), h = f.useCallback(() => u.current = !1, []);
|
|
13298
13302
|
return f.useEffect(() => () => document.removeEventListener("pointerup", h), [h]), /* @__PURE__ */ l.jsx(va, { asChild: !0, ...i, children: /* @__PURE__ */ l.jsx(
|
|
13299
13303
|
me.button,
|
|
13300
13304
|
{
|
|
@@ -13321,15 +13325,15 @@ var Ei = "TooltipTrigger", xh = f.forwardRef(
|
|
|
13321
13325
|
}
|
|
13322
13326
|
);
|
|
13323
13327
|
xh.displayName = Ei;
|
|
13324
|
-
var mC = "TooltipPortal", [wR, gC] =
|
|
13328
|
+
var mC = "TooltipPortal", [wR, gC] = gs(mC, {
|
|
13325
13329
|
forceMount: void 0
|
|
13326
13330
|
}), Zn = "TooltipContent", vh = f.forwardRef(
|
|
13327
13331
|
(e, t) => {
|
|
13328
|
-
const n = gC(Zn, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, i =
|
|
13332
|
+
const n = gC(Zn, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, i = vs(Zn, e.__scopeTooltip);
|
|
13329
13333
|
return /* @__PURE__ */ l.jsx(xt, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ l.jsx(bh, { side: o, ...s, ref: t }) : /* @__PURE__ */ l.jsx(xC, { side: o, ...s, ref: t }) });
|
|
13330
13334
|
}
|
|
13331
13335
|
), xC = f.forwardRef((e, t) => {
|
|
13332
|
-
const n =
|
|
13336
|
+
const n = vs(Zn, e.__scopeTooltip), r = Oa(Zn, e.__scopeTooltip), o = f.useRef(null), s = Ce(t, o), [i, a] = f.useState(null), { trigger: c, onClose: u } = n, d = o.current, { onPointerInTransitChange: h } = r, m = f.useCallback(() => {
|
|
13333
13337
|
a(null), h(!1);
|
|
13334
13338
|
}, [h]), v = f.useCallback(
|
|
13335
13339
|
(x, g) => {
|
|
@@ -13354,7 +13358,7 @@ var mC = "TooltipPortal", [wR, gC] = xs(mC, {
|
|
|
13354
13358
|
return document.addEventListener("pointermove", x), () => document.removeEventListener("pointermove", x);
|
|
13355
13359
|
}
|
|
13356
13360
|
}, [c, d, i, u, m]), /* @__PURE__ */ l.jsx(bh, { ...e, ref: s });
|
|
13357
|
-
}), [vC, bC] =
|
|
13361
|
+
}), [vC, bC] = gs(kr, { isInside: !1 }), wC = lm("TooltipContent"), bh = f.forwardRef(
|
|
13358
13362
|
(e, t) => {
|
|
13359
13363
|
const {
|
|
13360
13364
|
__scopeTooltip: n,
|
|
@@ -13363,7 +13367,7 @@ var mC = "TooltipPortal", [wR, gC] = xs(mC, {
|
|
|
13363
13367
|
onEscapeKeyDown: s,
|
|
13364
13368
|
onPointerDownOutside: i,
|
|
13365
13369
|
...a
|
|
13366
|
-
} = e, c =
|
|
13370
|
+
} = e, c = vs(Zn, n), u = xs(n), { onClose: d } = c;
|
|
13367
13371
|
return f.useEffect(() => (document.addEventListener(Ri, d), () => document.removeEventListener(Ri, d)), [d]), f.useEffect(() => {
|
|
13368
13372
|
if (c.trigger) {
|
|
13369
13373
|
const h = (m) => {
|
|
@@ -13409,7 +13413,7 @@ var mC = "TooltipPortal", [wR, gC] = xs(mC, {
|
|
|
13409
13413
|
vh.displayName = Zn;
|
|
13410
13414
|
var wh = "TooltipArrow", yC = f.forwardRef(
|
|
13411
13415
|
(e, t) => {
|
|
13412
|
-
const { __scopeTooltip: n, ...r } = e, o =
|
|
13416
|
+
const { __scopeTooltip: n, ...r } = e, o = xs(n);
|
|
13413
13417
|
return bC(
|
|
13414
13418
|
wh,
|
|
13415
13419
|
n
|
|
@@ -13524,7 +13528,7 @@ const kC = NC, PC = jC, _C = AC, Sh = f.forwardRef(({ className: e, sideOffset:
|
|
|
13524
13528
|
));
|
|
13525
13529
|
Sh.displayName = yh.displayName;
|
|
13526
13530
|
const OC = "sidebar:state", MC = 60 * 60 * 24 * 7, DC = "16rem", LC = "18rem", FC = "3rem", BC = "b", Ch = f.createContext(null);
|
|
13527
|
-
function
|
|
13531
|
+
function bs() {
|
|
13528
13532
|
const e = f.useContext(Ch);
|
|
13529
13533
|
if (!e)
|
|
13530
13534
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
@@ -13594,7 +13598,7 @@ const Rh = f.forwardRef(
|
|
|
13594
13598
|
children: o,
|
|
13595
13599
|
...s
|
|
13596
13600
|
}, i) => {
|
|
13597
|
-
const { isMobile: a, state: c, openMobile: u, setOpenMobile: d } =
|
|
13601
|
+
const { isMobile: a, state: c, openMobile: u, setOpenMobile: d } = bs();
|
|
13598
13602
|
return n === "none" ? /* @__PURE__ */ l.jsx(
|
|
13599
13603
|
"div",
|
|
13600
13604
|
{
|
|
@@ -13667,7 +13671,7 @@ const Rh = f.forwardRef(
|
|
|
13667
13671
|
);
|
|
13668
13672
|
Rh.displayName = "Sidebar";
|
|
13669
13673
|
const Eh = f.forwardRef(({ className: e, onClick: t, ...n }, r) => {
|
|
13670
|
-
const { toggleSidebar: o } =
|
|
13674
|
+
const { toggleSidebar: o } = bs();
|
|
13671
13675
|
return /* @__PURE__ */ l.jsxs(
|
|
13672
13676
|
Ne,
|
|
13673
13677
|
{
|
|
@@ -13689,7 +13693,7 @@ const Eh = f.forwardRef(({ className: e, onClick: t, ...n }, r) => {
|
|
|
13689
13693
|
});
|
|
13690
13694
|
Eh.displayName = "SidebarTrigger";
|
|
13691
13695
|
const $C = f.forwardRef(({ className: e, ...t }, n) => {
|
|
13692
|
-
const { toggleSidebar: r } =
|
|
13696
|
+
const { toggleSidebar: r } = bs();
|
|
13693
13697
|
return /* @__PURE__ */ l.jsx(
|
|
13694
13698
|
"button",
|
|
13695
13699
|
{
|
|
@@ -13887,7 +13891,7 @@ const VC = Pr(
|
|
|
13887
13891
|
className: s,
|
|
13888
13892
|
...i
|
|
13889
13893
|
}, a) => {
|
|
13890
|
-
const c = e ? Qn : "button", { isMobile: u, state: d } =
|
|
13894
|
+
const c = e ? Qn : "button", { isMobile: u, state: d } = bs(), h = /* @__PURE__ */ l.jsx(
|
|
13891
13895
|
c,
|
|
13892
13896
|
{
|
|
13893
13897
|
ref: a,
|
|
@@ -14035,7 +14039,7 @@ function yR({
|
|
|
14035
14039
|
chatClassName: s = "",
|
|
14036
14040
|
...i
|
|
14037
14041
|
}) {
|
|
14038
|
-
return /* @__PURE__ */ l.jsx(
|
|
14042
|
+
return /* @__PURE__ */ l.jsx(so, { ...i, children: /* @__PURE__ */ l.jsxs(Th, { className: `w-full ${r}`, children: [
|
|
14039
14043
|
/* @__PURE__ */ l.jsxs(Rh, { className: `border-r ${o}`, children: [
|
|
14040
14044
|
/* @__PURE__ */ l.jsx(Nh, { children: /* @__PURE__ */ l.jsx(_h, { children: /* @__PURE__ */ l.jsx(Oh, { children: /* @__PURE__ */ l.jsx(Mh, { asChild: !0, size: "lg", children: /* @__PURE__ */ l.jsx("span", { className: "font-semibold", children: t }) }) }) }) }),
|
|
14041
14045
|
/* @__PURE__ */ l.jsx(jh, { children: n && /* @__PURE__ */ l.jsxs(Ah, { children: [
|
|
@@ -14057,7 +14061,7 @@ function yR({
|
|
|
14057
14061
|
/* @__PURE__ */ l.jsx("div", { className: "flex-1" }),
|
|
14058
14062
|
e
|
|
14059
14063
|
] }),
|
|
14060
|
-
/* @__PURE__ */ l.jsx("main", { className: `flex-1 min-h-0 overflow-hidden ${s}`, children: /* @__PURE__ */ l.jsx(
|
|
14064
|
+
/* @__PURE__ */ l.jsx("main", { className: `flex-1 min-h-0 overflow-hidden ${s}`, children: /* @__PURE__ */ l.jsx(xo, {}) })
|
|
14061
14065
|
] })
|
|
14062
14066
|
] }) });
|
|
14063
14067
|
}
|
|
@@ -14089,7 +14093,7 @@ function Fh(e) {
|
|
|
14089
14093
|
const t = f.useRef({ value: e, previous: e });
|
|
14090
14094
|
return f.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
14091
14095
|
}
|
|
14092
|
-
var
|
|
14096
|
+
var ws = "Switch", [eT, SR] = Ht(ws), [tT, nT] = eT(ws), Bh = f.forwardRef(
|
|
14093
14097
|
(e, t) => {
|
|
14094
14098
|
const {
|
|
14095
14099
|
__scopeSwitch: n,
|
|
@@ -14106,7 +14110,7 @@ var ys = "Switch", [eT, SR] = Ht(ys), [tT, nT] = eT(ys), Bh = f.forwardRef(
|
|
|
14106
14110
|
prop: o,
|
|
14107
14111
|
defaultProp: s ?? !1,
|
|
14108
14112
|
onChange: u,
|
|
14109
|
-
caller:
|
|
14113
|
+
caller: ws
|
|
14110
14114
|
});
|
|
14111
14115
|
return /* @__PURE__ */ l.jsxs(tT, { scope: n, checked: b, disabled: a, children: [
|
|
14112
14116
|
/* @__PURE__ */ l.jsx(
|
|
@@ -14144,7 +14148,7 @@ var ys = "Switch", [eT, SR] = Ht(ys), [tT, nT] = eT(ys), Bh = f.forwardRef(
|
|
|
14144
14148
|
] });
|
|
14145
14149
|
}
|
|
14146
14150
|
);
|
|
14147
|
-
Bh.displayName =
|
|
14151
|
+
Bh.displayName = ws;
|
|
14148
14152
|
var $h = "SwitchThumb", Hh = f.forwardRef(
|
|
14149
14153
|
(e, t) => {
|
|
14150
14154
|
const { __scopeSwitch: n, ...r } = e, o = nT($h, n);
|
|
@@ -14226,10 +14230,10 @@ const on = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
|
|
|
14226
14230
|
}
|
|
14227
14231
|
));
|
|
14228
14232
|
on.displayName = Wh.displayName;
|
|
14229
|
-
var sT = [" ", "Enter", "ArrowUp", "ArrowDown"], iT = [" ", "Enter"], Nn = "Select", [
|
|
14233
|
+
var sT = [" ", "Enter", "ArrowUp", "ArrowDown"], iT = [" ", "Enter"], Nn = "Select", [ys, Ss, aT] = la(Nn), [ar, CR] = Ht(Nn, [
|
|
14230
14234
|
aT,
|
|
14231
14235
|
ir
|
|
14232
|
-
]),
|
|
14236
|
+
]), Cs = ir(), [lT, mn] = ar(Nn), [cT, uT] = ar(Nn), Vh = (e) => {
|
|
14233
14237
|
const {
|
|
14234
14238
|
__scopeSelect: t,
|
|
14235
14239
|
children: n,
|
|
@@ -14245,7 +14249,7 @@ var sT = [" ", "Enter", "ArrowUp", "ArrowDown"], iT = [" ", "Enter"], Nn = "Sele
|
|
|
14245
14249
|
disabled: m,
|
|
14246
14250
|
required: v,
|
|
14247
14251
|
form: x
|
|
14248
|
-
} = e, g =
|
|
14252
|
+
} = e, g = Cs(t), [p, b] = f.useState(null), [w, y] = f.useState(null), [E, C] = f.useState(!1), T = is(u), [S, I] = cn({
|
|
14249
14253
|
prop: r,
|
|
14250
14254
|
defaultProp: o ?? !1,
|
|
14251
14255
|
onChange: s,
|
|
@@ -14276,7 +14280,7 @@ var sT = [" ", "Enter", "ArrowUp", "ArrowDown"], iT = [" ", "Enter"], Nn = "Sele
|
|
|
14276
14280
|
triggerPointerDownPosRef: M,
|
|
14277
14281
|
disabled: m,
|
|
14278
14282
|
children: [
|
|
14279
|
-
/* @__PURE__ */ l.jsx(
|
|
14283
|
+
/* @__PURE__ */ l.jsx(ys.Provider, { scope: t, children: /* @__PURE__ */ l.jsx(
|
|
14280
14284
|
cT,
|
|
14281
14285
|
{
|
|
14282
14286
|
scope: e.__scopeSelect,
|
|
@@ -14318,7 +14322,7 @@ var sT = [" ", "Enter", "ArrowUp", "ArrowDown"], iT = [" ", "Enter"], Nn = "Sele
|
|
|
14318
14322
|
Vh.displayName = Nn;
|
|
14319
14323
|
var Gh = "SelectTrigger", Kh = f.forwardRef(
|
|
14320
14324
|
(e, t) => {
|
|
14321
|
-
const { __scopeSelect: n, disabled: r = !1, ...o } = e, s =
|
|
14325
|
+
const { __scopeSelect: n, disabled: r = !1, ...o } = e, s = Cs(n), i = mn(Gh, n), a = i.disabled || r, c = Ce(t, i.onTriggerChange), u = Ss(n), d = f.useRef("touch"), [h, m, v] = xp((g) => {
|
|
14322
14326
|
const p = u().filter((y) => !y.disabled), b = p.find((y) => y.value === i.value), w = vp(p, g, b);
|
|
14323
14327
|
w !== void 0 && i.onValueChange(w.value);
|
|
14324
14328
|
}), x = (g) => {
|
|
@@ -14384,7 +14388,7 @@ var dT = "SelectIcon", Xh = f.forwardRef(
|
|
|
14384
14388
|
}
|
|
14385
14389
|
);
|
|
14386
14390
|
Xh.displayName = dT;
|
|
14387
|
-
var fT = "SelectPortal", Jh = (e) => /* @__PURE__ */ l.jsx(
|
|
14391
|
+
var fT = "SelectPortal", Jh = (e) => /* @__PURE__ */ l.jsx(Qo, { asChild: !0, ...e });
|
|
14388
14392
|
Jh.displayName = fT;
|
|
14389
14393
|
var jn = "SelectContent", Zh = f.forwardRef(
|
|
14390
14394
|
(e, t) => {
|
|
@@ -14393,8 +14397,8 @@ var jn = "SelectContent", Zh = f.forwardRef(
|
|
|
14393
14397
|
o(new DocumentFragment());
|
|
14394
14398
|
}, []), !n.open) {
|
|
14395
14399
|
const s = r;
|
|
14396
|
-
return s ?
|
|
14397
|
-
/* @__PURE__ */ l.jsx(Qh, { scope: e.__scopeSelect, children: /* @__PURE__ */ l.jsx(
|
|
14400
|
+
return s ? Bo.createPortal(
|
|
14401
|
+
/* @__PURE__ */ l.jsx(Qh, { scope: e.__scopeSelect, children: /* @__PURE__ */ l.jsx(ys.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ l.jsx("div", { children: e.children }) }) }),
|
|
14398
14402
|
s
|
|
14399
14403
|
) : null;
|
|
14400
14404
|
}
|
|
@@ -14426,7 +14430,7 @@ var Ot = 10, [Qh, gn] = ar(jn), hT = "SelectContentImpl", pT = Yn("SelectContent
|
|
|
14426
14430
|
...b
|
|
14427
14431
|
} = e, w = mn(jn, n), [y, E] = f.useState(null), [C, T] = f.useState(null), S = Ce(t, (Y) => E(Y)), [I, N] = f.useState(null), [j, M] = f.useState(
|
|
14428
14432
|
null
|
|
14429
|
-
), W =
|
|
14433
|
+
), W = Ss(n), [G, A] = f.useState(!1), $ = f.useRef(!1);
|
|
14430
14434
|
f.useEffect(() => {
|
|
14431
14435
|
if (y) return oa(y);
|
|
14432
14436
|
}, [y]), ra();
|
|
@@ -14510,8 +14514,8 @@ var Ot = 10, [Qh, gn] = ar(jn), hT = "SelectContentImpl", pT = Yn("SelectContent
|
|
|
14510
14514
|
position: r,
|
|
14511
14515
|
isPositioned: G,
|
|
14512
14516
|
searchRef: z,
|
|
14513
|
-
children: /* @__PURE__ */ l.jsx(
|
|
14514
|
-
|
|
14517
|
+
children: /* @__PURE__ */ l.jsx(ts, { as: pT, allowPinchZoom: !0, children: /* @__PURE__ */ l.jsx(
|
|
14518
|
+
Zo,
|
|
14515
14519
|
{
|
|
14516
14520
|
asChild: !0,
|
|
14517
14521
|
trapped: w.open,
|
|
@@ -14574,7 +14578,7 @@ var Ot = 10, [Qh, gn] = ar(jn), hT = "SelectContentImpl", pT = Yn("SelectContent
|
|
|
14574
14578
|
);
|
|
14575
14579
|
ep.displayName = hT;
|
|
14576
14580
|
var mT = "SelectItemAlignedPosition", tp = f.forwardRef((e, t) => {
|
|
14577
|
-
const { __scopeSelect: n, onPlaced: r, ...o } = e, s = mn(jn, n), i = gn(jn, n), [a, c] = f.useState(null), [u, d] = f.useState(null), h = Ce(t, (S) => d(S)), m =
|
|
14581
|
+
const { __scopeSelect: n, onPlaced: r, ...o } = e, s = mn(jn, n), i = gn(jn, n), [a, c] = f.useState(null), [u, d] = f.useState(null), h = Ce(t, (S) => d(S)), m = Ss(n), v = f.useRef(!1), x = f.useRef(!0), { viewport: g, selectedItem: p, selectedItemText: b, focusSelectedItem: w } = i, y = f.useCallback(() => {
|
|
14578
14582
|
if (s.trigger && s.valueNode && a && u && g && p && b) {
|
|
14579
14583
|
const S = s.trigger.getBoundingClientRect(), I = u.getBoundingClientRect(), N = s.valueNode.getBoundingClientRect(), j = b.getBoundingClientRect();
|
|
14580
14584
|
if (s.dir !== "rtl") {
|
|
@@ -14684,7 +14688,7 @@ var gT = "SelectPopperPosition", Ii = f.forwardRef((e, t) => {
|
|
|
14684
14688
|
align: r = "start",
|
|
14685
14689
|
collisionPadding: o = Ot,
|
|
14686
14690
|
...s
|
|
14687
|
-
} = e, i =
|
|
14691
|
+
} = e, i = Cs(n);
|
|
14688
14692
|
return /* @__PURE__ */ l.jsx(
|
|
14689
14693
|
ba,
|
|
14690
14694
|
{
|
|
@@ -14720,7 +14724,7 @@ var [xT, Ma] = ar(jn, {}), Ni = "SelectViewport", np = f.forwardRef(
|
|
|
14720
14724
|
nonce: r
|
|
14721
14725
|
}
|
|
14722
14726
|
),
|
|
14723
|
-
/* @__PURE__ */ l.jsx(
|
|
14727
|
+
/* @__PURE__ */ l.jsx(ys.Slot, { scope: n, children: /* @__PURE__ */ l.jsx(
|
|
14724
14728
|
me.div,
|
|
14725
14729
|
{
|
|
14726
14730
|
"data-radix-select-viewport": "",
|
|
@@ -14774,7 +14778,7 @@ var op = "SelectLabel", sp = f.forwardRef(
|
|
|
14774
14778
|
}
|
|
14775
14779
|
);
|
|
14776
14780
|
sp.displayName = op;
|
|
14777
|
-
var
|
|
14781
|
+
var Fo = "SelectItem", [yT, ip] = ar(Fo), ap = f.forwardRef(
|
|
14778
14782
|
(e, t) => {
|
|
14779
14783
|
const {
|
|
14780
14784
|
__scopeSelect: n,
|
|
@@ -14782,7 +14786,7 @@ var Bo = "SelectItem", [yT, ip] = ar(Bo), ap = f.forwardRef(
|
|
|
14782
14786
|
disabled: o = !1,
|
|
14783
14787
|
textValue: s,
|
|
14784
14788
|
...i
|
|
14785
|
-
} = e, a = mn(
|
|
14789
|
+
} = e, a = mn(Fo, n), c = gn(Fo, n), u = a.value === r, [d, h] = f.useState(s ?? ""), [m, v] = f.useState(!1), x = Ce(
|
|
14786
14790
|
t,
|
|
14787
14791
|
(w) => {
|
|
14788
14792
|
var y;
|
|
@@ -14807,7 +14811,7 @@ var Bo = "SelectItem", [yT, ip] = ar(Bo), ap = f.forwardRef(
|
|
|
14807
14811
|
h((y) => y || ((w == null ? void 0 : w.textContent) ?? "").trim());
|
|
14808
14812
|
}, []),
|
|
14809
14813
|
children: /* @__PURE__ */ l.jsx(
|
|
14810
|
-
|
|
14814
|
+
ys.ItemSlot,
|
|
14811
14815
|
{
|
|
14812
14816
|
scope: n,
|
|
14813
14817
|
value: r,
|
|
@@ -14857,7 +14861,7 @@ var Bo = "SelectItem", [yT, ip] = ar(Bo), ap = f.forwardRef(
|
|
|
14857
14861
|
);
|
|
14858
14862
|
}
|
|
14859
14863
|
);
|
|
14860
|
-
ap.displayName =
|
|
14864
|
+
ap.displayName = Fo;
|
|
14861
14865
|
var pr = "SelectItemText", lp = f.forwardRef(
|
|
14862
14866
|
(e, t) => {
|
|
14863
14867
|
const { __scopeSelect: n, className: r, style: o, ...s } = e, i = mn(pr, n), a = gn(pr, n), c = ip(pr, n), u = uT(pr, n), [d, h] = f.useState(null), m = Ce(
|
|
@@ -14874,7 +14878,7 @@ var pr = "SelectItemText", lp = f.forwardRef(
|
|
|
14874
14878
|
), { onNativeOptionAdd: g, onNativeOptionRemove: p } = u;
|
|
14875
14879
|
return nt(() => (g(x), () => p(x)), [g, p, x]), /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
14876
14880
|
/* @__PURE__ */ l.jsx(me.span, { id: c.textId, ...s, ref: m }),
|
|
14877
|
-
c.isSelected && i.valueNode && !i.valueNodeHasChildren ?
|
|
14881
|
+
c.isSelected && i.valueNode && !i.valueNodeHasChildren ? Bo.createPortal(s.children, i.valueNode) : null
|
|
14878
14882
|
] });
|
|
14879
14883
|
}
|
|
14880
14884
|
);
|
|
@@ -14935,7 +14939,7 @@ var Ai = "SelectScrollDownButton", fp = f.forwardRef((e, t) => {
|
|
|
14935
14939
|
});
|
|
14936
14940
|
fp.displayName = Ai;
|
|
14937
14941
|
var hp = f.forwardRef((e, t) => {
|
|
14938
|
-
const { __scopeSelect: n, onAutoScroll: r, ...o } = e, s = gn("SelectScrollButton", n), i = f.useRef(null), a =
|
|
14942
|
+
const { __scopeSelect: n, onAutoScroll: r, ...o } = e, s = gn("SelectScrollButton", n), i = f.useRef(null), a = Ss(n), c = f.useCallback(() => {
|
|
14939
14943
|
i.current !== null && (window.clearInterval(i.current), i.current = null);
|
|
14940
14944
|
}, []);
|
|
14941
14945
|
return f.useEffect(() => () => c(), [c]), nt(() => {
|
|
@@ -14970,7 +14974,7 @@ var hp = f.forwardRef((e, t) => {
|
|
|
14970
14974
|
pp.displayName = ST;
|
|
14971
14975
|
var ki = "SelectArrow", CT = f.forwardRef(
|
|
14972
14976
|
(e, t) => {
|
|
14973
|
-
const { __scopeSelect: n, ...r } = e, o =
|
|
14977
|
+
const { __scopeSelect: n, ...r } = e, o = Cs(n), s = mn(ki, n), i = gn(ki, n);
|
|
14974
14978
|
return s.open && i.position === "popper" ? /* @__PURE__ */ l.jsx(wa, { ...o, ...r, ref: t }) : null;
|
|
14975
14979
|
}
|
|
14976
14980
|
);
|
|
@@ -15135,7 +15139,7 @@ const OT = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
|
|
|
15135
15139
|
}
|
|
15136
15140
|
));
|
|
15137
15141
|
OT.displayName = Rp.displayName;
|
|
15138
|
-
const
|
|
15142
|
+
const vo = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
|
|
15139
15143
|
"div",
|
|
15140
15144
|
{
|
|
15141
15145
|
ref: n,
|
|
@@ -15146,8 +15150,8 @@ const bo = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
|
|
|
15146
15150
|
...t
|
|
15147
15151
|
}
|
|
15148
15152
|
));
|
|
15149
|
-
|
|
15150
|
-
const
|
|
15153
|
+
vo.displayName = "Card";
|
|
15154
|
+
const bo = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
|
|
15151
15155
|
"div",
|
|
15152
15156
|
{
|
|
15153
15157
|
ref: n,
|
|
@@ -15155,8 +15159,8 @@ const wo = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
|
|
|
15155
15159
|
...t
|
|
15156
15160
|
}
|
|
15157
15161
|
));
|
|
15158
|
-
|
|
15159
|
-
const
|
|
15162
|
+
bo.displayName = "CardHeader";
|
|
15163
|
+
const wo = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
|
|
15160
15164
|
"h3",
|
|
15161
15165
|
{
|
|
15162
15166
|
ref: n,
|
|
@@ -15167,7 +15171,7 @@ const yo = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
|
|
|
15167
15171
|
...t
|
|
15168
15172
|
}
|
|
15169
15173
|
));
|
|
15170
|
-
|
|
15174
|
+
wo.displayName = "CardTitle";
|
|
15171
15175
|
const MT = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
|
|
15172
15176
|
"p",
|
|
15173
15177
|
{
|
|
@@ -15177,8 +15181,8 @@ const MT = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
|
|
|
15177
15181
|
}
|
|
15178
15182
|
));
|
|
15179
15183
|
MT.displayName = "CardDescription";
|
|
15180
|
-
const
|
|
15181
|
-
|
|
15184
|
+
const yo = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx("div", { ref: n, className: D("p-6 pt-0", e), ...t }));
|
|
15185
|
+
yo.displayName = "CardContent";
|
|
15182
15186
|
const DT = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
|
|
15183
15187
|
"div",
|
|
15184
15188
|
{
|
|
@@ -15254,12 +15258,12 @@ function TR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
15254
15258
|
/* @__PURE__ */ l.jsx(dh, { children: "Configure your chat interface, API connection, and behavior preferences." })
|
|
15255
15259
|
] }),
|
|
15256
15260
|
/* @__PURE__ */ l.jsxs("div", { className: "space-y-6 py-6", children: [
|
|
15257
|
-
/* @__PURE__ */ l.jsxs(
|
|
15258
|
-
/* @__PURE__ */ l.jsx(
|
|
15261
|
+
/* @__PURE__ */ l.jsxs(vo, { children: [
|
|
15262
|
+
/* @__PURE__ */ l.jsx(bo, { className: "pb-3", children: /* @__PURE__ */ l.jsxs(wo, { className: "text-lg flex items-center gap-2", children: [
|
|
15259
15263
|
/* @__PURE__ */ l.jsx(nm, { className: "h-5 w-5" }),
|
|
15260
15264
|
"API Configuration"
|
|
15261
15265
|
] }) }),
|
|
15262
|
-
/* @__PURE__ */ l.jsxs(
|
|
15266
|
+
/* @__PURE__ */ l.jsxs(yo, { className: "space-y-4", children: [
|
|
15263
15267
|
/* @__PURE__ */ l.jsxs("div", { className: "space-y-2", children: [
|
|
15264
15268
|
/* @__PURE__ */ l.jsx(Tt, { htmlFor: "api-url", children: "API Base URL" }),
|
|
15265
15269
|
/* @__PURE__ */ l.jsxs("div", { className: "flex gap-2", children: [
|
|
@@ -15321,12 +15325,12 @@ function TR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
15321
15325
|
] })
|
|
15322
15326
|
] })
|
|
15323
15327
|
] }),
|
|
15324
|
-
/* @__PURE__ */ l.jsxs(
|
|
15325
|
-
/* @__PURE__ */ l.jsx(
|
|
15328
|
+
/* @__PURE__ */ l.jsxs(vo, { children: [
|
|
15329
|
+
/* @__PURE__ */ l.jsx(bo, { className: "pb-3", children: /* @__PURE__ */ l.jsxs(wo, { className: "text-lg flex items-center gap-2", children: [
|
|
15326
15330
|
/* @__PURE__ */ l.jsx(sm, { className: "h-5 w-5" }),
|
|
15327
15331
|
"Interface Settings"
|
|
15328
15332
|
] }) }),
|
|
15329
|
-
/* @__PURE__ */ l.jsxs(
|
|
15333
|
+
/* @__PURE__ */ l.jsxs(yo, { className: "space-y-4", children: [
|
|
15330
15334
|
/* @__PURE__ */ l.jsxs("div", { className: "space-y-2", children: [
|
|
15331
15335
|
/* @__PURE__ */ l.jsx(Tt, { htmlFor: "layout", children: "Layout Style" }),
|
|
15332
15336
|
/* @__PURE__ */ l.jsxs(
|
|
@@ -15416,12 +15420,12 @@ function TR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
15416
15420
|
] })
|
|
15417
15421
|
] })
|
|
15418
15422
|
] }),
|
|
15419
|
-
/* @__PURE__ */ l.jsxs(
|
|
15420
|
-
/* @__PURE__ */ l.jsx(
|
|
15423
|
+
/* @__PURE__ */ l.jsxs(vo, { children: [
|
|
15424
|
+
/* @__PURE__ */ l.jsx(bo, { className: "pb-3", children: /* @__PURE__ */ l.jsxs(wo, { className: "text-lg flex items-center gap-2", children: [
|
|
15421
15425
|
/* @__PURE__ */ l.jsx(im, { className: "h-5 w-5" }),
|
|
15422
15426
|
"Behavior Settings"
|
|
15423
15427
|
] }) }),
|
|
15424
|
-
/* @__PURE__ */ l.jsxs(
|
|
15428
|
+
/* @__PURE__ */ l.jsxs(yo, { className: "space-y-4", children: [
|
|
15425
15429
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
15426
15430
|
/* @__PURE__ */ l.jsxs("div", { children: [
|
|
15427
15431
|
/* @__PURE__ */ l.jsx(Tt, { htmlFor: "auto-save", children: "Auto-save Conversations" }),
|
|
@@ -15521,14 +15525,14 @@ function RR({
|
|
|
15521
15525
|
var d;
|
|
15522
15526
|
(d = s.onThreadChange) == null || d.call(s, u);
|
|
15523
15527
|
}, [s.onThreadChange]);
|
|
15524
|
-
return e === "fullscreen" ? /* @__PURE__ */ l.jsx(
|
|
15528
|
+
return e === "fullscreen" ? /* @__PURE__ */ l.jsx(so, { ...s, onThreadChange: c, children: /* @__PURE__ */ l.jsx(
|
|
15525
15529
|
"div",
|
|
15526
15530
|
{
|
|
15527
15531
|
className: `${i(t)} flex flex-col overflow-hidden ${r} ${o.container || ""}`,
|
|
15528
15532
|
style: a(t),
|
|
15529
|
-
children: /* @__PURE__ */ l.jsx(
|
|
15533
|
+
children: /* @__PURE__ */ l.jsx(xo, { className: "flex-1", onError: s.onError, enableFileUpload: !0 })
|
|
15530
15534
|
}
|
|
15531
|
-
) }) : e === "tabs" ? /* @__PURE__ */ l.jsx(
|
|
15535
|
+
) }) : e === "tabs" ? /* @__PURE__ */ l.jsx(so, { ...s, onThreadChange: c, children: /* @__PURE__ */ l.jsx(
|
|
15532
15536
|
"div",
|
|
15533
15537
|
{
|
|
15534
15538
|
className: `${i(t)} flex flex-col overflow-hidden ${r} ${o.container || ""}`,
|
|
@@ -15543,10 +15547,10 @@ function RR({
|
|
|
15543
15547
|
className: "h-full"
|
|
15544
15548
|
}
|
|
15545
15549
|
) }),
|
|
15546
|
-
/* @__PURE__ */ l.jsx("div", { className: `flex-1 min-w-0 overflow-hidden ${o.chatArea || ""}`, children: /* @__PURE__ */ l.jsx(
|
|
15550
|
+
/* @__PURE__ */ l.jsx("div", { className: `flex-1 min-w-0 overflow-hidden ${o.chatArea || ""}`, children: /* @__PURE__ */ l.jsx(xo, { onError: s.onError, enableFileUpload: !0 }) })
|
|
15547
15551
|
] })
|
|
15548
15552
|
}
|
|
15549
|
-
) }) : /* @__PURE__ */ l.jsx(
|
|
15553
|
+
) }) : /* @__PURE__ */ l.jsx(so, { ...s, onThreadChange: c, children: /* @__PURE__ */ l.jsxs(
|
|
15550
15554
|
"div",
|
|
15551
15555
|
{
|
|
15552
15556
|
className: `${i(t)} flex overflow-hidden ${r} ${o.container || ""}`,
|
|
@@ -15561,7 +15565,7 @@ function RR({
|
|
|
15561
15565
|
className: "h-full"
|
|
15562
15566
|
}
|
|
15563
15567
|
) }),
|
|
15564
|
-
/* @__PURE__ */ l.jsx("div", { className: `flex-1 min-w-0 overflow-hidden ${o.chatArea || ""}`, children: /* @__PURE__ */ l.jsx(
|
|
15568
|
+
/* @__PURE__ */ l.jsx("div", { className: `flex-1 min-w-0 overflow-hidden ${o.chatArea || ""}`, children: /* @__PURE__ */ l.jsx(xo, { onError: s.onError, enableFileUpload: !0 }) })
|
|
15565
15569
|
]
|
|
15566
15570
|
}
|
|
15567
15571
|
) });
|
|
@@ -15570,12 +15574,12 @@ export {
|
|
|
15570
15574
|
Gg as Api,
|
|
15571
15575
|
Gg as ApiClient,
|
|
15572
15576
|
Gg as ChatApi,
|
|
15573
|
-
|
|
15577
|
+
xo as ChatInterface,
|
|
15574
15578
|
yR as ChatMainLayout,
|
|
15575
|
-
|
|
15579
|
+
so as ChatProvider,
|
|
15576
15580
|
mR as ChatRoutingProvider,
|
|
15577
15581
|
TR as ChatSettings,
|
|
15578
|
-
|
|
15582
|
+
Ls as MarkdownContent,
|
|
15579
15583
|
jw as MessageComponent,
|
|
15580
15584
|
Hw as MessageList,
|
|
15581
15585
|
Ti as ThreadManager,
|