teodor-new-chat-ui 4.3.564 → 4.3.565
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 +322 -313
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +24 -24
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var Ag = Object.defineProperty;
|
|
2
2
|
var Pg = (e, t, n) => t in e ? Ag(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
3
|
+
var ya = (e, t, n) => Pg(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import * as h from "react";
|
|
5
|
-
import F, { useMemo as He, createContext as Dr, useContext as Lr, useState as me, useRef as Ae, useCallback as ce, useEffect as Ge, useReducer as jg, memo as _g, createElement as Qo, useImperativeHandle as Og, useLayoutEffect as Mg, forwardRef as Dg, isValidElement as
|
|
5
|
+
import F, { useMemo as He, createContext as Dr, useContext as Lr, useState as me, useRef as Ae, useCallback as ce, useEffect as Ge, useReducer as jg, memo as _g, createElement as Qo, useImperativeHandle as Og, useLayoutEffect as Mg, forwardRef as Dg, isValidElement as Sa } from "react";
|
|
6
6
|
import { Slot as Lg, createSlot as Nr, createSlottable as $g } from "@radix-ui/react-slot";
|
|
7
7
|
import { cva as bo } from "class-variance-authority";
|
|
8
8
|
import { clsx as Fg } from "clsx";
|
|
9
9
|
import { twMerge as Bg } from "tailwind-merge";
|
|
10
|
-
import { X as nr, Loader as qa, ChevronUp as Pi, ChevronDown as
|
|
10
|
+
import { X as nr, Loader as qa, ChevronUp as Pi, ChevronDown as js, ChevronLeft as zg, ChevronRight as ji, Copy as Iu, Edit as Nu, RotateCcw as Au, Bot as Bo, Wrench as Hg, User as Ug, Check as _s, Circle as Wg, Square as Vg, Send as Kg, Paperclip as Wl, Loader2 as Xn, Plus as qg, FileSpreadsheet as Gg, Edit3 as yo, Search as Yg, Calendar as Xg, MoreHorizontal as Pu, Share2 as Jg, Trash2 as Zg, MessageSquare as ju, Maximize2 as Qg, Minimize2 as ex, History as tx } from "lucide-react";
|
|
11
11
|
import * as So from "react-dom";
|
|
12
12
|
import _i from "react-dom";
|
|
13
13
|
const Vl = 120;
|
|
@@ -890,15 +890,15 @@ Check the top-level render call using <` + Q + ">.");
|
|
|
890
890
|
if (Fe.call(ee, "key")) {
|
|
891
891
|
var Kn = q(R), Vt = Object.keys(ee).filter(function(Ng) {
|
|
892
892
|
return Ng !== "key";
|
|
893
|
-
}),
|
|
894
|
-
if (!yt[Kn +
|
|
893
|
+
}), ba = Vt.length > 0 ? "{key: someKey, " + Vt.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
894
|
+
if (!yt[Kn + ba]) {
|
|
895
895
|
var Ig = Vt.length > 0 ? "{" + Vt.join(": ..., ") + ": ...}" : "{}";
|
|
896
896
|
w(`A props object containing a "key" prop is being spread into JSX:
|
|
897
897
|
let props = %s;
|
|
898
898
|
<%s {...props} />
|
|
899
899
|
React keys must be passed directly to JSX without using spread:
|
|
900
900
|
let props = %s;
|
|
901
|
-
<%s key={someKey} {...props} />`,
|
|
901
|
+
<%s key={someKey} {...props} />`, ba, Kn, Ig, Kn), yt[Kn + ba] = !0;
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
904
|
return R === r ? Je(It) : et(It), It;
|
|
@@ -995,10 +995,10 @@ function Ou(e, t) {
|
|
|
995
995
|
return e.apply(t, arguments);
|
|
996
996
|
};
|
|
997
997
|
}
|
|
998
|
-
const { toString: gx } = Object.prototype, { getPrototypeOf: Oi } = Object, { iterator:
|
|
998
|
+
const { toString: gx } = Object.prototype, { getPrototypeOf: Oi } = Object, { iterator: Os, toStringTag: Mu } = Symbol, Ms = /* @__PURE__ */ ((e) => (t) => {
|
|
999
999
|
const n = gx.call(t);
|
|
1000
1000
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
1001
|
-
})(/* @__PURE__ */ Object.create(null)), xn = (e) => (e = e.toLowerCase(), (t) =>
|
|
1001
|
+
})(/* @__PURE__ */ Object.create(null)), xn = (e) => (e = e.toLowerCase(), (t) => Ms(t) === e), Ds = (e) => (t) => typeof t === e, { isArray: $r } = Array, Ar = Ds("undefined");
|
|
1002
1002
|
function To(e) {
|
|
1003
1003
|
return e !== null && !Ar(e) && e.constructor !== null && !Ar(e.constructor) && Yt(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
1004
1004
|
}
|
|
@@ -1007,11 +1007,11 @@ function xx(e) {
|
|
|
1007
1007
|
let t;
|
|
1008
1008
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Du(e.buffer), t;
|
|
1009
1009
|
}
|
|
1010
|
-
const vx =
|
|
1011
|
-
if (
|
|
1010
|
+
const vx = Ds("string"), Yt = Ds("function"), Lu = Ds("number"), Co = (e) => e !== null && typeof e == "object", wx = (e) => e === !0 || e === !1, es = (e) => {
|
|
1011
|
+
if (Ms(e) !== "object")
|
|
1012
1012
|
return !1;
|
|
1013
1013
|
const t = Oi(e);
|
|
1014
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Mu in e) && !(
|
|
1014
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Mu in e) && !(Os in e);
|
|
1015
1015
|
}, bx = (e) => {
|
|
1016
1016
|
if (!Co(e) || To(e))
|
|
1017
1017
|
return !1;
|
|
@@ -1022,7 +1022,7 @@ const vx = Ms("string"), Yt = Ms("function"), Lu = Ms("number"), Co = (e) => e !
|
|
|
1022
1022
|
}
|
|
1023
1023
|
}, yx = xn("Date"), Sx = xn("File"), Tx = xn("Blob"), Cx = xn("FileList"), Ex = (e) => Co(e) && Yt(e.pipe), kx = (e) => {
|
|
1024
1024
|
let t;
|
|
1025
|
-
return e && (typeof FormData == "function" && e instanceof FormData || Yt(e.append) && ((t =
|
|
1025
|
+
return e && (typeof FormData == "function" && e instanceof FormData || Yt(e.append) && ((t = Ms(e)) === "formdata" || // detect form-data instance
|
|
1026
1026
|
t === "object" && Yt(e.toString) && e.toString() === "[object FormData]"));
|
|
1027
1027
|
}, Rx = xn("URLSearchParams"), [Ix, Nx, Ax, Px] = ["ReadableStream", "Request", "Response", "Headers"].map(xn), jx = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
1028
1028
|
function Eo(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
@@ -1092,7 +1092,7 @@ const _x = (e, t, n, { allOwnKeys: r } = {}) => (Eo(t, (o, s) => {
|
|
|
1092
1092
|
n[t] = e[t];
|
|
1093
1093
|
return n;
|
|
1094
1094
|
}, Fx = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Oi(Uint8Array)), Bx = (e, t) => {
|
|
1095
|
-
const r = (e && e[
|
|
1095
|
+
const r = (e && e[Os]).call(e);
|
|
1096
1096
|
let o;
|
|
1097
1097
|
for (; (o = r.next()) && !o.done; ) {
|
|
1098
1098
|
const s = o.value;
|
|
@@ -1140,7 +1140,7 @@ const _x = (e, t, n, { allOwnKeys: r } = {}) => (Eo(t, (o, s) => {
|
|
|
1140
1140
|
}, qx = () => {
|
|
1141
1141
|
}, Gx = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
1142
1142
|
function Yx(e) {
|
|
1143
|
-
return !!(e && Yt(e.append) && e[Mu] === "FormData" && e[
|
|
1143
|
+
return !!(e && Yt(e.append) && e[Mu] === "FormData" && e[Os]);
|
|
1144
1144
|
}
|
|
1145
1145
|
const Xx = (e) => {
|
|
1146
1146
|
const t = new Array(10), n = (r, o) => {
|
|
@@ -1168,7 +1168,7 @@ const Xx = (e) => {
|
|
|
1168
1168
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
1169
1169
|
typeof setImmediate == "function",
|
|
1170
1170
|
Yt(Gn.postMessage)
|
|
1171
|
-
), Qx = typeof queueMicrotask < "u" ? queueMicrotask.bind(Gn) : typeof process < "u" && process.nextTick || zu, ev = (e) => e != null && Yt(e[
|
|
1171
|
+
), Qx = typeof queueMicrotask < "u" ? queueMicrotask.bind(Gn) : typeof process < "u" && process.nextTick || zu, ev = (e) => e != null && Yt(e[Os]), K = {
|
|
1172
1172
|
isArray: $r,
|
|
1173
1173
|
isArrayBuffer: Du,
|
|
1174
1174
|
isBuffer: To,
|
|
@@ -1201,7 +1201,7 @@ const Xx = (e) => {
|
|
|
1201
1201
|
stripBOM: Ox,
|
|
1202
1202
|
inherits: Mx,
|
|
1203
1203
|
toFlatObject: Dx,
|
|
1204
|
-
kindOf:
|
|
1204
|
+
kindOf: Ms,
|
|
1205
1205
|
kindOfTest: xn,
|
|
1206
1206
|
endsWith: Lx,
|
|
1207
1207
|
toArray: $x,
|
|
@@ -1298,7 +1298,7 @@ function nv(e) {
|
|
|
1298
1298
|
const rv = K.toFlatObject(K, {}, null, function(t) {
|
|
1299
1299
|
return /^is[A-Z]/.test(t);
|
|
1300
1300
|
});
|
|
1301
|
-
function
|
|
1301
|
+
function Ls(e, t, n) {
|
|
1302
1302
|
if (!K.isObject(e))
|
|
1303
1303
|
throw new TypeError("target must be an object");
|
|
1304
1304
|
t = t || new FormData(), n = K.toFlatObject(n, {
|
|
@@ -1376,7 +1376,7 @@ function Zl(e) {
|
|
|
1376
1376
|
});
|
|
1377
1377
|
}
|
|
1378
1378
|
function Mi(e, t) {
|
|
1379
|
-
this._pairs = [], e &&
|
|
1379
|
+
this._pairs = [], e && Ls(e, this, t);
|
|
1380
1380
|
}
|
|
1381
1381
|
const Vu = Mi.prototype;
|
|
1382
1382
|
Vu.append = function(t, n) {
|
|
@@ -1487,7 +1487,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", dv
|
|
|
1487
1487
|
...lv
|
|
1488
1488
|
};
|
|
1489
1489
|
function pv(e, t) {
|
|
1490
|
-
return
|
|
1490
|
+
return Ls(e, new $t.classes.URLSearchParams(), {
|
|
1491
1491
|
visitor: function(n, r, o, s) {
|
|
1492
1492
|
return $t.isNode && K.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
1493
1493
|
},
|
|
@@ -1550,7 +1550,7 @@ const ko = {
|
|
|
1550
1550
|
return pv(t, this.formSerializer).toString();
|
|
1551
1551
|
if ((i = K.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
1552
1552
|
const l = this.env && this.env.FormData;
|
|
1553
|
-
return
|
|
1553
|
+
return Ls(
|
|
1554
1554
|
i ? { "files[]": t } : t,
|
|
1555
1555
|
l && new l(),
|
|
1556
1556
|
this.formSerializer
|
|
@@ -1640,7 +1640,7 @@ function wv(e) {
|
|
|
1640
1640
|
return t;
|
|
1641
1641
|
}
|
|
1642
1642
|
const bv = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
1643
|
-
function
|
|
1643
|
+
function Ta(e, t, n, r, o) {
|
|
1644
1644
|
if (K.isFunction(r))
|
|
1645
1645
|
return r.call(this, t, n);
|
|
1646
1646
|
if (o && (t = n), !!K.isString(t)) {
|
|
@@ -1714,7 +1714,7 @@ let Xt = class {
|
|
|
1714
1714
|
has(t, n) {
|
|
1715
1715
|
if (t = Xr(t), t) {
|
|
1716
1716
|
const r = K.findKey(this, t);
|
|
1717
|
-
return !!(r && this[r] !== void 0 && (!n ||
|
|
1717
|
+
return !!(r && this[r] !== void 0 && (!n || Ta(this, this[r], r, n)));
|
|
1718
1718
|
}
|
|
1719
1719
|
return !1;
|
|
1720
1720
|
}
|
|
@@ -1724,7 +1724,7 @@ let Xt = class {
|
|
|
1724
1724
|
function s(a) {
|
|
1725
1725
|
if (a = Xr(a), a) {
|
|
1726
1726
|
const i = K.findKey(r, a);
|
|
1727
|
-
i && (!n ||
|
|
1727
|
+
i && (!n || Ta(r, r[i], i, n)) && (delete r[i], o = !0);
|
|
1728
1728
|
}
|
|
1729
1729
|
}
|
|
1730
1730
|
return K.isArray(t) ? t.forEach(s) : s(t), o;
|
|
@@ -1734,7 +1734,7 @@ let Xt = class {
|
|
|
1734
1734
|
let r = n.length, o = !1;
|
|
1735
1735
|
for (; r--; ) {
|
|
1736
1736
|
const s = n[r];
|
|
1737
|
-
(!t ||
|
|
1737
|
+
(!t || Ta(this, this[s], s, t, !0)) && (delete this[s], o = !0);
|
|
1738
1738
|
}
|
|
1739
1739
|
return o;
|
|
1740
1740
|
}
|
|
@@ -1801,7 +1801,7 @@ K.reduceDescriptors(Xt.prototype, ({ value: e }, t) => {
|
|
|
1801
1801
|
};
|
|
1802
1802
|
});
|
|
1803
1803
|
K.freezeMethods(Xt);
|
|
1804
|
-
function
|
|
1804
|
+
function Ca(e, t) {
|
|
1805
1805
|
const n = this || ko, r = t || n, o = Xt.from(r.headers);
|
|
1806
1806
|
let s = r.data;
|
|
1807
1807
|
return K.forEach(e, function(i) {
|
|
@@ -1859,7 +1859,7 @@ function Ev(e, t) {
|
|
|
1859
1859
|
}, r - p)));
|
|
1860
1860
|
}, () => o && a(o)];
|
|
1861
1861
|
}
|
|
1862
|
-
const
|
|
1862
|
+
const hs = (e, t, n = 3) => {
|
|
1863
1863
|
let r = 0;
|
|
1864
1864
|
const o = Cv(50, 250);
|
|
1865
1865
|
return Ev((s) => {
|
|
@@ -2059,7 +2059,7 @@ const Zu = (e) => {
|
|
|
2059
2059
|
)), x = null;
|
|
2060
2060
|
}, s === void 0 && a.setContentType(null), "setRequestHeader" in x && K.forEach(a.toJSON(), function(E, T) {
|
|
2061
2061
|
x.setRequestHeader(T, E);
|
|
2062
|
-
}), K.isUndefined(o.withCredentials) || (x.withCredentials = !!o.withCredentials), i && i !== "json" && (x.responseType = o.responseType), c && ([m, v] =
|
|
2062
|
+
}), K.isUndefined(o.withCredentials) || (x.withCredentials = !!o.withCredentials), i && i !== "json" && (x.responseType = o.responseType), c && ([m, v] = hs(c, !0), x.addEventListener("progress", m)), l && x.upload && ([p, f] = hs(l), x.upload.addEventListener("progress", p), x.upload.addEventListener("loadend", f)), (o.cancelToken || o.signal) && (d = (S) => {
|
|
2063
2063
|
x && (r(!S || S.type ? new Fr(null, e, x) : S), x.abort(), x = null);
|
|
2064
2064
|
}, o.cancelToken && o.cancelToken.subscribe(d), o.signal && (o.signal.aborted ? d() : o.signal.addEventListener("abort", d)));
|
|
2065
2065
|
const w = Tv(o.url);
|
|
@@ -2238,7 +2238,7 @@ const Zu = (e) => {
|
|
|
2238
2238
|
if (K.isFormData(b) && (_ = V.headers.get("content-type")) && I.setContentType(_), V.body) {
|
|
2239
2239
|
const [G, M] = tc(
|
|
2240
2240
|
W,
|
|
2241
|
-
|
|
2241
|
+
hs(nc(y))
|
|
2242
2242
|
);
|
|
2243
2243
|
b = oc(V.body, sc, G, M);
|
|
2244
2244
|
}
|
|
@@ -2263,7 +2263,7 @@ const Zu = (e) => {
|
|
|
2263
2263
|
});
|
|
2264
2264
|
const _ = K.toFiniteNumber(O.headers.get("content-length")), [G, M] = T && tc(
|
|
2265
2265
|
_,
|
|
2266
|
-
|
|
2266
|
+
hs(nc(T), !0)
|
|
2267
2267
|
) || [];
|
|
2268
2268
|
O = new r(
|
|
2269
2269
|
oc(O.body, sc, G, () => {
|
|
@@ -2353,36 +2353,36 @@ const cc = (e) => `- ${e}`, Fv = (e) => K.isFunction(e) || e === null || e === !
|
|
|
2353
2353
|
},
|
|
2354
2354
|
adapters: Za
|
|
2355
2355
|
};
|
|
2356
|
-
function
|
|
2356
|
+
function Ea(e) {
|
|
2357
2357
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
2358
2358
|
throw new Fr(null, e);
|
|
2359
2359
|
}
|
|
2360
2360
|
function uc(e) {
|
|
2361
|
-
return
|
|
2361
|
+
return Ea(e), e.headers = Xt.from(e.headers), e.data = Ca.call(
|
|
2362
2362
|
e,
|
|
2363
2363
|
e.transformRequest
|
|
2364
2364
|
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ed.getAdapter(e.adapter || ko.adapter, e)(e).then(function(r) {
|
|
2365
|
-
return
|
|
2365
|
+
return Ea(e), r.data = Ca.call(
|
|
2366
2366
|
e,
|
|
2367
2367
|
e.transformResponse,
|
|
2368
2368
|
r
|
|
2369
2369
|
), r.headers = Xt.from(r.headers), r;
|
|
2370
2370
|
}, function(r) {
|
|
2371
|
-
return Yu(r) || (
|
|
2371
|
+
return Yu(r) || (Ea(e), r && r.response && (r.response.data = Ca.call(
|
|
2372
2372
|
e,
|
|
2373
2373
|
e.transformResponse,
|
|
2374
2374
|
r.response
|
|
2375
2375
|
), r.response.headers = Xt.from(r.response.headers))), Promise.reject(r);
|
|
2376
2376
|
});
|
|
2377
2377
|
}
|
|
2378
|
-
const td = "1.12.2",
|
|
2378
|
+
const td = "1.12.2", $s = {};
|
|
2379
2379
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
2380
|
-
|
|
2380
|
+
$s[e] = function(r) {
|
|
2381
2381
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
2382
2382
|
};
|
|
2383
2383
|
});
|
|
2384
2384
|
const dc = {};
|
|
2385
|
-
|
|
2385
|
+
$s.transitional = function(t, n, r) {
|
|
2386
2386
|
function o(s, a) {
|
|
2387
2387
|
return "[Axios v" + td + "] Transitional option '" + s + "'" + a + (r ? ". " + r : "");
|
|
2388
2388
|
}
|
|
@@ -2400,7 +2400,7 @@ Ls.transitional = function(t, n, r) {
|
|
|
2400
2400
|
)), t ? t(s, a, i) : !0;
|
|
2401
2401
|
};
|
|
2402
2402
|
};
|
|
2403
|
-
|
|
2403
|
+
$s.spelling = function(t) {
|
|
2404
2404
|
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
2405
2405
|
};
|
|
2406
2406
|
function Bv(e, t, n) {
|
|
@@ -2422,7 +2422,7 @@ function Bv(e, t, n) {
|
|
|
2422
2422
|
}
|
|
2423
2423
|
const ns = {
|
|
2424
2424
|
assertOptions: Bv,
|
|
2425
|
-
validators:
|
|
2425
|
+
validators: $s
|
|
2426
2426
|
}, wn = ns.validators;
|
|
2427
2427
|
let Zn = class {
|
|
2428
2428
|
constructor(t) {
|
|
@@ -2709,7 +2709,7 @@ kt.CanceledError = Fr;
|
|
|
2709
2709
|
kt.CancelToken = zv;
|
|
2710
2710
|
kt.isCancel = Yu;
|
|
2711
2711
|
kt.VERSION = td;
|
|
2712
|
-
kt.toFormData =
|
|
2712
|
+
kt.toFormData = Ls;
|
|
2713
2713
|
kt.AxiosError = Pe;
|
|
2714
2714
|
kt.Cancel = kt.CanceledError;
|
|
2715
2715
|
kt.all = function(t) {
|
|
@@ -2741,13 +2741,13 @@ const {
|
|
|
2741
2741
|
getAdapter: x1,
|
|
2742
2742
|
mergeConfig: v1
|
|
2743
2743
|
} = kt;
|
|
2744
|
-
let
|
|
2744
|
+
let ms = null;
|
|
2745
2745
|
const ei = /* @__PURE__ */ new Set();
|
|
2746
2746
|
function od() {
|
|
2747
|
-
return
|
|
2747
|
+
return ms;
|
|
2748
2748
|
}
|
|
2749
2749
|
function Qn(e) {
|
|
2750
|
-
|
|
2750
|
+
ms = e, ei.forEach((t) => t(e));
|
|
2751
2751
|
}
|
|
2752
2752
|
function sd(e) {
|
|
2753
2753
|
return ei.add(e), () => ei.delete(e);
|
|
@@ -2757,7 +2757,7 @@ const Wv = 3e4, Vv = 9e4, Gt = kt.create({
|
|
|
2757
2757
|
timeout: Wv,
|
|
2758
2758
|
withCredentials: !0
|
|
2759
2759
|
});
|
|
2760
|
-
Gt.interceptors.request.use((e) => (
|
|
2760
|
+
Gt.interceptors.request.use((e) => (ms && (e.headers.Authorization = `Bearer ${ms}`), e));
|
|
2761
2761
|
Gt.interceptors.response.use(
|
|
2762
2762
|
(e) => {
|
|
2763
2763
|
if (typeof window < "u" && (e != null && e.data))
|
|
@@ -2962,7 +2962,7 @@ const Yv = new Gv();
|
|
|
2962
2962
|
class Xv {
|
|
2963
2963
|
constructor() {
|
|
2964
2964
|
// ---- Configuration ----
|
|
2965
|
-
|
|
2965
|
+
ya(this, "_authBaseUrl", "");
|
|
2966
2966
|
}
|
|
2967
2967
|
get baseUrl() {
|
|
2968
2968
|
return this._authBaseUrl;
|
|
@@ -3883,7 +3883,7 @@ function xw(e) {
|
|
|
3883
3883
|
value: t
|
|
3884
3884
|
};
|
|
3885
3885
|
}
|
|
3886
|
-
function
|
|
3886
|
+
function ss(e) {
|
|
3887
3887
|
return e.filter((t) => {
|
|
3888
3888
|
var a;
|
|
3889
3889
|
if (t.role !== "assistant") return !0;
|
|
@@ -3896,7 +3896,7 @@ function Ea(e) {
|
|
|
3896
3896
|
return !!(n || r || s);
|
|
3897
3897
|
});
|
|
3898
3898
|
}
|
|
3899
|
-
function
|
|
3899
|
+
function Fs(e, t, n) {
|
|
3900
3900
|
return t < 0 || t >= e.length ? e : [...e.slice(0, t), n, ...e.slice(t + 1)];
|
|
3901
3901
|
}
|
|
3902
3902
|
function vw(e) {
|
|
@@ -3911,7 +3911,7 @@ function ww(e, t, n) {
|
|
|
3911
3911
|
for (let r = e.length - 1; r >= 0; r--)
|
|
3912
3912
|
if (e[r].role === "assistant") {
|
|
3913
3913
|
const s = { ...e[r], checkpointId: t, checkpointNs: n ?? void 0 };
|
|
3914
|
-
return
|
|
3914
|
+
return Fs(e, r, s);
|
|
3915
3915
|
}
|
|
3916
3916
|
return e;
|
|
3917
3917
|
}
|
|
@@ -3929,7 +3929,7 @@ function yw(e, t) {
|
|
|
3929
3929
|
switch (t.type) {
|
|
3930
3930
|
case "reset":
|
|
3931
3931
|
return {
|
|
3932
|
-
messages:
|
|
3932
|
+
messages: ss(((n = t.payload) == null ? void 0 : n.messages) ?? []),
|
|
3933
3933
|
assemblingId: null,
|
|
3934
3934
|
lastCheckpointId: null,
|
|
3935
3935
|
lastCheckpointNs: null,
|
|
@@ -3949,7 +3949,7 @@ function yw(e, t) {
|
|
|
3949
3949
|
return { ...e, messages: [...e.messages, r], assemblingId: null };
|
|
3950
3950
|
}
|
|
3951
3951
|
case "seed": {
|
|
3952
|
-
const r =
|
|
3952
|
+
const r = ss(t.payload.messages), o = {
|
|
3953
3953
|
...e,
|
|
3954
3954
|
messages: r,
|
|
3955
3955
|
// REPLACE with incoming messages (don't merge with existing)
|
|
@@ -3960,7 +3960,7 @@ function yw(e, t) {
|
|
|
3960
3960
|
return Object.prototype.hasOwnProperty.call(t.payload, "checkpointId") && (o.lastCheckpointId = t.payload.checkpointId ?? null), Object.prototype.hasOwnProperty.call(t.payload, "checkpointNs") && (o.lastCheckpointNs = t.payload.checkpointNs ?? null), o;
|
|
3961
3961
|
}
|
|
3962
3962
|
case "prepend": {
|
|
3963
|
-
const r =
|
|
3963
|
+
const r = ss(t.payload.messages);
|
|
3964
3964
|
if (!r.length)
|
|
3965
3965
|
return e;
|
|
3966
3966
|
const o = new Set(e.messages.map((i) => i.id)), s = r.filter((i) => !o.has(i.id));
|
|
@@ -4022,7 +4022,16 @@ function gc(e, t) {
|
|
|
4022
4022
|
return { ...e, messages: [...e.messages, n] };
|
|
4023
4023
|
}
|
|
4024
4024
|
if (t.type === "state_history") {
|
|
4025
|
-
const n = Tr(t), r = n.interrupt, o = n.latest
|
|
4025
|
+
const n = Tr(t), r = n.interrupt, o = n.latest;
|
|
4026
|
+
let s = o == null ? void 0 : o.messages;
|
|
4027
|
+
if (s) {
|
|
4028
|
+
if (e.assemblingId && !s.some((a) => a.id === e.assemblingId)) {
|
|
4029
|
+
const a = e.messages.find((i) => i.id === e.assemblingId);
|
|
4030
|
+
a && (s = [...s, a]);
|
|
4031
|
+
}
|
|
4032
|
+
s = ss(s);
|
|
4033
|
+
} else
|
|
4034
|
+
s = r === null ? vw(e.messages) : e.messages;
|
|
4026
4035
|
return {
|
|
4027
4036
|
...e,
|
|
4028
4037
|
messages: s,
|
|
@@ -4103,7 +4112,7 @@ function Cw(e, t) {
|
|
|
4103
4112
|
name: o ?? i.name,
|
|
4104
4113
|
additionalKwargs: c
|
|
4105
4114
|
};
|
|
4106
|
-
return { ...e, messages:
|
|
4115
|
+
return { ...e, messages: Fs(e.messages, r, d) };
|
|
4107
4116
|
}
|
|
4108
4117
|
const a = dd(s, n, o, t.args);
|
|
4109
4118
|
return { ...e, messages: [...e.messages, a] };
|
|
@@ -4125,7 +4134,7 @@ function Ew(e, t) {
|
|
|
4125
4134
|
const a = t.idx;
|
|
4126
4135
|
typeof a == "number" && (o.idx = a);
|
|
4127
4136
|
const i = fd(e.messages[r], o);
|
|
4128
|
-
return { ...e, messages:
|
|
4137
|
+
return { ...e, messages: Fs(e.messages, r, i) };
|
|
4129
4138
|
}
|
|
4130
4139
|
function kw(e, t) {
|
|
4131
4140
|
const n = $i(t), r = ud(t);
|
|
@@ -4151,7 +4160,7 @@ function kw(e, t) {
|
|
|
4151
4160
|
toolStreaming: !1
|
|
4152
4161
|
}
|
|
4153
4162
|
};
|
|
4154
|
-
return { ...e, messages:
|
|
4163
|
+
return { ...e, messages: Fs(o, s, f) };
|
|
4155
4164
|
}
|
|
4156
4165
|
function Rw({
|
|
4157
4166
|
api: e,
|
|
@@ -4361,7 +4370,7 @@ function Rw({
|
|
|
4361
4370
|
};
|
|
4362
4371
|
}
|
|
4363
4372
|
const pd = Dr(null), hd = Dr(null);
|
|
4364
|
-
function
|
|
4373
|
+
function Bs() {
|
|
4365
4374
|
const e = Lr(pd);
|
|
4366
4375
|
if (!e) throw new Error("useThreadState must be used within a ThreadStateProvider");
|
|
4367
4376
|
return e;
|
|
@@ -4585,7 +4594,7 @@ function Ow({
|
|
|
4585
4594
|
resetHistoryState: y,
|
|
4586
4595
|
pushUser: C,
|
|
4587
4596
|
onEvent: I
|
|
4588
|
-
} =
|
|
4597
|
+
} = Bs(), { registerClearThread: N, registerRespondToInterrupt: $ } = Iw(), L = ce(
|
|
4589
4598
|
(k) => {
|
|
4590
4599
|
x(k), g.current !== k.threadId && ((k.created ?? !g.current) && E(k.threadId), T(k.threadId), v(k.threadId));
|
|
4591
4600
|
},
|
|
@@ -5230,7 +5239,7 @@ function Td(e, t, n, { discrete: r }) {
|
|
|
5230
5239
|
const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
5231
5240
|
t && o.addEventListener(e, t, { once: !0 }), r ? Bi(o, s) : o.dispatchEvent(s);
|
|
5232
5241
|
}
|
|
5233
|
-
var ob = zr, sb = Sd, ka = "focusScope.autoFocusOnMount", Ra = "focusScope.autoFocusOnUnmount", Sc = { bubbles: !1, cancelable: !0 }, ab = "FocusScope",
|
|
5242
|
+
var ob = zr, sb = Sd, ka = "focusScope.autoFocusOnMount", Ra = "focusScope.autoFocusOnUnmount", Sc = { bubbles: !1, cancelable: !0 }, ab = "FocusScope", zs = h.forwardRef((e, t) => {
|
|
5234
5243
|
const {
|
|
5235
5244
|
loop: n = !1,
|
|
5236
5245
|
trapped: r = !1,
|
|
@@ -5296,7 +5305,7 @@ var ob = zr, sb = Sd, ka = "focusScope.autoFocusOnMount", Ra = "focusScope.autoF
|
|
|
5296
5305
|
);
|
|
5297
5306
|
return /* @__PURE__ */ u.jsx(ge.div, { tabIndex: -1, ...a, ref: m, onKeyDown: v });
|
|
5298
5307
|
});
|
|
5299
|
-
|
|
5308
|
+
zs.displayName = ab;
|
|
5300
5309
|
function ib(e, { select: t = !1 } = {}) {
|
|
5301
5310
|
const n = document.activeElement;
|
|
5302
5311
|
for (const r of e)
|
|
@@ -5467,7 +5476,7 @@ function xb(e, t, n) {
|
|
|
5467
5476
|
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
5468
5477
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
5469
5478
|
}
|
|
5470
|
-
var
|
|
5479
|
+
var as = "right-scroll-bar-position", is = "width-before-scroll-bar", vb = "with-scroll-bars-hidden", wb = "--removed-body-scroll-bar-size";
|
|
5471
5480
|
function Na(e, t) {
|
|
5472
5481
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
5473
5482
|
}
|
|
@@ -5589,7 +5598,7 @@ function kb(e, t) {
|
|
|
5589
5598
|
return e.useMedium(t), kd;
|
|
5590
5599
|
}
|
|
5591
5600
|
var Rd = Eb(), Aa = function() {
|
|
5592
|
-
},
|
|
5601
|
+
}, Hs = h.forwardRef(function(e, t) {
|
|
5593
5602
|
var n = h.useRef(null), r = h.useState({
|
|
5594
5603
|
onScrollCapture: Aa,
|
|
5595
5604
|
onWheelCapture: Aa,
|
|
@@ -5602,14 +5611,14 @@ var Rd = Eb(), Aa = function() {
|
|
|
5602
5611
|
a ? h.cloneElement(h.Children.only(i), yn(yn({}, C), { ref: y })) : h.createElement(w, yn({}, C, { className: l, ref: y }), i)
|
|
5603
5612
|
);
|
|
5604
5613
|
});
|
|
5605
|
-
|
|
5614
|
+
Hs.defaultProps = {
|
|
5606
5615
|
enabled: !0,
|
|
5607
5616
|
removeScrollBar: !0,
|
|
5608
5617
|
inert: !1
|
|
5609
5618
|
};
|
|
5610
|
-
|
|
5611
|
-
fullWidth:
|
|
5612
|
-
zeroRight:
|
|
5619
|
+
Hs.classNames = {
|
|
5620
|
+
fullWidth: is,
|
|
5621
|
+
zeroRight: as
|
|
5613
5622
|
};
|
|
5614
5623
|
var Rb = function() {
|
|
5615
5624
|
if (typeof __webpack_nonce__ < "u")
|
|
@@ -5699,19 +5708,19 @@ var Pb = function() {
|
|
|
5699
5708
|
].filter(Boolean).join(""), `
|
|
5700
5709
|
}
|
|
5701
5710
|
|
|
5702
|
-
.`).concat(
|
|
5711
|
+
.`).concat(as, ` {
|
|
5703
5712
|
right: `).concat(i, "px ").concat(r, `;
|
|
5704
5713
|
}
|
|
5705
5714
|
|
|
5706
|
-
.`).concat(
|
|
5715
|
+
.`).concat(is, ` {
|
|
5707
5716
|
margin-right: `).concat(i, "px ").concat(r, `;
|
|
5708
5717
|
}
|
|
5709
5718
|
|
|
5710
|
-
.`).concat(
|
|
5719
|
+
.`).concat(as, " .").concat(as, ` {
|
|
5711
5720
|
right: 0 `).concat(r, `;
|
|
5712
5721
|
}
|
|
5713
5722
|
|
|
5714
|
-
.`).concat(
|
|
5723
|
+
.`).concat(is, " .").concat(is, ` {
|
|
5715
5724
|
margin-right: 0 `).concat(r, `;
|
|
5716
5725
|
}
|
|
5717
5726
|
|
|
@@ -5913,10 +5922,10 @@ function Jb(e) {
|
|
|
5913
5922
|
return t;
|
|
5914
5923
|
}
|
|
5915
5924
|
const Zb = kb(Rd, Xb);
|
|
5916
|
-
var
|
|
5917
|
-
return h.createElement(
|
|
5925
|
+
var Us = h.forwardRef(function(e, t) {
|
|
5926
|
+
return h.createElement(Hs, yn({}, e, { ref: t, sideCar: Zb }));
|
|
5918
5927
|
});
|
|
5919
|
-
|
|
5928
|
+
Us.classNames = Hs.classNames;
|
|
5920
5929
|
var Qb = function(e) {
|
|
5921
5930
|
if (typeof document > "u")
|
|
5922
5931
|
return null;
|
|
@@ -5965,7 +5974,7 @@ var Qb = function(e) {
|
|
|
5965
5974
|
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), ty(r, o, n, "aria-hidden")) : function() {
|
|
5966
5975
|
return null;
|
|
5967
5976
|
};
|
|
5968
|
-
},
|
|
5977
|
+
}, Ws = "Dialog", [_d, S1] = cn(Ws), [ny, vn] = _d(Ws), Od = (e) => {
|
|
5969
5978
|
const {
|
|
5970
5979
|
__scopeDialog: t,
|
|
5971
5980
|
children: n,
|
|
@@ -5977,7 +5986,7 @@ var Qb = function(e) {
|
|
|
5977
5986
|
prop: r,
|
|
5978
5987
|
defaultProp: o ?? !1,
|
|
5979
5988
|
onChange: s,
|
|
5980
|
-
caller:
|
|
5989
|
+
caller: Ws
|
|
5981
5990
|
});
|
|
5982
5991
|
return /* @__PURE__ */ u.jsx(
|
|
5983
5992
|
ny,
|
|
@@ -5996,7 +6005,7 @@ var Qb = function(e) {
|
|
|
5996
6005
|
}
|
|
5997
6006
|
);
|
|
5998
6007
|
};
|
|
5999
|
-
Od.displayName =
|
|
6008
|
+
Od.displayName = Ws;
|
|
6000
6009
|
var Md = "DialogTrigger", Dd = h.forwardRef(
|
|
6001
6010
|
(e, t) => {
|
|
6002
6011
|
const { __scopeDialog: n, ...r } = e, o = vn(Md, n), s = Oe(t, o.triggerRef);
|
|
@@ -6023,20 +6032,20 @@ var Ui = "DialogPortal", [ry, Ld] = _d(Ui, {
|
|
|
6023
6032
|
return /* @__PURE__ */ u.jsx(ry, { scope: t, forceMount: n, children: h.Children.map(r, (a) => /* @__PURE__ */ u.jsx(Ht, { present: n || s.open, children: /* @__PURE__ */ u.jsx(Io, { asChild: !0, container: o, children: a }) })) });
|
|
6024
6033
|
};
|
|
6025
6034
|
$d.displayName = Ui;
|
|
6026
|
-
var
|
|
6035
|
+
var gs = "DialogOverlay", Fd = h.forwardRef(
|
|
6027
6036
|
(e, t) => {
|
|
6028
|
-
const n = Ld(
|
|
6037
|
+
const n = Ld(gs, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = vn(gs, e.__scopeDialog);
|
|
6029
6038
|
return s.modal ? /* @__PURE__ */ u.jsx(Ht, { present: r || s.open, children: /* @__PURE__ */ u.jsx(sy, { ...o, ref: t }) }) : null;
|
|
6030
6039
|
}
|
|
6031
6040
|
);
|
|
6032
|
-
Fd.displayName =
|
|
6041
|
+
Fd.displayName = gs;
|
|
6033
6042
|
var oy = Nr("DialogOverlay.RemoveScroll"), sy = h.forwardRef(
|
|
6034
6043
|
(e, t) => {
|
|
6035
|
-
const { __scopeDialog: n, ...r } = e, o = vn(
|
|
6044
|
+
const { __scopeDialog: n, ...r } = e, o = vn(gs, n);
|
|
6036
6045
|
return (
|
|
6037
6046
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
6038
6047
|
// ie. when `Overlay` and `Content` are siblings
|
|
6039
|
-
/* @__PURE__ */ u.jsx(
|
|
6048
|
+
/* @__PURE__ */ u.jsx(Us, { as: oy, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ u.jsx(
|
|
6040
6049
|
ge.div,
|
|
6041
6050
|
{
|
|
6042
6051
|
"data-state": Vi(o.open),
|
|
@@ -6110,7 +6119,7 @@ var ay = h.forwardRef(
|
|
|
6110
6119
|
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...a } = e, i = vn(sr, n), l = h.useRef(null), c = Oe(t, l);
|
|
6111
6120
|
return zi(), /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
6112
6121
|
/* @__PURE__ */ u.jsx(
|
|
6113
|
-
|
|
6122
|
+
zs,
|
|
6114
6123
|
{
|
|
6115
6124
|
asChild: !0,
|
|
6116
6125
|
loop: !0,
|
|
@@ -6190,7 +6199,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
6190
6199
|
const o = (s = e.current) == null ? void 0 : s.getAttribute("aria-describedby");
|
|
6191
6200
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
6192
6201
|
}, [r, e, t]), null;
|
|
6193
|
-
}, Ki = Od, dy = Dd, qi = $d, No = Fd, Ao = Bd, er = Hd,
|
|
6202
|
+
}, Ki = Od, dy = Dd, qi = $d, No = Fd, Ao = Bd, er = Hd, Vs = Wd, Yd = Kd;
|
|
6194
6203
|
const Xd = Ki, fy = qi, Jd = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
6195
6204
|
No,
|
|
6196
6205
|
{
|
|
@@ -6270,14 +6279,14 @@ const Qd = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
|
6270
6279
|
));
|
|
6271
6280
|
Qd.displayName = er.displayName;
|
|
6272
6281
|
const py = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
6273
|
-
|
|
6282
|
+
Vs,
|
|
6274
6283
|
{
|
|
6275
6284
|
ref: n,
|
|
6276
6285
|
className: ne("text-sm text-muted-foreground", e),
|
|
6277
6286
|
...t
|
|
6278
6287
|
}
|
|
6279
6288
|
));
|
|
6280
|
-
py.displayName =
|
|
6289
|
+
py.displayName = Vs.displayName;
|
|
6281
6290
|
function hy(e, t) {
|
|
6282
6291
|
return t === "application/octet-stream" && e.toLowerCase().endsWith(".pdf") ? "application/pdf" : t;
|
|
6283
6292
|
}
|
|
@@ -6384,11 +6393,11 @@ function _c(e, t, n) {
|
|
|
6384
6393
|
}
|
|
6385
6394
|
const qo = {}, Cy = /^[^:]+:\/*[^/]*$/, Ey = /^([^:]+:)[\s\S]*$/, ky = /^([^:]+:\/*[^/]*)[\s\S]*$/;
|
|
6386
6395
|
function Ry(e, t) {
|
|
6387
|
-
qo[" " + e] || (Cy.test(e) ? qo[" " + e] = e + "/" : qo[" " + e] =
|
|
6396
|
+
qo[" " + e] || (Cy.test(e) ? qo[" " + e] = e + "/" : qo[" " + e] = ls(e, "/", !0)), e = qo[" " + e];
|
|
6388
6397
|
const n = e.indexOf(":") === -1;
|
|
6389
6398
|
return t.substring(0, 2) === "//" ? n ? t : e.replace(Ey, "$1") + t : t.charAt(0) === "/" ? n ? t : e.replace(ky, "$1") + t : e + t;
|
|
6390
6399
|
}
|
|
6391
|
-
const
|
|
6400
|
+
const xs = { exec: function() {
|
|
6392
6401
|
} };
|
|
6393
6402
|
function Oc(e, t) {
|
|
6394
6403
|
const n = e.replace(/\|/g, (s, a, i) => {
|
|
@@ -6405,7 +6414,7 @@ function Oc(e, t) {
|
|
|
6405
6414
|
r[o] = r[o].trim().replace(/\\\|/g, "|");
|
|
6406
6415
|
return r;
|
|
6407
6416
|
}
|
|
6408
|
-
function
|
|
6417
|
+
function ls(e, t, n) {
|
|
6409
6418
|
const r = e.length;
|
|
6410
6419
|
if (r === 0)
|
|
6411
6420
|
return "";
|
|
@@ -6503,7 +6512,7 @@ class Yi {
|
|
|
6503
6512
|
type: "code",
|
|
6504
6513
|
raw: n[0],
|
|
6505
6514
|
codeBlockStyle: "indented",
|
|
6506
|
-
text: this.options.pedantic ? r :
|
|
6515
|
+
text: this.options.pedantic ? r : ls(r, `
|
|
6507
6516
|
`)
|
|
6508
6517
|
};
|
|
6509
6518
|
}
|
|
@@ -6525,7 +6534,7 @@ class Yi {
|
|
|
6525
6534
|
if (n) {
|
|
6526
6535
|
let r = n[2].trim();
|
|
6527
6536
|
if (/#$/.test(r)) {
|
|
6528
|
-
const o =
|
|
6537
|
+
const o = ls(r, "#");
|
|
6529
6538
|
(this.options.pedantic || !o || / $/.test(o)) && (r = o.trim());
|
|
6530
6539
|
}
|
|
6531
6540
|
return {
|
|
@@ -6732,7 +6741,7 @@ class Yi {
|
|
|
6732
6741
|
if (!this.options.pedantic && /^</.test(r)) {
|
|
6733
6742
|
if (!/>$/.test(r))
|
|
6734
6743
|
return;
|
|
6735
|
-
const a =
|
|
6744
|
+
const a = ls(r.slice(0, -1), "\\");
|
|
6736
6745
|
if ((r.length - a.length) % 2 === 0)
|
|
6737
6746
|
return;
|
|
6738
6747
|
} else {
|
|
@@ -6907,7 +6916,7 @@ const be = {
|
|
|
6907
6916
|
list: /^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,
|
|
6908
6917
|
html: "^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",
|
|
6909
6918
|
def: /^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,
|
|
6910
|
-
table:
|
|
6919
|
+
table: xs,
|
|
6911
6920
|
lheading: /^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
6912
6921
|
// regex template, placeholders will be replaced according to different paragraph
|
|
6913
6922
|
// interruption rules of commonmark and the original markdown spec:
|
|
@@ -6940,7 +6949,7 @@ be.pedantic = {
|
|
|
6940
6949
|
).replace("comment", be._comment).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
6941
6950
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
6942
6951
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
6943
|
-
fences:
|
|
6952
|
+
fences: xs,
|
|
6944
6953
|
// fences not supported
|
|
6945
6954
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
6946
6955
|
paragraph: st(be.normal._paragraph).replace("hr", be.hr).replace("heading", ` *#{1,6} *[^
|
|
@@ -6949,7 +6958,7 @@ be.pedantic = {
|
|
|
6949
6958
|
const pe = {
|
|
6950
6959
|
escape: /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,
|
|
6951
6960
|
autolink: /^<(scheme:[^\s\x00-\x1f<>]*|email)>/,
|
|
6952
|
-
url:
|
|
6961
|
+
url: xs,
|
|
6953
6962
|
tag: "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",
|
|
6954
6963
|
// CDATA section
|
|
6955
6964
|
link: /^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,
|
|
@@ -6966,7 +6975,7 @@ const pe = {
|
|
|
6966
6975
|
},
|
|
6967
6976
|
code: /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,
|
|
6968
6977
|
br: /^( {2,}|\\)\n(?!\s*$)/,
|
|
6969
|
-
del:
|
|
6978
|
+
del: xs,
|
|
6970
6979
|
text: /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,
|
|
6971
6980
|
punctuation: /^([\spunctuation])/
|
|
6972
6981
|
};
|
|
@@ -7641,7 +7650,7 @@ class Dn {
|
|
|
7641
7650
|
return r;
|
|
7642
7651
|
}
|
|
7643
7652
|
}
|
|
7644
|
-
class
|
|
7653
|
+
class vs {
|
|
7645
7654
|
constructor(t) {
|
|
7646
7655
|
this.options = t || fr;
|
|
7647
7656
|
}
|
|
@@ -7658,7 +7667,7 @@ class xs {
|
|
|
7658
7667
|
return t;
|
|
7659
7668
|
}
|
|
7660
7669
|
}
|
|
7661
|
-
|
|
7670
|
+
ya(vs, "passThroughHooks", /* @__PURE__ */ new Set([
|
|
7662
7671
|
"preprocess",
|
|
7663
7672
|
"postprocess"
|
|
7664
7673
|
]));
|
|
@@ -7789,10 +7798,10 @@ ve.use = function(...e) {
|
|
|
7789
7798
|
r.tokenizer = o;
|
|
7790
7799
|
}
|
|
7791
7800
|
if (n.hooks) {
|
|
7792
|
-
const o = ve.defaults.hooks || new
|
|
7801
|
+
const o = ve.defaults.hooks || new vs();
|
|
7793
7802
|
for (const s in n.hooks) {
|
|
7794
7803
|
const a = o[s];
|
|
7795
|
-
|
|
7804
|
+
vs.passThroughHooks.has(s) ? o[s] = (i) => {
|
|
7796
7805
|
if (ve.defaults.async)
|
|
7797
7806
|
return Promise.resolve(n.hooks[s].call(o, i)).then((c) => a.call(o, c));
|
|
7798
7807
|
const l = n.hooks[s].call(o, i);
|
|
@@ -7846,7 +7855,7 @@ ve.Lexer = Mn;
|
|
|
7846
7855
|
ve.lexer = Mn.lex;
|
|
7847
7856
|
ve.Tokenizer = Yi;
|
|
7848
7857
|
ve.Slugger = sf;
|
|
7849
|
-
ve.Hooks =
|
|
7858
|
+
ve.Hooks = vs;
|
|
7850
7859
|
ve.parse = ve;
|
|
7851
7860
|
ve.options;
|
|
7852
7861
|
ve.setOptions;
|
|
@@ -8180,7 +8189,7 @@ function Fy({
|
|
|
8180
8189
|
/* @__PURE__ */ u.jsx(Pi, { className: "h-3 w-3 mr-1" }),
|
|
8181
8190
|
" Show less"
|
|
8182
8191
|
] }) : /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
8183
|
-
/* @__PURE__ */ u.jsx(
|
|
8192
|
+
/* @__PURE__ */ u.jsx(js, { className: "h-3 w-3 mr-1" }),
|
|
8184
8193
|
" Show more (",
|
|
8185
8194
|
s,
|
|
8186
8195
|
" chars)"
|
|
@@ -8495,7 +8504,7 @@ function qy({
|
|
|
8495
8504
|
children: [
|
|
8496
8505
|
/* @__PURE__ */ u.jsx("span", { children: g.name ?? "Tool Output" }),
|
|
8497
8506
|
g.toolCallId && /* @__PURE__ */ u.jsx("span", { className: "opacity-70", children: g.toolCallId.slice(0, 8) }),
|
|
8498
|
-
v && (f === "expanded" ? /* @__PURE__ */ u.jsx(Pi, { className: "h-3 w-3" }) : /* @__PURE__ */ u.jsx(
|
|
8507
|
+
v && (f === "expanded" ? /* @__PURE__ */ u.jsx(Pi, { className: "h-3 w-3" }) : /* @__PURE__ */ u.jsx(js, { className: "h-3 w-3" }))
|
|
8499
8508
|
]
|
|
8500
8509
|
}
|
|
8501
8510
|
),
|
|
@@ -8653,11 +8662,11 @@ const Oa = /* @__PURE__ */ new Map(), $c = (e) => {
|
|
|
8653
8662
|
toasts: e.toasts.filter((n) => n.id !== t.toastId)
|
|
8654
8663
|
};
|
|
8655
8664
|
}
|
|
8656
|
-
},
|
|
8657
|
-
let
|
|
8665
|
+
}, cs = [];
|
|
8666
|
+
let us = { toasts: [] };
|
|
8658
8667
|
function oo(e) {
|
|
8659
|
-
|
|
8660
|
-
t(
|
|
8668
|
+
us = Jy(us, e), cs.forEach((t) => {
|
|
8669
|
+
t(us);
|
|
8661
8670
|
});
|
|
8662
8671
|
}
|
|
8663
8672
|
function Zy({ ...e }) {
|
|
@@ -8682,10 +8691,10 @@ function Zy({ ...e }) {
|
|
|
8682
8691
|
};
|
|
8683
8692
|
}
|
|
8684
8693
|
function hf() {
|
|
8685
|
-
const [e, t] = h.useState(
|
|
8686
|
-
return h.useEffect(() => (
|
|
8687
|
-
const n =
|
|
8688
|
-
n > -1 &&
|
|
8694
|
+
const [e, t] = h.useState(us);
|
|
8695
|
+
return h.useEffect(() => (cs.push(t), () => {
|
|
8696
|
+
const n = cs.indexOf(t);
|
|
8697
|
+
n > -1 && cs.splice(n, 1);
|
|
8689
8698
|
}), [e]), {
|
|
8690
8699
|
...e,
|
|
8691
8700
|
toast: Zy,
|
|
@@ -8873,7 +8882,7 @@ const Ji = _g(function({
|
|
|
8873
8882
|
onSelectCheckpoint: C,
|
|
8874
8883
|
attemptMetas: I = []
|
|
8875
8884
|
}) {
|
|
8876
|
-
const [N, $] = me(!1), [L, B] = me(!1), { currentThreadId: q } = Ro(), { respondToInterrupt: j } =
|
|
8885
|
+
const [N, $] = me(!1), [L, B] = me(!1), { currentThreadId: q } = Ro(), { respondToInterrupt: j } = Bs(), [W, X] = me(!1), J = l === "phone" || l === "half-screen", O = t.role, k = O === "interrupt", z = O === "tool" || k, _ = !(t.role === "default_message") && t.expandable !== void 0 ? t.expandable !== !1 : !0, { toolRenderers: G, toolArtifactRenderers: M, getToolExpandable: D } = m ?? {}, Y = He(() => !D || t.role !== "tool" ? !1 : D(t), [D, t.id, t.role]), [P, A] = me(Y ? "preview" : "expanded");
|
|
8877
8886
|
Ge(() => {
|
|
8878
8887
|
A(Y ? "preview" : "expanded");
|
|
8879
8888
|
}, [Y, t.id]);
|
|
@@ -9209,7 +9218,7 @@ const Ji = _g(function({
|
|
|
9209
9218
|
return a.length === i.length;
|
|
9210
9219
|
});
|
|
9211
9220
|
Ji.displayName = "MessageComponent";
|
|
9212
|
-
const
|
|
9221
|
+
const Ks = 0, zn = 1, Hr = 2, mf = 4;
|
|
9213
9222
|
function Bc(e) {
|
|
9214
9223
|
return () => e;
|
|
9215
9224
|
}
|
|
@@ -9235,7 +9244,7 @@ function a0(...e) {
|
|
|
9235
9244
|
}
|
|
9236
9245
|
function Ur() {
|
|
9237
9246
|
}
|
|
9238
|
-
function
|
|
9247
|
+
function qs(e, t) {
|
|
9239
9248
|
return t(e), e;
|
|
9240
9249
|
}
|
|
9241
9250
|
function i0(e, t) {
|
|
@@ -9248,7 +9257,7 @@ function Ze(e, t) {
|
|
|
9248
9257
|
return e(zn, t);
|
|
9249
9258
|
}
|
|
9250
9259
|
function je(e, t) {
|
|
9251
|
-
e(
|
|
9260
|
+
e(Ks, t);
|
|
9252
9261
|
}
|
|
9253
9262
|
function Qi(e) {
|
|
9254
9263
|
e(Hr);
|
|
@@ -9257,7 +9266,7 @@ function Ct(e) {
|
|
|
9257
9266
|
return e(mf);
|
|
9258
9267
|
}
|
|
9259
9268
|
function xe(e, t) {
|
|
9260
|
-
return Ze(e, s0(t,
|
|
9269
|
+
return Ze(e, s0(t, Ks));
|
|
9261
9270
|
}
|
|
9262
9271
|
function pn(e, t) {
|
|
9263
9272
|
const n = e(zn, (r) => {
|
|
@@ -9363,7 +9372,7 @@ function ae(e) {
|
|
|
9363
9372
|
const n = Ue();
|
|
9364
9373
|
return (r, o) => {
|
|
9365
9374
|
switch (r) {
|
|
9366
|
-
case
|
|
9375
|
+
case Ks:
|
|
9367
9376
|
t = o;
|
|
9368
9377
|
break;
|
|
9369
9378
|
case zn: {
|
|
@@ -9377,13 +9386,13 @@ function ae(e) {
|
|
|
9377
9386
|
};
|
|
9378
9387
|
}
|
|
9379
9388
|
function Bt(e, t) {
|
|
9380
|
-
return
|
|
9389
|
+
return qs(ae(t), (n) => xe(e, n));
|
|
9381
9390
|
}
|
|
9382
9391
|
function Ue() {
|
|
9383
9392
|
const e = [];
|
|
9384
9393
|
return (t, n) => {
|
|
9385
9394
|
switch (t) {
|
|
9386
|
-
case
|
|
9395
|
+
case Ks:
|
|
9387
9396
|
e.slice().forEach((r) => {
|
|
9388
9397
|
r(n);
|
|
9389
9398
|
});
|
|
@@ -9400,7 +9409,7 @@ function Ue() {
|
|
|
9400
9409
|
};
|
|
9401
9410
|
}
|
|
9402
9411
|
function nn(e) {
|
|
9403
|
-
return
|
|
9412
|
+
return qs(Ue(), (t) => xe(e, t));
|
|
9404
9413
|
}
|
|
9405
9414
|
function Ye(e, t = [], { singleton: n } = { singleton: !0 }) {
|
|
9406
9415
|
return {
|
|
@@ -9663,7 +9672,7 @@ function tn(e, t, n) {
|
|
|
9663
9672
|
function Rr() {
|
|
9664
9673
|
return co;
|
|
9665
9674
|
}
|
|
9666
|
-
function
|
|
9675
|
+
function Gs(e, t, n) {
|
|
9667
9676
|
if (ot(e))
|
|
9668
9677
|
return [];
|
|
9669
9678
|
const r = hn(e, t)[0];
|
|
@@ -9679,9 +9688,9 @@ function ai(e, t) {
|
|
|
9679
9688
|
return r;
|
|
9680
9689
|
{
|
|
9681
9690
|
const [s, a] = yf(r);
|
|
9682
|
-
return
|
|
9691
|
+
return ds(At(e, { k: s, l: bf(r), v: a }));
|
|
9683
9692
|
}
|
|
9684
|
-
} else return t < n ?
|
|
9693
|
+
} else return t < n ? ds(At(e, { l: ai(r, t) })) : ds(At(e, { r: ai(o, t) }));
|
|
9685
9694
|
}
|
|
9686
9695
|
function Yn(e) {
|
|
9687
9696
|
return ot(e) ? [] : [...Yn(e.l), { k: e.k, v: e.v }, ...Yn(e.r)];
|
|
@@ -9693,7 +9702,7 @@ function ii(e, t, n) {
|
|
|
9693
9702
|
let i = [];
|
|
9694
9703
|
return r > t && (i = i.concat(ii(o, t, n))), r >= t && r <= n && i.push({ k: r, v: a }), r <= n && (i = i.concat(ii(s, t, n))), i;
|
|
9695
9704
|
}
|
|
9696
|
-
function
|
|
9705
|
+
function ds(e) {
|
|
9697
9706
|
const { l: t, lvl: n, r } = e;
|
|
9698
9707
|
if (r.lvl >= n - 1 && t.lvl >= n - 1)
|
|
9699
9708
|
return e;
|
|
@@ -9737,7 +9746,7 @@ function At(e, t) {
|
|
|
9737
9746
|
);
|
|
9738
9747
|
}
|
|
9739
9748
|
function bf(e) {
|
|
9740
|
-
return ot(e.r) ? e.l :
|
|
9749
|
+
return ot(e.r) ? e.l : ds(At(e, { r: bf(e.r) }));
|
|
9741
9750
|
}
|
|
9742
9751
|
function Ma(e) {
|
|
9743
9752
|
return ot(e) || e.lvl > e.r.lvl;
|
|
@@ -9774,9 +9783,9 @@ const tl = Ye(
|
|
|
9774
9783
|
{ singleton: !0 }
|
|
9775
9784
|
);
|
|
9776
9785
|
function Ef(e, t, n) {
|
|
9777
|
-
return e[
|
|
9786
|
+
return e[ws(e, t, n)];
|
|
9778
9787
|
}
|
|
9779
|
-
function
|
|
9788
|
+
function ws(e, t, n, r = 0) {
|
|
9780
9789
|
let o = e.length - 1;
|
|
9781
9790
|
for (; r <= o; ) {
|
|
9782
9791
|
const s = Math.floor((r + o) / 2), a = e[s], i = n(a, t);
|
|
@@ -9795,13 +9804,13 @@ function vs(e, t, n, r = 0) {
|
|
|
9795
9804
|
throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`);
|
|
9796
9805
|
}
|
|
9797
9806
|
function x0(e, t, n, r) {
|
|
9798
|
-
const o =
|
|
9807
|
+
const o = ws(e, t, r), s = ws(e, n, r, o);
|
|
9799
9808
|
return e.slice(o, s + 1);
|
|
9800
9809
|
}
|
|
9801
9810
|
function Ln(e, t) {
|
|
9802
9811
|
return Math.round(e.getBoundingClientRect()[t]);
|
|
9803
9812
|
}
|
|
9804
|
-
function
|
|
9813
|
+
function Ys(e) {
|
|
9805
9814
|
return !ot(e.groupOffsetTree);
|
|
9806
9815
|
}
|
|
9807
9816
|
function nl({ index: e }, t) {
|
|
@@ -9826,7 +9835,7 @@ function w0(e, t) {
|
|
|
9826
9835
|
e = tn(e, 0, s);
|
|
9827
9836
|
continue;
|
|
9828
9837
|
}
|
|
9829
|
-
const i =
|
|
9838
|
+
const i = Gs(e, a - 1, o + 1);
|
|
9830
9839
|
if (i.some(k0(r)))
|
|
9831
9840
|
continue;
|
|
9832
9841
|
let l = !1, c = !1;
|
|
@@ -9849,7 +9858,7 @@ function po(e, t, n) {
|
|
|
9849
9858
|
return i > 0 ? i + n : i;
|
|
9850
9859
|
}
|
|
9851
9860
|
function kf(e, t) {
|
|
9852
|
-
if (!
|
|
9861
|
+
if (!Ys(t))
|
|
9853
9862
|
return e;
|
|
9854
9863
|
let n = 0;
|
|
9855
9864
|
for (; t.groupIndices[n] <= e + n; )
|
|
@@ -9905,12 +9914,12 @@ function Vc(e, t) {
|
|
|
9905
9914
|
function ci(e, t, n, r) {
|
|
9906
9915
|
let o = e, s = 0, a = 0, i = 0, l = 0;
|
|
9907
9916
|
if (t !== 0) {
|
|
9908
|
-
l =
|
|
9917
|
+
l = ws(o, t - 1, nl), i = o[l].offset;
|
|
9909
9918
|
const c = hn(n, t - 1);
|
|
9910
9919
|
s = c[0], a = c[1], o.length && o[l].size === hn(n, t)[1] && (l -= 1), o = o.slice(0, l + 1);
|
|
9911
9920
|
} else
|
|
9912
9921
|
o = [];
|
|
9913
|
-
for (const { start: c, value: d } of
|
|
9922
|
+
for (const { start: c, value: d } of Gs(n, t, 1 / 0)) {
|
|
9914
9923
|
const p = c - s, m = p * a + i + p * r;
|
|
9915
9924
|
o.push({
|
|
9916
9925
|
index: c,
|
|
@@ -10198,7 +10207,7 @@ const If = Ye(
|
|
|
10198
10207
|
), xe(
|
|
10199
10208
|
te(
|
|
10200
10209
|
Nt(o, t, r),
|
|
10201
|
-
Ee(([l, c]) =>
|
|
10210
|
+
Ee(([l, c]) => Ys(c)),
|
|
10202
10211
|
fe(([l, c, d]) => hn(c.groupOffsetTree, Math.max(l - d, 0), "v")[0]),
|
|
10203
10212
|
ut(),
|
|
10204
10213
|
fe((l) => [l])
|
|
@@ -10497,9 +10506,9 @@ const ho = "up", so = "down", P0 = "none", j0 = {
|
|
|
10497
10506
|
scrollDirection: x,
|
|
10498
10507
|
scrollVelocity: b
|
|
10499
10508
|
};
|
|
10500
|
-
}, dt(Ut)),
|
|
10509
|
+
}, dt(Ut)), bs = "top", ys = "bottom", Kc = "none";
|
|
10501
10510
|
function qc(e, t, n) {
|
|
10502
|
-
return typeof e == "number" ? n === ho && t ===
|
|
10511
|
+
return typeof e == "number" ? n === ho && t === bs || n === so && t === ys ? e : 0 : n === ho ? t === bs ? e.main : e.reverse : t === ys ? e.main : e.reverse;
|
|
10503
10512
|
}
|
|
10504
10513
|
function Gc(e, t) {
|
|
10505
10514
|
var n;
|
|
@@ -10534,10 +10543,10 @@ const sl = Ye(
|
|
|
10534
10543
|
]) => {
|
|
10535
10544
|
const E = d - w, T = x + b, y = Math.max(m - E, 0);
|
|
10536
10545
|
let C = Kc;
|
|
10537
|
-
const I = Gc(S,
|
|
10546
|
+
const I = Gc(S, bs), N = Gc(S, ys);
|
|
10538
10547
|
return f -= w, f += m + b, v += m + b, v -= w, f > d + T - I && (C = ho), v < d - y + p + N && (C = so), C !== Kc ? [
|
|
10539
|
-
Math.max(E - m - qc(g,
|
|
10540
|
-
E - y - b + p + qc(g,
|
|
10548
|
+
Math.max(E - m - qc(g, bs, C) - I, 0),
|
|
10549
|
+
E - y - b + p + qc(g, ys, C) + N
|
|
10541
10550
|
] : null;
|
|
10542
10551
|
}
|
|
10543
10552
|
),
|
|
@@ -10560,7 +10569,7 @@ const sl = Ye(
|
|
|
10560
10569
|
{ singleton: !0 }
|
|
10561
10570
|
);
|
|
10562
10571
|
function O0(e, t, n) {
|
|
10563
|
-
if (
|
|
10572
|
+
if (Ys(t)) {
|
|
10564
10573
|
const r = kf(e, t);
|
|
10565
10574
|
return [
|
|
10566
10575
|
{ index: hn(t.groupOffsetTree, r)[0], offset: 0, size: 0 },
|
|
@@ -10580,7 +10589,7 @@ const Da = {
|
|
|
10580
10589
|
topListHeight: 0,
|
|
10581
10590
|
totalCount: 0
|
|
10582
10591
|
};
|
|
10583
|
-
function
|
|
10592
|
+
function fs(e, t, n, r, o, s) {
|
|
10584
10593
|
const { lastIndex: a, lastOffset: i, lastSize: l } = o;
|
|
10585
10594
|
let c = 0, d = 0;
|
|
10586
10595
|
if (e.length > 0) {
|
|
@@ -10615,14 +10624,14 @@ function Pf(e, t, n, r, o, s) {
|
|
|
10615
10624
|
offset: 0,
|
|
10616
10625
|
size: 0
|
|
10617
10626
|
}));
|
|
10618
|
-
return
|
|
10627
|
+
return fs(c, [], i, o, n, r);
|
|
10619
10628
|
}
|
|
10620
10629
|
function Yc(e, t, n) {
|
|
10621
10630
|
if (e.length === 0)
|
|
10622
10631
|
return [];
|
|
10623
|
-
if (!
|
|
10632
|
+
if (!Ys(t))
|
|
10624
10633
|
return e.map((c) => ({ ...c, index: c.index + n, originalIndex: c.index }));
|
|
10625
|
-
const r = e[0].index, o = e[e.length - 1].index, s = [], a =
|
|
10634
|
+
const r = e[0].index, o = e[e.length - 1].index, s = [], a = Gs(t.groupOffsetTree, r, o);
|
|
10626
10635
|
let i, l = 0;
|
|
10627
10636
|
for (const c of e) {
|
|
10628
10637
|
(!i || i.end < c.index) && (i = a.shift(), l = t.groupIndices.indexOf(i.start));
|
|
@@ -10695,7 +10704,7 @@ const hr = Ye(
|
|
|
10695
10704
|
if (y === 0 && C === 0)
|
|
10696
10705
|
return k === 0 ? { ...Da, totalCount: I } : Pf(k, $, N, q, j, W || []);
|
|
10697
10706
|
if (ot(O))
|
|
10698
|
-
return k > 0 ? null :
|
|
10707
|
+
return k > 0 ? null : fs(
|
|
10699
10708
|
O0(ol($, I), X, W),
|
|
10700
10709
|
[],
|
|
10701
10710
|
I,
|
|
@@ -10707,18 +10716,18 @@ const hr = Ye(
|
|
|
10707
10716
|
if (B.length > 0) {
|
|
10708
10717
|
const D = B[0], Y = B[B.length - 1];
|
|
10709
10718
|
let P = 0;
|
|
10710
|
-
for (const A of
|
|
10719
|
+
for (const A of Gs(O, D, Y)) {
|
|
10711
10720
|
const H = A.value, Z = Math.max(A.start, D), re = Math.min(A.end, Y);
|
|
10712
10721
|
for (let ie = Z; ie <= re; ie++)
|
|
10713
10722
|
z.push({ data: W == null ? void 0 : W[ie], index: ie, offset: P, size: H }), P += H;
|
|
10714
10723
|
}
|
|
10715
10724
|
}
|
|
10716
10725
|
if (!L)
|
|
10717
|
-
return
|
|
10726
|
+
return fs([], z, I, j, X, q);
|
|
10718
10727
|
const V = B.length > 0 ? B[B.length - 1] + 1 : 0, _ = S0(J, y, C, V);
|
|
10719
10728
|
if (_.length === 0)
|
|
10720
10729
|
return null;
|
|
10721
|
-
const G = I - 1, M =
|
|
10730
|
+
const G = I - 1, M = qs([], (D) => {
|
|
10722
10731
|
for (const Y of _) {
|
|
10723
10732
|
const P = Y.value;
|
|
10724
10733
|
let A = P.offset, H = Y.start;
|
|
@@ -10734,7 +10743,7 @@ const hr = Ye(
|
|
|
10734
10743
|
D.push({ data: W == null ? void 0 : W[ie], index: ie, offset: A, size: Z }), A += Z + j;
|
|
10735
10744
|
}
|
|
10736
10745
|
});
|
|
10737
|
-
return
|
|
10746
|
+
return fs(M, z, I, j, X, q);
|
|
10738
10747
|
}
|
|
10739
10748
|
),
|
|
10740
10749
|
//@ts-expect-error filter needs to be fixed
|
|
@@ -11391,7 +11400,7 @@ function $f(e, t, n) {
|
|
|
11391
11400
|
return a.reduce((b, w) => (b[w] = c0(x[t.events[w]]), b), {});
|
|
11392
11401
|
}
|
|
11393
11402
|
const p = F.forwardRef((x, b) => {
|
|
11394
|
-
const { children: w, ...S } = x, [E] = F.useState(() =>
|
|
11403
|
+
const { children: w, ...S } = x, [E] = F.useState(() => qs(d0(e), (C) => {
|
|
11395
11404
|
l(C, S);
|
|
11396
11405
|
})), [T] = F.useState(zc(d, E));
|
|
11397
11406
|
Go(() => {
|
|
@@ -11626,7 +11635,7 @@ const Y0 = /* @__PURE__ */ Ye(() => {
|
|
|
11626
11635
|
outline: "none",
|
|
11627
11636
|
overflowX: "auto",
|
|
11628
11637
|
position: "relative"
|
|
11629
|
-
},
|
|
11638
|
+
}, Xs = (e) => ({
|
|
11630
11639
|
height: "100%",
|
|
11631
11640
|
position: "absolute",
|
|
11632
11641
|
top: 0,
|
|
@@ -11729,7 +11738,7 @@ const aS = ({ children: e }) => {
|
|
|
11729
11738
|
), i = pr(a, !0, Re("skipAnimationFrameInResizeObserver"));
|
|
11730
11739
|
return F.useEffect(() => {
|
|
11731
11740
|
t && (n(t.viewportHeight), r(t.itemHeight));
|
|
11732
|
-
}, [t, n, r]), /* @__PURE__ */ u.jsx("div", { "data-viewport-type": "element", ref: i, style:
|
|
11741
|
+
}, [t, n, r]), /* @__PURE__ */ u.jsx("div", { "data-viewport-type": "element", ref: i, style: Xs(o), children: e });
|
|
11733
11742
|
}, iS = ({ children: e }) => {
|
|
11734
11743
|
const t = F.useContext(Ff), n = sn("windowViewportRect"), r = sn("fixedItemHeight"), o = Re("customScrollParent"), s = vf(
|
|
11735
11744
|
n,
|
|
@@ -11738,7 +11747,7 @@ const aS = ({ children: e }) => {
|
|
|
11738
11747
|
), a = Re("alignToBottom");
|
|
11739
11748
|
return F.useEffect(() => {
|
|
11740
11749
|
t && (r(t.itemHeight), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: 100 }));
|
|
11741
|
-
}, [t, n, r]), /* @__PURE__ */ u.jsx("div", { "data-viewport-type": "window", ref: s, style:
|
|
11750
|
+
}, [t, n, r]), /* @__PURE__ */ u.jsx("div", { "data-viewport-type": "window", ref: s, style: Xs(a), children: e });
|
|
11742
11751
|
}, lS = ({ children: e }) => {
|
|
11743
11752
|
const t = Re("TopItemListComponent") || "div", n = Re("headerHeight"), r = { ...nS, marginTop: `${n}px` }, o = Re("context");
|
|
11744
11753
|
return /* @__PURE__ */ u.jsx(t, { style: r, ...Ft(t, o), children: e });
|
|
@@ -11870,7 +11879,7 @@ const Qc = {
|
|
|
11870
11879
|
offsetBottom: 0,
|
|
11871
11880
|
offsetTop: 0,
|
|
11872
11881
|
top: 0
|
|
11873
|
-
}, { ceil: eu, floor:
|
|
11882
|
+
}, { ceil: eu, floor: Ss, max: ao, min: Fa, round: tu } = Math;
|
|
11874
11883
|
function nu(e, t, n) {
|
|
11875
11884
|
return Array.from({ length: t - e + 1 }).map((r, o) => ({ data: n === null ? null : n[o + e], index: o + e }));
|
|
11876
11885
|
}
|
|
@@ -11995,7 +12004,7 @@ const vS = /* @__PURE__ */ Ye(
|
|
|
11995
12004
|
}
|
|
11996
12005
|
const Ke = Kf(Le, vt, Ve);
|
|
11997
12006
|
let qe, ft;
|
|
11998
|
-
Fe ? H === 0 && Z === 0 && _e > 0 ? (qe = 0, ft = _e - 1) : (qe = Ke *
|
|
12007
|
+
Fe ? H === 0 && Z === 0 && _e > 0 ? (qe = 0, ft = _e - 1) : (qe = Ke * Ss((H + ze) / (mt + ze)), ft = Ke * eu((Z + ze) / (mt + ze)) - 1, ft = Fa(A - 1, ao(ft, Ke - 1)), qe = Fa(ft, ao(0, qe))) : (qe = 0, ft = -1);
|
|
11999
12008
|
const Ie = nu(qe, ft, Se), { bottom: Qe, top: lt } = ru(ye, re, ie, Ie), at = eu(A / Ke), nt = at * mt + (at - 1) * ze - Qe;
|
|
12000
12009
|
return { bottom: Qe, itemHeight: mt, items: Ie, itemWidth: vt, offsetBottom: nt, offsetTop: lt, top: lt };
|
|
12001
12010
|
}
|
|
@@ -12134,7 +12143,7 @@ const vS = /* @__PURE__ */ Ye(
|
|
|
12134
12143
|
dt(sl, Ut, _o, Mf, Un, al, Hn)
|
|
12135
12144
|
);
|
|
12136
12145
|
function Kf(e, t, n) {
|
|
12137
|
-
return ao(1,
|
|
12146
|
+
return ao(1, Ss((e + n) / (Ss(t) + n)));
|
|
12138
12147
|
}
|
|
12139
12148
|
function ru(e, t, n, r) {
|
|
12140
12149
|
const { height: o } = n;
|
|
@@ -12144,7 +12153,7 @@ function ru(e, t, n, r) {
|
|
|
12144
12153
|
return { bottom: ui(e, t, n, r[r.length - 1].index) + o, top: s };
|
|
12145
12154
|
}
|
|
12146
12155
|
function ui(e, t, n, r) {
|
|
12147
|
-
const o = Kf(e.width, n.width, t.column), s =
|
|
12156
|
+
const o = Kf(e.width, n.width, t.column), s = Ss(r / o), a = s * n.height + ao(0, s - 1) * t.row;
|
|
12148
12157
|
return a > 0 ? a + t.row : a;
|
|
12149
12158
|
}
|
|
12150
12159
|
const wS = /* @__PURE__ */ Ye(() => {
|
|
@@ -12269,12 +12278,12 @@ const wS = /* @__PURE__ */ Ye(() => {
|
|
|
12269
12278
|
);
|
|
12270
12279
|
return F.useEffect(() => {
|
|
12271
12280
|
t && (r({ height: t.viewportHeight, width: t.viewportWidth }), n({ height: t.itemHeight, width: t.itemWidth }));
|
|
12272
|
-
}, [t, r, n]), /* @__PURE__ */ u.jsx("div", { ref: o, style:
|
|
12281
|
+
}, [t, r, n]), /* @__PURE__ */ u.jsx("div", { ref: o, style: Xs(!1), children: e });
|
|
12273
12282
|
}, ES = ({ children: e }) => {
|
|
12274
12283
|
const t = F.useContext(Bf), n = an("windowViewportRect"), r = an("itemDimensions"), o = ht("customScrollParent"), s = vf(n, o, !1);
|
|
12275
12284
|
return F.useEffect(() => {
|
|
12276
12285
|
t && (r({ height: t.itemHeight, width: t.itemWidth }), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: t.viewportWidth }));
|
|
12277
|
-
}, [t, n, r]), /* @__PURE__ */ u.jsx("div", { ref: s, style:
|
|
12286
|
+
}, [t, n, r]), /* @__PURE__ */ u.jsx("div", { ref: s, style: Xs(!1), children: e });
|
|
12278
12287
|
}, kS = /* @__PURE__ */ F.memo(function({ ...e }) {
|
|
12279
12288
|
const t = ht("useWindowScroll"), n = ht("customScrollParent"), r = n || t ? IS : RS, o = n || t ? ES : CS, s = ht("context");
|
|
12280
12289
|
return /* @__PURE__ */ u.jsx(r, { ...e, ...Ft(r, s), children: /* @__PURE__ */ u.jsxs(o, { children: [
|
|
@@ -12661,7 +12670,7 @@ function AS({
|
|
|
12661
12670
|
T ? N : null
|
|
12662
12671
|
] });
|
|
12663
12672
|
}
|
|
12664
|
-
function
|
|
12673
|
+
function Js(e) {
|
|
12665
12674
|
const t = e + "CollectionProvider", [n, r] = cn(t), [o, s] = n(
|
|
12666
12675
|
t,
|
|
12667
12676
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
@@ -12702,11 +12711,11 @@ function Xs(e) {
|
|
|
12702
12711
|
];
|
|
12703
12712
|
}
|
|
12704
12713
|
var PS = h.createContext(void 0);
|
|
12705
|
-
function
|
|
12714
|
+
function Zs(e) {
|
|
12706
12715
|
const t = h.useContext(PS);
|
|
12707
12716
|
return e || t || "ltr";
|
|
12708
12717
|
}
|
|
12709
|
-
const jS = ["top", "right", "bottom", "left"], $n = Math.min, en = Math.max,
|
|
12718
|
+
const jS = ["top", "right", "bottom", "left"], $n = Math.min, en = Math.max, Ts = Math.round, Xo = Math.floor, Cn = (e) => ({
|
|
12710
12719
|
x: e,
|
|
12711
12720
|
y: e
|
|
12712
12721
|
}), _S = {
|
|
@@ -12747,10 +12756,10 @@ function DS(e, t, n) {
|
|
|
12747
12756
|
n === void 0 && (n = !1);
|
|
12748
12757
|
const r = Wr(e), o = fl(e), s = dl(o);
|
|
12749
12758
|
let a = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
12750
|
-
return t.reference[s] > t.floating[s] && (a =
|
|
12759
|
+
return t.reference[s] > t.floating[s] && (a = Cs(a)), [a, Cs(a)];
|
|
12751
12760
|
}
|
|
12752
12761
|
function LS(e) {
|
|
12753
|
-
const t =
|
|
12762
|
+
const t = Cs(e);
|
|
12754
12763
|
return [fi(e), t, fi(t)];
|
|
12755
12764
|
}
|
|
12756
12765
|
function fi(e) {
|
|
@@ -12774,7 +12783,7 @@ function zS(e, t, n, r) {
|
|
|
12774
12783
|
let s = BS(jn(e), n === "start", r);
|
|
12775
12784
|
return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(fi)))), s;
|
|
12776
12785
|
}
|
|
12777
|
-
function
|
|
12786
|
+
function Cs(e) {
|
|
12778
12787
|
return e.replace(/left|right|bottom|top/g, (t) => _S[t]);
|
|
12779
12788
|
}
|
|
12780
12789
|
function HS(e) {
|
|
@@ -12794,7 +12803,7 @@ function Jf(e) {
|
|
|
12794
12803
|
left: e
|
|
12795
12804
|
};
|
|
12796
12805
|
}
|
|
12797
|
-
function
|
|
12806
|
+
function Es(e) {
|
|
12798
12807
|
const {
|
|
12799
12808
|
x: t,
|
|
12800
12809
|
y: n,
|
|
@@ -12937,7 +12946,7 @@ async function mo(e, t) {
|
|
|
12937
12946
|
elementContext: p = "floating",
|
|
12938
12947
|
altBoundary: m = !1,
|
|
12939
12948
|
padding: f = 0
|
|
12940
|
-
} = Pn(t, e), v = Jf(f), x = i[m ? p === "floating" ? "reference" : "floating" : p], b =
|
|
12949
|
+
} = Pn(t, e), v = Jf(f), x = i[m ? p === "floating" ? "reference" : "floating" : p], b = Es(await s.getClippingRect({
|
|
12941
12950
|
element: (n = await (s.isElement == null ? void 0 : s.isElement(x))) == null || n ? x : x.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(i.floating)),
|
|
12942
12951
|
boundary: c,
|
|
12943
12952
|
rootBoundary: d,
|
|
@@ -12953,7 +12962,7 @@ async function mo(e, t) {
|
|
|
12953
12962
|
} : {
|
|
12954
12963
|
x: 1,
|
|
12955
12964
|
y: 1
|
|
12956
|
-
}, T =
|
|
12965
|
+
}, T = Es(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
12957
12966
|
elements: i,
|
|
12958
12967
|
rect: w,
|
|
12959
12968
|
offsetParent: S,
|
|
@@ -13027,7 +13036,7 @@ const WS = (e) => ({
|
|
|
13027
13036
|
} = Pn(e, t);
|
|
13028
13037
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
13029
13038
|
return {};
|
|
13030
|
-
const b = jn(o), w = Tn(i), S = jn(i) === i, E = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), T = m || (S || !g ? [
|
|
13039
|
+
const b = jn(o), w = Tn(i), S = jn(i) === i, E = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), T = m || (S || !g ? [Cs(i)] : LS(i)), y = v !== "none";
|
|
13031
13040
|
!m && y && T.push(...zS(i, g, v, E));
|
|
13032
13041
|
const C = [i, ...T], I = await mo(t, x), N = [];
|
|
13033
13042
|
let $ = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
@@ -13326,7 +13335,7 @@ const GS = function(e) {
|
|
|
13326
13335
|
}
|
|
13327
13336
|
};
|
|
13328
13337
|
};
|
|
13329
|
-
function
|
|
13338
|
+
function Qs() {
|
|
13330
13339
|
return typeof window < "u";
|
|
13331
13340
|
}
|
|
13332
13341
|
function Vr(e) {
|
|
@@ -13341,16 +13350,16 @@ function Rn(e) {
|
|
|
13341
13350
|
return (t = (Qf(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
13342
13351
|
}
|
|
13343
13352
|
function Qf(e) {
|
|
13344
|
-
return
|
|
13353
|
+
return Qs() ? e instanceof Node || e instanceof rn(e).Node : !1;
|
|
13345
13354
|
}
|
|
13346
13355
|
function mn(e) {
|
|
13347
|
-
return
|
|
13356
|
+
return Qs() ? e instanceof Element || e instanceof rn(e).Element : !1;
|
|
13348
13357
|
}
|
|
13349
13358
|
function En(e) {
|
|
13350
|
-
return
|
|
13359
|
+
return Qs() ? e instanceof HTMLElement || e instanceof rn(e).HTMLElement : !1;
|
|
13351
13360
|
}
|
|
13352
13361
|
function uu(e) {
|
|
13353
|
-
return !
|
|
13362
|
+
return !Qs() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof rn(e).ShadowRoot;
|
|
13354
13363
|
}
|
|
13355
13364
|
const ZS = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
13356
13365
|
function Oo(e) {
|
|
@@ -13367,7 +13376,7 @@ function eT(e) {
|
|
|
13367
13376
|
return QS.has(Vr(e));
|
|
13368
13377
|
}
|
|
13369
13378
|
const tT = [":popover-open", ":modal"];
|
|
13370
|
-
function
|
|
13379
|
+
function ea(e) {
|
|
13371
13380
|
return tT.some((t) => {
|
|
13372
13381
|
try {
|
|
13373
13382
|
return e.matches(t);
|
|
@@ -13386,7 +13395,7 @@ function sT(e) {
|
|
|
13386
13395
|
for (; En(t) && !_r(t); ) {
|
|
13387
13396
|
if (pl(t))
|
|
13388
13397
|
return t;
|
|
13389
|
-
if (
|
|
13398
|
+
if (ea(t))
|
|
13390
13399
|
return null;
|
|
13391
13400
|
t = Fn(t);
|
|
13392
13401
|
}
|
|
@@ -13402,7 +13411,7 @@ function _r(e) {
|
|
|
13402
13411
|
function gn(e) {
|
|
13403
13412
|
return rn(e).getComputedStyle(e);
|
|
13404
13413
|
}
|
|
13405
|
-
function
|
|
13414
|
+
function ta(e) {
|
|
13406
13415
|
return mn(e) ? {
|
|
13407
13416
|
scrollLeft: e.scrollLeft,
|
|
13408
13417
|
scrollTop: e.scrollTop
|
|
@@ -13443,7 +13452,7 @@ function pi(e) {
|
|
|
13443
13452
|
function tp(e) {
|
|
13444
13453
|
const t = gn(e);
|
|
13445
13454
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
13446
|
-
const o = En(e), s = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, i =
|
|
13455
|
+
const o = En(e), s = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, i = Ts(n) !== s || Ts(r) !== a;
|
|
13447
13456
|
return i && (n = s, r = a), {
|
|
13448
13457
|
width: n,
|
|
13449
13458
|
height: r,
|
|
@@ -13462,7 +13471,7 @@ function Ir(e) {
|
|
|
13462
13471
|
height: o,
|
|
13463
13472
|
$: s
|
|
13464
13473
|
} = tp(t);
|
|
13465
|
-
let a = (s ?
|
|
13474
|
+
let a = (s ? Ts(n.width) : n.width) / r, i = (s ? Ts(n.height) : n.height) / o;
|
|
13466
13475
|
return (!a || !Number.isFinite(a)) && (a = 1), (!i || !Number.isFinite(i)) && (i = 1), {
|
|
13467
13476
|
x: a,
|
|
13468
13477
|
y: i
|
|
@@ -13494,19 +13503,19 @@ function ir(e, t, n, r) {
|
|
|
13494
13503
|
l *= x.x, c *= x.y, d *= x.x, p *= x.y, l += S, c += E, v = rn(g), g = pi(v);
|
|
13495
13504
|
}
|
|
13496
13505
|
}
|
|
13497
|
-
return
|
|
13506
|
+
return Es({
|
|
13498
13507
|
width: d,
|
|
13499
13508
|
height: p,
|
|
13500
13509
|
x: l,
|
|
13501
13510
|
y: c
|
|
13502
13511
|
});
|
|
13503
13512
|
}
|
|
13504
|
-
function
|
|
13505
|
-
const n =
|
|
13513
|
+
function na(e, t) {
|
|
13514
|
+
const n = ta(e).scrollLeft;
|
|
13506
13515
|
return t ? t.left + n : ir(Rn(e)).left + n;
|
|
13507
13516
|
}
|
|
13508
13517
|
function rp(e, t) {
|
|
13509
|
-
const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft -
|
|
13518
|
+
const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - na(e, n), o = n.top + t.scrollTop;
|
|
13510
13519
|
return {
|
|
13511
13520
|
x: r,
|
|
13512
13521
|
y: o
|
|
@@ -13519,7 +13528,7 @@ function cT(e) {
|
|
|
13519
13528
|
offsetParent: r,
|
|
13520
13529
|
strategy: o
|
|
13521
13530
|
} = e;
|
|
13522
|
-
const s = o === "fixed", a = Rn(r), i = t ?
|
|
13531
|
+
const s = o === "fixed", a = Rn(r), i = t ? ea(t.floating) : !1;
|
|
13523
13532
|
if (r === a || i && s)
|
|
13524
13533
|
return n;
|
|
13525
13534
|
let l = {
|
|
@@ -13527,7 +13536,7 @@ function cT(e) {
|
|
|
13527
13536
|
scrollTop: 0
|
|
13528
13537
|
}, c = Cn(1);
|
|
13529
13538
|
const d = Cn(0), p = En(r);
|
|
13530
|
-
if ((p || !p && !s) && ((Vr(r) !== "body" || Oo(a)) && (l =
|
|
13539
|
+
if ((p || !p && !s) && ((Vr(r) !== "body" || Oo(a)) && (l = ta(r)), En(r))) {
|
|
13531
13540
|
const f = ir(r);
|
|
13532
13541
|
c = Ir(r), d.x = f.x + r.clientLeft, d.y = f.y + r.clientTop;
|
|
13533
13542
|
}
|
|
@@ -13543,8 +13552,8 @@ function uT(e) {
|
|
|
13543
13552
|
return Array.from(e.getClientRects());
|
|
13544
13553
|
}
|
|
13545
13554
|
function dT(e) {
|
|
13546
|
-
const t = Rn(e), n =
|
|
13547
|
-
let a = -n.scrollLeft +
|
|
13555
|
+
const t = Rn(e), n = ta(e), r = e.ownerDocument.body, o = en(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = en(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
13556
|
+
let a = -n.scrollLeft + na(e);
|
|
13548
13557
|
const i = -n.scrollTop;
|
|
13549
13558
|
return gn(r).direction === "rtl" && (a += en(t.clientWidth, r.clientWidth) - o), {
|
|
13550
13559
|
width: o,
|
|
@@ -13562,7 +13571,7 @@ function fT(e, t) {
|
|
|
13562
13571
|
const d = hl();
|
|
13563
13572
|
(!d || d && t === "fixed") && (i = o.offsetLeft, l = o.offsetTop);
|
|
13564
13573
|
}
|
|
13565
|
-
const c =
|
|
13574
|
+
const c = na(r);
|
|
13566
13575
|
if (c <= 0) {
|
|
13567
13576
|
const d = r.ownerDocument, p = d.body, m = getComputedStyle(p), f = d.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, v = Math.abs(r.clientWidth - p.clientWidth - f);
|
|
13568
13577
|
v <= du && (s -= v);
|
|
@@ -13601,7 +13610,7 @@ function fu(e, t, n) {
|
|
|
13601
13610
|
height: t.height
|
|
13602
13611
|
};
|
|
13603
13612
|
}
|
|
13604
|
-
return
|
|
13613
|
+
return Es(r);
|
|
13605
13614
|
}
|
|
13606
13615
|
function op(e, t) {
|
|
13607
13616
|
const n = Fn(e);
|
|
@@ -13627,7 +13636,7 @@ function gT(e) {
|
|
|
13627
13636
|
rootBoundary: r,
|
|
13628
13637
|
strategy: o
|
|
13629
13638
|
} = e;
|
|
13630
|
-
const a = [...n === "clippingAncestors" ?
|
|
13639
|
+
const a = [...n === "clippingAncestors" ? ea(t) ? [] : mT(t, this._c) : [].concat(n), r], i = a[0], l = a.reduce((c, d) => {
|
|
13631
13640
|
const p = fu(t, d, o);
|
|
13632
13641
|
return c.top = en(p.top, c.top), c.right = $n(p.right, c.right), c.bottom = $n(p.bottom, c.bottom), c.left = en(p.left, c.left), c;
|
|
13633
13642
|
}, fu(t, i, o));
|
|
@@ -13656,10 +13665,10 @@ function vT(e, t, n) {
|
|
|
13656
13665
|
};
|
|
13657
13666
|
const l = Cn(0);
|
|
13658
13667
|
function c() {
|
|
13659
|
-
l.x =
|
|
13668
|
+
l.x = na(o);
|
|
13660
13669
|
}
|
|
13661
13670
|
if (r || !r && !s)
|
|
13662
|
-
if ((Vr(t) !== "body" || Oo(o)) && (i =
|
|
13671
|
+
if ((Vr(t) !== "body" || Oo(o)) && (i = ta(t)), r) {
|
|
13663
13672
|
const f = ir(t, !0, s, t);
|
|
13664
13673
|
l.x = f.x + t.clientLeft, l.y = f.y + t.clientTop;
|
|
13665
13674
|
} else o && c();
|
|
@@ -13685,7 +13694,7 @@ function pu(e, t) {
|
|
|
13685
13694
|
}
|
|
13686
13695
|
function sp(e, t) {
|
|
13687
13696
|
const n = rn(e);
|
|
13688
|
-
if (
|
|
13697
|
+
if (ea(e))
|
|
13689
13698
|
return n;
|
|
13690
13699
|
if (!En(e)) {
|
|
13691
13700
|
let o = Fn(e);
|
|
@@ -13827,8 +13836,8 @@ const CT = GS, ET = YS, kT = VS, RT = JS, IT = KS, hu = WS, NT = XS, AT = (e, t,
|
|
|
13827
13836
|
});
|
|
13828
13837
|
};
|
|
13829
13838
|
var PT = typeof document < "u", jT = function() {
|
|
13830
|
-
},
|
|
13831
|
-
function
|
|
13839
|
+
}, ps = PT ? Mg : jT;
|
|
13840
|
+
function ks(e, t) {
|
|
13832
13841
|
if (e === t)
|
|
13833
13842
|
return !0;
|
|
13834
13843
|
if (typeof e != typeof t)
|
|
@@ -13840,7 +13849,7 @@ function Es(e, t) {
|
|
|
13840
13849
|
if (Array.isArray(e)) {
|
|
13841
13850
|
if (n = e.length, n !== t.length) return !1;
|
|
13842
13851
|
for (r = n; r-- !== 0; )
|
|
13843
|
-
if (!
|
|
13852
|
+
if (!ks(e[r], t[r]))
|
|
13844
13853
|
return !1;
|
|
13845
13854
|
return !0;
|
|
13846
13855
|
}
|
|
@@ -13851,7 +13860,7 @@ function Es(e, t) {
|
|
|
13851
13860
|
return !1;
|
|
13852
13861
|
for (r = n; r-- !== 0; ) {
|
|
13853
13862
|
const s = o[r];
|
|
13854
|
-
if (!(s === "_owner" && e.$$typeof) && !
|
|
13863
|
+
if (!(s === "_owner" && e.$$typeof) && !ks(e[s], t[s]))
|
|
13855
13864
|
return !1;
|
|
13856
13865
|
}
|
|
13857
13866
|
return !0;
|
|
@@ -13867,7 +13876,7 @@ function mu(e, t) {
|
|
|
13867
13876
|
}
|
|
13868
13877
|
function za(e) {
|
|
13869
13878
|
const t = h.useRef(e);
|
|
13870
|
-
return
|
|
13879
|
+
return ps(() => {
|
|
13871
13880
|
t.current = e;
|
|
13872
13881
|
}), t;
|
|
13873
13882
|
}
|
|
@@ -13893,7 +13902,7 @@ function _T(e) {
|
|
|
13893
13902
|
middlewareData: {},
|
|
13894
13903
|
isPositioned: !1
|
|
13895
13904
|
}), [m, f] = h.useState(r);
|
|
13896
|
-
|
|
13905
|
+
ks(m, r) || f(r);
|
|
13897
13906
|
const [v, g] = h.useState(null), [x, b] = h.useState(null), w = h.useCallback((O) => {
|
|
13898
13907
|
O !== y.current && (y.current = O, g(O));
|
|
13899
13908
|
}, []), S = h.useCallback((O) => {
|
|
@@ -13915,21 +13924,21 @@ function _T(e) {
|
|
|
13915
13924
|
// setting it to `true` when `open === false` (must be specified).
|
|
13916
13925
|
isPositioned: B.current !== !1
|
|
13917
13926
|
};
|
|
13918
|
-
j.current && !
|
|
13927
|
+
j.current && !ks(I.current, z) && (I.current = z, So.flushSync(() => {
|
|
13919
13928
|
p(z);
|
|
13920
13929
|
}));
|
|
13921
13930
|
});
|
|
13922
13931
|
}, [m, t, n, L, B]);
|
|
13923
|
-
|
|
13932
|
+
ps(() => {
|
|
13924
13933
|
c === !1 && I.current.isPositioned && (I.current.isPositioned = !1, p((O) => ({
|
|
13925
13934
|
...O,
|
|
13926
13935
|
isPositioned: !1
|
|
13927
13936
|
})));
|
|
13928
13937
|
}, [c]);
|
|
13929
13938
|
const j = h.useRef(!1);
|
|
13930
|
-
|
|
13939
|
+
ps(() => (j.current = !0, () => {
|
|
13931
13940
|
j.current = !1;
|
|
13932
|
-
}), []),
|
|
13941
|
+
}), []), ps(() => {
|
|
13933
13942
|
if (E && (y.current = E), T && (C.current = T), E && T) {
|
|
13934
13943
|
if ($.current)
|
|
13935
13944
|
return $.current(E, T, q);
|
|
@@ -14253,7 +14262,7 @@ function vp(e) {
|
|
|
14253
14262
|
const [t, n = "center"] = e.split("-");
|
|
14254
14263
|
return [t, n];
|
|
14255
14264
|
}
|
|
14256
|
-
var vl = fp, wl = hp, bl = mp, yl = xp, Ha = "rovingFocusGroup.onEntryFocus", XT = { bubbles: !1, cancelable: !0 }, Mo = "RovingFocusGroup", [hi, wp, JT] =
|
|
14265
|
+
var vl = fp, wl = hp, bl = mp, yl = xp, Ha = "rovingFocusGroup.onEntryFocus", XT = { bubbles: !1, cancelable: !0 }, Mo = "RovingFocusGroup", [hi, wp, JT] = Js(Mo), [ZT, bp] = cn(
|
|
14257
14266
|
Mo,
|
|
14258
14267
|
[JT]
|
|
14259
14268
|
), [QT, eC] = ZT(Mo), yp = h.forwardRef(
|
|
@@ -14272,7 +14281,7 @@ var tC = h.forwardRef((e, t) => {
|
|
|
14272
14281
|
onEntryFocus: c,
|
|
14273
14282
|
preventScrollOnEntryFocus: d = !1,
|
|
14274
14283
|
...p
|
|
14275
|
-
} = e, m = h.useRef(null), f = Oe(t, m), v =
|
|
14284
|
+
} = e, m = h.useRef(null), f = Oe(t, m), v = Zs(s), [g, x] = An({
|
|
14276
14285
|
prop: a,
|
|
14277
14286
|
defaultProp: i ?? null,
|
|
14278
14287
|
onChange: l,
|
|
@@ -14423,12 +14432,12 @@ var aC = yp, iC = Tp, mi = ["Enter", " "], lC = ["ArrowDown", "PageUp", "Home"],
|
|
|
14423
14432
|
}, dC = {
|
|
14424
14433
|
ltr: ["ArrowLeft"],
|
|
14425
14434
|
rtl: ["ArrowRight"]
|
|
14426
|
-
}, Do = "Menu", [xo, fC, pC] =
|
|
14435
|
+
}, Do = "Menu", [xo, fC, pC] = Js(Do), [mr, kp] = cn(Do, [
|
|
14427
14436
|
pC,
|
|
14428
14437
|
Kr,
|
|
14429
14438
|
bp
|
|
14430
|
-
]),
|
|
14431
|
-
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: a = !0 } = e, i =
|
|
14439
|
+
]), ra = Kr(), Rp = bp(), [hC, gr] = mr(Do), [mC, Lo] = mr(Do), Ip = (e) => {
|
|
14440
|
+
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: a = !0 } = e, i = ra(t), [l, c] = h.useState(null), d = h.useRef(!1), p = Et(s), m = Zs(o);
|
|
14432
14441
|
return h.useEffect(() => {
|
|
14433
14442
|
const f = () => {
|
|
14434
14443
|
d.current = !0, document.addEventListener("pointerdown", v, { capture: !0, once: !0 }), document.addEventListener("pointermove", v, { capture: !0, once: !0 });
|
|
@@ -14461,7 +14470,7 @@ var aC = yp, iC = Tp, mi = ["Enter", " "], lC = ["ArrowDown", "PageUp", "Home"],
|
|
|
14461
14470
|
Ip.displayName = Do;
|
|
14462
14471
|
var gC = "MenuAnchor", Sl = h.forwardRef(
|
|
14463
14472
|
(e, t) => {
|
|
14464
|
-
const { __scopeMenu: n, ...r } = e, o =
|
|
14473
|
+
const { __scopeMenu: n, ...r } = e, o = ra(n);
|
|
14465
14474
|
return /* @__PURE__ */ u.jsx(wl, { ...o, ...r, ref: t });
|
|
14466
14475
|
}
|
|
14467
14476
|
);
|
|
@@ -14531,7 +14540,7 @@ var ln = "MenuContent", [vC, Cl] = mr(ln), Pp = h.forwardRef(
|
|
|
14531
14540
|
onDismiss: f,
|
|
14532
14541
|
disableOutsideScroll: v,
|
|
14533
14542
|
...g
|
|
14534
|
-
} = e, x = gr(ln, n), b = Lo(ln, n), w =
|
|
14543
|
+
} = e, x = gr(ln, n), b = Lo(ln, n), w = ra(n), S = Rp(n), E = fC(n), [T, y] = h.useState(null), C = h.useRef(null), I = Oe(t, C, x.onContentChange), N = h.useRef(0), $ = h.useRef(""), L = h.useRef(0), B = h.useRef(null), q = h.useRef("right"), j = h.useRef(0), W = v ? Us : h.Fragment, X = v ? { as: yC, allowPinchZoom: !0 } : void 0, J = (k) => {
|
|
14535
14544
|
var P, A;
|
|
14536
14545
|
const z = $.current + k, V = E().filter((H) => !H.disabled), _ = document.activeElement, G = (P = V.find((H) => H.ref.current === _)) == null ? void 0 : P.textValue, M = V.map((H) => H.textValue), D = _C(M, z, G), Y = (A = V.find((H) => H.textValue === D)) == null ? void 0 : A.ref.current;
|
|
14537
14546
|
(function H(Z) {
|
|
@@ -14572,7 +14581,7 @@ var ln = "MenuContent", [vC, Cl] = mr(ln), Pp = h.forwardRef(
|
|
|
14572
14581
|
B.current = k;
|
|
14573
14582
|
}, []),
|
|
14574
14583
|
children: /* @__PURE__ */ u.jsx(W, { ...X, children: /* @__PURE__ */ u.jsx(
|
|
14575
|
-
|
|
14584
|
+
zs,
|
|
14576
14585
|
{
|
|
14577
14586
|
asChild: !0,
|
|
14578
14587
|
trapped: o,
|
|
@@ -14666,9 +14675,9 @@ var TC = "MenuLabel", jp = h.forwardRef(
|
|
|
14666
14675
|
}
|
|
14667
14676
|
);
|
|
14668
14677
|
jp.displayName = TC;
|
|
14669
|
-
var
|
|
14678
|
+
var Rs = "MenuItem", gu = "menu.itemSelect", oa = h.forwardRef(
|
|
14670
14679
|
(e, t) => {
|
|
14671
|
-
const { disabled: n = !1, onSelect: r, ...o } = e, s = h.useRef(null), a = Lo(
|
|
14680
|
+
const { disabled: n = !1, onSelect: r, ...o } = e, s = h.useRef(null), a = Lo(Rs, e.__scopeMenu), i = Cl(Rs, e.__scopeMenu), l = Oe(t, s), c = h.useRef(!1), d = () => {
|
|
14672
14681
|
const p = s.current;
|
|
14673
14682
|
if (!n && p) {
|
|
14674
14683
|
const m = new CustomEvent(gu, { bubbles: !0, cancelable: !0 });
|
|
@@ -14698,10 +14707,10 @@ var ks = "MenuItem", gu = "menu.itemSelect", ra = h.forwardRef(
|
|
|
14698
14707
|
);
|
|
14699
14708
|
}
|
|
14700
14709
|
);
|
|
14701
|
-
|
|
14710
|
+
oa.displayName = Rs;
|
|
14702
14711
|
var _p = h.forwardRef(
|
|
14703
14712
|
(e, t) => {
|
|
14704
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, a = Cl(
|
|
14713
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, a = Cl(Rs, n), i = Rp(n), l = h.useRef(null), c = Oe(t, l), [d, p] = h.useState(!1), [m, f] = h.useState("");
|
|
14705
14714
|
return h.useEffect(() => {
|
|
14706
14715
|
const v = l.current;
|
|
14707
14716
|
v && f((v.textContent ?? "").trim());
|
|
@@ -14741,16 +14750,16 @@ var _p = h.forwardRef(
|
|
|
14741
14750
|
(e, t) => {
|
|
14742
14751
|
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
14743
14752
|
return /* @__PURE__ */ u.jsx(Fp, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ u.jsx(
|
|
14744
|
-
|
|
14753
|
+
oa,
|
|
14745
14754
|
{
|
|
14746
14755
|
role: "menuitemcheckbox",
|
|
14747
|
-
"aria-checked":
|
|
14756
|
+
"aria-checked": Is(n) ? "mixed" : n,
|
|
14748
14757
|
...o,
|
|
14749
14758
|
ref: t,
|
|
14750
14759
|
"data-state": Il(n),
|
|
14751
14760
|
onSelect: le(
|
|
14752
14761
|
o.onSelect,
|
|
14753
|
-
() => r == null ? void 0 : r(
|
|
14762
|
+
() => r == null ? void 0 : r(Is(n) ? !0 : !n),
|
|
14754
14763
|
{ checkForDefaultPrevented: !1 }
|
|
14755
14764
|
)
|
|
14756
14765
|
}
|
|
@@ -14773,7 +14782,7 @@ var Lp = "MenuRadioItem", $p = h.forwardRef(
|
|
|
14773
14782
|
(e, t) => {
|
|
14774
14783
|
const { value: n, ...r } = e, o = kC(Lp, e.__scopeMenu), s = n === o.value;
|
|
14775
14784
|
return /* @__PURE__ */ u.jsx(Fp, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ u.jsx(
|
|
14776
|
-
|
|
14785
|
+
oa,
|
|
14777
14786
|
{
|
|
14778
14787
|
role: "menuitemradio",
|
|
14779
14788
|
"aria-checked": s,
|
|
@@ -14802,7 +14811,7 @@ var Rl = "MenuItemIndicator", [Fp, RC] = mr(
|
|
|
14802
14811
|
return /* @__PURE__ */ u.jsx(
|
|
14803
14812
|
Ht,
|
|
14804
14813
|
{
|
|
14805
|
-
present: r ||
|
|
14814
|
+
present: r || Is(s.checked) || s.checked === !0,
|
|
14806
14815
|
children: /* @__PURE__ */ u.jsx(
|
|
14807
14816
|
ge.span,
|
|
14808
14817
|
{
|
|
@@ -14833,7 +14842,7 @@ var IC = "MenuSeparator", zp = h.forwardRef(
|
|
|
14833
14842
|
zp.displayName = IC;
|
|
14834
14843
|
var NC = "MenuArrow", Hp = h.forwardRef(
|
|
14835
14844
|
(e, t) => {
|
|
14836
|
-
const { __scopeMenu: n, ...r } = e, o =
|
|
14845
|
+
const { __scopeMenu: n, ...r } = e, o = ra(n);
|
|
14837
14846
|
return /* @__PURE__ */ u.jsx(yl, { ...o, ...r, ref: t });
|
|
14838
14847
|
}
|
|
14839
14848
|
);
|
|
@@ -14948,11 +14957,11 @@ Kp.displayName = Vp;
|
|
|
14948
14957
|
function qp(e) {
|
|
14949
14958
|
return e ? "open" : "closed";
|
|
14950
14959
|
}
|
|
14951
|
-
function
|
|
14960
|
+
function Is(e) {
|
|
14952
14961
|
return e === "indeterminate";
|
|
14953
14962
|
}
|
|
14954
14963
|
function Il(e) {
|
|
14955
|
-
return
|
|
14964
|
+
return Is(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
14956
14965
|
}
|
|
14957
14966
|
function PC(e) {
|
|
14958
14967
|
const t = document.activeElement;
|
|
@@ -14988,10 +14997,10 @@ function MC(e, t) {
|
|
|
14988
14997
|
function vo(e) {
|
|
14989
14998
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
14990
14999
|
}
|
|
14991
|
-
var DC = Ip, LC = Sl, $C = Ap, FC = Pp, BC = kl, zC = jp, HC =
|
|
14992
|
-
|
|
15000
|
+
var DC = Ip, LC = Sl, $C = Ap, FC = Pp, BC = kl, zC = jp, HC = oa, UC = Op, WC = Dp, VC = $p, KC = Bp, qC = zp, GC = Hp, YC = Wp, XC = Kp, sa = "DropdownMenu", [JC, E1] = cn(
|
|
15001
|
+
sa,
|
|
14993
15002
|
[kp]
|
|
14994
|
-
), Wt = kp(), [ZC, Gp] = JC(
|
|
15003
|
+
), Wt = kp(), [ZC, Gp] = JC(sa), Yp = (e) => {
|
|
14995
15004
|
const {
|
|
14996
15005
|
__scopeDropdownMenu: t,
|
|
14997
15006
|
children: n,
|
|
@@ -15004,7 +15013,7 @@ var DC = Ip, LC = Sl, $C = Ap, FC = Pp, BC = kl, zC = jp, HC = ra, UC = Op, WC =
|
|
|
15004
15013
|
prop: o,
|
|
15005
15014
|
defaultProp: s ?? !1,
|
|
15006
15015
|
onChange: a,
|
|
15007
|
-
caller:
|
|
15016
|
+
caller: sa
|
|
15008
15017
|
});
|
|
15009
15018
|
return /* @__PURE__ */ u.jsx(
|
|
15010
15019
|
ZC,
|
|
@@ -15021,7 +15030,7 @@ var DC = Ip, LC = Sl, $C = Ap, FC = Pp, BC = kl, zC = jp, HC = ra, UC = Op, WC =
|
|
|
15021
15030
|
}
|
|
15022
15031
|
);
|
|
15023
15032
|
};
|
|
15024
|
-
Yp.displayName =
|
|
15033
|
+
Yp.displayName = sa;
|
|
15025
15034
|
var Xp = "DropdownMenuTrigger", Jp = h.forwardRef(
|
|
15026
15035
|
(e, t) => {
|
|
15027
15036
|
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = Gp(Xp, n), a = Wt(n);
|
|
@@ -15194,7 +15203,7 @@ const vE = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
|
15194
15203
|
}
|
|
15195
15204
|
));
|
|
15196
15205
|
vE.displayName = xh.displayName;
|
|
15197
|
-
const
|
|
15206
|
+
const aa = h.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ u.jsx(gE, { children: /* @__PURE__ */ u.jsx(
|
|
15198
15207
|
ch,
|
|
15199
15208
|
{
|
|
15200
15209
|
ref: r,
|
|
@@ -15206,7 +15215,7 @@ const sa = h.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__
|
|
|
15206
15215
|
...n
|
|
15207
15216
|
}
|
|
15208
15217
|
) }));
|
|
15209
|
-
|
|
15218
|
+
aa.displayName = ch.displayName;
|
|
15210
15219
|
const tr = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ u.jsx(
|
|
15211
15220
|
dh,
|
|
15212
15221
|
{
|
|
@@ -15231,7 +15240,7 @@ const wE = h.forwardRef(({ className: e, children: t, checked: n, ...r }, o) =>
|
|
|
15231
15240
|
checked: n,
|
|
15232
15241
|
...r,
|
|
15233
15242
|
children: [
|
|
15234
|
-
/* @__PURE__ */ u.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ u.jsx(hh, { children: /* @__PURE__ */ u.jsx(
|
|
15243
|
+
/* @__PURE__ */ u.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ u.jsx(hh, { children: /* @__PURE__ */ u.jsx(_s, { className: "h-4 w-4" }) }) }),
|
|
15235
15244
|
t
|
|
15236
15245
|
]
|
|
15237
15246
|
}
|
|
@@ -15568,7 +15577,7 @@ function kE({
|
|
|
15568
15577
|
children: /* @__PURE__ */ u.jsx(qg, { size: 16 })
|
|
15569
15578
|
}
|
|
15570
15579
|
) }),
|
|
15571
|
-
/* @__PURE__ */ u.jsxs(
|
|
15580
|
+
/* @__PURE__ */ u.jsxs(aa, { align: "start", sideOffset: 6, className: "w-52", children: [
|
|
15572
15581
|
m && /* @__PURE__ */ u.jsxs(
|
|
15573
15582
|
tr,
|
|
15574
15583
|
{
|
|
@@ -15657,7 +15666,7 @@ function io({
|
|
|
15657
15666
|
metadata: W,
|
|
15658
15667
|
checkpointIndex: X,
|
|
15659
15668
|
respondToInterrupt: J
|
|
15660
|
-
} =
|
|
15669
|
+
} = Bs(), { isStreaming: O, error: k, connectionState: z, submit: V, stop: _ } = Mw(), G = C ?? y ?? null, M = (B == null ? void 0 : B.id) ?? null, D = (B == null ? void 0 : B.namespace) ?? null, Y = (W == null ? void 0 : W.assemblingMessageId) ?? null;
|
|
15661
15670
|
F.useEffect(() => {
|
|
15662
15671
|
console.log("[ChatInterface] streamingAssistantId changed:", { streamingAssistantId: Y, isStreaming: O, assemblingMessageId: W == null ? void 0 : W.assemblingMessageId });
|
|
15663
15672
|
}, [Y, O, W == null ? void 0 : W.assemblingMessageId]);
|
|
@@ -16168,7 +16177,7 @@ var Qr = '[cmdk-group=""]', Va = '[cmdk-group-items=""]', LE = '[cmdk-group-head
|
|
|
16168
16177
|
}
|
|
16169
16178
|
}
|
|
16170
16179
|
}
|
|
16171
|
-
} }, h.createElement("label", { "cmdk-label": "", htmlFor: I.inputId, id: I.labelId, style: JE }, l),
|
|
16180
|
+
} }, h.createElement("label", { "cmdk-label": "", htmlFor: I.inputId, id: I.labelId, style: JE }, l), ia(e, (_) => h.createElement(Sh.Provider, { value: C }, h.createElement(yh.Provider, { value: I }, _))));
|
|
16172
16181
|
}), FE = h.forwardRef((e, t) => {
|
|
16173
16182
|
var n, r;
|
|
16174
16183
|
let o = Mt(), s = h.useRef(null), a = h.useContext(Th), i = $o(), l = Eh(e), c = (r = (n = l.current) == null ? void 0 : n.forceMount) != null ? r : a == null ? void 0 : a.forceMount;
|
|
@@ -16194,7 +16203,7 @@ var Qr = '[cmdk-group=""]', Va = '[cmdk-group-items=""]', LE = '[cmdk-group-head
|
|
|
16194
16203
|
let { heading: n, children: r, forceMount: o, ...s } = e, a = Mt(), i = h.useRef(null), l = h.useRef(null), c = Mt(), d = $o(), p = Bn((f) => o || d.filter() === !1 ? !0 : f.search ? f.filtered.groups.has(a) : !0);
|
|
16195
16204
|
lr(() => d.group(a), []), kh(a, i, [e.value, e.heading, l]);
|
|
16196
16205
|
let m = h.useMemo(() => ({ id: a, forceMount: o }), [o]);
|
|
16197
|
-
return h.createElement(ge.div, { ref: On(i, t), ...s, "cmdk-group": "", role: "presentation", hidden: p ? void 0 : !0 }, n && h.createElement("div", { ref: l, "cmdk-group-heading": "", "aria-hidden": !0, id: c }, n),
|
|
16206
|
+
return h.createElement(ge.div, { ref: On(i, t), ...s, "cmdk-group": "", role: "presentation", hidden: p ? void 0 : !0 }, n && h.createElement("div", { ref: l, "cmdk-group-heading": "", "aria-hidden": !0, id: c }, n), ia(e, (f) => h.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? c : void 0 }, h.createElement(Th.Provider, { value: m }, f))));
|
|
16198
16207
|
}), zE = h.forwardRef((e, t) => {
|
|
16199
16208
|
let { alwaysRender: n, ...r } = e, o = h.useRef(null), s = Bn((a) => !a.search);
|
|
16200
16209
|
return !n && !s ? null : h.createElement(ge.div, { ref: On(o, t), ...r, "cmdk-separator": "", role: "separator" });
|
|
@@ -16219,13 +16228,13 @@ var Qr = '[cmdk-group=""]', Va = '[cmdk-group-items=""]', LE = '[cmdk-group-head
|
|
|
16219
16228
|
cancelAnimationFrame(p), m.unobserve(c);
|
|
16220
16229
|
};
|
|
16221
16230
|
}
|
|
16222
|
-
}, []), h.createElement(ge.div, { ref: On(s, t), ...o, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": i, "aria-label": r, id: l.listId },
|
|
16231
|
+
}, []), h.createElement(ge.div, { ref: On(s, t), ...o, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": i, "aria-label": r, id: l.listId }, ia(e, (c) => h.createElement("div", { ref: On(a, l.listInnerRef), "cmdk-list-sizer": "" }, c)));
|
|
16223
16232
|
}), WE = h.forwardRef((e, t) => {
|
|
16224
16233
|
let { open: n, onOpenChange: r, overlayClassName: o, contentClassName: s, container: a, ...i } = e;
|
|
16225
16234
|
return h.createElement(Ki, { open: n, onOpenChange: r }, h.createElement(qi, { container: a }, h.createElement(No, { "cmdk-overlay": "", className: o }), h.createElement(Ao, { "aria-label": e.label, "cmdk-dialog": "", className: s }, h.createElement(Ch, { ref: t, ...i }))));
|
|
16226
16235
|
}), VE = h.forwardRef((e, t) => Bn((n) => n.filtered.count === 0) ? h.createElement(ge.div, { ref: t, ...e, "cmdk-empty": "", role: "presentation" }) : null), KE = h.forwardRef((e, t) => {
|
|
16227
16236
|
let { progress: n, children: r, label: o = "Loading...", ...s } = e;
|
|
16228
|
-
return h.createElement(ge.div, { ref: t, ...s, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o },
|
|
16237
|
+
return h.createElement(ge.div, { ref: t, ...s, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, ia(e, (a) => h.createElement("div", { "aria-hidden": !0 }, a)));
|
|
16229
16238
|
}), Zt = Object.assign(Ch, { List: UE, Item: FE, Input: HE, Group: BE, Separator: zE, Dialog: WE, Empty: VE, Loading: KE });
|
|
16230
16239
|
function qE(e, t) {
|
|
16231
16240
|
let n = e.nextElementSibling;
|
|
@@ -16282,7 +16291,7 @@ function XE(e) {
|
|
|
16282
16291
|
let t = e.type;
|
|
16283
16292
|
return typeof t == "function" ? t(e.props) : "render" in t ? t.render(e.props) : e;
|
|
16284
16293
|
}
|
|
16285
|
-
function
|
|
16294
|
+
function ia({ asChild: e, children: t }, n) {
|
|
16286
16295
|
return e && h.isValidElement(t) ? h.cloneElement(XE(t), { ref: t.ref }, n(t.props.children)) : n(t);
|
|
16287
16296
|
}
|
|
16288
16297
|
var JE = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
@@ -16378,7 +16387,7 @@ var jl = "ScrollArea", [_h, k1] = cn(jl), [ek, un] = _h(jl), Oh = h.forwardRef(
|
|
|
16378
16387
|
dir: o,
|
|
16379
16388
|
scrollHideDelay: s = 600,
|
|
16380
16389
|
...a
|
|
16381
|
-
} = e, [i, l] = h.useState(null), [c, d] = h.useState(null), [p, m] = h.useState(null), [f, v] = h.useState(null), [g, x] = h.useState(null), [b, w] = h.useState(0), [S, E] = h.useState(0), [T, y] = h.useState(!1), [C, I] = h.useState(!1), N = Oe(t, (L) => l(L)), $ =
|
|
16390
|
+
} = e, [i, l] = h.useState(null), [c, d] = h.useState(null), [p, m] = h.useState(null), [f, v] = h.useState(null), [g, x] = h.useState(null), [b, w] = h.useState(0), [S, E] = h.useState(0), [T, y] = h.useState(!1), [C, I] = h.useState(!1), N = Oe(t, (L) => l(L)), $ = Zs(o);
|
|
16382
16391
|
return /* @__PURE__ */ u.jsx(
|
|
16383
16392
|
ek,
|
|
16384
16393
|
{
|
|
@@ -16496,7 +16505,7 @@ var tk = h.forwardRef((e, t) => {
|
|
|
16496
16505
|
}
|
|
16497
16506
|
) });
|
|
16498
16507
|
}), nk = h.forwardRef((e, t) => {
|
|
16499
|
-
const { forceMount: n, ...r } = e, o = un(In, e.__scopeScrollArea), s = e.orientation === "horizontal", a =
|
|
16508
|
+
const { forceMount: n, ...r } = e, o = un(In, e.__scopeScrollArea), s = e.orientation === "horizontal", a = ca(() => l("SCROLL_END"), 100), [i, l] = QE("hidden", {
|
|
16500
16509
|
hidden: {
|
|
16501
16510
|
SCROLL: "scrolling"
|
|
16502
16511
|
},
|
|
@@ -16540,7 +16549,7 @@ var tk = h.forwardRef((e, t) => {
|
|
|
16540
16549
|
}
|
|
16541
16550
|
) });
|
|
16542
16551
|
}), Lh = h.forwardRef((e, t) => {
|
|
16543
|
-
const n = un(In, e.__scopeScrollArea), { forceMount: r, ...o } = e, [s, a] = h.useState(!1), i = e.orientation === "horizontal", l =
|
|
16552
|
+
const n = un(In, e.__scopeScrollArea), { forceMount: r, ...o } = e, [s, a] = h.useState(!1), i = e.orientation === "horizontal", l = ca(() => {
|
|
16544
16553
|
if (n.viewport) {
|
|
16545
16554
|
const c = n.viewport.offsetWidth < n.viewport.scrollWidth, d = n.viewport.offsetHeight < n.viewport.scrollHeight;
|
|
16546
16555
|
a(i ? c : d);
|
|
@@ -16623,7 +16632,7 @@ var tk = h.forwardRef((e, t) => {
|
|
|
16623
16632
|
bottom: 0,
|
|
16624
16633
|
left: s.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0,
|
|
16625
16634
|
right: s.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0,
|
|
16626
|
-
"--radix-scroll-area-thumb-width":
|
|
16635
|
+
"--radix-scroll-area-thumb-width": la(n) + "px",
|
|
16627
16636
|
...e.style
|
|
16628
16637
|
},
|
|
16629
16638
|
onThumbPointerDown: (d) => e.onThumbPointerDown(d.x),
|
|
@@ -16640,8 +16649,8 @@ var tk = h.forwardRef((e, t) => {
|
|
|
16640
16649
|
viewport: s.viewport.offsetWidth,
|
|
16641
16650
|
scrollbar: {
|
|
16642
16651
|
size: l.current.clientWidth,
|
|
16643
|
-
paddingStart:
|
|
16644
|
-
paddingEnd:
|
|
16652
|
+
paddingStart: As(a.paddingLeft),
|
|
16653
|
+
paddingEnd: As(a.paddingRight)
|
|
16645
16654
|
}
|
|
16646
16655
|
});
|
|
16647
16656
|
}
|
|
@@ -16663,7 +16672,7 @@ var tk = h.forwardRef((e, t) => {
|
|
|
16663
16672
|
right: s.dir === "ltr" ? 0 : void 0,
|
|
16664
16673
|
left: s.dir === "rtl" ? 0 : void 0,
|
|
16665
16674
|
bottom: "var(--radix-scroll-area-corner-height)",
|
|
16666
|
-
"--radix-scroll-area-thumb-height":
|
|
16675
|
+
"--radix-scroll-area-thumb-height": la(n) + "px",
|
|
16667
16676
|
...e.style
|
|
16668
16677
|
},
|
|
16669
16678
|
onThumbPointerDown: (d) => e.onThumbPointerDown(d.y),
|
|
@@ -16680,8 +16689,8 @@ var tk = h.forwardRef((e, t) => {
|
|
|
16680
16689
|
viewport: s.viewport.offsetHeight,
|
|
16681
16690
|
scrollbar: {
|
|
16682
16691
|
size: l.current.clientHeight,
|
|
16683
|
-
paddingStart:
|
|
16684
|
-
paddingEnd:
|
|
16692
|
+
paddingStart: As(a.paddingTop),
|
|
16693
|
+
paddingEnd: As(a.paddingBottom)
|
|
16685
16694
|
}
|
|
16686
16695
|
});
|
|
16687
16696
|
}
|
|
@@ -16700,7 +16709,7 @@ var tk = h.forwardRef((e, t) => {
|
|
|
16700
16709
|
onWheelScroll: d,
|
|
16701
16710
|
onResize: p,
|
|
16702
16711
|
...m
|
|
16703
|
-
} = e, f = un(In, n), [v, g] = h.useState(null), x = Oe(t, (N) => g(N)), b = h.useRef(null), w = h.useRef(""), S = f.viewport, E = r.content - r.viewport, T = Et(d), y = Et(l), C =
|
|
16712
|
+
} = e, f = un(In, n), [v, g] = h.useState(null), x = Oe(t, (N) => g(N)), b = h.useRef(null), w = h.useRef(""), S = f.viewport, E = r.content - r.viewport, T = Et(d), y = Et(l), C = ca(p, 10);
|
|
16704
16713
|
function I(N) {
|
|
16705
16714
|
if (b.current) {
|
|
16706
16715
|
const $ = N.clientX - b.current.left, L = N.clientY - b.current.top;
|
|
@@ -16741,17 +16750,17 @@ var tk = h.forwardRef((e, t) => {
|
|
|
16741
16750
|
)
|
|
16742
16751
|
}
|
|
16743
16752
|
);
|
|
16744
|
-
}),
|
|
16753
|
+
}), Ns = "ScrollAreaThumb", Bh = h.forwardRef(
|
|
16745
16754
|
(e, t) => {
|
|
16746
|
-
const { forceMount: n, ...r } = e, o = $h(
|
|
16755
|
+
const { forceMount: n, ...r } = e, o = $h(Ns, e.__scopeScrollArea);
|
|
16747
16756
|
return /* @__PURE__ */ u.jsx(Ht, { present: n || o.hasThumb, children: /* @__PURE__ */ u.jsx(ak, { ref: t, ...r }) });
|
|
16748
16757
|
}
|
|
16749
16758
|
), ak = h.forwardRef(
|
|
16750
16759
|
(e, t) => {
|
|
16751
|
-
const { __scopeScrollArea: n, style: r, ...o } = e, s = un(
|
|
16760
|
+
const { __scopeScrollArea: n, style: r, ...o } = e, s = un(Ns, n), a = $h(Ns, n), { onThumbPositionChange: i } = a, l = Oe(
|
|
16752
16761
|
t,
|
|
16753
16762
|
(p) => a.onThumbChange(p)
|
|
16754
|
-
), c = h.useRef(void 0), d =
|
|
16763
|
+
), c = h.useRef(void 0), d = ca(() => {
|
|
16755
16764
|
c.current && (c.current(), c.current = void 0);
|
|
16756
16765
|
}, 100);
|
|
16757
16766
|
return h.useEffect(() => {
|
|
@@ -16785,7 +16794,7 @@ var tk = h.forwardRef((e, t) => {
|
|
|
16785
16794
|
);
|
|
16786
16795
|
}
|
|
16787
16796
|
);
|
|
16788
|
-
Bh.displayName =
|
|
16797
|
+
Bh.displayName = Ns;
|
|
16789
16798
|
var Ml = "ScrollAreaCorner", zh = h.forwardRef(
|
|
16790
16799
|
(e, t) => {
|
|
16791
16800
|
const n = un(Ml, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
|
|
@@ -16820,23 +16829,23 @@ var ik = h.forwardRef((e, t) => {
|
|
|
16820
16829
|
}
|
|
16821
16830
|
) : null;
|
|
16822
16831
|
});
|
|
16823
|
-
function
|
|
16832
|
+
function As(e) {
|
|
16824
16833
|
return e ? parseInt(e, 10) : 0;
|
|
16825
16834
|
}
|
|
16826
16835
|
function Hh(e, t) {
|
|
16827
16836
|
const n = e / t;
|
|
16828
16837
|
return isNaN(n) ? 0 : n;
|
|
16829
16838
|
}
|
|
16830
|
-
function
|
|
16839
|
+
function la(e) {
|
|
16831
16840
|
const t = Hh(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
|
|
16832
16841
|
return Math.max(r, 18);
|
|
16833
16842
|
}
|
|
16834
16843
|
function lk(e, t, n, r = "ltr") {
|
|
16835
|
-
const o =
|
|
16844
|
+
const o = la(n), s = o / 2, a = t || s, i = o - a, l = n.scrollbar.paddingStart + a, c = n.scrollbar.size - n.scrollbar.paddingEnd - i, d = n.content - n.viewport, p = r === "ltr" ? [0, d] : [d * -1, 0];
|
|
16836
16845
|
return Uh([l, c], p)(e);
|
|
16837
16846
|
}
|
|
16838
16847
|
function yu(e, t, n = "ltr") {
|
|
16839
|
-
const r =
|
|
16848
|
+
const r = la(t), o = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - o, a = t.content - t.viewport, i = s - r, l = n === "ltr" ? [0, a] : [a * -1, 0], c = vi(e, l);
|
|
16840
16849
|
return Uh([0, a], [0, i])(c);
|
|
16841
16850
|
}
|
|
16842
16851
|
function Uh(e, t) {
|
|
@@ -16857,7 +16866,7 @@ var ck = (e, t = () => {
|
|
|
16857
16866
|
(a || i) && t(), n = s, r = window.requestAnimationFrame(o);
|
|
16858
16867
|
}(), () => window.cancelAnimationFrame(r);
|
|
16859
16868
|
};
|
|
16860
|
-
function
|
|
16869
|
+
function ca(e, t) {
|
|
16861
16870
|
const n = Et(e), r = h.useRef(0);
|
|
16862
16871
|
return h.useEffect(() => () => window.clearTimeout(r.current), []), h.useCallback(() => {
|
|
16863
16872
|
window.clearTimeout(r.current), r.current = window.setTimeout(n, t);
|
|
@@ -16975,7 +16984,7 @@ function Su({
|
|
|
16975
16984
|
size: "sm",
|
|
16976
16985
|
onClick: () => i(e.threadId),
|
|
16977
16986
|
className: "h-6 w-6 p-0",
|
|
16978
|
-
children: /* @__PURE__ */ u.jsx(
|
|
16987
|
+
children: /* @__PURE__ */ u.jsx(_s, { size: 12 })
|
|
16979
16988
|
}
|
|
16980
16989
|
),
|
|
16981
16990
|
/* @__PURE__ */ u.jsx(it, { variant: "ghost", size: "sm", onClick: l, className: "h-6 w-6 p-0", children: /* @__PURE__ */ u.jsx(nr, { size: 12 }) })
|
|
@@ -16991,7 +17000,7 @@ function Su({
|
|
|
16991
17000
|
/* @__PURE__ */ u.jsx("div", { className: "flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity ml-2", children: /* @__PURE__ */ u.jsxs(Nl, { children: [
|
|
16992
17001
|
/* @__PURE__ */ u.jsx(Al, { asChild: !0, children: /* @__PURE__ */ u.jsx(it, { variant: "ghost", size: "sm", className: "h-6 w-6 p-0", children: /* @__PURE__ */ u.jsx(Pu, { size: 12 }) }) }),
|
|
16993
17002
|
/* @__PURE__ */ u.jsxs(
|
|
16994
|
-
|
|
17003
|
+
aa,
|
|
16995
17004
|
{
|
|
16996
17005
|
align: "end",
|
|
16997
17006
|
sideOffset: 6,
|
|
@@ -17045,7 +17054,7 @@ function Su({
|
|
|
17045
17054
|
}
|
|
17046
17055
|
);
|
|
17047
17056
|
}
|
|
17048
|
-
var
|
|
17057
|
+
var ua = "Collapsible", [mk, R1] = cn(ua), [gk, Dl] = mk(ua), Yh = h.forwardRef(
|
|
17049
17058
|
(e, t) => {
|
|
17050
17059
|
const {
|
|
17051
17060
|
__scopeCollapsible: n,
|
|
@@ -17058,7 +17067,7 @@ var ca = "Collapsible", [mk, R1] = cn(ca), [gk, Dl] = mk(ca), Yh = h.forwardRef(
|
|
|
17058
17067
|
prop: r,
|
|
17059
17068
|
defaultProp: o ?? !1,
|
|
17060
17069
|
onChange: a,
|
|
17061
|
-
caller:
|
|
17070
|
+
caller: ua
|
|
17062
17071
|
});
|
|
17063
17072
|
return /* @__PURE__ */ u.jsx(
|
|
17064
17073
|
gk,
|
|
@@ -17081,7 +17090,7 @@ var ca = "Collapsible", [mk, R1] = cn(ca), [gk, Dl] = mk(ca), Yh = h.forwardRef(
|
|
|
17081
17090
|
);
|
|
17082
17091
|
}
|
|
17083
17092
|
);
|
|
17084
|
-
Yh.displayName =
|
|
17093
|
+
Yh.displayName = ua;
|
|
17085
17094
|
var Xh = "CollapsibleTrigger", Jh = h.forwardRef(
|
|
17086
17095
|
(e, t) => {
|
|
17087
17096
|
const { __scopeCollapsible: n, ...r } = e, o = Dl(Xh, n);
|
|
@@ -17211,7 +17220,7 @@ function wi({
|
|
|
17211
17220
|
shareInFlight: j,
|
|
17212
17221
|
shareStatus: W,
|
|
17213
17222
|
clearShareStatus: X
|
|
17214
|
-
} = Ro(), { createThread: J, deleteThread: O, renameThread: k, shareThread: z } = q, { loadThread: V } =
|
|
17223
|
+
} = Ro(), { createThread: J, deleteThread: O, renameThread: k, shareThread: z } = q, { loadThread: V } = Bs(), _ = a ?? N, [G, M] = me(Array.isArray(C) ? C : []), D = Ae(G.length > 0), Y = Ae(null), P = Ae(0), [A, H] = me(null), [Z, re] = me(""), [ie, ye] = me(!1), [Se, _e] = me(!1), [Fe, Be] = me(null), [Ve, ze] = me(""), [mt, vt] = me([]), [Le, Ke] = me(!1);
|
|
17215
17224
|
Ge(() => {
|
|
17216
17225
|
Se && !b && mt.length === 0 && !Le && (async () => {
|
|
17217
17226
|
Ke(!0);
|
|
@@ -17375,7 +17384,7 @@ function wi({
|
|
|
17375
17384
|
children: wt.label
|
|
17376
17385
|
}
|
|
17377
17386
|
) }),
|
|
17378
|
-
/* @__PURE__ */ u.jsx(
|
|
17387
|
+
/* @__PURE__ */ u.jsx(aa, { align: "start", sideOffset: 6, className: "w-40", children: Ie.map((U) => /* @__PURE__ */ u.jsxs(
|
|
17379
17388
|
tr,
|
|
17380
17389
|
{
|
|
17381
17390
|
className: "justify-between text-[12px]",
|
|
@@ -17384,7 +17393,7 @@ function wi({
|
|
|
17384
17393
|
},
|
|
17385
17394
|
children: [
|
|
17386
17395
|
/* @__PURE__ */ u.jsx("span", { children: U.label }),
|
|
17387
|
-
at === U.key && /* @__PURE__ */ u.jsx(
|
|
17396
|
+
at === U.key && /* @__PURE__ */ u.jsx(_s, { className: "h-3 w-3" })
|
|
17388
17397
|
]
|
|
17389
17398
|
},
|
|
17390
17399
|
U.key
|
|
@@ -17762,7 +17771,7 @@ var rm = Object.freeze({
|
|
|
17762
17771
|
clip: "rect(0, 0, 0, 0)",
|
|
17763
17772
|
whiteSpace: "nowrap",
|
|
17764
17773
|
wordWrap: "normal"
|
|
17765
|
-
}), Ak = "VisuallyHidden",
|
|
17774
|
+
}), Ak = "VisuallyHidden", da = h.forwardRef(
|
|
17766
17775
|
(e, t) => /* @__PURE__ */ u.jsx(
|
|
17767
17776
|
ge.span,
|
|
17768
17777
|
{
|
|
@@ -17772,11 +17781,11 @@ var rm = Object.freeze({
|
|
|
17772
17781
|
}
|
|
17773
17782
|
)
|
|
17774
17783
|
);
|
|
17775
|
-
|
|
17776
|
-
var Pk =
|
|
17784
|
+
da.displayName = Ak;
|
|
17785
|
+
var Pk = da, jk = [" ", "Enter", "ArrowUp", "ArrowDown"], _k = [" ", "Enter"], cr = "Select", [fa, pa, Ok] = Js(cr), [qr, j1] = cn(cr, [
|
|
17777
17786
|
Ok,
|
|
17778
17787
|
Kr
|
|
17779
|
-
]),
|
|
17788
|
+
]), ha = Kr(), [Mk, Wn] = qr(cr), [Dk, Lk] = qr(cr), om = (e) => {
|
|
17780
17789
|
const {
|
|
17781
17790
|
__scopeSelect: t,
|
|
17782
17791
|
children: n,
|
|
@@ -17792,7 +17801,7 @@ var Pk = ua, jk = [" ", "Enter", "ArrowUp", "ArrowDown"], _k = [" ", "Enter"], c
|
|
|
17792
17801
|
disabled: m,
|
|
17793
17802
|
required: f,
|
|
17794
17803
|
form: v
|
|
17795
|
-
} = e, g =
|
|
17804
|
+
} = e, g = ha(t), [x, b] = h.useState(null), [w, S] = h.useState(null), [E, T] = h.useState(!1), y = Zs(c), [C, I] = An({
|
|
17796
17805
|
prop: r,
|
|
17797
17806
|
defaultProp: o ?? !1,
|
|
17798
17807
|
onChange: s,
|
|
@@ -17823,7 +17832,7 @@ var Pk = ua, jk = [" ", "Enter", "ArrowUp", "ArrowDown"], _k = [" ", "Enter"], c
|
|
|
17823
17832
|
triggerPointerDownPosRef: L,
|
|
17824
17833
|
disabled: m,
|
|
17825
17834
|
children: [
|
|
17826
|
-
/* @__PURE__ */ u.jsx(
|
|
17835
|
+
/* @__PURE__ */ u.jsx(fa.Provider, { scope: t, children: /* @__PURE__ */ u.jsx(
|
|
17827
17836
|
Dk,
|
|
17828
17837
|
{
|
|
17829
17838
|
scope: e.__scopeSelect,
|
|
@@ -17865,7 +17874,7 @@ var Pk = ua, jk = [" ", "Enter", "ArrowUp", "ArrowDown"], _k = [" ", "Enter"], c
|
|
|
17865
17874
|
om.displayName = cr;
|
|
17866
17875
|
var sm = "SelectTrigger", am = h.forwardRef(
|
|
17867
17876
|
(e, t) => {
|
|
17868
|
-
const { __scopeSelect: n, disabled: r = !1, ...o } = e, s =
|
|
17877
|
+
const { __scopeSelect: n, disabled: r = !1, ...o } = e, s = ha(n), a = Wn(sm, n), i = a.disabled || r, l = Oe(t, a.onTriggerChange), c = pa(n), d = h.useRef("touch"), [p, m, f] = Am((g) => {
|
|
17869
17878
|
const x = c().filter((S) => !S.disabled), b = x.find((S) => S.value === a.value), w = Pm(x, g, b);
|
|
17870
17879
|
w !== void 0 && a.onValueChange(w.value);
|
|
17871
17880
|
}), v = (g) => {
|
|
@@ -17941,7 +17950,7 @@ var ur = "SelectContent", dm = h.forwardRef(
|
|
|
17941
17950
|
}, []), !n.open) {
|
|
17942
17951
|
const s = r;
|
|
17943
17952
|
return s ? So.createPortal(
|
|
17944
|
-
/* @__PURE__ */ u.jsx(fm, { scope: e.__scopeSelect, children: /* @__PURE__ */ u.jsx(
|
|
17953
|
+
/* @__PURE__ */ u.jsx(fm, { scope: e.__scopeSelect, children: /* @__PURE__ */ u.jsx(fa.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ u.jsx("div", { children: e.children }) }) }),
|
|
17945
17954
|
s
|
|
17946
17955
|
) : null;
|
|
17947
17956
|
}
|
|
@@ -17973,7 +17982,7 @@ var fn = 10, [fm, Vn] = qr(ur), Bk = "SelectContentImpl", zk = Nr("SelectContent
|
|
|
17973
17982
|
...b
|
|
17974
17983
|
} = e, w = Wn(ur, n), [S, E] = h.useState(null), [T, y] = h.useState(null), C = Oe(t, (P) => E(P)), [I, N] = h.useState(null), [$, L] = h.useState(
|
|
17975
17984
|
null
|
|
17976
|
-
), B =
|
|
17985
|
+
), B = pa(n), [q, j] = h.useState(!1), W = h.useRef(!1);
|
|
17977
17986
|
h.useEffect(() => {
|
|
17978
17987
|
if (S) return Hi(S);
|
|
17979
17988
|
}, [S]), zi();
|
|
@@ -18057,8 +18066,8 @@ var fn = 10, [fm, Vn] = qr(ur), Bk = "SelectContentImpl", zk = Nr("SelectContent
|
|
|
18057
18066
|
position: r,
|
|
18058
18067
|
isPositioned: q,
|
|
18059
18068
|
searchRef: z,
|
|
18060
|
-
children: /* @__PURE__ */ u.jsx(
|
|
18061
|
-
|
|
18069
|
+
children: /* @__PURE__ */ u.jsx(Us, { as: zk, allowPinchZoom: !0, children: /* @__PURE__ */ u.jsx(
|
|
18070
|
+
zs,
|
|
18062
18071
|
{
|
|
18063
18072
|
asChild: !0,
|
|
18064
18073
|
trapped: w.open,
|
|
@@ -18121,7 +18130,7 @@ var fn = 10, [fm, Vn] = qr(ur), Bk = "SelectContentImpl", zk = Nr("SelectContent
|
|
|
18121
18130
|
);
|
|
18122
18131
|
pm.displayName = Bk;
|
|
18123
18132
|
var Hk = "SelectItemAlignedPosition", hm = h.forwardRef((e, t) => {
|
|
18124
|
-
const { __scopeSelect: n, onPlaced: r, ...o } = e, s = Wn(ur, n), a = Vn(ur, n), [i, l] = h.useState(null), [c, d] = h.useState(null), p = Oe(t, (C) => d(C)), m =
|
|
18133
|
+
const { __scopeSelect: n, onPlaced: r, ...o } = e, s = Wn(ur, n), a = Vn(ur, n), [i, l] = h.useState(null), [c, d] = h.useState(null), p = Oe(t, (C) => d(C)), m = pa(n), f = h.useRef(!1), v = h.useRef(!0), { viewport: g, selectedItem: x, selectedItemText: b, focusSelectedItem: w } = a, S = h.useCallback(() => {
|
|
18125
18134
|
if (s.trigger && s.valueNode && i && c && g && x && b) {
|
|
18126
18135
|
const C = s.trigger.getBoundingClientRect(), I = c.getBoundingClientRect(), N = s.valueNode.getBoundingClientRect(), $ = b.getBoundingClientRect();
|
|
18127
18136
|
if (s.dir !== "rtl") {
|
|
@@ -18231,7 +18240,7 @@ var Uk = "SelectPopperPosition", bi = h.forwardRef((e, t) => {
|
|
|
18231
18240
|
align: r = "start",
|
|
18232
18241
|
collisionPadding: o = fn,
|
|
18233
18242
|
...s
|
|
18234
|
-
} = e, a =
|
|
18243
|
+
} = e, a = ha(n);
|
|
18235
18244
|
return /* @__PURE__ */ u.jsx(
|
|
18236
18245
|
bl,
|
|
18237
18246
|
{
|
|
@@ -18267,7 +18276,7 @@ var [Wk, Fl] = qr(ur, {}), yi = "SelectViewport", mm = h.forwardRef(
|
|
|
18267
18276
|
nonce: r
|
|
18268
18277
|
}
|
|
18269
18278
|
),
|
|
18270
|
-
/* @__PURE__ */ u.jsx(
|
|
18279
|
+
/* @__PURE__ */ u.jsx(fa.Slot, { scope: n, children: /* @__PURE__ */ u.jsx(
|
|
18271
18280
|
ge.div,
|
|
18272
18281
|
{
|
|
18273
18282
|
"data-radix-select-viewport": "",
|
|
@@ -18321,7 +18330,7 @@ var xm = "SelectLabel", vm = h.forwardRef(
|
|
|
18321
18330
|
}
|
|
18322
18331
|
);
|
|
18323
18332
|
vm.displayName = xm;
|
|
18324
|
-
var
|
|
18333
|
+
var Ps = "SelectItem", [Gk, wm] = qr(Ps), bm = h.forwardRef(
|
|
18325
18334
|
(e, t) => {
|
|
18326
18335
|
const {
|
|
18327
18336
|
__scopeSelect: n,
|
|
@@ -18329,7 +18338,7 @@ var As = "SelectItem", [Gk, wm] = qr(As), bm = h.forwardRef(
|
|
|
18329
18338
|
disabled: o = !1,
|
|
18330
18339
|
textValue: s,
|
|
18331
18340
|
...a
|
|
18332
|
-
} = e, i = Wn(
|
|
18341
|
+
} = e, i = Wn(Ps, n), l = Vn(Ps, n), c = i.value === r, [d, p] = h.useState(s ?? ""), [m, f] = h.useState(!1), v = Oe(
|
|
18333
18342
|
t,
|
|
18334
18343
|
(w) => {
|
|
18335
18344
|
var S;
|
|
@@ -18354,7 +18363,7 @@ var As = "SelectItem", [Gk, wm] = qr(As), bm = h.forwardRef(
|
|
|
18354
18363
|
p((S) => S || ((w == null ? void 0 : w.textContent) ?? "").trim());
|
|
18355
18364
|
}, []),
|
|
18356
18365
|
children: /* @__PURE__ */ u.jsx(
|
|
18357
|
-
|
|
18366
|
+
fa.ItemSlot,
|
|
18358
18367
|
{
|
|
18359
18368
|
scope: n,
|
|
18360
18369
|
value: r,
|
|
@@ -18404,7 +18413,7 @@ var As = "SelectItem", [Gk, wm] = qr(As), bm = h.forwardRef(
|
|
|
18404
18413
|
);
|
|
18405
18414
|
}
|
|
18406
18415
|
);
|
|
18407
|
-
bm.displayName =
|
|
18416
|
+
bm.displayName = Ps;
|
|
18408
18417
|
var to = "SelectItemText", ym = h.forwardRef(
|
|
18409
18418
|
(e, t) => {
|
|
18410
18419
|
const { __scopeSelect: n, className: r, style: o, ...s } = e, a = Wn(to, n), i = Vn(to, n), l = wm(to, n), c = Lk(to, n), [d, p] = h.useState(null), m = Oe(
|
|
@@ -18482,7 +18491,7 @@ var Ti = "SelectScrollDownButton", Em = h.forwardRef((e, t) => {
|
|
|
18482
18491
|
});
|
|
18483
18492
|
Em.displayName = Ti;
|
|
18484
18493
|
var km = h.forwardRef((e, t) => {
|
|
18485
|
-
const { __scopeSelect: n, onAutoScroll: r, ...o } = e, s = Vn("SelectScrollButton", n), a = h.useRef(null), i =
|
|
18494
|
+
const { __scopeSelect: n, onAutoScroll: r, ...o } = e, s = Vn("SelectScrollButton", n), a = h.useRef(null), i = pa(n), l = h.useCallback(() => {
|
|
18486
18495
|
a.current !== null && (window.clearInterval(a.current), a.current = null);
|
|
18487
18496
|
}, []);
|
|
18488
18497
|
return h.useEffect(() => () => l(), [l]), Pt(() => {
|
|
@@ -18517,7 +18526,7 @@ var km = h.forwardRef((e, t) => {
|
|
|
18517
18526
|
Rm.displayName = Yk;
|
|
18518
18527
|
var Ci = "SelectArrow", Xk = h.forwardRef(
|
|
18519
18528
|
(e, t) => {
|
|
18520
|
-
const { __scopeSelect: n, ...r } = e, o =
|
|
18529
|
+
const { __scopeSelect: n, ...r } = e, o = ha(n), s = Wn(Ci, n), a = Vn(Ci, n);
|
|
18521
18530
|
return s.open && a.position === "popper" ? /* @__PURE__ */ u.jsx(yl, { ...o, ...r, ref: t }) : null;
|
|
18522
18531
|
}
|
|
18523
18532
|
);
|
|
@@ -18589,7 +18598,7 @@ const _1 = Qk, O1 = eR, aR = h.forwardRef(({ className: e, children: t, ...n },
|
|
|
18589
18598
|
...n,
|
|
18590
18599
|
children: [
|
|
18591
18600
|
t,
|
|
18592
|
-
/* @__PURE__ */ u.jsx(tR, { asChild: !0, children: /* @__PURE__ */ u.jsx(
|
|
18601
|
+
/* @__PURE__ */ u.jsx(tR, { asChild: !0, children: /* @__PURE__ */ u.jsx(js, { className: "h-4 w-4 opacity-50" }) })
|
|
18593
18602
|
]
|
|
18594
18603
|
}
|
|
18595
18604
|
));
|
|
@@ -18616,7 +18625,7 @@ const Bm = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
|
18616
18625
|
e
|
|
18617
18626
|
),
|
|
18618
18627
|
...t,
|
|
18619
|
-
children: /* @__PURE__ */ u.jsx(
|
|
18628
|
+
children: /* @__PURE__ */ u.jsx(js, { className: "h-4 w-4" })
|
|
18620
18629
|
}
|
|
18621
18630
|
));
|
|
18622
18631
|
Bm.displayName = Lm.displayName;
|
|
@@ -18667,7 +18676,7 @@ const cR = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
18667
18676
|
),
|
|
18668
18677
|
...n,
|
|
18669
18678
|
children: [
|
|
18670
|
-
/* @__PURE__ */ u.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ u.jsx(sR, { children: /* @__PURE__ */ u.jsx(
|
|
18679
|
+
/* @__PURE__ */ u.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ u.jsx(sR, { children: /* @__PURE__ */ u.jsx(_s, { className: "h-4 w-4" }) }) }),
|
|
18671
18680
|
/* @__PURE__ */ u.jsx(oR, { children: t })
|
|
18672
18681
|
]
|
|
18673
18682
|
}
|
|
@@ -18716,7 +18725,7 @@ const hR = h.forwardRef(
|
|
|
18716
18725
|
)
|
|
18717
18726
|
);
|
|
18718
18727
|
hR.displayName = Hm.displayName;
|
|
18719
|
-
var
|
|
18728
|
+
var ma = "Switch", [mR, M1] = cn(ma), [gR, xR] = mR(ma), Um = h.forwardRef(
|
|
18720
18729
|
(e, t) => {
|
|
18721
18730
|
const {
|
|
18722
18731
|
__scopeSwitch: n,
|
|
@@ -18733,7 +18742,7 @@ var ha = "Switch", [mR, M1] = cn(ha), [gR, xR] = mR(ha), Um = h.forwardRef(
|
|
|
18733
18742
|
prop: o,
|
|
18734
18743
|
defaultProp: s ?? !1,
|
|
18735
18744
|
onChange: c,
|
|
18736
|
-
caller:
|
|
18745
|
+
caller: ma
|
|
18737
18746
|
});
|
|
18738
18747
|
return /* @__PURE__ */ u.jsxs(gR, { scope: n, checked: b, disabled: i, children: [
|
|
18739
18748
|
/* @__PURE__ */ u.jsx(
|
|
@@ -18771,7 +18780,7 @@ var ha = "Switch", [mR, M1] = cn(ha), [gR, xR] = mR(ha), Um = h.forwardRef(
|
|
|
18771
18780
|
] });
|
|
18772
18781
|
}
|
|
18773
18782
|
);
|
|
18774
|
-
Um.displayName =
|
|
18783
|
+
Um.displayName = ma;
|
|
18775
18784
|
var Wm = "SwitchThumb", Vm = h.forwardRef(
|
|
18776
18785
|
(e, t) => {
|
|
18777
18786
|
const { __scopeSwitch: n, ...r } = e, o = xR(Wm, n);
|
|
@@ -18923,17 +18932,17 @@ const ER = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
|
18923
18932
|
));
|
|
18924
18933
|
ER.displayName = er.displayName;
|
|
18925
18934
|
const kR = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
18926
|
-
|
|
18935
|
+
Vs,
|
|
18927
18936
|
{
|
|
18928
18937
|
ref: n,
|
|
18929
18938
|
className: ne("text-sm text-muted-foreground", e),
|
|
18930
18939
|
...t
|
|
18931
18940
|
}
|
|
18932
18941
|
));
|
|
18933
|
-
kR.displayName =
|
|
18934
|
-
var [
|
|
18942
|
+
kR.displayName = Vs.displayName;
|
|
18943
|
+
var [ga, $1] = cn("Tooltip", [
|
|
18935
18944
|
Kr
|
|
18936
|
-
]),
|
|
18945
|
+
]), xa = Kr(), Xm = "TooltipProvider", RR = 700, Ei = "tooltip.open", [IR, Bl] = ga(Xm), Jm = (e) => {
|
|
18937
18946
|
const {
|
|
18938
18947
|
__scopeTooltip: t,
|
|
18939
18948
|
delayDuration: n = RR,
|
|
@@ -18969,7 +18978,7 @@ var [ma, $1] = cn("Tooltip", [
|
|
|
18969
18978
|
);
|
|
18970
18979
|
};
|
|
18971
18980
|
Jm.displayName = Xm;
|
|
18972
|
-
var wo = "Tooltip", [NR,
|
|
18981
|
+
var wo = "Tooltip", [NR, va] = ga(wo), Zm = (e) => {
|
|
18973
18982
|
const {
|
|
18974
18983
|
__scopeTooltip: t,
|
|
18975
18984
|
children: n,
|
|
@@ -18978,7 +18987,7 @@ var wo = "Tooltip", [NR, xa] = ma(wo), Zm = (e) => {
|
|
|
18978
18987
|
onOpenChange: s,
|
|
18979
18988
|
disableHoverableContent: a,
|
|
18980
18989
|
delayDuration: i
|
|
18981
|
-
} = e, l = Bl(wo, e.__scopeTooltip), c =
|
|
18990
|
+
} = e, l = Bl(wo, e.__scopeTooltip), c = xa(t), [d, p] = h.useState(null), m = Mt(), f = h.useRef(0), v = a ?? l.disableHoverableContent, g = i ?? l.delayDuration, x = h.useRef(!1), [b, w] = An({
|
|
18982
18991
|
prop: r,
|
|
18983
18992
|
defaultProp: o ?? !1,
|
|
18984
18993
|
onChange: (C) => {
|
|
@@ -19021,7 +19030,7 @@ var wo = "Tooltip", [NR, xa] = ma(wo), Zm = (e) => {
|
|
|
19021
19030
|
Zm.displayName = wo;
|
|
19022
19031
|
var ki = "TooltipTrigger", Qm = h.forwardRef(
|
|
19023
19032
|
(e, t) => {
|
|
19024
|
-
const { __scopeTooltip: n, ...r } = e, o =
|
|
19033
|
+
const { __scopeTooltip: n, ...r } = e, o = va(ki, n), s = Bl(ki, n), a = xa(n), i = h.useRef(null), l = Oe(t, i, o.onTriggerChange), c = h.useRef(!1), d = h.useRef(!1), p = h.useCallback(() => c.current = !1, []);
|
|
19025
19034
|
return h.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ u.jsx(wl, { asChild: !0, ...a, children: /* @__PURE__ */ u.jsx(
|
|
19026
19035
|
ge.button,
|
|
19027
19036
|
{
|
|
@@ -19048,15 +19057,15 @@ var ki = "TooltipTrigger", Qm = h.forwardRef(
|
|
|
19048
19057
|
}
|
|
19049
19058
|
);
|
|
19050
19059
|
Qm.displayName = ki;
|
|
19051
|
-
var AR = "TooltipPortal", [F1, PR] =
|
|
19060
|
+
var AR = "TooltipPortal", [F1, PR] = ga(AR, {
|
|
19052
19061
|
forceMount: void 0
|
|
19053
19062
|
}), Mr = "TooltipContent", eg = h.forwardRef(
|
|
19054
19063
|
(e, t) => {
|
|
19055
|
-
const n = PR(Mr, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, a =
|
|
19064
|
+
const n = PR(Mr, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, a = va(Mr, e.__scopeTooltip);
|
|
19056
19065
|
return /* @__PURE__ */ u.jsx(Ht, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ u.jsx(tg, { side: o, ...s, ref: t }) : /* @__PURE__ */ u.jsx(jR, { side: o, ...s, ref: t }) });
|
|
19057
19066
|
}
|
|
19058
19067
|
), jR = h.forwardRef((e, t) => {
|
|
19059
|
-
const n =
|
|
19068
|
+
const n = va(Mr, e.__scopeTooltip), r = Bl(Mr, e.__scopeTooltip), o = h.useRef(null), s = Oe(t, o), [a, i] = h.useState(null), { trigger: l, onClose: c } = n, d = o.current, { onPointerInTransitChange: p } = r, m = h.useCallback(() => {
|
|
19060
19069
|
i(null), p(!1);
|
|
19061
19070
|
}, [p]), f = h.useCallback(
|
|
19062
19071
|
(v, g) => {
|
|
@@ -19081,7 +19090,7 @@ var AR = "TooltipPortal", [F1, PR] = ma(AR, {
|
|
|
19081
19090
|
return document.addEventListener("pointermove", v), () => document.removeEventListener("pointermove", v);
|
|
19082
19091
|
}
|
|
19083
19092
|
}, [l, d, a, c, m]), /* @__PURE__ */ u.jsx(tg, { ...e, ref: s });
|
|
19084
|
-
}), [_R, OR] =
|
|
19093
|
+
}), [_R, OR] = ga(wo, { isInside: !1 }), MR = $g("TooltipContent"), tg = h.forwardRef(
|
|
19085
19094
|
(e, t) => {
|
|
19086
19095
|
const {
|
|
19087
19096
|
__scopeTooltip: n,
|
|
@@ -19090,7 +19099,7 @@ var AR = "TooltipPortal", [F1, PR] = ma(AR, {
|
|
|
19090
19099
|
onEscapeKeyDown: s,
|
|
19091
19100
|
onPointerDownOutside: a,
|
|
19092
19101
|
...i
|
|
19093
|
-
} = e, l =
|
|
19102
|
+
} = e, l = va(Mr, n), c = xa(n), { onClose: d } = l;
|
|
19094
19103
|
return h.useEffect(() => (document.addEventListener(Ei, d), () => document.removeEventListener(Ei, d)), [d]), h.useEffect(() => {
|
|
19095
19104
|
if (l.trigger) {
|
|
19096
19105
|
const p = (m) => {
|
|
@@ -19136,7 +19145,7 @@ var AR = "TooltipPortal", [F1, PR] = ma(AR, {
|
|
|
19136
19145
|
eg.displayName = Mr;
|
|
19137
19146
|
var ng = "TooltipArrow", DR = h.forwardRef(
|
|
19138
19147
|
(e, t) => {
|
|
19139
|
-
const { __scopeTooltip: n, ...r } = e, o =
|
|
19148
|
+
const { __scopeTooltip: n, ...r } = e, o = xa(n);
|
|
19140
19149
|
return OR(
|
|
19141
19150
|
ng,
|
|
19142
19151
|
n
|
|
@@ -19250,7 +19259,7 @@ const B1 = UR, z1 = WR, H1 = VR, KR = h.forwardRef(({ className: e, sideOffset:
|
|
|
19250
19259
|
}
|
|
19251
19260
|
));
|
|
19252
19261
|
KR.displayName = rg.displayName;
|
|
19253
|
-
var zl = "ToastProvider", [Hl, qR, GR] =
|
|
19262
|
+
var zl = "ToastProvider", [Hl, qR, GR] = Js("Toast"), [og, U1] = cn("Toast", [GR]), [YR, wa] = og(zl), sg = (e) => {
|
|
19254
19263
|
const {
|
|
19255
19264
|
__scopeToast: t,
|
|
19256
19265
|
label: n = "Notification",
|
|
@@ -19288,7 +19297,7 @@ var ag = "ToastViewport", XR = ["F8"], Ri = "toast.viewportPause", Ii = "toast.v
|
|
|
19288
19297
|
hotkey: r = XR,
|
|
19289
19298
|
label: o = "Notifications ({hotkey})",
|
|
19290
19299
|
...s
|
|
19291
|
-
} = e, a =
|
|
19300
|
+
} = e, a = wa(ag, n), i = qR(n), l = h.useRef(null), c = h.useRef(null), d = h.useRef(null), p = h.useRef(null), m = Oe(t, p, a.onViewportChange), f = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), v = a.toastCount > 0;
|
|
19292
19301
|
h.useEffect(() => {
|
|
19293
19302
|
const x = (b) => {
|
|
19294
19303
|
var S;
|
|
@@ -19388,9 +19397,9 @@ var ag = "ToastViewport", XR = ["F8"], Ri = "toast.viewportPause", Ii = "toast.v
|
|
|
19388
19397
|
ig.displayName = ag;
|
|
19389
19398
|
var lg = "ToastFocusProxy", Ni = h.forwardRef(
|
|
19390
19399
|
(e, t) => {
|
|
19391
|
-
const { __scopeToast: n, onFocusFromOutsideViewport: r, ...o } = e, s =
|
|
19400
|
+
const { __scopeToast: n, onFocusFromOutsideViewport: r, ...o } = e, s = wa(lg, n);
|
|
19392
19401
|
return /* @__PURE__ */ u.jsx(
|
|
19393
|
-
|
|
19402
|
+
da,
|
|
19394
19403
|
{
|
|
19395
19404
|
tabIndex: 0,
|
|
19396
19405
|
...o,
|
|
@@ -19461,7 +19470,7 @@ var [tI, nI] = og(Fo, {
|
|
|
19461
19470
|
onSwipeCancel: m,
|
|
19462
19471
|
onSwipeEnd: f,
|
|
19463
19472
|
...v
|
|
19464
|
-
} = e, g =
|
|
19473
|
+
} = e, g = wa(Fo, n), [x, b] = h.useState(null), w = Oe(t, (j) => b(j)), S = h.useRef(null), E = h.useRef(null), T = o || g.duration, y = h.useRef(0), C = h.useRef(T), I = h.useRef(0), { onToastAdd: N, onToastRemove: $ } = g, L = Et(() => {
|
|
19465
19474
|
var W;
|
|
19466
19475
|
(x == null ? void 0 : x.contains(document.activeElement)) && ((W = g.viewport) == null || W.focus()), a();
|
|
19467
19476
|
}), B = h.useCallback(
|
|
@@ -19556,11 +19565,11 @@ var [tI, nI] = og(Fo, {
|
|
|
19556
19565
|
] }) : null;
|
|
19557
19566
|
}
|
|
19558
19567
|
), oI = (e) => {
|
|
19559
|
-
const { __scopeToast: t, children: n, ...r } = e, o =
|
|
19568
|
+
const { __scopeToast: t, children: n, ...r } = e, o = wa(Fo, t), [s, a] = h.useState(!1), [i, l] = h.useState(!1);
|
|
19560
19569
|
return iI(() => a(!0)), h.useEffect(() => {
|
|
19561
19570
|
const c = window.setTimeout(() => l(!0), 1e3);
|
|
19562
19571
|
return () => window.clearTimeout(c);
|
|
19563
|
-
}, []), i ? null : /* @__PURE__ */ u.jsx(Io, { asChild: !0, children: /* @__PURE__ */ u.jsx(
|
|
19572
|
+
}, []), i ? null : /* @__PURE__ */ u.jsx(Io, { asChild: !0, children: /* @__PURE__ */ u.jsx(da, { ...r, children: s && /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
19564
19573
|
o.label,
|
|
19565
19574
|
" ",
|
|
19566
19575
|
n
|
|
@@ -19951,10 +19960,10 @@ var HI = (e) => {
|
|
|
19951
19960
|
} : () => {
|
|
19952
19961
|
var we;
|
|
19953
19962
|
pt(), (we = f.onDismiss) == null || we.call(f, f);
|
|
19954
|
-
}, className: dn(k == null ? void 0 : k.closeButton, (o = f == null ? void 0 : f.classNames) == null ? void 0 : o.closeButton) }, (s = z == null ? void 0 : z.close) != null ? s : EI) : null, f.jsx ||
|
|
19963
|
+
}, className: dn(k == null ? void 0 : k.closeButton, (o = f == null ? void 0 : f.classNames) == null ? void 0 : o.closeButton) }, (s = z == null ? void 0 : z.close) != null ? s : EI) : null, f.jsx || Sa(f.title) ? f.jsx ? f.jsx : typeof f.title == "function" ? f.title() : f.title : F.createElement(F.Fragment, null, Ie || f.icon || f.promise ? F.createElement("div", { "data-icon": "", className: dn(k == null ? void 0 : k.icon, (a = f == null ? void 0 : f.classNames) == null ? void 0 : a.icon) }, f.promise || f.type === "loading" && !f.icon ? f.icon || Dt() : null, f.type !== "loading" ? f.icon || (z == null ? void 0 : z[Ie]) || vI(Ie) : null) : null, F.createElement("div", { "data-content": "", className: dn(k == null ? void 0 : k.content, (i = f == null ? void 0 : f.classNames) == null ? void 0 : i.content) }, F.createElement("div", { "data-title": "", className: dn(k == null ? void 0 : k.title, (l = f == null ? void 0 : f.classNames) == null ? void 0 : l.title) }, typeof f.title == "function" ? f.title() : f.title), f.description ? F.createElement("div", { "data-description": "", className: dn(q, at, k == null ? void 0 : k.description, (c = f == null ? void 0 : f.classNames) == null ? void 0 : c.description) }, typeof f.description == "function" ? f.description() : f.description) : null), Sa(f.cancel) ? f.cancel : f.cancel && Zo(f.cancel) ? F.createElement("button", { "data-button": !0, "data-cancel": !0, style: f.cancelButtonStyle || $, onClick: (we) => {
|
|
19955
19964
|
var Me, $e;
|
|
19956
19965
|
Zo(f.cancel) && Qe && (($e = (Me = f.cancel).onClick) == null || $e.call(Me, we), pt());
|
|
19957
|
-
}, className: dn(k == null ? void 0 : k.cancelButton, (d = f == null ? void 0 : f.classNames) == null ? void 0 : d.cancelButton) }, f.cancel.label) : null,
|
|
19966
|
+
}, className: dn(k == null ? void 0 : k.cancelButton, (d = f == null ? void 0 : f.classNames) == null ? void 0 : d.cancelButton) }, f.cancel.label) : null, Sa(f.action) ? f.action : f.action && Zo(f.action) ? F.createElement("button", { "data-button": !0, "data-action": !0, style: f.actionButtonStyle || L, onClick: (we) => {
|
|
19958
19967
|
var Me, $e;
|
|
19959
19968
|
Zo(f.action) && (($e = (Me = f.action).onClick) == null || $e.call(Me, we), !we.defaultPrevented && pt());
|
|
19960
19969
|
}, className: dn(k == null ? void 0 : k.actionButton, (p = f == null ? void 0 : f.classNames) == null ? void 0 : p.actionButton) }, f.action.label) : null));
|
|
@@ -20095,7 +20104,7 @@ export {
|
|
|
20095
20104
|
Zd as DialogHeader,
|
|
20096
20105
|
Qd as DialogTitle,
|
|
20097
20106
|
Nl as DropdownMenu,
|
|
20098
|
-
|
|
20107
|
+
aa as DropdownMenuContent,
|
|
20099
20108
|
tr as DropdownMenuItem,
|
|
20100
20109
|
Al as DropdownMenuTrigger,
|
|
20101
20110
|
Gv as FileApi,
|
|
@@ -20205,7 +20214,7 @@ export {
|
|
|
20205
20214
|
Mw as useStreamingHook,
|
|
20206
20215
|
Rw as useThreadHistoryState,
|
|
20207
20216
|
Ck as useThreadManagerViewState,
|
|
20208
|
-
|
|
20217
|
+
Bs as useThreadState,
|
|
20209
20218
|
Iw as useThreadStateUpdater,
|
|
20210
20219
|
Ro as useThreads,
|
|
20211
20220
|
sw as useThreadsState,
|