@oomol-lab/open-flow 0.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/NOTICE +47 -0
- package/README.md +18 -0
- package/dist/browser/_virtual_open-flow-twemoji-DJwKsM_w.js +5067 -0
- package/dist/browser/addNodeOptions-DqoIueCR.js +33746 -0
- package/dist/browser/assets/font-00b26ac825e20950.woff2 +0 -0
- package/dist/browser/assets/font-036d4e95149b69ff.woff2 +0 -0
- package/dist/browser/assets/font-07d8e303ce4fc12b.ttf +0 -0
- package/dist/browser/assets/font-08ce98e51b04d589.ttf +0 -0
- package/dist/browser/assets/font-0cdd387c9590a1a9.woff2 +0 -0
- package/dist/browser/assets/font-0d85ae7cc30f2379.ttf +0 -0
- package/dist/browser/assets/font-0f60d1b897938ec9.woff2 +0 -0
- package/dist/browser/assets/font-11e4dc8a6471ff6d.woff +0 -0
- package/dist/browser/assets/font-138ac28d1663b303.ttf +0 -0
- package/dist/browser/assets/font-1ae6bd7475590e97.woff +0 -0
- package/dist/browser/assets/font-1c67f068fea8bb09.ttf +0 -0
- package/dist/browser/assets/font-1e6f9579e90e2cac.ttf +0 -0
- package/dist/browser/assets/font-1ece03f79f95277d.ttf +0 -0
- package/dist/browser/assets/font-2014c523c3210bcc.woff +0 -0
- package/dist/browser/assets/font-30da91e84c893f87.woff +0 -0
- package/dist/browser/assets/font-3398dd02302557a7.woff +0 -0
- package/dist/browser/assets/font-3931dd81faed86ba.ttf +0 -0
- package/dist/browser/assets/font-500e04d54f0d5166.ttf +0 -0
- package/dist/browser/assets/font-51814d270d06ff02.woff2 +0 -0
- package/dist/browser/assets/font-5d53e70ad607c235.woff2 +0 -0
- package/dist/browser/assets/font-5e28753be717dac9.woff +0 -0
- package/dist/browser/assets/font-68534840bcfdd2bf.ttf +0 -0
- package/dist/browser/assets/font-68e8c73ef42afd3c.woff2 +0 -0
- package/dist/browser/assets/font-6ab6b62e9b62dae2.woff +0 -0
- package/dist/browser/assets/font-6b47c40166b6dbe2.woff2 +0 -0
- package/dist/browser/assets/font-70ee1f64a20f2048.ttf +0 -0
- package/dist/browser/assets/font-71d517d67827787c.woff2 +0 -0
- package/dist/browser/assets/font-73d591271b160496.woff2 +0 -0
- package/dist/browser/assets/font-74444efd593c005e.woff2 +0 -0
- package/dist/browser/assets/font-7af58c5ec8f132a2.woff2 +0 -0
- package/dist/browser/assets/font-850c0af5c2238497.woff +0 -0
- package/dist/browser/assets/font-8a8d244581371912.woff +0 -0
- package/dist/browser/assets/font-9163df9c7122432e.ttf +0 -0
- package/dist/browser/assets/font-91ee67500cc0129a.woff +0 -0
- package/dist/browser/assets/font-95b6d2f1a50173bf.ttf +0 -0
- package/dist/browser/assets/font-97479ca6cce906ab.woff2 +0 -0
- package/dist/browser/assets/font-99cd42a3c072d918.woff2 +0 -0
- package/dist/browser/assets/font-99f9c6750b489c94.woff +0 -0
- package/dist/browser/assets/font-9be7ceb88004ab8a.woff +0 -0
- package/dist/browser/assets/font-a4af7d414440a1c1.woff2 +0 -0
- package/dist/browser/assets/font-a6b2099fb555c60e.ttf +0 -0
- package/dist/browser/assets/font-a6f7ec0d846ac7ad.woff +0 -0
- package/dist/browser/assets/font-c2342cd8b869e017.woff2 +0 -0
- package/dist/browser/assets/font-c6368d87e8a1a3a5.woff +0 -0
- package/dist/browser/assets/font-c647367d1dd4e162.ttf +0 -0
- package/dist/browser/assets/font-c76c5d696297d51b.woff +0 -0
- package/dist/browser/assets/font-c943cc986384f59e.woff +0 -0
- package/dist/browser/assets/font-d0332f52868370fd.ttf +0 -0
- package/dist/browser/assets/font-d04c54219f9eaec6.woff2 +0 -0
- package/dist/browser/assets/font-d96cdf2b3bdd4d64.woff +0 -0
- package/dist/browser/assets/font-dc47344dbb6cb5b6.woff2 +0 -0
- package/dist/browser/assets/font-de7701e42cf1f4cf.woff2 +0 -0
- package/dist/browser/assets/font-e14fed02b1aba7ce.woff +0 -0
- package/dist/browser/assets/font-e99ae51144bf1232.woff2 +0 -0
- package/dist/browser/assets/font-ece03cfd83e22c21.woff +0 -0
- package/dist/browser/assets/font-ed0b74372feefcbb.ttf +0 -0
- package/dist/browser/assets/font-f01f3e87d9c6a61c.ttf +0 -0
- package/dist/browser/assets/font-f1d6ef86f3b11a52.woff +0 -0
- package/dist/browser/assets/font-f36ea897e19f4a2e.ttf +0 -0
- package/dist/browser/assets/font-f9377ab0271cda59.ttf +0 -0
- package/dist/browser/carbon-nMY84Amv.js +53 -0
- package/dist/browser/composite-7VwgfnXx.js +6088 -0
- package/dist/browser/createResourceDialog-ByuJWdSL.js +439 -0
- package/dist/browser/dist-7oZK9QXZ.js +50088 -0
- package/dist/browser/dist-B9OV3YTx.js +881 -0
- package/dist/browser/dist-BLk5M0uK.js +1816 -0
- package/dist/browser/dist-BbyiRq3c.js +3285 -0
- package/dist/browser/dist-CIq6ue3I.js +6646 -0
- package/dist/browser/dist-CLZJNoWB.js +89 -0
- package/dist/browser/dist-CvcmLAMW.js +1620 -0
- package/dist/browser/dist-DL0SDskM.js +2327 -0
- package/dist/browser/dist-Djd02JSy.js +1247 -0
- package/dist/browser/dist-aWSZx4q1.js +850 -0
- package/dist/browser/dist-n-z5HtaO.js +4 -0
- package/dist/browser/dist-o4dBuwiG.js +320 -0
- package/dist/browser/dist-zyY--HOV.js +1543 -0
- package/dist/browser/esm-DXw7EADW.js +218 -0
- package/dist/browser/favicon.svg +7 -0
- package/dist/browser/flowWorkspace-DwVMpcar.js +22092 -0
- package/dist/browser/lib-S4ccuMeT.js +7857 -0
- package/dist/browser/licenses.md +4973 -0
- package/dist/browser/markdownContent-ZZFfSRqO.js +44545 -0
- package/dist/browser/project-change.d.ts +311 -0
- package/dist/browser/project-change.js +259 -0
- package/dist/browser/project-notifications.d.ts +12 -0
- package/dist/browser/rolldown-runtime-CEFd7nDs.js +30 -0
- package/dist/browser/workbench-contract.d.ts +28 -0
- package/dist/browser/workbench.css +2 -0
- package/dist/browser/workbench.css.d.ts +1 -0
- package/dist/browser/workbench.d.ts +14 -0
- package/dist/browser/workbench.js +3364 -0
- package/dist/common/connector-action.d.ts +20 -0
- package/dist/common/connector-action.js +106 -0
- package/dist/common/connector-proxy.d.ts +14 -0
- package/dist/common/connector-proxy.js +0 -0
- package/dist/common/control-api-conformance.d.ts +13 -0
- package/dist/common/control-api-conformance.js +518 -0
- package/dist/common/control-api-errors.d.ts +121 -0
- package/dist/common/control-api.d.ts +349 -0
- package/dist/common/control-api.js +884 -0
- package/dist/common/cron-trigger.d.ts +21 -0
- package/dist/common/cron-trigger.js +834 -0
- package/dist/common/engine-contract.d.ts +7 -0
- package/dist/common/favicon.svg +7 -0
- package/dist/common/integration-trigger.d.ts +111 -0
- package/dist/common/integration-trigger.js +290 -0
- package/dist/common/licenses.md +27 -0
- package/dist/common/poll-trigger.d.ts +69 -0
- package/dist/common/poll-trigger.js +155 -0
- package/dist/common/project-encoding.d.ts +11 -0
- package/dist/common/project-encoding.js +242 -0
- package/dist/common/project-notifications.d.ts +12 -0
- package/dist/common/project-semantics.d.ts +55 -0
- package/dist/common/project-semantics.js +8687 -0
- package/dist/common/provider-triggers.d.ts +6 -0
- package/dist/common/provider-triggers.js +4614 -0
- package/dist/common/run-events.d.ts +9 -0
- package/dist/common/run-events.js +192 -0
- package/dist/common/run-lifecycle.d.ts +69 -0
- package/dist/common/run-lifecycle.js +169 -0
- package/dist/common/runtime-contract.d.ts +53 -0
- package/dist/common/runtime-contract.js +151 -0
- package/dist/common/scheduler.d.ts +99 -0
- package/dist/common/scheduler.js +379 -0
- package/dist/common/webhook-trigger.d.ts +22 -0
- package/dist/common/webhook-trigger.js +270 -0
- package/dist/index.d.ts +66 -0
- package/package.json +102 -0
|
@@ -0,0 +1,3285 @@
|
|
|
1
|
+
import { c as e, d as t, f as n, g as r, i, l as a, m as o, o as s, p as c, t as l, u } from "./dist-zyY--HOV.js";
|
|
2
|
+
import { i as d, n as f, r as p, t as m } from "./dist-aWSZx4q1.js";
|
|
3
|
+
import { a as ee, i as h, n as te, o as ne, r as re } from "./dist-B9OV3YTx.js";
|
|
4
|
+
import { a as g, b as _, l as ie, o as ae } from "./dist-BLk5M0uK.js";
|
|
5
|
+
import { r as oe, y as se } from "./dist-CIq6ue3I.js";
|
|
6
|
+
import { C as ce, D as le, E as ue, _ as de, a as fe, b as pe, f as me, i as he, j as v, l as ge, o as y, r as _e, s as ve, u as ye, y as b } from "./dist-CvcmLAMW.js";
|
|
7
|
+
import { t as be } from "./dist-Djd02JSy.js";
|
|
8
|
+
//#region ../../node_modules/@lezer/markdown/dist/index.js
|
|
9
|
+
var xe = class e {
|
|
10
|
+
static create(t, n, r, i, a) {
|
|
11
|
+
let o = i + (i << 8) + t + (n << 4) | 0;
|
|
12
|
+
return new e(t, n, r, o, a, [], []);
|
|
13
|
+
}
|
|
14
|
+
constructor(e, t, n, r, i, o, s) {
|
|
15
|
+
this.type = e, this.value = t, this.from = n, this.hash = r, this.end = i, this.children = o, this.positions = s, this.hashProp = [[a.contextHash, r]];
|
|
16
|
+
}
|
|
17
|
+
addChild(e, t) {
|
|
18
|
+
e.prop(a.contextHash) != this.hash && (e = new o(e.type, e.children, e.positions, e.length, this.hashProp)), this.children.push(e), this.positions.push(t);
|
|
19
|
+
}
|
|
20
|
+
toTree(e, n = this.end) {
|
|
21
|
+
let r = this.children.length - 1;
|
|
22
|
+
return r >= 0 && (n = Math.max(n, this.positions[r] + this.children[r].length + this.from)), new o(e.types[this.type], this.children, this.positions, n - this.from).balance({ makeTree: (e, n, r) => new o(t.none, e, n, r, this.hashProp) });
|
|
23
|
+
}
|
|
24
|
+
}, x;
|
|
25
|
+
(function(e) {
|
|
26
|
+
e[e.Document = 1] = "Document", e[e.CodeBlock = 2] = "CodeBlock", e[e.FencedCode = 3] = "FencedCode", e[e.Blockquote = 4] = "Blockquote", e[e.HorizontalRule = 5] = "HorizontalRule", e[e.BulletList = 6] = "BulletList", e[e.OrderedList = 7] = "OrderedList", e[e.ListItem = 8] = "ListItem", e[e.ATXHeading1 = 9] = "ATXHeading1", e[e.ATXHeading2 = 10] = "ATXHeading2", e[e.ATXHeading3 = 11] = "ATXHeading3", e[e.ATXHeading4 = 12] = "ATXHeading4", e[e.ATXHeading5 = 13] = "ATXHeading5", e[e.ATXHeading6 = 14] = "ATXHeading6", e[e.SetextHeading1 = 15] = "SetextHeading1", e[e.SetextHeading2 = 16] = "SetextHeading2", e[e.HTMLBlock = 17] = "HTMLBlock", e[e.LinkReference = 18] = "LinkReference", e[e.Paragraph = 19] = "Paragraph", e[e.CommentBlock = 20] = "CommentBlock", e[e.ProcessingInstructionBlock = 21] = "ProcessingInstructionBlock", e[e.Escape = 22] = "Escape", e[e.Entity = 23] = "Entity", e[e.HardBreak = 24] = "HardBreak", e[e.Emphasis = 25] = "Emphasis", e[e.StrongEmphasis = 26] = "StrongEmphasis", e[e.Link = 27] = "Link", e[e.Image = 28] = "Image", e[e.InlineCode = 29] = "InlineCode", e[e.HTMLTag = 30] = "HTMLTag", e[e.Comment = 31] = "Comment", e[e.ProcessingInstruction = 32] = "ProcessingInstruction", e[e.Autolink = 33] = "Autolink", e[e.HeaderMark = 34] = "HeaderMark", e[e.QuoteMark = 35] = "QuoteMark", e[e.ListMark = 36] = "ListMark", e[e.LinkMark = 37] = "LinkMark", e[e.EmphasisMark = 38] = "EmphasisMark", e[e.CodeMark = 39] = "CodeMark", e[e.CodeText = 40] = "CodeText", e[e.CodeInfo = 41] = "CodeInfo", e[e.LinkTitle = 42] = "LinkTitle", e[e.LinkLabel = 43] = "LinkLabel", e[e.URL = 44] = "URL";
|
|
27
|
+
})(x ||= {});
|
|
28
|
+
var Se = class {
|
|
29
|
+
constructor(e, t) {
|
|
30
|
+
this.start = e, this.content = t, this.marks = [], this.parsers = [];
|
|
31
|
+
}
|
|
32
|
+
}, Ce = class {
|
|
33
|
+
constructor() {
|
|
34
|
+
this.text = "", this.baseIndent = 0, this.basePos = 0, this.depth = 0, this.markers = [], this.pos = 0, this.indent = 0, this.next = -1;
|
|
35
|
+
}
|
|
36
|
+
forward() {
|
|
37
|
+
this.basePos > this.pos && this.forwardInner();
|
|
38
|
+
}
|
|
39
|
+
forwardInner() {
|
|
40
|
+
let e = this.skipSpace(this.basePos);
|
|
41
|
+
this.indent = this.countIndent(e, this.pos, this.indent), this.pos = e, this.next = e == this.text.length ? -1 : this.text.charCodeAt(e);
|
|
42
|
+
}
|
|
43
|
+
skipSpace(e) {
|
|
44
|
+
return C(this.text, e);
|
|
45
|
+
}
|
|
46
|
+
reset(e) {
|
|
47
|
+
for (this.text = e, this.baseIndent = this.basePos = this.pos = this.indent = 0, this.forwardInner(), this.depth = 1; this.markers.length;) this.markers.pop();
|
|
48
|
+
}
|
|
49
|
+
moveBase(e) {
|
|
50
|
+
this.basePos = e, this.baseIndent = this.countIndent(e, this.pos, this.indent);
|
|
51
|
+
}
|
|
52
|
+
moveBaseColumn(e) {
|
|
53
|
+
this.baseIndent = e, this.basePos = this.findColumn(e);
|
|
54
|
+
}
|
|
55
|
+
addMarker(e) {
|
|
56
|
+
this.markers.push(e);
|
|
57
|
+
}
|
|
58
|
+
countIndent(e, t = 0, n = 0) {
|
|
59
|
+
for (let r = t; r < e; r++) n += this.text.charCodeAt(r) == 9 ? 4 - n % 4 : 1;
|
|
60
|
+
return n;
|
|
61
|
+
}
|
|
62
|
+
findColumn(e) {
|
|
63
|
+
let t = 0;
|
|
64
|
+
for (let n = 0; t < this.text.length && n < e; t++) n += this.text.charCodeAt(t) == 9 ? 4 - n % 4 : 1;
|
|
65
|
+
return t;
|
|
66
|
+
}
|
|
67
|
+
scrub() {
|
|
68
|
+
if (!this.baseIndent) return this.text;
|
|
69
|
+
let e = "";
|
|
70
|
+
for (let t = 0; t < this.basePos; t++) e += " ";
|
|
71
|
+
return e + this.text.slice(this.basePos);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
function we(e, t, n) {
|
|
75
|
+
if (n.pos == n.text.length || e != t.block && n.indent >= t.stack[n.depth + 1].value + n.baseIndent) return !0;
|
|
76
|
+
if (n.indent >= n.baseIndent + 4) return !1;
|
|
77
|
+
let r = (e.type == x.OrderedList ? E : T)(n, t, !1);
|
|
78
|
+
return r > 0 && (e.type != x.BulletList || w(n, t, !1) < 0) && n.text.charCodeAt(n.pos + r - 1) == e.value;
|
|
79
|
+
}
|
|
80
|
+
var Te = {
|
|
81
|
+
[x.Blockquote](e, t, n) {
|
|
82
|
+
return n.next == 62 && (n.markers.push(N(x.QuoteMark, t.lineStart + n.pos, t.lineStart + n.pos + 1)), n.moveBase(n.pos + (S(n.text.charCodeAt(n.pos + 1)) ? 2 : 1)), e.end = t.lineStart + n.text.length, !0);
|
|
83
|
+
},
|
|
84
|
+
[x.ListItem](e, t, n) {
|
|
85
|
+
return n.indent < n.baseIndent + e.value && n.next > -1 ? !1 : (n.moveBaseColumn(n.baseIndent + e.value), !0);
|
|
86
|
+
},
|
|
87
|
+
[x.OrderedList]: we,
|
|
88
|
+
[x.BulletList]: we,
|
|
89
|
+
[x.Document]() {
|
|
90
|
+
return !0;
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
function S(e) {
|
|
94
|
+
return e == 32 || e == 9 || e == 10 || e == 13;
|
|
95
|
+
}
|
|
96
|
+
function C(e, t = 0) {
|
|
97
|
+
for (; t < e.length && S(e.charCodeAt(t));) t++;
|
|
98
|
+
return t;
|
|
99
|
+
}
|
|
100
|
+
function Ee(e, t, n) {
|
|
101
|
+
for (; t > n && S(e.charCodeAt(t - 1));) t--;
|
|
102
|
+
return t;
|
|
103
|
+
}
|
|
104
|
+
function De(e) {
|
|
105
|
+
if (e.next != 96 && e.next != 126) return -1;
|
|
106
|
+
let t = e.pos + 1;
|
|
107
|
+
for (; t < e.text.length && e.text.charCodeAt(t) == e.next;) t++;
|
|
108
|
+
if (t < e.pos + 3) return -1;
|
|
109
|
+
if (e.next == 96) {
|
|
110
|
+
for (let n = t; n < e.text.length; n++) if (e.text.charCodeAt(n) == 96) return -1;
|
|
111
|
+
}
|
|
112
|
+
return t;
|
|
113
|
+
}
|
|
114
|
+
function Oe(e) {
|
|
115
|
+
return e.next == 62 ? e.text.charCodeAt(e.pos + 1) == 32 ? 2 : 1 : -1;
|
|
116
|
+
}
|
|
117
|
+
function w(e, t, n) {
|
|
118
|
+
if (e.next != 42 && e.next != 45 && e.next != 95) return -1;
|
|
119
|
+
let r = 1;
|
|
120
|
+
for (let t = e.pos + 1; t < e.text.length; t++) {
|
|
121
|
+
let n = e.text.charCodeAt(t);
|
|
122
|
+
if (n == e.next) r++;
|
|
123
|
+
else if (!S(n)) return -1;
|
|
124
|
+
}
|
|
125
|
+
return n && e.next == 45 && je(e) > -1 && e.depth == t.stack.length && t.parser.leafBlockParsers.indexOf(Ve.SetextHeading) > -1 || r < 3 ? -1 : 1;
|
|
126
|
+
}
|
|
127
|
+
function ke(e, t) {
|
|
128
|
+
for (let n = e.stack.length - 1; n >= 0; n--) if (e.stack[n].type == t) return !0;
|
|
129
|
+
return !1;
|
|
130
|
+
}
|
|
131
|
+
function T(e, t, n) {
|
|
132
|
+
return (e.next == 45 || e.next == 43 || e.next == 42) && (e.pos == e.text.length - 1 || S(e.text.charCodeAt(e.pos + 1))) && (!n || ke(t, x.BulletList) || e.skipSpace(e.pos + 2) < e.text.length) ? 1 : -1;
|
|
133
|
+
}
|
|
134
|
+
function E(e, t, n) {
|
|
135
|
+
let r = e.pos, i = e.next;
|
|
136
|
+
for (; i >= 48 && i <= 57;) {
|
|
137
|
+
if (r++, r == e.text.length) return -1;
|
|
138
|
+
i = e.text.charCodeAt(r);
|
|
139
|
+
}
|
|
140
|
+
return r == e.pos || r > e.pos + 9 || i != 46 && i != 41 || r < e.text.length - 1 && !S(e.text.charCodeAt(r + 1)) || n && !ke(t, x.OrderedList) && (e.skipSpace(r + 1) == e.text.length || r > e.pos + 1 || e.next != 49) ? -1 : r + 1 - e.pos;
|
|
141
|
+
}
|
|
142
|
+
function Ae(e) {
|
|
143
|
+
if (e.next != 35) return -1;
|
|
144
|
+
let t = e.pos + 1;
|
|
145
|
+
for (; t < e.text.length && e.text.charCodeAt(t) == 35;) t++;
|
|
146
|
+
if (t < e.text.length && e.text.charCodeAt(t) != 32) return -1;
|
|
147
|
+
let n = t - e.pos;
|
|
148
|
+
return n > 6 ? -1 : n;
|
|
149
|
+
}
|
|
150
|
+
function je(e) {
|
|
151
|
+
if (e.next != 45 && e.next != 61 || e.indent >= e.baseIndent + 4) return -1;
|
|
152
|
+
let t = e.pos + 1;
|
|
153
|
+
for (; t < e.text.length && e.text.charCodeAt(t) == e.next;) t++;
|
|
154
|
+
let n = t;
|
|
155
|
+
for (; t < e.text.length && S(e.text.charCodeAt(t));) t++;
|
|
156
|
+
return t == e.text.length ? n : -1;
|
|
157
|
+
}
|
|
158
|
+
var Me = /^[ \t]*$/, Ne = /-->/, Pe = /\?>/, Fe = [
|
|
159
|
+
[/^<(?:script|pre|style)(?:\s|>|$)/i, /<\/(?:script|pre|style)>/i],
|
|
160
|
+
[/^\s*<!--/, Ne],
|
|
161
|
+
[/^\s*<\?/, Pe],
|
|
162
|
+
[/^\s*<![A-Z]/, />/],
|
|
163
|
+
[/^\s*<!\[CDATA\[/, /\]\]>/],
|
|
164
|
+
[/^\s*<\/?(?: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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i, Me],
|
|
165
|
+
[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i, Me]
|
|
166
|
+
];
|
|
167
|
+
function Ie(e, t, n) {
|
|
168
|
+
if (e.next != 60) return -1;
|
|
169
|
+
let r = e.text.slice(e.pos);
|
|
170
|
+
for (let e = 0, t = Fe.length - +!!n; e < t; e++) if (Fe[e][0].test(r)) return e;
|
|
171
|
+
return -1;
|
|
172
|
+
}
|
|
173
|
+
function Le(e, t) {
|
|
174
|
+
let n = e.countIndent(t, e.pos, e.indent), r = e.skipSpace(t), i = e.countIndent(r, t, n);
|
|
175
|
+
return i >= n + 5 || r == e.text.length ? n + 1 : i;
|
|
176
|
+
}
|
|
177
|
+
function D(e, t, n) {
|
|
178
|
+
let r = e.length - 1;
|
|
179
|
+
r >= 0 && e[r].to == t && e[r].type == x.CodeText ? e[r].to = n : e.push(N(x.CodeText, t, n));
|
|
180
|
+
}
|
|
181
|
+
var O = {
|
|
182
|
+
LinkReference: void 0,
|
|
183
|
+
IndentedCode(e, t) {
|
|
184
|
+
let n = t.baseIndent + 4;
|
|
185
|
+
if (t.indent < n) return !1;
|
|
186
|
+
let r = t.findColumn(n), i = e.lineStart + r, a = e.lineStart + t.text.length, o = [], s = [];
|
|
187
|
+
for (D(o, i, a); e.nextLine() && t.depth >= e.stack.length;) if (t.pos == t.text.length) {
|
|
188
|
+
D(s, e.lineStart - 1, e.lineStart);
|
|
189
|
+
for (let e of t.markers) s.push(e);
|
|
190
|
+
} else if (t.indent < n) break;
|
|
191
|
+
else {
|
|
192
|
+
if (s.length) {
|
|
193
|
+
for (let e of s) e.type == x.CodeText ? D(o, e.from, e.to) : o.push(e);
|
|
194
|
+
s = [];
|
|
195
|
+
}
|
|
196
|
+
D(o, e.lineStart - 1, e.lineStart);
|
|
197
|
+
for (let e of t.markers) o.push(e);
|
|
198
|
+
a = e.lineStart + t.text.length;
|
|
199
|
+
let n = e.lineStart + t.findColumn(t.baseIndent + 4);
|
|
200
|
+
n < a && D(o, n, a);
|
|
201
|
+
}
|
|
202
|
+
return s.length && (s = s.filter((e) => e.type != x.CodeText), s.length && (t.markers = s.concat(t.markers))), e.addNode(e.buffer.writeElements(o, -i).finish(x.CodeBlock, a - i), i), !0;
|
|
203
|
+
},
|
|
204
|
+
FencedCode(e, t) {
|
|
205
|
+
let n = De(t);
|
|
206
|
+
if (n < 0) return !1;
|
|
207
|
+
let r = e.lineStart + t.pos, i = t.next, a = n - t.pos, o = t.skipSpace(n), s = Ee(t.text, t.text.length, o), c = [N(x.CodeMark, r, r + a)];
|
|
208
|
+
o < s && c.push(N(x.CodeInfo, e.lineStart + o, e.lineStart + s));
|
|
209
|
+
for (let n = !0, r = !0, o = !1; e.nextLine() && t.depth >= e.stack.length; n = !1) {
|
|
210
|
+
let s = t.pos;
|
|
211
|
+
if (t.indent - t.baseIndent < 4) for (; s < t.text.length && t.text.charCodeAt(s) == i;) s++;
|
|
212
|
+
if (s - t.pos >= a && t.skipSpace(s) == t.text.length) {
|
|
213
|
+
for (let e of t.markers) c.push(e);
|
|
214
|
+
r && o && D(c, e.lineStart - 1, e.lineStart), c.push(N(x.CodeMark, e.lineStart + t.pos, e.lineStart + s)), e.nextLine();
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
{
|
|
218
|
+
o = !0, n || (D(c, e.lineStart - 1, e.lineStart), r = !1);
|
|
219
|
+
for (let e of t.markers) c.push(e);
|
|
220
|
+
let i = e.lineStart + t.basePos, a = e.lineStart + t.text.length;
|
|
221
|
+
i < a && (D(c, i, a), r = !1);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
return e.addNode(e.buffer.writeElements(c, -r).finish(x.FencedCode, e.prevLineEnd() - r), r), !0;
|
|
225
|
+
},
|
|
226
|
+
Blockquote(e, t) {
|
|
227
|
+
let n = Oe(t);
|
|
228
|
+
return n < 0 ? !1 : (e.startContext(x.Blockquote, t.pos), e.addNode(x.QuoteMark, e.lineStart + t.pos, e.lineStart + t.pos + 1), t.moveBase(t.pos + n), null);
|
|
229
|
+
},
|
|
230
|
+
HorizontalRule(e, t) {
|
|
231
|
+
if (w(t, e, !1) < 0) return !1;
|
|
232
|
+
let n = e.lineStart + t.pos;
|
|
233
|
+
return e.nextLine(), e.addNode(x.HorizontalRule, n), !0;
|
|
234
|
+
},
|
|
235
|
+
BulletList(e, t) {
|
|
236
|
+
let n = T(t, e, !1);
|
|
237
|
+
if (n < 0) return !1;
|
|
238
|
+
e.block.type != x.BulletList && e.startContext(x.BulletList, t.basePos, t.next);
|
|
239
|
+
let r = Le(t, t.pos + 1);
|
|
240
|
+
return e.startContext(x.ListItem, t.basePos, r - t.baseIndent), e.addNode(x.ListMark, e.lineStart + t.pos, e.lineStart + t.pos + n), t.moveBaseColumn(r), null;
|
|
241
|
+
},
|
|
242
|
+
OrderedList(e, t) {
|
|
243
|
+
let n = E(t, e, !1);
|
|
244
|
+
if (n < 0) return !1;
|
|
245
|
+
e.block.type != x.OrderedList && e.startContext(x.OrderedList, t.basePos, t.text.charCodeAt(t.pos + n - 1));
|
|
246
|
+
let r = Le(t, t.pos + n);
|
|
247
|
+
return e.startContext(x.ListItem, t.basePos, r - t.baseIndent), e.addNode(x.ListMark, e.lineStart + t.pos, e.lineStart + t.pos + n), t.moveBaseColumn(r), null;
|
|
248
|
+
},
|
|
249
|
+
ATXHeading(e, t) {
|
|
250
|
+
let n = Ae(t);
|
|
251
|
+
if (n < 0) return !1;
|
|
252
|
+
let r = t.pos, i = e.lineStart + r, a = Ee(t.text, t.text.length, r), o = a;
|
|
253
|
+
for (; o > r && t.text.charCodeAt(o - 1) == t.next;) o--;
|
|
254
|
+
(o == a || o == r || !S(t.text.charCodeAt(o - 1))) && (o = t.text.length);
|
|
255
|
+
let s = e.buffer.write(x.HeaderMark, 0, n).writeElements(e.parser.parseInline(t.text.slice(r + n + 1, o), i + n + 1), -i);
|
|
256
|
+
o < t.text.length && s.write(x.HeaderMark, o - r, a - r);
|
|
257
|
+
let c = s.finish(x.ATXHeading1 - 1 + n, t.text.length - r);
|
|
258
|
+
return e.nextLine(), e.addNode(c, i), !0;
|
|
259
|
+
},
|
|
260
|
+
HTMLBlock(e, t) {
|
|
261
|
+
let n = Ie(t, e, !1);
|
|
262
|
+
if (n < 0) return !1;
|
|
263
|
+
let r = e.lineStart + t.pos, i = Fe[n][1], a = [], o = i != Me;
|
|
264
|
+
for (; !i.test(t.text) && e.nextLine();) {
|
|
265
|
+
if (t.depth < e.stack.length) {
|
|
266
|
+
o = !1;
|
|
267
|
+
break;
|
|
268
|
+
}
|
|
269
|
+
for (let e of t.markers) a.push(e);
|
|
270
|
+
}
|
|
271
|
+
o && e.nextLine();
|
|
272
|
+
let s = i == Ne ? x.CommentBlock : i == Pe ? x.ProcessingInstructionBlock : x.HTMLBlock, c = e.prevLineEnd();
|
|
273
|
+
return e.addNode(e.buffer.writeElements(a, -r).finish(s, c - r), r), !0;
|
|
274
|
+
},
|
|
275
|
+
SetextHeading: void 0
|
|
276
|
+
}, Re = class {
|
|
277
|
+
constructor(e) {
|
|
278
|
+
this.stage = 0, this.elts = [], this.pos = 0, this.start = e.start, this.advance(e.content);
|
|
279
|
+
}
|
|
280
|
+
nextLine(e, t, n) {
|
|
281
|
+
if (this.stage == -1) return !1;
|
|
282
|
+
let r = n.content + "\n" + t.scrub(), i = this.advance(r);
|
|
283
|
+
return i > -1 && i < r.length && this.complete(e, n, i);
|
|
284
|
+
}
|
|
285
|
+
finish(e, t) {
|
|
286
|
+
return (this.stage == 2 || this.stage == 3) && C(t.content, this.pos) == t.content.length && this.complete(e, t, t.content.length);
|
|
287
|
+
}
|
|
288
|
+
complete(e, t, n) {
|
|
289
|
+
return e.addLeafElement(t, N(x.LinkReference, this.start, this.start + n, this.elts)), !0;
|
|
290
|
+
}
|
|
291
|
+
nextStage(e) {
|
|
292
|
+
return e ? (this.pos = e.to - this.start, this.elts.push(e), this.stage++, !0) : (e === !1 && (this.stage = -1), !1);
|
|
293
|
+
}
|
|
294
|
+
advance(e) {
|
|
295
|
+
for (;;) if (this.stage == -1) return -1;
|
|
296
|
+
else if (this.stage == 0) {
|
|
297
|
+
if (!this.nextStage(it(e, this.pos, this.start, !0))) return -1;
|
|
298
|
+
if (e.charCodeAt(this.pos) != 58) return this.stage = -1;
|
|
299
|
+
this.elts.push(N(x.LinkMark, this.pos + this.start, this.pos + this.start + 1)), this.pos++;
|
|
300
|
+
} else if (this.stage == 1) {
|
|
301
|
+
if (!this.nextStage(nt(e, C(e, this.pos), this.start))) return -1;
|
|
302
|
+
} else if (this.stage == 2) {
|
|
303
|
+
let t = C(e, this.pos), n = 0;
|
|
304
|
+
if (t > this.pos) {
|
|
305
|
+
let r = rt(e, t, this.start);
|
|
306
|
+
if (r) {
|
|
307
|
+
let t = ze(e, r.to - this.start);
|
|
308
|
+
t > 0 && (this.nextStage(r), n = t);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
return n ||= ze(e, this.pos), n > 0 && n < e.length ? n : -1;
|
|
312
|
+
} else return ze(e, this.pos);
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
function ze(e, t) {
|
|
316
|
+
for (; t < e.length; t++) {
|
|
317
|
+
let n = e.charCodeAt(t);
|
|
318
|
+
if (n == 10) break;
|
|
319
|
+
if (!S(n)) return -1;
|
|
320
|
+
}
|
|
321
|
+
return t;
|
|
322
|
+
}
|
|
323
|
+
var Be = class {
|
|
324
|
+
nextLine(e, t, n) {
|
|
325
|
+
let r = t.depth < e.stack.length ? -1 : je(t), i = t.next;
|
|
326
|
+
if (r < 0) return !1;
|
|
327
|
+
let a = N(x.HeaderMark, e.lineStart + t.pos, e.lineStart + r);
|
|
328
|
+
return e.nextLine(), e.addLeafElement(n, N(i == 61 ? x.SetextHeading1 : x.SetextHeading2, n.start, e.prevLineEnd(), [...e.parser.parseInline(n.content, n.start), a])), !0;
|
|
329
|
+
}
|
|
330
|
+
finish() {
|
|
331
|
+
return !1;
|
|
332
|
+
}
|
|
333
|
+
}, Ve = {
|
|
334
|
+
LinkReference(e, t) {
|
|
335
|
+
return t.content.charCodeAt(0) == 91 ? new Re(t) : null;
|
|
336
|
+
},
|
|
337
|
+
SetextHeading() {
|
|
338
|
+
return new Be();
|
|
339
|
+
}
|
|
340
|
+
}, He = [
|
|
341
|
+
(e, t) => Ae(t) >= 0,
|
|
342
|
+
(e, t) => De(t) >= 0,
|
|
343
|
+
(e, t) => Oe(t) >= 0,
|
|
344
|
+
(e, t) => T(t, e, !0) >= 0,
|
|
345
|
+
(e, t) => E(t, e, !0) >= 0,
|
|
346
|
+
(e, t) => w(t, e, !0) >= 0,
|
|
347
|
+
(e, t) => Ie(t, e, !0) >= 0
|
|
348
|
+
], Ue = {
|
|
349
|
+
text: "",
|
|
350
|
+
end: 0
|
|
351
|
+
}, We = class {
|
|
352
|
+
constructor(e, t, n, r) {
|
|
353
|
+
this.parser = e, this.input = t, this.ranges = r, this.line = new Ce(), this.atEnd = !1, this.reusePlaceholders = /* @__PURE__ */ new Map(), this.stoppedAt = null, this.rangeI = 0, this.to = r[r.length - 1].to, this.lineStart = this.absoluteLineStart = this.absoluteLineEnd = r[0].from, this.block = xe.create(x.Document, 0, this.lineStart, 0, 0), this.stack = [this.block], this.fragments = n.length ? new ct(n, t) : null, this.readLine();
|
|
354
|
+
}
|
|
355
|
+
get parsedPos() {
|
|
356
|
+
return this.absoluteLineStart;
|
|
357
|
+
}
|
|
358
|
+
advance() {
|
|
359
|
+
if (this.stoppedAt != null && this.absoluteLineStart > this.stoppedAt) return this.finish();
|
|
360
|
+
let { line: e } = this;
|
|
361
|
+
for (;;) {
|
|
362
|
+
for (let t = 0;;) {
|
|
363
|
+
let n = e.depth < this.stack.length ? this.stack[this.stack.length - 1] : null;
|
|
364
|
+
for (; t < e.markers.length && (!n || e.markers[t].from < n.end);) {
|
|
365
|
+
let n = e.markers[t++];
|
|
366
|
+
this.addNode(n.type, n.from, n.to);
|
|
367
|
+
}
|
|
368
|
+
if (!n) break;
|
|
369
|
+
this.finishContext();
|
|
370
|
+
}
|
|
371
|
+
if (e.pos < e.text.length) break;
|
|
372
|
+
if (!this.nextLine()) return this.finish();
|
|
373
|
+
}
|
|
374
|
+
if (this.fragments && this.reuseFragment(e.basePos)) return null;
|
|
375
|
+
start: for (;;) {
|
|
376
|
+
for (let t of this.parser.blockParsers) if (t) {
|
|
377
|
+
let n = t(this, e);
|
|
378
|
+
if (n != 0) {
|
|
379
|
+
if (n == 1) return null;
|
|
380
|
+
e.forward();
|
|
381
|
+
continue start;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
break;
|
|
385
|
+
}
|
|
386
|
+
if (e.pos == e.text.length) return this.nextLine() ? null : this.finish();
|
|
387
|
+
let t = new Se(this.lineStart + e.pos, e.text.slice(e.pos));
|
|
388
|
+
for (let e of this.parser.leafBlockParsers) if (e) {
|
|
389
|
+
let n = e(this, t);
|
|
390
|
+
n && t.parsers.push(n);
|
|
391
|
+
}
|
|
392
|
+
lines: for (; this.nextLine() && e.pos != e.text.length;) {
|
|
393
|
+
if (e.indent < e.baseIndent + 4) {
|
|
394
|
+
for (let n of this.parser.endLeafBlock) if (n(this, e, t)) break lines;
|
|
395
|
+
}
|
|
396
|
+
for (let n of t.parsers) if (n.nextLine(this, e, t)) return null;
|
|
397
|
+
t.content += "\n" + e.scrub();
|
|
398
|
+
for (let n of e.markers) t.marks.push(n);
|
|
399
|
+
}
|
|
400
|
+
return this.finishLeaf(t), null;
|
|
401
|
+
}
|
|
402
|
+
stopAt(e) {
|
|
403
|
+
if (this.stoppedAt != null && this.stoppedAt < e) throw RangeError("Can't move stoppedAt forward");
|
|
404
|
+
this.stoppedAt = e;
|
|
405
|
+
}
|
|
406
|
+
reuseFragment(e) {
|
|
407
|
+
if (!this.fragments.moveTo(this.absoluteLineStart + e, this.absoluteLineStart) || !this.fragments.matches(this.block.hash)) return !1;
|
|
408
|
+
let t = this.fragments.takeNodes(this);
|
|
409
|
+
return t ? (this.absoluteLineStart += t, this.lineStart = lt(this.absoluteLineStart, this.ranges), this.moveRangeI(), this.absoluteLineStart < this.to ? (this.lineStart++, this.absoluteLineStart++, this.readLine()) : (this.atEnd = !0, this.readLine()), !0) : !1;
|
|
410
|
+
}
|
|
411
|
+
get depth() {
|
|
412
|
+
return this.stack.length;
|
|
413
|
+
}
|
|
414
|
+
parentType(e = this.depth - 1) {
|
|
415
|
+
return this.parser.nodeSet.types[this.stack[e].type];
|
|
416
|
+
}
|
|
417
|
+
nextLine() {
|
|
418
|
+
return this.lineStart += this.line.text.length, this.absoluteLineEnd >= this.to ? (this.absoluteLineStart = this.absoluteLineEnd, this.atEnd = !0, this.readLine(), !1) : (this.lineStart++, this.absoluteLineStart = this.absoluteLineEnd + 1, this.moveRangeI(), this.readLine(), !0);
|
|
419
|
+
}
|
|
420
|
+
peekLine() {
|
|
421
|
+
return this.scanLine(this.absoluteLineEnd + 1).text;
|
|
422
|
+
}
|
|
423
|
+
moveRangeI() {
|
|
424
|
+
for (; this.rangeI < this.ranges.length - 1 && this.absoluteLineStart >= this.ranges[this.rangeI].to;) this.rangeI++, this.absoluteLineStart = Math.max(this.absoluteLineStart, this.ranges[this.rangeI].from);
|
|
425
|
+
}
|
|
426
|
+
scanLine(e) {
|
|
427
|
+
let t = Ue;
|
|
428
|
+
if (t.end = e, e >= this.to) t.text = "";
|
|
429
|
+
else if (t.text = this.lineChunkAt(e), t.end += t.text.length, this.ranges.length > 1) {
|
|
430
|
+
let e = this.absoluteLineStart, n = this.rangeI;
|
|
431
|
+
for (; this.ranges[n].to < t.end;) {
|
|
432
|
+
n++;
|
|
433
|
+
let r = this.ranges[n].from, i = this.lineChunkAt(r);
|
|
434
|
+
t.end = r + i.length, t.text = t.text.slice(0, this.ranges[n - 1].to - e) + i, e = t.end - t.text.length;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
return t;
|
|
438
|
+
}
|
|
439
|
+
readLine() {
|
|
440
|
+
let { line: e } = this, { text: t, end: n } = this.scanLine(this.absoluteLineStart);
|
|
441
|
+
for (this.absoluteLineEnd = n, e.reset(t); e.depth < this.stack.length; e.depth++) {
|
|
442
|
+
let t = this.stack[e.depth], n = this.parser.skipContextMarkup[t.type];
|
|
443
|
+
if (!n) throw Error("Unhandled block context " + x[t.type]);
|
|
444
|
+
let r = this.line.markers.length;
|
|
445
|
+
if (!n(t, this, e)) {
|
|
446
|
+
this.line.markers.length > r && (t.end = this.line.markers[this.line.markers.length - 1].to), e.forward();
|
|
447
|
+
break;
|
|
448
|
+
}
|
|
449
|
+
e.forward();
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
lineChunkAt(e) {
|
|
453
|
+
let t = this.input.chunk(e), n;
|
|
454
|
+
if (this.input.lineChunks) n = t == "\n" ? "" : t;
|
|
455
|
+
else {
|
|
456
|
+
let e = t.indexOf("\n");
|
|
457
|
+
n = e < 0 ? t : t.slice(0, e);
|
|
458
|
+
}
|
|
459
|
+
return e + n.length > this.to ? n.slice(0, this.to - e) : n;
|
|
460
|
+
}
|
|
461
|
+
prevLineEnd() {
|
|
462
|
+
return this.atEnd ? this.lineStart : this.lineStart - 1;
|
|
463
|
+
}
|
|
464
|
+
startContext(e, t, n = 0) {
|
|
465
|
+
this.block = xe.create(e, n, this.lineStart + t, this.block.hash, this.lineStart + this.line.text.length), this.stack.push(this.block);
|
|
466
|
+
}
|
|
467
|
+
startComposite(e, t, n = 0) {
|
|
468
|
+
this.startContext(this.parser.getNodeType(e), t, n);
|
|
469
|
+
}
|
|
470
|
+
addNode(e, t, n) {
|
|
471
|
+
typeof e == "number" && (e = new o(this.parser.nodeSet.types[e], j, j, (n ?? this.prevLineEnd()) - t)), this.block.addChild(e, t - this.block.from);
|
|
472
|
+
}
|
|
473
|
+
addElement(e) {
|
|
474
|
+
this.block.addChild(e.toTree(this.parser.nodeSet), e.from - this.block.from);
|
|
475
|
+
}
|
|
476
|
+
addLeafElement(e, t) {
|
|
477
|
+
this.addNode(this.buffer.writeElements(ot(t.children, e.marks), -t.from).finish(t.type, t.to - t.from), t.from);
|
|
478
|
+
}
|
|
479
|
+
finishContext() {
|
|
480
|
+
let e = this.stack.pop(), t = this.stack[this.stack.length - 1];
|
|
481
|
+
t.addChild(e.toTree(this.parser.nodeSet), e.from - t.from), this.block = t;
|
|
482
|
+
}
|
|
483
|
+
finish() {
|
|
484
|
+
for (; this.stack.length > 1;) this.finishContext();
|
|
485
|
+
return this.addGaps(this.block.toTree(this.parser.nodeSet, this.lineStart));
|
|
486
|
+
}
|
|
487
|
+
addGaps(e) {
|
|
488
|
+
return this.ranges.length > 1 ? Ge(this.ranges, 0, e.topNode, this.ranges[0].from, this.reusePlaceholders) : e;
|
|
489
|
+
}
|
|
490
|
+
finishLeaf(e) {
|
|
491
|
+
for (let t of e.parsers) if (t.finish(this, e)) return;
|
|
492
|
+
let t = ot(this.parser.parseInline(e.content, e.start), e.marks);
|
|
493
|
+
this.addNode(this.buffer.writeElements(t, -e.start).finish(x.Paragraph, e.content.length), e.start);
|
|
494
|
+
}
|
|
495
|
+
elt(e, t, n, r) {
|
|
496
|
+
return typeof e == "string" ? N(this.parser.getNodeType(e), t, n, r) : new Xe(e, t);
|
|
497
|
+
}
|
|
498
|
+
get buffer() {
|
|
499
|
+
return new Ye(this.parser.nodeSet);
|
|
500
|
+
}
|
|
501
|
+
};
|
|
502
|
+
function Ge(e, t, n, r, i) {
|
|
503
|
+
let a = e[t].to, s = [], c = [], l = n.from + r;
|
|
504
|
+
function u(n, i) {
|
|
505
|
+
for (; i ? n >= a : n > a;) {
|
|
506
|
+
let i = e[t + 1].from - a;
|
|
507
|
+
r += i, n += i, t++, a = e[t].to;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
for (let o = n.firstChild; o; o = o.nextSibling) {
|
|
511
|
+
u(o.from + r, !0);
|
|
512
|
+
let n = o.from + r, d, f = i.get(o.tree);
|
|
513
|
+
f ? d = f : o.to + r > a ? (d = Ge(e, t, o, r, i), u(o.to + r, !1)) : d = o.toTree(), s.push(d), c.push(n - l);
|
|
514
|
+
}
|
|
515
|
+
return u(n.to + r, !1), new o(n.type, s, c, n.to + r - l, n.tree ? n.tree.propValues : void 0);
|
|
516
|
+
}
|
|
517
|
+
var Ke = class e extends c {
|
|
518
|
+
constructor(e, t, n, r, i, a, o, s, c) {
|
|
519
|
+
super(), this.nodeSet = e, this.blockParsers = t, this.leafBlockParsers = n, this.blockNames = r, this.endLeafBlock = i, this.skipContextMarkup = a, this.inlineParsers = o, this.inlineNames = s, this.wrappers = c, this.nodeTypes = Object.create(null);
|
|
520
|
+
for (let t of e.types) this.nodeTypes[t.name] = t.id;
|
|
521
|
+
}
|
|
522
|
+
createParse(e, t, n) {
|
|
523
|
+
let r = new We(this, e, t, n);
|
|
524
|
+
for (let i of this.wrappers) r = i(r, e, t, n);
|
|
525
|
+
return r;
|
|
526
|
+
}
|
|
527
|
+
configure(n) {
|
|
528
|
+
let r = qe(n);
|
|
529
|
+
if (!r) return this;
|
|
530
|
+
let { nodeSet: o, skipContextMarkup: s } = this, c = this.blockParsers.slice(), d = this.leafBlockParsers.slice(), f = this.blockNames.slice(), p = this.inlineParsers.slice(), m = this.inlineNames.slice(), ee = this.endLeafBlock.slice(), h = this.wrappers;
|
|
531
|
+
if (k(r.defineNodes)) {
|
|
532
|
+
s = Object.assign({}, s);
|
|
533
|
+
let e = o.types.slice(), n;
|
|
534
|
+
for (let i of r.defineNodes) {
|
|
535
|
+
let { name: r, block: o, composite: c, style: u } = typeof i == "string" ? { name: i } : i;
|
|
536
|
+
if (e.some((e) => e.name == r)) continue;
|
|
537
|
+
c && (s[e.length] = (e, t, n) => c(t, n, e.value));
|
|
538
|
+
let d = e.length, f = c ? ["Block", "BlockContext"] : o ? d >= x.ATXHeading1 && d <= x.SetextHeading2 ? [
|
|
539
|
+
"Block",
|
|
540
|
+
"LeafBlock",
|
|
541
|
+
"Heading"
|
|
542
|
+
] : ["Block", "LeafBlock"] : void 0;
|
|
543
|
+
e.push(t.define({
|
|
544
|
+
id: d,
|
|
545
|
+
name: r,
|
|
546
|
+
props: f && [[a.group, f]]
|
|
547
|
+
})), u && (n ||= {}, Array.isArray(u) || u instanceof l ? n[r] = u : Object.assign(n, u));
|
|
548
|
+
}
|
|
549
|
+
o = new u(e), n && (o = o.extend(i(n)));
|
|
550
|
+
}
|
|
551
|
+
if (k(r.props) && (o = o.extend(...r.props)), k(r.remove)) for (let e of r.remove) {
|
|
552
|
+
let t = this.blockNames.indexOf(e), n = this.inlineNames.indexOf(e);
|
|
553
|
+
t > -1 && (c[t] = d[t] = void 0), n > -1 && (p[n] = void 0);
|
|
554
|
+
}
|
|
555
|
+
if (k(r.parseBlock)) for (let e of r.parseBlock) {
|
|
556
|
+
let t = f.indexOf(e.name);
|
|
557
|
+
if (t > -1) c[t] = e.parse, d[t] = e.leaf;
|
|
558
|
+
else {
|
|
559
|
+
let t = e.before ? A(f, e.before) : e.after ? A(f, e.after) + 1 : f.length - 1;
|
|
560
|
+
c.splice(t, 0, e.parse), d.splice(t, 0, e.leaf), f.splice(t, 0, e.name);
|
|
561
|
+
}
|
|
562
|
+
e.endLeaf && ee.push(e.endLeaf);
|
|
563
|
+
}
|
|
564
|
+
if (k(r.parseInline)) for (let e of r.parseInline) {
|
|
565
|
+
let t = m.indexOf(e.name);
|
|
566
|
+
if (t > -1) p[t] = e.parse;
|
|
567
|
+
else {
|
|
568
|
+
let t = e.before ? A(m, e.before) : e.after ? A(m, e.after) + 1 : m.length - 1;
|
|
569
|
+
p.splice(t, 0, e.parse), m.splice(t, 0, e.name);
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
return r.wrap && (h = h.concat(r.wrap)), new e(o, c, d, f, ee, s, p, m, h);
|
|
573
|
+
}
|
|
574
|
+
getNodeType(e) {
|
|
575
|
+
let t = this.nodeTypes[e];
|
|
576
|
+
if (t == null) throw RangeError(`Unknown node type '${e}'`);
|
|
577
|
+
return t;
|
|
578
|
+
}
|
|
579
|
+
parseInline(e, t) {
|
|
580
|
+
let n = new at(this, e, t);
|
|
581
|
+
outer: for (let e = t; e < n.end;) {
|
|
582
|
+
let t = n.char(e);
|
|
583
|
+
for (let r of this.inlineParsers) if (r) {
|
|
584
|
+
let i = r(n, t, e);
|
|
585
|
+
if (i >= 0) {
|
|
586
|
+
e = i;
|
|
587
|
+
continue outer;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
e++;
|
|
591
|
+
}
|
|
592
|
+
return n.resolveMarkers(0);
|
|
593
|
+
}
|
|
594
|
+
};
|
|
595
|
+
function k(e) {
|
|
596
|
+
return e != null && e.length > 0;
|
|
597
|
+
}
|
|
598
|
+
function qe(e) {
|
|
599
|
+
if (!Array.isArray(e)) return e;
|
|
600
|
+
if (e.length == 0) return null;
|
|
601
|
+
let t = qe(e[0]);
|
|
602
|
+
if (e.length == 1) return t;
|
|
603
|
+
let n = qe(e.slice(1));
|
|
604
|
+
if (!n || !t) return t || n;
|
|
605
|
+
let r = (e, t) => (e || j).concat(t || j), i = t.wrap, a = n.wrap;
|
|
606
|
+
return {
|
|
607
|
+
props: r(t.props, n.props),
|
|
608
|
+
defineNodes: r(t.defineNodes, n.defineNodes),
|
|
609
|
+
parseBlock: r(t.parseBlock, n.parseBlock),
|
|
610
|
+
parseInline: r(t.parseInline, n.parseInline),
|
|
611
|
+
remove: r(t.remove, n.remove),
|
|
612
|
+
wrap: i ? a ? (e, t, n, r) => i(a(e, t, n, r), t, n, r) : i : a
|
|
613
|
+
};
|
|
614
|
+
}
|
|
615
|
+
function A(e, t) {
|
|
616
|
+
let n = e.indexOf(t);
|
|
617
|
+
if (n < 0) throw RangeError(`Position specified relative to unknown parser ${t}`);
|
|
618
|
+
return n;
|
|
619
|
+
}
|
|
620
|
+
var Je = [t.none];
|
|
621
|
+
for (let e = 1, n; n = x[e]; e++) Je[e] = t.define({
|
|
622
|
+
id: e,
|
|
623
|
+
name: n,
|
|
624
|
+
props: e >= x.Escape ? [] : [[a.group, e in Te ? ["Block", "BlockContext"] : ["Block", "LeafBlock"]]],
|
|
625
|
+
top: n == "Document"
|
|
626
|
+
});
|
|
627
|
+
var j = [], Ye = class {
|
|
628
|
+
constructor(e) {
|
|
629
|
+
this.nodeSet = e, this.content = [], this.nodes = [];
|
|
630
|
+
}
|
|
631
|
+
write(e, t, n, r = 0) {
|
|
632
|
+
return this.content.push(e, t, n, 4 + r * 4), this;
|
|
633
|
+
}
|
|
634
|
+
writeElements(e, t = 0) {
|
|
635
|
+
for (let n of e) n.writeTo(this, t);
|
|
636
|
+
return this;
|
|
637
|
+
}
|
|
638
|
+
finish(e, t) {
|
|
639
|
+
return o.build({
|
|
640
|
+
buffer: this.content,
|
|
641
|
+
nodeSet: this.nodeSet,
|
|
642
|
+
reused: this.nodes,
|
|
643
|
+
topID: e,
|
|
644
|
+
length: t
|
|
645
|
+
});
|
|
646
|
+
}
|
|
647
|
+
}, M = class {
|
|
648
|
+
constructor(e, t, n, r = j) {
|
|
649
|
+
this.type = e, this.from = t, this.to = n, this.children = r;
|
|
650
|
+
}
|
|
651
|
+
writeTo(e, t) {
|
|
652
|
+
let n = e.content.length;
|
|
653
|
+
e.writeElements(this.children, t), e.content.push(this.type, this.from + t, this.to + t, e.content.length + 4 - n);
|
|
654
|
+
}
|
|
655
|
+
toTree(e) {
|
|
656
|
+
return new Ye(e).writeElements(this.children, -this.from).finish(this.type, this.to - this.from);
|
|
657
|
+
}
|
|
658
|
+
}, Xe = class {
|
|
659
|
+
constructor(e, t) {
|
|
660
|
+
this.tree = e, this.from = t;
|
|
661
|
+
}
|
|
662
|
+
get to() {
|
|
663
|
+
return this.from + this.tree.length;
|
|
664
|
+
}
|
|
665
|
+
get type() {
|
|
666
|
+
return this.tree.type.id;
|
|
667
|
+
}
|
|
668
|
+
get children() {
|
|
669
|
+
return j;
|
|
670
|
+
}
|
|
671
|
+
writeTo(e, t) {
|
|
672
|
+
e.nodes.push(this.tree), e.content.push(e.nodes.length - 1, this.from + t, this.to + t, -1);
|
|
673
|
+
}
|
|
674
|
+
toTree() {
|
|
675
|
+
return this.tree;
|
|
676
|
+
}
|
|
677
|
+
};
|
|
678
|
+
function N(e, t, n, r) {
|
|
679
|
+
return new M(e, t, n, r);
|
|
680
|
+
}
|
|
681
|
+
var Ze = {
|
|
682
|
+
resolve: "Emphasis",
|
|
683
|
+
mark: "EmphasisMark"
|
|
684
|
+
}, Qe = {
|
|
685
|
+
resolve: "Emphasis",
|
|
686
|
+
mark: "EmphasisMark"
|
|
687
|
+
}, P = {}, F = {}, I = class {
|
|
688
|
+
constructor(e, t, n, r) {
|
|
689
|
+
this.type = e, this.from = t, this.to = n, this.side = r;
|
|
690
|
+
}
|
|
691
|
+
}, $e = "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~", L = /[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;
|
|
692
|
+
try {
|
|
693
|
+
L = /* @__PURE__ */ RegExp("[\\p{S}|\\p{P}]", "u");
|
|
694
|
+
} catch {}
|
|
695
|
+
var et = {
|
|
696
|
+
Escape(e, t, n) {
|
|
697
|
+
if (t != 92 || n == e.end - 1) return -1;
|
|
698
|
+
let r = e.char(n + 1);
|
|
699
|
+
for (let t = 0; t < 32; t++) if ($e.charCodeAt(t) == r) return e.append(N(x.Escape, n, n + 2));
|
|
700
|
+
return -1;
|
|
701
|
+
},
|
|
702
|
+
Entity(e, t, n) {
|
|
703
|
+
if (t != 38) return -1;
|
|
704
|
+
let r = /^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(e.slice(n + 1, n + 31));
|
|
705
|
+
return r ? e.append(N(x.Entity, n, n + 1 + r[0].length)) : -1;
|
|
706
|
+
},
|
|
707
|
+
InlineCode(e, t, n) {
|
|
708
|
+
if (t != 96 || n && e.char(n - 1) == 96) return -1;
|
|
709
|
+
let r = n + 1;
|
|
710
|
+
for (; r < e.end && e.char(r) == 96;) r++;
|
|
711
|
+
let i = r - n, a = 0;
|
|
712
|
+
for (; r < e.end; r++) if (e.char(r) == 96) {
|
|
713
|
+
if (a++, a == i && e.char(r + 1) != 96) return e.append(N(x.InlineCode, n, r + 1, [N(x.CodeMark, n, n + i), N(x.CodeMark, r + 1 - i, r + 1)]));
|
|
714
|
+
} else a = 0;
|
|
715
|
+
return -1;
|
|
716
|
+
},
|
|
717
|
+
HTMLTag(e, t, n) {
|
|
718
|
+
if (t != 60 || n == e.end - 1) return -1;
|
|
719
|
+
let r = e.slice(n + 1, e.end), i = /^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(r);
|
|
720
|
+
if (i) return e.append(N(x.Autolink, n, n + 1 + i[0].length, [
|
|
721
|
+
N(x.LinkMark, n, n + 1),
|
|
722
|
+
N(x.URL, n + 1, n + i[0].length),
|
|
723
|
+
N(x.LinkMark, n + i[0].length, n + 1 + i[0].length)
|
|
724
|
+
]));
|
|
725
|
+
let a = /^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);
|
|
726
|
+
if (a) return e.append(N(x.Comment, n, n + 1 + a[0].length));
|
|
727
|
+
let o = /^\?[^]*?\?>/.exec(r);
|
|
728
|
+
if (o) return e.append(N(x.ProcessingInstruction, n, n + 1 + o[0].length));
|
|
729
|
+
let s = /^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);
|
|
730
|
+
return s ? e.append(N(x.HTMLTag, n, n + 1 + s[0].length)) : -1;
|
|
731
|
+
},
|
|
732
|
+
Emphasis(e, t, n) {
|
|
733
|
+
if (t != 95 && t != 42) return -1;
|
|
734
|
+
let r = n + 1;
|
|
735
|
+
for (; e.char(r) == t;) r++;
|
|
736
|
+
let i = e.slice(n - 1, n), a = e.slice(r, r + 1), o = L.test(i), s = L.test(a), c = /\s|^$/.test(i), l = /\s|^$/.test(a), u = !l && (!s || c || o), d = !c && (!o || l || s), f = u && (t == 42 || !d || o), p = d && (t == 42 || !u || s);
|
|
737
|
+
return e.append(new I(t == 95 ? Ze : Qe, n, r, !!f | (p ? 2 : 0)));
|
|
738
|
+
},
|
|
739
|
+
HardBreak(e, t, n) {
|
|
740
|
+
if (t == 92 && e.char(n + 1) == 10) return e.append(N(x.HardBreak, n, n + 2));
|
|
741
|
+
if (t == 32) {
|
|
742
|
+
let t = n + 1;
|
|
743
|
+
for (; e.char(t) == 32;) t++;
|
|
744
|
+
if (e.char(t) == 10 && t >= n + 2) return e.append(N(x.HardBreak, n, t + 1));
|
|
745
|
+
}
|
|
746
|
+
return -1;
|
|
747
|
+
},
|
|
748
|
+
Link(e, t, n) {
|
|
749
|
+
return t == 91 ? e.append(new I(P, n, n + 1, 1)) : -1;
|
|
750
|
+
},
|
|
751
|
+
Image(e, t, n) {
|
|
752
|
+
return t == 33 && e.char(n + 1) == 91 ? e.append(new I(F, n, n + 2, 1)) : -1;
|
|
753
|
+
},
|
|
754
|
+
LinkEnd(e, t, n) {
|
|
755
|
+
if (t != 93) return -1;
|
|
756
|
+
for (let t = e.parts.length - 1; t >= 0; t--) {
|
|
757
|
+
let r = e.parts[t];
|
|
758
|
+
if (r instanceof I && (r.type == P || r.type == F)) {
|
|
759
|
+
if (!r.side || e.skipSpace(r.to) == n && !/[(\[]/.test(e.slice(n + 1, n + 2))) return e.parts[t] = null, -1;
|
|
760
|
+
let i = e.takeContent(t), a = e.parts[t] = tt(e, i, r.type == P ? x.Link : x.Image, r.from, n + 1);
|
|
761
|
+
if (r.type == P) for (let n = 0; n < t; n++) {
|
|
762
|
+
let t = e.parts[n];
|
|
763
|
+
t instanceof I && t.type == P && (t.side = 0);
|
|
764
|
+
}
|
|
765
|
+
return a.to;
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
return -1;
|
|
769
|
+
}
|
|
770
|
+
};
|
|
771
|
+
function tt(e, t, n, r, i) {
|
|
772
|
+
let { text: a } = e, o = e.char(i), s = i;
|
|
773
|
+
if (t.unshift(N(x.LinkMark, r, r + (n == x.Image ? 2 : 1))), t.push(N(x.LinkMark, i - 1, i)), o == 40) {
|
|
774
|
+
let n = e.skipSpace(i + 1), r = nt(a, n - e.offset, e.offset), o;
|
|
775
|
+
r && (n = e.skipSpace(r.to), n != r.to && (o = rt(a, n - e.offset, e.offset), o && (n = e.skipSpace(o.to)))), e.char(n) == 41 && (t.push(N(x.LinkMark, i, i + 1)), s = n + 1, r && t.push(r), o && t.push(o), t.push(N(x.LinkMark, n, s)));
|
|
776
|
+
} else if (o == 91) {
|
|
777
|
+
let n = it(a, i - e.offset, e.offset, !1);
|
|
778
|
+
n && (t.push(n), s = n.to);
|
|
779
|
+
}
|
|
780
|
+
return N(n, r, s, t);
|
|
781
|
+
}
|
|
782
|
+
function nt(e, t, n) {
|
|
783
|
+
if (e.charCodeAt(t) == 60) {
|
|
784
|
+
for (let r = t + 1; r < e.length; r++) {
|
|
785
|
+
let i = e.charCodeAt(r);
|
|
786
|
+
if (i == 62) return N(x.URL, t + n, r + 1 + n);
|
|
787
|
+
if (i == 60 || i == 10) return !1;
|
|
788
|
+
}
|
|
789
|
+
return null;
|
|
790
|
+
}
|
|
791
|
+
{
|
|
792
|
+
let r = 0, i = t;
|
|
793
|
+
for (let t = !1; i < e.length; i++) {
|
|
794
|
+
let n = e.charCodeAt(i);
|
|
795
|
+
if (S(n)) break;
|
|
796
|
+
if (t) t = !1;
|
|
797
|
+
else if (n == 40) r++;
|
|
798
|
+
else if (n == 41) {
|
|
799
|
+
if (!r) break;
|
|
800
|
+
r--;
|
|
801
|
+
} else n == 92 && (t = !0);
|
|
802
|
+
}
|
|
803
|
+
return i > t ? N(x.URL, t + n, i + n) : i == e.length && null;
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
function rt(e, t, n) {
|
|
807
|
+
let r = e.charCodeAt(t);
|
|
808
|
+
if (r != 39 && r != 34 && r != 40) return !1;
|
|
809
|
+
let i = r == 40 ? 41 : r;
|
|
810
|
+
for (let r = t + 1, a = !1; r < e.length; r++) {
|
|
811
|
+
let o = e.charCodeAt(r);
|
|
812
|
+
if (a) a = !1;
|
|
813
|
+
else if (o == i) return N(x.LinkTitle, t + n, r + 1 + n);
|
|
814
|
+
else o == 92 && (a = !0);
|
|
815
|
+
}
|
|
816
|
+
return null;
|
|
817
|
+
}
|
|
818
|
+
function it(e, t, n, r) {
|
|
819
|
+
for (let i = !1, a = t + 1, o = Math.min(e.length, a + 999); a < o; a++) {
|
|
820
|
+
let o = e.charCodeAt(a);
|
|
821
|
+
if (i) i = !1;
|
|
822
|
+
else if (o == 93) return !r && N(x.LinkLabel, t + n, a + 1 + n);
|
|
823
|
+
else {
|
|
824
|
+
if (r && !S(o) && (r = !1), o == 91) return !1;
|
|
825
|
+
o == 92 && (i = !0);
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
return null;
|
|
829
|
+
}
|
|
830
|
+
var at = class {
|
|
831
|
+
constructor(e, t, n) {
|
|
832
|
+
this.parser = e, this.text = t, this.offset = n, this.parts = [];
|
|
833
|
+
}
|
|
834
|
+
char(e) {
|
|
835
|
+
return e >= this.end ? -1 : this.text.charCodeAt(e - this.offset);
|
|
836
|
+
}
|
|
837
|
+
get end() {
|
|
838
|
+
return this.offset + this.text.length;
|
|
839
|
+
}
|
|
840
|
+
slice(e, t) {
|
|
841
|
+
return this.text.slice(e - this.offset, t - this.offset);
|
|
842
|
+
}
|
|
843
|
+
append(e) {
|
|
844
|
+
return this.parts.push(e), e.to;
|
|
845
|
+
}
|
|
846
|
+
addDelimiter(e, t, n, r, i) {
|
|
847
|
+
return this.append(new I(e, t, n, !!r | (i ? 2 : 0)));
|
|
848
|
+
}
|
|
849
|
+
get hasOpenLink() {
|
|
850
|
+
for (let e = this.parts.length - 1; e >= 0; e--) {
|
|
851
|
+
let t = this.parts[e];
|
|
852
|
+
if (t instanceof I && (t.type == P || t.type == F)) return !0;
|
|
853
|
+
}
|
|
854
|
+
return !1;
|
|
855
|
+
}
|
|
856
|
+
addElement(e) {
|
|
857
|
+
return this.append(e);
|
|
858
|
+
}
|
|
859
|
+
resolveMarkers(e) {
|
|
860
|
+
for (let t = e; t < this.parts.length; t++) {
|
|
861
|
+
let n = this.parts[t];
|
|
862
|
+
if (!(n instanceof I && n.type.resolve && n.side & 2)) continue;
|
|
863
|
+
let r = n.type == Ze || n.type == Qe, i = n.to - n.from, a, o = t - 1;
|
|
864
|
+
for (; o >= e; o--) {
|
|
865
|
+
let e = this.parts[o];
|
|
866
|
+
if (e instanceof I && e.side & 1 && e.type == n.type && !(r && (n.side & 1 || e.side & 2) && (e.to - e.from + i) % 3 == 0 && ((e.to - e.from) % 3 || i % 3))) {
|
|
867
|
+
a = e;
|
|
868
|
+
break;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
if (!a) continue;
|
|
872
|
+
let s = n.type.resolve, c = [], l = a.from, u = n.to;
|
|
873
|
+
if (r) {
|
|
874
|
+
let e = Math.min(2, a.to - a.from, i);
|
|
875
|
+
l = a.to - e, u = n.from + e, s = e == 1 ? "Emphasis" : "StrongEmphasis";
|
|
876
|
+
}
|
|
877
|
+
a.type.mark && c.push(this.elt(a.type.mark, l, a.to));
|
|
878
|
+
for (let e = o + 1; e < t; e++) this.parts[e] instanceof M && c.push(this.parts[e]), this.parts[e] = null;
|
|
879
|
+
n.type.mark && c.push(this.elt(n.type.mark, n.from, u));
|
|
880
|
+
let d = this.elt(s, l, u, c);
|
|
881
|
+
this.parts[o] = r && a.from != l ? new I(a.type, a.from, l, a.side) : null, (this.parts[t] = r && n.to != u ? new I(n.type, u, n.to, n.side) : null) ? this.parts.splice(t, 0, d) : this.parts[t] = d;
|
|
882
|
+
}
|
|
883
|
+
let t = [];
|
|
884
|
+
for (let n = e; n < this.parts.length; n++) {
|
|
885
|
+
let e = this.parts[n];
|
|
886
|
+
e instanceof M && t.push(e);
|
|
887
|
+
}
|
|
888
|
+
return t;
|
|
889
|
+
}
|
|
890
|
+
findOpeningDelimiter(e) {
|
|
891
|
+
for (let t = this.parts.length - 1; t >= 0; t--) {
|
|
892
|
+
let n = this.parts[t];
|
|
893
|
+
if (n instanceof I && n.type == e && n.side & 1) return t;
|
|
894
|
+
}
|
|
895
|
+
return null;
|
|
896
|
+
}
|
|
897
|
+
takeContent(e) {
|
|
898
|
+
let t = this.resolveMarkers(e);
|
|
899
|
+
return this.parts.length = e, t;
|
|
900
|
+
}
|
|
901
|
+
getDelimiterAt(e) {
|
|
902
|
+
let t = this.parts[e];
|
|
903
|
+
return t instanceof I ? t : null;
|
|
904
|
+
}
|
|
905
|
+
skipSpace(e) {
|
|
906
|
+
return C(this.text, e - this.offset) + this.offset;
|
|
907
|
+
}
|
|
908
|
+
elt(e, t, n, r) {
|
|
909
|
+
return typeof e == "string" ? N(this.parser.getNodeType(e), t, n, r) : new Xe(e, t);
|
|
910
|
+
}
|
|
911
|
+
};
|
|
912
|
+
at.linkStart = P, at.imageStart = F;
|
|
913
|
+
function ot(e, t) {
|
|
914
|
+
if (!t.length) return e;
|
|
915
|
+
if (!e.length) return t;
|
|
916
|
+
let n = e.slice(), r = 0;
|
|
917
|
+
for (let e of t) {
|
|
918
|
+
for (; r < n.length && n[r].to < e.to;) r++;
|
|
919
|
+
if (r < n.length && n[r].from < e.from) {
|
|
920
|
+
let t = n[r];
|
|
921
|
+
t instanceof M && (n[r] = new M(t.type, t.from, t.to, ot(t.children, [e])));
|
|
922
|
+
} else n.splice(r++, 0, e);
|
|
923
|
+
}
|
|
924
|
+
return n;
|
|
925
|
+
}
|
|
926
|
+
var st = [
|
|
927
|
+
x.CodeBlock,
|
|
928
|
+
x.ListItem,
|
|
929
|
+
x.OrderedList,
|
|
930
|
+
x.BulletList
|
|
931
|
+
], ct = class {
|
|
932
|
+
constructor(e, t) {
|
|
933
|
+
this.fragments = e, this.input = t, this.i = 0, this.fragment = null, this.fragmentEnd = -1, this.cursor = null, e.length && (this.fragment = e[this.i++]);
|
|
934
|
+
}
|
|
935
|
+
nextFragment() {
|
|
936
|
+
this.fragment = this.i < this.fragments.length ? this.fragments[this.i++] : null, this.cursor = null, this.fragmentEnd = -1;
|
|
937
|
+
}
|
|
938
|
+
moveTo(e, t) {
|
|
939
|
+
for (; this.fragment && this.fragment.to <= e;) this.nextFragment();
|
|
940
|
+
if (!this.fragment || this.fragment.from > (e ? e - 1 : 0)) return !1;
|
|
941
|
+
if (this.fragmentEnd < 0) {
|
|
942
|
+
let e = this.fragment.to;
|
|
943
|
+
for (; e > 0 && this.input.read(e - 1, e) != "\n";) e--;
|
|
944
|
+
this.fragmentEnd = e ? e - 1 : 0;
|
|
945
|
+
}
|
|
946
|
+
let n = this.cursor;
|
|
947
|
+
n || (n = this.cursor = this.fragment.tree.cursor(), n.firstChild());
|
|
948
|
+
let r = e + this.fragment.offset;
|
|
949
|
+
for (; n.to <= r;) if (!n.parent()) return !1;
|
|
950
|
+
for (;;) {
|
|
951
|
+
if (n.from >= r) return this.fragment.from <= t;
|
|
952
|
+
if (!n.childAfter(r)) return !1;
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
matches(e) {
|
|
956
|
+
let t = this.cursor.tree;
|
|
957
|
+
return t && t.prop(a.contextHash) == e;
|
|
958
|
+
}
|
|
959
|
+
takeNodes(e) {
|
|
960
|
+
let t = this.cursor, n = this.fragment.offset, r = this.fragmentEnd - +!!this.fragment.openEnd, i = e.absoluteLineStart, a = i, s = e.block.children.length, c = a, l = s;
|
|
961
|
+
for (;;) {
|
|
962
|
+
if (t.to - n > r) {
|
|
963
|
+
if (t.type.isAnonymous && t.firstChild()) continue;
|
|
964
|
+
break;
|
|
965
|
+
}
|
|
966
|
+
let i = lt(t.from - n, e.ranges);
|
|
967
|
+
if (t.to - n <= e.ranges[e.rangeI].to) e.addNode(t.tree, i);
|
|
968
|
+
else {
|
|
969
|
+
let n = new o(e.parser.nodeSet.types[x.Paragraph], [], [], 0, e.block.hashProp);
|
|
970
|
+
e.reusePlaceholders.set(n, t.tree), e.addNode(n, i);
|
|
971
|
+
}
|
|
972
|
+
if (t.type.is("Block") && (st.indexOf(t.type.id) < 0 ? (a = t.to - n, s = e.block.children.length) : (a = c, s = l), c = t.to - n, l = e.block.children.length), !t.nextSibling()) break;
|
|
973
|
+
}
|
|
974
|
+
for (; e.block.children.length > s;) e.block.children.pop(), e.block.positions.pop();
|
|
975
|
+
return a - i;
|
|
976
|
+
}
|
|
977
|
+
};
|
|
978
|
+
function lt(e, t) {
|
|
979
|
+
let n = e;
|
|
980
|
+
for (let r = 1; r < t.length; r++) {
|
|
981
|
+
let i = t[r - 1].to, a = t[r].from;
|
|
982
|
+
i < e && (n -= a - i);
|
|
983
|
+
}
|
|
984
|
+
return n;
|
|
985
|
+
}
|
|
986
|
+
var ut = i({
|
|
987
|
+
"Blockquote/...": s.quote,
|
|
988
|
+
HorizontalRule: s.contentSeparator,
|
|
989
|
+
"ATXHeading1/... SetextHeading1/...": s.heading1,
|
|
990
|
+
"ATXHeading2/... SetextHeading2/...": s.heading2,
|
|
991
|
+
"ATXHeading3/...": s.heading3,
|
|
992
|
+
"ATXHeading4/...": s.heading4,
|
|
993
|
+
"ATXHeading5/...": s.heading5,
|
|
994
|
+
"ATXHeading6/...": s.heading6,
|
|
995
|
+
"Comment CommentBlock": s.comment,
|
|
996
|
+
Escape: s.escape,
|
|
997
|
+
Entity: s.character,
|
|
998
|
+
"Emphasis/...": s.emphasis,
|
|
999
|
+
"StrongEmphasis/...": s.strong,
|
|
1000
|
+
"Link/... Image/...": s.link,
|
|
1001
|
+
"OrderedList/... BulletList/...": s.list,
|
|
1002
|
+
"BlockQuote/...": s.quote,
|
|
1003
|
+
"InlineCode CodeText": s.monospace,
|
|
1004
|
+
"URL Autolink": s.url,
|
|
1005
|
+
"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark": s.processingInstruction,
|
|
1006
|
+
"CodeInfo LinkLabel": s.labelName,
|
|
1007
|
+
LinkTitle: s.string,
|
|
1008
|
+
Paragraph: s.content
|
|
1009
|
+
}), dt = new Ke(new u(Je).extend(ut), Object.keys(O).map((e) => O[e]), Object.keys(O).map((e) => Ve[e]), Object.keys(O), He, Te, Object.keys(et).map((e) => et[e]), Object.keys(et), []);
|
|
1010
|
+
function ft(e, t, n) {
|
|
1011
|
+
let r = [];
|
|
1012
|
+
for (let i = e.firstChild, a = t;; i = i.nextSibling) {
|
|
1013
|
+
let e = i ? i.from : n;
|
|
1014
|
+
if (e > a && r.push({
|
|
1015
|
+
from: a,
|
|
1016
|
+
to: e
|
|
1017
|
+
}), !i) break;
|
|
1018
|
+
a = i.to;
|
|
1019
|
+
}
|
|
1020
|
+
return r;
|
|
1021
|
+
}
|
|
1022
|
+
function pt(e) {
|
|
1023
|
+
let { codeParser: t, htmlParser: n } = e;
|
|
1024
|
+
return { wrap: r((e, r) => {
|
|
1025
|
+
let i = e.type.id;
|
|
1026
|
+
if (t && (i == x.CodeBlock || i == x.FencedCode)) {
|
|
1027
|
+
let n = "";
|
|
1028
|
+
if (i == x.FencedCode) {
|
|
1029
|
+
let t = e.node.getChild(x.CodeInfo);
|
|
1030
|
+
t && (n = r.read(t.from, t.to));
|
|
1031
|
+
}
|
|
1032
|
+
let a = t(n);
|
|
1033
|
+
if (a) return {
|
|
1034
|
+
parser: a,
|
|
1035
|
+
overlay: (e) => e.type.id == x.CodeText,
|
|
1036
|
+
bracketed: i == x.FencedCode
|
|
1037
|
+
};
|
|
1038
|
+
} else if (n && (i == x.HTMLBlock || i == x.HTMLTag || i == x.CommentBlock)) return {
|
|
1039
|
+
parser: n,
|
|
1040
|
+
overlay: ft(e.node, e.from, e.to)
|
|
1041
|
+
};
|
|
1042
|
+
return null;
|
|
1043
|
+
}) };
|
|
1044
|
+
}
|
|
1045
|
+
var mt = {
|
|
1046
|
+
resolve: "Strikethrough",
|
|
1047
|
+
mark: "StrikethroughMark"
|
|
1048
|
+
}, ht = {
|
|
1049
|
+
defineNodes: [{
|
|
1050
|
+
name: "Strikethrough",
|
|
1051
|
+
style: { "Strikethrough/...": s.strikethrough }
|
|
1052
|
+
}, {
|
|
1053
|
+
name: "StrikethroughMark",
|
|
1054
|
+
style: s.processingInstruction
|
|
1055
|
+
}],
|
|
1056
|
+
parseInline: [{
|
|
1057
|
+
name: "Strikethrough",
|
|
1058
|
+
parse(e, t, n) {
|
|
1059
|
+
if (t != 126 || e.char(n + 1) != 126 || e.char(n + 2) == 126) return -1;
|
|
1060
|
+
let r = e.slice(n - 1, n), i = e.slice(n + 2, n + 3), a = /\s|^$/.test(r), o = /\s|^$/.test(i), s = L.test(r), c = L.test(i);
|
|
1061
|
+
return e.addDelimiter(mt, n, n + 2, !o && (!c || a || s), !a && (!s || o || c));
|
|
1062
|
+
},
|
|
1063
|
+
after: "Emphasis"
|
|
1064
|
+
}]
|
|
1065
|
+
};
|
|
1066
|
+
function R(e, t, n = 0, r, i = 0) {
|
|
1067
|
+
let a = 0, o = !0, s = -1, c = -1, l = !1, u = () => {
|
|
1068
|
+
r.push(e.elt("TableCell", i + s, i + c, e.parser.parseInline(t.slice(s, c), i + s)));
|
|
1069
|
+
};
|
|
1070
|
+
for (let d = n; d < t.length; d++) {
|
|
1071
|
+
let n = t.charCodeAt(d);
|
|
1072
|
+
n == 124 && !l ? ((!o || s > -1) && a++, o = !1, r && (s > -1 && u(), r.push(e.elt("TableDelimiter", d + i, d + i + 1))), s = c = -1) : (l || n != 32 && n != 9) && (s < 0 && (s = d), c = d + 1), l = !l && n == 92;
|
|
1073
|
+
}
|
|
1074
|
+
return s > -1 && (a++, r && u()), a;
|
|
1075
|
+
}
|
|
1076
|
+
function gt(e, t) {
|
|
1077
|
+
for (let n = t; n < e.length; n++) {
|
|
1078
|
+
let t = e.charCodeAt(n);
|
|
1079
|
+
if (t == 124) return !0;
|
|
1080
|
+
t == 92 && n++;
|
|
1081
|
+
}
|
|
1082
|
+
return !1;
|
|
1083
|
+
}
|
|
1084
|
+
var _t = /^[>\s]*\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/, vt = class {
|
|
1085
|
+
constructor() {
|
|
1086
|
+
this.rows = null;
|
|
1087
|
+
}
|
|
1088
|
+
nextLine(e, t, n) {
|
|
1089
|
+
if (this.rows == null) {
|
|
1090
|
+
this.rows = !1;
|
|
1091
|
+
let r;
|
|
1092
|
+
if ((t.next == 45 || t.next == 58 || t.next == 124) && _t.test(r = t.text.slice(t.pos))) {
|
|
1093
|
+
let i = [];
|
|
1094
|
+
R(e, n.content, 0, i, n.start) == R(e, r, 0) && (this.rows = [e.elt("TableHeader", n.start, n.start + n.content.length, i), e.elt("TableDelimiter", e.lineStart + t.pos, e.lineStart + t.text.length)]);
|
|
1095
|
+
}
|
|
1096
|
+
} else if (this.rows) {
|
|
1097
|
+
let n = [];
|
|
1098
|
+
R(e, t.text, t.pos, n, e.lineStart), this.rows.push(e.elt("TableRow", e.lineStart + t.pos, e.lineStart + t.text.length, n));
|
|
1099
|
+
}
|
|
1100
|
+
return !1;
|
|
1101
|
+
}
|
|
1102
|
+
finish(e, t) {
|
|
1103
|
+
return this.rows ? (e.addLeafElement(t, e.elt("Table", t.start, t.start + t.content.length, this.rows)), !0) : !1;
|
|
1104
|
+
}
|
|
1105
|
+
}, yt = {
|
|
1106
|
+
defineNodes: [
|
|
1107
|
+
{
|
|
1108
|
+
name: "Table",
|
|
1109
|
+
block: !0
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
name: "TableHeader",
|
|
1113
|
+
style: { "TableHeader/...": s.heading }
|
|
1114
|
+
},
|
|
1115
|
+
"TableRow",
|
|
1116
|
+
{
|
|
1117
|
+
name: "TableCell",
|
|
1118
|
+
style: s.content
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
name: "TableDelimiter",
|
|
1122
|
+
style: s.processingInstruction
|
|
1123
|
+
}
|
|
1124
|
+
],
|
|
1125
|
+
parseBlock: [{
|
|
1126
|
+
name: "Table",
|
|
1127
|
+
leaf(e, t) {
|
|
1128
|
+
return gt(t.content, 0) ? new vt() : null;
|
|
1129
|
+
},
|
|
1130
|
+
endLeaf(e, t, n) {
|
|
1131
|
+
if (n.parsers.some((e) => e instanceof vt) || !gt(t.text, t.basePos)) return !1;
|
|
1132
|
+
let r = e.peekLine();
|
|
1133
|
+
return _t.test(r) && R(e, t.text, t.basePos) == R(e, r, t.basePos);
|
|
1134
|
+
},
|
|
1135
|
+
before: "SetextHeading"
|
|
1136
|
+
}]
|
|
1137
|
+
}, bt = class {
|
|
1138
|
+
nextLine() {
|
|
1139
|
+
return !1;
|
|
1140
|
+
}
|
|
1141
|
+
finish(e, t) {
|
|
1142
|
+
return e.addLeafElement(t, e.elt("Task", t.start, t.start + t.content.length, [e.elt("TaskMarker", t.start, t.start + 3), ...e.parser.parseInline(t.content.slice(3), t.start + 3)])), !0;
|
|
1143
|
+
}
|
|
1144
|
+
}, xt = {
|
|
1145
|
+
defineNodes: [{
|
|
1146
|
+
name: "Task",
|
|
1147
|
+
block: !0,
|
|
1148
|
+
style: s.list
|
|
1149
|
+
}, {
|
|
1150
|
+
name: "TaskMarker",
|
|
1151
|
+
style: s.atom
|
|
1152
|
+
}],
|
|
1153
|
+
parseBlock: [{
|
|
1154
|
+
name: "TaskList",
|
|
1155
|
+
leaf(e, t) {
|
|
1156
|
+
return /^\[[ xX]\][ \t]/.test(t.content) && e.parentType().name == "ListItem" ? new bt() : null;
|
|
1157
|
+
},
|
|
1158
|
+
after: "SetextHeading"
|
|
1159
|
+
}]
|
|
1160
|
+
}, St = /(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy, Ct = /[\w-]+(\.[\w-]+)+(:\d+)?(\/[^\s<]*)?/gy, wt = /[\w-]+\.[\w-]+($|[/:])/, Tt = /[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy, Et = /\/[a-zA-Z\d@.]+/gy;
|
|
1161
|
+
function Dt(e, t, n, r) {
|
|
1162
|
+
let i = 0;
|
|
1163
|
+
for (let a = t; a < n; a++) e[a] == r && i++;
|
|
1164
|
+
return i;
|
|
1165
|
+
}
|
|
1166
|
+
function Ot(e, t) {
|
|
1167
|
+
Ct.lastIndex = t;
|
|
1168
|
+
let n = Ct.exec(e);
|
|
1169
|
+
if (!n || wt.exec(n[0])[0].indexOf("_") > -1) return -1;
|
|
1170
|
+
let r = t + n[0].length;
|
|
1171
|
+
for (;;) {
|
|
1172
|
+
let n = e[r - 1], i;
|
|
1173
|
+
if (/[?!.,:*_~]/.test(n) || n == ")" && Dt(e, t, r, ")") > Dt(e, t, r, "(")) r--;
|
|
1174
|
+
else if (n == ";" && (i = /&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t, r)))) r = t + i.index;
|
|
1175
|
+
else break;
|
|
1176
|
+
}
|
|
1177
|
+
return r;
|
|
1178
|
+
}
|
|
1179
|
+
function kt(e, t) {
|
|
1180
|
+
Tt.lastIndex = t;
|
|
1181
|
+
let n = Tt.exec(e);
|
|
1182
|
+
if (!n) return -1;
|
|
1183
|
+
let r = n[0][n[0].length - 1];
|
|
1184
|
+
return r == "_" || r == "-" ? -1 : t + n[0].length - +(r == ".");
|
|
1185
|
+
}
|
|
1186
|
+
var At = [
|
|
1187
|
+
yt,
|
|
1188
|
+
xt,
|
|
1189
|
+
ht,
|
|
1190
|
+
{ parseInline: [{
|
|
1191
|
+
name: "Autolink",
|
|
1192
|
+
parse(e, t, n) {
|
|
1193
|
+
let r = n - e.offset;
|
|
1194
|
+
if (r && /\w/.test(e.text[r - 1])) return -1;
|
|
1195
|
+
St.lastIndex = r;
|
|
1196
|
+
let i = St.exec(e.text), a = -1;
|
|
1197
|
+
return !i || (i[1] || i[2] ? (a = Ot(e.text, r + i[0].length), a > -1 && e.hasOpenLink && (a = r + /([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(r, a))[0].length)) : i[3] ? a = kt(e.text, r) : (a = kt(e.text, r + i[0].length), a > -1 && i[0] == "xmpp:" && (Et.lastIndex = a, i = Et.exec(e.text), i && (a = i.index + i[0].length))), a < 0) ? -1 : (e.addElement(e.elt("URL", n, a + e.offset)), a + e.offset);
|
|
1198
|
+
}
|
|
1199
|
+
}] }
|
|
1200
|
+
];
|
|
1201
|
+
function jt(e, t, n) {
|
|
1202
|
+
return (r, i, a) => {
|
|
1203
|
+
if (i != e || r.char(a + 1) == e) return -1;
|
|
1204
|
+
let o = [r.elt(n, a, a + 1)];
|
|
1205
|
+
for (let i = a + 1; i < r.end; i++) {
|
|
1206
|
+
let s = r.char(i);
|
|
1207
|
+
if (s == e) return r.addElement(r.elt(t, a, i + 1, o.concat(r.elt(n, i, i + 1))));
|
|
1208
|
+
if (s == 92 && o.push(r.elt("Escape", i, i++ + 2)), S(s)) break;
|
|
1209
|
+
}
|
|
1210
|
+
return -1;
|
|
1211
|
+
};
|
|
1212
|
+
}
|
|
1213
|
+
var Mt = {
|
|
1214
|
+
defineNodes: [{
|
|
1215
|
+
name: "Superscript",
|
|
1216
|
+
style: s.special(s.content)
|
|
1217
|
+
}, {
|
|
1218
|
+
name: "SuperscriptMark",
|
|
1219
|
+
style: s.processingInstruction
|
|
1220
|
+
}],
|
|
1221
|
+
parseInline: [{
|
|
1222
|
+
name: "Superscript",
|
|
1223
|
+
parse: jt(94, "Superscript", "SuperscriptMark")
|
|
1224
|
+
}]
|
|
1225
|
+
}, Nt = {
|
|
1226
|
+
defineNodes: [{
|
|
1227
|
+
name: "Subscript",
|
|
1228
|
+
style: s.special(s.content)
|
|
1229
|
+
}, {
|
|
1230
|
+
name: "SubscriptMark",
|
|
1231
|
+
style: s.processingInstruction
|
|
1232
|
+
}],
|
|
1233
|
+
parseInline: [{
|
|
1234
|
+
name: "Subscript",
|
|
1235
|
+
parse: jt(126, "Subscript", "SubscriptMark")
|
|
1236
|
+
}]
|
|
1237
|
+
}, Pt = {
|
|
1238
|
+
defineNodes: [{
|
|
1239
|
+
name: "Emoji",
|
|
1240
|
+
style: s.character
|
|
1241
|
+
}],
|
|
1242
|
+
parseInline: [{
|
|
1243
|
+
name: "Emoji",
|
|
1244
|
+
parse(e, t, n) {
|
|
1245
|
+
let r;
|
|
1246
|
+
return t != 58 || !(r = /^[a-zA-Z_0-9]+:/.exec(e.slice(n + 1, e.end))) ? -1 : e.addElement(e.elt("Emoji", n, n + 1 + r[0].length));
|
|
1247
|
+
}
|
|
1248
|
+
}]
|
|
1249
|
+
}, Ft = 55, It = 1, Lt = 56, Rt = 2, zt = 57, Bt = 3, Vt = 4, Ht = 5, Ut = 6, Wt = 7, Gt = 8, Kt = 9, qt = 10, Jt = 11, Yt = 12, Xt = 13, Zt = 58, Qt = 14, $t = 15, en = 59, tn = 21, nn = 23, rn = 24, an = 25, z = 27, on = 28, sn = 29, cn = 32, ln = 35, un = 37, dn = 38, fn = 0, pn = 1, mn = {
|
|
1250
|
+
area: !0,
|
|
1251
|
+
base: !0,
|
|
1252
|
+
br: !0,
|
|
1253
|
+
col: !0,
|
|
1254
|
+
command: !0,
|
|
1255
|
+
embed: !0,
|
|
1256
|
+
frame: !0,
|
|
1257
|
+
hr: !0,
|
|
1258
|
+
img: !0,
|
|
1259
|
+
input: !0,
|
|
1260
|
+
keygen: !0,
|
|
1261
|
+
link: !0,
|
|
1262
|
+
meta: !0,
|
|
1263
|
+
param: !0,
|
|
1264
|
+
source: !0,
|
|
1265
|
+
track: !0,
|
|
1266
|
+
wbr: !0,
|
|
1267
|
+
menuitem: !0
|
|
1268
|
+
}, hn = {
|
|
1269
|
+
dd: !0,
|
|
1270
|
+
li: !0,
|
|
1271
|
+
optgroup: !0,
|
|
1272
|
+
option: !0,
|
|
1273
|
+
p: !0,
|
|
1274
|
+
rp: !0,
|
|
1275
|
+
rt: !0,
|
|
1276
|
+
tbody: !0,
|
|
1277
|
+
td: !0,
|
|
1278
|
+
tfoot: !0,
|
|
1279
|
+
th: !0,
|
|
1280
|
+
tr: !0
|
|
1281
|
+
}, gn = {
|
|
1282
|
+
dd: {
|
|
1283
|
+
dd: !0,
|
|
1284
|
+
dt: !0
|
|
1285
|
+
},
|
|
1286
|
+
dt: {
|
|
1287
|
+
dd: !0,
|
|
1288
|
+
dt: !0
|
|
1289
|
+
},
|
|
1290
|
+
li: { li: !0 },
|
|
1291
|
+
option: {
|
|
1292
|
+
option: !0,
|
|
1293
|
+
optgroup: !0
|
|
1294
|
+
},
|
|
1295
|
+
optgroup: { optgroup: !0 },
|
|
1296
|
+
p: {
|
|
1297
|
+
address: !0,
|
|
1298
|
+
article: !0,
|
|
1299
|
+
aside: !0,
|
|
1300
|
+
blockquote: !0,
|
|
1301
|
+
dir: !0,
|
|
1302
|
+
div: !0,
|
|
1303
|
+
dl: !0,
|
|
1304
|
+
fieldset: !0,
|
|
1305
|
+
footer: !0,
|
|
1306
|
+
form: !0,
|
|
1307
|
+
h1: !0,
|
|
1308
|
+
h2: !0,
|
|
1309
|
+
h3: !0,
|
|
1310
|
+
h4: !0,
|
|
1311
|
+
h5: !0,
|
|
1312
|
+
h6: !0,
|
|
1313
|
+
header: !0,
|
|
1314
|
+
hgroup: !0,
|
|
1315
|
+
hr: !0,
|
|
1316
|
+
menu: !0,
|
|
1317
|
+
nav: !0,
|
|
1318
|
+
ol: !0,
|
|
1319
|
+
p: !0,
|
|
1320
|
+
pre: !0,
|
|
1321
|
+
section: !0,
|
|
1322
|
+
table: !0,
|
|
1323
|
+
ul: !0
|
|
1324
|
+
},
|
|
1325
|
+
rp: {
|
|
1326
|
+
rp: !0,
|
|
1327
|
+
rt: !0
|
|
1328
|
+
},
|
|
1329
|
+
rt: {
|
|
1330
|
+
rp: !0,
|
|
1331
|
+
rt: !0
|
|
1332
|
+
},
|
|
1333
|
+
tbody: {
|
|
1334
|
+
tbody: !0,
|
|
1335
|
+
tfoot: !0
|
|
1336
|
+
},
|
|
1337
|
+
td: {
|
|
1338
|
+
td: !0,
|
|
1339
|
+
th: !0
|
|
1340
|
+
},
|
|
1341
|
+
tfoot: { tbody: !0 },
|
|
1342
|
+
th: {
|
|
1343
|
+
td: !0,
|
|
1344
|
+
th: !0
|
|
1345
|
+
},
|
|
1346
|
+
thead: {
|
|
1347
|
+
tbody: !0,
|
|
1348
|
+
tfoot: !0
|
|
1349
|
+
},
|
|
1350
|
+
tr: { tr: !0 }
|
|
1351
|
+
};
|
|
1352
|
+
function _n(e) {
|
|
1353
|
+
return e == 45 || e == 46 || e == 58 || e >= 65 && e <= 90 || e == 95 || e >= 97 && e <= 122 || e >= 161;
|
|
1354
|
+
}
|
|
1355
|
+
var vn = null, yn = null, bn = 0;
|
|
1356
|
+
function xn(e, t) {
|
|
1357
|
+
let n = e.pos + t;
|
|
1358
|
+
if (bn == n && yn == e) return vn;
|
|
1359
|
+
let r = e.peek(t), i = "";
|
|
1360
|
+
for (; _n(r);) i += String.fromCharCode(r), r = e.peek(++t);
|
|
1361
|
+
return yn = e, bn = n, vn = i ? i.toLowerCase() : r == wn || r == Tn ? void 0 : null;
|
|
1362
|
+
}
|
|
1363
|
+
var Sn = 60, B = 62, Cn = 47, wn = 63, Tn = 33, En = 45;
|
|
1364
|
+
function Dn(e, t) {
|
|
1365
|
+
this.name = e, this.parent = t;
|
|
1366
|
+
}
|
|
1367
|
+
var On = [
|
|
1368
|
+
Ut,
|
|
1369
|
+
qt,
|
|
1370
|
+
Wt,
|
|
1371
|
+
Gt,
|
|
1372
|
+
Kt
|
|
1373
|
+
], kn = new m({
|
|
1374
|
+
start: null,
|
|
1375
|
+
shift(e, t, n, r) {
|
|
1376
|
+
return On.indexOf(t) > -1 ? new Dn(xn(r, 1) || "", e) : e;
|
|
1377
|
+
},
|
|
1378
|
+
reduce(e, t) {
|
|
1379
|
+
return t == tn && e ? e.parent : e;
|
|
1380
|
+
},
|
|
1381
|
+
reuse(e, t, n, r) {
|
|
1382
|
+
let i = t.type.id;
|
|
1383
|
+
return i == Ut || i == un ? new Dn(xn(r, 1) || "", e) : e;
|
|
1384
|
+
},
|
|
1385
|
+
strict: !1
|
|
1386
|
+
}), An = new f((e, t) => {
|
|
1387
|
+
if (e.next != Sn) {
|
|
1388
|
+
e.next < 0 && t.context && e.acceptToken(Zt);
|
|
1389
|
+
return;
|
|
1390
|
+
}
|
|
1391
|
+
e.advance();
|
|
1392
|
+
let n = e.next == Cn;
|
|
1393
|
+
n && e.advance();
|
|
1394
|
+
let r = xn(e, 0);
|
|
1395
|
+
if (r === void 0) return;
|
|
1396
|
+
if (!r) return e.acceptToken(n ? $t : Qt);
|
|
1397
|
+
let i = t.context ? t.context.name : null;
|
|
1398
|
+
if (n) {
|
|
1399
|
+
if (r == i) return e.acceptToken(Jt);
|
|
1400
|
+
if (i && hn[i]) return e.acceptToken(Zt, -2);
|
|
1401
|
+
if (t.dialectEnabled(fn)) return e.acceptToken(Yt);
|
|
1402
|
+
for (let e = t.context; e; e = e.parent) if (e.name == r) return;
|
|
1403
|
+
e.acceptToken(Xt);
|
|
1404
|
+
} else {
|
|
1405
|
+
if (r == "script") return e.acceptToken(Wt);
|
|
1406
|
+
if (r == "style") return e.acceptToken(Gt);
|
|
1407
|
+
if (r == "textarea") return e.acceptToken(Kt);
|
|
1408
|
+
if (mn.hasOwnProperty(r)) return e.acceptToken(qt);
|
|
1409
|
+
i && gn[i] && gn[i][r] ? e.acceptToken(Zt, -1) : e.acceptToken(Ut);
|
|
1410
|
+
}
|
|
1411
|
+
}, { contextual: !0 }), jn = new f((e) => {
|
|
1412
|
+
for (let t = 0, n = 0;; n++) {
|
|
1413
|
+
if (e.next < 0) {
|
|
1414
|
+
n && e.acceptToken(en);
|
|
1415
|
+
break;
|
|
1416
|
+
}
|
|
1417
|
+
if (e.next == En) t++;
|
|
1418
|
+
else if (e.next == B && t >= 2) {
|
|
1419
|
+
n >= 3 && e.acceptToken(en, -2);
|
|
1420
|
+
break;
|
|
1421
|
+
} else t = 0;
|
|
1422
|
+
e.advance();
|
|
1423
|
+
}
|
|
1424
|
+
});
|
|
1425
|
+
function Mn(e) {
|
|
1426
|
+
for (; e; e = e.parent) if (e.name == "svg" || e.name == "math") return !0;
|
|
1427
|
+
return !1;
|
|
1428
|
+
}
|
|
1429
|
+
var Nn = new f((e, t) => {
|
|
1430
|
+
if (e.next == Cn && e.peek(1) == B) {
|
|
1431
|
+
let n = t.dialectEnabled(pn) || Mn(t.context);
|
|
1432
|
+
e.acceptToken(n ? Ht : Vt, 2);
|
|
1433
|
+
} else e.next == B && e.acceptToken(Vt, 1);
|
|
1434
|
+
});
|
|
1435
|
+
function Pn(e, t, n) {
|
|
1436
|
+
let r = 2 + e.length;
|
|
1437
|
+
return new f((i) => {
|
|
1438
|
+
for (let a = 0, o = 0, s = 0;; s++) {
|
|
1439
|
+
if (i.next < 0) {
|
|
1440
|
+
s && i.acceptToken(t);
|
|
1441
|
+
break;
|
|
1442
|
+
}
|
|
1443
|
+
if (a == 0 && i.next == Sn || a == 1 && i.next == Cn || a >= 2 && a < r && i.next == e.charCodeAt(a - 2)) a++, o++;
|
|
1444
|
+
else if (a == r && i.next == B) {
|
|
1445
|
+
s > o ? i.acceptToken(t, -o) : i.acceptToken(n, -(o - 2));
|
|
1446
|
+
break;
|
|
1447
|
+
} else if ((i.next == 10 || i.next == 13) && s) {
|
|
1448
|
+
i.acceptToken(t, 1);
|
|
1449
|
+
break;
|
|
1450
|
+
} else a = o = 0;
|
|
1451
|
+
i.advance();
|
|
1452
|
+
}
|
|
1453
|
+
});
|
|
1454
|
+
}
|
|
1455
|
+
var Fn = Pn("script", Ft, It), In = Pn("style", Lt, Rt), Ln = Pn("textarea", zt, Bt), Rn = i({
|
|
1456
|
+
"Text RawText IncompleteTag IncompleteCloseTag": s.content,
|
|
1457
|
+
"StartTag StartCloseTag SelfClosingEndTag EndTag": s.angleBracket,
|
|
1458
|
+
TagName: s.tagName,
|
|
1459
|
+
"MismatchedCloseTag/TagName": [s.tagName, s.invalid],
|
|
1460
|
+
AttributeName: s.attributeName,
|
|
1461
|
+
"AttributeValue UnquotedAttributeValue": s.attributeValue,
|
|
1462
|
+
Is: s.definitionOperator,
|
|
1463
|
+
"EntityReference CharacterReference": s.character,
|
|
1464
|
+
Comment: s.blockComment,
|
|
1465
|
+
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gQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",
|
|
1472
|
+
nodeNames: "⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",
|
|
1473
|
+
maxTerm: 68,
|
|
1474
|
+
context: kn,
|
|
1475
|
+
nodeProps: [
|
|
1476
|
+
[
|
|
1477
|
+
"closedBy",
|
|
1478
|
+
-10,
|
|
1479
|
+
1,
|
|
1480
|
+
2,
|
|
1481
|
+
3,
|
|
1482
|
+
7,
|
|
1483
|
+
8,
|
|
1484
|
+
9,
|
|
1485
|
+
10,
|
|
1486
|
+
11,
|
|
1487
|
+
12,
|
|
1488
|
+
13,
|
|
1489
|
+
"EndTag",
|
|
1490
|
+
6,
|
|
1491
|
+
"EndTag SelfClosingEndTag",
|
|
1492
|
+
-4,
|
|
1493
|
+
22,
|
|
1494
|
+
31,
|
|
1495
|
+
34,
|
|
1496
|
+
37,
|
|
1497
|
+
"CloseTag"
|
|
1498
|
+
],
|
|
1499
|
+
[
|
|
1500
|
+
"openedBy",
|
|
1501
|
+
4,
|
|
1502
|
+
"StartTag StartCloseTag",
|
|
1503
|
+
5,
|
|
1504
|
+
"StartTag",
|
|
1505
|
+
-4,
|
|
1506
|
+
30,
|
|
1507
|
+
33,
|
|
1508
|
+
36,
|
|
1509
|
+
38,
|
|
1510
|
+
"OpenTag"
|
|
1511
|
+
],
|
|
1512
|
+
[
|
|
1513
|
+
"group",
|
|
1514
|
+
-10,
|
|
1515
|
+
14,
|
|
1516
|
+
15,
|
|
1517
|
+
18,
|
|
1518
|
+
19,
|
|
1519
|
+
20,
|
|
1520
|
+
21,
|
|
1521
|
+
40,
|
|
1522
|
+
41,
|
|
1523
|
+
42,
|
|
1524
|
+
43,
|
|
1525
|
+
"Entity",
|
|
1526
|
+
17,
|
|
1527
|
+
"Entity TextContent",
|
|
1528
|
+
-3,
|
|
1529
|
+
29,
|
|
1530
|
+
32,
|
|
1531
|
+
35,
|
|
1532
|
+
"TextContent Entity"
|
|
1533
|
+
],
|
|
1534
|
+
[
|
|
1535
|
+
"isolate",
|
|
1536
|
+
-11,
|
|
1537
|
+
22,
|
|
1538
|
+
30,
|
|
1539
|
+
31,
|
|
1540
|
+
33,
|
|
1541
|
+
34,
|
|
1542
|
+
36,
|
|
1543
|
+
37,
|
|
1544
|
+
38,
|
|
1545
|
+
39,
|
|
1546
|
+
42,
|
|
1547
|
+
43,
|
|
1548
|
+
"ltr",
|
|
1549
|
+
-3,
|
|
1550
|
+
27,
|
|
1551
|
+
28,
|
|
1552
|
+
40,
|
|
1553
|
+
""
|
|
1554
|
+
]
|
|
1555
|
+
],
|
|
1556
|
+
propSources: [Rn],
|
|
1557
|
+
skippedNodes: [0],
|
|
1558
|
+
repeatNodeCount: 9,
|
|
1559
|
+
tokenData: "!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|caPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$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
|
1564
|
+
Nn,
|
|
1565
|
+
An,
|
|
1566
|
+
jn,
|
|
1567
|
+
0,
|
|
1568
|
+
1,
|
|
1569
|
+
2,
|
|
1570
|
+
3,
|
|
1571
|
+
4,
|
|
1572
|
+
5
|
|
1573
|
+
],
|
|
1574
|
+
topRules: { Document: [0, 16] },
|
|
1575
|
+
dialects: {
|
|
1576
|
+
noMatch: 0,
|
|
1577
|
+
selfClosing: 515
|
|
1578
|
+
},
|
|
1579
|
+
tokenPrec: 517
|
|
1580
|
+
});
|
|
1581
|
+
function Bn(e, t) {
|
|
1582
|
+
let n = Object.create(null);
|
|
1583
|
+
for (let r of e.getChildren(rn)) {
|
|
1584
|
+
let e = r.getChild(an), i = r.getChild(z) || r.getChild(on);
|
|
1585
|
+
e && (n[t.read(e.from, e.to)] = i ? i.type.id == z ? t.read(i.from + 1, i.to - 1) : t.read(i.from, i.to) : "");
|
|
1586
|
+
}
|
|
1587
|
+
return n;
|
|
1588
|
+
}
|
|
1589
|
+
function Vn(e, t) {
|
|
1590
|
+
let n = e.getChild(nn);
|
|
1591
|
+
return n ? t.read(n.from, n.to) : " ";
|
|
1592
|
+
}
|
|
1593
|
+
function Hn(e, t, n) {
|
|
1594
|
+
let r;
|
|
1595
|
+
for (let i of n) if (!i.attrs || i.attrs(r ||= Bn(e.node.parent.firstChild, t))) return {
|
|
1596
|
+
parser: i.parser,
|
|
1597
|
+
bracketed: !0
|
|
1598
|
+
};
|
|
1599
|
+
return null;
|
|
1600
|
+
}
|
|
1601
|
+
function Un(e = [], t = []) {
|
|
1602
|
+
let n = [], i = [], a = [], o = [];
|
|
1603
|
+
for (let t of e) (t.tag == "script" ? n : t.tag == "style" ? i : t.tag == "textarea" ? a : o).push(t);
|
|
1604
|
+
let s = t.length ? Object.create(null) : null;
|
|
1605
|
+
for (let e of t) (s[e.name] || (s[e.name] = [])).push(e);
|
|
1606
|
+
return r((e, t) => {
|
|
1607
|
+
let r = e.type.id;
|
|
1608
|
+
if (r == sn) return Hn(e, t, n);
|
|
1609
|
+
if (r == cn) return Hn(e, t, i);
|
|
1610
|
+
if (r == ln) return Hn(e, t, a);
|
|
1611
|
+
if (r == tn && o.length) {
|
|
1612
|
+
let n = e.node, r = n.firstChild, i = r && Vn(r, t), a;
|
|
1613
|
+
if (i) {
|
|
1614
|
+
for (let e of o) if (e.tag == i && (!e.attrs || e.attrs(a ||= Bn(r, t)))) {
|
|
1615
|
+
let t = n.lastChild, i = t.type.id == dn ? t.from : n.to;
|
|
1616
|
+
if (i > r.to) return {
|
|
1617
|
+
parser: e.parser,
|
|
1618
|
+
overlay: [{
|
|
1619
|
+
from: r.to,
|
|
1620
|
+
to: i
|
|
1621
|
+
}]
|
|
1622
|
+
};
|
|
1623
|
+
}
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
if (s && r == rn) {
|
|
1627
|
+
let n = e.node, r;
|
|
1628
|
+
if (r = n.firstChild) {
|
|
1629
|
+
let e = s[t.read(r.from, r.to)];
|
|
1630
|
+
if (e) for (let r of e) {
|
|
1631
|
+
if (r.tagName && r.tagName != Vn(n.parent, t)) continue;
|
|
1632
|
+
let e = n.lastChild;
|
|
1633
|
+
if (e.type.id == z) {
|
|
1634
|
+
let t = e.from + 1, n = e.lastChild, i = e.to - (n && n.isError ? 0 : 1);
|
|
1635
|
+
if (i > t) return {
|
|
1636
|
+
parser: r.parser,
|
|
1637
|
+
overlay: [{
|
|
1638
|
+
from: t,
|
|
1639
|
+
to: i
|
|
1640
|
+
}],
|
|
1641
|
+
bracketed: !0
|
|
1642
|
+
};
|
|
1643
|
+
} else if (e.type.id == on) return {
|
|
1644
|
+
parser: r.parser,
|
|
1645
|
+
overlay: [{
|
|
1646
|
+
from: e.from,
|
|
1647
|
+
to: e.to
|
|
1648
|
+
}]
|
|
1649
|
+
};
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
return null;
|
|
1654
|
+
});
|
|
1655
|
+
}
|
|
1656
|
+
//#endregion
|
|
1657
|
+
//#region ../../node_modules/@lezer/css/dist/index.js
|
|
1658
|
+
var Wn = 145, Gn = 1, Kn = 146, qn = 147, Jn = 2, Yn = 148, Xn = 3, Zn = 4, Qn = [
|
|
1659
|
+
9,
|
|
1660
|
+
10,
|
|
1661
|
+
11,
|
|
1662
|
+
12,
|
|
1663
|
+
13,
|
|
1664
|
+
32,
|
|
1665
|
+
133,
|
|
1666
|
+
160,
|
|
1667
|
+
5760,
|
|
1668
|
+
8192,
|
|
1669
|
+
8193,
|
|
1670
|
+
8194,
|
|
1671
|
+
8195,
|
|
1672
|
+
8196,
|
|
1673
|
+
8197,
|
|
1674
|
+
8198,
|
|
1675
|
+
8199,
|
|
1676
|
+
8200,
|
|
1677
|
+
8201,
|
|
1678
|
+
8202,
|
|
1679
|
+
8232,
|
|
1680
|
+
8233,
|
|
1681
|
+
8239,
|
|
1682
|
+
8287,
|
|
1683
|
+
12288
|
|
1684
|
+
], $n = 58, er = 40, tr = 95, nr = 91, V = 45, rr = 46, ir = 35, ar = 37, or = 38, sr = 92, cr = 10, lr = 42;
|
|
1685
|
+
function H(e) {
|
|
1686
|
+
return e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 161;
|
|
1687
|
+
}
|
|
1688
|
+
function ur(e) {
|
|
1689
|
+
return e >= 48 && e <= 57;
|
|
1690
|
+
}
|
|
1691
|
+
function dr(e) {
|
|
1692
|
+
return ur(e) || e >= 97 && e <= 102 || e >= 65 && e <= 70;
|
|
1693
|
+
}
|
|
1694
|
+
var fr = (e, t, n) => (r, i) => {
|
|
1695
|
+
for (let a = !1, o = 0, s = 0;; s++) {
|
|
1696
|
+
let { next: c } = r;
|
|
1697
|
+
if (H(c) || c == V || c == tr || a && ur(c)) !a && (c != V || s > 0) && (a = !0), o === s && c == V && o++, r.advance();
|
|
1698
|
+
else if (c == sr && r.peek(1) != cr) {
|
|
1699
|
+
if (r.advance(), dr(r.next)) {
|
|
1700
|
+
do
|
|
1701
|
+
r.advance();
|
|
1702
|
+
while (dr(r.next));
|
|
1703
|
+
r.next == 32 && r.advance();
|
|
1704
|
+
} else r.next > -1 && r.advance();
|
|
1705
|
+
a = !0;
|
|
1706
|
+
} else {
|
|
1707
|
+
a && r.acceptToken(o == 2 && i.canShift(Jn) ? t : c == er ? n : e);
|
|
1708
|
+
break;
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
}, pr = new f(fr(Kn, Jn, qn), { contextual: !0 }), mr = new f(fr(Yn, Xn, Zn), { contextual: !0 }), hr = new f((e) => {
|
|
1712
|
+
if (Qn.includes(e.peek(-1))) {
|
|
1713
|
+
let { next: t } = e;
|
|
1714
|
+
(H(t) || t == tr || t == ir || t == rr || t == lr || t == nr || t == $n && H(e.peek(1)) || t == V || t == or) && e.acceptToken(Wn);
|
|
1715
|
+
}
|
|
1716
|
+
}), gr = new f((e) => {
|
|
1717
|
+
if (!Qn.includes(e.peek(-1))) {
|
|
1718
|
+
let { next: t } = e;
|
|
1719
|
+
if (t == ar && (e.advance(), e.acceptToken(Gn)), H(t)) {
|
|
1720
|
+
do
|
|
1721
|
+
e.advance();
|
|
1722
|
+
while (H(e.next) || ur(e.next));
|
|
1723
|
+
e.acceptToken(Gn);
|
|
1724
|
+
}
|
|
1725
|
+
}
|
|
1726
|
+
}), _r = i({
|
|
1727
|
+
"AtKeyword import charset namespace keyframes media supports font-feature-values": s.definitionKeyword,
|
|
1728
|
+
"from to selector scope MatchFlag": s.keyword,
|
|
1729
|
+
NamespaceName: s.namespace,
|
|
1730
|
+
KeyframeName: s.labelName,
|
|
1731
|
+
KeyframeRangeName: s.operatorKeyword,
|
|
1732
|
+
TagName: s.tagName,
|
|
1733
|
+
ClassName: s.className,
|
|
1734
|
+
PseudoClassName: s.constant(s.className),
|
|
1735
|
+
IdName: s.labelName,
|
|
1736
|
+
"FeatureName PropertyName": s.propertyName,
|
|
1737
|
+
AttributeName: s.attributeName,
|
|
1738
|
+
NumberLiteral: s.number,
|
|
1739
|
+
KeywordQuery: s.keyword,
|
|
1740
|
+
UnaryQueryOp: s.operatorKeyword,
|
|
1741
|
+
"CallTag ValueName FontName": s.atom,
|
|
1742
|
+
VariableName: s.variableName,
|
|
1743
|
+
Callee: s.operatorKeyword,
|
|
1744
|
+
Unit: s.unit,
|
|
1745
|
+
"UniversalSelector NestingSelector": s.definitionOperator,
|
|
1746
|
+
"MatchOp CompareOp": s.compareOperator,
|
|
1747
|
+
"ChildOp SiblingOp, LogicOp": s.logicOperator,
|
|
1748
|
+
BinOp: s.arithmeticOperator,
|
|
1749
|
+
Important: s.modifier,
|
|
1750
|
+
Comment: s.blockComment,
|
|
1751
|
+
ColorLiteral: s.color,
|
|
1752
|
+
"ParenthesizedContent StringLiteral": s.string,
|
|
1753
|
+
":": s.punctuation,
|
|
1754
|
+
"PseudoOp #": s.derefOperator,
|
|
1755
|
+
"; , |": s.separator,
|
|
1756
|
+
"( )": s.paren,
|
|
1757
|
+
"[ ]": s.squareBracket,
|
|
1758
|
+
"{ }": s.brace
|
|
1759
|
+
}), vr = {
|
|
1760
|
+
__proto__: null,
|
|
1761
|
+
lang: 44,
|
|
1762
|
+
"nth-child": 44,
|
|
1763
|
+
"nth-last-child": 44,
|
|
1764
|
+
"nth-of-type": 44,
|
|
1765
|
+
"nth-last-of-type": 44,
|
|
1766
|
+
dir: 44,
|
|
1767
|
+
"host-context": 44,
|
|
1768
|
+
if: 90,
|
|
1769
|
+
url: 152,
|
|
1770
|
+
"url-prefix": 152,
|
|
1771
|
+
domain: 152,
|
|
1772
|
+
regexp: 152
|
|
1773
|
+
}, yr = {
|
|
1774
|
+
__proto__: null,
|
|
1775
|
+
or: 104,
|
|
1776
|
+
and: 104,
|
|
1777
|
+
not: 112,
|
|
1778
|
+
only: 112,
|
|
1779
|
+
layer: 206
|
|
1780
|
+
}, br = {
|
|
1781
|
+
__proto__: null,
|
|
1782
|
+
selector: 118,
|
|
1783
|
+
style: 124,
|
|
1784
|
+
layer: 202
|
|
1785
|
+
}, xr = {
|
|
1786
|
+
__proto__: null,
|
|
1787
|
+
"@import": 198,
|
|
1788
|
+
"@media": 210,
|
|
1789
|
+
"@charset": 214,
|
|
1790
|
+
"@namespace": 218,
|
|
1791
|
+
"@keyframes": 224,
|
|
1792
|
+
"@supports": 236,
|
|
1793
|
+
"@scope": 240,
|
|
1794
|
+
"@font-feature-values": 246
|
|
1795
|
+
}, Sr = {
|
|
1796
|
+
__proto__: null,
|
|
1797
|
+
to: 243
|
|
1798
|
+
}, Cr = p.deserialize({
|
|
1799
|
+
version: 14,
|
|
1800
|
+
states: "MlQYQdOOO#}QdOOP$UO`OOO%OQaO'#CfOOQP'#Ce'#CeO%VQdO'#CgO%[Q`O'#CgO%aQaO'#FnO&XQdO'#CkO&xQaO'#CcO'SQdO'#CnO'_QdO'#EOO'dQdO'#EQO'oQdO'#EXO'oQdO'#E[OOQP'#Fn'#FnO)RQhO'#E}OOQS'#Fm'#FmOOQS'#FQ'#FQQYQdOOO)YQdO'#EbO*iQhO'#EhO)YQdO'#EjO*pQdO'#ElO*{QdO'#EoO)}QhO'#EuO+TQdO'#EwO+`QdO'#EzO+eQaO'#CfO+lQ`O'#E_O+qQ`O'#F{O+|QdO'#F{QOQ`OOP,WO&jO'#CaPOOO)CA])CA]OOQP'#Ci'#CiOOQP,59R,59RO%VQdO,59ROOQP'#Cm'#CmOOQP,59V,59VO&XQdO,59VO,cQdO,59YO'_QdO,5:jO'dQdO,5:lO'oQdO,5:sO'oQdO,5:uO'oQdO,5:vO'oQdO'#FXO,nQ`O,58}O,vQdO'#E^OOQS,58},58}OOQP'#Cq'#CqOOQO'#D|'#D|OOQP,59Y,59YO,}Q`O,59YO-SQ`O,59YOOQP'#EP'#EPOOQP,5:j,5:jO-XQpO'#ERO-dQdO'#ESO-iQ`O'#ESO-nQpO,5:lO.XQaO,5:sO.oQaO,5:vOOQW'#D^'#D^O/nQhO'#DgO0RQhO,5;iO)}QhO'#DeO0`Q`O'#DnO0eQhO'#DxOOQW'#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'uX%t$W%m&{'uR%k$SR%Z#pQpPR#o!RQ!zeQ$f!rR%}$g",
|
|
1803
|
+
nodeNames: "⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector StyleQuery style ParenthesedQuery CallQuery ArgList , UnaryQuery ParenthesedQuery BinaryQuery ParenthesedQuery ParenthesedQuery StyleFeature StyleRange PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles",
|
|
1804
|
+
maxTerm: 172,
|
|
1805
|
+
nodeProps: [
|
|
1806
|
+
[
|
|
1807
|
+
"isolate",
|
|
1808
|
+
-2,
|
|
1809
|
+
5,
|
|
1810
|
+
39,
|
|
1811
|
+
""
|
|
1812
|
+
],
|
|
1813
|
+
[
|
|
1814
|
+
"openedBy",
|
|
1815
|
+
23,
|
|
1816
|
+
"(",
|
|
1817
|
+
31,
|
|
1818
|
+
"[",
|
|
1819
|
+
34,
|
|
1820
|
+
"{"
|
|
1821
|
+
],
|
|
1822
|
+
[
|
|
1823
|
+
"closedBy",
|
|
1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846
|
+
2,
|
|
1847
|
+
3,
|
|
1848
|
+
4,
|
|
1849
|
+
new d("m~RRYZ[z{a~~g~aO$_~~dP!P!Qg~lO$`~~", 28, 152)
|
|
1850
|
+
],
|
|
1851
|
+
topRules: {
|
|
1852
|
+
StyleSheet: [0, 6],
|
|
1853
|
+
Styles: [1, 126]
|
|
1854
|
+
},
|
|
1855
|
+
dynamicPrecedences: { 94: 1 },
|
|
1856
|
+
specialized: [
|
|
1857
|
+
{
|
|
1858
|
+
term: 147,
|
|
1859
|
+
get: (e) => vr[e] || -1
|
|
1860
|
+
},
|
|
1861
|
+
{
|
|
1862
|
+
term: 148,
|
|
1863
|
+
get: (e) => yr[e] || -1
|
|
1864
|
+
},
|
|
1865
|
+
{
|
|
1866
|
+
term: 4,
|
|
1867
|
+
get: (e) => br[e] || -1
|
|
1868
|
+
},
|
|
1869
|
+
{
|
|
1870
|
+
term: 28,
|
|
1871
|
+
get: (e) => xr[e] || -1
|
|
1872
|
+
},
|
|
1873
|
+
{
|
|
1874
|
+
term: 146,
|
|
1875
|
+
get: (e) => Sr[e] || -1
|
|
1876
|
+
}
|
|
1877
|
+
],
|
|
1878
|
+
tokenPrec: 2405
|
|
1879
|
+
}), wr = null;
|
|
1880
|
+
function Tr() {
|
|
1881
|
+
if (!wr && typeof document == "object" && document.body) {
|
|
1882
|
+
let { style: e } = document.body, t = [], n = /* @__PURE__ */ new Set();
|
|
1883
|
+
for (let r in e) r != "cssText" && r != "cssFloat" && typeof e[r] == "string" && (/[A-Z]/.test(r) && (r = r.replace(/[A-Z]/g, (e) => "-" + e.toLowerCase())), n.has(r) || (t.push(r), n.add(r)));
|
|
1884
|
+
wr = t.sort().map((e) => ({
|
|
1885
|
+
type: "property",
|
|
1886
|
+
label: e,
|
|
1887
|
+
apply: e + ": "
|
|
1888
|
+
}));
|
|
1889
|
+
}
|
|
1890
|
+
return wr || [];
|
|
1891
|
+
}
|
|
1892
|
+
var Er = /*@__PURE__*/ (/* @__PURE__ */ "active.after.any-link.autofill.backdrop.before.checked.cue.default.defined.disabled.empty.enabled.file-selector-button.first.first-child.first-letter.first-line.first-of-type.focus.focus-visible.focus-within.fullscreen.has.host.host-context.hover.in-range.indeterminate.invalid.is.lang.last-child.last-of-type.left.link.marker.modal.not.nth-child.nth-last-child.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.part.placeholder.placeholder-shown.read-only.read-write.required.right.root.scope.selection.slotted.target.target-text.valid.visited.where".split(".")).map((e) => ({
|
|
1893
|
+
type: "class",
|
|
1894
|
+
label: e
|
|
1895
|
+
})), Dr = /*@__PURE__*/ (/* @__PURE__ */ "above.absolute.activeborder.additive.activecaption.after-white-space.ahead.alias.all.all-scroll.alphabetic.alternate.always.antialiased.appworkspace.asterisks.attr.auto.auto-flow.avoid.avoid-column.avoid-page.avoid-region.axis-pan.background.backwards.baseline.below.bidi-override.blink.block.block-axis.bold.bolder.border.border-box.both.bottom.break.break-all.break-word.bullets.button.button-bevel.buttonface.buttonhighlight.buttonshadow.buttontext.calc.capitalize.caps-lock-indicator.caption.captiontext.caret.cell.center.checkbox.circle.cjk-decimal.clear.clip.close-quote.col-resize.collapse.color.color-burn.color-dodge.column.column-reverse.compact.condensed.contain.content.contents.content-box.context-menu.continuous.copy.counter.counters.cover.crop.cross.crosshair.currentcolor.cursive.cyclic.darken.dashed.decimal.decimal-leading-zero.default.default-button.dense.destination-atop.destination-in.destination-out.destination-over.difference.disc.discard.disclosure-closed.disclosure-open.document.dot-dash.dot-dot-dash.dotted.double.down.e-resize.ease.ease-in.ease-in-out.ease-out.element.ellipse.ellipsis.embed.end.ethiopic-abegede-gez.ethiopic-halehame-aa-er.ethiopic-halehame-gez.ew-resize.exclusion.expanded.extends.extra-condensed.extra-expanded.fantasy.fast.fill.fill-box.fixed.flat.flex.flex-end.flex-start.footnotes.forwards.from.geometricPrecision.graytext.grid.groove.hand.hard-light.help.hidden.hide.higher.highlight.highlighttext.horizontal.hsl.hsla.hue.icon.ignore.inactiveborder.inactivecaption.inactivecaptiontext.infinite.infobackground.infotext.inherit.initial.inline.inline-axis.inline-block.inline-flex.inline-grid.inline-table.inset.inside.intrinsic.invert.italic.justify.keep-all.landscape.large.larger.left.level.lighter.lighten.line-through.linear.linear-gradient.lines.list-item.listbox.listitem.local.logical.loud.lower.lower-hexadecimal.lower-latin.lower-norwegian.lowercase.ltr.luminosity.manipulation.match.matrix.matrix3d.medium.menu.menutext.message-box.middle.min-intrinsic.mix.monospace.move.multiple.multiple_mask_images.multiply.n-resize.narrower.ne-resize.nesw-resize.no-close-quote.no-drop.no-open-quote.no-repeat.none.normal.not-allowed.nowrap.ns-resize.numbers.numeric.nw-resize.nwse-resize.oblique.opacity.open-quote.optimizeLegibility.optimizeSpeed.outset.outside.outside-shape.overlay.overline.padding.padding-box.painted.page.paused.perspective.pinch-zoom.plus-darker.plus-lighter.pointer.polygon.portrait.pre.pre-line.pre-wrap.preserve-3d.progress.push-button.radial-gradient.radio.read-only.read-write.read-write-plaintext-only.rectangle.region.relative.repeat.repeating-linear-gradient.repeating-radial-gradient.repeat-x.repeat-y.reset.reverse.rgb.rgba.ridge.right.rotate.rotate3d.rotateX.rotateY.rotateZ.round.row.row-resize.row-reverse.rtl.run-in.running.s-resize.sans-serif.saturation.scale.scale3d.scaleX.scaleY.scaleZ.screen.scroll.scrollbar.scroll-position.se-resize.self-start.self-end.semi-condensed.semi-expanded.separate.serif.show.single.skew.skewX.skewY.skip-white-space.slide.slider-horizontal.slider-vertical.sliderthumb-horizontal.sliderthumb-vertical.slow.small.small-caps.small-caption.smaller.soft-light.solid.source-atop.source-in.source-out.source-over.space.space-around.space-between.space-evenly.spell-out.square.start.static.status-bar.stretch.stroke.stroke-box.sub.subpixel-antialiased.svg_masks.super.sw-resize.symbolic.symbols.system-ui.table.table-caption.table-cell.table-column.table-column-group.table-footer-group.table-header-group.table-row.table-row-group.text.text-bottom.text-top.textarea.textfield.thick.thin.threeddarkshadow.threedface.threedhighlight.threedlightshadow.threedshadow.to.top.transform.translate.translate3d.translateX.translateY.translateZ.transparent.ultra-condensed.ultra-expanded.underline.unidirectional-pan.unset.up.upper-latin.uppercase.url.var.vertical.vertical-text.view-box.visible.visibleFill.visiblePainted.visibleStroke.visual.w-resize.wait.wave.wider.window.windowframe.windowtext.words.wrap.wrap-reverse.x-large.x-small.xor.xx-large.xx-small".split(".")).map((e) => ({
|
|
1896
|
+
type: "keyword",
|
|
1897
|
+
label: e
|
|
1898
|
+
})).concat(/*@__PURE__*/ (/* @__PURE__ */ "aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.grey.green.greenyellow.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen".split(".")).map((e) => ({
|
|
1899
|
+
type: "constant",
|
|
1900
|
+
label: e
|
|
1901
|
+
}))), Or = /*@__PURE__*/ (/* @__PURE__ */ "a.abbr.address.article.aside.b.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.dd.del.details.dfn.dialog.div.dl.dt.em.figcaption.figure.footer.form.header.hgroup.h1.h2.h3.h4.h5.h6.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.main.meter.nav.ol.output.p.pre.ruby.section.select.small.source.span.strong.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.tr.u.ul".split(".")).map((e) => ({
|
|
1902
|
+
type: "type",
|
|
1903
|
+
label: e
|
|
1904
|
+
})), kr = /*@__PURE__*/ [
|
|
1905
|
+
"@charset",
|
|
1906
|
+
"@color-profile",
|
|
1907
|
+
"@container",
|
|
1908
|
+
"@counter-style",
|
|
1909
|
+
"@font-face",
|
|
1910
|
+
"@font-feature-values",
|
|
1911
|
+
"@font-palette-values",
|
|
1912
|
+
"@import",
|
|
1913
|
+
"@keyframes",
|
|
1914
|
+
"@layer",
|
|
1915
|
+
"@media",
|
|
1916
|
+
"@namespace",
|
|
1917
|
+
"@page",
|
|
1918
|
+
"@position-try",
|
|
1919
|
+
"@property",
|
|
1920
|
+
"@scope",
|
|
1921
|
+
"@starting-style",
|
|
1922
|
+
"@supports",
|
|
1923
|
+
"@view-transition"
|
|
1924
|
+
].map((e) => ({
|
|
1925
|
+
type: "keyword",
|
|
1926
|
+
label: e
|
|
1927
|
+
})), U = /^(\w[\w-]*|-\w[\w-]*|)$/, Ar = /^-(-[\w-]*)?$/;
|
|
1928
|
+
function jr(e, t) {
|
|
1929
|
+
if ((e.name == "(" || e.type.isError) && (e = e.parent || e), e.name != "ArgList") return !1;
|
|
1930
|
+
let n = e.parent?.firstChild;
|
|
1931
|
+
return n?.name == "Callee" && t.sliceString(n.from, n.to) == "var";
|
|
1932
|
+
}
|
|
1933
|
+
var Mr = /*@__PURE__*/ new n(), Nr = ["Declaration"];
|
|
1934
|
+
function Pr(e) {
|
|
1935
|
+
for (let t = e;;) {
|
|
1936
|
+
if (t.type.isTop) return t;
|
|
1937
|
+
if (!(t = t.parent)) return e;
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
function Fr(t, n, r) {
|
|
1941
|
+
if (n.to - n.from > 4096) {
|
|
1942
|
+
let i = Mr.get(n);
|
|
1943
|
+
if (i) return i;
|
|
1944
|
+
let a = [], o = /* @__PURE__ */ new Set(), s = n.cursor(e.IncludeAnonymous);
|
|
1945
|
+
if (s.firstChild()) do
|
|
1946
|
+
for (let e of Fr(t, s.node, r)) o.has(e.label) || (o.add(e.label), a.push(e));
|
|
1947
|
+
while (s.nextSibling());
|
|
1948
|
+
return Mr.set(n, a), a;
|
|
1949
|
+
}
|
|
1950
|
+
{
|
|
1951
|
+
let e = [], i = /* @__PURE__ */ new Set();
|
|
1952
|
+
return n.cursor().iterate((n) => {
|
|
1953
|
+
if (r(n) && n.matchContext(Nr) && n.node.nextSibling?.name == ":") {
|
|
1954
|
+
let r = t.sliceString(n.from, n.to);
|
|
1955
|
+
i.has(r) || (i.add(r), e.push({
|
|
1956
|
+
label: r,
|
|
1957
|
+
type: "variable"
|
|
1958
|
+
}));
|
|
1959
|
+
}
|
|
1960
|
+
}), e;
|
|
1961
|
+
}
|
|
1962
|
+
}
|
|
1963
|
+
var Ir = /*@__PURE__*/ ((e) => (t) => {
|
|
1964
|
+
let { state: n, pos: r } = t, i = v(n).resolveInner(r, -1), a = i.type.isError && i.from == i.to - 1 && n.doc.sliceString(i.from, i.to) == "-";
|
|
1965
|
+
if (i.name == "PropertyName" || (a || i.name == "TagName") && /^(Block|Styles)$/.test(i.resolve(i.to).name)) return {
|
|
1966
|
+
from: i.from,
|
|
1967
|
+
options: Tr(),
|
|
1968
|
+
validFor: U
|
|
1969
|
+
};
|
|
1970
|
+
if (i.name == "ValueName") return {
|
|
1971
|
+
from: i.from,
|
|
1972
|
+
options: Dr,
|
|
1973
|
+
validFor: U
|
|
1974
|
+
};
|
|
1975
|
+
if (i.name == "PseudoClassName") return {
|
|
1976
|
+
from: i.from,
|
|
1977
|
+
options: Er,
|
|
1978
|
+
validFor: U
|
|
1979
|
+
};
|
|
1980
|
+
if (e(i) || (t.explicit || a) && jr(i, n.doc)) return {
|
|
1981
|
+
from: e(i) || a ? i.from : r,
|
|
1982
|
+
options: Fr(n.doc, Pr(i), e),
|
|
1983
|
+
validFor: Ar
|
|
1984
|
+
};
|
|
1985
|
+
if (i.name == "TagName") {
|
|
1986
|
+
for (let { parent: e } = i; e; e = e.parent) if (e.name == "Block") return {
|
|
1987
|
+
from: i.from,
|
|
1988
|
+
options: Tr(),
|
|
1989
|
+
validFor: U
|
|
1990
|
+
};
|
|
1991
|
+
return {
|
|
1992
|
+
from: i.from,
|
|
1993
|
+
options: Or,
|
|
1994
|
+
validFor: U
|
|
1995
|
+
};
|
|
1996
|
+
}
|
|
1997
|
+
if (i.name == "AtKeyword") return {
|
|
1998
|
+
from: i.from,
|
|
1999
|
+
options: kr,
|
|
2000
|
+
validFor: U
|
|
2001
|
+
};
|
|
2002
|
+
if (!t.explicit) return null;
|
|
2003
|
+
let o = i.resolve(r), s = o.childBefore(r);
|
|
2004
|
+
return s && s.name == ":" && o.name == "PseudoClassSelector" ? {
|
|
2005
|
+
from: r,
|
|
2006
|
+
options: Er,
|
|
2007
|
+
validFor: U
|
|
2008
|
+
} : s && s.name == ":" && o.name == "Declaration" || o.name == "ArgList" ? {
|
|
2009
|
+
from: r,
|
|
2010
|
+
options: Dr,
|
|
2011
|
+
validFor: U
|
|
2012
|
+
} : o.name == "Block" || o.name == "Styles" ? {
|
|
2013
|
+
from: r,
|
|
2014
|
+
options: Tr(),
|
|
2015
|
+
validFor: U
|
|
2016
|
+
} : null;
|
|
2017
|
+
})((e) => e.name == "VariableName"), W = /*@__PURE__*/ _e.define({
|
|
2018
|
+
name: "css",
|
|
2019
|
+
parser: /*@__PURE__*/ Cr.configure({ props: [/*@__PURE__*/ ce.add({ Declaration: /*@__PURE__*/ ye() }), /*@__PURE__*/ b.add({ "Block KeyframeList": de })] }),
|
|
2020
|
+
languageData: {
|
|
2021
|
+
commentTokens: { block: {
|
|
2022
|
+
open: "/*",
|
|
2023
|
+
close: "*/"
|
|
2024
|
+
} },
|
|
2025
|
+
indentOnInput: /^\s*\}$/,
|
|
2026
|
+
wordChars: "-"
|
|
2027
|
+
}
|
|
2028
|
+
});
|
|
2029
|
+
function Lr() {
|
|
2030
|
+
return new y(W, W.data.of({ autocomplete: Ir }));
|
|
2031
|
+
}
|
|
2032
|
+
//#endregion
|
|
2033
|
+
//#region ../../node_modules/@codemirror/lang-html/dist/index.js
|
|
2034
|
+
var G = [
|
|
2035
|
+
"_blank",
|
|
2036
|
+
"_self",
|
|
2037
|
+
"_top",
|
|
2038
|
+
"_parent"
|
|
2039
|
+
], Rr = [
|
|
2040
|
+
"ascii",
|
|
2041
|
+
"utf-8",
|
|
2042
|
+
"utf-16",
|
|
2043
|
+
"latin1",
|
|
2044
|
+
"latin1"
|
|
2045
|
+
], zr = [
|
|
2046
|
+
"get",
|
|
2047
|
+
"post",
|
|
2048
|
+
"put",
|
|
2049
|
+
"delete"
|
|
2050
|
+
], Br = [
|
|
2051
|
+
"application/x-www-form-urlencoded",
|
|
2052
|
+
"multipart/form-data",
|
|
2053
|
+
"text/plain"
|
|
2054
|
+
], K = ["true", "false"], q = {}, Vr = {
|
|
2055
|
+
a: { attrs: {
|
|
2056
|
+
href: null,
|
|
2057
|
+
ping: null,
|
|
2058
|
+
type: null,
|
|
2059
|
+
media: null,
|
|
2060
|
+
target: G,
|
|
2061
|
+
hreflang: null
|
|
2062
|
+
} },
|
|
2063
|
+
abbr: q,
|
|
2064
|
+
address: q,
|
|
2065
|
+
area: { attrs: {
|
|
2066
|
+
alt: null,
|
|
2067
|
+
coords: null,
|
|
2068
|
+
href: null,
|
|
2069
|
+
target: null,
|
|
2070
|
+
ping: null,
|
|
2071
|
+
media: null,
|
|
2072
|
+
hreflang: null,
|
|
2073
|
+
type: null,
|
|
2074
|
+
shape: [
|
|
2075
|
+
"default",
|
|
2076
|
+
"rect",
|
|
2077
|
+
"circle",
|
|
2078
|
+
"poly"
|
|
2079
|
+
]
|
|
2080
|
+
} },
|
|
2081
|
+
article: q,
|
|
2082
|
+
aside: q,
|
|
2083
|
+
audio: { attrs: {
|
|
2084
|
+
src: null,
|
|
2085
|
+
mediagroup: null,
|
|
2086
|
+
crossorigin: ["anonymous", "use-credentials"],
|
|
2087
|
+
preload: [
|
|
2088
|
+
"none",
|
|
2089
|
+
"metadata",
|
|
2090
|
+
"auto"
|
|
2091
|
+
],
|
|
2092
|
+
autoplay: ["autoplay"],
|
|
2093
|
+
loop: ["loop"],
|
|
2094
|
+
controls: ["controls"]
|
|
2095
|
+
} },
|
|
2096
|
+
b: q,
|
|
2097
|
+
base: { attrs: {
|
|
2098
|
+
href: null,
|
|
2099
|
+
target: G
|
|
2100
|
+
} },
|
|
2101
|
+
bdi: q,
|
|
2102
|
+
bdo: q,
|
|
2103
|
+
blockquote: { attrs: { cite: null } },
|
|
2104
|
+
body: q,
|
|
2105
|
+
br: q,
|
|
2106
|
+
button: { attrs: {
|
|
2107
|
+
form: null,
|
|
2108
|
+
formaction: null,
|
|
2109
|
+
name: null,
|
|
2110
|
+
value: null,
|
|
2111
|
+
autofocus: ["autofocus"],
|
|
2112
|
+
disabled: ["autofocus"],
|
|
2113
|
+
formenctype: Br,
|
|
2114
|
+
formmethod: zr,
|
|
2115
|
+
formnovalidate: ["novalidate"],
|
|
2116
|
+
formtarget: G,
|
|
2117
|
+
type: [
|
|
2118
|
+
"submit",
|
|
2119
|
+
"reset",
|
|
2120
|
+
"button"
|
|
2121
|
+
]
|
|
2122
|
+
} },
|
|
2123
|
+
canvas: { attrs: {
|
|
2124
|
+
width: null,
|
|
2125
|
+
height: null
|
|
2126
|
+
} },
|
|
2127
|
+
caption: q,
|
|
2128
|
+
center: q,
|
|
2129
|
+
cite: q,
|
|
2130
|
+
code: q,
|
|
2131
|
+
col: { attrs: { span: null } },
|
|
2132
|
+
colgroup: { attrs: { span: null } },
|
|
2133
|
+
command: { attrs: {
|
|
2134
|
+
type: [
|
|
2135
|
+
"command",
|
|
2136
|
+
"checkbox",
|
|
2137
|
+
"radio"
|
|
2138
|
+
],
|
|
2139
|
+
label: null,
|
|
2140
|
+
icon: null,
|
|
2141
|
+
radiogroup: null,
|
|
2142
|
+
command: null,
|
|
2143
|
+
title: null,
|
|
2144
|
+
disabled: ["disabled"],
|
|
2145
|
+
checked: ["checked"]
|
|
2146
|
+
} },
|
|
2147
|
+
data: { attrs: { value: null } },
|
|
2148
|
+
datagrid: { attrs: {
|
|
2149
|
+
disabled: ["disabled"],
|
|
2150
|
+
multiple: ["multiple"]
|
|
2151
|
+
} },
|
|
2152
|
+
datalist: { attrs: { data: null } },
|
|
2153
|
+
dd: q,
|
|
2154
|
+
del: { attrs: {
|
|
2155
|
+
cite: null,
|
|
2156
|
+
datetime: null
|
|
2157
|
+
} },
|
|
2158
|
+
details: { attrs: { open: ["open"] } },
|
|
2159
|
+
dfn: q,
|
|
2160
|
+
div: q,
|
|
2161
|
+
dl: q,
|
|
2162
|
+
dt: q,
|
|
2163
|
+
em: q,
|
|
2164
|
+
embed: { attrs: {
|
|
2165
|
+
src: null,
|
|
2166
|
+
type: null,
|
|
2167
|
+
width: null,
|
|
2168
|
+
height: null
|
|
2169
|
+
} },
|
|
2170
|
+
eventsource: { attrs: { src: null } },
|
|
2171
|
+
fieldset: { attrs: {
|
|
2172
|
+
disabled: ["disabled"],
|
|
2173
|
+
form: null,
|
|
2174
|
+
name: null
|
|
2175
|
+
} },
|
|
2176
|
+
figcaption: q,
|
|
2177
|
+
figure: q,
|
|
2178
|
+
footer: q,
|
|
2179
|
+
form: { attrs: {
|
|
2180
|
+
action: null,
|
|
2181
|
+
name: null,
|
|
2182
|
+
"accept-charset": Rr,
|
|
2183
|
+
autocomplete: ["on", "off"],
|
|
2184
|
+
enctype: Br,
|
|
2185
|
+
method: zr,
|
|
2186
|
+
novalidate: ["novalidate"],
|
|
2187
|
+
target: G
|
|
2188
|
+
} },
|
|
2189
|
+
h1: q,
|
|
2190
|
+
h2: q,
|
|
2191
|
+
h3: q,
|
|
2192
|
+
h4: q,
|
|
2193
|
+
h5: q,
|
|
2194
|
+
h6: q,
|
|
2195
|
+
head: { children: [
|
|
2196
|
+
"title",
|
|
2197
|
+
"base",
|
|
2198
|
+
"link",
|
|
2199
|
+
"style",
|
|
2200
|
+
"meta",
|
|
2201
|
+
"script",
|
|
2202
|
+
"noscript",
|
|
2203
|
+
"command"
|
|
2204
|
+
] },
|
|
2205
|
+
header: q,
|
|
2206
|
+
hgroup: q,
|
|
2207
|
+
hr: q,
|
|
2208
|
+
html: { attrs: { manifest: null } },
|
|
2209
|
+
i: q,
|
|
2210
|
+
iframe: { attrs: {
|
|
2211
|
+
src: null,
|
|
2212
|
+
srcdoc: null,
|
|
2213
|
+
name: null,
|
|
2214
|
+
width: null,
|
|
2215
|
+
height: null,
|
|
2216
|
+
sandbox: [
|
|
2217
|
+
"allow-top-navigation",
|
|
2218
|
+
"allow-same-origin",
|
|
2219
|
+
"allow-forms",
|
|
2220
|
+
"allow-scripts"
|
|
2221
|
+
],
|
|
2222
|
+
seamless: ["seamless"]
|
|
2223
|
+
} },
|
|
2224
|
+
img: { attrs: {
|
|
2225
|
+
alt: null,
|
|
2226
|
+
src: null,
|
|
2227
|
+
ismap: null,
|
|
2228
|
+
usemap: null,
|
|
2229
|
+
width: null,
|
|
2230
|
+
height: null,
|
|
2231
|
+
crossorigin: ["anonymous", "use-credentials"]
|
|
2232
|
+
} },
|
|
2233
|
+
input: { attrs: {
|
|
2234
|
+
alt: null,
|
|
2235
|
+
dirname: null,
|
|
2236
|
+
form: null,
|
|
2237
|
+
formaction: null,
|
|
2238
|
+
height: null,
|
|
2239
|
+
list: null,
|
|
2240
|
+
max: null,
|
|
2241
|
+
maxlength: null,
|
|
2242
|
+
min: null,
|
|
2243
|
+
name: null,
|
|
2244
|
+
pattern: null,
|
|
2245
|
+
placeholder: null,
|
|
2246
|
+
size: null,
|
|
2247
|
+
src: null,
|
|
2248
|
+
step: null,
|
|
2249
|
+
value: null,
|
|
2250
|
+
width: null,
|
|
2251
|
+
accept: [
|
|
2252
|
+
"audio/*",
|
|
2253
|
+
"video/*",
|
|
2254
|
+
"image/*"
|
|
2255
|
+
],
|
|
2256
|
+
autocomplete: ["on", "off"],
|
|
2257
|
+
autofocus: ["autofocus"],
|
|
2258
|
+
checked: ["checked"],
|
|
2259
|
+
disabled: ["disabled"],
|
|
2260
|
+
formenctype: Br,
|
|
2261
|
+
formmethod: zr,
|
|
2262
|
+
formnovalidate: ["novalidate"],
|
|
2263
|
+
formtarget: G,
|
|
2264
|
+
multiple: ["multiple"],
|
|
2265
|
+
readonly: ["readonly"],
|
|
2266
|
+
required: ["required"],
|
|
2267
|
+
type: [
|
|
2268
|
+
"hidden",
|
|
2269
|
+
"text",
|
|
2270
|
+
"search",
|
|
2271
|
+
"tel",
|
|
2272
|
+
"url",
|
|
2273
|
+
"email",
|
|
2274
|
+
"password",
|
|
2275
|
+
"datetime",
|
|
2276
|
+
"date",
|
|
2277
|
+
"month",
|
|
2278
|
+
"week",
|
|
2279
|
+
"time",
|
|
2280
|
+
"datetime-local",
|
|
2281
|
+
"number",
|
|
2282
|
+
"range",
|
|
2283
|
+
"color",
|
|
2284
|
+
"checkbox",
|
|
2285
|
+
"radio",
|
|
2286
|
+
"file",
|
|
2287
|
+
"submit",
|
|
2288
|
+
"image",
|
|
2289
|
+
"reset",
|
|
2290
|
+
"button"
|
|
2291
|
+
]
|
|
2292
|
+
} },
|
|
2293
|
+
ins: { attrs: {
|
|
2294
|
+
cite: null,
|
|
2295
|
+
datetime: null
|
|
2296
|
+
} },
|
|
2297
|
+
kbd: q,
|
|
2298
|
+
keygen: { attrs: {
|
|
2299
|
+
challenge: null,
|
|
2300
|
+
form: null,
|
|
2301
|
+
name: null,
|
|
2302
|
+
autofocus: ["autofocus"],
|
|
2303
|
+
disabled: ["disabled"],
|
|
2304
|
+
keytype: ["RSA"]
|
|
2305
|
+
} },
|
|
2306
|
+
label: { attrs: {
|
|
2307
|
+
for: null,
|
|
2308
|
+
form: null
|
|
2309
|
+
} },
|
|
2310
|
+
legend: q,
|
|
2311
|
+
li: { attrs: { value: null } },
|
|
2312
|
+
link: { attrs: {
|
|
2313
|
+
href: null,
|
|
2314
|
+
type: null,
|
|
2315
|
+
hreflang: null,
|
|
2316
|
+
media: null,
|
|
2317
|
+
sizes: [
|
|
2318
|
+
"all",
|
|
2319
|
+
"16x16",
|
|
2320
|
+
"16x16 32x32",
|
|
2321
|
+
"16x16 32x32 64x64"
|
|
2322
|
+
]
|
|
2323
|
+
} },
|
|
2324
|
+
map: { attrs: { name: null } },
|
|
2325
|
+
mark: q,
|
|
2326
|
+
menu: { attrs: {
|
|
2327
|
+
label: null,
|
|
2328
|
+
type: [
|
|
2329
|
+
"list",
|
|
2330
|
+
"context",
|
|
2331
|
+
"toolbar"
|
|
2332
|
+
]
|
|
2333
|
+
} },
|
|
2334
|
+
meta: { attrs: {
|
|
2335
|
+
content: null,
|
|
2336
|
+
charset: Rr,
|
|
2337
|
+
name: [
|
|
2338
|
+
"viewport",
|
|
2339
|
+
"application-name",
|
|
2340
|
+
"author",
|
|
2341
|
+
"description",
|
|
2342
|
+
"generator",
|
|
2343
|
+
"keywords"
|
|
2344
|
+
],
|
|
2345
|
+
"http-equiv": [
|
|
2346
|
+
"content-language",
|
|
2347
|
+
"content-type",
|
|
2348
|
+
"default-style",
|
|
2349
|
+
"refresh"
|
|
2350
|
+
]
|
|
2351
|
+
} },
|
|
2352
|
+
meter: { attrs: {
|
|
2353
|
+
value: null,
|
|
2354
|
+
min: null,
|
|
2355
|
+
low: null,
|
|
2356
|
+
high: null,
|
|
2357
|
+
max: null,
|
|
2358
|
+
optimum: null
|
|
2359
|
+
} },
|
|
2360
|
+
nav: q,
|
|
2361
|
+
noscript: q,
|
|
2362
|
+
object: { attrs: {
|
|
2363
|
+
data: null,
|
|
2364
|
+
type: null,
|
|
2365
|
+
name: null,
|
|
2366
|
+
usemap: null,
|
|
2367
|
+
form: null,
|
|
2368
|
+
width: null,
|
|
2369
|
+
height: null,
|
|
2370
|
+
typemustmatch: ["typemustmatch"]
|
|
2371
|
+
} },
|
|
2372
|
+
ol: {
|
|
2373
|
+
attrs: {
|
|
2374
|
+
reversed: ["reversed"],
|
|
2375
|
+
start: null,
|
|
2376
|
+
type: [
|
|
2377
|
+
"1",
|
|
2378
|
+
"a",
|
|
2379
|
+
"A",
|
|
2380
|
+
"i",
|
|
2381
|
+
"I"
|
|
2382
|
+
]
|
|
2383
|
+
},
|
|
2384
|
+
children: [
|
|
2385
|
+
"li",
|
|
2386
|
+
"script",
|
|
2387
|
+
"template",
|
|
2388
|
+
"ul",
|
|
2389
|
+
"ol"
|
|
2390
|
+
]
|
|
2391
|
+
},
|
|
2392
|
+
optgroup: { attrs: {
|
|
2393
|
+
disabled: ["disabled"],
|
|
2394
|
+
label: null
|
|
2395
|
+
} },
|
|
2396
|
+
option: { attrs: {
|
|
2397
|
+
disabled: ["disabled"],
|
|
2398
|
+
label: null,
|
|
2399
|
+
selected: ["selected"],
|
|
2400
|
+
value: null
|
|
2401
|
+
} },
|
|
2402
|
+
output: { attrs: {
|
|
2403
|
+
for: null,
|
|
2404
|
+
form: null,
|
|
2405
|
+
name: null
|
|
2406
|
+
} },
|
|
2407
|
+
p: q,
|
|
2408
|
+
param: { attrs: {
|
|
2409
|
+
name: null,
|
|
2410
|
+
value: null
|
|
2411
|
+
} },
|
|
2412
|
+
pre: q,
|
|
2413
|
+
progress: { attrs: {
|
|
2414
|
+
value: null,
|
|
2415
|
+
max: null
|
|
2416
|
+
} },
|
|
2417
|
+
q: { attrs: { cite: null } },
|
|
2418
|
+
rp: q,
|
|
2419
|
+
rt: q,
|
|
2420
|
+
ruby: q,
|
|
2421
|
+
samp: q,
|
|
2422
|
+
script: { attrs: {
|
|
2423
|
+
type: ["text/javascript"],
|
|
2424
|
+
src: null,
|
|
2425
|
+
async: ["async"],
|
|
2426
|
+
defer: ["defer"],
|
|
2427
|
+
charset: Rr
|
|
2428
|
+
} },
|
|
2429
|
+
section: q,
|
|
2430
|
+
select: { attrs: {
|
|
2431
|
+
form: null,
|
|
2432
|
+
name: null,
|
|
2433
|
+
size: null,
|
|
2434
|
+
autofocus: ["autofocus"],
|
|
2435
|
+
disabled: ["disabled"],
|
|
2436
|
+
multiple: ["multiple"]
|
|
2437
|
+
} },
|
|
2438
|
+
slot: { attrs: { name: null } },
|
|
2439
|
+
small: q,
|
|
2440
|
+
source: { attrs: {
|
|
2441
|
+
src: null,
|
|
2442
|
+
type: null,
|
|
2443
|
+
media: null
|
|
2444
|
+
} },
|
|
2445
|
+
span: q,
|
|
2446
|
+
strong: q,
|
|
2447
|
+
style: { attrs: {
|
|
2448
|
+
type: ["text/css"],
|
|
2449
|
+
media: null,
|
|
2450
|
+
scoped: null
|
|
2451
|
+
} },
|
|
2452
|
+
sub: q,
|
|
2453
|
+
summary: q,
|
|
2454
|
+
sup: q,
|
|
2455
|
+
table: q,
|
|
2456
|
+
tbody: q,
|
|
2457
|
+
td: { attrs: {
|
|
2458
|
+
colspan: null,
|
|
2459
|
+
rowspan: null,
|
|
2460
|
+
headers: null
|
|
2461
|
+
} },
|
|
2462
|
+
template: q,
|
|
2463
|
+
textarea: { attrs: {
|
|
2464
|
+
dirname: null,
|
|
2465
|
+
form: null,
|
|
2466
|
+
maxlength: null,
|
|
2467
|
+
name: null,
|
|
2468
|
+
placeholder: null,
|
|
2469
|
+
rows: null,
|
|
2470
|
+
cols: null,
|
|
2471
|
+
autofocus: ["autofocus"],
|
|
2472
|
+
disabled: ["disabled"],
|
|
2473
|
+
readonly: ["readonly"],
|
|
2474
|
+
required: ["required"],
|
|
2475
|
+
wrap: ["soft", "hard"]
|
|
2476
|
+
} },
|
|
2477
|
+
tfoot: q,
|
|
2478
|
+
th: { attrs: {
|
|
2479
|
+
colspan: null,
|
|
2480
|
+
rowspan: null,
|
|
2481
|
+
headers: null,
|
|
2482
|
+
scope: [
|
|
2483
|
+
"row",
|
|
2484
|
+
"col",
|
|
2485
|
+
"rowgroup",
|
|
2486
|
+
"colgroup"
|
|
2487
|
+
]
|
|
2488
|
+
} },
|
|
2489
|
+
thead: q,
|
|
2490
|
+
time: { attrs: { datetime: null } },
|
|
2491
|
+
title: q,
|
|
2492
|
+
tr: q,
|
|
2493
|
+
track: { attrs: {
|
|
2494
|
+
src: null,
|
|
2495
|
+
label: null,
|
|
2496
|
+
default: null,
|
|
2497
|
+
kind: [
|
|
2498
|
+
"subtitles",
|
|
2499
|
+
"captions",
|
|
2500
|
+
"descriptions",
|
|
2501
|
+
"chapters",
|
|
2502
|
+
"metadata"
|
|
2503
|
+
],
|
|
2504
|
+
srclang: null
|
|
2505
|
+
} },
|
|
2506
|
+
ul: { children: [
|
|
2507
|
+
"li",
|
|
2508
|
+
"script",
|
|
2509
|
+
"template",
|
|
2510
|
+
"ul",
|
|
2511
|
+
"ol"
|
|
2512
|
+
] },
|
|
2513
|
+
var: q,
|
|
2514
|
+
video: { attrs: {
|
|
2515
|
+
src: null,
|
|
2516
|
+
poster: null,
|
|
2517
|
+
width: null,
|
|
2518
|
+
height: null,
|
|
2519
|
+
crossorigin: ["anonymous", "use-credentials"],
|
|
2520
|
+
preload: [
|
|
2521
|
+
"auto",
|
|
2522
|
+
"metadata",
|
|
2523
|
+
"none"
|
|
2524
|
+
],
|
|
2525
|
+
autoplay: ["autoplay"],
|
|
2526
|
+
mediagroup: ["movie"],
|
|
2527
|
+
muted: ["muted"],
|
|
2528
|
+
controls: ["controls"]
|
|
2529
|
+
} },
|
|
2530
|
+
wbr: q
|
|
2531
|
+
}, Hr = {
|
|
2532
|
+
accesskey: null,
|
|
2533
|
+
class: null,
|
|
2534
|
+
contenteditable: K,
|
|
2535
|
+
contextmenu: null,
|
|
2536
|
+
dir: [
|
|
2537
|
+
"ltr",
|
|
2538
|
+
"rtl",
|
|
2539
|
+
"auto"
|
|
2540
|
+
],
|
|
2541
|
+
draggable: [
|
|
2542
|
+
"true",
|
|
2543
|
+
"false",
|
|
2544
|
+
"auto"
|
|
2545
|
+
],
|
|
2546
|
+
dropzone: [
|
|
2547
|
+
"copy",
|
|
2548
|
+
"move",
|
|
2549
|
+
"link",
|
|
2550
|
+
"string:",
|
|
2551
|
+
"file:"
|
|
2552
|
+
],
|
|
2553
|
+
hidden: ["hidden"],
|
|
2554
|
+
id: null,
|
|
2555
|
+
inert: ["inert"],
|
|
2556
|
+
itemid: null,
|
|
2557
|
+
itemprop: null,
|
|
2558
|
+
itemref: null,
|
|
2559
|
+
itemscope: ["itemscope"],
|
|
2560
|
+
itemtype: null,
|
|
2561
|
+
lang: [
|
|
2562
|
+
"ar",
|
|
2563
|
+
"bn",
|
|
2564
|
+
"de",
|
|
2565
|
+
"en-GB",
|
|
2566
|
+
"en-US",
|
|
2567
|
+
"es",
|
|
2568
|
+
"fr",
|
|
2569
|
+
"hi",
|
|
2570
|
+
"id",
|
|
2571
|
+
"ja",
|
|
2572
|
+
"pa",
|
|
2573
|
+
"pt",
|
|
2574
|
+
"ru",
|
|
2575
|
+
"tr",
|
|
2576
|
+
"zh"
|
|
2577
|
+
],
|
|
2578
|
+
spellcheck: K,
|
|
2579
|
+
autocorrect: K,
|
|
2580
|
+
autocapitalize: K,
|
|
2581
|
+
style: null,
|
|
2582
|
+
tabindex: null,
|
|
2583
|
+
title: null,
|
|
2584
|
+
translate: ["yes", "no"],
|
|
2585
|
+
rel: [
|
|
2586
|
+
"stylesheet",
|
|
2587
|
+
"alternate",
|
|
2588
|
+
"author",
|
|
2589
|
+
"bookmark",
|
|
2590
|
+
"help",
|
|
2591
|
+
"license",
|
|
2592
|
+
"next",
|
|
2593
|
+
"nofollow",
|
|
2594
|
+
"noreferrer",
|
|
2595
|
+
"prefetch",
|
|
2596
|
+
"prev",
|
|
2597
|
+
"search",
|
|
2598
|
+
"tag"
|
|
2599
|
+
],
|
|
2600
|
+
role: /*@__PURE__*/ "alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),
|
|
2601
|
+
"aria-activedescendant": null,
|
|
2602
|
+
"aria-atomic": K,
|
|
2603
|
+
"aria-autocomplete": [
|
|
2604
|
+
"inline",
|
|
2605
|
+
"list",
|
|
2606
|
+
"both",
|
|
2607
|
+
"none"
|
|
2608
|
+
],
|
|
2609
|
+
"aria-busy": K,
|
|
2610
|
+
"aria-checked": [
|
|
2611
|
+
"true",
|
|
2612
|
+
"false",
|
|
2613
|
+
"mixed",
|
|
2614
|
+
"undefined"
|
|
2615
|
+
],
|
|
2616
|
+
"aria-controls": null,
|
|
2617
|
+
"aria-describedby": null,
|
|
2618
|
+
"aria-disabled": K,
|
|
2619
|
+
"aria-dropeffect": null,
|
|
2620
|
+
"aria-expanded": [
|
|
2621
|
+
"true",
|
|
2622
|
+
"false",
|
|
2623
|
+
"undefined"
|
|
2624
|
+
],
|
|
2625
|
+
"aria-flowto": null,
|
|
2626
|
+
"aria-grabbed": [
|
|
2627
|
+
"true",
|
|
2628
|
+
"false",
|
|
2629
|
+
"undefined"
|
|
2630
|
+
],
|
|
2631
|
+
"aria-haspopup": K,
|
|
2632
|
+
"aria-hidden": K,
|
|
2633
|
+
"aria-invalid": [
|
|
2634
|
+
"true",
|
|
2635
|
+
"false",
|
|
2636
|
+
"grammar",
|
|
2637
|
+
"spelling"
|
|
2638
|
+
],
|
|
2639
|
+
"aria-label": null,
|
|
2640
|
+
"aria-labelledby": null,
|
|
2641
|
+
"aria-level": null,
|
|
2642
|
+
"aria-live": [
|
|
2643
|
+
"off",
|
|
2644
|
+
"polite",
|
|
2645
|
+
"assertive"
|
|
2646
|
+
],
|
|
2647
|
+
"aria-multiline": K,
|
|
2648
|
+
"aria-multiselectable": K,
|
|
2649
|
+
"aria-owns": null,
|
|
2650
|
+
"aria-posinset": null,
|
|
2651
|
+
"aria-pressed": [
|
|
2652
|
+
"true",
|
|
2653
|
+
"false",
|
|
2654
|
+
"mixed",
|
|
2655
|
+
"undefined"
|
|
2656
|
+
],
|
|
2657
|
+
"aria-readonly": K,
|
|
2658
|
+
"aria-relevant": null,
|
|
2659
|
+
"aria-required": K,
|
|
2660
|
+
"aria-selected": [
|
|
2661
|
+
"true",
|
|
2662
|
+
"false",
|
|
2663
|
+
"undefined"
|
|
2664
|
+
],
|
|
2665
|
+
"aria-setsize": null,
|
|
2666
|
+
"aria-sort": [
|
|
2667
|
+
"ascending",
|
|
2668
|
+
"descending",
|
|
2669
|
+
"none",
|
|
2670
|
+
"other"
|
|
2671
|
+
],
|
|
2672
|
+
"aria-valuemax": null,
|
|
2673
|
+
"aria-valuemin": null,
|
|
2674
|
+
"aria-valuenow": null,
|
|
2675
|
+
"aria-valuetext": null
|
|
2676
|
+
}, Ur = /*@__PURE__*/ "beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map((e) => "on" + e);
|
|
2677
|
+
for (let e of Ur) Hr[e] = null;
|
|
2678
|
+
var J = class {
|
|
2679
|
+
constructor(e, t) {
|
|
2680
|
+
this.tags = {
|
|
2681
|
+
...Vr,
|
|
2682
|
+
...e
|
|
2683
|
+
}, this.globalAttrs = {
|
|
2684
|
+
...Hr,
|
|
2685
|
+
...t
|
|
2686
|
+
}, this.allTags = Object.keys(this.tags), this.globalAttrNames = Object.keys(this.globalAttrs);
|
|
2687
|
+
}
|
|
2688
|
+
};
|
|
2689
|
+
J.default = /*@__PURE__*/ new J();
|
|
2690
|
+
function Y(e, t, n = e.length) {
|
|
2691
|
+
if (!t) return "";
|
|
2692
|
+
let r = t.firstChild, i = r && r.getChild("TagName");
|
|
2693
|
+
return i ? e.sliceString(i.from, Math.min(i.to, n)) : "";
|
|
2694
|
+
}
|
|
2695
|
+
function X(e, t = !1) {
|
|
2696
|
+
for (; e; e = e.parent) if (e.name == "Element") {
|
|
2697
|
+
if (t) t = !1;
|
|
2698
|
+
else return e;
|
|
2699
|
+
}
|
|
2700
|
+
return null;
|
|
2701
|
+
}
|
|
2702
|
+
function Wr(e, t, n) {
|
|
2703
|
+
return n.tags[Y(e, X(t))]?.children || n.allTags;
|
|
2704
|
+
}
|
|
2705
|
+
function Gr(e, t) {
|
|
2706
|
+
let n = [];
|
|
2707
|
+
for (let r = X(t); r && !r.type.isTop; r = X(r.parent)) {
|
|
2708
|
+
let i = Y(e, r);
|
|
2709
|
+
if (i && r.lastChild.name == "CloseTag") break;
|
|
2710
|
+
i && n.indexOf(i) < 0 && (t.name == "EndTag" || t.from >= r.firstChild.to) && n.push(i);
|
|
2711
|
+
}
|
|
2712
|
+
return n;
|
|
2713
|
+
}
|
|
2714
|
+
var Kr = /^[:\-\.\w\u00b7-\uffff]*$/;
|
|
2715
|
+
function qr(e, t, n, r, i) {
|
|
2716
|
+
let a = /\s*>/.test(e.sliceDoc(i, i + 5)) ? "" : ">", o = X(n, n.name == "StartTag" || n.name == "TagName");
|
|
2717
|
+
return {
|
|
2718
|
+
from: r,
|
|
2719
|
+
to: i,
|
|
2720
|
+
options: Wr(e.doc, o, t).map((e) => ({
|
|
2721
|
+
label: e,
|
|
2722
|
+
type: "type"
|
|
2723
|
+
})).concat(Gr(e.doc, n).map((e, t) => ({
|
|
2724
|
+
label: "/" + e,
|
|
2725
|
+
apply: "/" + e + a,
|
|
2726
|
+
type: "type",
|
|
2727
|
+
boost: 99 - t
|
|
2728
|
+
}))),
|
|
2729
|
+
validFor: /^\/?[:\-\.\w\u00b7-\uffff]*$/
|
|
2730
|
+
};
|
|
2731
|
+
}
|
|
2732
|
+
function Jr(e, t, n, r) {
|
|
2733
|
+
let i = /\s*>/.test(e.sliceDoc(r, r + 5)) ? "" : ">";
|
|
2734
|
+
return {
|
|
2735
|
+
from: n,
|
|
2736
|
+
to: r,
|
|
2737
|
+
options: Gr(e.doc, t).map((e, t) => ({
|
|
2738
|
+
label: e,
|
|
2739
|
+
apply: e + i,
|
|
2740
|
+
type: "type",
|
|
2741
|
+
boost: 99 - t
|
|
2742
|
+
})),
|
|
2743
|
+
validFor: Kr
|
|
2744
|
+
};
|
|
2745
|
+
}
|
|
2746
|
+
function Yr(e, t, n, r) {
|
|
2747
|
+
let i = [], a = 0;
|
|
2748
|
+
for (let r of Wr(e.doc, n, t)) i.push({
|
|
2749
|
+
label: "<" + r,
|
|
2750
|
+
type: "type"
|
|
2751
|
+
});
|
|
2752
|
+
for (let t of Gr(e.doc, n)) i.push({
|
|
2753
|
+
label: "</" + t + ">",
|
|
2754
|
+
type: "type",
|
|
2755
|
+
boost: 99 - a++
|
|
2756
|
+
});
|
|
2757
|
+
return {
|
|
2758
|
+
from: r,
|
|
2759
|
+
to: r,
|
|
2760
|
+
options: i,
|
|
2761
|
+
validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/
|
|
2762
|
+
};
|
|
2763
|
+
}
|
|
2764
|
+
function Xr(e, t, n, r, i) {
|
|
2765
|
+
let a = X(n), o = a ? t.tags[Y(e.doc, a)] : null, s = o && o.attrs ? Object.keys(o.attrs) : [];
|
|
2766
|
+
return {
|
|
2767
|
+
from: r,
|
|
2768
|
+
to: i,
|
|
2769
|
+
options: (o && o.globalAttrs === !1 ? s : s.length ? s.concat(t.globalAttrNames) : t.globalAttrNames).map((e) => ({
|
|
2770
|
+
label: e,
|
|
2771
|
+
type: "property"
|
|
2772
|
+
})),
|
|
2773
|
+
validFor: Kr
|
|
2774
|
+
};
|
|
2775
|
+
}
|
|
2776
|
+
function Zr(e, t, n, r, i) {
|
|
2777
|
+
let a = n.parent?.getChild("AttributeName"), o = [], s;
|
|
2778
|
+
if (a) {
|
|
2779
|
+
let c = e.sliceDoc(a.from, a.to), l = t.globalAttrs[c];
|
|
2780
|
+
if (!l) {
|
|
2781
|
+
let r = X(n), i = r ? t.tags[Y(e.doc, r)] : null;
|
|
2782
|
+
l = i?.attrs && i.attrs[c];
|
|
2783
|
+
}
|
|
2784
|
+
if (l) {
|
|
2785
|
+
let t = e.sliceDoc(r, i).toLowerCase(), n = "\"", a = "\"";
|
|
2786
|
+
/^['"]/.test(t) ? (s = t[0] == "\"" ? /^[^"]*$/ : /^[^']*$/, n = "", a = e.sliceDoc(i, i + 1) == t[0] ? "" : t[0], t = t.slice(1), r++) : s = /^[^\s<>='"]*$/;
|
|
2787
|
+
for (let e of l) o.push({
|
|
2788
|
+
label: e,
|
|
2789
|
+
apply: n + e + a,
|
|
2790
|
+
type: "constant"
|
|
2791
|
+
});
|
|
2792
|
+
}
|
|
2793
|
+
}
|
|
2794
|
+
return {
|
|
2795
|
+
from: r,
|
|
2796
|
+
to: i,
|
|
2797
|
+
options: o,
|
|
2798
|
+
validFor: s
|
|
2799
|
+
};
|
|
2800
|
+
}
|
|
2801
|
+
function Qr(e, t) {
|
|
2802
|
+
let { state: n, pos: r } = t, i = v(n).resolveInner(r, -1), a = i.resolve(r);
|
|
2803
|
+
for (let e = r, t; a == i && (t = i.childBefore(e));) {
|
|
2804
|
+
let n = t.lastChild;
|
|
2805
|
+
if (!n || !n.type.isError || n.from < n.to) break;
|
|
2806
|
+
a = i = t, e = n.from;
|
|
2807
|
+
}
|
|
2808
|
+
return i.name == "TagName" ? i.parent && /CloseTag$/.test(i.parent.name) ? Jr(n, i, i.from, r) : qr(n, e, i, i.from, r) : i.name == "StartTag" || i.name == "IncompleteTag" ? qr(n, e, i, r, r) : i.name == "StartCloseTag" || i.name == "IncompleteCloseTag" ? Jr(n, i, r, r) : i.name == "OpenTag" || i.name == "SelfClosingTag" || i.name == "AttributeName" ? Xr(n, e, i, i.name == "AttributeName" ? i.from : r, r) : i.name == "Is" || i.name == "AttributeValue" || i.name == "UnquotedAttributeValue" ? Zr(n, e, i, i.name == "Is" ? r : i.from, r) : t.explicit && (a.name == "Element" || a.name == "Text" || a.name == "Document") ? Yr(n, e, i, r) : null;
|
|
2809
|
+
}
|
|
2810
|
+
function $r(e) {
|
|
2811
|
+
return Qr(J.default, e);
|
|
2812
|
+
}
|
|
2813
|
+
function ei(e) {
|
|
2814
|
+
let { extraTags: t, extraGlobalAttributes: n } = e, r = n || t ? new J(t, n) : J.default;
|
|
2815
|
+
return (e) => Qr(r, e);
|
|
2816
|
+
}
|
|
2817
|
+
var ti = /*@__PURE__*/ re.parser.configure({ top: "SingleExpression" }), ni = [
|
|
2818
|
+
{
|
|
2819
|
+
tag: "script",
|
|
2820
|
+
attrs: (e) => e.type == "text/typescript" || e.lang == "ts",
|
|
2821
|
+
parser: ne.parser
|
|
2822
|
+
},
|
|
2823
|
+
{
|
|
2824
|
+
tag: "script",
|
|
2825
|
+
attrs: (e) => e.type == "text/babel" || e.type == "text/jsx",
|
|
2826
|
+
parser: h.parser
|
|
2827
|
+
},
|
|
2828
|
+
{
|
|
2829
|
+
tag: "script",
|
|
2830
|
+
attrs: (e) => e.type == "text/typescript-jsx",
|
|
2831
|
+
parser: ee.parser
|
|
2832
|
+
},
|
|
2833
|
+
{
|
|
2834
|
+
tag: "script",
|
|
2835
|
+
attrs(e) {
|
|
2836
|
+
return /^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type);
|
|
2837
|
+
},
|
|
2838
|
+
parser: ti
|
|
2839
|
+
},
|
|
2840
|
+
{
|
|
2841
|
+
tag: "script",
|
|
2842
|
+
attrs(e) {
|
|
2843
|
+
return !e.type || /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type);
|
|
2844
|
+
},
|
|
2845
|
+
parser: re.parser
|
|
2846
|
+
},
|
|
2847
|
+
{
|
|
2848
|
+
tag: "style",
|
|
2849
|
+
attrs(e) {
|
|
2850
|
+
return (!e.lang || e.lang == "css") && (!e.type || /^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type));
|
|
2851
|
+
},
|
|
2852
|
+
parser: W.parser
|
|
2853
|
+
}
|
|
2854
|
+
], ri = /*@__PURE__*/ [{
|
|
2855
|
+
name: "style",
|
|
2856
|
+
parser: /*@__PURE__*/ W.parser.configure({ top: "Styles" })
|
|
2857
|
+
}].concat(/*@__PURE__*/ Ur.map((e) => ({
|
|
2858
|
+
name: e,
|
|
2859
|
+
parser: re.parser
|
|
2860
|
+
}))), ii = /*@__PURE__*/ _e.define({
|
|
2861
|
+
name: "html",
|
|
2862
|
+
parser: /*@__PURE__*/ zn.configure({ props: [
|
|
2863
|
+
/*@__PURE__*/ ce.add({
|
|
2864
|
+
Element(e) {
|
|
2865
|
+
let t = /^(\s*)(<\/)?/.exec(e.textAfter);
|
|
2866
|
+
return e.node.to <= e.pos + t[0].length ? e.continue() : e.lineIndent(e.node.from) + (t[2] ? 0 : e.unit);
|
|
2867
|
+
},
|
|
2868
|
+
"OpenTag CloseTag SelfClosingTag"(e) {
|
|
2869
|
+
return e.column(e.node.from) + e.unit;
|
|
2870
|
+
},
|
|
2871
|
+
Document(e) {
|
|
2872
|
+
if (e.pos + /\s*/.exec(e.textAfter)[0].length < e.node.to) return e.continue();
|
|
2873
|
+
let t = null, n;
|
|
2874
|
+
for (let n = e.node;;) {
|
|
2875
|
+
let e = n.lastChild;
|
|
2876
|
+
if (!e || e.name != "Element" || e.to != n.to) break;
|
|
2877
|
+
t = n = e;
|
|
2878
|
+
}
|
|
2879
|
+
return t && !((n = t.lastChild) && (n.name == "CloseTag" || n.name == "SelfClosingTag")) ? e.lineIndent(t.from) + e.unit : null;
|
|
2880
|
+
}
|
|
2881
|
+
}),
|
|
2882
|
+
/*@__PURE__*/ b.add({ Element(e) {
|
|
2883
|
+
let t = e.firstChild, n = e.lastChild;
|
|
2884
|
+
return !t || t.name != "OpenTag" ? null : {
|
|
2885
|
+
from: t.to,
|
|
2886
|
+
to: n.name == "CloseTag" ? n.from : e.to
|
|
2887
|
+
};
|
|
2888
|
+
} }),
|
|
2889
|
+
/*@__PURE__*/ ge.add({ "OpenTag CloseTag": (e) => e.getChild("TagName") })
|
|
2890
|
+
] }),
|
|
2891
|
+
languageData: {
|
|
2892
|
+
commentTokens: { block: {
|
|
2893
|
+
open: "<!--",
|
|
2894
|
+
close: "-->"
|
|
2895
|
+
} },
|
|
2896
|
+
indentOnInput: /^\s*<\/\w+\W$/,
|
|
2897
|
+
wordChars: "-_"
|
|
2898
|
+
}
|
|
2899
|
+
}), Z = /*@__PURE__*/ ii.configure({ wrap: /*@__PURE__*/ Un(ni, ri) });
|
|
2900
|
+
function ai(e = {}) {
|
|
2901
|
+
let t = "", n;
|
|
2902
|
+
e.matchClosingTags === !1 && (t = "noMatch"), e.selfClosingTags === !0 && (t = (t ? t + " " : "") + "selfClosing"), (e.nestedLanguages && e.nestedLanguages.length || e.nestedAttributes && e.nestedAttributes.length) && (n = Un((e.nestedLanguages || []).concat(ni), (e.nestedAttributes || []).concat(ri)));
|
|
2903
|
+
let r = n ? ii.configure({
|
|
2904
|
+
wrap: n,
|
|
2905
|
+
dialect: t
|
|
2906
|
+
}) : t ? Z.configure({ dialect: t }) : Z;
|
|
2907
|
+
return new y(r, [
|
|
2908
|
+
Z.data.of({ autocomplete: ei(e) }),
|
|
2909
|
+
e.autoCloseTags === !1 ? [] : si,
|
|
2910
|
+
te().support,
|
|
2911
|
+
Lr().support
|
|
2912
|
+
]);
|
|
2913
|
+
}
|
|
2914
|
+
var oi = /*@__PURE__*/ new Set(/*@__PURE__*/ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")), si = /*@__PURE__*/ oe.inputHandler.of((e, t, n, r, i) => {
|
|
2915
|
+
if (e.composing || e.state.readOnly || t != n || r != ">" && r != "/" || !Z.isActiveAt(e.state, t, -1)) return !1;
|
|
2916
|
+
let a = i(), { state: o } = a, s = o.changeByRange((e) => {
|
|
2917
|
+
let t = o.doc.sliceString(e.from - 1, e.to) == r, { head: n } = e, i = v(o).resolveInner(n, -1), a;
|
|
2918
|
+
if (t && r == ">" && i.name == "EndTag") {
|
|
2919
|
+
let t = i.parent;
|
|
2920
|
+
if (t.parent?.lastChild?.name != "CloseTag" && (a = Y(o.doc, t.parent, n)) && !oi.has(a)) return {
|
|
2921
|
+
range: e,
|
|
2922
|
+
changes: {
|
|
2923
|
+
from: n,
|
|
2924
|
+
to: n + +(o.doc.sliceString(n, n + 1) === ">"),
|
|
2925
|
+
insert: `</${a}>`
|
|
2926
|
+
}
|
|
2927
|
+
};
|
|
2928
|
+
} else if (t && r == "/" && i.name == "IncompleteCloseTag") {
|
|
2929
|
+
let e = i.parent;
|
|
2930
|
+
if (i.from == n - 2 && e.lastChild?.name != "CloseTag" && (a = Y(o.doc, e, n)) && !oi.has(a)) {
|
|
2931
|
+
let e = n + +(o.doc.sliceString(n, n + 1) === ">"), t = `${a}>`;
|
|
2932
|
+
return {
|
|
2933
|
+
range: g.cursor(n + t.length, -1),
|
|
2934
|
+
changes: {
|
|
2935
|
+
from: n,
|
|
2936
|
+
to: e,
|
|
2937
|
+
insert: t
|
|
2938
|
+
}
|
|
2939
|
+
};
|
|
2940
|
+
}
|
|
2941
|
+
}
|
|
2942
|
+
return { range: e };
|
|
2943
|
+
});
|
|
2944
|
+
return !s.changes.empty && (e.dispatch([a, o.update(s, {
|
|
2945
|
+
userEvent: "input.complete",
|
|
2946
|
+
scrollIntoView: !0
|
|
2947
|
+
})]), !0);
|
|
2948
|
+
}), ci = /*@__PURE__*/ me({ commentTokens: { block: {
|
|
2949
|
+
open: "<!--",
|
|
2950
|
+
close: "-->"
|
|
2951
|
+
} } }), li = /*@__PURE__*/ new a(), ui = /*@__PURE__*/ dt.configure({ props: [
|
|
2952
|
+
/*@__PURE__*/ b.add((e) => !e.is("Block") || e.is("Document") || di(e) != null || fi(e) ? void 0 : (e, t) => ({
|
|
2953
|
+
from: t.doc.lineAt(e.from).to,
|
|
2954
|
+
to: e.to
|
|
2955
|
+
})),
|
|
2956
|
+
/*@__PURE__*/ li.add(di),
|
|
2957
|
+
/*@__PURE__*/ ce.add({ Document: () => null }),
|
|
2958
|
+
/*@__PURE__*/ le.add({ Document: ci })
|
|
2959
|
+
] });
|
|
2960
|
+
function di(e) {
|
|
2961
|
+
let t = /^(?:ATX|Setext)Heading(\d)$/.exec(e.name);
|
|
2962
|
+
return t ? +t[1] : void 0;
|
|
2963
|
+
}
|
|
2964
|
+
function fi(e) {
|
|
2965
|
+
return e.name == "OrderedList" || e.name == "BulletList";
|
|
2966
|
+
}
|
|
2967
|
+
function pi(e, t) {
|
|
2968
|
+
let n = e;
|
|
2969
|
+
for (;;) {
|
|
2970
|
+
let e = n.nextSibling, r;
|
|
2971
|
+
if (!e || (r = di(e.type)) != null && r <= t) break;
|
|
2972
|
+
n = e;
|
|
2973
|
+
}
|
|
2974
|
+
return n.to;
|
|
2975
|
+
}
|
|
2976
|
+
var mi = /*@__PURE__*/ pe.of((e, t, n) => {
|
|
2977
|
+
for (let r = v(e).resolveInner(n, -1); r && !(r.from < t); r = r.parent) {
|
|
2978
|
+
let e = r.type.prop(li);
|
|
2979
|
+
if (e == null) continue;
|
|
2980
|
+
let t = pi(r, e);
|
|
2981
|
+
if (t > n) return {
|
|
2982
|
+
from: n,
|
|
2983
|
+
to: t
|
|
2984
|
+
};
|
|
2985
|
+
}
|
|
2986
|
+
return null;
|
|
2987
|
+
});
|
|
2988
|
+
function hi(e) {
|
|
2989
|
+
return new he(ci, e, [], "markdown");
|
|
2990
|
+
}
|
|
2991
|
+
var gi = /*@__PURE__*/ hi(ui), Q = /*@__PURE__*/ hi(/* @__PURE__ */ ui.configure([
|
|
2992
|
+
At,
|
|
2993
|
+
Nt,
|
|
2994
|
+
Mt,
|
|
2995
|
+
Pt,
|
|
2996
|
+
{ props: [/*@__PURE__*/ b.add({ Table: (e, t) => ({
|
|
2997
|
+
from: t.doc.lineAt(e.from).to,
|
|
2998
|
+
to: e.to
|
|
2999
|
+
}) })] }
|
|
3000
|
+
]));
|
|
3001
|
+
function _i(e, t) {
|
|
3002
|
+
return (n) => {
|
|
3003
|
+
if (n && e) {
|
|
3004
|
+
let t = null;
|
|
3005
|
+
if (n = /\S*/.exec(n)[0], t = typeof e == "function" ? e(n) : fe.matchLanguageName(e, n, !0), t instanceof fe) return t.support ? t.support.language.parser : ve.getSkippingParser(t.load());
|
|
3006
|
+
if (t) return t.parser;
|
|
3007
|
+
}
|
|
3008
|
+
return t ? t.parser : null;
|
|
3009
|
+
};
|
|
3010
|
+
}
|
|
3011
|
+
var vi = class {
|
|
3012
|
+
constructor(e, t, n, r, i, a, o) {
|
|
3013
|
+
this.node = e, this.from = t, this.to = n, this.spaceBefore = r, this.spaceAfter = i, this.type = a, this.item = o;
|
|
3014
|
+
}
|
|
3015
|
+
blank(e, t = !0) {
|
|
3016
|
+
let n = this.spaceBefore + (this.node.name == "Blockquote" ? ">" : "");
|
|
3017
|
+
if (e != null) {
|
|
3018
|
+
for (; n.length < e;) n += " ";
|
|
3019
|
+
return n;
|
|
3020
|
+
}
|
|
3021
|
+
for (let e = this.to - this.from - n.length - this.spaceAfter.length; e > 0; e--) n += " ";
|
|
3022
|
+
return n + (t ? this.spaceAfter : "");
|
|
3023
|
+
}
|
|
3024
|
+
marker(e, t) {
|
|
3025
|
+
let n = this.node.name == "OrderedList" ? String(+bi(this.item, e)[2] + t) : "";
|
|
3026
|
+
return this.spaceBefore + n + this.type + this.spaceAfter;
|
|
3027
|
+
}
|
|
3028
|
+
};
|
|
3029
|
+
function yi(e, t) {
|
|
3030
|
+
let n = [], r = [];
|
|
3031
|
+
for (let t = e; t; t = t.parent) {
|
|
3032
|
+
if (t.name == "FencedCode") return r;
|
|
3033
|
+
(t.name == "ListItem" || t.name == "Blockquote") && n.push(t);
|
|
3034
|
+
}
|
|
3035
|
+
for (let e = n.length - 1; e >= 0; e--) {
|
|
3036
|
+
let i = n[e], a, o = t.lineAt(i.from), s = i.from - o.from;
|
|
3037
|
+
if (i.name == "Blockquote" && (a = /^ *>( ?)/.exec(o.text.slice(s)))) r.push(new vi(i, s, s + a[0].length, "", a[1], ">", null));
|
|
3038
|
+
else if (i.name == "ListItem" && i.parent.name == "OrderedList" && (a = /^( *)\d+([.)])( *)/.exec(o.text.slice(s)))) {
|
|
3039
|
+
let e = a[3], t = a[0].length;
|
|
3040
|
+
e.length >= 4 && (e = e.slice(0, e.length - 4), t -= 4), r.push(new vi(i.parent, s, s + t, a[1], e, a[2], i));
|
|
3041
|
+
} else if (i.name == "ListItem" && i.parent.name == "BulletList" && (a = /^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(s)))) {
|
|
3042
|
+
let e = a[4], t = a[0].length;
|
|
3043
|
+
e.length > 4 && (e = e.slice(0, e.length - 4), t -= 4);
|
|
3044
|
+
let n = a[2];
|
|
3045
|
+
a[3] && (n += a[3].replace(/[xX]/, " ")), r.push(new vi(i.parent, s, s + t, a[1], e, n, i));
|
|
3046
|
+
}
|
|
3047
|
+
}
|
|
3048
|
+
return r;
|
|
3049
|
+
}
|
|
3050
|
+
function bi(e, t) {
|
|
3051
|
+
return /^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from, e.from + 10));
|
|
3052
|
+
}
|
|
3053
|
+
function xi(e, t, n, r = 0) {
|
|
3054
|
+
for (let i = -1, a = e;;) {
|
|
3055
|
+
if (a.name == "ListItem") {
|
|
3056
|
+
let e = bi(a, t), o = +e[2];
|
|
3057
|
+
if (i >= 0) {
|
|
3058
|
+
if (o != i + 1) return;
|
|
3059
|
+
n.push({
|
|
3060
|
+
from: a.from + e[1].length,
|
|
3061
|
+
to: a.from + e[0].length,
|
|
3062
|
+
insert: String(i + 2 + r)
|
|
3063
|
+
});
|
|
3064
|
+
}
|
|
3065
|
+
i = o;
|
|
3066
|
+
}
|
|
3067
|
+
let e = a.nextSibling;
|
|
3068
|
+
if (!e) break;
|
|
3069
|
+
a = e;
|
|
3070
|
+
}
|
|
3071
|
+
}
|
|
3072
|
+
function Si(e, t) {
|
|
3073
|
+
let n = /^[ \t]*/.exec(e)[0].length;
|
|
3074
|
+
if (!n || t.facet(ue) != " ") return e;
|
|
3075
|
+
let r = _(e, 4, n), i = "";
|
|
3076
|
+
for (let e = r; e > 0;) e >= 4 ? (i += " ", e -= 4) : (i += " ", e--);
|
|
3077
|
+
return i + e.slice(n);
|
|
3078
|
+
}
|
|
3079
|
+
var Ci = (e = {}) => ({ state: t, dispatch: n }) => {
|
|
3080
|
+
let r = v(t), { doc: i } = t, a = null, o = t.changeByRange((n) => {
|
|
3081
|
+
if (!n.empty || !Q.isActiveAt(t, n.from, -1) && !Q.isActiveAt(t, n.from, 1)) return a = { range: n };
|
|
3082
|
+
let o = n.from, s = i.lineAt(o), c = yi(r.resolveInner(o, -1), i);
|
|
3083
|
+
for (; c.length && c[c.length - 1].from > o - s.from;) c.pop();
|
|
3084
|
+
if (!c.length) return a = { range: n };
|
|
3085
|
+
let l = c[c.length - 1];
|
|
3086
|
+
if (l.to - l.spaceAfter.length > o - s.from) return a = { range: n };
|
|
3087
|
+
let u = o >= l.to - l.spaceAfter.length && !/\S/.test(s.text.slice(l.to));
|
|
3088
|
+
if (l.item && u) {
|
|
3089
|
+
let n = l.node.firstChild, r = l.node.getChild("ListItem", "ListItem");
|
|
3090
|
+
if (n.to >= o || r && r.to < o || s.from > 0 && !/[^\s>]/.test(i.lineAt(s.from - 1).text) || e.nonTightLists === !1) {
|
|
3091
|
+
let e = c.length > 1 ? c[c.length - 2] : null, t, n = "";
|
|
3092
|
+
e && e.item ? (t = s.from + e.from, n = e.marker(i, 1)) : t = s.from + (e ? e.to : 0);
|
|
3093
|
+
let r = [{
|
|
3094
|
+
from: t,
|
|
3095
|
+
to: o,
|
|
3096
|
+
insert: n
|
|
3097
|
+
}];
|
|
3098
|
+
return l.node.name == "OrderedList" && xi(l.item, i, r, -2), e && e.node.name == "OrderedList" && xi(e.item, i, r), {
|
|
3099
|
+
range: g.cursor(t + n.length),
|
|
3100
|
+
changes: r
|
|
3101
|
+
};
|
|
3102
|
+
}
|
|
3103
|
+
{
|
|
3104
|
+
let e = Di(c, t, s);
|
|
3105
|
+
return {
|
|
3106
|
+
range: g.cursor(o + e.length + 1),
|
|
3107
|
+
changes: {
|
|
3108
|
+
from: s.from,
|
|
3109
|
+
insert: e + t.lineBreak
|
|
3110
|
+
}
|
|
3111
|
+
};
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3114
|
+
if (l.node.name == "Blockquote" && u && s.from) {
|
|
3115
|
+
let e = i.lineAt(s.from - 1), r = />\s*$/.exec(e.text);
|
|
3116
|
+
if (r && r.index == l.from) {
|
|
3117
|
+
let i = t.changes([{
|
|
3118
|
+
from: e.from + r.index,
|
|
3119
|
+
to: e.to
|
|
3120
|
+
}, {
|
|
3121
|
+
from: s.from + l.from,
|
|
3122
|
+
to: s.to
|
|
3123
|
+
}]);
|
|
3124
|
+
return {
|
|
3125
|
+
range: n.map(i),
|
|
3126
|
+
changes: i
|
|
3127
|
+
};
|
|
3128
|
+
}
|
|
3129
|
+
}
|
|
3130
|
+
let d = [];
|
|
3131
|
+
l.node.name == "OrderedList" && xi(l.item, i, d);
|
|
3132
|
+
let f = l.item && l.item.from < s.from, p = "";
|
|
3133
|
+
if (!f || /^[\s\d.)\-+*>]*/.exec(s.text)[0].length >= l.to) for (let e = 0, t = c.length - 1; e <= t; e++) p += e == t && !f ? c[e].marker(i, 1) : c[e].blank(e < t ? _(s.text, 4, c[e + 1].from) - p.length : null);
|
|
3134
|
+
let m = o;
|
|
3135
|
+
for (; m > s.from && /\s/.test(s.text.charAt(m - s.from - 1));) m--;
|
|
3136
|
+
return p = Si(p, t), Ei(l.node, t.doc) && (p = Di(c, t, s) + t.lineBreak + p), d.push({
|
|
3137
|
+
from: m,
|
|
3138
|
+
to: o,
|
|
3139
|
+
insert: t.lineBreak + p
|
|
3140
|
+
}), {
|
|
3141
|
+
range: g.cursor(m + p.length + 1),
|
|
3142
|
+
changes: d
|
|
3143
|
+
};
|
|
3144
|
+
});
|
|
3145
|
+
return !a && (n(t.update(o, {
|
|
3146
|
+
scrollIntoView: !0,
|
|
3147
|
+
userEvent: "input"
|
|
3148
|
+
})), !0);
|
|
3149
|
+
}, wi = /*@__PURE__*/ Ci();
|
|
3150
|
+
function Ti(e) {
|
|
3151
|
+
return e.name == "QuoteMark" || e.name == "ListMark";
|
|
3152
|
+
}
|
|
3153
|
+
function Ei(e, t) {
|
|
3154
|
+
if (e.name != "OrderedList" && e.name != "BulletList") return !1;
|
|
3155
|
+
let n = e.firstChild, r = e.getChild("ListItem", "ListItem");
|
|
3156
|
+
if (!r) return !1;
|
|
3157
|
+
let i = t.lineAt(n.to), a = t.lineAt(r.from), o = /^[\s>]*$/.test(i.text);
|
|
3158
|
+
return i.number + +!o < a.number;
|
|
3159
|
+
}
|
|
3160
|
+
function Di(e, t, n) {
|
|
3161
|
+
let r = "";
|
|
3162
|
+
for (let t = 0, i = e.length - 2; t <= i; t++) r += e[t].blank(t < i ? _(n.text, 4, e[t + 1].from) - r.length : null, t < i);
|
|
3163
|
+
return Si(r, t);
|
|
3164
|
+
}
|
|
3165
|
+
function Oi(e, t) {
|
|
3166
|
+
let n = e.resolveInner(t, -1), r = t;
|
|
3167
|
+
Ti(n) && (r = n.from, n = n.parent);
|
|
3168
|
+
for (let e; e = n.childBefore(r);) if (Ti(e)) r = e.from;
|
|
3169
|
+
else if (e.name == "OrderedList" || e.name == "BulletList") n = e.lastChild, r = n.to;
|
|
3170
|
+
else break;
|
|
3171
|
+
return n;
|
|
3172
|
+
}
|
|
3173
|
+
var ki = ({ state: e, dispatch: t }) => {
|
|
3174
|
+
let n = v(e), r = null, i = e.changeByRange((t) => {
|
|
3175
|
+
let i = t.from, { doc: a } = e;
|
|
3176
|
+
if (t.empty && Q.isActiveAt(e, t.from)) {
|
|
3177
|
+
let t = a.lineAt(i), r = yi(Oi(n, i), a);
|
|
3178
|
+
if (r.length) {
|
|
3179
|
+
let n = r[r.length - 1], a = n.to - n.spaceAfter.length + +!!n.spaceAfter;
|
|
3180
|
+
if (i - t.from > a && !/\S/.test(t.text.slice(a, i - t.from))) return {
|
|
3181
|
+
range: g.cursor(t.from + a),
|
|
3182
|
+
changes: {
|
|
3183
|
+
from: t.from + a,
|
|
3184
|
+
to: i
|
|
3185
|
+
}
|
|
3186
|
+
};
|
|
3187
|
+
if (i - t.from == a && (n.item && t.from <= n.item.from || /^[\s>]*$/.test(t.text.slice(0, n.to)))) {
|
|
3188
|
+
let r = t.from + n.from;
|
|
3189
|
+
if (n.item && n.node.from < n.item.from && /\S/.test(t.text.slice(n.from, n.to))) {
|
|
3190
|
+
let i = n.blank(_(t.text, 4, n.to) - _(t.text, 4, n.from));
|
|
3191
|
+
return r == t.from && (i = Si(i, e)), {
|
|
3192
|
+
range: g.cursor(r + i.length),
|
|
3193
|
+
changes: {
|
|
3194
|
+
from: r,
|
|
3195
|
+
to: t.from + n.to,
|
|
3196
|
+
insert: i
|
|
3197
|
+
}
|
|
3198
|
+
};
|
|
3199
|
+
}
|
|
3200
|
+
if (r < i) return {
|
|
3201
|
+
range: g.cursor(r),
|
|
3202
|
+
changes: {
|
|
3203
|
+
from: r,
|
|
3204
|
+
to: i
|
|
3205
|
+
}
|
|
3206
|
+
};
|
|
3207
|
+
}
|
|
3208
|
+
}
|
|
3209
|
+
}
|
|
3210
|
+
return r = { range: t };
|
|
3211
|
+
});
|
|
3212
|
+
return !r && (t(e.update(i, {
|
|
3213
|
+
scrollIntoView: !0,
|
|
3214
|
+
userEvent: "delete"
|
|
3215
|
+
})), !0);
|
|
3216
|
+
}, Ai = [{
|
|
3217
|
+
key: "Enter",
|
|
3218
|
+
run: wi
|
|
3219
|
+
}, {
|
|
3220
|
+
key: "Backspace",
|
|
3221
|
+
run: ki
|
|
3222
|
+
}], ji = /*@__PURE__*/ ai({ matchClosingTags: !1 });
|
|
3223
|
+
function Mi(e = {}) {
|
|
3224
|
+
let { codeLanguages: t, defaultCodeLanguage: n, addKeymap: r = !0, base: { parser: i } = gi, completeHTMLTags: a = !0, pasteURLAsLink: o = !0, htmlTagLanguage: s = ji } = e;
|
|
3225
|
+
if (!(i instanceof Ke)) throw RangeError("Base parser provided to `markdown` should be a Markdown parser");
|
|
3226
|
+
let c = e.extensions ? [e.extensions] : [], l = [s.support, mi], u;
|
|
3227
|
+
o && l.push(Ii), n instanceof y ? (l.push(n.support), u = n.language) : n && (u = n);
|
|
3228
|
+
let d = t || u ? _i(t, u) : void 0;
|
|
3229
|
+
c.push(pt({
|
|
3230
|
+
codeParser: d,
|
|
3231
|
+
htmlParser: s.language.parser
|
|
3232
|
+
})), r && l.push(ie.high(se.of(Ai)));
|
|
3233
|
+
let f = hi(i.configure(c));
|
|
3234
|
+
return a && l.push(f.data.of({ autocomplete: Ni })), new y(f, l);
|
|
3235
|
+
}
|
|
3236
|
+
function Ni(e) {
|
|
3237
|
+
let { state: t, pos: n } = e, r = /<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(n - 25, n));
|
|
3238
|
+
if (!r) return null;
|
|
3239
|
+
let i = v(t).resolveInner(n, -1);
|
|
3240
|
+
for (; i && !i.type.isTop;) {
|
|
3241
|
+
if (i.name == "CodeBlock" || i.name == "FencedCode" || i.name == "ProcessingInstructionBlock" || i.name == "CommentBlock" || i.name == "Link" || i.name == "Image") return null;
|
|
3242
|
+
i = i.parent;
|
|
3243
|
+
}
|
|
3244
|
+
return {
|
|
3245
|
+
from: n - r[0].length,
|
|
3246
|
+
to: n,
|
|
3247
|
+
options: Pi(),
|
|
3248
|
+
validFor: /^<[:\-\.\w\u00b7-\uffff]*$/
|
|
3249
|
+
};
|
|
3250
|
+
}
|
|
3251
|
+
var $ = null;
|
|
3252
|
+
function Pi() {
|
|
3253
|
+
if ($) return $;
|
|
3254
|
+
let e = $r(new be(ae.create({ extensions: ji }), 0, !0));
|
|
3255
|
+
return $ = e ? e.options : [];
|
|
3256
|
+
}
|
|
3257
|
+
var Fi = /code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i, Ii = /*@__PURE__*/ oe.domEventHandlers({ paste: (e, t) => {
|
|
3258
|
+
let { main: n } = t.state.selection;
|
|
3259
|
+
if (n.empty) return !1;
|
|
3260
|
+
let r = e.clipboardData?.getData("text/plain");
|
|
3261
|
+
if (!r || !/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r) || (/^www\./.test(r) && (r = "https://" + r), !Q.isActiveAt(t.state, n.from, 1))) return !1;
|
|
3262
|
+
let i = v(t.state), a = !1;
|
|
3263
|
+
return i.iterate({
|
|
3264
|
+
from: n.from,
|
|
3265
|
+
to: n.to,
|
|
3266
|
+
enter: (e) => {
|
|
3267
|
+
(e.from > n.from || Fi.test(e.name)) && (a = !0);
|
|
3268
|
+
},
|
|
3269
|
+
leave: (e) => {
|
|
3270
|
+
e.to < n.to && (a = !0);
|
|
3271
|
+
}
|
|
3272
|
+
}), !a && (t.dispatch({
|
|
3273
|
+
changes: [{
|
|
3274
|
+
from: n.from,
|
|
3275
|
+
insert: "["
|
|
3276
|
+
}, {
|
|
3277
|
+
from: n.to,
|
|
3278
|
+
insert: `](${r})`
|
|
3279
|
+
}],
|
|
3280
|
+
userEvent: "input.paste",
|
|
3281
|
+
scrollIntoView: !0
|
|
3282
|
+
}), !0);
|
|
3283
|
+
} });
|
|
3284
|
+
//#endregion
|
|
3285
|
+
export { gi as commonmarkLanguage, ki as deleteMarkupBackward, wi as insertNewlineContinueMarkup, Ci as insertNewlineContinueMarkupCommand, Mi as markdown, Ai as markdownKeymap, Q as markdownLanguage, Ii as pasteURLAsLink };
|