@versini/sassysaint 6.2.0 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{App.D4e44Rzs.js → App.Cs5nDf5j.js} +662 -639
- package/dist/chunks/{MarkdownWithExtra.D7xk9RRF.js → MarkdownWithExtra.D8ZfI-qm.js} +2 -2
- package/dist/chunks/{MessageAssistant.CNnXZvb4.js → MessageAssistant.CusoDhOy.js} +3 -3
- package/dist/chunks/{HeaderToolbar.tIMWuB4m.js → index.BcqQB62k.js} +4 -4
- package/dist/chunks/{index.CUiqvVTR.js → index.Cs6TmwRi.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as l, jsxs as E, Fragment as ke } from "react/jsx-runtime";
|
|
2
|
-
import { g as ye, ACTION_RESTORE as
|
|
2
|
+
import { g as ye, ACTION_RESTORE as pn, ACTION_MESSAGE as Ve, ROLE_ASSISTANT as Pe, ACTION_RESET as Ie, ACTION_MODEL as la, ACTION_STREAMING as ca, ACTION_SORT as bn, ACTION_SEARCH as yn, ACTION_RESET_PROMPT as da, ACTION_TOGGLE_PROMPT as ua, DEFAULT_AI_ENGINE as Te, Y as He, L as vn, j as Nr, C as Cr, LOCAL_STORAGE_PREFIX as At, LOCAL_STORAGE_PRIVATE_DISCLOSURE as kn, un as Fe, ENGINE_ANTHROPIC as xt, ENGINE_OPENAI as Rr, PROMPT_CLASSNAME as xn, PROMPT_EDITABLE_AREA_CLASSNAME as wn, ROLE_SYSTEM as _n, ROLE_INTERNAL as Qt, ROLE_HIDDEN as En, STATS_SEPARATOR as Ir, CLIPBOARD_PROMPT as Lr, TYPE_QUESTION as Tn, ERROR_MESSAGE as Sn, ROLE_USER as $t, FOOTER_DISCLAIMER as Nn, isLastMessageFromRole as Cn, getMessageContaintWrapperClass as Rn, Logo as In, getMainPaddingClass as Or, r as Ln, LOCAL_STORAGE_SEARCH as On, LOCAL_STORAGE_SORT as An } from "./index.Cs6TmwRi.js";
|
|
3
3
|
import f from "clsx";
|
|
4
4
|
import * as G from "react";
|
|
5
|
-
import V, { useRef as A, useState as Z, useCallback as re, useSyncExternalStore as
|
|
6
|
-
import { useMergeRefs as tr, FloatingPortal as ha, FloatingOverlay as
|
|
5
|
+
import V, { useEffect as $, useRef as A, useState as Z, useCallback as re, useSyncExternalStore as $n, useMemo as ma, useId as er, useContext as z, createContext as Bn, useLayoutEffect as Mn, useDebugValue as Vn, forwardRef as ga, lazy as fa, Suspense as Bt, useReducer as wt } from "react";
|
|
6
|
+
import { useMergeRefs as tr, FloatingPortal as ha, FloatingOverlay as Pn, FloatingFocusManager as pa, useFloating as ba, useClick as ya, useDismiss as va, useRole as ka, useInteractions as xa, useFloatingTree as wa, useFloatingNodeId as Dn, useListItem as _a, offset as zn, flip as Un, shift as Hn, autoUpdate as Fn, useListNavigation as Wn, useTypeahead as Gn, FloatingNode as jn, FloatingList as qn, FloatingTree as Kn } from "@floating-ui/react";
|
|
7
7
|
const Ar = ({
|
|
8
8
|
className: e,
|
|
9
9
|
viewBox: t,
|
|
@@ -21,7 +21,7 @@ const Ar = ({
|
|
|
21
21
|
...n,
|
|
22
22
|
children: /* @__PURE__ */ l("path", { d: "M17.304 3.541h-3.672l6.696 16.918H24Zm-10.608 0L0 20.459h3.744l1.37-3.553h7.005l1.369 3.553h3.744L10.536 3.541Zm-.371 10.223L8.616 7.82l2.291 5.945Z" })
|
|
23
23
|
}
|
|
24
|
-
),
|
|
24
|
+
), Yn = ({
|
|
25
25
|
className: e,
|
|
26
26
|
viewBox: t,
|
|
27
27
|
title: r,
|
|
@@ -47,7 +47,7 @@ const Ar = ({
|
|
|
47
47
|
/* @__PURE__ */ l("path", { d: "M0 88C0 39.4 39.4 0 88 0h304c30.9 0 56 25.1 56 56v288c0 22.3-13.1 41.6-32 50.6V464h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H80c-44.2 0-80-35.8-80-80 0-2.7.1-5.4.4-8H0zm80 312c-17.7 0-32 14.3-32 32s14.3 32 32 32h288v-64zm-32-41.3c9.8-4.3 20.6-6.7 32-6.7h312c4.4 0 8-3.6 8-8V56c0-4.4-3.6-8-8-8H88c-22.1 0-40 17.9-40 40zM160 112l8.8-17.7c2.9-5.9 11.4-5.9 14.3 0L192 112l17.7 8.8c5.9 2.9 5.9 11.4 0 14.3L192 144l-8.8 17.7c-2.9 5.9-11.4 5.9-14.3 0L160 144l-17.7-8.8c-5.9-2.9-5.9-11.4 0-14.3zm104 104 16.6-38.8c2.8-6.5 11.9-6.5 14.7 0L312 216l38.8 16.6c6.5 2.8 6.5 11.9 0 14.7L312 264l-16.6 38.8c-2.8 6.5-11.9 6.5-14.7 0L264 264l-38.8-16.6c-6.5-2.8-6.5-11.9 0-14.7z" })
|
|
48
48
|
]
|
|
49
49
|
}
|
|
50
|
-
),
|
|
50
|
+
), Jn = ({
|
|
51
51
|
className: e,
|
|
52
52
|
viewBox: t,
|
|
53
53
|
title: r,
|
|
@@ -70,7 +70,7 @@ const Ar = ({
|
|
|
70
70
|
}
|
|
71
71
|
)
|
|
72
72
|
}
|
|
73
|
-
),
|
|
73
|
+
), Xn = ({
|
|
74
74
|
className: e,
|
|
75
75
|
viewBox: t,
|
|
76
76
|
title: r,
|
|
@@ -96,7 +96,7 @@ const Ar = ({
|
|
|
96
96
|
/* @__PURE__ */ l("path", { d: "m392.4 21.7-30.1 30 97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2l-18.7-18.6c-21.9-21.9-57.3-21.9-79.2 0m-52.7 52.6L172.4 241.7c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5l167.3-167.4z" })
|
|
97
97
|
]
|
|
98
98
|
}
|
|
99
|
-
),
|
|
99
|
+
), Zn = ({
|
|
100
100
|
className: e,
|
|
101
101
|
viewBox: t,
|
|
102
102
|
title: r,
|
|
@@ -139,7 +139,7 @@ const Ar = ({
|
|
|
139
139
|
...n,
|
|
140
140
|
children: /* @__PURE__ */ l("path", { d: "M22.282 9.821a5.99 5.99 0 0 0-.516-4.91 6.05 6.05 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.99 5.99 0 0 0-3.998 2.9 6.05 6.05 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.05 6.05 0 0 0 6.515 2.9A5.99 5.99 0 0 0 13.26 24a6.06 6.06 0 0 0 5.772-4.206 6 6 0 0 0 3.997-2.9 6.06 6.06 0 0 0-.747-7.073zM13.26 22.43a4.48 4.48 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.8.8 0 0 0 .392-.681v-6.737l2.02 1.168a.07.07 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494M3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.77.77 0 0 0 .78 0l5.843-3.369v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646M2.34 7.896a4.5 4.5 0 0 1 2.366-1.973V11.6a.77.77 0 0 0 .388.677l5.815 3.354-2.02 1.168a.08.08 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872zm16.597 3.855-5.833-3.387L15.119 7.2a.08.08 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.79.79 0 0 0-.407-.667zm2.01-3.023-.141-.085-4.774-2.782a.78.78 0 0 0-.785 0L9.409 9.23V6.897a.07.07 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66zm-12.64 4.135-2.02-1.164a.08.08 0 0 1-.038-.057V6.075a4.5 4.5 0 0 1 7.375-3.453l-.142.08-4.778 2.758a.8.8 0 0 0-.393.681zm1.097-2.365 2.602-1.5 2.607 1.5v2.999l-2.597 1.5-2.607-1.5Z" })
|
|
141
141
|
}
|
|
142
|
-
),
|
|
142
|
+
), Qn = ({
|
|
143
143
|
className: e,
|
|
144
144
|
viewBox: t,
|
|
145
145
|
title: r,
|
|
@@ -165,7 +165,7 @@ const Ar = ({
|
|
|
165
165
|
/* @__PURE__ */ l("path", { d: "M380.7 185.8c5.1-6.7 4.2-16.2-2.1-21.8s-15.9-5.3-21.9.7l-179 179-13 13c-3 3-4.7 7.1-4.7 11.3v112c0 13.2 8.1 25 20.3 29.8s26.2 1.6 35.2-8.1l68.5-74-60-25v-13.2z" })
|
|
166
166
|
]
|
|
167
167
|
}
|
|
168
|
-
),
|
|
168
|
+
), eo = ({
|
|
169
169
|
className: e,
|
|
170
170
|
viewBox: t,
|
|
171
171
|
title: r,
|
|
@@ -205,7 +205,7 @@ try {
|
|
|
205
205
|
});
|
|
206
206
|
} catch {
|
|
207
207
|
}
|
|
208
|
-
const
|
|
208
|
+
const to = "av-header", ro = ({
|
|
209
209
|
children: e,
|
|
210
210
|
className: t,
|
|
211
211
|
raw: r = !1,
|
|
@@ -217,7 +217,7 @@ const eo = "av-header", to = ({
|
|
|
217
217
|
noPadding: c = !1
|
|
218
218
|
}) => {
|
|
219
219
|
const d = f(
|
|
220
|
-
|
|
220
|
+
to,
|
|
221
221
|
{
|
|
222
222
|
"border-border-accent": a === "dark" && !r && !n && !i,
|
|
223
223
|
"border-border-medium": a === "light" && !r && !n && !i,
|
|
@@ -239,7 +239,7 @@ const eo = "av-header", to = ({
|
|
|
239
239
|
});
|
|
240
240
|
return /* @__PURE__ */ l("header", { className: d, children: /* @__PURE__ */ l("div", { className: h, children: e }) });
|
|
241
241
|
};
|
|
242
|
-
function
|
|
242
|
+
function ao(e) {
|
|
243
243
|
const t = e.toLowerCase().split("+").map((o) => o.trim()), r = {
|
|
244
244
|
alt: t.includes("alt"),
|
|
245
245
|
ctrl: t.includes("ctrl"),
|
|
@@ -252,7 +252,7 @@ function ro(e) {
|
|
|
252
252
|
key: n
|
|
253
253
|
};
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function no(e, t) {
|
|
256
256
|
const { alt: r, ctrl: a, meta: n, mod: o, shift: i, key: s } = e, { altKey: c, ctrlKey: d, metaKey: h, shiftKey: u, key: m } = t;
|
|
257
257
|
if (r !== c)
|
|
258
258
|
return !1;
|
|
@@ -263,18 +263,33 @@ function ao(e, t) {
|
|
|
263
263
|
return !1;
|
|
264
264
|
return i !== u ? !1 : !!(s && (m.toLowerCase() === s.toLowerCase() || t.code.replace("Key", "").toLowerCase() === s.toLowerCase()));
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
return (t) => ao(
|
|
266
|
+
function Ea(e) {
|
|
267
|
+
return (t) => no(ao(e), t);
|
|
268
268
|
}
|
|
269
269
|
function oo(e) {
|
|
270
270
|
return (t) => {
|
|
271
271
|
const r = "nativeEvent" in t ? t.nativeEvent : t;
|
|
272
272
|
e.forEach(([a, n, o = { preventDefault: !0 }]) => {
|
|
273
|
-
|
|
273
|
+
Ea(a)(r) && (o.preventDefault && t.preventDefault(), n(r));
|
|
274
274
|
});
|
|
275
275
|
};
|
|
276
276
|
}
|
|
277
|
-
function io() {
|
|
277
|
+
function io(e, t, r = !1) {
|
|
278
|
+
return e.target instanceof HTMLElement ? (r || !e.target.isContentEditable) && !t.includes(e.target.tagName) : !0;
|
|
279
|
+
}
|
|
280
|
+
function so(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
|
|
281
|
+
$(() => {
|
|
282
|
+
const a = (n) => {
|
|
283
|
+
e.forEach(
|
|
284
|
+
([o, i, s = { preventDefault: !0 }]) => {
|
|
285
|
+
Ea(o)(n) && io(n, t, r) && (s.preventDefault && n.preventDefault(), i(n));
|
|
286
|
+
}
|
|
287
|
+
);
|
|
288
|
+
};
|
|
289
|
+
return document.documentElement.addEventListener("keydown", a), () => document.documentElement.removeEventListener("keydown", a);
|
|
290
|
+
}, [e, t, r]);
|
|
291
|
+
}
|
|
292
|
+
function lo() {
|
|
278
293
|
const e = A(null), [t, r] = Z(!1);
|
|
279
294
|
return { ref: re((a) => {
|
|
280
295
|
var n, o;
|
|
@@ -283,26 +298,26 @@ function io() {
|
|
|
283
298
|
) : (n = e.current) == null || n.disconnect(), a ? (o = e.current) == null || o.observe(a) : r(!1));
|
|
284
299
|
}, []), inViewport: t };
|
|
285
300
|
}
|
|
286
|
-
function
|
|
301
|
+
function Ta(e, t) {
|
|
287
302
|
window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
|
|
288
303
|
}
|
|
289
304
|
const Br = (e, t) => {
|
|
290
305
|
const r = JSON.stringify(
|
|
291
306
|
typeof t == "function" ? t() : t
|
|
292
307
|
);
|
|
293
|
-
window.localStorage.setItem(e, r),
|
|
294
|
-
},
|
|
295
|
-
window.localStorage.removeItem(e),
|
|
296
|
-
}, Mr = (e) => window.localStorage.getItem(e),
|
|
308
|
+
window.localStorage.setItem(e, r), Ta(e, r);
|
|
309
|
+
}, co = (e) => {
|
|
310
|
+
window.localStorage.removeItem(e), Ta(e, null);
|
|
311
|
+
}, Mr = (e) => window.localStorage.getItem(e), uo = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
297
312
|
function Mt({
|
|
298
313
|
key: e,
|
|
299
314
|
initialValue: t
|
|
300
315
|
}) {
|
|
301
|
-
const r =
|
|
316
|
+
const r = $n(uo, () => Mr(e)), a = re(
|
|
302
317
|
(i) => {
|
|
303
318
|
try {
|
|
304
319
|
const s = typeof i == "function" ? i(JSON.parse(r)) : i;
|
|
305
|
-
s == null ?
|
|
320
|
+
s == null ? co(e) : Br(e, s);
|
|
306
321
|
} catch (s) {
|
|
307
322
|
console.warn(s);
|
|
308
323
|
}
|
|
@@ -313,7 +328,7 @@ function Mt({
|
|
|
313
328
|
}, [t, a]), o = re(() => {
|
|
314
329
|
a(null);
|
|
315
330
|
}, [a]);
|
|
316
|
-
return
|
|
331
|
+
return $(() => {
|
|
317
332
|
try {
|
|
318
333
|
Mr(e) === null && typeof t < "u" && Br(e, t);
|
|
319
334
|
} catch (i) {
|
|
@@ -321,7 +336,7 @@ function Mt({
|
|
|
321
336
|
}
|
|
322
337
|
}, [e, t]), [r ? JSON.parse(r) : null, a, n, o];
|
|
323
338
|
}
|
|
324
|
-
function
|
|
339
|
+
function mo(e) {
|
|
325
340
|
return ma(() => e.every((t) => t == null) ? () => {
|
|
326
341
|
} : (t) => {
|
|
327
342
|
e.forEach((r) => {
|
|
@@ -329,7 +344,7 @@ function co(e) {
|
|
|
329
344
|
});
|
|
330
345
|
}, e);
|
|
331
346
|
}
|
|
332
|
-
function
|
|
347
|
+
function go({
|
|
333
348
|
value: e,
|
|
334
349
|
defaultValue: t,
|
|
335
350
|
finalValue: r,
|
|
@@ -342,13 +357,13 @@ function uo({
|
|
|
342
357
|
), d = (h) => {
|
|
343
358
|
c(h), a == null || a(h);
|
|
344
359
|
};
|
|
345
|
-
return
|
|
360
|
+
return $(() => {
|
|
346
361
|
(async () => e !== void 0 && !o && n > 0 && (await new Promise(
|
|
347
362
|
(h) => setTimeout(h, n)
|
|
348
363
|
), i(!0)))();
|
|
349
364
|
}, [e, n, o]), e !== void 0 ? !o && n > 0 ? ["", a, !0] : [e, a, !0] : [s, d, !1];
|
|
350
365
|
}
|
|
351
|
-
function
|
|
366
|
+
function fo(e) {
|
|
352
367
|
return er();
|
|
353
368
|
}
|
|
354
369
|
/*!
|
|
@@ -367,7 +382,7 @@ try {
|
|
|
367
382
|
const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
|
|
368
383
|
ASC: "asc",
|
|
369
384
|
DESC: "desc"
|
|
370
|
-
},
|
|
385
|
+
}, ho = ({
|
|
371
386
|
mode: e,
|
|
372
387
|
className: t,
|
|
373
388
|
wrapperClassName: r,
|
|
@@ -402,7 +417,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
|
|
|
402
417
|
"text-copy-light dark:text-copy-dark": e === "system",
|
|
403
418
|
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
404
419
|
})
|
|
405
|
-
}),
|
|
420
|
+
}), po = ({
|
|
406
421
|
className: e,
|
|
407
422
|
stickyHeader: t,
|
|
408
423
|
mode: r
|
|
@@ -415,7 +430,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
|
|
|
415
430
|
"shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": t && r === "alt-system"
|
|
416
431
|
},
|
|
417
432
|
e
|
|
418
|
-
),
|
|
433
|
+
), bo = ({
|
|
419
434
|
className: e,
|
|
420
435
|
stickyFooter: t,
|
|
421
436
|
mode: r
|
|
@@ -428,7 +443,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
|
|
|
428
443
|
"shadow-[rgb(65_65_65_/30%)_-0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": t && r === "alt-system"
|
|
429
444
|
},
|
|
430
445
|
e
|
|
431
|
-
),
|
|
446
|
+
), yo = ({
|
|
432
447
|
mode: e,
|
|
433
448
|
className: t,
|
|
434
449
|
cellWrapper: r
|
|
@@ -453,7 +468,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
|
|
|
453
468
|
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": r === Ee && e === "alt-system"
|
|
454
469
|
},
|
|
455
470
|
t
|
|
456
|
-
),
|
|
471
|
+
), vo = ({
|
|
457
472
|
cellWrapper: e,
|
|
458
473
|
className: t,
|
|
459
474
|
compact: r,
|
|
@@ -477,9 +492,9 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
|
|
|
477
492
|
},
|
|
478
493
|
t
|
|
479
494
|
)
|
|
480
|
-
}),
|
|
495
|
+
}), ko = ({
|
|
481
496
|
buttonClassName: e
|
|
482
|
-
}) => f("rounded-none text-sm", e), Vr = "av-button", ar = "icon",
|
|
497
|
+
}) => f("rounded-none text-sm", e), Vr = "av-button", ar = "icon", Sa = "button", Vt = "link", xo = ({
|
|
483
498
|
type: e,
|
|
484
499
|
size: t,
|
|
485
500
|
labelRight: r,
|
|
@@ -488,7 +503,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
|
|
|
488
503
|
}) => {
|
|
489
504
|
const o = "max-h-8 py-0 px-2", i = "max-h-9 h-8 px-3", s = "max-h-12 py-2 px-4";
|
|
490
505
|
switch (e) {
|
|
491
|
-
case
|
|
506
|
+
case Sa:
|
|
492
507
|
case Vt:
|
|
493
508
|
return f({
|
|
494
509
|
[o]: t === "small",
|
|
@@ -508,7 +523,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
|
|
|
508
523
|
"h-12 px-4": t === "large" && (r || a)
|
|
509
524
|
});
|
|
510
525
|
}
|
|
511
|
-
},
|
|
526
|
+
}, wo = ({
|
|
512
527
|
type: e,
|
|
513
528
|
size: t,
|
|
514
529
|
labelRight: r,
|
|
@@ -516,7 +531,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
|
|
|
516
531
|
}) => {
|
|
517
532
|
const n = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
|
|
518
533
|
switch (e) {
|
|
519
|
-
case
|
|
534
|
+
case Sa:
|
|
520
535
|
case Vt:
|
|
521
536
|
return f({
|
|
522
537
|
"text-center": e === Vt,
|
|
@@ -531,7 +546,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
|
|
|
531
546
|
[i]: t === "large" && (r || a)
|
|
532
547
|
});
|
|
533
548
|
}
|
|
534
|
-
},
|
|
549
|
+
}, _o = ({
|
|
535
550
|
mode: e,
|
|
536
551
|
noBackground: t,
|
|
537
552
|
noTruncate: r,
|
|
@@ -567,7 +582,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
|
|
|
567
582
|
return f("not-prose text-copy-lighter", {
|
|
568
583
|
truncate: !r
|
|
569
584
|
});
|
|
570
|
-
},
|
|
585
|
+
}, Eo = ({
|
|
571
586
|
mode: e,
|
|
572
587
|
noBackground: t,
|
|
573
588
|
variant: r
|
|
@@ -597,13 +612,13 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
|
|
|
597
612
|
if (r === "selected")
|
|
598
613
|
return "bg-action-selected-dark";
|
|
599
614
|
}
|
|
600
|
-
},
|
|
615
|
+
}, To = ({
|
|
601
616
|
radius: e
|
|
602
617
|
}) => f({
|
|
603
618
|
"rounded-full": e === "large",
|
|
604
619
|
"rounded-md": e === "medium",
|
|
605
620
|
"rounded-sm": e === "small"
|
|
606
|
-
}),
|
|
621
|
+
}), So = ({
|
|
607
622
|
mode: e,
|
|
608
623
|
disabled: t,
|
|
609
624
|
variant: r
|
|
@@ -633,7 +648,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
|
|
|
633
648
|
});
|
|
634
649
|
if (r === "selected")
|
|
635
650
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
636
|
-
},
|
|
651
|
+
}, No = ({
|
|
637
652
|
mode: e,
|
|
638
653
|
disabled: t,
|
|
639
654
|
variant: r
|
|
@@ -663,7 +678,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
|
|
|
663
678
|
});
|
|
664
679
|
if (r === "selected")
|
|
665
680
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
666
|
-
},
|
|
681
|
+
}, Co = ({
|
|
667
682
|
mode: e,
|
|
668
683
|
noBorder: t,
|
|
669
684
|
variant: r
|
|
@@ -693,14 +708,14 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
|
|
|
693
708
|
});
|
|
694
709
|
if (r === "selected")
|
|
695
710
|
return "border border-border-selected-dark";
|
|
696
|
-
},
|
|
711
|
+
}, Ro = ({
|
|
697
712
|
focusMode: e
|
|
698
713
|
}) => f("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
699
714
|
"focus:outline-focus-dark": e === "dark",
|
|
700
715
|
"focus:outline-focus-light": e === "light",
|
|
701
716
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
702
717
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
703
|
-
}),
|
|
718
|
+
}), Io = ({
|
|
704
719
|
type: e,
|
|
705
720
|
className: t,
|
|
706
721
|
raw: r,
|
|
@@ -719,48 +734,48 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
|
|
|
719
734
|
radius: b
|
|
720
735
|
}) => (m || (m = "primary"), r ? f(Vr, t) : f(
|
|
721
736
|
Vr,
|
|
722
|
-
|
|
737
|
+
_o({
|
|
723
738
|
mode: a,
|
|
724
739
|
variant: m,
|
|
725
740
|
noBackground: u,
|
|
726
741
|
noTruncate: g
|
|
727
742
|
}),
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
743
|
+
Eo({ mode: a, noBackground: u, variant: m }),
|
|
744
|
+
To({ radius: b }),
|
|
745
|
+
xo({
|
|
731
746
|
type: e,
|
|
732
747
|
size: s,
|
|
733
748
|
labelRight: d,
|
|
734
749
|
labelLeft: h,
|
|
735
750
|
align: p
|
|
736
751
|
}),
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
752
|
+
wo({ type: e, size: s, labelRight: d, labelLeft: h }),
|
|
753
|
+
Co({ mode: a, variant: m, noBorder: c }),
|
|
754
|
+
Ro({ focusMode: n }),
|
|
755
|
+
So({ mode: a, variant: m, disabled: o }),
|
|
756
|
+
No({ mode: a, variant: m, disabled: o }),
|
|
742
757
|
{
|
|
743
758
|
"w-full": i,
|
|
744
759
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
745
760
|
},
|
|
746
761
|
t
|
|
747
|
-
)),
|
|
762
|
+
)), Lo = (e, t, r) => {
|
|
748
763
|
var a;
|
|
749
764
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
|
750
|
-
},
|
|
765
|
+
}, Na = V.forwardRef((e, t) => {
|
|
751
766
|
const { onClick: r, noInternalClick: a = !1, ...n } = e;
|
|
752
767
|
return /* @__PURE__ */ l(
|
|
753
768
|
"button",
|
|
754
769
|
{
|
|
755
770
|
ref: t,
|
|
756
771
|
onClick: (o) => {
|
|
757
|
-
|
|
772
|
+
Lo(o, a, r);
|
|
758
773
|
},
|
|
759
774
|
...n
|
|
760
775
|
}
|
|
761
776
|
);
|
|
762
777
|
});
|
|
763
|
-
|
|
778
|
+
Na.displayName = "BaseButton";
|
|
764
779
|
/*!
|
|
765
780
|
@versini/ui-button v4.1.4
|
|
766
781
|
© 2025 gizmette.com
|
|
@@ -774,7 +789,7 @@ try {
|
|
|
774
789
|
});
|
|
775
790
|
} catch {
|
|
776
791
|
}
|
|
777
|
-
const
|
|
792
|
+
const Ca = V.forwardRef(
|
|
778
793
|
({
|
|
779
794
|
children: e,
|
|
780
795
|
disabled: t = !1,
|
|
@@ -796,7 +811,7 @@ const Na = V.forwardRef(
|
|
|
796
811
|
radius: y = "large",
|
|
797
812
|
...k
|
|
798
813
|
}, w) => {
|
|
799
|
-
const _ =
|
|
814
|
+
const _ = Io({
|
|
800
815
|
type: ar,
|
|
801
816
|
mode: r,
|
|
802
817
|
focusMode: a,
|
|
@@ -834,7 +849,7 @@ const Na = V.forwardRef(
|
|
|
834
849
|
}
|
|
835
850
|
) : "";
|
|
836
851
|
return /* @__PURE__ */ l("div", { className: T, children: /* @__PURE__ */ E(
|
|
837
|
-
|
|
852
|
+
Na,
|
|
838
853
|
{
|
|
839
854
|
ref: w,
|
|
840
855
|
className: _,
|
|
@@ -851,7 +866,7 @@ const Na = V.forwardRef(
|
|
|
851
866
|
) });
|
|
852
867
|
}
|
|
853
868
|
);
|
|
854
|
-
|
|
869
|
+
Ca.displayName = "ButtonSort";
|
|
855
870
|
const nr = ({
|
|
856
871
|
children: e,
|
|
857
872
|
fill: t,
|
|
@@ -895,7 +910,7 @@ try {
|
|
|
895
910
|
});
|
|
896
911
|
} catch {
|
|
897
912
|
}
|
|
898
|
-
const
|
|
913
|
+
const Oo = ({
|
|
899
914
|
className: e,
|
|
900
915
|
viewBox: t,
|
|
901
916
|
title: r,
|
|
@@ -921,7 +936,7 @@ const Io = ({
|
|
|
921
936
|
/* @__PURE__ */ l("path", { d: "M137.4 470.6c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 370.7V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v306.7l-41.4-41.3c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96z" })
|
|
922
937
|
]
|
|
923
938
|
}
|
|
924
|
-
),
|
|
939
|
+
), Ao = ({
|
|
925
940
|
className: e,
|
|
926
941
|
viewBox: t,
|
|
927
942
|
title: r,
|
|
@@ -947,7 +962,7 @@ const Io = ({
|
|
|
947
962
|
/* @__PURE__ */ l("path", { d: "M128 480c9 0 17.5-3.8 23.6-10.4l88-96c11.9-13 11.1-33.3-2-45.2s-33.3-11.1-45.2 2L160 365.7V64c0-17.7-14.3-32-32-32S96 46.3 96 64v301.7l-32.4-35.3c-11.9-13-32.2-13.9-45.2-2s-13.9 32.2-2 45.2l88 96c6.1 6.6 14.6 10.4 23.6 10.4" })
|
|
948
963
|
]
|
|
949
964
|
}
|
|
950
|
-
),
|
|
965
|
+
), $o = ({
|
|
951
966
|
className: e,
|
|
952
967
|
viewBox: t,
|
|
953
968
|
title: r,
|
|
@@ -993,7 +1008,7 @@ const Le = V.createContext({
|
|
|
993
1008
|
stickyHeader: !1,
|
|
994
1009
|
stickyFooter: !1,
|
|
995
1010
|
compact: !1
|
|
996
|
-
}),
|
|
1011
|
+
}), Yl = ({
|
|
997
1012
|
children: e,
|
|
998
1013
|
mode: t = "system",
|
|
999
1014
|
caption: r,
|
|
@@ -1006,7 +1021,7 @@ const Le = V.createContext({
|
|
|
1006
1021
|
stickyFooter: d,
|
|
1007
1022
|
...h
|
|
1008
1023
|
}) => {
|
|
1009
|
-
const u =
|
|
1024
|
+
const u = ho({
|
|
1010
1025
|
mode: t,
|
|
1011
1026
|
className: o,
|
|
1012
1027
|
wrapperClassName: i,
|
|
@@ -1032,54 +1047,54 @@ const Le = V.createContext({
|
|
|
1032
1047
|
)
|
|
1033
1048
|
}
|
|
1034
1049
|
);
|
|
1035
|
-
},
|
|
1050
|
+
}, Jl = ({
|
|
1036
1051
|
children: e,
|
|
1037
1052
|
className: t,
|
|
1038
1053
|
...r
|
|
1039
1054
|
}) => {
|
|
1040
1055
|
const a = z(Le);
|
|
1041
1056
|
a.cellWrapper = it;
|
|
1042
|
-
const n =
|
|
1057
|
+
const n = po({
|
|
1043
1058
|
className: t,
|
|
1044
1059
|
mode: a.mode,
|
|
1045
1060
|
stickyHeader: a.stickyHeader
|
|
1046
1061
|
});
|
|
1047
1062
|
return /* @__PURE__ */ l("thead", { className: n, ...r, children: e });
|
|
1048
|
-
},
|
|
1063
|
+
}, Xl = ({
|
|
1049
1064
|
children: e,
|
|
1050
1065
|
className: t,
|
|
1051
1066
|
...r
|
|
1052
1067
|
}) => {
|
|
1053
1068
|
const a = z(Le);
|
|
1054
1069
|
a.cellWrapper = rr;
|
|
1055
|
-
const n =
|
|
1070
|
+
const n = bo({
|
|
1056
1071
|
className: t,
|
|
1057
1072
|
mode: a.mode,
|
|
1058
1073
|
stickyFooter: a.stickyFooter
|
|
1059
1074
|
});
|
|
1060
1075
|
return /* @__PURE__ */ l("tfoot", { className: n, ...r, children: e });
|
|
1061
|
-
},
|
|
1076
|
+
}, Zl = ({ children: e, ...t }) => {
|
|
1062
1077
|
const r = z(Le);
|
|
1063
1078
|
return r.cellWrapper = Ee, /* @__PURE__ */ l("tbody", { ...t, children: e });
|
|
1064
|
-
},
|
|
1079
|
+
}, Ql = ({
|
|
1065
1080
|
children: e,
|
|
1066
1081
|
className: t,
|
|
1067
1082
|
...r
|
|
1068
1083
|
}) => {
|
|
1069
|
-
const a = z(Le), n =
|
|
1084
|
+
const a = z(Le), n = yo({
|
|
1070
1085
|
mode: a.mode,
|
|
1071
1086
|
cellWrapper: a.cellWrapper,
|
|
1072
1087
|
className: t
|
|
1073
1088
|
});
|
|
1074
1089
|
return /* @__PURE__ */ l("tr", { className: n, ...r, children: e });
|
|
1075
|
-
},
|
|
1090
|
+
}, Bo = ({
|
|
1076
1091
|
children: e,
|
|
1077
1092
|
component: t,
|
|
1078
1093
|
className: r,
|
|
1079
1094
|
align: a,
|
|
1080
1095
|
...n
|
|
1081
1096
|
}) => {
|
|
1082
|
-
const o = z(Le), i = t || (o.cellWrapper === it ? "th" : "td"), { mainClasses: s, alignClasses: c } =
|
|
1097
|
+
const o = z(Le), i = t || (o.cellWrapper === it ? "th" : "td"), { mainClasses: s, alignClasses: c } = vo({
|
|
1083
1098
|
cellWrapper: o.cellWrapper,
|
|
1084
1099
|
className: r,
|
|
1085
1100
|
mode: o.mode,
|
|
@@ -1087,7 +1102,7 @@ const Le = V.createContext({
|
|
|
1087
1102
|
align: a
|
|
1088
1103
|
});
|
|
1089
1104
|
return a ? /* @__PURE__ */ l(i, { className: s, ...n, children: /* @__PURE__ */ l("div", { className: c, children: e }) }) : /* @__PURE__ */ l(i, { className: s, ...n, children: e });
|
|
1090
|
-
},
|
|
1105
|
+
}, ec = ({
|
|
1091
1106
|
align: e,
|
|
1092
1107
|
children: t,
|
|
1093
1108
|
buttonClassName: r,
|
|
@@ -1101,9 +1116,9 @@ const Le = V.createContext({
|
|
|
1101
1116
|
cellId: h,
|
|
1102
1117
|
...u
|
|
1103
1118
|
}) => {
|
|
1104
|
-
const m =
|
|
1119
|
+
const m = ko({ buttonClassName: r });
|
|
1105
1120
|
return /* @__PURE__ */ l(
|
|
1106
|
-
|
|
1121
|
+
Bo,
|
|
1107
1122
|
{
|
|
1108
1123
|
component: n,
|
|
1109
1124
|
className: a,
|
|
@@ -1111,7 +1126,7 @@ const Le = V.createContext({
|
|
|
1111
1126
|
"aria-sort": c === Be.ASC && d === h ? "ascending" : c === Be.DESC && d === h ? "descending" : "other",
|
|
1112
1127
|
...u,
|
|
1113
1128
|
children: /* @__PURE__ */ l(
|
|
1114
|
-
|
|
1129
|
+
Ca,
|
|
1115
1130
|
{
|
|
1116
1131
|
active: d === h,
|
|
1117
1132
|
className: m,
|
|
@@ -1122,7 +1137,7 @@ const Le = V.createContext({
|
|
|
1122
1137
|
mode: i,
|
|
1123
1138
|
fullWidth: !0,
|
|
1124
1139
|
labelRight: t,
|
|
1125
|
-
children: c === Be.ASC && d === h ? /* @__PURE__ */ l(
|
|
1140
|
+
children: c === Be.ASC && d === h ? /* @__PURE__ */ l($o, { className: "size-4", monotone: !0 }) : c === Be.DESC && d === h ? /* @__PURE__ */ l(Ao, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Oo, { className: "size-4", monotone: !0 })
|
|
1126
1141
|
}
|
|
1127
1142
|
)
|
|
1128
1143
|
}
|
|
@@ -1130,33 +1145,33 @@ const Le = V.createContext({
|
|
|
1130
1145
|
}, W = [];
|
|
1131
1146
|
for (let e = 0; e < 256; ++e)
|
|
1132
1147
|
W.push((e + 256).toString(16).slice(1));
|
|
1133
|
-
function
|
|
1148
|
+
function Mo(e, t = 0) {
|
|
1134
1149
|
return (W[e[t + 0]] + W[e[t + 1]] + W[e[t + 2]] + W[e[t + 3]] + "-" + W[e[t + 4]] + W[e[t + 5]] + "-" + W[e[t + 6]] + W[e[t + 7]] + "-" + W[e[t + 8]] + W[e[t + 9]] + "-" + W[e[t + 10]] + W[e[t + 11]] + W[e[t + 12]] + W[e[t + 13]] + W[e[t + 14]] + W[e[t + 15]]).toLowerCase();
|
|
1135
1150
|
}
|
|
1136
1151
|
let _t;
|
|
1137
|
-
const
|
|
1138
|
-
function
|
|
1152
|
+
const Vo = new Uint8Array(16);
|
|
1153
|
+
function Po() {
|
|
1139
1154
|
if (!_t) {
|
|
1140
1155
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
1141
1156
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
1142
1157
|
_t = crypto.getRandomValues.bind(crypto);
|
|
1143
1158
|
}
|
|
1144
|
-
return _t(
|
|
1159
|
+
return _t(Vo);
|
|
1145
1160
|
}
|
|
1146
|
-
const
|
|
1161
|
+
const Do = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Pr = { randomUUID: Do };
|
|
1147
1162
|
function or(e, t, r) {
|
|
1148
1163
|
var n;
|
|
1149
1164
|
if (Pr.randomUUID && !e)
|
|
1150
1165
|
return Pr.randomUUID();
|
|
1151
1166
|
e = e || {};
|
|
1152
|
-
const a = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ??
|
|
1167
|
+
const a = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? Po();
|
|
1153
1168
|
if (a.length < 16)
|
|
1154
1169
|
throw new Error("Random bytes length must be >= 16");
|
|
1155
|
-
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128,
|
|
1170
|
+
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Mo(a);
|
|
1156
1171
|
}
|
|
1157
|
-
const
|
|
1172
|
+
const zo = (e, t) => {
|
|
1158
1173
|
var r, a;
|
|
1159
|
-
if ((t == null ? void 0 : t.type) ===
|
|
1174
|
+
if ((t == null ? void 0 : t.type) === pn) {
|
|
1160
1175
|
const n = t.payload.messages.map((o) => ({
|
|
1161
1176
|
message: {
|
|
1162
1177
|
role: o.role,
|
|
@@ -1233,13 +1248,14 @@ const Po = (e, t) => {
|
|
|
1233
1248
|
};
|
|
1234
1249
|
}
|
|
1235
1250
|
}
|
|
1236
|
-
if ((t == null ? void 0 : t.type) === Ie)
|
|
1237
|
-
|
|
1251
|
+
if ((t == null ? void 0 : t.type) === Ie) {
|
|
1252
|
+
let n = !1;
|
|
1253
|
+
return typeof ((r = t == null ? void 0 : t.payload) == null ? void 0 : r.private) == "boolean" ? n = t.payload.private : typeof e.private == "boolean" && (n = e.private), {
|
|
1238
1254
|
...e,
|
|
1239
1255
|
id: or(),
|
|
1240
1256
|
model: e.model,
|
|
1241
|
-
engine: ((
|
|
1242
|
-
private:
|
|
1257
|
+
engine: ((a = t == null ? void 0 : t.payload) == null ? void 0 : a.engine) || e.engine,
|
|
1258
|
+
private: n,
|
|
1243
1259
|
usage: 0,
|
|
1244
1260
|
messages: [],
|
|
1245
1261
|
isComponent: e.isComponent,
|
|
@@ -1247,6 +1263,7 @@ const Po = (e, t) => {
|
|
|
1247
1263
|
streaming: e.streaming,
|
|
1248
1264
|
lastTriggeredTimestamp: e.lastTriggeredTimestamp
|
|
1249
1265
|
};
|
|
1266
|
+
}
|
|
1250
1267
|
if ((t == null ? void 0 : t.type) === la)
|
|
1251
1268
|
return {
|
|
1252
1269
|
...e,
|
|
@@ -1269,15 +1286,15 @@ const Po = (e, t) => {
|
|
|
1269
1286
|
};
|
|
1270
1287
|
}
|
|
1271
1288
|
return e;
|
|
1272
|
-
},
|
|
1289
|
+
}, Uo = (e, t) => {
|
|
1273
1290
|
switch (t == null ? void 0 : t.type) {
|
|
1274
|
-
case
|
|
1291
|
+
case yn:
|
|
1275
1292
|
return {
|
|
1276
1293
|
searchString: t.payload.searchString,
|
|
1277
1294
|
sortedCell: e.sortedCell,
|
|
1278
1295
|
sortDirection: e.sortDirection
|
|
1279
1296
|
};
|
|
1280
|
-
case
|
|
1297
|
+
case bn:
|
|
1281
1298
|
return {
|
|
1282
1299
|
searchString: e.searchString,
|
|
1283
1300
|
sortedCell: t.payload.sortedCell,
|
|
@@ -1286,7 +1303,7 @@ const Po = (e, t) => {
|
|
|
1286
1303
|
default:
|
|
1287
1304
|
return e;
|
|
1288
1305
|
}
|
|
1289
|
-
},
|
|
1306
|
+
}, Ho = (e, t) => {
|
|
1290
1307
|
switch (t == null ? void 0 : t.type) {
|
|
1291
1308
|
case ua:
|
|
1292
1309
|
return {
|
|
@@ -1313,7 +1330,7 @@ var Xe = { exports: {} }, Et = {};
|
|
|
1313
1330
|
* LICENSE file in the root directory of this source tree.
|
|
1314
1331
|
*/
|
|
1315
1332
|
var Dr;
|
|
1316
|
-
function
|
|
1333
|
+
function Fo() {
|
|
1317
1334
|
if (Dr) return Et;
|
|
1318
1335
|
Dr = 1;
|
|
1319
1336
|
var e = V;
|
|
@@ -1364,7 +1381,7 @@ var Tt = {};
|
|
|
1364
1381
|
* LICENSE file in the root directory of this source tree.
|
|
1365
1382
|
*/
|
|
1366
1383
|
var zr;
|
|
1367
|
-
function
|
|
1384
|
+
function Wo() {
|
|
1368
1385
|
return zr || (zr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1369
1386
|
function e(g, p) {
|
|
1370
1387
|
return g === p && (g !== 0 || 1 / g === 1 / p) || g !== g && p !== p;
|
|
@@ -1417,10 +1434,10 @@ function Ho() {
|
|
|
1417
1434
|
}()), Tt;
|
|
1418
1435
|
}
|
|
1419
1436
|
var Ur;
|
|
1420
|
-
function
|
|
1421
|
-
return Ur || (Ur = 1, process.env.NODE_ENV === "production" ? Xe.exports = /* @__PURE__ */
|
|
1437
|
+
function Go() {
|
|
1438
|
+
return Ur || (Ur = 1, process.env.NODE_ENV === "production" ? Xe.exports = /* @__PURE__ */ Fo() : Xe.exports = /* @__PURE__ */ Wo()), Xe.exports;
|
|
1422
1439
|
}
|
|
1423
|
-
var
|
|
1440
|
+
var jo = /* @__PURE__ */ Go(), Hr = Object.prototype.hasOwnProperty;
|
|
1424
1441
|
function Pt(e, t) {
|
|
1425
1442
|
var r, a;
|
|
1426
1443
|
if (e === t) return !0;
|
|
@@ -1448,7 +1465,7 @@ const ie = /* @__PURE__ */ new WeakMap(), he = () => {
|
|
|
1448
1465
|
), Dt = Object, C = (e) => e === X, se = (e) => typeof e == "function", pe = (e, t) => ({
|
|
1449
1466
|
...e,
|
|
1450
1467
|
...t
|
|
1451
|
-
}),
|
|
1468
|
+
}), Ra = (e) => se(e.then), St = {}, Ze = {}, ir = "undefined", st = typeof window != ir, zt = typeof document != ir, qo = () => st && typeof window.requestAnimationFrame != ir, Ia = (e, t) => {
|
|
1452
1469
|
const r = ie.get(e);
|
|
1453
1470
|
return [
|
|
1454
1471
|
// Getter
|
|
@@ -1467,18 +1484,18 @@ const ie = /* @__PURE__ */ new WeakMap(), he = () => {
|
|
|
1467
1484
|
];
|
|
1468
1485
|
};
|
|
1469
1486
|
let Ut = !0;
|
|
1470
|
-
const
|
|
1487
|
+
const Ko = () => Ut, [Ht, Ft] = st && window.addEventListener ? [
|
|
1471
1488
|
window.addEventListener.bind(window),
|
|
1472
1489
|
window.removeEventListener.bind(window)
|
|
1473
1490
|
] : [
|
|
1474
1491
|
he,
|
|
1475
1492
|
he
|
|
1476
|
-
],
|
|
1493
|
+
], Yo = () => {
|
|
1477
1494
|
const e = zt && document.visibilityState;
|
|
1478
1495
|
return C(e) || e !== "hidden";
|
|
1479
|
-
},
|
|
1496
|
+
}, Jo = (e) => (zt && document.addEventListener("visibilitychange", e), Ht("focus", e), () => {
|
|
1480
1497
|
zt && document.removeEventListener("visibilitychange", e), Ft("focus", e);
|
|
1481
|
-
}),
|
|
1498
|
+
}), Xo = (e) => {
|
|
1482
1499
|
const t = () => {
|
|
1483
1500
|
Ut = !0, e();
|
|
1484
1501
|
}, r = () => {
|
|
@@ -1487,23 +1504,23 @@ const jo = () => Ut, [Ht, Ft] = st && window.addEventListener ? [
|
|
|
1487
1504
|
return Ht("online", t), Ht("offline", r), () => {
|
|
1488
1505
|
Ft("online", t), Ft("offline", r);
|
|
1489
1506
|
};
|
|
1490
|
-
},
|
|
1491
|
-
isOnline:
|
|
1492
|
-
isVisible:
|
|
1493
|
-
},
|
|
1494
|
-
initFocus:
|
|
1495
|
-
initReconnect:
|
|
1496
|
-
}, Fr = !V.useId, De = !st || "Deno" in globalThis,
|
|
1507
|
+
}, Zo = {
|
|
1508
|
+
isOnline: Ko,
|
|
1509
|
+
isVisible: Yo
|
|
1510
|
+
}, Qo = {
|
|
1511
|
+
initFocus: Jo,
|
|
1512
|
+
initReconnect: Xo
|
|
1513
|
+
}, Fr = !V.useId, De = !st || "Deno" in globalThis, ei = (e) => qo() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Nt = De ? $ : Mn, Ct = typeof navigator < "u" && navigator.connection, Wr = !De && Ct && ([
|
|
1497
1514
|
"slow-2g",
|
|
1498
1515
|
"2g"
|
|
1499
1516
|
].includes(Ct.effectiveType) || Ct.saveData), Qe = /* @__PURE__ */ new WeakMap(), Rt = (e, t) => Dt.prototype.toString.call(e) === `[object ${t}]`;
|
|
1500
|
-
let
|
|
1517
|
+
let ti = 0;
|
|
1501
1518
|
const Wt = (e) => {
|
|
1502
1519
|
const t = typeof e, r = Rt(e, "Date"), a = Rt(e, "RegExp"), n = Rt(e, "Object");
|
|
1503
1520
|
let o, i;
|
|
1504
1521
|
if (Dt(e) === e && !r && !a) {
|
|
1505
1522
|
if (o = Qe.get(e), o) return o;
|
|
1506
|
-
if (o = ++
|
|
1523
|
+
if (o = ++ti + "~", Qe.set(e, o), Array.isArray(e)) {
|
|
1507
1524
|
for (o = "@", i = 0; i < e.length; i++)
|
|
1508
1525
|
o += Wt(e[i]) + ",";
|
|
1509
1526
|
Qe.set(e, o);
|
|
@@ -1531,16 +1548,16 @@ const Wt = (e) => {
|
|
|
1531
1548
|
t
|
|
1532
1549
|
];
|
|
1533
1550
|
};
|
|
1534
|
-
let
|
|
1535
|
-
const Gt = () => ++
|
|
1551
|
+
let ri = 0;
|
|
1552
|
+
const Gt = () => ++ri, La = 0, Oa = 1, Aa = 2, ai = 3;
|
|
1536
1553
|
var $e = {
|
|
1537
1554
|
__proto__: null,
|
|
1538
|
-
ERROR_REVALIDATE_EVENT:
|
|
1539
|
-
FOCUS_EVENT:
|
|
1540
|
-
MUTATE_EVENT:
|
|
1541
|
-
RECONNECT_EVENT:
|
|
1555
|
+
ERROR_REVALIDATE_EVENT: ai,
|
|
1556
|
+
FOCUS_EVENT: La,
|
|
1557
|
+
MUTATE_EVENT: Aa,
|
|
1558
|
+
RECONNECT_EVENT: Oa
|
|
1542
1559
|
};
|
|
1543
|
-
async function
|
|
1560
|
+
async function $a(...e) {
|
|
1544
1561
|
const [t, r, a, n] = e, o = pe({
|
|
1545
1562
|
populateCache: !0,
|
|
1546
1563
|
throwOnError: !0
|
|
@@ -1562,9 +1579,9 @@ async function Aa(...e) {
|
|
|
1562
1579
|
async function u(m) {
|
|
1563
1580
|
const [g] = lt(m);
|
|
1564
1581
|
if (!g) return;
|
|
1565
|
-
const [p, b] =
|
|
1566
|
-
const
|
|
1567
|
-
return (se(o.revalidate) ? o.revalidate(p().data, m) : o.revalidate !== !1) && (delete k[g], delete w[g],
|
|
1582
|
+
const [p, b] = Ia(t, g), [v, y, k, w] = ie.get(t), _ = () => {
|
|
1583
|
+
const B = v[g];
|
|
1584
|
+
return (se(o.revalidate) ? o.revalidate(p().data, m) : o.revalidate !== !1) && (delete k[g], delete w[g], B && B[0]) ? B[0](Aa).then(() => p().data) : p().data;
|
|
1568
1585
|
};
|
|
1569
1586
|
if (e.length < 3)
|
|
1570
1587
|
return _();
|
|
@@ -1581,12 +1598,12 @@ async function Aa(...e) {
|
|
|
1581
1598
|
})), se(x))
|
|
1582
1599
|
try {
|
|
1583
1600
|
x = x(P);
|
|
1584
|
-
} catch (
|
|
1585
|
-
T =
|
|
1601
|
+
} catch (B) {
|
|
1602
|
+
T = B;
|
|
1586
1603
|
}
|
|
1587
|
-
if (x &&
|
|
1588
|
-
if (x = await x.catch((
|
|
1589
|
-
T =
|
|
1604
|
+
if (x && Ra(x))
|
|
1605
|
+
if (x = await x.catch((B) => {
|
|
1606
|
+
T = B;
|
|
1590
1607
|
}), S !== y[g][0]) {
|
|
1591
1608
|
if (T) throw T;
|
|
1592
1609
|
return x;
|
|
@@ -1596,9 +1613,9 @@ async function Aa(...e) {
|
|
|
1596
1613
|
}));
|
|
1597
1614
|
if (i && !T)
|
|
1598
1615
|
if (se(i)) {
|
|
1599
|
-
const
|
|
1616
|
+
const B = i(x, P);
|
|
1600
1617
|
b({
|
|
1601
|
-
data:
|
|
1618
|
+
data: B,
|
|
1602
1619
|
error: X,
|
|
1603
1620
|
_c: X
|
|
1604
1621
|
});
|
|
@@ -1622,9 +1639,9 @@ async function Aa(...e) {
|
|
|
1622
1639
|
const Gr = (e, t) => {
|
|
1623
1640
|
for (const r in e)
|
|
1624
1641
|
e[r][0] && e[r][0](t);
|
|
1625
|
-
},
|
|
1642
|
+
}, ni = (e, t) => {
|
|
1626
1643
|
if (!ie.has(e)) {
|
|
1627
|
-
const r = pe(
|
|
1644
|
+
const r = pe(Qo, t), a = {}, n = $a.bind(X, e);
|
|
1628
1645
|
let o = he;
|
|
1629
1646
|
const i = {}, s = (h, u) => {
|
|
1630
1647
|
const m = i[h] || [];
|
|
@@ -1645,7 +1662,7 @@ const Gr = (e, t) => {
|
|
|
1645
1662
|
c,
|
|
1646
1663
|
s
|
|
1647
1664
|
]), !De)) {
|
|
1648
|
-
const h = r.initFocus(setTimeout.bind(X, Gr.bind(X, a,
|
|
1665
|
+
const h = r.initFocus(setTimeout.bind(X, Gr.bind(X, a, La))), u = r.initReconnect(setTimeout.bind(X, Gr.bind(X, a, Oa)));
|
|
1649
1666
|
o = () => {
|
|
1650
1667
|
h && h(), u && u(), ie.delete(e);
|
|
1651
1668
|
};
|
|
@@ -1662,16 +1679,16 @@ const Gr = (e, t) => {
|
|
|
1662
1679
|
e,
|
|
1663
1680
|
ie.get(e)[4]
|
|
1664
1681
|
];
|
|
1665
|
-
},
|
|
1682
|
+
}, oi = (e, t, r, a, n) => {
|
|
1666
1683
|
const o = r.errorRetryCount, i = n.retryCount, s = ~~((Math.random() + 0.5) * (1 << (i < 8 ? i : 8))) * r.errorRetryInterval;
|
|
1667
1684
|
!C(o) && i > o || setTimeout(a, s, n);
|
|
1668
|
-
},
|
|
1685
|
+
}, ii = Pt, [sr, si] = ni(/* @__PURE__ */ new Map()), li = pe(
|
|
1669
1686
|
{
|
|
1670
1687
|
// events
|
|
1671
1688
|
onLoadingSlow: he,
|
|
1672
1689
|
onSuccess: he,
|
|
1673
1690
|
onError: he,
|
|
1674
|
-
onErrorRetry:
|
|
1691
|
+
onErrorRetry: oi,
|
|
1675
1692
|
onDiscarded: he,
|
|
1676
1693
|
// switches
|
|
1677
1694
|
revalidateOnFocus: !0,
|
|
@@ -1684,24 +1701,24 @@ const Gr = (e, t) => {
|
|
|
1684
1701
|
dedupingInterval: 2 * 1e3,
|
|
1685
1702
|
loadingTimeout: Wr ? 5e3 : 3e3,
|
|
1686
1703
|
// providers
|
|
1687
|
-
compare:
|
|
1704
|
+
compare: ii,
|
|
1688
1705
|
isPaused: () => !1,
|
|
1689
1706
|
cache: sr,
|
|
1690
|
-
mutate:
|
|
1707
|
+
mutate: si,
|
|
1691
1708
|
fallback: {}
|
|
1692
1709
|
},
|
|
1693
1710
|
// use web preset by default
|
|
1694
|
-
|
|
1695
|
-
),
|
|
1711
|
+
Zo
|
|
1712
|
+
), ci = (e, t) => {
|
|
1696
1713
|
const r = pe(e, t);
|
|
1697
1714
|
if (t) {
|
|
1698
1715
|
const { use: a, fallback: n } = e, { use: o, fallback: i } = t;
|
|
1699
1716
|
a && o && (r.use = a.concat(o)), n && i && (r.fallback = pe(n, i));
|
|
1700
1717
|
}
|
|
1701
1718
|
return r;
|
|
1702
|
-
},
|
|
1703
|
-
|
|
1704
|
-
},
|
|
1719
|
+
}, di = Bn({}), ui = "$inf$", Ba = st && window.__SWR_DEVTOOLS_USE__, mi = Ba ? window.__SWR_DEVTOOLS_USE__ : [], gi = () => {
|
|
1720
|
+
Ba && (window.__SWR_DEVTOOLS_REACT__ = V);
|
|
1721
|
+
}, fi = (e) => se(e[1]) ? [
|
|
1705
1722
|
e[0],
|
|
1706
1723
|
e[1],
|
|
1707
1724
|
e[2] || {}
|
|
@@ -1709,32 +1726,32 @@ const Gr = (e, t) => {
|
|
|
1709
1726
|
e[0],
|
|
1710
1727
|
null,
|
|
1711
1728
|
(e[1] === null ? e[2] : e[1]) || {}
|
|
1712
|
-
],
|
|
1729
|
+
], hi = () => pe(li, z(di)), Ma = (e, t) => {
|
|
1713
1730
|
const [r, a] = lt(e), [, , , n] = ie.get(sr);
|
|
1714
1731
|
if (n[r]) return n[r];
|
|
1715
1732
|
const o = t(a);
|
|
1716
1733
|
return n[r] = o, o;
|
|
1717
|
-
},
|
|
1734
|
+
}, pi = (e) => (t, r, a) => e(t, r && ((...o) => {
|
|
1718
1735
|
const [i] = lt(t), [, , , s] = ie.get(sr);
|
|
1719
|
-
if (i.startsWith(
|
|
1736
|
+
if (i.startsWith(ui))
|
|
1720
1737
|
return r(...o);
|
|
1721
1738
|
const c = s[i];
|
|
1722
1739
|
return C(c) ? r(...o) : (delete s[i], c);
|
|
1723
|
-
}), a),
|
|
1724
|
-
const a =
|
|
1740
|
+
}), a), bi = mi.concat(pi), yi = (e) => function(...r) {
|
|
1741
|
+
const a = hi(), [n, o, i] = fi(r), s = ci(a, i);
|
|
1725
1742
|
let c = e;
|
|
1726
|
-
const { use: d } = s, h = (d || []).concat(
|
|
1743
|
+
const { use: d } = s, h = (d || []).concat(bi);
|
|
1727
1744
|
for (let u = h.length; u--; )
|
|
1728
1745
|
c = h[u](c);
|
|
1729
1746
|
return c(n, o || s.fetcher || null, s);
|
|
1730
|
-
},
|
|
1747
|
+
}, vi = (e, t, r) => {
|
|
1731
1748
|
const a = t[e] || (t[e] = []);
|
|
1732
1749
|
return a.push(r), () => {
|
|
1733
1750
|
const n = a.indexOf(r);
|
|
1734
1751
|
n >= 0 && (a[n] = a[a.length - 1], a.pop());
|
|
1735
1752
|
};
|
|
1736
1753
|
};
|
|
1737
|
-
|
|
1754
|
+
gi();
|
|
1738
1755
|
const It = V.use || // This extra generic is to avoid TypeScript mixing up the generic and JSX sytax
|
|
1739
1756
|
// and emitting an error.
|
|
1740
1757
|
// We assume that this is only for the `use(thenable)` case, not `use(context)`.
|
|
@@ -1756,14 +1773,14 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1756
1773
|
}
|
|
1757
1774
|
}), Lt = {
|
|
1758
1775
|
dedupe: !0
|
|
1759
|
-
},
|
|
1760
|
-
const { cache: a, compare: n, suspense: o, fallbackData: i, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: d, refreshWhenHidden: h, refreshWhenOffline: u, keepPreviousData: m } = r, [g, p, b, v] = ie.get(a), [y, k] = lt(e), w = A(!1), _ = A(!1), x = A(y), T = A(t), S = A(r), N = () => S.current, D = () => N().isVisible() && N().isOnline(), [O, j, P,
|
|
1776
|
+
}, ki = (e, t, r) => {
|
|
1777
|
+
const { cache: a, compare: n, suspense: o, fallbackData: i, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: d, refreshWhenHidden: h, refreshWhenOffline: u, keepPreviousData: m } = r, [g, p, b, v] = ie.get(a), [y, k] = lt(e), w = A(!1), _ = A(!1), x = A(y), T = A(t), S = A(r), N = () => S.current, D = () => N().isVisible() && N().isOnline(), [O, j, P, B] = Ia(a, y), R = A({}).current, Q = C(i) ? C(r.fallback) ? X : r.fallback[y] : i, K = (I, L) => {
|
|
1761
1778
|
for (const q in R) {
|
|
1762
|
-
const
|
|
1763
|
-
if (
|
|
1764
|
-
if (!n(I[
|
|
1779
|
+
const M = q;
|
|
1780
|
+
if (M === "data") {
|
|
1781
|
+
if (!n(I[M], L[M]) && (!C(I[M]) || !n(Je, L[M])))
|
|
1765
1782
|
return !1;
|
|
1766
|
-
} else if (L[
|
|
1783
|
+
} else if (L[M] !== I[M])
|
|
1767
1784
|
return !1;
|
|
1768
1785
|
}
|
|
1769
1786
|
return !0;
|
|
@@ -1775,7 +1792,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1775
1792
|
isLoading: !0,
|
|
1776
1793
|
...ue
|
|
1777
1794
|
} : ue;
|
|
1778
|
-
}, q = O(),
|
|
1795
|
+
}, q = O(), M = B(), oe = L(q), _e = q === M ? oe : L(M);
|
|
1779
1796
|
let F = oe;
|
|
1780
1797
|
return [
|
|
1781
1798
|
() => {
|
|
@@ -1787,7 +1804,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1787
1804
|
}, [
|
|
1788
1805
|
a,
|
|
1789
1806
|
y
|
|
1790
|
-
]), U =
|
|
1807
|
+
]), U = jo.useSyncExternalStore(re(
|
|
1791
1808
|
(I) => P(y, (L, q) => {
|
|
1792
1809
|
K(q, L) || I();
|
|
1793
1810
|
}),
|
|
@@ -1796,12 +1813,12 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1796
1813
|
a,
|
|
1797
1814
|
y
|
|
1798
1815
|
]
|
|
1799
|
-
), Y[0], Y[1]), H = !w.current, yt = g[y] && g[y].length > 0, xe = U.data, we = C(xe) ? Q &&
|
|
1816
|
+
), Y[0], Y[1]), H = !w.current, yt = g[y] && g[y].length > 0, xe = U.data, we = C(xe) ? Q && Ra(Q) ? It(Q) : Q : xe, Ye = U.error, kr = A(we), Je = m ? C(xe) ? kr.current : xe : we, xr = yt && !C(Ye) ? !1 : H && !C(s) ? s : N().isPaused() ? !1 : o ? C(we) ? !1 : c : C(we) || c, wr = !!(y && t && H && xr), gn = C(U.isValidating) ? wr : U.isValidating, fn = C(U.isLoading) ? wr : U.isLoading, Ae = re(
|
|
1800
1817
|
async (I) => {
|
|
1801
1818
|
const L = T.current;
|
|
1802
1819
|
if (!y || !L || _.current || N().isPaused())
|
|
1803
1820
|
return !1;
|
|
1804
|
-
let q,
|
|
1821
|
+
let q, M, oe = !0;
|
|
1805
1822
|
const _e = I || {}, F = !b[y] || !_e.dedupe, J = () => Fr ? !_.current && y === x.current && w.current : y === x.current, ue = {
|
|
1806
1823
|
isValidating: !1,
|
|
1807
1824
|
isLoading: !1
|
|
@@ -1809,7 +1826,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1809
1826
|
j(ue);
|
|
1810
1827
|
}, Tr = () => {
|
|
1811
1828
|
const te = b[y];
|
|
1812
|
-
te && te[1] ===
|
|
1829
|
+
te && te[1] === M && delete b[y];
|
|
1813
1830
|
}, Sr = {
|
|
1814
1831
|
isValidating: !0
|
|
1815
1832
|
};
|
|
@@ -1820,13 +1837,13 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1820
1837
|
}, r.loadingTimeout), b[y] = [
|
|
1821
1838
|
L(k),
|
|
1822
1839
|
Gt()
|
|
1823
|
-
]), [q,
|
|
1840
|
+
]), [q, M] = b[y], q = await q, F && setTimeout(Tr, r.dedupingInterval), !b[y] || b[y][1] !== M)
|
|
1824
1841
|
return F && J() && N().onDiscarded(y), !1;
|
|
1825
1842
|
ue.error = X;
|
|
1826
1843
|
const te = p[y];
|
|
1827
1844
|
if (!C(te) && // case 1
|
|
1828
|
-
(
|
|
1829
|
-
|
|
1845
|
+
(M <= te[0] || // case 2
|
|
1846
|
+
M <= te[1] || // case 3
|
|
1830
1847
|
te[1] === 0))
|
|
1831
1848
|
return Er(), F && J() && N().onDiscarded(y), !1;
|
|
1832
1849
|
const me = O().data;
|
|
@@ -1834,9 +1851,9 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1834
1851
|
} catch (te) {
|
|
1835
1852
|
Tr();
|
|
1836
1853
|
const me = N(), { shouldRetryOnError: vt } = me;
|
|
1837
|
-
me.isPaused() || (ue.error = te, F && J() && (me.onError(te, y, me), (vt === !0 || se(vt) && vt(te)) && (!N().revalidateOnFocus || !N().revalidateOnReconnect || D()) && me.onErrorRetry(te, y, me, (
|
|
1854
|
+
me.isPaused() || (ue.error = te, F && J() && (me.onError(te, y, me), (vt === !0 || se(vt) && vt(te)) && (!N().revalidateOnFocus || !N().revalidateOnReconnect || D()) && me.onErrorRetry(te, y, me, (hn) => {
|
|
1838
1855
|
const kt = g[y];
|
|
1839
|
-
kt && kt[0] && kt[0]($e.ERROR_REVALIDATE_EVENT,
|
|
1856
|
+
kt && kt[0] && kt[0]($e.ERROR_REVALIDATE_EVENT, hn);
|
|
1840
1857
|
}, {
|
|
1841
1858
|
retryCount: (_e.retryCount || 0) + 1,
|
|
1842
1859
|
dedupe: !0
|
|
@@ -1861,7 +1878,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1861
1878
|
]
|
|
1862
1879
|
), _r = re(
|
|
1863
1880
|
// Use callback to make sure `keyRef.current` returns latest result every time
|
|
1864
|
-
(...I) =>
|
|
1881
|
+
(...I) => $a(a, x.current, ...I),
|
|
1865
1882
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1866
1883
|
[]
|
|
1867
1884
|
);
|
|
@@ -1871,7 +1888,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1871
1888
|
if (!y) return;
|
|
1872
1889
|
const I = Ae.bind(X, Lt);
|
|
1873
1890
|
let L = 0;
|
|
1874
|
-
const
|
|
1891
|
+
const M = vi(y, g, (oe, _e = {}) => {
|
|
1875
1892
|
if (oe == $e.FOCUS_EVENT) {
|
|
1876
1893
|
const F = Date.now();
|
|
1877
1894
|
N().revalidateOnFocus && F > L && D() && (L = F + N().focusThrottleInterval, I());
|
|
@@ -1886,16 +1903,16 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1886
1903
|
});
|
|
1887
1904
|
return _.current = !1, x.current = y, w.current = !0, j({
|
|
1888
1905
|
_k: k
|
|
1889
|
-
}), xr && (C(we) || De ? I() :
|
|
1890
|
-
_.current = !0,
|
|
1906
|
+
}), xr && (C(we) || De ? I() : ei(I)), () => {
|
|
1907
|
+
_.current = !0, M();
|
|
1891
1908
|
};
|
|
1892
1909
|
}, [
|
|
1893
1910
|
y
|
|
1894
1911
|
]), Nt(() => {
|
|
1895
1912
|
let I;
|
|
1896
1913
|
function L() {
|
|
1897
|
-
const
|
|
1898
|
-
|
|
1914
|
+
const M = se(d) ? d(O().data) : d;
|
|
1915
|
+
M && I !== -1 && (I = setTimeout(q, M));
|
|
1899
1916
|
}
|
|
1900
1917
|
function q() {
|
|
1901
1918
|
!O().error && (h || N().isVisible()) && (u || N().isOnline()) ? Ae(Lt).then(L) : L();
|
|
@@ -1908,7 +1925,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1908
1925
|
h,
|
|
1909
1926
|
u,
|
|
1910
1927
|
y
|
|
1911
|
-
]),
|
|
1928
|
+
]), Vn(Je), o && C(we) && y) {
|
|
1912
1929
|
if (!Fr && De)
|
|
1913
1930
|
throw new Error("Fallback data is required when using Suspense in SSR.");
|
|
1914
1931
|
T.current = t, S.current = r, _.current = !1;
|
|
@@ -1932,13 +1949,13 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1932
1949
|
return R.error = !0, Ye;
|
|
1933
1950
|
},
|
|
1934
1951
|
get isValidating() {
|
|
1935
|
-
return R.isValidating = !0,
|
|
1952
|
+
return R.isValidating = !0, gn;
|
|
1936
1953
|
},
|
|
1937
1954
|
get isLoading() {
|
|
1938
|
-
return R.isLoading = !0,
|
|
1955
|
+
return R.isLoading = !0, fn;
|
|
1939
1956
|
}
|
|
1940
1957
|
};
|
|
1941
|
-
},
|
|
1958
|
+
}, xi = yi(ki), fe = {
|
|
1942
1959
|
GET_LOCATION: `query GetLocation($latitude: Float!, $longitude: Float!) {
|
|
1943
1960
|
location(latitude: $latitude, longitude: $longitude) {
|
|
1944
1961
|
country
|
|
@@ -2063,11 +2080,11 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2063
2080
|
schema: fe.SET_USER_PREFERENCES,
|
|
2064
2081
|
method: "setUserPreferences"
|
|
2065
2082
|
}
|
|
2066
|
-
},
|
|
2083
|
+
}, Va = process.env.PUBLIC_SASSY_API_SERVER_URL, wi = async ({
|
|
2067
2084
|
query: e,
|
|
2068
2085
|
data: t,
|
|
2069
2086
|
headers: r = {}
|
|
2070
|
-
}) => await fetch(`${
|
|
2087
|
+
}) => await fetch(`${Va}/graphql`, {
|
|
2071
2088
|
method: "POST",
|
|
2072
2089
|
credentials: "include",
|
|
2073
2090
|
headers: {
|
|
@@ -2079,14 +2096,14 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2079
2096
|
query: e,
|
|
2080
2097
|
variables: t
|
|
2081
2098
|
})
|
|
2082
|
-
}),
|
|
2099
|
+
}), Pa = async ({
|
|
2083
2100
|
accessToken: e,
|
|
2084
2101
|
type: t,
|
|
2085
2102
|
params: r = {}
|
|
2086
2103
|
}) => {
|
|
2087
2104
|
const a = t != null && t.data ? t.data(r) : r;
|
|
2088
2105
|
try {
|
|
2089
|
-
const n = `Bearer ${e}`, o = await
|
|
2106
|
+
const n = `Bearer ${e}`, o = await wi({
|
|
2090
2107
|
headers: {
|
|
2091
2108
|
authorization: n
|
|
2092
2109
|
},
|
|
@@ -2104,14 +2121,14 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2104
2121
|
} catch (n) {
|
|
2105
2122
|
return console.error(n), { status: 500, data: [] };
|
|
2106
2123
|
}
|
|
2107
|
-
},
|
|
2124
|
+
}, _i = async ({
|
|
2108
2125
|
accessToken: e,
|
|
2109
2126
|
name: t,
|
|
2110
2127
|
data: r,
|
|
2111
2128
|
method: a = "POST"
|
|
2112
2129
|
}) => {
|
|
2113
2130
|
const n = `Bearer ${e}`;
|
|
2114
|
-
return await fetch(`${
|
|
2131
|
+
return await fetch(`${Va}/api/${t}`, {
|
|
2115
2132
|
method: a,
|
|
2116
2133
|
credentials: "include",
|
|
2117
2134
|
headers: {
|
|
@@ -2127,7 +2144,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2127
2144
|
swrOptions: a,
|
|
2128
2145
|
getAccessToken: n
|
|
2129
2146
|
}) => {
|
|
2130
|
-
const { data: o, error: i, isLoading: s, mutate: c } =
|
|
2147
|
+
const { data: o, error: i, isLoading: s, mutate: c } = xi(
|
|
2131
2148
|
[t, ...r],
|
|
2132
2149
|
(d) => e(d, n),
|
|
2133
2150
|
{ ...a }
|
|
@@ -2138,7 +2155,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2138
2155
|
type: t,
|
|
2139
2156
|
params: r
|
|
2140
2157
|
}) => {
|
|
2141
|
-
const a = await e(), n = await
|
|
2158
|
+
const a = await e(), n = await Pa({
|
|
2142
2159
|
accessToken: a,
|
|
2143
2160
|
type: t,
|
|
2144
2161
|
params: r
|
|
@@ -2146,7 +2163,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2146
2163
|
if (n.status === 200 && n.errors === void 0)
|
|
2147
2164
|
return n.data;
|
|
2148
2165
|
throw new Error("An error occurred while fetching the data.");
|
|
2149
|
-
},
|
|
2166
|
+
}, Ei = async ([e, t], r) => dt({
|
|
2150
2167
|
getAccessToken: r,
|
|
2151
2168
|
type: We.GET_USER_PREFERENCES,
|
|
2152
2169
|
params: {
|
|
@@ -2157,7 +2174,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2157
2174
|
getAccessToken: t,
|
|
2158
2175
|
isPaused: r = !1
|
|
2159
2176
|
}) => ct({
|
|
2160
|
-
fetcher:
|
|
2177
|
+
fetcher: Ei,
|
|
2161
2178
|
scope: "/preferences",
|
|
2162
2179
|
keys: e,
|
|
2163
2180
|
swrOptions: {
|
|
@@ -2167,21 +2184,21 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2167
2184
|
revalidateOnReconnect: r
|
|
2168
2185
|
},
|
|
2169
2186
|
getAccessToken: t
|
|
2170
|
-
}),
|
|
2187
|
+
}), Ti = async ([e, t], r) => dt({
|
|
2171
2188
|
getAccessToken: r,
|
|
2172
2189
|
type: We.GET_CHATS_STATS,
|
|
2173
2190
|
params: {
|
|
2174
2191
|
user: t
|
|
2175
2192
|
}
|
|
2176
|
-
}),
|
|
2193
|
+
}), tc = ({
|
|
2177
2194
|
keys: e,
|
|
2178
2195
|
getAccessToken: t
|
|
2179
2196
|
}) => ct({
|
|
2180
|
-
fetcher:
|
|
2197
|
+
fetcher: Ti,
|
|
2181
2198
|
scope: "/stats",
|
|
2182
2199
|
keys: e,
|
|
2183
2200
|
getAccessToken: t
|
|
2184
|
-
}),
|
|
2201
|
+
}), Da = async ([e, t, r, a], n) => dt({
|
|
2185
2202
|
getAccessToken: n,
|
|
2186
2203
|
type: We.GET_CHATS,
|
|
2187
2204
|
params: {
|
|
@@ -2191,11 +2208,11 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2191
2208
|
limit: 1,
|
|
2192
2209
|
truncateSize: 100
|
|
2193
2210
|
}
|
|
2194
|
-
}),
|
|
2211
|
+
}), rc = ({
|
|
2195
2212
|
keys: e,
|
|
2196
2213
|
getAccessToken: t
|
|
2197
2214
|
}) => ct({
|
|
2198
|
-
fetcher:
|
|
2215
|
+
fetcher: Da,
|
|
2199
2216
|
scope: "/history",
|
|
2200
2217
|
keys: e,
|
|
2201
2218
|
getAccessToken: t,
|
|
@@ -2203,26 +2220,26 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2203
2220
|
keepPreviousData: !0,
|
|
2204
2221
|
dedupingInterval: 1e4
|
|
2205
2222
|
}
|
|
2206
|
-
}),
|
|
2223
|
+
}), Si = ({
|
|
2207
2224
|
keys: e,
|
|
2208
2225
|
getAccessToken: t
|
|
2209
2226
|
}) => {
|
|
2210
|
-
|
|
2211
|
-
},
|
|
2227
|
+
Ma(["/history", ...e], (r) => Da(r, t));
|
|
2228
|
+
}, za = async ([e], t) => dt({
|
|
2212
2229
|
getAccessToken: t,
|
|
2213
2230
|
type: We.GET_SERVER_CAPABILITIES
|
|
2214
|
-
}),
|
|
2231
|
+
}), ac = ({
|
|
2215
2232
|
getAccessToken: e
|
|
2216
2233
|
}) => ct({
|
|
2217
|
-
fetcher:
|
|
2234
|
+
fetcher: za,
|
|
2218
2235
|
scope: "/capabilities",
|
|
2219
2236
|
keys: [],
|
|
2220
2237
|
getAccessToken: e
|
|
2221
|
-
}),
|
|
2238
|
+
}), Ni = ({
|
|
2222
2239
|
getAccessToken: e
|
|
2223
2240
|
}) => {
|
|
2224
|
-
|
|
2225
|
-
},
|
|
2241
|
+
Ma(["/capabilities"], (t) => za(t, e));
|
|
2242
|
+
}, Ci = "z-20", Ri = "z-10", de = V.createContext({
|
|
2226
2243
|
state: {
|
|
2227
2244
|
id: "",
|
|
2228
2245
|
model: Te,
|
|
@@ -2240,7 +2257,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2240
2257
|
plugins: [],
|
|
2241
2258
|
engines: []
|
|
2242
2259
|
}
|
|
2243
|
-
}),
|
|
2260
|
+
}), Ii = V.createContext({
|
|
2244
2261
|
state: { searchString: "", sortedCell: "", sortDirection: "" },
|
|
2245
2262
|
dispatch: () => {
|
|
2246
2263
|
}
|
|
@@ -2262,15 +2279,15 @@ try {
|
|
|
2262
2279
|
});
|
|
2263
2280
|
} catch {
|
|
2264
2281
|
}
|
|
2265
|
-
const
|
|
2282
|
+
const Li = "av-tooltip", Oi = "av-tooltip-arrow", ze = Math.min, Se = Math.max, rt = Math.round, le = (e) => ({
|
|
2266
2283
|
x: e,
|
|
2267
2284
|
y: e
|
|
2268
|
-
}),
|
|
2285
|
+
}), Ai = {
|
|
2269
2286
|
left: "right",
|
|
2270
2287
|
right: "left",
|
|
2271
2288
|
bottom: "top",
|
|
2272
2289
|
top: "bottom"
|
|
2273
|
-
},
|
|
2290
|
+
}, $i = {
|
|
2274
2291
|
start: "end",
|
|
2275
2292
|
end: "start"
|
|
2276
2293
|
};
|
|
@@ -2286,7 +2303,7 @@ function ve(e) {
|
|
|
2286
2303
|
function je(e) {
|
|
2287
2304
|
return e.split("-")[1];
|
|
2288
2305
|
}
|
|
2289
|
-
function
|
|
2306
|
+
function Ua(e) {
|
|
2290
2307
|
return e === "x" ? "y" : "x";
|
|
2291
2308
|
}
|
|
2292
2309
|
function cr(e) {
|
|
@@ -2296,22 +2313,22 @@ function Ce(e) {
|
|
|
2296
2313
|
return ["top", "bottom"].includes(ve(e)) ? "y" : "x";
|
|
2297
2314
|
}
|
|
2298
2315
|
function dr(e) {
|
|
2299
|
-
return
|
|
2316
|
+
return Ua(Ce(e));
|
|
2300
2317
|
}
|
|
2301
|
-
function
|
|
2318
|
+
function Bi(e, t, r) {
|
|
2302
2319
|
r === void 0 && (r = !1);
|
|
2303
2320
|
const a = je(e), n = dr(e), o = cr(n);
|
|
2304
2321
|
let i = n === "x" ? a === (r ? "end" : "start") ? "right" : "left" : a === "start" ? "bottom" : "top";
|
|
2305
2322
|
return t.reference[o] > t.floating[o] && (i = at(i)), [i, at(i)];
|
|
2306
2323
|
}
|
|
2307
|
-
function
|
|
2324
|
+
function Mi(e) {
|
|
2308
2325
|
const t = at(e);
|
|
2309
2326
|
return [qt(e), t, qt(t)];
|
|
2310
2327
|
}
|
|
2311
2328
|
function qt(e) {
|
|
2312
|
-
return e.replace(/start|end/g, (t) =>
|
|
2329
|
+
return e.replace(/start|end/g, (t) => $i[t]);
|
|
2313
2330
|
}
|
|
2314
|
-
function
|
|
2331
|
+
function Vi(e, t, r) {
|
|
2315
2332
|
const a = ["left", "right"], n = ["right", "left"], o = ["top", "bottom"], i = ["bottom", "top"];
|
|
2316
2333
|
switch (e) {
|
|
2317
2334
|
case "top":
|
|
@@ -2324,15 +2341,15 @@ function Bi(e, t, r) {
|
|
|
2324
2341
|
return [];
|
|
2325
2342
|
}
|
|
2326
2343
|
}
|
|
2327
|
-
function
|
|
2344
|
+
function Pi(e, t, r, a) {
|
|
2328
2345
|
const n = je(e);
|
|
2329
|
-
let o =
|
|
2346
|
+
let o = Vi(ve(e), r === "start", a);
|
|
2330
2347
|
return n && (o = o.map((i) => i + "-" + n), t && (o = o.concat(o.map(qt)))), o;
|
|
2331
2348
|
}
|
|
2332
2349
|
function at(e) {
|
|
2333
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
2350
|
+
return e.replace(/left|right|bottom|top/g, (t) => Ai[t]);
|
|
2334
2351
|
}
|
|
2335
|
-
function
|
|
2352
|
+
function Di(e) {
|
|
2336
2353
|
return {
|
|
2337
2354
|
top: 0,
|
|
2338
2355
|
right: 0,
|
|
@@ -2341,8 +2358,8 @@ function Vi(e) {
|
|
|
2341
2358
|
...e
|
|
2342
2359
|
};
|
|
2343
2360
|
}
|
|
2344
|
-
function
|
|
2345
|
-
return typeof e != "number" ?
|
|
2361
|
+
function Ha(e) {
|
|
2362
|
+
return typeof e != "number" ? Di(e) : {
|
|
2346
2363
|
top: e,
|
|
2347
2364
|
right: e,
|
|
2348
2365
|
bottom: e,
|
|
@@ -2415,7 +2432,7 @@ function jr(e, t, r) {
|
|
|
2415
2432
|
}
|
|
2416
2433
|
return g;
|
|
2417
2434
|
}
|
|
2418
|
-
const
|
|
2435
|
+
const zi = async (e, t, r) => {
|
|
2419
2436
|
const {
|
|
2420
2437
|
placement: a = "bottom",
|
|
2421
2438
|
strategy: n = "absolute",
|
|
@@ -2476,7 +2493,7 @@ const Pi = async (e, t, r) => {
|
|
|
2476
2493
|
middlewareData: g
|
|
2477
2494
|
};
|
|
2478
2495
|
};
|
|
2479
|
-
async function
|
|
2496
|
+
async function Fa(e, t) {
|
|
2480
2497
|
var r;
|
|
2481
2498
|
t === void 0 && (t = {});
|
|
2482
2499
|
const {
|
|
@@ -2492,7 +2509,7 @@ async function Ha(e, t) {
|
|
|
2492
2509
|
elementContext: u = "floating",
|
|
2493
2510
|
altBoundary: m = !1,
|
|
2494
2511
|
padding: g = 0
|
|
2495
|
-
} = Ge(t, e), p =
|
|
2512
|
+
} = Ge(t, e), p = Ha(g), b = s[m ? u === "floating" ? "reference" : "floating" : u], v = nt(await o.getClippingRect({
|
|
2496
2513
|
element: (r = await (o.isElement == null ? void 0 : o.isElement(b))) == null || r ? b : b.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)),
|
|
2497
2514
|
boundary: d,
|
|
2498
2515
|
rootBoundary: h,
|
|
@@ -2521,7 +2538,7 @@ async function Ha(e, t) {
|
|
|
2521
2538
|
right: (_.right - v.right + p.right) / w.x
|
|
2522
2539
|
};
|
|
2523
2540
|
}
|
|
2524
|
-
const
|
|
2541
|
+
const Ui = (e) => ({
|
|
2525
2542
|
name: "arrow",
|
|
2526
2543
|
options: e,
|
|
2527
2544
|
async fn(t) {
|
|
@@ -2539,13 +2556,13 @@ const Di = (e) => ({
|
|
|
2539
2556
|
} = Ge(e, t) || {};
|
|
2540
2557
|
if (d == null)
|
|
2541
2558
|
return {};
|
|
2542
|
-
const u =
|
|
2559
|
+
const u = Ha(h), m = {
|
|
2543
2560
|
x: r,
|
|
2544
2561
|
y: a
|
|
2545
2562
|
}, g = dr(n), p = cr(g), b = await i.getDimensions(d), v = g === "y", y = v ? "top" : "left", k = v ? "bottom" : "right", w = v ? "clientHeight" : "clientWidth", _ = o.reference[p] + o.reference[g] - m[g] - o.floating[p], x = m[g] - o.reference[g], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
|
|
2546
2563
|
let S = T ? T[w] : 0;
|
|
2547
2564
|
(!S || !await (i.isElement == null ? void 0 : i.isElement(T))) && (S = s.floating[w] || o.floating[p]);
|
|
2548
|
-
const N = _ / 2 - x / 2, D = S / 2 - b[p] / 2 - 1, O = ze(u[y], D), j = ze(u[k], D), P = O,
|
|
2565
|
+
const N = _ / 2 - x / 2, D = S / 2 - b[p] / 2 - 1, O = ze(u[y], D), j = ze(u[k], D), P = O, B = S - b[p] - j, R = S / 2 - b[p] / 2 + N, Q = jt(P, R, B), K = !c.arrow && je(n) != null && R !== Q && o.reference[p] / 2 - (R < P ? O : j) - b[p] / 2 < 0, Y = K ? R < P ? R - P : R - B : 0;
|
|
2549
2566
|
return {
|
|
2550
2567
|
[g]: m[g] + Y,
|
|
2551
2568
|
data: {
|
|
@@ -2558,7 +2575,7 @@ const Di = (e) => ({
|
|
|
2558
2575
|
reset: K
|
|
2559
2576
|
};
|
|
2560
2577
|
}
|
|
2561
|
-
}),
|
|
2578
|
+
}), Hi = function(e) {
|
|
2562
2579
|
return e === void 0 && (e = {}), {
|
|
2563
2580
|
name: "flip",
|
|
2564
2581
|
options: e,
|
|
@@ -2582,12 +2599,12 @@ const Di = (e) => ({
|
|
|
2582
2599
|
} = Ge(e, t);
|
|
2583
2600
|
if ((r = o.arrow) != null && r.alignmentOffset)
|
|
2584
2601
|
return {};
|
|
2585
|
-
const y = ve(n), k = Ce(s), w = ve(s) === s, _ = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), x = m || (w || !b ? [at(s)] :
|
|
2586
|
-
!m && T && x.push(...
|
|
2587
|
-
const S = [s, ...x], N = await
|
|
2602
|
+
const y = ve(n), k = Ce(s), w = ve(s) === s, _ = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), x = m || (w || !b ? [at(s)] : Mi(s)), T = p !== "none";
|
|
2603
|
+
!m && T && x.push(...Pi(s, b, p, _));
|
|
2604
|
+
const S = [s, ...x], N = await Fa(t, v), D = [];
|
|
2588
2605
|
let O = ((a = o.flip) == null ? void 0 : a.overflows) || [];
|
|
2589
2606
|
if (h && D.push(N[y]), u) {
|
|
2590
|
-
const R =
|
|
2607
|
+
const R = Bi(n, i, _);
|
|
2591
2608
|
D.push(N[R[0]], N[R[1]]);
|
|
2592
2609
|
}
|
|
2593
2610
|
if (O = [...O, {
|
|
@@ -2610,8 +2627,8 @@ const Di = (e) => ({
|
|
|
2610
2627
|
if (!K)
|
|
2611
2628
|
switch (g) {
|
|
2612
2629
|
case "bestFit": {
|
|
2613
|
-
var
|
|
2614
|
-
const Y = (
|
|
2630
|
+
var B;
|
|
2631
|
+
const Y = (B = O.filter((U) => {
|
|
2615
2632
|
if (T) {
|
|
2616
2633
|
const H = Ce(U.placement);
|
|
2617
2634
|
return H === k || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -2619,7 +2636,7 @@ const Di = (e) => ({
|
|
|
2619
2636
|
H === "y";
|
|
2620
2637
|
}
|
|
2621
2638
|
return !0;
|
|
2622
|
-
}).map((U) => [U.placement, U.overflows.filter((H) => H > 0).reduce((H, yt) => H + yt, 0)]).sort((U, H) => U[1] - H[1])[0]) == null ? void 0 :
|
|
2639
|
+
}).map((U) => [U.placement, U.overflows.filter((H) => H > 0).reduce((H, yt) => H + yt, 0)]).sort((U, H) => U[1] - H[1])[0]) == null ? void 0 : B[0];
|
|
2623
2640
|
Y && (K = Y);
|
|
2624
2641
|
break;
|
|
2625
2642
|
}
|
|
@@ -2638,7 +2655,7 @@ const Di = (e) => ({
|
|
|
2638
2655
|
}
|
|
2639
2656
|
};
|
|
2640
2657
|
};
|
|
2641
|
-
async function
|
|
2658
|
+
async function Fi(e, t) {
|
|
2642
2659
|
const {
|
|
2643
2660
|
placement: r,
|
|
2644
2661
|
platform: a,
|
|
@@ -2665,7 +2682,7 @@ async function Ui(e, t) {
|
|
|
2665
2682
|
y: g * h
|
|
2666
2683
|
};
|
|
2667
2684
|
}
|
|
2668
|
-
const
|
|
2685
|
+
const Wi = function(e) {
|
|
2669
2686
|
return e === void 0 && (e = 0), {
|
|
2670
2687
|
name: "offset",
|
|
2671
2688
|
options: e,
|
|
@@ -2676,7 +2693,7 @@ const Hi = function(e) {
|
|
|
2676
2693
|
y: o,
|
|
2677
2694
|
placement: i,
|
|
2678
2695
|
middlewareData: s
|
|
2679
|
-
} = t, c = await
|
|
2696
|
+
} = t, c = await Fi(t, e);
|
|
2680
2697
|
return i === ((r = s.offset) == null ? void 0 : r.placement) && (a = s.arrow) != null && a.alignmentOffset ? {} : {
|
|
2681
2698
|
x: n + c.x,
|
|
2682
2699
|
y: o + c.y,
|
|
@@ -2687,7 +2704,7 @@ const Hi = function(e) {
|
|
|
2687
2704
|
};
|
|
2688
2705
|
}
|
|
2689
2706
|
};
|
|
2690
|
-
},
|
|
2707
|
+
}, Gi = function(e) {
|
|
2691
2708
|
return e === void 0 && (e = {}), {
|
|
2692
2709
|
name: "shift",
|
|
2693
2710
|
options: e,
|
|
@@ -2715,7 +2732,7 @@ const Hi = function(e) {
|
|
|
2715
2732
|
} = Ge(e, t), d = {
|
|
2716
2733
|
x: r,
|
|
2717
2734
|
y: a
|
|
2718
|
-
}, h = await
|
|
2735
|
+
}, h = await Fa(t, c), u = Ce(ve(n)), m = Ua(u);
|
|
2719
2736
|
let g = d[m], p = d[u];
|
|
2720
2737
|
if (o) {
|
|
2721
2738
|
const v = m === "y" ? "top" : "left", y = m === "y" ? "bottom" : "right", k = g + h[v], w = g - h[y];
|
|
@@ -2748,7 +2765,7 @@ function mt() {
|
|
|
2748
2765
|
return typeof window < "u";
|
|
2749
2766
|
}
|
|
2750
2767
|
function Oe(e) {
|
|
2751
|
-
return
|
|
2768
|
+
return Wa(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
2752
2769
|
}
|
|
2753
2770
|
function ee(e) {
|
|
2754
2771
|
var t;
|
|
@@ -2756,9 +2773,9 @@ function ee(e) {
|
|
|
2756
2773
|
}
|
|
2757
2774
|
function ge(e) {
|
|
2758
2775
|
var t;
|
|
2759
|
-
return (t = (
|
|
2776
|
+
return (t = (Wa(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
2760
2777
|
}
|
|
2761
|
-
function
|
|
2778
|
+
function Wa(e) {
|
|
2762
2779
|
return mt() ? e instanceof Node || e instanceof ee(e).Node : !1;
|
|
2763
2780
|
}
|
|
2764
2781
|
function ae(e) {
|
|
@@ -2779,7 +2796,7 @@ function qe(e) {
|
|
|
2779
2796
|
} = ne(e);
|
|
2780
2797
|
return /auto|scroll|overlay|hidden|clip/.test(t + a + r) && !["inline", "contents"].includes(n);
|
|
2781
2798
|
}
|
|
2782
|
-
function
|
|
2799
|
+
function ji(e) {
|
|
2783
2800
|
return ["table", "td", "th"].includes(Oe(e));
|
|
2784
2801
|
}
|
|
2785
2802
|
function gt(e) {
|
|
@@ -2795,7 +2812,7 @@ function ur(e) {
|
|
|
2795
2812
|
const t = mr(), r = ae(e) ? ne(e) : e;
|
|
2796
2813
|
return ["transform", "translate", "scale", "rotate", "perspective"].some((a) => r[a] ? r[a] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((a) => (r.willChange || "").includes(a)) || ["paint", "layout", "strict", "content"].some((a) => (r.contain || "").includes(a));
|
|
2797
2814
|
}
|
|
2798
|
-
function
|
|
2815
|
+
function qi(e) {
|
|
2799
2816
|
let t = be(e);
|
|
2800
2817
|
for (; ce(t) && !Re(t); ) {
|
|
2801
2818
|
if (ur(t))
|
|
@@ -2836,20 +2853,20 @@ function be(e) {
|
|
|
2836
2853
|
);
|
|
2837
2854
|
return qr(t) ? t.host : t;
|
|
2838
2855
|
}
|
|
2839
|
-
function
|
|
2856
|
+
function Ga(e) {
|
|
2840
2857
|
const t = be(e);
|
|
2841
|
-
return Re(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ce(t) && qe(t) ? t :
|
|
2858
|
+
return Re(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ce(t) && qe(t) ? t : Ga(t);
|
|
2842
2859
|
}
|
|
2843
|
-
function
|
|
2860
|
+
function ja(e, t, r) {
|
|
2844
2861
|
var a;
|
|
2845
2862
|
t === void 0 && (t = []);
|
|
2846
|
-
const n =
|
|
2847
|
-
return o ? t.concat(i, i.visualViewport || [], qe(n) ? n : [], []) : t.concat(n,
|
|
2863
|
+
const n = Ga(e), o = n === ((a = e.ownerDocument) == null ? void 0 : a.body), i = ee(n);
|
|
2864
|
+
return o ? t.concat(i, i.visualViewport || [], qe(n) ? n : [], []) : t.concat(n, ja(n, []));
|
|
2848
2865
|
}
|
|
2849
2866
|
function Kr(e) {
|
|
2850
2867
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
2851
2868
|
}
|
|
2852
|
-
function
|
|
2869
|
+
function qa(e) {
|
|
2853
2870
|
const t = ne(e);
|
|
2854
2871
|
let r = parseFloat(t.width) || 0, a = parseFloat(t.height) || 0;
|
|
2855
2872
|
const n = ce(e), o = n ? e.offsetWidth : r, i = n ? e.offsetHeight : a, s = rt(r) !== o || rt(a) !== i;
|
|
@@ -2859,41 +2876,41 @@ function ja(e) {
|
|
|
2859
2876
|
$: s
|
|
2860
2877
|
};
|
|
2861
2878
|
}
|
|
2862
|
-
function
|
|
2879
|
+
function Ka(e) {
|
|
2863
2880
|
return ae(e) ? e : e.contextElement;
|
|
2864
2881
|
}
|
|
2865
2882
|
function Ne(e) {
|
|
2866
|
-
const t =
|
|
2883
|
+
const t = Ka(e);
|
|
2867
2884
|
if (!ce(t))
|
|
2868
2885
|
return le(1);
|
|
2869
2886
|
const r = t.getBoundingClientRect(), {
|
|
2870
2887
|
width: a,
|
|
2871
2888
|
height: n,
|
|
2872
2889
|
$: o
|
|
2873
|
-
} =
|
|
2890
|
+
} = qa(t);
|
|
2874
2891
|
let i = (o ? rt(r.width) : r.width) / a, s = (o ? rt(r.height) : r.height) / n;
|
|
2875
2892
|
return (!i || !Number.isFinite(i)) && (i = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
2876
2893
|
x: i,
|
|
2877
2894
|
y: s
|
|
2878
2895
|
};
|
|
2879
2896
|
}
|
|
2880
|
-
const
|
|
2881
|
-
function
|
|
2897
|
+
const Ki = /* @__PURE__ */ le(0);
|
|
2898
|
+
function Ya(e) {
|
|
2882
2899
|
const t = ee(e);
|
|
2883
|
-
return !mr() || !t.visualViewport ?
|
|
2900
|
+
return !mr() || !t.visualViewport ? Ki : {
|
|
2884
2901
|
x: t.visualViewport.offsetLeft,
|
|
2885
2902
|
y: t.visualViewport.offsetTop
|
|
2886
2903
|
};
|
|
2887
2904
|
}
|
|
2888
|
-
function
|
|
2905
|
+
function Yi(e, t, r) {
|
|
2889
2906
|
return t === void 0 && (t = !1), !r || t && r !== ee(e) ? !1 : t;
|
|
2890
2907
|
}
|
|
2891
2908
|
function Ue(e, t, r, a) {
|
|
2892
2909
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
2893
|
-
const n = e.getBoundingClientRect(), o =
|
|
2910
|
+
const n = e.getBoundingClientRect(), o = Ka(e);
|
|
2894
2911
|
let i = le(1);
|
|
2895
2912
|
t && (a ? ae(a) && (i = Ne(a)) : i = Ne(e));
|
|
2896
|
-
const s =
|
|
2913
|
+
const s = Yi(o, r, a) ? Ya(o) : le(0);
|
|
2897
2914
|
let c = (n.left + s.x) / i.x, d = (n.top + s.y) / i.y, h = n.width / i.x, u = n.height / i.y;
|
|
2898
2915
|
if (o) {
|
|
2899
2916
|
const m = ee(o), g = a && ae(a) ? ee(a) : a;
|
|
@@ -2914,7 +2931,7 @@ function gr(e, t) {
|
|
|
2914
2931
|
const r = ft(e).scrollLeft;
|
|
2915
2932
|
return t ? t.left + r : Ue(ge(e)).left + r;
|
|
2916
2933
|
}
|
|
2917
|
-
function
|
|
2934
|
+
function Ja(e, t, r) {
|
|
2918
2935
|
r === void 0 && (r = !1);
|
|
2919
2936
|
const a = e.getBoundingClientRect(), n = a.left + t.scrollLeft - (r ? 0 : (
|
|
2920
2937
|
// RTL <body> scrollbar.
|
|
@@ -2925,7 +2942,7 @@ function Ya(e, t, r) {
|
|
|
2925
2942
|
y: o
|
|
2926
2943
|
};
|
|
2927
2944
|
}
|
|
2928
|
-
function
|
|
2945
|
+
function Ji(e) {
|
|
2929
2946
|
let {
|
|
2930
2947
|
elements: t,
|
|
2931
2948
|
rect: r,
|
|
@@ -2944,7 +2961,7 @@ function Ki(e) {
|
|
|
2944
2961
|
const g = Ue(a);
|
|
2945
2962
|
d = Ne(a), h.x = g.x + a.clientLeft, h.y = g.y + a.clientTop;
|
|
2946
2963
|
}
|
|
2947
|
-
const m = i && !u && !o ?
|
|
2964
|
+
const m = i && !u && !o ? Ja(i, c, !0) : le(0);
|
|
2948
2965
|
return {
|
|
2949
2966
|
width: r.width * d.x,
|
|
2950
2967
|
height: r.height * d.y,
|
|
@@ -2952,10 +2969,10 @@ function Ki(e) {
|
|
|
2952
2969
|
y: r.y * d.y - c.scrollTop * d.y + h.y + m.y
|
|
2953
2970
|
};
|
|
2954
2971
|
}
|
|
2955
|
-
function
|
|
2972
|
+
function Xi(e) {
|
|
2956
2973
|
return Array.from(e.getClientRects());
|
|
2957
2974
|
}
|
|
2958
|
-
function
|
|
2975
|
+
function Zi(e) {
|
|
2959
2976
|
const t = ge(e), r = ft(e), a = e.ownerDocument.body, n = Se(t.scrollWidth, t.clientWidth, a.scrollWidth, a.clientWidth), o = Se(t.scrollHeight, t.clientHeight, a.scrollHeight, a.clientHeight);
|
|
2960
2977
|
let i = -r.scrollLeft + gr(e);
|
|
2961
2978
|
const s = -r.scrollTop;
|
|
@@ -2966,7 +2983,7 @@ function Ji(e) {
|
|
|
2966
2983
|
y: s
|
|
2967
2984
|
};
|
|
2968
2985
|
}
|
|
2969
|
-
function
|
|
2986
|
+
function Qi(e, t) {
|
|
2970
2987
|
const r = ee(e), a = ge(e), n = r.visualViewport;
|
|
2971
2988
|
let o = a.clientWidth, i = a.clientHeight, s = 0, c = 0;
|
|
2972
2989
|
if (n) {
|
|
@@ -2981,7 +2998,7 @@ function Xi(e, t) {
|
|
|
2981
2998
|
y: c
|
|
2982
2999
|
};
|
|
2983
3000
|
}
|
|
2984
|
-
function
|
|
3001
|
+
function es(e, t) {
|
|
2985
3002
|
const r = Ue(e, !0, t === "fixed"), a = r.top + e.clientTop, n = r.left + e.clientLeft, o = ce(e) ? Ne(e) : le(1), i = e.clientWidth * o.x, s = e.clientHeight * o.y, c = n * o.x, d = a * o.y;
|
|
2986
3003
|
return {
|
|
2987
3004
|
width: i,
|
|
@@ -2993,13 +3010,13 @@ function Zi(e, t) {
|
|
|
2993
3010
|
function Yr(e, t, r) {
|
|
2994
3011
|
let a;
|
|
2995
3012
|
if (t === "viewport")
|
|
2996
|
-
a =
|
|
3013
|
+
a = Qi(e, r);
|
|
2997
3014
|
else if (t === "document")
|
|
2998
|
-
a =
|
|
3015
|
+
a = Zi(ge(e));
|
|
2999
3016
|
else if (ae(t))
|
|
3000
|
-
a =
|
|
3017
|
+
a = es(t, r);
|
|
3001
3018
|
else {
|
|
3002
|
-
const n =
|
|
3019
|
+
const n = Ya(e);
|
|
3003
3020
|
a = {
|
|
3004
3021
|
x: t.x - n.x,
|
|
3005
3022
|
y: t.y - n.y,
|
|
@@ -3009,31 +3026,31 @@ function Yr(e, t, r) {
|
|
|
3009
3026
|
}
|
|
3010
3027
|
return nt(a);
|
|
3011
3028
|
}
|
|
3012
|
-
function
|
|
3029
|
+
function Xa(e, t) {
|
|
3013
3030
|
const r = be(e);
|
|
3014
|
-
return r === t || !ae(r) || Re(r) ? !1 : ne(r).position === "fixed" ||
|
|
3031
|
+
return r === t || !ae(r) || Re(r) ? !1 : ne(r).position === "fixed" || Xa(r, t);
|
|
3015
3032
|
}
|
|
3016
|
-
function
|
|
3033
|
+
function ts(e, t) {
|
|
3017
3034
|
const r = t.get(e);
|
|
3018
3035
|
if (r)
|
|
3019
3036
|
return r;
|
|
3020
|
-
let a =
|
|
3037
|
+
let a = ja(e, []).filter((s) => ae(s) && Oe(s) !== "body"), n = null;
|
|
3021
3038
|
const o = ne(e).position === "fixed";
|
|
3022
3039
|
let i = o ? be(e) : e;
|
|
3023
3040
|
for (; ae(i) && !Re(i); ) {
|
|
3024
3041
|
const s = ne(i), c = ur(i);
|
|
3025
|
-
!c && s.position === "fixed" && (n = null), (o ? !c && !n : !c && s.position === "static" && n && ["absolute", "fixed"].includes(n.position) || qe(i) && !c &&
|
|
3042
|
+
!c && s.position === "fixed" && (n = null), (o ? !c && !n : !c && s.position === "static" && n && ["absolute", "fixed"].includes(n.position) || qe(i) && !c && Xa(e, i)) ? a = a.filter((d) => d !== i) : n = s, i = be(i);
|
|
3026
3043
|
}
|
|
3027
3044
|
return t.set(e, a), a;
|
|
3028
3045
|
}
|
|
3029
|
-
function
|
|
3046
|
+
function rs(e) {
|
|
3030
3047
|
let {
|
|
3031
3048
|
element: t,
|
|
3032
3049
|
boundary: r,
|
|
3033
3050
|
rootBoundary: a,
|
|
3034
3051
|
strategy: n
|
|
3035
3052
|
} = e;
|
|
3036
|
-
const o = [...r === "clippingAncestors" ? gt(t) ? [] :
|
|
3053
|
+
const o = [...r === "clippingAncestors" ? gt(t) ? [] : ts(t, this._c) : [].concat(r), a], i = o[0], s = o.reduce((c, d) => {
|
|
3037
3054
|
const h = Yr(t, d, n);
|
|
3038
3055
|
return c.top = Se(h.top, c.top), c.right = ze(h.right, c.right), c.bottom = ze(h.bottom, c.bottom), c.left = Se(h.left, c.left), c;
|
|
3039
3056
|
}, Yr(t, i, n));
|
|
@@ -3044,17 +3061,17 @@ function es(e) {
|
|
|
3044
3061
|
y: s.top
|
|
3045
3062
|
};
|
|
3046
3063
|
}
|
|
3047
|
-
function
|
|
3064
|
+
function as(e) {
|
|
3048
3065
|
const {
|
|
3049
3066
|
width: t,
|
|
3050
3067
|
height: r
|
|
3051
|
-
} =
|
|
3068
|
+
} = qa(e);
|
|
3052
3069
|
return {
|
|
3053
3070
|
width: t,
|
|
3054
3071
|
height: r
|
|
3055
3072
|
};
|
|
3056
3073
|
}
|
|
3057
|
-
function
|
|
3074
|
+
function ns(e, t, r) {
|
|
3058
3075
|
const a = ce(t), n = ge(t), o = r === "fixed", i = Ue(e, !0, o, t);
|
|
3059
3076
|
let s = {
|
|
3060
3077
|
scrollLeft: 0,
|
|
@@ -3066,7 +3083,7 @@ function rs(e, t, r) {
|
|
|
3066
3083
|
const m = Ue(t, !0, o, t);
|
|
3067
3084
|
c.x = m.x + t.clientLeft, c.y = m.y + t.clientTop;
|
|
3068
3085
|
} else n && (c.x = gr(n));
|
|
3069
|
-
const d = n && !a && !o ?
|
|
3086
|
+
const d = n && !a && !o ? Ja(n, s) : le(0), h = i.left + s.scrollLeft - c.x - d.x, u = i.top + s.scrollTop - c.y - d.y;
|
|
3070
3087
|
return {
|
|
3071
3088
|
x: h,
|
|
3072
3089
|
y: u,
|
|
@@ -3085,7 +3102,7 @@ function Jr(e, t) {
|
|
|
3085
3102
|
let r = e.offsetParent;
|
|
3086
3103
|
return ge(e) === r && (r = r.ownerDocument.body), r;
|
|
3087
3104
|
}
|
|
3088
|
-
function
|
|
3105
|
+
function Za(e, t) {
|
|
3089
3106
|
const r = ee(e);
|
|
3090
3107
|
if (gt(e))
|
|
3091
3108
|
return r;
|
|
@@ -3099,14 +3116,14 @@ function Xa(e, t) {
|
|
|
3099
3116
|
return r;
|
|
3100
3117
|
}
|
|
3101
3118
|
let a = Jr(e, t);
|
|
3102
|
-
for (; a &&
|
|
3119
|
+
for (; a && ji(a) && Ot(a); )
|
|
3103
3120
|
a = Jr(a, t);
|
|
3104
|
-
return a && Re(a) && Ot(a) && !ur(a) ? r : a ||
|
|
3121
|
+
return a && Re(a) && Ot(a) && !ur(a) ? r : a || qi(e) || r;
|
|
3105
3122
|
}
|
|
3106
|
-
const
|
|
3107
|
-
const t = this.getOffsetParent ||
|
|
3123
|
+
const os = async function(e) {
|
|
3124
|
+
const t = this.getOffsetParent || Za, r = this.getDimensions, a = await r(e.floating);
|
|
3108
3125
|
return {
|
|
3109
|
-
reference:
|
|
3126
|
+
reference: ns(e.reference, await t(e.floating), e.strategy),
|
|
3110
3127
|
floating: {
|
|
3111
3128
|
x: 0,
|
|
3112
3129
|
y: 0,
|
|
@@ -3115,36 +3132,36 @@ const as = async function(e) {
|
|
|
3115
3132
|
}
|
|
3116
3133
|
};
|
|
3117
3134
|
};
|
|
3118
|
-
function
|
|
3135
|
+
function is(e) {
|
|
3119
3136
|
return ne(e).direction === "rtl";
|
|
3120
3137
|
}
|
|
3121
|
-
const
|
|
3122
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
3138
|
+
const ss = {
|
|
3139
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Ji,
|
|
3123
3140
|
getDocumentElement: ge,
|
|
3124
|
-
getClippingRect:
|
|
3125
|
-
getOffsetParent:
|
|
3126
|
-
getElementRects:
|
|
3127
|
-
getClientRects:
|
|
3128
|
-
getDimensions:
|
|
3141
|
+
getClippingRect: rs,
|
|
3142
|
+
getOffsetParent: Za,
|
|
3143
|
+
getElementRects: os,
|
|
3144
|
+
getClientRects: Xi,
|
|
3145
|
+
getDimensions: as,
|
|
3129
3146
|
getScale: Ne,
|
|
3130
3147
|
isElement: ae,
|
|
3131
|
-
isRTL:
|
|
3132
|
-
},
|
|
3148
|
+
isRTL: is
|
|
3149
|
+
}, ls = Wi, cs = Gi, ds = Hi, us = Ui, ms = (e, t, r) => {
|
|
3133
3150
|
const a = /* @__PURE__ */ new Map(), n = {
|
|
3134
|
-
platform:
|
|
3151
|
+
platform: ss,
|
|
3135
3152
|
...r
|
|
3136
3153
|
}, o = {
|
|
3137
3154
|
...n.platform,
|
|
3138
3155
|
_c: a
|
|
3139
3156
|
};
|
|
3140
|
-
return
|
|
3157
|
+
return zi(e, t, {
|
|
3141
3158
|
...n,
|
|
3142
3159
|
platform: o
|
|
3143
3160
|
});
|
|
3144
3161
|
}, Xr = ["mousedown", "touchstart"];
|
|
3145
|
-
function
|
|
3162
|
+
function gs(e, t, r) {
|
|
3146
3163
|
const a = A(null);
|
|
3147
|
-
return
|
|
3164
|
+
return $(() => {
|
|
3148
3165
|
const n = (o) => {
|
|
3149
3166
|
const i = o ? o.target : void 0;
|
|
3150
3167
|
if (Array.isArray(r)) {
|
|
@@ -3163,50 +3180,50 @@ function us(e, t, r) {
|
|
|
3163
3180
|
};
|
|
3164
3181
|
}, [e, r, t]), a;
|
|
3165
3182
|
}
|
|
3166
|
-
function
|
|
3183
|
+
function fs(e, t) {
|
|
3167
3184
|
const [r, a] = Z(!1), n = A(null), o = A(null), i = re(() => {
|
|
3168
3185
|
a((c) => (!c && (!n.current || n.current === -1) && (n.current = window.setInterval(o.current, t)), !0));
|
|
3169
3186
|
}, [t]), s = re(() => {
|
|
3170
3187
|
a(!1), window.clearInterval(n.current || -1), n.current = -1;
|
|
3171
3188
|
}, []);
|
|
3172
|
-
return
|
|
3189
|
+
return $(() => (o.current = e, r && i(), s), [e, r, i, s]), { start: i, stop: s, active: r };
|
|
3173
3190
|
}
|
|
3174
|
-
const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`,
|
|
3191
|
+
const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, hs = () => f("absolute top-0 left-0 w-max py-1 px-2 rounded text-sm z-50"), Zr = ({
|
|
3175
3192
|
mode: e
|
|
3176
3193
|
}) => f({
|
|
3177
3194
|
"bg-surface-darker": e === "dark" || e === "system",
|
|
3178
3195
|
"bg-surface-light": e === "light" || e === "alt-system",
|
|
3179
3196
|
"dark:bg-surface-light": e === "system",
|
|
3180
3197
|
"dark:bg-surface-darker": e === "alt-system"
|
|
3181
|
-
}),
|
|
3198
|
+
}), ps = ({
|
|
3182
3199
|
mode: e
|
|
3183
3200
|
}) => f({
|
|
3184
3201
|
"text-copy-light": e === "dark" || e === "system",
|
|
3185
3202
|
"text-copy-dark": e === "light" || e === "alt-system",
|
|
3186
3203
|
"dark:text-copy-dark": e === "system",
|
|
3187
3204
|
"dark:text-copy-light": e === "alt-system"
|
|
3188
|
-
}),
|
|
3205
|
+
}), bs = () => f("absolute", "size-2", "transform rotate-45"), ys = ({
|
|
3189
3206
|
mode: e,
|
|
3190
3207
|
className: t,
|
|
3191
3208
|
tooltipClassName: r,
|
|
3192
3209
|
arrowClassName: a
|
|
3193
3210
|
}) => {
|
|
3194
3211
|
const n = f("relative inline-block", t), o = f(
|
|
3195
|
-
|
|
3196
|
-
|
|
3212
|
+
Li,
|
|
3213
|
+
hs(),
|
|
3197
3214
|
Zr({ mode: e }),
|
|
3198
|
-
|
|
3215
|
+
ps({ mode: e }),
|
|
3199
3216
|
r
|
|
3200
3217
|
), i = f(
|
|
3201
|
-
|
|
3202
|
-
|
|
3218
|
+
Oi,
|
|
3219
|
+
bs(),
|
|
3203
3220
|
Zr({ mode: e }),
|
|
3204
3221
|
a
|
|
3205
3222
|
);
|
|
3206
3223
|
return { tooltip: o, arrow: i, wrapper: n };
|
|
3207
|
-
},
|
|
3224
|
+
}, vs = ({ delay: e = 300 }) => ({
|
|
3208
3225
|
animation: `av-tooltip-fade-in ${e}ms ease-in-out`
|
|
3209
|
-
}),
|
|
3226
|
+
}), ks = 5e3, Ke = ({
|
|
3210
3227
|
trigger: e,
|
|
3211
3228
|
label: t,
|
|
3212
3229
|
placement: r = "top",
|
|
@@ -3216,33 +3233,33 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gs = (
|
|
|
3216
3233
|
tooltipClassName: i,
|
|
3217
3234
|
arrowClassName: s
|
|
3218
3235
|
}) => {
|
|
3219
|
-
const c =
|
|
3236
|
+
const c = gs(() => {
|
|
3220
3237
|
b.stop(), p(!1);
|
|
3221
|
-
}), d = A(null), h = A(null), [u, m] = Z(!1), [g, p] = Z(!1), b =
|
|
3238
|
+
}), d = A(null), h = A(null), [u, m] = Z(!1), [g, p] = Z(!1), b = fs(() => {
|
|
3222
3239
|
p(!1);
|
|
3223
|
-
},
|
|
3240
|
+
}, ks), v = ys({
|
|
3224
3241
|
mode: a,
|
|
3225
3242
|
className: o,
|
|
3226
3243
|
tooltipClassName: i,
|
|
3227
3244
|
arrowClassName: s
|
|
3228
|
-
}), y =
|
|
3245
|
+
}), y = vs({ delay: n }), k = re(async () => {
|
|
3229
3246
|
var T, S, N, D;
|
|
3230
3247
|
if (c.current && d.current && h.current) {
|
|
3231
3248
|
const {
|
|
3232
3249
|
x: O,
|
|
3233
3250
|
y: j,
|
|
3234
3251
|
middlewareData: P,
|
|
3235
|
-
placement:
|
|
3236
|
-
} = await
|
|
3252
|
+
placement: B
|
|
3253
|
+
} = await ms(c.current, d.current, {
|
|
3237
3254
|
placement: r,
|
|
3238
3255
|
middleware: [
|
|
3239
|
-
|
|
3240
|
-
|
|
3256
|
+
ls(10),
|
|
3257
|
+
ds({
|
|
3241
3258
|
crossAxis: r.includes("-"),
|
|
3242
3259
|
fallbackAxisSideDirection: "start"
|
|
3243
3260
|
}),
|
|
3244
|
-
|
|
3245
|
-
|
|
3261
|
+
cs({ padding: 5 }),
|
|
3262
|
+
us({ element: h.current })
|
|
3246
3263
|
]
|
|
3247
3264
|
});
|
|
3248
3265
|
(T = d == null ? void 0 : d.current) != null && T.style && Object.assign(d.current.style, {
|
|
@@ -3255,7 +3272,7 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gs = (
|
|
|
3255
3272
|
right: "left",
|
|
3256
3273
|
bottom: "top",
|
|
3257
3274
|
left: "right"
|
|
3258
|
-
}[
|
|
3275
|
+
}[B.split("-")[0]];
|
|
3259
3276
|
(S = h == null ? void 0 : h.current) != null && S.style && Object.assign(h.current.style, {
|
|
3260
3277
|
left: et((N = P.arrow) == null ? void 0 : N.x),
|
|
3261
3278
|
top: et((D = P.arrow) == null ? void 0 : D.y),
|
|
@@ -3265,7 +3282,7 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gs = (
|
|
|
3265
3282
|
});
|
|
3266
3283
|
}
|
|
3267
3284
|
}, [r, y, c]);
|
|
3268
|
-
|
|
3285
|
+
$(() => {
|
|
3269
3286
|
(async () => u && await k())();
|
|
3270
3287
|
}, [k, u]);
|
|
3271
3288
|
const w = () => {
|
|
@@ -3300,7 +3317,7 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gs = (
|
|
|
3300
3317
|
]
|
|
3301
3318
|
}
|
|
3302
3319
|
);
|
|
3303
|
-
},
|
|
3320
|
+
}, xs = ({
|
|
3304
3321
|
className: e
|
|
3305
3322
|
}) => {
|
|
3306
3323
|
const { state: t, dispatch: r } = z(de), a = A(null), n = A(!1), o = (i) => {
|
|
@@ -3308,7 +3325,7 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gs = (
|
|
|
3308
3325
|
type: Ie
|
|
3309
3326
|
});
|
|
3310
3327
|
};
|
|
3311
|
-
return
|
|
3328
|
+
return $(() => {
|
|
3312
3329
|
var i;
|
|
3313
3330
|
(t == null ? void 0 : t.streaming) === !0 && !n.current && a.current && (n.current = !0, a.current.focus()), (t == null ? void 0 : t.streaming) === !1 && (n.current = !1, (i = a.current) == null || i.blur());
|
|
3314
3331
|
}, [t]), /* @__PURE__ */ l(
|
|
@@ -3327,7 +3344,7 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gs = (
|
|
|
3327
3344
|
label: "New Chat",
|
|
3328
3345
|
ref: a,
|
|
3329
3346
|
onClick: o,
|
|
3330
|
-
children: t != null && t.streaming ? /* @__PURE__ */ l(
|
|
3347
|
+
children: t != null && t.streaming ? /* @__PURE__ */ l(Jn, { size: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Xn, { size: "size-4" })
|
|
3331
3348
|
}
|
|
3332
3349
|
)
|
|
3333
3350
|
}
|
|
@@ -3346,7 +3363,7 @@ try {
|
|
|
3346
3363
|
});
|
|
3347
3364
|
} catch {
|
|
3348
3365
|
}
|
|
3349
|
-
const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon",
|
|
3366
|
+
const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Qa = "button", Kt = "link", ws = ({
|
|
3350
3367
|
type: e,
|
|
3351
3368
|
size: t,
|
|
3352
3369
|
labelRight: r,
|
|
@@ -3355,7 +3372,7 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
|
|
|
3355
3372
|
}) => {
|
|
3356
3373
|
const o = "max-h-8 py-0 px-2", i = "max-h-9 h-8 px-3", s = "max-h-12 py-2 px-4";
|
|
3357
3374
|
switch (e) {
|
|
3358
|
-
case
|
|
3375
|
+
case Qa:
|
|
3359
3376
|
case Kt:
|
|
3360
3377
|
return f({
|
|
3361
3378
|
[o]: t === "small",
|
|
@@ -3375,7 +3392,7 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
|
|
|
3375
3392
|
"h-12 px-4": t === "large" && (r || a)
|
|
3376
3393
|
});
|
|
3377
3394
|
}
|
|
3378
|
-
},
|
|
3395
|
+
}, _s = ({
|
|
3379
3396
|
type: e,
|
|
3380
3397
|
size: t,
|
|
3381
3398
|
labelRight: r,
|
|
@@ -3383,7 +3400,7 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
|
|
|
3383
3400
|
}) => {
|
|
3384
3401
|
const n = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
|
|
3385
3402
|
switch (e) {
|
|
3386
|
-
case
|
|
3403
|
+
case Qa:
|
|
3387
3404
|
case Kt:
|
|
3388
3405
|
return f({
|
|
3389
3406
|
"text-center": e === Kt,
|
|
@@ -3398,7 +3415,7 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
|
|
|
3398
3415
|
[i]: t === "large" && (r || a)
|
|
3399
3416
|
});
|
|
3400
3417
|
}
|
|
3401
|
-
},
|
|
3418
|
+
}, Es = ({
|
|
3402
3419
|
mode: e,
|
|
3403
3420
|
noBackground: t,
|
|
3404
3421
|
noTruncate: r,
|
|
@@ -3434,7 +3451,7 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
|
|
|
3434
3451
|
return f("not-prose text-copy-lighter", {
|
|
3435
3452
|
truncate: !r
|
|
3436
3453
|
});
|
|
3437
|
-
},
|
|
3454
|
+
}, Ts = ({
|
|
3438
3455
|
mode: e,
|
|
3439
3456
|
noBackground: t,
|
|
3440
3457
|
variant: r
|
|
@@ -3464,13 +3481,13 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
|
|
|
3464
3481
|
if (r === "selected")
|
|
3465
3482
|
return "bg-action-selected-dark";
|
|
3466
3483
|
}
|
|
3467
|
-
},
|
|
3484
|
+
}, Ss = ({
|
|
3468
3485
|
radius: e
|
|
3469
3486
|
}) => f({
|
|
3470
3487
|
"rounded-full": e === "large",
|
|
3471
3488
|
"rounded-md": e === "medium",
|
|
3472
3489
|
"rounded-sm": e === "small"
|
|
3473
|
-
}),
|
|
3490
|
+
}), Ns = ({
|
|
3474
3491
|
mode: e,
|
|
3475
3492
|
disabled: t,
|
|
3476
3493
|
variant: r
|
|
@@ -3500,7 +3517,7 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
|
|
|
3500
3517
|
});
|
|
3501
3518
|
if (r === "selected")
|
|
3502
3519
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
3503
|
-
},
|
|
3520
|
+
}, Cs = ({
|
|
3504
3521
|
mode: e,
|
|
3505
3522
|
disabled: t,
|
|
3506
3523
|
variant: r
|
|
@@ -3530,7 +3547,7 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
|
|
|
3530
3547
|
});
|
|
3531
3548
|
if (r === "selected")
|
|
3532
3549
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
3533
|
-
},
|
|
3550
|
+
}, Rs = ({
|
|
3534
3551
|
mode: e,
|
|
3535
3552
|
noBorder: t,
|
|
3536
3553
|
variant: r
|
|
@@ -3560,14 +3577,14 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
|
|
|
3560
3577
|
});
|
|
3561
3578
|
if (r === "selected")
|
|
3562
3579
|
return "border border-border-selected-dark";
|
|
3563
|
-
},
|
|
3580
|
+
}, Is = ({
|
|
3564
3581
|
focusMode: e
|
|
3565
3582
|
}) => f("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
3566
3583
|
"focus:outline-focus-dark": e === "dark",
|
|
3567
3584
|
"focus:outline-focus-light": e === "light",
|
|
3568
3585
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
3569
3586
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
3570
|
-
}),
|
|
3587
|
+
}), Ls = ({
|
|
3571
3588
|
mode: e,
|
|
3572
3589
|
raw: t,
|
|
3573
3590
|
iconClassName: r
|
|
@@ -3579,7 +3596,7 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
|
|
|
3579
3596
|
"dark:text-copy-accent-dark": e === "system"
|
|
3580
3597
|
},
|
|
3581
3598
|
r
|
|
3582
|
-
),
|
|
3599
|
+
), en = ({
|
|
3583
3600
|
type: e,
|
|
3584
3601
|
className: t,
|
|
3585
3602
|
raw: r,
|
|
@@ -3598,32 +3615,32 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
|
|
|
3598
3615
|
radius: b
|
|
3599
3616
|
}) => (m || (m = "primary"), r ? f(ta, t) : f(
|
|
3600
3617
|
ta,
|
|
3601
|
-
|
|
3618
|
+
Es({
|
|
3602
3619
|
mode: a,
|
|
3603
3620
|
variant: m,
|
|
3604
3621
|
noBackground: u,
|
|
3605
3622
|
noTruncate: g
|
|
3606
3623
|
}),
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3624
|
+
Ts({ mode: a, noBackground: u, variant: m }),
|
|
3625
|
+
Ss({ radius: b }),
|
|
3626
|
+
ws({
|
|
3610
3627
|
type: e,
|
|
3611
3628
|
size: s,
|
|
3612
3629
|
labelRight: d,
|
|
3613
3630
|
labelLeft: h,
|
|
3614
3631
|
align: p
|
|
3615
3632
|
}),
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3633
|
+
_s({ type: e, size: s, labelRight: d, labelLeft: h }),
|
|
3634
|
+
Rs({ mode: a, variant: m, noBorder: c }),
|
|
3635
|
+
Is({ focusMode: n }),
|
|
3636
|
+
Ns({ mode: a, variant: m, disabled: o }),
|
|
3637
|
+
Cs({ mode: a, variant: m, disabled: o }),
|
|
3621
3638
|
{
|
|
3622
3639
|
"w-full": i,
|
|
3623
3640
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
3624
3641
|
},
|
|
3625
3642
|
t
|
|
3626
|
-
)),
|
|
3643
|
+
)), Os = (e, t, r) => {
|
|
3627
3644
|
var a;
|
|
3628
3645
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
|
3629
3646
|
}, fr = V.forwardRef((e, t) => {
|
|
@@ -3633,14 +3650,14 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
|
|
|
3633
3650
|
{
|
|
3634
3651
|
ref: t,
|
|
3635
3652
|
onClick: (o) => {
|
|
3636
|
-
|
|
3653
|
+
Os(o, a, r);
|
|
3637
3654
|
},
|
|
3638
3655
|
...n
|
|
3639
3656
|
}
|
|
3640
3657
|
);
|
|
3641
3658
|
});
|
|
3642
3659
|
fr.displayName = "BaseButton";
|
|
3643
|
-
const
|
|
3660
|
+
const tn = V.forwardRef(
|
|
3644
3661
|
({
|
|
3645
3662
|
children: e,
|
|
3646
3663
|
disabled: t = !1,
|
|
@@ -3663,7 +3680,7 @@ const en = V.forwardRef(
|
|
|
3663
3680
|
iconClassName: k,
|
|
3664
3681
|
...w
|
|
3665
3682
|
}, _) => {
|
|
3666
|
-
const x =
|
|
3683
|
+
const x = en({
|
|
3667
3684
|
type: ht,
|
|
3668
3685
|
mode: r,
|
|
3669
3686
|
focusMode: a,
|
|
@@ -3679,7 +3696,7 @@ const en = V.forwardRef(
|
|
|
3679
3696
|
align: b,
|
|
3680
3697
|
radius: v,
|
|
3681
3698
|
variant: y
|
|
3682
|
-
}), T =
|
|
3699
|
+
}), T = Ls({ mode: r, raw: s, iconClassName: k });
|
|
3683
3700
|
return /* @__PURE__ */ E(
|
|
3684
3701
|
fr,
|
|
3685
3702
|
{
|
|
@@ -3698,7 +3715,7 @@ const en = V.forwardRef(
|
|
|
3698
3715
|
);
|
|
3699
3716
|
}
|
|
3700
3717
|
);
|
|
3701
|
-
|
|
3718
|
+
tn.displayName = "ButtonIcon";
|
|
3702
3719
|
/*!
|
|
3703
3720
|
@versini/ui-button v4.1.4
|
|
3704
3721
|
© 2025 gizmette.com
|
|
@@ -3712,7 +3729,7 @@ try {
|
|
|
3712
3729
|
});
|
|
3713
3730
|
} catch {
|
|
3714
3731
|
}
|
|
3715
|
-
const
|
|
3732
|
+
const As = V.forwardRef(
|
|
3716
3733
|
({
|
|
3717
3734
|
children: e,
|
|
3718
3735
|
disabled: t = !1,
|
|
@@ -3734,7 +3751,7 @@ const Ls = V.forwardRef(
|
|
|
3734
3751
|
radius: y = "large",
|
|
3735
3752
|
...k
|
|
3736
3753
|
}, w) => {
|
|
3737
|
-
const _ =
|
|
3754
|
+
const _ = en({
|
|
3738
3755
|
type: ht,
|
|
3739
3756
|
mode: r,
|
|
3740
3757
|
focusMode: a,
|
|
@@ -3789,8 +3806,8 @@ const Ls = V.forwardRef(
|
|
|
3789
3806
|
) });
|
|
3790
3807
|
}
|
|
3791
3808
|
);
|
|
3792
|
-
|
|
3793
|
-
const
|
|
3809
|
+
As.displayName = "ButtonSort";
|
|
3810
|
+
const $s = ({
|
|
3794
3811
|
children: e,
|
|
3795
3812
|
fill: t,
|
|
3796
3813
|
viewBox: r,
|
|
@@ -3833,14 +3850,14 @@ try {
|
|
|
3833
3850
|
});
|
|
3834
3851
|
} catch {
|
|
3835
3852
|
}
|
|
3836
|
-
const
|
|
3853
|
+
const Bs = ({
|
|
3837
3854
|
className: e,
|
|
3838
3855
|
viewBox: t,
|
|
3839
3856
|
title: r,
|
|
3840
3857
|
monotone: a,
|
|
3841
3858
|
...n
|
|
3842
3859
|
}) => /* @__PURE__ */ l(
|
|
3843
|
-
|
|
3860
|
+
$s,
|
|
3844
3861
|
{
|
|
3845
3862
|
defaultViewBox: "0 0 384 512",
|
|
3846
3863
|
size: "size-5",
|
|
@@ -3870,8 +3887,8 @@ try {
|
|
|
3870
3887
|
});
|
|
3871
3888
|
} catch {
|
|
3872
3889
|
}
|
|
3873
|
-
const
|
|
3874
|
-
function
|
|
3890
|
+
const rn = G.createContext(null);
|
|
3891
|
+
function Ms({
|
|
3875
3892
|
initialOpen: e = !1,
|
|
3876
3893
|
open: t,
|
|
3877
3894
|
onOpenChange: r
|
|
@@ -3900,19 +3917,19 @@ function $s({
|
|
|
3900
3917
|
);
|
|
3901
3918
|
}
|
|
3902
3919
|
const pt = () => {
|
|
3903
|
-
const e = G.useContext(
|
|
3920
|
+
const e = G.useContext(rn);
|
|
3904
3921
|
if (e == null)
|
|
3905
3922
|
throw new Error("Modal components must be wrapped in <Modal />");
|
|
3906
3923
|
return e;
|
|
3907
3924
|
};
|
|
3908
|
-
function
|
|
3925
|
+
function Vs({
|
|
3909
3926
|
children: e,
|
|
3910
3927
|
...t
|
|
3911
3928
|
}) {
|
|
3912
|
-
const r =
|
|
3913
|
-
return /* @__PURE__ */ l(
|
|
3929
|
+
const r = Ms(t);
|
|
3930
|
+
return /* @__PURE__ */ l(rn.Provider, { value: r, children: e });
|
|
3914
3931
|
}
|
|
3915
|
-
const
|
|
3932
|
+
const Ps = G.forwardRef(function(e, t) {
|
|
3916
3933
|
const { context: r, ...a } = pt(), n = tr([a.refs.setFloating, t]);
|
|
3917
3934
|
if (!r.open)
|
|
3918
3935
|
return null;
|
|
@@ -3920,7 +3937,7 @@ const Ms = G.forwardRef(function(e, t) {
|
|
|
3920
3937
|
[`${o}`]: o,
|
|
3921
3938
|
"bg-black sm:bg-black/[.8]": !o
|
|
3922
3939
|
});
|
|
3923
|
-
return /* @__PURE__ */ l(ha, { children: /* @__PURE__ */ l(
|
|
3940
|
+
return /* @__PURE__ */ l(ha, { children: /* @__PURE__ */ l(Pn, { className: s, lockScroll: !0, children: /* @__PURE__ */ l(pa, { context: r, children: /* @__PURE__ */ l(
|
|
3924
3941
|
"div",
|
|
3925
3942
|
{
|
|
3926
3943
|
ref: n,
|
|
@@ -3930,13 +3947,13 @@ const Ms = G.forwardRef(function(e, t) {
|
|
|
3930
3947
|
children: i.children
|
|
3931
3948
|
}
|
|
3932
3949
|
) }) }) });
|
|
3933
|
-
}),
|
|
3950
|
+
}), Ds = G.forwardRef(function({ children: e, ...t }, r) {
|
|
3934
3951
|
const { setLabelId: a } = pt(), n = er();
|
|
3935
3952
|
return G.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ l("h1", { ...t, ref: r, id: n, children: e });
|
|
3936
|
-
}),
|
|
3953
|
+
}), zs = G.forwardRef(function({ children: e, ...t }, r) {
|
|
3937
3954
|
const { setDescriptionId: a } = pt(), n = er();
|
|
3938
3955
|
return G.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ l("div", { ...t, ref: r, id: n, children: e });
|
|
3939
|
-
}),
|
|
3956
|
+
}), Us = G.forwardRef(function(e, t) {
|
|
3940
3957
|
const { setOpen: r } = pt(), { trigger: a, className: n, ...o } = e, i = G.useCallback(() => r(!1), [r]);
|
|
3941
3958
|
return /* @__PURE__ */ l("div", { className: n, children: G.cloneElement(a, {
|
|
3942
3959
|
ref: t,
|
|
@@ -3957,7 +3974,7 @@ try {
|
|
|
3957
3974
|
});
|
|
3958
3975
|
} catch {
|
|
3959
3976
|
}
|
|
3960
|
-
const Me = "panel", tt = "messagebox",
|
|
3977
|
+
const Me = "panel", tt = "messagebox", Hs = ({
|
|
3961
3978
|
className: e,
|
|
3962
3979
|
kind: t,
|
|
3963
3980
|
borderMode: r
|
|
@@ -3977,7 +3994,7 @@ const Me = "panel", tt = "messagebox", zs = ({
|
|
|
3977
3994
|
footer: "flex flex-grow flex-col sm:p-4 p-2",
|
|
3978
3995
|
header: "sm:p-4 mb-0 p-2",
|
|
3979
3996
|
close: "sm:p-4 p-2"
|
|
3980
|
-
}),
|
|
3997
|
+
}), Fs = ({
|
|
3981
3998
|
open: e,
|
|
3982
3999
|
onOpenChange: t,
|
|
3983
4000
|
title: r,
|
|
@@ -3987,46 +4004,46 @@ const Me = "panel", tt = "messagebox", zs = ({
|
|
|
3987
4004
|
kind: i = Me,
|
|
3988
4005
|
className: s
|
|
3989
4006
|
}) => {
|
|
3990
|
-
const c = A(""), d =
|
|
3991
|
-
return
|
|
4007
|
+
const c = A(""), d = Hs({ className: s, kind: i, borderMode: o });
|
|
4008
|
+
return $(() => (e && (c.current = document.title, document.title = `${r} | ${c.current}`), () => {
|
|
3992
4009
|
e && (document.title = c.current);
|
|
3993
|
-
}), [r, e]), /* @__PURE__ */ l(ke, { children: e && /* @__PURE__ */ l(
|
|
4010
|
+
}), [r, e]), /* @__PURE__ */ l(ke, { children: e && /* @__PURE__ */ l(Vs, { open: e, onOpenChange: t, children: /* @__PURE__ */ E(Ps, { className: d.main, children: [
|
|
3994
4011
|
/* @__PURE__ */ E("div", { className: "flex flex-row-reverse items-center justify-between", children: [
|
|
3995
4012
|
/* @__PURE__ */ l(
|
|
3996
|
-
|
|
4013
|
+
Us,
|
|
3997
4014
|
{
|
|
3998
4015
|
className: d.close,
|
|
3999
4016
|
trigger: /* @__PURE__ */ l(
|
|
4000
|
-
|
|
4017
|
+
tn,
|
|
4001
4018
|
{
|
|
4002
4019
|
mode: "dark",
|
|
4003
4020
|
focusMode: "light",
|
|
4004
4021
|
noBorder: !0,
|
|
4005
4022
|
label: "Close",
|
|
4006
|
-
children: /* @__PURE__ */ l(
|
|
4023
|
+
children: /* @__PURE__ */ l(Bs, {})
|
|
4007
4024
|
}
|
|
4008
4025
|
)
|
|
4009
4026
|
}
|
|
4010
4027
|
),
|
|
4011
|
-
/* @__PURE__ */ l(
|
|
4028
|
+
/* @__PURE__ */ l(Ds, { className: d.header, children: r })
|
|
4012
4029
|
] }),
|
|
4013
|
-
/* @__PURE__ */ l(
|
|
4030
|
+
/* @__PURE__ */ l(zs, { className: d.content, children: a }),
|
|
4014
4031
|
n && /* @__PURE__ */ l("div", { className: d.footer, children: n })
|
|
4015
4032
|
] }) }) });
|
|
4016
|
-
},
|
|
4033
|
+
}, Ws = ({
|
|
4017
4034
|
showConfirmation: e,
|
|
4018
4035
|
setShowConfirmation: t,
|
|
4019
4036
|
action: r,
|
|
4020
4037
|
children: a,
|
|
4021
4038
|
customStrings: n
|
|
4022
4039
|
}) => /* @__PURE__ */ l(
|
|
4023
|
-
|
|
4040
|
+
Fs,
|
|
4024
4041
|
{
|
|
4025
4042
|
kind: "messagebox",
|
|
4026
4043
|
open: e,
|
|
4027
4044
|
onOpenChange: t,
|
|
4028
4045
|
title: n.title,
|
|
4029
|
-
footer: /* @__PURE__ */ E(
|
|
4046
|
+
footer: /* @__PURE__ */ E(vn, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
|
4030
4047
|
/* @__PURE__ */ l(Nr, { children: /* @__PURE__ */ l(
|
|
4031
4048
|
Cr,
|
|
4032
4049
|
{
|
|
@@ -4054,11 +4071,11 @@ const Me = "panel", tt = "messagebox", zs = ({
|
|
|
4054
4071
|
] }),
|
|
4055
4072
|
children: a
|
|
4056
4073
|
}
|
|
4057
|
-
),
|
|
4074
|
+
), Gs = ({
|
|
4058
4075
|
className: e
|
|
4059
4076
|
}) => {
|
|
4060
4077
|
const { state: t, dispatch: r } = z(de), [a, n] = Z(!1), [o, i] = Mt({
|
|
4061
|
-
key: At +
|
|
4078
|
+
key: At + kn,
|
|
4062
4079
|
initialValue: ""
|
|
4063
4080
|
}), s = () => {
|
|
4064
4081
|
r({
|
|
@@ -4070,7 +4087,7 @@ const Me = "panel", tt = "messagebox", zs = ({
|
|
|
4070
4087
|
};
|
|
4071
4088
|
return /* @__PURE__ */ E(ke, { children: [
|
|
4072
4089
|
/* @__PURE__ */ l(
|
|
4073
|
-
|
|
4090
|
+
Ws,
|
|
4074
4091
|
{
|
|
4075
4092
|
showConfirmation: a,
|
|
4076
4093
|
setShowConfirmation: n,
|
|
@@ -4103,7 +4120,7 @@ const Me = "panel", tt = "messagebox", zs = ({
|
|
|
4103
4120
|
onClick: (d) => {
|
|
4104
4121
|
d.preventDefault(), o ? s() : (i("true"), n(!a));
|
|
4105
4122
|
},
|
|
4106
|
-
children: t != null && t.private ? /* @__PURE__ */ l(
|
|
4123
|
+
children: t != null && t.private ? /* @__PURE__ */ l(Zn, { size: "size-4", className: "text-red-500" }) : /* @__PURE__ */ l(eo, { size: "size-4" })
|
|
4107
4124
|
}
|
|
4108
4125
|
)
|
|
4109
4126
|
}
|
|
@@ -4129,7 +4146,7 @@ const Me = "panel", tt = "messagebox", zs = ({
|
|
|
4129
4146
|
return t.displayName || t.name || "Component";
|
|
4130
4147
|
}
|
|
4131
4148
|
return "Element";
|
|
4132
|
-
},
|
|
4149
|
+
}, an = ga(
|
|
4133
4150
|
({
|
|
4134
4151
|
trigger: e,
|
|
4135
4152
|
children: t,
|
|
@@ -4140,7 +4157,7 @@ const Me = "panel", tt = "messagebox", zs = ({
|
|
|
4140
4157
|
focusMode: i = "system",
|
|
4141
4158
|
...s
|
|
4142
4159
|
}, c) => {
|
|
4143
|
-
const [d, h] = Z(!1), [u, m] = Z(!1), [g, p] = Z(null), b = A([]), v = A([]), y = z(Yt), k = wa(), w =
|
|
4160
|
+
const [d, h] = Z(!1), [u, m] = Z(!1), [g, p] = Z(null), b = A([]), v = A([]), y = z(Yt), k = wa(), w = Dn(), _ = _a(), { floatingStyles: x, refs: T, context: S } = ba({
|
|
4144
4161
|
nodeId: w,
|
|
4145
4162
|
open: d,
|
|
4146
4163
|
onOpenChange: (H) => {
|
|
@@ -4148,23 +4165,23 @@ const Me = "panel", tt = "messagebox", zs = ({
|
|
|
4148
4165
|
},
|
|
4149
4166
|
placement: a,
|
|
4150
4167
|
strategy: "fixed",
|
|
4151
|
-
middleware: [
|
|
4152
|
-
whileElementsMounted:
|
|
4168
|
+
middleware: [zn({ mainAxis: 10 }), Un(), Hn()],
|
|
4169
|
+
whileElementsMounted: Fn
|
|
4153
4170
|
}), N = ya(S, {
|
|
4154
4171
|
event: "mousedown",
|
|
4155
4172
|
toggle: !0,
|
|
4156
4173
|
ignoreMouse: !1
|
|
4157
|
-
}), D = ka(S, { role: "menu" }), O = va(S, { bubbles: !0 }), j =
|
|
4174
|
+
}), D = ka(S, { role: "menu" }), O = va(S, { bubbles: !0 }), j = Wn(S, {
|
|
4158
4175
|
listRef: b,
|
|
4159
4176
|
activeIndex: g,
|
|
4160
4177
|
nested: !1,
|
|
4161
4178
|
onNavigate: p,
|
|
4162
4179
|
loop: !0
|
|
4163
|
-
}), P =
|
|
4180
|
+
}), P = Gn(S, {
|
|
4164
4181
|
listRef: v,
|
|
4165
4182
|
onMatch: d ? p : void 0,
|
|
4166
4183
|
activeIndex: g
|
|
4167
|
-
}), { getReferenceProps:
|
|
4184
|
+
}), { getReferenceProps: B, getFloatingProps: R, getItemProps: Q } = xa([N, D, O, j, P]), K = ra(e) === "Button" || ra(e) === "ButtonIcon", Y = K ? {
|
|
4168
4185
|
noInternalClick: K,
|
|
4169
4186
|
focusMode: i,
|
|
4170
4187
|
mode: o
|
|
@@ -4176,14 +4193,14 @@ const Me = "panel", tt = "messagebox", zs = ({
|
|
|
4176
4193
|
"data-open": d ? "" : void 0,
|
|
4177
4194
|
"data-focus-inside": u ? "" : void 0,
|
|
4178
4195
|
ref: tr([T.setReference, _.ref, c]),
|
|
4179
|
-
|
|
4196
|
+
...B(
|
|
4180
4197
|
y.getItemProps({
|
|
4181
4198
|
...s
|
|
4182
4199
|
})
|
|
4183
4200
|
)
|
|
4184
4201
|
}
|
|
4185
4202
|
);
|
|
4186
|
-
return
|
|
4203
|
+
return $(() => {
|
|
4187
4204
|
if (!k)
|
|
4188
4205
|
return;
|
|
4189
4206
|
function H() {
|
|
@@ -4192,9 +4209,9 @@ const Me = "panel", tt = "messagebox", zs = ({
|
|
|
4192
4209
|
return k.events.on("click", H), () => {
|
|
4193
4210
|
k.events.off("click", H);
|
|
4194
4211
|
};
|
|
4195
|
-
}, [k, n]),
|
|
4212
|
+
}, [k, n]), $(() => {
|
|
4196
4213
|
d && k && k.events.emit("menuopen", { nodeId: w });
|
|
4197
|
-
}, [k, d, w]), /* @__PURE__ */ E(
|
|
4214
|
+
}, [k, d, w]), /* @__PURE__ */ E(jn, { id: w, children: [
|
|
4198
4215
|
U,
|
|
4199
4216
|
/* @__PURE__ */ l(
|
|
4200
4217
|
Yt.Provider,
|
|
@@ -4206,7 +4223,7 @@ const Me = "panel", tt = "messagebox", zs = ({
|
|
|
4206
4223
|
setHasFocusInside: m,
|
|
4207
4224
|
isOpen: d
|
|
4208
4225
|
},
|
|
4209
|
-
children: /* @__PURE__ */ l(
|
|
4226
|
+
children: /* @__PURE__ */ l(qn, { elementsRef: b, labelsRef: v, children: d && /* @__PURE__ */ l(ha, { children: /* @__PURE__ */ l(
|
|
4210
4227
|
pa,
|
|
4211
4228
|
{
|
|
4212
4229
|
context: S,
|
|
@@ -4229,9 +4246,9 @@ const Me = "panel", tt = "messagebox", zs = ({
|
|
|
4229
4246
|
)
|
|
4230
4247
|
] });
|
|
4231
4248
|
}
|
|
4232
|
-
), hr = ga((e, t) => /* @__PURE__ */ l(
|
|
4249
|
+
), hr = ga((e, t) => /* @__PURE__ */ l(Kn, { children: /* @__PURE__ */ l(an, { ...e, ref: t }) }));
|
|
4233
4250
|
hr.displayName = "Menu";
|
|
4234
|
-
|
|
4251
|
+
an.displayName = "MenuComponent";
|
|
4235
4252
|
const ot = G.forwardRef(
|
|
4236
4253
|
({
|
|
4237
4254
|
label: e,
|
|
@@ -4296,10 +4313,10 @@ const ot = G.forwardRef(
|
|
|
4296
4313
|
}
|
|
4297
4314
|
);
|
|
4298
4315
|
ot.displayName = "MenuItem";
|
|
4299
|
-
const
|
|
4316
|
+
const nc = ({ className: e, ...t }) => {
|
|
4300
4317
|
const r = f(e, "my-1 border-t border-border-medium");
|
|
4301
4318
|
return /* @__PURE__ */ l("div", { className: r, ...t });
|
|
4302
|
-
},
|
|
4319
|
+
}, nn = ({
|
|
4303
4320
|
className: e,
|
|
4304
4321
|
...t
|
|
4305
4322
|
}) => {
|
|
@@ -4322,12 +4339,12 @@ try {
|
|
|
4322
4339
|
});
|
|
4323
4340
|
} catch {
|
|
4324
4341
|
}
|
|
4325
|
-
const
|
|
4342
|
+
const js = (e) => {
|
|
4326
4343
|
for (let t = 0; t < e.length; t++)
|
|
4327
4344
|
if (e[t].enabled)
|
|
4328
4345
|
return !0;
|
|
4329
4346
|
return !1;
|
|
4330
|
-
},
|
|
4347
|
+
}, qs = ({
|
|
4331
4348
|
className: e,
|
|
4332
4349
|
defaultPlacement: t = "top-start"
|
|
4333
4350
|
}) => {
|
|
@@ -4351,7 +4368,7 @@ const Ws = (e) => {
|
|
|
4351
4368
|
}
|
|
4352
4369
|
});
|
|
4353
4370
|
};
|
|
4354
|
-
return s || c ? null : i && i.tags &&
|
|
4371
|
+
return s || c ? null : i && i.tags && js(i.tags) && /* @__PURE__ */ l(
|
|
4355
4372
|
Ke,
|
|
4356
4373
|
{
|
|
4357
4374
|
label: "Custom Prompts",
|
|
@@ -4362,10 +4379,10 @@ const Ws = (e) => {
|
|
|
4362
4379
|
{
|
|
4363
4380
|
mode: "dark",
|
|
4364
4381
|
focusMode: "light",
|
|
4365
|
-
trigger: /* @__PURE__ */ l(He, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ l(
|
|
4382
|
+
trigger: /* @__PURE__ */ l(He, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ l(Yn, { size: "size-4" }) }),
|
|
4366
4383
|
defaultPlacement: t,
|
|
4367
4384
|
children: [
|
|
4368
|
-
/* @__PURE__ */ l(
|
|
4385
|
+
/* @__PURE__ */ l(nn, { children: "Prompts" }),
|
|
4369
4386
|
i && i.tags && i.tags.map((h) => h.enabled && h.label && h.content && /* @__PURE__ */ l(
|
|
4370
4387
|
ot,
|
|
4371
4388
|
{
|
|
@@ -4383,7 +4400,37 @@ const Ws = (e) => {
|
|
|
4383
4400
|
)
|
|
4384
4401
|
}
|
|
4385
4402
|
);
|
|
4386
|
-
},
|
|
4403
|
+
}, Ks = ({ show: e }) => e ? /* @__PURE__ */ l(
|
|
4404
|
+
"div",
|
|
4405
|
+
{
|
|
4406
|
+
className: f(
|
|
4407
|
+
Ri,
|
|
4408
|
+
"bottom-44 fixed left-1/2 transform -translate-x-1/2"
|
|
4409
|
+
),
|
|
4410
|
+
children: /* @__PURE__ */ l(
|
|
4411
|
+
"button",
|
|
4412
|
+
{
|
|
4413
|
+
className: "av-button not-prose truncate text-copy-light rounded-full inline-flex items-center justify-center h-8 w-8 p-1 border border-transparent focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-focus-dark dark:focus:outline-focus-light disabled:opacity-50 dark:bg-slate-50 bg-slate-500 disabled:cursor-auto",
|
|
4414
|
+
disabled: !0,
|
|
4415
|
+
type: "button",
|
|
4416
|
+
"aria-label": "Scroll to bottom",
|
|
4417
|
+
children: /* @__PURE__ */ l("div", { className: "text-copy-light", children: /* @__PURE__ */ l(
|
|
4418
|
+
"svg",
|
|
4419
|
+
{
|
|
4420
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4421
|
+
className: "size-4 dark:text-copy-dark text-copy-lighter",
|
|
4422
|
+
viewBox: "0 0 384 512",
|
|
4423
|
+
fill: "currentColor",
|
|
4424
|
+
role: "img",
|
|
4425
|
+
"aria-hidden": "true",
|
|
4426
|
+
focusable: "false",
|
|
4427
|
+
children: /* @__PURE__ */ l("path", { d: "M174.6 472.6c4.5 4.7 10.8 7.4 17.4 7.4s12.8-2.7 17.4-7.4l168-176c9.2-9.6 8.8-24.8-.8-33.9s-24.8-8.8-33.9 .8L216 396.1 216 56c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 340.1L41.4 263.4c-9.2-9.6-24.3-9.9-33.9-.8s-9.9 24.3-.8 33.9l168 176z" })
|
|
4428
|
+
}
|
|
4429
|
+
) })
|
|
4430
|
+
}
|
|
4431
|
+
)
|
|
4432
|
+
}
|
|
4433
|
+
) : null, Ys = ({
|
|
4387
4434
|
className: e
|
|
4388
4435
|
}) => {
|
|
4389
4436
|
const { state: t } = z(de);
|
|
@@ -4404,12 +4451,12 @@ const Ws = (e) => {
|
|
|
4404
4451
|
type: "submit",
|
|
4405
4452
|
mode: "light",
|
|
4406
4453
|
focusMode: "light",
|
|
4407
|
-
children: /* @__PURE__ */ l(
|
|
4454
|
+
children: /* @__PURE__ */ l(Qn, { size: "size-4" })
|
|
4408
4455
|
}
|
|
4409
4456
|
)
|
|
4410
4457
|
}
|
|
4411
4458
|
);
|
|
4412
|
-
},
|
|
4459
|
+
}, Js = ({
|
|
4413
4460
|
className: e
|
|
4414
4461
|
}) => {
|
|
4415
4462
|
const { state: t, dispatch: r } = z(de), { getAccessToken: a, user: n } = Fe(), {
|
|
@@ -4422,7 +4469,7 @@ const Ws = (e) => {
|
|
|
4422
4469
|
getAccessToken: a
|
|
4423
4470
|
}), d = async (h) => {
|
|
4424
4471
|
try {
|
|
4425
|
-
await
|
|
4472
|
+
await Pa({
|
|
4426
4473
|
accessToken: await a(),
|
|
4427
4474
|
type: We.SET_USER_PREFERENCES,
|
|
4428
4475
|
params: {
|
|
@@ -4452,7 +4499,7 @@ const Ws = (e) => {
|
|
|
4452
4499
|
trigger: /* @__PURE__ */ l(He, { noBorder: !0, label: "Engines", children: o && o.engine === xt ? /* @__PURE__ */ l(Ar, { size: "size-4 sm:size-5" }) : /* @__PURE__ */ l($r, { size: "size-4 sm:size-5" }) }),
|
|
4453
4500
|
defaultPlacement: "top-start",
|
|
4454
4501
|
children: [
|
|
4455
|
-
/* @__PURE__ */ l(
|
|
4502
|
+
/* @__PURE__ */ l(nn, { children: "Engines" }),
|
|
4456
4503
|
/* @__PURE__ */ l(
|
|
4457
4504
|
ot,
|
|
4458
4505
|
{
|
|
@@ -4476,35 +4523,35 @@ const Ws = (e) => {
|
|
|
4476
4523
|
)
|
|
4477
4524
|
}
|
|
4478
4525
|
);
|
|
4479
|
-
},
|
|
4526
|
+
}, Xs = () => f(
|
|
4480
4527
|
"relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
|
|
4481
|
-
), aa = () => f("bg-surface-darker"),
|
|
4528
|
+
), aa = () => f("bg-surface-darker"), Zs = () => f("text-copy-lighter caret-copy-light"), Qs = () => f(
|
|
4482
4529
|
"has-[.av-prompt-editable:focus]:outline",
|
|
4483
4530
|
"has-[.av-prompt-editable:focus]:outline-2",
|
|
4484
4531
|
"has-[.av-prompt-editable:focus]:outline-offset-2",
|
|
4485
4532
|
"has-[.av-prompt-editable:focus]:outline-focus-light"
|
|
4486
|
-
),
|
|
4533
|
+
), el = () => f(
|
|
4487
4534
|
"peer",
|
|
4488
4535
|
"text-base resize-none overflow-hidden w-full text-inherit outline-none",
|
|
4489
4536
|
"h-6 pr-2 pl-4"
|
|
4490
|
-
),
|
|
4537
|
+
), tl = ({ className: e }) => {
|
|
4491
4538
|
const t = f(
|
|
4492
|
-
|
|
4493
|
-
|
|
4539
|
+
xn,
|
|
4540
|
+
Xs(),
|
|
4494
4541
|
aa(),
|
|
4495
|
-
|
|
4496
|
-
|
|
4542
|
+
Zs(),
|
|
4543
|
+
Qs(),
|
|
4497
4544
|
e
|
|
4498
4545
|
), r = f(
|
|
4499
|
-
|
|
4500
|
-
|
|
4546
|
+
wn,
|
|
4547
|
+
el(),
|
|
4501
4548
|
aa()
|
|
4502
4549
|
);
|
|
4503
4550
|
return {
|
|
4504
4551
|
wrapper: t,
|
|
4505
4552
|
textArea: r
|
|
4506
4553
|
};
|
|
4507
|
-
},
|
|
4554
|
+
}, rl = ({
|
|
4508
4555
|
className: e,
|
|
4509
4556
|
label: t,
|
|
4510
4557
|
value: r,
|
|
@@ -4514,9 +4561,9 @@ const Ws = (e) => {
|
|
|
4514
4561
|
ref: i,
|
|
4515
4562
|
...s
|
|
4516
4563
|
}) => {
|
|
4517
|
-
const { state: u } = z(de), { state: m } = z(ut), g = A(null), p = A(null), b =
|
|
4564
|
+
const { state: u } = z(de), { state: m } = z(ut), g = A(null), p = A(null), b = mo([i, p]), v = fo(), y = tl({
|
|
4518
4565
|
className: e
|
|
4519
|
-
}), [k, w] =
|
|
4566
|
+
}), [k, w] = go({
|
|
4520
4567
|
value: r,
|
|
4521
4568
|
initialControlledDelay: 20,
|
|
4522
4569
|
defaultValue: a,
|
|
@@ -4542,9 +4589,9 @@ const Ws = (e) => {
|
|
|
4542
4589
|
}, T = (S) => {
|
|
4543
4590
|
w(S.target.value), _();
|
|
4544
4591
|
};
|
|
4545
|
-
return
|
|
4592
|
+
return $(() => {
|
|
4546
4593
|
u && u.usage === 0 && u.messages.length === 0 && p.current && (p.current.style.height = "24px");
|
|
4547
|
-
}, [u]),
|
|
4594
|
+
}, [u]), $(() => {
|
|
4548
4595
|
m.lastTriggeredTimestamp && setTimeout(() => {
|
|
4549
4596
|
_();
|
|
4550
4597
|
}, 100);
|
|
@@ -4572,11 +4619,11 @@ const Ws = (e) => {
|
|
|
4572
4619
|
}
|
|
4573
4620
|
) }),
|
|
4574
4621
|
/* @__PURE__ */ E("div", { className: "p-2 flex items-center", children: [
|
|
4575
|
-
/* @__PURE__ */ l(
|
|
4576
|
-
/* @__PURE__ */ l(
|
|
4577
|
-
/* @__PURE__ */ l(
|
|
4578
|
-
/* @__PURE__ */ l(
|
|
4579
|
-
/* @__PURE__ */ l(
|
|
4622
|
+
/* @__PURE__ */ l(Ys, { className: "order-5 ml-auto" }),
|
|
4623
|
+
/* @__PURE__ */ l(xs, { className: "order-1 mr-2" }),
|
|
4624
|
+
/* @__PURE__ */ l(Js, { className: "order-2 mr-2" }),
|
|
4625
|
+
/* @__PURE__ */ l(qs, { className: "order-3 mr-2" }),
|
|
4626
|
+
/* @__PURE__ */ l(Gs, { className: "order-4 mr-2" })
|
|
4580
4627
|
] })
|
|
4581
4628
|
] })
|
|
4582
4629
|
}
|
|
@@ -4594,15 +4641,34 @@ const Ws = (e) => {
|
|
|
4594
4641
|
payload: {
|
|
4595
4642
|
message: {
|
|
4596
4643
|
role: Qt,
|
|
4597
|
-
content:
|
|
4644
|
+
content: Sn
|
|
4598
4645
|
}
|
|
4599
4646
|
}
|
|
4600
4647
|
});
|
|
4601
|
-
},
|
|
4648
|
+
}, al = () => {
|
|
4602
4649
|
const { state: e, dispatch: t } = z(de), { state: r, dispatch: a } = z(ut), [n, o] = Z(""), { getAccessToken: i, user: s } = Fe(), c = A(null), d = A(
|
|
4603
4650
|
null
|
|
4604
4651
|
);
|
|
4605
|
-
|
|
4652
|
+
so([
|
|
4653
|
+
[
|
|
4654
|
+
"mod+K",
|
|
4655
|
+
() => {
|
|
4656
|
+
c && c.current && c.current.focus();
|
|
4657
|
+
}
|
|
4658
|
+
]
|
|
4659
|
+
]);
|
|
4660
|
+
const h = async (u) => {
|
|
4661
|
+
u.preventDefault(), t({
|
|
4662
|
+
type: Ve,
|
|
4663
|
+
payload: {
|
|
4664
|
+
message: {
|
|
4665
|
+
role: $t,
|
|
4666
|
+
content: n
|
|
4667
|
+
}
|
|
4668
|
+
}
|
|
4669
|
+
}), o("");
|
|
4670
|
+
};
|
|
4671
|
+
return $(() => {
|
|
4606
4672
|
(async () => {
|
|
4607
4673
|
var m;
|
|
4608
4674
|
if (!e || e.messages.length === 0) {
|
|
@@ -4610,9 +4676,9 @@ const Ws = (e) => {
|
|
|
4610
4676
|
return;
|
|
4611
4677
|
}
|
|
4612
4678
|
const u = e.messages[e.messages.length - 1];
|
|
4613
|
-
if (!(e.messages.length === 0 || u.message.role === Pe || u.message.role ===
|
|
4679
|
+
if (!(e.messages.length === 0 || u.message.role === Pe || u.message.role === _n || u.message.role === Qt || u.message.role === En))
|
|
4614
4680
|
try {
|
|
4615
|
-
const g = await
|
|
4681
|
+
const g = await _i({
|
|
4616
4682
|
accessToken: await i(),
|
|
4617
4683
|
name: "generate",
|
|
4618
4684
|
data: {
|
|
@@ -4676,19 +4742,7 @@ const Ws = (e) => {
|
|
|
4676
4742
|
console.error(g), na(t);
|
|
4677
4743
|
}
|
|
4678
4744
|
})();
|
|
4679
|
-
}, [e == null ? void 0 : e.messages])
|
|
4680
|
-
const h = async (u) => {
|
|
4681
|
-
u.preventDefault(), t({
|
|
4682
|
-
type: Ve,
|
|
4683
|
-
payload: {
|
|
4684
|
-
message: {
|
|
4685
|
-
role: $t,
|
|
4686
|
-
content: n
|
|
4687
|
-
}
|
|
4688
|
-
}
|
|
4689
|
-
}), o("");
|
|
4690
|
-
};
|
|
4691
|
-
return M(() => {
|
|
4745
|
+
}, [e == null ? void 0 : e.messages]), $(() => {
|
|
4692
4746
|
if (r.prompt !== "") {
|
|
4693
4747
|
const u = r.prompt.endsWith(":") && !r.prompt.endsWith(": ") ? r.prompt + " " : r.prompt;
|
|
4694
4748
|
u.indexOf(Lr) !== -1 ? navigator.clipboard.readText().then((g) => {
|
|
@@ -4697,73 +4751,43 @@ const Ws = (e) => {
|
|
|
4697
4751
|
type: da
|
|
4698
4752
|
});
|
|
4699
4753
|
}
|
|
4700
|
-
}, [r, a]),
|
|
4754
|
+
}, [r, a]), $(() => {
|
|
4701
4755
|
e && e.usage === 0 && e.messages.length === 0 && (o(""), c.current && c.current.focus());
|
|
4702
|
-
}, [e]),
|
|
4756
|
+
}, [e]), $(() => {
|
|
4703
4757
|
(e == null ? void 0 : e.streaming) === !1 && c.current && c.current.focus();
|
|
4704
4758
|
}, [e]), /* @__PURE__ */ l(ke, { children: /* @__PURE__ */ l(
|
|
4705
|
-
|
|
4759
|
+
rl,
|
|
4706
4760
|
{
|
|
4707
|
-
label:
|
|
4761
|
+
label: Tn,
|
|
4708
4762
|
onSubmit: h,
|
|
4709
4763
|
ref: c,
|
|
4710
4764
|
value: n,
|
|
4711
4765
|
onChange: (u) => o(u.target.value)
|
|
4712
4766
|
}
|
|
4713
4767
|
) });
|
|
4714
|
-
},
|
|
4768
|
+
}, nl = ({ isComponent: e }) => {
|
|
4715
4769
|
const { state: t } = z(de), r = A(!1), a = window.innerWidth < 403, [n, o] = Z(
|
|
4716
4770
|
a ? "bottom-4" : e ? "top-[300px]" : "top-[245px]"
|
|
4717
4771
|
);
|
|
4718
|
-
return
|
|
4772
|
+
return $(() => {
|
|
4719
4773
|
a || t && (!r.current && t.streaming && o("bottom-4"), r.current = !!t.streaming);
|
|
4720
|
-
}, [t, a]),
|
|
4774
|
+
}, [t, a]), $(() => {
|
|
4721
4775
|
a || (t && t.messages.length === 0 && o(e ? "top-[300px]" : "top-[245px]"), t && !t.streaming && t.messages.length > 0 && o("bottom-4"));
|
|
4722
4776
|
}, [t, a, e]), /* @__PURE__ */ E(
|
|
4723
4777
|
"footer",
|
|
4724
4778
|
{
|
|
4725
4779
|
className: f(
|
|
4726
4780
|
"px-2 sm:px-0 md:mx-auto md:max-w-4xl w-full fixed left-1/2 transform -translate-x-1/2",
|
|
4727
|
-
|
|
4781
|
+
Ci,
|
|
4728
4782
|
n
|
|
4729
4783
|
),
|
|
4730
4784
|
children: [
|
|
4731
|
-
/* @__PURE__ */ l(
|
|
4732
|
-
/* @__PURE__ */ l("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children:
|
|
4785
|
+
/* @__PURE__ */ l(al, {}),
|
|
4786
|
+
/* @__PURE__ */ l("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: Nn })
|
|
4733
4787
|
]
|
|
4734
4788
|
}
|
|
4735
4789
|
);
|
|
4736
|
-
}
|
|
4737
|
-
"div",
|
|
4738
|
-
{
|
|
4739
|
-
className: f(
|
|
4740
|
-
Ni,
|
|
4741
|
-
"bottom-44 fixed left-1/2 transform -translate-x-1/2"
|
|
4742
|
-
),
|
|
4743
|
-
children: /* @__PURE__ */ l(
|
|
4744
|
-
"button",
|
|
4745
|
-
{
|
|
4746
|
-
className: "av-button not-prose truncate text-copy-light rounded-full inline-flex items-center justify-center h-8 w-8 p-1 border border-transparent focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-focus-dark dark:focus:outline-focus-light disabled:opacity-50 dark:bg-slate-50 bg-slate-500 disabled:cursor-auto",
|
|
4747
|
-
disabled: !0,
|
|
4748
|
-
type: "button",
|
|
4749
|
-
"aria-label": "Scroll to bottom",
|
|
4750
|
-
children: /* @__PURE__ */ l("div", { className: "text-copy-light", children: /* @__PURE__ */ l(
|
|
4751
|
-
"svg",
|
|
4752
|
-
{
|
|
4753
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4754
|
-
className: "size-4 dark:text-copy-dark text-copy-lighter",
|
|
4755
|
-
viewBox: "0 0 384 512",
|
|
4756
|
-
fill: "currentColor",
|
|
4757
|
-
role: "img",
|
|
4758
|
-
"aria-hidden": "true",
|
|
4759
|
-
focusable: "false",
|
|
4760
|
-
children: /* @__PURE__ */ l("path", { d: "M174.6 472.6c4.5 4.7 10.8 7.4 17.4 7.4s12.8-2.7 17.4-7.4l168-176c9.2-9.6 8.8-24.8-.8-33.9s-24.8-8.8-33.9 .8L216 396.1 216 56c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 340.1L41.4 263.4c-9.2-9.6-24.3-9.9-33.9-.8s-9.9 24.3-.8 33.9l168 176z" })
|
|
4761
|
-
}
|
|
4762
|
-
) })
|
|
4763
|
-
}
|
|
4764
|
-
)
|
|
4765
|
-
}
|
|
4766
|
-
) : null;
|
|
4790
|
+
};
|
|
4767
4791
|
/*!
|
|
4768
4792
|
@versini/ui-bubble v3.1.12
|
|
4769
4793
|
© 2025 gizmette.com
|
|
@@ -4777,7 +4801,7 @@ try {
|
|
|
4777
4801
|
});
|
|
4778
4802
|
} catch {
|
|
4779
4803
|
}
|
|
4780
|
-
const
|
|
4804
|
+
const ol = "av-bubble", oa = "av-button", bt = "icon", on = "button", Xt = "link", il = ({
|
|
4781
4805
|
type: e,
|
|
4782
4806
|
size: t,
|
|
4783
4807
|
labelRight: r,
|
|
@@ -4786,7 +4810,7 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
|
|
|
4786
4810
|
}) => {
|
|
4787
4811
|
const o = "max-h-8 py-0 px-2", i = "max-h-9 h-8 px-3", s = "max-h-12 py-2 px-4";
|
|
4788
4812
|
switch (e) {
|
|
4789
|
-
case
|
|
4813
|
+
case on:
|
|
4790
4814
|
case Xt:
|
|
4791
4815
|
return f({
|
|
4792
4816
|
[o]: t === "small",
|
|
@@ -4806,7 +4830,7 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
|
|
|
4806
4830
|
"h-12 px-4": t === "large" && (r || a)
|
|
4807
4831
|
});
|
|
4808
4832
|
}
|
|
4809
|
-
},
|
|
4833
|
+
}, sl = ({
|
|
4810
4834
|
type: e,
|
|
4811
4835
|
size: t,
|
|
4812
4836
|
labelRight: r,
|
|
@@ -4814,7 +4838,7 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
|
|
|
4814
4838
|
}) => {
|
|
4815
4839
|
const n = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
|
|
4816
4840
|
switch (e) {
|
|
4817
|
-
case
|
|
4841
|
+
case on:
|
|
4818
4842
|
case Xt:
|
|
4819
4843
|
return f({
|
|
4820
4844
|
"text-center": e === Xt,
|
|
@@ -4829,7 +4853,7 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
|
|
|
4829
4853
|
[i]: t === "large" && (r || a)
|
|
4830
4854
|
});
|
|
4831
4855
|
}
|
|
4832
|
-
},
|
|
4856
|
+
}, ll = ({
|
|
4833
4857
|
mode: e,
|
|
4834
4858
|
noBackground: t,
|
|
4835
4859
|
noTruncate: r,
|
|
@@ -4865,7 +4889,7 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
|
|
|
4865
4889
|
return f("not-prose text-copy-lighter", {
|
|
4866
4890
|
truncate: !r
|
|
4867
4891
|
});
|
|
4868
|
-
},
|
|
4892
|
+
}, cl = ({
|
|
4869
4893
|
mode: e,
|
|
4870
4894
|
noBackground: t,
|
|
4871
4895
|
variant: r
|
|
@@ -4895,13 +4919,13 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
|
|
|
4895
4919
|
if (r === "selected")
|
|
4896
4920
|
return "bg-action-selected-dark";
|
|
4897
4921
|
}
|
|
4898
|
-
},
|
|
4922
|
+
}, dl = ({
|
|
4899
4923
|
radius: e
|
|
4900
4924
|
}) => f({
|
|
4901
4925
|
"rounded-full": e === "large",
|
|
4902
4926
|
"rounded-md": e === "medium",
|
|
4903
4927
|
"rounded-sm": e === "small"
|
|
4904
|
-
}),
|
|
4928
|
+
}), ul = ({
|
|
4905
4929
|
mode: e,
|
|
4906
4930
|
disabled: t,
|
|
4907
4931
|
variant: r
|
|
@@ -4931,7 +4955,7 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
|
|
|
4931
4955
|
});
|
|
4932
4956
|
if (r === "selected")
|
|
4933
4957
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
4934
|
-
},
|
|
4958
|
+
}, ml = ({
|
|
4935
4959
|
mode: e,
|
|
4936
4960
|
disabled: t,
|
|
4937
4961
|
variant: r
|
|
@@ -4961,7 +4985,7 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
|
|
|
4961
4985
|
});
|
|
4962
4986
|
if (r === "selected")
|
|
4963
4987
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
4964
|
-
},
|
|
4988
|
+
}, gl = ({
|
|
4965
4989
|
mode: e,
|
|
4966
4990
|
noBorder: t,
|
|
4967
4991
|
variant: r
|
|
@@ -4991,14 +5015,14 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
|
|
|
4991
5015
|
});
|
|
4992
5016
|
if (r === "selected")
|
|
4993
5017
|
return "border border-border-selected-dark";
|
|
4994
|
-
},
|
|
5018
|
+
}, fl = ({
|
|
4995
5019
|
focusMode: e
|
|
4996
5020
|
}) => f("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
4997
5021
|
"focus:outline-focus-dark": e === "dark",
|
|
4998
5022
|
"focus:outline-focus-light": e === "light",
|
|
4999
5023
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
5000
5024
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
5001
|
-
}),
|
|
5025
|
+
}), hl = ({
|
|
5002
5026
|
mode: e,
|
|
5003
5027
|
raw: t,
|
|
5004
5028
|
iconClassName: r
|
|
@@ -5010,7 +5034,7 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
|
|
|
5010
5034
|
"dark:text-copy-accent-dark": e === "system"
|
|
5011
5035
|
},
|
|
5012
5036
|
r
|
|
5013
|
-
),
|
|
5037
|
+
), sn = ({
|
|
5014
5038
|
type: e,
|
|
5015
5039
|
className: t,
|
|
5016
5040
|
raw: r,
|
|
@@ -5029,32 +5053,32 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
|
|
|
5029
5053
|
radius: b
|
|
5030
5054
|
}) => (m || (m = "primary"), r ? f(oa, t) : f(
|
|
5031
5055
|
oa,
|
|
5032
|
-
|
|
5056
|
+
ll({
|
|
5033
5057
|
mode: a,
|
|
5034
5058
|
variant: m,
|
|
5035
5059
|
noBackground: u,
|
|
5036
5060
|
noTruncate: g
|
|
5037
5061
|
}),
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5062
|
+
cl({ mode: a, noBackground: u, variant: m }),
|
|
5063
|
+
dl({ radius: b }),
|
|
5064
|
+
il({
|
|
5041
5065
|
type: e,
|
|
5042
5066
|
size: s,
|
|
5043
5067
|
labelRight: d,
|
|
5044
5068
|
labelLeft: h,
|
|
5045
5069
|
align: p
|
|
5046
5070
|
}),
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5071
|
+
sl({ type: e, size: s, labelRight: d, labelLeft: h }),
|
|
5072
|
+
gl({ mode: a, variant: m, noBorder: c }),
|
|
5073
|
+
fl({ focusMode: n }),
|
|
5074
|
+
ul({ mode: a, variant: m, disabled: o }),
|
|
5075
|
+
ml({ mode: a, variant: m, disabled: o }),
|
|
5052
5076
|
{
|
|
5053
5077
|
"w-full": i,
|
|
5054
5078
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
5055
5079
|
},
|
|
5056
5080
|
t
|
|
5057
|
-
)),
|
|
5081
|
+
)), pl = (e, t, r) => {
|
|
5058
5082
|
var a;
|
|
5059
5083
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
|
5060
5084
|
}, pr = V.forwardRef((e, t) => {
|
|
@@ -5064,14 +5088,14 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
|
|
|
5064
5088
|
{
|
|
5065
5089
|
ref: t,
|
|
5066
5090
|
onClick: (o) => {
|
|
5067
|
-
|
|
5091
|
+
pl(o, a, r);
|
|
5068
5092
|
},
|
|
5069
5093
|
...n
|
|
5070
5094
|
}
|
|
5071
5095
|
);
|
|
5072
5096
|
});
|
|
5073
5097
|
pr.displayName = "BaseButton";
|
|
5074
|
-
const
|
|
5098
|
+
const ln = V.forwardRef(
|
|
5075
5099
|
({
|
|
5076
5100
|
children: e,
|
|
5077
5101
|
disabled: t = !1,
|
|
@@ -5094,7 +5118,7 @@ const sn = V.forwardRef(
|
|
|
5094
5118
|
iconClassName: k,
|
|
5095
5119
|
...w
|
|
5096
5120
|
}, _) => {
|
|
5097
|
-
const x =
|
|
5121
|
+
const x = sn({
|
|
5098
5122
|
type: bt,
|
|
5099
5123
|
mode: r,
|
|
5100
5124
|
focusMode: a,
|
|
@@ -5110,7 +5134,7 @@ const sn = V.forwardRef(
|
|
|
5110
5134
|
align: b,
|
|
5111
5135
|
radius: v,
|
|
5112
5136
|
variant: y
|
|
5113
|
-
}), T =
|
|
5137
|
+
}), T = hl({ mode: r, raw: s, iconClassName: k });
|
|
5114
5138
|
return /* @__PURE__ */ E(
|
|
5115
5139
|
pr,
|
|
5116
5140
|
{
|
|
@@ -5129,7 +5153,7 @@ const sn = V.forwardRef(
|
|
|
5129
5153
|
);
|
|
5130
5154
|
}
|
|
5131
5155
|
);
|
|
5132
|
-
|
|
5156
|
+
ln.displayName = "ButtonIcon";
|
|
5133
5157
|
/*!
|
|
5134
5158
|
@versini/ui-button v4.1.4
|
|
5135
5159
|
© 2025 gizmette.com
|
|
@@ -5143,7 +5167,7 @@ try {
|
|
|
5143
5167
|
});
|
|
5144
5168
|
} catch {
|
|
5145
5169
|
}
|
|
5146
|
-
const
|
|
5170
|
+
const bl = V.forwardRef(
|
|
5147
5171
|
({
|
|
5148
5172
|
children: e,
|
|
5149
5173
|
disabled: t = !1,
|
|
@@ -5165,7 +5189,7 @@ const hl = V.forwardRef(
|
|
|
5165
5189
|
radius: y = "large",
|
|
5166
5190
|
...k
|
|
5167
5191
|
}, w) => {
|
|
5168
|
-
const _ =
|
|
5192
|
+
const _ = sn({
|
|
5169
5193
|
type: bt,
|
|
5170
5194
|
mode: r,
|
|
5171
5195
|
focusMode: a,
|
|
@@ -5220,8 +5244,8 @@ const hl = V.forwardRef(
|
|
|
5220
5244
|
) });
|
|
5221
5245
|
}
|
|
5222
5246
|
);
|
|
5223
|
-
|
|
5224
|
-
const
|
|
5247
|
+
bl.displayName = "ButtonSort";
|
|
5248
|
+
const cn = ({
|
|
5225
5249
|
children: e,
|
|
5226
5250
|
fill: t,
|
|
5227
5251
|
viewBox: r,
|
|
@@ -5264,14 +5288,14 @@ try {
|
|
|
5264
5288
|
});
|
|
5265
5289
|
} catch {
|
|
5266
5290
|
}
|
|
5267
|
-
const
|
|
5291
|
+
const yl = ({
|
|
5268
5292
|
className: e,
|
|
5269
5293
|
viewBox: t,
|
|
5270
5294
|
title: r,
|
|
5271
5295
|
monotone: a,
|
|
5272
5296
|
...n
|
|
5273
5297
|
}) => /* @__PURE__ */ E(
|
|
5274
|
-
|
|
5298
|
+
cn,
|
|
5275
5299
|
{
|
|
5276
5300
|
defaultViewBox: "0 0 448 512",
|
|
5277
5301
|
size: "size-5",
|
|
@@ -5290,14 +5314,14 @@ const pl = ({
|
|
|
5290
5314
|
/* @__PURE__ */ l("path", { d: "M337 175c9.4 9.4 9.4 24.6 0 33.9L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0z" })
|
|
5291
5315
|
]
|
|
5292
5316
|
}
|
|
5293
|
-
),
|
|
5317
|
+
), vl = ({
|
|
5294
5318
|
className: e,
|
|
5295
5319
|
viewBox: t,
|
|
5296
5320
|
title: r,
|
|
5297
5321
|
monotone: a,
|
|
5298
5322
|
...n
|
|
5299
5323
|
}) => /* @__PURE__ */ l(
|
|
5300
|
-
|
|
5324
|
+
cn,
|
|
5301
5325
|
{
|
|
5302
5326
|
defaultViewBox: "0 0 512 512",
|
|
5303
5327
|
size: "size-5",
|
|
@@ -5321,30 +5345,30 @@ try {
|
|
|
5321
5345
|
});
|
|
5322
5346
|
} catch {
|
|
5323
5347
|
}
|
|
5324
|
-
const
|
|
5348
|
+
const kl = ({
|
|
5325
5349
|
kind: e,
|
|
5326
5350
|
noMaxWidth: t
|
|
5327
5351
|
}) => f("p-4", {
|
|
5328
5352
|
"max-w-xs sm:max-w-md md:max-w-2xl": !t,
|
|
5329
5353
|
"lg:max-w-3xl": e === "left" && !t
|
|
5330
|
-
}),
|
|
5354
|
+
}), xl = ({ kind: e }) => f({
|
|
5331
5355
|
"bg-surface-lighter dark:bg-surface-dark": e === "left",
|
|
5332
5356
|
"bg-surface-accent": e === "right"
|
|
5333
|
-
}),
|
|
5357
|
+
}), wl = ({ kind: e }) => f(
|
|
5334
5358
|
"prose prose-dark dark:prose-lighter prose-p:my-3 prose-blockquote:my-3 prose-ol:my-3 prose-ul:my-3 prose-ul:prose-li:marker:text-black",
|
|
5335
5359
|
{
|
|
5336
5360
|
"text-copy-lighter": e === "right"
|
|
5337
5361
|
}
|
|
5338
|
-
),
|
|
5362
|
+
), _l = ({ kind: e }) => f("rounded-b-xl", {
|
|
5339
5363
|
"rounded-tr-xl": e === "left",
|
|
5340
5364
|
"rounded-tl-xl": e === "right"
|
|
5341
|
-
}),
|
|
5365
|
+
}), El = ({
|
|
5342
5366
|
kind: e,
|
|
5343
5367
|
className: t,
|
|
5344
5368
|
noMaxWidth: r
|
|
5345
5369
|
}) => {
|
|
5346
5370
|
const a = f(
|
|
5347
|
-
|
|
5371
|
+
ol,
|
|
5348
5372
|
"flex items-start",
|
|
5349
5373
|
{
|
|
5350
5374
|
"flex-row-reverse": e === "right"
|
|
@@ -5352,10 +5376,10 @@ const yl = ({
|
|
|
5352
5376
|
t
|
|
5353
5377
|
), n = f(
|
|
5354
5378
|
"flex flex-col empty:hidden",
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5379
|
+
kl({ kind: e, noMaxWidth: r }),
|
|
5380
|
+
wl({ kind: e }),
|
|
5381
|
+
xl({ kind: e }),
|
|
5382
|
+
_l({ kind: e })
|
|
5359
5383
|
), o = "pr-2 pt-1 text-end text-xs text-copy-light", i = f("flex flex-col-reverse gap-2 sm:flex-row", {
|
|
5360
5384
|
"ml-2": e === "left",
|
|
5361
5385
|
"mr-2": e === "right"
|
|
@@ -5366,7 +5390,7 @@ const yl = ({
|
|
|
5366
5390
|
footer: o,
|
|
5367
5391
|
copyButton: i
|
|
5368
5392
|
};
|
|
5369
|
-
},
|
|
5393
|
+
}, Tl = ({
|
|
5370
5394
|
children: e,
|
|
5371
5395
|
kind: t = "left",
|
|
5372
5396
|
className: r,
|
|
@@ -5377,10 +5401,10 @@ const yl = ({
|
|
|
5377
5401
|
copyToClipboardMode: s = "system",
|
|
5378
5402
|
noMaxWidth: c = !1
|
|
5379
5403
|
}) => {
|
|
5380
|
-
const [d, h] = Z(!1), u =
|
|
5404
|
+
const [d, h] = Z(!1), u = El({ kind: t, className: r, noMaxWidth: c }), m = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), g = () => {
|
|
5381
5405
|
h(!0), typeof o == "function" ? o(e) : typeof o == "string" ? navigator.clipboard.writeText(o) : typeof e == "string" && navigator.clipboard.writeText(e);
|
|
5382
5406
|
};
|
|
5383
|
-
return
|
|
5407
|
+
return $(() => {
|
|
5384
5408
|
let p;
|
|
5385
5409
|
return d && (p = window.setTimeout(() => {
|
|
5386
5410
|
h(!1);
|
|
@@ -5398,7 +5422,7 @@ const yl = ({
|
|
|
5398
5422
|
n && n
|
|
5399
5423
|
] }),
|
|
5400
5424
|
m && /* @__PURE__ */ l("div", { className: u.copyButton, children: /* @__PURE__ */ l(
|
|
5401
|
-
|
|
5425
|
+
ln,
|
|
5402
5426
|
{
|
|
5403
5427
|
noBorder: !0,
|
|
5404
5428
|
noBackground: !0,
|
|
@@ -5408,11 +5432,11 @@ const yl = ({
|
|
|
5408
5432
|
label: d ? "Copied to clipboard" : "Copy to clipboard",
|
|
5409
5433
|
onClick: g,
|
|
5410
5434
|
disabled: d,
|
|
5411
|
-
children: d ? /* @__PURE__ */ l(
|
|
5435
|
+
children: d ? /* @__PURE__ */ l(yl, { size: "size-3" }) : /* @__PURE__ */ l(vl, { size: "size-3" })
|
|
5412
5436
|
}
|
|
5413
5437
|
) })
|
|
5414
5438
|
] });
|
|
5415
|
-
}, ia = "av-button", br = "icon", yr = "button", Zt = "link",
|
|
5439
|
+
}, ia = "av-button", br = "icon", yr = "button", Zt = "link", Sl = ({
|
|
5416
5440
|
type: e,
|
|
5417
5441
|
size: t,
|
|
5418
5442
|
labelRight: r,
|
|
@@ -5441,7 +5465,7 @@ const yl = ({
|
|
|
5441
5465
|
"h-12 px-4": t === "large" && (r || a)
|
|
5442
5466
|
});
|
|
5443
5467
|
}
|
|
5444
|
-
},
|
|
5468
|
+
}, Nl = ({
|
|
5445
5469
|
type: e,
|
|
5446
5470
|
size: t,
|
|
5447
5471
|
labelRight: r,
|
|
@@ -5464,7 +5488,7 @@ const yl = ({
|
|
|
5464
5488
|
[i]: t === "large" && (r || a)
|
|
5465
5489
|
});
|
|
5466
5490
|
}
|
|
5467
|
-
},
|
|
5491
|
+
}, Cl = ({
|
|
5468
5492
|
mode: e,
|
|
5469
5493
|
noBackground: t,
|
|
5470
5494
|
noTruncate: r,
|
|
@@ -5500,7 +5524,7 @@ const yl = ({
|
|
|
5500
5524
|
return f("not-prose text-copy-lighter", {
|
|
5501
5525
|
truncate: !r
|
|
5502
5526
|
});
|
|
5503
|
-
},
|
|
5527
|
+
}, Rl = ({
|
|
5504
5528
|
mode: e,
|
|
5505
5529
|
noBackground: t,
|
|
5506
5530
|
variant: r
|
|
@@ -5530,13 +5554,13 @@ const yl = ({
|
|
|
5530
5554
|
if (r === "selected")
|
|
5531
5555
|
return "bg-action-selected-dark";
|
|
5532
5556
|
}
|
|
5533
|
-
},
|
|
5557
|
+
}, Il = ({
|
|
5534
5558
|
radius: e
|
|
5535
5559
|
}) => f({
|
|
5536
5560
|
"rounded-full": e === "large",
|
|
5537
5561
|
"rounded-md": e === "medium",
|
|
5538
5562
|
"rounded-sm": e === "small"
|
|
5539
|
-
}),
|
|
5563
|
+
}), Ll = ({
|
|
5540
5564
|
mode: e,
|
|
5541
5565
|
disabled: t,
|
|
5542
5566
|
variant: r
|
|
@@ -5566,7 +5590,7 @@ const yl = ({
|
|
|
5566
5590
|
});
|
|
5567
5591
|
if (r === "selected")
|
|
5568
5592
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
5569
|
-
},
|
|
5593
|
+
}, Ol = ({
|
|
5570
5594
|
mode: e,
|
|
5571
5595
|
disabled: t,
|
|
5572
5596
|
variant: r
|
|
@@ -5596,7 +5620,7 @@ const yl = ({
|
|
|
5596
5620
|
});
|
|
5597
5621
|
if (r === "selected")
|
|
5598
5622
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
5599
|
-
},
|
|
5623
|
+
}, Al = ({
|
|
5600
5624
|
mode: e,
|
|
5601
5625
|
noBorder: t,
|
|
5602
5626
|
variant: r
|
|
@@ -5626,14 +5650,14 @@ const yl = ({
|
|
|
5626
5650
|
});
|
|
5627
5651
|
if (r === "selected")
|
|
5628
5652
|
return "border border-border-selected-dark";
|
|
5629
|
-
},
|
|
5653
|
+
}, $l = ({
|
|
5630
5654
|
focusMode: e
|
|
5631
5655
|
}) => f("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
5632
5656
|
"focus:outline-focus-dark": e === "dark",
|
|
5633
5657
|
"focus:outline-focus-light": e === "light",
|
|
5634
5658
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
5635
5659
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
5636
|
-
}),
|
|
5660
|
+
}), dn = ({
|
|
5637
5661
|
type: e,
|
|
5638
5662
|
className: t,
|
|
5639
5663
|
raw: r,
|
|
@@ -5652,32 +5676,32 @@ const yl = ({
|
|
|
5652
5676
|
radius: b
|
|
5653
5677
|
}) => (m || (m = "primary"), r ? f(ia, t) : f(
|
|
5654
5678
|
ia,
|
|
5655
|
-
|
|
5679
|
+
Cl({
|
|
5656
5680
|
mode: a,
|
|
5657
5681
|
variant: m,
|
|
5658
5682
|
noBackground: u,
|
|
5659
5683
|
noTruncate: g
|
|
5660
5684
|
}),
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5685
|
+
Rl({ mode: a, noBackground: u, variant: m }),
|
|
5686
|
+
Il({ radius: b }),
|
|
5687
|
+
Sl({
|
|
5664
5688
|
type: e,
|
|
5665
5689
|
size: s,
|
|
5666
5690
|
labelRight: d,
|
|
5667
5691
|
labelLeft: h,
|
|
5668
5692
|
align: p
|
|
5669
5693
|
}),
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5694
|
+
Nl({ type: e, size: s, labelRight: d, labelLeft: h }),
|
|
5695
|
+
Al({ mode: a, variant: m, noBorder: c }),
|
|
5696
|
+
$l({ focusMode: n }),
|
|
5697
|
+
Ll({ mode: a, variant: m, disabled: o }),
|
|
5698
|
+
Ol({ mode: a, variant: m, disabled: o }),
|
|
5675
5699
|
{
|
|
5676
5700
|
"w-full": i,
|
|
5677
5701
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
5678
5702
|
},
|
|
5679
5703
|
t
|
|
5680
|
-
)),
|
|
5704
|
+
)), Bl = (e, t, r) => {
|
|
5681
5705
|
var a;
|
|
5682
5706
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
|
5683
5707
|
}, vr = V.forwardRef((e, t) => {
|
|
@@ -5687,14 +5711,14 @@ const yl = ({
|
|
|
5687
5711
|
{
|
|
5688
5712
|
ref: t,
|
|
5689
5713
|
onClick: (o) => {
|
|
5690
|
-
|
|
5714
|
+
Bl(o, a, r);
|
|
5691
5715
|
},
|
|
5692
5716
|
...n
|
|
5693
5717
|
}
|
|
5694
5718
|
);
|
|
5695
5719
|
});
|
|
5696
5720
|
vr.displayName = "BaseButton";
|
|
5697
|
-
const
|
|
5721
|
+
const un = V.forwardRef(
|
|
5698
5722
|
({
|
|
5699
5723
|
children: e,
|
|
5700
5724
|
disabled: t = !1,
|
|
@@ -5710,7 +5734,7 @@ const dn = V.forwardRef(
|
|
|
5710
5734
|
radius: u = "large",
|
|
5711
5735
|
...m
|
|
5712
5736
|
}, g) => {
|
|
5713
|
-
const p =
|
|
5737
|
+
const p = dn({
|
|
5714
5738
|
type: yr,
|
|
5715
5739
|
mode: r,
|
|
5716
5740
|
focusMode: a,
|
|
@@ -5736,7 +5760,7 @@ const dn = V.forwardRef(
|
|
|
5736
5760
|
);
|
|
5737
5761
|
}
|
|
5738
5762
|
);
|
|
5739
|
-
|
|
5763
|
+
un.displayName = "Button";
|
|
5740
5764
|
/*!
|
|
5741
5765
|
@versini/ui-button v4.1.4
|
|
5742
5766
|
© 2025 gizmette.com
|
|
@@ -5750,7 +5774,7 @@ try {
|
|
|
5750
5774
|
});
|
|
5751
5775
|
} catch {
|
|
5752
5776
|
}
|
|
5753
|
-
const
|
|
5777
|
+
const Ml = V.forwardRef(
|
|
5754
5778
|
({
|
|
5755
5779
|
children: e,
|
|
5756
5780
|
disabled: t = !1,
|
|
@@ -5772,7 +5796,7 @@ const $l = V.forwardRef(
|
|
|
5772
5796
|
radius: y = "large",
|
|
5773
5797
|
...k
|
|
5774
5798
|
}, w) => {
|
|
5775
|
-
const _ =
|
|
5799
|
+
const _ = dn({
|
|
5776
5800
|
type: br,
|
|
5777
5801
|
mode: r,
|
|
5778
5802
|
focusMode: a,
|
|
@@ -5827,10 +5851,10 @@ const $l = V.forwardRef(
|
|
|
5827
5851
|
) });
|
|
5828
5852
|
}
|
|
5829
5853
|
);
|
|
5830
|
-
|
|
5831
|
-
const
|
|
5854
|
+
Ml.displayName = "ButtonSort";
|
|
5855
|
+
const Vl = 200, Pl = ({
|
|
5832
5856
|
string: e,
|
|
5833
|
-
idealLength: t =
|
|
5857
|
+
idealLength: t = Vl
|
|
5834
5858
|
}) => {
|
|
5835
5859
|
if (e.length <= t)
|
|
5836
5860
|
return { string: e, isTruncated: !1 };
|
|
@@ -5841,7 +5865,7 @@ const Bl = 200, Ml = ({
|
|
|
5841
5865
|
string: e.slice(0, t + r),
|
|
5842
5866
|
isTruncated: !0
|
|
5843
5867
|
};
|
|
5844
|
-
},
|
|
5868
|
+
}, Dl = ({
|
|
5845
5869
|
children: e,
|
|
5846
5870
|
length: t = 200,
|
|
5847
5871
|
mode: r = "system",
|
|
@@ -5850,14 +5874,14 @@ const Bl = 200, Ml = ({
|
|
|
5850
5874
|
const [n, o] = Z(!1);
|
|
5851
5875
|
if (typeof e != "string")
|
|
5852
5876
|
return e;
|
|
5853
|
-
const { string: i, isTruncated: s } =
|
|
5877
|
+
const { string: i, isTruncated: s } = Pl({
|
|
5854
5878
|
string: e,
|
|
5855
5879
|
idealLength: t
|
|
5856
5880
|
});
|
|
5857
5881
|
return /* @__PURE__ */ E("span", { style: { wordBreak: "break-word" }, children: [
|
|
5858
5882
|
n ? e : i,
|
|
5859
5883
|
s && /* @__PURE__ */ l(
|
|
5860
|
-
|
|
5884
|
+
un,
|
|
5861
5885
|
{
|
|
5862
5886
|
mode: r,
|
|
5863
5887
|
focusMode: a,
|
|
@@ -5884,56 +5908,55 @@ try {
|
|
|
5884
5908
|
});
|
|
5885
5909
|
} catch {
|
|
5886
5910
|
}
|
|
5887
|
-
const
|
|
5911
|
+
const zl = ({ children: e }) => /* @__PURE__ */ l(
|
|
5912
|
+
Tl,
|
|
5913
|
+
{
|
|
5914
|
+
kind: "right",
|
|
5915
|
+
copyToClipboard: e,
|
|
5916
|
+
copyToClipboardFocusMode: "light",
|
|
5917
|
+
children: /* @__PURE__ */ l(Dl, { mode: "light", focusMode: "light", children: e })
|
|
5918
|
+
}
|
|
5919
|
+
), sa = fa(
|
|
5888
5920
|
() => import(
|
|
5889
5921
|
/* webpackChunkName: "LazyMessageAssistant" */
|
|
5890
|
-
"./MessageAssistant.
|
|
5922
|
+
"./MessageAssistant.CusoDhOy.js"
|
|
5891
5923
|
).then((e) => e.MessageAssistant)
|
|
5892
|
-
),
|
|
5924
|
+
), Ul = () => {
|
|
5893
5925
|
const { state: e } = z(de);
|
|
5894
5926
|
return /* @__PURE__ */ E("div", { className: "space-y-6 mt-2 @container", children: [
|
|
5895
5927
|
e && e.messages.length > 0 && e.messages.map((t, r) => {
|
|
5896
5928
|
const { role: a, content: n, name: o, processingTime: i } = t.message;
|
|
5897
|
-
return (a === Pe || a === Qt) && n ? /* @__PURE__ */ l(Bt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(sa, { name: o, processingTime: i, children: n }) }, `${r}-${a}`) : a === $t && n ? /* @__PURE__ */ l(
|
|
5898
|
-
_l,
|
|
5899
|
-
{
|
|
5900
|
-
kind: "right",
|
|
5901
|
-
copyToClipboard: n,
|
|
5902
|
-
copyToClipboardFocusMode: "light",
|
|
5903
|
-
children: /* @__PURE__ */ l(Vl, { mode: "light", focusMode: "light", children: n })
|
|
5904
|
-
},
|
|
5905
|
-
`${r}-${a}`
|
|
5906
|
-
) : null;
|
|
5929
|
+
return (a === Pe || a === Qt) && n ? /* @__PURE__ */ l(Bt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(sa, { name: o, processingTime: i, children: n }) }, `${r}-${a}`) : a === $t && n ? /* @__PURE__ */ l(zl, { children: n }, `${r}-${a}`) : null;
|
|
5907
5930
|
}),
|
|
5908
|
-
|
|
5931
|
+
Cn($t, e) && /* @__PURE__ */ l(Bt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(sa, { loading: !0 }) })
|
|
5909
5932
|
] });
|
|
5910
|
-
},
|
|
5911
|
-
const { isAuthenticated: e } = Fe(), { ref: t, inViewport: r } =
|
|
5933
|
+
}, Hl = () => {
|
|
5934
|
+
const { isAuthenticated: e } = Fe(), { ref: t, inViewport: r } = lo(), a = Rn({
|
|
5912
5935
|
isAuthenticated: e,
|
|
5913
5936
|
extraClass: "rounded-b-md"
|
|
5914
5937
|
});
|
|
5915
5938
|
return /* @__PURE__ */ E(ke, { children: [
|
|
5916
5939
|
/* @__PURE__ */ E("div", { className: a, children: [
|
|
5917
|
-
/* @__PURE__ */ l(
|
|
5918
|
-
/* @__PURE__ */ l(
|
|
5940
|
+
/* @__PURE__ */ l(In, {}),
|
|
5941
|
+
/* @__PURE__ */ l(Ul, {}),
|
|
5919
5942
|
/* @__PURE__ */ l("div", { ref: t })
|
|
5920
5943
|
] }),
|
|
5921
|
-
/* @__PURE__ */ l(
|
|
5944
|
+
/* @__PURE__ */ l(Ks, { show: !r })
|
|
5922
5945
|
] });
|
|
5923
|
-
},
|
|
5946
|
+
}, Fl = fa(
|
|
5924
5947
|
() => import(
|
|
5925
5948
|
/* webpackChunkName: "LazyHeader" */
|
|
5926
|
-
"./
|
|
5949
|
+
"./index.BcqQB62k.js"
|
|
5927
5950
|
)
|
|
5928
5951
|
);
|
|
5929
|
-
function
|
|
5952
|
+
function mn({ isComponent: e = !1 }) {
|
|
5930
5953
|
const { user: t, getAccessToken: r } = Fe(), [a] = Mt({
|
|
5931
|
-
key: At +
|
|
5954
|
+
key: At + On,
|
|
5932
5955
|
initialValue: ""
|
|
5933
5956
|
}), [n] = Mt({
|
|
5934
|
-
key: At +
|
|
5957
|
+
key: At + An,
|
|
5935
5958
|
initialValue: Be.ASC
|
|
5936
|
-
}), [o, i] = wt(
|
|
5959
|
+
}), [o, i] = wt(zo, {
|
|
5937
5960
|
id: or(),
|
|
5938
5961
|
model: Te,
|
|
5939
5962
|
engine: Te,
|
|
@@ -5941,15 +5964,15 @@ function un({ isComponent: e = !1 }) {
|
|
|
5941
5964
|
messages: [],
|
|
5942
5965
|
prompts: [],
|
|
5943
5966
|
isComponent: e
|
|
5944
|
-
}), [s, c] = wt(
|
|
5967
|
+
}), [s, c] = wt(Uo, {
|
|
5945
5968
|
searchString: a,
|
|
5946
5969
|
sortedCell: "timestamp",
|
|
5947
5970
|
sortDirection: n
|
|
5948
|
-
}), [d, h] = wt(
|
|
5971
|
+
}), [d, h] = wt(Ho, {
|
|
5949
5972
|
prompt: "",
|
|
5950
5973
|
lastTriggeredTimestamp: 0
|
|
5951
5974
|
});
|
|
5952
|
-
|
|
5975
|
+
Si({
|
|
5953
5976
|
keys: [
|
|
5954
5977
|
t == null ? void 0 : t.username,
|
|
5955
5978
|
s.searchString,
|
|
@@ -5957,18 +5980,18 @@ function un({ isComponent: e = !1 }) {
|
|
|
5957
5980
|
0
|
|
5958
5981
|
],
|
|
5959
5982
|
getAccessToken: r
|
|
5960
|
-
}),
|
|
5983
|
+
}), Ni({ getAccessToken: r });
|
|
5961
5984
|
const { data: u } = lr({
|
|
5962
5985
|
keys: [t == null ? void 0 : t.username],
|
|
5963
5986
|
getAccessToken: r
|
|
5964
5987
|
});
|
|
5965
|
-
return
|
|
5988
|
+
return $(() => {
|
|
5966
5989
|
var g;
|
|
5967
5990
|
(g = document.getElementById("logo")) == null || g.classList.add("fadeOut"), setTimeout(() => {
|
|
5968
5991
|
var p;
|
|
5969
5992
|
(p = document.getElementById("root")) == null || p.classList.replace("app-hidden", "fadeIn");
|
|
5970
5993
|
}, 500);
|
|
5971
|
-
}),
|
|
5994
|
+
}), $(() => {
|
|
5972
5995
|
u && i({
|
|
5973
5996
|
type: Ie,
|
|
5974
5997
|
payload: {
|
|
@@ -5976,7 +5999,7 @@ function un({ isComponent: e = !1 }) {
|
|
|
5976
5999
|
}
|
|
5977
6000
|
});
|
|
5978
6001
|
}, [u]), /* @__PURE__ */ l(de.Provider, { value: { state: o, dispatch: i }, children: /* @__PURE__ */ l(
|
|
5979
|
-
|
|
6002
|
+
Ii.Provider,
|
|
5980
6003
|
{
|
|
5981
6004
|
value: {
|
|
5982
6005
|
state: s,
|
|
@@ -5988,7 +6011,7 @@ function un({ isComponent: e = !1 }) {
|
|
|
5988
6011
|
value: { state: d, dispatch: h },
|
|
5989
6012
|
children: [
|
|
5990
6013
|
/* @__PURE__ */ l(
|
|
5991
|
-
|
|
6014
|
+
ro,
|
|
5992
6015
|
{
|
|
5993
6016
|
noColors: !0,
|
|
5994
6017
|
noMargin: !0,
|
|
@@ -5997,57 +6020,57 @@ function un({ isComponent: e = !1 }) {
|
|
|
5997
6020
|
className: Or({
|
|
5998
6021
|
extraClass: "mt-5"
|
|
5999
6022
|
}),
|
|
6000
|
-
children: /* @__PURE__ */ l(Bt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(
|
|
6023
|
+
children: /* @__PURE__ */ l(Bt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(Fl, {}) })
|
|
6001
6024
|
}
|
|
6002
6025
|
),
|
|
6003
6026
|
/* @__PURE__ */ l(
|
|
6004
|
-
|
|
6027
|
+
Ln,
|
|
6005
6028
|
{
|
|
6006
6029
|
className: Or({
|
|
6007
6030
|
extraClass: "max-h-[calc(100svh_-_250px)]"
|
|
6008
6031
|
}),
|
|
6009
6032
|
noMargin: !0,
|
|
6010
6033
|
noPadding: !0,
|
|
6011
|
-
children: /* @__PURE__ */ l(
|
|
6034
|
+
children: /* @__PURE__ */ l(Hl, {})
|
|
6012
6035
|
}
|
|
6013
6036
|
),
|
|
6014
|
-
/* @__PURE__ */ l(
|
|
6037
|
+
/* @__PURE__ */ l(nl, { isComponent: e })
|
|
6015
6038
|
]
|
|
6016
6039
|
}
|
|
6017
6040
|
)
|
|
6018
6041
|
}
|
|
6019
6042
|
) });
|
|
6020
6043
|
}
|
|
6021
|
-
|
|
6022
|
-
const
|
|
6044
|
+
mn.displayName = "App";
|
|
6045
|
+
const oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: mn }, Symbol.toStringTag, { value: "Module" }));
|
|
6023
6046
|
export {
|
|
6024
|
-
|
|
6047
|
+
oc as App,
|
|
6025
6048
|
de as AppContext,
|
|
6026
|
-
|
|
6049
|
+
Ws as ConfirmationPanel,
|
|
6027
6050
|
Mt as E,
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6051
|
+
Ii as HistoryContext,
|
|
6052
|
+
Fs as Ie,
|
|
6053
|
+
nc as P,
|
|
6031
6054
|
ot as R,
|
|
6032
6055
|
We as SERVICE_TYPES,
|
|
6033
6056
|
Ke as _e,
|
|
6034
|
-
|
|
6057
|
+
Xl as be,
|
|
6035
6058
|
Be as f,
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6059
|
+
Yl as ge,
|
|
6060
|
+
Jl as he,
|
|
6061
|
+
fo as i,
|
|
6062
|
+
Bo as le,
|
|
6063
|
+
Tl as le$1,
|
|
6064
|
+
Xn as m,
|
|
6065
|
+
Zl as me,
|
|
6043
6066
|
hr as me$1,
|
|
6044
6067
|
Ar as p,
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6068
|
+
Pa as serviceCall,
|
|
6069
|
+
Ql as ue,
|
|
6070
|
+
rc as useChatsHistory,
|
|
6071
|
+
ac as useServerCapabilities,
|
|
6072
|
+
tc as useUserChatStats,
|
|
6050
6073
|
lr as useUserPreferences,
|
|
6051
|
-
|
|
6074
|
+
ec as ye,
|
|
6052
6075
|
$r as z
|
|
6053
6076
|
};
|