@versini/sassysaint 5.4.2 → 5.4.3
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/{LazyApp.CyJDRVTr.js → LazyApp.BuqWs8m7.js} +251 -249
- package/dist/chunks/{LazyHeader.AXOCM40c.js → LazyHeader.D57r_E9S.js} +4 -4
- package/dist/chunks/{LazyMarkdownWithExtra.Bs7cqF8Z.js → LazyMarkdownWithExtra.DTnPCsyx.js} +1 -1
- package/dist/chunks/{LazyMessageAssistant.1QKtMcJd.js → LazyMessageAssistant.D5CSB7UV.js} +4 -4
- package/dist/chunks/{index.CyxsXeHs.js → index.C2RuFHK-.js} +16 -15
- package/dist/chunks/{index.XSSbqo_5.js → index.CnlfkUg1.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { g as
|
|
3
|
-
import { serviceCall as
|
|
4
|
-
import C, { useContext as
|
|
1
|
+
import { jsx as s, jsxs as v, Fragment as O } from "react/jsx-runtime";
|
|
2
|
+
import { g as Ne, ACTION_RESTORE as we, ACTION_MESSAGE as R, ROLE_ASSISTANT as E, ACTION_RESET as ne, ACTION_MODEL as ie, ACTION_ENGINE as se, ACTION_STREAMING as de, ACTION_SORT as Ie, ACTION_SEARCH as Ee, ACTION_SET_TAGS as le, ACTION_RESET_TAGS as ce, ACTION_TOGGLE_TAG as ge, AppContext as $, TagsContext as H, un as U, b as Ce, j as Re, R as ue, isLastMessageFromRole as me, O as Se, TOOLBOX as Y, ROLE_INTERNAL as j, ROLE_USER as P, ROLE_SYSTEM as Be, ROLE_HIDDEN as Ae, DEFAULT_AI_ENGINE as M, STATS_SEPARATOR as q, CLIPBOARD_TAG as X, TYPE_QUESTION as Me, SEND as Le, ERROR_MESSAGE as Oe, getMessageContaintWrapperClass as $e, MessagesContainerHeader as Ue, HistoryContext as ze, d as Ve, AppFooter as De, LOCAL_STORAGE_PREFIX as J, LOCAL_STORAGE_SEARCH as Pe, LOCAL_STORAGE_SORT as He } from "./index.C2RuFHK-.js";
|
|
3
|
+
import { serviceCall as he, SERVICE_TYPES as pe, n as je, restCall as Ge, we as We, E as Q, f as Fe } from "./index.CnlfkUg1.js";
|
|
4
|
+
import C, { useContext as S, useState as A, useRef as B, useEffect as _, lazy as Ke, Suspense as Z, useReducer as V } from "react";
|
|
5
5
|
import l from "clsx";
|
|
6
|
-
const
|
|
6
|
+
const Ye = ({
|
|
7
7
|
className: e,
|
|
8
8
|
viewBox: t,
|
|
9
9
|
spacing: r,
|
|
10
10
|
title: a,
|
|
11
11
|
monotone: n,
|
|
12
12
|
...o
|
|
13
|
-
}) => /* @__PURE__ */
|
|
14
|
-
|
|
13
|
+
}) => /* @__PURE__ */ s(
|
|
14
|
+
Ne,
|
|
15
15
|
{
|
|
16
16
|
defaultViewBox: "0 0 384 512",
|
|
17
17
|
defaultClassName: "size-5",
|
|
@@ -20,10 +20,10 @@ const Ke = ({
|
|
|
20
20
|
spacing: r,
|
|
21
21
|
title: a || "Close",
|
|
22
22
|
...o,
|
|
23
|
-
children: /* @__PURE__ */
|
|
23
|
+
children: /* @__PURE__ */ s("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3l105.4 105.3c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256l105.3-105.4z" })
|
|
24
24
|
}
|
|
25
25
|
);
|
|
26
|
-
function
|
|
26
|
+
function qe(e) {
|
|
27
27
|
const t = e.toLowerCase().split("+").map((o) => o.trim()), r = {
|
|
28
28
|
alt: t.includes("alt"),
|
|
29
29
|
ctrl: t.includes("ctrl"),
|
|
@@ -36,7 +36,7 @@ function Ye(e) {
|
|
|
36
36
|
key: n
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Xe(e, t) {
|
|
40
40
|
const { alt: r, ctrl: a, meta: n, mod: o, shift: c, key: d } = e, { altKey: m, ctrlKey: g, metaKey: p, shiftKey: u, key: b } = t;
|
|
41
41
|
if (r !== m)
|
|
42
42
|
return !1;
|
|
@@ -47,43 +47,43 @@ function qe(e, t) {
|
|
|
47
47
|
return !1;
|
|
48
48
|
return c !== u ? !1 : !!(d && (b.toLowerCase() === d.toLowerCase() || t.code.replace("Key", "").toLowerCase() === d.toLowerCase()));
|
|
49
49
|
}
|
|
50
|
-
function Xe(e) {
|
|
51
|
-
return (t) => qe(Ye(e), t);
|
|
52
|
-
}
|
|
53
50
|
function Je(e) {
|
|
51
|
+
return (t) => Xe(qe(e), t);
|
|
52
|
+
}
|
|
53
|
+
function Qe(e) {
|
|
54
54
|
return (t) => {
|
|
55
55
|
const r = "nativeEvent" in t ? t.nativeEvent : t;
|
|
56
56
|
e.forEach(([a, n, o = { preventDefault: !0 }]) => {
|
|
57
|
-
|
|
57
|
+
Je(a)(r) && (o.preventDefault && t.preventDefault(), n(r));
|
|
58
58
|
});
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
const f = [];
|
|
62
62
|
for (let e = 0; e < 256; ++e)
|
|
63
63
|
f.push((e + 256).toString(16).slice(1));
|
|
64
|
-
function
|
|
64
|
+
function Ze(e, t = 0) {
|
|
65
65
|
return (f[e[t + 0]] + f[e[t + 1]] + f[e[t + 2]] + f[e[t + 3]] + "-" + f[e[t + 4]] + f[e[t + 5]] + "-" + f[e[t + 6]] + f[e[t + 7]] + "-" + f[e[t + 8]] + f[e[t + 9]] + "-" + f[e[t + 10]] + f[e[t + 11]] + f[e[t + 12]] + f[e[t + 13]] + f[e[t + 14]] + f[e[t + 15]]).toLowerCase();
|
|
66
66
|
}
|
|
67
67
|
let D;
|
|
68
|
-
const
|
|
69
|
-
function
|
|
68
|
+
const et = new Uint8Array(16);
|
|
69
|
+
function tt() {
|
|
70
70
|
if (!D) {
|
|
71
71
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
72
72
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
73
73
|
D = crypto.getRandomValues.bind(crypto);
|
|
74
74
|
}
|
|
75
|
-
return D(
|
|
75
|
+
return D(et);
|
|
76
76
|
}
|
|
77
|
-
const
|
|
77
|
+
const rt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ee = { randomUUID: rt };
|
|
78
78
|
function G(e, t, r) {
|
|
79
|
-
if (
|
|
80
|
-
return
|
|
79
|
+
if (ee.randomUUID && !t && !e)
|
|
80
|
+
return ee.randomUUID();
|
|
81
81
|
e = e || {};
|
|
82
|
-
const a = e.random || (e.rng ||
|
|
83
|
-
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128,
|
|
82
|
+
const a = e.random || (e.rng || tt)();
|
|
83
|
+
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Ze(a);
|
|
84
84
|
}
|
|
85
|
-
const
|
|
86
|
-
if ((t == null ? void 0 : t.type) ===
|
|
85
|
+
const at = (e, t) => {
|
|
86
|
+
if ((t == null ? void 0 : t.type) === we) {
|
|
87
87
|
const r = t.payload.messages.map((a) => ({
|
|
88
88
|
message: {
|
|
89
89
|
role: a.role,
|
|
@@ -102,7 +102,7 @@ const rt = (e, t) => {
|
|
|
102
102
|
tags: e.tags
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
-
if ((t == null ? void 0 : t.type) ===
|
|
105
|
+
if ((t == null ? void 0 : t.type) === R) {
|
|
106
106
|
const r = t.payload.message.role, a = t.payload.message.content, n = t.payload.message.name, o = t.payload.message.processingTime, c = t.payload.message.messageId;
|
|
107
107
|
if (r !== "") {
|
|
108
108
|
const d = {
|
|
@@ -112,7 +112,7 @@ const rt = (e, t) => {
|
|
|
112
112
|
processingTime: o,
|
|
113
113
|
messageId: c
|
|
114
114
|
};
|
|
115
|
-
if (r ===
|
|
115
|
+
if (r === E) {
|
|
116
116
|
const m = e.messages.findIndex(
|
|
117
117
|
(g) => g.message.messageId === c
|
|
118
118
|
);
|
|
@@ -152,7 +152,7 @@ const rt = (e, t) => {
|
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
return (t == null ? void 0 : t.type) ===
|
|
155
|
+
return (t == null ? void 0 : t.type) === ne ? {
|
|
156
156
|
id: G(),
|
|
157
157
|
model: e.model,
|
|
158
158
|
engine: e.engine,
|
|
@@ -160,7 +160,7 @@ const rt = (e, t) => {
|
|
|
160
160
|
messages: [],
|
|
161
161
|
isComponent: e.isComponent,
|
|
162
162
|
tags: e.tags
|
|
163
|
-
} : (t == null ? void 0 : t.type) ===
|
|
163
|
+
} : (t == null ? void 0 : t.type) === ie ? {
|
|
164
164
|
id: e.id,
|
|
165
165
|
model: t.payload.model,
|
|
166
166
|
engine: e.engine,
|
|
@@ -168,14 +168,14 @@ const rt = (e, t) => {
|
|
|
168
168
|
usage: t.payload.usage,
|
|
169
169
|
messages: e.messages,
|
|
170
170
|
isComponent: e.isComponent
|
|
171
|
-
} : (t == null ? void 0 : t.type) ===
|
|
171
|
+
} : (t == null ? void 0 : t.type) === se ? {
|
|
172
172
|
...e,
|
|
173
173
|
engine: t.payload.engine
|
|
174
|
-
} : (t == null ? void 0 : t.type) ===
|
|
174
|
+
} : (t == null ? void 0 : t.type) === de ? {
|
|
175
175
|
...e,
|
|
176
176
|
streaming: t.payload.streaming
|
|
177
177
|
} : e;
|
|
178
|
-
},
|
|
178
|
+
}, ot = (e, t) => {
|
|
179
179
|
switch (t == null ? void 0 : t.type) {
|
|
180
180
|
case Ee:
|
|
181
181
|
return {
|
|
@@ -183,7 +183,7 @@ const rt = (e, t) => {
|
|
|
183
183
|
sortedCell: e.sortedCell,
|
|
184
184
|
sortDirection: e.sortDirection
|
|
185
185
|
};
|
|
186
|
-
case
|
|
186
|
+
case Ie:
|
|
187
187
|
return {
|
|
188
188
|
searchString: e.searchString,
|
|
189
189
|
sortedCell: t.payload.sortedCell,
|
|
@@ -192,19 +192,19 @@ const rt = (e, t) => {
|
|
|
192
192
|
default:
|
|
193
193
|
return e;
|
|
194
194
|
}
|
|
195
|
-
},
|
|
195
|
+
}, nt = (e, t) => {
|
|
196
196
|
switch (t == null ? void 0 : t.type) {
|
|
197
|
-
case
|
|
197
|
+
case ge:
|
|
198
198
|
return {
|
|
199
199
|
tags: e.tags,
|
|
200
200
|
tag: t.payload.tag
|
|
201
201
|
};
|
|
202
|
-
case
|
|
202
|
+
case ce:
|
|
203
203
|
return {
|
|
204
204
|
tags: e.tags,
|
|
205
205
|
tag: ""
|
|
206
206
|
};
|
|
207
|
-
case
|
|
207
|
+
case le:
|
|
208
208
|
return {
|
|
209
209
|
tags: t.payload.tags,
|
|
210
210
|
tag: ""
|
|
@@ -212,21 +212,21 @@ const rt = (e, t) => {
|
|
|
212
212
|
default:
|
|
213
213
|
return e;
|
|
214
214
|
}
|
|
215
|
-
},
|
|
216
|
-
const { dispatch: e, state: t } =
|
|
215
|
+
}, it = () => {
|
|
216
|
+
const { dispatch: e, state: t } = S($), { dispatch: r, state: a } = S(H), { getAccessToken: n, user: o } = U(), [c, d] = A({
|
|
217
217
|
loaded: !1
|
|
218
|
-
}), m = "mt-2 flex justify-center rounded-md", g = B(null), p = B(!1), u = (
|
|
219
|
-
|
|
220
|
-
type:
|
|
218
|
+
}), m = "mt-2 flex justify-center rounded-md", g = B(null), p = B(!1), u = (i) => {
|
|
219
|
+
i.preventDefault(), e({
|
|
220
|
+
type: ne
|
|
221
221
|
});
|
|
222
222
|
};
|
|
223
223
|
_(() => {
|
|
224
|
-
var
|
|
225
|
-
(t == null ? void 0 : t.streaming) === !0 && !p.current && g.current && (p.current = !0, g.current.focus()), (t == null ? void 0 : t.streaming) === !1 && (p.current = !1, (
|
|
224
|
+
var i;
|
|
225
|
+
(t == null ? void 0 : t.streaming) === !0 && !p.current && g.current && (p.current = !0, g.current.focus()), (t == null ? void 0 : t.streaming) === !1 && (p.current = !1, (i = g.current) == null || i.blur());
|
|
226
226
|
}, [t]);
|
|
227
|
-
const b = (
|
|
228
|
-
|
|
229
|
-
type:
|
|
227
|
+
const b = (i, h) => {
|
|
228
|
+
i.preventDefault(), r({
|
|
229
|
+
type: ge,
|
|
230
230
|
payload: {
|
|
231
231
|
tag: h
|
|
232
232
|
}
|
|
@@ -241,17 +241,17 @@ const rt = (e, t) => {
|
|
|
241
241
|
}
|
|
242
242
|
c.loaded || (async () => {
|
|
243
243
|
try {
|
|
244
|
-
const
|
|
244
|
+
const i = await he({
|
|
245
245
|
accessToken: await n(),
|
|
246
|
-
type:
|
|
246
|
+
type: pe.GET_USER_PREFERENCES,
|
|
247
247
|
params: {
|
|
248
248
|
user: o.username
|
|
249
249
|
}
|
|
250
250
|
});
|
|
251
|
-
|
|
252
|
-
type:
|
|
251
|
+
i.status === 200 && (r({
|
|
252
|
+
type: le,
|
|
253
253
|
payload: {
|
|
254
|
-
tags:
|
|
254
|
+
tags: i.data.tags || []
|
|
255
255
|
}
|
|
256
256
|
}), d({
|
|
257
257
|
loaded: !0
|
|
@@ -260,18 +260,18 @@ const rt = (e, t) => {
|
|
|
260
260
|
}
|
|
261
261
|
})();
|
|
262
262
|
}, [o]), /* @__PURE__ */ v(O, { children: [
|
|
263
|
-
/* @__PURE__ */
|
|
264
|
-
|
|
263
|
+
/* @__PURE__ */ s(Ce, { alignHorizontal: "center", columnGap: 2, children: c && c.loaded && a.tags && a.tags.map((i) => i.enabled && i.label && i.content && /* @__PURE__ */ s(Re, { children: /* @__PURE__ */ s("div", { className: m, children: /* @__PURE__ */ s(
|
|
264
|
+
ue,
|
|
265
265
|
{
|
|
266
266
|
noBorder: !0,
|
|
267
267
|
mode: "dark",
|
|
268
268
|
focusMode: "light",
|
|
269
269
|
size: "small",
|
|
270
|
-
onClick: (h) => b(h,
|
|
271
|
-
children:
|
|
270
|
+
onClick: (h) => b(h, i.content),
|
|
271
|
+
children: i.label
|
|
272
272
|
}
|
|
273
|
-
) }) }, `tag-button-${
|
|
274
|
-
|
|
273
|
+
) }) }, `tag-button-${i.slot}`)) }),
|
|
274
|
+
me(E, t) && /* @__PURE__ */ s("div", { className: m, children: /* @__PURE__ */ s(
|
|
275
275
|
Se,
|
|
276
276
|
{
|
|
277
277
|
noBorder: !0,
|
|
@@ -280,7 +280,7 @@ const rt = (e, t) => {
|
|
|
280
280
|
ref: g,
|
|
281
281
|
onClick: u,
|
|
282
282
|
labelRight: t != null && t.streaming ? Y.ACTION_WHILE_STREAMING.content : Y.ACTION_WHILE_NOT_STREAMING.content,
|
|
283
|
-
children: t != null && t.streaming ? /* @__PURE__ */
|
|
283
|
+
children: t != null && t.streaming ? /* @__PURE__ */ s(Ye, { className: "size-4" }) : /* @__PURE__ */ s(je, { className: "size-4" })
|
|
284
284
|
}
|
|
285
285
|
) })
|
|
286
286
|
] });
|
|
@@ -298,7 +298,7 @@ try {
|
|
|
298
298
|
});
|
|
299
299
|
} catch {
|
|
300
300
|
}
|
|
301
|
-
const
|
|
301
|
+
const st = "av-bubble", te = "av-button", dt = (e) => {
|
|
302
302
|
let t = "";
|
|
303
303
|
if (typeof e == "number" || typeof e == "string")
|
|
304
304
|
t = "m-" + e;
|
|
@@ -307,7 +307,7 @@ const it = "av-bubble", ee = "av-button", st = (e) => {
|
|
|
307
307
|
(e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
|
|
308
308
|
}
|
|
309
309
|
return t;
|
|
310
|
-
}, W = "icon",
|
|
310
|
+
}, W = "icon", lt = "button", ct = "link", gt = ({
|
|
311
311
|
type: e,
|
|
312
312
|
size: t,
|
|
313
313
|
labelRight: r,
|
|
@@ -316,13 +316,13 @@ const it = "av-bubble", ee = "av-button", st = (e) => {
|
|
|
316
316
|
}) => {
|
|
317
317
|
const o = "text-sm font-medium max-h-8 py-0", c = "text-base font-medium max-h-9 py-1", d = "text-lg font-medium max-h-12 py-2";
|
|
318
318
|
switch (e) {
|
|
319
|
-
case
|
|
319
|
+
case lt:
|
|
320
320
|
return l("px-4", {
|
|
321
321
|
[o]: t === "small",
|
|
322
322
|
[c]: t === "medium",
|
|
323
323
|
[d]: t === "large"
|
|
324
324
|
});
|
|
325
|
-
case
|
|
325
|
+
case ct:
|
|
326
326
|
return l("px-4 text-center", {
|
|
327
327
|
[o]: t === "small",
|
|
328
328
|
[c]: t === "medium",
|
|
@@ -341,7 +341,7 @@ const it = "av-bubble", ee = "av-button", st = (e) => {
|
|
|
341
341
|
"h-12 px-4 text-lg font-medium": t === "large" && (r || a)
|
|
342
342
|
});
|
|
343
343
|
}
|
|
344
|
-
},
|
|
344
|
+
}, ut = ({
|
|
345
345
|
mode: e,
|
|
346
346
|
noBackground: t,
|
|
347
347
|
noTruncate: r,
|
|
@@ -373,7 +373,7 @@ const it = "av-bubble", ee = "av-button", st = (e) => {
|
|
|
373
373
|
"bg-action-danger-dark text-copy-light dark:bg-action-danger-light dark:text-copy-lighter": e === "system",
|
|
374
374
|
"bg-action-danger-light text-copy-lighter dark:bg-action-danger-dark dark:text-copy-light": e === "alt-system"
|
|
375
375
|
});
|
|
376
|
-
},
|
|
376
|
+
}, mt = ({
|
|
377
377
|
mode: e,
|
|
378
378
|
disabled: t,
|
|
379
379
|
variant: r
|
|
@@ -401,7 +401,7 @@ const it = "av-bubble", ee = "av-button", st = (e) => {
|
|
|
401
401
|
"hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
|
|
402
402
|
"hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
|
|
403
403
|
});
|
|
404
|
-
},
|
|
404
|
+
}, ht = ({
|
|
405
405
|
mode: e,
|
|
406
406
|
disabled: t,
|
|
407
407
|
variant: r
|
|
@@ -429,7 +429,7 @@ const it = "av-bubble", ee = "av-button", st = (e) => {
|
|
|
429
429
|
"active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
|
|
430
430
|
"active:bg-action-danger-light-active dark:active:bg-action-danger-dark-active": e === "alt-system"
|
|
431
431
|
});
|
|
432
|
-
},
|
|
432
|
+
}, pt = ({
|
|
433
433
|
mode: e,
|
|
434
434
|
noBorder: t,
|
|
435
435
|
variant: r
|
|
@@ -457,12 +457,12 @@ const it = "av-bubble", ee = "av-button", st = (e) => {
|
|
|
457
457
|
"border-border-danger-dark dark:border-border-danger-medium": e === "system",
|
|
458
458
|
"border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
|
|
459
459
|
});
|
|
460
|
-
},
|
|
460
|
+
}, bt = ({ focusMode: e }) => l("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
461
461
|
"focus:outline-focus-dark": e === "dark",
|
|
462
462
|
"focus:outline-focus-light": e === "light",
|
|
463
463
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
464
464
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
465
|
-
}),
|
|
465
|
+
}), be = ({
|
|
466
466
|
type: e,
|
|
467
467
|
className: t,
|
|
468
468
|
raw: r,
|
|
@@ -476,41 +476,41 @@ const it = "av-bubble", ee = "av-button", st = (e) => {
|
|
|
476
476
|
labelLeft: p,
|
|
477
477
|
spacing: u,
|
|
478
478
|
noBackground: b,
|
|
479
|
-
variant:
|
|
479
|
+
variant: i,
|
|
480
480
|
noTruncate: h,
|
|
481
481
|
align: y
|
|
482
|
-
}) => (
|
|
483
|
-
|
|
482
|
+
}) => (i || (i = "primary"), r ? l(te, t) : l(
|
|
483
|
+
te,
|
|
484
484
|
t,
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
485
|
+
dt(u),
|
|
486
|
+
ut({ mode: a, variant: i, noBackground: b, noTruncate: h }),
|
|
487
|
+
gt({ type: e, size: d, labelRight: g, labelLeft: p, align: y }),
|
|
488
|
+
pt({ mode: a, variant: i, noBorder: m }),
|
|
489
|
+
bt({ focusMode: n }),
|
|
490
|
+
mt({ mode: a, variant: i, disabled: o }),
|
|
491
|
+
ht({ mode: a, variant: i, disabled: o }),
|
|
492
492
|
{
|
|
493
493
|
"w-full": c,
|
|
494
494
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
495
495
|
}
|
|
496
|
-
)),
|
|
496
|
+
)), ft = (e, t, r) => {
|
|
497
497
|
var a;
|
|
498
498
|
!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);
|
|
499
499
|
}, F = C.forwardRef((e, t) => {
|
|
500
500
|
const { onClick: r, noInternalClick: a = !1, ...n } = e;
|
|
501
|
-
return /* @__PURE__ */
|
|
501
|
+
return /* @__PURE__ */ s(
|
|
502
502
|
"button",
|
|
503
503
|
{
|
|
504
504
|
ref: t,
|
|
505
505
|
onClick: (o) => {
|
|
506
|
-
|
|
506
|
+
ft(o, a, r);
|
|
507
507
|
},
|
|
508
508
|
...n
|
|
509
509
|
}
|
|
510
510
|
);
|
|
511
511
|
});
|
|
512
512
|
F.displayName = "BaseButton";
|
|
513
|
-
const
|
|
513
|
+
const fe = C.forwardRef(
|
|
514
514
|
({
|
|
515
515
|
children: e,
|
|
516
516
|
disabled: t = !1,
|
|
@@ -525,13 +525,13 @@ const be = C.forwardRef(
|
|
|
525
525
|
label: p,
|
|
526
526
|
size: u = "medium",
|
|
527
527
|
labelRight: b,
|
|
528
|
-
labelLeft:
|
|
528
|
+
labelLeft: i,
|
|
529
529
|
spacing: h,
|
|
530
530
|
noBackground: y = !1,
|
|
531
531
|
align: N = "center",
|
|
532
532
|
...w
|
|
533
533
|
}, k) => {
|
|
534
|
-
const x =
|
|
534
|
+
const x = be({
|
|
535
535
|
type: W,
|
|
536
536
|
mode: r,
|
|
537
537
|
focusMode: a,
|
|
@@ -542,11 +542,11 @@ const be = C.forwardRef(
|
|
|
542
542
|
noBorder: m,
|
|
543
543
|
size: u,
|
|
544
544
|
labelRight: b,
|
|
545
|
-
labelLeft:
|
|
545
|
+
labelLeft: i,
|
|
546
546
|
spacing: h,
|
|
547
547
|
noBackground: y,
|
|
548
548
|
align: N
|
|
549
|
-
}),
|
|
549
|
+
}), I = l({
|
|
550
550
|
"text-copy-accent-dark": r === "light" && !d,
|
|
551
551
|
"text-copy-light": r === "dark" && !d,
|
|
552
552
|
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !d,
|
|
@@ -562,15 +562,15 @@ const be = C.forwardRef(
|
|
|
562
562
|
"aria-label": g || p,
|
|
563
563
|
...w,
|
|
564
564
|
children: [
|
|
565
|
-
|
|
566
|
-
/* @__PURE__ */
|
|
567
|
-
b && /* @__PURE__ */
|
|
565
|
+
i && /* @__PURE__ */ s("span", { className: "pr-2", children: i }),
|
|
566
|
+
/* @__PURE__ */ s("div", { className: I, children: e }),
|
|
567
|
+
b && /* @__PURE__ */ s("span", { className: "pl-2", children: b })
|
|
568
568
|
]
|
|
569
569
|
}
|
|
570
570
|
);
|
|
571
571
|
}
|
|
572
572
|
);
|
|
573
|
-
|
|
573
|
+
fe.displayName = "ButtonIcon";
|
|
574
574
|
/*!
|
|
575
575
|
@versini/ui-button v1.2.1
|
|
576
576
|
© 2024 gizmette.com
|
|
@@ -584,7 +584,7 @@ try {
|
|
|
584
584
|
});
|
|
585
585
|
} catch {
|
|
586
586
|
}
|
|
587
|
-
const
|
|
587
|
+
const yt = C.forwardRef(
|
|
588
588
|
({
|
|
589
589
|
children: e,
|
|
590
590
|
disabled: t = !1,
|
|
@@ -599,14 +599,14 @@ const ft = C.forwardRef(
|
|
|
599
599
|
label: p,
|
|
600
600
|
size: u = "medium",
|
|
601
601
|
labelRight: b,
|
|
602
|
-
labelLeft:
|
|
602
|
+
labelLeft: i,
|
|
603
603
|
spacing: h,
|
|
604
604
|
noBackground: y = !1,
|
|
605
605
|
align: N = "center",
|
|
606
606
|
active: w = !1,
|
|
607
607
|
...k
|
|
608
608
|
}, x) => {
|
|
609
|
-
const
|
|
609
|
+
const I = be({
|
|
610
610
|
type: W,
|
|
611
611
|
mode: r,
|
|
612
612
|
focusMode: a,
|
|
@@ -617,7 +617,7 @@ const ft = C.forwardRef(
|
|
|
617
617
|
noBorder: m,
|
|
618
618
|
size: u,
|
|
619
619
|
labelRight: b,
|
|
620
|
-
labelLeft:
|
|
620
|
+
labelLeft: i,
|
|
621
621
|
spacing: h,
|
|
622
622
|
noBackground: y,
|
|
623
623
|
align: N
|
|
@@ -643,26 +643,26 @@ const ft = C.forwardRef(
|
|
|
643
643
|
"after:border-table-light dark:after:border-table-dark": r === "alt-system"
|
|
644
644
|
}
|
|
645
645
|
) : "";
|
|
646
|
-
return /* @__PURE__ */
|
|
646
|
+
return /* @__PURE__ */ s("div", { className: z, children: /* @__PURE__ */ v(
|
|
647
647
|
F,
|
|
648
648
|
{
|
|
649
649
|
ref: x,
|
|
650
|
-
className:
|
|
650
|
+
className: I,
|
|
651
651
|
disabled: t,
|
|
652
652
|
type: c,
|
|
653
653
|
"aria-label": g || p,
|
|
654
654
|
...k,
|
|
655
655
|
children: [
|
|
656
|
-
|
|
657
|
-
/* @__PURE__ */
|
|
658
|
-
b && /* @__PURE__ */
|
|
656
|
+
i && /* @__PURE__ */ s("span", { className: "pr-2", children: i }),
|
|
657
|
+
/* @__PURE__ */ s("div", { className: T, children: e }),
|
|
658
|
+
b && /* @__PURE__ */ s("span", { className: "pl-2", children: b })
|
|
659
659
|
]
|
|
660
660
|
}
|
|
661
661
|
) });
|
|
662
662
|
}
|
|
663
663
|
);
|
|
664
|
-
|
|
665
|
-
const
|
|
664
|
+
yt.displayName = "ButtonSort";
|
|
665
|
+
const vt = (e) => {
|
|
666
666
|
let t = "";
|
|
667
667
|
if (typeof e == "number" || typeof e == "string")
|
|
668
668
|
t = "m-" + e;
|
|
@@ -671,7 +671,7 @@ const yt = (e) => {
|
|
|
671
671
|
(e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
|
|
672
672
|
}
|
|
673
673
|
return t;
|
|
674
|
-
},
|
|
674
|
+
}, ye = ({
|
|
675
675
|
children: e,
|
|
676
676
|
fill: t,
|
|
677
677
|
viewBox: r,
|
|
@@ -683,12 +683,12 @@ const yt = (e) => {
|
|
|
683
683
|
semantic: m = !1,
|
|
684
684
|
...g
|
|
685
685
|
}) => {
|
|
686
|
-
const p =
|
|
686
|
+
const p = vt(c), u = l(
|
|
687
687
|
p,
|
|
688
688
|
a || o
|
|
689
689
|
);
|
|
690
690
|
return /* @__PURE__ */ v(O, { children: [
|
|
691
|
-
/* @__PURE__ */
|
|
691
|
+
/* @__PURE__ */ s(
|
|
692
692
|
"svg",
|
|
693
693
|
{
|
|
694
694
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -702,7 +702,7 @@ const yt = (e) => {
|
|
|
702
702
|
children: e
|
|
703
703
|
}
|
|
704
704
|
),
|
|
705
|
-
d && m && /* @__PURE__ */
|
|
705
|
+
d && m && /* @__PURE__ */ s("span", { className: "sr-only", children: d })
|
|
706
706
|
] });
|
|
707
707
|
};
|
|
708
708
|
/*!
|
|
@@ -718,7 +718,7 @@ try {
|
|
|
718
718
|
});
|
|
719
719
|
} catch {
|
|
720
720
|
}
|
|
721
|
-
const
|
|
721
|
+
const kt = ({
|
|
722
722
|
className: e,
|
|
723
723
|
viewBox: t,
|
|
724
724
|
spacing: r,
|
|
@@ -726,7 +726,7 @@ const vt = ({
|
|
|
726
726
|
monotone: n,
|
|
727
727
|
...o
|
|
728
728
|
}) => /* @__PURE__ */ v(
|
|
729
|
-
|
|
729
|
+
ye,
|
|
730
730
|
{
|
|
731
731
|
defaultViewBox: "0 0 448 512",
|
|
732
732
|
defaultClassName: "size-5",
|
|
@@ -736,25 +736,25 @@ const vt = ({
|
|
|
736
736
|
title: a || "Copied",
|
|
737
737
|
...o,
|
|
738
738
|
children: [
|
|
739
|
-
/* @__PURE__ */
|
|
739
|
+
/* @__PURE__ */ s(
|
|
740
740
|
"path",
|
|
741
741
|
{
|
|
742
742
|
opacity: "0.4",
|
|
743
743
|
d: "M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM337 209L209 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 0s9.4 24.6 0 33.9z"
|
|
744
744
|
}
|
|
745
745
|
),
|
|
746
|
-
/* @__PURE__ */
|
|
746
|
+
/* @__PURE__ */ s("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" })
|
|
747
747
|
]
|
|
748
748
|
}
|
|
749
|
-
),
|
|
749
|
+
), xt = ({
|
|
750
750
|
className: e,
|
|
751
751
|
viewBox: t,
|
|
752
752
|
spacing: r,
|
|
753
753
|
title: a,
|
|
754
754
|
monotone: n,
|
|
755
755
|
...o
|
|
756
|
-
}) => /* @__PURE__ */
|
|
757
|
-
|
|
756
|
+
}) => /* @__PURE__ */ s(
|
|
757
|
+
ye,
|
|
758
758
|
{
|
|
759
759
|
defaultViewBox: "0 0 512 512",
|
|
760
760
|
defaultClassName: "size-5",
|
|
@@ -763,7 +763,7 @@ const vt = ({
|
|
|
763
763
|
spacing: r,
|
|
764
764
|
title: a || "Copy",
|
|
765
765
|
...o,
|
|
766
|
-
children: /* @__PURE__ */
|
|
766
|
+
children: /* @__PURE__ */ s("path", { d: "M64 464H288c8.8 0 16-7.2 16-16V384h48v64c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h64v48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zM224 304H448c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H224c-8.8 0-16 7.2-16 16V288c0 8.8 7.2 16 16 16zm-64-16V64c0-35.3 28.7-64 64-64H448c35.3 0 64 28.7 64 64V288c0 35.3-28.7 64-64 64H224c-35.3 0-64-28.7-64-64z" })
|
|
767
767
|
}
|
|
768
768
|
);
|
|
769
769
|
/*!
|
|
@@ -779,7 +779,7 @@ try {
|
|
|
779
779
|
});
|
|
780
780
|
} catch {
|
|
781
781
|
}
|
|
782
|
-
const
|
|
782
|
+
const Tt = (e) => {
|
|
783
783
|
let t = "";
|
|
784
784
|
if (typeof e == "number" || typeof e == "string")
|
|
785
785
|
t = "m-" + e;
|
|
@@ -788,15 +788,15 @@ const xt = (e) => {
|
|
|
788
788
|
(e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
|
|
789
789
|
}
|
|
790
790
|
return t;
|
|
791
|
-
},
|
|
791
|
+
}, _t = () => "p-4 sm:max-w-md md:max-w-2xl", Nt = ({ kind: e }) => l({
|
|
792
792
|
"bg-surface-lighter dark:bg-surface-dark": e === "left",
|
|
793
793
|
"bg-surface-accent": e === "right"
|
|
794
|
-
}),
|
|
794
|
+
}), wt = ({ kind: e }) => l(
|
|
795
795
|
"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",
|
|
796
796
|
{
|
|
797
797
|
"text-copy-lighter": e === "right"
|
|
798
798
|
}
|
|
799
|
-
),
|
|
799
|
+
), It = ({ kind: e }) => l("rounded-b-xl", {
|
|
800
800
|
"rounded-tr-xl": e === "left",
|
|
801
801
|
"rounded-tl-xl": e === "right"
|
|
802
802
|
}), Et = ({
|
|
@@ -806,18 +806,18 @@ const xt = (e) => {
|
|
|
806
806
|
}) => {
|
|
807
807
|
const a = l(
|
|
808
808
|
t,
|
|
809
|
-
|
|
809
|
+
st,
|
|
810
810
|
"flex items-start",
|
|
811
|
-
|
|
811
|
+
Tt(r),
|
|
812
812
|
{
|
|
813
813
|
"flex-row-reverse": e === "right"
|
|
814
814
|
}
|
|
815
815
|
), n = l(
|
|
816
816
|
"flex flex-col empty:hidden",
|
|
817
|
-
|
|
817
|
+
_t(),
|
|
818
|
+
wt({ kind: e }),
|
|
818
819
|
Nt({ kind: e }),
|
|
819
|
-
|
|
820
|
-
wt({ kind: e })
|
|
820
|
+
It({ kind: e })
|
|
821
821
|
), o = "pr-2 pt-1 text-end text-xs text-copy-light", c = l("flex flex-col-reverse gap-2 sm:flex-row", {
|
|
822
822
|
"ml-2": e === "left",
|
|
823
823
|
"mr-2": e === "right"
|
|
@@ -828,7 +828,7 @@ const xt = (e) => {
|
|
|
828
828
|
footer: o,
|
|
829
829
|
copyButton: c
|
|
830
830
|
};
|
|
831
|
-
},
|
|
831
|
+
}, Ct = ({
|
|
832
832
|
children: e,
|
|
833
833
|
kind: t = "left",
|
|
834
834
|
className: r,
|
|
@@ -839,7 +839,7 @@ const xt = (e) => {
|
|
|
839
839
|
copyToClipboardMode: d = "system",
|
|
840
840
|
spacing: m
|
|
841
841
|
}) => {
|
|
842
|
-
const [g, p] =
|
|
842
|
+
const [g, p] = A(!1), u = Et({ kind: t, className: r, spacing: m }), b = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), i = () => {
|
|
843
843
|
p(!0), typeof o == "function" ? o(e) : typeof o == "string" ? navigator.clipboard.writeText(o) : typeof e == "string" && navigator.clipboard.writeText(e);
|
|
844
844
|
};
|
|
845
845
|
return _(() => {
|
|
@@ -851,16 +851,16 @@ const xt = (e) => {
|
|
|
851
851
|
};
|
|
852
852
|
}, [g]), /* @__PURE__ */ v("div", { className: u.wrapper, children: [
|
|
853
853
|
/* @__PURE__ */ v("div", { children: [
|
|
854
|
-
/* @__PURE__ */
|
|
855
|
-
a && Object.keys(a).map((h) => a[h] ? /* @__PURE__ */
|
|
854
|
+
/* @__PURE__ */ s("div", { className: u.main, children: e }),
|
|
855
|
+
a && Object.keys(a).map((h) => a[h] ? /* @__PURE__ */ s("div", { className: "prose-p:m-0", children: /* @__PURE__ */ v("p", { className: u.footer, children: [
|
|
856
856
|
h,
|
|
857
857
|
": ",
|
|
858
858
|
a[h]
|
|
859
859
|
] }) }, `-${h}`) : null),
|
|
860
860
|
n && n
|
|
861
861
|
] }),
|
|
862
|
-
b && /* @__PURE__ */
|
|
863
|
-
|
|
862
|
+
b && /* @__PURE__ */ s("div", { className: u.copyButton, children: /* @__PURE__ */ s(
|
|
863
|
+
fe,
|
|
864
864
|
{
|
|
865
865
|
noBorder: !0,
|
|
866
866
|
noBackground: !0,
|
|
@@ -868,13 +868,13 @@ const xt = (e) => {
|
|
|
868
868
|
mode: d,
|
|
869
869
|
focusMode: c,
|
|
870
870
|
label: g ? "Copied to clipboard" : "Copy to clipboard",
|
|
871
|
-
onClick:
|
|
871
|
+
onClick: i,
|
|
872
872
|
disabled: g,
|
|
873
|
-
children: g ? /* @__PURE__ */
|
|
873
|
+
children: g ? /* @__PURE__ */ s(kt, { className: "size-3" }) : /* @__PURE__ */ s(xt, { className: "size-3" })
|
|
874
874
|
}
|
|
875
875
|
) })
|
|
876
876
|
] });
|
|
877
|
-
},
|
|
877
|
+
}, re = "av-button", Rt = (e) => {
|
|
878
878
|
let t = "";
|
|
879
879
|
if (typeof e == "number" || typeof e == "string")
|
|
880
880
|
t = "m-" + e;
|
|
@@ -883,7 +883,7 @@ const xt = (e) => {
|
|
|
883
883
|
(e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
|
|
884
884
|
}
|
|
885
885
|
return t;
|
|
886
|
-
},
|
|
886
|
+
}, ve = "icon", ke = "button", St = "link", Bt = ({
|
|
887
887
|
type: e,
|
|
888
888
|
size: t,
|
|
889
889
|
labelRight: r,
|
|
@@ -892,7 +892,7 @@ const xt = (e) => {
|
|
|
892
892
|
}) => {
|
|
893
893
|
const o = "text-sm font-medium max-h-8 py-0", c = "text-base font-medium max-h-9 py-1", d = "text-lg font-medium max-h-12 py-2";
|
|
894
894
|
switch (e) {
|
|
895
|
-
case
|
|
895
|
+
case ke:
|
|
896
896
|
return l("px-4", {
|
|
897
897
|
[o]: t === "small",
|
|
898
898
|
[c]: t === "medium",
|
|
@@ -904,7 +904,7 @@ const xt = (e) => {
|
|
|
904
904
|
[c]: t === "medium",
|
|
905
905
|
[d]: t === "large"
|
|
906
906
|
});
|
|
907
|
-
case
|
|
907
|
+
case ve:
|
|
908
908
|
return l("inline-flex items-center", {
|
|
909
909
|
"justify-center": n === "center",
|
|
910
910
|
"justify-start": n === "left",
|
|
@@ -917,7 +917,7 @@ const xt = (e) => {
|
|
|
917
917
|
"h-12 px-4 text-lg font-medium": t === "large" && (r || a)
|
|
918
918
|
});
|
|
919
919
|
}
|
|
920
|
-
},
|
|
920
|
+
}, At = ({
|
|
921
921
|
mode: e,
|
|
922
922
|
noBackground: t,
|
|
923
923
|
noTruncate: r,
|
|
@@ -977,7 +977,7 @@ const xt = (e) => {
|
|
|
977
977
|
"hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
|
|
978
978
|
"hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
|
|
979
979
|
});
|
|
980
|
-
},
|
|
980
|
+
}, Lt = ({
|
|
981
981
|
mode: e,
|
|
982
982
|
disabled: t,
|
|
983
983
|
variant: r
|
|
@@ -1005,7 +1005,7 @@ const xt = (e) => {
|
|
|
1005
1005
|
"active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
|
|
1006
1006
|
"active:bg-action-danger-light-active dark:active:bg-action-danger-dark-active": e === "alt-system"
|
|
1007
1007
|
});
|
|
1008
|
-
},
|
|
1008
|
+
}, Ot = ({
|
|
1009
1009
|
mode: e,
|
|
1010
1010
|
noBorder: t,
|
|
1011
1011
|
variant: r
|
|
@@ -1033,12 +1033,12 @@ const xt = (e) => {
|
|
|
1033
1033
|
"border-border-danger-dark dark:border-border-danger-medium": e === "system",
|
|
1034
1034
|
"border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
|
|
1035
1035
|
});
|
|
1036
|
-
},
|
|
1036
|
+
}, $t = ({ focusMode: e }) => l("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
1037
1037
|
"focus:outline-focus-dark": e === "dark",
|
|
1038
1038
|
"focus:outline-focus-light": e === "light",
|
|
1039
1039
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
1040
1040
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
1041
|
-
}),
|
|
1041
|
+
}), xe = ({
|
|
1042
1042
|
type: e,
|
|
1043
1043
|
className: t,
|
|
1044
1044
|
raw: r,
|
|
@@ -1052,41 +1052,41 @@ const xt = (e) => {
|
|
|
1052
1052
|
labelLeft: p,
|
|
1053
1053
|
spacing: u,
|
|
1054
1054
|
noBackground: b,
|
|
1055
|
-
variant:
|
|
1055
|
+
variant: i,
|
|
1056
1056
|
noTruncate: h,
|
|
1057
1057
|
align: y
|
|
1058
|
-
}) => (
|
|
1059
|
-
|
|
1058
|
+
}) => (i || (i = "primary"), r ? l(re, t) : l(
|
|
1059
|
+
re,
|
|
1060
1060
|
t,
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
Mt({ mode: a, variant:
|
|
1067
|
-
|
|
1061
|
+
Rt(u),
|
|
1062
|
+
At({ mode: a, variant: i, noBackground: b, noTruncate: h }),
|
|
1063
|
+
Bt({ type: e, size: d, labelRight: g, labelLeft: p, align: y }),
|
|
1064
|
+
Ot({ mode: a, variant: i, noBorder: m }),
|
|
1065
|
+
$t({ focusMode: n }),
|
|
1066
|
+
Mt({ mode: a, variant: i, disabled: o }),
|
|
1067
|
+
Lt({ mode: a, variant: i, disabled: o }),
|
|
1068
1068
|
{
|
|
1069
1069
|
"w-full": c,
|
|
1070
1070
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
1071
1071
|
}
|
|
1072
|
-
)),
|
|
1072
|
+
)), Ut = (e, t, r) => {
|
|
1073
1073
|
var a;
|
|
1074
1074
|
!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);
|
|
1075
1075
|
}, K = C.forwardRef((e, t) => {
|
|
1076
1076
|
const { onClick: r, noInternalClick: a = !1, ...n } = e;
|
|
1077
|
-
return /* @__PURE__ */
|
|
1077
|
+
return /* @__PURE__ */ s(
|
|
1078
1078
|
"button",
|
|
1079
1079
|
{
|
|
1080
1080
|
ref: t,
|
|
1081
1081
|
onClick: (o) => {
|
|
1082
|
-
|
|
1082
|
+
Ut(o, a, r);
|
|
1083
1083
|
},
|
|
1084
1084
|
...n
|
|
1085
1085
|
}
|
|
1086
1086
|
);
|
|
1087
1087
|
});
|
|
1088
1088
|
K.displayName = "BaseButton";
|
|
1089
|
-
const
|
|
1089
|
+
const Te = C.forwardRef(
|
|
1090
1090
|
({
|
|
1091
1091
|
children: e,
|
|
1092
1092
|
disabled: t = !1,
|
|
@@ -1101,9 +1101,9 @@ const xe = C.forwardRef(
|
|
|
1101
1101
|
variant: p = "primary",
|
|
1102
1102
|
noTruncate: u = !1,
|
|
1103
1103
|
...b
|
|
1104
|
-
},
|
|
1105
|
-
const h =
|
|
1106
|
-
type:
|
|
1104
|
+
}, i) => {
|
|
1105
|
+
const h = xe({
|
|
1106
|
+
type: ke,
|
|
1107
1107
|
mode: r,
|
|
1108
1108
|
focusMode: a,
|
|
1109
1109
|
fullWidth: n,
|
|
@@ -1116,10 +1116,10 @@ const xe = C.forwardRef(
|
|
|
1116
1116
|
variant: p,
|
|
1117
1117
|
noTruncate: u
|
|
1118
1118
|
});
|
|
1119
|
-
return /* @__PURE__ */
|
|
1119
|
+
return /* @__PURE__ */ s(
|
|
1120
1120
|
K,
|
|
1121
1121
|
{
|
|
1122
|
-
ref:
|
|
1122
|
+
ref: i,
|
|
1123
1123
|
className: h,
|
|
1124
1124
|
disabled: t,
|
|
1125
1125
|
...b,
|
|
@@ -1128,7 +1128,7 @@ const xe = C.forwardRef(
|
|
|
1128
1128
|
);
|
|
1129
1129
|
}
|
|
1130
1130
|
);
|
|
1131
|
-
|
|
1131
|
+
Te.displayName = "Button";
|
|
1132
1132
|
/*!
|
|
1133
1133
|
@versini/ui-button v1.2.1
|
|
1134
1134
|
© 2024 gizmette.com
|
|
@@ -1142,7 +1142,7 @@ try {
|
|
|
1142
1142
|
});
|
|
1143
1143
|
} catch {
|
|
1144
1144
|
}
|
|
1145
|
-
const
|
|
1145
|
+
const zt = C.forwardRef(
|
|
1146
1146
|
({
|
|
1147
1147
|
children: e,
|
|
1148
1148
|
disabled: t = !1,
|
|
@@ -1157,15 +1157,15 @@ const Ut = C.forwardRef(
|
|
|
1157
1157
|
label: p,
|
|
1158
1158
|
size: u = "medium",
|
|
1159
1159
|
labelRight: b,
|
|
1160
|
-
labelLeft:
|
|
1160
|
+
labelLeft: i,
|
|
1161
1161
|
spacing: h,
|
|
1162
1162
|
noBackground: y = !1,
|
|
1163
1163
|
align: N = "center",
|
|
1164
1164
|
active: w = !1,
|
|
1165
1165
|
...k
|
|
1166
1166
|
}, x) => {
|
|
1167
|
-
const
|
|
1168
|
-
type:
|
|
1167
|
+
const I = xe({
|
|
1168
|
+
type: ve,
|
|
1169
1169
|
mode: r,
|
|
1170
1170
|
focusMode: a,
|
|
1171
1171
|
fullWidth: n,
|
|
@@ -1175,7 +1175,7 @@ const Ut = C.forwardRef(
|
|
|
1175
1175
|
noBorder: m,
|
|
1176
1176
|
size: u,
|
|
1177
1177
|
labelRight: b,
|
|
1178
|
-
labelLeft:
|
|
1178
|
+
labelLeft: i,
|
|
1179
1179
|
spacing: h,
|
|
1180
1180
|
noBackground: y,
|
|
1181
1181
|
align: N
|
|
@@ -1201,28 +1201,28 @@ const Ut = C.forwardRef(
|
|
|
1201
1201
|
"after:border-table-light dark:after:border-table-dark": r === "alt-system"
|
|
1202
1202
|
}
|
|
1203
1203
|
) : "";
|
|
1204
|
-
return /* @__PURE__ */
|
|
1204
|
+
return /* @__PURE__ */ s("div", { className: z, children: /* @__PURE__ */ v(
|
|
1205
1205
|
K,
|
|
1206
1206
|
{
|
|
1207
1207
|
ref: x,
|
|
1208
|
-
className:
|
|
1208
|
+
className: I,
|
|
1209
1209
|
disabled: t,
|
|
1210
1210
|
type: c,
|
|
1211
1211
|
"aria-label": g || p,
|
|
1212
1212
|
...k,
|
|
1213
1213
|
children: [
|
|
1214
|
-
|
|
1215
|
-
/* @__PURE__ */
|
|
1216
|
-
b && /* @__PURE__ */
|
|
1214
|
+
i && /* @__PURE__ */ s("span", { className: "pr-2", children: i }),
|
|
1215
|
+
/* @__PURE__ */ s("div", { className: T, children: e }),
|
|
1216
|
+
b && /* @__PURE__ */ s("span", { className: "pl-2", children: b })
|
|
1217
1217
|
]
|
|
1218
1218
|
}
|
|
1219
1219
|
) });
|
|
1220
1220
|
}
|
|
1221
1221
|
);
|
|
1222
|
-
|
|
1223
|
-
const
|
|
1222
|
+
zt.displayName = "ButtonSort";
|
|
1223
|
+
const Vt = 200, Dt = ({
|
|
1224
1224
|
string: e,
|
|
1225
|
-
idealLength: t =
|
|
1225
|
+
idealLength: t = Vt
|
|
1226
1226
|
}) => {
|
|
1227
1227
|
if (e.length <= t)
|
|
1228
1228
|
return { string: e, isTruncated: !1 };
|
|
@@ -1233,23 +1233,23 @@ const zt = 200, Vt = ({
|
|
|
1233
1233
|
string: e.slice(0, t + r),
|
|
1234
1234
|
isTruncated: !0
|
|
1235
1235
|
};
|
|
1236
|
-
},
|
|
1236
|
+
}, Pt = ({
|
|
1237
1237
|
children: e,
|
|
1238
1238
|
length: t = 200,
|
|
1239
1239
|
mode: r = "system",
|
|
1240
1240
|
focusMode: a = "system"
|
|
1241
1241
|
}) => {
|
|
1242
|
-
const [n, o] =
|
|
1242
|
+
const [n, o] = A(!1);
|
|
1243
1243
|
if (typeof e != "string")
|
|
1244
1244
|
return e;
|
|
1245
|
-
const { string: c, isTruncated: d } =
|
|
1245
|
+
const { string: c, isTruncated: d } = Dt({
|
|
1246
1246
|
string: e,
|
|
1247
1247
|
idealLength: t
|
|
1248
1248
|
});
|
|
1249
1249
|
return /* @__PURE__ */ v("span", { style: { wordBreak: "break-word" }, children: [
|
|
1250
1250
|
n ? e : c,
|
|
1251
|
-
d && /* @__PURE__ */
|
|
1252
|
-
|
|
1251
|
+
d && /* @__PURE__ */ s(
|
|
1252
|
+
Te,
|
|
1253
1253
|
{
|
|
1254
1254
|
mode: r,
|
|
1255
1255
|
focusMode: a,
|
|
@@ -1276,55 +1276,55 @@ try {
|
|
|
1276
1276
|
});
|
|
1277
1277
|
} catch {
|
|
1278
1278
|
}
|
|
1279
|
-
const
|
|
1279
|
+
const ae = Ke(
|
|
1280
1280
|
() => import(
|
|
1281
1281
|
/* webpackChunkName: "LazyMessageAssistant" */
|
|
1282
|
-
"./LazyMessageAssistant.
|
|
1282
|
+
"./LazyMessageAssistant.D5CSB7UV.js"
|
|
1283
1283
|
).then((e) => e.LazyMessageAssistant)
|
|
1284
|
-
),
|
|
1285
|
-
const { state: e } =
|
|
1284
|
+
), Ht = () => {
|
|
1285
|
+
const { state: e } = S($);
|
|
1286
1286
|
return /* @__PURE__ */ v(O, { children: [
|
|
1287
1287
|
e && e.messages.length > 0 && e.messages.map((t, r) => {
|
|
1288
1288
|
const { role: a, content: n, name: o, processingTime: c } = t.message;
|
|
1289
|
-
return (a ===
|
|
1290
|
-
|
|
1289
|
+
return (a === E || a === j) && n ? /* @__PURE__ */ s(Z, { fallback: /* @__PURE__ */ s("span", {}), children: /* @__PURE__ */ s(
|
|
1290
|
+
ae,
|
|
1291
1291
|
{
|
|
1292
1292
|
name: o,
|
|
1293
1293
|
processingTime: c,
|
|
1294
1294
|
children: n
|
|
1295
1295
|
}
|
|
1296
|
-
) }, `${r}-${a}`) : a === P && n ? /* @__PURE__ */
|
|
1297
|
-
|
|
1296
|
+
) }, `${r}-${a}`) : a === P && n ? /* @__PURE__ */ s(
|
|
1297
|
+
Ct,
|
|
1298
1298
|
{
|
|
1299
1299
|
kind: "right",
|
|
1300
1300
|
copyToClipboard: n,
|
|
1301
1301
|
copyToClipboardFocusMode: "light",
|
|
1302
|
-
children: /* @__PURE__ */
|
|
1302
|
+
children: /* @__PURE__ */ s(Pt, { mode: "light", focusMode: "light", children: n })
|
|
1303
1303
|
},
|
|
1304
1304
|
`${r}-${a}`
|
|
1305
1305
|
) : null;
|
|
1306
1306
|
}),
|
|
1307
|
-
|
|
1307
|
+
me(P, e) && /* @__PURE__ */ s(Z, { fallback: /* @__PURE__ */ s("span", {}), children: /* @__PURE__ */ s(ae, { loading: !0 }) })
|
|
1308
1308
|
] });
|
|
1309
1309
|
}, L = (e, t) => {
|
|
1310
1310
|
e({
|
|
1311
|
-
type:
|
|
1311
|
+
type: de,
|
|
1312
1312
|
payload: {
|
|
1313
1313
|
streaming: t
|
|
1314
1314
|
}
|
|
1315
1315
|
});
|
|
1316
|
-
},
|
|
1316
|
+
}, oe = (e) => {
|
|
1317
1317
|
L(e, !1), e({
|
|
1318
|
-
type:
|
|
1318
|
+
type: R,
|
|
1319
1319
|
payload: {
|
|
1320
1320
|
message: {
|
|
1321
1321
|
role: j,
|
|
1322
|
-
content:
|
|
1322
|
+
content: Oe
|
|
1323
1323
|
}
|
|
1324
1324
|
}
|
|
1325
1325
|
});
|
|
1326
|
-
},
|
|
1327
|
-
const { state: e, dispatch: t } =
|
|
1326
|
+
}, jt = () => {
|
|
1327
|
+
const { state: e, dispatch: t } = S($), { state: r, dispatch: a } = S(H), [n, o] = A(""), { getAccessToken: c, user: d } = U(), m = B(null), g = B(
|
|
1328
1328
|
null
|
|
1329
1329
|
);
|
|
1330
1330
|
_(() => {
|
|
@@ -1335,22 +1335,22 @@ const re = Fe(
|
|
|
1335
1335
|
return;
|
|
1336
1336
|
}
|
|
1337
1337
|
const u = e.messages[e.messages.length - 1];
|
|
1338
|
-
if (!(e.messages.length === 0 || u.message.role ===
|
|
1338
|
+
if (!(e.messages.length === 0 || u.message.role === E || u.message.role === Be || u.message.role === j || u.message.role === Ae))
|
|
1339
1339
|
try {
|
|
1340
|
-
const
|
|
1340
|
+
const i = await Ge({
|
|
1341
1341
|
accessToken: await c(),
|
|
1342
1342
|
name: "generate",
|
|
1343
1343
|
data: {
|
|
1344
1344
|
messages: e.messages,
|
|
1345
|
-
model: e.engine ||
|
|
1345
|
+
model: e.engine || M,
|
|
1346
1346
|
user: (d == null ? void 0 : d.username) || "",
|
|
1347
1347
|
id: e.id,
|
|
1348
1348
|
usage: e.usage
|
|
1349
1349
|
}
|
|
1350
1350
|
});
|
|
1351
|
-
if (
|
|
1351
|
+
if (i && i.ok) {
|
|
1352
1352
|
const h = G();
|
|
1353
|
-
g.current =
|
|
1353
|
+
g.current = i.body.getReader();
|
|
1354
1354
|
const y = new TextDecoder();
|
|
1355
1355
|
for (; ; ) {
|
|
1356
1356
|
L(t, !0);
|
|
@@ -1361,21 +1361,21 @@ const re = Fe(
|
|
|
1361
1361
|
}
|
|
1362
1362
|
const k = y.decode(w, { stream: !0 }), x = k.indexOf(q);
|
|
1363
1363
|
if (x !== -1) {
|
|
1364
|
-
const
|
|
1364
|
+
const I = k.substring(0, x), T = JSON.parse(
|
|
1365
1365
|
k.substring(x + q.length)
|
|
1366
1366
|
);
|
|
1367
1367
|
t({
|
|
1368
|
-
type:
|
|
1368
|
+
type: ie,
|
|
1369
1369
|
payload: {
|
|
1370
1370
|
model: T.model,
|
|
1371
1371
|
usage: T.usage
|
|
1372
1372
|
}
|
|
1373
1373
|
}), t({
|
|
1374
|
-
type:
|
|
1374
|
+
type: R,
|
|
1375
1375
|
payload: {
|
|
1376
1376
|
message: {
|
|
1377
|
-
content:
|
|
1378
|
-
role:
|
|
1377
|
+
content: I,
|
|
1378
|
+
role: E,
|
|
1379
1379
|
messageId: h,
|
|
1380
1380
|
processingTime: T.processingTime,
|
|
1381
1381
|
name: T.name
|
|
@@ -1385,26 +1385,26 @@ const re = Fe(
|
|
|
1385
1385
|
break;
|
|
1386
1386
|
} else
|
|
1387
1387
|
t({
|
|
1388
|
-
type:
|
|
1388
|
+
type: R,
|
|
1389
1389
|
payload: {
|
|
1390
1390
|
message: {
|
|
1391
1391
|
content: k,
|
|
1392
|
-
role:
|
|
1392
|
+
role: E,
|
|
1393
1393
|
messageId: h
|
|
1394
1394
|
}
|
|
1395
1395
|
}
|
|
1396
1396
|
});
|
|
1397
1397
|
}
|
|
1398
1398
|
} else
|
|
1399
|
-
|
|
1400
|
-
} catch (
|
|
1401
|
-
console.error(
|
|
1399
|
+
oe(t);
|
|
1400
|
+
} catch (i) {
|
|
1401
|
+
console.error(i), oe(t);
|
|
1402
1402
|
}
|
|
1403
1403
|
})();
|
|
1404
1404
|
}, [e == null ? void 0 : e.messages]);
|
|
1405
1405
|
const p = async (u) => {
|
|
1406
1406
|
u.preventDefault(), t({
|
|
1407
|
-
type:
|
|
1407
|
+
type: R,
|
|
1408
1408
|
payload: {
|
|
1409
1409
|
message: {
|
|
1410
1410
|
role: P,
|
|
@@ -1416,14 +1416,16 @@ const re = Fe(
|
|
|
1416
1416
|
return _(() => {
|
|
1417
1417
|
if (r.tag !== "") {
|
|
1418
1418
|
const u = r.tag.endsWith(":") && !r.tag.endsWith(": ") ? r.tag + " " : r.tag;
|
|
1419
|
-
|
|
1420
|
-
|
|
1419
|
+
u.indexOf(X) !== -1 ? navigator.clipboard.readText().then((i) => {
|
|
1420
|
+
o(u.replace(X, i));
|
|
1421
|
+
}) : o(u), m.current && m.current.focus(), a({
|
|
1422
|
+
type: ce
|
|
1421
1423
|
});
|
|
1422
1424
|
}
|
|
1423
1425
|
}, [r, a]), _(() => {
|
|
1424
1426
|
e && e.usage === 0 && e.messages.length === 0 && m.current && m.current.focus();
|
|
1425
|
-
}, [e]), /* @__PURE__ */
|
|
1426
|
-
|
|
1427
|
+
}, [e]), /* @__PURE__ */ s("form", { className: "mt-2", onSubmit: p, children: /* @__PURE__ */ s(
|
|
1428
|
+
We,
|
|
1427
1429
|
{
|
|
1428
1430
|
mode: "dark",
|
|
1429
1431
|
focusMode: "light",
|
|
@@ -1435,73 +1437,73 @@ const re = Fe(
|
|
|
1435
1437
|
required: !0,
|
|
1436
1438
|
value: n,
|
|
1437
1439
|
onChange: (u) => o(u.target.value),
|
|
1438
|
-
onKeyDown:
|
|
1439
|
-
rightElement: /* @__PURE__ */
|
|
1440
|
-
|
|
1440
|
+
onKeyDown: Qe([["mod+Enter", p]]),
|
|
1441
|
+
rightElement: /* @__PURE__ */ s(
|
|
1442
|
+
ue,
|
|
1441
1443
|
{
|
|
1442
1444
|
disabled: e == null ? void 0 : e.streaming,
|
|
1443
1445
|
noBorder: !0,
|
|
1444
1446
|
type: "submit",
|
|
1445
1447
|
mode: "light",
|
|
1446
1448
|
focusMode: "light",
|
|
1447
|
-
children:
|
|
1449
|
+
children: Le
|
|
1448
1450
|
}
|
|
1449
1451
|
)
|
|
1450
1452
|
}
|
|
1451
1453
|
) });
|
|
1452
|
-
},
|
|
1453
|
-
const { isAuthenticated: e } = U(), t =
|
|
1454
|
+
}, Gt = () => {
|
|
1455
|
+
const { isAuthenticated: e } = U(), t = $e(e);
|
|
1454
1456
|
return /* @__PURE__ */ v(O, { children: [
|
|
1455
1457
|
/* @__PURE__ */ v("div", { className: t, children: [
|
|
1456
|
-
/* @__PURE__ */
|
|
1457
|
-
/* @__PURE__ */
|
|
1458
|
+
/* @__PURE__ */ s(Ue, {}),
|
|
1459
|
+
/* @__PURE__ */ s(Ht, {})
|
|
1458
1460
|
] }),
|
|
1459
|
-
/* @__PURE__ */
|
|
1460
|
-
/* @__PURE__ */
|
|
1461
|
+
/* @__PURE__ */ s(it, {}),
|
|
1462
|
+
/* @__PURE__ */ s(jt, {})
|
|
1461
1463
|
] });
|
|
1462
1464
|
};
|
|
1463
|
-
function
|
|
1464
|
-
const t = B(!1), { getAccessToken: r, user: a } = U(), [n] =
|
|
1465
|
-
key:
|
|
1465
|
+
function _e({ isComponent: e = !1 }) {
|
|
1466
|
+
const t = B(!1), { getAccessToken: r, user: a } = U(), [n] = Q({
|
|
1467
|
+
key: J + Pe,
|
|
1466
1468
|
initialValue: ""
|
|
1467
|
-
}), [o] =
|
|
1468
|
-
key:
|
|
1469
|
-
initialValue:
|
|
1470
|
-
}), [c, d] = V(
|
|
1469
|
+
}), [o] = Q({
|
|
1470
|
+
key: J + He,
|
|
1471
|
+
initialValue: Fe.ASC
|
|
1472
|
+
}), [c, d] = V(at, {
|
|
1471
1473
|
id: G(),
|
|
1472
|
-
model:
|
|
1473
|
-
engine:
|
|
1474
|
+
model: M,
|
|
1475
|
+
engine: M,
|
|
1474
1476
|
usage: 0,
|
|
1475
1477
|
messages: [],
|
|
1476
1478
|
tags: [],
|
|
1477
1479
|
isComponent: e
|
|
1478
|
-
}), [m, g] = V(
|
|
1480
|
+
}), [m, g] = V(ot, {
|
|
1479
1481
|
searchString: n,
|
|
1480
1482
|
sortedCell: "timestamp",
|
|
1481
1483
|
sortDirection: o
|
|
1482
|
-
}), [p, u] = V(
|
|
1484
|
+
}), [p, u] = V(nt, {
|
|
1483
1485
|
tag: "",
|
|
1484
1486
|
tags: []
|
|
1485
|
-
}), [b,
|
|
1487
|
+
}), [b, i] = A({
|
|
1486
1488
|
version: "",
|
|
1487
1489
|
models: [],
|
|
1488
1490
|
plugins: [],
|
|
1489
|
-
engine:
|
|
1491
|
+
engine: M,
|
|
1490
1492
|
engines: []
|
|
1491
1493
|
});
|
|
1492
1494
|
return _(() => {
|
|
1493
1495
|
b.version !== "" || t.current || (async () => {
|
|
1494
1496
|
try {
|
|
1495
1497
|
t.current = !0;
|
|
1496
|
-
const h = await
|
|
1498
|
+
const h = await he({
|
|
1497
1499
|
accessToken: await r(),
|
|
1498
|
-
type:
|
|
1500
|
+
type: pe.ABOUT,
|
|
1499
1501
|
params: {
|
|
1500
1502
|
user: a == null ? void 0 : a.username
|
|
1501
1503
|
}
|
|
1502
1504
|
});
|
|
1503
|
-
t.current = !1, h.status === 200 && (
|
|
1504
|
-
type:
|
|
1505
|
+
t.current = !1, h.status === 200 && (i(h.data), d({
|
|
1506
|
+
type: se,
|
|
1505
1507
|
payload: {
|
|
1506
1508
|
engine: h.data.engine
|
|
1507
1509
|
}
|
|
@@ -1515,8 +1517,8 @@ function Te({ isComponent: e = !1 }) {
|
|
|
1515
1517
|
var y;
|
|
1516
1518
|
(y = document.getElementById("root")) == null || y.classList.replace("app-hidden", "fadeIn");
|
|
1517
1519
|
}, 500);
|
|
1518
|
-
}), /* @__PURE__ */
|
|
1519
|
-
|
|
1520
|
+
}), /* @__PURE__ */ s($.Provider, { value: { state: c, dispatch: d, serverStats: b }, children: /* @__PURE__ */ s(
|
|
1521
|
+
ze.Provider,
|
|
1520
1522
|
{
|
|
1521
1523
|
value: {
|
|
1522
1524
|
state: m,
|
|
@@ -1527,17 +1529,17 @@ function Te({ isComponent: e = !1 }) {
|
|
|
1527
1529
|
{
|
|
1528
1530
|
value: { state: p, dispatch: u },
|
|
1529
1531
|
children: [
|
|
1530
|
-
/* @__PURE__ */
|
|
1531
|
-
/* @__PURE__ */
|
|
1532
|
+
/* @__PURE__ */ s(Ve, { children: /* @__PURE__ */ s(Gt, {}) }),
|
|
1533
|
+
/* @__PURE__ */ s(De, { serverStats: b })
|
|
1532
1534
|
]
|
|
1533
1535
|
}
|
|
1534
1536
|
)
|
|
1535
1537
|
}
|
|
1536
1538
|
) });
|
|
1537
1539
|
}
|
|
1538
|
-
|
|
1539
|
-
const
|
|
1540
|
+
_e.displayName = "App";
|
|
1541
|
+
const Xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: _e }, Symbol.toStringTag, { value: "Module" }));
|
|
1540
1542
|
export {
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
+
Xt as LazyApp,
|
|
1544
|
+
Ct as le
|
|
1543
1545
|
};
|