juneau 0.7.1 → 0.7.2
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/README.md +1051 -1051
- package/dist/components/AiMessageBubble/AiMessageBubble.d.ts.map +1 -1
- package/dist/index.cjs +23 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +613 -589
- package/dist/index.js.map +1 -1
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +86 -86
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useState as
|
|
2
|
-
import { jsx as b, jsxs as
|
|
1
|
+
import { useState as Me, useRef as qe, useEffect as St, useCallback as de, useMemo as Ir, useContext as sn, createContext as Tr } from "react";
|
|
2
|
+
import { jsx as b, jsxs as Y, Fragment as un } from "react/jsx-runtime";
|
|
3
3
|
function Ji(e) {
|
|
4
4
|
return e.map((n) => n.role !== "assistant" || n.parts.some((t) => t.type === "text") ? n : { ...n, parts: [{ type: "text", text: "" }] });
|
|
5
5
|
}
|
|
@@ -11,11 +11,11 @@ async function Nn(e, n, t) {
|
|
|
11
11
|
for await (const r of e)
|
|
12
12
|
if (t?.aborted || (n(r), r.type === "done" || r.type === "error")) break;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function zr(e) {
|
|
15
15
|
return e.type === "proposal";
|
|
16
16
|
}
|
|
17
17
|
const Zi = 1;
|
|
18
|
-
function
|
|
18
|
+
function Xh(e) {
|
|
19
19
|
return e.map((n) => ({
|
|
20
20
|
...n,
|
|
21
21
|
v: Zi,
|
|
@@ -24,9 +24,9 @@ function Uh(e) {
|
|
|
24
24
|
}));
|
|
25
25
|
}
|
|
26
26
|
function el(e) {
|
|
27
|
-
return
|
|
27
|
+
return zr(e) && !e.proposal.resolved ? { ...e, proposal: { ...e.proposal, resolved: "expired" } } : e;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Gh(e) {
|
|
30
30
|
return e.map(({ v: n, ...t }) => ({
|
|
31
31
|
...t,
|
|
32
32
|
createdAt: new Date(t.createdAt)
|
|
@@ -39,10 +39,10 @@ function tl(e, n) {
|
|
|
39
39
|
t++;
|
|
40
40
|
return e.slice(t);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
return n <= 0 || e.length <= n ? [...e].sort(
|
|
42
|
+
function Jh(e, n) {
|
|
43
|
+
return n <= 0 || e.length <= n ? [...e].sort(Rn) : [...e].sort(Rn).slice(0, n);
|
|
44
44
|
}
|
|
45
|
-
const
|
|
45
|
+
const Rn = (e, n) => n.updatedAt.getTime() - e.updatedAt.getTime(), Kh = {
|
|
46
46
|
async *sendMessage(e) {
|
|
47
47
|
const n = [...e.messages].reverse().find((r) => r.role === "user"), t = n ? Ki(n).toLowerCase() : "";
|
|
48
48
|
t.includes("activity") || t.includes("progress") || t.includes("document") || t.includes("dokument") ? yield* nl() : t.includes("table") || t.includes("data") || t.includes("list") || t.includes("show") ? yield* rl() : t.includes("proposal") || t.includes("suggest") || t.includes("recommend") ? yield* il() : t.includes("entity") || t.includes("card") || t.includes("detail") || t.includes("find") ? yield* ll() : t.includes("help") || t.includes("what can") || t.includes("how do") ? yield* ol() : t.includes("error") || t.includes("fail") || t.includes("break") ? yield* al() : yield* sl(t);
|
|
@@ -207,7 +207,7 @@ async function* ee(e, n) {
|
|
|
207
207
|
for (let r = 0; r < e.length; r += 3)
|
|
208
208
|
yield { type: "text", text: e.slice(r, r + 3) }, await K(n);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Pr(e) {
|
|
211
211
|
if (!e || e === "[DONE]") return [];
|
|
212
212
|
let n;
|
|
213
213
|
try {
|
|
@@ -240,7 +240,7 @@ function zr(e) {
|
|
|
240
240
|
return [];
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Zh(e, n = {}) {
|
|
244
244
|
const {
|
|
245
245
|
method: t = "POST",
|
|
246
246
|
headers: r = {},
|
|
@@ -307,7 +307,7 @@ async function* ul(e, n) {
|
|
|
307
307
|
}
|
|
308
308
|
const cl = (e) => {
|
|
309
309
|
if (!e || e === "[DONE]") return [];
|
|
310
|
-
const n =
|
|
310
|
+
const n = Pr(e);
|
|
311
311
|
if (n.length > 0) return n;
|
|
312
312
|
try {
|
|
313
313
|
const t = JSON.parse(e);
|
|
@@ -319,7 +319,7 @@ const cl = (e) => {
|
|
|
319
319
|
return [];
|
|
320
320
|
}
|
|
321
321
|
};
|
|
322
|
-
function
|
|
322
|
+
function ed(e, n = {}) {
|
|
323
323
|
const {
|
|
324
324
|
method: t = "POST",
|
|
325
325
|
headers: r = {},
|
|
@@ -383,11 +383,11 @@ async function* fl(e, n) {
|
|
|
383
383
|
yield { type: "done" };
|
|
384
384
|
}
|
|
385
385
|
const pl = (e) => {
|
|
386
|
-
const n =
|
|
386
|
+
const n = Pr(e);
|
|
387
387
|
return n.length > 0 ? n : e ? [{ type: "text", text: e }] : [];
|
|
388
388
|
};
|
|
389
389
|
let hl = 0;
|
|
390
|
-
const dt = () => `msg-${++hl}-${Date.now()}`,
|
|
390
|
+
const dt = () => `msg-${++hl}-${Date.now()}`, Mn = Ji;
|
|
391
391
|
function dl({
|
|
392
392
|
adapter: e,
|
|
393
393
|
context: n,
|
|
@@ -397,49 +397,49 @@ function dl({
|
|
|
397
397
|
historyLimit: o,
|
|
398
398
|
onMessagesChange: l
|
|
399
399
|
}) {
|
|
400
|
-
const [a, s] =
|
|
400
|
+
const [a, s] = Me(i ?? []), [u, f] = Me(""), [c, h] = Me(!1), [p, g] = Me(!1), [C, S] = Me(null), y = qe(null), A = qe(!1), _ = qe(l);
|
|
401
401
|
St(() => {
|
|
402
402
|
_.current = l;
|
|
403
403
|
}), St(() => {
|
|
404
404
|
!A.current || c || (A.current = !1, _.current?.(a));
|
|
405
405
|
}, [a, c]);
|
|
406
406
|
const L = de((v) => {
|
|
407
|
-
s((
|
|
408
|
-
const B =
|
|
409
|
-
if (!B || B.role !== "assistant") return
|
|
407
|
+
s((R) => {
|
|
408
|
+
const B = R[R.length - 1];
|
|
409
|
+
if (!B || B.role !== "assistant") return R;
|
|
410
410
|
if (v.type === "activity" && v.id) {
|
|
411
|
-
const
|
|
411
|
+
const Q = [...B.parts], W = Q.findIndex(
|
|
412
412
|
(d) => d.type === "activity" && d.id === v.id
|
|
413
413
|
);
|
|
414
414
|
if (W !== -1)
|
|
415
|
-
return
|
|
415
|
+
return Q[W] = v, [...R.slice(0, -1), { ...B, parts: Q }];
|
|
416
416
|
}
|
|
417
417
|
return [
|
|
418
|
-
...
|
|
418
|
+
...R.slice(0, -1),
|
|
419
419
|
{ ...B, parts: [...B.parts, v] }
|
|
420
420
|
];
|
|
421
421
|
});
|
|
422
422
|
}, []), N = de((v) => {
|
|
423
|
-
s((
|
|
424
|
-
const B =
|
|
425
|
-
if (!B || B.role !== "assistant") return
|
|
426
|
-
const
|
|
427
|
-
return W?.type === "text" ?
|
|
423
|
+
s((R) => {
|
|
424
|
+
const B = R[R.length - 1];
|
|
425
|
+
if (!B || B.role !== "assistant") return R;
|
|
426
|
+
const Q = [...B.parts], W = Q[Q.length - 1];
|
|
427
|
+
return W?.type === "text" ? Q[Q.length - 1] = { type: "text", text: W.text + v } : Q.push({ type: "text", text: v }), [...R.slice(0, -1), { ...B, parts: Q }];
|
|
428
428
|
});
|
|
429
|
-
}, []), x = de(async (v,
|
|
429
|
+
}, []), x = de(async (v, R) => {
|
|
430
430
|
S(null);
|
|
431
431
|
const B = {
|
|
432
432
|
id: dt(),
|
|
433
433
|
role: "user",
|
|
434
434
|
parts: [{ type: "text", text: v }],
|
|
435
435
|
createdAt: /* @__PURE__ */ new Date()
|
|
436
|
-
},
|
|
436
|
+
}, Q = dt();
|
|
437
437
|
let W = !1;
|
|
438
438
|
const d = () => {
|
|
439
439
|
if (W) return;
|
|
440
440
|
W = !0;
|
|
441
441
|
const te = {
|
|
442
|
-
id:
|
|
442
|
+
id: Q,
|
|
443
443
|
role: "assistant",
|
|
444
444
|
parts: [],
|
|
445
445
|
createdAt: /* @__PURE__ */ new Date()
|
|
@@ -451,9 +451,9 @@ function dl({
|
|
|
451
451
|
y.current = se;
|
|
452
452
|
try {
|
|
453
453
|
const te = tl(
|
|
454
|
-
[...
|
|
454
|
+
[...R, B],
|
|
455
455
|
o ?? Number.POSITIVE_INFINITY
|
|
456
|
-
), m = e.sendMessage({ messages:
|
|
456
|
+
), m = e.sendMessage({ messages: Mn(te), context: n });
|
|
457
457
|
await Nn(
|
|
458
458
|
m,
|
|
459
459
|
(ne) => {
|
|
@@ -487,23 +487,23 @@ function dl({
|
|
|
487
487
|
}, [c, a, x]), H = de(async (v) => {
|
|
488
488
|
if (c) return;
|
|
489
489
|
S(null), h(!0), g(!0);
|
|
490
|
-
const
|
|
490
|
+
const R = {
|
|
491
491
|
id: dt(),
|
|
492
492
|
role: "assistant",
|
|
493
493
|
parts: [],
|
|
494
494
|
createdAt: /* @__PURE__ */ new Date()
|
|
495
495
|
};
|
|
496
|
-
s((W) => [...W,
|
|
496
|
+
s((W) => [...W, R]), y.current?.abort();
|
|
497
497
|
const B = new AbortController();
|
|
498
498
|
y.current = B;
|
|
499
|
-
const
|
|
499
|
+
const Q = {
|
|
500
500
|
id: dt(),
|
|
501
501
|
role: "system",
|
|
502
502
|
parts: [{ type: "text", text: v }],
|
|
503
503
|
createdAt: /* @__PURE__ */ new Date()
|
|
504
504
|
};
|
|
505
505
|
try {
|
|
506
|
-
const W = e.sendMessage({ messages:
|
|
506
|
+
const W = e.sendMessage({ messages: Mn([Q]), context: n });
|
|
507
507
|
await Nn(
|
|
508
508
|
W,
|
|
509
509
|
(d) => {
|
|
@@ -533,18 +533,18 @@ function dl({
|
|
|
533
533
|
y.current?.abort(), h(!1), g(!1);
|
|
534
534
|
}, []), T = de((v) => {
|
|
535
535
|
y.current?.abort(), A.current = !0, s(v ?? []), f(""), S(null), h(!1), g(!1);
|
|
536
|
-
}, []),
|
|
537
|
-
A.current = !0, s((B) => B.map((
|
|
538
|
-
...
|
|
539
|
-
parts:
|
|
540
|
-
(W) =>
|
|
536
|
+
}, []), z = de((v, R) => {
|
|
537
|
+
A.current = !0, s((B) => B.map((Q) => ({
|
|
538
|
+
...Q,
|
|
539
|
+
parts: Q.parts.map(
|
|
540
|
+
(W) => zr(W) && W.proposal.id === v ? { ...W, proposal: { ...W.proposal, resolved: R } } : W
|
|
541
541
|
)
|
|
542
542
|
})));
|
|
543
|
-
}, []), q = de((v,
|
|
544
|
-
|
|
545
|
-
}, [t,
|
|
546
|
-
|
|
547
|
-
}, [r,
|
|
543
|
+
}, []), q = de((v, R) => {
|
|
544
|
+
z(v, "confirmed"), t?.(v, R);
|
|
545
|
+
}, [t, z]), P = de((v) => {
|
|
546
|
+
z(v, "cancelled"), r?.(v);
|
|
547
|
+
}, [r, z]);
|
|
548
548
|
return Ir(() => ({
|
|
549
549
|
messages: a,
|
|
550
550
|
input: u,
|
|
@@ -558,7 +558,7 @@ function dl({
|
|
|
558
558
|
error: C,
|
|
559
559
|
reset: T,
|
|
560
560
|
confirmProposal: q,
|
|
561
|
-
cancelProposal:
|
|
561
|
+
cancelProposal: P
|
|
562
562
|
}), [
|
|
563
563
|
a,
|
|
564
564
|
u,
|
|
@@ -571,7 +571,7 @@ function dl({
|
|
|
571
571
|
C,
|
|
572
572
|
T,
|
|
573
573
|
q,
|
|
574
|
-
|
|
574
|
+
P
|
|
575
575
|
]);
|
|
576
576
|
}
|
|
577
577
|
const Lr = {
|
|
@@ -602,13 +602,13 @@ const Lr = {
|
|
|
602
602
|
historyEmpty: "No previous chats",
|
|
603
603
|
historyDeleteChat: "Delete chat"
|
|
604
604
|
}, Dr = Tr(Lr);
|
|
605
|
-
function
|
|
605
|
+
function Te() {
|
|
606
606
|
return sn(Dr);
|
|
607
607
|
}
|
|
608
|
-
const ml = "
|
|
608
|
+
const ml = "_root_1etc2_1", gl = {
|
|
609
609
|
root: ml
|
|
610
610
|
};
|
|
611
|
-
function
|
|
611
|
+
function td({ children: e, theme: n, labels: t, defaultTitle: r, className: i, style: o }) {
|
|
612
612
|
const l = {
|
|
613
613
|
...Lr,
|
|
614
614
|
...r ? { sidebarTitle: r } : {},
|
|
@@ -662,10 +662,10 @@ function kl() {
|
|
|
662
662
|
);
|
|
663
663
|
return e;
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function nd() {
|
|
666
666
|
return sn(cn);
|
|
667
667
|
}
|
|
668
|
-
function
|
|
668
|
+
function rd({
|
|
669
669
|
adapter: e,
|
|
670
670
|
context: n,
|
|
671
671
|
onProposalConfirm: t,
|
|
@@ -675,7 +675,7 @@ function Kh({
|
|
|
675
675
|
onMessagesChange: l,
|
|
676
676
|
children: a
|
|
677
677
|
}) {
|
|
678
|
-
const [s, u] =
|
|
678
|
+
const [s, u] = Me(n), f = de((p) => {
|
|
679
679
|
u(typeof p == "function" ? (g) => p(g) : p);
|
|
680
680
|
}, []), c = dl({
|
|
681
681
|
adapter: e,
|
|
@@ -691,7 +691,7 @@ function Kh({
|
|
|
691
691
|
);
|
|
692
692
|
return /* @__PURE__ */ b(cn.Provider, { value: h, children: a });
|
|
693
693
|
}
|
|
694
|
-
const
|
|
694
|
+
const id = {
|
|
695
695
|
sidebarTitle: "AI Asistent",
|
|
696
696
|
clearConversation: "Vymazat konverzaci",
|
|
697
697
|
resetConversation: "Resetovat konverzaci",
|
|
@@ -885,9 +885,9 @@ function Il(e, n) {
|
|
|
885
885
|
(t.padRight ? " " : "") + "," + (t.padLeft === !1 ? "" : " ")
|
|
886
886
|
).trim();
|
|
887
887
|
}
|
|
888
|
-
const Tl = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,
|
|
888
|
+
const Tl = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, zl = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Pl = {};
|
|
889
889
|
function Fn(e, n) {
|
|
890
|
-
return (
|
|
890
|
+
return (Pl.jsx ? zl : Tl).test(e);
|
|
891
891
|
}
|
|
892
892
|
const Ll = /[ \t\n\f\r]/g;
|
|
893
893
|
function Dl(e) {
|
|
@@ -914,7 +914,7 @@ class ct {
|
|
|
914
914
|
ct.prototype.normal = {};
|
|
915
915
|
ct.prototype.property = {};
|
|
916
916
|
ct.prototype.space = void 0;
|
|
917
|
-
function
|
|
917
|
+
function Rr(e, n) {
|
|
918
918
|
const t = {}, r = {};
|
|
919
919
|
for (const i of e)
|
|
920
920
|
Object.assign(t, i.property), Object.assign(r, i.normal);
|
|
@@ -949,13 +949,13 @@ ce.prototype.property = "";
|
|
|
949
949
|
ce.prototype.spaceSeparated = !1;
|
|
950
950
|
ce.prototype.space = void 0;
|
|
951
951
|
let Nl = 0;
|
|
952
|
-
const
|
|
952
|
+
const M = Be(), Z = Be(), Jt = Be(), E = Be(), G = Be(), Fe = Be(), pe = Be();
|
|
953
953
|
function Be() {
|
|
954
954
|
return 2 ** ++Nl;
|
|
955
955
|
}
|
|
956
956
|
const Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
957
957
|
__proto__: null,
|
|
958
|
-
boolean:
|
|
958
|
+
boolean: M,
|
|
959
959
|
booleanish: Z,
|
|
960
960
|
commaOrSpaceSeparated: pe,
|
|
961
961
|
commaSeparated: Fe,
|
|
@@ -993,7 +993,7 @@ fn.prototype.defined = !0;
|
|
|
993
993
|
function Bn(e, n, t) {
|
|
994
994
|
t && (e[n] = t);
|
|
995
995
|
}
|
|
996
|
-
function
|
|
996
|
+
function Ye(e) {
|
|
997
997
|
const n = {}, t = {};
|
|
998
998
|
for (const [r, i] of Object.entries(e.properties)) {
|
|
999
999
|
const o = new fn(
|
|
@@ -1006,7 +1006,7 @@ function Qe(e) {
|
|
|
1006
1006
|
}
|
|
1007
1007
|
return new ct(n, t, e.space);
|
|
1008
1008
|
}
|
|
1009
|
-
const
|
|
1009
|
+
const Mr = Ye({
|
|
1010
1010
|
properties: {
|
|
1011
1011
|
ariaActiveDescendant: null,
|
|
1012
1012
|
ariaAtomic: Z,
|
|
@@ -1068,7 +1068,7 @@ function Fr(e, n) {
|
|
|
1068
1068
|
function Or(e, n) {
|
|
1069
1069
|
return Fr(e, n.toLowerCase());
|
|
1070
1070
|
}
|
|
1071
|
-
const
|
|
1071
|
+
const Rl = Ye({
|
|
1072
1072
|
attributes: {
|
|
1073
1073
|
acceptcharset: "accept-charset",
|
|
1074
1074
|
classname: "class",
|
|
@@ -1084,21 +1084,21 @@ const Ml = Qe({
|
|
|
1084
1084
|
accessKey: G,
|
|
1085
1085
|
action: null,
|
|
1086
1086
|
allow: null,
|
|
1087
|
-
allowFullScreen:
|
|
1088
|
-
allowPaymentRequest:
|
|
1089
|
-
allowUserMedia:
|
|
1090
|
-
alpha:
|
|
1087
|
+
allowFullScreen: M,
|
|
1088
|
+
allowPaymentRequest: M,
|
|
1089
|
+
allowUserMedia: M,
|
|
1090
|
+
alpha: M,
|
|
1091
1091
|
alt: null,
|
|
1092
1092
|
as: null,
|
|
1093
|
-
async:
|
|
1093
|
+
async: M,
|
|
1094
1094
|
autoCapitalize: null,
|
|
1095
1095
|
autoComplete: G,
|
|
1096
|
-
autoFocus:
|
|
1097
|
-
autoPlay:
|
|
1096
|
+
autoFocus: M,
|
|
1097
|
+
autoPlay: M,
|
|
1098
1098
|
blocking: G,
|
|
1099
1099
|
capture: null,
|
|
1100
1100
|
charSet: null,
|
|
1101
|
-
checked:
|
|
1101
|
+
checked: M,
|
|
1102
1102
|
cite: null,
|
|
1103
1103
|
className: G,
|
|
1104
1104
|
closedBy: null,
|
|
@@ -1109,18 +1109,18 @@ const Ml = Qe({
|
|
|
1109
1109
|
commandFor: null,
|
|
1110
1110
|
content: null,
|
|
1111
1111
|
contentEditable: Z,
|
|
1112
|
-
controls:
|
|
1112
|
+
controls: M,
|
|
1113
1113
|
controlsList: G,
|
|
1114
1114
|
coords: E | Fe,
|
|
1115
1115
|
crossOrigin: null,
|
|
1116
1116
|
data: null,
|
|
1117
1117
|
dateTime: null,
|
|
1118
1118
|
decoding: null,
|
|
1119
|
-
default:
|
|
1120
|
-
defer:
|
|
1119
|
+
default: M,
|
|
1120
|
+
defer: M,
|
|
1121
1121
|
dir: null,
|
|
1122
1122
|
dirName: null,
|
|
1123
|
-
disabled:
|
|
1123
|
+
disabled: M,
|
|
1124
1124
|
download: Jt,
|
|
1125
1125
|
draggable: Z,
|
|
1126
1126
|
encType: null,
|
|
@@ -1130,7 +1130,7 @@ const Ml = Qe({
|
|
|
1130
1130
|
formAction: null,
|
|
1131
1131
|
formEncType: null,
|
|
1132
1132
|
formMethod: null,
|
|
1133
|
-
formNoValidate:
|
|
1133
|
+
formNoValidate: M,
|
|
1134
1134
|
formTarget: null,
|
|
1135
1135
|
headers: G,
|
|
1136
1136
|
height: E,
|
|
@@ -1143,15 +1143,15 @@ const Ml = Qe({
|
|
|
1143
1143
|
id: null,
|
|
1144
1144
|
imageSizes: null,
|
|
1145
1145
|
imageSrcSet: null,
|
|
1146
|
-
inert:
|
|
1146
|
+
inert: M,
|
|
1147
1147
|
inputMode: null,
|
|
1148
1148
|
integrity: null,
|
|
1149
1149
|
is: null,
|
|
1150
|
-
isMap:
|
|
1150
|
+
isMap: M,
|
|
1151
1151
|
itemId: null,
|
|
1152
1152
|
itemProp: G,
|
|
1153
1153
|
itemRef: G,
|
|
1154
|
-
itemScope:
|
|
1154
|
+
itemScope: M,
|
|
1155
1155
|
itemType: G,
|
|
1156
1156
|
kind: null,
|
|
1157
1157
|
label: null,
|
|
@@ -1159,7 +1159,7 @@ const Ml = Qe({
|
|
|
1159
1159
|
language: null,
|
|
1160
1160
|
list: null,
|
|
1161
1161
|
loading: null,
|
|
1162
|
-
loop:
|
|
1162
|
+
loop: M,
|
|
1163
1163
|
low: E,
|
|
1164
1164
|
manifest: null,
|
|
1165
1165
|
max: null,
|
|
@@ -1168,12 +1168,12 @@ const Ml = Qe({
|
|
|
1168
1168
|
method: null,
|
|
1169
1169
|
min: null,
|
|
1170
1170
|
minLength: E,
|
|
1171
|
-
multiple:
|
|
1172
|
-
muted:
|
|
1171
|
+
multiple: M,
|
|
1172
|
+
muted: M,
|
|
1173
1173
|
name: null,
|
|
1174
1174
|
nonce: null,
|
|
1175
|
-
noModule:
|
|
1176
|
-
noValidate:
|
|
1175
|
+
noModule: M,
|
|
1176
|
+
noValidate: M,
|
|
1177
1177
|
onAbort: null,
|
|
1178
1178
|
onAfterPrint: null,
|
|
1179
1179
|
onAuxClick: null,
|
|
@@ -1262,34 +1262,34 @@ const Ml = Qe({
|
|
|
1262
1262
|
onVolumeChange: null,
|
|
1263
1263
|
onWaiting: null,
|
|
1264
1264
|
onWheel: null,
|
|
1265
|
-
open:
|
|
1265
|
+
open: M,
|
|
1266
1266
|
optimum: E,
|
|
1267
1267
|
pattern: null,
|
|
1268
1268
|
ping: G,
|
|
1269
1269
|
placeholder: null,
|
|
1270
|
-
playsInline:
|
|
1270
|
+
playsInline: M,
|
|
1271
1271
|
popover: null,
|
|
1272
1272
|
popoverTarget: null,
|
|
1273
1273
|
popoverTargetAction: null,
|
|
1274
1274
|
poster: null,
|
|
1275
1275
|
preload: null,
|
|
1276
|
-
readOnly:
|
|
1276
|
+
readOnly: M,
|
|
1277
1277
|
referrerPolicy: null,
|
|
1278
1278
|
rel: G,
|
|
1279
|
-
required:
|
|
1280
|
-
reversed:
|
|
1279
|
+
required: M,
|
|
1280
|
+
reversed: M,
|
|
1281
1281
|
rows: E,
|
|
1282
1282
|
rowSpan: E,
|
|
1283
1283
|
sandbox: G,
|
|
1284
1284
|
scope: null,
|
|
1285
|
-
scoped:
|
|
1286
|
-
seamless:
|
|
1287
|
-
selected:
|
|
1288
|
-
shadowRootClonable:
|
|
1289
|
-
shadowRootCustomElementRegistry:
|
|
1290
|
-
shadowRootDelegatesFocus:
|
|
1285
|
+
scoped: M,
|
|
1286
|
+
seamless: M,
|
|
1287
|
+
selected: M,
|
|
1288
|
+
shadowRootClonable: M,
|
|
1289
|
+
shadowRootCustomElementRegistry: M,
|
|
1290
|
+
shadowRootDelegatesFocus: M,
|
|
1291
1291
|
shadowRootMode: null,
|
|
1292
|
-
shadowRootSerializable:
|
|
1292
|
+
shadowRootSerializable: M,
|
|
1293
1293
|
shape: null,
|
|
1294
1294
|
size: E,
|
|
1295
1295
|
sizes: null,
|
|
@@ -1308,7 +1308,7 @@ const Ml = Qe({
|
|
|
1308
1308
|
title: null,
|
|
1309
1309
|
translate: null,
|
|
1310
1310
|
type: null,
|
|
1311
|
-
typeMustMatch:
|
|
1311
|
+
typeMustMatch: M,
|
|
1312
1312
|
useMap: null,
|
|
1313
1313
|
value: Z,
|
|
1314
1314
|
width: E,
|
|
@@ -1354,9 +1354,9 @@ const Ml = Qe({
|
|
|
1354
1354
|
// `<object>`
|
|
1355
1355
|
color: null,
|
|
1356
1356
|
// `<font>` and `<hr>`. Use CSS instead
|
|
1357
|
-
compact:
|
|
1357
|
+
compact: M,
|
|
1358
1358
|
// Lists. Use CSS to reduce space between items instead
|
|
1359
|
-
declare:
|
|
1359
|
+
declare: M,
|
|
1360
1360
|
// `<object>`
|
|
1361
1361
|
event: null,
|
|
1362
1362
|
// `<script>`
|
|
@@ -1380,13 +1380,13 @@ const Ml = Qe({
|
|
|
1380
1380
|
// `<body>`
|
|
1381
1381
|
marginWidth: E,
|
|
1382
1382
|
// `<body>`
|
|
1383
|
-
noResize:
|
|
1383
|
+
noResize: M,
|
|
1384
1384
|
// `<frame>`
|
|
1385
|
-
noHref:
|
|
1385
|
+
noHref: M,
|
|
1386
1386
|
// `<area>`. Use no href instead of an explicit `nohref`
|
|
1387
|
-
noShade:
|
|
1387
|
+
noShade: M,
|
|
1388
1388
|
// `<hr>`. Use background-color and height instead of borders
|
|
1389
|
-
noWrap:
|
|
1389
|
+
noWrap: M,
|
|
1390
1390
|
// `<td>` and `<th>`
|
|
1391
1391
|
object: null,
|
|
1392
1392
|
// `<applet>`
|
|
@@ -1426,9 +1426,9 @@ const Ml = Qe({
|
|
|
1426
1426
|
allowTransparency: null,
|
|
1427
1427
|
autoCorrect: null,
|
|
1428
1428
|
autoSave: null,
|
|
1429
|
-
credentialless:
|
|
1430
|
-
disablePictureInPicture:
|
|
1431
|
-
disableRemotePlayback:
|
|
1429
|
+
credentialless: M,
|
|
1430
|
+
disablePictureInPicture: M,
|
|
1431
|
+
disableRemotePlayback: M,
|
|
1432
1432
|
exportParts: Fe,
|
|
1433
1433
|
part: G,
|
|
1434
1434
|
prefix: null,
|
|
@@ -1439,7 +1439,7 @@ const Ml = Qe({
|
|
|
1439
1439
|
},
|
|
1440
1440
|
space: "html",
|
|
1441
1441
|
transform: Or
|
|
1442
|
-
}),
|
|
1442
|
+
}), Ml = Ye({
|
|
1443
1443
|
attributes: {
|
|
1444
1444
|
accentHeight: "accent-height",
|
|
1445
1445
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -1666,7 +1666,7 @@ const Ml = Qe({
|
|
|
1666
1666
|
dur: null,
|
|
1667
1667
|
divisor: E,
|
|
1668
1668
|
dominantBaseline: null,
|
|
1669
|
-
download:
|
|
1669
|
+
download: M,
|
|
1670
1670
|
dx: null,
|
|
1671
1671
|
dy: null,
|
|
1672
1672
|
edgeMode: null,
|
|
@@ -2000,7 +2000,7 @@ const Ml = Qe({
|
|
|
2000
2000
|
},
|
|
2001
2001
|
space: "svg",
|
|
2002
2002
|
transform: Fr
|
|
2003
|
-
}), Br =
|
|
2003
|
+
}), Br = Ye({
|
|
2004
2004
|
properties: {
|
|
2005
2005
|
xLinkActuate: null,
|
|
2006
2006
|
xLinkArcRole: null,
|
|
@@ -2014,12 +2014,12 @@ const Ml = Qe({
|
|
|
2014
2014
|
transform(e, n) {
|
|
2015
2015
|
return "xlink:" + n.slice(5).toLowerCase();
|
|
2016
2016
|
}
|
|
2017
|
-
}), jr =
|
|
2017
|
+
}), jr = Ye({
|
|
2018
2018
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
2019
2019
|
properties: { xmlnsXLink: null, xmlns: null },
|
|
2020
2020
|
space: "xmlns",
|
|
2021
2021
|
transform: Or
|
|
2022
|
-
}), $r =
|
|
2022
|
+
}), $r = Ye({
|
|
2023
2023
|
properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
|
|
2024
2024
|
space: "xml",
|
|
2025
2025
|
transform(e, n) {
|
|
@@ -2070,7 +2070,7 @@ function $l(e) {
|
|
|
2070
2070
|
function Hl(e) {
|
|
2071
2071
|
return e.charAt(1).toUpperCase();
|
|
2072
2072
|
}
|
|
2073
|
-
const Vl =
|
|
2073
|
+
const Vl = Rr([Mr, Rl, Br, jr, $r], "html"), pn = Rr([Mr, Ml, Br, jr, $r], "svg");
|
|
2074
2074
|
function Ul(e) {
|
|
2075
2075
|
return e.join(" ").trim();
|
|
2076
2076
|
}
|
|
@@ -2089,76 +2089,76 @@ function ql() {
|
|
|
2089
2089
|
if (!S) return [];
|
|
2090
2090
|
y = y || {};
|
|
2091
2091
|
var A = 1, _ = 1;
|
|
2092
|
-
function L(
|
|
2093
|
-
var v =
|
|
2092
|
+
function L(P) {
|
|
2093
|
+
var v = P.match(n);
|
|
2094
2094
|
v && (A += v.length);
|
|
2095
|
-
var
|
|
2096
|
-
_ = ~
|
|
2095
|
+
var R = P.lastIndexOf(s);
|
|
2096
|
+
_ = ~R ? P.length - R : _ + P.length;
|
|
2097
2097
|
}
|
|
2098
2098
|
function N() {
|
|
2099
|
-
var
|
|
2099
|
+
var P = { line: A, column: _ };
|
|
2100
2100
|
return function(v) {
|
|
2101
|
-
return v.position = new x(
|
|
2101
|
+
return v.position = new x(P), H(), v;
|
|
2102
2102
|
};
|
|
2103
2103
|
}
|
|
2104
|
-
function x(
|
|
2105
|
-
this.start =
|
|
2104
|
+
function x(P) {
|
|
2105
|
+
this.start = P, this.end = { line: A, column: _ }, this.source = y.source;
|
|
2106
2106
|
}
|
|
2107
2107
|
x.prototype.content = S;
|
|
2108
|
-
function O(
|
|
2108
|
+
function O(P) {
|
|
2109
2109
|
var v = new Error(
|
|
2110
|
-
y.source + ":" + A + ":" + _ + ": " +
|
|
2110
|
+
y.source + ":" + A + ":" + _ + ": " + P
|
|
2111
2111
|
);
|
|
2112
|
-
if (v.reason =
|
|
2112
|
+
if (v.reason = P, v.filename = y.source, v.line = A, v.column = _, v.source = S, !y.silent) throw v;
|
|
2113
2113
|
}
|
|
2114
|
-
function $(
|
|
2115
|
-
var v =
|
|
2114
|
+
function $(P) {
|
|
2115
|
+
var v = P.exec(S);
|
|
2116
2116
|
if (v) {
|
|
2117
|
-
var
|
|
2118
|
-
return L(
|
|
2117
|
+
var R = v[0];
|
|
2118
|
+
return L(R), S = S.slice(R.length), v;
|
|
2119
2119
|
}
|
|
2120
2120
|
}
|
|
2121
2121
|
function H() {
|
|
2122
2122
|
$(t);
|
|
2123
2123
|
}
|
|
2124
|
-
function k(
|
|
2124
|
+
function k(P) {
|
|
2125
2125
|
var v;
|
|
2126
|
-
for (
|
|
2127
|
-
v !== !1 &&
|
|
2128
|
-
return
|
|
2126
|
+
for (P = P || []; v = T(); )
|
|
2127
|
+
v !== !1 && P.push(v);
|
|
2128
|
+
return P;
|
|
2129
2129
|
}
|
|
2130
2130
|
function T() {
|
|
2131
|
-
var
|
|
2131
|
+
var P = N();
|
|
2132
2132
|
if (!(u != S.charAt(0) || f != S.charAt(1))) {
|
|
2133
2133
|
for (var v = 2; c != S.charAt(v) && (f != S.charAt(v) || u != S.charAt(v + 1)); )
|
|
2134
2134
|
++v;
|
|
2135
2135
|
if (v += 2, c === S.charAt(v - 1))
|
|
2136
2136
|
return O("End of comment missing");
|
|
2137
|
-
var
|
|
2138
|
-
return _ += 2, L(
|
|
2137
|
+
var R = S.slice(2, v - 2);
|
|
2138
|
+
return _ += 2, L(R), S = S.slice(v), _ += 2, P({
|
|
2139
2139
|
type: h,
|
|
2140
|
-
comment:
|
|
2140
|
+
comment: R
|
|
2141
2141
|
});
|
|
2142
2142
|
}
|
|
2143
2143
|
}
|
|
2144
|
-
function
|
|
2145
|
-
var
|
|
2144
|
+
function z() {
|
|
2145
|
+
var P = N(), v = $(r);
|
|
2146
2146
|
if (v) {
|
|
2147
2147
|
if (T(), !$(i)) return O("property missing ':'");
|
|
2148
|
-
var
|
|
2148
|
+
var R = $(o), B = P({
|
|
2149
2149
|
type: p,
|
|
2150
2150
|
property: C(v[0].replace(e, c)),
|
|
2151
|
-
value:
|
|
2151
|
+
value: R ? C(R[0].replace(e, c)) : c
|
|
2152
2152
|
});
|
|
2153
2153
|
return $(l), B;
|
|
2154
2154
|
}
|
|
2155
2155
|
}
|
|
2156
2156
|
function q() {
|
|
2157
|
-
var
|
|
2158
|
-
k(
|
|
2159
|
-
for (var v; v =
|
|
2160
|
-
v !== !1 && (
|
|
2161
|
-
return
|
|
2157
|
+
var P = [];
|
|
2158
|
+
k(P);
|
|
2159
|
+
for (var v; v = z(); )
|
|
2160
|
+
v !== !1 && (P.push(v), k(P));
|
|
2161
|
+
return P;
|
|
2162
2162
|
}
|
|
2163
2163
|
return H(), q();
|
|
2164
2164
|
}
|
|
@@ -2191,7 +2191,7 @@ function Wl() {
|
|
|
2191
2191
|
return Ve;
|
|
2192
2192
|
}
|
|
2193
2193
|
var Ke = {}, Vn;
|
|
2194
|
-
function
|
|
2194
|
+
function Yl() {
|
|
2195
2195
|
if (Vn) return Ke;
|
|
2196
2196
|
Vn = 1, Object.defineProperty(Ke, "__esModule", { value: !0 }), Ke.camelCase = void 0;
|
|
2197
2197
|
var e = /^--[a-zA-Z0-9_-]+$/, n = /-([a-z])/g, t = /^[^-]+$/, r = /^-(webkit|moz|ms|o|khtml)-/, i = /^-(ms)-/, o = function(u) {
|
|
@@ -2206,12 +2206,12 @@ function Ql() {
|
|
|
2206
2206
|
return Ke.camelCase = s, Ke;
|
|
2207
2207
|
}
|
|
2208
2208
|
var Ze, Un;
|
|
2209
|
-
function
|
|
2209
|
+
function Ql() {
|
|
2210
2210
|
if (Un) return Ze;
|
|
2211
2211
|
Un = 1;
|
|
2212
2212
|
var e = Ze && Ze.__importDefault || function(i) {
|
|
2213
2213
|
return i && i.__esModule ? i : { default: i };
|
|
2214
|
-
}, n = e(Wl()), t =
|
|
2214
|
+
}, n = e(Wl()), t = Yl();
|
|
2215
2215
|
function r(i, o) {
|
|
2216
2216
|
var l = {};
|
|
2217
2217
|
return !i || typeof i != "string" || (0, n.default)(i, function(a, s) {
|
|
@@ -2220,7 +2220,7 @@ function Yl() {
|
|
|
2220
2220
|
}
|
|
2221
2221
|
return r.default = r, Ze = r, Ze;
|
|
2222
2222
|
}
|
|
2223
|
-
var Xl =
|
|
2223
|
+
var Xl = Ql();
|
|
2224
2224
|
const Gl = /* @__PURE__ */ Hr(Xl), Vr = Ur("end"), hn = Ur("start");
|
|
2225
2225
|
function Ur(e) {
|
|
2226
2226
|
return n;
|
|
@@ -2397,11 +2397,11 @@ function ro(e, n, t) {
|
|
|
2397
2397
|
const r = e.schema;
|
|
2398
2398
|
let i = r;
|
|
2399
2399
|
n.tagName.toLowerCase() === "svg" && r.space === "html" && (i = pn, e.schema = i), e.ancestors.push(n);
|
|
2400
|
-
const o =
|
|
2400
|
+
const o = Qr(e, n.tagName, !1), l = fo(e, n);
|
|
2401
2401
|
let a = gn(e, n);
|
|
2402
2402
|
return eo.has(n.tagName) && (a = a.filter(function(s) {
|
|
2403
2403
|
return typeof s == "string" ? !Dl(s) : !0;
|
|
2404
|
-
})),
|
|
2404
|
+
})), Yr(e, l, o, n), mn(l, a), e.ancestors.pop(), e.schema = r, e.create(n, o, l, t);
|
|
2405
2405
|
}
|
|
2406
2406
|
function io(e, n) {
|
|
2407
2407
|
if (n.data && n.data.estree && e.evaluater) {
|
|
@@ -2423,8 +2423,8 @@ function oo(e, n, t) {
|
|
|
2423
2423
|
const r = e.schema;
|
|
2424
2424
|
let i = r;
|
|
2425
2425
|
n.name === "svg" && r.space === "html" && (i = pn, e.schema = i), e.ancestors.push(n);
|
|
2426
|
-
const o = n.name === null ? e.Fragment :
|
|
2427
|
-
return
|
|
2426
|
+
const o = n.name === null ? e.Fragment : Qr(e, n.name, !0), l = po(e, n), a = gn(e, n);
|
|
2427
|
+
return Yr(e, l, o, n), mn(l, a), e.ancestors.pop(), e.schema = r, e.create(n, o, l, t);
|
|
2428
2428
|
}
|
|
2429
2429
|
function ao(e, n, t) {
|
|
2430
2430
|
const r = {};
|
|
@@ -2433,7 +2433,7 @@ function ao(e, n, t) {
|
|
|
2433
2433
|
function so(e, n) {
|
|
2434
2434
|
return n.value;
|
|
2435
2435
|
}
|
|
2436
|
-
function
|
|
2436
|
+
function Yr(e, n, t, r) {
|
|
2437
2437
|
typeof t != "string" && t !== e.Fragment && e.passNode && (n.node = r);
|
|
2438
2438
|
}
|
|
2439
2439
|
function mn(e, n) {
|
|
@@ -2569,7 +2569,7 @@ function mo(e, n) {
|
|
|
2569
2569
|
throw i.file = e.filePath || void 0, i.url = qr + "#cannot-parse-style-attribute", i;
|
|
2570
2570
|
}
|
|
2571
2571
|
}
|
|
2572
|
-
function
|
|
2572
|
+
function Qr(e, n, t) {
|
|
2573
2573
|
let r;
|
|
2574
2574
|
if (!t)
|
|
2575
2575
|
r = { type: "Literal", value: n };
|
|
@@ -2626,7 +2626,7 @@ function yo(e) {
|
|
|
2626
2626
|
function ko(e) {
|
|
2627
2627
|
return "-" + e.toLowerCase();
|
|
2628
2628
|
}
|
|
2629
|
-
const
|
|
2629
|
+
const Rt = {
|
|
2630
2630
|
action: ["form"],
|
|
2631
2631
|
cite: ["blockquote", "del", "ins", "q"],
|
|
2632
2632
|
data: ["object"],
|
|
@@ -2660,11 +2660,11 @@ function Xr(e, n, t) {
|
|
|
2660
2660
|
if (n && "alt" in e && e.alt)
|
|
2661
2661
|
return e.alt;
|
|
2662
2662
|
if ("children" in e)
|
|
2663
|
-
return
|
|
2663
|
+
return Yn(e.children, n, t);
|
|
2664
2664
|
}
|
|
2665
|
-
return Array.isArray(e) ?
|
|
2665
|
+
return Array.isArray(e) ? Yn(e, n, t) : "";
|
|
2666
2666
|
}
|
|
2667
|
-
function
|
|
2667
|
+
function Yn(e, n, t) {
|
|
2668
2668
|
const r = [];
|
|
2669
2669
|
let i = -1;
|
|
2670
2670
|
for (; ++i < e.length; )
|
|
@@ -2674,11 +2674,11 @@ function Qn(e, n, t) {
|
|
|
2674
2674
|
function bo(e) {
|
|
2675
2675
|
return !!(e && typeof e == "object");
|
|
2676
2676
|
}
|
|
2677
|
-
const
|
|
2677
|
+
const Qn = document.createElement("i");
|
|
2678
2678
|
function kn(e) {
|
|
2679
2679
|
const n = "&" + e + ";";
|
|
2680
|
-
|
|
2681
|
-
const t =
|
|
2680
|
+
Qn.innerHTML = n;
|
|
2681
|
+
const t = Qn.textContent;
|
|
2682
2682
|
return t.charCodeAt(t.length - 1) === 59 && e !== "semi" || t === n ? !1 : t;
|
|
2683
2683
|
}
|
|
2684
2684
|
function he(e, n, t, r) {
|
|
@@ -2741,7 +2741,7 @@ function Jr(e, n) {
|
|
|
2741
2741
|
function ke(e) {
|
|
2742
2742
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
2743
2743
|
}
|
|
2744
|
-
const ae =
|
|
2744
|
+
const ae = ze(/[A-Za-z]/), ie = ze(/[\dA-Za-z]/), So = ze(/[#-'*+\--9=?A-Z^-~]/);
|
|
2745
2745
|
function vt(e) {
|
|
2746
2746
|
return (
|
|
2747
2747
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -2749,7 +2749,7 @@ function vt(e) {
|
|
|
2749
2749
|
e !== null && (e < 32 || e === 127)
|
|
2750
2750
|
);
|
|
2751
2751
|
}
|
|
2752
|
-
const en =
|
|
2752
|
+
const en = ze(/\d/), vo = ze(/[\dA-Fa-f]/), _o = ze(/[!-/:-@[-`{-~]/);
|
|
2753
2753
|
function D(e) {
|
|
2754
2754
|
return e !== null && e < -2;
|
|
2755
2755
|
}
|
|
@@ -2759,14 +2759,14 @@ function J(e) {
|
|
|
2759
2759
|
function j(e) {
|
|
2760
2760
|
return e === -2 || e === -1 || e === 32;
|
|
2761
2761
|
}
|
|
2762
|
-
const It =
|
|
2763
|
-
function
|
|
2762
|
+
const It = ze(/\p{P}|\p{S}/u), Oe = ze(/\s/);
|
|
2763
|
+
function ze(e) {
|
|
2764
2764
|
return n;
|
|
2765
2765
|
function n(t) {
|
|
2766
2766
|
return t !== null && t > -1 && e.test(String.fromCharCode(t));
|
|
2767
2767
|
}
|
|
2768
2768
|
}
|
|
2769
|
-
function
|
|
2769
|
+
function Qe(e) {
|
|
2770
2770
|
const n = [];
|
|
2771
2771
|
let t = -1, r = 0, i = 0;
|
|
2772
2772
|
for (; ++t < e.length; ) {
|
|
@@ -2831,7 +2831,7 @@ function Ao(e) {
|
|
|
2831
2831
|
const Io = {
|
|
2832
2832
|
tokenize: To
|
|
2833
2833
|
}, Gn = {
|
|
2834
|
-
tokenize:
|
|
2834
|
+
tokenize: zo
|
|
2835
2835
|
};
|
|
2836
2836
|
function To(e) {
|
|
2837
2837
|
const n = this, t = [];
|
|
@@ -2945,7 +2945,7 @@ function To(e) {
|
|
|
2945
2945
|
i.write([null]), o = void 0, i = void 0, n.containerState._closeFlow = void 0;
|
|
2946
2946
|
}
|
|
2947
2947
|
}
|
|
2948
|
-
function
|
|
2948
|
+
function zo(e, n, t) {
|
|
2949
2949
|
return U(e, e.attempt(this.parser.constructs.document, n, t), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
2950
2950
|
}
|
|
2951
2951
|
function We(e) {
|
|
@@ -2965,10 +2965,10 @@ function Tt(e, n, t) {
|
|
|
2965
2965
|
}
|
|
2966
2966
|
const tn = {
|
|
2967
2967
|
name: "attention",
|
|
2968
|
-
resolveAll:
|
|
2968
|
+
resolveAll: Po,
|
|
2969
2969
|
tokenize: Lo
|
|
2970
2970
|
};
|
|
2971
|
-
function
|
|
2971
|
+
function Po(e, n) {
|
|
2972
2972
|
let t = -1, r, i, o, l, a, s, u, f;
|
|
2973
2973
|
for (; ++t < e.length; )
|
|
2974
2974
|
if (e[t][0] === "enter" && e[t][1].type === "attentionSequence" && e[t][1]._close) {
|
|
@@ -3081,9 +3081,9 @@ function No(e, n, t) {
|
|
|
3081
3081
|
}
|
|
3082
3082
|
const ft = {
|
|
3083
3083
|
partial: !0,
|
|
3084
|
-
tokenize:
|
|
3084
|
+
tokenize: Ro
|
|
3085
3085
|
};
|
|
3086
|
-
function
|
|
3086
|
+
function Ro(e, n, t) {
|
|
3087
3087
|
return r;
|
|
3088
3088
|
function r(o) {
|
|
3089
3089
|
return j(o) ? U(e, i, "linePrefix")(o) : i(o);
|
|
@@ -3098,9 +3098,9 @@ const Kr = {
|
|
|
3098
3098
|
},
|
|
3099
3099
|
exit: Oo,
|
|
3100
3100
|
name: "blockQuote",
|
|
3101
|
-
tokenize:
|
|
3101
|
+
tokenize: Mo
|
|
3102
3102
|
};
|
|
3103
|
-
function
|
|
3103
|
+
function Mo(e, n, t) {
|
|
3104
3104
|
const r = this;
|
|
3105
3105
|
return i;
|
|
3106
3106
|
function i(l) {
|
|
@@ -3233,15 +3233,15 @@ function $o(e, n, t) {
|
|
|
3233
3233
|
return x.enter("lineEnding"), x.consume(v), x.exit("lineEnding"), T;
|
|
3234
3234
|
}
|
|
3235
3235
|
function T(v) {
|
|
3236
|
-
return x.enter("codeFencedFence"), j(v) ? U(x,
|
|
3236
|
+
return x.enter("codeFencedFence"), j(v) ? U(x, z, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(v) : z(v);
|
|
3237
3237
|
}
|
|
3238
|
-
function
|
|
3238
|
+
function z(v) {
|
|
3239
3239
|
return v === a ? (x.enter("codeFencedFenceSequence"), q(v)) : $(v);
|
|
3240
3240
|
}
|
|
3241
3241
|
function q(v) {
|
|
3242
|
-
return v === a ? (H++, x.consume(v), q) : H >= l ? (x.exit("codeFencedFenceSequence"), j(v) ? U(x,
|
|
3242
|
+
return v === a ? (H++, x.consume(v), q) : H >= l ? (x.exit("codeFencedFenceSequence"), j(v) ? U(x, P, "whitespace")(v) : P(v)) : $(v);
|
|
3243
3243
|
}
|
|
3244
|
-
function
|
|
3244
|
+
function P(v) {
|
|
3245
3245
|
return v === null || D(v) ? (x.exit("codeFencedFence"), O(v)) : $(v);
|
|
3246
3246
|
}
|
|
3247
3247
|
}
|
|
@@ -3256,7 +3256,7 @@ function Ho(e, n, t) {
|
|
|
3256
3256
|
return r.parser.lazy[r.now().line] ? t(l) : n(l);
|
|
3257
3257
|
}
|
|
3258
3258
|
}
|
|
3259
|
-
const
|
|
3259
|
+
const Mt = {
|
|
3260
3260
|
name: "codeIndented",
|
|
3261
3261
|
tokenize: Uo
|
|
3262
3262
|
}, Vo = {
|
|
@@ -3296,11 +3296,11 @@ function qo(e, n, t) {
|
|
|
3296
3296
|
}
|
|
3297
3297
|
const Wo = {
|
|
3298
3298
|
name: "codeText",
|
|
3299
|
-
previous:
|
|
3300
|
-
resolve:
|
|
3299
|
+
previous: Qo,
|
|
3300
|
+
resolve: Yo,
|
|
3301
3301
|
tokenize: Xo
|
|
3302
3302
|
};
|
|
3303
|
-
function
|
|
3303
|
+
function Yo(e) {
|
|
3304
3304
|
let n = e.length - 4, t = 3, r, i;
|
|
3305
3305
|
if ((e[t][1].type === "lineEnding" || e[t][1].type === "space") && (e[n][1].type === "lineEnding" || e[n][1].type === "space")) {
|
|
3306
3306
|
for (r = t; ++r < n; )
|
|
@@ -3313,7 +3313,7 @@ function Qo(e) {
|
|
|
3313
3313
|
i === void 0 ? r !== n && e[r][1].type !== "lineEnding" && (i = r) : (r === n || e[r][1].type === "lineEnding") && (e[i][1].type = "codeTextData", r !== i + 2 && (e[i][1].end = e[r - 1][1].end, e.splice(i + 2, r - i - 2), n -= r - i - 2, r = i + 2), i = void 0);
|
|
3314
3314
|
return e;
|
|
3315
3315
|
}
|
|
3316
|
-
function
|
|
3316
|
+
function Qo(e) {
|
|
3317
3317
|
return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
|
3318
3318
|
}
|
|
3319
3319
|
function Xo(e, n, t) {
|
|
@@ -3904,7 +3904,7 @@ function ya(e, n, t) {
|
|
|
3904
3904
|
}
|
|
3905
3905
|
function g(m) {
|
|
3906
3906
|
const ne = "CDATA[";
|
|
3907
|
-
return m === ne.charCodeAt(a++) ? (e.consume(m), a === ne.length ? r.interrupt ? n :
|
|
3907
|
+
return m === ne.charCodeAt(a++) ? (e.consume(m), a === ne.length ? r.interrupt ? n : z : g) : t(m);
|
|
3908
3908
|
}
|
|
3909
3909
|
function C(m) {
|
|
3910
3910
|
return ae(m) ? (e.consume(m), l = String.fromCharCode(m), S) : t(m);
|
|
@@ -3912,12 +3912,12 @@ function ya(e, n, t) {
|
|
|
3912
3912
|
function S(m) {
|
|
3913
3913
|
if (m === null || m === 47 || m === 62 || J(m)) {
|
|
3914
3914
|
const ne = m === 47, Pe = l.toLowerCase();
|
|
3915
|
-
return !ne && !o && er.includes(Pe) ? (i = 1, r.interrupt ? n(m) :
|
|
3915
|
+
return !ne && !o && er.includes(Pe) ? (i = 1, r.interrupt ? n(m) : z(m)) : pa.includes(l.toLowerCase()) ? (i = 6, ne ? (e.consume(m), y) : r.interrupt ? n(m) : z(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(m) : o ? A(m) : _(m));
|
|
3916
3916
|
}
|
|
3917
3917
|
return m === 45 || ie(m) ? (e.consume(m), l += String.fromCharCode(m), S) : t(m);
|
|
3918
3918
|
}
|
|
3919
3919
|
function y(m) {
|
|
3920
|
-
return m === 62 ? (e.consume(m), r.interrupt ? n :
|
|
3920
|
+
return m === 62 ? (e.consume(m), r.interrupt ? n : z) : t(m);
|
|
3921
3921
|
}
|
|
3922
3922
|
function A(m) {
|
|
3923
3923
|
return j(m) ? (e.consume(m), A) : k(m);
|
|
@@ -3947,38 +3947,38 @@ function ya(e, n, t) {
|
|
|
3947
3947
|
return m === 62 ? (e.consume(m), T) : t(m);
|
|
3948
3948
|
}
|
|
3949
3949
|
function T(m) {
|
|
3950
|
-
return m === null || D(m) ?
|
|
3950
|
+
return m === null || D(m) ? z(m) : j(m) ? (e.consume(m), T) : t(m);
|
|
3951
3951
|
}
|
|
3952
|
-
function
|
|
3953
|
-
return m === 45 && i === 2 ? (e.consume(m),
|
|
3952
|
+
function z(m) {
|
|
3953
|
+
return m === 45 && i === 2 ? (e.consume(m), R) : m === 60 && i === 1 ? (e.consume(m), B) : m === 62 && i === 4 ? (e.consume(m), se) : m === 63 && i === 3 ? (e.consume(m), d) : m === 93 && i === 5 ? (e.consume(m), W) : D(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(da, te, q)(m)) : m === null || D(m) ? (e.exit("htmlFlowData"), q(m)) : (e.consume(m), z);
|
|
3954
3954
|
}
|
|
3955
3955
|
function q(m) {
|
|
3956
|
-
return e.check(ma,
|
|
3956
|
+
return e.check(ma, P, te)(m);
|
|
3957
3957
|
}
|
|
3958
|
-
function
|
|
3958
|
+
function P(m) {
|
|
3959
3959
|
return e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), v;
|
|
3960
3960
|
}
|
|
3961
3961
|
function v(m) {
|
|
3962
|
-
return m === null || D(m) ? q(m) : (e.enter("htmlFlowData"),
|
|
3962
|
+
return m === null || D(m) ? q(m) : (e.enter("htmlFlowData"), z(m));
|
|
3963
3963
|
}
|
|
3964
|
-
function
|
|
3965
|
-
return m === 45 ? (e.consume(m), d) :
|
|
3964
|
+
function R(m) {
|
|
3965
|
+
return m === 45 ? (e.consume(m), d) : z(m);
|
|
3966
3966
|
}
|
|
3967
3967
|
function B(m) {
|
|
3968
|
-
return m === 47 ? (e.consume(m), l = "",
|
|
3968
|
+
return m === 47 ? (e.consume(m), l = "", Q) : z(m);
|
|
3969
3969
|
}
|
|
3970
|
-
function
|
|
3970
|
+
function Q(m) {
|
|
3971
3971
|
if (m === 62) {
|
|
3972
3972
|
const ne = l.toLowerCase();
|
|
3973
|
-
return er.includes(ne) ? (e.consume(m), se) :
|
|
3973
|
+
return er.includes(ne) ? (e.consume(m), se) : z(m);
|
|
3974
3974
|
}
|
|
3975
|
-
return ae(m) && l.length < 8 ? (e.consume(m), l += String.fromCharCode(m),
|
|
3975
|
+
return ae(m) && l.length < 8 ? (e.consume(m), l += String.fromCharCode(m), Q) : z(m);
|
|
3976
3976
|
}
|
|
3977
3977
|
function W(m) {
|
|
3978
|
-
return m === 93 ? (e.consume(m), d) :
|
|
3978
|
+
return m === 93 ? (e.consume(m), d) : z(m);
|
|
3979
3979
|
}
|
|
3980
3980
|
function d(m) {
|
|
3981
|
-
return m === 62 ? (e.consume(m), se) : m === 45 && i === 2 ? (e.consume(m), d) :
|
|
3981
|
+
return m === 62 ? (e.consume(m), se) : m === 45 && i === 2 ? (e.consume(m), d) : z(m);
|
|
3982
3982
|
}
|
|
3983
3983
|
function se(m) {
|
|
3984
3984
|
return m === null || D(m) ? (e.exit("htmlFlowData"), te(m)) : (e.consume(m), se);
|
|
@@ -4030,7 +4030,7 @@ function wa(e, n, t) {
|
|
|
4030
4030
|
return d === 45 ? (e.consume(d), p) : c(d);
|
|
4031
4031
|
}
|
|
4032
4032
|
function p(d) {
|
|
4033
|
-
return d === 62 ?
|
|
4033
|
+
return d === 62 ? R(d) : d === 45 ? h(d) : c(d);
|
|
4034
4034
|
}
|
|
4035
4035
|
function g(d) {
|
|
4036
4036
|
const se = "CDATA[";
|
|
@@ -4043,16 +4043,16 @@ function wa(e, n, t) {
|
|
|
4043
4043
|
return d === 93 ? (e.consume(d), y) : C(d);
|
|
4044
4044
|
}
|
|
4045
4045
|
function y(d) {
|
|
4046
|
-
return d === 62 ?
|
|
4046
|
+
return d === 62 ? R(d) : d === 93 ? (e.consume(d), y) : C(d);
|
|
4047
4047
|
}
|
|
4048
4048
|
function A(d) {
|
|
4049
|
-
return d === null || d === 62 ?
|
|
4049
|
+
return d === null || d === 62 ? R(d) : D(d) ? (l = A, B(d)) : (e.consume(d), A);
|
|
4050
4050
|
}
|
|
4051
4051
|
function _(d) {
|
|
4052
4052
|
return d === null ? t(d) : d === 63 ? (e.consume(d), L) : D(d) ? (l = _, B(d)) : (e.consume(d), _);
|
|
4053
4053
|
}
|
|
4054
4054
|
function L(d) {
|
|
4055
|
-
return d === 62 ?
|
|
4055
|
+
return d === 62 ? R(d) : _(d);
|
|
4056
4056
|
}
|
|
4057
4057
|
function N(d) {
|
|
4058
4058
|
return ae(d) ? (e.consume(d), x) : t(d);
|
|
@@ -4061,39 +4061,39 @@ function wa(e, n, t) {
|
|
|
4061
4061
|
return d === 45 || ie(d) ? (e.consume(d), x) : O(d);
|
|
4062
4062
|
}
|
|
4063
4063
|
function O(d) {
|
|
4064
|
-
return D(d) ? (l = O, B(d)) : j(d) ? (e.consume(d), O) :
|
|
4064
|
+
return D(d) ? (l = O, B(d)) : j(d) ? (e.consume(d), O) : R(d);
|
|
4065
4065
|
}
|
|
4066
4066
|
function $(d) {
|
|
4067
4067
|
return d === 45 || ie(d) ? (e.consume(d), $) : d === 47 || d === 62 || J(d) ? H(d) : t(d);
|
|
4068
4068
|
}
|
|
4069
4069
|
function H(d) {
|
|
4070
|
-
return d === 47 ? (e.consume(d),
|
|
4070
|
+
return d === 47 ? (e.consume(d), R) : d === 58 || d === 95 || ae(d) ? (e.consume(d), k) : D(d) ? (l = H, B(d)) : j(d) ? (e.consume(d), H) : R(d);
|
|
4071
4071
|
}
|
|
4072
4072
|
function k(d) {
|
|
4073
4073
|
return d === 45 || d === 46 || d === 58 || d === 95 || ie(d) ? (e.consume(d), k) : T(d);
|
|
4074
4074
|
}
|
|
4075
4075
|
function T(d) {
|
|
4076
|
-
return d === 61 ? (e.consume(d),
|
|
4076
|
+
return d === 61 ? (e.consume(d), z) : D(d) ? (l = T, B(d)) : j(d) ? (e.consume(d), T) : H(d);
|
|
4077
4077
|
}
|
|
4078
|
-
function
|
|
4079
|
-
return d === null || d === 60 || d === 61 || d === 62 || d === 96 ? t(d) : d === 34 || d === 39 ? (e.consume(d), i = d, q) : D(d) ? (l =
|
|
4078
|
+
function z(d) {
|
|
4079
|
+
return d === null || d === 60 || d === 61 || d === 62 || d === 96 ? t(d) : d === 34 || d === 39 ? (e.consume(d), i = d, q) : D(d) ? (l = z, B(d)) : j(d) ? (e.consume(d), z) : (e.consume(d), P);
|
|
4080
4080
|
}
|
|
4081
4081
|
function q(d) {
|
|
4082
4082
|
return d === i ? (e.consume(d), i = void 0, v) : d === null ? t(d) : D(d) ? (l = q, B(d)) : (e.consume(d), q);
|
|
4083
4083
|
}
|
|
4084
|
-
function
|
|
4085
|
-
return d === null || d === 34 || d === 39 || d === 60 || d === 61 || d === 96 ? t(d) : d === 47 || d === 62 || J(d) ? H(d) : (e.consume(d),
|
|
4084
|
+
function P(d) {
|
|
4085
|
+
return d === null || d === 34 || d === 39 || d === 60 || d === 61 || d === 96 ? t(d) : d === 47 || d === 62 || J(d) ? H(d) : (e.consume(d), P);
|
|
4086
4086
|
}
|
|
4087
4087
|
function v(d) {
|
|
4088
4088
|
return d === 47 || d === 62 || J(d) ? H(d) : t(d);
|
|
4089
4089
|
}
|
|
4090
|
-
function
|
|
4090
|
+
function R(d) {
|
|
4091
4091
|
return d === 62 ? (e.consume(d), e.exit("htmlTextData"), e.exit("htmlText"), n) : t(d);
|
|
4092
4092
|
}
|
|
4093
4093
|
function B(d) {
|
|
4094
|
-
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"),
|
|
4094
|
+
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), Q;
|
|
4095
4095
|
}
|
|
4096
|
-
function
|
|
4096
|
+
function Q(d) {
|
|
4097
4097
|
return j(d) ? U(e, W, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(d) : W(d);
|
|
4098
4098
|
}
|
|
4099
4099
|
function W(d) {
|
|
@@ -4110,7 +4110,7 @@ const xn = {
|
|
|
4110
4110
|
}, Sa = {
|
|
4111
4111
|
tokenize: Ta
|
|
4112
4112
|
}, va = {
|
|
4113
|
-
tokenize:
|
|
4113
|
+
tokenize: za
|
|
4114
4114
|
};
|
|
4115
4115
|
function _a(e) {
|
|
4116
4116
|
let n = -1;
|
|
@@ -4232,7 +4232,7 @@ function Ta(e, n, t) {
|
|
|
4232
4232
|
return t(a);
|
|
4233
4233
|
}
|
|
4234
4234
|
}
|
|
4235
|
-
function
|
|
4235
|
+
function za(e, n, t) {
|
|
4236
4236
|
return r;
|
|
4237
4237
|
function r(o) {
|
|
4238
4238
|
return e.enter("reference"), e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), i;
|
|
@@ -4241,7 +4241,7 @@ function Pa(e, n, t) {
|
|
|
4241
4241
|
return o === 93 ? (e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), e.exit("reference"), n) : t(o);
|
|
4242
4242
|
}
|
|
4243
4243
|
}
|
|
4244
|
-
const
|
|
4244
|
+
const Pa = {
|
|
4245
4245
|
name: "labelStartImage",
|
|
4246
4246
|
resolveAll: xn.resolveAll,
|
|
4247
4247
|
tokenize: La
|
|
@@ -4276,9 +4276,9 @@ function Na(e, n, t) {
|
|
|
4276
4276
|
}
|
|
4277
4277
|
const Ft = {
|
|
4278
4278
|
name: "lineEnding",
|
|
4279
|
-
tokenize:
|
|
4279
|
+
tokenize: Ra
|
|
4280
4280
|
};
|
|
4281
|
-
function
|
|
4281
|
+
function Ra(e, n) {
|
|
4282
4282
|
return t;
|
|
4283
4283
|
function t(r) {
|
|
4284
4284
|
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), U(e, n, "linePrefix");
|
|
@@ -4286,9 +4286,9 @@ function Ma(e, n) {
|
|
|
4286
4286
|
}
|
|
4287
4287
|
const Ct = {
|
|
4288
4288
|
name: "thematicBreak",
|
|
4289
|
-
tokenize:
|
|
4289
|
+
tokenize: Ma
|
|
4290
4290
|
};
|
|
4291
|
-
function
|
|
4291
|
+
function Ma(e, n, t) {
|
|
4292
4292
|
let r = 0, i;
|
|
4293
4293
|
return o;
|
|
4294
4294
|
function o(u) {
|
|
@@ -4440,9 +4440,9 @@ function qa(e, n, t) {
|
|
|
4440
4440
|
}
|
|
4441
4441
|
}
|
|
4442
4442
|
const Wa = {
|
|
4443
|
-
tokenize:
|
|
4443
|
+
tokenize: Ya
|
|
4444
4444
|
};
|
|
4445
|
-
function
|
|
4445
|
+
function Ya(e) {
|
|
4446
4446
|
const n = this, t = e.attempt(
|
|
4447
4447
|
// Try to parse a blank line.
|
|
4448
4448
|
ft,
|
|
@@ -4466,7 +4466,7 @@ function Qa(e) {
|
|
|
4466
4466
|
return e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), n.currentConstruct = void 0, t;
|
|
4467
4467
|
}
|
|
4468
4468
|
}
|
|
4469
|
-
const
|
|
4469
|
+
const Qa = {
|
|
4470
4470
|
resolveAll: oi()
|
|
4471
4471
|
}, Xa = li("string"), Ga = li("text");
|
|
4472
4472
|
function li(e) {
|
|
@@ -4574,9 +4574,9 @@ const Ka = {
|
|
|
4574
4574
|
}, Za = {
|
|
4575
4575
|
91: ra
|
|
4576
4576
|
}, es = {
|
|
4577
|
-
[-2]:
|
|
4578
|
-
[-1]:
|
|
4579
|
-
32:
|
|
4577
|
+
[-2]: Mt,
|
|
4578
|
+
[-1]: Mt,
|
|
4579
|
+
32: Mt
|
|
4580
4580
|
}, ts = {
|
|
4581
4581
|
35: ua,
|
|
4582
4582
|
42: Ct,
|
|
@@ -4593,7 +4593,7 @@ const Ka = {
|
|
|
4593
4593
|
[-5]: Ft,
|
|
4594
4594
|
[-4]: Ft,
|
|
4595
4595
|
[-3]: Ft,
|
|
4596
|
-
33:
|
|
4596
|
+
33: Pa,
|
|
4597
4597
|
38: ei,
|
|
4598
4598
|
42: tn,
|
|
4599
4599
|
60: [Do, ba],
|
|
@@ -4603,7 +4603,7 @@ const Ka = {
|
|
|
4603
4603
|
95: tn,
|
|
4604
4604
|
96: Wo
|
|
4605
4605
|
}, is = {
|
|
4606
|
-
null: [tn,
|
|
4606
|
+
null: [tn, Qa]
|
|
4607
4607
|
}, ls = {
|
|
4608
4608
|
null: [42, 95]
|
|
4609
4609
|
}, os = {
|
|
@@ -4656,8 +4656,8 @@ function ss(e, n, t) {
|
|
|
4656
4656
|
function c(T) {
|
|
4657
4657
|
return l = me(l, T), S(), l[l.length - 1] !== null ? [] : ($(n, 0), u.events = Tt(o, u.events, u), u.events);
|
|
4658
4658
|
}
|
|
4659
|
-
function h(T,
|
|
4660
|
-
return cs(p(T),
|
|
4659
|
+
function h(T, z) {
|
|
4660
|
+
return cs(p(T), z);
|
|
4661
4661
|
}
|
|
4662
4662
|
function p(T) {
|
|
4663
4663
|
return us(l, T);
|
|
@@ -4665,16 +4665,16 @@ function ss(e, n, t) {
|
|
|
4665
4665
|
function g() {
|
|
4666
4666
|
const {
|
|
4667
4667
|
_bufferIndex: T,
|
|
4668
|
-
_index:
|
|
4668
|
+
_index: z,
|
|
4669
4669
|
line: q,
|
|
4670
|
-
column:
|
|
4670
|
+
column: P,
|
|
4671
4671
|
offset: v
|
|
4672
4672
|
} = r;
|
|
4673
4673
|
return {
|
|
4674
4674
|
_bufferIndex: T,
|
|
4675
|
-
_index:
|
|
4675
|
+
_index: z,
|
|
4676
4676
|
line: q,
|
|
4677
|
-
column:
|
|
4677
|
+
column: P,
|
|
4678
4678
|
offset: v
|
|
4679
4679
|
};
|
|
4680
4680
|
}
|
|
@@ -4684,12 +4684,12 @@ function ss(e, n, t) {
|
|
|
4684
4684
|
function S() {
|
|
4685
4685
|
let T;
|
|
4686
4686
|
for (; r._index < l.length; ) {
|
|
4687
|
-
const
|
|
4688
|
-
if (typeof
|
|
4689
|
-
for (T = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === T && r._bufferIndex <
|
|
4690
|
-
y(
|
|
4687
|
+
const z = l[r._index];
|
|
4688
|
+
if (typeof z == "string")
|
|
4689
|
+
for (T = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === T && r._bufferIndex < z.length; )
|
|
4690
|
+
y(z.charCodeAt(r._bufferIndex));
|
|
4691
4691
|
else
|
|
4692
|
-
y(
|
|
4692
|
+
y(z);
|
|
4693
4693
|
}
|
|
4694
4694
|
}
|
|
4695
4695
|
function y(T) {
|
|
@@ -4701,82 +4701,82 @@ function ss(e, n, t) {
|
|
|
4701
4701
|
/** @type {string} */
|
|
4702
4702
|
l[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = T;
|
|
4703
4703
|
}
|
|
4704
|
-
function _(T,
|
|
4705
|
-
const q =
|
|
4704
|
+
function _(T, z) {
|
|
4705
|
+
const q = z || {};
|
|
4706
4706
|
return q.type = T, q.start = g(), u.events.push(["enter", q, u]), a.push(q), q;
|
|
4707
4707
|
}
|
|
4708
4708
|
function L(T) {
|
|
4709
|
-
const
|
|
4710
|
-
return
|
|
4709
|
+
const z = a.pop();
|
|
4710
|
+
return z.end = g(), u.events.push(["exit", z, u]), z;
|
|
4711
4711
|
}
|
|
4712
|
-
function N(T,
|
|
4713
|
-
$(T,
|
|
4712
|
+
function N(T, z) {
|
|
4713
|
+
$(T, z.from);
|
|
4714
4714
|
}
|
|
4715
|
-
function x(T,
|
|
4716
|
-
|
|
4715
|
+
function x(T, z) {
|
|
4716
|
+
z.restore();
|
|
4717
4717
|
}
|
|
4718
|
-
function O(T,
|
|
4718
|
+
function O(T, z) {
|
|
4719
4719
|
return q;
|
|
4720
|
-
function q(
|
|
4721
|
-
let B,
|
|
4722
|
-
return Array.isArray(
|
|
4720
|
+
function q(P, v, R) {
|
|
4721
|
+
let B, Q, W, d;
|
|
4722
|
+
return Array.isArray(P) ? (
|
|
4723
4723
|
/* c8 ignore next 1 */
|
|
4724
|
-
te(
|
|
4725
|
-
) : "tokenize" in
|
|
4724
|
+
te(P)
|
|
4725
|
+
) : "tokenize" in P ? (
|
|
4726
4726
|
// Looks like a construct.
|
|
4727
4727
|
te([
|
|
4728
4728
|
/** @type {Construct} */
|
|
4729
|
-
|
|
4729
|
+
P
|
|
4730
4730
|
])
|
|
4731
|
-
) : se(
|
|
4731
|
+
) : se(P);
|
|
4732
4732
|
function se(re) {
|
|
4733
4733
|
return Xe;
|
|
4734
|
-
function Xe(
|
|
4735
|
-
const je =
|
|
4734
|
+
function Xe(Ae) {
|
|
4735
|
+
const je = Ae !== null && re[Ae], $e = Ae !== null && re.null, ht = [
|
|
4736
4736
|
// To do: add more extension tests.
|
|
4737
4737
|
/* c8 ignore next 2 */
|
|
4738
4738
|
...Array.isArray(je) ? je : je ? [je] : [],
|
|
4739
4739
|
...Array.isArray($e) ? $e : $e ? [$e] : []
|
|
4740
4740
|
];
|
|
4741
|
-
return te(ht)(
|
|
4741
|
+
return te(ht)(Ae);
|
|
4742
4742
|
}
|
|
4743
4743
|
}
|
|
4744
4744
|
function te(re) {
|
|
4745
|
-
return B = re,
|
|
4745
|
+
return B = re, Q = 0, re.length === 0 ? R : m(re[Q]);
|
|
4746
4746
|
}
|
|
4747
4747
|
function m(re) {
|
|
4748
4748
|
return Xe;
|
|
4749
|
-
function Xe(
|
|
4749
|
+
function Xe(Ae) {
|
|
4750
4750
|
return d = H(), W = re, re.partial || (u.currentConstruct = re), re.name && u.parser.constructs.disable.null.includes(re.name) ? Pe() : re.tokenize.call(
|
|
4751
4751
|
// If we do have fields, create an object w/ `context` as its
|
|
4752
4752
|
// prototype.
|
|
4753
4753
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
4754
|
-
|
|
4754
|
+
z ? Object.assign(Object.create(u), z) : u,
|
|
4755
4755
|
s,
|
|
4756
4756
|
ne,
|
|
4757
4757
|
Pe
|
|
4758
|
-
)(
|
|
4758
|
+
)(Ae);
|
|
4759
4759
|
}
|
|
4760
4760
|
}
|
|
4761
4761
|
function ne(re) {
|
|
4762
4762
|
return T(W, d), v;
|
|
4763
4763
|
}
|
|
4764
4764
|
function Pe(re) {
|
|
4765
|
-
return d.restore(), ++
|
|
4765
|
+
return d.restore(), ++Q < B.length ? m(B[Q]) : R;
|
|
4766
4766
|
}
|
|
4767
4767
|
}
|
|
4768
4768
|
}
|
|
4769
|
-
function $(T,
|
|
4770
|
-
T.resolveAll && !o.includes(T) && o.push(T), T.resolve && he(u.events,
|
|
4769
|
+
function $(T, z) {
|
|
4770
|
+
T.resolveAll && !o.includes(T) && o.push(T), T.resolve && he(u.events, z, u.events.length - z, T.resolve(u.events.slice(z), u)), T.resolveTo && (u.events = T.resolveTo(u.events, u));
|
|
4771
4771
|
}
|
|
4772
4772
|
function H() {
|
|
4773
|
-
const T = g(),
|
|
4773
|
+
const T = g(), z = u.previous, q = u.currentConstruct, P = u.events.length, v = Array.from(a);
|
|
4774
4774
|
return {
|
|
4775
|
-
from:
|
|
4776
|
-
restore:
|
|
4775
|
+
from: P,
|
|
4776
|
+
restore: R
|
|
4777
4777
|
};
|
|
4778
|
-
function
|
|
4779
|
-
r = T, u.previous =
|
|
4778
|
+
function R() {
|
|
4779
|
+
r = T, u.previous = z, u.currentConstruct = q, u.events.length = P, a = v, k();
|
|
4780
4780
|
}
|
|
4781
4781
|
}
|
|
4782
4782
|
function k() {
|
|
@@ -4942,11 +4942,11 @@ function ks(e) {
|
|
|
4942
4942
|
definitionLabelString: l,
|
|
4943
4943
|
definitionTitleString: l,
|
|
4944
4944
|
emphasis: o(Ui),
|
|
4945
|
-
hardBreakEscape: o(
|
|
4946
|
-
hardBreakTrailing: o(
|
|
4947
|
-
htmlFlow: o(
|
|
4945
|
+
hardBreakEscape: o(zn),
|
|
4946
|
+
hardBreakTrailing: o(zn),
|
|
4947
|
+
htmlFlow: o(Pn, l),
|
|
4948
4948
|
htmlFlowData: H,
|
|
4949
|
-
htmlText: o(
|
|
4949
|
+
htmlText: o(Pn, l),
|
|
4950
4950
|
htmlTextData: H,
|
|
4951
4951
|
image: o(qi),
|
|
4952
4952
|
label: l,
|
|
@@ -4955,13 +4955,13 @@ function ks(e) {
|
|
|
4955
4955
|
listItemValue: h,
|
|
4956
4956
|
listOrdered: o(Dn, c),
|
|
4957
4957
|
listUnordered: o(Dn),
|
|
4958
|
-
paragraph: o(
|
|
4958
|
+
paragraph: o(Yi),
|
|
4959
4959
|
reference: m,
|
|
4960
4960
|
referenceString: l,
|
|
4961
4961
|
resourceDestinationString: l,
|
|
4962
4962
|
resourceTitleString: l,
|
|
4963
4963
|
setextHeading: o(Tn),
|
|
4964
|
-
strong: o(
|
|
4964
|
+
strong: o(Qi),
|
|
4965
4965
|
thematicBreak: o(Gi)
|
|
4966
4966
|
},
|
|
4967
4967
|
exit: {
|
|
@@ -4969,7 +4969,7 @@ function ks(e) {
|
|
|
4969
4969
|
atxHeadingSequence: N,
|
|
4970
4970
|
autolink: s(),
|
|
4971
4971
|
autolinkEmail: je,
|
|
4972
|
-
autolinkProtocol:
|
|
4972
|
+
autolinkProtocol: Ae,
|
|
4973
4973
|
blockQuote: s(),
|
|
4974
4974
|
characterEscapeValue: k,
|
|
4975
4975
|
characterReferenceMarkerHexadecimal: Pe,
|
|
@@ -4990,17 +4990,17 @@ function ks(e) {
|
|
|
4990
4990
|
definitionLabelString: A,
|
|
4991
4991
|
definitionTitleString: _,
|
|
4992
4992
|
emphasis: s(),
|
|
4993
|
-
hardBreakEscape: s(
|
|
4994
|
-
hardBreakTrailing: s(
|
|
4993
|
+
hardBreakEscape: s(z),
|
|
4994
|
+
hardBreakTrailing: s(z),
|
|
4995
4995
|
htmlFlow: s(q),
|
|
4996
4996
|
htmlFlowData: k,
|
|
4997
|
-
htmlText: s(
|
|
4997
|
+
htmlText: s(P),
|
|
4998
4998
|
htmlTextData: k,
|
|
4999
4999
|
image: s(B),
|
|
5000
5000
|
label: W,
|
|
5001
|
-
labelText:
|
|
5001
|
+
labelText: Q,
|
|
5002
5002
|
lineEnding: T,
|
|
5003
|
-
link: s(
|
|
5003
|
+
link: s(R),
|
|
5004
5004
|
listItem: s(),
|
|
5005
5005
|
listOrdered: s(),
|
|
5006
5006
|
listUnordered: s(),
|
|
@@ -5054,12 +5054,12 @@ function ks(e) {
|
|
|
5054
5054
|
(ge[1] || rr).call(F, void 0, ge[0]);
|
|
5055
5055
|
}
|
|
5056
5056
|
for (I.position = {
|
|
5057
|
-
start:
|
|
5057
|
+
start: Ie(w.length > 0 ? w[0][1].start : {
|
|
5058
5058
|
line: 1,
|
|
5059
5059
|
column: 1,
|
|
5060
5060
|
offset: 0
|
|
5061
5061
|
}),
|
|
5062
|
-
end:
|
|
5062
|
+
end: Ie(w.length > 0 ? w[w.length - 2][1].end : {
|
|
5063
5063
|
line: 1,
|
|
5064
5064
|
column: 1,
|
|
5065
5065
|
offset: 0
|
|
@@ -5069,7 +5069,7 @@ function ks(e) {
|
|
|
5069
5069
|
return I;
|
|
5070
5070
|
}
|
|
5071
5071
|
function i(w, I, F) {
|
|
5072
|
-
let V = I - 1, X = -1, ge = !1,
|
|
5072
|
+
let V = I - 1, X = -1, ge = !1, Le, Ce, Ge, Je;
|
|
5073
5073
|
for (; ++V <= F; ) {
|
|
5074
5074
|
const fe = w[V];
|
|
5075
5075
|
switch (fe[1].type) {
|
|
@@ -5080,7 +5080,7 @@ function ks(e) {
|
|
|
5080
5080
|
break;
|
|
5081
5081
|
}
|
|
5082
5082
|
case "lineEndingBlank": {
|
|
5083
|
-
fe[0] === "enter" && (
|
|
5083
|
+
fe[0] === "enter" && (Le && !Je && !X && !Ge && (Ge = V), Je = void 0);
|
|
5084
5084
|
break;
|
|
5085
5085
|
}
|
|
5086
5086
|
case "linePrefix":
|
|
@@ -5093,16 +5093,16 @@ function ks(e) {
|
|
|
5093
5093
|
Je = void 0;
|
|
5094
5094
|
}
|
|
5095
5095
|
if (!X && fe[0] === "enter" && fe[1].type === "listItemPrefix" || X === -1 && fe[0] === "exit" && (fe[1].type === "listUnordered" || fe[1].type === "listOrdered")) {
|
|
5096
|
-
if (
|
|
5096
|
+
if (Le) {
|
|
5097
5097
|
let He = V;
|
|
5098
|
-
for (
|
|
5099
|
-
const
|
|
5100
|
-
if (
|
|
5101
|
-
if (
|
|
5102
|
-
|
|
5103
|
-
} else if (!(
|
|
5098
|
+
for (Ce = void 0; He--; ) {
|
|
5099
|
+
const Se = w[He];
|
|
5100
|
+
if (Se[1].type === "lineEnding" || Se[1].type === "lineEndingBlank") {
|
|
5101
|
+
if (Se[0] === "exit") continue;
|
|
5102
|
+
Ce && (w[Ce][1].type = "lineEndingBlank", ge = !0), Se[1].type = "lineEnding", Ce = He;
|
|
5103
|
+
} else if (!(Se[1].type === "linePrefix" || Se[1].type === "blockQuotePrefix" || Se[1].type === "blockQuotePrefixWhitespace" || Se[1].type === "blockQuoteMarker" || Se[1].type === "listItemIndent")) break;
|
|
5104
5104
|
}
|
|
5105
|
-
Ge && (!
|
|
5105
|
+
Ge && (!Ce || Ge < Ce) && (Le._spread = !0), Le.end = Object.assign({}, Ce ? w[Ce][1].start : fe[1].end), w.splice(Ce || V, 0, ["exit", Le, fe[2]]), V++, F++;
|
|
5106
5106
|
}
|
|
5107
5107
|
if (fe[1].type === "listItemPrefix") {
|
|
5108
5108
|
const He = {
|
|
@@ -5112,7 +5112,7 @@ function ks(e) {
|
|
|
5112
5112
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
5113
5113
|
end: void 0
|
|
5114
5114
|
};
|
|
5115
|
-
|
|
5115
|
+
Le = He, w.splice(V, 0, ["enter", He, fe[2]]), V++, F++, Ge = void 0, Je = !0;
|
|
5116
5116
|
}
|
|
5117
5117
|
}
|
|
5118
5118
|
}
|
|
@@ -5132,7 +5132,7 @@ function ks(e) {
|
|
|
5132
5132
|
}
|
|
5133
5133
|
function a(w, I, F) {
|
|
5134
5134
|
this.stack[this.stack.length - 1].children.push(w), this.stack.push(w), this.tokenStack.push([I, F || void 0]), w.position = {
|
|
5135
|
-
start:
|
|
5135
|
+
start: Ie(I.start),
|
|
5136
5136
|
// @ts-expect-error: `end` will be patched later.
|
|
5137
5137
|
end: void 0
|
|
5138
5138
|
};
|
|
@@ -5151,7 +5151,7 @@ function ks(e) {
|
|
|
5151
5151
|
start: w.start,
|
|
5152
5152
|
end: w.end
|
|
5153
5153
|
}) + "): it’s not open");
|
|
5154
|
-
F.position.end =
|
|
5154
|
+
F.position.end = Ie(w.end);
|
|
5155
5155
|
}
|
|
5156
5156
|
function f() {
|
|
5157
5157
|
return yn(this.stack.pop());
|
|
@@ -5217,32 +5217,32 @@ function ks(e) {
|
|
|
5217
5217
|
const F = this.stack[this.stack.length - 1].children;
|
|
5218
5218
|
let V = F[F.length - 1];
|
|
5219
5219
|
(!V || V.type !== "text") && (V = Xi(), V.position = {
|
|
5220
|
-
start:
|
|
5220
|
+
start: Ie(w.start),
|
|
5221
5221
|
// @ts-expect-error: we’ll add `end` later.
|
|
5222
5222
|
end: void 0
|
|
5223
5223
|
}, F.push(V)), this.stack.push(V);
|
|
5224
5224
|
}
|
|
5225
5225
|
function k(w) {
|
|
5226
5226
|
const I = this.stack.pop();
|
|
5227
|
-
I.value += this.sliceSerialize(w), I.position.end =
|
|
5227
|
+
I.value += this.sliceSerialize(w), I.position.end = Ie(w.end);
|
|
5228
5228
|
}
|
|
5229
5229
|
function T(w) {
|
|
5230
5230
|
const I = this.stack[this.stack.length - 1];
|
|
5231
5231
|
if (this.data.atHardBreak) {
|
|
5232
5232
|
const F = I.children[I.children.length - 1];
|
|
5233
|
-
F.position.end =
|
|
5233
|
+
F.position.end = Ie(w.end), this.data.atHardBreak = void 0;
|
|
5234
5234
|
return;
|
|
5235
5235
|
}
|
|
5236
5236
|
!this.data.setextHeadingSlurpLineEnding && n.canContainEols.includes(I.type) && (H.call(this, w), k.call(this, w));
|
|
5237
5237
|
}
|
|
5238
|
-
function
|
|
5238
|
+
function z() {
|
|
5239
5239
|
this.data.atHardBreak = !0;
|
|
5240
5240
|
}
|
|
5241
5241
|
function q() {
|
|
5242
5242
|
const w = this.resume(), I = this.stack[this.stack.length - 1];
|
|
5243
5243
|
I.value = w;
|
|
5244
5244
|
}
|
|
5245
|
-
function
|
|
5245
|
+
function P() {
|
|
5246
5246
|
const w = this.resume(), I = this.stack[this.stack.length - 1];
|
|
5247
5247
|
I.value = w;
|
|
5248
5248
|
}
|
|
@@ -5250,7 +5250,7 @@ function ks(e) {
|
|
|
5250
5250
|
const w = this.resume(), I = this.stack[this.stack.length - 1];
|
|
5251
5251
|
I.value = w;
|
|
5252
5252
|
}
|
|
5253
|
-
function
|
|
5253
|
+
function R() {
|
|
5254
5254
|
const w = this.stack[this.stack.length - 1];
|
|
5255
5255
|
if (this.data.inReference) {
|
|
5256
5256
|
const I = this.data.referenceType || "shortcut";
|
|
@@ -5268,7 +5268,7 @@ function ks(e) {
|
|
|
5268
5268
|
delete w.identifier, delete w.label;
|
|
5269
5269
|
this.data.referenceType = void 0;
|
|
5270
5270
|
}
|
|
5271
|
-
function
|
|
5271
|
+
function Q(w) {
|
|
5272
5272
|
const I = this.sliceSerialize(w), F = this.stack[this.stack.length - 2];
|
|
5273
5273
|
F.label = ms(I), F.identifier = ke(I).toLowerCase();
|
|
5274
5274
|
}
|
|
@@ -5310,9 +5310,9 @@ function ks(e) {
|
|
|
5310
5310
|
}
|
|
5311
5311
|
function Xe(w) {
|
|
5312
5312
|
const I = this.stack.pop();
|
|
5313
|
-
I.position.end =
|
|
5313
|
+
I.position.end = Ie(w.end);
|
|
5314
5314
|
}
|
|
5315
|
-
function
|
|
5315
|
+
function Ae(w) {
|
|
5316
5316
|
k.call(this, w);
|
|
5317
5317
|
const I = this.stack[this.stack.length - 1];
|
|
5318
5318
|
I.url = this.sliceSerialize(w);
|
|
@@ -5365,12 +5365,12 @@ function ks(e) {
|
|
|
5365
5365
|
children: []
|
|
5366
5366
|
};
|
|
5367
5367
|
}
|
|
5368
|
-
function
|
|
5368
|
+
function zn() {
|
|
5369
5369
|
return {
|
|
5370
5370
|
type: "break"
|
|
5371
5371
|
};
|
|
5372
5372
|
}
|
|
5373
|
-
function
|
|
5373
|
+
function Pn() {
|
|
5374
5374
|
return {
|
|
5375
5375
|
type: "html",
|
|
5376
5376
|
value: ""
|
|
@@ -5409,13 +5409,13 @@ function ks(e) {
|
|
|
5409
5409
|
children: []
|
|
5410
5410
|
};
|
|
5411
5411
|
}
|
|
5412
|
-
function
|
|
5412
|
+
function Yi() {
|
|
5413
5413
|
return {
|
|
5414
5414
|
type: "paragraph",
|
|
5415
5415
|
children: []
|
|
5416
5416
|
};
|
|
5417
5417
|
}
|
|
5418
|
-
function
|
|
5418
|
+
function Qi() {
|
|
5419
5419
|
return {
|
|
5420
5420
|
type: "strong",
|
|
5421
5421
|
children: []
|
|
@@ -5433,7 +5433,7 @@ function ks(e) {
|
|
|
5433
5433
|
};
|
|
5434
5434
|
}
|
|
5435
5435
|
}
|
|
5436
|
-
function
|
|
5436
|
+
function Ie(e) {
|
|
5437
5437
|
return {
|
|
5438
5438
|
line: e.line,
|
|
5439
5439
|
column: e.column,
|
|
@@ -5542,7 +5542,7 @@ function _s(e, n) {
|
|
|
5542
5542
|
return e.patch(n, t), e.applyData(n, t);
|
|
5543
5543
|
}
|
|
5544
5544
|
function Es(e, n) {
|
|
5545
|
-
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(n.identifier).toUpperCase(), i =
|
|
5545
|
+
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(n.identifier).toUpperCase(), i = Qe(r.toLowerCase()), o = e.footnoteOrder.indexOf(r);
|
|
5546
5546
|
let l, a = e.footnoteCounts.get(r);
|
|
5547
5547
|
a === void 0 ? (a = 0, e.footnoteOrder.push(r), l = e.footnoteOrder.length) : l = o + 1, a += 1, e.footnoteCounts.set(r, a);
|
|
5548
5548
|
const s = {
|
|
@@ -5594,18 +5594,18 @@ function Ts(e, n) {
|
|
|
5594
5594
|
const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
|
|
5595
5595
|
if (!r)
|
|
5596
5596
|
return ui(e, n);
|
|
5597
|
-
const i = { src:
|
|
5597
|
+
const i = { src: Qe(r.url || ""), alt: n.alt };
|
|
5598
5598
|
r.title !== null && r.title !== void 0 && (i.title = r.title);
|
|
5599
5599
|
const o = { type: "element", tagName: "img", properties: i, children: [] };
|
|
5600
5600
|
return e.patch(n, o), e.applyData(n, o);
|
|
5601
5601
|
}
|
|
5602
|
-
function
|
|
5603
|
-
const t = { src:
|
|
5602
|
+
function zs(e, n) {
|
|
5603
|
+
const t = { src: Qe(n.url) };
|
|
5604
5604
|
n.alt !== null && n.alt !== void 0 && (t.alt = n.alt), n.title !== null && n.title !== void 0 && (t.title = n.title);
|
|
5605
5605
|
const r = { type: "element", tagName: "img", properties: t, children: [] };
|
|
5606
5606
|
return e.patch(n, r), e.applyData(n, r);
|
|
5607
5607
|
}
|
|
5608
|
-
function
|
|
5608
|
+
function Ps(e, n) {
|
|
5609
5609
|
const t = { type: "text", value: n.value.replace(/\r?\n|\r/g, " ") };
|
|
5610
5610
|
e.patch(n, t);
|
|
5611
5611
|
const r = {
|
|
@@ -5620,7 +5620,7 @@ function Ls(e, n) {
|
|
|
5620
5620
|
const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
|
|
5621
5621
|
if (!r)
|
|
5622
5622
|
return ui(e, n);
|
|
5623
|
-
const i = { href:
|
|
5623
|
+
const i = { href: Qe(r.url || "") };
|
|
5624
5624
|
r.title !== null && r.title !== void 0 && (i.title = r.title);
|
|
5625
5625
|
const o = {
|
|
5626
5626
|
type: "element",
|
|
@@ -5631,7 +5631,7 @@ function Ls(e, n) {
|
|
|
5631
5631
|
return e.patch(n, o), e.applyData(n, o);
|
|
5632
5632
|
}
|
|
5633
5633
|
function Ds(e, n) {
|
|
5634
|
-
const t = { href:
|
|
5634
|
+
const t = { href: Qe(n.url) };
|
|
5635
5635
|
n.title !== null && n.title !== void 0 && (t.title = n.title);
|
|
5636
5636
|
const r = {
|
|
5637
5637
|
type: "element",
|
|
@@ -5642,7 +5642,7 @@ function Ds(e, n) {
|
|
|
5642
5642
|
return e.patch(n, r), e.applyData(n, r);
|
|
5643
5643
|
}
|
|
5644
5644
|
function Ns(e, n, t) {
|
|
5645
|
-
const r = e.all(n), i = t ?
|
|
5645
|
+
const r = e.all(n), i = t ? Rs(t) : ci(n), o = {}, l = [];
|
|
5646
5646
|
if (typeof n.checked == "boolean") {
|
|
5647
5647
|
const f = r[0];
|
|
5648
5648
|
let c;
|
|
@@ -5665,7 +5665,7 @@ function Ns(e, n, t) {
|
|
|
5665
5665
|
const u = { type: "element", tagName: "li", properties: o, children: l };
|
|
5666
5666
|
return e.patch(n, u), e.applyData(n, u);
|
|
5667
5667
|
}
|
|
5668
|
-
function
|
|
5668
|
+
function Rs(e) {
|
|
5669
5669
|
let n = !1;
|
|
5670
5670
|
if (e.type === "list") {
|
|
5671
5671
|
n = e.spread || !1;
|
|
@@ -5680,7 +5680,7 @@ function ci(e) {
|
|
|
5680
5680
|
const n = e.spread;
|
|
5681
5681
|
return n ?? e.children.length > 1;
|
|
5682
5682
|
}
|
|
5683
|
-
function
|
|
5683
|
+
function Ms(e, n) {
|
|
5684
5684
|
const t = {}, r = e.all(n);
|
|
5685
5685
|
let i = -1;
|
|
5686
5686
|
for (typeof n.start == "number" && n.start !== 1 && (t.start = n.start); ++i < r.length; ) {
|
|
@@ -5825,12 +5825,12 @@ const Ws = {
|
|
|
5825
5825
|
heading: As,
|
|
5826
5826
|
html: Is,
|
|
5827
5827
|
imageReference: Ts,
|
|
5828
|
-
image:
|
|
5829
|
-
inlineCode:
|
|
5828
|
+
image: zs,
|
|
5829
|
+
inlineCode: Ps,
|
|
5830
5830
|
linkReference: Ls,
|
|
5831
5831
|
link: Ds,
|
|
5832
5832
|
listItem: Ns,
|
|
5833
|
-
list:
|
|
5833
|
+
list: Ms,
|
|
5834
5834
|
paragraph: Fs,
|
|
5835
5835
|
// @ts-expect-error: root is different, but hard to type.
|
|
5836
5836
|
root: Os,
|
|
@@ -5847,7 +5847,7 @@ const Ws = {
|
|
|
5847
5847
|
};
|
|
5848
5848
|
function mt() {
|
|
5849
5849
|
}
|
|
5850
|
-
const fi = -1,
|
|
5850
|
+
const fi = -1, zt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, hi = 8, di = typeof self == "object" ? self : globalThis, ar = (e, n) => {
|
|
5851
5851
|
switch (e) {
|
|
5852
5852
|
case "Function":
|
|
5853
5853
|
case "SharedWorker":
|
|
@@ -5858,13 +5858,13 @@ const fi = -1, Pt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
|
|
|
5858
5858
|
throw new TypeError("unable to deserialize " + e);
|
|
5859
5859
|
}
|
|
5860
5860
|
return new di[e](n);
|
|
5861
|
-
},
|
|
5861
|
+
}, Ys = (e, n) => {
|
|
5862
5862
|
const t = (i, o) => (e.set(o, i), i), r = (i) => {
|
|
5863
5863
|
if (e.has(i))
|
|
5864
5864
|
return e.get(i);
|
|
5865
5865
|
const [o, l] = n[i];
|
|
5866
5866
|
switch (o) {
|
|
5867
|
-
case
|
|
5867
|
+
case zt:
|
|
5868
5868
|
case fi:
|
|
5869
5869
|
return t(l, i);
|
|
5870
5870
|
case at: {
|
|
@@ -5918,29 +5918,29 @@ const fi = -1, Pt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
|
|
|
5918
5918
|
return t(ar(o, l), i);
|
|
5919
5919
|
};
|
|
5920
5920
|
return r;
|
|
5921
|
-
}, sr = (e) =>
|
|
5921
|
+
}, sr = (e) => Ys(/* @__PURE__ */ new Map(), e)(0), Re = "", { toString: Qs } = {}, { keys: Xs } = Object, tt = (e) => {
|
|
5922
5922
|
const n = typeof e;
|
|
5923
5923
|
if (n !== "object" || !e)
|
|
5924
|
-
return [
|
|
5925
|
-
const t =
|
|
5924
|
+
return [zt, n];
|
|
5925
|
+
const t = Qs.call(e).slice(8, -1);
|
|
5926
5926
|
switch (t) {
|
|
5927
5927
|
case "Array":
|
|
5928
|
-
return [at,
|
|
5928
|
+
return [at, Re];
|
|
5929
5929
|
case "Object":
|
|
5930
|
-
return [_t,
|
|
5930
|
+
return [_t, Re];
|
|
5931
5931
|
case "Date":
|
|
5932
|
-
return [bn,
|
|
5932
|
+
return [bn, Re];
|
|
5933
5933
|
case "RegExp":
|
|
5934
|
-
return [wn,
|
|
5934
|
+
return [wn, Re];
|
|
5935
5935
|
case "Map":
|
|
5936
|
-
return [Cn,
|
|
5936
|
+
return [Cn, Re];
|
|
5937
5937
|
case "Set":
|
|
5938
|
-
return [Sn,
|
|
5938
|
+
return [Sn, Re];
|
|
5939
5939
|
case "DataView":
|
|
5940
5940
|
return [at, t];
|
|
5941
5941
|
}
|
|
5942
5942
|
return t.includes("Array") ? [at, t] : e instanceof Error ? [pi, e.name || "Error"] : [_t, t];
|
|
5943
|
-
}, gt = ([e, n]) => e ===
|
|
5943
|
+
}, gt = ([e, n]) => e === zt && (n === "function" || n === "symbol"), Gs = (e, n, t, r) => {
|
|
5944
5944
|
const i = (l, a) => {
|
|
5945
5945
|
const s = r.push(l) - 1;
|
|
5946
5946
|
return t.set(a, s), s;
|
|
@@ -5949,7 +5949,7 @@ const fi = -1, Pt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
|
|
|
5949
5949
|
return t.get(l);
|
|
5950
5950
|
let [a, s] = tt(l);
|
|
5951
5951
|
switch (a) {
|
|
5952
|
-
case
|
|
5952
|
+
case zt: {
|
|
5953
5953
|
let f = l;
|
|
5954
5954
|
switch (s) {
|
|
5955
5955
|
case "bigint":
|
|
@@ -5994,7 +5994,7 @@ const fi = -1, Pt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
|
|
|
5994
5994
|
return c;
|
|
5995
5995
|
}
|
|
5996
5996
|
case bn:
|
|
5997
|
-
return i([a, isNaN(l.getTime()) ?
|
|
5997
|
+
return i([a, isNaN(l.getTime()) ? Re : l.toISOString()], l);
|
|
5998
5998
|
case wn: {
|
|
5999
5999
|
const { source: f, flags: c } = l;
|
|
6000
6000
|
return i([a, { source: f, flags: c }], l);
|
|
@@ -6046,7 +6046,7 @@ function Zs(e) {
|
|
|
6046
6046
|
);
|
|
6047
6047
|
if (!u)
|
|
6048
6048
|
continue;
|
|
6049
|
-
const f = e.all(u), c = String(u.identifier).toUpperCase(), h =
|
|
6049
|
+
const f = e.all(u), c = String(u.identifier).toUpperCase(), h = Qe(c.toLowerCase());
|
|
6050
6050
|
let p = 0;
|
|
6051
6051
|
const g = [], C = e.footnoteCounts.get(c);
|
|
6052
6052
|
for (; C !== void 0 && ++p <= C; ) {
|
|
@@ -6106,7 +6106,7 @@ function Zs(e) {
|
|
|
6106
6106
|
]
|
|
6107
6107
|
};
|
|
6108
6108
|
}
|
|
6109
|
-
const
|
|
6109
|
+
const Pt = (
|
|
6110
6110
|
// Note: overloads in JSDoc can’t yet use different `@template`s.
|
|
6111
6111
|
/**
|
|
6112
6112
|
* @type {(
|
|
@@ -6144,7 +6144,7 @@ function eu(e) {
|
|
|
6144
6144
|
const n = [];
|
|
6145
6145
|
let t = -1;
|
|
6146
6146
|
for (; ++t < e.length; )
|
|
6147
|
-
n[t] =
|
|
6147
|
+
n[t] = Pt(e[t]);
|
|
6148
6148
|
return Lt(r);
|
|
6149
6149
|
function r(...i) {
|
|
6150
6150
|
let o = -1;
|
|
@@ -6198,7 +6198,7 @@ const mi = [], lu = !0, nn = !1, ou = "skip";
|
|
|
6198
6198
|
function gi(e, n, t, r) {
|
|
6199
6199
|
let i;
|
|
6200
6200
|
typeof n == "function" && typeof t != "function" ? (r = t, t = n) : i = n;
|
|
6201
|
-
const o =
|
|
6201
|
+
const o = Pt(i), l = r ? -1 : 1;
|
|
6202
6202
|
a(e, void 0, [])();
|
|
6203
6203
|
function a(s, u, f) {
|
|
6204
6204
|
const c = (
|
|
@@ -6473,7 +6473,7 @@ function ku(e, n) {
|
|
|
6473
6473
|
i(null, l);
|
|
6474
6474
|
}
|
|
6475
6475
|
}
|
|
6476
|
-
const
|
|
6476
|
+
const be = { basename: xu, dirname: bu, extname: wu, join: Cu, sep: "/" };
|
|
6477
6477
|
function xu(e, n) {
|
|
6478
6478
|
if (n !== void 0 && typeof n != "string")
|
|
6479
6479
|
throw new TypeError('"ext" argument must be a string');
|
|
@@ -6679,7 +6679,7 @@ class yi {
|
|
|
6679
6679
|
* Basename.
|
|
6680
6680
|
*/
|
|
6681
6681
|
get basename() {
|
|
6682
|
-
return typeof this.path == "string" ?
|
|
6682
|
+
return typeof this.path == "string" ? be.basename(this.path) : void 0;
|
|
6683
6683
|
}
|
|
6684
6684
|
/**
|
|
6685
6685
|
* Set basename (including extname) (`'index.min.js'`).
|
|
@@ -6694,7 +6694,7 @@ class yi {
|
|
|
6694
6694
|
* Nothing.
|
|
6695
6695
|
*/
|
|
6696
6696
|
set basename(n) {
|
|
6697
|
-
Ht(n, "basename"), $t(n, "basename"), this.path =
|
|
6697
|
+
Ht(n, "basename"), $t(n, "basename"), this.path = be.join(this.dirname || "", n);
|
|
6698
6698
|
}
|
|
6699
6699
|
/**
|
|
6700
6700
|
* Get the parent path (example: `'~'`).
|
|
@@ -6703,7 +6703,7 @@ class yi {
|
|
|
6703
6703
|
* Dirname.
|
|
6704
6704
|
*/
|
|
6705
6705
|
get dirname() {
|
|
6706
|
-
return typeof this.path == "string" ?
|
|
6706
|
+
return typeof this.path == "string" ? be.dirname(this.path) : void 0;
|
|
6707
6707
|
}
|
|
6708
6708
|
/**
|
|
6709
6709
|
* Set the parent path (example: `'~'`).
|
|
@@ -6716,7 +6716,7 @@ class yi {
|
|
|
6716
6716
|
* Nothing.
|
|
6717
6717
|
*/
|
|
6718
6718
|
set dirname(n) {
|
|
6719
|
-
dr(this.basename, "dirname"), this.path =
|
|
6719
|
+
dr(this.basename, "dirname"), this.path = be.join(n || "", this.basename);
|
|
6720
6720
|
}
|
|
6721
6721
|
/**
|
|
6722
6722
|
* Get the extname (including dot) (example: `'.js'`).
|
|
@@ -6725,7 +6725,7 @@ class yi {
|
|
|
6725
6725
|
* Extname.
|
|
6726
6726
|
*/
|
|
6727
6727
|
get extname() {
|
|
6728
|
-
return typeof this.path == "string" ?
|
|
6728
|
+
return typeof this.path == "string" ? be.extname(this.path) : void 0;
|
|
6729
6729
|
}
|
|
6730
6730
|
/**
|
|
6731
6731
|
* Set the extname (including dot) (example: `'.js'`).
|
|
@@ -6746,7 +6746,7 @@ class yi {
|
|
|
6746
6746
|
if (n.includes(".", 1))
|
|
6747
6747
|
throw new Error("`extname` cannot contain multiple dots");
|
|
6748
6748
|
}
|
|
6749
|
-
this.path =
|
|
6749
|
+
this.path = be.join(this.dirname, this.stem + (n || ""));
|
|
6750
6750
|
}
|
|
6751
6751
|
/**
|
|
6752
6752
|
* Get the full path (example: `'~/index.min.js'`).
|
|
@@ -6779,7 +6779,7 @@ class yi {
|
|
|
6779
6779
|
* Stem.
|
|
6780
6780
|
*/
|
|
6781
6781
|
get stem() {
|
|
6782
|
-
return typeof this.path == "string" ?
|
|
6782
|
+
return typeof this.path == "string" ? be.basename(this.path, this.extname) : void 0;
|
|
6783
6783
|
}
|
|
6784
6784
|
/**
|
|
6785
6785
|
* Set the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -6794,7 +6794,7 @@ class yi {
|
|
|
6794
6794
|
* Nothing.
|
|
6795
6795
|
*/
|
|
6796
6796
|
set stem(n) {
|
|
6797
|
-
Ht(n, "stem"), $t(n, "stem"), this.path =
|
|
6797
|
+
Ht(n, "stem"), $t(n, "stem"), this.path = be.join(this.dirname || "", n + (this.extname || ""));
|
|
6798
6798
|
}
|
|
6799
6799
|
// Normal prototypal methods.
|
|
6800
6800
|
/**
|
|
@@ -7008,9 +7008,9 @@ class yi {
|
|
|
7008
7008
|
}
|
|
7009
7009
|
}
|
|
7010
7010
|
function $t(e, n) {
|
|
7011
|
-
if (e && e.includes(
|
|
7011
|
+
if (e && e.includes(be.sep))
|
|
7012
7012
|
throw new Error(
|
|
7013
|
-
"`" + n + "` cannot be a path: did not expect `" +
|
|
7013
|
+
"`" + n + "` cannot be a path: did not expect `" + be.sep + "`"
|
|
7014
7014
|
);
|
|
7015
7015
|
}
|
|
7016
7016
|
function Ht(e, n) {
|
|
@@ -7024,7 +7024,7 @@ function dr(e, n) {
|
|
|
7024
7024
|
function Tu(e) {
|
|
7025
7025
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
7026
7026
|
}
|
|
7027
|
-
const
|
|
7027
|
+
const zu = (
|
|
7028
7028
|
/**
|
|
7029
7029
|
* @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
|
|
7030
7030
|
*/
|
|
@@ -7045,8 +7045,8 @@ const Pu = (
|
|
|
7045
7045
|
};
|
|
7046
7046
|
return Object.setPrototypeOf(o, r), o;
|
|
7047
7047
|
})
|
|
7048
|
-
),
|
|
7049
|
-
class _n extends
|
|
7048
|
+
), Pu = {}.hasOwnProperty;
|
|
7049
|
+
class _n extends zu {
|
|
7050
7050
|
/**
|
|
7051
7051
|
* Create a processor.
|
|
7052
7052
|
*/
|
|
@@ -7136,7 +7136,7 @@ class _n extends Pu {
|
|
|
7136
7136
|
* the entire dataset when getting without key.
|
|
7137
7137
|
*/
|
|
7138
7138
|
data(n, t) {
|
|
7139
|
-
return typeof n == "string" ? arguments.length === 2 ? (qt("data", this.frozen), this.namespace[n] = t, this) :
|
|
7139
|
+
return typeof n == "string" ? arguments.length === 2 ? (qt("data", this.frozen), this.namespace[n] = t, this) : Pu.call(this.namespace, n) && this.namespace[n] || void 0 : n ? (qt("data", this.frozen), this.namespace = n, this) : this.namespace;
|
|
7140
7140
|
}
|
|
7141
7141
|
/**
|
|
7142
7142
|
* Freeze a processor.
|
|
@@ -7559,12 +7559,12 @@ function Du(e) {
|
|
|
7559
7559
|
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
|
7560
7560
|
}
|
|
7561
7561
|
function Nu(e) {
|
|
7562
|
-
return typeof e == "string" ||
|
|
7562
|
+
return typeof e == "string" || Ru(e);
|
|
7563
7563
|
}
|
|
7564
|
-
function
|
|
7564
|
+
function Ru(e) {
|
|
7565
7565
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
7566
7566
|
}
|
|
7567
|
-
const
|
|
7567
|
+
const Mu = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", yr = [], kr = { allowDangerousHtml: !0 }, Fu = /^(https?|ircs?|mailto|xmpp)$/i, Ou = [
|
|
7568
7568
|
{ from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
|
|
7569
7569
|
{ from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
|
|
7570
7570
|
{
|
|
@@ -7613,13 +7613,13 @@ function $u(e) {
|
|
|
7613
7613
|
function Hu(e, n) {
|
|
7614
7614
|
const t = n.allowedElements, r = n.allowElement, i = n.components, o = n.disallowedElements, l = n.skipHtml, a = n.unwrapDisallowed, s = n.urlTransform || Vu;
|
|
7615
7615
|
for (const f of Ou)
|
|
7616
|
-
Object.hasOwn(n, f.from) && ("" + f.from + (f.to ? "use `" + f.to + "` instead" : "remove it") +
|
|
7616
|
+
Object.hasOwn(n, f.from) && ("" + f.from + (f.to ? "use `" + f.to + "` instead" : "remove it") + Mu + f.id, void 0);
|
|
7617
7617
|
return vn(e, u), no(e, {
|
|
7618
7618
|
Fragment: un,
|
|
7619
7619
|
components: i,
|
|
7620
7620
|
ignoreInvalidStyle: !0,
|
|
7621
7621
|
jsx: b,
|
|
7622
|
-
jsxs:
|
|
7622
|
+
jsxs: Y,
|
|
7623
7623
|
passKeys: !0,
|
|
7624
7624
|
passNode: !0
|
|
7625
7625
|
});
|
|
@@ -7628,9 +7628,9 @@ function Hu(e, n) {
|
|
|
7628
7628
|
return l ? h.children.splice(c, 1) : h.children[c] = { type: "text", value: f.value }, c;
|
|
7629
7629
|
if (f.type === "element") {
|
|
7630
7630
|
let p;
|
|
7631
|
-
for (p in
|
|
7632
|
-
if (Object.hasOwn(
|
|
7633
|
-
const g = f.properties[p], C =
|
|
7631
|
+
for (p in Rt)
|
|
7632
|
+
if (Object.hasOwn(Rt, p) && Object.hasOwn(f.properties, p)) {
|
|
7633
|
+
const g = f.properties[p], C = Rt[p];
|
|
7634
7634
|
(C === null || C.includes(f.tagName)) && (f.properties[p] = s(String(g || ""), p, f));
|
|
7635
7635
|
}
|
|
7636
7636
|
}
|
|
@@ -7665,7 +7665,7 @@ function Uu(e) {
|
|
|
7665
7665
|
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
7666
7666
|
}
|
|
7667
7667
|
function qu(e, n, t) {
|
|
7668
|
-
const i =
|
|
7668
|
+
const i = Pt((t || {}).ignore || []), o = Wu(n);
|
|
7669
7669
|
let l = -1;
|
|
7670
7670
|
for (; ++l < o.length; )
|
|
7671
7671
|
gi(e, "text", a);
|
|
@@ -7716,27 +7716,27 @@ function Wu(e) {
|
|
|
7716
7716
|
let r = -1;
|
|
7717
7717
|
for (; ++r < t.length; ) {
|
|
7718
7718
|
const i = t[r];
|
|
7719
|
-
n.push([
|
|
7719
|
+
n.push([Yu(i[0]), Qu(i[1])]);
|
|
7720
7720
|
}
|
|
7721
7721
|
return n;
|
|
7722
7722
|
}
|
|
7723
|
-
function
|
|
7723
|
+
function Yu(e) {
|
|
7724
7724
|
return typeof e == "string" ? new RegExp(Uu(e), "g") : e;
|
|
7725
7725
|
}
|
|
7726
|
-
function
|
|
7726
|
+
function Qu(e) {
|
|
7727
7727
|
return typeof e == "function" ? e : function() {
|
|
7728
7728
|
return e;
|
|
7729
7729
|
};
|
|
7730
7730
|
}
|
|
7731
|
-
const Wt = "phrasing",
|
|
7731
|
+
const Wt = "phrasing", Yt = ["autolink", "link", "image", "label"];
|
|
7732
7732
|
function Xu() {
|
|
7733
7733
|
return {
|
|
7734
7734
|
transforms: [nc],
|
|
7735
7735
|
enter: {
|
|
7736
7736
|
literalAutolink: Ju,
|
|
7737
|
-
literalAutolinkEmail:
|
|
7738
|
-
literalAutolinkHttp:
|
|
7739
|
-
literalAutolinkWww:
|
|
7737
|
+
literalAutolinkEmail: Qt,
|
|
7738
|
+
literalAutolinkHttp: Qt,
|
|
7739
|
+
literalAutolinkWww: Qt
|
|
7740
7740
|
},
|
|
7741
7741
|
exit: {
|
|
7742
7742
|
literalAutolink: tc,
|
|
@@ -7754,21 +7754,21 @@ function Gu() {
|
|
|
7754
7754
|
before: "[+\\-.\\w]",
|
|
7755
7755
|
after: "[\\-.\\w]",
|
|
7756
7756
|
inConstruct: Wt,
|
|
7757
|
-
notInConstruct:
|
|
7757
|
+
notInConstruct: Yt
|
|
7758
7758
|
},
|
|
7759
7759
|
{
|
|
7760
7760
|
character: ".",
|
|
7761
7761
|
before: "[Ww]",
|
|
7762
7762
|
after: "[\\-.\\w]",
|
|
7763
7763
|
inConstruct: Wt,
|
|
7764
|
-
notInConstruct:
|
|
7764
|
+
notInConstruct: Yt
|
|
7765
7765
|
},
|
|
7766
7766
|
{
|
|
7767
7767
|
character: ":",
|
|
7768
7768
|
before: "[ps]",
|
|
7769
7769
|
after: "\\/",
|
|
7770
7770
|
inConstruct: Wt,
|
|
7771
|
-
notInConstruct:
|
|
7771
|
+
notInConstruct: Yt
|
|
7772
7772
|
}
|
|
7773
7773
|
]
|
|
7774
7774
|
};
|
|
@@ -7776,7 +7776,7 @@ function Gu() {
|
|
|
7776
7776
|
function Ju(e) {
|
|
7777
7777
|
this.enter({ type: "link", title: null, url: "", children: [] }, e);
|
|
7778
7778
|
}
|
|
7779
|
-
function
|
|
7779
|
+
function Qt(e) {
|
|
7780
7780
|
this.config.enter.autolinkProtocol.call(this, e);
|
|
7781
7781
|
}
|
|
7782
7782
|
function Ku(e) {
|
|
@@ -8069,7 +8069,7 @@ function Ic(e, n, t, r) {
|
|
|
8069
8069
|
function Tc(e, n, t) {
|
|
8070
8070
|
return ">" + (t ? "" : " ") + e;
|
|
8071
8071
|
}
|
|
8072
|
-
function
|
|
8072
|
+
function zc(e, n) {
|
|
8073
8073
|
return wr(e, n.inConstruct, !0) && !wr(e, n.notInConstruct, !1);
|
|
8074
8074
|
}
|
|
8075
8075
|
function wr(e, n, t) {
|
|
@@ -8085,12 +8085,12 @@ function Cr(e, n, t, r) {
|
|
|
8085
8085
|
let i = -1;
|
|
8086
8086
|
for (; ++i < t.unsafe.length; )
|
|
8087
8087
|
if (t.unsafe[i].character === `
|
|
8088
|
-
` &&
|
|
8088
|
+
` && zc(t.stack, t.unsafe[i]))
|
|
8089
8089
|
return /[ \t]/.test(r.before) ? "" : " ";
|
|
8090
8090
|
return `\\
|
|
8091
8091
|
`;
|
|
8092
8092
|
}
|
|
8093
|
-
function
|
|
8093
|
+
function Pc(e, n) {
|
|
8094
8094
|
const t = String(e);
|
|
8095
8095
|
let r = t.indexOf(n), i = r, o = 0, l = 0;
|
|
8096
8096
|
if (typeof n != "string")
|
|
@@ -8116,10 +8116,10 @@ function Dc(e) {
|
|
|
8116
8116
|
function Nc(e, n, t, r) {
|
|
8117
8117
|
const i = Dc(t), o = e.value || "", l = i === "`" ? "GraveAccent" : "Tilde";
|
|
8118
8118
|
if (Lc(e, t)) {
|
|
8119
|
-
const c = t.enter("codeIndented"), h = t.indentLines(o,
|
|
8119
|
+
const c = t.enter("codeIndented"), h = t.indentLines(o, Rc);
|
|
8120
8120
|
return c(), h;
|
|
8121
8121
|
}
|
|
8122
|
-
const a = t.createTracker(r), s = i.repeat(Math.max(
|
|
8122
|
+
const a = t.createTracker(r), s = i.repeat(Math.max(Pc(o, i) + 1, 3)), u = t.enter("codeFenced");
|
|
8123
8123
|
let f = a.move(s);
|
|
8124
8124
|
if (e.lang) {
|
|
8125
8125
|
const c = t.enter(`codeFencedLang${l}`);
|
|
@@ -8148,7 +8148,7 @@ function Nc(e, n, t, r) {
|
|
|
8148
8148
|
`), o && (f += a.move(o + `
|
|
8149
8149
|
`)), f += a.move(s), u(), f;
|
|
8150
8150
|
}
|
|
8151
|
-
function
|
|
8151
|
+
function Rc(e, n, t) {
|
|
8152
8152
|
return (t ? "" : " ") + e;
|
|
8153
8153
|
}
|
|
8154
8154
|
function En(e) {
|
|
@@ -8159,7 +8159,7 @@ function En(e) {
|
|
|
8159
8159
|
);
|
|
8160
8160
|
return n;
|
|
8161
8161
|
}
|
|
8162
|
-
function
|
|
8162
|
+
function Mc(e, n, t, r) {
|
|
8163
8163
|
const i = En(t), o = i === '"' ? "Quote" : "Apostrophe", l = t.enter("definition");
|
|
8164
8164
|
let a = t.enter("label");
|
|
8165
8165
|
const s = t.createTracker(r);
|
|
@@ -8463,7 +8463,7 @@ function An(e) {
|
|
|
8463
8463
|
);
|
|
8464
8464
|
return n;
|
|
8465
8465
|
}
|
|
8466
|
-
function
|
|
8466
|
+
function Yc(e) {
|
|
8467
8467
|
const n = An(e), t = e.options.bulletOther;
|
|
8468
8468
|
if (!t)
|
|
8469
8469
|
return n === "*" ? "-" : "*";
|
|
@@ -8477,7 +8477,7 @@ function Qc(e) {
|
|
|
8477
8477
|
);
|
|
8478
8478
|
return t;
|
|
8479
8479
|
}
|
|
8480
|
-
function
|
|
8480
|
+
function Qc(e) {
|
|
8481
8481
|
const n = e.options.bulletOrdered || ".";
|
|
8482
8482
|
if (n !== "." && n !== ")")
|
|
8483
8483
|
throw new Error(
|
|
@@ -8485,7 +8485,7 @@ function Yc(e) {
|
|
|
8485
8485
|
);
|
|
8486
8486
|
return n;
|
|
8487
8487
|
}
|
|
8488
|
-
function
|
|
8488
|
+
function zi(e) {
|
|
8489
8489
|
const n = e.options.rule || "*";
|
|
8490
8490
|
if (n !== "*" && n !== "-" && n !== "_")
|
|
8491
8491
|
throw new Error(
|
|
@@ -8495,8 +8495,8 @@ function Pi(e) {
|
|
|
8495
8495
|
}
|
|
8496
8496
|
function Xc(e, n, t, r) {
|
|
8497
8497
|
const i = t.enter("list"), o = t.bulletCurrent;
|
|
8498
|
-
let l = e.ordered ?
|
|
8499
|
-
const a = e.ordered ? l === "." ? ")" : "." :
|
|
8498
|
+
let l = e.ordered ? Qc(t) : An(t);
|
|
8499
|
+
const a = e.ordered ? l === "." ? ")" : "." : Yc(t);
|
|
8500
8500
|
let s = n && t.bulletLastUsed ? l === t.bulletLastUsed : !1;
|
|
8501
8501
|
if (!e.ordered) {
|
|
8502
8502
|
const f = e.children ? e.children[0] : void 0;
|
|
@@ -8505,7 +8505,7 @@ function Xc(e, n, t, r) {
|
|
|
8505
8505
|
(l === "*" || l === "-") && // Empty first list item:
|
|
8506
8506
|
f && (!f.children || !f.children[0]) && // Directly in two other list items:
|
|
8507
8507
|
t.stack[t.stack.length - 1] === "list" && t.stack[t.stack.length - 2] === "listItem" && t.stack[t.stack.length - 3] === "list" && t.stack[t.stack.length - 4] === "listItem" && // That are each the first child.
|
|
8508
|
-
t.indexStack[t.indexStack.length - 1] === 0 && t.indexStack[t.indexStack.length - 2] === 0 && t.indexStack[t.indexStack.length - 3] === 0 && (s = !0),
|
|
8508
|
+
t.indexStack[t.indexStack.length - 1] === 0 && t.indexStack[t.indexStack.length - 2] === 0 && t.indexStack[t.indexStack.length - 3] === 0 && (s = !0), zi(t) === l && f
|
|
8509
8509
|
) {
|
|
8510
8510
|
let c = -1;
|
|
8511
8511
|
for (; ++c < e.children.length; ) {
|
|
@@ -8552,7 +8552,7 @@ function Kc(e, n, t, r) {
|
|
|
8552
8552
|
}
|
|
8553
8553
|
const Zc = (
|
|
8554
8554
|
/** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
|
|
8555
|
-
|
|
8555
|
+
Pt([
|
|
8556
8556
|
"break",
|
|
8557
8557
|
"delete",
|
|
8558
8558
|
"emphasis",
|
|
@@ -8589,8 +8589,8 @@ function tf(e) {
|
|
|
8589
8589
|
);
|
|
8590
8590
|
return n;
|
|
8591
8591
|
}
|
|
8592
|
-
|
|
8593
|
-
function
|
|
8592
|
+
Pi.peek = nf;
|
|
8593
|
+
function Pi(e, n, t, r) {
|
|
8594
8594
|
const i = tf(t), o = t.enter("strong"), l = t.createTracker(r), a = l.move(i + i);
|
|
8595
8595
|
let s = l.move(
|
|
8596
8596
|
t.containerPhrasing(e, {
|
|
@@ -8628,14 +8628,14 @@ function lf(e) {
|
|
|
8628
8628
|
return n;
|
|
8629
8629
|
}
|
|
8630
8630
|
function of(e, n, t) {
|
|
8631
|
-
const r = (
|
|
8631
|
+
const r = (zi(t) + (t.options.ruleSpaces ? " " : "")).repeat(lf(t));
|
|
8632
8632
|
return t.options.ruleSpaces ? r.slice(0, -1) : r;
|
|
8633
8633
|
}
|
|
8634
8634
|
const Li = {
|
|
8635
8635
|
blockquote: Ic,
|
|
8636
8636
|
break: Cr,
|
|
8637
8637
|
code: Nc,
|
|
8638
|
-
definition:
|
|
8638
|
+
definition: Mc,
|
|
8639
8639
|
emphasis: Ci,
|
|
8640
8640
|
hardBreak: Cr,
|
|
8641
8641
|
heading: jc,
|
|
@@ -8649,7 +8649,7 @@ const Li = {
|
|
|
8649
8649
|
listItem: Jc,
|
|
8650
8650
|
paragraph: Kc,
|
|
8651
8651
|
root: ef,
|
|
8652
|
-
strong:
|
|
8652
|
+
strong: Pi,
|
|
8653
8653
|
text: rf,
|
|
8654
8654
|
thematicBreak: of
|
|
8655
8655
|
};
|
|
@@ -8862,13 +8862,13 @@ const bf = {
|
|
|
8862
8862
|
}, Ni = {
|
|
8863
8863
|
tokenize: If,
|
|
8864
8864
|
partial: !0
|
|
8865
|
-
},
|
|
8865
|
+
}, Ri = {
|
|
8866
8866
|
tokenize: Tf,
|
|
8867
8867
|
partial: !0
|
|
8868
8868
|
}, wf = {
|
|
8869
|
-
tokenize:
|
|
8869
|
+
tokenize: zf,
|
|
8870
8870
|
partial: !0
|
|
8871
|
-
},
|
|
8871
|
+
}, Mi = {
|
|
8872
8872
|
name: "wwwAutolink",
|
|
8873
8873
|
tokenize: vf,
|
|
8874
8874
|
previous: Oi
|
|
@@ -8876,27 +8876,27 @@ const bf = {
|
|
|
8876
8876
|
name: "protocolAutolink",
|
|
8877
8877
|
tokenize: _f,
|
|
8878
8878
|
previous: Bi
|
|
8879
|
-
},
|
|
8879
|
+
}, Ee = {
|
|
8880
8880
|
name: "emailAutolink",
|
|
8881
8881
|
tokenize: Sf,
|
|
8882
8882
|
previous: ji
|
|
8883
|
-
},
|
|
8883
|
+
}, we = {};
|
|
8884
8884
|
function Cf() {
|
|
8885
8885
|
return {
|
|
8886
|
-
text:
|
|
8886
|
+
text: we
|
|
8887
8887
|
};
|
|
8888
8888
|
}
|
|
8889
|
-
let
|
|
8890
|
-
for (;
|
|
8891
|
-
|
|
8892
|
-
|
|
8893
|
-
|
|
8894
|
-
|
|
8895
|
-
|
|
8896
|
-
|
|
8897
|
-
|
|
8898
|
-
|
|
8899
|
-
|
|
8889
|
+
let De = 48;
|
|
8890
|
+
for (; De < 123; )
|
|
8891
|
+
we[De] = Ee, De++, De === 58 ? De = 65 : De === 91 && (De = 97);
|
|
8892
|
+
we[43] = Ee;
|
|
8893
|
+
we[45] = Ee;
|
|
8894
|
+
we[46] = Ee;
|
|
8895
|
+
we[95] = Ee;
|
|
8896
|
+
we[72] = [Ee, Fi];
|
|
8897
|
+
we[104] = [Ee, Fi];
|
|
8898
|
+
we[87] = [Ee, Mi];
|
|
8899
|
+
we[119] = [Ee, Mi];
|
|
8900
8900
|
function Sf(e, n, t) {
|
|
8901
8901
|
const r = this;
|
|
8902
8902
|
let i, o;
|
|
@@ -8968,7 +8968,7 @@ function Af(e, n, t) {
|
|
|
8968
8968
|
let r, i, o;
|
|
8969
8969
|
return l;
|
|
8970
8970
|
function l(u) {
|
|
8971
|
-
return u === 46 || u === 95 ? e.check(
|
|
8971
|
+
return u === 46 || u === 95 ? e.check(Ri, s, a)(u) : u === null || J(u) || Oe(u) || u !== 45 && It(u) ? s(u) : (o = !0, e.consume(u), l);
|
|
8972
8972
|
}
|
|
8973
8973
|
function a(u) {
|
|
8974
8974
|
return u === 95 ? r = !0 : (i = r, r = void 0), e.consume(u), l;
|
|
@@ -8981,7 +8981,7 @@ function If(e, n) {
|
|
|
8981
8981
|
let t = 0, r = 0;
|
|
8982
8982
|
return i;
|
|
8983
8983
|
function i(l) {
|
|
8984
|
-
return l === 40 ? (t++, e.consume(l), i) : l === 41 && r < t ? o(l) : l === 33 || l === 34 || l === 38 || l === 39 || l === 41 || l === 42 || l === 44 || l === 46 || l === 58 || l === 59 || l === 60 || l === 63 || l === 93 || l === 95 || l === 126 ? e.check(
|
|
8984
|
+
return l === 40 ? (t++, e.consume(l), i) : l === 41 && r < t ? o(l) : l === 33 || l === 34 || l === 38 || l === 39 || l === 41 || l === 42 || l === 44 || l === 46 || l === 58 || l === 59 || l === 60 || l === 63 || l === 93 || l === 95 || l === 126 ? e.check(Ri, n, o)(l) : l === null || J(l) || Oe(l) ? n(l) : (e.consume(l), i);
|
|
8985
8985
|
}
|
|
8986
8986
|
function o(l) {
|
|
8987
8987
|
return l === 41 && r++, e.consume(l), i;
|
|
@@ -9006,7 +9006,7 @@ function Tf(e, n, t) {
|
|
|
9006
9006
|
return a === 59 ? (e.consume(a), r) : ae(a) ? (e.consume(a), l) : t(a);
|
|
9007
9007
|
}
|
|
9008
9008
|
}
|
|
9009
|
-
function
|
|
9009
|
+
function zf(e, n, t) {
|
|
9010
9010
|
return r;
|
|
9011
9011
|
function r(o) {
|
|
9012
9012
|
return e.consume(o), i;
|
|
@@ -9042,7 +9042,7 @@ function In(e) {
|
|
|
9042
9042
|
}
|
|
9043
9043
|
return e.length > 0 && !t && (e[e.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), t;
|
|
9044
9044
|
}
|
|
9045
|
-
const
|
|
9045
|
+
const Pf = {
|
|
9046
9046
|
tokenize: Bf,
|
|
9047
9047
|
partial: !0
|
|
9048
9048
|
};
|
|
@@ -9051,7 +9051,7 @@ function Lf() {
|
|
|
9051
9051
|
document: {
|
|
9052
9052
|
91: {
|
|
9053
9053
|
name: "gfmFootnoteDefinition",
|
|
9054
|
-
tokenize:
|
|
9054
|
+
tokenize: Mf,
|
|
9055
9055
|
continuation: {
|
|
9056
9056
|
tokenize: Ff
|
|
9057
9057
|
},
|
|
@@ -9061,7 +9061,7 @@ function Lf() {
|
|
|
9061
9061
|
text: {
|
|
9062
9062
|
91: {
|
|
9063
9063
|
name: "gfmFootnoteCall",
|
|
9064
|
-
tokenize:
|
|
9064
|
+
tokenize: Rf
|
|
9065
9065
|
},
|
|
9066
9066
|
93: {
|
|
9067
9067
|
name: "gfmPotentialFootnoteCall",
|
|
@@ -9147,7 +9147,7 @@ function Nf(e, n) {
|
|
|
9147
9147
|
];
|
|
9148
9148
|
return e.splice(t, e.length - t + 1, ...a), e;
|
|
9149
9149
|
}
|
|
9150
|
-
function
|
|
9150
|
+
function Rf(e, n, t) {
|
|
9151
9151
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
9152
9152
|
let o = 0, l;
|
|
9153
9153
|
return a;
|
|
@@ -9177,7 +9177,7 @@ function Mf(e, n, t) {
|
|
|
9177
9177
|
return c === 91 || c === 92 || c === 93 ? (e.consume(c), o++, u) : u(c);
|
|
9178
9178
|
}
|
|
9179
9179
|
}
|
|
9180
|
-
function
|
|
9180
|
+
function Mf(e, n, t) {
|
|
9181
9181
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
9182
9182
|
let o, l = 0, a;
|
|
9183
9183
|
return s;
|
|
@@ -9214,7 +9214,7 @@ function Rf(e, n, t) {
|
|
|
9214
9214
|
}
|
|
9215
9215
|
}
|
|
9216
9216
|
function Ff(e, n, t) {
|
|
9217
|
-
return e.check(ft, n, e.attempt(
|
|
9217
|
+
return e.check(ft, n, e.attempt(Pf, n, t));
|
|
9218
9218
|
}
|
|
9219
9219
|
function Of(e) {
|
|
9220
9220
|
e.exit("gfmFootnoteDefinition");
|
|
@@ -9394,12 +9394,12 @@ function qf(e, n, t) {
|
|
|
9394
9394
|
function a(k) {
|
|
9395
9395
|
let T = r.events.length - 1;
|
|
9396
9396
|
for (; T > -1; ) {
|
|
9397
|
-
const
|
|
9398
|
-
if (
|
|
9399
|
-
|
|
9397
|
+
const P = r.events[T][1].type;
|
|
9398
|
+
if (P === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
|
|
9399
|
+
P === "linePrefix") T--;
|
|
9400
9400
|
else break;
|
|
9401
9401
|
}
|
|
9402
|
-
const
|
|
9402
|
+
const z = T > -1 ? r.events[T][1].type : null, q = z === "tableHead" || z === "tableRow" ? x : s;
|
|
9403
9403
|
return q === x && r.parser.lazy[r.now().line] ? t(k) : q(k);
|
|
9404
9404
|
}
|
|
9405
9405
|
function s(k) {
|
|
@@ -9514,14 +9514,14 @@ function Ue(e, n) {
|
|
|
9514
9514
|
const t = e[n], r = t[0] === "enter" ? "start" : "end";
|
|
9515
9515
|
return t[1][r];
|
|
9516
9516
|
}
|
|
9517
|
-
const
|
|
9517
|
+
const Yf = {
|
|
9518
9518
|
name: "tasklistCheck",
|
|
9519
9519
|
tokenize: Xf
|
|
9520
9520
|
};
|
|
9521
|
-
function
|
|
9521
|
+
function Qf() {
|
|
9522
9522
|
return {
|
|
9523
9523
|
text: {
|
|
9524
|
-
91:
|
|
9524
|
+
91: Yf
|
|
9525
9525
|
}
|
|
9526
9526
|
};
|
|
9527
9527
|
}
|
|
@@ -9560,7 +9560,7 @@ function Jf(e) {
|
|
|
9560
9560
|
Lf(),
|
|
9561
9561
|
jf(e),
|
|
9562
9562
|
Uf(),
|
|
9563
|
-
|
|
9563
|
+
Qf()
|
|
9564
9564
|
]);
|
|
9565
9565
|
}
|
|
9566
9566
|
const Kf = {};
|
|
@@ -9571,7 +9571,7 @@ function Zf(e) {
|
|
|
9571
9571
|
), t = e || Kf, r = n.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), o = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), l = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
|
|
9572
9572
|
i.push(Jf(t)), o.push(kf()), l.push(xf(t));
|
|
9573
9573
|
}
|
|
9574
|
-
const ep = "
|
|
9574
|
+
const ep = "_wrapper_izvjy_1", tp = "_table_izvjy_15", np = "_th_izvjy_27", rp = "_tr_izvjy_47", ip = "_td_izvjy_63", nt = {
|
|
9575
9575
|
wrapper: ep,
|
|
9576
9576
|
table: tp,
|
|
9577
9577
|
th: np,
|
|
@@ -9579,12 +9579,12 @@ const ep = "_wrapper_v5oy7_1", tp = "_table_v5oy7_8", np = "_th_v5oy7_14", rp =
|
|
|
9579
9579
|
td: ip
|
|
9580
9580
|
};
|
|
9581
9581
|
function lp({ part: e }) {
|
|
9582
|
-
return /* @__PURE__ */ b("div", { className: nt.wrapper, children: /* @__PURE__ */
|
|
9582
|
+
return /* @__PURE__ */ b("div", { className: nt.wrapper, children: /* @__PURE__ */ Y("table", { className: nt.table, children: [
|
|
9583
9583
|
/* @__PURE__ */ b("thead", { children: /* @__PURE__ */ b("tr", { children: e.columns.map((n) => /* @__PURE__ */ b("th", { className: nt.th, children: n }, n)) }) }),
|
|
9584
9584
|
/* @__PURE__ */ b("tbody", { children: e.rows.map((n, t) => /* @__PURE__ */ b("tr", { className: nt.tr, children: e.columns.map((r) => /* @__PURE__ */ b("td", { className: nt.td, children: String(n[r] ?? "") }, r)) }, t)) })
|
|
9585
9585
|
] }) });
|
|
9586
9586
|
}
|
|
9587
|
-
const op = "
|
|
9587
|
+
const op = "_card_1gzm6_1", ap = "_header_1gzm6_17", sp = "_icon_1gzm6_31", up = "_title_1gzm6_45", cp = "_description_1gzm6_57", fp = "_cardResolved_1gzm6_71", pp = "_resolvedBadge_1gzm6_79", hp = "_actions_1gzm6_101", dp = "_confirm_1gzm6_111", mp = "_cancel_1gzm6_143", ye = {
|
|
9588
9588
|
card: op,
|
|
9589
9589
|
header: ap,
|
|
9590
9590
|
icon: sp,
|
|
@@ -9597,14 +9597,14 @@ const op = "_card_83cdc_1", ap = "_header_83cdc_9", sp = "_icon_83cdc_16", up =
|
|
|
9597
9597
|
cancel: mp
|
|
9598
9598
|
};
|
|
9599
9599
|
function gp({ part: e, onConfirm: n, onCancel: t }) {
|
|
9600
|
-
const r =
|
|
9601
|
-
return /* @__PURE__ */
|
|
9602
|
-
/* @__PURE__ */
|
|
9600
|
+
const r = Te(), { proposal: i } = e, o = i.resolved === "confirmed" ? r.proposalConfirmed : i.resolved === "cancelled" ? r.proposalCancelled : i.resolved === "expired" ? r.proposalExpired : null;
|
|
9601
|
+
return /* @__PURE__ */ Y("div", { className: i.resolved ? `${ye.card} ${ye.cardResolved}` : ye.card, children: [
|
|
9602
|
+
/* @__PURE__ */ Y("div", { className: ye.header, children: [
|
|
9603
9603
|
/* @__PURE__ */ b("svg", { className: ye.icon, viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ b("path", { d: "M10 1a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5A.75.75 0 0110 1zM5.05 3.05a.75.75 0 011.06 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06zm9.9 0a.75.75 0 010 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06a.75.75 0 011.06 0zM10 6a4 4 0 100 8 4 4 0 000-8zm-9 4a.75.75 0 01.75-.75h1.5a.75.75 0 010 1.5h-1.5A.75.75 0 011 10zm15.75-.75a.75.75 0 000 1.5h1.5a.75.75 0 000-1.5h-1.5zM4.11 14.89a.75.75 0 010 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06a.75.75 0 011.06 0zm11.84 1.06a.75.75 0 10-1.06-1.06l-1.06 1.06a.75.75 0 101.06 1.06l1.06-1.06zM10 17.25a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5a.75.75 0 01.75-.75z" }) }),
|
|
9604
9604
|
/* @__PURE__ */ b("span", { className: ye.title, children: i.title })
|
|
9605
9605
|
] }),
|
|
9606
9606
|
i.description && /* @__PURE__ */ b("p", { className: ye.description, children: i.description }),
|
|
9607
|
-
o ? /* @__PURE__ */ b("span", { className: ye.resolvedBadge, children: o }) : /* @__PURE__ */
|
|
9607
|
+
o ? /* @__PURE__ */ b("span", { className: ye.resolvedBadge, children: o }) : /* @__PURE__ */ Y("div", { className: ye.actions, children: [
|
|
9608
9608
|
/* @__PURE__ */ b(
|
|
9609
9609
|
"button",
|
|
9610
9610
|
{
|
|
@@ -9624,7 +9624,7 @@ function gp({ part: e, onConfirm: n, onCancel: t }) {
|
|
|
9624
9624
|
] })
|
|
9625
9625
|
] });
|
|
9626
9626
|
}
|
|
9627
|
-
const yp = "
|
|
9627
|
+
const yp = "_activity_1661l_1", kp = "_indicator_1661l_25", xp = "_content_1661l_71", bp = "_title_1661l_79", wp = "_description_1661l_89", rt = {
|
|
9628
9628
|
activity: yp,
|
|
9629
9629
|
indicator: kp,
|
|
9630
9630
|
content: xp,
|
|
@@ -9632,15 +9632,15 @@ const yp = "_activity_2jjfs_1", kp = "_indicator_2jjfs_13", xp = "_content_2jjfs
|
|
|
9632
9632
|
description: wp
|
|
9633
9633
|
};
|
|
9634
9634
|
function Cp({ part: e }) {
|
|
9635
|
-
return /* @__PURE__ */
|
|
9635
|
+
return /* @__PURE__ */ Y("div", { className: rt.activity, "data-status": e.status, children: [
|
|
9636
9636
|
/* @__PURE__ */ b("span", { className: rt.indicator, "aria-hidden": "true" }),
|
|
9637
|
-
/* @__PURE__ */
|
|
9637
|
+
/* @__PURE__ */ Y("div", { className: rt.content, children: [
|
|
9638
9638
|
/* @__PURE__ */ b("div", { className: rt.title, children: e.title }),
|
|
9639
9639
|
e.description && /* @__PURE__ */ b("div", { className: rt.description, children: e.description })
|
|
9640
9640
|
] })
|
|
9641
9641
|
] });
|
|
9642
9642
|
}
|
|
9643
|
-
const Sp = "_card_jwkcu_1", vp = "_cardClickable_jwkcu_14", _p = "_header_jwkcu_24", Ep = "_title_jwkcu_30", Ap = "_subtitle_jwkcu_36", Ip = "_fields_jwkcu_41", Tp = "_fieldRow_jwkcu_48",
|
|
9643
|
+
const Sp = "_card_jwkcu_1", vp = "_cardClickable_jwkcu_14", _p = "_header_jwkcu_24", Ep = "_title_jwkcu_30", Ap = "_subtitle_jwkcu_36", Ip = "_fields_jwkcu_41", Tp = "_fieldRow_jwkcu_48", zp = "_fieldLabel_jwkcu_55", Pp = "_fieldValue_jwkcu_61", Lp = "_badge_jwkcu_68", Dp = "_badgeSuccess_jwkcu_76", Np = "_badgeWarning_jwkcu_81", Rp = "_badgeDanger_jwkcu_86", Mp = "_badgeNeutral_jwkcu_91", oe = {
|
|
9644
9644
|
card: Sp,
|
|
9645
9645
|
cardClickable: vp,
|
|
9646
9646
|
header: _p,
|
|
@@ -9648,13 +9648,13 @@ const Sp = "_card_jwkcu_1", vp = "_cardClickable_jwkcu_14", _p = "_header_jwkcu_
|
|
|
9648
9648
|
subtitle: Ap,
|
|
9649
9649
|
fields: Ip,
|
|
9650
9650
|
fieldRow: Tp,
|
|
9651
|
-
fieldLabel:
|
|
9652
|
-
fieldValue:
|
|
9651
|
+
fieldLabel: zp,
|
|
9652
|
+
fieldValue: Pp,
|
|
9653
9653
|
badge: Lp,
|
|
9654
9654
|
badgeSuccess: Dp,
|
|
9655
9655
|
badgeWarning: Np,
|
|
9656
|
-
badgeDanger:
|
|
9657
|
-
badgeNeutral:
|
|
9656
|
+
badgeDanger: Rp,
|
|
9657
|
+
badgeNeutral: Mp
|
|
9658
9658
|
}, Fp = {
|
|
9659
9659
|
success: oe.badgeSuccess,
|
|
9660
9660
|
warning: oe.badgeWarning,
|
|
@@ -9662,12 +9662,12 @@ const Sp = "_card_jwkcu_1", vp = "_cardClickable_jwkcu_14", _p = "_header_jwkcu_
|
|
|
9662
9662
|
neutral: oe.badgeNeutral
|
|
9663
9663
|
};
|
|
9664
9664
|
function $i({ part: e, onEntityClick: n }) {
|
|
9665
|
-
const { entity: t, entityType: r } = e, i = n !== void 0, o = /* @__PURE__ */
|
|
9666
|
-
/* @__PURE__ */
|
|
9665
|
+
const { entity: t, entityType: r } = e, i = n !== void 0, o = /* @__PURE__ */ Y(un, { children: [
|
|
9666
|
+
/* @__PURE__ */ Y("div", { className: oe.header, children: [
|
|
9667
9667
|
/* @__PURE__ */ b("span", { className: oe.title, children: t.title }),
|
|
9668
9668
|
t.subtitle && /* @__PURE__ */ b("span", { className: oe.subtitle, children: t.subtitle })
|
|
9669
9669
|
] }),
|
|
9670
|
-
t.fields && t.fields.length > 0 && /* @__PURE__ */ b("dl", { className: oe.fields, children: t.fields.map((l, a) => /* @__PURE__ */
|
|
9670
|
+
t.fields && t.fields.length > 0 && /* @__PURE__ */ b("dl", { className: oe.fields, children: t.fields.map((l, a) => /* @__PURE__ */ Y("div", { className: oe.fieldRow, children: [
|
|
9671
9671
|
/* @__PURE__ */ b("dt", { className: oe.fieldLabel, children: l.label }),
|
|
9672
9672
|
/* @__PURE__ */ b("dd", { className: oe.fieldValue, children: l.badge ? /* @__PURE__ */ b("span", { className: `${oe.badge} ${Fp[l.badge]}`, children: l.value }) : l.value })
|
|
9673
9673
|
] }, a)) })
|
|
@@ -9687,7 +9687,7 @@ const Op = "_list_a2maw_1", Bp = "_listTitle_a2maw_11", Er = {
|
|
|
9687
9687
|
listTitle: Bp
|
|
9688
9688
|
};
|
|
9689
9689
|
function jp({ part: e, onEntityClick: n }) {
|
|
9690
|
-
return /* @__PURE__ */
|
|
9690
|
+
return /* @__PURE__ */ Y("div", { className: Er.list, children: [
|
|
9691
9691
|
e.title && /* @__PURE__ */ b("span", { className: Er.listTitle, children: e.title }),
|
|
9692
9692
|
e.entities.map((t, r) => /* @__PURE__ */ b(
|
|
9693
9693
|
$i,
|
|
@@ -9699,7 +9699,7 @@ function jp({ part: e, onEntityClick: n }) {
|
|
|
9699
9699
|
))
|
|
9700
9700
|
] });
|
|
9701
9701
|
}
|
|
9702
|
-
const $p = "
|
|
9702
|
+
const $p = "_markdown_sznoh_1", Hp = "_unknownPart_sznoh_167", Vp = "_errorText_sznoh_195", Up = "_errorIcon_sznoh_211", xt = {
|
|
9703
9703
|
markdown: $p,
|
|
9704
9704
|
unknownPart: Hp,
|
|
9705
9705
|
errorText: Vp,
|
|
@@ -9732,12 +9732,12 @@ function qp({ part: e, onProposalConfirm: n, onProposalCancel: t, onEntityClick:
|
|
|
9732
9732
|
case "entity-list":
|
|
9733
9733
|
return /* @__PURE__ */ b(jp, { part: e, onEntityClick: r });
|
|
9734
9734
|
case "error":
|
|
9735
|
-
return /* @__PURE__ */
|
|
9735
|
+
return /* @__PURE__ */ Y("span", { className: xt.errorText, children: [
|
|
9736
9736
|
/* @__PURE__ */ b(Al, { className: xt.errorIcon }),
|
|
9737
9737
|
e.message
|
|
9738
9738
|
] });
|
|
9739
9739
|
default:
|
|
9740
|
-
return globalThis.process?.env?.NODE_ENV !== "production" ? /* @__PURE__ */
|
|
9740
|
+
return globalThis.process?.env?.NODE_ENV !== "production" ? /* @__PURE__ */ Y("div", { className: xt.unknownPart, children: [
|
|
9741
9741
|
"Unhandled part type: ",
|
|
9742
9742
|
/* @__PURE__ */ b("code", { children: e.type }),
|
|
9743
9743
|
" — pass a",
|
|
@@ -9747,43 +9747,67 @@ function qp({ part: e, onProposalConfirm: n, onProposalCancel: t, onEntityClick:
|
|
|
9747
9747
|
] }) : null;
|
|
9748
9748
|
}
|
|
9749
9749
|
}
|
|
9750
|
-
const Wp = "
|
|
9750
|
+
const Wp = "_wrapper_1vhwh_1", Yp = "_user_1vhwh_8", Qp = "_assistant_1vhwh_12", Xp = "_avatar_1vhwh_16", Gp = "_content_1vhwh_39", Jp = "_bubble_1vhwh_55", Kp = "_block_1vhwh_65", Zp = "_empty_1vhwh_91", xe = {
|
|
9751
9751
|
wrapper: Wp,
|
|
9752
|
-
user:
|
|
9753
|
-
assistant:
|
|
9752
|
+
user: Yp,
|
|
9753
|
+
assistant: Qp,
|
|
9754
9754
|
avatar: Xp,
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
|
|
9758
|
-
|
|
9759
|
-
|
|
9760
|
-
|
|
9761
|
-
|
|
9762
|
-
|
|
9763
|
-
|
|
9764
|
-
|
|
9755
|
+
content: Gp,
|
|
9756
|
+
bubble: Jp,
|
|
9757
|
+
block: Kp,
|
|
9758
|
+
empty: Zp
|
|
9759
|
+
}, eh = /* @__PURE__ */ new Set(["text", "error", "activity"]);
|
|
9760
|
+
function th(e) {
|
|
9761
|
+
return !eh.has(e.type);
|
|
9762
|
+
}
|
|
9763
|
+
function nh(e) {
|
|
9764
|
+
const n = [];
|
|
9765
|
+
return e.forEach((t, r) => {
|
|
9766
|
+
const i = th(t), o = n[n.length - 1];
|
|
9767
|
+
if (o && !i && !o.block) {
|
|
9768
|
+
o.parts.push({ part: t, index: r });
|
|
9769
|
+
return;
|
|
9770
|
+
}
|
|
9771
|
+
n.push({ block: i, parts: [{ part: t, index: r }] });
|
|
9772
|
+
}), n;
|
|
9773
|
+
}
|
|
9774
|
+
function rh({ message: e, onProposalConfirm: n, onProposalCancel: t, onEntityClick: r, assistantIcon: i, renderPart: o }) {
|
|
9775
|
+
const l = Te(), a = e.role === "user", s = nh(e.parts), u = (f, c) => /* @__PURE__ */ b(
|
|
9776
|
+
qp,
|
|
9777
|
+
{
|
|
9778
|
+
part: f,
|
|
9779
|
+
onProposalConfirm: n,
|
|
9780
|
+
onProposalCancel: t,
|
|
9781
|
+
onEntityClick: r,
|
|
9782
|
+
renderPart: o
|
|
9783
|
+
},
|
|
9784
|
+
c
|
|
9785
|
+
);
|
|
9786
|
+
return /* @__PURE__ */ Y("div", { className: `${xe.wrapper} ${a ? xe.user : xe.assistant}`, children: [
|
|
9787
|
+
!a && /* @__PURE__ */ b("div", { className: xe.avatar, "aria-hidden": "true", children: i ?? /* @__PURE__ */ b(Nr, {}) }),
|
|
9788
|
+
/* @__PURE__ */ Y("div", { className: xe.content, children: [
|
|
9789
|
+
s.map((f, c) => /* @__PURE__ */ b(
|
|
9790
|
+
"div",
|
|
9765
9791
|
{
|
|
9766
|
-
|
|
9767
|
-
|
|
9768
|
-
|
|
9769
|
-
onEntityClick: r,
|
|
9770
|
-
renderPart: o
|
|
9792
|
+
className: f.block ? xe.block : xe.bubble,
|
|
9793
|
+
"data-juneau-segment": f.block ? "block" : "bubble",
|
|
9794
|
+
children: f.parts.map(({ part: h, index: p }) => u(h, p))
|
|
9771
9795
|
},
|
|
9772
|
-
|
|
9796
|
+
c
|
|
9773
9797
|
)),
|
|
9774
|
-
e.parts.length === 0 && /* @__PURE__ */ b("span", { className:
|
|
9798
|
+
e.parts.length === 0 && /* @__PURE__ */ b("div", { className: xe.bubble, "data-juneau-segment": "bubble", children: /* @__PURE__ */ b("span", { className: xe.empty }) })
|
|
9775
9799
|
] }),
|
|
9776
|
-
a && /* @__PURE__ */ b("div", { className:
|
|
9800
|
+
a && /* @__PURE__ */ b("div", { className: xe.avatar, children: l.userLabel })
|
|
9777
9801
|
] });
|
|
9778
9802
|
}
|
|
9779
|
-
const
|
|
9780
|
-
wrapper:
|
|
9781
|
-
dot:
|
|
9782
|
-
connectingLabel:
|
|
9803
|
+
const ih = "_wrapper_1oco7_1", lh = "_dot_1oco7_15", oh = "_connectingLabel_1oco7_37", it = {
|
|
9804
|
+
wrapper: ih,
|
|
9805
|
+
dot: lh,
|
|
9806
|
+
connectingLabel: oh
|
|
9783
9807
|
};
|
|
9784
|
-
function
|
|
9785
|
-
const n =
|
|
9786
|
-
return /* @__PURE__ */
|
|
9808
|
+
function ah({ connecting: e = !1 }) {
|
|
9809
|
+
const n = Te();
|
|
9810
|
+
return /* @__PURE__ */ Y(
|
|
9787
9811
|
"div",
|
|
9788
9812
|
{
|
|
9789
9813
|
className: it.wrapper,
|
|
@@ -9797,23 +9821,23 @@ function nh({ connecting: e = !1 }) {
|
|
|
9797
9821
|
}
|
|
9798
9822
|
);
|
|
9799
9823
|
}
|
|
9800
|
-
const
|
|
9801
|
-
list:
|
|
9802
|
-
empty:
|
|
9803
|
-
hint:
|
|
9804
|
-
typing:
|
|
9824
|
+
const sh = "_list_ixto8_1", uh = "_empty_ixto8_21", ch = "_hint_ixto8_47", fh = "_typing_ixto8_61", bt = {
|
|
9825
|
+
list: sh,
|
|
9826
|
+
empty: uh,
|
|
9827
|
+
hint: ch,
|
|
9828
|
+
typing: fh
|
|
9805
9829
|
};
|
|
9806
|
-
function
|
|
9807
|
-
const s =
|
|
9830
|
+
function ph({ messages: e, isLoading: n, isConnecting: t, onProposalConfirm: r, onProposalCancel: i, onEntityClick: o, assistantIcon: l, renderPart: a }) {
|
|
9831
|
+
const s = Te(), u = qe(null);
|
|
9808
9832
|
return St(() => {
|
|
9809
9833
|
u.current?.scrollIntoView({ behavior: "smooth" });
|
|
9810
|
-
}, [e, n]), /* @__PURE__ */
|
|
9811
|
-
e.length === 0 && /* @__PURE__ */
|
|
9834
|
+
}, [e, n]), /* @__PURE__ */ Y("div", { className: bt.list, children: [
|
|
9835
|
+
e.length === 0 && /* @__PURE__ */ Y("div", { className: bt.empty, children: [
|
|
9812
9836
|
/* @__PURE__ */ b("p", { children: s.emptyStateText }),
|
|
9813
9837
|
/* @__PURE__ */ b("p", { className: bt.hint, children: /* @__PURE__ */ b("em", { children: s.emptyStateHint }) })
|
|
9814
9838
|
] }),
|
|
9815
9839
|
e.map((f) => /* @__PURE__ */ b(
|
|
9816
|
-
|
|
9840
|
+
rh,
|
|
9817
9841
|
{
|
|
9818
9842
|
message: f,
|
|
9819
9843
|
onProposalConfirm: r,
|
|
@@ -9824,23 +9848,23 @@ function ah({ messages: e, isLoading: n, isConnecting: t, onProposalConfirm: r,
|
|
|
9824
9848
|
},
|
|
9825
9849
|
f.id
|
|
9826
9850
|
)),
|
|
9827
|
-
n && /* @__PURE__ */ b("div", { className: bt.typing, children: /* @__PURE__ */ b(
|
|
9851
|
+
n && /* @__PURE__ */ b("div", { className: bt.typing, children: /* @__PURE__ */ b(ah, { connecting: t }) }),
|
|
9828
9852
|
/* @__PURE__ */ b("div", { ref: u })
|
|
9829
9853
|
] });
|
|
9830
9854
|
}
|
|
9831
|
-
const
|
|
9832
|
-
wrapper:
|
|
9833
|
-
textarea:
|
|
9834
|
-
toolbar:
|
|
9835
|
-
actions:
|
|
9836
|
-
actionBtn:
|
|
9837
|
-
sendBtn:
|
|
9838
|
-
spinnerIcon:
|
|
9839
|
-
stopBtn:
|
|
9840
|
-
stopIcon:
|
|
9855
|
+
const hh = "_wrapper_ehrkb_1", dh = "_textarea_ehrkb_21", mh = "_toolbar_ehrkb_69", gh = "_actions_ehrkb_89", yh = "_actionBtn_ehrkb_103", kh = "_sendBtn_ehrkb_169", xh = "_spinnerIcon_ehrkb_231", bh = "_stopBtn_ehrkb_251", wh = "_stopIcon_ehrkb_297", ve = {
|
|
9856
|
+
wrapper: hh,
|
|
9857
|
+
textarea: dh,
|
|
9858
|
+
toolbar: mh,
|
|
9859
|
+
actions: gh,
|
|
9860
|
+
actionBtn: yh,
|
|
9861
|
+
sendBtn: kh,
|
|
9862
|
+
spinnerIcon: xh,
|
|
9863
|
+
stopBtn: bh,
|
|
9864
|
+
stopIcon: wh
|
|
9841
9865
|
};
|
|
9842
|
-
function
|
|
9843
|
-
const s =
|
|
9866
|
+
function Ch({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeholder: o, actions: l, sendIcon: a }) {
|
|
9867
|
+
const s = Te(), u = qe(null), f = qe(!1);
|
|
9844
9868
|
St(() => {
|
|
9845
9869
|
f.current && !i && u.current?.focus(), f.current = i;
|
|
9846
9870
|
}, [i]);
|
|
@@ -9853,12 +9877,12 @@ function yh({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
|
|
|
9853
9877
|
], h = l ?? c, p = (g) => {
|
|
9854
9878
|
g.key === "Enter" && !g.shiftKey && (g.preventDefault(), i || t());
|
|
9855
9879
|
};
|
|
9856
|
-
return /* @__PURE__ */
|
|
9880
|
+
return /* @__PURE__ */ Y("div", { className: ve.wrapper, children: [
|
|
9857
9881
|
/* @__PURE__ */ b(
|
|
9858
9882
|
"textarea",
|
|
9859
9883
|
{
|
|
9860
9884
|
ref: u,
|
|
9861
|
-
className:
|
|
9885
|
+
className: ve.textarea,
|
|
9862
9886
|
value: e,
|
|
9863
9887
|
onChange: (g) => n(g.target.value),
|
|
9864
9888
|
onKeyDown: p,
|
|
@@ -9867,11 +9891,11 @@ function yh({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
|
|
|
9867
9891
|
"aria-label": s.sendMessage
|
|
9868
9892
|
}
|
|
9869
9893
|
),
|
|
9870
|
-
/* @__PURE__ */
|
|
9871
|
-
h.length > 0 && /* @__PURE__ */ b("div", { className:
|
|
9894
|
+
/* @__PURE__ */ Y("div", { className: ve.toolbar, children: [
|
|
9895
|
+
h.length > 0 && /* @__PURE__ */ b("div", { className: ve.actions, children: h.map((g, C) => /* @__PURE__ */ Y(
|
|
9872
9896
|
"button",
|
|
9873
9897
|
{
|
|
9874
|
-
className:
|
|
9898
|
+
className: ve.actionBtn,
|
|
9875
9899
|
type: "button",
|
|
9876
9900
|
disabled: i,
|
|
9877
9901
|
"aria-label": g.label,
|
|
@@ -9883,28 +9907,28 @@ function yh({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
|
|
|
9883
9907
|
},
|
|
9884
9908
|
C
|
|
9885
9909
|
)) }),
|
|
9886
|
-
i && r ? /* @__PURE__ */
|
|
9910
|
+
i && r ? /* @__PURE__ */ Y(
|
|
9887
9911
|
"button",
|
|
9888
9912
|
{
|
|
9889
|
-
className:
|
|
9913
|
+
className: ve.stopBtn,
|
|
9890
9914
|
onClick: r,
|
|
9891
9915
|
"aria-label": s.stopMessage,
|
|
9892
9916
|
type: "button",
|
|
9893
9917
|
children: [
|
|
9894
|
-
/* @__PURE__ */ b("svg", { className:
|
|
9918
|
+
/* @__PURE__ */ b("svg", { className: ve.stopIcon, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ b("rect", { x: "6", y: "6", width: "12", height: "12", rx: "2" }) }),
|
|
9895
9919
|
/* @__PURE__ */ b("span", { children: s.stopMessage })
|
|
9896
9920
|
]
|
|
9897
9921
|
}
|
|
9898
|
-
) : /* @__PURE__ */
|
|
9922
|
+
) : /* @__PURE__ */ Y(
|
|
9899
9923
|
"button",
|
|
9900
9924
|
{
|
|
9901
|
-
className:
|
|
9925
|
+
className: ve.sendBtn,
|
|
9902
9926
|
onClick: t,
|
|
9903
9927
|
disabled: i || !e.trim(),
|
|
9904
9928
|
"aria-label": s.sendMessage,
|
|
9905
9929
|
type: "button",
|
|
9906
9930
|
children: [
|
|
9907
|
-
i ? /* @__PURE__ */ b("svg", { className:
|
|
9931
|
+
i ? /* @__PURE__ */ b("svg", { className: ve.spinnerIcon, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ b("circle", { cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeDasharray: "32", strokeDashoffset: "12" }) }) : a ?? /* @__PURE__ */ b(xl, {}),
|
|
9908
9932
|
/* @__PURE__ */ b("span", { children: s.sendMessage })
|
|
9909
9933
|
]
|
|
9910
9934
|
}
|
|
@@ -9912,24 +9936,24 @@ function yh({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
|
|
|
9912
9936
|
] })
|
|
9913
9937
|
] });
|
|
9914
9938
|
}
|
|
9915
|
-
const
|
|
9916
|
-
wrapper:
|
|
9917
|
-
icon:
|
|
9918
|
-
message:
|
|
9919
|
-
dismiss:
|
|
9939
|
+
const Sh = "_wrapper_1e3w5_1", vh = "_icon_1e3w5_27", _h = "_message_1e3w5_39", Eh = "_dismiss_1e3w5_47", wt = {
|
|
9940
|
+
wrapper: Sh,
|
|
9941
|
+
icon: vh,
|
|
9942
|
+
message: _h,
|
|
9943
|
+
dismiss: Eh
|
|
9920
9944
|
};
|
|
9921
|
-
function
|
|
9922
|
-
const t =
|
|
9923
|
-
return /* @__PURE__ */
|
|
9945
|
+
function Ah({ message: e, onDismiss: n }) {
|
|
9946
|
+
const t = Te();
|
|
9947
|
+
return /* @__PURE__ */ Y("div", { className: wt.wrapper, role: "alert", children: [
|
|
9924
9948
|
/* @__PURE__ */ b("svg", { className: wt.icon, viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ b("path", { fillRule: "evenodd", d: "M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" }) }),
|
|
9925
9949
|
/* @__PURE__ */ b("span", { className: wt.message, children: e }),
|
|
9926
9950
|
n && /* @__PURE__ */ b("button", { className: wt.dismiss, onClick: n, "aria-label": t.errorDismiss, children: /* @__PURE__ */ b("svg", { viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ b("path", { d: "M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z" }) }) })
|
|
9927
9951
|
] });
|
|
9928
9952
|
}
|
|
9929
|
-
const
|
|
9930
|
-
chat:
|
|
9953
|
+
const Ih = "_chat_13051_1", Th = {
|
|
9954
|
+
chat: Ih
|
|
9931
9955
|
};
|
|
9932
|
-
function
|
|
9956
|
+
function zh({
|
|
9933
9957
|
messages: e,
|
|
9934
9958
|
input: n,
|
|
9935
9959
|
isLoading: t,
|
|
@@ -9949,14 +9973,14 @@ function _h({
|
|
|
9949
9973
|
className: S,
|
|
9950
9974
|
style: y
|
|
9951
9975
|
}) {
|
|
9952
|
-
return /* @__PURE__ */
|
|
9976
|
+
return /* @__PURE__ */ Y(
|
|
9953
9977
|
"div",
|
|
9954
9978
|
{
|
|
9955
|
-
className: [
|
|
9979
|
+
className: [Th.chat, S].filter(Boolean).join(" "),
|
|
9956
9980
|
style: y,
|
|
9957
9981
|
children: [
|
|
9958
9982
|
/* @__PURE__ */ b(
|
|
9959
|
-
|
|
9983
|
+
ph,
|
|
9960
9984
|
{
|
|
9961
9985
|
messages: e,
|
|
9962
9986
|
isLoading: t,
|
|
@@ -9968,9 +9992,9 @@ function _h({
|
|
|
9968
9992
|
renderPart: C
|
|
9969
9993
|
}
|
|
9970
9994
|
),
|
|
9971
|
-
i && /* @__PURE__ */ b(
|
|
9995
|
+
i && /* @__PURE__ */ b(Ah, { message: i }),
|
|
9972
9996
|
/* @__PURE__ */ b(
|
|
9973
|
-
|
|
9997
|
+
Ch,
|
|
9974
9998
|
{
|
|
9975
9999
|
value: n,
|
|
9976
10000
|
onChange: o,
|
|
@@ -9986,22 +10010,22 @@ function _h({
|
|
|
9986
10010
|
}
|
|
9987
10011
|
);
|
|
9988
10012
|
}
|
|
9989
|
-
const
|
|
9990
|
-
header:
|
|
9991
|
-
left:
|
|
9992
|
-
icon:
|
|
9993
|
-
title:
|
|
9994
|
-
resetBtn:
|
|
9995
|
-
actions:
|
|
10013
|
+
const Ph = "_header_1saak_1", Lh = "_left_1saak_23", Dh = "_icon_1saak_35", Nh = "_title_1saak_45", Rh = "_resetBtn_1saak_57", Mh = "_actions_1saak_99", Ne = {
|
|
10014
|
+
header: Ph,
|
|
10015
|
+
left: Lh,
|
|
10016
|
+
icon: Dh,
|
|
10017
|
+
title: Nh,
|
|
10018
|
+
resetBtn: Rh,
|
|
10019
|
+
actions: Mh
|
|
9996
10020
|
};
|
|
9997
|
-
function
|
|
9998
|
-
const o =
|
|
9999
|
-
return /* @__PURE__ */
|
|
10000
|
-
/* @__PURE__ */
|
|
10021
|
+
function Fh({ title: e, onMinimize: n, isMinimized: t, icon: r, onReset: i }) {
|
|
10022
|
+
const o = Te();
|
|
10023
|
+
return /* @__PURE__ */ Y("div", { className: Ne.header, children: [
|
|
10024
|
+
/* @__PURE__ */ Y("div", { className: Ne.left, children: [
|
|
10001
10025
|
/* @__PURE__ */ b("span", { className: Ne.icon, "aria-hidden": "true", children: r ?? /* @__PURE__ */ b(Nr, {}) }),
|
|
10002
10026
|
/* @__PURE__ */ b("span", { className: Ne.title, children: e ?? o.sidebarTitle })
|
|
10003
10027
|
] }),
|
|
10004
|
-
(n || i) && /* @__PURE__ */
|
|
10028
|
+
(n || i) && /* @__PURE__ */ Y("div", { className: Ne.actions, children: [
|
|
10005
10029
|
i && /* @__PURE__ */ b(
|
|
10006
10030
|
"button",
|
|
10007
10031
|
{
|
|
@@ -10025,11 +10049,11 @@ function Lh({ title: e, onMinimize: n, isMinimized: t, icon: r, onReset: i }) {
|
|
|
10025
10049
|
] })
|
|
10026
10050
|
] });
|
|
10027
10051
|
}
|
|
10028
|
-
const
|
|
10029
|
-
sidebar:
|
|
10030
|
-
minimized:
|
|
10052
|
+
const Oh = "_sidebar_u9ybt_1", Bh = "_minimized_u9ybt_39", Ar = {
|
|
10053
|
+
sidebar: Oh,
|
|
10054
|
+
minimized: Bh
|
|
10031
10055
|
};
|
|
10032
|
-
function
|
|
10056
|
+
function ld({
|
|
10033
10057
|
title: e,
|
|
10034
10058
|
icon: n,
|
|
10035
10059
|
actions: t,
|
|
@@ -10041,7 +10065,7 @@ function ed({
|
|
|
10041
10065
|
renderPart: s,
|
|
10042
10066
|
onEntityClick: u
|
|
10043
10067
|
}) {
|
|
10044
|
-
const [f, c] =
|
|
10068
|
+
const [f, c] = Me(!1), {
|
|
10045
10069
|
messages: h,
|
|
10046
10070
|
input: p,
|
|
10047
10071
|
setInput: g,
|
|
@@ -10056,14 +10080,14 @@ function ed({
|
|
|
10056
10080
|
} = kl(), O = a ? () => {
|
|
10057
10081
|
L(), a();
|
|
10058
10082
|
} : void 0;
|
|
10059
|
-
return /* @__PURE__ */
|
|
10083
|
+
return /* @__PURE__ */ Y(
|
|
10060
10084
|
"aside",
|
|
10061
10085
|
{
|
|
10062
10086
|
className: [Ar.sidebar, f ? Ar.minimized : "", o].filter(Boolean).join(" "),
|
|
10063
10087
|
style: { height: f ? void 0 : i, ...l },
|
|
10064
10088
|
children: [
|
|
10065
10089
|
/* @__PURE__ */ b(
|
|
10066
|
-
|
|
10090
|
+
Fh,
|
|
10067
10091
|
{
|
|
10068
10092
|
title: e,
|
|
10069
10093
|
icon: n,
|
|
@@ -10073,7 +10097,7 @@ function ed({
|
|
|
10073
10097
|
}
|
|
10074
10098
|
),
|
|
10075
10099
|
!f && /* @__PURE__ */ b(
|
|
10076
|
-
|
|
10100
|
+
zh,
|
|
10077
10101
|
{
|
|
10078
10102
|
messages: h,
|
|
10079
10103
|
input: p,
|
|
@@ -10096,34 +10120,34 @@ function ed({
|
|
|
10096
10120
|
}
|
|
10097
10121
|
);
|
|
10098
10122
|
}
|
|
10099
|
-
const
|
|
10100
|
-
list:
|
|
10101
|
-
item:
|
|
10102
|
-
chat:
|
|
10103
|
-
chatActive:
|
|
10104
|
-
title:
|
|
10105
|
-
date:
|
|
10106
|
-
delete: "
|
|
10107
|
-
empty:
|
|
10123
|
+
const jh = "_list_j7fvh_1", $h = "_item_j7fvh_19", Hh = "_chat_j7fvh_31", Vh = "_chatActive_j7fvh_71", Uh = "_title_j7fvh_79", qh = "_date_j7fvh_99", Wh = "_empty_j7fvh_163", _e = {
|
|
10124
|
+
list: jh,
|
|
10125
|
+
item: $h,
|
|
10126
|
+
chat: Hh,
|
|
10127
|
+
chatActive: Vh,
|
|
10128
|
+
title: Uh,
|
|
10129
|
+
date: qh,
|
|
10130
|
+
delete: "_delete_j7fvh_111",
|
|
10131
|
+
empty: Wh
|
|
10108
10132
|
};
|
|
10109
|
-
function
|
|
10110
|
-
const i =
|
|
10111
|
-
return e.length === 0 ? /* @__PURE__ */ b("p", { className:
|
|
10112
|
-
/* @__PURE__ */
|
|
10133
|
+
function od({ chats: e, onSelect: n, activeChatId: t, onDelete: r }) {
|
|
10134
|
+
const i = Te();
|
|
10135
|
+
return e.length === 0 ? /* @__PURE__ */ b("p", { className: _e.empty, children: i.historyEmpty }) : /* @__PURE__ */ b("ul", { className: _e.list, children: e.map((o) => /* @__PURE__ */ Y("li", { className: _e.item, children: [
|
|
10136
|
+
/* @__PURE__ */ Y(
|
|
10113
10137
|
"button",
|
|
10114
10138
|
{
|
|
10115
|
-
className: o.id === t ? `${
|
|
10139
|
+
className: o.id === t ? `${_e.chat} ${_e.chatActive}` : _e.chat,
|
|
10116
10140
|
onClick: () => n(o.id),
|
|
10117
10141
|
children: [
|
|
10118
|
-
/* @__PURE__ */ b("span", { className:
|
|
10119
|
-
/* @__PURE__ */ b("span", { className:
|
|
10142
|
+
/* @__PURE__ */ b("span", { className: _e.title, children: o.title }),
|
|
10143
|
+
/* @__PURE__ */ b("span", { className: _e.date, children: o.updatedAt.toLocaleDateString(void 0, { day: "numeric", month: "short" }) })
|
|
10120
10144
|
]
|
|
10121
10145
|
}
|
|
10122
10146
|
),
|
|
10123
10147
|
r && /* @__PURE__ */ b(
|
|
10124
10148
|
"button",
|
|
10125
10149
|
{
|
|
10126
|
-
className:
|
|
10150
|
+
className: _e.delete,
|
|
10127
10151
|
onClick: () => r(o.id),
|
|
10128
10152
|
"aria-label": i.historyDeleteChat,
|
|
10129
10153
|
children: /* @__PURE__ */ b("svg", { viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ b("path", { d: "M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z" }) })
|
|
@@ -10133,39 +10157,39 @@ function td({ chats: e, onSelect: n, activeChatId: t, onDelete: r }) {
|
|
|
10133
10157
|
}
|
|
10134
10158
|
export {
|
|
10135
10159
|
Cp as AiActivityPart,
|
|
10136
|
-
|
|
10160
|
+
zh as AiChat,
|
|
10137
10161
|
cn as AiChatContext,
|
|
10138
|
-
|
|
10139
|
-
|
|
10162
|
+
od as AiChatHistoryList,
|
|
10163
|
+
rd as AiChatProvider,
|
|
10140
10164
|
$i as AiEntityCard,
|
|
10141
10165
|
jp as AiEntityListPart,
|
|
10142
|
-
|
|
10143
|
-
|
|
10144
|
-
|
|
10145
|
-
|
|
10166
|
+
Ah as AiError,
|
|
10167
|
+
Ch as AiInput,
|
|
10168
|
+
rh as AiMessageBubble,
|
|
10169
|
+
ph as AiMessageList,
|
|
10146
10170
|
qp as AiMessagePartRenderer,
|
|
10147
10171
|
gp as AiProposalCard,
|
|
10148
|
-
|
|
10172
|
+
ld as AiSidebar,
|
|
10149
10173
|
lp as AiTablePart,
|
|
10150
|
-
|
|
10151
|
-
|
|
10174
|
+
ah as AiTypingIndicator,
|
|
10175
|
+
td as JuneauProvider,
|
|
10152
10176
|
Nn as consumeStream,
|
|
10153
|
-
|
|
10154
|
-
|
|
10177
|
+
ed as createFetchStreamAdapter,
|
|
10178
|
+
Zh as createSseAdapter,
|
|
10155
10179
|
K as delay,
|
|
10156
|
-
|
|
10180
|
+
Gh as deserializeMessages,
|
|
10157
10181
|
Ki as getMessageText,
|
|
10158
|
-
|
|
10159
|
-
|
|
10182
|
+
zr as isProposalPart,
|
|
10183
|
+
id as juneauCs,
|
|
10160
10184
|
Lr as juneauEn,
|
|
10161
|
-
|
|
10162
|
-
|
|
10163
|
-
|
|
10185
|
+
Kh as mockAdapter,
|
|
10186
|
+
Pr as parseJuneauWire,
|
|
10187
|
+
Xh as serializeForStorage,
|
|
10164
10188
|
Ji as serializeMessages,
|
|
10165
|
-
|
|
10189
|
+
Jh as trimChats,
|
|
10166
10190
|
tl as trimHistory,
|
|
10167
10191
|
dl as useAiChat,
|
|
10168
10192
|
kl as useAiChatContext,
|
|
10169
|
-
|
|
10193
|
+
nd as useAiChatContextSafe
|
|
10170
10194
|
};
|
|
10171
10195
|
//# sourceMappingURL=index.js.map
|