novelaid-markdown 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4220 @@
1
+ import { c as e, g as t, h as n, i as r, l as i, m as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "./esm-Psdhd_27.js";
2
+ import { t as p } from "./lib-DWIu06lZ.js";
3
+ import { _ as m, a as h, b as g, c as _, d as v, f as y, i as b, l as x, m as S, n as C, o as w, p as T, r as E, s as D, t as O, u as k, v as A, x as j, y as M } from "./blank-line-ClJSvRAu.js";
4
+ import { useEffect as N, useState as P } from "react";
5
+ import { Fragment as F, jsx as I, jsxs as ee } from "react/jsx-runtime";
6
+ //#region node_modules/estree-util-is-identifier-name/lib/index.js
7
+ var L = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, R = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, te = {};
8
+ function z(e, t) {
9
+ return ((t || te).jsx ? R : L).test(e);
10
+ }
11
+ //#endregion
12
+ //#region node_modules/hast-util-whitespace/lib/index.js
13
+ var B = /[ \t\n\f\r]/g;
14
+ function V(e) {
15
+ return typeof e == "object" ? e.type === "text" ? ne(e.value) : !1 : ne(e);
16
+ }
17
+ function ne(e) {
18
+ return e.replace(B, "") === "";
19
+ }
20
+ //#endregion
21
+ //#region node_modules/inline-style-parser/cjs/index.js
22
+ var re = /* @__PURE__ */ a(((e, t) => {
23
+ var n = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, r = /\n/g, i = /^\s*/, a = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, o = /^:\s*/, s = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, c = /^[;\s]*/, l = /^\s+|\s+$/g, u = "\n", d = "/", f = "*", p = "", m = "comment", h = "declaration";
24
+ function g(e, t) {
25
+ if (typeof e != "string") throw TypeError("First argument must be a string");
26
+ if (!e) return [];
27
+ t ||= {};
28
+ var l = 1, g = 1;
29
+ function v(e) {
30
+ var t = e.match(r);
31
+ t && (l += t.length);
32
+ var n = e.lastIndexOf(u);
33
+ g = ~n ? e.length - n : g + e.length;
34
+ }
35
+ function y() {
36
+ var e = {
37
+ line: l,
38
+ column: g
39
+ };
40
+ return function(t) {
41
+ return t.position = new b(e), C(), t;
42
+ };
43
+ }
44
+ function b(e) {
45
+ this.start = e, this.end = {
46
+ line: l,
47
+ column: g
48
+ }, this.source = t.source;
49
+ }
50
+ b.prototype.content = e;
51
+ function x(n) {
52
+ var r = /* @__PURE__ */ Error(t.source + ":" + l + ":" + g + ": " + n);
53
+ if (r.reason = n, r.filename = t.source, r.line = l, r.column = g, r.source = e, !t.silent) throw r;
54
+ }
55
+ function S(t) {
56
+ var n = t.exec(e);
57
+ if (n) {
58
+ var r = n[0];
59
+ return v(r), e = e.slice(r.length), n;
60
+ }
61
+ }
62
+ function C() {
63
+ S(i);
64
+ }
65
+ function w(e) {
66
+ var t;
67
+ for (e ||= []; t = T();) t !== !1 && e.push(t);
68
+ return e;
69
+ }
70
+ function T() {
71
+ var t = y();
72
+ if (!(d != e.charAt(0) || f != e.charAt(1))) {
73
+ for (var n = 2; p != e.charAt(n) && (f != e.charAt(n) || d != e.charAt(n + 1));) ++n;
74
+ if (n += 2, p === e.charAt(n - 1)) return x("End of comment missing");
75
+ var r = e.slice(2, n - 2);
76
+ return g += 2, v(r), e = e.slice(n), g += 2, t({
77
+ type: m,
78
+ comment: r
79
+ });
80
+ }
81
+ }
82
+ function E() {
83
+ var e = y(), t = S(a);
84
+ if (t) {
85
+ if (T(), !S(o)) return x("property missing ':'");
86
+ var r = S(s), i = e({
87
+ type: h,
88
+ property: _(t[0].replace(n, p)),
89
+ value: r ? _(r[0].replace(n, p)) : p
90
+ });
91
+ return S(c), i;
92
+ }
93
+ }
94
+ function D() {
95
+ var e = [];
96
+ w(e);
97
+ for (var t; t = E();) t !== !1 && (e.push(t), w(e));
98
+ return e;
99
+ }
100
+ return C(), D();
101
+ }
102
+ function _(e) {
103
+ return e ? e.replace(l, p) : p;
104
+ }
105
+ t.exports = g;
106
+ })), ie = /* @__PURE__ */ a(((e) => {
107
+ var t = e && e.__importDefault || function(e) {
108
+ return e && e.__esModule ? e : { default: e };
109
+ };
110
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.default = r;
111
+ var n = t(re());
112
+ function r(e, t) {
113
+ let r = null;
114
+ if (!e || typeof e != "string") return r;
115
+ let i = (0, n.default)(e), a = typeof t == "function";
116
+ return i.forEach((e) => {
117
+ if (e.type !== "declaration") return;
118
+ let { property: n, value: i } = e;
119
+ a ? t(n, i, e) : i && (r ||= {}, r[n] = i);
120
+ }), r;
121
+ }
122
+ })), ae = /* @__PURE__ */ a(((e) => {
123
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.camelCase = void 0;
124
+ var t = /^--[a-zA-Z0-9_-]+$/, n = /-([a-z])/g, r = /^[^-]+$/, i = /^-(webkit|moz|ms|o|khtml)-/, a = /^-(ms)-/, o = function(e) {
125
+ return !e || r.test(e) || t.test(e);
126
+ }, s = function(e, t) {
127
+ return t.toUpperCase();
128
+ }, c = function(e, t) {
129
+ return `${t}-`;
130
+ };
131
+ e.camelCase = function(e, t) {
132
+ return t === void 0 && (t = {}), o(e) ? e : (e = e.toLowerCase(), e = t.reactCompat ? e.replace(a, c) : e.replace(i, c), e.replace(n, s));
133
+ };
134
+ })), oe = /* @__PURE__ */ a(((e, t) => {
135
+ var n = (e && e.__importDefault || function(e) {
136
+ return e && e.__esModule ? e : { default: e };
137
+ })(ie()), r = ae();
138
+ function i(e, t) {
139
+ var i = {};
140
+ return !e || typeof e != "string" || (0, n.default)(e, function(e, n) {
141
+ e && n && (i[(0, r.camelCase)(e, t)] = n);
142
+ }), i;
143
+ }
144
+ i.default = i, t.exports = i;
145
+ }));
146
+ //#endregion
147
+ //#region node_modules/unist-util-stringify-position/lib/index.js
148
+ function H(e) {
149
+ return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? se(e.position) : "start" in e || "end" in e ? se(e) : "line" in e || "column" in e ? U(e) : "";
150
+ }
151
+ function U(e) {
152
+ return ce(e && e.line) + ":" + ce(e && e.column);
153
+ }
154
+ function se(e) {
155
+ return U(e && e.start) + "-" + U(e && e.end);
156
+ }
157
+ function ce(e) {
158
+ return e && typeof e == "number" ? e : 1;
159
+ }
160
+ //#endregion
161
+ //#region node_modules/vfile-message/lib/index.js
162
+ var W = class extends Error {
163
+ constructor(e, t, n) {
164
+ super(), typeof t == "string" && (n = t, t = void 0);
165
+ let r = "", i = {}, a = !1;
166
+ if (t && (i = "line" in t && "column" in t || "start" in t && "end" in t ? { place: t } : "type" in t ? {
167
+ ancestors: [t],
168
+ place: t.position
169
+ } : { ...t }), typeof e == "string" ? r = e : !i.cause && e && (a = !0, r = e.message, i.cause = e), !i.ruleId && !i.source && typeof n == "string") {
170
+ let e = n.indexOf(":");
171
+ e === -1 ? i.ruleId = n : (i.source = n.slice(0, e), i.ruleId = n.slice(e + 1));
172
+ }
173
+ if (!i.place && i.ancestors && i.ancestors) {
174
+ let e = i.ancestors[i.ancestors.length - 1];
175
+ e && (i.place = e.position);
176
+ }
177
+ let o = i.place && "start" in i.place ? i.place.start : i.place;
178
+ this.ancestors = i.ancestors || void 0, this.cause = i.cause || void 0, this.column = o ? o.column : void 0, this.fatal = void 0, this.file = "", this.message = r, this.line = o ? o.line : void 0, this.name = H(i.place) || "1:1", this.place = i.place || void 0, this.reason = this.message, this.ruleId = i.ruleId || void 0, this.source = i.source || void 0, this.stack = a && i.cause && typeof i.cause.stack == "string" ? i.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
179
+ }
180
+ };
181
+ W.prototype.file = "", W.prototype.name = "", W.prototype.reason = "", W.prototype.message = "", W.prototype.stack = "", W.prototype.column = void 0, W.prototype.line = void 0, W.prototype.ancestors = void 0, W.prototype.cause = void 0, W.prototype.fatal = void 0, W.prototype.place = void 0, W.prototype.ruleId = void 0, W.prototype.source = void 0;
182
+ //#endregion
183
+ //#region node_modules/hast-util-to-jsx-runtime/lib/index.js
184
+ var le = /* @__PURE__ */ t(oe(), 1), G = {}.hasOwnProperty, ue = /* @__PURE__ */ new Map(), de = /[A-Z]/g, fe = new Set([
185
+ "table",
186
+ "tbody",
187
+ "thead",
188
+ "tfoot",
189
+ "tr"
190
+ ]), pe = new Set(["td", "th"]), me = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
191
+ function he(t, n) {
192
+ if (!n || n.Fragment === void 0) throw TypeError("Expected `Fragment` in options");
193
+ let r = n.filePath || void 0, i;
194
+ if (n.development) {
195
+ if (typeof n.jsxDEV != "function") throw TypeError("Expected `jsxDEV` in options when `development: true`");
196
+ i = Ee(r, n.jsxDEV);
197
+ } else {
198
+ if (typeof n.jsx != "function") throw TypeError("Expected `jsx` in production options");
199
+ if (typeof n.jsxs != "function") throw TypeError("Expected `jsxs` in production options");
200
+ i = Te(r, n.jsx, n.jsxs);
201
+ }
202
+ let a = {
203
+ Fragment: n.Fragment,
204
+ ancestors: [],
205
+ components: n.components || {},
206
+ create: i,
207
+ elementAttributeNameCase: n.elementAttributeNameCase || "react",
208
+ evaluater: n.createEvaluater ? n.createEvaluater() : void 0,
209
+ filePath: r,
210
+ ignoreInvalidStyle: n.ignoreInvalidStyle || !1,
211
+ passKeys: n.passKeys !== !1,
212
+ passNode: n.passNode || !1,
213
+ schema: n.space === "svg" ? e : u,
214
+ stylePropertyNameCase: n.stylePropertyNameCase || "dom",
215
+ tableCellAlignToStyle: n.tableCellAlignToStyle !== !1
216
+ }, o = ge(a, t, void 0);
217
+ return o && typeof o != "string" ? o : a.create(t, a.Fragment, { children: o || void 0 }, void 0);
218
+ }
219
+ function ge(e, t, n) {
220
+ if (t.type === "element") return _e(e, t, n);
221
+ if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression") return ve(e, t);
222
+ if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement") return be(e, t, n);
223
+ if (t.type === "mdxjsEsm") return ye(e, t);
224
+ if (t.type === "root") return xe(e, t, n);
225
+ if (t.type === "text") return Se(e, t);
226
+ }
227
+ function _e(t, n, r) {
228
+ let i = t.schema, a = i;
229
+ n.tagName.toLowerCase() === "svg" && i.space === "html" && (a = e, t.schema = a), t.ancestors.push(n);
230
+ let o = Me(t, n.tagName, !1), s = De(t, n), c = ke(t, n);
231
+ return fe.has(n.tagName) && (c = c.filter(function(e) {
232
+ return typeof e == "string" ? !V(e) : !0;
233
+ })), Ce(t, s, o, n), we(s, c), t.ancestors.pop(), t.schema = i, t.create(n, o, s, r);
234
+ }
235
+ function ve(e, t) {
236
+ if (t.data && t.data.estree && e.evaluater) {
237
+ let n = t.data.estree.body[0];
238
+ return n.type, e.evaluater.evaluateExpression(n.expression);
239
+ }
240
+ K(e, t.position);
241
+ }
242
+ function ye(e, t) {
243
+ if (t.data && t.data.estree && e.evaluater) return e.evaluater.evaluateProgram(t.data.estree);
244
+ K(e, t.position);
245
+ }
246
+ function be(t, n, r) {
247
+ let i = t.schema, a = i;
248
+ n.name === "svg" && i.space === "html" && (a = e, t.schema = a), t.ancestors.push(n);
249
+ let o = n.name === null ? t.Fragment : Me(t, n.name, !0), s = Oe(t, n), c = ke(t, n);
250
+ return Ce(t, s, o, n), we(s, c), t.ancestors.pop(), t.schema = i, t.create(n, o, s, r);
251
+ }
252
+ function xe(e, t, n) {
253
+ let r = {};
254
+ return we(r, ke(e, t)), e.create(t, e.Fragment, r, n);
255
+ }
256
+ function Se(e, t) {
257
+ return t.value;
258
+ }
259
+ function Ce(e, t, n, r) {
260
+ typeof n != "string" && n !== e.Fragment && e.passNode && (t.node = r);
261
+ }
262
+ function we(e, t) {
263
+ if (t.length > 0) {
264
+ let n = t.length > 1 ? t : t[0];
265
+ n && (e.children = n);
266
+ }
267
+ }
268
+ function Te(e, t, n) {
269
+ return r;
270
+ function r(e, r, i, a) {
271
+ let o = Array.isArray(i.children) ? n : t;
272
+ return a ? o(r, i, a) : o(r, i);
273
+ }
274
+ }
275
+ function Ee(e, t) {
276
+ return n;
277
+ function n(n, r, i, a) {
278
+ let o = Array.isArray(i.children), s = l(n);
279
+ return t(r, i, a, o, {
280
+ columnNumber: s ? s.column - 1 : void 0,
281
+ fileName: e,
282
+ lineNumber: s ? s.line : void 0
283
+ }, void 0);
284
+ }
285
+ }
286
+ function De(e, t) {
287
+ let n = {}, r, i;
288
+ for (i in t.properties) if (i !== "children" && G.call(t.properties, i)) {
289
+ let a = Ae(e, i, t.properties[i]);
290
+ if (a) {
291
+ let [i, o] = a;
292
+ e.tableCellAlignToStyle && i === "align" && typeof o == "string" && pe.has(t.tagName) ? r = o : n[i] = o;
293
+ }
294
+ }
295
+ if (r) {
296
+ let t = n.style ||= {};
297
+ t[e.stylePropertyNameCase === "css" ? "text-align" : "textAlign"] = r;
298
+ }
299
+ return n;
300
+ }
301
+ function Oe(e, t) {
302
+ let n = {};
303
+ for (let r of t.attributes) if (r.type === "mdxJsxExpressionAttribute") if (r.data && r.data.estree && e.evaluater) {
304
+ let t = r.data.estree.body[0];
305
+ t.type;
306
+ let i = t.expression;
307
+ i.type;
308
+ let a = i.properties[0];
309
+ a.type, Object.assign(n, e.evaluater.evaluateExpression(a.argument));
310
+ } else K(e, t.position);
311
+ else {
312
+ let i = r.name, a;
313
+ if (r.value && typeof r.value == "object") if (r.value.data && r.value.data.estree && e.evaluater) {
314
+ let t = r.value.data.estree.body[0];
315
+ t.type, a = e.evaluater.evaluateExpression(t.expression);
316
+ } else K(e, t.position);
317
+ else a = r.value === null ? !0 : r.value;
318
+ n[i] = a;
319
+ }
320
+ return n;
321
+ }
322
+ function ke(e, t) {
323
+ let n = [], r = -1, i = e.passKeys ? /* @__PURE__ */ new Map() : ue;
324
+ for (; ++r < t.children.length;) {
325
+ let a = t.children[r], o;
326
+ if (e.passKeys) {
327
+ let e = a.type === "element" ? a.tagName : a.type === "mdxJsxFlowElement" || a.type === "mdxJsxTextElement" ? a.name : void 0;
328
+ if (e) {
329
+ let t = i.get(e) || 0;
330
+ o = e + "-" + t, i.set(e, t + 1);
331
+ }
332
+ }
333
+ let s = ge(e, a, o);
334
+ s !== void 0 && n.push(s);
335
+ }
336
+ return n;
337
+ }
338
+ function Ae(e, t, n) {
339
+ let r = i(e.schema, t);
340
+ if (!(n == null || typeof n == "number" && Number.isNaN(n))) {
341
+ if (Array.isArray(n) && (n = r.commaSeparated ? c(n) : s(n)), r.property === "style") {
342
+ let t = typeof n == "object" ? n : je(e, String(n));
343
+ return e.stylePropertyNameCase === "css" && (t = Ne(t)), ["style", t];
344
+ }
345
+ return [e.elementAttributeNameCase === "react" && r.space ? f[r.property] || r.property : r.attribute, n];
346
+ }
347
+ }
348
+ function je(e, t) {
349
+ try {
350
+ return (0, le.default)(t, { reactCompat: !0 });
351
+ } catch (t) {
352
+ if (e.ignoreInvalidStyle) return {};
353
+ let n = t, r = new W("Cannot parse `style` attribute", {
354
+ ancestors: e.ancestors,
355
+ cause: n,
356
+ ruleId: "style",
357
+ source: "hast-util-to-jsx-runtime"
358
+ });
359
+ throw r.file = e.filePath || void 0, r.url = me + "#cannot-parse-style-attribute", r;
360
+ }
361
+ }
362
+ function Me(e, t, n) {
363
+ let r;
364
+ if (!n) r = {
365
+ type: "Literal",
366
+ value: t
367
+ };
368
+ else if (t.includes(".")) {
369
+ let e = t.split("."), n = -1, i;
370
+ for (; ++n < e.length;) {
371
+ let t = z(e[n]) ? {
372
+ type: "Identifier",
373
+ name: e[n]
374
+ } : {
375
+ type: "Literal",
376
+ value: e[n]
377
+ };
378
+ i = i ? {
379
+ type: "MemberExpression",
380
+ object: i,
381
+ property: t,
382
+ computed: !!(n && t.type === "Literal"),
383
+ optional: !1
384
+ } : t;
385
+ }
386
+ r = i;
387
+ } else r = z(t) && !/^[a-z]/.test(t) ? {
388
+ type: "Identifier",
389
+ name: t
390
+ } : {
391
+ type: "Literal",
392
+ value: t
393
+ };
394
+ if (r.type === "Literal") {
395
+ let t = r.value;
396
+ return G.call(e.components, t) ? e.components[t] : t;
397
+ }
398
+ if (e.evaluater) return e.evaluater.evaluateExpression(r);
399
+ K(e);
400
+ }
401
+ function K(e, t) {
402
+ let n = new W("Cannot handle MDX estrees without `createEvaluater`", {
403
+ ancestors: e.ancestors,
404
+ place: t,
405
+ ruleId: "mdx-estree",
406
+ source: "hast-util-to-jsx-runtime"
407
+ });
408
+ throw n.file = e.filePath || void 0, n.url = me + "#cannot-handle-mdx-estrees-without-createevaluater", n;
409
+ }
410
+ function Ne(e) {
411
+ let t = {}, n;
412
+ for (n in e) G.call(e, n) && (t[Pe(n)] = e[n]);
413
+ return t;
414
+ }
415
+ function Pe(e) {
416
+ let t = e.replace(de, Fe);
417
+ return t.slice(0, 3) === "ms-" && (t = "-" + t), t;
418
+ }
419
+ function Fe(e) {
420
+ return "-" + e.toLowerCase();
421
+ }
422
+ //#endregion
423
+ //#region node_modules/html-url-attributes/lib/index.js
424
+ var Ie = {
425
+ action: ["form"],
426
+ cite: [
427
+ "blockquote",
428
+ "del",
429
+ "ins",
430
+ "q"
431
+ ],
432
+ data: ["object"],
433
+ formAction: ["button", "input"],
434
+ href: [
435
+ "a",
436
+ "area",
437
+ "base",
438
+ "link"
439
+ ],
440
+ icon: ["menuitem"],
441
+ itemId: null,
442
+ manifest: ["html"],
443
+ ping: ["a", "area"],
444
+ poster: ["video"],
445
+ src: [
446
+ "audio",
447
+ "embed",
448
+ "iframe",
449
+ "img",
450
+ "input",
451
+ "script",
452
+ "source",
453
+ "track",
454
+ "video"
455
+ ]
456
+ }, Le = document.createElement("i");
457
+ function Re(e) {
458
+ let t = "&" + e + ";";
459
+ Le.innerHTML = t;
460
+ let n = Le.textContent;
461
+ return n.charCodeAt(n.length - 1) === 59 && e !== "semi" || n === t ? !1 : n;
462
+ }
463
+ //#endregion
464
+ //#region node_modules/micromark-util-decode-numeric-character-reference/index.js
465
+ function ze(e, t) {
466
+ let n = Number.parseInt(e, t);
467
+ return n < 9 || n === 11 || n > 13 && n < 32 || n > 126 && n < 160 || n > 55295 && n < 57344 || n > 64975 && n < 65008 || (n & 65535) == 65535 || (n & 65535) == 65534 || n > 1114111 ? "�" : String.fromCodePoint(n);
468
+ }
469
+ //#endregion
470
+ //#region node_modules/micromark-util-sanitize-uri/index.js
471
+ function q(e) {
472
+ let t = [], n = -1, r = 0, i = 0;
473
+ for (; ++n < e.length;) {
474
+ let a = e.charCodeAt(n), o = "";
475
+ if (a === 37 && w(e.charCodeAt(n + 1)) && w(e.charCodeAt(n + 2))) i = 2;
476
+ else if (a < 128) /[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a)) || (o = String.fromCharCode(a));
477
+ else if (a > 55295 && a < 57344) {
478
+ let t = e.charCodeAt(n + 1);
479
+ a < 56320 && t > 56319 && t < 57344 ? (o = String.fromCharCode(a, t), i = 1) : o = "�";
480
+ } else o = String.fromCharCode(a);
481
+ o &&= (t.push(e.slice(r, n), encodeURIComponent(o)), r = n + i + 1, ""), i &&= (n += i, 0);
482
+ }
483
+ return t.join("") + e.slice(r);
484
+ }
485
+ //#endregion
486
+ //#region node_modules/micromark/lib/initialize/content.js
487
+ var Be = { tokenize: Ve };
488
+ function Ve(e) {
489
+ let t = e.attempt(this.parser.constructs.contentInitial, r, i), n;
490
+ return t;
491
+ function r(n) {
492
+ if (n === null) {
493
+ e.consume(n);
494
+ return;
495
+ }
496
+ return e.enter("lineEnding"), e.consume(n), e.exit("lineEnding"), b(e, t, "linePrefix");
497
+ }
498
+ function i(t) {
499
+ return e.enter("paragraph"), a(t);
500
+ }
501
+ function a(t) {
502
+ let r = e.enter("chunkText", {
503
+ contentType: "text",
504
+ previous: n
505
+ });
506
+ return n && (n.next = r), n = r, o(t);
507
+ }
508
+ function o(t) {
509
+ if (t === null) {
510
+ e.exit("chunkText"), e.exit("paragraph"), e.consume(t);
511
+ return;
512
+ }
513
+ return y(t) ? (e.consume(t), e.exit("chunkText"), a) : (e.consume(t), o);
514
+ }
515
+ }
516
+ //#endregion
517
+ //#region node_modules/micromark/lib/initialize/document.js
518
+ var He = { tokenize: We }, Ue = { tokenize: Ge };
519
+ function We(e) {
520
+ let t = this, n = [], r = 0, i, a, o;
521
+ return s;
522
+ function s(i) {
523
+ if (r < n.length) {
524
+ let a = n[r];
525
+ return t.containerState = a[1], e.attempt(a[0].continuation, c, l)(i);
526
+ }
527
+ return l(i);
528
+ }
529
+ function c(e) {
530
+ if (r++, t.containerState._closeFlow) {
531
+ t.containerState._closeFlow = void 0, i && b();
532
+ let n = t.events.length, a = n, o;
533
+ for (; a--;) if (t.events[a][0] === "exit" && t.events[a][1].type === "chunkFlow") {
534
+ o = t.events[a][1].end;
535
+ break;
536
+ }
537
+ v(r);
538
+ let s = n;
539
+ for (; s < t.events.length;) t.events[s][1].end = { ...o }, s++;
540
+ return g(t.events, a + 1, 0, t.events.slice(n)), t.events.length = s, l(e);
541
+ }
542
+ return s(e);
543
+ }
544
+ function l(a) {
545
+ if (r === n.length) {
546
+ if (!i) return f(a);
547
+ if (i.currentConstruct && i.currentConstruct.concrete) return m(a);
548
+ t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
549
+ }
550
+ return t.containerState = {}, e.check(Ue, u, d)(a);
551
+ }
552
+ function u(e) {
553
+ return i && b(), v(r), f(e);
554
+ }
555
+ function d(e) {
556
+ return t.parser.lazy[t.now().line] = r !== n.length, o = t.now().offset, m(e);
557
+ }
558
+ function f(n) {
559
+ return t.containerState = {}, e.attempt(Ue, p, m)(n);
560
+ }
561
+ function p(e) {
562
+ return r++, n.push([t.currentConstruct, t.containerState]), f(e);
563
+ }
564
+ function m(n) {
565
+ if (n === null) {
566
+ i && b(), v(0), e.consume(n);
567
+ return;
568
+ }
569
+ return i ||= t.parser.flow(t.now()), e.enter("chunkFlow", {
570
+ _tokenizer: i,
571
+ contentType: "flow",
572
+ previous: a
573
+ }), h(n);
574
+ }
575
+ function h(n) {
576
+ if (n === null) {
577
+ _(e.exit("chunkFlow"), !0), v(0), e.consume(n);
578
+ return;
579
+ }
580
+ return y(n) ? (e.consume(n), _(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, s) : (e.consume(n), h);
581
+ }
582
+ function _(e, n) {
583
+ let s = t.sliceStream(e);
584
+ if (n && s.push(null), e.previous = a, a && (a.next = e), a = e, i.defineSkip(e.start), i.write(s), t.parser.lazy[e.start.line]) {
585
+ let e = i.events.length;
586
+ for (; e--;) if (i.events[e][1].start.offset < o && (!i.events[e][1].end || i.events[e][1].end.offset > o)) return;
587
+ let n = t.events.length, a = n, s, c;
588
+ for (; a--;) if (t.events[a][0] === "exit" && t.events[a][1].type === "chunkFlow") {
589
+ if (s) {
590
+ c = t.events[a][1].end;
591
+ break;
592
+ }
593
+ s = !0;
594
+ }
595
+ for (v(r), e = n; e < t.events.length;) t.events[e][1].end = { ...c }, e++;
596
+ g(t.events, a + 1, 0, t.events.slice(n)), t.events.length = e;
597
+ }
598
+ }
599
+ function v(r) {
600
+ let i = n.length;
601
+ for (; i-- > r;) {
602
+ let r = n[i];
603
+ t.containerState = r[1], r[0].exit.call(t, e);
604
+ }
605
+ n.length = r;
606
+ }
607
+ function b() {
608
+ i.write([null]), a = void 0, i = void 0, t.containerState._closeFlow = void 0;
609
+ }
610
+ }
611
+ function Ge(e, t, n) {
612
+ return b(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
613
+ }
614
+ //#endregion
615
+ //#region node_modules/micromark-core-commonmark/lib/attention.js
616
+ var Ke = {
617
+ name: "attention",
618
+ resolveAll: qe,
619
+ tokenize: Je
620
+ };
621
+ function qe(e, t) {
622
+ let n = -1, r, i, a, o, s, c, l, u;
623
+ for (; ++n < e.length;) if (e[n][0] === "enter" && e[n][1].type === "attentionSequence" && e[n][1]._close) {
624
+ 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)) {
625
+ 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;
626
+ c = e[r][1].end.offset - e[r][1].start.offset > 1 && e[n][1].end.offset - e[n][1].start.offset > 1 ? 2 : 1;
627
+ let d = { ...e[r][1].end }, f = { ...e[n][1].start };
628
+ Ye(d, -c), Ye(f, c), o = {
629
+ type: c > 1 ? "strongSequence" : "emphasisSequence",
630
+ start: d,
631
+ end: { ...e[r][1].end }
632
+ }, s = {
633
+ type: c > 1 ? "strongSequence" : "emphasisSequence",
634
+ start: { ...e[n][1].start },
635
+ end: f
636
+ }, a = {
637
+ type: c > 1 ? "strongText" : "emphasisText",
638
+ start: { ...e[r][1].end },
639
+ end: { ...e[n][1].start }
640
+ }, i = {
641
+ type: c > 1 ? "strong" : "emphasis",
642
+ start: { ...o.start },
643
+ end: { ...s.end }
644
+ }, e[r][1].end = { ...o.start }, e[n][1].start = { ...s.end }, l = [], e[r][1].end.offset - e[r][1].start.offset && (l = M(l, [[
645
+ "enter",
646
+ e[r][1],
647
+ t
648
+ ], [
649
+ "exit",
650
+ e[r][1],
651
+ t
652
+ ]])), l = M(l, [
653
+ [
654
+ "enter",
655
+ i,
656
+ t
657
+ ],
658
+ [
659
+ "enter",
660
+ o,
661
+ t
662
+ ],
663
+ [
664
+ "exit",
665
+ o,
666
+ t
667
+ ],
668
+ [
669
+ "enter",
670
+ a,
671
+ t
672
+ ]
673
+ ]), l = M(l, C(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), l = M(l, [
674
+ [
675
+ "exit",
676
+ a,
677
+ t
678
+ ],
679
+ [
680
+ "enter",
681
+ s,
682
+ t
683
+ ],
684
+ [
685
+ "exit",
686
+ s,
687
+ t
688
+ ],
689
+ [
690
+ "exit",
691
+ i,
692
+ t
693
+ ]
694
+ ]), e[n][1].end.offset - e[n][1].start.offset ? (u = 2, l = M(l, [[
695
+ "enter",
696
+ e[n][1],
697
+ t
698
+ ], [
699
+ "exit",
700
+ e[n][1],
701
+ t
702
+ ]])) : u = 0, g(e, r - 1, n - r + 3, l), n = r + l.length - u - 2;
703
+ break;
704
+ }
705
+ }
706
+ for (n = -1; ++n < e.length;) e[n][1].type === "attentionSequence" && (e[n][1].type = "data");
707
+ return e;
708
+ }
709
+ function Je(e, t) {
710
+ let n = this.parser.constructs.attentionMarkers.null, r = this.previous, i = E(r), a;
711
+ return o;
712
+ function o(t) {
713
+ return a = t, e.enter("attentionSequence"), s(t);
714
+ }
715
+ function s(o) {
716
+ if (o === a) return e.consume(o), s;
717
+ let c = e.exit("attentionSequence"), l = E(o), u = !l || l === 2 && i || n.includes(o), d = !i || i === 2 && l || n.includes(r);
718
+ return c._open = !!(a === 42 ? u : u && (i || !d)), c._close = !!(a === 42 ? d : d && (l || !u)), t(o);
719
+ }
720
+ }
721
+ function Ye(e, t) {
722
+ e.column += t, e.offset += t, e._bufferIndex += t;
723
+ }
724
+ //#endregion
725
+ //#region node_modules/micromark-core-commonmark/lib/autolink.js
726
+ var Xe = {
727
+ name: "autolink",
728
+ tokenize: Ze
729
+ };
730
+ function Ze(e, t, n) {
731
+ let r = 0;
732
+ return i;
733
+ function i(t) {
734
+ return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(t), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), a;
735
+ }
736
+ function a(t) {
737
+ return h(t) ? (e.consume(t), o) : t === 64 ? n(t) : l(t);
738
+ }
739
+ function o(e) {
740
+ return e === 43 || e === 45 || e === 46 || w(e) ? (r = 1, s(e)) : l(e);
741
+ }
742
+ function s(t) {
743
+ return t === 58 ? (e.consume(t), r = 0, c) : (t === 43 || t === 45 || t === 46 || w(t)) && r++ < 32 ? (e.consume(t), s) : (r = 0, l(t));
744
+ }
745
+ function c(r) {
746
+ return r === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(r), e.exit("autolinkMarker"), e.exit("autolink"), t) : r === null || r === 32 || r === 60 || _(r) ? n(r) : (e.consume(r), c);
747
+ }
748
+ function l(t) {
749
+ return t === 64 ? (e.consume(t), u) : D(t) ? (e.consume(t), l) : n(t);
750
+ }
751
+ function u(e) {
752
+ return w(e) ? d(e) : n(e);
753
+ }
754
+ function d(n) {
755
+ return n === 46 ? (e.consume(n), r = 0, u) : n === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(n), e.exit("autolinkMarker"), e.exit("autolink"), t) : f(n);
756
+ }
757
+ function f(t) {
758
+ if ((t === 45 || w(t)) && r++ < 63) {
759
+ let n = t === 45 ? f : d;
760
+ return e.consume(t), n;
761
+ }
762
+ return n(t);
763
+ }
764
+ }
765
+ //#endregion
766
+ //#region node_modules/micromark-core-commonmark/lib/block-quote.js
767
+ var Qe = {
768
+ continuation: { tokenize: et },
769
+ exit: tt,
770
+ name: "blockQuote",
771
+ tokenize: $e
772
+ };
773
+ function $e(e, t, n) {
774
+ let r = this;
775
+ return i;
776
+ function i(t) {
777
+ if (t === 62) {
778
+ let n = r.containerState;
779
+ return n.open ||= (e.enter("blockQuote", { _container: !0 }), !0), e.enter("blockQuotePrefix"), e.enter("blockQuoteMarker"), e.consume(t), e.exit("blockQuoteMarker"), a;
780
+ }
781
+ return n(t);
782
+ }
783
+ function a(n) {
784
+ return S(n) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(n), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(n));
785
+ }
786
+ }
787
+ function et(e, t, n) {
788
+ let r = this;
789
+ return i;
790
+ function i(t) {
791
+ return S(t) ? b(e, a, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(t) : a(t);
792
+ }
793
+ function a(r) {
794
+ return e.attempt(Qe, t, n)(r);
795
+ }
796
+ }
797
+ function tt(e) {
798
+ e.exit("blockQuote");
799
+ }
800
+ //#endregion
801
+ //#region node_modules/micromark-core-commonmark/lib/character-escape.js
802
+ var nt = {
803
+ name: "characterEscape",
804
+ tokenize: rt
805
+ };
806
+ function rt(e, t, n) {
807
+ return r;
808
+ function r(t) {
809
+ return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(t), e.exit("escapeMarker"), i;
810
+ }
811
+ function i(r) {
812
+ return v(r) ? (e.enter("characterEscapeValue"), e.consume(r), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(r);
813
+ }
814
+ }
815
+ //#endregion
816
+ //#region node_modules/micromark-core-commonmark/lib/character-reference.js
817
+ var it = {
818
+ name: "characterReference",
819
+ tokenize: at
820
+ };
821
+ function at(e, t, n) {
822
+ let r = this, i = 0, a, o;
823
+ return s;
824
+ function s(t) {
825
+ return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(t), e.exit("characterReferenceMarker"), c;
826
+ }
827
+ function c(t) {
828
+ return t === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(t), e.exit("characterReferenceMarkerNumeric"), l) : (e.enter("characterReferenceValue"), a = 31, o = w, u(t));
829
+ }
830
+ function l(t) {
831
+ return t === 88 || t === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(t), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, o = k, u) : (e.enter("characterReferenceValue"), a = 7, o = x, u(t));
832
+ }
833
+ function u(s) {
834
+ if (s === 59 && i) {
835
+ let i = e.exit("characterReferenceValue");
836
+ return o === w && !Re(r.sliceSerialize(i)) ? n(s) : (e.enter("characterReferenceMarker"), e.consume(s), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
837
+ }
838
+ return o(s) && i++ < a ? (e.consume(s), u) : n(s);
839
+ }
840
+ }
841
+ //#endregion
842
+ //#region node_modules/micromark-core-commonmark/lib/code-fenced.js
843
+ var ot = {
844
+ partial: !0,
845
+ tokenize: lt
846
+ }, st = {
847
+ concrete: !0,
848
+ name: "codeFenced",
849
+ tokenize: ct
850
+ };
851
+ function ct(e, t, n) {
852
+ let r = this, i = {
853
+ partial: !0,
854
+ tokenize: w
855
+ }, a = 0, o = 0, s;
856
+ return c;
857
+ function c(e) {
858
+ return l(e);
859
+ }
860
+ function l(t) {
861
+ let n = r.events[r.events.length - 1];
862
+ return a = n && n[1].type === "linePrefix" ? n[2].sliceSerialize(n[1], !0).length : 0, s = t, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), u(t);
863
+ }
864
+ function u(t) {
865
+ return t === s ? (o++, e.consume(t), u) : o < 3 ? n(t) : (e.exit("codeFencedFenceSequence"), S(t) ? b(e, d, "whitespace")(t) : d(t));
866
+ }
867
+ function d(n) {
868
+ return n === null || y(n) ? (e.exit("codeFencedFence"), r.interrupt ? t(n) : e.check(ot, h, C)(n)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", { contentType: "string" }), f(n));
869
+ }
870
+ function f(t) {
871
+ return t === null || y(t) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(t)) : S(t) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), b(e, p, "whitespace")(t)) : t === 96 && t === s ? n(t) : (e.consume(t), f);
872
+ }
873
+ function p(t) {
874
+ return t === null || y(t) ? d(t) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", { contentType: "string" }), m(t));
875
+ }
876
+ function m(t) {
877
+ return t === null || y(t) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), d(t)) : t === 96 && t === s ? n(t) : (e.consume(t), m);
878
+ }
879
+ function h(t) {
880
+ return e.attempt(i, C, g)(t);
881
+ }
882
+ function g(t) {
883
+ return e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), _;
884
+ }
885
+ function _(t) {
886
+ return a > 0 && S(t) ? b(e, v, "linePrefix", a + 1)(t) : v(t);
887
+ }
888
+ function v(t) {
889
+ return t === null || y(t) ? e.check(ot, h, C)(t) : (e.enter("codeFlowValue"), x(t));
890
+ }
891
+ function x(t) {
892
+ return t === null || y(t) ? (e.exit("codeFlowValue"), v(t)) : (e.consume(t), x);
893
+ }
894
+ function C(n) {
895
+ return e.exit("codeFenced"), t(n);
896
+ }
897
+ function w(e, t, n) {
898
+ let i = 0;
899
+ return a;
900
+ function a(t) {
901
+ return e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), c;
902
+ }
903
+ function c(t) {
904
+ return e.enter("codeFencedFence"), S(t) ? b(e, l, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(t) : l(t);
905
+ }
906
+ function l(t) {
907
+ return t === s ? (e.enter("codeFencedFenceSequence"), u(t)) : n(t);
908
+ }
909
+ function u(t) {
910
+ return t === s ? (i++, e.consume(t), u) : i >= o ? (e.exit("codeFencedFenceSequence"), S(t) ? b(e, d, "whitespace")(t) : d(t)) : n(t);
911
+ }
912
+ function d(r) {
913
+ return r === null || y(r) ? (e.exit("codeFencedFence"), t(r)) : n(r);
914
+ }
915
+ }
916
+ }
917
+ function lt(e, t, n) {
918
+ let r = this;
919
+ return i;
920
+ function i(t) {
921
+ return t === null ? n(t) : (e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), a);
922
+ }
923
+ function a(e) {
924
+ return r.parser.lazy[r.now().line] ? n(e) : t(e);
925
+ }
926
+ }
927
+ //#endregion
928
+ //#region node_modules/micromark-core-commonmark/lib/code-indented.js
929
+ var ut = {
930
+ name: "codeIndented",
931
+ tokenize: ft
932
+ }, dt = {
933
+ partial: !0,
934
+ tokenize: pt
935
+ };
936
+ function ft(e, t, n) {
937
+ let r = this;
938
+ return i;
939
+ function i(t) {
940
+ return e.enter("codeIndented"), b(e, a, "linePrefix", 5)(t);
941
+ }
942
+ function a(e) {
943
+ let t = r.events[r.events.length - 1];
944
+ return t && t[1].type === "linePrefix" && t[2].sliceSerialize(t[1], !0).length >= 4 ? o(e) : n(e);
945
+ }
946
+ function o(t) {
947
+ return t === null ? c(t) : y(t) ? e.attempt(dt, o, c)(t) : (e.enter("codeFlowValue"), s(t));
948
+ }
949
+ function s(t) {
950
+ return t === null || y(t) ? (e.exit("codeFlowValue"), o(t)) : (e.consume(t), s);
951
+ }
952
+ function c(n) {
953
+ return e.exit("codeIndented"), t(n);
954
+ }
955
+ }
956
+ function pt(e, t, n) {
957
+ let r = this;
958
+ return i;
959
+ function i(t) {
960
+ return r.parser.lazy[r.now().line] ? n(t) : y(t) ? (e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), i) : b(e, a, "linePrefix", 5)(t);
961
+ }
962
+ function a(e) {
963
+ let a = r.events[r.events.length - 1];
964
+ return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? t(e) : y(e) ? i(e) : n(e);
965
+ }
966
+ }
967
+ //#endregion
968
+ //#region node_modules/micromark-core-commonmark/lib/code-text.js
969
+ var mt = {
970
+ name: "codeText",
971
+ previous: gt,
972
+ resolve: ht,
973
+ tokenize: _t
974
+ };
975
+ function ht(e) {
976
+ let t = e.length - 4, n = 3, r, i;
977
+ if ((e[n][1].type === "lineEnding" || e[n][1].type === "space") && (e[t][1].type === "lineEnding" || e[t][1].type === "space")) {
978
+ for (r = n; ++r < t;) if (e[r][1].type === "codeTextData") {
979
+ e[n][1].type = "codeTextPadding", e[t][1].type = "codeTextPadding", n += 2, t -= 2;
980
+ break;
981
+ }
982
+ }
983
+ for (r = n - 1, t++; ++r <= t;) i === void 0 ? r !== t && e[r][1].type !== "lineEnding" && (i = r) : (r === t || 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), t -= r - i - 2, r = i + 2), i = void 0);
984
+ return e;
985
+ }
986
+ function gt(e) {
987
+ return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
988
+ }
989
+ function _t(e, t, n) {
990
+ let r = 0, i, a;
991
+ return o;
992
+ function o(t) {
993
+ return e.enter("codeText"), e.enter("codeTextSequence"), s(t);
994
+ }
995
+ function s(t) {
996
+ return t === 96 ? (e.consume(t), r++, s) : (e.exit("codeTextSequence"), c(t));
997
+ }
998
+ function c(t) {
999
+ return t === null ? n(t) : t === 32 ? (e.enter("space"), e.consume(t), e.exit("space"), c) : t === 96 ? (a = e.enter("codeTextSequence"), i = 0, u(t)) : y(t) ? (e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), c) : (e.enter("codeTextData"), l(t));
1000
+ }
1001
+ function l(t) {
1002
+ return t === null || t === 32 || t === 96 || y(t) ? (e.exit("codeTextData"), c(t)) : (e.consume(t), l);
1003
+ }
1004
+ function u(n) {
1005
+ return n === 96 ? (e.consume(n), i++, u) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), t(n)) : (a.type = "codeTextData", l(n));
1006
+ }
1007
+ }
1008
+ //#endregion
1009
+ //#region node_modules/micromark-util-subtokenize/lib/splice-buffer.js
1010
+ var vt = class {
1011
+ constructor(e) {
1012
+ this.left = e ? [...e] : [], this.right = [];
1013
+ }
1014
+ get(e) {
1015
+ if (e < 0 || e >= this.left.length + this.right.length) throw RangeError("Cannot access index `" + e + "` in a splice buffer of size `" + (this.left.length + this.right.length) + "`");
1016
+ return e < this.left.length ? this.left[e] : this.right[this.right.length - e + this.left.length - 1];
1017
+ }
1018
+ get length() {
1019
+ return this.left.length + this.right.length;
1020
+ }
1021
+ shift() {
1022
+ return this.setCursor(0), this.right.pop();
1023
+ }
1024
+ slice(e, t) {
1025
+ let n = t ?? Infinity;
1026
+ return n < this.left.length ? this.left.slice(e, n) : e > this.left.length ? this.right.slice(this.right.length - n + this.left.length, this.right.length - e + this.left.length).reverse() : this.left.slice(e).concat(this.right.slice(this.right.length - n + this.left.length).reverse());
1027
+ }
1028
+ splice(e, t, n) {
1029
+ let r = t || 0;
1030
+ this.setCursor(Math.trunc(e));
1031
+ let i = this.right.splice(this.right.length - r, Infinity);
1032
+ return n && J(this.left, n), i.reverse();
1033
+ }
1034
+ pop() {
1035
+ return this.setCursor(Infinity), this.left.pop();
1036
+ }
1037
+ push(e) {
1038
+ this.setCursor(Infinity), this.left.push(e);
1039
+ }
1040
+ pushMany(e) {
1041
+ this.setCursor(Infinity), J(this.left, e);
1042
+ }
1043
+ unshift(e) {
1044
+ this.setCursor(0), this.right.push(e);
1045
+ }
1046
+ unshiftMany(e) {
1047
+ this.setCursor(0), J(this.right, e.reverse());
1048
+ }
1049
+ setCursor(e) {
1050
+ if (!(e === this.left.length || e > this.left.length && this.right.length === 0 || e < 0 && this.left.length === 0)) if (e < this.left.length) {
1051
+ let t = this.left.splice(e, Infinity);
1052
+ J(this.right, t.reverse());
1053
+ } else {
1054
+ let t = this.right.splice(this.left.length + this.right.length - e, Infinity);
1055
+ J(this.left, t.reverse());
1056
+ }
1057
+ }
1058
+ };
1059
+ function J(e, t) {
1060
+ let n = 0;
1061
+ if (t.length < 1e4) e.push(...t);
1062
+ else for (; n < t.length;) e.push(...t.slice(n, n + 1e4)), n += 1e4;
1063
+ }
1064
+ //#endregion
1065
+ //#region node_modules/micromark-util-subtokenize/index.js
1066
+ function yt(e) {
1067
+ let t = {}, n = -1, r, i, a, o, s, c, l, u = new vt(e);
1068
+ for (; ++n < u.length;) {
1069
+ for (; n in t;) n = t[n];
1070
+ if (r = u.get(n), n && r[1].type === "chunkFlow" && u.get(n - 1)[1].type === "listItemPrefix" && (c = r[1]._tokenizer.events, a = 0, a < c.length && c[a][1].type === "lineEndingBlank" && (a += 2), a < c.length && c[a][1].type === "content")) for (; ++a < c.length && c[a][1].type !== "content";) c[a][1].type === "chunkText" && (c[a][1]._isInFirstContentOfListItem = !0, a++);
1071
+ if (r[0] === "enter") r[1].contentType && (Object.assign(t, bt(u, n)), n = t[n], l = !0);
1072
+ else if (r[1]._container) {
1073
+ for (a = n, i = void 0; a--;) if (o = u.get(a), o[1].type === "lineEnding" || o[1].type === "lineEndingBlank") o[0] === "enter" && (i && (u.get(i)[1].type = "lineEndingBlank"), o[1].type = "lineEnding", i = a);
1074
+ else if (!(o[1].type === "linePrefix" || o[1].type === "listItemIndent")) break;
1075
+ i && (r[1].end = { ...u.get(i)[1].start }, s = u.slice(i, n), s.unshift(r), u.splice(i, n - i + 1, s));
1076
+ }
1077
+ }
1078
+ return g(e, 0, Infinity, u.slice(0)), !l;
1079
+ }
1080
+ function bt(e, t) {
1081
+ let n = e.get(t)[1], r = e.get(t)[2], i = t - 1, a = [], o = n._tokenizer;
1082
+ o || (o = r.parser[n.contentType](n.start), n._contentTypeTextTrailing && (o._contentTypeTextTrailing = !0));
1083
+ let s = o.events, c = [], l = {}, u, d, f = -1, p = n, m = 0, h = 0, g = [h];
1084
+ for (; p;) {
1085
+ for (; e.get(++i)[1] !== p;);
1086
+ a.push(i), p._tokenizer || (u = r.sliceStream(p), p.next || u.push(null), d && o.defineSkip(p.start), p._isInFirstContentOfListItem && (o._gfmTasklistFirstContentOfListItem = !0), o.write(u), p._isInFirstContentOfListItem && (o._gfmTasklistFirstContentOfListItem = void 0)), d = p, p = p.next;
1087
+ }
1088
+ for (p = n; ++f < s.length;) s[f][0] === "exit" && s[f - 1][0] === "enter" && s[f][1].type === s[f - 1][1].type && s[f][1].start.line !== s[f][1].end.line && (h = f + 1, g.push(h), p._tokenizer = void 0, p.previous = void 0, p = p.next);
1089
+ for (o.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) : g.pop(), f = g.length; f--;) {
1090
+ let t = s.slice(g[f], g[f + 1]), n = a.pop();
1091
+ c.push([n, n + t.length - 1]), e.splice(n, 2, t);
1092
+ }
1093
+ for (c.reverse(), f = -1; ++f < c.length;) l[m + c[f][0]] = m + c[f][1], m += c[f][1] - c[f][0] - 1;
1094
+ return l;
1095
+ }
1096
+ //#endregion
1097
+ //#region node_modules/micromark-core-commonmark/lib/content.js
1098
+ var xt = {
1099
+ resolve: Ct,
1100
+ tokenize: wt
1101
+ }, St = {
1102
+ partial: !0,
1103
+ tokenize: Tt
1104
+ };
1105
+ function Ct(e) {
1106
+ return yt(e), e;
1107
+ }
1108
+ function wt(e, t) {
1109
+ let n;
1110
+ return r;
1111
+ function r(t) {
1112
+ return e.enter("content"), n = e.enter("chunkContent", { contentType: "content" }), i(t);
1113
+ }
1114
+ function i(t) {
1115
+ return t === null ? a(t) : y(t) ? e.check(St, o, a)(t) : (e.consume(t), i);
1116
+ }
1117
+ function a(n) {
1118
+ return e.exit("chunkContent"), e.exit("content"), t(n);
1119
+ }
1120
+ function o(t) {
1121
+ return e.consume(t), e.exit("chunkContent"), n.next = e.enter("chunkContent", {
1122
+ contentType: "content",
1123
+ previous: n
1124
+ }), n = n.next, i;
1125
+ }
1126
+ }
1127
+ function Tt(e, t, n) {
1128
+ let r = this;
1129
+ return i;
1130
+ function i(t) {
1131
+ return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), b(e, a, "linePrefix");
1132
+ }
1133
+ function a(i) {
1134
+ if (i === null || y(i)) return n(i);
1135
+ let a = r.events[r.events.length - 1];
1136
+ return !r.parser.constructs.disable.null.includes("codeIndented") && a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? t(i) : e.interrupt(r.parser.constructs.flow, n, t)(i);
1137
+ }
1138
+ }
1139
+ //#endregion
1140
+ //#region node_modules/micromark-factory-destination/index.js
1141
+ function Et(e, t, n, r, i, a, o, s, c) {
1142
+ let l = c || Infinity, u = 0;
1143
+ return d;
1144
+ function d(t) {
1145
+ return t === 60 ? (e.enter(r), e.enter(i), e.enter(a), e.consume(t), e.exit(a), f) : t === null || t === 32 || t === 41 || _(t) ? n(t) : (e.enter(r), e.enter(o), e.enter(s), e.enter("chunkString", { contentType: "string" }), h(t));
1146
+ }
1147
+ function f(n) {
1148
+ return n === 62 ? (e.enter(a), e.consume(n), e.exit(a), e.exit(i), e.exit(r), t) : (e.enter(s), e.enter("chunkString", { contentType: "string" }), p(n));
1149
+ }
1150
+ function p(t) {
1151
+ return t === 62 ? (e.exit("chunkString"), e.exit(s), f(t)) : t === null || t === 60 || y(t) ? n(t) : (e.consume(t), t === 92 ? m : p);
1152
+ }
1153
+ function m(t) {
1154
+ return t === 60 || t === 62 || t === 92 ? (e.consume(t), p) : p(t);
1155
+ }
1156
+ function h(i) {
1157
+ return !u && (i === null || i === 41 || T(i)) ? (e.exit("chunkString"), e.exit(s), e.exit(o), e.exit(r), t(i)) : u < l && i === 40 ? (e.consume(i), u++, h) : i === 41 ? (e.consume(i), u--, h) : i === null || i === 32 || i === 40 || _(i) ? n(i) : (e.consume(i), i === 92 ? g : h);
1158
+ }
1159
+ function g(t) {
1160
+ return t === 40 || t === 41 || t === 92 ? (e.consume(t), h) : h(t);
1161
+ }
1162
+ }
1163
+ //#endregion
1164
+ //#region node_modules/micromark-factory-label/index.js
1165
+ function Dt(e, t, n, r, i, a) {
1166
+ let o = this, s = 0, c;
1167
+ return l;
1168
+ function l(t) {
1169
+ return e.enter(r), e.enter(i), e.consume(t), e.exit(i), e.enter(a), u;
1170
+ }
1171
+ function u(l) {
1172
+ return s > 999 || l === null || l === 91 || l === 93 && !c || l === 94 && !s && "_hiddenFootnoteSupport" in o.parser.constructs ? n(l) : l === 93 ? (e.exit(a), e.enter(i), e.consume(l), e.exit(i), e.exit(r), t) : y(l) ? (e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), u) : (e.enter("chunkString", { contentType: "string" }), d(l));
1173
+ }
1174
+ function d(t) {
1175
+ return t === null || t === 91 || t === 93 || y(t) || s++ > 999 ? (e.exit("chunkString"), u(t)) : (e.consume(t), c ||= !S(t), t === 92 ? f : d);
1176
+ }
1177
+ function f(t) {
1178
+ return t === 91 || t === 92 || t === 93 ? (e.consume(t), s++, d) : d(t);
1179
+ }
1180
+ }
1181
+ //#endregion
1182
+ //#region node_modules/micromark-factory-title/index.js
1183
+ function Ot(e, t, n, r, i, a) {
1184
+ let o;
1185
+ return s;
1186
+ function s(t) {
1187
+ return t === 34 || t === 39 || t === 40 ? (e.enter(r), e.enter(i), e.consume(t), e.exit(i), o = t === 40 ? 41 : t, c) : n(t);
1188
+ }
1189
+ function c(n) {
1190
+ return n === o ? (e.enter(i), e.consume(n), e.exit(i), e.exit(r), t) : (e.enter(a), l(n));
1191
+ }
1192
+ function l(t) {
1193
+ return t === o ? (e.exit(a), c(o)) : t === null ? n(t) : y(t) ? (e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), b(e, l, "linePrefix")) : (e.enter("chunkString", { contentType: "string" }), u(t));
1194
+ }
1195
+ function u(t) {
1196
+ return t === o || t === null || y(t) ? (e.exit("chunkString"), l(t)) : (e.consume(t), t === 92 ? d : u);
1197
+ }
1198
+ function d(t) {
1199
+ return t === o || t === 92 ? (e.consume(t), u) : u(t);
1200
+ }
1201
+ }
1202
+ //#endregion
1203
+ //#region node_modules/micromark-factory-whitespace/index.js
1204
+ function Y(e, t) {
1205
+ let n;
1206
+ return r;
1207
+ function r(i) {
1208
+ return y(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : S(i) ? b(e, r, n ? "linePrefix" : "lineSuffix")(i) : t(i);
1209
+ }
1210
+ }
1211
+ //#endregion
1212
+ //#region node_modules/micromark-core-commonmark/lib/definition.js
1213
+ var kt = {
1214
+ name: "definition",
1215
+ tokenize: jt
1216
+ }, At = {
1217
+ partial: !0,
1218
+ tokenize: Mt
1219
+ };
1220
+ function jt(e, t, n) {
1221
+ let r = this, i;
1222
+ return a;
1223
+ function a(t) {
1224
+ return e.enter("definition"), o(t);
1225
+ }
1226
+ function o(t) {
1227
+ return Dt.call(r, e, s, n, "definitionLabel", "definitionLabelMarker", "definitionLabelString")(t);
1228
+ }
1229
+ function s(t) {
1230
+ return i = m(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), t === 58 ? (e.enter("definitionMarker"), e.consume(t), e.exit("definitionMarker"), c) : n(t);
1231
+ }
1232
+ function c(t) {
1233
+ return T(t) ? Y(e, l)(t) : l(t);
1234
+ }
1235
+ function l(t) {
1236
+ return Et(e, u, n, "definitionDestination", "definitionDestinationLiteral", "definitionDestinationLiteralMarker", "definitionDestinationRaw", "definitionDestinationString")(t);
1237
+ }
1238
+ function u(t) {
1239
+ return e.attempt(At, d, d)(t);
1240
+ }
1241
+ function d(t) {
1242
+ return S(t) ? b(e, f, "whitespace")(t) : f(t);
1243
+ }
1244
+ function f(a) {
1245
+ return a === null || y(a) ? (e.exit("definition"), r.parser.defined.push(i), t(a)) : n(a);
1246
+ }
1247
+ }
1248
+ function Mt(e, t, n) {
1249
+ return r;
1250
+ function r(t) {
1251
+ return T(t) ? Y(e, i)(t) : n(t);
1252
+ }
1253
+ function i(t) {
1254
+ return Ot(e, a, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(t);
1255
+ }
1256
+ function a(t) {
1257
+ return S(t) ? b(e, o, "whitespace")(t) : o(t);
1258
+ }
1259
+ function o(e) {
1260
+ return e === null || y(e) ? t(e) : n(e);
1261
+ }
1262
+ }
1263
+ //#endregion
1264
+ //#region node_modules/micromark-core-commonmark/lib/hard-break-escape.js
1265
+ var Nt = {
1266
+ name: "hardBreakEscape",
1267
+ tokenize: Pt
1268
+ };
1269
+ function Pt(e, t, n) {
1270
+ return r;
1271
+ function r(t) {
1272
+ return e.enter("hardBreakEscape"), e.consume(t), i;
1273
+ }
1274
+ function i(r) {
1275
+ return y(r) ? (e.exit("hardBreakEscape"), t(r)) : n(r);
1276
+ }
1277
+ }
1278
+ //#endregion
1279
+ //#region node_modules/micromark-core-commonmark/lib/heading-atx.js
1280
+ var Ft = {
1281
+ name: "headingAtx",
1282
+ resolve: It,
1283
+ tokenize: Lt
1284
+ };
1285
+ function It(e, t) {
1286
+ let n = e.length - 2, r = 3, i, a;
1287
+ return e[r][1].type === "whitespace" && (r += 2), n - 2 > r && e[n][1].type === "whitespace" && (n -= 2), e[n][1].type === "atxHeadingSequence" && (r === n - 1 || n - 4 > r && e[n - 2][1].type === "whitespace") && (n -= r + 1 === n ? 2 : 4), n > r && (i = {
1288
+ type: "atxHeadingText",
1289
+ start: e[r][1].start,
1290
+ end: e[n][1].end
1291
+ }, a = {
1292
+ type: "chunkText",
1293
+ start: e[r][1].start,
1294
+ end: e[n][1].end,
1295
+ contentType: "text"
1296
+ }, g(e, r, n - r + 1, [
1297
+ [
1298
+ "enter",
1299
+ i,
1300
+ t
1301
+ ],
1302
+ [
1303
+ "enter",
1304
+ a,
1305
+ t
1306
+ ],
1307
+ [
1308
+ "exit",
1309
+ a,
1310
+ t
1311
+ ],
1312
+ [
1313
+ "exit",
1314
+ i,
1315
+ t
1316
+ ]
1317
+ ])), e;
1318
+ }
1319
+ function Lt(e, t, n) {
1320
+ let r = 0;
1321
+ return i;
1322
+ function i(t) {
1323
+ return e.enter("atxHeading"), a(t);
1324
+ }
1325
+ function a(t) {
1326
+ return e.enter("atxHeadingSequence"), o(t);
1327
+ }
1328
+ function o(t) {
1329
+ return t === 35 && r++ < 6 ? (e.consume(t), o) : t === null || T(t) ? (e.exit("atxHeadingSequence"), s(t)) : n(t);
1330
+ }
1331
+ function s(n) {
1332
+ return n === 35 ? (e.enter("atxHeadingSequence"), c(n)) : n === null || y(n) ? (e.exit("atxHeading"), t(n)) : S(n) ? b(e, s, "whitespace")(n) : (e.enter("atxHeadingText"), l(n));
1333
+ }
1334
+ function c(t) {
1335
+ return t === 35 ? (e.consume(t), c) : (e.exit("atxHeadingSequence"), s(t));
1336
+ }
1337
+ function l(t) {
1338
+ return t === null || t === 35 || T(t) ? (e.exit("atxHeadingText"), s(t)) : (e.consume(t), l);
1339
+ }
1340
+ }
1341
+ //#endregion
1342
+ //#region node_modules/micromark-util-html-tag-name/index.js
1343
+ var Rt = /* @__PURE__ */ "address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul".split("."), zt = [
1344
+ "pre",
1345
+ "script",
1346
+ "style",
1347
+ "textarea"
1348
+ ], Bt = {
1349
+ concrete: !0,
1350
+ name: "htmlFlow",
1351
+ resolveTo: Ut,
1352
+ tokenize: Wt
1353
+ }, Vt = {
1354
+ partial: !0,
1355
+ tokenize: Kt
1356
+ }, Ht = {
1357
+ partial: !0,
1358
+ tokenize: Gt
1359
+ };
1360
+ function Ut(e) {
1361
+ let t = e.length;
1362
+ for (; t-- && !(e[t][0] === "enter" && e[t][1].type === "htmlFlow"););
1363
+ return t > 1 && e[t - 2][1].type === "linePrefix" && (e[t][1].start = e[t - 2][1].start, e[t + 1][1].start = e[t - 2][1].start, e.splice(t - 2, 2)), e;
1364
+ }
1365
+ function Wt(e, t, n) {
1366
+ let r = this, i, a, o, s, c;
1367
+ return l;
1368
+ function l(e) {
1369
+ return u(e);
1370
+ }
1371
+ function u(t) {
1372
+ return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(t), d;
1373
+ }
1374
+ function d(s) {
1375
+ return s === 33 ? (e.consume(s), f) : s === 47 ? (e.consume(s), a = !0, g) : s === 63 ? (e.consume(s), i = 3, r.interrupt ? t : z) : h(s) ? (e.consume(s), o = String.fromCharCode(s), _) : n(s);
1376
+ }
1377
+ function f(a) {
1378
+ return a === 45 ? (e.consume(a), i = 2, p) : a === 91 ? (e.consume(a), i = 5, s = 0, m) : h(a) ? (e.consume(a), i = 4, r.interrupt ? t : z) : n(a);
1379
+ }
1380
+ function p(i) {
1381
+ return i === 45 ? (e.consume(i), r.interrupt ? t : z) : n(i);
1382
+ }
1383
+ function m(i) {
1384
+ return i === "CDATA[".charCodeAt(s++) ? (e.consume(i), s === 6 ? r.interrupt ? t : N : m) : n(i);
1385
+ }
1386
+ function g(t) {
1387
+ return h(t) ? (e.consume(t), o = String.fromCharCode(t), _) : n(t);
1388
+ }
1389
+ function _(s) {
1390
+ if (s === null || s === 47 || s === 62 || T(s)) {
1391
+ let c = s === 47, l = o.toLowerCase();
1392
+ return !c && !a && zt.includes(l) ? (i = 1, r.interrupt ? t(s) : N(s)) : Rt.includes(o.toLowerCase()) ? (i = 6, c ? (e.consume(s), v) : r.interrupt ? t(s) : N(s)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(s) : a ? b(s) : x(s));
1393
+ }
1394
+ return s === 45 || w(s) ? (e.consume(s), o += String.fromCharCode(s), _) : n(s);
1395
+ }
1396
+ function v(i) {
1397
+ return i === 62 ? (e.consume(i), r.interrupt ? t : N) : n(i);
1398
+ }
1399
+ function b(t) {
1400
+ return S(t) ? (e.consume(t), b) : j(t);
1401
+ }
1402
+ function x(t) {
1403
+ return t === 47 ? (e.consume(t), j) : t === 58 || t === 95 || h(t) ? (e.consume(t), C) : S(t) ? (e.consume(t), x) : j(t);
1404
+ }
1405
+ function C(t) {
1406
+ return t === 45 || t === 46 || t === 58 || t === 95 || w(t) ? (e.consume(t), C) : E(t);
1407
+ }
1408
+ function E(t) {
1409
+ return t === 61 ? (e.consume(t), D) : S(t) ? (e.consume(t), E) : x(t);
1410
+ }
1411
+ function D(t) {
1412
+ return t === null || t === 60 || t === 61 || t === 62 || t === 96 ? n(t) : t === 34 || t === 39 ? (e.consume(t), c = t, O) : S(t) ? (e.consume(t), D) : k(t);
1413
+ }
1414
+ function O(t) {
1415
+ return t === c ? (e.consume(t), c = null, A) : t === null || y(t) ? n(t) : (e.consume(t), O);
1416
+ }
1417
+ function k(t) {
1418
+ return t === null || t === 34 || t === 39 || t === 47 || t === 60 || t === 61 || t === 62 || t === 96 || T(t) ? E(t) : (e.consume(t), k);
1419
+ }
1420
+ function A(e) {
1421
+ return e === 47 || e === 62 || S(e) ? x(e) : n(e);
1422
+ }
1423
+ function j(t) {
1424
+ return t === 62 ? (e.consume(t), M) : n(t);
1425
+ }
1426
+ function M(t) {
1427
+ return t === null || y(t) ? N(t) : S(t) ? (e.consume(t), M) : n(t);
1428
+ }
1429
+ function N(t) {
1430
+ return t === 45 && i === 2 ? (e.consume(t), ee) : t === 60 && i === 1 ? (e.consume(t), L) : t === 62 && i === 4 ? (e.consume(t), B) : t === 63 && i === 3 ? (e.consume(t), z) : t === 93 && i === 5 ? (e.consume(t), te) : y(t) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Vt, V, P)(t)) : t === null || y(t) ? (e.exit("htmlFlowData"), P(t)) : (e.consume(t), N);
1431
+ }
1432
+ function P(t) {
1433
+ return e.check(Ht, F, V)(t);
1434
+ }
1435
+ function F(t) {
1436
+ return e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), I;
1437
+ }
1438
+ function I(t) {
1439
+ return t === null || y(t) ? P(t) : (e.enter("htmlFlowData"), N(t));
1440
+ }
1441
+ function ee(t) {
1442
+ return t === 45 ? (e.consume(t), z) : N(t);
1443
+ }
1444
+ function L(t) {
1445
+ return t === 47 ? (e.consume(t), o = "", R) : N(t);
1446
+ }
1447
+ function R(t) {
1448
+ if (t === 62) {
1449
+ let n = o.toLowerCase();
1450
+ return zt.includes(n) ? (e.consume(t), B) : N(t);
1451
+ }
1452
+ return h(t) && o.length < 8 ? (e.consume(t), o += String.fromCharCode(t), R) : N(t);
1453
+ }
1454
+ function te(t) {
1455
+ return t === 93 ? (e.consume(t), z) : N(t);
1456
+ }
1457
+ function z(t) {
1458
+ return t === 62 ? (e.consume(t), B) : t === 45 && i === 2 ? (e.consume(t), z) : N(t);
1459
+ }
1460
+ function B(t) {
1461
+ return t === null || y(t) ? (e.exit("htmlFlowData"), V(t)) : (e.consume(t), B);
1462
+ }
1463
+ function V(n) {
1464
+ return e.exit("htmlFlow"), t(n);
1465
+ }
1466
+ }
1467
+ function Gt(e, t, n) {
1468
+ let r = this;
1469
+ return i;
1470
+ function i(t) {
1471
+ return y(t) ? (e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), a) : n(t);
1472
+ }
1473
+ function a(e) {
1474
+ return r.parser.lazy[r.now().line] ? n(e) : t(e);
1475
+ }
1476
+ }
1477
+ function Kt(e, t, n) {
1478
+ return r;
1479
+ function r(r) {
1480
+ return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), e.attempt(O, t, n);
1481
+ }
1482
+ }
1483
+ //#endregion
1484
+ //#region node_modules/micromark-core-commonmark/lib/html-text.js
1485
+ var qt = {
1486
+ name: "htmlText",
1487
+ tokenize: Jt
1488
+ };
1489
+ function Jt(e, t, n) {
1490
+ let r = this, i, a, o;
1491
+ return s;
1492
+ function s(t) {
1493
+ return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(t), c;
1494
+ }
1495
+ function c(t) {
1496
+ return t === 33 ? (e.consume(t), l) : t === 47 ? (e.consume(t), D) : t === 63 ? (e.consume(t), C) : h(t) ? (e.consume(t), A) : n(t);
1497
+ }
1498
+ function l(t) {
1499
+ return t === 45 ? (e.consume(t), u) : t === 91 ? (e.consume(t), a = 0, m) : h(t) ? (e.consume(t), x) : n(t);
1500
+ }
1501
+ function u(t) {
1502
+ return t === 45 ? (e.consume(t), p) : n(t);
1503
+ }
1504
+ function d(t) {
1505
+ return t === null ? n(t) : t === 45 ? (e.consume(t), f) : y(t) ? (o = d, R(t)) : (e.consume(t), d);
1506
+ }
1507
+ function f(t) {
1508
+ return t === 45 ? (e.consume(t), p) : d(t);
1509
+ }
1510
+ function p(e) {
1511
+ return e === 62 ? L(e) : e === 45 ? f(e) : d(e);
1512
+ }
1513
+ function m(t) {
1514
+ return t === "CDATA[".charCodeAt(a++) ? (e.consume(t), a === 6 ? g : m) : n(t);
1515
+ }
1516
+ function g(t) {
1517
+ return t === null ? n(t) : t === 93 ? (e.consume(t), _) : y(t) ? (o = g, R(t)) : (e.consume(t), g);
1518
+ }
1519
+ function _(t) {
1520
+ return t === 93 ? (e.consume(t), v) : g(t);
1521
+ }
1522
+ function v(t) {
1523
+ return t === 62 ? L(t) : t === 93 ? (e.consume(t), v) : g(t);
1524
+ }
1525
+ function x(t) {
1526
+ return t === null || t === 62 ? L(t) : y(t) ? (o = x, R(t)) : (e.consume(t), x);
1527
+ }
1528
+ function C(t) {
1529
+ return t === null ? n(t) : t === 63 ? (e.consume(t), E) : y(t) ? (o = C, R(t)) : (e.consume(t), C);
1530
+ }
1531
+ function E(e) {
1532
+ return e === 62 ? L(e) : C(e);
1533
+ }
1534
+ function D(t) {
1535
+ return h(t) ? (e.consume(t), O) : n(t);
1536
+ }
1537
+ function O(t) {
1538
+ return t === 45 || w(t) ? (e.consume(t), O) : k(t);
1539
+ }
1540
+ function k(t) {
1541
+ return y(t) ? (o = k, R(t)) : S(t) ? (e.consume(t), k) : L(t);
1542
+ }
1543
+ function A(t) {
1544
+ return t === 45 || w(t) ? (e.consume(t), A) : t === 47 || t === 62 || T(t) ? j(t) : n(t);
1545
+ }
1546
+ function j(t) {
1547
+ return t === 47 ? (e.consume(t), L) : t === 58 || t === 95 || h(t) ? (e.consume(t), M) : y(t) ? (o = j, R(t)) : S(t) ? (e.consume(t), j) : L(t);
1548
+ }
1549
+ function M(t) {
1550
+ return t === 45 || t === 46 || t === 58 || t === 95 || w(t) ? (e.consume(t), M) : N(t);
1551
+ }
1552
+ function N(t) {
1553
+ return t === 61 ? (e.consume(t), P) : y(t) ? (o = N, R(t)) : S(t) ? (e.consume(t), N) : j(t);
1554
+ }
1555
+ function P(t) {
1556
+ return t === null || t === 60 || t === 61 || t === 62 || t === 96 ? n(t) : t === 34 || t === 39 ? (e.consume(t), i = t, F) : y(t) ? (o = P, R(t)) : S(t) ? (e.consume(t), P) : (e.consume(t), I);
1557
+ }
1558
+ function F(t) {
1559
+ return t === i ? (e.consume(t), i = void 0, ee) : t === null ? n(t) : y(t) ? (o = F, R(t)) : (e.consume(t), F);
1560
+ }
1561
+ function I(t) {
1562
+ return t === null || t === 34 || t === 39 || t === 60 || t === 61 || t === 96 ? n(t) : t === 47 || t === 62 || T(t) ? j(t) : (e.consume(t), I);
1563
+ }
1564
+ function ee(e) {
1565
+ return e === 47 || e === 62 || T(e) ? j(e) : n(e);
1566
+ }
1567
+ function L(r) {
1568
+ return r === 62 ? (e.consume(r), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(r);
1569
+ }
1570
+ function R(t) {
1571
+ return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), te;
1572
+ }
1573
+ function te(t) {
1574
+ return S(t) ? b(e, z, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(t) : z(t);
1575
+ }
1576
+ function z(t) {
1577
+ return e.enter("htmlTextData"), o(t);
1578
+ }
1579
+ }
1580
+ //#endregion
1581
+ //#region node_modules/micromark-core-commonmark/lib/label-end.js
1582
+ var Yt = {
1583
+ name: "labelEnd",
1584
+ resolveAll: $t,
1585
+ resolveTo: en,
1586
+ tokenize: tn
1587
+ }, Xt = { tokenize: nn }, Zt = { tokenize: rn }, Qt = { tokenize: an };
1588
+ function $t(e) {
1589
+ let t = -1, n = [];
1590
+ for (; ++t < e.length;) {
1591
+ let r = e[t][1];
1592
+ if (n.push(e[t]), r.type === "labelImage" || r.type === "labelLink" || r.type === "labelEnd") {
1593
+ let e = r.type === "labelImage" ? 4 : 2;
1594
+ r.type = "data", t += e;
1595
+ }
1596
+ }
1597
+ return e.length !== n.length && g(e, 0, e.length, n), e;
1598
+ }
1599
+ function en(e, t) {
1600
+ let n = e.length, r = 0, i, a, o, s;
1601
+ for (; n--;) if (i = e[n][1], a) {
1602
+ if (i.type === "link" || i.type === "labelLink" && i._inactive) break;
1603
+ e[n][0] === "enter" && i.type === "labelLink" && (i._inactive = !0);
1604
+ } else if (o) {
1605
+ if (e[n][0] === "enter" && (i.type === "labelImage" || i.type === "labelLink") && !i._balanced && (a = n, i.type !== "labelLink")) {
1606
+ r = 2;
1607
+ break;
1608
+ }
1609
+ } else i.type === "labelEnd" && (o = n);
1610
+ let c = {
1611
+ type: e[a][1].type === "labelLink" ? "link" : "image",
1612
+ start: { ...e[a][1].start },
1613
+ end: { ...e[e.length - 1][1].end }
1614
+ }, l = {
1615
+ type: "label",
1616
+ start: { ...e[a][1].start },
1617
+ end: { ...e[o][1].end }
1618
+ }, u = {
1619
+ type: "labelText",
1620
+ start: { ...e[a + r + 2][1].end },
1621
+ end: { ...e[o - 2][1].start }
1622
+ };
1623
+ return s = [[
1624
+ "enter",
1625
+ c,
1626
+ t
1627
+ ], [
1628
+ "enter",
1629
+ l,
1630
+ t
1631
+ ]], s = M(s, e.slice(a + 1, a + r + 3)), s = M(s, [[
1632
+ "enter",
1633
+ u,
1634
+ t
1635
+ ]]), s = M(s, C(t.parser.constructs.insideSpan.null, e.slice(a + r + 4, o - 3), t)), s = M(s, [
1636
+ [
1637
+ "exit",
1638
+ u,
1639
+ t
1640
+ ],
1641
+ e[o - 2],
1642
+ e[o - 1],
1643
+ [
1644
+ "exit",
1645
+ l,
1646
+ t
1647
+ ]
1648
+ ]), s = M(s, e.slice(o + 1)), s = M(s, [[
1649
+ "exit",
1650
+ c,
1651
+ t
1652
+ ]]), g(e, a, e.length, s), e;
1653
+ }
1654
+ function tn(e, t, n) {
1655
+ let r = this, i = r.events.length, a, o;
1656
+ for (; i--;) if ((r.events[i][1].type === "labelImage" || r.events[i][1].type === "labelLink") && !r.events[i][1]._balanced) {
1657
+ a = r.events[i][1];
1658
+ break;
1659
+ }
1660
+ return s;
1661
+ function s(t) {
1662
+ return a ? a._inactive ? d(t) : (o = r.parser.defined.includes(m(r.sliceSerialize({
1663
+ start: a.end,
1664
+ end: r.now()
1665
+ }))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(t), e.exit("labelMarker"), e.exit("labelEnd"), c) : n(t);
1666
+ }
1667
+ function c(t) {
1668
+ return t === 40 ? e.attempt(Xt, u, o ? u : d)(t) : t === 91 ? e.attempt(Zt, u, o ? l : d)(t) : o ? u(t) : d(t);
1669
+ }
1670
+ function l(t) {
1671
+ return e.attempt(Qt, u, d)(t);
1672
+ }
1673
+ function u(e) {
1674
+ return t(e);
1675
+ }
1676
+ function d(e) {
1677
+ return a._balanced = !0, n(e);
1678
+ }
1679
+ }
1680
+ function nn(e, t, n) {
1681
+ return r;
1682
+ function r(t) {
1683
+ return e.enter("resource"), e.enter("resourceMarker"), e.consume(t), e.exit("resourceMarker"), i;
1684
+ }
1685
+ function i(t) {
1686
+ return T(t) ? Y(e, a)(t) : a(t);
1687
+ }
1688
+ function a(t) {
1689
+ return t === 41 ? u(t) : Et(e, o, s, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(t);
1690
+ }
1691
+ function o(t) {
1692
+ return T(t) ? Y(e, c)(t) : u(t);
1693
+ }
1694
+ function s(e) {
1695
+ return n(e);
1696
+ }
1697
+ function c(t) {
1698
+ return t === 34 || t === 39 || t === 40 ? Ot(e, l, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(t) : u(t);
1699
+ }
1700
+ function l(t) {
1701
+ return T(t) ? Y(e, u)(t) : u(t);
1702
+ }
1703
+ function u(r) {
1704
+ return r === 41 ? (e.enter("resourceMarker"), e.consume(r), e.exit("resourceMarker"), e.exit("resource"), t) : n(r);
1705
+ }
1706
+ }
1707
+ function rn(e, t, n) {
1708
+ let r = this;
1709
+ return i;
1710
+ function i(t) {
1711
+ return Dt.call(r, e, a, o, "reference", "referenceMarker", "referenceString")(t);
1712
+ }
1713
+ function a(e) {
1714
+ return r.parser.defined.includes(m(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? t(e) : n(e);
1715
+ }
1716
+ function o(e) {
1717
+ return n(e);
1718
+ }
1719
+ }
1720
+ function an(e, t, n) {
1721
+ return r;
1722
+ function r(t) {
1723
+ return e.enter("reference"), e.enter("referenceMarker"), e.consume(t), e.exit("referenceMarker"), i;
1724
+ }
1725
+ function i(r) {
1726
+ return r === 93 ? (e.enter("referenceMarker"), e.consume(r), e.exit("referenceMarker"), e.exit("reference"), t) : n(r);
1727
+ }
1728
+ }
1729
+ //#endregion
1730
+ //#region node_modules/micromark-core-commonmark/lib/label-start-image.js
1731
+ var on = {
1732
+ name: "labelStartImage",
1733
+ resolveAll: Yt.resolveAll,
1734
+ tokenize: sn
1735
+ };
1736
+ function sn(e, t, n) {
1737
+ let r = this;
1738
+ return i;
1739
+ function i(t) {
1740
+ return e.enter("labelImage"), e.enter("labelImageMarker"), e.consume(t), e.exit("labelImageMarker"), a;
1741
+ }
1742
+ function a(t) {
1743
+ return t === 91 ? (e.enter("labelMarker"), e.consume(t), e.exit("labelMarker"), e.exit("labelImage"), o) : n(t);
1744
+ }
1745
+ function o(e) {
1746
+ /* c8 ignore next 3 */
1747
+ return e === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(e) : t(e);
1748
+ }
1749
+ }
1750
+ //#endregion
1751
+ //#region node_modules/micromark-core-commonmark/lib/label-start-link.js
1752
+ var cn = {
1753
+ name: "labelStartLink",
1754
+ resolveAll: Yt.resolveAll,
1755
+ tokenize: ln
1756
+ };
1757
+ function ln(e, t, n) {
1758
+ let r = this;
1759
+ return i;
1760
+ function i(t) {
1761
+ return e.enter("labelLink"), e.enter("labelMarker"), e.consume(t), e.exit("labelMarker"), e.exit("labelLink"), a;
1762
+ }
1763
+ function a(e) {
1764
+ /* c8 ignore next 3 */
1765
+ return e === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(e) : t(e);
1766
+ }
1767
+ }
1768
+ //#endregion
1769
+ //#region node_modules/micromark-core-commonmark/lib/line-ending.js
1770
+ var un = {
1771
+ name: "lineEnding",
1772
+ tokenize: dn
1773
+ };
1774
+ function dn(e, t) {
1775
+ return n;
1776
+ function n(n) {
1777
+ return e.enter("lineEnding"), e.consume(n), e.exit("lineEnding"), b(e, t, "linePrefix");
1778
+ }
1779
+ }
1780
+ //#endregion
1781
+ //#region node_modules/micromark-core-commonmark/lib/thematic-break.js
1782
+ var fn = {
1783
+ name: "thematicBreak",
1784
+ tokenize: pn
1785
+ };
1786
+ function pn(e, t, n) {
1787
+ let r = 0, i;
1788
+ return a;
1789
+ function a(t) {
1790
+ return e.enter("thematicBreak"), o(t);
1791
+ }
1792
+ function o(e) {
1793
+ return i = e, s(e);
1794
+ }
1795
+ function s(a) {
1796
+ return a === i ? (e.enter("thematicBreakSequence"), c(a)) : r >= 3 && (a === null || y(a)) ? (e.exit("thematicBreak"), t(a)) : n(a);
1797
+ }
1798
+ function c(t) {
1799
+ return t === i ? (e.consume(t), r++, c) : (e.exit("thematicBreakSequence"), S(t) ? b(e, s, "whitespace")(t) : s(t));
1800
+ }
1801
+ }
1802
+ //#endregion
1803
+ //#region node_modules/micromark-core-commonmark/lib/list.js
1804
+ var X = {
1805
+ continuation: { tokenize: _n },
1806
+ exit: yn,
1807
+ name: "list",
1808
+ tokenize: gn
1809
+ }, mn = {
1810
+ partial: !0,
1811
+ tokenize: bn
1812
+ }, hn = {
1813
+ partial: !0,
1814
+ tokenize: vn
1815
+ };
1816
+ function gn(e, t, n) {
1817
+ let r = this, i = r.events[r.events.length - 1], a = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, o = 0;
1818
+ return s;
1819
+ function s(t) {
1820
+ let i = r.containerState.type || (t === 42 || t === 43 || t === 45 ? "listUnordered" : "listOrdered");
1821
+ if (i === "listUnordered" ? !r.containerState.marker || t === r.containerState.marker : x(t)) {
1822
+ if (r.containerState.type || (r.containerState.type = i, e.enter(i, { _container: !0 })), i === "listUnordered") return e.enter("listItemPrefix"), t === 42 || t === 45 ? e.check(fn, n, l)(t) : l(t);
1823
+ if (!r.interrupt || t === 49) return e.enter("listItemPrefix"), e.enter("listItemValue"), c(t);
1824
+ }
1825
+ return n(t);
1826
+ }
1827
+ function c(t) {
1828
+ return x(t) && ++o < 10 ? (e.consume(t), c) : (!r.interrupt || o < 2) && (r.containerState.marker ? t === r.containerState.marker : t === 41 || t === 46) ? (e.exit("listItemValue"), l(t)) : n(t);
1829
+ }
1830
+ function l(t) {
1831
+ return e.enter("listItemMarker"), e.consume(t), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || t, e.check(O, r.interrupt ? n : u, e.attempt(mn, f, d));
1832
+ }
1833
+ function u(e) {
1834
+ return r.containerState.initialBlankLine = !0, a++, f(e);
1835
+ }
1836
+ function d(t) {
1837
+ return S(t) ? (e.enter("listItemPrefixWhitespace"), e.consume(t), e.exit("listItemPrefixWhitespace"), f) : n(t);
1838
+ }
1839
+ function f(n) {
1840
+ return r.containerState.size = a + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(n);
1841
+ }
1842
+ }
1843
+ function _n(e, t, n) {
1844
+ let r = this;
1845
+ return r.containerState._closeFlow = void 0, e.check(O, i, a);
1846
+ function i(n) {
1847
+ return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, b(e, t, "listItemIndent", r.containerState.size + 1)(n);
1848
+ }
1849
+ function a(n) {
1850
+ return r.containerState.furtherBlankLines || !S(n) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, o(n)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(hn, t, o)(n));
1851
+ }
1852
+ function o(i) {
1853
+ return r.containerState._closeFlow = !0, r.interrupt = void 0, b(e, e.attempt(X, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(i);
1854
+ }
1855
+ }
1856
+ function vn(e, t, n) {
1857
+ let r = this;
1858
+ return b(e, i, "listItemIndent", r.containerState.size + 1);
1859
+ function i(e) {
1860
+ let i = r.events[r.events.length - 1];
1861
+ return i && i[1].type === "listItemIndent" && i[2].sliceSerialize(i[1], !0).length === r.containerState.size ? t(e) : n(e);
1862
+ }
1863
+ }
1864
+ function yn(e) {
1865
+ e.exit(this.containerState.type);
1866
+ }
1867
+ function bn(e, t, n) {
1868
+ let r = this;
1869
+ return b(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
1870
+ function i(e) {
1871
+ let i = r.events[r.events.length - 1];
1872
+ return !S(e) && i && i[1].type === "listItemPrefixWhitespace" ? t(e) : n(e);
1873
+ }
1874
+ }
1875
+ //#endregion
1876
+ //#region node_modules/micromark-core-commonmark/lib/setext-underline.js
1877
+ var xn = {
1878
+ name: "setextUnderline",
1879
+ resolveTo: Sn,
1880
+ tokenize: Cn
1881
+ };
1882
+ function Sn(e, t) {
1883
+ let n = e.length, r, i, a;
1884
+ for (; n--;) if (e[n][0] === "enter") {
1885
+ if (e[n][1].type === "content") {
1886
+ r = n;
1887
+ break;
1888
+ }
1889
+ e[n][1].type === "paragraph" && (i = n);
1890
+ } else e[n][1].type === "content" && e.splice(n, 1), !a && e[n][1].type === "definition" && (a = n);
1891
+ let o = {
1892
+ type: "setextHeading",
1893
+ start: { ...e[r][1].start },
1894
+ end: { ...e[e.length - 1][1].end }
1895
+ };
1896
+ return e[i][1].type = "setextHeadingText", a ? (e.splice(i, 0, [
1897
+ "enter",
1898
+ o,
1899
+ t
1900
+ ]), e.splice(a + 1, 0, [
1901
+ "exit",
1902
+ e[r][1],
1903
+ t
1904
+ ]), e[r][1].end = { ...e[a][1].end }) : e[r][1] = o, e.push([
1905
+ "exit",
1906
+ o,
1907
+ t
1908
+ ]), e;
1909
+ }
1910
+ function Cn(e, t, n) {
1911
+ let r = this, i;
1912
+ return a;
1913
+ function a(t) {
1914
+ let a = r.events.length, s;
1915
+ for (; a--;) if (r.events[a][1].type !== "lineEnding" && r.events[a][1].type !== "linePrefix" && r.events[a][1].type !== "content") {
1916
+ s = r.events[a][1].type === "paragraph";
1917
+ break;
1918
+ }
1919
+ return !r.parser.lazy[r.now().line] && (r.interrupt || s) ? (e.enter("setextHeadingLine"), i = t, o(t)) : n(t);
1920
+ }
1921
+ function o(t) {
1922
+ return e.enter("setextHeadingLineSequence"), s(t);
1923
+ }
1924
+ function s(t) {
1925
+ return t === i ? (e.consume(t), s) : (e.exit("setextHeadingLineSequence"), S(t) ? b(e, c, "lineSuffix")(t) : c(t));
1926
+ }
1927
+ function c(r) {
1928
+ return r === null || y(r) ? (e.exit("setextHeadingLine"), t(r)) : n(r);
1929
+ }
1930
+ }
1931
+ //#endregion
1932
+ //#region node_modules/micromark/lib/initialize/flow.js
1933
+ var wn = { tokenize: Tn };
1934
+ function Tn(e) {
1935
+ let t = this, n = e.attempt(O, r, e.attempt(this.parser.constructs.flowInitial, i, b(e, e.attempt(this.parser.constructs.flow, i, e.attempt(xt, i)), "linePrefix")));
1936
+ return n;
1937
+ function r(r) {
1938
+ if (r === null) {
1939
+ e.consume(r);
1940
+ return;
1941
+ }
1942
+ return e.enter("lineEndingBlank"), e.consume(r), e.exit("lineEndingBlank"), t.currentConstruct = void 0, n;
1943
+ }
1944
+ function i(r) {
1945
+ if (r === null) {
1946
+ e.consume(r);
1947
+ return;
1948
+ }
1949
+ return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), t.currentConstruct = void 0, n;
1950
+ }
1951
+ }
1952
+ //#endregion
1953
+ //#region node_modules/micromark/lib/initialize/text.js
1954
+ var En = { resolveAll: An() }, Dn = kn("string"), On = kn("text");
1955
+ function kn(e) {
1956
+ return {
1957
+ resolveAll: An(e === "text" ? jn : void 0),
1958
+ tokenize: t
1959
+ };
1960
+ function t(t) {
1961
+ let n = this, r = this.parser.constructs[e], i = t.attempt(r, a, o);
1962
+ return a;
1963
+ function a(e) {
1964
+ return c(e) ? i(e) : o(e);
1965
+ }
1966
+ function o(e) {
1967
+ if (e === null) {
1968
+ t.consume(e);
1969
+ return;
1970
+ }
1971
+ return t.enter("data"), t.consume(e), s;
1972
+ }
1973
+ function s(e) {
1974
+ return c(e) ? (t.exit("data"), i(e)) : (t.consume(e), s);
1975
+ }
1976
+ function c(e) {
1977
+ if (e === null) return !0;
1978
+ let t = r[e], i = -1;
1979
+ if (t) for (; ++i < t.length;) {
1980
+ let e = t[i];
1981
+ if (!e.previous || e.previous.call(n, n.previous)) return !0;
1982
+ }
1983
+ return !1;
1984
+ }
1985
+ }
1986
+ }
1987
+ function An(e) {
1988
+ return t;
1989
+ function t(t, n) {
1990
+ let r = -1, i;
1991
+ for (; ++r <= t.length;) i === void 0 ? t[r] && t[r][1].type === "data" && (i = r, r++) : (!t[r] || t[r][1].type !== "data") && (r !== i + 2 && (t[i][1].end = t[r - 1][1].end, t.splice(i + 2, r - i - 2), r = i + 2), i = void 0);
1992
+ return e ? e(t, n) : t;
1993
+ }
1994
+ }
1995
+ function jn(e, t) {
1996
+ let n = 0;
1997
+ for (; ++n <= e.length;) if ((n === e.length || e[n][1].type === "lineEnding") && e[n - 1][1].type === "data") {
1998
+ let r = e[n - 1][1], i = t.sliceStream(r), a = i.length, o = -1, s = 0, c;
1999
+ for (; a--;) {
2000
+ let e = i[a];
2001
+ if (typeof e == "string") {
2002
+ for (o = e.length; e.charCodeAt(o - 1) === 32;) s++, o--;
2003
+ if (o) break;
2004
+ o = -1;
2005
+ } else if (e === -2) c = !0, s++;
2006
+ else if (e !== -1) {
2007
+ a++;
2008
+ break;
2009
+ }
2010
+ }
2011
+ if (t._contentTypeTextTrailing && n === e.length && (s = 0), s) {
2012
+ let i = {
2013
+ type: n === e.length || c || s < 2 ? "lineSuffix" : "hardBreakTrailing",
2014
+ start: {
2015
+ _bufferIndex: a ? o : r.start._bufferIndex + o,
2016
+ _index: r.start._index + a,
2017
+ line: r.end.line,
2018
+ column: r.end.column - s,
2019
+ offset: r.end.offset - s
2020
+ },
2021
+ end: { ...r.end }
2022
+ };
2023
+ r.end = { ...i.start }, r.start.offset === r.end.offset ? Object.assign(r, i) : (e.splice(n, 0, [
2024
+ "enter",
2025
+ i,
2026
+ t
2027
+ ], [
2028
+ "exit",
2029
+ i,
2030
+ t
2031
+ ]), n += 2);
2032
+ }
2033
+ n++;
2034
+ }
2035
+ return e;
2036
+ }
2037
+ //#endregion
2038
+ //#region node_modules/micromark/lib/constructs.js
2039
+ var Mn = /* @__PURE__ */ n({
2040
+ attentionMarkers: () => Bn,
2041
+ contentInitial: () => Pn,
2042
+ disable: () => Vn,
2043
+ document: () => Nn,
2044
+ flow: () => In,
2045
+ flowInitial: () => Fn,
2046
+ insideSpan: () => zn,
2047
+ string: () => Ln,
2048
+ text: () => Rn
2049
+ }), Nn = {
2050
+ 42: X,
2051
+ 43: X,
2052
+ 45: X,
2053
+ 48: X,
2054
+ 49: X,
2055
+ 50: X,
2056
+ 51: X,
2057
+ 52: X,
2058
+ 53: X,
2059
+ 54: X,
2060
+ 55: X,
2061
+ 56: X,
2062
+ 57: X,
2063
+ 62: Qe
2064
+ }, Pn = { 91: kt }, Fn = {
2065
+ [-2]: ut,
2066
+ [-1]: ut,
2067
+ 32: ut
2068
+ }, In = {
2069
+ 35: Ft,
2070
+ 42: fn,
2071
+ 45: [xn, fn],
2072
+ 60: Bt,
2073
+ 61: xn,
2074
+ 95: fn,
2075
+ 96: st,
2076
+ 126: st
2077
+ }, Ln = {
2078
+ 38: it,
2079
+ 92: nt
2080
+ }, Rn = {
2081
+ [-5]: un,
2082
+ [-4]: un,
2083
+ [-3]: un,
2084
+ 33: on,
2085
+ 38: it,
2086
+ 42: Ke,
2087
+ 60: [Xe, qt],
2088
+ 91: cn,
2089
+ 92: [Nt, nt],
2090
+ 93: Yt,
2091
+ 95: Ke,
2092
+ 96: mt
2093
+ }, zn = { null: [Ke, En] }, Bn = { null: [42, 95] }, Vn = { null: [] };
2094
+ //#endregion
2095
+ //#region node_modules/micromark/lib/create-tokenizer.js
2096
+ function Hn(e, t, n) {
2097
+ let r = {
2098
+ _bufferIndex: -1,
2099
+ _index: 0,
2100
+ line: n && n.line || 1,
2101
+ column: n && n.column || 1,
2102
+ offset: n && n.offset || 0
2103
+ }, i = {}, a = [], o = [], s = [], c = {
2104
+ attempt: E(w),
2105
+ check: E(T),
2106
+ consume: b,
2107
+ enter: x,
2108
+ exit: S,
2109
+ interrupt: E(T, { interrupt: !0 })
2110
+ }, l = {
2111
+ code: null,
2112
+ containerState: {},
2113
+ defineSkip: h,
2114
+ events: [],
2115
+ now: m,
2116
+ parser: e,
2117
+ previous: null,
2118
+ sliceSerialize: f,
2119
+ sliceStream: p,
2120
+ write: d
2121
+ }, u = t.tokenize.call(l, c);
2122
+ return t.resolveAll && a.push(t), l;
2123
+ function d(e) {
2124
+ return o = M(o, e), _(), o[o.length - 1] === null ? (D(t, 0), l.events = C(a, l.events, l), l.events) : [];
2125
+ }
2126
+ function f(e, t) {
2127
+ return Wn(p(e), t);
2128
+ }
2129
+ function p(e) {
2130
+ return Un(o, e);
2131
+ }
2132
+ function m() {
2133
+ let { _bufferIndex: e, _index: t, line: n, column: i, offset: a } = r;
2134
+ return {
2135
+ _bufferIndex: e,
2136
+ _index: t,
2137
+ line: n,
2138
+ column: i,
2139
+ offset: a
2140
+ };
2141
+ }
2142
+ function h(e) {
2143
+ i[e.line] = e.column, k();
2144
+ }
2145
+ function _() {
2146
+ let e;
2147
+ for (; r._index < o.length;) {
2148
+ let t = o[r._index];
2149
+ if (typeof t == "string") for (e = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === e && r._bufferIndex < t.length;) v(t.charCodeAt(r._bufferIndex));
2150
+ else v(t);
2151
+ }
2152
+ }
2153
+ function v(e) {
2154
+ u = u(e);
2155
+ }
2156
+ function b(e) {
2157
+ y(e) ? (r.line++, r.column = 1, r.offset += e === -3 ? 2 : 1, k()) : e !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === o[r._index].length && (r._bufferIndex = -1, r._index++)), l.previous = e;
2158
+ }
2159
+ function x(e, t) {
2160
+ let n = t || {};
2161
+ return n.type = e, n.start = m(), l.events.push([
2162
+ "enter",
2163
+ n,
2164
+ l
2165
+ ]), s.push(n), n;
2166
+ }
2167
+ function S(e) {
2168
+ let t = s.pop();
2169
+ return t.end = m(), l.events.push([
2170
+ "exit",
2171
+ t,
2172
+ l
2173
+ ]), t;
2174
+ }
2175
+ function w(e, t) {
2176
+ D(e, t.from);
2177
+ }
2178
+ function T(e, t) {
2179
+ t.restore();
2180
+ }
2181
+ function E(e, t) {
2182
+ return n;
2183
+ function n(n, r, i) {
2184
+ let a, o, s, u;
2185
+ return Array.isArray(n) ? f(n) : "tokenize" in n ? f([n]) : d(n);
2186
+ function d(e) {
2187
+ return t;
2188
+ function t(t) {
2189
+ let n = t !== null && e[t], r = t !== null && e.null;
2190
+ return f([...Array.isArray(n) ? n : n ? [n] : [], ...Array.isArray(r) ? r : r ? [r] : []])(t);
2191
+ }
2192
+ }
2193
+ function f(e) {
2194
+ return a = e, o = 0, e.length === 0 ? i : p(e[o]);
2195
+ }
2196
+ function p(e) {
2197
+ return n;
2198
+ function n(n) {
2199
+ return u = O(), s = e, e.partial || (l.currentConstruct = e), e.name && l.parser.constructs.disable.null.includes(e.name) ? h(n) : e.tokenize.call(t ? Object.assign(Object.create(l), t) : l, c, m, h)(n);
2200
+ }
2201
+ }
2202
+ function m(t) {
2203
+ return e(s, u), r;
2204
+ }
2205
+ function h(e) {
2206
+ return u.restore(), ++o < a.length ? p(a[o]) : i;
2207
+ }
2208
+ }
2209
+ }
2210
+ function D(e, t) {
2211
+ e.resolveAll && !a.includes(e) && a.push(e), e.resolve && g(l.events, t, l.events.length - t, e.resolve(l.events.slice(t), l)), e.resolveTo && (l.events = e.resolveTo(l.events, l));
2212
+ }
2213
+ function O() {
2214
+ let e = m(), t = l.previous, n = l.currentConstruct, i = l.events.length, a = Array.from(s);
2215
+ return {
2216
+ from: i,
2217
+ restore: o
2218
+ };
2219
+ function o() {
2220
+ r = e, l.previous = t, l.currentConstruct = n, l.events.length = i, s = a, k();
2221
+ }
2222
+ }
2223
+ function k() {
2224
+ r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
2225
+ }
2226
+ }
2227
+ function Un(e, t) {
2228
+ let n = t.start._index, r = t.start._bufferIndex, i = t.end._index, a = t.end._bufferIndex, o;
2229
+ if (n === i) o = [e[n].slice(r, a)];
2230
+ else {
2231
+ if (o = e.slice(n, i), r > -1) {
2232
+ let e = o[0];
2233
+ typeof e == "string" ? o[0] = e.slice(r) : o.shift();
2234
+ }
2235
+ a > 0 && o.push(e[i].slice(0, a));
2236
+ }
2237
+ return o;
2238
+ }
2239
+ function Wn(e, t) {
2240
+ let n = -1, r = [], i;
2241
+ for (; ++n < e.length;) {
2242
+ let a = e[n], o;
2243
+ if (typeof a == "string") o = a;
2244
+ else switch (a) {
2245
+ case -5:
2246
+ o = "\r";
2247
+ break;
2248
+ case -4:
2249
+ o = "\n";
2250
+ break;
2251
+ case -3:
2252
+ o = "\r\n";
2253
+ break;
2254
+ case -2:
2255
+ o = t ? " " : " ";
2256
+ break;
2257
+ case -1:
2258
+ if (!t && i) continue;
2259
+ o = " ";
2260
+ break;
2261
+ default: o = String.fromCharCode(a);
2262
+ }
2263
+ i = a === -2, r.push(o);
2264
+ }
2265
+ return r.join("");
2266
+ }
2267
+ //#endregion
2268
+ //#region node_modules/micromark/lib/parse.js
2269
+ function Gn(e) {
2270
+ let t = {
2271
+ constructs: A([Mn, ...(e || {}).extensions || []]),
2272
+ content: n(Be),
2273
+ defined: [],
2274
+ document: n(He),
2275
+ flow: n(wn),
2276
+ lazy: {},
2277
+ string: n(Dn),
2278
+ text: n(On)
2279
+ };
2280
+ return t;
2281
+ function n(e) {
2282
+ return n;
2283
+ function n(n) {
2284
+ return Hn(t, e, n);
2285
+ }
2286
+ }
2287
+ }
2288
+ //#endregion
2289
+ //#region node_modules/micromark/lib/postprocess.js
2290
+ function Kn(e) {
2291
+ for (; !yt(e););
2292
+ return e;
2293
+ }
2294
+ //#endregion
2295
+ //#region node_modules/micromark/lib/preprocess.js
2296
+ var qn = /[\0\t\n\r]/g;
2297
+ function Jn() {
2298
+ let e = 1, t = "", n = !0, r;
2299
+ return i;
2300
+ function i(i, a, o) {
2301
+ let s = [], c, l, u, d, f;
2302
+ for (i = t + (typeof i == "string" ? i.toString() : new TextDecoder(a || void 0).decode(i)), u = 0, t = "", n &&= (i.charCodeAt(0) === 65279 && u++, void 0); u < i.length;) {
2303
+ if (qn.lastIndex = u, c = qn.exec(i), d = c && c.index !== void 0 ? c.index : i.length, f = i.charCodeAt(d), !c) {
2304
+ t = i.slice(u);
2305
+ break;
2306
+ }
2307
+ if (f === 10 && u === d && r) s.push(-3), r = void 0;
2308
+ else switch (r &&= (s.push(-5), void 0), u < d && (s.push(i.slice(u, d)), e += d - u), f) {
2309
+ case 0:
2310
+ s.push(65533), e++;
2311
+ break;
2312
+ case 9:
2313
+ for (l = Math.ceil(e / 4) * 4, s.push(-2); e++ < l;) s.push(-1);
2314
+ break;
2315
+ case 10:
2316
+ s.push(-4), e = 1;
2317
+ break;
2318
+ default: r = !0, e = 1;
2319
+ }
2320
+ u = d + 1;
2321
+ }
2322
+ return o && (r && s.push(-5), t && s.push(t), s.push(null)), s;
2323
+ }
2324
+ }
2325
+ //#endregion
2326
+ //#region node_modules/micromark-util-decode-string/index.js
2327
+ var Yn = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
2328
+ function Xn(e) {
2329
+ return e.replace(Yn, Zn);
2330
+ }
2331
+ function Zn(e, t, n) {
2332
+ if (t) return t;
2333
+ if (n.charCodeAt(0) === 35) {
2334
+ let e = n.charCodeAt(1), t = e === 120 || e === 88;
2335
+ return ze(n.slice(t ? 2 : 1), t ? 16 : 10);
2336
+ }
2337
+ return Re(n) || e;
2338
+ }
2339
+ //#endregion
2340
+ //#region node_modules/mdast-util-from-markdown/lib/index.js
2341
+ var Qn = {}.hasOwnProperty;
2342
+ function $n(e, t, n) {
2343
+ return t && typeof t == "object" && (n = t, t = void 0), er(n)(Kn(Gn(n).document().write(Jn()(e, t, !0))));
2344
+ }
2345
+ function er(e) {
2346
+ let t = {
2347
+ transforms: [],
2348
+ canContainEols: [
2349
+ "emphasis",
2350
+ "fragment",
2351
+ "heading",
2352
+ "paragraph",
2353
+ "strong"
2354
+ ],
2355
+ enter: {
2356
+ autolink: a(fe),
2357
+ autolinkProtocol: E,
2358
+ autolinkEmail: E,
2359
+ atxHeading: a(le),
2360
+ blockQuote: a(oe),
2361
+ characterEscape: E,
2362
+ characterReference: E,
2363
+ codeFenced: a(U),
2364
+ codeFencedFenceInfo: o,
2365
+ codeFencedFenceMeta: o,
2366
+ codeIndented: a(U, o),
2367
+ codeText: a(se, o),
2368
+ codeTextData: E,
2369
+ data: E,
2370
+ codeFlowValue: E,
2371
+ definition: a(ce),
2372
+ definitionDestinationString: o,
2373
+ definitionLabelString: o,
2374
+ definitionTitleString: o,
2375
+ emphasis: a(W),
2376
+ hardBreakEscape: a(G),
2377
+ hardBreakTrailing: a(G),
2378
+ htmlFlow: a(ue, o),
2379
+ htmlFlowData: E,
2380
+ htmlText: a(ue, o),
2381
+ htmlTextData: E,
2382
+ image: a(de),
2383
+ label: o,
2384
+ link: a(fe),
2385
+ listItem: a(me),
2386
+ listItemValue: f,
2387
+ listOrdered: a(pe, d),
2388
+ listUnordered: a(pe),
2389
+ paragraph: a(he),
2390
+ reference: z,
2391
+ referenceString: o,
2392
+ resourceDestinationString: o,
2393
+ resourceTitleString: o,
2394
+ setextHeading: a(le),
2395
+ strong: a(ge),
2396
+ thematicBreak: a(ve)
2397
+ },
2398
+ exit: {
2399
+ atxHeading: c(),
2400
+ atxHeadingSequence: S,
2401
+ autolink: c(),
2402
+ autolinkEmail: ae,
2403
+ autolinkProtocol: ie,
2404
+ blockQuote: c(),
2405
+ characterEscapeValue: D,
2406
+ characterReferenceMarkerHexadecimal: V,
2407
+ characterReferenceMarkerNumeric: V,
2408
+ characterReferenceValue: ne,
2409
+ characterReference: re,
2410
+ codeFenced: c(_),
2411
+ codeFencedFence: g,
2412
+ codeFencedFenceInfo: p,
2413
+ codeFencedFenceMeta: h,
2414
+ codeFlowValue: D,
2415
+ codeIndented: c(v),
2416
+ codeText: c(N),
2417
+ codeTextData: D,
2418
+ data: D,
2419
+ definition: c(),
2420
+ definitionDestinationString: x,
2421
+ definitionLabelString: y,
2422
+ definitionTitleString: b,
2423
+ emphasis: c(),
2424
+ hardBreakEscape: c(k),
2425
+ hardBreakTrailing: c(k),
2426
+ htmlFlow: c(A),
2427
+ htmlFlowData: D,
2428
+ htmlText: c(M),
2429
+ htmlTextData: D,
2430
+ image: c(F),
2431
+ label: ee,
2432
+ labelText: I,
2433
+ lineEnding: O,
2434
+ link: c(P),
2435
+ listItem: c(),
2436
+ listOrdered: c(),
2437
+ listUnordered: c(),
2438
+ paragraph: c(),
2439
+ referenceString: B,
2440
+ resourceDestinationString: L,
2441
+ resourceTitleString: R,
2442
+ resource: te,
2443
+ setextHeading: c(T),
2444
+ setextHeadingLineSequence: w,
2445
+ setextHeadingText: C,
2446
+ strong: c(),
2447
+ thematicBreak: c()
2448
+ }
2449
+ };
2450
+ tr(t, (e || {}).mdastExtensions || []);
2451
+ let n = {};
2452
+ return r;
2453
+ function r(e) {
2454
+ let r = {
2455
+ type: "root",
2456
+ children: []
2457
+ }, a = {
2458
+ stack: [r],
2459
+ tokenStack: [],
2460
+ config: t,
2461
+ enter: s,
2462
+ exit: l,
2463
+ buffer: o,
2464
+ resume: u,
2465
+ data: n
2466
+ }, c = [], d = -1;
2467
+ for (; ++d < e.length;) (e[d][1].type === "listOrdered" || e[d][1].type === "listUnordered") && (e[d][0] === "enter" ? c.push(d) : d = i(e, c.pop(), d));
2468
+ for (d = -1; ++d < e.length;) {
2469
+ let n = t[e[d][0]];
2470
+ Qn.call(n, e[d][1].type) && n[e[d][1].type].call(Object.assign({ sliceSerialize: e[d][2].sliceSerialize }, a), e[d][1]);
2471
+ }
2472
+ if (a.tokenStack.length > 0) {
2473
+ let e = a.tokenStack[a.tokenStack.length - 1];
2474
+ (e[1] || rr).call(a, void 0, e[0]);
2475
+ }
2476
+ for (r.position = {
2477
+ start: Z(e.length > 0 ? e[0][1].start : {
2478
+ line: 1,
2479
+ column: 1,
2480
+ offset: 0
2481
+ }),
2482
+ end: Z(e.length > 0 ? e[e.length - 2][1].end : {
2483
+ line: 1,
2484
+ column: 1,
2485
+ offset: 0
2486
+ })
2487
+ }, d = -1; ++d < t.transforms.length;) r = t.transforms[d](r) || r;
2488
+ return r;
2489
+ }
2490
+ function i(e, t, n) {
2491
+ let r = t - 1, i = -1, a = !1, o, s, c, l;
2492
+ for (; ++r <= n;) {
2493
+ let t = e[r];
2494
+ switch (t[1].type) {
2495
+ case "listUnordered":
2496
+ case "listOrdered":
2497
+ case "blockQuote":
2498
+ t[0] === "enter" ? i++ : i--, l = void 0;
2499
+ break;
2500
+ case "lineEndingBlank":
2501
+ t[0] === "enter" && (o && !l && !i && !c && (c = r), l = void 0);
2502
+ break;
2503
+ case "linePrefix":
2504
+ case "listItemValue":
2505
+ case "listItemMarker":
2506
+ case "listItemPrefix":
2507
+ case "listItemPrefixWhitespace": break;
2508
+ default: l = void 0;
2509
+ }
2510
+ if (!i && t[0] === "enter" && t[1].type === "listItemPrefix" || i === -1 && t[0] === "exit" && (t[1].type === "listUnordered" || t[1].type === "listOrdered")) {
2511
+ if (o) {
2512
+ let i = r;
2513
+ for (s = void 0; i--;) {
2514
+ let t = e[i];
2515
+ if (t[1].type === "lineEnding" || t[1].type === "lineEndingBlank") {
2516
+ if (t[0] === "exit") continue;
2517
+ s && (e[s][1].type = "lineEndingBlank", a = !0), t[1].type = "lineEnding", s = i;
2518
+ } else if (!(t[1].type === "linePrefix" || t[1].type === "blockQuotePrefix" || t[1].type === "blockQuotePrefixWhitespace" || t[1].type === "blockQuoteMarker" || t[1].type === "listItemIndent")) break;
2519
+ }
2520
+ c && (!s || c < s) && (o._spread = !0), o.end = Object.assign({}, s ? e[s][1].start : t[1].end), e.splice(s || r, 0, [
2521
+ "exit",
2522
+ o,
2523
+ t[2]
2524
+ ]), r++, n++;
2525
+ }
2526
+ if (t[1].type === "listItemPrefix") {
2527
+ let i = {
2528
+ type: "listItem",
2529
+ _spread: !1,
2530
+ start: Object.assign({}, t[1].start),
2531
+ end: void 0
2532
+ };
2533
+ o = i, e.splice(r, 0, [
2534
+ "enter",
2535
+ i,
2536
+ t[2]
2537
+ ]), r++, n++, c = void 0, l = !0;
2538
+ }
2539
+ }
2540
+ }
2541
+ return e[t][1]._spread = a, n;
2542
+ }
2543
+ function a(e, t) {
2544
+ return n;
2545
+ function n(n) {
2546
+ s.call(this, e(n), n), t && t.call(this, n);
2547
+ }
2548
+ }
2549
+ function o() {
2550
+ this.stack.push({
2551
+ type: "fragment",
2552
+ children: []
2553
+ });
2554
+ }
2555
+ function s(e, t, n) {
2556
+ this.stack[this.stack.length - 1].children.push(e), this.stack.push(e), this.tokenStack.push([t, n || void 0]), e.position = {
2557
+ start: Z(t.start),
2558
+ end: void 0
2559
+ };
2560
+ }
2561
+ function c(e) {
2562
+ return t;
2563
+ function t(t) {
2564
+ e && e.call(this, t), l.call(this, t);
2565
+ }
2566
+ }
2567
+ function l(e, t) {
2568
+ let n = this.stack.pop(), r = this.tokenStack.pop();
2569
+ if (r) r[0].type !== e.type && (t ? t.call(this, e, r[0]) : (r[1] || rr).call(this, e, r[0]));
2570
+ else throw Error("Cannot close `" + e.type + "` (" + H({
2571
+ start: e.start,
2572
+ end: e.end
2573
+ }) + "): it’s not open");
2574
+ n.position.end = Z(e.end);
2575
+ }
2576
+ function u() {
2577
+ return j(this.stack.pop());
2578
+ }
2579
+ function d() {
2580
+ this.data.expectingFirstListItemValue = !0;
2581
+ }
2582
+ function f(e) {
2583
+ if (this.data.expectingFirstListItemValue) {
2584
+ let t = this.stack[this.stack.length - 2];
2585
+ t.start = Number.parseInt(this.sliceSerialize(e), 10), this.data.expectingFirstListItemValue = void 0;
2586
+ }
2587
+ }
2588
+ function p() {
2589
+ let e = this.resume(), t = this.stack[this.stack.length - 1];
2590
+ t.lang = e;
2591
+ }
2592
+ function h() {
2593
+ let e = this.resume(), t = this.stack[this.stack.length - 1];
2594
+ t.meta = e;
2595
+ }
2596
+ function g() {
2597
+ this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
2598
+ }
2599
+ function _() {
2600
+ let e = this.resume(), t = this.stack[this.stack.length - 1];
2601
+ t.value = e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
2602
+ }
2603
+ function v() {
2604
+ let e = this.resume(), t = this.stack[this.stack.length - 1];
2605
+ t.value = e.replace(/(\r?\n|\r)$/g, "");
2606
+ }
2607
+ function y(e) {
2608
+ let t = this.resume(), n = this.stack[this.stack.length - 1];
2609
+ n.label = t, n.identifier = m(this.sliceSerialize(e)).toLowerCase();
2610
+ }
2611
+ function b() {
2612
+ let e = this.resume(), t = this.stack[this.stack.length - 1];
2613
+ t.title = e;
2614
+ }
2615
+ function x() {
2616
+ let e = this.resume(), t = this.stack[this.stack.length - 1];
2617
+ t.url = e;
2618
+ }
2619
+ function S(e) {
2620
+ let t = this.stack[this.stack.length - 1];
2621
+ t.depth ||= this.sliceSerialize(e).length;
2622
+ }
2623
+ function C() {
2624
+ this.data.setextHeadingSlurpLineEnding = !0;
2625
+ }
2626
+ function w(e) {
2627
+ let t = this.stack[this.stack.length - 1];
2628
+ t.depth = this.sliceSerialize(e).codePointAt(0) === 61 ? 1 : 2;
2629
+ }
2630
+ function T() {
2631
+ this.data.setextHeadingSlurpLineEnding = void 0;
2632
+ }
2633
+ function E(e) {
2634
+ let t = this.stack[this.stack.length - 1].children, n = t[t.length - 1];
2635
+ (!n || n.type !== "text") && (n = _e(), n.position = {
2636
+ start: Z(e.start),
2637
+ end: void 0
2638
+ }, t.push(n)), this.stack.push(n);
2639
+ }
2640
+ function D(e) {
2641
+ let t = this.stack.pop();
2642
+ t.value += this.sliceSerialize(e), t.position.end = Z(e.end);
2643
+ }
2644
+ function O(e) {
2645
+ let n = this.stack[this.stack.length - 1];
2646
+ if (this.data.atHardBreak) {
2647
+ let t = n.children[n.children.length - 1];
2648
+ t.position.end = Z(e.end), this.data.atHardBreak = void 0;
2649
+ return;
2650
+ }
2651
+ !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(n.type) && (E.call(this, e), D.call(this, e));
2652
+ }
2653
+ function k() {
2654
+ this.data.atHardBreak = !0;
2655
+ }
2656
+ function A() {
2657
+ let e = this.resume(), t = this.stack[this.stack.length - 1];
2658
+ t.value = e;
2659
+ }
2660
+ function M() {
2661
+ let e = this.resume(), t = this.stack[this.stack.length - 1];
2662
+ t.value = e;
2663
+ }
2664
+ function N() {
2665
+ let e = this.resume(), t = this.stack[this.stack.length - 1];
2666
+ t.value = e;
2667
+ }
2668
+ function P() {
2669
+ let e = this.stack[this.stack.length - 1];
2670
+ if (this.data.inReference) {
2671
+ let t = this.data.referenceType || "shortcut";
2672
+ e.type += "Reference", e.referenceType = t, delete e.url, delete e.title;
2673
+ } else delete e.identifier, delete e.label;
2674
+ this.data.referenceType = void 0;
2675
+ }
2676
+ function F() {
2677
+ let e = this.stack[this.stack.length - 1];
2678
+ if (this.data.inReference) {
2679
+ let t = this.data.referenceType || "shortcut";
2680
+ e.type += "Reference", e.referenceType = t, delete e.url, delete e.title;
2681
+ } else delete e.identifier, delete e.label;
2682
+ this.data.referenceType = void 0;
2683
+ }
2684
+ function I(e) {
2685
+ let t = this.sliceSerialize(e), n = this.stack[this.stack.length - 2];
2686
+ n.label = Xn(t), n.identifier = m(t).toLowerCase();
2687
+ }
2688
+ function ee() {
2689
+ let e = this.stack[this.stack.length - 1], t = this.resume(), n = this.stack[this.stack.length - 1];
2690
+ this.data.inReference = !0, n.type === "link" ? n.children = e.children : n.alt = t;
2691
+ }
2692
+ function L() {
2693
+ let e = this.resume(), t = this.stack[this.stack.length - 1];
2694
+ t.url = e;
2695
+ }
2696
+ function R() {
2697
+ let e = this.resume(), t = this.stack[this.stack.length - 1];
2698
+ t.title = e;
2699
+ }
2700
+ function te() {
2701
+ this.data.inReference = void 0;
2702
+ }
2703
+ function z() {
2704
+ this.data.referenceType = "collapsed";
2705
+ }
2706
+ function B(e) {
2707
+ let t = this.resume(), n = this.stack[this.stack.length - 1];
2708
+ n.label = t, n.identifier = m(this.sliceSerialize(e)).toLowerCase(), this.data.referenceType = "full";
2709
+ }
2710
+ function V(e) {
2711
+ this.data.characterReferenceType = e.type;
2712
+ }
2713
+ function ne(e) {
2714
+ let t = this.sliceSerialize(e), n = this.data.characterReferenceType, r;
2715
+ n ? (r = ze(t, n === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : r = Re(t);
2716
+ let i = this.stack[this.stack.length - 1];
2717
+ i.value += r;
2718
+ }
2719
+ function re(e) {
2720
+ let t = this.stack.pop();
2721
+ t.position.end = Z(e.end);
2722
+ }
2723
+ function ie(e) {
2724
+ D.call(this, e);
2725
+ let t = this.stack[this.stack.length - 1];
2726
+ t.url = this.sliceSerialize(e);
2727
+ }
2728
+ function ae(e) {
2729
+ D.call(this, e);
2730
+ let t = this.stack[this.stack.length - 1];
2731
+ t.url = "mailto:" + this.sliceSerialize(e);
2732
+ }
2733
+ function oe() {
2734
+ return {
2735
+ type: "blockquote",
2736
+ children: []
2737
+ };
2738
+ }
2739
+ function U() {
2740
+ return {
2741
+ type: "code",
2742
+ lang: null,
2743
+ meta: null,
2744
+ value: ""
2745
+ };
2746
+ }
2747
+ function se() {
2748
+ return {
2749
+ type: "inlineCode",
2750
+ value: ""
2751
+ };
2752
+ }
2753
+ function ce() {
2754
+ return {
2755
+ type: "definition",
2756
+ identifier: "",
2757
+ label: null,
2758
+ title: null,
2759
+ url: ""
2760
+ };
2761
+ }
2762
+ function W() {
2763
+ return {
2764
+ type: "emphasis",
2765
+ children: []
2766
+ };
2767
+ }
2768
+ function le() {
2769
+ return {
2770
+ type: "heading",
2771
+ depth: 0,
2772
+ children: []
2773
+ };
2774
+ }
2775
+ function G() {
2776
+ return { type: "break" };
2777
+ }
2778
+ function ue() {
2779
+ return {
2780
+ type: "html",
2781
+ value: ""
2782
+ };
2783
+ }
2784
+ function de() {
2785
+ return {
2786
+ type: "image",
2787
+ title: null,
2788
+ url: "",
2789
+ alt: null
2790
+ };
2791
+ }
2792
+ function fe() {
2793
+ return {
2794
+ type: "link",
2795
+ title: null,
2796
+ url: "",
2797
+ children: []
2798
+ };
2799
+ }
2800
+ function pe(e) {
2801
+ return {
2802
+ type: "list",
2803
+ ordered: e.type === "listOrdered",
2804
+ start: null,
2805
+ spread: e._spread,
2806
+ children: []
2807
+ };
2808
+ }
2809
+ function me(e) {
2810
+ return {
2811
+ type: "listItem",
2812
+ spread: e._spread,
2813
+ checked: null,
2814
+ children: []
2815
+ };
2816
+ }
2817
+ function he() {
2818
+ return {
2819
+ type: "paragraph",
2820
+ children: []
2821
+ };
2822
+ }
2823
+ function ge() {
2824
+ return {
2825
+ type: "strong",
2826
+ children: []
2827
+ };
2828
+ }
2829
+ function _e() {
2830
+ return {
2831
+ type: "text",
2832
+ value: ""
2833
+ };
2834
+ }
2835
+ function ve() {
2836
+ return { type: "thematicBreak" };
2837
+ }
2838
+ }
2839
+ function Z(e) {
2840
+ return {
2841
+ line: e.line,
2842
+ column: e.column,
2843
+ offset: e.offset
2844
+ };
2845
+ }
2846
+ function tr(e, t) {
2847
+ let n = -1;
2848
+ for (; ++n < t.length;) {
2849
+ let r = t[n];
2850
+ Array.isArray(r) ? tr(e, r) : nr(e, r);
2851
+ }
2852
+ }
2853
+ function nr(e, t) {
2854
+ let n;
2855
+ for (n in t) if (Qn.call(t, n)) switch (n) {
2856
+ case "canContainEols": {
2857
+ let r = t[n];
2858
+ r && e[n].push(...r);
2859
+ break;
2860
+ }
2861
+ case "transforms": {
2862
+ let r = t[n];
2863
+ r && e[n].push(...r);
2864
+ break;
2865
+ }
2866
+ case "enter":
2867
+ case "exit": {
2868
+ let r = t[n];
2869
+ r && Object.assign(e[n], r);
2870
+ break;
2871
+ }
2872
+ }
2873
+ }
2874
+ function rr(e, t) {
2875
+ throw Error(e ? "Cannot close `" + e.type + "` (" + H({
2876
+ start: e.start,
2877
+ end: e.end
2878
+ }) + "): a different token (`" + t.type + "`, " + H({
2879
+ start: t.start,
2880
+ end: t.end
2881
+ }) + ") is open" : "Cannot close document, a token (`" + t.type + "`, " + H({
2882
+ start: t.start,
2883
+ end: t.end
2884
+ }) + ") is still open");
2885
+ }
2886
+ //#endregion
2887
+ //#region node_modules/remark-parse/lib/index.js
2888
+ function ir(e) {
2889
+ let t = this;
2890
+ t.parser = n;
2891
+ function n(n) {
2892
+ return $n(n, {
2893
+ ...t.data("settings"),
2894
+ ...e,
2895
+ extensions: t.data("micromarkExtensions") || [],
2896
+ mdastExtensions: t.data("fromMarkdownExtensions") || []
2897
+ });
2898
+ }
2899
+ }
2900
+ //#endregion
2901
+ //#region node_modules/mdast-util-to-hast/lib/handlers/blockquote.js
2902
+ function ar(e, t) {
2903
+ let n = {
2904
+ type: "element",
2905
+ tagName: "blockquote",
2906
+ properties: {},
2907
+ children: e.wrap(e.all(t), !0)
2908
+ };
2909
+ return e.patch(t, n), e.applyData(t, n);
2910
+ }
2911
+ //#endregion
2912
+ //#region node_modules/mdast-util-to-hast/lib/handlers/break.js
2913
+ function or(e, t) {
2914
+ let n = {
2915
+ type: "element",
2916
+ tagName: "br",
2917
+ properties: {},
2918
+ children: []
2919
+ };
2920
+ return e.patch(t, n), [e.applyData(t, n), {
2921
+ type: "text",
2922
+ value: "\n"
2923
+ }];
2924
+ }
2925
+ //#endregion
2926
+ //#region node_modules/mdast-util-to-hast/lib/handlers/code.js
2927
+ function sr(e, t) {
2928
+ let n = t.value ? t.value + "\n" : "", r = {}, i = t.lang ? t.lang.split(/\s+/) : [];
2929
+ i.length > 0 && (r.className = ["language-" + i[0]]);
2930
+ let a = {
2931
+ type: "element",
2932
+ tagName: "code",
2933
+ properties: r,
2934
+ children: [{
2935
+ type: "text",
2936
+ value: n
2937
+ }]
2938
+ };
2939
+ return t.meta && (a.data = { meta: t.meta }), e.patch(t, a), a = e.applyData(t, a), a = {
2940
+ type: "element",
2941
+ tagName: "pre",
2942
+ properties: {},
2943
+ children: [a]
2944
+ }, e.patch(t, a), a;
2945
+ }
2946
+ //#endregion
2947
+ //#region node_modules/mdast-util-to-hast/lib/handlers/delete.js
2948
+ function cr(e, t) {
2949
+ let n = {
2950
+ type: "element",
2951
+ tagName: "del",
2952
+ properties: {},
2953
+ children: e.all(t)
2954
+ };
2955
+ return e.patch(t, n), e.applyData(t, n);
2956
+ }
2957
+ //#endregion
2958
+ //#region node_modules/mdast-util-to-hast/lib/handlers/emphasis.js
2959
+ function lr(e, t) {
2960
+ let n = {
2961
+ type: "element",
2962
+ tagName: "em",
2963
+ properties: {},
2964
+ children: e.all(t)
2965
+ };
2966
+ return e.patch(t, n), e.applyData(t, n);
2967
+ }
2968
+ //#endregion
2969
+ //#region node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js
2970
+ function ur(e, t) {
2971
+ let n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), i = q(r.toLowerCase()), a = e.footnoteOrder.indexOf(r), o, s = e.footnoteCounts.get(r);
2972
+ s === void 0 ? (s = 0, e.footnoteOrder.push(r), o = e.footnoteOrder.length) : o = a + 1, s += 1, e.footnoteCounts.set(r, s);
2973
+ let c = {
2974
+ type: "element",
2975
+ tagName: "a",
2976
+ properties: {
2977
+ href: "#" + n + "fn-" + i,
2978
+ id: n + "fnref-" + i + (s > 1 ? "-" + s : ""),
2979
+ dataFootnoteRef: !0,
2980
+ ariaDescribedBy: ["footnote-label"]
2981
+ },
2982
+ children: [{
2983
+ type: "text",
2984
+ value: String(o)
2985
+ }]
2986
+ };
2987
+ e.patch(t, c);
2988
+ let l = {
2989
+ type: "element",
2990
+ tagName: "sup",
2991
+ properties: {},
2992
+ children: [c]
2993
+ };
2994
+ return e.patch(t, l), e.applyData(t, l);
2995
+ }
2996
+ //#endregion
2997
+ //#region node_modules/mdast-util-to-hast/lib/handlers/heading.js
2998
+ function dr(e, t) {
2999
+ let n = {
3000
+ type: "element",
3001
+ tagName: "h" + t.depth,
3002
+ properties: {},
3003
+ children: e.all(t)
3004
+ };
3005
+ return e.patch(t, n), e.applyData(t, n);
3006
+ }
3007
+ //#endregion
3008
+ //#region node_modules/mdast-util-to-hast/lib/handlers/html.js
3009
+ function fr(e, t) {
3010
+ if (e.options.allowDangerousHtml) {
3011
+ let n = {
3012
+ type: "raw",
3013
+ value: t.value
3014
+ };
3015
+ return e.patch(t, n), e.applyData(t, n);
3016
+ }
3017
+ }
3018
+ //#endregion
3019
+ //#region node_modules/mdast-util-to-hast/lib/revert.js
3020
+ function pr(e, t) {
3021
+ let n = t.referenceType, r = "]";
3022
+ if (n === "collapsed" ? r += "[]" : n === "full" && (r += "[" + (t.label || t.identifier) + "]"), t.type === "imageReference") return [{
3023
+ type: "text",
3024
+ value: "![" + t.alt + r
3025
+ }];
3026
+ let i = e.all(t), a = i[0];
3027
+ a && a.type === "text" ? a.value = "[" + a.value : i.unshift({
3028
+ type: "text",
3029
+ value: "["
3030
+ });
3031
+ let o = i[i.length - 1];
3032
+ return o && o.type === "text" ? o.value += r : i.push({
3033
+ type: "text",
3034
+ value: r
3035
+ }), i;
3036
+ }
3037
+ //#endregion
3038
+ //#region node_modules/mdast-util-to-hast/lib/handlers/image-reference.js
3039
+ function mr(e, t) {
3040
+ let n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
3041
+ if (!r) return pr(e, t);
3042
+ let i = {
3043
+ src: q(r.url || ""),
3044
+ alt: t.alt
3045
+ };
3046
+ r.title !== null && r.title !== void 0 && (i.title = r.title);
3047
+ let a = {
3048
+ type: "element",
3049
+ tagName: "img",
3050
+ properties: i,
3051
+ children: []
3052
+ };
3053
+ return e.patch(t, a), e.applyData(t, a);
3054
+ }
3055
+ //#endregion
3056
+ //#region node_modules/mdast-util-to-hast/lib/handlers/image.js
3057
+ function hr(e, t) {
3058
+ let n = { src: q(t.url) };
3059
+ t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
3060
+ let r = {
3061
+ type: "element",
3062
+ tagName: "img",
3063
+ properties: n,
3064
+ children: []
3065
+ };
3066
+ return e.patch(t, r), e.applyData(t, r);
3067
+ }
3068
+ //#endregion
3069
+ //#region node_modules/mdast-util-to-hast/lib/handlers/inline-code.js
3070
+ function gr(e, t) {
3071
+ let n = {
3072
+ type: "text",
3073
+ value: t.value.replace(/\r?\n|\r/g, " ")
3074
+ };
3075
+ e.patch(t, n);
3076
+ let r = {
3077
+ type: "element",
3078
+ tagName: "code",
3079
+ properties: {},
3080
+ children: [n]
3081
+ };
3082
+ return e.patch(t, r), e.applyData(t, r);
3083
+ }
3084
+ //#endregion
3085
+ //#region node_modules/mdast-util-to-hast/lib/handlers/link-reference.js
3086
+ function _r(e, t) {
3087
+ let n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
3088
+ if (!r) return pr(e, t);
3089
+ let i = { href: q(r.url || "") };
3090
+ r.title !== null && r.title !== void 0 && (i.title = r.title);
3091
+ let a = {
3092
+ type: "element",
3093
+ tagName: "a",
3094
+ properties: i,
3095
+ children: e.all(t)
3096
+ };
3097
+ return e.patch(t, a), e.applyData(t, a);
3098
+ }
3099
+ //#endregion
3100
+ //#region node_modules/mdast-util-to-hast/lib/handlers/link.js
3101
+ function vr(e, t) {
3102
+ let n = { href: q(t.url) };
3103
+ t.title !== null && t.title !== void 0 && (n.title = t.title);
3104
+ let r = {
3105
+ type: "element",
3106
+ tagName: "a",
3107
+ properties: n,
3108
+ children: e.all(t)
3109
+ };
3110
+ return e.patch(t, r), e.applyData(t, r);
3111
+ }
3112
+ //#endregion
3113
+ //#region node_modules/mdast-util-to-hast/lib/handlers/list-item.js
3114
+ function yr(e, t, n) {
3115
+ let r = e.all(t), i = n ? br(n) : xr(t), a = {}, o = [];
3116
+ if (typeof t.checked == "boolean") {
3117
+ let e = r[0], n;
3118
+ e && e.type === "element" && e.tagName === "p" ? n = e : (n = {
3119
+ type: "element",
3120
+ tagName: "p",
3121
+ properties: {},
3122
+ children: []
3123
+ }, r.unshift(n)), n.children.length > 0 && n.children.unshift({
3124
+ type: "text",
3125
+ value: " "
3126
+ }), n.children.unshift({
3127
+ type: "element",
3128
+ tagName: "input",
3129
+ properties: {
3130
+ type: "checkbox",
3131
+ checked: t.checked,
3132
+ disabled: !0
3133
+ },
3134
+ children: []
3135
+ }), a.className = ["task-list-item"];
3136
+ }
3137
+ let s = -1;
3138
+ for (; ++s < r.length;) {
3139
+ let e = r[s];
3140
+ (i || s !== 0 || e.type !== "element" || e.tagName !== "p") && o.push({
3141
+ type: "text",
3142
+ value: "\n"
3143
+ }), e.type === "element" && e.tagName === "p" && !i ? o.push(...e.children) : o.push(e);
3144
+ }
3145
+ let c = r[r.length - 1];
3146
+ c && (i || c.type !== "element" || c.tagName !== "p") && o.push({
3147
+ type: "text",
3148
+ value: "\n"
3149
+ });
3150
+ let l = {
3151
+ type: "element",
3152
+ tagName: "li",
3153
+ properties: a,
3154
+ children: o
3155
+ };
3156
+ return e.patch(t, l), e.applyData(t, l);
3157
+ }
3158
+ function br(e) {
3159
+ let t = !1;
3160
+ if (e.type === "list") {
3161
+ t = e.spread || !1;
3162
+ let n = e.children, r = -1;
3163
+ for (; !t && ++r < n.length;) t = xr(n[r]);
3164
+ }
3165
+ return t;
3166
+ }
3167
+ function xr(e) {
3168
+ return e.spread ?? e.children.length > 1;
3169
+ }
3170
+ //#endregion
3171
+ //#region node_modules/mdast-util-to-hast/lib/handlers/list.js
3172
+ function Sr(e, t) {
3173
+ let n = {}, r = e.all(t), i = -1;
3174
+ for (typeof t.start == "number" && t.start !== 1 && (n.start = t.start); ++i < r.length;) {
3175
+ let e = r[i];
3176
+ if (e.type === "element" && e.tagName === "li" && e.properties && Array.isArray(e.properties.className) && e.properties.className.includes("task-list-item")) {
3177
+ n.className = ["contains-task-list"];
3178
+ break;
3179
+ }
3180
+ }
3181
+ let a = {
3182
+ type: "element",
3183
+ tagName: t.ordered ? "ol" : "ul",
3184
+ properties: n,
3185
+ children: e.wrap(r, !0)
3186
+ };
3187
+ return e.patch(t, a), e.applyData(t, a);
3188
+ }
3189
+ //#endregion
3190
+ //#region node_modules/mdast-util-to-hast/lib/handlers/paragraph.js
3191
+ function Cr(e, t) {
3192
+ let n = {
3193
+ type: "element",
3194
+ tagName: "p",
3195
+ properties: {},
3196
+ children: e.all(t)
3197
+ };
3198
+ return e.patch(t, n), e.applyData(t, n);
3199
+ }
3200
+ //#endregion
3201
+ //#region node_modules/mdast-util-to-hast/lib/handlers/root.js
3202
+ function wr(e, t) {
3203
+ let n = {
3204
+ type: "root",
3205
+ children: e.wrap(e.all(t))
3206
+ };
3207
+ return e.patch(t, n), e.applyData(t, n);
3208
+ }
3209
+ //#endregion
3210
+ //#region node_modules/mdast-util-to-hast/lib/handlers/strong.js
3211
+ function Tr(e, t) {
3212
+ let n = {
3213
+ type: "element",
3214
+ tagName: "strong",
3215
+ properties: {},
3216
+ children: e.all(t)
3217
+ };
3218
+ return e.patch(t, n), e.applyData(t, n);
3219
+ }
3220
+ //#endregion
3221
+ //#region node_modules/mdast-util-to-hast/lib/handlers/table.js
3222
+ function Er(e, t) {
3223
+ let n = e.all(t), r = n.shift(), i = [];
3224
+ if (r) {
3225
+ let n = {
3226
+ type: "element",
3227
+ tagName: "thead",
3228
+ properties: {},
3229
+ children: e.wrap([r], !0)
3230
+ };
3231
+ e.patch(t.children[0], n), i.push(n);
3232
+ }
3233
+ if (n.length > 0) {
3234
+ let r = {
3235
+ type: "element",
3236
+ tagName: "tbody",
3237
+ properties: {},
3238
+ children: e.wrap(n, !0)
3239
+ }, a = l(t.children[1]), s = o(t.children[t.children.length - 1]);
3240
+ a && s && (r.position = {
3241
+ start: a,
3242
+ end: s
3243
+ }), i.push(r);
3244
+ }
3245
+ let a = {
3246
+ type: "element",
3247
+ tagName: "table",
3248
+ properties: {},
3249
+ children: e.wrap(i, !0)
3250
+ };
3251
+ return e.patch(t, a), e.applyData(t, a);
3252
+ }
3253
+ //#endregion
3254
+ //#region node_modules/mdast-util-to-hast/lib/handlers/table-row.js
3255
+ function Dr(e, t, n) {
3256
+ let r = n ? n.children : void 0, i = (r ? r.indexOf(t) : 1) === 0 ? "th" : "td", a = n && n.type === "table" ? n.align : void 0, o = a ? a.length : t.children.length, s = -1, c = [];
3257
+ for (; ++s < o;) {
3258
+ let n = t.children[s], r = {}, o = a ? a[s] : void 0;
3259
+ o && (r.align = o);
3260
+ let l = {
3261
+ type: "element",
3262
+ tagName: i,
3263
+ properties: r,
3264
+ children: []
3265
+ };
3266
+ n && (l.children = e.all(n), e.patch(n, l), l = e.applyData(n, l)), c.push(l);
3267
+ }
3268
+ let l = {
3269
+ type: "element",
3270
+ tagName: "tr",
3271
+ properties: {},
3272
+ children: e.wrap(c, !0)
3273
+ };
3274
+ return e.patch(t, l), e.applyData(t, l);
3275
+ }
3276
+ //#endregion
3277
+ //#region node_modules/mdast-util-to-hast/lib/handlers/table-cell.js
3278
+ function Or(e, t) {
3279
+ let n = {
3280
+ type: "element",
3281
+ tagName: "td",
3282
+ properties: {},
3283
+ children: e.all(t)
3284
+ };
3285
+ return e.patch(t, n), e.applyData(t, n);
3286
+ }
3287
+ //#endregion
3288
+ //#region node_modules/trim-lines/index.js
3289
+ var kr = 9, Ar = 32;
3290
+ function jr(e) {
3291
+ let t = String(e), n = /\r?\n|\r/g, r = n.exec(t), i = 0, a = [];
3292
+ for (; r;) a.push(Mr(t.slice(i, r.index), i > 0, !0), r[0]), i = r.index + r[0].length, r = n.exec(t);
3293
+ return a.push(Mr(t.slice(i), i > 0, !1)), a.join("");
3294
+ }
3295
+ function Mr(e, t, n) {
3296
+ let r = 0, i = e.length;
3297
+ if (t) {
3298
+ let t = e.codePointAt(r);
3299
+ for (; t === kr || t === Ar;) r++, t = e.codePointAt(r);
3300
+ }
3301
+ if (n) {
3302
+ let t = e.codePointAt(i - 1);
3303
+ for (; t === kr || t === Ar;) i--, t = e.codePointAt(i - 1);
3304
+ }
3305
+ return i > r ? e.slice(r, i) : "";
3306
+ }
3307
+ //#endregion
3308
+ //#region node_modules/mdast-util-to-hast/lib/handlers/text.js
3309
+ function Nr(e, t) {
3310
+ let n = {
3311
+ type: "text",
3312
+ value: jr(String(t.value))
3313
+ };
3314
+ return e.patch(t, n), e.applyData(t, n);
3315
+ }
3316
+ //#endregion
3317
+ //#region node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js
3318
+ function Pr(e, t) {
3319
+ let n = {
3320
+ type: "element",
3321
+ tagName: "hr",
3322
+ properties: {},
3323
+ children: []
3324
+ };
3325
+ return e.patch(t, n), e.applyData(t, n);
3326
+ }
3327
+ //#endregion
3328
+ //#region node_modules/mdast-util-to-hast/lib/handlers/index.js
3329
+ var Fr = {
3330
+ blockquote: ar,
3331
+ break: or,
3332
+ code: sr,
3333
+ delete: cr,
3334
+ emphasis: lr,
3335
+ footnoteReference: ur,
3336
+ heading: dr,
3337
+ html: fr,
3338
+ imageReference: mr,
3339
+ image: hr,
3340
+ inlineCode: gr,
3341
+ linkReference: _r,
3342
+ link: vr,
3343
+ listItem: yr,
3344
+ list: Sr,
3345
+ paragraph: Cr,
3346
+ root: wr,
3347
+ strong: Tr,
3348
+ table: Er,
3349
+ tableCell: Or,
3350
+ tableRow: Dr,
3351
+ text: Nr,
3352
+ thematicBreak: Pr,
3353
+ toml: Ir,
3354
+ yaml: Ir,
3355
+ definition: Ir,
3356
+ footnoteDefinition: Ir
3357
+ };
3358
+ function Ir() {}
3359
+ //#endregion
3360
+ //#region node_modules/mdast-util-to-hast/lib/footer.js
3361
+ function Lr(e, t) {
3362
+ let n = [{
3363
+ type: "text",
3364
+ value: "↩"
3365
+ }];
3366
+ return t > 1 && n.push({
3367
+ type: "element",
3368
+ tagName: "sup",
3369
+ properties: {},
3370
+ children: [{
3371
+ type: "text",
3372
+ value: String(t)
3373
+ }]
3374
+ }), n;
3375
+ }
3376
+ function Rr(e, t) {
3377
+ return "Back to reference " + (e + 1) + (t > 1 ? "-" + t : "");
3378
+ }
3379
+ function zr(e) {
3380
+ let t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent || Lr, r = e.options.footnoteBackLabel || Rr, i = e.options.footnoteLabel || "Footnotes", a = e.options.footnoteLabelTagName || "h2", o = e.options.footnoteLabelProperties || { className: ["sr-only"] }, s = [], c = -1;
3381
+ for (; ++c < e.footnoteOrder.length;) {
3382
+ let i = e.footnoteById.get(e.footnoteOrder[c]);
3383
+ if (!i) continue;
3384
+ let a = e.all(i), o = String(i.identifier).toUpperCase(), l = q(o.toLowerCase()), u = 0, d = [], f = e.footnoteCounts.get(o);
3385
+ for (; f !== void 0 && ++u <= f;) {
3386
+ d.length > 0 && d.push({
3387
+ type: "text",
3388
+ value: " "
3389
+ });
3390
+ let e = typeof n == "string" ? n : n(c, u);
3391
+ typeof e == "string" && (e = {
3392
+ type: "text",
3393
+ value: e
3394
+ }), d.push({
3395
+ type: "element",
3396
+ tagName: "a",
3397
+ properties: {
3398
+ href: "#" + t + "fnref-" + l + (u > 1 ? "-" + u : ""),
3399
+ dataFootnoteBackref: "",
3400
+ ariaLabel: typeof r == "string" ? r : r(c, u),
3401
+ className: ["data-footnote-backref"]
3402
+ },
3403
+ children: Array.isArray(e) ? e : [e]
3404
+ });
3405
+ }
3406
+ let p = a[a.length - 1];
3407
+ if (p && p.type === "element" && p.tagName === "p") {
3408
+ let e = p.children[p.children.length - 1];
3409
+ e && e.type === "text" ? e.value += " " : p.children.push({
3410
+ type: "text",
3411
+ value: " "
3412
+ }), p.children.push(...d);
3413
+ } else a.push(...d);
3414
+ let m = {
3415
+ type: "element",
3416
+ tagName: "li",
3417
+ properties: { id: t + "fn-" + l },
3418
+ children: e.wrap(a, !0)
3419
+ };
3420
+ e.patch(i, m), s.push(m);
3421
+ }
3422
+ if (s.length !== 0) return {
3423
+ type: "element",
3424
+ tagName: "section",
3425
+ properties: {
3426
+ dataFootnotes: !0,
3427
+ className: ["footnotes"]
3428
+ },
3429
+ children: [
3430
+ {
3431
+ type: "element",
3432
+ tagName: a,
3433
+ properties: {
3434
+ ...d(o),
3435
+ id: "footnote-label"
3436
+ },
3437
+ children: [{
3438
+ type: "text",
3439
+ value: i
3440
+ }]
3441
+ },
3442
+ {
3443
+ type: "text",
3444
+ value: "\n"
3445
+ },
3446
+ {
3447
+ type: "element",
3448
+ tagName: "ol",
3449
+ properties: {},
3450
+ children: e.wrap(s, !0)
3451
+ },
3452
+ {
3453
+ type: "text",
3454
+ value: "\n"
3455
+ }
3456
+ ]
3457
+ };
3458
+ }
3459
+ //#endregion
3460
+ //#region node_modules/mdast-util-to-hast/lib/state.js
3461
+ var Br = {}.hasOwnProperty, Vr = {};
3462
+ function Hr(e, t) {
3463
+ let n = t || Vr, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = {
3464
+ all: s,
3465
+ applyData: Wr,
3466
+ definitionById: r,
3467
+ footnoteById: i,
3468
+ footnoteCounts: /* @__PURE__ */ new Map(),
3469
+ footnoteOrder: [],
3470
+ handlers: {
3471
+ ...Fr,
3472
+ ...n.handlers
3473
+ },
3474
+ one: o,
3475
+ options: n,
3476
+ patch: Ur,
3477
+ wrap: Kr
3478
+ };
3479
+ return p(e, function(e) {
3480
+ if (e.type === "definition" || e.type === "footnoteDefinition") {
3481
+ let t = e.type === "definition" ? r : i, n = String(e.identifier).toUpperCase();
3482
+ t.has(n) || t.set(n, e);
3483
+ }
3484
+ }), a;
3485
+ function o(e, t) {
3486
+ let n = e.type, r = a.handlers[n];
3487
+ if (Br.call(a.handlers, n) && r) return r(a, e, t);
3488
+ if (a.options.passThrough && a.options.passThrough.includes(n)) {
3489
+ if ("children" in e) {
3490
+ let { children: t, ...n } = e, r = d(n);
3491
+ return r.children = a.all(e), r;
3492
+ }
3493
+ return d(e);
3494
+ }
3495
+ return (a.options.unknownHandler || Gr)(a, e, t);
3496
+ }
3497
+ function s(e) {
3498
+ let t = [];
3499
+ if ("children" in e) {
3500
+ let n = e.children, r = -1;
3501
+ for (; ++r < n.length;) {
3502
+ let i = a.one(n[r], e);
3503
+ if (i) {
3504
+ if (r && n[r - 1].type === "break" && (!Array.isArray(i) && i.type === "text" && (i.value = qr(i.value)), !Array.isArray(i) && i.type === "element")) {
3505
+ let e = i.children[0];
3506
+ e && e.type === "text" && (e.value = qr(e.value));
3507
+ }
3508
+ Array.isArray(i) ? t.push(...i) : t.push(i);
3509
+ }
3510
+ }
3511
+ }
3512
+ return t;
3513
+ }
3514
+ }
3515
+ function Ur(e, t) {
3516
+ e.position && (t.position = r(e));
3517
+ }
3518
+ function Wr(e, t) {
3519
+ let n = t;
3520
+ if (e && e.data) {
3521
+ let t = e.data.hName, r = e.data.hChildren, i = e.data.hProperties;
3522
+ typeof t == "string" && (n.type === "element" ? n.tagName = t : n = {
3523
+ type: "element",
3524
+ tagName: t,
3525
+ properties: {},
3526
+ children: "children" in n ? n.children : [n]
3527
+ }), n.type === "element" && i && Object.assign(n.properties, d(i)), "children" in n && n.children && r != null && (n.children = r);
3528
+ }
3529
+ return n;
3530
+ }
3531
+ function Gr(e, t) {
3532
+ let n = t.data || {}, r = "value" in t && !(Br.call(n, "hProperties") || Br.call(n, "hChildren")) ? {
3533
+ type: "text",
3534
+ value: t.value
3535
+ } : {
3536
+ type: "element",
3537
+ tagName: "div",
3538
+ properties: {},
3539
+ children: e.all(t)
3540
+ };
3541
+ return e.patch(t, r), e.applyData(t, r);
3542
+ }
3543
+ function Kr(e, t) {
3544
+ let n = [], r = -1;
3545
+ for (t && n.push({
3546
+ type: "text",
3547
+ value: "\n"
3548
+ }); ++r < e.length;) r && n.push({
3549
+ type: "text",
3550
+ value: "\n"
3551
+ }), n.push(e[r]);
3552
+ return t && e.length > 0 && n.push({
3553
+ type: "text",
3554
+ value: "\n"
3555
+ }), n;
3556
+ }
3557
+ function qr(e) {
3558
+ let t = 0, n = e.charCodeAt(t);
3559
+ for (; n === 9 || n === 32;) t++, n = e.charCodeAt(t);
3560
+ return e.slice(t);
3561
+ }
3562
+ //#endregion
3563
+ //#region node_modules/mdast-util-to-hast/lib/index.js
3564
+ function Jr(e, t) {
3565
+ let n = Hr(e, t), r = n.one(e, void 0), i = zr(n), a = Array.isArray(r) ? {
3566
+ type: "root",
3567
+ children: r
3568
+ } : r || {
3569
+ type: "root",
3570
+ children: []
3571
+ };
3572
+ return i && ("children" in a, a.children.push({
3573
+ type: "text",
3574
+ value: "\n"
3575
+ }, i)), a;
3576
+ }
3577
+ //#endregion
3578
+ //#region node_modules/remark-rehype/lib/index.js
3579
+ function Yr(e, t) {
3580
+ return e && "run" in e ? async function(n, r) {
3581
+ let i = Jr(n, {
3582
+ file: r,
3583
+ ...t
3584
+ });
3585
+ await e.run(i, r);
3586
+ } : function(n, r) {
3587
+ return Jr(n, {
3588
+ file: r,
3589
+ ...e || t
3590
+ });
3591
+ };
3592
+ }
3593
+ //#endregion
3594
+ //#region node_modules/bail/index.js
3595
+ function Xr(e) {
3596
+ if (e) throw e;
3597
+ }
3598
+ //#endregion
3599
+ //#region node_modules/extend/index.js
3600
+ var Zr = /* @__PURE__ */ a(((e, t) => {
3601
+ var n = Object.prototype.hasOwnProperty, r = Object.prototype.toString, i = Object.defineProperty, a = Object.getOwnPropertyDescriptor, o = function(e) {
3602
+ return typeof Array.isArray == "function" ? Array.isArray(e) : r.call(e) === "[object Array]";
3603
+ }, s = function(e) {
3604
+ if (!e || r.call(e) !== "[object Object]") return !1;
3605
+ var t = n.call(e, "constructor"), i = e.constructor && e.constructor.prototype && n.call(e.constructor.prototype, "isPrototypeOf");
3606
+ if (e.constructor && !t && !i) return !1;
3607
+ for (var a in e);
3608
+ return a === void 0 || n.call(e, a);
3609
+ }, c = function(e, t) {
3610
+ i && t.name === "__proto__" ? i(e, t.name, {
3611
+ enumerable: !0,
3612
+ configurable: !0,
3613
+ value: t.newValue,
3614
+ writable: !0
3615
+ }) : e[t.name] = t.newValue;
3616
+ }, l = function(e, t) {
3617
+ if (t === "__proto__") {
3618
+ if (!n.call(e, t)) return;
3619
+ if (a) return a(e, t).value;
3620
+ }
3621
+ return e[t];
3622
+ };
3623
+ t.exports = function e() {
3624
+ var t, n, r, i, a, u, d = arguments[0], f = 1, p = arguments.length, m = !1;
3625
+ for (typeof d == "boolean" && (m = d, d = arguments[1] || {}, f = 2), (d == null || typeof d != "object" && typeof d != "function") && (d = {}); f < p; ++f) if (t = arguments[f], t != null) for (n in t) r = l(d, n), i = l(t, n), d !== i && (m && i && (s(i) || (a = o(i))) ? (a ? (a = !1, u = r && o(r) ? r : []) : u = r && s(r) ? r : {}, c(d, {
3626
+ name: n,
3627
+ newValue: e(m, u, i)
3628
+ })) : i !== void 0 && c(d, {
3629
+ name: n,
3630
+ newValue: i
3631
+ }));
3632
+ return d;
3633
+ };
3634
+ }));
3635
+ //#endregion
3636
+ //#region node_modules/is-plain-obj/index.js
3637
+ function Qr(e) {
3638
+ if (typeof e != "object" || !e) return !1;
3639
+ let t = Object.getPrototypeOf(e);
3640
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
3641
+ }
3642
+ //#endregion
3643
+ //#region node_modules/trough/lib/index.js
3644
+ function $r() {
3645
+ let e = [], t = {
3646
+ run: n,
3647
+ use: r
3648
+ };
3649
+ return t;
3650
+ function n(...t) {
3651
+ let n = -1, r = t.pop();
3652
+ if (typeof r != "function") throw TypeError("Expected function as last argument, not " + r);
3653
+ i(null, ...t);
3654
+ function i(a, ...o) {
3655
+ let s = e[++n], c = -1;
3656
+ if (a) {
3657
+ r(a);
3658
+ return;
3659
+ }
3660
+ for (; ++c < t.length;) (o[c] === null || o[c] === void 0) && (o[c] = t[c]);
3661
+ t = o, s ? ei(s, i)(...o) : r(null, ...o);
3662
+ }
3663
+ }
3664
+ function r(n) {
3665
+ if (typeof n != "function") throw TypeError("Expected `middelware` to be a function, not " + n);
3666
+ return e.push(n), t;
3667
+ }
3668
+ }
3669
+ function ei(e, t) {
3670
+ let n;
3671
+ return r;
3672
+ function r(...t) {
3673
+ let r = e.length > t.length, o;
3674
+ r && t.push(i);
3675
+ try {
3676
+ o = e.apply(this, t);
3677
+ } catch (e) {
3678
+ let t = e;
3679
+ if (r && n) throw t;
3680
+ return i(t);
3681
+ }
3682
+ r || (o && o.then && typeof o.then == "function" ? o.then(a, i) : o instanceof Error ? i(o) : a(o));
3683
+ }
3684
+ function i(e, ...r) {
3685
+ n || (n = !0, t(e, ...r));
3686
+ }
3687
+ function a(e) {
3688
+ i(null, e);
3689
+ }
3690
+ }
3691
+ //#endregion
3692
+ //#region node_modules/vfile/lib/minpath.browser.js
3693
+ var Q = {
3694
+ basename: ti,
3695
+ dirname: ni,
3696
+ extname: ri,
3697
+ join: ii,
3698
+ sep: "/"
3699
+ };
3700
+ function ti(e, t) {
3701
+ if (t !== void 0 && typeof t != "string") throw TypeError("\"ext\" argument must be a string");
3702
+ $(e);
3703
+ let n = 0, r = -1, i = e.length, a;
3704
+ if (t === void 0 || t.length === 0 || t.length > e.length) {
3705
+ for (; i--;) if (e.codePointAt(i) === 47) {
3706
+ if (a) {
3707
+ n = i + 1;
3708
+ break;
3709
+ }
3710
+ } else r < 0 && (a = !0, r = i + 1);
3711
+ return r < 0 ? "" : e.slice(n, r);
3712
+ }
3713
+ if (t === e) return "";
3714
+ let o = -1, s = t.length - 1;
3715
+ for (; i--;) if (e.codePointAt(i) === 47) {
3716
+ if (a) {
3717
+ n = i + 1;
3718
+ break;
3719
+ }
3720
+ } else o < 0 && (a = !0, o = i + 1), s > -1 && (e.codePointAt(i) === t.codePointAt(s--) ? s < 0 && (r = i) : (s = -1, r = o));
3721
+ return n === r ? r = o : r < 0 && (r = e.length), e.slice(n, r);
3722
+ }
3723
+ function ni(e) {
3724
+ if ($(e), e.length === 0) return ".";
3725
+ let t = -1, n = e.length, r;
3726
+ for (; --n;) if (e.codePointAt(n) === 47) {
3727
+ if (r) {
3728
+ t = n;
3729
+ break;
3730
+ }
3731
+ } else r ||= !0;
3732
+ return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
3733
+ }
3734
+ function ri(e) {
3735
+ $(e);
3736
+ let t = e.length, n = -1, r = 0, i = -1, a = 0, o;
3737
+ for (; t--;) {
3738
+ let s = e.codePointAt(t);
3739
+ if (s === 47) {
3740
+ if (o) {
3741
+ r = t + 1;
3742
+ break;
3743
+ }
3744
+ continue;
3745
+ }
3746
+ n < 0 && (o = !0, n = t + 1), s === 46 ? i < 0 ? i = t : a !== 1 && (a = 1) : i > -1 && (a = -1);
3747
+ }
3748
+ return i < 0 || n < 0 || a === 0 || a === 1 && i === n - 1 && i === r + 1 ? "" : e.slice(i, n);
3749
+ }
3750
+ function ii(...e) {
3751
+ let t = -1, n;
3752
+ for (; ++t < e.length;) $(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
3753
+ return n === void 0 ? "." : ai(n);
3754
+ }
3755
+ function ai(e) {
3756
+ $(e);
3757
+ let t = e.codePointAt(0) === 47, n = oi(e, !t);
3758
+ return n.length === 0 && !t && (n = "."), n.length > 0 && e.codePointAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
3759
+ }
3760
+ function oi(e, t) {
3761
+ let n = "", r = 0, i = -1, a = 0, o = -1, s, c;
3762
+ for (; ++o <= e.length;) {
3763
+ if (o < e.length) s = e.codePointAt(o);
3764
+ else if (s === 47) break;
3765
+ else s = 47;
3766
+ if (s === 47) {
3767
+ if (!(i === o - 1 || a === 1)) if (i !== o - 1 && a === 2) {
3768
+ if (n.length < 2 || r !== 2 || n.codePointAt(n.length - 1) !== 46 || n.codePointAt(n.length - 2) !== 46) {
3769
+ if (n.length > 2) {
3770
+ if (c = n.lastIndexOf("/"), c !== n.length - 1) {
3771
+ c < 0 ? (n = "", r = 0) : (n = n.slice(0, c), r = n.length - 1 - n.lastIndexOf("/")), i = o, a = 0;
3772
+ continue;
3773
+ }
3774
+ } else if (n.length > 0) {
3775
+ n = "", r = 0, i = o, a = 0;
3776
+ continue;
3777
+ }
3778
+ }
3779
+ t && (n = n.length > 0 ? n + "/.." : "..", r = 2);
3780
+ } else n.length > 0 ? n += "/" + e.slice(i + 1, o) : n = e.slice(i + 1, o), r = o - i - 1;
3781
+ i = o, a = 0;
3782
+ } else s === 46 && a > -1 ? a++ : a = -1;
3783
+ }
3784
+ return n;
3785
+ }
3786
+ function $(e) {
3787
+ if (typeof e != "string") throw TypeError("Path must be a string. Received " + JSON.stringify(e));
3788
+ }
3789
+ //#endregion
3790
+ //#region node_modules/vfile/lib/minproc.browser.js
3791
+ var si = { cwd: ci };
3792
+ function ci() {
3793
+ return "/";
3794
+ }
3795
+ //#endregion
3796
+ //#region node_modules/vfile/lib/minurl.shared.js
3797
+ function li(e) {
3798
+ return !!(typeof e == "object" && e && "href" in e && e.href && "protocol" in e && e.protocol && e.auth === void 0);
3799
+ }
3800
+ //#endregion
3801
+ //#region node_modules/vfile/lib/minurl.browser.js
3802
+ function ui(e) {
3803
+ if (typeof e == "string") e = new URL(e);
3804
+ else if (!li(e)) {
3805
+ let t = /* @__PURE__ */ TypeError("The \"path\" argument must be of type string or an instance of URL. Received `" + e + "`");
3806
+ throw t.code = "ERR_INVALID_ARG_TYPE", t;
3807
+ }
3808
+ if (e.protocol !== "file:") {
3809
+ let e = /* @__PURE__ */ TypeError("The URL must be of scheme file");
3810
+ throw e.code = "ERR_INVALID_URL_SCHEME", e;
3811
+ }
3812
+ return di(e);
3813
+ }
3814
+ function di(e) {
3815
+ if (e.hostname !== "") {
3816
+ let e = /* @__PURE__ */ TypeError("File URL host must be \"localhost\" or empty on darwin");
3817
+ throw e.code = "ERR_INVALID_FILE_URL_HOST", e;
3818
+ }
3819
+ let t = e.pathname, n = -1;
3820
+ for (; ++n < t.length;) if (t.codePointAt(n) === 37 && t.codePointAt(n + 1) === 50) {
3821
+ let e = t.codePointAt(n + 2);
3822
+ if (e === 70 || e === 102) {
3823
+ let e = /* @__PURE__ */ TypeError("File URL path must not include encoded / characters");
3824
+ throw e.code = "ERR_INVALID_FILE_URL_PATH", e;
3825
+ }
3826
+ }
3827
+ return decodeURIComponent(t);
3828
+ }
3829
+ //#endregion
3830
+ //#region node_modules/vfile/lib/index.js
3831
+ var fi = [
3832
+ "history",
3833
+ "path",
3834
+ "basename",
3835
+ "stem",
3836
+ "extname",
3837
+ "dirname"
3838
+ ], pi = class {
3839
+ constructor(e) {
3840
+ let t;
3841
+ t = e ? li(e) ? { path: e } : typeof e == "string" || _i(e) ? { value: e } : e : {}, this.cwd = "cwd" in t ? "" : si.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
3842
+ let n = -1;
3843
+ for (; ++n < fi.length;) {
3844
+ let e = fi[n];
3845
+ e in t && t[e] !== void 0 && t[e] !== null && (this[e] = e === "history" ? [...t[e]] : t[e]);
3846
+ }
3847
+ let r;
3848
+ for (r in t) fi.includes(r) || (this[r] = t[r]);
3849
+ }
3850
+ get basename() {
3851
+ return typeof this.path == "string" ? Q.basename(this.path) : void 0;
3852
+ }
3853
+ set basename(e) {
3854
+ hi(e, "basename"), mi(e, "basename"), this.path = Q.join(this.dirname || "", e);
3855
+ }
3856
+ get dirname() {
3857
+ return typeof this.path == "string" ? Q.dirname(this.path) : void 0;
3858
+ }
3859
+ set dirname(e) {
3860
+ gi(this.basename, "dirname"), this.path = Q.join(e || "", this.basename);
3861
+ }
3862
+ get extname() {
3863
+ return typeof this.path == "string" ? Q.extname(this.path) : void 0;
3864
+ }
3865
+ set extname(e) {
3866
+ if (mi(e, "extname"), gi(this.dirname, "extname"), e) {
3867
+ if (e.codePointAt(0) !== 46) throw Error("`extname` must start with `.`");
3868
+ if (e.includes(".", 1)) throw Error("`extname` cannot contain multiple dots");
3869
+ }
3870
+ this.path = Q.join(this.dirname, this.stem + (e || ""));
3871
+ }
3872
+ get path() {
3873
+ return this.history[this.history.length - 1];
3874
+ }
3875
+ set path(e) {
3876
+ li(e) && (e = ui(e)), hi(e, "path"), this.path !== e && this.history.push(e);
3877
+ }
3878
+ get stem() {
3879
+ return typeof this.path == "string" ? Q.basename(this.path, this.extname) : void 0;
3880
+ }
3881
+ set stem(e) {
3882
+ hi(e, "stem"), mi(e, "stem"), this.path = Q.join(this.dirname || "", e + (this.extname || ""));
3883
+ }
3884
+ fail(e, t, n) {
3885
+ let r = this.message(e, t, n);
3886
+ throw r.fatal = !0, r;
3887
+ }
3888
+ info(e, t, n) {
3889
+ let r = this.message(e, t, n);
3890
+ return r.fatal = void 0, r;
3891
+ }
3892
+ message(e, t, n) {
3893
+ let r = new W(e, t, n);
3894
+ return this.path && (r.name = this.path + ":" + r.name, r.file = this.path), r.fatal = !1, this.messages.push(r), r;
3895
+ }
3896
+ toString(e) {
3897
+ return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(e || void 0).decode(this.value);
3898
+ }
3899
+ };
3900
+ function mi(e, t) {
3901
+ if (e && e.includes(Q.sep)) throw Error("`" + t + "` cannot be a path: did not expect `" + Q.sep + "`");
3902
+ }
3903
+ function hi(e, t) {
3904
+ if (!e) throw Error("`" + t + "` cannot be empty");
3905
+ }
3906
+ function gi(e, t) {
3907
+ if (!e) throw Error("Setting `" + t + "` requires `path` to be set too");
3908
+ }
3909
+ function _i(e) {
3910
+ return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
3911
+ }
3912
+ //#endregion
3913
+ //#region node_modules/unified/lib/callable-instance.js
3914
+ var vi = (function(e) {
3915
+ let t = this.constructor.prototype, n = t[e], r = function() {
3916
+ return n.apply(r, arguments);
3917
+ };
3918
+ return Object.setPrototypeOf(r, t), r;
3919
+ }), yi = /* @__PURE__ */ t(Zr(), 1), bi = {}.hasOwnProperty, xi = new class e extends vi {
3920
+ constructor() {
3921
+ super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = $r();
3922
+ }
3923
+ copy() {
3924
+ let t = new e(), n = -1;
3925
+ for (; ++n < this.attachers.length;) {
3926
+ let e = this.attachers[n];
3927
+ t.use(...e);
3928
+ }
3929
+ return t.data((0, yi.default)(!0, {}, this.namespace)), t;
3930
+ }
3931
+ data(e, t) {
3932
+ return typeof e == "string" ? arguments.length === 2 ? (wi("data", this.frozen), this.namespace[e] = t, this) : bi.call(this.namespace, e) && this.namespace[e] || void 0 : e ? (wi("data", this.frozen), this.namespace = e, this) : this.namespace;
3933
+ }
3934
+ freeze() {
3935
+ if (this.frozen) return this;
3936
+ let e = this;
3937
+ for (; ++this.freezeIndex < this.attachers.length;) {
3938
+ let [t, ...n] = this.attachers[this.freezeIndex];
3939
+ if (n[0] === !1) continue;
3940
+ n[0] === !0 && (n[0] = void 0);
3941
+ let r = t.call(e, ...n);
3942
+ typeof r == "function" && this.transformers.use(r);
3943
+ }
3944
+ return this.frozen = !0, this.freezeIndex = Infinity, this;
3945
+ }
3946
+ parse(e) {
3947
+ this.freeze();
3948
+ let t = Di(e), n = this.parser || this.Parser;
3949
+ return Si("parse", n), n(String(t), t);
3950
+ }
3951
+ process(e, t) {
3952
+ let n = this;
3953
+ return this.freeze(), Si("process", this.parser || this.Parser), Ci("process", this.compiler || this.Compiler), t ? r(void 0, t) : new Promise(r);
3954
+ function r(r, i) {
3955
+ let a = Di(e), o = n.parse(a);
3956
+ n.run(o, a, function(e, t, r) {
3957
+ if (e || !t || !r) return s(e);
3958
+ let i = t, a = n.stringify(i, r);
3959
+ ki(a) ? r.value = a : r.result = a, s(e, r);
3960
+ });
3961
+ function s(e, n) {
3962
+ e || !n ? i(e) : r ? r(n) : t(void 0, n);
3963
+ }
3964
+ }
3965
+ }
3966
+ processSync(e) {
3967
+ let t = !1, n;
3968
+ return this.freeze(), Si("processSync", this.parser || this.Parser), Ci("processSync", this.compiler || this.Compiler), this.process(e, r), Ei("processSync", "process", t), n;
3969
+ function r(e, r) {
3970
+ t = !0, Xr(e), n = r;
3971
+ }
3972
+ }
3973
+ run(e, t, n) {
3974
+ Ti(e), this.freeze();
3975
+ let r = this.transformers;
3976
+ return !n && typeof t == "function" && (n = t, t = void 0), n ? i(void 0, n) : new Promise(i);
3977
+ function i(i, a) {
3978
+ let o = Di(t);
3979
+ r.run(e, o, s);
3980
+ function s(t, r, o) {
3981
+ let s = r || e;
3982
+ t ? a(t) : i ? i(s) : n(void 0, s, o);
3983
+ }
3984
+ }
3985
+ }
3986
+ runSync(e, t) {
3987
+ let n = !1, r;
3988
+ return this.run(e, t, i), Ei("runSync", "run", n), r;
3989
+ function i(e, t) {
3990
+ Xr(e), r = t, n = !0;
3991
+ }
3992
+ }
3993
+ stringify(e, t) {
3994
+ this.freeze();
3995
+ let n = Di(t), r = this.compiler || this.Compiler;
3996
+ return Ci("stringify", r), Ti(e), r(e, n);
3997
+ }
3998
+ use(e, ...t) {
3999
+ let n = this.attachers, r = this.namespace;
4000
+ if (wi("use", this.frozen), e != null) if (typeof e == "function") s(e, t);
4001
+ else if (typeof e == "object") Array.isArray(e) ? o(e) : a(e);
4002
+ else throw TypeError("Expected usable value, not `" + e + "`");
4003
+ return this;
4004
+ function i(e) {
4005
+ if (typeof e == "function") s(e, []);
4006
+ else if (typeof e == "object") if (Array.isArray(e)) {
4007
+ let [t, ...n] = e;
4008
+ s(t, n);
4009
+ } else a(e);
4010
+ else throw TypeError("Expected usable value, not `" + e + "`");
4011
+ }
4012
+ function a(e) {
4013
+ if (!("plugins" in e) && !("settings" in e)) throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");
4014
+ o(e.plugins), e.settings && (r.settings = (0, yi.default)(!0, r.settings, e.settings));
4015
+ }
4016
+ function o(e) {
4017
+ let t = -1;
4018
+ if (e != null) if (Array.isArray(e)) for (; ++t < e.length;) {
4019
+ let n = e[t];
4020
+ i(n);
4021
+ }
4022
+ else throw TypeError("Expected a list of plugins, not `" + e + "`");
4023
+ }
4024
+ function s(e, t) {
4025
+ let r = -1, i = -1;
4026
+ for (; ++r < n.length;) if (n[r][0] === e) {
4027
+ i = r;
4028
+ break;
4029
+ }
4030
+ if (i === -1) n.push([e, ...t]);
4031
+ else if (t.length > 0) {
4032
+ let [r, ...a] = t, o = n[i][1];
4033
+ Qr(o) && Qr(r) && (r = (0, yi.default)(!0, o, r)), n[i] = [
4034
+ e,
4035
+ r,
4036
+ ...a
4037
+ ];
4038
+ }
4039
+ }
4040
+ }
4041
+ }().freeze();
4042
+ function Si(e, t) {
4043
+ if (typeof t != "function") throw TypeError("Cannot `" + e + "` without `parser`");
4044
+ }
4045
+ function Ci(e, t) {
4046
+ if (typeof t != "function") throw TypeError("Cannot `" + e + "` without `compiler`");
4047
+ }
4048
+ function wi(e, t) {
4049
+ if (t) throw Error("Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.");
4050
+ }
4051
+ function Ti(e) {
4052
+ if (!Qr(e) || typeof e.type != "string") throw TypeError("Expected node, got `" + e + "`");
4053
+ }
4054
+ function Ei(e, t, n) {
4055
+ if (!n) throw Error("`" + e + "` finished async. Use `" + t + "` instead");
4056
+ }
4057
+ function Di(e) {
4058
+ return Oi(e) ? e : new pi(e);
4059
+ }
4060
+ function Oi(e) {
4061
+ return !!(e && typeof e == "object" && "message" in e && "messages" in e);
4062
+ }
4063
+ function ki(e) {
4064
+ return typeof e == "string" || Ai(e);
4065
+ }
4066
+ function Ai(e) {
4067
+ return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
4068
+ }
4069
+ //#endregion
4070
+ //#region node_modules/react-markdown/lib/index.js
4071
+ var ji = [], Mi = { allowDangerousHtml: !0 }, Ni = /^(https?|ircs?|mailto|xmpp)$/i, Pi = [
4072
+ {
4073
+ from: "astPlugins",
4074
+ id: "remove-buggy-html-in-markdown-parser"
4075
+ },
4076
+ {
4077
+ from: "allowDangerousHtml",
4078
+ id: "remove-buggy-html-in-markdown-parser"
4079
+ },
4080
+ {
4081
+ from: "allowNode",
4082
+ id: "replace-allownode-allowedtypes-and-disallowedtypes",
4083
+ to: "allowElement"
4084
+ },
4085
+ {
4086
+ from: "allowedTypes",
4087
+ id: "replace-allownode-allowedtypes-and-disallowedtypes",
4088
+ to: "allowedElements"
4089
+ },
4090
+ {
4091
+ from: "className",
4092
+ id: "remove-classname"
4093
+ },
4094
+ {
4095
+ from: "disallowedTypes",
4096
+ id: "replace-allownode-allowedtypes-and-disallowedtypes",
4097
+ to: "disallowedElements"
4098
+ },
4099
+ {
4100
+ from: "escapeHtml",
4101
+ id: "remove-buggy-html-in-markdown-parser"
4102
+ },
4103
+ {
4104
+ from: "includeElementIndex",
4105
+ id: "#remove-includeelementindex"
4106
+ },
4107
+ {
4108
+ from: "includeNodeIndex",
4109
+ id: "change-includenodeindex-to-includeelementindex"
4110
+ },
4111
+ {
4112
+ from: "linkTarget",
4113
+ id: "remove-linktarget"
4114
+ },
4115
+ {
4116
+ from: "plugins",
4117
+ id: "change-plugins-to-remarkplugins",
4118
+ to: "remarkPlugins"
4119
+ },
4120
+ {
4121
+ from: "rawSourcePos",
4122
+ id: "#remove-rawsourcepos"
4123
+ },
4124
+ {
4125
+ from: "renderers",
4126
+ id: "change-renderers-to-components",
4127
+ to: "components"
4128
+ },
4129
+ {
4130
+ from: "source",
4131
+ id: "change-source-to-children",
4132
+ to: "children"
4133
+ },
4134
+ {
4135
+ from: "sourcePos",
4136
+ id: "#remove-sourcepos"
4137
+ },
4138
+ {
4139
+ from: "transformImageUri",
4140
+ id: "#add-urltransform",
4141
+ to: "urlTransform"
4142
+ },
4143
+ {
4144
+ from: "transformLinkUri",
4145
+ id: "#add-urltransform",
4146
+ to: "urlTransform"
4147
+ }
4148
+ ];
4149
+ function Fi(e) {
4150
+ let t = Ri(e), n = zi(e);
4151
+ return Bi(t.runSync(t.parse(n), n), e);
4152
+ }
4153
+ async function Ii(e) {
4154
+ let t = Ri(e), n = zi(e);
4155
+ return Bi(await t.run(t.parse(n), n), e);
4156
+ }
4157
+ function Li(e) {
4158
+ let t = Ri(e), [n, r] = P(void 0), [i, a] = P(void 0);
4159
+ if (N(function() {
4160
+ let n = !1, i = zi(e);
4161
+ return t.run(t.parse(i), i, function(e, t) {
4162
+ n || (r(e), a(t));
4163
+ }), function() {
4164
+ n = !0;
4165
+ };
4166
+ }, [
4167
+ e.children,
4168
+ e.rehypePlugins,
4169
+ e.remarkPlugins,
4170
+ e.remarkRehypeOptions
4171
+ ]), n) throw n;
4172
+ return i ? Bi(i, e) : e.fallback;
4173
+ }
4174
+ function Ri(e) {
4175
+ let t = e.rehypePlugins || ji, n = e.remarkPlugins || ji, r = e.remarkRehypeOptions ? {
4176
+ ...e.remarkRehypeOptions,
4177
+ ...Mi
4178
+ } : Mi;
4179
+ return xi().use(ir).use(n).use(Yr, r).use(t);
4180
+ }
4181
+ function zi(e) {
4182
+ let t = e.children || "", n = new pi();
4183
+ return typeof t == "string" ? n.value = t : "" + t, n;
4184
+ }
4185
+ function Bi(e, t) {
4186
+ let n = t.allowedElements, r = t.allowElement, i = t.components, a = t.disallowedElements, o = t.skipHtml, s = t.unwrapDisallowed, c = t.urlTransform || Vi;
4187
+ for (let e of Pi) Object.hasOwn(t, e.from) && "" + e.from + (e.to ? "use `" + e.to + "` instead" : "remove it") + e.id;
4188
+ return p(e, l), he(e, {
4189
+ Fragment: F,
4190
+ components: i,
4191
+ ignoreInvalidStyle: !0,
4192
+ jsx: I,
4193
+ jsxs: ee,
4194
+ passKeys: !0,
4195
+ passNode: !0
4196
+ });
4197
+ function l(e, t, i) {
4198
+ if (e.type === "raw" && i && typeof t == "number") return o ? i.children.splice(t, 1) : i.children[t] = {
4199
+ type: "text",
4200
+ value: e.value
4201
+ }, t;
4202
+ if (e.type === "element") {
4203
+ let t;
4204
+ for (t in Ie) if (Object.hasOwn(Ie, t) && Object.hasOwn(e.properties, t)) {
4205
+ let n = e.properties[t], r = Ie[t];
4206
+ (r === null || r.includes(e.tagName)) && (e.properties[t] = c(String(n || ""), t, e));
4207
+ }
4208
+ }
4209
+ if (e.type === "element") {
4210
+ let o = n ? !n.includes(e.tagName) : a ? a.includes(e.tagName) : !1;
4211
+ if (!o && r && typeof t == "number" && (o = !r(e, t, i)), o && i && typeof t == "number") return s && e.children ? i.children.splice(t, 1, ...e.children) : i.children.splice(t, 1), t;
4212
+ }
4213
+ }
4214
+ }
4215
+ function Vi(e) {
4216
+ let t = e.indexOf(":"), n = e.indexOf("?"), r = e.indexOf("#"), i = e.indexOf("/");
4217
+ return t === -1 || i !== -1 && t > i || n !== -1 && t > n || r !== -1 && t > r || Ni.test(e.slice(0, t)) ? e : "";
4218
+ }
4219
+ //#endregion
4220
+ export { Ii as MarkdownAsync, Li as MarkdownHooks, Fi as default, Vi as defaultUrlTransform };