@omg-dev/app 0.6.7 → 0.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/{ChangelogPage-CIqhAd0J.js → ChangelogPage-kwazjQ_I.js} +14 -1
- package/dist-lib/{SessionFilesPanel-Nskr6CeL.js → SessionFilesPanel-B4YhOD6k.js} +1 -1
- package/dist-lib/{TermView-BJiNNctq.js → TermView-ujCdqe_w.js} +2 -2
- package/dist-lib/{chat-engine-D_Mro1_1.js → chat-engine-BpexbmRA.js} +1 -1
- package/dist-lib/{chunk-BO2N2NFS-BbJdm-59.js → chunk-YOKDWASO-B5AA2F8u.js} +4960 -4685
- package/dist-lib/{coding-agents-page-DFfXA2ly.js → coding-agents-page-DN72IK-F.js} +1 -1
- package/dist-lib/{computer-page-D9Ay3xK3.js → computer-page-nUNnrJpN.js} +2 -2
- package/dist-lib/{embedded-CJmbshmA.js → embedded-DzGChUt5.js} +14 -14
- package/dist-lib/highlighted-body-KPVGNVTW-CKqvokuv.js +19 -0
- package/dist-lib/index-DvGsWrXd.js +29 -0
- package/dist-lib/{index-FgVvPpIY.js → index-DwqRQdS3.js} +11 -11
- package/dist-lib/index.js +1 -1
- package/dist-lib/{keyboard-Yw0o-O_G.js → keyboard-C-THb0rI.js} +1 -1
- package/dist-lib/mermaid-HWGCJPDP-Bdyjop7F.js +4 -0
- package/dist-lib/{resume-session-sheet-BMow5ukO.js → resume-session-sheet-BwmBNqEi.js} +1 -1
- package/dist-lib/{session-token-usage-BIg6cXci.js → session-token-usage-Cf8oHrBd.js} +1 -1
- package/dist-lib/{shipped-page-Cx05Zqdi.js → shipped-page-W9qAgb9s.js} +1 -1
- package/dist-lib/{streamdown-response-er0BYujC.js → streamdown-response-BuDlyhpf.js} +105 -103
- package/dist-lib/styles.css +1 -1
- package/package.json +3 -3
- package/dist-lib/highlighted-body-OFNGDK62-DWhG_ijx.js +0 -19
- package/dist-lib/index-CE7H8LiZ.js +0 -29
- package/dist-lib/mermaid-GHXKKRXX-hOE9C3qW.js +0 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as B, jsxs as ae } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as We, useState as Ce, useEffect as xe, useRef as Ve } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { r as He, t as T, o as Ue, u as be, y as L, A as Je, a as Qe } from "./chunk-YOKDWASO-B5AA2F8u.js";
|
|
4
4
|
import { b as Xe, c as Ye, a as Ze, d as Ke } from "./engine-compile-D_stzVMa.js";
|
|
5
5
|
import { cn as je } from "cnfast";
|
|
6
|
-
import { a9 as et, y as tt, aa as nt } from "./embedded-
|
|
6
|
+
import { a9 as et, y as tt, aa as nt } from "./embedded-DzGChUt5.js";
|
|
7
7
|
const d = (
|
|
8
8
|
/** @type {const} */
|
|
9
9
|
{
|
|
@@ -48,7 +48,7 @@ const d = (
|
|
|
48
48
|
// Includes text.
|
|
49
49
|
strongText: "strongText"
|
|
50
50
|
}
|
|
51
|
-
), rt = 161, it = 1114109, ot = [161, 161, 164, 164, 167, 168, 170, 170, 173, 174, 176, 180, 182, 186, 188, 191, 198, 198, 208, 208, 215, 216, 222, 225, 230, 230, 232, 234, 236, 237, 240, 240, 242, 243, 247, 250, 252, 252, 254, 254, 257, 257, 273, 273, 275, 275, 283, 283, 294, 295, 299, 299, 305, 307, 312, 312, 319, 322, 324, 324, 328, 331, 333, 333, 338, 339, 358, 359, 363, 363, 462, 462, 464, 464, 466, 466, 468, 468, 470, 470, 472, 472, 474, 474, 476, 476, 593, 593, 609, 609, 708, 708, 711, 711, 713, 715, 717, 717, 720, 720, 728, 731, 733, 733, 735, 735, 768, 879, 913, 929, 931, 937, 945, 961, 963, 969, 1025, 1025, 1040, 1103, 1105, 1105, 8208, 8208, 8211, 8214, 8216, 8217, 8220, 8221, 8224, 8226, 8228, 8231, 8240, 8240, 8242, 8243, 8245, 8245, 8251, 8251, 8254, 8254, 8308, 8308, 8319, 8319, 8321, 8324, 8364, 8364, 8451, 8451, 8453, 8453, 8457, 8457, 8467, 8467, 8470, 8470, 8481, 8482, 8486, 8486, 8491, 8491, 8531, 8532, 8539, 8542, 8544, 8555, 8560, 8569, 8585, 8585, 8592, 8601, 8632, 8633, 8658, 8658, 8660, 8660, 8679, 8679, 8704, 8704, 8706, 8707, 8711, 8712, 8715, 8715, 8719, 8719, 8721, 8721, 8725, 8725, 8730, 8730, 8733, 8736, 8739, 8739, 8741, 8741, 8743, 8748, 8750, 8750, 8756, 8759, 8764, 8765, 8776, 8776, 8780, 8780, 8786, 8786, 8800, 8801, 8804, 8807, 8810, 8811, 8814, 8815, 8834, 8835, 8838, 8839, 8853, 8853, 8857, 8857, 8869, 8869, 8895, 8895, 8978, 8978, 9312, 9449, 9451, 9547, 9552, 9587, 9600, 9615, 9618, 9621, 9632, 9633, 9635, 9641, 9650, 9651, 9654, 9655, 9660, 9661, 9664, 9665, 9670, 9672, 9675, 9675, 9678, 9681, 9698, 9701, 9711, 9711, 9733, 9734, 9737, 9737, 9742, 9743, 9756, 9756, 9758, 9758, 9792, 9792, 9794, 9794, 9824, 9825, 9827, 9829, 9831, 9834, 9836, 9837, 9839, 9839, 9886, 9887, 9919, 9919, 9926, 9933, 9935, 9939, 9941, 9953, 9955, 9955, 9960, 9961, 9963, 9969, 9972, 9972, 9974, 9977, 9979, 9980, 9982, 9983, 10045, 10045, 10102, 10111, 11094, 11097, 12872, 12879, 57344, 63743, 65024, 65039, 65533, 65533, 127232, 127242, 127248, 127277, 127280, 127337, 127344, 127373, 127375, 127376, 127387, 127404, 917760, 917999, 983040, 1048573, 1048576, 1114109], st = 12288, ut = 65510, at = [12288, 12288, 65281, 65376, 65504, 65510], ct = 8361, lt = 65518, ft = [8361, 8361, 65377, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65512, 65518], dt = 32,
|
|
51
|
+
), rt = 161, it = 1114109, ot = [161, 161, 164, 164, 167, 168, 170, 170, 173, 174, 176, 180, 182, 186, 188, 191, 198, 198, 208, 208, 215, 216, 222, 225, 230, 230, 232, 234, 236, 237, 240, 240, 242, 243, 247, 250, 252, 252, 254, 254, 257, 257, 273, 273, 275, 275, 283, 283, 294, 295, 299, 299, 305, 307, 312, 312, 319, 322, 324, 324, 328, 331, 333, 333, 338, 339, 358, 359, 363, 363, 462, 462, 464, 464, 466, 466, 468, 468, 470, 470, 472, 472, 474, 474, 476, 476, 593, 593, 609, 609, 708, 708, 711, 711, 713, 715, 717, 717, 720, 720, 728, 731, 733, 733, 735, 735, 768, 879, 913, 929, 931, 937, 945, 961, 963, 969, 1025, 1025, 1040, 1103, 1105, 1105, 8208, 8208, 8211, 8214, 8216, 8217, 8220, 8221, 8224, 8226, 8228, 8231, 8240, 8240, 8242, 8243, 8245, 8245, 8251, 8251, 8254, 8254, 8308, 8308, 8319, 8319, 8321, 8324, 8364, 8364, 8451, 8451, 8453, 8453, 8457, 8457, 8467, 8467, 8470, 8470, 8481, 8482, 8486, 8486, 8491, 8491, 8531, 8532, 8539, 8542, 8544, 8555, 8560, 8569, 8585, 8585, 8592, 8601, 8632, 8633, 8658, 8658, 8660, 8660, 8679, 8679, 8704, 8704, 8706, 8707, 8711, 8712, 8715, 8715, 8719, 8719, 8721, 8721, 8725, 8725, 8730, 8730, 8733, 8736, 8739, 8739, 8741, 8741, 8743, 8748, 8750, 8750, 8756, 8759, 8764, 8765, 8776, 8776, 8780, 8780, 8786, 8786, 8800, 8801, 8804, 8807, 8810, 8811, 8814, 8815, 8834, 8835, 8838, 8839, 8853, 8853, 8857, 8857, 8869, 8869, 8895, 8895, 8978, 8978, 9312, 9449, 9451, 9547, 9552, 9587, 9600, 9615, 9618, 9621, 9632, 9633, 9635, 9641, 9650, 9651, 9654, 9655, 9660, 9661, 9664, 9665, 9670, 9672, 9675, 9675, 9678, 9681, 9698, 9701, 9711, 9711, 9733, 9734, 9737, 9737, 9742, 9743, 9756, 9756, 9758, 9758, 9792, 9792, 9794, 9794, 9824, 9825, 9827, 9829, 9831, 9834, 9836, 9837, 9839, 9839, 9886, 9887, 9919, 9919, 9926, 9933, 9935, 9939, 9941, 9953, 9955, 9955, 9960, 9961, 9963, 9969, 9972, 9972, 9974, 9977, 9979, 9980, 9982, 9983, 10045, 10045, 10102, 10111, 11094, 11097, 12872, 12879, 57344, 63743, 65024, 65039, 65533, 65533, 127232, 127242, 127248, 127277, 127280, 127337, 127344, 127373, 127375, 127376, 127387, 127404, 917760, 917999, 983040, 1048573, 1048576, 1114109], st = 12288, ut = 65510, at = [12288, 12288, 65281, 65376, 65504, 65510], ct = 8361, lt = 65518, ft = [8361, 8361, 65377, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65512, 65518], dt = 32, ht = 10630, pt = [32, 126, 162, 163, 165, 166, 172, 172, 175, 175, 10214, 10221, 10629, 10630], gt = 4352, mt = 262141, we = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208, 101589, 101631, 101662, 101760, 101874, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110882, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110951, 110960, 111355, 119552, 119638, 119648, 119670, 126980, 126980, 127183, 127183, 127374, 127374, 127377, 127386, 127488, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589, 127744, 127776, 127789, 127797, 127799, 127868, 127870, 127891, 127904, 127946, 127951, 127955, 127968, 127984, 127988, 127988, 127992, 128062, 128064, 128064, 128066, 128252, 128255, 128317, 128331, 128334, 128336, 128359, 128378, 128378, 128405, 128406, 128420, 128420, 128507, 128591, 128640, 128709, 128716, 128716, 128720, 128722, 128725, 128728, 128732, 128735, 128747, 128748, 128756, 128764, 128992, 129003, 129008, 129008, 129292, 129338, 129340, 129349, 129351, 129535, 129648, 129660, 129664, 129674, 129678, 129734, 129736, 129736, 129741, 129756, 129759, 129770, 129775, 129784, 131072, 196605, 196608, 262141], N = (e, t) => {
|
|
52
52
|
let n = 0, r = Math.floor(e.length / 2) - 1;
|
|
53
53
|
for (; n <= r; ) {
|
|
54
54
|
const o = Math.floor((n + r) / 2), i = o * 2;
|
|
@@ -71,7 +71,7 @@ function St(e) {
|
|
|
71
71
|
}
|
|
72
72
|
return [t, n];
|
|
73
73
|
}
|
|
74
|
-
const Ct = (e) => e < rt || e > it ? !1 : N(ot, e), xt = (e) => e < st || e > ut ? !1 : N(at, e), bt = (e) => e < ct || e > lt ? !1 : N(ft, e), jt = (e) => e < dt || e >
|
|
74
|
+
const Ct = (e) => e < rt || e > it ? !1 : N(ot, e), xt = (e) => e < st || e > ut ? !1 : N(at, e), bt = (e) => e < ct || e > lt ? !1 : N(ft, e), jt = (e) => e < dt || e > ht ? !1 : N(pt, e), wt = (e) => e >= kt && e <= yt ? !0 : e < gt || e > mt ? !1 : N(we, e);
|
|
75
75
|
function Pt(e) {
|
|
76
76
|
return Ct(e) ? "ambiguous" : xt(e) ? "fullwidth" : bt(e) ? "halfwidth" : jt(e) ? "narrow" : wt(e) ? "wide" : "neutral";
|
|
77
77
|
}
|
|
@@ -140,7 +140,7 @@ let S;
|
|
|
140
140
|
e.spaceOrPunctuation = 3, e.cjk = 4096, e.cjkPunctuation = 4098, e.ivs = 8192, e.cjkOrIvs = 12288, e.nonEmojiGeneralUseVS = 16384, e.variationSelector = 24576, e.ivsToCjkRightShift = 1;
|
|
141
141
|
})(S || (S = {}));
|
|
142
142
|
function k(e) {
|
|
143
|
-
if (e === d.eof ||
|
|
143
|
+
if (e === d.eof || He(e) || It(e)) return v.characterGroupWhitespace;
|
|
144
144
|
let t = 0;
|
|
145
145
|
if (e >= 4352) {
|
|
146
146
|
if (Tt(e)) return S.nonEmojiGeneralUseVS;
|
|
@@ -232,26 +232,26 @@ function Fe(e, t, n) {
|
|
|
232
232
|
}).codePointAt(0);
|
|
233
233
|
return r && r >= 65536 ? r : e;
|
|
234
234
|
}
|
|
235
|
-
const
|
|
235
|
+
const H = {
|
|
236
236
|
name: "attention",
|
|
237
|
-
resolveAll:
|
|
238
|
-
tokenize:
|
|
237
|
+
resolveAll: Mt,
|
|
238
|
+
tokenize: _t
|
|
239
239
|
};
|
|
240
|
-
function
|
|
240
|
+
function Mt(e, t) {
|
|
241
241
|
let n = -1, r, o, i, s, u, a, c, l;
|
|
242
242
|
for (; ++n < e.length; ) if (e[n][0] === "enter" && e[n][1].type === "attentionSequence" && e[n][1]._close) {
|
|
243
243
|
for (r = n; r--; ) if (e[r][0] === "exit" && e[r][1].type === "attentionSequence" && e[r][1]._open && t.sliceSerialize(e[r][1]).charCodeAt(0) === t.sliceSerialize(e[n][1]).charCodeAt(0)) {
|
|
244
244
|
if ((e[r][1]._close || e[n][1]._open) && (e[n][1].end.offset - e[n][1].start.offset) % 3 && !((e[r][1].end.offset - e[r][1].start.offset + e[n][1].end.offset - e[n][1].start.offset) % 3)) continue;
|
|
245
245
|
a = e[r][1].end.offset - e[r][1].start.offset > 1 && e[n][1].end.offset - e[n][1].start.offset > 1 ? 2 : 1;
|
|
246
|
-
const f = { ...e[r][1].end },
|
|
247
|
-
le(f, -a), le(
|
|
246
|
+
const f = { ...e[r][1].end }, h = { ...e[n][1].start };
|
|
247
|
+
le(f, -a), le(h, a), s = {
|
|
248
248
|
type: a > 1 ? x.strongSequence : x.emphasisSequence,
|
|
249
249
|
start: f,
|
|
250
250
|
end: { ...e[r][1].end }
|
|
251
251
|
}, u = {
|
|
252
252
|
type: a > 1 ? x.strongSequence : x.emphasisSequence,
|
|
253
253
|
start: { ...e[n][1].start },
|
|
254
|
-
end:
|
|
254
|
+
end: h
|
|
255
255
|
}, i = {
|
|
256
256
|
type: a > 1 ? x.strongText : x.emphasisText,
|
|
257
257
|
start: { ...e[r][1].end },
|
|
@@ -289,7 +289,7 @@ function _t(e, t) {
|
|
|
289
289
|
i,
|
|
290
290
|
t
|
|
291
291
|
]
|
|
292
|
-
]),
|
|
292
|
+
]), Ue(t.parser.constructs.insideSpan.null), c = T(c, be(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), c = T(c, [
|
|
293
293
|
[
|
|
294
294
|
"exit",
|
|
295
295
|
i,
|
|
@@ -318,42 +318,42 @@ function _t(e, t) {
|
|
|
318
318
|
"exit",
|
|
319
319
|
e[n][1],
|
|
320
320
|
t
|
|
321
|
-
]])) : l = 0,
|
|
321
|
+
]])) : l = 0, L(e, r - 1, n - r + 3, c), n = r + c.length - l - 2;
|
|
322
322
|
break;
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
for (n = -1; ++n < e.length; ) e[n][1].type === "attentionSequence" && (e[n][1].type = "data");
|
|
326
326
|
return e;
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function _t(e, t) {
|
|
329
329
|
const n = this.parser.constructs.attentionMarkers.null, { now: r, sliceSerialize: o, previous: i } = this, s = $e(i) ? Be(i, r(), o) : i, u = k(s), a = new ve(s, r(), o), c = V(u, a.value.bind(a), s);
|
|
330
330
|
let l;
|
|
331
331
|
return f;
|
|
332
|
-
function f(
|
|
333
|
-
return l =
|
|
332
|
+
function f(p) {
|
|
333
|
+
return l = p, e.enter("attentionSequence"), h(p);
|
|
334
334
|
}
|
|
335
|
-
function p
|
|
336
|
-
if (
|
|
337
|
-
return e.consume(
|
|
338
|
-
const m = e.exit("attentionSequence"), C = k(Ae(
|
|
339
|
-
return m._open = !!(l === d.asterisk ? A : A && (R(c) || !w)), m._close = !!(l === d.asterisk ? w : w && (R(C) || !A)), t(
|
|
335
|
+
function h(p) {
|
|
336
|
+
if (p === l)
|
|
337
|
+
return e.consume(p), h;
|
|
338
|
+
const m = e.exit("attentionSequence"), C = k(Ae(p) ? Fe(p, r(), o) : p), j = b(c), q = j || g(c), F = b(C), y = F || g(C), M = P(c), A = !y || F && (q || M) || n.includes(p), w = !q || j && (y || I(C)) || n.includes(s);
|
|
339
|
+
return m._open = !!(l === d.asterisk ? A : A && (R(c) || !w)), m._close = !!(l === d.asterisk ? w : w && (R(C) || !A)), t(p);
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
function le(e, t) {
|
|
343
343
|
e.column += t, e.offset += t, e._bufferIndex += t;
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function Lt() {
|
|
346
346
|
return {
|
|
347
347
|
text: {
|
|
348
|
-
[d.asterisk]:
|
|
349
|
-
[d.underscore]:
|
|
348
|
+
[d.asterisk]: H,
|
|
349
|
+
[d.underscore]: H
|
|
350
350
|
},
|
|
351
|
-
insideSpan: { null: [
|
|
351
|
+
insideSpan: { null: [H] }
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function Gt() {
|
|
355
355
|
const e = this.data();
|
|
356
|
-
(e.micromarkExtensions || (e.micromarkExtensions = [])).push(
|
|
356
|
+
(e.micromarkExtensions || (e.micromarkExtensions = [])).push(Lt());
|
|
357
357
|
}
|
|
358
358
|
const Rt = ";".codePointAt(0) ?? d.eof, zt = "&".codePointAt(0) ?? d.eof;
|
|
359
359
|
function Dt() {
|
|
@@ -384,19 +384,19 @@ function Oe(e, t, n, r, o, i) {
|
|
|
384
384
|
before: c,
|
|
385
385
|
...a.current()
|
|
386
386
|
}));
|
|
387
|
-
const f =
|
|
388
|
-
|
|
387
|
+
const f = Ut(e, t, n, r.before), h = Jt(e, t, n, r.after), p = fe(f, z(l), o, "open");
|
|
388
|
+
p.inside && l && (l = Kt(l));
|
|
389
389
|
const m = fe({
|
|
390
390
|
current: Z(l),
|
|
391
391
|
previous: Y(l)
|
|
392
|
-
},
|
|
392
|
+
}, h, o, "close");
|
|
393
393
|
m.inside && l && (l = en(l));
|
|
394
394
|
const C = a.move(s);
|
|
395
395
|
u();
|
|
396
396
|
const j = m.outside && Zt(t, n);
|
|
397
397
|
return n.attentionEncodeSurroundingInfo = {
|
|
398
398
|
after: m.outside && !j,
|
|
399
|
-
before:
|
|
399
|
+
before: p.outside
|
|
400
400
|
}, n.cjkFriendlyEncodeAfterSupplementaryText = j, c + l + C;
|
|
401
401
|
}
|
|
402
402
|
function Wt(e, t, n, r) {
|
|
@@ -431,13 +431,13 @@ function fe(e, t, n, r) {
|
|
|
431
431
|
a,
|
|
432
432
|
c
|
|
433
433
|
]) {
|
|
434
|
-
const f = r === "open" ? l.outside ?
|
|
435
|
-
if (r === "open" ? Vt(n, f,
|
|
434
|
+
const f = r === "open" ? l.outside ? he : e : l.inside ? he : e, h = r === "open" ? l.inside ? pe : t : l.outside ? pe : t;
|
|
435
|
+
if (r === "open" ? Vt(n, f, h) : Ht(n, f, h)) return l;
|
|
436
436
|
}
|
|
437
437
|
return c;
|
|
438
438
|
}
|
|
439
439
|
function de(e, t, n) {
|
|
440
|
-
return
|
|
440
|
+
return U(e) ? U(t) ? n === "_" ? {
|
|
441
441
|
inside: !0,
|
|
442
442
|
outside: !0
|
|
443
443
|
} : {
|
|
@@ -449,7 +449,7 @@ function de(e, t, n) {
|
|
|
449
449
|
} : {
|
|
450
450
|
inside: !1,
|
|
451
451
|
outside: !0
|
|
452
|
-
} : g(e) ?
|
|
452
|
+
} : g(e) ? U(t) ? {
|
|
453
453
|
inside: !1,
|
|
454
454
|
outside: !1
|
|
455
455
|
} : g(t) ? {
|
|
@@ -470,7 +470,7 @@ function Vt(e, t, n) {
|
|
|
470
470
|
const r = ne(t), { close: o, open: i } = qe(r, k(n));
|
|
471
471
|
return e === "_" ? i && (R(r) || !o) : i;
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function Ht(e, t, n) {
|
|
474
474
|
const r = k(n), { close: o, open: i } = qe(ne(t), r);
|
|
475
475
|
return e === "_" ? o && (R(r) || !i) : o;
|
|
476
476
|
}
|
|
@@ -481,17 +481,17 @@ function qe(e, t) {
|
|
|
481
481
|
close: !r || n && (i || I(t))
|
|
482
482
|
};
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function U(e) {
|
|
485
485
|
return !g(e) && !b(e);
|
|
486
486
|
}
|
|
487
487
|
function ne(e) {
|
|
488
488
|
const t = k(e.current);
|
|
489
489
|
return e.current === null || !O(t) ? t : V(t, () => e.previous, e.current);
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function Ut(e, t, n, r) {
|
|
492
492
|
let o = Z(r), i = Y(r);
|
|
493
|
-
if (
|
|
494
|
-
const s =
|
|
493
|
+
if (Qt(o) || Yt(o, i)) {
|
|
494
|
+
const s = Me(e, t, n, -1);
|
|
495
495
|
s && (o = Z(s), i = Y(s));
|
|
496
496
|
}
|
|
497
497
|
return {
|
|
@@ -499,13 +499,13 @@ function Ht(e, t, n, r) {
|
|
|
499
499
|
previous: i
|
|
500
500
|
};
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function Jt(e, t, n, r) {
|
|
503
503
|
const o = z(r);
|
|
504
504
|
if (!Xt(o)) return o;
|
|
505
|
-
const i =
|
|
505
|
+
const i = Me(e, t, n, 1);
|
|
506
506
|
return i ? z(i) : o;
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function Qt(e) {
|
|
509
509
|
return e !== null && 56320 <= e && e <= 57343;
|
|
510
510
|
}
|
|
511
511
|
function Xt(e) {
|
|
@@ -514,12 +514,12 @@ function Xt(e) {
|
|
|
514
514
|
function Yt(e, t) {
|
|
515
515
|
return O(k(e)) && (t === null || t === d.eof);
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function Me(e, t, n, r) {
|
|
518
518
|
if (!t) return;
|
|
519
519
|
const o = n.indexStack.at(-1), i = t.children, s = typeof o == "number" ? o : i.indexOf(e);
|
|
520
520
|
if (s < 0) return;
|
|
521
521
|
const u = i[s + r];
|
|
522
|
-
return
|
|
522
|
+
return _e(u) || void 0;
|
|
523
523
|
}
|
|
524
524
|
function Zt(e, t) {
|
|
525
525
|
if (!e) return !1;
|
|
@@ -528,8 +528,8 @@ function Zt(e, t) {
|
|
|
528
528
|
const r = e.children[n + 1];
|
|
529
529
|
return r?.type === "text" && (z(r.value) ?? 0) > 65535;
|
|
530
530
|
}
|
|
531
|
-
function
|
|
532
|
-
return !e || typeof e != "object" ? "" : "value" in e && typeof e.value == "string" ? e.value : "alt" in e && typeof e.alt == "string" ? e.alt : "children" in e && Array.isArray(e.children) ? e.children.map(
|
|
531
|
+
function _e(e) {
|
|
532
|
+
return !e || typeof e != "object" ? "" : "value" in e && typeof e.value == "string" ? e.value : "alt" in e && typeof e.alt == "string" ? e.alt : "children" in e && Array.isArray(e.children) ? e.children.map(_e).join("") : "";
|
|
533
533
|
}
|
|
534
534
|
function re(e) {
|
|
535
535
|
return `&#x${(e ?? 0).toString(16).toUpperCase()};`;
|
|
@@ -552,16 +552,16 @@ function z(e) {
|
|
|
552
552
|
function Z(e) {
|
|
553
553
|
return [...e].at(-1)?.codePointAt(0) ?? d.eof;
|
|
554
554
|
}
|
|
555
|
-
const
|
|
555
|
+
const he = {
|
|
556
556
|
current: Rt,
|
|
557
557
|
previous: d.eof
|
|
558
|
-
},
|
|
558
|
+
}, pe = zt;
|
|
559
559
|
function tn() {
|
|
560
560
|
const e = this.data();
|
|
561
561
|
(e.toMarkdownExtensions || (e.toMarkdownExtensions = [])).push(Dt());
|
|
562
562
|
}
|
|
563
563
|
function nn() {
|
|
564
|
-
|
|
564
|
+
Gt.call(this), tn.call(this);
|
|
565
565
|
}
|
|
566
566
|
var rn = nn;
|
|
567
567
|
function on(e) {
|
|
@@ -611,8 +611,8 @@ function on(e) {
|
|
|
611
611
|
l,
|
|
612
612
|
s
|
|
613
613
|
]
|
|
614
|
-
],
|
|
615
|
-
|
|
614
|
+
], h = s.parser.constructs.insideSpan.null;
|
|
615
|
+
h && L(f, f.length, 0, be(h, i.slice(a + 1, u), s)), L(f, f.length, 0, [
|
|
616
616
|
[
|
|
617
617
|
"exit",
|
|
618
618
|
l,
|
|
@@ -633,7 +633,7 @@ function on(e) {
|
|
|
633
633
|
c,
|
|
634
634
|
s
|
|
635
635
|
]
|
|
636
|
-
]),
|
|
636
|
+
]), L(i, a - 1, u - a + 3, f), u = a + f.length - 2;
|
|
637
637
|
break;
|
|
638
638
|
}
|
|
639
639
|
}
|
|
@@ -641,19 +641,19 @@ function on(e) {
|
|
|
641
641
|
return i;
|
|
642
642
|
}
|
|
643
643
|
function o(i, s, u) {
|
|
644
|
-
const { now: a, sliceSerialize: c, previous: l } = this, f = $e(l) ? Be(l, a(), c) : l,
|
|
644
|
+
const { now: a, sliceSerialize: c, previous: l } = this, f = $e(l) ? Be(l, a(), c) : l, h = k(f), p = new ve(f, a(), c), m = V(h, p.value.bind(p), f), C = this.events;
|
|
645
645
|
let j = 0;
|
|
646
646
|
return q;
|
|
647
647
|
function q(y) {
|
|
648
648
|
return f === d.tilde && C[C.length - 1][1].type !== x.characterEscape ? u(y) : (i.enter("strikethroughSequenceTemporary"), F(y));
|
|
649
649
|
}
|
|
650
650
|
function F(y) {
|
|
651
|
-
const
|
|
651
|
+
const M = k(f);
|
|
652
652
|
if (y === d.tilde)
|
|
653
653
|
return j > 1 ? u(y) : (i.consume(y), j++, F);
|
|
654
654
|
if (j < 2 && !t) return u(y);
|
|
655
|
-
const A = i.exit("strikethroughSequenceTemporary"), w = k(Ae(y) ? Fe(y, a(), c) : y), se = b(m) || g(m), ue = b(w) || g(w), De = I(m) || Nt(
|
|
656
|
-
return A._open = !ue || w === v.attentionSideAfter && (se || De), A._close = !se ||
|
|
655
|
+
const A = i.exit("strikethroughSequenceTemporary"), w = k(Ae(y) ? Fe(y, a(), c) : y), se = b(m) || g(m), ue = b(w) || g(w), De = I(m) || Nt(M);
|
|
656
|
+
return A._open = !ue || w === v.attentionSideAfter && (se || De), A._close = !se || M === v.attentionSideAfter && (ue || I(w)), s(y);
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
659
|
}
|
|
@@ -677,13 +677,13 @@ function ln() {
|
|
|
677
677
|
notInConstruct: un
|
|
678
678
|
}],
|
|
679
679
|
handlers: {
|
|
680
|
-
delete:
|
|
680
|
+
delete: Le,
|
|
681
681
|
text: fn
|
|
682
682
|
}
|
|
683
683
|
};
|
|
684
684
|
}
|
|
685
|
-
|
|
686
|
-
function
|
|
685
|
+
Le.peek = dn;
|
|
686
|
+
function Le(e, t, n, r) {
|
|
687
687
|
const i = n.enter("strikethrough"), s = n.createTracker(r), u = s.move("~~");
|
|
688
688
|
let a = s.move(n.containerPhrasing(e, {
|
|
689
689
|
after: "~",
|
|
@@ -692,18 +692,18 @@ function Ge(e, t, n, r) {
|
|
|
692
692
|
}));
|
|
693
693
|
const c = gn(e, t, n, r.before), l = mn(e, t, n, r.after), f = ge(c, D(a), "open");
|
|
694
694
|
f.inside && a && (a = xn(a));
|
|
695
|
-
const
|
|
695
|
+
const h = ge({
|
|
696
696
|
current: ee(a),
|
|
697
697
|
previous: K(a)
|
|
698
698
|
}, l, "close");
|
|
699
|
-
|
|
700
|
-
const
|
|
699
|
+
h.inside && a && (a = bn(a));
|
|
700
|
+
const p = s.move("~~");
|
|
701
701
|
i();
|
|
702
|
-
const m =
|
|
702
|
+
const m = h.outside && Cn(t, n);
|
|
703
703
|
return n.attentionEncodeSurroundingInfo = {
|
|
704
|
-
after:
|
|
704
|
+
after: h.outside && !m,
|
|
705
705
|
before: f.outside
|
|
706
|
-
}, n.cjkFriendlyEncodeAfterSupplementaryText = m, u + a +
|
|
706
|
+
}, n.cjkFriendlyEncodeAfterSupplementaryText = m, u + a + p;
|
|
707
707
|
}
|
|
708
708
|
function fn(e, t, n, r) {
|
|
709
709
|
const o = n;
|
|
@@ -741,12 +741,12 @@ function ge(e, t, n) {
|
|
|
741
741
|
a
|
|
742
742
|
]) {
|
|
743
743
|
const l = n === "open" ? c.outside ? ke : e : c.inside ? ke : e, f = n === "open" ? c.inside ? ye : t : c.outside ? ye : t;
|
|
744
|
-
if (n === "open" ?
|
|
744
|
+
if (n === "open" ? hn(l, f) : pn(l, f)) return c;
|
|
745
745
|
}
|
|
746
746
|
return a;
|
|
747
747
|
}
|
|
748
748
|
function me(e, t) {
|
|
749
|
-
return
|
|
749
|
+
return J(e) ? J(t) ? {
|
|
750
750
|
inside: !1,
|
|
751
751
|
outside: !1
|
|
752
752
|
} : g(t) ? {
|
|
@@ -755,7 +755,7 @@ function me(e, t) {
|
|
|
755
755
|
} : {
|
|
756
756
|
inside: !1,
|
|
757
757
|
outside: !0
|
|
758
|
-
} : g(e) ?
|
|
758
|
+
} : g(e) ? J(t) ? {
|
|
759
759
|
inside: !1,
|
|
760
760
|
outside: !1
|
|
761
761
|
} : g(t) ? {
|
|
@@ -772,22 +772,22 @@ function me(e, t) {
|
|
|
772
772
|
outside: !1
|
|
773
773
|
};
|
|
774
774
|
}
|
|
775
|
-
function
|
|
776
|
-
const { open: n } =
|
|
775
|
+
function hn(e, t) {
|
|
776
|
+
const { open: n } = Ge(ie(e), k(t));
|
|
777
777
|
return n;
|
|
778
778
|
}
|
|
779
|
-
function
|
|
780
|
-
const n = k(t), { close: r } =
|
|
779
|
+
function pn(e, t) {
|
|
780
|
+
const n = k(t), { close: r } = Ge(ie(e), n);
|
|
781
781
|
return r;
|
|
782
782
|
}
|
|
783
|
-
function
|
|
783
|
+
function Ge(e, t) {
|
|
784
784
|
const n = b(e), r = n || g(e), o = b(t), i = o || g(t);
|
|
785
785
|
return {
|
|
786
786
|
open: !i || o && (r || P(e)),
|
|
787
787
|
close: !r || n && (i || I(t))
|
|
788
788
|
};
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function J(e) {
|
|
791
791
|
return !g(e) && !b(e);
|
|
792
792
|
}
|
|
793
793
|
function ie(e) {
|
|
@@ -881,7 +881,7 @@ var Pn = wn, An = /* @__PURE__ */ new Set(["。", ".", ",", "、", "?", "
|
|
|
881
881
|
}
|
|
882
882
|
return null;
|
|
883
883
|
}, Fn = (e, t) => ({ ...t, url: e, children: [{ type: "text", value: e }] }), Tn = (e) => ({ type: "text", value: e }), En = () => (e) => {
|
|
884
|
-
|
|
884
|
+
Je(e, "link", (t, n, r) => {
|
|
885
885
|
if (!r || typeof n != "number" || !Bn(t) || !$n.test(t.url)) return;
|
|
886
886
|
let o = vn(t.url);
|
|
887
887
|
if (o === null || o === 0) return;
|
|
@@ -896,42 +896,42 @@ function In() {
|
|
|
896
896
|
var Nn = In(), On = Ke({ forgiving: !0 }), qn = Object.fromEntries(Ze.flatMap((e) => {
|
|
897
897
|
var t;
|
|
898
898
|
return ((t = e.aliases) != null ? t : []).map((n) => [n, e.id]);
|
|
899
|
-
})),
|
|
899
|
+
})), G = new Set(Object.keys(Xe)), Se = (e) => {
|
|
900
900
|
let t = e.trim().toLowerCase();
|
|
901
|
-
return qn[t] || (
|
|
902
|
-
},
|
|
901
|
+
return qn[t] || (G.has(t), t);
|
|
902
|
+
}, Q = /* @__PURE__ */ new Map(), X = /* @__PURE__ */ new Map(), $ = /* @__PURE__ */ new Map(), W = (e) => {
|
|
903
903
|
var t;
|
|
904
904
|
return typeof e == "string" ? e : (t = e.name) != null ? t : "custom";
|
|
905
|
-
},
|
|
905
|
+
}, Mn = (e, t) => `${e}-${W(t[0])}-${W(t[1])}`, _n = (e, t, n) => {
|
|
906
906
|
let r = e.slice(0, 100), o = e.length > 100 ? e.slice(-100) : "";
|
|
907
907
|
return `${t}:${n[0]}:${n[1]}:${e.length}:${r}:${o}`;
|
|
908
|
-
},
|
|
909
|
-
let n =
|
|
910
|
-
if (
|
|
908
|
+
}, Ln = (e, t) => {
|
|
909
|
+
let n = Mn(e, t);
|
|
910
|
+
if (Q.has(n)) return Q.get(n);
|
|
911
911
|
let r = Ye({ themes: t, langs: [e], engine: On });
|
|
912
|
-
return
|
|
912
|
+
return Q.set(n, r), r;
|
|
913
913
|
};
|
|
914
|
-
function
|
|
914
|
+
function Gn(e = {}) {
|
|
915
915
|
var t;
|
|
916
916
|
let n = (t = e.themes) != null ? t : ["github-light", "github-dark"];
|
|
917
917
|
return { name: "shiki", type: "code-highlighter", supportsLanguage(r) {
|
|
918
918
|
let o = Se(r);
|
|
919
|
-
return
|
|
919
|
+
return G.has(o);
|
|
920
920
|
}, getSupportedLanguages() {
|
|
921
|
-
return Array.from(
|
|
921
|
+
return Array.from(G);
|
|
922
922
|
}, getThemes() {
|
|
923
923
|
return n;
|
|
924
924
|
}, highlight({ code: r, language: o, themes: i }, s) {
|
|
925
|
-
let u = Se(o), a = [W(i[0]), W(i[1])], c =
|
|
925
|
+
let u = Se(o), a = [W(i[0]), W(i[1])], c = _n(r, u, a);
|
|
926
926
|
if (X.has(c)) return X.get(c);
|
|
927
927
|
s && ($.has(c) || $.set(c, /* @__PURE__ */ new Set()), $.get(c).add(s));
|
|
928
|
-
let l =
|
|
929
|
-
return
|
|
930
|
-
let
|
|
931
|
-
X.set(c,
|
|
928
|
+
let l = G.has(u) ? u : "text";
|
|
929
|
+
return Ln(l, i).then((f) => {
|
|
930
|
+
let h = f.getLoadedLanguages().includes(u) ? u : "text", p = f.codeToTokens(r, { lang: h, themes: { light: a[0], dark: a[1] } });
|
|
931
|
+
X.set(c, p);
|
|
932
932
|
let m = $.get(c);
|
|
933
933
|
if (m) {
|
|
934
|
-
for (let C of m) C(
|
|
934
|
+
for (let C of m) C(p);
|
|
935
935
|
$.delete(c);
|
|
936
936
|
}
|
|
937
937
|
}).catch((f) => {
|
|
@@ -939,22 +939,22 @@ function Ln(e = {}) {
|
|
|
939
939
|
}), null;
|
|
940
940
|
} };
|
|
941
941
|
}
|
|
942
|
-
var Rn =
|
|
943
|
-
let E = null,
|
|
942
|
+
var Rn = Gn();
|
|
943
|
+
let E = null, _ = null;
|
|
944
944
|
const te = /* @__PURE__ */ new Set();
|
|
945
945
|
function zn(e) {
|
|
946
946
|
return typeof e != "string" ? !1 : /```(?:mermaid|graph|sequenceDiagram|classDiagram|stateDiagram|erDiagram|journey|gantt|pie|gitGraph|mindmap|timeline|quadrantChart|xychart|block-beta|architecture-beta|packet-beta)\b/i.test(e) || /(^|\n)\s*(?:graph|flowchart|sequenceDiagram|classDiagram|stateDiagram|erDiagram|journey|gantt|pie|gitGraph|mindmap|timeline|quadrantChart)\b/.test(e) || /(^|[^\\])(\$\$|\\\(|\\\[)/.test(e);
|
|
947
947
|
}
|
|
948
948
|
function Dn() {
|
|
949
|
-
return
|
|
950
|
-
import("./index-
|
|
949
|
+
return _ || (_ = Promise.all([
|
|
950
|
+
import("./index-DwqRQdS3.js"),
|
|
951
951
|
import("./index-B0neMIbR.js").then((e) => e.bp)
|
|
952
952
|
]).then(([e, t]) => {
|
|
953
953
|
E = { math: e.math, mermaid: t.mermaid };
|
|
954
954
|
for (const n of te) n();
|
|
955
955
|
}).catch(() => {
|
|
956
|
-
|
|
957
|
-
})),
|
|
956
|
+
_ = null;
|
|
957
|
+
})), _;
|
|
958
958
|
}
|
|
959
959
|
function Wn(e) {
|
|
960
960
|
const t = zn(e), [n, r] = Ce(
|
|
@@ -984,7 +984,7 @@ async function Vn(e) {
|
|
|
984
984
|
const t = document.createElement("textarea");
|
|
985
985
|
t.value = e, t.setAttribute("readonly", ""), t.style.position = "fixed", t.style.left = "-9999px", document.body.appendChild(t), t.select(), document.execCommand("copy"), t.remove();
|
|
986
986
|
}
|
|
987
|
-
function
|
|
987
|
+
function Hn({ children: e, className: t, href: n, node: r, ...o }) {
|
|
988
988
|
const [i, s] = Ce(!1), u = Ve(null), a = typeof n == "string" && n.length > 0;
|
|
989
989
|
xe(() => () => {
|
|
990
990
|
u.current != null && window.clearTimeout(u.current);
|
|
@@ -1024,16 +1024,18 @@ function Un({ children: e, className: t, href: n, node: r, ...o }) {
|
|
|
1024
1024
|
}
|
|
1025
1025
|
function Kn({ className: e, mode: t = "static", children: n, components: r, ...o }) {
|
|
1026
1026
|
const i = Wn(n), s = We(
|
|
1027
|
-
() => ({ a:
|
|
1027
|
+
() => ({ a: Hn, ...r }),
|
|
1028
1028
|
[r]
|
|
1029
1029
|
);
|
|
1030
1030
|
return /* @__PURE__ */ B(
|
|
1031
|
-
|
|
1031
|
+
Qe,
|
|
1032
1032
|
{
|
|
1033
1033
|
className: je("markdown msg-text size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0", e),
|
|
1034
1034
|
components: s,
|
|
1035
1035
|
mode: t,
|
|
1036
1036
|
plugins: i,
|
|
1037
|
+
codeBlockMaxHeight: 1 / 0,
|
|
1038
|
+
tableMaxHeight: 1 / 0,
|
|
1037
1039
|
...o,
|
|
1038
1040
|
children: n
|
|
1039
1041
|
}
|