@covalent/components 8.15.0-beta.11 → 8.15.0-beta.13
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/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.mjs +18 -18
- package/notebook/notebook.d.ts +21 -4
- package/notebook/notebook.d.ts.map +1 -1
- package/{cell/cell.d.ts → notebook-cell/notebook-cell.d.ts} +4 -4
- package/notebook-cell/notebook-cell.d.ts.map +1 -0
- package/notebook-cell.js +32 -0
- package/{cell.mjs → notebook-cell.mjs} +24 -17
- package/notebook.js +39 -29
- package/notebook.mjs +1017 -924
- package/package.json +5 -5
- package/cell/cell.d.ts.map +0 -1
- package/cell.js +0 -25
package/notebook.mjs
CHANGED
@@ -1,105 +1,108 @@
|
|
1
|
-
import { i as F0, r as
|
1
|
+
import { i as F0, r as w0, s as v0, x as B, D as S0, e as T0 } from "./query-assigned-elements-4a39219d.mjs";
|
2
2
|
import { n as su } from "./property-9b6ea53b.mjs";
|
3
|
-
import "./
|
3
|
+
import "./alert.mjs";
|
4
|
+
import "./button.mjs";
|
5
|
+
import "./notebook-cell.mjs";
|
6
|
+
import "./code-snippet.mjs";
|
4
7
|
import "./icon.mjs";
|
5
8
|
import "./icon-button.mjs";
|
6
|
-
import "./button.mjs";
|
7
|
-
import "./select.mjs";
|
8
9
|
import "./list-item.mjs";
|
10
|
+
import "./select.mjs";
|
11
|
+
import "./utils-dc65fdc9.mjs";
|
12
|
+
import "./observer-be7b92e2.mjs";
|
13
|
+
import "./foundation-d533452a.mjs";
|
14
|
+
import "./tslib.es6-c4b0f3b1.mjs";
|
15
|
+
import "./foundation-2334d146.mjs";
|
9
16
|
import "./class-map-6e504a9a.mjs";
|
10
17
|
import "./directive-daf4e9b6.mjs";
|
11
|
-
import "./
|
12
|
-
import "./
|
13
|
-
import "./directive-helpers-e3ea6592.mjs";
|
14
|
-
import "./code-snippet.mjs";
|
15
|
-
import "./query-assigned-nodes-df691e78.mjs";
|
16
|
-
import "./_commonjsHelpers-2f131a27.mjs";
|
17
|
-
import "./typography.mjs";
|
18
|
-
import "./tslib.es6-c4b0f3b1.mjs";
|
18
|
+
import "./query-d843aa92.mjs";
|
19
|
+
import "./mwc-icon-5227aec3.mjs";
|
19
20
|
import "./ripple-handlers-8883e893.mjs";
|
20
21
|
import "./base-element-acf30176.mjs";
|
21
|
-
import "./utils-dc65fdc9.mjs";
|
22
22
|
import "./state-b5e865db.mjs";
|
23
|
-
import "./query-d843aa92.mjs";
|
24
23
|
import "./style-map-e7ec6d41.mjs";
|
25
24
|
import "./aria-property-fa2717fe.mjs";
|
26
25
|
import "./event-options-78d6cf94.mjs";
|
27
26
|
import "./if-defined-c367f208.mjs";
|
28
|
-
import "./
|
27
|
+
import "./code-editor-ce557bd5.mjs";
|
28
|
+
import "./async-directive-99a01ec7.mjs";
|
29
|
+
import "./directive-helpers-e3ea6592.mjs";
|
30
|
+
import "./typography.mjs";
|
31
|
+
import "./query-assigned-nodes-df691e78.mjs";
|
32
|
+
import "./_commonjsHelpers-2f131a27.mjs";
|
33
|
+
import "./mwc-list-item-base-3c6a3bfb.mjs";
|
34
|
+
import "./list-item-e628f363.mjs";
|
29
35
|
import "./mwc-line-ripple-directive-aabd8778.mjs";
|
30
36
|
import "./mwc-menu-base-04586160.mjs";
|
31
37
|
import "./mwc-list-base-402e1d8e.mjs";
|
32
|
-
import "./mwc-list-item-base-3c6a3bfb.mjs";
|
33
|
-
import "./observer-be7b92e2.mjs";
|
34
38
|
import "./form-element-abadd335.mjs";
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
let e = qu[u];
|
39
|
+
const Mu = {};
|
40
|
+
function I0(u) {
|
41
|
+
let e = Mu[u];
|
39
42
|
if (e)
|
40
43
|
return e;
|
41
|
-
e =
|
44
|
+
e = Mu[u] = [];
|
42
45
|
for (let t = 0; t < 128; t++) {
|
43
|
-
const
|
44
|
-
e.push(
|
46
|
+
const r = String.fromCharCode(t);
|
47
|
+
e.push(r);
|
45
48
|
}
|
46
49
|
for (let t = 0; t < u.length; t++) {
|
47
|
-
const
|
48
|
-
e[
|
50
|
+
const r = u.charCodeAt(t);
|
51
|
+
e[r] = "%" + ("0" + r.toString(16).toUpperCase()).slice(-2);
|
49
52
|
}
|
50
53
|
return e;
|
51
54
|
}
|
52
55
|
function V(u, e) {
|
53
56
|
typeof e != "string" && (e = V.defaultChars);
|
54
|
-
const t =
|
55
|
-
return u.replace(/(%[a-f0-9]{2})+/gi, function(
|
56
|
-
let
|
57
|
-
for (let c = 0, i =
|
58
|
-
const o = parseInt(
|
57
|
+
const t = I0(e);
|
58
|
+
return u.replace(/(%[a-f0-9]{2})+/gi, function(r) {
|
59
|
+
let n = "";
|
60
|
+
for (let c = 0, i = r.length; c < i; c += 3) {
|
61
|
+
const o = parseInt(r.slice(c + 1, c + 3), 16);
|
59
62
|
if (o < 128) {
|
60
|
-
|
63
|
+
n += t[o];
|
61
64
|
continue;
|
62
65
|
}
|
63
66
|
if ((o & 224) === 192 && c + 3 < i) {
|
64
|
-
const a = parseInt(
|
67
|
+
const a = parseInt(r.slice(c + 4, c + 6), 16);
|
65
68
|
if ((a & 192) === 128) {
|
66
69
|
const s = o << 6 & 1984 | a & 63;
|
67
|
-
s < 128 ?
|
70
|
+
s < 128 ? n += "��" : n += String.fromCharCode(s), c += 3;
|
68
71
|
continue;
|
69
72
|
}
|
70
73
|
}
|
71
74
|
if ((o & 240) === 224 && c + 6 < i) {
|
72
|
-
const a = parseInt(
|
75
|
+
const a = parseInt(r.slice(c + 4, c + 6), 16), s = parseInt(r.slice(c + 7, c + 9), 16);
|
73
76
|
if ((a & 192) === 128 && (s & 192) === 128) {
|
74
77
|
const l = o << 12 & 61440 | a << 6 & 4032 | s & 63;
|
75
|
-
l < 2048 || l >= 55296 && l <= 57343 ?
|
78
|
+
l < 2048 || l >= 55296 && l <= 57343 ? n += "���" : n += String.fromCharCode(l), c += 6;
|
76
79
|
continue;
|
77
80
|
}
|
78
81
|
}
|
79
82
|
if ((o & 248) === 240 && c + 9 < i) {
|
80
|
-
const a = parseInt(
|
83
|
+
const a = parseInt(r.slice(c + 4, c + 6), 16), s = parseInt(r.slice(c + 7, c + 9), 16), l = parseInt(r.slice(c + 10, c + 12), 16);
|
81
84
|
if ((a & 192) === 128 && (s & 192) === 128 && (l & 192) === 128) {
|
82
85
|
let d = o << 18 & 1835008 | a << 12 & 258048 | s << 6 & 4032 | l & 63;
|
83
|
-
d < 65536 || d > 1114111 ?
|
86
|
+
d < 65536 || d > 1114111 ? n += "����" : (d -= 65536, n += String.fromCharCode(55296 + (d >> 10), 56320 + (d & 1023))), c += 9;
|
84
87
|
continue;
|
85
88
|
}
|
86
89
|
}
|
87
|
-
|
90
|
+
n += "�";
|
88
91
|
}
|
89
|
-
return
|
92
|
+
return n;
|
90
93
|
});
|
91
94
|
}
|
92
95
|
V.defaultChars = ";/?:@&=+$,#";
|
93
96
|
V.componentChars = "";
|
94
|
-
const
|
95
|
-
function
|
96
|
-
let e =
|
97
|
+
const Ru = {};
|
98
|
+
function B0(u) {
|
99
|
+
let e = Ru[u];
|
97
100
|
if (e)
|
98
101
|
return e;
|
99
|
-
e =
|
102
|
+
e = Ru[u] = [];
|
100
103
|
for (let t = 0; t < 128; t++) {
|
101
|
-
const
|
102
|
-
/^[0-9a-z]$/i.test(
|
104
|
+
const r = String.fromCharCode(t);
|
105
|
+
/^[0-9a-z]$/i.test(r) ? e.push(r) : e.push("%" + ("0" + t.toString(16).toUpperCase()).slice(-2));
|
103
106
|
}
|
104
107
|
for (let t = 0; t < u.length; t++)
|
105
108
|
e[u.charCodeAt(t)] = u[t];
|
@@ -107,44 +110,44 @@ function I0(u) {
|
|
107
110
|
}
|
108
111
|
function uu(u, e, t) {
|
109
112
|
typeof e != "string" && (t = e, e = uu.defaultChars), typeof t > "u" && (t = !0);
|
110
|
-
const
|
111
|
-
let
|
113
|
+
const r = B0(e);
|
114
|
+
let n = "";
|
112
115
|
for (let c = 0, i = u.length; c < i; c++) {
|
113
116
|
const o = u.charCodeAt(c);
|
114
117
|
if (t && o === 37 && c + 2 < i && /^[0-9a-f]{2}$/i.test(u.slice(c + 1, c + 3))) {
|
115
|
-
|
118
|
+
n += u.slice(c, c + 3), c += 2;
|
116
119
|
continue;
|
117
120
|
}
|
118
121
|
if (o < 128) {
|
119
|
-
|
122
|
+
n += r[o];
|
120
123
|
continue;
|
121
124
|
}
|
122
125
|
if (o >= 55296 && o <= 57343) {
|
123
126
|
if (o >= 55296 && o <= 56319 && c + 1 < i) {
|
124
127
|
const a = u.charCodeAt(c + 1);
|
125
128
|
if (a >= 56320 && a <= 57343) {
|
126
|
-
|
129
|
+
n += encodeURIComponent(u[c] + u[c + 1]), c++;
|
127
130
|
continue;
|
128
131
|
}
|
129
132
|
}
|
130
|
-
|
133
|
+
n += "%EF%BF%BD";
|
131
134
|
continue;
|
132
135
|
}
|
133
|
-
|
136
|
+
n += encodeURIComponent(u[c]);
|
134
137
|
}
|
135
|
-
return
|
138
|
+
return n;
|
136
139
|
}
|
137
140
|
uu.defaultChars = ";/?:@&=+$,-_.!~*'()#";
|
138
141
|
uu.componentChars = "-_.!~*'()";
|
139
|
-
function
|
142
|
+
function Au(u) {
|
140
143
|
let e = "";
|
141
144
|
return e += u.protocol || "", e += u.slashes ? "//" : "", e += u.auth ? u.auth + "@" : "", u.hostname && u.hostname.indexOf(":") !== -1 ? e += "[" + u.hostname + "]" : e += u.hostname || "", e += u.port ? ":" + u.port : "", e += u.pathname || "", e += u.search || "", e += u.hash || "", e;
|
142
145
|
}
|
143
146
|
function iu() {
|
144
147
|
this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null;
|
145
148
|
}
|
146
|
-
const
|
147
|
-
`, " "],
|
149
|
+
const z0 = /^([a-z0-9.+-]+:)/i, M0 = /:[0-9]*$/, R0 = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, q0 = ["<", ">", '"', "`", " ", "\r", `
|
150
|
+
`, " "], L0 = ["{", "}", "|", "\\", "^", "`"].concat(q0), P0 = ["'"].concat(L0), qu = ["%", "/", "?", ";", "#"].concat(P0), Lu = ["/", "?", "#"], O0 = 255, Pu = /^[+a-z0-9A-Z_-]{0,63}$/, $0 = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, Ou = {
|
148
151
|
javascript: !0,
|
149
152
|
"javascript:": !0
|
150
153
|
}, $u = {
|
@@ -166,21 +169,21 @@ function Fu(u, e) {
|
|
166
169
|
return t.parse(u, e), t;
|
167
170
|
}
|
168
171
|
iu.prototype.parse = function(u, e) {
|
169
|
-
let t,
|
172
|
+
let t, r, n, c = u;
|
170
173
|
if (c = c.trim(), !e && u.split("#").length === 1) {
|
171
|
-
const s =
|
174
|
+
const s = R0.exec(c);
|
172
175
|
if (s)
|
173
176
|
return this.pathname = s[1], s[2] && (this.search = s[2]), this;
|
174
177
|
}
|
175
|
-
let i =
|
176
|
-
if (i && (i = i[0], t = i.toLowerCase(), this.protocol = i, c = c.substr(i.length)), (e || i || c.match(/^\/\/[^@\/]+@[^@\/]+/)) && (
|
178
|
+
let i = z0.exec(c);
|
179
|
+
if (i && (i = i[0], t = i.toLowerCase(), this.protocol = i, c = c.substr(i.length)), (e || i || c.match(/^\/\/[^@\/]+@[^@\/]+/)) && (n = c.substr(0, 2) === "//", n && !(i && Ou[i]) && (c = c.substr(2), this.slashes = !0)), !Ou[i] && (n || i && !$u[i])) {
|
177
180
|
let s = -1;
|
178
181
|
for (let f = 0; f < Lu.length; f++)
|
179
|
-
|
182
|
+
r = c.indexOf(Lu[f]), r !== -1 && (s === -1 || r < s) && (s = r);
|
180
183
|
let l, d;
|
181
184
|
s === -1 ? d = c.lastIndexOf("@") : d = c.lastIndexOf("@", s), d !== -1 && (l = c.slice(0, d), c = c.slice(d + 1), this.auth = l), s = -1;
|
182
|
-
for (let f = 0; f <
|
183
|
-
|
185
|
+
for (let f = 0; f < qu.length; f++)
|
186
|
+
r = c.indexOf(qu[f]), r !== -1 && (s === -1 || r < s) && (s = r);
|
184
187
|
s === -1 && (s = c.length), c[s - 1] === ":" && s--;
|
185
188
|
const b = c.slice(0, s);
|
186
189
|
c = c.slice(s), this.parseHost(b), this.hostname = this.hostname || "";
|
@@ -194,14 +197,14 @@ iu.prototype.parse = function(u, e) {
|
|
194
197
|
for (let _ = 0, x = D.length; _ < x; _++)
|
195
198
|
D.charCodeAt(_) > 127 ? p += "x" : p += D[_];
|
196
199
|
if (!p.match(Pu)) {
|
197
|
-
const _ = f.slice(0, g), x = f.slice(g + 1), m = D.match(
|
200
|
+
const _ = f.slice(0, g), x = f.slice(g + 1), m = D.match($0);
|
198
201
|
m && (_.push(m[1]), x.unshift(m[2])), x.length && (c = x.join(".") + c), this.hostname = _.join(".");
|
199
202
|
break;
|
200
203
|
}
|
201
204
|
}
|
202
205
|
}
|
203
206
|
}
|
204
|
-
this.hostname.length >
|
207
|
+
this.hostname.length > O0 && (this.hostname = ""), h && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
|
205
208
|
}
|
206
209
|
const o = c.indexOf("#");
|
207
210
|
o !== -1 && (this.hash = c.substr(o), c = c.slice(0, o));
|
@@ -209,32 +212,32 @@ iu.prototype.parse = function(u, e) {
|
|
209
212
|
return a !== -1 && (this.search = c.substr(a), c = c.slice(0, a)), c && (this.pathname = c), $u[t] && this.hostname && !this.pathname && (this.pathname = ""), this;
|
210
213
|
};
|
211
214
|
iu.prototype.parseHost = function(u) {
|
212
|
-
let e =
|
215
|
+
let e = M0.exec(u);
|
213
216
|
e && (e = e[0], e !== ":" && (this.port = e.substr(1)), u = u.substr(0, u.length - e.length)), u && (this.hostname = u);
|
214
217
|
};
|
215
|
-
const
|
218
|
+
const N0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
216
219
|
__proto__: null,
|
217
220
|
decode: V,
|
218
221
|
encode: uu,
|
219
|
-
format:
|
222
|
+
format: Au,
|
220
223
|
parse: Fu
|
221
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
224
|
+
}, Symbol.toStringTag, { value: "Module" })), Xu = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Yu = /[\0-\x1F\x7F-\x9F]/, j0 = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, wu = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, u0 = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, e0 = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
222
225
|
__proto__: null,
|
223
|
-
Any:
|
226
|
+
Any: Xu,
|
224
227
|
Cc: Yu,
|
225
|
-
Cf:
|
226
|
-
P:
|
228
|
+
Cf: j0,
|
229
|
+
P: wu,
|
227
230
|
S: u0,
|
228
231
|
Z: e0
|
229
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
232
|
+
}, Symbol.toStringTag, { value: "Module" })), H0 = new Uint16Array(
|
230
233
|
// prettier-ignore
|
231
234
|
'ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((u) => u.charCodeAt(0))
|
232
|
-
),
|
235
|
+
), Z0 = new Uint16Array(
|
233
236
|
// prettier-ignore
|
234
237
|
"Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((u) => u.charCodeAt(0))
|
235
238
|
);
|
236
239
|
var pu;
|
237
|
-
const
|
240
|
+
const V0 = /* @__PURE__ */ new Map([
|
238
241
|
[0, 65533],
|
239
242
|
// C1 Unicode control character reference replacements
|
240
243
|
[128, 8364],
|
@@ -264,53 +267,53 @@ const Z0 = /* @__PURE__ */ new Map([
|
|
264
267
|
[156, 339],
|
265
268
|
[158, 382],
|
266
269
|
[159, 376]
|
267
|
-
]),
|
270
|
+
]), G0 = (
|
268
271
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
|
269
272
|
(pu = String.fromCodePoint) !== null && pu !== void 0 ? pu : function(u) {
|
270
273
|
let e = "";
|
271
274
|
return u > 65535 && (u -= 65536, e += String.fromCharCode(u >>> 10 & 1023 | 55296), u = 56320 | u & 1023), e += String.fromCharCode(u), e;
|
272
275
|
}
|
273
276
|
);
|
274
|
-
function
|
277
|
+
function W0(u) {
|
275
278
|
var e;
|
276
|
-
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e =
|
279
|
+
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e = V0.get(u)) !== null && e !== void 0 ? e : u;
|
277
280
|
}
|
278
|
-
var
|
281
|
+
var A;
|
279
282
|
(function(u) {
|
280
283
|
u[u.NUM = 35] = "NUM", u[u.SEMI = 59] = "SEMI", u[u.EQUALS = 61] = "EQUALS", u[u.ZERO = 48] = "ZERO", u[u.NINE = 57] = "NINE", u[u.LOWER_A = 97] = "LOWER_A", u[u.LOWER_F = 102] = "LOWER_F", u[u.LOWER_X = 120] = "LOWER_X", u[u.LOWER_Z = 122] = "LOWER_Z", u[u.UPPER_A = 65] = "UPPER_A", u[u.UPPER_F = 70] = "UPPER_F", u[u.UPPER_Z = 90] = "UPPER_Z";
|
281
|
-
})(
|
282
|
-
const
|
284
|
+
})(A || (A = {}));
|
285
|
+
const J0 = 32;
|
283
286
|
var $;
|
284
287
|
(function(u) {
|
285
288
|
u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
|
286
289
|
})($ || ($ = {}));
|
287
290
|
function Du(u) {
|
288
|
-
return u >=
|
289
|
-
}
|
290
|
-
function J0(u) {
|
291
|
-
return u >= y.UPPER_A && u <= y.UPPER_F || u >= y.LOWER_A && u <= y.LOWER_F;
|
291
|
+
return u >= A.ZERO && u <= A.NINE;
|
292
292
|
}
|
293
293
|
function Q0(u) {
|
294
|
-
return u >=
|
294
|
+
return u >= A.UPPER_A && u <= A.UPPER_F || u >= A.LOWER_A && u <= A.LOWER_F;
|
295
|
+
}
|
296
|
+
function K0(u) {
|
297
|
+
return u >= A.UPPER_A && u <= A.UPPER_Z || u >= A.LOWER_A && u <= A.LOWER_Z || Du(u);
|
295
298
|
}
|
296
299
|
function X0(u) {
|
297
|
-
return u ===
|
300
|
+
return u === A.EQUALS || K0(u);
|
298
301
|
}
|
299
|
-
var
|
302
|
+
var y;
|
300
303
|
(function(u) {
|
301
304
|
u[u.EntityStart = 0] = "EntityStart", u[u.NumericStart = 1] = "NumericStart", u[u.NumericDecimal = 2] = "NumericDecimal", u[u.NumericHex = 3] = "NumericHex", u[u.NamedEntity = 4] = "NamedEntity";
|
302
|
-
})(
|
305
|
+
})(y || (y = {}));
|
303
306
|
var O;
|
304
307
|
(function(u) {
|
305
308
|
u[u.Legacy = 0] = "Legacy", u[u.Strict = 1] = "Strict", u[u.Attribute = 2] = "Attribute";
|
306
309
|
})(O || (O = {}));
|
307
|
-
class
|
308
|
-
constructor(e, t,
|
309
|
-
this.decodeTree = e, this.emitCodePoint = t, this.errors =
|
310
|
+
class Y0 {
|
311
|
+
constructor(e, t, r) {
|
312
|
+
this.decodeTree = e, this.emitCodePoint = t, this.errors = r, this.state = y.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = O.Strict;
|
310
313
|
}
|
311
314
|
/** Resets the instance to make it reusable. */
|
312
315
|
startEntity(e) {
|
313
|
-
this.decodeMode = e, this.state =
|
316
|
+
this.decodeMode = e, this.state = y.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
|
314
317
|
}
|
315
318
|
/**
|
316
319
|
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
@@ -325,15 +328,15 @@ class K0 {
|
|
325
328
|
*/
|
326
329
|
write(e, t) {
|
327
330
|
switch (this.state) {
|
328
|
-
case
|
329
|
-
return e.charCodeAt(t) ===
|
330
|
-
case
|
331
|
+
case y.EntityStart:
|
332
|
+
return e.charCodeAt(t) === A.NUM ? (this.state = y.NumericStart, this.consumed += 1, this.stateNumericStart(e, t + 1)) : (this.state = y.NamedEntity, this.stateNamedEntity(e, t));
|
333
|
+
case y.NumericStart:
|
331
334
|
return this.stateNumericStart(e, t);
|
332
|
-
case
|
335
|
+
case y.NumericDecimal:
|
333
336
|
return this.stateNumericDecimal(e, t);
|
334
|
-
case
|
337
|
+
case y.NumericHex:
|
335
338
|
return this.stateNumericHex(e, t);
|
336
|
-
case
|
339
|
+
case y.NamedEntity:
|
337
340
|
return this.stateNamedEntity(e, t);
|
338
341
|
}
|
339
342
|
}
|
@@ -347,12 +350,12 @@ class K0 {
|
|
347
350
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
348
351
|
*/
|
349
352
|
stateNumericStart(e, t) {
|
350
|
-
return t >= e.length ? -1 : (e.charCodeAt(t) |
|
353
|
+
return t >= e.length ? -1 : (e.charCodeAt(t) | J0) === A.LOWER_X ? (this.state = y.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = y.NumericDecimal, this.stateNumericDecimal(e, t));
|
351
354
|
}
|
352
|
-
addToNumericResult(e, t,
|
353
|
-
if (t !==
|
354
|
-
const c =
|
355
|
-
this.result = this.result * Math.pow(
|
355
|
+
addToNumericResult(e, t, r, n) {
|
356
|
+
if (t !== r) {
|
357
|
+
const c = r - t;
|
358
|
+
this.result = this.result * Math.pow(n, c) + parseInt(e.substr(t, c), n), this.consumed += c;
|
356
359
|
}
|
357
360
|
}
|
358
361
|
/**
|
@@ -365,15 +368,15 @@ class K0 {
|
|
365
368
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
366
369
|
*/
|
367
370
|
stateNumericHex(e, t) {
|
368
|
-
const
|
371
|
+
const r = t;
|
369
372
|
for (; t < e.length; ) {
|
370
|
-
const
|
371
|
-
if (Du(
|
373
|
+
const n = e.charCodeAt(t);
|
374
|
+
if (Du(n) || Q0(n))
|
372
375
|
t += 1;
|
373
376
|
else
|
374
|
-
return this.addToNumericResult(e,
|
377
|
+
return this.addToNumericResult(e, r, t, 16), this.emitNumericEntity(n, 3);
|
375
378
|
}
|
376
|
-
return this.addToNumericResult(e,
|
379
|
+
return this.addToNumericResult(e, r, t, 16), -1;
|
377
380
|
}
|
378
381
|
/**
|
379
382
|
* Parses a decimal numeric entity.
|
@@ -385,15 +388,15 @@ class K0 {
|
|
385
388
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
386
389
|
*/
|
387
390
|
stateNumericDecimal(e, t) {
|
388
|
-
const
|
391
|
+
const r = t;
|
389
392
|
for (; t < e.length; ) {
|
390
|
-
const
|
391
|
-
if (Du(
|
393
|
+
const n = e.charCodeAt(t);
|
394
|
+
if (Du(n))
|
392
395
|
t += 1;
|
393
396
|
else
|
394
|
-
return this.addToNumericResult(e,
|
397
|
+
return this.addToNumericResult(e, r, t, 10), this.emitNumericEntity(n, 2);
|
395
398
|
}
|
396
|
-
return this.addToNumericResult(e,
|
399
|
+
return this.addToNumericResult(e, r, t, 10), -1;
|
397
400
|
}
|
398
401
|
/**
|
399
402
|
* Validate and emit a numeric entity.
|
@@ -409,14 +412,14 @@ class K0 {
|
|
409
412
|
* @returns The number of characters that were consumed.
|
410
413
|
*/
|
411
414
|
emitNumericEntity(e, t) {
|
412
|
-
var
|
415
|
+
var r;
|
413
416
|
if (this.consumed <= t)
|
414
|
-
return (
|
415
|
-
if (e ===
|
417
|
+
return (r = this.errors) === null || r === void 0 || r.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
418
|
+
if (e === A.SEMI)
|
416
419
|
this.consumed += 1;
|
417
420
|
else if (this.decodeMode === O.Strict)
|
418
421
|
return 0;
|
419
|
-
return this.emitCodePoint(
|
422
|
+
return this.emitCodePoint(W0(this.result), this.consumed), this.errors && (e !== A.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
420
423
|
}
|
421
424
|
/**
|
422
425
|
* Parses a named entity.
|
@@ -428,17 +431,17 @@ class K0 {
|
|
428
431
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
429
432
|
*/
|
430
433
|
stateNamedEntity(e, t) {
|
431
|
-
const { decodeTree:
|
432
|
-
let
|
434
|
+
const { decodeTree: r } = this;
|
435
|
+
let n = r[this.treeIndex], c = (n & $.VALUE_LENGTH) >> 14;
|
433
436
|
for (; t < e.length; t++, this.excess++) {
|
434
437
|
const i = e.charCodeAt(t);
|
435
|
-
if (this.treeIndex =
|
438
|
+
if (this.treeIndex = ue(r, n, this.treeIndex + Math.max(1, c), i), this.treeIndex < 0)
|
436
439
|
return this.result === 0 || // If we are parsing an attribute
|
437
440
|
this.decodeMode === O.Attribute && // We shouldn't have consumed any characters after the entity,
|
438
441
|
(c === 0 || // And there should be no invalid characters.
|
439
442
|
X0(i)) ? 0 : this.emitNotTerminatedNamedEntity();
|
440
|
-
if (
|
441
|
-
if (i ===
|
443
|
+
if (n = r[this.treeIndex], c = (n & $.VALUE_LENGTH) >> 14, c !== 0) {
|
444
|
+
if (i === A.SEMI)
|
442
445
|
return this.emitNamedEntityData(this.treeIndex, c, this.consumed + this.excess);
|
443
446
|
this.decodeMode !== O.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
444
447
|
}
|
@@ -452,8 +455,8 @@ class K0 {
|
|
452
455
|
*/
|
453
456
|
emitNotTerminatedNamedEntity() {
|
454
457
|
var e;
|
455
|
-
const { result: t, decodeTree:
|
456
|
-
return this.emitNamedEntityData(t,
|
458
|
+
const { result: t, decodeTree: r } = this, n = (r[t] & $.VALUE_LENGTH) >> 14;
|
459
|
+
return this.emitNamedEntityData(t, n, this.consumed), (e = this.errors) === null || e === void 0 || e.missingSemicolonAfterCharacterReference(), this.consumed;
|
457
460
|
}
|
458
461
|
/**
|
459
462
|
* Emit a named entity.
|
@@ -464,9 +467,9 @@ class K0 {
|
|
464
467
|
*
|
465
468
|
* @returns The number of characters consumed.
|
466
469
|
*/
|
467
|
-
emitNamedEntityData(e, t,
|
468
|
-
const { decodeTree:
|
469
|
-
return this.emitCodePoint(t === 1 ?
|
470
|
+
emitNamedEntityData(e, t, r) {
|
471
|
+
const { decodeTree: n } = this;
|
472
|
+
return this.emitCodePoint(t === 1 ? n[e] & ~$.VALUE_LENGTH : n[e + 1], r), t === 3 && this.emitCodePoint(n[e + 2], r), r;
|
470
473
|
}
|
471
474
|
/**
|
472
475
|
* Signal to the parser that the end of the input was reached.
|
@@ -478,28 +481,28 @@ class K0 {
|
|
478
481
|
end() {
|
479
482
|
var e;
|
480
483
|
switch (this.state) {
|
481
|
-
case
|
484
|
+
case y.NamedEntity:
|
482
485
|
return this.result !== 0 && (this.decodeMode !== O.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
483
|
-
case
|
486
|
+
case y.NumericDecimal:
|
484
487
|
return this.emitNumericEntity(0, 2);
|
485
|
-
case
|
488
|
+
case y.NumericHex:
|
486
489
|
return this.emitNumericEntity(0, 3);
|
487
|
-
case
|
490
|
+
case y.NumericStart:
|
488
491
|
return (e = this.errors) === null || e === void 0 || e.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
489
|
-
case
|
492
|
+
case y.EntityStart:
|
490
493
|
return 0;
|
491
494
|
}
|
492
495
|
}
|
493
496
|
}
|
494
497
|
function t0(u) {
|
495
498
|
let e = "";
|
496
|
-
const t = new
|
497
|
-
return function(
|
499
|
+
const t = new Y0(u, (r) => e += G0(r));
|
500
|
+
return function(n, c) {
|
498
501
|
let i = 0, o = 0;
|
499
|
-
for (; (o =
|
500
|
-
e +=
|
502
|
+
for (; (o = n.indexOf("&", o)) >= 0; ) {
|
503
|
+
e += n.slice(i, o), t.startEntity(c);
|
501
504
|
const s = t.write(
|
502
|
-
|
505
|
+
n,
|
503
506
|
// Skip the "&"
|
504
507
|
o + 1
|
505
508
|
);
|
@@ -509,57 +512,57 @@ function t0(u) {
|
|
509
512
|
}
|
510
513
|
i = o + s, o = s === 0 ? i + 1 : i;
|
511
514
|
}
|
512
|
-
const a = e +
|
515
|
+
const a = e + n.slice(i);
|
513
516
|
return e = "", a;
|
514
517
|
};
|
515
518
|
}
|
516
|
-
function
|
517
|
-
const
|
518
|
-
if (
|
519
|
-
return c !== 0 &&
|
519
|
+
function ue(u, e, t, r) {
|
520
|
+
const n = (e & $.BRANCH_LENGTH) >> 7, c = e & $.JUMP_TABLE;
|
521
|
+
if (n === 0)
|
522
|
+
return c !== 0 && r === c ? t : -1;
|
520
523
|
if (c) {
|
521
|
-
const a =
|
522
|
-
return a < 0 || a >=
|
524
|
+
const a = r - c;
|
525
|
+
return a < 0 || a >= n ? -1 : u[t + a] - 1;
|
523
526
|
}
|
524
|
-
let i = t, o = i +
|
527
|
+
let i = t, o = i + n - 1;
|
525
528
|
for (; i <= o; ) {
|
526
529
|
const a = i + o >>> 1, s = u[a];
|
527
|
-
if (s <
|
530
|
+
if (s < r)
|
528
531
|
i = a + 1;
|
529
|
-
else if (s >
|
532
|
+
else if (s > r)
|
530
533
|
o = a - 1;
|
531
534
|
else
|
532
|
-
return u[a +
|
535
|
+
return u[a + n];
|
533
536
|
}
|
534
537
|
return -1;
|
535
538
|
}
|
536
|
-
const
|
537
|
-
t0(
|
538
|
-
function
|
539
|
-
return
|
539
|
+
const ee = t0(H0);
|
540
|
+
t0(Z0);
|
541
|
+
function n0(u, e = O.Legacy) {
|
542
|
+
return ee(u, e);
|
540
543
|
}
|
541
|
-
function
|
544
|
+
function te(u) {
|
542
545
|
return Object.prototype.toString.call(u);
|
543
546
|
}
|
544
|
-
function
|
545
|
-
return
|
547
|
+
function vu(u) {
|
548
|
+
return te(u) === "[object String]";
|
546
549
|
}
|
547
|
-
const
|
550
|
+
const ne = Object.prototype.hasOwnProperty;
|
548
551
|
function re(u, e) {
|
549
|
-
return
|
552
|
+
return ne.call(u, e);
|
550
553
|
}
|
551
554
|
function lu(u) {
|
552
555
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
553
556
|
if (t) {
|
554
557
|
if (typeof t != "object")
|
555
558
|
throw new TypeError(t + "must be object");
|
556
|
-
Object.keys(t).forEach(function(
|
557
|
-
u[
|
559
|
+
Object.keys(t).forEach(function(r) {
|
560
|
+
u[r] = t[r];
|
558
561
|
});
|
559
562
|
}
|
560
563
|
}), u;
|
561
564
|
}
|
562
|
-
function
|
565
|
+
function r0(u, e, t) {
|
563
566
|
return [].concat(u.slice(0, e), t, u.slice(e + 1));
|
564
567
|
}
|
565
568
|
function Su(u) {
|
@@ -573,38 +576,38 @@ function ou(u) {
|
|
573
576
|
}
|
574
577
|
return String.fromCharCode(u);
|
575
578
|
}
|
576
|
-
const c0 = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,
|
577
|
-
function
|
578
|
-
if (e.charCodeAt(0) === 35 &&
|
579
|
-
const
|
580
|
-
return Su(
|
579
|
+
const c0 = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, ce = /&([a-z#][a-z0-9]{1,31});/gi, ie = new RegExp(c0.source + "|" + ce.source, "gi"), oe = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
|
580
|
+
function ae(u, e) {
|
581
|
+
if (e.charCodeAt(0) === 35 && oe.test(e)) {
|
582
|
+
const r = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
|
583
|
+
return Su(r) ? ou(r) : u;
|
581
584
|
}
|
582
|
-
const t =
|
585
|
+
const t = n0(u);
|
583
586
|
return t !== u ? t : u;
|
584
587
|
}
|
585
|
-
function
|
588
|
+
function se(u) {
|
586
589
|
return u.indexOf("\\") < 0 ? u : u.replace(c0, "$1");
|
587
590
|
}
|
588
591
|
function G(u) {
|
589
|
-
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(
|
590
|
-
return t ||
|
592
|
+
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(ie, function(e, t, r) {
|
593
|
+
return t || ae(e, r);
|
591
594
|
});
|
592
595
|
}
|
593
|
-
const
|
596
|
+
const le = /[&<>"]/, fe = /[&<>"]/g, de = {
|
594
597
|
"&": "&",
|
595
598
|
"<": "<",
|
596
599
|
">": ">",
|
597
600
|
'"': """
|
598
601
|
};
|
599
|
-
function
|
600
|
-
return
|
602
|
+
function he(u) {
|
603
|
+
return de[u];
|
601
604
|
}
|
602
605
|
function N(u) {
|
603
|
-
return
|
606
|
+
return le.test(u) ? u.replace(fe, he) : u;
|
604
607
|
}
|
605
|
-
const
|
606
|
-
function
|
607
|
-
return u.replace(
|
608
|
+
const be = /[.?*+^$[\]\\(){}|-]/g;
|
609
|
+
function pe(u) {
|
610
|
+
return u.replace(be, "\\$&");
|
608
611
|
}
|
609
612
|
function E(u) {
|
610
613
|
switch (u) {
|
@@ -633,10 +636,10 @@ function Q(u) {
|
|
633
636
|
}
|
634
637
|
return !1;
|
635
638
|
}
|
636
|
-
function X(u) {
|
637
|
-
return vu.test(u) || u0.test(u);
|
638
|
-
}
|
639
639
|
function K(u) {
|
640
|
+
return wu.test(u) || u0.test(u);
|
641
|
+
}
|
642
|
+
function X(u) {
|
640
643
|
switch (u) {
|
641
644
|
case 33:
|
642
645
|
case 34:
|
@@ -678,85 +681,85 @@ function K(u) {
|
|
678
681
|
function fu(u) {
|
679
682
|
return u = u.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (u = u.replace(/ẞ/g, "ß")), u.toLowerCase().toUpperCase();
|
680
683
|
}
|
681
|
-
const
|
684
|
+
const xe = { mdurl: N0, ucmicro: U0 }, _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
682
685
|
__proto__: null,
|
683
|
-
arrayReplaceAt:
|
686
|
+
arrayReplaceAt: r0,
|
684
687
|
assign: lu,
|
685
688
|
escapeHtml: N,
|
686
|
-
escapeRE:
|
689
|
+
escapeRE: pe,
|
687
690
|
fromCodePoint: ou,
|
688
691
|
has: re,
|
689
|
-
isMdAsciiPunct:
|
690
|
-
isPunctChar:
|
692
|
+
isMdAsciiPunct: X,
|
693
|
+
isPunctChar: K,
|
691
694
|
isSpace: E,
|
692
|
-
isString:
|
695
|
+
isString: vu,
|
693
696
|
isValidEntityCode: Su,
|
694
697
|
isWhiteSpace: Q,
|
695
|
-
lib:
|
698
|
+
lib: xe,
|
696
699
|
normalizeReference: fu,
|
697
700
|
unescapeAll: G,
|
698
|
-
unescapeMd:
|
701
|
+
unescapeMd: se
|
699
702
|
}, Symbol.toStringTag, { value: "Module" }));
|
700
|
-
function
|
701
|
-
let
|
703
|
+
function me(u, e, t) {
|
704
|
+
let r, n, c, i;
|
702
705
|
const o = u.posMax, a = u.pos;
|
703
|
-
for (u.pos = e + 1,
|
704
|
-
if (c = u.src.charCodeAt(u.pos), c === 93 && (
|
705
|
-
|
706
|
+
for (u.pos = e + 1, r = 1; u.pos < o; ) {
|
707
|
+
if (c = u.src.charCodeAt(u.pos), c === 93 && (r--, r === 0)) {
|
708
|
+
n = !0;
|
706
709
|
break;
|
707
710
|
}
|
708
711
|
if (i = u.pos, u.md.inline.skipToken(u), c === 91) {
|
709
712
|
if (i === u.pos - 1)
|
710
|
-
|
713
|
+
r++;
|
711
714
|
else if (t)
|
712
715
|
return u.pos = a, -1;
|
713
716
|
}
|
714
717
|
}
|
715
718
|
let s = -1;
|
716
|
-
return
|
719
|
+
return n && (s = u.pos), u.pos = a, s;
|
717
720
|
}
|
718
|
-
function
|
719
|
-
let
|
721
|
+
function ge(u, e, t) {
|
722
|
+
let r, n = e;
|
720
723
|
const c = {
|
721
724
|
ok: !1,
|
722
725
|
pos: 0,
|
723
726
|
str: ""
|
724
727
|
};
|
725
|
-
if (u.charCodeAt(
|
726
|
-
for (
|
727
|
-
if (
|
728
|
+
if (u.charCodeAt(n) === 60) {
|
729
|
+
for (n++; n < t; ) {
|
730
|
+
if (r = u.charCodeAt(n), r === 10 || r === 60)
|
728
731
|
return c;
|
729
|
-
if (
|
730
|
-
return c.pos =
|
731
|
-
if (
|
732
|
-
|
732
|
+
if (r === 62)
|
733
|
+
return c.pos = n + 1, c.str = G(u.slice(e + 1, n)), c.ok = !0, c;
|
734
|
+
if (r === 92 && n + 1 < t) {
|
735
|
+
n += 2;
|
733
736
|
continue;
|
734
737
|
}
|
735
|
-
|
738
|
+
n++;
|
736
739
|
}
|
737
740
|
return c;
|
738
741
|
}
|
739
742
|
let i = 0;
|
740
|
-
for (;
|
741
|
-
if (
|
742
|
-
if (u.charCodeAt(
|
743
|
+
for (; n < t && (r = u.charCodeAt(n), !(r === 32 || r < 32 || r === 127)); ) {
|
744
|
+
if (r === 92 && n + 1 < t) {
|
745
|
+
if (u.charCodeAt(n + 1) === 32)
|
743
746
|
break;
|
744
|
-
|
747
|
+
n += 2;
|
745
748
|
continue;
|
746
749
|
}
|
747
|
-
if (
|
750
|
+
if (r === 40 && (i++, i > 32))
|
748
751
|
return c;
|
749
|
-
if (
|
752
|
+
if (r === 41) {
|
750
753
|
if (i === 0)
|
751
754
|
break;
|
752
755
|
i--;
|
753
756
|
}
|
754
|
-
|
757
|
+
n++;
|
755
758
|
}
|
756
|
-
return e ===
|
759
|
+
return e === n || i !== 0 || (c.str = G(u.slice(e, n)), c.pos = n, c.ok = !0), c;
|
757
760
|
}
|
758
|
-
function
|
759
|
-
let
|
761
|
+
function ke(u, e, t, r) {
|
762
|
+
let n, c = e;
|
760
763
|
const i = {
|
761
764
|
// if `true`, this is a valid link title
|
762
765
|
ok: !1,
|
@@ -769,8 +772,8 @@ function ge(u, e, t, n) {
|
|
769
772
|
// expected closing marker character code
|
770
773
|
marker: 0
|
771
774
|
};
|
772
|
-
if (
|
773
|
-
i.str =
|
775
|
+
if (r)
|
776
|
+
i.str = r.str, i.marker = r.marker;
|
774
777
|
else {
|
775
778
|
if (c >= t)
|
776
779
|
return i;
|
@@ -780,30 +783,30 @@ function ge(u, e, t, n) {
|
|
780
783
|
e++, c++, o === 40 && (o = 41), i.marker = o;
|
781
784
|
}
|
782
785
|
for (; c < t; ) {
|
783
|
-
if (
|
786
|
+
if (n = u.charCodeAt(c), n === i.marker)
|
784
787
|
return i.pos = c + 1, i.str += G(u.slice(e, c)), i.ok = !0, i;
|
785
|
-
if (
|
788
|
+
if (n === 40 && i.marker === 41)
|
786
789
|
return i;
|
787
|
-
|
790
|
+
n === 92 && c + 1 < t && c++, c++;
|
788
791
|
}
|
789
792
|
return i.can_continue = !0, i.str += G(u.slice(e, c)), i;
|
790
793
|
}
|
791
|
-
const
|
794
|
+
const Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
792
795
|
__proto__: null,
|
793
|
-
parseLinkDestination:
|
794
|
-
parseLinkLabel:
|
795
|
-
parseLinkTitle:
|
796
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
797
|
-
|
796
|
+
parseLinkDestination: ge,
|
797
|
+
parseLinkLabel: me,
|
798
|
+
parseLinkTitle: ke
|
799
|
+
}, Symbol.toStringTag, { value: "Module" })), R = {};
|
800
|
+
R.code_inline = function(u, e, t, r, n) {
|
798
801
|
const c = u[e];
|
799
|
-
return "<code" +
|
802
|
+
return "<code" + n.renderAttrs(c) + ">" + N(c.content) + "</code>";
|
800
803
|
};
|
801
|
-
|
804
|
+
R.code_block = function(u, e, t, r, n) {
|
802
805
|
const c = u[e];
|
803
|
-
return "<pre" +
|
806
|
+
return "<pre" + n.renderAttrs(c) + "><code>" + N(u[e].content) + `</code></pre>
|
804
807
|
`;
|
805
808
|
};
|
806
|
-
|
809
|
+
R.fence = function(u, e, t, r, n) {
|
807
810
|
const c = u[e], i = c.info ? G(c.info).trim() : "";
|
808
811
|
let o = "", a = "";
|
809
812
|
if (i) {
|
@@ -820,192 +823,192 @@ q.fence = function(u, e, t, n, r) {
|
|
820
823
|
const b = {
|
821
824
|
attrs: d
|
822
825
|
};
|
823
|
-
return `<pre><code${
|
826
|
+
return `<pre><code${n.renderAttrs(b)}>${s}</code></pre>
|
824
827
|
`;
|
825
828
|
}
|
826
|
-
return `<pre><code${
|
829
|
+
return `<pre><code${n.renderAttrs(c)}>${s}</code></pre>
|
827
830
|
`;
|
828
831
|
};
|
829
|
-
|
832
|
+
R.image = function(u, e, t, r, n) {
|
830
833
|
const c = u[e];
|
831
|
-
return c.attrs[c.attrIndex("alt")][1] =
|
834
|
+
return c.attrs[c.attrIndex("alt")][1] = n.renderInlineAsText(c.children, t, r), n.renderToken(u, e, t);
|
832
835
|
};
|
833
|
-
|
836
|
+
R.hardbreak = function(u, e, t) {
|
834
837
|
return t.xhtmlOut ? `<br />
|
835
838
|
` : `<br>
|
836
839
|
`;
|
837
840
|
};
|
838
|
-
|
841
|
+
R.softbreak = function(u, e, t) {
|
839
842
|
return t.breaks ? t.xhtmlOut ? `<br />
|
840
843
|
` : `<br>
|
841
844
|
` : `
|
842
845
|
`;
|
843
846
|
};
|
844
|
-
|
847
|
+
R.text = function(u, e) {
|
845
848
|
return N(u[e].content);
|
846
849
|
};
|
847
|
-
|
850
|
+
R.html_block = function(u, e) {
|
848
851
|
return u[e].content;
|
849
852
|
};
|
850
|
-
|
853
|
+
R.html_inline = function(u, e) {
|
851
854
|
return u[e].content;
|
852
855
|
};
|
853
856
|
function W() {
|
854
|
-
this.rules = lu({},
|
857
|
+
this.rules = lu({}, R);
|
855
858
|
}
|
856
859
|
W.prototype.renderAttrs = function(e) {
|
857
|
-
let t,
|
860
|
+
let t, r, n;
|
858
861
|
if (!e.attrs)
|
859
862
|
return "";
|
860
|
-
for (
|
861
|
-
|
862
|
-
return
|
863
|
+
for (n = "", t = 0, r = e.attrs.length; t < r; t++)
|
864
|
+
n += " " + N(e.attrs[t][0]) + '="' + N(e.attrs[t][1]) + '"';
|
865
|
+
return n;
|
863
866
|
};
|
864
|
-
W.prototype.renderToken = function(e, t,
|
865
|
-
const
|
867
|
+
W.prototype.renderToken = function(e, t, r) {
|
868
|
+
const n = e[t];
|
866
869
|
let c = "";
|
867
|
-
if (
|
870
|
+
if (n.hidden)
|
868
871
|
return "";
|
869
|
-
|
870
|
-
`), c += (
|
872
|
+
n.block && n.nesting !== -1 && t && e[t - 1].hidden && (c += `
|
873
|
+
`), c += (n.nesting === -1 ? "</" : "<") + n.tag, c += this.renderAttrs(n), n.nesting === 0 && r.xhtmlOut && (c += " /");
|
871
874
|
let i = !1;
|
872
|
-
if (
|
875
|
+
if (n.block && (i = !0, n.nesting === 1 && t + 1 < e.length)) {
|
873
876
|
const o = e[t + 1];
|
874
|
-
(o.type === "inline" || o.hidden || o.nesting === -1 && o.tag ===
|
877
|
+
(o.type === "inline" || o.hidden || o.nesting === -1 && o.tag === n.tag) && (i = !1);
|
875
878
|
}
|
876
879
|
return c += i ? `>
|
877
880
|
` : ">", c;
|
878
881
|
};
|
879
882
|
W.prototype.renderInline = function(u, e, t) {
|
880
|
-
let
|
881
|
-
const
|
883
|
+
let r = "";
|
884
|
+
const n = this.rules;
|
882
885
|
for (let c = 0, i = u.length; c < i; c++) {
|
883
886
|
const o = u[c].type;
|
884
|
-
typeof
|
887
|
+
typeof n[o] < "u" ? r += n[o](u, c, e, t, this) : r += this.renderToken(u, c, e);
|
885
888
|
}
|
886
|
-
return
|
889
|
+
return r;
|
887
890
|
};
|
888
891
|
W.prototype.renderInlineAsText = function(u, e, t) {
|
889
|
-
let
|
890
|
-
for (let
|
891
|
-
switch (u[
|
892
|
+
let r = "";
|
893
|
+
for (let n = 0, c = u.length; n < c; n++)
|
894
|
+
switch (u[n].type) {
|
892
895
|
case "text":
|
893
|
-
|
896
|
+
r += u[n].content;
|
894
897
|
break;
|
895
898
|
case "image":
|
896
|
-
|
899
|
+
r += this.renderInlineAsText(u[n].children, e, t);
|
897
900
|
break;
|
898
901
|
case "html_inline":
|
899
902
|
case "html_block":
|
900
|
-
|
903
|
+
r += u[n].content;
|
901
904
|
break;
|
902
905
|
case "softbreak":
|
903
906
|
case "hardbreak":
|
904
|
-
|
907
|
+
r += `
|
905
908
|
`;
|
906
909
|
break;
|
907
910
|
}
|
908
|
-
return
|
911
|
+
return r;
|
909
912
|
};
|
910
913
|
W.prototype.render = function(u, e, t) {
|
911
|
-
let
|
912
|
-
const
|
914
|
+
let r = "";
|
915
|
+
const n = this.rules;
|
913
916
|
for (let c = 0, i = u.length; c < i; c++) {
|
914
917
|
const o = u[c].type;
|
915
|
-
o === "inline" ?
|
918
|
+
o === "inline" ? r += this.renderInline(u[c].children, e, t) : typeof n[o] < "u" ? r += n[o](u, c, e, t, this) : r += this.renderToken(u, c, e, t);
|
916
919
|
}
|
917
|
-
return
|
920
|
+
return r;
|
918
921
|
};
|
919
|
-
function
|
922
|
+
function w() {
|
920
923
|
this.__rules__ = [], this.__cache__ = null;
|
921
924
|
}
|
922
|
-
|
925
|
+
w.prototype.__find__ = function(u) {
|
923
926
|
for (let e = 0; e < this.__rules__.length; e++)
|
924
927
|
if (this.__rules__[e].name === u)
|
925
928
|
return e;
|
926
929
|
return -1;
|
927
930
|
};
|
928
|
-
|
931
|
+
w.prototype.__compile__ = function() {
|
929
932
|
const u = this, e = [""];
|
930
933
|
u.__rules__.forEach(function(t) {
|
931
|
-
t.enabled && t.alt.forEach(function(
|
932
|
-
e.indexOf(
|
934
|
+
t.enabled && t.alt.forEach(function(r) {
|
935
|
+
e.indexOf(r) < 0 && e.push(r);
|
933
936
|
});
|
934
937
|
}), u.__cache__ = {}, e.forEach(function(t) {
|
935
|
-
u.__cache__[t] = [], u.__rules__.forEach(function(
|
936
|
-
|
938
|
+
u.__cache__[t] = [], u.__rules__.forEach(function(r) {
|
939
|
+
r.enabled && (t && r.alt.indexOf(t) < 0 || u.__cache__[t].push(r.fn));
|
937
940
|
});
|
938
941
|
});
|
939
942
|
};
|
940
|
-
|
941
|
-
const
|
942
|
-
if (
|
943
|
+
w.prototype.at = function(u, e, t) {
|
944
|
+
const r = this.__find__(u), n = t || {};
|
945
|
+
if (r === -1)
|
943
946
|
throw new Error("Parser rule not found: " + u);
|
944
|
-
this.__rules__[
|
947
|
+
this.__rules__[r].fn = e, this.__rules__[r].alt = n.alt || [], this.__cache__ = null;
|
945
948
|
};
|
946
|
-
|
947
|
-
const
|
948
|
-
if (
|
949
|
+
w.prototype.before = function(u, e, t, r) {
|
950
|
+
const n = this.__find__(u), c = r || {};
|
951
|
+
if (n === -1)
|
949
952
|
throw new Error("Parser rule not found: " + u);
|
950
|
-
this.__rules__.splice(
|
953
|
+
this.__rules__.splice(n, 0, {
|
951
954
|
name: e,
|
952
955
|
enabled: !0,
|
953
956
|
fn: t,
|
954
957
|
alt: c.alt || []
|
955
958
|
}), this.__cache__ = null;
|
956
959
|
};
|
957
|
-
|
958
|
-
const
|
959
|
-
if (
|
960
|
+
w.prototype.after = function(u, e, t, r) {
|
961
|
+
const n = this.__find__(u), c = r || {};
|
962
|
+
if (n === -1)
|
960
963
|
throw new Error("Parser rule not found: " + u);
|
961
|
-
this.__rules__.splice(
|
964
|
+
this.__rules__.splice(n + 1, 0, {
|
962
965
|
name: e,
|
963
966
|
enabled: !0,
|
964
967
|
fn: t,
|
965
968
|
alt: c.alt || []
|
966
969
|
}), this.__cache__ = null;
|
967
970
|
};
|
968
|
-
|
969
|
-
const
|
971
|
+
w.prototype.push = function(u, e, t) {
|
972
|
+
const r = t || {};
|
970
973
|
this.__rules__.push({
|
971
974
|
name: u,
|
972
975
|
enabled: !0,
|
973
976
|
fn: e,
|
974
|
-
alt:
|
977
|
+
alt: r.alt || []
|
975
978
|
}), this.__cache__ = null;
|
976
979
|
};
|
977
|
-
|
980
|
+
w.prototype.enable = function(u, e) {
|
978
981
|
Array.isArray(u) || (u = [u]);
|
979
982
|
const t = [];
|
980
|
-
return u.forEach(function(
|
981
|
-
const
|
982
|
-
if (
|
983
|
+
return u.forEach(function(r) {
|
984
|
+
const n = this.__find__(r);
|
985
|
+
if (n < 0) {
|
983
986
|
if (e)
|
984
987
|
return;
|
985
|
-
throw new Error("Rules manager: invalid rule name " +
|
988
|
+
throw new Error("Rules manager: invalid rule name " + r);
|
986
989
|
}
|
987
|
-
this.__rules__[
|
990
|
+
this.__rules__[n].enabled = !0, t.push(r);
|
988
991
|
}, this), this.__cache__ = null, t;
|
989
992
|
};
|
990
|
-
|
993
|
+
w.prototype.enableOnly = function(u, e) {
|
991
994
|
Array.isArray(u) || (u = [u]), this.__rules__.forEach(function(t) {
|
992
995
|
t.enabled = !1;
|
993
996
|
}), this.enable(u, e);
|
994
997
|
};
|
995
|
-
|
998
|
+
w.prototype.disable = function(u, e) {
|
996
999
|
Array.isArray(u) || (u = [u]);
|
997
1000
|
const t = [];
|
998
|
-
return u.forEach(function(
|
999
|
-
const
|
1000
|
-
if (
|
1001
|
+
return u.forEach(function(r) {
|
1002
|
+
const n = this.__find__(r);
|
1003
|
+
if (n < 0) {
|
1001
1004
|
if (e)
|
1002
1005
|
return;
|
1003
|
-
throw new Error("Rules manager: invalid rule name " +
|
1006
|
+
throw new Error("Rules manager: invalid rule name " + r);
|
1004
1007
|
}
|
1005
|
-
this.__rules__[
|
1008
|
+
this.__rules__[n].enabled = !1, t.push(r);
|
1006
1009
|
}, this), this.__cache__ = null, t;
|
1007
1010
|
};
|
1008
|
-
|
1011
|
+
w.prototype.getRules = function(u) {
|
1009
1012
|
return this.__cache__ === null && this.__compile__(), this.__cache__[u] || [];
|
1010
1013
|
};
|
1011
1014
|
function I(u, e, t) {
|
@@ -1015,74 +1018,74 @@ I.prototype.attrIndex = function(e) {
|
|
1015
1018
|
if (!this.attrs)
|
1016
1019
|
return -1;
|
1017
1020
|
const t = this.attrs;
|
1018
|
-
for (let
|
1019
|
-
if (t[
|
1020
|
-
return
|
1021
|
+
for (let r = 0, n = t.length; r < n; r++)
|
1022
|
+
if (t[r][0] === e)
|
1023
|
+
return r;
|
1021
1024
|
return -1;
|
1022
1025
|
};
|
1023
1026
|
I.prototype.attrPush = function(e) {
|
1024
1027
|
this.attrs ? this.attrs.push(e) : this.attrs = [e];
|
1025
1028
|
};
|
1026
1029
|
I.prototype.attrSet = function(e, t) {
|
1027
|
-
const
|
1028
|
-
|
1030
|
+
const r = this.attrIndex(e), n = [e, t];
|
1031
|
+
r < 0 ? this.attrPush(n) : this.attrs[r] = n;
|
1029
1032
|
};
|
1030
1033
|
I.prototype.attrGet = function(e) {
|
1031
1034
|
const t = this.attrIndex(e);
|
1032
|
-
let
|
1033
|
-
return t >= 0 && (
|
1035
|
+
let r = null;
|
1036
|
+
return t >= 0 && (r = this.attrs[t][1]), r;
|
1034
1037
|
};
|
1035
1038
|
I.prototype.attrJoin = function(e, t) {
|
1036
|
-
const
|
1037
|
-
|
1039
|
+
const r = this.attrIndex(e);
|
1040
|
+
r < 0 ? this.attrPush([e, t]) : this.attrs[r][1] = this.attrs[r][1] + " " + t;
|
1038
1041
|
};
|
1039
1042
|
function i0(u, e, t) {
|
1040
1043
|
this.src = u, this.env = t, this.tokens = [], this.inlineMode = !1, this.md = e;
|
1041
1044
|
}
|
1042
1045
|
i0.prototype.Token = I;
|
1043
|
-
const
|
1044
|
-
function
|
1046
|
+
const De = /\r\n?|\n/g, Ee = /\0/g;
|
1047
|
+
function ye(u) {
|
1045
1048
|
let e;
|
1046
|
-
e = u.src.replace(
|
1047
|
-
`), e = e.replace(
|
1049
|
+
e = u.src.replace(De, `
|
1050
|
+
`), e = e.replace(Ee, "�"), u.src = e;
|
1048
1051
|
}
|
1049
1052
|
function Ae(u) {
|
1050
1053
|
let e;
|
1051
1054
|
u.inlineMode ? (e = new u.Token("inline", "", 0), e.content = u.src, e.map = [0, 1], e.children = [], u.tokens.push(e)) : u.md.block.parse(u.src, u.md, u.env, u.tokens);
|
1052
1055
|
}
|
1053
|
-
function
|
1056
|
+
function Fe(u) {
|
1054
1057
|
const e = u.tokens;
|
1055
|
-
for (let t = 0,
|
1056
|
-
const
|
1057
|
-
|
1058
|
+
for (let t = 0, r = e.length; t < r; t++) {
|
1059
|
+
const n = e[t];
|
1060
|
+
n.type === "inline" && u.md.inline.parse(n.content, u.md, u.env, n.children);
|
1058
1061
|
}
|
1059
1062
|
}
|
1060
|
-
function
|
1063
|
+
function we(u) {
|
1061
1064
|
return /^<a[>\s]/i.test(u);
|
1062
1065
|
}
|
1063
1066
|
function ve(u) {
|
1064
1067
|
return /^<\/a\s*>/i.test(u);
|
1065
1068
|
}
|
1066
|
-
function
|
1069
|
+
function Se(u) {
|
1067
1070
|
const e = u.tokens;
|
1068
1071
|
if (u.md.options.linkify)
|
1069
|
-
for (let t = 0,
|
1072
|
+
for (let t = 0, r = e.length; t < r; t++) {
|
1070
1073
|
if (e[t].type !== "inline" || !u.md.linkify.pretest(e[t].content))
|
1071
1074
|
continue;
|
1072
|
-
let
|
1073
|
-
for (let i =
|
1074
|
-
const o =
|
1075
|
+
let n = e[t].children, c = 0;
|
1076
|
+
for (let i = n.length - 1; i >= 0; i--) {
|
1077
|
+
const o = n[i];
|
1075
1078
|
if (o.type === "link_close") {
|
1076
|
-
for (i--;
|
1079
|
+
for (i--; n[i].level !== o.level && n[i].type !== "link_open"; )
|
1077
1080
|
i--;
|
1078
1081
|
continue;
|
1079
1082
|
}
|
1080
|
-
if (o.type === "html_inline" && (
|
1083
|
+
if (o.type === "html_inline" && (we(o.content) && c > 0 && c--, ve(o.content) && c++), !(c > 0) && o.type === "text" && u.md.linkify.test(o.content)) {
|
1081
1084
|
const a = o.content;
|
1082
1085
|
let s = u.md.linkify.match(a);
|
1083
1086
|
const l = [];
|
1084
1087
|
let d = o.level, b = 0;
|
1085
|
-
s.length > 0 && s[0].index === 0 && i > 0 &&
|
1088
|
+
s.length > 0 && s[0].index === 0 && i > 0 && n[i - 1].type === "text_special" && (s = s.slice(1));
|
1086
1089
|
for (let h = 0; h < s.length; h++) {
|
1087
1090
|
const f = s[h].url, g = u.md.normalizeLink(f);
|
1088
1091
|
if (!u.md.validateLink(g))
|
@@ -1105,51 +1108,51 @@ function we(u) {
|
|
1105
1108
|
const h = new u.Token("text", "", 0);
|
1106
1109
|
h.content = a.slice(b), h.level = d, l.push(h);
|
1107
1110
|
}
|
1108
|
-
e[t].children =
|
1111
|
+
e[t].children = n = r0(n, i, l);
|
1109
1112
|
}
|
1110
1113
|
}
|
1111
1114
|
}
|
1112
1115
|
}
|
1113
|
-
const o0 = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/,
|
1116
|
+
const o0 = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, Te = /\((c|tm|r)\)/i, Ie = /\((c|tm|r)\)/ig, Be = {
|
1114
1117
|
c: "©",
|
1115
1118
|
r: "®",
|
1116
1119
|
tm: "™"
|
1117
1120
|
};
|
1118
|
-
function
|
1119
|
-
return
|
1121
|
+
function ze(u, e) {
|
1122
|
+
return Be[e.toLowerCase()];
|
1120
1123
|
}
|
1121
|
-
function
|
1124
|
+
function Me(u) {
|
1122
1125
|
let e = 0;
|
1123
1126
|
for (let t = u.length - 1; t >= 0; t--) {
|
1124
|
-
const
|
1125
|
-
|
1127
|
+
const r = u[t];
|
1128
|
+
r.type === "text" && !e && (r.content = r.content.replace(Ie, ze)), r.type === "link_open" && r.info === "auto" && e--, r.type === "link_close" && r.info === "auto" && e++;
|
1126
1129
|
}
|
1127
1130
|
}
|
1128
|
-
function
|
1131
|
+
function Re(u) {
|
1129
1132
|
let e = 0;
|
1130
1133
|
for (let t = u.length - 1; t >= 0; t--) {
|
1131
|
-
const
|
1132
|
-
|
1134
|
+
const r = u[t];
|
1135
|
+
r.type === "text" && !e && o0.test(r.content) && (r.content = r.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1—").replace(/(^|\s)--(?=\s|$)/mg, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1–")), r.type === "link_open" && r.info === "auto" && e--, r.type === "link_close" && r.info === "auto" && e++;
|
1133
1136
|
}
|
1134
1137
|
}
|
1135
|
-
function
|
1138
|
+
function qe(u) {
|
1136
1139
|
let e;
|
1137
1140
|
if (u.md.options.typographer)
|
1138
1141
|
for (e = u.tokens.length - 1; e >= 0; e--)
|
1139
|
-
u.tokens[e].type === "inline" && (
|
1142
|
+
u.tokens[e].type === "inline" && (Te.test(u.tokens[e].content) && Me(u.tokens[e].children), o0.test(u.tokens[e].content) && Re(u.tokens[e].children));
|
1140
1143
|
}
|
1141
|
-
const
|
1142
|
-
function
|
1144
|
+
const Le = /['"]/, Nu = /['"]/g, ju = "’";
|
1145
|
+
function ru(u, e, t) {
|
1143
1146
|
return u.slice(0, e) + t + u.slice(e + 1);
|
1144
1147
|
}
|
1145
|
-
function
|
1148
|
+
function Pe(u, e) {
|
1146
1149
|
let t;
|
1147
|
-
const
|
1148
|
-
for (let
|
1149
|
-
const c = u[
|
1150
|
-
for (t =
|
1150
|
+
const r = [];
|
1151
|
+
for (let n = 0; n < u.length; n++) {
|
1152
|
+
const c = u[n], i = u[n].level;
|
1153
|
+
for (t = r.length - 1; t >= 0 && !(r[t].level <= i); t--)
|
1151
1154
|
;
|
1152
|
-
if (
|
1155
|
+
if (r.length = t + 1, c.type !== "text")
|
1153
1156
|
continue;
|
1154
1157
|
let o = c.content, a = 0, s = o.length;
|
1155
1158
|
u:
|
@@ -1165,7 +1168,7 @@ function Le(u, e) {
|
|
1165
1168
|
if (l.index - 1 >= 0)
|
1166
1169
|
f = o.charCodeAt(l.index - 1);
|
1167
1170
|
else
|
1168
|
-
for (t =
|
1171
|
+
for (t = n - 1; t >= 0 && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t--)
|
1169
1172
|
if (u[t].content) {
|
1170
1173
|
f = u[t].content.charCodeAt(u[t].content.length - 1);
|
1171
1174
|
break;
|
@@ -1174,53 +1177,53 @@ function Le(u, e) {
|
|
1174
1177
|
if (a < s)
|
1175
1178
|
g = o.charCodeAt(a);
|
1176
1179
|
else
|
1177
|
-
for (t =
|
1180
|
+
for (t = n + 1; t < u.length && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t++)
|
1178
1181
|
if (u[t].content) {
|
1179
1182
|
g = u[t].content.charCodeAt(0);
|
1180
1183
|
break;
|
1181
1184
|
}
|
1182
|
-
const k =
|
1185
|
+
const k = X(f) || K(String.fromCharCode(f)), D = X(g) || K(String.fromCharCode(g)), p = Q(f), _ = Q(g);
|
1183
1186
|
if (_ ? d = !1 : D && (p || k || (d = !1)), p ? b = !1 : k && (_ || D || (b = !1)), g === 34 && l[0] === '"' && f >= 48 && f <= 57 && (b = d = !1), d && b && (d = k, b = D), !d && !b) {
|
1184
|
-
h && (c.content =
|
1187
|
+
h && (c.content = ru(c.content, l.index, ju));
|
1185
1188
|
continue;
|
1186
1189
|
}
|
1187
1190
|
if (b)
|
1188
|
-
for (t =
|
1189
|
-
let x =
|
1190
|
-
if (
|
1191
|
+
for (t = r.length - 1; t >= 0; t--) {
|
1192
|
+
let x = r[t];
|
1193
|
+
if (r[t].level < i)
|
1191
1194
|
break;
|
1192
|
-
if (x.single === h &&
|
1193
|
-
x =
|
1195
|
+
if (x.single === h && r[t].level === i) {
|
1196
|
+
x = r[t];
|
1194
1197
|
let m, C;
|
1195
|
-
h ? (m = e.md.options.quotes[2], C = e.md.options.quotes[3]) : (m = e.md.options.quotes[0], C = e.md.options.quotes[1]), c.content =
|
1198
|
+
h ? (m = e.md.options.quotes[2], C = e.md.options.quotes[3]) : (m = e.md.options.quotes[0], C = e.md.options.quotes[1]), c.content = ru(c.content, l.index, C), u[x.token].content = ru(
|
1196
1199
|
u[x.token].content,
|
1197
1200
|
x.pos,
|
1198
1201
|
m
|
1199
|
-
), a += C.length - 1, x.token ===
|
1202
|
+
), a += C.length - 1, x.token === n && (a += m.length - 1), o = c.content, s = o.length, r.length = t;
|
1200
1203
|
continue u;
|
1201
1204
|
}
|
1202
1205
|
}
|
1203
|
-
d ?
|
1204
|
-
token:
|
1206
|
+
d ? r.push({
|
1207
|
+
token: n,
|
1205
1208
|
pos: l.index,
|
1206
1209
|
single: h,
|
1207
1210
|
level: i
|
1208
|
-
}) : b && h && (c.content =
|
1211
|
+
}) : b && h && (c.content = ru(c.content, l.index, ju));
|
1209
1212
|
}
|
1210
1213
|
}
|
1211
1214
|
}
|
1212
|
-
function
|
1215
|
+
function Oe(u) {
|
1213
1216
|
if (u.md.options.typographer)
|
1214
1217
|
for (let e = u.tokens.length - 1; e >= 0; e--)
|
1215
|
-
u.tokens[e].type !== "inline" || !
|
1218
|
+
u.tokens[e].type !== "inline" || !Le.test(u.tokens[e].content) || Pe(u.tokens[e].children, u);
|
1216
1219
|
}
|
1217
|
-
function
|
1220
|
+
function $e(u) {
|
1218
1221
|
let e, t;
|
1219
|
-
const
|
1220
|
-
for (let c = 0; c <
|
1221
|
-
if (
|
1222
|
+
const r = u.tokens, n = r.length;
|
1223
|
+
for (let c = 0; c < n; c++) {
|
1224
|
+
if (r[c].type !== "inline")
|
1222
1225
|
continue;
|
1223
|
-
const i =
|
1226
|
+
const i = r[c].children, o = i.length;
|
1224
1227
|
for (e = 0; e < o; e++)
|
1225
1228
|
i[e].type === "text_special" && (i[e].type = "text");
|
1226
1229
|
for (e = t = 0; e < o; e++)
|
@@ -1229,32 +1232,32 @@ function Oe(u) {
|
|
1229
1232
|
}
|
1230
1233
|
}
|
1231
1234
|
const xu = [
|
1232
|
-
["normalize",
|
1235
|
+
["normalize", ye],
|
1233
1236
|
["block", Ae],
|
1234
|
-
["inline",
|
1235
|
-
["linkify",
|
1236
|
-
["replacements",
|
1237
|
-
["smartquotes",
|
1237
|
+
["inline", Fe],
|
1238
|
+
["linkify", Se],
|
1239
|
+
["replacements", qe],
|
1240
|
+
["smartquotes", Oe],
|
1238
1241
|
// `text_join` finds `text_special` tokens (for escape sequences)
|
1239
1242
|
// and joins them with the rest of the text
|
1240
|
-
["text_join",
|
1243
|
+
["text_join", $e]
|
1241
1244
|
];
|
1242
1245
|
function Tu() {
|
1243
|
-
this.ruler = new
|
1246
|
+
this.ruler = new w();
|
1244
1247
|
for (let u = 0; u < xu.length; u++)
|
1245
1248
|
this.ruler.push(xu[u][0], xu[u][1]);
|
1246
1249
|
}
|
1247
1250
|
Tu.prototype.process = function(u) {
|
1248
1251
|
const e = this.ruler.getRules("");
|
1249
|
-
for (let t = 0,
|
1252
|
+
for (let t = 0, r = e.length; t < r; t++)
|
1250
1253
|
e[t](u);
|
1251
1254
|
};
|
1252
1255
|
Tu.prototype.State = i0;
|
1253
|
-
function
|
1254
|
-
this.src = u, this.md = e, this.env = t, this.tokens =
|
1255
|
-
const
|
1256
|
-
for (let c = 0, i = 0, o = 0, a = 0, s =
|
1257
|
-
const d =
|
1256
|
+
function q(u, e, t, r) {
|
1257
|
+
this.src = u, this.md = e, this.env = t, this.tokens = r, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0;
|
1258
|
+
const n = this.src;
|
1259
|
+
for (let c = 0, i = 0, o = 0, a = 0, s = n.length, l = !1; i < s; i++) {
|
1260
|
+
const d = n.charCodeAt(i);
|
1258
1261
|
if (!l)
|
1259
1262
|
if (E(d)) {
|
1260
1263
|
o++, d === 9 ? a += 4 - a % 4 : a++;
|
@@ -1263,29 +1266,29 @@ function M(u, e, t, n) {
|
|
1263
1266
|
l = !0;
|
1264
1267
|
(d === 10 || i === s - 1) && (d !== 10 && i++, this.bMarks.push(c), this.eMarks.push(i), this.tShift.push(o), this.sCount.push(a), this.bsCount.push(0), l = !1, o = 0, a = 0, c = i + 1);
|
1265
1268
|
}
|
1266
|
-
this.bMarks.push(
|
1269
|
+
this.bMarks.push(n.length), this.eMarks.push(n.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
|
1267
1270
|
}
|
1268
|
-
|
1269
|
-
const
|
1270
|
-
return
|
1271
|
+
q.prototype.push = function(u, e, t) {
|
1272
|
+
const r = new I(u, e, t);
|
1273
|
+
return r.block = !0, t < 0 && this.level--, r.level = this.level, t > 0 && this.level++, this.tokens.push(r), r;
|
1271
1274
|
};
|
1272
|
-
|
1275
|
+
q.prototype.isEmpty = function(e) {
|
1273
1276
|
return this.bMarks[e] + this.tShift[e] >= this.eMarks[e];
|
1274
1277
|
};
|
1275
|
-
|
1278
|
+
q.prototype.skipEmptyLines = function(e) {
|
1276
1279
|
for (let t = this.lineMax; e < t && !(this.bMarks[e] + this.tShift[e] < this.eMarks[e]); e++)
|
1277
1280
|
;
|
1278
1281
|
return e;
|
1279
1282
|
};
|
1280
|
-
|
1283
|
+
q.prototype.skipSpaces = function(e) {
|
1281
1284
|
for (let t = this.src.length; e < t; e++) {
|
1282
|
-
const
|
1283
|
-
if (!E(
|
1285
|
+
const r = this.src.charCodeAt(e);
|
1286
|
+
if (!E(r))
|
1284
1287
|
break;
|
1285
1288
|
}
|
1286
1289
|
return e;
|
1287
1290
|
};
|
1288
|
-
|
1291
|
+
q.prototype.skipSpacesBack = function(e, t) {
|
1289
1292
|
if (e <= t)
|
1290
1293
|
return e;
|
1291
1294
|
for (; e > t; )
|
@@ -1293,20 +1296,20 @@ M.prototype.skipSpacesBack = function(e, t) {
|
|
1293
1296
|
return e + 1;
|
1294
1297
|
return e;
|
1295
1298
|
};
|
1296
|
-
|
1297
|
-
for (let
|
1299
|
+
q.prototype.skipChars = function(e, t) {
|
1300
|
+
for (let r = this.src.length; e < r && this.src.charCodeAt(e) === t; e++)
|
1298
1301
|
;
|
1299
1302
|
return e;
|
1300
1303
|
};
|
1301
|
-
|
1302
|
-
if (e <=
|
1304
|
+
q.prototype.skipCharsBack = function(e, t, r) {
|
1305
|
+
if (e <= r)
|
1303
1306
|
return e;
|
1304
|
-
for (; e >
|
1307
|
+
for (; e > r; )
|
1305
1308
|
if (t !== this.src.charCodeAt(--e))
|
1306
1309
|
return e + 1;
|
1307
1310
|
return e;
|
1308
1311
|
};
|
1309
|
-
|
1312
|
+
q.prototype.getLines = function(e, t, r, n) {
|
1310
1313
|
if (e >= t)
|
1311
1314
|
return "";
|
1312
1315
|
const c = new Array(t - e);
|
@@ -1314,7 +1317,7 @@ M.prototype.getLines = function(e, t, n, r) {
|
|
1314
1317
|
let a = 0;
|
1315
1318
|
const s = this.bMarks[o];
|
1316
1319
|
let l = s, d;
|
1317
|
-
for (o + 1 < t ||
|
1320
|
+
for (o + 1 < t || n ? d = this.eMarks[o] + 1 : d = this.eMarks[o]; l < d && a < r; ) {
|
1318
1321
|
const b = this.src.charCodeAt(l);
|
1319
1322
|
if (E(b))
|
1320
1323
|
b === 9 ? a += 4 - (a + this.bsCount[o]) % 4 : a++;
|
@@ -1324,39 +1327,39 @@ M.prototype.getLines = function(e, t, n, r) {
|
|
1324
1327
|
break;
|
1325
1328
|
l++;
|
1326
1329
|
}
|
1327
|
-
a >
|
1330
|
+
a > r ? c[i] = new Array(a - r + 1).join(" ") + this.src.slice(l, d) : c[i] = this.src.slice(l, d);
|
1328
1331
|
}
|
1329
1332
|
return c.join("");
|
1330
1333
|
};
|
1331
|
-
|
1332
|
-
const
|
1334
|
+
q.prototype.Token = I;
|
1335
|
+
const Ne = 65536;
|
1333
1336
|
function _u(u, e) {
|
1334
|
-
const t = u.bMarks[e] + u.tShift[e],
|
1335
|
-
return u.src.slice(t,
|
1337
|
+
const t = u.bMarks[e] + u.tShift[e], r = u.eMarks[e];
|
1338
|
+
return u.src.slice(t, r);
|
1336
1339
|
}
|
1337
1340
|
function Uu(u) {
|
1338
1341
|
const e = [], t = u.length;
|
1339
|
-
let
|
1340
|
-
for (;
|
1341
|
-
|
1342
|
+
let r = 0, n = u.charCodeAt(r), c = !1, i = 0, o = "";
|
1343
|
+
for (; r < t; )
|
1344
|
+
n === 124 && (c ? (o += u.substring(i, r - 1), i = r) : (e.push(o + u.substring(i, r)), o = "", i = r + 1)), c = n === 92, r++, n = u.charCodeAt(r);
|
1342
1345
|
return e.push(o + u.substring(i)), e;
|
1343
1346
|
}
|
1344
|
-
function
|
1347
|
+
function je(u, e, t, r) {
|
1345
1348
|
if (e + 2 > t)
|
1346
1349
|
return !1;
|
1347
|
-
let
|
1348
|
-
if (u.sCount[
|
1350
|
+
let n = e + 1;
|
1351
|
+
if (u.sCount[n] < u.blkIndent || u.sCount[n] - u.blkIndent >= 4)
|
1349
1352
|
return !1;
|
1350
|
-
let c = u.bMarks[
|
1351
|
-
if (c >= u.eMarks[
|
1353
|
+
let c = u.bMarks[n] + u.tShift[n];
|
1354
|
+
if (c >= u.eMarks[n])
|
1352
1355
|
return !1;
|
1353
1356
|
const i = u.src.charCodeAt(c++);
|
1354
|
-
if (i !== 124 && i !== 45 && i !== 58 || c >= u.eMarks[
|
1357
|
+
if (i !== 124 && i !== 45 && i !== 58 || c >= u.eMarks[n])
|
1355
1358
|
return !1;
|
1356
1359
|
const o = u.src.charCodeAt(c++);
|
1357
1360
|
if (o !== 124 && o !== 45 && o !== 58 && !E(o) || i === 45 && E(o))
|
1358
1361
|
return !1;
|
1359
|
-
for (; c < u.eMarks[
|
1362
|
+
for (; c < u.eMarks[n]; ) {
|
1360
1363
|
const x = u.src.charCodeAt(c);
|
1361
1364
|
if (x !== 124 && x !== 45 && x !== 58 && !E(x))
|
1362
1365
|
return !1;
|
@@ -1381,7 +1384,7 @@ function Ne(u, e, t, n) {
|
|
1381
1384
|
const d = s.length;
|
1382
1385
|
if (d === 0 || d !== l.length)
|
1383
1386
|
return !1;
|
1384
|
-
if (
|
1387
|
+
if (r)
|
1385
1388
|
return !0;
|
1386
1389
|
const b = u.parentType;
|
1387
1390
|
u.parentType = "table";
|
@@ -1399,21 +1402,21 @@ function Ne(u, e, t, n) {
|
|
1399
1402
|
}
|
1400
1403
|
u.push("tr_close", "tr", -1), u.push("thead_close", "thead", -1);
|
1401
1404
|
let p, _ = 0;
|
1402
|
-
for (
|
1405
|
+
for (n = e + 2; n < t && !(u.sCount[n] < u.blkIndent); n++) {
|
1403
1406
|
let x = !1;
|
1404
1407
|
for (let C = 0, F = h.length; C < F; C++)
|
1405
|
-
if (h[C](u,
|
1408
|
+
if (h[C](u, n, t, !0)) {
|
1406
1409
|
x = !0;
|
1407
1410
|
break;
|
1408
1411
|
}
|
1409
|
-
if (x || (a = _u(u,
|
1412
|
+
if (x || (a = _u(u, n).trim(), !a) || u.sCount[n] - u.blkIndent >= 4 || (s = Uu(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), _ += d - s.length, _ > Ne))
|
1410
1413
|
break;
|
1411
|
-
if (
|
1414
|
+
if (n === e + 2) {
|
1412
1415
|
const C = u.push("tbody_open", "tbody", 1);
|
1413
1416
|
C.map = p = [e + 2, 0];
|
1414
1417
|
}
|
1415
1418
|
const m = u.push("tr_open", "tr", 1);
|
1416
|
-
m.map = [
|
1419
|
+
m.map = [n, n + 1];
|
1417
1420
|
for (let C = 0; C < d; C++) {
|
1418
1421
|
const F = u.push("td_open", "td", 1);
|
1419
1422
|
l[C] && (F.attrs = [["style", "text-align:" + l[C]]]);
|
@@ -1422,48 +1425,48 @@ function Ne(u, e, t, n) {
|
|
1422
1425
|
}
|
1423
1426
|
u.push("tr_close", "tr", -1);
|
1424
1427
|
}
|
1425
|
-
return p && (u.push("tbody_close", "tbody", -1), p[1] =
|
1428
|
+
return p && (u.push("tbody_close", "tbody", -1), p[1] = n), u.push("table_close", "table", -1), g[1] = n, u.parentType = b, u.line = n, !0;
|
1426
1429
|
}
|
1427
|
-
function
|
1430
|
+
function Ue(u, e, t) {
|
1428
1431
|
if (u.sCount[e] - u.blkIndent < 4)
|
1429
1432
|
return !1;
|
1430
|
-
let
|
1431
|
-
for (;
|
1432
|
-
if (u.isEmpty(
|
1433
|
-
|
1433
|
+
let r = e + 1, n = r;
|
1434
|
+
for (; r < t; ) {
|
1435
|
+
if (u.isEmpty(r)) {
|
1436
|
+
r++;
|
1434
1437
|
continue;
|
1435
1438
|
}
|
1436
|
-
if (u.sCount[
|
1437
|
-
|
1439
|
+
if (u.sCount[r] - u.blkIndent >= 4) {
|
1440
|
+
r++, n = r;
|
1438
1441
|
continue;
|
1439
1442
|
}
|
1440
1443
|
break;
|
1441
1444
|
}
|
1442
|
-
u.line =
|
1445
|
+
u.line = n;
|
1443
1446
|
const c = u.push("code_block", "code", 0);
|
1444
|
-
return c.content = u.getLines(e,
|
1447
|
+
return c.content = u.getLines(e, n, 4 + u.blkIndent, !1) + `
|
1445
1448
|
`, c.map = [e, u.line], !0;
|
1446
1449
|
}
|
1447
|
-
function
|
1448
|
-
let
|
1449
|
-
if (u.sCount[e] - u.blkIndent >= 4 ||
|
1450
|
+
function He(u, e, t, r) {
|
1451
|
+
let n = u.bMarks[e] + u.tShift[e], c = u.eMarks[e];
|
1452
|
+
if (u.sCount[e] - u.blkIndent >= 4 || n + 3 > c)
|
1450
1453
|
return !1;
|
1451
|
-
const i = u.src.charCodeAt(
|
1454
|
+
const i = u.src.charCodeAt(n);
|
1452
1455
|
if (i !== 126 && i !== 96)
|
1453
1456
|
return !1;
|
1454
|
-
let o =
|
1455
|
-
|
1456
|
-
let a =
|
1457
|
+
let o = n;
|
1458
|
+
n = u.skipChars(n, i);
|
1459
|
+
let a = n - o;
|
1457
1460
|
if (a < 3)
|
1458
1461
|
return !1;
|
1459
|
-
const s = u.src.slice(o,
|
1462
|
+
const s = u.src.slice(o, n), l = u.src.slice(n, c);
|
1460
1463
|
if (i === 96 && l.indexOf(String.fromCharCode(i)) >= 0)
|
1461
1464
|
return !1;
|
1462
|
-
if (
|
1465
|
+
if (r)
|
1463
1466
|
return !0;
|
1464
1467
|
let d = e, b = !1;
|
1465
|
-
for (; d++, !(d >= t || (
|
1466
|
-
if (u.src.charCodeAt(
|
1468
|
+
for (; d++, !(d >= t || (n = o = u.bMarks[d] + u.tShift[d], c = u.eMarks[d], n < c && u.sCount[d] < u.blkIndent)); )
|
1469
|
+
if (u.src.charCodeAt(n) === i && !(u.sCount[d] - u.blkIndent >= 4) && (n = u.skipChars(n, i), !(n - o < a) && (n = u.skipSpaces(n), !(n < c)))) {
|
1467
1470
|
b = !0;
|
1468
1471
|
break;
|
1469
1472
|
}
|
@@ -1471,33 +1474,33 @@ function Ue(u, e, t, n) {
|
|
1471
1474
|
const h = u.push("fence", "code", 0);
|
1472
1475
|
return h.info = l, h.content = u.getLines(e + 1, d, a, !0), h.markup = s, h.map = [e, u.line], !0;
|
1473
1476
|
}
|
1474
|
-
function
|
1475
|
-
let
|
1477
|
+
function Ze(u, e, t, r) {
|
1478
|
+
let n = u.bMarks[e] + u.tShift[e], c = u.eMarks[e];
|
1476
1479
|
const i = u.lineMax;
|
1477
|
-
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(
|
1480
|
+
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(n) !== 62)
|
1478
1481
|
return !1;
|
1479
|
-
if (
|
1482
|
+
if (r)
|
1480
1483
|
return !0;
|
1481
1484
|
const o = [], a = [], s = [], l = [], d = u.md.block.ruler.getRules("blockquote"), b = u.parentType;
|
1482
1485
|
u.parentType = "blockquote";
|
1483
1486
|
let h = !1, f;
|
1484
1487
|
for (f = e; f < t; f++) {
|
1485
1488
|
const _ = u.sCount[f] < u.blkIndent;
|
1486
|
-
if (
|
1489
|
+
if (n = u.bMarks[f] + u.tShift[f], c = u.eMarks[f], n >= c)
|
1487
1490
|
break;
|
1488
|
-
if (u.src.charCodeAt(
|
1491
|
+
if (u.src.charCodeAt(n++) === 62 && !_) {
|
1489
1492
|
let m = u.sCount[f] + 1, C, F;
|
1490
|
-
u.src.charCodeAt(
|
1493
|
+
u.src.charCodeAt(n) === 32 ? (n++, m++, F = !1, C = !0) : u.src.charCodeAt(n) === 9 ? (C = !0, (u.bsCount[f] + m) % 4 === 3 ? (n++, m++, F = !1) : F = !0) : C = !1;
|
1491
1494
|
let T = m;
|
1492
|
-
for (o.push(u.bMarks[f]), u.bMarks[f] =
|
1493
|
-
const L = u.src.charCodeAt(
|
1495
|
+
for (o.push(u.bMarks[f]), u.bMarks[f] = n; n < c; ) {
|
1496
|
+
const L = u.src.charCodeAt(n);
|
1494
1497
|
if (E(L))
|
1495
1498
|
L === 9 ? T += 4 - (T + u.bsCount[f] + (F ? 1 : 0)) % 4 : T++;
|
1496
1499
|
else
|
1497
1500
|
break;
|
1498
|
-
|
1501
|
+
n++;
|
1499
1502
|
}
|
1500
|
-
h =
|
1503
|
+
h = n >= c, a.push(u.bsCount[f]), u.bsCount[f] = u.sCount[f] + 1 + (C ? 1 : 0), s.push(u.sCount[f]), u.sCount[f] = T - m, l.push(u.tShift[f]), u.tShift[f] = n - u.bMarks[f];
|
1501
1504
|
continue;
|
1502
1505
|
}
|
1503
1506
|
if (h)
|
@@ -1526,8 +1529,8 @@ function He(u, e, t, n) {
|
|
1526
1529
|
u.bMarks[_ + e] = o[_], u.tShift[_ + e] = l[_], u.sCount[_ + e] = s[_], u.bsCount[_ + e] = a[_];
|
1527
1530
|
return u.blkIndent = g, !0;
|
1528
1531
|
}
|
1529
|
-
function
|
1530
|
-
const
|
1532
|
+
function Ve(u, e, t, r) {
|
1533
|
+
const n = u.eMarks[e];
|
1531
1534
|
if (u.sCount[e] - u.blkIndent >= 4)
|
1532
1535
|
return !1;
|
1533
1536
|
let c = u.bMarks[e] + u.tShift[e];
|
@@ -1535,7 +1538,7 @@ function Ze(u, e, t, n) {
|
|
1535
1538
|
if (i !== 42 && i !== 45 && i !== 95)
|
1536
1539
|
return !1;
|
1537
1540
|
let o = 1;
|
1538
|
-
for (; c <
|
1541
|
+
for (; c < n; ) {
|
1539
1542
|
const s = u.src.charCodeAt(c++);
|
1540
1543
|
if (s !== i && !E(s))
|
1541
1544
|
return !1;
|
@@ -1543,7 +1546,7 @@ function Ze(u, e, t, n) {
|
|
1543
1546
|
}
|
1544
1547
|
if (o < 3)
|
1545
1548
|
return !1;
|
1546
|
-
if (
|
1549
|
+
if (r)
|
1547
1550
|
return !0;
|
1548
1551
|
u.line = e + 1;
|
1549
1552
|
const a = u.push("hr", "hr", 0);
|
@@ -1551,30 +1554,30 @@ function Ze(u, e, t, n) {
|
|
1551
1554
|
}
|
1552
1555
|
function Hu(u, e) {
|
1553
1556
|
const t = u.eMarks[e];
|
1554
|
-
let
|
1555
|
-
const
|
1556
|
-
if (
|
1557
|
+
let r = u.bMarks[e] + u.tShift[e];
|
1558
|
+
const n = u.src.charCodeAt(r++);
|
1559
|
+
if (n !== 42 && n !== 45 && n !== 43)
|
1557
1560
|
return -1;
|
1558
|
-
if (
|
1559
|
-
const c = u.src.charCodeAt(
|
1561
|
+
if (r < t) {
|
1562
|
+
const c = u.src.charCodeAt(r);
|
1560
1563
|
if (!E(c))
|
1561
1564
|
return -1;
|
1562
1565
|
}
|
1563
|
-
return
|
1566
|
+
return r;
|
1564
1567
|
}
|
1565
1568
|
function Zu(u, e) {
|
1566
|
-
const t = u.bMarks[e] + u.tShift[e],
|
1567
|
-
let
|
1568
|
-
if (
|
1569
|
+
const t = u.bMarks[e] + u.tShift[e], r = u.eMarks[e];
|
1570
|
+
let n = t;
|
1571
|
+
if (n + 1 >= r)
|
1569
1572
|
return -1;
|
1570
|
-
let c = u.src.charCodeAt(
|
1573
|
+
let c = u.src.charCodeAt(n++);
|
1571
1574
|
if (c < 48 || c > 57)
|
1572
1575
|
return -1;
|
1573
1576
|
for (; ; ) {
|
1574
|
-
if (
|
1577
|
+
if (n >= r)
|
1575
1578
|
return -1;
|
1576
|
-
if (c = u.src.charCodeAt(
|
1577
|
-
if (
|
1579
|
+
if (c = u.src.charCodeAt(n++), c >= 48 && c <= 57) {
|
1580
|
+
if (n - t >= 10)
|
1578
1581
|
return -1;
|
1579
1582
|
continue;
|
1580
1583
|
}
|
@@ -1582,19 +1585,19 @@ function Zu(u, e) {
|
|
1582
1585
|
break;
|
1583
1586
|
return -1;
|
1584
1587
|
}
|
1585
|
-
return
|
1588
|
+
return n < r && (c = u.src.charCodeAt(n), !E(c)) ? -1 : n;
|
1586
1589
|
}
|
1587
|
-
function
|
1590
|
+
function Ge(u, e) {
|
1588
1591
|
const t = u.level + 2;
|
1589
|
-
for (let
|
1590
|
-
u.tokens[
|
1592
|
+
for (let r = e + 2, n = u.tokens.length - 2; r < n; r++)
|
1593
|
+
u.tokens[r].level === t && u.tokens[r].type === "paragraph_open" && (u.tokens[r + 2].hidden = !0, u.tokens[r].hidden = !0, r += 2);
|
1591
1594
|
}
|
1592
|
-
function
|
1593
|
-
let
|
1595
|
+
function We(u, e, t, r) {
|
1596
|
+
let n, c, i, o, a = e, s = !0;
|
1594
1597
|
if (u.sCount[a] - u.blkIndent >= 4 || u.listIndent >= 0 && u.sCount[a] - u.listIndent >= 4 && u.sCount[a] < u.blkIndent)
|
1595
1598
|
return !1;
|
1596
1599
|
let l = !1;
|
1597
|
-
|
1600
|
+
r && u.parentType === "paragraph" && u.sCount[a] >= u.blkIndent && (l = !0);
|
1598
1601
|
let d, b, h;
|
1599
1602
|
if ((h = Zu(u, a)) >= 0) {
|
1600
1603
|
if (d = !0, i = u.bMarks[a] + u.tShift[a], b = Number(u.src.slice(i, h - 1)), l && b !== 1)
|
@@ -1605,7 +1608,7 @@ function Ge(u, e, t, n) {
|
|
1605
1608
|
return !1;
|
1606
1609
|
if (l && u.skipSpaces(h) >= u.eMarks[a])
|
1607
1610
|
return !1;
|
1608
|
-
if (
|
1611
|
+
if (r)
|
1609
1612
|
return !0;
|
1610
1613
|
const f = u.src.charCodeAt(h - 1), g = u.tokens.length;
|
1611
1614
|
d ? (o = u.push("ordered_list_open", "ol", 1), b !== 1 && (o.attrs = [["start", b]])) : o = u.push("bullet_list_open", "ul", 1);
|
@@ -1614,10 +1617,10 @@ function Ge(u, e, t, n) {
|
|
1614
1617
|
let D = !1;
|
1615
1618
|
const p = u.md.block.ruler.getRules("list"), _ = u.parentType;
|
1616
1619
|
for (u.parentType = "list"; a < t; ) {
|
1617
|
-
c = h,
|
1620
|
+
c = h, n = u.eMarks[a];
|
1618
1621
|
const x = u.sCount[a] + h - (u.bMarks[a] + u.tShift[a]);
|
1619
1622
|
let m = x;
|
1620
|
-
for (; c <
|
1623
|
+
for (; c < n; ) {
|
1621
1624
|
const U = u.src.charCodeAt(c);
|
1622
1625
|
if (U === 9)
|
1623
1626
|
m += 4 - (m + u.bsCount[a]) % 4;
|
@@ -1629,16 +1632,16 @@ function Ge(u, e, t, n) {
|
|
1629
1632
|
}
|
1630
1633
|
const C = c;
|
1631
1634
|
let F;
|
1632
|
-
C >=
|
1635
|
+
C >= n ? F = 1 : F = m - x, F > 4 && (F = 1);
|
1633
1636
|
const T = x + F;
|
1634
1637
|
o = u.push("list_item_open", "li", 1), o.markup = String.fromCharCode(f);
|
1635
1638
|
const L = [a, 0];
|
1636
1639
|
o.map = L, d && (o.info = u.src.slice(i, h - 1));
|
1637
|
-
const J = u.tight, bu = u.tShift[a], E0 = u.sCount[a],
|
1638
|
-
if (u.listIndent = u.blkIndent, u.blkIndent = T, u.tight = !0, u.tShift[a] = C - u.bMarks[a], u.sCount[a] = m, C >=
|
1640
|
+
const J = u.tight, bu = u.tShift[a], E0 = u.sCount[a], y0 = u.listIndent;
|
1641
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = T, u.tight = !0, u.tShift[a] = C - u.bMarks[a], u.sCount[a] = m, C >= n && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || D) && (s = !1), D = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = y0, u.tShift[a] = bu, u.sCount[a] = E0, u.tight = J, o = u.push("list_item_close", "li", -1), o.markup = String.fromCharCode(f), a = u.line, L[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
|
1639
1642
|
break;
|
1640
1643
|
let zu = !1;
|
1641
|
-
for (let U = 0,
|
1644
|
+
for (let U = 0, A0 = p.length; U < A0; U++)
|
1642
1645
|
if (p[U](u, a, t, !0)) {
|
1643
1646
|
zu = !0;
|
1644
1647
|
break;
|
@@ -1654,11 +1657,11 @@ function Ge(u, e, t, n) {
|
|
1654
1657
|
if (f !== u.src.charCodeAt(h - 1))
|
1655
1658
|
break;
|
1656
1659
|
}
|
1657
|
-
return d ? o = u.push("ordered_list_close", "ol", -1) : o = u.push("bullet_list_close", "ul", -1), o.markup = String.fromCharCode(f), k[1] = a, u.line = a, u.parentType = _, s &&
|
1660
|
+
return d ? o = u.push("ordered_list_close", "ol", -1) : o = u.push("bullet_list_close", "ul", -1), o.markup = String.fromCharCode(f), k[1] = a, u.line = a, u.parentType = _, s && Ge(u, g), !0;
|
1658
1661
|
}
|
1659
|
-
function
|
1660
|
-
let
|
1661
|
-
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(
|
1662
|
+
function Je(u, e, t, r) {
|
1663
|
+
let n = u.bMarks[e] + u.tShift[e], c = u.eMarks[e], i = e + 1;
|
1664
|
+
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(n) !== 91)
|
1662
1665
|
return !1;
|
1663
1666
|
function o(p) {
|
1664
1667
|
const _ = u.lineMax;
|
@@ -1680,77 +1683,77 @@ function We(u, e, t, n) {
|
|
1680
1683
|
const m = u.bMarks[p] + u.tShift[p], C = u.eMarks[p];
|
1681
1684
|
return u.src.slice(m, C + 1);
|
1682
1685
|
}
|
1683
|
-
let a = u.src.slice(
|
1686
|
+
let a = u.src.slice(n, c + 1);
|
1684
1687
|
c = a.length;
|
1685
1688
|
let s = -1;
|
1686
|
-
for (
|
1687
|
-
const p = a.charCodeAt(
|
1689
|
+
for (n = 1; n < c; n++) {
|
1690
|
+
const p = a.charCodeAt(n);
|
1688
1691
|
if (p === 91)
|
1689
1692
|
return !1;
|
1690
1693
|
if (p === 93) {
|
1691
|
-
s =
|
1694
|
+
s = n;
|
1692
1695
|
break;
|
1693
1696
|
} else if (p === 10) {
|
1694
1697
|
const _ = o(i);
|
1695
1698
|
_ !== null && (a += _, c = a.length, i++);
|
1696
|
-
} else if (p === 92 && (
|
1699
|
+
} else if (p === 92 && (n++, n < c && a.charCodeAt(n) === 10)) {
|
1697
1700
|
const _ = o(i);
|
1698
1701
|
_ !== null && (a += _, c = a.length, i++);
|
1699
1702
|
}
|
1700
1703
|
}
|
1701
1704
|
if (s < 0 || a.charCodeAt(s + 1) !== 58)
|
1702
1705
|
return !1;
|
1703
|
-
for (
|
1704
|
-
const p = a.charCodeAt(
|
1706
|
+
for (n = s + 2; n < c; n++) {
|
1707
|
+
const p = a.charCodeAt(n);
|
1705
1708
|
if (p === 10) {
|
1706
1709
|
const _ = o(i);
|
1707
1710
|
_ !== null && (a += _, c = a.length, i++);
|
1708
1711
|
} else if (!E(p))
|
1709
1712
|
break;
|
1710
1713
|
}
|
1711
|
-
const l = u.md.helpers.parseLinkDestination(a,
|
1714
|
+
const l = u.md.helpers.parseLinkDestination(a, n, c);
|
1712
1715
|
if (!l.ok)
|
1713
1716
|
return !1;
|
1714
1717
|
const d = u.md.normalizeLink(l.str);
|
1715
1718
|
if (!u.md.validateLink(d))
|
1716
1719
|
return !1;
|
1717
|
-
|
1718
|
-
const b =
|
1719
|
-
for (;
|
1720
|
-
const p = a.charCodeAt(
|
1720
|
+
n = l.pos;
|
1721
|
+
const b = n, h = i, f = n;
|
1722
|
+
for (; n < c; n++) {
|
1723
|
+
const p = a.charCodeAt(n);
|
1721
1724
|
if (p === 10) {
|
1722
1725
|
const _ = o(i);
|
1723
1726
|
_ !== null && (a += _, c = a.length, i++);
|
1724
1727
|
} else if (!E(p))
|
1725
1728
|
break;
|
1726
1729
|
}
|
1727
|
-
let g = u.md.helpers.parseLinkTitle(a,
|
1730
|
+
let g = u.md.helpers.parseLinkTitle(a, n, c);
|
1728
1731
|
for (; g.can_continue; ) {
|
1729
1732
|
const p = o(i);
|
1730
1733
|
if (p === null)
|
1731
1734
|
break;
|
1732
|
-
a += p,
|
1735
|
+
a += p, n = c, c = a.length, i++, g = u.md.helpers.parseLinkTitle(a, n, c, g);
|
1733
1736
|
}
|
1734
1737
|
let k;
|
1735
|
-
for (
|
1736
|
-
const p = a.charCodeAt(
|
1738
|
+
for (n < c && f !== n && g.ok ? (k = g.str, n = g.pos) : (k = "", n = b, i = h); n < c; ) {
|
1739
|
+
const p = a.charCodeAt(n);
|
1737
1740
|
if (!E(p))
|
1738
1741
|
break;
|
1739
|
-
|
1742
|
+
n++;
|
1740
1743
|
}
|
1741
|
-
if (
|
1742
|
-
for (k = "",
|
1743
|
-
const p = a.charCodeAt(
|
1744
|
+
if (n < c && a.charCodeAt(n) !== 10 && k)
|
1745
|
+
for (k = "", n = b, i = h; n < c; ) {
|
1746
|
+
const p = a.charCodeAt(n);
|
1744
1747
|
if (!E(p))
|
1745
1748
|
break;
|
1746
|
-
|
1749
|
+
n++;
|
1747
1750
|
}
|
1748
|
-
if (
|
1751
|
+
if (n < c && a.charCodeAt(n) !== 10)
|
1749
1752
|
return !1;
|
1750
1753
|
const D = fu(a.slice(1, s));
|
1751
|
-
return D ? (
|
1754
|
+
return D ? (r || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[D] > "u" && (u.env.references[D] = { title: k, href: d }), u.line = i), !0) : !1;
|
1752
1755
|
}
|
1753
|
-
const
|
1756
|
+
const Qe = [
|
1754
1757
|
"address",
|
1755
1758
|
"article",
|
1756
1759
|
"aside",
|
@@ -1813,30 +1816,30 @@ const Je = [
|
|
1813
1816
|
"tr",
|
1814
1817
|
"track",
|
1815
1818
|
"ul"
|
1816
|
-
],
|
1819
|
+
], Ke = "[a-zA-Z_:][a-zA-Z0-9:._-]*", Xe = "[^\"'=<>`\\x00-\\x20]+", Ye = "'[^']*'", ut = '"[^"]*"', et = "(?:" + Xe + "|" + Ye + "|" + ut + ")", tt = "(?:\\s+" + Ke + "(?:\\s*=\\s*" + et + ")?)", a0 = "<[A-Za-z][A-Za-z0-9\\-]*" + tt + "*\\s*\\/?>", s0 = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", nt = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", rt = "<[?][\\s\\S]*?[?]>", ct = "<![A-Za-z][^>]*>", it = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", ot = new RegExp("^(?:" + a0 + "|" + s0 + "|" + nt + "|" + rt + "|" + ct + "|" + it + ")"), at = new RegExp("^(?:" + a0 + "|" + s0 + ")"), H = [
|
1817
1820
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
1818
1821
|
[/^<!--/, /-->/, !0],
|
1819
1822
|
[/^<\?/, /\?>/, !0],
|
1820
1823
|
[/^<![A-Z]/, />/, !0],
|
1821
1824
|
[/^<!\[CDATA\[/, /\]\]>/, !0],
|
1822
|
-
[new RegExp("^</?(" +
|
1823
|
-
[new RegExp(
|
1825
|
+
[new RegExp("^</?(" + Qe.join("|") + ")(?=(\\s|/?>|$))", "i"), /^$/, !0],
|
1826
|
+
[new RegExp(at.source + "\\s*$"), /^$/, !1]
|
1824
1827
|
];
|
1825
|
-
function
|
1826
|
-
let
|
1827
|
-
if (u.sCount[e] - u.blkIndent >= 4 || !u.md.options.html || u.src.charCodeAt(
|
1828
|
+
function st(u, e, t, r) {
|
1829
|
+
let n = u.bMarks[e] + u.tShift[e], c = u.eMarks[e];
|
1830
|
+
if (u.sCount[e] - u.blkIndent >= 4 || !u.md.options.html || u.src.charCodeAt(n) !== 60)
|
1828
1831
|
return !1;
|
1829
|
-
let i = u.src.slice(
|
1832
|
+
let i = u.src.slice(n, c), o = 0;
|
1830
1833
|
for (; o < H.length && !H[o][0].test(i); o++)
|
1831
1834
|
;
|
1832
1835
|
if (o === H.length)
|
1833
1836
|
return !1;
|
1834
|
-
if (
|
1837
|
+
if (r)
|
1835
1838
|
return H[o][2];
|
1836
1839
|
let a = e + 1;
|
1837
1840
|
if (!H[o][1].test(i)) {
|
1838
1841
|
for (; a < t && !(u.sCount[a] < u.blkIndent); a++)
|
1839
|
-
if (
|
1842
|
+
if (n = u.bMarks[a] + u.tShift[a], c = u.eMarks[a], i = u.src.slice(n, c), H[o][1].test(i)) {
|
1840
1843
|
i.length !== 0 && a++;
|
1841
1844
|
break;
|
1842
1845
|
}
|
@@ -1845,35 +1848,35 @@ function at(u, e, t, n) {
|
|
1845
1848
|
const s = u.push("html_block", "", 0);
|
1846
1849
|
return s.map = [e, a], s.content = u.getLines(e, a, u.blkIndent, !0), !0;
|
1847
1850
|
}
|
1848
|
-
function
|
1849
|
-
let
|
1851
|
+
function lt(u, e, t, r) {
|
1852
|
+
let n = u.bMarks[e] + u.tShift[e], c = u.eMarks[e];
|
1850
1853
|
if (u.sCount[e] - u.blkIndent >= 4)
|
1851
1854
|
return !1;
|
1852
|
-
let i = u.src.charCodeAt(
|
1853
|
-
if (i !== 35 ||
|
1855
|
+
let i = u.src.charCodeAt(n);
|
1856
|
+
if (i !== 35 || n >= c)
|
1854
1857
|
return !1;
|
1855
1858
|
let o = 1;
|
1856
|
-
for (i = u.src.charCodeAt(++
|
1857
|
-
o++, i = u.src.charCodeAt(++
|
1858
|
-
if (o > 6 ||
|
1859
|
+
for (i = u.src.charCodeAt(++n); i === 35 && n < c && o <= 6; )
|
1860
|
+
o++, i = u.src.charCodeAt(++n);
|
1861
|
+
if (o > 6 || n < c && !E(i))
|
1859
1862
|
return !1;
|
1860
|
-
if (
|
1863
|
+
if (r)
|
1861
1864
|
return !0;
|
1862
|
-
c = u.skipSpacesBack(c,
|
1863
|
-
const a = u.skipCharsBack(c, 35,
|
1864
|
-
a >
|
1865
|
+
c = u.skipSpacesBack(c, n);
|
1866
|
+
const a = u.skipCharsBack(c, 35, n);
|
1867
|
+
a > n && E(u.src.charCodeAt(a - 1)) && (c = a), u.line = e + 1;
|
1865
1868
|
const s = u.push("heading_open", "h" + String(o), 1);
|
1866
1869
|
s.markup = "########".slice(0, o), s.map = [e, u.line];
|
1867
1870
|
const l = u.push("inline", "", 0);
|
1868
|
-
l.content = u.src.slice(
|
1871
|
+
l.content = u.src.slice(n, c).trim(), l.map = [e, u.line], l.children = [];
|
1869
1872
|
const d = u.push("heading_close", "h" + String(o), -1);
|
1870
1873
|
return d.markup = "########".slice(0, o), !0;
|
1871
1874
|
}
|
1872
|
-
function
|
1873
|
-
const
|
1875
|
+
function ft(u, e, t) {
|
1876
|
+
const r = u.md.block.ruler.getRules("paragraph");
|
1874
1877
|
if (u.sCount[e] - u.blkIndent >= 4)
|
1875
1878
|
return !1;
|
1876
|
-
const
|
1879
|
+
const n = u.parentType;
|
1877
1880
|
u.parentType = "paragraph";
|
1878
1881
|
let c = 0, i, o = e + 1;
|
1879
1882
|
for (; o < t && !u.isEmpty(o); o++) {
|
@@ -1890,8 +1893,8 @@ function lt(u, e, t) {
|
|
1890
1893
|
if (u.sCount[o] < 0)
|
1891
1894
|
continue;
|
1892
1895
|
let b = !1;
|
1893
|
-
for (let h = 0, f =
|
1894
|
-
if (
|
1896
|
+
for (let h = 0, f = r.length; h < f; h++)
|
1897
|
+
if (r[h](u, o, t, !0)) {
|
1895
1898
|
b = !0;
|
1896
1899
|
break;
|
1897
1900
|
}
|
@@ -1907,17 +1910,17 @@ function lt(u, e, t) {
|
|
1907
1910
|
const l = u.push("inline", "", 0);
|
1908
1911
|
l.content = a, l.map = [e, u.line - 1], l.children = [];
|
1909
1912
|
const d = u.push("heading_close", "h" + String(c), -1);
|
1910
|
-
return d.markup = String.fromCharCode(i), u.parentType =
|
1913
|
+
return d.markup = String.fromCharCode(i), u.parentType = n, !0;
|
1911
1914
|
}
|
1912
|
-
function
|
1913
|
-
const
|
1915
|
+
function dt(u, e, t) {
|
1916
|
+
const r = u.md.block.ruler.getRules("paragraph"), n = u.parentType;
|
1914
1917
|
let c = e + 1;
|
1915
1918
|
for (u.parentType = "paragraph"; c < t && !u.isEmpty(c); c++) {
|
1916
1919
|
if (u.sCount[c] - u.blkIndent > 3 || u.sCount[c] < 0)
|
1917
1920
|
continue;
|
1918
1921
|
let s = !1;
|
1919
|
-
for (let l = 0, d =
|
1920
|
-
if (
|
1922
|
+
for (let l = 0, d = r.length; l < d; l++)
|
1923
|
+
if (r[l](u, c, t, !0)) {
|
1921
1924
|
s = !0;
|
1922
1925
|
break;
|
1923
1926
|
}
|
@@ -1929,30 +1932,30 @@ function ft(u, e, t) {
|
|
1929
1932
|
const o = u.push("paragraph_open", "p", 1);
|
1930
1933
|
o.map = [e, u.line];
|
1931
1934
|
const a = u.push("inline", "", 0);
|
1932
|
-
return a.content = i, a.map = [e, u.line], a.children = [], u.push("paragraph_close", "p", -1), u.parentType =
|
1935
|
+
return a.content = i, a.map = [e, u.line], a.children = [], u.push("paragraph_close", "p", -1), u.parentType = n, !0;
|
1933
1936
|
}
|
1934
1937
|
const cu = [
|
1935
1938
|
// First 2 params - rule name & source. Secondary array - list of rules,
|
1936
1939
|
// which can be terminated by this one.
|
1937
|
-
["table",
|
1938
|
-
["code",
|
1939
|
-
["fence",
|
1940
|
-
["blockquote",
|
1941
|
-
["hr",
|
1942
|
-
["list",
|
1943
|
-
["reference",
|
1944
|
-
["html_block",
|
1945
|
-
["heading",
|
1946
|
-
["lheading",
|
1947
|
-
["paragraph",
|
1940
|
+
["table", je, ["paragraph", "reference"]],
|
1941
|
+
["code", Ue],
|
1942
|
+
["fence", He, ["paragraph", "reference", "blockquote", "list"]],
|
1943
|
+
["blockquote", Ze, ["paragraph", "reference", "blockquote", "list"]],
|
1944
|
+
["hr", Ve, ["paragraph", "reference", "blockquote", "list"]],
|
1945
|
+
["list", We, ["paragraph", "reference", "blockquote"]],
|
1946
|
+
["reference", Je],
|
1947
|
+
["html_block", st, ["paragraph", "reference", "blockquote"]],
|
1948
|
+
["heading", lt, ["paragraph", "reference", "blockquote"]],
|
1949
|
+
["lheading", ft],
|
1950
|
+
["paragraph", dt]
|
1948
1951
|
];
|
1949
1952
|
function du() {
|
1950
|
-
this.ruler = new
|
1953
|
+
this.ruler = new w();
|
1951
1954
|
for (let u = 0; u < cu.length; u++)
|
1952
1955
|
this.ruler.push(cu[u][0], cu[u][1], { alt: (cu[u][2] || []).slice() });
|
1953
1956
|
}
|
1954
1957
|
du.prototype.tokenize = function(u, e, t) {
|
1955
|
-
const
|
1958
|
+
const r = this.ruler.getRules(""), n = r.length, c = u.md.options.maxNesting;
|
1956
1959
|
let i = e, o = !1;
|
1957
1960
|
for (; i < t && (u.line = i = u.skipEmptyLines(i), !(i >= t || u.sCount[i] < u.blkIndent)); ) {
|
1958
1961
|
if (u.level >= c) {
|
@@ -1961,8 +1964,8 @@ du.prototype.tokenize = function(u, e, t) {
|
|
1961
1964
|
}
|
1962
1965
|
const a = u.line;
|
1963
1966
|
let s = !1;
|
1964
|
-
for (let l = 0; l <
|
1965
|
-
if (s =
|
1967
|
+
for (let l = 0; l < n; l++)
|
1968
|
+
if (s = r[l](u, i, t, !1), s) {
|
1966
1969
|
if (a >= u.line)
|
1967
1970
|
throw new Error("block rule didn't increment state.line");
|
1968
1971
|
break;
|
@@ -1972,15 +1975,15 @@ du.prototype.tokenize = function(u, e, t) {
|
|
1972
1975
|
u.tight = !o, u.isEmpty(u.line - 1) && (o = !0), i = u.line, i < t && u.isEmpty(i) && (o = !0, i++, u.line = i);
|
1973
1976
|
}
|
1974
1977
|
};
|
1975
|
-
du.prototype.parse = function(u, e, t,
|
1978
|
+
du.prototype.parse = function(u, e, t, r) {
|
1976
1979
|
if (!u)
|
1977
1980
|
return;
|
1978
|
-
const
|
1979
|
-
this.tokenize(
|
1981
|
+
const n = new this.State(u, e, t, r);
|
1982
|
+
this.tokenize(n, n.line, n.lineMax);
|
1980
1983
|
};
|
1981
|
-
du.prototype.State =
|
1982
|
-
function eu(u, e, t,
|
1983
|
-
this.src = u, this.env = t, this.md = e, this.tokens =
|
1984
|
+
du.prototype.State = q;
|
1985
|
+
function eu(u, e, t, r) {
|
1986
|
+
this.src = u, this.env = t, this.md = e, this.tokens = r, this.tokens_meta = Array(r.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1, this.linkLevel = 0;
|
1984
1987
|
}
|
1985
1988
|
eu.prototype.pushPending = function() {
|
1986
1989
|
const u = new I("text", "", 0);
|
@@ -1988,20 +1991,20 @@ eu.prototype.pushPending = function() {
|
|
1988
1991
|
};
|
1989
1992
|
eu.prototype.push = function(u, e, t) {
|
1990
1993
|
this.pending && this.pushPending();
|
1991
|
-
const
|
1992
|
-
let
|
1993
|
-
return t < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()),
|
1994
|
+
const r = new I(u, e, t);
|
1995
|
+
let n = null;
|
1996
|
+
return t < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), r.level = this.level, t > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], n = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(r), this.tokens_meta.push(n), r;
|
1994
1997
|
};
|
1995
1998
|
eu.prototype.scanDelims = function(u, e) {
|
1996
|
-
const t = this.posMax,
|
1999
|
+
const t = this.posMax, r = this.src.charCodeAt(u), n = u > 0 ? this.src.charCodeAt(u - 1) : 32;
|
1997
2000
|
let c = u;
|
1998
|
-
for (; c < t && this.src.charCodeAt(c) ===
|
2001
|
+
for (; c < t && this.src.charCodeAt(c) === r; )
|
1999
2002
|
c++;
|
2000
|
-
const i = c - u, o = c < t ? this.src.charCodeAt(c) : 32, a =
|
2003
|
+
const i = c - u, o = c < t ? this.src.charCodeAt(c) : 32, a = X(n) || K(String.fromCharCode(n)), s = X(o) || K(String.fromCharCode(o)), l = Q(n), d = Q(o), b = !d && (!s || l || a), h = !l && (!a || d || s);
|
2001
2004
|
return { can_open: b && (e || !h || a), can_close: h && (e || !b || s), length: i };
|
2002
2005
|
};
|
2003
2006
|
eu.prototype.Token = I;
|
2004
|
-
function
|
2007
|
+
function ht(u) {
|
2005
2008
|
switch (u) {
|
2006
2009
|
case 10:
|
2007
2010
|
case 33:
|
@@ -2031,23 +2034,23 @@ function dt(u) {
|
|
2031
2034
|
return !1;
|
2032
2035
|
}
|
2033
2036
|
}
|
2034
|
-
function
|
2037
|
+
function bt(u, e) {
|
2035
2038
|
let t = u.pos;
|
2036
|
-
for (; t < u.posMax && !
|
2039
|
+
for (; t < u.posMax && !ht(u.src.charCodeAt(t)); )
|
2037
2040
|
t++;
|
2038
2041
|
return t === u.pos ? !1 : (e || (u.pending += u.src.slice(u.pos, t)), u.pos = t, !0);
|
2039
2042
|
}
|
2040
|
-
const
|
2041
|
-
function
|
2043
|
+
const pt = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;
|
2044
|
+
function xt(u, e) {
|
2042
2045
|
if (!u.md.options.linkify || u.linkLevel > 0)
|
2043
2046
|
return !1;
|
2044
|
-
const t = u.pos,
|
2045
|
-
if (t + 3 >
|
2047
|
+
const t = u.pos, r = u.posMax;
|
2048
|
+
if (t + 3 > r || u.src.charCodeAt(t) !== 58 || u.src.charCodeAt(t + 1) !== 47 || u.src.charCodeAt(t + 2) !== 47)
|
2046
2049
|
return !1;
|
2047
|
-
const
|
2048
|
-
if (!
|
2050
|
+
const n = u.pending.match(pt);
|
2051
|
+
if (!n)
|
2049
2052
|
return !1;
|
2050
|
-
const c =
|
2053
|
+
const c = n[1], i = u.md.linkify.matchAtStart(u.src.slice(t - c.length));
|
2051
2054
|
if (!i)
|
2052
2055
|
return !1;
|
2053
2056
|
let o = i.url;
|
@@ -2068,15 +2071,15 @@ function pt(u, e) {
|
|
2068
2071
|
}
|
2069
2072
|
return u.pos += o.length - c.length, !0;
|
2070
2073
|
}
|
2071
|
-
function
|
2074
|
+
function _t(u, e) {
|
2072
2075
|
let t = u.pos;
|
2073
2076
|
if (u.src.charCodeAt(t) !== 10)
|
2074
2077
|
return !1;
|
2075
|
-
const
|
2078
|
+
const r = u.pending.length - 1, n = u.posMax;
|
2076
2079
|
if (!e)
|
2077
|
-
if (
|
2078
|
-
if (
|
2079
|
-
let c =
|
2080
|
+
if (r >= 0 && u.pending.charCodeAt(r) === 32)
|
2081
|
+
if (r >= 1 && u.pending.charCodeAt(r - 1) === 32) {
|
2082
|
+
let c = r - 1;
|
2080
2083
|
for (; c >= 1 && u.pending.charCodeAt(c - 1) === 32; )
|
2081
2084
|
c--;
|
2082
2085
|
u.pending = u.pending.slice(0, c), u.push("hardbreak", "br", 0);
|
@@ -2084,7 +2087,7 @@ function xt(u, e) {
|
|
2084
2087
|
u.pending = u.pending.slice(0, -1), u.push("softbreak", "br", 0);
|
2085
2088
|
else
|
2086
2089
|
u.push("softbreak", "br", 0);
|
2087
|
-
for (t++; t <
|
2090
|
+
for (t++; t < n && E(u.src.charCodeAt(t)); )
|
2088
2091
|
t++;
|
2089
2092
|
return u.pos = t, !0;
|
2090
2093
|
}
|
@@ -2094,40 +2097,40 @@ for (let u = 0; u < 256; u++)
|
|
2094
2097
|
"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(u) {
|
2095
2098
|
Iu[u.charCodeAt(0)] = 1;
|
2096
2099
|
});
|
2097
|
-
function
|
2100
|
+
function mt(u, e) {
|
2098
2101
|
let t = u.pos;
|
2099
|
-
const
|
2100
|
-
if (u.src.charCodeAt(t) !== 92 || (t++, t >=
|
2102
|
+
const r = u.posMax;
|
2103
|
+
if (u.src.charCodeAt(t) !== 92 || (t++, t >= r))
|
2101
2104
|
return !1;
|
2102
|
-
let
|
2103
|
-
if (
|
2104
|
-
for (e || u.push("hardbreak", "br", 0), t++; t <
|
2105
|
+
let n = u.src.charCodeAt(t);
|
2106
|
+
if (n === 10) {
|
2107
|
+
for (e || u.push("hardbreak", "br", 0), t++; t < r && (n = u.src.charCodeAt(t), !!E(n)); )
|
2105
2108
|
t++;
|
2106
2109
|
return u.pos = t, !0;
|
2107
2110
|
}
|
2108
2111
|
let c = u.src[t];
|
2109
|
-
if (
|
2112
|
+
if (n >= 55296 && n <= 56319 && t + 1 < r) {
|
2110
2113
|
const o = u.src.charCodeAt(t + 1);
|
2111
2114
|
o >= 56320 && o <= 57343 && (c += u.src[t + 1], t++);
|
2112
2115
|
}
|
2113
2116
|
const i = "\\" + c;
|
2114
2117
|
if (!e) {
|
2115
2118
|
const o = u.push("text_special", "", 0);
|
2116
|
-
|
2119
|
+
n < 256 && Iu[n] !== 0 ? o.content = c : o.content = i, o.markup = i, o.info = "escape";
|
2117
2120
|
}
|
2118
2121
|
return u.pos = t + 1, !0;
|
2119
2122
|
}
|
2120
|
-
function
|
2123
|
+
function gt(u, e) {
|
2121
2124
|
let t = u.pos;
|
2122
2125
|
if (u.src.charCodeAt(t) !== 96)
|
2123
2126
|
return !1;
|
2124
|
-
const
|
2127
|
+
const n = t;
|
2125
2128
|
t++;
|
2126
2129
|
const c = u.posMax;
|
2127
2130
|
for (; t < c && u.src.charCodeAt(t) === 96; )
|
2128
2131
|
t++;
|
2129
|
-
const i = u.src.slice(
|
2130
|
-
if (u.backticksScanned && (u.backticks[o] || 0) <=
|
2132
|
+
const i = u.src.slice(n, t), o = i.length;
|
2133
|
+
if (u.backticksScanned && (u.backticks[o] || 0) <= n)
|
2131
2134
|
return e || (u.pending += i), u.pos += o, !0;
|
2132
2135
|
let a = t, s;
|
2133
2136
|
for (; (s = u.src.indexOf("`", a)) !== -1; ) {
|
@@ -2145,71 +2148,71 @@ function mt(u, e) {
|
|
2145
2148
|
}
|
2146
2149
|
return u.backticksScanned = !0, e || (u.pending += i), u.pos += o, !0;
|
2147
2150
|
}
|
2148
|
-
function
|
2149
|
-
const t = u.pos,
|
2150
|
-
if (e ||
|
2151
|
+
function kt(u, e) {
|
2152
|
+
const t = u.pos, r = u.src.charCodeAt(t);
|
2153
|
+
if (e || r !== 126)
|
2151
2154
|
return !1;
|
2152
|
-
const
|
2153
|
-
let c =
|
2154
|
-
const i = String.fromCharCode(
|
2155
|
+
const n = u.scanDelims(u.pos, !0);
|
2156
|
+
let c = n.length;
|
2157
|
+
const i = String.fromCharCode(r);
|
2155
2158
|
if (c < 2)
|
2156
2159
|
return !1;
|
2157
2160
|
let o;
|
2158
2161
|
c % 2 && (o = u.push("text", "", 0), o.content = i, c--);
|
2159
2162
|
for (let a = 0; a < c; a += 2)
|
2160
2163
|
o = u.push("text", "", 0), o.content = i + i, u.delimiters.push({
|
2161
|
-
marker:
|
2164
|
+
marker: r,
|
2162
2165
|
length: 0,
|
2163
2166
|
// disable "rule of 3" length checks meant for emphasis
|
2164
2167
|
token: u.tokens.length - 1,
|
2165
2168
|
end: -1,
|
2166
|
-
open:
|
2167
|
-
close:
|
2169
|
+
open: n.can_open,
|
2170
|
+
close: n.can_close
|
2168
2171
|
});
|
2169
|
-
return u.pos +=
|
2172
|
+
return u.pos += n.length, !0;
|
2170
2173
|
}
|
2171
2174
|
function Vu(u, e) {
|
2172
2175
|
let t;
|
2173
|
-
const
|
2174
|
-
for (let c = 0; c <
|
2176
|
+
const r = [], n = e.length;
|
2177
|
+
for (let c = 0; c < n; c++) {
|
2175
2178
|
const i = e[c];
|
2176
2179
|
if (i.marker !== 126 || i.end === -1)
|
2177
2180
|
continue;
|
2178
2181
|
const o = e[i.end];
|
2179
|
-
t = u.tokens[i.token], t.type = "s_open", t.tag = "s", t.nesting = 1, t.markup = "~~", t.content = "", t = u.tokens[o.token], t.type = "s_close", t.tag = "s", t.nesting = -1, t.markup = "~~", t.content = "", u.tokens[o.token - 1].type === "text" && u.tokens[o.token - 1].content === "~" &&
|
2182
|
+
t = u.tokens[i.token], t.type = "s_open", t.tag = "s", t.nesting = 1, t.markup = "~~", t.content = "", t = u.tokens[o.token], t.type = "s_close", t.tag = "s", t.nesting = -1, t.markup = "~~", t.content = "", u.tokens[o.token - 1].type === "text" && u.tokens[o.token - 1].content === "~" && r.push(o.token - 1);
|
2180
2183
|
}
|
2181
|
-
for (;
|
2182
|
-
const c =
|
2184
|
+
for (; r.length; ) {
|
2185
|
+
const c = r.pop();
|
2183
2186
|
let i = c + 1;
|
2184
2187
|
for (; i < u.tokens.length && u.tokens[i].type === "s_close"; )
|
2185
2188
|
i++;
|
2186
2189
|
i--, c !== i && (t = u.tokens[i], u.tokens[i] = u.tokens[c], u.tokens[c] = t);
|
2187
2190
|
}
|
2188
2191
|
}
|
2189
|
-
function
|
2192
|
+
function Ct(u) {
|
2190
2193
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
2191
2194
|
Vu(u, u.delimiters);
|
2192
|
-
for (let
|
2193
|
-
e[
|
2195
|
+
for (let r = 0; r < t; r++)
|
2196
|
+
e[r] && e[r].delimiters && Vu(u, e[r].delimiters);
|
2194
2197
|
}
|
2195
2198
|
const l0 = {
|
2196
|
-
tokenize:
|
2197
|
-
postProcess:
|
2199
|
+
tokenize: kt,
|
2200
|
+
postProcess: Ct
|
2198
2201
|
};
|
2199
|
-
function
|
2200
|
-
const t = u.pos,
|
2201
|
-
if (e ||
|
2202
|
+
function Dt(u, e) {
|
2203
|
+
const t = u.pos, r = u.src.charCodeAt(t);
|
2204
|
+
if (e || r !== 95 && r !== 42)
|
2202
2205
|
return !1;
|
2203
|
-
const
|
2204
|
-
for (let c = 0; c <
|
2206
|
+
const n = u.scanDelims(u.pos, r === 42);
|
2207
|
+
for (let c = 0; c < n.length; c++) {
|
2205
2208
|
const i = u.push("text", "", 0);
|
2206
|
-
i.content = String.fromCharCode(
|
2209
|
+
i.content = String.fromCharCode(r), u.delimiters.push({
|
2207
2210
|
// Char code of the starting marker (number).
|
2208
2211
|
//
|
2209
|
-
marker:
|
2212
|
+
marker: r,
|
2210
2213
|
// Total length of these series of delimiters.
|
2211
2214
|
//
|
2212
|
-
length:
|
2215
|
+
length: n.length,
|
2213
2216
|
// A position of the token this delimiter corresponds to.
|
2214
2217
|
//
|
2215
2218
|
token: u.tokens.length - 1,
|
@@ -2220,38 +2223,38 @@ function Ct(u, e) {
|
|
2220
2223
|
// Boolean flags that determine if this delimiter could open or close
|
2221
2224
|
// an emphasis.
|
2222
2225
|
//
|
2223
|
-
open:
|
2224
|
-
close:
|
2226
|
+
open: n.can_open,
|
2227
|
+
close: n.can_close
|
2225
2228
|
});
|
2226
2229
|
}
|
2227
|
-
return u.pos +=
|
2230
|
+
return u.pos += n.length, !0;
|
2228
2231
|
}
|
2229
2232
|
function Gu(u, e) {
|
2230
2233
|
const t = e.length;
|
2231
|
-
for (let
|
2232
|
-
const
|
2233
|
-
if (
|
2234
|
+
for (let r = t - 1; r >= 0; r--) {
|
2235
|
+
const n = e[r];
|
2236
|
+
if (n.marker !== 95 && n.marker !== 42 || n.end === -1)
|
2234
2237
|
continue;
|
2235
|
-
const c = e[
|
2236
|
-
e[
|
2237
|
-
e[
|
2238
|
+
const c = e[n.end], i = r > 0 && e[r - 1].end === n.end + 1 && // check that first two markers match and adjacent
|
2239
|
+
e[r - 1].marker === n.marker && e[r - 1].token === n.token - 1 && // check that last two markers are adjacent (we can safely assume they match)
|
2240
|
+
e[n.end + 1].token === c.token + 1, o = String.fromCharCode(n.marker), a = u.tokens[n.token];
|
2238
2241
|
a.type = i ? "strong_open" : "em_open", a.tag = i ? "strong" : "em", a.nesting = 1, a.markup = i ? o + o : o, a.content = "";
|
2239
2242
|
const s = u.tokens[c.token];
|
2240
|
-
s.type = i ? "strong_close" : "em_close", s.tag = i ? "strong" : "em", s.nesting = -1, s.markup = i ? o + o : o, s.content = "", i && (u.tokens[e[
|
2243
|
+
s.type = i ? "strong_close" : "em_close", s.tag = i ? "strong" : "em", s.nesting = -1, s.markup = i ? o + o : o, s.content = "", i && (u.tokens[e[r - 1].token].content = "", u.tokens[e[n.end + 1].token].content = "", r--);
|
2241
2244
|
}
|
2242
2245
|
}
|
2243
|
-
function
|
2246
|
+
function Et(u) {
|
2244
2247
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
2245
2248
|
Gu(u, u.delimiters);
|
2246
|
-
for (let
|
2247
|
-
e[
|
2249
|
+
for (let r = 0; r < t; r++)
|
2250
|
+
e[r] && e[r].delimiters && Gu(u, e[r].delimiters);
|
2248
2251
|
}
|
2249
2252
|
const f0 = {
|
2250
|
-
tokenize:
|
2251
|
-
postProcess:
|
2253
|
+
tokenize: Dt,
|
2254
|
+
postProcess: Et
|
2252
2255
|
};
|
2253
|
-
function
|
2254
|
-
let t,
|
2256
|
+
function yt(u, e) {
|
2257
|
+
let t, r, n, c, i = "", o = "", a = u.pos, s = !0;
|
2255
2258
|
if (u.src.charCodeAt(u.pos) !== 91)
|
2256
2259
|
return !1;
|
2257
2260
|
const l = u.pos, d = u.posMax, b = u.pos + 1, h = u.md.helpers.parseLinkLabel(u, u.pos, !0);
|
@@ -2263,11 +2266,11 @@ function Et(u, e) {
|
|
2263
2266
|
;
|
2264
2267
|
if (f >= d)
|
2265
2268
|
return !1;
|
2266
|
-
if (a = f,
|
2267
|
-
for (i = u.md.normalizeLink(
|
2269
|
+
if (a = f, n = u.md.helpers.parseLinkDestination(u.src, f, u.posMax), n.ok) {
|
2270
|
+
for (i = u.md.normalizeLink(n.str), u.md.validateLink(i) ? f = n.pos : i = "", a = f; f < d && (t = u.src.charCodeAt(f), !(!E(t) && t !== 10)); f++)
|
2268
2271
|
;
|
2269
|
-
if (
|
2270
|
-
for (o =
|
2272
|
+
if (n = u.md.helpers.parseLinkTitle(u.src, f, u.posMax), f < d && a !== f && n.ok)
|
2273
|
+
for (o = n.str, f = n.pos; f < d && (t = u.src.charCodeAt(f), !(!E(t) && t !== 10)); f++)
|
2271
2274
|
;
|
2272
2275
|
}
|
2273
2276
|
(f >= d || u.src.charCodeAt(f) !== 41) && (s = !0), f++;
|
@@ -2275,7 +2278,7 @@ function Et(u, e) {
|
|
2275
2278
|
if (s) {
|
2276
2279
|
if (typeof u.env.references > "u")
|
2277
2280
|
return !1;
|
2278
|
-
if (f < d && u.src.charCodeAt(f) === 91 ? (a = f + 1, f = u.md.helpers.parseLinkLabel(u, f), f >= 0 ?
|
2281
|
+
if (f < d && u.src.charCodeAt(f) === 91 ? (a = f + 1, f = u.md.helpers.parseLinkLabel(u, f), f >= 0 ? r = u.src.slice(a, f++) : f = h + 1) : f = h + 1, r || (r = u.src.slice(b, h)), c = u.env.references[fu(r)], !c)
|
2279
2282
|
return u.pos = l, !1;
|
2280
2283
|
i = c.href, o = c.title;
|
2281
2284
|
}
|
@@ -2287,7 +2290,7 @@ function Et(u, e) {
|
|
2287
2290
|
return u.pos = f, u.posMax = d, !0;
|
2288
2291
|
}
|
2289
2292
|
function At(u, e) {
|
2290
|
-
let t,
|
2293
|
+
let t, r, n, c, i, o, a, s, l = "";
|
2291
2294
|
const d = u.pos, b = u.posMax;
|
2292
2295
|
if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
|
2293
2296
|
return !1;
|
@@ -2312,32 +2315,32 @@ function At(u, e) {
|
|
2312
2315
|
} else {
|
2313
2316
|
if (typeof u.env.references > "u")
|
2314
2317
|
return !1;
|
2315
|
-
if (c < b && u.src.charCodeAt(c) === 91 ? (s = c + 1, c = u.md.helpers.parseLinkLabel(u, c), c >= 0 ?
|
2318
|
+
if (c < b && u.src.charCodeAt(c) === 91 ? (s = c + 1, c = u.md.helpers.parseLinkLabel(u, c), c >= 0 ? n = u.src.slice(s, c++) : c = f + 1) : c = f + 1, n || (n = u.src.slice(h, f)), i = u.env.references[fu(n)], !i)
|
2316
2319
|
return u.pos = d, !1;
|
2317
2320
|
l = i.href, a = i.title;
|
2318
2321
|
}
|
2319
2322
|
if (!e) {
|
2320
|
-
|
2323
|
+
r = u.src.slice(h, f);
|
2321
2324
|
const g = [];
|
2322
2325
|
u.md.inline.parse(
|
2323
|
-
|
2326
|
+
r,
|
2324
2327
|
u.md,
|
2325
2328
|
u.env,
|
2326
2329
|
g
|
2327
2330
|
);
|
2328
2331
|
const k = u.push("image", "img", 0), D = [["src", l], ["alt", ""]];
|
2329
|
-
k.attrs = D, k.children = g, k.content =
|
2332
|
+
k.attrs = D, k.children = g, k.content = r, a && D.push(["title", a]);
|
2330
2333
|
}
|
2331
2334
|
return u.pos = c, u.posMax = b, !0;
|
2332
2335
|
}
|
2333
|
-
const
|
2336
|
+
const Ft = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/, wt = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
2334
2337
|
function vt(u, e) {
|
2335
2338
|
let t = u.pos;
|
2336
2339
|
if (u.src.charCodeAt(t) !== 60)
|
2337
2340
|
return !1;
|
2338
|
-
const
|
2341
|
+
const r = u.pos, n = u.posMax;
|
2339
2342
|
for (; ; ) {
|
2340
|
-
if (++t >=
|
2343
|
+
if (++t >= n)
|
2341
2344
|
return !1;
|
2342
2345
|
const i = u.src.charCodeAt(t);
|
2343
2346
|
if (i === 60)
|
@@ -2345,8 +2348,8 @@ function vt(u, e) {
|
|
2345
2348
|
if (i === 62)
|
2346
2349
|
break;
|
2347
2350
|
}
|
2348
|
-
const c = u.src.slice(
|
2349
|
-
if (
|
2351
|
+
const c = u.src.slice(r + 1, t);
|
2352
|
+
if (wt.test(c)) {
|
2350
2353
|
const i = u.md.normalizeLink(c);
|
2351
2354
|
if (!u.md.validateLink(i))
|
2352
2355
|
return !1;
|
@@ -2360,7 +2363,7 @@ function vt(u, e) {
|
|
2360
2363
|
}
|
2361
2364
|
return u.pos += c.length + 2, !0;
|
2362
2365
|
}
|
2363
|
-
if (
|
2366
|
+
if (Ft.test(c)) {
|
2364
2367
|
const i = u.md.normalizeLink("mailto:" + c);
|
2365
2368
|
if (!u.md.validateLink(i))
|
2366
2369
|
return !1;
|
@@ -2376,41 +2379,41 @@ function vt(u, e) {
|
|
2376
2379
|
}
|
2377
2380
|
return !1;
|
2378
2381
|
}
|
2379
|
-
function
|
2382
|
+
function St(u) {
|
2380
2383
|
return /^<a[>\s]/i.test(u);
|
2381
2384
|
}
|
2382
|
-
function
|
2385
|
+
function Tt(u) {
|
2383
2386
|
return /^<\/a\s*>/i.test(u);
|
2384
2387
|
}
|
2385
|
-
function
|
2388
|
+
function It(u) {
|
2386
2389
|
const e = u | 32;
|
2387
2390
|
return e >= 97 && e <= 122;
|
2388
2391
|
}
|
2389
|
-
function
|
2392
|
+
function Bt(u, e) {
|
2390
2393
|
if (!u.md.options.html)
|
2391
2394
|
return !1;
|
2392
|
-
const t = u.posMax,
|
2393
|
-
if (u.src.charCodeAt(
|
2395
|
+
const t = u.posMax, r = u.pos;
|
2396
|
+
if (u.src.charCodeAt(r) !== 60 || r + 2 >= t)
|
2394
2397
|
return !1;
|
2395
|
-
const
|
2396
|
-
if (
|
2398
|
+
const n = u.src.charCodeAt(r + 1);
|
2399
|
+
if (n !== 33 && n !== 63 && n !== 47 && !It(n))
|
2397
2400
|
return !1;
|
2398
|
-
const c = u.src.slice(
|
2401
|
+
const c = u.src.slice(r).match(ot);
|
2399
2402
|
if (!c)
|
2400
2403
|
return !1;
|
2401
2404
|
if (!e) {
|
2402
2405
|
const i = u.push("html_inline", "", 0);
|
2403
|
-
i.content = c[0],
|
2406
|
+
i.content = c[0], St(i.content) && u.linkLevel++, Tt(i.content) && u.linkLevel--;
|
2404
2407
|
}
|
2405
2408
|
return u.pos += c[0].length, !0;
|
2406
2409
|
}
|
2407
|
-
const
|
2408
|
-
function
|
2409
|
-
const t = u.pos,
|
2410
|
-
if (u.src.charCodeAt(t) !== 38 || t + 1 >=
|
2410
|
+
const zt = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, Mt = /^&([a-z][a-z0-9]{1,31});/i;
|
2411
|
+
function Rt(u, e) {
|
2412
|
+
const t = u.pos, r = u.posMax;
|
2413
|
+
if (u.src.charCodeAt(t) !== 38 || t + 1 >= r)
|
2411
2414
|
return !1;
|
2412
2415
|
if (u.src.charCodeAt(t + 1) === 35) {
|
2413
|
-
const c = u.src.slice(t).match(
|
2416
|
+
const c = u.src.slice(t).match(zt);
|
2414
2417
|
if (c) {
|
2415
2418
|
if (!e) {
|
2416
2419
|
const i = c[1][0].toLowerCase() === "x" ? parseInt(c[1].slice(1), 16) : parseInt(c[1], 10), o = u.push("text_special", "", 0);
|
@@ -2419,9 +2422,9 @@ function qt(u, e) {
|
|
2419
2422
|
return u.pos += c[0].length, !0;
|
2420
2423
|
}
|
2421
2424
|
} else {
|
2422
|
-
const c = u.src.slice(t).match(
|
2425
|
+
const c = u.src.slice(t).match(Mt);
|
2423
2426
|
if (c) {
|
2424
|
-
const i =
|
2427
|
+
const i = n0(c[0]);
|
2425
2428
|
if (i !== c[0]) {
|
2426
2429
|
if (!e) {
|
2427
2430
|
const o = u.push("text_special", "", 0);
|
@@ -2437,22 +2440,22 @@ function Wu(u) {
|
|
2437
2440
|
const e = {}, t = u.length;
|
2438
2441
|
if (!t)
|
2439
2442
|
return;
|
2440
|
-
let
|
2443
|
+
let r = 0, n = -2;
|
2441
2444
|
const c = [];
|
2442
2445
|
for (let i = 0; i < t; i++) {
|
2443
2446
|
const o = u[i];
|
2444
|
-
if (c.push(0), (u[
|
2447
|
+
if (c.push(0), (u[r].marker !== o.marker || n !== o.token - 1) && (r = i), n = o.token, o.length = o.length || 0, !o.close)
|
2445
2448
|
continue;
|
2446
2449
|
e.hasOwnProperty(o.marker) || (e[o.marker] = [-1, -1, -1, -1, -1, -1]);
|
2447
2450
|
const a = e[o.marker][(o.open ? 3 : 0) + o.length % 3];
|
2448
|
-
let s =
|
2451
|
+
let s = r - c[r] - 1, l = s;
|
2449
2452
|
for (; s > a; s -= c[s] + 1) {
|
2450
2453
|
const d = u[s];
|
2451
2454
|
if (d.marker === o.marker && d.open && d.end < 0) {
|
2452
2455
|
let b = !1;
|
2453
2456
|
if ((d.close || o.open) && (d.length + o.length) % 3 === 0 && (d.length % 3 !== 0 || o.length % 3 !== 0) && (b = !0), !b) {
|
2454
2457
|
const h = s > 0 && !u[s - 1].open ? c[s - 1] + 1 : 0;
|
2455
|
-
c[i] = i - s + h, c[s] = h, o.open = !1, d.end = i, d.close = !1, l = -1,
|
2458
|
+
c[i] = i - s + h, c[s] = h, o.open = !1, d.end = i, d.close = !1, l = -1, n = -2;
|
2456
2459
|
break;
|
2457
2460
|
}
|
2458
2461
|
}
|
@@ -2460,57 +2463,57 @@ function Wu(u) {
|
|
2460
2463
|
l !== -1 && (e[o.marker][(o.open ? 3 : 0) + (o.length || 0) % 3] = l);
|
2461
2464
|
}
|
2462
2465
|
}
|
2463
|
-
function
|
2466
|
+
function qt(u) {
|
2464
2467
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
2465
2468
|
Wu(u.delimiters);
|
2466
|
-
for (let
|
2467
|
-
e[
|
2469
|
+
for (let r = 0; r < t; r++)
|
2470
|
+
e[r] && e[r].delimiters && Wu(e[r].delimiters);
|
2468
2471
|
}
|
2469
|
-
function
|
2470
|
-
let e, t,
|
2471
|
-
const
|
2472
|
+
function Lt(u) {
|
2473
|
+
let e, t, r = 0;
|
2474
|
+
const n = u.tokens, c = u.tokens.length;
|
2472
2475
|
for (e = t = 0; e < c; e++)
|
2473
|
-
|
2474
|
-
e !== t && (
|
2476
|
+
n[e].nesting < 0 && r--, n[e].level = r, n[e].nesting > 0 && r++, n[e].type === "text" && e + 1 < c && n[e + 1].type === "text" ? n[e + 1].content = n[e].content + n[e + 1].content : (e !== t && (n[t] = n[e]), t++);
|
2477
|
+
e !== t && (n.length = t);
|
2475
2478
|
}
|
2476
2479
|
const mu = [
|
2477
|
-
["text",
|
2478
|
-
["linkify",
|
2479
|
-
["newline",
|
2480
|
-
["escape",
|
2481
|
-
["backticks",
|
2480
|
+
["text", bt],
|
2481
|
+
["linkify", xt],
|
2482
|
+
["newline", _t],
|
2483
|
+
["escape", mt],
|
2484
|
+
["backticks", gt],
|
2482
2485
|
["strikethrough", l0.tokenize],
|
2483
2486
|
["emphasis", f0.tokenize],
|
2484
|
-
["link",
|
2487
|
+
["link", yt],
|
2485
2488
|
["image", At],
|
2486
2489
|
["autolink", vt],
|
2487
|
-
["html_inline",
|
2488
|
-
["entity",
|
2490
|
+
["html_inline", Bt],
|
2491
|
+
["entity", Rt]
|
2489
2492
|
], gu = [
|
2490
|
-
["balance_pairs",
|
2493
|
+
["balance_pairs", qt],
|
2491
2494
|
["strikethrough", l0.postProcess],
|
2492
2495
|
["emphasis", f0.postProcess],
|
2493
2496
|
// rules for pairs separate '**' into its own text tokens, which may be left unused,
|
2494
2497
|
// rule below merges unused segments back with the rest of the text
|
2495
|
-
["fragments_join",
|
2498
|
+
["fragments_join", Lt]
|
2496
2499
|
];
|
2497
2500
|
function tu() {
|
2498
|
-
this.ruler = new
|
2501
|
+
this.ruler = new w();
|
2499
2502
|
for (let u = 0; u < mu.length; u++)
|
2500
2503
|
this.ruler.push(mu[u][0], mu[u][1]);
|
2501
|
-
this.ruler2 = new
|
2504
|
+
this.ruler2 = new w();
|
2502
2505
|
for (let u = 0; u < gu.length; u++)
|
2503
2506
|
this.ruler2.push(gu[u][0], gu[u][1]);
|
2504
2507
|
}
|
2505
2508
|
tu.prototype.skipToken = function(u) {
|
2506
|
-
const e = u.pos, t = this.ruler.getRules(""),
|
2509
|
+
const e = u.pos, t = this.ruler.getRules(""), r = t.length, n = u.md.options.maxNesting, c = u.cache;
|
2507
2510
|
if (typeof c[e] < "u") {
|
2508
2511
|
u.pos = c[e];
|
2509
2512
|
return;
|
2510
2513
|
}
|
2511
2514
|
let i = !1;
|
2512
|
-
if (u.level <
|
2513
|
-
for (let o = 0; o <
|
2515
|
+
if (u.level < n) {
|
2516
|
+
for (let o = 0; o < r; o++)
|
2514
2517
|
if (u.level++, i = t[o](u, !0), u.level--, i) {
|
2515
2518
|
if (e >= u.pos)
|
2516
2519
|
throw new Error("inline rule didn't increment state.pos");
|
@@ -2521,11 +2524,11 @@ tu.prototype.skipToken = function(u) {
|
|
2521
2524
|
i || u.pos++, c[e] = u.pos;
|
2522
2525
|
};
|
2523
2526
|
tu.prototype.tokenize = function(u) {
|
2524
|
-
const e = this.ruler.getRules(""), t = e.length,
|
2525
|
-
for (; u.pos <
|
2527
|
+
const e = this.ruler.getRules(""), t = e.length, r = u.posMax, n = u.md.options.maxNesting;
|
2528
|
+
for (; u.pos < r; ) {
|
2526
2529
|
const c = u.pos;
|
2527
2530
|
let i = !1;
|
2528
|
-
if (u.level <
|
2531
|
+
if (u.level < n) {
|
2529
2532
|
for (let o = 0; o < t; o++)
|
2530
2533
|
if (i = e[o](u, !1), i) {
|
2531
2534
|
if (c >= u.pos)
|
@@ -2534,7 +2537,7 @@ tu.prototype.tokenize = function(u) {
|
|
2534
2537
|
}
|
2535
2538
|
}
|
2536
2539
|
if (i) {
|
2537
|
-
if (u.pos >=
|
2540
|
+
if (u.pos >= r)
|
2538
2541
|
break;
|
2539
2542
|
continue;
|
2540
2543
|
}
|
@@ -2542,17 +2545,17 @@ tu.prototype.tokenize = function(u) {
|
|
2542
2545
|
}
|
2543
2546
|
u.pending && u.pushPending();
|
2544
2547
|
};
|
2545
|
-
tu.prototype.parse = function(u, e, t,
|
2546
|
-
const
|
2547
|
-
this.tokenize(
|
2548
|
+
tu.prototype.parse = function(u, e, t, r) {
|
2549
|
+
const n = new this.State(u, e, t, r);
|
2550
|
+
this.tokenize(n);
|
2548
2551
|
const c = this.ruler2.getRules(""), i = c.length;
|
2549
2552
|
for (let o = 0; o < i; o++)
|
2550
|
-
c[o](
|
2553
|
+
c[o](n);
|
2551
2554
|
};
|
2552
2555
|
tu.prototype.State = eu;
|
2553
|
-
function
|
2556
|
+
function Pt(u) {
|
2554
2557
|
const e = {};
|
2555
|
-
u = u || {}, e.src_Any =
|
2558
|
+
u = u || {}, e.src_Any = Xu.source, e.src_Cc = Yu.source, e.src_Z = e0.source, e.src_P = wu.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|");
|
2556
2559
|
const t = "[><|]";
|
2557
2560
|
return e.src_pseudo_letter = "(?:(?!" + t + "|" + e.src_ZPCc + ")" + e.src_Any + ")", e.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", e.src_auth = "(?:(?:(?!" + e.src_ZCc + "|[@/\\[\\]()]).)+@)?", e.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", e.src_host_terminator = "(?=$|" + t + "|" + e.src_ZPCc + ")(?!" + (u["---"] ? "-(?!--)|" : "-|") + "_|:\\d|\\.-|\\.(?!$|" + e.src_ZPCc + "))", e.src_path = "(?:[/?#](?:(?!" + e.src_ZCc + "|" + t + `|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!` + e.src_ZCc + "|\\]).)*\\]|\\((?:(?!" + e.src_ZCc + "|[)]).)*\\)|\\{(?:(?!" + e.src_ZCc + '|[}]).)*\\}|\\"(?:(?!' + e.src_ZCc + `|["]).)+\\"|\\'(?:(?!` + e.src_ZCc + "|[']).)+\\'|\\'(?=" + e.src_pseudo_letter + "|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!" + e.src_ZCc + "|[.]|$)|" + (u["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + // allow `,,,` in paths
|
2558
2561
|
",(?!" + e.src_ZCc + "|$)|;(?!" + e.src_ZCc + "|$)|\\!+(?!" + e.src_ZCc + "|[!]|$)|\\?(?!" + e.src_ZCc + "|[?]|$))+|\\/)?", e.src_email_name = '[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*', e.src_xn = "xn--[a-z0-9\\-]{1,59}", e.src_domain_root = // Allow letters & digits (http://test1)
|
@@ -2564,27 +2567,27 @@ function Lt(u) {
|
|
2564
2567
|
}
|
2565
2568
|
function Eu(u) {
|
2566
2569
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
2567
|
-
t && Object.keys(t).forEach(function(
|
2568
|
-
u[
|
2570
|
+
t && Object.keys(t).forEach(function(r) {
|
2571
|
+
u[r] = t[r];
|
2569
2572
|
});
|
2570
2573
|
}), u;
|
2571
2574
|
}
|
2572
2575
|
function hu(u) {
|
2573
2576
|
return Object.prototype.toString.call(u);
|
2574
2577
|
}
|
2575
|
-
function
|
2578
|
+
function Ot(u) {
|
2576
2579
|
return hu(u) === "[object String]";
|
2577
2580
|
}
|
2578
|
-
function
|
2581
|
+
function $t(u) {
|
2579
2582
|
return hu(u) === "[object Object]";
|
2580
2583
|
}
|
2581
|
-
function
|
2584
|
+
function Nt(u) {
|
2582
2585
|
return hu(u) === "[object RegExp]";
|
2583
2586
|
}
|
2584
2587
|
function Ju(u) {
|
2585
2588
|
return hu(u) === "[object Function]";
|
2586
2589
|
}
|
2587
|
-
function
|
2590
|
+
function jt(u) {
|
2588
2591
|
return u.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
2589
2592
|
}
|
2590
2593
|
const d0 = {
|
@@ -2592,51 +2595,51 @@ const d0 = {
|
|
2592
2595
|
fuzzyEmail: !0,
|
2593
2596
|
fuzzyIP: !1
|
2594
2597
|
};
|
2595
|
-
function
|
2598
|
+
function Ut(u) {
|
2596
2599
|
return Object.keys(u || {}).reduce(function(e, t) {
|
2597
2600
|
return e || d0.hasOwnProperty(t);
|
2598
2601
|
}, !1);
|
2599
2602
|
}
|
2600
|
-
const
|
2603
|
+
const Ht = {
|
2601
2604
|
"http:": {
|
2602
2605
|
validate: function(u, e, t) {
|
2603
|
-
const
|
2606
|
+
const r = u.slice(e);
|
2604
2607
|
return t.re.http || (t.re.http = new RegExp(
|
2605
2608
|
"^\\/\\/" + t.re.src_auth + t.re.src_host_port_strict + t.re.src_path,
|
2606
2609
|
"i"
|
2607
|
-
)), t.re.http.test(
|
2610
|
+
)), t.re.http.test(r) ? r.match(t.re.http)[0].length : 0;
|
2608
2611
|
}
|
2609
2612
|
},
|
2610
2613
|
"https:": "http:",
|
2611
2614
|
"ftp:": "http:",
|
2612
2615
|
"//": {
|
2613
2616
|
validate: function(u, e, t) {
|
2614
|
-
const
|
2617
|
+
const r = u.slice(e);
|
2615
2618
|
return t.re.no_http || (t.re.no_http = new RegExp(
|
2616
2619
|
"^" + t.re.src_auth + // Don't allow single-level domains, because of false positives like '//test'
|
2617
2620
|
// with code comments
|
2618
2621
|
"(?:localhost|(?:(?:" + t.re.src_domain + ")\\.)+" + t.re.src_domain_root + ")" + t.re.src_port + t.re.src_host_terminator + t.re.src_path,
|
2619
2622
|
"i"
|
2620
|
-
)), t.re.no_http.test(
|
2623
|
+
)), t.re.no_http.test(r) ? e >= 3 && u[e - 3] === ":" || e >= 3 && u[e - 3] === "/" ? 0 : r.match(t.re.no_http)[0].length : 0;
|
2621
2624
|
}
|
2622
2625
|
},
|
2623
2626
|
"mailto:": {
|
2624
2627
|
validate: function(u, e, t) {
|
2625
|
-
const
|
2628
|
+
const r = u.slice(e);
|
2626
2629
|
return t.re.mailto || (t.re.mailto = new RegExp(
|
2627
2630
|
"^" + t.re.src_email_name + "@" + t.re.src_host_strict,
|
2628
2631
|
"i"
|
2629
|
-
)), t.re.mailto.test(
|
2632
|
+
)), t.re.mailto.test(r) ? r.match(t.re.mailto)[0].length : 0;
|
2630
2633
|
}
|
2631
2634
|
}
|
2632
|
-
},
|
2633
|
-
function
|
2635
|
+
}, Zt = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", Vt = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
|
2636
|
+
function Gt(u) {
|
2634
2637
|
u.__index__ = -1, u.__text_cache__ = "";
|
2635
2638
|
}
|
2636
|
-
function
|
2639
|
+
function Wt(u) {
|
2637
2640
|
return function(e, t) {
|
2638
|
-
const
|
2639
|
-
return u.test(
|
2641
|
+
const r = e.slice(t);
|
2642
|
+
return u.test(r) ? r.match(u)[0].length : 0;
|
2640
2643
|
};
|
2641
2644
|
}
|
2642
2645
|
function Qu() {
|
@@ -2645,13 +2648,13 @@ function Qu() {
|
|
2645
2648
|
};
|
2646
2649
|
}
|
2647
2650
|
function au(u) {
|
2648
|
-
const e = u.re =
|
2649
|
-
u.onCompile(), u.__tlds_replaced__ || t.push(
|
2650
|
-
function
|
2651
|
+
const e = u.re = Pt(u.__opts__), t = u.__tlds__.slice();
|
2652
|
+
u.onCompile(), u.__tlds_replaced__ || t.push(Zt), t.push(e.src_xn), e.src_tlds = t.join("|");
|
2653
|
+
function r(o) {
|
2651
2654
|
return o.replace("%TLDS%", e.src_tlds);
|
2652
2655
|
}
|
2653
|
-
e.email_fuzzy = RegExp(
|
2654
|
-
const
|
2656
|
+
e.email_fuzzy = RegExp(r(e.tpl_email_fuzzy), "i"), e.link_fuzzy = RegExp(r(e.tpl_link_fuzzy), "i"), e.link_no_ip_fuzzy = RegExp(r(e.tpl_link_no_ip_fuzzy), "i"), e.host_fuzzy_test = RegExp(r(e.tpl_host_fuzzy_test), "i");
|
2657
|
+
const n = [];
|
2655
2658
|
u.__compiled__ = {};
|
2656
2659
|
function c(o, a) {
|
2657
2660
|
throw new Error('(LinkifyIt) Invalid schema "' + o + '": ' + a);
|
@@ -2661,49 +2664,49 @@ function au(u) {
|
|
2661
2664
|
if (a === null)
|
2662
2665
|
return;
|
2663
2666
|
const s = { validate: null, link: null };
|
2664
|
-
if (u.__compiled__[o] = s,
|
2665
|
-
|
2667
|
+
if (u.__compiled__[o] = s, $t(a)) {
|
2668
|
+
Nt(a.validate) ? s.validate = Wt(a.validate) : Ju(a.validate) ? s.validate = a.validate : c(o, a), Ju(a.normalize) ? s.normalize = a.normalize : a.normalize ? c(o, a) : s.normalize = Qu();
|
2666
2669
|
return;
|
2667
2670
|
}
|
2668
|
-
if (
|
2669
|
-
|
2671
|
+
if (Ot(a)) {
|
2672
|
+
n.push(o);
|
2670
2673
|
return;
|
2671
2674
|
}
|
2672
2675
|
c(o, a);
|
2673
|
-
}),
|
2676
|
+
}), n.forEach(function(o) {
|
2674
2677
|
u.__compiled__[u.__schemas__[o]] && (u.__compiled__[o].validate = u.__compiled__[u.__schemas__[o]].validate, u.__compiled__[o].normalize = u.__compiled__[u.__schemas__[o]].normalize);
|
2675
2678
|
}), u.__compiled__[""] = { validate: null, normalize: Qu() };
|
2676
2679
|
const i = Object.keys(u.__compiled__).filter(function(o) {
|
2677
2680
|
return o.length > 0 && u.__compiled__[o];
|
2678
|
-
}).map(
|
2681
|
+
}).map(jt).join("|");
|
2679
2682
|
u.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + i + ")", "i"), u.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + i + ")", "ig"), u.re.schema_at_start = RegExp("^" + u.re.schema_search.source, "i"), u.re.pretest = RegExp(
|
2680
2683
|
"(" + u.re.schema_test.source + ")|(" + u.re.host_fuzzy_test.source + ")|@",
|
2681
2684
|
"i"
|
2682
|
-
),
|
2685
|
+
), Gt(u);
|
2683
2686
|
}
|
2684
|
-
function
|
2685
|
-
const t = u.__index__,
|
2686
|
-
this.schema = u.__schema__.toLowerCase(), this.index = t + e, this.lastIndex =
|
2687
|
+
function Jt(u, e) {
|
2688
|
+
const t = u.__index__, r = u.__last_index__, n = u.__text_cache__.slice(t, r);
|
2689
|
+
this.schema = u.__schema__.toLowerCase(), this.index = t + e, this.lastIndex = r + e, this.raw = n, this.text = n, this.url = n;
|
2687
2690
|
}
|
2688
|
-
function
|
2689
|
-
const t = new
|
2691
|
+
function yu(u, e) {
|
2692
|
+
const t = new Jt(u, e);
|
2690
2693
|
return u.__compiled__[t.schema].normalize(t, u), t;
|
2691
2694
|
}
|
2692
|
-
function
|
2693
|
-
if (!(this instanceof
|
2694
|
-
return new
|
2695
|
-
e ||
|
2695
|
+
function v(u, e) {
|
2696
|
+
if (!(this instanceof v))
|
2697
|
+
return new v(u, e);
|
2698
|
+
e || Ut(u) && (e = u, u = {}), this.__opts__ = Eu({}, d0, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = Eu({}, Ht, u), this.__compiled__ = {}, this.__tlds__ = Vt, this.__tlds_replaced__ = !1, this.re = {}, au(this);
|
2696
2699
|
}
|
2697
|
-
|
2700
|
+
v.prototype.add = function(e, t) {
|
2698
2701
|
return this.__schemas__[e] = t, au(this), this;
|
2699
2702
|
};
|
2700
|
-
|
2703
|
+
v.prototype.set = function(e) {
|
2701
2704
|
return this.__opts__ = Eu(this.__opts__, e), this;
|
2702
2705
|
};
|
2703
|
-
|
2706
|
+
v.prototype.test = function(e) {
|
2704
2707
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
|
2705
2708
|
return !1;
|
2706
|
-
let t,
|
2709
|
+
let t, r, n, c, i, o, a, s, l;
|
2707
2710
|
if (this.re.schema_test.test(e)) {
|
2708
2711
|
for (a = this.re.schema_search, a.lastIndex = 0; (t = a.exec(e)) !== null; )
|
2709
2712
|
if (c = this.testSchemaAt(e, t[2], a.lastIndex), c) {
|
@@ -2711,114 +2714,114 @@ w.prototype.test = function(e) {
|
|
2711
2714
|
break;
|
2712
2715
|
}
|
2713
2716
|
}
|
2714
|
-
return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (s = e.search(this.re.host_fuzzy_test), s >= 0 && (this.__index__ < 0 || s < this.__index__) && (
|
2717
|
+
return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (s = e.search(this.re.host_fuzzy_test), s >= 0 && (this.__index__ < 0 || s < this.__index__) && (r = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (i = r.index + r[1].length, (this.__index__ < 0 || i < this.__index__) && (this.__schema__ = "", this.__index__ = i, this.__last_index__ = r.index + r[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (l = e.indexOf("@"), l >= 0 && (n = e.match(this.re.email_fuzzy)) !== null && (i = n.index + n[1].length, o = n.index + n[0].length, (this.__index__ < 0 || i < this.__index__ || i === this.__index__ && o > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = i, this.__last_index__ = o))), this.__index__ >= 0;
|
2715
2718
|
};
|
2716
|
-
|
2719
|
+
v.prototype.pretest = function(e) {
|
2717
2720
|
return this.re.pretest.test(e);
|
2718
2721
|
};
|
2719
|
-
|
2720
|
-
return this.__compiled__[t.toLowerCase()] ? this.__compiled__[t.toLowerCase()].validate(e,
|
2722
|
+
v.prototype.testSchemaAt = function(e, t, r) {
|
2723
|
+
return this.__compiled__[t.toLowerCase()] ? this.__compiled__[t.toLowerCase()].validate(e, r, this) : 0;
|
2721
2724
|
};
|
2722
|
-
|
2725
|
+
v.prototype.match = function(e) {
|
2723
2726
|
const t = [];
|
2724
|
-
let
|
2725
|
-
this.__index__ >= 0 && this.__text_cache__ === e && (t.push(
|
2726
|
-
let
|
2727
|
-
for (; this.test(
|
2728
|
-
t.push(
|
2727
|
+
let r = 0;
|
2728
|
+
this.__index__ >= 0 && this.__text_cache__ === e && (t.push(yu(this, r)), r = this.__last_index__);
|
2729
|
+
let n = r ? e.slice(r) : e;
|
2730
|
+
for (; this.test(n); )
|
2731
|
+
t.push(yu(this, r)), n = n.slice(this.__last_index__), r += this.__last_index__;
|
2729
2732
|
return t.length ? t : null;
|
2730
2733
|
};
|
2731
|
-
|
2734
|
+
v.prototype.matchAtStart = function(e) {
|
2732
2735
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
|
2733
2736
|
return null;
|
2734
2737
|
const t = this.re.schema_at_start.exec(e);
|
2735
2738
|
if (!t)
|
2736
2739
|
return null;
|
2737
|
-
const
|
2738
|
-
return
|
2740
|
+
const r = this.testSchemaAt(e, t[2], t[0].length);
|
2741
|
+
return r ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + r, yu(this, 0)) : null;
|
2739
2742
|
};
|
2740
|
-
|
2741
|
-
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(
|
2742
|
-
return
|
2743
|
+
v.prototype.tlds = function(e, t) {
|
2744
|
+
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(r, n, c) {
|
2745
|
+
return r !== c[n - 1];
|
2743
2746
|
}).reverse(), au(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, au(this), this);
|
2744
2747
|
};
|
2745
|
-
|
2748
|
+
v.prototype.normalize = function(e) {
|
2746
2749
|
e.schema || (e.url = "http://" + e.url), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = "mailto:" + e.url);
|
2747
2750
|
};
|
2748
|
-
|
2751
|
+
v.prototype.onCompile = function() {
|
2749
2752
|
};
|
2750
|
-
const Z = 2147483647,
|
2753
|
+
const Z = 2147483647, z = 36, Bu = 1, Y = 26, Qt = 38, Kt = 700, h0 = 72, b0 = 128, p0 = "-", Xt = /^xn--/, Yt = /[^\0-\x7F]/, un = /[\x2E\u3002\uFF0E\uFF61]/g, en = {
|
2751
2754
|
overflow: "Overflow: input needs wider integers to process",
|
2752
2755
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
2753
2756
|
"invalid-input": "Invalid input"
|
2754
|
-
}, ku =
|
2757
|
+
}, ku = z - Bu, M = Math.floor, Cu = String.fromCharCode;
|
2755
2758
|
function P(u) {
|
2756
|
-
throw new RangeError(
|
2759
|
+
throw new RangeError(en[u]);
|
2757
2760
|
}
|
2758
|
-
function
|
2761
|
+
function tn(u, e) {
|
2759
2762
|
const t = [];
|
2760
|
-
let
|
2761
|
-
for (;
|
2762
|
-
t[
|
2763
|
+
let r = u.length;
|
2764
|
+
for (; r--; )
|
2765
|
+
t[r] = e(u[r]);
|
2763
2766
|
return t;
|
2764
2767
|
}
|
2765
2768
|
function x0(u, e) {
|
2766
2769
|
const t = u.split("@");
|
2767
|
-
let
|
2768
|
-
t.length > 1 && (
|
2769
|
-
const
|
2770
|
-
return
|
2770
|
+
let r = "";
|
2771
|
+
t.length > 1 && (r = t[0] + "@", u = t[1]), u = u.replace(un, ".");
|
2772
|
+
const n = u.split("."), c = tn(n, e).join(".");
|
2773
|
+
return r + c;
|
2771
2774
|
}
|
2772
2775
|
function _0(u) {
|
2773
2776
|
const e = [];
|
2774
2777
|
let t = 0;
|
2775
|
-
const
|
2776
|
-
for (; t <
|
2777
|
-
const
|
2778
|
-
if (
|
2778
|
+
const r = u.length;
|
2779
|
+
for (; t < r; ) {
|
2780
|
+
const n = u.charCodeAt(t++);
|
2781
|
+
if (n >= 55296 && n <= 56319 && t < r) {
|
2779
2782
|
const c = u.charCodeAt(t++);
|
2780
|
-
(c & 64512) == 56320 ? e.push(((
|
2783
|
+
(c & 64512) == 56320 ? e.push(((n & 1023) << 10) + (c & 1023) + 65536) : (e.push(n), t--);
|
2781
2784
|
} else
|
2782
|
-
e.push(
|
2785
|
+
e.push(n);
|
2783
2786
|
}
|
2784
2787
|
return e;
|
2785
2788
|
}
|
2786
|
-
const
|
2787
|
-
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 :
|
2788
|
-
},
|
2789
|
+
const nn = (u) => String.fromCodePoint(...u), rn = function(u) {
|
2790
|
+
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 : z;
|
2791
|
+
}, Ku = function(u, e) {
|
2789
2792
|
return u + 22 + 75 * (u < 26) - ((e != 0) << 5);
|
2790
2793
|
}, m0 = function(u, e, t) {
|
2791
|
-
let
|
2792
|
-
for (u = t ?
|
2793
|
-
u =
|
2794
|
-
return
|
2794
|
+
let r = 0;
|
2795
|
+
for (u = t ? M(u / Kt) : u >> 1, u += M(u / e); u > ku * Y >> 1; r += z)
|
2796
|
+
u = M(u / ku);
|
2797
|
+
return M(r + (ku + 1) * u / (u + Qt));
|
2795
2798
|
}, g0 = function(u) {
|
2796
2799
|
const e = [], t = u.length;
|
2797
|
-
let
|
2800
|
+
let r = 0, n = b0, c = h0, i = u.lastIndexOf(p0);
|
2798
2801
|
i < 0 && (i = 0);
|
2799
2802
|
for (let o = 0; o < i; ++o)
|
2800
2803
|
u.charCodeAt(o) >= 128 && P("not-basic"), e.push(u.charCodeAt(o));
|
2801
2804
|
for (let o = i > 0 ? i + 1 : 0; o < t; ) {
|
2802
|
-
const a =
|
2803
|
-
for (let l = 1, d =
|
2805
|
+
const a = r;
|
2806
|
+
for (let l = 1, d = z; ; d += z) {
|
2804
2807
|
o >= t && P("invalid-input");
|
2805
|
-
const b =
|
2806
|
-
b >=
|
2808
|
+
const b = rn(u.charCodeAt(o++));
|
2809
|
+
b >= z && P("invalid-input"), b > M((Z - r) / l) && P("overflow"), r += b * l;
|
2807
2810
|
const h = d <= c ? Bu : d >= c + Y ? Y : d - c;
|
2808
2811
|
if (b < h)
|
2809
2812
|
break;
|
2810
|
-
const f =
|
2811
|
-
l >
|
2813
|
+
const f = z - h;
|
2814
|
+
l > M(Z / f) && P("overflow"), l *= f;
|
2812
2815
|
}
|
2813
2816
|
const s = e.length + 1;
|
2814
|
-
c = m0(
|
2817
|
+
c = m0(r - a, s, a == 0), M(r / s) > Z - n && P("overflow"), n += M(r / s), r %= s, e.splice(r++, 0, n);
|
2815
2818
|
}
|
2816
2819
|
return String.fromCodePoint(...e);
|
2817
2820
|
}, k0 = function(u) {
|
2818
2821
|
const e = [];
|
2819
2822
|
u = _0(u);
|
2820
2823
|
const t = u.length;
|
2821
|
-
let
|
2824
|
+
let r = b0, n = 0, c = h0;
|
2822
2825
|
for (const a of u)
|
2823
2826
|
a < 128 && e.push(Cu(a));
|
2824
2827
|
const i = e.length;
|
@@ -2826,33 +2829,33 @@ const tr = (u) => String.fromCodePoint(...u), rr = function(u) {
|
|
2826
2829
|
for (i && e.push(p0); o < t; ) {
|
2827
2830
|
let a = Z;
|
2828
2831
|
for (const l of u)
|
2829
|
-
l >=
|
2832
|
+
l >= r && l < a && (a = l);
|
2830
2833
|
const s = o + 1;
|
2831
|
-
a -
|
2834
|
+
a - r > M((Z - n) / s) && P("overflow"), n += (a - r) * s, r = a;
|
2832
2835
|
for (const l of u)
|
2833
|
-
if (l <
|
2834
|
-
let d =
|
2835
|
-
for (let b =
|
2836
|
+
if (l < r && ++n > Z && P("overflow"), l === r) {
|
2837
|
+
let d = n;
|
2838
|
+
for (let b = z; ; b += z) {
|
2836
2839
|
const h = b <= c ? Bu : b >= c + Y ? Y : b - c;
|
2837
2840
|
if (d < h)
|
2838
2841
|
break;
|
2839
|
-
const f = d - h, g =
|
2842
|
+
const f = d - h, g = z - h;
|
2840
2843
|
e.push(
|
2841
|
-
Cu(
|
2842
|
-
), d =
|
2844
|
+
Cu(Ku(h + f % g, 0))
|
2845
|
+
), d = M(f / g);
|
2843
2846
|
}
|
2844
|
-
e.push(Cu(
|
2847
|
+
e.push(Cu(Ku(d, 0))), c = m0(n, s, o === i), n = 0, ++o;
|
2845
2848
|
}
|
2846
|
-
++
|
2849
|
+
++n, ++r;
|
2847
2850
|
}
|
2848
2851
|
return e.join("");
|
2849
|
-
},
|
2852
|
+
}, cn = function(u) {
|
2850
2853
|
return x0(u, function(e) {
|
2851
2854
|
return Xt.test(e) ? g0(e.slice(4).toLowerCase()) : e;
|
2852
2855
|
});
|
2853
|
-
},
|
2856
|
+
}, on = function(u) {
|
2854
2857
|
return x0(u, function(e) {
|
2855
|
-
return
|
2858
|
+
return Yt.test(e) ? "xn--" + k0(e) : e;
|
2856
2859
|
});
|
2857
2860
|
}, C0 = {
|
2858
2861
|
/**
|
@@ -2870,13 +2873,13 @@ const tr = (u) => String.fromCodePoint(...u), rr = function(u) {
|
|
2870
2873
|
*/
|
2871
2874
|
ucs2: {
|
2872
2875
|
decode: _0,
|
2873
|
-
encode:
|
2876
|
+
encode: nn
|
2874
2877
|
},
|
2875
2878
|
decode: g0,
|
2876
2879
|
encode: k0,
|
2877
|
-
toASCII:
|
2878
|
-
toUnicode:
|
2879
|
-
},
|
2880
|
+
toASCII: on,
|
2881
|
+
toUnicode: cn
|
2882
|
+
}, an = {
|
2880
2883
|
options: {
|
2881
2884
|
// Enable HTML tags in source
|
2882
2885
|
html: !1,
|
@@ -2912,7 +2915,7 @@ const tr = (u) => String.fromCodePoint(...u), rr = function(u) {
|
|
2912
2915
|
block: {},
|
2913
2916
|
inline: {}
|
2914
2917
|
}
|
2915
|
-
},
|
2918
|
+
}, sn = {
|
2916
2919
|
options: {
|
2917
2920
|
// Enable HTML tags in source
|
2918
2921
|
html: !1,
|
@@ -2967,7 +2970,7 @@ const tr = (u) => String.fromCodePoint(...u), rr = function(u) {
|
|
2967
2970
|
]
|
2968
2971
|
}
|
2969
2972
|
}
|
2970
|
-
},
|
2973
|
+
}, ln = {
|
2971
2974
|
options: {
|
2972
2975
|
// Enable HTML tags in source
|
2973
2976
|
html: !0,
|
@@ -3041,47 +3044,47 @@ const tr = (u) => String.fromCodePoint(...u), rr = function(u) {
|
|
3041
3044
|
]
|
3042
3045
|
}
|
3043
3046
|
}
|
3044
|
-
},
|
3045
|
-
default:
|
3046
|
-
zero:
|
3047
|
-
commonmark:
|
3048
|
-
},
|
3049
|
-
function
|
3047
|
+
}, fn = {
|
3048
|
+
default: an,
|
3049
|
+
zero: sn,
|
3050
|
+
commonmark: ln
|
3051
|
+
}, dn = /^(vbscript|javascript|file|data):/, hn = /^data:image\/(gif|png|jpeg|webp);/;
|
3052
|
+
function bn(u) {
|
3050
3053
|
const e = u.trim().toLowerCase();
|
3051
|
-
return
|
3054
|
+
return dn.test(e) ? hn.test(e) : !0;
|
3052
3055
|
}
|
3053
3056
|
const D0 = ["http:", "https:", "mailto:"];
|
3054
|
-
function
|
3057
|
+
function pn(u) {
|
3055
3058
|
const e = Fu(u, !0);
|
3056
3059
|
if (e.hostname && (!e.protocol || D0.indexOf(e.protocol) >= 0))
|
3057
3060
|
try {
|
3058
3061
|
e.hostname = C0.toASCII(e.hostname);
|
3059
3062
|
} catch {
|
3060
3063
|
}
|
3061
|
-
return uu(
|
3064
|
+
return uu(Au(e));
|
3062
3065
|
}
|
3063
|
-
function
|
3066
|
+
function xn(u) {
|
3064
3067
|
const e = Fu(u, !0);
|
3065
3068
|
if (e.hostname && (!e.protocol || D0.indexOf(e.protocol) >= 0))
|
3066
3069
|
try {
|
3067
3070
|
e.hostname = C0.toUnicode(e.hostname);
|
3068
3071
|
} catch {
|
3069
3072
|
}
|
3070
|
-
return V(
|
3073
|
+
return V(Au(e), V.defaultChars + "%");
|
3071
3074
|
}
|
3072
3075
|
function S(u, e) {
|
3073
3076
|
if (!(this instanceof S))
|
3074
3077
|
return new S(u, e);
|
3075
|
-
e ||
|
3078
|
+
e || vu(u) || (e = u || {}, u = "default"), this.inline = new tu(), this.block = new du(), this.core = new Tu(), this.renderer = new W(), this.linkify = new v(), this.validateLink = bn, this.normalizeLink = pn, this.normalizeLinkText = xn, this.utils = _e, this.helpers = lu({}, Ce), this.options = {}, this.configure(u), e && this.set(e);
|
3076
3079
|
}
|
3077
3080
|
S.prototype.set = function(u) {
|
3078
3081
|
return lu(this.options, u), this;
|
3079
3082
|
};
|
3080
3083
|
S.prototype.configure = function(u) {
|
3081
3084
|
const e = this;
|
3082
|
-
if (
|
3085
|
+
if (vu(u)) {
|
3083
3086
|
const t = u;
|
3084
|
-
if (u =
|
3087
|
+
if (u = fn[t], !u)
|
3085
3088
|
throw new Error('Wrong `markdown-it` preset "' + t + '", check name');
|
3086
3089
|
}
|
3087
3090
|
if (!u)
|
@@ -3092,26 +3095,26 @@ S.prototype.configure = function(u) {
|
|
3092
3095
|
};
|
3093
3096
|
S.prototype.enable = function(u, e) {
|
3094
3097
|
let t = [];
|
3095
|
-
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(
|
3096
|
-
t = t.concat(this[
|
3098
|
+
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(n) {
|
3099
|
+
t = t.concat(this[n].ruler.enable(u, !0));
|
3097
3100
|
}, this), t = t.concat(this.inline.ruler2.enable(u, !0));
|
3098
|
-
const
|
3099
|
-
return t.indexOf(
|
3101
|
+
const r = u.filter(function(n) {
|
3102
|
+
return t.indexOf(n) < 0;
|
3100
3103
|
});
|
3101
|
-
if (
|
3102
|
-
throw new Error("MarkdownIt. Failed to enable unknown rule(s): " +
|
3104
|
+
if (r.length && !e)
|
3105
|
+
throw new Error("MarkdownIt. Failed to enable unknown rule(s): " + r);
|
3103
3106
|
return this;
|
3104
3107
|
};
|
3105
3108
|
S.prototype.disable = function(u, e) {
|
3106
3109
|
let t = [];
|
3107
|
-
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(
|
3108
|
-
t = t.concat(this[
|
3110
|
+
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(n) {
|
3111
|
+
t = t.concat(this[n].ruler.disable(u, !0));
|
3109
3112
|
}, this), t = t.concat(this.inline.ruler2.disable(u, !0));
|
3110
|
-
const
|
3111
|
-
return t.indexOf(
|
3113
|
+
const r = u.filter(function(n) {
|
3114
|
+
return t.indexOf(n) < 0;
|
3112
3115
|
});
|
3113
|
-
if (
|
3114
|
-
throw new Error("MarkdownIt. Failed to disable unknown rule(s): " +
|
3116
|
+
if (r.length && !e)
|
3117
|
+
throw new Error("MarkdownIt. Failed to disable unknown rule(s): " + r);
|
3115
3118
|
return this;
|
3116
3119
|
};
|
3117
3120
|
S.prototype.use = function(u) {
|
@@ -3134,44 +3137,82 @@ S.prototype.parseInline = function(u, e) {
|
|
3134
3137
|
S.prototype.renderInline = function(u, e) {
|
3135
3138
|
return e = e || {}, this.renderer.render(this.parseInline(u, e), this.options, e);
|
3136
3139
|
};
|
3137
|
-
const
|
3140
|
+
const _n = `:host{--cv-notebook-height: 100%;--cv-notebook-width: 100%}:host cv-notebook-cell.dragged{transform:translateZ(0)}:host cv-icon-button button{font-variation-settings:"FILL" 1}.error{margin:.75rem 1px;padding:0 .25rem}.notebook{background-color:var(--cv-theme-surface-container-lowest);box-sizing:border-box;display:flex;flex-direction:column;height:100%}.notebookCells{box-sizing:border-box;display:flex;flex-direction:column;gap:.5rem;height:calc(100% - 106px);overflow-y:auto;overflow-x:hidden;padding:1rem;width:100%}.notebookActions{display:flex;gap:1rem;justify-content:center;padding-top:1rem}:host .notebookHeaderActions{--cv-select-height: 2.25rem;--cv-select-label-top-position: -25.25px;--mdc-icon-button-size: 40px;--mdc-icon-size: 22px;align-items:center;border:1px solid var(--cv-theme-outline-variant);box-shadow:0 0 2px 0 var(--cv-theme-on-positive-container-16);box-sizing:border-box;display:flex;gap:.15rem;padding:7px .25rem}:host .notebookHeaderActions cv-select{margin-left:.5rem}.drag-over{border-bottom:1.5px solid var(--cv-theme-primary)}.input-container{display:flex;align-items:center;gap:.5rem}
|
3138
3141
|
`;
|
3139
|
-
var
|
3140
|
-
for (var
|
3141
|
-
(i = u[c]) && (
|
3142
|
-
return
|
3142
|
+
var mn = Object.defineProperty, gn = Object.getOwnPropertyDescriptor, nu = (u, e, t, r) => {
|
3143
|
+
for (var n = r > 1 ? void 0 : r ? gn(e, t) : e, c = u.length - 1, i; c >= 0; c--)
|
3144
|
+
(i = u[c]) && (n = (r ? i(e, t, n) : i(n)) || n);
|
3145
|
+
return r && n && mn(e, t, n), n;
|
3143
3146
|
};
|
3144
|
-
let j = class extends
|
3147
|
+
let j = class extends v0 {
|
3145
3148
|
constructor() {
|
3146
|
-
super(
|
3149
|
+
super(), this.cells = [], this.cellTypes = [], this._clipboardCell = null, this._draggedCellIndex = null, this._selectedCellIndex = null, this._handleKeydown = this._handleKeydown.bind(this);
|
3147
3150
|
}
|
3148
3151
|
// Add a cell to the notebook
|
3149
3152
|
addCell(u) {
|
3150
|
-
|
3153
|
+
const e = this.createNewCell(u);
|
3154
|
+
this._clipboardCell = { ...e }, this.pasteCell(), this._clipboardCell = null;
|
3155
|
+
}
|
3156
|
+
connectedCallback() {
|
3157
|
+
super.connectedCallback(), document.addEventListener("keydown", this._handleKeydown);
|
3151
3158
|
}
|
3152
3159
|
// Copy the selected cell
|
3153
3160
|
copyCell() {
|
3154
3161
|
this._selectedCellIndex !== null && (this._clipboardCell = { ...this.cells[this._selectedCellIndex] });
|
3155
3162
|
}
|
3163
|
+
createNewCell(u) {
|
3164
|
+
const e = u === "markdown" ? u : this.defaultLanguage || "python";
|
3165
|
+
return {
|
3166
|
+
cell_type: u,
|
3167
|
+
code: "",
|
3168
|
+
execution_count: null,
|
3169
|
+
language: e,
|
3170
|
+
metadata: {
|
3171
|
+
tags: [],
|
3172
|
+
trusted: !1
|
3173
|
+
},
|
3174
|
+
outputs: [],
|
3175
|
+
source: ""
|
3176
|
+
};
|
3177
|
+
}
|
3156
3178
|
// Cut the selected cell
|
3157
3179
|
cutCell() {
|
3158
|
-
this._selectedCellIndex !== null && (this._clipboardCell = this.cells[this._selectedCellIndex], this.
|
3180
|
+
this._selectedCellIndex !== null && (this._clipboardCell = this.cells[this._selectedCellIndex], this.deleteCell());
|
3159
3181
|
}
|
3160
3182
|
// Delete the selected cell
|
3161
3183
|
deleteCell() {
|
3162
|
-
this._selectedCellIndex !== null
|
3184
|
+
if (this._selectedCellIndex !== null) {
|
3185
|
+
this.cells.splice(this._selectedCellIndex, 1);
|
3186
|
+
const u = Math.min(
|
3187
|
+
this._selectedCellIndex + 1,
|
3188
|
+
this.cells.length - 1
|
3189
|
+
);
|
3190
|
+
this.scrollToSelectedCell(u), this.dispatchUpdatedCells();
|
3191
|
+
}
|
3163
3192
|
}
|
3164
3193
|
// Deselect all the cells
|
3165
3194
|
deselectAllCells() {
|
3166
3195
|
this.cells.forEach((u) => u.selected = !1);
|
3167
3196
|
}
|
3197
|
+
disconnectedCallback() {
|
3198
|
+
super.disconnectedCallback(), document.removeEventListener("keydown", this._handleKeydown);
|
3199
|
+
}
|
3168
3200
|
// Dispatch a custom cell event
|
3169
3201
|
dispatchCustomCellEvent(u, e) {
|
3170
3202
|
!e && this._selectedCellIndex && (e = this.cells[this._selectedCellIndex]), e && this.dispatchEvent(
|
3171
|
-
new CustomEvent(
|
3203
|
+
new CustomEvent("cell-action", {
|
3172
3204
|
bubbles: !0,
|
3173
3205
|
cancelable: !0,
|
3174
|
-
detail: { cell: e, index: this._selectedCellIndex }
|
3206
|
+
detail: { cell: e, index: this._selectedCellIndex, action: u }
|
3207
|
+
})
|
3208
|
+
);
|
3209
|
+
}
|
3210
|
+
dispatchUpdatedCells() {
|
3211
|
+
this.dispatchEvent(
|
3212
|
+
new CustomEvent("cells-updated", {
|
3213
|
+
bubbles: !0,
|
3214
|
+
cancelable: !0,
|
3215
|
+
detail: { cells: this.cells }
|
3175
3216
|
})
|
3176
3217
|
);
|
3177
3218
|
}
|
@@ -3180,6 +3221,34 @@ let j = class extends w0 {
|
|
3180
3221
|
u.showEditor = this.shouldRenderEditor(u);
|
3181
3222
|
}), this.selectCell(0), this.requestUpdate());
|
3182
3223
|
}
|
3224
|
+
getDragImage(u) {
|
3225
|
+
const e = this.cells[u], t = B`
|
3226
|
+
<div class="dragImage" style="width: 80%;">
|
3227
|
+
<cv-notebook-cell
|
3228
|
+
.code="${e.code}"
|
3229
|
+
.language="${e.language}"
|
3230
|
+
.timesExecuted="${e.timesExecuted || 0}"
|
3231
|
+
.loading="${e.loading}"
|
3232
|
+
.selected="false"
|
3233
|
+
.showEditor="false"
|
3234
|
+
></cv-notebook-cell>
|
3235
|
+
</div>
|
3236
|
+
`, r = document.createElement("div");
|
3237
|
+
return S0(t, r), r;
|
3238
|
+
}
|
3239
|
+
scrollToSelectedCell(u) {
|
3240
|
+
var r, n;
|
3241
|
+
this.selectCell(u);
|
3242
|
+
const e = (r = this.shadowRoot) == null ? void 0 : r.querySelector(
|
3243
|
+
`#cell-${this._selectedCellIndex}`
|
3244
|
+
), t = (n = this.shadowRoot) == null ? void 0 : n.querySelector(
|
3245
|
+
"#notebook-cells"
|
3246
|
+
);
|
3247
|
+
if (e && t) {
|
3248
|
+
const c = t.getBoundingClientRect(), i = e.getBoundingClientRect(), o = i.top < c.top, a = i.bottom > c.bottom;
|
3249
|
+
o ? t.scrollTop = e.offsetTop - t.offsetTop : a && (t.scrollTop = e.offsetTop - t.offsetTop - t.clientHeight + e.clientHeight);
|
3250
|
+
}
|
3251
|
+
}
|
3183
3252
|
// Dispatch an event when the cell type is changed
|
3184
3253
|
handleCellTypeChange(u) {
|
3185
3254
|
const e = this.cellTypes[u.detail.index];
|
@@ -3197,7 +3266,13 @@ let j = class extends w0 {
|
|
3197
3266
|
t.code = u.detail.code;
|
3198
3267
|
}
|
3199
3268
|
handleDragStart(u, e) {
|
3200
|
-
this._draggedCellIndex = e, this.deselectAllCells(), u.dataTransfer
|
3269
|
+
if (this._draggedCellIndex = e, this.deselectAllCells(), u.dataTransfer) {
|
3270
|
+
u.currentTarget.classList.add("dragged"), u.dataTransfer.effectAllowed = "move", u.dataTransfer.setData("text/plain", e.toString());
|
3271
|
+
const n = this.getDragImage(e).firstElementChild;
|
3272
|
+
n.style.position = "absolute", n.style.top = "-1000px", document.body.appendChild(n), u.dataTransfer.setDragImage(n, 0, 0), setTimeout(() => {
|
3273
|
+
document.body.removeChild(n);
|
3274
|
+
}, 0);
|
3275
|
+
}
|
3201
3276
|
}
|
3202
3277
|
handleDragOver(u) {
|
3203
3278
|
u.preventDefault(), u.currentTarget.classList.add("drag-over"), u.dataTransfer && (u.dataTransfer.dropEffect = "move");
|
@@ -3205,20 +3280,14 @@ let j = class extends w0 {
|
|
3205
3280
|
handleDrop(u, e) {
|
3206
3281
|
if (u.preventDefault(), this.handleDragLeave(u), this._draggedCellIndex !== null) {
|
3207
3282
|
const t = this.cells[this._draggedCellIndex];
|
3208
|
-
this.cells = [
|
3283
|
+
t.selected = !0, this.cells = [
|
3209
3284
|
...this.cells.slice(0, this._draggedCellIndex),
|
3210
3285
|
...this.cells.slice(this._draggedCellIndex + 1)
|
3211
3286
|
], this.cells = [
|
3212
3287
|
...this.cells.slice(0, e),
|
3213
3288
|
t,
|
3214
3289
|
...this.cells.slice(e)
|
3215
|
-
], this.cells = this.cells.map((
|
3216
|
-
new CustomEvent("drag-finished", {
|
3217
|
-
bubbles: !0,
|
3218
|
-
cancelable: !0,
|
3219
|
-
detail: { cells: this.cells }
|
3220
|
-
})
|
3221
|
-
);
|
3290
|
+
], this.cells = this.cells.map((r, n) => ({ ...r, index: n })), this._draggedCellIndex = null, this.dispatchUpdatedCells();
|
3222
3291
|
}
|
3223
3292
|
}
|
3224
3293
|
handleDragLeave(u) {
|
@@ -3242,6 +3311,31 @@ let j = class extends w0 {
|
|
3242
3311
|
})
|
3243
3312
|
);
|
3244
3313
|
}
|
3314
|
+
_handleKeydown(u) {
|
3315
|
+
var t, r, n, c;
|
3316
|
+
let e = (t = this.cells) == null ? void 0 : t.findIndex((i) => i.selected);
|
3317
|
+
switch (u.key) {
|
3318
|
+
case "ArrowUp":
|
3319
|
+
e = Math.max(e - 1, 0), this.scrollToSelectedCell(e);
|
3320
|
+
break;
|
3321
|
+
case "ArrowDown":
|
3322
|
+
e = Math.min(
|
3323
|
+
e + 1,
|
3324
|
+
this.cells.length - 1
|
3325
|
+
), this.scrollToSelectedCell(e);
|
3326
|
+
break;
|
3327
|
+
case "Enter":
|
3328
|
+
if (u.shiftKey)
|
3329
|
+
this.runCell();
|
3330
|
+
else {
|
3331
|
+
const i = (r = this.shadowRoot) == null ? void 0 : r.querySelector(
|
3332
|
+
`#cell-${e}`
|
3333
|
+
), o = (n = i == null ? void 0 : i.shadowRoot) == null ? void 0 : n.querySelector("cv-code-editor");
|
3334
|
+
(c = o == null ? void 0 : o.editor) == null || c.focus();
|
3335
|
+
}
|
3336
|
+
break;
|
3337
|
+
}
|
3338
|
+
}
|
3245
3339
|
// Shows the cell editor on clicking output for markdown cells
|
3246
3340
|
handleOutputCLick(u) {
|
3247
3341
|
const e = this.cells[u];
|
@@ -3251,38 +3345,37 @@ let j = class extends w0 {
|
|
3251
3345
|
pasteCell() {
|
3252
3346
|
if (this._clipboardCell !== null) {
|
3253
3347
|
const u = this._selectedCellIndex !== null ? this._selectedCellIndex + 1 : this.cells.length;
|
3254
|
-
this.cells.splice(u, 0, { ...this._clipboardCell }), this.cells = this.cells.map((e, t) => ({ ...e, index: t })), this._selectedCellIndex = u, this.
|
3348
|
+
this.deselectAllCells(), this._clipboardCell.selected = !0, this.cells.splice(u, 0, { ...this._clipboardCell }), this.cells = this.cells.map((e, t) => ({ ...e, index: t })), this._selectedCellIndex = u, this.dispatchUpdatedCells();
|
3255
3349
|
}
|
3256
3350
|
}
|
3257
3351
|
renderCellOutput(u) {
|
3258
3352
|
var e;
|
3259
|
-
return (e = u.outputs) != null && e.length ?
|
3260
|
-
(t) =>
|
3261
|
-
const
|
3262
|
-
|
3353
|
+
return (e = u.outputs) != null && e.length ? B`${u.outputs.map(
|
3354
|
+
(t) => B`${t.data && Object.keys(t.data).map((r) => {
|
3355
|
+
const n = document.createElement("div");
|
3356
|
+
n.style.maxWidth = "100%", n.style.overflow = "auto";
|
3263
3357
|
const c = S({ html: !0 });
|
3264
|
-
switch (
|
3358
|
+
switch (r) {
|
3265
3359
|
case "text/markdown":
|
3266
|
-
|
3360
|
+
n.innerHTML = c.render(t.data[r]);
|
3267
3361
|
break;
|
3268
3362
|
case "text/html":
|
3269
|
-
|
3363
|
+
n.innerHTML = t.data[r];
|
3270
3364
|
break;
|
3271
3365
|
case "image/png": {
|
3272
3366
|
const i = document.createElement("img");
|
3273
|
-
i.style.maxWidth = "100%", i.src = `data:image/png;base64, ${t.data[
|
3367
|
+
i.style.maxWidth = "100%", i.draggable = !1, i.src = `data:image/png;base64, ${t.data[r]}`, n.appendChild(i);
|
3274
3368
|
break;
|
3275
3369
|
}
|
3276
3370
|
}
|
3277
|
-
return
|
3371
|
+
return n;
|
3278
3372
|
})}`
|
3279
|
-
)}` :
|
3373
|
+
)}` : B``;
|
3280
3374
|
}
|
3281
3375
|
render() {
|
3282
3376
|
var u;
|
3283
|
-
return
|
3377
|
+
return B`<div class="notebook">
|
3284
3378
|
<section class="notebookHeaderActions">
|
3285
|
-
<cv-icon-button class="filledIcon" icon="save"></cv-icon-button>
|
3286
3379
|
<cv-icon-button
|
3287
3380
|
icon="content_cut"
|
3288
3381
|
@click="${this.cutCell}"
|
@@ -3322,17 +3415,17 @@ let j = class extends w0 {
|
|
3322
3415
|
@selected="${(e) => this.handleCellTypeChange(e)}"
|
3323
3416
|
>
|
3324
3417
|
${(u = this.cellTypes) == null ? void 0 : u.map(
|
3325
|
-
(e) =>
|
3418
|
+
(e) => B`<cv-list-item value="${e.type}"
|
3326
3419
|
>${e.name}</cv-list-item
|
3327
3420
|
>`
|
3328
3421
|
)}
|
3329
3422
|
</cv-select>
|
3330
3423
|
</section>
|
3331
|
-
<section class="notebookCells">
|
3424
|
+
<section class="notebookCells" id="notebook-cells">
|
3332
3425
|
${this.cells.map(
|
3333
3426
|
(e, t) => {
|
3334
|
-
var
|
3335
|
-
return
|
3427
|
+
var r, n;
|
3428
|
+
return B`<cv-notebook-cell
|
3336
3429
|
.code="${e.code}"
|
3337
3430
|
.index="${t}"
|
3338
3431
|
.language="${e.language}"
|
@@ -3340,7 +3433,6 @@ let j = class extends w0 {
|
|
3340
3433
|
.timesExecuted="${e.timesExecuted}"
|
3341
3434
|
.loading="${e.loading}"
|
3342
3435
|
id="cell-${t}"
|
3343
|
-
draggable="true"
|
3344
3436
|
@dragstart="${(c) => this.handleDragStart(c, t)}"
|
3345
3437
|
@dragover="${(c) => this.handleDragOver(c)}"
|
3346
3438
|
@dragleave="${(c) => this.handleDragLeave(c)}"
|
@@ -3356,8 +3448,8 @@ let j = class extends w0 {
|
|
3356
3448
|
>
|
3357
3449
|
${this.renderCellOutput(e)}
|
3358
3450
|
</div>
|
3359
|
-
${((
|
3360
|
-
(c) =>
|
3451
|
+
${((r = e.inputs) == null ? void 0 : r.length) && e.inputs.map(
|
3452
|
+
(c) => B`
|
3361
3453
|
<div class="input-container" slot="input">
|
3362
3454
|
<cv-typography scale="body2">
|
3363
3455
|
${c.prompt}:
|
@@ -3371,27 +3463,27 @@ let j = class extends w0 {
|
|
3371
3463
|
</div>
|
3372
3464
|
`
|
3373
3465
|
)}
|
3374
|
-
${((
|
3375
|
-
${e.errors && e.errors.map(
|
3376
|
-
|
3377
|
-
|
3466
|
+
${((n = e.errors) == null ? void 0 : n.length) && B`<div slot="error">
|
3467
|
+
${e.errors && e.errors.map(
|
3468
|
+
(c) => B`<cv-alert
|
3469
|
+
descriptionText="${c}"
|
3470
|
+
state="negative"
|
3471
|
+
icon="error"
|
3472
|
+
iconAriaLabel="error"
|
3473
|
+
inline
|
3474
|
+
>
|
3475
|
+
</cv-alert>`
|
3476
|
+
)}
|
3477
|
+
</div>`}
|
3478
|
+
</cv-notebook-cell>`;
|
3378
3479
|
}
|
3379
3480
|
)}
|
3380
3481
|
</section>
|
3381
3482
|
<section class="notebookActions">
|
3382
|
-
<cv-button
|
3383
|
-
outlined
|
3384
|
-
@click=${() => this.addCell({
|
3385
|
-
code: "",
|
3386
|
-
language: this.defaultLanguage || "python"
|
3387
|
-
})}
|
3388
|
-
>
|
3483
|
+
<cv-button outlined @click=${() => this.addCell("code")}>
|
3389
3484
|
<cv-icon style="font-size: 20px;">add</cv-icon>Code cell
|
3390
3485
|
</cv-button>
|
3391
|
-
<cv-button
|
3392
|
-
outlined
|
3393
|
-
@click=${() => this.addCell({ code: "", language: "markdown" })}
|
3394
|
-
>
|
3486
|
+
<cv-button outlined @click=${() => this.addCell("markdown")}>
|
3395
3487
|
<cv-icon style="font-size: 20px;">add</cv-icon>Markdown
|
3396
3488
|
</cv-button>
|
3397
3489
|
</section>
|
@@ -3399,12 +3491,12 @@ let j = class extends w0 {
|
|
3399
3491
|
}
|
3400
3492
|
removeCSS(u, e) {
|
3401
3493
|
const t = e == null ? void 0 : e.querySelectorAll(u);
|
3402
|
-
t == null || t.forEach((
|
3494
|
+
t == null || t.forEach((r) => r.classList.remove(u));
|
3403
3495
|
}
|
3404
3496
|
runCell() {
|
3405
3497
|
if (this._selectedCellIndex !== null) {
|
3406
3498
|
const u = this.cells[this._selectedCellIndex];
|
3407
|
-
this.dispatchCustomCellEvent("run-cell", u);
|
3499
|
+
this.dispatchCustomCellEvent("run-cell", u), this._selectedCellIndex + 1 < this.cells.length && this.scrollToSelectedCell(this._selectedCellIndex + 1);
|
3408
3500
|
}
|
3409
3501
|
this.requestUpdate();
|
3410
3502
|
}
|
@@ -3418,33 +3510,34 @@ let j = class extends w0 {
|
|
3418
3510
|
return u.language !== "markdown" || u.language === "markdown" && !((e = u.outputs) != null && e.length);
|
3419
3511
|
}
|
3420
3512
|
updated(u) {
|
3421
|
-
u.has("cells") && this.cells.forEach((e) => {
|
3422
|
-
|
3513
|
+
u.has("cells") && this.cells.forEach((e, t) => {
|
3514
|
+
var r;
|
3515
|
+
e.showEditor = this.shouldRenderEditor(e), (r = e.inputs) != null && r.length && this.scrollToSelectedCell(t);
|
3423
3516
|
});
|
3424
3517
|
}
|
3425
3518
|
};
|
3426
3519
|
j.styles = [
|
3427
3520
|
F0`
|
3428
|
-
${
|
3521
|
+
${w0(_n)}
|
3429
3522
|
`
|
3430
3523
|
];
|
3431
|
-
|
3524
|
+
nu([
|
3432
3525
|
su({ type: Array })
|
3433
3526
|
], j.prototype, "cells", 2);
|
3434
|
-
|
3527
|
+
nu([
|
3435
3528
|
su({ type: Array })
|
3436
3529
|
], j.prototype, "cellTypes", 2);
|
3437
|
-
|
3530
|
+
nu([
|
3438
3531
|
su({ type: String })
|
3439
3532
|
], j.prototype, "cellType", 2);
|
3440
|
-
|
3533
|
+
nu([
|
3441
3534
|
su({ type: String })
|
3442
3535
|
], j.prototype, "defaultLanguage", 2);
|
3443
|
-
j =
|
3444
|
-
|
3536
|
+
j = nu([
|
3537
|
+
T0("cv-notebook")
|
3445
3538
|
], j);
|
3446
|
-
const
|
3539
|
+
const rr = j;
|
3447
3540
|
export {
|
3448
3541
|
j as CovalentNotebook,
|
3449
|
-
|
3542
|
+
rr as default
|
3450
3543
|
};
|