teodor-new-chat-ui 3.0.22 → 3.0.24
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 +679 -679
- package/dist/index.umd.js +14 -14
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1744,22 +1744,22 @@ ye.getAdapter = Ya.getAdapter;
|
|
|
1744
1744
|
ye.HttpStatusCode = uo;
|
|
1745
1745
|
ye.default = ye;
|
|
1746
1746
|
const {
|
|
1747
|
-
Axios:
|
|
1748
|
-
AxiosError:
|
|
1749
|
-
CanceledError:
|
|
1750
|
-
isCancel:
|
|
1751
|
-
CancelToken:
|
|
1752
|
-
VERSION:
|
|
1753
|
-
all:
|
|
1754
|
-
Cancel:
|
|
1755
|
-
isAxiosError:
|
|
1756
|
-
spread:
|
|
1757
|
-
toFormData:
|
|
1758
|
-
AxiosHeaders:
|
|
1759
|
-
HttpStatusCode:
|
|
1760
|
-
formToJSON:
|
|
1761
|
-
getAdapter:
|
|
1762
|
-
mergeConfig:
|
|
1747
|
+
Axios: Ly,
|
|
1748
|
+
AxiosError: Fy,
|
|
1749
|
+
CanceledError: $y,
|
|
1750
|
+
isCancel: By,
|
|
1751
|
+
CancelToken: Uy,
|
|
1752
|
+
VERSION: Hy,
|
|
1753
|
+
all: zy,
|
|
1754
|
+
Cancel: Wy,
|
|
1755
|
+
isAxiosError: jy,
|
|
1756
|
+
spread: Vy,
|
|
1757
|
+
toFormData: Ky,
|
|
1758
|
+
AxiosHeaders: Gy,
|
|
1759
|
+
HttpStatusCode: qy,
|
|
1760
|
+
formToJSON: Xy,
|
|
1761
|
+
getAdapter: Yy,
|
|
1762
|
+
mergeConfig: Jy
|
|
1763
1763
|
} = ye, zr = {};
|
|
1764
1764
|
function At() {
|
|
1765
1765
|
var e;
|
|
@@ -1769,17 +1769,17 @@ function At() {
|
|
|
1769
1769
|
return !1;
|
|
1770
1770
|
}
|
|
1771
1771
|
}
|
|
1772
|
-
const
|
|
1772
|
+
const lp = zr == null ? void 0 : zr.VITE_API_BASE_URL, up = typeof window < "u" ? window.__API_BASE_URL__ : void 0, zs = lp ?? up, ei = zs ? zs.replace(/\/+$/, "") : void 0;
|
|
1773
1773
|
!ei && typeof window < "u" && console.warn("VITE_API_BASE_URL is not set. The API client will need to be configured via apiConfig prop.");
|
|
1774
1774
|
let qn = null;
|
|
1775
1775
|
const fo = /* @__PURE__ */ new Set();
|
|
1776
|
-
function
|
|
1776
|
+
function dp() {
|
|
1777
1777
|
return qn;
|
|
1778
1778
|
}
|
|
1779
1779
|
function Ws(e) {
|
|
1780
1780
|
qn = e, fo.forEach((t) => t(e));
|
|
1781
1781
|
}
|
|
1782
|
-
function
|
|
1782
|
+
function fp(e) {
|
|
1783
1783
|
return fo.add(e), () => fo.delete(e);
|
|
1784
1784
|
}
|
|
1785
1785
|
const it = ye.create({
|
|
@@ -1799,16 +1799,16 @@ async function Be(e, t) {
|
|
|
1799
1799
|
async function En(e, t, n) {
|
|
1800
1800
|
return (await it.post(e, t, n)).data;
|
|
1801
1801
|
}
|
|
1802
|
-
async function
|
|
1802
|
+
async function pp(e, t, n) {
|
|
1803
1803
|
return (await it.put(e, t, n)).data;
|
|
1804
1804
|
}
|
|
1805
|
-
async function
|
|
1805
|
+
async function hp(e, t) {
|
|
1806
1806
|
return (await it.delete(e, t)).data;
|
|
1807
1807
|
}
|
|
1808
1808
|
function Re(e) {
|
|
1809
1809
|
return e && typeof e == "object" && "data" in e ? e.data : e;
|
|
1810
1810
|
}
|
|
1811
|
-
class
|
|
1811
|
+
class mp {
|
|
1812
1812
|
// ---- Configuration ----
|
|
1813
1813
|
get baseUrl() {
|
|
1814
1814
|
const t = it.defaults.baseURL || "";
|
|
@@ -1819,13 +1819,13 @@ class pp {
|
|
|
1819
1819
|
}
|
|
1820
1820
|
// ---- Token Management ----
|
|
1821
1821
|
getAuthToken() {
|
|
1822
|
-
return
|
|
1822
|
+
return dp();
|
|
1823
1823
|
}
|
|
1824
1824
|
setAuthToken(t) {
|
|
1825
1825
|
Ws(t);
|
|
1826
1826
|
}
|
|
1827
1827
|
onTokenChange(t) {
|
|
1828
|
-
return
|
|
1828
|
+
return fp(t);
|
|
1829
1829
|
}
|
|
1830
1830
|
// ---- Thread Management ----
|
|
1831
1831
|
async listThreads() {
|
|
@@ -1837,11 +1837,11 @@ class pp {
|
|
|
1837
1837
|
return Re(r);
|
|
1838
1838
|
}
|
|
1839
1839
|
async updateThread(t, n) {
|
|
1840
|
-
const r = await
|
|
1840
|
+
const r = await pp(`/chat/threads/${t}`, { title: n });
|
|
1841
1841
|
return Re(r);
|
|
1842
1842
|
}
|
|
1843
1843
|
async deleteThread(t) {
|
|
1844
|
-
const n = await
|
|
1844
|
+
const n = await hp(`/chat/threads/${t}`);
|
|
1845
1845
|
return Re(n);
|
|
1846
1846
|
}
|
|
1847
1847
|
async threadInfo(t) {
|
|
@@ -1939,8 +1939,8 @@ class pp {
|
|
|
1939
1939
|
return i;
|
|
1940
1940
|
}
|
|
1941
1941
|
}
|
|
1942
|
-
const ct = new
|
|
1943
|
-
function
|
|
1942
|
+
const ct = new mp();
|
|
1943
|
+
function gp(e = {}) {
|
|
1944
1944
|
const t = e.baseUrl ?? "/api/chat", n = e.streamPath ?? "/runs/stream", [r, o] = Q(e.token ?? null), s = Ae(e.headers ?? {}), [a, i] = Q(!1), [l, f] = Q(null), [d, p] = Q(""), [m, v] = Q(null), g = Ae(null), h = Se((y) => {
|
|
1945
1945
|
o(y);
|
|
1946
1946
|
}, []), b = Se(() => {
|
|
@@ -2029,7 +2029,7 @@ function hp(e = {}) {
|
|
|
2029
2029
|
`)) >= 0; ) {
|
|
2030
2030
|
const te = M.slice(0, G);
|
|
2031
2031
|
M = M.slice(G + 2);
|
|
2032
|
-
const F =
|
|
2032
|
+
const F = vp(te);
|
|
2033
2033
|
if (!F) continue;
|
|
2034
2034
|
let V;
|
|
2035
2035
|
try {
|
|
@@ -2038,7 +2038,7 @@ function hp(e = {}) {
|
|
|
2038
2038
|
R && console.debug("[use-chat] skip malformed SSE data:", F == null ? void 0 : F.slice(0, 200));
|
|
2039
2039
|
continue;
|
|
2040
2040
|
}
|
|
2041
|
-
const se =
|
|
2041
|
+
const se = bp(V) ? V.data : V;
|
|
2042
2042
|
if (R && console.debug("[use-chat] event:", se == null ? void 0 : se.type, se), C == null || C(se), se.type === "token")
|
|
2043
2043
|
e.autoAppendAssistant !== !1 && p((he) => he + se.content);
|
|
2044
2044
|
else if (se.type === "message_delta") {
|
|
@@ -2072,10 +2072,10 @@ function hp(e = {}) {
|
|
|
2072
2072
|
setToken: h
|
|
2073
2073
|
};
|
|
2074
2074
|
}
|
|
2075
|
-
function
|
|
2075
|
+
function bp(e) {
|
|
2076
2076
|
return !!e && typeof e == "object" && e.protocolVersion === "v1" && "data" in e;
|
|
2077
2077
|
}
|
|
2078
|
-
function
|
|
2078
|
+
function vp(e) {
|
|
2079
2079
|
const t = e.split(/\r?\n/), n = [];
|
|
2080
2080
|
for (const r of t)
|
|
2081
2081
|
if (r && !r.startsWith(":") && r.startsWith("data:")) {
|
|
@@ -2085,14 +2085,14 @@ function gp(e) {
|
|
|
2085
2085
|
return n.length === 0 ? null : n.join(`
|
|
2086
2086
|
`);
|
|
2087
2087
|
}
|
|
2088
|
-
const
|
|
2088
|
+
const wp = {
|
|
2089
2089
|
messages: [],
|
|
2090
2090
|
assemblingId: null,
|
|
2091
2091
|
lastCheckpointId: null,
|
|
2092
2092
|
toolIndex: {},
|
|
2093
2093
|
lastBranch: null
|
|
2094
2094
|
};
|
|
2095
|
-
function
|
|
2095
|
+
function yp(e, t) {
|
|
2096
2096
|
var n, r;
|
|
2097
2097
|
switch (t.type) {
|
|
2098
2098
|
case "reset":
|
|
@@ -2125,7 +2125,7 @@ function vp(e, t) {
|
|
|
2125
2125
|
case "event": {
|
|
2126
2126
|
const o = t.payload.ev;
|
|
2127
2127
|
if (o.type === "message_start" && o.role === "assistant") {
|
|
2128
|
-
const s = o.id, a =
|
|
2128
|
+
const s = o.id, a = Np(o.model), i = {
|
|
2129
2129
|
id: s,
|
|
2130
2130
|
role: "assistant",
|
|
2131
2131
|
name: a || void 0,
|
|
@@ -2137,7 +2137,7 @@ function vp(e, t) {
|
|
|
2137
2137
|
}
|
|
2138
2138
|
if (o.type === "token") {
|
|
2139
2139
|
const s = e.assemblingId ?? jr(e.messages);
|
|
2140
|
-
return s ? { ...e, messages:
|
|
2140
|
+
return s ? { ...e, messages: Sp(e.messages, s, o.content) } : e;
|
|
2141
2141
|
}
|
|
2142
2142
|
if (o.type === "message_delta") {
|
|
2143
2143
|
const s = e.assemblingId ?? jr(e.messages);
|
|
@@ -2175,7 +2175,7 @@ function vp(e, t) {
|
|
|
2175
2175
|
return { ...e, messages: f };
|
|
2176
2176
|
}
|
|
2177
2177
|
if (o.type === "checkpoint") {
|
|
2178
|
-
const s =
|
|
2178
|
+
const s = Ep(e.messages, o.checkpointId);
|
|
2179
2179
|
return { ...e, lastCheckpointId: o.checkpointId, messages: s };
|
|
2180
2180
|
}
|
|
2181
2181
|
if (o.type === "branch") {
|
|
@@ -2197,8 +2197,8 @@ function vp(e, t) {
|
|
|
2197
2197
|
return e;
|
|
2198
2198
|
}
|
|
2199
2199
|
}
|
|
2200
|
-
function
|
|
2201
|
-
const [t, n] = od(
|
|
2200
|
+
function xp(e = []) {
|
|
2201
|
+
const [t, n] = od(yp, { ...wp, messages: e }), r = Se((s) => {
|
|
2202
2202
|
n({ type: "event", payload: { ev: s } });
|
|
2203
2203
|
}, []), o = gt(() => ({
|
|
2204
2204
|
reset: (s) => n({ type: "reset", payload: { messages: s } }),
|
|
@@ -2226,7 +2226,7 @@ function jr(e) {
|
|
|
2226
2226
|
if (e[t].role === "assistant") return e[t].id;
|
|
2227
2227
|
return null;
|
|
2228
2228
|
}
|
|
2229
|
-
function
|
|
2229
|
+
function Sp(e, t, n) {
|
|
2230
2230
|
return e.map((r) => {
|
|
2231
2231
|
if (r.id !== t) return r;
|
|
2232
2232
|
const o = r.content.slice(), s = o[o.length - 1];
|
|
@@ -2234,9 +2234,9 @@ function yp(e, t, n) {
|
|
|
2234
2234
|
});
|
|
2235
2235
|
}
|
|
2236
2236
|
function js(e, t, n) {
|
|
2237
|
-
return e.map((r) => r.id === t ? { ...r, content:
|
|
2237
|
+
return e.map((r) => r.id === t ? { ...r, content: Cp(r.content, n) } : r);
|
|
2238
2238
|
}
|
|
2239
|
-
function
|
|
2239
|
+
function Cp(e, t) {
|
|
2240
2240
|
const n = e.slice();
|
|
2241
2241
|
for (const r of t)
|
|
2242
2242
|
if (r.type === "text") {
|
|
@@ -2246,7 +2246,7 @@ function xp(e, t) {
|
|
|
2246
2246
|
n.push(r);
|
|
2247
2247
|
return n;
|
|
2248
2248
|
}
|
|
2249
|
-
function
|
|
2249
|
+
function Ep(e, t) {
|
|
2250
2250
|
for (let n = e.length - 1; n >= 0; n--)
|
|
2251
2251
|
if (e[n].role === "assistant") {
|
|
2252
2252
|
const o = { ...e[n], checkpointId: t };
|
|
@@ -2254,12 +2254,12 @@ function Sp(e, t) {
|
|
|
2254
2254
|
}
|
|
2255
2255
|
return e;
|
|
2256
2256
|
}
|
|
2257
|
-
function
|
|
2257
|
+
function Np(e) {
|
|
2258
2258
|
if (!e) return null;
|
|
2259
2259
|
const t = e.split("/");
|
|
2260
2260
|
return t[t.length - 1] || null;
|
|
2261
2261
|
}
|
|
2262
|
-
function
|
|
2262
|
+
function Rp(e, t) {
|
|
2263
2263
|
const n = e == null ? void 0 : e.checkpoints, r = Array.isArray(n) ? n.slice() : n ? Object.values(n) : [], o = (a) => a && typeof a == "object" && typeof a.checkpointId == "string" && typeof a.createdAt == "string", s = r.filter(o).map((a) => ({
|
|
2264
2264
|
checkpointId: a.checkpointId,
|
|
2265
2265
|
checkpointNs: a.checkpointNs ?? "",
|
|
@@ -2282,7 +2282,7 @@ async function po(e) {
|
|
|
2282
2282
|
r.onload = () => t(String(r.result)), r.onerror = (o) => n(o), r.readAsDataURL(e);
|
|
2283
2283
|
});
|
|
2284
2284
|
}
|
|
2285
|
-
async function
|
|
2285
|
+
async function Tp(e) {
|
|
2286
2286
|
return await new Promise((t, n) => {
|
|
2287
2287
|
const r = new FileReader();
|
|
2288
2288
|
r.onload = () => {
|
|
@@ -2298,19 +2298,19 @@ async function Np(e) {
|
|
|
2298
2298
|
}, r.onerror = (o) => n(o), r.readAsArrayBuffer(e);
|
|
2299
2299
|
});
|
|
2300
2300
|
}
|
|
2301
|
-
async function
|
|
2301
|
+
async function Ap(e, t, n) {
|
|
2302
2302
|
try {
|
|
2303
2303
|
return await po(t);
|
|
2304
2304
|
} catch {
|
|
2305
2305
|
return null;
|
|
2306
2306
|
}
|
|
2307
2307
|
}
|
|
2308
|
-
async function
|
|
2308
|
+
async function Pp(e, t = [], n, r, o, s) {
|
|
2309
2309
|
const a = [], i = [];
|
|
2310
2310
|
for (const l of t) {
|
|
2311
2311
|
let f = null;
|
|
2312
2312
|
try {
|
|
2313
|
-
f = await
|
|
2313
|
+
f = await Ap(e, l, s);
|
|
2314
2314
|
} catch {
|
|
2315
2315
|
f = null;
|
|
2316
2316
|
}
|
|
@@ -2334,7 +2334,7 @@ async function Tp(e, t = [], n, r, o, s) {
|
|
|
2334
2334
|
} catch {
|
|
2335
2335
|
}
|
|
2336
2336
|
try {
|
|
2337
|
-
const d = await
|
|
2337
|
+
const d = await Tp(l);
|
|
2338
2338
|
i.push({ filename: l.name, data: d, mime_type: l.type || "application/octet-stream" });
|
|
2339
2339
|
} catch {
|
|
2340
2340
|
}
|
|
@@ -2350,7 +2350,7 @@ function Dn({ children: e, apiConfig: t, onError: n, onThreadChange: r, initialT
|
|
|
2350
2350
|
authToken: t.apiKey
|
|
2351
2351
|
});
|
|
2352
2352
|
}, [l, t]);
|
|
2353
|
-
const { isStreaming: f, error: d, stream: p, stop: m, setToken: v } =
|
|
2353
|
+
const { isStreaming: f, error: d, stream: p, stop: m, setToken: v } = gp({
|
|
2354
2354
|
baseUrl: l.baseUrl,
|
|
2355
2355
|
token: null,
|
|
2356
2356
|
// we update with setStreamToken below when the API tells us the token
|
|
@@ -2370,7 +2370,7 @@ function Dn({ children: e, apiConfig: t, onError: n, onThreadChange: r, initialT
|
|
|
2370
2370
|
}, [l, v]);
|
|
2371
2371
|
const b = Se((_) => {
|
|
2372
2372
|
l.setAuthToken(_);
|
|
2373
|
-
}, [l]), { state: w, seed: x, prepend: y, pushUser: C, onEvent: T, reset: k } =
|
|
2373
|
+
}, [l]), { state: w, seed: x, prepend: y, pushUser: C, onEvent: T, reset: k } = xp(), R = s && s > 0 ? s : 6, [L, $] = Q(!1), [H, K] = Q(!1), [q, j] = Q(null), [P, B] = Q(void 0), I = Se(
|
|
2374
2374
|
(_, D) => {
|
|
2375
2375
|
const oe = Array.isArray(_ == null ? void 0 : _.messages) ? _.messages : [];
|
|
2376
2376
|
D === "replace" ? x(oe) : D === "prepend" && oe.length && y(oe), j((_ == null ? void 0 : _.nextCursor) ?? null), $(!!(_ != null && _.hasMore)), B((ge) => (_ == null ? void 0 : _.checkpointId) ?? ge ?? void 0);
|
|
@@ -2412,7 +2412,7 @@ function Dn({ children: e, apiConfig: t, onError: n, onThreadChange: r, initialT
|
|
|
2412
2412
|
[l, I]
|
|
2413
2413
|
), se = Se(async (_) => {
|
|
2414
2414
|
const D = await l.listCheckpoints(_);
|
|
2415
|
-
return
|
|
2415
|
+
return Rp(D, _);
|
|
2416
2416
|
}, [l]), he = Se(async (_) => {
|
|
2417
2417
|
if (!N) throw new Error("No active thread");
|
|
2418
2418
|
$(!1), j(null), B(void 0);
|
|
@@ -2456,7 +2456,7 @@ function Dn({ children: e, apiConfig: t, onError: n, onThreadChange: r, initialT
|
|
|
2456
2456
|
await l.updateThread(_, D), await G();
|
|
2457
2457
|
}, [l, G]), ne = Se(async (_, D) => {
|
|
2458
2458
|
var Tt;
|
|
2459
|
-
const oe = (D == null ? void 0 : D.attachments) || [], { contentParts: ge, filesInfo: ve } = await
|
|
2459
|
+
const oe = (D == null ? void 0 : D.attachments) || [], { contentParts: ge, filesInfo: ve } = await Pp(
|
|
2460
2460
|
l,
|
|
2461
2461
|
oe,
|
|
2462
2462
|
t == null ? void 0 : t.uploadPath,
|
|
@@ -2563,7 +2563,7 @@ function Fo() {
|
|
|
2563
2563
|
function A(...e) {
|
|
2564
2564
|
return Id(Pd(e));
|
|
2565
2565
|
}
|
|
2566
|
-
const
|
|
2566
|
+
const Ip = un(
|
|
2567
2567
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
2568
2568
|
{
|
|
2569
2569
|
variants: {
|
|
@@ -2591,7 +2591,7 @@ const Ap = un(
|
|
|
2591
2591
|
({ className: e, variant: t, size: n, asChild: r = !1, ...o }, s) => /* @__PURE__ */ c(
|
|
2592
2592
|
r ? zt : "button",
|
|
2593
2593
|
{
|
|
2594
|
-
className: A(
|
|
2594
|
+
className: A(Ip({ variant: t, size: n, className: e })),
|
|
2595
2595
|
ref: s,
|
|
2596
2596
|
...o
|
|
2597
2597
|
}
|
|
@@ -2612,7 +2612,7 @@ const ni = u.forwardRef(
|
|
|
2612
2612
|
)
|
|
2613
2613
|
);
|
|
2614
2614
|
ni.displayName = "Textarea";
|
|
2615
|
-
const
|
|
2615
|
+
const _p = un(
|
|
2616
2616
|
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
2617
2617
|
{
|
|
2618
2618
|
variants: {
|
|
@@ -2629,7 +2629,7 @@ const Pp = un(
|
|
|
2629
2629
|
}
|
|
2630
2630
|
);
|
|
2631
2631
|
function ri({ className: e, variant: t, ...n }) {
|
|
2632
|
-
return /* @__PURE__ */ c("div", { className: A(
|
|
2632
|
+
return /* @__PURE__ */ c("div", { className: A(_p({ variant: t }), e), ...n });
|
|
2633
2633
|
}
|
|
2634
2634
|
function U(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
2635
2635
|
return function(o) {
|
|
@@ -2637,7 +2637,7 @@ function U(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
2637
2637
|
return t == null ? void 0 : t(o);
|
|
2638
2638
|
};
|
|
2639
2639
|
}
|
|
2640
|
-
function
|
|
2640
|
+
function Op(e, t) {
|
|
2641
2641
|
const n = u.createContext(t), r = (s) => {
|
|
2642
2642
|
const { children: a, ...i } = s, l = u.useMemo(() => i, Object.values(i));
|
|
2643
2643
|
return /* @__PURE__ */ c(n.Provider, { value: l, children: a });
|
|
@@ -2681,9 +2681,9 @@ function Ve(e, t = []) {
|
|
|
2681
2681
|
);
|
|
2682
2682
|
};
|
|
2683
2683
|
};
|
|
2684
|
-
return o.scopeName = e, [r,
|
|
2684
|
+
return o.scopeName = e, [r, kp(o, ...t)];
|
|
2685
2685
|
}
|
|
2686
|
-
function
|
|
2686
|
+
function kp(...e) {
|
|
2687
2687
|
const t = e[0];
|
|
2688
2688
|
if (e.length === 1) return t;
|
|
2689
2689
|
const n = () => {
|
|
@@ -2702,7 +2702,7 @@ function _p(...e) {
|
|
|
2702
2702
|
return n.scopeName = t.scopeName, n;
|
|
2703
2703
|
}
|
|
2704
2704
|
var Ce = globalThis != null && globalThis.document ? u.useLayoutEffect : () => {
|
|
2705
|
-
},
|
|
2705
|
+
}, Mp = u[" useInsertionEffect ".trim().toString()] || Ce;
|
|
2706
2706
|
function lt({
|
|
2707
2707
|
prop: e,
|
|
2708
2708
|
defaultProp: t,
|
|
@@ -2710,7 +2710,7 @@ function lt({
|
|
|
2710
2710
|
},
|
|
2711
2711
|
caller: r
|
|
2712
2712
|
}) {
|
|
2713
|
-
const [o, s, a] =
|
|
2713
|
+
const [o, s, a] = Dp({
|
|
2714
2714
|
defaultProp: t,
|
|
2715
2715
|
onChange: n
|
|
2716
2716
|
}), i = e !== void 0, l = i ? e : o;
|
|
@@ -2727,7 +2727,7 @@ function lt({
|
|
|
2727
2727
|
(d) => {
|
|
2728
2728
|
var p;
|
|
2729
2729
|
if (i) {
|
|
2730
|
-
const m =
|
|
2730
|
+
const m = Lp(d) ? d(e) : d;
|
|
2731
2731
|
m !== e && ((p = a.current) == null || p.call(a, m));
|
|
2732
2732
|
} else
|
|
2733
2733
|
s(d);
|
|
@@ -2736,19 +2736,19 @@ function lt({
|
|
|
2736
2736
|
);
|
|
2737
2737
|
return [l, f];
|
|
2738
2738
|
}
|
|
2739
|
-
function
|
|
2739
|
+
function Dp({
|
|
2740
2740
|
defaultProp: e,
|
|
2741
2741
|
onChange: t
|
|
2742
2742
|
}) {
|
|
2743
2743
|
const [n, r] = u.useState(e), o = u.useRef(n), s = u.useRef(t);
|
|
2744
|
-
return
|
|
2744
|
+
return Mp(() => {
|
|
2745
2745
|
s.current = t;
|
|
2746
2746
|
}, [t]), u.useEffect(() => {
|
|
2747
2747
|
var a;
|
|
2748
2748
|
o.current !== n && ((a = s.current) == null || a.call(s, n), o.current = n);
|
|
2749
2749
|
}, [n, o]), [n, r, s];
|
|
2750
2750
|
}
|
|
2751
|
-
function
|
|
2751
|
+
function Lp(e) {
|
|
2752
2752
|
return typeof e == "function";
|
|
2753
2753
|
}
|
|
2754
2754
|
function Vs(e, t) {
|
|
@@ -2775,7 +2775,7 @@ function $o(...e) {
|
|
|
2775
2775
|
function ae(...e) {
|
|
2776
2776
|
return u.useCallback($o(...e), e);
|
|
2777
2777
|
}
|
|
2778
|
-
var
|
|
2778
|
+
var Fp = [
|
|
2779
2779
|
"a",
|
|
2780
2780
|
"button",
|
|
2781
2781
|
"div",
|
|
@@ -2793,7 +2793,7 @@ var Dp = [
|
|
|
2793
2793
|
"span",
|
|
2794
2794
|
"svg",
|
|
2795
2795
|
"ul"
|
|
2796
|
-
], Z =
|
|
2796
|
+
], Z = Fp.reduce((e, t) => {
|
|
2797
2797
|
const n = Ft(`Primitive.${t}`), r = u.forwardRef((o, s) => {
|
|
2798
2798
|
const { asChild: a, ...i } = o, l = a ? n : t;
|
|
2799
2799
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c(l, { ...i, ref: s });
|
|
@@ -2803,16 +2803,16 @@ var Dp = [
|
|
|
2803
2803
|
function oi(e, t) {
|
|
2804
2804
|
e && ar.flushSync(() => e.dispatchEvent(t));
|
|
2805
2805
|
}
|
|
2806
|
-
function
|
|
2806
|
+
function $p(e, t) {
|
|
2807
2807
|
return u.useReducer((n, r) => t[n][r] ?? n, e);
|
|
2808
2808
|
}
|
|
2809
2809
|
var Oe = (e) => {
|
|
2810
|
-
const { present: t, children: n } = e, r =
|
|
2810
|
+
const { present: t, children: n } = e, r = Bp(t), o = typeof n == "function" ? n({ present: r.isPresent }) : u.Children.only(n), s = ae(r.ref, Up(o));
|
|
2811
2811
|
return typeof n == "function" || r.isPresent ? u.cloneElement(o, { ref: s }) : null;
|
|
2812
2812
|
};
|
|
2813
2813
|
Oe.displayName = "Presence";
|
|
2814
|
-
function
|
|
2815
|
-
const [t, n] = u.useState(), r = u.useRef(null), o = u.useRef(e), s = u.useRef("none"), a = e ? "mounted" : "unmounted", [i, l] =
|
|
2814
|
+
function Bp(e) {
|
|
2815
|
+
const [t, n] = u.useState(), r = u.useRef(null), o = u.useRef(e), s = u.useRef("none"), a = e ? "mounted" : "unmounted", [i, l] = $p(a, {
|
|
2816
2816
|
mounted: {
|
|
2817
2817
|
UNMOUNT: "unmounted",
|
|
2818
2818
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -2863,20 +2863,20 @@ function Fp(e) {
|
|
|
2863
2863
|
function Nn(e) {
|
|
2864
2864
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
2865
2865
|
}
|
|
2866
|
-
function
|
|
2866
|
+
function Up(e) {
|
|
2867
2867
|
var r, o;
|
|
2868
2868
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
2869
2869
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
2870
2870
|
}
|
|
2871
|
-
var
|
|
2872
|
-
}),
|
|
2871
|
+
var Hp = u[" useId ".trim().toString()] || (() => {
|
|
2872
|
+
}), zp = 0;
|
|
2873
2873
|
function He(e) {
|
|
2874
|
-
const [t, n] = u.useState(
|
|
2874
|
+
const [t, n] = u.useState(Hp());
|
|
2875
2875
|
return Ce(() => {
|
|
2876
|
-
n((r) => r ?? String(
|
|
2876
|
+
n((r) => r ?? String(zp++));
|
|
2877
2877
|
}, [e]), t ? `radix-${t}` : "";
|
|
2878
2878
|
}
|
|
2879
|
-
var fr = "Collapsible", [
|
|
2879
|
+
var fr = "Collapsible", [Wp, Zy] = Ve(fr), [jp, Bo] = Wp(fr), si = u.forwardRef(
|
|
2880
2880
|
(e, t) => {
|
|
2881
2881
|
const {
|
|
2882
2882
|
__scopeCollapsible: n,
|
|
@@ -2892,7 +2892,7 @@ var fr = "Collapsible", [Hp, Yy] = Ve(fr), [zp, Bo] = Hp(fr), si = u.forwardRef(
|
|
|
2892
2892
|
caller: fr
|
|
2893
2893
|
});
|
|
2894
2894
|
return /* @__PURE__ */ c(
|
|
2895
|
-
|
|
2895
|
+
jp,
|
|
2896
2896
|
{
|
|
2897
2897
|
scope: n,
|
|
2898
2898
|
disabled: s,
|
|
@@ -2933,14 +2933,14 @@ var ai = "CollapsibleTrigger", ii = u.forwardRef(
|
|
|
2933
2933
|
}
|
|
2934
2934
|
);
|
|
2935
2935
|
ii.displayName = ai;
|
|
2936
|
-
var Uo = "CollapsibleContent",
|
|
2936
|
+
var Uo = "CollapsibleContent", Vp = u.forwardRef(
|
|
2937
2937
|
(e, t) => {
|
|
2938
2938
|
const { forceMount: n, ...r } = e, o = Bo(Uo, e.__scopeCollapsible);
|
|
2939
|
-
return /* @__PURE__ */ c(Oe, { present: n || o.open, children: ({ present: s }) => /* @__PURE__ */ c(
|
|
2939
|
+
return /* @__PURE__ */ c(Oe, { present: n || o.open, children: ({ present: s }) => /* @__PURE__ */ c(Kp, { ...r, ref: t, present: s }) });
|
|
2940
2940
|
}
|
|
2941
2941
|
);
|
|
2942
|
-
|
|
2943
|
-
var
|
|
2942
|
+
Vp.displayName = Uo;
|
|
2943
|
+
var Kp = u.forwardRef((e, t) => {
|
|
2944
2944
|
const { __scopeCollapsible: n, present: r, children: o, ...s } = e, a = Bo(Uo, n), [i, l] = u.useState(r), f = u.useRef(null), d = ae(t, f), p = u.useRef(0), m = p.current, v = u.useRef(0), g = v.current, h = a.open || i, b = u.useRef(h), w = u.useRef(void 0);
|
|
2945
2945
|
return u.useEffect(() => {
|
|
2946
2946
|
const x = requestAnimationFrame(() => b.current = !1);
|
|
@@ -2976,8 +2976,8 @@ var jp = u.forwardRef((e, t) => {
|
|
|
2976
2976
|
function Ho(e) {
|
|
2977
2977
|
return e ? "open" : "closed";
|
|
2978
2978
|
}
|
|
2979
|
-
var
|
|
2980
|
-
const Ks =
|
|
2979
|
+
var Gp = si;
|
|
2980
|
+
const Ks = Gp, Gs = ii;
|
|
2981
2981
|
function Rn({ content: e, className: t = "" }) {
|
|
2982
2982
|
const n = qe.useMemo(() => ({ table: ({ node: f, className: d, ...p }) => /* @__PURE__ */ c("div", { className: "max-w-full", children: /* @__PURE__ */ c(
|
|
2983
2983
|
"table",
|
|
@@ -3061,7 +3061,7 @@ async function qs(e, t) {
|
|
|
3061
3061
|
const n = await ci(`/chat/files/${e}/view`, t), r = URL.createObjectURL(n);
|
|
3062
3062
|
window.open(r, "_blank"), setTimeout(() => URL.revokeObjectURL(r), 6e4);
|
|
3063
3063
|
}
|
|
3064
|
-
async function
|
|
3064
|
+
async function qp(e, t) {
|
|
3065
3065
|
const n = await ci(`/chat/files/${e}/download`, t), r = URL.createObjectURL(n);
|
|
3066
3066
|
let o = `file_${e}`;
|
|
3067
3067
|
try {
|
|
@@ -3072,9 +3072,9 @@ async function Kp(e, t) {
|
|
|
3072
3072
|
const s = document.createElement("a");
|
|
3073
3073
|
s.href = r, s.download = o, document.body.appendChild(s), s.click(), s.remove(), setTimeout(() => URL.revokeObjectURL(r), 6e4);
|
|
3074
3074
|
}
|
|
3075
|
-
const
|
|
3075
|
+
const Xp = 1, Yp = 1e6;
|
|
3076
3076
|
let Vr = 0;
|
|
3077
|
-
function
|
|
3077
|
+
function Jp() {
|
|
3078
3078
|
return Vr = (Vr + 1) % Number.MAX_SAFE_INTEGER, Vr.toString();
|
|
3079
3079
|
}
|
|
3080
3080
|
const Kr = /* @__PURE__ */ new Map(), Xs = (e) => {
|
|
@@ -3085,14 +3085,14 @@ const Kr = /* @__PURE__ */ new Map(), Xs = (e) => {
|
|
|
3085
3085
|
type: "REMOVE_TOAST",
|
|
3086
3086
|
toastId: e
|
|
3087
3087
|
});
|
|
3088
|
-
},
|
|
3088
|
+
}, Yp);
|
|
3089
3089
|
Kr.set(e, t);
|
|
3090
|
-
},
|
|
3090
|
+
}, Zp = (e, t) => {
|
|
3091
3091
|
switch (t.type) {
|
|
3092
3092
|
case "ADD_TOAST":
|
|
3093
3093
|
return {
|
|
3094
3094
|
...e,
|
|
3095
|
-
toasts: [t.toast, ...e.toasts].slice(0,
|
|
3095
|
+
toasts: [t.toast, ...e.toasts].slice(0, Xp)
|
|
3096
3096
|
};
|
|
3097
3097
|
case "UPDATE_TOAST":
|
|
3098
3098
|
return {
|
|
@@ -3127,12 +3127,12 @@ const Kr = /* @__PURE__ */ new Map(), Xs = (e) => {
|
|
|
3127
3127
|
}, Ln = [];
|
|
3128
3128
|
let Fn = { toasts: [] };
|
|
3129
3129
|
function en(e) {
|
|
3130
|
-
Fn =
|
|
3130
|
+
Fn = Zp(Fn, e), Ln.forEach((t) => {
|
|
3131
3131
|
t(Fn);
|
|
3132
3132
|
});
|
|
3133
3133
|
}
|
|
3134
|
-
function
|
|
3135
|
-
const t =
|
|
3134
|
+
function Qp({ ...e }) {
|
|
3135
|
+
const t = Jp(), n = (o) => en({
|
|
3136
3136
|
type: "UPDATE_TOAST",
|
|
3137
3137
|
toast: { ...o, id: t }
|
|
3138
3138
|
}), r = () => en({ type: "DISMISS_TOAST", toastId: t });
|
|
@@ -3159,12 +3159,12 @@ function li() {
|
|
|
3159
3159
|
n > -1 && Ln.splice(n, 1);
|
|
3160
3160
|
}), [e]), {
|
|
3161
3161
|
...e,
|
|
3162
|
-
toast:
|
|
3162
|
+
toast: Qp,
|
|
3163
3163
|
dismiss: (n) => en({ type: "DISMISS_TOAST", toastId: n })
|
|
3164
3164
|
};
|
|
3165
3165
|
}
|
|
3166
3166
|
const $n = "prose prose-sm max-w-none break-words dark:prose-invert prose-headings:break-words prose-p:break-words prose-li:break-words prose-td:break-words prose-th:break-words prose-a:break-all prose-code:break-words prose-blockquote:break-words";
|
|
3167
|
-
function
|
|
3167
|
+
function eh({ className: e }) {
|
|
3168
3168
|
const [t, n] = Q(0);
|
|
3169
3169
|
return we(() => {
|
|
3170
3170
|
const r = setInterval(() => n((o) => (o + 1) % 4), 500);
|
|
@@ -3181,7 +3181,7 @@ function Zp({ className: e }) {
|
|
|
3181
3181
|
}
|
|
3182
3182
|
);
|
|
3183
3183
|
}
|
|
3184
|
-
function
|
|
3184
|
+
function th({
|
|
3185
3185
|
message: e,
|
|
3186
3186
|
messageIndex: t,
|
|
3187
3187
|
isStreamingMessage: n = !1,
|
|
@@ -3214,7 +3214,7 @@ function Qp({
|
|
|
3214
3214
|
default:
|
|
3215
3215
|
return "text-[hsl(var(--chat-bubble-ai-text))]";
|
|
3216
3216
|
}
|
|
3217
|
-
}, [B]), M = gt(() =>
|
|
3217
|
+
}, [B]), M = gt(() => nh(e.content), [e.content]), N = gt(() => ih(e.content), [e.content]), J = gt(() => e.content.filter((Y) => Y.type === "image_url"), [e.content]), G = gt(() => e.content.filter((Y) => Y.type === "file"), [e.content]), te = lh(M, n ? r : 0), F = async () => {
|
|
3218
3218
|
try {
|
|
3219
3219
|
const Y = I ? Pt(e.content) : M;
|
|
3220
3220
|
await navigator.clipboard.writeText(Y), y(!0), setTimeout(() => y(!1), 2e3), w == null || w(Y);
|
|
@@ -3239,7 +3239,7 @@ function Qp({
|
|
|
3239
3239
|
const me = K({ title: ve === "download" ? "Downloading file..." : "Opening file...", description: "", open: !0 }), be = (tt) => {
|
|
3240
3240
|
me.update({ id: me.id, description: `Progress: ${(tt * 100).toFixed(0)}%` });
|
|
3241
3241
|
};
|
|
3242
|
-
ve === "download" ? await
|
|
3242
|
+
ve === "download" ? await qp(ge, be) : await qs(ge, be), me.update({ id: me.id, title: "Done", description: void 0 });
|
|
3243
3243
|
} catch (me) {
|
|
3244
3244
|
console.error("Failed to fetch server file:", me), K({ title: "Failed to fetch file", description: String(me), open: !0 });
|
|
3245
3245
|
} finally {
|
|
@@ -3338,11 +3338,11 @@ function Qp({
|
|
|
3338
3338
|
if (e.model === "reflection") {
|
|
3339
3339
|
const _ = M.trim(), D = Gr(_);
|
|
3340
3340
|
if (D && typeof D == "object")
|
|
3341
|
-
return /* @__PURE__ */ c(
|
|
3341
|
+
return /* @__PURE__ */ c(uh, { data: D });
|
|
3342
3342
|
}
|
|
3343
3343
|
if (I && N.name === "get_issues") {
|
|
3344
3344
|
const _ = e.content.find((ge) => ge.type === "tool_result"), D = (_ == null ? void 0 : _.output) ?? Pt(e.content), oe = di(D);
|
|
3345
|
-
if (oe) return /* @__PURE__ */ c(
|
|
3345
|
+
if (oe) return /* @__PURE__ */ c(dh, { issues: oe });
|
|
3346
3346
|
}
|
|
3347
3347
|
if (I && !k) {
|
|
3348
3348
|
const _ = Pt(e.content).slice(0, 80).replace(/\s+/g, " ");
|
|
@@ -3367,8 +3367,8 @@ function Qp({
|
|
|
3367
3367
|
] }) });
|
|
3368
3368
|
}
|
|
3369
3369
|
if (I && k && !f) {
|
|
3370
|
-
const _ =
|
|
3371
|
-
if (_ &&
|
|
3370
|
+
const _ = fh(e.content);
|
|
3371
|
+
if (_ && rh(_))
|
|
3372
3372
|
return /* @__PURE__ */ c(Rn, { content: _.trim() });
|
|
3373
3373
|
const D = Pt(e.content);
|
|
3374
3374
|
return /* @__PURE__ */ c("div", { className: "font-mono text-sm text-current", children: /* @__PURE__ */ c("pre", { className: A("whitespace-pre-wrap break-words text-current", P && "text-xs"), children: D }) });
|
|
@@ -3378,9 +3378,9 @@ function Qp({
|
|
|
3378
3378
|
n ? /* @__PURE__ */ E("div", { className: "relative", children: [
|
|
3379
3379
|
(() => {
|
|
3380
3380
|
const _ = Gr(te);
|
|
3381
|
-
return _ !== null ? /* @__PURE__ */ c(Ys, { data: _ }) : /* @__PURE__ */ c(Rn, { content:
|
|
3381
|
+
return _ !== null ? /* @__PURE__ */ c(Ys, { data: _ }) : /* @__PURE__ */ c(Rn, { content: sh(oh(te)) });
|
|
3382
3382
|
})(),
|
|
3383
|
-
/* @__PURE__ */ c(
|
|
3383
|
+
/* @__PURE__ */ c(eh, { className: A(z, P ? "text-xs" : "text-sm") })
|
|
3384
3384
|
] }) : (() => {
|
|
3385
3385
|
const _ = Gr(M.trim());
|
|
3386
3386
|
if (_ !== null) return /* @__PURE__ */ c(Ys, { data: _ });
|
|
@@ -3452,7 +3452,7 @@ function Qp({
|
|
|
3452
3452
|
);
|
|
3453
3453
|
}) })
|
|
3454
3454
|
] });
|
|
3455
|
-
}, ne = gt(() =>
|
|
3455
|
+
}, ne = gt(() => ch(e), [e]);
|
|
3456
3456
|
return /* @__PURE__ */ c("div", { className: A(ce(), v.container), children: /* @__PURE__ */ E("div", { className: A(ue(), v.content), children: [
|
|
3457
3457
|
(a || i || I) && /* @__PURE__ */ E(
|
|
3458
3458
|
"div",
|
|
@@ -3609,15 +3609,15 @@ function Qp({
|
|
|
3609
3609
|
)
|
|
3610
3610
|
] }) });
|
|
3611
3611
|
}
|
|
3612
|
-
function
|
|
3612
|
+
function nh(e) {
|
|
3613
3613
|
const t = e.filter((n) => n.type === "text").map((n) => n.text).join("");
|
|
3614
3614
|
return t || JSON.stringify(e);
|
|
3615
3615
|
}
|
|
3616
|
-
function
|
|
3616
|
+
function rh(e) {
|
|
3617
3617
|
return e.includes(`
|
|
3618
3618
|
`) || e.includes("```") || /[-*] /.test(e) || /#+\s/.test(e);
|
|
3619
3619
|
}
|
|
3620
|
-
function
|
|
3620
|
+
function oh(e) {
|
|
3621
3621
|
let t = e;
|
|
3622
3622
|
try {
|
|
3623
3623
|
(t.match(/```/g) || []).length % 2 === 1 && (t += "\n```"), (t.replace(/```[\s\S]*?```/g, "").match(new RegExp("(?<!`)`(?!`)", "g")) || []).length % 2 === 1 && (t += "`");
|
|
@@ -3625,7 +3625,7 @@ function nh(e) {
|
|
|
3625
3625
|
}
|
|
3626
3626
|
return t;
|
|
3627
3627
|
}
|
|
3628
|
-
function
|
|
3628
|
+
function sh(e) {
|
|
3629
3629
|
let t = e;
|
|
3630
3630
|
try {
|
|
3631
3631
|
const n = [], r = [], o = "\0F", s = "\0I";
|
|
@@ -3671,12 +3671,12 @@ function Ys({ data: e }) {
|
|
|
3671
3671
|
s,
|
|
3672
3672
|
":"
|
|
3673
3673
|
] }),
|
|
3674
|
-
/* @__PURE__ */ c("dd", { className: "inline", children:
|
|
3674
|
+
/* @__PURE__ */ c("dd", { className: "inline", children: ah(a) })
|
|
3675
3675
|
] }, s)) }) });
|
|
3676
3676
|
}
|
|
3677
3677
|
return /* @__PURE__ */ c("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: tn(e) });
|
|
3678
3678
|
}
|
|
3679
|
-
function
|
|
3679
|
+
function ah(e) {
|
|
3680
3680
|
if (e == null) return String(e);
|
|
3681
3681
|
const t = typeof e;
|
|
3682
3682
|
if (t === "string" || t === "number" || t === "boolean") return String(e);
|
|
@@ -3724,17 +3724,17 @@ function tn(e) {
|
|
|
3724
3724
|
return "";
|
|
3725
3725
|
}
|
|
3726
3726
|
}
|
|
3727
|
-
function
|
|
3727
|
+
function ih(e) {
|
|
3728
3728
|
const t = e.find((r) => r.type === "tool_call"), n = e.find((r) => r.type === "tool_result");
|
|
3729
3729
|
return {
|
|
3730
3730
|
name: t == null ? void 0 : t.name,
|
|
3731
3731
|
toolCallId: (n == null ? void 0 : n.toolCallId) ?? (t == null ? void 0 : t.id)
|
|
3732
3732
|
};
|
|
3733
3733
|
}
|
|
3734
|
-
function
|
|
3734
|
+
function ch(e) {
|
|
3735
3735
|
return e.name && e.name.trim() ? e.name : e.model && e.model.includes("/") ? e.model.split("/").pop() || null : e.model || null;
|
|
3736
3736
|
}
|
|
3737
|
-
function
|
|
3737
|
+
function lh(e, t) {
|
|
3738
3738
|
const [n, r] = Q(e);
|
|
3739
3739
|
return we(() => {
|
|
3740
3740
|
if (!t) {
|
|
@@ -3745,7 +3745,7 @@ function ih(e, t) {
|
|
|
3745
3745
|
return () => clearTimeout(o);
|
|
3746
3746
|
}, [e, t]), n;
|
|
3747
3747
|
}
|
|
3748
|
-
function
|
|
3748
|
+
function uh({ data: e }) {
|
|
3749
3749
|
return /* @__PURE__ */ c("dl", { className: "grid grid-cols-1 gap-y-2", children: Object.entries(e).map(([t, n]) => /* @__PURE__ */ E("div", { className: "flex", children: [
|
|
3750
3750
|
/* @__PURE__ */ E("dt", { className: "font-semibold mr-2", children: [
|
|
3751
3751
|
t,
|
|
@@ -3798,7 +3798,7 @@ function di(e) {
|
|
|
3798
3798
|
}
|
|
3799
3799
|
return Object.values(n).some((a) => a.length > 0) ? n : null;
|
|
3800
3800
|
}
|
|
3801
|
-
function
|
|
3801
|
+
function dh({ issues: e }) {
|
|
3802
3802
|
return /* @__PURE__ */ c("div", { className: $n, children: [
|
|
3803
3803
|
{ key: "desirability", title: "Desirability" },
|
|
3804
3804
|
{ key: "feasibility", title: "Feasibility" },
|
|
@@ -3829,14 +3829,14 @@ function Pt(e) {
|
|
|
3829
3829
|
}
|
|
3830
3830
|
return tn(e);
|
|
3831
3831
|
}
|
|
3832
|
-
function
|
|
3832
|
+
function fh(e) {
|
|
3833
3833
|
const t = e.find((r) => r.type === "tool_result");
|
|
3834
3834
|
if (!t) return null;
|
|
3835
3835
|
const n = t.output;
|
|
3836
3836
|
return typeof n == "string" ? n : null;
|
|
3837
3837
|
}
|
|
3838
3838
|
const kt = 1e4;
|
|
3839
|
-
function
|
|
3839
|
+
function ph(e) {
|
|
3840
3840
|
if (typeof e != "string")
|
|
3841
3841
|
return String(e);
|
|
3842
3842
|
const t = [
|
|
@@ -3863,16 +3863,16 @@ function dh(e) {
|
|
|
3863
3863
|
`).replace(/<li>(.*?)<\/li>/gi, `- $1
|
|
3864
3864
|
`).trim() : n.replace(/</g, "<").replace(/>/g, ">").trim();
|
|
3865
3865
|
}
|
|
3866
|
-
function
|
|
3866
|
+
function hh(e, t = kt) {
|
|
3867
3867
|
if (!e || typeof e != "string")
|
|
3868
3868
|
throw new Error("Invalid content: must be a non-empty string");
|
|
3869
3869
|
if (e.length > t)
|
|
3870
3870
|
throw new Error(`Message exceeds maximum length of ${t} characters`);
|
|
3871
3871
|
return e;
|
|
3872
3872
|
}
|
|
3873
|
-
function
|
|
3873
|
+
function mh(e) {
|
|
3874
3874
|
let t;
|
|
3875
|
-
return typeof e == "string" ? t = e : typeof e == "object" && e !== null ? t = JSON.stringify(e) : t = String(e),
|
|
3875
|
+
return typeof e == "string" ? t = e : typeof e == "object" && e !== null ? t = JSON.stringify(e) : t = String(e), hh(t), ph(t);
|
|
3876
3876
|
}
|
|
3877
3877
|
function zo(e) {
|
|
3878
3878
|
const t = e + "CollectionProvider", [n, r] = Ve(t), [o, s] = n(
|
|
@@ -3914,9 +3914,9 @@ function zo(e) {
|
|
|
3914
3914
|
r
|
|
3915
3915
|
];
|
|
3916
3916
|
}
|
|
3917
|
-
var
|
|
3917
|
+
var gh = u.createContext(void 0);
|
|
3918
3918
|
function pr(e) {
|
|
3919
|
-
const t = u.useContext(
|
|
3919
|
+
const t = u.useContext(gh);
|
|
3920
3920
|
return e || t || "ltr";
|
|
3921
3921
|
}
|
|
3922
3922
|
function Ee(e) {
|
|
@@ -3928,7 +3928,7 @@ function Ee(e) {
|
|
|
3928
3928
|
return (r = t.current) == null ? void 0 : r.call(t, ...n);
|
|
3929
3929
|
}, []);
|
|
3930
3930
|
}
|
|
3931
|
-
function
|
|
3931
|
+
function bh(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3932
3932
|
const n = Ee(e);
|
|
3933
3933
|
u.useEffect(() => {
|
|
3934
3934
|
const r = (o) => {
|
|
@@ -3937,7 +3937,7 @@ function mh(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3937
3937
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
3938
3938
|
}, [n, t]);
|
|
3939
3939
|
}
|
|
3940
|
-
var
|
|
3940
|
+
var vh = "DismissableLayer", ho = "dismissableLayer.update", wh = "dismissableLayer.pointerDownOutside", yh = "dismissableLayer.focusOutside", Js, fi = u.createContext({
|
|
3941
3941
|
layers: /* @__PURE__ */ new Set(),
|
|
3942
3942
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
3943
3943
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -3951,14 +3951,14 @@ var gh = "DismissableLayer", ho = "dismissableLayer.update", bh = "dismissableLa
|
|
|
3951
3951
|
onInteractOutside: a,
|
|
3952
3952
|
onDismiss: i,
|
|
3953
3953
|
...l
|
|
3954
|
-
} = e, f = u.useContext(fi), [d, p] = u.useState(null), m = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, v] = u.useState({}), g = ae(t, (R) => p(R)), h = Array.from(f.layers), [b] = [...f.layersWithOutsidePointerEventsDisabled].slice(-1), w = h.indexOf(b), x = d ? h.indexOf(d) : -1, y = f.layersWithOutsidePointerEventsDisabled.size > 0, C = x >= w, T =
|
|
3954
|
+
} = e, f = u.useContext(fi), [d, p] = u.useState(null), m = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, v] = u.useState({}), g = ae(t, (R) => p(R)), h = Array.from(f.layers), [b] = [...f.layersWithOutsidePointerEventsDisabled].slice(-1), w = h.indexOf(b), x = d ? h.indexOf(d) : -1, y = f.layersWithOutsidePointerEventsDisabled.size > 0, C = x >= w, T = Ch((R) => {
|
|
3955
3955
|
const L = R.target, $ = [...f.branches].some((H) => H.contains(L));
|
|
3956
3956
|
!C || $ || (o == null || o(R), a == null || a(R), R.defaultPrevented || i == null || i());
|
|
3957
|
-
}, m), k =
|
|
3957
|
+
}, m), k = Eh((R) => {
|
|
3958
3958
|
const L = R.target;
|
|
3959
3959
|
[...f.branches].some((H) => H.contains(L)) || (s == null || s(R), a == null || a(R), R.defaultPrevented || i == null || i());
|
|
3960
3960
|
}, m);
|
|
3961
|
-
return
|
|
3961
|
+
return bh((R) => {
|
|
3962
3962
|
x === f.layers.size - 1 && (r == null || r(R), !R.defaultPrevented && i && (R.preventDefault(), i()));
|
|
3963
3963
|
}, m), u.useEffect(() => {
|
|
3964
3964
|
if (d)
|
|
@@ -3989,8 +3989,8 @@ var gh = "DismissableLayer", ho = "dismissableLayer.update", bh = "dismissableLa
|
|
|
3989
3989
|
);
|
|
3990
3990
|
}
|
|
3991
3991
|
);
|
|
3992
|
-
mn.displayName =
|
|
3993
|
-
var
|
|
3992
|
+
mn.displayName = vh;
|
|
3993
|
+
var xh = "DismissableLayerBranch", Sh = u.forwardRef((e, t) => {
|
|
3994
3994
|
const n = u.useContext(fi), r = u.useRef(null), o = ae(t, r);
|
|
3995
3995
|
return u.useEffect(() => {
|
|
3996
3996
|
const s = r.current;
|
|
@@ -4000,8 +4000,8 @@ var wh = "DismissableLayerBranch", yh = u.forwardRef((e, t) => {
|
|
|
4000
4000
|
};
|
|
4001
4001
|
}, [n.branches]), /* @__PURE__ */ c(Z.div, { ...e, ref: o });
|
|
4002
4002
|
});
|
|
4003
|
-
|
|
4004
|
-
function
|
|
4003
|
+
Sh.displayName = xh;
|
|
4004
|
+
function Ch(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
4005
4005
|
const n = Ee(e), r = u.useRef(!1), o = u.useRef(() => {
|
|
4006
4006
|
});
|
|
4007
4007
|
return u.useEffect(() => {
|
|
@@ -4009,7 +4009,7 @@ function xh(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
4009
4009
|
if (i.target && !r.current) {
|
|
4010
4010
|
let l = function() {
|
|
4011
4011
|
pi(
|
|
4012
|
-
|
|
4012
|
+
wh,
|
|
4013
4013
|
n,
|
|
4014
4014
|
f,
|
|
4015
4015
|
{ discrete: !0 }
|
|
@@ -4031,11 +4031,11 @@ function xh(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
4031
4031
|
onPointerDownCapture: () => r.current = !0
|
|
4032
4032
|
};
|
|
4033
4033
|
}
|
|
4034
|
-
function
|
|
4034
|
+
function Eh(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
4035
4035
|
const n = Ee(e), r = u.useRef(!1);
|
|
4036
4036
|
return u.useEffect(() => {
|
|
4037
4037
|
const o = (s) => {
|
|
4038
|
-
s.target && !r.current && pi(
|
|
4038
|
+
s.target && !r.current && pi(yh, n, { originalEvent: s }, {
|
|
4039
4039
|
discrete: !1
|
|
4040
4040
|
});
|
|
4041
4041
|
};
|
|
@@ -4066,7 +4066,7 @@ function Qs() {
|
|
|
4066
4066
|
const e = document.createElement("span");
|
|
4067
4067
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
4068
4068
|
}
|
|
4069
|
-
var Xr = "focusScope.autoFocusOnMount", Yr = "focusScope.autoFocusOnUnmount", ea = { bubbles: !1, cancelable: !0 },
|
|
4069
|
+
var Xr = "focusScope.autoFocusOnMount", Yr = "focusScope.autoFocusOnUnmount", ea = { bubbles: !1, cancelable: !0 }, Nh = "FocusScope", hr = u.forwardRef((e, t) => {
|
|
4070
4070
|
const {
|
|
4071
4071
|
loop: n = !1,
|
|
4072
4072
|
trapped: r = !1,
|
|
@@ -4109,7 +4109,7 @@ var Xr = "focusScope.autoFocusOnMount", Yr = "focusScope.autoFocusOnUnmount", ea
|
|
|
4109
4109
|
const h = document.activeElement;
|
|
4110
4110
|
if (!i.contains(h)) {
|
|
4111
4111
|
const w = new CustomEvent(Xr, ea);
|
|
4112
|
-
i.addEventListener(Xr, f), i.dispatchEvent(w), w.defaultPrevented || (
|
|
4112
|
+
i.addEventListener(Xr, f), i.dispatchEvent(w), w.defaultPrevented || (Rh(_h(hi(i)), { select: !0 }), document.activeElement === h && st(i));
|
|
4113
4113
|
}
|
|
4114
4114
|
return () => {
|
|
4115
4115
|
i.removeEventListener(Xr, f), setTimeout(() => {
|
|
@@ -4124,7 +4124,7 @@ var Xr = "focusScope.autoFocusOnMount", Yr = "focusScope.autoFocusOnUnmount", ea
|
|
|
4124
4124
|
if (!n && !r || v.paused) return;
|
|
4125
4125
|
const b = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, w = document.activeElement;
|
|
4126
4126
|
if (b && w) {
|
|
4127
|
-
const x = h.currentTarget, [y, C] =
|
|
4127
|
+
const x = h.currentTarget, [y, C] = Th(x);
|
|
4128
4128
|
y && C ? !h.shiftKey && w === C ? (h.preventDefault(), n && st(y, { select: !0 })) : h.shiftKey && w === y && (h.preventDefault(), n && st(C, { select: !0 })) : w === x && h.preventDefault();
|
|
4129
4129
|
}
|
|
4130
4130
|
},
|
|
@@ -4132,13 +4132,13 @@ var Xr = "focusScope.autoFocusOnMount", Yr = "focusScope.autoFocusOnUnmount", ea
|
|
|
4132
4132
|
);
|
|
4133
4133
|
return /* @__PURE__ */ c(Z.div, { tabIndex: -1, ...a, ref: m, onKeyDown: g });
|
|
4134
4134
|
});
|
|
4135
|
-
hr.displayName =
|
|
4136
|
-
function
|
|
4135
|
+
hr.displayName = Nh;
|
|
4136
|
+
function Rh(e, { select: t = !1 } = {}) {
|
|
4137
4137
|
const n = document.activeElement;
|
|
4138
4138
|
for (const r of e)
|
|
4139
4139
|
if (st(r, { select: t }), document.activeElement !== n) return;
|
|
4140
4140
|
}
|
|
4141
|
-
function
|
|
4141
|
+
function Th(e) {
|
|
4142
4142
|
const t = hi(e), n = ta(t, e), r = ta(t.reverse(), e);
|
|
4143
4143
|
return [n, r];
|
|
4144
4144
|
}
|
|
@@ -4154,9 +4154,9 @@ function hi(e) {
|
|
|
4154
4154
|
}
|
|
4155
4155
|
function ta(e, t) {
|
|
4156
4156
|
for (const n of e)
|
|
4157
|
-
if (!
|
|
4157
|
+
if (!Ah(n, { upTo: t })) return n;
|
|
4158
4158
|
}
|
|
4159
|
-
function
|
|
4159
|
+
function Ah(e, { upTo: t }) {
|
|
4160
4160
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
4161
4161
|
for (; e; ) {
|
|
4162
4162
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -4165,17 +4165,17 @@ function Rh(e, { upTo: t }) {
|
|
|
4165
4165
|
}
|
|
4166
4166
|
return !1;
|
|
4167
4167
|
}
|
|
4168
|
-
function
|
|
4168
|
+
function Ph(e) {
|
|
4169
4169
|
return e instanceof HTMLInputElement && "select" in e;
|
|
4170
4170
|
}
|
|
4171
4171
|
function st(e, { select: t = !1 } = {}) {
|
|
4172
4172
|
if (e && e.focus) {
|
|
4173
4173
|
const n = document.activeElement;
|
|
4174
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
4174
|
+
e.focus({ preventScroll: !0 }), e !== n && Ph(e) && t && e.select();
|
|
4175
4175
|
}
|
|
4176
4176
|
}
|
|
4177
|
-
var na =
|
|
4178
|
-
function
|
|
4177
|
+
var na = Ih();
|
|
4178
|
+
function Ih() {
|
|
4179
4179
|
let e = [];
|
|
4180
4180
|
return {
|
|
4181
4181
|
add(t) {
|
|
@@ -4192,18 +4192,18 @@ function ra(e, t) {
|
|
|
4192
4192
|
const n = [...e], r = n.indexOf(t);
|
|
4193
4193
|
return r !== -1 && n.splice(r, 1), n;
|
|
4194
4194
|
}
|
|
4195
|
-
function
|
|
4195
|
+
function _h(e) {
|
|
4196
4196
|
return e.filter((t) => t.tagName !== "A");
|
|
4197
4197
|
}
|
|
4198
|
-
const
|
|
4198
|
+
const Oh = ["top", "right", "bottom", "left"], ut = Math.min, ke = Math.max, Yn = Math.round, Tn = Math.floor, Je = (e) => ({
|
|
4199
4199
|
x: e,
|
|
4200
4200
|
y: e
|
|
4201
|
-
}),
|
|
4201
|
+
}), kh = {
|
|
4202
4202
|
left: "right",
|
|
4203
4203
|
right: "left",
|
|
4204
4204
|
bottom: "top",
|
|
4205
4205
|
top: "bottom"
|
|
4206
|
-
},
|
|
4206
|
+
}, Mh = {
|
|
4207
4207
|
start: "end",
|
|
4208
4208
|
end: "start"
|
|
4209
4209
|
};
|
|
@@ -4225,48 +4225,48 @@ function jo(e) {
|
|
|
4225
4225
|
function Vo(e) {
|
|
4226
4226
|
return e === "y" ? "height" : "width";
|
|
4227
4227
|
}
|
|
4228
|
-
const
|
|
4228
|
+
const Dh = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
4229
4229
|
function Ye(e) {
|
|
4230
|
-
return
|
|
4230
|
+
return Dh.has(rt(e)) ? "y" : "x";
|
|
4231
4231
|
}
|
|
4232
4232
|
function Ko(e) {
|
|
4233
4233
|
return jo(Ye(e));
|
|
4234
4234
|
}
|
|
4235
|
-
function
|
|
4235
|
+
function Lh(e, t, n) {
|
|
4236
4236
|
n === void 0 && (n = !1);
|
|
4237
4237
|
const r = Vt(e), o = Ko(e), s = Vo(o);
|
|
4238
4238
|
let a = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
4239
4239
|
return t.reference[s] > t.floating[s] && (a = Jn(a)), [a, Jn(a)];
|
|
4240
4240
|
}
|
|
4241
|
-
function
|
|
4241
|
+
function Fh(e) {
|
|
4242
4242
|
const t = Jn(e);
|
|
4243
4243
|
return [go(e), t, go(t)];
|
|
4244
4244
|
}
|
|
4245
4245
|
function go(e) {
|
|
4246
|
-
return e.replace(/start|end/g, (t) =>
|
|
4246
|
+
return e.replace(/start|end/g, (t) => Mh[t]);
|
|
4247
4247
|
}
|
|
4248
|
-
const oa = ["left", "right"], sa = ["right", "left"],
|
|
4249
|
-
function
|
|
4248
|
+
const oa = ["left", "right"], sa = ["right", "left"], $h = ["top", "bottom"], Bh = ["bottom", "top"];
|
|
4249
|
+
function Uh(e, t, n) {
|
|
4250
4250
|
switch (e) {
|
|
4251
4251
|
case "top":
|
|
4252
4252
|
case "bottom":
|
|
4253
4253
|
return n ? t ? sa : oa : t ? oa : sa;
|
|
4254
4254
|
case "left":
|
|
4255
4255
|
case "right":
|
|
4256
|
-
return t ?
|
|
4256
|
+
return t ? $h : Bh;
|
|
4257
4257
|
default:
|
|
4258
4258
|
return [];
|
|
4259
4259
|
}
|
|
4260
4260
|
}
|
|
4261
|
-
function
|
|
4261
|
+
function Hh(e, t, n, r) {
|
|
4262
4262
|
const o = Vt(e);
|
|
4263
|
-
let s =
|
|
4263
|
+
let s = Uh(rt(e), n === "start", r);
|
|
4264
4264
|
return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(go)))), s;
|
|
4265
4265
|
}
|
|
4266
4266
|
function Jn(e) {
|
|
4267
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
4267
|
+
return e.replace(/left|right|bottom|top/g, (t) => kh[t]);
|
|
4268
4268
|
}
|
|
4269
|
-
function
|
|
4269
|
+
function zh(e) {
|
|
4270
4270
|
return {
|
|
4271
4271
|
top: 0,
|
|
4272
4272
|
right: 0,
|
|
@@ -4276,7 +4276,7 @@ function Uh(e) {
|
|
|
4276
4276
|
};
|
|
4277
4277
|
}
|
|
4278
4278
|
function mi(e) {
|
|
4279
|
-
return typeof e != "number" ?
|
|
4279
|
+
return typeof e != "number" ? zh(e) : {
|
|
4280
4280
|
top: e,
|
|
4281
4281
|
right: e,
|
|
4282
4282
|
bottom: e,
|
|
@@ -4349,7 +4349,7 @@ function aa(e, t, n) {
|
|
|
4349
4349
|
}
|
|
4350
4350
|
return v;
|
|
4351
4351
|
}
|
|
4352
|
-
const
|
|
4352
|
+
const Wh = async (e, t, n) => {
|
|
4353
4353
|
const {
|
|
4354
4354
|
placement: r = "bottom",
|
|
4355
4355
|
strategy: o = "absolute",
|
|
@@ -4455,7 +4455,7 @@ async function rn(e, t) {
|
|
|
4455
4455
|
right: (T.right - w.right + g.right) / C.x
|
|
4456
4456
|
};
|
|
4457
4457
|
}
|
|
4458
|
-
const
|
|
4458
|
+
const jh = (e) => ({
|
|
4459
4459
|
name: "arrow",
|
|
4460
4460
|
options: e,
|
|
4461
4461
|
async fn(t) {
|
|
@@ -4492,7 +4492,7 @@ const zh = (e) => ({
|
|
|
4492
4492
|
reset: I
|
|
4493
4493
|
};
|
|
4494
4494
|
}
|
|
4495
|
-
}),
|
|
4495
|
+
}), Vh = function(e) {
|
|
4496
4496
|
return e === void 0 && (e = {}), {
|
|
4497
4497
|
name: "flip",
|
|
4498
4498
|
options: e,
|
|
@@ -4516,12 +4516,12 @@ const zh = (e) => ({
|
|
|
4516
4516
|
} = nt(e, t);
|
|
4517
4517
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
4518
4518
|
return {};
|
|
4519
|
-
const w = rt(o), x = Ye(i), y = rt(i) === i, C = await (l.isRTL == null ? void 0 : l.isRTL(f.floating)), T = m || (y || !h ? [Jn(i)] :
|
|
4520
|
-
!m && k && T.push(...
|
|
4519
|
+
const w = rt(o), x = Ye(i), y = rt(i) === i, C = await (l.isRTL == null ? void 0 : l.isRTL(f.floating)), T = m || (y || !h ? [Jn(i)] : Fh(i)), k = g !== "none";
|
|
4520
|
+
!m && k && T.push(...Hh(i, h, g, C));
|
|
4521
4521
|
const R = [i, ...T], L = await rn(t, b), $ = [];
|
|
4522
4522
|
let H = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
4523
4523
|
if (d && $.push(L[w]), p) {
|
|
4524
|
-
const P =
|
|
4524
|
+
const P = Lh(o, a, C);
|
|
4525
4525
|
$.push(L[P[0]], L[P[1]]);
|
|
4526
4526
|
}
|
|
4527
4527
|
if (H = [...H, {
|
|
@@ -4583,9 +4583,9 @@ function ia(e, t) {
|
|
|
4583
4583
|
};
|
|
4584
4584
|
}
|
|
4585
4585
|
function ca(e) {
|
|
4586
|
-
return
|
|
4586
|
+
return Oh.some((t) => e[t] >= 0);
|
|
4587
4587
|
}
|
|
4588
|
-
const
|
|
4588
|
+
const Kh = function(e) {
|
|
4589
4589
|
return e === void 0 && (e = {}), {
|
|
4590
4590
|
name: "hide",
|
|
4591
4591
|
options: e,
|
|
@@ -4627,7 +4627,7 @@ const jh = function(e) {
|
|
|
4627
4627
|
}
|
|
4628
4628
|
};
|
|
4629
4629
|
}, gi = /* @__PURE__ */ new Set(["left", "top"]);
|
|
4630
|
-
async function
|
|
4630
|
+
async function Gh(e, t) {
|
|
4631
4631
|
const {
|
|
4632
4632
|
placement: n,
|
|
4633
4633
|
platform: r,
|
|
@@ -4654,7 +4654,7 @@ async function Vh(e, t) {
|
|
|
4654
4654
|
y: v * d
|
|
4655
4655
|
};
|
|
4656
4656
|
}
|
|
4657
|
-
const
|
|
4657
|
+
const qh = function(e) {
|
|
4658
4658
|
return e === void 0 && (e = 0), {
|
|
4659
4659
|
name: "offset",
|
|
4660
4660
|
options: e,
|
|
@@ -4665,7 +4665,7 @@ const Kh = function(e) {
|
|
|
4665
4665
|
y: s,
|
|
4666
4666
|
placement: a,
|
|
4667
4667
|
middlewareData: i
|
|
4668
|
-
} = t, l = await
|
|
4668
|
+
} = t, l = await Gh(t, e);
|
|
4669
4669
|
return a === ((n = i.offset) == null ? void 0 : n.placement) && (r = i.arrow) != null && r.alignmentOffset ? {} : {
|
|
4670
4670
|
x: o + l.x,
|
|
4671
4671
|
y: s + l.y,
|
|
@@ -4676,7 +4676,7 @@ const Kh = function(e) {
|
|
|
4676
4676
|
};
|
|
4677
4677
|
}
|
|
4678
4678
|
};
|
|
4679
|
-
},
|
|
4679
|
+
}, Xh = function(e) {
|
|
4680
4680
|
return e === void 0 && (e = {}), {
|
|
4681
4681
|
name: "shift",
|
|
4682
4682
|
options: e,
|
|
@@ -4732,7 +4732,7 @@ const Kh = function(e) {
|
|
|
4732
4732
|
};
|
|
4733
4733
|
}
|
|
4734
4734
|
};
|
|
4735
|
-
},
|
|
4735
|
+
}, Yh = function(e) {
|
|
4736
4736
|
return e === void 0 && (e = {}), {
|
|
4737
4737
|
options: e,
|
|
4738
4738
|
fn(t) {
|
|
@@ -4774,7 +4774,7 @@ const Kh = function(e) {
|
|
|
4774
4774
|
};
|
|
4775
4775
|
}
|
|
4776
4776
|
};
|
|
4777
|
-
},
|
|
4777
|
+
}, Jh = function(e) {
|
|
4778
4778
|
return e === void 0 && (e = {}), {
|
|
4779
4779
|
name: "size",
|
|
4780
4780
|
options: e,
|
|
@@ -4841,7 +4841,7 @@ function Ze(e) {
|
|
|
4841
4841
|
function la(e) {
|
|
4842
4842
|
return !mr() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Me(e).ShadowRoot;
|
|
4843
4843
|
}
|
|
4844
|
-
const
|
|
4844
|
+
const Zh = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
4845
4845
|
function gn(e) {
|
|
4846
4846
|
const {
|
|
4847
4847
|
overflow: t,
|
|
@@ -4849,15 +4849,15 @@ function gn(e) {
|
|
|
4849
4849
|
overflowY: r,
|
|
4850
4850
|
display: o
|
|
4851
4851
|
} = We(e);
|
|
4852
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !
|
|
4852
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Zh.has(o);
|
|
4853
4853
|
}
|
|
4854
|
-
const
|
|
4855
|
-
function
|
|
4856
|
-
return
|
|
4854
|
+
const Qh = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
4855
|
+
function em(e) {
|
|
4856
|
+
return Qh.has(Kt(e));
|
|
4857
4857
|
}
|
|
4858
|
-
const
|
|
4858
|
+
const tm = [":popover-open", ":modal"];
|
|
4859
4859
|
function gr(e) {
|
|
4860
|
-
return
|
|
4860
|
+
return tm.some((t) => {
|
|
4861
4861
|
try {
|
|
4862
4862
|
return e.matches(t);
|
|
4863
4863
|
} catch {
|
|
@@ -4865,12 +4865,12 @@ function gr(e) {
|
|
|
4865
4865
|
}
|
|
4866
4866
|
});
|
|
4867
4867
|
}
|
|
4868
|
-
const
|
|
4868
|
+
const nm = ["transform", "translate", "scale", "rotate", "perspective"], rm = ["transform", "translate", "scale", "rotate", "perspective", "filter"], om = ["paint", "layout", "strict", "content"];
|
|
4869
4869
|
function Go(e) {
|
|
4870
4870
|
const t = qo(), n = ze(e) ? We(e) : e;
|
|
4871
|
-
return
|
|
4871
|
+
return nm.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || rm.some((r) => (n.willChange || "").includes(r)) || om.some((r) => (n.contain || "").includes(r));
|
|
4872
4872
|
}
|
|
4873
|
-
function
|
|
4873
|
+
function sm(e) {
|
|
4874
4874
|
let t = dt(e);
|
|
4875
4875
|
for (; Ze(t) && !Bt(t); ) {
|
|
4876
4876
|
if (Go(t))
|
|
@@ -4884,9 +4884,9 @@ function rm(e) {
|
|
|
4884
4884
|
function qo() {
|
|
4885
4885
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
4886
4886
|
}
|
|
4887
|
-
const
|
|
4887
|
+
const am = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
4888
4888
|
function Bt(e) {
|
|
4889
|
-
return
|
|
4889
|
+
return am.has(Kt(e));
|
|
4890
4890
|
}
|
|
4891
4891
|
function We(e) {
|
|
4892
4892
|
return Me(e).getComputedStyle(e);
|
|
@@ -4957,15 +4957,15 @@ function Dt(e) {
|
|
|
4957
4957
|
y: i
|
|
4958
4958
|
};
|
|
4959
4959
|
}
|
|
4960
|
-
const
|
|
4960
|
+
const im = /* @__PURE__ */ Je(0);
|
|
4961
4961
|
function yi(e) {
|
|
4962
4962
|
const t = Me(e);
|
|
4963
|
-
return !qo() || !t.visualViewport ?
|
|
4963
|
+
return !qo() || !t.visualViewport ? im : {
|
|
4964
4964
|
x: t.visualViewport.offsetLeft,
|
|
4965
4965
|
y: t.visualViewport.offsetTop
|
|
4966
4966
|
};
|
|
4967
4967
|
}
|
|
4968
|
-
function
|
|
4968
|
+
function cm(e, t, n) {
|
|
4969
4969
|
return t === void 0 && (t = !1), !n || t && n !== Me(e) ? !1 : t;
|
|
4970
4970
|
}
|
|
4971
4971
|
function yt(e, t, n, r) {
|
|
@@ -4973,7 +4973,7 @@ function yt(e, t, n, r) {
|
|
|
4973
4973
|
const o = e.getBoundingClientRect(), s = Xo(e);
|
|
4974
4974
|
let a = Je(1);
|
|
4975
4975
|
t && (r ? ze(r) && (a = Dt(r)) : a = Dt(e));
|
|
4976
|
-
const i =
|
|
4976
|
+
const i = cm(s, n, r) ? yi(s) : Je(0);
|
|
4977
4977
|
let l = (o.left + i.x) / a.x, f = (o.top + i.y) / a.y, d = o.width / a.x, p = o.height / a.y;
|
|
4978
4978
|
if (s) {
|
|
4979
4979
|
const m = Me(s), v = r && ze(r) ? Me(r) : r;
|
|
@@ -5001,7 +5001,7 @@ function xi(e, t) {
|
|
|
5001
5001
|
y: o
|
|
5002
5002
|
};
|
|
5003
5003
|
}
|
|
5004
|
-
function
|
|
5004
|
+
function lm(e) {
|
|
5005
5005
|
let {
|
|
5006
5006
|
elements: t,
|
|
5007
5007
|
rect: n,
|
|
@@ -5028,10 +5028,10 @@ function im(e) {
|
|
|
5028
5028
|
y: n.y * f.y - l.scrollTop * f.y + d.y + m.y
|
|
5029
5029
|
};
|
|
5030
5030
|
}
|
|
5031
|
-
function
|
|
5031
|
+
function um(e) {
|
|
5032
5032
|
return Array.from(e.getClientRects());
|
|
5033
5033
|
}
|
|
5034
|
-
function
|
|
5034
|
+
function dm(e) {
|
|
5035
5035
|
const t = Qe(e), n = br(e), r = e.ownerDocument.body, o = ke(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = ke(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
5036
5036
|
let a = -n.scrollLeft + vr(e);
|
|
5037
5037
|
const i = -n.scrollTop;
|
|
@@ -5043,7 +5043,7 @@ function lm(e) {
|
|
|
5043
5043
|
};
|
|
5044
5044
|
}
|
|
5045
5045
|
const ua = 25;
|
|
5046
|
-
function
|
|
5046
|
+
function fm(e, t) {
|
|
5047
5047
|
const n = Me(e), r = Qe(e), o = n.visualViewport;
|
|
5048
5048
|
let s = r.clientWidth, a = r.clientHeight, i = 0, l = 0;
|
|
5049
5049
|
if (o) {
|
|
@@ -5063,8 +5063,8 @@ function um(e, t) {
|
|
|
5063
5063
|
y: l
|
|
5064
5064
|
};
|
|
5065
5065
|
}
|
|
5066
|
-
const
|
|
5067
|
-
function
|
|
5066
|
+
const pm = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
5067
|
+
function hm(e, t) {
|
|
5068
5068
|
const n = yt(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = Ze(e) ? Dt(e) : Je(1), a = e.clientWidth * s.x, i = e.clientHeight * s.y, l = o * s.x, f = r * s.y;
|
|
5069
5069
|
return {
|
|
5070
5070
|
width: a,
|
|
@@ -5076,11 +5076,11 @@ function fm(e, t) {
|
|
|
5076
5076
|
function da(e, t, n) {
|
|
5077
5077
|
let r;
|
|
5078
5078
|
if (t === "viewport")
|
|
5079
|
-
r =
|
|
5079
|
+
r = fm(e, n);
|
|
5080
5080
|
else if (t === "document")
|
|
5081
|
-
r =
|
|
5081
|
+
r = dm(Qe(e));
|
|
5082
5082
|
else if (ze(t))
|
|
5083
|
-
r =
|
|
5083
|
+
r = hm(t, n);
|
|
5084
5084
|
else {
|
|
5085
5085
|
const o = yi(e);
|
|
5086
5086
|
r = {
|
|
@@ -5096,7 +5096,7 @@ function Si(e, t) {
|
|
|
5096
5096
|
const n = dt(e);
|
|
5097
5097
|
return n === t || !ze(n) || Bt(n) ? !1 : We(n).position === "fixed" || Si(n, t);
|
|
5098
5098
|
}
|
|
5099
|
-
function
|
|
5099
|
+
function mm(e, t) {
|
|
5100
5100
|
const n = t.get(e);
|
|
5101
5101
|
if (n)
|
|
5102
5102
|
return n;
|
|
@@ -5105,18 +5105,18 @@ function pm(e, t) {
|
|
|
5105
5105
|
let a = s ? dt(e) : e;
|
|
5106
5106
|
for (; ze(a) && !Bt(a); ) {
|
|
5107
5107
|
const i = We(a), l = Go(a);
|
|
5108
|
-
!l && i.position === "fixed" && (o = null), (s ? !l && !o : !l && i.position === "static" && !!o &&
|
|
5108
|
+
!l && i.position === "fixed" && (o = null), (s ? !l && !o : !l && i.position === "static" && !!o && pm.has(o.position) || gn(a) && !l && Si(e, a)) ? r = r.filter((d) => d !== a) : o = i, a = dt(a);
|
|
5109
5109
|
}
|
|
5110
5110
|
return t.set(e, r), r;
|
|
5111
5111
|
}
|
|
5112
|
-
function
|
|
5112
|
+
function gm(e) {
|
|
5113
5113
|
let {
|
|
5114
5114
|
element: t,
|
|
5115
5115
|
boundary: n,
|
|
5116
5116
|
rootBoundary: r,
|
|
5117
5117
|
strategy: o
|
|
5118
5118
|
} = e;
|
|
5119
|
-
const a = [...n === "clippingAncestors" ? gr(t) ? [] :
|
|
5119
|
+
const a = [...n === "clippingAncestors" ? gr(t) ? [] : mm(t, this._c) : [].concat(n), r], i = a[0], l = a.reduce((f, d) => {
|
|
5120
5120
|
const p = da(t, d, o);
|
|
5121
5121
|
return f.top = ke(p.top, f.top), f.right = ut(p.right, f.right), f.bottom = ut(p.bottom, f.bottom), f.left = ke(p.left, f.left), f;
|
|
5122
5122
|
}, da(t, i, o));
|
|
@@ -5127,7 +5127,7 @@ function hm(e) {
|
|
|
5127
5127
|
y: l.top
|
|
5128
5128
|
};
|
|
5129
5129
|
}
|
|
5130
|
-
function
|
|
5130
|
+
function bm(e) {
|
|
5131
5131
|
const {
|
|
5132
5132
|
width: t,
|
|
5133
5133
|
height: n
|
|
@@ -5137,7 +5137,7 @@ function mm(e) {
|
|
|
5137
5137
|
height: n
|
|
5138
5138
|
};
|
|
5139
5139
|
}
|
|
5140
|
-
function
|
|
5140
|
+
function vm(e, t, n) {
|
|
5141
5141
|
const r = Ze(t), o = Qe(t), s = n === "fixed", a = yt(e, !0, s, t);
|
|
5142
5142
|
let i = {
|
|
5143
5143
|
scrollLeft: 0,
|
|
@@ -5186,14 +5186,14 @@ function Ci(e, t) {
|
|
|
5186
5186
|
return n;
|
|
5187
5187
|
}
|
|
5188
5188
|
let r = fa(e, t);
|
|
5189
|
-
for (; r &&
|
|
5189
|
+
for (; r && em(r) && Jr(r); )
|
|
5190
5190
|
r = fa(r, t);
|
|
5191
|
-
return r && Bt(r) && Jr(r) && !Go(r) ? n : r ||
|
|
5191
|
+
return r && Bt(r) && Jr(r) && !Go(r) ? n : r || sm(e) || n;
|
|
5192
5192
|
}
|
|
5193
|
-
const
|
|
5193
|
+
const wm = async function(e) {
|
|
5194
5194
|
const t = this.getOffsetParent || Ci, n = this.getDimensions, r = await n(e.floating);
|
|
5195
5195
|
return {
|
|
5196
|
-
reference:
|
|
5196
|
+
reference: vm(e.reference, await t(e.floating), e.strategy),
|
|
5197
5197
|
floating: {
|
|
5198
5198
|
x: 0,
|
|
5199
5199
|
y: 0,
|
|
@@ -5202,25 +5202,25 @@ const bm = async function(e) {
|
|
|
5202
5202
|
}
|
|
5203
5203
|
};
|
|
5204
5204
|
};
|
|
5205
|
-
function
|
|
5205
|
+
function ym(e) {
|
|
5206
5206
|
return We(e).direction === "rtl";
|
|
5207
5207
|
}
|
|
5208
|
-
const
|
|
5209
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
5208
|
+
const xm = {
|
|
5209
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: lm,
|
|
5210
5210
|
getDocumentElement: Qe,
|
|
5211
|
-
getClippingRect:
|
|
5211
|
+
getClippingRect: gm,
|
|
5212
5212
|
getOffsetParent: Ci,
|
|
5213
|
-
getElementRects:
|
|
5214
|
-
getClientRects:
|
|
5215
|
-
getDimensions:
|
|
5213
|
+
getElementRects: wm,
|
|
5214
|
+
getClientRects: um,
|
|
5215
|
+
getDimensions: bm,
|
|
5216
5216
|
getScale: Dt,
|
|
5217
5217
|
isElement: ze,
|
|
5218
|
-
isRTL:
|
|
5218
|
+
isRTL: ym
|
|
5219
5219
|
};
|
|
5220
5220
|
function Ei(e, t) {
|
|
5221
5221
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
5222
5222
|
}
|
|
5223
|
-
function
|
|
5223
|
+
function Sm(e, t) {
|
|
5224
5224
|
let n = null, r;
|
|
5225
5225
|
const o = Qe(e);
|
|
5226
5226
|
function s() {
|
|
@@ -5266,7 +5266,7 @@ function ym(e, t) {
|
|
|
5266
5266
|
}
|
|
5267
5267
|
return a(!0), s;
|
|
5268
5268
|
}
|
|
5269
|
-
function
|
|
5269
|
+
function Cm(e, t, n, r) {
|
|
5270
5270
|
r === void 0 && (r = {});
|
|
5271
5271
|
const {
|
|
5272
5272
|
ancestorScroll: o = !0,
|
|
@@ -5280,7 +5280,7 @@ function xm(e, t, n, r) {
|
|
|
5280
5280
|
passive: !0
|
|
5281
5281
|
}), s && w.addEventListener("resize", n);
|
|
5282
5282
|
});
|
|
5283
|
-
const p = f && i ?
|
|
5283
|
+
const p = f && i ? Sm(f, n) : null;
|
|
5284
5284
|
let m = -1, v = null;
|
|
5285
5285
|
a && (v = new ResizeObserver((w) => {
|
|
5286
5286
|
let [x] = w;
|
|
@@ -5302,21 +5302,21 @@ function xm(e, t, n, r) {
|
|
|
5302
5302
|
}), p == null || p(), (w = v) == null || w.disconnect(), v = null, l && cancelAnimationFrame(g);
|
|
5303
5303
|
};
|
|
5304
5304
|
}
|
|
5305
|
-
const
|
|
5305
|
+
const Em = qh, Nm = Xh, Rm = Vh, Tm = Jh, Am = Kh, pa = jh, Pm = Yh, Im = (e, t, n) => {
|
|
5306
5306
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
5307
|
-
platform:
|
|
5307
|
+
platform: xm,
|
|
5308
5308
|
...n
|
|
5309
5309
|
}, s = {
|
|
5310
5310
|
...o.platform,
|
|
5311
5311
|
_c: r
|
|
5312
5312
|
};
|
|
5313
|
-
return
|
|
5313
|
+
return Wh(e, t, {
|
|
5314
5314
|
...o,
|
|
5315
5315
|
platform: s
|
|
5316
5316
|
});
|
|
5317
5317
|
};
|
|
5318
|
-
var
|
|
5319
|
-
}, Bn =
|
|
5318
|
+
var _m = typeof document < "u", Om = function() {
|
|
5319
|
+
}, Bn = _m ? sd : Om;
|
|
5320
5320
|
function Qn(e, t) {
|
|
5321
5321
|
if (e === t)
|
|
5322
5322
|
return !0;
|
|
@@ -5360,7 +5360,7 @@ function Zr(e) {
|
|
|
5360
5360
|
t.current = e;
|
|
5361
5361
|
}), t;
|
|
5362
5362
|
}
|
|
5363
|
-
function
|
|
5363
|
+
function km(e) {
|
|
5364
5364
|
e === void 0 && (e = {});
|
|
5365
5365
|
const {
|
|
5366
5366
|
placement: t = "bottom",
|
|
@@ -5395,7 +5395,7 @@ function _m(e) {
|
|
|
5395
5395
|
strategy: n,
|
|
5396
5396
|
middleware: m
|
|
5397
5397
|
};
|
|
5398
|
-
K.current && (M.platform = K.current),
|
|
5398
|
+
K.current && (M.platform = K.current), Im(k.current, R.current, M).then((N) => {
|
|
5399
5399
|
const J = {
|
|
5400
5400
|
...N,
|
|
5401
5401
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -5462,7 +5462,7 @@ function _m(e) {
|
|
|
5462
5462
|
floatingStyles: z
|
|
5463
5463
|
}), [d, j, B, I, z]);
|
|
5464
5464
|
}
|
|
5465
|
-
const
|
|
5465
|
+
const Mm = (e) => {
|
|
5466
5466
|
function t(n) {
|
|
5467
5467
|
return {}.hasOwnProperty.call(n, "current");
|
|
5468
5468
|
}
|
|
@@ -5483,29 +5483,29 @@ const Om = (e) => {
|
|
|
5483
5483
|
}).fn(n) : {};
|
|
5484
5484
|
}
|
|
5485
5485
|
};
|
|
5486
|
-
},
|
|
5487
|
-
...
|
|
5488
|
-
options: [e, t]
|
|
5489
|
-
}), Mm = (e, t) => ({
|
|
5490
|
-
...Cm(e),
|
|
5491
|
-
options: [e, t]
|
|
5492
|
-
}), Dm = (e, t) => ({
|
|
5493
|
-
...Tm(e),
|
|
5486
|
+
}, Dm = (e, t) => ({
|
|
5487
|
+
...Em(e),
|
|
5494
5488
|
options: [e, t]
|
|
5495
5489
|
}), Lm = (e, t) => ({
|
|
5496
|
-
...
|
|
5490
|
+
...Nm(e),
|
|
5497
5491
|
options: [e, t]
|
|
5498
5492
|
}), Fm = (e, t) => ({
|
|
5499
|
-
...
|
|
5493
|
+
...Pm(e),
|
|
5500
5494
|
options: [e, t]
|
|
5501
5495
|
}), $m = (e, t) => ({
|
|
5502
5496
|
...Rm(e),
|
|
5503
5497
|
options: [e, t]
|
|
5504
5498
|
}), Bm = (e, t) => ({
|
|
5505
|
-
...
|
|
5499
|
+
...Tm(e),
|
|
5500
|
+
options: [e, t]
|
|
5501
|
+
}), Um = (e, t) => ({
|
|
5502
|
+
...Am(e),
|
|
5503
|
+
options: [e, t]
|
|
5504
|
+
}), Hm = (e, t) => ({
|
|
5505
|
+
...Mm(e),
|
|
5506
5506
|
options: [e, t]
|
|
5507
5507
|
});
|
|
5508
|
-
var
|
|
5508
|
+
var zm = "Arrow", Ri = u.forwardRef((e, t) => {
|
|
5509
5509
|
const { children: n, width: r = 10, height: o = 5, ...s } = e;
|
|
5510
5510
|
return /* @__PURE__ */ c(
|
|
5511
5511
|
Z.svg,
|
|
@@ -5520,8 +5520,8 @@ var Um = "Arrow", Ri = u.forwardRef((e, t) => {
|
|
|
5520
5520
|
}
|
|
5521
5521
|
);
|
|
5522
5522
|
});
|
|
5523
|
-
Ri.displayName =
|
|
5524
|
-
var
|
|
5523
|
+
Ri.displayName = zm;
|
|
5524
|
+
var Wm = Ri;
|
|
5525
5525
|
function Ti(e) {
|
|
5526
5526
|
const [t, n] = u.useState(void 0);
|
|
5527
5527
|
return Ce(() => {
|
|
@@ -5544,9 +5544,9 @@ function Ti(e) {
|
|
|
5544
5544
|
n(void 0);
|
|
5545
5545
|
}, [e]), t;
|
|
5546
5546
|
}
|
|
5547
|
-
var Yo = "Popper", [Ai, Gt] = Ve(Yo), [
|
|
5547
|
+
var Yo = "Popper", [Ai, Gt] = Ve(Yo), [jm, Pi] = Ai(Yo), Ii = (e) => {
|
|
5548
5548
|
const { __scopePopper: t, children: n } = e, [r, o] = u.useState(null);
|
|
5549
|
-
return /* @__PURE__ */ c(
|
|
5549
|
+
return /* @__PURE__ */ c(jm, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
5550
5550
|
};
|
|
5551
5551
|
Ii.displayName = Yo;
|
|
5552
5552
|
var _i = "PopperAnchor", Oi = u.forwardRef(
|
|
@@ -5559,7 +5559,7 @@ var _i = "PopperAnchor", Oi = u.forwardRef(
|
|
|
5559
5559
|
}
|
|
5560
5560
|
);
|
|
5561
5561
|
Oi.displayName = _i;
|
|
5562
|
-
var Jo = "PopperContent", [
|
|
5562
|
+
var Jo = "PopperContent", [Vm, Km] = Ai(Jo), ki = u.forwardRef(
|
|
5563
5563
|
(e, t) => {
|
|
5564
5564
|
var W, ce, ue, ie, le, ne;
|
|
5565
5565
|
const {
|
|
@@ -5579,38 +5579,38 @@ var Jo = "PopperContent", [Wm, jm] = Ai(Jo), ki = u.forwardRef(
|
|
|
5579
5579
|
...h
|
|
5580
5580
|
} = e, b = Pi(Jo, n), [w, x] = u.useState(null), y = ae(t, (Y) => x(Y)), [C, T] = u.useState(null), k = Ti(C), R = (k == null ? void 0 : k.width) ?? 0, L = (k == null ? void 0 : k.height) ?? 0, $ = r + (s !== "center" ? "-" + s : ""), H = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, K = Array.isArray(f) ? f : [f], q = K.length > 0, j = {
|
|
5581
5581
|
padding: H,
|
|
5582
|
-
boundary: K.filter(
|
|
5582
|
+
boundary: K.filter(qm),
|
|
5583
5583
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
5584
5584
|
altBoundary: q
|
|
5585
|
-
}, { refs: P, floatingStyles: B, placement: I, isPositioned: z, middlewareData: M } =
|
|
5585
|
+
}, { refs: P, floatingStyles: B, placement: I, isPositioned: z, middlewareData: M } = km({
|
|
5586
5586
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
5587
5587
|
strategy: "fixed",
|
|
5588
5588
|
placement: $,
|
|
5589
|
-
whileElementsMounted: (...Y) =>
|
|
5589
|
+
whileElementsMounted: (...Y) => Cm(...Y, {
|
|
5590
5590
|
animationFrame: v === "always"
|
|
5591
5591
|
}),
|
|
5592
5592
|
elements: {
|
|
5593
5593
|
reference: b.anchor
|
|
5594
5594
|
},
|
|
5595
5595
|
middleware: [
|
|
5596
|
-
|
|
5597
|
-
l &&
|
|
5596
|
+
Dm({ mainAxis: o + L, alignmentAxis: a }),
|
|
5597
|
+
l && Lm({
|
|
5598
5598
|
mainAxis: !0,
|
|
5599
5599
|
crossAxis: !1,
|
|
5600
|
-
limiter: p === "partial" ?
|
|
5600
|
+
limiter: p === "partial" ? Fm() : void 0,
|
|
5601
5601
|
...j
|
|
5602
5602
|
}),
|
|
5603
|
-
l &&
|
|
5604
|
-
|
|
5603
|
+
l && $m({ ...j }),
|
|
5604
|
+
Bm({
|
|
5605
5605
|
...j,
|
|
5606
5606
|
apply: ({ elements: Y, rects: re, availableWidth: _, availableHeight: D }) => {
|
|
5607
5607
|
const { width: oe, height: ge } = re.reference, ve = Y.floating.style;
|
|
5608
5608
|
ve.setProperty("--radix-popper-available-width", `${_}px`), ve.setProperty("--radix-popper-available-height", `${D}px`), ve.setProperty("--radix-popper-anchor-width", `${oe}px`), ve.setProperty("--radix-popper-anchor-height", `${ge}px`);
|
|
5609
5609
|
}
|
|
5610
5610
|
}),
|
|
5611
|
-
C &&
|
|
5612
|
-
|
|
5613
|
-
m &&
|
|
5611
|
+
C && Hm({ element: C, padding: i }),
|
|
5612
|
+
Xm({ arrowWidth: R, arrowHeight: L }),
|
|
5613
|
+
m && Um({ strategy: "referenceHidden", ...j })
|
|
5614
5614
|
]
|
|
5615
5615
|
}), [N, J] = Li(I), G = Ee(g);
|
|
5616
5616
|
Ce(() => {
|
|
@@ -5644,7 +5644,7 @@ var Jo = "PopperContent", [Wm, jm] = Ai(Jo), ki = u.forwardRef(
|
|
|
5644
5644
|
},
|
|
5645
5645
|
dir: e.dir,
|
|
5646
5646
|
children: /* @__PURE__ */ c(
|
|
5647
|
-
|
|
5647
|
+
Vm,
|
|
5648
5648
|
{
|
|
5649
5649
|
scope: n,
|
|
5650
5650
|
placedSide: N,
|
|
@@ -5674,13 +5674,13 @@ var Jo = "PopperContent", [Wm, jm] = Ai(Jo), ki = u.forwardRef(
|
|
|
5674
5674
|
}
|
|
5675
5675
|
);
|
|
5676
5676
|
ki.displayName = Jo;
|
|
5677
|
-
var Mi = "PopperArrow",
|
|
5677
|
+
var Mi = "PopperArrow", Gm = {
|
|
5678
5678
|
top: "bottom",
|
|
5679
5679
|
right: "left",
|
|
5680
5680
|
bottom: "top",
|
|
5681
5681
|
left: "right"
|
|
5682
5682
|
}, Di = u.forwardRef(function(t, n) {
|
|
5683
|
-
const { __scopePopper: r, ...o } = t, s =
|
|
5683
|
+
const { __scopePopper: r, ...o } = t, s = Km(Mi, r), a = Gm[s.placedSide];
|
|
5684
5684
|
return (
|
|
5685
5685
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
5686
5686
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -5709,7 +5709,7 @@ var Mi = "PopperArrow", Vm = {
|
|
|
5709
5709
|
visibility: s.shouldHideArrow ? "hidden" : void 0
|
|
5710
5710
|
},
|
|
5711
5711
|
children: /* @__PURE__ */ c(
|
|
5712
|
-
|
|
5712
|
+
Wm,
|
|
5713
5713
|
{
|
|
5714
5714
|
...o,
|
|
5715
5715
|
ref: n,
|
|
@@ -5725,10 +5725,10 @@ var Mi = "PopperArrow", Vm = {
|
|
|
5725
5725
|
);
|
|
5726
5726
|
});
|
|
5727
5727
|
Di.displayName = Mi;
|
|
5728
|
-
function
|
|
5728
|
+
function qm(e) {
|
|
5729
5729
|
return e !== null;
|
|
5730
5730
|
}
|
|
5731
|
-
var
|
|
5731
|
+
var Xm = (e) => ({
|
|
5732
5732
|
name: "transformOrigin",
|
|
5733
5733
|
options: e,
|
|
5734
5734
|
fn(t) {
|
|
@@ -5742,22 +5742,22 @@ function Li(e) {
|
|
|
5742
5742
|
const [t, n = "center"] = e.split("-");
|
|
5743
5743
|
return [t, n];
|
|
5744
5744
|
}
|
|
5745
|
-
var Zo = Ii, Qo = Oi, es = ki, ts = Di,
|
|
5745
|
+
var Zo = Ii, Qo = Oi, es = ki, ts = Di, Ym = "Portal", wr = u.forwardRef((e, t) => {
|
|
5746
5746
|
var i;
|
|
5747
5747
|
const { container: n, ...r } = e, [o, s] = u.useState(!1);
|
|
5748
5748
|
Ce(() => s(!0), []);
|
|
5749
5749
|
const a = n || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
|
|
5750
5750
|
return a ? _d.createPortal(/* @__PURE__ */ c(Z.div, { ...r, ref: t }), a) : null;
|
|
5751
5751
|
});
|
|
5752
|
-
wr.displayName =
|
|
5753
|
-
var Qr = "rovingFocusGroup.onEntryFocus",
|
|
5752
|
+
wr.displayName = Ym;
|
|
5753
|
+
var Qr = "rovingFocusGroup.onEntryFocus", Jm = { bubbles: !1, cancelable: !0 }, bn = "RovingFocusGroup", [vo, Fi, Zm] = zo(bn), [Qm, $i] = Ve(
|
|
5754
5754
|
bn,
|
|
5755
|
-
[
|
|
5756
|
-
), [
|
|
5757
|
-
(e, t) => /* @__PURE__ */ c(vo.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(vo.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(
|
|
5755
|
+
[Zm]
|
|
5756
|
+
), [eg, tg] = Qm(bn), Bi = u.forwardRef(
|
|
5757
|
+
(e, t) => /* @__PURE__ */ c(vo.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(vo.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(ng, { ...e, ref: t }) }) })
|
|
5758
5758
|
);
|
|
5759
5759
|
Bi.displayName = bn;
|
|
5760
|
-
var
|
|
5760
|
+
var ng = u.forwardRef((e, t) => {
|
|
5761
5761
|
const {
|
|
5762
5762
|
__scopeRovingFocusGroup: n,
|
|
5763
5763
|
orientation: r,
|
|
@@ -5780,7 +5780,7 @@ var eg = u.forwardRef((e, t) => {
|
|
|
5780
5780
|
if (L)
|
|
5781
5781
|
return L.addEventListener(Qr, y), () => L.removeEventListener(Qr, y);
|
|
5782
5782
|
}, [y]), /* @__PURE__ */ c(
|
|
5783
|
-
|
|
5783
|
+
eg,
|
|
5784
5784
|
{
|
|
5785
5785
|
scope: n,
|
|
5786
5786
|
orientation: r,
|
|
@@ -5814,7 +5814,7 @@ var eg = u.forwardRef((e, t) => {
|
|
|
5814
5814
|
onFocus: U(e.onFocus, (L) => {
|
|
5815
5815
|
const $ = !T.current;
|
|
5816
5816
|
if (L.target === L.currentTarget && $ && !w) {
|
|
5817
|
-
const H = new CustomEvent(Qr,
|
|
5817
|
+
const H = new CustomEvent(Qr, Jm);
|
|
5818
5818
|
if (L.currentTarget.dispatchEvent(H), !H.defaultPrevented) {
|
|
5819
5819
|
const K = C().filter((I) => I.focusable), q = K.find((I) => I.active), j = K.find((I) => I.id === h), B = [q, j, ...K].filter(
|
|
5820
5820
|
Boolean
|
|
@@ -5838,7 +5838,7 @@ var eg = u.forwardRef((e, t) => {
|
|
|
5838
5838
|
tabStopId: s,
|
|
5839
5839
|
children: a,
|
|
5840
5840
|
...i
|
|
5841
|
-
} = e, l = He(), f = s || l, d =
|
|
5841
|
+
} = e, l = He(), f = s || l, d = tg(Ui, n), p = d.currentTabStopId === f, m = Fi(n), { onFocusableItemAdd: v, onFocusableItemRemove: g, currentTabStopId: h } = d;
|
|
5842
5842
|
return u.useEffect(() => {
|
|
5843
5843
|
if (r)
|
|
5844
5844
|
return v(), () => g();
|
|
@@ -5866,7 +5866,7 @@ var eg = u.forwardRef((e, t) => {
|
|
|
5866
5866
|
return;
|
|
5867
5867
|
}
|
|
5868
5868
|
if (b.target !== b.currentTarget) return;
|
|
5869
|
-
const w =
|
|
5869
|
+
const w = sg(b, d.orientation, d.dir);
|
|
5870
5870
|
if (w !== void 0) {
|
|
5871
5871
|
if (b.metaKey || b.ctrlKey || b.altKey || b.shiftKey) return;
|
|
5872
5872
|
b.preventDefault();
|
|
@@ -5875,7 +5875,7 @@ var eg = u.forwardRef((e, t) => {
|
|
|
5875
5875
|
else if (w === "prev" || w === "next") {
|
|
5876
5876
|
w === "prev" && y.reverse();
|
|
5877
5877
|
const C = y.indexOf(b.currentTarget);
|
|
5878
|
-
y = d.loop ?
|
|
5878
|
+
y = d.loop ? ag(y, C + 1) : y.slice(C + 1);
|
|
5879
5879
|
}
|
|
5880
5880
|
setTimeout(() => zi(y));
|
|
5881
5881
|
}
|
|
@@ -5888,7 +5888,7 @@ var eg = u.forwardRef((e, t) => {
|
|
|
5888
5888
|
}
|
|
5889
5889
|
);
|
|
5890
5890
|
Hi.displayName = Ui;
|
|
5891
|
-
var
|
|
5891
|
+
var rg = {
|
|
5892
5892
|
ArrowLeft: "prev",
|
|
5893
5893
|
ArrowUp: "prev",
|
|
5894
5894
|
ArrowRight: "next",
|
|
@@ -5898,30 +5898,30 @@ var tg = {
|
|
|
5898
5898
|
PageDown: "last",
|
|
5899
5899
|
End: "last"
|
|
5900
5900
|
};
|
|
5901
|
-
function
|
|
5901
|
+
function og(e, t) {
|
|
5902
5902
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
5903
5903
|
}
|
|
5904
|
-
function
|
|
5905
|
-
const r =
|
|
5904
|
+
function sg(e, t, n) {
|
|
5905
|
+
const r = og(e.key, n);
|
|
5906
5906
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
5907
|
-
return
|
|
5907
|
+
return rg[r];
|
|
5908
5908
|
}
|
|
5909
5909
|
function zi(e, t = !1) {
|
|
5910
5910
|
const n = document.activeElement;
|
|
5911
5911
|
for (const r of e)
|
|
5912
5912
|
if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
5913
5913
|
}
|
|
5914
|
-
function
|
|
5914
|
+
function ag(e, t) {
|
|
5915
5915
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
5916
5916
|
}
|
|
5917
|
-
var
|
|
5917
|
+
var ig = Bi, cg = Hi, lg = function(e) {
|
|
5918
5918
|
if (typeof document > "u")
|
|
5919
5919
|
return null;
|
|
5920
5920
|
var t = Array.isArray(e) ? e[0] : e;
|
|
5921
5921
|
return t.ownerDocument.body;
|
|
5922
5922
|
}, It = /* @__PURE__ */ new WeakMap(), An = /* @__PURE__ */ new WeakMap(), Pn = {}, eo = 0, Wi = function(e) {
|
|
5923
5923
|
return e && (e.host || Wi(e.parentNode));
|
|
5924
|
-
},
|
|
5924
|
+
}, ug = function(e, t) {
|
|
5925
5925
|
return t.map(function(n) {
|
|
5926
5926
|
if (e.contains(n))
|
|
5927
5927
|
return n;
|
|
@@ -5930,8 +5930,8 @@ var sg = Bi, ag = Hi, ig = function(e) {
|
|
|
5930
5930
|
}).filter(function(n) {
|
|
5931
5931
|
return !!n;
|
|
5932
5932
|
});
|
|
5933
|
-
},
|
|
5934
|
-
var o =
|
|
5933
|
+
}, dg = function(e, t, n, r) {
|
|
5934
|
+
var o = ug(t, Array.isArray(e) ? e : [e]);
|
|
5935
5935
|
Pn[n] || (Pn[n] = /* @__PURE__ */ new WeakMap());
|
|
5936
5936
|
var s = Pn[n], a = [], i = /* @__PURE__ */ new Set(), l = new Set(o), f = function(p) {
|
|
5937
5937
|
!p || i.has(p) || (i.add(p), f(p.parentNode));
|
|
@@ -5958,8 +5958,8 @@ var sg = Bi, ag = Hi, ig = function(e) {
|
|
|
5958
5958
|
};
|
|
5959
5959
|
}, ns = function(e, t, n) {
|
|
5960
5960
|
n === void 0 && (n = "data-aria-hidden");
|
|
5961
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
5962
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))),
|
|
5961
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), o = lg(e);
|
|
5962
|
+
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), dg(r, o, n, "aria-hidden")) : function() {
|
|
5963
5963
|
return null;
|
|
5964
5964
|
};
|
|
5965
5965
|
}, Xe = function() {
|
|
@@ -5979,16 +5979,16 @@ function ji(e, t) {
|
|
|
5979
5979
|
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
5980
5980
|
return n;
|
|
5981
5981
|
}
|
|
5982
|
-
function
|
|
5982
|
+
function fg(e, t, n) {
|
|
5983
5983
|
if (n || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
|
|
5984
5984
|
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
5985
5985
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
5986
5986
|
}
|
|
5987
|
-
var Un = "right-scroll-bar-position", Hn = "width-before-scroll-bar",
|
|
5987
|
+
var Un = "right-scroll-bar-position", Hn = "width-before-scroll-bar", pg = "with-scroll-bars-hidden", hg = "--removed-body-scroll-bar-size";
|
|
5988
5988
|
function to(e, t) {
|
|
5989
5989
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
5990
5990
|
}
|
|
5991
|
-
function
|
|
5991
|
+
function mg(e, t) {
|
|
5992
5992
|
var n = Q(function() {
|
|
5993
5993
|
return {
|
|
5994
5994
|
// value
|
|
@@ -6009,14 +6009,14 @@ function pg(e, t) {
|
|
|
6009
6009
|
})[0];
|
|
6010
6010
|
return n.callback = t, n.facade;
|
|
6011
6011
|
}
|
|
6012
|
-
var
|
|
6013
|
-
function
|
|
6014
|
-
var n =
|
|
6012
|
+
var gg = typeof window < "u" ? u.useLayoutEffect : u.useEffect, ma = /* @__PURE__ */ new WeakMap();
|
|
6013
|
+
function bg(e, t) {
|
|
6014
|
+
var n = mg(null, function(r) {
|
|
6015
6015
|
return e.forEach(function(o) {
|
|
6016
6016
|
return to(o, r);
|
|
6017
6017
|
});
|
|
6018
6018
|
});
|
|
6019
|
-
return
|
|
6019
|
+
return gg(function() {
|
|
6020
6020
|
var r = ma.get(n);
|
|
6021
6021
|
if (r) {
|
|
6022
6022
|
var o = new Set(r), s = new Set(e), a = n.current;
|
|
@@ -6029,11 +6029,11 @@ function mg(e, t) {
|
|
|
6029
6029
|
ma.set(n, e);
|
|
6030
6030
|
}, [e]), n;
|
|
6031
6031
|
}
|
|
6032
|
-
function
|
|
6032
|
+
function vg(e) {
|
|
6033
6033
|
return e;
|
|
6034
6034
|
}
|
|
6035
|
-
function
|
|
6036
|
-
t === void 0 && (t =
|
|
6035
|
+
function wg(e, t) {
|
|
6036
|
+
t === void 0 && (t = vg);
|
|
6037
6037
|
var n = [], r = !1, o = {
|
|
6038
6038
|
read: function() {
|
|
6039
6039
|
if (r)
|
|
@@ -6087,9 +6087,9 @@ function bg(e, t) {
|
|
|
6087
6087
|
};
|
|
6088
6088
|
return o;
|
|
6089
6089
|
}
|
|
6090
|
-
function
|
|
6090
|
+
function yg(e) {
|
|
6091
6091
|
e === void 0 && (e = {});
|
|
6092
|
-
var t =
|
|
6092
|
+
var t = wg(null);
|
|
6093
6093
|
return t.options = Xe({ async: !0, ssr: !1 }, e), t;
|
|
6094
6094
|
}
|
|
6095
6095
|
var Vi = function(e) {
|
|
@@ -6102,16 +6102,16 @@ var Vi = function(e) {
|
|
|
6102
6102
|
return u.createElement(r, Xe({}, n));
|
|
6103
6103
|
};
|
|
6104
6104
|
Vi.isSideCarExport = !0;
|
|
6105
|
-
function
|
|
6105
|
+
function xg(e, t) {
|
|
6106
6106
|
return e.useMedium(t), Vi;
|
|
6107
6107
|
}
|
|
6108
|
-
var Ki =
|
|
6108
|
+
var Ki = yg(), no = function() {
|
|
6109
6109
|
}, yr = u.forwardRef(function(e, t) {
|
|
6110
6110
|
var n = u.useRef(null), r = u.useState({
|
|
6111
6111
|
onScrollCapture: no,
|
|
6112
6112
|
onWheelCapture: no,
|
|
6113
6113
|
onTouchMoveCapture: no
|
|
6114
|
-
}), o = r[0], s = r[1], a = e.forwardProps, i = e.children, l = e.className, f = e.removeScrollBar, d = e.enabled, p = e.shards, m = e.sideCar, v = e.noRelative, g = e.noIsolation, h = e.inert, b = e.allowPinchZoom, w = e.as, x = w === void 0 ? "div" : w, y = e.gapMode, C = ji(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), T = m, k =
|
|
6114
|
+
}), o = r[0], s = r[1], a = e.forwardProps, i = e.children, l = e.className, f = e.removeScrollBar, d = e.enabled, p = e.shards, m = e.sideCar, v = e.noRelative, g = e.noIsolation, h = e.inert, b = e.allowPinchZoom, w = e.as, x = w === void 0 ? "div" : w, y = e.gapMode, C = ji(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), T = m, k = bg([n, t]), R = Xe(Xe({}, C), o);
|
|
6115
6115
|
return u.createElement(
|
|
6116
6116
|
u.Fragment,
|
|
6117
6117
|
null,
|
|
@@ -6128,37 +6128,37 @@ yr.classNames = {
|
|
|
6128
6128
|
fullWidth: Hn,
|
|
6129
6129
|
zeroRight: Un
|
|
6130
6130
|
};
|
|
6131
|
-
var
|
|
6131
|
+
var Sg = function() {
|
|
6132
6132
|
if (typeof __webpack_nonce__ < "u")
|
|
6133
6133
|
return __webpack_nonce__;
|
|
6134
6134
|
};
|
|
6135
|
-
function
|
|
6135
|
+
function Cg() {
|
|
6136
6136
|
if (!document)
|
|
6137
6137
|
return null;
|
|
6138
6138
|
var e = document.createElement("style");
|
|
6139
6139
|
e.type = "text/css";
|
|
6140
|
-
var t =
|
|
6140
|
+
var t = Sg();
|
|
6141
6141
|
return t && e.setAttribute("nonce", t), e;
|
|
6142
6142
|
}
|
|
6143
|
-
function
|
|
6143
|
+
function Eg(e, t) {
|
|
6144
6144
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
6145
6145
|
}
|
|
6146
|
-
function
|
|
6146
|
+
function Ng(e) {
|
|
6147
6147
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
6148
6148
|
t.appendChild(e);
|
|
6149
6149
|
}
|
|
6150
|
-
var
|
|
6150
|
+
var Rg = function() {
|
|
6151
6151
|
var e = 0, t = null;
|
|
6152
6152
|
return {
|
|
6153
6153
|
add: function(n) {
|
|
6154
|
-
e == 0 && (t =
|
|
6154
|
+
e == 0 && (t = Cg()) && (Eg(t, n), Ng(t)), e++;
|
|
6155
6155
|
},
|
|
6156
6156
|
remove: function() {
|
|
6157
6157
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
6158
6158
|
}
|
|
6159
6159
|
};
|
|
6160
|
-
},
|
|
6161
|
-
var e =
|
|
6160
|
+
}, Tg = function() {
|
|
6161
|
+
var e = Rg();
|
|
6162
6162
|
return function(t, n) {
|
|
6163
6163
|
u.useEffect(function() {
|
|
6164
6164
|
return e.add(t), function() {
|
|
@@ -6167,35 +6167,35 @@ var Eg = function() {
|
|
|
6167
6167
|
}, [t && n]);
|
|
6168
6168
|
};
|
|
6169
6169
|
}, Gi = function() {
|
|
6170
|
-
var e =
|
|
6170
|
+
var e = Tg(), t = function(n) {
|
|
6171
6171
|
var r = n.styles, o = n.dynamic;
|
|
6172
6172
|
return e(r, o), null;
|
|
6173
6173
|
};
|
|
6174
6174
|
return t;
|
|
6175
|
-
},
|
|
6175
|
+
}, Ag = {
|
|
6176
6176
|
left: 0,
|
|
6177
6177
|
top: 0,
|
|
6178
6178
|
right: 0,
|
|
6179
6179
|
gap: 0
|
|
6180
6180
|
}, ro = function(e) {
|
|
6181
6181
|
return parseInt(e || "", 10) || 0;
|
|
6182
|
-
},
|
|
6182
|
+
}, Pg = function(e) {
|
|
6183
6183
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
6184
6184
|
return [ro(n), ro(r), ro(o)];
|
|
6185
|
-
},
|
|
6185
|
+
}, Ig = function(e) {
|
|
6186
6186
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
6187
|
-
return
|
|
6188
|
-
var t =
|
|
6187
|
+
return Ag;
|
|
6188
|
+
var t = Pg(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
6189
6189
|
return {
|
|
6190
6190
|
left: t[0],
|
|
6191
6191
|
top: t[1],
|
|
6192
6192
|
right: t[2],
|
|
6193
6193
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
6194
6194
|
};
|
|
6195
|
-
},
|
|
6195
|
+
}, _g = Gi(), Lt = "data-scroll-locked", Og = function(e, t, n, r) {
|
|
6196
6196
|
var o = e.left, s = e.top, a = e.right, i = e.gap;
|
|
6197
6197
|
return n === void 0 && (n = "margin"), `
|
|
6198
|
-
.`.concat(
|
|
6198
|
+
.`.concat(pg, ` {
|
|
6199
6199
|
overflow: hidden `).concat(r, `;
|
|
6200
6200
|
padding-right: `).concat(i, "px ").concat(r, `;
|
|
6201
6201
|
}
|
|
@@ -6233,26 +6233,26 @@ var Eg = function() {
|
|
|
6233
6233
|
}
|
|
6234
6234
|
|
|
6235
6235
|
body[`).concat(Lt, `] {
|
|
6236
|
-
`).concat(
|
|
6236
|
+
`).concat(hg, ": ").concat(i, `px;
|
|
6237
6237
|
}
|
|
6238
6238
|
`);
|
|
6239
6239
|
}, ga = function() {
|
|
6240
6240
|
var e = parseInt(document.body.getAttribute(Lt) || "0", 10);
|
|
6241
6241
|
return isFinite(e) ? e : 0;
|
|
6242
|
-
},
|
|
6242
|
+
}, kg = function() {
|
|
6243
6243
|
u.useEffect(function() {
|
|
6244
6244
|
return document.body.setAttribute(Lt, (ga() + 1).toString()), function() {
|
|
6245
6245
|
var e = ga() - 1;
|
|
6246
6246
|
e <= 0 ? document.body.removeAttribute(Lt) : document.body.setAttribute(Lt, e.toString());
|
|
6247
6247
|
};
|
|
6248
6248
|
}, []);
|
|
6249
|
-
},
|
|
6249
|
+
}, Mg = function(e) {
|
|
6250
6250
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
6251
|
-
|
|
6251
|
+
kg();
|
|
6252
6252
|
var s = u.useMemo(function() {
|
|
6253
|
-
return
|
|
6253
|
+
return Ig(o);
|
|
6254
6254
|
}, [o]);
|
|
6255
|
-
return u.createElement(
|
|
6255
|
+
return u.createElement(_g, { styles: Og(s, !t, o, n ? "" : "!important") });
|
|
6256
6256
|
}, wo = !1;
|
|
6257
6257
|
if (typeof window < "u")
|
|
6258
6258
|
try {
|
|
@@ -6265,7 +6265,7 @@ if (typeof window < "u")
|
|
|
6265
6265
|
} catch {
|
|
6266
6266
|
wo = !1;
|
|
6267
6267
|
}
|
|
6268
|
-
var _t = wo ? { passive: !1 } : !1,
|
|
6268
|
+
var _t = wo ? { passive: !1 } : !1, Dg = function(e) {
|
|
6269
6269
|
return e.tagName === "TEXTAREA";
|
|
6270
6270
|
}, qi = function(e, t) {
|
|
6271
6271
|
if (!(e instanceof Element))
|
|
@@ -6274,11 +6274,11 @@ var _t = wo ? { passive: !1 } : !1, kg = function(e) {
|
|
|
6274
6274
|
return (
|
|
6275
6275
|
// not-not-scrollable
|
|
6276
6276
|
n[t] !== "hidden" && // contains scroll inside self
|
|
6277
|
-
!(n.overflowY === n.overflowX && !
|
|
6277
|
+
!(n.overflowY === n.overflowX && !Dg(e) && n[t] === "visible")
|
|
6278
6278
|
);
|
|
6279
|
-
},
|
|
6279
|
+
}, Lg = function(e) {
|
|
6280
6280
|
return qi(e, "overflowY");
|
|
6281
|
-
},
|
|
6281
|
+
}, Fg = function(e) {
|
|
6282
6282
|
return qi(e, "overflowX");
|
|
6283
6283
|
}, ba = function(e, t) {
|
|
6284
6284
|
var n = t.ownerDocument, r = t;
|
|
@@ -6293,14 +6293,14 @@ var _t = wo ? { passive: !1 } : !1, kg = function(e) {
|
|
|
6293
6293
|
r = r.parentNode;
|
|
6294
6294
|
} while (r && r !== n.body);
|
|
6295
6295
|
return !1;
|
|
6296
|
-
},
|
|
6296
|
+
}, $g = function(e) {
|
|
6297
6297
|
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
6298
6298
|
return [
|
|
6299
6299
|
t,
|
|
6300
6300
|
n,
|
|
6301
6301
|
r
|
|
6302
6302
|
];
|
|
6303
|
-
},
|
|
6303
|
+
}, Bg = function(e) {
|
|
6304
6304
|
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
6305
6305
|
return [
|
|
6306
6306
|
t,
|
|
@@ -6308,13 +6308,13 @@ var _t = wo ? { passive: !1 } : !1, kg = function(e) {
|
|
|
6308
6308
|
r
|
|
6309
6309
|
];
|
|
6310
6310
|
}, Xi = function(e, t) {
|
|
6311
|
-
return e === "v" ? Mg(t) : Dg(t);
|
|
6312
|
-
}, Yi = function(e, t) {
|
|
6313
6311
|
return e === "v" ? Lg(t) : Fg(t);
|
|
6314
|
-
},
|
|
6312
|
+
}, Yi = function(e, t) {
|
|
6313
|
+
return e === "v" ? $g(t) : Bg(t);
|
|
6314
|
+
}, Ug = function(e, t) {
|
|
6315
6315
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
6316
|
-
},
|
|
6317
|
-
var s =
|
|
6316
|
+
}, Hg = function(e, t, n, r, o) {
|
|
6317
|
+
var s = Ug(e, window.getComputedStyle(t).direction), a = s * r, i = n.target, l = t.contains(i), f = !1, d = a > 0, p = 0, m = 0;
|
|
6318
6318
|
do {
|
|
6319
6319
|
if (!i)
|
|
6320
6320
|
break;
|
|
@@ -6334,22 +6334,22 @@ var _t = wo ? { passive: !1 } : !1, kg = function(e) {
|
|
|
6334
6334
|
return [e.deltaX, e.deltaY];
|
|
6335
6335
|
}, wa = function(e) {
|
|
6336
6336
|
return e && "current" in e ? e.current : e;
|
|
6337
|
-
},
|
|
6337
|
+
}, zg = function(e, t) {
|
|
6338
6338
|
return e[0] === t[0] && e[1] === t[1];
|
|
6339
|
-
},
|
|
6339
|
+
}, Wg = function(e) {
|
|
6340
6340
|
return `
|
|
6341
6341
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
6342
6342
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
6343
6343
|
`);
|
|
6344
|
-
},
|
|
6345
|
-
function
|
|
6346
|
-
var t = u.useRef([]), n = u.useRef([0, 0]), r = u.useRef(), o = u.useState(
|
|
6344
|
+
}, jg = 0, Ot = [];
|
|
6345
|
+
function Vg(e) {
|
|
6346
|
+
var t = u.useRef([]), n = u.useRef([0, 0]), r = u.useRef(), o = u.useState(jg++)[0], s = u.useState(Gi)[0], a = u.useRef(e);
|
|
6347
6347
|
u.useEffect(function() {
|
|
6348
6348
|
a.current = e;
|
|
6349
6349
|
}, [e]), u.useEffect(function() {
|
|
6350
6350
|
if (e.inert) {
|
|
6351
6351
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
6352
|
-
var h =
|
|
6352
|
+
var h = fg([e.lockRef.current], (e.shards || []).map(wa), !0).filter(Boolean);
|
|
6353
6353
|
return h.forEach(function(b) {
|
|
6354
6354
|
return b.classList.add("allow-interactivity-".concat(o));
|
|
6355
6355
|
}), function() {
|
|
@@ -6373,12 +6373,12 @@ function Wg(e) {
|
|
|
6373
6373
|
if (!r.current && "changedTouches" in h && (y || C) && (r.current = T), !T)
|
|
6374
6374
|
return !0;
|
|
6375
6375
|
var $ = r.current || T;
|
|
6376
|
-
return
|
|
6376
|
+
return Hg($, b, h, $ === "h" ? y : C);
|
|
6377
6377
|
}, []), l = u.useCallback(function(h) {
|
|
6378
6378
|
var b = h;
|
|
6379
6379
|
if (!(!Ot.length || Ot[Ot.length - 1] !== s)) {
|
|
6380
6380
|
var w = "deltaY" in b ? va(b) : _n(b), x = t.current.filter(function(T) {
|
|
6381
|
-
return T.name === b.type && (T.target === b.target || b.target === T.shadowParent) &&
|
|
6381
|
+
return T.name === b.type && (T.target === b.target || b.target === T.shadowParent) && zg(T.delta, w);
|
|
6382
6382
|
})[0];
|
|
6383
6383
|
if (x && x.should) {
|
|
6384
6384
|
b.cancelable && b.preventDefault();
|
|
@@ -6392,7 +6392,7 @@ function Wg(e) {
|
|
|
6392
6392
|
}
|
|
6393
6393
|
}
|
|
6394
6394
|
}, []), f = u.useCallback(function(h, b, w, x) {
|
|
6395
|
-
var y = { name: h, delta: b, target: w, should: x, shadowParent:
|
|
6395
|
+
var y = { name: h, delta: b, target: w, should: x, shadowParent: Kg(w) };
|
|
6396
6396
|
t.current.push(y), setTimeout(function() {
|
|
6397
6397
|
t.current = t.current.filter(function(C) {
|
|
6398
6398
|
return C !== y;
|
|
@@ -6420,31 +6420,31 @@ function Wg(e) {
|
|
|
6420
6420
|
return u.createElement(
|
|
6421
6421
|
u.Fragment,
|
|
6422
6422
|
null,
|
|
6423
|
-
g ? u.createElement(s, { styles:
|
|
6424
|
-
v ? u.createElement(
|
|
6423
|
+
g ? u.createElement(s, { styles: Wg(o) }) : null,
|
|
6424
|
+
v ? u.createElement(Mg, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
6425
6425
|
);
|
|
6426
6426
|
}
|
|
6427
|
-
function
|
|
6427
|
+
function Kg(e) {
|
|
6428
6428
|
for (var t = null; e !== null; )
|
|
6429
6429
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
6430
6430
|
return t;
|
|
6431
6431
|
}
|
|
6432
|
-
const
|
|
6432
|
+
const Gg = xg(Ki, Vg);
|
|
6433
6433
|
var xr = u.forwardRef(function(e, t) {
|
|
6434
|
-
return u.createElement(yr, Xe({}, e, { ref: t, sideCar:
|
|
6434
|
+
return u.createElement(yr, Xe({}, e, { ref: t, sideCar: Gg }));
|
|
6435
6435
|
});
|
|
6436
6436
|
xr.classNames = yr.classNames;
|
|
6437
|
-
var yo = ["Enter", " "],
|
|
6437
|
+
var yo = ["Enter", " "], qg = ["ArrowDown", "PageUp", "Home"], Ji = ["ArrowUp", "PageDown", "End"], Xg = [...qg, ...Ji], Yg = {
|
|
6438
6438
|
ltr: [...yo, "ArrowRight"],
|
|
6439
6439
|
rtl: [...yo, "ArrowLeft"]
|
|
6440
|
-
},
|
|
6440
|
+
}, Jg = {
|
|
6441
6441
|
ltr: ["ArrowLeft"],
|
|
6442
6442
|
rtl: ["ArrowRight"]
|
|
6443
|
-
}, vn = "Menu", [sn,
|
|
6444
|
-
|
|
6443
|
+
}, vn = "Menu", [sn, Zg, Qg] = zo(vn), [Et, Zi] = Ve(vn, [
|
|
6444
|
+
Qg,
|
|
6445
6445
|
Gt,
|
|
6446
6446
|
$i
|
|
6447
|
-
]), Sr = Gt(), Qi = $i(), [
|
|
6447
|
+
]), Sr = Gt(), Qi = $i(), [eb, Nt] = Et(vn), [tb, wn] = Et(vn), ec = (e) => {
|
|
6448
6448
|
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: a = !0 } = e, i = Sr(t), [l, f] = u.useState(null), d = u.useRef(!1), p = Ee(s), m = pr(o);
|
|
6449
6449
|
return u.useEffect(() => {
|
|
6450
6450
|
const v = () => {
|
|
@@ -6454,7 +6454,7 @@ var yo = ["Enter", " "], Kg = ["ArrowDown", "PageUp", "Home"], Ji = ["ArrowUp",
|
|
|
6454
6454
|
document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", g, { capture: !0 }), document.removeEventListener("pointermove", g, { capture: !0 });
|
|
6455
6455
|
};
|
|
6456
6456
|
}, []), /* @__PURE__ */ c(Zo, { ...i, children: /* @__PURE__ */ c(
|
|
6457
|
-
|
|
6457
|
+
eb,
|
|
6458
6458
|
{
|
|
6459
6459
|
scope: t,
|
|
6460
6460
|
open: n,
|
|
@@ -6462,7 +6462,7 @@ var yo = ["Enter", " "], Kg = ["ArrowDown", "PageUp", "Home"], Ji = ["ArrowUp",
|
|
|
6462
6462
|
content: l,
|
|
6463
6463
|
onContentChange: f,
|
|
6464
6464
|
children: /* @__PURE__ */ c(
|
|
6465
|
-
|
|
6465
|
+
tb,
|
|
6466
6466
|
{
|
|
6467
6467
|
scope: t,
|
|
6468
6468
|
onClose: u.useCallback(() => p(!1), [p]),
|
|
@@ -6476,26 +6476,26 @@ var yo = ["Enter", " "], Kg = ["ArrowDown", "PageUp", "Home"], Ji = ["ArrowUp",
|
|
|
6476
6476
|
) });
|
|
6477
6477
|
};
|
|
6478
6478
|
ec.displayName = vn;
|
|
6479
|
-
var
|
|
6479
|
+
var nb = "MenuAnchor", rs = u.forwardRef(
|
|
6480
6480
|
(e, t) => {
|
|
6481
6481
|
const { __scopeMenu: n, ...r } = e, o = Sr(n);
|
|
6482
6482
|
return /* @__PURE__ */ c(Qo, { ...o, ...r, ref: t });
|
|
6483
6483
|
}
|
|
6484
6484
|
);
|
|
6485
|
-
rs.displayName =
|
|
6486
|
-
var os = "MenuPortal", [
|
|
6485
|
+
rs.displayName = nb;
|
|
6486
|
+
var os = "MenuPortal", [rb, tc] = Et(os, {
|
|
6487
6487
|
forceMount: void 0
|
|
6488
6488
|
}), nc = (e) => {
|
|
6489
6489
|
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = Nt(os, t);
|
|
6490
|
-
return /* @__PURE__ */ c(
|
|
6490
|
+
return /* @__PURE__ */ c(rb, { scope: t, forceMount: n, children: /* @__PURE__ */ c(Oe, { present: n || s.open, children: /* @__PURE__ */ c(wr, { asChild: !0, container: o, children: r }) }) });
|
|
6491
6491
|
};
|
|
6492
6492
|
nc.displayName = os;
|
|
6493
|
-
var Le = "MenuContent", [
|
|
6493
|
+
var Le = "MenuContent", [ob, ss] = Et(Le), rc = u.forwardRef(
|
|
6494
6494
|
(e, t) => {
|
|
6495
6495
|
const n = tc(Le, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Nt(Le, e.__scopeMenu), a = wn(Le, e.__scopeMenu);
|
|
6496
|
-
return /* @__PURE__ */ c(sn.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ c(Oe, { present: r || s.open, children: /* @__PURE__ */ c(sn.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ c(
|
|
6496
|
+
return /* @__PURE__ */ c(sn.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ c(Oe, { present: r || s.open, children: /* @__PURE__ */ c(sn.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ c(sb, { ...o, ref: t }) : /* @__PURE__ */ c(ab, { ...o, ref: t }) }) }) });
|
|
6497
6497
|
}
|
|
6498
|
-
),
|
|
6498
|
+
), sb = u.forwardRef(
|
|
6499
6499
|
(e, t) => {
|
|
6500
6500
|
const n = Nt(Le, e.__scopeMenu), r = u.useRef(null), o = ae(t, r);
|
|
6501
6501
|
return u.useEffect(() => {
|
|
@@ -6518,7 +6518,7 @@ var Le = "MenuContent", [nb, ss] = Et(Le), rc = u.forwardRef(
|
|
|
6518
6518
|
}
|
|
6519
6519
|
);
|
|
6520
6520
|
}
|
|
6521
|
-
),
|
|
6521
|
+
), ab = u.forwardRef((e, t) => {
|
|
6522
6522
|
const n = Nt(Le, e.__scopeMenu);
|
|
6523
6523
|
return /* @__PURE__ */ c(
|
|
6524
6524
|
as,
|
|
@@ -6531,7 +6531,7 @@ var Le = "MenuContent", [nb, ss] = Et(Le), rc = u.forwardRef(
|
|
|
6531
6531
|
onDismiss: () => n.onOpenChange(!1)
|
|
6532
6532
|
}
|
|
6533
6533
|
);
|
|
6534
|
-
}),
|
|
6534
|
+
}), ib = Ft("MenuContent.ScrollLock"), as = u.forwardRef(
|
|
6535
6535
|
(e, t) => {
|
|
6536
6536
|
const {
|
|
6537
6537
|
__scopeMenu: n,
|
|
@@ -6548,9 +6548,9 @@ var Le = "MenuContent", [nb, ss] = Et(Le), rc = u.forwardRef(
|
|
|
6548
6548
|
onDismiss: v,
|
|
6549
6549
|
disableOutsideScroll: g,
|
|
6550
6550
|
...h
|
|
6551
|
-
} = e, b = Nt(Le, n), w = wn(Le, n), x = Sr(n), y = Qi(n), C =
|
|
6551
|
+
} = e, b = Nt(Le, n), w = wn(Le, n), x = Sr(n), y = Qi(n), C = Zg(n), [T, k] = u.useState(null), R = u.useRef(null), L = ae(t, R, b.onContentChange), $ = u.useRef(0), H = u.useRef(""), K = u.useRef(0), q = u.useRef(null), j = u.useRef("right"), P = u.useRef(0), B = g ? xr : u.Fragment, I = g ? { as: ib, allowPinchZoom: !0 } : void 0, z = (N) => {
|
|
6552
6552
|
var W, ce;
|
|
6553
|
-
const J = H.current + N, G = C().filter((ue) => !ue.disabled), te = document.activeElement, F = (W = G.find((ue) => ue.ref.current === te)) == null ? void 0 : W.textValue, V = G.map((ue) => ue.textValue), se =
|
|
6553
|
+
const J = H.current + N, G = C().filter((ue) => !ue.disabled), te = document.activeElement, F = (W = G.find((ue) => ue.ref.current === te)) == null ? void 0 : W.textValue, V = G.map((ue) => ue.textValue), se = wb(V, J, F), he = (ce = G.find((ue) => ue.textValue === se)) == null ? void 0 : ce.ref.current;
|
|
6554
6554
|
(function ue(ie) {
|
|
6555
6555
|
H.current = ie, window.clearTimeout($.current), ie !== "" && ($.current = window.setTimeout(() => ue(""), 1e3));
|
|
6556
6556
|
})(J), he && setTimeout(() => he.focus());
|
|
@@ -6558,10 +6558,10 @@ var Le = "MenuContent", [nb, ss] = Et(Le), rc = u.forwardRef(
|
|
|
6558
6558
|
u.useEffect(() => () => window.clearTimeout($.current), []), Wo();
|
|
6559
6559
|
const M = u.useCallback((N) => {
|
|
6560
6560
|
var G, te;
|
|
6561
|
-
return j.current === ((G = q.current) == null ? void 0 : G.side) &&
|
|
6561
|
+
return j.current === ((G = q.current) == null ? void 0 : G.side) && xb(N, (te = q.current) == null ? void 0 : te.area);
|
|
6562
6562
|
}, []);
|
|
6563
6563
|
return /* @__PURE__ */ c(
|
|
6564
|
-
|
|
6564
|
+
ob,
|
|
6565
6565
|
{
|
|
6566
6566
|
scope: n,
|
|
6567
6567
|
searchRef: H,
|
|
@@ -6609,7 +6609,7 @@ var Le = "MenuContent", [nb, ss] = Et(Le), rc = u.forwardRef(
|
|
|
6609
6609
|
onInteractOutside: m,
|
|
6610
6610
|
onDismiss: v,
|
|
6611
6611
|
children: /* @__PURE__ */ c(
|
|
6612
|
-
|
|
6612
|
+
ig,
|
|
6613
6613
|
{
|
|
6614
6614
|
asChild: !0,
|
|
6615
6615
|
...y,
|
|
@@ -6638,10 +6638,10 @@ var Le = "MenuContent", [nb, ss] = Et(Le), rc = u.forwardRef(
|
|
|
6638
6638
|
const G = N.target.closest("[data-radix-menu-content]") === N.currentTarget, te = N.ctrlKey || N.altKey || N.metaKey, F = N.key.length === 1;
|
|
6639
6639
|
G && (N.key === "Tab" && N.preventDefault(), !te && F && z(N.key));
|
|
6640
6640
|
const V = R.current;
|
|
6641
|
-
if (N.target !== V || !
|
|
6641
|
+
if (N.target !== V || !Xg.includes(N.key)) return;
|
|
6642
6642
|
N.preventDefault();
|
|
6643
6643
|
const he = C().filter((W) => !W.disabled).map((W) => W.ref.current);
|
|
6644
|
-
Ji.includes(N.key) && he.reverse(),
|
|
6644
|
+
Ji.includes(N.key) && he.reverse(), bb(he);
|
|
6645
6645
|
}),
|
|
6646
6646
|
onBlur: U(e.onBlur, (N) => {
|
|
6647
6647
|
N.currentTarget.contains(N.target) || (window.clearTimeout($.current), H.current = "");
|
|
@@ -6669,20 +6669,20 @@ var Le = "MenuContent", [nb, ss] = Et(Le), rc = u.forwardRef(
|
|
|
6669
6669
|
}
|
|
6670
6670
|
);
|
|
6671
6671
|
rc.displayName = Le;
|
|
6672
|
-
var
|
|
6672
|
+
var cb = "MenuGroup", is = u.forwardRef(
|
|
6673
6673
|
(e, t) => {
|
|
6674
6674
|
const { __scopeMenu: n, ...r } = e;
|
|
6675
6675
|
return /* @__PURE__ */ c(Z.div, { role: "group", ...r, ref: t });
|
|
6676
6676
|
}
|
|
6677
6677
|
);
|
|
6678
|
-
is.displayName =
|
|
6679
|
-
var
|
|
6678
|
+
is.displayName = cb;
|
|
6679
|
+
var lb = "MenuLabel", oc = u.forwardRef(
|
|
6680
6680
|
(e, t) => {
|
|
6681
6681
|
const { __scopeMenu: n, ...r } = e;
|
|
6682
6682
|
return /* @__PURE__ */ c(Z.div, { ...r, ref: t });
|
|
6683
6683
|
}
|
|
6684
6684
|
);
|
|
6685
|
-
oc.displayName =
|
|
6685
|
+
oc.displayName = lb;
|
|
6686
6686
|
var er = "MenuItem", ya = "menu.itemSelect", Cr = u.forwardRef(
|
|
6687
6687
|
(e, t) => {
|
|
6688
6688
|
const { disabled: n = !1, onSelect: r, ...o } = e, s = u.useRef(null), a = wn(er, e.__scopeMenu), i = ss(er, e.__scopeMenu), l = ae(t, s), f = u.useRef(!1), d = () => {
|
|
@@ -6728,7 +6728,7 @@ var sc = u.forwardRef(
|
|
|
6728
6728
|
scope: n,
|
|
6729
6729
|
disabled: r,
|
|
6730
6730
|
textValue: o ?? m,
|
|
6731
|
-
children: /* @__PURE__ */ c(
|
|
6731
|
+
children: /* @__PURE__ */ c(cg, { asChild: !0, ...i, focusable: !r, children: /* @__PURE__ */ c(
|
|
6732
6732
|
Z.div,
|
|
6733
6733
|
{
|
|
6734
6734
|
role: "menuitem",
|
|
@@ -6754,7 +6754,7 @@ var sc = u.forwardRef(
|
|
|
6754
6754
|
}
|
|
6755
6755
|
);
|
|
6756
6756
|
}
|
|
6757
|
-
),
|
|
6757
|
+
), ub = "MenuCheckboxItem", ac = u.forwardRef(
|
|
6758
6758
|
(e, t) => {
|
|
6759
6759
|
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
6760
6760
|
return /* @__PURE__ */ c(dc, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ c(
|
|
@@ -6774,21 +6774,21 @@ var sc = u.forwardRef(
|
|
|
6774
6774
|
) });
|
|
6775
6775
|
}
|
|
6776
6776
|
);
|
|
6777
|
-
ac.displayName =
|
|
6778
|
-
var ic = "MenuRadioGroup", [
|
|
6777
|
+
ac.displayName = ub;
|
|
6778
|
+
var ic = "MenuRadioGroup", [db, fb] = Et(
|
|
6779
6779
|
ic,
|
|
6780
6780
|
{ value: void 0, onValueChange: () => {
|
|
6781
6781
|
} }
|
|
6782
6782
|
), cc = u.forwardRef(
|
|
6783
6783
|
(e, t) => {
|
|
6784
6784
|
const { value: n, onValueChange: r, ...o } = e, s = Ee(r);
|
|
6785
|
-
return /* @__PURE__ */ c(
|
|
6785
|
+
return /* @__PURE__ */ c(db, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ c(is, { ...o, ref: t }) });
|
|
6786
6786
|
}
|
|
6787
6787
|
);
|
|
6788
6788
|
cc.displayName = ic;
|
|
6789
6789
|
var lc = "MenuRadioItem", uc = u.forwardRef(
|
|
6790
6790
|
(e, t) => {
|
|
6791
|
-
const { value: n, ...r } = e, o =
|
|
6791
|
+
const { value: n, ...r } = e, o = fb(lc, e.__scopeMenu), s = n === o.value;
|
|
6792
6792
|
return /* @__PURE__ */ c(dc, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ c(
|
|
6793
6793
|
Cr,
|
|
6794
6794
|
{
|
|
@@ -6810,12 +6810,12 @@ var lc = "MenuRadioItem", uc = u.forwardRef(
|
|
|
6810
6810
|
}
|
|
6811
6811
|
);
|
|
6812
6812
|
uc.displayName = lc;
|
|
6813
|
-
var cs = "MenuItemIndicator", [dc,
|
|
6813
|
+
var cs = "MenuItemIndicator", [dc, pb] = Et(
|
|
6814
6814
|
cs,
|
|
6815
6815
|
{ checked: !1 }
|
|
6816
6816
|
), fc = u.forwardRef(
|
|
6817
6817
|
(e, t) => {
|
|
6818
|
-
const { __scopeMenu: n, forceMount: r, ...o } = e, s =
|
|
6818
|
+
const { __scopeMenu: n, forceMount: r, ...o } = e, s = pb(cs, n);
|
|
6819
6819
|
return /* @__PURE__ */ c(
|
|
6820
6820
|
Oe,
|
|
6821
6821
|
{
|
|
@@ -6833,7 +6833,7 @@ var cs = "MenuItemIndicator", [dc, db] = Et(
|
|
|
6833
6833
|
}
|
|
6834
6834
|
);
|
|
6835
6835
|
fc.displayName = cs;
|
|
6836
|
-
var
|
|
6836
|
+
var hb = "MenuSeparator", pc = u.forwardRef(
|
|
6837
6837
|
(e, t) => {
|
|
6838
6838
|
const { __scopeMenu: n, ...r } = e;
|
|
6839
6839
|
return /* @__PURE__ */ c(
|
|
@@ -6847,15 +6847,15 @@ var fb = "MenuSeparator", pc = u.forwardRef(
|
|
|
6847
6847
|
);
|
|
6848
6848
|
}
|
|
6849
6849
|
);
|
|
6850
|
-
pc.displayName =
|
|
6851
|
-
var
|
|
6850
|
+
pc.displayName = hb;
|
|
6851
|
+
var mb = "MenuArrow", hc = u.forwardRef(
|
|
6852
6852
|
(e, t) => {
|
|
6853
6853
|
const { __scopeMenu: n, ...r } = e, o = Sr(n);
|
|
6854
6854
|
return /* @__PURE__ */ c(ts, { ...o, ...r, ref: t });
|
|
6855
6855
|
}
|
|
6856
6856
|
);
|
|
6857
|
-
hc.displayName =
|
|
6858
|
-
var
|
|
6857
|
+
hc.displayName = mb;
|
|
6858
|
+
var gb = "MenuSub", [Qy, mc] = Et(gb), Jt = "MenuSubTrigger", gc = u.forwardRef(
|
|
6859
6859
|
(e, t) => {
|
|
6860
6860
|
const n = Nt(Jt, e.__scopeMenu), r = wn(Jt, e.__scopeMenu), o = mc(Jt, e.__scopeMenu), s = ss(Jt, e.__scopeMenu), a = u.useRef(null), { pointerGraceTimerRef: i, onPointerGraceIntentChange: l } = s, f = { __scopeMenu: e.__scopeMenu }, d = u.useCallback(() => {
|
|
6861
6861
|
a.current && window.clearTimeout(a.current), a.current = null;
|
|
@@ -6919,7 +6919,7 @@ var hb = "MenuSub", [Jy, mc] = Et(hb), Jt = "MenuSubTrigger", gc = u.forwardRef(
|
|
|
6919
6919
|
onKeyDown: U(e.onKeyDown, (p) => {
|
|
6920
6920
|
var v;
|
|
6921
6921
|
const m = s.searchRef.current !== "";
|
|
6922
|
-
e.disabled || m && p.key === " " ||
|
|
6922
|
+
e.disabled || m && p.key === " " || Yg[r.dir].includes(p.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), p.preventDefault());
|
|
6923
6923
|
})
|
|
6924
6924
|
}
|
|
6925
6925
|
) });
|
|
@@ -6954,7 +6954,7 @@ var bc = "MenuSubContent", vc = u.forwardRef(
|
|
|
6954
6954
|
}),
|
|
6955
6955
|
onKeyDown: U(e.onKeyDown, (d) => {
|
|
6956
6956
|
var v;
|
|
6957
|
-
const p = d.currentTarget.contains(d.target), m =
|
|
6957
|
+
const p = d.currentTarget.contains(d.target), m = Jg[a.dir].includes(d.key);
|
|
6958
6958
|
p && m && (s.onOpenChange(!1), (v = i.trigger) == null || v.focus(), d.preventDefault());
|
|
6959
6959
|
})
|
|
6960
6960
|
}
|
|
@@ -6971,24 +6971,24 @@ function tr(e) {
|
|
|
6971
6971
|
function ls(e) {
|
|
6972
6972
|
return tr(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
6973
6973
|
}
|
|
6974
|
-
function
|
|
6974
|
+
function bb(e) {
|
|
6975
6975
|
const t = document.activeElement;
|
|
6976
6976
|
for (const n of e)
|
|
6977
6977
|
if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
6978
6978
|
}
|
|
6979
|
-
function
|
|
6979
|
+
function vb(e, t) {
|
|
6980
6980
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
6981
6981
|
}
|
|
6982
|
-
function
|
|
6982
|
+
function wb(e, t, n) {
|
|
6983
6983
|
const o = t.length > 1 && Array.from(t).every((f) => f === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
|
|
6984
|
-
let a =
|
|
6984
|
+
let a = vb(e, Math.max(s, 0));
|
|
6985
6985
|
o.length === 1 && (a = a.filter((f) => f !== n));
|
|
6986
6986
|
const l = a.find(
|
|
6987
6987
|
(f) => f.toLowerCase().startsWith(o.toLowerCase())
|
|
6988
6988
|
);
|
|
6989
6989
|
return l !== n ? l : void 0;
|
|
6990
6990
|
}
|
|
6991
|
-
function
|
|
6991
|
+
function yb(e, t) {
|
|
6992
6992
|
const { x: n, y: r } = e;
|
|
6993
6993
|
let o = !1;
|
|
6994
6994
|
for (let s = 0, a = t.length - 1; s < t.length; a = s++) {
|
|
@@ -6997,18 +6997,18 @@ function vb(e, t) {
|
|
|
6997
6997
|
}
|
|
6998
6998
|
return o;
|
|
6999
6999
|
}
|
|
7000
|
-
function
|
|
7000
|
+
function xb(e, t) {
|
|
7001
7001
|
if (!t) return !1;
|
|
7002
7002
|
const n = { x: e.clientX, y: e.clientY };
|
|
7003
|
-
return
|
|
7003
|
+
return yb(n, t);
|
|
7004
7004
|
}
|
|
7005
7005
|
function an(e) {
|
|
7006
7006
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
7007
7007
|
}
|
|
7008
|
-
var
|
|
7008
|
+
var Sb = ec, Cb = rs, Eb = nc, Nb = rc, Rb = is, Tb = oc, Ab = Cr, Pb = ac, Ib = cc, _b = uc, Ob = fc, kb = pc, Mb = hc, Db = gc, Lb = vc, Er = "DropdownMenu", [Fb, ex] = Ve(
|
|
7009
7009
|
Er,
|
|
7010
7010
|
[Zi]
|
|
7011
|
-
), Te = Zi(), [
|
|
7011
|
+
), Te = Zi(), [$b, yc] = Fb(Er), xc = (e) => {
|
|
7012
7012
|
const {
|
|
7013
7013
|
__scopeDropdownMenu: t,
|
|
7014
7014
|
children: n,
|
|
@@ -7024,7 +7024,7 @@ var yb = ec, xb = rs, Sb = nc, Cb = rc, Eb = is, Nb = oc, Rb = Cr, Tb = ac, Ab =
|
|
|
7024
7024
|
caller: Er
|
|
7025
7025
|
});
|
|
7026
7026
|
return /* @__PURE__ */ c(
|
|
7027
|
-
|
|
7027
|
+
$b,
|
|
7028
7028
|
{
|
|
7029
7029
|
scope: t,
|
|
7030
7030
|
triggerId: He(),
|
|
@@ -7034,7 +7034,7 @@ var yb = ec, xb = rs, Sb = nc, Cb = rc, Eb = is, Nb = oc, Rb = Cr, Tb = ac, Ab =
|
|
|
7034
7034
|
onOpenChange: p,
|
|
7035
7035
|
onOpenToggle: u.useCallback(() => p((m) => !m), [p]),
|
|
7036
7036
|
modal: i,
|
|
7037
|
-
children: /* @__PURE__ */ c(
|
|
7037
|
+
children: /* @__PURE__ */ c(Sb, { ...l, open: d, onOpenChange: p, dir: r, modal: i, children: n })
|
|
7038
7038
|
}
|
|
7039
7039
|
);
|
|
7040
7040
|
};
|
|
@@ -7042,7 +7042,7 @@ xc.displayName = Er;
|
|
|
7042
7042
|
var Sc = "DropdownMenuTrigger", Cc = u.forwardRef(
|
|
7043
7043
|
(e, t) => {
|
|
7044
7044
|
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = yc(Sc, n), a = Te(n);
|
|
7045
|
-
return /* @__PURE__ */ c(
|
|
7045
|
+
return /* @__PURE__ */ c(Cb, { asChild: !0, ...a, children: /* @__PURE__ */ c(
|
|
7046
7046
|
Z.button,
|
|
7047
7047
|
{
|
|
7048
7048
|
type: "button",
|
|
@@ -7066,16 +7066,16 @@ var Sc = "DropdownMenuTrigger", Cc = u.forwardRef(
|
|
|
7066
7066
|
}
|
|
7067
7067
|
);
|
|
7068
7068
|
Cc.displayName = Sc;
|
|
7069
|
-
var
|
|
7069
|
+
var Bb = "DropdownMenuPortal", Ec = (e) => {
|
|
7070
7070
|
const { __scopeDropdownMenu: t, ...n } = e, r = Te(t);
|
|
7071
|
-
return /* @__PURE__ */ c(
|
|
7071
|
+
return /* @__PURE__ */ c(Eb, { ...r, ...n });
|
|
7072
7072
|
};
|
|
7073
|
-
Ec.displayName =
|
|
7073
|
+
Ec.displayName = Bb;
|
|
7074
7074
|
var Nc = "DropdownMenuContent", Rc = u.forwardRef(
|
|
7075
7075
|
(e, t) => {
|
|
7076
7076
|
const { __scopeDropdownMenu: n, ...r } = e, o = yc(Nc, n), s = Te(n), a = u.useRef(!1);
|
|
7077
7077
|
return /* @__PURE__ */ c(
|
|
7078
|
-
|
|
7078
|
+
Nb,
|
|
7079
7079
|
{
|
|
7080
7080
|
id: o.contentId,
|
|
7081
7081
|
"aria-labelledby": o.triggerId,
|
|
@@ -7103,68 +7103,68 @@ var Nc = "DropdownMenuContent", Rc = u.forwardRef(
|
|
|
7103
7103
|
}
|
|
7104
7104
|
);
|
|
7105
7105
|
Rc.displayName = Nc;
|
|
7106
|
-
var
|
|
7106
|
+
var Ub = "DropdownMenuGroup", Hb = u.forwardRef(
|
|
7107
7107
|
(e, t) => {
|
|
7108
7108
|
const { __scopeDropdownMenu: n, ...r } = e, o = Te(n);
|
|
7109
|
-
return /* @__PURE__ */ c(
|
|
7109
|
+
return /* @__PURE__ */ c(Rb, { ...o, ...r, ref: t });
|
|
7110
7110
|
}
|
|
7111
7111
|
);
|
|
7112
|
-
|
|
7113
|
-
var
|
|
7112
|
+
Hb.displayName = Ub;
|
|
7113
|
+
var zb = "DropdownMenuLabel", Tc = u.forwardRef(
|
|
7114
7114
|
(e, t) => {
|
|
7115
7115
|
const { __scopeDropdownMenu: n, ...r } = e, o = Te(n);
|
|
7116
|
-
return /* @__PURE__ */ c(
|
|
7116
|
+
return /* @__PURE__ */ c(Tb, { ...o, ...r, ref: t });
|
|
7117
7117
|
}
|
|
7118
7118
|
);
|
|
7119
|
-
Tc.displayName =
|
|
7120
|
-
var
|
|
7119
|
+
Tc.displayName = zb;
|
|
7120
|
+
var Wb = "DropdownMenuItem", Ac = u.forwardRef(
|
|
7121
7121
|
(e, t) => {
|
|
7122
7122
|
const { __scopeDropdownMenu: n, ...r } = e, o = Te(n);
|
|
7123
|
-
return /* @__PURE__ */ c(
|
|
7123
|
+
return /* @__PURE__ */ c(Ab, { ...o, ...r, ref: t });
|
|
7124
7124
|
}
|
|
7125
7125
|
);
|
|
7126
|
-
Ac.displayName =
|
|
7127
|
-
var
|
|
7126
|
+
Ac.displayName = Wb;
|
|
7127
|
+
var jb = "DropdownMenuCheckboxItem", Pc = u.forwardRef((e, t) => {
|
|
7128
7128
|
const { __scopeDropdownMenu: n, ...r } = e, o = Te(n);
|
|
7129
|
-
return /* @__PURE__ */ c(
|
|
7129
|
+
return /* @__PURE__ */ c(Pb, { ...o, ...r, ref: t });
|
|
7130
7130
|
});
|
|
7131
|
-
Pc.displayName =
|
|
7132
|
-
var
|
|
7131
|
+
Pc.displayName = jb;
|
|
7132
|
+
var Vb = "DropdownMenuRadioGroup", Kb = u.forwardRef((e, t) => {
|
|
7133
7133
|
const { __scopeDropdownMenu: n, ...r } = e, o = Te(n);
|
|
7134
|
-
return /* @__PURE__ */ c(
|
|
7134
|
+
return /* @__PURE__ */ c(Ib, { ...o, ...r, ref: t });
|
|
7135
7135
|
});
|
|
7136
|
-
|
|
7137
|
-
var
|
|
7136
|
+
Kb.displayName = Vb;
|
|
7137
|
+
var Gb = "DropdownMenuRadioItem", Ic = u.forwardRef((e, t) => {
|
|
7138
7138
|
const { __scopeDropdownMenu: n, ...r } = e, o = Te(n);
|
|
7139
|
-
return /* @__PURE__ */ c(
|
|
7139
|
+
return /* @__PURE__ */ c(_b, { ...o, ...r, ref: t });
|
|
7140
7140
|
});
|
|
7141
|
-
Ic.displayName =
|
|
7142
|
-
var
|
|
7141
|
+
Ic.displayName = Gb;
|
|
7142
|
+
var qb = "DropdownMenuItemIndicator", _c = u.forwardRef((e, t) => {
|
|
7143
7143
|
const { __scopeDropdownMenu: n, ...r } = e, o = Te(n);
|
|
7144
|
-
return /* @__PURE__ */ c(
|
|
7144
|
+
return /* @__PURE__ */ c(Ob, { ...o, ...r, ref: t });
|
|
7145
7145
|
});
|
|
7146
|
-
_c.displayName =
|
|
7147
|
-
var
|
|
7146
|
+
_c.displayName = qb;
|
|
7147
|
+
var Xb = "DropdownMenuSeparator", Oc = u.forwardRef((e, t) => {
|
|
7148
7148
|
const { __scopeDropdownMenu: n, ...r } = e, o = Te(n);
|
|
7149
|
-
return /* @__PURE__ */ c(
|
|
7149
|
+
return /* @__PURE__ */ c(kb, { ...o, ...r, ref: t });
|
|
7150
7150
|
});
|
|
7151
|
-
Oc.displayName =
|
|
7152
|
-
var
|
|
7151
|
+
Oc.displayName = Xb;
|
|
7152
|
+
var Yb = "DropdownMenuArrow", Jb = u.forwardRef(
|
|
7153
7153
|
(e, t) => {
|
|
7154
7154
|
const { __scopeDropdownMenu: n, ...r } = e, o = Te(n);
|
|
7155
|
-
return /* @__PURE__ */ c(
|
|
7155
|
+
return /* @__PURE__ */ c(Mb, { ...o, ...r, ref: t });
|
|
7156
7156
|
}
|
|
7157
7157
|
);
|
|
7158
|
-
|
|
7159
|
-
var
|
|
7158
|
+
Jb.displayName = Yb;
|
|
7159
|
+
var Zb = "DropdownMenuSubTrigger", kc = u.forwardRef((e, t) => {
|
|
7160
7160
|
const { __scopeDropdownMenu: n, ...r } = e, o = Te(n);
|
|
7161
|
-
return /* @__PURE__ */ c(
|
|
7161
|
+
return /* @__PURE__ */ c(Db, { ...o, ...r, ref: t });
|
|
7162
7162
|
});
|
|
7163
|
-
kc.displayName =
|
|
7164
|
-
var
|
|
7163
|
+
kc.displayName = Zb;
|
|
7164
|
+
var Qb = "DropdownMenuSubContent", Mc = u.forwardRef((e, t) => {
|
|
7165
7165
|
const { __scopeDropdownMenu: n, ...r } = e, o = Te(n);
|
|
7166
7166
|
return /* @__PURE__ */ c(
|
|
7167
|
-
|
|
7167
|
+
Lb,
|
|
7168
7168
|
{
|
|
7169
7169
|
...o,
|
|
7170
7170
|
...r,
|
|
@@ -7180,9 +7180,9 @@ var Jb = "DropdownMenuSubContent", Mc = u.forwardRef((e, t) => {
|
|
|
7180
7180
|
}
|
|
7181
7181
|
);
|
|
7182
7182
|
});
|
|
7183
|
-
Mc.displayName =
|
|
7184
|
-
var
|
|
7185
|
-
const
|
|
7183
|
+
Mc.displayName = Qb;
|
|
7184
|
+
var ev = xc, tv = Cc, nv = Ec, Dc = Rc, Lc = Tc, Fc = Ac, $c = Pc, Bc = Ic, Uc = _c, Hc = Oc, zc = kc, Wc = Mc;
|
|
7185
|
+
const rv = ev, ov = tv, sv = u.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ E(
|
|
7186
7186
|
zc,
|
|
7187
7187
|
{
|
|
7188
7188
|
ref: o,
|
|
@@ -7198,8 +7198,8 @@ const tv = Zb, nv = Qb, rv = u.forwardRef(({ className: e, inset: t, children: n
|
|
|
7198
7198
|
]
|
|
7199
7199
|
}
|
|
7200
7200
|
));
|
|
7201
|
-
|
|
7202
|
-
const
|
|
7201
|
+
sv.displayName = zc.displayName;
|
|
7202
|
+
const av = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
7203
7203
|
Wc,
|
|
7204
7204
|
{
|
|
7205
7205
|
ref: n,
|
|
@@ -7210,8 +7210,8 @@ const ov = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
|
7210
7210
|
...t
|
|
7211
7211
|
}
|
|
7212
7212
|
));
|
|
7213
|
-
|
|
7214
|
-
const jc = u.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ c(
|
|
7213
|
+
av.displayName = Wc.displayName;
|
|
7214
|
+
const jc = u.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ c(nv, { children: /* @__PURE__ */ c(
|
|
7215
7215
|
Dc,
|
|
7216
7216
|
{
|
|
7217
7217
|
ref: r,
|
|
@@ -7237,7 +7237,7 @@ const xo = u.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
7237
7237
|
}
|
|
7238
7238
|
));
|
|
7239
7239
|
xo.displayName = Fc.displayName;
|
|
7240
|
-
const
|
|
7240
|
+
const iv = u.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ E(
|
|
7241
7241
|
$c,
|
|
7242
7242
|
{
|
|
7243
7243
|
ref: o,
|
|
@@ -7253,8 +7253,8 @@ const sv = u.forwardRef(({ className: e, children: t, checked: n, ...r }, o) =>
|
|
|
7253
7253
|
]
|
|
7254
7254
|
}
|
|
7255
7255
|
));
|
|
7256
|
-
|
|
7257
|
-
const
|
|
7256
|
+
iv.displayName = $c.displayName;
|
|
7257
|
+
const cv = u.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ E(
|
|
7258
7258
|
Bc,
|
|
7259
7259
|
{
|
|
7260
7260
|
ref: r,
|
|
@@ -7269,8 +7269,8 @@ const av = u.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
7269
7269
|
]
|
|
7270
7270
|
}
|
|
7271
7271
|
));
|
|
7272
|
-
|
|
7273
|
-
const
|
|
7272
|
+
cv.displayName = Bc.displayName;
|
|
7273
|
+
const lv = u.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ c(
|
|
7274
7274
|
Lc,
|
|
7275
7275
|
{
|
|
7276
7276
|
ref: r,
|
|
@@ -7282,8 +7282,8 @@ const iv = u.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
7282
7282
|
...n
|
|
7283
7283
|
}
|
|
7284
7284
|
));
|
|
7285
|
-
|
|
7286
|
-
const
|
|
7285
|
+
lv.displayName = Lc.displayName;
|
|
7286
|
+
const uv = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
7287
7287
|
Hc,
|
|
7288
7288
|
{
|
|
7289
7289
|
ref: n,
|
|
@@ -7291,7 +7291,7 @@ const cv = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
|
7291
7291
|
...t
|
|
7292
7292
|
}
|
|
7293
7293
|
));
|
|
7294
|
-
|
|
7294
|
+
uv.displayName = Hc.displayName;
|
|
7295
7295
|
function zn({
|
|
7296
7296
|
className: e = "",
|
|
7297
7297
|
placeholder: t = "Type your message...",
|
|
@@ -7412,7 +7412,7 @@ function zn({
|
|
|
7412
7412
|
if (O.length > kt)
|
|
7413
7413
|
return `Message too long (${O.length}/${kt} characters)`;
|
|
7414
7414
|
try {
|
|
7415
|
-
return
|
|
7415
|
+
return mh(O), null;
|
|
7416
7416
|
} catch (X) {
|
|
7417
7417
|
return (X == null ? void 0 : X.message) || "Invalid message";
|
|
7418
7418
|
}
|
|
@@ -7525,7 +7525,7 @@ function zn({
|
|
|
7525
7525
|
v.length === 0 ? /* @__PURE__ */ c("div", { className: "flex items-center justify-center py-8 text-muted-foreground text-center max-w-md mx-auto", children: W || "No messages yet. Start a conversation!" }) : /* @__PURE__ */ E(Pe, { children: [
|
|
7526
7526
|
(L || !R) && /* @__PURE__ */ c("div", { className: "flex justify-center py-2 text-xs text-muted-foreground", children: L ? /* @__PURE__ */ c(Es, { className: "h-4 w-4 animate-spin" }) : "You've reached the beginning" }),
|
|
7527
7527
|
v.map((O, X) => /* @__PURE__ */ c(
|
|
7528
|
-
|
|
7528
|
+
th,
|
|
7529
7529
|
{
|
|
7530
7530
|
message: O,
|
|
7531
7531
|
messageIndex: X,
|
|
@@ -7618,8 +7618,8 @@ function zn({
|
|
|
7618
7618
|
] }),
|
|
7619
7619
|
B && /* @__PURE__ */ c("div", { className: "mb-3 text-sm text-red-600 bg-red-50 border border-red-200 rounded px-3 py-2", children: B }),
|
|
7620
7620
|
/* @__PURE__ */ E("div", { className: "flex items-end gap-2", children: [
|
|
7621
|
-
(s || a) && /* @__PURE__ */ E(
|
|
7622
|
-
/* @__PURE__ */ c(
|
|
7621
|
+
(s || a) && /* @__PURE__ */ E(rv, { children: [
|
|
7622
|
+
/* @__PURE__ */ c(ov, { asChild: !0, children: /* @__PURE__ */ c(
|
|
7623
7623
|
pe,
|
|
7624
7624
|
{
|
|
7625
7625
|
type: "button",
|
|
@@ -7721,10 +7721,10 @@ cn.displayName = "Input";
|
|
|
7721
7721
|
function So(e, [t, n]) {
|
|
7722
7722
|
return Math.min(n, Math.max(t, e));
|
|
7723
7723
|
}
|
|
7724
|
-
function
|
|
7724
|
+
function dv(e, t) {
|
|
7725
7725
|
return u.useReducer((n, r) => t[n][r] ?? n, e);
|
|
7726
7726
|
}
|
|
7727
|
-
var us = "ScrollArea", [Vc,
|
|
7727
|
+
var us = "ScrollArea", [Vc, tx] = Ve(us), [fv, Fe] = Vc(us), Kc = u.forwardRef(
|
|
7728
7728
|
(e, t) => {
|
|
7729
7729
|
const {
|
|
7730
7730
|
__scopeScrollArea: n,
|
|
@@ -7734,7 +7734,7 @@ var us = "ScrollArea", [Vc, Qy] = Ve(us), [uv, Fe] = Vc(us), Kc = u.forwardRef(
|
|
|
7734
7734
|
...a
|
|
7735
7735
|
} = e, [i, l] = u.useState(null), [f, d] = u.useState(null), [p, m] = u.useState(null), [v, g] = u.useState(null), [h, b] = u.useState(null), [w, x] = u.useState(0), [y, C] = u.useState(0), [T, k] = u.useState(!1), [R, L] = u.useState(!1), $ = ae(t, (K) => l(K)), H = pr(o);
|
|
7736
7736
|
return /* @__PURE__ */ c(
|
|
7737
|
-
|
|
7737
|
+
fv,
|
|
7738
7738
|
{
|
|
7739
7739
|
scope: n,
|
|
7740
7740
|
type: r,
|
|
@@ -7822,11 +7822,11 @@ var et = "ScrollAreaScrollbar", ds = u.forwardRef(
|
|
|
7822
7822
|
const { forceMount: n, ...r } = e, o = Fe(et, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: a } = o, i = e.orientation === "horizontal";
|
|
7823
7823
|
return u.useEffect(() => (i ? s(!0) : a(!0), () => {
|
|
7824
7824
|
i ? s(!1) : a(!1);
|
|
7825
|
-
}), [i, s, a]), o.type === "hover" ? /* @__PURE__ */ c(
|
|
7825
|
+
}), [i, s, a]), o.type === "hover" ? /* @__PURE__ */ c(pv, { ...r, ref: t, forceMount: n }) : o.type === "scroll" ? /* @__PURE__ */ c(hv, { ...r, ref: t, forceMount: n }) : o.type === "auto" ? /* @__PURE__ */ c(Xc, { ...r, ref: t, forceMount: n }) : o.type === "always" ? /* @__PURE__ */ c(fs, { ...r, ref: t }) : null;
|
|
7826
7826
|
}
|
|
7827
7827
|
);
|
|
7828
7828
|
ds.displayName = et;
|
|
7829
|
-
var
|
|
7829
|
+
var pv = u.forwardRef((e, t) => {
|
|
7830
7830
|
const { forceMount: n, ...r } = e, o = Fe(et, e.__scopeScrollArea), [s, a] = u.useState(!1);
|
|
7831
7831
|
return u.useEffect(() => {
|
|
7832
7832
|
const i = o.scrollArea;
|
|
@@ -7849,8 +7849,8 @@ var dv = u.forwardRef((e, t) => {
|
|
|
7849
7849
|
ref: t
|
|
7850
7850
|
}
|
|
7851
7851
|
) });
|
|
7852
|
-
}),
|
|
7853
|
-
const { forceMount: n, ...r } = e, o = Fe(et, e.__scopeScrollArea), s = e.orientation === "horizontal", a = Rr(() => l("SCROLL_END"), 100), [i, l] =
|
|
7852
|
+
}), hv = u.forwardRef((e, t) => {
|
|
7853
|
+
const { forceMount: n, ...r } = e, o = Fe(et, e.__scopeScrollArea), s = e.orientation === "horizontal", a = Rr(() => l("SCROLL_END"), 100), [i, l] = dv("hidden", {
|
|
7854
7854
|
hidden: {
|
|
7855
7855
|
SCROLL: "scrolling"
|
|
7856
7856
|
},
|
|
@@ -7923,10 +7923,10 @@ var dv = u.forwardRef((e, t) => {
|
|
|
7923
7923
|
onThumbPointerDown: (m) => a.current = m
|
|
7924
7924
|
};
|
|
7925
7925
|
function p(m, v) {
|
|
7926
|
-
return
|
|
7926
|
+
return yv(m, a.current, i, v);
|
|
7927
7927
|
}
|
|
7928
7928
|
return n === "horizontal" ? /* @__PURE__ */ c(
|
|
7929
|
-
|
|
7929
|
+
mv,
|
|
7930
7930
|
{
|
|
7931
7931
|
...d,
|
|
7932
7932
|
ref: t,
|
|
@@ -7944,7 +7944,7 @@ var dv = u.forwardRef((e, t) => {
|
|
|
7944
7944
|
}
|
|
7945
7945
|
}
|
|
7946
7946
|
) : n === "vertical" ? /* @__PURE__ */ c(
|
|
7947
|
-
|
|
7947
|
+
gv,
|
|
7948
7948
|
{
|
|
7949
7949
|
...d,
|
|
7950
7950
|
ref: t,
|
|
@@ -7962,7 +7962,7 @@ var dv = u.forwardRef((e, t) => {
|
|
|
7962
7962
|
}
|
|
7963
7963
|
}
|
|
7964
7964
|
) : null;
|
|
7965
|
-
}),
|
|
7965
|
+
}), mv = u.forwardRef((e, t) => {
|
|
7966
7966
|
const { sizes: n, onSizesChange: r, ...o } = e, s = Fe(et, e.__scopeScrollArea), [a, i] = u.useState(), l = u.useRef(null), f = ae(t, l, s.onScrollbarXChange);
|
|
7967
7967
|
return u.useEffect(() => {
|
|
7968
7968
|
l.current && i(getComputedStyle(l.current));
|
|
@@ -8001,7 +8001,7 @@ var dv = u.forwardRef((e, t) => {
|
|
|
8001
8001
|
}
|
|
8002
8002
|
}
|
|
8003
8003
|
);
|
|
8004
|
-
}),
|
|
8004
|
+
}), gv = u.forwardRef((e, t) => {
|
|
8005
8005
|
const { sizes: n, onSizesChange: r, ...o } = e, s = Fe(et, e.__scopeScrollArea), [a, i] = u.useState(), l = u.useRef(null), f = ae(t, l, s.onScrollbarYChange);
|
|
8006
8006
|
return u.useEffect(() => {
|
|
8007
8007
|
l.current && i(getComputedStyle(l.current));
|
|
@@ -8041,7 +8041,7 @@ var dv = u.forwardRef((e, t) => {
|
|
|
8041
8041
|
}
|
|
8042
8042
|
}
|
|
8043
8043
|
);
|
|
8044
|
-
}), [
|
|
8044
|
+
}), [bv, Yc] = Vc(et), Jc = u.forwardRef((e, t) => {
|
|
8045
8045
|
const {
|
|
8046
8046
|
__scopeScrollArea: n,
|
|
8047
8047
|
sizes: r,
|
|
@@ -8068,7 +8068,7 @@ var dv = u.forwardRef((e, t) => {
|
|
|
8068
8068
|
};
|
|
8069
8069
|
return document.addEventListener("wheel", $, { passive: !1 }), () => document.removeEventListener("wheel", $, { passive: !1 });
|
|
8070
8070
|
}, [y, g, C, T]), u.useEffect(k, [r, k]), Ut(g, R), Ut(v.content, R), /* @__PURE__ */ c(
|
|
8071
|
-
|
|
8071
|
+
bv,
|
|
8072
8072
|
{
|
|
8073
8073
|
scope: n,
|
|
8074
8074
|
scrollbar: g,
|
|
@@ -8098,9 +8098,9 @@ var dv = u.forwardRef((e, t) => {
|
|
|
8098
8098
|
}), nr = "ScrollAreaThumb", Zc = u.forwardRef(
|
|
8099
8099
|
(e, t) => {
|
|
8100
8100
|
const { forceMount: n, ...r } = e, o = Yc(nr, e.__scopeScrollArea);
|
|
8101
|
-
return /* @__PURE__ */ c(Oe, { present: n || o.hasThumb, children: /* @__PURE__ */ c(
|
|
8101
|
+
return /* @__PURE__ */ c(Oe, { present: n || o.hasThumb, children: /* @__PURE__ */ c(vv, { ref: t, ...r }) });
|
|
8102
8102
|
}
|
|
8103
|
-
),
|
|
8103
|
+
), vv = u.forwardRef(
|
|
8104
8104
|
(e, t) => {
|
|
8105
8105
|
const { __scopeScrollArea: n, style: r, ...o } = e, s = Fe(nr, n), a = Yc(nr, n), { onThumbPositionChange: i } = a, l = ae(
|
|
8106
8106
|
t,
|
|
@@ -8113,7 +8113,7 @@ var dv = u.forwardRef((e, t) => {
|
|
|
8113
8113
|
if (p) {
|
|
8114
8114
|
const m = () => {
|
|
8115
8115
|
if (d(), !f.current) {
|
|
8116
|
-
const v =
|
|
8116
|
+
const v = xv(p, i);
|
|
8117
8117
|
f.current = v, i();
|
|
8118
8118
|
}
|
|
8119
8119
|
};
|
|
@@ -8143,11 +8143,11 @@ Zc.displayName = nr;
|
|
|
8143
8143
|
var ps = "ScrollAreaCorner", Qc = u.forwardRef(
|
|
8144
8144
|
(e, t) => {
|
|
8145
8145
|
const n = Fe(ps, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
|
|
8146
|
-
return n.type !== "scroll" && r ? /* @__PURE__ */ c(
|
|
8146
|
+
return n.type !== "scroll" && r ? /* @__PURE__ */ c(wv, { ...e, ref: t }) : null;
|
|
8147
8147
|
}
|
|
8148
8148
|
);
|
|
8149
8149
|
Qc.displayName = ps;
|
|
8150
|
-
var
|
|
8150
|
+
var wv = u.forwardRef((e, t) => {
|
|
8151
8151
|
const { __scopeScrollArea: n, ...r } = e, o = Fe(ps, n), [s, a] = u.useState(0), [i, l] = u.useState(0), f = !!(s && i);
|
|
8152
8152
|
return Ut(o.scrollbarX, () => {
|
|
8153
8153
|
var p;
|
|
@@ -8185,7 +8185,7 @@ function Nr(e) {
|
|
|
8185
8185
|
const t = el(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
|
|
8186
8186
|
return Math.max(r, 18);
|
|
8187
8187
|
}
|
|
8188
|
-
function
|
|
8188
|
+
function yv(e, t, n, r = "ltr") {
|
|
8189
8189
|
const o = Nr(n), s = o / 2, a = t || s, i = o - a, l = n.scrollbar.paddingStart + a, f = n.scrollbar.size - n.scrollbar.paddingEnd - i, d = n.content - n.viewport, p = r === "ltr" ? [0, d] : [d * -1, 0];
|
|
8190
8190
|
return tl([l, f], p)(e);
|
|
8191
8191
|
}
|
|
@@ -8203,7 +8203,7 @@ function tl(e, t) {
|
|
|
8203
8203
|
function nl(e, t) {
|
|
8204
8204
|
return e > 0 && e < t;
|
|
8205
8205
|
}
|
|
8206
|
-
var
|
|
8206
|
+
var xv = (e, t = () => {
|
|
8207
8207
|
}) => {
|
|
8208
8208
|
let n = { left: e.scrollLeft, top: e.scrollTop }, r = 0;
|
|
8209
8209
|
return function o() {
|
|
@@ -8231,7 +8231,7 @@ function Ut(e, t) {
|
|
|
8231
8231
|
}
|
|
8232
8232
|
}, [e, n]);
|
|
8233
8233
|
}
|
|
8234
|
-
var rl = Kc,
|
|
8234
|
+
var rl = Kc, Sv = qc, Cv = Qc;
|
|
8235
8235
|
const ol = u.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ E(
|
|
8236
8236
|
rl,
|
|
8237
8237
|
{
|
|
@@ -8239,9 +8239,9 @@ const ol = u.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
8239
8239
|
className: A("relative overflow-hidden", e),
|
|
8240
8240
|
...n,
|
|
8241
8241
|
children: [
|
|
8242
|
-
/* @__PURE__ */ c(
|
|
8242
|
+
/* @__PURE__ */ c(Sv, { className: "h-full w-full rounded-[inherit] overflow-auto", children: t }),
|
|
8243
8243
|
/* @__PURE__ */ c(sl, {}),
|
|
8244
|
-
/* @__PURE__ */ c(
|
|
8244
|
+
/* @__PURE__ */ c(Cv, {})
|
|
8245
8245
|
]
|
|
8246
8246
|
}
|
|
8247
8247
|
));
|
|
@@ -8396,7 +8396,7 @@ function Co({
|
|
|
8396
8396
|
] });
|
|
8397
8397
|
}
|
|
8398
8398
|
const al = Ta(null);
|
|
8399
|
-
function
|
|
8399
|
+
function nx({ children: e, basePath: t = "/chat" }) {
|
|
8400
8400
|
const n = gt(() => t ? t === "/" ? "" : t.endsWith("/") ? t.slice(0, -1) : t : "/chat", [t]), r = {
|
|
8401
8401
|
basePath: n,
|
|
8402
8402
|
buildThreadPath: (o) => `${n}/${o}`,
|
|
@@ -8404,7 +8404,7 @@ function ex({ children: e, basePath: t = "/chat" }) {
|
|
|
8404
8404
|
};
|
|
8405
8405
|
return /* @__PURE__ */ c(al.Provider, { value: r, children: e });
|
|
8406
8406
|
}
|
|
8407
|
-
function
|
|
8407
|
+
function rx() {
|
|
8408
8408
|
const e = Aa(al);
|
|
8409
8409
|
return e || {
|
|
8410
8410
|
basePath: "/chat",
|
|
@@ -8418,18 +8418,18 @@ function nn(e) {
|
|
|
8418
8418
|
const t = typeof import.meta < "u" && Sa ? Sa[e] : void 0, n = (o = globalThis == null ? void 0 : globalThis.process) == null ? void 0 : o.env, r = n ? n[e] : void 0;
|
|
8419
8419
|
return (t ?? r) || void 0;
|
|
8420
8420
|
}
|
|
8421
|
-
function
|
|
8421
|
+
function Ev() {
|
|
8422
8422
|
return nn("VITE_API_BASE_URL") || nn("NEXT_PUBLIC_API_BASE_URL") || void 0;
|
|
8423
8423
|
}
|
|
8424
|
-
function
|
|
8424
|
+
function Nv() {
|
|
8425
8425
|
return nn("VITE_API_KEY") || nn("NEXT_PUBLIC_API_KEY") || nn("VITE_AUTH_TOKEN") || void 0;
|
|
8426
8426
|
}
|
|
8427
|
-
function
|
|
8428
|
-
const e =
|
|
8427
|
+
function Rv() {
|
|
8428
|
+
const e = Ev(), t = Nv(), n = {};
|
|
8429
8429
|
return e && (n.baseUrl = e), t && (n.apiKey = t), n;
|
|
8430
8430
|
}
|
|
8431
|
-
function
|
|
8432
|
-
const e =
|
|
8431
|
+
function Tv() {
|
|
8432
|
+
const e = Rv(), t = ct.getAuthToken();
|
|
8433
8433
|
return {
|
|
8434
8434
|
apiBaseUrl: e.baseUrl || ct.baseUrl || "http://localhost:8000",
|
|
8435
8435
|
apiKey: t || e.apiKey || "",
|
|
@@ -8447,7 +8447,7 @@ function Nv() {
|
|
|
8447
8447
|
};
|
|
8448
8448
|
}
|
|
8449
8449
|
const il = "chat-settings";
|
|
8450
|
-
function
|
|
8450
|
+
function Av() {
|
|
8451
8451
|
try {
|
|
8452
8452
|
const e = localStorage.getItem(il);
|
|
8453
8453
|
return e ? JSON.parse(e) : {};
|
|
@@ -8455,15 +8455,15 @@ function Rv() {
|
|
|
8455
8455
|
return console.error("Failed to parse stored settings:", e), {};
|
|
8456
8456
|
}
|
|
8457
8457
|
}
|
|
8458
|
-
function
|
|
8458
|
+
function Pv(e) {
|
|
8459
8459
|
try {
|
|
8460
8460
|
localStorage.setItem(il, JSON.stringify(e)), e.apiKey && ct.setAuthToken(e.apiKey);
|
|
8461
8461
|
} catch (t) {
|
|
8462
8462
|
console.error("Failed to save settings:", t);
|
|
8463
8463
|
}
|
|
8464
8464
|
}
|
|
8465
|
-
function
|
|
8466
|
-
const e =
|
|
8465
|
+
function ox() {
|
|
8466
|
+
const e = Tv(), t = Av(), n = ct.getAuthToken();
|
|
8467
8467
|
return {
|
|
8468
8468
|
...e,
|
|
8469
8469
|
...t,
|
|
@@ -8473,11 +8473,11 @@ function nx() {
|
|
|
8473
8473
|
apiBaseUrl: ct.baseUrl || t.apiBaseUrl || e.apiBaseUrl
|
|
8474
8474
|
};
|
|
8475
8475
|
}
|
|
8476
|
-
function
|
|
8477
|
-
e.apiKey && ct.setAuthToken(e.apiKey),
|
|
8476
|
+
function sx(e) {
|
|
8477
|
+
e.apiKey && ct.setAuthToken(e.apiKey), Pv(e);
|
|
8478
8478
|
}
|
|
8479
8479
|
const oo = 768;
|
|
8480
|
-
function
|
|
8480
|
+
function Iv() {
|
|
8481
8481
|
const [e, t] = u.useState(void 0);
|
|
8482
8482
|
return u.useEffect(() => {
|
|
8483
8483
|
const n = window.matchMedia(`(max-width: ${oo - 1}px)`), r = () => {
|
|
@@ -8486,8 +8486,8 @@ function Av() {
|
|
|
8486
8486
|
return n.addEventListener("change", r), t(window.innerWidth < oo), () => n.removeEventListener("change", r);
|
|
8487
8487
|
}, []), !!e;
|
|
8488
8488
|
}
|
|
8489
|
-
var
|
|
8490
|
-
const { decorative: n, orientation: r = Ca, ...o } = e, s =
|
|
8489
|
+
var _v = "Separator", Ca = "horizontal", Ov = ["horizontal", "vertical"], cl = u.forwardRef((e, t) => {
|
|
8490
|
+
const { decorative: n, orientation: r = Ca, ...o } = e, s = kv(r) ? r : Ca, i = n ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
|
|
8491
8491
|
return /* @__PURE__ */ c(
|
|
8492
8492
|
Z.div,
|
|
8493
8493
|
{
|
|
@@ -8498,9 +8498,9 @@ var Pv = "Separator", Ca = "horizontal", Iv = ["horizontal", "vertical"], cl = u
|
|
|
8498
8498
|
}
|
|
8499
8499
|
);
|
|
8500
8500
|
});
|
|
8501
|
-
cl.displayName =
|
|
8502
|
-
function
|
|
8503
|
-
return
|
|
8501
|
+
cl.displayName = _v;
|
|
8502
|
+
function kv(e) {
|
|
8503
|
+
return Ov.includes(e);
|
|
8504
8504
|
}
|
|
8505
8505
|
var ll = cl;
|
|
8506
8506
|
const hs = u.forwardRef(
|
|
@@ -8520,7 +8520,7 @@ const hs = u.forwardRef(
|
|
|
8520
8520
|
)
|
|
8521
8521
|
);
|
|
8522
8522
|
hs.displayName = ll.displayName;
|
|
8523
|
-
var Tr = "Dialog", [ul,
|
|
8523
|
+
var Tr = "Dialog", [ul, ax] = Ve(Tr), [Mv, Ke] = ul(Tr), dl = (e) => {
|
|
8524
8524
|
const {
|
|
8525
8525
|
__scopeDialog: t,
|
|
8526
8526
|
children: n,
|
|
@@ -8535,7 +8535,7 @@ var Tr = "Dialog", [ul, ox] = Ve(Tr), [Ov, Ke] = ul(Tr), dl = (e) => {
|
|
|
8535
8535
|
caller: Tr
|
|
8536
8536
|
});
|
|
8537
8537
|
return /* @__PURE__ */ c(
|
|
8538
|
-
|
|
8538
|
+
Mv,
|
|
8539
8539
|
{
|
|
8540
8540
|
scope: t,
|
|
8541
8541
|
triggerRef: i,
|
|
@@ -8571,27 +8571,27 @@ var fl = "DialogTrigger", pl = u.forwardRef(
|
|
|
8571
8571
|
}
|
|
8572
8572
|
);
|
|
8573
8573
|
pl.displayName = fl;
|
|
8574
|
-
var ms = "DialogPortal", [
|
|
8574
|
+
var ms = "DialogPortal", [Dv, hl] = ul(ms, {
|
|
8575
8575
|
forceMount: void 0
|
|
8576
8576
|
}), ml = (e) => {
|
|
8577
8577
|
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = Ke(ms, t);
|
|
8578
|
-
return /* @__PURE__ */ c(
|
|
8578
|
+
return /* @__PURE__ */ c(Dv, { scope: t, forceMount: n, children: u.Children.map(r, (a) => /* @__PURE__ */ c(Oe, { present: n || s.open, children: /* @__PURE__ */ c(wr, { asChild: !0, container: o, children: a }) })) });
|
|
8579
8579
|
};
|
|
8580
8580
|
ml.displayName = ms;
|
|
8581
8581
|
var or = "DialogOverlay", gl = u.forwardRef(
|
|
8582
8582
|
(e, t) => {
|
|
8583
8583
|
const n = hl(or, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = Ke(or, e.__scopeDialog);
|
|
8584
|
-
return s.modal ? /* @__PURE__ */ c(Oe, { present: r || s.open, children: /* @__PURE__ */ c(
|
|
8584
|
+
return s.modal ? /* @__PURE__ */ c(Oe, { present: r || s.open, children: /* @__PURE__ */ c(Fv, { ...o, ref: t }) }) : null;
|
|
8585
8585
|
}
|
|
8586
8586
|
);
|
|
8587
8587
|
gl.displayName = or;
|
|
8588
|
-
var
|
|
8588
|
+
var Lv = Ft("DialogOverlay.RemoveScroll"), Fv = u.forwardRef(
|
|
8589
8589
|
(e, t) => {
|
|
8590
8590
|
const { __scopeDialog: n, ...r } = e, o = Ke(or, n);
|
|
8591
8591
|
return (
|
|
8592
8592
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
8593
8593
|
// ie. when `Overlay` and `Content` are siblings
|
|
8594
|
-
/* @__PURE__ */ c(xr, { as:
|
|
8594
|
+
/* @__PURE__ */ c(xr, { as: Lv, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ c(
|
|
8595
8595
|
Z.div,
|
|
8596
8596
|
{
|
|
8597
8597
|
"data-state": bs(o.open),
|
|
@@ -8605,11 +8605,11 @@ var Mv = Ft("DialogOverlay.RemoveScroll"), Dv = u.forwardRef(
|
|
|
8605
8605
|
), xt = "DialogContent", bl = u.forwardRef(
|
|
8606
8606
|
(e, t) => {
|
|
8607
8607
|
const n = hl(xt, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = Ke(xt, e.__scopeDialog);
|
|
8608
|
-
return /* @__PURE__ */ c(Oe, { present: r || s.open, children: s.modal ? /* @__PURE__ */ c(
|
|
8608
|
+
return /* @__PURE__ */ c(Oe, { present: r || s.open, children: s.modal ? /* @__PURE__ */ c($v, { ...o, ref: t }) : /* @__PURE__ */ c(Bv, { ...o, ref: t }) });
|
|
8609
8609
|
}
|
|
8610
8610
|
);
|
|
8611
8611
|
bl.displayName = xt;
|
|
8612
|
-
var
|
|
8612
|
+
var $v = u.forwardRef(
|
|
8613
8613
|
(e, t) => {
|
|
8614
8614
|
const n = Ke(xt, e.__scopeDialog), r = u.useRef(null), o = ae(t, n.contentRef, r);
|
|
8615
8615
|
return u.useEffect(() => {
|
|
@@ -8637,7 +8637,7 @@ var Lv = u.forwardRef(
|
|
|
8637
8637
|
}
|
|
8638
8638
|
);
|
|
8639
8639
|
}
|
|
8640
|
-
),
|
|
8640
|
+
), Bv = u.forwardRef(
|
|
8641
8641
|
(e, t) => {
|
|
8642
8642
|
const n = Ke(xt, e.__scopeDialog), r = u.useRef(!1), o = u.useRef(!1);
|
|
8643
8643
|
return /* @__PURE__ */ c(
|
|
@@ -8688,8 +8688,8 @@ var Lv = u.forwardRef(
|
|
|
8688
8688
|
}
|
|
8689
8689
|
),
|
|
8690
8690
|
/* @__PURE__ */ E(Pe, { children: [
|
|
8691
|
-
/* @__PURE__ */ c(
|
|
8692
|
-
/* @__PURE__ */ c(
|
|
8691
|
+
/* @__PURE__ */ c(Uv, { titleId: i.titleId }),
|
|
8692
|
+
/* @__PURE__ */ c(zv, { contentRef: l, descriptionId: i.descriptionId })
|
|
8693
8693
|
] })
|
|
8694
8694
|
] });
|
|
8695
8695
|
}
|
|
@@ -8725,11 +8725,11 @@ Cl.displayName = Sl;
|
|
|
8725
8725
|
function bs(e) {
|
|
8726
8726
|
return e ? "open" : "closed";
|
|
8727
8727
|
}
|
|
8728
|
-
var El = "DialogTitleWarning", [
|
|
8728
|
+
var El = "DialogTitleWarning", [ix, Nl] = Op(El, {
|
|
8729
8729
|
contentName: xt,
|
|
8730
8730
|
titleName: gs,
|
|
8731
8731
|
docsSlug: "dialog"
|
|
8732
|
-
}),
|
|
8732
|
+
}), Uv = ({ titleId: e }) => {
|
|
8733
8733
|
const t = Nl(El), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
8734
8734
|
|
|
8735
8735
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
@@ -8738,15 +8738,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
8738
8738
|
return u.useEffect(() => {
|
|
8739
8739
|
e && (document.getElementById(e) || console.error(n));
|
|
8740
8740
|
}, [n, e]), null;
|
|
8741
|
-
},
|
|
8742
|
-
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Nl(
|
|
8741
|
+
}, Hv = "DialogDescriptionWarning", zv = ({ contentRef: e, descriptionId: t }) => {
|
|
8742
|
+
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Nl(Hv).contentName}}.`;
|
|
8743
8743
|
return u.useEffect(() => {
|
|
8744
8744
|
var s;
|
|
8745
8745
|
const o = (s = e.current) == null ? void 0 : s.getAttribute("aria-describedby");
|
|
8746
8746
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
8747
8747
|
}, [r, e, t]), null;
|
|
8748
|
-
},
|
|
8749
|
-
const Il =
|
|
8748
|
+
}, Wv = dl, jv = pl, Vv = ml, Rl = gl, Tl = bl, Al = wl, Pl = xl, Kv = Cl;
|
|
8749
|
+
const Il = Wv, Gv = jv, qv = Vv, _l = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
8750
8750
|
Rl,
|
|
8751
8751
|
{
|
|
8752
8752
|
className: A(
|
|
@@ -8758,7 +8758,7 @@ const Il = Hv, Vv = zv, Kv = Wv, _l = u.forwardRef(({ className: e, ...t }, n) =
|
|
|
8758
8758
|
}
|
|
8759
8759
|
));
|
|
8760
8760
|
_l.displayName = Rl.displayName;
|
|
8761
|
-
const
|
|
8761
|
+
const Xv = un(
|
|
8762
8762
|
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
8763
8763
|
{
|
|
8764
8764
|
variants: {
|
|
@@ -8773,17 +8773,17 @@ const Gv = un(
|
|
|
8773
8773
|
side: "right"
|
|
8774
8774
|
}
|
|
8775
8775
|
}
|
|
8776
|
-
), vs = u.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => /* @__PURE__ */ E(
|
|
8776
|
+
), vs = u.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => /* @__PURE__ */ E(qv, { children: [
|
|
8777
8777
|
/* @__PURE__ */ c(_l, {}),
|
|
8778
8778
|
/* @__PURE__ */ E(
|
|
8779
8779
|
Tl,
|
|
8780
8780
|
{
|
|
8781
8781
|
ref: o,
|
|
8782
|
-
className: A(
|
|
8782
|
+
className: A(Xv({ side: e }), t),
|
|
8783
8783
|
...r,
|
|
8784
8784
|
children: [
|
|
8785
8785
|
n,
|
|
8786
|
-
/* @__PURE__ */ E(
|
|
8786
|
+
/* @__PURE__ */ E(Kv, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
8787
8787
|
/* @__PURE__ */ c(Qt, { className: "h-4 w-4" }),
|
|
8788
8788
|
/* @__PURE__ */ c("span", { className: "sr-only", children: "Close" })
|
|
8789
8789
|
] })
|
|
@@ -8848,7 +8848,7 @@ var Dl = Object.freeze({
|
|
|
8848
8848
|
clip: "rect(0, 0, 0, 0)",
|
|
8849
8849
|
whiteSpace: "nowrap",
|
|
8850
8850
|
wordWrap: "normal"
|
|
8851
|
-
}),
|
|
8851
|
+
}), Yv = "VisuallyHidden", Ll = u.forwardRef(
|
|
8852
8852
|
(e, t) => /* @__PURE__ */ c(
|
|
8853
8853
|
Z.span,
|
|
8854
8854
|
{
|
|
@@ -8858,13 +8858,13 @@ var Dl = Object.freeze({
|
|
|
8858
8858
|
}
|
|
8859
8859
|
)
|
|
8860
8860
|
);
|
|
8861
|
-
Ll.displayName =
|
|
8862
|
-
var
|
|
8861
|
+
Ll.displayName = Yv;
|
|
8862
|
+
var Jv = Ll, [Ar, cx] = Ve("Tooltip", [
|
|
8863
8863
|
Gt
|
|
8864
|
-
]), Pr = Gt(), Fl = "TooltipProvider",
|
|
8864
|
+
]), Pr = Gt(), Fl = "TooltipProvider", Zv = 700, Eo = "tooltip.open", [Qv, ws] = Ar(Fl), $l = (e) => {
|
|
8865
8865
|
const {
|
|
8866
8866
|
__scopeTooltip: t,
|
|
8867
|
-
delayDuration: n =
|
|
8867
|
+
delayDuration: n = Zv,
|
|
8868
8868
|
skipDelayDuration: r = 300,
|
|
8869
8869
|
disableHoverableContent: o = !1,
|
|
8870
8870
|
children: s
|
|
@@ -8873,7 +8873,7 @@ var Xv = Ll, [Ar, ax] = Ve("Tooltip", [
|
|
|
8873
8873
|
const f = l.current;
|
|
8874
8874
|
return () => window.clearTimeout(f);
|
|
8875
8875
|
}, []), /* @__PURE__ */ c(
|
|
8876
|
-
|
|
8876
|
+
Qv,
|
|
8877
8877
|
{
|
|
8878
8878
|
scope: t,
|
|
8879
8879
|
isOpenDelayedRef: a,
|
|
@@ -8897,7 +8897,7 @@ var Xv = Ll, [Ar, ax] = Ve("Tooltip", [
|
|
|
8897
8897
|
);
|
|
8898
8898
|
};
|
|
8899
8899
|
$l.displayName = Fl;
|
|
8900
|
-
var ln = "Tooltip", [
|
|
8900
|
+
var ln = "Tooltip", [ew, Ir] = Ar(ln), Bl = (e) => {
|
|
8901
8901
|
const {
|
|
8902
8902
|
__scopeTooltip: t,
|
|
8903
8903
|
children: n,
|
|
@@ -8925,7 +8925,7 @@ var ln = "Tooltip", [Zv, Ir] = Ar(ln), Bl = (e) => {
|
|
|
8925
8925
|
return u.useEffect(() => () => {
|
|
8926
8926
|
v.current && (window.clearTimeout(v.current), v.current = 0);
|
|
8927
8927
|
}, []), /* @__PURE__ */ c(Zo, { ...f, children: /* @__PURE__ */ c(
|
|
8928
|
-
|
|
8928
|
+
ew,
|
|
8929
8929
|
{
|
|
8930
8930
|
scope: t,
|
|
8931
8931
|
contentId: m,
|
|
@@ -8976,19 +8976,19 @@ var No = "TooltipTrigger", Ul = u.forwardRef(
|
|
|
8976
8976
|
}
|
|
8977
8977
|
);
|
|
8978
8978
|
Ul.displayName = No;
|
|
8979
|
-
var
|
|
8979
|
+
var tw = "TooltipPortal", [lx, nw] = Ar(tw, {
|
|
8980
8980
|
forceMount: void 0
|
|
8981
8981
|
}), Ht = "TooltipContent", Hl = u.forwardRef(
|
|
8982
8982
|
(e, t) => {
|
|
8983
|
-
const n =
|
|
8984
|
-
return /* @__PURE__ */ c(Oe, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ c(zl, { side: o, ...s, ref: t }) : /* @__PURE__ */ c(
|
|
8983
|
+
const n = nw(Ht, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, a = Ir(Ht, e.__scopeTooltip);
|
|
8984
|
+
return /* @__PURE__ */ c(Oe, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ c(zl, { side: o, ...s, ref: t }) : /* @__PURE__ */ c(rw, { side: o, ...s, ref: t }) });
|
|
8985
8985
|
}
|
|
8986
|
-
),
|
|
8986
|
+
), rw = u.forwardRef((e, t) => {
|
|
8987
8987
|
const n = Ir(Ht, e.__scopeTooltip), r = ws(Ht, e.__scopeTooltip), o = u.useRef(null), s = ae(t, o), [a, i] = u.useState(null), { trigger: l, onClose: f } = n, d = o.current, { onPointerInTransitChange: p } = r, m = u.useCallback(() => {
|
|
8988
8988
|
i(null), p(!1);
|
|
8989
8989
|
}, [p]), v = u.useCallback(
|
|
8990
8990
|
(g, h) => {
|
|
8991
|
-
const b = g.currentTarget, w = { x: g.clientX, y: g.clientY }, x =
|
|
8991
|
+
const b = g.currentTarget, w = { x: g.clientX, y: g.clientY }, x = cw(w, b.getBoundingClientRect()), y = lw(w, x), C = uw(h.getBoundingClientRect()), T = fw([...y, ...C]);
|
|
8992
8992
|
i(T), p(!0);
|
|
8993
8993
|
},
|
|
8994
8994
|
[p]
|
|
@@ -9003,13 +9003,13 @@ var Qv = "TooltipPortal", [ix, ew] = Ar(Qv, {
|
|
|
9003
9003
|
}, [l, d, v, m]), u.useEffect(() => {
|
|
9004
9004
|
if (a) {
|
|
9005
9005
|
const g = (h) => {
|
|
9006
|
-
const b = h.target, w = { x: h.clientX, y: h.clientY }, x = (l == null ? void 0 : l.contains(b)) || (d == null ? void 0 : d.contains(b)), y = !
|
|
9006
|
+
const b = h.target, w = { x: h.clientX, y: h.clientY }, x = (l == null ? void 0 : l.contains(b)) || (d == null ? void 0 : d.contains(b)), y = !dw(w, a);
|
|
9007
9007
|
x ? m() : y && (m(), f());
|
|
9008
9008
|
};
|
|
9009
9009
|
return document.addEventListener("pointermove", g), () => document.removeEventListener("pointermove", g);
|
|
9010
9010
|
}
|
|
9011
9011
|
}, [l, d, a, f, m]), /* @__PURE__ */ c(zl, { ...e, ref: s });
|
|
9012
|
-
}), [
|
|
9012
|
+
}), [ow, sw] = Ar(ln, { isInside: !1 }), aw = Ad("TooltipContent"), zl = u.forwardRef(
|
|
9013
9013
|
(e, t) => {
|
|
9014
9014
|
const {
|
|
9015
9015
|
__scopeTooltip: n,
|
|
@@ -9052,8 +9052,8 @@ var Qv = "TooltipPortal", [ix, ew] = Ar(Qv, {
|
|
|
9052
9052
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
9053
9053
|
},
|
|
9054
9054
|
children: [
|
|
9055
|
-
/* @__PURE__ */ c(
|
|
9056
|
-
/* @__PURE__ */ c(
|
|
9055
|
+
/* @__PURE__ */ c(aw, { children: r }),
|
|
9056
|
+
/* @__PURE__ */ c(ow, { scope: n, isInside: !0, children: /* @__PURE__ */ c(Jv, { id: l.contentId, role: "tooltip", children: o || r }) })
|
|
9057
9057
|
]
|
|
9058
9058
|
}
|
|
9059
9059
|
)
|
|
@@ -9062,17 +9062,17 @@ var Qv = "TooltipPortal", [ix, ew] = Ar(Qv, {
|
|
|
9062
9062
|
}
|
|
9063
9063
|
);
|
|
9064
9064
|
Hl.displayName = Ht;
|
|
9065
|
-
var Wl = "TooltipArrow",
|
|
9065
|
+
var Wl = "TooltipArrow", iw = u.forwardRef(
|
|
9066
9066
|
(e, t) => {
|
|
9067
9067
|
const { __scopeTooltip: n, ...r } = e, o = Pr(n);
|
|
9068
|
-
return
|
|
9068
|
+
return sw(
|
|
9069
9069
|
Wl,
|
|
9070
9070
|
n
|
|
9071
9071
|
).isInside ? null : /* @__PURE__ */ c(ts, { ...o, ...r, ref: t });
|
|
9072
9072
|
}
|
|
9073
9073
|
);
|
|
9074
|
-
|
|
9075
|
-
function
|
|
9074
|
+
iw.displayName = Wl;
|
|
9075
|
+
function cw(e, t) {
|
|
9076
9076
|
const n = Math.abs(t.top - e.y), r = Math.abs(t.bottom - e.y), o = Math.abs(t.right - e.x), s = Math.abs(t.left - e.x);
|
|
9077
9077
|
switch (Math.min(n, r, o, s)) {
|
|
9078
9078
|
case s:
|
|
@@ -9087,7 +9087,7 @@ function aw(e, t) {
|
|
|
9087
9087
|
throw new Error("unreachable");
|
|
9088
9088
|
}
|
|
9089
9089
|
}
|
|
9090
|
-
function
|
|
9090
|
+
function lw(e, t, n = 5) {
|
|
9091
9091
|
const r = [];
|
|
9092
9092
|
switch (t) {
|
|
9093
9093
|
case "top":
|
|
@@ -9117,7 +9117,7 @@ function iw(e, t, n = 5) {
|
|
|
9117
9117
|
}
|
|
9118
9118
|
return r;
|
|
9119
9119
|
}
|
|
9120
|
-
function
|
|
9120
|
+
function uw(e) {
|
|
9121
9121
|
const { top: t, right: n, bottom: r, left: o } = e;
|
|
9122
9122
|
return [
|
|
9123
9123
|
{ x: o, y: t },
|
|
@@ -9126,7 +9126,7 @@ function cw(e) {
|
|
|
9126
9126
|
{ x: o, y: r }
|
|
9127
9127
|
];
|
|
9128
9128
|
}
|
|
9129
|
-
function
|
|
9129
|
+
function dw(e, t) {
|
|
9130
9130
|
const { x: n, y: r } = e;
|
|
9131
9131
|
let o = !1;
|
|
9132
9132
|
for (let s = 0, a = t.length - 1; s < t.length; a = s++) {
|
|
@@ -9135,11 +9135,11 @@ function lw(e, t) {
|
|
|
9135
9135
|
}
|
|
9136
9136
|
return o;
|
|
9137
9137
|
}
|
|
9138
|
-
function
|
|
9138
|
+
function fw(e) {
|
|
9139
9139
|
const t = e.slice();
|
|
9140
|
-
return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0),
|
|
9140
|
+
return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0), pw(t);
|
|
9141
9141
|
}
|
|
9142
|
-
function
|
|
9142
|
+
function pw(e) {
|
|
9143
9143
|
if (e.length <= 1) return e.slice();
|
|
9144
9144
|
const t = [];
|
|
9145
9145
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -9164,8 +9164,8 @@ function dw(e) {
|
|
|
9164
9164
|
}
|
|
9165
9165
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
9166
9166
|
}
|
|
9167
|
-
var
|
|
9168
|
-
const
|
|
9167
|
+
var hw = $l, mw = Bl, gw = Ul, jl = Hl;
|
|
9168
|
+
const bw = hw, vw = mw, ww = gw, Vl = u.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ c(
|
|
9169
9169
|
jl,
|
|
9170
9170
|
{
|
|
9171
9171
|
ref: r,
|
|
@@ -9178,7 +9178,7 @@ const mw = fw, gw = pw, bw = hw, Vl = u.forwardRef(({ className: e, sideOffset:
|
|
|
9178
9178
|
}
|
|
9179
9179
|
));
|
|
9180
9180
|
Vl.displayName = jl.displayName;
|
|
9181
|
-
const
|
|
9181
|
+
const yw = "sidebar:state", xw = 60 * 60 * 24 * 7, Sw = "16rem", Cw = "18rem", Ew = "3rem", Nw = "b", Kl = u.createContext(null);
|
|
9182
9182
|
function _r() {
|
|
9183
9183
|
const e = u.useContext(Kl);
|
|
9184
9184
|
if (!e)
|
|
@@ -9195,16 +9195,16 @@ const Gl = u.forwardRef(
|
|
|
9195
9195
|
children: s,
|
|
9196
9196
|
...a
|
|
9197
9197
|
}, i) => {
|
|
9198
|
-
const l =
|
|
9198
|
+
const l = Iv(), [f, d] = u.useState(!1), [p, m] = u.useState(e), v = t ?? p, g = u.useCallback(
|
|
9199
9199
|
(x) => {
|
|
9200
9200
|
const y = typeof x == "function" ? x(v) : x;
|
|
9201
|
-
n ? n(y) : m(y), document.cookie = `${
|
|
9201
|
+
n ? n(y) : m(y), document.cookie = `${yw}=${y}; path=/; max-age=${xw}`;
|
|
9202
9202
|
},
|
|
9203
9203
|
[n, v]
|
|
9204
9204
|
), h = u.useCallback(() => l ? d((x) => !x) : g((x) => !x), [l, g, d]);
|
|
9205
9205
|
u.useEffect(() => {
|
|
9206
9206
|
const x = (y) => {
|
|
9207
|
-
y.key ===
|
|
9207
|
+
y.key === Nw && (y.metaKey || y.ctrlKey) && (y.preventDefault(), h());
|
|
9208
9208
|
};
|
|
9209
9209
|
return window.addEventListener("keydown", x), () => window.removeEventListener("keydown", x);
|
|
9210
9210
|
}, [h]);
|
|
@@ -9220,12 +9220,12 @@ const Gl = u.forwardRef(
|
|
|
9220
9220
|
}),
|
|
9221
9221
|
[b, v, g, l, f, d, h]
|
|
9222
9222
|
);
|
|
9223
|
-
return /* @__PURE__ */ c(Kl.Provider, { value: w, children: /* @__PURE__ */ c(
|
|
9223
|
+
return /* @__PURE__ */ c(Kl.Provider, { value: w, children: /* @__PURE__ */ c(bw, { delayDuration: 0, children: /* @__PURE__ */ c(
|
|
9224
9224
|
"div",
|
|
9225
9225
|
{
|
|
9226
9226
|
style: {
|
|
9227
|
-
"--sidebar-width":
|
|
9228
|
-
"--sidebar-width-icon":
|
|
9227
|
+
"--sidebar-width": Sw,
|
|
9228
|
+
"--sidebar-width-icon": Ew,
|
|
9229
9229
|
...o
|
|
9230
9230
|
},
|
|
9231
9231
|
className: A(
|
|
@@ -9268,7 +9268,7 @@ const ql = u.forwardRef(
|
|
|
9268
9268
|
"data-mobile": "true",
|
|
9269
9269
|
className: "w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",
|
|
9270
9270
|
style: {
|
|
9271
|
-
"--sidebar-width":
|
|
9271
|
+
"--sidebar-width": Cw
|
|
9272
9272
|
},
|
|
9273
9273
|
side: e,
|
|
9274
9274
|
children: /* @__PURE__ */ c("div", { className: "flex h-full w-full flex-col", children: o })
|
|
@@ -9343,7 +9343,7 @@ const Xl = u.forwardRef(({ className: e, onClick: t, ...n }, r) => {
|
|
|
9343
9343
|
);
|
|
9344
9344
|
});
|
|
9345
9345
|
Xl.displayName = "SidebarTrigger";
|
|
9346
|
-
const
|
|
9346
|
+
const Rw = u.forwardRef(({ className: e, ...t }, n) => {
|
|
9347
9347
|
const { toggleSidebar: r } = _r();
|
|
9348
9348
|
return /* @__PURE__ */ c(
|
|
9349
9349
|
"button",
|
|
@@ -9367,7 +9367,7 @@ const Ew = u.forwardRef(({ className: e, ...t }, n) => {
|
|
|
9367
9367
|
}
|
|
9368
9368
|
);
|
|
9369
9369
|
});
|
|
9370
|
-
|
|
9370
|
+
Rw.displayName = "SidebarRail";
|
|
9371
9371
|
const Yl = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
9372
9372
|
"main",
|
|
9373
9373
|
{
|
|
@@ -9381,7 +9381,7 @@ const Yl = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
|
9381
9381
|
}
|
|
9382
9382
|
));
|
|
9383
9383
|
Yl.displayName = "SidebarInset";
|
|
9384
|
-
const
|
|
9384
|
+
const Tw = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
9385
9385
|
cn,
|
|
9386
9386
|
{
|
|
9387
9387
|
ref: n,
|
|
@@ -9393,7 +9393,7 @@ const Nw = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
|
9393
9393
|
...t
|
|
9394
9394
|
}
|
|
9395
9395
|
));
|
|
9396
|
-
|
|
9396
|
+
Tw.displayName = "SidebarInput";
|
|
9397
9397
|
const Jl = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
9398
9398
|
"div",
|
|
9399
9399
|
{
|
|
@@ -9404,7 +9404,7 @@ const Jl = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
|
9404
9404
|
}
|
|
9405
9405
|
));
|
|
9406
9406
|
Jl.displayName = "SidebarHeader";
|
|
9407
|
-
const
|
|
9407
|
+
const Aw = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
9408
9408
|
"div",
|
|
9409
9409
|
{
|
|
9410
9410
|
ref: n,
|
|
@@ -9413,8 +9413,8 @@ const Rw = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
|
9413
9413
|
...t
|
|
9414
9414
|
}
|
|
9415
9415
|
));
|
|
9416
|
-
|
|
9417
|
-
const
|
|
9416
|
+
Aw.displayName = "SidebarFooter";
|
|
9417
|
+
const Pw = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
9418
9418
|
hs,
|
|
9419
9419
|
{
|
|
9420
9420
|
ref: n,
|
|
@@ -9423,7 +9423,7 @@ const Tw = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
|
9423
9423
|
...t
|
|
9424
9424
|
}
|
|
9425
9425
|
));
|
|
9426
|
-
|
|
9426
|
+
Pw.displayName = "SidebarSeparator";
|
|
9427
9427
|
const Zl = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
9428
9428
|
"div",
|
|
9429
9429
|
{
|
|
@@ -9461,7 +9461,7 @@ const eu = u.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => /* @__PU
|
|
|
9461
9461
|
}
|
|
9462
9462
|
));
|
|
9463
9463
|
eu.displayName = "SidebarGroupLabel";
|
|
9464
|
-
const
|
|
9464
|
+
const Iw = u.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => /* @__PURE__ */ c(
|
|
9465
9465
|
t ? zt : "button",
|
|
9466
9466
|
{
|
|
9467
9467
|
ref: r,
|
|
@@ -9476,7 +9476,7 @@ const Aw = u.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => /* @__PU
|
|
|
9476
9476
|
...n
|
|
9477
9477
|
}
|
|
9478
9478
|
));
|
|
9479
|
-
|
|
9479
|
+
Iw.displayName = "SidebarGroupAction";
|
|
9480
9480
|
const tu = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
9481
9481
|
"div",
|
|
9482
9482
|
{
|
|
@@ -9507,7 +9507,7 @@ const ru = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
|
9507
9507
|
}
|
|
9508
9508
|
));
|
|
9509
9509
|
ru.displayName = "SidebarMenuItem";
|
|
9510
|
-
const
|
|
9510
|
+
const _w = un(
|
|
9511
9511
|
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
9512
9512
|
{
|
|
9513
9513
|
variants: {
|
|
@@ -9543,14 +9543,14 @@ const Pw = un(
|
|
|
9543
9543
|
"data-sidebar": "menu-button",
|
|
9544
9544
|
"data-size": r,
|
|
9545
9545
|
"data-active": t,
|
|
9546
|
-
className: A(
|
|
9546
|
+
className: A(_w({ variant: n, size: r }), s),
|
|
9547
9547
|
...a
|
|
9548
9548
|
}
|
|
9549
9549
|
);
|
|
9550
9550
|
return o ? (typeof o == "string" && (o = {
|
|
9551
9551
|
children: o
|
|
9552
|
-
}), /* @__PURE__ */ E(
|
|
9553
|
-
/* @__PURE__ */ c(
|
|
9552
|
+
}), /* @__PURE__ */ E(vw, { children: [
|
|
9553
|
+
/* @__PURE__ */ c(ww, { asChild: !0, children: p }),
|
|
9554
9554
|
/* @__PURE__ */ c(
|
|
9555
9555
|
Vl,
|
|
9556
9556
|
{
|
|
@@ -9564,7 +9564,7 @@ const Pw = un(
|
|
|
9564
9564
|
}
|
|
9565
9565
|
);
|
|
9566
9566
|
ou.displayName = "SidebarMenuButton";
|
|
9567
|
-
const
|
|
9567
|
+
const Ow = u.forwardRef(({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }, o) => /* @__PURE__ */ c(
|
|
9568
9568
|
t ? zt : "button",
|
|
9569
9569
|
{
|
|
9570
9570
|
ref: o,
|
|
@@ -9583,8 +9583,8 @@ const Iw = u.forwardRef(({ className: e, asChild: t = !1, showOnHover: n = !1, .
|
|
|
9583
9583
|
...r
|
|
9584
9584
|
}
|
|
9585
9585
|
));
|
|
9586
|
-
|
|
9587
|
-
const
|
|
9586
|
+
Ow.displayName = "SidebarMenuAction";
|
|
9587
|
+
const kw = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
9588
9588
|
"div",
|
|
9589
9589
|
{
|
|
9590
9590
|
ref: n,
|
|
@@ -9601,8 +9601,8 @@ const _w = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
|
9601
9601
|
...t
|
|
9602
9602
|
}
|
|
9603
9603
|
));
|
|
9604
|
-
|
|
9605
|
-
const
|
|
9604
|
+
kw.displayName = "SidebarMenuBadge";
|
|
9605
|
+
const Mw = u.forwardRef(({ className: e, showIcon: t = !1, ...n }, r) => {
|
|
9606
9606
|
const o = u.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
9607
9607
|
return /* @__PURE__ */ E(
|
|
9608
9608
|
"div",
|
|
@@ -9633,8 +9633,8 @@ const Ow = u.forwardRef(({ className: e, showIcon: t = !1, ...n }, r) => {
|
|
|
9633
9633
|
}
|
|
9634
9634
|
);
|
|
9635
9635
|
});
|
|
9636
|
-
|
|
9637
|
-
const
|
|
9636
|
+
Mw.displayName = "SidebarMenuSkeleton";
|
|
9637
|
+
const Dw = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
9638
9638
|
"ul",
|
|
9639
9639
|
{
|
|
9640
9640
|
ref: n,
|
|
@@ -9647,10 +9647,10 @@ const kw = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
|
9647
9647
|
...t
|
|
9648
9648
|
}
|
|
9649
9649
|
));
|
|
9650
|
-
|
|
9651
|
-
const
|
|
9652
|
-
|
|
9653
|
-
const
|
|
9650
|
+
Dw.displayName = "SidebarMenuSub";
|
|
9651
|
+
const Lw = u.forwardRef(({ ...e }, t) => /* @__PURE__ */ c("li", { ref: t, ...e }));
|
|
9652
|
+
Lw.displayName = "SidebarMenuSubItem";
|
|
9653
|
+
const Fw = u.forwardRef(({ asChild: e = !1, size: t = "md", isActive: n, className: r, ...o }, s) => /* @__PURE__ */ c(
|
|
9654
9654
|
e ? zt : "a",
|
|
9655
9655
|
{
|
|
9656
9656
|
ref: s,
|
|
@@ -9668,8 +9668,8 @@ const Dw = u.forwardRef(({ asChild: e = !1, size: t = "md", isActive: n, classNa
|
|
|
9668
9668
|
...o
|
|
9669
9669
|
}
|
|
9670
9670
|
));
|
|
9671
|
-
|
|
9672
|
-
function
|
|
9671
|
+
Fw.displayName = "SidebarMenuSubButton";
|
|
9672
|
+
function ux({
|
|
9673
9673
|
header: e,
|
|
9674
9674
|
sidebarTitle: t = "Threads",
|
|
9675
9675
|
showThreads: n = !0,
|
|
@@ -9704,7 +9704,7 @@ function cx({
|
|
|
9704
9704
|
] })
|
|
9705
9705
|
] }) });
|
|
9706
9706
|
}
|
|
9707
|
-
var
|
|
9707
|
+
var $w = "Label", su = u.forwardRef((e, t) => /* @__PURE__ */ c(
|
|
9708
9708
|
Z.label,
|
|
9709
9709
|
{
|
|
9710
9710
|
...e,
|
|
@@ -9715,15 +9715,15 @@ var Lw = "Label", su = u.forwardRef((e, t) => /* @__PURE__ */ c(
|
|
|
9715
9715
|
}
|
|
9716
9716
|
}
|
|
9717
9717
|
));
|
|
9718
|
-
su.displayName =
|
|
9718
|
+
su.displayName = $w;
|
|
9719
9719
|
var au = su;
|
|
9720
|
-
const
|
|
9720
|
+
const Bw = un(
|
|
9721
9721
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
9722
9722
|
), De = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
9723
9723
|
au,
|
|
9724
9724
|
{
|
|
9725
9725
|
ref: n,
|
|
9726
|
-
className: A(
|
|
9726
|
+
className: A(Bw(), e),
|
|
9727
9727
|
...t
|
|
9728
9728
|
}
|
|
9729
9729
|
));
|
|
@@ -9732,7 +9732,7 @@ function iu(e) {
|
|
|
9732
9732
|
const t = u.useRef({ value: e, previous: e });
|
|
9733
9733
|
return u.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
9734
9734
|
}
|
|
9735
|
-
var Or = "Switch", [
|
|
9735
|
+
var Or = "Switch", [Uw, dx] = Ve(Or), [Hw, zw] = Uw(Or), cu = u.forwardRef(
|
|
9736
9736
|
(e, t) => {
|
|
9737
9737
|
const {
|
|
9738
9738
|
__scopeSwitch: n,
|
|
@@ -9751,7 +9751,7 @@ var Or = "Switch", [$w, lx] = Ve(Or), [Bw, Uw] = $w(Or), cu = u.forwardRef(
|
|
|
9751
9751
|
onChange: f,
|
|
9752
9752
|
caller: Or
|
|
9753
9753
|
});
|
|
9754
|
-
return /* @__PURE__ */ E(
|
|
9754
|
+
return /* @__PURE__ */ E(Hw, { scope: n, checked: w, disabled: i, children: [
|
|
9755
9755
|
/* @__PURE__ */ c(
|
|
9756
9756
|
Z.button,
|
|
9757
9757
|
{
|
|
@@ -9790,7 +9790,7 @@ var Or = "Switch", [$w, lx] = Ve(Or), [Bw, Uw] = $w(Or), cu = u.forwardRef(
|
|
|
9790
9790
|
cu.displayName = Or;
|
|
9791
9791
|
var lu = "SwitchThumb", uu = u.forwardRef(
|
|
9792
9792
|
(e, t) => {
|
|
9793
|
-
const { __scopeSwitch: n, ...r } = e, o =
|
|
9793
|
+
const { __scopeSwitch: n, ...r } = e, o = zw(lu, n);
|
|
9794
9794
|
return /* @__PURE__ */ c(
|
|
9795
9795
|
Z.span,
|
|
9796
9796
|
{
|
|
@@ -9803,7 +9803,7 @@ var lu = "SwitchThumb", uu = u.forwardRef(
|
|
|
9803
9803
|
}
|
|
9804
9804
|
);
|
|
9805
9805
|
uu.displayName = lu;
|
|
9806
|
-
var
|
|
9806
|
+
var Ww = "SwitchBubbleInput", du = u.forwardRef(
|
|
9807
9807
|
({
|
|
9808
9808
|
__scopeSwitch: e,
|
|
9809
9809
|
control: t,
|
|
@@ -9844,11 +9844,11 @@ var Hw = "SwitchBubbleInput", du = u.forwardRef(
|
|
|
9844
9844
|
);
|
|
9845
9845
|
}
|
|
9846
9846
|
);
|
|
9847
|
-
du.displayName =
|
|
9847
|
+
du.displayName = Ww;
|
|
9848
9848
|
function fu(e) {
|
|
9849
9849
|
return e ? "checked" : "unchecked";
|
|
9850
9850
|
}
|
|
9851
|
-
var pu = cu,
|
|
9851
|
+
var pu = cu, jw = uu;
|
|
9852
9852
|
const at = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
9853
9853
|
pu,
|
|
9854
9854
|
{
|
|
@@ -9859,7 +9859,7 @@ const at = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
|
9859
9859
|
...t,
|
|
9860
9860
|
ref: n,
|
|
9861
9861
|
children: /* @__PURE__ */ c(
|
|
9862
|
-
|
|
9862
|
+
jw,
|
|
9863
9863
|
{
|
|
9864
9864
|
className: A(
|
|
9865
9865
|
"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
|
|
@@ -9869,10 +9869,10 @@ const at = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
|
9869
9869
|
}
|
|
9870
9870
|
));
|
|
9871
9871
|
at.displayName = pu.displayName;
|
|
9872
|
-
var
|
|
9873
|
-
|
|
9872
|
+
var Vw = [" ", "Enter", "ArrowUp", "ArrowDown"], Kw = [" ", "Enter"], St = "Select", [kr, Mr, Gw] = zo(St), [qt, fx] = Ve(St, [
|
|
9873
|
+
Gw,
|
|
9874
9874
|
Gt
|
|
9875
|
-
]), Dr = Gt(), [
|
|
9875
|
+
]), Dr = Gt(), [qw, ft] = qt(St), [Xw, Yw] = qt(St), hu = (e) => {
|
|
9876
9876
|
const {
|
|
9877
9877
|
__scopeSelect: t,
|
|
9878
9878
|
children: n,
|
|
@@ -9900,7 +9900,7 @@ var Ww = [" ", "Enter", "ArrowUp", "ArrowDown"], jw = [" ", "Enter"], St = "Sele
|
|
|
9900
9900
|
caller: St
|
|
9901
9901
|
}), K = u.useRef(null), q = b ? g || !!b.closest("form") : !0, [j, P] = u.useState(/* @__PURE__ */ new Set()), B = Array.from(j).map((I) => I.props.value).join(";");
|
|
9902
9902
|
return /* @__PURE__ */ c(Zo, { ...h, children: /* @__PURE__ */ E(
|
|
9903
|
-
|
|
9903
|
+
qw,
|
|
9904
9904
|
{
|
|
9905
9905
|
required: v,
|
|
9906
9906
|
scope: t,
|
|
@@ -9920,7 +9920,7 @@ var Ww = [" ", "Enter", "ArrowUp", "ArrowDown"], jw = [" ", "Enter"], St = "Sele
|
|
|
9920
9920
|
disabled: m,
|
|
9921
9921
|
children: [
|
|
9922
9922
|
/* @__PURE__ */ c(kr.Provider, { scope: t, children: /* @__PURE__ */ c(
|
|
9923
|
-
|
|
9923
|
+
Xw,
|
|
9924
9924
|
{
|
|
9925
9925
|
scope: e.__scopeSelect,
|
|
9926
9926
|
onNativeOptionAdd: u.useCallback((I) => {
|
|
@@ -9996,7 +9996,7 @@ var mu = "SelectTrigger", gu = u.forwardRef(
|
|
|
9996
9996
|
}),
|
|
9997
9997
|
onKeyDown: U(o.onKeyDown, (h) => {
|
|
9998
9998
|
const b = p.current !== "";
|
|
9999
|
-
!(h.ctrlKey || h.altKey || h.metaKey) && h.key.length === 1 && m(h.key), !(b && h.key === " ") &&
|
|
9999
|
+
!(h.ctrlKey || h.altKey || h.metaKey) && h.key.length === 1 && m(h.key), !(b && h.key === " ") && Vw.includes(h.key) && (g(), h.preventDefault());
|
|
10000
10000
|
})
|
|
10001
10001
|
}
|
|
10002
10002
|
) });
|
|
@@ -10020,15 +10020,15 @@ var bu = "SelectValue", vu = u.forwardRef(
|
|
|
10020
10020
|
}
|
|
10021
10021
|
);
|
|
10022
10022
|
vu.displayName = bu;
|
|
10023
|
-
var
|
|
10023
|
+
var Jw = "SelectIcon", wu = u.forwardRef(
|
|
10024
10024
|
(e, t) => {
|
|
10025
10025
|
const { __scopeSelect: n, children: r, ...o } = e;
|
|
10026
10026
|
return /* @__PURE__ */ c(Z.span, { "aria-hidden": !0, ...o, ref: t, children: r || "▼" });
|
|
10027
10027
|
}
|
|
10028
10028
|
);
|
|
10029
|
-
wu.displayName =
|
|
10030
|
-
var
|
|
10031
|
-
yu.displayName =
|
|
10029
|
+
wu.displayName = Jw;
|
|
10030
|
+
var Zw = "SelectPortal", yu = (e) => /* @__PURE__ */ c(wr, { asChild: !0, ...e });
|
|
10031
|
+
yu.displayName = Zw;
|
|
10032
10032
|
var Ct = "SelectContent", xu = u.forwardRef(
|
|
10033
10033
|
(e, t) => {
|
|
10034
10034
|
const n = ft(Ct, e.__scopeSelect), [r, o] = u.useState();
|
|
@@ -10045,7 +10045,7 @@ var Ct = "SelectContent", xu = u.forwardRef(
|
|
|
10045
10045
|
}
|
|
10046
10046
|
);
|
|
10047
10047
|
xu.displayName = Ct;
|
|
10048
|
-
var Ue = 10, [Su, pt] = qt(Ct),
|
|
10048
|
+
var Ue = 10, [Su, pt] = qt(Ct), Qw = "SelectContentImpl", ey = Ft("SelectContent.RemoveScroll"), Cu = u.forwardRef(
|
|
10049
10049
|
(e, t) => {
|
|
10050
10050
|
const {
|
|
10051
10051
|
__scopeSelect: n,
|
|
@@ -10153,7 +10153,7 @@ var Ue = 10, [Su, pt] = qt(Ct), Jw = "SelectContentImpl", Zw = Ft("SelectContent
|
|
|
10153
10153
|
position: r,
|
|
10154
10154
|
isPositioned: j,
|
|
10155
10155
|
searchRef: J,
|
|
10156
|
-
children: /* @__PURE__ */ c(xr, { as:
|
|
10156
|
+
children: /* @__PURE__ */ c(xr, { as: ey, allowPinchZoom: !0, children: /* @__PURE__ */ c(
|
|
10157
10157
|
hr,
|
|
10158
10158
|
{
|
|
10159
10159
|
asChild: !0,
|
|
@@ -10215,8 +10215,8 @@ var Ue = 10, [Su, pt] = qt(Ct), Jw = "SelectContentImpl", Zw = Ft("SelectContent
|
|
|
10215
10215
|
);
|
|
10216
10216
|
}
|
|
10217
10217
|
);
|
|
10218
|
-
Cu.displayName =
|
|
10219
|
-
var
|
|
10218
|
+
Cu.displayName = Qw;
|
|
10219
|
+
var ty = "SelectItemAlignedPosition", Eu = u.forwardRef((e, t) => {
|
|
10220
10220
|
const { __scopeSelect: n, onPlaced: r, ...o } = e, s = ft(Ct, n), a = pt(Ct, n), [i, l] = u.useState(null), [f, d] = u.useState(null), p = ae(t, (R) => d(R)), m = Mr(n), v = u.useRef(!1), g = u.useRef(!0), { viewport: h, selectedItem: b, selectedItemText: w, focusSelectedItem: x } = a, y = u.useCallback(() => {
|
|
10221
10221
|
if (s.trigger && s.valueNode && i && f && h && b && w) {
|
|
10222
10222
|
const R = s.trigger.getBoundingClientRect(), L = f.getBoundingClientRect(), $ = s.valueNode.getBoundingClientRect(), H = w.getBoundingClientRect();
|
|
@@ -10284,7 +10284,7 @@ var Qw = "SelectItemAlignedPosition", Eu = u.forwardRef((e, t) => {
|
|
|
10284
10284
|
[y, x]
|
|
10285
10285
|
);
|
|
10286
10286
|
return /* @__PURE__ */ c(
|
|
10287
|
-
|
|
10287
|
+
ry,
|
|
10288
10288
|
{
|
|
10289
10289
|
scope: n,
|
|
10290
10290
|
contentWrapper: i,
|
|
@@ -10320,8 +10320,8 @@ var Qw = "SelectItemAlignedPosition", Eu = u.forwardRef((e, t) => {
|
|
|
10320
10320
|
}
|
|
10321
10321
|
);
|
|
10322
10322
|
});
|
|
10323
|
-
Eu.displayName =
|
|
10324
|
-
var
|
|
10323
|
+
Eu.displayName = ty;
|
|
10324
|
+
var ny = "SelectPopperPosition", Ro = u.forwardRef((e, t) => {
|
|
10325
10325
|
const {
|
|
10326
10326
|
__scopeSelect: n,
|
|
10327
10327
|
align: r = "start",
|
|
@@ -10349,8 +10349,8 @@ var ey = "SelectPopperPosition", Ro = u.forwardRef((e, t) => {
|
|
|
10349
10349
|
}
|
|
10350
10350
|
);
|
|
10351
10351
|
});
|
|
10352
|
-
Ro.displayName =
|
|
10353
|
-
var [
|
|
10352
|
+
Ro.displayName = ny;
|
|
10353
|
+
var [ry, ys] = qt(Ct, {}), To = "SelectViewport", Nu = u.forwardRef(
|
|
10354
10354
|
(e, t) => {
|
|
10355
10355
|
const { __scopeSelect: n, nonce: r, ...o } = e, s = pt(To, n), a = ys(To, n), i = ae(t, s.onViewportChange), l = u.useRef(0);
|
|
10356
10356
|
return /* @__PURE__ */ E(Pe, { children: [
|
|
@@ -10403,21 +10403,21 @@ var [ty, ys] = qt(Ct, {}), To = "SelectViewport", Nu = u.forwardRef(
|
|
|
10403
10403
|
}
|
|
10404
10404
|
);
|
|
10405
10405
|
Nu.displayName = To;
|
|
10406
|
-
var Ru = "SelectGroup", [
|
|
10406
|
+
var Ru = "SelectGroup", [oy, sy] = qt(Ru), ay = u.forwardRef(
|
|
10407
10407
|
(e, t) => {
|
|
10408
10408
|
const { __scopeSelect: n, ...r } = e, o = He();
|
|
10409
|
-
return /* @__PURE__ */ c(
|
|
10409
|
+
return /* @__PURE__ */ c(oy, { scope: n, id: o, children: /* @__PURE__ */ c(Z.div, { role: "group", "aria-labelledby": o, ...r, ref: t }) });
|
|
10410
10410
|
}
|
|
10411
10411
|
);
|
|
10412
|
-
|
|
10412
|
+
ay.displayName = Ru;
|
|
10413
10413
|
var Tu = "SelectLabel", Au = u.forwardRef(
|
|
10414
10414
|
(e, t) => {
|
|
10415
|
-
const { __scopeSelect: n, ...r } = e, o =
|
|
10415
|
+
const { __scopeSelect: n, ...r } = e, o = sy(Tu, n);
|
|
10416
10416
|
return /* @__PURE__ */ c(Z.div, { id: o.id, ...r, ref: t });
|
|
10417
10417
|
}
|
|
10418
10418
|
);
|
|
10419
10419
|
Au.displayName = Tu;
|
|
10420
|
-
var sr = "SelectItem", [
|
|
10420
|
+
var sr = "SelectItem", [iy, Pu] = qt(sr), Iu = u.forwardRef(
|
|
10421
10421
|
(e, t) => {
|
|
10422
10422
|
const {
|
|
10423
10423
|
__scopeSelect: n,
|
|
@@ -10439,7 +10439,7 @@ var sr = "SelectItem", [sy, Pu] = qt(sr), Iu = u.forwardRef(
|
|
|
10439
10439
|
"A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
|
|
10440
10440
|
);
|
|
10441
10441
|
return /* @__PURE__ */ c(
|
|
10442
|
-
|
|
10442
|
+
iy,
|
|
10443
10443
|
{
|
|
10444
10444
|
scope: n,
|
|
10445
10445
|
value: r,
|
|
@@ -10490,7 +10490,7 @@ var sr = "SelectItem", [sy, Pu] = qt(sr), Iu = u.forwardRef(
|
|
|
10490
10490
|
}),
|
|
10491
10491
|
onKeyDown: U(a.onKeyDown, (x) => {
|
|
10492
10492
|
var C;
|
|
10493
|
-
((C = l.searchRef) == null ? void 0 : C.current) !== "" && x.key === " " || (
|
|
10493
|
+
((C = l.searchRef) == null ? void 0 : C.current) !== "" && x.key === " " || (Kw.includes(x.key) && w(), x.key === " " && x.preventDefault());
|
|
10494
10494
|
})
|
|
10495
10495
|
}
|
|
10496
10496
|
)
|
|
@@ -10503,7 +10503,7 @@ var sr = "SelectItem", [sy, Pu] = qt(sr), Iu = u.forwardRef(
|
|
|
10503
10503
|
Iu.displayName = sr;
|
|
10504
10504
|
var Zt = "SelectItemText", _u = u.forwardRef(
|
|
10505
10505
|
(e, t) => {
|
|
10506
|
-
const { __scopeSelect: n, className: r, style: o, ...s } = e, a = ft(Zt, n), i = pt(Zt, n), l = Pu(Zt, n), f =
|
|
10506
|
+
const { __scopeSelect: n, className: r, style: o, ...s } = e, a = ft(Zt, n), i = pt(Zt, n), l = Pu(Zt, n), f = Yw(Zt, n), [d, p] = u.useState(null), m = ae(
|
|
10507
10507
|
t,
|
|
10508
10508
|
(w) => p(w),
|
|
10509
10509
|
l.onItemTextChange,
|
|
@@ -10604,21 +10604,21 @@ var Lu = u.forwardRef((e, t) => {
|
|
|
10604
10604
|
})
|
|
10605
10605
|
}
|
|
10606
10606
|
);
|
|
10607
|
-
}),
|
|
10607
|
+
}), cy = "SelectSeparator", Fu = u.forwardRef(
|
|
10608
10608
|
(e, t) => {
|
|
10609
10609
|
const { __scopeSelect: n, ...r } = e;
|
|
10610
10610
|
return /* @__PURE__ */ c(Z.div, { "aria-hidden": !0, ...r, ref: t });
|
|
10611
10611
|
}
|
|
10612
10612
|
);
|
|
10613
|
-
Fu.displayName =
|
|
10614
|
-
var Io = "SelectArrow",
|
|
10613
|
+
Fu.displayName = cy;
|
|
10614
|
+
var Io = "SelectArrow", ly = u.forwardRef(
|
|
10615
10615
|
(e, t) => {
|
|
10616
10616
|
const { __scopeSelect: n, ...r } = e, o = Dr(n), s = ft(Io, n), a = pt(Io, n);
|
|
10617
10617
|
return s.open && a.position === "popper" ? /* @__PURE__ */ c(ts, { ...o, ...r, ref: t }) : null;
|
|
10618
10618
|
}
|
|
10619
10619
|
);
|
|
10620
|
-
|
|
10621
|
-
var
|
|
10620
|
+
ly.displayName = Io;
|
|
10621
|
+
var uy = "SelectBubbleInput", $u = u.forwardRef(
|
|
10622
10622
|
({ __scopeSelect: e, value: t, ...n }, r) => {
|
|
10623
10623
|
const o = u.useRef(null), s = ae(r, o), a = iu(t);
|
|
10624
10624
|
return u.useEffect(() => {
|
|
@@ -10643,7 +10643,7 @@ var cy = "SelectBubbleInput", $u = u.forwardRef(
|
|
|
10643
10643
|
);
|
|
10644
10644
|
}
|
|
10645
10645
|
);
|
|
10646
|
-
$u.displayName =
|
|
10646
|
+
$u.displayName = uy;
|
|
10647
10647
|
function Bu(e) {
|
|
10648
10648
|
return e === "" || e === void 0;
|
|
10649
10649
|
}
|
|
@@ -10663,18 +10663,18 @@ function Uu(e) {
|
|
|
10663
10663
|
}
|
|
10664
10664
|
function Hu(e, t, n) {
|
|
10665
10665
|
const o = t.length > 1 && Array.from(t).every((f) => f === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
|
|
10666
|
-
let a =
|
|
10666
|
+
let a = dy(e, Math.max(s, 0));
|
|
10667
10667
|
o.length === 1 && (a = a.filter((f) => f !== n));
|
|
10668
10668
|
const l = a.find(
|
|
10669
10669
|
(f) => f.textValue.toLowerCase().startsWith(o.toLowerCase())
|
|
10670
10670
|
);
|
|
10671
10671
|
return l !== n ? l : void 0;
|
|
10672
10672
|
}
|
|
10673
|
-
function
|
|
10673
|
+
function dy(e, t) {
|
|
10674
10674
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
10675
10675
|
}
|
|
10676
|
-
var
|
|
10677
|
-
const Na =
|
|
10676
|
+
var fy = hu, zu = gu, py = vu, hy = wu, my = yu, Wu = xu, gy = Nu, ju = Au, Vu = Iu, by = _u, vy = ku, Ku = Mu, Gu = Du, qu = Fu;
|
|
10677
|
+
const Na = fy, Ra = py, _o = u.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ E(
|
|
10678
10678
|
zu,
|
|
10679
10679
|
{
|
|
10680
10680
|
ref: r,
|
|
@@ -10685,7 +10685,7 @@ const Na = uy, Ra = dy, _o = u.forwardRef(({ className: e, children: t, ...n },
|
|
|
10685
10685
|
...n,
|
|
10686
10686
|
children: [
|
|
10687
10687
|
t,
|
|
10688
|
-
/* @__PURE__ */ c(
|
|
10688
|
+
/* @__PURE__ */ c(hy, { asChild: !0, children: /* @__PURE__ */ c(Mt, { className: "h-4 w-4 opacity-50" }) })
|
|
10689
10689
|
]
|
|
10690
10690
|
}
|
|
10691
10691
|
));
|
|
@@ -10716,7 +10716,7 @@ const Yu = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
|
10716
10716
|
}
|
|
10717
10717
|
));
|
|
10718
10718
|
Yu.displayName = Gu.displayName;
|
|
10719
|
-
const Oo = u.forwardRef(({ className: e, children: t, position: n = "popper", ...r }, o) => /* @__PURE__ */ c(
|
|
10719
|
+
const Oo = u.forwardRef(({ className: e, children: t, position: n = "popper", ...r }, o) => /* @__PURE__ */ c(my, { children: /* @__PURE__ */ E(
|
|
10720
10720
|
Wu,
|
|
10721
10721
|
{
|
|
10722
10722
|
ref: o,
|
|
@@ -10730,7 +10730,7 @@ const Oo = u.forwardRef(({ className: e, children: t, position: n = "popper", ..
|
|
|
10730
10730
|
children: [
|
|
10731
10731
|
/* @__PURE__ */ c(Xu, {}),
|
|
10732
10732
|
/* @__PURE__ */ c(
|
|
10733
|
-
|
|
10733
|
+
gy,
|
|
10734
10734
|
{
|
|
10735
10735
|
className: A(
|
|
10736
10736
|
"p-1",
|
|
@@ -10744,7 +10744,7 @@ const Oo = u.forwardRef(({ className: e, children: t, position: n = "popper", ..
|
|
|
10744
10744
|
}
|
|
10745
10745
|
) }));
|
|
10746
10746
|
Oo.displayName = Wu.displayName;
|
|
10747
|
-
const
|
|
10747
|
+
const wy = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
10748
10748
|
ju,
|
|
10749
10749
|
{
|
|
10750
10750
|
ref: n,
|
|
@@ -10752,7 +10752,7 @@ const by = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
|
10752
10752
|
...t
|
|
10753
10753
|
}
|
|
10754
10754
|
));
|
|
10755
|
-
|
|
10755
|
+
wy.displayName = ju.displayName;
|
|
10756
10756
|
const mt = u.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ E(
|
|
10757
10757
|
Vu,
|
|
10758
10758
|
{
|
|
@@ -10763,13 +10763,13 @@ const mt = u.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
10763
10763
|
),
|
|
10764
10764
|
...n,
|
|
10765
10765
|
children: [
|
|
10766
|
-
/* @__PURE__ */ c("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ c(
|
|
10767
|
-
/* @__PURE__ */ c(
|
|
10766
|
+
/* @__PURE__ */ c("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ c(vy, { children: /* @__PURE__ */ c(ko, { className: "h-4 w-4" }) }) }),
|
|
10767
|
+
/* @__PURE__ */ c(by, { children: t })
|
|
10768
10768
|
]
|
|
10769
10769
|
}
|
|
10770
10770
|
));
|
|
10771
10771
|
mt.displayName = Vu.displayName;
|
|
10772
|
-
const
|
|
10772
|
+
const yy = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
10773
10773
|
qu,
|
|
10774
10774
|
{
|
|
10775
10775
|
ref: n,
|
|
@@ -10777,7 +10777,7 @@ const vy = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
|
10777
10777
|
...t
|
|
10778
10778
|
}
|
|
10779
10779
|
));
|
|
10780
|
-
|
|
10780
|
+
yy.displayName = qu.displayName;
|
|
10781
10781
|
const Wn = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
10782
10782
|
"div",
|
|
10783
10783
|
{
|
|
@@ -10811,7 +10811,7 @@ const Vn = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
|
10811
10811
|
}
|
|
10812
10812
|
));
|
|
10813
10813
|
Vn.displayName = "CardTitle";
|
|
10814
|
-
const
|
|
10814
|
+
const xy = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
10815
10815
|
"p",
|
|
10816
10816
|
{
|
|
10817
10817
|
ref: n,
|
|
@@ -10819,10 +10819,10 @@ const wy = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
|
10819
10819
|
...t
|
|
10820
10820
|
}
|
|
10821
10821
|
));
|
|
10822
|
-
|
|
10822
|
+
xy.displayName = "CardDescription";
|
|
10823
10823
|
const Kn = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c("div", { ref: n, className: A("p-6 pt-0", e), ...t }));
|
|
10824
10824
|
Kn.displayName = "CardContent";
|
|
10825
|
-
const
|
|
10825
|
+
const Sy = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
10826
10826
|
"div",
|
|
10827
10827
|
{
|
|
10828
10828
|
ref: n,
|
|
@@ -10830,8 +10830,8 @@ const yy = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
|
|
|
10830
10830
|
...t
|
|
10831
10831
|
}
|
|
10832
10832
|
));
|
|
10833
|
-
|
|
10834
|
-
const
|
|
10833
|
+
Sy.displayName = "CardFooter";
|
|
10834
|
+
const Cy = {
|
|
10835
10835
|
api: {
|
|
10836
10836
|
baseUrl: "http://localhost:8000/api",
|
|
10837
10837
|
authToken: "",
|
|
@@ -10850,7 +10850,7 @@ const xy = {
|
|
|
10850
10850
|
showTypingIndicator: !0
|
|
10851
10851
|
}
|
|
10852
10852
|
};
|
|
10853
|
-
function
|
|
10853
|
+
function px({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
10854
10854
|
const [r, o] = Q(!1), [s, a] = Q(!1), [i, l] = Q(e), [f, d] = Q(!1), { toast: p } = li();
|
|
10855
10855
|
we(() => {
|
|
10856
10856
|
const b = JSON.stringify(i) !== JSON.stringify(e);
|
|
@@ -10864,7 +10864,7 @@ function dx({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
10864
10864
|
description: "Your chat configuration has been updated successfully."
|
|
10865
10865
|
});
|
|
10866
10866
|
}, v = () => {
|
|
10867
|
-
l(
|
|
10867
|
+
l(Cy), d(!0), p({
|
|
10868
10868
|
title: "Settings reset",
|
|
10869
10869
|
description: "Configuration has been reset to defaults."
|
|
10870
10870
|
});
|
|
@@ -10886,7 +10886,7 @@ function dx({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
10886
10886
|
}
|
|
10887
10887
|
};
|
|
10888
10888
|
return /* @__PURE__ */ E(Il, { open: r, onOpenChange: o, children: [
|
|
10889
|
-
/* @__PURE__ */ c(
|
|
10889
|
+
/* @__PURE__ */ c(Gv, { asChild: !0, children: /* @__PURE__ */ E(pe, { variant: "outline", size: "sm", className: n, children: [
|
|
10890
10890
|
/* @__PURE__ */ c(xd, { className: "h-4 w-4 mr-2" }),
|
|
10891
10891
|
"Settings",
|
|
10892
10892
|
f && /* @__PURE__ */ c(ri, { variant: "destructive", className: "ml-2 h-4 w-4 p-0" })
|
|
@@ -11135,7 +11135,7 @@ function dx({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
11135
11135
|
] })
|
|
11136
11136
|
] });
|
|
11137
11137
|
}
|
|
11138
|
-
function
|
|
11138
|
+
function hx({
|
|
11139
11139
|
layout: e = "sidebar",
|
|
11140
11140
|
layoutSize: t = "desktop",
|
|
11141
11141
|
showThreads: n = !0,
|
|
@@ -11210,33 +11210,33 @@ function fx({
|
|
|
11210
11210
|
) });
|
|
11211
11211
|
}
|
|
11212
11212
|
export {
|
|
11213
|
-
|
|
11214
|
-
|
|
11215
|
-
|
|
11213
|
+
mp as Api,
|
|
11214
|
+
mp as ApiClient,
|
|
11215
|
+
mp as ChatApi,
|
|
11216
11216
|
zn as ChatInterface,
|
|
11217
|
-
|
|
11217
|
+
ux as ChatMainLayout,
|
|
11218
11218
|
Dn as ChatProvider,
|
|
11219
|
-
|
|
11220
|
-
|
|
11219
|
+
nx as ChatRoutingProvider,
|
|
11220
|
+
px as ChatSettings,
|
|
11221
11221
|
Rn as MarkdownContent,
|
|
11222
|
-
|
|
11222
|
+
th as MessageComponent,
|
|
11223
11223
|
Co as ThreadManager,
|
|
11224
11224
|
ct as apiClient,
|
|
11225
|
-
|
|
11225
|
+
sx as applySettings,
|
|
11226
11226
|
ct as chatApiClient,
|
|
11227
|
-
|
|
11228
|
-
|
|
11227
|
+
hx as default,
|
|
11228
|
+
hp as del,
|
|
11229
11229
|
Be as get,
|
|
11230
|
-
|
|
11231
|
-
|
|
11232
|
-
|
|
11233
|
-
|
|
11234
|
-
|
|
11230
|
+
dp as getChatToken,
|
|
11231
|
+
ox as getCurrentSettings,
|
|
11232
|
+
Rv as getDefaultApiConfig,
|
|
11233
|
+
Tv as getDefaultChatSettings,
|
|
11234
|
+
fp as onChatTokenChanged,
|
|
11235
11235
|
En as post,
|
|
11236
|
-
|
|
11236
|
+
pp as put,
|
|
11237
11237
|
Ws as setChatToken,
|
|
11238
11238
|
Fo as useChat,
|
|
11239
|
-
|
|
11240
|
-
|
|
11241
|
-
|
|
11239
|
+
rx as useChatRouting,
|
|
11240
|
+
gp as useChatStream,
|
|
11241
|
+
xp as useMessagesReducer
|
|
11242
11242
|
};
|